snipe-it/public/js/dist/bootstrap-table.js

17 lines
494 KiB
JavaScript
Raw Normal View History

function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):(t=t||self,t.BootstrapTable=e(t.jQuery))}(this,function(t){"use strict";function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function n(t,e){return RegExp(t,e)}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function s(t,e){return u(t)||f(t,e)||p()}function l(t){return c(t)||h(t)||d()}function c(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function u(t){if(Array.isArray(t))return t}function h(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function f(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}t=t&&t.hasOwnProperty("default")?t.default:t;var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},m=function(t){return t&&t.Math==Math&&t},v=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof g&&g)||Function("return this")(),y=function(t){try{return!!t()}catch(t){return!0}},b=!y(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),w={}.propertyIsEnumerable,x=Object.getOwnPropertyDescriptor,S=x&&!w.call({1:2},1),k=S?function(t){var e=x(this,t);return!!e&&e.enumerable}:w,C={f:k},O=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},T={}.toString,_=function(t){return T.call(t).slice(8,-1)},A="".split,P=y(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==_(t)?A.call(t,""):Object(t)}:Object,E=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},I=function(t){return P(E(t))},j=function(t){return"object"==typeof t?null!==t:"function"==typeof t},R=function(t,e){if(!j(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!j(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!j(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!j(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},F={}.hasOwnProperty,N=function(t,e){return F.call(t,e)},q=v.document,B=j(q)&&j(q.createElement),D=function(t){return B?q.createElement(t):{}},L=!b&&!y(function(){return 7!=Object.defineProperty(D("div"),"a",{get:function(){return 7}}).a}),M=Object.getOwnPropertyDescriptor,z=b?M:function(t,e){if(t=I(t),e=R(e,!0),L)try{return M(t,e)}catch(t){}if(N(t,e))return O(!C.f.call(t,e),t[e])},$={f:z},H=function(t){if(!j(t))throw TypeError(String(t)+" is not an object");return t},U=Object.defineProperty,W=b?U:function(t,e,n){if(H(t),e=R(e,!0),H(n),L)try{return U(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t},V={f:W},G=b?function(t,e,n){return V.f(t,e,O(1,n))}:function(t,e,n){return t[e]=n,t},X=function(t,e){try{G(v,t,e)}catch(n){v[t]=e}return
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},ki=Be.forEach,Ci=Xn("forEach")?function(t){return ki(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;for(var Oi in Si){var Ti=v[Oi],_i=Ti&&Ti.prototype;if(_i&&_i.forEach!==Ci)try{G(_i,"forEach",Ci)}catch(t){_i.forEach=Ci}}var Ai=ke("iterator"),Pi=ke("toStringTag"),Ei=xr.values;for(var Ii in Si){var ji=v[Ii],Ri=ji&&ji.prototype;if(Ri){if(Ri[Ai]!==Ei)try{G(Ri,Ai,Ei)}catch(t){Ri[Ai]=Ei}if(Ri[Pi]||G(Ri,Pi,Ii),Si[Ii])for(var Fi in xr)if(Ri[Fi]!==xr[Fi])try{G(Ri,Fi,xr[Fi])}catch(t){Ri[Fi]=xr[Fi]}}}var Ni=4;try{var qi=t.fn.dropdown.Constructor.VERSION;void 0!==qi&&(Ni=parseInt(qi,10))}catch(t){}var Bi={3:{iconsPrefix:"glyphicon",icons:{paginationSwitchDown:"glyphicon-collapse-down icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up icon-chevron-up",refresh:"glyphicon-refresh icon-refresh",toggleOff:"glyphicon-list-alt icon-list-alt",toggleOn:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th icon-th",detailOpen:"glyphicon-plus icon-plus",detailClose:"glyphicon-minus icon-minus",fullscreen:"glyphicon-fullscreen",search:"glyphicon-search",clearSearch:"glyphicon-trash"},classes:{buttonsPrefix:"btn",buttons:"default",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"pull",inputGroup:"input-group",inputPrefix:"input-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['<ul class="dropdown-menu" role="menu">',"</ul>"],toolbarDropdownItem:'<li class="dropdown-item-marker" role="menuitem"><label>%s</label></li>',toolbarDropdownSeparator:'<li class="divider"></li>',pageDropdown:['<ul class="dropdown-menu" role="menu">',"</ul>"],pageDropdownItem:'<li role="menuitem" class="%s"><a href="#">%s</a></li>',dropdownCaret:'<span class="caret"></span>',pagination:['<ul class="pagination%s">',"</ul>"],paginationItem:'<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',icon:'<i class="%s %s"></i>',inputGroup:'<div class="input-group">%s<span class="input-group-btn">%s</span></div>',searchInput:'<input class="%s%s" type="text" placeholder="%s">',searchButton:'<button class="%s" type="button" name="search" title="%s">%s %s</button>',searchClearButton:'<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'}},4:{iconsPrefix:"fa",icons:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['<div class="dropdown-menu dropdown-menu-right">',"</div>"],toolbarDropdownItem:'<label class="dropdown-item dropdown-item-marker">%s</label>',pageDropdown:['<div class="dropdown-menu">',"</div>"],pageDropdownItem:'<a class="dropdown-item %s" href="#">%s</a>',toolbarDropdownSeparator:'<div class="dropdown-divider"></div>',dropdownCaret:'<span class="caret"></span>',pagination:['<ul class="pagination%s">',"</ul>"],paginationItem:'<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',icon:'<i class="%s %s"></i>',inputGroup:'<div class="input-group">%s<div clas
fullscreen:'<button class="'.concat(this.constants.buttonsClass,'" type="button" name="fullscreen"\n aria-label="Fullscreen" title="').concat(o.formatFullscreen(),'">\n ').concat(o.showButtonIcons?Wi.sprintf(this.constants.html.icon,o.iconsPrefix,o.icons.fullscreen):"","\n ").concat(o.showButtonText?o.formatFullscreen():"","\n </button>"),columns:function(){var t=[];if(t.push('<div class="keep-open '.concat(n.constants.classes.buttonsDropdown,'" title="').concat(o.formatColumns(),'">\n <button class="').concat(n.constants.buttonsClass,' dropdown-toggle" type="button" data-toggle="dropdown"\n aria-label="Columns" title="').concat(o.formatColumns(),'">\n ').concat(o.showButtonIcons?Wi.sprintf(n.constants.html.icon,o.iconsPrefix,o.icons.columns):"","\n ").concat(o.showButtonText?o.formatColumns():"","\n ").concat(n.constants.html.dropdownCaret,"\n </button>\n ").concat(n.constants.html.toolbarDropdown[0])),o.showColumnsSearch&&(t.push(Wi.sprintf(n.constants.html.toolbarDropdownItem,Wi.sprintf('<input type="text" class="%s" id="columnsSearch" placeholder="%s" autocomplete="off">',n.constants.classes.input,o.formatSearch()))),t.push(n.constants.html.toolbarDropdownSeparator)),o.showColumnsToggleAll){var e=n.getVisibleColumns().length===n.columns.filter(function(t){return!n.isSelectionColumn(t)}).length;t.push(Wi.sprintf(n.constants.html.toolbarDropdownItem,Wi.sprintf('<input type="checkbox" class="toggle-all" %s> <span>%s</span>',e?'checked="checked"':"",o.formatColumnsToggleAll()))),t.push(n.constants.html.toolbarDropdownSeparator)}var r=0;return n.columns.forEach(function(t,e){t.visible&&r++}),n.columns.forEach(function(e,i){if(!n.isSelectionColumn(e)&&(!o.cardView||e.cardVisible)){var a=e.visible?' checked="checked"':"",l=r<=n.options.minimumCountColumns&&a?' disabled="disabled"':"";e.switchable&&(t.push(Wi.sprintf(n.constants.html.toolbarDropdownItem,Wi.sprintf('<input type="checkbox" data-field="%s" value="%s"%s%s> <span>%s</span>',e.field,i,a,l,e.title))),s++)}}),t.push(n.constants.html.toolbarDropdown[1],"</div>"),t.join("")}()};"string"==typeof o.buttonsOrder&&(o.buttonsOrder=o.buttonsOrder.replace(/\[|\]| |'/g,"").toLowerCase().split(","));var c=!0,u=!1,h=void 0;try{for(var f,d=o.buttonsOrder[Symbol.iterator]();!(c=(f=d.next()).done);c=!0){var p=f.value;o["show"+p.charAt(0).toUpperCase()+p.substring(1)]&&i.push(l[p])}}catch(t){u=!0,h=t}finally{try{c||null==d.return||d.return()}finally{if(u)throw h}}if(i.push("</div>"),(this.showToolbar||i.length>2)&&this.$toolbar.append(i.join("")),o.showPaginationSwitch&&this.$toolbar.find('button[name="paginationSwitch"]').off("click").on("click",function(){return n.togglePagination()}),o.showFullscreen&&this.$toolbar.find('button[name="fullscreen"]').off("click").on("click",function(){return n.toggleFullscreen()}),o.showRefresh&&this.$toolbar.find('button[name="refresh"]').off("click").on("click",function(){return n.refresh()}),o.showToggle&&this.$toolbar.find('button[name="toggle"]').off("click").on("click",function(){n.toggleView()}),o.showColumns){e=this.$toolbar.find(".keep-open");var g=e.find('input[type="checkbox"]:not(".toggle-all")'),m=e.find('input[type="checkbox"].toggle-all');if(s<=o.minimumCountColumns&&e.find("input").prop("disabled",!0),e.find("li, label").off("click").on("click",function(t){t.stopImmediatePropagation()}),g.off("click").on("click",function(e){var r=e.currentTarget,o=t(r);n._toggleColumn(o.val(),o.prop("checked"),!1),n.trigger("column-switch",o.data("field"),o.prop("checked")),m.prop("checked",g.filter(":checked").length===n.columns.filter(function(t){return!n.isSelectionColumn(t)}).length)}),m.off("click").on("click",function(e){var r=e.currentTarget;n._toggleAllColumns(t(r).prop("checked"))}),o.showColumnsSearch){var v=e.find("#columnsSearch"),y=e.find(".dropdown-item-marker");v.on("keyup paste change",function(e){var n=e.currentTarget,r=t(n),o=r.val().toLowerCase();y.show(),g.each(function(e,n){var r=t(n),i=r.parents(".dropdown-item-marker");i.text().toLower
t.trigger("scroll-body",t.$tableBody)})}},{key:"getVisibleFields",value:function(){var t=[],e=!0,n=!1,r=void 0;try{for(var o,i=this.header.fields[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var a=o.value,s=this.columns[this.fieldsColumnsIndex[a]];s&&s.visible&&t.push(a)}}catch(t){n=!0,r=t}finally{try{e||null==i.return||i.return()}finally{if(n)throw r}}return t}},{key:"initHiddenRows",value:function(){this.hiddenRows=[]}},{key:"getOptions",value:function(){var e=t.extend({},this.options);return delete e.data,t.extend(!0,{},e)}},{key:"refreshOptions",value:function(e){Wi.compareObjects(this.options,e,!0)||(this.options=t.extend(this.options,e),this.trigger("refresh-options",this.options),this.destroy(),this.init())}},{key:"getData",value:function(t){var e=this.options.data;if(!(this.searchText||this.options.customSearch||this.options.sortName)&&Wi.isEmptyObject(this.filterColumns)&&Wi.isEmptyObject(this.filterColumnsPartial)||t&&t.unfiltered||(e=this.data),t&&t.useCurrentPage&&(e=e.slice(this.pageFrom-1,this.pageTo)),t&&!t.includeHiddenRows){var n=this.getHiddenRows();e=e.filter(function(t){return-1===Wi.findIndex(n,t)})}return e}},{key:"getSelections",value:function(){var t=this;return this.data.filter(function(e){return!0===e[t.header.stateField]})}},{key:"getAllSelections",value:function(){var t=this;return this.options.data.filter(function(e){return!0===e[t.header.stateField]})}},{key:"load",value:function(t){var e=!1,n=t;this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalRows=n[this.options.totalField]),this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalNotFiltered=n[this.options.totalNotFilteredField]),e=n.fixedScroll,n=Array.isArray(n)?n:n[this.options.dataField],this.initData(n),this.initSearch(),this.initPagination(),this.initBody(e)}},{key:"append",value:function(t){this.initData(t,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"prepend",value:function(t){this.initData(t,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"remove",value:function(t){var e,n,r=this.options.data.length;if(t.hasOwnProperty("field")&&t.hasOwnProperty("values")){for(e=r-1;e>=0;e--)n=this.options.data[e],n.hasOwnProperty(t.field)&&t.values.includes(n[t.field])&&(this.options.data.splice(e,1),"server"===this.options.sidePagination&&(this.options.totalRows-=1));r!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}}},{key:"removeAll",value:function(){this.options.data.length>0&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"insertRow",value:function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("row")&&(this.options.data.splice(t.index,0,t.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},{key:"updateRow",value:function(e){var n=Array.isArray(e)?e:[e],r=!0,o=!1,i=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;l.hasOwnProperty("index")&&l.hasOwnProperty("row")&&(t.extend(this.options.data[l.index],l.row),l.hasOwnProperty("replace")&&l.replace?this.options.data[l.index]=l.row:t.extend(this.options.data[l.index],l.row))}}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"getRowByUniqueId",value:function(t){var e,n,r,o=this.options.uniqueId,i=this.options.data.length,a=t,s=null;for(e=i-1;e>=0;e--){if(n=this.options.data[e],n.hasOwnProperty(o))r=n[o];else{if(!n._data||!n._data.hasOwnProperty(o))continue;r=n._data[o]}if("string"==typeof r?a=a.toString():"number"==typeof r&&(Number(r)===r&&r%1==0?a=parseInt(a):r===Number(r)&&0!==r&&(a=parseFloat(a))),r===a){s=n;break}}return s}},{key:"updateByUniqueId",value:function(e){var n=Array.isArray(e)?e:[e],r=!0,o=!1,i=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if(l.hasOwnProperty("id")&&l.hasOwnPropert
getOwnPropertySymbols:function(t){return zt.f(ne(t))}}),Ue){var dn=!Zt||v(function(){var t=He();return"[null]"!=Ue([t])||"{}"!=Ue({a:t})||"{}"!=Ue(Object(t))});Qt({target:"JSON",stat:!0,forced:dn},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(I(e)||void 0!==t)&&!on(t))return ee(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!on(e))return e}),o[1]=e,Ue.apply(null,o)}})}He.prototype[Le]||V(He.prototype,Le,He.prototype.valueOf),Pe(He,"Symbol"),ct[De]=!0;var pn=W.f,gn=m.Symbol;if(y&&"function"==typeof gn&&(!("description"in gn.prototype)||void 0!==gn().description)){var mn={},vn=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof vn?new gn(t):void 0===t?gn():gn(t);return""===t&&(mn[e]=!0),e};Ht(vn,gn);var yn=vn.prototype=gn.prototype;yn.constructor=vn;var bn=yn.toString,wn="Symbol(test)"==String(gn("test")),xn=/^Symbol\((.*)\)[^)]+$/;pn(yn,"description",{configurable:!0,get:function(){var t=I(this)?this.valueOf():this,e=bn.call(t);if(F(mn,t))return"";var n=wn?e.slice(7,-1):e.replace(xn,"$1");return""===n?void 0:n}}),Qt({global:!0,forced:!0},{Symbol:vn})}Te("iterator");var Sn,kn,Cn=function(t,e,n){var r=j(e);r in t?W.f(t,r,C(0,n)):t[r]=n},On=kt("navigator","userAgent")||"",Tn=m.process,_n=Tn&&Tn.versions,An=_n&&_n.v8;An?(Sn=An.split("."),kn=Sn[0]+Sn[1]):On&&(!(Sn=On.match(/Edge\/(\d+)/))||Sn[1]>=74)&&(Sn=On.match(/Chrome\/(\d+)/))&&(kn=Sn[1]);var Pn=kn&&+kn,En=Se("species"),In=function(t){return Pn>=51||!v(function(){var e=[],n=e.constructor={};return n[En]=function(){return{foo:1}},1!==e[t](Boolean).foo})},jn=Se("isConcatSpreadable"),Rn=Pn>=51||!v(function(){var t=[];return t[jn]=!1,t.concat()[0]!==t}),Fn=In("concat"),Nn=function(t){if(!I(t))return!1;var e=t[jn];return void 0!==e?!!e:ee(t)};Qt({target:"Array",proto:!0,forced:!Rn||!Fn},{concat:function(t){var e,n,r,o,i,a=ne(this),s=Re(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?a:arguments[e],Nn(i)){if(o=At(i.length),l+o>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in i&&Cn(s,l,i[n])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Cn(s,l++,i)}return s.length=l,s}});var qn=Se("unscopables"),Bn=Array.prototype;void 0==Bn[qn]&&W.f(Bn,qn,{configurable:!0,value:fe(null)});var Dn=function(t){Bn[qn][t]=!0},Ln=qe.find,Mn=!0;"find"in[]&&Array(1).find(function(){Mn=!1}),Qt({target:"Array",proto:!0,forced:Mn},{find:function(t){return Ln(this,t,arguments.length>1?arguments[1]:void 0)}}),Dn("find");var zn,$n,Hn,Un=!v(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Wn=lt("IE_PROTO"),Vn=Object.prototype,Gn=Un?Object.getPrototypeOf:function(t){return t=ne(t),F(t,Wn)?t[Wn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Vn:null},Xn=Se("iterator"),Yn=!1,Kn=function(){return this};[].keys&&(Hn=[].keys(),"next"in Hn?($n=Gn(Gn(Hn)))!==Object.prototype&&(zn=$n):Yn=!0),void 0==zn&&(zn={}),F(zn,Xn)||V(zn,Xn,Kn);var Jn={IteratorPrototype:zn,BUGGY_SAFARI_ITERATORS:Yn},Qn=Jn.IteratorPrototype,Zn=function(t,e,n){var r=e+" Iterator";return t.prototype=fe(Qn,{next:C(1,n)}),Pe(t,r,!1),t},tr=function(t){if(!I(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},er=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return $(n),tr(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),nr=Jn.IteratorPrototype,rr=Jn.BUGGY_SAFARI_ITERATORS,or=Se("iterator"),ir=function(){return this},ar=function(t,e,n,r,o,i,a){Zn(n,e,r);var s,l,c,u=function(t){if(t===o&&g)return g;if(!rr&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,d=t.prototype,p=d[or]||d["@@iterator"]||o&&d[o],g=!rr&&p||u(o),m="Array"==e?d.entries||p
i.lastIndex+=r[0].length):i.lastIndex=0:en&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),rn&&r&&r.length>1&&Ze.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r});var on=tn;Qt({target:"RegExp",proto:!0,forced:/./.exec!==on},{exec:on});var an=se("species"),sn=!m(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),ln=function(){return"$0"==="a".replace(/./,"$0")}(),cn=!m(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),un=function(t,e,n,r){var o=se(t),i=!m(function(){var e={};return e[o]=function(){return 7},7!=""[t](e)}),a=i&&!m(function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[an]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e});if(!i||!a||"replace"===t&&(!sn||!ln)||"split"===t&&!cn){var s=/./[o],l=n(o,""[t],function(t,e,n,r,o){return e.exec===on?i&&!o?{done:!0,value:s.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}},{REPLACE_KEEPS_$0:ln}),c=l[0],u=l[1];wt(String.prototype,t,c),wt(RegExp.prototype,o,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}r&&W(RegExp.prototype[o],"sham",!0)},hn=function(t){return function(e,n){var r,o,i=String(A(e)),a=Tt(n),s=i.length;return a<0||a>=s?t?"":void 0:(r=i.charCodeAt(a),r<55296||r>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):r:t?i.slice(a,a+2):o-56320+(r-55296<<10)+65536)}},fn={codeAt:hn(!1),charAt:hn(!0)},dn=fn.charAt,pn=function(t,e,n){return e+(n?dn(t,e).length:1)},gn=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==O(t))throw TypeError("RegExp#exec called on incompatible receiver");return on.call(t,e)},mn=Math.max,vn=Math.min,yn=Math.floor,bn=/\$([$&'`]|\d\d?|<[^>]*>)/g,wn=/\$([$&'`]|\d\d?)/g,xn=function(t){return void 0===t?t:String(t)};un("replace",2,function(t,e,n,r){function o(t,n,r,o,i,a){var s=r+t.length,l=o.length,c=wn;return void 0!==i&&(i=te(i),c=bn),e.call(a,c,function(e,a){var c;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":c=i[a.slice(1,-1)];break;default:var u=+a;if(0===u)return e;if(u>l){var h=yn(u/10);return 0===h?e:h<=l?void 0===o[h-1]?a.charAt(1):o[h-1]+a.charAt(1):e}c=o[u-1]}return void 0===c?"":c})}return[function(n,r){var o=A(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,i){if(r.REPLACE_KEEPS_$0||"string"==typeof i&&-1===i.indexOf("$0")){var a=n(e,t,this,i);if(a.done)return a.value}var s=z(t),l=String(this),c="function"==typeof i;c||(i=String(i));var u=s.global;if(u){var h=s.unicode;s.lastIndex=0}for(var f=[];;){var d=gn(s,l);if(null===d)break;if(f.push(d),!u)break;""===String(d[0])&&(s.lastIndex=pn(l,At(s.lastIndex),h))}for(var p="",g=0,m=0;m<f.length;m++){d=f[m];for(var v=String(d[0]),y=mn(vn(Tt(d.index),l.length),0),b=[],w=1;w<d.length;w++)b.push(xn(d[w]));var x=d.groups;if(c){var S=[v].concat(b,y,l);void 0!==x&&S.push(x);var k=String(i.apply(void 0,S))}else k=o(v,l,y,b,x,i);y>=g&&(p+=l.slice(g,y)+k,g=y+v.length)}return p+l.slice(g)}]});var Sn=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};un("search",1,function(t,e,n){return[function(e){var n=A(this),r=void 0==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=z(t),i=String(this),a=o.lastIndex;Sn(a,0)||(o.lastIndex=0);var s=gn(o,i);return Sn(o.lastIndex,a)||(o.lastIndex=a),null===s?-1:s.index}]});var kn=se("match"),Cn=function(t){var e;return E(t)&&(void 0!==(e=t[kn])?!!e:"RegExp"==O(t))},On=se("species"),Tn=function(t,e){var n,r=z(t).constructor;return void 0===r||void 0==(n=z(r)[On])?e:xe(n)},_n=[].push,An=Math.min,Pn=!m(function(){return!RegExp(4294967295,"y")});un("split",2,function(t,e,n){var r
;var r=1,o=t;return""!==e.thousandsSeparator&&(o=o.replace(new RegExp("([\\d])"+e.thousandsSeparator+"([\\d])","g"),"$1$2")),"."!==e.decimalMark&&(o=o.replace(new RegExp("([\\d])"+e.decimalMark+"([\\d])","g"),"$1.$2")),o=o.replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""}),isFinite(n=Number(o))?n/r:(o=o.replace(/[(](.*)[)]/,function(t,e){return r=-r,e}),isFinite(n=Number(o))?n/r:n)}function L(t){var e,n,r,o=0;if(0===t.length)return o;for(e=0,r=t.length;e<r;e++)n=t.charCodeAt(e),o=(o<<5)-o+n,o|=0;return o}function M(t,e,n,r,o,i){var a=!0;if("function"==typeof W.onBeforeSaveToFile&&"boolean"!=typeof(a=W.onBeforeSaveToFile(t,e,n,r,o))&&(a=!0),a)try{U=new Blob([t],{type:n+";charset="+r}),saveAs(U,e,!1===i),"function"==typeof W.onAfterSaveToFile&&W.onAfterSaveToFile(t,e)}catch(a){z(e,"data:"+n+(r.length?";charset="+r:"")+(o.length?";"+o:"")+",",i?"\ufeff"+t:t)}}function z(t,e,n){var r=window.navigator.userAgent;if(!1!==t&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(new Blob([n]),t);else if(!1!==t&&(r.indexOf("MSIE ")>0||r.match(/Trident.*rv\:11\./))){var o=document.createElement("iframe");if(o){document.body.appendChild(o),o.setAttribute("style","display:none"),o.contentDocument.open("txt/plain","replace"),o.contentDocument.write(n),o.contentDocument.close(),o.contentWindow.focus();var i=t.substr(t.lastIndexOf(".")+1);switch(i){case"doc":case"json":case"png":case"pdf":case"xls":case"xlsx":t+=".txt"}o.contentDocument.execCommand("SaveAs",!0,t),document.body.removeChild(o)}}else{var a=document.createElement("a");if(a){var s=null;if(a.style.display="none",!1!==t?a.download=t:a.target="_blank","object"==typeof n){window.URL=window.URL||window.webkitURL;var l=[];l.push(n),s=window.URL.createObjectURL(new Blob(l,{type:e})),a.href=s}else e.toLowerCase().indexOf("base64,")>=0?a.href=e+H(n):a.href=e+encodeURIComponent(n);document.body.appendChild(a),document.createEvent?(null===Y&&(Y=document.createEvent("MouseEvents")),Y.initEvent("click",!0,!1),a.dispatchEvent(Y)):document.createEventObject?a.fireEvent("onclick"):"function"==typeof a.onclick&&a.onclick(),setTimeout(function(){s&&window.URL.revokeObjectURL(s),document.body.removeChild(a),"function"==typeof W.onAfterSaveToFile&&W.onAfterSaveToFile(n,t)},100)}}}function $(t){if("string"==typeof t){t=t.replace(/\x0d\x0a/g,"\n");for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e+=String.fromCharCode(r):r>127&&r<2048?(e+=String.fromCharCode(r>>6|192),e+=String.fromCharCode(63&r|128)):(e+=String.fromCharCode(r>>12|224),e+=String.fromCharCode(r>>6&63|128),e+=String.fromCharCode(63&r|128))}return e}return t}function H(t){var e,n,r,o,i,a,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0;for(t=$(t);u<t.length;)e=t.charCodeAt(u++),n=t.charCodeAt(u++),r=t.charCodeAt(u++),o=e>>2,i=(3&e)<<4|n>>4,a=(15&n)<<2|r>>6,s=63&r,isNaN(n)?a=s=64:isNaN(r)&&(s=64),c=c+l.charAt(o)+l.charAt(i)+l.charAt(a)+l.charAt(s);return c}var U,W={csvEnclosure:'"',csvSeparator:",",csvUseBOM:!0,date:{html:"dd/mm/yyyy"},displayTableName:!1,escape:!1,exportHiddenCells:!1,fileName:"tableExport",htmlContent:!1,htmlHyperlink:"content",ignoreColumn:[],ignoreRow:[],jsonScope:"all",jspdf:{orientation:"p",unit:"pt",format:"a4",margins:{left:20,right:10,top:10,bottom:10},onDocCreated:null,autotable:{styles:{cellPadding:2,rowHeight:12,fontSize:8,fillColor:255,textColor:50,fontStyle:"normal",overflow:"ellipsize",halign:"inherit",valign:"middle"},headerStyles:{fillColor:[52,73,94],textColor:255,fontStyle:"bold",halign:"inherit",valign:"middle"},alternateRowStyles:{fillColor:245},tableExport:{doc:null,onAfterAutotable:null,onBeforeAutotable:null,onAutotableText:null,onTable:null,outputImages:!0}}},mso:{fileFormat:"xlshtml",onMsoNumberFormat:null,pageFormat:"a4",pageOrientation:"portrait",rtl:!1,styles:[],worksheetName:"",xslx:{formatId:{date:14,numbers:2}}},numbers:{html:{decimalMark:".",thousandsSeparator:","},output:{decimalMark:".",thousandsSeparator:","}},onAfterSaveToFile:null,onBeforeSaveToFile:null,onCellData:null,onCellHtmlData:null,onCellHtmlHyperlink
return ct(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ht=function(){X("/Producer (jsPDF "+r.version+")");for(var t in $)$.hasOwnProperty(t)&&$[t]&&X("/"+t.substr(0,1).toUpperCase()+t.substr(1)+" ("+ut($[t])+")");var e=new Date,n=e.getTimezoneOffset(),o=n<0?"+":"-",i=Math.floor(Math.abs(n/60)),a=Math.abs(n%60),s=[o,G(i),"'",G(a),"'"].join("");X(["/CreationDate (D:",e.getFullYear(),G(e.getMonth()+1),G(e.getDate()),G(e.getHours()),G(e.getMinutes()),G(e.getSeconds()),s,")"].join(""))},ft=function(){switch(X("/Type /Catalog"),X("/Pages 1 0 R"),w||(w="fullwidth"),w){case"fullwidth":X("/OpenAction [3 0 R /FitH null]");break;case"fullheight":X("/OpenAction [3 0 R /FitV null]");break;case"fullpage":X("/OpenAction [3 0 R /Fit]");break;case"original":X("/OpenAction [3 0 R /XYZ null null 1]");break;default:var t=""+w;"%"===t.substr(t.length-1)&&(w=parseInt(w)/100),"number"==typeof w&&X("/OpenAction [3 0 R /XYZ null null "+W(w)+"]")}switch(x||(x="continuous"),x){case"continuous":X("/PageLayout /OneColumn");break;case"single":X("/PageLayout /SinglePage");break;case"two":case"twoleft":X("/PageLayout /TwoColumnLeft");break;case"tworight":X("/PageLayout /TwoColumnRight")}b&&X("/PageMode /"+b),U.publish("putCatalog")},dt=function(){X("/Size "+(A+1)),X("/Root "+A+" 0 R"),X("/Info "+(A-1)+" 0 R")},pt=function(t,e){var n="string"==typeof e&&e.toLowerCase();if("string"==typeof t){var r=t.toLowerCase();s.hasOwnProperty(r)&&(t=s[r][0]/p,e=s[r][1]/p)}if(Array.isArray(t)&&(e=t[1],t=t[0]),n){switch(n.substr(0,1)){case"l":e>t&&(n="s");break;case"p":t>e&&(n="s")}"s"===n&&(g=t,t=e,e=g)}P=!0,F[++R]=[],q[R]={width:Number(t)||v,height:Number(e)||y},N[R]={},vt(R)},gt=function(){pt.apply(this,arguments),X(W(_*p)+" w"),X(C),0!==L&&X(L+" J"),0!==M&&X(M+" j"),U.publish("addPage",{pageNumber:R})},mt=function(t){t>0&&t<=R&&(F.splice(t,1),q.splice(t,1),R--,m>R&&(m=R),this.setPage(m))},vt=function(t){t>0&&t<=R&&(m=t,v=q[t].width,y=q[t].height)},yt=function(t,e){var n;switch(t=void 0!==t?t:I[d].fontName,e=void 0!==e?e:I[d].fontStyle,void 0!==t&&(t=t.toLowerCase()),t){case"sans-serif":case"verdana":case"arial":case"helvetica":t="helvetica";break;case"fixed":case"monospace":case"terminal":case"courier":t="courier";break;case"serif":case"cursive":case"fantasy":default:t="times"}try{n=j[t][e]}catch(t){}return n||null==(n=j.times[e])&&(n=j.times.normal),n},bt=function(){P=!1,A=2,z=0,B=[],E=[],D=[],U.publish("buildDocument"),X("%PDF-"+i),tt(),at(),it(),Y(),X("<<"),ht(),X(">>"),X("endobj"),Y(),X("<<"),ft(),X(">>"),X("endobj");var t,e=z,n="0000000000";for(X("xref"),X("0 "+(A+1)),X(n+" 65535 f "),t=1;t<=A;t++){var r=E[t];X("function"==typeof r?(n+E[t]()).slice(-10)+" 00000 n ":(n+E[t]).slice(-10)+" 00000 n ")}return X("trailer"),X("<<"),dt(),X(">>"),X("startxref"),X(""+e),X("%%EOF"),P=!0,B.join("\n")},wt=function(t){var e="S";return"F"===t?e="f":"FD"===t||"DF"===t?e="B":"f"!==t&&"f*"!==t&&"B"!==t&&"B*"!==t||(e=t),e},xt=function(){for(var t=bt(),e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},St=function(){return new Blob([xt()],{type:"application/pdf"})},kt=function(t){return t.foo=function(){try{return t.apply(this,arguments)}catch(t){var n=t.stack||"";~n.indexOf(" at ")&&(n=n.split(" at ")[1]);var r="Error in function "+n.split("\n")[0].split("<")[0]+": "+t.message;if(!e.console)throw new Error(r);e.console.error(r,t),e.alert&&alert(r)}},t.foo.bar=t,t.foo}(function(t,n){var r="dataur"===(""+t).substr(0,6)?"data:application/pdf;base64,"+btoa(bt()):0;switch(t){case void 0:return bt();case"save":if(navigator.getUserMedia&&(void 0===e.URL||void 0===e.URL.createObjectURL))return H.output("dataurlnewwindow");o(St(),n),"function"==typeof o.unload&&e.setTimeout&&setTimeout(o.unload,911);break;case"arraybuffer":return xt();case"blob":return St();case"bloburi":case"bloburl":return e.URL&&e.URL.createObjectURL(St())||void 0;case"datauristring":case"dataurlstring":return r;case"dataurlnewwindow":var i=e.open(r);if(i||"undefined"==typeof safari)return i;case"datauri":case"dataurl":return e.document.location.href=r;de
if(S)g=w;else if(t.multiline&&(u+2)*(y+2)+2>l)continue t}else{if(!t.multiline)continue t;if((u+2)*(y+2)+2>l)continue t;g=w}for(var k="",C=p;C<=g;C++)k+=a[C]+" ";switch(k=" "==k.substr(k.length-1)?k.substr(0,k.length-1):k,m=n.internal.calculateFontSpace(k,s+"px",r).width,t.Q){case 2:f=c-m-2;break;case 1:f=(c-m)/2;break;case 0:default:f=2}e+=f+" "+d+" Td\n",e+="("+k+") Tj\n",e+=-f+" 0 Td\n",d=-(s+2),f,m=0,p=g+1,y++,v=""}else v+=" "}break}return i.text=e,i.fontSize=s,i},n.internal.calculateAppearanceStream=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e="",r=t.V||t.DV,o=n.internal.calculateX(t,r);e+="/Tx BMC\nq\n/F1 "+o.fontSize+" Tf\n1 0 0 1 0 0 Tm\n",e+="BT\n",e+=o.text,e+="ET\n",e+="Q\nEMC\n";var i=new n.createFormXObject(t);return i.stream=e,i}},n.internal.calculateCoordinates=function(t,e,r,o){var i={};if(this.internal){var a=function(t){return t*this.internal.scaleFactor};Array.isArray(t)?(t[0]=n.scale(t[0]),t[1]=n.scale(t[1]),t[2]=n.scale(t[2]),t[3]=n.scale(t[3]),i.lowerLeft_X=t[0]||0,i.lowerLeft_Y=a.call(this,this.internal.pageSize.height)-t[3]-t[1]||0,i.upperRight_X=t[0]+t[2]||0,i.upperRight_Y=a.call(this,this.internal.pageSize.height)-t[1]||0):(t=n.scale(t),e=n.scale(e),r=n.scale(r),o=n.scale(o),i.lowerLeft_X=t||0,i.lowerLeft_Y=this.internal.pageSize.height-e||0,i.upperRight_X=t+r||0,i.upperRight_Y=this.internal.pageSize.height-e+o||0)}else Array.isArray(t)?(i.lowerLeft_X=t[0]||0,i.lowerLeft_Y=t[1]||0,i.upperRight_X=t[0]+t[2]||0,i.upperRight_Y=t[1]+t[3]||0):(i.lowerLeft_X=t||0,i.lowerLeft_Y=e||0,i.upperRight_X=t+r||0,i.upperRight_Y=e+o||0);return[i.lowerLeft_X,i.lowerLeft_Y,i.upperRight_X,i.upperRight_Y]},n.internal.calculateColor=function(t,e,n){var r=new Array(3);return r.r=0|t,r.g=0|e,r.b=0|n,r},n.internal.getBitPosition=function(t,e){t=t||0;var n=1;return n<<=e-1,t|n},n.internal.setBitPosition=function(t,e,n){t=t||0,n=n||1;var r=1;if(r<<=e-1,1==n)var t=t|r;else var t=t&~r;return t},function(t){t.addHTML=function(t,e,n,r,o){if("undefined"==typeof html2canvas&&"undefined"==typeof rasterizeHTML)throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");"number"!=typeof e&&(r=e,o=n),"function"==typeof r&&(o=r,r=null);var i=this.internal,a=i.scaleFactor,s=i.pageSize.width,l=i.pageSize.height;if(r=r||{},r.onrendered=function(t){e=parseInt(e)||0,n=parseInt(n)||0;var i=r.dim||{},c=i.h||0,u=i.w||Math.min(s,t.width/a)-e,h="JPEG";if(r.format&&(h=r.format),t.height>l&&r.pagesplit){var f=function(){for(var r=0;;){var i=document.createElement("canvas");i.width=Math.min(s*a,t.width),i.height=Math.min(l*a,t.height-r);i.getContext("2d").drawImage(t,0,r,t.width,i.height,0,0,i.width,i.height);var c=[i,e,r?0:n,i.width/a,i.height/a,h,null,"SLOW"];if(this.addImage.apply(this,c),(r+=i.height)>=t.height)break;this.addPage()}o(u,r,null,c)}.bind(this);if("CANVAS"===t.nodeName){var d=new Image;d.onload=f,d.src=t.toDataURL("image/png"),t=d}else f()}else{var p=Math.random().toString(35),g=[t,e,n,u,c,h,p,"SLOW"];this.addImage.apply(this,g),o(u,c,p,g)}}.bind(this),"undefined"!=typeof html2canvas&&!r.rstz)return html2canvas(t,r);if("undefined"!=typeof rasterizeHTML){var c="drawDocument";return"string"==typeof t&&(c=/^http/.test(t)?"drawURL":"drawHTML"),r.width=r.width||s*a,rasterizeHTML[c](t,void 0,r).then(function(t){r.onrendered(t.image)},function(t){o(null,t)})}return null}}(e.API),function(e){var n="addImage_",r=["jpeg","jpg","png"],o=function t(e){var n=this.internal.newObject(),r=this.internal.write,o=this.internal.putStream;if(e.n=n,r("<</Type /XObject"),r("/Subtype /Image"),r("/Width "+e.w),r("/Height "+e.h),e.cs===this.color_spaces.INDEXED?r("/ColorSpace [/Indexed /DeviceRGB "+(e.pal.length/3-1)+" "+("smask"in e?n+2:n+1)+" 0 R]"):(r("/ColorSpace /"+e.cs),e.cs===this.color_spaces.DEVICE_CMYK&&r("/Decode [1 0 1 0 1 0 1 0]")),r("/BitsPerComponent "+e.bpc),"f"in e&&r("/Filter /"+e.f),"dp"in e&&r("/DecodeParms <<"+e.dp+">>"),"trns"in e&&e.trns.constructor==Array){for(var i="",a=0,s=e.trns.length;a<s;a++)i+=e.trns[a]+" "+e.trns[a
var n=this._matrix_map_point(t,[e.x,e.y]),r=this._matrix_map_point(t,[e.x+e.w,e.y+e.h]);return{x:n[0],y:n[1],w:r[0]-n[0],h:r[1]-n[1]}},_matrix_is_identity:function(t){return 1==t[0]&&0==t[1]&&0==t[2]&&1==t[3]&&0==t[4]&&0==t[5]},rotate:function(t){var e=[Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0];this.ctx._transform=this._matrix_multiply(this.ctx._transform,e)},scale:function(t,e){var n=[t,0,0,e,0,0];this.ctx._transform=this._matrix_multiply(this.ctx._transform,n)},translate:function(t,e){var n=[1,0,0,1,t,e];this.ctx._transform=this._matrix_multiply(this.ctx._transform,n)},stroke:function(){if(this.ctx._clip_path.length>0){var t;t=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage(),t.push("q");var e=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._stroke(!0),this.ctx._clip_path=this.path,this.path=e,this._stroke(!1),t.push("Q")}else this._stroke(!1)},_stroke:function(t){if(t||!this._isStrokeTransparent()){for(var e=[],n=this.path,r=0;r<n.length;r++){var o=n[r];switch(o.type){case"mt":e.push({start:o,deltas:[],abs:[]});break;case"lt":var i=[o.x-n[r-1].x,o.y-n[r-1].y];e[e.length-1].deltas.push(i),e[e.length-1].abs.push(o);break;case"bct":var i=[o.x1-n[r-1].x,o.y1-n[r-1].y,o.x2-n[r-1].x,o.y2-n[r-1].y,o.x-n[r-1].x,o.y-n[r-1].y];e[e.length-1].deltas.push(i);break;case"qct":var a=n[r-1].x+2/3*(o.x1-n[r-1].x),s=n[r-1].y+2/3*(o.y1-n[r-1].y),l=o.x+2/3*(o.x1-o.x),c=o.y+2/3*(o.y1-o.y),u=o.x,h=o.y,i=[a-n[r-1].x,s-n[r-1].y,l-n[r-1].x,c-n[r-1].y,u-n[r-1].x,h-n[r-1].y];e[e.length-1].deltas.push(i);break;case"arc":0==e.length&&e.push({start:{x:0,y:0},deltas:[],abs:[]}),e[e.length-1].arc=!0,e[e.length-1].abs.push(o);break;case"close":!0}}for(var r=0;r<e.length;r++){var f;if(f=r==e.length-1?"s":null,e[r].arc)for(var d=e[r].abs,p=0;p<d.length;p++){var g=d[p],m=360*g.startAngle/(2*Math.PI),v=360*g.endAngle/(2*Math.PI),y=g.x,b=g.y;this.internal.arc2(this,y,b,g.radius,m,v,g.anticlockwise,f,t)}else{var y=e[r].start.x,b=e[r].start.y;t?(this.pdf.lines(e[r].deltas,y,b,null,null),this.pdf.clip_fixed()):this.pdf.lines(e[r].deltas,y,b,null,f)}}}},_isFillTransparent:function(){return this.ctx._isFillTransparent||0==this.globalAlpha},_isStrokeTransparent:function(){return this.ctx._isStrokeTransparent||0==this.globalAlpha},fill:function(t){if(this.ctx._clip_path.length>0){var e;e=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage(),e.push("q");var n=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._fill(t,!0),this.ctx._clip_path=this.path,this.path=n,this._fill(t,!1),e.push("Q")}else this._fill(t,!1)},_fill:function(t,e){if(!this._isFillTransparent()){var r,o="function"==typeof this.pdf.internal.newObject2;r=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage();var i=[],a=window.outIntercept;if(o)switch(this.ctx.globalCompositeOperation){case"normal":case"source-over":break;case"destination-in":case"destination-out":var s=this.pdf.internal.newStreamObject(),l=this.pdf.internal.newObject2();l.push("<</Type /ExtGState"),l.push("/SMask <</S /Alpha /G "+s.objId+" 0 R>>"),l.push(">>");var c="MASK"+l.objId;this.pdf.internal.addGraphicsState(c,l.objId);var u="/"+c+" gs";r.splice(0,0,"q"),r.splice(1,0,u),r.push("Q"),window.outIntercept=s;break;default:var h="/"+this.pdf.internal.blendModeMap[this.ctx.globalCompositeOperation.toUpperCase()];h&&this.pdf.internal.out(h+" gs")}var f=this.ctx.globalAlpha;if(this.ctx._fillOpacity<1&&(f=this.ctx._fillOpacity),o){var d=this.pdf.internal.newObject2();d.push("<</Type /ExtGState"),d.push("/CA "+f),d.push("/ca "+f),d.push(">>");var c="GS_O_"+d.objId;this.pdf.internal.addGraphicsState(c,d.objId),this.pdf.internal.out("/"+c+" gs")}for(var p=this.path,g=0;g<p.length;g++){var m=p[g];switch(m.type){case"mt":i.push({start:m,deltas:[],abs:[]});break;case"lt":var v=[m.x-p[g-1].x,m.y-p[g-1].y];i[i.length-1].deltas.push(v),i[i.length-1].abs.push(
;d=o(k,l.width,1)}}var I=b(a);return c=g===this.decode.FLATE_DECODE?"/Predictor "+I+" /Colors "+h+" /BitsPerComponent "+m+" /Columns "+l.width:"/Colors "+h+" /BitsPerComponent "+m+" /Columns "+l.width,(this.isArrayBuffer(t)||this.isArrayBufferView(t))&&(t=this.arrayBufferToBinaryString(t)),(d&&this.isArrayBuffer(d)||this.isArrayBufferView(d))&&(d=this.arrayBufferToBinaryString(d)),this.createImageInfo(t,l.width,l.height,p,m,g,r,i,c,u,f,d,I)}throw new Error("Unsupported PNG image data, try using JPEG instead.")}}(e.API),function(t){t.autoPrint=function(){var t;return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.write("<< /S/Named /Type/Action /N/Print >>","endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.write("/OpenAction "+t+" 0 R")}),this}}(e.API),function(t){var e=t.getCharWidthsArray=function(t,e){e||(e={});var n,r,o,i=e.widths?e.widths:this.internal.getFont().metadata.Unicode.widths,a=i.fof?i.fof:1,s=e.kerning?e.kerning:this.internal.getFont().metadata.Unicode.kerning,l=s.fof?s.fof:1,c=0,u=i[0]||a,h=[];for(n=0,r=t.length;n<r;n++)o=t.charCodeAt(n),h.push((i[o]||u)/a+(s[o]&&s[o][c]||0)/l),c=o;return h},n=function(t){for(var e=t.length,n=0;e;)e--,n+=t[e];return n},r=t.getStringUnitWidth=function(t,r){return n(e.call(this,t,r))},o=function(t,e,n,r){for(var o=[],i=0,a=t.length,s=0;i!==a&&s+e[i]<n;)s+=e[i],i++;o.push(t.slice(0,i));var l=i;for(s=0;i!==a;)s+e[i]>r&&(o.push(t.slice(l,i)),s=0,l=i),s+=e[i],i++;return l!==i&&o.push(t.slice(l,i)),o},i=function(t,i,a){a||(a={});var s,l,c,u,h,f,d=[],p=[d],g=a.textIndent||0,m=0,v=0,y=t.split(" "),b=e(" ",a)[0];if(f=-1===a.lineIndent?y[0].length+2:a.lineIndent||0){var w=Array(f).join(" "),x=[];y.map(function(t){t=t.split(/\s*\n/),t.length>1?x=x.concat(t.map(function(t,e){return(e&&t.length?"\n":"")+t})):x.push(t[0])}),y=x,f=r(w,a)}for(c=0,u=y.length;c<u;c++){var S=0;if(s=y[c],f&&"\n"==s[0]&&(s=s.substr(1),S=1),l=e(s,a),v=n(l),g+m+v>i||S){if(v>i){for(h=o(s,l,i-(g+m),i),d.push(h.shift()),d=[h.pop()];h.length;)p.push([h.shift()]);v=n(l.slice(s.length-d[0].length))}else d=[s];p.push(d),g=v+f,m=b}else d.push(s),g+=m+v,m=b}if(f)var k=function(t,e){return(e?w:"")+t.join(" ")};else var k=function(t){return t.join(" ")};return p.map(k)};t.splitTextToSize=function(t,e,n){n||(n={});var r,o=n.fontSize||this.internal.getFontSize(),a=function(t){var e={0:1},n={};if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var r=this.internal.getFont(t.fontName,t.fontStyle),o="Unicode";return r.metadata[o]?{widths:r.metadata[o].widths||e,kerning:r.metadata[o].kerning||n}:{widths:e,kerning:n}}.call(this,n);r=Array.isArray(t)?t:t.split(/\r?\n/);var s=1*this.internal.scaleFactor*e/o;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/o:0,a.lineIndent=n.lineIndent;var l,c,u=[];for(l=0,c=r.length;l<c;l++)u=u.concat(i(r[l],s,a));return u}}(e.API),function(t){var e=function(t){for(var e="klmnopqrstuvwxyz",n={},r=0;r<e.length;r++)n[e[r]]="0123456789abcdef"[r];var o,i,a,s,l,c={},u=1,h=c,f=[],d="",p="",g=t.length-1;for(r=1;r!=g;)l=t[r],r+=1,"'"==l?i?(s=i.join(""),i=o):i=[]:i?i.push(l):"{"==l?(f.push([h,s]),h={},s=o):"}"==l?(a=f.pop(),a[0][a[1]]=h,s=o,h=a[0]):"-"==l?u=-1:s===o?n.hasOwnProperty(l)?(d+=n[l],s=parseInt(d,16)*u,u=1,d=""):d+=l:n.hasOwnProperty(l)?(p+=n[l],h[s]=parseInt(p,16)*u,u=1,s=o,p=""):p+=l;return c},n={codePages:["WinAnsiEncoding"],WinAnsiEncoding:e("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},r={Unicode:{Courier:n,"Courier-Bold":n,"Courier-BoldOblique":n,"Courier-Oblique":n,Helvetica:n,"Helvetica-Bold":n,"Helvetica-BoldOblique":n,"Helvetica-Oblique":n,"Times-Roman":n,"Times-Bold":n,"Times-BoldItalic":n,"Times-Italic":n}},o={Unicode:{"Courier-Oblique":e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":e("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o
olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},i.colorNameToHex=function(t){return t=t.toLowerCase(),void 0!==this._colorsTable[t]&&this._colorsTable[t]};var a=function(t){function e(){function t(t){var e,n,o,i,a,l,c=r.dyn_tree,u=r.stat_desc.static_tree,h=r.stat_desc.extra_bits,d=r.stat_desc.extra_base,p=r.stat_desc.max_length,g=0;for(i=0;i<=s;i++)t.bl_count[i]=0;for(c[2*t.heap[t.heap_max]+1]=0,e=t.heap_max+1;e<f;e++)n=t.heap[e],i=c[2*c[2*n+1]+1]+1,i>p&&(i=p,g++),c[2*n+1]=i,n>r.max_code||(t.bl_count[i]++,a=0,n>=d&&(a=h[n-d]),l=c[2*n],t.opt_len+=l*(i+a),u&&(t.static_len+=l*(u[2*n+1]+a)));if(0!==g){do{for(i=p-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(i=p;0!==i;i--)for(n=t.bl_count[i];0!==n;)(o=t.heap[--e])>r.max_code||(c[2*o+1]!=i&&(t.opt_len+=(i-c[2*o+1])*c[2*o],c[2*o+1]=i),n--)}}function e(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function n(t,n,r){var o,i,a,l=[],c=0;for(o=1;o<=s;o++)l[o]=c=c+r[o-1]<<1;for(i=0;i<=n;i++)0!==(a=t[2*i+1])&&(t[2*i]=e(l[a]++,a))}var r=this;r.build_tree=function(e){var o,i,a,s=r.dyn_tree,l=r.stat_desc.static_tree,c=r.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=f,o=0;o<c;o++)0!==s[2*o]?(e.heap[++e.heap_len]=u=o,e.depth[o]=0):s[2*o+1]=0;for(;e.heap_len<2;)a=e.heap[++e.heap_len]=u<2?++u:0,s[2*a]=1,e.depth[a]=0,e.opt_len--,l&&(e.static_len-=l[2*a+1]);for(r.max_code=u,o=Math.floor(e.heap_len/2);o>=1;o--)e.pqdownheap(s,o);a=c;do{o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],e.pqdownheap(s,1),i=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=i,s[2*a]=s[2*o]+s[2*i],e.depth[a]=Math.max(e.depth[o],e.depth[i])+1,s[2*o+1]=s[2*i+1]=a,e.heap[1]=a++,e.pqdownheap(s,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],t(e),n(s,r.max_code,e.bl_count)}}function n(t,e,n,r,o){var i=this;i.static_tree=t,i.extra_bits=e,i.extra_base=n,i.elems=r,i.max_length=o}function r(t,e,n,r,o){var i=this;i.good_length=t,i.max_lazy=e,i.nice_length=n,i.max_chain=r,i.func=o}function o(t,e,n,r){var o=t[2*e],i=t[2*n];return o<i||o==i&&r[e]<=r[n]}function i(){function t(){var t;for(Et=2*Tt,jt[Ft-1]=0,t=0;t<Ft-1;t++)jt[t]=0;Gt=D[Xt].max_lazy,Kt=D[Xt].good_length,Jt=D[Xt].nice_length,Vt=D[Xt].max_chain,$t=0,Dt=0,Ut=0,Lt=Wt=Q-1,zt=0,Rt=0}function r(){var t;for(t=0;t<h;t++)Qt[2*t]=0;for(t=0;t<l;t++)Zt[2*t]=0;for(t=0;t<c;t++)te[2*t]=0;Qt[2*d]=1,ee.opt_len=ee.static_len=0,se=ce=0}function i(){ne.dyn_tree=Qt,ne.stat_desc=n.static_l_desc,re.dyn_tree=Zt,re.stat_desc=n.static_d_desc,oe.dyn_tree=te,oe.stat_desc=n.static_bl_desc,he=0,fe=0,ue=8,r()}function a(t,e){var n,r,o=-1,i=t[1],a=0,s=7,l=4;for(0===i&&(s=138,l=3),t[2*(e+1)+1]=65535,n=0;n<=e;n++)r=i,i=t[2*(n+1)+1],++a<s&&r==i||(a<l?te[2*r]+=a:0!==r?(r!=o&&te[2*r]++,te[2*p]++):a<=10?te[2*g]++:te[2*m]++,a=0,o=r,0===i?(s=138,l=3):r==i?(s=6,l=3):(s=7,l=4))}function s(){var t;for(a(Qt,ne.max_code),a(Zt,re.max_code),oe.build_tree(ee),t=c-1;t>=3&&0===te[2*e.bl_order[t]+1];t--);return ee.opt_len+=3*(t+1)+5+5+4,t}function f(t){ee.pending_buf[ee.pending++]=t}function j(t){f(255&t),f(t>>>8&255)}function et(t){f(t>>8&255),f(255&t)}function nt(t,e){var n,r=e;fe>v-r?(n=t,he|=n<<fe&65535,j(he),he=n>>>v-fe,fe+=r-v):(he|=t<<fe&65535,fe+=r)}function rt(t,e){var n=2*t;nt(65535&e[n],65535&e[n+1])}function ot(t,e){var n,r,o=-1,i=t[1],a=0,s=7,l=4;for(0===i&&(s=138,l=3),n=0;n<=e;n++)if(r=i,i=t[2*(n+1)+1],!(++a
var f=e("./support"),d=e("./renderers/canvas"),p=e("./imageloader"),g=e("./nodeparser"),m=e("./nodecontainer"),v=e("./log"),y=e("./utils"),b=e("./clone"),w=e("./proxy").loadUrlDocument,x=y.getBounds,S="data-html2canvas-node",k=0;o.CanvasRenderer=d,o.NodeContainer=m,o.log=v,o.utils=y;var C="undefined"==typeof document||"function"!=typeof Object.create||"function"!=typeof document.createElement("canvas").getContext?function(){return Promise.reject("No canvas support")}:o;n.exports=C,"function"==typeof t&&t.amd&&t("html2canvas",[],function(){return C})},{"./clone":2,"./imageloader":11,"./log":13,"./nodecontainer":14,"./nodeparser":15,"./proxy":16,"./renderers/canvas":20,"./support":22,"./utils":26}],5:[function(t,e,n){function r(t){if(this.src=t,o("DummyImageContainer for",t),!this.promise||!this.image){o("Initiating DummyImageContainer"),r.prototype.image=new Image;var e=this.image;r.prototype.promise=new Promise(function(t,n){e.onload=t,e.onerror=n,e.src=i(),!0===e.complete&&t(e)})}}var o=t("./log"),i=t("./utils").smallImage;e.exports=r},{"./log":13,"./utils":26}],6:[function(t,e,n){function r(t,e){var n,r,i=document.createElement("div"),a=document.createElement("img"),s=document.createElement("span"),l="Hidden Text";i.style.visibility="hidden",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin=0,i.style.padding=0,document.body.appendChild(i),a.src=o(),a.width=1,a.height=1,a.style.margin=0,a.style.padding=0,a.style.verticalAlign="baseline",s.style.fontFamily=t,s.style.fontSize=e,s.style.margin=0,s.style.padding=0,s.appendChild(document.createTextNode(l)),i.appendChild(s),i.appendChild(a),n=a.offsetTop-s.offsetTop+1,i.removeChild(s),i.appendChild(document.createTextNode(l)),i.style.lineHeight="normal",a.style.verticalAlign="super",r=a.offsetTop-i.offsetTop+1,document.body.removeChild(i),this.baseline=n,this.lineWidth=1,this.middle=r}var o=t("./utils").smallImage;e.exports=r},{"./utils":26}],7:[function(t,e,n){function r(){this.data={}}var o=t("./font");r.prototype.getMetrics=function(t,e){return void 0===this.data[t+"-"+e]&&(this.data[t+"-"+e]=new o(t,e)),this.data[t+"-"+e]},e.exports=r},{"./font":6}],8:[function(t,e,n){function r(e,n,r){this.image=null,this.src=e;var o=this,a=i(e);this.promise=(n?new Promise(function(t){"about:blank"===e.contentWindow.document.URL||null==e.contentWindow.document.documentElement?e.contentWindow.onload=e.onload=function(){t(e)}:t(e)}):this.proxyLoad(r.proxy,a,r)).then(function(e){return t("./core")(e.contentWindow.document.documentElement,{type:"view",width:e.width,height:e.height,proxy:r.proxy,javascriptEnabled:r.javascriptEnabled,removeContainer:r.removeContainer,allowTaint:r.allowTaint,imageTimeout:r.imageTimeout/2})}).then(function(t){return o.image=t})}var o=t("./utils"),i=o.getBounds,a=t("./proxy").loadUrlDocument;r.prototype.proxyLoad=function(t,e,n){var r=this.src;return a(r.src,t,r.ownerDocument,e.width,e.height,n)},e.exports=r},{"./core":4,"./proxy":16,"./utils":26}],9:[function(t,e,n){function r(t){this.src=t.value,this.colorStops=[],this.type=null,this.x0=.5,this.y0=.5,this.x1=.5,this.y1=.5,this.promise=Promise.resolve(!0)}r.TYPES={LINEAR:1,RADIAL:2},r.REGEXP_COLORSTOP=/^\s*(rgba?\(\s*\d{1,3},\s*\d{1,3},\s*\d{1,3}(?:,\s*[0-9\.]+)?\s*\)|[a-z]{3,20}|#[a-f0-9]{3,6})(?:\s+(\d{1,3}(?:\.\d+)?)(%|px)?)?(?:\s|$)/i,e.exports=r},{}],10:[function(t,e,n){function r(t,e){this.src=t,this.image=new Image;var n=this;this.tainted=null,this.promise=new Promise(function(r,o){n.image.onload=r,n.image.onerror=o,e&&(n.image.crossOrigin="anonymous"),n.image.src=t,!0===n.image.complete&&r(n.image)})}e.exports=r},{}],11:[function(t,e,n){function r(t,e){this.link=null,this.options=t,this.support=e,this.origin=this.getOrigin(window.location.href)}var o=t("./log"),i=t("./imagecontainer"),a=t("./dummyimagecontainer"),s=t("./proxyimagecontainer"),l=t("./framecontainer"),c=t("./svgcontainer"),u=t("./svgnodecontainer"),h=t("./lineargradientcontainer"),f=t("./webkitgradientcontainer"),d=t("./utils").bind;r.prototype.findImages=function(t){var e=[];return t.reduce(function(t,e){switch(e.node.nodeName){case"
16:[function(t,e,n){function r(t,e,n){var r="withCredentials"in new XMLHttpRequest;if(!e)return Promise.reject("No proxy configured");var o=a(r),l=s(e,t,o);return r?u(l):i(n,l,o).then(function(t){return p(t.content)})}function o(t,e,n){var r="crossOrigin"in new Image,o=a(r),l=s(e,t,o);return r?Promise.resolve(l):i(n,l,o).then(function(t){return"data:"+t.type+";base64,"+t.content})}function i(t,e,n){return new Promise(function(r,o){var i=t.createElement("script"),a=function(){delete window.html2canvas.proxy[n],t.body.removeChild(i)};window.html2canvas.proxy[n]=function(t){a(),r(t)},i.src=e,i.onerror=function(t){a(),o(t)},t.body.appendChild(i)})}function a(t){return t?"":"html2canvas_"+Date.now()+"_"+ ++g+"_"+Math.round(1e5*Math.random())}function s(t,e,n){return t+"?url="+encodeURIComponent(e)+(n.length?"&callback=html2canvas.proxy."+n:"")}function l(t){return function(e){var n,r=new DOMParser;try{n=r.parseFromString(e,"text/html")}catch(t){f("DOMParser not supported, falling back to createHTMLDocument"),n=document.implementation.createHTMLDocument("");try{n.open(),n.write(e),n.close()}catch(t){f("createHTMLDocument write not supported, falling back to document.body.innerHTML"),n.body.innerHTML=e}}var o=n.querySelector("base");if(!o||!o.href.host){var i=n.createElement("base");i.href=t,n.head.insertBefore(i,n.head.firstChild)}return n}}function c(t,e,n,o,i,a){return new r(t,e,window.document).then(l(t)).then(function(t){return d(t,n,o,i,a,0,0)})}var u=t("./xhr"),h=t("./utils"),f=t("./log"),d=t("./clone"),p=h.decode64,g=0;n.Proxy=r,n.ProxyURL=o,n.loadUrlDocument=c},{"./clone":2,"./log":13,"./utils":26,"./xhr":28}],17:[function(t,e,n){function r(t,e){var n=document.createElement("a");n.href=t,t=n.href,this.src=t,this.image=new Image;var r=this;this.promise=new Promise(function(n,i){r.image.crossOrigin="Anonymous",r.image.onload=n,r.image.onerror=i,new o(t,e,document).then(function(t){r.image.src=t}).catch(i)})}var o=t("./proxy").ProxyURL;e.exports=r},{"./proxy":16}],18:[function(t,e,n){function r(t,e,n){o.call(this,t,e),this.isPseudoElement=!0,this.before=":before"===n}var o=t("./nodecontainer");r.prototype.cloneTo=function(t){r.prototype.cloneTo.call(this,t),t.isPseudoElement=!0,t.before=this.before},r.prototype=Object.create(o.prototype),r.prototype.appendToDOM=function(){this.before?this.parent.node.insertBefore(this.node,this.parent.node.firstChild):this.parent.node.appendChild(this.node),this.parent.node.className+=" "+this.getHideClass()},r.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node),this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")},r.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]},r.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before",r.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after",e.exports=r},{"./nodecontainer":14}],19:[function(t,e,n){function r(t,e,n,r,o){this.width=t,this.height=e,this.images=n,this.options=r,this.document=o}var o=t("./log");r.prototype.renderImage=function(t,e,n,r){var o=t.cssInt("paddingLeft"),i=t.cssInt("paddingTop"),a=t.cssInt("paddingRight"),s=t.cssInt("paddingBottom"),l=n.borders,c=e.width-(l[1].width+l[3].width+o+a),u=e.height-(l[0].width+l[2].width+i+s);this.drawImage(r,0,0,r.image.width||c,r.image.height||u,e.left+o+l[3].width,e.top+i+l[0].width,c,u)},r.prototype.renderBackground=function(t,e,n){e.height>0&&e.width>0&&(this.renderBackgroundColor(t,e),this.renderBackgroundImage(t,e,n))},r.prototype.renderBackgroundColor=function(t,e){var n=t.color("backgroundColor");n.isTransparent()||this.rectangle(e.left,e.top,e.width,e.height,n)},r.prototype.renderBorders=function(t){t.forEach(this.renderBorder,this)},r.prototype.renderBorder=function(t){t.color.isTransparent()||null===t.args||this.drawShape(t.args,t.color)},r.prototype.renderBackgroundImage=function(t,e,n){t.parseBackgroundImages().reverse().forEach(function(r,i,a){switch(r.method){case"url":var s=this.images.get(r.args[0]);s?this.renderBackgro
String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"")}),String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/g,"")})}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0),e}),function(t){"use strict";function e(t){var e=d(S(),t);void 0!==e.extendWidth&&(e.tableWidth=e.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),void 0!==e.margins&&(void 0===e.margin&&(e.margin=e.margins),console.error("Use of deprecated option: margins, use margin instead.")),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(t){var n="string"==typeof t?t:t[0],r="string"==typeof t?t:t[1];void 0!==e[n]&&(void 0===e.styles[r]&&(e.styles[r]=e[n]),console.error("Use of deprecated option: "+n+", use the style "+r+" instead."))});var n=e.margin;return e.margin={},"number"==typeof n.horizontal&&(n.right=n.horizontal,n.left=n.horizontal),"number"==typeof n.vertical&&(n.top=n.vertical,n.bottom=n.vertical),["top","right","bottom","left"].forEach(function(t,r){if("number"==typeof n)e.margin[t]=n;else{var o=Array.isArray(n)?r:t;e.margin[t]="number"==typeof n[o]?n[o]:40}}),e}function n(t,e){y=new Table,y.x=m.margin.left;var n=/\r\n|\r|\n/g,r=new Row(t);r.index=-1;var o=d(w,x[m.theme].table,x[m.theme].header);r.styles=d(o,m.styles,m.headerStyles),t.forEach(function(t,e){"object"==typeof t&&(e=void 0!==t.dataKey?t.dataKey:t.key),void 0!==t.width&&console.error("Use of deprecated option: column.width, use column.styles.columnWidth instead.");var o=new Column(e);o.styles=m.columnStyles[o.dataKey]||{},y.columns.push(o);var i=new Cell;i.raw="object"==typeof t?t.title:t,i.styles=r.styles,i.text=""+i.raw,i.contentWidth=2*i.styles.cellPadding+f(i.text,i.styles),i.text=i.text.split(n),r.cells[e]=i,m.createdHeaderCell(i,{column:o,row:r,settings:m})}),y.headerRow=r,e.forEach(function(t,e){var r=new Row(t),o=e%2==0,i=d(w,x[m.theme].table,o?x[m.theme].alternateRow:{}),a=d(m.styles,m.bodyStyles,o?m.alternateRowStyles:{});r.styles=d(i,a),r.index=e,y.columns.forEach(function(e){var o=new Cell;o.raw=t[e.dataKey],o.styles=d(r.styles,e.styles),o.text=void 0!==o.raw?""+o.raw:"",r.cells[e.dataKey]=o,m.createdCell(o,u({column:e,row:r})),o.contentWidth=2*o.styles.cellPadding+f(o.text,o.styles),o.text=o.text.split(n)}),y.rows.push(r)})}function r(){var t=0;y.columns.forEach(function(e){e.contentWidth=y.headerRow.cells[e.dataKey].contentWidth,y.rows.forEach(function(t){var n=t.cells[e.dataKey].contentWidth;n>e.contentWidth&&(e.contentWidth=n)}),e.width=e.contentWidth,t+=e.contentWidth}),y.contentWidth=t;var e=p.internal.pageSize.width-m.margin.left-m.margin.right,n=e;"number"==typeof m.tableWidth?n=m.tableWidth:"wrap"===m.tableWidth&&(n=y.contentWidth),y.width=n<e?n:e;var r=[],i=0,a=y.width/y.columns.length,s=0;y.columns.forEach(function(t){var e=d(w,x[m.theme].table,m.styles,t.styles);"wrap"===e.columnWidth?t.width=t.contentWidth:"number"==typeof e.columnWidth?t.width=e.columnWidth:(e.columnWidth,t.contentWidth<=a&&y.contentWidth>y.width?t.width=t.contentWidth:(r.push(t),i+=t.contentWidth,t.width=0)),s+=t.width}),o(r,s,i,a),y.height=0,y.rows.concat(y.headerRow).forEach(function(t,e){var n=0,r=y.x;y.columns.forEach(function(e){var o=t.cells[e.dataKey];e.x=r,c(o.styles);var i=e.width-2*o.styles.cellPadding;"linebreak"===o.styles.overflow?o.text=p.splitTextToSize(o.text,i+1,{fontSize:o.styles.fontSize}):"ellipsize"===o.styles.overflow?o.text=h(o.text,i,o.styles):"visible"===o.styles.overflow||("hidden"===o.styles.overflow?o.text=h(o.text,i,o.styles,""):"function"==typeof o.styles.overflow?o.text=o.styles.overflow(o.text,i):console.error("Unrecognized overflow type: "+o.styles.overflow));var a=Array.isArray(o.text)?o.text.length-1:0;a>n&&(n=a),r+=e.width}),t.heightStyle=t.styles.rowHeight,t.height=t.heightStyle+n*t.styles.fontSize*b,y.height+=t.height})}function o(t,e,n,r){for(var i=y.width-e-n,a=0;a<t.length;a++){var s=t[a],l=s.contentWidth/n,c=s.contentWidth+i*l<r;if(i<0&&c){t.splice(
},le=Tt("document","documentElement"),ce=ht("IE_PROTO"),ue=function(){},he=function(t){return"<script>"+t+"<\/script>"},fe=function(t){t.write(he("")),t.close();var e=t.parentWindow.Object;return t=null,e},de=function(){var t,e=M("iframe");return e.style.display="none",le.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(he("document.F=Object")),t.close(),t.F},pe=function(){try{xt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}pe=xt?fe(xt):de();for(var t=Lt.length;t--;)delete pe.prototype[Lt[t]];return pe()};ft[ce]=!0;var ge=Object.create||function(t,e){var n;return null!==t?(ue.prototype=W(t),n=new ue,ue.prototype=null,n[ce]=t):n=pe(),void 0===e?n:se(n,e)},me=$t.f,ve={}.toString,ye="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],be=function(t){try{return me(t)}catch(t){return ye.slice()}},we=function(t){return ye&&"[object Window]"==ve.call(t)?be(t):me(R(t))},xe={f:we},Se=at("wks"),ke=b.Symbol,Ce=re?ke:ct,Oe=function(t){return B(Se,t)||(ne&&B(ke,t)?Se[t]=ke[t]:Se[t]=Ce("Symbol."+t)),Se[t]},Te=Oe,_e={f:Te},Ae=X.f,Pe=function(t){var e=Ct.Symbol||(Ct.Symbol={});B(e,t)||Ae(e,t,{value:_e.f(t)})},Ee=X.f,Ie=Oe("toStringTag"),je=function(t,e,n){t&&!B(t=n?t:t.prototype,Ie)&&Ee(t,Ie,{configurable:!0,value:e})},Re=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Fe=function(t,e,n){if(Re(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},Ne=Oe("species"),qe=function(t,e){var n;return oe(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!oe(n.prototype)?F(n)&&null===(n=n[Ne])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Be=[].push,De=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=5==t||i;return function(s,l,c,u){for(var h,f,d=ie(s),p=I(d),g=Fe(l,c,3),m=It(p.length),v=0,y=u||qe,b=e?y(s,m):n?y(s,0):void 0;m>v;v++)if((a||v in p)&&(h=p[v],f=g(h,v,d),t))if(e)b[v]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return v;case 2:Be.call(b,h)}else if(o)return!1;return i?-1:r||o?o:b}},Le={forEach:De(0),map:De(1),filter:De(2),some:De(3),every:De(4),find:De(5),findIndex:De(6)},Me=Le.forEach,ze=ht("hidden"),$e=Oe("toPrimitive"),He=St.set,Ue=St.getterFor("Symbol"),We=Object.prototype,Ve=b.Symbol,Ge=Tt("JSON","stringify"),Xe=U.f,Ye=X.f,Ke=xe.f,Je=T.f,Qe=at("symbols"),Ze=at("op-symbols"),tn=at("string-to-symbol-registry"),en=at("symbol-to-string-registry"),nn=at("wks"),rn=b.QObject,on=!rn||!rn.prototype||!rn.prototype.findChild,an=x&&w(function(){return 7!=ge(Ye({},"a",{get:function(){return Ye(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=Xe(We,e);r&&delete We[e],Ye(t,e,n),r&&t!==We&&Ye(We,e,r)}:Ye,sn=function(t,e){var n=Qe[t]=ge(Ve.prototype);return He(n,{type:"Symbol",tag:t,description:e}),x||(n.description=e),n},ln=ne&&"symbol"==typeof Ve.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Ve},cn=function(t,e,n){t===We&&cn(Ze,e,n),W(t);var r=N(e,!0);return W(n),B(Qe,r)?(n.enumerable?(B(t,ze)&&t[ze][r]&&(t[ze][r]=!1),n=ge(n,{enumerable:_(0,!1)})):(B(t,ze)||Ye(t,ze,_(1,{})),t[ze][r]=!0),an(t,r,n)):Ye(t,r,n)},un=function(t,e){W(t);var n=R(e),r=ae(n).concat(gn(n));return Me(r,function(e){x&&!fn.call(n,e)||cn(t,e,n[e])}),t},hn=function(t,e){return void 0===e?ge(t):un(ge(t),e)},fn=function(t){var e=N(t,!0),n=Je.call(this,e);return!(this===We&&B(Qe,e)&&!B(Ze,e))&&(!(n||!B(this,e)||!B(Qe,e)||B(this,ze)&&this[ze][e])||n)},dn=function(t,e){var n=R(t),r=N(e,!0);if(n!==We||!B(Qe,r)||B(Ze,r)){var o=Xe(n,r);return!o||!B(Qe,r)||B(n,ze)&&n[ze][r]||(o.enumerable=!0),o}},pn=function(t){var e=Ke(R(t)),n=[];return Me(e,function(t){B(Qe,t)||B(ft,t)||n.push(t)}),n},gn=function(t){var e=t===We,n=Ke(e?Ze:R(t)),r=[];return Me(n,function(t){!B(Qe,t)||e&&!B(We,t)||r.push(Qe[t])}),r};if(ne||(Ve=function(){if(this instanceof Ve)throw TypeE