@xysfe/actui 1.11.32 → 1.11.33

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.
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GoldProtocolLayer=e():t.GoldProtocolLayer=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../lib",e(e.s=2338)}({0:function(t,e){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},1:function(t,e,r){"use strict";function n(t,e,r,n,i,o,a,s){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o);var l;if(a?(l=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(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var h=u.render;u.render=function(t,e){return l.call(e),h(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}e.a=n},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,r){r(55),t.exports=r(0).Object.getOwnPropertySymbols},101:function(t,e,r){"use strict";function n(t){var e={},r={},n={};for(var c in t)if(t.hasOwnProperty(c))if(-1!==s.indexOf(c))e[c]=t[c];else if(a.test(c)){var u=a.exec(c)[1];u=Object(o.a)(u),n[u]=t[c]}else r[c]=t[c];return e.on=Object(i.a)(n,e.on),e.props=Object(i.a)(r,e.props),e}e.a=n;var i=r(62),o=r(102),a=new RegExp(/^on(.+)/),s=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},102:function(t,e,r){"use strict";function n(t,e){var r=c(t,e);return r.charAt(0).toLowerCase()+r.slice(1)}e.a=n;var i=r(28),o=r.n(i),a=r(4),s=function(t){for(var e=!1,r=!1,n=!1,i=0;i<t.length;i++){var o=t[i];e&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(t=t.slice(0,i)+"-"+t.slice(i),e=!1,n=r,r=!0,i++):r&&n&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(t=t.slice(0,i-1)+"-"+t.slice(i-1),n=r,r=!1,e=!0):(e=o.toLowerCase()===o&&o.toUpperCase()!==o,n=r,r=o.toUpperCase()===o&&o.toLowerCase()!==o)}return t},c=function(t,e){if("string"!=typeof t&&!Object(a.p)(t))throw new TypeError("Expected the input to be `string | string[]`");e=o()({pascalCase:!1},e);return t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim(),0===t.length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=s(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}).replace(/\d+(\w|$)/g,function(t){return t.toUpperCase()}),function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t}(t))}},103:function(t,e,r){"use strict";function n(t,e,r,n){var o=void 0,a=void 0,s=new t({render:function(t){var r=a&&a(t);return r&&!Object(i.p)(r)&&(r=[r]),t(e,o,r||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return s.updateRenderData=function(t,e){o=t,a=e},s.updateRenderData(r,n),s.$mount(),s.init(),s.$children[0]}e.a=n;var i=r(4)},104:function(t,e,r){"use strict";var n=r(19),i=r(64);e.a={name:"ActPopup",mixins:[n.a,i.a],props:{type:{type:String,default:""},mask:{type:Boolean,default:!0},content:{type:String,default:""},center:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.7},pointerEvent:{type:String,default:""},zIndex:{type:[String,Number],default:"999"},topBorderRadius:{type:Boolean,default:!1}},computed:{typeClass:function(){return this.type?"act-"+this.type:""},maskBgColor:function(){return"rgba(0, 0, 0, "+this.opacity+")"}},methods:{maskClick:function(t){this.$emit("mask-click",t)}}}},1047:function(t,e,r){"use strict";var n=r(4);e.a={name:"ActGoldProtocol",data:function(){return{protocolChecked:this.checkState}},props:{text:{type:String,default:"本人已阅读并同意"},tips:{type:String,default:""},protocols:{type:Array,default:function(){return[]}},checkState:{type:Boolean,default:!0},showCheckBox:{type:Boolean,default:!0},textColor:{type:String,default:"#666"},textFontSize:{type:[Number,String],default:13},openInWindow:{type:Boolean,default:!1},brandColor:{type:String,default:"#8c7fee"},zIndex:{type:[String,Number],default:999},disableChecked:{type:Boolean,default:!1}},computed:{fontSize:function(){return Object(n.g)(this.textFontSize)}},methods:{getCheckBoxState:function(){return!!this.protocolChecked},onClick:function(t){var e=this,r=!1;if((r=t.openInWindow?t.openInWindow:!1!==t.openInWindow&&this.openInWindow)&&t.data){if(Object(n.p)(t.data)&&1===t.data.length&&t.data[0].src)return this.openUrl(t.data[0].src);if(!Object(n.p)(t.data)&&t.data.src)return this.openUrl(t.data.src)}this.docPop&&this.docPop.remove(),this.docPop=this.$createDocPop({zIndex:this.zIndex,title:t.title,docData:this.docData(t),brandColor:this.brandColor,openInWindow:r},function(t){return[t("template",{slot:"content"},[e.$slots.content])]}).show()},docData:function(t){return Object(n.p)(t.data)?t.data:[t.data]},protocolToggle:function(){this.disableChecked||(this.protocolChecked=!this.protocolChecked,this.$emit("toggle",this.protocolChecked))},openUrl:function(t){n.I.isMobile||n.I.isWx?location.href=t:window.open(t,"_blank")}},watch:{checkState:function(t){this.protocolChecked=t}}}},106:function(t,e,r){var n=r(26),i=r(3)("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,r,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=a(e=Object(t),i))?r:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},107:function(t,e,r){"use strict";function n(t){s||r(121)}var i=r(104),o=r(122),a=r(1),s=!1,c=n,u=Object(a.a)(i.a,o.a,o.b,!1,c,null,null);u.options.__file="src\\components\\common\\popup.vue",e.a=u.exports},11:function(t,e,r){var n=r(46),i=r(29);t.exports=function(t){return n(i(t))}},110:function(t,e,r){var n=r(9),i=r(39),o=r(3)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[o])?e:i(r)}},111:function(t,e,r){var n,i,o,a=r(38),s=r(146),c=r(60),u=r(40),l=r(2),h=l.process,f=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,v=l.Dispatch,m=0,g={},y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){y.call(t.data)};f&&d||(f=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return g[++m]=function(){s("function"==typeof t?t:Function(t),e)},n(m),m},d=function(t){delete g[t]},"process"==r(26)(h)?n=function(t){h.nextTick(a(y,t,1))}:v&&v.now?n=function(t){v.now(a(y,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=b,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):n="onreadystatechange"in u("script")?function(t){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:f,clear:d}},112:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},113:function(t,e,r){var n=r(9),i=r(10),o=r(68);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},114:function(t,e,r){"use strict";function n(t){t.interceptors.response.use(function(t){return t},function(t){var e={403:"请求被拒绝,请联系客服处理",404:"您访问的资源不可用,请联系客服处理",502:"服务器网关出错,请稍后重试",503:"服务器维护中,请稍后重试",504:"服务器请求超时,请稍后重试"},r="";return r=t&&t.response&&t.response.status?e[t.response.status]?e[t.response.status]+"("+t.response.status+")":"请求失败,请稍后重试("+t.response.status+")":t&&t.message&&/timeout/i.test(t.message)?"请求超时,请稍后重试":"请求失败,请稍后重试",s.a.reject(new Error(r))})}function i(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return new s.a(function(i,o){var a=u.a.create();n(a),a.request({method:"post",url:t,data:e,timeout:r,withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest"}}).then(function(t){i(t)}).catch(function(t){o(t)})})}function o(t){return u.a.get(t).then(function(t){return s.a.resolve(t.data)})}e.a=n,e.d=i,e.c=o;var a=r(51),s=r.n(a),c=r(167),u=r.n(c);e.b=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return new s.a(function(i,o){var a=u.a.create();n(a),a.request({method:"post",url:t,data:e,timeout:r,withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/x-www-form-urlencoded"},transformRequest:[function(t){function e(t,e){var r=0,n=t.length;if(void 0===n||"[object Function]"===Object.prototype.toString.call(t)){for(var i in t)if(!1===e.call(t[i],i,t[i]))break}else for(var o=t[0];r<n&&!1!==e.call(o,r,o);o=t[++r]);return t}function r(t,n,i){var o=void 0,a="[object Array]"===Object.prototype.toString.call(n),s="[object Object]"===Object.prototype.toString.call(n);e(n,function(e,n){o=Object.prototype.toString.call(n),i&&(e=i+"["+(s||"[object Object]"===o||"[object Array]"===o?e:"")+"]"),!i&&a?t.add(n.name,n.value):"[object Array]"===o||"[object Object]"===o?r(t,n,e):t.add(e,n)})}if(t){return function(t){var e=[];return e.add=function(t,e){"[object Function]"===Object.prototype.toString.call(e)&&(e=e()),null==e&&(e=""),this.push(encodeURIComponent(t)+"="+encodeURIComponent(e))},r(e,t),e.join("&").replace(/%20/g,"+")}(t)}}]}).then(function(t){i(t)}).catch(function(t){o(t)})})}},115:function(t,e,r){var n=r(106),i=r(3)("iterator"),o=r(18);t.exports=r(0).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[n(t)]}},116:function(t,e,r){"use strict";function n(t){t.preventDefault()}var i={watch:{isVisible:function(t){t?document.body.addEventListener("touchmove",n,{passive:!1}):document.body.removeEventListener("touchmove",n,{passive:!1})}},beforeDestroy:function(){document.body.removeEventListener("touchmove",n,{passive:!1})}};e.a=i},117:function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},119:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(153);e.default=n.a},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},121:function(t,e){},1212:function(t,e,r){"use strict";function n(t){s||r(1213)}var i=r(1047),o=r(1214),a=r(1),s=!1,c=n,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-1da413b4",null);u.options.__file="src\\components\\GoldProtocol\\src\\index.vue",e.a=u.exports},1213:function(t,e){},1214:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"act-gold-protocol"},[t.showCheckBox?r("div",{staticClass:"act-gold-protocol-check",on:{click:function(e){return e.stopPropagation(),t.protocolToggle.apply(null,arguments)}}},[r("i",{staticClass:"act-gold-protocol-icon",class:{checked:t.protocolChecked},style:{"background-color":t.protocolChecked?t.brandColor:""}})]):t._e(),t._v(" "),r("div",{staticClass:"act-gold-protocol-text",style:{color:t.textColor,"font-size":t.fontSize}},[r("span",{domProps:{innerHTML:t._s(t.text)}}),t._v(" "),t._l(t.protocols,function(e,n){return[n==t.protocols.length-1&&0!=n?r("span",{key:n+"span"},[t._v("和")]):0!=n?r("span",{key:n+"span"},[t._v("、")]):t._e(),t._v(" "),e.track?r("a",{key:n+"a",staticClass:"act-gold-protocol-item",style:{color:t.brandColor},attrs:{"data-track":e.track},on:{click:function(r){return t.onClick(e)}}},[t._v("《"+t._s(e.title)+"》")]):r("a",{key:n+"a",staticClass:"act-gold-protocol-item",style:{color:t.brandColor},attrs:{"data-track":e.track||""},on:{click:function(r){return t.onClick(e)}}},[t._v("《"+t._s(e.title)+"》")])]}),t._v(" "),r("span",{domProps:{innerHTML:t._s(t.tips)}})],2)])},i=[];n._withStripped=!0},122:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-popup",class:t.typeClass,style:{pointerEvents:t.pointerEvent,zIndex:t.zIndex}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.mask,expression:"mask"}],staticClass:"act-popup-mask act-row act-middle",style:{backgroundColor:t.maskBgColor},on:{click:t.maskClick}},[t._t("mask")],2),t._v(" "),r("div",{staticClass:"act-popup-container",class:{"act-popup-center":t.center}},[t.$slots.default?r("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius}},[t._t("default")],2):r("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius},domProps:{innerHTML:t._s(t.content)}})])])},i=[];n._withStripped=!0},123:function(t,e,r){t.exports={default:r(186),__esModule:!0}},124:function(t,e,r){"use strict";function n(t){s||r(201)}var i=r(155),o=r(202),a=r(1),s=!1,c=n,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-f3b563a0",null);u.options.__file="src\\components\\common\\goldlayer.vue",e.a=u.exports},1248:function(t,e,r){"use strict";var n=r(1301),i=r.n(n),o=r(123),a=r.n(o),s=r(124),c=r(327),u=r(19),l=r(4);e.a={name:"ActGoldReadTerms",mixins:[u.a],components:{scrollZoom:c.a,ActGoldLayer:s.a},data:function(){return{curIndex:1,readState:[],termsInfo:[],readTimer:null,countdown:0,prevTime:void 0}},computed:{readTermsLength:function(){return this.readTerms.length},bookTitle:function(){var t=this.termsInfo[this.curIndex-1]&&this.termsInfo[this.curIndex-1].title;return t?"《"+t+"》":""},comfirmText:function(){var t=this.confirmButtonText||"已完整阅读并确认"+this.bookTitle,e=void 0;return this.readTimer&&(e=(this.confirmButtonText?this.confirmButtonText:"已完整阅读并确认")+"("+this.countdown+"s)"),e||t},curForceReadToPageEnd:function(){return this.termsInfo[this.curIndex-1].hasOwnProperty("forceReadToPageEnd")?this.termsInfo[this.curIndex-1].forceReadToPageEnd:this.forceRead||!1},curForceReadSeconds:function(){return this.termsInfo[this.curIndex-1].hasOwnProperty("forceReadSeconds")?this.termsInfo[this.curIndex-1].forceReadSeconds:this.forceReadTime||0},isWebTester:function(){return l.x}},props:{readTerms:{type:Array,default:function(){return[]}},forceRead:{type:Boolean,default:!0},forceReadTime:{type:Number,default:0},confirmButtonText:{type:String,default:""},cancelButtonText:{type:String,default:"暂不同意"},brandColor:{type:String,default:"#8c7fee"},beforeClose:{type:Function,default:null},beforePreOrNext:{type:Function,default:null}},methods:{getTerms:function(t){for(var e=[],r=t,n=Array.isArray(r),i=0,r=n?r:a()(r);;){var o;if(n){if(i>=r.length)break;o=r[i++]}else{if(i=r.next(),i.done)break;o=i.value}var s=o,c={type:Number(s.type),title:s.title,urls:s.urls,innerHTML:s.innerHTML||"",souceFile:s.src,init:!1,classObject:{"scroll-pdf":!1,"scroll-word":!1},myScroll:null,styleImg:{height:"auto"},freeScroll:!0,scrollbar:{fade:!0,interactive:!0},bounce:{bottom:!1,left:!1,right:!1,top:!1},zoom:!0,listenScrollInit:!0,listenScrollEnd:!0,listenZoomEnd:!1,listenScroll:!1,mouseWheel:!0,currentScale:1,scrollY:0,cWidth:0,cHeight:0,liTag:null,wordHtml:"",currentPage:0,isLoading:!1};s.hasOwnProperty("forceReadToPageEnd")&&(c.forceReadToPageEnd=!!+s.forceReadToPageEnd),s.hasOwnProperty("forceReadSeconds")&&(c.forceReadSeconds=+s.forceReadSeconds),e.push(c)}this.termsInfo=e},showDoc:function(t){var e=this;this.$nextTick(function(){e.$refs.scrollZoom.showDoc(t)})},changeHeaderBtnsColor:function(t){var e=this,r=this.$refs,n=r.prevbtn,i=r.nextbtn,o=function(){e.readTimer?i.style.color="":i.style.color=e.brandColor};1==~~t&&~~t<this.readTermsLength?(n&&(n.style.color=""),i&&o()):~~t>1&&~~t<this.readTermsLength?(n&&(n.style.color=this.brandColor),i&&o()):~~t>1&&~~t===this.readTermsLength&&(n&&(n.style.color=this.brandColor),i&&(i.style.color=""))},handleActionBeforePreOrNext:function(t,e){function r(t){i.curIndex>1&&(i.curIndex=o-1,2===i.termsInfo[i.curIndex-1].type&&i.showDoc(i.curIndex-1))}function n(t){i.curIndex<i.readTermsLength&&i.next(t)}var i=this,o=~~this.curIndex,a=this.termsInfo[o-1];this.beforePreOrNext?this.beforePreOrNext({action:t,next:function(i){!1!==i&&("prevClick"===t&&r(e),"nextClick"===t&&n(e))},curTermsInfo:a,curIndex:i.curIndex,readTermsLength:i.readTermsLength,isLast:i.curIndex===i.readTermsLength,curIsReadEnd:i.readState[i.curIndex-1].readEnd}):("prevClick"===t&&r(e),"nextClick"===t&&n(e))},handlePrev:function(t){1!==this.curIndex&&(this.readTimer&&this.resetReadTimer(),this.handleActionBeforePreOrNext("prevClick",t))},handleNext:function(t){this.readTimer||this.handleActionBeforePreOrNext("nextClick",t)},beforeShowDoc:function(t){+this.curForceReadSeconds>0&&!this.readState[t-1].readEnough&&this.setReadTimer(),this.changeHeaderBtnsColor(t),this.getCurTermInfo({curIndex:t,isReadEnd:this.readState[t-1].readEnd,totalLegth:this.readTermsLength,curTerm:this.termsInfo[t-1]}),!this.curForceReadToPageEnd&&!this.curForceReadSeconds&&1==~~this.readTermsLength&&this.canINext(!0)},timerFn:function(t){if(this.prevTime){if(t-this.prevTime>1e3){if(!(this.countdown>0))return this.countdown=0,this.readState[this.curIndex-1].readEnough=!0,this.changeHeaderBtnsColor(this.curIndex),void this.resetReadTimer();this.prevTime=t,this.countdown=--this.countdown}}else this.prevTime=t;this.readTimer=requestAnimationFrame(this.timerFn)},setReadTimer:function(){this.readTimer&&this.resetReadTimer(),this.countdown=i()(this.curForceReadSeconds),this.readTimer=requestAnimationFrame(this.timerFn),this.changeHeaderBtnsColor()},resetReadTimer:function(){cancelAnimationFrame(this.readTimer),this.readTimer=null},next:function(t){var e=~~this.curIndex;!this.curForceReadToPageEnd&&this.canINext(!0),this.curForceReadToPageEnd&&this.readState[e-1].readEnd||!this.curForceReadToPageEnd?e<this.readTermsLength&&(this.curIndex=e+1,this.showDoc(e)):this.curForceReadToPageEnd&&!this.readState[e-1].readEnd&&this.showToast("请观看至页面底部,完整阅读全部内容")},getCurTermInfo:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.$emit("getCurTermInfo",t)},canINext:function(t){this.readTermsLength&&(this.readState[this.curIndex-1].readEnd=t,this.getCurTermInfo({curIndex:this.curIndex,isReadEnd:this.readState[this.curIndex-1].readEnd,totalLegth:this.readTermsLength,curTerm:this.termsInfo.length&&this.termsInfo[this.curIndex-1]}))},confirm:function(t){if(!this.readTimer){this.curForceReadToPageEnd&&!this.readState[this.readTermsLength-1].readEnd&&this.curIndex<=this.readTermsLength||!this.curForceReadToPageEnd&&this.curIndex<this.readTermsLength?this.next(t):this.handleAction("confirm",t)}},cancel:function(t){this.handleAction("cancel",t)},handleAction:function(t,e){var r=this,n=this.termsInfo[this.curIndex-1];this.beforeClose?this.beforeClose(t,function(n){!1!==n&&(r.hide(),r.$emit(t,e))},n):(this.hide(),this.$emit(t,e))},showToast:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;this.hideToast(),this.toast||(this.toast=this.$createToast()),this.toast.show(t,e)},hideToast:function(){this.toast&&this.toast.hide()},preventMove:function(t){t._prevent=!0},reset:function(){this.curIndex=1,this.readState=new Array(this.readTermsLength).fill(void 0).map(function(t){return{readEnd:!1,readEnough:!1}})},mucReadTerms:function(t){var e=this;if(this.isWebTester){if("step"===t._mucMethod){!function r(){if(e.isVisible){var n=~~e.curIndex;e.curForceReadToPageEnd&&!e.readState[n-1].readEnd&&e.canINext(!0),setTimeout(function(){e.confirm(t),n<e.readTermsLength&&e.$nextTick(function(){r()})},1e3*(e.countdown+1))}}()}else this.handleAction("confirm",t)}}},mounted:function(){this.changeHeaderBtnsColor(this.curIndex)},watch:{isVisible:function(t){t&&(this.reset(),this.getTerms(this.readTerms),this.beforeShowDoc(this.curIndex),this.showDoc(0)),!1==!!t&&this.resetReadTimer()},curIndex:function(t){this.beforeShowDoc(t)}}}},1249:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},127:function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},128:function(t,e,r){"use strict";function n(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=r(17);t.exports=function(t,e,r){if(!e)return t;var o;if(r)o=r(e);else if(i.isURLSearchParams(e))o=e.toString();else{var a=[];i.forEach(e,function(t,e){null!==t&&void 0!==t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(n(e)+"="+n(t))}))}),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},129:function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},1299:function(t,e,r){"use strict";function n(t){s||r(1300)}var i=r(1248),o=r(1306),a=r(1),s=!1,c=n,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-21ba486f",null);u.options.__file="src\\components\\GoldReadTerms\\src\\index.vue",e.a=u.exports},13:function(t,e,r){var n=r(2),i=r(0),o=r(38),a=r(7),s=r(6),c=function(t,e,r){var u,l,h,f=t&c.F,d=t&c.G,p=t&c.S,v=t&c.P,m=t&c.B,g=t&c.W,y=d?i:i[e]||(i[e]={}),b=y.prototype,_=d?n:p?n[e]:(n[e]||{}).prototype;d&&(r=e);for(u in r)(l=!f&&_&&void 0!==_[u])&&s(y,u)||(h=l?_[u]:r[u],y[u]=d&&"function"!=typeof _[u]?r[u]:m&&l?o(h,n):g&&_[u]==h?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):v&&"function"==typeof h?o(Function.call,h):h,v&&((y.virtual||(y.virtual={}))[u]=h,t&c.R&&b&&!b[u]&&a(b,u,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},130:function(t,e,r){"use strict";(function(e){function n(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var i=r(17),o=r(173),a={"Content-Type":"application/x-www-form-urlencoded"},s={adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=r(131):void 0!==e&&"[object process]"===Object.prototype.toString.call(e)&&(t=r(131)),t}(),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(n(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(n(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(t){s.headers[t]={}}),i.forEach(["post","put","patch"],function(t){s.headers[t]=i.merge(a)}),t.exports=s}).call(e,r(154))},1300:function(t,e){},1301:function(t,e,r){t.exports={default:r(1302),__esModule:!0}},1302:function(t,e,r){r(1303),t.exports=r(0).Number.parseInt},1303:function(t,e,r){var n=r(13),i=r(1304);n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},1304:function(t,e,r){var n=r(2).parseInt,i=r(1305).trim,o=r(1249),a=/^[-+]?0[xX]/;t.exports=8!==n(o+"08")||22!==n(o+"0x16")?function(t,e){var r=i(String(t),3);return n(r,e>>>0||(a.test(r)?16:10))}:n},1305:function(t,e,r){var n=r(13),i=r(29),o=r(12),a=r(1249),s="["+a+"]",c="​…",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),h=function(t,e,r){var i={},s=o(function(){return!!a[t]()||c[t]()!=c}),u=i[t]=s?e(f):a[t];r&&(i[r]=u),n(n.P+n.F*s,"String",i)},f=h.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(l,"")),t};t.exports=h},1306:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("act-gold-layer",{attrs:{visible:t.isVisible,center:!1}},[r("div",{staticClass:"readterms-title",attrs:{slot:"header"},slot:"header"},[t.$slots.myheader?[t._t("myheader")]:[t.readTermsLength>1?r("span",{ref:"prevbtn",staticClass:"prev h-btn",on:{click:t.handlePrev}},[t._v("上一页")]):t._e(),t._v(" "),r("span",[t._v("请阅读以下内容"),t.readTermsLength>1?r("span",[t._v("("+t._s(t.curIndex)+"/"+t._s(t.readTermsLength)+")")]):t._e()]),t._v(" "),t.readTermsLength>1?r("span",{ref:"nextbtn",staticClass:"next h-btn",on:{click:t.handleNext}},[t._v("下一页")]):t._e()]],2),t._v(" "),t.isVisible?r("scroll-zoom",{ref:"scrollZoom",staticClass:"scroll-zoom",attrs:{termsInfo:t.termsInfo,forceRead:t.curForceReadToPageEnd,docIndex:t.curIndex-1,brandColor:t.brandColor},on:{canINext:t.canINext}}):t._e(),t._v(" "),t.$slots.footer?r("div",[t._t("footer")],2):[r("div",{staticClass:"bottom-btn-placeholder"}),t._v(" "),r("div",{staticClass:"readterms-btns"},[r("div",{staticClass:"f-btn left",on:{click:t.cancel}},[r("p",[t._v(t._s(t.cancelButtonText))])]),t._v(" "),r("div",{staticClass:"f-btn right",class:{disabled:t.readTimer},style:{background:t.readTimer?"#f2f2f2":t.brandColor},attrs:{"data-key":[t.isWebTester?"readTermsBtn":""]},on:{click:t.confirm,mucReadTerms:t.mucReadTerms}},[r("p",[t._v(t._s(t.comfirmText))]),t._v(" "),t.$slots.fIcon?t._t("fIcon"):t._e()],2)])]],2)},i=[];n._withStripped=!0},131:function(t,e,r){"use strict";var n=r(17),i=r(174),o=r(128),a=r(176),s=r(179),c=r(180),u=r(132);t.exports=function(t){return new Promise(function(e,l){var h=t.data,f=t.headers;n.isFormData(h)&&delete f["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",v=t.auth.password||"";f.Authorization="Basic "+btoa(p+":"+v)}var m=a(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),o(m,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,n=t.responseType&&"text"!==t.responseType?d.response:d.responseText,o={data:n,status:d.status,statusText:d.statusText,headers:r,config:t,request:d};i(e,l,o),d=null}},d.onabort=function(){d&&(l(u("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){l(u("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),l(u(e,t,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var g=r(181),y=(t.withCredentials||c(m))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;y&&(f[t.xsrfHeaderName]=y)}if("setRequestHeader"in d&&n.forEach(f,function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete f[e]:d.setRequestHeader(e,t)}),n.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){d&&(d.abort(),l(t),d=null)}),void 0===h&&(h=null),d.send(h)})}},132:function(t,e,r){"use strict";var n=r(175);t.exports=function(t,e,r,i,o){var a=new Error(t);return n(a,e,r,i,o)}},133:function(t,e,r){"use strict";var n=r(17);t.exports=function(t,e){e=e||{};var r={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(i,function(t){void 0!==e[t]&&(r[t]=e[t])}),n.forEach(o,function(i){n.isObject(e[i])?r[i]=n.deepMerge(t[i],e[i]):void 0!==e[i]?r[i]=e[i]:n.isObject(t[i])?r[i]=n.deepMerge(t[i]):void 0!==t[i]&&(r[i]=t[i])}),n.forEach(a,function(n){void 0!==e[n]?r[n]=e[n]:void 0!==t[n]&&(r[n]=t[n])});var s=i.concat(o).concat(a),c=Object.keys(e).filter(function(t){return-1===s.indexOf(t)});return n.forEach(c,function(n){void 0!==e[n]?r[n]=e[n]:void 0!==t[n]&&(r[n]=t[n])}),r}},134:function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},136:function(t,e,r){var n=r(38),i=r(138),o=r(139),a=r(9),s=r(59),c=r(115),u={},l={},e=t.exports=function(t,e,r,h,f){var d,p,v,m,g=f?function(){return t}:c(t),y=n(r,h,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(d=s(t.length);d>b;b++)if((m=e?y(a(p=t[b])[0],p[1]):y(t[b]))===u||m===l)return m}else for(v=g.call(t);!(p=v.next()).done;)if((m=i(v,y,p.value,e))===u||m===l)return m};e.BREAK=u,e.RETURN=l},138:function(t,e,r){var n=r(9);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},139:function(t,e,r){var n=r(18),i=r(3)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},14:function(t,e,r){"use strict";function n(t,e){return function(r,n){var a=this,s=Object(i.a)(r),c=Object(o.a)(e,t,s,n),u=c.$parent,l=c.remove,h=c.show,f=c.hide;return c.remove=function(){c.$removed=!0,l&&l.call(this),u.destroy()},c.show=function(){return h&&h.call.apply(h,[this].concat(Array.prototype.slice.call(arguments))),this},c.hide=function(){return f&&f.call.apply(f,[this].concat(Array.prototype.slice.call(arguments))),this},a&&a._isVue&&a.$once("hook:beforeDestroy",function(){c.$removed||c.remove()}),c}}e.a=n;var i=r(101),o=r(103)},140:function(t,e,r){var n=r(3)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},t(o)}catch(t){}return r}},141:function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},142:function(t,e,r){var n=r(7);t.exports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}},143:function(t,e,r){"use strict";var n=r(2),i=r(0),o=r(8),a=r(5),s=r(3)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:n[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},144:function(t,e,r){r(61),r(53),r(56),r(145),r(149),r(150),t.exports=r(0).Promise},145:function(t,e,r){"use strict";var n,i,o,a,s=r(16),c=r(2),u=r(38),l=r(106),h=r(13),f=r(10),d=r(39),p=r(141),v=r(136),m=r(110),g=r(111).set,y=r(147)(),b=r(68),_=r(112),w=r(148),S=r(113),A=c.TypeError,x=c.process,T=x&&x.versions,k=T&&T.v8||"",P=c.Promise,C="process"==l(x),R=function(){},E=i=b.f,O=!!function(){try{var t=P.resolve(1),e=(t.constructor={})[r(3)("species")]=function(t){t(R,R)};return(C||"function"==typeof PromiseRejectionEvent)&&t.then(R)instanceof e&&0!==k.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),L=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var r=t._c;y(function(){for(var n=t._v,i=1==t._s,o=0;r.length>o;)!function(e){var r,o,a,s=i?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{s?(i||(2==t._h&&D(t),t._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===e.promise?u(A("Promise-chain cycle")):(o=L(r))?o.call(r,c,u):c(r)):u(n)}catch(t){l&&!a&&l.exit(),u(t)}}(r[o++]);t._c=[],t._n=!1,e&&!t._h&&M(t)})}},M=function(t){g.call(c,function(){var e,r,n,i=t._v,o=F(t);if(o&&(e=_(function(){C?x.emit("unhandledRejection",i,t):(r=c.onunhandledrejection)?r({promise:t,reason:i}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",i)}),t._h=C||F(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},F=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){g.call(c,function(){var e;C?x.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},j=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},N=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw A("Promise can't be resolved itself");(e=L(t))?y(function(){var n={_w:r,_d:!1};try{e.call(t,u(N,n,1),u(j,n,1))}catch(t){j.call(n,t)}}):(r._v=t,r._s=1,I(r,!1))}catch(t){j.call({_w:r,_d:!1},t)}}};O||(P=function(t){p(this,P,"Promise","_h"),d(t),n.call(this);try{t(u(N,this,1),u(j,this,1))}catch(t){j.call(this,t)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(142)(P.prototype,{then:function(t,e){var r=E(m(this,P));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=C?x.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&I(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=u(N,t,1),this.reject=u(j,t,1)},b.f=E=function(t){return t===P||t===a?new o(t):i(t)}),h(h.G+h.W+h.F*!O,{Promise:P}),r(27)(P,"Promise"),r(143)("Promise"),a=r(0).Promise,h(h.S+h.F*!O,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!O),"Promise",{resolve:function(t){return S(s&&this===a?P:this,t)}}),h(h.S+h.F*!(O&&r(140)(function(t){P.all(t).catch(R)})),"Promise",{all:function(t){var e=this,r=E(e),n=r.resolve,i=r.reject,o=_(function(){var r=[],o=0,a=1;v(t,!1,function(t){var s=o++,c=!1;r.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,r[s]=t,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=E(e),n=r.reject,i=_(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},146:function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},147:function(t,e,r){var n=r(2),i=r(111).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,c="process"==r(26)(a);t.exports=function(){var t,e,r,u=function(){var n,i;for(c&&(n=a.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(c)r=function(){a.nextTick(u)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(u)}}else r=function(){i.call(n,u)};else{var h=!0,f=document.createTextNode("");new o(u).observe(f,{characterData:!0}),r=function(){f.data=h=!h}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},148:function(t,e,r){var n=r(2),i=n.navigator;t.exports=i&&i.userAgent||""},149:function(t,e,r){"use strict";var n=r(13),i=r(0),o=r(2),a=r(110),s=r(113);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return s(e,t()).then(function(){return r})}:t,r?function(r){return s(e,t()).then(function(){throw r})}:t)}})},15:function(t,e,r){var n=r(50),i=r(33);t.exports=Object.keys||function(t){return n(t,i)}},150:function(t,e,r){"use strict";var n=r(13),i=r(68),o=r(112);n(n.S,"Promise",{try:function(t){var e=i.f(this),r=o(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},152:function(t,e,r){"use strict";r.d(e,"a",function(){return i});var n=r(4),i=function(){var t=!0;if(n.I.isIOS){var e=Object(n.l)(navigator.userAgent.toLowerCase());if(!e)return t;Number(""+e.major+e.minor)>=133&&(t=!1)}return t}()},153:function(t,e,r){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function i(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=0;i<r.length;i++){var o=r[i];for(var a in o)t[a]=o[a]}return t}function o(t){return void 0===t||null===t}function a(t,e){return Math.sqrt(t*t+e*e)}function s(t){return!1!==D&&("standard"===D?"transitionEnd"===t?"transitionend":t:D+t.charAt(0).toUpperCase()+t.substr(1))}function c(t,e,r,n){t.addEventListener(e,r,{passive:!1,capture:!!n})}function u(t,e,r,n){t.removeEventListener(e,r,{passive:!1,capture:!!n})}function l(t){for(var e=0,r=0;t;)e-=t.offsetLeft,r-=t.offsetTop,t=t.offsetParent;return{left:e,top:r}}function h(t){var e=t.getBoundingClientRect();return{left:-(e.left+window.pageXOffset),top:-(e.top+window.pageYOffset)}}function f(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function d(t,e){for(var r in e)if(e[r].test(t[r]))return!0;return!1}function p(t,e){var r=document.createEvent("Event");r.initEvent(e,!0,!0),r.pageX=t.pageX,r.pageY=t.pageY,t.target.dispatchEvent(r)}function v(t){function e(){a=document.createEvent("Event"),a.initEvent(r,s,c),i(a,o)}var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",n=void 0;"mouseup"===t.type||"mousecancel"===t.type?n=t:"touchend"!==t.type&&"touchcancel"!==t.type||(n=t.changedTouches[0]);var o={};n&&(o.screenX=n.screenX||0,o.screenY=n.screenY||0,o.clientX=n.clientX||0,o.clientY=n.clientY||0);var a=void 0,s=!0,c=!0;if("undefined"!=typeof MouseEvent)try{a=new MouseEvent(r,i({bubbles:s,cancelable:c},o))}catch(t){e()}else e();a.forwardedTouchEvent=!0,a._constructed=!0,t.target.dispatchEvent(a)}function m(t){v(t,"dblclick")}function g(t,e){e.firstChild?y(t,e.firstChild):e.appendChild(t)}function y(t,e){e.parentNode.insertBefore(t,e)}function b(t,e){t.removeChild(e)}function _(t,e,r,n,i,o,a){var s=t-e,c=Math.abs(s)/r,u=a.deceleration,l=a.itemHeight,h=a.swipeBounceTime,f=a.wheel,d=a.swipeTime,p=d,v=f?4:15,m=t+c/u*(s<0?-1:1);return f&&l&&(m=Math.round(m/l)*l),m<n?(m=o?Math.max(n-o/4,n-o/v*c):n,p=h):m>i&&(m=o?Math.min(i+o/4,i+o/v*c):i,p=h),{destination:Math.round(m),duration:p}}function w(){}function S(t){console.error("[BScroll warn]: "+t)}function A(t,e){if(!t)throw new Error("[BScroll] "+e)}function x(t){var e=document.createElement("div"),r=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",r.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",r.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",r.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",r.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(r),e}function T(t,e){this.wrapper=e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=e.direction,e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,e.interactive&&this._addDOMEvents()}function k(t){if(t&&t.classList)return t.classList.contains("tombstone")}function P(t,e){var r=this;this.options=e,A("function"==typeof this.options.createTombstone,"Infinite scroll need createTombstone Function to create tombstone"),A("function"==typeof this.options.fetch,"Infinite scroll need fetch Function to fetch new data."),A("function"==typeof this.options.render,"Infinite scroll need render Function to render each item."),this.firstAttachedItem=0,this.lastAttachedItem=0,this.anchorScrollTop=0,this.anchorItem={index:0,offset:0},this.tombstoneHeight=0,this.tombstoneWidth=0,this.tombstones=[],this.items=[],this.loadedItems=0,this.requestInProgress=!1,this.hasMore=!0,this.scroller=t,this.wrapperEl=this.scroller.wrapper,this.scrollerEl=this.scroller.scroller,this.scroller.on("scroll",function(){r.onScroll()}),this.scroller.on("resize",function(){r.onResize()}),this.onResize()}function C(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||S("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||S("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(t,e)}var R=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)},O="undefined"!=typeof window,L=O&&navigator.userAgent.toLowerCase(),I=L&&/wechatdevtools/.test(L),M=L&&L.indexOf("android")>0,F=O&&document.createElement("div").style,D=function(){if(!O)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==F[t[e]])return e;return!1}(),j=s("transform"),N=O&&s("perspective")in F,U=O&&("ontouchstart"in window||I),B=!1!==j,W=O&&s("transition")in F,q={transform:j,transitionTimingFunction:s("transitionTimingFunction"),transitionDuration:s("transitionDuration"),transitionDelay:s("transitionDelay"),transformOrigin:s("transformOrigin"),transitionEnd:s("transitionEnd")},Y=1,z={touchstart:Y,touchmove:Y,touchend:Y,mousedown:2,mousemove:2,mouseup:2},X={startX:0,startY:0,scrollX:!1,scrollY:!0,freeScroll:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!0,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.0015,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:0,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:!1,disableMouse:U,disableTouch:!U,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1,stopPropagation:!1,zoom:!1,infinity:!1,dblclick:!1},H={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},G=function(){return O?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:w}(),V=function(){return O?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:w}(),$=1,Q=-1,K=1,J=-1,Z=1,tt=3;T.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t);break;case"touchmove":case"mousemove":this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this._end(t)}},T.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},T.prototype.fade=function(t,e){var r=this;if(!e||this.visible){var n=t?250:500;t=t?"1":"0",this.wrapperStyle[q.transitionDuration]=n+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){r.wrapperStyle.opacity=t,r.visible=+t},0)}},T.prototype.updatePosition=function(){if("vertical"===this.direction){var t=Math.round(this.sizeRatioY*this.scroller.y);if(t<0){this.transitionTime(500);var e=Math.max(this.indicatorHeight+3*t,8);this.indicatorStyle.height=e+"px",t=0}else if(t>this.maxPosY){this.transitionTime(500);var r=Math.max(this.indicatorHeight-3*(t-this.maxPosY),8);this.indicatorStyle.height=r+"px",t=this.maxPosY+this.indicatorHeight-r}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[q.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var n=Math.round(this.sizeRatioX*this.scroller.x);if(n<0){this.transitionTime(500);var i=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=i+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var o=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=o+"px",n=this.maxPosX+this.indicatorWidth-o}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[q.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},T.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[q.transitionDuration]=t+"ms"},T.prototype.transitionTimingFunction=function(t){this.indicatorStyle[q.transitionTimingFunction]=t},T.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},T.prototype._start=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=n(),this._handleMoveEvents(c),this.scroller.trigger("beforeScrollStart")},T.prototype._move=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart"),this.moved=!0;var r=e.pageX-this.lastPointX;this.lastPointX=e.pageX;var n=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var i=this.x+r,o=this.y+n;this._pos(i,o)},T.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(u);var e=this.scroller.options.snap;if(e){var r=e.speed,n=e.easing,i=void 0===n?H.bounce:n,o=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),a=r||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-o.x),1e3),Math.min(Math.abs(this.scroller.y-o.y),1e3)),300);this.scroller.x===o.x&&this.scroller.y===o.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=o,this.scroller.scrollTo(o.x,o.y,a,i))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},T.prototype._pos=function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=Math.round(t/this.sizeRatioX),e=Math.round(e/this.sizeRatioY),this.scroller.scrollTo(t,e),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},T.prototype._shouldShow=function(){return"vertical"===this.direction&&this.scroller.hasVerticalScroll||"horizontal"===this.direction&&this.scroller.hasHorizontalScroll?(this.wrapper.style.display="",!0):(this.wrapper.style.display="none",!1)},T.prototype._calculate=function(){if("vertical"===this.direction){var t=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(t*t/(this.scroller.scrollerHeight||t||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=t-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{var e=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(e*e/(this.scroller.scrollerWidth||e||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=e-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},T.prototype._addDOMEvents=function(){var t=c;this._handleDOMEvents(t)},T.prototype._removeDOMEvents=function(){var t=u;this._handleDOMEvents(t),this._handleMoveEvents(t)},T.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},T.prototype._handleDOMEvents=function(t){this.scroller.options.disableTouch||(t(this.indicator,"touchstart",this),t(window,"touchend",this)),this.scroller.options.disableMouse||(t(this.indicator,"mousedown",this),t(window,"mouseup",this))};var et=2e3;P.prototype.onScroll=function(){var t=-this.scroller.y,e=t-this.anchorScrollTop;this.anchorItem=0===t?{index:0,offset:0}:this._calculateAnchoredItem(this.anchorItem,e),this.anchorScrollTop=t;var r=this._calculateAnchoredItem(this.anchorItem,this.wrapperEl.offsetHeight),n=this.anchorItem.index,i=r.index;e<0?(n-=30,i+=10):(n-=10,i+=30),this.fill(n,i),this.maybeRequestContent()},P.prototype.onResize=function(){var t=this.options.createTombstone();t.style.position="absolute",this.scrollerEl.appendChild(t),t.style.display="",this.tombstoneHeight=t.offsetHeight,this.tombstoneWidth=t.offsetWidth,this.scrollerEl.removeChild(t);for(var e=0;e<this.items.length;e++)this.items[e].height=this.items[e].width=0;this.onScroll()},P.prototype.fill=function(t,e){this.firstAttachedItem=Math.max(0,t),this.hasMore||(e=Math.min(e,this.items.length)),this.lastAttachedItem=e,this.attachContent()},P.prototype.maybeRequestContent=function(){var t=this;if(!this.requestInProgress&&this.hasMore){var e=this.lastAttachedItem-this.loadedItems;e<=0||(this.requestInProgress=!0,this.options.fetch(e).then(function(e){if(t.requestInProgress=!1,e)t.addContent(e);else{t.hasMore=!1;var r=t._removeTombstones(),n=0;t.anchorItem.index<=t.items.length?(n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=r,n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}}))}},P.prototype.addContent=function(t){for(var e=0;e<t.length;e++)this.items.length<=this.loadedItems&&this._addItem(),this.items[this.loadedItems++].data=t[e];this.attachContent(),this.maybeRequestContent()},P.prototype.attachContent=function(){var t=this._collectUnusedNodes(),e=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var r=this._fixScrollPosition();this._setupAnimations(e,r)},P.prototype.resetMore=function(){this.hasMore=!0},P.prototype._removeTombstones=function(){for(var t=void 0,e=0,r=this.items.length,n=0;n<r;n++){var i=this.items[n].node,o=this.items[n].data;i&&!k(i)||o||(t||(t=n),i&&this.scrollerEl.removeChild(i))}return e=r-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),e},P.prototype._collectUnusedNodes=function(){for(var t=[],e=0;e<this.items.length;e++)if(e!==this.firstAttachedItem){var r=this.items[e].node;r&&(k(r)?(this.tombstones.push(r),this.tombstones[this.tombstones.length-1].style.display="none"):t.push(r)),this.items[e].node=null}else e=this.lastAttachedItem-1;return t},P.prototype._createDOMNodes=function(t){for(var e={},r=this.firstAttachedItem;r<this.lastAttachedItem;r++){for(;this.items.length<=r;)this._addItem();var n=this.items[r].node,i=this.items[r].data;if(n){if(!k(n)||!i)continue;n.style.zIndex=1,e[r]=[n,this.items[r].top-this.anchorScrollTop],this.items[r].node=null}var o=i?this.options.render(i,t.pop()):this._getTombStone();o.style.position="absolute",this.items[r].top=-1,this.scrollerEl.appendChild(o),this.items[r].node=o}return e},P.prototype._cleanupUnusedNodes=function(t){for(;t.length;)this.scrollerEl.removeChild(t.pop())},P.prototype._cacheNodeSize=function(){for(var t=this.firstAttachedItem;t<this.lastAttachedItem;t++)this.items[t].data&&!this.items[t].height&&(this.items[t].height=this.items[t].node.offsetHeight,this.items[t].width=this.items[t].node.offsetWidth)},P.prototype._fixScrollPosition=function(){this.anchorScrollTop=0;for(var t=0;t<this.anchorItem.index;t++)this.anchorScrollTop+=this.items[t].height||this.tombstoneHeight;this.anchorScrollTop+=this.anchorItem.offset;for(var e=this.anchorScrollTop-this.anchorItem.offset,r=this.anchorItem.index;r>this.firstAttachedItem;)e-=this.items[r-1].height||this.tombstoneHeight,r--;return e},P.prototype._setupAnimations=function(t,e){var r=this;for(var n in t){var i=t[n];this.items[n].node.style.transform="translateY("+(this.anchorScrollTop+i[1])+"px) scale("+this.tombstoneWidth/this.items[n].width+", "+this.tombstoneHeight/this.items[n].height+")",this.items[n].node.offsetTop,i[0].offsetTop,this.items[n].node.style.transition="transform 200ms"}for(var o=this.firstAttachedItem;o<this.lastAttachedItem;o++){var a=t[o];if(a){var s=a[0];s.style.transition="transform 200ms, opacity 200ms",s.style.transform="translateY("+e+"px) scale("+this.items[o].width/this.tombstoneWidth+", "+this.items[o].height/this.tombstoneHeight+")",s.style.opacity=0}e!==this.items[o].top&&(a||(this.items[o].node.style.transition=""),this.items[o].node.style.transform="translateY("+e+"px)"),this.items[o].top=e,e+=this.items[o].height||this.tombstoneHeight}this.scroller.maxScrollY=-(e-this.wrapperEl.offsetHeight+(this.hasMore?et:0)),setTimeout(function(){for(var e in t){var n=t[e];n[0].style.display="none",r.tombstones.push(n[0])}},200)},P.prototype._getTombStone=function(){var t=this.tombstones.pop();return t?(t.style.display="",t.style.opacity=1,t.style.transform="",t.style.transition="",t):this.options.createTombstone()},P.prototype._addItem=function(){this.items.push({data:null,node:null,height:0,width:0,top:0})},P.prototype._calculateAnchoredItem=function(t,e){if(0===e)return t;var r=t.index,n=0;if((e+=t.offset)<0){for(;e<0&&r>0&&this.items[r-1].height;)e+=this.items[r-1].height,r--;n=Math.max(-r,Math.ceil(Math.min(e,0)/this.tombstoneHeight))}else{for(;e>0&&r<this.items.length&&this.items[r].height&&this.items[r].height<e;)e-=this.items[r].height,r++;(r>=this.items.length||!this.items[r].height)&&(n=Math.floor(Math.max(e,0)/this.tombstoneHeight))}return r+=n,e-=n*this.tombstoneHeight,{index:r,offset:e}},function(t){t.prototype._init=function(t,e){this._handleOptions(e),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype.setScale=function(t){this.lastScale=o(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=i({},X,t),this.translateZ=this.options.HWCompositing&&N?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&W,this.options.useTransform=this.options.useTransform&&B,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},t.prototype._addDOMEvents=function(){var t=c;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=u;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){var e=this.options.bindToWrapper?this.wrapper:window;t(window,"orientationchange",this),t(window,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(e,"mousemove",this),t(e,"mousecancel",this),t(e,"mouseup",this)),U&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(e,"touchmove",this),t(e,"touchcancel",this),t(e,"touchend",this)),t(this.scroller,q.transitionEnd,this)},t.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel(),this.options.zoom&&this._initZoom(),this.options.infinity&&this._initInfinite()},t.prototype._watchTransition=function(){if("function"==typeof Object.defineProperty){var t=this,e=!1,r=this.useTransition?"isInTransition":"isAnimating";Object.defineProperty(this,r,{get:function(){return e},set:function(r){e=r;for(var n=t.scroller.children.length?t.scroller.children:[t.scroller],i=e&&!t.pulling?"none":"auto",o=0;o<n.length;o++)n[o].style.pointerEvents=i}})}},t.prototype._handleAutoBlur=function(){this.on("scrollStart",function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()})},t.prototype._initDOMObserver=function(){var t=this;if("undefined"!=typeof MutationObserver){var e=void 0,r=new MutationObserver(function(r){if(!t._shouldNotRefresh()){for(var n=!1,i=!1,o=0;o<r.length;o++){var a=r[o];if("attributes"!==a.type){n=!0;break}if(a.target!==t.scroller){i=!0;break}}n?t.refresh():i&&(clearTimeout(e),e=setTimeout(function(){t._shouldNotRefresh()||t.refresh()},60))}}),n={attributes:!0,childList:!0,subtree:!0};r.observe(this.scroller,n),this.on("destroy",function(){r.disconnect()})}else this._checkDOMUpdate()},t.prototype._shouldNotRefresh=function(){var t=this.x>this.minScrollX||this.x<this.maxScrollX||this.y>this.minScrollY||this.y<this.maxScrollY;return this.isInTransition||this.stopFromTransition||t},t.prototype._checkDOMUpdate=function(){function t(){if(!this.destroyed){r=f(this.scroller);var t=r.width,o=r.height;n===t&&i===o||this.refresh(),n=t,i=o,e.call(this)}}function e(){var e=this;setTimeout(function(){t.call(e)},1e3)}var r=f(this.scroller),n=r.width,i=r.height;e.call(this)},t.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t),this.options.zoom&&t.touches&&t.touches.length>1&&this._zoomStart(t);break;case"touchmove":case"mousemove":this.options.zoom&&t.touches&&t.touches.length>1?this._zoom(t):this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.scaled?this._zoomEnd(t):this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"click":this.enabled&&!t._constructed&&(d(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation()));break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._onMouseWheel(t)}},t.prototype.refresh=function(){var t="static"===window.getComputedStyle(this.wrapper,null).position,e=f(this.wrapper);this.wrapperWidth=e.width,this.wrapperHeight=e.height;var r=f(this.scroller);this.scrollerWidth=Math.round(r.width*this.scale),this.scrollerHeight=Math.round(r.height*this.scale),this.relativeX=r.left,this.relativeY=r.top,t&&(this.relativeX-=e.left,this.relativeY-=e.top),this.minScrollX=0,this.minScrollY=0;var n=this.options.wheel;n?(this.items=this.scroller.children,this.options.itemHeight=this.itemHeight=this.items.length?this.scrollerHeight/this.items.length:0,void 0===this.selectedIndex&&(this.selectedIndex=n.selectedIndex||0),this.options.startY=-this.selectedIndex*this.itemHeight,this.maxScrollX=0,this.maxScrollY=-this.itemHeight*(this.items.length-1)):(this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.options.infinity||(this.maxScrollY=this.wrapperHeight-this.scrollerHeight),this.maxScrollX<0?(this.maxScrollX-=this.relativeX,this.minScrollX=-this.relativeX):this.scale>1&&(this.maxScrollX=this.maxScrollX/2-this.relativeX,this.minScrollX=this.maxScrollX),this.maxScrollY<0?(this.maxScrollY-=this.relativeY,this.minScrollY=-this.relativeY):this.scale>1&&(this.maxScrollY=this.maxScrollY/2-this.relativeY,this.minScrollY=this.maxScrollY)),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<this.minScrollX,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<this.minScrollY,this.hasHorizontalScroll||(this.maxScrollX=this.minScrollX,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=this.minScrollY,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=l(this.wrapper),this.trigger("refresh"),!this.scaled&&this.resetPosition()},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1}}(C),function(t){t.prototype._start=function(t){var e=z[t.type];if((e===Y||0===t.button)&&!(!this.enabled||this.destroyed||this.initiated&&this.initiated!==e)){this.initiated=e,this.options.preventDefault&&!d(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.movingDirectionX=0,this.movingDirectionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=n(),this.options.wheel&&(this.target=t.target),this.stop();var r=t.touches?t.touches[0]:t;this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=r.pageX,this.pointY=r.pageY,this.trigger("beforeScrollStart")}},t.prototype._move=function(t){if(this.enabled&&!this.destroyed&&z[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches?t.touches[0]:t,r=e.pageX-this.pointX,i=e.pageY-this.pointY;this.pointX=e.pageX,this.pointY=e.pageY,this.distX+=r,this.distY+=i;var o=Math.abs(this.distX),a=Math.abs(this.distY),s=n();if(!(s-this.endTime>this.options.momentumLimitTime&&a<this.options.momentumLimitDistance&&o<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(o>a+this.options.directionLockThreshold?this.directionLocked="h":a>=o+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);i=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);r=0}r=this.hasHorizontalScroll?r:0,i=this.hasVerticalScroll?i:0,this.movingDirectionX=r>0?J:r<0?K:0,this.movingDirectionY=i>0?Q:i<0?$:0;var c=this.x+r,u=this.y+i,l=!1,h=!1,f=!1,d=!1,p=this.options.bounce;!1!==p&&(l=void 0===p.top||p.top,h=void 0===p.bottom||p.bottom,f=void 0===p.left||p.left,d=void 0===p.right||p.right),(c>this.minScrollX||c<this.maxScrollX)&&(c=c>this.minScrollX&&f||c<this.maxScrollX&&d?this.x+r/3:c>this.minScrollX?this.minScrollX:this.maxScrollX),(u>this.minScrollY||u<this.maxScrollY)&&(u=u>this.minScrollY&&l||u<this.maxScrollY&&h?this.y+i/3:u>this.minScrollY?this.minScrollY:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(c,u),s-this.startTime>this.options.momentumLimitTime&&(this.startTime=s,this.startX=this.x,this.startY=this.y,this.options.probeType===Z&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>Z&&this.trigger("scroll",{x:this.x,y:this.y});var v=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,m=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,g=this.pointX-v,y=this.pointY-m;(g>document.documentElement.clientWidth-this.options.momentumLimitDistance||g<this.options.momentumLimitDistance||y<this.options.momentumLimitDistance||y>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)}}},t.prototype._end=function(t){if(this.enabled&&!this.destroyed&&z[t.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!d(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var e=Math.round(this.x),r=Math.round(this.y),i=e-this.absStartX,o=r-this.absStartY;if(this.directionX=i>0?J:i<0?K:0,this.directionY=o>0?Q:o<0?$:0,!this.options.pullDownRefresh||!this._checkPullDown()){if(this._checkClick(t))return void this.trigger("scrollCancel");if(!this.resetPosition(this.options.bounceTime,H.bounce)){this._translate(e,r),this.endTime=n();var a=this.endTime-this.startTime,s=Math.abs(e-this.startX),c=Math.abs(r-this.startY);if(this._events.flick&&a<this.options.flickLimitTime&&s<this.options.flickLimitDistance&&c<this.options.flickLimitDistance)return void this.trigger("flick");var u=0;if(this.options.momentum&&a<this.options.momentumLimitTime&&(c>this.options.momentumLimitDistance||s>this.options.momentumLimitDistance)){var l=!1,h=!1,f=!1,p=!1,v=this.options.bounce;!1!==v&&(l=void 0===v.top||v.top,h=void 0===v.bottom||v.bottom,f=void 0===v.left||v.left,p=void 0===v.right||v.right);var m=this.directionX===J&&f||this.directionX===K&&p?this.wrapperWidth:0,g=this.directionY===Q&&l||this.directionY===$&&h?this.wrapperHeight:0,y=this.hasHorizontalScroll?_(this.x,this.startX,a,this.maxScrollX,this.minScrollX,m,this.options):{destination:e,duration:0},b=this.hasVerticalScroll?_(this.y,this.startY,a,this.maxScrollY,this.minScrollY,g,this.options):{destination:r,duration:0};e=y.destination,r=b.destination,u=Math.max(y.duration,b.duration),this.isInTransition=!0}else this.options.wheel&&(r=Math.round(r/this.itemHeight)*this.itemHeight,u=this.options.wheel.adjustTime||400);var w=H.swipe;if(this.options.snap){var S=this._nearestSnap(e,r);this.currentPage=S,u=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(e-S.x),1e3),Math.min(Math.abs(r-S.y),1e3)),300),e=S.x,r=S.y,this.directionX=0,this.directionY=0,w=this.options.snap.easing||H.bounce}if(e!==this.x||r!==this.y)return(e>this.minScrollX||e<this.maxScrollX||r>this.minScrollY||r<this.maxScrollY)&&(w=H.swipeBounce),void this.scrollTo(e,r,u,w);this.options.wheel&&(this.selectedIndex=Math.round(Math.abs(this.y/this.itemHeight))),this.trigger("scrollEnd",{x:this.x,y:this.y})}}}},t.prototype._checkClick=function(t){var e=this.stopFromTransition&&!this.pulling;if(this.stopFromTransition=!1,!this.moved){if(this.options.wheel){if(this.target&&this.target.classList.contains(this.options.wheel.wheelWrapperClass)){var r=Math.abs(Math.round(this.y/this.itemHeight)),i=Math.round((this.pointY+h(this.wrapper).top-this.wrapperHeight/2)/this.itemHeight);this.target=this.items[r+i]}return this.scrollToElement(this.target,this.options.wheel.adjustTime||400,!0,!0,H.swipe),!0}if(!e){var o=this.options.dblclick,a=!1;if(o&&this.lastClickTime){var s=o.delay,c=void 0===s?300:s;n()-this.lastClickTime<c&&(a=!0,m(t))}return this.options.tap&&p(t,this.options.tap),this.options.click&&!d(t.target,this.options.preventDefaultException)&&v(t),this.lastClickTime=a?null:n(),!0}return!1}return!1},t.prototype._resize=function(){var t=this;this.enabled&&(M&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.refresh()},this.options.resizePolling))},t.prototype._startProbe=function(){function t(){var r=e.getComputedPosition();if(e.trigger("scroll",r),!e.isInTransition)return void e.trigger("scrollEnd",r);e.probeTimer=G(t)}V(this.probeTimer),this.probeTimer=G(t);var e=this},t.prototype._transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[q.transitionDuration]=t+"ms",this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[q.transitionDuration]=t+"ms";if(this.indicators)for(var r=0;r<this.indicators.length;r++)this.indicators[r].transitionTime(t)},t.prototype._transitionTimingFunction=function(t){if(this.scrollerStyle[q.transitionTimingFunction]=t,this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[q.transitionTimingFunction]=t;if(this.indicators)for(var r=0;r<this.indicators.length;r++)this.indicators[r].transitionTimingFunction(t)},t.prototype._transitionEnd=function(t){t.target===this.scroller&&this.isInTransition&&(this._transitionTime(),(!this.pulling||this.movingDirectionY===$)&&!this.resetPosition(this.options.bounceTime,H.bounce)&&(this.isInTransition=!1,this.options.probeType!==tt&&this.trigger("scrollEnd",{x:this.x,y:this.y})))},t.prototype._translate=function(t,e,r){if(A(!o(t)&&!o(e),"Translate x or y is null or undefined."),o(r)&&(r=this.scale),this.options.useTransform?this.scrollerStyle[q.transform]="translate("+t+"px,"+e+"px) scale("+r+")"+this.translateZ:(t=Math.round(t),e=Math.round(e),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=e+"px"),this.options.wheel)for(var n=this.options.wheel.rotate,i=void 0===n?25:n,a=0;a<this.items.length;a++){var s=i*(e/this.itemHeight+a);this.items[a].style[q.transform]="rotateX("+s+"deg)"}if(this.x=t,this.y=e,this.setScale(r),this.indicators)for(var c=0;c<this.indicators.length;c++)this.indicators[c].updatePosition()},t.prototype._animate=function(t,e,r,i){function o(){var d=n();if(d>=f)return a.isAnimating=!1,a._translate(t,e,l),a.trigger("scroll",{x:a.x,y:a.y}),void(a.pulling||a.resetPosition(a.options.bounceTime)||a.trigger("scrollEnd",{x:a.x,y:a.y}));d=(d-h)/r;var p=i(d),v=(t-s)*p+s,m=(e-c)*p+c,g=(l-u)*p+u;a._translate(v,m,g),a.isAnimating&&(a.animateTimer=G(o)),a.options.probeType===tt&&a.trigger("scroll",{x:a.x,y:a.y})}var a=this,s=this.x,c=this.y,u=this.lastScale,l=this.scale,h=n(),f=h+r;this.isAnimating=!0,V(this.animateTimer),o()},t.prototype.scrollBy=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:H.bounce;t=this.x+t,e=this.y+e,this.scrollTo(t,e,r,n)},t.prototype.scrollTo=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:H.bounce;this.isInTransition=this.options.useTransition&&r>0&&(t!==this.x||e!==this.y),!r||this.options.useTransition?(this._transitionTimingFunction(n.style),this._transitionTime(r),this._translate(t,e),r&&this.options.probeType===tt&&this._startProbe(),r||t===this.x&&e===this.y||(this.trigger("scroll",{x:t,y:e}),this._reflow=document.body.offsetHeight,this.resetPosition(this.options.bounceTime,H.bounce)||this.trigger("scrollEnd",{x:t,y:e})),this.options.wheel&&(e>this.minScrollY?this.selectedIndex=0:e<this.maxScrollY?this.selectedIndex=this.items.length-1:this.selectedIndex=Math.round(Math.abs(e/this.itemHeight)))):this._animate(t,e,r,n.fn)},t.prototype.scrollToElement=function(t,e,r,n,i){if(t&&(t=t.nodeType?t:this.scroller.querySelector(t),!this.options.wheel||t.classList.contains(this.options.wheel.wheelItemClass))){var o=l(t);o.left-=this.wrapperOffset.left,o.top-=this.wrapperOffset.top,!0===r&&(r=Math.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===n&&(n=Math.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),o.left-=r||0,o.top-=n||0,o.left=o.left>this.minScrollX?this.minScrollX:o.left<this.maxScrollX?this.maxScrollX:o.left,o.top=o.top>this.minScrollY?this.minScrollY:o.top<this.maxScrollY?this.maxScrollY:o.top,this.options.wheel&&(o.top=Math.round(o.top/this.itemHeight)*this.itemHeight),this.scrollTo(o.left,o.top,e,i)}},t.prototype.resetPosition=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H.bounce,r=this.x,n=Math.round(r);!this.hasHorizontalScroll||n>this.minScrollX?r=this.minScrollX:n<this.maxScrollX&&(r=this.maxScrollX);var i=this.y,o=Math.round(i);return!this.hasVerticalScroll||o>this.minScrollY?i=this.minScrollY:o<this.maxScrollY&&(i=this.maxScrollY),(r!==this.x||i!==this.y)&&(this.scrollTo(r,i,t,e),!0)},t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.scroller,null),e=void 0,r=void 0;return this.options.useTransform?(t=t[q.transform].split(")")[0].split(", "),e=+(t[12]||t[4]),r=+(t[13]||t[5])):(e=+t.left.replace(/[^-\d.]/g,""),r=+t.top.replace(/[^-\d.]/g,"")),{x:e,y:r}},t.prototype.stop=function(){if(this.options.useTransition&&this.isInTransition){this.isInTransition=!1,V(this.probeTimer);var t=this.getComputedPosition();this._translate(t.x,t.y),this.options.wheel?this.target=this.items[Math.round(-t.y/this.itemHeight)]:this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0}else!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,V(this.animateTimer),this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0)},t.prototype.destroy=function(){this.destroyed=!0,this.trigger("destroy"),V(this.options.useTransition?this.probeTimer:this.animateTimer),this._removeDOMEvents(),this._events={}}}(C),function(t){t.prototype.on=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events[t]||(this._events[t]=[]),this._events[t].push([e,r])},t.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(n,arguments)}var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;r.fn=e,this.on(t,r)},t.prototype.off=function(t,e){var r=this._events[t];if(r)for(var n=r.length;n--;)(r[n][0]===e||r[n][0]&&r[n][0].fn===e)&&(r[n][0]=void 0)},t.prototype.trigger=function(t){var e=this._events[t];if(e)for(var r=e.length,n=[].concat(E(e)),i=0;i<r;i++){var o=n[i],a=R(o,2),s=a[0],c=a[1];s&&s.apply(c,[].slice.call(arguments,1))}}}(C),function(t){t.prototype._initSnap=function(){var t=this;this.currentPage={};var e=this.options.snap;if(e.loop){var r=this.scroller.children;r.length>1?(g(r[r.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(r[1].cloneNode(!0))):e.loop=!1}var n=e.el;"string"==typeof n&&(n=this.scroller.querySelectorAll(n)),this.on("refresh",function(){if(t.pages=[],t.wrapperWidth&&t.wrapperHeight&&t.scrollerWidth&&t.scrollerHeight){var r=e.stepX||t.wrapperWidth,i=e.stepY||t.wrapperHeight,o=0,a=void 0,s=void 0,c=void 0,u=0,l=void 0,h=0,d=void 0,p=void 0;if(n)for(l=n.length,d=-1;u<l;u++)p=f(n[u]),(0===u||p.left<=f(n[u-1]).left)&&(h=0,d++),t.pages[h]||(t.pages[h]=[]),o=Math.max(-p.left,t.maxScrollX),a=Math.max(-p.top,t.maxScrollY),s=o-Math.round(p.width/2),c=a-Math.round(p.height/2),t.pages[h][d]={x:o,y:a,width:p.width,height:p.height,cx:s,cy:c},o>t.maxScrollX&&h++;else for(s=Math.round(r/2),c=Math.round(i/2);o>-t.scrollerWidth;){for(t.pages[u]=[],l=0,a=0;a>-t.scrollerHeight;)t.pages[u][l]={x:Math.max(o,t.maxScrollX),y:Math.max(a,t.maxScrollY),width:r,height:i,cx:o-s,cy:a-c},a-=i,l++;o-=r,u++}t._checkSnapLoop();var v=e._loopX?1:0,m=e._loopY?1:0;t._goToPage(t.currentPage.pageX||v,t.currentPage.pageY||m,0);var g=e.threshold;g%1==0?(t.snapThresholdX=g,t.snapThresholdY=g):(t.snapThresholdX=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].width*g),t.snapThresholdY=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].height*g))}}),this.on("scrollEnd",function(){e.loop&&(e._loopX?(0===t.currentPage.pageX&&t._goToPage(t.pages.length-2,t.currentPage.pageY,0),t.currentPage.pageX===t.pages.length-1&&t._goToPage(1,t.currentPage.pageY,0)):(0===t.currentPage.pageY&&t._goToPage(t.currentPage.pageX,t.pages[0].length-2,0),t.currentPage.pageY===t.pages[0].length-1&&t._goToPage(t.currentPage.pageX,1,0)))}),!1!==e.listenFlick&&this.on("flick",function(){var r=e.speed||Math.max(Math.max(Math.min(Math.abs(t.x-t.startX),1e3),Math.min(Math.abs(t.y-t.startY),1e3)),300);t._goToPage(t.currentPage.pageX+t.directionX,t.currentPage.pageY+t.directionY,r)}),this.on("destroy",function(){if(e.loop){var r=t.scroller.children;r.length>2&&(b(t.scroller,r[r.length-1]),b(t.scroller,r[0]))}})},t.prototype._checkSnapLoop=function(){var t=this.options.snap;t.loop&&this.pages&&this.pages.length&&(this.pages.length>1&&(t._loopX=!0),this.pages[0]&&this.pages[0].length>1&&(t._loopY=!0),t._loopX&&t._loopY&&S("Loop does not support two direction at the same time."))},t.prototype._nearestSnap=function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var r=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(e-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>this.minScrollX?t=this.minScrollX:t<this.maxScrollX&&(t=this.maxScrollX),e>this.minScrollY?e=this.minScrollY:e<this.maxScrollY&&(e=this.maxScrollY);for(var n=this.pages.length;r<n;r++)if(t>=this.pages[r][0].cx){t=this.pages[r][0].x;break}n=this.pages[r].length;for(var i=0;i<n;i++)if(e>=this.pages[0][i].cy){e=this.pages[0][i].y;break}return r===this.currentPage.pageX&&(r+=this.directionX,r<0?r=0:r>=this.pages.length&&(r=this.pages.length-1),t=this.pages[r][0].x),i===this.currentPage.pageY&&(i+=this.directionY,i<0?i=0:i>=this.pages[0].length&&(i=this.pages[0].length-1),e=this.pages[0][i].y),{x:t,y:e,pageX:r,pageY:i}},t.prototype._goToPage=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments[2],n=arguments[3],i=this.options.snap;if(i&&this.pages&&this.pages.length&&(n=n||i.easing||H.bounce,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),this.pages[t])){e>=this.pages[t].length?e=this.pages[t].length-1:e<0&&(e=0);var o=this.pages[t][e].x,a=this.pages[t][e].y;r=void 0===r?i.speed||Math.max(Math.max(Math.min(Math.abs(o-this.x),1e3),Math.min(Math.abs(a-this.y),1e3)),300):r,this.currentPage={x:o,y:a,pageX:t,pageY:e},this.scrollTo(o,a,r,n)}},t.prototype.goToPage=function(t,e,r,n){var i=this.options.snap;if(i&&this.pages&&this.pages.length){if(i.loop){var o=void 0;i._loopX?(o=this.pages.length-2,t>=o?t=o-1:t<0&&(t=0),t+=1):(o=this.pages[0].length-2,e>=o?e=o-1:e<0&&(e=0),e+=1)}this._goToPage(t,e,r,n)}},t.prototype.next=function(t,e){if(this.options.snap){var r=this.currentPage.pageX,n=this.currentPage.pageY;r++,r>=this.pages.length&&this.hasVerticalScroll&&(r=0,n++),this._goToPage(r,n,t,e)}},t.prototype.prev=function(t,e){if(this.options.snap){var r=this.currentPage.pageX,n=this.currentPage.pageY;r--,r<0&&this.hasVerticalScroll&&(r=0,n--),this._goToPage(r,n,t,e)}},t.prototype.getCurrentPage=function(){var t=this.options.snap;return t?t.loop?t._loopX?i({},this.currentPage,{pageX:this.currentPage.pageX-1}):i({},this.currentPage,{pageY:this.currentPage.pageY-1}):this.currentPage:null}}(C),function(t){t.prototype.wheelTo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.options.wheel&&(this.y=-t*this.itemHeight,this.scrollTo(0,this.y))},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){var t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),void 0===t.selectedIndex&&(t.selectedIndex=0,S("wheel option selectedIndex is required!"))}}(C),function(t){t.prototype._initScrollbar=function(){var t=this,e=this.options.scrollbar,r=e.fade,n=void 0===r||r,i=e.interactive,o=void 0!==i&&i;this.indicators=[];var a=void 0;this.options.scrollX&&(a={el:x("horizontal"),direction:"horizontal",fade:n,interactive:o},this._insertScrollBar(a.el),this.indicators.push(new T(this,a))),this.options.scrollY&&(a={el:x("vertical"),direction:"vertical",fade:n,interactive:o},this._insertScrollBar(a.el),this.indicators.push(new T(this,a))),this.on("refresh",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].refresh()}),n&&(this.on("scrollEnd",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade()}),this.on("scrollCancel",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade()}),this.on("scrollStart",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade(!0)}),this.on("beforeScrollStart",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade(!0,!0)})),this.on("destroy",function(){t._removeScrollBars()})},t.prototype._insertScrollBar=function(t){this.wrapper.appendChild(t)},t.prototype._removeScrollBars=function(){for(var t=0;t<this.indicators.length;t++)this.indicators[t].destroy()}}(C),function(t){t.prototype._initPullDown=function(){this.options.probeType=tt},t.prototype._checkPullDown=function(){var t=this.options.pullDownRefresh,e=t.threshold,r=void 0===e?90:e,n=t.stop,i=void 0===n?40:n;return!(this.directionY!==Q||this.y<r)&&(this.pulling||(this.pulling=!0,this.trigger("pullingDown")),this.scrollTo(this.x,i,this.options.bounceTime,H.bounce),this.pulling)},t.prototype.finishPullDown=function(){this.pulling=!1,this.resetPosition(this.options.bounceTime,H.bounce)},t.prototype.openPullDown=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullDownRefresh=t,this._initPullDown()},t.prototype.closePullDown=function(){this.options.pullDownRefresh=!1}}(C),function(t){t.prototype._initPullUp=function(){this.options.probeType=tt,this.pullupWatching=!1,this._watchPullUp()},t.prototype._watchPullUp=function(){this.pullupWatching||(this.pullupWatching=!0,this.on("scroll",this._checkToEnd))},t.prototype._checkToEnd=function(t){var e=this,r=this.options.pullUpLoad.threshold,n=void 0===r?0:r;this.movingDirectionY===$&&t.y<=this.maxScrollY+n&&(this.once("scrollEnd",function(){e.pullupWatching=!1}),this.trigger("pullingUp"),this.off("scroll",this._checkToEnd))},t.prototype.finishPullUp=function(){var t=this;this.pullupWatching?this.once("scrollEnd",function(){t._watchPullUp()}):this._watchPullUp()},t.prototype.openPullUp=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullUpLoad=t,this._initPullUp()},t.prototype.closePullUp=function(){this.options.pullUpLoad=!1,this.pullupWatching&&(this.pullupWatching=!1,this.off("scroll",this._checkToEnd))}}(C),function(t){t.prototype._initMouseWheel=function(){var t=this;this._handleMouseWheelEvent(c),this.on("destroy",function(){clearTimeout(t.mouseWheelTimer),clearTimeout(t.mouseWheelEndTimer),t._handleMouseWheelEvent(u)}),this.firstWheelOpreation=!0},t.prototype._handleMouseWheelEvent=function(t){t(this.wrapper,"wheel",this),t(this.wrapper,"mousewheel",this),t(this.wrapper,"DOMMouseScroll",this)},t.prototype._onMouseWheel=function(t){var e=this;if(this.enabled){t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.firstWheelOpreation&&this.trigger("scrollStart"),this.firstWheelOpreation=!1;var r=this.options.mouseWheel,n=r.speed,i=void 0===n?20:n,o=r.invert,a=void 0!==o&&o,s=r.easeTime,c=void 0===s?300:s;clearTimeout(this.mouseWheelTimer),this.mouseWheelTimer=setTimeout(function(){e.options.snap||c||e.trigger("scrollEnd",{x:e.x,y:e.y}),e.firstWheelOpreation=!0},400);var u=void 0,l=void 0;switch(!0){case"deltaX"in t:1===t.deltaMode?(u=-t.deltaX*i,l=-t.deltaY*i):(u=-t.deltaX,l=-t.deltaY);break;case"wheelDeltaX"in t:u=t.wheelDeltaX/120*i,l=t.wheelDeltaY/120*i;break;case"wheelDelta"in t:u=l=t.wheelDelta/120*i;break;case"detail"in t:u=l=-t.detail/3*i;break;default:return}var h=a?-1:1;u*=h,l*=h,this.hasVerticalScroll||(u=l,l=0);var f=void 0,d=void 0;if(this.options.snap)return f=this.currentPage.pageX,d=this.currentPage.pageY,u>0?f--:u<0&&f++,l>0?d--:l<0&&d++,void this._goToPage(f,d);f=this.x+Math.round(this.hasHorizontalScroll?u:0),d=this.y+Math.round(this.hasVerticalScroll?l:0),this.movingDirectionX=this.directionX=u>0?-1:u<0?1:0,this.movingDirectionY=this.directionY=l>0?-1:l<0?1:0,f>this.minScrollX?f=this.minScrollX:f<this.maxScrollX&&(f=this.maxScrollX),d>this.minScrollY?d=this.minScrollY:d<this.maxScrollY&&(d=this.maxScrollY);var p=this.y===d;this.scrollTo(f,d,c,H.swipe),this.trigger("scroll",{x:this.x,y:this.y}),clearTimeout(this.mouseWheelEndTimer),p&&(this.mouseWheelEndTimer=setTimeout(function(){e.trigger("scrollEnd",{x:e.x,y:e.y})},c))}}}(C),function(t){t.prototype._initZoom=function(){var t=this.options.zoom,e=t.start,r=void 0===e?1:e,n=t.min,i=void 0===n?1:n,o=t.max,a=void 0===o?4:o;this.scale=Math.min(Math.max(r,i),a),this.setScale(this.scale),this.scrollerStyle[q.transformOrigin]="0 0"},t.prototype._zoomTo=function(t,e,r,n){this.scaled=!0;var i=t/(n||this.scale);this.setScale(t),this.refresh();var o=Math.round(this.startX-(e-this.relativeX)*(i-1)),a=Math.round(this.startY-(r-this.relativeY)*(i-1));o>this.minScrollX?o=this.minScrollX:o<this.maxScrollX&&(o=this.maxScrollX),a>this.minScrollY?a=this.minScrollY:a<this.maxScrollY&&(a=this.maxScrollY),this.x===o&&this.y===a||this.scrollTo(o,a,this.options.bounceTime),this.scaled=!1},t.prototype.zoomTo=function(t,e,r){var n=h(this.wrapper),i=n.left,o=n.top,a=e+i-this.x,s=r+o-this.y;this._zoomTo(t,a,s)},t.prototype._zoomStart=function(t){var e=t.touches[0],r=t.touches[1],n=Math.abs(e.pageX-r.pageX),i=Math.abs(e.pageY-r.pageY);this.startDistance=a(n,i),this.startScale=this.scale;var o=h(this.wrapper),s=o.left,c=o.top;this.originX=Math.abs(e.pageX+r.pageX)/2+s-this.x,this.originY=Math.abs(e.pageY+r.pageY)/2+c-this.y,this.trigger("zoomStart")},t.prototype._zoom=function(t){if(this.enabled&&!this.destroyed&&z[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches[0],r=t.touches[1],n=Math.abs(e.pageX-r.pageX),i=Math.abs(e.pageY-r.pageY),o=a(n,i),s=o/this.startDistance*this.startScale;this.scaled=!0;var c=this.options.zoom,u=c.min,l=void 0===u?1:u,h=c.max,f=void 0===h?4:h;s<l?s=.5*l*Math.pow(2,s/l):s>f&&(s=2*f*Math.pow(.5,f/s));var d=s/this.startScale,p=this.startX-(this.originX-this.relativeX)*(d-1),v=this.startY-(this.originY-this.relativeY)*(d-1);this.setScale(s),this.scrollTo(p,v,0)}},t.prototype._zoomEnd=function(t){if(this.enabled&&!this.destroyed&&z[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.isInTransition=!1,this.isAnimating=!1,this.initiated=0;var e=this.options.zoom,r=e.min,n=void 0===r?1:r,i=e.max,o=void 0===i?4:i,a=this.scale>o?o:this.scale<n?n:this.scale;this._zoomTo(a,this.originX,this.originY,this.startScale),this.trigger("zoomEnd")}}}(C),function(t){t.prototype._initInfinite=function(){this.options.probeType=3,this.maxScrollY=-et,this.infiniteScroller=new P(this,this.options.infinity)}}(C),C.Version="1.12.6",e.a=C},154:function(t,e){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(h===clearTimeout)return clearTimeout(t);if((h===n||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function a(){v&&d&&(v=!1,d.length?p=d.concat(p):m=-1,p.length&&s())}function s(){if(!v){var t=i(a);v=!0;for(var e=p.length;e;){for(d=p,p=[];++m<e;)d&&d[m].run();m=-1,e=p.length}d=null,v=!1,o(t)}}function c(t,e){this.fun=t,this.array=e}function u(){}var l,h,f=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(t){l=r}try{h="function"==typeof clearTimeout?clearTimeout:n}catch(t){h=n}}();var d,p=[],v=!1,m=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];p.push(new c(t,e)),1!==p.length||v||i(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(t){return[]},f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},155:function(t,e,r){"use strict";var n=r(107),i=r(64),o=r(19),a=r(116);e.a={name:"ActGoldLayer",mixins:[i.a,o.a,a.a],components:{ActPopup:n.a},props:{title:{type:String,default:""},mask:{type:Boolean,default:!0},center:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.7},noHeader:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},brandColor:{type:String,default:""}},methods:{close:function(){this.$emit("close")}}}},16:function(t,e){t.exports=!0},1647:function(t,e,r){"use strict";var n=r(1212),i=r(19),o=r(107),a=r(1299);e.a={name:"ActGoldProtocolLayer",mixins:[i.a],components:{ActGoldProtocol:n.a,ActPopup:o.a,ActGoldReadTerms:a.a},props:{title:{type:String,default:""},closable:{type:Boolean,default:!1},protocols:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:99},cancelBtnText:{type:String,default:"取消"},comfirmBtnText:{type:String,default:"继续投保"},forceReadToPageEnd:{type:Boolean,default:!1},forceReadSeconds:{type:Number,default:0},brandColor:{type:String,default:"#8c7fee"},readTerms:{type:Array,default:function(){return[]}},beforeClose:{type:Function,default:null},needForceRead:{type:Boolean,default:!0},isCps:{type:Boolean,default:!1},beforePreOrNext:{type:Function,default:null},openInWindow:{type:Boolean,default:!1}},data:function(){return{protocolChecked:!1,hasForceRead:!1}},computed:{confirmBtnBg:function(){return this.isCps?this.protocolChecked?"linear-gradient( 270deg, #F05A4B 0%, #FC7468 100%)":"linear-gradient( 270deg, rgba(240,90,75,0.5) 0%, rgba(252,116,104,0.5) 100%)":this.protocolChecked?"linear-gradient( 90deg, #FF738D 0%, #FF465E 100%)":"linear-gradient( 90deg, rgba(255,115,141,0.5) 0%, rgba(255,70,94,0.5) 100%)"},backgroundClass:function(){return this.isCps?"bg-cps":"bg-main"}},methods:{toggle:function(t){this.protocolChecked=t},forceReadTerms:function(){this.readTerms&&this.readTerms.length&&this.needForceRead&&!this.hasForceRead?this.$refs.forceReadTermsRef&&this.$refs.forceReadTermsRef.show():this.$emit("confirm")},maskClick:function(){this.$emit("maskClick")},cancel:function(){this.$emit("cancel"),this.hide()},confirm:function(){this.protocolChecked&&this.forceReadTerms()},readTermsCompleted:function(){this.hasForceRead=!0,this.$emit("readTermsCompleted"),this.$emit("confirm")},readTermsCancel:function(){this.hasForceRead=!1,this.$emit("readTermsCancel")}}}},167:function(t,e,r){t.exports=r(168)},168:function(t,e,r){"use strict";function n(t){var e=new a(t),r=o(a.prototype.request,e);return i.extend(r,a.prototype,e),i.extend(r,e),r}var i=r(17),o=r(127),a=r(169),s=r(133),c=r(130),u=n(c);u.Axios=a,u.create=function(t){return n(s(u.defaults,t))},u.Cancel=r(134),u.CancelToken=r(182),u.isCancel=r(129),u.all=function(t){return Promise.all(t)},u.spread=r(183),t.exports=u,t.exports.default=u},169:function(t,e,r){"use strict";function n(t){this.defaults=t,this.interceptors={request:new a,response:new a}}var i=r(17),o=r(128),a=r(170),s=r(171),c=r(133);n.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=c(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[s,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)r=r.then(e.shift(),e.shift());return r},n.prototype.getUri=function(t){return t=c(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],function(t){n.prototype[t]=function(e,r){return this.request(i.merge(r||{},{method:t,url:e}))}}),i.forEach(["post","put","patch"],function(t){n.prototype[t]=function(e,r,n){return this.request(i.merge(n||{},{method:t,url:e,data:r}))}}),t.exports=n},17:function(t,e,r){"use strict";function n(t){return"[object Array]"===T.call(t)}function i(t){return void 0===t}function o(t){return null!==t&&!i(t)&&null!==t.constructor&&!i(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function a(t){return"[object ArrayBuffer]"===T.call(t)}function s(t){return"undefined"!=typeof FormData&&t instanceof FormData}function c(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function u(t){return"string"==typeof t}function l(t){return"number"==typeof t}function h(t){return null!==t&&"object"==typeof t}function f(t){return"[object Date]"===T.call(t)}function d(t){return"[object File]"===T.call(t)}function p(t){return"[object Blob]"===T.call(t)}function v(t){return"[object Function]"===T.call(t)}function m(t){return h(t)&&v(t.pipe)}function g(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function y(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function b(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function _(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),n(t))for(var r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}function w(){function t(t,r){"object"==typeof e[r]&&"object"==typeof t?e[r]=w(e[r],t):e[r]=t}for(var e={},r=0,n=arguments.length;r<n;r++)_(arguments[r],t);return e}function S(){function t(t,r){"object"==typeof e[r]&&"object"==typeof t?e[r]=S(e[r],t):e[r]="object"==typeof t?S({},t):t}for(var e={},r=0,n=arguments.length;r<n;r++)_(arguments[r],t);return e}function A(t,e,r){return _(e,function(e,n){t[n]=r&&"function"==typeof e?x(e,r):e}),t}var x=r(127),T=Object.prototype.toString;t.exports={isArray:n,isArrayBuffer:a,isBuffer:o,isFormData:s,isArrayBufferView:c,isString:u,isNumber:l,isObject:h,isUndefined:i,isDate:f,isFile:d,isBlob:p,isFunction:v,isStream:m,isURLSearchParams:g,isStandardBrowserEnv:b,forEach:_,merge:w,deepMerge:S,extend:A,trim:y}},170:function(t,e,r){"use strict";function n(){this.handlers=[]}var i=r(17);n.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){i.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=n},171:function(t,e,r){"use strict";function n(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var i=r(17),o=r(172),a=r(129),s=r(130);t.exports=function(t){return n(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||s.adapter)(t).then(function(e){return n(t),e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return a(e)||(n(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},172:function(t,e,r){"use strict";var n=r(17);t.exports=function(t,e,r){return n.forEach(r,function(r){t=r(t,e)}),t}},173:function(t,e,r){"use strict";var n=r(17);t.exports=function(t,e){n.forEach(t,function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])})}},174:function(t,e,r){"use strict";var n=r(132);t.exports=function(t,e,r){var i=r.config.validateStatus;!i||i(r.status)?t(r):e(n("Request failed with status code "+r.status,r.config,null,r.request,r))}},175:function(t,e,r){"use strict";t.exports=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},176:function(t,e,r){"use strict";var n=r(177),i=r(178);t.exports=function(t,e){return t&&!n(e)?i(t,e):e}},177:function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},178:function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},179:function(t,e,r){"use strict";var n=r(17),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,o,a={};return t?(n.forEach(t.split("\n"),function(t){if(o=t.indexOf(":"),e=n.trim(t.substr(0,o)).toLowerCase(),r=n.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}}),a):a}},18:function(t,e){t.exports={}},180:function(t,e,r){"use strict";var n=r(17);t.exports=n.isStandardBrowserEnv()?function(){function t(t){var e=t;return r&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var e,r=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return e=t(window.location.href),function(r){var i=n.isString(r)?t(r):r;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},181:function(t,e,r){"use strict";var n=r(17);t.exports=n.isStandardBrowserEnv()?function(){return{write:function(t,e,r,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},182:function(t,e,r){"use strict";function n(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var r=this;t(function(t){r.reason||(r.reason=new i(t),e(r.reason))})}var i=r(134);n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var t;return{token:new n(function(e){t=e}),cancel:t}},t.exports=n},183:function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},186:function(t,e,r){r(56),r(53),t.exports=r(187)},187:function(t,e,r){var n=r(9),i=r(115);t.exports=r(0).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},19:function(t,e,r){"use strict";var n={model:{prop:"visible",event:"toggle"},props:{visible:{type:Boolean,default:!1}},data:function(){return{preOverflowValue:"",isVisible:!1}},watch:{isVisible:function(t){this.$emit("toggle",t)}},mounted:function(){var t=this;this.$watch("visible",function(e,r){e?t.show():r&&t.hide()},{immediate:!0})},methods:{show:function(){return this.isVisible=!0,this},hide:function(){return this.isVisible=!1,this}},beforeDestroy:function(){this.hide()}};e.a=n},2:function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},20:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},201:function(t,e){},202:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("transition",{attrs:{name:"act-gold-popup-fade"}},[r("act-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{mask:t.mask,center:t.center,opacity:t.opacity,zIndex:t.zIndex},on:{touchmove:function(t){t.preventDefault()},"mask-click":t.close}},[r("transition",{attrs:{name:"act-gold-popup-move"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-gold-popup-container",on:{click:function(t){t.stopPropagation()}}},[t.noHeader?t._e():[t.$slots.header?r("div",{staticClass:"act-gold-popup-hd act-gold-popup-hd-custom"},[t._t("header")],2):r("div",{staticClass:"act-gold-popup-hd"},[r("h3",[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),t.$slots.headerLeft?t._t("headerLeft"):t._e(),t._v(" "),t.$slots.headerRight?t._t("headerRight"):t.closable?r("i",{staticClass:"act-gold-popup-icon-close",on:{click:function(e){return e.stopPropagation(),t.close.apply(null,arguments)}}}):t._e()],2)],t._v(" "),t._t("default")],2)])],1)],1)},i=[];n._withStripped=!0},21:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},212:function(t,e,r){t.exports=r(216)},213:function(t,e,r){"use strict";e.__esModule=!0;var n=r(51),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t){return function(){var e=t.apply(this,arguments);return new i.default(function(t,r){function n(o,a){try{var s=e[o](a),c=s.value}catch(t){return void r(t)}if(!s.done)return i.default.resolve(c).then(function(t){n("next",t)},function(t){n("throw",t)});t(c)}return n("next")})}}},215:function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},216:function(t,e,r){var n=function(){return this}()||Function("return this")(),i=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,o=i&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r(217),i)n.regeneratorRuntime=o;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},217:function(t,e){!function(e){"use strict";function r(t,e,r,n){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),s=new d(n||[]);return a._invoke=u(t,r,s),a}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function a(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){function e(r,i,o,a){var s=n(t[r],t,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&y.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(u).then(function(t){c.value=t,o(c)},a)}a(s.arg)}function r(t,r){function n(){return new Promise(function(n,i){e(t,r,n,i)})}return i=i?i.then(n,n):n()}var i;this._invoke=r}function u(t,e,r){var i=T;return function(o,a){if(i===P)throw new Error("Generator is already running");if(i===C){if("throw"===o)throw a;return v()}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=l(s,r);if(c){if(c===R)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===T)throw i=C,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=P;var u=n(t,e,r);if("normal"===u.type){if(i=r.done?C:k,u.arg===R)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=C,r.method="throw",r.arg=u.arg)}}}function l(t,e){var r=t.iterator[e.method];if(r===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,l(t,e),"throw"===e.method))return R;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return R}var i=n(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,R;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,R):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,R)}function h(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 f(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,this),this.reset(!0)}function p(t){if(t){var e=t[_];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(y.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=m,e.done=!0,e};return n.next=n}}return{next:v}}function v(){return{value:m,done:!0}}var m,g=Object.prototype,y=g.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},_=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",S=b.toStringTag||"@@toStringTag",A="object"==typeof t,x=e.regeneratorRuntime;if(x)return void(A&&(t.exports=x));x=e.regeneratorRuntime=A?t.exports:{},x.wrap=r;var T="suspendedStart",k="suspendedYield",P="executing",C="completed",R={},E={};E[_]=function(){return this};var O=Object.getPrototypeOf,L=O&&O(O(p([])));L&&L!==g&&y.call(L,_)&&(E=L);var I=a.prototype=i.prototype=Object.create(E);o.prototype=I.constructor=a,a.constructor=o,a[S]=o.displayName="GeneratorFunction",x.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},x.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,S in t||(t[S]="GeneratorFunction")),t.prototype=Object.create(I),t},x.awrap=function(t){return{__await:t}},s(c.prototype),c.prototype[w]=function(){return this},x.AsyncIterator=c,x.async=function(t,e,n,i){var o=new c(r(t,e,n,i));return x.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},s(I),I[S]="Generator",I[_]=function(){return this},I.toString=function(){return"[object Generator]"},x.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},x.values=p,d.prototype={constructor:d,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(f),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return o.type="throw",o.arg=t,r.next=e,n&&(r.method="next",r.arg=m),!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&y.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,R):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),R},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),f(r),R}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;f(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:p(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=m),R}}}(function(){return this}()||Function("return this")())},219:function(t,e,r){"use strict";var n=r(51),i=r.n(n),o=r(119),a=r(330),s=r(331),c=r(152);e.a={name:"scroll",props:{probeType:{type:Number,default:2},click:{type:Boolean,default:!0},listenScrollInit:{type:Boolean,default:!1},listenScroll:{type:Boolean,default:!1},listenBeforeScroll:{type:Boolean,default:!1},listenScrollEnd:{type:Boolean,default:!1},listenZoomEnd:{type:Boolean,default:!1},observeDOM:{type:Boolean,default:!0},direction:{type:String,default:"vertical"},scrollbar:{type:null,default:!1},pullDownRefresh:{type:null,default:!1},pullUpLoad:{type:null,default:!1},startY:{type:Number,default:0},refreshDelay:{type:Number,default:20},freeScroll:{type:Boolean,default:!1},mouseWheel:{type:Boolean,default:!1},bounce:{type:[Boolean,Object],default:!0},zoom:{type:[Boolean,Object],default:!1}},data:function(){return{beforePullDown:!0,isRebounding:!1,isPullingDown:!1,isPullUpLoad:!1,pullUpDirty:!0,pullDownStyle:"",bubbleY:0,lastTouchStart:null,fingers:0,tapTarget:null,isDouble:!1,startXd:0,startYd:0,endXd:0,endYd:0}},computed:{pullUpTxt:function(){var t=this.pullUpLoad&&this.pullUpLoad.txt&&this.pullUpLoad.txt.more||"加载更多",e=this.pullUpLoad&&this.pullUpLoad.txt&&this.pullUpLoad.txt.noMore||"没有更多数据了";return this.pullUpDirty?t:e},refreshTxt:function(){return this.pullDownRefresh&&this.pullDownRefresh.txt||"刷新成功"}},created:function(){this.pullDownInitTop=-50},mounted:function(){var t=this;setTimeout(function(){t.initScroll()},20)},destroyed:function(){this.$refs.scroll&&this.$refs.scroll.destroy()},methods:{initScroll:function(){var t=this;if(this.$refs.wrapper){this.$refs.listWrapper&&(this.pullDownRefresh||this.pullUpLoad)&&(this.$refs.listWrapper.style.minHeight=Object(a.a)(this.$refs.wrapper).height+1+"px");var e={probeType:this.probeType,click:this.click,scrollY:this.freeScroll||"vertical"===this.direction,scrollX:this.freeScroll||"horizontal"===this.direction,scrollbar:this.scrollbar,pullDownRefresh:this.pullDownRefresh,pullUpLoad:this.pullUpLoad,startY:this.startY,freeScroll:this.freeScroll,mouseWheel:this.mouseWheel,bounce:this.bounce,zoom:this.zoom,bounceTime:300,useTransition:c.a,observeDOM:this.observeDOM};this.scroll=new o.default(this.$refs.wrapper,e),this.listenScroll&&this.scroll.on("scroll",function(e){t.$emit("scroll",e)}),this.listenScrollEnd&&this.scroll.on("scrollEnd",function(e){t.$emit("scroll-end",e)}),this.listenBeforeScroll&&(this.scroll.on("beforeScrollStart",function(){t.$emit("beforeScrollStart")}),this.scroll.on("scrollStart",function(){t.$emit("scroll-start")})),this.listenZoomEnd&&this.scroll.on("zoomEnd",function(){t.$emit("zoomEnd",t.scroll)}),this.pullDownRefresh&&this._initPullDownRefresh(),this.pullUpLoad&&this._initPullUpLoad(),this.zoom&&(this.isDouble=!0),this.listenScrollInit&&this.$emit("scrollSuc",this.scroll)}},disable:function(){this.scroll&&this.scroll.disable()},enable:function(){this.scroll&&this.scroll.enable()},refresh:function(){this.scroll&&this.scroll.refresh()},scrollTo:function(){this.scroll&&this.scroll.scrollTo.apply(this.scroll,arguments)},scrollToElement:function(){this.scroll&&this.scroll.scrollToElement.apply(this.scroll,arguments)},clickItem:function(t,e){this.$emit("click",e)},destroy:function(){this.scroll.destroy()},forceUpdate:function(t){var e=this;this.pullDownRefresh&&this.isPullingDown?(this.isPullingDown=!1,this._reboundPullDown().then(function(){e._afterPullDown()})):this.pullUpLoad&&this.isPullUpLoad?(this.isPullUpLoad=!1,this.scroll.finishPullUp(),this.pullUpDirty=t,this.refresh()):this.refresh()},handleTouchStart:function(t){this.isDouble&&(this.fingers=t.touches.length,this.tapTarget=this.getTouches(t)[0],this.startXd=this.tapTarget.x,this.startYd=this.tapTarget.y)},handleTouchMove:function(t){this.isDouble&&(this.endXd=this.getTouches(t)[0].x,this.endYd=this.getTouches(t)[0].y)},handleTouchEnd:function(t){if(this.isDouble){this.endXd=0===this.endXd?this.startXd:this.endXd,this.endYd=0===this.endYd?this.startYd:this.endYd;var e=this.endXd-this.startXd,r=this.endYd-this.startYd;Math.abs(e)<10&&Math.abs(r)<10&&this.detectDoubleTap(t),this.startXd=this.startYd=this.endXd=this.endYd=0}},cancelEvent:function(t){t.stopPropagation(),t.preventDefault()},getTouches:function(t){return Array.prototype.slice.call(t.touches).map(function(t){return{x:t.pageX,y:t.pageY}})},detectDoubleTap:function(){var t=(new Date).getTime();if(this.fingers>1&&(this.lastTouchStart=null),t-this.lastTouchStart<300){this.cancelEvent(event);var e=this.scroll.scale>1?1:2;this.scroll.zoomTo(e,this.tapTarget.x,this.tapTarget.y)}1===this.fingers&&(this.lastTouchStart=t)},_initPullDownRefresh:function(){var t=this;this.scroll.on("pullingDown",function(){t.beforePullDown=!1,t.isPullingDown=!0,t.$emit("pullingDown")}),this.scroll.on("scroll",function(e){t.pullDownRefresh&&(t.beforePullDown?(t.bubbleY=Math.max(0,e.y+t.pullDownInitTop),t.pullDownStyle="top:"+Math.min(e.y+t.pullDownInitTop,10)+"px"):t.bubbleY=0,t.isRebounding&&(t.pullDownStyle="top:"+(10-(t.pullDownRefresh.stop-e.y))+"px"))})},_initPullUpLoad:function(){var t=this;this.scroll.on("pullingUp",function(){t.isPullUpLoad=!0,t.$emit("pullingUp")})},_reboundPullDown:function(){var t=this,e=this.pullDownRefresh.stopTime,r=void 0===e?600:e;return new i.a(function(e){setTimeout(function(){t.isRebounding=!0,t.scroll.finishPullDown(),e()},r)})},_afterPullDown:function(){var t=this;setTimeout(function(){t.pullDownStyle="top:"+t.pullDownInitTop+"px",t.beforePullDown=!0,t.isRebounding=!1,t.refresh()},this.scroll.options.bounceTime)}},watch:{data:function(){var t=this;setTimeout(function(){t.forceUpdate(!0)},this.refreshDelay)}},components:{Bubble:s.a}}},220:function(t,e,r){"use strict";e.a={props:{y:{type:Number,default:0}},data:function(){return{width:50,height:80}},computed:{distance:function(){return Math.max(0,Math.min(this.y*this.ratio,this.maxDistance))},style:function(){return"width:"+this.width/this.ratio+"px;height:"+this.height/this.ratio+"px"}},created:function(){this.ratio=window.devicePixelRatio,this.width*=this.ratio,this.height*=this.ratio,this.initRadius=18*this.ratio,this.minHeadRadius=12*this.ratio,this.minTailRadius=5*this.ratio,this.initArrowRadius=10*this.ratio,this.minArrowRadius=6*this.ratio,this.arrowWidth=3*this.ratio,this.maxDistance=40*this.ratio,this.initCenterX=25*this.ratio,this.initCenterY=25*this.ratio,this.headCenter={x:this.initCenterX,y:this.initCenterY}},mounted:function(){this._draw()},methods:{_draw:function(){var t=this.$refs.bubble,e=t.getContext("2d");e.clearRect(0,0,t.width,t.height),this._drawBubble(e),this._drawArrow(e)},_drawBubble:function(t){t.save(),t.beginPath();var e=this.distance/this.maxDistance,r=this.initRadius-(this.initRadius-this.minHeadRadius)*e;this.headCenter.y=this.initCenterY-(this.initRadius-this.minHeadRadius)*e,t.arc(this.headCenter.x,this.headCenter.y,r,0,Math.PI,!0);var n=this.initRadius-(this.initRadius-this.minTailRadius)*e,i={x:this.headCenter.x,y:this.headCenter.y+this.distance},o={x:i.x-n,y:i.y},a={x:o.x,y:o.y-this.distance/2};t.quadraticCurveTo(a.x,a.y,o.x,o.y),t.arc(i.x,i.y,n,Math.PI,0,!0);var s={x:this.headCenter.x+r,y:this.headCenter.y},c={x:i.x+n,y:s.y+this.distance/2};t.quadraticCurveTo(c.x,c.y,s.x,s.y),t.fillStyle="rgb(170,170,170)",t.fill(),t.strokeStyle="rgb(153,153,153)",t.stroke(),t.restore()},_drawArrow:function(t){t.save(),t.beginPath();var e=this.distance/this.maxDistance,r=this.initArrowRadius-(this.initArrowRadius-this.minArrowRadius)*e;t.arc(this.headCenter.x,this.headCenter.y,r-(this.arrowWidth-e),-Math.PI/2,0,!0),t.arc(this.headCenter.x,this.headCenter.y,r,0,3*Math.PI/2,!1),t.lineTo(this.headCenter.x,this.headCenter.y-r-this.arrowWidth/2+e),t.lineTo(this.headCenter.x+2*this.arrowWidth-2*e,this.headCenter.y-r+this.arrowWidth/2),t.lineTo(this.headCenter.x,this.headCenter.y-r+3*this.arrowWidth/2-e),t.fillStyle="rgb(255,255,255)",t.fill(),t.strokeStyle="rgb(170,170,170)",t.stroke(),t.restore()}},watch:{y:function(){this._draw()}}}},2338:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(14),i=r(2339);i.a.install=function(t){t.component(i.a.name,i.a),t.prototype.$createGoldProtocolLayer=Object(n.a)(i.a,t)},e.default=i.a},2339:function(t,e,r){"use strict";function n(t){s||r(2340)}var i=r(1647),o=r(2341),a=r(1),s=!1,c=n,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-0bf60312",null);u.options.__file="src\\components\\GoldProtocolLayer\\src\\index.vue",e.a=u.exports},2340:function(t,e){},2341:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("transition",{attrs:{name:"act-picker-fade"}},[r("act-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{type:"picker",mask:!0,center:!1,topBorderRadius:!0,zIndex:t.zIndex},on:{touchmove:function(t){t.preventDefault()},"mask-click":t.maskClick}},[r("transition",{attrs:{name:"act-picker-move"}},[r("div",{staticClass:"act-picker-panel",on:{click:function(t){t.stopPropagation()}}},[r("div",{ref:"boxWrapper",staticClass:"act-picker-content",class:t.backgroundClass},[r("act-gold-protocol",{ref:"protocol",staticClass:"protocol",attrs:{protocols:t.protocols,openInWindow:t.openInWindow,brandColor:t.brandColor,checkState:t.protocolChecked},on:{toggle:t.toggle}})],1),t._v(" "),r("div",{staticClass:"ft-btn"},[r("div",{staticClass:"cancel-btn",on:{click:t.cancel}},[t._v(t._s(t.cancelBtnText))]),t._v(" "),r("div",{staticClass:"comfirm-btn",style:{background:t.confirmBtnBg},on:{click:t.confirm}},[t._v(t._s(t.comfirmBtnText))])]),t._v(" "),r("div",{staticClass:"footer iphonex_padding",staticStyle:{"background-color":"#fff"}})])])],1)],1),t._v(" "),r("act-gold-read-terms",{ref:"forceReadTermsRef",attrs:{confirmButtonText:"已完整阅读并确认",forceRead:t.forceReadToPageEnd,forceReadTime:t.forceReadSeconds,brandColor:t.brandColor,readTerms:t.readTerms,beforePreOrNext:t.beforePreOrNext,beforeClose:t.beforeClose},on:{confirm:t.readTermsCompleted,cancel:t.readTermsCancel}})],1)},i=[];n._withStripped=!0},24:function(t,e,r){var n=r(29);t.exports=function(t){return Object(n(t))}},25:function(t,e){e.f={}.propertyIsEnumerable},252:function(t,e,r){"use strict";var n=r(328),i=r(114),o=r(334);e.a={name:"ScrollZoom",data:function(){return{pdf:null}},computed:{currentTerm:function(){return this.termsInfo[this.docIndex]||null},liTagInfo:function(){var t=[];if(this.currentTerm&&this.currentTerm.liTag&&this.currentTerm.myScroll)for(var e=0;e<this.currentTerm.liTag.length;e++){var r=this.currentTerm.liTag[e];t.push({tag:r,top:r.offsetTop*this.currentTerm.currentScale,left:r.offsetLeft*this.currentTerm.currentScale,width:r.offsetWidth*this.currentTerm.currentScale,height:r.offsetHeight*this.currentTerm.currentScale})}return t},isPurePdfType:function(){return 4===this.currentTerm.type},isImageType:function(){return 2===Number(this.currentTerm.type)},isShowLoading:function(){var t=this.currentTerm.myScroll;return!(!this.isPurePdfType||!this.pdf||this.pdf.inited)||!!(this.isImageType&&this.currentTerm.isLoading&&1===this.currentTerm.currentPage||this.isImageType&&this.currentTerm.isLoading&&t&&Math.abs(t.y)+50>=Math.abs(t.maxScrollY))},purePdfLoadingComplated:function(){if(!this.isPurePdfType||!this.pdf)return!1;var t=this.pdf,e=t.numPages,r=t.renderedPages;return e&&r&&e===r.length},imagesInitLoad:function(){return this.isImageType&&this.currentTerm.isLoading&&1===this.currentTerm.currentPage},imagesLoadingComplated:function(){return this.currentTerm.currentPage*this.pageSize>=this.currentTerm.urls.length}},watch:{purePdfLoadingComplated:function(t){if(t&&this.currentTerm.curPosition){this.currentTerm.curPosition.y===this.currentTerm.myScroll.maxScrollY&&this.$emit("canINext",!0)}}},methods:{loadNextPage:function(){var t=this.currentTerm;t.currentPage*this.pageSize>=t.urls.length||(t.currentPage++,t.isLoading=!0,this.initImages())},initImages:function(){var t=this,e=this.currentTerm,r=this.$refs["scrollList"+this.docIndex][0],n=(e.currentPage-1)*this.pageSize,i=e.urls.slice(n,n+this.pageSize),o=new Array(i.length).fill(!1),a=[];i.forEach(function(n,i){var s=document.createElement("li"),c=new Image;s.style.height=t.currentTerm.styleImg.height,c.onload=function(){s.appendChild(c),o[i]=!0,o.every(function(t){return t})&&(a.forEach(function(t){return r.appendChild(t)}),e.isLoading=!1,t.currentTerm.myScroll.refresh(),t.currentTerm.currentPage*t.pageSize<t.currentTerm.urls.length&&t.loadNextPage())},c.src=n,c.style.width="100%",s.appendChild(c),a.push(s)})},initWord:function(t){var e=this;t instanceof Array?Object(i.c)(t[0]).then(function(t){t=t.replace(/<span[^>]*?>[\s|&nbsp;]*<\/span>/g,""),t=t.replace(/<span[^>]*?>[\s|&nbsp;]*<em>\s*<\/em>\s*<\/span>/g,""),e.currentTerm.wordHtml=t,e.currentTerm.classObject["scroll-word"]=!0,e.currentTerm.init=!0}).catch(function(t){console.log(t)}):console.log("数据格式错误")},initPDF:function(t){if(t instanceof Array){var e=this,r=new Image;r.src=t[0],r.onload=function(){var t=window.innerWidth/r.width,n=2*(t*r.height).toFixed(2);e.currentTerm.styleImg.height=n+"px",e.currentTerm.classObject["scroll-pdf"]=!0,e.currentTerm.listenScrollEnd=!0,e.currentTerm.listenZoomEnd=!0,e.currentTerm.listenScroll=!0,e.currentTerm.init=!0}}else console.log("数据格式错误")},initHtml:function(t){t=t.replace(/<span[^>]*?>[\s|&nbsp;]*<\/span>/g,""),t=t.replace(/<span[^>]*?>[\s|&nbsp;]*<em>\s*<\/em>\s*<\/span>/g,""),this.currentTerm.wordHtml=t,this.currentTerm.classObject["scroll-word"]=!0,this.currentTerm.init=!0},initPurePDF:function(t){this.currentTerm.listenScroll=!0,this.currentTerm.listenZoomEnd=!0,this.currentTerm.listenScrollEnd=!0,this.currentTerm.observeDOM=!1,this.currentTerm.init=!0},scroll:function(t){this.lazyLoad(t)},scrollEnd:function(t){this.isPurePdfType?this.currentTerm.curPosition=t:this.lazyLoad(t);var e=t.y===this.currentTerm.myScroll.maxScrollY;![2,4].includes(this.currentTerm.type)&&this.forceRead&&e&&this.$emit("canINext",!0),this.isImageType&&this.forceRead&&this.imagesLoadingComplated&&e&&this.$emit("canINext",!0),this.isPurePdfType&&this.forceRead&&this.purePdfLoadingComplated&&e&&this.$emit("canINext",!0),e&&this.$emit("scrolledEnd",!0)},scrollInit:function(t){var e=this;if(this.currentTerm.myScroll=t,this.forceRead&&this.currentTerm.myScroll&&0==+this.currentTerm.myScroll.maxScrollY&&!this.isPurePdfType&&!this.isImageType&&this.$emit("canINext",!0),1===this.currentTerm.type&&this.$refs["wordHtml"+this.docIndex]&&this.$refs["wordHtml"+this.docIndex][0]){var r=this.$refs["wordHtml"+this.docIndex][0].querySelectorAll("table");this.refreshTable(r);var n=this.$refs["wordHtml"+this.docIndex][0].querySelectorAll("img");this.refreshImg(n)}else this.isImageType&&this.$refs["scrollList"+this.docIndex]&&this.$refs["scrollList"+this.docIndex][0]?(this.currentTerm.cWidth=this.currentTerm.myScroll.wrapperHeight,this.currentTerm.cHeight=this.currentTerm.myScroll.wrapperWidth,this.loadNextPage()):99===this.currentTerm.type?this.currentTerm.myScroll.refresh():4===this.currentTerm.type&&(this.pdf=new o.default,this.pdf.init({url:this.currentTerm.urls[0],container:this.$refs.pdfContainer[0],brandColor:this.brandColor,scollRef:this.currentTerm.myScroll}).then(function(){e.currentTerm.myScroll.refresh(),e.forceRead&&e.currentTerm.myScroll&&0==+e.currentTerm.myScroll.maxScrollY&&e.purePdfLoadingComplated&&e.$emit("canINext",!0)}).catch(function(t){console.log(t)}))},zoomEnd:function(){this.currentTerm.currentScale=this.currentTerm.myScroll.scale},lazyLoad:function(t){this.currentTerm.scrollY=Math.abs(t.y)},refreshTable:function(t){if(t.length>0)for(var e=0,r=t.length;e<r;e++)t[e].style.width="100%",t[e].style.marginLeft="0";this.currentTerm.myScroll.refresh()},refreshImg:function(t){var e=this;t&&t.length&&function(){for(var r=void 0,n=0;n<t.length;n++)t[n].onload=function(){r&&window.clearTimeout(r),r=setTimeout(function(){e.currentTerm.myScroll.refresh()},200)}}()},getTermHideState:function(t){return t!==this.docIndex},showDoc:function(t){this.docIndex=t,this.destroyPdf(),this.currentTerm.init?2===Number(this.currentTerm.type)&&(this.currentTerm.currentPage=0,this.loadNextPage()):1===Number(this.currentTerm.type)?this.initWord(this.currentTerm.urls):2===Number(this.currentTerm.type)?this.initPDF(this.currentTerm.urls):3===Number(this.currentTerm.type)?this.initHtml(this.currentTerm.innerHTML):4===Number(this.currentTerm.type)?this.initPurePDF(this.currentTerm.urls):99===Number(this.currentTerm.type)&&(this.currentTerm.init=!0)},destroyPdf:function(){this.pdf&&(this.pdf.destroy(),this.pdf=null)}},beforeDestroy:function(){this.destroyPdf()},components:{scroll:n.a},props:{termsInfo:{type:Array,default:function(){return[]}},brandColor:{type:String,default:"#8c7fee"},docIndex:{type:Number,default:0},forceRead:{type:Boolean,default:!1},pageSize:{type:Number,default:4}}}},26:function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},27:function(t,e,r){var n=r(8).f,i=r(6),o=r(3)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},28:function(t,e,r){t.exports={default:r(83),__esModule:!0}},29:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},3:function(t,e,r){var n=r(32)("wks"),i=r(21),o=r(2).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=n},30:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},305:function(t,e,r){"use strict";(function(t){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,r){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return u(this,t)}return a(this,t,e,r)}function a(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?f(t,e,r,n):"string"==typeof e?l(t,e,r):d(t,e)}function s(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 c(t,e,r,n){return s(e),e<=0?i(t,e):void 0!==r?"string"==typeof n?i(t,e).fill(r,n):i(t,e).fill(r):i(t,e)}function u(t,e){if(s(e),t=i(t,e<0?0:0|p(e)),!o.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function l(t,e,r){if("string"==typeof r&&""!==r||(r="utf8"),!o.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|m(e,r);t=i(t,n);var a=t.write(e,r);return a!==n&&(t=t.slice(0,a)),t}function h(t,e){var r=e.length<0?0:0|p(e.length);t=i(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function f(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=h(t,e),t}function d(t,e){if(o.isBuffer(e)){var r=0|p(e.length);return t=i(t,r),0===t.length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||$(e.length)?i(t,0):h(t,e);if("Buffer"===e.type&&J(e.data))return h(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function v(t){return+t!=t&&(t=0),o.alloc(+t)}function m(t,e){if(o.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 r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(t).length;default:if(n)return z(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,r);case"utf8":case"utf-8":return C(this,e,r);case"ascii":return E(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return P(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=o.from(e,n)),o.isBuffer(e))return 0===e.length?-1:_(t,e,r,n,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):_(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,r,n,i){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,r/=2}var u;if(i){var l=-1;for(u=r;u<s;u++)if(o(t,u)===o(e,-1===l?0:u-l)){if(-1===l&&(l=u),u-l+1===c)return l*a}else-1!==l&&(u-=u-l),l=-1}else for(r+c>s&&(r=s-c),u=r;u>=0;u--){for(var h=!0,f=0;f<c;f++)if(o(t,u+f)!==o(e,f)){h=!1;break}if(h)return u}return-1}function w(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function S(t,e,r,n){return V(z(e,t.length-r),t,r,n)}function A(t,e,r,n){return V(X(e),t,r,n)}function x(t,e,r,n){return A(t,e,r,n)}function T(t,e,r,n){return V(G(e),t,r,n)}function k(t,e,r,n){return V(H(e,t.length-r),t,r,n)}function P(t,e,r){return 0===e&&r===t.length?Q.fromByteArray(t):Q.fromByteArray(t.slice(e,r))}function C(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=r){var c,u,l,h;switch(s){case 1:o<128&&(a=o);break;case 2:c=t[i+1],128==(192&c)&&(h=(31&o)<<6|63&c)>127&&(a=h);break;case 3:c=t[i+1],u=t[i+2],128==(192&c)&&128==(192&u)&&(h=(15&o)<<12|(63&c)<<6|63&u)>2047&&(h<55296||h>57343)&&(a=h);break;case 4:c=t[i+1],u=t[i+2],l=t[i+3],128==(192&c)&&128==(192&u)&&128==(192&l)&&(h=(15&o)<<18|(63&c)<<12|(63&u)<<6|63&l)>65535&&h<1114112&&(a=h)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return R(n)}function R(t){var e=t.length;if(e<=Z)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Z));return r}function E(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function O(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function L(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Y(t[o]);return i}function I(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function M(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,r,n,i,a){if(!o.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(r+n>t.length)throw new RangeError("Index out of range")}function D(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function j(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function N(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,n,i){return i||N(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(t,e,r,n,23,4),r+4}function B(t,e,r,n,i){return i||N(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(t,e,r,n,52,8),r+8}function W(t){if(t=q(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function q(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Y(t){return t<16?"0"+t.toString(16):t.toString(16)}function z(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function X(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function H(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function G(t){return Q.toByteArray(W(t))}function V(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function $(t){return t!==t}var Q=r(306),K=r(307),J=r(308);e.Buffer=o,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,r){return a(null,t,e,r)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,r){return c(null,t,e,r)},o.allocUnsafe=function(t){return u(null,t)},o.allocUnsafeSlow=function(t){return u(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},o.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}},o.concat=function(t,e){if(!J(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=o.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},o.byteLength=m,o.prototype._isBuffer=!0,o.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)y(this,e,e+1);return this},o.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)y(this,e,e+3),y(this,e+1,e+2);return this},o.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)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):g.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,r,n,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var a=i-n,s=r-e,c=Math.min(a,s),u=this.slice(n,i),l=t.slice(e,r),h=0;h<c;++h)if(u[h]!==l[h]){a=u[h],s=l[h];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},o.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},o.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},o.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return S(this,t,e,r);case"ascii":return A(this,t,e,r);case"latin1":case"binary":return x(this,t,e,r);case"base64":return T(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n;if(o.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=o.prototype;else{var i=e-t;n=new o(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+t]}return n},o.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||M(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},o.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||M(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},o.prototype.readUInt8=function(t,e){return e||M(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||M(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||M(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||M(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},o.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||M(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||M(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(t,e){e||M(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(t,e){return e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||M(t,4,this.length),K.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||M(t,4,this.length),K.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||M(t,8,this.length),K.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||M(t,8,this.length),K.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){F(this,t,e,r,Math.pow(2,8*r)-1,0)}var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},o.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){F(this,t,e,r,Math.pow(2,8*r)-1,0)}var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},o.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);F(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},o.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);F(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},o.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},o.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},o.prototype.writeDoubleLE=function(t,e,r){return B(this,t,e,!0,r)},o.prototype.writeDoubleBE=function(t,e,r){return B(this,t,e,!1,r)},o.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,a=n-r;if(this===t&&r<e&&e<n)for(i=a-1;i>=0;--i)t[i+e]=this[i+r];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),e);return a},o.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<r;++a)this[a]=t;else{var s=o.isBuffer(t)?t:z(new o(t,n).toString()),c=s.length;for(a=0;a<r-e;++a)this[a+e]=s[a%c]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,r(117))},306:function(t,e,r){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function i(t){var e=n(t),r=e[0],i=e[1];return 3*(r+i)/4-i}function o(t,e,r){return 3*(e+r)/4-r}function a(t){var e,r,i=n(t),a=i[0],s=i[1],c=new f(o(t,a,s)),u=0,l=s>0?a-4:a;for(r=0;r<l;r+=4)e=h[t.charCodeAt(r)]<<18|h[t.charCodeAt(r+1)]<<12|h[t.charCodeAt(r+2)]<<6|h[t.charCodeAt(r+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===s&&(e=h[t.charCodeAt(r)]<<2|h[t.charCodeAt(r+1)]>>4,c[u++]=255&e),1===s&&(e=h[t.charCodeAt(r)]<<10|h[t.charCodeAt(r+1)]<<4|h[t.charCodeAt(r+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c}function s(t){return l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}function c(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(s(n));return i.join("")}function u(t){for(var e,r=t.length,n=r%3,i=[],o=0,a=r-n;o<a;o+=16383)i.push(c(t,o,o+16383>a?a:o+16383));return 1===n?(e=t[r-1],i.push(l[e>>2]+l[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],i.push(l[e>>10]+l[e>>4&63]+l[e<<2&63]+"=")),i.join("")}e.byteLength=i,e.toByteArray=a,e.fromByteArray=u;for(var l=[],h=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,v=d.length;p<v;++p)l[p]=d[p],h[d.charCodeAt(p)]=p;h["-".charCodeAt(0)]=62,h["_".charCodeAt(0)]=63},307:function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,u=c>>1,l=-7,h=r?i-1:0,f=r?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+t[e+h],h+=f,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=u}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,h=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),e+=a+h>=1?f/c:f*Math.pow(2,1-h),e*c>=2&&(a++,c/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*c-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[r+d]=255&a,d+=p,a/=256,u-=8);t[r+d-p]|=128*v}},308:function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},31:function(t,e,r){var n=r(32)("keys"),i=r(21);t.exports=function(t){return n[t]||(n[t]=i(t))}},32:function(t,e,r){var n=r(0),i=r(2),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(16)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},327:function(t,e,r){"use strict";function n(t){s||r(349)}var i=r(252),o=r(350),a=r(1),s=!1,c=n,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-388e54c7",null);u.options.__file="src\\components\\common\\scrollZoom\\index.vue",e.a=u.exports},328:function(t,e,r){"use strict";function n(t){s||r(329)}var i=r(219),o=r(333),a=r(1),s=!1,c=n,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-3d7beb70",null);u.options.__file="src\\components\\common\\scrollZoom\\components\\scroll.vue",e.a=u.exports},329:function(t,e){},33:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},330:function(t,e,r){"use strict";function n(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}e.a=n},331:function(t,e,r){"use strict";var n=r(220),i=r(332),o=r(1),a=Object(o.a)(n.a,i.a,i.b,!1,null,null,null);a.options.__file="src\\components\\common\\scrollZoom\\components\\bubble.vue",e.a=a.exports},332:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("canvas",{ref:"bubble",style:t.style,attrs:{width:t.width,height:t.height}})},i=[];n._withStripped=!0},333:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{ref:"wrapper",staticClass:"scroll-wrapper",on:{touchstart:t.handleTouchStart,touchmove:t.handleTouchMove,touchend:t.handleTouchEnd}},[r("div",{staticClass:"scroll-content"},[r("div",{ref:"listWrapper"},[t._t("default")],2),t._v(" "),t.$scopedSlots.pullup?t._t("pullup",null,{pullUpLoad:t.pullUpLoad,isPullUpLoad:t.isPullUpLoad}):t._e(),t._v(" "),t.pullUpLoad&&!t.$scopedSlots.pullup?r("div",{staticClass:"pullup-wrapper"},[t.isPullUpLoad?r("div",{staticClass:"after-trigger"},[r("act-loading",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],attrs:{type:"cir4",color:t.brandColor,size:20}})],1):r("div",{staticClass:"before-trigger"},[r("span",[t._v(t._s(t.pullUpTxt))])])]):t._e()],2),t._v(" "),t.$scopedSlots.pulldown?t._t("pulldown",null,{pullDownRefresh:t.pullDownRefresh,pullDownStyle:t.pullDownStyle,beforePullDown:t.beforePullDown,isPullingDown:t.isPullingDown,bubbleY:t.bubbleY}):t._e(),t._v(" "),t.pullDownRefresh&&!t.$scopedSlots.pulldown?r("div",{ref:"pulldown",staticClass:"pulldown-wrapper",style:t.pullDownStyle},[t.beforePullDown?r("div",{staticClass:"before-trigger"},[r("bubble",{attrs:{y:t.bubbleY}})],1):r("div",{staticClass:"after-trigger"},[t.isPullingDown?r("div",{staticClass:"loading"},[r("act-loading",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],attrs:{type:"cir4",color:t.brandColor,size:20}})],1):r("div",[r("span",[t._v(t._s(t.refreshTxt))])])])]):t._e()],2)},i=[];n._withStripped=!0},334:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(212),i=r.n(n),o=r(213),a=r.n(o),s=r(51),c=r.n(s),u=r(215),l=r.n(u),h=r(335),f=(r.n(h),r(341));r.n(f);h.GlobalWorkerOptions.workerSrc=window.__global_cdn__+"/js/pdf/pdf.worker.es5.js";var d={INITED:1,DRAWING:2,RENDERING:3,RENDERED:4,DESTROYED:5},p=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(this,t),this.scale=e.scale,this.viewport=e.viewport,this.container=e.container,this.brandColor=e.brandColor,this.pdfPage=null,this.state=d.INITED,this.canvas=null,this.canvasWrapper=null,this.index=e.index,this.pdfDoc=e.pdfDoc;var r=document.createElement("div");r.className="pdf-act-page",this.pageWidth=Math.floor(this.viewport.width/this.scale),this.pageHeight=Math.floor(this.viewport.height/this.scale),this.div=r,this.container.appendChild(r)}return t.prototype.setLoading=function(){var t=document.createElement("span");t.className="pdf-act-loading",this.div.appendChild(t)},t.prototype.hideLoading=function(){var t=this.div.firstElementChild;t&&(t.style.visibility="hidden")},t.prototype.draw=function(){if([d.INITED].includes(this.state)){if(this.state=d.DRAWING,!this.canvasWrapper){var t=document.createElement("div");this.canvasWrapper=t,t.style.cssText="width:"+this.pageWidth+";height:"+this.pageHeight,t.className="pdf-act-page-wrapper"}if(!this.canvas){var e=document.createElement("canvas");this.canvas=e;var r=e.getContext("2d",{alpha:!1}),n=Math.min(window.devicePixelRatio||2,3),i=this.pageWidth*n,o=this.pageHeight*n;if(i>2048||o>2048){var a=Math.min(2048/i,2048/o);e.width=i*a,e.height=o*a}else e.width=i,e.height=o;e.style.cssText="height:"+this.pageHeight+"px;width:"+this.pageWidth+"px",this.renderContext={canvasContext:r,viewport:this.viewport,transform:[n/this.scale,0,0,n/this.scale,0,0],enableWebGL:!0,renderInteractiveForms:!1}}}},t.prototype.render=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.state!==d.DRAWING)return c.a.resolve();this.state=d.RENDERING;var r=this.pdfPage.render(this.renderContext).promise,n=new c.a(function(t,e){setTimeout(function(){return e(new Error("渲染超时"))},6e3)});return this.renderTask={promise:c.a.race([r,n]),cancel:function(){t.renderTask&&t.renderTask._internalRenderTask&&t.renderTask._internalRenderTask.cancel()}},this.renderTask.promise.then(function(){return t.state===d.DESTROYED?c.a.reject("Page destroyed"):(t.state=d.RENDERED,t.renderTask=null,t.createImageFromCanvas())}).catch(function(r){return console.log("渲染失败 (尝试 "+(e+1)+"/3):",r),e<2?(console.log("重新尝试渲染页面 "+(t.index+1)+"..."),new c.a(function(r){setTimeout(function(){r(t.render(e+1))},500*(e+1))})):(t.cleanupCanvas(),c.a.reject(new Error("页面 "+(t.index+1)+" 渲染失败,已达到最大重试次数")))})},t.prototype.createImageFromCanvas=function(){function t(){return e.apply(this,arguments)}var e=a()(i.a.mark(function t(){var e,r=this;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=document.createElement("img"),e.style.cssText="width:"+this.pageWidth+"px;height:"+this.pageHeight+"px",e.onload=function(){if(r.div.style.cssText="width:"+r.pageWidth+"px;height:"+r.pageHeight+"px;",r.canvasWrapper.appendChild(e),r.div.appendChild(r.canvasWrapper),r.pdfDoc){var t=r.pdfDoc,n=t.renderedPages,i=t.curLoadEnd,o=t.maxConcurrentRenders;n.includes(r.index)||r.pdfDoc.renderedPages.push(r.index);for(var a=!0,s=i-(o-1);s<=i;s++)if(!n.includes(s)){a=!1;break}a&&r.pdfDoc.loadNextBatch(),r.pdfDoc.refreshScroll()}},e.src=this.canvas.toDataURL("image/jpeg",.9),this.cleanupCanvas();case 5:case"end":return t.stop()}},t,this)}));return t}(),t.prototype.cleanupCanvas=function(){if(this.canvas){this.canvas.getContext("2d").clearRect(0,0,this.canvas.width,this.canvas.height),this.canvas.width=0,this.canvas.height=0,this.canvas=null}},t.prototype.destroy=function(){if(this.renderTask&&(this.renderTask.cancel(),this.renderTask=null),this.cleanupCanvas(),this.canvasWrapper){var t=this.canvasWrapper.querySelector("img");t&&t.src.startsWith("blob:")&&URL.revokeObjectURL(t.src),this.canvasWrapper=null}this.pdfPage&&(this.pdfPage.cleanup(),this.pdfPage=null),this.div&&this.div.parentNode&&this.div.parentNode.removeChild(this.div),this.state=d.DESTROYED},t.prototype.setPdfPage=function(t){this.pdfPage=t},t}(),v=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(this,t),this.url=e.url||"",this.container=e.container||null,this.brandColor=e.brandColor||"#8c7fee",this.pdfLoadingTask=null,this.pdfDocument=null,this.numPages=0,this.pageHeight=0,this.pageArr=[],this.startNum=0,this.renderQueue=[],this.isRendering=!1,this.maxConcurrentRenders=1,this.isDestroyed=!1,this.curLoadEnd=0,this.renderedPages=[],this.scollRef=null,this.inited=!1}return t.prototype.init=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{return this.isDestroyed?null:(this.url=e.url||this.url,this.container=e.container||this.container,this.brandColor=e.brandColor||this.brandColor,this.scollRef=e.scollRef,this.pdfLoadingTask=Object(h.getDocument)({url:this.url,cMapPacked:!0,cMapUrl:window.__global_cdn__+"/js/pdf/cmaps/",maxImageSize:10485760}),this.pdfLoadingTask.promise.then(function(e){return t.pdfDocument=e,t.numPages=e.numPages,t.inited=!0,t.initPage()}).catch(function(t){return console.warn("PDF 加载失败:",t),c.a.reject(t)}))}catch(t){return console.warn(t),c.a.reject(t)}},t.prototype.initPage=function(){function t(){return e.apply(this,arguments)}var e=a()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isDestroyed){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.setPdfPages(this.startNum,this.maxConcurrentRenders-1);case 4:return this.render(this.startNum,this.maxConcurrentRenders-1),t.abrupt("return",c.a.resolve({render:this.render.bind(this),totalPages:this.numPages}));case 6:case"end":return t.stop()}},t,this)}));return t}(),t.prototype.loadNextBatch=function(){function t(){return e.apply(this,arguments)}var e=a()(i.a.mark(function t(){var e,r;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isRendering){t.next=2;break}return t.abrupt("return");case 2:if(e=this.curLoadEnd+1,r=Math.min(this.numPages-1,e+this.maxConcurrentRenders-1),!(e>r)){t.next=6;break}return t.abrupt("return");case 6:return t.next=8,this.setPdfPages(e,r);case 8:this.render(e,r);case 9:case"end":return t.stop()}},t,this)}));return t}(),t.prototype.setPdfPages=function(){function t(t,r){return e.apply(this,arguments)}var e=a()(i.a.mark(function t(e,r){var n,o,a,s,c,u,l;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.curLoadEnd=r,n=this.container.offsetWidth,o=this.pageHeight||0,a=e;case 4:if(!(a<=r)){t.next=23;break}return t.prev=5,t.next=8,this.pdfDocument.getPage(a+1);case 8:s=t.sent,c=s.getViewport({scale:1}),u=c.width/n,o=Math.max(Math.floor(c.height/u),o),l=new p({scale:u,viewport:c,container:this.container,brandColor:this.brandColor,index:a,pdfDoc:this}),l.setPdfPage(s),this.pageArr[a]=l,t.next=20;break;case 17:t.prev=17,t.t0=t.catch(5),console.warn("页面 "+(a+1)+" 初始化失败:",t.t0);case 20:a++,t.next=4;break;case 23:this.pageHeight=o,r<this.numPages-1&&0!==r?this.setBottomLoading():this.hideBottomLoading();case 25:case"end":return t.stop()}},t,this,[[5,17]])}));return t}(),t.prototype.render=function(){function t(t,r){return e.apply(this,arguments)}var e=a()(i.a.mark(function t(e,r){var n,o;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.renderedPages.includes(r)){t.next=2;break}return t.abrupt("return");case 2:if(!this.isDestroyed){t.next=4;break}return t.abrupt("return");case 4:for(this.renderQueue=[],n=Math.min(r,this.numPages-1),o=e;o<=n;o++)o>=0&&o<this.numPages&&this.pageArr[o]&&this.renderQueue.push(this.pageArr[o]);return t.next=9,this.processRenderQueue();case 9:case"end":return t.stop()}},t,this)}));return t}(),t.prototype.processRenderQueue=function(){function t(){return e.apply(this,arguments)}var e=a()(i.a.mark(function t(){var e,r,n,o=this;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isRendering&&0!==this.renderQueue.length){t.next=2;break}return t.abrupt("return");case 2:this.isRendering=!0,e=[],t.prev=4;case 5:if(!(this.renderQueue.length>0||e.length>0)){t.next=18;break}r=function(){var t=o.renderQueue.shift();if(![d.INITED].includes(t.state))return"continue";if(t.draw(),t.state!==d.DRAWING)return"continue";var r={pageView:t,promise:t.render().then(function(){console.log("页面 "+(t.index+1)+" 渲染完成")}).catch(function(e){console.warn("页面 "+(t.index+1)+" 渲染失败:",e)}).finally(function(){var t=e.indexOf(r);t>-1&&e.splice(t,1)})};e.push(r)};case 7:if(!(e.length<this.maxConcurrentRenders&&this.renderQueue.length>0)){t.next=13;break}if("continue"!==(n=r())){t.next=11;break}return t.abrupt("continue",7);case 11:t.next=7;break;case 13:if(!(e.length>0)){t.next=16;break}return t.next=16,c.a.race(e.map(function(t){return t.promise}));case 16:t.next=5;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(4),console.error("渲染队列处理失败:",t.t0);case 23:return t.prev=23,this.isRendering=!1,t.finish(23);case 26:case"end":return t.stop()}},t,this,[[4,20,23,26]])}));return t}(),t.prototype.refreshScroll=function(){this.scollRef&&this.scollRef.refresh()},t.prototype.setBottomLoading=function(){this.hideBottomLoading();var t=document.createElement("div");t.innerHTML='<div class="loading-wrap">\n <div class="loading-cont-cir" style="color: '+this.brandColor+'"></div>\n </div>',t.id="pdf-bottom-loading",this.container.appendChild(t)},t.prototype.hideBottomLoading=function(){var t=document.getElementById("pdf-bottom-loading");t&&t.remove()},t.prototype.destroy=function(){this.isDestroyed=!0,this.isRendering=!1,this.renderQueue=[],this.pageArr.forEach(function(t){t&&t.destroy()}),this.pageArr=[],this.pdfDocument&&(this.pdfDocument.destroy(),this.pdfDocument=null),this.pdfLoadingTask&&(this.pdfLoadingTask.destroy(),this.pdfLoadingTask=null),this.container&&(this.container.innerHTML=""),console.log("PDF 实例已销毁")},t}();e.default=v},335:function(module,exports,__webpack_require__){(function(Buffer,process,global){!function(t,e){module.exports=e()}(0,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var i in t)e.d(n,i,function(e){return t[e]}.bind(null,i));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLinkAttributes",{enumerable:!0,get:function(){return n.addLinkAttributes}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return n.getFilenameFromUrl}}),Object.defineProperty(e,"LinkTarget",{enumerable:!0,get:function(){return n.LinkTarget}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return n.loadScript}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return n.PDFDateString}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return n.RenderingCancelledException}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return i.build}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return i.getDocument}}),Object.defineProperty(e,"LoopbackPort",{enumerable:!0,get:function(){return i.LoopbackPort}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return i.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return i.PDFWorker}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return i.version}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return o.CMapCompressionType}}),Object.defineProperty(e,"createObjectURL",{enumerable:!0,get:function(){return o.createObjectURL}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return o.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return o.createValidAbsoluteUrl}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return o.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return o.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return o.OPS}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return o.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return o.PermissionFlag}}),Object.defineProperty(e,"removeNullCharacters",{enumerable:!0,get:function(){return o.removeNullCharacters}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return o.shadow}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return o.UnexpectedResponseException}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return o.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return o.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return o.VerbosityLevel}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return a.AnnotationLayer}}),Object.defineProperty(e,"apiCompatibilityParams",{enumerable:!0,get:function(){return s.apiCompatibilityParams}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return c.GlobalWorkerOptions}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return u.renderTextLayer}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return l.SVGGraphics}});var n=r(1),i=r(198),o=r(5),a=r(209),s=r(200),c=r(203),u=r(210),l=r(211);if(r(7).isNodeJS){var h=r(212).PDFNodeStream;(0,i.setPDFNetworkStreamFactory)(function(t){return new h(t)})}else{var f,d=r(215).PDFNetworkStream;(0,n.isFetchSupported)()&&(f=r(216).PDFFetchStream),(0,i.setPDFNetworkStreamFactory)(function(t){return f&&(0,n.isValidFetchUrl)(t.url)?new f(t):new d(t)})}},function(t,e,r){"use strict";function n(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=i(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t){"@babel/helpers - typeof";return(a="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})(t)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=f();return function(){var r,n=d(t);if(e){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function v(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){function o(t){p(s,n,i,o,a,"next",t)}function a(t){p(s,n,i,o,a,"throw",t)}var s=t.apply(e,r);o(void 0)})}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function y(t,e,r){return e&&g(t.prototype,e),r&&g(t,r),t}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.url,n=e.target,i=e.rel,o=e.enabled,a=void 0===o||o;(0,k.assert)(r&&"string"==typeof r,'addLinkAttributes: A valid "url" parameter must provided.');var s=(0,k.removeNullCharacters)(r);a?t.href=t.title=s:(t.href="",t.title="Disabled: ".concat(s),t.onclick=function(){return!1});var c="";switch(n){case M.NONE:break;case M.SELF:c="_self";break;case M.BLANK:c="_blank";break;case M.PARENT:c="_parent";break;case M.TOP:c="_top"}t.target=c,t.rel="string"==typeof i?i:P}function _(t){var e=t.indexOf("#"),r=t.indexOf("?"),n=Math.min(e>0?e:t.length,r>0?r:t.length);return t.substring(t.lastIndexOf("/",n)+1,n)}function w(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function S(t,e){try{var r=e?new URL(t,e):new URL(t),n=r.protocol;return"http:"===n||"https:"===n}catch(t){return!1}}function A(t){return new Promise(function(e,r){var n=document.createElement("script");n.src=t,n.onload=e,n.onerror=function(){r(new Error("Cannot load script at: ".concat(n.src)))},(document.head||document.documentElement).appendChild(n)})}function x(t){console.log("Deprecated API usage: "+t)}Object.defineProperty(e,"__esModule",{value:!0}),e.addLinkAttributes=b,e.getFilenameFromUrl=_,e.isFetchSupported=w,e.isValidFetchUrl=S,e.loadScript=A,e.deprecated=x,e.PDFDateString=e.StatTimer=e.DOMSVGFactory=e.DOMCMapReaderFactory=e.DOMCanvasFactory=e.DEFAULT_LINK_REL=e.LinkTarget=e.RenderingCancelledException=e.PageViewport=void 0;var T=function(t){return t&&t.__esModule?t:{default:t}}(r(2)),k=r(5),P="noopener noreferrer nofollow";e.DEFAULT_LINK_REL=P;var C="http://www.w3.org/2000/svg",R=function(){function t(){m(this,t)}return y(t,[{key:"create",value:function(t,e){if(t<=0||e<=0)throw new Error("Invalid canvas size");var r=document.createElement("canvas"),n=r.getContext("2d");return r.width=t,r.height=e,{canvas:r,context:n}}},{key:"reset",value:function(t,e,r){if(!t.canvas)throw new Error("Canvas is not specified");if(e<=0||r<=0)throw new Error("Invalid canvas size");t.canvas.width=e,t.canvas.height=r}},{key:"destroy",value:function(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}}]),t}();e.DOMCanvasFactory=R;var E=function(){function t(e){var r=e.baseUrl,n=void 0===r?null:r,i=e.isCompressed,o=void 0!==i&&i;m(this,t),this.baseUrl=n,this.isCompressed=o}return y(t,[{key:"fetch",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){var t=v(T.default.mark(function t(e){var r,n,i,o=this;return T.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.name,this.baseUrl){t.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(r){t.next=5;break}throw new Error("CMap name must be specified.");case 5:if(n=this.baseUrl+r+(this.isCompressed?".bcmap":""),i=this.isCompressed?k.CMapCompressionType.BINARY:k.CMapCompressionType.NONE,!w()||!S(n,document.baseURI)){t.next=9;break}return t.abrupt("return",fetch(n).then(function(){var t=v(T.default.mark(function t(e){var r;return T.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.ok){t.next=2;break}throw new Error(e.statusText);case 2:if(!o.isCompressed){t.next=10;break}return t.t0=Uint8Array,t.next=6,e.arrayBuffer();case 6:t.t1=t.sent,r=new t.t0(t.t1),t.next=15;break;case 10:return t.t2=k.stringToBytes,t.next=13,e.text();case 13:t.t3=t.sent,r=(0,t.t2)(t.t3);case 15:return t.abrupt("return",{cMapData:r,compressionType:i});case 16:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()).catch(function(t){throw new Error("Unable to load ".concat(o.isCompressed?"binary ":"")+"CMap at: ".concat(n))}));case 9:return t.abrupt("return",new Promise(function(t,e){var r=new XMLHttpRequest;r.open("GET",n,!0),o.isCompressed&&(r.responseType="arraybuffer"),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE){if(200===r.status||0===r.status){var n;if(o.isCompressed&&r.response?n=new Uint8Array(r.response):!o.isCompressed&&r.responseText&&(n=(0,k.stringToBytes)(r.responseText)),n)return void t({cMapData:n,compressionType:i})}e(new Error(r.statusText))}},r.send(null)}).catch(function(t){throw new Error("Unable to load ".concat(o.isCompressed?"binary ":"")+"CMap at: ".concat(n))}));case 10:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}())}]),t}();e.DOMCMapReaderFactory=E;var O=function(){function t(){m(this,t)}return y(t,[{key:"create",value:function(t,e){(0,k.assert)(t>0&&e>0,"Invalid SVG dimensions");var r=document.createElementNS(C,"svg:svg");return r.setAttribute("version","1.1"),r.setAttribute("width",t+"px"),r.setAttribute("height",e+"px"),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 "+t+" "+e),r}},{key:"createElement",value:function(t){return(0,k.assert)("string"==typeof t,"Invalid SVG element type"),document.createElementNS(C,t)}}]),t}();e.DOMSVGFactory=O;var L=function(){function t(e){var r=e.viewBox,n=e.scale,i=e.rotation,o=e.offsetX,a=void 0===o?0:o,s=e.offsetY,c=void 0===s?0:s,u=e.dontFlip,l=void 0!==u&&u;m(this,t),this.viewBox=r,this.scale=n,this.rotation=i,this.offsetX=a,this.offsetY=c;var h,f,d,p,v=(r[2]+r[0])/2,g=(r[3]+r[1])/2;switch(i%=360,i=i<0?i+360:i){case 180:h=-1,f=0,d=0,p=1;break;case 90:h=0,f=1,d=1,p=0;break;case 270:h=0,f=-1,d=-1,p=0;break;case 0:h=1,f=0,d=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}l&&(d=-d,p=-p);var y,b,_,w;0===h?(y=Math.abs(g-r[1])*n+a,b=Math.abs(v-r[0])*n+c,_=Math.abs(r[3]-r[1])*n,w=Math.abs(r[2]-r[0])*n):(y=Math.abs(v-r[0])*n+a,b=Math.abs(g-r[1])*n+c,_=Math.abs(r[2]-r[0])*n,w=Math.abs(r[3]-r[1])*n),this.transform=[h*n,f*n,d*n,p*n,y-h*n*v-d*n*g,b-f*n*v-p*n*g],this.width=_,this.height=w}return y(t,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.scale,n=void 0===r?this.scale:r,i=e.rotation,o=void 0===i?this.rotation:i,a=e.offsetX,s=void 0===a?this.offsetX:a,c=e.offsetY,u=void 0===c?this.offsetY:c,l=e.dontFlip,h=void 0!==l&&l;return new t({viewBox:this.viewBox.slice(),scale:n,rotation:o,offsetX:s,offsetY:u,dontFlip:h})}},{key:"convertToViewportPoint",value:function(t,e){return k.Util.applyTransform([t,e],this.transform)}},{key:"convertToViewportRectangle",value:function(t){var e=k.Util.applyTransform([t[0],t[1]],this.transform),r=k.Util.applyTransform([t[2],t[3]],this.transform);return[e[0],e[1],r[0],r[1]]}},{key:"convertToPdfPoint",value:function(t,e){return k.Util.applyInverseTransform([t,e],this.transform)}}]),t}();e.PageViewport=L;var I=function(t){function e(t,n){var i;return m(this,e),i=r.call(this,t),i.type=n,i}s(e,t);var r=u(e);return e}(k.BaseException);e.RenderingCancelledException=I;var M={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};e.LinkTarget=M;var F=function(){function t(){m(this,t),this.started=Object.create(null),this.times=[]}return y(t,[{key:"time",value:function(t){t in this.started&&(0,k.warn)("Timer is already running for ".concat(t)),this.started[t]=Date.now()}},{key:"timeEnd",value:function(t){t in this.started||(0,k.warn)("Timer has not been started for ".concat(t)),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}},{key:"toString",value:function(){var t,e=[],r=0,i=n(this.times);try{for(i.s();!(t=i.n()).done;){var o=t.value,a=o.name;a.length>r&&(r=a.length)}}catch(t){i.e(t)}finally{i.f()}var s,c=n(this.times);try{for(c.s();!(s=c.n()).done;){var u=s.value,l=u.end-u.start;e.push("".concat(u.name.padEnd(r)," ").concat(l,"ms\n"))}}catch(t){c.e(t)}finally{c.f()}return e.join("")}}]),t}();e.StatTimer=F;var D,j=function(){function t(){m(this,t)}return y(t,null,[{key:"toDateObject",value:function(t){if(!t||!(0,k.isString)(t))return null;D||(D=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var e=D.exec(t);if(!e)return null;var r=parseInt(e[1],10),n=parseInt(e[2],10);n=n>=1&&n<=12?n-1:0;var i=parseInt(e[3],10);i=i>=1&&i<=31?i:1;var o=parseInt(e[4],10);o=o>=0&&o<=23?o:0;var a=parseInt(e[5],10);a=a>=0&&a<=59?a:0;var s=parseInt(e[6],10);s=s>=0&&s<=59?s:0;var c=e[7]||"Z",u=parseInt(e[8],10);u=u>=0&&u<=23?u:0;var l=parseInt(e[9],10)||0;return l=l>=0&&l<=59?l:0,"-"===c?(o+=u,a+=l):"+"===c&&(o-=u,a-=l),new Date(Date.UTC(r,n,i,o,a,s))}}]),t}();e.PDFDateString=j},function(t,e,r){"use strict";t.exports=r(3)},function(t,e,r){"use strict";(function(t){function e(t){"@babel/helpers - typeof";return(e="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})(t)}var r=function(t){function r(t,e,r,n){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),s=new d(n||[]);return a._invoke=u(t,r,s),a}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function a(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t,r){function i(o,a,s,c){var u=n(t[o],t,a);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"===e(h)&&y.call(h,"__await")?r.resolve(h.__await).then(function(t){i("next",t,s,c)},function(t){i("throw",t,s,c)}):r.resolve(h).then(function(t){l.value=t,s(l)},function(t){return i("throw",t,s,c)})}c(u.arg)}function o(t,e){function n(){return new r(function(r,n){i(t,e,r,n)})}return a=a?a.then(n,n):n()}var a;this._invoke=o}function u(t,e,r){var i=A;return function(o,a){if(i===T)throw new Error("Generator is already running");if(i===k){if("throw"===o)throw a;return v()}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=l(s,r);if(c){if(c===P)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===A)throw i=k,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=T;var u=n(t,e,r);if("normal"===u.type){if(i=r.done?k:x,u.arg===P)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=k,r.method="throw",r.arg=u.arg)}}}function l(t,e){var r=t.iterator[e.method];if(r===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,l(t,e),"throw"===e.method))return P;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return P}var i=n(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,P;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,P):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,P)}function h(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 f(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,this),this.reset(!0)}function p(t){if(t){var e=t[_];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(y.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=m,e.done=!0,e};return n.next=n}}return{next:v}}function v(){return{value:m,done:!0}}var m,g=Object.prototype,y=g.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},_=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",S=b.toStringTag||"@@toStringTag";t.wrap=r;var A="suspendedStart",x="suspendedYield",T="executing",k="completed",P={},C={};C[_]=function(){return this};var R=Object.getPrototypeOf,E=R&&R(R(p([])));E&&E!==g&&y.call(E,_)&&(C=E);var O=a.prototype=i.prototype=Object.create(C);return o.prototype=O.constructor=a,a.constructor=o,a[S]=o.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,S in t||(t[S]="GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},s(c.prototype),c.prototype[w]=function(){return this},t.AsyncIterator=c,t.async=function(e,n,i,o,a){void 0===a&&(a=Promise);var s=new c(r(e,n,i,o),a);return t.isGeneratorFunction(n)?s:s.next().then(function(t){return t.done?t.value:s.next()})},s(O),O[S]="Generator",O[_]=function(){return this},O.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=p,d.prototype={constructor:d,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(f),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return o.type="throw",o.arg=t,r.next=e,n&&(r.method="next",r.arg=m),!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&y.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,P):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),P},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),f(r),P}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;f(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:p(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=m),P}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}}).call(this,r(4)(t))},function(t,e,r){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}function o(t){"@babel/helpers - typeof";return(o="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})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=f();return function(){var r,n=d(t);if(e){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t){Number.isInteger(t)&&(ct=t)}function v(){return ct}function m(t){ct>=nt.INFOS&&console.log("Info: ".concat(t))}function g(t){ct>=nt.WARNINGS&&console.log("Warning: ".concat(t))}function y(t){throw new Error(t)}function b(t,e){t||y(e)}function _(t,e){var r;try{if(r=new URL(t),!r.origin||"null"===r.origin)return!1}catch(t){return!1}var n=new URL(e,r);return r.origin===n.origin}function w(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function S(t,e){if(!t)return null;try{var r=e?new URL(t,e):new URL(t);if(w(r))return r}catch(t){}return null}function A(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}function x(t){return"string"!=typeof t?(g("The argument for removeNullCharacters must be a string."),t):t.replace(gt,"")}function T(t){b(null!==t&&"object"===o(t)&&void 0!==t.length,"Invalid argument for bytesToString");var e=t.length;if(e<8192)return String.fromCharCode.apply(null,t);for(var r=[],n=0;n<e;n+=8192){var i=Math.min(n+8192,e),a=t.subarray(n,i);r.push(String.fromCharCode.apply(null,a))}return r.join("")}function k(t){b("string"==typeof t,"Invalid argument for stringToBytes");for(var e=t.length,r=new Uint8Array(e),n=0;n<e;++n)r[n]=255&t.charCodeAt(n);return r}function P(t){return void 0!==t.length?t.length:(b(void 0!==t.byteLength,"arrayByteLength - invalid argument."),t.byteLength)}function C(t){var e=t.length;if(1===e&&t[0]instanceof Uint8Array)return t[0];for(var r=0,n=0;n<e;n++)r+=P(t[n]);for(var i=0,o=new Uint8Array(r),a=0;a<e;a++){var s=t[a];s instanceof Uint8Array||(s="string"==typeof s?k(s):new Uint8Array(s));var c=s.byteLength;o.set(s,i),i+=c}return o}function R(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)}function E(){var t=new Uint8Array(4);return t[0]=1,1===new Uint32Array(t.buffer,0,1)[0]}function O(){try{return new Function(""),!0}catch(t){return!1}}function L(t){var e=t.length,r=[];if("þ"===t[0]&&"ÿ"===t[1])for(var n=2;n<e;n+=2)r.push(String.fromCharCode(t.charCodeAt(n)<<8|t.charCodeAt(n+1)));else if("ÿ"===t[0]&&"þ"===t[1])for(var i=2;i<e;i+=2)r.push(String.fromCharCode(t.charCodeAt(i+1)<<8|t.charCodeAt(i)));else for(var o=0;o<e;++o){var a=St[t.charCodeAt(o)];r.push(a?String.fromCharCode(a):t.charAt(o))}return r.join("")}function I(t){return decodeURIComponent(escape(t))}function M(t){return unescape(encodeURIComponent(t))}function F(t){for(var e in t)return!1;return!0}function D(t){return"boolean"==typeof t}function j(t){return"number"==typeof t}function N(t){return"string"==typeof t}function U(t){return"object"===o(t)&&null!==t&&void 0!==t.byteLength}function B(t,e){return t.length===e.length&&t.every(function(t,r){return t===e[r]})}function W(){var t=Object.create(null),e=!1;return Object.defineProperty(t,"settled",{get:function(){return e}}),t.promise=new Promise(function(r,n){t.resolve=function(t){e=!0,r(t)},t.reject=function(t){e=!0,n(t)}}),t}Object.defineProperty(e,"__esModule",{value:!0}),e.arrayByteLength=P,e.arraysToBytes=C,e.assert=b,e.bytesToString=T,e.createPromiseCapability=W,e.getVerbosityLevel=v,e.info=m,e.isArrayBuffer=U,e.isArrayEqual=B,e.isBool=D,e.isEmptyObj=F,e.isNum=j,e.isString=N,e.isSameOrigin=_,e.createValidAbsoluteUrl=S,e.removeNullCharacters=x,e.setVerbosityLevel=p,e.shadow=A,e.string32=R,e.stringToBytes=k,e.stringToPDFString=L,e.stringToUTF8String=I,e.utf8StringToString=M,e.warn=g,e.unreachable=y,e.IsEvalSupportedCached=e.IsLittleEndianCached=e.createObjectURL=e.FormatError=e.Util=e.UnknownErrorException=e.UnexpectedResponseException=e.TextRenderingMode=e.StreamType=e.PermissionFlag=e.PasswordResponses=e.PasswordException=e.MissingPDFException=e.InvalidPDFException=e.AbortException=e.CMapCompressionType=e.ImageKind=e.FontType=e.AnnotationType=e.AnnotationStateModelType=e.AnnotationReviewState=e.AnnotationReplyType=e.AnnotationMarkedState=e.AnnotationFlag=e.AnnotationFieldFlag=e.AnnotationBorderStyleType=e.UNSUPPORTED_FEATURES=e.VerbosityLevel=e.OPS=e.IDENTITY_MATRIX=e.FONT_IDENTITY_MATRIX=e.BaseException=void 0,r(6);var q=[1,0,0,1,0,0];e.IDENTITY_MATRIX=q;var Y=[.001,0,0,.001,0,0];e.FONT_IDENTITY_MATRIX=Y;var z={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};e.PermissionFlag=z;var X={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};e.TextRenderingMode=X;var H={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};e.ImageKind=H;var G={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};e.AnnotationType=G;var V={MARKED:"Marked",REVIEW:"Review"};e.AnnotationStateModelType=V;var $={MARKED:"Marked",UNMARKED:"Unmarked"};e.AnnotationMarkedState=$;var Q={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};e.AnnotationReviewState=Q;var K={GROUP:"Group",REPLY:"R"};e.AnnotationReplyType=K;var J={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};e.AnnotationFlag=J;var Z={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};e.AnnotationFieldFlag=Z;var tt={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};e.AnnotationBorderStyleType=tt;var et={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};e.StreamType=et;var rt={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};e.FontType=rt;var nt={ERRORS:0,WARNINGS:1,INFOS:5};e.VerbosityLevel=nt;var it={NONE:0,BINARY:1,STREAM:2};e.CMapCompressionType=it;var ot={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};e.OPS=ot;var at={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath"};e.UNSUPPORTED_FEATURES=at;var st={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};e.PasswordResponses=st;var ct=nt.WARNINGS,ut=function(){function t(e){this.constructor===t&&y("Cannot initialize BaseException."),this.message=e,this.name=this.constructor.name}return t.prototype=new Error,t.constructor=t,t}();e.BaseException=ut;var lt=function(t){function e(t,n){var i;return a(this,e),i=r.call(this,t),i.code=n,i}s(e,t);var r=u(e);return e}(ut);e.PasswordException=lt;var ht=function(t){function e(t,n){var i;return a(this,e),i=r.call(this,t),i.details=n,i}s(e,t);var r=u(e);return e}(ut);e.UnknownErrorException=ht;var ft=function(t){function e(){return a(this,e),r.apply(this,arguments)}s(e,t);var r=u(e);return e}(ut);e.InvalidPDFException=ft;var dt=function(t){function e(){return a(this,e),r.apply(this,arguments)}s(e,t);var r=u(e);return e}(ut);e.MissingPDFException=dt;var pt=function(t){function e(t,n){var i;return a(this,e),i=r.call(this,t),i.status=n,i}s(e,t);var r=u(e);return e}(ut);e.UnexpectedResponseException=pt;var vt=function(t){function e(){return a(this,e),r.apply(this,arguments)}s(e,t);var r=u(e);return e}(ut);e.FormatError=vt;var mt=function(t){function e(){return a(this,e),r.apply(this,arguments)}s(e,t);var r=u(e);return e}(ut);e.AbortException=mt;var gt=/\x00/g,yt={get value(){return A(this,"value",E())}};e.IsLittleEndianCached=yt;var bt={get value(){return A(this,"value",O())}};e.IsEvalSupportedCached=bt;var _t=["rgb(",0,",",0,",",0,")"],wt=function(){function t(){a(this,t)}return i(t,null,[{key:"makeCssRgb",value:function(t,e,r){return _t[1]=t,_t[3]=e,_t[5]=r,_t.join("")}},{key:"transform",value:function(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}},{key:"applyTransform",value:function(t,e){return[t[0]*e[0]+t[1]*e[2]+e[4],t[0]*e[1]+t[1]*e[3]+e[5]]}},{key:"applyInverseTransform",value:function(t,e){var r=e[0]*e[3]-e[1]*e[2];return[(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])/r,(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/r]}},{key:"getAxialAlignedBoundingBox",value:function(e,r){var n=t.applyTransform(e,r),i=t.applyTransform(e.slice(2,4),r),o=t.applyTransform([e[0],e[3]],r),a=t.applyTransform([e[2],e[1]],r);return[Math.min(n[0],i[0],o[0],a[0]),Math.min(n[1],i[1],o[1],a[1]),Math.max(n[0],i[0],o[0],a[0]),Math.max(n[1],i[1],o[1],a[1])]}},{key:"inverseTransform",value:function(t){var e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}},{key:"apply3dTransform",value:function(t,e){return[t[0]*e[0]+t[1]*e[1]+t[2]*e[2],t[3]*e[0]+t[4]*e[1]+t[5]*e[2],t[6]*e[0]+t[7]*e[1]+t[8]*e[2]]}},{key:"singularValueDecompose2dScale",value:function(t){var e=[t[0],t[2],t[1],t[3]],r=t[0]*e[0]+t[1]*e[2],n=t[0]*e[1]+t[1]*e[3],i=t[2]*e[0]+t[3]*e[2],o=t[2]*e[1]+t[3]*e[3],a=(r+o)/2,s=Math.sqrt((r+o)*(r+o)-4*(r*o-i*n))/2,c=a+s||1,u=a-s||1;return[Math.sqrt(c),Math.sqrt(u)]}},{key:"normalizeRect",value:function(t){var e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e}},{key:"intersect",value:function(e,r){function n(t,e){return t-e}var i=[e[0],e[2],r[0],r[2]].sort(n),o=[e[1],e[3],r[1],r[3]].sort(n),a=[];return e=t.normalizeRect(e),r=t.normalizeRect(r),i[0]===e[0]&&i[1]===r[0]||i[0]===r[0]&&i[1]===e[0]?(a[0]=i[1],a[2]=i[2],o[0]===e[1]&&o[1]===r[1]||o[0]===r[1]&&o[1]===e[1]?(a[1]=o[1],a[3]=o[2],a):null):null}}]),t}();e.Util=wt;var St=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],At=function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(e,r){if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var n=new Blob([e],{type:r});return URL.createObjectURL(n)}for(var i="data:".concat(r,";base64,"),o=0,a=e.length;o<a;o+=3){var s=255&e[o],c=255&e[o+1],u=255&e[o+2];i+=t[s>>2]+t[(3&s)<<4|c>>4]+t[o+1<a?(15&c)<<2|u>>6:64]+t[o+2<a?63&u:64]}return i}}();e.createObjectURL=At},function(t,e,r){"use strict";function n(t){"@babel/helpers - typeof";return(n="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})(t)}var i=r(7);if("undefined"==typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=r(8)),globalThis._pdfjsCompatibilityChecked=!0;var o="object"===("undefined"==typeof window?"undefined":n(window))&&"object"===("undefined"==typeof document?"undefined":n(document)),a="undefined"!=typeof navigator&&navigator.userAgent||"",s=/Trident/.test(a);!function(){!globalThis.btoa&&i.isNodeJS&&(globalThis.btoa=function(t){return Buffer.from(t,"binary").toString("base64")})}(),function(){!globalThis.atob&&i.isNodeJS&&(globalThis.atob=function(t){return Buffer.from(t,"base64").toString("binary")})}(),function(){o&&void 0===Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})}(),function(){if(o&&!i.isNodeJS){var t=document.createElement("div");if(t.classList.add("testOne","testTwo"),!0!==t.classList.contains("testOne")||!0!==t.classList.contains("testTwo")){var e=DOMTokenList.prototype.add,r=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];e.call(this,a)}},DOMTokenList.prototype.remove=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var i=0,o=e;i<o.length;i++){var a=o[i];r.call(this,a)}}}}}(),function(){if(o&&!i.isNodeJS){!1!==document.createElement("div").classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(t){var e=arguments.length>1?!!arguments[1]:!this.contains(t);return this[e?"add":"remove"](t),e})}}(),function(){if(o&&s){var t=window.history.pushState,e=window.history.replaceState;window.history.pushState=function(e,r,n){var i=void 0===n?[e,r]:[e,r,n];t.apply(this,i)},window.history.replaceState=function(t,r,n){var i=void 0===n?[t,r]:[t,r,n];e.apply(this,i)}}}(),function(){String.prototype.startsWith||r(53)}(),function(){String.prototype.endsWith||r(64)}(),function(){String.prototype.includes||r(66)}(),function(){Array.prototype.includes||r(68)}(),function(){Array.from||r(76)}(),function(){Object.assign||r(98)}(),function(){Math.log2||(Math.log2=r(101))}(),function(){Number.isNaN||(Number.isNaN=r(103))}(),function(){Number.isInteger||(Number.isInteger=r(105))}(),function(){Uint8Array.prototype.slice||r(108)}(),function(){globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=r(113))}(),function(){globalThis.URL=r(136)}(),function(){var t=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function(t){t.close()}}),t=!0}catch(t){}t||(globalThis.ReadableStream=r(143).ReadableStream)}(),function(){globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=r(144))}(),function(){globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=r(151))}(),function(){globalThis.WeakMap||(globalThis.WeakMap=r(153))}(),function(){globalThis.WeakSet||(globalThis.WeakSet=r(159))}(),function(){String.prototype.codePointAt||r(161)}(),function(){String.fromCodePoint||(String.fromCodePoint=r(163))}(),function(){globalThis.Symbol||r(165)}(),function(){String.prototype.padStart||r(188)}(),function(){String.prototype.padEnd||r(193)}(),function(){Object.values||(Object.values=r(195))}()}},function(t,e,r){"use strict";function n(t){"@babel/helpers - typeof";return(n="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})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.isNodeJS=void 0;var i="object"===(void 0===process?"undefined":n(process))&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;e.isNodeJS=i},function(t,e,r){r(9),t.exports=r(11)},function(t,e,r){r(10)({global:!0},{globalThis:r(11)})},function(t,e,r){var n=r(11),i=r(12).f,o=r(26),a=r(29),s=r(30),c=r(40),u=r(52);t.exports=function(t,e){var r,l,h,f,d,p=t.target,v=t.global,m=t.stat;if(r=v?n:m?n[p]||s(p,{}):(n[p]||{}).prototype)for(l in e){if(f=e[l],t.noTargetGet?(d=i(r,l),h=d&&d.value):h=r[l],!u(v?l:p+(m?".":"#")+l,t.forced)&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}(t.sham||h&&h.sham)&&o(f,"sham",!0),a(r,l,f,t)}}},function(t,e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||Function("return this")()},function(t,e,r){var n=r(13),i=r(15),o=r(16),a=r(17),s=r(21),c=r(23),u=r(24),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=a(t),e=s(e,!0),u)try{return l(t,e)}catch(t){}if(c(t,e))return o(!i.f.call(t,e),t[e])}},function(t,e,r){var n=r(14);t.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(18),i=r(20);t.exports=function(t){return n(i(t))}},function(t,e,r){var n=r(14),i=r(19),o="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(22);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(13),i=r(14),o=r(25);t.exports=!n&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(11),i=r(22),o=n.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,r){var n=r(13),i=r(27),o=r(16);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(13),i=r(24),o=r(28),a=r(21),s=Object.defineProperty;e.f=n?s:function(t,e,r){if(o(t),e=a(e,!0),o(r),i)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(22);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,r){var n=r(11),i=r(26),o=r(23),a=r(30),s=r(31),c=r(33),u=c.get,l=c.enforce,h=String(String).split("String");(t.exports=function(t,e,r,s){var c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;if("function"==typeof r&&("string"!=typeof e||o(r,"name")||i(r,"name",e),l(r).source=h.join("string"==typeof e?e:"")),t===n)return void(u?t[e]=r:a(e,r));c?!f&&t[e]&&(u=!0):delete t[e],u?t[e]=r:i(t,e,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&u(this).source||s(this)})},function(t,e,r){var n=r(11),i=r(26);t.exports=function(t,e){try{i(n,t,e)}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(32),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return i.call(t)}),t.exports=n.inspectSource},function(t,e,r){var n=r(11),i=r(30),o=n["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,r){var n,i,o,a=r(34),s=r(11),c=r(22),u=r(26),l=r(23),h=r(35),f=r(39),d=s.WeakMap,p=function(t){return o(t)?i(t):n(t,{})},v=function(t){return function(e){var r;if(!c(e)||(r=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}};if(a){var m=new d,g=m.get,y=m.has,b=m.set;n=function(t,e){return b.call(m,t,e),e},i=function(t){return g.call(m,t)||{}},o=function(t){return y.call(m,t)}}else{var _=h("state");f[_]=!0,n=function(t,e){return u(t,_,e),e},i=function(t){return l(t,_)?t[_]:{}},o=function(t){return l(t,_)}}t.exports={set:n,get:i,has:o,enforce:p,getterFor:v}},function(t,e,r){var n=r(11),i=r(31),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},function(t,e,r){var n=r(36),i=r(38),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e,r){var n=r(37),i=r(32);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+n).toString(36)}},function(t,e){t.exports={}},function(t,e,r){var n=r(23),i=r(41),o=r(12),a=r(27);t.exports=function(t,e){for(var r=i(e),s=a.f,c=o.f,u=0;u<r.length;u++){var l=r[u];n(t,l)||s(t,l,c(e,l))}}},function(t,e,r){var n=r(42),i=r(44),o=r(51),a=r(28);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?e.concat(r(t)):e}},function(t,e,r){var n=r(43),i=r(11),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(i[t]):n[t]&&n[t][e]||i[t]&&i[t][e]}},function(t,e,r){var n=r(11);t.exports=n},function(t,e,r){var n=r(45),i=r(50),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,r){var n=r(23),i=r(17),o=r(46).indexOf,a=r(39);t.exports=function(t,e){var r,s=i(t),c=0,u=[];for(r in s)!n(a,r)&&n(s,r)&&u.push(r);for(;e.length>c;)n(s,r=e[c++])&&(~o(u,r)||u.push(r));return u}},function(t,e,r){var n=r(17),i=r(47),o=r(49),a=function(t){return function(e,r,a){var s,c=n(e),u=i(c.length),l=o(a,u);if(t&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,r){var n=r(48),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(48),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(14),i=/#|\.prototype\./,o=function(t,e){var r=s[a(t)];return r==u||r!=c&&("function"==typeof e?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},function(t,e,r){r(54);var n=r(61);t.exports=n("String","startsWith")},function(t,e,r){"use strict";var n=r(10),i=r(12).f,o=r(47),a=r(55),s=r(20),c=r(60),u=r(37),l="".startsWith,h=Math.min,f=c("startsWith");n({target:"String",proto:!0,forced:!(!u&&!f&&!!function(){var t=i(String.prototype,"startsWith");return t&&!t.writable}()||f)},{startsWith:function(t){var e=String(s(this));a(t);var r=o(h(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return l?l.call(e,n,r):e.slice(r,r+n.length)===n}})},function(t,e,r){var n=r(56);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,r){var n=r(22),i=r(19),o=r(57),a=o("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},function(t,e,r){var n=r(11),i=r(36),o=r(23),a=r(38),s=r(58),c=r(59),u=i("wks"),l=n.Symbol,h=c?l:l&&l.withoutSetter||a;t.exports=function(t){return o(u,t)||(s&&o(l,t)?u[t]=l[t]:u[t]=h("Symbol."+t)),u[t]}},function(t,e,r){var n=r(14);t.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},function(t,e,r){var n=r(58);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){var n=r(57),i=n("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[i]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,r){var n=r(11),i=r(62),o=Function.call;t.exports=function(t,e,r){return i(o,n[t].prototype[e],r)}},function(t,e,r){var n=r(63);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,r){r(65);var n=r(61);t.exports=n("String","endsWith")},function(t,e,r){"use strict";var n=r(10),i=r(12).f,o=r(47),a=r(55),s=r(20),c=r(60),u=r(37),l="".endsWith,h=Math.min,f=c("endsWith");n({target:"String",proto:!0,forced:!(!u&&!f&&!!function(){var t=i(String.prototype,"endsWith");return t&&!t.writable}()||f)},{endsWith:function(t){var e=String(s(this));a(t);var r=arguments.length>1?arguments[1]:void 0,n=o(e.length),i=void 0===r?n:h(o(r),n),c=String(t);return l?l.call(e,c,i):e.slice(i-c.length,i)===c}})},function(t,e,r){r(67);var n=r(61);t.exports=n("String","includes")},function(t,e,r){"use strict";var n=r(10),i=r(55),o=r(20);n({target:"String",proto:!0,forced:!r(60)("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){r(69);var n=r(61);t.exports=n("Array","includes")},function(t,e,r){"use strict";var n=r(10),i=r(46).includes,o=r(70);n({target:"Array",proto:!0,forced:!r(75)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(t,e,r){var n=r(57),i=r(71),o=r(27),a=n("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e,r){var n,i=r(28),o=r(72),a=r(50),s=r(39),c=r(74),u=r(25),l=r(35),h=l("IE_PROTO"),f=function(){},d=function(t){return"<script>"+t+"<\/script>"},p=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){var t,e=u("iframe");return e.style.display="none",c.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(d("document.F=Object")),t.close(),t.F},m=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}m=n?p(n):v();for(var t=a.length;t--;)delete m.prototype[a[t]];return m()};s[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(f.prototype=i(t),r=new f,f.prototype=null,r[h]=t):r=m(),void 0===e?r:o(r,e)}},function(t,e,r){var n=r(13),i=r(27),o=r(28),a=r(73);t.exports=n?Object.defineProperties:function(t,e){o(t);for(var r,n=a(e),s=n.length,c=0;s>c;)i.f(t,r=n[c++],e[r]);return t}},function(t,e,r){var n=r(45),i=r(50);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e,r){var n=r(42);t.exports=n("document","documentElement")},function(t,e,r){var n=r(13),i=r(14),o=r(23),a=Object.defineProperty,s={},c=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var r=[][t],u=!!o(e,"ACCESSORS")&&e.ACCESSORS,l=o(e,0)?e[0]:c,h=o(e,1)?e[1]:void 0;return s[t]=!!r&&!i(function(){if(u&&!n)return!0;var t={length:-1};u?a(t,1,{enumerable:!0,get:c}):t[1]=1,r.call(t,l,h)})}},function(t,e,r){r(77),r(89);var n=r(43);t.exports=n.Array.from},function(t,e,r){"use strict";var n=r(78).charAt,i=r(33),o=r(79),a=i.set,s=i.getterFor("String Iterator");o(String,"String",function(t){a(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=s(this),r=e.string,i=e.index;return i>=r.length?{value:void 0,done:!0}:(t=n(r,i),e.index+=t.length,{value:t,done:!1})})},function(t,e,r){var n=r(48),i=r(20),o=function(t){return function(e,r){var o,a,s=String(i(e)),c=n(r),u=s.length;return c<0||c>=u?t?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},function(t,e,r){"use strict";var n=r(10),i=r(80),o=r(82),a=r(87),s=r(85),c=r(26),u=r(29),l=r(57),h=r(37),f=r(86),d=r(81),p=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,m=l("iterator"),g=function(){return this};t.exports=function(t,e,r,l,d,y,b){i(r,e,l);var _,w,S,A=function(t){if(t===d&&C)return C;if(!v&&t in k)return k[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},x=e+" Iterator",T=!1,k=t.prototype,P=k[m]||k["@@iterator"]||d&&k[d],C=!v&&P||A(d),R="Array"==e?k.entries||P:P;if(R&&(_=o(R.call(new t)),p!==Object.prototype&&_.next&&(h||o(_)===p||(a?a(_,p):"function"!=typeof _[m]&&c(_,m,g)),s(_,x,!0,!0),h&&(f[x]=g))),"values"==d&&P&&"values"!==P.name&&(T=!0,C=function(){return P.call(this)}),h&&!b||k[m]===C||c(k,m,C),f[e]=C,d)if(w={values:A("values"),keys:y?C:A("keys"),entries:A("entries")},b)for(S in w)!v&&!T&&S in k||u(k,S,w[S]);else n({target:e,proto:!0,forced:v||T},w);return w}},function(t,e,r){"use strict";var n=r(81).IteratorPrototype,i=r(71),o=r(16),a=r(85),s=r(86),c=function(){return this};t.exports=function(t,e,r){var u=e+" Iterator";return t.prototype=i(n,{next:o(1,r)}),a(t,u,!1,!0),s[u]=c,t}},function(t,e,r){"use strict";var n,i,o,a=r(82),s=r(26),c=r(23),u=r(57),l=r(37),h=u("iterator"),f=!1,d=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)))!==Object.prototype&&(n=i):f=!0),void 0==n&&(n={}),l||c(n,h)||s(n,h,d),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},function(t,e,r){var n=r(23),i=r(83),o=r(35),a=r(84),s=o("IE_PROTO"),c=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,e,r){var n=r(20);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(14);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,e,r){var n=r(27).f,i=r(23),o=r(57),a=o("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,a)&&n(t,a,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,r){var n=r(28),i=r(88);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(r,[]),e=r instanceof Array}catch(t){}return function(r,o){return n(r),i(o),e?t.call(r,o):r.__proto__=o,r}}():void 0)},function(t,e,r){var n=r(22);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,r){var n=r(10),i=r(90);n({target:"Array",stat:!0,forced:!r(97)(function(t){Array.from(t)})},{from:i})},function(t,e,r){"use strict";var n=r(62),i=r(83),o=r(91),a=r(92),s=r(47),c=r(93),u=r(94);t.exports=function(t){var e,r,l,h,f,d,p=i(t),v="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,y=void 0!==g,b=u(p),_=0;if(y&&(g=n(g,m>2?arguments[2]:void 0,2)),void 0==b||v==Array&&a(b))for(e=s(p.length),r=new v(e);e>_;_++)d=y?g(p[_],_):p[_],c(r,_,d);else for(h=b.call(p),f=h.next,r=new v;!(l=f.call(h)).done;_++)d=y?o(h,g,[l.value,_],!0):l.value,c(r,_,d);return r.length=_,r}},function(t,e,r){var n=r(28);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e,r){var n=r(57),i=r(86),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},function(t,e,r){"use strict";var n=r(21),i=r(27),o=r(16);t.exports=function(t,e,r){var a=n(e);a in t?i.f(t,a,o(0,r)):t[a]=r}},function(t,e,r){var n=r(95),i=r(86),o=r(57),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[n(t)]}},function(t,e,r){var n=r(96),i=r(19),o=r(57),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(t){}};t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=c(e=Object(t),a))?r:s?i(e):"Object"==(n=i(e))&&"function"==typeof e.callee?"Arguments":n}},function(t,e,r){var n=r(57),i=n("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},function(t,e,r){var n=r(57),i=n("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}},function(t,e,r){r(99);var n=r(43);t.exports=n.Object.assign},function(t,e,r){var n=r(10),i=r(100);n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(t,e,r){"use strict";var n=r(13),i=r(14),o=r(73),a=r(51),s=r(15),c=r(83),u=r(18),l=Object.assign,h=Object.defineProperty;t.exports=!l||i(function(){if(n&&1!==l({b:1},l(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),i="abcdefghijklmnopqrst";return t[r]=7,i.split("").forEach(function(t){e[t]=t}),7!=l({},t)[r]||o(l({},e)).join("")!=i})?function(t,e){for(var r=c(t),i=arguments.length,l=1,h=a.f,f=s.f;i>l;)for(var d,p=u(arguments[l++]),v=h?o(p).concat(h(p)):o(p),m=v.length,g=0;m>g;)d=v[g++],n&&!f.call(p,d)||(r[d]=p[d]);return r}:l},function(t,e,r){r(102);var n=r(43);t.exports=n.Math.log2},function(t,e,r){var n=r(10),i=Math.log,o=Math.LN2;n({target:"Math",stat:!0},{log2:function(t){return i(t)/o}})},function(t,e,r){r(104);var n=r(43);t.exports=n.Number.isNaN},function(t,e,r){r(10)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,r){r(106);var n=r(43);t.exports=n.Number.isInteger},function(t,e,r){r(10)({target:"Number",stat:!0},{isInteger:r(107)})},function(t,e,r){var n=r(22),i=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&i(t)===t}},function(t,e,r){r(109)},function(t,e,r){"use strict";var n=r(110),i=r(112),o=r(14),a=n.aTypedArray,s=n.aTypedArrayConstructor,c=n.exportTypedArrayMethod,u=[].slice,l=o(function(){new Int8Array(1).slice()});c("slice",function(t,e){for(var r=u.call(a(this),t,e),n=i(this,this.constructor),o=0,c=r.length,l=new(s(n))(c);c>o;)l[o]=r[o++];return l},l)},function(t,e,r){"use strict";var n,i=r(111),o=r(13),a=r(11),s=r(22),c=r(23),u=r(95),l=r(26),h=r(29),f=r(27).f,d=r(82),p=r(87),v=r(57),m=r(38),g=a.Int8Array,y=g&&g.prototype,b=a.Uint8ClampedArray,_=b&&b.prototype,w=g&&d(g),S=y&&d(y),A=Object.prototype,x=A.isPrototypeOf,T=v("toStringTag"),k=m("TYPED_ARRAY_TAG"),P=i&&!!p&&"Opera"!==u(a.opera),C=!1,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},E=function(t){var e=u(t);return"DataView"===e||c(R,e)},O=function(t){return s(t)&&c(R,u(t))},L=function(t){if(O(t))return t;throw TypeError("Target is not a typed array")},I=function(t){if(p){if(x.call(w,t))return t}else for(var e in R)if(c(R,n)){var r=a[e];if(r&&(t===r||x.call(r,t)))return t}throw TypeError("Target is not a typed array constructor")},M=function(t,e,r){if(o){if(r)for(var n in R){var i=a[n];i&&c(i.prototype,t)&&delete i.prototype[t]}S[t]&&!r||h(S,t,r?e:P&&y[t]||e)}},F=function(t,e,r){var n,i;if(o){if(p){if(r)for(n in R)(i=a[n])&&c(i,t)&&delete i[t];if(w[t]&&!r)return;try{return h(w,t,r?e:P&&g[t]||e)}catch(t){}}for(n in R)!(i=a[n])||i[t]&&!r||h(i,t,e)}};for(n in R)a[n]||(P=!1);if((!P||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},P))for(n in R)a[n]&&p(a[n],w);if((!P||!S||S===A)&&(S=w.prototype,P))for(n in R)a[n]&&p(a[n].prototype,S);if(P&&d(_)!==S&&p(_,S),o&&!c(S,T)){C=!0,f(S,T,{get:function(){return s(this)?this[k]:void 0}});for(n in R)a[n]&&l(a[n],k,n)}t.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:C&&k,aTypedArray:L,aTypedArrayConstructor:I,exportTypedArrayMethod:M,exportTypedArrayStaticMethod:F,isView:E,isTypedArray:O,TypedArray:w,TypedArrayPrototype:S}},function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,r){var n=r(28),i=r(63),o=r(57),a=o("species");t.exports=function(t,e){var r,o=n(t).constructor;return void 0===o||void 0==(r=n(o)[a])?e:i(r)}},function(t,e,r){r(114),r(77),r(116),r(119),r(134),r(135);var n=r(43);t.exports=n.Promise},function(t,e,r){var n=r(96),i=r(29),o=r(115);n||i(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,r){"use strict";var n=r(96),i=r(95);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,r){var n=r(11),i=r(117),o=r(118),a=r(26),s=r(57),c=s("iterator"),u=s("toStringTag"),l=o.values;for(var h in i){var f=n[h],d=f&&f.prototype;if(d){if(d[c]!==l)try{a(d,c,l)}catch(t){d[c]=l}if(d[u]||a(d,u,h),i[h])for(var p in o)if(d[p]!==o[p])try{a(d,p,o[p])}catch(t){d[p]=o[p]}}}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,r){"use strict";var n=r(17),i=r(70),o=r(86),a=r(33),s=r(79),c=a.set,u=a.getterFor("Array Iterator");t.exports=s(Array,"Array",function(t,e){c(this,{type:"Array Iterator",target:n(t),index:0,kind:e})},function(){var t=u(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,r){"use strict";var n,i,o,a,s=r(10),c=r(37),u=r(11),l=r(42),h=r(120),f=r(29),d=r(121),p=r(85),v=r(122),m=r(22),g=r(63),y=r(123),b=r(19),_=r(31),w=r(124),S=r(97),A=r(112),x=r(125).set,T=r(128),k=r(129),P=r(131),C=r(130),R=r(132),E=r(33),O=r(52),L=r(57),I=r(133),M=L("species"),F="Promise",D=E.get,j=E.set,N=E.getterFor(F),U=h,B=u.TypeError,W=u.document,q=u.process,Y=l("fetch"),z=C.f,X=z,H="process"==b(q),G=!!(W&&W.createEvent&&u.dispatchEvent),V=O(F,function(){if(_(U)===String(U)){if(66===I)return!0;if(!H&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!U.prototype.finally)return!0;if(I>=51&&/native code/.test(U))return!1;var t=U.resolve(1),e=function(t){t(function(){},function(){})},r=t.constructor={};return r[M]=e,!(t.then(function(){})instanceof e)}),$=V||!S(function(t){U.all(t).catch(function(){})}),Q=function(t){var e;return!(!m(t)||"function"!=typeof(e=t.then))&&e},K=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;T(function(){for(var i=e.value,o=1==e.state,a=0;n.length>a;){var s,c,u,l=n[a++],h=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{h?(o||(2===e.rejection&&et(t,e),e.rejection=1),!0===h?s=i:(p&&p.enter(),s=h(i),p&&(p.exit(),u=!0)),s===l.promise?d(B("Promise-chain cycle")):(c=Q(s))?c.call(s,f,d):f(s)):d(i)}catch(t){p&&!u&&p.exit(),d(t)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&Z(t,e)})}},J=function(t,e,r){var n,i;G?(n=W.createEvent("Event"),n.promise=e,n.reason=r,n.initEvent(t,!1,!0),u.dispatchEvent(n)):n={promise:e,reason:r},(i=u["on"+t])?i(n):"unhandledrejection"===t&&P("Unhandled promise rejection",r)},Z=function(t,e){x.call(u,function(){var r,n=e.value,i=tt(e);if(i&&(r=R(function(){H?q.emit("unhandledRejection",n,t):J("unhandledrejection",t,n)}),e.rejection=H||tt(e)?2:1,r.error))throw r.value})},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){x.call(u,function(){H?q.emit("rejectionHandled",t):J("rejectionhandled",t,e.value)})},rt=function(t,e,r,n){return function(i){t(e,r,i,n)}},nt=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,K(t,e,!0))},it=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw B("Promise can't be resolved itself");var i=Q(r);i?T(function(){var n={done:!1};try{i.call(r,rt(it,t,n,e),rt(nt,t,n,e))}catch(r){nt(t,n,r,e)}}):(e.value=r,e.state=1,K(t,e,!1))}catch(r){nt(t,{done:!1},r,e)}}};V&&(U=function(t){y(this,U,F),g(t),n.call(this);var e=D(this);try{t(rt(it,this,e),rt(nt,this,e))}catch(t){nt(this,e,t)}},n=function(t){j(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})},n.prototype=d(U.prototype,{then:function(t,e){var r=N(this),n=z(A(this,U));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=H?q.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&K(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n,e=D(t);this.promise=t,this.resolve=rt(it,t,e),this.reject=rt(nt,t,e)},C.f=z=function(t){return t===U||t===o?new i(t):X(t)},c||"function"!=typeof h||(a=h.prototype.then,f(h.prototype,"then",function(t,e){var r=this;return new U(function(t,e){a.call(r,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof Y&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return k(U,Y.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:V},{Promise:U}),p(U,F,!1,!0),v(F),o=l(F),s({target:F,stat:!0,forced:V},{reject:function(t){var e=z(this);return e.reject.call(void 0,t),e.promise}}),s({target:F,stat:!0,forced:c||V},{resolve:function(t){return k(c&&this===o?U:this,t)}}),s({target:F,stat:!0,forced:$},{all:function(t){var e=this,r=z(e),n=r.resolve,i=r.reject,o=R(function(){var r=g(e.resolve),o=[],a=0,s=1;w(t,function(t){var c=a++,u=!1;o.push(void 0),s++,r.call(e,t).then(function(t){u||(u=!0,o[c]=t,--s||n(o))},i)}),--s||n(o)});return o.error&&i(o.value),r.promise},race:function(t){var e=this,r=z(e),n=r.reject,i=R(function(){var i=g(e.resolve);w(t,function(t){i.call(e,t).then(r.resolve,n)})});return i.error&&n(i.value),r.promise}})},function(t,e,r){var n=r(11);t.exports=n.Promise},function(t,e,r){var n=r(29);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},function(t,e,r){"use strict";var n=r(42),i=r(27),o=r(57),a=r(13),s=o("species");t.exports=function(t){var e=n(t),r=i.f;a&&e&&!e[s]&&r(e,s,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},function(t,e,r){var n=r(28),i=r(92),o=r(47),a=r(62),s=r(94),c=r(91),u=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,r,l,h){var f,d,p,v,m,g,y,b=a(e,r,l?2:1);if(h)f=t;else{if("function"!=typeof(d=s(t)))throw TypeError("Target is not iterable");if(i(d)){for(p=0,v=o(t.length);v>p;p++)if((m=l?b(n(y=t[p])[0],y[1]):b(t[p]))&&m instanceof u)return m;return new u(!1)}f=d.call(t)}for(g=f.next;!(y=g.call(f)).done;)if("object"==typeof(m=c(f,b,y.value,l))&&m&&m instanceof u)return m;return new u(!1)}).stop=function(t){return new u(!0,t)}},function(t,e,r){var n,i,o,a=r(11),s=r(14),c=r(19),u=r(62),l=r(74),h=r(25),f=r(126),d=a.location,p=a.setImmediate,v=a.clearImmediate,m=a.process,g=a.MessageChannel,y=a.Dispatch,b=0,_={},w=function(t){if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}},S=function(t){return function(){w(t)}},A=function(t){w(t.data)},x=function(t){a.postMessage(t+"",d.protocol+"//"+d.host)};p&&v||(p=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return _[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(b),b},v=function(t){delete _[t]},"process"==c(m)?n=function(t){m.nextTick(S(t))}:y&&y.now?n=function(t){y.now(S(t))}:g&&!f?(i=new g,o=i.port2,i.port1.onmessage=A,n=u(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(x)||"file:"===d.protocol?n="onreadystatechange"in h("script")?function(t){l.appendChild(h("script")).onreadystatechange=function(){l.removeChild(this),w(t)}}:function(t){setTimeout(S(t),0)}:(n=x,a.addEventListener("message",A,!1))),t.exports={set:p,clear:v}},function(t,e,r){var n=r(127);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(t,e,r){var n=r(42);t.exports=n("navigator","userAgent")||""},function(t,e,r){var n,i,o,a,s,c,u,l,h=r(11),f=r(12).f,d=r(19),p=r(125).set,v=r(126),m=h.MutationObserver||h.WebKitMutationObserver,g=h.process,y=h.Promise,b="process"==d(g),_=f(h,"queueMicrotask"),w=_&&_.value;w||(n=function(){var t,e;for(b&&(t=g.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},b?a=function(){g.nextTick(n)}:m&&!v?(s=!0,c=document.createTextNode(""),new m(n).observe(c,{characterData:!0}),a=function(){c.data=s=!s}):y&&y.resolve?(u=y.resolve(void 0),l=u.then,a=function(){l.call(u,n)}):a=function(){p.call(h,n)}),t.exports=w||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},function(t,e,r){var n=r(28),i=r(22),o=r(130);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){"use strict";var n=r(63),i=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},function(t,e,r){var n=r(11);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,r){var n,i,o=r(11),a=r(127),s=o.process,c=s&&s.versions,u=c&&c.v8;u?(n=u.split("."),i=n[0]+n[1]):a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),t.exports=i&&+i},function(t,e,r){"use strict";var n=r(10),i=r(63),o=r(130),a=r(132),s=r(124);n({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=o.f(e),n=r.resolve,c=r.reject,u=a(function(){var r=i(e.resolve),o=[],a=0,c=1;s(t,function(t){var i=a++,s=!1;o.push(void 0),c++,r.call(e,t).then(function(t){s||(s=!0,o[i]={status:"fulfilled",value:t},--c||n(o))},function(t){s||(s=!0,o[i]={status:"rejected",reason:t},--c||n(o))})}),--c||n(o)});return u.error&&c(u.value),r.promise}})},function(t,e,r){"use strict";var n=r(10),i=r(37),o=r(120),a=r(14),s=r(42),c=r(112),u=r(129),l=r(29);n({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(t){var e=c(this,s("Promise")),r="function"==typeof t;return this.then(r?function(r){return u(e,t()).then(function(){return r})}:t,r?function(r){return u(e,t()).then(function(){throw r})}:t)}}),i||"function"!=typeof o||o.prototype.finally||l(o.prototype,"finally",s("Promise").prototype.finally)},function(t,e,r){r(137),r(142),r(140);var n=r(43);t.exports=n.URL},function(t,e,r){"use strict";r(77);var n,i=r(10),o=r(13),a=r(138),s=r(11),c=r(72),u=r(29),l=r(123),h=r(23),f=r(100),d=r(90),p=r(78).codeAt,v=r(139),m=r(85),g=r(140),y=r(33),b=s.URL,_=g.URLSearchParams,w=g.getState,S=y.set,A=y.getterFor("URL"),x=Math.floor,T=Math.pow,k=/[A-Za-z]/,P=/[\d+-.A-Za-z]/,C=/\d/,R=/^(0x|0X)/,E=/^[0-7]+$/,O=/^\d+$/,L=/^[\dA-Fa-f]+$/,I=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,M=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,F=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,D=/[\u0009\u000A\u000D]/g,j=function(t,e){var r,n,i;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(r=U(e.slice(1,-1))))return"Invalid host";t.host=r}else if(V(t)){if(e=v(e),I.test(e))return"Invalid host";if(null===(r=N(e)))return"Invalid host";t.host=r}else{if(M.test(e))return"Invalid host";for(r="",n=d(e),i=0;i<n.length;i++)r+=H(n[i],q);t.host=r}},N=function(t){var e,r,n,i,o,a,s,c=t.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(e=c.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(i=c[n]))return t;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=R.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?O:8==o?E:L).test(i))return t;a=parseInt(i,o)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=T(256,5-e))return null}else if(a>255)return null;for(s=r.pop(),n=0;n<r.length;n++)s+=r[n]*T(256,3-n);return s},U=function(t){var e,r,n,i,o,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,h=0,f=function(){return t.charAt(h)};if(":"==f()){if(":"!=t.charAt(1))return;h+=2,u++,l=u}for(;f();){if(8==u)return;if(":"!=f()){for(e=r=0;r<4&&L.test(f());)e=16*e+parseInt(f(),16),h++,r++;if("."==f()){if(0==r)return;if(h-=r,u>6)return;for(n=0;f();){if(i=null,n>0){if(!("."==f()&&n<4))return;h++}if(!C.test(f()))return;for(;C.test(f());){if(o=parseInt(f(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;h++}c[u]=256*c[u]+i,n++,2!=n&&4!=n||u++}if(4!=n)return;break}if(":"==f()){if(h++,!f())return}else if(f())return;c[u++]=e}else{if(null!==l)return;h++,u++,l=u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c},B=function(t){for(var e=null,r=1,n=null,i=0,o=0;o<8;o++)0!==t[o]?(i>r&&(e=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(e=n,r=i),e},W=function(t){var e,r,n,i;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=x(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=B(t),r=0;r<8;r++)i&&0===t[r]||(i&&(i=!1),n===r?(e+=r?":":"::",i=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},q={},Y=f({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),z=f({},Y,{"#":1,"?":1,"{":1,"}":1}),X=f({},z,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),H=function(t,e){var r=p(t,0);return r>32&&r<127&&!h(e,t)?t:encodeURIComponent(t)},G={ftp:21,file:null,http:80,https:443,ws:80,wss:443},V=function(t){return h(G,t.scheme)},$=function(t){return""!=t.username||""!=t.password},Q=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},K=function(t,e){var r;return 2==t.length&&k.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},J=function(t){var e;return t.length>1&&K(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Z=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&K(e[0],!0)||e.pop()},tt=function(t){return"."===t||"%2e"===t.toLowerCase()},et=function(t){return".."===(t=t.toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t},rt={},nt={},it={},ot={},at={},st={},ct={},ut={},lt={},ht={},ft={},dt={},pt={},vt={},mt={},gt={},yt={},bt={},_t={},wt={},St={},At=function(t,e,r,i){var o,a,s,c,u=r||rt,l=0,f="",p=!1,v=!1,m=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(F,"")),e=e.replace(D,""),o=d(e);l<=o.length;){switch(a=o[l],u){case rt:if(!a||!k.test(a)){if(r)return"Invalid scheme";u=it;continue}f+=a.toLowerCase(),u=nt;break;case nt:if(a&&(P.test(a)||"+"==a||"-"==a||"."==a))f+=a.toLowerCase();else{if(":"!=a){if(r)return"Invalid scheme";f="",u=it,l=0;continue}if(r&&(V(t)!=h(G,f)||"file"==f&&($(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=f,r)return void(V(t)&&G[t.scheme]==t.port&&(t.port=null));f="","file"==t.scheme?u=vt:V(t)&&i&&i.scheme==t.scheme?u=ot:V(t)?u=ut:"/"==o[l+1]?(u=at,l++):(t.cannotBeABaseURL=!0,t.path.push(""),u=_t)}break;case it:if(!i||i.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==a){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,u=St;break}u="file"==i.scheme?vt:st;continue;case ot:if("/"!=a||"/"!=o[l+1]){u=st;continue}u=lt,l++;break;case at:if("/"==a){u=ht;break}u=bt;continue;case st:if(t.scheme=i.scheme,a==n)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==a||"\\"==a&&V(t))u=ct;else if("?"==a)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",u=wt;else{if("#"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),u=bt;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",u=St}break;case ct:if(!V(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,u=bt;continue}u=ht}else u=lt;break;case ut:if(u=lt,"/"!=a||"/"!=f.charAt(l+1))continue;l++;break;case lt:if("/"!=a&&"\\"!=a){u=ht;continue}break;case ht:if("@"==a){p&&(f="%40"+f),p=!0,s=d(f);for(var g=0;g<s.length;g++){var y=s[g];if(":"!=y||m){var b=H(y,X);m?t.password+=b:t.username+=b}else m=!0}f=""}else if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&V(t)){if(p&&""==f)return"Invalid authority";l-=d(f).length+1,f="",u=ft}else f+=a;break;case ft:case dt:if(r&&"file"==t.scheme){u=gt;continue}if(":"!=a||v){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&V(t)){if(V(t)&&""==f)return"Invalid host";if(r&&""==f&&($(t)||null!==t.port))return;if(c=j(t,f))return c;if(f="",u=yt,r)return;continue}"["==a?v=!0:"]"==a&&(v=!1),f+=a}else{if(""==f)return"Invalid host";if(c=j(t,f))return c;if(f="",u=pt,r==dt)return}break;case pt:if(!C.test(a)){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&V(t)||r){if(""!=f){var _=parseInt(f,10);if(_>65535)return"Invalid port";t.port=V(t)&&_===G[t.scheme]?null:_,f=""}if(r)return;u=yt;continue}return"Invalid port"}f+=a;break;case vt:if(t.scheme="file","/"==a||"\\"==a)u=mt;else{if(!i||"file"!=i.scheme){u=bt;continue}if(a==n)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==a)t.host=i.host,t.path=i.path.slice(),t.query="",u=wt;else{if("#"!=a){J(o.slice(l).join(""))||(t.host=i.host,t.path=i.path.slice(),Z(t)),u=bt;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",u=St}}break;case mt:if("/"==a||"\\"==a){u=gt;break}i&&"file"==i.scheme&&!J(o.slice(l).join(""))&&(K(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),u=bt;continue;case gt:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!r&&K(f))u=bt;else if(""==f){if(t.host="",r)return;u=yt}else{if(c=j(t,f))return c;if("localhost"==t.host&&(t.host=""),r)return;f="",u=yt}continue}f+=a;break;case yt:if(V(t)){if(u=bt,"/"!=a&&"\\"!=a)continue}else if(r||"?"!=a)if(r||"#"!=a){if(a!=n&&(u=bt,"/"!=a))continue}else t.fragment="",u=St;else t.query="",u=wt;break;case bt:if(a==n||"/"==a||"\\"==a&&V(t)||!r&&("?"==a||"#"==a)){if(et(f)?(Z(t),"/"==a||"\\"==a&&V(t)||t.path.push("")):tt(f)?"/"==a||"\\"==a&&V(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&K(f)&&(t.host&&(t.host=""),f=f.charAt(0)+":"),t.path.push(f)),f="","file"==t.scheme&&(a==n||"?"==a||"#"==a))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==a?(t.query="",u=wt):"#"==a&&(t.fragment="",u=St)}else f+=H(a,z);break;case _t:"?"==a?(t.query="",u=wt):"#"==a?(t.fragment="",u=St):a!=n&&(t.path[0]+=H(a,q));break;case wt:r||"#"!=a?a!=n&&("'"==a&&V(t)?t.query+="%27":t.query+="#"==a?"%23":H(a,q)):(t.fragment="",u=St);break;case St:a!=n&&(t.fragment+=H(a,Y))}l++}},xt=function(t){var e,r,n=l(this,xt,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(t),s=S(n,{type:"URL"});if(void 0!==i)if(i instanceof xt)e=A(i);else if(r=At(e={},String(i)))throw TypeError(r);if(r=At(s,a,null,e))throw TypeError(r);var c=s.searchParams=new _,u=w(c);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(c)||null},o||(n.href=kt.call(n),n.origin=Pt.call(n),n.protocol=Ct.call(n),n.username=Rt.call(n),n.password=Et.call(n),n.host=Ot.call(n),n.hostname=Lt.call(n),n.port=It.call(n),n.pathname=Mt.call(n),n.search=Ft.call(n),n.searchParams=Dt.call(n),n.hash=jt.call(n))},Tt=xt.prototype,kt=function(){var t=A(this),e=t.scheme,r=t.username,n=t.password,i=t.host,o=t.port,a=t.path,s=t.query,c=t.fragment,u=e+":";return null!==i?(u+="//",$(t)&&(u+=r+(n?":"+n:"")+"@"),u+=W(i),null!==o&&(u+=":"+o)):"file"==e&&(u+="//"),u+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},Pt=function(){var t=A(this),e=t.scheme,r=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&V(t)?e+"://"+W(t.host)+(null!==r?":"+r:""):"null"},Ct=function(){return A(this).scheme+":"},Rt=function(){return A(this).username},Et=function(){return A(this).password},Ot=function(){var t=A(this),e=t.host,r=t.port;return null===e?"":null===r?W(e):W(e)+":"+r},Lt=function(){var t=A(this).host;return null===t?"":W(t)},It=function(){var t=A(this).port;return null===t?"":String(t)},Mt=function(){var t=A(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Ft=function(){var t=A(this).query;return t?"?"+t:""},Dt=function(){return A(this).searchParams},jt=function(){var t=A(this).fragment;return t?"#"+t:""},Nt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&c(Tt,{href:Nt(kt,function(t){var e=A(this),r=String(t),n=At(e,r);if(n)throw TypeError(n);w(e.searchParams).updateSearchParams(e.query)}),origin:Nt(Pt),protocol:Nt(Ct,function(t){var e=A(this);At(e,String(t)+":",rt)}),username:Nt(Rt,function(t){var e=A(this),r=d(String(t));if(!Q(e)){e.username="";for(var n=0;n<r.length;n++)e.username+=H(r[n],X)}}),password:Nt(Et,function(t){var e=A(this),r=d(String(t));if(!Q(e)){e.password="";for(var n=0;n<r.length;n++)e.password+=H(r[n],X)}}),host:Nt(Ot,function(t){var e=A(this);e.cannotBeABaseURL||At(e,String(t),ft)}),hostname:Nt(Lt,function(t){var e=A(this);e.cannotBeABaseURL||At(e,String(t),dt)}),port:Nt(It,function(t){var e=A(this);Q(e)||(t=String(t),""==t?e.port=null:At(e,t,pt))}),pathname:Nt(Mt,function(t){var e=A(this);e.cannotBeABaseURL||(e.path=[],At(e,t+"",yt))}),search:Nt(Ft,function(t){var e=A(this);t=String(t),""==t?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",At(e,t,wt)),w(e.searchParams).updateSearchParams(e.query)}),searchParams:Nt(Dt),hash:Nt(jt,function(t){var e=A(this);if(""==(t=String(t)))return void(e.fragment=null);"#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",At(e,t,St)})}),u(Tt,"toJSON",function(){return kt.call(this)},{enumerable:!0}),u(Tt,"toString",function(){return kt.call(this)},{enumerable:!0}),b){var Ut=b.createObjectURL,Bt=b.revokeObjectURL;Ut&&u(xt,"createObjectURL",function(t){return Ut.apply(b,arguments)}),Bt&&u(xt,"revokeObjectURL",function(t){return Bt.apply(b,arguments)})}m(xt,"URL"),i({global:!0,forced:!a,sham:!o},{URL:xt})},function(t,e,r){var n=r(14),i=r(57),o=r(37),a=i("iterator");t.exports=!n(function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach(function(t,n){e.delete("b"),r+=n+t}),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})},function(t,e,r){"use strict";var n=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,c=function(t){for(var e=[],r=0,n=t.length;r<n;){var i=t.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=t.charCodeAt(r++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),r--)}else e.push(i)}return e},u=function(t){return t+22+75*(t<26)},l=function(t,e,r){var n=0;for(t=r?a(t/700):t>>1,t+=a(t/e);t>455;n+=36)t=a(t/35);return a(n+36*t/(t+38))},h=function(t){var e=[];t=c(t);var r,n,i=t.length,h=128,f=0,d=72;for(r=0;r<t.length;r++)(n=t[r])<128&&e.push(s(n));var p=e.length,v=p;for(p&&e.push("-");v<i;){var m=2147483647;for(r=0;r<t.length;r++)(n=t[r])>=h&&n<m&&(m=n);var g=v+1;if(m-h>a((2147483647-f)/g))throw RangeError(o);for(f+=(m-h)*g,h=m,r=0;r<t.length;r++){if((n=t[r])<h&&++f>2147483647)throw RangeError(o);if(n==h){for(var y=f,b=36;;b+=36){var _=b<=d?1:b>=d+26?26:b-d;if(y<_)break;var w=y-_,S=36-_;e.push(s(u(_+w%S))),y=a(w/S)}e.push(s(u(y))),d=l(f,g,v==p),f=0,++v}}++f,++h}return e.join("")};t.exports=function(t){var e,r,o=[],a=t.toLowerCase().replace(i,".").split(".");for(e=0;e<a.length;e++)r=a[e],o.push(n.test(r)?"xn--"+h(r):r);return o.join(".")}},function(t,e,r){"use strict";r(118);var n=r(10),i=r(42),o=r(138),a=r(29),s=r(121),c=r(85),u=r(80),l=r(33),h=r(123),f=r(23),d=r(62),p=r(95),v=r(28),m=r(22),g=r(71),y=r(16),b=r(141),_=r(94),w=r(57),S=i("fetch"),A=i("Headers"),x=w("iterator"),T=l.set,k=l.getterFor("URLSearchParams"),P=l.getterFor("URLSearchParamsIterator"),C=/\+/g,R=Array(4),E=function(t){return R[t-1]||(R[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},O=function(t){try{return decodeURIComponent(t)}catch(e){return t}},L=function(t){var e=t.replace(C," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(E(r--),O);return e}},I=/[!'()~]|%20/g,M={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},F=function(t){return M[t]},D=function(t){return encodeURIComponent(t).replace(I,F)},j=function(t,e){if(e)for(var r,n,i=e.split("&"),o=0;o<i.length;)r=i[o++],r.length&&(n=r.split("="),t.push({key:L(n.shift()),value:L(n.join("="))}))},N=function(t){this.entries.length=0,j(this.entries,t)},U=function(t,e){if(t<e)throw TypeError("Not enough arguments")},B=u(function(t,e){T(this,{type:"URLSearchParamsIterator",iterator:b(k(t).entries),kind:e})},"Iterator",function(){var t=P(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r}),W=function(){h(this,W,"URLSearchParams");var t,e,r,n,i,o,a,s,c,u=arguments.length>0?arguments[0]:void 0,l=this,d=[];if(T(l,{type:"URLSearchParams",entries:d,updateURL:function(){},updateSearchParams:N}),void 0!==u)if(m(u))if("function"==typeof(t=_(u)))for(e=t.call(u),r=e.next;!(n=r.call(e)).done;){if(i=b(v(n.value)),o=i.next,(a=o.call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");d.push({key:a.value+"",value:s.value+""})}else for(c in u)f(u,c)&&d.push({key:c,value:u[c]+""});else j(d,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},q=W.prototype;s(q,{append:function(t,e){U(arguments.length,2);var r=k(this);r.entries.push({key:t+"",value:e+""}),r.updateURL()},delete:function(t){U(arguments.length,1);for(var e=k(this),r=e.entries,n=t+"",i=0;i<r.length;)r[i].key===n?r.splice(i,1):i++;e.updateURL()},get:function(t){U(arguments.length,1);for(var e=k(this).entries,r=t+"",n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){U(arguments.length,1);for(var e=k(this).entries,r=t+"",n=[],i=0;i<e.length;i++)e[i].key===r&&n.push(e[i].value);return n},has:function(t){U(arguments.length,1);for(var e=k(this).entries,r=t+"",n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){U(arguments.length,1);for(var r,n=k(this),i=n.entries,o=!1,a=t+"",s=e+"",c=0;c<i.length;c++)r=i[c],r.key===a&&(o?i.splice(c--,1):(o=!0,r.value=s));o||i.push({key:a,value:s}),n.updateURL()},sort:function(){var t,e,r,n=k(this),i=n.entries,o=i.slice();for(i.length=0,r=0;r<o.length;r++){for(t=o[r],e=0;e<r;e++)if(i[e].key>t.key){i.splice(e,0,t);break}e===r&&i.push(t)}n.updateURL()},forEach:function(t){for(var e,r=k(this).entries,n=d(t,arguments.length>1?arguments[1]:void 0,3),i=0;i<r.length;)e=r[i++],n(e.value,e.key,this)},keys:function(){return new B(this,"keys")},values:function(){return new B(this,"values")},entries:function(){return new B(this,"entries")}},{enumerable:!0}),a(q,x,q.entries),a(q,"toString",function(){for(var t,e=k(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(D(t.key)+"="+D(t.value));return r.join("&")},{enumerable:!0}),c(W,"URLSearchParams"),n({global:!0,forced:!o},{URLSearchParams:W}),o||"function"!=typeof S||"function"!=typeof A||n({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,r,n,i=[t];return arguments.length>1&&(e=arguments[1],m(e)&&(r=e.body,"URLSearchParams"===p(r)&&(n=e.headers?new A(e.headers):new A,n.has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=g(e,{body:y(0,String(r)),headers:y(0,n)}))),i.push(e)),S.apply(this,i)}}),t.exports={URLSearchParams:W,getState:k}},function(t,e,r){var n=r(28),i=r(94);t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return n(e.call(t))}},function(t,e,r){"use strict";r(10)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(t,e,r){!function(t,r){!function(t){"use strict";function e(){}function r(t){return"object"==typeof t&&null!==t||"function"==typeof t}function n(t){return t.slice()}function i(t,e,r,n,i){new Uint8Array(t).set(new Uint8Array(r,n,i),e)}function o(t){return!1!==a(t)&&t!==1/0}function a(t){return"number"==typeof t&&(!Or(t)&&!(t<0))}function s(t,e,r){if("function"!=typeof t)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(t,e,r)}function c(t,e,r,n){var i=t[e];if(void 0!==i){if("function"!=typeof i)throw new TypeError(i+" is not a method");switch(r){case 0:return function(){return l(i,t,n)};case 1:return function(e){var r=[e].concat(n);return l(i,t,r)}}}return function(){return v(void 0)}}function u(t,e,r){var n=t[e];if(void 0!==n)return s(n,t,r)}function l(t,e,r){try{return v(s(t,e,r))}catch(t){return m(t)}}function h(t){return t}function f(t){if(t=Number(t),Or(t)||t<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return t}function d(t){if(void 0===t)return function(){return 1};if("function"!=typeof t)throw new TypeError("size property of a queuing strategy must be a function");return function(e){return t(e)}}function p(t){return new Ir(t)}function v(t){return Fr(t)}function m(t){return Dr(t)}function g(t,e,r){return Mr.call(t,e,r)}function y(t,e,r){g(g(t,e,r),void 0,Lr)}function b(t,e){y(t,e)}function _(t,e){y(t,void 0,e)}function w(t,e,r){return g(t,e,r)}function S(t){g(t,void 0,Lr)}function A(t,e,r){var n=null;!0===r&&(n=Object.prototype);var i=Object.create(n);return i.value=t,i.done=e,i}function x(t,e){t._forAuthorCode=!0,t._ownerReadableStream=e,e._reader=t,"readable"===e._state?C(t):"closed"===e._state?E(t):R(t,e._storedError)}function T(t,e){return or(t._ownerReadableStream,e)}function k(t){"readable"===t._ownerReadableStream._state?O(t,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):L(t,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),t._ownerReadableStream._reader=void 0,t._ownerReadableStream=void 0}function P(t){return new TypeError("Cannot "+t+" a stream using a released reader")}function C(t){t._closedPromise=p(function(e,r){t._closedPromise_resolve=e,t._closedPromise_reject=r})}function R(t,e){C(t),O(t,e)}function E(t){C(t),I(t)}function O(t,e){S(t._closedPromise),t._closedPromise_reject(e),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0}function L(t,e){R(t,e)}function I(t){t._closedPromise_resolve(void 0),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0}function M(t,e){void 0===e&&(e=!1);var r=new Br(t);return r._forAuthorCode=e,r}function F(t){return p(function(e,r){var n={_resolve:e,_reject:r};t._reader._readRequests.push(n)})}function D(t,e,r){var n=t._reader;n._readRequests.shift()._resolve(A(e,r,n._forAuthorCode))}function j(t){return t._reader._readRequests.length}function N(t){var e=t._reader;return void 0!==e&&!!U(e)}function U(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readRequests")}function B(t){var e=t._ownerReadableStream;return e._disturbed=!0,"closed"===e._state?v(A(void 0,!0,t._forAuthorCode)):"errored"===e._state?m(e._storedError):e._readableStreamController[Ur]()}function W(t){return new TypeError("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}function q(t,e){void 0===e&&(e=!1);var r=M(t),n=Object.create(Wr);return n._asyncIteratorReader=r,n._preventCancel=Boolean(e),n}function Y(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_asyncIteratorReader")}function z(t){return new TypeError("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}function X(t){var e=t._queue.shift();return t._queueTotalSize-=e.size,t._queueTotalSize<0&&(t._queueTotalSize=0),e.value}function H(t,e,r){if(r=Number(r),!o(r))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t._queue.push({value:e,size:r}),t._queueTotalSize+=r}function G(t){return t._queue.peek().value}function V(t){t._queue=new jr,t._queueTotalSize=0}function $(t){return new Xr(t)}function Q(t,e,r,n,i,o){void 0===i&&(i=1),void 0===o&&(o=function(){return 1});var a=Object.create(zr.prototype);return K(a),kt(a,Object.create(Hr.prototype),t,e,r,n,i,o),a}function K(t){t._state="writable",t._storedError=void 0,t._writer=void 0,t._writableStreamController=void 0,t._writeRequests=new jr,t._inFlightWriteRequest=void 0,t._closeRequest=void 0,t._inFlightCloseRequest=void 0,t._pendingAbortRequest=void 0,t._backpressure=!1}function J(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_writableStreamController")}function Z(t){return void 0!==t._writer}function tt(t,e){var r=t._state;if("closed"===r||"errored"===r)return v(void 0);if(void 0!==t._pendingAbortRequest)return t._pendingAbortRequest._promise;var n=!1;"erroring"===r&&(n=!0,e=void 0);var i=p(function(r,i){t._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:i,_reason:e,_wasAlreadyErroring:n}});return t._pendingAbortRequest._promise=i,!1===n&&it(t,e),i}function et(t){var e=t._state;if("closed"===e||"errored"===e)return m(new TypeError("The stream (in "+e+" state) is not in the writable state and cannot be closed"));var r=p(function(e,r){var n={_resolve:e,_reject:r};t._closeRequest=n}),n=t._writer;return void 0!==n&&!0===t._backpressure&&"writable"===e&&te(n),Rt(t._writableStreamController),r}function rt(t){return p(function(e,r){var n={_resolve:e,_reject:r};t._writeRequests.push(n)})}function nt(t,e){if("writable"===t._state)return void it(t,e);ot(t)}function it(t,e){var r=t._writableStreamController;t._state="erroring",t._storedError=e;var n=t._writer;void 0!==n&&wt(n,e),!1===ht(t)&&!0===r._started&&ot(t)}function ot(t){t._state="errored",t._writableStreamController[Yr]();var e=t._storedError;if(t._writeRequests.forEach(function(t){t._reject(e)}),t._writeRequests=new jr,void 0===t._pendingAbortRequest)return void pt(t);var r=t._pendingAbortRequest;if(t._pendingAbortRequest=void 0,!0===r._wasAlreadyErroring)return r._reject(e),void pt(t);y(t._writableStreamController[qr](r._reason),function(){r._resolve(),pt(t)},function(e){r._reject(e),pt(t)})}function at(t){t._inFlightWriteRequest._resolve(void 0),t._inFlightWriteRequest=void 0}function st(t,e){t._inFlightWriteRequest._reject(e),t._inFlightWriteRequest=void 0,nt(t,e)}function ct(t){t._inFlightCloseRequest._resolve(void 0),t._inFlightCloseRequest=void 0,"erroring"===t._state&&(t._storedError=void 0,void 0!==t._pendingAbortRequest&&(t._pendingAbortRequest._resolve(),t._pendingAbortRequest=void 0)),t._state="closed";var e=t._writer;void 0!==e&&Gt(e)}function ut(t,e){t._inFlightCloseRequest._reject(e),t._inFlightCloseRequest=void 0,void 0!==t._pendingAbortRequest&&(t._pendingAbortRequest._reject(e),t._pendingAbortRequest=void 0),nt(t,e)}function lt(t){return void 0!==t._closeRequest||void 0!==t._inFlightCloseRequest}function ht(t){return void 0!==t._inFlightWriteRequest||void 0!==t._inFlightCloseRequest}function ft(t){t._inFlightCloseRequest=t._closeRequest,t._closeRequest=void 0}function dt(t){t._inFlightWriteRequest=t._writeRequests.shift()}function pt(t){void 0!==t._closeRequest&&(t._closeRequest._reject(t._storedError),t._closeRequest=void 0);var e=t._writer;void 0!==e&&Xt(e,t._storedError)}function vt(t,e){var r=t._writer;void 0!==r&&e!==t._backpressure&&(!0===e?Jt(r):te(r)),t._backpressure=e}function mt(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_ownerWritableStream")}function gt(t,e){return tt(t._ownerWritableStream,e)}function yt(t){return et(t._ownerWritableStream)}function bt(t){var e=t._ownerWritableStream,r=e._state;return!0===lt(e)||"closed"===r?v(void 0):"errored"===r?m(e._storedError):yt(t)}function _t(t,e){"pending"===t._closedPromiseState?Xt(t,e):Ht(t,e)}function wt(t,e){"pending"===t._readyPromiseState?Kt(t,e):Zt(t,e)}function St(t){var e=t._ownerWritableStream,r=e._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:Ot(e._writableStreamController)}function At(t){var e=t._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");wt(t,r),_t(t,r),e._writer=void 0,t._ownerWritableStream=void 0}function xt(t,e){var r=t._ownerWritableStream,n=r._writableStreamController,i=Et(n,e);if(r!==t._ownerWritableStream)return m(Wt("write to"));var o=r._state;if("errored"===o)return m(r._storedError);if(!0===lt(r)||"closed"===o)return m(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return m(r._storedError);var a=rt(r);return Lt(n,e,i),a}function Tt(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledWritableStream")}function kt(t,e,r,n,i,o,a,s){e._controlledWritableStream=t,t._writableStreamController=e,e._queue=void 0,e._queueTotalSize=void 0,V(e),e._started=!1,e._strategySizeAlgorithm=s,e._strategyHWM=a,e._writeAlgorithm=n,e._closeAlgorithm=i,e._abortAlgorithm=o;var c=jt(e);vt(t,c),y(v(r()),function(){e._started=!0,It(e)},function(r){e._started=!0,nt(t,r)})}function Pt(t,e,r,n){function i(){return u(e,"start",[o])}var o=Object.create(Hr.prototype),a=c(e,"write",1,[o]),s=c(e,"close",0,[]),l=c(e,"abort",1,[]);kt(t,o,i,a,s,l,r,n)}function Ct(t){t._writeAlgorithm=void 0,t._closeAlgorithm=void 0,t._abortAlgorithm=void 0,t._strategySizeAlgorithm=void 0}function Rt(t){H(t,"close",0),It(t)}function Et(t,e){try{return t._strategySizeAlgorithm(e)}catch(e){return Mt(t,e),1}}function Ot(t){return t._strategyHWM-t._queueTotalSize}function Lt(t,e,r){var n={chunk:e};try{H(t,n,r)}catch(e){return void Mt(t,e)}var i=t._controlledWritableStream;if(!1===lt(i)&&"writable"===i._state){vt(i,jt(t))}It(t)}function It(t){var e=t._controlledWritableStream;if(!1!==t._started&&void 0===e._inFlightWriteRequest){if("erroring"===e._state)return void ot(e);if(0!==t._queue.length){var r=G(t);"close"===r?Ft(t):Dt(t,r.chunk)}}}function Mt(t,e){"writable"===t._controlledWritableStream._state&&Nt(t,e)}function Ft(t){var e=t._controlledWritableStream;ft(e),X(t);var r=t._closeAlgorithm();Ct(t),y(r,function(){ct(e)},function(t){ut(e,t)})}function Dt(t,e){var r=t._controlledWritableStream;dt(r),y(t._writeAlgorithm(e),function(){at(r);var e=r._state;if(X(t),!1===lt(r)&&"writable"===e){var n=jt(t);vt(r,n)}It(t)},function(e){"writable"===r._state&&Ct(t),st(r,e)})}function jt(t){return Ot(t)<=0}function Nt(t,e){var r=t._controlledWritableStream;Ct(t),it(r,e)}function Ut(t){return new TypeError("WritableStream.prototype."+t+" can only be used on a WritableStream")}function Bt(t){return new TypeError("WritableStreamDefaultWriter.prototype."+t+" can only be used on a WritableStreamDefaultWriter")}function Wt(t){return new TypeError("Cannot "+t+" a stream using a released writer")}function qt(t){t._closedPromise=p(function(e,r){t._closedPromise_resolve=e,t._closedPromise_reject=r,t._closedPromiseState="pending"})}function Yt(t,e){qt(t),Xt(t,e)}function zt(t){qt(t),Gt(t)}function Xt(t,e){S(t._closedPromise),t._closedPromise_reject(e),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0,t._closedPromiseState="rejected"}function Ht(t,e){Yt(t,e)}function Gt(t){t._closedPromise_resolve(void 0),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0,t._closedPromiseState="resolved"}function Vt(t){t._readyPromise=p(function(e,r){t._readyPromise_resolve=e,t._readyPromise_reject=r}),t._readyPromiseState="pending"}function $t(t,e){Vt(t),Kt(t,e)}function Qt(t){Vt(t),te(t)}function Kt(t,e){S(t._readyPromise),t._readyPromise_reject(e),t._readyPromise_resolve=void 0,t._readyPromise_reject=void 0,t._readyPromiseState="rejected"}function Jt(t){Vt(t)}function Zt(t,e){$t(t,e)}function te(t){t._readyPromise_resolve(void 0),t._readyPromise_resolve=void 0,t._readyPromise_reject=void 0,t._readyPromiseState="fulfilled"}function ee(t){if("object"!=typeof t||null===t)return!1;try{return"boolean"==typeof t.aborted}catch(t){return!1}}function re(t,r,n,i,o,a){var s=M(t),c=$(r);t._disturbed=!0;var u=!1,l=v(void 0);return p(function(h,f){function d(){return!0===u?v(!0):g(c._readyPromise,function(){return g(B(s),function(t){return!0===t.done||(l=g(xt(c,t.value),void 0,e),!1)})})}function m(){var t=l;return g(l,function(){return t!==l?m():void 0})}function w(t,e,r){"errored"===t._state?r(t._storedError):_(e,r)}function A(t,e,n){function i(){y(t(),function(){return T(e,n)},function(t){return T(!0,t)})}!0!==u&&(u=!0,"writable"===r._state&&!1===lt(r)?b(m(),i):i())}function x(t,e){!0!==u&&(u=!0,"writable"===r._state&&!1===lt(r)?b(m(),function(){return T(t,e)}):T(t,e))}function T(t,e){At(c),k(s),void 0!==a&&a.removeEventListener("abort",P),t?f(e):h(void 0)}var P;if(void 0!==a){if(P=function(){var e=new Vr("Aborted","AbortError"),n=[];!1===i&&n.push(function(){return"writable"===r._state?tt(r,e):v(void 0)}),!1===o&&n.push(function(){return"readable"===t._state?or(t,e):v(void 0)}),A(function(){return Promise.all(n.map(function(t){return t()}))},!0,e)},!0===a.aborted)return void P();a.addEventListener("abort",P)}if(w(t,s._closedPromise,function(t){!1===i?A(function(){return tt(r,t)},!0,t):x(!0,t)}),w(r,c._closedPromise,function(e){!1===o?A(function(){return or(t,e)},!0,e):x(!0,e)}),function(t,e,r){"closed"===t._state?r():b(e,r)}(t,s._closedPromise,function(){!1===n?A(function(){return bt(c)}):x()}),!0===lt(r)||"closed"===r._state){var C=new TypeError("the destination writable stream closed before all data could be piped to it");!1===o?A(function(){return or(t,C)},!0,C):x(!0,C)}S(function(){return p(function(t,e){function r(n){n?t():g(d(),r,e)}r(!1)})}())})}function ne(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledReadableStream")}function ie(t){if(!1!==oe(t)){if(!0===t._pulling)return void(t._pullAgain=!0);t._pulling=!0,y(t._pullAlgorithm(),function(){t._pulling=!1,!0===t._pullAgain&&(t._pullAgain=!1,ie(t))},function(e){ue(t,e)})}}function oe(t){var e=t._controlledReadableStream;return!1!==fe(t)&&(!1!==t._started&&(!0===ir(e)&&j(e)>0||le(t)>0))}function ae(t){t._pullAlgorithm=void 0,t._cancelAlgorithm=void 0,t._strategySizeAlgorithm=void 0}function se(t){var e=t._controlledReadableStream;t._closeRequested=!0,0===t._queue.length&&(ae(t),ar(e))}function ce(t,e){var r=t._controlledReadableStream;if(!0===ir(r)&&j(r)>0)D(r,e,!1);else{var n=void 0;try{n=t._strategySizeAlgorithm(e)}catch(e){throw ue(t,e),e}try{H(t,e,n)}catch(e){throw ue(t,e),e}}ie(t)}function ue(t,e){var r=t._controlledReadableStream;"readable"===r._state&&(V(t),ae(t),sr(r,e))}function le(t){var e=t._controlledReadableStream,r=e._state;return"errored"===r?null:"closed"===r?0:t._strategyHWM-t._queueTotalSize}function he(t){return!0!==oe(t)}function fe(t){var e=t._controlledReadableStream._state;return!1===t._closeRequested&&"readable"===e}function de(t,e,r,n,i,o,a){e._controlledReadableStream=t,e._queue=void 0,e._queueTotalSize=void 0,V(e),e._started=!1,e._closeRequested=!1,e._pullAgain=!1,e._pulling=!1,e._strategySizeAlgorithm=a,e._strategyHWM=o,e._pullAlgorithm=n,e._cancelAlgorithm=i,t._readableStreamController=e,y(v(r()),function(){e._started=!0,ie(e)},function(t){ue(e,t)})}function pe(t,e,r,n){function i(){return u(e,"start",[o])}var o=Object.create($r.prototype),a=c(e,"pull",0,[o]),s=c(e,"cancel",1,[]);de(t,o,i,a,s,r,n)}function ve(t){return new TypeError("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}function me(t,e){function r(){return!0===d?v(void 0):(d=!0,S(w(B(f),function(t){if(d=!1,!0===t.done)return!1===m&&se(u._readableStreamController),void(!1===g&&se(l._readableStreamController));var e=t.value,r=e,n=e;!1===m&&ce(u._readableStreamController,r),!1===g&&ce(l._readableStreamController,n)})),v(void 0))}function i(e){if(m=!0,s=e,!0===g){var r=n([s,c]),i=or(t,r);h(i)}return y}function o(e){if(g=!0,c=e,!0===m){var r=n([s,c]),i=or(t,r);h(i)}return y}function a(){}var s,c,u,l,h,f=M(t),d=!1,m=!1,g=!1,y=p(function(t){h=t});return u=er(a,r,i),l=er(a,r,o),_(f._closedPromise,function(t){ue(u._readableStreamController,t),ue(l._readableStreamController,t)}),[u,l]}function ge(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledReadableByteStream")}function ye(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_associatedReadableByteStreamController")}function be(t){if(!1!==Me(t)){if(!0===t._pulling)return void(t._pullAgain=!0);t._pulling=!0,y(t._pullAlgorithm(),function(){t._pulling=!1,!0===t._pullAgain&&(t._pullAgain=!1,be(t))},function(e){Ne(t,e)})}}function _e(t){Pe(t),t._pendingPullIntos=new jr}function we(t,e){var r=!1;"closed"===t._state&&(r=!0);var n=Se(e);"default"===e.readerType?D(t,n,r):$e(t,n,r)}function Se(t){var e=t.bytesFilled,r=t.elementSize;return new t.ctor(t.buffer,t.byteOffset,e/r)}function Ae(t,e,r,n){t._queue.push({buffer:e,byteOffset:r,byteLength:n}),t._queueTotalSize+=n}function xe(t,e){var r=e.elementSize,n=e.bytesFilled-e.bytesFilled%r,o=Math.min(t._queueTotalSize,e.byteLength-e.bytesFilled),a=e.bytesFilled+o,s=a-a%r,c=o,u=!1;s>n&&(c=s-e.bytesFilled,u=!0);for(var l=t._queue;c>0;){var h=l.peek(),f=Math.min(c,h.byteLength),d=e.byteOffset+e.bytesFilled;i(e.buffer,d,h.buffer,h.byteOffset,f),h.byteLength===f?l.shift():(h.byteOffset+=f,h.byteLength-=f),t._queueTotalSize-=f,Te(t,f,e),c-=f}return u}function Te(t,e,r){Pe(t),r.bytesFilled+=e}function ke(t){0===t._queueTotalSize&&!0===t._closeRequested?(Fe(t),ar(t._controlledReadableByteStream)):be(t)}function Pe(t){void 0!==t._byobRequest&&(t._byobRequest._associatedReadableByteStreamController=void 0,t._byobRequest._view=void 0,t._byobRequest=void 0)}function Ce(t){for(;t._pendingPullIntos.length>0;){if(0===t._queueTotalSize)return;var e=t._pendingPullIntos.peek();!0===xe(t,e)&&(Ie(t),we(t._controlledReadableByteStream,e))}}function Re(t,e){var r=t._controlledReadableByteStream,n=1;e.constructor!==DataView&&(n=e.constructor.BYTES_PER_ELEMENT);var i=e.constructor,o=h(e.buffer),a={buffer:o,byteOffset:e.byteOffset,byteLength:e.byteLength,bytesFilled:0,elementSize:n,ctor:i,readerType:"byob"};if(t._pendingPullIntos.length>0)return t._pendingPullIntos.push(a),Ve(r);if("closed"===r._state){return v(A(new i(a.buffer,a.byteOffset,0),!0,r._reader._forAuthorCode))}if(t._queueTotalSize>0){if(!0===xe(t,a)){var s=Se(a);return ke(t),v(A(s,!1,r._reader._forAuthorCode))}if(!0===t._closeRequested){var c=new TypeError("Insufficient bytes to fill elements in the given buffer");return Ne(t,c),m(c)}}t._pendingPullIntos.push(a);var u=Ve(r);return be(t),u}function Ee(t,e){e.buffer=h(e.buffer);var r=t._controlledReadableByteStream;if(!0===Ke(r))for(;Qe(r)>0;){var n=Ie(t);we(r,n)}}function Oe(t,e,r){if(r.bytesFilled+e>r.byteLength)throw new RangeError("bytesWritten out of range");if(Te(t,e,r),!(r.bytesFilled<r.elementSize)){Ie(t);var n=r.bytesFilled%r.elementSize;if(n>0){var i=r.byteOffset+r.bytesFilled,o=r.buffer.slice(i-n,i);Ae(t,o,0,o.byteLength)}r.buffer=h(r.buffer),r.bytesFilled-=n,we(t._controlledReadableByteStream,r),Ce(t)}}function Le(t,e){var r=t._pendingPullIntos.peek();if("closed"===t._controlledReadableByteStream._state){if(0!==e)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");Ee(t,r)}else Oe(t,e,r);be(t)}function Ie(t){var e=t._pendingPullIntos.shift();return Pe(t),e}function Me(t){var e=t._controlledReadableByteStream;return"readable"===e._state&&(!0!==t._closeRequested&&(!1!==t._started&&(!0===N(e)&&j(e)>0||(!0===Ke(e)&&Qe(e)>0||Ue(t)>0))))}function Fe(t){t._pullAlgorithm=void 0,t._cancelAlgorithm=void 0}function De(t){var e=t._controlledReadableByteStream;if(t._queueTotalSize>0)return void(t._closeRequested=!0);if(t._pendingPullIntos.length>0){if(t._pendingPullIntos.peek().bytesFilled>0){var r=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Ne(t,r),r}}Fe(t),ar(e)}function je(t,e){var r=t._controlledReadableByteStream,n=e.buffer,i=e.byteOffset,o=e.byteLength,a=h(n);if(!0===N(r))if(0===j(r))Ae(t,a,i,o);else{var s=new Uint8Array(a,i,o);D(r,s,!1)}else!0===Ke(r)?(Ae(t,a,i,o),Ce(t)):Ae(t,a,i,o);be(t)}function Ne(t,e){var r=t._controlledReadableByteStream;"readable"===r._state&&(_e(t),V(t),Fe(t),sr(r,e))}function Ue(t){var e=t._controlledReadableByteStream,r=e._state;return"errored"===r?null:"closed"===r?0:t._strategyHWM-t._queueTotalSize}function Be(t,e){if(e=Number(e),!1===o(e))throw new RangeError("bytesWritten must be a finite");Le(t,e)}function We(t,e){var r=t._pendingPullIntos.peek();if(r.byteOffset+r.bytesFilled!==e.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.byteLength!==e.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");r.buffer=e.buffer,Le(t,e.byteLength)}function qe(t,e,r,n,i,o,a){e._controlledReadableByteStream=t,e._pullAgain=!1,e._pulling=!1,e._byobRequest=void 0,e._queue=e._queueTotalSize=void 0,V(e),e._closeRequested=!1,e._started=!1,e._strategyHWM=f(o),e._pullAlgorithm=n,e._cancelAlgorithm=i,e._autoAllocateChunkSize=a,e._pendingPullIntos=new jr,t._readableStreamController=e,y(v(r()),function(){e._started=!0,be(e)},function(t){Ne(e,t)})}function Ye(t,e,r){function n(){return u(e,"start",[i])}var i=Object.create(Jr.prototype),o=c(e,"pull",0,[i]),a=c(e,"cancel",1,[]),s=e.autoAllocateChunkSize;if(void 0!==s&&(s=Number(s),!1===Qr(s)||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");qe(t,i,n,o,a,r,s)}function ze(t,e,r){t._associatedReadableByteStreamController=e,t._view=r}function Xe(t){return new TypeError("ReadableStreamBYOBRequest.prototype."+t+" can only be used on a ReadableStreamBYOBRequest")}function He(t){return new TypeError("ReadableByteStreamController.prototype."+t+" can only be used on a ReadableByteStreamController")}function Ge(t,e){void 0===e&&(e=!1);var r=new Zr(t);return r._forAuthorCode=e,r}function Ve(t){return p(function(e,r){var n={_resolve:e,_reject:r};t._reader._readIntoRequests.push(n)})}function $e(t,e,r){var n=t._reader;n._readIntoRequests.shift()._resolve(A(e,r,n._forAuthorCode))}function Qe(t){return t._reader._readIntoRequests.length}function Ke(t){var e=t._reader;return void 0!==e&&!!Je(e)}function Je(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readIntoRequests")}function Ze(t,e){var r=t._ownerReadableStream;return r._disturbed=!0,"errored"===r._state?m(r._storedError):Re(r._readableStreamController,e)}function tr(t){return new TypeError("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}function er(t,e,r,n,i){void 0===n&&(n=1),void 0===i&&(i=function(){return 1});var o=Object.create(tn.prototype);return rr(o),de(o,Object.create($r.prototype),t,e,r,n,i),o}function rr(t){t._state="readable",t._reader=void 0,t._storedError=void 0,t._disturbed=!1}function nr(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readableStreamController")}function ir(t){return void 0!==t._reader}function or(t,r){return t._disturbed=!0,"closed"===t._state?v(void 0):"errored"===t._state?m(t._storedError):(ar(t),w(t._readableStreamController[Nr](r),e))}function ar(t){t._state="closed";var e=t._reader;void 0!==e&&(U(e)&&(e._readRequests.forEach(function(t){t._resolve(A(void 0,!0,e._forAuthorCode))}),e._readRequests=new jr),I(e))}function sr(t,e){t._state="errored",t._storedError=e;var r=t._reader;void 0!==r&&(U(r)?(r._readRequests.forEach(function(t){t._reject(e)}),r._readRequests=new jr):(r._readIntoRequests.forEach(function(t){t._reject(e)}),r._readIntoRequests=new jr),O(r,e))}function cr(t){return new TypeError("ReadableStream.prototype."+t+" can only be used on a ReadableStream")}function ur(t,e,r,n,i,o){function a(){return e}function s(e){return Sr(t,e)}function c(e){return Ar(t,e)}function u(){return xr(t)}function l(){return Tr(t)}function h(e){return fr(t,e),v(void 0)}t._writable=Q(a,s,u,c,r,n),t._readable=er(a,l,h,i,o),t._backpressure=void 0,t._backpressureChangePromise=void 0,t._backpressureChangePromise_resolve=void 0,dr(t,!0),t._transformStreamController=void 0}function lr(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_transformStreamController")}function hr(t,e){ue(t._readable._readableStreamController,e),fr(t,e)}function fr(t,e){gr(t._transformStreamController),Mt(t._writable._writableStreamController,e),!0===t._backpressure&&dr(t,!1)}function dr(t,e){void 0!==t._backpressureChangePromise&&t._backpressureChangePromise_resolve(),t._backpressureChangePromise=p(function(e){t._backpressureChangePromise_resolve=e}),t._backpressure=e}function pr(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledTransformStream")}function vr(t,e,r,n){e._controlledTransformStream=t,t._transformStreamController=e,e._transformAlgorithm=r,e._flushAlgorithm=n}function mr(t,e){var r=Object.create(on.prototype),n=function(t){try{return yr(r,t),v(void 0)}catch(t){return m(t)}},i=e.transform;if(void 0!==i){if("function"!=typeof i)throw new TypeError("transform is not a method");n=function(t){return l(i,e,[t,r])}}var o=c(e,"flush",0,[r]);vr(t,r,n,o)}function gr(t){t._transformAlgorithm=void 0,t._flushAlgorithm=void 0}function yr(t,e){var r=t._controlledTransformStream,n=r._readable._readableStreamController;if(!1===fe(n))throw new TypeError("Readable side is not in a state that permits enqueue");try{ce(n,e)}catch(t){throw fr(r,t),r._readable._storedError}he(n)!==r._backpressure&&dr(r,!0)}function br(t,e){hr(t._controlledTransformStream,e)}function _r(t,e){return w(t._transformAlgorithm(e),void 0,function(e){throw hr(t._controlledTransformStream,e),e})}function wr(t){var e=t._controlledTransformStream,r=e._readable._readableStreamController;!0===fe(r)&&se(r),fr(e,new TypeError("TransformStream terminated"))}function Sr(t,e){var r=t._transformStreamController;if(!0===t._backpressure){return w(t._backpressureChangePromise,function(){var n=t._writable;if("erroring"===n._state)throw n._storedError;return _r(r,e)})}return _r(r,e)}function Ar(t,e){return hr(t,e),v(void 0)}function xr(t){var e=t._readable,r=t._transformStreamController,n=r._flushAlgorithm();return gr(r),w(n,function(){if("errored"===e._state)throw e._storedError;var t=e._readableStreamController;!0===fe(t)&&se(t)},function(r){throw hr(t,r),e._storedError})}function Tr(t){return dr(t,!1),t._backpressureChangePromise}function kr(t){return new TypeError("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function Pr(t){return new TypeError("TransformStream.prototype."+t+" can only be used on a TransformStream")}var Cr,Rr,Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(t){return"Symbol("+t+")"},Or=Number.isNaN||function(t){return t!==t},Lr=e,Ir=Promise,Mr=Promise.prototype.then,Fr=Promise.resolve.bind(Ir),Dr=Promise.reject.bind(Ir),jr=function(){function t(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(t.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),t.prototype.push=function(t){var e=this._back,r=e;16383===e._elements.length&&(r={_elements:[],_next:void 0}),e._elements.push(t),r!==e&&(this._back=r,e._next=r),++this._size},t.prototype.shift=function(){var t=this._front,e=t,r=this._cursor,n=r+1,i=t._elements,o=i[r];return 16384===n&&(e=t._next,n=0),--this._size,this._cursor=n,t!==e&&(this._front=e),i[r]=void 0,o},t.prototype.forEach=function(t){for(var e=this._cursor,r=this._front,n=r._elements;!(e===n.length&&void 0===r._next||e===n.length&&(r=r._next,n=r._elements,e=0,0===n.length));)t(n[e]),++e},t.prototype.peek=function(){var t=this._front,e=this._cursor;return t._elements[e]},t}(),Nr=Er("[[CancelSteps]]"),Ur=Er("[[PullSteps]]"),Br=function(){function t(t){if(!1===nr(t))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===ir(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");x(this,t),this._readRequests=new jr}return Object.defineProperty(t.prototype,"closed",{get:function(){return U(this)?this._closedPromise:m(W("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return U(this)?void 0===this._ownerReadableStream?m(P("cancel")):T(this,t):m(W("cancel"))},t.prototype.read=function(){return U(this)?void 0===this._ownerReadableStream?m(P("read from")):B(this):m(W("read"))},t.prototype.releaseLock=function(){if(!U(this))throw W("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");k(this)}},t}();"symbol"==typeof Er.asyncIterator&&(Cr={},Cr[Er.asyncIterator]=function(){return this},Rr=Cr,Object.defineProperty(Rr,Er.asyncIterator,{enumerable:!1}));var Wr={next:function(){if(!1===Y(this))return m(z("next"));var t=this._asyncIteratorReader;return void 0===t._ownerReadableStream?m(P("iterate")):w(B(t),function(e){var r=e.done;return r&&k(t),A(e.value,r,!0)})},return:function(t){if(!1===Y(this))return m(z("next"));var e=this._asyncIteratorReader;if(void 0===e._ownerReadableStream)return m(P("finish iterating"));if(e._readRequests.length>0)return m(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var r=T(e,t);return k(e),w(r,function(){return A(t,!0,!0)})}return k(e),v(A(t,!0,!0))}};void 0!==Rr&&Object.setPrototypeOf(Wr,Rr),Object.defineProperty(Wr,"next",{enumerable:!1}),Object.defineProperty(Wr,"return",{enumerable:!1});var qr=Er("[[AbortSteps]]"),Yr=Er("[[ErrorSteps]]"),zr=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e={}),K(this);var r=e.size,n=e.highWaterMark;if(void 0!==t.type)throw new RangeError("Invalid type is specified");var i=d(r);void 0===n&&(n=1),n=f(n),Pt(this,t,n,i)}return Object.defineProperty(t.prototype,"locked",{get:function(){if(!1===J(this))throw Ut("locked");return Z(this)},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===J(this)?m(Ut("abort")):!0===Z(this)?m(new TypeError("Cannot abort a stream that already has a writer")):tt(this,t)},t.prototype.close=function(){return!1===J(this)?m(Ut("close")):!0===Z(this)?m(new TypeError("Cannot close a stream that already has a writer")):!0===lt(this)?m(new TypeError("Cannot close an already-closing stream")):et(this)},t.prototype.getWriter=function(){if(!1===J(this))throw Ut("getWriter");return $(this)},t}(),Xr=function(){function t(t){if(!1===J(t))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===Z(t))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=t,t._writer=this;var e=t._state;if("writable"===e)!1===lt(t)&&!0===t._backpressure?Vt(this):Qt(this),qt(this);else if("erroring"===e)$t(this,t._storedError),qt(this);else if("closed"===e)Qt(this),zt(this);else{var r=t._storedError;$t(this,r),Yt(this,r)}}return Object.defineProperty(t.prototype,"closed",{get:function(){return!1===mt(this)?m(Bt("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===mt(this))throw Bt("desiredSize");if(void 0===this._ownerWritableStream)throw Wt("desiredSize");return St(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ready",{get:function(){return!1===mt(this)?m(Bt("ready")):this._readyPromise},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===mt(this)?m(Bt("abort")):void 0===this._ownerWritableStream?m(Wt("abort")):gt(this,t)},t.prototype.close=function(){if(!1===mt(this))return m(Bt("close"));var t=this._ownerWritableStream;return void 0===t?m(Wt("close")):!0===lt(t)?m(new TypeError("Cannot close an already-closing stream")):yt(this)},t.prototype.releaseLock=function(){if(!1===mt(this))throw Bt("releaseLock");void 0!==this._ownerWritableStream&&At(this)},t.prototype.write=function(t){return!1===mt(this)?m(Bt("write")):void 0===this._ownerWritableStream?m(Wt("write to")):xt(this,t)},t}(),Hr=function(){function t(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return t.prototype.error=function(t){if(!1===Tt(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&Nt(this,t)},t.prototype[qr]=function(t){var e=this._abortAlgorithm(t);return Ct(this),e},t.prototype[Yr]=function(){V(this)},t}(),Gr="undefined"!=typeof DOMException?DOMException:void 0,Vr=function(t){if("function"!=typeof t&&"object"!=typeof t)return!1;try{return new t,!0}catch(t){return!1}}(Gr)?Gr:function(){var t=function(t,e){this.message=t||"",this.name=e||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return t.prototype=Object.create(Error.prototype),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,configurable:!0}),t}(),$r=function(){function t(){throw new TypeError}return Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===ne(this))throw ve("desiredSize");return le(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===ne(this))throw ve("close");if(!1===fe(this))throw new TypeError("The stream is not in a state that permits close");se(this)},t.prototype.enqueue=function(t){if(!1===ne(this))throw ve("enqueue");if(!1===fe(this))throw new TypeError("The stream is not in a state that permits enqueue");return ce(this,t)},t.prototype.error=function(t){if(!1===ne(this))throw ve("error");ue(this,t)},t.prototype[Nr]=function(t){V(this);var e=this._cancelAlgorithm(t);return ae(this),e},t.prototype[Ur]=function(){var t=this._controlledReadableStream;if(this._queue.length>0){var e=X(this);return!0===this._closeRequested&&0===this._queue.length?(ae(this),ar(t)):ie(this),v(A(e,!1,t._reader._forAuthorCode))}var r=F(t);return ie(this),r},t}(),Qr=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Kr=function(){function t(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(t.prototype,"view",{get:function(){if(!1===ye(this))throw Xe("view");return this._view},enumerable:!0,configurable:!0}),t.prototype.respond=function(t){if(!1===ye(this))throw Xe("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,Be(this._associatedReadableByteStreamController,t)},t.prototype.respondWithNewView=function(t){if(!1===ye(this))throw Xe("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(t))throw new TypeError("You can only respond with array buffer views");t.buffer,We(this._associatedReadableByteStreamController,t)},t}(),Jr=function(){function t(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(t.prototype,"byobRequest",{get:function(){if(!1===ge(this))throw He("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var t=this._pendingPullIntos.peek(),e=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),r=Object.create(Kr.prototype);ze(r,this,e),this._byobRequest=r}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===ge(this))throw He("desiredSize");return Ue(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===ge(this))throw He("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be closed");De(this)},t.prototype.enqueue=function(t){if(!1===ge(this))throw He("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(t))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");t.buffer,je(this,t)},t.prototype.error=function(t){if(!1===ge(this))throw He("error");Ne(this,t)},t.prototype[Nr]=function(t){if(this._pendingPullIntos.length>0){this._pendingPullIntos.peek().bytesFilled=0}V(this);var e=this._cancelAlgorithm(t);return Fe(this),e},t.prototype[Ur]=function(){var t=this._controlledReadableByteStream;if(this._queueTotalSize>0){var e=this._queue.shift();this._queueTotalSize-=e.byteLength,ke(this);var r=void 0;try{r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}catch(t){return m(t)}return v(A(r,!1,t._reader._forAuthorCode))}var n=this._autoAllocateChunkSize;if(void 0!==n){var i=void 0;try{i=new ArrayBuffer(n)}catch(t){return m(t)}var o={buffer:i,byteOffset:0,byteLength:n,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(o)}var a=F(t);return be(this),a},t}(),Zr=function(){function t(t){if(!nr(t))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===ge(t._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(ir(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");x(this,t),this._readIntoRequests=new jr}return Object.defineProperty(t.prototype,"closed",{get:function(){return Je(this)?this._closedPromise:m(tr("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return Je(this)?void 0===this._ownerReadableStream?m(P("cancel")):T(this,t):m(tr("cancel"))},t.prototype.read=function(t){return Je(this)?void 0===this._ownerReadableStream?m(P("read from")):ArrayBuffer.isView(t)?(t.buffer,0===t.byteLength?m(new TypeError("view must have non-zero byteLength")):Ze(this,t)):m(new TypeError("view must be an array buffer view")):m(tr("read"))},t.prototype.releaseLock=function(){if(!Je(this))throw tr("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");k(this)}},t}(),tn=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e={}),rr(this);var r=e.size,n=e.highWaterMark,i=t.type;if("bytes"===String(i)){if(void 0!==r)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===n&&(n=0),n=f(n),Ye(this,t,n)}else{if(void 0!==i)throw new RangeError("Invalid type is specified");var o=d(r);void 0===n&&(n=1),n=f(n),pe(this,t,n,o)}}return Object.defineProperty(t.prototype,"locked",{get:function(){if(!1===nr(this))throw cr("locked");return ir(this)},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return!1===nr(this)?m(cr("cancel")):!0===ir(this)?m(new TypeError("Cannot cancel a stream that already has a reader")):or(this,t)},t.prototype.getReader=function(t){var e=(void 0===t?{}:t).mode;if(!1===nr(this))throw cr("getReader");if(void 0===e)return M(this,!0);if("byob"===(e=String(e)))return Ge(this,!0);throw new RangeError("Invalid mode is specified")},t.prototype.pipeThrough=function(t,e){var r=t.writable,n=t.readable,i=void 0===e?{}:e,o=i.preventClose,a=i.preventAbort,s=i.preventCancel,c=i.signal;if(!1===nr(this))throw cr("pipeThrough");if(!1===J(r))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===nr(n))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),a=Boolean(a),s=Boolean(s),void 0!==c&&!ee(c))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===ir(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===Z(r))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return S(re(this,r,o,a,s,c)),n},t.prototype.pipeTo=function(t,e){var r=void 0===e?{}:e,n=r.preventClose,i=r.preventAbort,o=r.preventCancel,a=r.signal;return!1===nr(this)?m(cr("pipeTo")):!1===J(t)?m(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(n=Boolean(n),i=Boolean(i),o=Boolean(o),void 0===a||ee(a)?!0===ir(this)?m(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===Z(t)?m(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):re(this,t,n,i,o,a):m(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},t.prototype.tee=function(){if(!1===nr(this))throw cr("tee");return n(me(this))},t.prototype.getIterator=function(t){var e=(void 0===t?{}:t).preventCancel,r=void 0!==e&&e;if(!1===nr(this))throw cr("getIterator");return q(this,r)},t}();"symbol"==typeof Er.asyncIterator&&Object.defineProperty(tn.prototype,Er.asyncIterator,{value:tn.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var en=function(){function t(t){var e=t.highWaterMark;this.highWaterMark=e}return t.prototype.size=function(t){return t.byteLength},t}(),rn=function(){function t(t){var e=t.highWaterMark;this.highWaterMark=e}return t.prototype.size=function(){return 1},t}(),nn=function(){function t(t,e,r){void 0===t&&(t={}),void 0===e&&(e={}),void 0===r&&(r={});var n=e.size,i=e.highWaterMark,o=r.size,a=r.highWaterMark;if(void 0!==t.writableType)throw new RangeError("Invalid writable type specified");var s=d(n);if(void 0===i&&(i=1),i=f(i),void 0!==t.readableType)throw new RangeError("Invalid readable type specified");var c=d(o);void 0===a&&(a=0),a=f(a);var l;ur(this,p(function(t){l=t}),i,s,a,c),mr(this,t);var h=u(t,"start",[this._transformStreamController]);l(h)}return Object.defineProperty(t.prototype,"readable",{get:function(){if(!1===lr(this))throw Pr("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"writable",{get:function(){if(!1===lr(this))throw Pr("writable");return this._writable},enumerable:!0,configurable:!0}),t}(),on=function(){function t(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===pr(this))throw kr("desiredSize");return le(this._controlledTransformStream._readable._readableStreamController)},enumerable:!0,configurable:!0}),t.prototype.enqueue=function(t){if(!1===pr(this))throw kr("enqueue");yr(this,t)},t.prototype.error=function(t){if(!1===pr(this))throw kr("error");br(this,t)},t.prototype.terminate=function(){if(!1===pr(this))throw kr("terminate");wr(this)},t}();t.ByteLengthQueuingStrategy=en,t.CountQueuingStrategy=rn,t.ReadableStream=tn,t.TransformStream=nn,t.WritableStream=zr,Object.defineProperty(t,"__esModule",{value:!0})}(e)}()},function(t,e,r){r(145),r(114),r(77),r(116);var n=r(43);t.exports=n.Map},function(t,e,r){"use strict";var n=r(146),i=r(150);t.exports=n("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},i)},function(t,e,r){"use strict";var n=r(10),i=r(11),o=r(52),a=r(29),s=r(147),c=r(124),u=r(123),l=r(22),h=r(14),f=r(97),d=r(85),p=r(149);t.exports=function(t,e,r){var v=-1!==t.indexOf("Map"),m=-1!==t.indexOf("Weak"),g=v?"set":"add",y=i[t],b=y&&y.prototype,_=y,w={},S=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!l(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(o(t,"function"!=typeof y||!(m||b.forEach&&!h(function(){(new y).entries().next()}))))_=r.getConstructor(e,t,v,g),s.REQUIRED=!0;else if(o(t,!0)){var A=new _,x=A[g](m?{}:-0,1)!=A,T=h(function(){A.has(1)}),k=f(function(t){new y(t)}),P=!m&&h(function(){for(var t=new y,e=5;e--;)t[g](e,e);return!t.has(-0)});k||(_=e(function(e,r){u(e,_,t);var n=p(new y,e,_);return void 0!=r&&c(r,n[g],n,v),n}),_.prototype=b,b.constructor=_),(T||P)&&(S("delete"),S("has"),v&&S("get")),(P||x)&&S(g),m&&b.clear&&delete b.clear}return w[t]=_,n({global:!0,forced:_!=y},w),d(_,t),m||r.setStrong(_,t,v),_}},function(t,e,r){var n=r(39),i=r(22),o=r(23),a=r(27).f,s=r(38),c=r(148),u=s("meta"),l=0,h=Object.isExtensible||function(){return!0},f=function(t){a(t,u,{value:{objectID:"O"+ ++l,weakData:{}}})},d=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,u)){if(!h(t))return"F";if(!e)return"E";f(t)}return t[u].objectID},p=function(t,e){if(!o(t,u)){if(!h(t))return!0;if(!e)return!1;f(t)}return t[u].weakData},v=function(t){return c&&m.REQUIRED&&h(t)&&!o(t,u)&&f(t),t},m=t.exports={REQUIRED:!1,fastKey:d,getWeakData:p,onFreeze:v};n[u]=!0},function(t,e,r){var n=r(14);t.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(t,e,r){var n=r(22),i=r(87);t.exports=function(t,e,r){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(t,a),t}},function(t,e,r){"use strict";var n=r(27).f,i=r(71),o=r(121),a=r(62),s=r(123),c=r(124),u=r(79),l=r(122),h=r(13),f=r(147).fastKey,d=r(33),p=d.set,v=d.getterFor;t.exports={getConstructor:function(t,e,r,u){var l=t(function(t,n){s(t,l,e),p(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),h||(t.size=0),void 0!=n&&c(n,t[u],t,r)}),d=v(e),m=function(t,e,r){var n,i,o=d(t),a=g(t,e);return a?a.value=r:(o.last=a={index:i=f(e,!0),key:e,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),h?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},g=function(t,e){var r,n=d(t),i=f(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==e)return r};return o(l.prototype,{clear:function(){for(var t=this,e=d(t),r=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete r[n.index],n=n.next;e.first=e.last=void 0,h?e.size=0:t.size=0},delete:function(t){var e=this,r=d(e),n=g(e,t);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),h?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=d(this),n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),o(l.prototype,r?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),h&&n(l.prototype,"size",{get:function(){return d(this).size}}),l},setStrong:function(t,e,r){var n=e+" Iterator",i=v(e),o=v(n);u(t,e,function(t,e){p(this,{type:n,target:t,state:i(t),kind:e,last:void 0})},function(){for(var t=o(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),l(e)}}},function(t,e,r){r(152),r(114),r(77),r(116);var n=r(43);t.exports=n.Set},function(t,e,r){"use strict";var n=r(146),i=r(150);t.exports=n("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},i)},function(t,e,r){r(114),r(154),r(116);var n=r(43);t.exports=n.WeakMap},function(t,e,r){"use strict";var n,i=r(11),o=r(121),a=r(147),s=r(146),c=r(155),u=r(22),l=r(33).enforce,h=r(34),f=!i.ActiveXObject&&"ActiveXObject"in i,d=Object.isExtensible,p=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},v=t.exports=s("WeakMap",p,c);if(h&&f){n=c.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var m=v.prototype,g=m.delete,y=m.has,b=m.get,_=m.set;o(m,{delete:function(t){if(u(t)&&!d(t)){var e=l(this);return e.frozen||(e.frozen=new n),g.call(this,t)||e.frozen.delete(t)}return g.call(this,t)},has:function(t){if(u(t)&&!d(t)){var e=l(this);return e.frozen||(e.frozen=new n),y.call(this,t)||e.frozen.has(t)}return y.call(this,t)},get:function(t){if(u(t)&&!d(t)){var e=l(this);return e.frozen||(e.frozen=new n),y.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(u(t)&&!d(t)){var r=l(this);r.frozen||(r.frozen=new n),y.call(this,t)?_.call(this,t,e):r.frozen.set(t,e)}else _.call(this,t,e);return this}})}},function(t,e,r){"use strict";var n=r(121),i=r(147).getWeakData,o=r(28),a=r(22),s=r(123),c=r(124),u=r(156),l=r(23),h=r(33),f=h.set,d=h.getterFor,p=u.find,v=u.findIndex,m=0,g=function(t){return t.frozen||(t.frozen=new y)},y=function(){this.entries=[]},b=function(t,e){return p(t.entries,function(t){return t[0]===e})};y.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var r=b(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=v(this.entries,function(e){return e[0]===t});return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,r,u){var h=t(function(t,n){s(t,h,e),f(t,{type:e,id:m++,frozen:void 0}),void 0!=n&&c(n,t[u],t,r)}),p=d(e),v=function(t,e,r){var n=p(t),a=i(o(e),!0);return!0===a?g(n).set(e,r):a[n.id]=r,t};return n(h.prototype,{delete:function(t){var e=p(this);if(!a(t))return!1;var r=i(t);return!0===r?g(e).delete(t):r&&l(r,e.id)&&delete r[e.id]},has:function(t){var e=p(this);if(!a(t))return!1;var r=i(t);return!0===r?g(e).has(t):r&&l(r,e.id)}}),n(h.prototype,r?{get:function(t){var e=p(this);if(a(t)){var r=i(t);return!0===r?g(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return v(this,t,e)}}:{add:function(t){return v(this,t,!0)}}),h}}},function(t,e,r){var n=r(62),i=r(18),o=r(83),a=r(47),s=r(157),c=[].push,u=function(t){var e=1==t,r=2==t,u=3==t,l=4==t,h=6==t,f=5==t||h;return function(d,p,v,m){for(var g,y,b=o(d),_=i(b),w=n(p,v,3),S=a(_.length),A=0,x=m||s,T=e?x(d,S):r?x(d,0):void 0;S>A;A++)if((f||A in _)&&(g=_[A],y=w(g,A,b),t))if(e)T[A]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return A;case 2:c.call(T,g)}else if(l)return!1;return h?-1:u||l?l:T}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},function(t,e,r){var n=r(22),i=r(158),o=r(57),a=o("species");t.exports=function(t,e){var r;return i(t)&&(r=t.constructor,"function"!=typeof r||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[a])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},function(t,e,r){var n=r(19);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){r(114),r(160),r(116);var n=r(43);t.exports=n.WeakSet},function(t,e,r){"use strict";var n=r(146),i=r(155);n("WeakSet",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},i)},function(t,e,r){r(162);var n=r(61);t.exports=n("String","codePointAt")},function(t,e,r){"use strict";var n=r(10),i=r(78).codeAt;n({target:"String",proto:!0},{codePointAt:function(t){return i(this,t)}})},function(t,e,r){r(164);var n=r(43);t.exports=n.String.fromCodePoint},function(t,e,r){var n=r(10),i=r(49),o=String.fromCharCode,a=String.fromCodePoint;n({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,a=0;n>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return r.join("")}})},function(t,e,r){r(166),r(114),r(168),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(185),r(186),r(187);var n=r(43);t.exports=n.Symbol},function(t,e,r){"use strict";var n=r(10),i=r(14),o=r(158),a=r(22),s=r(83),c=r(47),u=r(93),l=r(157),h=r(167),f=r(57),d=r(133),p=f("isConcatSpreadable"),v=d>=51||!i(function(){var t=[];return t[p]=!1,t.concat()[0]!==t}),m=h("concat"),g=function(t){if(!a(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,forced:!v||!m},{concat:function(t){var e,r,n,i,o,a=s(this),h=l(a,0),f=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?a:arguments[e],g(o)){if(i=c(o.length),f+i>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<i;r++,f++)r in o&&u(h,f,o[r])}else{if(f>=9007199254740991)throw TypeError("Maximum allowed index exceeded");u(h,f++,o)}return h.length=f,h}})},function(t,e,r){var n=r(14),i=r(57),o=r(133),a=i("species");t.exports=function(t){return o>=51||!n(function(){var e=[],r=e.constructor={};return r[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},function(t,e,r){"use strict";var n=r(10),i=r(11),o=r(42),a=r(37),s=r(13),c=r(58),u=r(59),l=r(14),h=r(23),f=r(158),d=r(22),p=r(28),v=r(83),m=r(17),g=r(21),y=r(16),b=r(71),_=r(73),w=r(44),S=r(169),A=r(51),x=r(12),T=r(27),k=r(15),P=r(26),C=r(29),R=r(36),E=r(35),O=r(39),L=r(38),I=r(57),M=r(170),F=r(171),D=r(85),j=r(33),N=r(156).forEach,U=E("hidden"),B=I("toPrimitive"),W=j.set,q=j.getterFor("Symbol"),Y=Object.prototype,z=i.Symbol,X=o("JSON","stringify"),H=x.f,G=T.f,V=S.f,$=k.f,Q=R("symbols"),K=R("op-symbols"),J=R("string-to-symbol-registry"),Z=R("symbol-to-string-registry"),tt=R("wks"),et=i.QObject,rt=!et||!et.prototype||!et.prototype.findChild,nt=s&&l(function(){return 7!=b(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=H(Y,e);n&&delete Y[e],G(t,e,r),n&&t!==Y&&G(Y,e,n)}:G,it=function(t,e){var r=Q[t]=b(z.prototype);return W(r,{type:"Symbol",tag:t,description:e}),s||(r.description=e),r},ot=u?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof z},at=function(t,e,r){t===Y&&at(K,e,r),p(t);var n=g(e,!0);return p(r),h(Q,n)?(r.enumerable?(h(t,U)&&t[U][n]&&(t[U][n]=!1),r=b(r,{enumerable:y(0,!1)})):(h(t,U)||G(t,U,y(1,{})),t[U][n]=!0),nt(t,n,r)):G(t,n,r)},st=function(t,e){p(t);var r=m(e),n=_(r).concat(ft(r));return N(n,function(e){s&&!ut.call(r,e)||at(t,e,r[e])}),t},ct=function(t,e){return void 0===e?b(t):st(b(t),e)},ut=function(t){var e=g(t,!0),r=$.call(this,e);return!(this===Y&&h(Q,e)&&!h(K,e))&&(!(r||!h(this,e)||!h(Q,e)||h(this,U)&&this[U][e])||r)},lt=function(t,e){var r=m(t),n=g(e,!0);if(r!==Y||!h(Q,n)||h(K,n)){var i=H(r,n);return!i||!h(Q,n)||h(r,U)&&r[U][n]||(i.enumerable=!0),i}},ht=function(t){var e=V(m(t)),r=[];return N(e,function(t){h(Q,t)||h(O,t)||r.push(t)}),r},ft=function(t){var e=t===Y,r=V(e?K:m(t)),n=[];return N(r,function(t){!h(Q,t)||e&&!h(Y,t)||n.push(Q[t])}),n};if(c||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=L(t),r=function(t){this===Y&&r.call(K,t),h(this,U)&&h(this[U],e)&&(this[U][e]=!1),nt(this,e,y(1,t))};return s&&rt&&nt(Y,e,{configurable:!0,set:r}),it(e,t)},C(z.prototype,"toString",function(){return q(this).tag}),C(z,"withoutSetter",function(t){return it(L(t),t)}),k.f=ut,T.f=at,x.f=lt,w.f=S.f=ht,A.f=ft,M.f=function(t){return it(I(t),t)},s&&(G(z.prototype,"description",{configurable:!0,get:function(){return q(this).description}}),a||C(Y,"propertyIsEnumerable",ut,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:z}),N(_(tt),function(t){F(t)}),n({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=String(t);if(h(J,e))return J[e];var r=z(e);return J[e]=r,Z[r]=e,r},keyFor:function(t){if(!ot(t))throw TypeError(t+" is not a symbol");if(h(Z,t))return Z[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!s},{create:ct,defineProperty:at,defineProperties:st,getOwnPropertyDescriptor:lt}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ht,getOwnPropertySymbols:ft}),n({target:"Object",stat:!0,forced:l(function(){A.f(1)})},{getOwnPropertySymbols:function(t){return A.f(v(t))}}),X){n({target:"JSON",stat:!0,forced:!c||l(function(){var t=z();return"[null]"!=X([t])||"{}"!=X({a:t})||"{}"!=X(Object(t))})},{stringify:function(t,e,r){for(var n,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=e,(d(e)||void 0!==t)&&!ot(t))return f(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!ot(e))return e}),i[1]=e,X.apply(null,i)}})}z.prototype[B]||P(z.prototype,B,z.prototype.valueOf),D(z,"Symbol"),O[U]=!0},function(t,e,r){var n=r(17),i=r(44).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(n(t))}},function(t,e,r){var n=r(57);e.f=n},function(t,e,r){var n=r(43),i=r(23),o=r(170),a=r(27).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},function(t,e,r){r(171)("asyncIterator")},function(t,e,r){"use strict";var n=r(10),i=r(13),o=r(11),a=r(23),s=r(22),c=r(27).f,u=r(40),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var h={},f=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof f?new l(t):void 0===t?l():l(t);return""===t&&(h[e]=!0),e};u(f,l);var d=f.prototype=l.prototype;d.constructor=f;var p=d.toString,v="Symbol(test)"==String(l("test")),m=/^Symbol\((.*)\)[^)]+$/;c(d,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=p.call(t);if(a(h,t))return"";var r=v?e.slice(7,-1):e.replace(m,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:f})}},function(t,e,r){r(171)("hasInstance")},function(t,e,r){r(171)("isConcatSpreadable")},function(t,e,r){r(171)("iterator")},function(t,e,r){r(171)("match")},function(t,e,r){r(171)("matchAll")},function(t,e,r){r(171)("replace")},function(t,e,r){r(171)("search")},function(t,e,r){r(171)("species")},function(t,e,r){r(171)("split")},function(t,e,r){r(171)("toPrimitive")},function(t,e,r){r(171)("toStringTag")},function(t,e,r){r(171)("unscopables")},function(t,e,r){r(85)(Math,"Math",!0)},function(t,e,r){var n=r(11);r(85)(n.JSON,"JSON",!0)},function(t,e,r){r(189);var n=r(61);t.exports=n("String","padStart")},function(t,e,r){"use strict";var n=r(10),i=r(190).start;n({target:"String",proto:!0,forced:r(192)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(47),i=r(191),o=r(20),a=Math.ceil,s=function(t){return function(e,r,s){var c,u,l=String(o(e)),h=l.length,f=void 0===s?" ":String(s),d=n(r);return d<=h||""==f?l:(c=d-h,u=i.call(f,a(c/f.length)),u.length>c&&(u=u.slice(0,c)),t?l+u:u+l)}};t.exports={start:s(!1),end:s(!0)}},function(t,e,r){"use strict";var n=r(48),i=r(20);t.exports="".repeat||function(t){var e=String(i(this)),r="",o=n(t);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(r+=e);return r}},function(t,e,r){var n=r(127);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},function(t,e,r){r(194);var n=r(61);t.exports=n("String","padEnd")},function(t,e,r){"use strict";var n=r(10),i=r(190).end;n({target:"String",proto:!0,forced:r(192)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){r(196);var n=r(43);t.exports=n.Object.values},function(t,e,r){var n=r(10),i=r(197).values;n({target:"Object",stat:!0},{values:function(t){return i(t)}})},function(t,e,r){var n=r(13),i=r(73),o=r(17),a=r(15).f,s=function(t){return function(e){for(var r,s=o(e),c=i(s),u=c.length,l=0,h=[];u>l;)r=c[l++],n&&!a.call(s,r)||h.push(t?[r,s[r]]:s[r]);return h}};t.exports={entries:s(!0),values:s(!1)}},function(module,exports,__w_pdfjs_require__){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function asyncGeneratorStep(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){function o(t){asyncGeneratorStep(s,n,i,o,a,"next",t)}function a(t){asyncGeneratorStep(s,n,i,o,a,"throw",t)}var s=t.apply(e,r);o(void 0)})}}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _createForOfIteratorHelper(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _createClass(t,e,r){return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _iterableToArrayLimit(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _typeof(t){"@babel/helpers - typeof";return(_typeof="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})(t)}function setPDFNetworkStreamFactory(t){createPDFNetworkStream=t}function getDocument(t){var e,r=new PDFDocumentLoadingTask;if("string"==typeof t)e={url:t};else if((0,_util.isArrayBuffer)(t))e={data:t};else if(t instanceof PDFDataRangeTransport)e={range:t};else{if("object"!==_typeof(t))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!t.url&&!t.data&&!t.range)throw new Error("Invalid parameter object: need either .data, .range or .url");e=t}var n=Object.create(null),i=null,o=null;for(var a in e)if("url"!==a||"undefined"==typeof window)if("range"!==a)if("worker"!==a)if("data"!==a||e[a]instanceof Uint8Array)n[a]=e[a];else{var s=e[a];if("string"==typeof s)n[a]=(0,_util.stringToBytes)(s);else if("object"!==_typeof(s)||null===s||isNaN(s.length)){if(!(0,_util.isArrayBuffer)(s))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");n[a]=new Uint8Array(s)}else n[a]=new Uint8Array(s)}else o=e[a];else i=e[a];else n[a]=new URL(e[a],window.location).href;if(n.rangeChunkSize=n.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,n.CMapReaderFactory=n.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,n.ignoreErrors=!0!==n.stopAtErrors,n.fontExtraProperties=!0===n.fontExtraProperties,n.pdfBug=!0===n.pdfBug,Number.isInteger(n.maxImageSize)||(n.maxImageSize=-1),"boolean"!=typeof n.isEvalSupported&&(n.isEvalSupported=!0),"boolean"!=typeof n.disableFontFace&&(n.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),"boolean"!=typeof n.disableRange&&(n.disableRange=!1),"boolean"!=typeof n.disableStream&&(n.disableStream=!1),"boolean"!=typeof n.disableAutoFetch&&(n.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(n.verbosity),!o){var c={verbosity:n.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};o=c.port?PDFWorker.fromPort(c):new PDFWorker(c),r._worker=o}var u=r.docId;return o.promise.then(function(){if(r.destroyed)throw new Error("Loading aborted");var t=_fetchDocument(o,n,i,u),e=new Promise(function(t){var e;i?e=new _transport_stream.PDFDataTransportStream({length:n.length,initialData:n.initialData,progressiveDone:n.progressiveDone,disableRange:n.disableRange,disableStream:n.disableStream},i):n.data||(e=createPDFNetworkStream({url:n.url,length:n.length,httpHeaders:n.httpHeaders,withCredentials:n.withCredentials,rangeChunkSize:n.rangeChunkSize,disableRange:n.disableRange,disableStream:n.disableStream})),t(e)});return Promise.all([t,e]).then(function(t){var e=_slicedToArray(t,2),i=e[0],a=e[1];if(r.destroyed)throw new Error("Loading aborted");var s=new _message_handler.MessageHandler(u,i,o.port);s.postMessageTransfers=o.postMessageTransfers;var c=new WorkerTransport(s,r,a,n);r._transport=c,s.send("Ready",null)})}).catch(r._capability.reject),r}function _fetchDocument(t,e,r,n){return t.destroyed?Promise.reject(new Error("Worker was destroyed")):(r&&(e.length=r.length,e.initialData=r.initialData,e.progressiveDone=r.progressiveDone),t.messageHandler.sendWithPromise("GetDocRequest",{docId:n,apiVersion:"2.5.207",source:{data:e.data,url:e.url,password:e.password,disableAutoFetch:e.disableAutoFetch,rangeChunkSize:e.rangeChunkSize,length:e.length},maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,postMessageTransfers:t.postMessageTransfers,docBaseUrl:e.docBaseUrl,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported,fontExtraProperties:e.fontExtraProperties}).then(function(e){if(t.destroyed)throw new Error("Worker was destroyed");return e}))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(2)),_util=__w_pdfjs_require__(5),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(199),_api_compatibility=__w_pdfjs_require__(200),_canvas=__w_pdfjs_require__(201),_worker_options=__w_pdfjs_require__(203),_is_node=__w_pdfjs_require__(7),_message_handler=__w_pdfjs_require__(204),_metadata=__w_pdfjs_require__(205),_transport_stream=__w_pdfjs_require__(207),_webgl=__w_pdfjs_require__(208),DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,createPDFNetworkStream,PDFDocumentLoadingTask=function(){var t=0;return function(){function e(){_classCallCheck(this,e),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+t++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(e,[{key:"destroy",value:function(){var t=this;return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(function(){t._transport=null,t._worker&&(t._worker.destroy(),t._worker=null)})}},{key:"promise",get:function(){return this._capability.promise}}]),e}()}(),PDFDataRangeTransport=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.length=e,this.initialData=r,this.progressiveDone=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(t,[{key:"addRangeListener",value:function(t){this._rangeListeners.push(t)}},{key:"addProgressListener",value:function(t){this._progressListeners.push(t)}},{key:"addProgressiveReadListener",value:function(t){this._progressiveReadListeners.push(t)}},{key:"addProgressiveDoneListener",value:function(t){this._progressiveDoneListeners.push(t)}},{key:"onDataRange",value:function(t,e){var r,n=_createForOfIteratorHelper(this._rangeListeners);try{for(n.s();!(r=n.n()).done;){(0,r.value)(t,e)}}catch(t){n.e(t)}finally{n.f()}}},{key:"onDataProgress",value:function(t,e){var r=this;this._readyCapability.promise.then(function(){var n,i=_createForOfIteratorHelper(r._progressListeners);try{for(i.s();!(n=i.n()).done;){(0,n.value)(t,e)}}catch(t){i.e(t)}finally{i.f()}})}},{key:"onDataProgressiveRead",value:function(t){var e=this;this._readyCapability.promise.then(function(){var r,n=_createForOfIteratorHelper(e._progressiveReadListeners);try{for(n.s();!(r=n.n()).done;){(0,r.value)(t)}}catch(t){n.e(t)}finally{n.f()}})}},{key:"onDataProgressiveDone",value:function(){var t=this;this._readyCapability.promise.then(function(){var e,r=_createForOfIteratorHelper(t._progressiveDoneListeners);try{for(r.s();!(e=r.n()).done;){(0,e.value)()}}catch(t){r.e(t)}finally{r.f()}})}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(t,e){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),t}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function t(e,r){_classCallCheck(this,t),this._pdfInfo=e,this._transport=r}return _createClass(t,[{key:"getPage",value:function(t){return this._transport.getPage(t)}},{key:"getPageIndex",value:function(t){return this._transport.getPageIndex(t)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(t){return this._transport.getDestination(t)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getOpenActionDestination",value:function(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then(function(t){return t&&t.dest?t.dest:null})}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),t}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function t(e,r,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,t),this._pageIndex=e,this._pageInfo=r,this._transport=n,this._stats=i?new _display_utils.StatTimer:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return _createClass(t,[{key:"getViewport",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.scale,r=t.rotation,n=void 0===r?this.rotate:r,i=t.offsetX,o=void 0===i?0:i,a=t.offsetY,s=void 0===a?0:a,c=t.dontFlip,u=void 0!==c&&c;return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:n,offsetX:o,offsetY:s,dontFlip:u})}},{key:"getAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.intent,r=void 0===e?null:e;return this.annotationsPromise&&this.annotationsIntent===r||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,r),this.annotationsIntent=r),this.annotationsPromise}},{key:"render",value:function(t){var e=this,r=t.canvasContext,n=t.viewport,i=t.intent,o=void 0===i?"display":i,a=t.enableWebGL,s=void 0!==a&&a,c=t.renderInteractiveForms,u=void 0!==c&&c,l=t.transform,h=void 0===l?null:l,f=t.imageLayer,d=void 0===f?null:f,p=t.canvasFactory,v=void 0===p?null:p,m=t.background,g=void 0===m?null:m;this._stats&&this._stats.time("Overall");var y="print"===o?"print":"display";this.pendingCleanup=!1,this.intentStates[y]||(this.intentStates[y]=Object.create(null));var b=this.intentStates[y];b.streamReaderCancelTimeout&&(clearTimeout(b.streamReaderCancelTimeout),b.streamReaderCancelTimeout=null);var _=v||new _display_utils.DOMCanvasFactory,w=new _webgl.WebGLContext({enable:s});b.displayReadyCapability||(b.displayReadyCapability=(0,_util.createPromiseCapability)(),b.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:y,renderInteractiveForms:!0===u}));var S=function(t){var r=b.renderTasks.indexOf(A);r>=0&&b.renderTasks.splice(r,1),(e.cleanupAfterRender||"print"===y)&&(e.pendingCleanup=!0),e._tryCleanup(),t?(A.capability.reject(t),e._abortOperatorList({intentState:b,reason:t})):A.capability.resolve(),e._stats&&(e._stats.timeEnd("Rendering"),e._stats.timeEnd("Overall"))},A=new InternalRenderTask({callback:S,params:{canvasContext:r,viewport:n,transform:h,imageLayer:d,background:g},objs:this.objs,commonObjs:this.commonObjs,operatorList:b.operatorList,pageIndex:this._pageIndex,canvasFactory:_,webGLContext:w,useRequestAnimationFrame:"print"!==y,pdfBug:this._pdfBug});b.renderTasks||(b.renderTasks=[]),b.renderTasks.push(A);var x=A.task;return b.displayReadyCapability.promise.then(function(t){if(e.pendingCleanup)return void S();e._stats&&e._stats.time("Rendering"),A.initializeGraphics(t),A.operatorListChanged()}).catch(S),x}},{key:"getOperatorList",value:function(){function t(){if(r.operatorList.lastChunk){r.opListReadCapability.resolve(r.operatorList);var t=r.renderTasks.indexOf(e);t>=0&&r.renderTasks.splice(t,1)}}this.intentStates.oplist||(this.intentStates.oplist=Object.create(null));var e,r=this.intentStates.oplist;return r.opListReadCapability||(e={},e.operatorListChanged=t,r.opListReadCapability=(0,_util.createPromiseCapability)(),r.renderTasks=[],r.renderTasks.push(e),r.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:"oplist"})),r.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.normalizeWhitespace,r=void 0!==e&&e,n=t.disableCombineTextItems,i=void 0!==n&&n;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===r,combineTextItems:!0!==i},{highWaterMark:100,size:function(t){return t.items.length}})}},{key:"getTextContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.streamTextContent(t);return new Promise(function(t,r){function n(){i.read().then(function(e){var r,i=e.value;if(e.done)return void t(o);Object.assign(o.styles,i.styles),(r=o.items).push.apply(r,_toConsumableArray(i.items)),n()},r)}var i=e.getReader(),o={items:[],styles:Object.create(null)};n()})}},{key:"_destroy",value:function(){var t=this;this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var e=[];return Object.keys(this.intentStates).forEach(function(r){var n=t.intentStates[r];t._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==r&&n.renderTasks.forEach(function(t){var r=t.capability.promise.catch(function(){});e.push(r),t.cancel()})}),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(e)}},{key:"cleanup",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(t)}},{key:"_tryCleanup",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(!this.pendingCleanup||Object.keys(this.intentStates).some(function(e){var r=t.intentStates[e];return 0!==r.renderTasks.length||!r.operatorList.lastChunk}))&&(Object.keys(this.intentStates).forEach(function(e){delete t.intentStates[e]}),this.objs.clear(),this.annotationsPromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0)}},{key:"_startRenderPage",value:function(t,e){var r=this.intentStates[e];r&&(this._stats&&this._stats.timeEnd("Page Request"),r.displayReadyCapability&&r.displayReadyCapability.resolve(t))}},{key:"_renderPageChunk",value:function(t,e){for(var r=0,n=t.length;r<n;r++)e.operatorList.fnArray.push(t.fnArray[r]),e.operatorList.argsArray.push(t.argsArray[r]);e.operatorList.lastChunk=t.lastChunk;for(var i=0;i<e.renderTasks.length;i++)e.renderTasks[i].operatorListChanged();t.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(t){var e=this;(0,_util.assert)(t.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var r=this._transport.messageHandler.sendWithStream("GetOperatorList",t),n=r.getReader(),i=this.intentStates[t.intent];i.streamReader=n;!function t(){n.read().then(function(r){var n=r.value;if(r.done)return void(i.streamReader=null);e._transport.destroyed||(e._renderPageChunk(n,i),t())},function(t){if(i.streamReader=null,!e._transport.destroyed){if(i.operatorList){i.operatorList.lastChunk=!0;for(var r=0;r<i.renderTasks.length;r++)i.renderTasks[r].operatorListChanged();e._tryCleanup()}if(i.displayReadyCapability)i.displayReadyCapability.reject(t);else{if(!i.opListReadCapability)throw t;i.opListReadCapability.reject(t)}}})}()}},{key:"_abortOperatorList",value:function(t){var e=this,r=t.intentState,n=t.reason,i=t.force,o=void 0!==i&&i;if((0,_util.assert)(n instanceof Error||"object"===_typeof(n)&&null!==n,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),r.streamReader){if(!o){if(0!==r.renderTasks.length)return;if(n instanceof _display_utils.RenderingCancelledException)return void(r.streamReaderCancelTimeout=setTimeout(function(){e._abortOperatorList({intentState:r,reason:n,force:!0}),r.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}r.streamReader.cancel(new _util.AbortException(n&&n.message)),r.streamReader=null,this._transport.destroyed||(Object.keys(this.intentStates).some(function(t){return e.intentStates[t]===r&&(delete e.intentStates[t],!0)}),this.cleanup())}}},{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"stats",get:function(){return this._stats}}]),t}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function t(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,t),this._listeners=[],this._defer=e,this._deferred=Promise.resolve(void 0)}return _createClass(t,[{key:"postMessage",value:function(t,e){function r(t){if("object"!==_typeof(t)||null===t)return t;if(i.has(t))return i.get(t);var n,o;if((n=t.buffer)&&(0,_util.isArrayBuffer)(n)){return o=e&&e.includes(n)?new t.constructor(n,t.byteOffset,t.byteLength):new t.constructor(t),i.set(t,o),o}o=Array.isArray(t)?[]:{},i.set(t,o);for(var a in t){for(var s=void 0,c=t;!(s=Object.getOwnPropertyDescriptor(c,a));)c=Object.getPrototypeOf(c);if(void 0!==s.value)if("function"!=typeof s.value)o[a]=r(s.value);else if(t.hasOwnProperty&&t.hasOwnProperty(a))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(t[a]))}return o}var n=this;if(!this._defer)return void this._listeners.forEach(function(e){e.call(n,{data:t})});var i=new WeakMap,o={data:r(t)};this._deferred.then(function(){n._listeners.forEach(function(t){t.call(n,o)})})}},{key:"addEventListener",value:function(t,e){this._listeners.push(e)}},{key:"removeEventListener",value:function(t,e){var r=this._listeners.indexOf(e);this._listeners.splice(r,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),t}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(void 0!==fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var t;try{t=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(t){}return t||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref10=_asyncToGenerator(_regenerator.default.mark(function _callee(){var mainWorkerMessageHandler,worker;return _regenerator.default.wrap(function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(!(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler())){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context.stop()}},_callee)}));return function(){return _ref10.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(t){var e="importScripts('"+t+"');";return URL.createObjectURL(new Blob([e]))}var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"==typeof document?"undefined":_typeof(document))&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}var PDFWorker=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.name,n=void 0===r?null:r,i=e.port,o=void 0===i?null:i,a=e.verbosity,s=void 0===a?(0,_util.getVerbosityLevel)():a;if(_classCallCheck(this,t),o&&pdfWorkerPorts.has(o))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=n,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,o)return pdfWorkerPorts.set(o,this),void this._initializeFromPort(o);this._initialize()}return _createClass(t,[{key:"_initializeFromPort",value:function(t){this._port=t,this._messageHandler=new _message_handler.MessageHandler("main","worker",t),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var t=this;if("undefined"!=typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var e=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,e)||(e=createCDNWrapper(new URL(e,window.location).href));var r=new Worker(e),n=new _message_handler.MessageHandler("main","worker",r),i=function(){r.removeEventListener("error",o),n.destroy(),r.terminate(),t.destroyed?t._readyCapability.reject(new Error("Worker was destroyed")):t._setupFakeWorker()},o=function(){t._webWorker||i()};r.addEventListener("error",o),n.on("test",function(e){if(r.removeEventListener("error",o),t.destroyed)return void i();e?(t._messageHandler=n,t._port=r,t._webWorker=r,e.supportTransfers||(t.postMessageTransfers=!1),t._readyCapability.resolve(),n.send("configure",{verbosity:t.verbosity})):(t._setupFakeWorker(),n.destroy(),r.terminate())}),n.on("ready",function(e){if(r.removeEventListener("error",o),t.destroyed)return void i();try{a()}catch(e){t._setupFakeWorker()}});var a=function(){var e=new Uint8Array([t.postMessageTransfers?255:0]);try{n.send("test",e,[e.buffer])}catch(t){(0,_util.warn)("Cannot use postMessage transfers."),e[0]=0,n.send("test",e)}};return void a()}catch(t){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var t=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(function(e){if(t.destroyed)return void t._readyCapability.reject(new Error("Worker was destroyed"));var r=new LoopbackPort;t._port=r;var n="fake"+nextFakeWorkerId++,i=new _message_handler.MessageHandler(n+"_worker",n,r);e.setup(i,r);var o=new _message_handler.MessageHandler(n,n+"_worker",r);t._messageHandler=o,t._readyCapability.resolve(),o.send("configure",{verbosity:t.verbosity})}).catch(function(e){t._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(e.message,'".')))})}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(e){if(!e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(e.port)?pdfWorkerPorts.get(e.port):new t(e)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),t}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function t(e,r,n,i){_classCallCheck(this,t),this.messageHandler=e,this.loadingTask=r,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:r.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=i,this.CMapReaderFactory=new i.CMapReaderFactory({baseUrl:i.cMapUrl,isCompressed:i.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(t,[{key:"destroy",value:function(){var t=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var e=[];this.pageCache.forEach(function(t){t&&e.push(t._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;var r=this.messageHandler.sendWithPromise("Terminate",null);return e.push(r),Promise.all(e).then(function(){t.fontLoader.clear(),t._networkStream&&t._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),t.messageHandler&&(t.messageHandler.destroy(),t.messageHandler=null),t.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var t=this,e=this.messageHandler,r=this.loadingTask;e.on("GetReader",function(e,r){(0,_util.assert)(t._networkStream,"GetReader - no `IPDFStream` instance available."),t._fullReader=t._networkStream.getFullReader(),t._fullReader.onProgress=function(e){t._lastProgress={loaded:e.loaded,total:e.total}},r.onPull=function(){t._fullReader.read().then(function(t){var e=t.value;if(t.done)return void r.close();(0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(e),1,[e])}).catch(function(t){r.error(t)})},r.onCancel=function(e){t._fullReader.cancel(e)}}),e.on("ReaderHeadersReady",function(e){var n=(0,_util.createPromiseCapability)(),i=t._fullReader;return i.headersReady.then(function(){i.isStreamingSupported&&i.isRangeSupported||(t._lastProgress&&r.onProgress&&r.onProgress(t._lastProgress),i.onProgress=function(t){r.onProgress&&r.onProgress({loaded:t.loaded,total:t.total})}),n.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})},n.reject),n.promise}),e.on("GetRangeReader",function(e,r){(0,_util.assert)(t._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var n=t._networkStream.getRangeReader(e.begin,e.end);if(!n)return void r.close();r.onPull=function(){n.read().then(function(t){var e=t.value;if(t.done)return void r.close();(0,_util.assert)((0,_util.isArrayBuffer)(e),"GetRangeReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(e),1,[e])}).catch(function(t){r.error(t)})},r.onCancel=function(t){n.cancel(t)}}),e.on("GetDoc",function(e){var n=e.pdfInfo;t._numPages=n.numPages,r._capability.resolve(new PDFDocumentProxy(n,t))}),e.on("DocException",function(t){var e;switch(t.name){case"PasswordException":e=new _util.PasswordException(t.message,t.code);break;case"InvalidPDFException":e=new _util.InvalidPDFException(t.message);break;case"MissingPDFException":e=new _util.MissingPDFException(t.message);break;case"UnexpectedResponseException":e=new _util.UnexpectedResponseException(t.message,t.status);break;case"UnknownErrorException":e=new _util.UnknownErrorException(t.message,t.details)}r._capability.reject(e)}),e.on("PasswordRequest",function(e){if(t._passwordCapability=(0,_util.createPromiseCapability)(),r.onPassword){var n=function(e){t._passwordCapability.resolve({password:e})};try{r.onPassword(n,e.code)}catch(e){t._passwordCapability.reject(e)}}else t._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return t._passwordCapability.promise}),e.on("DataLoaded",function(e){r.onProgress&&r.onProgress({loaded:e.length,total:e.length}),t.downloadInfoCapability.resolve(e)}),e.on("StartRenderPage",function(e){if(!t.destroyed){t.pageCache[e.pageIndex]._startRenderPage(e.transparency,e.intent)}}),e.on("commonobj",function(r){if(!t.destroyed){var n=_slicedToArray(r,3),i=n[0],o=n[1],a=n[2];if(!t.commonObjs.has(i))switch(o){case"Font":var s=t._params;if("error"in a){var c=a.error;(0,_util.warn)("Error during font loading: ".concat(c)),t.commonObjs.resolve(i,c);break}var u=null;s.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(u={registerFont:function(t,e){globalThis.FontInspector.fontAdded(t,e)}});var l=new _font_loader.FontFaceObject(a,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:t._onUnsupportedFeature.bind(t),fontRegistry:u});t.fontLoader.bind(l).catch(function(t){return e.sendWithPromise("FontFallback",{id:i})}).finally(function(){!s.fontExtraProperties&&l.data&&(l.data=null),t.commonObjs.resolve(i,l)});break;case"FontPath":case"FontType3Res":case"Image":t.commonObjs.resolve(i,a);break;default:throw new Error("Got unknown common object type ".concat(o))}}}),e.on("obj",function(e){if(!t.destroyed){var r=_slicedToArray(e,4),n=r[0],i=r[1],o=r[2],a=r[3],s=t.pageCache[i];if(!s.objs.has(n))switch(o){case"Image":s.objs.resolve(n,a);a&&"data"in a&&a.data.length>8e6&&(s.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(o))}}}),e.on("DocProgress",function(e){t.destroyed||r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",function(e,r){if(t.destroyed)return void r.error(new Error("Worker was destroyed"));var n=!1;r.onPull=function(){if(n)return void r.close();n=!0,t.CMapReaderFactory.fetch(e).then(function(t){r.enqueue(t,1,[t.cMapData.buffer])}).catch(function(t){r.error(t)})}})}},{key:"_onUnsupportedFeature",value:function(t){var e=t.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(e)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(t){var e=this;if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request"));var r=t-1;if(r in this.pagePromises)return this.pagePromises[r];var n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then(function(t){if(e.destroyed)throw new Error("Transport destroyed");var n=new PDFPageProxy(r,t,e,e._params.pdfBug);return e.pageCache[r]=n,n});return this.pagePromises[r]=n,n}},{key:"getPageIndex",value:function(t){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:t}).catch(function(t){return Promise.reject(new Error(t))})}},{key:"getAnnotations",value:function(t,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:e})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(t){return"string"!=typeof t?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var t=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(e){return{info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:t._fullReader?t._fullReader.filename:null}})}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var t=this;return this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(var e=0,r=t.pageCache.length;e<r;e++){var n=t.pageCache[e];if(n){if(!n.cleanup())throw new Error("startCleanup: Page ".concat(e+1," is currently rendering."))}}t.commonObjs.clear(),t.fontLoader.clear()})}},{key:"loadingParams",get:function(){var t=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:t.disableAutoFetch,disableFontFace:t.disableFontFace})}}]),t}(),PDFObjects=function(){function t(){_classCallCheck(this,t),this._objs=Object.create(null)}return _createClass(t,[{key:"_ensureObj",value:function(t){return this._objs[t]?this._objs[t]:this._objs[t]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e)return this._ensureObj(t).capability.promise.then(e),null;var r=this._objs[t];if(!r||!r.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(t,"."));return r.data}},{key:"has",value:function(t){var e=this._objs[t];return!!e&&e.resolved}},{key:"resolve",value:function(t,e){var r=this._ensureObj(t);r.resolved=!0,r.data=e,r.capability.resolve(e)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),t}(),RenderTask=function(){function t(e){_classCallCheck(this,t),this._internalRenderTask=e,this.onContinue=null}return _createClass(t,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),t}(),InternalRenderTask=function(){var t=new WeakSet;return function(){function e(t){var r=t.callback,n=t.params,i=t.objs,o=t.commonObjs,a=t.operatorList,s=t.pageIndex,c=t.canvasFactory,u=t.webGLContext,l=t.useRequestAnimationFrame,h=void 0!==l&&l,f=t.pdfBug,d=void 0!==f&&f;_classCallCheck(this,e),this.callback=r,this.params=n,this.objs=i,this.commonObjs=o,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=s,this.canvasFactory=c,this.webGLContext=u,this._pdfBug=d,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===h&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}return _createClass(e,[{key:"initializeGraphics",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.cancelled){if(this._canvas){if(t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var r=this.params,n=r.canvasContext,i=r.viewport,o=r.transform,a=r.imageLayer,s=r.background;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,a),this.gfx.beginDrawing({transform:o,viewport:i,transparency:e,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&t.delete(this._canvas),this.callback(e||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){if(!this.graphicsReady)return void(this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound));this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var t=this;this._useRequestAnimationFrame?window.requestAnimationFrame(function(){t._nextBound().catch(t.cancel.bind(t))}):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}},{key:"_next",value:function(){function e(){return r.apply(this,arguments)}var r=_asyncToGenerator(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.cancelled){e.next=2;break}return e.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&t.delete(this._canvas),this.callback()));case 4:case"end":return e.stop()}},e,this)}));return e}()}]),e}()}(),version="2.5.207";exports.version=version;var build="0974d605";exports.build=build},function(t,e,r){"use strict";function n(t){"@babel/helpers - typeof";return(n="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})(t)}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=u();return function(){var r,n=l(t);if(e){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return s(this,r)}}function s(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){function o(t){h(s,n,i,o,a,"next",t)}function a(t){h(s,n,i,o,a,"throw",t)}var s=t.apply(e,r);o(void 0)})}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function v(t,e,r){return e&&p(t.prototype,e),r&&p(t,r),t}Object.defineProperty(e,"__esModule",{value:!0}),e.FontLoader=e.FontFaceObject=void 0;var m,g=function(t){return t&&t.__esModule?t:{default:t}}(r(2)),y=r(5),b=function(){function t(e){var r=e.docId,n=e.onUnsupportedFeature;d(this,t),this.constructor===t&&(0,y.unreachable)("Cannot initialize BaseFontLoader."),this.docId=r,this._onUnsupportedFeature=n,this.nativeFontFaces=[],this.styleElement=null}return v(t,[{key:"addNativeFontFace",value:function(t){this.nativeFontFaces.push(t),document.fonts.add(t)}},{key:"insertRule",value:function(t){var e=this.styleElement;e||(e=this.styleElement=document.createElement("style"),e.id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),document.documentElement.getElementsByTagName("head")[0].appendChild(e));var r=e.sheet;r.insertRule(t,r.cssRules.length)}},{key:"clear",value:function(){this.nativeFontFaces.forEach(function(t){document.fonts.delete(t)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){function t(t){return e.apply(this,arguments)}var e=f(g.default.mark(function t(e){var r,n,i=this;return g.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.attached&&!e.missingFile){t.next=2;break}return t.abrupt("return");case 2:if(e.attached=!0,!this.isFontLoadingAPISupported){t.next=19;break}if(!(r=e.createNativeFontFace())){t.next=18;break}return this.addNativeFontFace(r),t.prev=7,t.next=10,r.loaded;case 10:t.next=18;break;case 12:throw t.prev=12,t.t0=t.catch(7),this._onUnsupportedFeature({featureId:y.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,y.warn)("Failed to load font '".concat(r.family,"': '").concat(t.t0,"'.")),e.disableFontFace=!0,t.t0;case 18:return t.abrupt("return");case 19:if(!(n=e.createFontFaceRule())){t.next=26;break}if(this.insertRule(n),!this.isSyncFontLoadingSupported){t.next=24;break}return t.abrupt("return");case 24:return t.next=26,new Promise(function(t){var r=i._queueLoadingCallback(t);i._prepareFontLoadEvent([n],[e],r)});case 26:case"end":return t.stop()}},t,this,[[7,12]])}));return t}()},{key:"_queueLoadingCallback",value:function(t){(0,y.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(t,e,r){(0,y.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){var t="undefined"!=typeof document&&!!document.fonts;return(0,y.shadow)(this,"isFontLoadingAPISupported",t)}},{key:"isSyncFontLoadingSupported",get:function(){(0,y.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,y.unreachable)("Abstract method `_loadTestFont`.")}}]),t}();e.FontLoader=m,e.FontLoader=m=function(t){function e(t){var n;return d(this,e),n=r.call(this,t),n.loadingContext={requests:[],nextRequestId:0},n.loadTestFontId=0,n}i(e,t);var r=a(e);return v(e,[{key:"_queueLoadingCallback",value:function(t){function e(){for((0,y.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;r.requests.length>0&&r.requests[0].done;){var t=r.requests.shift();setTimeout(t.callback,0)}}var r=this.loadingContext,n={id:"pdfjs-font-loading-".concat(r.nextRequestId++),done:!1,complete:e,callback:t};return r.requests.push(n),n}},{key:"_prepareFontLoadEvent",value:function(t,e,r){function n(t,e){return t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|255&t.charCodeAt(e+3)}function i(t,e,r,n){return t.substring(0,e)+n+t.substring(e+r)}function o(t,e){return++l>30?((0,y.warn)("Load test font never loaded."),void e()):(u.font="30px "+t,u.fillText(".",0,20),u.getImageData(0,0,1,1).data[3]>0?void e():void setTimeout(o.bind(null,t,e)))}var a,s,c=document.createElement("canvas");c.width=1,c.height=1;var u=c.getContext("2d"),l=0,h="lt".concat(Date.now()).concat(this.loadTestFontId++),f=this._loadTestFont;f=i(f,976,h.length,h);var d=n(f,16);for(a=0,s=h.length-3;a<s;a+=4)d=d-1482184792+n(h,a)|0;a<h.length&&(d=d-1482184792+n(h+"XXX",a)|0),f=i(f,16,4,(0,y.string32)(d));var p="url(data:font/opentype;base64,".concat(btoa(f),");"),v='@font-face {font-family:"'.concat(h,'";src:').concat(p,"}");this.insertRule(v);var m=[];for(a=0,s=e.length;a<s;a++)m.push(e[a].loadedName);m.push(h);var g=document.createElement("div");for(g.style.visibility="hidden",g.style.width=g.style.height="10px",g.style.position="absolute",g.style.top=g.style.left="0px",a=0,s=m.length;a<s;++a){var b=document.createElement("span");b.textContent="Hi",b.style.fontFamily=m[a],g.appendChild(b)}document.body.appendChild(g),o(h,function(){document.body.removeChild(g),r.complete()})}},{key:"isSyncFontLoadingSupported",get:function(){var t=!1;if("undefined"==typeof navigator)t=!0;else{var e=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);e&&e[1]>=14&&(t=!0)}return(0,y.shadow)(this,"isSyncFontLoadingSupported",t)}},{key:"_loadTestFont",get:function(){return(0,y.shadow)(this,"_loadTestFont",function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")}())}}]),e}(b);var _=function(){function t(e,r){var n=r.isEvalSupported,i=void 0===n||n,o=r.disableFontFace,a=void 0!==o&&o,s=r.ignoreErrors,c=void 0!==s&&s,u=r.onUnsupportedFeature,l=void 0===u?null:u,h=r.fontRegistry,f=void 0===h?null:h;d(this,t),this.compiledGlyphs=Object.create(null);for(var p in e)this[p]=e[p];this.isEvalSupported=!1!==i,this.disableFontFace=!0===a,this.ignoreErrors=!0===c,this._onUnsupportedFeature=l,this.fontRegistry=f}return v(t,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var t=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),t}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var t=(0,y.bytesToString)(new Uint8Array(this.data)),e="url(data:".concat(this.mimetype,";base64,").concat(btoa(t),");"),r='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(e,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,e),r}},{key:"getPathGenerator",value:function(t,e){if(void 0!==this.compiledGlyphs[e])return this.compiledGlyphs[e];var r,n;try{r=t.get(this.loadedName+"_path_"+e)}catch(t){if(!this.ignoreErrors)throw t;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:y.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,y.warn)('getPathGenerator - ignoring character: "'.concat(t,'".')),this.compiledGlyphs[e]=function(t,e){}}if(this.isEvalSupported&&y.IsEvalSupportedCached.value){for(var i,o="",a=0,s=r.length;a<s;a++)n=r[a],i=void 0!==n.args?n.args.join(","):"",o+="c."+n.cmd+"("+i+");\n";return this.compiledGlyphs[e]=new Function("c","size",o)}return this.compiledGlyphs[e]=function(t,e){for(var i=0,o=r.length;i<o;i++)n=r[i],"scale"===n.cmd&&(n.args=[e,-e]),t[n.cmd].apply(t,n.args)}}}]),t}();e.FontFaceObject=_},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.apiCompatibilityParams=void 0;var n=r(7),i=Object.create(null);!function(){n.isNodeJS&&(i.disableFontFace=!0)}();var o=Object.freeze(i);e.apiCompatibilityParams=o},function(t,e,r){"use strict";function n(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=i(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t){t.mozCurrentTransform||(t._originalSave=t.save,t._originalRestore=t.restore,t._originalRotate=t.rotate,t._originalScale=t.scale,t._originalTranslate=t.translate,t._originalTransform=t.transform,t._originalSetTransform=t.setTransform,t._transformMatrix=t._transformMatrix||[1,0,0,1,0,0],t._transformStack=[],Object.defineProperty(t,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(t,"mozCurrentTransformInverse",{get:function(){var t=this._transformMatrix,e=t[0],r=t[1],n=t[2],i=t[3],o=t[4],a=t[5],s=e*i-r*n,c=r*n-e*i;return[i/s,r/c,n/c,e/s,(i*o-n*a)/c,(r*o-e*a)/s]}}),t.save=function(){var t=this._transformMatrix;this._transformStack.push(t),this._transformMatrix=t.slice(0,6),this._originalSave()},t.restore=function(){var t=this._transformStack.pop();t&&(this._transformMatrix=t,this._originalRestore())},t.translate=function(t,e){var r=this._transformMatrix;r[4]=r[0]*t+r[2]*e+r[4],r[5]=r[1]*t+r[3]*e+r[5],this._originalTranslate(t,e)},t.scale=function(t,e){var r=this._transformMatrix;r[0]=r[0]*t,r[1]=r[1]*t,r[2]=r[2]*e,r[3]=r[3]*e,this._originalScale(t,e)},t.transform=function(e,r,n,i,o,a){var s=this._transformMatrix;this._transformMatrix=[s[0]*e+s[2]*r,s[1]*e+s[3]*r,s[0]*n+s[2]*i,s[1]*n+s[3]*i,s[0]*o+s[2]*a+s[4],s[1]*o+s[3]*a+s[5]],t._originalTransform(e,r,n,i,o,a)},t.setTransform=function(e,r,n,i,o,a){this._transformMatrix=[e,r,n,i,o,a],t._originalSetTransform(e,r,n,i,o,a)},t.rotate=function(t){var e=Math.cos(t),r=Math.sin(t),n=this._transformMatrix;this._transformMatrix=[n[0]*e+n[2]*r,n[1]*e+n[3]*r,n[0]*-r+n[2]*e,n[1]*-r+n[3]*e,n[4],n[5]],this._originalRotate(t)})}function s(t){var e,r,n,i,o=t.width,a=t.height,s=o+1,c=new Uint8Array(s*(a+1)),u=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),l=o+7&-8,h=t.data,f=new Uint8Array(l*a),d=0;for(e=0,i=h.length;e<i;e++)for(var p=128,v=h[e];p>0;)f[d++]=v&p?0:255,p>>=1;var m=0;for(d=0,0!==f[d]&&(c[0]=1,++m),r=1;r<o;r++)f[d]!==f[d+1]&&(c[r]=f[d]?2:1,++m),d++;for(0!==f[d]&&(c[r]=2,++m),e=1;e<a;e++){d=e*l,n=e*s,f[d-l]!==f[d]&&(c[n]=f[d]?1:8,++m);var g=(f[d]?4:0)+(f[d-l]?8:0);for(r=1;r<o;r++)g=(g>>2)+(f[d+1]?4:0)+(f[d-l+1]?8:0),u[g]&&(c[n+r]=u[g],++m),d++;if(f[d-l]!==f[d]&&(c[n+r]=f[d]?2:4,++m),m>1e3)return null}for(d=l*(a-1),n=e*s,0!==f[d]&&(c[n]=8,++m),r=1;r<o;r++)f[d]!==f[d+1]&&(c[n+r]=f[d]?4:8,++m),d++;if(0!==f[d]&&(c[n+r]=4,++m),m>1e3)return null;var y=new Int32Array([0,s,-1,0,-s,0,0,0,1]),b=[];for(e=0;m&&e<=a;e++){for(var _=e*s,w=_+o;_<w&&!c[_];)_++;if(_!==w){var S,A=[_%s,e],x=c[_],T=_;do{var k=y[x];do{_+=k}while(!c[_]);S=c[_],5!==S&&10!==S?(x=S,c[_]=0):(x=S&51*x>>4,c[_]&=x>>2|x<<2),A.push(_%s),A.push(_/s|0),c[_]||--m}while(T!==_);b.push(A),--e}}return function(t){t.save(),t.scale(1/o,-1/a),t.translate(0,-a),t.beginPath();for(var e=0,r=b.length;e<r;e++){var n=b[e];t.moveTo(n[0],n[1]);for(var i=2,s=n.length;i<s;i+=2)t.lineTo(n[i],n[i+1])}t.fill(),t.beginPath(),t.restore()}}Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasGraphics=void 0;var c=r(5),u=r(202),l=16,h=function(){function t(t){this.canvasFactory=t,this.cache=Object.create(null)}return t.prototype={getCanvas:function(t,e,r,n){var i;return void 0!==this.cache[t]?(i=this.cache[t],this.canvasFactory.reset(i,e,r),i.context.setTransform(1,0,0,1,0,0)):(i=this.canvasFactory.create(e,r),this.cache[t]=i),n&&a(i.context),i},clear:function(){for(var t in this.cache){var e=this.cache[t];this.canvasFactory.destroy(e),delete this.cache[t]}}},t}(),f=function(){function t(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=c.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=c.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=c.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null}return t.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(t,e){this.x=t,this.y=e}},t}(),d=function(){function t(t,e,r,n,i,o){this.ctx=t,this.current=new f,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=e,this.objs=r,this.canvasFactory=n,this.webGLContext=i,this.imageLayer=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new h(this.canvasFactory),t&&a(t),this._cachedGetSinglePixelWidth=null}function e(t,e){if("undefined"!=typeof ImageData&&e instanceof ImageData)return void t.putImageData(e,0,0);var r,n,i,o,a,s=e.height,u=e.width,h=s%l,f=(s-h)/l,d=0===h?f:f+1,p=t.createImageData(u,l),v=0,m=e.data,g=p.data;if(e.kind===c.ImageKind.GRAYSCALE_1BPP){var y=m.byteLength,b=new Uint32Array(g.buffer,0,g.byteLength>>2),_=b.length,w=u+7>>3,S=4294967295,A=c.IsLittleEndianCached.value?4278190080:255;for(n=0;n<d;n++){for(o=n<f?l:h,r=0,i=0;i<o;i++){for(var x=y-v,T=0,k=x>w?u:8*x-7,P=-8&k,C=0,R=0;T<P;T+=8)R=m[v++],b[r++]=128&R?S:A,b[r++]=64&R?S:A,b[r++]=32&R?S:A,b[r++]=16&R?S:A,b[r++]=8&R?S:A,b[r++]=4&R?S:A,b[r++]=2&R?S:A,b[r++]=1&R?S:A;for(;T<k;T++)0===C&&(R=m[v++],C=128),b[r++]=R&C?S:A,C>>=1}for(;r<_;)b[r++]=0;t.putImageData(p,0,n*l)}}else if(e.kind===c.ImageKind.RGBA_32BPP){for(i=0,a=u*l*4,n=0;n<f;n++)g.set(m.subarray(v,v+a)),v+=a,t.putImageData(p,0,i),i+=l;n<d&&(a=u*h*4,g.set(m.subarray(v,v+a)),t.putImageData(p,0,i))}else{if(e.kind!==c.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(e.kind));for(o=l,a=u*o,n=0;n<d;n++){for(n>=f&&(o=h,a=u*o),r=0,i=a;i--;)g[r++]=m[v++],g[r++]=m[v++],g[r++]=m[v++],g[r++]=255;t.putImageData(p,0,n*l)}}}function r(t,e){for(var r=e.height,n=e.width,i=r%l,o=(r-i)/l,a=0===i?o:o+1,s=t.createImageData(n,l),c=0,u=e.data,h=s.data,f=0;f<a;f++){for(var d=f<o?l:i,p=3,v=0;v<d;v++)for(var m=0,g=0;g<n;g++){if(!m){var y=u[c++];m=128}h[p]=y&m?0:255,p+=4,m>>=1}t.putImageData(s,0,f*l)}}function i(t,e){for(var r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],n=0,i=r.length;n<i;n++){var o=r[n];void 0!==t[o]&&(e[o]=t[o])}void 0!==t.setLineDash&&(e.setLineDash(t.getLineDash()),e.lineDashOffset=t.lineDashOffset)}function o(t){t.strokeStyle="#000000",t.fillStyle="#000000",t.fillRule="nonzero",t.globalAlpha=1,t.lineWidth=1,t.lineCap="butt",t.lineJoin="miter",t.miterLimit=10,t.globalCompositeOperation="source-over",t.font="10px sans-serif",void 0!==t.setLineDash&&(t.setLineDash([]),t.lineDashOffset=0)}function d(t,e,r,n){for(var i=t.length,o=3;o<i;o+=4){var a=t[o];if(0===a)t[o-3]=e,t[o-2]=r,t[o-1]=n;else if(a<255){var s=255-a;t[o-3]=t[o-3]*a+e*s>>8,t[o-2]=t[o-2]*a+r*s>>8,t[o-1]=t[o-1]*a+n*s>>8}}}function p(t,e,r){for(var n=t.length,i=3;i<n;i+=4){var o=r?r[t[i]]:t[i];e[i]=e[i]*o*(1/255)|0}}function v(t,e,r){for(var n=t.length,i=3;i<n;i+=4){var o=77*t[i-3]+152*t[i-2]+28*t[i-1];e[i]=r?e[i]*r[o>>8]>>8:e[i]*o>>16}}function m(t,e,r,n,i,o,a){var s,c=!!o,u=c?o[0]:0,l=c?o[1]:0,h=c?o[2]:0;s="Luminosity"===i?v:p;for(var f=Math.min(n,Math.ceil(1048576/r)),m=0;m<n;m+=f){var g=Math.min(f,n-m),y=t.getImageData(0,m,r,g),b=e.getImageData(0,m,r,g);c&&d(y.data,u,l,h),s(y.data,b.data,a),t.putImageData(b,0,m)}}function g(t,e,r,n){var i=e.canvas,o=e.context;t.setTransform(e.scaleX,0,0,e.scaleY,e.offsetX,e.offsetY);var a=e.backdrop||null;if(!e.transferMap&&n.isEnabled){var s=n.composeSMask({layer:r.canvas,mask:i,properties:{subtype:e.subtype,backdrop:a}});return t.setTransform(1,0,0,1,0,0),void t.drawImage(s,e.offsetX,e.offsetY)}m(o,r,i.width,i.height,e.subtype,a,e.transferMap),t.drawImage(i,0,0)}var y=["butt","round","square"],b=["miter","round","bevel"],_={},w={};t.prototype={beginDrawing:function(t){var e=t.transform,r=t.viewport,n=t.transparency,i=void 0!==n&&n,a=t.background,s=void 0===a?null:a,c=this.ctx.canvas.width,u=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=s||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,c,u),this.ctx.restore(),i){var l=this.cachedCanvases.getCanvas("transparent",c,u,!0);this.compositeCtx=this.ctx,this.transparentCanvas=l.canvas,this.ctx=l.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),o(this.ctx),e&&this.ctx.transform.apply(this.ctx,e),this.ctx.transform.apply(this.ctx,r.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(t,e,r,i){var o=t.argsArray,a=t.fnArray,s=e||0,u=o.length;if(u===s)return s;for(var l,h=u-s>10&&"function"==typeof r,f=h?Date.now()+15:0,d=0,p=this.commonObjs,v=this.objs;;){if(void 0!==i&&s===i.nextBreakPoint)return i.breakIt(s,r),s;if((l=a[s])!==c.OPS.dependency)this[l].apply(this,o[s]);else{var m,g=n(o[s]);try{for(g.s();!(m=g.n()).done;){var y=m.value,b=y.startsWith("g_")?p:v;if(!b.has(y))return b.get(y,r),s}}catch(t){g.e(t)}finally{g.f()}}if(++s===u)return s;if(h&&++d>10){if(Date.now()>f)return r(),s;d=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(t){this.current.lineWidth=t,this.ctx.lineWidth=t},setLineCap:function(t){this.ctx.lineCap=y[t]},setLineJoin:function(t){this.ctx.lineJoin=b[t]},setMiterLimit:function(t){this.ctx.miterLimit=t},setDash:function(t,e){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(t),r.lineDashOffset=e)},setRenderingIntent:function(t){},setFlatness:function(t){},setGState:function(t){for(var e=0,r=t.length;e<r;e++){var n=t[e],i=n[0],o=n[1];switch(i){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o[0],o[1]);break;case"CA":this.current.strokeAlpha=n[1];break;case"ca":this.current.fillAlpha=n[1],this.ctx.globalAlpha=n[1];break;case"BM":this.ctx.globalCompositeOperation=o;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=o?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var t=this.current.activeSMask,e=t.canvas.width,r=t.canvas.height,n="smaskGroupAt"+this.groupLevel,o=this.cachedCanvases.getCanvas(n,e,r,!0),a=this.ctx,s=a.mozCurrentTransform;this.ctx.save();var c=o.context;c.scale(1/t.scaleX,1/t.scaleY),c.translate(-t.offsetX,-t.offsetY),c.transform.apply(c,s),t.startTransformInverse=c.mozCurrentTransformInverse,i(a,c),this.ctx=c,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(a),this.groupLevel++},suspendSMaskGroup:function(){var t=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),g(this.ctx,this.current.activeSMask,t,this.webGLContext),this.ctx.restore(),this.ctx.save(),i(t,this.ctx),this.current.resumeSMaskCtx=t;var e=c.Util.transform(this.current.activeSMask.startTransformInverse,t.mozCurrentTransform);this.ctx.transform.apply(this.ctx,e),t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,t.canvas.width,t.canvas.height),t.restore()},resumeSMaskGroup:function(){var t=this.current.resumeSMaskCtx,e=this.ctx;this.ctx=t,this.groupStack.push(e),this.groupLevel++},endSMaskGroup:function(){var t=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),g(this.ctx,this.current.activeSMask,t,this.webGLContext),this.ctx.restore(),i(t,this.ctx);var e=c.Util.transform(this.current.activeSMask.startTransformInverse,t.mozCurrentTransform);this.ctx.transform.apply(this.ctx,e)},save:function(){this.ctx.save();var t=this.current;this.stateStack.push(t),this.current=t.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(t,e,r,n,i,o){this.ctx.transform(t,e,r,n,i,o),this._cachedGetSinglePixelWidth=null},constructPath:function(t,e){for(var r=this.ctx,n=this.current,i=n.x,o=n.y,a=0,s=0,u=t.length;a<u;a++)switch(0|t[a]){case c.OPS.rectangle:i=e[s++],o=e[s++];var l=e[s++],h=e[s++];0===l&&(l=this.getSinglePixelWidth()),0===h&&(h=this.getSinglePixelWidth());var f=i+l,d=o+h;this.ctx.moveTo(i,o),this.ctx.lineTo(f,o),this.ctx.lineTo(f,d),this.ctx.lineTo(i,d),this.ctx.lineTo(i,o),this.ctx.closePath();break;case c.OPS.moveTo:i=e[s++],o=e[s++],r.moveTo(i,o);break;case c.OPS.lineTo:i=e[s++],o=e[s++],r.lineTo(i,o);break;case c.OPS.curveTo:i=e[s+4],o=e[s+5],r.bezierCurveTo(e[s],e[s+1],e[s+2],e[s+3],i,o),s+=6;break;case c.OPS.curveTo2:r.bezierCurveTo(i,o,e[s],e[s+1],e[s+2],e[s+3]),i=e[s+2],o=e[s+3],s+=4;break;case c.OPS.curveTo3:i=e[s+2],o=e[s+3],r.bezierCurveTo(e[s],e[s+1],i,o,i,o),s+=4;break;case c.OPS.closePath:r.closePath()}n.setCurrentPoint(i,o)},closePath:function(){this.ctx.closePath()},stroke:function(t){t=void 0===t||t;var e=this.ctx,r=this.current.strokeColor;if(e.globalAlpha=this.current.strokeAlpha,r&&r.hasOwnProperty("type")&&"Pattern"===r.type){e.save();var n=e.mozCurrentTransform,i=c.Util.singularValueDecompose2dScale(n)[0];e.strokeStyle=r.getPattern(e,this),e.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth*i),e.stroke(),e.restore()}else e.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth),e.stroke();t&&this.consumePath(),e.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(t){t=void 0===t||t;var e=this.ctx,r=this.current.fillColor,n=this.current.patternFill,i=!1;n&&(e.save(),this.baseTransform&&e.setTransform.apply(e,this.baseTransform),e.fillStyle=r.getPattern(e,this),i=!0),this.pendingEOFill?(e.fill("evenodd"),this.pendingEOFill=!1):e.fill(),i&&e.restore(),t&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=_},eoClip:function(){this.pendingClip=w},beginText:function(){this.current.textMatrix=c.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var t=this.pendingTextPaths,e=this.ctx;if(void 0===t)return void e.beginPath();e.save(),e.beginPath();for(var r=0;r<t.length;r++){var n=t[r];e.setTransform.apply(e,n.transform),e.translate(n.x,n.y),n.addToPath(e,n.fontSize)}e.restore(),e.clip(),e.beginPath(),delete this.pendingTextPaths},setCharSpacing:function(t){this.current.charSpacing=t},setWordSpacing:function(t){this.current.wordSpacing=t},setHScale:function(t){this.current.textHScale=t/100},setLeading:function(t){this.current.leading=-t},setFont:function(t,e){var r=this.commonObjs.get(t),n=this.current;if(!r)throw new Error("Can't find font for ".concat(t));if(n.fontMatrix=r.fontMatrix?r.fontMatrix:c.FONT_IDENTITY_MATRIX,0!==n.fontMatrix[0]&&0!==n.fontMatrix[3]||(0,c.warn)("Invalid font matrix for font "+t),e<0?(e=-e,n.fontDirection=-1):n.fontDirection=1,this.current.font=r,this.current.fontSize=e,!r.isType3Font){var i=r.loadedName||"sans-serif",o="normal";r.black?o="900":r.bold&&(o="bold");var a=r.italic?"italic":"normal",s='"'.concat(i,'", ').concat(r.fallbackName),u=e;e<16?u=16:e>100&&(u=100),this.current.fontSizeScale=e/u,this.ctx.font="".concat(a," ").concat(o," ").concat(u,"px ").concat(s)}},setTextRenderingMode:function(t){this.current.textRenderingMode=t},setTextRise:function(t){this.current.textRise=t},moveText:function(t,e){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=e},setLeadingMoveText:function(t,e){this.setLeading(-e),this.moveText(t,e)},setTextMatrix:function(t,e,r,n,i,o){this.current.textMatrix=[t,e,r,n,i,o],this.current.textMatrixScale=Math.sqrt(t*t+e*e),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(t,e,r,n){var i,o=this.ctx,a=this.current,s=a.font,u=a.textRenderingMode,l=a.fontSize/a.fontSizeScale,h=u&c.TextRenderingMode.FILL_STROKE_MASK,f=!!(u&c.TextRenderingMode.ADD_TO_PATH_FLAG),d=a.patternFill&&!s.missingFile;if((s.disableFontFace||f||d)&&(i=s.getPathGenerator(this.commonObjs,t)),s.disableFontFace||d?(o.save(),o.translate(e,r),o.beginPath(),i(o,l),n&&o.setTransform.apply(o,n),h!==c.TextRenderingMode.FILL&&h!==c.TextRenderingMode.FILL_STROKE||o.fill(),h!==c.TextRenderingMode.STROKE&&h!==c.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(h!==c.TextRenderingMode.FILL&&h!==c.TextRenderingMode.FILL_STROKE||o.fillText(t,e,r),h!==c.TextRenderingMode.STROKE&&h!==c.TextRenderingMode.FILL_STROKE||o.strokeText(t,e,r)),f){(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:o.mozCurrentTransform,x:e,y:r,fontSize:l,addToPath:i})}},get isFontSubpixelAAEnabled(){var t=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10),e=t.context;e.scale(1.5,1),e.fillText("I",0,10);for(var r=e.getImageData(0,0,10,10).data,n=!1,i=3;i<r.length;i+=4)if(r[i]>0&&r[i]<255){n=!0;break}return(0,c.shadow)(this,"isFontSubpixelAAEnabled",n)},showText:function(t){var e=this.current,r=e.font;if(r.isType3Font)return this.showType3Text(t);var n=e.fontSize;if(0!==n){var i=this.ctx,o=e.fontSizeScale,a=e.charSpacing,s=e.wordSpacing,u=e.fontDirection,l=e.textHScale*u,h=t.length,f=r.vertical,d=f?1:-1,p=r.defaultVMetrics,v=n*e.fontMatrix[0],m=e.textRenderingMode===c.TextRenderingMode.FILL&&!r.disableFontFace&&!e.patternFill;i.save();var g;if(e.patternFill){i.save();var y=e.fillColor.getPattern(i,this);g=i.mozCurrentTransform,i.restore(),i.fillStyle=y}i.transform.apply(i,e.textMatrix),i.translate(e.x,e.y+e.textRise),u>0?i.scale(l,-1):i.scale(l,1);var b=e.lineWidth,_=e.textMatrixScale;if(0===_||0===b){var w=e.textRenderingMode&c.TextRenderingMode.FILL_STROKE_MASK;w!==c.TextRenderingMode.STROKE&&w!==c.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,b=.65*this.getSinglePixelWidth())}else b/=_;1!==o&&(i.scale(o,o),b/=o),i.lineWidth=b;var S,A=0;for(S=0;S<h;++S){var x=t[S];if((0,c.isNum)(x))A+=d*x*n/1e3;else{var T,k,P,C,R=!1,E=(x.isSpace?s:0)+a,O=x.fontChar,L=x.accent,I=x.width;if(f){var M,F,D;M=x.vmetric||p,F=x.vmetric?M[1]:.5*I,F=-F*v,D=M[2]*v,I=M?-M[0]:I,T=F/o,k=(A+D)/o}else T=A/o,k=0;if(r.remeasure&&I>0){var j=1e3*i.measureText(O).width/n*o;if(I<j&&this.isFontSubpixelAAEnabled){var N=I/j;R=!0,i.save(),i.scale(N,1),T/=N}else I!==j&&(T+=(I-j)/2e3*n/o)}(x.isInFont||r.missingFile)&&(m&&!L?i.fillText(O,T,k):(this.paintChar(O,T,k,g),L&&(P=T+L.offset.x/o,C=k-L.offset.y/o,this.paintChar(L.fontChar,P,C,g))));var U;U=f?I*v-E*u:I*v+E*u,A+=U,R&&i.restore()}}f?e.y-=A:e.x+=A*l,i.restore()}},showType3Text:function(t){var e,r,n,i,o=this.ctx,a=this.current,s=a.font,u=a.fontSize,l=a.fontDirection,h=s.vertical?1:-1,f=a.charSpacing,d=a.wordSpacing,p=a.textHScale*l,v=a.fontMatrix||c.FONT_IDENTITY_MATRIX,m=t.length,g=a.textRenderingMode===c.TextRenderingMode.INVISIBLE;if(!g&&0!==u){for(this._cachedGetSinglePixelWidth=null,o.save(),o.transform.apply(o,a.textMatrix),o.translate(a.x,a.y),o.scale(p,l),e=0;e<m;++e)if(r=t[e],(0,c.isNum)(r))i=h*r*u/1e3,this.ctx.translate(i,0),a.x+=i*p;else{var y=(r.isSpace?d:0)+f,b=s.charProcOperatorList[r.operatorListId];if(b){this.processingType3=r,this.save(),o.scale(u,u),o.transform.apply(o,v),this.executeOperatorList(b),this.restore();var _=c.Util.applyTransform([r.width,0],v);n=_[0]*u+y,o.translate(n,0),a.x+=n*p}else(0,c.warn)('Type3 character "'.concat(r.operatorListId,'" is not available.'))}o.restore(),this.processingType3=null}},setCharWidth:function(t,e){},setCharWidthAndBounds:function(t,e,r,n,i,o){this.ctx.rect(r,n,i-r,o-n),this.clip(),this.endPath()},getColorN_Pattern:function(e){var r,n=this;if("TilingPattern"===e[0]){var i=e[1],o=this.baseTransform||this.ctx.mozCurrentTransform.slice(),a={createCanvasGraphics:function(e){return new t(e,n.commonObjs,n.objs,n.canvasFactory,n.webGLContext)}};r=new u.TilingPattern(e,i,this.ctx,a,o)}else r=(0,u.getShadingPatternFromIR)(e);return r},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(t,e,r){var n=c.Util.makeCssRgb(t,e,r);this.ctx.strokeStyle=n,this.current.strokeColor=n},setFillRGBColor:function(t,e,r){var n=c.Util.makeCssRgb(t,e,r);this.ctx.fillStyle=n,this.current.fillColor=n,this.current.patternFill=!1},shadingFill:function(t){var e=this.ctx;this.save();var r=(0,u.getShadingPatternFromIR)(t);e.fillStyle=r.getPattern(e,this,!0);var n=e.mozCurrentTransformInverse;if(n){var i=e.canvas,o=i.width,a=i.height,s=c.Util.applyTransform([0,0],n),l=c.Util.applyTransform([0,a],n),h=c.Util.applyTransform([o,0],n),f=c.Util.applyTransform([o,a],n),d=Math.min(s[0],l[0],h[0],f[0]),p=Math.min(s[1],l[1],h[1],f[1]),v=Math.max(s[0],l[0],h[0],f[0]),m=Math.max(s[1],l[1],h[1],f[1]);this.ctx.fillRect(d,p,v-d,m-p)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,c.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,c.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(t,e){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(t)&&6===t.length&&this.transform.apply(this,t),this.baseTransform=this.ctx.mozCurrentTransform,e){var r=e[2]-e[0],n=e[3]-e[1];this.ctx.rect(e[0],e[1],r,n),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(t){this.save();var e=this.ctx;t.isolated||(0,c.info)("TODO: Support non-isolated groups."),t.knockout&&(0,c.warn)("Knockout groups not supported.");var r=e.mozCurrentTransform;if(t.matrix&&e.transform.apply(e,t.matrix),!t.bbox)throw new Error("Bounding box is required.");var n=c.Util.getAxialAlignedBoundingBox(t.bbox,e.mozCurrentTransform),o=[0,0,e.canvas.width,e.canvas.height];n=c.Util.intersect(n,o)||[0,0,0,0];var a=Math.floor(n[0]),s=Math.floor(n[1]),u=Math.max(Math.ceil(n[2])-a,1),l=Math.max(Math.ceil(n[3])-s,1),h=1,f=1;u>4096&&(h=u/4096,u=4096),l>4096&&(f=l/4096,l=4096);var d="groupAt"+this.groupLevel;t.smask&&(d+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(d,u,l,!0),v=p.context;v.scale(1/h,1/f),v.translate(-a,-s),v.transform.apply(v,r),t.smask?this.smaskStack.push({canvas:p.canvas,context:v,offsetX:a,offsetY:s,scaleX:h,scaleY:f,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(e.setTransform(1,0,0,1,0,0),e.translate(a,s),e.scale(h,f)),i(e,v),this.ctx=v,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(e),this.groupLevel++,this.current.activeSMask=null},endGroup:function(t){this.groupLevel--;var e=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,t.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(e.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(t,e,r){if(this.save(),o(this.ctx),this.current=new f,Array.isArray(t)&&4===t.length){var n=t[2]-t[0],i=t[3]-t[1];this.ctx.rect(t[0],t[1],n,i),this.clip(),this.endPath()}this.transform.apply(this,e),this.transform.apply(this,r)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(t){var e=this.ctx,n=t.width,i=t.height,o=this.current.fillColor,a=this.current.patternFill,c=this.processingType3;if(c&&void 0===c.compiled&&(c.compiled=n<=1e3&&i<=1e3?s({data:t.data,width:n,height:i}):null),c&&c.compiled)return void c.compiled(e);var u=this.cachedCanvases.getCanvas("maskCanvas",n,i),l=u.context;l.save(),r(l,t),l.globalCompositeOperation="source-in",l.fillStyle=a?o.getPattern(l,this):o,l.fillRect(0,0,n,i),l.restore(),this.paintInlineImageXObject(u.canvas)},paintImageMaskXObjectRepeat:function(t,e,n,i){var o=t.width,a=t.height,s=this.current.fillColor,c=this.current.patternFill,u=this.cachedCanvases.getCanvas("maskCanvas",o,a),l=u.context;l.save(),r(l,t),l.globalCompositeOperation="source-in",l.fillStyle=c?s.getPattern(l,this):s,l.fillRect(0,0,o,a),l.restore();for(var h=this.ctx,f=0,d=i.length;f<d;f+=2)h.save(),h.transform(e,0,0,n,i[f],i[f+1]),h.scale(1,-1),h.drawImage(u.canvas,0,0,o,a,0,-1,1,1),h.restore()},paintImageMaskXObjectGroup:function(t){for(var e=this.ctx,n=this.current.fillColor,i=this.current.patternFill,o=0,a=t.length;o<a;o++){var s=t[o],c=s.width,u=s.height,l=this.cachedCanvases.getCanvas("maskCanvas",c,u),h=l.context;h.save(),r(h,s),h.globalCompositeOperation="source-in",h.fillStyle=i?n.getPattern(h,this):n,h.fillRect(0,0,c,u),h.restore(),e.save(),e.transform.apply(e,s.transform),e.scale(1,-1),e.drawImage(l.canvas,0,0,c,u,0,-1,1,1),e.restore()}},paintImageXObject:function(t){var e=t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t);if(!e)return void(0,c.warn)("Dependent image isn't ready yet");this.paintInlineImageXObject(e)},paintImageXObjectRepeat:function(t,e,r,n){var i=t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t);if(!i)return void(0,c.warn)("Dependent image isn't ready yet");for(var o=i.width,a=i.height,s=[],u=0,l=n.length;u<l;u+=2)s.push({transform:[e,0,0,r,n[u],n[u+1]],x:0,y:0,w:o,h:a});this.paintInlineImageXObjectGroup(i,s)},paintInlineImageXObject:function(t){var r=t.width,n=t.height,i=this.ctx;this.save(),i.scale(1/r,-1/n);var o,a,s=i.mozCurrentTransformInverse,c=s[0],u=s[1],l=Math.max(Math.sqrt(c*c+u*u),1),h=s[2],f=s[3],d=Math.max(Math.sqrt(h*h+f*f),1);if("function"==typeof HTMLElement&&t instanceof HTMLElement||!t.data)o=t;else{a=this.cachedCanvases.getCanvas("inlineImage",r,n);var p=a.context;e(p,t),o=a.canvas}for(var v=r,m=n,g="prescale1";l>2&&v>1||d>2&&m>1;){var y=v,b=m;l>2&&v>1&&(y=Math.ceil(v/2),l/=v/y),d>2&&m>1&&(b=Math.ceil(m/2),d/=m/b),a=this.cachedCanvases.getCanvas(g,y,b),p=a.context,p.clearRect(0,0,y,b),p.drawImage(o,0,0,v,m,0,0,y,b),o=a.canvas,v=y,m=b,g="prescale1"===g?"prescale2":"prescale1"}if(i.drawImage(o,0,0,v,m,0,-n,r,n),this.imageLayer){var _=this.getCanvasPosition(0,-n);this.imageLayer.appendImage({imgData:t,left:_[0],top:_[1],width:r/s[0],height:n/s[3]})}this.restore()},paintInlineImageXObjectGroup:function(t,r){var n=this.ctx,i=t.width,o=t.height,a=this.cachedCanvases.getCanvas("inlineImage",i,o);e(a.context,t);for(var s=0,c=r.length;s<c;s++){var u=r[s];if(n.save(),n.transform.apply(n,u.transform),n.scale(1,-1),n.drawImage(a.canvas,u.x,u.y,u.w,u.h,0,-1,1,1),this.imageLayer){var l=this.getCanvasPosition(u.x,u.y);this.imageLayer.appendImage({imgData:t,left:l[0],top:l[1],width:i,height:o})}n.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,c.warn)("Unsupported 'paintXObject' command.")},markPoint:function(t){},markPointProps:function(t,e){},beginMarkedContent:function(t){},beginMarkedContentProps:function(t,e){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var t=this.ctx;this.pendingClip&&(this.pendingClip===w?t.clip("evenodd"):t.clip(),this.pendingClip=null),t.beginPath()},getSinglePixelWidth:function(t){if(null===this._cachedGetSinglePixelWidth){var e=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(e[0]*e[0]+e[1]*e[1],e[2]*e[2]+e[3]*e[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(t,e){var r=this.ctx.mozCurrentTransform;return[r[0]*t+r[2]*e+r[4],r[1]*t+r[3]*e+r[5]]}};for(var S in c.OPS)t.prototype[c.OPS[S]]=t.prototype[S];return t}();e.CanvasGraphics=d},function(t,e,r){"use strict";function n(t,e){if(e&&"undefined"!=typeof Path2D){var r=e[2]-e[0],n=e[3]-e[1],i=new Path2D;i.rect(e[0],e[1],r,n),t.clip(i)}}function i(t){var e=a[t[0]];if(!e)throw new Error("Unknown IR type: ".concat(t[0]));return e.fromIR(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.getShadingPatternFromIR=i,e.TilingPattern=void 0;var o=r(5),a={};a.RadialAxial={fromIR:function(t){var e=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],c=t[7];return{type:"Pattern",getPattern:function(t){n(t,r);var u;"axial"===e?u=t.createLinearGradient(o[0],o[1],a[0],a[1]):"radial"===e&&(u=t.createRadialGradient(o[0],o[1],s,a[0],a[1],c));for(var l=0,h=i.length;l<h;++l){var f=i[l];u.addColorStop(f[0],f[1])}return u}}}};var s=function(){function t(t,e,r,n,i,o,a,s){var c,u=e.coords,l=e.colors,h=t.data,f=4*t.width;u[r+1]>u[n+1]&&(c=r,r=n,n=c,c=o,o=a,a=c),u[n+1]>u[i+1]&&(c=n,n=i,i=c,c=a,a=s,s=c),u[r+1]>u[n+1]&&(c=r,r=n,n=c,c=o,o=a,a=c);var d=(u[r]+e.offsetX)*e.scaleX,p=(u[r+1]+e.offsetY)*e.scaleY,v=(u[n]+e.offsetX)*e.scaleX,m=(u[n+1]+e.offsetY)*e.scaleY,g=(u[i]+e.offsetX)*e.scaleX,y=(u[i+1]+e.offsetY)*e.scaleY;if(!(p>=y))for(var b,_,w,S,A,x,T,k,P=l[o],C=l[o+1],R=l[o+2],E=l[a],O=l[a+1],L=l[a+2],I=l[s],M=l[s+1],F=l[s+2],D=Math.round(p),j=Math.round(y),N=D;N<=j;N++){if(N<m){var U=void 0;U=N<p?0:p===m?1:(p-N)/(p-m),b=d-(d-v)*U,_=P-(P-E)*U,w=C-(C-O)*U,S=R-(R-L)*U}else{var B=void 0;B=N>y?1:m===y?0:(m-N)/(m-y),b=v-(v-g)*B,_=E-(E-I)*B,w=O-(O-M)*B,S=L-(L-F)*B}var W=void 0;W=N<p?0:N>y?1:(p-N)/(p-y),A=d-(d-g)*W,x=P-(P-I)*W,T=C-(C-M)*W,k=R-(R-F)*W;for(var q=Math.round(Math.min(b,A)),Y=Math.round(Math.max(b,A)),z=f*N+4*q,X=q;X<=Y;X++)W=(b-X)/(b-A),W<0?W=0:W>1&&(W=1),h[z++]=_-(_-x)*W|0,h[z++]=w-(w-T)*W|0,h[z++]=S-(S-k)*W|0,h[z++]=255}}function e(e,r,n){var i,o,a=r.coords,s=r.colors;switch(r.type){case"lattice":var c=r.verticesPerRow,u=Math.floor(a.length/c)-1,l=c-1;for(i=0;i<u;i++)for(var h=i*c,f=0;f<l;f++,h++)t(e,n,a[h],a[h+1],a[h+c],s[h],s[h+1],s[h+c]),t(e,n,a[h+c+1],a[h+1],a[h+c],s[h+c+1],s[h+1],s[h+c]);break;case"triangles":for(i=0,o=a.length;i<o;i+=3)t(e,n,a[i],a[i+1],a[i+2],s[i],s[i+1],s[i+2]);break;default:throw new Error("illegal figure")}}function r(t,r,n,i,o,a,s,c){var u,l,h,f,d=Math.floor(t[0]),p=Math.floor(t[1]),v=Math.ceil(t[2])-d,m=Math.ceil(t[3])-p,g=Math.min(Math.ceil(Math.abs(v*r[0]*1.1)),3e3),y=Math.min(Math.ceil(Math.abs(m*r[1]*1.1)),3e3),b=v/g,_=m/y,w={coords:n,colors:i,offsetX:-d,offsetY:-p,scaleX:1/b,scaleY:1/_},S=g+4,A=y+4;if(c.isEnabled)u=c.drawFigures({width:g,height:y,backgroundColor:a,figures:o,context:w}),l=s.getCanvas("mesh",S,A,!1),l.context.drawImage(u,2,2),u=l.canvas;else{l=s.getCanvas("mesh",S,A,!1);var x=l.context,T=x.createImageData(g,y);if(a){var k=T.data;for(h=0,f=k.length;h<f;h+=4)k[h]=a[0],k[h+1]=a[1],k[h+2]=a[2],k[h+3]=255}for(h=0;h<o.length;h++)e(T,o[h],w);x.putImageData(T,2,2),u=l.canvas}return{canvas:u,offsetX:d-2*b,offsetY:p-2*_,scaleX:b,scaleY:_}}return r}();a.Mesh={fromIR:function(t){var e=t[2],r=t[3],i=t[4],a=t[5],c=t[6],u=t[7],l=t[8];return{type:"Pattern",getPattern:function(t,h,f){n(t,u);var d;if(f)d=o.Util.singularValueDecompose2dScale(t.mozCurrentTransform);else if(d=o.Util.singularValueDecompose2dScale(h.baseTransform),c){var p=o.Util.singularValueDecompose2dScale(c);d=[d[0]*p[0],d[1]*p[1]]}var v=s(a,d,e,r,i,f?null:l,h.cachedCanvases,h.webGLContext);return f||(t.setTransform.apply(t,h.baseTransform),c&&t.transform.apply(t,c)),t.translate(v.offsetX,v.offsetY),t.scale(v.scaleX,v.scaleY),t.createPattern(v.canvas,"no-repeat")}}}},a.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var c=function(){function t(t,e,r,n,i){this.operatorList=t[2],this.matrix=t[3]||[1,0,0,1,0,0],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=e,this.canvasGraphicsFactory=n,this.baseTransform=i,this.type="Pattern",this.ctx=r}var e={COLORED:1,UNCOLORED:2};return t.prototype={createPatternCanvas:function(t){var e=this.operatorList,r=this.bbox,n=this.xstep,i=this.ystep,a=this.paintType,s=this.tilingType,c=this.color,u=this.canvasGraphicsFactory;(0,o.info)("TilingType: "+s);var l=r[0],h=r[1],f=r[2],d=r[3],p=o.Util.singularValueDecompose2dScale(this.matrix),v=o.Util.singularValueDecompose2dScale(this.baseTransform),m=[p[0]*v[0],p[1]*v[1]],g=this.getSizeAndScale(n,this.ctx.canvas.width,m[0]),y=this.getSizeAndScale(i,this.ctx.canvas.height,m[1]),b=t.cachedCanvases.getCanvas("pattern",g.size,y.size,!0),_=b.context,w=u.createCanvasGraphics(_);return w.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(w,a,c),w.transform(g.scale,0,0,y.scale,0,0),w.transform(1,0,0,1,-l,-h),this.clipBbox(w,r,l,h,f,d),w.executeOperatorList(e),this.ctx.transform(1,0,0,1,l,h),this.ctx.scale(1/g.scale,1/y.scale),b.canvas},getSizeAndScale:function(t,e,r){t=Math.abs(t);var n=Math.max(3e3,e),i=Math.ceil(t*r);return i>=n?i=n:r=i/t,{scale:r,size:i}},clipBbox:function(t,e,r,n,i,o){if(Array.isArray(e)&&4===e.length){var a=i-r,s=o-n;t.ctx.rect(r,n,a,s),t.clip(),t.endPath()}},setFillAndStrokeStyleToContext:function(t,r,n){var i=t.ctx,a=t.current;switch(r){case e.COLORED:var s=this.ctx;i.fillStyle=s.fillStyle,i.strokeStyle=s.strokeStyle,a.fillColor=s.fillStyle,a.strokeColor=s.strokeStyle;break;case e.UNCOLORED:var c=o.Util.makeCssRgb(n[0],n[1],n[2]);i.fillStyle=c,i.strokeStyle=c,a.fillColor=c,a.strokeColor=c;break;default:throw new o.FormatError("Unsupported paint type: ".concat(r))}},getPattern:function(t,e){t=this.ctx,t.setTransform.apply(t,this.baseTransform),t.transform.apply(t,this.matrix);var r=this.createPatternCanvas(e);return t.createPattern(r,"repeat")}},t}();e.TilingPattern=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalWorkerOptions=void 0;var n=Object.create(null);e.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise(function(i,o){function a(t){n(c,i,o,a,s,"next",t)}function s(t){n(c,i,o,a,s,"throw",t)}var c=t.apply(e,r);a(void 0)})}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),t}function c(t){"@babel/helpers - typeof";return(c="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})(t)}function u(t){if("object"!==c(t)||null===t)return t;switch(t.name){case"AbortException":return new h.AbortException(t.message);case"MissingPDFException":return new h.MissingPDFException(t.message);case"UnexpectedResponseException":return new h.UnexpectedResponseException(t.message,t.status);case"UnknownErrorException":return new h.UnknownErrorException(t.message,t.details);default:return new h.UnknownErrorException(t.message,t.toString())}}Object.defineProperty(e,"__esModule",{value:!0}),e.MessageHandler=void 0;var l=function(t){return t&&t.__esModule?t:{default:t}}(r(2)),h=r(5),f={UNKNOWN:0,DATA:1,ERROR:2},d={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8},p=function(){function t(e,r,n){var i=this;o(this,t),this.sourceName=e,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(t){var e=t.data;if(e.targetName===i.sourceName){if(e.stream)return void i._processStreamMessage(e);if(e.callback){var r=e.callbackId,o=i.callbackCapabilities[r];if(!o)throw new Error("Cannot resolve callback ".concat(r));if(delete i.callbackCapabilities[r],e.callback===f.DATA)o.resolve(e.data);else{if(e.callback!==f.ERROR)throw new Error("Unexpected callback case");o.reject(u(e.reason))}}else{var a=i.actionHandler[e.action];if(!a)throw new Error("Unknown action from worker: ".concat(e.action));if(e.callbackId){var s=i.sourceName,c=e.sourceName;return void new Promise(function(t){t(a(e.data))}).then(function(t){n.postMessage({sourceName:s,targetName:c,callback:f.DATA,callbackId:e.callbackId,data:t})},function(t){n.postMessage({sourceName:s,targetName:c,callback:f.ERROR,callbackId:e.callbackId,reason:u(t)})})}if(e.streamId)return void i._createStreamSink(e);a(e.data)}}},n.addEventListener("message",this._onComObjOnMessage)}return s(t,[{key:"on",value:function(t,e){var r=this.actionHandler;if(r[t])throw new Error('There is already an actionName called "'.concat(t,'"'));r[t]=e}},{key:"send",value:function(t,e,r){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:e},r)}},{key:"sendWithPromise",value:function(t,e,r){var n=this.callbackId++,i=(0,h.createPromiseCapability)();this.callbackCapabilities[n]=i;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:n,data:e},r)}catch(t){i.reject(t)}return i.promise}},{key:"sendWithStream",value:function(t,e,r,n){var i=this,o=this.streamId++,a=this.sourceName,s=this.targetName,c=this.comObj;return new ReadableStream({start:function(r){var c=(0,h.createPromiseCapability)();return i.streamControllers[o]={controller:r,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},i._postMessage({sourceName:a,targetName:s,action:t,streamId:o,data:e,desiredSize:r.desiredSize},n),c.promise},pull:function(t){var e=(0,h.createPromiseCapability)();return i.streamControllers[o].pullCall=e,c.postMessage({sourceName:a,targetName:s,stream:d.PULL,streamId:o,desiredSize:t.desiredSize}),e.promise},cancel:function(t){(0,h.assert)(t instanceof Error,"cancel must have a valid reason");var e=(0,h.createPromiseCapability)();return i.streamControllers[o].cancelCall=e,i.streamControllers[o].isClosed=!0,c.postMessage({sourceName:a,targetName:s,stream:d.CANCEL,streamId:o,reason:u(t)}),e.promise}},r)}},{key:"_createStreamSink",value:function(t){var e=this,r=this.actionHandler[t.action],n=t.streamId,i=this.sourceName,o=t.sourceName,a=this.comObj,s={enqueue:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var s=this.desiredSize;this.desiredSize-=r,s>0&&this.desiredSize<=0&&(this.sinkCapability=(0,h.createPromiseCapability)(),this.ready=this.sinkCapability.promise),e._postMessage({sourceName:i,targetName:o,stream:d.ENQUEUE,streamId:n,chunk:t},a)}},close:function(){this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:i,targetName:o,stream:d.CLOSE,streamId:n}),delete e.streamSinks[n])},error:function(t){(0,h.assert)(t instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:i,targetName:o,stream:d.ERROR,streamId:n,reason:u(t)}))},sinkCapability:(0,h.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};s.sinkCapability.resolve(),s.ready=s.sinkCapability.promise,this.streamSinks[n]=s,new Promise(function(e){e(r(t.data,s))}).then(function(){a.postMessage({sourceName:i,targetName:o,stream:d.START_COMPLETE,streamId:n,success:!0})},function(t){a.postMessage({sourceName:i,targetName:o,stream:d.START_COMPLETE,streamId:n,reason:u(t)})})}},{key:"_processStreamMessage",value:function(t){var e=t.streamId,r=this.sourceName,n=t.sourceName,i=this.comObj;switch(t.stream){case d.START_COMPLETE:t.success?this.streamControllers[e].startCall.resolve():this.streamControllers[e].startCall.reject(u(t.reason));break;case d.PULL_COMPLETE:t.success?this.streamControllers[e].pullCall.resolve():this.streamControllers[e].pullCall.reject(u(t.reason));break;case d.PULL:if(!this.streamSinks[e]){i.postMessage({sourceName:r,targetName:n,stream:d.PULL_COMPLETE,streamId:e,success:!0});break}this.streamSinks[e].desiredSize<=0&&t.desiredSize>0&&this.streamSinks[e].sinkCapability.resolve(),this.streamSinks[e].desiredSize=t.desiredSize;var o=this.streamSinks[t.streamId].onPull;new Promise(function(t){t(o&&o())}).then(function(){i.postMessage({sourceName:r,targetName:n,stream:d.PULL_COMPLETE,streamId:e,success:!0})},function(t){i.postMessage({sourceName:r,targetName:n,stream:d.PULL_COMPLETE,streamId:e,reason:u(t)})});break;case d.ENQUEUE:if((0,h.assert)(this.streamControllers[e],"enqueue should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].controller.enqueue(t.chunk);break;case d.CLOSE:if((0,h.assert)(this.streamControllers[e],"close should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].isClosed=!0,this.streamControllers[e].controller.close(),this._deleteStreamController(e);break;case d.ERROR:(0,h.assert)(this.streamControllers[e],"error should have stream controller"),this.streamControllers[e].controller.error(u(t.reason)),this._deleteStreamController(e);break;case d.CANCEL_COMPLETE:t.success?this.streamControllers[e].cancelCall.resolve():this.streamControllers[e].cancelCall.reject(u(t.reason)),this._deleteStreamController(e);break;case d.CANCEL:if(!this.streamSinks[e])break;var a=this.streamSinks[t.streamId].onCancel;new Promise(function(e){e(a&&a(u(t.reason)))}).then(function(){i.postMessage({sourceName:r,targetName:n,stream:d.CANCEL_COMPLETE,streamId:e,success:!0})},function(t){i.postMessage({sourceName:r,targetName:n,stream:d.CANCEL_COMPLETE,streamId:e,reason:u(t)})}),this.streamSinks[e].sinkCapability.reject(u(t.reason)),this.streamSinks[e].isCancelled=!0,delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){function t(t){return e.apply(this,arguments)}var e=i(l.default.mark(function t(e){return l.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.allSettled([this.streamControllers[e].startCall,this.streamControllers[e].pullCall,this.streamControllers[e].cancelCall].map(function(t){return t&&t.promise}));case 2:delete this.streamControllers[e];case 3:case"end":return t.stop()}},t,this)}));return t}()},{key:"_postMessage",value:function(t,e){e&&this.postMessageTransfers?this.comObj.postMessage(t,e):this.comObj.postMessage(t)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),t}();e.MessageHandler=p},function(t,e,r){"use strict";function n(t,e){return a(t)||o(t,e)||c(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function a(t){if(Array.isArray(t))return t}function s(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=c(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function c(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e,r){return e&&h(t.prototype,e),r&&h(t,r),t}Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=void 0;var d=r(5),p=r(206),v=function(){function t(e){l(this,t),(0,d.assert)("string"==typeof e,"Metadata: input is not a string"),e=this._repair(e);var r=new p.SimpleXMLParser,n=r.parseFromString(e);this._metadataMap=new Map,n&&this._parse(n)}return f(t,[{key:"_repair",value:function(t){return t.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(t,e){for(var r=e.replace(/\\([0-3])([0-7])([0-7])/g,function(t,e,r,n){return String.fromCharCode(64*e+8*r+1*n)}).replace(/&(amp|apos|gt|lt|quot);/g,function(t,e){switch(e){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(e," isn't defined."))}),n="",i=0,o=r.length;i<o;i+=2){var a=256*r.charCodeAt(i)+r.charCodeAt(i+1);n+=a>=32&&a<127&&60!==a&&62!==a&&38!==a?String.fromCharCode(a):"&#x"+(65536+a).toString(16).substring(1)+";"}return">"+n})}},{key:"_parse",value:function(t){var e=t.documentElement;if("rdf:rdf"!==e.nodeName.toLowerCase())for(e=e.firstChild;e&&"rdf:rdf"!==e.nodeName.toLowerCase();)e=e.nextSibling;var r=e?e.nodeName.toLowerCase():null;if(e&&"rdf:rdf"===r&&e.hasChildNodes())for(var n=e.childNodes,i=0,o=n.length;i<o;i++){var a=n[i];if("rdf:description"===a.nodeName.toLowerCase())for(var s=0,c=a.childNodes.length;s<c;s++)if("#text"!==a.childNodes[s].nodeName.toLowerCase()){var u=a.childNodes[s],l=u.nodeName.toLowerCase();this._metadataMap.set(l,u.textContent.trim())}}}},{key:"get",value:function(t){return this._metadataMap.has(t)?this._metadataMap.get(t):null}},{key:"getAll",value:function(){var t,e=Object.create(null),r=s(this._metadataMap);try{for(r.s();!(t=r.n()).done;){var i=n(t.value,2),o=i[0],a=i[1];e[o]=a}}catch(t){r.e(t)}finally{r.f()}return e}},{key:"has",value:function(t){return this._metadataMap.has(t)}}]),t}();e.Metadata=v},function(t,e,r){"use strict";function n(t){"@babel/helpers - typeof";return(n="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})(t)}function i(t,e){return u(t)||c(t,e)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function u(t){if(Array.isArray(t))return t}function l(t,e,r){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=h(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(r):i.value}})(t,e,r||t)}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=g();return function(){var r,n=y(t);if(e){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}function v(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?m(t):e}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function w(t,e,r){return e&&_(t.prototype,e),r&&_(t,r),t}function S(t,e){var r=t[e];return" "===r||"\n"===r||"\r"===r||"\t"===r}function A(t){for(var e=0,r=t.length;e<r;e++)if(!S(t,e))return!1;return!0}Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleXMLParser=void 0;var x={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10},T=function(){function t(){b(this,t)}return w(t,[{key:"_resolveEntities",value:function(t){var e=this;return t.replace(/&([^;]+);/g,function(t,r){if("#x"===r.substring(0,2))return String.fromCharCode(parseInt(r.substring(2),16));if("#"===r.substring(0,1))return String.fromCharCode(parseInt(r.substring(1),10));switch(r){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return e.onResolveEntity(r)})}},{key:"_parseContent",value:function(t,e){function r(){for(;i<t.length&&S(t,i);)++i}for(var n=[],i=e;i<t.length&&!S(t,i)&&">"!==t[i]&&"/"!==t[i];)++i;var o=t.substring(e,i);for(r();i<t.length&&">"!==t[i]&&"/"!==t[i]&&"?"!==t[i];){r();for(var a="",s="";i<t.length&&!S(t,i)&&"="!==t[i];)a+=t[i],++i;if(r(),"="!==t[i])return null;++i,r();var c=t[i];if('"'!==c&&"'"!==c)return null;var u=t.indexOf(c,++i);if(u<0)return null;s=t.substring(i,u),n.push({name:a,value:this._resolveEntities(s)}),i=u+1,r()}return{name:o,attributes:n,parsed:i-e}}},{key:"_parseProcessingInstruction",value:function(t,e){for(var r=e;r<t.length&&!S(t,r)&&">"!==t[r]&&"/"!==t[r];)++r;var n=t.substring(e,r);!function(){for(;r<t.length&&S(t,r);)++r}();for(var i=r;r<t.length&&("?"!==t[r]||">"!==t[r+1]);)++r;return{name:n,value:t.substring(i,r),parsed:r-e}}},{key:"parseXml",value:function(t){for(var e=0;e<t.length;){var r=t[e],n=e;if("<"===r){++n;var i=t[n],o=void 0;switch(i){case"/":if(++n,(o=t.indexOf(">",n))<0)return void this.onError(x.UnterminatedElement);this.onEndElement(t.substring(n,o)),n=o+1;break;case"?":++n;var a=this._parseProcessingInstruction(t,n);if("?>"!==t.substring(n+a.parsed,n+a.parsed+2))return void this.onError(x.UnterminatedXmlDeclaration);this.onPi(a.name,a.value),n+=a.parsed+2;break;case"!":if("--"===t.substring(n+1,n+3)){if((o=t.indexOf("--\x3e",n+3))<0)return void this.onError(x.UnterminatedComment);this.onComment(t.substring(n+3,o)),n=o+3}else if("[CDATA["===t.substring(n+1,n+8)){if((o=t.indexOf("]]>",n+8))<0)return void this.onError(x.UnterminatedCdat);this.onCdata(t.substring(n+8,o)),n=o+3}else{if("DOCTYPE"!==t.substring(n+1,n+8))return void this.onError(x.MalformedElement);var s=t.indexOf("[",n+8),c=!1;if((o=t.indexOf(">",n+8))<0)return void this.onError(x.UnterminatedDoctypeDeclaration);if(s>0&&o>s){if((o=t.indexOf("]>",n+8))<0)return void this.onError(x.UnterminatedDoctypeDeclaration);c=!0}var u=t.substring(n+8,o+(c?1:0));this.onDoctype(u),n=o+(c?2:1)}break;default:var l=this._parseContent(t,n);if(null===l)return void this.onError(x.MalformedElement);var h=!1;if("/>"===t.substring(n+l.parsed,n+l.parsed+2))h=!0;else if(">"!==t.substring(n+l.parsed,n+l.parsed+1))return void this.onError(x.UnterminatedElement);this.onBeginElement(l.name,l.attributes,h),n+=l.parsed+(h?2:1)}}else{for(;n<t.length&&"<"!==t[n];)n++;var f=t.substring(e,n);this.onText(this._resolveEntities(f))}e=n}}},{key:"onResolveEntity",value:function(t){return"&".concat(t,";")}},{key:"onPi",value:function(t,e){}},{key:"onComment",value:function(t){}},{key:"onCdata",value:function(t){}},{key:"onDoctype",value:function(t){}},{key:"onText",value:function(t){}},{key:"onBeginElement",value:function(t,e,r){}},{key:"onEndElement",value:function(t){}},{key:"onError",value:function(t){}}]),t}(),k=function(){function t(e,r){b(this,t),this.nodeName=e,this.nodeValue=r,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return w(t,[{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var t=this.parentNode.childNodes;if(t){var e=t.indexOf(this);if(-1!==e)return t[e+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map(function(t){return t.textContent}).join(""):this.nodeValue||""}}]),t}(),P=function(t){function e(){var t;return b(this,e),t=r.call(this),t._currentFragment=null,t._stack=null,t._errorCode=x.NoError,t}f(e,t);var r=p(e);return w(e,[{key:"parseFromString",value:function(t){if(this._currentFragment=[],this._stack=[],this._errorCode=x.NoError,this.parseXml(t),this._errorCode===x.NoError){var e=i(this._currentFragment,1),r=e[0];if(r)return{documentElement:r}}}},{key:"onResolveEntity",value:function(t){switch(t){case"apos":return"'"}return l(y(e.prototype),"onResolveEntity",this).call(this,t)}},{key:"onText",value:function(t){if(!A(t)){var e=new k("#text",t);this._currentFragment.push(e)}}},{key:"onCdata",value:function(t){var e=new k("#text",t);this._currentFragment.push(e)}},{key:"onBeginElement",value:function(t,e,r){var n=new k(t);n.childNodes=[],this._currentFragment.push(n),r||(this._stack.push(this._currentFragment),this._currentFragment=n.childNodes)}},{key:"onEndElement",value:function(t){this._currentFragment=this._stack.pop()||[];var e=this._currentFragment[this._currentFragment.length-1];if(e)for(var r=0,n=e.childNodes.length;r<n;r++)e.childNodes[r].parentNode=e}},{key:"onError",value:function(t){this._errorCode=t}}]),e}(T);e.SimpleXMLParser=P},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise(function(i,o){function a(t){n(c,i,o,a,s,"next",t)}function s(t){n(c,i,o,a,s,"throw",t)}var c=t.apply(e,r);a(void 0)})}}function o(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=a(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){c=!0,o=t},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw o}}}}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),t}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFDataTransportStream=void 0;var h=function(t){return t&&t.__esModule?t:{default:t}}(r(2)),f=r(5),d=function(){function t(e,r){var n=this;c(this,t),(0,f.assert)(r,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=e.progressiveDone||!1;var i=e.initialData;if(i&&i.length>0){var o=new Uint8Array(i).buffer;this._queuedChunks.push(o)}this._pdfDataRangeTransport=r,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(function(t,e){n._onReceiveData({begin:t,chunk:e})}),this._pdfDataRangeTransport.addProgressListener(function(t,e){n._onProgress({loaded:t,total:e})}),this._pdfDataRangeTransport.addProgressiveReadListener(function(t){n._onReceiveData({chunk:t})}),this._pdfDataRangeTransport.addProgressiveDoneListener(function(){n._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}return l(t,[{key:"_onReceiveData",value:function(t){var e=new Uint8Array(t.chunk).buffer;if(void 0===t.begin)this._fullRequestReader?this._fullRequestReader._enqueue(e):this._queuedChunks.push(e);else{var r=this._rangeReaders.some(function(r){return r._begin===t.begin&&(r._enqueue(e),!0)});(0,f.assert)(r,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_onProgress",value:function(t){if(void 0===t.total){var e=this._rangeReaders[0];e&&e.onProgress&&e.onProgress({loaded:t.loaded})}else{var r=this._fullRequestReader;r&&r.onProgress&&r.onProgress({loaded:t.loaded,total:t.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(t){var e=this._rangeReaders.indexOf(t);e>=0&&this._rangeReaders.splice(e,1)}},{key:"getFullReader",value:function(){(0,f.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var t=this._queuedChunks;return this._queuedChunks=null,new p(this,t,this._progressiveDone)}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var r=new v(this,t,e);return this._pdfDataRangeTransport.requestDataRange(t,e),this._rangeReaders.push(r),r}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeReaders.slice(0).forEach(function(e){e.cancel(t)}),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFDataTransportStream=d;var p=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];c(this,t),this._stream=e,this._done=n||!1,this._filename=null,this._queuedChunks=r||[],this._loaded=0;var i,a=o(this._queuedChunks);try{for(a.s();!(i=a.n()).done;){var s=i.value;this._loaded+=s.byteLength}}catch(t){a.e(t)}finally{a.f()}this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}return l(t,[{key:"_enqueue",value:function(t){if(!this._done){if(this._requests.length>0){this._requests.shift().resolve({value:t,done:!1})}else this._queuedChunks.push(t);this._loaded+=t.byteLength}}},{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(h.default.mark(function t(){var e,r;return h.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this._queuedChunks.length>0)){t.next=3;break}return e=this._queuedChunks.shift(),t.abrupt("return",{value:e,done:!1});case 3:if(!this._done){t.next=5;break}return t.abrupt("return",{value:void 0,done:!0});case 5:return r=(0,f.createPromiseCapability)(),this._requests.push(r),t.abrupt("return",r.promise);case 8:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]),t}(),v=function(){function t(e,r,n){c(this,t),this._stream=e,this._begin=r,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return l(t,[{key:"_enqueue",value:function(t){if(!this._done){if(0===this._requests.length)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1}),this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[]}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(h.default.mark(function t(){var e,r;return h.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._queuedChunk){t.next=4;break}return e=this._queuedChunk,this._queuedChunk=null,t.abrupt("return",{value:e,done:!1});case 4:if(!this._done){t.next=6;break}return t.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,f.createPromiseCapability)(),this._requests.push(r),t.abrupt("return",r.promise);case 9:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),t}()},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),t}Object.defineProperty(e,"__esModule",{value:!0}),e.WebGLContext=void 0;var a=r(5),s=function(){function t(e){var r=e.enable,i=void 0!==r&&r;n(this,t),this._enabled=!0===i}return o(t,[{key:"composeSMask",value:function(t){var e=t.layer,r=t.mask,n=t.properties;return c.composeSMask(e,r,n)}},{key:"drawFigures",value:function(t){var e=t.width,r=t.height,n=t.backgroundColor,i=t.figures,o=t.context;return c.drawFigures(e,r,n,i,o)}},{key:"clear",value:function(){c.cleanup()}},{key:"isEnabled",get:function(){var t=this._enabled;return t&&(t=c.tryInitGL()),(0,a.shadow)(this,"isEnabled",t)}}]),t}();e.WebGLContext=s;var c=function(){function t(t,e,r){var n=t.createShader(r);if(t.shaderSource(n,e),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS)){var i=t.getShaderInfoLog(n);throw new Error("Error during shader compilation: "+i)}return n}function e(e,r){return t(e,r,e.VERTEX_SHADER)}function r(e,r){return t(e,r,e.FRAGMENT_SHADER)}function n(t,e){for(var r=t.createProgram(),n=0,i=e.length;n<i;++n)t.attachShader(r,e[n]);if(t.linkProgram(r),!t.getProgramParameter(r,t.LINK_STATUS)){var o=t.getProgramInfoLog(r);throw new Error("Error during program linking: "+o)}return r}function i(t,e,r){t.activeTexture(r);var n=t.createTexture();return t.bindTexture(t.TEXTURE_2D,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),n}function o(){l||(h=document.createElement("canvas"),l=h.getContext("webgl",{premultipliedalpha:!1}))}function a(){var t,i;o(),t=h,h=null,i=l,l=null;var a=e(i,f),s=r(i,d),c=n(i,[a,s]);i.useProgram(c);var u={};u.gl=i,u.canvas=t,u.resolutionLocation=i.getUniformLocation(c,"u_resolution"),u.positionLocation=i.getAttribLocation(c,"a_position"),u.backdropLocation=i.getUniformLocation(c,"u_backdrop"),u.subtypeLocation=i.getUniformLocation(c,"u_subtype");var v=i.getAttribLocation(c,"a_texCoord"),m=i.getUniformLocation(c,"u_image"),g=i.getUniformLocation(c,"u_mask"),y=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,y),i.bufferData(i.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),i.STATIC_DRAW),i.enableVertexAttribArray(v),i.vertexAttribPointer(v,2,i.FLOAT,!1,0,0),i.uniform1i(m,0),i.uniform1i(g,1),p=u}function s(t,e,r){var n=t.width,o=t.height;p||a();var s=p,c=s.canvas,u=s.gl;c.width=n,c.height=o,u.viewport(0,0,u.drawingBufferWidth,u.drawingBufferHeight),u.uniform2f(s.resolutionLocation,n,o),r.backdrop?u.uniform4f(s.resolutionLocation,r.backdrop[0],r.backdrop[1],r.backdrop[2],1):u.uniform4f(s.resolutionLocation,0,0,0,0),u.uniform1i(s.subtypeLocation,"Luminosity"===r.subtype?1:0);var l=i(u,t,u.TEXTURE0),h=i(u,e,u.TEXTURE1),f=u.createBuffer();return u.bindBuffer(u.ARRAY_BUFFER,f),u.bufferData(u.ARRAY_BUFFER,new Float32Array([0,0,n,0,0,o,0,o,n,0,n,o]),u.STATIC_DRAW),u.enableVertexAttribArray(s.positionLocation),u.vertexAttribPointer(s.positionLocation,2,u.FLOAT,!1,0,0),u.clearColor(0,0,0,0),u.enable(u.BLEND),u.blendFunc(u.ONE,u.ONE_MINUS_SRC_ALPHA),u.clear(u.COLOR_BUFFER_BIT),u.drawArrays(u.TRIANGLES,0,6),u.flush(),u.deleteTexture(l),u.deleteTexture(h),u.deleteBuffer(f),c}function c(){var t,i;o(),t=h,h=null,i=l,l=null;var a=e(i,v),s=r(i,m),c=n(i,[a,s]);i.useProgram(c);var u={};u.gl=i,u.canvas=t,u.resolutionLocation=i.getUniformLocation(c,"u_resolution"),u.scaleLocation=i.getUniformLocation(c,"u_scale"),u.offsetLocation=i.getUniformLocation(c,"u_offset"),u.positionLocation=i.getAttribLocation(c,"a_position"),u.colorLocation=i.getAttribLocation(c,"a_color"),g=u}function u(t,e,r,n,i){g||c();var o=g,a=o.canvas,s=o.gl;a.width=t,a.height=e,s.viewport(0,0,s.drawingBufferWidth,s.drawingBufferHeight),s.uniform2f(o.resolutionLocation,t,e);var u,l,h,f=0;for(u=0,l=n.length;u<l;u++)switch(n[u].type){case"lattice":h=n[u].coords.length/n[u].verticesPerRow|0,f+=(h-1)*(n[u].verticesPerRow-1)*6;break;case"triangles":f+=n[u].coords.length}var d=new Float32Array(2*f),p=new Uint8Array(3*f),v=i.coords,m=i.colors,y=0,b=0;for(u=0,l=n.length;u<l;u++){var _=n[u],w=_.coords,S=_.colors;switch(_.type){case"lattice":var A=_.verticesPerRow;h=w.length/A|0;for(var x=1;x<h;x++)for(var T=x*A+1,k=1;k<A;k++,T++)d[y]=v[w[T-A-1]],d[y+1]=v[w[T-A-1]+1],d[y+2]=v[w[T-A]],d[y+3]=v[w[T-A]+1],d[y+4]=v[w[T-1]],d[y+5]=v[w[T-1]+1],p[b]=m[S[T-A-1]],p[b+1]=m[S[T-A-1]+1],p[b+2]=m[S[T-A-1]+2],p[b+3]=m[S[T-A]],p[b+4]=m[S[T-A]+1],p[b+5]=m[S[T-A]+2],p[b+6]=m[S[T-1]],p[b+7]=m[S[T-1]+1],p[b+8]=m[S[T-1]+2],d[y+6]=d[y+2],d[y+7]=d[y+3],d[y+8]=d[y+4],d[y+9]=d[y+5],d[y+10]=v[w[T]],d[y+11]=v[w[T]+1],p[b+9]=p[b+3],p[b+10]=p[b+4],p[b+11]=p[b+5],p[b+12]=p[b+6],p[b+13]=p[b+7],p[b+14]=p[b+8],p[b+15]=m[S[T]],p[b+16]=m[S[T]+1],p[b+17]=m[S[T]+2],y+=12,b+=18;break;case"triangles":for(var P=0,C=w.length;P<C;P++)d[y]=v[w[P]],d[y+1]=v[w[P]+1],p[b]=m[S[P]],p[b+1]=m[S[P]+1],p[b+2]=m[S[P]+2],y+=2,b+=3}}r?s.clearColor(r[0]/255,r[1]/255,r[2]/255,1):s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT);var R=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,R),s.bufferData(s.ARRAY_BUFFER,d,s.STATIC_DRAW),s.enableVertexAttribArray(o.positionLocation),s.vertexAttribPointer(o.positionLocation,2,s.FLOAT,!1,0,0);var E=s.createBuffer();return s.bindBuffer(s.ARRAY_BUFFER,E),s.bufferData(s.ARRAY_BUFFER,p,s.STATIC_DRAW),s.enableVertexAttribArray(o.colorLocation),s.vertexAttribPointer(o.colorLocation,3,s.UNSIGNED_BYTE,!1,0,0),s.uniform2f(o.scaleLocation,i.scaleX,i.scaleY),s.uniform2f(o.offsetLocation,i.offsetX,i.offsetY),s.drawArrays(s.TRIANGLES,0,f),s.flush(),s.deleteBuffer(R),s.deleteBuffer(E),a}var l,h,f=" attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } ",d=" precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ",p=null,v=" attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } ",m=" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",g=null;return{tryInitGL:function(){try{return o(),!!l}catch(t){}return!1},composeSMask:s,drawFigures:u,cleanup:function(){p&&p.canvas&&(p.canvas.width=0,p.canvas.height=0),g&&g.canvas&&(g.canvas.width=0,g.canvas.height=0),p=null,g=null}}}()},function(t,e,r){"use strict";function n(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=i(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e,r){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=s(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(r):i.value}})(t,e,r||t)}function s(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}function c(t){"@babel/helpers - typeof";return(c="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})(t)}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=p();return function(){var r,n=v(t);if(e){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return f(this,r)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function y(t,e,r){return e&&g(t.prototype,e),r&&g(t,r),t}Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationLayer=void 0;var b=r(1),_=r(5),w=function(){function t(){m(this,t)}return y(t,null,[{key:"create",value:function(t){switch(t.data.annotationType){case _.AnnotationType.LINK:return new A(t);case _.AnnotationType.TEXT:return new x(t);case _.AnnotationType.WIDGET:switch(t.data.fieldType){case"Tx":return new k(t);case"Btn":return t.data.radioButton?new C(t):t.data.checkBox?new P(t):new R(t);case"Ch":return new E(t)}return new T(t);case _.AnnotationType.POPUP:return new O(t);case _.AnnotationType.FREETEXT:return new I(t);case _.AnnotationType.LINE:return new M(t);case _.AnnotationType.SQUARE:return new F(t);case _.AnnotationType.CIRCLE:return new D(t);case _.AnnotationType.POLYLINE:return new j(t);case _.AnnotationType.CARET:return new U(t);case _.AnnotationType.INK:return new B(t);case _.AnnotationType.POLYGON:return new N(t);case _.AnnotationType.HIGHLIGHT:return new W(t);case _.AnnotationType.UNDERLINE:return new q(t);case _.AnnotationType.SQUIGGLY:return new Y(t);case _.AnnotationType.STRIKEOUT:return new z(t);case _.AnnotationType.STAMP:return new X(t);case _.AnnotationType.FILEATTACHMENT:return new H(t);default:return new S(t)}}}]),t}(),S=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];m(this,t),this.isRenderable=r,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderInteractiveForms=e.renderInteractiveForms,this.svgFactory=e.svgFactory,r&&(this.container=this._createContainer(n))}return y(t,[{key:"_createContainer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.data,r=this.page,n=this.viewport,i=document.createElement("section"),o=e.rect[2]-e.rect[0],a=e.rect[3]-e.rect[1];i.setAttribute("data-annotation-id",e.id);var s=_.Util.normalizeRect([e.rect[0],r.view[3]-e.rect[1]+r.view[1],e.rect[2],r.view[3]-e.rect[3]+r.view[1]]);if(i.style.transform="matrix(".concat(n.transform.join(","),")"),i.style.transformOrigin="-".concat(s[0],"px -").concat(s[1],"px"),!t&&e.borderStyle.width>0){i.style.borderWidth="".concat(e.borderStyle.width,"px"),e.borderStyle.style!==_.AnnotationBorderStyleType.UNDERLINE&&(o-=2*e.borderStyle.width,a-=2*e.borderStyle.width);var c=e.borderStyle.horizontalCornerRadius,u=e.borderStyle.verticalCornerRadius;if(c>0||u>0){var l="".concat(c,"px / ").concat(u,"px");i.style.borderRadius=l}switch(e.borderStyle.style){case _.AnnotationBorderStyleType.SOLID:i.style.borderStyle="solid";break;case _.AnnotationBorderStyleType.DASHED:i.style.borderStyle="dashed";break;case _.AnnotationBorderStyleType.BEVELED:(0,_.warn)("Unimplemented border style: beveled");break;case _.AnnotationBorderStyleType.INSET:(0,_.warn)("Unimplemented border style: inset");break;case _.AnnotationBorderStyleType.UNDERLINE:i.style.borderBottomStyle="solid"}e.color?i.style.borderColor=_.Util.makeCssRgb(0|e.color[0],0|e.color[1],0|e.color[2]):i.style.borderWidth=0}return i.style.left="".concat(s[0],"px"),i.style.top="".concat(s[1],"px"),i.style.width="".concat(o,"px"),i.style.height="".concat(a,"px"),i}},{key:"_createPopup",value:function(t,e,r){e||(e=document.createElement("div"),e.style.height=t.style.height,e.style.width=t.style.width,t.appendChild(e));var n=new L({container:t,trigger:e,color:r.color,title:r.title,modificationDate:r.modificationDate,contents:r.contents,hideWrapper:!0}),i=n.render();i.style.left=t.style.width,t.appendChild(i)}},{key:"render",value:function(){(0,_.unreachable)("Abstract method `AnnotationElement.render` called")}}]),t}(),A=function(t){function e(t){m(this,e);var n=!!(t.data.url||t.data.dest||t.data.action);return r.call(this,t,n)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="linkAnnotation";var t=this.data,e=this.linkService,r=document.createElement("a");return t.url?(0,b.addLinkAttributes)(r,{url:t.url,target:t.newWindow?b.LinkTarget.BLANK:e.externalLinkTarget,rel:e.externalLinkRel,enabled:e.externalLinkEnabled}):t.action?this._bindNamedAction(r,t.action):this._bindLink(r,t.dest),this.container.appendChild(r),this.container}},{key:"_bindLink",value:function(t,e){var r=this;t.href=this.linkService.getDestinationHash(e),t.onclick=function(){return e&&r.linkService.navigateTo(e),!1},e&&(t.className="internalLink")}},{key:"_bindNamedAction",value:function(t,e){var r=this;t.href=this.linkService.getAnchorUrl(""),t.onclick=function(){return r.linkService.executeNamedAction(e),!1},t.className="internalLink"}}]),e}(S),x=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="textAnnotation";var t=document.createElement("img");return t.style.height=this.container.style.height,t.style.width=this.container.style.width,t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.alt="[{{type}} Annotation]",t.dataset.l10nId="text_annotation_type",t.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,t,this.data),this.container.appendChild(t),this.container}}]),e}(S),T=function(t){function e(){return m(this,e),r.apply(this,arguments)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){return this.container}}]),e}(S),k=function(t){function e(t){m(this,e);var n=t.renderInteractiveForms||!t.data.hasAppearance&&!!t.data.fieldValue;return r.call(this,t,n)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){var t=["left","center","right"];this.container.className="textWidgetAnnotation";var e=null;if(this.renderInteractiveForms){if(this.data.multiLine?(e=document.createElement("textarea"),e.textContent=this.data.fieldValue):(e=document.createElement("input"),e.type="text",e.setAttribute("value",this.data.fieldValue)),e.disabled=this.data.readOnly,e.name=this.data.fieldName,null!==this.data.maxLen&&(e.maxLength=this.data.maxLen),this.data.comb){var r=this.data.rect[2]-this.data.rect[0],n=r/this.data.maxLen;e.classList.add("comb"),e.style.letterSpacing="calc(".concat(n,"px - 1ch)")}}else{e=document.createElement("div"),e.textContent=this.data.fieldValue,e.style.verticalAlign="middle",e.style.display="table-cell";var i=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(i=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(e,i)}return null!==this.data.textAlignment&&(e.style.textAlign=t[this.data.textAlignment]),this.container.appendChild(e),this.container}},{key:"_setTextStyle",value:function(t,e){var r=t.style;if(r.fontSize="".concat(this.data.fontSize,"px"),r.direction=this.data.fontDirection<0?"rtl":"ltr",e){var n="normal";e.black?n="900":e.bold&&(n="bold"),r.fontWeight=n,r.fontStyle=e.italic?"italic":"normal";var i=e.loadedName?'"'.concat(e.loadedName,'", '):"",o=e.fallbackName||"Helvetica, sans-serif";r.fontFamily=i+o}}}]),e}(T),P=function(t){function e(t){return m(this,e),r.call(this,t,t.renderInteractiveForms)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var t=document.createElement("input");return t.disabled=this.data.readOnly,t.type="checkbox",t.name=this.data.fieldName,this.data.fieldValue&&"Off"!==this.data.fieldValue&&t.setAttribute("checked",!0),this.container.appendChild(t),this.container}}]),e}(T),C=function(t){function e(t){return m(this,e),r.call(this,t,t.renderInteractiveForms)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var t=document.createElement("input");return t.disabled=this.data.readOnly,t.type="radio",t.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&t.setAttribute("checked",!0),this.container.appendChild(t),this.container}}]),e}(T),R=function(t){function e(){return m(this,e),r.apply(this,arguments)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){var t=a(v(e.prototype),"render",this).call(this);return t.className="buttonWidgetAnnotation pushButton",t}}]),e}(A),E=function(t){function e(t){return m(this,e),r.call(this,t,t.renderInteractiveForms)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var t=document.createElement("select");t.disabled=this.data.readOnly,t.name=this.data.fieldName,this.data.combo||(t.size=this.data.options.length,this.data.multiSelect&&(t.multiple=!0));var e,r=n(this.data.options);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=document.createElement("option");o.textContent=i.displayValue,o.value=i.exportValue,this.data.fieldValue.includes(i.displayValue)&&o.setAttribute("selected",!0),t.appendChild(o)}}catch(t){r.e(t)}finally{r.f()}return this.container.appendChild(t),this.container}}]),e}(T),O=function(t){function e(t){m(this,e);var n=!(!t.data.title&&!t.data.contents);return r.call(this,t,n)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){var t=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",t.includes(this.data.parentType))return this.container;var e='[data-annotation-id="'.concat(this.data.parentId,'"]'),r=this.layer.querySelector(e);if(!r)return this.container;var n=new L({container:this.container,trigger:r,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),i=parseFloat(r.style.left),o=parseFloat(r.style.width);return this.container.style.transformOrigin="-".concat(i+o,"px -").concat(r.style.top),this.container.style.left="".concat(i+o,"px"),this.container.appendChild(n.render()),this.container}}]),e}(S),L=function(){function t(e){m(this,t),this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.title=e.title,this.modificationDate=e.modificationDate,this.contents=e.contents,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}return y(t,[{key:"render",value:function(){var t=document.createElement("div");t.className="popupWrapper",this.hideElement=this.hideWrapper?t:this.container,this.hideElement.setAttribute("hidden",!0);var e=document.createElement("div");e.className="popup";var r=this.color;if(r){var n=.7*(255-r[0])+r[0],i=.7*(255-r[1])+r[1],o=.7*(255-r[2])+r[2];e.style.backgroundColor=_.Util.makeCssRgb(0|n,0|i,0|o)}var a=document.createElement("h1");a.textContent=this.title,e.appendChild(a);var s=b.PDFDateString.toDateObject(this.modificationDate);if(s){var c=document.createElement("span");c.textContent="{{date}}, {{time}}",c.dataset.l10nId="annotation_date_string",c.dataset.l10nArgs=JSON.stringify({date:s.toLocaleDateString(),time:s.toLocaleTimeString()}),e.appendChild(c)}var u=this._formatContents(this.contents);return e.appendChild(u),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),e.addEventListener("click",this._hide.bind(this,!0)),t.appendChild(e),t}},{key:"_formatContents",value:function(t){for(var e=document.createElement("p"),r=t.split(/(?:\r\n?|\n)/),n=0,i=r.length;n<i;++n){var o=r[n];e.appendChild(document.createTextNode(o)),n<i-1&&e.appendChild(document.createElement("br"))}return e}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),t}(),I=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(S),M=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="lineAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],n=this.svgFactory.create(e,r),i=this.svgFactory.createElement("svg:line");return i.setAttribute("x1",t.rect[2]-t.lineCoordinates[0]),i.setAttribute("y1",t.rect[3]-t.lineCoordinates[1]),i.setAttribute("x2",t.rect[2]-t.lineCoordinates[2]),i.setAttribute("y2",t.rect[3]-t.lineCoordinates[3]),i.setAttribute("stroke-width",t.borderStyle.width||1),i.setAttribute("stroke","transparent"),n.appendChild(i),this.container.append(n),this._createPopup(this.container,i,t),this.container}}]),e}(S),F=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="squareAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],n=this.svgFactory.create(e,r),i=t.borderStyle.width,o=this.svgFactory.createElement("svg:rect");return o.setAttribute("x",i/2),o.setAttribute("y",i/2),o.setAttribute("width",e-i),o.setAttribute("height",r-i),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),n.appendChild(o),this.container.append(n),this._createPopup(this.container,o,t),this.container}}]),e}(S),D=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="circleAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],n=this.svgFactory.create(e,r),i=t.borderStyle.width,o=this.svgFactory.createElement("svg:ellipse");return o.setAttribute("cx",e/2),o.setAttribute("cy",r/2),o.setAttribute("rx",e/2-i/2),o.setAttribute("ry",r/2-i/2),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),n.appendChild(o),this.container.append(n),this._createPopup(this.container,o,t),this.container}}]),e}(S),j=function(t){function e(t){var n;m(this,e);var i=!!(t.data.hasPopup||t.data.title||t.data.contents);return n=r.call(this,t,i,!0),n.containerClassName="polylineAnnotation",n.svgElementName="svg:polyline",n}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className=this.containerClassName;var t,e=this.data,r=e.rect[2]-e.rect[0],i=e.rect[3]-e.rect[1],o=this.svgFactory.create(r,i),a=[],s=n(e.vertices);try{for(s.s();!(t=s.n()).done;){var c=t.value,u=c.x-e.rect[0],l=e.rect[3]-c.y;a.push(u+","+l)}}catch(t){s.e(t)}finally{s.f()}a=a.join(" ");var h=this.svgFactory.createElement(this.svgElementName);return h.setAttribute("points",a),h.setAttribute("stroke-width",e.borderStyle.width||1),h.setAttribute("stroke","transparent"),h.setAttribute("fill","none"),o.appendChild(h),this.container.append(o),this._createPopup(this.container,h,e),this.container}}]),e}(S),N=function(t){function e(t){var n;return m(this,e),n=r.call(this,t),n.containerClassName="polygonAnnotation",n.svgElementName="svg:polygon",n}u(e,t);var r=h(e);return e}(j),U=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(S),B=function(t){function e(t){var n;m(this,e);var i=!!(t.data.hasPopup||t.data.title||t.data.contents);return n=r.call(this,t,i,!0),n.containerClassName="inkAnnotation",n.svgElementName="svg:polyline",n}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className=this.containerClassName;var t,e=this.data,r=e.rect[2]-e.rect[0],i=e.rect[3]-e.rect[1],o=this.svgFactory.create(r,i),a=n(e.inkLists);try{for(a.s();!(t=a.n()).done;){var s,c=t.value,u=[],l=n(c);try{for(l.s();!(s=l.n()).done;){var h=s.value,f=h.x-e.rect[0],d=e.rect[3]-h.y;u.push("".concat(f,",").concat(d))}}catch(t){l.e(t)}finally{l.f()}u=u.join(" ");var p=this.svgFactory.createElement(this.svgElementName);p.setAttribute("points",u),p.setAttribute("stroke-width",e.borderStyle.width||1),p.setAttribute("stroke","transparent"),p.setAttribute("fill","none"),this._createPopup(this.container,p,e),o.appendChild(p)}}catch(t){a.e(t)}finally{a.f()}return this.container.append(o),this.container}}]),e}(S),W=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(S),q=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(S),Y=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(S),z=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(S),X=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(S),H=function(t){function e(t){var n;m(this,e),n=r.call(this,t,!0);var i=n.data.file,o=i.filename,a=i.content;return n.filename=(0,b.getFilenameFromUrl)(o),n.content=a,n.linkService.eventBus&&n.linkService.eventBus.dispatch("fileattachmentannotation",{source:d(n),id:(0,_.stringToPDFString)(o),filename:o,content:a}),n}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var t=document.createElement("div");return t.style.height=this.container.style.height,t.style.width=this.container.style.width,t.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,t,this.data),this.container.appendChild(t),this.container}},{key:"_download",value:function(){if(!this.downloadManager)return void(0,_.warn)("Download cannot be started due to unavailable download manager");this.downloadManager.downloadData(this.content,this.filename,"")}}]),e}(S),G=function(){function t(){m(this,t)}return y(t,null,[{key:"render",value:function(t){var e,r=[],i=[],o=n(t.annotations);try{for(o.s();!(e=o.n()).done;){var a=e.value;a&&(a.annotationType!==_.AnnotationType.POPUP?r.push(a):i.push(a))}}catch(t){o.e(t)}finally{o.f()}i.length&&r.push.apply(r,i);for(var s=0,c=r;s<c.length;s++){var u=c[s],l=w.create({data:u,layer:t.div,page:t.page,viewport:t.viewport,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderInteractiveForms:t.renderInteractiveForms||!1,svgFactory:new b.DOMSVGFactory});l.isRenderable&&t.div.appendChild(l.render())}}},{key:"update",value:function(t){var e,r=n(t.annotations);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=t.div.querySelector('[data-annotation-id="'.concat(i.id,'"]'));o&&(o.style.transform="matrix(".concat(t.viewport.transform.join(","),")"))}}catch(t){r.e(t)}finally{r.f()}t.div.removeAttribute("hidden")}}]),t}();e.AnnotationLayer=G},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderTextLayer=void 0;var n=r(5),i=function(){function t(t){return!h.test(t)}function e(e,r,i){var o=document.createElement("span"),a={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(e._textDivs.push(o),t(r.str))return a.isWhitespace=!0,void e._textDivProperties.set(o,a);var s=n.Util.transform(e._viewport.transform,r.transform),c=Math.atan2(s[1],s[0]),u=i[r.fontName];u.vertical&&(c+=Math.PI/2);var l=Math.sqrt(s[2]*s[2]+s[3]*s[3]),h=l;u.ascent?h=u.ascent*h:u.descent&&(h=(1+u.descent)*h);var f,d;0===c?(f=s[4],d=s[5]-h):(f=s[4]+h*Math.sin(c),d=s[5]-h*Math.cos(c)),o.style.left="".concat(f,"px"),o.style.top="".concat(d,"px"),o.style.fontSize="".concat(l,"px"),o.style.fontFamily=u.fontFamily,o.textContent=r.str,e._fontInspectorEnabled&&(o.dataset.fontName=r.fontName),0!==c&&(a.angle=c*(180/Math.PI));var p=!1;if(r.str.length>1)p=!0;else if(r.transform[0]!==r.transform[3]){var v=Math.abs(r.transform[0]),m=Math.abs(r.transform[3]);v!==m&&Math.max(v,m)/Math.min(v,m)>1.5&&(p=!0)}if(p&&(u.vertical?a.canvasWidth=r.height*e._viewport.scale:a.canvasWidth=r.width*e._viewport.scale),e._textDivProperties.set(o,a),e._textContentStream&&e._layoutText(o),e._enhanceTextSelection){var g=1,y=0;0!==c&&(g=Math.cos(c),y=Math.sin(c));var b,_,w=(u.vertical?r.height:r.width)*e._viewport.scale,S=l;0!==c?(b=[g,y,-y,g,f,d],_=n.Util.getAxialAlignedBoundingBox([0,0,w,S],b)):_=[f,d,f+w,d+S],e._bounds.push({left:_[0],top:_[1],right:_[2],bottom:_[3],div:o,size:[w,S],m:b})}}function r(t){if(!t._canceled){var e=t._textDivs,r=t._capability,n=e.length;if(n>l)return t._renderingDone=!0,void r.resolve();if(!t._textContentStream)for(var i=0;i<n;i++)t._layoutText(e[i]);t._renderingDone=!0,r.resolve()}}function i(t,e,r){for(var n=0,i=0;i<r;i++){var o=t[e++];o>0&&(n=n?Math.min(o,n):o)}return n}function o(t){for(var e=t._bounds,r=t._viewport,o=a(r.width,r.height,e),s=0;s<o.length;s++){var c=e[s].div,u=t._textDivProperties.get(c);if(0!==u.angle){var l=o[s],h=e[s],f=h.m,d=f[0],p=f[1],v=[[0,0],[0,h.size[1]],[h.size[0],0],h.size],m=new Float64Array(64);v.forEach(function(t,e){var r=n.Util.applyTransform(t,f);m[e+0]=d&&(l.left-r[0])/d,m[e+4]=p&&(l.top-r[1])/p,m[e+8]=d&&(l.right-r[0])/d,m[e+12]=p&&(l.bottom-r[1])/p,m[e+16]=p&&(l.left-r[0])/-p,m[e+20]=d&&(l.top-r[1])/d,m[e+24]=p&&(l.right-r[0])/-p,m[e+28]=d&&(l.bottom-r[1])/d,m[e+32]=d&&(l.left-r[0])/-d,m[e+36]=p&&(l.top-r[1])/-p,m[e+40]=d&&(l.right-r[0])/-d,m[e+44]=p&&(l.bottom-r[1])/-p,m[e+48]=p&&(l.left-r[0])/p,m[e+52]=d&&(l.top-r[1])/-d,m[e+56]=p&&(l.right-r[0])/p,m[e+60]=d&&(l.bottom-r[1])/-d});var g=1+Math.min(Math.abs(d),Math.abs(p));u.paddingLeft=i(m,32,16)/g,u.paddingTop=i(m,48,16)/g,u.paddingRight=i(m,0,16)/g,u.paddingBottom=i(m,16,16)/g,t._textDivProperties.set(c,u)}else u.paddingLeft=e[s].left-o[s].left,u.paddingTop=e[s].top-o[s].top,u.paddingRight=o[s].right-e[s].right,u.paddingBottom=o[s].bottom-e[s].bottom,t._textDivProperties.set(c,u)}}function a(t,e,r){var n=r.map(function(t,e){return{x1:t.left,y1:t.top,x2:t.right,y2:t.bottom,index:e,x1New:void 0,x2New:void 0}});s(t,n);var i=new Array(r.length);return n.forEach(function(t){var e=t.index;i[e]={left:t.x1New,top:0,right:t.x2New,bottom:0}}),r.map(function(e,r){var o=i[r],a=n[r];a.x1=e.top,a.y1=t-o.right,a.x2=e.bottom,a.y2=t-o.left,a.index=r,a.x1New=void 0,a.x2New=void 0}),s(e,n),n.forEach(function(t){var e=t.index;i[e].top=t.x1New,i[e].bottom=t.x2New}),i}function s(t,e){e.sort(function(t,e){return t.x1-e.x1||t.index-e.index});var r={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},n=[{start:-1/0,end:1/0,boundary:r}];e.forEach(function(t){for(var e=0;e<n.length&&n[e].end<=t.y1;)e++;for(var r=n.length-1;r>=0&&n[r].start>=t.y2;)r--;var i,o,a,s,c=-1/0;for(a=e;a<=r;a++){i=n[a],o=i.boundary;var u;u=o.x2>t.x1?o.index>t.index?o.x1New:t.x1:void 0===o.x2New?(o.x2+t.x1)/2:o.x2New,u>c&&(c=u)}for(t.x1New=c,a=e;a<=r;a++)i=n[a],o=i.boundary,void 0===o.x2New?o.x2>t.x1?o.index>t.index&&(o.x2New=o.x2):o.x2New=c:o.x2New>c&&(o.x2New=Math.max(c,o.x2));var l=[],h=null;for(a=e;a<=r;a++){i=n[a],o=i.boundary;var f=o.x2>t.x2?o:t;h===f?l[l.length-1].end=i.end:(l.push({start:i.start,end:i.end,boundary:f}),h=f)}for(n[e].start<t.y1&&(l[0].start=t.y1,l.unshift({start:n[e].start,end:t.y1,boundary:n[e].boundary})),t.y2<n[r].end&&(l[l.length-1].end=t.y2,l.push({start:t.y2,end:n[r].end,boundary:n[r].boundary})),a=e;a<=r;a++)if(i=n[a],o=i.boundary,void 0===o.x2New){var d=!1;for(s=e-1;!d&&s>=0&&n[s].start>=o.y1;s--)d=n[s].boundary===o;for(s=r+1;!d&&s<n.length&&n[s].end<=o.y2;s++)d=n[s].boundary===o;for(s=0;!d&&s<l.length;s++)d=l[s].boundary===o;d||(o.x2New=c)}Array.prototype.splice.apply(n,[e,r-e+1].concat(l))}),n.forEach(function(e){var r=e.boundary;void 0===r.x2New&&(r.x2New=Math.max(t,r.x2))})}function c(t){var e=this,r=t.textContent,i=t.textContentStream,o=t.container,a=t.viewport,s=t.textDivs,c=t.textContentItemsStr,u=t.enhanceTextSelection;this._textContent=r,this._textContentStream=i,this._container=o,this._viewport=a,this._textDivs=s||[],this._textContentItemsStr=c||[],this._enhanceTextSelection=!!u,this._fontInspectorEnabled=!(!globalThis.FontInspector||!globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,n.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(function(){e._layoutTextCtx&&(e._layoutTextCtx.canvas.width=0,e._layoutTextCtx.canvas.height=0,e._layoutTextCtx=null)}).catch(function(){})}function u(t){var e=new c({textContent:t.textContent,textContentStream:t.textContentStream,container:t.container,viewport:t.viewport,textDivs:t.textDivs,textContentItemsStr:t.textContentItemsStr,enhanceTextSelection:t.enhanceTextSelection});return e._render(t.timeout),e}var l=1e5,h=/\S/;return c.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new n.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems:function(t,r){for(var n=0,i=t.length;n<i;n++)this._textContentItemsStr.push(t[n].str),e(this,t[n],r)},_layoutText:function(t){var e=this._textDivProperties.get(t);if(!e.isWhitespace){var r="";if(0!==e.canvasWidth){var n=t.style,i=n.fontSize,o=n.fontFamily;i===this._layoutTextLastFontSize&&o===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(i," ").concat(o),this._layoutTextLastFontSize=i,this._layoutTextLastFontFamily=o);var a=this._layoutTextCtx.measureText(t.textContent),s=a.width;s>0&&(e.scale=e.canvasWidth/s,r="scaleX(".concat(e.scale,")"))}0!==e.angle&&(r="rotate(".concat(e.angle,"deg) ").concat(r)),r.length>0&&(this._enhanceTextSelection&&(e.originalTransform=r),t.style.transform=r),this._textDivProperties.set(t,e),this._container.appendChild(t)}},_render:function(t){var e=this,i=(0,n.createPromiseCapability)(),o=Object.create(null),a=document.createElement("canvas");if(a.mozOpaque=!0,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,c=this._textContent.styles;this._processItems(s,c),i.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');this._reader=this._textContentStream.getReader(),function t(){e._reader.read().then(function(r){var n=r.value;if(r.done)return void i.resolve();Object.assign(o,n.styles),e._processItems(n.items,o),t()},i.reject)}()}i.promise.then(function(){o=null,t?e._renderTimer=setTimeout(function(){r(e),e._renderTimer=null},t):r(e)},this._capability.reject)},expandTextDivs:function(t){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(o(this),this._bounds=null);for(var e=[],r=[],n=0,i=this._textDivs.length;n<i;n++){var a=this._textDivs[n],s=this._textDivProperties.get(a);s.isWhitespace||(t?(e.length=0,r.length=0,s.originalTransform&&e.push(s.originalTransform),s.paddingTop>0?(r.push("".concat(s.paddingTop,"px")),e.push("translateY(".concat(-s.paddingTop,"px)"))):r.push(0),s.paddingRight>0?r.push("".concat(s.paddingRight/s.scale,"px")):r.push(0),s.paddingBottom>0?r.push("".concat(s.paddingBottom,"px")):r.push(0),s.paddingLeft>0?(r.push("".concat(s.paddingLeft/s.scale,"px")),e.push("translateX(".concat(-s.paddingLeft/s.scale,"px)"))):r.push(0),a.style.padding=r.join(" "),e.length&&(a.style.transform=e.join(" "))):(a.style.padding=null,a.style.transform=s.originalTransform))}}}},u}();e.renderTextLayer=i},function(t,e,r){"use strict";function n(t){return a(t)||o(t)||f(t)||i()}function i(){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 o(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function a(t){if(Array.isArray(t))return d(t)}function s(t,e){return l(t)||u(t,e)||f(t,e)||c()}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function l(t){if(Array.isArray(t))return t}function h(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=f(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function f(t,e){if(t){if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function m(t,e,r){return e&&v(t.prototype,e),r&&v(t,r),t}Object.defineProperty(e,"__esModule",{value:!0}),e.SVGGraphics=void 0;var g=r(5),y=r(1),b=r(7),_=function(){throw new Error("Not implemented: SVGGraphics")};e.SVGGraphics=_;var w=function(t){var e,r=[],n=[],i=h(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;"save"!==o.fn?"restore"===o.fn?r=n.pop():r.push(o):(r.push({fnId:92,fn:"group",items:[]}),n.push(r),r=r[r.length-1].items)}}catch(t){i.e(t)}finally{i.f()}return r},S=function(t){if(Number.isInteger(t))return t.toString();var e=t.toFixed(10),r=e.length-1;if("0"!==e[r])return e;do{r--}while("0"===e[r]);return e.substring(0,"."===e[r]?r:r+1)},A=function(t){if(0===t[4]&&0===t[5]){if(0===t[1]&&0===t[2])return 1===t[0]&&1===t[3]?"":"scale(".concat(S(t[0])," ").concat(S(t[3]),")");if(t[0]===t[3]&&t[1]===-t[2]){var e=180*Math.acos(t[0])/Math.PI;return"rotate(".concat(S(e),")")}}else if(1===t[0]&&0===t[1]&&0===t[2]&&1===t[3])return"translate(".concat(S(t[4])," ").concat(S(t[5]),")");return"matrix(".concat(S(t[0])," ").concat(S(t[1])," ").concat(S(t[2])," ").concat(S(t[3])," ").concat(S(t[4])," ")+"".concat(S(t[5]),")")},x={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},T=["butt","round","square"],k=["miter","round","bevel"],P=function(){function t(t,e,r){for(var n=-1,i=e;i<r;i++){var o=255&(n^t[i]);n=n>>>8^c[o]}return-1^n}function e(e,r,n,i){var o=i,a=r.length;n[o]=a>>24&255,n[o+1]=a>>16&255,n[o+2]=a>>8&255,n[o+3]=255&a,o+=4,n[o]=255&e.charCodeAt(0),n[o+1]=255&e.charCodeAt(1),n[o+2]=255&e.charCodeAt(2),n[o+3]=255&e.charCodeAt(3),o+=4,n.set(r,o),o+=r.length;var s=t(n,i+4,o);n[o]=s>>24&255,n[o+1]=s>>16&255,n[o+2]=s>>8&255,n[o+3]=255&s}function r(t,e,r){for(var n=1,i=0,o=e;o<r;++o)n=(n+(255&t[o]))%65521,i=(i+n)%65521;return i<<16|n}function n(t){if(!b.isNodeJS)return i(t);try{var e;e=parseInt(process.versions.node)>=8?t:Buffer.from(t);var r=__webpack_require__(336).deflateSync(e,{level:9});return r instanceof Uint8Array?r:new Uint8Array(r)}catch(t){(0,g.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+t)}return i(t)}function i(t){var e=t.length,n=Math.ceil(e/65535),i=new Uint8Array(2+e+5*n+4),o=0;i[o++]=120,i[o++]=156;for(var a=0;e>65535;)i[o++]=0,i[o++]=255,i[o++]=255,i[o++]=0,i[o++]=0,i.set(t.subarray(a,a+65535),o),o+=65535,a+=65535,e-=65535;i[o++]=1,i[o++]=255&e,i[o++]=e>>8&255,i[o++]=255&~e,i[o++]=(65535&~e)>>8&255,i.set(t.subarray(a),o),o+=t.length-a;var s=r(t,0,t.length);return i[o++]=s>>24&255,i[o++]=s>>16&255,i[o++]=s>>8&255,i[o++]=255&s,i}function o(t,r,i,o){var c,u,l,h=t.width,f=t.height,d=t.data;switch(r){case g.ImageKind.GRAYSCALE_1BPP:u=0,c=1,l=h+7>>3;break;case g.ImageKind.RGB_24BPP:u=2,c=8,l=3*h;break;case g.ImageKind.RGBA_32BPP:u=6,c=8,l=4*h;break;default:throw new Error("invalid format")}for(var p=new Uint8Array((1+l)*f),v=0,m=0,y=0;y<f;++y)p[v++]=0,p.set(d.subarray(m,m+l),v),m+=l,v+=l;if(r===g.ImageKind.GRAYSCALE_1BPP&&o){v=0;for(var b=0;b<f;b++){v++;for(var _=0;_<l;_++)p[v++]^=255}}var w=new Uint8Array([h>>24&255,h>>16&255,h>>8&255,255&h,f>>24&255,f>>16&255,f>>8&255,255&f,c,u,0,0,0]),S=n(p),A=a.length+3*s+w.length+S.length,x=new Uint8Array(A),T=0;return x.set(a,T),T+=a.length,e("IHDR",w,x,T),T+=s+w.length,e("IDATA",S,x,T),T+=s+S.length,e("IEND",new Uint8Array(0),x,T),(0,g.createObjectURL)(x,"image/png",i)}for(var a=new Uint8Array([137,80,78,71,13,10,26,10]),s=12,c=new Int32Array(256),u=0;u<256;u++){for(var l=u,h=0;h<8;h++)l=1&l?3988292384^l>>1&2147483647:l>>1&2147483647;c[u]=l}return function(t,e,r){return o(t,void 0===t.kind?g.ImageKind.GRAYSCALE_1BPP:t.kind,e,r)}}(),C=function(){function t(){p(this,t),this.fontSizeScale=1,this.fontWeight=x.fontWeight,this.fontSize=0,this.textMatrix=g.IDENTITY_MATRIX,this.fontMatrix=g.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=g.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=x.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return m(t,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(t,e){this.x=t,this.y=e}}]),t}(),R=0,E=0,O=0;e.SVGGraphics=_=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(this,t),this.svgFactory=new y.DOMSVGFactory,this.current=new C,this.transformMatrix=g.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=r,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(var i in g.OPS)this._operatorIdMapping[g.OPS[i]]=i}return m(t,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var t=this.current;this.extraStack.push(t),this.current=t.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(t){this.save(),this.executeOpTree(t),this.restore()}},{key:"loadDependencies",value:function(t){for(var e=this,r=t.fnArray,n=t.argsArray,i=0,o=r.length;i<o;i++)if(r[i]===g.OPS.dependency){var a,s=h(n[i]);try{for(s.s();!(a=s.n()).done;)!function(){var t=a.value,r=t.startsWith("g_")?e.commonObjs:e.objs,n=new Promise(function(e){r.get(t,e)});e.current.dependencies.push(n)}()}catch(t){s.e(t)}finally{s.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(t,e,r,n,i,o){var a=[t,e,r,n,i,o];this.transformMatrix=g.Util.transform(this.transformMatrix,a),this.tgrp=null}},{key:"getSVG",value:function(t,e){var r=this;this.viewport=e;var n=this._initialize(e);return this.loadDependencies(t).then(function(){return r.transformMatrix=g.IDENTITY_MATRIX,r.executeOpTree(r.convertOpList(t)),n})}},{key:"convertOpList",value:function(t){for(var e=this._operatorIdMapping,r=t.argsArray,n=t.fnArray,i=[],o=0,a=n.length;o<a;o++){var s=n[o];i.push({fnId:s,fn:e[s],args:r[o]})}return w(i)}},{key:"executeOpTree",value:function(t){var e,r=h(t);try{for(r.s();!(e=r.n()).done;){var n=e.value,i=n.fn,o=n.fnId,a=n.args;switch(0|o){case g.OPS.beginText:this.beginText();break;case g.OPS.dependency:break;case g.OPS.setLeading:this.setLeading(a);break;case g.OPS.setLeadingMoveText:this.setLeadingMoveText(a[0],a[1]);break;case g.OPS.setFont:this.setFont(a);break;case g.OPS.showText:case g.OPS.showSpacedText:this.showText(a[0]);break;case g.OPS.endText:this.endText();break;case g.OPS.moveText:this.moveText(a[0],a[1]);break;case g.OPS.setCharSpacing:this.setCharSpacing(a[0]);break;case g.OPS.setWordSpacing:this.setWordSpacing(a[0]);break;case g.OPS.setHScale:this.setHScale(a[0]);break;case g.OPS.setTextMatrix:this.setTextMatrix(a[0],a[1],a[2],a[3],a[4],a[5]);break;case g.OPS.setTextRise:this.setTextRise(a[0]);break;case g.OPS.setTextRenderingMode:this.setTextRenderingMode(a[0]);break;case g.OPS.setLineWidth:this.setLineWidth(a[0]);break;case g.OPS.setLineJoin:this.setLineJoin(a[0]);break;case g.OPS.setLineCap:this.setLineCap(a[0]);break;case g.OPS.setMiterLimit:this.setMiterLimit(a[0]);break;case g.OPS.setFillRGBColor:this.setFillRGBColor(a[0],a[1],a[2]);break;case g.OPS.setStrokeRGBColor:this.setStrokeRGBColor(a[0],a[1],a[2]);break;case g.OPS.setStrokeColorN:this.setStrokeColorN(a);break;case g.OPS.setFillColorN:this.setFillColorN(a);break;case g.OPS.shadingFill:this.shadingFill(a[0]);break;case g.OPS.setDash:this.setDash(a[0],a[1]);break;case g.OPS.setRenderingIntent:this.setRenderingIntent(a[0]);break;case g.OPS.setFlatness:this.setFlatness(a[0]);break;case g.OPS.setGState:this.setGState(a[0]);break;case g.OPS.fill:this.fill();break;case g.OPS.eoFill:this.eoFill();break;case g.OPS.stroke:this.stroke();break;case g.OPS.fillStroke:this.fillStroke();break;case g.OPS.eoFillStroke:this.eoFillStroke();break;case g.OPS.clip:this.clip("nonzero");break;case g.OPS.eoClip:this.clip("evenodd");break;case g.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case g.OPS.paintImageXObject:this.paintImageXObject(a[0]);break;case g.OPS.paintInlineImageXObject:this.paintInlineImageXObject(a[0]);break;case g.OPS.paintImageMaskXObject:this.paintImageMaskXObject(a[0]);break;case g.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(a[0],a[1]);break;case g.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case g.OPS.closePath:this.closePath();break;case g.OPS.closeStroke:this.closeStroke();break;case g.OPS.closeFillStroke:this.closeFillStroke();break;case g.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case g.OPS.nextLine:this.nextLine();break;case g.OPS.transform:this.transform(a[0],a[1],a[2],a[3],a[4],a[5]);break;case g.OPS.constructPath:this.constructPath(a[0],a[1]);break;case g.OPS.endPath:this.endPath();break;case 92:this.group(n.items);break;default:(0,g.warn)("Unimplemented operator ".concat(i))}}}catch(t){r.e(t)}finally{r.f()}}},{key:"setWordSpacing",value:function(t){this.current.wordSpacing=t}},{key:"setCharSpacing",value:function(t){this.current.charSpacing=t}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(t,e,r,n,i,o){var a=this.current;a.textMatrix=a.lineMatrix=[t,e,r,n,i,o],a.textMatrixScale=Math.sqrt(t*t+e*e),a.x=a.lineX=0,a.y=a.lineY=0,a.xcoords=[],a.ycoords=[],a.tspan=this.svgFactory.createElement("svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size","".concat(S(a.fontSize),"px")),a.tspan.setAttributeNS(null,"y",S(-a.y)),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtElement.appendChild(a.tspan)}},{key:"beginText",value:function(){var t=this.current;t.x=t.lineX=0,t.y=t.lineY=0,t.textMatrix=g.IDENTITY_MATRIX,t.lineMatrix=g.IDENTITY_MATRIX,t.textMatrixScale=1,t.tspan=this.svgFactory.createElement("svg:tspan"),t.txtElement=this.svgFactory.createElement("svg:text"),t.txtgrp=this.svgFactory.createElement("svg:g"),t.xcoords=[],t.ycoords=[]}},{key:"moveText",value:function(t,e){var r=this.current;r.x=r.lineX+=t,r.y=r.lineY+=e,r.xcoords=[],r.ycoords=[],r.tspan=this.svgFactory.createElement("svg:tspan"),r.tspan.setAttributeNS(null,"font-family",r.fontFamily),r.tspan.setAttributeNS(null,"font-size","".concat(S(r.fontSize),"px")),r.tspan.setAttributeNS(null,"y",S(-r.y))}},{key:"showText",value:function(t){var e=this.current,r=e.font,n=e.fontSize;if(0!==n){var i,o=e.fontSizeScale,a=e.charSpacing,s=e.wordSpacing,c=e.fontDirection,u=e.textHScale*c,l=r.vertical,f=l?1:-1,d=r.defaultVMetrics,p=n*e.fontMatrix[0],v=0,m=h(t);try{for(m.s();!(i=m.n()).done;){var y=i.value;if(null!==y)if((0,g.isNum)(y))v+=f*y*n/1e3;else{var b=(y.isSpace?s:0)+a,_=y.fontChar,w=void 0,T=void 0,k=y.width;if(l){var P=void 0,C=y.vmetric||d;P=y.vmetric?C[1]:.5*k,P=-P*p;var R=C[2]*p;k=C?-C[0]:k,w=P/o,T=(v+R)/o}else w=v/o,T=0;(y.isInFont||r.missingFile)&&(e.xcoords.push(e.x+w),l&&e.ycoords.push(-e.y+T),e.tspan.textContent+=_);var E=void 0;E=l?k*p-b*c:k*p+b*c,v+=E}else v+=c*s}}catch(t){m.e(t)}finally{m.f()}e.tspan.setAttributeNS(null,"x",e.xcoords.map(S).join(" ")),l?e.tspan.setAttributeNS(null,"y",e.ycoords.map(S).join(" ")):e.tspan.setAttributeNS(null,"y",S(-e.y)),l?e.y-=v:e.x+=v*u,e.tspan.setAttributeNS(null,"font-family",e.fontFamily),e.tspan.setAttributeNS(null,"font-size","".concat(S(e.fontSize),"px")),e.fontStyle!==x.fontStyle&&e.tspan.setAttributeNS(null,"font-style",e.fontStyle),e.fontWeight!==x.fontWeight&&e.tspan.setAttributeNS(null,"font-weight",e.fontWeight);var O=e.textRenderingMode&g.TextRenderingMode.FILL_STROKE_MASK;if(O===g.TextRenderingMode.FILL||O===g.TextRenderingMode.FILL_STROKE?(e.fillColor!==x.fillColor&&e.tspan.setAttributeNS(null,"fill",e.fillColor),e.fillAlpha<1&&e.tspan.setAttributeNS(null,"fill-opacity",e.fillAlpha)):e.textRenderingMode===g.TextRenderingMode.ADD_TO_PATH?e.tspan.setAttributeNS(null,"fill","transparent"):e.tspan.setAttributeNS(null,"fill","none"),O===g.TextRenderingMode.STROKE||O===g.TextRenderingMode.FILL_STROKE){var L=1/(e.textMatrixScale||1);this._setStrokeAttributes(e.tspan,L)}var I=e.textMatrix;0!==e.textRise&&(I=I.slice(),I[5]+=e.textRise),e.txtElement.setAttributeNS(null,"transform","".concat(A(I)," scale(").concat(S(u),", -1)")),e.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.txtElement.appendChild(e.tspan),e.txtgrp.appendChild(e.txtElement),this._ensureTransformGroup().appendChild(e.txtElement)}}},{key:"setLeadingMoveText",value:function(t,e){this.setLeading(-e),this.moveText(t,e)}},{key:"addFontStyle",value:function(t){if(!t.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var e=(0,g.createObjectURL)(t.data,t.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(t.loadedName,'";')+" src: url(".concat(e,"); }\n")}},{key:"setFont",value:function(t){var e=this.current,r=this.commonObjs.get(t[0]),n=t[1];e.font=r,!this.embedFonts||r.missingFile||this.embeddedFonts[r.loadedName]||(this.addFontStyle(r),this.embeddedFonts[r.loadedName]=r),e.fontMatrix=r.fontMatrix?r.fontMatrix:g.FONT_IDENTITY_MATRIX;var i="normal";r.black?i="900":r.bold&&(i="bold");var o=r.italic?"italic":"normal";n<0?(n=-n,e.fontDirection=-1):e.fontDirection=1,e.fontSize=n,e.fontFamily=r.loadedName,e.fontWeight=i,e.fontStyle=o,e.tspan=this.svgFactory.createElement("svg:tspan"),e.tspan.setAttributeNS(null,"y",S(-e.y)),e.xcoords=[],e.ycoords=[]}},{key:"endText",value:function(){var t=this.current;t.textRenderingMode&g.TextRenderingMode.ADD_TO_PATH_FLAG&&t.txtElement&&t.txtElement.hasChildNodes()&&(t.element=t.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(t){t>0&&(this.current.lineWidth=t)}},{key:"setLineCap",value:function(t){this.current.lineCap=T[t]}},{key:"setLineJoin",value:function(t){this.current.lineJoin=k[t]}},{key:"setMiterLimit",value:function(t){this.current.miterLimit=t}},{key:"setStrokeAlpha",value:function(t){this.current.strokeAlpha=t}},{key:"setStrokeRGBColor",value:function(t,e,r){this.current.strokeColor=g.Util.makeCssRgb(t,e,r)}},{key:"setFillAlpha",value:function(t){this.current.fillAlpha=t}},{key:"setFillRGBColor",value:function(t,e,r){this.current.fillColor=g.Util.makeCssRgb(t,e,r),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(t){this.current.strokeColor=this._makeColorN_Pattern(t)}},{key:"setFillColorN",value:function(t){this.current.fillColor=this._makeColorN_Pattern(t)}},{key:"shadingFill",value:function(t){var e=this.viewport.width,r=this.viewport.height,n=g.Util.inverseTransform(this.transformMatrix),i=g.Util.applyTransform([0,0],n),o=g.Util.applyTransform([0,r],n),a=g.Util.applyTransform([e,0],n),s=g.Util.applyTransform([e,r],n),c=Math.min(i[0],o[0],a[0],s[0]),u=Math.min(i[1],o[1],a[1],s[1]),l=Math.max(i[0],o[0],a[0],s[0]),h=Math.max(i[1],o[1],a[1],s[1]),f=this.svgFactory.createElement("svg:rect");f.setAttributeNS(null,"x",c),f.setAttributeNS(null,"y",u),f.setAttributeNS(null,"width",l-c),f.setAttributeNS(null,"height",h-u),f.setAttributeNS(null,"fill",this._makeShadingPattern(t)),this.current.fillAlpha<1&&f.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(f)}},{key:"_makeColorN_Pattern",value:function(t){return"TilingPattern"===t[0]?this._makeTilingPattern(t):this._makeShadingPattern(t)}},{key:"_makeTilingPattern",value:function(t){var e=t[1],r=t[2],i=t[3]||g.IDENTITY_MATRIX,o=s(t[4],4),a=o[0],c=o[1],u=o[2],l=o[3],h=t[5],f=t[6],d=t[7],p="shading".concat(O++),v=g.Util.applyTransform([a,c],i),m=s(v,2),y=m[0],b=m[1],_=g.Util.applyTransform([u,l],i),w=s(_,2),S=w[0],A=w[1],x=g.Util.singularValueDecompose2dScale(i),T=s(x,2),k=T[0],P=T[1],C=h*k,R=f*P,E=this.svgFactory.createElement("svg:pattern");E.setAttributeNS(null,"id",p),E.setAttributeNS(null,"patternUnits","userSpaceOnUse"),E.setAttributeNS(null,"width",C),E.setAttributeNS(null,"height",R),E.setAttributeNS(null,"x","".concat(y)),E.setAttributeNS(null,"y","".concat(b));var L=this.svg,I=this.transformMatrix,M=this.current.fillColor,F=this.current.strokeColor,D=this.svgFactory.create(S-y,A-b);if(this.svg=D,this.transformMatrix=i,2===d){var j=g.Util.makeCssRgb.apply(g.Util,n(e));this.current.fillColor=j,this.current.strokeColor=j}return this.executeOpTree(this.convertOpList(r)),this.svg=L,this.transformMatrix=I,this.current.fillColor=M,this.current.strokeColor=F,E.appendChild(D.childNodes[0]),this.defs.appendChild(E),"url(#".concat(p,")")}},{key:"_makeShadingPattern",value:function(t){switch(t[0]){case"RadialAxial":var e,r="shading".concat(O++),n=t[3];switch(t[1]){case"axial":var i=t[4],o=t[5];e=this.svgFactory.createElement("svg:linearGradient"),e.setAttributeNS(null,"id",r),e.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),e.setAttributeNS(null,"x1",i[0]),e.setAttributeNS(null,"y1",i[1]),e.setAttributeNS(null,"x2",o[0]),e.setAttributeNS(null,"y2",o[1]);break;case"radial":var a=t[4],s=t[5],c=t[6],u=t[7];e=this.svgFactory.createElement("svg:radialGradient"),e.setAttributeNS(null,"id",r),e.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),e.setAttributeNS(null,"cx",s[0]),e.setAttributeNS(null,"cy",s[1]),e.setAttributeNS(null,"r",u),e.setAttributeNS(null,"fx",a[0]),e.setAttributeNS(null,"fy",a[1]),e.setAttributeNS(null,"fr",c);break;default:throw new Error("Unknown RadialAxial type: ".concat(t[1]))}var l,f=h(n);try{for(f.s();!(l=f.n()).done;){var d=l.value,p=this.svgFactory.createElement("svg:stop");p.setAttributeNS(null,"offset",d[0]),p.setAttributeNS(null,"stop-color",d[1]),e.appendChild(p)}}catch(t){f.e(t)}finally{f.f()}return this.defs.appendChild(e),"url(#".concat(r,")");case"Mesh":return(0,g.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(t[0]))}}},{key:"setDash",value:function(t,e){this.current.dashArray=t,this.current.dashPhase=e}},{key:"constructPath",value:function(t,e){var r,n=this.current,i=n.x,o=n.y,a=[],s=0,c=h(t);try{for(c.s();!(r=c.n()).done;){switch(0|r.value){case g.OPS.rectangle:i=e[s++],o=e[s++];var u=e[s++],l=e[s++],f=i+u,d=o+l;a.push("M",S(i),S(o),"L",S(f),S(o),"L",S(f),S(d),"L",S(i),S(d),"Z");break;case g.OPS.moveTo:i=e[s++],o=e[s++],a.push("M",S(i),S(o));break;case g.OPS.lineTo:i=e[s++],o=e[s++],a.push("L",S(i),S(o));break;case g.OPS.curveTo:i=e[s+4],o=e[s+5],a.push("C",S(e[s]),S(e[s+1]),S(e[s+2]),S(e[s+3]),S(i),S(o)),s+=6;break;case g.OPS.curveTo2:a.push("C",S(i),S(o),S(e[s]),S(e[s+1]),S(e[s+2]),S(e[s+3])),i=e[s+2],o=e[s+3],s+=4;break;case g.OPS.curveTo3:i=e[s+2],o=e[s+3],a.push("C",S(e[s]),S(e[s+1]),S(i),S(o),S(i),S(o)),s+=4;break;case g.OPS.closePath:a.push("Z")}}}catch(t){c.e(t)}finally{c.f()}a=a.join(" "),n.path&&t.length>0&&t[0]!==g.OPS.rectangle&&t[0]!==g.OPS.moveTo?a=n.path.getAttributeNS(null,"d")+a:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(n.path)),n.path.setAttributeNS(null,"d",a),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(i,o)}},{key:"endPath",value:function(){var t=this.current;if(t.path=null,this.pendingClip){if(!t.element)return void(this.pendingClip=null);var e="clippath".concat(R++),r=this.svgFactory.createElement("svg:clipPath");r.setAttributeNS(null,"id",e),r.setAttributeNS(null,"transform",A(this.transformMatrix));var n=t.element.cloneNode(!0);"evenodd"===this.pendingClip?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.appendChild(n),this.defs.appendChild(r),t.activeClipUrl&&(t.clipGroup=null,this.extraStack.forEach(function(t){t.clipGroup=null}),r.setAttributeNS(null,"clip-path",t.activeClipUrl)),t.activeClipUrl="url(#".concat(e,")"),this.tgrp=null}}},{key:"clip",value:function(t){this.pendingClip=t}},{key:"closePath",value:function(){var t=this.current;if(t.path){var e="".concat(t.path.getAttributeNS(null,"d"),"Z");t.path.setAttributeNS(null,"d",e)}}},{key:"setLeading",value:function(t){this.current.leading=-t}},{key:"setTextRise",value:function(t){this.current.textRise=t}},{key:"setTextRenderingMode",value:function(t){this.current.textRenderingMode=t}},{key:"setHScale",value:function(t){this.current.textHScale=t/100}},{key:"setRenderingIntent",value:function(t){}},{key:"setFlatness",value:function(t){}},{key:"setGState",value:function(t){var e,r=h(t);try{for(r.s();!(e=r.n()).done;){var n=s(e.value,2),i=n[0],o=n[1];switch(i){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o);break;case"CA":this.setStrokeAlpha(o);break;case"ca":this.setFillAlpha(o);break;default:(0,g.warn)("Unimplemented graphic state operator ".concat(i))}}}catch(t){r.e(t)}finally{r.f()}}},{key:"fill",value:function(){var t=this.current;t.element&&(t.element.setAttributeNS(null,"fill",t.fillColor),t.element.setAttributeNS(null,"fill-opacity",t.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var t=this.current;t.element&&(this._setStrokeAttributes(t.element),t.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this.current,n=r.dashArray;1!==e&&n.length>0&&(n=n.map(function(t){return e*t})),t.setAttributeNS(null,"stroke",r.strokeColor),t.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),t.setAttributeNS(null,"stroke-miterlimit",S(r.miterLimit)),t.setAttributeNS(null,"stroke-linecap",r.lineCap),t.setAttributeNS(null,"stroke-linejoin",r.lineJoin),t.setAttributeNS(null,"stroke-width",S(e*r.lineWidth)+"px"),t.setAttributeNS(null,"stroke-dasharray",n.map(S).join(" ")),t.setAttributeNS(null,"stroke-dashoffset",S(e*r.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var t=this.svgFactory.createElement("svg:rect");t.setAttributeNS(null,"x","0"),t.setAttributeNS(null,"y","0"),t.setAttributeNS(null,"width","1px"),t.setAttributeNS(null,"height","1px"),t.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(t)}},{key:"paintImageXObject",value:function(t){var e=this.objs.get(t);if(!e)return void(0,g.warn)("Dependent image with object ID ".concat(t," is not ready yet"));this.paintInlineImageXObject(e)}},{key:"paintInlineImageXObject",value:function(t,e){var r=t.width,n=t.height,i=P(t,this.forceDataSchema,!!e),o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",S(r)),o.setAttributeNS(null,"height",S(n)),this.current.element=o,this.clip("nonzero");var a=this.svgFactory.createElement("svg:image");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",S(-n)),a.setAttributeNS(null,"width",S(r)+"px"),a.setAttributeNS(null,"height",S(n)+"px"),a.setAttributeNS(null,"transform","scale(".concat(S(1/r)," ").concat(S(-1/n),")")),e?e.appendChild(a):this._ensureTransformGroup().appendChild(a)}},{key:"paintImageMaskXObject",value:function(t){var e=this.current,r=t.width,n=t.height,i=e.fillColor;e.maskId="mask".concat(E++);var o=this.svgFactory.createElement("svg:mask");o.setAttributeNS(null,"id",e.maskId);var a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",S(r)),a.setAttributeNS(null,"height",S(n)),a.setAttributeNS(null,"fill",i),a.setAttributeNS(null,"mask","url(#".concat(e.maskId,")")),this.defs.appendChild(o),this._ensureTransformGroup().appendChild(a),this.paintInlineImageXObject(t,o)}},{key:"paintFormXObjectBegin",value:function(t,e){if(Array.isArray(t)&&6===t.length&&this.transform(t[0],t[1],t[2],t[3],t[4],t[5]),e){var r=e[2]-e[0],n=e[3]-e[1],i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x",e[0]),i.setAttributeNS(null,"y",e[1]),i.setAttributeNS(null,"width",S(r)),i.setAttributeNS(null,"height",S(n)),this.current.element=i,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(t){var e=this.svgFactory.create(t.width,t.height),r=this.svgFactory.createElement("svg:defs");e.appendChild(r),this.defs=r;var n=this.svgFactory.createElement("svg:g");return n.setAttributeNS(null,"transform",A(t.transform)),e.appendChild(n),this.svg=n,e}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var t=this.svgFactory.createElement("svg:g");t.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(t),this.current.clipGroup=t}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",A(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),t}()},function(t,e,r){"use strict";function n(t){"@babel/helpers - typeof";return(n="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})(t)}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=u();return function(){var r,n=l(t);if(e){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return s(this,r)}}function s(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){function o(t){h(s,n,i,o,a,"next",t)}function a(t){h(s,n,i,o,a,"throw",t)}var s=t.apply(e,r);o(void 0)})}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function v(t,e,r){return e&&p(t.prototype,e),r&&p(t,r),t}function m(t){var e=x.parse(t);return"file:"===e.protocol||e.host?e:/^[a-z]:[/\\]/i.test(t)?x.parse("file:///".concat(t)):(e.host||(e.protocol="file:"),e)}function g(t,e){return{protocol:t.protocol,auth:t.auth,host:t.hostname,port:t.port,path:t.path,method:"GET",headers:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFNodeStream=void 0;var y=function(t){return t&&t.__esModule?t:{default:t}}(r(2)),b=r(5),_=r(213),w=__webpack_require__(337),S=__webpack_require__(338),A=__webpack_require__(339),x=__webpack_require__(340),T=/^file:\/\/\/[a-zA-Z]:\//,k=function(){function t(e){d(this,t),this.source=e,this.url=m(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return v(t,[{key:"getFullReader",value:function(){return(0,b.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new O(this):new R(this),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var r=this.isFsUrl?new L(this,t,e):new E(this,t,e);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach(function(e){e.cancel(t)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFNodeStream=k;var P=function(){function t(e){d(this,t),this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;var r=e.source;this._contentLength=r.length,this._loaded=0,this._filename=null,this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._readableStream=null,this._readCapability=(0,b.createPromiseCapability)(),this._headersCapability=(0,b.createPromiseCapability)()}return v(t,[{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=f(y.default.mark(function t(){var e,r;return y.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:if(!this._done){t.next=4;break}return t.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){t.next=6;break}throw this._storedError;case 6:if(null!==(e=this._readableStream.read())){t.next=10;break}return this._readCapability=(0,b.createPromiseCapability)(),t.abrupt("return",this.read());case 10:return this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),r=new Uint8Array(e).buffer,t.abrupt("return",{value:r,done:!1});case 14:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){if(!this._readableStream)return void this._error(t);this._readableStream.destroy(t)}},{key:"_error",value:function(t){this._storedError=t,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(t){var e=this;this._readableStream=t,t.on("readable",function(){e._readCapability.resolve()}),t.on("end",function(){t.destroy(),e._done=!0,e._readCapability.resolve()}),t.on("error",function(t){e._error(t)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new b.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}(),C=function(){function t(e){d(this,t),this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,b.createPromiseCapability)();var r=e.source;this._isStreamingSupported=!r.disableStream}return v(t,[{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=f(y.default.mark(function t(){var e,r;return y.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:if(!this._done){t.next=4;break}return t.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){t.next=6;break}throw this._storedError;case 6:if(null!==(e=this._readableStream.read())){t.next=10;break}return this._readCapability=(0,b.createPromiseCapability)(),t.abrupt("return",this.read());case 10:return this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),r=new Uint8Array(e).buffer,t.abrupt("return",{value:r,done:!1});case 14:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){if(!this._readableStream)return void this._error(t);this._readableStream.destroy(t)}},{key:"_error",value:function(t){this._storedError=t,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(t){var e=this;this._readableStream=t,t.on("readable",function(){e._readCapability.resolve()}),t.on("end",function(){t.destroy(),e._done=!0,e._readCapability.resolve()}),t.on("error",function(t){e._error(t)}),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}(),R=function(t){function e(t){var n;d(this,e),n=r.call(this,t);var i=function(e){if(404===e.statusCode){var r=new b.MissingPDFException('Missing PDF "'.concat(n._url,'".'));return n._storedError=r,void n._headersCapability.reject(r)}n._headersCapability.resolve(),n._setReadableStream(e);var i=function(t){return n._readableStream.headers[t.toLowerCase()]},o=(0,_.validateRangeRequestCapabilities)({getResponseHeader:i,isHttp:t.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),a=o.allowRangeRequests,s=o.suggestedLength;n._isRangeSupported=a,n._contentLength=s||n._contentLength,n._filename=(0,_.extractFilenameFromHeader)(i)};return n._request=null,"http:"===n._url.protocol?n._request=S.request(g(n._url,t.httpHeaders),i):n._request=A.request(g(n._url,t.httpHeaders),i),n._request.on("error",function(t){n._storedError=t,n._headersCapability.reject(t)}),n._request.end(),n}i(e,t);var r=a(e);return e}(P),E=function(t){function e(t,n,i){var o;d(this,e),o=r.call(this,t),o._httpHeaders={};for(var a in t.httpHeaders){var s=t.httpHeaders[a];void 0!==s&&(o._httpHeaders[a]=s)}o._httpHeaders.Range="bytes=".concat(n,"-").concat(i-1);var c=function(t){if(404===t.statusCode){var e=new b.MissingPDFException('Missing PDF "'.concat(o._url,'".'));return void(o._storedError=e)}o._setReadableStream(t)};return o._request=null,"http:"===o._url.protocol?o._request=S.request(g(o._url,o._httpHeaders),c):o._request=A.request(g(o._url,o._httpHeaders),c),o._request.on("error",function(t){o._storedError=t}),o._request.end(),o}i(e,t);var r=a(e);return e}(C),O=function(t){function e(t){var n;d(this,e),n=r.call(this,t);var i=decodeURIComponent(n._url.path);return T.test(n._url.href)&&(i=i.replace(/^\//,"")),w.lstat(i,function(t,e){if(t)return"ENOENT"===t.code&&(t=new b.MissingPDFException('Missing PDF "'.concat(i,'".'))),n._storedError=t,void n._headersCapability.reject(t);n._contentLength=e.size,n._setReadableStream(w.createReadStream(i)),n._headersCapability.resolve()}),n}i(e,t);var r=a(e);return e}(P),L=function(t){function e(t,n,i){var o;d(this,e),o=r.call(this,t);var a=decodeURIComponent(o._url.path);return T.test(o._url.href)&&(a=a.replace(/^\//,"")),o._setReadableStream(w.createReadStream(a,{start:n,end:i-1})),o}i(e,t);var r=a(e);return e}(C)},function(t,e,r){"use strict";function n(t){var e=t.getResponseHeader,r=t.isHttp,n=t.rangeChunkSize,i=t.disableRange;(0,s.assert)(n>0,"Range chunk size must be larger than zero");var o={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(e("Content-Length"),10);return Number.isInteger(a)?(o.suggestedLength=a,a<=2*n?o:i||!r?o:"bytes"!==e("Accept-Ranges")?o:"identity"!==(e("Content-Encoding")||"identity")?o:(o.allowRangeRequests=!0,o)):o}function i(t){var e=t("Content-Disposition");if(e){var r=(0,c.getFilenameFromContentDispositionHeader)(e);if(r.includes("%"))try{r=decodeURIComponent(r)}catch(t){}if(/\.pdf$/i.test(r))return r}return null}function o(t,e){return 404===t||0===t&&e.startsWith("file:")?new s.MissingPDFException('Missing PDF "'+e+'".'):new s.UnexpectedResponseException("Unexpected server response ("+t+') while retrieving PDF "'+e+'".',t)}function a(t){return 200===t||206===t}Object.defineProperty(e,"__esModule",{value:!0}),e.createResponseStatusError=o,e.extractFilenameFromHeader=i,e.validateRangeRequestCapabilities=n,e.validateResponseStatus=a;var s=r(5),c=r(214)},function(t,e,r){"use strict";function n(t,e){return c(t)||s(t,e)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function c(t){if(Array.isArray(t))return t}function u(t){function e(t,e){return new RegExp("(?:^|;)\\s*"+t+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',e)}function r(t,e){if(t){if(!/^[\x00-\xFF]+$/.test(e))return e;try{var r=new TextDecoder(t,{fatal:!0}),n=Array.from(e,function(t){return 255&t.charCodeAt(0)});e=r.decode(new Uint8Array(n)),c=!1}catch(r){if(/^utf-?8$/i.test(t))try{e=decodeURIComponent(escape(e)),c=!1}catch(t){}}}return e}function i(t){return c&&/[\x80-\xff]/.test(t)&&(t=r("utf-8",t),c&&(t=r("iso-8859-1",t))),t}function o(t){if(t.startsWith('"')){for(var e=t.slice(1).split('\\"'),r=0;r<e.length;++r){var n=e[r].indexOf('"');-1!==n&&(e[r]=e[r].slice(0,n),e.length=r+1),e[r]=e[r].replace(/\\(.)/g,"$1")}t=e.join('"')}return t}function a(t){var e=t.indexOf("'");return-1===e?t:r(t.slice(0,e),t.slice(e+1).replace(/^[^']*'/,""))}function s(t){return!t.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(t)?t:t.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(t,e,n,i){if("q"===n||"Q"===n)return i=i.replace(/_/g," "),i=i.replace(/=([0-9a-fA-F]{2})/g,function(t,e){return String.fromCharCode(parseInt(e,16))}),r(e,i);try{i=atob(i)}catch(t){}return r(e,i)})}var c=!0,u=e("filename\\*","i").exec(t);if(u){u=u[1];var l=o(u);return l=unescape(l),l=a(l),l=s(l),i(l)}if(u=function(t){for(var r,i=[],s=e("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(r=s.exec(t));){var c=r,u=n(c,4),l=u[1],h=u[2],f=u[3];if((l=parseInt(l,10))in i){if(0===l)break}else i[l]=[h,f]}for(var d=[],p=0;p<i.length&&p in i;++p){var v=n(i[p],2),m=v[0],g=v[1];g=o(g),m&&(g=unescape(g),0===p&&(g=a(g))),d.push(g)}return d.join("")}(t)){return i(s(u))}if(u=e("filename","i").exec(t)){u=u[1];var h=o(u);return h=s(h),i(h)}return""}Object.defineProperty(e,"__esModule",{value:!0}),e.getFilenameFromContentDispositionHeader=u},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise(function(i,o){function a(t){n(c,i,o,a,s,"next",t)}function s(t){n(c,i,o,a,s,"throw",t)}var c=t.apply(e,r);a(void 0)})}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),t}function c(t){var e=t.response;return"string"!=typeof e?e:(0,l.stringToBytes)(e).buffer}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFNetworkStream=void 0;var u=function(t){return t&&t.__esModule?t:{default:t}}(r(2)),l=r(5),h=r(213),f=function(){function t(e,r){o(this,t),this.url=e,r=r||{},this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&r.httpHeaders||{},this.withCredentials=r.withCredentials||!1,this.getXhr=r.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return s(t,[{key:"requestRange",value:function(t,e,r){var n={begin:t,end:e};for(var i in r)n[i]=r[i];return this.request(n)}},{key:"requestFull",value:function(t){return this.request(t)}},{key:"request",value:function(t){var e=this.getXhr(),r=this.currXhrId++,n=this.pendingRequests[r]={xhr:e};e.open("GET",this.url),e.withCredentials=this.withCredentials;for(var i in this.httpHeaders){var o=this.httpHeaders[i];void 0!==o&&e.setRequestHeader(i,o)}return this.isHttp&&"begin"in t&&"end"in t?(e.setRequestHeader("Range","bytes=".concat(t.begin,"-").concat(t.end-1)),n.expectedStatus=206):n.expectedStatus=200,e.responseType="arraybuffer",t.onError&&(e.onerror=function(r){t.onError(e.status)}),e.onreadystatechange=this.onStateChange.bind(this,r),e.onprogress=this.onProgress.bind(this,r),n.onHeadersReceived=t.onHeadersReceived,n.onDone=t.onDone,n.onError=t.onError,n.onProgress=t.onProgress,e.send(null),r}},{key:"onProgress",value:function(t,e){var r=this.pendingRequests[t];r&&r.onProgress&&r.onProgress(e)}},{key:"onStateChange",value:function(t,e){var r=this.pendingRequests[t];if(r){var n=r.xhr;if(n.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===n.readyState&&t in this.pendingRequests){if(delete this.pendingRequests[t],0===n.status&&this.isHttp)return void(r.onError&&r.onError(n.status));var i=n.status||200;if(!(200===i&&206===r.expectedStatus)&&i!==r.expectedStatus)return void(r.onError&&r.onError(n.status));var o=c(n);if(206===i){var a=n.getResponseHeader("Content-Range"),s=/bytes (\d+)-(\d+)\/(\d+)/.exec(a);r.onDone({begin:parseInt(s[1],10),chunk:o})}else o?r.onDone({begin:0,chunk:o}):r.onError&&r.onError(n.status)}}}},{key:"hasPendingRequests",value:function(){for(var t in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(t){return this.pendingRequests[t].xhr}},{key:"isPendingRequest",value:function(t){return t in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var t in this.pendingRequests)this.abortRequest(0|t)}},{key:"abortRequest",value:function(t){var e=this.pendingRequests[t].xhr;delete this.pendingRequests[t],e.abort()}}]),t}(),d=function(){function t(e){o(this,t),this._source=e,this._manager=new f(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return s(t,[{key:"_onRangeRequestReaderClosed",value:function(t){var e=this._rangeRequestReaders.indexOf(t);e>=0&&this._rangeRequestReaders.splice(e,1)}},{key:"getFullReader",value:function(){return(0,l.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new p(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){var r=new v(this._manager,t,e);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach(function(e){e.cancel(t)})}}]),t}();e.PDFNetworkStream=d;var p=function(){function t(e,r){o(this,t),this._manager=e;var n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=r.url,this._fullRequestId=e.requestFull(n),this._headersReceivedCapability=(0,l.createPromiseCapability)(),this._disableRange=r.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return s(t,[{key:"_onHeadersReceived",value:function(){var t=this._fullRequestId,e=this._manager.getRequestXhr(t),r=function(t){return e.getResponseHeader(t)},n=(0,h.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=n.allowRangeRequests,o=n.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,h.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(t),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(t){if(t)if(this._requests.length>0){var e=this._requests.shift();e.resolve({value:t.chunk,done:!1})}else this._cachedChunks.push(t.chunk);this._done=!0,this._cachedChunks.length>0||(this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[])}},{key:"_onError",value:function(t){var e=this._url,r=(0,h.createResponseStatusError)(t,e);this._storedError=r,this._headersReceivedCapability.reject(r),this._requests.forEach(function(t){t.reject(r)}),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(t){this.onProgress&&this.onProgress({loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}},{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(u.default.mark(function t(){var e,r;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._storedError){t.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){t.next=5;break}return e=this._cachedChunks.shift(),t.abrupt("return",{value:e,done:!1});case 5:if(!this._done){t.next=7;break}return t.abrupt("return",{value:void 0,done:!0});case 7:return r=(0,l.createPromiseCapability)(),this._requests.push(r),t.abrupt("return",r.promise);case 10:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._done=!0,this._headersReceivedCapability.reject(t),this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]),t}(),v=function(){function t(e,r,n){o(this,t),this._manager=e;var i={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=e.requestRange(r,n,i),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return s(t,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(t){var e=t.chunk;if(this._requests.length>0){this._requests.shift().resolve({value:e,done:!1})}else this._queuedChunk=e;this._done=!0,this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[],this._close()}},{key:"_onProgress",value:function(t){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:t.loaded})}},{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(u.default.mark(function t(){var e,r;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(null===this._queuedChunk){t.next=4;break}return e=this._queuedChunk,this._queuedChunk=null,t.abrupt("return",{value:e,done:!1});case 4:if(!this._done){t.next=6;break}return t.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,l.createPromiseCapability)(),this._requests.push(r),t.abrupt("return",r.promise);case 9:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},{key:"isStreamingSupported",get:function(){return!1}}]),t}()},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise(function(i,o){function a(t){n(c,i,o,a,s,"next",t)}function s(t){n(c,i,o,a,s,"throw",t)}var c=t.apply(e,r);a(void 0)})}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),t}function c(t,e,r){return{method:"GET",headers:t,signal:r&&r.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function u(t){var e=new Headers;for(var r in t){var n=t[r];void 0!==n&&e.append(r,n)}return e}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFFetchStream=void 0;var l=function(t){return t&&t.__esModule?t:{default:t}}(r(2)),h=r(5),f=r(213),d=function(){function t(e){o(this,t),this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return s(t,[{key:"getFullReader",value:function(){return(0,h.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new p(this),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var r=new v(this,t,e);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach(function(e){e.cancel(t)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFFetchStream=d;var p=function(){function t(e){var r=this;o(this,t),this._stream=e,this._reader=null,this._loaded=0,this._filename=null;var n=e.source;this._withCredentials=n.withCredentials||!1,this._contentLength=n.length,this._headersCapability=(0,h.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._headers=u(this._stream.httpHeaders);var i=n.url;fetch(i,c(this._headers,this._withCredentials,this._abortController)).then(function(t){if(!(0,f.validateResponseStatus)(t.status))throw(0,f.createResponseStatusError)(t.status,i);r._reader=t.body.getReader(),r._headersCapability.resolve();var e=function(e){return t.headers.get(e)},n=(0,f.validateRangeRequestCapabilities)({getResponseHeader:e,isHttp:r._stream.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),o=n.allowRangeRequests,a=n.suggestedLength;r._isRangeSupported=o,r._contentLength=a||r._contentLength,r._filename=(0,f.extractFilenameFromHeader)(e),!r._isStreamingSupported&&r._isRangeSupported&&r.cancel(new h.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}return s(t,[{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(l.default.mark(function t(){var e,r,n,i;return l.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._headersCapability.promise;case 2:return t.next=4,this._reader.read();case 4:if(e=t.sent,r=e.value,!(n=e.done)){t.next=9;break}return t.abrupt("return",{value:r,done:n});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),i=new Uint8Array(r).buffer,t.abrupt("return",{value:i,done:!1});case 13:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._reader&&this._reader.cancel(t),this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}(),v=function(){function t(e,r,n){var i=this;o(this,t),this._stream=e,this._reader=null,this._loaded=0;var a=e.source;this._withCredentials=a.withCredentials||!1,this._readCapability=(0,h.createPromiseCapability)(),this._isStreamingSupported=!a.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=u(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(r,"-").concat(n-1));var s=a.url;fetch(s,c(this._headers,this._withCredentials,this._abortController)).then(function(t){if(!(0,f.validateResponseStatus)(t.status))throw(0,f.createResponseStatusError)(t.status,s);i._readCapability.resolve(),i._reader=t.body.getReader()}),this.onProgress=null}return s(t,[{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(l.default.mark(function t(){var e,r,n,i;return l.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:return t.next=4,this._reader.read();case 4:if(e=t.sent,r=e.value,!(n=e.done)){t.next=9;break}return t.abrupt("return",{value:r,done:n});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),i=new Uint8Array(r).buffer,t.abrupt("return",{value:i,done:!1});case 13:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._reader&&this._reader.cancel(t),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}()}])})}).call(exports,__webpack_require__(305).Buffer,__webpack_require__(154),__webpack_require__(117))},336:function(t,e){},337:function(t,e){},338:function(t,e){},339:function(t,e){},34:function(t,e,r){var n=r(10);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},340:function(t,e){},341:function(t,e){},349:function(t,e){},35:function(t,e){e.f=Object.getOwnPropertySymbols},350:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"act-doc-content"},t._l(t.termsInfo,function(e,n){return r("div",{key:n,staticClass:"act-doc-box",class:{hide:t.getTermHideState(n)}},[t.isShowLoading||!e.init||n!==t.docIndex?r("div",{staticClass:"loading",class:{center:t.isPurePdfType||t.imagesInitLoad||!(e.init&&n===t.docIndex)}},[r("act-loading",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],attrs:{type:"cir4",color:t.brandColor,size:25}})],1):t._e(),t._v(" "),e.init&&n===t.docIndex?r("scroll",{class:e.classObject,attrs:{freeScroll:e.freeScroll,scrollbar:e.scrollbar,mouseWheel:e.mouseWheel,bounce:e.bounce,zoom:e.zoom,observeDOM:e.observeDOM,listenBeforeScroll:!0,listenScroll:e.listenScroll,listenScrollEnd:e.listenScrollEnd,listenScrollInit:e.listenScrollInit,listenZoomEnd:e.listenZoomEnd},on:{scroll:t.scroll,"scroll-end":t.scrollEnd,scrollSuc:t.scrollInit,zoomEnd:t.zoomEnd}},[99==e.type?t._t("content"):1==e.type||3==e.type?r("div",{ref:"wordHtml"+n,refInFor:!0,staticClass:"act-scroll-text",class:"wordHtml"+n,attrs:{"data-index":n},domProps:{innerHTML:t._s(e.wordHtml)}},[t._v("\n >"+t._s(e.wordHtml)+"\n ")]):4===e.type?r("div",{ref:"pdfContainer",refInFor:!0}):r("ul",{ref:"scrollList"+n,refInFor:!0,staticClass:"act-scroll-list"})],2):t._e()],1)}),0)},i=[];n._withStripped=!0},36:function(t,e,r){e.f=r(3)},37:function(t,e,r){var n=r(2),i=r(0),o=r(16),a=r(36),s=r(8).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},38:function(t,e,r){var n=r(39);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},39:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},4:function(t,e,r){"use strict";function n(t,e){if(t.findIndex)return t.findIndex(e);var r=-1;return t.some(function(t,n,i){var o=e.call(this,t,n,i);if(o)return r=n,o}),r}function i(t){return t?JSON.parse(W()(t)):t}function o(t,e){for(var r in e)t[r]&&"object"===U()(t[r])?o(t[r],e[r]):t[r]=e[r]}function a(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function c(t){return"[object Number]"===Object.prototype.toString.call(t)}function u(t){return"[object Object]"===Object.prototype.toString.call(t)}function l(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function h(t){return null===t}function f(t){return void 0!==t&&null!==t}function d(t){return void 0===t}function p(t){return"[object Error]"===Object.prototype.toString.call(t)}function v(t){return"function"==typeof t}function m(t){return"[object Promise]"===Object.prototype.toString.call(t)||u(t)&&v(t.then)}function g(t,e,r){function n(e){var r=m,n=g;return m=g=void 0,S=e,b=t.apply(n,r)}function i(t,e){return k?(window.cancelAnimationFrame(_),window.requestAnimationFrame(t)):setTimeout(t,e)}function o(t){if(k)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return S=t,_=i(l,e),A?n(t):b}function s(t){var r=t-w,n=t-S,i=e-r;return x?Math.min(i,y-n):i}function c(t){var r=t-w,n=t-S;return void 0===w||r>=e||r<0||x&&n>=y}function l(){var t=Date.now();if(c(t))return h(t);_=i(l,s(t))}function h(t){return _=void 0,T&&m?n(t):(m=g=void 0,b)}function f(){void 0!==_&&o(_),S=0,m=w=g=_=void 0}function d(){return void 0===_?b:h(Date.now())}function p(){return void 0!==_}function v(){for(var t=Date.now(),r=c(t),o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];if(m=s,g=this,w=t,r){if(void 0===_)return a(w);if(x)return _=i(l,e),n(w)}return void 0===_&&(_=i(l,e)),b}var m=void 0,g=void 0,y=void 0,b=void 0,_=void 0,w=void 0,S=0,A=!1,x=!1,T=!0,k=!e&&0!==e&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof t)throw new TypeError("Expected a function");return e=+e||0,u(r)&&(A=!!r.leading,x="maxWait"in r,y=x?Math.max(+r.maxWait||0,e):y,T="trailing"in r?!!r.trailing:T),v.cancel=f,v.flush=d,v.pending=p,v}function y(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return u(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),g(t,e,{leading:n,trailing:i,maxWait:e})}function b(t){return!!/^1\d{10}$/.test(t)}function _(t){var e=t.length;return e>3&&e<8?t=t.replace(/\s/g,"").replace(/^(.{3})/g,"$1 "):e>=8&&(t=t.replace(/\s/g,"").replace(/^(.{3})(.+)/g,function(t,e,r){return e+" "+r.replace(/(.{4})(?=.)/g,"$1 ")})),t}function w(t){return t.replace(/\s/g,"").replace(/(.{4})(?=.)/g,"$1 ")}function S(t){if(void 0!==t||null!==t)return/^\d+(\.\d+)?$/.test(t+"")?t+"px":t}function A(t){if(!t)return"";var e=t.length;return 2===e?t.split("").join("&emsp;&emsp;"):3===e?t.split("").join("&ensp;"):t}function x(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.offsetHeight;if(e){var n=t.currentStyle||getComputedStyle(t);r+=parseInt(n.marginTop||0)+parseInt(n.marginBottom||0)}return r}function T(t,e){var r=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$/i.exec(t),n=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t),i=null;return r?i={r:parseInt(r[1]+r[1],16),g:parseInt(r[2]+r[2],16),b:parseInt(r[3]+r[3],16)}:n&&(i={r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}),i?void 0!==e?"rgba("+i.r+", "+i.g+", "+i.b+", "+e+")":"rgb("+i.r+", "+i.g+", "+i.b+")":""}function k(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz",r=e.length,n="";t=t||32;for(var i=0;i<t;i++)n+=e.charAt(Math.floor(Math.random()*r));return n}function P(t,e){var r=e||location.href,n=new RegExp("(\\?|&)"+t+"=([^&#$\\s]+)"),i=r.match(n);return i&&i[2]}function C(t){var e=window.getComputedStyle(t),r="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return r||n}function R(t,e,r){return Math.min(Math.max(t,e),r)}function E(t){var e=/os (\d\d?_\d(_\d)?)/,r=e.exec(t);if(!r)return null;var n=r[1].split("_").map(function(t){return parseInt(t,10)});return{major:n[0],minor:n[1],patch:n[2]||0}}function O(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=e||window.location.href;var r=new RegExp("(\\?|#|&)"+t+"=([^&#]*)(&|#|$)"),n=e.match(r);return decodeURIComponent(n?n[2]:"")}function L(t){return t?p(t)?t.message:s(t)?t:t.errmsg||"请求失败,请稍后重试":"请求失败,请稍后重试"}function I(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],r=new RegExp("https?://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]"),n=0;n<t.length;n++){var i=t[n];if(!r.test(i))return;e.push(i.split("?")[0])}return e}function M(t){var e=JSON.parse(W()(t)),r=e.attrModules,n=void 0===r?{}:r,i=e.plan,o=n.applicant,s=n.insureds,c=n.hcpics,u=n.hctext,l=n.makeup,h=n.apphctext,f=n.apphcpics,d={},p=function(t){var e=null,r=null,n=null,i=null,o={},s={},c={};for(var u in t){var l=t[u].defaultValue,h=t[u].required,f=t[u].display;if(a(l)){var d=I(l);d&&(l=d)}1!==Number(h)&&1!==Number(f)||("idType"===u||"id"===u||"idValidType"===u||"idValidEndTime"===u||"idValidStartTime"===u?(e=e||{},e[u]=l):"socialInsAddr"===u||"socialInsDetail"===u||"socialInsPost"===u||"socialInsTel"===u?(r=r||{},r[u]=l):"residentAddr"===u||"residentDetail"===u||"residentPost"===u||"residentTel"===u?(n=n||{},n[u]=l):"officeAddr"===u||"officeDetail"===u||"officePost"===u||"officeTel"===u?(i=i||{},i[u]=l):"companyIdType"===u||"companyId"===u?(s=s||{},s[u]=l):"detail"===u?(c=c||{},c[u]=l):o[u]=l)}return e&&(o.certificate=e),r&&(o.socialIns=r),n&&(o.resident=n),i&&(o.office=i),s&&(o.companyCertificate=s),c&&(o.companyAddress=c),o};if(n.plan&&(i=p(n.plan)),o&&(d.applicant={},o&&(d.applicant=p(o))),s||i){d.insureds=[];for(var v=s||[""],m=0;m<v.length;m++){var g=v[m],y=null,b={};g&&(y=p(g)),y&&(b.insured=y),i&&(b.plan=i),d.insureds.push(b)}}if(u&&(d.hctext=p(u)),h&&(d.apphctext=p(h)),c&&(d.hcpics=p(c)),f&&(d.apphcpics=p(f)),l){d.makeup={};for(var _=l||[""],w=0;w<_.length;w++){var S=_[w],A=null;S&&(A=p(S)),A&&(d.makeup=j()(d.makeup,A))}}return d}function F(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,e=URL.createObjectURL(new Blob).toString();return URL.revokeObjectURL(e),(e.substring(e.lastIndexOf("/")+1)||"").replace(new RegExp("-","g"),"").substring(0,t)}r.d(e,"I",function(){return it}),r.d(e,"x",function(){return ot}),e.e=n,e.d=i,e.c=o,e.p=a,e.C=s,e.z=c,e.A=u,e.q=l,e.y=h,e.r=f,e.D=d,e.s=p,e.t=v,e.B=m,e.b=g,e.H=y,e.w=b,e.h=_,e.f=w,e.g=S,e.i=A,e.E=x,e.o=T,e.F=k,e.m=P,e.u=C,e.G=R,e.l=E,e.n=O,e.k=L,e.j=M,r.d(e,"v",function(){return at}),e.a=F;var D=r(28),j=r.n(D),N=r(80),U=r.n(N),B=r(58),W=r.n(B),q="undefined"!=typeof window,Y=q&&window.navigator.userAgent.toLowerCase(),z=Y&&/msie|trident/.test(Y),X=Y&&Y.indexOf("msie 9.0")>0,H=Y&&Y.indexOf("edge/")>0,G=Y&&Y.indexOf("android")>0,V=Y&&/iphone|ipad|ipod|ios/.test(Y),$=Y&&/arkweb|harmony/.test(Y),Q=Y&&/chrome\/\d+/.test(Y)&&!H,K=Y&&/MicroMessenger/i.test(Y),J=Y&&/wxwork/i.test(Y),Z=Y&&/mucxiaoyusan/i.test(Y),tt=Y&&/muckacabao/i.test(Y),et=Y&&/mucyanxuan/i.test(Y),rt=Z||tt,nt=Y&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(Y),it={isIE:z,isMobile:nt,isIE9:X,isEdge:H,isAndroid:G,isIOS:V,isHarmonyOS:$,isChrome:Q,isWx:K,isWxWork:J,isApp:rt,isXysApp:Z,isKcbApp:tt,isYxApp:et},ot=/MucWebAutoTester/.test(window.navigator.userAgent),at=function(){return!("undefined"==typeof window||!window)&&(/iphone/gi.test(window.navigator.userAgent)&&window.screen.height>=812)}},40:function(t,e,r){var n=r(10),i=r(2).document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},44:function(t,e,r){"use strict";var n=r(16),i=r(13),o=r(49),a=r(7),s=r(18),c=r(72),u=r(27),l=r(76),h=r(3)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,r,p,v,m,g){c(r,e,p);var y,b,_,w=function(t){if(!f&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},S=e+" Iterator",A="values"==v,x=!1,T=t.prototype,k=T[h]||T["@@iterator"]||v&&T[v],P=k||w(v),C=v?A?w("entries"):P:void 0,R="Array"==e?T.entries||k:k;if(R&&(_=l(R.call(new t)))!==Object.prototype&&_.next&&(u(_,S,!0),n||"function"==typeof _[h]||a(_,h,d)),A&&k&&"values"!==k.name&&(x=!0,P=function(){return k.call(this)}),n&&!g||!f&&!x&&T[h]||a(T,h,P),s[e]=P,s[S]=d,v)if(y={values:A?P:w("values"),keys:m?P:w("keys"),entries:C},g)for(b in y)b in T||o(T,b,y[b]);else i(i.P+i.F*(f||x),e,y);return y}},45:function(t,e,r){var n=r(9),i=r(73),o=r(33),a=r(31)("IE_PROTO"),s=function(){},c=function(){var t,e=r(40)("iframe"),n=o.length;for(e.style.display="none",r(60).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;n--;)delete c.prototype[o[n]];return c()};t.exports=Object.create||function(t,e){var r;return null!==t?(s.prototype=n(t),r=new s,s.prototype=null,r[a]=t):r=c(),void 0===e?r:i(r,e)}},46:function(t,e,r){var n=r(26);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},48:function(t,e,r){t.exports=!r(5)&&!r(12)(function(){return 7!=Object.defineProperty(r(40)("div"),"a",{get:function(){return 7}}).a})},49:function(t,e,r){t.exports=r(7)},5:function(t,e,r){t.exports=!r(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},50:function(t,e,r){var n=r(6),i=r(11),o=r(74)(!1),a=r(31)("IE_PROTO");t.exports=function(t,e){var r,s=i(t),c=0,u=[];for(r in s)r!=a&&n(s,r)&&u.push(r);for(;e.length>c;)n(s,r=e[c++])&&(~o(u,r)||u.push(r));return u}},51:function(t,e,r){t.exports={default:r(144),__esModule:!0}},52:function(t,e,r){var n=r(50),i=r(33).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},53:function(t,e,r){"use strict";var n=r(71)(!0);r(44)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},54:function(t,e,r){var n=r(11),i=r(52).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(n(t))}},55:function(t,e,r){"use strict";var n=r(2),i=r(6),o=r(5),a=r(13),s=r(49),c=r(79).KEY,u=r(12),l=r(32),h=r(27),f=r(21),d=r(3),p=r(36),v=r(37),m=r(86),g=r(81),y=r(9),b=r(10),_=r(24),w=r(11),S=r(34),A=r(20),x=r(45),T=r(54),k=r(87),P=r(35),C=r(8),R=r(15),E=k.f,O=C.f,L=T.f,I=n.Symbol,M=n.JSON,F=M&&M.stringify,D=d("_hidden"),j=d("toPrimitive"),N={}.propertyIsEnumerable,U=l("symbol-registry"),B=l("symbols"),W=l("op-symbols"),q=Object.prototype,Y="function"==typeof I&&!!P.f,z=n.QObject,X=!z||!z.prototype||!z.prototype.findChild,H=o&&u(function(){return 7!=x(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=E(q,e);n&&delete q[e],O(t,e,r),n&&t!==q&&O(q,e,n)}:O,G=function(t){var e=B[t]=x(I.prototype);return e._k=t,e},V=Y&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},$=function(t,e,r){return t===q&&$(W,e,r),y(t),e=S(e,!0),y(r),i(B,e)?(r.enumerable?(i(t,D)&&t[D][e]&&(t[D][e]=!1),r=x(r,{enumerable:A(0,!1)})):(i(t,D)||O(t,D,A(1,{})),t[D][e]=!0),H(t,e,r)):O(t,e,r)},Q=function(t,e){y(t);for(var r,n=m(e=w(e)),i=0,o=n.length;o>i;)$(t,r=n[i++],e[r]);return t},K=function(t,e){return void 0===e?x(t):Q(x(t),e)},J=function(t){var e=N.call(this,t=S(t,!0));return!(this===q&&i(B,t)&&!i(W,t))&&(!(e||!i(this,t)||!i(B,t)||i(this,D)&&this[D][t])||e)},Z=function(t,e){if(t=w(t),e=S(e,!0),t!==q||!i(B,e)||i(W,e)){var r=E(t,e);return!r||!i(B,e)||i(t,D)&&t[D][e]||(r.enumerable=!0),r}},tt=function(t){for(var e,r=L(w(t)),n=[],o=0;r.length>o;)i(B,e=r[o++])||e==D||e==c||n.push(e);return n},et=function(t){for(var e,r=t===q,n=L(r?W:w(t)),o=[],a=0;n.length>a;)!i(B,e=n[a++])||r&&!i(q,e)||o.push(B[e]);return o};Y||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(r){this===q&&e.call(W,r),i(this,D)&&i(this[D],t)&&(this[D][t]=!1),H(this,t,A(1,r))};return o&&X&&H(q,t,{configurable:!0,set:e}),G(t)},s(I.prototype,"toString",function(){return this._k}),k.f=Z,C.f=$,r(52).f=T.f=tt,r(25).f=J,P.f=et,o&&!r(16)&&s(q,"propertyIsEnumerable",J,!0),p.f=function(t){return G(d(t))}),a(a.G+a.W+a.F*!Y,{Symbol:I});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;rt.length>nt;)d(rt[nt++]);for(var it=R(d.store),ot=0;it.length>ot;)v(it[ot++]);a(a.S+a.F*!Y,"Symbol",{for:function(t){return i(U,t+="")?U[t]:U[t]=I(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){X=!0},useSimple:function(){X=!1}}),a(a.S+a.F*!Y,"Object",{create:K,defineProperty:$,defineProperties:Q,getOwnPropertyDescriptor:Z,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=u(function(){P.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return P.f(_(t))}}),M&&a(a.S+a.F*(!Y||u(function(){var t=I();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(b(e)||void 0!==t)&&!V(t))return g(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!V(e))return e}),n[1]=e,F.apply(M,n)}}),I.prototype[j]||r(7)(I.prototype,j,I.prototype.valueOf),h(I,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},56:function(t,e,r){r(77);for(var n=r(2),i=r(7),o=r(18),a=r(3)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],l=n[u],h=l&&l.prototype;h&&!h[a]&&i(h,a,u),o[u]=o.Array}},57:function(t,e,r){var n=r(13),i=r(0),o=r(12);t.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},58:function(t,e,r){t.exports={default:r(82),__esModule:!0}},59:function(t,e,r){var n=r(30),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},6:function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},60:function(t,e,r){var n=r(2).document;t.exports=n&&n.documentElement},61:function(t,e){},62:function(t,e,r){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var i=r(65),o=r.n(i),a=r(96),s=r.n(a),c=r(28),u=r.n(c),l=r(99),h=r.n(l),f=h.a,d=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,v=function(){try{if(!u.a)return!1;var t=new String("abc");if(t[5]="de","5"===s()(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==s()(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===o()(u()({},n)).join("")}catch(t){return!1}}()?u.a:function(t,e){for(var r,i,o=n(t),a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var s in r)d.call(r,s)&&(o[s]=r[s]);if(f){i=f(r);for(var c=0;c<i.length;c++)p.call(r,i[c])&&(o[i[c]]=r[i[c]])}}return o};e.a=v},64:function(t,e,r){"use strict";e.a={props:{zIndex:{type:Number,default:100},maskClosable:{type:Boolean,default:!1}}}},65:function(t,e,r){t.exports={default:r(94),__esModule:!0}},68:function(t,e,r){"use strict";function n(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=i(e),this.reject=i(r)}var i=r(39);t.exports.f=function(t){return new n(t)}},7:function(t,e,r){var n=r(8),i=r(20);t.exports=r(5)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},70:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},71:function(t,e,r){var n=r(30),i=r(29);t.exports=function(t){return function(e,r){var o,a,s=String(i(e)),c=n(r),u=s.length;return c<0||c>=u?t?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},72:function(t,e,r){"use strict";var n=r(45),i=r(20),o=r(27),a={};r(7)(a,r(3)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(a,{next:i(1,r)}),o(t,e+" Iterator")}},73:function(t,e,r){var n=r(8),i=r(9),o=r(15);t.exports=r(5)?Object.defineProperties:function(t,e){i(t);for(var r,a=o(e),s=a.length,c=0;s>c;)n.f(t,r=a[c++],e[r]);return t}},74:function(t,e,r){var n=r(11),i=r(59),o=r(75);t.exports=function(t){return function(e,r,a){var s,c=n(e),u=i(c.length),l=o(a,u);if(t&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}}},75:function(t,e,r){var n=r(30),i=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?i(t+e,0):o(t,e)}},76:function(t,e,r){var n=r(6),i=r(24),o=r(31)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},77:function(t,e,r){"use strict";var n=r(78),i=r(70),o=r(18),a=r(11);t.exports=r(44)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,r):"values"==e?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},78:function(t,e){t.exports=function(){}},79:function(t,e,r){var n=r(21)("meta"),i=r(10),o=r(6),a=r(8).f,s=0,c=Object.isExtensible||function(){return!0},u=!r(12)(function(){return c(Object.preventExtensions({}))}),l=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!c(t))return"F";if(!e)return"E";l(t)}return t[n].i},f=function(t,e){if(!o(t,n)){if(!c(t))return!0;if(!e)return!1;l(t)}return t[n].w},d=function(t){return u&&p.NEED&&c(t)&&!o(t,n)&&l(t),t},p=t.exports={KEY:n,NEED:!1,fastKey:h,getWeak:f,onFreeze:d}},8:function(t,e,r){var n=r(9),i=r(48),o=r(34),a=Object.defineProperty;e.f=r(5)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},80:function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(88),o=n(i),a=r(90),s=n(a),c="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===c(o.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":c(t)}},81:function(t,e,r){var n=r(26);t.exports=Array.isArray||function(t){return"Array"==n(t)}},82:function(t,e,r){var n=r(0),i=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},83:function(t,e,r){r(84),t.exports=r(0).Object.assign},84:function(t,e,r){var n=r(13);n(n.S+n.F,"Object",{assign:r(85)})},85:function(t,e,r){"use strict";var n=r(5),i=r(15),o=r(35),a=r(25),s=r(24),c=r(46),u=Object.assign;t.exports=!u||r(12)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[r]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var r=s(t),u=arguments.length,l=1,h=o.f,f=a.f;u>l;)for(var d,p=c(arguments[l++]),v=h?i(p).concat(h(p)):i(p),m=v.length,g=0;m>g;)d=v[g++],n&&!f.call(p,d)||(r[d]=p[d]);return r}:u},86:function(t,e,r){var n=r(15),i=r(35),o=r(25);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,s=r(t),c=o.f,u=0;s.length>u;)c.call(t,a=s[u++])&&e.push(a);return e}},87:function(t,e,r){var n=r(25),i=r(20),o=r(11),a=r(34),s=r(6),c=r(48),u=Object.getOwnPropertyDescriptor;e.f=r(5)?u:function(t,e){if(t=o(t),e=a(e,!0),c)try{return u(t,e)}catch(t){}if(s(t,e))return i(!n.f.call(t,e),t[e])}},88:function(t,e,r){t.exports={default:r(89),__esModule:!0}},89:function(t,e,r){r(53),r(56),t.exports=r(36).f("iterator")},9:function(t,e,r){var n=r(10);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},90:function(t,e,r){t.exports={default:r(91),__esModule:!0}},91:function(t,e,r){r(55),r(61),r(92),r(93),t.exports=r(0).Symbol},92:function(t,e,r){r(37)("asyncIterator")},93:function(t,e,r){r(37)("observable")},94:function(t,e,r){r(95),t.exports=r(0).Object.keys},95:function(t,e,r){var n=r(24),i=r(15);r(57)("keys",function(){return function(t){return i(n(t))}})},96:function(t,e,r){t.exports={default:r(97),__esModule:!0}},97:function(t,e,r){r(98);var n=r(0).Object;t.exports=function(t){return n.getOwnPropertyNames(t)}},98:function(t,e,r){r(57)("getOwnPropertyNames",function(){return r(54).f})},99:function(t,e,r){t.exports={default:r(100),__esModule:!0}}})});
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GoldProtocolLayer=e():t.GoldProtocolLayer=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../lib",e(e.s=2338)}({0:function(t,e){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},1:function(t,e,r){"use strict";function n(t,e,r,n,i,o,a,s){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o);var l;if(a?(l=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(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var h=u.render;u.render=function(t,e){return l.call(e),h(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}e.a=n},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,r){r(55),t.exports=r(0).Object.getOwnPropertySymbols},101:function(t,e,r){"use strict";function n(t){var e={},r={},n={};for(var c in t)if(t.hasOwnProperty(c))if(-1!==s.indexOf(c))e[c]=t[c];else if(a.test(c)){var u=a.exec(c)[1];u=Object(o.a)(u),n[u]=t[c]}else r[c]=t[c];return e.on=Object(i.a)(n,e.on),e.props=Object(i.a)(r,e.props),e}e.a=n;var i=r(62),o=r(102),a=new RegExp(/^on(.+)/),s=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},102:function(t,e,r){"use strict";function n(t,e){var r=c(t,e);return r.charAt(0).toLowerCase()+r.slice(1)}e.a=n;var i=r(28),o=r.n(i),a=r(4),s=function(t){for(var e=!1,r=!1,n=!1,i=0;i<t.length;i++){var o=t[i];e&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(t=t.slice(0,i)+"-"+t.slice(i),e=!1,n=r,r=!0,i++):r&&n&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(t=t.slice(0,i-1)+"-"+t.slice(i-1),n=r,r=!1,e=!0):(e=o.toLowerCase()===o&&o.toUpperCase()!==o,n=r,r=o.toUpperCase()===o&&o.toLowerCase()!==o)}return t},c=function(t,e){if("string"!=typeof t&&!Object(a.p)(t))throw new TypeError("Expected the input to be `string | string[]`");e=o()({pascalCase:!1},e);return t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim(),0===t.length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=s(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}).replace(/\d+(\w|$)/g,function(t){return t.toUpperCase()}),function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t}(t))}},103:function(t,e,r){"use strict";function n(t,e,r,n){var o=void 0,a=void 0,s=new t({render:function(t){var r=a&&a(t);return r&&!Object(i.p)(r)&&(r=[r]),t(e,o,r||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return s.updateRenderData=function(t,e){o=t,a=e},s.updateRenderData(r,n),s.$mount(),s.init(),s.$children[0]}e.a=n;var i=r(4)},104:function(t,e,r){"use strict";var n=r(19),i=r(64);e.a={name:"ActPopup",mixins:[n.a,i.a],props:{type:{type:String,default:""},mask:{type:Boolean,default:!0},content:{type:String,default:""},center:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.7},pointerEvent:{type:String,default:""},zIndex:{type:[String,Number],default:"999"},topBorderRadius:{type:Boolean,default:!1}},computed:{typeClass:function(){return this.type?"act-"+this.type:""},maskBgColor:function(){return"rgba(0, 0, 0, "+this.opacity+")"}},methods:{maskClick:function(t){this.$emit("mask-click",t)}}}},1047:function(t,e,r){"use strict";var n=r(4);e.a={name:"ActGoldProtocol",data:function(){return{protocolChecked:this.checkState}},props:{text:{type:String,default:"本人已阅读并同意"},tips:{type:String,default:""},protocols:{type:Array,default:function(){return[]}},checkState:{type:Boolean,default:!0},showCheckBox:{type:Boolean,default:!0},textColor:{type:String,default:"#666"},textFontSize:{type:[Number,String],default:13},openInWindow:{type:Boolean,default:!1},brandColor:{type:String,default:"#8c7fee"},zIndex:{type:[String,Number],default:999},disableChecked:{type:Boolean,default:!1}},computed:{fontSize:function(){return Object(n.g)(this.textFontSize)}},methods:{getCheckBoxState:function(){return!!this.protocolChecked},onClick:function(t){var e=this,r=!1;if((r=t.openInWindow?t.openInWindow:!1!==t.openInWindow&&this.openInWindow)&&t.data){if(Object(n.p)(t.data)&&1===t.data.length&&t.data[0].src)return this.openUrl(t.data[0].src);if(!Object(n.p)(t.data)&&t.data.src)return this.openUrl(t.data.src)}this.docPop&&this.docPop.remove(),this.docPop=this.$createDocPop({zIndex:this.zIndex,title:t.title,docData:this.docData(t),brandColor:this.brandColor,openInWindow:r},function(t){return[t("template",{slot:"content"},[e.$slots.content])]}).show()},docData:function(t){return Object(n.p)(t.data)?t.data:[t.data]},protocolToggle:function(){this.disableChecked||(this.protocolChecked=!this.protocolChecked,this.$emit("toggle",this.protocolChecked))},openUrl:function(t){n.I.isMobile||n.I.isWx?location.href=t:window.open(t,"_blank")}},watch:{checkState:function(t){this.protocolChecked=t}}}},106:function(t,e,r){var n=r(26),i=r(3)("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,r,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=a(e=Object(t),i))?r:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},107:function(t,e,r){"use strict";function n(t){s||r(121)}var i=r(104),o=r(122),a=r(1),s=!1,c=n,u=Object(a.a)(i.a,o.a,o.b,!1,c,null,null);u.options.__file="src\\components\\common\\popup.vue",e.a=u.exports},11:function(t,e,r){var n=r(46),i=r(29);t.exports=function(t){return n(i(t))}},110:function(t,e,r){var n=r(9),i=r(39),o=r(3)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[o])?e:i(r)}},111:function(t,e,r){var n,i,o,a=r(38),s=r(146),c=r(60),u=r(40),l=r(2),h=l.process,f=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,v=l.Dispatch,m=0,g={},y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){y.call(t.data)};f&&d||(f=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return g[++m]=function(){s("function"==typeof t?t:Function(t),e)},n(m),m},d=function(t){delete g[t]},"process"==r(26)(h)?n=function(t){h.nextTick(a(y,t,1))}:v&&v.now?n=function(t){v.now(a(y,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=b,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):n="onreadystatechange"in u("script")?function(t){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:f,clear:d}},112:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},113:function(t,e,r){var n=r(9),i=r(10),o=r(68);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},114:function(t,e,r){"use strict";function n(t){t.interceptors.response.use(function(t){return t},function(t){var e={403:"请求被拒绝,请联系客服处理",404:"您访问的资源不可用,请联系客服处理",502:"服务器网关出错,请稍后重试",503:"服务器维护中,请稍后重试",504:"服务器请求超时,请稍后重试"},r="";return r=t&&t.response&&t.response.status?e[t.response.status]?e[t.response.status]+"("+t.response.status+")":"请求失败,请稍后重试("+t.response.status+")":t&&t.message&&/timeout/i.test(t.message)?"请求超时,请稍后重试":"请求失败,请稍后重试",s.a.reject(new Error(r))})}function i(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return new s.a(function(i,o){var a=u.a.create();n(a),a.request({method:"post",url:t,data:e,timeout:r,withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest"}}).then(function(t){i(t)}).catch(function(t){o(t)})})}function o(t){return u.a.get(t).then(function(t){return s.a.resolve(t.data)})}e.a=n,e.d=i,e.c=o;var a=r(51),s=r.n(a),c=r(167),u=r.n(c);e.b=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return new s.a(function(i,o){var a=u.a.create();n(a),a.request({method:"post",url:t,data:e,timeout:r,withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/x-www-form-urlencoded"},transformRequest:[function(t){function e(t,e){var r=0,n=t.length;if(void 0===n||"[object Function]"===Object.prototype.toString.call(t)){for(var i in t)if(!1===e.call(t[i],i,t[i]))break}else for(var o=t[0];r<n&&!1!==e.call(o,r,o);o=t[++r]);return t}function r(t,n,i){var o=void 0,a="[object Array]"===Object.prototype.toString.call(n),s="[object Object]"===Object.prototype.toString.call(n);e(n,function(e,n){o=Object.prototype.toString.call(n),i&&(e=i+"["+(s||"[object Object]"===o||"[object Array]"===o?e:"")+"]"),!i&&a?t.add(n.name,n.value):"[object Array]"===o||"[object Object]"===o?r(t,n,e):t.add(e,n)})}if(t){return function(t){var e=[];return e.add=function(t,e){"[object Function]"===Object.prototype.toString.call(e)&&(e=e()),null==e&&(e=""),this.push(encodeURIComponent(t)+"="+encodeURIComponent(e))},r(e,t),e.join("&").replace(/%20/g,"+")}(t)}}]}).then(function(t){i(t)}).catch(function(t){o(t)})})}},115:function(t,e,r){var n=r(106),i=r(3)("iterator"),o=r(18);t.exports=r(0).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[n(t)]}},116:function(t,e,r){"use strict";function n(t){t.preventDefault()}var i={watch:{isVisible:function(t){t?document.body.addEventListener("touchmove",n,{passive:!1}):document.body.removeEventListener("touchmove",n,{passive:!1})}},beforeDestroy:function(){document.body.removeEventListener("touchmove",n,{passive:!1})}};e.a=i},117:function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},119:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(153);e.default=n.a},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},121:function(t,e){},1212:function(t,e,r){"use strict";function n(t){s||r(1213)}var i=r(1047),o=r(1214),a=r(1),s=!1,c=n,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-1da413b4",null);u.options.__file="src\\components\\GoldProtocol\\src\\index.vue",e.a=u.exports},1213:function(t,e){},1214:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"act-gold-protocol"},[t.showCheckBox?r("div",{staticClass:"act-gold-protocol-check",on:{click:function(e){return e.stopPropagation(),t.protocolToggle.apply(null,arguments)}}},[r("i",{staticClass:"act-gold-protocol-icon",class:{checked:t.protocolChecked},style:{"background-color":t.protocolChecked?t.brandColor:""}})]):t._e(),t._v(" "),r("div",{staticClass:"act-gold-protocol-text",style:{color:t.textColor,"font-size":t.fontSize}},[r("span",{domProps:{innerHTML:t._s(t.text)}}),t._v(" "),t._l(t.protocols,function(e,n){return[n==t.protocols.length-1&&0!=n?r("span",{key:n+"span"},[t._v("和")]):0!=n?r("span",{key:n+"span"},[t._v("、")]):t._e(),t._v(" "),e.track?r("a",{key:n+"a",staticClass:"act-gold-protocol-item",style:{color:t.brandColor},attrs:{"data-track":e.track},on:{click:function(r){return t.onClick(e)}}},[t._v("《"+t._s(e.title)+"》")]):r("a",{key:n+"a",staticClass:"act-gold-protocol-item",style:{color:t.brandColor},attrs:{"data-track":e.track||""},on:{click:function(r){return t.onClick(e)}}},[t._v("《"+t._s(e.title)+"》")])]}),t._v(" "),r("span",{domProps:{innerHTML:t._s(t.tips)}})],2)])},i=[];n._withStripped=!0},122:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-popup",class:t.typeClass,style:{pointerEvents:t.pointerEvent,zIndex:t.zIndex}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.mask,expression:"mask"}],staticClass:"act-popup-mask act-row act-middle",style:{backgroundColor:t.maskBgColor},on:{click:t.maskClick}},[t._t("mask")],2),t._v(" "),r("div",{staticClass:"act-popup-container",class:{"act-popup-center":t.center}},[t.$slots.default?r("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius}},[t._t("default")],2):r("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius},domProps:{innerHTML:t._s(t.content)}})])])},i=[];n._withStripped=!0},123:function(t,e,r){t.exports={default:r(186),__esModule:!0}},124:function(t,e,r){"use strict";function n(t){s||r(201)}var i=r(155),o=r(202),a=r(1),s=!1,c=n,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-f3b563a0",null);u.options.__file="src\\components\\common\\goldlayer.vue",e.a=u.exports},1248:function(t,e,r){"use strict";var n=r(1301),i=r.n(n),o=r(123),a=r.n(o),s=r(124),c=r(327),u=r(19),l=r(4);e.a={name:"ActGoldReadTerms",mixins:[u.a],components:{scrollZoom:c.a,ActGoldLayer:s.a},data:function(){return{curIndex:1,readState:[],termsInfo:[],readTimer:null,countdown:0,prevTime:void 0}},computed:{readTermsLength:function(){return this.readTerms.length},bookTitle:function(){var t=this.termsInfo[this.curIndex-1]&&this.termsInfo[this.curIndex-1].title;return t?"《"+t+"》":""},comfirmText:function(){var t=this.confirmButtonText||"已完整阅读并确认"+this.bookTitle,e=void 0;return this.readTimer&&(e=(this.confirmButtonText?this.confirmButtonText:"已完整阅读并确认")+"("+this.countdown+"s)"),e||t},curForceReadToPageEnd:function(){return this.termsInfo[this.curIndex-1].hasOwnProperty("forceReadToPageEnd")?this.termsInfo[this.curIndex-1].forceReadToPageEnd:this.forceRead||!1},curForceReadSeconds:function(){return this.termsInfo[this.curIndex-1].hasOwnProperty("forceReadSeconds")?this.termsInfo[this.curIndex-1].forceReadSeconds:this.forceReadTime||0},isWebTester:function(){return l.x}},props:{readTerms:{type:Array,default:function(){return[]}},forceRead:{type:Boolean,default:!0},forceReadTime:{type:Number,default:0},confirmButtonText:{type:String,default:""},cancelButtonText:{type:String,default:"暂不同意"},brandColor:{type:String,default:"#8c7fee"},beforeClose:{type:Function,default:null},beforePreOrNext:{type:Function,default:null}},methods:{getTerms:function(t){for(var e=[],r=t,n=Array.isArray(r),i=0,r=n?r:a()(r);;){var o;if(n){if(i>=r.length)break;o=r[i++]}else{if(i=r.next(),i.done)break;o=i.value}var s=o,c={type:Number(s.type),title:s.title,urls:s.urls,innerHTML:s.innerHTML||"",souceFile:s.src,init:!1,classObject:{"scroll-pdf":!1,"scroll-word":!1},myScroll:null,styleImg:{height:"auto"},freeScroll:!0,scrollbar:{fade:!0,interactive:!0},bounce:{bottom:!1,left:!1,right:!1,top:!1},zoom:!0,listenScrollInit:!0,listenScrollEnd:!0,listenZoomEnd:!1,listenScroll:!1,mouseWheel:!0,currentScale:1,scrollY:0,cWidth:0,cHeight:0,liTag:null,wordHtml:"",currentPage:0,isLoading:!1};s.hasOwnProperty("forceReadToPageEnd")&&(c.forceReadToPageEnd=!!+s.forceReadToPageEnd),s.hasOwnProperty("forceReadSeconds")&&(c.forceReadSeconds=+s.forceReadSeconds),e.push(c)}this.termsInfo=e},showDoc:function(t){var e=this;this.$nextTick(function(){e.$refs.scrollZoom.showDoc(t)})},changeHeaderBtnsColor:function(t){var e=this,r=this.$refs,n=r.prevbtn,i=r.nextbtn,o=function(){e.readTimer?i.style.color="":i.style.color=e.brandColor};1==~~t&&~~t<this.readTermsLength?(n&&(n.style.color=""),i&&o()):~~t>1&&~~t<this.readTermsLength?(n&&(n.style.color=this.brandColor),i&&o()):~~t>1&&~~t===this.readTermsLength&&(n&&(n.style.color=this.brandColor),i&&(i.style.color=""))},handleActionBeforePreOrNext:function(t,e){function r(t){i.curIndex>1&&(i.curIndex=o-1,2===i.termsInfo[i.curIndex-1].type&&i.showDoc(i.curIndex-1))}function n(t){i.curIndex<i.readTermsLength&&i.next(t)}var i=this,o=~~this.curIndex,a=this.termsInfo[o-1];this.beforePreOrNext?this.beforePreOrNext({action:t,next:function(i){!1!==i&&("prevClick"===t&&r(e),"nextClick"===t&&n(e))},curTermsInfo:a,curIndex:i.curIndex,readTermsLength:i.readTermsLength,isLast:i.curIndex===i.readTermsLength,curIsReadEnd:i.readState[i.curIndex-1].readEnd}):("prevClick"===t&&r(e),"nextClick"===t&&n(e))},handlePrev:function(t){1!==this.curIndex&&(this.readTimer&&this.resetReadTimer(),this.handleActionBeforePreOrNext("prevClick",t))},handleNext:function(t){this.readTimer||this.handleActionBeforePreOrNext("nextClick",t)},beforeShowDoc:function(t){+this.curForceReadSeconds>0&&!this.readState[t-1].readEnough&&this.setReadTimer(),this.changeHeaderBtnsColor(t),this.getCurTermInfo({curIndex:t,isReadEnd:this.readState[t-1].readEnd,totalLegth:this.readTermsLength,curTerm:this.termsInfo[t-1]}),!this.curForceReadToPageEnd&&!this.curForceReadSeconds&&1==~~this.readTermsLength&&this.canINext(!0)},timerFn:function(t){if(this.prevTime){if(t-this.prevTime>1e3){if(!(this.countdown>0))return this.countdown=0,this.readState[this.curIndex-1].readEnough=!0,this.changeHeaderBtnsColor(this.curIndex),void this.resetReadTimer();this.prevTime=t,this.countdown=--this.countdown}}else this.prevTime=t;this.readTimer=requestAnimationFrame(this.timerFn)},setReadTimer:function(){this.readTimer&&this.resetReadTimer(),this.countdown=i()(this.curForceReadSeconds),this.readTimer=requestAnimationFrame(this.timerFn),this.changeHeaderBtnsColor()},resetReadTimer:function(){cancelAnimationFrame(this.readTimer),this.readTimer=null},next:function(t){var e=~~this.curIndex;!this.curForceReadToPageEnd&&this.canINext(!0),this.curForceReadToPageEnd&&this.readState[e-1].readEnd||!this.curForceReadToPageEnd?e<this.readTermsLength&&(this.curIndex=e+1,this.showDoc(e)):this.curForceReadToPageEnd&&!this.readState[e-1].readEnd&&this.showToast("请观看至页面底部,完整阅读全部内容")},getCurTermInfo:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.$emit("getCurTermInfo",t)},canINext:function(t){this.readTermsLength&&(this.readState[this.curIndex-1].readEnd=t,this.getCurTermInfo({curIndex:this.curIndex,isReadEnd:this.readState[this.curIndex-1].readEnd,totalLegth:this.readTermsLength,curTerm:this.termsInfo.length&&this.termsInfo[this.curIndex-1]}))},confirm:function(t){if(!this.readTimer){this.curForceReadToPageEnd&&!this.readState[this.readTermsLength-1].readEnd&&this.curIndex<=this.readTermsLength||!this.curForceReadToPageEnd&&this.curIndex<this.readTermsLength?this.next(t):this.handleAction("confirm",t)}},cancel:function(t){this.handleAction("cancel",t)},handleAction:function(t,e){var r=this,n=this.termsInfo[this.curIndex-1];this.beforeClose?this.beforeClose(t,function(n){!1!==n&&(r.hide(),r.$emit(t,e))},n):(this.hide(),this.$emit(t,e))},showToast:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;this.hideToast(),this.toast||(this.toast=this.$createToast()),this.toast.show(t,e)},hideToast:function(){this.toast&&this.toast.hide()},preventMove:function(t){t._prevent=!0},reset:function(){this.curIndex=1,this.readState=new Array(this.readTermsLength).fill(void 0).map(function(t){return{readEnd:!1,readEnough:!1}})},mucReadTerms:function(t){var e=this;if(this.isWebTester){if("step"===t._mucMethod){!function r(){if(e.isVisible){var n=~~e.curIndex;e.curForceReadToPageEnd&&!e.readState[n-1].readEnd&&e.canINext(!0),setTimeout(function(){e.confirm(t),n<e.readTermsLength&&e.$nextTick(function(){r()})},1e3*(e.countdown+1))}}()}else this.handleAction("confirm",t)}}},mounted:function(){this.changeHeaderBtnsColor(this.curIndex)},watch:{isVisible:function(t){t&&(this.reset(),this.getTerms(this.readTerms),this.beforeShowDoc(this.curIndex),this.showDoc(0)),!1==!!t&&this.resetReadTimer()},curIndex:function(t){this.beforeShowDoc(t)}}}},1249:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},127:function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},128:function(t,e,r){"use strict";function n(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=r(17);t.exports=function(t,e,r){if(!e)return t;var o;if(r)o=r(e);else if(i.isURLSearchParams(e))o=e.toString();else{var a=[];i.forEach(e,function(t,e){null!==t&&void 0!==t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(n(e)+"="+n(t))}))}),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},129:function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},1299:function(t,e,r){"use strict";function n(t){s||r(1300)}var i=r(1248),o=r(1306),a=r(1),s=!1,c=n,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-21ba486f",null);u.options.__file="src\\components\\GoldReadTerms\\src\\index.vue",e.a=u.exports},13:function(t,e,r){var n=r(2),i=r(0),o=r(38),a=r(7),s=r(6),c=function(t,e,r){var u,l,h,f=t&c.F,d=t&c.G,p=t&c.S,v=t&c.P,m=t&c.B,g=t&c.W,y=d?i:i[e]||(i[e]={}),b=y.prototype,_=d?n:p?n[e]:(n[e]||{}).prototype;d&&(r=e);for(u in r)(l=!f&&_&&void 0!==_[u])&&s(y,u)||(h=l?_[u]:r[u],y[u]=d&&"function"!=typeof _[u]?r[u]:m&&l?o(h,n):g&&_[u]==h?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):v&&"function"==typeof h?o(Function.call,h):h,v&&((y.virtual||(y.virtual={}))[u]=h,t&c.R&&b&&!b[u]&&a(b,u,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},130:function(t,e,r){"use strict";(function(e){function n(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var i=r(17),o=r(173),a={"Content-Type":"application/x-www-form-urlencoded"},s={adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=r(131):void 0!==e&&"[object process]"===Object.prototype.toString.call(e)&&(t=r(131)),t}(),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(n(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(n(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(t){s.headers[t]={}}),i.forEach(["post","put","patch"],function(t){s.headers[t]=i.merge(a)}),t.exports=s}).call(e,r(154))},1300:function(t,e){},1301:function(t,e,r){t.exports={default:r(1302),__esModule:!0}},1302:function(t,e,r){r(1303),t.exports=r(0).Number.parseInt},1303:function(t,e,r){var n=r(13),i=r(1304);n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},1304:function(t,e,r){var n=r(2).parseInt,i=r(1305).trim,o=r(1249),a=/^[-+]?0[xX]/;t.exports=8!==n(o+"08")||22!==n(o+"0x16")?function(t,e){var r=i(String(t),3);return n(r,e>>>0||(a.test(r)?16:10))}:n},1305:function(t,e,r){var n=r(13),i=r(29),o=r(12),a=r(1249),s="["+a+"]",c="​…",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),h=function(t,e,r){var i={},s=o(function(){return!!a[t]()||c[t]()!=c}),u=i[t]=s?e(f):a[t];r&&(i[r]=u),n(n.P+n.F*s,"String",i)},f=h.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(l,"")),t};t.exports=h},1306:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("act-gold-layer",{attrs:{visible:t.isVisible,center:!1}},[r("div",{staticClass:"readterms-title",attrs:{slot:"header"},slot:"header"},[t.$slots.myheader?[t._t("myheader")]:[t.readTermsLength>1?r("span",{ref:"prevbtn",staticClass:"prev h-btn",on:{click:t.handlePrev}},[t._v("上一页")]):t._e(),t._v(" "),r("span",[t._v("请阅读以下内容"),t.readTermsLength>1?r("span",[t._v("("+t._s(t.curIndex)+"/"+t._s(t.readTermsLength)+")")]):t._e()]),t._v(" "),t.readTermsLength>1?r("span",{ref:"nextbtn",staticClass:"next h-btn",on:{click:t.handleNext}},[t._v("下一页")]):t._e()]],2),t._v(" "),t.isVisible?r("scroll-zoom",{ref:"scrollZoom",staticClass:"scroll-zoom",attrs:{termsInfo:t.termsInfo,forceRead:t.curForceReadToPageEnd,docIndex:t.curIndex-1,brandColor:t.brandColor},on:{canINext:t.canINext}}):t._e(),t._v(" "),t.$slots.footer?r("div",[t._t("footer")],2):[r("div",{staticClass:"bottom-btn-placeholder"}),t._v(" "),r("div",{staticClass:"readterms-btns"},[r("div",{staticClass:"f-btn left",on:{click:t.cancel}},[r("p",[t._v(t._s(t.cancelButtonText))])]),t._v(" "),r("div",{staticClass:"f-btn right",class:{disabled:t.readTimer},style:{background:t.readTimer?"#f2f2f2":t.brandColor},attrs:{"data-key":[t.isWebTester?"readTermsBtn":""]},on:{click:t.confirm,mucReadTerms:t.mucReadTerms}},[r("p",[t._v(t._s(t.comfirmText))]),t._v(" "),t.$slots.fIcon?t._t("fIcon"):t._e()],2)])]],2)},i=[];n._withStripped=!0},131:function(t,e,r){"use strict";var n=r(17),i=r(174),o=r(128),a=r(176),s=r(179),c=r(180),u=r(132);t.exports=function(t){return new Promise(function(e,l){var h=t.data,f=t.headers;n.isFormData(h)&&delete f["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",v=t.auth.password||"";f.Authorization="Basic "+btoa(p+":"+v)}var m=a(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),o(m,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,n=t.responseType&&"text"!==t.responseType?d.response:d.responseText,o={data:n,status:d.status,statusText:d.statusText,headers:r,config:t,request:d};i(e,l,o),d=null}},d.onabort=function(){d&&(l(u("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){l(u("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),l(u(e,t,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var g=r(181),y=(t.withCredentials||c(m))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;y&&(f[t.xsrfHeaderName]=y)}if("setRequestHeader"in d&&n.forEach(f,function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete f[e]:d.setRequestHeader(e,t)}),n.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){d&&(d.abort(),l(t),d=null)}),void 0===h&&(h=null),d.send(h)})}},132:function(t,e,r){"use strict";var n=r(175);t.exports=function(t,e,r,i,o){var a=new Error(t);return n(a,e,r,i,o)}},133:function(t,e,r){"use strict";var n=r(17);t.exports=function(t,e){e=e||{};var r={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(i,function(t){void 0!==e[t]&&(r[t]=e[t])}),n.forEach(o,function(i){n.isObject(e[i])?r[i]=n.deepMerge(t[i],e[i]):void 0!==e[i]?r[i]=e[i]:n.isObject(t[i])?r[i]=n.deepMerge(t[i]):void 0!==t[i]&&(r[i]=t[i])}),n.forEach(a,function(n){void 0!==e[n]?r[n]=e[n]:void 0!==t[n]&&(r[n]=t[n])});var s=i.concat(o).concat(a),c=Object.keys(e).filter(function(t){return-1===s.indexOf(t)});return n.forEach(c,function(n){void 0!==e[n]?r[n]=e[n]:void 0!==t[n]&&(r[n]=t[n])}),r}},134:function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},136:function(t,e,r){var n=r(38),i=r(138),o=r(139),a=r(9),s=r(59),c=r(115),u={},l={},e=t.exports=function(t,e,r,h,f){var d,p,v,m,g=f?function(){return t}:c(t),y=n(r,h,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(d=s(t.length);d>b;b++)if((m=e?y(a(p=t[b])[0],p[1]):y(t[b]))===u||m===l)return m}else for(v=g.call(t);!(p=v.next()).done;)if((m=i(v,y,p.value,e))===u||m===l)return m};e.BREAK=u,e.RETURN=l},138:function(t,e,r){var n=r(9);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},139:function(t,e,r){var n=r(18),i=r(3)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},14:function(t,e,r){"use strict";function n(t,e){return function(r,n){var a=this,s=Object(i.a)(r),c=Object(o.a)(e,t,s,n),u=c.$parent,l=c.remove,h=c.show,f=c.hide;return c.remove=function(){c.$removed=!0,l&&l.call(this),u.destroy()},c.show=function(){return h&&h.call.apply(h,[this].concat(Array.prototype.slice.call(arguments))),this},c.hide=function(){return f&&f.call.apply(f,[this].concat(Array.prototype.slice.call(arguments))),this},a&&a._isVue&&a.$once("hook:beforeDestroy",function(){c.$removed||c.remove()}),c}}e.a=n;var i=r(101),o=r(103)},140:function(t,e,r){var n=r(3)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},t(o)}catch(t){}return r}},141:function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},142:function(t,e,r){var n=r(7);t.exports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}},143:function(t,e,r){"use strict";var n=r(2),i=r(0),o=r(8),a=r(5),s=r(3)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:n[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},144:function(t,e,r){r(61),r(53),r(56),r(145),r(149),r(150),t.exports=r(0).Promise},145:function(t,e,r){"use strict";var n,i,o,a,s=r(16),c=r(2),u=r(38),l=r(106),h=r(13),f=r(10),d=r(39),p=r(141),v=r(136),m=r(110),g=r(111).set,y=r(147)(),b=r(68),_=r(112),w=r(148),S=r(113),A=c.TypeError,x=c.process,T=x&&x.versions,k=T&&T.v8||"",P=c.Promise,C="process"==l(x),R=function(){},E=i=b.f,O=!!function(){try{var t=P.resolve(1),e=(t.constructor={})[r(3)("species")]=function(t){t(R,R)};return(C||"function"==typeof PromiseRejectionEvent)&&t.then(R)instanceof e&&0!==k.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),L=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var r=t._c;y(function(){for(var n=t._v,i=1==t._s,o=0;r.length>o;)!function(e){var r,o,a,s=i?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{s?(i||(2==t._h&&D(t),t._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===e.promise?u(A("Promise-chain cycle")):(o=L(r))?o.call(r,c,u):c(r)):u(n)}catch(t){l&&!a&&l.exit(),u(t)}}(r[o++]);t._c=[],t._n=!1,e&&!t._h&&M(t)})}},M=function(t){g.call(c,function(){var e,r,n,i=t._v,o=F(t);if(o&&(e=_(function(){C?x.emit("unhandledRejection",i,t):(r=c.onunhandledrejection)?r({promise:t,reason:i}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",i)}),t._h=C||F(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},F=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){g.call(c,function(){var e;C?x.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},j=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},N=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw A("Promise can't be resolved itself");(e=L(t))?y(function(){var n={_w:r,_d:!1};try{e.call(t,u(N,n,1),u(j,n,1))}catch(t){j.call(n,t)}}):(r._v=t,r._s=1,I(r,!1))}catch(t){j.call({_w:r,_d:!1},t)}}};O||(P=function(t){p(this,P,"Promise","_h"),d(t),n.call(this);try{t(u(N,this,1),u(j,this,1))}catch(t){j.call(this,t)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(142)(P.prototype,{then:function(t,e){var r=E(m(this,P));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=C?x.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&I(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=u(N,t,1),this.reject=u(j,t,1)},b.f=E=function(t){return t===P||t===a?new o(t):i(t)}),h(h.G+h.W+h.F*!O,{Promise:P}),r(27)(P,"Promise"),r(143)("Promise"),a=r(0).Promise,h(h.S+h.F*!O,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!O),"Promise",{resolve:function(t){return S(s&&this===a?P:this,t)}}),h(h.S+h.F*!(O&&r(140)(function(t){P.all(t).catch(R)})),"Promise",{all:function(t){var e=this,r=E(e),n=r.resolve,i=r.reject,o=_(function(){var r=[],o=0,a=1;v(t,!1,function(t){var s=o++,c=!1;r.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,r[s]=t,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=E(e),n=r.reject,i=_(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},146:function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},147:function(t,e,r){var n=r(2),i=r(111).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,c="process"==r(26)(a);t.exports=function(){var t,e,r,u=function(){var n,i;for(c&&(n=a.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(c)r=function(){a.nextTick(u)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(u)}}else r=function(){i.call(n,u)};else{var h=!0,f=document.createTextNode("");new o(u).observe(f,{characterData:!0}),r=function(){f.data=h=!h}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},148:function(t,e,r){var n=r(2),i=n.navigator;t.exports=i&&i.userAgent||""},149:function(t,e,r){"use strict";var n=r(13),i=r(0),o=r(2),a=r(110),s=r(113);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return s(e,t()).then(function(){return r})}:t,r?function(r){return s(e,t()).then(function(){throw r})}:t)}})},15:function(t,e,r){var n=r(50),i=r(33);t.exports=Object.keys||function(t){return n(t,i)}},150:function(t,e,r){"use strict";var n=r(13),i=r(68),o=r(112);n(n.S,"Promise",{try:function(t){var e=i.f(this),r=o(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},152:function(t,e,r){"use strict";r.d(e,"a",function(){return i});var n=r(4),i=function(){var t=!0;if(n.I.isIOS){var e=Object(n.l)(navigator.userAgent.toLowerCase());if(!e)return t;Number(""+e.major+e.minor)>=133&&(t=!1)}return t}()},153:function(t,e,r){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function i(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=0;i<r.length;i++){var o=r[i];for(var a in o)t[a]=o[a]}return t}function o(t){return void 0===t||null===t}function a(t,e){return Math.sqrt(t*t+e*e)}function s(t){return!1!==D&&("standard"===D?"transitionEnd"===t?"transitionend":t:D+t.charAt(0).toUpperCase()+t.substr(1))}function c(t,e,r,n){t.addEventListener(e,r,{passive:!1,capture:!!n})}function u(t,e,r,n){t.removeEventListener(e,r,{passive:!1,capture:!!n})}function l(t){for(var e=0,r=0;t;)e-=t.offsetLeft,r-=t.offsetTop,t=t.offsetParent;return{left:e,top:r}}function h(t){var e=t.getBoundingClientRect();return{left:-(e.left+window.pageXOffset),top:-(e.top+window.pageYOffset)}}function f(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function d(t,e){for(var r in e)if(e[r].test(t[r]))return!0;return!1}function p(t,e){var r=document.createEvent("Event");r.initEvent(e,!0,!0),r.pageX=t.pageX,r.pageY=t.pageY,t.target.dispatchEvent(r)}function v(t){function e(){a=document.createEvent("Event"),a.initEvent(r,s,c),i(a,o)}var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",n=void 0;"mouseup"===t.type||"mousecancel"===t.type?n=t:"touchend"!==t.type&&"touchcancel"!==t.type||(n=t.changedTouches[0]);var o={};n&&(o.screenX=n.screenX||0,o.screenY=n.screenY||0,o.clientX=n.clientX||0,o.clientY=n.clientY||0);var a=void 0,s=!0,c=!0;if("undefined"!=typeof MouseEvent)try{a=new MouseEvent(r,i({bubbles:s,cancelable:c},o))}catch(t){e()}else e();a.forwardedTouchEvent=!0,a._constructed=!0,t.target.dispatchEvent(a)}function m(t){v(t,"dblclick")}function g(t,e){e.firstChild?y(t,e.firstChild):e.appendChild(t)}function y(t,e){e.parentNode.insertBefore(t,e)}function b(t,e){t.removeChild(e)}function _(t,e,r,n,i,o,a){var s=t-e,c=Math.abs(s)/r,u=a.deceleration,l=a.itemHeight,h=a.swipeBounceTime,f=a.wheel,d=a.swipeTime,p=d,v=f?4:15,m=t+c/u*(s<0?-1:1);return f&&l&&(m=Math.round(m/l)*l),m<n?(m=o?Math.max(n-o/4,n-o/v*c):n,p=h):m>i&&(m=o?Math.min(i+o/4,i+o/v*c):i,p=h),{destination:Math.round(m),duration:p}}function w(){}function S(t){console.error("[BScroll warn]: "+t)}function A(t,e){if(!t)throw new Error("[BScroll] "+e)}function x(t){var e=document.createElement("div"),r=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",r.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",r.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",r.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",r.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(r),e}function T(t,e){this.wrapper=e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=e.direction,e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,e.interactive&&this._addDOMEvents()}function k(t){if(t&&t.classList)return t.classList.contains("tombstone")}function P(t,e){var r=this;this.options=e,A("function"==typeof this.options.createTombstone,"Infinite scroll need createTombstone Function to create tombstone"),A("function"==typeof this.options.fetch,"Infinite scroll need fetch Function to fetch new data."),A("function"==typeof this.options.render,"Infinite scroll need render Function to render each item."),this.firstAttachedItem=0,this.lastAttachedItem=0,this.anchorScrollTop=0,this.anchorItem={index:0,offset:0},this.tombstoneHeight=0,this.tombstoneWidth=0,this.tombstones=[],this.items=[],this.loadedItems=0,this.requestInProgress=!1,this.hasMore=!0,this.scroller=t,this.wrapperEl=this.scroller.wrapper,this.scrollerEl=this.scroller.scroller,this.scroller.on("scroll",function(){r.onScroll()}),this.scroller.on("resize",function(){r.onResize()}),this.onResize()}function C(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||S("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||S("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(t,e)}var R=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)},O="undefined"!=typeof window,L=O&&navigator.userAgent.toLowerCase(),I=L&&/wechatdevtools/.test(L),M=L&&L.indexOf("android")>0,F=O&&document.createElement("div").style,D=function(){if(!O)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==F[t[e]])return e;return!1}(),j=s("transform"),N=O&&s("perspective")in F,U=O&&("ontouchstart"in window||I),B=!1!==j,W=O&&s("transition")in F,q={transform:j,transitionTimingFunction:s("transitionTimingFunction"),transitionDuration:s("transitionDuration"),transitionDelay:s("transitionDelay"),transformOrigin:s("transformOrigin"),transitionEnd:s("transitionEnd")},Y=1,z={touchstart:Y,touchmove:Y,touchend:Y,mousedown:2,mousemove:2,mouseup:2},X={startX:0,startY:0,scrollX:!1,scrollY:!0,freeScroll:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!0,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.0015,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:0,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:!1,disableMouse:U,disableTouch:!U,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1,stopPropagation:!1,zoom:!1,infinity:!1,dblclick:!1},H={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},G=function(){return O?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:w}(),V=function(){return O?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:w}(),$=1,Q=-1,K=1,J=-1,Z=1,tt=3;T.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t);break;case"touchmove":case"mousemove":this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this._end(t)}},T.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},T.prototype.fade=function(t,e){var r=this;if(!e||this.visible){var n=t?250:500;t=t?"1":"0",this.wrapperStyle[q.transitionDuration]=n+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){r.wrapperStyle.opacity=t,r.visible=+t},0)}},T.prototype.updatePosition=function(){if("vertical"===this.direction){var t=Math.round(this.sizeRatioY*this.scroller.y);if(t<0){this.transitionTime(500);var e=Math.max(this.indicatorHeight+3*t,8);this.indicatorStyle.height=e+"px",t=0}else if(t>this.maxPosY){this.transitionTime(500);var r=Math.max(this.indicatorHeight-3*(t-this.maxPosY),8);this.indicatorStyle.height=r+"px",t=this.maxPosY+this.indicatorHeight-r}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[q.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var n=Math.round(this.sizeRatioX*this.scroller.x);if(n<0){this.transitionTime(500);var i=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=i+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var o=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=o+"px",n=this.maxPosX+this.indicatorWidth-o}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[q.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},T.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[q.transitionDuration]=t+"ms"},T.prototype.transitionTimingFunction=function(t){this.indicatorStyle[q.transitionTimingFunction]=t},T.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},T.prototype._start=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=n(),this._handleMoveEvents(c),this.scroller.trigger("beforeScrollStart")},T.prototype._move=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart"),this.moved=!0;var r=e.pageX-this.lastPointX;this.lastPointX=e.pageX;var n=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var i=this.x+r,o=this.y+n;this._pos(i,o)},T.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(u);var e=this.scroller.options.snap;if(e){var r=e.speed,n=e.easing,i=void 0===n?H.bounce:n,o=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),a=r||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-o.x),1e3),Math.min(Math.abs(this.scroller.y-o.y),1e3)),300);this.scroller.x===o.x&&this.scroller.y===o.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=o,this.scroller.scrollTo(o.x,o.y,a,i))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},T.prototype._pos=function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=Math.round(t/this.sizeRatioX),e=Math.round(e/this.sizeRatioY),this.scroller.scrollTo(t,e),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},T.prototype._shouldShow=function(){return"vertical"===this.direction&&this.scroller.hasVerticalScroll||"horizontal"===this.direction&&this.scroller.hasHorizontalScroll?(this.wrapper.style.display="",!0):(this.wrapper.style.display="none",!1)},T.prototype._calculate=function(){if("vertical"===this.direction){var t=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(t*t/(this.scroller.scrollerHeight||t||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=t-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{var e=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(e*e/(this.scroller.scrollerWidth||e||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=e-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},T.prototype._addDOMEvents=function(){var t=c;this._handleDOMEvents(t)},T.prototype._removeDOMEvents=function(){var t=u;this._handleDOMEvents(t),this._handleMoveEvents(t)},T.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},T.prototype._handleDOMEvents=function(t){this.scroller.options.disableTouch||(t(this.indicator,"touchstart",this),t(window,"touchend",this)),this.scroller.options.disableMouse||(t(this.indicator,"mousedown",this),t(window,"mouseup",this))};var et=2e3;P.prototype.onScroll=function(){var t=-this.scroller.y,e=t-this.anchorScrollTop;this.anchorItem=0===t?{index:0,offset:0}:this._calculateAnchoredItem(this.anchorItem,e),this.anchorScrollTop=t;var r=this._calculateAnchoredItem(this.anchorItem,this.wrapperEl.offsetHeight),n=this.anchorItem.index,i=r.index;e<0?(n-=30,i+=10):(n-=10,i+=30),this.fill(n,i),this.maybeRequestContent()},P.prototype.onResize=function(){var t=this.options.createTombstone();t.style.position="absolute",this.scrollerEl.appendChild(t),t.style.display="",this.tombstoneHeight=t.offsetHeight,this.tombstoneWidth=t.offsetWidth,this.scrollerEl.removeChild(t);for(var e=0;e<this.items.length;e++)this.items[e].height=this.items[e].width=0;this.onScroll()},P.prototype.fill=function(t,e){this.firstAttachedItem=Math.max(0,t),this.hasMore||(e=Math.min(e,this.items.length)),this.lastAttachedItem=e,this.attachContent()},P.prototype.maybeRequestContent=function(){var t=this;if(!this.requestInProgress&&this.hasMore){var e=this.lastAttachedItem-this.loadedItems;e<=0||(this.requestInProgress=!0,this.options.fetch(e).then(function(e){if(t.requestInProgress=!1,e)t.addContent(e);else{t.hasMore=!1;var r=t._removeTombstones(),n=0;t.anchorItem.index<=t.items.length?(n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=r,n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}}))}},P.prototype.addContent=function(t){for(var e=0;e<t.length;e++)this.items.length<=this.loadedItems&&this._addItem(),this.items[this.loadedItems++].data=t[e];this.attachContent(),this.maybeRequestContent()},P.prototype.attachContent=function(){var t=this._collectUnusedNodes(),e=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var r=this._fixScrollPosition();this._setupAnimations(e,r)},P.prototype.resetMore=function(){this.hasMore=!0},P.prototype._removeTombstones=function(){for(var t=void 0,e=0,r=this.items.length,n=0;n<r;n++){var i=this.items[n].node,o=this.items[n].data;i&&!k(i)||o||(t||(t=n),i&&this.scrollerEl.removeChild(i))}return e=r-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),e},P.prototype._collectUnusedNodes=function(){for(var t=[],e=0;e<this.items.length;e++)if(e!==this.firstAttachedItem){var r=this.items[e].node;r&&(k(r)?(this.tombstones.push(r),this.tombstones[this.tombstones.length-1].style.display="none"):t.push(r)),this.items[e].node=null}else e=this.lastAttachedItem-1;return t},P.prototype._createDOMNodes=function(t){for(var e={},r=this.firstAttachedItem;r<this.lastAttachedItem;r++){for(;this.items.length<=r;)this._addItem();var n=this.items[r].node,i=this.items[r].data;if(n){if(!k(n)||!i)continue;n.style.zIndex=1,e[r]=[n,this.items[r].top-this.anchorScrollTop],this.items[r].node=null}var o=i?this.options.render(i,t.pop()):this._getTombStone();o.style.position="absolute",this.items[r].top=-1,this.scrollerEl.appendChild(o),this.items[r].node=o}return e},P.prototype._cleanupUnusedNodes=function(t){for(;t.length;)this.scrollerEl.removeChild(t.pop())},P.prototype._cacheNodeSize=function(){for(var t=this.firstAttachedItem;t<this.lastAttachedItem;t++)this.items[t].data&&!this.items[t].height&&(this.items[t].height=this.items[t].node.offsetHeight,this.items[t].width=this.items[t].node.offsetWidth)},P.prototype._fixScrollPosition=function(){this.anchorScrollTop=0;for(var t=0;t<this.anchorItem.index;t++)this.anchorScrollTop+=this.items[t].height||this.tombstoneHeight;this.anchorScrollTop+=this.anchorItem.offset;for(var e=this.anchorScrollTop-this.anchorItem.offset,r=this.anchorItem.index;r>this.firstAttachedItem;)e-=this.items[r-1].height||this.tombstoneHeight,r--;return e},P.prototype._setupAnimations=function(t,e){var r=this;for(var n in t){var i=t[n];this.items[n].node.style.transform="translateY("+(this.anchorScrollTop+i[1])+"px) scale("+this.tombstoneWidth/this.items[n].width+", "+this.tombstoneHeight/this.items[n].height+")",this.items[n].node.offsetTop,i[0].offsetTop,this.items[n].node.style.transition="transform 200ms"}for(var o=this.firstAttachedItem;o<this.lastAttachedItem;o++){var a=t[o];if(a){var s=a[0];s.style.transition="transform 200ms, opacity 200ms",s.style.transform="translateY("+e+"px) scale("+this.items[o].width/this.tombstoneWidth+", "+this.items[o].height/this.tombstoneHeight+")",s.style.opacity=0}e!==this.items[o].top&&(a||(this.items[o].node.style.transition=""),this.items[o].node.style.transform="translateY("+e+"px)"),this.items[o].top=e,e+=this.items[o].height||this.tombstoneHeight}this.scroller.maxScrollY=-(e-this.wrapperEl.offsetHeight+(this.hasMore?et:0)),setTimeout(function(){for(var e in t){var n=t[e];n[0].style.display="none",r.tombstones.push(n[0])}},200)},P.prototype._getTombStone=function(){var t=this.tombstones.pop();return t?(t.style.display="",t.style.opacity=1,t.style.transform="",t.style.transition="",t):this.options.createTombstone()},P.prototype._addItem=function(){this.items.push({data:null,node:null,height:0,width:0,top:0})},P.prototype._calculateAnchoredItem=function(t,e){if(0===e)return t;var r=t.index,n=0;if((e+=t.offset)<0){for(;e<0&&r>0&&this.items[r-1].height;)e+=this.items[r-1].height,r--;n=Math.max(-r,Math.ceil(Math.min(e,0)/this.tombstoneHeight))}else{for(;e>0&&r<this.items.length&&this.items[r].height&&this.items[r].height<e;)e-=this.items[r].height,r++;(r>=this.items.length||!this.items[r].height)&&(n=Math.floor(Math.max(e,0)/this.tombstoneHeight))}return r+=n,e-=n*this.tombstoneHeight,{index:r,offset:e}},function(t){t.prototype._init=function(t,e){this._handleOptions(e),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype.setScale=function(t){this.lastScale=o(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=i({},X,t),this.translateZ=this.options.HWCompositing&&N?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&W,this.options.useTransform=this.options.useTransform&&B,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},t.prototype._addDOMEvents=function(){var t=c;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=u;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){var e=this.options.bindToWrapper?this.wrapper:window;t(window,"orientationchange",this),t(window,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(e,"mousemove",this),t(e,"mousecancel",this),t(e,"mouseup",this)),U&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(e,"touchmove",this),t(e,"touchcancel",this),t(e,"touchend",this)),t(this.scroller,q.transitionEnd,this)},t.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel(),this.options.zoom&&this._initZoom(),this.options.infinity&&this._initInfinite()},t.prototype._watchTransition=function(){if("function"==typeof Object.defineProperty){var t=this,e=!1,r=this.useTransition?"isInTransition":"isAnimating";Object.defineProperty(this,r,{get:function(){return e},set:function(r){e=r;for(var n=t.scroller.children.length?t.scroller.children:[t.scroller],i=e&&!t.pulling?"none":"auto",o=0;o<n.length;o++)n[o].style.pointerEvents=i}})}},t.prototype._handleAutoBlur=function(){this.on("scrollStart",function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()})},t.prototype._initDOMObserver=function(){var t=this;if("undefined"!=typeof MutationObserver){var e=void 0,r=new MutationObserver(function(r){if(!t._shouldNotRefresh()){for(var n=!1,i=!1,o=0;o<r.length;o++){var a=r[o];if("attributes"!==a.type){n=!0;break}if(a.target!==t.scroller){i=!0;break}}n?t.refresh():i&&(clearTimeout(e),e=setTimeout(function(){t._shouldNotRefresh()||t.refresh()},60))}}),n={attributes:!0,childList:!0,subtree:!0};r.observe(this.scroller,n),this.on("destroy",function(){r.disconnect()})}else this._checkDOMUpdate()},t.prototype._shouldNotRefresh=function(){var t=this.x>this.minScrollX||this.x<this.maxScrollX||this.y>this.minScrollY||this.y<this.maxScrollY;return this.isInTransition||this.stopFromTransition||t},t.prototype._checkDOMUpdate=function(){function t(){if(!this.destroyed){r=f(this.scroller);var t=r.width,o=r.height;n===t&&i===o||this.refresh(),n=t,i=o,e.call(this)}}function e(){var e=this;setTimeout(function(){t.call(e)},1e3)}var r=f(this.scroller),n=r.width,i=r.height;e.call(this)},t.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t),this.options.zoom&&t.touches&&t.touches.length>1&&this._zoomStart(t);break;case"touchmove":case"mousemove":this.options.zoom&&t.touches&&t.touches.length>1?this._zoom(t):this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.scaled?this._zoomEnd(t):this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"click":this.enabled&&!t._constructed&&(d(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation()));break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._onMouseWheel(t)}},t.prototype.refresh=function(){var t="static"===window.getComputedStyle(this.wrapper,null).position,e=f(this.wrapper);this.wrapperWidth=e.width,this.wrapperHeight=e.height;var r=f(this.scroller);this.scrollerWidth=Math.round(r.width*this.scale),this.scrollerHeight=Math.round(r.height*this.scale),this.relativeX=r.left,this.relativeY=r.top,t&&(this.relativeX-=e.left,this.relativeY-=e.top),this.minScrollX=0,this.minScrollY=0;var n=this.options.wheel;n?(this.items=this.scroller.children,this.options.itemHeight=this.itemHeight=this.items.length?this.scrollerHeight/this.items.length:0,void 0===this.selectedIndex&&(this.selectedIndex=n.selectedIndex||0),this.options.startY=-this.selectedIndex*this.itemHeight,this.maxScrollX=0,this.maxScrollY=-this.itemHeight*(this.items.length-1)):(this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.options.infinity||(this.maxScrollY=this.wrapperHeight-this.scrollerHeight),this.maxScrollX<0?(this.maxScrollX-=this.relativeX,this.minScrollX=-this.relativeX):this.scale>1&&(this.maxScrollX=this.maxScrollX/2-this.relativeX,this.minScrollX=this.maxScrollX),this.maxScrollY<0?(this.maxScrollY-=this.relativeY,this.minScrollY=-this.relativeY):this.scale>1&&(this.maxScrollY=this.maxScrollY/2-this.relativeY,this.minScrollY=this.maxScrollY)),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<this.minScrollX,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<this.minScrollY,this.hasHorizontalScroll||(this.maxScrollX=this.minScrollX,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=this.minScrollY,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=l(this.wrapper),this.trigger("refresh"),!this.scaled&&this.resetPosition()},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1}}(C),function(t){t.prototype._start=function(t){var e=z[t.type];if((e===Y||0===t.button)&&!(!this.enabled||this.destroyed||this.initiated&&this.initiated!==e)){this.initiated=e,this.options.preventDefault&&!d(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.movingDirectionX=0,this.movingDirectionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=n(),this.options.wheel&&(this.target=t.target),this.stop();var r=t.touches?t.touches[0]:t;this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=r.pageX,this.pointY=r.pageY,this.trigger("beforeScrollStart")}},t.prototype._move=function(t){if(this.enabled&&!this.destroyed&&z[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches?t.touches[0]:t,r=e.pageX-this.pointX,i=e.pageY-this.pointY;this.pointX=e.pageX,this.pointY=e.pageY,this.distX+=r,this.distY+=i;var o=Math.abs(this.distX),a=Math.abs(this.distY),s=n();if(!(s-this.endTime>this.options.momentumLimitTime&&a<this.options.momentumLimitDistance&&o<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(o>a+this.options.directionLockThreshold?this.directionLocked="h":a>=o+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);i=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);r=0}r=this.hasHorizontalScroll?r:0,i=this.hasVerticalScroll?i:0,this.movingDirectionX=r>0?J:r<0?K:0,this.movingDirectionY=i>0?Q:i<0?$:0;var c=this.x+r,u=this.y+i,l=!1,h=!1,f=!1,d=!1,p=this.options.bounce;!1!==p&&(l=void 0===p.top||p.top,h=void 0===p.bottom||p.bottom,f=void 0===p.left||p.left,d=void 0===p.right||p.right),(c>this.minScrollX||c<this.maxScrollX)&&(c=c>this.minScrollX&&f||c<this.maxScrollX&&d?this.x+r/3:c>this.minScrollX?this.minScrollX:this.maxScrollX),(u>this.minScrollY||u<this.maxScrollY)&&(u=u>this.minScrollY&&l||u<this.maxScrollY&&h?this.y+i/3:u>this.minScrollY?this.minScrollY:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(c,u),s-this.startTime>this.options.momentumLimitTime&&(this.startTime=s,this.startX=this.x,this.startY=this.y,this.options.probeType===Z&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>Z&&this.trigger("scroll",{x:this.x,y:this.y});var v=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,m=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,g=this.pointX-v,y=this.pointY-m;(g>document.documentElement.clientWidth-this.options.momentumLimitDistance||g<this.options.momentumLimitDistance||y<this.options.momentumLimitDistance||y>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)}}},t.prototype._end=function(t){if(this.enabled&&!this.destroyed&&z[t.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!d(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var e=Math.round(this.x),r=Math.round(this.y),i=e-this.absStartX,o=r-this.absStartY;if(this.directionX=i>0?J:i<0?K:0,this.directionY=o>0?Q:o<0?$:0,!this.options.pullDownRefresh||!this._checkPullDown()){if(this._checkClick(t))return void this.trigger("scrollCancel");if(!this.resetPosition(this.options.bounceTime,H.bounce)){this._translate(e,r),this.endTime=n();var a=this.endTime-this.startTime,s=Math.abs(e-this.startX),c=Math.abs(r-this.startY);if(this._events.flick&&a<this.options.flickLimitTime&&s<this.options.flickLimitDistance&&c<this.options.flickLimitDistance)return void this.trigger("flick");var u=0;if(this.options.momentum&&a<this.options.momentumLimitTime&&(c>this.options.momentumLimitDistance||s>this.options.momentumLimitDistance)){var l=!1,h=!1,f=!1,p=!1,v=this.options.bounce;!1!==v&&(l=void 0===v.top||v.top,h=void 0===v.bottom||v.bottom,f=void 0===v.left||v.left,p=void 0===v.right||v.right);var m=this.directionX===J&&f||this.directionX===K&&p?this.wrapperWidth:0,g=this.directionY===Q&&l||this.directionY===$&&h?this.wrapperHeight:0,y=this.hasHorizontalScroll?_(this.x,this.startX,a,this.maxScrollX,this.minScrollX,m,this.options):{destination:e,duration:0},b=this.hasVerticalScroll?_(this.y,this.startY,a,this.maxScrollY,this.minScrollY,g,this.options):{destination:r,duration:0};e=y.destination,r=b.destination,u=Math.max(y.duration,b.duration),this.isInTransition=!0}else this.options.wheel&&(r=Math.round(r/this.itemHeight)*this.itemHeight,u=this.options.wheel.adjustTime||400);var w=H.swipe;if(this.options.snap){var S=this._nearestSnap(e,r);this.currentPage=S,u=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(e-S.x),1e3),Math.min(Math.abs(r-S.y),1e3)),300),e=S.x,r=S.y,this.directionX=0,this.directionY=0,w=this.options.snap.easing||H.bounce}if(e!==this.x||r!==this.y)return(e>this.minScrollX||e<this.maxScrollX||r>this.minScrollY||r<this.maxScrollY)&&(w=H.swipeBounce),void this.scrollTo(e,r,u,w);this.options.wheel&&(this.selectedIndex=Math.round(Math.abs(this.y/this.itemHeight))),this.trigger("scrollEnd",{x:this.x,y:this.y})}}}},t.prototype._checkClick=function(t){var e=this.stopFromTransition&&!this.pulling;if(this.stopFromTransition=!1,!this.moved){if(this.options.wheel){if(this.target&&this.target.classList.contains(this.options.wheel.wheelWrapperClass)){var r=Math.abs(Math.round(this.y/this.itemHeight)),i=Math.round((this.pointY+h(this.wrapper).top-this.wrapperHeight/2)/this.itemHeight);this.target=this.items[r+i]}return this.scrollToElement(this.target,this.options.wheel.adjustTime||400,!0,!0,H.swipe),!0}if(!e){var o=this.options.dblclick,a=!1;if(o&&this.lastClickTime){var s=o.delay,c=void 0===s?300:s;n()-this.lastClickTime<c&&(a=!0,m(t))}return this.options.tap&&p(t,this.options.tap),this.options.click&&!d(t.target,this.options.preventDefaultException)&&v(t),this.lastClickTime=a?null:n(),!0}return!1}return!1},t.prototype._resize=function(){var t=this;this.enabled&&(M&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.refresh()},this.options.resizePolling))},t.prototype._startProbe=function(){function t(){var r=e.getComputedPosition();if(e.trigger("scroll",r),!e.isInTransition)return void e.trigger("scrollEnd",r);e.probeTimer=G(t)}V(this.probeTimer),this.probeTimer=G(t);var e=this},t.prototype._transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[q.transitionDuration]=t+"ms",this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[q.transitionDuration]=t+"ms";if(this.indicators)for(var r=0;r<this.indicators.length;r++)this.indicators[r].transitionTime(t)},t.prototype._transitionTimingFunction=function(t){if(this.scrollerStyle[q.transitionTimingFunction]=t,this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[q.transitionTimingFunction]=t;if(this.indicators)for(var r=0;r<this.indicators.length;r++)this.indicators[r].transitionTimingFunction(t)},t.prototype._transitionEnd=function(t){t.target===this.scroller&&this.isInTransition&&(this._transitionTime(),(!this.pulling||this.movingDirectionY===$)&&!this.resetPosition(this.options.bounceTime,H.bounce)&&(this.isInTransition=!1,this.options.probeType!==tt&&this.trigger("scrollEnd",{x:this.x,y:this.y})))},t.prototype._translate=function(t,e,r){if(A(!o(t)&&!o(e),"Translate x or y is null or undefined."),o(r)&&(r=this.scale),this.options.useTransform?this.scrollerStyle[q.transform]="translate("+t+"px,"+e+"px) scale("+r+")"+this.translateZ:(t=Math.round(t),e=Math.round(e),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=e+"px"),this.options.wheel)for(var n=this.options.wheel.rotate,i=void 0===n?25:n,a=0;a<this.items.length;a++){var s=i*(e/this.itemHeight+a);this.items[a].style[q.transform]="rotateX("+s+"deg)"}if(this.x=t,this.y=e,this.setScale(r),this.indicators)for(var c=0;c<this.indicators.length;c++)this.indicators[c].updatePosition()},t.prototype._animate=function(t,e,r,i){function o(){var d=n();if(d>=f)return a.isAnimating=!1,a._translate(t,e,l),a.trigger("scroll",{x:a.x,y:a.y}),void(a.pulling||a.resetPosition(a.options.bounceTime)||a.trigger("scrollEnd",{x:a.x,y:a.y}));d=(d-h)/r;var p=i(d),v=(t-s)*p+s,m=(e-c)*p+c,g=(l-u)*p+u;a._translate(v,m,g),a.isAnimating&&(a.animateTimer=G(o)),a.options.probeType===tt&&a.trigger("scroll",{x:a.x,y:a.y})}var a=this,s=this.x,c=this.y,u=this.lastScale,l=this.scale,h=n(),f=h+r;this.isAnimating=!0,V(this.animateTimer),o()},t.prototype.scrollBy=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:H.bounce;t=this.x+t,e=this.y+e,this.scrollTo(t,e,r,n)},t.prototype.scrollTo=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:H.bounce;this.isInTransition=this.options.useTransition&&r>0&&(t!==this.x||e!==this.y),!r||this.options.useTransition?(this._transitionTimingFunction(n.style),this._transitionTime(r),this._translate(t,e),r&&this.options.probeType===tt&&this._startProbe(),r||t===this.x&&e===this.y||(this.trigger("scroll",{x:t,y:e}),this._reflow=document.body.offsetHeight,this.resetPosition(this.options.bounceTime,H.bounce)||this.trigger("scrollEnd",{x:t,y:e})),this.options.wheel&&(e>this.minScrollY?this.selectedIndex=0:e<this.maxScrollY?this.selectedIndex=this.items.length-1:this.selectedIndex=Math.round(Math.abs(e/this.itemHeight)))):this._animate(t,e,r,n.fn)},t.prototype.scrollToElement=function(t,e,r,n,i){if(t&&(t=t.nodeType?t:this.scroller.querySelector(t),!this.options.wheel||t.classList.contains(this.options.wheel.wheelItemClass))){var o=l(t);o.left-=this.wrapperOffset.left,o.top-=this.wrapperOffset.top,!0===r&&(r=Math.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===n&&(n=Math.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),o.left-=r||0,o.top-=n||0,o.left=o.left>this.minScrollX?this.minScrollX:o.left<this.maxScrollX?this.maxScrollX:o.left,o.top=o.top>this.minScrollY?this.minScrollY:o.top<this.maxScrollY?this.maxScrollY:o.top,this.options.wheel&&(o.top=Math.round(o.top/this.itemHeight)*this.itemHeight),this.scrollTo(o.left,o.top,e,i)}},t.prototype.resetPosition=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H.bounce,r=this.x,n=Math.round(r);!this.hasHorizontalScroll||n>this.minScrollX?r=this.minScrollX:n<this.maxScrollX&&(r=this.maxScrollX);var i=this.y,o=Math.round(i);return!this.hasVerticalScroll||o>this.minScrollY?i=this.minScrollY:o<this.maxScrollY&&(i=this.maxScrollY),(r!==this.x||i!==this.y)&&(this.scrollTo(r,i,t,e),!0)},t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.scroller,null),e=void 0,r=void 0;return this.options.useTransform?(t=t[q.transform].split(")")[0].split(", "),e=+(t[12]||t[4]),r=+(t[13]||t[5])):(e=+t.left.replace(/[^-\d.]/g,""),r=+t.top.replace(/[^-\d.]/g,"")),{x:e,y:r}},t.prototype.stop=function(){if(this.options.useTransition&&this.isInTransition){this.isInTransition=!1,V(this.probeTimer);var t=this.getComputedPosition();this._translate(t.x,t.y),this.options.wheel?this.target=this.items[Math.round(-t.y/this.itemHeight)]:this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0}else!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,V(this.animateTimer),this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0)},t.prototype.destroy=function(){this.destroyed=!0,this.trigger("destroy"),V(this.options.useTransition?this.probeTimer:this.animateTimer),this._removeDOMEvents(),this._events={}}}(C),function(t){t.prototype.on=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events[t]||(this._events[t]=[]),this._events[t].push([e,r])},t.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(n,arguments)}var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;r.fn=e,this.on(t,r)},t.prototype.off=function(t,e){var r=this._events[t];if(r)for(var n=r.length;n--;)(r[n][0]===e||r[n][0]&&r[n][0].fn===e)&&(r[n][0]=void 0)},t.prototype.trigger=function(t){var e=this._events[t];if(e)for(var r=e.length,n=[].concat(E(e)),i=0;i<r;i++){var o=n[i],a=R(o,2),s=a[0],c=a[1];s&&s.apply(c,[].slice.call(arguments,1))}}}(C),function(t){t.prototype._initSnap=function(){var t=this;this.currentPage={};var e=this.options.snap;if(e.loop){var r=this.scroller.children;r.length>1?(g(r[r.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(r[1].cloneNode(!0))):e.loop=!1}var n=e.el;"string"==typeof n&&(n=this.scroller.querySelectorAll(n)),this.on("refresh",function(){if(t.pages=[],t.wrapperWidth&&t.wrapperHeight&&t.scrollerWidth&&t.scrollerHeight){var r=e.stepX||t.wrapperWidth,i=e.stepY||t.wrapperHeight,o=0,a=void 0,s=void 0,c=void 0,u=0,l=void 0,h=0,d=void 0,p=void 0;if(n)for(l=n.length,d=-1;u<l;u++)p=f(n[u]),(0===u||p.left<=f(n[u-1]).left)&&(h=0,d++),t.pages[h]||(t.pages[h]=[]),o=Math.max(-p.left,t.maxScrollX),a=Math.max(-p.top,t.maxScrollY),s=o-Math.round(p.width/2),c=a-Math.round(p.height/2),t.pages[h][d]={x:o,y:a,width:p.width,height:p.height,cx:s,cy:c},o>t.maxScrollX&&h++;else for(s=Math.round(r/2),c=Math.round(i/2);o>-t.scrollerWidth;){for(t.pages[u]=[],l=0,a=0;a>-t.scrollerHeight;)t.pages[u][l]={x:Math.max(o,t.maxScrollX),y:Math.max(a,t.maxScrollY),width:r,height:i,cx:o-s,cy:a-c},a-=i,l++;o-=r,u++}t._checkSnapLoop();var v=e._loopX?1:0,m=e._loopY?1:0;t._goToPage(t.currentPage.pageX||v,t.currentPage.pageY||m,0);var g=e.threshold;g%1==0?(t.snapThresholdX=g,t.snapThresholdY=g):(t.snapThresholdX=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].width*g),t.snapThresholdY=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].height*g))}}),this.on("scrollEnd",function(){e.loop&&(e._loopX?(0===t.currentPage.pageX&&t._goToPage(t.pages.length-2,t.currentPage.pageY,0),t.currentPage.pageX===t.pages.length-1&&t._goToPage(1,t.currentPage.pageY,0)):(0===t.currentPage.pageY&&t._goToPage(t.currentPage.pageX,t.pages[0].length-2,0),t.currentPage.pageY===t.pages[0].length-1&&t._goToPage(t.currentPage.pageX,1,0)))}),!1!==e.listenFlick&&this.on("flick",function(){var r=e.speed||Math.max(Math.max(Math.min(Math.abs(t.x-t.startX),1e3),Math.min(Math.abs(t.y-t.startY),1e3)),300);t._goToPage(t.currentPage.pageX+t.directionX,t.currentPage.pageY+t.directionY,r)}),this.on("destroy",function(){if(e.loop){var r=t.scroller.children;r.length>2&&(b(t.scroller,r[r.length-1]),b(t.scroller,r[0]))}})},t.prototype._checkSnapLoop=function(){var t=this.options.snap;t.loop&&this.pages&&this.pages.length&&(this.pages.length>1&&(t._loopX=!0),this.pages[0]&&this.pages[0].length>1&&(t._loopY=!0),t._loopX&&t._loopY&&S("Loop does not support two direction at the same time."))},t.prototype._nearestSnap=function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var r=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(e-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>this.minScrollX?t=this.minScrollX:t<this.maxScrollX&&(t=this.maxScrollX),e>this.minScrollY?e=this.minScrollY:e<this.maxScrollY&&(e=this.maxScrollY);for(var n=this.pages.length;r<n;r++)if(t>=this.pages[r][0].cx){t=this.pages[r][0].x;break}n=this.pages[r].length;for(var i=0;i<n;i++)if(e>=this.pages[0][i].cy){e=this.pages[0][i].y;break}return r===this.currentPage.pageX&&(r+=this.directionX,r<0?r=0:r>=this.pages.length&&(r=this.pages.length-1),t=this.pages[r][0].x),i===this.currentPage.pageY&&(i+=this.directionY,i<0?i=0:i>=this.pages[0].length&&(i=this.pages[0].length-1),e=this.pages[0][i].y),{x:t,y:e,pageX:r,pageY:i}},t.prototype._goToPage=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments[2],n=arguments[3],i=this.options.snap;if(i&&this.pages&&this.pages.length&&(n=n||i.easing||H.bounce,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),this.pages[t])){e>=this.pages[t].length?e=this.pages[t].length-1:e<0&&(e=0);var o=this.pages[t][e].x,a=this.pages[t][e].y;r=void 0===r?i.speed||Math.max(Math.max(Math.min(Math.abs(o-this.x),1e3),Math.min(Math.abs(a-this.y),1e3)),300):r,this.currentPage={x:o,y:a,pageX:t,pageY:e},this.scrollTo(o,a,r,n)}},t.prototype.goToPage=function(t,e,r,n){var i=this.options.snap;if(i&&this.pages&&this.pages.length){if(i.loop){var o=void 0;i._loopX?(o=this.pages.length-2,t>=o?t=o-1:t<0&&(t=0),t+=1):(o=this.pages[0].length-2,e>=o?e=o-1:e<0&&(e=0),e+=1)}this._goToPage(t,e,r,n)}},t.prototype.next=function(t,e){if(this.options.snap){var r=this.currentPage.pageX,n=this.currentPage.pageY;r++,r>=this.pages.length&&this.hasVerticalScroll&&(r=0,n++),this._goToPage(r,n,t,e)}},t.prototype.prev=function(t,e){if(this.options.snap){var r=this.currentPage.pageX,n=this.currentPage.pageY;r--,r<0&&this.hasVerticalScroll&&(r=0,n--),this._goToPage(r,n,t,e)}},t.prototype.getCurrentPage=function(){var t=this.options.snap;return t?t.loop?t._loopX?i({},this.currentPage,{pageX:this.currentPage.pageX-1}):i({},this.currentPage,{pageY:this.currentPage.pageY-1}):this.currentPage:null}}(C),function(t){t.prototype.wheelTo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.options.wheel&&(this.y=-t*this.itemHeight,this.scrollTo(0,this.y))},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){var t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),void 0===t.selectedIndex&&(t.selectedIndex=0,S("wheel option selectedIndex is required!"))}}(C),function(t){t.prototype._initScrollbar=function(){var t=this,e=this.options.scrollbar,r=e.fade,n=void 0===r||r,i=e.interactive,o=void 0!==i&&i;this.indicators=[];var a=void 0;this.options.scrollX&&(a={el:x("horizontal"),direction:"horizontal",fade:n,interactive:o},this._insertScrollBar(a.el),this.indicators.push(new T(this,a))),this.options.scrollY&&(a={el:x("vertical"),direction:"vertical",fade:n,interactive:o},this._insertScrollBar(a.el),this.indicators.push(new T(this,a))),this.on("refresh",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].refresh()}),n&&(this.on("scrollEnd",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade()}),this.on("scrollCancel",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade()}),this.on("scrollStart",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade(!0)}),this.on("beforeScrollStart",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade(!0,!0)})),this.on("destroy",function(){t._removeScrollBars()})},t.prototype._insertScrollBar=function(t){this.wrapper.appendChild(t)},t.prototype._removeScrollBars=function(){for(var t=0;t<this.indicators.length;t++)this.indicators[t].destroy()}}(C),function(t){t.prototype._initPullDown=function(){this.options.probeType=tt},t.prototype._checkPullDown=function(){var t=this.options.pullDownRefresh,e=t.threshold,r=void 0===e?90:e,n=t.stop,i=void 0===n?40:n;return!(this.directionY!==Q||this.y<r)&&(this.pulling||(this.pulling=!0,this.trigger("pullingDown")),this.scrollTo(this.x,i,this.options.bounceTime,H.bounce),this.pulling)},t.prototype.finishPullDown=function(){this.pulling=!1,this.resetPosition(this.options.bounceTime,H.bounce)},t.prototype.openPullDown=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullDownRefresh=t,this._initPullDown()},t.prototype.closePullDown=function(){this.options.pullDownRefresh=!1}}(C),function(t){t.prototype._initPullUp=function(){this.options.probeType=tt,this.pullupWatching=!1,this._watchPullUp()},t.prototype._watchPullUp=function(){this.pullupWatching||(this.pullupWatching=!0,this.on("scroll",this._checkToEnd))},t.prototype._checkToEnd=function(t){var e=this,r=this.options.pullUpLoad.threshold,n=void 0===r?0:r;this.movingDirectionY===$&&t.y<=this.maxScrollY+n&&(this.once("scrollEnd",function(){e.pullupWatching=!1}),this.trigger("pullingUp"),this.off("scroll",this._checkToEnd))},t.prototype.finishPullUp=function(){var t=this;this.pullupWatching?this.once("scrollEnd",function(){t._watchPullUp()}):this._watchPullUp()},t.prototype.openPullUp=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullUpLoad=t,this._initPullUp()},t.prototype.closePullUp=function(){this.options.pullUpLoad=!1,this.pullupWatching&&(this.pullupWatching=!1,this.off("scroll",this._checkToEnd))}}(C),function(t){t.prototype._initMouseWheel=function(){var t=this;this._handleMouseWheelEvent(c),this.on("destroy",function(){clearTimeout(t.mouseWheelTimer),clearTimeout(t.mouseWheelEndTimer),t._handleMouseWheelEvent(u)}),this.firstWheelOpreation=!0},t.prototype._handleMouseWheelEvent=function(t){t(this.wrapper,"wheel",this),t(this.wrapper,"mousewheel",this),t(this.wrapper,"DOMMouseScroll",this)},t.prototype._onMouseWheel=function(t){var e=this;if(this.enabled){t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.firstWheelOpreation&&this.trigger("scrollStart"),this.firstWheelOpreation=!1;var r=this.options.mouseWheel,n=r.speed,i=void 0===n?20:n,o=r.invert,a=void 0!==o&&o,s=r.easeTime,c=void 0===s?300:s;clearTimeout(this.mouseWheelTimer),this.mouseWheelTimer=setTimeout(function(){e.options.snap||c||e.trigger("scrollEnd",{x:e.x,y:e.y}),e.firstWheelOpreation=!0},400);var u=void 0,l=void 0;switch(!0){case"deltaX"in t:1===t.deltaMode?(u=-t.deltaX*i,l=-t.deltaY*i):(u=-t.deltaX,l=-t.deltaY);break;case"wheelDeltaX"in t:u=t.wheelDeltaX/120*i,l=t.wheelDeltaY/120*i;break;case"wheelDelta"in t:u=l=t.wheelDelta/120*i;break;case"detail"in t:u=l=-t.detail/3*i;break;default:return}var h=a?-1:1;u*=h,l*=h,this.hasVerticalScroll||(u=l,l=0);var f=void 0,d=void 0;if(this.options.snap)return f=this.currentPage.pageX,d=this.currentPage.pageY,u>0?f--:u<0&&f++,l>0?d--:l<0&&d++,void this._goToPage(f,d);f=this.x+Math.round(this.hasHorizontalScroll?u:0),d=this.y+Math.round(this.hasVerticalScroll?l:0),this.movingDirectionX=this.directionX=u>0?-1:u<0?1:0,this.movingDirectionY=this.directionY=l>0?-1:l<0?1:0,f>this.minScrollX?f=this.minScrollX:f<this.maxScrollX&&(f=this.maxScrollX),d>this.minScrollY?d=this.minScrollY:d<this.maxScrollY&&(d=this.maxScrollY);var p=this.y===d;this.scrollTo(f,d,c,H.swipe),this.trigger("scroll",{x:this.x,y:this.y}),clearTimeout(this.mouseWheelEndTimer),p&&(this.mouseWheelEndTimer=setTimeout(function(){e.trigger("scrollEnd",{x:e.x,y:e.y})},c))}}}(C),function(t){t.prototype._initZoom=function(){var t=this.options.zoom,e=t.start,r=void 0===e?1:e,n=t.min,i=void 0===n?1:n,o=t.max,a=void 0===o?4:o;this.scale=Math.min(Math.max(r,i),a),this.setScale(this.scale),this.scrollerStyle[q.transformOrigin]="0 0"},t.prototype._zoomTo=function(t,e,r,n){this.scaled=!0;var i=t/(n||this.scale);this.setScale(t),this.refresh();var o=Math.round(this.startX-(e-this.relativeX)*(i-1)),a=Math.round(this.startY-(r-this.relativeY)*(i-1));o>this.minScrollX?o=this.minScrollX:o<this.maxScrollX&&(o=this.maxScrollX),a>this.minScrollY?a=this.minScrollY:a<this.maxScrollY&&(a=this.maxScrollY),this.x===o&&this.y===a||this.scrollTo(o,a,this.options.bounceTime),this.scaled=!1},t.prototype.zoomTo=function(t,e,r){var n=h(this.wrapper),i=n.left,o=n.top,a=e+i-this.x,s=r+o-this.y;this._zoomTo(t,a,s)},t.prototype._zoomStart=function(t){var e=t.touches[0],r=t.touches[1],n=Math.abs(e.pageX-r.pageX),i=Math.abs(e.pageY-r.pageY);this.startDistance=a(n,i),this.startScale=this.scale;var o=h(this.wrapper),s=o.left,c=o.top;this.originX=Math.abs(e.pageX+r.pageX)/2+s-this.x,this.originY=Math.abs(e.pageY+r.pageY)/2+c-this.y,this.trigger("zoomStart")},t.prototype._zoom=function(t){if(this.enabled&&!this.destroyed&&z[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches[0],r=t.touches[1],n=Math.abs(e.pageX-r.pageX),i=Math.abs(e.pageY-r.pageY),o=a(n,i),s=o/this.startDistance*this.startScale;this.scaled=!0;var c=this.options.zoom,u=c.min,l=void 0===u?1:u,h=c.max,f=void 0===h?4:h;s<l?s=.5*l*Math.pow(2,s/l):s>f&&(s=2*f*Math.pow(.5,f/s));var d=s/this.startScale,p=this.startX-(this.originX-this.relativeX)*(d-1),v=this.startY-(this.originY-this.relativeY)*(d-1);this.setScale(s),this.scrollTo(p,v,0)}},t.prototype._zoomEnd=function(t){if(this.enabled&&!this.destroyed&&z[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.isInTransition=!1,this.isAnimating=!1,this.initiated=0;var e=this.options.zoom,r=e.min,n=void 0===r?1:r,i=e.max,o=void 0===i?4:i,a=this.scale>o?o:this.scale<n?n:this.scale;this._zoomTo(a,this.originX,this.originY,this.startScale),this.trigger("zoomEnd")}}}(C),function(t){t.prototype._initInfinite=function(){this.options.probeType=3,this.maxScrollY=-et,this.infiniteScroller=new P(this,this.options.infinity)}}(C),C.Version="1.12.6",e.a=C},154:function(t,e){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(h===clearTimeout)return clearTimeout(t);if((h===n||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function a(){v&&d&&(v=!1,d.length?p=d.concat(p):m=-1,p.length&&s())}function s(){if(!v){var t=i(a);v=!0;for(var e=p.length;e;){for(d=p,p=[];++m<e;)d&&d[m].run();m=-1,e=p.length}d=null,v=!1,o(t)}}function c(t,e){this.fun=t,this.array=e}function u(){}var l,h,f=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(t){l=r}try{h="function"==typeof clearTimeout?clearTimeout:n}catch(t){h=n}}();var d,p=[],v=!1,m=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];p.push(new c(t,e)),1!==p.length||v||i(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(t){return[]},f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},155:function(t,e,r){"use strict";var n=r(107),i=r(64),o=r(19),a=r(116);e.a={name:"ActGoldLayer",mixins:[i.a,o.a,a.a],components:{ActPopup:n.a},props:{title:{type:String,default:""},mask:{type:Boolean,default:!0},center:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.7},noHeader:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},brandColor:{type:String,default:""}},methods:{close:function(){this.$emit("close")}}}},16:function(t,e){t.exports=!0},1647:function(t,e,r){"use strict";var n=r(1212),i=r(19),o=r(107),a=r(1299);e.a={name:"ActGoldProtocolLayer",mixins:[i.a],components:{ActGoldProtocol:n.a,ActPopup:o.a,ActGoldReadTerms:a.a},props:{title:{type:String,default:""},closable:{type:Boolean,default:!1},protocols:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:99},cancelBtnText:{type:String,default:"取消"},comfirmBtnText:{type:String,default:"继续投保"},forceReadToPageEnd:{type:Boolean,default:!1},forceReadSeconds:{type:Number,default:0},brandColor:{type:String,default:"#8c7fee"},readTerms:{type:Array,default:function(){return[]}},beforeClose:{type:Function,default:null},needForceRead:{type:Boolean,default:!0},isCps:{type:Boolean,default:!1},beforePreOrNext:{type:Function,default:null},openInWindow:{type:Boolean,default:!1}},data:function(){return{protocolChecked:!1,hasForceRead:!1}},computed:{confirmBtnBg:function(){return this.isCps?this.protocolChecked?"linear-gradient( 270deg, #F05A4B 0%, #FC7468 100%)":"linear-gradient( 270deg, rgba(240,90,75,0.5) 0%, rgba(252,116,104,0.5) 100%)":this.protocolChecked?"linear-gradient( 90deg, #FF738D 0%, #FF465E 100%)":"linear-gradient( 90deg, rgba(255,115,141,0.5) 0%, rgba(255,70,94,0.5) 100%)"},backgroundClass:function(){return this.isCps?"bg-cps":"bg-main"}},methods:{toggle:function(t){this.protocolChecked=t},forceReadTerms:function(){this.readTerms&&this.readTerms.length&&this.needForceRead&&!this.hasForceRead?this.$refs.forceReadTermsRef&&this.$refs.forceReadTermsRef.show():this.$emit("confirm")},maskClick:function(){this.$emit("maskClick")},cancel:function(){this.$emit("cancel"),this.hide()},confirm:function(){this.protocolChecked&&this.forceReadTerms()},readTermsCompleted:function(){this.hasForceRead=!0,this.$emit("readTermsCompleted"),this.$emit("confirm")},readTermsCancel:function(){this.hasForceRead=!1,this.$emit("readTermsCancel")}}}},167:function(t,e,r){t.exports=r(168)},168:function(t,e,r){"use strict";function n(t){var e=new a(t),r=o(a.prototype.request,e);return i.extend(r,a.prototype,e),i.extend(r,e),r}var i=r(17),o=r(127),a=r(169),s=r(133),c=r(130),u=n(c);u.Axios=a,u.create=function(t){return n(s(u.defaults,t))},u.Cancel=r(134),u.CancelToken=r(182),u.isCancel=r(129),u.all=function(t){return Promise.all(t)},u.spread=r(183),t.exports=u,t.exports.default=u},169:function(t,e,r){"use strict";function n(t){this.defaults=t,this.interceptors={request:new a,response:new a}}var i=r(17),o=r(128),a=r(170),s=r(171),c=r(133);n.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=c(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[s,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)r=r.then(e.shift(),e.shift());return r},n.prototype.getUri=function(t){return t=c(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],function(t){n.prototype[t]=function(e,r){return this.request(i.merge(r||{},{method:t,url:e}))}}),i.forEach(["post","put","patch"],function(t){n.prototype[t]=function(e,r,n){return this.request(i.merge(n||{},{method:t,url:e,data:r}))}}),t.exports=n},17:function(t,e,r){"use strict";function n(t){return"[object Array]"===T.call(t)}function i(t){return void 0===t}function o(t){return null!==t&&!i(t)&&null!==t.constructor&&!i(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function a(t){return"[object ArrayBuffer]"===T.call(t)}function s(t){return"undefined"!=typeof FormData&&t instanceof FormData}function c(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function u(t){return"string"==typeof t}function l(t){return"number"==typeof t}function h(t){return null!==t&&"object"==typeof t}function f(t){return"[object Date]"===T.call(t)}function d(t){return"[object File]"===T.call(t)}function p(t){return"[object Blob]"===T.call(t)}function v(t){return"[object Function]"===T.call(t)}function m(t){return h(t)&&v(t.pipe)}function g(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function y(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function b(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function _(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),n(t))for(var r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}function w(){function t(t,r){"object"==typeof e[r]&&"object"==typeof t?e[r]=w(e[r],t):e[r]=t}for(var e={},r=0,n=arguments.length;r<n;r++)_(arguments[r],t);return e}function S(){function t(t,r){"object"==typeof e[r]&&"object"==typeof t?e[r]=S(e[r],t):e[r]="object"==typeof t?S({},t):t}for(var e={},r=0,n=arguments.length;r<n;r++)_(arguments[r],t);return e}function A(t,e,r){return _(e,function(e,n){t[n]=r&&"function"==typeof e?x(e,r):e}),t}var x=r(127),T=Object.prototype.toString;t.exports={isArray:n,isArrayBuffer:a,isBuffer:o,isFormData:s,isArrayBufferView:c,isString:u,isNumber:l,isObject:h,isUndefined:i,isDate:f,isFile:d,isBlob:p,isFunction:v,isStream:m,isURLSearchParams:g,isStandardBrowserEnv:b,forEach:_,merge:w,deepMerge:S,extend:A,trim:y}},170:function(t,e,r){"use strict";function n(){this.handlers=[]}var i=r(17);n.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){i.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=n},171:function(t,e,r){"use strict";function n(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var i=r(17),o=r(172),a=r(129),s=r(130);t.exports=function(t){return n(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||s.adapter)(t).then(function(e){return n(t),e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return a(e)||(n(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},172:function(t,e,r){"use strict";var n=r(17);t.exports=function(t,e,r){return n.forEach(r,function(r){t=r(t,e)}),t}},173:function(t,e,r){"use strict";var n=r(17);t.exports=function(t,e){n.forEach(t,function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])})}},174:function(t,e,r){"use strict";var n=r(132);t.exports=function(t,e,r){var i=r.config.validateStatus;!i||i(r.status)?t(r):e(n("Request failed with status code "+r.status,r.config,null,r.request,r))}},175:function(t,e,r){"use strict";t.exports=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},176:function(t,e,r){"use strict";var n=r(177),i=r(178);t.exports=function(t,e){return t&&!n(e)?i(t,e):e}},177:function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},178:function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},179:function(t,e,r){"use strict";var n=r(17),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,o,a={};return t?(n.forEach(t.split("\n"),function(t){if(o=t.indexOf(":"),e=n.trim(t.substr(0,o)).toLowerCase(),r=n.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}}),a):a}},18:function(t,e){t.exports={}},180:function(t,e,r){"use strict";var n=r(17);t.exports=n.isStandardBrowserEnv()?function(){function t(t){var e=t;return r&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var e,r=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return e=t(window.location.href),function(r){var i=n.isString(r)?t(r):r;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},181:function(t,e,r){"use strict";var n=r(17);t.exports=n.isStandardBrowserEnv()?function(){return{write:function(t,e,r,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},182:function(t,e,r){"use strict";function n(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var r=this;t(function(t){r.reason||(r.reason=new i(t),e(r.reason))})}var i=r(134);n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var t;return{token:new n(function(e){t=e}),cancel:t}},t.exports=n},183:function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},186:function(t,e,r){r(56),r(53),t.exports=r(187)},187:function(t,e,r){var n=r(9),i=r(115);t.exports=r(0).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},19:function(t,e,r){"use strict";var n={model:{prop:"visible",event:"toggle"},props:{visible:{type:Boolean,default:!1}},data:function(){return{preOverflowValue:"",isVisible:!1}},watch:{isVisible:function(t){this.$emit("toggle",t)}},mounted:function(){var t=this;this.$watch("visible",function(e,r){e?t.show():r&&t.hide()},{immediate:!0})},methods:{show:function(){return this.isVisible=!0,this},hide:function(){return this.isVisible=!1,this}},beforeDestroy:function(){this.hide()}};e.a=n},2:function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},20:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},201:function(t,e){},202:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("transition",{attrs:{name:"act-gold-popup-fade"}},[r("act-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{mask:t.mask,center:t.center,opacity:t.opacity,zIndex:t.zIndex},on:{touchmove:function(t){t.preventDefault()},"mask-click":t.close}},[r("transition",{attrs:{name:"act-gold-popup-move"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-gold-popup-container",on:{click:function(t){t.stopPropagation()}}},[t.noHeader?t._e():[t.$slots.header?r("div",{staticClass:"act-gold-popup-hd act-gold-popup-hd-custom"},[t._t("header")],2):r("div",{staticClass:"act-gold-popup-hd"},[r("h3",[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),t.$slots.headerLeft?t._t("headerLeft"):t._e(),t._v(" "),t.$slots.headerRight?t._t("headerRight"):t.closable?r("i",{staticClass:"act-gold-popup-icon-close",on:{click:function(e){return e.stopPropagation(),t.close.apply(null,arguments)}}}):t._e()],2)],t._v(" "),t._t("default")],2)])],1)],1)},i=[];n._withStripped=!0},21:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},212:function(t,e,r){t.exports=r(216)},213:function(t,e,r){"use strict";e.__esModule=!0;var n=r(51),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t){return function(){var e=t.apply(this,arguments);return new i.default(function(t,r){function n(o,a){try{var s=e[o](a),c=s.value}catch(t){return void r(t)}if(!s.done)return i.default.resolve(c).then(function(t){n("next",t)},function(t){n("throw",t)});t(c)}return n("next")})}}},215:function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},216:function(t,e,r){var n=function(){return this}()||Function("return this")(),i=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,o=i&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r(217),i)n.regeneratorRuntime=o;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},217:function(t,e){!function(e){"use strict";function r(t,e,r,n){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),s=new d(n||[]);return a._invoke=u(t,r,s),a}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function a(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){function e(r,i,o,a){var s=n(t[r],t,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&y.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(u).then(function(t){c.value=t,o(c)},a)}a(s.arg)}function r(t,r){function n(){return new Promise(function(n,i){e(t,r,n,i)})}return i=i?i.then(n,n):n()}var i;this._invoke=r}function u(t,e,r){var i=T;return function(o,a){if(i===P)throw new Error("Generator is already running");if(i===C){if("throw"===o)throw a;return v()}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=l(s,r);if(c){if(c===R)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===T)throw i=C,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=P;var u=n(t,e,r);if("normal"===u.type){if(i=r.done?C:k,u.arg===R)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=C,r.method="throw",r.arg=u.arg)}}}function l(t,e){var r=t.iterator[e.method];if(r===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,l(t,e),"throw"===e.method))return R;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return R}var i=n(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,R;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,R):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,R)}function h(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 f(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,this),this.reset(!0)}function p(t){if(t){var e=t[_];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(y.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=m,e.done=!0,e};return n.next=n}}return{next:v}}function v(){return{value:m,done:!0}}var m,g=Object.prototype,y=g.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},_=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",S=b.toStringTag||"@@toStringTag",A="object"==typeof t,x=e.regeneratorRuntime;if(x)return void(A&&(t.exports=x));x=e.regeneratorRuntime=A?t.exports:{},x.wrap=r;var T="suspendedStart",k="suspendedYield",P="executing",C="completed",R={},E={};E[_]=function(){return this};var O=Object.getPrototypeOf,L=O&&O(O(p([])));L&&L!==g&&y.call(L,_)&&(E=L);var I=a.prototype=i.prototype=Object.create(E);o.prototype=I.constructor=a,a.constructor=o,a[S]=o.displayName="GeneratorFunction",x.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},x.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,S in t||(t[S]="GeneratorFunction")),t.prototype=Object.create(I),t},x.awrap=function(t){return{__await:t}},s(c.prototype),c.prototype[w]=function(){return this},x.AsyncIterator=c,x.async=function(t,e,n,i){var o=new c(r(t,e,n,i));return x.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},s(I),I[S]="Generator",I[_]=function(){return this},I.toString=function(){return"[object Generator]"},x.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},x.values=p,d.prototype={constructor:d,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(f),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return o.type="throw",o.arg=t,r.next=e,n&&(r.method="next",r.arg=m),!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&y.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,R):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),R},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),f(r),R}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;f(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:p(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=m),R}}}(function(){return this}()||Function("return this")())},219:function(t,e,r){"use strict";var n=r(51),i=r.n(n),o=r(119),a=r(330),s=r(331),c=r(152);e.a={name:"scroll",props:{probeType:{type:Number,default:2},click:{type:Boolean,default:!0},listenScrollInit:{type:Boolean,default:!1},listenScroll:{type:Boolean,default:!1},listenBeforeScroll:{type:Boolean,default:!1},listenScrollEnd:{type:Boolean,default:!1},listenZoomEnd:{type:Boolean,default:!1},observeDOM:{type:Boolean,default:!0},direction:{type:String,default:"vertical"},scrollbar:{type:null,default:!1},pullDownRefresh:{type:null,default:!1},pullUpLoad:{type:null,default:!1},startY:{type:Number,default:0},refreshDelay:{type:Number,default:20},freeScroll:{type:Boolean,default:!1},mouseWheel:{type:Boolean,default:!1},bounce:{type:[Boolean,Object],default:!0},zoom:{type:[Boolean,Object],default:!1}},data:function(){return{beforePullDown:!0,isRebounding:!1,isPullingDown:!1,isPullUpLoad:!1,pullUpDirty:!0,pullDownStyle:"",bubbleY:0,lastTouchStart:null,fingers:0,tapTarget:null,isDouble:!1,startXd:0,startYd:0,endXd:0,endYd:0}},computed:{pullUpTxt:function(){var t=this.pullUpLoad&&this.pullUpLoad.txt&&this.pullUpLoad.txt.more||"加载更多",e=this.pullUpLoad&&this.pullUpLoad.txt&&this.pullUpLoad.txt.noMore||"没有更多数据了";return this.pullUpDirty?t:e},refreshTxt:function(){return this.pullDownRefresh&&this.pullDownRefresh.txt||"刷新成功"}},created:function(){this.pullDownInitTop=-50},mounted:function(){var t=this;setTimeout(function(){t.initScroll()},20)},destroyed:function(){this.$refs.scroll&&this.$refs.scroll.destroy()},methods:{initScroll:function(){var t=this;if(this.$refs.wrapper){this.$refs.listWrapper&&(this.pullDownRefresh||this.pullUpLoad)&&(this.$refs.listWrapper.style.minHeight=Object(a.a)(this.$refs.wrapper).height+1+"px");var e={probeType:this.probeType,click:this.click,scrollY:this.freeScroll||"vertical"===this.direction,scrollX:this.freeScroll||"horizontal"===this.direction,scrollbar:this.scrollbar,pullDownRefresh:this.pullDownRefresh,pullUpLoad:this.pullUpLoad,startY:this.startY,freeScroll:this.freeScroll,mouseWheel:this.mouseWheel,bounce:this.bounce,zoom:this.zoom,bounceTime:300,useTransition:c.a,observeDOM:this.observeDOM};this.scroll=new o.default(this.$refs.wrapper,e),this.listenScroll&&this.scroll.on("scroll",function(e){t.$emit("scroll",e)}),this.listenScrollEnd&&this.scroll.on("scrollEnd",function(e){t.$emit("scroll-end",e)}),this.listenBeforeScroll&&(this.scroll.on("beforeScrollStart",function(){t.$emit("beforeScrollStart")}),this.scroll.on("scrollStart",function(){t.$emit("scroll-start")})),this.listenZoomEnd&&this.scroll.on("zoomEnd",function(){t.$emit("zoomEnd",t.scroll)}),this.pullDownRefresh&&this._initPullDownRefresh(),this.pullUpLoad&&this._initPullUpLoad(),this.zoom&&(this.isDouble=!0),this.listenScrollInit&&this.$emit("scrollSuc",this.scroll)}},disable:function(){this.scroll&&this.scroll.disable()},enable:function(){this.scroll&&this.scroll.enable()},refresh:function(){this.scroll&&this.scroll.refresh()},scrollTo:function(){this.scroll&&this.scroll.scrollTo.apply(this.scroll,arguments)},scrollToElement:function(){this.scroll&&this.scroll.scrollToElement.apply(this.scroll,arguments)},clickItem:function(t,e){this.$emit("click",e)},destroy:function(){this.scroll.destroy()},forceUpdate:function(t){var e=this;this.pullDownRefresh&&this.isPullingDown?(this.isPullingDown=!1,this._reboundPullDown().then(function(){e._afterPullDown()})):this.pullUpLoad&&this.isPullUpLoad?(this.isPullUpLoad=!1,this.scroll.finishPullUp(),this.pullUpDirty=t,this.refresh()):this.refresh()},handleTouchStart:function(t){this.isDouble&&(this.fingers=t.touches.length,this.tapTarget=this.getTouches(t)[0],this.startXd=this.tapTarget.x,this.startYd=this.tapTarget.y)},handleTouchMove:function(t){this.isDouble&&(this.endXd=this.getTouches(t)[0].x,this.endYd=this.getTouches(t)[0].y)},handleTouchEnd:function(t){if(this.isDouble){this.endXd=0===this.endXd?this.startXd:this.endXd,this.endYd=0===this.endYd?this.startYd:this.endYd;var e=this.endXd-this.startXd,r=this.endYd-this.startYd;Math.abs(e)<10&&Math.abs(r)<10&&this.detectDoubleTap(t),this.startXd=this.startYd=this.endXd=this.endYd=0}},cancelEvent:function(t){t.stopPropagation(),t.preventDefault()},getTouches:function(t){return Array.prototype.slice.call(t.touches).map(function(t){return{x:t.pageX,y:t.pageY}})},detectDoubleTap:function(){var t=(new Date).getTime();if(this.fingers>1&&(this.lastTouchStart=null),t-this.lastTouchStart<300){this.cancelEvent(event);var e=this.scroll.scale>1?1:2;this.scroll.zoomTo(e,this.tapTarget.x,this.tapTarget.y)}1===this.fingers&&(this.lastTouchStart=t)},_initPullDownRefresh:function(){var t=this;this.scroll.on("pullingDown",function(){t.beforePullDown=!1,t.isPullingDown=!0,t.$emit("pullingDown")}),this.scroll.on("scroll",function(e){t.pullDownRefresh&&(t.beforePullDown?(t.bubbleY=Math.max(0,e.y+t.pullDownInitTop),t.pullDownStyle="top:"+Math.min(e.y+t.pullDownInitTop,10)+"px"):t.bubbleY=0,t.isRebounding&&(t.pullDownStyle="top:"+(10-(t.pullDownRefresh.stop-e.y))+"px"))})},_initPullUpLoad:function(){var t=this;this.scroll.on("pullingUp",function(){t.isPullUpLoad=!0,t.$emit("pullingUp")})},_reboundPullDown:function(){var t=this,e=this.pullDownRefresh.stopTime,r=void 0===e?600:e;return new i.a(function(e){setTimeout(function(){t.isRebounding=!0,t.scroll.finishPullDown(),e()},r)})},_afterPullDown:function(){var t=this;setTimeout(function(){t.pullDownStyle="top:"+t.pullDownInitTop+"px",t.beforePullDown=!0,t.isRebounding=!1,t.refresh()},this.scroll.options.bounceTime)}},watch:{data:function(){var t=this;setTimeout(function(){t.forceUpdate(!0)},this.refreshDelay)}},components:{Bubble:s.a}}},220:function(t,e,r){"use strict";e.a={props:{y:{type:Number,default:0}},data:function(){return{width:50,height:80}},computed:{distance:function(){return Math.max(0,Math.min(this.y*this.ratio,this.maxDistance))},style:function(){return"width:"+this.width/this.ratio+"px;height:"+this.height/this.ratio+"px"}},created:function(){this.ratio=window.devicePixelRatio,this.width*=this.ratio,this.height*=this.ratio,this.initRadius=18*this.ratio,this.minHeadRadius=12*this.ratio,this.minTailRadius=5*this.ratio,this.initArrowRadius=10*this.ratio,this.minArrowRadius=6*this.ratio,this.arrowWidth=3*this.ratio,this.maxDistance=40*this.ratio,this.initCenterX=25*this.ratio,this.initCenterY=25*this.ratio,this.headCenter={x:this.initCenterX,y:this.initCenterY}},mounted:function(){this._draw()},methods:{_draw:function(){var t=this.$refs.bubble,e=t.getContext("2d");e.clearRect(0,0,t.width,t.height),this._drawBubble(e),this._drawArrow(e)},_drawBubble:function(t){t.save(),t.beginPath();var e=this.distance/this.maxDistance,r=this.initRadius-(this.initRadius-this.minHeadRadius)*e;this.headCenter.y=this.initCenterY-(this.initRadius-this.minHeadRadius)*e,t.arc(this.headCenter.x,this.headCenter.y,r,0,Math.PI,!0);var n=this.initRadius-(this.initRadius-this.minTailRadius)*e,i={x:this.headCenter.x,y:this.headCenter.y+this.distance},o={x:i.x-n,y:i.y},a={x:o.x,y:o.y-this.distance/2};t.quadraticCurveTo(a.x,a.y,o.x,o.y),t.arc(i.x,i.y,n,Math.PI,0,!0);var s={x:this.headCenter.x+r,y:this.headCenter.y},c={x:i.x+n,y:s.y+this.distance/2};t.quadraticCurveTo(c.x,c.y,s.x,s.y),t.fillStyle="rgb(170,170,170)",t.fill(),t.strokeStyle="rgb(153,153,153)",t.stroke(),t.restore()},_drawArrow:function(t){t.save(),t.beginPath();var e=this.distance/this.maxDistance,r=this.initArrowRadius-(this.initArrowRadius-this.minArrowRadius)*e;t.arc(this.headCenter.x,this.headCenter.y,r-(this.arrowWidth-e),-Math.PI/2,0,!0),t.arc(this.headCenter.x,this.headCenter.y,r,0,3*Math.PI/2,!1),t.lineTo(this.headCenter.x,this.headCenter.y-r-this.arrowWidth/2+e),t.lineTo(this.headCenter.x+2*this.arrowWidth-2*e,this.headCenter.y-r+this.arrowWidth/2),t.lineTo(this.headCenter.x,this.headCenter.y-r+3*this.arrowWidth/2-e),t.fillStyle="rgb(255,255,255)",t.fill(),t.strokeStyle="rgb(170,170,170)",t.stroke(),t.restore()}},watch:{y:function(){this._draw()}}}},2338:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(14),i=r(2339);i.a.install=function(t){t.component(i.a.name,i.a),t.prototype.$createGoldProtocolLayer=Object(n.a)(i.a,t)},e.default=i.a},2339:function(t,e,r){"use strict";function n(t){s||r(2340)}var i=r(1647),o=r(2341),a=r(1),s=!1,c=n,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-0bf60312",null);u.options.__file="src\\components\\GoldProtocolLayer\\src\\index.vue",e.a=u.exports},2340:function(t,e){},2341:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("transition",{attrs:{name:"act-picker-fade"}},[r("act-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{mask:!0,center:!1,topBorderRadius:!0,zIndex:t.zIndex},on:{touchmove:function(t){t.preventDefault()},"mask-click":t.maskClick}},[r("transition",{attrs:{name:"act-picker-move"}},[r("div",{staticClass:"act-picker-panel",on:{click:function(t){t.stopPropagation()}}},[r("div",{ref:"boxWrapper",staticClass:"act-picker-content",class:t.backgroundClass},[r("act-gold-protocol",{ref:"protocol",staticClass:"protocol",attrs:{protocols:t.protocols,openInWindow:t.openInWindow,brandColor:t.brandColor,checkState:t.protocolChecked},on:{toggle:t.toggle}})],1),t._v(" "),r("div",{staticClass:"ft-btn"},[r("div",{staticClass:"cancel-btn",on:{click:t.cancel}},[t._v(t._s(t.cancelBtnText))]),t._v(" "),r("div",{staticClass:"comfirm-btn",style:{background:t.confirmBtnBg},on:{click:t.confirm}},[t._v(t._s(t.comfirmBtnText))])]),t._v(" "),r("div",{staticClass:"footer iphonex_padding",staticStyle:{"background-color":"#fff"}})])])],1)],1),t._v(" "),r("act-gold-read-terms",{ref:"forceReadTermsRef",attrs:{confirmButtonText:"已完整阅读并确认",forceRead:t.forceReadToPageEnd,forceReadTime:t.forceReadSeconds,brandColor:t.brandColor,readTerms:t.readTerms,beforePreOrNext:t.beforePreOrNext,beforeClose:t.beforeClose},on:{confirm:t.readTermsCompleted,cancel:t.readTermsCancel}})],1)},i=[];n._withStripped=!0},24:function(t,e,r){var n=r(29);t.exports=function(t){return Object(n(t))}},25:function(t,e){e.f={}.propertyIsEnumerable},252:function(t,e,r){"use strict";var n=r(328),i=r(114),o=r(334);e.a={name:"ScrollZoom",data:function(){return{pdf:null}},computed:{currentTerm:function(){return this.termsInfo[this.docIndex]||null},liTagInfo:function(){var t=[];if(this.currentTerm&&this.currentTerm.liTag&&this.currentTerm.myScroll)for(var e=0;e<this.currentTerm.liTag.length;e++){var r=this.currentTerm.liTag[e];t.push({tag:r,top:r.offsetTop*this.currentTerm.currentScale,left:r.offsetLeft*this.currentTerm.currentScale,width:r.offsetWidth*this.currentTerm.currentScale,height:r.offsetHeight*this.currentTerm.currentScale})}return t},isPurePdfType:function(){return 4===this.currentTerm.type},isImageType:function(){return 2===Number(this.currentTerm.type)},isShowLoading:function(){var t=this.currentTerm.myScroll;return!(!this.isPurePdfType||!this.pdf||this.pdf.inited)||!!(this.isImageType&&this.currentTerm.isLoading&&1===this.currentTerm.currentPage||this.isImageType&&this.currentTerm.isLoading&&t&&Math.abs(t.y)+50>=Math.abs(t.maxScrollY))},purePdfLoadingComplated:function(){if(!this.isPurePdfType||!this.pdf)return!1;var t=this.pdf,e=t.numPages,r=t.renderedPages;return e&&r&&e===r.length},imagesInitLoad:function(){return this.isImageType&&this.currentTerm.isLoading&&1===this.currentTerm.currentPage},imagesLoadingComplated:function(){return this.currentTerm.currentPage*this.pageSize>=this.currentTerm.urls.length}},watch:{purePdfLoadingComplated:function(t){if(t&&this.currentTerm.curPosition){this.currentTerm.curPosition.y===this.currentTerm.myScroll.maxScrollY&&this.$emit("canINext",!0)}}},methods:{loadNextPage:function(){var t=this.currentTerm;t.currentPage*this.pageSize>=t.urls.length||(t.currentPage++,t.isLoading=!0,this.initImages())},initImages:function(){var t=this,e=this.currentTerm,r=this.$refs["scrollList"+this.docIndex][0],n=(e.currentPage-1)*this.pageSize,i=e.urls.slice(n,n+this.pageSize),o=new Array(i.length).fill(!1),a=[];i.forEach(function(n,i){var s=document.createElement("li"),c=new Image;s.style.height=t.currentTerm.styleImg.height,c.onload=function(){s.appendChild(c),o[i]=!0,o.every(function(t){return t})&&(a.forEach(function(t){return r.appendChild(t)}),e.isLoading=!1,t.currentTerm.myScroll.refresh(),t.currentTerm.currentPage*t.pageSize<t.currentTerm.urls.length&&t.loadNextPage())},c.src=n,c.style.width="100%",s.appendChild(c),a.push(s)})},initWord:function(t){var e=this;t instanceof Array?Object(i.c)(t[0]).then(function(t){t=t.replace(/<span[^>]*?>[\s|&nbsp;]*<\/span>/g,""),t=t.replace(/<span[^>]*?>[\s|&nbsp;]*<em>\s*<\/em>\s*<\/span>/g,""),e.currentTerm.wordHtml=t,e.currentTerm.classObject["scroll-word"]=!0,e.currentTerm.init=!0}).catch(function(t){console.log(t)}):console.log("数据格式错误")},initPDF:function(t){if(t instanceof Array){var e=this,r=new Image;r.src=t[0],r.onload=function(){var t=window.innerWidth/r.width,n=2*(t*r.height).toFixed(2);e.currentTerm.styleImg.height=n+"px",e.currentTerm.classObject["scroll-pdf"]=!0,e.currentTerm.listenScrollEnd=!0,e.currentTerm.listenZoomEnd=!0,e.currentTerm.listenScroll=!0,e.currentTerm.init=!0}}else console.log("数据格式错误")},initHtml:function(t){t=t.replace(/<span[^>]*?>[\s|&nbsp;]*<\/span>/g,""),t=t.replace(/<span[^>]*?>[\s|&nbsp;]*<em>\s*<\/em>\s*<\/span>/g,""),this.currentTerm.wordHtml=t,this.currentTerm.classObject["scroll-word"]=!0,this.currentTerm.init=!0},initPurePDF:function(t){this.currentTerm.listenScroll=!0,this.currentTerm.listenZoomEnd=!0,this.currentTerm.listenScrollEnd=!0,this.currentTerm.observeDOM=!1,this.currentTerm.init=!0},scroll:function(t){this.lazyLoad(t)},scrollEnd:function(t){this.isPurePdfType?this.currentTerm.curPosition=t:this.lazyLoad(t);var e=t.y===this.currentTerm.myScroll.maxScrollY;![2,4].includes(this.currentTerm.type)&&this.forceRead&&e&&this.$emit("canINext",!0),this.isImageType&&this.forceRead&&this.imagesLoadingComplated&&e&&this.$emit("canINext",!0),this.isPurePdfType&&this.forceRead&&this.purePdfLoadingComplated&&e&&this.$emit("canINext",!0),e&&this.$emit("scrolledEnd",!0)},scrollInit:function(t){var e=this;if(this.currentTerm.myScroll=t,this.forceRead&&this.currentTerm.myScroll&&0==+this.currentTerm.myScroll.maxScrollY&&!this.isPurePdfType&&!this.isImageType&&this.$emit("canINext",!0),1===this.currentTerm.type&&this.$refs["wordHtml"+this.docIndex]&&this.$refs["wordHtml"+this.docIndex][0]){var r=this.$refs["wordHtml"+this.docIndex][0].querySelectorAll("table");this.refreshTable(r);var n=this.$refs["wordHtml"+this.docIndex][0].querySelectorAll("img");this.refreshImg(n)}else this.isImageType&&this.$refs["scrollList"+this.docIndex]&&this.$refs["scrollList"+this.docIndex][0]?(this.currentTerm.cWidth=this.currentTerm.myScroll.wrapperHeight,this.currentTerm.cHeight=this.currentTerm.myScroll.wrapperWidth,this.loadNextPage()):99===this.currentTerm.type?this.currentTerm.myScroll.refresh():4===this.currentTerm.type&&(this.pdf=new o.default,this.pdf.init({url:this.currentTerm.urls[0],container:this.$refs.pdfContainer[0],brandColor:this.brandColor,scollRef:this.currentTerm.myScroll}).then(function(){e.currentTerm.myScroll.refresh(),e.forceRead&&e.currentTerm.myScroll&&0==+e.currentTerm.myScroll.maxScrollY&&e.purePdfLoadingComplated&&e.$emit("canINext",!0)}).catch(function(t){console.log(t)}))},zoomEnd:function(){this.currentTerm.currentScale=this.currentTerm.myScroll.scale},lazyLoad:function(t){this.currentTerm.scrollY=Math.abs(t.y)},refreshTable:function(t){if(t.length>0)for(var e=0,r=t.length;e<r;e++)t[e].style.width="100%",t[e].style.marginLeft="0";this.currentTerm.myScroll.refresh()},refreshImg:function(t){var e=this;t&&t.length&&function(){for(var r=void 0,n=0;n<t.length;n++)t[n].onload=function(){r&&window.clearTimeout(r),r=setTimeout(function(){e.currentTerm.myScroll.refresh()},200)}}()},getTermHideState:function(t){return t!==this.docIndex},showDoc:function(t){this.docIndex=t,this.destroyPdf(),this.currentTerm.init?2===Number(this.currentTerm.type)&&(this.currentTerm.currentPage=0,this.loadNextPage()):1===Number(this.currentTerm.type)?this.initWord(this.currentTerm.urls):2===Number(this.currentTerm.type)?this.initPDF(this.currentTerm.urls):3===Number(this.currentTerm.type)?this.initHtml(this.currentTerm.innerHTML):4===Number(this.currentTerm.type)?this.initPurePDF(this.currentTerm.urls):99===Number(this.currentTerm.type)&&(this.currentTerm.init=!0)},destroyPdf:function(){this.pdf&&(this.pdf.destroy(),this.pdf=null)}},beforeDestroy:function(){this.destroyPdf()},components:{scroll:n.a},props:{termsInfo:{type:Array,default:function(){return[]}},brandColor:{type:String,default:"#8c7fee"},docIndex:{type:Number,default:0},forceRead:{type:Boolean,default:!1},pageSize:{type:Number,default:4}}}},26:function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},27:function(t,e,r){var n=r(8).f,i=r(6),o=r(3)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},28:function(t,e,r){t.exports={default:r(83),__esModule:!0}},29:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},3:function(t,e,r){var n=r(32)("wks"),i=r(21),o=r(2).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=n},30:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},305:function(t,e,r){"use strict";(function(t){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,r){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return u(this,t)}return a(this,t,e,r)}function a(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?f(t,e,r,n):"string"==typeof e?l(t,e,r):d(t,e)}function s(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 c(t,e,r,n){return s(e),e<=0?i(t,e):void 0!==r?"string"==typeof n?i(t,e).fill(r,n):i(t,e).fill(r):i(t,e)}function u(t,e){if(s(e),t=i(t,e<0?0:0|p(e)),!o.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function l(t,e,r){if("string"==typeof r&&""!==r||(r="utf8"),!o.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|m(e,r);t=i(t,n);var a=t.write(e,r);return a!==n&&(t=t.slice(0,a)),t}function h(t,e){var r=e.length<0?0:0|p(e.length);t=i(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function f(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=h(t,e),t}function d(t,e){if(o.isBuffer(e)){var r=0|p(e.length);return t=i(t,r),0===t.length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||$(e.length)?i(t,0):h(t,e);if("Buffer"===e.type&&J(e.data))return h(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function v(t){return+t!=t&&(t=0),o.alloc(+t)}function m(t,e){if(o.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 r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(t).length;default:if(n)return z(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,r);case"utf8":case"utf-8":return C(this,e,r);case"ascii":return E(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return P(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=o.from(e,n)),o.isBuffer(e))return 0===e.length?-1:_(t,e,r,n,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):_(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,r,n,i){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,r/=2}var u;if(i){var l=-1;for(u=r;u<s;u++)if(o(t,u)===o(e,-1===l?0:u-l)){if(-1===l&&(l=u),u-l+1===c)return l*a}else-1!==l&&(u-=u-l),l=-1}else for(r+c>s&&(r=s-c),u=r;u>=0;u--){for(var h=!0,f=0;f<c;f++)if(o(t,u+f)!==o(e,f)){h=!1;break}if(h)return u}return-1}function w(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function S(t,e,r,n){return V(z(e,t.length-r),t,r,n)}function A(t,e,r,n){return V(X(e),t,r,n)}function x(t,e,r,n){return A(t,e,r,n)}function T(t,e,r,n){return V(G(e),t,r,n)}function k(t,e,r,n){return V(H(e,t.length-r),t,r,n)}function P(t,e,r){return 0===e&&r===t.length?Q.fromByteArray(t):Q.fromByteArray(t.slice(e,r))}function C(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=r){var c,u,l,h;switch(s){case 1:o<128&&(a=o);break;case 2:c=t[i+1],128==(192&c)&&(h=(31&o)<<6|63&c)>127&&(a=h);break;case 3:c=t[i+1],u=t[i+2],128==(192&c)&&128==(192&u)&&(h=(15&o)<<12|(63&c)<<6|63&u)>2047&&(h<55296||h>57343)&&(a=h);break;case 4:c=t[i+1],u=t[i+2],l=t[i+3],128==(192&c)&&128==(192&u)&&128==(192&l)&&(h=(15&o)<<18|(63&c)<<12|(63&u)<<6|63&l)>65535&&h<1114112&&(a=h)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return R(n)}function R(t){var e=t.length;if(e<=Z)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Z));return r}function E(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function O(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function L(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Y(t[o]);return i}function I(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function M(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,r,n,i,a){if(!o.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(r+n>t.length)throw new RangeError("Index out of range")}function D(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function j(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function N(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,n,i){return i||N(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(t,e,r,n,23,4),r+4}function B(t,e,r,n,i){return i||N(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(t,e,r,n,52,8),r+8}function W(t){if(t=q(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function q(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Y(t){return t<16?"0"+t.toString(16):t.toString(16)}function z(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function X(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function H(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function G(t){return Q.toByteArray(W(t))}function V(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function $(t){return t!==t}var Q=r(306),K=r(307),J=r(308);e.Buffer=o,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,r){return a(null,t,e,r)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,r){return c(null,t,e,r)},o.allocUnsafe=function(t){return u(null,t)},o.allocUnsafeSlow=function(t){return u(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},o.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}},o.concat=function(t,e){if(!J(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=o.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},o.byteLength=m,o.prototype._isBuffer=!0,o.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)y(this,e,e+1);return this},o.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)y(this,e,e+3),y(this,e+1,e+2);return this},o.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)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):g.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,r,n,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var a=i-n,s=r-e,c=Math.min(a,s),u=this.slice(n,i),l=t.slice(e,r),h=0;h<c;++h)if(u[h]!==l[h]){a=u[h],s=l[h];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},o.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},o.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},o.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return S(this,t,e,r);case"ascii":return A(this,t,e,r);case"latin1":case"binary":return x(this,t,e,r);case"base64":return T(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n;if(o.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=o.prototype;else{var i=e-t;n=new o(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+t]}return n},o.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||M(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},o.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||M(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},o.prototype.readUInt8=function(t,e){return e||M(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||M(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||M(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||M(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},o.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||M(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||M(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(t,e){e||M(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(t,e){return e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||M(t,4,this.length),K.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||M(t,4,this.length),K.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||M(t,8,this.length),K.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||M(t,8,this.length),K.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){F(this,t,e,r,Math.pow(2,8*r)-1,0)}var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},o.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){F(this,t,e,r,Math.pow(2,8*r)-1,0)}var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},o.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);F(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},o.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);F(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},o.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},o.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},o.prototype.writeDoubleLE=function(t,e,r){return B(this,t,e,!0,r)},o.prototype.writeDoubleBE=function(t,e,r){return B(this,t,e,!1,r)},o.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,a=n-r;if(this===t&&r<e&&e<n)for(i=a-1;i>=0;--i)t[i+e]=this[i+r];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),e);return a},o.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<r;++a)this[a]=t;else{var s=o.isBuffer(t)?t:z(new o(t,n).toString()),c=s.length;for(a=0;a<r-e;++a)this[a+e]=s[a%c]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,r(117))},306:function(t,e,r){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function i(t){var e=n(t),r=e[0],i=e[1];return 3*(r+i)/4-i}function o(t,e,r){return 3*(e+r)/4-r}function a(t){var e,r,i=n(t),a=i[0],s=i[1],c=new f(o(t,a,s)),u=0,l=s>0?a-4:a;for(r=0;r<l;r+=4)e=h[t.charCodeAt(r)]<<18|h[t.charCodeAt(r+1)]<<12|h[t.charCodeAt(r+2)]<<6|h[t.charCodeAt(r+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===s&&(e=h[t.charCodeAt(r)]<<2|h[t.charCodeAt(r+1)]>>4,c[u++]=255&e),1===s&&(e=h[t.charCodeAt(r)]<<10|h[t.charCodeAt(r+1)]<<4|h[t.charCodeAt(r+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c}function s(t){return l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}function c(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(s(n));return i.join("")}function u(t){for(var e,r=t.length,n=r%3,i=[],o=0,a=r-n;o<a;o+=16383)i.push(c(t,o,o+16383>a?a:o+16383));return 1===n?(e=t[r-1],i.push(l[e>>2]+l[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],i.push(l[e>>10]+l[e>>4&63]+l[e<<2&63]+"=")),i.join("")}e.byteLength=i,e.toByteArray=a,e.fromByteArray=u;for(var l=[],h=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,v=d.length;p<v;++p)l[p]=d[p],h[d.charCodeAt(p)]=p;h["-".charCodeAt(0)]=62,h["_".charCodeAt(0)]=63},307:function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,u=c>>1,l=-7,h=r?i-1:0,f=r?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+t[e+h],h+=f,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=u}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,h=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),e+=a+h>=1?f/c:f*Math.pow(2,1-h),e*c>=2&&(a++,c/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*c-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[r+d]=255&a,d+=p,a/=256,u-=8);t[r+d-p]|=128*v}},308:function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},31:function(t,e,r){var n=r(32)("keys"),i=r(21);t.exports=function(t){return n[t]||(n[t]=i(t))}},32:function(t,e,r){var n=r(0),i=r(2),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(16)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},327:function(t,e,r){"use strict";function n(t){s||r(349)}var i=r(252),o=r(350),a=r(1),s=!1,c=n,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-388e54c7",null);u.options.__file="src\\components\\common\\scrollZoom\\index.vue",e.a=u.exports},328:function(t,e,r){"use strict";function n(t){s||r(329)}var i=r(219),o=r(333),a=r(1),s=!1,c=n,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-3d7beb70",null);u.options.__file="src\\components\\common\\scrollZoom\\components\\scroll.vue",e.a=u.exports},329:function(t,e){},33:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},330:function(t,e,r){"use strict";function n(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}e.a=n},331:function(t,e,r){"use strict";var n=r(220),i=r(332),o=r(1),a=Object(o.a)(n.a,i.a,i.b,!1,null,null,null);a.options.__file="src\\components\\common\\scrollZoom\\components\\bubble.vue",e.a=a.exports},332:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("canvas",{ref:"bubble",style:t.style,attrs:{width:t.width,height:t.height}})},i=[];n._withStripped=!0},333:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{ref:"wrapper",staticClass:"scroll-wrapper",on:{touchstart:t.handleTouchStart,touchmove:t.handleTouchMove,touchend:t.handleTouchEnd}},[r("div",{staticClass:"scroll-content"},[r("div",{ref:"listWrapper"},[t._t("default")],2),t._v(" "),t.$scopedSlots.pullup?t._t("pullup",null,{pullUpLoad:t.pullUpLoad,isPullUpLoad:t.isPullUpLoad}):t._e(),t._v(" "),t.pullUpLoad&&!t.$scopedSlots.pullup?r("div",{staticClass:"pullup-wrapper"},[t.isPullUpLoad?r("div",{staticClass:"after-trigger"},[r("act-loading",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],attrs:{type:"cir4",color:t.brandColor,size:20}})],1):r("div",{staticClass:"before-trigger"},[r("span",[t._v(t._s(t.pullUpTxt))])])]):t._e()],2),t._v(" "),t.$scopedSlots.pulldown?t._t("pulldown",null,{pullDownRefresh:t.pullDownRefresh,pullDownStyle:t.pullDownStyle,beforePullDown:t.beforePullDown,isPullingDown:t.isPullingDown,bubbleY:t.bubbleY}):t._e(),t._v(" "),t.pullDownRefresh&&!t.$scopedSlots.pulldown?r("div",{ref:"pulldown",staticClass:"pulldown-wrapper",style:t.pullDownStyle},[t.beforePullDown?r("div",{staticClass:"before-trigger"},[r("bubble",{attrs:{y:t.bubbleY}})],1):r("div",{staticClass:"after-trigger"},[t.isPullingDown?r("div",{staticClass:"loading"},[r("act-loading",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],attrs:{type:"cir4",color:t.brandColor,size:20}})],1):r("div",[r("span",[t._v(t._s(t.refreshTxt))])])])]):t._e()],2)},i=[];n._withStripped=!0},334:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(212),i=r.n(n),o=r(213),a=r.n(o),s=r(51),c=r.n(s),u=r(215),l=r.n(u),h=r(335),f=(r.n(h),r(341));r.n(f);h.GlobalWorkerOptions.workerSrc=window.__global_cdn__+"/js/pdf/pdf.worker.es5.js";var d={INITED:1,DRAWING:2,RENDERING:3,RENDERED:4,DESTROYED:5},p=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(this,t),this.scale=e.scale,this.viewport=e.viewport,this.container=e.container,this.brandColor=e.brandColor,this.pdfPage=null,this.state=d.INITED,this.canvas=null,this.canvasWrapper=null,this.index=e.index,this.pdfDoc=e.pdfDoc;var r=document.createElement("div");r.className="pdf-act-page",this.pageWidth=Math.floor(this.viewport.width/this.scale),this.pageHeight=Math.floor(this.viewport.height/this.scale),this.div=r,this.container.appendChild(r)}return t.prototype.setLoading=function(){var t=document.createElement("span");t.className="pdf-act-loading",this.div.appendChild(t)},t.prototype.hideLoading=function(){var t=this.div.firstElementChild;t&&(t.style.visibility="hidden")},t.prototype.draw=function(){if([d.INITED].includes(this.state)){if(this.state=d.DRAWING,!this.canvasWrapper){var t=document.createElement("div");this.canvasWrapper=t,t.style.cssText="width:"+this.pageWidth+";height:"+this.pageHeight,t.className="pdf-act-page-wrapper"}if(!this.canvas){var e=document.createElement("canvas");this.canvas=e;var r=e.getContext("2d",{alpha:!1}),n=Math.min(window.devicePixelRatio||2,3),i=this.pageWidth*n,o=this.pageHeight*n;if(i>2048||o>2048){var a=Math.min(2048/i,2048/o);e.width=i*a,e.height=o*a}else e.width=i,e.height=o;e.style.cssText="height:"+this.pageHeight+"px;width:"+this.pageWidth+"px",this.renderContext={canvasContext:r,viewport:this.viewport,transform:[n/this.scale,0,0,n/this.scale,0,0],enableWebGL:!0,renderInteractiveForms:!1}}}},t.prototype.render=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.state!==d.DRAWING)return c.a.resolve();this.state=d.RENDERING;var r=this.pdfPage.render(this.renderContext).promise,n=new c.a(function(t,e){setTimeout(function(){return e(new Error("渲染超时"))},6e3)});return this.renderTask={promise:c.a.race([r,n]),cancel:function(){t.renderTask&&t.renderTask._internalRenderTask&&t.renderTask._internalRenderTask.cancel()}},this.renderTask.promise.then(function(){return t.state===d.DESTROYED?c.a.reject("Page destroyed"):(t.state=d.RENDERED,t.renderTask=null,t.createImageFromCanvas())}).catch(function(r){return console.log("渲染失败 (尝试 "+(e+1)+"/3):",r),e<2?(console.log("重新尝试渲染页面 "+(t.index+1)+"..."),new c.a(function(r){setTimeout(function(){r(t.render(e+1))},500*(e+1))})):(t.cleanupCanvas(),c.a.reject(new Error("页面 "+(t.index+1)+" 渲染失败,已达到最大重试次数")))})},t.prototype.createImageFromCanvas=function(){function t(){return e.apply(this,arguments)}var e=a()(i.a.mark(function t(){var e,r=this;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=document.createElement("img"),e.style.cssText="width:"+this.pageWidth+"px;height:"+this.pageHeight+"px",e.onload=function(){if(r.div.style.cssText="width:"+r.pageWidth+"px;height:"+r.pageHeight+"px;",r.canvasWrapper.appendChild(e),r.div.appendChild(r.canvasWrapper),r.pdfDoc){var t=r.pdfDoc,n=t.renderedPages,i=t.curLoadEnd,o=t.maxConcurrentRenders;n.includes(r.index)||r.pdfDoc.renderedPages.push(r.index);for(var a=!0,s=i-(o-1);s<=i;s++)if(!n.includes(s)){a=!1;break}a&&r.pdfDoc.loadNextBatch(),r.pdfDoc.refreshScroll()}},e.src=this.canvas.toDataURL("image/jpeg",.9),this.cleanupCanvas();case 5:case"end":return t.stop()}},t,this)}));return t}(),t.prototype.cleanupCanvas=function(){if(this.canvas){this.canvas.getContext("2d").clearRect(0,0,this.canvas.width,this.canvas.height),this.canvas.width=0,this.canvas.height=0,this.canvas=null}},t.prototype.destroy=function(){if(this.renderTask&&(this.renderTask.cancel(),this.renderTask=null),this.cleanupCanvas(),this.canvasWrapper){var t=this.canvasWrapper.querySelector("img");t&&t.src.startsWith("blob:")&&URL.revokeObjectURL(t.src),this.canvasWrapper=null}this.pdfPage&&(this.pdfPage.cleanup(),this.pdfPage=null),this.div&&this.div.parentNode&&this.div.parentNode.removeChild(this.div),this.state=d.DESTROYED},t.prototype.setPdfPage=function(t){this.pdfPage=t},t}(),v=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(this,t),this.url=e.url||"",this.container=e.container||null,this.brandColor=e.brandColor||"#8c7fee",this.pdfLoadingTask=null,this.pdfDocument=null,this.numPages=0,this.pageHeight=0,this.pageArr=[],this.startNum=0,this.renderQueue=[],this.isRendering=!1,this.maxConcurrentRenders=1,this.isDestroyed=!1,this.curLoadEnd=0,this.renderedPages=[],this.scollRef=null,this.inited=!1}return t.prototype.init=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{return this.isDestroyed?null:(this.url=e.url||this.url,this.container=e.container||this.container,this.brandColor=e.brandColor||this.brandColor,this.scollRef=e.scollRef,this.pdfLoadingTask=Object(h.getDocument)({url:this.url,cMapPacked:!0,cMapUrl:window.__global_cdn__+"/js/pdf/cmaps/",maxImageSize:10485760}),this.pdfLoadingTask.promise.then(function(e){return t.pdfDocument=e,t.numPages=e.numPages,t.inited=!0,t.initPage()}).catch(function(t){return console.warn("PDF 加载失败:",t),c.a.reject(t)}))}catch(t){return console.warn(t),c.a.reject(t)}},t.prototype.initPage=function(){function t(){return e.apply(this,arguments)}var e=a()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isDestroyed){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.setPdfPages(this.startNum,this.maxConcurrentRenders-1);case 4:return this.render(this.startNum,this.maxConcurrentRenders-1),t.abrupt("return",c.a.resolve({render:this.render.bind(this),totalPages:this.numPages}));case 6:case"end":return t.stop()}},t,this)}));return t}(),t.prototype.loadNextBatch=function(){function t(){return e.apply(this,arguments)}var e=a()(i.a.mark(function t(){var e,r;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isRendering){t.next=2;break}return t.abrupt("return");case 2:if(e=this.curLoadEnd+1,r=Math.min(this.numPages-1,e+this.maxConcurrentRenders-1),!(e>r)){t.next=6;break}return t.abrupt("return");case 6:return t.next=8,this.setPdfPages(e,r);case 8:this.render(e,r);case 9:case"end":return t.stop()}},t,this)}));return t}(),t.prototype.setPdfPages=function(){function t(t,r){return e.apply(this,arguments)}var e=a()(i.a.mark(function t(e,r){var n,o,a,s,c,u,l;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.curLoadEnd=r,n=this.container.offsetWidth,o=this.pageHeight||0,a=e;case 4:if(!(a<=r)){t.next=23;break}return t.prev=5,t.next=8,this.pdfDocument.getPage(a+1);case 8:s=t.sent,c=s.getViewport({scale:1}),u=c.width/n,o=Math.max(Math.floor(c.height/u),o),l=new p({scale:u,viewport:c,container:this.container,brandColor:this.brandColor,index:a,pdfDoc:this}),l.setPdfPage(s),this.pageArr[a]=l,t.next=20;break;case 17:t.prev=17,t.t0=t.catch(5),console.warn("页面 "+(a+1)+" 初始化失败:",t.t0);case 20:a++,t.next=4;break;case 23:this.pageHeight=o,r<this.numPages-1&&0!==r?this.setBottomLoading():this.hideBottomLoading();case 25:case"end":return t.stop()}},t,this,[[5,17]])}));return t}(),t.prototype.render=function(){function t(t,r){return e.apply(this,arguments)}var e=a()(i.a.mark(function t(e,r){var n,o;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.renderedPages.includes(r)){t.next=2;break}return t.abrupt("return");case 2:if(!this.isDestroyed){t.next=4;break}return t.abrupt("return");case 4:for(this.renderQueue=[],n=Math.min(r,this.numPages-1),o=e;o<=n;o++)o>=0&&o<this.numPages&&this.pageArr[o]&&this.renderQueue.push(this.pageArr[o]);return t.next=9,this.processRenderQueue();case 9:case"end":return t.stop()}},t,this)}));return t}(),t.prototype.processRenderQueue=function(){function t(){return e.apply(this,arguments)}var e=a()(i.a.mark(function t(){var e,r,n,o=this;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isRendering&&0!==this.renderQueue.length){t.next=2;break}return t.abrupt("return");case 2:this.isRendering=!0,e=[],t.prev=4;case 5:if(!(this.renderQueue.length>0||e.length>0)){t.next=18;break}r=function(){var t=o.renderQueue.shift();if(![d.INITED].includes(t.state))return"continue";if(t.draw(),t.state!==d.DRAWING)return"continue";var r={pageView:t,promise:t.render().then(function(){console.log("页面 "+(t.index+1)+" 渲染完成")}).catch(function(e){console.warn("页面 "+(t.index+1)+" 渲染失败:",e)}).finally(function(){var t=e.indexOf(r);t>-1&&e.splice(t,1)})};e.push(r)};case 7:if(!(e.length<this.maxConcurrentRenders&&this.renderQueue.length>0)){t.next=13;break}if("continue"!==(n=r())){t.next=11;break}return t.abrupt("continue",7);case 11:t.next=7;break;case 13:if(!(e.length>0)){t.next=16;break}return t.next=16,c.a.race(e.map(function(t){return t.promise}));case 16:t.next=5;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(4),console.error("渲染队列处理失败:",t.t0);case 23:return t.prev=23,this.isRendering=!1,t.finish(23);case 26:case"end":return t.stop()}},t,this,[[4,20,23,26]])}));return t}(),t.prototype.refreshScroll=function(){this.scollRef&&this.scollRef.refresh()},t.prototype.setBottomLoading=function(){this.hideBottomLoading();var t=document.createElement("div");t.innerHTML='<div class="loading-wrap">\n <div class="loading-cont-cir" style="color: '+this.brandColor+'"></div>\n </div>',t.id="pdf-bottom-loading",this.container.appendChild(t)},t.prototype.hideBottomLoading=function(){var t=document.getElementById("pdf-bottom-loading");t&&t.remove()},t.prototype.destroy=function(){this.isDestroyed=!0,this.isRendering=!1,this.renderQueue=[],this.pageArr.forEach(function(t){t&&t.destroy()}),this.pageArr=[],this.pdfDocument&&(this.pdfDocument.destroy(),this.pdfDocument=null),this.pdfLoadingTask&&(this.pdfLoadingTask.destroy(),this.pdfLoadingTask=null),this.container&&(this.container.innerHTML=""),console.log("PDF 实例已销毁")},t}();e.default=v},335:function(module,exports,__webpack_require__){(function(Buffer,process,global){!function(t,e){module.exports=e()}(0,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var i in t)e.d(n,i,function(e){return t[e]}.bind(null,i));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLinkAttributes",{enumerable:!0,get:function(){return n.addLinkAttributes}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return n.getFilenameFromUrl}}),Object.defineProperty(e,"LinkTarget",{enumerable:!0,get:function(){return n.LinkTarget}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return n.loadScript}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return n.PDFDateString}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return n.RenderingCancelledException}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return i.build}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return i.getDocument}}),Object.defineProperty(e,"LoopbackPort",{enumerable:!0,get:function(){return i.LoopbackPort}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return i.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return i.PDFWorker}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return i.version}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return o.CMapCompressionType}}),Object.defineProperty(e,"createObjectURL",{enumerable:!0,get:function(){return o.createObjectURL}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return o.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return o.createValidAbsoluteUrl}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return o.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return o.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return o.OPS}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return o.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return o.PermissionFlag}}),Object.defineProperty(e,"removeNullCharacters",{enumerable:!0,get:function(){return o.removeNullCharacters}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return o.shadow}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return o.UnexpectedResponseException}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return o.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return o.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return o.VerbosityLevel}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return a.AnnotationLayer}}),Object.defineProperty(e,"apiCompatibilityParams",{enumerable:!0,get:function(){return s.apiCompatibilityParams}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return c.GlobalWorkerOptions}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return u.renderTextLayer}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return l.SVGGraphics}});var n=r(1),i=r(198),o=r(5),a=r(209),s=r(200),c=r(203),u=r(210),l=r(211);if(r(7).isNodeJS){var h=r(212).PDFNodeStream;(0,i.setPDFNetworkStreamFactory)(function(t){return new h(t)})}else{var f,d=r(215).PDFNetworkStream;(0,n.isFetchSupported)()&&(f=r(216).PDFFetchStream),(0,i.setPDFNetworkStreamFactory)(function(t){return f&&(0,n.isValidFetchUrl)(t.url)?new f(t):new d(t)})}},function(t,e,r){"use strict";function n(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=i(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t){"@babel/helpers - typeof";return(a="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})(t)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=f();return function(){var r,n=d(t);if(e){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function v(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){function o(t){p(s,n,i,o,a,"next",t)}function a(t){p(s,n,i,o,a,"throw",t)}var s=t.apply(e,r);o(void 0)})}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function y(t,e,r){return e&&g(t.prototype,e),r&&g(t,r),t}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.url,n=e.target,i=e.rel,o=e.enabled,a=void 0===o||o;(0,k.assert)(r&&"string"==typeof r,'addLinkAttributes: A valid "url" parameter must provided.');var s=(0,k.removeNullCharacters)(r);a?t.href=t.title=s:(t.href="",t.title="Disabled: ".concat(s),t.onclick=function(){return!1});var c="";switch(n){case M.NONE:break;case M.SELF:c="_self";break;case M.BLANK:c="_blank";break;case M.PARENT:c="_parent";break;case M.TOP:c="_top"}t.target=c,t.rel="string"==typeof i?i:P}function _(t){var e=t.indexOf("#"),r=t.indexOf("?"),n=Math.min(e>0?e:t.length,r>0?r:t.length);return t.substring(t.lastIndexOf("/",n)+1,n)}function w(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function S(t,e){try{var r=e?new URL(t,e):new URL(t),n=r.protocol;return"http:"===n||"https:"===n}catch(t){return!1}}function A(t){return new Promise(function(e,r){var n=document.createElement("script");n.src=t,n.onload=e,n.onerror=function(){r(new Error("Cannot load script at: ".concat(n.src)))},(document.head||document.documentElement).appendChild(n)})}function x(t){console.log("Deprecated API usage: "+t)}Object.defineProperty(e,"__esModule",{value:!0}),e.addLinkAttributes=b,e.getFilenameFromUrl=_,e.isFetchSupported=w,e.isValidFetchUrl=S,e.loadScript=A,e.deprecated=x,e.PDFDateString=e.StatTimer=e.DOMSVGFactory=e.DOMCMapReaderFactory=e.DOMCanvasFactory=e.DEFAULT_LINK_REL=e.LinkTarget=e.RenderingCancelledException=e.PageViewport=void 0;var T=function(t){return t&&t.__esModule?t:{default:t}}(r(2)),k=r(5),P="noopener noreferrer nofollow";e.DEFAULT_LINK_REL=P;var C="http://www.w3.org/2000/svg",R=function(){function t(){m(this,t)}return y(t,[{key:"create",value:function(t,e){if(t<=0||e<=0)throw new Error("Invalid canvas size");var r=document.createElement("canvas"),n=r.getContext("2d");return r.width=t,r.height=e,{canvas:r,context:n}}},{key:"reset",value:function(t,e,r){if(!t.canvas)throw new Error("Canvas is not specified");if(e<=0||r<=0)throw new Error("Invalid canvas size");t.canvas.width=e,t.canvas.height=r}},{key:"destroy",value:function(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}}]),t}();e.DOMCanvasFactory=R;var E=function(){function t(e){var r=e.baseUrl,n=void 0===r?null:r,i=e.isCompressed,o=void 0!==i&&i;m(this,t),this.baseUrl=n,this.isCompressed=o}return y(t,[{key:"fetch",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){var t=v(T.default.mark(function t(e){var r,n,i,o=this;return T.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.name,this.baseUrl){t.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(r){t.next=5;break}throw new Error("CMap name must be specified.");case 5:if(n=this.baseUrl+r+(this.isCompressed?".bcmap":""),i=this.isCompressed?k.CMapCompressionType.BINARY:k.CMapCompressionType.NONE,!w()||!S(n,document.baseURI)){t.next=9;break}return t.abrupt("return",fetch(n).then(function(){var t=v(T.default.mark(function t(e){var r;return T.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.ok){t.next=2;break}throw new Error(e.statusText);case 2:if(!o.isCompressed){t.next=10;break}return t.t0=Uint8Array,t.next=6,e.arrayBuffer();case 6:t.t1=t.sent,r=new t.t0(t.t1),t.next=15;break;case 10:return t.t2=k.stringToBytes,t.next=13,e.text();case 13:t.t3=t.sent,r=(0,t.t2)(t.t3);case 15:return t.abrupt("return",{cMapData:r,compressionType:i});case 16:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()).catch(function(t){throw new Error("Unable to load ".concat(o.isCompressed?"binary ":"")+"CMap at: ".concat(n))}));case 9:return t.abrupt("return",new Promise(function(t,e){var r=new XMLHttpRequest;r.open("GET",n,!0),o.isCompressed&&(r.responseType="arraybuffer"),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE){if(200===r.status||0===r.status){var n;if(o.isCompressed&&r.response?n=new Uint8Array(r.response):!o.isCompressed&&r.responseText&&(n=(0,k.stringToBytes)(r.responseText)),n)return void t({cMapData:n,compressionType:i})}e(new Error(r.statusText))}},r.send(null)}).catch(function(t){throw new Error("Unable to load ".concat(o.isCompressed?"binary ":"")+"CMap at: ".concat(n))}));case 10:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}())}]),t}();e.DOMCMapReaderFactory=E;var O=function(){function t(){m(this,t)}return y(t,[{key:"create",value:function(t,e){(0,k.assert)(t>0&&e>0,"Invalid SVG dimensions");var r=document.createElementNS(C,"svg:svg");return r.setAttribute("version","1.1"),r.setAttribute("width",t+"px"),r.setAttribute("height",e+"px"),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 "+t+" "+e),r}},{key:"createElement",value:function(t){return(0,k.assert)("string"==typeof t,"Invalid SVG element type"),document.createElementNS(C,t)}}]),t}();e.DOMSVGFactory=O;var L=function(){function t(e){var r=e.viewBox,n=e.scale,i=e.rotation,o=e.offsetX,a=void 0===o?0:o,s=e.offsetY,c=void 0===s?0:s,u=e.dontFlip,l=void 0!==u&&u;m(this,t),this.viewBox=r,this.scale=n,this.rotation=i,this.offsetX=a,this.offsetY=c;var h,f,d,p,v=(r[2]+r[0])/2,g=(r[3]+r[1])/2;switch(i%=360,i=i<0?i+360:i){case 180:h=-1,f=0,d=0,p=1;break;case 90:h=0,f=1,d=1,p=0;break;case 270:h=0,f=-1,d=-1,p=0;break;case 0:h=1,f=0,d=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}l&&(d=-d,p=-p);var y,b,_,w;0===h?(y=Math.abs(g-r[1])*n+a,b=Math.abs(v-r[0])*n+c,_=Math.abs(r[3]-r[1])*n,w=Math.abs(r[2]-r[0])*n):(y=Math.abs(v-r[0])*n+a,b=Math.abs(g-r[1])*n+c,_=Math.abs(r[2]-r[0])*n,w=Math.abs(r[3]-r[1])*n),this.transform=[h*n,f*n,d*n,p*n,y-h*n*v-d*n*g,b-f*n*v-p*n*g],this.width=_,this.height=w}return y(t,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.scale,n=void 0===r?this.scale:r,i=e.rotation,o=void 0===i?this.rotation:i,a=e.offsetX,s=void 0===a?this.offsetX:a,c=e.offsetY,u=void 0===c?this.offsetY:c,l=e.dontFlip,h=void 0!==l&&l;return new t({viewBox:this.viewBox.slice(),scale:n,rotation:o,offsetX:s,offsetY:u,dontFlip:h})}},{key:"convertToViewportPoint",value:function(t,e){return k.Util.applyTransform([t,e],this.transform)}},{key:"convertToViewportRectangle",value:function(t){var e=k.Util.applyTransform([t[0],t[1]],this.transform),r=k.Util.applyTransform([t[2],t[3]],this.transform);return[e[0],e[1],r[0],r[1]]}},{key:"convertToPdfPoint",value:function(t,e){return k.Util.applyInverseTransform([t,e],this.transform)}}]),t}();e.PageViewport=L;var I=function(t){function e(t,n){var i;return m(this,e),i=r.call(this,t),i.type=n,i}s(e,t);var r=u(e);return e}(k.BaseException);e.RenderingCancelledException=I;var M={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};e.LinkTarget=M;var F=function(){function t(){m(this,t),this.started=Object.create(null),this.times=[]}return y(t,[{key:"time",value:function(t){t in this.started&&(0,k.warn)("Timer is already running for ".concat(t)),this.started[t]=Date.now()}},{key:"timeEnd",value:function(t){t in this.started||(0,k.warn)("Timer has not been started for ".concat(t)),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}},{key:"toString",value:function(){var t,e=[],r=0,i=n(this.times);try{for(i.s();!(t=i.n()).done;){var o=t.value,a=o.name;a.length>r&&(r=a.length)}}catch(t){i.e(t)}finally{i.f()}var s,c=n(this.times);try{for(c.s();!(s=c.n()).done;){var u=s.value,l=u.end-u.start;e.push("".concat(u.name.padEnd(r)," ").concat(l,"ms\n"))}}catch(t){c.e(t)}finally{c.f()}return e.join("")}}]),t}();e.StatTimer=F;var D,j=function(){function t(){m(this,t)}return y(t,null,[{key:"toDateObject",value:function(t){if(!t||!(0,k.isString)(t))return null;D||(D=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var e=D.exec(t);if(!e)return null;var r=parseInt(e[1],10),n=parseInt(e[2],10);n=n>=1&&n<=12?n-1:0;var i=parseInt(e[3],10);i=i>=1&&i<=31?i:1;var o=parseInt(e[4],10);o=o>=0&&o<=23?o:0;var a=parseInt(e[5],10);a=a>=0&&a<=59?a:0;var s=parseInt(e[6],10);s=s>=0&&s<=59?s:0;var c=e[7]||"Z",u=parseInt(e[8],10);u=u>=0&&u<=23?u:0;var l=parseInt(e[9],10)||0;return l=l>=0&&l<=59?l:0,"-"===c?(o+=u,a+=l):"+"===c&&(o-=u,a-=l),new Date(Date.UTC(r,n,i,o,a,s))}}]),t}();e.PDFDateString=j},function(t,e,r){"use strict";t.exports=r(3)},function(t,e,r){"use strict";(function(t){function e(t){"@babel/helpers - typeof";return(e="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})(t)}var r=function(t){function r(t,e,r,n){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),s=new d(n||[]);return a._invoke=u(t,r,s),a}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function a(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t,r){function i(o,a,s,c){var u=n(t[o],t,a);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"===e(h)&&y.call(h,"__await")?r.resolve(h.__await).then(function(t){i("next",t,s,c)},function(t){i("throw",t,s,c)}):r.resolve(h).then(function(t){l.value=t,s(l)},function(t){return i("throw",t,s,c)})}c(u.arg)}function o(t,e){function n(){return new r(function(r,n){i(t,e,r,n)})}return a=a?a.then(n,n):n()}var a;this._invoke=o}function u(t,e,r){var i=A;return function(o,a){if(i===T)throw new Error("Generator is already running");if(i===k){if("throw"===o)throw a;return v()}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=l(s,r);if(c){if(c===P)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===A)throw i=k,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=T;var u=n(t,e,r);if("normal"===u.type){if(i=r.done?k:x,u.arg===P)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=k,r.method="throw",r.arg=u.arg)}}}function l(t,e){var r=t.iterator[e.method];if(r===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,l(t,e),"throw"===e.method))return P;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return P}var i=n(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,P;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,P):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,P)}function h(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 f(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,this),this.reset(!0)}function p(t){if(t){var e=t[_];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(y.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=m,e.done=!0,e};return n.next=n}}return{next:v}}function v(){return{value:m,done:!0}}var m,g=Object.prototype,y=g.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},_=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",S=b.toStringTag||"@@toStringTag";t.wrap=r;var A="suspendedStart",x="suspendedYield",T="executing",k="completed",P={},C={};C[_]=function(){return this};var R=Object.getPrototypeOf,E=R&&R(R(p([])));E&&E!==g&&y.call(E,_)&&(C=E);var O=a.prototype=i.prototype=Object.create(C);return o.prototype=O.constructor=a,a.constructor=o,a[S]=o.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,S in t||(t[S]="GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},s(c.prototype),c.prototype[w]=function(){return this},t.AsyncIterator=c,t.async=function(e,n,i,o,a){void 0===a&&(a=Promise);var s=new c(r(e,n,i,o),a);return t.isGeneratorFunction(n)?s:s.next().then(function(t){return t.done?t.value:s.next()})},s(O),O[S]="Generator",O[_]=function(){return this},O.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=p,d.prototype={constructor:d,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(f),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return o.type="throw",o.arg=t,r.next=e,n&&(r.method="next",r.arg=m),!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&y.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,P):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),P},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),f(r),P}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;f(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:p(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=m),P}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}}).call(this,r(4)(t))},function(t,e,r){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}function o(t){"@babel/helpers - typeof";return(o="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})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=f();return function(){var r,n=d(t);if(e){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t){Number.isInteger(t)&&(ct=t)}function v(){return ct}function m(t){ct>=nt.INFOS&&console.log("Info: ".concat(t))}function g(t){ct>=nt.WARNINGS&&console.log("Warning: ".concat(t))}function y(t){throw new Error(t)}function b(t,e){t||y(e)}function _(t,e){var r;try{if(r=new URL(t),!r.origin||"null"===r.origin)return!1}catch(t){return!1}var n=new URL(e,r);return r.origin===n.origin}function w(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function S(t,e){if(!t)return null;try{var r=e?new URL(t,e):new URL(t);if(w(r))return r}catch(t){}return null}function A(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}function x(t){return"string"!=typeof t?(g("The argument for removeNullCharacters must be a string."),t):t.replace(gt,"")}function T(t){b(null!==t&&"object"===o(t)&&void 0!==t.length,"Invalid argument for bytesToString");var e=t.length;if(e<8192)return String.fromCharCode.apply(null,t);for(var r=[],n=0;n<e;n+=8192){var i=Math.min(n+8192,e),a=t.subarray(n,i);r.push(String.fromCharCode.apply(null,a))}return r.join("")}function k(t){b("string"==typeof t,"Invalid argument for stringToBytes");for(var e=t.length,r=new Uint8Array(e),n=0;n<e;++n)r[n]=255&t.charCodeAt(n);return r}function P(t){return void 0!==t.length?t.length:(b(void 0!==t.byteLength,"arrayByteLength - invalid argument."),t.byteLength)}function C(t){var e=t.length;if(1===e&&t[0]instanceof Uint8Array)return t[0];for(var r=0,n=0;n<e;n++)r+=P(t[n]);for(var i=0,o=new Uint8Array(r),a=0;a<e;a++){var s=t[a];s instanceof Uint8Array||(s="string"==typeof s?k(s):new Uint8Array(s));var c=s.byteLength;o.set(s,i),i+=c}return o}function R(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)}function E(){var t=new Uint8Array(4);return t[0]=1,1===new Uint32Array(t.buffer,0,1)[0]}function O(){try{return new Function(""),!0}catch(t){return!1}}function L(t){var e=t.length,r=[];if("þ"===t[0]&&"ÿ"===t[1])for(var n=2;n<e;n+=2)r.push(String.fromCharCode(t.charCodeAt(n)<<8|t.charCodeAt(n+1)));else if("ÿ"===t[0]&&"þ"===t[1])for(var i=2;i<e;i+=2)r.push(String.fromCharCode(t.charCodeAt(i+1)<<8|t.charCodeAt(i)));else for(var o=0;o<e;++o){var a=St[t.charCodeAt(o)];r.push(a?String.fromCharCode(a):t.charAt(o))}return r.join("")}function I(t){return decodeURIComponent(escape(t))}function M(t){return unescape(encodeURIComponent(t))}function F(t){for(var e in t)return!1;return!0}function D(t){return"boolean"==typeof t}function j(t){return"number"==typeof t}function N(t){return"string"==typeof t}function U(t){return"object"===o(t)&&null!==t&&void 0!==t.byteLength}function B(t,e){return t.length===e.length&&t.every(function(t,r){return t===e[r]})}function W(){var t=Object.create(null),e=!1;return Object.defineProperty(t,"settled",{get:function(){return e}}),t.promise=new Promise(function(r,n){t.resolve=function(t){e=!0,r(t)},t.reject=function(t){e=!0,n(t)}}),t}Object.defineProperty(e,"__esModule",{value:!0}),e.arrayByteLength=P,e.arraysToBytes=C,e.assert=b,e.bytesToString=T,e.createPromiseCapability=W,e.getVerbosityLevel=v,e.info=m,e.isArrayBuffer=U,e.isArrayEqual=B,e.isBool=D,e.isEmptyObj=F,e.isNum=j,e.isString=N,e.isSameOrigin=_,e.createValidAbsoluteUrl=S,e.removeNullCharacters=x,e.setVerbosityLevel=p,e.shadow=A,e.string32=R,e.stringToBytes=k,e.stringToPDFString=L,e.stringToUTF8String=I,e.utf8StringToString=M,e.warn=g,e.unreachable=y,e.IsEvalSupportedCached=e.IsLittleEndianCached=e.createObjectURL=e.FormatError=e.Util=e.UnknownErrorException=e.UnexpectedResponseException=e.TextRenderingMode=e.StreamType=e.PermissionFlag=e.PasswordResponses=e.PasswordException=e.MissingPDFException=e.InvalidPDFException=e.AbortException=e.CMapCompressionType=e.ImageKind=e.FontType=e.AnnotationType=e.AnnotationStateModelType=e.AnnotationReviewState=e.AnnotationReplyType=e.AnnotationMarkedState=e.AnnotationFlag=e.AnnotationFieldFlag=e.AnnotationBorderStyleType=e.UNSUPPORTED_FEATURES=e.VerbosityLevel=e.OPS=e.IDENTITY_MATRIX=e.FONT_IDENTITY_MATRIX=e.BaseException=void 0,r(6);var q=[1,0,0,1,0,0];e.IDENTITY_MATRIX=q;var Y=[.001,0,0,.001,0,0];e.FONT_IDENTITY_MATRIX=Y;var z={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};e.PermissionFlag=z;var X={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};e.TextRenderingMode=X;var H={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};e.ImageKind=H;var G={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};e.AnnotationType=G;var V={MARKED:"Marked",REVIEW:"Review"};e.AnnotationStateModelType=V;var $={MARKED:"Marked",UNMARKED:"Unmarked"};e.AnnotationMarkedState=$;var Q={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};e.AnnotationReviewState=Q;var K={GROUP:"Group",REPLY:"R"};e.AnnotationReplyType=K;var J={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};e.AnnotationFlag=J;var Z={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};e.AnnotationFieldFlag=Z;var tt={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};e.AnnotationBorderStyleType=tt;var et={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};e.StreamType=et;var rt={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};e.FontType=rt;var nt={ERRORS:0,WARNINGS:1,INFOS:5};e.VerbosityLevel=nt;var it={NONE:0,BINARY:1,STREAM:2};e.CMapCompressionType=it;var ot={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};e.OPS=ot;var at={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath"};e.UNSUPPORTED_FEATURES=at;var st={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};e.PasswordResponses=st;var ct=nt.WARNINGS,ut=function(){function t(e){this.constructor===t&&y("Cannot initialize BaseException."),this.message=e,this.name=this.constructor.name}return t.prototype=new Error,t.constructor=t,t}();e.BaseException=ut;var lt=function(t){function e(t,n){var i;return a(this,e),i=r.call(this,t),i.code=n,i}s(e,t);var r=u(e);return e}(ut);e.PasswordException=lt;var ht=function(t){function e(t,n){var i;return a(this,e),i=r.call(this,t),i.details=n,i}s(e,t);var r=u(e);return e}(ut);e.UnknownErrorException=ht;var ft=function(t){function e(){return a(this,e),r.apply(this,arguments)}s(e,t);var r=u(e);return e}(ut);e.InvalidPDFException=ft;var dt=function(t){function e(){return a(this,e),r.apply(this,arguments)}s(e,t);var r=u(e);return e}(ut);e.MissingPDFException=dt;var pt=function(t){function e(t,n){var i;return a(this,e),i=r.call(this,t),i.status=n,i}s(e,t);var r=u(e);return e}(ut);e.UnexpectedResponseException=pt;var vt=function(t){function e(){return a(this,e),r.apply(this,arguments)}s(e,t);var r=u(e);return e}(ut);e.FormatError=vt;var mt=function(t){function e(){return a(this,e),r.apply(this,arguments)}s(e,t);var r=u(e);return e}(ut);e.AbortException=mt;var gt=/\x00/g,yt={get value(){return A(this,"value",E())}};e.IsLittleEndianCached=yt;var bt={get value(){return A(this,"value",O())}};e.IsEvalSupportedCached=bt;var _t=["rgb(",0,",",0,",",0,")"],wt=function(){function t(){a(this,t)}return i(t,null,[{key:"makeCssRgb",value:function(t,e,r){return _t[1]=t,_t[3]=e,_t[5]=r,_t.join("")}},{key:"transform",value:function(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}},{key:"applyTransform",value:function(t,e){return[t[0]*e[0]+t[1]*e[2]+e[4],t[0]*e[1]+t[1]*e[3]+e[5]]}},{key:"applyInverseTransform",value:function(t,e){var r=e[0]*e[3]-e[1]*e[2];return[(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])/r,(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/r]}},{key:"getAxialAlignedBoundingBox",value:function(e,r){var n=t.applyTransform(e,r),i=t.applyTransform(e.slice(2,4),r),o=t.applyTransform([e[0],e[3]],r),a=t.applyTransform([e[2],e[1]],r);return[Math.min(n[0],i[0],o[0],a[0]),Math.min(n[1],i[1],o[1],a[1]),Math.max(n[0],i[0],o[0],a[0]),Math.max(n[1],i[1],o[1],a[1])]}},{key:"inverseTransform",value:function(t){var e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}},{key:"apply3dTransform",value:function(t,e){return[t[0]*e[0]+t[1]*e[1]+t[2]*e[2],t[3]*e[0]+t[4]*e[1]+t[5]*e[2],t[6]*e[0]+t[7]*e[1]+t[8]*e[2]]}},{key:"singularValueDecompose2dScale",value:function(t){var e=[t[0],t[2],t[1],t[3]],r=t[0]*e[0]+t[1]*e[2],n=t[0]*e[1]+t[1]*e[3],i=t[2]*e[0]+t[3]*e[2],o=t[2]*e[1]+t[3]*e[3],a=(r+o)/2,s=Math.sqrt((r+o)*(r+o)-4*(r*o-i*n))/2,c=a+s||1,u=a-s||1;return[Math.sqrt(c),Math.sqrt(u)]}},{key:"normalizeRect",value:function(t){var e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e}},{key:"intersect",value:function(e,r){function n(t,e){return t-e}var i=[e[0],e[2],r[0],r[2]].sort(n),o=[e[1],e[3],r[1],r[3]].sort(n),a=[];return e=t.normalizeRect(e),r=t.normalizeRect(r),i[0]===e[0]&&i[1]===r[0]||i[0]===r[0]&&i[1]===e[0]?(a[0]=i[1],a[2]=i[2],o[0]===e[1]&&o[1]===r[1]||o[0]===r[1]&&o[1]===e[1]?(a[1]=o[1],a[3]=o[2],a):null):null}}]),t}();e.Util=wt;var St=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],At=function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(e,r){if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var n=new Blob([e],{type:r});return URL.createObjectURL(n)}for(var i="data:".concat(r,";base64,"),o=0,a=e.length;o<a;o+=3){var s=255&e[o],c=255&e[o+1],u=255&e[o+2];i+=t[s>>2]+t[(3&s)<<4|c>>4]+t[o+1<a?(15&c)<<2|u>>6:64]+t[o+2<a?63&u:64]}return i}}();e.createObjectURL=At},function(t,e,r){"use strict";function n(t){"@babel/helpers - typeof";return(n="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})(t)}var i=r(7);if("undefined"==typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=r(8)),globalThis._pdfjsCompatibilityChecked=!0;var o="object"===("undefined"==typeof window?"undefined":n(window))&&"object"===("undefined"==typeof document?"undefined":n(document)),a="undefined"!=typeof navigator&&navigator.userAgent||"",s=/Trident/.test(a);!function(){!globalThis.btoa&&i.isNodeJS&&(globalThis.btoa=function(t){return Buffer.from(t,"binary").toString("base64")})}(),function(){!globalThis.atob&&i.isNodeJS&&(globalThis.atob=function(t){return Buffer.from(t,"base64").toString("binary")})}(),function(){o&&void 0===Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})}(),function(){if(o&&!i.isNodeJS){var t=document.createElement("div");if(t.classList.add("testOne","testTwo"),!0!==t.classList.contains("testOne")||!0!==t.classList.contains("testTwo")){var e=DOMTokenList.prototype.add,r=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];e.call(this,a)}},DOMTokenList.prototype.remove=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var i=0,o=e;i<o.length;i++){var a=o[i];r.call(this,a)}}}}}(),function(){if(o&&!i.isNodeJS){!1!==document.createElement("div").classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(t){var e=arguments.length>1?!!arguments[1]:!this.contains(t);return this[e?"add":"remove"](t),e})}}(),function(){if(o&&s){var t=window.history.pushState,e=window.history.replaceState;window.history.pushState=function(e,r,n){var i=void 0===n?[e,r]:[e,r,n];t.apply(this,i)},window.history.replaceState=function(t,r,n){var i=void 0===n?[t,r]:[t,r,n];e.apply(this,i)}}}(),function(){String.prototype.startsWith||r(53)}(),function(){String.prototype.endsWith||r(64)}(),function(){String.prototype.includes||r(66)}(),function(){Array.prototype.includes||r(68)}(),function(){Array.from||r(76)}(),function(){Object.assign||r(98)}(),function(){Math.log2||(Math.log2=r(101))}(),function(){Number.isNaN||(Number.isNaN=r(103))}(),function(){Number.isInteger||(Number.isInteger=r(105))}(),function(){Uint8Array.prototype.slice||r(108)}(),function(){globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=r(113))}(),function(){globalThis.URL=r(136)}(),function(){var t=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function(t){t.close()}}),t=!0}catch(t){}t||(globalThis.ReadableStream=r(143).ReadableStream)}(),function(){globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=r(144))}(),function(){globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=r(151))}(),function(){globalThis.WeakMap||(globalThis.WeakMap=r(153))}(),function(){globalThis.WeakSet||(globalThis.WeakSet=r(159))}(),function(){String.prototype.codePointAt||r(161)}(),function(){String.fromCodePoint||(String.fromCodePoint=r(163))}(),function(){globalThis.Symbol||r(165)}(),function(){String.prototype.padStart||r(188)}(),function(){String.prototype.padEnd||r(193)}(),function(){Object.values||(Object.values=r(195))}()}},function(t,e,r){"use strict";function n(t){"@babel/helpers - typeof";return(n="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})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.isNodeJS=void 0;var i="object"===(void 0===process?"undefined":n(process))&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;e.isNodeJS=i},function(t,e,r){r(9),t.exports=r(11)},function(t,e,r){r(10)({global:!0},{globalThis:r(11)})},function(t,e,r){var n=r(11),i=r(12).f,o=r(26),a=r(29),s=r(30),c=r(40),u=r(52);t.exports=function(t,e){var r,l,h,f,d,p=t.target,v=t.global,m=t.stat;if(r=v?n:m?n[p]||s(p,{}):(n[p]||{}).prototype)for(l in e){if(f=e[l],t.noTargetGet?(d=i(r,l),h=d&&d.value):h=r[l],!u(v?l:p+(m?".":"#")+l,t.forced)&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}(t.sham||h&&h.sham)&&o(f,"sham",!0),a(r,l,f,t)}}},function(t,e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||Function("return this")()},function(t,e,r){var n=r(13),i=r(15),o=r(16),a=r(17),s=r(21),c=r(23),u=r(24),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=a(t),e=s(e,!0),u)try{return l(t,e)}catch(t){}if(c(t,e))return o(!i.f.call(t,e),t[e])}},function(t,e,r){var n=r(14);t.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(18),i=r(20);t.exports=function(t){return n(i(t))}},function(t,e,r){var n=r(14),i=r(19),o="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(22);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(13),i=r(14),o=r(25);t.exports=!n&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(11),i=r(22),o=n.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,r){var n=r(13),i=r(27),o=r(16);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(13),i=r(24),o=r(28),a=r(21),s=Object.defineProperty;e.f=n?s:function(t,e,r){if(o(t),e=a(e,!0),o(r),i)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(22);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,r){var n=r(11),i=r(26),o=r(23),a=r(30),s=r(31),c=r(33),u=c.get,l=c.enforce,h=String(String).split("String");(t.exports=function(t,e,r,s){var c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;if("function"==typeof r&&("string"!=typeof e||o(r,"name")||i(r,"name",e),l(r).source=h.join("string"==typeof e?e:"")),t===n)return void(u?t[e]=r:a(e,r));c?!f&&t[e]&&(u=!0):delete t[e],u?t[e]=r:i(t,e,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&u(this).source||s(this)})},function(t,e,r){var n=r(11),i=r(26);t.exports=function(t,e){try{i(n,t,e)}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(32),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return i.call(t)}),t.exports=n.inspectSource},function(t,e,r){var n=r(11),i=r(30),o=n["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,r){var n,i,o,a=r(34),s=r(11),c=r(22),u=r(26),l=r(23),h=r(35),f=r(39),d=s.WeakMap,p=function(t){return o(t)?i(t):n(t,{})},v=function(t){return function(e){var r;if(!c(e)||(r=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}};if(a){var m=new d,g=m.get,y=m.has,b=m.set;n=function(t,e){return b.call(m,t,e),e},i=function(t){return g.call(m,t)||{}},o=function(t){return y.call(m,t)}}else{var _=h("state");f[_]=!0,n=function(t,e){return u(t,_,e),e},i=function(t){return l(t,_)?t[_]:{}},o=function(t){return l(t,_)}}t.exports={set:n,get:i,has:o,enforce:p,getterFor:v}},function(t,e,r){var n=r(11),i=r(31),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},function(t,e,r){var n=r(36),i=r(38),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e,r){var n=r(37),i=r(32);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+n).toString(36)}},function(t,e){t.exports={}},function(t,e,r){var n=r(23),i=r(41),o=r(12),a=r(27);t.exports=function(t,e){for(var r=i(e),s=a.f,c=o.f,u=0;u<r.length;u++){var l=r[u];n(t,l)||s(t,l,c(e,l))}}},function(t,e,r){var n=r(42),i=r(44),o=r(51),a=r(28);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?e.concat(r(t)):e}},function(t,e,r){var n=r(43),i=r(11),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(i[t]):n[t]&&n[t][e]||i[t]&&i[t][e]}},function(t,e,r){var n=r(11);t.exports=n},function(t,e,r){var n=r(45),i=r(50),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,r){var n=r(23),i=r(17),o=r(46).indexOf,a=r(39);t.exports=function(t,e){var r,s=i(t),c=0,u=[];for(r in s)!n(a,r)&&n(s,r)&&u.push(r);for(;e.length>c;)n(s,r=e[c++])&&(~o(u,r)||u.push(r));return u}},function(t,e,r){var n=r(17),i=r(47),o=r(49),a=function(t){return function(e,r,a){var s,c=n(e),u=i(c.length),l=o(a,u);if(t&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,r){var n=r(48),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(48),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(14),i=/#|\.prototype\./,o=function(t,e){var r=s[a(t)];return r==u||r!=c&&("function"==typeof e?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},function(t,e,r){r(54);var n=r(61);t.exports=n("String","startsWith")},function(t,e,r){"use strict";var n=r(10),i=r(12).f,o=r(47),a=r(55),s=r(20),c=r(60),u=r(37),l="".startsWith,h=Math.min,f=c("startsWith");n({target:"String",proto:!0,forced:!(!u&&!f&&!!function(){var t=i(String.prototype,"startsWith");return t&&!t.writable}()||f)},{startsWith:function(t){var e=String(s(this));a(t);var r=o(h(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return l?l.call(e,n,r):e.slice(r,r+n.length)===n}})},function(t,e,r){var n=r(56);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,r){var n=r(22),i=r(19),o=r(57),a=o("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},function(t,e,r){var n=r(11),i=r(36),o=r(23),a=r(38),s=r(58),c=r(59),u=i("wks"),l=n.Symbol,h=c?l:l&&l.withoutSetter||a;t.exports=function(t){return o(u,t)||(s&&o(l,t)?u[t]=l[t]:u[t]=h("Symbol."+t)),u[t]}},function(t,e,r){var n=r(14);t.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},function(t,e,r){var n=r(58);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){var n=r(57),i=n("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[i]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,r){var n=r(11),i=r(62),o=Function.call;t.exports=function(t,e,r){return i(o,n[t].prototype[e],r)}},function(t,e,r){var n=r(63);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,r){r(65);var n=r(61);t.exports=n("String","endsWith")},function(t,e,r){"use strict";var n=r(10),i=r(12).f,o=r(47),a=r(55),s=r(20),c=r(60),u=r(37),l="".endsWith,h=Math.min,f=c("endsWith");n({target:"String",proto:!0,forced:!(!u&&!f&&!!function(){var t=i(String.prototype,"endsWith");return t&&!t.writable}()||f)},{endsWith:function(t){var e=String(s(this));a(t);var r=arguments.length>1?arguments[1]:void 0,n=o(e.length),i=void 0===r?n:h(o(r),n),c=String(t);return l?l.call(e,c,i):e.slice(i-c.length,i)===c}})},function(t,e,r){r(67);var n=r(61);t.exports=n("String","includes")},function(t,e,r){"use strict";var n=r(10),i=r(55),o=r(20);n({target:"String",proto:!0,forced:!r(60)("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){r(69);var n=r(61);t.exports=n("Array","includes")},function(t,e,r){"use strict";var n=r(10),i=r(46).includes,o=r(70);n({target:"Array",proto:!0,forced:!r(75)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(t,e,r){var n=r(57),i=r(71),o=r(27),a=n("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e,r){var n,i=r(28),o=r(72),a=r(50),s=r(39),c=r(74),u=r(25),l=r(35),h=l("IE_PROTO"),f=function(){},d=function(t){return"<script>"+t+"<\/script>"},p=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){var t,e=u("iframe");return e.style.display="none",c.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(d("document.F=Object")),t.close(),t.F},m=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}m=n?p(n):v();for(var t=a.length;t--;)delete m.prototype[a[t]];return m()};s[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(f.prototype=i(t),r=new f,f.prototype=null,r[h]=t):r=m(),void 0===e?r:o(r,e)}},function(t,e,r){var n=r(13),i=r(27),o=r(28),a=r(73);t.exports=n?Object.defineProperties:function(t,e){o(t);for(var r,n=a(e),s=n.length,c=0;s>c;)i.f(t,r=n[c++],e[r]);return t}},function(t,e,r){var n=r(45),i=r(50);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e,r){var n=r(42);t.exports=n("document","documentElement")},function(t,e,r){var n=r(13),i=r(14),o=r(23),a=Object.defineProperty,s={},c=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var r=[][t],u=!!o(e,"ACCESSORS")&&e.ACCESSORS,l=o(e,0)?e[0]:c,h=o(e,1)?e[1]:void 0;return s[t]=!!r&&!i(function(){if(u&&!n)return!0;var t={length:-1};u?a(t,1,{enumerable:!0,get:c}):t[1]=1,r.call(t,l,h)})}},function(t,e,r){r(77),r(89);var n=r(43);t.exports=n.Array.from},function(t,e,r){"use strict";var n=r(78).charAt,i=r(33),o=r(79),a=i.set,s=i.getterFor("String Iterator");o(String,"String",function(t){a(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=s(this),r=e.string,i=e.index;return i>=r.length?{value:void 0,done:!0}:(t=n(r,i),e.index+=t.length,{value:t,done:!1})})},function(t,e,r){var n=r(48),i=r(20),o=function(t){return function(e,r){var o,a,s=String(i(e)),c=n(r),u=s.length;return c<0||c>=u?t?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},function(t,e,r){"use strict";var n=r(10),i=r(80),o=r(82),a=r(87),s=r(85),c=r(26),u=r(29),l=r(57),h=r(37),f=r(86),d=r(81),p=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,m=l("iterator"),g=function(){return this};t.exports=function(t,e,r,l,d,y,b){i(r,e,l);var _,w,S,A=function(t){if(t===d&&C)return C;if(!v&&t in k)return k[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},x=e+" Iterator",T=!1,k=t.prototype,P=k[m]||k["@@iterator"]||d&&k[d],C=!v&&P||A(d),R="Array"==e?k.entries||P:P;if(R&&(_=o(R.call(new t)),p!==Object.prototype&&_.next&&(h||o(_)===p||(a?a(_,p):"function"!=typeof _[m]&&c(_,m,g)),s(_,x,!0,!0),h&&(f[x]=g))),"values"==d&&P&&"values"!==P.name&&(T=!0,C=function(){return P.call(this)}),h&&!b||k[m]===C||c(k,m,C),f[e]=C,d)if(w={values:A("values"),keys:y?C:A("keys"),entries:A("entries")},b)for(S in w)!v&&!T&&S in k||u(k,S,w[S]);else n({target:e,proto:!0,forced:v||T},w);return w}},function(t,e,r){"use strict";var n=r(81).IteratorPrototype,i=r(71),o=r(16),a=r(85),s=r(86),c=function(){return this};t.exports=function(t,e,r){var u=e+" Iterator";return t.prototype=i(n,{next:o(1,r)}),a(t,u,!1,!0),s[u]=c,t}},function(t,e,r){"use strict";var n,i,o,a=r(82),s=r(26),c=r(23),u=r(57),l=r(37),h=u("iterator"),f=!1,d=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)))!==Object.prototype&&(n=i):f=!0),void 0==n&&(n={}),l||c(n,h)||s(n,h,d),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},function(t,e,r){var n=r(23),i=r(83),o=r(35),a=r(84),s=o("IE_PROTO"),c=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,e,r){var n=r(20);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(14);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,e,r){var n=r(27).f,i=r(23),o=r(57),a=o("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,a)&&n(t,a,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,r){var n=r(28),i=r(88);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(r,[]),e=r instanceof Array}catch(t){}return function(r,o){return n(r),i(o),e?t.call(r,o):r.__proto__=o,r}}():void 0)},function(t,e,r){var n=r(22);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,r){var n=r(10),i=r(90);n({target:"Array",stat:!0,forced:!r(97)(function(t){Array.from(t)})},{from:i})},function(t,e,r){"use strict";var n=r(62),i=r(83),o=r(91),a=r(92),s=r(47),c=r(93),u=r(94);t.exports=function(t){var e,r,l,h,f,d,p=i(t),v="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,y=void 0!==g,b=u(p),_=0;if(y&&(g=n(g,m>2?arguments[2]:void 0,2)),void 0==b||v==Array&&a(b))for(e=s(p.length),r=new v(e);e>_;_++)d=y?g(p[_],_):p[_],c(r,_,d);else for(h=b.call(p),f=h.next,r=new v;!(l=f.call(h)).done;_++)d=y?o(h,g,[l.value,_],!0):l.value,c(r,_,d);return r.length=_,r}},function(t,e,r){var n=r(28);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e,r){var n=r(57),i=r(86),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},function(t,e,r){"use strict";var n=r(21),i=r(27),o=r(16);t.exports=function(t,e,r){var a=n(e);a in t?i.f(t,a,o(0,r)):t[a]=r}},function(t,e,r){var n=r(95),i=r(86),o=r(57),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[n(t)]}},function(t,e,r){var n=r(96),i=r(19),o=r(57),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(t){}};t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=c(e=Object(t),a))?r:s?i(e):"Object"==(n=i(e))&&"function"==typeof e.callee?"Arguments":n}},function(t,e,r){var n=r(57),i=n("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},function(t,e,r){var n=r(57),i=n("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}},function(t,e,r){r(99);var n=r(43);t.exports=n.Object.assign},function(t,e,r){var n=r(10),i=r(100);n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(t,e,r){"use strict";var n=r(13),i=r(14),o=r(73),a=r(51),s=r(15),c=r(83),u=r(18),l=Object.assign,h=Object.defineProperty;t.exports=!l||i(function(){if(n&&1!==l({b:1},l(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),i="abcdefghijklmnopqrst";return t[r]=7,i.split("").forEach(function(t){e[t]=t}),7!=l({},t)[r]||o(l({},e)).join("")!=i})?function(t,e){for(var r=c(t),i=arguments.length,l=1,h=a.f,f=s.f;i>l;)for(var d,p=u(arguments[l++]),v=h?o(p).concat(h(p)):o(p),m=v.length,g=0;m>g;)d=v[g++],n&&!f.call(p,d)||(r[d]=p[d]);return r}:l},function(t,e,r){r(102);var n=r(43);t.exports=n.Math.log2},function(t,e,r){var n=r(10),i=Math.log,o=Math.LN2;n({target:"Math",stat:!0},{log2:function(t){return i(t)/o}})},function(t,e,r){r(104);var n=r(43);t.exports=n.Number.isNaN},function(t,e,r){r(10)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,r){r(106);var n=r(43);t.exports=n.Number.isInteger},function(t,e,r){r(10)({target:"Number",stat:!0},{isInteger:r(107)})},function(t,e,r){var n=r(22),i=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&i(t)===t}},function(t,e,r){r(109)},function(t,e,r){"use strict";var n=r(110),i=r(112),o=r(14),a=n.aTypedArray,s=n.aTypedArrayConstructor,c=n.exportTypedArrayMethod,u=[].slice,l=o(function(){new Int8Array(1).slice()});c("slice",function(t,e){for(var r=u.call(a(this),t,e),n=i(this,this.constructor),o=0,c=r.length,l=new(s(n))(c);c>o;)l[o]=r[o++];return l},l)},function(t,e,r){"use strict";var n,i=r(111),o=r(13),a=r(11),s=r(22),c=r(23),u=r(95),l=r(26),h=r(29),f=r(27).f,d=r(82),p=r(87),v=r(57),m=r(38),g=a.Int8Array,y=g&&g.prototype,b=a.Uint8ClampedArray,_=b&&b.prototype,w=g&&d(g),S=y&&d(y),A=Object.prototype,x=A.isPrototypeOf,T=v("toStringTag"),k=m("TYPED_ARRAY_TAG"),P=i&&!!p&&"Opera"!==u(a.opera),C=!1,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},E=function(t){var e=u(t);return"DataView"===e||c(R,e)},O=function(t){return s(t)&&c(R,u(t))},L=function(t){if(O(t))return t;throw TypeError("Target is not a typed array")},I=function(t){if(p){if(x.call(w,t))return t}else for(var e in R)if(c(R,n)){var r=a[e];if(r&&(t===r||x.call(r,t)))return t}throw TypeError("Target is not a typed array constructor")},M=function(t,e,r){if(o){if(r)for(var n in R){var i=a[n];i&&c(i.prototype,t)&&delete i.prototype[t]}S[t]&&!r||h(S,t,r?e:P&&y[t]||e)}},F=function(t,e,r){var n,i;if(o){if(p){if(r)for(n in R)(i=a[n])&&c(i,t)&&delete i[t];if(w[t]&&!r)return;try{return h(w,t,r?e:P&&g[t]||e)}catch(t){}}for(n in R)!(i=a[n])||i[t]&&!r||h(i,t,e)}};for(n in R)a[n]||(P=!1);if((!P||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},P))for(n in R)a[n]&&p(a[n],w);if((!P||!S||S===A)&&(S=w.prototype,P))for(n in R)a[n]&&p(a[n].prototype,S);if(P&&d(_)!==S&&p(_,S),o&&!c(S,T)){C=!0,f(S,T,{get:function(){return s(this)?this[k]:void 0}});for(n in R)a[n]&&l(a[n],k,n)}t.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:C&&k,aTypedArray:L,aTypedArrayConstructor:I,exportTypedArrayMethod:M,exportTypedArrayStaticMethod:F,isView:E,isTypedArray:O,TypedArray:w,TypedArrayPrototype:S}},function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,r){var n=r(28),i=r(63),o=r(57),a=o("species");t.exports=function(t,e){var r,o=n(t).constructor;return void 0===o||void 0==(r=n(o)[a])?e:i(r)}},function(t,e,r){r(114),r(77),r(116),r(119),r(134),r(135);var n=r(43);t.exports=n.Promise},function(t,e,r){var n=r(96),i=r(29),o=r(115);n||i(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,r){"use strict";var n=r(96),i=r(95);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,r){var n=r(11),i=r(117),o=r(118),a=r(26),s=r(57),c=s("iterator"),u=s("toStringTag"),l=o.values;for(var h in i){var f=n[h],d=f&&f.prototype;if(d){if(d[c]!==l)try{a(d,c,l)}catch(t){d[c]=l}if(d[u]||a(d,u,h),i[h])for(var p in o)if(d[p]!==o[p])try{a(d,p,o[p])}catch(t){d[p]=o[p]}}}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,r){"use strict";var n=r(17),i=r(70),o=r(86),a=r(33),s=r(79),c=a.set,u=a.getterFor("Array Iterator");t.exports=s(Array,"Array",function(t,e){c(this,{type:"Array Iterator",target:n(t),index:0,kind:e})},function(){var t=u(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,r){"use strict";var n,i,o,a,s=r(10),c=r(37),u=r(11),l=r(42),h=r(120),f=r(29),d=r(121),p=r(85),v=r(122),m=r(22),g=r(63),y=r(123),b=r(19),_=r(31),w=r(124),S=r(97),A=r(112),x=r(125).set,T=r(128),k=r(129),P=r(131),C=r(130),R=r(132),E=r(33),O=r(52),L=r(57),I=r(133),M=L("species"),F="Promise",D=E.get,j=E.set,N=E.getterFor(F),U=h,B=u.TypeError,W=u.document,q=u.process,Y=l("fetch"),z=C.f,X=z,H="process"==b(q),G=!!(W&&W.createEvent&&u.dispatchEvent),V=O(F,function(){if(_(U)===String(U)){if(66===I)return!0;if(!H&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!U.prototype.finally)return!0;if(I>=51&&/native code/.test(U))return!1;var t=U.resolve(1),e=function(t){t(function(){},function(){})},r=t.constructor={};return r[M]=e,!(t.then(function(){})instanceof e)}),$=V||!S(function(t){U.all(t).catch(function(){})}),Q=function(t){var e;return!(!m(t)||"function"!=typeof(e=t.then))&&e},K=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;T(function(){for(var i=e.value,o=1==e.state,a=0;n.length>a;){var s,c,u,l=n[a++],h=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{h?(o||(2===e.rejection&&et(t,e),e.rejection=1),!0===h?s=i:(p&&p.enter(),s=h(i),p&&(p.exit(),u=!0)),s===l.promise?d(B("Promise-chain cycle")):(c=Q(s))?c.call(s,f,d):f(s)):d(i)}catch(t){p&&!u&&p.exit(),d(t)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&Z(t,e)})}},J=function(t,e,r){var n,i;G?(n=W.createEvent("Event"),n.promise=e,n.reason=r,n.initEvent(t,!1,!0),u.dispatchEvent(n)):n={promise:e,reason:r},(i=u["on"+t])?i(n):"unhandledrejection"===t&&P("Unhandled promise rejection",r)},Z=function(t,e){x.call(u,function(){var r,n=e.value,i=tt(e);if(i&&(r=R(function(){H?q.emit("unhandledRejection",n,t):J("unhandledrejection",t,n)}),e.rejection=H||tt(e)?2:1,r.error))throw r.value})},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){x.call(u,function(){H?q.emit("rejectionHandled",t):J("rejectionhandled",t,e.value)})},rt=function(t,e,r,n){return function(i){t(e,r,i,n)}},nt=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,K(t,e,!0))},it=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw B("Promise can't be resolved itself");var i=Q(r);i?T(function(){var n={done:!1};try{i.call(r,rt(it,t,n,e),rt(nt,t,n,e))}catch(r){nt(t,n,r,e)}}):(e.value=r,e.state=1,K(t,e,!1))}catch(r){nt(t,{done:!1},r,e)}}};V&&(U=function(t){y(this,U,F),g(t),n.call(this);var e=D(this);try{t(rt(it,this,e),rt(nt,this,e))}catch(t){nt(this,e,t)}},n=function(t){j(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})},n.prototype=d(U.prototype,{then:function(t,e){var r=N(this),n=z(A(this,U));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=H?q.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&K(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n,e=D(t);this.promise=t,this.resolve=rt(it,t,e),this.reject=rt(nt,t,e)},C.f=z=function(t){return t===U||t===o?new i(t):X(t)},c||"function"!=typeof h||(a=h.prototype.then,f(h.prototype,"then",function(t,e){var r=this;return new U(function(t,e){a.call(r,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof Y&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return k(U,Y.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:V},{Promise:U}),p(U,F,!1,!0),v(F),o=l(F),s({target:F,stat:!0,forced:V},{reject:function(t){var e=z(this);return e.reject.call(void 0,t),e.promise}}),s({target:F,stat:!0,forced:c||V},{resolve:function(t){return k(c&&this===o?U:this,t)}}),s({target:F,stat:!0,forced:$},{all:function(t){var e=this,r=z(e),n=r.resolve,i=r.reject,o=R(function(){var r=g(e.resolve),o=[],a=0,s=1;w(t,function(t){var c=a++,u=!1;o.push(void 0),s++,r.call(e,t).then(function(t){u||(u=!0,o[c]=t,--s||n(o))},i)}),--s||n(o)});return o.error&&i(o.value),r.promise},race:function(t){var e=this,r=z(e),n=r.reject,i=R(function(){var i=g(e.resolve);w(t,function(t){i.call(e,t).then(r.resolve,n)})});return i.error&&n(i.value),r.promise}})},function(t,e,r){var n=r(11);t.exports=n.Promise},function(t,e,r){var n=r(29);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},function(t,e,r){"use strict";var n=r(42),i=r(27),o=r(57),a=r(13),s=o("species");t.exports=function(t){var e=n(t),r=i.f;a&&e&&!e[s]&&r(e,s,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},function(t,e,r){var n=r(28),i=r(92),o=r(47),a=r(62),s=r(94),c=r(91),u=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,r,l,h){var f,d,p,v,m,g,y,b=a(e,r,l?2:1);if(h)f=t;else{if("function"!=typeof(d=s(t)))throw TypeError("Target is not iterable");if(i(d)){for(p=0,v=o(t.length);v>p;p++)if((m=l?b(n(y=t[p])[0],y[1]):b(t[p]))&&m instanceof u)return m;return new u(!1)}f=d.call(t)}for(g=f.next;!(y=g.call(f)).done;)if("object"==typeof(m=c(f,b,y.value,l))&&m&&m instanceof u)return m;return new u(!1)}).stop=function(t){return new u(!0,t)}},function(t,e,r){var n,i,o,a=r(11),s=r(14),c=r(19),u=r(62),l=r(74),h=r(25),f=r(126),d=a.location,p=a.setImmediate,v=a.clearImmediate,m=a.process,g=a.MessageChannel,y=a.Dispatch,b=0,_={},w=function(t){if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}},S=function(t){return function(){w(t)}},A=function(t){w(t.data)},x=function(t){a.postMessage(t+"",d.protocol+"//"+d.host)};p&&v||(p=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return _[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(b),b},v=function(t){delete _[t]},"process"==c(m)?n=function(t){m.nextTick(S(t))}:y&&y.now?n=function(t){y.now(S(t))}:g&&!f?(i=new g,o=i.port2,i.port1.onmessage=A,n=u(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(x)||"file:"===d.protocol?n="onreadystatechange"in h("script")?function(t){l.appendChild(h("script")).onreadystatechange=function(){l.removeChild(this),w(t)}}:function(t){setTimeout(S(t),0)}:(n=x,a.addEventListener("message",A,!1))),t.exports={set:p,clear:v}},function(t,e,r){var n=r(127);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(t,e,r){var n=r(42);t.exports=n("navigator","userAgent")||""},function(t,e,r){var n,i,o,a,s,c,u,l,h=r(11),f=r(12).f,d=r(19),p=r(125).set,v=r(126),m=h.MutationObserver||h.WebKitMutationObserver,g=h.process,y=h.Promise,b="process"==d(g),_=f(h,"queueMicrotask"),w=_&&_.value;w||(n=function(){var t,e;for(b&&(t=g.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},b?a=function(){g.nextTick(n)}:m&&!v?(s=!0,c=document.createTextNode(""),new m(n).observe(c,{characterData:!0}),a=function(){c.data=s=!s}):y&&y.resolve?(u=y.resolve(void 0),l=u.then,a=function(){l.call(u,n)}):a=function(){p.call(h,n)}),t.exports=w||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},function(t,e,r){var n=r(28),i=r(22),o=r(130);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){"use strict";var n=r(63),i=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},function(t,e,r){var n=r(11);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,r){var n,i,o=r(11),a=r(127),s=o.process,c=s&&s.versions,u=c&&c.v8;u?(n=u.split("."),i=n[0]+n[1]):a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),t.exports=i&&+i},function(t,e,r){"use strict";var n=r(10),i=r(63),o=r(130),a=r(132),s=r(124);n({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=o.f(e),n=r.resolve,c=r.reject,u=a(function(){var r=i(e.resolve),o=[],a=0,c=1;s(t,function(t){var i=a++,s=!1;o.push(void 0),c++,r.call(e,t).then(function(t){s||(s=!0,o[i]={status:"fulfilled",value:t},--c||n(o))},function(t){s||(s=!0,o[i]={status:"rejected",reason:t},--c||n(o))})}),--c||n(o)});return u.error&&c(u.value),r.promise}})},function(t,e,r){"use strict";var n=r(10),i=r(37),o=r(120),a=r(14),s=r(42),c=r(112),u=r(129),l=r(29);n({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(t){var e=c(this,s("Promise")),r="function"==typeof t;return this.then(r?function(r){return u(e,t()).then(function(){return r})}:t,r?function(r){return u(e,t()).then(function(){throw r})}:t)}}),i||"function"!=typeof o||o.prototype.finally||l(o.prototype,"finally",s("Promise").prototype.finally)},function(t,e,r){r(137),r(142),r(140);var n=r(43);t.exports=n.URL},function(t,e,r){"use strict";r(77);var n,i=r(10),o=r(13),a=r(138),s=r(11),c=r(72),u=r(29),l=r(123),h=r(23),f=r(100),d=r(90),p=r(78).codeAt,v=r(139),m=r(85),g=r(140),y=r(33),b=s.URL,_=g.URLSearchParams,w=g.getState,S=y.set,A=y.getterFor("URL"),x=Math.floor,T=Math.pow,k=/[A-Za-z]/,P=/[\d+-.A-Za-z]/,C=/\d/,R=/^(0x|0X)/,E=/^[0-7]+$/,O=/^\d+$/,L=/^[\dA-Fa-f]+$/,I=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,M=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,F=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,D=/[\u0009\u000A\u000D]/g,j=function(t,e){var r,n,i;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(r=U(e.slice(1,-1))))return"Invalid host";t.host=r}else if(V(t)){if(e=v(e),I.test(e))return"Invalid host";if(null===(r=N(e)))return"Invalid host";t.host=r}else{if(M.test(e))return"Invalid host";for(r="",n=d(e),i=0;i<n.length;i++)r+=H(n[i],q);t.host=r}},N=function(t){var e,r,n,i,o,a,s,c=t.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(e=c.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(i=c[n]))return t;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=R.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?O:8==o?E:L).test(i))return t;a=parseInt(i,o)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=T(256,5-e))return null}else if(a>255)return null;for(s=r.pop(),n=0;n<r.length;n++)s+=r[n]*T(256,3-n);return s},U=function(t){var e,r,n,i,o,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,h=0,f=function(){return t.charAt(h)};if(":"==f()){if(":"!=t.charAt(1))return;h+=2,u++,l=u}for(;f();){if(8==u)return;if(":"!=f()){for(e=r=0;r<4&&L.test(f());)e=16*e+parseInt(f(),16),h++,r++;if("."==f()){if(0==r)return;if(h-=r,u>6)return;for(n=0;f();){if(i=null,n>0){if(!("."==f()&&n<4))return;h++}if(!C.test(f()))return;for(;C.test(f());){if(o=parseInt(f(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;h++}c[u]=256*c[u]+i,n++,2!=n&&4!=n||u++}if(4!=n)return;break}if(":"==f()){if(h++,!f())return}else if(f())return;c[u++]=e}else{if(null!==l)return;h++,u++,l=u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c},B=function(t){for(var e=null,r=1,n=null,i=0,o=0;o<8;o++)0!==t[o]?(i>r&&(e=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(e=n,r=i),e},W=function(t){var e,r,n,i;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=x(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=B(t),r=0;r<8;r++)i&&0===t[r]||(i&&(i=!1),n===r?(e+=r?":":"::",i=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},q={},Y=f({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),z=f({},Y,{"#":1,"?":1,"{":1,"}":1}),X=f({},z,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),H=function(t,e){var r=p(t,0);return r>32&&r<127&&!h(e,t)?t:encodeURIComponent(t)},G={ftp:21,file:null,http:80,https:443,ws:80,wss:443},V=function(t){return h(G,t.scheme)},$=function(t){return""!=t.username||""!=t.password},Q=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},K=function(t,e){var r;return 2==t.length&&k.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},J=function(t){var e;return t.length>1&&K(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Z=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&K(e[0],!0)||e.pop()},tt=function(t){return"."===t||"%2e"===t.toLowerCase()},et=function(t){return".."===(t=t.toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t},rt={},nt={},it={},ot={},at={},st={},ct={},ut={},lt={},ht={},ft={},dt={},pt={},vt={},mt={},gt={},yt={},bt={},_t={},wt={},St={},At=function(t,e,r,i){var o,a,s,c,u=r||rt,l=0,f="",p=!1,v=!1,m=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(F,"")),e=e.replace(D,""),o=d(e);l<=o.length;){switch(a=o[l],u){case rt:if(!a||!k.test(a)){if(r)return"Invalid scheme";u=it;continue}f+=a.toLowerCase(),u=nt;break;case nt:if(a&&(P.test(a)||"+"==a||"-"==a||"."==a))f+=a.toLowerCase();else{if(":"!=a){if(r)return"Invalid scheme";f="",u=it,l=0;continue}if(r&&(V(t)!=h(G,f)||"file"==f&&($(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=f,r)return void(V(t)&&G[t.scheme]==t.port&&(t.port=null));f="","file"==t.scheme?u=vt:V(t)&&i&&i.scheme==t.scheme?u=ot:V(t)?u=ut:"/"==o[l+1]?(u=at,l++):(t.cannotBeABaseURL=!0,t.path.push(""),u=_t)}break;case it:if(!i||i.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==a){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,u=St;break}u="file"==i.scheme?vt:st;continue;case ot:if("/"!=a||"/"!=o[l+1]){u=st;continue}u=lt,l++;break;case at:if("/"==a){u=ht;break}u=bt;continue;case st:if(t.scheme=i.scheme,a==n)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==a||"\\"==a&&V(t))u=ct;else if("?"==a)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",u=wt;else{if("#"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),u=bt;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",u=St}break;case ct:if(!V(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,u=bt;continue}u=ht}else u=lt;break;case ut:if(u=lt,"/"!=a||"/"!=f.charAt(l+1))continue;l++;break;case lt:if("/"!=a&&"\\"!=a){u=ht;continue}break;case ht:if("@"==a){p&&(f="%40"+f),p=!0,s=d(f);for(var g=0;g<s.length;g++){var y=s[g];if(":"!=y||m){var b=H(y,X);m?t.password+=b:t.username+=b}else m=!0}f=""}else if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&V(t)){if(p&&""==f)return"Invalid authority";l-=d(f).length+1,f="",u=ft}else f+=a;break;case ft:case dt:if(r&&"file"==t.scheme){u=gt;continue}if(":"!=a||v){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&V(t)){if(V(t)&&""==f)return"Invalid host";if(r&&""==f&&($(t)||null!==t.port))return;if(c=j(t,f))return c;if(f="",u=yt,r)return;continue}"["==a?v=!0:"]"==a&&(v=!1),f+=a}else{if(""==f)return"Invalid host";if(c=j(t,f))return c;if(f="",u=pt,r==dt)return}break;case pt:if(!C.test(a)){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&V(t)||r){if(""!=f){var _=parseInt(f,10);if(_>65535)return"Invalid port";t.port=V(t)&&_===G[t.scheme]?null:_,f=""}if(r)return;u=yt;continue}return"Invalid port"}f+=a;break;case vt:if(t.scheme="file","/"==a||"\\"==a)u=mt;else{if(!i||"file"!=i.scheme){u=bt;continue}if(a==n)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==a)t.host=i.host,t.path=i.path.slice(),t.query="",u=wt;else{if("#"!=a){J(o.slice(l).join(""))||(t.host=i.host,t.path=i.path.slice(),Z(t)),u=bt;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",u=St}}break;case mt:if("/"==a||"\\"==a){u=gt;break}i&&"file"==i.scheme&&!J(o.slice(l).join(""))&&(K(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),u=bt;continue;case gt:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!r&&K(f))u=bt;else if(""==f){if(t.host="",r)return;u=yt}else{if(c=j(t,f))return c;if("localhost"==t.host&&(t.host=""),r)return;f="",u=yt}continue}f+=a;break;case yt:if(V(t)){if(u=bt,"/"!=a&&"\\"!=a)continue}else if(r||"?"!=a)if(r||"#"!=a){if(a!=n&&(u=bt,"/"!=a))continue}else t.fragment="",u=St;else t.query="",u=wt;break;case bt:if(a==n||"/"==a||"\\"==a&&V(t)||!r&&("?"==a||"#"==a)){if(et(f)?(Z(t),"/"==a||"\\"==a&&V(t)||t.path.push("")):tt(f)?"/"==a||"\\"==a&&V(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&K(f)&&(t.host&&(t.host=""),f=f.charAt(0)+":"),t.path.push(f)),f="","file"==t.scheme&&(a==n||"?"==a||"#"==a))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==a?(t.query="",u=wt):"#"==a&&(t.fragment="",u=St)}else f+=H(a,z);break;case _t:"?"==a?(t.query="",u=wt):"#"==a?(t.fragment="",u=St):a!=n&&(t.path[0]+=H(a,q));break;case wt:r||"#"!=a?a!=n&&("'"==a&&V(t)?t.query+="%27":t.query+="#"==a?"%23":H(a,q)):(t.fragment="",u=St);break;case St:a!=n&&(t.fragment+=H(a,Y))}l++}},xt=function(t){var e,r,n=l(this,xt,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(t),s=S(n,{type:"URL"});if(void 0!==i)if(i instanceof xt)e=A(i);else if(r=At(e={},String(i)))throw TypeError(r);if(r=At(s,a,null,e))throw TypeError(r);var c=s.searchParams=new _,u=w(c);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(c)||null},o||(n.href=kt.call(n),n.origin=Pt.call(n),n.protocol=Ct.call(n),n.username=Rt.call(n),n.password=Et.call(n),n.host=Ot.call(n),n.hostname=Lt.call(n),n.port=It.call(n),n.pathname=Mt.call(n),n.search=Ft.call(n),n.searchParams=Dt.call(n),n.hash=jt.call(n))},Tt=xt.prototype,kt=function(){var t=A(this),e=t.scheme,r=t.username,n=t.password,i=t.host,o=t.port,a=t.path,s=t.query,c=t.fragment,u=e+":";return null!==i?(u+="//",$(t)&&(u+=r+(n?":"+n:"")+"@"),u+=W(i),null!==o&&(u+=":"+o)):"file"==e&&(u+="//"),u+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},Pt=function(){var t=A(this),e=t.scheme,r=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&V(t)?e+"://"+W(t.host)+(null!==r?":"+r:""):"null"},Ct=function(){return A(this).scheme+":"},Rt=function(){return A(this).username},Et=function(){return A(this).password},Ot=function(){var t=A(this),e=t.host,r=t.port;return null===e?"":null===r?W(e):W(e)+":"+r},Lt=function(){var t=A(this).host;return null===t?"":W(t)},It=function(){var t=A(this).port;return null===t?"":String(t)},Mt=function(){var t=A(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Ft=function(){var t=A(this).query;return t?"?"+t:""},Dt=function(){return A(this).searchParams},jt=function(){var t=A(this).fragment;return t?"#"+t:""},Nt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&c(Tt,{href:Nt(kt,function(t){var e=A(this),r=String(t),n=At(e,r);if(n)throw TypeError(n);w(e.searchParams).updateSearchParams(e.query)}),origin:Nt(Pt),protocol:Nt(Ct,function(t){var e=A(this);At(e,String(t)+":",rt)}),username:Nt(Rt,function(t){var e=A(this),r=d(String(t));if(!Q(e)){e.username="";for(var n=0;n<r.length;n++)e.username+=H(r[n],X)}}),password:Nt(Et,function(t){var e=A(this),r=d(String(t));if(!Q(e)){e.password="";for(var n=0;n<r.length;n++)e.password+=H(r[n],X)}}),host:Nt(Ot,function(t){var e=A(this);e.cannotBeABaseURL||At(e,String(t),ft)}),hostname:Nt(Lt,function(t){var e=A(this);e.cannotBeABaseURL||At(e,String(t),dt)}),port:Nt(It,function(t){var e=A(this);Q(e)||(t=String(t),""==t?e.port=null:At(e,t,pt))}),pathname:Nt(Mt,function(t){var e=A(this);e.cannotBeABaseURL||(e.path=[],At(e,t+"",yt))}),search:Nt(Ft,function(t){var e=A(this);t=String(t),""==t?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",At(e,t,wt)),w(e.searchParams).updateSearchParams(e.query)}),searchParams:Nt(Dt),hash:Nt(jt,function(t){var e=A(this);if(""==(t=String(t)))return void(e.fragment=null);"#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",At(e,t,St)})}),u(Tt,"toJSON",function(){return kt.call(this)},{enumerable:!0}),u(Tt,"toString",function(){return kt.call(this)},{enumerable:!0}),b){var Ut=b.createObjectURL,Bt=b.revokeObjectURL;Ut&&u(xt,"createObjectURL",function(t){return Ut.apply(b,arguments)}),Bt&&u(xt,"revokeObjectURL",function(t){return Bt.apply(b,arguments)})}m(xt,"URL"),i({global:!0,forced:!a,sham:!o},{URL:xt})},function(t,e,r){var n=r(14),i=r(57),o=r(37),a=i("iterator");t.exports=!n(function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach(function(t,n){e.delete("b"),r+=n+t}),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})},function(t,e,r){"use strict";var n=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,c=function(t){for(var e=[],r=0,n=t.length;r<n;){var i=t.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=t.charCodeAt(r++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),r--)}else e.push(i)}return e},u=function(t){return t+22+75*(t<26)},l=function(t,e,r){var n=0;for(t=r?a(t/700):t>>1,t+=a(t/e);t>455;n+=36)t=a(t/35);return a(n+36*t/(t+38))},h=function(t){var e=[];t=c(t);var r,n,i=t.length,h=128,f=0,d=72;for(r=0;r<t.length;r++)(n=t[r])<128&&e.push(s(n));var p=e.length,v=p;for(p&&e.push("-");v<i;){var m=2147483647;for(r=0;r<t.length;r++)(n=t[r])>=h&&n<m&&(m=n);var g=v+1;if(m-h>a((2147483647-f)/g))throw RangeError(o);for(f+=(m-h)*g,h=m,r=0;r<t.length;r++){if((n=t[r])<h&&++f>2147483647)throw RangeError(o);if(n==h){for(var y=f,b=36;;b+=36){var _=b<=d?1:b>=d+26?26:b-d;if(y<_)break;var w=y-_,S=36-_;e.push(s(u(_+w%S))),y=a(w/S)}e.push(s(u(y))),d=l(f,g,v==p),f=0,++v}}++f,++h}return e.join("")};t.exports=function(t){var e,r,o=[],a=t.toLowerCase().replace(i,".").split(".");for(e=0;e<a.length;e++)r=a[e],o.push(n.test(r)?"xn--"+h(r):r);return o.join(".")}},function(t,e,r){"use strict";r(118);var n=r(10),i=r(42),o=r(138),a=r(29),s=r(121),c=r(85),u=r(80),l=r(33),h=r(123),f=r(23),d=r(62),p=r(95),v=r(28),m=r(22),g=r(71),y=r(16),b=r(141),_=r(94),w=r(57),S=i("fetch"),A=i("Headers"),x=w("iterator"),T=l.set,k=l.getterFor("URLSearchParams"),P=l.getterFor("URLSearchParamsIterator"),C=/\+/g,R=Array(4),E=function(t){return R[t-1]||(R[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},O=function(t){try{return decodeURIComponent(t)}catch(e){return t}},L=function(t){var e=t.replace(C," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(E(r--),O);return e}},I=/[!'()~]|%20/g,M={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},F=function(t){return M[t]},D=function(t){return encodeURIComponent(t).replace(I,F)},j=function(t,e){if(e)for(var r,n,i=e.split("&"),o=0;o<i.length;)r=i[o++],r.length&&(n=r.split("="),t.push({key:L(n.shift()),value:L(n.join("="))}))},N=function(t){this.entries.length=0,j(this.entries,t)},U=function(t,e){if(t<e)throw TypeError("Not enough arguments")},B=u(function(t,e){T(this,{type:"URLSearchParamsIterator",iterator:b(k(t).entries),kind:e})},"Iterator",function(){var t=P(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r}),W=function(){h(this,W,"URLSearchParams");var t,e,r,n,i,o,a,s,c,u=arguments.length>0?arguments[0]:void 0,l=this,d=[];if(T(l,{type:"URLSearchParams",entries:d,updateURL:function(){},updateSearchParams:N}),void 0!==u)if(m(u))if("function"==typeof(t=_(u)))for(e=t.call(u),r=e.next;!(n=r.call(e)).done;){if(i=b(v(n.value)),o=i.next,(a=o.call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");d.push({key:a.value+"",value:s.value+""})}else for(c in u)f(u,c)&&d.push({key:c,value:u[c]+""});else j(d,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},q=W.prototype;s(q,{append:function(t,e){U(arguments.length,2);var r=k(this);r.entries.push({key:t+"",value:e+""}),r.updateURL()},delete:function(t){U(arguments.length,1);for(var e=k(this),r=e.entries,n=t+"",i=0;i<r.length;)r[i].key===n?r.splice(i,1):i++;e.updateURL()},get:function(t){U(arguments.length,1);for(var e=k(this).entries,r=t+"",n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){U(arguments.length,1);for(var e=k(this).entries,r=t+"",n=[],i=0;i<e.length;i++)e[i].key===r&&n.push(e[i].value);return n},has:function(t){U(arguments.length,1);for(var e=k(this).entries,r=t+"",n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){U(arguments.length,1);for(var r,n=k(this),i=n.entries,o=!1,a=t+"",s=e+"",c=0;c<i.length;c++)r=i[c],r.key===a&&(o?i.splice(c--,1):(o=!0,r.value=s));o||i.push({key:a,value:s}),n.updateURL()},sort:function(){var t,e,r,n=k(this),i=n.entries,o=i.slice();for(i.length=0,r=0;r<o.length;r++){for(t=o[r],e=0;e<r;e++)if(i[e].key>t.key){i.splice(e,0,t);break}e===r&&i.push(t)}n.updateURL()},forEach:function(t){for(var e,r=k(this).entries,n=d(t,arguments.length>1?arguments[1]:void 0,3),i=0;i<r.length;)e=r[i++],n(e.value,e.key,this)},keys:function(){return new B(this,"keys")},values:function(){return new B(this,"values")},entries:function(){return new B(this,"entries")}},{enumerable:!0}),a(q,x,q.entries),a(q,"toString",function(){for(var t,e=k(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(D(t.key)+"="+D(t.value));return r.join("&")},{enumerable:!0}),c(W,"URLSearchParams"),n({global:!0,forced:!o},{URLSearchParams:W}),o||"function"!=typeof S||"function"!=typeof A||n({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,r,n,i=[t];return arguments.length>1&&(e=arguments[1],m(e)&&(r=e.body,"URLSearchParams"===p(r)&&(n=e.headers?new A(e.headers):new A,n.has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=g(e,{body:y(0,String(r)),headers:y(0,n)}))),i.push(e)),S.apply(this,i)}}),t.exports={URLSearchParams:W,getState:k}},function(t,e,r){var n=r(28),i=r(94);t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return n(e.call(t))}},function(t,e,r){"use strict";r(10)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(t,e,r){!function(t,r){!function(t){"use strict";function e(){}function r(t){return"object"==typeof t&&null!==t||"function"==typeof t}function n(t){return t.slice()}function i(t,e,r,n,i){new Uint8Array(t).set(new Uint8Array(r,n,i),e)}function o(t){return!1!==a(t)&&t!==1/0}function a(t){return"number"==typeof t&&(!Or(t)&&!(t<0))}function s(t,e,r){if("function"!=typeof t)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(t,e,r)}function c(t,e,r,n){var i=t[e];if(void 0!==i){if("function"!=typeof i)throw new TypeError(i+" is not a method");switch(r){case 0:return function(){return l(i,t,n)};case 1:return function(e){var r=[e].concat(n);return l(i,t,r)}}}return function(){return v(void 0)}}function u(t,e,r){var n=t[e];if(void 0!==n)return s(n,t,r)}function l(t,e,r){try{return v(s(t,e,r))}catch(t){return m(t)}}function h(t){return t}function f(t){if(t=Number(t),Or(t)||t<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return t}function d(t){if(void 0===t)return function(){return 1};if("function"!=typeof t)throw new TypeError("size property of a queuing strategy must be a function");return function(e){return t(e)}}function p(t){return new Ir(t)}function v(t){return Fr(t)}function m(t){return Dr(t)}function g(t,e,r){return Mr.call(t,e,r)}function y(t,e,r){g(g(t,e,r),void 0,Lr)}function b(t,e){y(t,e)}function _(t,e){y(t,void 0,e)}function w(t,e,r){return g(t,e,r)}function S(t){g(t,void 0,Lr)}function A(t,e,r){var n=null;!0===r&&(n=Object.prototype);var i=Object.create(n);return i.value=t,i.done=e,i}function x(t,e){t._forAuthorCode=!0,t._ownerReadableStream=e,e._reader=t,"readable"===e._state?C(t):"closed"===e._state?E(t):R(t,e._storedError)}function T(t,e){return or(t._ownerReadableStream,e)}function k(t){"readable"===t._ownerReadableStream._state?O(t,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):L(t,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),t._ownerReadableStream._reader=void 0,t._ownerReadableStream=void 0}function P(t){return new TypeError("Cannot "+t+" a stream using a released reader")}function C(t){t._closedPromise=p(function(e,r){t._closedPromise_resolve=e,t._closedPromise_reject=r})}function R(t,e){C(t),O(t,e)}function E(t){C(t),I(t)}function O(t,e){S(t._closedPromise),t._closedPromise_reject(e),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0}function L(t,e){R(t,e)}function I(t){t._closedPromise_resolve(void 0),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0}function M(t,e){void 0===e&&(e=!1);var r=new Br(t);return r._forAuthorCode=e,r}function F(t){return p(function(e,r){var n={_resolve:e,_reject:r};t._reader._readRequests.push(n)})}function D(t,e,r){var n=t._reader;n._readRequests.shift()._resolve(A(e,r,n._forAuthorCode))}function j(t){return t._reader._readRequests.length}function N(t){var e=t._reader;return void 0!==e&&!!U(e)}function U(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readRequests")}function B(t){var e=t._ownerReadableStream;return e._disturbed=!0,"closed"===e._state?v(A(void 0,!0,t._forAuthorCode)):"errored"===e._state?m(e._storedError):e._readableStreamController[Ur]()}function W(t){return new TypeError("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}function q(t,e){void 0===e&&(e=!1);var r=M(t),n=Object.create(Wr);return n._asyncIteratorReader=r,n._preventCancel=Boolean(e),n}function Y(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_asyncIteratorReader")}function z(t){return new TypeError("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}function X(t){var e=t._queue.shift();return t._queueTotalSize-=e.size,t._queueTotalSize<0&&(t._queueTotalSize=0),e.value}function H(t,e,r){if(r=Number(r),!o(r))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t._queue.push({value:e,size:r}),t._queueTotalSize+=r}function G(t){return t._queue.peek().value}function V(t){t._queue=new jr,t._queueTotalSize=0}function $(t){return new Xr(t)}function Q(t,e,r,n,i,o){void 0===i&&(i=1),void 0===o&&(o=function(){return 1});var a=Object.create(zr.prototype);return K(a),kt(a,Object.create(Hr.prototype),t,e,r,n,i,o),a}function K(t){t._state="writable",t._storedError=void 0,t._writer=void 0,t._writableStreamController=void 0,t._writeRequests=new jr,t._inFlightWriteRequest=void 0,t._closeRequest=void 0,t._inFlightCloseRequest=void 0,t._pendingAbortRequest=void 0,t._backpressure=!1}function J(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_writableStreamController")}function Z(t){return void 0!==t._writer}function tt(t,e){var r=t._state;if("closed"===r||"errored"===r)return v(void 0);if(void 0!==t._pendingAbortRequest)return t._pendingAbortRequest._promise;var n=!1;"erroring"===r&&(n=!0,e=void 0);var i=p(function(r,i){t._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:i,_reason:e,_wasAlreadyErroring:n}});return t._pendingAbortRequest._promise=i,!1===n&&it(t,e),i}function et(t){var e=t._state;if("closed"===e||"errored"===e)return m(new TypeError("The stream (in "+e+" state) is not in the writable state and cannot be closed"));var r=p(function(e,r){var n={_resolve:e,_reject:r};t._closeRequest=n}),n=t._writer;return void 0!==n&&!0===t._backpressure&&"writable"===e&&te(n),Rt(t._writableStreamController),r}function rt(t){return p(function(e,r){var n={_resolve:e,_reject:r};t._writeRequests.push(n)})}function nt(t,e){if("writable"===t._state)return void it(t,e);ot(t)}function it(t,e){var r=t._writableStreamController;t._state="erroring",t._storedError=e;var n=t._writer;void 0!==n&&wt(n,e),!1===ht(t)&&!0===r._started&&ot(t)}function ot(t){t._state="errored",t._writableStreamController[Yr]();var e=t._storedError;if(t._writeRequests.forEach(function(t){t._reject(e)}),t._writeRequests=new jr,void 0===t._pendingAbortRequest)return void pt(t);var r=t._pendingAbortRequest;if(t._pendingAbortRequest=void 0,!0===r._wasAlreadyErroring)return r._reject(e),void pt(t);y(t._writableStreamController[qr](r._reason),function(){r._resolve(),pt(t)},function(e){r._reject(e),pt(t)})}function at(t){t._inFlightWriteRequest._resolve(void 0),t._inFlightWriteRequest=void 0}function st(t,e){t._inFlightWriteRequest._reject(e),t._inFlightWriteRequest=void 0,nt(t,e)}function ct(t){t._inFlightCloseRequest._resolve(void 0),t._inFlightCloseRequest=void 0,"erroring"===t._state&&(t._storedError=void 0,void 0!==t._pendingAbortRequest&&(t._pendingAbortRequest._resolve(),t._pendingAbortRequest=void 0)),t._state="closed";var e=t._writer;void 0!==e&&Gt(e)}function ut(t,e){t._inFlightCloseRequest._reject(e),t._inFlightCloseRequest=void 0,void 0!==t._pendingAbortRequest&&(t._pendingAbortRequest._reject(e),t._pendingAbortRequest=void 0),nt(t,e)}function lt(t){return void 0!==t._closeRequest||void 0!==t._inFlightCloseRequest}function ht(t){return void 0!==t._inFlightWriteRequest||void 0!==t._inFlightCloseRequest}function ft(t){t._inFlightCloseRequest=t._closeRequest,t._closeRequest=void 0}function dt(t){t._inFlightWriteRequest=t._writeRequests.shift()}function pt(t){void 0!==t._closeRequest&&(t._closeRequest._reject(t._storedError),t._closeRequest=void 0);var e=t._writer;void 0!==e&&Xt(e,t._storedError)}function vt(t,e){var r=t._writer;void 0!==r&&e!==t._backpressure&&(!0===e?Jt(r):te(r)),t._backpressure=e}function mt(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_ownerWritableStream")}function gt(t,e){return tt(t._ownerWritableStream,e)}function yt(t){return et(t._ownerWritableStream)}function bt(t){var e=t._ownerWritableStream,r=e._state;return!0===lt(e)||"closed"===r?v(void 0):"errored"===r?m(e._storedError):yt(t)}function _t(t,e){"pending"===t._closedPromiseState?Xt(t,e):Ht(t,e)}function wt(t,e){"pending"===t._readyPromiseState?Kt(t,e):Zt(t,e)}function St(t){var e=t._ownerWritableStream,r=e._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:Ot(e._writableStreamController)}function At(t){var e=t._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");wt(t,r),_t(t,r),e._writer=void 0,t._ownerWritableStream=void 0}function xt(t,e){var r=t._ownerWritableStream,n=r._writableStreamController,i=Et(n,e);if(r!==t._ownerWritableStream)return m(Wt("write to"));var o=r._state;if("errored"===o)return m(r._storedError);if(!0===lt(r)||"closed"===o)return m(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return m(r._storedError);var a=rt(r);return Lt(n,e,i),a}function Tt(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledWritableStream")}function kt(t,e,r,n,i,o,a,s){e._controlledWritableStream=t,t._writableStreamController=e,e._queue=void 0,e._queueTotalSize=void 0,V(e),e._started=!1,e._strategySizeAlgorithm=s,e._strategyHWM=a,e._writeAlgorithm=n,e._closeAlgorithm=i,e._abortAlgorithm=o;var c=jt(e);vt(t,c),y(v(r()),function(){e._started=!0,It(e)},function(r){e._started=!0,nt(t,r)})}function Pt(t,e,r,n){function i(){return u(e,"start",[o])}var o=Object.create(Hr.prototype),a=c(e,"write",1,[o]),s=c(e,"close",0,[]),l=c(e,"abort",1,[]);kt(t,o,i,a,s,l,r,n)}function Ct(t){t._writeAlgorithm=void 0,t._closeAlgorithm=void 0,t._abortAlgorithm=void 0,t._strategySizeAlgorithm=void 0}function Rt(t){H(t,"close",0),It(t)}function Et(t,e){try{return t._strategySizeAlgorithm(e)}catch(e){return Mt(t,e),1}}function Ot(t){return t._strategyHWM-t._queueTotalSize}function Lt(t,e,r){var n={chunk:e};try{H(t,n,r)}catch(e){return void Mt(t,e)}var i=t._controlledWritableStream;if(!1===lt(i)&&"writable"===i._state){vt(i,jt(t))}It(t)}function It(t){var e=t._controlledWritableStream;if(!1!==t._started&&void 0===e._inFlightWriteRequest){if("erroring"===e._state)return void ot(e);if(0!==t._queue.length){var r=G(t);"close"===r?Ft(t):Dt(t,r.chunk)}}}function Mt(t,e){"writable"===t._controlledWritableStream._state&&Nt(t,e)}function Ft(t){var e=t._controlledWritableStream;ft(e),X(t);var r=t._closeAlgorithm();Ct(t),y(r,function(){ct(e)},function(t){ut(e,t)})}function Dt(t,e){var r=t._controlledWritableStream;dt(r),y(t._writeAlgorithm(e),function(){at(r);var e=r._state;if(X(t),!1===lt(r)&&"writable"===e){var n=jt(t);vt(r,n)}It(t)},function(e){"writable"===r._state&&Ct(t),st(r,e)})}function jt(t){return Ot(t)<=0}function Nt(t,e){var r=t._controlledWritableStream;Ct(t),it(r,e)}function Ut(t){return new TypeError("WritableStream.prototype."+t+" can only be used on a WritableStream")}function Bt(t){return new TypeError("WritableStreamDefaultWriter.prototype."+t+" can only be used on a WritableStreamDefaultWriter")}function Wt(t){return new TypeError("Cannot "+t+" a stream using a released writer")}function qt(t){t._closedPromise=p(function(e,r){t._closedPromise_resolve=e,t._closedPromise_reject=r,t._closedPromiseState="pending"})}function Yt(t,e){qt(t),Xt(t,e)}function zt(t){qt(t),Gt(t)}function Xt(t,e){S(t._closedPromise),t._closedPromise_reject(e),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0,t._closedPromiseState="rejected"}function Ht(t,e){Yt(t,e)}function Gt(t){t._closedPromise_resolve(void 0),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0,t._closedPromiseState="resolved"}function Vt(t){t._readyPromise=p(function(e,r){t._readyPromise_resolve=e,t._readyPromise_reject=r}),t._readyPromiseState="pending"}function $t(t,e){Vt(t),Kt(t,e)}function Qt(t){Vt(t),te(t)}function Kt(t,e){S(t._readyPromise),t._readyPromise_reject(e),t._readyPromise_resolve=void 0,t._readyPromise_reject=void 0,t._readyPromiseState="rejected"}function Jt(t){Vt(t)}function Zt(t,e){$t(t,e)}function te(t){t._readyPromise_resolve(void 0),t._readyPromise_resolve=void 0,t._readyPromise_reject=void 0,t._readyPromiseState="fulfilled"}function ee(t){if("object"!=typeof t||null===t)return!1;try{return"boolean"==typeof t.aborted}catch(t){return!1}}function re(t,r,n,i,o,a){var s=M(t),c=$(r);t._disturbed=!0;var u=!1,l=v(void 0);return p(function(h,f){function d(){return!0===u?v(!0):g(c._readyPromise,function(){return g(B(s),function(t){return!0===t.done||(l=g(xt(c,t.value),void 0,e),!1)})})}function m(){var t=l;return g(l,function(){return t!==l?m():void 0})}function w(t,e,r){"errored"===t._state?r(t._storedError):_(e,r)}function A(t,e,n){function i(){y(t(),function(){return T(e,n)},function(t){return T(!0,t)})}!0!==u&&(u=!0,"writable"===r._state&&!1===lt(r)?b(m(),i):i())}function x(t,e){!0!==u&&(u=!0,"writable"===r._state&&!1===lt(r)?b(m(),function(){return T(t,e)}):T(t,e))}function T(t,e){At(c),k(s),void 0!==a&&a.removeEventListener("abort",P),t?f(e):h(void 0)}var P;if(void 0!==a){if(P=function(){var e=new Vr("Aborted","AbortError"),n=[];!1===i&&n.push(function(){return"writable"===r._state?tt(r,e):v(void 0)}),!1===o&&n.push(function(){return"readable"===t._state?or(t,e):v(void 0)}),A(function(){return Promise.all(n.map(function(t){return t()}))},!0,e)},!0===a.aborted)return void P();a.addEventListener("abort",P)}if(w(t,s._closedPromise,function(t){!1===i?A(function(){return tt(r,t)},!0,t):x(!0,t)}),w(r,c._closedPromise,function(e){!1===o?A(function(){return or(t,e)},!0,e):x(!0,e)}),function(t,e,r){"closed"===t._state?r():b(e,r)}(t,s._closedPromise,function(){!1===n?A(function(){return bt(c)}):x()}),!0===lt(r)||"closed"===r._state){var C=new TypeError("the destination writable stream closed before all data could be piped to it");!1===o?A(function(){return or(t,C)},!0,C):x(!0,C)}S(function(){return p(function(t,e){function r(n){n?t():g(d(),r,e)}r(!1)})}())})}function ne(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledReadableStream")}function ie(t){if(!1!==oe(t)){if(!0===t._pulling)return void(t._pullAgain=!0);t._pulling=!0,y(t._pullAlgorithm(),function(){t._pulling=!1,!0===t._pullAgain&&(t._pullAgain=!1,ie(t))},function(e){ue(t,e)})}}function oe(t){var e=t._controlledReadableStream;return!1!==fe(t)&&(!1!==t._started&&(!0===ir(e)&&j(e)>0||le(t)>0))}function ae(t){t._pullAlgorithm=void 0,t._cancelAlgorithm=void 0,t._strategySizeAlgorithm=void 0}function se(t){var e=t._controlledReadableStream;t._closeRequested=!0,0===t._queue.length&&(ae(t),ar(e))}function ce(t,e){var r=t._controlledReadableStream;if(!0===ir(r)&&j(r)>0)D(r,e,!1);else{var n=void 0;try{n=t._strategySizeAlgorithm(e)}catch(e){throw ue(t,e),e}try{H(t,e,n)}catch(e){throw ue(t,e),e}}ie(t)}function ue(t,e){var r=t._controlledReadableStream;"readable"===r._state&&(V(t),ae(t),sr(r,e))}function le(t){var e=t._controlledReadableStream,r=e._state;return"errored"===r?null:"closed"===r?0:t._strategyHWM-t._queueTotalSize}function he(t){return!0!==oe(t)}function fe(t){var e=t._controlledReadableStream._state;return!1===t._closeRequested&&"readable"===e}function de(t,e,r,n,i,o,a){e._controlledReadableStream=t,e._queue=void 0,e._queueTotalSize=void 0,V(e),e._started=!1,e._closeRequested=!1,e._pullAgain=!1,e._pulling=!1,e._strategySizeAlgorithm=a,e._strategyHWM=o,e._pullAlgorithm=n,e._cancelAlgorithm=i,t._readableStreamController=e,y(v(r()),function(){e._started=!0,ie(e)},function(t){ue(e,t)})}function pe(t,e,r,n){function i(){return u(e,"start",[o])}var o=Object.create($r.prototype),a=c(e,"pull",0,[o]),s=c(e,"cancel",1,[]);de(t,o,i,a,s,r,n)}function ve(t){return new TypeError("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}function me(t,e){function r(){return!0===d?v(void 0):(d=!0,S(w(B(f),function(t){if(d=!1,!0===t.done)return!1===m&&se(u._readableStreamController),void(!1===g&&se(l._readableStreamController));var e=t.value,r=e,n=e;!1===m&&ce(u._readableStreamController,r),!1===g&&ce(l._readableStreamController,n)})),v(void 0))}function i(e){if(m=!0,s=e,!0===g){var r=n([s,c]),i=or(t,r);h(i)}return y}function o(e){if(g=!0,c=e,!0===m){var r=n([s,c]),i=or(t,r);h(i)}return y}function a(){}var s,c,u,l,h,f=M(t),d=!1,m=!1,g=!1,y=p(function(t){h=t});return u=er(a,r,i),l=er(a,r,o),_(f._closedPromise,function(t){ue(u._readableStreamController,t),ue(l._readableStreamController,t)}),[u,l]}function ge(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledReadableByteStream")}function ye(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_associatedReadableByteStreamController")}function be(t){if(!1!==Me(t)){if(!0===t._pulling)return void(t._pullAgain=!0);t._pulling=!0,y(t._pullAlgorithm(),function(){t._pulling=!1,!0===t._pullAgain&&(t._pullAgain=!1,be(t))},function(e){Ne(t,e)})}}function _e(t){Pe(t),t._pendingPullIntos=new jr}function we(t,e){var r=!1;"closed"===t._state&&(r=!0);var n=Se(e);"default"===e.readerType?D(t,n,r):$e(t,n,r)}function Se(t){var e=t.bytesFilled,r=t.elementSize;return new t.ctor(t.buffer,t.byteOffset,e/r)}function Ae(t,e,r,n){t._queue.push({buffer:e,byteOffset:r,byteLength:n}),t._queueTotalSize+=n}function xe(t,e){var r=e.elementSize,n=e.bytesFilled-e.bytesFilled%r,o=Math.min(t._queueTotalSize,e.byteLength-e.bytesFilled),a=e.bytesFilled+o,s=a-a%r,c=o,u=!1;s>n&&(c=s-e.bytesFilled,u=!0);for(var l=t._queue;c>0;){var h=l.peek(),f=Math.min(c,h.byteLength),d=e.byteOffset+e.bytesFilled;i(e.buffer,d,h.buffer,h.byteOffset,f),h.byteLength===f?l.shift():(h.byteOffset+=f,h.byteLength-=f),t._queueTotalSize-=f,Te(t,f,e),c-=f}return u}function Te(t,e,r){Pe(t),r.bytesFilled+=e}function ke(t){0===t._queueTotalSize&&!0===t._closeRequested?(Fe(t),ar(t._controlledReadableByteStream)):be(t)}function Pe(t){void 0!==t._byobRequest&&(t._byobRequest._associatedReadableByteStreamController=void 0,t._byobRequest._view=void 0,t._byobRequest=void 0)}function Ce(t){for(;t._pendingPullIntos.length>0;){if(0===t._queueTotalSize)return;var e=t._pendingPullIntos.peek();!0===xe(t,e)&&(Ie(t),we(t._controlledReadableByteStream,e))}}function Re(t,e){var r=t._controlledReadableByteStream,n=1;e.constructor!==DataView&&(n=e.constructor.BYTES_PER_ELEMENT);var i=e.constructor,o=h(e.buffer),a={buffer:o,byteOffset:e.byteOffset,byteLength:e.byteLength,bytesFilled:0,elementSize:n,ctor:i,readerType:"byob"};if(t._pendingPullIntos.length>0)return t._pendingPullIntos.push(a),Ve(r);if("closed"===r._state){return v(A(new i(a.buffer,a.byteOffset,0),!0,r._reader._forAuthorCode))}if(t._queueTotalSize>0){if(!0===xe(t,a)){var s=Se(a);return ke(t),v(A(s,!1,r._reader._forAuthorCode))}if(!0===t._closeRequested){var c=new TypeError("Insufficient bytes to fill elements in the given buffer");return Ne(t,c),m(c)}}t._pendingPullIntos.push(a);var u=Ve(r);return be(t),u}function Ee(t,e){e.buffer=h(e.buffer);var r=t._controlledReadableByteStream;if(!0===Ke(r))for(;Qe(r)>0;){var n=Ie(t);we(r,n)}}function Oe(t,e,r){if(r.bytesFilled+e>r.byteLength)throw new RangeError("bytesWritten out of range");if(Te(t,e,r),!(r.bytesFilled<r.elementSize)){Ie(t);var n=r.bytesFilled%r.elementSize;if(n>0){var i=r.byteOffset+r.bytesFilled,o=r.buffer.slice(i-n,i);Ae(t,o,0,o.byteLength)}r.buffer=h(r.buffer),r.bytesFilled-=n,we(t._controlledReadableByteStream,r),Ce(t)}}function Le(t,e){var r=t._pendingPullIntos.peek();if("closed"===t._controlledReadableByteStream._state){if(0!==e)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");Ee(t,r)}else Oe(t,e,r);be(t)}function Ie(t){var e=t._pendingPullIntos.shift();return Pe(t),e}function Me(t){var e=t._controlledReadableByteStream;return"readable"===e._state&&(!0!==t._closeRequested&&(!1!==t._started&&(!0===N(e)&&j(e)>0||(!0===Ke(e)&&Qe(e)>0||Ue(t)>0))))}function Fe(t){t._pullAlgorithm=void 0,t._cancelAlgorithm=void 0}function De(t){var e=t._controlledReadableByteStream;if(t._queueTotalSize>0)return void(t._closeRequested=!0);if(t._pendingPullIntos.length>0){if(t._pendingPullIntos.peek().bytesFilled>0){var r=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Ne(t,r),r}}Fe(t),ar(e)}function je(t,e){var r=t._controlledReadableByteStream,n=e.buffer,i=e.byteOffset,o=e.byteLength,a=h(n);if(!0===N(r))if(0===j(r))Ae(t,a,i,o);else{var s=new Uint8Array(a,i,o);D(r,s,!1)}else!0===Ke(r)?(Ae(t,a,i,o),Ce(t)):Ae(t,a,i,o);be(t)}function Ne(t,e){var r=t._controlledReadableByteStream;"readable"===r._state&&(_e(t),V(t),Fe(t),sr(r,e))}function Ue(t){var e=t._controlledReadableByteStream,r=e._state;return"errored"===r?null:"closed"===r?0:t._strategyHWM-t._queueTotalSize}function Be(t,e){if(e=Number(e),!1===o(e))throw new RangeError("bytesWritten must be a finite");Le(t,e)}function We(t,e){var r=t._pendingPullIntos.peek();if(r.byteOffset+r.bytesFilled!==e.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.byteLength!==e.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");r.buffer=e.buffer,Le(t,e.byteLength)}function qe(t,e,r,n,i,o,a){e._controlledReadableByteStream=t,e._pullAgain=!1,e._pulling=!1,e._byobRequest=void 0,e._queue=e._queueTotalSize=void 0,V(e),e._closeRequested=!1,e._started=!1,e._strategyHWM=f(o),e._pullAlgorithm=n,e._cancelAlgorithm=i,e._autoAllocateChunkSize=a,e._pendingPullIntos=new jr,t._readableStreamController=e,y(v(r()),function(){e._started=!0,be(e)},function(t){Ne(e,t)})}function Ye(t,e,r){function n(){return u(e,"start",[i])}var i=Object.create(Jr.prototype),o=c(e,"pull",0,[i]),a=c(e,"cancel",1,[]),s=e.autoAllocateChunkSize;if(void 0!==s&&(s=Number(s),!1===Qr(s)||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");qe(t,i,n,o,a,r,s)}function ze(t,e,r){t._associatedReadableByteStreamController=e,t._view=r}function Xe(t){return new TypeError("ReadableStreamBYOBRequest.prototype."+t+" can only be used on a ReadableStreamBYOBRequest")}function He(t){return new TypeError("ReadableByteStreamController.prototype."+t+" can only be used on a ReadableByteStreamController")}function Ge(t,e){void 0===e&&(e=!1);var r=new Zr(t);return r._forAuthorCode=e,r}function Ve(t){return p(function(e,r){var n={_resolve:e,_reject:r};t._reader._readIntoRequests.push(n)})}function $e(t,e,r){var n=t._reader;n._readIntoRequests.shift()._resolve(A(e,r,n._forAuthorCode))}function Qe(t){return t._reader._readIntoRequests.length}function Ke(t){var e=t._reader;return void 0!==e&&!!Je(e)}function Je(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readIntoRequests")}function Ze(t,e){var r=t._ownerReadableStream;return r._disturbed=!0,"errored"===r._state?m(r._storedError):Re(r._readableStreamController,e)}function tr(t){return new TypeError("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}function er(t,e,r,n,i){void 0===n&&(n=1),void 0===i&&(i=function(){return 1});var o=Object.create(tn.prototype);return rr(o),de(o,Object.create($r.prototype),t,e,r,n,i),o}function rr(t){t._state="readable",t._reader=void 0,t._storedError=void 0,t._disturbed=!1}function nr(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readableStreamController")}function ir(t){return void 0!==t._reader}function or(t,r){return t._disturbed=!0,"closed"===t._state?v(void 0):"errored"===t._state?m(t._storedError):(ar(t),w(t._readableStreamController[Nr](r),e))}function ar(t){t._state="closed";var e=t._reader;void 0!==e&&(U(e)&&(e._readRequests.forEach(function(t){t._resolve(A(void 0,!0,e._forAuthorCode))}),e._readRequests=new jr),I(e))}function sr(t,e){t._state="errored",t._storedError=e;var r=t._reader;void 0!==r&&(U(r)?(r._readRequests.forEach(function(t){t._reject(e)}),r._readRequests=new jr):(r._readIntoRequests.forEach(function(t){t._reject(e)}),r._readIntoRequests=new jr),O(r,e))}function cr(t){return new TypeError("ReadableStream.prototype."+t+" can only be used on a ReadableStream")}function ur(t,e,r,n,i,o){function a(){return e}function s(e){return Sr(t,e)}function c(e){return Ar(t,e)}function u(){return xr(t)}function l(){return Tr(t)}function h(e){return fr(t,e),v(void 0)}t._writable=Q(a,s,u,c,r,n),t._readable=er(a,l,h,i,o),t._backpressure=void 0,t._backpressureChangePromise=void 0,t._backpressureChangePromise_resolve=void 0,dr(t,!0),t._transformStreamController=void 0}function lr(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_transformStreamController")}function hr(t,e){ue(t._readable._readableStreamController,e),fr(t,e)}function fr(t,e){gr(t._transformStreamController),Mt(t._writable._writableStreamController,e),!0===t._backpressure&&dr(t,!1)}function dr(t,e){void 0!==t._backpressureChangePromise&&t._backpressureChangePromise_resolve(),t._backpressureChangePromise=p(function(e){t._backpressureChangePromise_resolve=e}),t._backpressure=e}function pr(t){return!!r(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledTransformStream")}function vr(t,e,r,n){e._controlledTransformStream=t,t._transformStreamController=e,e._transformAlgorithm=r,e._flushAlgorithm=n}function mr(t,e){var r=Object.create(on.prototype),n=function(t){try{return yr(r,t),v(void 0)}catch(t){return m(t)}},i=e.transform;if(void 0!==i){if("function"!=typeof i)throw new TypeError("transform is not a method");n=function(t){return l(i,e,[t,r])}}var o=c(e,"flush",0,[r]);vr(t,r,n,o)}function gr(t){t._transformAlgorithm=void 0,t._flushAlgorithm=void 0}function yr(t,e){var r=t._controlledTransformStream,n=r._readable._readableStreamController;if(!1===fe(n))throw new TypeError("Readable side is not in a state that permits enqueue");try{ce(n,e)}catch(t){throw fr(r,t),r._readable._storedError}he(n)!==r._backpressure&&dr(r,!0)}function br(t,e){hr(t._controlledTransformStream,e)}function _r(t,e){return w(t._transformAlgorithm(e),void 0,function(e){throw hr(t._controlledTransformStream,e),e})}function wr(t){var e=t._controlledTransformStream,r=e._readable._readableStreamController;!0===fe(r)&&se(r),fr(e,new TypeError("TransformStream terminated"))}function Sr(t,e){var r=t._transformStreamController;if(!0===t._backpressure){return w(t._backpressureChangePromise,function(){var n=t._writable;if("erroring"===n._state)throw n._storedError;return _r(r,e)})}return _r(r,e)}function Ar(t,e){return hr(t,e),v(void 0)}function xr(t){var e=t._readable,r=t._transformStreamController,n=r._flushAlgorithm();return gr(r),w(n,function(){if("errored"===e._state)throw e._storedError;var t=e._readableStreamController;!0===fe(t)&&se(t)},function(r){throw hr(t,r),e._storedError})}function Tr(t){return dr(t,!1),t._backpressureChangePromise}function kr(t){return new TypeError("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function Pr(t){return new TypeError("TransformStream.prototype."+t+" can only be used on a TransformStream")}var Cr,Rr,Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(t){return"Symbol("+t+")"},Or=Number.isNaN||function(t){return t!==t},Lr=e,Ir=Promise,Mr=Promise.prototype.then,Fr=Promise.resolve.bind(Ir),Dr=Promise.reject.bind(Ir),jr=function(){function t(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(t.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),t.prototype.push=function(t){var e=this._back,r=e;16383===e._elements.length&&(r={_elements:[],_next:void 0}),e._elements.push(t),r!==e&&(this._back=r,e._next=r),++this._size},t.prototype.shift=function(){var t=this._front,e=t,r=this._cursor,n=r+1,i=t._elements,o=i[r];return 16384===n&&(e=t._next,n=0),--this._size,this._cursor=n,t!==e&&(this._front=e),i[r]=void 0,o},t.prototype.forEach=function(t){for(var e=this._cursor,r=this._front,n=r._elements;!(e===n.length&&void 0===r._next||e===n.length&&(r=r._next,n=r._elements,e=0,0===n.length));)t(n[e]),++e},t.prototype.peek=function(){var t=this._front,e=this._cursor;return t._elements[e]},t}(),Nr=Er("[[CancelSteps]]"),Ur=Er("[[PullSteps]]"),Br=function(){function t(t){if(!1===nr(t))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===ir(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");x(this,t),this._readRequests=new jr}return Object.defineProperty(t.prototype,"closed",{get:function(){return U(this)?this._closedPromise:m(W("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return U(this)?void 0===this._ownerReadableStream?m(P("cancel")):T(this,t):m(W("cancel"))},t.prototype.read=function(){return U(this)?void 0===this._ownerReadableStream?m(P("read from")):B(this):m(W("read"))},t.prototype.releaseLock=function(){if(!U(this))throw W("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");k(this)}},t}();"symbol"==typeof Er.asyncIterator&&(Cr={},Cr[Er.asyncIterator]=function(){return this},Rr=Cr,Object.defineProperty(Rr,Er.asyncIterator,{enumerable:!1}));var Wr={next:function(){if(!1===Y(this))return m(z("next"));var t=this._asyncIteratorReader;return void 0===t._ownerReadableStream?m(P("iterate")):w(B(t),function(e){var r=e.done;return r&&k(t),A(e.value,r,!0)})},return:function(t){if(!1===Y(this))return m(z("next"));var e=this._asyncIteratorReader;if(void 0===e._ownerReadableStream)return m(P("finish iterating"));if(e._readRequests.length>0)return m(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var r=T(e,t);return k(e),w(r,function(){return A(t,!0,!0)})}return k(e),v(A(t,!0,!0))}};void 0!==Rr&&Object.setPrototypeOf(Wr,Rr),Object.defineProperty(Wr,"next",{enumerable:!1}),Object.defineProperty(Wr,"return",{enumerable:!1});var qr=Er("[[AbortSteps]]"),Yr=Er("[[ErrorSteps]]"),zr=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e={}),K(this);var r=e.size,n=e.highWaterMark;if(void 0!==t.type)throw new RangeError("Invalid type is specified");var i=d(r);void 0===n&&(n=1),n=f(n),Pt(this,t,n,i)}return Object.defineProperty(t.prototype,"locked",{get:function(){if(!1===J(this))throw Ut("locked");return Z(this)},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===J(this)?m(Ut("abort")):!0===Z(this)?m(new TypeError("Cannot abort a stream that already has a writer")):tt(this,t)},t.prototype.close=function(){return!1===J(this)?m(Ut("close")):!0===Z(this)?m(new TypeError("Cannot close a stream that already has a writer")):!0===lt(this)?m(new TypeError("Cannot close an already-closing stream")):et(this)},t.prototype.getWriter=function(){if(!1===J(this))throw Ut("getWriter");return $(this)},t}(),Xr=function(){function t(t){if(!1===J(t))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===Z(t))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=t,t._writer=this;var e=t._state;if("writable"===e)!1===lt(t)&&!0===t._backpressure?Vt(this):Qt(this),qt(this);else if("erroring"===e)$t(this,t._storedError),qt(this);else if("closed"===e)Qt(this),zt(this);else{var r=t._storedError;$t(this,r),Yt(this,r)}}return Object.defineProperty(t.prototype,"closed",{get:function(){return!1===mt(this)?m(Bt("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===mt(this))throw Bt("desiredSize");if(void 0===this._ownerWritableStream)throw Wt("desiredSize");return St(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ready",{get:function(){return!1===mt(this)?m(Bt("ready")):this._readyPromise},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===mt(this)?m(Bt("abort")):void 0===this._ownerWritableStream?m(Wt("abort")):gt(this,t)},t.prototype.close=function(){if(!1===mt(this))return m(Bt("close"));var t=this._ownerWritableStream;return void 0===t?m(Wt("close")):!0===lt(t)?m(new TypeError("Cannot close an already-closing stream")):yt(this)},t.prototype.releaseLock=function(){if(!1===mt(this))throw Bt("releaseLock");void 0!==this._ownerWritableStream&&At(this)},t.prototype.write=function(t){return!1===mt(this)?m(Bt("write")):void 0===this._ownerWritableStream?m(Wt("write to")):xt(this,t)},t}(),Hr=function(){function t(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return t.prototype.error=function(t){if(!1===Tt(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&Nt(this,t)},t.prototype[qr]=function(t){var e=this._abortAlgorithm(t);return Ct(this),e},t.prototype[Yr]=function(){V(this)},t}(),Gr="undefined"!=typeof DOMException?DOMException:void 0,Vr=function(t){if("function"!=typeof t&&"object"!=typeof t)return!1;try{return new t,!0}catch(t){return!1}}(Gr)?Gr:function(){var t=function(t,e){this.message=t||"",this.name=e||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return t.prototype=Object.create(Error.prototype),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,configurable:!0}),t}(),$r=function(){function t(){throw new TypeError}return Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===ne(this))throw ve("desiredSize");return le(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===ne(this))throw ve("close");if(!1===fe(this))throw new TypeError("The stream is not in a state that permits close");se(this)},t.prototype.enqueue=function(t){if(!1===ne(this))throw ve("enqueue");if(!1===fe(this))throw new TypeError("The stream is not in a state that permits enqueue");return ce(this,t)},t.prototype.error=function(t){if(!1===ne(this))throw ve("error");ue(this,t)},t.prototype[Nr]=function(t){V(this);var e=this._cancelAlgorithm(t);return ae(this),e},t.prototype[Ur]=function(){var t=this._controlledReadableStream;if(this._queue.length>0){var e=X(this);return!0===this._closeRequested&&0===this._queue.length?(ae(this),ar(t)):ie(this),v(A(e,!1,t._reader._forAuthorCode))}var r=F(t);return ie(this),r},t}(),Qr=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Kr=function(){function t(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(t.prototype,"view",{get:function(){if(!1===ye(this))throw Xe("view");return this._view},enumerable:!0,configurable:!0}),t.prototype.respond=function(t){if(!1===ye(this))throw Xe("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,Be(this._associatedReadableByteStreamController,t)},t.prototype.respondWithNewView=function(t){if(!1===ye(this))throw Xe("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(t))throw new TypeError("You can only respond with array buffer views");t.buffer,We(this._associatedReadableByteStreamController,t)},t}(),Jr=function(){function t(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(t.prototype,"byobRequest",{get:function(){if(!1===ge(this))throw He("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var t=this._pendingPullIntos.peek(),e=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),r=Object.create(Kr.prototype);ze(r,this,e),this._byobRequest=r}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===ge(this))throw He("desiredSize");return Ue(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===ge(this))throw He("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be closed");De(this)},t.prototype.enqueue=function(t){if(!1===ge(this))throw He("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(t))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");t.buffer,je(this,t)},t.prototype.error=function(t){if(!1===ge(this))throw He("error");Ne(this,t)},t.prototype[Nr]=function(t){if(this._pendingPullIntos.length>0){this._pendingPullIntos.peek().bytesFilled=0}V(this);var e=this._cancelAlgorithm(t);return Fe(this),e},t.prototype[Ur]=function(){var t=this._controlledReadableByteStream;if(this._queueTotalSize>0){var e=this._queue.shift();this._queueTotalSize-=e.byteLength,ke(this);var r=void 0;try{r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}catch(t){return m(t)}return v(A(r,!1,t._reader._forAuthorCode))}var n=this._autoAllocateChunkSize;if(void 0!==n){var i=void 0;try{i=new ArrayBuffer(n)}catch(t){return m(t)}var o={buffer:i,byteOffset:0,byteLength:n,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(o)}var a=F(t);return be(this),a},t}(),Zr=function(){function t(t){if(!nr(t))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===ge(t._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(ir(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");x(this,t),this._readIntoRequests=new jr}return Object.defineProperty(t.prototype,"closed",{get:function(){return Je(this)?this._closedPromise:m(tr("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return Je(this)?void 0===this._ownerReadableStream?m(P("cancel")):T(this,t):m(tr("cancel"))},t.prototype.read=function(t){return Je(this)?void 0===this._ownerReadableStream?m(P("read from")):ArrayBuffer.isView(t)?(t.buffer,0===t.byteLength?m(new TypeError("view must have non-zero byteLength")):Ze(this,t)):m(new TypeError("view must be an array buffer view")):m(tr("read"))},t.prototype.releaseLock=function(){if(!Je(this))throw tr("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");k(this)}},t}(),tn=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e={}),rr(this);var r=e.size,n=e.highWaterMark,i=t.type;if("bytes"===String(i)){if(void 0!==r)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===n&&(n=0),n=f(n),Ye(this,t,n)}else{if(void 0!==i)throw new RangeError("Invalid type is specified");var o=d(r);void 0===n&&(n=1),n=f(n),pe(this,t,n,o)}}return Object.defineProperty(t.prototype,"locked",{get:function(){if(!1===nr(this))throw cr("locked");return ir(this)},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return!1===nr(this)?m(cr("cancel")):!0===ir(this)?m(new TypeError("Cannot cancel a stream that already has a reader")):or(this,t)},t.prototype.getReader=function(t){var e=(void 0===t?{}:t).mode;if(!1===nr(this))throw cr("getReader");if(void 0===e)return M(this,!0);if("byob"===(e=String(e)))return Ge(this,!0);throw new RangeError("Invalid mode is specified")},t.prototype.pipeThrough=function(t,e){var r=t.writable,n=t.readable,i=void 0===e?{}:e,o=i.preventClose,a=i.preventAbort,s=i.preventCancel,c=i.signal;if(!1===nr(this))throw cr("pipeThrough");if(!1===J(r))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===nr(n))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),a=Boolean(a),s=Boolean(s),void 0!==c&&!ee(c))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===ir(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===Z(r))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return S(re(this,r,o,a,s,c)),n},t.prototype.pipeTo=function(t,e){var r=void 0===e?{}:e,n=r.preventClose,i=r.preventAbort,o=r.preventCancel,a=r.signal;return!1===nr(this)?m(cr("pipeTo")):!1===J(t)?m(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(n=Boolean(n),i=Boolean(i),o=Boolean(o),void 0===a||ee(a)?!0===ir(this)?m(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===Z(t)?m(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):re(this,t,n,i,o,a):m(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},t.prototype.tee=function(){if(!1===nr(this))throw cr("tee");return n(me(this))},t.prototype.getIterator=function(t){var e=(void 0===t?{}:t).preventCancel,r=void 0!==e&&e;if(!1===nr(this))throw cr("getIterator");return q(this,r)},t}();"symbol"==typeof Er.asyncIterator&&Object.defineProperty(tn.prototype,Er.asyncIterator,{value:tn.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var en=function(){function t(t){var e=t.highWaterMark;this.highWaterMark=e}return t.prototype.size=function(t){return t.byteLength},t}(),rn=function(){function t(t){var e=t.highWaterMark;this.highWaterMark=e}return t.prototype.size=function(){return 1},t}(),nn=function(){function t(t,e,r){void 0===t&&(t={}),void 0===e&&(e={}),void 0===r&&(r={});var n=e.size,i=e.highWaterMark,o=r.size,a=r.highWaterMark;if(void 0!==t.writableType)throw new RangeError("Invalid writable type specified");var s=d(n);if(void 0===i&&(i=1),i=f(i),void 0!==t.readableType)throw new RangeError("Invalid readable type specified");var c=d(o);void 0===a&&(a=0),a=f(a);var l;ur(this,p(function(t){l=t}),i,s,a,c),mr(this,t);var h=u(t,"start",[this._transformStreamController]);l(h)}return Object.defineProperty(t.prototype,"readable",{get:function(){if(!1===lr(this))throw Pr("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"writable",{get:function(){if(!1===lr(this))throw Pr("writable");return this._writable},enumerable:!0,configurable:!0}),t}(),on=function(){function t(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===pr(this))throw kr("desiredSize");return le(this._controlledTransformStream._readable._readableStreamController)},enumerable:!0,configurable:!0}),t.prototype.enqueue=function(t){if(!1===pr(this))throw kr("enqueue");yr(this,t)},t.prototype.error=function(t){if(!1===pr(this))throw kr("error");br(this,t)},t.prototype.terminate=function(){if(!1===pr(this))throw kr("terminate");wr(this)},t}();t.ByteLengthQueuingStrategy=en,t.CountQueuingStrategy=rn,t.ReadableStream=tn,t.TransformStream=nn,t.WritableStream=zr,Object.defineProperty(t,"__esModule",{value:!0})}(e)}()},function(t,e,r){r(145),r(114),r(77),r(116);var n=r(43);t.exports=n.Map},function(t,e,r){"use strict";var n=r(146),i=r(150);t.exports=n("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},i)},function(t,e,r){"use strict";var n=r(10),i=r(11),o=r(52),a=r(29),s=r(147),c=r(124),u=r(123),l=r(22),h=r(14),f=r(97),d=r(85),p=r(149);t.exports=function(t,e,r){var v=-1!==t.indexOf("Map"),m=-1!==t.indexOf("Weak"),g=v?"set":"add",y=i[t],b=y&&y.prototype,_=y,w={},S=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!l(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(o(t,"function"!=typeof y||!(m||b.forEach&&!h(function(){(new y).entries().next()}))))_=r.getConstructor(e,t,v,g),s.REQUIRED=!0;else if(o(t,!0)){var A=new _,x=A[g](m?{}:-0,1)!=A,T=h(function(){A.has(1)}),k=f(function(t){new y(t)}),P=!m&&h(function(){for(var t=new y,e=5;e--;)t[g](e,e);return!t.has(-0)});k||(_=e(function(e,r){u(e,_,t);var n=p(new y,e,_);return void 0!=r&&c(r,n[g],n,v),n}),_.prototype=b,b.constructor=_),(T||P)&&(S("delete"),S("has"),v&&S("get")),(P||x)&&S(g),m&&b.clear&&delete b.clear}return w[t]=_,n({global:!0,forced:_!=y},w),d(_,t),m||r.setStrong(_,t,v),_}},function(t,e,r){var n=r(39),i=r(22),o=r(23),a=r(27).f,s=r(38),c=r(148),u=s("meta"),l=0,h=Object.isExtensible||function(){return!0},f=function(t){a(t,u,{value:{objectID:"O"+ ++l,weakData:{}}})},d=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,u)){if(!h(t))return"F";if(!e)return"E";f(t)}return t[u].objectID},p=function(t,e){if(!o(t,u)){if(!h(t))return!0;if(!e)return!1;f(t)}return t[u].weakData},v=function(t){return c&&m.REQUIRED&&h(t)&&!o(t,u)&&f(t),t},m=t.exports={REQUIRED:!1,fastKey:d,getWeakData:p,onFreeze:v};n[u]=!0},function(t,e,r){var n=r(14);t.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(t,e,r){var n=r(22),i=r(87);t.exports=function(t,e,r){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(t,a),t}},function(t,e,r){"use strict";var n=r(27).f,i=r(71),o=r(121),a=r(62),s=r(123),c=r(124),u=r(79),l=r(122),h=r(13),f=r(147).fastKey,d=r(33),p=d.set,v=d.getterFor;t.exports={getConstructor:function(t,e,r,u){var l=t(function(t,n){s(t,l,e),p(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),h||(t.size=0),void 0!=n&&c(n,t[u],t,r)}),d=v(e),m=function(t,e,r){var n,i,o=d(t),a=g(t,e);return a?a.value=r:(o.last=a={index:i=f(e,!0),key:e,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),h?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},g=function(t,e){var r,n=d(t),i=f(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==e)return r};return o(l.prototype,{clear:function(){for(var t=this,e=d(t),r=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete r[n.index],n=n.next;e.first=e.last=void 0,h?e.size=0:t.size=0},delete:function(t){var e=this,r=d(e),n=g(e,t);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),h?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=d(this),n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),o(l.prototype,r?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),h&&n(l.prototype,"size",{get:function(){return d(this).size}}),l},setStrong:function(t,e,r){var n=e+" Iterator",i=v(e),o=v(n);u(t,e,function(t,e){p(this,{type:n,target:t,state:i(t),kind:e,last:void 0})},function(){for(var t=o(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),l(e)}}},function(t,e,r){r(152),r(114),r(77),r(116);var n=r(43);t.exports=n.Set},function(t,e,r){"use strict";var n=r(146),i=r(150);t.exports=n("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},i)},function(t,e,r){r(114),r(154),r(116);var n=r(43);t.exports=n.WeakMap},function(t,e,r){"use strict";var n,i=r(11),o=r(121),a=r(147),s=r(146),c=r(155),u=r(22),l=r(33).enforce,h=r(34),f=!i.ActiveXObject&&"ActiveXObject"in i,d=Object.isExtensible,p=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},v=t.exports=s("WeakMap",p,c);if(h&&f){n=c.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var m=v.prototype,g=m.delete,y=m.has,b=m.get,_=m.set;o(m,{delete:function(t){if(u(t)&&!d(t)){var e=l(this);return e.frozen||(e.frozen=new n),g.call(this,t)||e.frozen.delete(t)}return g.call(this,t)},has:function(t){if(u(t)&&!d(t)){var e=l(this);return e.frozen||(e.frozen=new n),y.call(this,t)||e.frozen.has(t)}return y.call(this,t)},get:function(t){if(u(t)&&!d(t)){var e=l(this);return e.frozen||(e.frozen=new n),y.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(u(t)&&!d(t)){var r=l(this);r.frozen||(r.frozen=new n),y.call(this,t)?_.call(this,t,e):r.frozen.set(t,e)}else _.call(this,t,e);return this}})}},function(t,e,r){"use strict";var n=r(121),i=r(147).getWeakData,o=r(28),a=r(22),s=r(123),c=r(124),u=r(156),l=r(23),h=r(33),f=h.set,d=h.getterFor,p=u.find,v=u.findIndex,m=0,g=function(t){return t.frozen||(t.frozen=new y)},y=function(){this.entries=[]},b=function(t,e){return p(t.entries,function(t){return t[0]===e})};y.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var r=b(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=v(this.entries,function(e){return e[0]===t});return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,r,u){var h=t(function(t,n){s(t,h,e),f(t,{type:e,id:m++,frozen:void 0}),void 0!=n&&c(n,t[u],t,r)}),p=d(e),v=function(t,e,r){var n=p(t),a=i(o(e),!0);return!0===a?g(n).set(e,r):a[n.id]=r,t};return n(h.prototype,{delete:function(t){var e=p(this);if(!a(t))return!1;var r=i(t);return!0===r?g(e).delete(t):r&&l(r,e.id)&&delete r[e.id]},has:function(t){var e=p(this);if(!a(t))return!1;var r=i(t);return!0===r?g(e).has(t):r&&l(r,e.id)}}),n(h.prototype,r?{get:function(t){var e=p(this);if(a(t)){var r=i(t);return!0===r?g(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return v(this,t,e)}}:{add:function(t){return v(this,t,!0)}}),h}}},function(t,e,r){var n=r(62),i=r(18),o=r(83),a=r(47),s=r(157),c=[].push,u=function(t){var e=1==t,r=2==t,u=3==t,l=4==t,h=6==t,f=5==t||h;return function(d,p,v,m){for(var g,y,b=o(d),_=i(b),w=n(p,v,3),S=a(_.length),A=0,x=m||s,T=e?x(d,S):r?x(d,0):void 0;S>A;A++)if((f||A in _)&&(g=_[A],y=w(g,A,b),t))if(e)T[A]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return A;case 2:c.call(T,g)}else if(l)return!1;return h?-1:u||l?l:T}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},function(t,e,r){var n=r(22),i=r(158),o=r(57),a=o("species");t.exports=function(t,e){var r;return i(t)&&(r=t.constructor,"function"!=typeof r||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[a])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},function(t,e,r){var n=r(19);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){r(114),r(160),r(116);var n=r(43);t.exports=n.WeakSet},function(t,e,r){"use strict";var n=r(146),i=r(155);n("WeakSet",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},i)},function(t,e,r){r(162);var n=r(61);t.exports=n("String","codePointAt")},function(t,e,r){"use strict";var n=r(10),i=r(78).codeAt;n({target:"String",proto:!0},{codePointAt:function(t){return i(this,t)}})},function(t,e,r){r(164);var n=r(43);t.exports=n.String.fromCodePoint},function(t,e,r){var n=r(10),i=r(49),o=String.fromCharCode,a=String.fromCodePoint;n({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,a=0;n>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return r.join("")}})},function(t,e,r){r(166),r(114),r(168),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(185),r(186),r(187);var n=r(43);t.exports=n.Symbol},function(t,e,r){"use strict";var n=r(10),i=r(14),o=r(158),a=r(22),s=r(83),c=r(47),u=r(93),l=r(157),h=r(167),f=r(57),d=r(133),p=f("isConcatSpreadable"),v=d>=51||!i(function(){var t=[];return t[p]=!1,t.concat()[0]!==t}),m=h("concat"),g=function(t){if(!a(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,forced:!v||!m},{concat:function(t){var e,r,n,i,o,a=s(this),h=l(a,0),f=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?a:arguments[e],g(o)){if(i=c(o.length),f+i>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<i;r++,f++)r in o&&u(h,f,o[r])}else{if(f>=9007199254740991)throw TypeError("Maximum allowed index exceeded");u(h,f++,o)}return h.length=f,h}})},function(t,e,r){var n=r(14),i=r(57),o=r(133),a=i("species");t.exports=function(t){return o>=51||!n(function(){var e=[],r=e.constructor={};return r[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},function(t,e,r){"use strict";var n=r(10),i=r(11),o=r(42),a=r(37),s=r(13),c=r(58),u=r(59),l=r(14),h=r(23),f=r(158),d=r(22),p=r(28),v=r(83),m=r(17),g=r(21),y=r(16),b=r(71),_=r(73),w=r(44),S=r(169),A=r(51),x=r(12),T=r(27),k=r(15),P=r(26),C=r(29),R=r(36),E=r(35),O=r(39),L=r(38),I=r(57),M=r(170),F=r(171),D=r(85),j=r(33),N=r(156).forEach,U=E("hidden"),B=I("toPrimitive"),W=j.set,q=j.getterFor("Symbol"),Y=Object.prototype,z=i.Symbol,X=o("JSON","stringify"),H=x.f,G=T.f,V=S.f,$=k.f,Q=R("symbols"),K=R("op-symbols"),J=R("string-to-symbol-registry"),Z=R("symbol-to-string-registry"),tt=R("wks"),et=i.QObject,rt=!et||!et.prototype||!et.prototype.findChild,nt=s&&l(function(){return 7!=b(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=H(Y,e);n&&delete Y[e],G(t,e,r),n&&t!==Y&&G(Y,e,n)}:G,it=function(t,e){var r=Q[t]=b(z.prototype);return W(r,{type:"Symbol",tag:t,description:e}),s||(r.description=e),r},ot=u?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof z},at=function(t,e,r){t===Y&&at(K,e,r),p(t);var n=g(e,!0);return p(r),h(Q,n)?(r.enumerable?(h(t,U)&&t[U][n]&&(t[U][n]=!1),r=b(r,{enumerable:y(0,!1)})):(h(t,U)||G(t,U,y(1,{})),t[U][n]=!0),nt(t,n,r)):G(t,n,r)},st=function(t,e){p(t);var r=m(e),n=_(r).concat(ft(r));return N(n,function(e){s&&!ut.call(r,e)||at(t,e,r[e])}),t},ct=function(t,e){return void 0===e?b(t):st(b(t),e)},ut=function(t){var e=g(t,!0),r=$.call(this,e);return!(this===Y&&h(Q,e)&&!h(K,e))&&(!(r||!h(this,e)||!h(Q,e)||h(this,U)&&this[U][e])||r)},lt=function(t,e){var r=m(t),n=g(e,!0);if(r!==Y||!h(Q,n)||h(K,n)){var i=H(r,n);return!i||!h(Q,n)||h(r,U)&&r[U][n]||(i.enumerable=!0),i}},ht=function(t){var e=V(m(t)),r=[];return N(e,function(t){h(Q,t)||h(O,t)||r.push(t)}),r},ft=function(t){var e=t===Y,r=V(e?K:m(t)),n=[];return N(r,function(t){!h(Q,t)||e&&!h(Y,t)||n.push(Q[t])}),n};if(c||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=L(t),r=function(t){this===Y&&r.call(K,t),h(this,U)&&h(this[U],e)&&(this[U][e]=!1),nt(this,e,y(1,t))};return s&&rt&&nt(Y,e,{configurable:!0,set:r}),it(e,t)},C(z.prototype,"toString",function(){return q(this).tag}),C(z,"withoutSetter",function(t){return it(L(t),t)}),k.f=ut,T.f=at,x.f=lt,w.f=S.f=ht,A.f=ft,M.f=function(t){return it(I(t),t)},s&&(G(z.prototype,"description",{configurable:!0,get:function(){return q(this).description}}),a||C(Y,"propertyIsEnumerable",ut,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:z}),N(_(tt),function(t){F(t)}),n({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=String(t);if(h(J,e))return J[e];var r=z(e);return J[e]=r,Z[r]=e,r},keyFor:function(t){if(!ot(t))throw TypeError(t+" is not a symbol");if(h(Z,t))return Z[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!s},{create:ct,defineProperty:at,defineProperties:st,getOwnPropertyDescriptor:lt}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ht,getOwnPropertySymbols:ft}),n({target:"Object",stat:!0,forced:l(function(){A.f(1)})},{getOwnPropertySymbols:function(t){return A.f(v(t))}}),X){n({target:"JSON",stat:!0,forced:!c||l(function(){var t=z();return"[null]"!=X([t])||"{}"!=X({a:t})||"{}"!=X(Object(t))})},{stringify:function(t,e,r){for(var n,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=e,(d(e)||void 0!==t)&&!ot(t))return f(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!ot(e))return e}),i[1]=e,X.apply(null,i)}})}z.prototype[B]||P(z.prototype,B,z.prototype.valueOf),D(z,"Symbol"),O[U]=!0},function(t,e,r){var n=r(17),i=r(44).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(n(t))}},function(t,e,r){var n=r(57);e.f=n},function(t,e,r){var n=r(43),i=r(23),o=r(170),a=r(27).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},function(t,e,r){r(171)("asyncIterator")},function(t,e,r){"use strict";var n=r(10),i=r(13),o=r(11),a=r(23),s=r(22),c=r(27).f,u=r(40),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var h={},f=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof f?new l(t):void 0===t?l():l(t);return""===t&&(h[e]=!0),e};u(f,l);var d=f.prototype=l.prototype;d.constructor=f;var p=d.toString,v="Symbol(test)"==String(l("test")),m=/^Symbol\((.*)\)[^)]+$/;c(d,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=p.call(t);if(a(h,t))return"";var r=v?e.slice(7,-1):e.replace(m,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:f})}},function(t,e,r){r(171)("hasInstance")},function(t,e,r){r(171)("isConcatSpreadable")},function(t,e,r){r(171)("iterator")},function(t,e,r){r(171)("match")},function(t,e,r){r(171)("matchAll")},function(t,e,r){r(171)("replace")},function(t,e,r){r(171)("search")},function(t,e,r){r(171)("species")},function(t,e,r){r(171)("split")},function(t,e,r){r(171)("toPrimitive")},function(t,e,r){r(171)("toStringTag")},function(t,e,r){r(171)("unscopables")},function(t,e,r){r(85)(Math,"Math",!0)},function(t,e,r){var n=r(11);r(85)(n.JSON,"JSON",!0)},function(t,e,r){r(189);var n=r(61);t.exports=n("String","padStart")},function(t,e,r){"use strict";var n=r(10),i=r(190).start;n({target:"String",proto:!0,forced:r(192)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(47),i=r(191),o=r(20),a=Math.ceil,s=function(t){return function(e,r,s){var c,u,l=String(o(e)),h=l.length,f=void 0===s?" ":String(s),d=n(r);return d<=h||""==f?l:(c=d-h,u=i.call(f,a(c/f.length)),u.length>c&&(u=u.slice(0,c)),t?l+u:u+l)}};t.exports={start:s(!1),end:s(!0)}},function(t,e,r){"use strict";var n=r(48),i=r(20);t.exports="".repeat||function(t){var e=String(i(this)),r="",o=n(t);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(r+=e);return r}},function(t,e,r){var n=r(127);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},function(t,e,r){r(194);var n=r(61);t.exports=n("String","padEnd")},function(t,e,r){"use strict";var n=r(10),i=r(190).end;n({target:"String",proto:!0,forced:r(192)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){r(196);var n=r(43);t.exports=n.Object.values},function(t,e,r){var n=r(10),i=r(197).values;n({target:"Object",stat:!0},{values:function(t){return i(t)}})},function(t,e,r){var n=r(13),i=r(73),o=r(17),a=r(15).f,s=function(t){return function(e){for(var r,s=o(e),c=i(s),u=c.length,l=0,h=[];u>l;)r=c[l++],n&&!a.call(s,r)||h.push(t?[r,s[r]]:s[r]);return h}};t.exports={entries:s(!0),values:s(!1)}},function(module,exports,__w_pdfjs_require__){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function asyncGeneratorStep(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){function o(t){asyncGeneratorStep(s,n,i,o,a,"next",t)}function a(t){asyncGeneratorStep(s,n,i,o,a,"throw",t)}var s=t.apply(e,r);o(void 0)})}}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _createForOfIteratorHelper(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _createClass(t,e,r){return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _iterableToArrayLimit(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _typeof(t){"@babel/helpers - typeof";return(_typeof="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})(t)}function setPDFNetworkStreamFactory(t){createPDFNetworkStream=t}function getDocument(t){var e,r=new PDFDocumentLoadingTask;if("string"==typeof t)e={url:t};else if((0,_util.isArrayBuffer)(t))e={data:t};else if(t instanceof PDFDataRangeTransport)e={range:t};else{if("object"!==_typeof(t))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!t.url&&!t.data&&!t.range)throw new Error("Invalid parameter object: need either .data, .range or .url");e=t}var n=Object.create(null),i=null,o=null;for(var a in e)if("url"!==a||"undefined"==typeof window)if("range"!==a)if("worker"!==a)if("data"!==a||e[a]instanceof Uint8Array)n[a]=e[a];else{var s=e[a];if("string"==typeof s)n[a]=(0,_util.stringToBytes)(s);else if("object"!==_typeof(s)||null===s||isNaN(s.length)){if(!(0,_util.isArrayBuffer)(s))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");n[a]=new Uint8Array(s)}else n[a]=new Uint8Array(s)}else o=e[a];else i=e[a];else n[a]=new URL(e[a],window.location).href;if(n.rangeChunkSize=n.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,n.CMapReaderFactory=n.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,n.ignoreErrors=!0!==n.stopAtErrors,n.fontExtraProperties=!0===n.fontExtraProperties,n.pdfBug=!0===n.pdfBug,Number.isInteger(n.maxImageSize)||(n.maxImageSize=-1),"boolean"!=typeof n.isEvalSupported&&(n.isEvalSupported=!0),"boolean"!=typeof n.disableFontFace&&(n.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),"boolean"!=typeof n.disableRange&&(n.disableRange=!1),"boolean"!=typeof n.disableStream&&(n.disableStream=!1),"boolean"!=typeof n.disableAutoFetch&&(n.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(n.verbosity),!o){var c={verbosity:n.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};o=c.port?PDFWorker.fromPort(c):new PDFWorker(c),r._worker=o}var u=r.docId;return o.promise.then(function(){if(r.destroyed)throw new Error("Loading aborted");var t=_fetchDocument(o,n,i,u),e=new Promise(function(t){var e;i?e=new _transport_stream.PDFDataTransportStream({length:n.length,initialData:n.initialData,progressiveDone:n.progressiveDone,disableRange:n.disableRange,disableStream:n.disableStream},i):n.data||(e=createPDFNetworkStream({url:n.url,length:n.length,httpHeaders:n.httpHeaders,withCredentials:n.withCredentials,rangeChunkSize:n.rangeChunkSize,disableRange:n.disableRange,disableStream:n.disableStream})),t(e)});return Promise.all([t,e]).then(function(t){var e=_slicedToArray(t,2),i=e[0],a=e[1];if(r.destroyed)throw new Error("Loading aborted");var s=new _message_handler.MessageHandler(u,i,o.port);s.postMessageTransfers=o.postMessageTransfers;var c=new WorkerTransport(s,r,a,n);r._transport=c,s.send("Ready",null)})}).catch(r._capability.reject),r}function _fetchDocument(t,e,r,n){return t.destroyed?Promise.reject(new Error("Worker was destroyed")):(r&&(e.length=r.length,e.initialData=r.initialData,e.progressiveDone=r.progressiveDone),t.messageHandler.sendWithPromise("GetDocRequest",{docId:n,apiVersion:"2.5.207",source:{data:e.data,url:e.url,password:e.password,disableAutoFetch:e.disableAutoFetch,rangeChunkSize:e.rangeChunkSize,length:e.length},maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,postMessageTransfers:t.postMessageTransfers,docBaseUrl:e.docBaseUrl,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported,fontExtraProperties:e.fontExtraProperties}).then(function(e){if(t.destroyed)throw new Error("Worker was destroyed");return e}))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(2)),_util=__w_pdfjs_require__(5),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(199),_api_compatibility=__w_pdfjs_require__(200),_canvas=__w_pdfjs_require__(201),_worker_options=__w_pdfjs_require__(203),_is_node=__w_pdfjs_require__(7),_message_handler=__w_pdfjs_require__(204),_metadata=__w_pdfjs_require__(205),_transport_stream=__w_pdfjs_require__(207),_webgl=__w_pdfjs_require__(208),DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,createPDFNetworkStream,PDFDocumentLoadingTask=function(){var t=0;return function(){function e(){_classCallCheck(this,e),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+t++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(e,[{key:"destroy",value:function(){var t=this;return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(function(){t._transport=null,t._worker&&(t._worker.destroy(),t._worker=null)})}},{key:"promise",get:function(){return this._capability.promise}}]),e}()}(),PDFDataRangeTransport=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.length=e,this.initialData=r,this.progressiveDone=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(t,[{key:"addRangeListener",value:function(t){this._rangeListeners.push(t)}},{key:"addProgressListener",value:function(t){this._progressListeners.push(t)}},{key:"addProgressiveReadListener",value:function(t){this._progressiveReadListeners.push(t)}},{key:"addProgressiveDoneListener",value:function(t){this._progressiveDoneListeners.push(t)}},{key:"onDataRange",value:function(t,e){var r,n=_createForOfIteratorHelper(this._rangeListeners);try{for(n.s();!(r=n.n()).done;){(0,r.value)(t,e)}}catch(t){n.e(t)}finally{n.f()}}},{key:"onDataProgress",value:function(t,e){var r=this;this._readyCapability.promise.then(function(){var n,i=_createForOfIteratorHelper(r._progressListeners);try{for(i.s();!(n=i.n()).done;){(0,n.value)(t,e)}}catch(t){i.e(t)}finally{i.f()}})}},{key:"onDataProgressiveRead",value:function(t){var e=this;this._readyCapability.promise.then(function(){var r,n=_createForOfIteratorHelper(e._progressiveReadListeners);try{for(n.s();!(r=n.n()).done;){(0,r.value)(t)}}catch(t){n.e(t)}finally{n.f()}})}},{key:"onDataProgressiveDone",value:function(){var t=this;this._readyCapability.promise.then(function(){var e,r=_createForOfIteratorHelper(t._progressiveDoneListeners);try{for(r.s();!(e=r.n()).done;){(0,e.value)()}}catch(t){r.e(t)}finally{r.f()}})}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(t,e){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),t}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function t(e,r){_classCallCheck(this,t),this._pdfInfo=e,this._transport=r}return _createClass(t,[{key:"getPage",value:function(t){return this._transport.getPage(t)}},{key:"getPageIndex",value:function(t){return this._transport.getPageIndex(t)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(t){return this._transport.getDestination(t)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getOpenActionDestination",value:function(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then(function(t){return t&&t.dest?t.dest:null})}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),t}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function t(e,r,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,t),this._pageIndex=e,this._pageInfo=r,this._transport=n,this._stats=i?new _display_utils.StatTimer:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return _createClass(t,[{key:"getViewport",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.scale,r=t.rotation,n=void 0===r?this.rotate:r,i=t.offsetX,o=void 0===i?0:i,a=t.offsetY,s=void 0===a?0:a,c=t.dontFlip,u=void 0!==c&&c;return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:n,offsetX:o,offsetY:s,dontFlip:u})}},{key:"getAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.intent,r=void 0===e?null:e;return this.annotationsPromise&&this.annotationsIntent===r||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,r),this.annotationsIntent=r),this.annotationsPromise}},{key:"render",value:function(t){var e=this,r=t.canvasContext,n=t.viewport,i=t.intent,o=void 0===i?"display":i,a=t.enableWebGL,s=void 0!==a&&a,c=t.renderInteractiveForms,u=void 0!==c&&c,l=t.transform,h=void 0===l?null:l,f=t.imageLayer,d=void 0===f?null:f,p=t.canvasFactory,v=void 0===p?null:p,m=t.background,g=void 0===m?null:m;this._stats&&this._stats.time("Overall");var y="print"===o?"print":"display";this.pendingCleanup=!1,this.intentStates[y]||(this.intentStates[y]=Object.create(null));var b=this.intentStates[y];b.streamReaderCancelTimeout&&(clearTimeout(b.streamReaderCancelTimeout),b.streamReaderCancelTimeout=null);var _=v||new _display_utils.DOMCanvasFactory,w=new _webgl.WebGLContext({enable:s});b.displayReadyCapability||(b.displayReadyCapability=(0,_util.createPromiseCapability)(),b.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:y,renderInteractiveForms:!0===u}));var S=function(t){var r=b.renderTasks.indexOf(A);r>=0&&b.renderTasks.splice(r,1),(e.cleanupAfterRender||"print"===y)&&(e.pendingCleanup=!0),e._tryCleanup(),t?(A.capability.reject(t),e._abortOperatorList({intentState:b,reason:t})):A.capability.resolve(),e._stats&&(e._stats.timeEnd("Rendering"),e._stats.timeEnd("Overall"))},A=new InternalRenderTask({callback:S,params:{canvasContext:r,viewport:n,transform:h,imageLayer:d,background:g},objs:this.objs,commonObjs:this.commonObjs,operatorList:b.operatorList,pageIndex:this._pageIndex,canvasFactory:_,webGLContext:w,useRequestAnimationFrame:"print"!==y,pdfBug:this._pdfBug});b.renderTasks||(b.renderTasks=[]),b.renderTasks.push(A);var x=A.task;return b.displayReadyCapability.promise.then(function(t){if(e.pendingCleanup)return void S();e._stats&&e._stats.time("Rendering"),A.initializeGraphics(t),A.operatorListChanged()}).catch(S),x}},{key:"getOperatorList",value:function(){function t(){if(r.operatorList.lastChunk){r.opListReadCapability.resolve(r.operatorList);var t=r.renderTasks.indexOf(e);t>=0&&r.renderTasks.splice(t,1)}}this.intentStates.oplist||(this.intentStates.oplist=Object.create(null));var e,r=this.intentStates.oplist;return r.opListReadCapability||(e={},e.operatorListChanged=t,r.opListReadCapability=(0,_util.createPromiseCapability)(),r.renderTasks=[],r.renderTasks.push(e),r.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:"oplist"})),r.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.normalizeWhitespace,r=void 0!==e&&e,n=t.disableCombineTextItems,i=void 0!==n&&n;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===r,combineTextItems:!0!==i},{highWaterMark:100,size:function(t){return t.items.length}})}},{key:"getTextContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.streamTextContent(t);return new Promise(function(t,r){function n(){i.read().then(function(e){var r,i=e.value;if(e.done)return void t(o);Object.assign(o.styles,i.styles),(r=o.items).push.apply(r,_toConsumableArray(i.items)),n()},r)}var i=e.getReader(),o={items:[],styles:Object.create(null)};n()})}},{key:"_destroy",value:function(){var t=this;this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var e=[];return Object.keys(this.intentStates).forEach(function(r){var n=t.intentStates[r];t._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==r&&n.renderTasks.forEach(function(t){var r=t.capability.promise.catch(function(){});e.push(r),t.cancel()})}),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(e)}},{key:"cleanup",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(t)}},{key:"_tryCleanup",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(!this.pendingCleanup||Object.keys(this.intentStates).some(function(e){var r=t.intentStates[e];return 0!==r.renderTasks.length||!r.operatorList.lastChunk}))&&(Object.keys(this.intentStates).forEach(function(e){delete t.intentStates[e]}),this.objs.clear(),this.annotationsPromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0)}},{key:"_startRenderPage",value:function(t,e){var r=this.intentStates[e];r&&(this._stats&&this._stats.timeEnd("Page Request"),r.displayReadyCapability&&r.displayReadyCapability.resolve(t))}},{key:"_renderPageChunk",value:function(t,e){for(var r=0,n=t.length;r<n;r++)e.operatorList.fnArray.push(t.fnArray[r]),e.operatorList.argsArray.push(t.argsArray[r]);e.operatorList.lastChunk=t.lastChunk;for(var i=0;i<e.renderTasks.length;i++)e.renderTasks[i].operatorListChanged();t.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(t){var e=this;(0,_util.assert)(t.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var r=this._transport.messageHandler.sendWithStream("GetOperatorList",t),n=r.getReader(),i=this.intentStates[t.intent];i.streamReader=n;!function t(){n.read().then(function(r){var n=r.value;if(r.done)return void(i.streamReader=null);e._transport.destroyed||(e._renderPageChunk(n,i),t())},function(t){if(i.streamReader=null,!e._transport.destroyed){if(i.operatorList){i.operatorList.lastChunk=!0;for(var r=0;r<i.renderTasks.length;r++)i.renderTasks[r].operatorListChanged();e._tryCleanup()}if(i.displayReadyCapability)i.displayReadyCapability.reject(t);else{if(!i.opListReadCapability)throw t;i.opListReadCapability.reject(t)}}})}()}},{key:"_abortOperatorList",value:function(t){var e=this,r=t.intentState,n=t.reason,i=t.force,o=void 0!==i&&i;if((0,_util.assert)(n instanceof Error||"object"===_typeof(n)&&null!==n,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),r.streamReader){if(!o){if(0!==r.renderTasks.length)return;if(n instanceof _display_utils.RenderingCancelledException)return void(r.streamReaderCancelTimeout=setTimeout(function(){e._abortOperatorList({intentState:r,reason:n,force:!0}),r.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}r.streamReader.cancel(new _util.AbortException(n&&n.message)),r.streamReader=null,this._transport.destroyed||(Object.keys(this.intentStates).some(function(t){return e.intentStates[t]===r&&(delete e.intentStates[t],!0)}),this.cleanup())}}},{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"stats",get:function(){return this._stats}}]),t}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function t(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,t),this._listeners=[],this._defer=e,this._deferred=Promise.resolve(void 0)}return _createClass(t,[{key:"postMessage",value:function(t,e){function r(t){if("object"!==_typeof(t)||null===t)return t;if(i.has(t))return i.get(t);var n,o;if((n=t.buffer)&&(0,_util.isArrayBuffer)(n)){return o=e&&e.includes(n)?new t.constructor(n,t.byteOffset,t.byteLength):new t.constructor(t),i.set(t,o),o}o=Array.isArray(t)?[]:{},i.set(t,o);for(var a in t){for(var s=void 0,c=t;!(s=Object.getOwnPropertyDescriptor(c,a));)c=Object.getPrototypeOf(c);if(void 0!==s.value)if("function"!=typeof s.value)o[a]=r(s.value);else if(t.hasOwnProperty&&t.hasOwnProperty(a))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(t[a]))}return o}var n=this;if(!this._defer)return void this._listeners.forEach(function(e){e.call(n,{data:t})});var i=new WeakMap,o={data:r(t)};this._deferred.then(function(){n._listeners.forEach(function(t){t.call(n,o)})})}},{key:"addEventListener",value:function(t,e){this._listeners.push(e)}},{key:"removeEventListener",value:function(t,e){var r=this._listeners.indexOf(e);this._listeners.splice(r,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),t}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(void 0!==fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var t;try{t=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(t){}return t||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref10=_asyncToGenerator(_regenerator.default.mark(function _callee(){var mainWorkerMessageHandler,worker;return _regenerator.default.wrap(function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(!(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler())){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context.stop()}},_callee)}));return function(){return _ref10.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(t){var e="importScripts('"+t+"');";return URL.createObjectURL(new Blob([e]))}var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"==typeof document?"undefined":_typeof(document))&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}var PDFWorker=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.name,n=void 0===r?null:r,i=e.port,o=void 0===i?null:i,a=e.verbosity,s=void 0===a?(0,_util.getVerbosityLevel)():a;if(_classCallCheck(this,t),o&&pdfWorkerPorts.has(o))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=n,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,o)return pdfWorkerPorts.set(o,this),void this._initializeFromPort(o);this._initialize()}return _createClass(t,[{key:"_initializeFromPort",value:function(t){this._port=t,this._messageHandler=new _message_handler.MessageHandler("main","worker",t),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var t=this;if("undefined"!=typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var e=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,e)||(e=createCDNWrapper(new URL(e,window.location).href));var r=new Worker(e),n=new _message_handler.MessageHandler("main","worker",r),i=function(){r.removeEventListener("error",o),n.destroy(),r.terminate(),t.destroyed?t._readyCapability.reject(new Error("Worker was destroyed")):t._setupFakeWorker()},o=function(){t._webWorker||i()};r.addEventListener("error",o),n.on("test",function(e){if(r.removeEventListener("error",o),t.destroyed)return void i();e?(t._messageHandler=n,t._port=r,t._webWorker=r,e.supportTransfers||(t.postMessageTransfers=!1),t._readyCapability.resolve(),n.send("configure",{verbosity:t.verbosity})):(t._setupFakeWorker(),n.destroy(),r.terminate())}),n.on("ready",function(e){if(r.removeEventListener("error",o),t.destroyed)return void i();try{a()}catch(e){t._setupFakeWorker()}});var a=function(){var e=new Uint8Array([t.postMessageTransfers?255:0]);try{n.send("test",e,[e.buffer])}catch(t){(0,_util.warn)("Cannot use postMessage transfers."),e[0]=0,n.send("test",e)}};return void a()}catch(t){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var t=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(function(e){if(t.destroyed)return void t._readyCapability.reject(new Error("Worker was destroyed"));var r=new LoopbackPort;t._port=r;var n="fake"+nextFakeWorkerId++,i=new _message_handler.MessageHandler(n+"_worker",n,r);e.setup(i,r);var o=new _message_handler.MessageHandler(n,n+"_worker",r);t._messageHandler=o,t._readyCapability.resolve(),o.send("configure",{verbosity:t.verbosity})}).catch(function(e){t._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(e.message,'".')))})}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(e){if(!e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(e.port)?pdfWorkerPorts.get(e.port):new t(e)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),t}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function t(e,r,n,i){_classCallCheck(this,t),this.messageHandler=e,this.loadingTask=r,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:r.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=i,this.CMapReaderFactory=new i.CMapReaderFactory({baseUrl:i.cMapUrl,isCompressed:i.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(t,[{key:"destroy",value:function(){var t=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var e=[];this.pageCache.forEach(function(t){t&&e.push(t._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;var r=this.messageHandler.sendWithPromise("Terminate",null);return e.push(r),Promise.all(e).then(function(){t.fontLoader.clear(),t._networkStream&&t._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),t.messageHandler&&(t.messageHandler.destroy(),t.messageHandler=null),t.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var t=this,e=this.messageHandler,r=this.loadingTask;e.on("GetReader",function(e,r){(0,_util.assert)(t._networkStream,"GetReader - no `IPDFStream` instance available."),t._fullReader=t._networkStream.getFullReader(),t._fullReader.onProgress=function(e){t._lastProgress={loaded:e.loaded,total:e.total}},r.onPull=function(){t._fullReader.read().then(function(t){var e=t.value;if(t.done)return void r.close();(0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(e),1,[e])}).catch(function(t){r.error(t)})},r.onCancel=function(e){t._fullReader.cancel(e)}}),e.on("ReaderHeadersReady",function(e){var n=(0,_util.createPromiseCapability)(),i=t._fullReader;return i.headersReady.then(function(){i.isStreamingSupported&&i.isRangeSupported||(t._lastProgress&&r.onProgress&&r.onProgress(t._lastProgress),i.onProgress=function(t){r.onProgress&&r.onProgress({loaded:t.loaded,total:t.total})}),n.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})},n.reject),n.promise}),e.on("GetRangeReader",function(e,r){(0,_util.assert)(t._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var n=t._networkStream.getRangeReader(e.begin,e.end);if(!n)return void r.close();r.onPull=function(){n.read().then(function(t){var e=t.value;if(t.done)return void r.close();(0,_util.assert)((0,_util.isArrayBuffer)(e),"GetRangeReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(e),1,[e])}).catch(function(t){r.error(t)})},r.onCancel=function(t){n.cancel(t)}}),e.on("GetDoc",function(e){var n=e.pdfInfo;t._numPages=n.numPages,r._capability.resolve(new PDFDocumentProxy(n,t))}),e.on("DocException",function(t){var e;switch(t.name){case"PasswordException":e=new _util.PasswordException(t.message,t.code);break;case"InvalidPDFException":e=new _util.InvalidPDFException(t.message);break;case"MissingPDFException":e=new _util.MissingPDFException(t.message);break;case"UnexpectedResponseException":e=new _util.UnexpectedResponseException(t.message,t.status);break;case"UnknownErrorException":e=new _util.UnknownErrorException(t.message,t.details)}r._capability.reject(e)}),e.on("PasswordRequest",function(e){if(t._passwordCapability=(0,_util.createPromiseCapability)(),r.onPassword){var n=function(e){t._passwordCapability.resolve({password:e})};try{r.onPassword(n,e.code)}catch(e){t._passwordCapability.reject(e)}}else t._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return t._passwordCapability.promise}),e.on("DataLoaded",function(e){r.onProgress&&r.onProgress({loaded:e.length,total:e.length}),t.downloadInfoCapability.resolve(e)}),e.on("StartRenderPage",function(e){if(!t.destroyed){t.pageCache[e.pageIndex]._startRenderPage(e.transparency,e.intent)}}),e.on("commonobj",function(r){if(!t.destroyed){var n=_slicedToArray(r,3),i=n[0],o=n[1],a=n[2];if(!t.commonObjs.has(i))switch(o){case"Font":var s=t._params;if("error"in a){var c=a.error;(0,_util.warn)("Error during font loading: ".concat(c)),t.commonObjs.resolve(i,c);break}var u=null;s.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(u={registerFont:function(t,e){globalThis.FontInspector.fontAdded(t,e)}});var l=new _font_loader.FontFaceObject(a,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:t._onUnsupportedFeature.bind(t),fontRegistry:u});t.fontLoader.bind(l).catch(function(t){return e.sendWithPromise("FontFallback",{id:i})}).finally(function(){!s.fontExtraProperties&&l.data&&(l.data=null),t.commonObjs.resolve(i,l)});break;case"FontPath":case"FontType3Res":case"Image":t.commonObjs.resolve(i,a);break;default:throw new Error("Got unknown common object type ".concat(o))}}}),e.on("obj",function(e){if(!t.destroyed){var r=_slicedToArray(e,4),n=r[0],i=r[1],o=r[2],a=r[3],s=t.pageCache[i];if(!s.objs.has(n))switch(o){case"Image":s.objs.resolve(n,a);a&&"data"in a&&a.data.length>8e6&&(s.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(o))}}}),e.on("DocProgress",function(e){t.destroyed||r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",function(e,r){if(t.destroyed)return void r.error(new Error("Worker was destroyed"));var n=!1;r.onPull=function(){if(n)return void r.close();n=!0,t.CMapReaderFactory.fetch(e).then(function(t){r.enqueue(t,1,[t.cMapData.buffer])}).catch(function(t){r.error(t)})}})}},{key:"_onUnsupportedFeature",value:function(t){var e=t.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(e)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(t){var e=this;if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request"));var r=t-1;if(r in this.pagePromises)return this.pagePromises[r];var n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then(function(t){if(e.destroyed)throw new Error("Transport destroyed");var n=new PDFPageProxy(r,t,e,e._params.pdfBug);return e.pageCache[r]=n,n});return this.pagePromises[r]=n,n}},{key:"getPageIndex",value:function(t){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:t}).catch(function(t){return Promise.reject(new Error(t))})}},{key:"getAnnotations",value:function(t,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:e})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(t){return"string"!=typeof t?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var t=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(e){return{info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:t._fullReader?t._fullReader.filename:null}})}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var t=this;return this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(var e=0,r=t.pageCache.length;e<r;e++){var n=t.pageCache[e];if(n){if(!n.cleanup())throw new Error("startCleanup: Page ".concat(e+1," is currently rendering."))}}t.commonObjs.clear(),t.fontLoader.clear()})}},{key:"loadingParams",get:function(){var t=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:t.disableAutoFetch,disableFontFace:t.disableFontFace})}}]),t}(),PDFObjects=function(){function t(){_classCallCheck(this,t),this._objs=Object.create(null)}return _createClass(t,[{key:"_ensureObj",value:function(t){return this._objs[t]?this._objs[t]:this._objs[t]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e)return this._ensureObj(t).capability.promise.then(e),null;var r=this._objs[t];if(!r||!r.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(t,"."));return r.data}},{key:"has",value:function(t){var e=this._objs[t];return!!e&&e.resolved}},{key:"resolve",value:function(t,e){var r=this._ensureObj(t);r.resolved=!0,r.data=e,r.capability.resolve(e)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),t}(),RenderTask=function(){function t(e){_classCallCheck(this,t),this._internalRenderTask=e,this.onContinue=null}return _createClass(t,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),t}(),InternalRenderTask=function(){var t=new WeakSet;return function(){function e(t){var r=t.callback,n=t.params,i=t.objs,o=t.commonObjs,a=t.operatorList,s=t.pageIndex,c=t.canvasFactory,u=t.webGLContext,l=t.useRequestAnimationFrame,h=void 0!==l&&l,f=t.pdfBug,d=void 0!==f&&f;_classCallCheck(this,e),this.callback=r,this.params=n,this.objs=i,this.commonObjs=o,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=s,this.canvasFactory=c,this.webGLContext=u,this._pdfBug=d,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===h&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}return _createClass(e,[{key:"initializeGraphics",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.cancelled){if(this._canvas){if(t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var r=this.params,n=r.canvasContext,i=r.viewport,o=r.transform,a=r.imageLayer,s=r.background;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,a),this.gfx.beginDrawing({transform:o,viewport:i,transparency:e,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&t.delete(this._canvas),this.callback(e||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){if(!this.graphicsReady)return void(this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound));this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var t=this;this._useRequestAnimationFrame?window.requestAnimationFrame(function(){t._nextBound().catch(t.cancel.bind(t))}):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}},{key:"_next",value:function(){function e(){return r.apply(this,arguments)}var r=_asyncToGenerator(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.cancelled){e.next=2;break}return e.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&t.delete(this._canvas),this.callback()));case 4:case"end":return e.stop()}},e,this)}));return e}()}]),e}()}(),version="2.5.207";exports.version=version;var build="0974d605";exports.build=build},function(t,e,r){"use strict";function n(t){"@babel/helpers - typeof";return(n="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})(t)}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=u();return function(){var r,n=l(t);if(e){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return s(this,r)}}function s(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){function o(t){h(s,n,i,o,a,"next",t)}function a(t){h(s,n,i,o,a,"throw",t)}var s=t.apply(e,r);o(void 0)})}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function v(t,e,r){return e&&p(t.prototype,e),r&&p(t,r),t}Object.defineProperty(e,"__esModule",{value:!0}),e.FontLoader=e.FontFaceObject=void 0;var m,g=function(t){return t&&t.__esModule?t:{default:t}}(r(2)),y=r(5),b=function(){function t(e){var r=e.docId,n=e.onUnsupportedFeature;d(this,t),this.constructor===t&&(0,y.unreachable)("Cannot initialize BaseFontLoader."),this.docId=r,this._onUnsupportedFeature=n,this.nativeFontFaces=[],this.styleElement=null}return v(t,[{key:"addNativeFontFace",value:function(t){this.nativeFontFaces.push(t),document.fonts.add(t)}},{key:"insertRule",value:function(t){var e=this.styleElement;e||(e=this.styleElement=document.createElement("style"),e.id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),document.documentElement.getElementsByTagName("head")[0].appendChild(e));var r=e.sheet;r.insertRule(t,r.cssRules.length)}},{key:"clear",value:function(){this.nativeFontFaces.forEach(function(t){document.fonts.delete(t)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){function t(t){return e.apply(this,arguments)}var e=f(g.default.mark(function t(e){var r,n,i=this;return g.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.attached&&!e.missingFile){t.next=2;break}return t.abrupt("return");case 2:if(e.attached=!0,!this.isFontLoadingAPISupported){t.next=19;break}if(!(r=e.createNativeFontFace())){t.next=18;break}return this.addNativeFontFace(r),t.prev=7,t.next=10,r.loaded;case 10:t.next=18;break;case 12:throw t.prev=12,t.t0=t.catch(7),this._onUnsupportedFeature({featureId:y.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,y.warn)("Failed to load font '".concat(r.family,"': '").concat(t.t0,"'.")),e.disableFontFace=!0,t.t0;case 18:return t.abrupt("return");case 19:if(!(n=e.createFontFaceRule())){t.next=26;break}if(this.insertRule(n),!this.isSyncFontLoadingSupported){t.next=24;break}return t.abrupt("return");case 24:return t.next=26,new Promise(function(t){var r=i._queueLoadingCallback(t);i._prepareFontLoadEvent([n],[e],r)});case 26:case"end":return t.stop()}},t,this,[[7,12]])}));return t}()},{key:"_queueLoadingCallback",value:function(t){(0,y.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(t,e,r){(0,y.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){var t="undefined"!=typeof document&&!!document.fonts;return(0,y.shadow)(this,"isFontLoadingAPISupported",t)}},{key:"isSyncFontLoadingSupported",get:function(){(0,y.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,y.unreachable)("Abstract method `_loadTestFont`.")}}]),t}();e.FontLoader=m,e.FontLoader=m=function(t){function e(t){var n;return d(this,e),n=r.call(this,t),n.loadingContext={requests:[],nextRequestId:0},n.loadTestFontId=0,n}i(e,t);var r=a(e);return v(e,[{key:"_queueLoadingCallback",value:function(t){function e(){for((0,y.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;r.requests.length>0&&r.requests[0].done;){var t=r.requests.shift();setTimeout(t.callback,0)}}var r=this.loadingContext,n={id:"pdfjs-font-loading-".concat(r.nextRequestId++),done:!1,complete:e,callback:t};return r.requests.push(n),n}},{key:"_prepareFontLoadEvent",value:function(t,e,r){function n(t,e){return t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|255&t.charCodeAt(e+3)}function i(t,e,r,n){return t.substring(0,e)+n+t.substring(e+r)}function o(t,e){return++l>30?((0,y.warn)("Load test font never loaded."),void e()):(u.font="30px "+t,u.fillText(".",0,20),u.getImageData(0,0,1,1).data[3]>0?void e():void setTimeout(o.bind(null,t,e)))}var a,s,c=document.createElement("canvas");c.width=1,c.height=1;var u=c.getContext("2d"),l=0,h="lt".concat(Date.now()).concat(this.loadTestFontId++),f=this._loadTestFont;f=i(f,976,h.length,h);var d=n(f,16);for(a=0,s=h.length-3;a<s;a+=4)d=d-1482184792+n(h,a)|0;a<h.length&&(d=d-1482184792+n(h+"XXX",a)|0),f=i(f,16,4,(0,y.string32)(d));var p="url(data:font/opentype;base64,".concat(btoa(f),");"),v='@font-face {font-family:"'.concat(h,'";src:').concat(p,"}");this.insertRule(v);var m=[];for(a=0,s=e.length;a<s;a++)m.push(e[a].loadedName);m.push(h);var g=document.createElement("div");for(g.style.visibility="hidden",g.style.width=g.style.height="10px",g.style.position="absolute",g.style.top=g.style.left="0px",a=0,s=m.length;a<s;++a){var b=document.createElement("span");b.textContent="Hi",b.style.fontFamily=m[a],g.appendChild(b)}document.body.appendChild(g),o(h,function(){document.body.removeChild(g),r.complete()})}},{key:"isSyncFontLoadingSupported",get:function(){var t=!1;if("undefined"==typeof navigator)t=!0;else{var e=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);e&&e[1]>=14&&(t=!0)}return(0,y.shadow)(this,"isSyncFontLoadingSupported",t)}},{key:"_loadTestFont",get:function(){return(0,y.shadow)(this,"_loadTestFont",function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")}())}}]),e}(b);var _=function(){function t(e,r){var n=r.isEvalSupported,i=void 0===n||n,o=r.disableFontFace,a=void 0!==o&&o,s=r.ignoreErrors,c=void 0!==s&&s,u=r.onUnsupportedFeature,l=void 0===u?null:u,h=r.fontRegistry,f=void 0===h?null:h;d(this,t),this.compiledGlyphs=Object.create(null);for(var p in e)this[p]=e[p];this.isEvalSupported=!1!==i,this.disableFontFace=!0===a,this.ignoreErrors=!0===c,this._onUnsupportedFeature=l,this.fontRegistry=f}return v(t,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var t=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),t}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var t=(0,y.bytesToString)(new Uint8Array(this.data)),e="url(data:".concat(this.mimetype,";base64,").concat(btoa(t),");"),r='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(e,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,e),r}},{key:"getPathGenerator",value:function(t,e){if(void 0!==this.compiledGlyphs[e])return this.compiledGlyphs[e];var r,n;try{r=t.get(this.loadedName+"_path_"+e)}catch(t){if(!this.ignoreErrors)throw t;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:y.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,y.warn)('getPathGenerator - ignoring character: "'.concat(t,'".')),this.compiledGlyphs[e]=function(t,e){}}if(this.isEvalSupported&&y.IsEvalSupportedCached.value){for(var i,o="",a=0,s=r.length;a<s;a++)n=r[a],i=void 0!==n.args?n.args.join(","):"",o+="c."+n.cmd+"("+i+");\n";return this.compiledGlyphs[e]=new Function("c","size",o)}return this.compiledGlyphs[e]=function(t,e){for(var i=0,o=r.length;i<o;i++)n=r[i],"scale"===n.cmd&&(n.args=[e,-e]),t[n.cmd].apply(t,n.args)}}}]),t}();e.FontFaceObject=_},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.apiCompatibilityParams=void 0;var n=r(7),i=Object.create(null);!function(){n.isNodeJS&&(i.disableFontFace=!0)}();var o=Object.freeze(i);e.apiCompatibilityParams=o},function(t,e,r){"use strict";function n(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=i(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t){t.mozCurrentTransform||(t._originalSave=t.save,t._originalRestore=t.restore,t._originalRotate=t.rotate,t._originalScale=t.scale,t._originalTranslate=t.translate,t._originalTransform=t.transform,t._originalSetTransform=t.setTransform,t._transformMatrix=t._transformMatrix||[1,0,0,1,0,0],t._transformStack=[],Object.defineProperty(t,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(t,"mozCurrentTransformInverse",{get:function(){var t=this._transformMatrix,e=t[0],r=t[1],n=t[2],i=t[3],o=t[4],a=t[5],s=e*i-r*n,c=r*n-e*i;return[i/s,r/c,n/c,e/s,(i*o-n*a)/c,(r*o-e*a)/s]}}),t.save=function(){var t=this._transformMatrix;this._transformStack.push(t),this._transformMatrix=t.slice(0,6),this._originalSave()},t.restore=function(){var t=this._transformStack.pop();t&&(this._transformMatrix=t,this._originalRestore())},t.translate=function(t,e){var r=this._transformMatrix;r[4]=r[0]*t+r[2]*e+r[4],r[5]=r[1]*t+r[3]*e+r[5],this._originalTranslate(t,e)},t.scale=function(t,e){var r=this._transformMatrix;r[0]=r[0]*t,r[1]=r[1]*t,r[2]=r[2]*e,r[3]=r[3]*e,this._originalScale(t,e)},t.transform=function(e,r,n,i,o,a){var s=this._transformMatrix;this._transformMatrix=[s[0]*e+s[2]*r,s[1]*e+s[3]*r,s[0]*n+s[2]*i,s[1]*n+s[3]*i,s[0]*o+s[2]*a+s[4],s[1]*o+s[3]*a+s[5]],t._originalTransform(e,r,n,i,o,a)},t.setTransform=function(e,r,n,i,o,a){this._transformMatrix=[e,r,n,i,o,a],t._originalSetTransform(e,r,n,i,o,a)},t.rotate=function(t){var e=Math.cos(t),r=Math.sin(t),n=this._transformMatrix;this._transformMatrix=[n[0]*e+n[2]*r,n[1]*e+n[3]*r,n[0]*-r+n[2]*e,n[1]*-r+n[3]*e,n[4],n[5]],this._originalRotate(t)})}function s(t){var e,r,n,i,o=t.width,a=t.height,s=o+1,c=new Uint8Array(s*(a+1)),u=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),l=o+7&-8,h=t.data,f=new Uint8Array(l*a),d=0;for(e=0,i=h.length;e<i;e++)for(var p=128,v=h[e];p>0;)f[d++]=v&p?0:255,p>>=1;var m=0;for(d=0,0!==f[d]&&(c[0]=1,++m),r=1;r<o;r++)f[d]!==f[d+1]&&(c[r]=f[d]?2:1,++m),d++;for(0!==f[d]&&(c[r]=2,++m),e=1;e<a;e++){d=e*l,n=e*s,f[d-l]!==f[d]&&(c[n]=f[d]?1:8,++m);var g=(f[d]?4:0)+(f[d-l]?8:0);for(r=1;r<o;r++)g=(g>>2)+(f[d+1]?4:0)+(f[d-l+1]?8:0),u[g]&&(c[n+r]=u[g],++m),d++;if(f[d-l]!==f[d]&&(c[n+r]=f[d]?2:4,++m),m>1e3)return null}for(d=l*(a-1),n=e*s,0!==f[d]&&(c[n]=8,++m),r=1;r<o;r++)f[d]!==f[d+1]&&(c[n+r]=f[d]?4:8,++m),d++;if(0!==f[d]&&(c[n+r]=4,++m),m>1e3)return null;var y=new Int32Array([0,s,-1,0,-s,0,0,0,1]),b=[];for(e=0;m&&e<=a;e++){for(var _=e*s,w=_+o;_<w&&!c[_];)_++;if(_!==w){var S,A=[_%s,e],x=c[_],T=_;do{var k=y[x];do{_+=k}while(!c[_]);S=c[_],5!==S&&10!==S?(x=S,c[_]=0):(x=S&51*x>>4,c[_]&=x>>2|x<<2),A.push(_%s),A.push(_/s|0),c[_]||--m}while(T!==_);b.push(A),--e}}return function(t){t.save(),t.scale(1/o,-1/a),t.translate(0,-a),t.beginPath();for(var e=0,r=b.length;e<r;e++){var n=b[e];t.moveTo(n[0],n[1]);for(var i=2,s=n.length;i<s;i+=2)t.lineTo(n[i],n[i+1])}t.fill(),t.beginPath(),t.restore()}}Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasGraphics=void 0;var c=r(5),u=r(202),l=16,h=function(){function t(t){this.canvasFactory=t,this.cache=Object.create(null)}return t.prototype={getCanvas:function(t,e,r,n){var i;return void 0!==this.cache[t]?(i=this.cache[t],this.canvasFactory.reset(i,e,r),i.context.setTransform(1,0,0,1,0,0)):(i=this.canvasFactory.create(e,r),this.cache[t]=i),n&&a(i.context),i},clear:function(){for(var t in this.cache){var e=this.cache[t];this.canvasFactory.destroy(e),delete this.cache[t]}}},t}(),f=function(){function t(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=c.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=c.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=c.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null}return t.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(t,e){this.x=t,this.y=e}},t}(),d=function(){function t(t,e,r,n,i,o){this.ctx=t,this.current=new f,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=e,this.objs=r,this.canvasFactory=n,this.webGLContext=i,this.imageLayer=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new h(this.canvasFactory),t&&a(t),this._cachedGetSinglePixelWidth=null}function e(t,e){if("undefined"!=typeof ImageData&&e instanceof ImageData)return void t.putImageData(e,0,0);var r,n,i,o,a,s=e.height,u=e.width,h=s%l,f=(s-h)/l,d=0===h?f:f+1,p=t.createImageData(u,l),v=0,m=e.data,g=p.data;if(e.kind===c.ImageKind.GRAYSCALE_1BPP){var y=m.byteLength,b=new Uint32Array(g.buffer,0,g.byteLength>>2),_=b.length,w=u+7>>3,S=4294967295,A=c.IsLittleEndianCached.value?4278190080:255;for(n=0;n<d;n++){for(o=n<f?l:h,r=0,i=0;i<o;i++){for(var x=y-v,T=0,k=x>w?u:8*x-7,P=-8&k,C=0,R=0;T<P;T+=8)R=m[v++],b[r++]=128&R?S:A,b[r++]=64&R?S:A,b[r++]=32&R?S:A,b[r++]=16&R?S:A,b[r++]=8&R?S:A,b[r++]=4&R?S:A,b[r++]=2&R?S:A,b[r++]=1&R?S:A;for(;T<k;T++)0===C&&(R=m[v++],C=128),b[r++]=R&C?S:A,C>>=1}for(;r<_;)b[r++]=0;t.putImageData(p,0,n*l)}}else if(e.kind===c.ImageKind.RGBA_32BPP){for(i=0,a=u*l*4,n=0;n<f;n++)g.set(m.subarray(v,v+a)),v+=a,t.putImageData(p,0,i),i+=l;n<d&&(a=u*h*4,g.set(m.subarray(v,v+a)),t.putImageData(p,0,i))}else{if(e.kind!==c.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(e.kind));for(o=l,a=u*o,n=0;n<d;n++){for(n>=f&&(o=h,a=u*o),r=0,i=a;i--;)g[r++]=m[v++],g[r++]=m[v++],g[r++]=m[v++],g[r++]=255;t.putImageData(p,0,n*l)}}}function r(t,e){for(var r=e.height,n=e.width,i=r%l,o=(r-i)/l,a=0===i?o:o+1,s=t.createImageData(n,l),c=0,u=e.data,h=s.data,f=0;f<a;f++){for(var d=f<o?l:i,p=3,v=0;v<d;v++)for(var m=0,g=0;g<n;g++){if(!m){var y=u[c++];m=128}h[p]=y&m?0:255,p+=4,m>>=1}t.putImageData(s,0,f*l)}}function i(t,e){for(var r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],n=0,i=r.length;n<i;n++){var o=r[n];void 0!==t[o]&&(e[o]=t[o])}void 0!==t.setLineDash&&(e.setLineDash(t.getLineDash()),e.lineDashOffset=t.lineDashOffset)}function o(t){t.strokeStyle="#000000",t.fillStyle="#000000",t.fillRule="nonzero",t.globalAlpha=1,t.lineWidth=1,t.lineCap="butt",t.lineJoin="miter",t.miterLimit=10,t.globalCompositeOperation="source-over",t.font="10px sans-serif",void 0!==t.setLineDash&&(t.setLineDash([]),t.lineDashOffset=0)}function d(t,e,r,n){for(var i=t.length,o=3;o<i;o+=4){var a=t[o];if(0===a)t[o-3]=e,t[o-2]=r,t[o-1]=n;else if(a<255){var s=255-a;t[o-3]=t[o-3]*a+e*s>>8,t[o-2]=t[o-2]*a+r*s>>8,t[o-1]=t[o-1]*a+n*s>>8}}}function p(t,e,r){for(var n=t.length,i=3;i<n;i+=4){var o=r?r[t[i]]:t[i];e[i]=e[i]*o*(1/255)|0}}function v(t,e,r){for(var n=t.length,i=3;i<n;i+=4){var o=77*t[i-3]+152*t[i-2]+28*t[i-1];e[i]=r?e[i]*r[o>>8]>>8:e[i]*o>>16}}function m(t,e,r,n,i,o,a){var s,c=!!o,u=c?o[0]:0,l=c?o[1]:0,h=c?o[2]:0;s="Luminosity"===i?v:p;for(var f=Math.min(n,Math.ceil(1048576/r)),m=0;m<n;m+=f){var g=Math.min(f,n-m),y=t.getImageData(0,m,r,g),b=e.getImageData(0,m,r,g);c&&d(y.data,u,l,h),s(y.data,b.data,a),t.putImageData(b,0,m)}}function g(t,e,r,n){var i=e.canvas,o=e.context;t.setTransform(e.scaleX,0,0,e.scaleY,e.offsetX,e.offsetY);var a=e.backdrop||null;if(!e.transferMap&&n.isEnabled){var s=n.composeSMask({layer:r.canvas,mask:i,properties:{subtype:e.subtype,backdrop:a}});return t.setTransform(1,0,0,1,0,0),void t.drawImage(s,e.offsetX,e.offsetY)}m(o,r,i.width,i.height,e.subtype,a,e.transferMap),t.drawImage(i,0,0)}var y=["butt","round","square"],b=["miter","round","bevel"],_={},w={};t.prototype={beginDrawing:function(t){var e=t.transform,r=t.viewport,n=t.transparency,i=void 0!==n&&n,a=t.background,s=void 0===a?null:a,c=this.ctx.canvas.width,u=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=s||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,c,u),this.ctx.restore(),i){var l=this.cachedCanvases.getCanvas("transparent",c,u,!0);this.compositeCtx=this.ctx,this.transparentCanvas=l.canvas,this.ctx=l.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),o(this.ctx),e&&this.ctx.transform.apply(this.ctx,e),this.ctx.transform.apply(this.ctx,r.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(t,e,r,i){var o=t.argsArray,a=t.fnArray,s=e||0,u=o.length;if(u===s)return s;for(var l,h=u-s>10&&"function"==typeof r,f=h?Date.now()+15:0,d=0,p=this.commonObjs,v=this.objs;;){if(void 0!==i&&s===i.nextBreakPoint)return i.breakIt(s,r),s;if((l=a[s])!==c.OPS.dependency)this[l].apply(this,o[s]);else{var m,g=n(o[s]);try{for(g.s();!(m=g.n()).done;){var y=m.value,b=y.startsWith("g_")?p:v;if(!b.has(y))return b.get(y,r),s}}catch(t){g.e(t)}finally{g.f()}}if(++s===u)return s;if(h&&++d>10){if(Date.now()>f)return r(),s;d=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(t){this.current.lineWidth=t,this.ctx.lineWidth=t},setLineCap:function(t){this.ctx.lineCap=y[t]},setLineJoin:function(t){this.ctx.lineJoin=b[t]},setMiterLimit:function(t){this.ctx.miterLimit=t},setDash:function(t,e){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(t),r.lineDashOffset=e)},setRenderingIntent:function(t){},setFlatness:function(t){},setGState:function(t){for(var e=0,r=t.length;e<r;e++){var n=t[e],i=n[0],o=n[1];switch(i){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o[0],o[1]);break;case"CA":this.current.strokeAlpha=n[1];break;case"ca":this.current.fillAlpha=n[1],this.ctx.globalAlpha=n[1];break;case"BM":this.ctx.globalCompositeOperation=o;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=o?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var t=this.current.activeSMask,e=t.canvas.width,r=t.canvas.height,n="smaskGroupAt"+this.groupLevel,o=this.cachedCanvases.getCanvas(n,e,r,!0),a=this.ctx,s=a.mozCurrentTransform;this.ctx.save();var c=o.context;c.scale(1/t.scaleX,1/t.scaleY),c.translate(-t.offsetX,-t.offsetY),c.transform.apply(c,s),t.startTransformInverse=c.mozCurrentTransformInverse,i(a,c),this.ctx=c,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(a),this.groupLevel++},suspendSMaskGroup:function(){var t=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),g(this.ctx,this.current.activeSMask,t,this.webGLContext),this.ctx.restore(),this.ctx.save(),i(t,this.ctx),this.current.resumeSMaskCtx=t;var e=c.Util.transform(this.current.activeSMask.startTransformInverse,t.mozCurrentTransform);this.ctx.transform.apply(this.ctx,e),t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,t.canvas.width,t.canvas.height),t.restore()},resumeSMaskGroup:function(){var t=this.current.resumeSMaskCtx,e=this.ctx;this.ctx=t,this.groupStack.push(e),this.groupLevel++},endSMaskGroup:function(){var t=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),g(this.ctx,this.current.activeSMask,t,this.webGLContext),this.ctx.restore(),i(t,this.ctx);var e=c.Util.transform(this.current.activeSMask.startTransformInverse,t.mozCurrentTransform);this.ctx.transform.apply(this.ctx,e)},save:function(){this.ctx.save();var t=this.current;this.stateStack.push(t),this.current=t.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(t,e,r,n,i,o){this.ctx.transform(t,e,r,n,i,o),this._cachedGetSinglePixelWidth=null},constructPath:function(t,e){for(var r=this.ctx,n=this.current,i=n.x,o=n.y,a=0,s=0,u=t.length;a<u;a++)switch(0|t[a]){case c.OPS.rectangle:i=e[s++],o=e[s++];var l=e[s++],h=e[s++];0===l&&(l=this.getSinglePixelWidth()),0===h&&(h=this.getSinglePixelWidth());var f=i+l,d=o+h;this.ctx.moveTo(i,o),this.ctx.lineTo(f,o),this.ctx.lineTo(f,d),this.ctx.lineTo(i,d),this.ctx.lineTo(i,o),this.ctx.closePath();break;case c.OPS.moveTo:i=e[s++],o=e[s++],r.moveTo(i,o);break;case c.OPS.lineTo:i=e[s++],o=e[s++],r.lineTo(i,o);break;case c.OPS.curveTo:i=e[s+4],o=e[s+5],r.bezierCurveTo(e[s],e[s+1],e[s+2],e[s+3],i,o),s+=6;break;case c.OPS.curveTo2:r.bezierCurveTo(i,o,e[s],e[s+1],e[s+2],e[s+3]),i=e[s+2],o=e[s+3],s+=4;break;case c.OPS.curveTo3:i=e[s+2],o=e[s+3],r.bezierCurveTo(e[s],e[s+1],i,o,i,o),s+=4;break;case c.OPS.closePath:r.closePath()}n.setCurrentPoint(i,o)},closePath:function(){this.ctx.closePath()},stroke:function(t){t=void 0===t||t;var e=this.ctx,r=this.current.strokeColor;if(e.globalAlpha=this.current.strokeAlpha,r&&r.hasOwnProperty("type")&&"Pattern"===r.type){e.save();var n=e.mozCurrentTransform,i=c.Util.singularValueDecompose2dScale(n)[0];e.strokeStyle=r.getPattern(e,this),e.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth*i),e.stroke(),e.restore()}else e.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth),e.stroke();t&&this.consumePath(),e.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(t){t=void 0===t||t;var e=this.ctx,r=this.current.fillColor,n=this.current.patternFill,i=!1;n&&(e.save(),this.baseTransform&&e.setTransform.apply(e,this.baseTransform),e.fillStyle=r.getPattern(e,this),i=!0),this.pendingEOFill?(e.fill("evenodd"),this.pendingEOFill=!1):e.fill(),i&&e.restore(),t&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=_},eoClip:function(){this.pendingClip=w},beginText:function(){this.current.textMatrix=c.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var t=this.pendingTextPaths,e=this.ctx;if(void 0===t)return void e.beginPath();e.save(),e.beginPath();for(var r=0;r<t.length;r++){var n=t[r];e.setTransform.apply(e,n.transform),e.translate(n.x,n.y),n.addToPath(e,n.fontSize)}e.restore(),e.clip(),e.beginPath(),delete this.pendingTextPaths},setCharSpacing:function(t){this.current.charSpacing=t},setWordSpacing:function(t){this.current.wordSpacing=t},setHScale:function(t){this.current.textHScale=t/100},setLeading:function(t){this.current.leading=-t},setFont:function(t,e){var r=this.commonObjs.get(t),n=this.current;if(!r)throw new Error("Can't find font for ".concat(t));if(n.fontMatrix=r.fontMatrix?r.fontMatrix:c.FONT_IDENTITY_MATRIX,0!==n.fontMatrix[0]&&0!==n.fontMatrix[3]||(0,c.warn)("Invalid font matrix for font "+t),e<0?(e=-e,n.fontDirection=-1):n.fontDirection=1,this.current.font=r,this.current.fontSize=e,!r.isType3Font){var i=r.loadedName||"sans-serif",o="normal";r.black?o="900":r.bold&&(o="bold");var a=r.italic?"italic":"normal",s='"'.concat(i,'", ').concat(r.fallbackName),u=e;e<16?u=16:e>100&&(u=100),this.current.fontSizeScale=e/u,this.ctx.font="".concat(a," ").concat(o," ").concat(u,"px ").concat(s)}},setTextRenderingMode:function(t){this.current.textRenderingMode=t},setTextRise:function(t){this.current.textRise=t},moveText:function(t,e){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=e},setLeadingMoveText:function(t,e){this.setLeading(-e),this.moveText(t,e)},setTextMatrix:function(t,e,r,n,i,o){this.current.textMatrix=[t,e,r,n,i,o],this.current.textMatrixScale=Math.sqrt(t*t+e*e),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(t,e,r,n){var i,o=this.ctx,a=this.current,s=a.font,u=a.textRenderingMode,l=a.fontSize/a.fontSizeScale,h=u&c.TextRenderingMode.FILL_STROKE_MASK,f=!!(u&c.TextRenderingMode.ADD_TO_PATH_FLAG),d=a.patternFill&&!s.missingFile;if((s.disableFontFace||f||d)&&(i=s.getPathGenerator(this.commonObjs,t)),s.disableFontFace||d?(o.save(),o.translate(e,r),o.beginPath(),i(o,l),n&&o.setTransform.apply(o,n),h!==c.TextRenderingMode.FILL&&h!==c.TextRenderingMode.FILL_STROKE||o.fill(),h!==c.TextRenderingMode.STROKE&&h!==c.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(h!==c.TextRenderingMode.FILL&&h!==c.TextRenderingMode.FILL_STROKE||o.fillText(t,e,r),h!==c.TextRenderingMode.STROKE&&h!==c.TextRenderingMode.FILL_STROKE||o.strokeText(t,e,r)),f){(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:o.mozCurrentTransform,x:e,y:r,fontSize:l,addToPath:i})}},get isFontSubpixelAAEnabled(){var t=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10),e=t.context;e.scale(1.5,1),e.fillText("I",0,10);for(var r=e.getImageData(0,0,10,10).data,n=!1,i=3;i<r.length;i+=4)if(r[i]>0&&r[i]<255){n=!0;break}return(0,c.shadow)(this,"isFontSubpixelAAEnabled",n)},showText:function(t){var e=this.current,r=e.font;if(r.isType3Font)return this.showType3Text(t);var n=e.fontSize;if(0!==n){var i=this.ctx,o=e.fontSizeScale,a=e.charSpacing,s=e.wordSpacing,u=e.fontDirection,l=e.textHScale*u,h=t.length,f=r.vertical,d=f?1:-1,p=r.defaultVMetrics,v=n*e.fontMatrix[0],m=e.textRenderingMode===c.TextRenderingMode.FILL&&!r.disableFontFace&&!e.patternFill;i.save();var g;if(e.patternFill){i.save();var y=e.fillColor.getPattern(i,this);g=i.mozCurrentTransform,i.restore(),i.fillStyle=y}i.transform.apply(i,e.textMatrix),i.translate(e.x,e.y+e.textRise),u>0?i.scale(l,-1):i.scale(l,1);var b=e.lineWidth,_=e.textMatrixScale;if(0===_||0===b){var w=e.textRenderingMode&c.TextRenderingMode.FILL_STROKE_MASK;w!==c.TextRenderingMode.STROKE&&w!==c.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,b=.65*this.getSinglePixelWidth())}else b/=_;1!==o&&(i.scale(o,o),b/=o),i.lineWidth=b;var S,A=0;for(S=0;S<h;++S){var x=t[S];if((0,c.isNum)(x))A+=d*x*n/1e3;else{var T,k,P,C,R=!1,E=(x.isSpace?s:0)+a,O=x.fontChar,L=x.accent,I=x.width;if(f){var M,F,D;M=x.vmetric||p,F=x.vmetric?M[1]:.5*I,F=-F*v,D=M[2]*v,I=M?-M[0]:I,T=F/o,k=(A+D)/o}else T=A/o,k=0;if(r.remeasure&&I>0){var j=1e3*i.measureText(O).width/n*o;if(I<j&&this.isFontSubpixelAAEnabled){var N=I/j;R=!0,i.save(),i.scale(N,1),T/=N}else I!==j&&(T+=(I-j)/2e3*n/o)}(x.isInFont||r.missingFile)&&(m&&!L?i.fillText(O,T,k):(this.paintChar(O,T,k,g),L&&(P=T+L.offset.x/o,C=k-L.offset.y/o,this.paintChar(L.fontChar,P,C,g))));var U;U=f?I*v-E*u:I*v+E*u,A+=U,R&&i.restore()}}f?e.y-=A:e.x+=A*l,i.restore()}},showType3Text:function(t){var e,r,n,i,o=this.ctx,a=this.current,s=a.font,u=a.fontSize,l=a.fontDirection,h=s.vertical?1:-1,f=a.charSpacing,d=a.wordSpacing,p=a.textHScale*l,v=a.fontMatrix||c.FONT_IDENTITY_MATRIX,m=t.length,g=a.textRenderingMode===c.TextRenderingMode.INVISIBLE;if(!g&&0!==u){for(this._cachedGetSinglePixelWidth=null,o.save(),o.transform.apply(o,a.textMatrix),o.translate(a.x,a.y),o.scale(p,l),e=0;e<m;++e)if(r=t[e],(0,c.isNum)(r))i=h*r*u/1e3,this.ctx.translate(i,0),a.x+=i*p;else{var y=(r.isSpace?d:0)+f,b=s.charProcOperatorList[r.operatorListId];if(b){this.processingType3=r,this.save(),o.scale(u,u),o.transform.apply(o,v),this.executeOperatorList(b),this.restore();var _=c.Util.applyTransform([r.width,0],v);n=_[0]*u+y,o.translate(n,0),a.x+=n*p}else(0,c.warn)('Type3 character "'.concat(r.operatorListId,'" is not available.'))}o.restore(),this.processingType3=null}},setCharWidth:function(t,e){},setCharWidthAndBounds:function(t,e,r,n,i,o){this.ctx.rect(r,n,i-r,o-n),this.clip(),this.endPath()},getColorN_Pattern:function(e){var r,n=this;if("TilingPattern"===e[0]){var i=e[1],o=this.baseTransform||this.ctx.mozCurrentTransform.slice(),a={createCanvasGraphics:function(e){return new t(e,n.commonObjs,n.objs,n.canvasFactory,n.webGLContext)}};r=new u.TilingPattern(e,i,this.ctx,a,o)}else r=(0,u.getShadingPatternFromIR)(e);return r},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(t,e,r){var n=c.Util.makeCssRgb(t,e,r);this.ctx.strokeStyle=n,this.current.strokeColor=n},setFillRGBColor:function(t,e,r){var n=c.Util.makeCssRgb(t,e,r);this.ctx.fillStyle=n,this.current.fillColor=n,this.current.patternFill=!1},shadingFill:function(t){var e=this.ctx;this.save();var r=(0,u.getShadingPatternFromIR)(t);e.fillStyle=r.getPattern(e,this,!0);var n=e.mozCurrentTransformInverse;if(n){var i=e.canvas,o=i.width,a=i.height,s=c.Util.applyTransform([0,0],n),l=c.Util.applyTransform([0,a],n),h=c.Util.applyTransform([o,0],n),f=c.Util.applyTransform([o,a],n),d=Math.min(s[0],l[0],h[0],f[0]),p=Math.min(s[1],l[1],h[1],f[1]),v=Math.max(s[0],l[0],h[0],f[0]),m=Math.max(s[1],l[1],h[1],f[1]);this.ctx.fillRect(d,p,v-d,m-p)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,c.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,c.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(t,e){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(t)&&6===t.length&&this.transform.apply(this,t),this.baseTransform=this.ctx.mozCurrentTransform,e){var r=e[2]-e[0],n=e[3]-e[1];this.ctx.rect(e[0],e[1],r,n),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(t){this.save();var e=this.ctx;t.isolated||(0,c.info)("TODO: Support non-isolated groups."),t.knockout&&(0,c.warn)("Knockout groups not supported.");var r=e.mozCurrentTransform;if(t.matrix&&e.transform.apply(e,t.matrix),!t.bbox)throw new Error("Bounding box is required.");var n=c.Util.getAxialAlignedBoundingBox(t.bbox,e.mozCurrentTransform),o=[0,0,e.canvas.width,e.canvas.height];n=c.Util.intersect(n,o)||[0,0,0,0];var a=Math.floor(n[0]),s=Math.floor(n[1]),u=Math.max(Math.ceil(n[2])-a,1),l=Math.max(Math.ceil(n[3])-s,1),h=1,f=1;u>4096&&(h=u/4096,u=4096),l>4096&&(f=l/4096,l=4096);var d="groupAt"+this.groupLevel;t.smask&&(d+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(d,u,l,!0),v=p.context;v.scale(1/h,1/f),v.translate(-a,-s),v.transform.apply(v,r),t.smask?this.smaskStack.push({canvas:p.canvas,context:v,offsetX:a,offsetY:s,scaleX:h,scaleY:f,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(e.setTransform(1,0,0,1,0,0),e.translate(a,s),e.scale(h,f)),i(e,v),this.ctx=v,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(e),this.groupLevel++,this.current.activeSMask=null},endGroup:function(t){this.groupLevel--;var e=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,t.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(e.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(t,e,r){if(this.save(),o(this.ctx),this.current=new f,Array.isArray(t)&&4===t.length){var n=t[2]-t[0],i=t[3]-t[1];this.ctx.rect(t[0],t[1],n,i),this.clip(),this.endPath()}this.transform.apply(this,e),this.transform.apply(this,r)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(t){var e=this.ctx,n=t.width,i=t.height,o=this.current.fillColor,a=this.current.patternFill,c=this.processingType3;if(c&&void 0===c.compiled&&(c.compiled=n<=1e3&&i<=1e3?s({data:t.data,width:n,height:i}):null),c&&c.compiled)return void c.compiled(e);var u=this.cachedCanvases.getCanvas("maskCanvas",n,i),l=u.context;l.save(),r(l,t),l.globalCompositeOperation="source-in",l.fillStyle=a?o.getPattern(l,this):o,l.fillRect(0,0,n,i),l.restore(),this.paintInlineImageXObject(u.canvas)},paintImageMaskXObjectRepeat:function(t,e,n,i){var o=t.width,a=t.height,s=this.current.fillColor,c=this.current.patternFill,u=this.cachedCanvases.getCanvas("maskCanvas",o,a),l=u.context;l.save(),r(l,t),l.globalCompositeOperation="source-in",l.fillStyle=c?s.getPattern(l,this):s,l.fillRect(0,0,o,a),l.restore();for(var h=this.ctx,f=0,d=i.length;f<d;f+=2)h.save(),h.transform(e,0,0,n,i[f],i[f+1]),h.scale(1,-1),h.drawImage(u.canvas,0,0,o,a,0,-1,1,1),h.restore()},paintImageMaskXObjectGroup:function(t){for(var e=this.ctx,n=this.current.fillColor,i=this.current.patternFill,o=0,a=t.length;o<a;o++){var s=t[o],c=s.width,u=s.height,l=this.cachedCanvases.getCanvas("maskCanvas",c,u),h=l.context;h.save(),r(h,s),h.globalCompositeOperation="source-in",h.fillStyle=i?n.getPattern(h,this):n,h.fillRect(0,0,c,u),h.restore(),e.save(),e.transform.apply(e,s.transform),e.scale(1,-1),e.drawImage(l.canvas,0,0,c,u,0,-1,1,1),e.restore()}},paintImageXObject:function(t){var e=t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t);if(!e)return void(0,c.warn)("Dependent image isn't ready yet");this.paintInlineImageXObject(e)},paintImageXObjectRepeat:function(t,e,r,n){var i=t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t);if(!i)return void(0,c.warn)("Dependent image isn't ready yet");for(var o=i.width,a=i.height,s=[],u=0,l=n.length;u<l;u+=2)s.push({transform:[e,0,0,r,n[u],n[u+1]],x:0,y:0,w:o,h:a});this.paintInlineImageXObjectGroup(i,s)},paintInlineImageXObject:function(t){var r=t.width,n=t.height,i=this.ctx;this.save(),i.scale(1/r,-1/n);var o,a,s=i.mozCurrentTransformInverse,c=s[0],u=s[1],l=Math.max(Math.sqrt(c*c+u*u),1),h=s[2],f=s[3],d=Math.max(Math.sqrt(h*h+f*f),1);if("function"==typeof HTMLElement&&t instanceof HTMLElement||!t.data)o=t;else{a=this.cachedCanvases.getCanvas("inlineImage",r,n);var p=a.context;e(p,t),o=a.canvas}for(var v=r,m=n,g="prescale1";l>2&&v>1||d>2&&m>1;){var y=v,b=m;l>2&&v>1&&(y=Math.ceil(v/2),l/=v/y),d>2&&m>1&&(b=Math.ceil(m/2),d/=m/b),a=this.cachedCanvases.getCanvas(g,y,b),p=a.context,p.clearRect(0,0,y,b),p.drawImage(o,0,0,v,m,0,0,y,b),o=a.canvas,v=y,m=b,g="prescale1"===g?"prescale2":"prescale1"}if(i.drawImage(o,0,0,v,m,0,-n,r,n),this.imageLayer){var _=this.getCanvasPosition(0,-n);this.imageLayer.appendImage({imgData:t,left:_[0],top:_[1],width:r/s[0],height:n/s[3]})}this.restore()},paintInlineImageXObjectGroup:function(t,r){var n=this.ctx,i=t.width,o=t.height,a=this.cachedCanvases.getCanvas("inlineImage",i,o);e(a.context,t);for(var s=0,c=r.length;s<c;s++){var u=r[s];if(n.save(),n.transform.apply(n,u.transform),n.scale(1,-1),n.drawImage(a.canvas,u.x,u.y,u.w,u.h,0,-1,1,1),this.imageLayer){var l=this.getCanvasPosition(u.x,u.y);this.imageLayer.appendImage({imgData:t,left:l[0],top:l[1],width:i,height:o})}n.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,c.warn)("Unsupported 'paintXObject' command.")},markPoint:function(t){},markPointProps:function(t,e){},beginMarkedContent:function(t){},beginMarkedContentProps:function(t,e){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var t=this.ctx;this.pendingClip&&(this.pendingClip===w?t.clip("evenodd"):t.clip(),this.pendingClip=null),t.beginPath()},getSinglePixelWidth:function(t){if(null===this._cachedGetSinglePixelWidth){var e=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(e[0]*e[0]+e[1]*e[1],e[2]*e[2]+e[3]*e[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(t,e){var r=this.ctx.mozCurrentTransform;return[r[0]*t+r[2]*e+r[4],r[1]*t+r[3]*e+r[5]]}};for(var S in c.OPS)t.prototype[c.OPS[S]]=t.prototype[S];return t}();e.CanvasGraphics=d},function(t,e,r){"use strict";function n(t,e){if(e&&"undefined"!=typeof Path2D){var r=e[2]-e[0],n=e[3]-e[1],i=new Path2D;i.rect(e[0],e[1],r,n),t.clip(i)}}function i(t){var e=a[t[0]];if(!e)throw new Error("Unknown IR type: ".concat(t[0]));return e.fromIR(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.getShadingPatternFromIR=i,e.TilingPattern=void 0;var o=r(5),a={};a.RadialAxial={fromIR:function(t){var e=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],c=t[7];return{type:"Pattern",getPattern:function(t){n(t,r);var u;"axial"===e?u=t.createLinearGradient(o[0],o[1],a[0],a[1]):"radial"===e&&(u=t.createRadialGradient(o[0],o[1],s,a[0],a[1],c));for(var l=0,h=i.length;l<h;++l){var f=i[l];u.addColorStop(f[0],f[1])}return u}}}};var s=function(){function t(t,e,r,n,i,o,a,s){var c,u=e.coords,l=e.colors,h=t.data,f=4*t.width;u[r+1]>u[n+1]&&(c=r,r=n,n=c,c=o,o=a,a=c),u[n+1]>u[i+1]&&(c=n,n=i,i=c,c=a,a=s,s=c),u[r+1]>u[n+1]&&(c=r,r=n,n=c,c=o,o=a,a=c);var d=(u[r]+e.offsetX)*e.scaleX,p=(u[r+1]+e.offsetY)*e.scaleY,v=(u[n]+e.offsetX)*e.scaleX,m=(u[n+1]+e.offsetY)*e.scaleY,g=(u[i]+e.offsetX)*e.scaleX,y=(u[i+1]+e.offsetY)*e.scaleY;if(!(p>=y))for(var b,_,w,S,A,x,T,k,P=l[o],C=l[o+1],R=l[o+2],E=l[a],O=l[a+1],L=l[a+2],I=l[s],M=l[s+1],F=l[s+2],D=Math.round(p),j=Math.round(y),N=D;N<=j;N++){if(N<m){var U=void 0;U=N<p?0:p===m?1:(p-N)/(p-m),b=d-(d-v)*U,_=P-(P-E)*U,w=C-(C-O)*U,S=R-(R-L)*U}else{var B=void 0;B=N>y?1:m===y?0:(m-N)/(m-y),b=v-(v-g)*B,_=E-(E-I)*B,w=O-(O-M)*B,S=L-(L-F)*B}var W=void 0;W=N<p?0:N>y?1:(p-N)/(p-y),A=d-(d-g)*W,x=P-(P-I)*W,T=C-(C-M)*W,k=R-(R-F)*W;for(var q=Math.round(Math.min(b,A)),Y=Math.round(Math.max(b,A)),z=f*N+4*q,X=q;X<=Y;X++)W=(b-X)/(b-A),W<0?W=0:W>1&&(W=1),h[z++]=_-(_-x)*W|0,h[z++]=w-(w-T)*W|0,h[z++]=S-(S-k)*W|0,h[z++]=255}}function e(e,r,n){var i,o,a=r.coords,s=r.colors;switch(r.type){case"lattice":var c=r.verticesPerRow,u=Math.floor(a.length/c)-1,l=c-1;for(i=0;i<u;i++)for(var h=i*c,f=0;f<l;f++,h++)t(e,n,a[h],a[h+1],a[h+c],s[h],s[h+1],s[h+c]),t(e,n,a[h+c+1],a[h+1],a[h+c],s[h+c+1],s[h+1],s[h+c]);break;case"triangles":for(i=0,o=a.length;i<o;i+=3)t(e,n,a[i],a[i+1],a[i+2],s[i],s[i+1],s[i+2]);break;default:throw new Error("illegal figure")}}function r(t,r,n,i,o,a,s,c){var u,l,h,f,d=Math.floor(t[0]),p=Math.floor(t[1]),v=Math.ceil(t[2])-d,m=Math.ceil(t[3])-p,g=Math.min(Math.ceil(Math.abs(v*r[0]*1.1)),3e3),y=Math.min(Math.ceil(Math.abs(m*r[1]*1.1)),3e3),b=v/g,_=m/y,w={coords:n,colors:i,offsetX:-d,offsetY:-p,scaleX:1/b,scaleY:1/_},S=g+4,A=y+4;if(c.isEnabled)u=c.drawFigures({width:g,height:y,backgroundColor:a,figures:o,context:w}),l=s.getCanvas("mesh",S,A,!1),l.context.drawImage(u,2,2),u=l.canvas;else{l=s.getCanvas("mesh",S,A,!1);var x=l.context,T=x.createImageData(g,y);if(a){var k=T.data;for(h=0,f=k.length;h<f;h+=4)k[h]=a[0],k[h+1]=a[1],k[h+2]=a[2],k[h+3]=255}for(h=0;h<o.length;h++)e(T,o[h],w);x.putImageData(T,2,2),u=l.canvas}return{canvas:u,offsetX:d-2*b,offsetY:p-2*_,scaleX:b,scaleY:_}}return r}();a.Mesh={fromIR:function(t){var e=t[2],r=t[3],i=t[4],a=t[5],c=t[6],u=t[7],l=t[8];return{type:"Pattern",getPattern:function(t,h,f){n(t,u);var d;if(f)d=o.Util.singularValueDecompose2dScale(t.mozCurrentTransform);else if(d=o.Util.singularValueDecompose2dScale(h.baseTransform),c){var p=o.Util.singularValueDecompose2dScale(c);d=[d[0]*p[0],d[1]*p[1]]}var v=s(a,d,e,r,i,f?null:l,h.cachedCanvases,h.webGLContext);return f||(t.setTransform.apply(t,h.baseTransform),c&&t.transform.apply(t,c)),t.translate(v.offsetX,v.offsetY),t.scale(v.scaleX,v.scaleY),t.createPattern(v.canvas,"no-repeat")}}}},a.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var c=function(){function t(t,e,r,n,i){this.operatorList=t[2],this.matrix=t[3]||[1,0,0,1,0,0],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=e,this.canvasGraphicsFactory=n,this.baseTransform=i,this.type="Pattern",this.ctx=r}var e={COLORED:1,UNCOLORED:2};return t.prototype={createPatternCanvas:function(t){var e=this.operatorList,r=this.bbox,n=this.xstep,i=this.ystep,a=this.paintType,s=this.tilingType,c=this.color,u=this.canvasGraphicsFactory;(0,o.info)("TilingType: "+s);var l=r[0],h=r[1],f=r[2],d=r[3],p=o.Util.singularValueDecompose2dScale(this.matrix),v=o.Util.singularValueDecompose2dScale(this.baseTransform),m=[p[0]*v[0],p[1]*v[1]],g=this.getSizeAndScale(n,this.ctx.canvas.width,m[0]),y=this.getSizeAndScale(i,this.ctx.canvas.height,m[1]),b=t.cachedCanvases.getCanvas("pattern",g.size,y.size,!0),_=b.context,w=u.createCanvasGraphics(_);return w.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(w,a,c),w.transform(g.scale,0,0,y.scale,0,0),w.transform(1,0,0,1,-l,-h),this.clipBbox(w,r,l,h,f,d),w.executeOperatorList(e),this.ctx.transform(1,0,0,1,l,h),this.ctx.scale(1/g.scale,1/y.scale),b.canvas},getSizeAndScale:function(t,e,r){t=Math.abs(t);var n=Math.max(3e3,e),i=Math.ceil(t*r);return i>=n?i=n:r=i/t,{scale:r,size:i}},clipBbox:function(t,e,r,n,i,o){if(Array.isArray(e)&&4===e.length){var a=i-r,s=o-n;t.ctx.rect(r,n,a,s),t.clip(),t.endPath()}},setFillAndStrokeStyleToContext:function(t,r,n){var i=t.ctx,a=t.current;switch(r){case e.COLORED:var s=this.ctx;i.fillStyle=s.fillStyle,i.strokeStyle=s.strokeStyle,a.fillColor=s.fillStyle,a.strokeColor=s.strokeStyle;break;case e.UNCOLORED:var c=o.Util.makeCssRgb(n[0],n[1],n[2]);i.fillStyle=c,i.strokeStyle=c,a.fillColor=c,a.strokeColor=c;break;default:throw new o.FormatError("Unsupported paint type: ".concat(r))}},getPattern:function(t,e){t=this.ctx,t.setTransform.apply(t,this.baseTransform),t.transform.apply(t,this.matrix);var r=this.createPatternCanvas(e);return t.createPattern(r,"repeat")}},t}();e.TilingPattern=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalWorkerOptions=void 0;var n=Object.create(null);e.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise(function(i,o){function a(t){n(c,i,o,a,s,"next",t)}function s(t){n(c,i,o,a,s,"throw",t)}var c=t.apply(e,r);a(void 0)})}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),t}function c(t){"@babel/helpers - typeof";return(c="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})(t)}function u(t){if("object"!==c(t)||null===t)return t;switch(t.name){case"AbortException":return new h.AbortException(t.message);case"MissingPDFException":return new h.MissingPDFException(t.message);case"UnexpectedResponseException":return new h.UnexpectedResponseException(t.message,t.status);case"UnknownErrorException":return new h.UnknownErrorException(t.message,t.details);default:return new h.UnknownErrorException(t.message,t.toString())}}Object.defineProperty(e,"__esModule",{value:!0}),e.MessageHandler=void 0;var l=function(t){return t&&t.__esModule?t:{default:t}}(r(2)),h=r(5),f={UNKNOWN:0,DATA:1,ERROR:2},d={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8},p=function(){function t(e,r,n){var i=this;o(this,t),this.sourceName=e,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(t){var e=t.data;if(e.targetName===i.sourceName){if(e.stream)return void i._processStreamMessage(e);if(e.callback){var r=e.callbackId,o=i.callbackCapabilities[r];if(!o)throw new Error("Cannot resolve callback ".concat(r));if(delete i.callbackCapabilities[r],e.callback===f.DATA)o.resolve(e.data);else{if(e.callback!==f.ERROR)throw new Error("Unexpected callback case");o.reject(u(e.reason))}}else{var a=i.actionHandler[e.action];if(!a)throw new Error("Unknown action from worker: ".concat(e.action));if(e.callbackId){var s=i.sourceName,c=e.sourceName;return void new Promise(function(t){t(a(e.data))}).then(function(t){n.postMessage({sourceName:s,targetName:c,callback:f.DATA,callbackId:e.callbackId,data:t})},function(t){n.postMessage({sourceName:s,targetName:c,callback:f.ERROR,callbackId:e.callbackId,reason:u(t)})})}if(e.streamId)return void i._createStreamSink(e);a(e.data)}}},n.addEventListener("message",this._onComObjOnMessage)}return s(t,[{key:"on",value:function(t,e){var r=this.actionHandler;if(r[t])throw new Error('There is already an actionName called "'.concat(t,'"'));r[t]=e}},{key:"send",value:function(t,e,r){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:e},r)}},{key:"sendWithPromise",value:function(t,e,r){var n=this.callbackId++,i=(0,h.createPromiseCapability)();this.callbackCapabilities[n]=i;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:n,data:e},r)}catch(t){i.reject(t)}return i.promise}},{key:"sendWithStream",value:function(t,e,r,n){var i=this,o=this.streamId++,a=this.sourceName,s=this.targetName,c=this.comObj;return new ReadableStream({start:function(r){var c=(0,h.createPromiseCapability)();return i.streamControllers[o]={controller:r,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},i._postMessage({sourceName:a,targetName:s,action:t,streamId:o,data:e,desiredSize:r.desiredSize},n),c.promise},pull:function(t){var e=(0,h.createPromiseCapability)();return i.streamControllers[o].pullCall=e,c.postMessage({sourceName:a,targetName:s,stream:d.PULL,streamId:o,desiredSize:t.desiredSize}),e.promise},cancel:function(t){(0,h.assert)(t instanceof Error,"cancel must have a valid reason");var e=(0,h.createPromiseCapability)();return i.streamControllers[o].cancelCall=e,i.streamControllers[o].isClosed=!0,c.postMessage({sourceName:a,targetName:s,stream:d.CANCEL,streamId:o,reason:u(t)}),e.promise}},r)}},{key:"_createStreamSink",value:function(t){var e=this,r=this.actionHandler[t.action],n=t.streamId,i=this.sourceName,o=t.sourceName,a=this.comObj,s={enqueue:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var s=this.desiredSize;this.desiredSize-=r,s>0&&this.desiredSize<=0&&(this.sinkCapability=(0,h.createPromiseCapability)(),this.ready=this.sinkCapability.promise),e._postMessage({sourceName:i,targetName:o,stream:d.ENQUEUE,streamId:n,chunk:t},a)}},close:function(){this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:i,targetName:o,stream:d.CLOSE,streamId:n}),delete e.streamSinks[n])},error:function(t){(0,h.assert)(t instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:i,targetName:o,stream:d.ERROR,streamId:n,reason:u(t)}))},sinkCapability:(0,h.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};s.sinkCapability.resolve(),s.ready=s.sinkCapability.promise,this.streamSinks[n]=s,new Promise(function(e){e(r(t.data,s))}).then(function(){a.postMessage({sourceName:i,targetName:o,stream:d.START_COMPLETE,streamId:n,success:!0})},function(t){a.postMessage({sourceName:i,targetName:o,stream:d.START_COMPLETE,streamId:n,reason:u(t)})})}},{key:"_processStreamMessage",value:function(t){var e=t.streamId,r=this.sourceName,n=t.sourceName,i=this.comObj;switch(t.stream){case d.START_COMPLETE:t.success?this.streamControllers[e].startCall.resolve():this.streamControllers[e].startCall.reject(u(t.reason));break;case d.PULL_COMPLETE:t.success?this.streamControllers[e].pullCall.resolve():this.streamControllers[e].pullCall.reject(u(t.reason));break;case d.PULL:if(!this.streamSinks[e]){i.postMessage({sourceName:r,targetName:n,stream:d.PULL_COMPLETE,streamId:e,success:!0});break}this.streamSinks[e].desiredSize<=0&&t.desiredSize>0&&this.streamSinks[e].sinkCapability.resolve(),this.streamSinks[e].desiredSize=t.desiredSize;var o=this.streamSinks[t.streamId].onPull;new Promise(function(t){t(o&&o())}).then(function(){i.postMessage({sourceName:r,targetName:n,stream:d.PULL_COMPLETE,streamId:e,success:!0})},function(t){i.postMessage({sourceName:r,targetName:n,stream:d.PULL_COMPLETE,streamId:e,reason:u(t)})});break;case d.ENQUEUE:if((0,h.assert)(this.streamControllers[e],"enqueue should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].controller.enqueue(t.chunk);break;case d.CLOSE:if((0,h.assert)(this.streamControllers[e],"close should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].isClosed=!0,this.streamControllers[e].controller.close(),this._deleteStreamController(e);break;case d.ERROR:(0,h.assert)(this.streamControllers[e],"error should have stream controller"),this.streamControllers[e].controller.error(u(t.reason)),this._deleteStreamController(e);break;case d.CANCEL_COMPLETE:t.success?this.streamControllers[e].cancelCall.resolve():this.streamControllers[e].cancelCall.reject(u(t.reason)),this._deleteStreamController(e);break;case d.CANCEL:if(!this.streamSinks[e])break;var a=this.streamSinks[t.streamId].onCancel;new Promise(function(e){e(a&&a(u(t.reason)))}).then(function(){i.postMessage({sourceName:r,targetName:n,stream:d.CANCEL_COMPLETE,streamId:e,success:!0})},function(t){i.postMessage({sourceName:r,targetName:n,stream:d.CANCEL_COMPLETE,streamId:e,reason:u(t)})}),this.streamSinks[e].sinkCapability.reject(u(t.reason)),this.streamSinks[e].isCancelled=!0,delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){function t(t){return e.apply(this,arguments)}var e=i(l.default.mark(function t(e){return l.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.allSettled([this.streamControllers[e].startCall,this.streamControllers[e].pullCall,this.streamControllers[e].cancelCall].map(function(t){return t&&t.promise}));case 2:delete this.streamControllers[e];case 3:case"end":return t.stop()}},t,this)}));return t}()},{key:"_postMessage",value:function(t,e){e&&this.postMessageTransfers?this.comObj.postMessage(t,e):this.comObj.postMessage(t)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),t}();e.MessageHandler=p},function(t,e,r){"use strict";function n(t,e){return a(t)||o(t,e)||c(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function a(t){if(Array.isArray(t))return t}function s(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=c(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function c(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e,r){return e&&h(t.prototype,e),r&&h(t,r),t}Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=void 0;var d=r(5),p=r(206),v=function(){function t(e){l(this,t),(0,d.assert)("string"==typeof e,"Metadata: input is not a string"),e=this._repair(e);var r=new p.SimpleXMLParser,n=r.parseFromString(e);this._metadataMap=new Map,n&&this._parse(n)}return f(t,[{key:"_repair",value:function(t){return t.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(t,e){for(var r=e.replace(/\\([0-3])([0-7])([0-7])/g,function(t,e,r,n){return String.fromCharCode(64*e+8*r+1*n)}).replace(/&(amp|apos|gt|lt|quot);/g,function(t,e){switch(e){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(e," isn't defined."))}),n="",i=0,o=r.length;i<o;i+=2){var a=256*r.charCodeAt(i)+r.charCodeAt(i+1);n+=a>=32&&a<127&&60!==a&&62!==a&&38!==a?String.fromCharCode(a):"&#x"+(65536+a).toString(16).substring(1)+";"}return">"+n})}},{key:"_parse",value:function(t){var e=t.documentElement;if("rdf:rdf"!==e.nodeName.toLowerCase())for(e=e.firstChild;e&&"rdf:rdf"!==e.nodeName.toLowerCase();)e=e.nextSibling;var r=e?e.nodeName.toLowerCase():null;if(e&&"rdf:rdf"===r&&e.hasChildNodes())for(var n=e.childNodes,i=0,o=n.length;i<o;i++){var a=n[i];if("rdf:description"===a.nodeName.toLowerCase())for(var s=0,c=a.childNodes.length;s<c;s++)if("#text"!==a.childNodes[s].nodeName.toLowerCase()){var u=a.childNodes[s],l=u.nodeName.toLowerCase();this._metadataMap.set(l,u.textContent.trim())}}}},{key:"get",value:function(t){return this._metadataMap.has(t)?this._metadataMap.get(t):null}},{key:"getAll",value:function(){var t,e=Object.create(null),r=s(this._metadataMap);try{for(r.s();!(t=r.n()).done;){var i=n(t.value,2),o=i[0],a=i[1];e[o]=a}}catch(t){r.e(t)}finally{r.f()}return e}},{key:"has",value:function(t){return this._metadataMap.has(t)}}]),t}();e.Metadata=v},function(t,e,r){"use strict";function n(t){"@babel/helpers - typeof";return(n="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})(t)}function i(t,e){return u(t)||c(t,e)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function u(t){if(Array.isArray(t))return t}function l(t,e,r){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=h(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(r):i.value}})(t,e,r||t)}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=g();return function(){var r,n=y(t);if(e){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}function v(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?m(t):e}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function w(t,e,r){return e&&_(t.prototype,e),r&&_(t,r),t}function S(t,e){var r=t[e];return" "===r||"\n"===r||"\r"===r||"\t"===r}function A(t){for(var e=0,r=t.length;e<r;e++)if(!S(t,e))return!1;return!0}Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleXMLParser=void 0;var x={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10},T=function(){function t(){b(this,t)}return w(t,[{key:"_resolveEntities",value:function(t){var e=this;return t.replace(/&([^;]+);/g,function(t,r){if("#x"===r.substring(0,2))return String.fromCharCode(parseInt(r.substring(2),16));if("#"===r.substring(0,1))return String.fromCharCode(parseInt(r.substring(1),10));switch(r){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return e.onResolveEntity(r)})}},{key:"_parseContent",value:function(t,e){function r(){for(;i<t.length&&S(t,i);)++i}for(var n=[],i=e;i<t.length&&!S(t,i)&&">"!==t[i]&&"/"!==t[i];)++i;var o=t.substring(e,i);for(r();i<t.length&&">"!==t[i]&&"/"!==t[i]&&"?"!==t[i];){r();for(var a="",s="";i<t.length&&!S(t,i)&&"="!==t[i];)a+=t[i],++i;if(r(),"="!==t[i])return null;++i,r();var c=t[i];if('"'!==c&&"'"!==c)return null;var u=t.indexOf(c,++i);if(u<0)return null;s=t.substring(i,u),n.push({name:a,value:this._resolveEntities(s)}),i=u+1,r()}return{name:o,attributes:n,parsed:i-e}}},{key:"_parseProcessingInstruction",value:function(t,e){for(var r=e;r<t.length&&!S(t,r)&&">"!==t[r]&&"/"!==t[r];)++r;var n=t.substring(e,r);!function(){for(;r<t.length&&S(t,r);)++r}();for(var i=r;r<t.length&&("?"!==t[r]||">"!==t[r+1]);)++r;return{name:n,value:t.substring(i,r),parsed:r-e}}},{key:"parseXml",value:function(t){for(var e=0;e<t.length;){var r=t[e],n=e;if("<"===r){++n;var i=t[n],o=void 0;switch(i){case"/":if(++n,(o=t.indexOf(">",n))<0)return void this.onError(x.UnterminatedElement);this.onEndElement(t.substring(n,o)),n=o+1;break;case"?":++n;var a=this._parseProcessingInstruction(t,n);if("?>"!==t.substring(n+a.parsed,n+a.parsed+2))return void this.onError(x.UnterminatedXmlDeclaration);this.onPi(a.name,a.value),n+=a.parsed+2;break;case"!":if("--"===t.substring(n+1,n+3)){if((o=t.indexOf("--\x3e",n+3))<0)return void this.onError(x.UnterminatedComment);this.onComment(t.substring(n+3,o)),n=o+3}else if("[CDATA["===t.substring(n+1,n+8)){if((o=t.indexOf("]]>",n+8))<0)return void this.onError(x.UnterminatedCdat);this.onCdata(t.substring(n+8,o)),n=o+3}else{if("DOCTYPE"!==t.substring(n+1,n+8))return void this.onError(x.MalformedElement);var s=t.indexOf("[",n+8),c=!1;if((o=t.indexOf(">",n+8))<0)return void this.onError(x.UnterminatedDoctypeDeclaration);if(s>0&&o>s){if((o=t.indexOf("]>",n+8))<0)return void this.onError(x.UnterminatedDoctypeDeclaration);c=!0}var u=t.substring(n+8,o+(c?1:0));this.onDoctype(u),n=o+(c?2:1)}break;default:var l=this._parseContent(t,n);if(null===l)return void this.onError(x.MalformedElement);var h=!1;if("/>"===t.substring(n+l.parsed,n+l.parsed+2))h=!0;else if(">"!==t.substring(n+l.parsed,n+l.parsed+1))return void this.onError(x.UnterminatedElement);this.onBeginElement(l.name,l.attributes,h),n+=l.parsed+(h?2:1)}}else{for(;n<t.length&&"<"!==t[n];)n++;var f=t.substring(e,n);this.onText(this._resolveEntities(f))}e=n}}},{key:"onResolveEntity",value:function(t){return"&".concat(t,";")}},{key:"onPi",value:function(t,e){}},{key:"onComment",value:function(t){}},{key:"onCdata",value:function(t){}},{key:"onDoctype",value:function(t){}},{key:"onText",value:function(t){}},{key:"onBeginElement",value:function(t,e,r){}},{key:"onEndElement",value:function(t){}},{key:"onError",value:function(t){}}]),t}(),k=function(){function t(e,r){b(this,t),this.nodeName=e,this.nodeValue=r,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return w(t,[{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var t=this.parentNode.childNodes;if(t){var e=t.indexOf(this);if(-1!==e)return t[e+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map(function(t){return t.textContent}).join(""):this.nodeValue||""}}]),t}(),P=function(t){function e(){var t;return b(this,e),t=r.call(this),t._currentFragment=null,t._stack=null,t._errorCode=x.NoError,t}f(e,t);var r=p(e);return w(e,[{key:"parseFromString",value:function(t){if(this._currentFragment=[],this._stack=[],this._errorCode=x.NoError,this.parseXml(t),this._errorCode===x.NoError){var e=i(this._currentFragment,1),r=e[0];if(r)return{documentElement:r}}}},{key:"onResolveEntity",value:function(t){switch(t){case"apos":return"'"}return l(y(e.prototype),"onResolveEntity",this).call(this,t)}},{key:"onText",value:function(t){if(!A(t)){var e=new k("#text",t);this._currentFragment.push(e)}}},{key:"onCdata",value:function(t){var e=new k("#text",t);this._currentFragment.push(e)}},{key:"onBeginElement",value:function(t,e,r){var n=new k(t);n.childNodes=[],this._currentFragment.push(n),r||(this._stack.push(this._currentFragment),this._currentFragment=n.childNodes)}},{key:"onEndElement",value:function(t){this._currentFragment=this._stack.pop()||[];var e=this._currentFragment[this._currentFragment.length-1];if(e)for(var r=0,n=e.childNodes.length;r<n;r++)e.childNodes[r].parentNode=e}},{key:"onError",value:function(t){this._errorCode=t}}]),e}(T);e.SimpleXMLParser=P},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise(function(i,o){function a(t){n(c,i,o,a,s,"next",t)}function s(t){n(c,i,o,a,s,"throw",t)}var c=t.apply(e,r);a(void 0)})}}function o(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=a(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){c=!0,o=t},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw o}}}}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),t}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFDataTransportStream=void 0;var h=function(t){return t&&t.__esModule?t:{default:t}}(r(2)),f=r(5),d=function(){function t(e,r){var n=this;c(this,t),(0,f.assert)(r,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=e.progressiveDone||!1;var i=e.initialData;if(i&&i.length>0){var o=new Uint8Array(i).buffer;this._queuedChunks.push(o)}this._pdfDataRangeTransport=r,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(function(t,e){n._onReceiveData({begin:t,chunk:e})}),this._pdfDataRangeTransport.addProgressListener(function(t,e){n._onProgress({loaded:t,total:e})}),this._pdfDataRangeTransport.addProgressiveReadListener(function(t){n._onReceiveData({chunk:t})}),this._pdfDataRangeTransport.addProgressiveDoneListener(function(){n._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}return l(t,[{key:"_onReceiveData",value:function(t){var e=new Uint8Array(t.chunk).buffer;if(void 0===t.begin)this._fullRequestReader?this._fullRequestReader._enqueue(e):this._queuedChunks.push(e);else{var r=this._rangeReaders.some(function(r){return r._begin===t.begin&&(r._enqueue(e),!0)});(0,f.assert)(r,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_onProgress",value:function(t){if(void 0===t.total){var e=this._rangeReaders[0];e&&e.onProgress&&e.onProgress({loaded:t.loaded})}else{var r=this._fullRequestReader;r&&r.onProgress&&r.onProgress({loaded:t.loaded,total:t.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(t){var e=this._rangeReaders.indexOf(t);e>=0&&this._rangeReaders.splice(e,1)}},{key:"getFullReader",value:function(){(0,f.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var t=this._queuedChunks;return this._queuedChunks=null,new p(this,t,this._progressiveDone)}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var r=new v(this,t,e);return this._pdfDataRangeTransport.requestDataRange(t,e),this._rangeReaders.push(r),r}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeReaders.slice(0).forEach(function(e){e.cancel(t)}),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFDataTransportStream=d;var p=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];c(this,t),this._stream=e,this._done=n||!1,this._filename=null,this._queuedChunks=r||[],this._loaded=0;var i,a=o(this._queuedChunks);try{for(a.s();!(i=a.n()).done;){var s=i.value;this._loaded+=s.byteLength}}catch(t){a.e(t)}finally{a.f()}this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}return l(t,[{key:"_enqueue",value:function(t){if(!this._done){if(this._requests.length>0){this._requests.shift().resolve({value:t,done:!1})}else this._queuedChunks.push(t);this._loaded+=t.byteLength}}},{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(h.default.mark(function t(){var e,r;return h.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this._queuedChunks.length>0)){t.next=3;break}return e=this._queuedChunks.shift(),t.abrupt("return",{value:e,done:!1});case 3:if(!this._done){t.next=5;break}return t.abrupt("return",{value:void 0,done:!0});case 5:return r=(0,f.createPromiseCapability)(),this._requests.push(r),t.abrupt("return",r.promise);case 8:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]),t}(),v=function(){function t(e,r,n){c(this,t),this._stream=e,this._begin=r,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return l(t,[{key:"_enqueue",value:function(t){if(!this._done){if(0===this._requests.length)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1}),this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[]}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(h.default.mark(function t(){var e,r;return h.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._queuedChunk){t.next=4;break}return e=this._queuedChunk,this._queuedChunk=null,t.abrupt("return",{value:e,done:!1});case 4:if(!this._done){t.next=6;break}return t.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,f.createPromiseCapability)(),this._requests.push(r),t.abrupt("return",r.promise);case 9:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),t}()},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),t}Object.defineProperty(e,"__esModule",{value:!0}),e.WebGLContext=void 0;var a=r(5),s=function(){function t(e){var r=e.enable,i=void 0!==r&&r;n(this,t),this._enabled=!0===i}return o(t,[{key:"composeSMask",value:function(t){var e=t.layer,r=t.mask,n=t.properties;return c.composeSMask(e,r,n)}},{key:"drawFigures",value:function(t){var e=t.width,r=t.height,n=t.backgroundColor,i=t.figures,o=t.context;return c.drawFigures(e,r,n,i,o)}},{key:"clear",value:function(){c.cleanup()}},{key:"isEnabled",get:function(){var t=this._enabled;return t&&(t=c.tryInitGL()),(0,a.shadow)(this,"isEnabled",t)}}]),t}();e.WebGLContext=s;var c=function(){function t(t,e,r){var n=t.createShader(r);if(t.shaderSource(n,e),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS)){var i=t.getShaderInfoLog(n);throw new Error("Error during shader compilation: "+i)}return n}function e(e,r){return t(e,r,e.VERTEX_SHADER)}function r(e,r){return t(e,r,e.FRAGMENT_SHADER)}function n(t,e){for(var r=t.createProgram(),n=0,i=e.length;n<i;++n)t.attachShader(r,e[n]);if(t.linkProgram(r),!t.getProgramParameter(r,t.LINK_STATUS)){var o=t.getProgramInfoLog(r);throw new Error("Error during program linking: "+o)}return r}function i(t,e,r){t.activeTexture(r);var n=t.createTexture();return t.bindTexture(t.TEXTURE_2D,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),n}function o(){l||(h=document.createElement("canvas"),l=h.getContext("webgl",{premultipliedalpha:!1}))}function a(){var t,i;o(),t=h,h=null,i=l,l=null;var a=e(i,f),s=r(i,d),c=n(i,[a,s]);i.useProgram(c);var u={};u.gl=i,u.canvas=t,u.resolutionLocation=i.getUniformLocation(c,"u_resolution"),u.positionLocation=i.getAttribLocation(c,"a_position"),u.backdropLocation=i.getUniformLocation(c,"u_backdrop"),u.subtypeLocation=i.getUniformLocation(c,"u_subtype");var v=i.getAttribLocation(c,"a_texCoord"),m=i.getUniformLocation(c,"u_image"),g=i.getUniformLocation(c,"u_mask"),y=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,y),i.bufferData(i.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),i.STATIC_DRAW),i.enableVertexAttribArray(v),i.vertexAttribPointer(v,2,i.FLOAT,!1,0,0),i.uniform1i(m,0),i.uniform1i(g,1),p=u}function s(t,e,r){var n=t.width,o=t.height;p||a();var s=p,c=s.canvas,u=s.gl;c.width=n,c.height=o,u.viewport(0,0,u.drawingBufferWidth,u.drawingBufferHeight),u.uniform2f(s.resolutionLocation,n,o),r.backdrop?u.uniform4f(s.resolutionLocation,r.backdrop[0],r.backdrop[1],r.backdrop[2],1):u.uniform4f(s.resolutionLocation,0,0,0,0),u.uniform1i(s.subtypeLocation,"Luminosity"===r.subtype?1:0);var l=i(u,t,u.TEXTURE0),h=i(u,e,u.TEXTURE1),f=u.createBuffer();return u.bindBuffer(u.ARRAY_BUFFER,f),u.bufferData(u.ARRAY_BUFFER,new Float32Array([0,0,n,0,0,o,0,o,n,0,n,o]),u.STATIC_DRAW),u.enableVertexAttribArray(s.positionLocation),u.vertexAttribPointer(s.positionLocation,2,u.FLOAT,!1,0,0),u.clearColor(0,0,0,0),u.enable(u.BLEND),u.blendFunc(u.ONE,u.ONE_MINUS_SRC_ALPHA),u.clear(u.COLOR_BUFFER_BIT),u.drawArrays(u.TRIANGLES,0,6),u.flush(),u.deleteTexture(l),u.deleteTexture(h),u.deleteBuffer(f),c}function c(){var t,i;o(),t=h,h=null,i=l,l=null;var a=e(i,v),s=r(i,m),c=n(i,[a,s]);i.useProgram(c);var u={};u.gl=i,u.canvas=t,u.resolutionLocation=i.getUniformLocation(c,"u_resolution"),u.scaleLocation=i.getUniformLocation(c,"u_scale"),u.offsetLocation=i.getUniformLocation(c,"u_offset"),u.positionLocation=i.getAttribLocation(c,"a_position"),u.colorLocation=i.getAttribLocation(c,"a_color"),g=u}function u(t,e,r,n,i){g||c();var o=g,a=o.canvas,s=o.gl;a.width=t,a.height=e,s.viewport(0,0,s.drawingBufferWidth,s.drawingBufferHeight),s.uniform2f(o.resolutionLocation,t,e);var u,l,h,f=0;for(u=0,l=n.length;u<l;u++)switch(n[u].type){case"lattice":h=n[u].coords.length/n[u].verticesPerRow|0,f+=(h-1)*(n[u].verticesPerRow-1)*6;break;case"triangles":f+=n[u].coords.length}var d=new Float32Array(2*f),p=new Uint8Array(3*f),v=i.coords,m=i.colors,y=0,b=0;for(u=0,l=n.length;u<l;u++){var _=n[u],w=_.coords,S=_.colors;switch(_.type){case"lattice":var A=_.verticesPerRow;h=w.length/A|0;for(var x=1;x<h;x++)for(var T=x*A+1,k=1;k<A;k++,T++)d[y]=v[w[T-A-1]],d[y+1]=v[w[T-A-1]+1],d[y+2]=v[w[T-A]],d[y+3]=v[w[T-A]+1],d[y+4]=v[w[T-1]],d[y+5]=v[w[T-1]+1],p[b]=m[S[T-A-1]],p[b+1]=m[S[T-A-1]+1],p[b+2]=m[S[T-A-1]+2],p[b+3]=m[S[T-A]],p[b+4]=m[S[T-A]+1],p[b+5]=m[S[T-A]+2],p[b+6]=m[S[T-1]],p[b+7]=m[S[T-1]+1],p[b+8]=m[S[T-1]+2],d[y+6]=d[y+2],d[y+7]=d[y+3],d[y+8]=d[y+4],d[y+9]=d[y+5],d[y+10]=v[w[T]],d[y+11]=v[w[T]+1],p[b+9]=p[b+3],p[b+10]=p[b+4],p[b+11]=p[b+5],p[b+12]=p[b+6],p[b+13]=p[b+7],p[b+14]=p[b+8],p[b+15]=m[S[T]],p[b+16]=m[S[T]+1],p[b+17]=m[S[T]+2],y+=12,b+=18;break;case"triangles":for(var P=0,C=w.length;P<C;P++)d[y]=v[w[P]],d[y+1]=v[w[P]+1],p[b]=m[S[P]],p[b+1]=m[S[P]+1],p[b+2]=m[S[P]+2],y+=2,b+=3}}r?s.clearColor(r[0]/255,r[1]/255,r[2]/255,1):s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT);var R=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,R),s.bufferData(s.ARRAY_BUFFER,d,s.STATIC_DRAW),s.enableVertexAttribArray(o.positionLocation),s.vertexAttribPointer(o.positionLocation,2,s.FLOAT,!1,0,0);var E=s.createBuffer();return s.bindBuffer(s.ARRAY_BUFFER,E),s.bufferData(s.ARRAY_BUFFER,p,s.STATIC_DRAW),s.enableVertexAttribArray(o.colorLocation),s.vertexAttribPointer(o.colorLocation,3,s.UNSIGNED_BYTE,!1,0,0),s.uniform2f(o.scaleLocation,i.scaleX,i.scaleY),s.uniform2f(o.offsetLocation,i.offsetX,i.offsetY),s.drawArrays(s.TRIANGLES,0,f),s.flush(),s.deleteBuffer(R),s.deleteBuffer(E),a}var l,h,f=" attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } ",d=" precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ",p=null,v=" attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } ",m=" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",g=null;return{tryInitGL:function(){try{return o(),!!l}catch(t){}return!1},composeSMask:s,drawFigures:u,cleanup:function(){p&&p.canvas&&(p.canvas.width=0,p.canvas.height=0),g&&g.canvas&&(g.canvas.width=0,g.canvas.height=0),p=null,g=null}}}()},function(t,e,r){"use strict";function n(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=i(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e,r){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=s(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(r):i.value}})(t,e,r||t)}function s(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}function c(t){"@babel/helpers - typeof";return(c="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})(t)}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=p();return function(){var r,n=v(t);if(e){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return f(this,r)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function y(t,e,r){return e&&g(t.prototype,e),r&&g(t,r),t}Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationLayer=void 0;var b=r(1),_=r(5),w=function(){function t(){m(this,t)}return y(t,null,[{key:"create",value:function(t){switch(t.data.annotationType){case _.AnnotationType.LINK:return new A(t);case _.AnnotationType.TEXT:return new x(t);case _.AnnotationType.WIDGET:switch(t.data.fieldType){case"Tx":return new k(t);case"Btn":return t.data.radioButton?new C(t):t.data.checkBox?new P(t):new R(t);case"Ch":return new E(t)}return new T(t);case _.AnnotationType.POPUP:return new O(t);case _.AnnotationType.FREETEXT:return new I(t);case _.AnnotationType.LINE:return new M(t);case _.AnnotationType.SQUARE:return new F(t);case _.AnnotationType.CIRCLE:return new D(t);case _.AnnotationType.POLYLINE:return new j(t);case _.AnnotationType.CARET:return new U(t);case _.AnnotationType.INK:return new B(t);case _.AnnotationType.POLYGON:return new N(t);case _.AnnotationType.HIGHLIGHT:return new W(t);case _.AnnotationType.UNDERLINE:return new q(t);case _.AnnotationType.SQUIGGLY:return new Y(t);case _.AnnotationType.STRIKEOUT:return new z(t);case _.AnnotationType.STAMP:return new X(t);case _.AnnotationType.FILEATTACHMENT:return new H(t);default:return new S(t)}}}]),t}(),S=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];m(this,t),this.isRenderable=r,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderInteractiveForms=e.renderInteractiveForms,this.svgFactory=e.svgFactory,r&&(this.container=this._createContainer(n))}return y(t,[{key:"_createContainer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.data,r=this.page,n=this.viewport,i=document.createElement("section"),o=e.rect[2]-e.rect[0],a=e.rect[3]-e.rect[1];i.setAttribute("data-annotation-id",e.id);var s=_.Util.normalizeRect([e.rect[0],r.view[3]-e.rect[1]+r.view[1],e.rect[2],r.view[3]-e.rect[3]+r.view[1]]);if(i.style.transform="matrix(".concat(n.transform.join(","),")"),i.style.transformOrigin="-".concat(s[0],"px -").concat(s[1],"px"),!t&&e.borderStyle.width>0){i.style.borderWidth="".concat(e.borderStyle.width,"px"),e.borderStyle.style!==_.AnnotationBorderStyleType.UNDERLINE&&(o-=2*e.borderStyle.width,a-=2*e.borderStyle.width);var c=e.borderStyle.horizontalCornerRadius,u=e.borderStyle.verticalCornerRadius;if(c>0||u>0){var l="".concat(c,"px / ").concat(u,"px");i.style.borderRadius=l}switch(e.borderStyle.style){case _.AnnotationBorderStyleType.SOLID:i.style.borderStyle="solid";break;case _.AnnotationBorderStyleType.DASHED:i.style.borderStyle="dashed";break;case _.AnnotationBorderStyleType.BEVELED:(0,_.warn)("Unimplemented border style: beveled");break;case _.AnnotationBorderStyleType.INSET:(0,_.warn)("Unimplemented border style: inset");break;case _.AnnotationBorderStyleType.UNDERLINE:i.style.borderBottomStyle="solid"}e.color?i.style.borderColor=_.Util.makeCssRgb(0|e.color[0],0|e.color[1],0|e.color[2]):i.style.borderWidth=0}return i.style.left="".concat(s[0],"px"),i.style.top="".concat(s[1],"px"),i.style.width="".concat(o,"px"),i.style.height="".concat(a,"px"),i}},{key:"_createPopup",value:function(t,e,r){e||(e=document.createElement("div"),e.style.height=t.style.height,e.style.width=t.style.width,t.appendChild(e));var n=new L({container:t,trigger:e,color:r.color,title:r.title,modificationDate:r.modificationDate,contents:r.contents,hideWrapper:!0}),i=n.render();i.style.left=t.style.width,t.appendChild(i)}},{key:"render",value:function(){(0,_.unreachable)("Abstract method `AnnotationElement.render` called")}}]),t}(),A=function(t){function e(t){m(this,e);var n=!!(t.data.url||t.data.dest||t.data.action);return r.call(this,t,n)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="linkAnnotation";var t=this.data,e=this.linkService,r=document.createElement("a");return t.url?(0,b.addLinkAttributes)(r,{url:t.url,target:t.newWindow?b.LinkTarget.BLANK:e.externalLinkTarget,rel:e.externalLinkRel,enabled:e.externalLinkEnabled}):t.action?this._bindNamedAction(r,t.action):this._bindLink(r,t.dest),this.container.appendChild(r),this.container}},{key:"_bindLink",value:function(t,e){var r=this;t.href=this.linkService.getDestinationHash(e),t.onclick=function(){return e&&r.linkService.navigateTo(e),!1},e&&(t.className="internalLink")}},{key:"_bindNamedAction",value:function(t,e){var r=this;t.href=this.linkService.getAnchorUrl(""),t.onclick=function(){return r.linkService.executeNamedAction(e),!1},t.className="internalLink"}}]),e}(S),x=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="textAnnotation";var t=document.createElement("img");return t.style.height=this.container.style.height,t.style.width=this.container.style.width,t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.alt="[{{type}} Annotation]",t.dataset.l10nId="text_annotation_type",t.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,t,this.data),this.container.appendChild(t),this.container}}]),e}(S),T=function(t){function e(){return m(this,e),r.apply(this,arguments)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){return this.container}}]),e}(S),k=function(t){function e(t){m(this,e);var n=t.renderInteractiveForms||!t.data.hasAppearance&&!!t.data.fieldValue;return r.call(this,t,n)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){var t=["left","center","right"];this.container.className="textWidgetAnnotation";var e=null;if(this.renderInteractiveForms){if(this.data.multiLine?(e=document.createElement("textarea"),e.textContent=this.data.fieldValue):(e=document.createElement("input"),e.type="text",e.setAttribute("value",this.data.fieldValue)),e.disabled=this.data.readOnly,e.name=this.data.fieldName,null!==this.data.maxLen&&(e.maxLength=this.data.maxLen),this.data.comb){var r=this.data.rect[2]-this.data.rect[0],n=r/this.data.maxLen;e.classList.add("comb"),e.style.letterSpacing="calc(".concat(n,"px - 1ch)")}}else{e=document.createElement("div"),e.textContent=this.data.fieldValue,e.style.verticalAlign="middle",e.style.display="table-cell";var i=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(i=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(e,i)}return null!==this.data.textAlignment&&(e.style.textAlign=t[this.data.textAlignment]),this.container.appendChild(e),this.container}},{key:"_setTextStyle",value:function(t,e){var r=t.style;if(r.fontSize="".concat(this.data.fontSize,"px"),r.direction=this.data.fontDirection<0?"rtl":"ltr",e){var n="normal";e.black?n="900":e.bold&&(n="bold"),r.fontWeight=n,r.fontStyle=e.italic?"italic":"normal";var i=e.loadedName?'"'.concat(e.loadedName,'", '):"",o=e.fallbackName||"Helvetica, sans-serif";r.fontFamily=i+o}}}]),e}(T),P=function(t){function e(t){return m(this,e),r.call(this,t,t.renderInteractiveForms)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var t=document.createElement("input");return t.disabled=this.data.readOnly,t.type="checkbox",t.name=this.data.fieldName,this.data.fieldValue&&"Off"!==this.data.fieldValue&&t.setAttribute("checked",!0),this.container.appendChild(t),this.container}}]),e}(T),C=function(t){function e(t){return m(this,e),r.call(this,t,t.renderInteractiveForms)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var t=document.createElement("input");return t.disabled=this.data.readOnly,t.type="radio",t.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&t.setAttribute("checked",!0),this.container.appendChild(t),this.container}}]),e}(T),R=function(t){function e(){return m(this,e),r.apply(this,arguments)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){var t=a(v(e.prototype),"render",this).call(this);return t.className="buttonWidgetAnnotation pushButton",t}}]),e}(A),E=function(t){function e(t){return m(this,e),r.call(this,t,t.renderInteractiveForms)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var t=document.createElement("select");t.disabled=this.data.readOnly,t.name=this.data.fieldName,this.data.combo||(t.size=this.data.options.length,this.data.multiSelect&&(t.multiple=!0));var e,r=n(this.data.options);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=document.createElement("option");o.textContent=i.displayValue,o.value=i.exportValue,this.data.fieldValue.includes(i.displayValue)&&o.setAttribute("selected",!0),t.appendChild(o)}}catch(t){r.e(t)}finally{r.f()}return this.container.appendChild(t),this.container}}]),e}(T),O=function(t){function e(t){m(this,e);var n=!(!t.data.title&&!t.data.contents);return r.call(this,t,n)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){var t=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",t.includes(this.data.parentType))return this.container;var e='[data-annotation-id="'.concat(this.data.parentId,'"]'),r=this.layer.querySelector(e);if(!r)return this.container;var n=new L({container:this.container,trigger:r,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),i=parseFloat(r.style.left),o=parseFloat(r.style.width);return this.container.style.transformOrigin="-".concat(i+o,"px -").concat(r.style.top),this.container.style.left="".concat(i+o,"px"),this.container.appendChild(n.render()),this.container}}]),e}(S),L=function(){function t(e){m(this,t),this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.title=e.title,this.modificationDate=e.modificationDate,this.contents=e.contents,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}return y(t,[{key:"render",value:function(){var t=document.createElement("div");t.className="popupWrapper",this.hideElement=this.hideWrapper?t:this.container,this.hideElement.setAttribute("hidden",!0);var e=document.createElement("div");e.className="popup";var r=this.color;if(r){var n=.7*(255-r[0])+r[0],i=.7*(255-r[1])+r[1],o=.7*(255-r[2])+r[2];e.style.backgroundColor=_.Util.makeCssRgb(0|n,0|i,0|o)}var a=document.createElement("h1");a.textContent=this.title,e.appendChild(a);var s=b.PDFDateString.toDateObject(this.modificationDate);if(s){var c=document.createElement("span");c.textContent="{{date}}, {{time}}",c.dataset.l10nId="annotation_date_string",c.dataset.l10nArgs=JSON.stringify({date:s.toLocaleDateString(),time:s.toLocaleTimeString()}),e.appendChild(c)}var u=this._formatContents(this.contents);return e.appendChild(u),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),e.addEventListener("click",this._hide.bind(this,!0)),t.appendChild(e),t}},{key:"_formatContents",value:function(t){for(var e=document.createElement("p"),r=t.split(/(?:\r\n?|\n)/),n=0,i=r.length;n<i;++n){var o=r[n];e.appendChild(document.createTextNode(o)),n<i-1&&e.appendChild(document.createElement("br"))}return e}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),t}(),I=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(S),M=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="lineAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],n=this.svgFactory.create(e,r),i=this.svgFactory.createElement("svg:line");return i.setAttribute("x1",t.rect[2]-t.lineCoordinates[0]),i.setAttribute("y1",t.rect[3]-t.lineCoordinates[1]),i.setAttribute("x2",t.rect[2]-t.lineCoordinates[2]),i.setAttribute("y2",t.rect[3]-t.lineCoordinates[3]),i.setAttribute("stroke-width",t.borderStyle.width||1),i.setAttribute("stroke","transparent"),n.appendChild(i),this.container.append(n),this._createPopup(this.container,i,t),this.container}}]),e}(S),F=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="squareAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],n=this.svgFactory.create(e,r),i=t.borderStyle.width,o=this.svgFactory.createElement("svg:rect");return o.setAttribute("x",i/2),o.setAttribute("y",i/2),o.setAttribute("width",e-i),o.setAttribute("height",r-i),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),n.appendChild(o),this.container.append(n),this._createPopup(this.container,o,t),this.container}}]),e}(S),D=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="circleAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],n=this.svgFactory.create(e,r),i=t.borderStyle.width,o=this.svgFactory.createElement("svg:ellipse");return o.setAttribute("cx",e/2),o.setAttribute("cy",r/2),o.setAttribute("rx",e/2-i/2),o.setAttribute("ry",r/2-i/2),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),n.appendChild(o),this.container.append(n),this._createPopup(this.container,o,t),this.container}}]),e}(S),j=function(t){function e(t){var n;m(this,e);var i=!!(t.data.hasPopup||t.data.title||t.data.contents);return n=r.call(this,t,i,!0),n.containerClassName="polylineAnnotation",n.svgElementName="svg:polyline",n}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className=this.containerClassName;var t,e=this.data,r=e.rect[2]-e.rect[0],i=e.rect[3]-e.rect[1],o=this.svgFactory.create(r,i),a=[],s=n(e.vertices);try{for(s.s();!(t=s.n()).done;){var c=t.value,u=c.x-e.rect[0],l=e.rect[3]-c.y;a.push(u+","+l)}}catch(t){s.e(t)}finally{s.f()}a=a.join(" ");var h=this.svgFactory.createElement(this.svgElementName);return h.setAttribute("points",a),h.setAttribute("stroke-width",e.borderStyle.width||1),h.setAttribute("stroke","transparent"),h.setAttribute("fill","none"),o.appendChild(h),this.container.append(o),this._createPopup(this.container,h,e),this.container}}]),e}(S),N=function(t){function e(t){var n;return m(this,e),n=r.call(this,t),n.containerClassName="polygonAnnotation",n.svgElementName="svg:polygon",n}u(e,t);var r=h(e);return e}(j),U=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(S),B=function(t){function e(t){var n;m(this,e);var i=!!(t.data.hasPopup||t.data.title||t.data.contents);return n=r.call(this,t,i,!0),n.containerClassName="inkAnnotation",n.svgElementName="svg:polyline",n}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className=this.containerClassName;var t,e=this.data,r=e.rect[2]-e.rect[0],i=e.rect[3]-e.rect[1],o=this.svgFactory.create(r,i),a=n(e.inkLists);try{for(a.s();!(t=a.n()).done;){var s,c=t.value,u=[],l=n(c);try{for(l.s();!(s=l.n()).done;){var h=s.value,f=h.x-e.rect[0],d=e.rect[3]-h.y;u.push("".concat(f,",").concat(d))}}catch(t){l.e(t)}finally{l.f()}u=u.join(" ");var p=this.svgFactory.createElement(this.svgElementName);p.setAttribute("points",u),p.setAttribute("stroke-width",e.borderStyle.width||1),p.setAttribute("stroke","transparent"),p.setAttribute("fill","none"),this._createPopup(this.container,p,e),o.appendChild(p)}}catch(t){a.e(t)}finally{a.f()}return this.container.append(o),this.container}}]),e}(S),W=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(S),q=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(S),Y=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(S),z=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(S),X=function(t){function e(t){m(this,e);var n=!!(t.data.hasPopup||t.data.title||t.data.contents);return r.call(this,t,n,!0)}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),e}(S),H=function(t){function e(t){var n;m(this,e),n=r.call(this,t,!0);var i=n.data.file,o=i.filename,a=i.content;return n.filename=(0,b.getFilenameFromUrl)(o),n.content=a,n.linkService.eventBus&&n.linkService.eventBus.dispatch("fileattachmentannotation",{source:d(n),id:(0,_.stringToPDFString)(o),filename:o,content:a}),n}u(e,t);var r=h(e);return y(e,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var t=document.createElement("div");return t.style.height=this.container.style.height,t.style.width=this.container.style.width,t.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,t,this.data),this.container.appendChild(t),this.container}},{key:"_download",value:function(){if(!this.downloadManager)return void(0,_.warn)("Download cannot be started due to unavailable download manager");this.downloadManager.downloadData(this.content,this.filename,"")}}]),e}(S),G=function(){function t(){m(this,t)}return y(t,null,[{key:"render",value:function(t){var e,r=[],i=[],o=n(t.annotations);try{for(o.s();!(e=o.n()).done;){var a=e.value;a&&(a.annotationType!==_.AnnotationType.POPUP?r.push(a):i.push(a))}}catch(t){o.e(t)}finally{o.f()}i.length&&r.push.apply(r,i);for(var s=0,c=r;s<c.length;s++){var u=c[s],l=w.create({data:u,layer:t.div,page:t.page,viewport:t.viewport,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderInteractiveForms:t.renderInteractiveForms||!1,svgFactory:new b.DOMSVGFactory});l.isRenderable&&t.div.appendChild(l.render())}}},{key:"update",value:function(t){var e,r=n(t.annotations);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=t.div.querySelector('[data-annotation-id="'.concat(i.id,'"]'));o&&(o.style.transform="matrix(".concat(t.viewport.transform.join(","),")"))}}catch(t){r.e(t)}finally{r.f()}t.div.removeAttribute("hidden")}}]),t}();e.AnnotationLayer=G},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderTextLayer=void 0;var n=r(5),i=function(){function t(t){return!h.test(t)}function e(e,r,i){var o=document.createElement("span"),a={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(e._textDivs.push(o),t(r.str))return a.isWhitespace=!0,void e._textDivProperties.set(o,a);var s=n.Util.transform(e._viewport.transform,r.transform),c=Math.atan2(s[1],s[0]),u=i[r.fontName];u.vertical&&(c+=Math.PI/2);var l=Math.sqrt(s[2]*s[2]+s[3]*s[3]),h=l;u.ascent?h=u.ascent*h:u.descent&&(h=(1+u.descent)*h);var f,d;0===c?(f=s[4],d=s[5]-h):(f=s[4]+h*Math.sin(c),d=s[5]-h*Math.cos(c)),o.style.left="".concat(f,"px"),o.style.top="".concat(d,"px"),o.style.fontSize="".concat(l,"px"),o.style.fontFamily=u.fontFamily,o.textContent=r.str,e._fontInspectorEnabled&&(o.dataset.fontName=r.fontName),0!==c&&(a.angle=c*(180/Math.PI));var p=!1;if(r.str.length>1)p=!0;else if(r.transform[0]!==r.transform[3]){var v=Math.abs(r.transform[0]),m=Math.abs(r.transform[3]);v!==m&&Math.max(v,m)/Math.min(v,m)>1.5&&(p=!0)}if(p&&(u.vertical?a.canvasWidth=r.height*e._viewport.scale:a.canvasWidth=r.width*e._viewport.scale),e._textDivProperties.set(o,a),e._textContentStream&&e._layoutText(o),e._enhanceTextSelection){var g=1,y=0;0!==c&&(g=Math.cos(c),y=Math.sin(c));var b,_,w=(u.vertical?r.height:r.width)*e._viewport.scale,S=l;0!==c?(b=[g,y,-y,g,f,d],_=n.Util.getAxialAlignedBoundingBox([0,0,w,S],b)):_=[f,d,f+w,d+S],e._bounds.push({left:_[0],top:_[1],right:_[2],bottom:_[3],div:o,size:[w,S],m:b})}}function r(t){if(!t._canceled){var e=t._textDivs,r=t._capability,n=e.length;if(n>l)return t._renderingDone=!0,void r.resolve();if(!t._textContentStream)for(var i=0;i<n;i++)t._layoutText(e[i]);t._renderingDone=!0,r.resolve()}}function i(t,e,r){for(var n=0,i=0;i<r;i++){var o=t[e++];o>0&&(n=n?Math.min(o,n):o)}return n}function o(t){for(var e=t._bounds,r=t._viewport,o=a(r.width,r.height,e),s=0;s<o.length;s++){var c=e[s].div,u=t._textDivProperties.get(c);if(0!==u.angle){var l=o[s],h=e[s],f=h.m,d=f[0],p=f[1],v=[[0,0],[0,h.size[1]],[h.size[0],0],h.size],m=new Float64Array(64);v.forEach(function(t,e){var r=n.Util.applyTransform(t,f);m[e+0]=d&&(l.left-r[0])/d,m[e+4]=p&&(l.top-r[1])/p,m[e+8]=d&&(l.right-r[0])/d,m[e+12]=p&&(l.bottom-r[1])/p,m[e+16]=p&&(l.left-r[0])/-p,m[e+20]=d&&(l.top-r[1])/d,m[e+24]=p&&(l.right-r[0])/-p,m[e+28]=d&&(l.bottom-r[1])/d,m[e+32]=d&&(l.left-r[0])/-d,m[e+36]=p&&(l.top-r[1])/-p,m[e+40]=d&&(l.right-r[0])/-d,m[e+44]=p&&(l.bottom-r[1])/-p,m[e+48]=p&&(l.left-r[0])/p,m[e+52]=d&&(l.top-r[1])/-d,m[e+56]=p&&(l.right-r[0])/p,m[e+60]=d&&(l.bottom-r[1])/-d});var g=1+Math.min(Math.abs(d),Math.abs(p));u.paddingLeft=i(m,32,16)/g,u.paddingTop=i(m,48,16)/g,u.paddingRight=i(m,0,16)/g,u.paddingBottom=i(m,16,16)/g,t._textDivProperties.set(c,u)}else u.paddingLeft=e[s].left-o[s].left,u.paddingTop=e[s].top-o[s].top,u.paddingRight=o[s].right-e[s].right,u.paddingBottom=o[s].bottom-e[s].bottom,t._textDivProperties.set(c,u)}}function a(t,e,r){var n=r.map(function(t,e){return{x1:t.left,y1:t.top,x2:t.right,y2:t.bottom,index:e,x1New:void 0,x2New:void 0}});s(t,n);var i=new Array(r.length);return n.forEach(function(t){var e=t.index;i[e]={left:t.x1New,top:0,right:t.x2New,bottom:0}}),r.map(function(e,r){var o=i[r],a=n[r];a.x1=e.top,a.y1=t-o.right,a.x2=e.bottom,a.y2=t-o.left,a.index=r,a.x1New=void 0,a.x2New=void 0}),s(e,n),n.forEach(function(t){var e=t.index;i[e].top=t.x1New,i[e].bottom=t.x2New}),i}function s(t,e){e.sort(function(t,e){return t.x1-e.x1||t.index-e.index});var r={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},n=[{start:-1/0,end:1/0,boundary:r}];e.forEach(function(t){for(var e=0;e<n.length&&n[e].end<=t.y1;)e++;for(var r=n.length-1;r>=0&&n[r].start>=t.y2;)r--;var i,o,a,s,c=-1/0;for(a=e;a<=r;a++){i=n[a],o=i.boundary;var u;u=o.x2>t.x1?o.index>t.index?o.x1New:t.x1:void 0===o.x2New?(o.x2+t.x1)/2:o.x2New,u>c&&(c=u)}for(t.x1New=c,a=e;a<=r;a++)i=n[a],o=i.boundary,void 0===o.x2New?o.x2>t.x1?o.index>t.index&&(o.x2New=o.x2):o.x2New=c:o.x2New>c&&(o.x2New=Math.max(c,o.x2));var l=[],h=null;for(a=e;a<=r;a++){i=n[a],o=i.boundary;var f=o.x2>t.x2?o:t;h===f?l[l.length-1].end=i.end:(l.push({start:i.start,end:i.end,boundary:f}),h=f)}for(n[e].start<t.y1&&(l[0].start=t.y1,l.unshift({start:n[e].start,end:t.y1,boundary:n[e].boundary})),t.y2<n[r].end&&(l[l.length-1].end=t.y2,l.push({start:t.y2,end:n[r].end,boundary:n[r].boundary})),a=e;a<=r;a++)if(i=n[a],o=i.boundary,void 0===o.x2New){var d=!1;for(s=e-1;!d&&s>=0&&n[s].start>=o.y1;s--)d=n[s].boundary===o;for(s=r+1;!d&&s<n.length&&n[s].end<=o.y2;s++)d=n[s].boundary===o;for(s=0;!d&&s<l.length;s++)d=l[s].boundary===o;d||(o.x2New=c)}Array.prototype.splice.apply(n,[e,r-e+1].concat(l))}),n.forEach(function(e){var r=e.boundary;void 0===r.x2New&&(r.x2New=Math.max(t,r.x2))})}function c(t){var e=this,r=t.textContent,i=t.textContentStream,o=t.container,a=t.viewport,s=t.textDivs,c=t.textContentItemsStr,u=t.enhanceTextSelection;this._textContent=r,this._textContentStream=i,this._container=o,this._viewport=a,this._textDivs=s||[],this._textContentItemsStr=c||[],this._enhanceTextSelection=!!u,this._fontInspectorEnabled=!(!globalThis.FontInspector||!globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,n.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(function(){e._layoutTextCtx&&(e._layoutTextCtx.canvas.width=0,e._layoutTextCtx.canvas.height=0,e._layoutTextCtx=null)}).catch(function(){})}function u(t){var e=new c({textContent:t.textContent,textContentStream:t.textContentStream,container:t.container,viewport:t.viewport,textDivs:t.textDivs,textContentItemsStr:t.textContentItemsStr,enhanceTextSelection:t.enhanceTextSelection});return e._render(t.timeout),e}var l=1e5,h=/\S/;return c.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new n.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems:function(t,r){for(var n=0,i=t.length;n<i;n++)this._textContentItemsStr.push(t[n].str),e(this,t[n],r)},_layoutText:function(t){var e=this._textDivProperties.get(t);if(!e.isWhitespace){var r="";if(0!==e.canvasWidth){var n=t.style,i=n.fontSize,o=n.fontFamily;i===this._layoutTextLastFontSize&&o===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(i," ").concat(o),this._layoutTextLastFontSize=i,this._layoutTextLastFontFamily=o);var a=this._layoutTextCtx.measureText(t.textContent),s=a.width;s>0&&(e.scale=e.canvasWidth/s,r="scaleX(".concat(e.scale,")"))}0!==e.angle&&(r="rotate(".concat(e.angle,"deg) ").concat(r)),r.length>0&&(this._enhanceTextSelection&&(e.originalTransform=r),t.style.transform=r),this._textDivProperties.set(t,e),this._container.appendChild(t)}},_render:function(t){var e=this,i=(0,n.createPromiseCapability)(),o=Object.create(null),a=document.createElement("canvas");if(a.mozOpaque=!0,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,c=this._textContent.styles;this._processItems(s,c),i.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');this._reader=this._textContentStream.getReader(),function t(){e._reader.read().then(function(r){var n=r.value;if(r.done)return void i.resolve();Object.assign(o,n.styles),e._processItems(n.items,o),t()},i.reject)}()}i.promise.then(function(){o=null,t?e._renderTimer=setTimeout(function(){r(e),e._renderTimer=null},t):r(e)},this._capability.reject)},expandTextDivs:function(t){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(o(this),this._bounds=null);for(var e=[],r=[],n=0,i=this._textDivs.length;n<i;n++){var a=this._textDivs[n],s=this._textDivProperties.get(a);s.isWhitespace||(t?(e.length=0,r.length=0,s.originalTransform&&e.push(s.originalTransform),s.paddingTop>0?(r.push("".concat(s.paddingTop,"px")),e.push("translateY(".concat(-s.paddingTop,"px)"))):r.push(0),s.paddingRight>0?r.push("".concat(s.paddingRight/s.scale,"px")):r.push(0),s.paddingBottom>0?r.push("".concat(s.paddingBottom,"px")):r.push(0),s.paddingLeft>0?(r.push("".concat(s.paddingLeft/s.scale,"px")),e.push("translateX(".concat(-s.paddingLeft/s.scale,"px)"))):r.push(0),a.style.padding=r.join(" "),e.length&&(a.style.transform=e.join(" "))):(a.style.padding=null,a.style.transform=s.originalTransform))}}}},u}();e.renderTextLayer=i},function(t,e,r){"use strict";function n(t){return a(t)||o(t)||f(t)||i()}function i(){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 o(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function a(t){if(Array.isArray(t))return d(t)}function s(t,e){return l(t)||u(t,e)||f(t,e)||c()}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function l(t){if(Array.isArray(t))return t}function h(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=f(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function f(t,e){if(t){if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function m(t,e,r){return e&&v(t.prototype,e),r&&v(t,r),t}Object.defineProperty(e,"__esModule",{value:!0}),e.SVGGraphics=void 0;var g=r(5),y=r(1),b=r(7),_=function(){throw new Error("Not implemented: SVGGraphics")};e.SVGGraphics=_;var w=function(t){var e,r=[],n=[],i=h(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;"save"!==o.fn?"restore"===o.fn?r=n.pop():r.push(o):(r.push({fnId:92,fn:"group",items:[]}),n.push(r),r=r[r.length-1].items)}}catch(t){i.e(t)}finally{i.f()}return r},S=function(t){if(Number.isInteger(t))return t.toString();var e=t.toFixed(10),r=e.length-1;if("0"!==e[r])return e;do{r--}while("0"===e[r]);return e.substring(0,"."===e[r]?r:r+1)},A=function(t){if(0===t[4]&&0===t[5]){if(0===t[1]&&0===t[2])return 1===t[0]&&1===t[3]?"":"scale(".concat(S(t[0])," ").concat(S(t[3]),")");if(t[0]===t[3]&&t[1]===-t[2]){var e=180*Math.acos(t[0])/Math.PI;return"rotate(".concat(S(e),")")}}else if(1===t[0]&&0===t[1]&&0===t[2]&&1===t[3])return"translate(".concat(S(t[4])," ").concat(S(t[5]),")");return"matrix(".concat(S(t[0])," ").concat(S(t[1])," ").concat(S(t[2])," ").concat(S(t[3])," ").concat(S(t[4])," ")+"".concat(S(t[5]),")")},x={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},T=["butt","round","square"],k=["miter","round","bevel"],P=function(){function t(t,e,r){for(var n=-1,i=e;i<r;i++){var o=255&(n^t[i]);n=n>>>8^c[o]}return-1^n}function e(e,r,n,i){var o=i,a=r.length;n[o]=a>>24&255,n[o+1]=a>>16&255,n[o+2]=a>>8&255,n[o+3]=255&a,o+=4,n[o]=255&e.charCodeAt(0),n[o+1]=255&e.charCodeAt(1),n[o+2]=255&e.charCodeAt(2),n[o+3]=255&e.charCodeAt(3),o+=4,n.set(r,o),o+=r.length;var s=t(n,i+4,o);n[o]=s>>24&255,n[o+1]=s>>16&255,n[o+2]=s>>8&255,n[o+3]=255&s}function r(t,e,r){for(var n=1,i=0,o=e;o<r;++o)n=(n+(255&t[o]))%65521,i=(i+n)%65521;return i<<16|n}function n(t){if(!b.isNodeJS)return i(t);try{var e;e=parseInt(process.versions.node)>=8?t:Buffer.from(t);var r=__webpack_require__(336).deflateSync(e,{level:9});return r instanceof Uint8Array?r:new Uint8Array(r)}catch(t){(0,g.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+t)}return i(t)}function i(t){var e=t.length,n=Math.ceil(e/65535),i=new Uint8Array(2+e+5*n+4),o=0;i[o++]=120,i[o++]=156;for(var a=0;e>65535;)i[o++]=0,i[o++]=255,i[o++]=255,i[o++]=0,i[o++]=0,i.set(t.subarray(a,a+65535),o),o+=65535,a+=65535,e-=65535;i[o++]=1,i[o++]=255&e,i[o++]=e>>8&255,i[o++]=255&~e,i[o++]=(65535&~e)>>8&255,i.set(t.subarray(a),o),o+=t.length-a;var s=r(t,0,t.length);return i[o++]=s>>24&255,i[o++]=s>>16&255,i[o++]=s>>8&255,i[o++]=255&s,i}function o(t,r,i,o){var c,u,l,h=t.width,f=t.height,d=t.data;switch(r){case g.ImageKind.GRAYSCALE_1BPP:u=0,c=1,l=h+7>>3;break;case g.ImageKind.RGB_24BPP:u=2,c=8,l=3*h;break;case g.ImageKind.RGBA_32BPP:u=6,c=8,l=4*h;break;default:throw new Error("invalid format")}for(var p=new Uint8Array((1+l)*f),v=0,m=0,y=0;y<f;++y)p[v++]=0,p.set(d.subarray(m,m+l),v),m+=l,v+=l;if(r===g.ImageKind.GRAYSCALE_1BPP&&o){v=0;for(var b=0;b<f;b++){v++;for(var _=0;_<l;_++)p[v++]^=255}}var w=new Uint8Array([h>>24&255,h>>16&255,h>>8&255,255&h,f>>24&255,f>>16&255,f>>8&255,255&f,c,u,0,0,0]),S=n(p),A=a.length+3*s+w.length+S.length,x=new Uint8Array(A),T=0;return x.set(a,T),T+=a.length,e("IHDR",w,x,T),T+=s+w.length,e("IDATA",S,x,T),T+=s+S.length,e("IEND",new Uint8Array(0),x,T),(0,g.createObjectURL)(x,"image/png",i)}for(var a=new Uint8Array([137,80,78,71,13,10,26,10]),s=12,c=new Int32Array(256),u=0;u<256;u++){for(var l=u,h=0;h<8;h++)l=1&l?3988292384^l>>1&2147483647:l>>1&2147483647;c[u]=l}return function(t,e,r){return o(t,void 0===t.kind?g.ImageKind.GRAYSCALE_1BPP:t.kind,e,r)}}(),C=function(){function t(){p(this,t),this.fontSizeScale=1,this.fontWeight=x.fontWeight,this.fontSize=0,this.textMatrix=g.IDENTITY_MATRIX,this.fontMatrix=g.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=g.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=x.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return m(t,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(t,e){this.x=t,this.y=e}}]),t}(),R=0,E=0,O=0;e.SVGGraphics=_=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(this,t),this.svgFactory=new y.DOMSVGFactory,this.current=new C,this.transformMatrix=g.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=r,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(var i in g.OPS)this._operatorIdMapping[g.OPS[i]]=i}return m(t,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var t=this.current;this.extraStack.push(t),this.current=t.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(t){this.save(),this.executeOpTree(t),this.restore()}},{key:"loadDependencies",value:function(t){for(var e=this,r=t.fnArray,n=t.argsArray,i=0,o=r.length;i<o;i++)if(r[i]===g.OPS.dependency){var a,s=h(n[i]);try{for(s.s();!(a=s.n()).done;)!function(){var t=a.value,r=t.startsWith("g_")?e.commonObjs:e.objs,n=new Promise(function(e){r.get(t,e)});e.current.dependencies.push(n)}()}catch(t){s.e(t)}finally{s.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(t,e,r,n,i,o){var a=[t,e,r,n,i,o];this.transformMatrix=g.Util.transform(this.transformMatrix,a),this.tgrp=null}},{key:"getSVG",value:function(t,e){var r=this;this.viewport=e;var n=this._initialize(e);return this.loadDependencies(t).then(function(){return r.transformMatrix=g.IDENTITY_MATRIX,r.executeOpTree(r.convertOpList(t)),n})}},{key:"convertOpList",value:function(t){for(var e=this._operatorIdMapping,r=t.argsArray,n=t.fnArray,i=[],o=0,a=n.length;o<a;o++){var s=n[o];i.push({fnId:s,fn:e[s],args:r[o]})}return w(i)}},{key:"executeOpTree",value:function(t){var e,r=h(t);try{for(r.s();!(e=r.n()).done;){var n=e.value,i=n.fn,o=n.fnId,a=n.args;switch(0|o){case g.OPS.beginText:this.beginText();break;case g.OPS.dependency:break;case g.OPS.setLeading:this.setLeading(a);break;case g.OPS.setLeadingMoveText:this.setLeadingMoveText(a[0],a[1]);break;case g.OPS.setFont:this.setFont(a);break;case g.OPS.showText:case g.OPS.showSpacedText:this.showText(a[0]);break;case g.OPS.endText:this.endText();break;case g.OPS.moveText:this.moveText(a[0],a[1]);break;case g.OPS.setCharSpacing:this.setCharSpacing(a[0]);break;case g.OPS.setWordSpacing:this.setWordSpacing(a[0]);break;case g.OPS.setHScale:this.setHScale(a[0]);break;case g.OPS.setTextMatrix:this.setTextMatrix(a[0],a[1],a[2],a[3],a[4],a[5]);break;case g.OPS.setTextRise:this.setTextRise(a[0]);break;case g.OPS.setTextRenderingMode:this.setTextRenderingMode(a[0]);break;case g.OPS.setLineWidth:this.setLineWidth(a[0]);break;case g.OPS.setLineJoin:this.setLineJoin(a[0]);break;case g.OPS.setLineCap:this.setLineCap(a[0]);break;case g.OPS.setMiterLimit:this.setMiterLimit(a[0]);break;case g.OPS.setFillRGBColor:this.setFillRGBColor(a[0],a[1],a[2]);break;case g.OPS.setStrokeRGBColor:this.setStrokeRGBColor(a[0],a[1],a[2]);break;case g.OPS.setStrokeColorN:this.setStrokeColorN(a);break;case g.OPS.setFillColorN:this.setFillColorN(a);break;case g.OPS.shadingFill:this.shadingFill(a[0]);break;case g.OPS.setDash:this.setDash(a[0],a[1]);break;case g.OPS.setRenderingIntent:this.setRenderingIntent(a[0]);break;case g.OPS.setFlatness:this.setFlatness(a[0]);break;case g.OPS.setGState:this.setGState(a[0]);break;case g.OPS.fill:this.fill();break;case g.OPS.eoFill:this.eoFill();break;case g.OPS.stroke:this.stroke();break;case g.OPS.fillStroke:this.fillStroke();break;case g.OPS.eoFillStroke:this.eoFillStroke();break;case g.OPS.clip:this.clip("nonzero");break;case g.OPS.eoClip:this.clip("evenodd");break;case g.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case g.OPS.paintImageXObject:this.paintImageXObject(a[0]);break;case g.OPS.paintInlineImageXObject:this.paintInlineImageXObject(a[0]);break;case g.OPS.paintImageMaskXObject:this.paintImageMaskXObject(a[0]);break;case g.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(a[0],a[1]);break;case g.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case g.OPS.closePath:this.closePath();break;case g.OPS.closeStroke:this.closeStroke();break;case g.OPS.closeFillStroke:this.closeFillStroke();break;case g.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case g.OPS.nextLine:this.nextLine();break;case g.OPS.transform:this.transform(a[0],a[1],a[2],a[3],a[4],a[5]);break;case g.OPS.constructPath:this.constructPath(a[0],a[1]);break;case g.OPS.endPath:this.endPath();break;case 92:this.group(n.items);break;default:(0,g.warn)("Unimplemented operator ".concat(i))}}}catch(t){r.e(t)}finally{r.f()}}},{key:"setWordSpacing",value:function(t){this.current.wordSpacing=t}},{key:"setCharSpacing",value:function(t){this.current.charSpacing=t}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(t,e,r,n,i,o){var a=this.current;a.textMatrix=a.lineMatrix=[t,e,r,n,i,o],a.textMatrixScale=Math.sqrt(t*t+e*e),a.x=a.lineX=0,a.y=a.lineY=0,a.xcoords=[],a.ycoords=[],a.tspan=this.svgFactory.createElement("svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size","".concat(S(a.fontSize),"px")),a.tspan.setAttributeNS(null,"y",S(-a.y)),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtElement.appendChild(a.tspan)}},{key:"beginText",value:function(){var t=this.current;t.x=t.lineX=0,t.y=t.lineY=0,t.textMatrix=g.IDENTITY_MATRIX,t.lineMatrix=g.IDENTITY_MATRIX,t.textMatrixScale=1,t.tspan=this.svgFactory.createElement("svg:tspan"),t.txtElement=this.svgFactory.createElement("svg:text"),t.txtgrp=this.svgFactory.createElement("svg:g"),t.xcoords=[],t.ycoords=[]}},{key:"moveText",value:function(t,e){var r=this.current;r.x=r.lineX+=t,r.y=r.lineY+=e,r.xcoords=[],r.ycoords=[],r.tspan=this.svgFactory.createElement("svg:tspan"),r.tspan.setAttributeNS(null,"font-family",r.fontFamily),r.tspan.setAttributeNS(null,"font-size","".concat(S(r.fontSize),"px")),r.tspan.setAttributeNS(null,"y",S(-r.y))}},{key:"showText",value:function(t){var e=this.current,r=e.font,n=e.fontSize;if(0!==n){var i,o=e.fontSizeScale,a=e.charSpacing,s=e.wordSpacing,c=e.fontDirection,u=e.textHScale*c,l=r.vertical,f=l?1:-1,d=r.defaultVMetrics,p=n*e.fontMatrix[0],v=0,m=h(t);try{for(m.s();!(i=m.n()).done;){var y=i.value;if(null!==y)if((0,g.isNum)(y))v+=f*y*n/1e3;else{var b=(y.isSpace?s:0)+a,_=y.fontChar,w=void 0,T=void 0,k=y.width;if(l){var P=void 0,C=y.vmetric||d;P=y.vmetric?C[1]:.5*k,P=-P*p;var R=C[2]*p;k=C?-C[0]:k,w=P/o,T=(v+R)/o}else w=v/o,T=0;(y.isInFont||r.missingFile)&&(e.xcoords.push(e.x+w),l&&e.ycoords.push(-e.y+T),e.tspan.textContent+=_);var E=void 0;E=l?k*p-b*c:k*p+b*c,v+=E}else v+=c*s}}catch(t){m.e(t)}finally{m.f()}e.tspan.setAttributeNS(null,"x",e.xcoords.map(S).join(" ")),l?e.tspan.setAttributeNS(null,"y",e.ycoords.map(S).join(" ")):e.tspan.setAttributeNS(null,"y",S(-e.y)),l?e.y-=v:e.x+=v*u,e.tspan.setAttributeNS(null,"font-family",e.fontFamily),e.tspan.setAttributeNS(null,"font-size","".concat(S(e.fontSize),"px")),e.fontStyle!==x.fontStyle&&e.tspan.setAttributeNS(null,"font-style",e.fontStyle),e.fontWeight!==x.fontWeight&&e.tspan.setAttributeNS(null,"font-weight",e.fontWeight);var O=e.textRenderingMode&g.TextRenderingMode.FILL_STROKE_MASK;if(O===g.TextRenderingMode.FILL||O===g.TextRenderingMode.FILL_STROKE?(e.fillColor!==x.fillColor&&e.tspan.setAttributeNS(null,"fill",e.fillColor),e.fillAlpha<1&&e.tspan.setAttributeNS(null,"fill-opacity",e.fillAlpha)):e.textRenderingMode===g.TextRenderingMode.ADD_TO_PATH?e.tspan.setAttributeNS(null,"fill","transparent"):e.tspan.setAttributeNS(null,"fill","none"),O===g.TextRenderingMode.STROKE||O===g.TextRenderingMode.FILL_STROKE){var L=1/(e.textMatrixScale||1);this._setStrokeAttributes(e.tspan,L)}var I=e.textMatrix;0!==e.textRise&&(I=I.slice(),I[5]+=e.textRise),e.txtElement.setAttributeNS(null,"transform","".concat(A(I)," scale(").concat(S(u),", -1)")),e.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.txtElement.appendChild(e.tspan),e.txtgrp.appendChild(e.txtElement),this._ensureTransformGroup().appendChild(e.txtElement)}}},{key:"setLeadingMoveText",value:function(t,e){this.setLeading(-e),this.moveText(t,e)}},{key:"addFontStyle",value:function(t){if(!t.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var e=(0,g.createObjectURL)(t.data,t.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(t.loadedName,'";')+" src: url(".concat(e,"); }\n")}},{key:"setFont",value:function(t){var e=this.current,r=this.commonObjs.get(t[0]),n=t[1];e.font=r,!this.embedFonts||r.missingFile||this.embeddedFonts[r.loadedName]||(this.addFontStyle(r),this.embeddedFonts[r.loadedName]=r),e.fontMatrix=r.fontMatrix?r.fontMatrix:g.FONT_IDENTITY_MATRIX;var i="normal";r.black?i="900":r.bold&&(i="bold");var o=r.italic?"italic":"normal";n<0?(n=-n,e.fontDirection=-1):e.fontDirection=1,e.fontSize=n,e.fontFamily=r.loadedName,e.fontWeight=i,e.fontStyle=o,e.tspan=this.svgFactory.createElement("svg:tspan"),e.tspan.setAttributeNS(null,"y",S(-e.y)),e.xcoords=[],e.ycoords=[]}},{key:"endText",value:function(){var t=this.current;t.textRenderingMode&g.TextRenderingMode.ADD_TO_PATH_FLAG&&t.txtElement&&t.txtElement.hasChildNodes()&&(t.element=t.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(t){t>0&&(this.current.lineWidth=t)}},{key:"setLineCap",value:function(t){this.current.lineCap=T[t]}},{key:"setLineJoin",value:function(t){this.current.lineJoin=k[t]}},{key:"setMiterLimit",value:function(t){this.current.miterLimit=t}},{key:"setStrokeAlpha",value:function(t){this.current.strokeAlpha=t}},{key:"setStrokeRGBColor",value:function(t,e,r){this.current.strokeColor=g.Util.makeCssRgb(t,e,r)}},{key:"setFillAlpha",value:function(t){this.current.fillAlpha=t}},{key:"setFillRGBColor",value:function(t,e,r){this.current.fillColor=g.Util.makeCssRgb(t,e,r),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(t){this.current.strokeColor=this._makeColorN_Pattern(t)}},{key:"setFillColorN",value:function(t){this.current.fillColor=this._makeColorN_Pattern(t)}},{key:"shadingFill",value:function(t){var e=this.viewport.width,r=this.viewport.height,n=g.Util.inverseTransform(this.transformMatrix),i=g.Util.applyTransform([0,0],n),o=g.Util.applyTransform([0,r],n),a=g.Util.applyTransform([e,0],n),s=g.Util.applyTransform([e,r],n),c=Math.min(i[0],o[0],a[0],s[0]),u=Math.min(i[1],o[1],a[1],s[1]),l=Math.max(i[0],o[0],a[0],s[0]),h=Math.max(i[1],o[1],a[1],s[1]),f=this.svgFactory.createElement("svg:rect");f.setAttributeNS(null,"x",c),f.setAttributeNS(null,"y",u),f.setAttributeNS(null,"width",l-c),f.setAttributeNS(null,"height",h-u),f.setAttributeNS(null,"fill",this._makeShadingPattern(t)),this.current.fillAlpha<1&&f.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(f)}},{key:"_makeColorN_Pattern",value:function(t){return"TilingPattern"===t[0]?this._makeTilingPattern(t):this._makeShadingPattern(t)}},{key:"_makeTilingPattern",value:function(t){var e=t[1],r=t[2],i=t[3]||g.IDENTITY_MATRIX,o=s(t[4],4),a=o[0],c=o[1],u=o[2],l=o[3],h=t[5],f=t[6],d=t[7],p="shading".concat(O++),v=g.Util.applyTransform([a,c],i),m=s(v,2),y=m[0],b=m[1],_=g.Util.applyTransform([u,l],i),w=s(_,2),S=w[0],A=w[1],x=g.Util.singularValueDecompose2dScale(i),T=s(x,2),k=T[0],P=T[1],C=h*k,R=f*P,E=this.svgFactory.createElement("svg:pattern");E.setAttributeNS(null,"id",p),E.setAttributeNS(null,"patternUnits","userSpaceOnUse"),E.setAttributeNS(null,"width",C),E.setAttributeNS(null,"height",R),E.setAttributeNS(null,"x","".concat(y)),E.setAttributeNS(null,"y","".concat(b));var L=this.svg,I=this.transformMatrix,M=this.current.fillColor,F=this.current.strokeColor,D=this.svgFactory.create(S-y,A-b);if(this.svg=D,this.transformMatrix=i,2===d){var j=g.Util.makeCssRgb.apply(g.Util,n(e));this.current.fillColor=j,this.current.strokeColor=j}return this.executeOpTree(this.convertOpList(r)),this.svg=L,this.transformMatrix=I,this.current.fillColor=M,this.current.strokeColor=F,E.appendChild(D.childNodes[0]),this.defs.appendChild(E),"url(#".concat(p,")")}},{key:"_makeShadingPattern",value:function(t){switch(t[0]){case"RadialAxial":var e,r="shading".concat(O++),n=t[3];switch(t[1]){case"axial":var i=t[4],o=t[5];e=this.svgFactory.createElement("svg:linearGradient"),e.setAttributeNS(null,"id",r),e.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),e.setAttributeNS(null,"x1",i[0]),e.setAttributeNS(null,"y1",i[1]),e.setAttributeNS(null,"x2",o[0]),e.setAttributeNS(null,"y2",o[1]);break;case"radial":var a=t[4],s=t[5],c=t[6],u=t[7];e=this.svgFactory.createElement("svg:radialGradient"),e.setAttributeNS(null,"id",r),e.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),e.setAttributeNS(null,"cx",s[0]),e.setAttributeNS(null,"cy",s[1]),e.setAttributeNS(null,"r",u),e.setAttributeNS(null,"fx",a[0]),e.setAttributeNS(null,"fy",a[1]),e.setAttributeNS(null,"fr",c);break;default:throw new Error("Unknown RadialAxial type: ".concat(t[1]))}var l,f=h(n);try{for(f.s();!(l=f.n()).done;){var d=l.value,p=this.svgFactory.createElement("svg:stop");p.setAttributeNS(null,"offset",d[0]),p.setAttributeNS(null,"stop-color",d[1]),e.appendChild(p)}}catch(t){f.e(t)}finally{f.f()}return this.defs.appendChild(e),"url(#".concat(r,")");case"Mesh":return(0,g.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(t[0]))}}},{key:"setDash",value:function(t,e){this.current.dashArray=t,this.current.dashPhase=e}},{key:"constructPath",value:function(t,e){var r,n=this.current,i=n.x,o=n.y,a=[],s=0,c=h(t);try{for(c.s();!(r=c.n()).done;){switch(0|r.value){case g.OPS.rectangle:i=e[s++],o=e[s++];var u=e[s++],l=e[s++],f=i+u,d=o+l;a.push("M",S(i),S(o),"L",S(f),S(o),"L",S(f),S(d),"L",S(i),S(d),"Z");break;case g.OPS.moveTo:i=e[s++],o=e[s++],a.push("M",S(i),S(o));break;case g.OPS.lineTo:i=e[s++],o=e[s++],a.push("L",S(i),S(o));break;case g.OPS.curveTo:i=e[s+4],o=e[s+5],a.push("C",S(e[s]),S(e[s+1]),S(e[s+2]),S(e[s+3]),S(i),S(o)),s+=6;break;case g.OPS.curveTo2:a.push("C",S(i),S(o),S(e[s]),S(e[s+1]),S(e[s+2]),S(e[s+3])),i=e[s+2],o=e[s+3],s+=4;break;case g.OPS.curveTo3:i=e[s+2],o=e[s+3],a.push("C",S(e[s]),S(e[s+1]),S(i),S(o),S(i),S(o)),s+=4;break;case g.OPS.closePath:a.push("Z")}}}catch(t){c.e(t)}finally{c.f()}a=a.join(" "),n.path&&t.length>0&&t[0]!==g.OPS.rectangle&&t[0]!==g.OPS.moveTo?a=n.path.getAttributeNS(null,"d")+a:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(n.path)),n.path.setAttributeNS(null,"d",a),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(i,o)}},{key:"endPath",value:function(){var t=this.current;if(t.path=null,this.pendingClip){if(!t.element)return void(this.pendingClip=null);var e="clippath".concat(R++),r=this.svgFactory.createElement("svg:clipPath");r.setAttributeNS(null,"id",e),r.setAttributeNS(null,"transform",A(this.transformMatrix));var n=t.element.cloneNode(!0);"evenodd"===this.pendingClip?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.appendChild(n),this.defs.appendChild(r),t.activeClipUrl&&(t.clipGroup=null,this.extraStack.forEach(function(t){t.clipGroup=null}),r.setAttributeNS(null,"clip-path",t.activeClipUrl)),t.activeClipUrl="url(#".concat(e,")"),this.tgrp=null}}},{key:"clip",value:function(t){this.pendingClip=t}},{key:"closePath",value:function(){var t=this.current;if(t.path){var e="".concat(t.path.getAttributeNS(null,"d"),"Z");t.path.setAttributeNS(null,"d",e)}}},{key:"setLeading",value:function(t){this.current.leading=-t}},{key:"setTextRise",value:function(t){this.current.textRise=t}},{key:"setTextRenderingMode",value:function(t){this.current.textRenderingMode=t}},{key:"setHScale",value:function(t){this.current.textHScale=t/100}},{key:"setRenderingIntent",value:function(t){}},{key:"setFlatness",value:function(t){}},{key:"setGState",value:function(t){var e,r=h(t);try{for(r.s();!(e=r.n()).done;){var n=s(e.value,2),i=n[0],o=n[1];switch(i){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o);break;case"CA":this.setStrokeAlpha(o);break;case"ca":this.setFillAlpha(o);break;default:(0,g.warn)("Unimplemented graphic state operator ".concat(i))}}}catch(t){r.e(t)}finally{r.f()}}},{key:"fill",value:function(){var t=this.current;t.element&&(t.element.setAttributeNS(null,"fill",t.fillColor),t.element.setAttributeNS(null,"fill-opacity",t.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var t=this.current;t.element&&(this._setStrokeAttributes(t.element),t.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this.current,n=r.dashArray;1!==e&&n.length>0&&(n=n.map(function(t){return e*t})),t.setAttributeNS(null,"stroke",r.strokeColor),t.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),t.setAttributeNS(null,"stroke-miterlimit",S(r.miterLimit)),t.setAttributeNS(null,"stroke-linecap",r.lineCap),t.setAttributeNS(null,"stroke-linejoin",r.lineJoin),t.setAttributeNS(null,"stroke-width",S(e*r.lineWidth)+"px"),t.setAttributeNS(null,"stroke-dasharray",n.map(S).join(" ")),t.setAttributeNS(null,"stroke-dashoffset",S(e*r.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var t=this.svgFactory.createElement("svg:rect");t.setAttributeNS(null,"x","0"),t.setAttributeNS(null,"y","0"),t.setAttributeNS(null,"width","1px"),t.setAttributeNS(null,"height","1px"),t.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(t)}},{key:"paintImageXObject",value:function(t){var e=this.objs.get(t);if(!e)return void(0,g.warn)("Dependent image with object ID ".concat(t," is not ready yet"));this.paintInlineImageXObject(e)}},{key:"paintInlineImageXObject",value:function(t,e){var r=t.width,n=t.height,i=P(t,this.forceDataSchema,!!e),o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",S(r)),o.setAttributeNS(null,"height",S(n)),this.current.element=o,this.clip("nonzero");var a=this.svgFactory.createElement("svg:image");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",S(-n)),a.setAttributeNS(null,"width",S(r)+"px"),a.setAttributeNS(null,"height",S(n)+"px"),a.setAttributeNS(null,"transform","scale(".concat(S(1/r)," ").concat(S(-1/n),")")),e?e.appendChild(a):this._ensureTransformGroup().appendChild(a)}},{key:"paintImageMaskXObject",value:function(t){var e=this.current,r=t.width,n=t.height,i=e.fillColor;e.maskId="mask".concat(E++);var o=this.svgFactory.createElement("svg:mask");o.setAttributeNS(null,"id",e.maskId);var a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",S(r)),a.setAttributeNS(null,"height",S(n)),a.setAttributeNS(null,"fill",i),a.setAttributeNS(null,"mask","url(#".concat(e.maskId,")")),this.defs.appendChild(o),this._ensureTransformGroup().appendChild(a),this.paintInlineImageXObject(t,o)}},{key:"paintFormXObjectBegin",value:function(t,e){if(Array.isArray(t)&&6===t.length&&this.transform(t[0],t[1],t[2],t[3],t[4],t[5]),e){var r=e[2]-e[0],n=e[3]-e[1],i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x",e[0]),i.setAttributeNS(null,"y",e[1]),i.setAttributeNS(null,"width",S(r)),i.setAttributeNS(null,"height",S(n)),this.current.element=i,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(t){var e=this.svgFactory.create(t.width,t.height),r=this.svgFactory.createElement("svg:defs");e.appendChild(r),this.defs=r;var n=this.svgFactory.createElement("svg:g");return n.setAttributeNS(null,"transform",A(t.transform)),e.appendChild(n),this.svg=n,e}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var t=this.svgFactory.createElement("svg:g");t.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(t),this.current.clipGroup=t}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",A(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),t}()},function(t,e,r){"use strict";function n(t){"@babel/helpers - typeof";return(n="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})(t)}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=u();return function(){var r,n=l(t);if(e){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return s(this,r)}}function s(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){function o(t){h(s,n,i,o,a,"next",t)}function a(t){h(s,n,i,o,a,"throw",t)}var s=t.apply(e,r);o(void 0)})}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function v(t,e,r){return e&&p(t.prototype,e),r&&p(t,r),t}function m(t){var e=x.parse(t);return"file:"===e.protocol||e.host?e:/^[a-z]:[/\\]/i.test(t)?x.parse("file:///".concat(t)):(e.host||(e.protocol="file:"),e)}function g(t,e){return{protocol:t.protocol,auth:t.auth,host:t.hostname,port:t.port,path:t.path,method:"GET",headers:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFNodeStream=void 0;var y=function(t){return t&&t.__esModule?t:{default:t}}(r(2)),b=r(5),_=r(213),w=__webpack_require__(337),S=__webpack_require__(338),A=__webpack_require__(339),x=__webpack_require__(340),T=/^file:\/\/\/[a-zA-Z]:\//,k=function(){function t(e){d(this,t),this.source=e,this.url=m(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return v(t,[{key:"getFullReader",value:function(){return(0,b.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new O(this):new R(this),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var r=this.isFsUrl?new L(this,t,e):new E(this,t,e);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach(function(e){e.cancel(t)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFNodeStream=k;var P=function(){function t(e){d(this,t),this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;var r=e.source;this._contentLength=r.length,this._loaded=0,this._filename=null,this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._readableStream=null,this._readCapability=(0,b.createPromiseCapability)(),this._headersCapability=(0,b.createPromiseCapability)()}return v(t,[{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=f(y.default.mark(function t(){var e,r;return y.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:if(!this._done){t.next=4;break}return t.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){t.next=6;break}throw this._storedError;case 6:if(null!==(e=this._readableStream.read())){t.next=10;break}return this._readCapability=(0,b.createPromiseCapability)(),t.abrupt("return",this.read());case 10:return this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),r=new Uint8Array(e).buffer,t.abrupt("return",{value:r,done:!1});case 14:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){if(!this._readableStream)return void this._error(t);this._readableStream.destroy(t)}},{key:"_error",value:function(t){this._storedError=t,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(t){var e=this;this._readableStream=t,t.on("readable",function(){e._readCapability.resolve()}),t.on("end",function(){t.destroy(),e._done=!0,e._readCapability.resolve()}),t.on("error",function(t){e._error(t)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new b.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}(),C=function(){function t(e){d(this,t),this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,b.createPromiseCapability)();var r=e.source;this._isStreamingSupported=!r.disableStream}return v(t,[{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=f(y.default.mark(function t(){var e,r;return y.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:if(!this._done){t.next=4;break}return t.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){t.next=6;break}throw this._storedError;case 6:if(null!==(e=this._readableStream.read())){t.next=10;break}return this._readCapability=(0,b.createPromiseCapability)(),t.abrupt("return",this.read());case 10:return this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),r=new Uint8Array(e).buffer,t.abrupt("return",{value:r,done:!1});case 14:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){if(!this._readableStream)return void this._error(t);this._readableStream.destroy(t)}},{key:"_error",value:function(t){this._storedError=t,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(t){var e=this;this._readableStream=t,t.on("readable",function(){e._readCapability.resolve()}),t.on("end",function(){t.destroy(),e._done=!0,e._readCapability.resolve()}),t.on("error",function(t){e._error(t)}),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}(),R=function(t){function e(t){var n;d(this,e),n=r.call(this,t);var i=function(e){if(404===e.statusCode){var r=new b.MissingPDFException('Missing PDF "'.concat(n._url,'".'));return n._storedError=r,void n._headersCapability.reject(r)}n._headersCapability.resolve(),n._setReadableStream(e);var i=function(t){return n._readableStream.headers[t.toLowerCase()]},o=(0,_.validateRangeRequestCapabilities)({getResponseHeader:i,isHttp:t.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),a=o.allowRangeRequests,s=o.suggestedLength;n._isRangeSupported=a,n._contentLength=s||n._contentLength,n._filename=(0,_.extractFilenameFromHeader)(i)};return n._request=null,"http:"===n._url.protocol?n._request=S.request(g(n._url,t.httpHeaders),i):n._request=A.request(g(n._url,t.httpHeaders),i),n._request.on("error",function(t){n._storedError=t,n._headersCapability.reject(t)}),n._request.end(),n}i(e,t);var r=a(e);return e}(P),E=function(t){function e(t,n,i){var o;d(this,e),o=r.call(this,t),o._httpHeaders={};for(var a in t.httpHeaders){var s=t.httpHeaders[a];void 0!==s&&(o._httpHeaders[a]=s)}o._httpHeaders.Range="bytes=".concat(n,"-").concat(i-1);var c=function(t){if(404===t.statusCode){var e=new b.MissingPDFException('Missing PDF "'.concat(o._url,'".'));return void(o._storedError=e)}o._setReadableStream(t)};return o._request=null,"http:"===o._url.protocol?o._request=S.request(g(o._url,o._httpHeaders),c):o._request=A.request(g(o._url,o._httpHeaders),c),o._request.on("error",function(t){o._storedError=t}),o._request.end(),o}i(e,t);var r=a(e);return e}(C),O=function(t){function e(t){var n;d(this,e),n=r.call(this,t);var i=decodeURIComponent(n._url.path);return T.test(n._url.href)&&(i=i.replace(/^\//,"")),w.lstat(i,function(t,e){if(t)return"ENOENT"===t.code&&(t=new b.MissingPDFException('Missing PDF "'.concat(i,'".'))),n._storedError=t,void n._headersCapability.reject(t);n._contentLength=e.size,n._setReadableStream(w.createReadStream(i)),n._headersCapability.resolve()}),n}i(e,t);var r=a(e);return e}(P),L=function(t){function e(t,n,i){var o;d(this,e),o=r.call(this,t);var a=decodeURIComponent(o._url.path);return T.test(o._url.href)&&(a=a.replace(/^\//,"")),o._setReadableStream(w.createReadStream(a,{start:n,end:i-1})),o}i(e,t);var r=a(e);return e}(C)},function(t,e,r){"use strict";function n(t){var e=t.getResponseHeader,r=t.isHttp,n=t.rangeChunkSize,i=t.disableRange;(0,s.assert)(n>0,"Range chunk size must be larger than zero");var o={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(e("Content-Length"),10);return Number.isInteger(a)?(o.suggestedLength=a,a<=2*n?o:i||!r?o:"bytes"!==e("Accept-Ranges")?o:"identity"!==(e("Content-Encoding")||"identity")?o:(o.allowRangeRequests=!0,o)):o}function i(t){var e=t("Content-Disposition");if(e){var r=(0,c.getFilenameFromContentDispositionHeader)(e);if(r.includes("%"))try{r=decodeURIComponent(r)}catch(t){}if(/\.pdf$/i.test(r))return r}return null}function o(t,e){return 404===t||0===t&&e.startsWith("file:")?new s.MissingPDFException('Missing PDF "'+e+'".'):new s.UnexpectedResponseException("Unexpected server response ("+t+') while retrieving PDF "'+e+'".',t)}function a(t){return 200===t||206===t}Object.defineProperty(e,"__esModule",{value:!0}),e.createResponseStatusError=o,e.extractFilenameFromHeader=i,e.validateRangeRequestCapabilities=n,e.validateResponseStatus=a;var s=r(5),c=r(214)},function(t,e,r){"use strict";function n(t,e){return c(t)||s(t,e)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function c(t){if(Array.isArray(t))return t}function u(t){function e(t,e){return new RegExp("(?:^|;)\\s*"+t+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',e)}function r(t,e){if(t){if(!/^[\x00-\xFF]+$/.test(e))return e;try{var r=new TextDecoder(t,{fatal:!0}),n=Array.from(e,function(t){return 255&t.charCodeAt(0)});e=r.decode(new Uint8Array(n)),c=!1}catch(r){if(/^utf-?8$/i.test(t))try{e=decodeURIComponent(escape(e)),c=!1}catch(t){}}}return e}function i(t){return c&&/[\x80-\xff]/.test(t)&&(t=r("utf-8",t),c&&(t=r("iso-8859-1",t))),t}function o(t){if(t.startsWith('"')){for(var e=t.slice(1).split('\\"'),r=0;r<e.length;++r){var n=e[r].indexOf('"');-1!==n&&(e[r]=e[r].slice(0,n),e.length=r+1),e[r]=e[r].replace(/\\(.)/g,"$1")}t=e.join('"')}return t}function a(t){var e=t.indexOf("'");return-1===e?t:r(t.slice(0,e),t.slice(e+1).replace(/^[^']*'/,""))}function s(t){return!t.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(t)?t:t.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(t,e,n,i){if("q"===n||"Q"===n)return i=i.replace(/_/g," "),i=i.replace(/=([0-9a-fA-F]{2})/g,function(t,e){return String.fromCharCode(parseInt(e,16))}),r(e,i);try{i=atob(i)}catch(t){}return r(e,i)})}var c=!0,u=e("filename\\*","i").exec(t);if(u){u=u[1];var l=o(u);return l=unescape(l),l=a(l),l=s(l),i(l)}if(u=function(t){for(var r,i=[],s=e("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(r=s.exec(t));){var c=r,u=n(c,4),l=u[1],h=u[2],f=u[3];if((l=parseInt(l,10))in i){if(0===l)break}else i[l]=[h,f]}for(var d=[],p=0;p<i.length&&p in i;++p){var v=n(i[p],2),m=v[0],g=v[1];g=o(g),m&&(g=unescape(g),0===p&&(g=a(g))),d.push(g)}return d.join("")}(t)){return i(s(u))}if(u=e("filename","i").exec(t)){u=u[1];var h=o(u);return h=s(h),i(h)}return""}Object.defineProperty(e,"__esModule",{value:!0}),e.getFilenameFromContentDispositionHeader=u},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise(function(i,o){function a(t){n(c,i,o,a,s,"next",t)}function s(t){n(c,i,o,a,s,"throw",t)}var c=t.apply(e,r);a(void 0)})}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),t}function c(t){var e=t.response;return"string"!=typeof e?e:(0,l.stringToBytes)(e).buffer}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFNetworkStream=void 0;var u=function(t){return t&&t.__esModule?t:{default:t}}(r(2)),l=r(5),h=r(213),f=function(){function t(e,r){o(this,t),this.url=e,r=r||{},this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&r.httpHeaders||{},this.withCredentials=r.withCredentials||!1,this.getXhr=r.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return s(t,[{key:"requestRange",value:function(t,e,r){var n={begin:t,end:e};for(var i in r)n[i]=r[i];return this.request(n)}},{key:"requestFull",value:function(t){return this.request(t)}},{key:"request",value:function(t){var e=this.getXhr(),r=this.currXhrId++,n=this.pendingRequests[r]={xhr:e};e.open("GET",this.url),e.withCredentials=this.withCredentials;for(var i in this.httpHeaders){var o=this.httpHeaders[i];void 0!==o&&e.setRequestHeader(i,o)}return this.isHttp&&"begin"in t&&"end"in t?(e.setRequestHeader("Range","bytes=".concat(t.begin,"-").concat(t.end-1)),n.expectedStatus=206):n.expectedStatus=200,e.responseType="arraybuffer",t.onError&&(e.onerror=function(r){t.onError(e.status)}),e.onreadystatechange=this.onStateChange.bind(this,r),e.onprogress=this.onProgress.bind(this,r),n.onHeadersReceived=t.onHeadersReceived,n.onDone=t.onDone,n.onError=t.onError,n.onProgress=t.onProgress,e.send(null),r}},{key:"onProgress",value:function(t,e){var r=this.pendingRequests[t];r&&r.onProgress&&r.onProgress(e)}},{key:"onStateChange",value:function(t,e){var r=this.pendingRequests[t];if(r){var n=r.xhr;if(n.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===n.readyState&&t in this.pendingRequests){if(delete this.pendingRequests[t],0===n.status&&this.isHttp)return void(r.onError&&r.onError(n.status));var i=n.status||200;if(!(200===i&&206===r.expectedStatus)&&i!==r.expectedStatus)return void(r.onError&&r.onError(n.status));var o=c(n);if(206===i){var a=n.getResponseHeader("Content-Range"),s=/bytes (\d+)-(\d+)\/(\d+)/.exec(a);r.onDone({begin:parseInt(s[1],10),chunk:o})}else o?r.onDone({begin:0,chunk:o}):r.onError&&r.onError(n.status)}}}},{key:"hasPendingRequests",value:function(){for(var t in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(t){return this.pendingRequests[t].xhr}},{key:"isPendingRequest",value:function(t){return t in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var t in this.pendingRequests)this.abortRequest(0|t)}},{key:"abortRequest",value:function(t){var e=this.pendingRequests[t].xhr;delete this.pendingRequests[t],e.abort()}}]),t}(),d=function(){function t(e){o(this,t),this._source=e,this._manager=new f(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return s(t,[{key:"_onRangeRequestReaderClosed",value:function(t){var e=this._rangeRequestReaders.indexOf(t);e>=0&&this._rangeRequestReaders.splice(e,1)}},{key:"getFullReader",value:function(){return(0,l.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new p(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){var r=new v(this._manager,t,e);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach(function(e){e.cancel(t)})}}]),t}();e.PDFNetworkStream=d;var p=function(){function t(e,r){o(this,t),this._manager=e;var n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=r.url,this._fullRequestId=e.requestFull(n),this._headersReceivedCapability=(0,l.createPromiseCapability)(),this._disableRange=r.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return s(t,[{key:"_onHeadersReceived",value:function(){var t=this._fullRequestId,e=this._manager.getRequestXhr(t),r=function(t){return e.getResponseHeader(t)},n=(0,h.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=n.allowRangeRequests,o=n.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,h.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(t),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(t){if(t)if(this._requests.length>0){var e=this._requests.shift();e.resolve({value:t.chunk,done:!1})}else this._cachedChunks.push(t.chunk);this._done=!0,this._cachedChunks.length>0||(this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[])}},{key:"_onError",value:function(t){var e=this._url,r=(0,h.createResponseStatusError)(t,e);this._storedError=r,this._headersReceivedCapability.reject(r),this._requests.forEach(function(t){t.reject(r)}),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(t){this.onProgress&&this.onProgress({loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}},{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(u.default.mark(function t(){var e,r;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._storedError){t.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){t.next=5;break}return e=this._cachedChunks.shift(),t.abrupt("return",{value:e,done:!1});case 5:if(!this._done){t.next=7;break}return t.abrupt("return",{value:void 0,done:!0});case 7:return r=(0,l.createPromiseCapability)(),this._requests.push(r),t.abrupt("return",r.promise);case 10:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._done=!0,this._headersReceivedCapability.reject(t),this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]),t}(),v=function(){function t(e,r,n){o(this,t),this._manager=e;var i={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=e.requestRange(r,n,i),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return s(t,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(t){var e=t.chunk;if(this._requests.length>0){this._requests.shift().resolve({value:e,done:!1})}else this._queuedChunk=e;this._done=!0,this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[],this._close()}},{key:"_onProgress",value:function(t){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:t.loaded})}},{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(u.default.mark(function t(){var e,r;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(null===this._queuedChunk){t.next=4;break}return e=this._queuedChunk,this._queuedChunk=null,t.abrupt("return",{value:e,done:!1});case 4:if(!this._done){t.next=6;break}return t.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,l.createPromiseCapability)(),this._requests.push(r),t.abrupt("return",r.promise);case 9:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach(function(t){t.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},{key:"isStreamingSupported",get:function(){return!1}}]),t}()},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise(function(i,o){function a(t){n(c,i,o,a,s,"next",t)}function s(t){n(c,i,o,a,s,"throw",t)}var c=t.apply(e,r);a(void 0)})}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),t}function c(t,e,r){return{method:"GET",headers:t,signal:r&&r.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function u(t){var e=new Headers;for(var r in t){var n=t[r];void 0!==n&&e.append(r,n)}return e}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFFetchStream=void 0;var l=function(t){return t&&t.__esModule?t:{default:t}}(r(2)),h=r(5),f=r(213),d=function(){function t(e){o(this,t),this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return s(t,[{key:"getFullReader",value:function(){return(0,h.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new p(this),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var r=new v(this,t,e);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach(function(e){e.cancel(t)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFFetchStream=d;var p=function(){function t(e){var r=this;o(this,t),this._stream=e,this._reader=null,this._loaded=0,this._filename=null;var n=e.source;this._withCredentials=n.withCredentials||!1,this._contentLength=n.length,this._headersCapability=(0,h.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._headers=u(this._stream.httpHeaders);var i=n.url;fetch(i,c(this._headers,this._withCredentials,this._abortController)).then(function(t){if(!(0,f.validateResponseStatus)(t.status))throw(0,f.createResponseStatusError)(t.status,i);r._reader=t.body.getReader(),r._headersCapability.resolve();var e=function(e){return t.headers.get(e)},n=(0,f.validateRangeRequestCapabilities)({getResponseHeader:e,isHttp:r._stream.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),o=n.allowRangeRequests,a=n.suggestedLength;r._isRangeSupported=o,r._contentLength=a||r._contentLength,r._filename=(0,f.extractFilenameFromHeader)(e),!r._isStreamingSupported&&r._isRangeSupported&&r.cancel(new h.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}return s(t,[{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(l.default.mark(function t(){var e,r,n,i;return l.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._headersCapability.promise;case 2:return t.next=4,this._reader.read();case 4:if(e=t.sent,r=e.value,!(n=e.done)){t.next=9;break}return t.abrupt("return",{value:r,done:n});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),i=new Uint8Array(r).buffer,t.abrupt("return",{value:i,done:!1});case 13:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._reader&&this._reader.cancel(t),this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}(),v=function(){function t(e,r,n){var i=this;o(this,t),this._stream=e,this._reader=null,this._loaded=0;var a=e.source;this._withCredentials=a.withCredentials||!1,this._readCapability=(0,h.createPromiseCapability)(),this._isStreamingSupported=!a.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=u(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(r,"-").concat(n-1));var s=a.url;fetch(s,c(this._headers,this._withCredentials,this._abortController)).then(function(t){if(!(0,f.validateResponseStatus)(t.status))throw(0,f.createResponseStatusError)(t.status,s);i._readCapability.resolve(),i._reader=t.body.getReader()}),this.onProgress=null}return s(t,[{key:"read",value:function(){function t(){return e.apply(this,arguments)}var e=i(l.default.mark(function t(){var e,r,n,i;return l.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:return t.next=4,this._reader.read();case 4:if(e=t.sent,r=e.value,!(n=e.done)){t.next=9;break}return t.abrupt("return",{value:r,done:n});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),i=new Uint8Array(r).buffer,t.abrupt("return",{value:i,done:!1});case 13:case"end":return t.stop()}},t,this)}));return t}()},{key:"cancel",value:function(t){this._reader&&this._reader.cancel(t),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}()}])})}).call(exports,__webpack_require__(305).Buffer,__webpack_require__(154),__webpack_require__(117))},336:function(t,e){},337:function(t,e){},338:function(t,e){},339:function(t,e){},34:function(t,e,r){var n=r(10);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},340:function(t,e){},341:function(t,e){},349:function(t,e){},35:function(t,e){e.f=Object.getOwnPropertySymbols},350:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"act-doc-content"},t._l(t.termsInfo,function(e,n){return r("div",{key:n,staticClass:"act-doc-box",class:{hide:t.getTermHideState(n)}},[t.isShowLoading||!e.init||n!==t.docIndex?r("div",{staticClass:"loading",class:{center:t.isPurePdfType||t.imagesInitLoad||!(e.init&&n===t.docIndex)}},[r("act-loading",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],attrs:{type:"cir4",color:t.brandColor,size:25}})],1):t._e(),t._v(" "),e.init&&n===t.docIndex?r("scroll",{class:e.classObject,attrs:{freeScroll:e.freeScroll,scrollbar:e.scrollbar,mouseWheel:e.mouseWheel,bounce:e.bounce,zoom:e.zoom,observeDOM:e.observeDOM,listenBeforeScroll:!0,listenScroll:e.listenScroll,listenScrollEnd:e.listenScrollEnd,listenScrollInit:e.listenScrollInit,listenZoomEnd:e.listenZoomEnd},on:{scroll:t.scroll,"scroll-end":t.scrollEnd,scrollSuc:t.scrollInit,zoomEnd:t.zoomEnd}},[99==e.type?t._t("content"):1==e.type||3==e.type?r("div",{ref:"wordHtml"+n,refInFor:!0,staticClass:"act-scroll-text",class:"wordHtml"+n,attrs:{"data-index":n},domProps:{innerHTML:t._s(e.wordHtml)}},[t._v("\n >"+t._s(e.wordHtml)+"\n ")]):4===e.type?r("div",{ref:"pdfContainer",refInFor:!0}):r("ul",{ref:"scrollList"+n,refInFor:!0,staticClass:"act-scroll-list"})],2):t._e()],1)}),0)},i=[];n._withStripped=!0},36:function(t,e,r){e.f=r(3)},37:function(t,e,r){var n=r(2),i=r(0),o=r(16),a=r(36),s=r(8).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},38:function(t,e,r){var n=r(39);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},39:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},4:function(t,e,r){"use strict";function n(t,e){if(t.findIndex)return t.findIndex(e);var r=-1;return t.some(function(t,n,i){var o=e.call(this,t,n,i);if(o)return r=n,o}),r}function i(t){return t?JSON.parse(W()(t)):t}function o(t,e){for(var r in e)t[r]&&"object"===U()(t[r])?o(t[r],e[r]):t[r]=e[r]}function a(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function c(t){return"[object Number]"===Object.prototype.toString.call(t)}function u(t){return"[object Object]"===Object.prototype.toString.call(t)}function l(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function h(t){return null===t}function f(t){return void 0!==t&&null!==t}function d(t){return void 0===t}function p(t){return"[object Error]"===Object.prototype.toString.call(t)}function v(t){return"function"==typeof t}function m(t){return"[object Promise]"===Object.prototype.toString.call(t)||u(t)&&v(t.then)}function g(t,e,r){function n(e){var r=m,n=g;return m=g=void 0,S=e,b=t.apply(n,r)}function i(t,e){return k?(window.cancelAnimationFrame(_),window.requestAnimationFrame(t)):setTimeout(t,e)}function o(t){if(k)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return S=t,_=i(l,e),A?n(t):b}function s(t){var r=t-w,n=t-S,i=e-r;return x?Math.min(i,y-n):i}function c(t){var r=t-w,n=t-S;return void 0===w||r>=e||r<0||x&&n>=y}function l(){var t=Date.now();if(c(t))return h(t);_=i(l,s(t))}function h(t){return _=void 0,T&&m?n(t):(m=g=void 0,b)}function f(){void 0!==_&&o(_),S=0,m=w=g=_=void 0}function d(){return void 0===_?b:h(Date.now())}function p(){return void 0!==_}function v(){for(var t=Date.now(),r=c(t),o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];if(m=s,g=this,w=t,r){if(void 0===_)return a(w);if(x)return _=i(l,e),n(w)}return void 0===_&&(_=i(l,e)),b}var m=void 0,g=void 0,y=void 0,b=void 0,_=void 0,w=void 0,S=0,A=!1,x=!1,T=!0,k=!e&&0!==e&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof t)throw new TypeError("Expected a function");return e=+e||0,u(r)&&(A=!!r.leading,x="maxWait"in r,y=x?Math.max(+r.maxWait||0,e):y,T="trailing"in r?!!r.trailing:T),v.cancel=f,v.flush=d,v.pending=p,v}function y(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return u(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),g(t,e,{leading:n,trailing:i,maxWait:e})}function b(t){return!!/^1\d{10}$/.test(t)}function _(t){var e=t.length;return e>3&&e<8?t=t.replace(/\s/g,"").replace(/^(.{3})/g,"$1 "):e>=8&&(t=t.replace(/\s/g,"").replace(/^(.{3})(.+)/g,function(t,e,r){return e+" "+r.replace(/(.{4})(?=.)/g,"$1 ")})),t}function w(t){return t.replace(/\s/g,"").replace(/(.{4})(?=.)/g,"$1 ")}function S(t){if(void 0!==t||null!==t)return/^\d+(\.\d+)?$/.test(t+"")?t+"px":t}function A(t){if(!t)return"";var e=t.length;return 2===e?t.split("").join("&emsp;&emsp;"):3===e?t.split("").join("&ensp;"):t}function x(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.offsetHeight;if(e){var n=t.currentStyle||getComputedStyle(t);r+=parseInt(n.marginTop||0)+parseInt(n.marginBottom||0)}return r}function T(t,e){var r=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$/i.exec(t),n=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t),i=null;return r?i={r:parseInt(r[1]+r[1],16),g:parseInt(r[2]+r[2],16),b:parseInt(r[3]+r[3],16)}:n&&(i={r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}),i?void 0!==e?"rgba("+i.r+", "+i.g+", "+i.b+", "+e+")":"rgb("+i.r+", "+i.g+", "+i.b+")":""}function k(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz",r=e.length,n="";t=t||32;for(var i=0;i<t;i++)n+=e.charAt(Math.floor(Math.random()*r));return n}function P(t,e){var r=e||location.href,n=new RegExp("(\\?|&)"+t+"=([^&#$\\s]+)"),i=r.match(n);return i&&i[2]}function C(t){var e=window.getComputedStyle(t),r="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return r||n}function R(t,e,r){return Math.min(Math.max(t,e),r)}function E(t){var e=/os (\d\d?_\d(_\d)?)/,r=e.exec(t);if(!r)return null;var n=r[1].split("_").map(function(t){return parseInt(t,10)});return{major:n[0],minor:n[1],patch:n[2]||0}}function O(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=e||window.location.href;var r=new RegExp("(\\?|#|&)"+t+"=([^&#]*)(&|#|$)"),n=e.match(r);return decodeURIComponent(n?n[2]:"")}function L(t){return t?p(t)?t.message:s(t)?t:t.errmsg||"请求失败,请稍后重试":"请求失败,请稍后重试"}function I(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],r=new RegExp("https?://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]"),n=0;n<t.length;n++){var i=t[n];if(!r.test(i))return;e.push(i.split("?")[0])}return e}function M(t){var e=JSON.parse(W()(t)),r=e.attrModules,n=void 0===r?{}:r,i=e.plan,o=n.applicant,s=n.insureds,c=n.hcpics,u=n.hctext,l=n.makeup,h=n.apphctext,f=n.apphcpics,d={},p=function(t){var e=null,r=null,n=null,i=null,o={},s={},c={};for(var u in t){var l=t[u].defaultValue,h=t[u].required,f=t[u].display;if(a(l)){var d=I(l);d&&(l=d)}1!==Number(h)&&1!==Number(f)||("idType"===u||"id"===u||"idValidType"===u||"idValidEndTime"===u||"idValidStartTime"===u?(e=e||{},e[u]=l):"socialInsAddr"===u||"socialInsDetail"===u||"socialInsPost"===u||"socialInsTel"===u?(r=r||{},r[u]=l):"residentAddr"===u||"residentDetail"===u||"residentPost"===u||"residentTel"===u?(n=n||{},n[u]=l):"officeAddr"===u||"officeDetail"===u||"officePost"===u||"officeTel"===u?(i=i||{},i[u]=l):"companyIdType"===u||"companyId"===u?(s=s||{},s[u]=l):"detail"===u?(c=c||{},c[u]=l):o[u]=l)}return e&&(o.certificate=e),r&&(o.socialIns=r),n&&(o.resident=n),i&&(o.office=i),s&&(o.companyCertificate=s),c&&(o.companyAddress=c),o};if(n.plan&&(i=p(n.plan)),o&&(d.applicant={},o&&(d.applicant=p(o))),s||i){d.insureds=[];for(var v=s||[""],m=0;m<v.length;m++){var g=v[m],y=null,b={};g&&(y=p(g)),y&&(b.insured=y),i&&(b.plan=i),d.insureds.push(b)}}if(u&&(d.hctext=p(u)),h&&(d.apphctext=p(h)),c&&(d.hcpics=p(c)),f&&(d.apphcpics=p(f)),l){d.makeup={};for(var _=l||[""],w=0;w<_.length;w++){var S=_[w],A=null;S&&(A=p(S)),A&&(d.makeup=j()(d.makeup,A))}}return d}function F(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,e=URL.createObjectURL(new Blob).toString();return URL.revokeObjectURL(e),(e.substring(e.lastIndexOf("/")+1)||"").replace(new RegExp("-","g"),"").substring(0,t)}r.d(e,"I",function(){return it}),r.d(e,"x",function(){return ot}),e.e=n,e.d=i,e.c=o,e.p=a,e.C=s,e.z=c,e.A=u,e.q=l,e.y=h,e.r=f,e.D=d,e.s=p,e.t=v,e.B=m,e.b=g,e.H=y,e.w=b,e.h=_,e.f=w,e.g=S,e.i=A,e.E=x,e.o=T,e.F=k,e.m=P,e.u=C,e.G=R,e.l=E,e.n=O,e.k=L,e.j=M,r.d(e,"v",function(){return at}),e.a=F;var D=r(28),j=r.n(D),N=r(80),U=r.n(N),B=r(58),W=r.n(B),q="undefined"!=typeof window,Y=q&&window.navigator.userAgent.toLowerCase(),z=Y&&/msie|trident/.test(Y),X=Y&&Y.indexOf("msie 9.0")>0,H=Y&&Y.indexOf("edge/")>0,G=Y&&Y.indexOf("android")>0,V=Y&&/iphone|ipad|ipod|ios/.test(Y),$=Y&&/arkweb|harmony/.test(Y),Q=Y&&/chrome\/\d+/.test(Y)&&!H,K=Y&&/MicroMessenger/i.test(Y),J=Y&&/wxwork/i.test(Y),Z=Y&&/mucxiaoyusan/i.test(Y),tt=Y&&/muckacabao/i.test(Y),et=Y&&/mucyanxuan/i.test(Y),rt=Z||tt,nt=Y&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(Y),it={isIE:z,isMobile:nt,isIE9:X,isEdge:H,isAndroid:G,isIOS:V,isHarmonyOS:$,isChrome:Q,isWx:K,isWxWork:J,isApp:rt,isXysApp:Z,isKcbApp:tt,isYxApp:et},ot=/MucWebAutoTester/.test(window.navigator.userAgent),at=function(){return!("undefined"==typeof window||!window)&&(/iphone/gi.test(window.navigator.userAgent)&&window.screen.height>=812)}},40:function(t,e,r){var n=r(10),i=r(2).document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},44:function(t,e,r){"use strict";var n=r(16),i=r(13),o=r(49),a=r(7),s=r(18),c=r(72),u=r(27),l=r(76),h=r(3)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,r,p,v,m,g){c(r,e,p);var y,b,_,w=function(t){if(!f&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},S=e+" Iterator",A="values"==v,x=!1,T=t.prototype,k=T[h]||T["@@iterator"]||v&&T[v],P=k||w(v),C=v?A?w("entries"):P:void 0,R="Array"==e?T.entries||k:k;if(R&&(_=l(R.call(new t)))!==Object.prototype&&_.next&&(u(_,S,!0),n||"function"==typeof _[h]||a(_,h,d)),A&&k&&"values"!==k.name&&(x=!0,P=function(){return k.call(this)}),n&&!g||!f&&!x&&T[h]||a(T,h,P),s[e]=P,s[S]=d,v)if(y={values:A?P:w("values"),keys:m?P:w("keys"),entries:C},g)for(b in y)b in T||o(T,b,y[b]);else i(i.P+i.F*(f||x),e,y);return y}},45:function(t,e,r){var n=r(9),i=r(73),o=r(33),a=r(31)("IE_PROTO"),s=function(){},c=function(){var t,e=r(40)("iframe"),n=o.length;for(e.style.display="none",r(60).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;n--;)delete c.prototype[o[n]];return c()};t.exports=Object.create||function(t,e){var r;return null!==t?(s.prototype=n(t),r=new s,s.prototype=null,r[a]=t):r=c(),void 0===e?r:i(r,e)}},46:function(t,e,r){var n=r(26);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},48:function(t,e,r){t.exports=!r(5)&&!r(12)(function(){return 7!=Object.defineProperty(r(40)("div"),"a",{get:function(){return 7}}).a})},49:function(t,e,r){t.exports=r(7)},5:function(t,e,r){t.exports=!r(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},50:function(t,e,r){var n=r(6),i=r(11),o=r(74)(!1),a=r(31)("IE_PROTO");t.exports=function(t,e){var r,s=i(t),c=0,u=[];for(r in s)r!=a&&n(s,r)&&u.push(r);for(;e.length>c;)n(s,r=e[c++])&&(~o(u,r)||u.push(r));return u}},51:function(t,e,r){t.exports={default:r(144),__esModule:!0}},52:function(t,e,r){var n=r(50),i=r(33).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},53:function(t,e,r){"use strict";var n=r(71)(!0);r(44)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},54:function(t,e,r){var n=r(11),i=r(52).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(n(t))}},55:function(t,e,r){"use strict";var n=r(2),i=r(6),o=r(5),a=r(13),s=r(49),c=r(79).KEY,u=r(12),l=r(32),h=r(27),f=r(21),d=r(3),p=r(36),v=r(37),m=r(86),g=r(81),y=r(9),b=r(10),_=r(24),w=r(11),S=r(34),A=r(20),x=r(45),T=r(54),k=r(87),P=r(35),C=r(8),R=r(15),E=k.f,O=C.f,L=T.f,I=n.Symbol,M=n.JSON,F=M&&M.stringify,D=d("_hidden"),j=d("toPrimitive"),N={}.propertyIsEnumerable,U=l("symbol-registry"),B=l("symbols"),W=l("op-symbols"),q=Object.prototype,Y="function"==typeof I&&!!P.f,z=n.QObject,X=!z||!z.prototype||!z.prototype.findChild,H=o&&u(function(){return 7!=x(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=E(q,e);n&&delete q[e],O(t,e,r),n&&t!==q&&O(q,e,n)}:O,G=function(t){var e=B[t]=x(I.prototype);return e._k=t,e},V=Y&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},$=function(t,e,r){return t===q&&$(W,e,r),y(t),e=S(e,!0),y(r),i(B,e)?(r.enumerable?(i(t,D)&&t[D][e]&&(t[D][e]=!1),r=x(r,{enumerable:A(0,!1)})):(i(t,D)||O(t,D,A(1,{})),t[D][e]=!0),H(t,e,r)):O(t,e,r)},Q=function(t,e){y(t);for(var r,n=m(e=w(e)),i=0,o=n.length;o>i;)$(t,r=n[i++],e[r]);return t},K=function(t,e){return void 0===e?x(t):Q(x(t),e)},J=function(t){var e=N.call(this,t=S(t,!0));return!(this===q&&i(B,t)&&!i(W,t))&&(!(e||!i(this,t)||!i(B,t)||i(this,D)&&this[D][t])||e)},Z=function(t,e){if(t=w(t),e=S(e,!0),t!==q||!i(B,e)||i(W,e)){var r=E(t,e);return!r||!i(B,e)||i(t,D)&&t[D][e]||(r.enumerable=!0),r}},tt=function(t){for(var e,r=L(w(t)),n=[],o=0;r.length>o;)i(B,e=r[o++])||e==D||e==c||n.push(e);return n},et=function(t){for(var e,r=t===q,n=L(r?W:w(t)),o=[],a=0;n.length>a;)!i(B,e=n[a++])||r&&!i(q,e)||o.push(B[e]);return o};Y||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(r){this===q&&e.call(W,r),i(this,D)&&i(this[D],t)&&(this[D][t]=!1),H(this,t,A(1,r))};return o&&X&&H(q,t,{configurable:!0,set:e}),G(t)},s(I.prototype,"toString",function(){return this._k}),k.f=Z,C.f=$,r(52).f=T.f=tt,r(25).f=J,P.f=et,o&&!r(16)&&s(q,"propertyIsEnumerable",J,!0),p.f=function(t){return G(d(t))}),a(a.G+a.W+a.F*!Y,{Symbol:I});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;rt.length>nt;)d(rt[nt++]);for(var it=R(d.store),ot=0;it.length>ot;)v(it[ot++]);a(a.S+a.F*!Y,"Symbol",{for:function(t){return i(U,t+="")?U[t]:U[t]=I(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){X=!0},useSimple:function(){X=!1}}),a(a.S+a.F*!Y,"Object",{create:K,defineProperty:$,defineProperties:Q,getOwnPropertyDescriptor:Z,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=u(function(){P.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return P.f(_(t))}}),M&&a(a.S+a.F*(!Y||u(function(){var t=I();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(b(e)||void 0!==t)&&!V(t))return g(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!V(e))return e}),n[1]=e,F.apply(M,n)}}),I.prototype[j]||r(7)(I.prototype,j,I.prototype.valueOf),h(I,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},56:function(t,e,r){r(77);for(var n=r(2),i=r(7),o=r(18),a=r(3)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],l=n[u],h=l&&l.prototype;h&&!h[a]&&i(h,a,u),o[u]=o.Array}},57:function(t,e,r){var n=r(13),i=r(0),o=r(12);t.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},58:function(t,e,r){t.exports={default:r(82),__esModule:!0}},59:function(t,e,r){var n=r(30),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},6:function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},60:function(t,e,r){var n=r(2).document;t.exports=n&&n.documentElement},61:function(t,e){},62:function(t,e,r){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var i=r(65),o=r.n(i),a=r(96),s=r.n(a),c=r(28),u=r.n(c),l=r(99),h=r.n(l),f=h.a,d=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,v=function(){try{if(!u.a)return!1;var t=new String("abc");if(t[5]="de","5"===s()(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==s()(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===o()(u()({},n)).join("")}catch(t){return!1}}()?u.a:function(t,e){for(var r,i,o=n(t),a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var s in r)d.call(r,s)&&(o[s]=r[s]);if(f){i=f(r);for(var c=0;c<i.length;c++)p.call(r,i[c])&&(o[i[c]]=r[i[c]])}}return o};e.a=v},64:function(t,e,r){"use strict";e.a={props:{zIndex:{type:Number,default:100},maskClosable:{type:Boolean,default:!1}}}},65:function(t,e,r){t.exports={default:r(94),__esModule:!0}},68:function(t,e,r){"use strict";function n(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=i(e),this.reject=i(r)}var i=r(39);t.exports.f=function(t){return new n(t)}},7:function(t,e,r){var n=r(8),i=r(20);t.exports=r(5)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},70:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},71:function(t,e,r){var n=r(30),i=r(29);t.exports=function(t){return function(e,r){var o,a,s=String(i(e)),c=n(r),u=s.length;return c<0||c>=u?t?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},72:function(t,e,r){"use strict";var n=r(45),i=r(20),o=r(27),a={};r(7)(a,r(3)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(a,{next:i(1,r)}),o(t,e+" Iterator")}},73:function(t,e,r){var n=r(8),i=r(9),o=r(15);t.exports=r(5)?Object.defineProperties:function(t,e){i(t);for(var r,a=o(e),s=a.length,c=0;s>c;)n.f(t,r=a[c++],e[r]);return t}},74:function(t,e,r){var n=r(11),i=r(59),o=r(75);t.exports=function(t){return function(e,r,a){var s,c=n(e),u=i(c.length),l=o(a,u);if(t&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}}},75:function(t,e,r){var n=r(30),i=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?i(t+e,0):o(t,e)}},76:function(t,e,r){var n=r(6),i=r(24),o=r(31)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},77:function(t,e,r){"use strict";var n=r(78),i=r(70),o=r(18),a=r(11);t.exports=r(44)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,r):"values"==e?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},78:function(t,e){t.exports=function(){}},79:function(t,e,r){var n=r(21)("meta"),i=r(10),o=r(6),a=r(8).f,s=0,c=Object.isExtensible||function(){return!0},u=!r(12)(function(){return c(Object.preventExtensions({}))}),l=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!c(t))return"F";if(!e)return"E";l(t)}return t[n].i},f=function(t,e){if(!o(t,n)){if(!c(t))return!0;if(!e)return!1;l(t)}return t[n].w},d=function(t){return u&&p.NEED&&c(t)&&!o(t,n)&&l(t),t},p=t.exports={KEY:n,NEED:!1,fastKey:h,getWeak:f,onFreeze:d}},8:function(t,e,r){var n=r(9),i=r(48),o=r(34),a=Object.defineProperty;e.f=r(5)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},80:function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(88),o=n(i),a=r(90),s=n(a),c="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===c(o.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":c(t)}},81:function(t,e,r){var n=r(26);t.exports=Array.isArray||function(t){return"Array"==n(t)}},82:function(t,e,r){var n=r(0),i=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},83:function(t,e,r){r(84),t.exports=r(0).Object.assign},84:function(t,e,r){var n=r(13);n(n.S+n.F,"Object",{assign:r(85)})},85:function(t,e,r){"use strict";var n=r(5),i=r(15),o=r(35),a=r(25),s=r(24),c=r(46),u=Object.assign;t.exports=!u||r(12)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[r]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var r=s(t),u=arguments.length,l=1,h=o.f,f=a.f;u>l;)for(var d,p=c(arguments[l++]),v=h?i(p).concat(h(p)):i(p),m=v.length,g=0;m>g;)d=v[g++],n&&!f.call(p,d)||(r[d]=p[d]);return r}:u},86:function(t,e,r){var n=r(15),i=r(35),o=r(25);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,s=r(t),c=o.f,u=0;s.length>u;)c.call(t,a=s[u++])&&e.push(a);return e}},87:function(t,e,r){var n=r(25),i=r(20),o=r(11),a=r(34),s=r(6),c=r(48),u=Object.getOwnPropertyDescriptor;e.f=r(5)?u:function(t,e){if(t=o(t),e=a(e,!0),c)try{return u(t,e)}catch(t){}if(s(t,e))return i(!n.f.call(t,e),t[e])}},88:function(t,e,r){t.exports={default:r(89),__esModule:!0}},89:function(t,e,r){r(53),r(56),t.exports=r(36).f("iterator")},9:function(t,e,r){var n=r(10);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},90:function(t,e,r){t.exports={default:r(91),__esModule:!0}},91:function(t,e,r){r(55),r(61),r(92),r(93),t.exports=r(0).Symbol},92:function(t,e,r){r(37)("asyncIterator")},93:function(t,e,r){r(37)("observable")},94:function(t,e,r){r(95),t.exports=r(0).Object.keys},95:function(t,e,r){var n=r(24),i=r(15);r(57)("keys",function(){return function(t){return i(n(t))}})},96:function(t,e,r){t.exports={default:r(97),__esModule:!0}},97:function(t,e,r){r(98);var n=r(0).Object;t.exports=function(t){return n.getOwnPropertyNames(t)}},98:function(t,e,r){r(57)("getOwnPropertyNames",function(){return r(54).f})},99:function(t,e,r){t.exports={default:r(100),__esModule:!0}}})});