mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-16 18:44:10 -08:00
012fe57ca1
Signed-off-by: snipe <[email protected]>
2 lines
1.1 MiB
2 lines
1.1 MiB
!function(e){e.widget("akottr.dragtable",{options:{revert:!1,dragHandle:".table-handle",maxMovingRows:40,excludeFooter:!1,onlyHeaderThreshold:100,dragaccept:null,persistState:null,restoreState:null,exact:!0,clickDelay:10,containment:null,cursor:"move",cursorAt:!1,distance:0,tolerance:"pointer",axis:"x",beforeStart:e.noop,beforeMoving:e.noop,beforeReorganize:e.noop,beforeStop:e.noop},originalTable:{el:null,selectedHandle:null,sortOrder:null,startIndex:0,endIndex:0},sortableTable:{el:e(),selectedHandle:e(),movingRow:e()},persistState:function(){var t=this;this.originalTable.el.find("th").each((function(e){""!==this.id&&(t.originalTable.sortOrder[this.id]=e)})),e.ajax({url:this.options.persistState,data:this.originalTable.sortOrder})},_restoreState:function(t){for(var r in t)this.originalTable.startIndex=e("#"+r).closest("th").prevAll().length+1,this.originalTable.endIndex=parseInt(t[r],10)+1,this._bubbleCols()},_bubbleCols:function(){var e,t,r,o,i=this.originalTable.startIndex,a=this.originalTable.endIndex,s=this.originalTable.el.children();if(this.options.excludeFooter&&(s=s.not("tfoot")),i<a)for(e=i;e<a;e++)for(r=s.find("> tr > td:nth-child("+e+")").add(s.find("> tr > th:nth-child("+e+")")),o=s.find("> tr > td:nth-child("+(e+1)+")").add(s.find("> tr > th:nth-child("+(e+1)+")")),t=0;t<r.length;t++)n(r[t],o[t]);else for(e=i;e>a;e--)for(r=s.find("> tr > td:nth-child("+e+")").add(s.find("> tr > th:nth-child("+e+")")),o=s.find("> tr > td:nth-child("+(e-1)+")").add(s.find("> tr > th:nth-child("+(e-1)+")")),t=0;t<r.length;t++)n(r[t],o[t])},_rearrangeTableBackroundProcessing:function(){var n=this;return function(){n._bubbleCols(),n.options.beforeStop(n.originalTable),n.sortableTable.el.remove(),function(){e("#__dragtable_disable_text_selection__").remove(),t?e(document.body).attr("onselectstart",t):e(document.body).removeAttr("onselectstart");r?e(document.body).attr("unselectable",r):e(document.body).removeAttr("unselectable")}(),null!==n.options.persistState&&(e.isFunction(n.options.persistState)?n.options.persistState(n.originalTable):n.persistState())}},_rearrangeTable:function(){var e=this;return function(){e.originalTable.selectedHandle.removeClass("dragtable-handle-selected"),e.sortableTable.el.sortable("disable"),e.sortableTable.el.addClass("dragtable-disabled"),e.options.beforeReorganize(e.originalTable,e.sortableTable),e.originalTable.endIndex=e.sortableTable.movingRow.prevAll().length+1,setTimeout(e._rearrangeTableBackroundProcessing(),50)}},_generateSortable:function(t){!t.cancelBubble&&(t.cancelBubble=!0);for(var r=this,n=this.originalTable.el[0].attributes,o="",i=0;i<n.length;i++)n[i].nodeValue&&"id"!=n[i].nodeName&&"width"!=n[i].nodeName&&(o+=n[i].nodeName+'="'+n[i].nodeValue+'" ');var a=[],s=[];this.originalTable.el.find("tr").slice(0,this.options.maxMovingRows).each((function(t,r){for(var n=this.attributes,o="",i=0;i<n.length;i++)n[i].nodeValue&&"id"!=n[i].nodeName&&(o+=" "+n[i].nodeName+'="'+n[i].nodeValue+'"');a.push(o),s.push(e(this).height())}));var c=[],l=0,u=r.originalTable.el.children();if(this.options.excludeFooter&&(u=u.not("tfoot")),u.find("> tr > th").each((function(t,r){var n=e(this).is(":visible")?e(this).outerWidth():0;c.push(n),l+=n})),r.options.exact){var f=l-r.originalTable.el.outerWidth();c[0]-=f}var h='<ul class="dragtable-sortable" style="position:absolute; width:'+(l+=2)+'px;">';u.find("> tr > th").each((function(t,n){var i=e(this).is(":visible")?e(this).outerWidth():0;h+='<li style="width:'+i+'px;">',h+="<table "+o+">";var c=u.find("> tr > th:nth-child("+(t+1)+")");r.options.maxMovingRows>1&&(c=c.add(u.find("> tr > td:nth-child("+(t+1)+")").slice(0,r.options.maxMovingRows-1))),c.each((function(t){var r=e(this).clone().wrap("<div></div>").parent().html();0===r.toLowerCase().indexOf("<th")&&(h+="<thead>"),h+="<tr "+a[t]+'" style="height:'+s[t]+'px;">',h+=r,0===r.toLowerCase().indexOf("<th")&&(h+="</thead>"),h+="</tr>"})),h+="</table>",h+="</li>"})),h+="</ul>",this.sortableTable.el=this.originalTable.el.before(h).prev(),this.sortableTable.el.find("> li > table").each((function(t,r){e(this).css("width",c[t]+"px")})),this.sortableTable.selectedHandle=this.sortableTable.el.find("th .dragtable-handle-selected");var d,p=this.options.dragaccept?"li:has("+this.options.dragaccept+")":"li";this.sortableTable.el.sortable({items:p,stop:this._rearrangeTable(),revert:this.options.revert,tolerance:this.options.tolerance,containment:this.options.containment,cursor:this.options.cursor,cursorAt:this.options.cursorAt,distance:this.options.distance,axis:this.options.axis}),this.originalTable.startIndex=e(t.target).closest("th").prevAll().length+1,this.options.beforeMoving(this.originalTable,this.sortableTable),this.sortableTable.movingRow=this.sortableTable.el.find("> li:nth-child("+this.originalTable.startIndex+")"),d=e('<style id="__dragtable_disable_text_selection__" type="text/css">body { -ms-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none; }</style>'),e(document.head).append(d),e(document.body).attr("onselectstart","return false;").attr("unselectable","on"),window.getSelection?window.getSelection().removeAllRanges():document.selection.empty(),this.sortableTable.movingRow.trigger(e.extend(e.Event(t.type),{which:1,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY,screenX:t.screenX,screenY:t.screenY}));var g=this.sortableTable.el.find(".ui-sortable-placeholder");!g.height()<=0&&g.css("height",this.sortableTable.el.find(".ui-sortable-helper").height()),g.html('<div class="outer" style="height:100%;"><div class="inner" style="height:100%;"></div></div>')},bindTo:{},_create:function(){this.originalTable={el:this.element,selectedHandle:e(),sortOrder:{},startIndex:0,endIndex:0},this.bindTo=this.originalTable.el.find("th"),this.options.dragaccept&&(this.bindTo=this.bindTo.filter(this.options.dragaccept)),this.bindTo.find(this.options.dragHandle).length>0&&(this.bindTo=this.bindTo.find(this.options.dragHandle)),null!==this.options.restoreState&&(e.isFunction(this.options.restoreState)?this.options.restoreState(this.originalTable):this._restoreState(this.options.restoreState));var t=this;this.bindTo.mousedown((function(r){1===r.which&&!1!==t.options.beforeStart(t.originalTable)&&(clearTimeout(this.downTimer),this.downTimer=setTimeout((function(){t.originalTable.selectedHandle=e(this),t.originalTable.selectedHandle.addClass("dragtable-handle-selected"),t._generateSortable(r)}),t.options.clickDelay))})).mouseup((function(e){clearTimeout(this.downTimer)}))},redraw:function(){this.destroy(),this._create()},destroy:function(){this.bindTo.unbind("mousedown"),e.Widget.prototype.destroy.apply(this,arguments)}});var t=e(document.body).attr("onselectstart"),r=e(document.body).attr("unselectable");function n(e,t){var r=e.parentNode,n=e.nextSibling===t?e:e.nextSibling;t.parentNode.insertBefore(e,t),r.insertBefore(t,n)}}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).BootstrapTable=t(e.jQuery)}(this,(function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),n)}var o,i}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||s(e,t)||function(){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(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){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 s(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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 i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},f=function(e){return e&&e.Math==Math&&e},h=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof u&&u)||function(){return this}()||Function("return this")(),d={},p=function(e){try{return!!e()}catch(e){return!0}},g=!p((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),m=!p((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),v=m,b=Function.prototype.call,y=v?b.bind(b):function(){return b.apply(b,arguments)},w={},S={}.propertyIsEnumerable,x=Object.getOwnPropertyDescriptor,A=x&&!S.call({1:2},1);w.f=A?function(e){var t=x(this,e);return!!t&&t.enumerable}:S;var k,T,E=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_=m,O=Function.prototype,N=O.call,C=_&&O.bind.bind(N,N),R=_?C:function(e){return function(){return N.apply(e,arguments)}},P=R,L=P({}.toString),I=P("".slice),F=function(e){return I(L(e),8,-1)},j=p,D=F,M=Object,B=R("".split),W=j((function(){return!M("z").propertyIsEnumerable(0)}))?function(e){return"String"==D(e)?B(e,""):M(e)}:M,U=function(e){return null==e},H=U,z=TypeError,V=function(e){if(H(e))throw z("Can't call method on "+e);return e},q=W,$=V,G=function(e){return q($(e))},X="object"==typeof document&&document.all,Y={all:X,IS_HTMLDDA:void 0===X&&void 0!==X},K=Y.all,J=Y.IS_HTMLDDA?function(e){return"function"==typeof e||e===K}:function(e){return"function"==typeof e},Z=J,Q=Y.all,ee=Y.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Z(e)||e===Q}:function(e){return"object"==typeof e?null!==e:Z(e)},te=h,re=J,ne=function(e){return re(e)?e:void 0},oe=function(e,t){return arguments.length<2?ne(te[e]):te[e]&&te[e][t]},ie=R({}.isPrototypeOf),ae="undefined"!=typeof navigator&&String(navigator.userAgent)||"",se=h,ce=ae,le=se.process,ue=se.Deno,fe=le&&le.versions||ue&&ue.version,he=fe&&fe.v8;he&&(T=(k=he.split("."))[0]>0&&k[0]<4?1:+(k[0]+k[1])),!T&&ce&&(!(k=ce.match(/Edge\/(\d+)/))||k[1]>=74)&&(k=ce.match(/Chrome\/(\d+)/))&&(T=+k[1]);var de=T,pe=de,ge=p,me=!!Object.getOwnPropertySymbols&&!ge((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pe&&pe<41})),ve=me&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,be=oe,ye=J,we=ie,Se=Object,xe=ve?function(e){return"symbol"==typeof e}:function(e){var t=be("Symbol");return ye(t)&&we(t.prototype,Se(e))},Ae=String,ke=function(e){try{return Ae(e)}catch(e){return"Object"}},Te=J,Ee=ke,_e=TypeError,Oe=function(e){if(Te(e))return e;throw _e(Ee(e)+" is not a function")},Ne=Oe,Ce=U,Re=function(e,t){var r=e[t];return Ce(r)?void 0:Ne(r)},Pe=y,Le=J,Ie=ee,Fe=TypeError,je={},De={get exports(){return je},set exports(e){je=e}},Me=h,Be=Object.defineProperty,We=function(e,t){try{Be(Me,e,{value:t,configurable:!0,writable:!0})}catch(r){Me[e]=t}return t},Ue=We,He="__core-js_shared__",ze=h[He]||Ue(He,{}),Ve=ze;(De.exports=function(e,t){return Ve[e]||(Ve[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var qe=V,$e=Object,Ge=function(e){return $e(qe(e))},Xe=Ge,Ye=R({}.hasOwnProperty),Ke=Object.hasOwn||function(e,t){return Ye(Xe(e),t)},Je=R,Ze=0,Qe=Math.random(),et=Je(1..toString),tt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+et(++Ze+Qe,36)},rt=je,nt=Ke,ot=tt,it=me,at=ve,st=h.Symbol,ct=rt("wks"),lt=at?st.for||st:st&&st.withoutSetter||ot,ut=function(e){return nt(ct,e)||(ct[e]=it&&nt(st,e)?st[e]:lt("Symbol."+e)),ct[e]},ft=y,ht=ee,dt=xe,pt=Re,gt=function(e,t){var r,n;if("string"===t&&Le(r=e.toString)&&!Ie(n=Pe(r,e)))return n;if(Le(r=e.valueOf)&&!Ie(n=Pe(r,e)))return n;if("string"!==t&&Le(r=e.toString)&&!Ie(n=Pe(r,e)))return n;throw Fe("Can't convert object to primitive value")},mt=TypeError,vt=ut("toPrimitive"),bt=function(e,t){if(!ht(e)||dt(e))return e;var r,n=pt(e,vt);if(n){if(void 0===t&&(t="default"),r=ft(n,e,t),!ht(r)||dt(r))return r;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),gt(e,t)},yt=bt,wt=xe,St=function(e){var t=yt(e,"string");return wt(t)?t:t+""},xt=ee,At=h.document,kt=xt(At)&&xt(At.createElement),Tt=function(e){return kt?At.createElement(e):{}},Et=Tt,_t=!g&&!p((function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),Ot=g,Nt=y,Ct=w,Rt=E,Pt=G,Lt=St,It=Ke,Ft=_t,jt=Object.getOwnPropertyDescriptor;d.f=Ot?jt:function(e,t){if(e=Pt(e),t=Lt(t),Ft)try{return jt(e,t)}catch(e){}if(It(e,t))return Rt(!Nt(Ct.f,e,t),e[t])};var Dt={},Mt=g&&p((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Bt=ee,Wt=String,Ut=TypeError,Ht=function(e){if(Bt(e))return e;throw Ut(Wt(e)+" is not an object")},zt=g,Vt=_t,qt=Mt,$t=Ht,Gt=St,Xt=TypeError,Yt=Object.defineProperty,Kt=Object.getOwnPropertyDescriptor,Jt="enumerable",Zt="configurable",Qt="writable";Dt.f=zt?qt?function(e,t,r){if($t(e),t=Gt(t),$t(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Qt in r&&!r.writable){var n=Kt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:Zt in r?r.configurable:n.configurable,enumerable:Jt in r?r.enumerable:n.enumerable,writable:!1})}return Yt(e,t,r)}:Yt:function(e,t,r){if($t(e),t=Gt(t),$t(r),Vt)try{return Yt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Xt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var er=Dt,tr=E,rr=g?function(e,t,r){return er.f(e,t,tr(1,r))}:function(e,t,r){return e[t]=r,e},nr={},or={get exports(){return nr},set exports(e){nr=e}},ir=g,ar=Ke,sr=Function.prototype,cr=ir&&Object.getOwnPropertyDescriptor,lr=ar(sr,"name"),ur={EXISTS:lr,PROPER:lr&&"something"===function(){}.name,CONFIGURABLE:lr&&(!ir||ir&&cr(sr,"name").configurable)},fr=J,hr=ze,dr=R(Function.toString);fr(hr.inspectSource)||(hr.inspectSource=function(e){return dr(e)});var pr,gr,mr,vr=hr.inspectSource,br=J,yr=h.WeakMap,wr=br(yr)&&/native code/.test(String(yr)),Sr=tt,xr=je("keys"),Ar=function(e){return xr[e]||(xr[e]=Sr(e))},kr={},Tr=wr,Er=h,_r=ee,Or=rr,Nr=Ke,Cr=ze,Rr=Ar,Pr=kr,Lr="Object already initialized",Ir=Er.TypeError,Fr=Er.WeakMap;if(Tr||Cr.state){var jr=Cr.state||(Cr.state=new Fr);jr.get=jr.get,jr.has=jr.has,jr.set=jr.set,pr=function(e,t){if(jr.has(e))throw Ir(Lr);return t.facade=e,jr.set(e,t),t},gr=function(e){return jr.get(e)||{}},mr=function(e){return jr.has(e)}}else{var Dr=Rr("state");Pr[Dr]=!0,pr=function(e,t){if(Nr(e,Dr))throw Ir(Lr);return t.facade=e,Or(e,Dr,t),t},gr=function(e){return Nr(e,Dr)?e[Dr]:{}},mr=function(e){return Nr(e,Dr)}}var Mr={set:pr,get:gr,has:mr,enforce:function(e){return mr(e)?gr(e):pr(e,{})},getterFor:function(e){return function(t){var r;if(!_r(t)||(r=gr(t)).type!==e)throw Ir("Incompatible receiver, "+e+" required");return r}}},Br=R,Wr=p,Ur=J,Hr=Ke,zr=g,Vr=ur.CONFIGURABLE,qr=vr,$r=Mr.enforce,Gr=Mr.get,Xr=String,Yr=Object.defineProperty,Kr=Br("".slice),Jr=Br("".replace),Zr=Br([].join),Qr=zr&&!Wr((function(){return 8!==Yr((function(){}),"length",{value:8}).length})),en=String(String).split("String"),tn=or.exports=function(e,t,r){"Symbol("===Kr(Xr(t),0,7)&&(t="["+Jr(Xr(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Hr(e,"name")||Vr&&e.name!==t)&&(zr?Yr(e,"name",{value:t,configurable:!0}):e.name=t),Qr&&r&&Hr(r,"arity")&&e.length!==r.arity&&Yr(e,"length",{value:r.arity});try{r&&Hr(r,"constructor")&&r.constructor?zr&&Yr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=$r(e);return Hr(n,"source")||(n.source=Zr(en,"string"==typeof t?t:"")),e};Function.prototype.toString=tn((function(){return Ur(this)&&Gr(this).source||qr(this)}),"toString");var rn=J,nn=Dt,on=nr,an=We,sn=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(rn(r)&&on(r,i,n),n.global)o?e[t]=r:an(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:nn.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},cn={},ln=Math.ceil,un=Math.floor,fn=Math.trunc||function(e){var t=+e;return(t>0?un:ln)(t)},hn=function(e){var t=+e;return t!=t||0===t?0:fn(t)},dn=hn,pn=Math.max,gn=Math.min,mn=function(e,t){var r=dn(e);return r<0?pn(r+t,0):gn(r,t)},vn=hn,bn=Math.min,yn=function(e){return e>0?bn(vn(e),9007199254740991):0},wn=yn,Sn=function(e){return wn(e.length)},xn=G,An=mn,kn=Sn,Tn=function(e){return function(t,r,n){var o,i=xn(t),a=kn(i),s=An(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},En={includes:Tn(!0),indexOf:Tn(!1)},_n=Ke,On=G,Nn=En.indexOf,Cn=kr,Rn=R([].push),Pn=function(e,t){var r,n=On(e),o=0,i=[];for(r in n)!_n(Cn,r)&&_n(n,r)&&Rn(i,r);for(;t.length>o;)_n(n,r=t[o++])&&(~Nn(i,r)||Rn(i,r));return i},Ln=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],In=Pn,Fn=Ln.concat("length","prototype");cn.f=Object.getOwnPropertyNames||function(e){return In(e,Fn)};var jn={};jn.f=Object.getOwnPropertySymbols;var Dn=oe,Mn=cn,Bn=jn,Wn=Ht,Un=R([].concat),Hn=Dn("Reflect","ownKeys")||function(e){var t=Mn.f(Wn(e)),r=Bn.f;return r?Un(t,r(e)):t},zn=Ke,Vn=Hn,qn=d,$n=Dt,Gn=p,Xn=J,Yn=/#|\.prototype\./,Kn=function(e,t){var r=Zn[Jn(e)];return r==eo||r!=Qn&&(Xn(t)?Gn(t):!!t)},Jn=Kn.normalize=function(e){return String(e).replace(Yn,".").toLowerCase()},Zn=Kn.data={},Qn=Kn.NATIVE="N",eo=Kn.POLYFILL="P",to=Kn,ro=h,no=d.f,oo=rr,io=sn,ao=We,so=function(e,t,r){for(var n=Vn(t),o=$n.f,i=qn.f,a=0;a<n.length;a++){var s=n[a];zn(e,s)||r&&zn(r,s)||o(e,s,i(t,s))}},co=to,lo=function(e,t){var r,n,o,i,a,s=e.target,c=e.global,l=e.stat;if(r=c?ro:l?ro[s]||ao(s,{}):(ro[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=no(r,n))&&a.value:r[n],!co(c?n:s+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;so(i,o)}(e.sham||o&&o.sham)&&oo(i,"sham",!0),io(r,n,i,e)}},uo=Pn,fo=Ln,ho=Object.keys||function(e){return uo(e,fo)},po=g,go=R,mo=y,vo=p,bo=ho,yo=jn,wo=w,So=Ge,xo=W,Ao=Object.assign,ko=Object.defineProperty,To=go([].concat),Eo=!Ao||vo((function(){if(po&&1!==Ao({b:1},Ao(ko({},"a",{enumerable:!0,get:function(){ko(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Ao({},e)[r]||bo(Ao({},t)).join("")!=n}))?function(e,t){for(var r=So(e),n=arguments.length,o=1,i=yo.f,a=wo.f;n>o;)for(var s,c=xo(arguments[o++]),l=i?To(bo(c),i(c)):bo(c),u=l.length,f=0;u>f;)s=l[f++],po&&!mo(a,c,s)||(r[s]=c[s]);return r}:Ao,_o=Eo;lo({target:"Object",stat:!0,arity:2,forced:Object.assign!==_o},{assign:_o});var Oo={};Oo[ut("toStringTag")]="z";var No="[object z]"===String(Oo),Co=No,Ro=J,Po=F,Lo=ut("toStringTag"),Io=Object,Fo="Arguments"==Po(function(){return arguments}()),jo=Co?Po:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Io(e),Lo))?r:Fo?Po(t):"Object"==(n=Po(t))&&Ro(t.callee)?"Arguments":n},Do=jo,Mo=String,Bo=function(e){if("Symbol"===Do(e))throw TypeError("Cannot convert a Symbol value to a string");return Mo(e)},Wo="\t\n\v\f\r \u2028\u2029\ufeff",Uo=V,Ho=Bo,zo=Wo,Vo=R("".replace),qo=RegExp("^["+zo+"]+"),$o=RegExp("(^|[^"+zo+"])["+zo+"]+$"),Go=function(e){return function(t){var r=Ho(Uo(t));return 1&e&&(r=Vo(r,qo,"")),2&e&&(r=Vo(r,$o,"$1")),r}},Xo={start:Go(1),end:Go(2),trim:Go(3)},Yo=ur.PROPER,Ko=p,Jo=Wo,Zo=Xo.trim;lo({target:"String",proto:!0,forced:function(e){return Ko((function(){return!!Jo[e]()||"
"!=="
"[e]()||Yo&&Jo[e].name!==e}))}("trim")},{trim:function(){return Zo(this)}});var Qo=p,ei=function(e,t){var r=[][e];return!!r&&Qo((function(){r.call(null,t||function(){return 1},1)}))},ti=lo,ri=W,ni=G,oi=ei,ii=R([].join);ti({target:"Array",proto:!0,forced:ri!=Object||!oi("join",",")},{join:function(e){return ii(ni(this),void 0===e?",":e)}});var ai=Ht,si=function(){var e=ai(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},ci=p,li=h.RegExp,ui=ci((function(){var e=li("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),fi=ui||ci((function(){return!li("a","y").sticky})),hi={BROKEN_CARET:ui||ci((function(){var e=li("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:fi,UNSUPPORTED_Y:ui},di={},pi=g,gi=Mt,mi=Dt,vi=Ht,bi=G,yi=ho;di.f=pi&&!gi?Object.defineProperties:function(e,t){vi(e);for(var r,n=bi(t),o=yi(t),i=o.length,a=0;i>a;)mi.f(e,r=o[a++],n[r]);return e};var wi,Si=oe("document","documentElement"),xi=Ht,Ai=di,ki=Ln,Ti=kr,Ei=Si,_i=Tt,Oi=Ar("IE_PROTO"),Ni=function(){},Ci=function(e){return"<script>"+e+"</"+"script>"},Ri=function(e){e.write(Ci("")),e.close();var t=e.parentWindow.Object;return e=null,t},Pi=function(){try{wi=new ActiveXObject("htmlfile")}catch(e){}var e,t;Pi="undefined"!=typeof document?document.domain&&wi?Ri(wi):((t=_i("iframe")).style.display="none",Ei.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ci("document.F=Object")),e.close(),e.F):Ri(wi);for(var r=ki.length;r--;)delete Pi.prototype[ki[r]];return Pi()};Ti[Oi]=!0;var Li=Object.create||function(e,t){var r;return null!==e?(Ni.prototype=xi(e),r=new Ni,Ni.prototype=null,r[Oi]=e):r=Pi(),void 0===t?r:Ai.f(r,t)},Ii=p,Fi=h.RegExp,ji=Ii((function(){var e=Fi(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Di=p,Mi=h.RegExp,Bi=Di((function(){var e=Mi("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Wi=y,Ui=R,Hi=Bo,zi=si,Vi=hi,qi=Li,$i=Mr.get,Gi=ji,Xi=Bi,Yi=je("native-string-replace",String.prototype.replace),Ki=RegExp.prototype.exec,Ji=Ki,Zi=Ui("".charAt),Qi=Ui("".indexOf),ea=Ui("".replace),ta=Ui("".slice),ra=function(){var e=/a/,t=/b*/g;return Wi(Ki,e,"a"),Wi(Ki,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),na=Vi.BROKEN_CARET,oa=void 0!==/()??/.exec("")[1];(ra||oa||na||Gi||Xi)&&(Ji=function(e){var t,r,n,o,i,a,s,c=this,l=$i(c),u=Hi(e),f=l.raw;if(f)return f.lastIndex=c.lastIndex,t=Wi(Ji,f,u),c.lastIndex=f.lastIndex,t;var h=l.groups,d=na&&c.sticky,p=Wi(zi,c),g=c.source,m=0,v=u;if(d&&(p=ea(p,"y",""),-1===Qi(p,"g")&&(p+="g"),v=ta(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Zi(u,c.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),r=new RegExp("^(?:"+g+")",p)),oa&&(r=new RegExp("^"+g+"$(?!\\s)",p)),ra&&(n=c.lastIndex),o=Wi(Ki,d?r:c,v),d?o?(o.input=ta(o.input,m),o[0]=ta(o[0],m),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:ra&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),oa&&o&&o.length>1&&Wi(Yi,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&h)for(o.groups=a=qi(null),i=0;i<h.length;i++)a[(s=h[i])[0]]=o[s[1]];return o});var ia=Ji;lo({target:"RegExp",proto:!0,forced:/./.exec!==ia},{exec:ia});var aa=m,sa=Function.prototype,ca=sa.apply,la=sa.call,ua="object"==typeof Reflect&&Reflect.apply||(aa?la.bind(ca):function(){return la.apply(ca,arguments)}),fa=F,ha=R,da=function(e){if("Function"===fa(e))return ha(e)},pa=da,ga=sn,ma=ia,va=p,ba=ut,ya=rr,wa=ba("species"),Sa=RegExp.prototype,xa=function(e,t,r,n){var o=ba(e),i=!va((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!va((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[wa]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var s=pa(/./[o]),c=t(o,""[e],(function(e,t,r,n,o){var a=pa(e),c=t.exec;return c===ma||c===Sa.exec?i&&!o?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));ga(String.prototype,e,c[0]),ga(Sa,o,c[1])}n&&ya(Sa[o],"sham",!0)},Aa=ee,ka=F,Ta=ut("match"),Ea=function(e){var t;return Aa(e)&&(void 0!==(t=e[Ta])?!!t:"RegExp"==ka(e))},_a=R,Oa=p,Na=J,Ca=jo,Ra=vr,Pa=function(){},La=[],Ia=oe("Reflect","construct"),Fa=/^\s*(?:class|function)\b/,ja=_a(Fa.exec),Da=!Fa.exec(Pa),Ma=function(e){if(!Na(e))return!1;try{return Ia(Pa,La,e),!0}catch(e){return!1}},Ba=function(e){if(!Na(e))return!1;switch(Ca(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Da||!!ja(Fa,Ra(e))}catch(e){return!0}};Ba.sham=!0;var Wa=!Ia||Oa((function(){var e;return Ma(Ma.call)||!Ma(Object)||!Ma((function(){e=!0}))||e}))?Ba:Ma,Ua=Wa,Ha=ke,za=TypeError,Va=Ht,qa=function(e){if(Ua(e))return e;throw za(Ha(e)+" is not a constructor")},$a=U,Ga=ut("species"),Xa=R,Ya=hn,Ka=Bo,Ja=V,Za=Xa("".charAt),Qa=Xa("".charCodeAt),es=Xa("".slice),ts=function(e){return function(t,r){var n,o,i=Ka(Ja(t)),a=Ya(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=Qa(i,a))<55296||n>56319||a+1===s||(o=Qa(i,a+1))<56320||o>57343?e?Za(i,a):n:e?es(i,a,a+2):o-56320+(n-55296<<10)+65536}},rs={codeAt:ts(!1),charAt:ts(!0)}.charAt,ns=function(e,t,r){return t+(r?rs(e,t).length:1)},os=St,is=Dt,as=E,ss=function(e,t,r){var n=os(t);n in e?is.f(e,n,as(0,r)):e[n]=r},cs=mn,ls=Sn,us=ss,fs=Array,hs=Math.max,ds=function(e,t,r){for(var n=ls(e),o=cs(t,n),i=cs(void 0===r?n:r,n),a=fs(hs(i-o,0)),s=0;o<i;o++,s++)us(a,s,e[o]);return a.length=s,a},ps=y,gs=Ht,ms=J,vs=F,bs=ia,ys=TypeError,ws=function(e,t){var r=e.exec;if(ms(r)){var n=ps(r,e,t);return null!==n&&gs(n),n}if("RegExp"===vs(e))return ps(bs,e,t);throw ys("RegExp#exec called on incompatible receiver")},Ss=ua,xs=y,As=R,ks=xa,Ts=Ht,Es=U,_s=Ea,Os=V,Ns=function(e,t){var r,n=Va(e).constructor;return void 0===n||$a(r=Va(n)[Ga])?t:qa(r)},Cs=ns,Rs=yn,Ps=Bo,Ls=Re,Is=ds,Fs=ws,js=ia,Ds=p,Ms=hi.UNSUPPORTED_Y,Bs=4294967295,Ws=Math.min,Us=[].push,Hs=As(/./.exec),zs=As(Us),Vs=As("".slice),qs=!Ds((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));ks("split",(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=Ps(Os(this)),o=void 0===r?Bs:r>>>0;if(0===o)return[];if(void 0===e)return[n];if(!_s(e))return xs(t,n,e,o);for(var i,a,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,f=new RegExp(e.source,l+"g");(i=xs(js,f,n))&&!((a=f.lastIndex)>u&&(zs(c,Vs(n,u,i.index)),i.length>1&&i.index<n.length&&Ss(Us,c,Is(i,1)),s=i[0].length,u=a,c.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return u===n.length?!s&&Hs(f,"")||zs(c,""):zs(c,Vs(n,u)),c.length>o?Is(c,0,o):c}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:xs(t,this,e,r)}:t,[function(t,r){var o=Os(this),i=Es(t)?void 0:Ls(t,e);return i?xs(i,t,o,r):xs(n,Ps(o),t,r)},function(e,o){var i=Ts(this),a=Ps(e),s=r(n,i,a,o,n!==t);if(s.done)return s.value;var c=Ns(i,RegExp),l=i.unicode,u=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Ms?"g":"y"),f=new c(Ms?"^(?:"+i.source+")":i,u),h=void 0===o?Bs:o>>>0;if(0===h)return[];if(0===a.length)return null===Fs(f,a)?[a]:[];for(var d=0,p=0,g=[];p<a.length;){f.lastIndex=Ms?0:p;var m,v=Fs(f,Ms?Vs(a,p):a);if(null===v||(m=Ws(Rs(f.lastIndex+(Ms?p:0)),a.length))===d)p=Cs(a,p,l);else{if(zs(g,Vs(a,d,p)),g.length===h)return g;for(var b=1;b<=v.length-1;b++)if(zs(g,v[b]),g.length===h)return g;p=d=m}}return zs(g,Vs(a,d)),g}]}),!qs,Ms);var $s=g,Gs=R,Xs=ho,Ys=G,Ks=Gs(w.f),Js=Gs([].push),Zs=function(e){return function(t){for(var r,n=Ys(t),o=Xs(n),i=o.length,a=0,s=[];i>a;)r=o[a++],$s&&!Ks(n,r)||Js(s,e?[r,n[r]]:n[r]);return s}},Qs={entries:Zs(!0),values:Zs(!1)}.entries;lo({target:"Object",stat:!0},{entries:function(e){return Qs(e)}});var ec=ut,tc=Li,rc=Dt.f,nc=ec("unscopables"),oc=Array.prototype;null==oc[nc]&&rc(oc,nc,{configurable:!0,value:tc(null)});var ic=function(e){oc[nc][e]=!0},ac=En.includes,sc=ic;lo({target:"Array",proto:!0,forced:p((function(){return!Array(1).includes()}))},{includes:function(e){return ac(this,e,arguments.length>1?arguments[1]:void 0)}}),sc("includes");var cc=F,lc=Array.isArray||function(e){return"Array"==cc(e)},uc=TypeError,fc=function(e){if(e>9007199254740991)throw uc("Maximum allowed index exceeded");return e},hc=lc,dc=Wa,pc=ee,gc=ut("species"),mc=Array,vc=function(e){var t;return hc(e)&&(t=e.constructor,(dc(t)&&(t===mc||hc(t.prototype))||pc(t)&&null===(t=t[gc]))&&(t=void 0)),void 0===t?mc:t},bc=function(e,t){return new(vc(e))(0===t?0:t)},yc=p,wc=de,Sc=ut("species"),xc=function(e){return wc>=51||!yc((function(){var t=[];return(t.constructor={})[Sc]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ac=lo,kc=p,Tc=lc,Ec=ee,_c=Ge,Oc=Sn,Nc=fc,Cc=ss,Rc=bc,Pc=xc,Lc=de,Ic=ut("isConcatSpreadable"),Fc=Lc>=51||!kc((function(){var e=[];return e[Ic]=!1,e.concat()[0]!==e})),jc=function(e){if(!Ec(e))return!1;var t=e[Ic];return void 0!==t?!!t:Tc(e)};Ac({target:"Array",proto:!0,arity:1,forced:!Fc||!Pc("concat")},{concat:function(e){var t,r,n,o,i,a=_c(this),s=Rc(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(jc(i=-1===t?a:arguments[t]))for(o=Oc(i),Nc(c+o),r=0;r<o;r++,c++)r in i&&Cc(s,c,i[r]);else Nc(c+1),Cc(s,c++,i);return s.length=c,s}});var Dc=Oe,Mc=m,Bc=da(da.bind),Wc=function(e,t){return Dc(e),void 0===t?e:Mc?Bc(e,t):function(){return e.apply(t,arguments)}},Uc=W,Hc=Ge,zc=Sn,Vc=bc,qc=R([].push),$c=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,l,u,f){for(var h,d,p=Hc(c),g=Uc(p),m=Wc(l,u),v=zc(g),b=0,y=f||Vc,w=t?y(c,v):r||a?y(c,0):void 0;v>b;b++)if((s||b in g)&&(d=m(h=g[b],b,p),e))if(t)w[b]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:qc(w,h)}else switch(e){case 4:return!1;case 7:qc(w,h)}return i?-1:n||o?o:w}},Gc={forEach:$c(0),map:$c(1),filter:$c(2),some:$c(3),every:$c(4),find:$c(5),findIndex:$c(6),filterReject:$c(7)},Xc=lo,Yc=Gc.find,Kc=ic,Jc="find",Zc=!0;Jc in[]&&Array(1).find((function(){Zc=!1})),Xc({target:"Array",proto:!0,forced:Zc},{find:function(e){return Yc(this,e,arguments.length>1?arguments[1]:void 0)}}),Kc(Jc);var Qc=jo,el=No?{}.toString:function(){return"[object "+Qc(this)+"]"};No||sn(Object.prototype,"toString",el,{unsafe:!0});var tl=Ea,rl=TypeError,nl=function(e){if(tl(e))throw rl("The method doesn't accept regular expressions");return e},ol=ut("match"),il=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[ol]=!1,"/./"[e](t)}catch(e){}}return!1},al=lo,sl=nl,cl=V,ll=Bo,ul=il,fl=R("".indexOf);al({target:"String",proto:!0,forced:!ul("includes")},{includes:function(e){return!!~fl(ll(cl(this)),ll(sl(e)),arguments.length>1?arguments[1]:void 0)}});var hl={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},dl=Tt("span").classList,pl=dl&&dl.constructor&&dl.constructor.prototype,gl=pl===Object.prototype?void 0:pl,ml=Gc.forEach,vl=ei("forEach")?[].forEach:function(e){return ml(this,e,arguments.length>1?arguments[1]:void 0)},bl=h,yl=hl,wl=gl,Sl=vl,xl=rr,Al=function(e){if(e&&e.forEach!==Sl)try{xl(e,"forEach",Sl)}catch(t){e.forEach=Sl}};for(var kl in yl)yl[kl]&&Al(bl[kl]&&bl[kl].prototype);Al(wl);var Tl=h,El=p,_l=Bo,Ol=Xo.trim,Nl=R("".charAt),Cl=Tl.parseFloat,Rl=Tl.Symbol,Pl=Rl&&Rl.iterator,Ll=1/Cl("\t\n\v\f\r \u2028\u2029\ufeff-0")!=-1/0||Pl&&!El((function(){Cl(Object(Pl))}))?function(e){var t=Ol(_l(e)),r=Cl(t);return 0===r&&"-"==Nl(t,0)?-0:r}:Cl;lo({global:!0,forced:parseFloat!=Ll},{parseFloat:Ll});var Il=Ge,Fl=ho;lo({target:"Object",stat:!0,forced:p((function(){Fl(1)}))},{keys:function(e){return Fl(Il(e))}});var jl=lo,Dl=En.indexOf,Ml=ei,Bl=da([].indexOf),Wl=!!Bl&&1/Bl([1],1,-0)<0;jl({target:"Array",proto:!0,forced:Wl||!Ml("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Wl?Bl(this,e,t)||0:Dl(this,e,t)}});var Ul=ke,Hl=TypeError,zl=function(e,t){if(!delete e[t])throw Hl("Cannot delete property "+Ul(t)+" of "+Ul(e))},Vl=ds,ql=Math.floor,$l=function(e,t){var r=e.length,n=ql(r/2);return r<8?Gl(e,t):Xl(e,$l(Vl(e,0,n),t),$l(Vl(e,n),t),t)},Gl=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},Xl=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e},Yl=$l,Kl=ae.match(/firefox\/(\d+)/i),Jl=!!Kl&&+Kl[1],Zl=/MSIE|Trident/.test(ae),Ql=ae.match(/AppleWebKit\/(\d+)\./),eu=!!Ql&&+Ql[1],tu=lo,ru=R,nu=Oe,ou=Ge,iu=Sn,au=zl,su=Bo,cu=p,lu=Yl,uu=ei,fu=Jl,hu=Zl,du=de,pu=eu,gu=[],mu=ru(gu.sort),vu=ru(gu.push),bu=cu((function(){gu.sort(void 0)})),yu=cu((function(){gu.sort(null)})),wu=uu("sort"),Su=!cu((function(){if(du)return du<70;if(!(fu&&fu>3)){if(hu)return!0;if(pu)return pu<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)gu.push({k:t+n,v:r})}for(gu.sort((function(e,t){return t.v-e.v})),n=0;n<gu.length;n++)t=gu[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));tu({target:"Array",proto:!0,forced:bu||!yu||!wu||!Su},{sort:function(e){void 0!==e&&nu(e);var t=ou(this);if(Su)return void 0===e?mu(t):mu(t,e);var r,n,o=[],i=iu(t);for(n=0;n<i;n++)n in t&&vu(o,t[n]);for(lu(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:su(t)>su(r)?1:-1}}(e)),r=iu(o),n=0;n<r;)t[n]=o[n++];for(;n<i;)au(t,n++);return t}});var xu=R,Au=Ge,ku=Math.floor,Tu=xu("".charAt),Eu=xu("".replace),_u=xu("".slice),Ou=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Nu=/\$([$&'`]|\d{1,2})/g,Cu=ua,Ru=y,Pu=R,Lu=xa,Iu=p,Fu=Ht,ju=J,Du=U,Mu=hn,Bu=yn,Wu=Bo,Uu=V,Hu=ns,zu=Re,Vu=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,c=Nu;return void 0!==o&&(o=Au(o),c=Ou),Eu(i,c,(function(i,c){var l;switch(Tu(c,0)){case"$":return"$";case"&":return e;case"`":return _u(t,0,r);case"'":return _u(t,a);case"<":l=o[_u(c,1,-1)];break;default:var u=+c;if(0===u)return i;if(u>s){var f=ku(u/10);return 0===f?i:f<=s?void 0===n[f-1]?Tu(c,1):n[f-1]+Tu(c,1):i}l=n[u-1]}return void 0===l?"":l}))},qu=ws,$u=ut("replace"),Gu=Math.max,Xu=Math.min,Yu=Pu([].concat),Ku=Pu([].push),Ju=Pu("".indexOf),Zu=Pu("".slice),Qu="$0"==="a".replace(/./,"$0"),ef=!!/./[$u]&&""===/./[$u]("a","$0");Lu("replace",(function(e,t,r){var n=ef?"$":"$0";return[function(e,r){var n=Uu(this),o=Du(e)?void 0:zu(e,$u);return o?Ru(o,e,n,r):Ru(t,Wu(n),e,r)},function(e,o){var i=Fu(this),a=Wu(e);if("string"==typeof o&&-1===Ju(o,n)&&-1===Ju(o,"$<")){var s=r(t,i,a,o);if(s.done)return s.value}var c=ju(o);c||(o=Wu(o));var l=i.global;if(l){var u=i.unicode;i.lastIndex=0}for(var f=[];;){var h=qu(i,a);if(null===h)break;if(Ku(f,h),!l)break;""===Wu(h[0])&&(i.lastIndex=Hu(a,Bu(i.lastIndex),u))}for(var d,p="",g=0,m=0;m<f.length;m++){for(var v=Wu((h=f[m])[0]),b=Gu(Xu(Mu(h.index),a.length),0),y=[],w=1;w<h.length;w++)Ku(y,void 0===(d=h[w])?d:String(d));var S=h.groups;if(c){var x=Yu([v],y,b,a);void 0!==S&&Ku(x,S);var A=Wu(Cu(o,void 0,x))}else A=Vu(v,a,b,y,S,o);b>=g&&(p+=Zu(a,g,b)+A,g=b+v.length)}return p+Zu(a,g)}]}),!!Iu((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Qu||ef);var tf=Gc.filter;lo({target:"Array",proto:!0,forced:!xc("filter")},{filter:function(e){return tf(this,e,arguments.length>1?arguments[1]:void 0)}});var rf=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},nf=y,of=Ht,af=U,sf=V,cf=rf,lf=Bo,uf=Re,ff=ws;xa("search",(function(e,t,r){return[function(t){var r=sf(this),n=af(t)?void 0:uf(t,e);return n?nf(n,t,r):new RegExp(t)[e](lf(r))},function(e){var n=of(this),o=lf(e),i=r(t,n,o);if(i.done)return i.value;var a=n.lastIndex;cf(a,0)||(n.lastIndex=0);var s=ff(n,o);return cf(n.lastIndex,a)||(n.lastIndex=a),null===s?-1:s.index}]}));var hf=h,df=p,pf=R,gf=Bo,mf=Xo.trim,vf=Wo,bf=hf.parseInt,yf=hf.Symbol,wf=yf&&yf.iterator,Sf=/^[+-]?0x/i,xf=pf(Sf.exec),Af=8!==bf(vf+"08")||22!==bf(vf+"0x16")||wf&&!df((function(){bf(Object(wf))}))?function(e,t){var r=mf(gf(e));return bf(r,t>>>0||(xf(Sf,r)?16:10))}:bf;lo({global:!0,forced:parseInt!=Af},{parseInt:Af});var kf=Gc.map;lo({target:"Array",proto:!0,forced:!xc("map")},{map:function(e){return kf(this,e,arguments.length>1?arguments[1]:void 0)}});var Tf=lo,Ef=Gc.findIndex,_f=ic,Of="findIndex",Nf=!0;Of in[]&&Array(1).findIndex((function(){Nf=!1})),Tf({target:"Array",proto:!0,forced:Nf},{findIndex:function(e){return Ef(this,e,arguments.length>1?arguments[1]:void 0)}}),_f(Of);var Cf=R,Rf=Oe,Pf=J,Lf=String,If=TypeError,Ff=function(e,t,r){try{return Cf(Rf(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},jf=Ht,Df=function(e){if("object"==typeof e||Pf(e))return e;throw If("Can't set "+Lf(e)+" as a prototype")},Mf=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ff(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return jf(r),Df(n),t?e(r,n):r.__proto__=n,r}}():void 0),Bf=J,Wf=ee,Uf=Mf,Hf=function(e,t,r){var n,o;return Uf&&Bf(n=t.constructor)&&n!==r&&Wf(o=n.prototype)&&o!==r.prototype&&Uf(e,o),e},zf=y,Vf=Ke,qf=ie,$f=si,Gf=RegExp.prototype,Xf=function(e){var t=e.flags;return void 0!==t||"flags"in Gf||Vf(e,"flags")||!qf(Gf,e)?t:zf($f,e)},Yf=Dt.f,Kf=nr,Jf=Dt,Zf=oe,Qf=function(e,t,r){return r.get&&Kf(r.get,t,{getter:!0}),r.set&&Kf(r.set,t,{setter:!0}),Jf.f(e,t,r)},eh=g,th=ut("species"),rh=g,nh=h,oh=R,ih=to,ah=Hf,sh=rr,ch=cn.f,lh=ie,uh=Ea,fh=Bo,hh=Xf,dh=hi,ph=function(e,t,r){r in e||Yf(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},gh=sn,mh=p,vh=Ke,bh=Mr.enforce,yh=function(e){var t=Zf(e);eh&&t&&!t[th]&&Qf(t,th,{configurable:!0,get:function(){return this}})},wh=ji,Sh=Bi,xh=ut("match"),Ah=nh.RegExp,kh=Ah.prototype,Th=nh.SyntaxError,Eh=oh(kh.exec),_h=oh("".charAt),Oh=oh("".replace),Nh=oh("".indexOf),Ch=oh("".slice),Rh=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ph=/a/g,Lh=/a/g,Ih=new Ah(Ph)!==Ph,Fh=dh.MISSED_STICKY,jh=dh.UNSUPPORTED_Y,Dh=rh&&(!Ih||Fh||wh||Sh||mh((function(){return Lh[xh]=!1,Ah(Ph)!=Ph||Ah(Lh)==Lh||"/a/i"!=Ah(Ph,"i")})));if(ih("RegExp",Dh)){for(var Mh=function(e,t){var r,n,o,i,a,s,c=lh(kh,this),l=uh(e),u=void 0===t,f=[],h=e;if(!c&&l&&u&&e.constructor===Mh)return e;if((l||lh(kh,e))&&(e=e.source,u&&(t=hh(h))),e=void 0===e?"":fh(e),t=void 0===t?"":fh(t),h=e,wh&&"dotAll"in Ph&&(n=!!t&&Nh(t,"s")>-1)&&(t=Oh(t,/s/g,"")),r=t,Fh&&"sticky"in Ph&&(o=!!t&&Nh(t,"y")>-1)&&jh&&(t=Oh(t,/y/g,"")),Sh&&(i=function(e){for(var t,r=e.length,n=0,o="",i=[],a={},s=!1,c=!1,l=0,u="";n<=r;n++){if("\\"===(t=_h(e,n)))t+=_h(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:Eh(Rh,Ch(e,n+1))&&(n+=2,c=!0),o+=t,l++;continue;case">"===t&&c:if(""===u||vh(a,u))throw new Th("Invalid capture group name");a[u]=!0,i[i.length]=[u,l],c=!1,u="";continue}c?u+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=ah(Ah(e,t),c?this:kh,Mh),(n||o||f.length)&&(s=bh(a),n&&(s.dotAll=!0,s.raw=Mh(function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(t=_h(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+_h(e,++n);return o}(e),r)),o&&(s.sticky=!0),f.length&&(s.groups=f)),e!==h)try{sh(a,"source",""===h?"(?:)":h)}catch(e){}return a},Bh=ch(Ah),Wh=0;Bh.length>Wh;)ph(Mh,Ah,Bh[Wh++]);kh.constructor=Mh,Mh.prototype=kh,gh(nh,"RegExp",Mh,{constructor:!0})}yh("RegExp");var Uh=ur.PROPER,Hh=sn,zh=Ht,Vh=Bo,qh=p,$h=Xf,Gh="toString",Xh=RegExp.prototype.toString,Yh=qh((function(){return"/a/b"!=Xh.call({source:"a",flags:"b"})})),Kh=Uh&&Xh.name!=Gh;(Yh||Kh)&&Hh(RegExp.prototype,Gh,(function(){var e=zh(this);return"/"+Vh(e.source)+"/"+Vh($h(e))}),{unsafe:!0});var Jh=R([].slice),Zh=lo,Qh=lc,ed=Wa,td=ee,rd=mn,nd=Sn,od=G,id=ss,ad=ut,sd=Jh,cd=xc("slice"),ld=ad("species"),ud=Array,fd=Math.max;Zh({target:"Array",proto:!0,forced:!cd},{slice:function(e,t){var r,n,o,i=od(this),a=nd(i),s=rd(e,a),c=rd(void 0===t?a:t,a);if(Qh(i)&&(r=i.constructor,(ed(r)&&(r===ud||Qh(r.prototype))||td(r)&&null===(r=r[ld]))&&(r=void 0),r===ud||void 0===r))return sd(i,s,c);for(n=new(void 0===r?ud:r)(fd(c-s,0)),o=0;s<c;s++,o++)s in i&&id(n,o,i[s]);return n.length=o,n}});var hd,dd,pd,gd={},md=!p((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),vd=Ke,bd=J,yd=Ge,wd=md,Sd=Ar("IE_PROTO"),xd=Object,Ad=xd.prototype,kd=wd?xd.getPrototypeOf:function(e){var t=yd(e);if(vd(t,Sd))return t[Sd];var r=t.constructor;return bd(r)&&t instanceof r?r.prototype:t instanceof xd?Ad:null},Td=p,Ed=J,_d=ee,Od=kd,Nd=sn,Cd=ut("iterator"),Rd=!1;[].keys&&("next"in(pd=[].keys())?(dd=Od(Od(pd)))!==Object.prototype&&(hd=dd):Rd=!0);var Pd=!_d(hd)||Td((function(){var e={};return hd[Cd].call(e)!==e}));Pd&&(hd={}),Ed(hd[Cd])||Nd(hd,Cd,(function(){return this}));var Ld={IteratorPrototype:hd,BUGGY_SAFARI_ITERATORS:Rd},Id=Dt.f,Fd=Ke,jd=ut("toStringTag"),Dd=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Fd(e,jd)&&Id(e,jd,{configurable:!0,value:t})},Md=Ld.IteratorPrototype,Bd=Li,Wd=E,Ud=Dd,Hd=gd,zd=function(){return this},Vd=lo,qd=y,$d=J,Gd=function(e,t,r,n){var o=t+" Iterator";return e.prototype=Bd(Md,{next:Wd(+!n,r)}),Ud(e,o,!1),Hd[o]=zd,e},Xd=kd,Yd=Mf,Kd=Dd,Jd=rr,Zd=sn,Qd=gd,ep=ur.PROPER,tp=ur.CONFIGURABLE,rp=Ld.IteratorPrototype,np=Ld.BUGGY_SAFARI_ITERATORS,op=ut("iterator"),ip="keys",ap="values",sp="entries",cp=function(){return this},lp=G,up=ic,fp=gd,hp=Mr,dp=Dt.f,pp=function(e,t,r,n,o,i,a){Gd(r,t,n);var s,c,l,u=function(e){if(e===o&&g)return g;if(!np&&e in d)return d[e];switch(e){case ip:case ap:case sp:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",h=!1,d=e.prototype,p=d[op]||d["@@iterator"]||o&&d[o],g=!np&&p||u(o),m="Array"==t&&d.entries||p;if(m&&(s=Xd(m.call(new e)))!==Object.prototype&&s.next&&(Xd(s)!==rp&&(Yd?Yd(s,rp):$d(s[op])||Zd(s,op,cp)),Kd(s,f,!0)),ep&&o==ap&&p&&p.name!==ap&&(tp?Jd(d,"name",ap):(h=!0,g=function(){return qd(p,this)})),o)if(c={values:u(ap),keys:i?g:u(ip),entries:u(sp)},a)for(l in c)(np||h||!(l in d))&&Zd(d,l,c[l]);else Vd({target:t,proto:!0,forced:np||h},c);return d[op]!==g&&Zd(d,op,g,{name:o}),Qd[t]=g,c},gp=function(e,t){return{value:e,done:t}},mp=g,vp="Array Iterator",bp=hp.set,yp=hp.getterFor(vp),wp=pp(Array,"Array",(function(e,t){bp(this,{type:vp,target:lp(e),index:0,kind:t})}),(function(){var e=yp(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,gp(void 0,!0)):gp("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),Sp=fp.Arguments=fp.Array;if(up("keys"),up("values"),up("entries"),mp&&"values"!==Sp.name)try{dp(Sp,"name",{value:"values"})}catch(e){}var xp=h,Ap=hl,kp=gl,Tp=wp,Ep=rr,_p=ut,Op=_p("iterator"),Np=_p("toStringTag"),Cp=Tp.values,Rp=function(e,t){if(e){if(e[Op]!==Cp)try{Ep(e,Op,Cp)}catch(t){e[Op]=Cp}if(e[Np]||Ep(e,Np,t),Ap[t])for(var r in Tp)if(e[r]!==Tp[r])try{Ep(e,r,Tp[r])}catch(t){e[r]=Tp[r]}}};for(var Pp in Ap)Rp(xp[Pp]&&xp[Pp].prototype,Pp);Rp(kp,"DOMTokenList");var Lp=g,Ip=lc,Fp=TypeError,jp=Object.getOwnPropertyDescriptor,Dp=Lp&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),Mp=lo,Bp=Ge,Wp=mn,Up=hn,Hp=Sn,zp=Dp?function(e,t){if(Ip(e)&&!jp(e,"length").writable)throw Fp("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Vp=fc,qp=bc,$p=ss,Gp=zl,Xp=xc("splice"),Yp=Math.max,Kp=Math.min;Mp({target:"Array",proto:!0,forced:!Xp},{splice:function(e,t){var r,n,o,i,a,s,c=Bp(this),l=Hp(c),u=Wp(e,l),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=l-u):(r=f-2,n=Kp(Yp(Up(t),0),l-u)),Vp(l+r-n),o=qp(c,n),i=0;i<n;i++)(a=u+i)in c&&$p(o,i,c[a]);if(o.length=n,r<n){for(i=u;i<l-n;i++)s=i+r,(a=i+n)in c?c[s]=c[a]:Gp(c,s);for(i=l;i>l-n+r;i--)Gp(c,i-1)}else if(r>n)for(i=l-n;i>u;i--)s=i+r-1,(a=i+n-1)in c?c[s]=c[a]:Gp(c,s);for(i=0;i<r;i++)c[i+u]=arguments[i+2];return zp(c,l-n+r),o}});var Jp=h,Zp=R(1..valueOf),Qp=lo,eg=g,tg=h,rg=Jp,ng=R,og=to,ig=Ke,ag=Hf,sg=ie,cg=xe,lg=bt,ug=p,fg=cn.f,hg=d.f,dg=Dt.f,pg=Zp,gg=Xo.trim,mg="Number",vg=tg.Number;rg.Number;var bg=vg.prototype,yg=tg.TypeError,wg=ng("".slice),Sg=ng("".charCodeAt),xg=function(e){var t=lg(e,"number");return"bigint"==typeof t?t:Ag(t)},Ag=function(e){var t,r,n,o,i,a,s,c,l=lg(e,"number");if(cg(l))throw yg("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=gg(l),43===(t=Sg(l,0))||45===t){if(88===(r=Sg(l,2))||120===r)return NaN}else if(48===t){switch(Sg(l,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+l}for(a=(i=wg(l,2)).length,s=0;s<a;s++)if((c=Sg(i,s))<48||c>o)return NaN;return parseInt(i,n)}return+l},kg=og(mg,!vg(" 0o1")||!vg("0b1")||vg("+0x1")),Tg=function(e){return sg(bg,e)&&ug((function(){pg(e)}))},Eg=function(e){var t=arguments.length<1?0:vg(xg(e));return Tg(this)?ag(Object(t),this,Eg):t};Eg.prototype=bg,kg&&(bg.constructor=Eg),Qp({global:!0,constructor:!0,wrap:!0,forced:kg},{Number:Eg});kg&&function(e,t){for(var r,n=eg?fg(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)ig(t,r=n[o])&&!ig(e,r)&&dg(e,r,hg(t,r))}(rg.Number,vg);var _g=lo,Og=lc,Ng=R([].reverse),Cg=[1,2];_g({target:"Array",proto:!0,forced:String(Cg)===String(Cg.reverse())},{reverse:function(){return Og(this)&&(this.length=this.length),Ng(this)}});var Rg=Ge,Pg=kd,Lg=md;lo({target:"Object",stat:!0,forced:p((function(){Pg(1)})),sham:!Lg},{getPrototypeOf:function(e){return Pg(Rg(e))}});var Ig=y,Fg=Ht,jg=U,Dg=yn,Mg=Bo,Bg=V,Wg=Re,Ug=ns,Hg=ws;xa("match",(function(e,t,r){return[function(t){var r=Bg(this),n=jg(t)?void 0:Wg(t,e);return n?Ig(n,t,r):new RegExp(t)[e](Mg(r))},function(e){var n=Fg(this),o=Mg(e),i=r(t,n,o);if(i.done)return i.value;if(!n.global)return Hg(n,o);var a=n.unicode;n.lastIndex=0;for(var s,c=[],l=0;null!==(s=Hg(n,o));){var u=Mg(s[0]);c[l]=u,""===u&&(n.lastIndex=Ug(o,Dg(n.lastIndex),a)),l++}return 0===l?null:c}]}));var zg,Vg=lo,qg=da,$g=d.f,Gg=yn,Xg=Bo,Yg=nl,Kg=V,Jg=il,Zg=qg("".startsWith),Qg=qg("".slice),em=Math.min,tm=Jg("startsWith");Vg({target:"String",proto:!0,forced:!!(tm||(zg=$g(String.prototype,"startsWith"),!zg||zg.writable))&&!tm},{startsWith:function(e){var t=Xg(Kg(this));Yg(e);var r=Gg(em(arguments.length>1?arguments[1]:void 0,t.length)),n=Xg(e);return Zg?Zg(t,n,r):Qg(t,r,r+n.length)===n}});var rm=lo,nm=da,om=d.f,im=yn,am=Bo,sm=nl,cm=V,lm=il,um=nm("".endsWith),fm=nm("".slice),hm=Math.min,dm=lm("endsWith"),pm=!dm&&!!function(){var e=om(String.prototype,"endsWith");return e&&!e.writable}();rm({target:"String",proto:!0,forced:!pm&&!dm},{endsWith:function(e){var t=am(cm(this));sm(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,o=void 0===r?n:hm(im(r),n),i=am(e);return um?um(t,i,o):fm(t,o-i.length,o)===i}});var gm={getBootstrapVersion:function(){var t=5;try{var r=e.fn.dropdown.Constructor.VERSION;void 0!==r&&(t=parseInt(r,10))}catch(e){}try{var n=bootstrap.Tooltip.VERSION;void 0!==n&&(t=parseInt(n,10))}catch(e){}return t},getIconsPrefix:function(e){return{bootstrap3:"glyphicon",bootstrap4:"fa",bootstrap5:"bi","bootstrap-table":"icon",bulma:"fa",foundation:"fa",materialize:"material-icons",semantic:"fa"}[e]||"fa"},getIcons:function(e){return{glyphicon:{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"},fa:{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"},bi:{paginationSwitchDown:"bi-caret-down-square",paginationSwitchUp:"bi-caret-up-square",refresh:"bi-arrow-clockwise",toggleOff:"bi-toggle-off",toggleOn:"bi-toggle-on",columns:"bi-list-ul",detailOpen:"bi-plus",detailClose:"bi-dash",fullscreen:"bi-arrows-move",search:"bi-search",clearSearch:"bi-trash"},icon:{paginationSwitchDown:"icon-arrow-up-circle",paginationSwitchUp:"icon-arrow-down-circle",refresh:"icon-refresh-cw",toggleOff:"icon-toggle-right",toggleOn:"icon-toggle-right",columns:"icon-list",detailOpen:"icon-plus",detailClose:"icon-minus",fullscreen:"icon-maximize",search:"icon-search",clearSearch:"icon-trash-2"},"material-icons":{paginationSwitchDown:"grid_on",paginationSwitchUp:"grid_off",refresh:"refresh",toggleOff:"tablet",toggleOn:"tablet_android",columns:"view_list",detailOpen:"add",detailClose:"remove",fullscreen:"fullscreen",sort:"sort",search:"search",clearSearch:"delete"}}[e]},getSearchInput:function(t){return"string"==typeof t.options.searchSelector?e(t.options.searchSelector):t.$toolbar.find(".search input")},extend:function(){for(var e=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var i,a=n[0]||{},s=1,c=!1;for("boolean"==typeof a&&(c=a,a=n[s]||{},s++),"object"!==t(a)&&"function"!=typeof a&&(a={});s<n.length;s++){var l=n[s];if(null!=l)for(var u in l){var f=l[u];if("__proto__"!==u&&a!==f){var h=Array.isArray(f);if(c&&f&&(this.isObject(f)||h)){var d=a[u];if(h&&Array.isArray(d)&&d.every((function(t){return!e.isObject(t)&&!Array.isArray(t)}))){a[u]=f;continue}i=h&&!Array.isArray(d)?[]:h||this.isObject(d)?d:{},a[u]=this.extend(c,i,f)}else void 0!==f&&(a[u]=f)}}}return a},sprintf:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=!0,i=0,a=e.replace(/%s/g,(function(){var e=r[i++];return void 0===e?(o=!1,""):e}));return o?a:""},isObject:function(e){if("object"!==t(e)||null===e)return!1;for(var r=e;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r},isEmptyObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.entries(e).length&&e.constructor===Object},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},getFieldTitle:function(e,t){var r,n=l(e);try{for(n.s();!(r=n.n()).done;){var o=r.value;if(o.field===t)return o.title}}catch(e){n.e(e)}finally{n.f()}return""},setFieldIndex:function(e){var t,r=0,n=[],o=l(e[0]);try{for(o.s();!(t=o.n()).done;){r+=t.value.colspan||1}}catch(e){o.e(e)}finally{o.f()}for(var i=0;i<e.length;i++){n[i]=[];for(var a=0;a<r;a++)n[i][a]=!1}for(var s=0;s<e.length;s++){var c,u=l(e[s]);try{for(u.s();!(c=u.n()).done;){var f=c.value,h=f.rowspan||1,d=f.colspan||1,p=n[s].indexOf(!1);f.colspanIndex=p,1===d?(f.fieldIndex=p,void 0===f.field&&(f.field=p)):f.colspanGroup=f.colspan;for(var g=0;g<h;g++)for(var m=0;m<d;m++)n[s+g][p+m]=!0}}catch(e){u.e(e)}finally{u.f()}}},normalizeAccent:function(e){return"string"!=typeof e?e:e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")},updateFieldGroup:function(e,t){var r,n,o=(r=[]).concat.apply(r,a(e)),i=l(e);try{for(i.s();!(n=i.n()).done;){var s,c=l(n.value);try{for(c.s();!(s=c.n()).done;){var u=s.value;if(u.colspanGroup>1){for(var f=0,h=function(e){o.find((function(t){return t.fieldIndex===e})).visible&&f++},d=u.colspanIndex;d<u.colspanIndex+u.colspanGroup;d++)h(d);u.colspan=f,u.visible=f>0}}}catch(e){c.e(e)}finally{c.f()}}}catch(e){i.e(e)}finally{i.f()}if(!(e.length<2)){var p,g=l(t);try{var m=function(){var e=p.value,t=o.filter((function(t){return t.fieldIndex===e.fieldIndex}));if(t.length>1){var r,n=l(t);try{for(n.s();!(r=n.n()).done;){r.value.visible=e.visible}}catch(e){n.e(e)}finally{n.f()}}};for(g.s();!(p=g.n()).done;)m()}catch(e){g.e(e)}finally{g.f()}}},getScrollBarWidth:function(){if(void 0===this.cachedWidth){var t=e("<div/>").addClass("fixed-table-scroll-inner"),r=e("<div/>").addClass("fixed-table-scroll-outer");r.append(t),e("body").append(r);var n=t[0].offsetWidth;r.css("overflow","scroll");var o=t[0].offsetWidth;n===o&&(o=r[0].clientWidth),r.remove(),this.cachedWidth=n-o}return this.cachedWidth},calculateObjectValue:function(e,r,n,o){var i=r;if("string"==typeof r){var s=r.split(".");if(s.length>1){i=window;var c,u=l(s);try{for(u.s();!(c=u.n()).done;){i=i[c.value]}}catch(e){u.e(e)}finally{u.f()}}else i=window[r]}return null!==i&&"object"===t(i)?i:"function"==typeof i?i.apply(e,n||[]):!i&&"string"==typeof r&&n&&this.sprintf.apply(this,[r].concat(a(n)))?this.sprintf.apply(this,[r].concat(a(n))):o},compareObjects:function(e,t,r){var n=Object.keys(e),o=Object.keys(t);if(r&&n.length!==o.length)return!1;for(var i=0,a=n;i<a.length;i++){var s=a[i];if(o.includes(s)&&e[s]!==t[s])return!1}return!0},regexCompare:function(e,t){try{var r=t.match(/^\/(.*?)\/([gim]*)$/);if(-1!==e.toString().search(r?new RegExp(r[1],r[2]):new RegExp(t,"gim")))return!0}catch(e){return!1}return!1},escapeApostrophe:function(e){return e.toString().replace(/'/g,"'")},escapeHTML:function(e){return e?e.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):e},unescapeHTML:function(e){return"string"==typeof e&&e?e.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'"):e},removeHTML:function(e){return e?e.toString().replace(/(<([^>]+)>)/gi,"").replace(/&[#A-Za-z0-9]+;/gi,"").trim():e},getRealDataAttr:function(e){for(var t=0,r=Object.entries(e);t<r.length;t++){var n=i(r[t],2),o=n[0],a=n[1],s=o.split(/(?=[A-Z])/).join("-").toLowerCase();s!==o&&(e[s]=a,delete e[o])}return e},getItemField:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=e;if(void 0!==n&&(r=n),"string"!=typeof t||e.hasOwnProperty(t))return r?this.escapeHTML(e[t]):e[t];var i,a=t.split("."),s=l(a);try{for(s.s();!(i=s.n()).done;){var c=i.value;o=o&&o[c]}}catch(e){s.e(e)}finally{s.f()}return r?this.escapeHTML(o):o},isIEBrowser:function(){return navigator.userAgent.includes("MSIE ")||/Trident.*rv:11\./.test(navigator.userAgent)},findIndex:function(e,t){var r,n=l(e);try{for(n.s();!(r=n.n()).done;){var o=r.value;if(JSON.stringify(o)===JSON.stringify(t))return e.indexOf(o)}}catch(e){n.e(e)}finally{n.f()}return-1},trToData:function(t,r){var n=this,o=[],i=[];return r.each((function(r,a){var s=e(a),c={};c._id=s.attr("id"),c._class=s.attr("class"),c._data=n.getRealDataAttr(s.data()),c._style=s.attr("style"),s.find(">td,>th").each((function(o,a){for(var s=e(a),l=+s.attr("colspan")||1,u=+s.attr("rowspan")||1,f=o;i[r]&&i[r][f];f++);for(var h=f;h<f+l;h++)for(var d=r;d<r+u;d++)i[d]||(i[d]=[]),i[d][h]=!0;var p=t[f].field;c[p]=n.escapeApostrophe(s.html().trim()),c["_".concat(p,"_id")]=s.attr("id"),c["_".concat(p,"_class")]=s.attr("class"),c["_".concat(p,"_rowspan")]=s.attr("rowspan"),c["_".concat(p,"_colspan")]=s.attr("colspan"),c["_".concat(p,"_title")]=s.attr("title"),c["_".concat(p,"_data")]=n.getRealDataAttr(s.data()),c["_".concat(p,"_style")]=s.attr("style")})),o.push(c)})),o},sort:function(e,t,r,n,o,i){if(null==e&&(e=""),null==t&&(t=""),n.sortStable&&e===t&&(e=o,t=i),this.isNumeric(e)&&this.isNumeric(t))return(e=parseFloat(e))<(t=parseFloat(t))?-1*r:e>t?r:0;if(n.sortEmptyLast){if(""===e)return 1;if(""===t)return-1}return e===t?0:("string"!=typeof e&&(e=e.toString()),-1===e.localeCompare(t)?-1*r:r)},getEventName:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t=t||"".concat(+new Date).concat(~~(1e6*Math.random())),"".concat(e,"-").concat(t)},hasDetailViewIcon:function(e){return e.detailView&&e.detailViewIcon&&!e.cardView},getDetailViewIndexOffset:function(e){return this.hasDetailViewIcon(e)&&"right"!==e.detailViewAlign?1:0},checkAutoMergeCells:function(e){var t,r=l(e);try{for(r.s();!(t=r.n()).done;)for(var n=t.value,o=0,i=Object.keys(n);o<i.length;o++){var a=i[o];if(a.startsWith("_")&&(a.endsWith("_rowspan")||a.endsWith("_colspan")))return!0}}catch(e){r.e(e)}finally{r.f()}return!1},deepCopy:function(e){return void 0===e?e:this.extend(!0,Array.isArray(e)?[]:{},e)},debounce:function(e,t,r){var n;return function(){var o=this,i=arguments,a=function(){n=null,r||e.apply(o,i)},s=r&&!n;clearTimeout(n),n=setTimeout(a,t),s&&e.apply(o,i)}}},mm=gm.getBootstrapVersion(),vm={3:{classes:{buttonsPrefix:"btn",buttons:"default",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"pull",inputGroup:"input-group",inputPrefix:"input-",input:"form-control",select:"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:{classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",select:"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 class="input-group-append">%s</div></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>'}},5:{classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",select:"form-select",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{dataToggle:"data-bs-toggle",toolbarDropdown:['<div class="dropdown-menu dropdown-menu-end">',"</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%s</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>'}}}[mm],bm={height:void 0,classes:"table table-bordered table-hover",buttons:{},theadClasses:"",headerStyle:function(e){return{}},rowStyle:function(e,t){return{}},rowAttributes:function(e,t){return{}},undefinedText:"-",locale:void 0,virtualScroll:!1,virtualScrollItemHeight:void 0,sortable:!0,sortClass:void 0,silentSort:!0,sortEmptyLast:!1,sortName:void 0,sortOrder:void 0,sortReset:!1,sortStable:!1,sortResetPage:!1,rememberOrder:!1,serverSort:!0,customSort:void 0,columns:[[]],data:[],url:void 0,method:"get",cache:!0,contentType:"application/json",dataType:"json",ajax:void 0,ajaxOptions:{},queryParams:function(e){return e},queryParamsType:"limit",responseHandler:function(e){return e},totalField:"total",totalNotFilteredField:"totalNotFiltered",dataField:"rows",footerField:"footer",pagination:!1,paginationParts:["pageInfo","pageSize","pageList"],showExtendedPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,totalNotFiltered:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"‹",paginationNextText:"›",paginationSuccessivelySize:5,paginationPagesBySide:1,paginationUseIntermediate:!1,search:!1,searchable:!1,searchHighlight:!1,searchOnEnterKey:!1,strictSearch:!1,regexSearch:!1,searchSelector:!1,visibleSearch:!1,showButtonIcons:!0,showButtonText:!1,showSearchButton:!1,showSearchClearButton:!1,trimOnSearch:!0,searchAlign:"right",searchTimeOut:500,searchText:"",customSearch:void 0,showHeader:!0,showFooter:!1,footerStyle:function(e){return{}},searchAccentNeutralise:!1,showColumns:!1,showColumnsToggleAll:!1,showColumnsSearch:!1,minimumCountColumns:1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,showFullscreen:!1,smartDisplay:!0,escape:!1,escapeTitle:!0,filterOptions:{filterAlgorithm:"and"},idField:void 0,selectItemName:"btSelectItem",clickToSelect:!1,ignoreClickToSelectOn:function(e){var t=e.tagName;return["A","BUTTON"].includes(t)},singleSelect:!1,checkboxHeader:!0,maintainMetaData:!1,multipleSelectRow:!1,uniqueId:void 0,cardView:!1,detailView:!1,detailViewIcon:!0,detailViewByClick:!1,detailViewAlign:"left",detailFormatter:function(e,t){return""},detailFilter:function(e,t){return!0},toolbar:void 0,toolbarAlign:"left",buttonsToolbar:void 0,buttonsAlign:"right",buttonsOrder:["paginationSwitch","refresh","toggle","fullscreen","columns"],buttonsPrefix:vm.classes.buttonsPrefix,buttonsClass:vm.classes.buttons,iconsPrefix:void 0,icons:{},iconSize:void 0,loadingFontSize:"auto",loadingTemplate:function(e){return'<span class="loading-wrap">\n <span class="loading-text">'.concat(e,'</span>\n <span class="animation-wrap"><span class="animation-dot"></span></span>\n </span>\n ')},onAll:function(e,t){return!1},onClickCell:function(e,t,r,n){return!1},onDblClickCell:function(e,t,r,n){return!1},onClickRow:function(e,t){return!1},onDblClickRow:function(e,t){return!1},onSort:function(e,t){return!1},onCheck:function(e){return!1},onUncheck:function(e){return!1},onCheckAll:function(e){return!1},onUncheckAll:function(e){return!1},onCheckSome:function(e){return!1},onUncheckSome:function(e){return!1},onLoadSuccess:function(e){return!1},onLoadError:function(e){return!1},onColumnSwitch:function(e,t){return!1},onColumnSwitchAll:function(e){return!1},onPageChange:function(e,t){return!1},onSearch:function(e){return!1},onToggle:function(e){return!1},onPreBody:function(e){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onPostFooter:function(){return!1},onExpandRow:function(e,t,r){return!1},onCollapseRow:function(e,t){return!1},onRefreshOptions:function(e){return!1},onRefresh:function(e){return!1},onResetView:function(){return!1},onScrollBody:function(){return!1},onTogglePagination:function(e){return!1},onVirtualScroll:function(e,t){return!1}},ym={formatLoadingMessage:function(){return"Loading, please wait"},formatRecordsPerPage:function(e){return"".concat(e," rows per page")},formatShowingRows:function(e,t,r,n){return void 0!==n&&n>0&&n>r?"Showing ".concat(e," to ").concat(t," of ").concat(r," rows (filtered from ").concat(n," total rows)"):"Showing ".concat(e," to ").concat(t," of ").concat(r," rows")},formatSRPaginationPreText:function(){return"previous page"},formatSRPaginationPageText:function(e){return"to page ".concat(e)},formatSRPaginationNextText:function(){return"next page"},formatDetailPagination:function(e){return"Showing ".concat(e," rows")},formatSearch:function(){return"Search"},formatClearSearch:function(){return"Clear Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"Refresh"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Columns"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"All"}},wm={field:void 0,title:void 0,titleTooltip:void 0,class:void 0,width:void 0,widthUnit:"px",rowspan:void 0,colspan:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,cellStyle:void 0,radio:!1,checkbox:!1,checkboxEnabled:!0,clickToSelect:!0,showSelectTitle:!1,sortable:!1,sortName:void 0,order:"asc",sorter:void 0,visible:!0,switchable:!0,switchableLabel:void 0,cardVisible:!0,searchable:!0,formatter:void 0,footerFormatter:void 0,detailFormatter:void 0,searchFormatter:!0,searchHighlightFormatter:!1,escape:void 0,events:void 0};Object.assign(bm,ym);var Sm={VERSION:"1.22.1",THEME:"bootstrap".concat(mm),CONSTANTS:vm,DEFAULTS:bm,COLUMN_DEFAULTS:wm,METHODS:["getOptions","refreshOptions","getData","getSelections","load","append","prepend","remove","removeAll","insertRow","updateRow","getRowByUniqueId","updateByUniqueId","removeByUniqueId","updateCell","updateCellByUniqueId","showRow","hideRow","getHiddenRows","showColumn","hideColumn","getVisibleColumns","getHiddenColumns","showAllColumns","hideAllColumns","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","destroy","resetView","showLoading","hideLoading","togglePagination","toggleFullscreen","toggleView","resetSearch","filterBy","sortBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","toggleDetailView","expandRow","collapseRow","expandRowByUniqueId","collapseRowByUniqueId","expandAllRows","collapseAllRows","updateColumnTitle","updateFormatText"],EVENTS:{"all.bs.table":"onAll","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","column-switch-all.bs.table":"onColumnSwitchAll","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","post-footer.bs.table":"onPostFooter","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh","scroll-body.bs.table":"onScrollBody","toggle-pagination.bs.table":"onTogglePagination","virtual-scroll.bs.table":"onVirtualScroll"},LOCALES:{en:ym,"en-US":ym}},xm=function(){function e(t){var n=this;r(this,e),this.rows=t.rows,this.scrollEl=t.scrollEl,this.contentEl=t.contentEl,this.callback=t.callback,this.itemHeight=t.itemHeight,this.cache={},this.scrollTop=this.scrollEl.scrollTop,this.initDOM(this.rows,t.fixedScroll),this.scrollEl.scrollTop=this.scrollTop,this.lastCluster=0;var o=function(){n.lastCluster!==(n.lastCluster=n.getNum())&&(n.initDOM(n.rows),n.callback(n.startIndex,n.endIndex))};this.scrollEl.addEventListener("scroll",o,!1),this.destroy=function(){n.contentEl.innerHtml="",n.scrollEl.removeEventListener("scroll",o,!1)}}return o(e,[{key:"initDOM",value:function(e,t){void 0===this.clusterHeight&&(this.cache.scrollTop=this.scrollEl.scrollTop,this.cache.data=this.contentEl.innerHTML=e[0]+e[0]+e[0],this.getRowsHeight(e));var r=this.initData(e,this.getNum(t)),n=r.rows.join(""),o=this.checkChanges("data",n),i=this.checkChanges("top",r.topOffset),a=this.checkChanges("bottom",r.bottomOffset),s=[];o&&i?(r.topOffset&&s.push(this.getExtra("top",r.topOffset)),s.push(n),r.bottomOffset&&s.push(this.getExtra("bottom",r.bottomOffset)),this.startIndex=r.start,this.endIndex=r.end,this.contentEl.innerHTML=s.join(""),t&&(this.contentEl.scrollTop=this.cache.scrollTop)):a&&(this.contentEl.lastChild.style.height="".concat(r.bottomOffset,"px"))}},{key:"getRowsHeight",value:function(){if(void 0===this.itemHeight){var e=this.contentEl.children,t=e[Math.floor(e.length/2)];this.itemHeight=t.offsetHeight}this.blockHeight=50*this.itemHeight,this.clusterRows=200,this.clusterHeight=4*this.blockHeight}},{key:"getNum",value:function(e){return this.scrollTop=e?this.cache.scrollTop:this.scrollEl.scrollTop,Math.floor(this.scrollTop/(this.clusterHeight-this.blockHeight))||0}},{key:"initData",value:function(e,t){if(e.length<50)return{topOffset:0,bottomOffset:0,rowsAbove:0,rows:e};var r=Math.max((this.clusterRows-50)*t,0),n=r+this.clusterRows,o=Math.max(r*this.itemHeight,0),i=Math.max((e.length-n)*this.itemHeight,0),a=[],s=r;o<1&&s++;for(var c=r;c<n;c++)e[c]&&a.push(e[c]);return{start:r,end:n,topOffset:o,bottomOffset:i,rowsAbove:s,rows:a}}},{key:"checkChanges",value:function(e,t){var r=t!==this.cache[e];return this.cache[e]=t,r}},{key:"getExtra",value:function(e,t){var r=document.createElement("tr");return r.className="virtual-scroll-".concat(e),t&&(r.style.height="".concat(t,"px")),r.outerHTML}}]),e}(),Am=function(){function n(t,o){r(this,n),this.options=o,this.$el=e(t),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0}return o(n,[{key:"init",value:function(){this.initConstants(),this.initLocale(),this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initHiddenRows(),this.initToolbar(),this.initPagination(),this.initBody(),this.initSearchText(),this.initServer()}},{key:"initConstants",value:function(){var r=this.options;this.constants=Sm.CONSTANTS,this.constants.theme=e.fn.bootstrapTable.theme,this.constants.dataToggle=this.constants.html.dataToggle||"data-toggle";var n=gm.getIconsPrefix(e.fn.bootstrapTable.theme),o=gm.getIcons(n);"string"==typeof r.icons&&(r.icons=gm.calculateObjectValue(null,r.icons)),r.iconsPrefix=r.iconsPrefix||e.fn.bootstrapTable.defaults.iconsPrefix||n,r.icons=Object.assign(o,e.fn.bootstrapTable.defaults.icons,r.icons);var i=r.buttonsPrefix?"".concat(r.buttonsPrefix,"-"):"";this.constants.buttonsClass=[r.buttonsPrefix,i+r.buttonsClass,gm.sprintf("".concat(i,"%s"),r.iconSize)].join(" ").trim(),this.buttons=gm.calculateObjectValue(this,r.buttons,[],{}),"object"!==t(this.buttons)&&(this.buttons={})}},{key:"initLocale",value:function(){if(this.options.locale){var t=e.fn.bootstrapTable.locales,r=this.options.locale.split(/-|_/);r[0]=r[0].toLowerCase(),r[1]&&(r[1]=r[1].toUpperCase());var o={};t[this.options.locale]?o=t[this.options.locale]:t[r.join("-")]?o=t[r.join("-")]:t[r[0]]&&(o=t[r[0]]);for(var a=0,s=Object.entries(o);a<s.length;a++){var c=i(s[a],2),l=c[0],u=c[1];this.options[l]===n.DEFAULTS[l]&&(this.options[l]=u)}}}},{key:"initContainer",value:function(){var t=["top","both"].includes(this.options.paginationVAlign)?'<div class="fixed-table-pagination clearfix"></div>':"",r=["bottom","both"].includes(this.options.paginationVAlign)?'<div class="fixed-table-pagination"></div>':"",n=gm.calculateObjectValue(this.options,this.options.loadingTemplate,[this.options.formatLoadingMessage()]);this.$container=e('\n <div class="bootstrap-table '.concat(this.constants.theme,'">\n <div class="fixed-table-toolbar"></div>\n ').concat(t,'\n <div class="fixed-table-container">\n <div class="fixed-table-header"><table></table></div>\n <div class="fixed-table-body">\n <div class="fixed-table-loading">\n ').concat(n,'\n </div>\n </div>\n <div class="fixed-table-footer"></div>\n </div>\n ').concat(r,"\n </div>\n ")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$el.find("tfoot"),this.options.buttonsToolbar?this.$toolbar=e("body").find(this.options.buttonsToolbar):this.$toolbar=this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after('<div class="clearfix"></div>'),this.$el.addClass(this.options.classes),this.$tableLoading.addClass(this.options.classes),this.options.height&&(this.$tableContainer.addClass("fixed-height"),this.options.showFooter&&this.$tableContainer.addClass("has-footer"),this.options.classes.split(" ").includes("table-bordered")&&(this.$tableBody.append('<div class="fixed-table-border"></div>'),this.$tableBorder=this.$tableBody.find(".fixed-table-border"),this.$tableLoading.addClass("fixed-table-border")),this.$tableFooter=this.$container.find(".fixed-table-footer"))}},{key:"initTable",value:function(){var t=this,r=[];if(this.$header=this.$el.find(">thead"),this.$header.length?this.options.theadClasses&&this.$header.addClass(this.options.theadClasses):this.$header=e('<thead class="'.concat(this.options.theadClasses,'"></thead>')).appendTo(this.$el),this._headerTrClasses=[],this._headerTrStyles=[],this.$header.find("tr").each((function(n,o){var i=e(o),a=[];i.find("th").each((function(t,r){var n=e(r);void 0!==n.data("field")&&n.data("field","".concat(n.data("field")));var o=Object.assign({},n.data());for(var i in o)e.fn.bootstrapTable.columnDefaults.hasOwnProperty(i)&&delete o[i];a.push(gm.extend({},{_data:gm.getRealDataAttr(o),title:n.html(),class:n.attr("class"),titleTooltip:n.attr("title"),rowspan:n.attr("rowspan")?+n.attr("rowspan"):void 0,colspan:n.attr("colspan")?+n.attr("colspan"):void 0},n.data()))})),r.push(a),i.attr("class")&&t._headerTrClasses.push(i.attr("class")),i.attr("style")&&t._headerTrStyles.push(i.attr("style"))})),Array.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=gm.extend(!0,[],r,this.options.columns),this.columns=[],this.fieldsColumnsIndex=[],gm.setFieldIndex(this.options.columns),this.options.columns.forEach((function(e,r){e.forEach((function(e,o){var i=gm.extend({},n.COLUMN_DEFAULTS,e,{passed:e});void 0!==i.fieldIndex&&(t.columns[i.fieldIndex]=i,t.fieldsColumnsIndex[i.field]=i.fieldIndex),t.options.columns[r][o]=i}))})),!this.options.data.length){var o=gm.trToData(this.columns,this.$el.find(">tbody>tr"));o.length&&(this.options.data=o,this.fromHtml=!0)}this.options.pagination&&"server"!==this.options.sidePagination||(this.footerData=gm.trToData(this.columns,this.$el.find(">tfoot>tr"))),this.footerData&&this.$el.find("tfoot").html("<tr></tr>"),!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()}},{key:"initHeader",value:function(){var r=this,n={},o=[];this.header={fields:[],styles:[],classes:[],formatters:[],detailFormatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},gm.updateFieldGroup(this.options.columns,this.columns),this.options.columns.forEach((function(e,a){var s=[];s.push("<tr".concat(gm.sprintf(' class="%s"',r._headerTrClasses[a])," ").concat(gm.sprintf(' style="%s"',r._headerTrStyles[a]),">"));var c="";if(0===a&&gm.hasDetailViewIcon(r.options)){var l=r.options.columns.length>1?' rowspan="'.concat(r.options.columns.length,'"'):"";c='<th class="detail"'.concat(l,'>\n <div class="fht-cell"></div>\n </th>')}c&&"right"!==r.options.detailViewAlign&&s.push(c),e.forEach((function(e,o){var c=gm.sprintf(' class="%s"',e.class),l=e.widthUnit,u=parseFloat(e.width),f=e.halign?e.halign:e.align,h=gm.sprintf("text-align: %s; ",f),d=gm.sprintf("text-align: %s; ",e.align),p=gm.sprintf("vertical-align: %s; ",e.valign);if(p+=gm.sprintf("width: %s; ",!e.checkbox&&!e.radio||u?u?u+l:void 0:e.showSelectTitle?void 0:"36px"),void 0!==e.fieldIndex||e.visible){var g=gm.calculateObjectValue(null,r.options.headerStyle,[e]),m=[],v=[],b="";if(g&&g.css)for(var y=0,w=Object.entries(g.css);y<w.length;y++){var S=i(w[y],2),x=S[0],A=S[1];m.push("".concat(x,": ").concat(A))}if(g&&g.classes&&(b=gm.sprintf(' class="%s"',e.class?[e.class,g.classes].join(" "):g.classes)),void 0!==e.fieldIndex){if(r.header.fields[e.fieldIndex]=e.field,r.header.styles[e.fieldIndex]=d+p,r.header.classes[e.fieldIndex]=c,r.header.formatters[e.fieldIndex]=e.formatter,r.header.detailFormatters[e.fieldIndex]=e.detailFormatter,r.header.events[e.fieldIndex]=e.events,r.header.sorters[e.fieldIndex]=e.sorter,r.header.sortNames[e.fieldIndex]=e.sortName,r.header.cellStyles[e.fieldIndex]=e.cellStyle,r.header.searchables[e.fieldIndex]=e.searchable,!e.visible)return;if(r.options.cardView&&!e.cardVisible)return;n[e.field]=e}if(Object.keys(e._data||{}).length>0)for(var k=0,T=Object.entries(e._data);k<T.length;k++){var E=i(T[k],2),_=E[0],O=E[1];v.push("data-".concat(_,"='").concat("object"===t(O)?JSON.stringify(O):O,"'"))}s.push("<th".concat(gm.sprintf(' title="%s"',e.titleTooltip)),e.checkbox||e.radio?gm.sprintf(' class="bs-checkbox %s"',e.class||""):b||c,gm.sprintf(' style="%s"',h+p+m.join("; ")),gm.sprintf(' rowspan="%s"',e.rowspan),gm.sprintf(' colspan="%s"',e.colspan),gm.sprintf(' data-field="%s"',e.field),0===o&&a>0?" data-not-first-th":"",v.length>0?v.join(" "):"",">"),s.push(gm.sprintf('<div class="th-inner %s">',r.options.sortable&&e.sortable?"sortable".concat("center"===f?" sortable-center":""," both"):""));var N=r.options.escape&&r.options.escapeTitle?gm.escapeHTML(e.title):e.title,C=N;e.checkbox&&(N="",!r.options.singleSelect&&r.options.checkboxHeader&&(N='<label><input name="btSelectAll" type="checkbox" /><span></span></label>'),r.header.stateField=e.field),e.radio&&(N="",r.header.stateField=e.field),!N&&e.showSelectTitle&&(N+=C),s.push(N),s.push("</div>"),s.push('<div class="fht-cell"></div>'),s.push("</div>"),s.push("</th>")}})),c&&"right"===r.options.detailViewAlign&&s.push(c),s.push("</tr>"),s.length>3&&o.push(s.join(""))})),this.$header.html(o.join("")),this.$header.find("th[data-field]").each((function(t,r){e(r).data(n[e(r).data("field")])})),this.$container.off("click",".th-inner").on("click",".th-inner",(function(t){var n=e(t.currentTarget);if(r.options.detailView&&!n.parent().hasClass("bs-checkbox")&&n.closest(".bootstrap-table")[0]!==r.$container[0])return!1;r.options.sortable&&n.parent().data().sortable&&r.onSort(t)}));var a=gm.getEventName("resize.bootstrap-table",this.$el.attr("id"));e(window).off(a),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),e(window).on(a,(function(){return r.resetView()}))),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$selectAll.off("click").on("click",(function(t){t.stopPropagation();var n=e(t.currentTarget).prop("checked");r[n?"checkAll":"uncheckAll"](),r.updateSelected()}))}},{key:"initData",value:function(e,t){"append"===t?this.options.data=this.options.data.concat(e):"prepend"===t?this.options.data=[].concat(e).concat(this.options.data):(e=e||gm.deepCopy(this.options.data),this.options.data=Array.isArray(e)?e:e[this.options.dataField]),this.data=a(this.options.data),this.options.sortReset&&(this.unsortedData=a(this.data)),"server"!==this.options.sidePagination&&this.initSort()}},{key:"initSort",value:function(){var e=this,t=this.options.sortName,r="desc"===this.options.sortOrder?-1:1,n=this.header.fields.indexOf(this.options.sortName),o=0;-1!==n?(this.options.sortStable&&this.data.forEach((function(e,t){e.hasOwnProperty("_position")||(e._position=t)})),this.options.customSort?gm.calculateObjectValue(this.options,this.options.customSort,[this.options.sortName,this.options.sortOrder,this.data]):this.data.sort((function(o,i){e.header.sortNames[n]&&(t=e.header.sortNames[n]);var a=gm.getItemField(o,t,e.options.escape),s=gm.getItemField(i,t,e.options.escape),c=gm.calculateObjectValue(e.header,e.header.sorters[n],[a,s,o,i]);return void 0!==c?e.options.sortStable&&0===c?r*(o._position-i._position):r*c:gm.sort(a,s,r,e.options,o._position,i._position)})),void 0!==this.options.sortClass&&(clearTimeout(o),o=setTimeout((function(){e.$el.removeClass(e.options.sortClass);var t=e.$header.find('[data-field="'.concat(e.options.sortName,'"]')).index();e.$el.find("tr td:nth-child(".concat(t+1,")")).addClass(e.options.sortClass)}),250))):this.options.sortReset&&(this.data=a(this.unsortedData))}},{key:"sortBy",value:function(e){this.options.sortName=e.field,this.options.sortOrder=e.hasOwnProperty("sortOrder")?e.sortOrder:"asc",this._sort()}},{key:"onSort",value:function(t){var r=t.type,n=t.currentTarget,o="keypress"===r?e(n):e(n).parent(),i=this.$header.find("th").eq(o.index());if(this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===o.data("field")){var a=this.options.sortOrder,s=this.columns[this.fieldsColumnsIndex[o.data("field")]].sortOrder||this.columns[this.fieldsColumnsIndex[o.data("field")]].order;void 0===a?this.options.sortOrder="asc":"asc"===a?this.options.sortOrder=this.options.sortReset?"asc"===s?"desc":void 0:"desc":"desc"===this.options.sortOrder&&(this.options.sortOrder=this.options.sortReset?"desc"===s?"asc":void 0:"asc"),void 0===this.options.sortOrder&&(this.options.sortName=void 0)}else this.options.sortName=o.data("field"),this.options.rememberOrder?this.options.sortOrder="asc"===o.data("order")?"desc":"asc":this.options.sortOrder=this.columns[this.fieldsColumnsIndex[o.data("field")]].sortOrder||this.columns[this.fieldsColumnsIndex[o.data("field")]].order;o.add(i).data("order",this.options.sortOrder),this.getCaret(),this._sort()}},{key:"_sort",value:function(){if(this.trigger("sort",this.options.sortName,this.options.sortOrder),"server"===this.options.sidePagination&&this.options.serverSort)return this.options.pageNumber=1,void this.initServer(this.options.silentSort);this.options.pagination&&this.options.sortResetPage&&(this.options.pageNumber=1,this.initPagination()),this.initSort(),this.initBody()}},{key:"initToolbar",value:function(){var r,n=this,o=this.options,a=[],s=0,c=0;this.$toolbar.find(".bs-bars").children().length&&e("body").append(e(o.toolbar)),this.$toolbar.html(""),"string"!=typeof o.toolbar&&"object"!==t(o.toolbar)||e(gm.sprintf('<div class="bs-bars %s-%s"></div>',this.constants.classes.pull,o.toolbarAlign)).appendTo(this.$toolbar).append(e(o.toolbar)),a=['<div class="'.concat(["columns","columns-".concat(o.buttonsAlign),this.constants.classes.buttonsGroup,"".concat(this.constants.classes.pull,"-").concat(o.buttonsAlign)].join(" "),'">')],"string"==typeof o.buttonsOrder&&(o.buttonsOrder=o.buttonsOrder.replace(/\[|\]| |'/g,"").split(",")),this.buttons=Object.assign(this.buttons,{paginationSwitch:{text:o.pagination?o.formatPaginationSwitchUp():o.formatPaginationSwitchDown(),icon:o.pagination?o.icons.paginationSwitchDown:o.icons.paginationSwitchUp,render:!1,event:this.togglePagination,attributes:{"aria-label":o.formatPaginationSwitch(),title:o.formatPaginationSwitch()}},refresh:{text:o.formatRefresh(),icon:o.icons.refresh,render:!1,event:this.refresh,attributes:{"aria-label":o.formatRefresh(),title:o.formatRefresh()}},toggle:{text:o.formatToggleOn(),icon:o.icons.toggleOff,render:!1,event:this.toggleView,attributes:{"aria-label":o.formatToggleOn(),title:o.formatToggleOn()}},fullscreen:{text:o.formatFullscreen(),icon:o.icons.fullscreen,render:!1,event:this.toggleFullscreen,attributes:{"aria-label":o.formatFullscreen(),title:o.formatFullscreen()}},columns:{render:!1,html:function(){var e=[];if(e.push('<div class="keep-open '.concat(n.constants.classes.buttonsDropdown,'">\n <button class="').concat(n.constants.buttonsClass,' dropdown-toggle" type="button" ').concat(n.constants.dataToggle,'="dropdown"\n aria-label="').concat(o.formatColumns(),'" title="').concat(o.formatColumns(),'">\n ').concat(o.showButtonIcons?gm.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&&(e.push(gm.sprintf(n.constants.html.toolbarDropdownItem,gm.sprintf('<input type="text" class="%s" name="columnsSearch" placeholder="%s" autocomplete="off">',n.constants.classes.input,o.formatSearch()))),e.push(n.constants.html.toolbarDropdownSeparator)),o.showColumnsToggleAll){var t=n.getVisibleColumns().length===n.columns.filter((function(e){return!n.isSelectionColumn(e)})).length;e.push(gm.sprintf(n.constants.html.toolbarDropdownItem,gm.sprintf('<input type="checkbox" class="toggle-all" %s> <span>%s</span>',t?'checked="checked"':"",o.formatColumnsToggleAll()))),e.push(n.constants.html.toolbarDropdownSeparator)}var r=0;return n.columns.forEach((function(e){e.visible&&r++})),n.columns.forEach((function(t,i){if(!n.isSelectionColumn(t)&&(!o.cardView||t.cardVisible)){var a=t.visible?' checked="checked"':"",s=r<=o.minimumCountColumns&&a?' disabled="disabled"':"";t.switchable&&(e.push(gm.sprintf(n.constants.html.toolbarDropdownItem,gm.sprintf('<input type="checkbox" data-field="%s" value="%s"%s%s> <span>%s</span>',t.field,i,a,s,t.switchableLabel?t.switchableLabel:t.title))),c++)}})),e.push(n.constants.html.toolbarDropdown[1],"</div>"),e.join("")}}});for(var u={},f=0,h=Object.entries(this.buttons);f<h.length;f++){var d=i(h[f],2),p=d[0],g=d[1],m=void 0;if(g.hasOwnProperty("html"))"function"==typeof g.html?m=g.html():"string"==typeof g.html&&(m=g.html);else{var v=this.constants.buttonsClass;if(g.hasOwnProperty("attributes")&&g.attributes.class&&(v+=" ".concat(g.attributes.class)),m='<button class="'.concat(v,'" type="button" name="').concat(p,'"'),g.hasOwnProperty("attributes"))for(var b=0,y=Object.entries(g.attributes);b<y.length;b++){var w=i(y[b],2),S=w[0],x=w[1];"class"!==S&&(m+=" ".concat(S,'="').concat(x,'"'))}m+=">",o.showButtonIcons&&g.hasOwnProperty("icon")&&(m+="".concat(gm.sprintf(this.constants.html.icon,o.iconsPrefix,g.icon)," ")),o.showButtonText&&g.hasOwnProperty("text")&&(m+=g.text),m+="</button>"}u[p]=m;var A="show".concat(p.charAt(0).toUpperCase()).concat(p.substring(1)),k=o[A];!(!g.hasOwnProperty("render")||g.hasOwnProperty("render")&&g.render)||void 0!==k&&!0!==k||(o[A]=!0),o.buttonsOrder.includes(p)||o.buttonsOrder.push(p)}var T,E=l(o.buttonsOrder);try{for(E.s();!(T=E.n()).done;){var _=T.value;o["show".concat(_.charAt(0).toUpperCase()).concat(_.substring(1))]&&a.push(u[_])}}catch(e){E.e(e)}finally{E.f()}a.push("</div>"),(this.showToolbar||a.length>2)&&this.$toolbar.append(a.join(""));for(var O=0,N=Object.entries(this.buttons);O<N.length;O++){var C=i(N[O],2),R=C[0],P=C[1];if(P.hasOwnProperty("event")){if("function"==typeof P.event||"string"==typeof P.event)if("continue"===function(){var e="string"==typeof P.event?window[P.event]:P.event;return n.$toolbar.find('button[name="'.concat(R,'"]')).off("click").on("click",(function(){return e.call(n)})),"continue"}())continue;for(var L=function(){var e=i(F[I],2),t=e[0],r=e[1],o="string"==typeof r?window[r]:r;n.$toolbar.find('button[name="'.concat(R,'"]')).off(t).on(t,(function(){return o.call(n)}))},I=0,F=Object.entries(P.event);I<F.length;I++)L()}}if(o.showColumns){var j=(r=this.$toolbar.find(".keep-open")).find('input[type="checkbox"]:not(".toggle-all")'),D=r.find('input[type="checkbox"].toggle-all');if(c<=o.minimumCountColumns&&r.find("input").prop("disabled",!0),r.find("li, label").off("click").on("click",(function(e){e.stopImmediatePropagation()})),j.off("click").on("click",(function(t){var r=t.currentTarget,o=e(r);n._toggleColumn(o.val(),o.prop("checked"),!1),n.trigger("column-switch",o.data("field"),o.prop("checked")),D.prop("checked",j.filter(":checked").length===n.columns.filter((function(e){return!n.isSelectionColumn(e)})).length)})),D.off("click").on("click",(function(t){var r=t.currentTarget;n._toggleAllColumns(e(r).prop("checked")),n.trigger("column-switch-all",e(r).prop("checked"))})),o.showColumnsSearch){var M=r.find('[name="columnsSearch"]'),B=r.find(".dropdown-item-marker");M.on("keyup paste change",(function(t){var r=t.currentTarget,n=e(r).val().toLowerCase();B.show(),j.each((function(t,r){var o=e(r).parents(".dropdown-item-marker");o.text().toLowerCase().includes(n)||o.hide()}))}))}}var W=function(e){var t=e.is("select")?"change":"keyup drop blur mouseup";e.off(t).on(t,(function(e){o.searchOnEnterKey&&13!==e.keyCode||[37,38,39,40].includes(e.keyCode)||(clearTimeout(s),s=setTimeout((function(){n.onSearch({currentTarget:e.currentTarget})}),o.searchTimeOut))}))};if((o.search||this.showSearchClearButton)&&"string"!=typeof o.searchSelector){a=[];var U=gm.sprintf(this.constants.html.searchButton,this.constants.buttonsClass,o.formatSearch(),o.showButtonIcons?gm.sprintf(this.constants.html.icon,o.iconsPrefix,o.icons.search):"",o.showButtonText?o.formatSearch():""),H=gm.sprintf(this.constants.html.searchClearButton,this.constants.buttonsClass,o.formatClearSearch(),o.showButtonIcons?gm.sprintf(this.constants.html.icon,o.iconsPrefix,o.icons.clearSearch):"",o.showButtonText?o.formatClearSearch():""),z='<input class="'.concat(this.constants.classes.input,"\n ").concat(gm.sprintf(" %s%s",this.constants.classes.inputPrefix,o.iconSize),'\n search-input" type="search" aria-label="').concat(o.formatSearch(),'" placeholder="').concat(o.formatSearch(),'" autocomplete="off">'),V=z;if(o.showSearchButton||o.showSearchClearButton){var q=(o.showSearchButton?U:"")+(o.showSearchClearButton?H:"");V=o.search?gm.sprintf(this.constants.html.inputGroup,z,q):q}a.push(gm.sprintf('\n <div class="'.concat(this.constants.classes.pull,"-").concat(o.searchAlign," search ").concat(this.constants.classes.inputGroup,'">\n %s\n </div>\n '),V)),this.$toolbar.append(a.join(""));var $=gm.getSearchInput(this);o.showSearchButton?(this.$toolbar.find(".search button[name=search]").off("click").on("click",(function(){clearTimeout(s),s=setTimeout((function(){n.onSearch({currentTarget:$})}),o.searchTimeOut)})),o.searchOnEnterKey&&W($)):W($),o.showSearchClearButton&&this.$toolbar.find(".search button[name=clearSearch]").click((function(){n.resetSearch()}))}else if("string"==typeof o.searchSelector){W(gm.getSearchInput(this))}}},{key:"onSearch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.currentTarget,n=t.firedByInitSearchText,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0!==r&&e(r).length&&o){var i=e(r).val().trim();if(this.options.trimOnSearch&&e(r).val()!==i&&e(r).val(i),this.searchText===i)return;var a=gm.getSearchInput(this),s=r instanceof jQuery?r:e(r);(s.is(a)||s.hasClass("search-input"))&&(this.searchText=i,this.options.searchText=i)}n||(this.options.pageNumber=1),this.initSearch(),n?"client"===this.options.sidePagination&&this.updatePagination():this.updatePagination(),this.trigger("search",this.searchText)}},{key:"initSearch",value:function(){var e=this;if(this.filterOptions=this.filterOptions||this.options.filterOptions,"server"!==this.options.sidePagination){if(this.options.customSearch)return this.data=gm.calculateObjectValue(this.options,this.options.customSearch,[this.options.data,this.searchText,this.filterColumns]),this.options.sortReset&&(this.unsortedData=a(this.data)),void this.initSort();var t=this.searchText&&(this.fromHtml?gm.escapeHTML(this.searchText):this.searchText),r=t?t.toLowerCase():"",n=gm.isEmptyObject(this.filterColumns)?null:this.filterColumns;this.options.searchAccentNeutralise&&(r=gm.normalizeAccent(r)),"function"==typeof this.filterOptions.filterAlgorithm?this.data=this.options.data.filter((function(t){return e.filterOptions.filterAlgorithm.apply(null,[t,n])})):"string"==typeof this.filterOptions.filterAlgorithm&&(this.data=n?this.options.data.filter((function(t){var r=e.filterOptions.filterAlgorithm;if("and"===r){for(var o in n)if(Array.isArray(n[o])&&!n[o].includes(t[o])||!Array.isArray(n[o])&&t[o]!==n[o])return!1}else if("or"===r){var i=!1;for(var a in n)(Array.isArray(n[a])&&n[a].includes(t[a])||!Array.isArray(n[a])&&t[a]===n[a])&&(i=!0);return i}return!0})):a(this.options.data));var o=this.getVisibleFields();this.data=r?this.data.filter((function(n,i){for(var a=0;a<e.header.fields.length;a++)if(e.header.searchables[a]&&(!e.options.visibleSearch||-1!==o.indexOf(e.header.fields[a]))){var s=gm.isNumeric(e.header.fields[a])?parseInt(e.header.fields[a],10):e.header.fields[a],c=e.columns[e.fieldsColumnsIndex[s]],l=void 0;if("string"==typeof s){l=n;for(var u=s.split("."),f=0;f<u.length;f++){if(null===l[u[f]]){l=null;break}l=l[u[f]]}}else l=n[s];if(e.options.searchAccentNeutralise&&(l=gm.normalizeAccent(l)),c&&c.searchFormatter&&(l=gm.calculateObjectValue(c,e.header.formatters[a],[l,n,i,c.field],l)),"string"==typeof l||"number"==typeof l){if(e.options.strictSearch&&"".concat(l).toLowerCase()===r||e.options.regexSearch&&gm.regexCompare(l,t))return!0;var h=/(?:(<=|=>|=<|>=|>|<)(?:\s+)?(-?\d+)?|(-?\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm.exec(e.searchText),d=!1;if(h){var p=h[1]||"".concat(h[5],"l"),g=h[2]||h[3],m=parseInt(l,10),v=parseInt(g,10);switch(p){case">":case"<l":d=m>v;break;case"<":case">l":d=m<v;break;case"<=":case"=<":case">=l":case"=>l":d=m<=v;break;case">=":case"=>":case"<=l":case"=<l":d=m>=v}}if(d||"".concat(l).toLowerCase().includes(r))return!0}}return!1})):this.data,this.options.sortReset&&(this.unsortedData=a(this.data)),this.initSort()}}},{key:"initPagination",value:function(){var e=this,t=this.options;if(t.pagination){this.$pagination.show();var r,n,o,i,a,s,c,l=[],u=!1,f=this.getData({includeHiddenRows:!1}),h=t.pageList;if("string"==typeof h&&(h=h.replace(/\[|\]| /g,"").toLowerCase().split(",")),h=h.map((function(e){return"string"==typeof e?e.toLowerCase()===t.formatAllRows().toLowerCase()||["all","unlimited"].includes(e.toLowerCase())?t.formatAllRows():+e:e})),this.paginationParts=t.paginationParts,"string"==typeof this.paginationParts&&(this.paginationParts=this.paginationParts.replace(/\[|\]| |'/g,"").split(",")),"server"!==t.sidePagination&&(t.totalRows=f.length),this.totalPages=0,t.totalRows&&(t.pageSize===t.formatAllRows()&&(t.pageSize=t.totalRows,u=!0),this.totalPages=1+~~((t.totalRows-1)/t.pageSize),t.totalPages=this.totalPages),this.totalPages>0&&t.pageNumber>this.totalPages&&(t.pageNumber=this.totalPages),this.pageFrom=(t.pageNumber-1)*t.pageSize+1,this.pageTo=t.pageNumber*t.pageSize,this.pageTo>t.totalRows&&(this.pageTo=t.totalRows),this.options.pagination&&"server"!==this.options.sidePagination&&(this.options.totalNotFiltered=this.options.data.length),this.options.showExtendedPagination||(this.options.totalNotFiltered=void 0),(this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")||this.paginationParts.includes("pageSize"))&&l.push('<div class="'.concat(this.constants.classes.pull,"-").concat(t.paginationDetailHAlign,' pagination-detail">')),this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")){var d=this.paginationParts.includes("pageInfoShort")?t.formatDetailPagination(t.totalRows):t.formatShowingRows(this.pageFrom,this.pageTo,t.totalRows,t.totalNotFiltered);l.push('<span class="pagination-info">\n '.concat(d,"\n </span>"))}if(this.paginationParts.includes("pageSize")){l.push('<div class="page-list">');var p=['<div class="'.concat(this.constants.classes.paginationDropdown,'">\n <button class="').concat(this.constants.buttonsClass,' dropdown-toggle" type="button" ').concat(this.constants.dataToggle,'="dropdown">\n <span class="page-size">\n ').concat(u?t.formatAllRows():t.pageSize,"\n </span>\n ").concat(this.constants.html.dropdownCaret,"\n </button>\n ").concat(this.constants.html.pageDropdown[0])];h.forEach((function(r,n){var o;(!t.smartDisplay||0===n||h[n-1]<t.totalRows||r===t.formatAllRows())&&(o=u?r===t.formatAllRows()?e.constants.classes.dropdownActive:"":r===t.pageSize?e.constants.classes.dropdownActive:"",p.push(gm.sprintf(e.constants.html.pageDropdownItem,o,r)))})),p.push("".concat(this.constants.html.pageDropdown[1],"</div>")),l.push(t.formatRecordsPerPage(p.join("")))}if((this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")||this.paginationParts.includes("pageSize"))&&l.push("</div></div>"),this.paginationParts.includes("pageList")){l.push('<div class="'.concat(this.constants.classes.pull,"-").concat(t.paginationHAlign,' pagination">'),gm.sprintf(this.constants.html.pagination[0],gm.sprintf(" pagination-%s",t.iconSize)),gm.sprintf(this.constants.html.paginationItem," page-pre",t.formatSRPaginationPreText(),t.paginationPreText)),this.totalPages<t.paginationSuccessivelySize?(n=1,o=this.totalPages):o=(n=t.pageNumber-t.paginationPagesBySide)+2*t.paginationPagesBySide,t.pageNumber<t.paginationSuccessivelySize-1&&(o=t.paginationSuccessivelySize),t.paginationSuccessivelySize>this.totalPages-n&&(n=n-(t.paginationSuccessivelySize-(this.totalPages-n))+1),n<1&&(n=1),o>this.totalPages&&(o=this.totalPages);var g=Math.round(t.paginationPagesBySide/2),m=function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return gm.sprintf(e.constants.html.paginationItem,n+(r===t.pageNumber?" ".concat(e.constants.classes.paginationActive):""),t.formatSRPaginationPageText(r),r)};if(n>1){var v=t.paginationPagesBySide;for(v>=n&&(v=n-1),r=1;r<=v;r++)l.push(m(r));n-1===v+1?(r=n-1,l.push(m(r))):n-1>v&&(n-2*t.paginationPagesBySide>t.paginationPagesBySide&&t.paginationUseIntermediate?(r=Math.round((n-g)/2+g),l.push(m(r," page-intermediate"))):l.push(gm.sprintf(this.constants.html.paginationItem," page-first-separator disabled","","...")))}for(r=n;r<=o;r++)l.push(m(r));if(this.totalPages>o){var b=this.totalPages-(t.paginationPagesBySide-1);for(o>=b&&(b=o+1),o+1===b-1?(r=o+1,l.push(m(r))):b>o+1&&(this.totalPages-o>2*t.paginationPagesBySide&&t.paginationUseIntermediate?(r=Math.round((this.totalPages-g-o)/2+o),l.push(m(r," page-intermediate"))):l.push(gm.sprintf(this.constants.html.paginationItem," page-last-separator disabled","","..."))),r=b;r<=this.totalPages;r++)l.push(m(r))}l.push(gm.sprintf(this.constants.html.paginationItem," page-next",t.formatSRPaginationNextText(),t.paginationNextText)),l.push(this.constants.html.pagination[1],"</div>")}this.$pagination.html(l.join(""));var y=["bottom","both"].includes(t.paginationVAlign)?" ".concat(this.constants.classes.dropup):"";this.$pagination.last().find(".page-list > div").addClass(y),t.onlyInfoPagination||(i=this.$pagination.find(".page-list a"),a=this.$pagination.find(".page-pre"),s=this.$pagination.find(".page-next"),c=this.$pagination.find(".page-item").not(".page-next, .page-pre, .page-last-separator, .page-first-separator"),this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),t.smartDisplay&&(h.length<2||t.totalRows<=h[0])&&this.$pagination.find("div.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"](),t.paginationLoop||(1===t.pageNumber&&a.addClass("disabled"),t.pageNumber===this.totalPages&&s.addClass("disabled")),u&&(t.pageSize=t.formatAllRows()),i.off("click").on("click",(function(t){return e.onPageListChange(t)})),a.off("click").on("click",(function(t){return e.onPagePre(t)})),s.off("click").on("click",(function(t){return e.onPageNext(t)})),c.off("click").on("click",(function(t){return e.onPageNumber(t)})))}else this.$pagination.hide()}},{key:"updatePagination",value:function(t){t&&e(t.currentTarget).hasClass("disabled")||(this.options.maintainMetaData||this.resetRows(),this.initPagination(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize),"server"===this.options.sidePagination?this.initServer():this.initBody())}},{key:"onPageListChange",value:function(t){t.preventDefault();var r=e(t.currentTarget);return r.parent().addClass(this.constants.classes.dropdownActive).siblings().removeClass(this.constants.classes.dropdownActive),this.options.pageSize=r.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+r.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(t),!1}},{key:"onPagePre",value:function(t){if(!e(t.target).hasClass("disabled"))return t.preventDefault(),this.options.pageNumber-1==0?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(t),!1}},{key:"onPageNext",value:function(t){if(!e(t.target).hasClass("disabled"))return t.preventDefault(),this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(t),!1}},{key:"onPageNumber",value:function(t){if(t.preventDefault(),this.options.pageNumber!==+e(t.currentTarget).text())return this.options.pageNumber=+e(t.currentTarget).text(),this.updatePagination(t),!1}},{key:"initRow",value:function(e,r,n,o){var a=this,s=[],c={},l=[],u="",f={},h=[];if(!(gm.findIndex(this.hiddenRows,e)>-1)){if((c=gm.calculateObjectValue(this.options,this.options.rowStyle,[e,r],c))&&c.css)for(var d=0,p=Object.entries(c.css);d<p.length;d++){var g=i(p[d],2),m=g[0],v=g[1];l.push("".concat(m,": ").concat(v))}if(f=gm.calculateObjectValue(this.options,this.options.rowAttributes,[e,r],f))for(var b=0,y=Object.entries(f);b<y.length;b++){var w=i(y[b],2),S=w[0],x=w[1];h.push("".concat(S,'="').concat(gm.escapeHTML(x),'"'))}if(e._data&&!gm.isEmptyObject(e._data))for(var A=0,k=Object.entries(e._data);A<k.length;A++){var T=i(k[A],2),E=T[0],_=T[1];if("index"===E)return;u+=" data-".concat(E,"='").concat("object"===t(_)?JSON.stringify(_):_,"'")}s.push("<tr",gm.sprintf(" %s",h.length?h.join(" "):void 0),gm.sprintf(' id="%s"',Array.isArray(e)?void 0:e._id),gm.sprintf(' class="%s"',c.classes||(Array.isArray(e)?void 0:e._class)),gm.sprintf(' style="%s"',Array.isArray(e)?void 0:e._style),' data-index="'.concat(r,'"'),gm.sprintf(' data-uniqueid="%s"',gm.getItemField(e,this.options.uniqueId,!1)),gm.sprintf(' data-has-detail-view="%s"',this.options.detailView&&gm.calculateObjectValue(null,this.options.detailFilter,[r,e])?"true":void 0),gm.sprintf("%s",u),">"),this.options.cardView&&s.push('<td colspan="'.concat(this.header.fields.length,'"><div class="card-views">'));var O="";return gm.hasDetailViewIcon(this.options)&&(O="<td>",gm.calculateObjectValue(null,this.options.detailFilter,[r,e])&&(O+='\n <a class="detail-icon" href="#">\n '.concat(gm.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen),"\n </a>\n ")),O+="</td>"),O&&"right"!==this.options.detailViewAlign&&s.push(O),this.header.fields.forEach((function(t,n){var o=a.columns[n],c="",u=gm.getItemField(e,t,a.options.escape,o.escape),f="",h="",d={},p="",g=a.header.classes[n],m="",v="",b="",y="",w="",S="";if((!a.fromHtml&&!a.autoMergeCells||void 0!==u||o.checkbox||o.radio)&&o.visible&&(!a.options.cardView||o.cardVisible)){if(l.concat([a.header.styles[n]]).length&&(v+="".concat(l.concat([a.header.styles[n]]).join("; "))),e["_".concat(t,"_style")]&&(v+="".concat(e["_".concat(t,"_style")])),v&&(m=' style="'.concat(v,'"')),e["_".concat(t,"_id")]&&(p=gm.sprintf(' id="%s"',e["_".concat(t,"_id")])),e["_".concat(t,"_class")]&&(g=gm.sprintf(' class="%s"',e["_".concat(t,"_class")])),e["_".concat(t,"_rowspan")]&&(y=gm.sprintf(' rowspan="%s"',e["_".concat(t,"_rowspan")])),e["_".concat(t,"_colspan")]&&(w=gm.sprintf(' colspan="%s"',e["_".concat(t,"_colspan")])),e["_".concat(t,"_title")]&&(S=gm.sprintf(' title="%s"',e["_".concat(t,"_title")])),(d=gm.calculateObjectValue(a.header,a.header.cellStyles[n],[u,e,r,t],d)).classes&&(g=' class="'.concat(d.classes,'"')),d.css){for(var x=[],A=0,k=Object.entries(d.css);A<k.length;A++){var T=i(k[A],2),E=T[0],_=T[1];x.push("".concat(E,": ").concat(_))}m=' style="'.concat(x.concat(a.header.styles[n]).join("; "),'"')}if(f=gm.calculateObjectValue(o,a.header.formatters[n],[u,e,r,t],u),o.checkbox||o.radio||(f=null==f?a.options.undefinedText:f),o.searchable&&a.searchText&&a.options.searchHighlight&&!o.checkbox&&!o.radio){var O="",N=a.searchText.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(a.options.searchAccentNeutralise){var C=new RegExp("".concat(gm.normalizeAccent(N)),"gmi").exec(gm.normalizeAccent(f));C&&(N=f.substring(C.index,C.index+N.length))}var R=new RegExp("(".concat(N,")"),"gim"),P="<mark>$1</mark>";if(f&&/<(?=.*? .*?\/ ?>|br|hr|input|!--|wbr)[a-z]+.*?>|<([a-z]+).*?<\/\1>/i.test(f)){var L=(new DOMParser).parseFromString(f.toString(),"text/html").documentElement.textContent,I=L.replace(R,P);L=L.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),O=f.replace(new RegExp("(>\\s*)(".concat(L,")(\\s*)"),"gm"),"$1".concat(I,"$3"))}else O=f.toString().replace(R,P);f=gm.calculateObjectValue(o,o.searchHighlightFormatter,[f,a.searchText],O)}if(e["_".concat(t,"_data")]&&!gm.isEmptyObject(e["_".concat(t,"_data")]))for(var F=0,j=Object.entries(e["_".concat(t,"_data")]);F<j.length;F++){var D=i(j[F],2),M=D[0],B=D[1];if("index"===M)return;b+=" data-".concat(M,'="').concat(B,'"')}if(o.checkbox||o.radio){h=o.checkbox?"checkbox":h,h=o.radio?"radio":h;var W=o.class||"",U=gm.isObject(f)&&f.hasOwnProperty("checked")?f.checked:(!0===f||u)&&!1!==f,H=!o.checkboxEnabled||f&&f.disabled;c=[a.options.cardView?'<div class="card-view '.concat(W,'">'):'<td class="bs-checkbox '.concat(W,'"').concat(g).concat(m,">"),'<label>\n <input\n data-index="'.concat(r,'"\n name="').concat(a.options.selectItemName,'"\n type="').concat(h,'"\n ').concat(gm.sprintf('value="%s"',e[a.options.idField]),"\n ").concat(gm.sprintf('checked="%s"',U?"checked":void 0),"\n ").concat(gm.sprintf('disabled="%s"',H?"disabled":void 0)," />\n <span></span>\n </label>"),a.header.formatters[n]&&"string"==typeof f?f:"",a.options.cardView?"</div>":"</td>"].join(""),e[a.header.stateField]=!0===f||!!u||f&&f.checked}else if(a.options.cardView){var z=a.options.showHeader?'<span class="card-view-title '.concat(d.classes||"",'"').concat(m,">").concat(gm.getFieldTitle(a.columns,t),"</span>"):"";c='<div class="card-view">'.concat(z,'<span class="card-view-value ').concat(d.classes||"",'"').concat(m,">").concat(f,"</span></div>"),a.options.smartDisplay&&""===f&&(c='<div class="card-view"></div>')}else c="<td".concat(p).concat(g).concat(m).concat(b).concat(y).concat(w).concat(S,">").concat(f,"</td>");s.push(c)}})),O&&"right"===this.options.detailViewAlign&&s.push(O),this.options.cardView&&s.push("</div></td>"),s.push("</tr>"),s.join("")}}},{key:"initBody",value:function(t,r){var n=this,o=this.getData();this.trigger("pre-body",o),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=e("<tbody></tbody>").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=o.length);var i=[],a=e(document.createDocumentFragment()),s=!1,c=[];this.autoMergeCells=gm.checkAutoMergeCells(o.slice(this.pageFrom-1,this.pageTo));for(var l=this.pageFrom-1;l<this.pageTo;l++){var u=o[l],f=this.initRow(u,l,o,a);if(s=s||!!f,f&&"string"==typeof f){var h=this.options.uniqueId;if(h&&u.hasOwnProperty(h)){var d=u[h],p=this.$body.find(gm.sprintf('> tr[data-uniqueid="%s"][data-has-detail-view]',d)).next();p.is("tr.detail-view")&&(c.push(l),r&&d===r||(f+=p[0].outerHTML))}this.options.virtualScroll?i.push(f):a.append(f)}}s?this.options.virtualScroll?(this.virtualScroll&&this.virtualScroll.destroy(),this.virtualScroll=new xm({rows:i,fixedScroll:t,scrollEl:this.$tableBody[0],contentEl:this.$body[0],itemHeight:this.options.virtualScrollItemHeight,callback:function(e,t){n.fitHeader(),n.initBodyEvent(),n.trigger("virtual-scroll",e,t)}})):this.$body.html(a):this.$body.html('<tr class="no-records-found">'.concat(gm.sprintf('<td colspan="%s">%s</td>',this.getVisibleFields().length+gm.getDetailViewIndexOffset(this.options),this.options.formatNoMatches()),"</tr>")),c.forEach((function(e){n.expandRow(e)})),t||this.scrollTo(0),this.initBodyEvent(),this.initFooter(),this.resetView(),this.updateSelected(),"server"!==this.options.sidePagination&&(this.options.totalRows=o.length),this.trigger("post-body",o)}},{key:"initBodyEvent",value:function(){var t=this;this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",(function(r){var n=e(r.currentTarget);if(!(n.find(".detail-icon").length||n.index()-gm.getDetailViewIndexOffset(t.options)<0)){var o=n.parent(),i=e(r.target).parents(".card-views").children(),a=e(r.target).parents(".card-view"),s=o.data("index"),c=t.data[s],l=t.options.cardView?i.index(a):n[0].cellIndex,u=t.getVisibleFields()[l-gm.getDetailViewIndexOffset(t.options)],f=t.columns[t.fieldsColumnsIndex[u]],h=gm.getItemField(c,u,t.options.escape,f.escape);if(t.trigger("click"===r.type?"click-cell":"dbl-click-cell",u,h,c,n),t.trigger("click"===r.type?"click-row":"dbl-click-row",c,o,u),"click"===r.type&&t.options.clickToSelect&&f.clickToSelect&&!gm.calculateObjectValue(t.options,t.options.ignoreClickToSelectOn,[r.target])){var d=o.find(gm.sprintf('[name="%s"]',t.options.selectItemName));d.length&&d[0].click()}"click"===r.type&&t.options.detailViewByClick&&t.toggleDetailView(s,t.header.detailFormatters[t.fieldsColumnsIndex[u]])}})).off("mousedown").on("mousedown",(function(e){t.multipleSelectRowCtrlKey=e.ctrlKey||e.metaKey,t.multipleSelectRowShiftKey=e.shiftKey})),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",(function(r){return r.preventDefault(),t.toggleDetailView(e(r.currentTarget).parent().parent().data("index")),!1})),this.$selectItem=this.$body.find(gm.sprintf('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",(function(r){r.stopImmediatePropagation();var n=e(r.currentTarget);t._toggleCheck(n.prop("checked"),n.data("index"))})),this.header.events.forEach((function(r,n){var o=r;if(o){if("string"==typeof o&&(o=gm.calculateObjectValue(null,o)),!o)throw new Error("Unknown event in the scope: ".concat(r));var i=t.header.fields[n],a=t.getVisibleFields().indexOf(i);if(-1!==a){a+=gm.getDetailViewIndexOffset(t.options);var s=function(r){if(!o.hasOwnProperty(r))return"continue";var n=o[r];t.$body.find(">tr:not(.no-records-found)").each((function(o,s){var c=e(s),l=c.find(t.options.cardView?".card-views>.card-view":">td").eq(a),u=r.indexOf(" "),f=r.substring(0,u),h=r.substring(u+1);l.find(h).off(f).on(f,(function(e){var r=c.data("index"),o=t.data[r],a=o[i];n.apply(t,[e,a,o,r])}))}))};for(var c in o)s(c)}}}))}},{key:"initServer",value:function(t,r,n){var o=this,i={},a=this.header.fields.indexOf(this.options.sortName),s={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if(this.header.sortNames[a]&&(s.sortName=this.header.sortNames[a]),this.options.pagination&&"server"===this.options.sidePagination&&(s.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,s.pageNumber=this.options.pageNumber),n||this.options.url||this.options.ajax){if("limit"===this.options.queryParamsType&&(s={search:s.searchText,sort:s.sortName,order:s.sortOrder},this.options.pagination&&"server"===this.options.sidePagination&&(s.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),s.limit=this.options.pageSize,0!==s.limit&&this.options.pageSize!==this.options.formatAllRows()||delete s.limit)),this.options.search&&"server"===this.options.sidePagination&&this.options.searchable&&this.columns.filter((function(e){return e.searchable})).length){s.searchable=[];var c,u=l(this.columns);try{for(u.s();!(c=u.n()).done;){var f=c.value;!f.checkbox&&f.searchable&&(this.options.visibleSearch&&f.visible||!this.options.visibleSearch)&&s.searchable.push(f.field)}}catch(e){u.e(e)}finally{u.f()}}if(gm.isEmptyObject(this.filterColumnsPartial)||(s.filter=JSON.stringify(this.filterColumnsPartial,null)),gm.extend(s,r||{}),!1!==(i=gm.calculateObjectValue(this.options,this.options.queryParams,[s],i))){t||this.showLoading();var h=gm.extend({},gm.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:n||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(i):i,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(e,r,n){var i=gm.calculateObjectValue(o.options,o.options.responseHandler,[e,n],e);o.load(i),o.trigger("load-success",i,n&&n.status,n),t||o.hideLoading(),"server"===o.options.sidePagination&&o.options.pageNumber>1&&i[o.options.totalField]>0&&!i[o.options.dataField].length&&o.updatePagination()},error:function(e){if(e&&0===e.status&&o._xhrAbort)o._xhrAbort=!1;else{var r=[];"server"===o.options.sidePagination&&((r={})[o.options.totalField]=0,r[o.options.dataField]=[]),o.load(r),o.trigger("load-error",e&&e.status,e),t||o.hideLoading()}}});return this.options.ajax?gm.calculateObjectValue(this,this.options.ajax,[h],null):(this._xhr&&4!==this._xhr.readyState&&(this._xhrAbort=!0,this._xhr.abort()),this._xhr=e.ajax(h)),i}}}},{key:"initSearchText",value:function(){if(this.options.search&&(this.searchText="",""!==this.options.searchText)){var e=gm.getSearchInput(this);e.val(this.options.searchText),this.onSearch({currentTarget:e,firedByInitSearchText:!0})}}},{key:"getCaret",value:function(){var t=this;this.$header.find("th").each((function(r,n){e(n).find(".sortable").removeClass("desc asc").addClass(e(n).data("field")===t.options.sortName?t.options.sortOrder:"both")}))}},{key:"updateSelected",value:function(){var t=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",t),this.$selectItem.each((function(t,r){e(r).closest("tr")[e(r).prop("checked")?"addClass":"removeClass"]("selected")}))}},{key:"updateRows",value:function(){var t=this;this.$selectItem.each((function(r,n){t.data[e(n).data("index")][t.header.stateField]=e(n).prop("checked")}))}},{key:"resetRows",value:function(){var e,t=l(this.data);try{for(t.s();!(e=t.n()).done;){var r=e.value;this.$selectAll.prop("checked",!1),this.$selectItem.prop("checked",!1),this.header.stateField&&(r[this.header.stateField]=!1)}}catch(e){t.e(e)}finally{t.f()}this.initHiddenRows()}},{key:"trigger",value:function(t){for(var r,o,i="".concat(t,".bs.table"),a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];(r=this.options)[n.EVENTS[i]].apply(r,[].concat(s,[this])),this.$el.trigger(e.Event(i,{sender:this}),s),(o=this.options).onAll.apply(o,[i].concat([].concat(s,[this]))),this.$el.trigger(e.Event("all.bs.table",{sender:this}),[i,s])}},{key:"resetHeader",value:function(){var e=this;clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout((function(){return e.fitHeader()}),this.$el.is(":hidden")?100:0)}},{key:"fitHeader",value:function(){var t=this;if(this.$el.is(":hidden"))this.timeoutId_=setTimeout((function(){return t.fitHeader()}),100);else{var r=this.$tableBody.get(0),n=this.hasScrollBar&&r.scrollHeight>r.clientHeight+this.$header.outerHeight()?gm.getScrollBarWidth():0;this.$el.css("margin-top",-this.$header.outerHeight());var o=this.$tableHeader.find(":focus");if(o.length>0){var i=o.parents("th");if(i.length>0){var a=i.attr("data-field");if(void 0!==a){var s=this.$header.find("[data-field='".concat(a,"']"));s.length>0&&s.find(":input").addClass("focus-temp")}}}this.$header_=this.$header.clone(!0,!0),this.$selectAll_=this.$header_.find('[name="btSelectAll"]'),this.$tableHeader.css("margin-right",n).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_),this.$tableLoading.css("width",this.$el.outerWidth());var c=e(".focus-temp:visible:eq(0)");c.length>0&&(c.focus(),this.$header.find(".focus-temp").removeClass("focus-temp")),this.$header.find("th[data-field]").each((function(r,n){t.$header_.find(gm.sprintf('th[data-field="%s"]',e(n).data("field"))).data(e(n).data())}));for(var l=this.getVisibleFields(),u=this.$header_.find("th"),f=this.$body.find(">tr:not(.no-records-found,.virtual-scroll-top)").eq(0);f.length&&f.find('>td[colspan]:not([colspan="1"])').length;)f=f.next();var h=f.find("> *").length;f.find("> *").each((function(r,n){var o=e(n);if(gm.hasDetailViewIcon(t.options)&&(0===r&&"right"!==t.options.detailViewAlign||r===h-1&&"right"===t.options.detailViewAlign)){var i=u.filter(".detail"),a=i.innerWidth()-i.find(".fht-cell").width();i.find(".fht-cell").width(o.innerWidth()-a)}else{var s=r-gm.getDetailViewIndexOffset(t.options),c=t.$header_.find(gm.sprintf('th[data-field="%s"]',l[s]));c.length>1&&(c=e(u[o[0].cellIndex]));var f=c.innerWidth()-c.find(".fht-cell").width();c.find(".fht-cell").width(o.innerWidth()-f)}})),this.horizontalScroll(),this.trigger("post-header")}}},{key:"initFooter",value:function(){if(this.options.showFooter&&!this.options.cardView){var e=this.getData(),t=[],r="";gm.hasDetailViewIcon(this.options)&&(r='<th class="detail"><div class="th-inner"></div><div class="fht-cell"></div></th>'),r&&"right"!==this.options.detailViewAlign&&t.push(r);var n,o=l(this.columns);try{for(o.s();!(n=o.n()).done;){var a,s,c=n.value,u=[],f={},h=gm.sprintf(' class="%s"',c.class);if(!(!c.visible||this.footerData&&this.footerData.length>0&&!(c.field in this.footerData[0]))){if(this.options.cardView&&!c.cardVisible)return;if(a=gm.sprintf("text-align: %s; ",c.falign?c.falign:c.align),s=gm.sprintf("vertical-align: %s; ",c.valign),(f=gm.calculateObjectValue(null,this.options.footerStyle,[c]))&&f.css)for(var d=0,p=Object.entries(f.css);d<p.length;d++){var g=i(p[d],2),m=g[0],v=g[1];u.push("".concat(m,": ").concat(v))}f&&f.classes&&(h=gm.sprintf(' class="%s"',c.class?[c.class,f.classes].join(" "):f.classes)),t.push("<th",h,gm.sprintf(' style="%s"',a+s+u.concat().join("; ")));var b=0;this.footerData&&this.footerData.length>0&&(b=this.footerData[0]["_".concat(c.field,"_colspan")]||0),b&&t.push(' colspan="'.concat(b,'" ')),t.push(">"),t.push('<div class="th-inner">');var y="";this.footerData&&this.footerData.length>0&&(y=this.footerData[0][c.field]||""),t.push(gm.calculateObjectValue(c,c.footerFormatter,[e,y],y)),t.push("</div>"),t.push('<div class="fht-cell"></div>'),t.push("</div>"),t.push("</th>")}}}catch(e){o.e(e)}finally{o.f()}r&&"right"===this.options.detailViewAlign&&t.push(r),this.options.height||this.$tableFooter.length||(this.$el.append("<tfoot><tr></tr></tfoot>"),this.$tableFooter=this.$el.find("tfoot")),this.$tableFooter.find("tr").length||this.$tableFooter.html("<table><thead><tr></tr></thead></table>"),this.$tableFooter.find("tr").html(t.join("")),this.trigger("post-footer",this.$tableFooter)}}},{key:"fitFooter",value:function(){var t=this;if(this.$el.is(":hidden"))setTimeout((function(){return t.fitFooter()}),100);else{var r=this.$tableBody.get(0),n=this.hasScrollBar&&r.scrollHeight>r.clientHeight+this.$header.outerHeight()?gm.getScrollBarWidth():0;this.$tableFooter.css("margin-right",n).find("table").css("width",this.$el.outerWidth()).attr("class",this.$el.attr("class"));var o=this.$tableFooter.find("th"),i=this.$body.find(">tr:first-child:not(.no-records-found)");for(o.find(".fht-cell").width("auto");i.length&&i.find('>td[colspan]:not([colspan="1"])').length;)i=i.next();var a=i.find("> *").length;i.find("> *").each((function(r,n){var i=e(n);if(gm.hasDetailViewIcon(t.options)&&(0===r&&"left"===t.options.detailViewAlign||r===a-1&&"right"===t.options.detailViewAlign)){var s=o.filter(".detail"),c=s.innerWidth()-s.find(".fht-cell").width();s.find(".fht-cell").width(i.innerWidth()-c)}else{var l=o.eq(r),u=l.innerWidth()-l.find(".fht-cell").width();l.find(".fht-cell").width(i.innerWidth()-u)}})),this.horizontalScroll()}}},{key:"horizontalScroll",value:function(){var e=this;this.$tableBody.off("scroll").on("scroll",(function(){var t=e.$tableBody.scrollLeft();e.options.showHeader&&e.options.height&&e.$tableHeader.scrollLeft(t),e.options.showFooter&&!e.options.cardView&&e.$tableFooter.scrollLeft(t),e.trigger("scroll-body",e.$tableBody)}))}},{key:"getVisibleFields",value:function(){var e,t=[],r=l(this.header.fields);try{for(r.s();!(e=r.n()).done;){var n=e.value,o=this.columns[this.fieldsColumnsIndex[n]];o&&o.visible&&(!this.options.cardView||o.cardVisible)&&t.push(n)}}catch(e){r.e(e)}finally{r.f()}return t}},{key:"initHiddenRows",value:function(){this.hiddenRows=[]}},{key:"getOptions",value:function(){var e=gm.extend({},this.options);return delete e.data,gm.extend(!0,{},e)}},{key:"refreshOptions",value:function(e){gm.compareObjects(this.options,e,!0)||(this.options=gm.extend(this.options,e),this.trigger("refresh-options",this.options),this.destroy(),this.init())}},{key:"getData",value:function(e){var t=this,r=this.options.data;if(!(this.searchText||this.options.customSearch||void 0!==this.options.sortName||this.enableCustomSort)&&gm.isEmptyObject(this.filterColumns)&&"function"!=typeof this.options.filterOptions.filterAlgorithm&&gm.isEmptyObject(this.filterColumnsPartial)||e&&e.unfiltered||(r=this.data),e&&!e.includeHiddenRows){var n=this.getHiddenRows();r=r.filter((function(e){return-1===gm.findIndex(n,e)}))}return e&&e.useCurrentPage&&(r=r.slice(this.pageFrom-1,this.pageTo)),e&&e.formatted&&r.forEach((function(e){for(var r=0,n=Object.entries(e);r<n.length;r++){var o=i(n[r],2),a=o[0],s=o[1],c=t.columns[t.fieldsColumnsIndex[a]];if(!c)return;e[a]=gm.calculateObjectValue(c,t.header.formatters[c.fieldIndex],[s,e,e.index,c.field],s)}})),r}},{key:"getSelections",value:function(){var e=this;return(this.options.maintainMetaData?this.options.data:this.data).filter((function(t){return!0===t[e.header.stateField]}))}},{key:"load",value:function(e){var t,r=e;this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalRows=r[this.options.totalField],this.options.totalNotFiltered=r[this.options.totalNotFilteredField],this.footerData=r[this.options.footerField]?[r[this.options.footerField]]:void 0),t=r.fixedScroll,r=Array.isArray(r)?r:r[this.options.dataField],this.initData(r),this.initSearch(),this.initPagination(),this.initBody(t)}},{key:"append",value:function(e){this.initData(e,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"prepend",value:function(e){this.initData(e,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"remove",value:function(e){for(var t=0,r=this.options.data.length-1;r>=0;r--){var n=this.options.data[r],o=gm.getItemField(n,e.field,this.options.escape,n.escape);void 0===o&&"$index"!==e.field||(!n.hasOwnProperty(e.field)&&"$index"===e.field&&e.values.includes(r)||e.values.includes(o))&&(t++,this.options.data.splice(r,1))}t&&("server"===this.options.sidePagination&&(this.options.totalRows-=t,this.data=a(this.options.data)),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(e){e.hasOwnProperty("index")&&e.hasOwnProperty("row")&&(this.options.data.splice(e.index,0,e.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},{key:"updateRow",value:function(e){var t,r=l(Array.isArray(e)?e:[e]);try{for(r.s();!(t=r.n()).done;){var n=t.value;n.hasOwnProperty("index")&&n.hasOwnProperty("row")&&(n.hasOwnProperty("replace")&&n.replace?this.options.data[n.index]=n.row:gm.extend(this.options.data[n.index],n.row))}}catch(e){r.e(e)}finally{r.f()}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"getRowByUniqueId",value:function(e){var t,r,n=this.options.uniqueId,o=e,i=null;for(t=this.options.data.length-1;t>=0;t--){r=this.options.data[t];var a=gm.getItemField(r,n,this.options.escape,r.escape);if(void 0!==a&&("string"==typeof a?o=o.toString():"number"==typeof a&&(Number(a)===a&&a%1==0?o=parseInt(o,10):a===Number(a)&&0!==a&&(o=parseFloat(o))),a===o)){i=r;break}}return i}},{key:"updateByUniqueId",value:function(e){var t,r=null,n=l(Array.isArray(e)?e:[e]);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(o.hasOwnProperty("id")&&o.hasOwnProperty("row")){var i=this.options.data.indexOf(this.getRowByUniqueId(o.id));-1!==i&&(o.hasOwnProperty("replace")&&o.replace?this.options.data[i]=o.row:gm.extend(this.options.data[i],o.row),r=o.id)}}}catch(e){n.e(e)}finally{n.f()}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0,r)}},{key:"removeByUniqueId",value:function(e){var t=this.options.data.length,r=this.getRowByUniqueId(e);r&&this.options.data.splice(this.options.data.indexOf(r),1),t!==this.options.data.length&&("server"===this.options.sidePagination&&(this.options.totalRows-=1,this.data=a(this.options.data)),this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"_updateCellOnly",value:function(t,r){var n=this.initRow(this.options.data[r],r),o=this.getVisibleFields().indexOf(t);-1!==o&&(o+=gm.getDetailViewIndexOffset(this.options),this.$body.find(">tr[data-index=".concat(r,"]")).find(">td:eq(".concat(o,")")).replaceWith(e(n).find(">td:eq(".concat(o,")"))),this.initBodyEvent(),this.initFooter(),this.resetView(),this.updateSelected())}},{key:"updateCell",value:function(e){e.hasOwnProperty("index")&&e.hasOwnProperty("field")&&e.hasOwnProperty("value")&&(this.options.data[e.index][e.field]=e.value,!1!==e.reinit?(this.initSort(),this.initBody(!0)):this._updateCellOnly(e.field,e.index))}},{key:"updateCellByUniqueId",value:function(e){var t=this;(Array.isArray(e)?e:[e]).forEach((function(e){var r=e.id,n=e.field,o=e.value,i=t.options.data.indexOf(t.getRowByUniqueId(r));-1!==i&&(t.options.data[i][n]=o)})),!1!==e.reinit?(this.initSort(),this.initBody(!0)):this._updateCellOnly(e.field,this.options.data.indexOf(this.getRowByUniqueId(e.id)))}},{key:"showRow",value:function(e){this._toggleRow(e,!0)}},{key:"hideRow",value:function(e){this._toggleRow(e,!1)}},{key:"_toggleRow",value:function(e,t){var r;if(e.hasOwnProperty("index")?r=this.getData()[e.index]:e.hasOwnProperty("uniqueId")&&(r=this.getRowByUniqueId(e.uniqueId)),r){var n=gm.findIndex(this.hiddenRows,r);t||-1!==n?t&&n>-1&&this.hiddenRows.splice(n,1):this.hiddenRows.push(r),this.initBody(!0),this.initPagination()}}},{key:"getHiddenRows",value:function(e){if(e)return this.initHiddenRows(),this.initBody(!0),void this.initPagination();var t,r=[],n=l(this.getData());try{for(n.s();!(t=n.n()).done;){var o=t.value;this.hiddenRows.includes(o)&&r.push(o)}}catch(e){n.e(e)}finally{n.f()}return this.hiddenRows=r,r}},{key:"showColumn",value:function(e){var t=this;(Array.isArray(e)?e:[e]).forEach((function(e){t._toggleColumn(t.fieldsColumnsIndex[e],!0,!0)}))}},{key:"hideColumn",value:function(e){var t=this;(Array.isArray(e)?e:[e]).forEach((function(e){t._toggleColumn(t.fieldsColumnsIndex[e],!1,!0)}))}},{key:"_toggleColumn",value:function(e,t,r){if(-1!==e&&this.columns[e].visible!==t&&(this.columns[e].visible=t,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var n=this.$toolbar.find('.keep-open input:not(".toggle-all")').prop("disabled",!1);r&&n.filter(gm.sprintf('[value="%s"]',e)).prop("checked",t),n.filter(":checked").length<=this.options.minimumCountColumns&&n.filter(":checked").prop("disabled",!0)}}},{key:"getVisibleColumns",value:function(){var e=this;return this.columns.filter((function(t){return t.visible&&!e.isSelectionColumn(t)}))}},{key:"getHiddenColumns",value:function(){return this.columns.filter((function(e){return!e.visible}))}},{key:"isSelectionColumn",value:function(e){return e.radio||e.checkbox}},{key:"showAllColumns",value:function(){this._toggleAllColumns(!0)}},{key:"hideAllColumns",value:function(){this._toggleAllColumns(!1)}},{key:"_toggleAllColumns",value:function(t){var r,n=this,o=l(this.columns.slice().reverse());try{for(o.s();!(r=o.n()).done;){var i=r.value;if(i.switchable){if(!t&&this.options.showColumns&&this.getVisibleColumns().filter((function(e){return e.switchable})).length===this.options.minimumCountColumns)continue;i.visible=t}}}catch(e){o.e(e)}finally{o.f()}if(this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns){var a=this.$toolbar.find('.keep-open input[type="checkbox"]:not(".toggle-all")').prop("disabled",!1);t?a.prop("checked",t):a.get().reverse().forEach((function(r){a.filter(":checked").length>n.options.minimumCountColumns&&e(r).prop("checked",t)})),a.filter(":checked").length<=this.options.minimumCountColumns&&a.filter(":checked").prop("disabled",!0)}}},{key:"mergeCells",value:function(e){var t,r,n=e.index,o=this.getVisibleFields().indexOf(e.field),i=e.rowspan||1,a=e.colspan||1,s=this.$body.find(">tr[data-index]");o+=gm.getDetailViewIndexOffset(this.options);var c=s.eq(n).find(">td").eq(o);if(!(n<0||o<0||n>=this.data.length)){for(t=n;t<n+i;t++)for(r=o;r<o+a;r++)s.eq(t).find(">td").eq(r).hide();c.attr("rowspan",i).attr("colspan",a).show()}}},{key:"checkAll",value:function(){this._toggleCheckAll(!0)}},{key:"uncheckAll",value:function(){this._toggleCheckAll(!1)}},{key:"_toggleCheckAll",value:function(e){var t=this.getSelections();this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.filter(":enabled").prop("checked",e),this.updateRows(),this.updateSelected();var r=this.getSelections();e?this.trigger("check-all",r,t):this.trigger("uncheck-all",r,t)}},{key:"checkInvert",value:function(){var t=this.$selectItem.filter(":enabled"),r=t.filter(":checked");t.each((function(t,r){e(r).prop("checked",!e(r).prop("checked"))})),this.updateRows(),this.updateSelected(),this.trigger("uncheck-some",r),r=this.getSelections(),this.trigger("check-some",r)}},{key:"check",value:function(e){this._toggleCheck(!0,e)}},{key:"uncheck",value:function(e){this._toggleCheck(!1,e)}},{key:"_toggleCheck",value:function(e,t){var r=this.$selectItem.filter('[data-index="'.concat(t,'"]')),n=this.data[t];if(r.is(":radio")||this.options.singleSelect||this.options.multipleSelectRow&&!this.multipleSelectRowCtrlKey&&!this.multipleSelectRowShiftKey){var o,a=l(this.options.data);try{for(a.s();!(o=a.n()).done;){o.value[this.header.stateField]=!1}}catch(e){a.e(e)}finally{a.f()}this.$selectItem.filter(":checked").not(r).prop("checked",!1)}if(n[this.header.stateField]=e,this.options.multipleSelectRow){if(this.multipleSelectRowShiftKey&&this.multipleSelectRowLastSelectedIndex>=0)for(var s=i(this.multipleSelectRowLastSelectedIndex<t?[this.multipleSelectRowLastSelectedIndex,t]:[t,this.multipleSelectRowLastSelectedIndex],2),c=s[0],u=s[1],f=c+1;f<u;f++)this.data[f][this.header.stateField]=!0,this.$selectItem.filter('[data-index="'.concat(f,'"]')).prop("checked",!0);this.multipleSelectRowCtrlKey=!1,this.multipleSelectRowShiftKey=!1,this.multipleSelectRowLastSelectedIndex=e?t:-1}r.prop("checked",e),this.updateSelected(),this.trigger(e?"check":"uncheck",this.data[t],r)}},{key:"checkBy",value:function(e){this._toggleCheckBy(!0,e)}},{key:"uncheckBy",value:function(e){this._toggleCheckBy(!1,e)}},{key:"_toggleCheckBy",value:function(e,t){var r=this;if(t.hasOwnProperty("field")&&t.hasOwnProperty("values")){var n=[];this.data.forEach((function(o,i){if(!o.hasOwnProperty(t.field))return!1;if(t.values.includes(o[t.field])){var a=r.$selectItem.filter(":enabled").filter(gm.sprintf('[data-index="%s"]',i)),s=!!t.hasOwnProperty("onlyCurrentPage")&&t.onlyCurrentPage;if(!(a=e?a.not(":checked"):a.filter(":checked")).length&&s)return;a.prop("checked",e),o[r.header.stateField]=e,n.push(o),r.trigger(e?"check":"uncheck",o,a)}})),this.updateSelected(),this.trigger(e?"check-some":"uncheck-some",n)}}},{key:"refresh",value:function(e){e&&e.url&&(this.options.url=e.url),e&&e.pageNumber&&(this.options.pageNumber=e.pageNumber),e&&e.pageSize&&(this.options.pageSize=e.pageSize),this.trigger("refresh",this.initServer(e&&e.silent,e&&e.query,e&&e.url))}},{key:"destroy",value:function(){this.$el.insertBefore(this.$container),e(this.options.toolbar).insertBefore(this.$el),this.$container.next().remove(),this.$container.remove(),this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"");var t=gm.getEventName("resize.bootstrap-table",this.$el.attr("id"));e(window).off(t)}},{key:"resetView",value:function(e){var t=0;if(e&&e.height&&(this.options.height=e.height),this.$tableContainer.toggleClass("has-card-view",this.options.cardView),this.options.height){var r=this.$tableBody.get(0);this.hasScrollBar=r.scrollWidth>r.clientWidth}if(!this.options.cardView&&this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),t+=this.$header.outerHeight(!0)+1):(this.$tableHeader.hide(),this.trigger("post-header")),!this.options.cardView&&this.options.showFooter&&(this.$tableFooter.show(),this.fitFooter(),this.options.height&&(t+=this.$tableFooter.outerHeight(!0))),this.$container.hasClass("fullscreen"))this.$tableContainer.css("height",""),this.$tableContainer.css("width","");else if(this.options.height){this.$tableBorder&&(this.$tableBorder.css("width",""),this.$tableBorder.css("height",""));var n=this.$toolbar.outerHeight(!0),o=this.$pagination.outerHeight(!0),i=this.options.height-n-o,a=this.$tableBody.find(">table"),s=a.outerHeight();if(this.$tableContainer.css("height","".concat(i,"px")),this.$tableBorder&&a.is(":visible")){var c=i-s-2;this.hasScrollBar&&(c-=gm.getScrollBarWidth()),this.$tableBorder.css("width","".concat(a.outerWidth(),"px")),this.$tableBorder.css("height","".concat(c,"px"))}}this.options.cardView?(this.$el.css("margin-top","0"),this.$tableContainer.css("padding-bottom","0"),this.$tableFooter.hide()):(this.getCaret(),this.$tableContainer.css("padding-bottom","".concat(t,"px"))),this.trigger("reset-view")}},{key:"showLoading",value:function(){this.$tableLoading.toggleClass("open",!0);var e=this.options.loadingFontSize;"auto"===this.options.loadingFontSize&&(e=.04*this.$tableLoading.width(),e=Math.max(12,e),e=Math.min(32,e),e="".concat(e,"px")),this.$tableLoading.find(".loading-text").css("font-size",e)}},{key:"hideLoading",value:function(){this.$tableLoading.toggleClass("open",!1)}},{key:"togglePagination",value:function(){this.options.pagination=!this.options.pagination;var e=this.options.showButtonIcons?this.options.pagination?this.options.icons.paginationSwitchDown:this.options.icons.paginationSwitchUp:"",t=this.options.showButtonText?this.options.pagination?this.options.formatPaginationSwitchUp():this.options.formatPaginationSwitchDown():"";this.$toolbar.find('button[name="paginationSwitch"]').html("".concat(gm.sprintf(this.constants.html.icon,this.options.iconsPrefix,e)," ").concat(t)),this.updatePagination(),this.trigger("toggle-pagination",this.options.pagination)}},{key:"toggleFullscreen",value:function(){this.$el.closest(".bootstrap-table").toggleClass("fullscreen"),this.resetView()}},{key:"toggleView",value:function(){this.options.cardView=!this.options.cardView,this.initHeader();var e=this.options.showButtonIcons?this.options.cardView?this.options.icons.toggleOn:this.options.icons.toggleOff:"",t=this.options.showButtonText?this.options.cardView?this.options.formatToggleOff():this.options.formatToggleOn():"";this.$toolbar.find('button[name="toggle"]').html("".concat(gm.sprintf(this.constants.html.icon,this.options.iconsPrefix,e)," ").concat(t)).attr("aria-label",t).attr("title",t),this.initBody(),this.trigger("toggle",this.options.cardView)}},{key:"resetSearch",value:function(e){var t=gm.getSearchInput(this),r=e||"";t.val(r),this.searchText=r,this.onSearch({currentTarget:t},!1)}},{key:"filterBy",value:function(e,t){this.filterOptions=gm.isEmptyObject(t)?this.options.filterOptions:gm.extend(this.options.filterOptions,t),this.filterColumns=gm.isEmptyObject(e)?{}:e,this.options.pageNumber=1,this.initSearch(),this.updatePagination()}},{key:"scrollTo",value:function(r){var n={unit:"px",value:0};"object"===t(r)?n=Object.assign(n,r):"string"==typeof r&&"bottom"===r?n.value=this.$tableBody[0].scrollHeight:"string"!=typeof r&&"number"!=typeof r||(n.value=r);var o=n.value;"rows"===n.unit&&(o=0,this.$body.find("> tr:lt(".concat(n.value,")")).each((function(t,r){o+=e(r).outerHeight(!0)}))),this.$tableBody.scrollTop(o)}},{key:"getScrollPosition",value:function(){return this.$tableBody.scrollTop()}},{key:"selectPage",value:function(e){e>0&&e<=this.options.totalPages&&(this.options.pageNumber=e,this.updatePagination())}},{key:"prevPage",value:function(){this.options.pageNumber>1&&(this.options.pageNumber--,this.updatePagination())}},{key:"nextPage",value:function(){this.options.pageNumber<this.options.totalPages&&(this.options.pageNumber++,this.updatePagination())}},{key:"toggleDetailView",value:function(e,t){this.$body.find(gm.sprintf('> tr[data-index="%s"]',e)).next().is("tr.detail-view")?this.collapseRow(e):this.expandRow(e,t),this.resetView()}},{key:"expandRow",value:function(e,t){var r=this.data[e],n=this.$body.find(gm.sprintf('> tr[data-index="%s"][data-has-detail-view]',e));if(this.options.detailViewIcon&&n.find("a.detail-icon").html(gm.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailClose)),!n.next().is("tr.detail-view")){n.after(gm.sprintf('<tr class="detail-view"><td colspan="%s"></td></tr>',n.children("td").length));var o=n.next().find("td"),i=t||this.options.detailFormatter,a=gm.calculateObjectValue(this.options,i,[e,r,o],"");1===o.length&&o.append(a),this.trigger("expand-row",e,r,o)}}},{key:"expandRowByUniqueId",value:function(e){var t=this.getRowByUniqueId(e);t&&this.expandRow(this.data.indexOf(t))}},{key:"collapseRow",value:function(e){var t=this.data[e],r=this.$body.find(gm.sprintf('> tr[data-index="%s"][data-has-detail-view]',e));r.next().is("tr.detail-view")&&(this.options.detailViewIcon&&r.find("a.detail-icon").html(gm.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen)),this.trigger("collapse-row",e,t,r.next()),r.next().remove())}},{key:"collapseRowByUniqueId",value:function(e){var t=this.getRowByUniqueId(e);t&&this.collapseRow(this.data.indexOf(t))}},{key:"expandAllRows",value:function(){for(var t=this.$body.find("> tr[data-index][data-has-detail-view]"),r=0;r<t.length;r++)this.expandRow(e(t[r]).data("index"))}},{key:"collapseAllRows",value:function(){for(var t=this.$body.find("> tr[data-index][data-has-detail-view]"),r=0;r<t.length;r++)this.collapseRow(e(t[r]).data("index"))}},{key:"updateColumnTitle",value:function(t){t.hasOwnProperty("field")&&t.hasOwnProperty("title")&&(this.columns[this.fieldsColumnsIndex[t.field]].title=this.options.escape&&this.options.escapeTitle?gm.escapeHTML(t.title):t.title,this.columns[this.fieldsColumnsIndex[t.field]].visible&&(this.$header.find("th[data-field]").each((function(r,n){if(e(n).data("field")===t.field)return e(e(n).find(".th-inner")[0]).text(t.title),!1})),this.resetView()))}},{key:"updateFormatText",value:function(e,t){/^format/.test(e)&&this.options[e]&&("string"==typeof t?this.options[e]=function(){return t}:"function"==typeof t&&(this.options[e]=t),this.initToolbar(),this.initPagination(),this.initBody())}}]),n}();return Am.VERSION=Sm.VERSION,Am.DEFAULTS=Sm.DEFAULTS,Am.LOCALES=Sm.LOCALES,Am.COLUMN_DEFAULTS=Sm.COLUMN_DEFAULTS,Am.METHODS=Sm.METHODS,Am.EVENTS=Sm.EVENTS,e.BootstrapTable=Am,e.fn.bootstrapTable=function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];var a;return this.each((function(n,i){var s=e(i).data("bootstrap.table");if("string"==typeof r){var c;if(!Sm.METHODS.includes(r))throw new Error("Unknown method: ".concat(r));if(!s)return;return a=(c=s)[r].apply(c,o),void("destroy"===r&&e(i).removeData("bootstrap.table"))}if(s)console.warn("You cannot initialize the table more than once!");else{var l=gm.extend(!0,{},Am.DEFAULTS,e(i).data(),"object"===t(r)&&r);s=new e.BootstrapTable(i,l),e(i).data("bootstrap.table",s),s.init()}})),void 0===a?this:a},e.fn.bootstrapTable.Constructor=Am,e.fn.bootstrapTable.theme=Sm.THEME,e.fn.bootstrapTable.VERSION=Sm.VERSION,e.fn.bootstrapTable.defaults=Am.DEFAULTS,e.fn.bootstrapTable.columnDefaults=Am.COLUMN_DEFAULTS,e.fn.bootstrapTable.events=Am.EVENTS,e.fn.bootstrapTable.locales=Am.LOCALES,e.fn.bootstrapTable.methods=Am.METHODS,e.fn.bootstrapTable.utils=gm,e((function(){e('[data-toggle="table"]').bootstrapTable()})),Am})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jQuery)}(this,(function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),n)}var o,i}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=n(e);if(t){var a=n(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return i(this,r)}}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=s(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(this,arguments)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e,t)||function(){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(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h=function(e){return e&&e.Math==Math&&e},d=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof f&&f)||function(){return this}()||Function("return this")(),p={},g=function(e){try{return!!e()}catch(e){return!0}},m=!g((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=!g((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),b=v,y=Function.prototype.call,w=b?y.bind(y):function(){return y.apply(y,arguments)},S={},x={}.propertyIsEnumerable,A=Object.getOwnPropertyDescriptor,k=A&&!x.call({1:2},1);S.f=k?function(e){var t=A(this,e);return!!t&&t.enumerable}:x;var T,E,_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},O=v,N=Function.prototype,C=N.call,R=O&&N.bind.bind(C,C),P=O?R:function(e){return function(){return C.apply(e,arguments)}},L=P,I=L({}.toString),F=L("".slice),j=function(e){return F(I(e),8,-1)},D=g,M=j,B=Object,W=P("".split),U=D((function(){return!B("z").propertyIsEnumerable(0)}))?function(e){return"String"==M(e)?W(e,""):B(e)}:B,H=function(e){return null==e},z=H,V=TypeError,q=function(e){if(z(e))throw V("Can't call method on "+e);return e},$=U,G=q,X=function(e){return $(G(e))},Y="object"==typeof document&&document.all,K={all:Y,IS_HTMLDDA:void 0===Y&&void 0!==Y},J=K.all,Z=K.IS_HTMLDDA?function(e){return"function"==typeof e||e===J}:function(e){return"function"==typeof e},Q=Z,ee=K.all,te=K.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Q(e)||e===ee}:function(e){return"object"==typeof e?null!==e:Q(e)},re=d,ne=Z,oe=function(e){return ne(e)?e:void 0},ie=function(e,t){return arguments.length<2?oe(re[e]):re[e]&&re[e][t]},ae=P({}.isPrototypeOf),se=d,ce="undefined"!=typeof navigator&&String(navigator.userAgent)||"",le=se.process,ue=se.Deno,fe=le&&le.versions||ue&&ue.version,he=fe&&fe.v8;he&&(E=(T=he.split("."))[0]>0&&T[0]<4?1:+(T[0]+T[1])),!E&&ce&&(!(T=ce.match(/Edge\/(\d+)/))||T[1]>=74)&&(T=ce.match(/Chrome\/(\d+)/))&&(E=+T[1]);var de=E,pe=de,ge=g,me=!!Object.getOwnPropertySymbols&&!ge((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pe&&pe<41})),ve=me&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,be=ie,ye=Z,we=ae,Se=Object,xe=ve?function(e){return"symbol"==typeof e}:function(e){var t=be("Symbol");return ye(t)&&we(t.prototype,Se(e))},Ae=String,ke=Z,Te=function(e){try{return Ae(e)}catch(e){return"Object"}},Ee=TypeError,_e=function(e){if(ke(e))return e;throw Ee(Te(e)+" is not a function")},Oe=_e,Ne=H,Ce=w,Re=Z,Pe=te,Le=TypeError,Ie={},Fe={get exports(){return Ie},set exports(e){Ie=e}},je=d,De=Object.defineProperty,Me=function(e,t){try{De(je,e,{value:t,configurable:!0,writable:!0})}catch(r){je[e]=t}return t},Be=Me,We="__core-js_shared__",Ue=d[We]||Be(We,{}),He=Ue;(Fe.exports=function(e,t){return He[e]||(He[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var ze=q,Ve=Object,qe=function(e){return Ve(ze(e))},$e=qe,Ge=P({}.hasOwnProperty),Xe=Object.hasOwn||function(e,t){return Ge($e(e),t)},Ye=P,Ke=0,Je=Math.random(),Ze=Ye(1..toString),Qe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ze(++Ke+Je,36)},et=Ie,tt=Xe,rt=Qe,nt=me,ot=ve,it=d.Symbol,at=et("wks"),st=ot?it.for||it:it&&it.withoutSetter||rt,ct=function(e){return tt(at,e)||(at[e]=nt&&tt(it,e)?it[e]:st("Symbol."+e)),at[e]},lt=w,ut=te,ft=xe,ht=function(e,t){var r=e[t];return Ne(r)?void 0:Oe(r)},dt=function(e,t){var r,n;if("string"===t&&Re(r=e.toString)&&!Pe(n=Ce(r,e)))return n;if(Re(r=e.valueOf)&&!Pe(n=Ce(r,e)))return n;if("string"!==t&&Re(r=e.toString)&&!Pe(n=Ce(r,e)))return n;throw Le("Can't convert object to primitive value")},pt=TypeError,gt=ct("toPrimitive"),mt=function(e,t){if(!ut(e)||ft(e))return e;var r,n=ht(e,gt);if(n){if(void 0===t&&(t="default"),r=lt(n,e,t),!ut(r)||ft(r))return r;throw pt("Can't convert object to primitive value")}return void 0===t&&(t="number"),dt(e,t)},vt=xe,bt=function(e){var t=mt(e,"string");return vt(t)?t:t+""},yt=te,wt=d.document,St=yt(wt)&&yt(wt.createElement),xt=function(e){return St?wt.createElement(e):{}},At=xt,kt=!m&&!g((function(){return 7!=Object.defineProperty(At("div"),"a",{get:function(){return 7}}).a})),Tt=m,Et=w,_t=S,Ot=_,Nt=X,Ct=bt,Rt=Xe,Pt=kt,Lt=Object.getOwnPropertyDescriptor;p.f=Tt?Lt:function(e,t){if(e=Nt(e),t=Ct(t),Pt)try{return Lt(e,t)}catch(e){}if(Rt(e,t))return Ot(!Et(_t.f,e,t),e[t])};var It={},Ft=m&&g((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),jt=te,Dt=String,Mt=TypeError,Bt=function(e){if(jt(e))return e;throw Mt(Dt(e)+" is not an object")},Wt=m,Ut=kt,Ht=Ft,zt=Bt,Vt=bt,qt=TypeError,$t=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,Xt="enumerable",Yt="configurable",Kt="writable";It.f=Wt?Ht?function(e,t,r){if(zt(e),t=Vt(t),zt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Kt in r&&!r.writable){var n=Gt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:Yt in r?r.configurable:n.configurable,enumerable:Xt in r?r.enumerable:n.enumerable,writable:!1})}return $t(e,t,r)}:$t:function(e,t,r){if(zt(e),t=Vt(t),zt(r),Ut)try{return $t(e,t,r)}catch(e){}if("get"in r||"set"in r)throw qt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Jt=It,Zt=_,Qt=m?function(e,t,r){return Jt.f(e,t,Zt(1,r))}:function(e,t,r){return e[t]=r,e},er={},tr={get exports(){return er},set exports(e){er=e}},rr=m,nr=Xe,or=Function.prototype,ir=rr&&Object.getOwnPropertyDescriptor,ar=nr(or,"name"),sr={EXISTS:ar,PROPER:ar&&"something"===function(){}.name,CONFIGURABLE:ar&&(!rr||rr&&ir(or,"name").configurable)},cr=Z,lr=Ue,ur=P(Function.toString);cr(lr.inspectSource)||(lr.inspectSource=function(e){return ur(e)});var fr,hr,dr,pr=lr.inspectSource,gr=Z,mr=d.WeakMap,vr=gr(mr)&&/native code/.test(String(mr)),br=Qe,yr=Ie("keys"),wr=function(e){return yr[e]||(yr[e]=br(e))},Sr={},xr=vr,Ar=d,kr=te,Tr=Qt,Er=Xe,_r=Ue,Or=wr,Nr=Sr,Cr="Object already initialized",Rr=Ar.TypeError,Pr=Ar.WeakMap;if(xr||_r.state){var Lr=_r.state||(_r.state=new Pr);Lr.get=Lr.get,Lr.has=Lr.has,Lr.set=Lr.set,fr=function(e,t){if(Lr.has(e))throw Rr(Cr);return t.facade=e,Lr.set(e,t),t},hr=function(e){return Lr.get(e)||{}},dr=function(e){return Lr.has(e)}}else{var Ir=Or("state");Nr[Ir]=!0,fr=function(e,t){if(Er(e,Ir))throw Rr(Cr);return t.facade=e,Tr(e,Ir,t),t},hr=function(e){return Er(e,Ir)?e[Ir]:{}},dr=function(e){return Er(e,Ir)}}var Fr={set:fr,get:hr,has:dr,enforce:function(e){return dr(e)?hr(e):fr(e,{})},getterFor:function(e){return function(t){var r;if(!kr(t)||(r=hr(t)).type!==e)throw Rr("Incompatible receiver, "+e+" required");return r}}},jr=P,Dr=g,Mr=Z,Br=Xe,Wr=m,Ur=sr.CONFIGURABLE,Hr=pr,zr=Fr.enforce,Vr=Fr.get,qr=String,$r=Object.defineProperty,Gr=jr("".slice),Xr=jr("".replace),Yr=jr([].join),Kr=Wr&&!Dr((function(){return 8!==$r((function(){}),"length",{value:8}).length})),Jr=String(String).split("String"),Zr=tr.exports=function(e,t,r){"Symbol("===Gr(qr(t),0,7)&&(t="["+Xr(qr(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Br(e,"name")||Ur&&e.name!==t)&&(Wr?$r(e,"name",{value:t,configurable:!0}):e.name=t),Kr&&r&&Br(r,"arity")&&e.length!==r.arity&&$r(e,"length",{value:r.arity});try{r&&Br(r,"constructor")&&r.constructor?Wr&&$r(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=zr(e);return Br(n,"source")||(n.source=Yr(Jr,"string"==typeof t?t:"")),e};Function.prototype.toString=Zr((function(){return Mr(this)&&Vr(this).source||Hr(this)}),"toString");var Qr=Z,en=It,tn=er,rn=Me,nn=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(Qr(r)&&tn(r,i,n),n.global)o?e[t]=r:rn(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:en.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},on={},an=Math.ceil,sn=Math.floor,cn=Math.trunc||function(e){var t=+e;return(t>0?sn:an)(t)},ln=function(e){var t=+e;return t!=t||0===t?0:cn(t)},un=ln,fn=Math.max,hn=Math.min,dn=ln,pn=Math.min,gn=function(e){return e>0?pn(dn(e),9007199254740991):0},mn=function(e){return gn(e.length)},vn=X,bn=function(e,t){var r=un(e);return r<0?fn(r+t,0):hn(r,t)},yn=mn,wn=function(e){return function(t,r,n){var o,i=vn(t),a=yn(i),s=bn(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},Sn={includes:wn(!0),indexOf:wn(!1)},xn=Xe,An=X,kn=Sn.indexOf,Tn=Sr,En=P([].push),_n=function(e,t){var r,n=An(e),o=0,i=[];for(r in n)!xn(Tn,r)&&xn(n,r)&&En(i,r);for(;t.length>o;)xn(n,r=t[o++])&&(~kn(i,r)||En(i,r));return i},On=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nn=_n,Cn=On.concat("length","prototype");on.f=Object.getOwnPropertyNames||function(e){return Nn(e,Cn)};var Rn={};Rn.f=Object.getOwnPropertySymbols;var Pn=ie,Ln=on,In=Rn,Fn=Bt,jn=P([].concat),Dn=Pn("Reflect","ownKeys")||function(e){var t=Ln.f(Fn(e)),r=In.f;return r?jn(t,r(e)):t},Mn=Xe,Bn=Dn,Wn=p,Un=It,Hn=g,zn=Z,Vn=/#|\.prototype\./,qn=function(e,t){var r=Gn[$n(e)];return r==Yn||r!=Xn&&(zn(t)?Hn(t):!!t)},$n=qn.normalize=function(e){return String(e).replace(Vn,".").toLowerCase()},Gn=qn.data={},Xn=qn.NATIVE="N",Yn=qn.POLYFILL="P",Kn=qn,Jn=d,Zn=p.f,Qn=Qt,eo=nn,to=Me,ro=function(e,t,r){for(var n=Bn(t),o=Un.f,i=Wn.f,a=0;a<n.length;a++){var s=n[a];Mn(e,s)||r&&Mn(r,s)||o(e,s,i(t,s))}},no=Kn,oo=function(e,t){var r,n,o,i,a,s=e.target,c=e.global,l=e.stat;if(r=c?Jn:l?Jn[s]||to(s,{}):(Jn[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=Zn(r,n))&&a.value:r[n],!no(c?n:s+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;ro(i,o)}(e.sham||o&&o.sham)&&Qn(i,"sham",!0),eo(r,n,i,e)}},io=_n,ao=On,so=Object.keys||function(e){return io(e,ao)},co=m,lo=P,uo=so,fo=X,ho=lo(S.f),po=lo([].push),go=function(e){return function(t){for(var r,n=fo(t),o=uo(n),i=o.length,a=0,s=[];i>a;)r=o[a++],co&&!ho(n,r)||po(s,e?[r,n[r]]:n[r]);return s}},mo={entries:go(!0),values:go(!1)}.entries;oo({target:"Object",stat:!0},{entries:function(e){return mo(e)}});var vo=j,bo=P,yo=function(e){if("Function"===vo(e))return bo(e)},wo=_e,So=v,xo=yo(yo.bind),Ao=j,ko=Array.isArray||function(e){return"Array"==Ao(e)},To={};To[ct("toStringTag")]="z";var Eo="[object z]"===String(To),_o=Eo,Oo=Z,No=j,Co=ct("toStringTag"),Ro=Object,Po="Arguments"==No(function(){return arguments}()),Lo=_o?No:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Ro(e),Co))?r:Po?No(t):"Object"==(n=No(t))&&Oo(t.callee)?"Arguments":n},Io=P,Fo=g,jo=Z,Do=Lo,Mo=pr,Bo=function(){},Wo=[],Uo=ie("Reflect","construct"),Ho=/^\s*(?:class|function)\b/,zo=Io(Ho.exec),Vo=!Ho.exec(Bo),qo=function(e){if(!jo(e))return!1;try{return Uo(Bo,Wo,e),!0}catch(e){return!1}},$o=function(e){if(!jo(e))return!1;switch(Do(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Vo||!!zo(Ho,Mo(e))}catch(e){return!0}};$o.sham=!0;var Go=!Uo||Fo((function(){var e;return qo(qo.call)||!qo(Object)||!qo((function(){e=!0}))||e}))?$o:qo,Xo=ko,Yo=Go,Ko=te,Jo=ct("species"),Zo=Array,Qo=function(e){var t;return Xo(e)&&(t=e.constructor,(Yo(t)&&(t===Zo||Xo(t.prototype))||Ko(t)&&null===(t=t[Jo]))&&(t=void 0)),void 0===t?Zo:t},ei=function(e,t){return new(Qo(e))(0===t?0:t)},ti=function(e,t){return wo(e),void 0===t?e:So?xo(e,t):function(){return e.apply(t,arguments)}},ri=U,ni=qe,oi=mn,ii=ei,ai=P([].push),si=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,l,u,f){for(var h,d,p=ni(c),g=ri(p),m=ti(l,u),v=oi(g),b=0,y=f||ii,w=t?y(c,v):r||a?y(c,0):void 0;v>b;b++)if((s||b in g)&&(d=m(h=g[b],b,p),e))if(t)w[b]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:ai(w,h)}else switch(e){case 4:return!1;case 7:ai(w,h)}return i?-1:n||o?o:w}},ci={forEach:si(0),map:si(1),filter:si(2),some:si(3),every:si(4),find:si(5),findIndex:si(6),filterReject:si(7)},li={},ui=m,fi=Ft,hi=It,di=Bt,pi=X,gi=so;li.f=ui&&!fi?Object.defineProperties:function(e,t){di(e);for(var r,n=pi(t),o=gi(t),i=o.length,a=0;i>a;)hi.f(e,r=o[a++],n[r]);return e};var mi,vi=ie("document","documentElement"),bi=Bt,yi=li,wi=On,Si=Sr,xi=vi,Ai=xt,ki=wr("IE_PROTO"),Ti=function(){},Ei=function(e){return"<script>"+e+"</"+"script>"},_i=function(e){e.write(Ei("")),e.close();var t=e.parentWindow.Object;return e=null,t},Oi=function(){try{mi=new ActiveXObject("htmlfile")}catch(e){}var e,t;Oi="undefined"!=typeof document?document.domain&&mi?_i(mi):((t=Ai("iframe")).style.display="none",xi.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ei("document.F=Object")),e.close(),e.F):_i(mi);for(var r=wi.length;r--;)delete Oi.prototype[wi[r]];return Oi()};Si[ki]=!0;var Ni=ct,Ci=Object.create||function(e,t){var r;return null!==e?(Ti.prototype=bi(e),r=new Ti,Ti.prototype=null,r[ki]=e):r=Oi(),void 0===t?r:yi.f(r,t)},Ri=It.f,Pi=Ni("unscopables"),Li=Array.prototype;null==Li[Pi]&&Ri(Li,Pi,{configurable:!0,value:Ci(null)});var Ii=oo,Fi=ci.find,ji=function(e){Li[Pi][e]=!0},Di="find",Mi=!0;Di in[]&&Array(1).find((function(){Mi=!1})),Ii({target:"Array",proto:!0,forced:Mi},{find:function(e){return Fi(this,e,arguments.length>1?arguments[1]:void 0)}}),ji(Di);var Bi=Lo,Wi=Eo?{}.toString:function(){return"[object "+Bi(this)+"]"};Eo||nn(Object.prototype,"toString",Wi,{unsafe:!0});var Ui=Lo,Hi=String,zi=function(e){if("Symbol"===Ui(e))throw TypeError("Cannot convert a Symbol value to a string");return Hi(e)},Vi="\t\n\v\f\r \u2028\u2029\ufeff",qi=q,$i=zi,Gi=Vi,Xi=P("".replace),Yi=RegExp("^["+Gi+"]+"),Ki=RegExp("(^|[^"+Gi+"])["+Gi+"]+$"),Ji=function(e){return function(t){var r=$i(qi(t));return 1&e&&(r=Xi(r,Yi,"")),2&e&&(r=Xi(r,Ki,"$1")),r}},Zi={start:Ji(1),end:Ji(2),trim:Ji(3)},Qi=d,ea=g,ta=P,ra=zi,na=Zi.trim,oa=Vi,ia=Qi.parseInt,aa=Qi.Symbol,sa=aa&&aa.iterator,ca=/^[+-]?0x/i,la=ta(ca.exec),ua=8!==ia(oa+"08")||22!==ia(oa+"0x16")||sa&&!ea((function(){ia(Object(sa))}))?function(e,t){var r=na(ra(e));return ia(r,t>>>0||(la(ca,r)?16:10))}:ia;oo({global:!0,forced:parseInt!=ua},{parseInt:ua});var fa=g,ha=de,da=ct("species"),pa=function(e){return ha>=51||!fa((function(){var t=[];return(t.constructor={})[da]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},ga=ci.filter;oo({target:"Array",proto:!0,forced:!pa("filter")},{filter:function(e){return ga(this,e,arguments.length>1?arguments[1]:void 0)}});var ma=m,va=P,ba=w,ya=g,wa=so,Sa=Rn,xa=S,Aa=qe,ka=U,Ta=Object.assign,Ea=Object.defineProperty,_a=va([].concat),Oa=!Ta||ya((function(){if(ma&&1!==Ta({b:1},Ta(Ea({},"a",{enumerable:!0,get:function(){Ea(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Ta({},e)[r]||wa(Ta({},t)).join("")!=n}))?function(e,t){for(var r=Aa(e),n=arguments.length,o=1,i=Sa.f,a=xa.f;n>o;)for(var s,c=ka(arguments[o++]),l=i?_a(wa(c),i(c)):wa(c),u=l.length,f=0;u>f;)s=l[f++],ma&&!ba(a,c,s)||(r[s]=c[s]);return r}:Ta,Na=Oa;oo({target:"Object",stat:!0,arity:2,forced:Object.assign!==Na},{assign:Na});var Ca=TypeError,Ra=bt,Pa=It,La=_,Ia=oo,Fa=g,ja=ko,Da=te,Ma=qe,Ba=mn,Wa=function(e){if(e>9007199254740991)throw Ca("Maximum allowed index exceeded");return e},Ua=function(e,t,r){var n=Ra(t);n in e?Pa.f(e,n,La(0,r)):e[n]=r},Ha=ei,za=pa,Va=de,qa=ct("isConcatSpreadable"),$a=Va>=51||!Fa((function(){var e=[];return e[qa]=!1,e.concat()[0]!==e})),Ga=function(e){if(!Da(e))return!1;var t=e[qa];return void 0!==t?!!t:ja(e)};Ia({target:"Array",proto:!0,arity:1,forced:!$a||!za("concat")},{concat:function(e){var t,r,n,o,i,a=Ma(this),s=Ha(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(Ga(i=-1===t?a:arguments[t]))for(o=Ba(i),Wa(c+o),r=0;r<o;r++,c++)r in i&&Ua(s,c,i[r]);else Wa(c+1),Ua(s,c++,i);return s.length=c,s}}),e.akottr.dragtable.prototype._restoreState=function(e){for(var t=0,r=0,n=Object.entries(e);r<n.length;r++){var o=l(n[r],2),i=o[0],a=o[1],s=this.originalTable.el.find('th[data-field="'.concat(i,'"]'));s.length?(this.originalTable.startIndex=s.prevAll().length+1,this.originalTable.endIndex=parseInt(a,10)+1-t,this._bubbleCols()):t++}};var Xa=function(){Array.prototype.filter||(Array.prototype.filter=function(e){if(null==this)throw new TypeError;var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var n=[],o=arguments.length>=2?arguments[1]:void 0,i=0;i<r;i++)if(i in t){var a=t[i];e.call(o,a,i,t)&&n.push(a)}return n})};Object.assign(e.fn.bootstrapTable.defaults,{reorderableColumns:!1,maxMovingRows:10,onReorderColumn:function(e){return!1},dragaccept:null}),Object.assign(e.fn.bootstrapTable.events,{"reorder-column.bs.table":"onReorderColumn"}),e.fn.bootstrapTable.methods.push("orderColumns"),e.BootstrapTable=function(i){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(h,i);var s,l,u,f=a(h);function h(){return t(this,h),f.apply(this,arguments)}return s=h,l=[{key:"initHeader",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=c(n(h.prototype),"initHeader",this)).call.apply(e,[this].concat(r)),this.options.reorderableColumns&&this.makeColumnsReorderable()}},{key:"_toggleColumn",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=c(n(h.prototype),"_toggleColumn",this)).call.apply(e,[this].concat(r)),this.options.reorderableColumns&&this.makeColumnsReorderable()}},{key:"toggleView",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=c(n(h.prototype),"toggleView",this)).call.apply(e,[this].concat(r)),this.options.reorderableColumns&&(this.options.cardView||this.makeColumnsReorderable())}},{key:"resetView",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=c(n(h.prototype),"resetView",this)).call.apply(e,[this].concat(r)),this.options.reorderableColumns&&this.makeColumnsReorderable()}},{key:"makeColumnsReorderable",value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;try{e(this.$el).dragtable("destroy")}catch(e){}e(this.$el).dragtable({maxMovingRows:this.options.maxMovingRows,dragaccept:this.options.dragaccept,clickDelay:200,dragHandle:".th-inner",restoreState:r||this.columnsSortOrder,beforeStop:function(r){var n={};r.el.find("th").each((function(t,r){n[e(r).data("field")]=t})),t.columnsSortOrder=n,t.options.cookie&&t.persistReorderColumnsState(t);var o=[],i=[],a=[],s=[],c=-1,l=[];if(t.$header.find("th:not(.detail)").each((function(t,r){o.push(e(r).data("field")),i.push(e(r).data("formatter"))})),o.length<t.columns.length){s=t.columns.filter((function(e){return!e.visible}));for(var u=0;u<s.length;u++)o.push(s[u].field),i.push(s[u].formatter)}for(var f=0;f<o.length;f++)-1!==(c=t.fieldsColumnsIndex[o[f]])&&(t.fieldsColumnsIndex[o[f]]=f,t.columns[c].fieldIndex=f,a.push(t.columns[c]));t.columns=a,Xa(),e.each(t.columns,(function(e,r){var n=!1,o=r.field;t.options.columns[0].filter((function(e){return!(!n&&e.field===o&&(l.push(e),n=!0,1))}))})),t.options.columns[0]=l,t.header.fields=o,t.header.formatters=i,t.initHeader(),t.initToolbar(),t.initSearchText(),t.initBody(),t.resetView(),t.trigger("reorder-column",o)}})}},{key:"orderColumns",value:function(e){this.columnsSortOrder=e,this.makeColumnsReorderable()}}],l&&r(s.prototype,l),u&&r(s,u),Object.defineProperty(s,"prototype",{writable:!1}),h}(e.BootstrapTable)})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jQuery)}(this,(function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),n)}var o,i}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=n(e);if(t){var a=n(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return i(this,r)}}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=s(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(this,arguments)}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},u=function(e){return e&&e.Math==Math&&e},f=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof l&&l)||function(){return this}()||Function("return this")(),h={},d=function(e){try{return!!e()}catch(e){return!0}},p=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),g=!d((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),m=g,v=Function.prototype.call,b=m?v.bind(v):function(){return v.apply(v,arguments)},y={},w={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,x=S&&!w.call({1:2},1);y.f=x?function(e){var t=S(this,e);return!!t&&t.enumerable}:w;var A,k,T=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},E=g,_=Function.prototype,O=_.call,N=E&&_.bind.bind(O,O),C=E?N:function(e){return function(){return O.apply(e,arguments)}},R=C,P=R({}.toString),L=R("".slice),I=function(e){return L(P(e),8,-1)},F=d,j=I,D=Object,M=C("".split),B=F((function(){return!D("z").propertyIsEnumerable(0)}))?function(e){return"String"==j(e)?M(e,""):D(e)}:D,W=function(e){return null==e},U=W,H=TypeError,z=function(e){if(U(e))throw H("Can't call method on "+e);return e},V=B,q=z,$=function(e){return V(q(e))},G="object"==typeof document&&document.all,X={all:G,IS_HTMLDDA:void 0===G&&void 0!==G},Y=X.all,K=X.IS_HTMLDDA?function(e){return"function"==typeof e||e===Y}:function(e){return"function"==typeof e},J=K,Z=X.all,Q=X.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:J(e)||e===Z}:function(e){return"object"==typeof e?null!==e:J(e)},ee=f,te=K,re=function(e){return te(e)?e:void 0},ne=function(e,t){return arguments.length<2?re(ee[e]):ee[e]&&ee[e][t]},oe=C({}.isPrototypeOf),ie=f,ae="undefined"!=typeof navigator&&String(navigator.userAgent)||"",se=ie.process,ce=ie.Deno,le=se&&se.versions||ce&&ce.version,ue=le&&le.v8;ue&&(k=(A=ue.split("."))[0]>0&&A[0]<4?1:+(A[0]+A[1])),!k&&ae&&(!(A=ae.match(/Edge\/(\d+)/))||A[1]>=74)&&(A=ae.match(/Chrome\/(\d+)/))&&(k=+A[1]);var fe=k,he=fe,de=d,pe=!!Object.getOwnPropertySymbols&&!de((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&he&&he<41})),ge=pe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,me=ne,ve=K,be=oe,ye=Object,we=ge?function(e){return"symbol"==typeof e}:function(e){var t=me("Symbol");return ve(t)&&be(t.prototype,ye(e))},Se=String,xe=K,Ae=function(e){try{return Se(e)}catch(e){return"Object"}},ke=TypeError,Te=function(e){if(xe(e))return e;throw ke(Ae(e)+" is not a function")},Ee=Te,_e=W,Oe=b,Ne=K,Ce=Q,Re=TypeError,Pe={},Le={get exports(){return Pe},set exports(e){Pe=e}},Ie=f,Fe=Object.defineProperty,je=function(e,t){try{Fe(Ie,e,{value:t,configurable:!0,writable:!0})}catch(r){Ie[e]=t}return t},De=je,Me="__core-js_shared__",Be=f[Me]||De(Me,{}),We=Be;(Le.exports=function(e,t){return We[e]||(We[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ue=z,He=Object,ze=function(e){return He(Ue(e))},Ve=ze,qe=C({}.hasOwnProperty),$e=Object.hasOwn||function(e,t){return qe(Ve(e),t)},Ge=C,Xe=0,Ye=Math.random(),Ke=Ge(1..toString),Je=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ke(++Xe+Ye,36)},Ze=Pe,Qe=$e,et=Je,tt=pe,rt=ge,nt=f.Symbol,ot=Ze("wks"),it=rt?nt.for||nt:nt&&nt.withoutSetter||et,at=function(e){return Qe(ot,e)||(ot[e]=tt&&Qe(nt,e)?nt[e]:it("Symbol."+e)),ot[e]},st=b,ct=Q,lt=we,ut=function(e,t){var r=e[t];return _e(r)?void 0:Ee(r)},ft=function(e,t){var r,n;if("string"===t&&Ne(r=e.toString)&&!Ce(n=Oe(r,e)))return n;if(Ne(r=e.valueOf)&&!Ce(n=Oe(r,e)))return n;if("string"!==t&&Ne(r=e.toString)&&!Ce(n=Oe(r,e)))return n;throw Re("Can't convert object to primitive value")},ht=TypeError,dt=at("toPrimitive"),pt=function(e,t){if(!ct(e)||lt(e))return e;var r,n=ut(e,dt);if(n){if(void 0===t&&(t="default"),r=st(n,e,t),!ct(r)||lt(r))return r;throw ht("Can't convert object to primitive value")}return void 0===t&&(t="number"),ft(e,t)},gt=we,mt=function(e){var t=pt(e,"string");return gt(t)?t:t+""},vt=Q,bt=f.document,yt=vt(bt)&&vt(bt.createElement),wt=function(e){return yt?bt.createElement(e):{}},St=wt,xt=!p&&!d((function(){return 7!=Object.defineProperty(St("div"),"a",{get:function(){return 7}}).a})),At=p,kt=b,Tt=y,Et=T,_t=$,Ot=mt,Nt=$e,Ct=xt,Rt=Object.getOwnPropertyDescriptor;h.f=At?Rt:function(e,t){if(e=_t(e),t=Ot(t),Ct)try{return Rt(e,t)}catch(e){}if(Nt(e,t))return Et(!kt(Tt.f,e,t),e[t])};var Pt={},Lt=p&&d((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),It=Q,Ft=String,jt=TypeError,Dt=function(e){if(It(e))return e;throw jt(Ft(e)+" is not an object")},Mt=p,Bt=xt,Wt=Lt,Ut=Dt,Ht=mt,zt=TypeError,Vt=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,$t="enumerable",Gt="configurable",Xt="writable";Pt.f=Mt?Wt?function(e,t,r){if(Ut(e),t=Ht(t),Ut(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Xt in r&&!r.writable){var n=qt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:Gt in r?r.configurable:n.configurable,enumerable:$t in r?r.enumerable:n.enumerable,writable:!1})}return Vt(e,t,r)}:Vt:function(e,t,r){if(Ut(e),t=Ht(t),Ut(r),Bt)try{return Vt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw zt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Yt=Pt,Kt=T,Jt=p?function(e,t,r){return Yt.f(e,t,Kt(1,r))}:function(e,t,r){return e[t]=r,e},Zt={},Qt={get exports(){return Zt},set exports(e){Zt=e}},er=p,tr=$e,rr=Function.prototype,nr=er&&Object.getOwnPropertyDescriptor,or=tr(rr,"name"),ir={EXISTS:or,PROPER:or&&"something"===function(){}.name,CONFIGURABLE:or&&(!er||er&&nr(rr,"name").configurable)},ar=K,sr=Be,cr=C(Function.toString);ar(sr.inspectSource)||(sr.inspectSource=function(e){return cr(e)});var lr,ur,fr,hr=sr.inspectSource,dr=K,pr=f.WeakMap,gr=dr(pr)&&/native code/.test(String(pr)),mr=Je,vr=Pe("keys"),br=function(e){return vr[e]||(vr[e]=mr(e))},yr={},wr=gr,Sr=f,xr=Q,Ar=Jt,kr=$e,Tr=Be,Er=br,_r=yr,Or="Object already initialized",Nr=Sr.TypeError,Cr=Sr.WeakMap;if(wr||Tr.state){var Rr=Tr.state||(Tr.state=new Cr);Rr.get=Rr.get,Rr.has=Rr.has,Rr.set=Rr.set,lr=function(e,t){if(Rr.has(e))throw Nr(Or);return t.facade=e,Rr.set(e,t),t},ur=function(e){return Rr.get(e)||{}},fr=function(e){return Rr.has(e)}}else{var Pr=Er("state");_r[Pr]=!0,lr=function(e,t){if(kr(e,Pr))throw Nr(Or);return t.facade=e,Ar(e,Pr,t),t},ur=function(e){return kr(e,Pr)?e[Pr]:{}},fr=function(e){return kr(e,Pr)}}var Lr={set:lr,get:ur,has:fr,enforce:function(e){return fr(e)?ur(e):lr(e,{})},getterFor:function(e){return function(t){var r;if(!xr(t)||(r=ur(t)).type!==e)throw Nr("Incompatible receiver, "+e+" required");return r}}},Ir=C,Fr=d,jr=K,Dr=$e,Mr=p,Br=ir.CONFIGURABLE,Wr=hr,Ur=Lr.enforce,Hr=Lr.get,zr=String,Vr=Object.defineProperty,qr=Ir("".slice),$r=Ir("".replace),Gr=Ir([].join),Xr=Mr&&!Fr((function(){return 8!==Vr((function(){}),"length",{value:8}).length})),Yr=String(String).split("String"),Kr=Qt.exports=function(e,t,r){"Symbol("===qr(zr(t),0,7)&&(t="["+$r(zr(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Dr(e,"name")||Br&&e.name!==t)&&(Mr?Vr(e,"name",{value:t,configurable:!0}):e.name=t),Xr&&r&&Dr(r,"arity")&&e.length!==r.arity&&Vr(e,"length",{value:r.arity});try{r&&Dr(r,"constructor")&&r.constructor?Mr&&Vr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Ur(e);return Dr(n,"source")||(n.source=Gr(Yr,"string"==typeof t?t:"")),e};Function.prototype.toString=Kr((function(){return jr(this)&&Hr(this).source||Wr(this)}),"toString");var Jr=K,Zr=Pt,Qr=Zt,en=je,tn=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(Jr(r)&&Qr(r,i,n),n.global)o?e[t]=r:en(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Zr.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},rn={},nn=Math.ceil,on=Math.floor,an=Math.trunc||function(e){var t=+e;return(t>0?on:nn)(t)},sn=function(e){var t=+e;return t!=t||0===t?0:an(t)},cn=sn,ln=Math.max,un=Math.min,fn=sn,hn=Math.min,dn=function(e){return e>0?hn(fn(e),9007199254740991):0},pn=function(e){return dn(e.length)},gn=$,mn=function(e,t){var r=cn(e);return r<0?ln(r+t,0):un(r,t)},vn=pn,bn=function(e){return function(t,r,n){var o,i=gn(t),a=vn(i),s=mn(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},yn={includes:bn(!0),indexOf:bn(!1)},wn=$e,Sn=$,xn=yn.indexOf,An=yr,kn=C([].push),Tn=function(e,t){var r,n=Sn(e),o=0,i=[];for(r in n)!wn(An,r)&&wn(n,r)&&kn(i,r);for(;t.length>o;)wn(n,r=t[o++])&&(~xn(i,r)||kn(i,r));return i},En=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_n=Tn,On=En.concat("length","prototype");rn.f=Object.getOwnPropertyNames||function(e){return _n(e,On)};var Nn={};Nn.f=Object.getOwnPropertySymbols;var Cn=ne,Rn=rn,Pn=Nn,Ln=Dt,In=C([].concat),Fn=Cn("Reflect","ownKeys")||function(e){var t=Rn.f(Ln(e)),r=Pn.f;return r?In(t,r(e)):t},jn=$e,Dn=Fn,Mn=h,Bn=Pt,Wn=d,Un=K,Hn=/#|\.prototype\./,zn=function(e,t){var r=qn[Vn(e)];return r==Gn||r!=$n&&(Un(t)?Wn(t):!!t)},Vn=zn.normalize=function(e){return String(e).replace(Hn,".").toLowerCase()},qn=zn.data={},$n=zn.NATIVE="N",Gn=zn.POLYFILL="P",Xn=zn,Yn=f,Kn=h.f,Jn=Jt,Zn=tn,Qn=je,eo=function(e,t,r){for(var n=Dn(t),o=Bn.f,i=Mn.f,a=0;a<n.length;a++){var s=n[a];jn(e,s)||r&&jn(r,s)||o(e,s,i(t,s))}},to=Xn,ro=function(e,t){var r,n,o,i,a,s=e.target,c=e.global,l=e.stat;if(r=c?Yn:l?Yn[s]||Qn(s,{}):(Yn[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=Kn(r,n))&&a.value:r[n],!to(c?n:s+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;eo(i,o)}(e.sham||o&&o.sham)&&Jn(i,"sham",!0),Zn(r,n,i,e)}},no=Tn,oo=En,io=Object.keys||function(e){return no(e,oo)},ao=p,so=C,co=b,lo=d,uo=io,fo=Nn,ho=y,po=ze,go=B,mo=Object.assign,vo=Object.defineProperty,bo=so([].concat),yo=!mo||lo((function(){if(ao&&1!==mo({b:1},mo(vo({},"a",{enumerable:!0,get:function(){vo(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=mo({},e)[r]||uo(mo({},t)).join("")!=n}))?function(e,t){for(var r=po(e),n=arguments.length,o=1,i=fo.f,a=ho.f;n>o;)for(var s,c=go(arguments[o++]),l=i?bo(uo(c),i(c)):uo(c),u=l.length,f=0;u>f;)s=l[f++],ao&&!co(a,c,s)||(r[s]=c[s]);return r}:mo,wo=yo;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==wo},{assign:wo});var So=I,xo=Array.isArray||function(e){return"Array"==So(e)},Ao=TypeError,ko=mt,To=Pt,Eo=T,_o={};_o[at("toStringTag")]="z";var Oo="[object z]"===String(_o),No=Oo,Co=K,Ro=I,Po=at("toStringTag"),Lo=Object,Io="Arguments"==Ro(function(){return arguments}()),Fo=No?Ro:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Lo(e),Po))?r:Io?Ro(t):"Object"==(n=Ro(t))&&Co(t.callee)?"Arguments":n},jo=C,Do=d,Mo=K,Bo=Fo,Wo=hr,Uo=function(){},Ho=[],zo=ne("Reflect","construct"),Vo=/^\s*(?:class|function)\b/,qo=jo(Vo.exec),$o=!Vo.exec(Uo),Go=function(e){if(!Mo(e))return!1;try{return zo(Uo,Ho,e),!0}catch(e){return!1}},Xo=function(e){if(!Mo(e))return!1;switch(Bo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return $o||!!qo(Vo,Wo(e))}catch(e){return!0}};Xo.sham=!0;var Yo=!zo||Do((function(){var e;return Go(Go.call)||!Go(Object)||!Go((function(){e=!0}))||e}))?Xo:Go,Ko=xo,Jo=Yo,Zo=Q,Qo=at("species"),ei=Array,ti=function(e){var t;return Ko(e)&&(t=e.constructor,(Jo(t)&&(t===ei||Ko(t.prototype))||Zo(t)&&null===(t=t[Qo]))&&(t=void 0)),void 0===t?ei:t},ri=function(e,t){return new(ti(e))(0===t?0:t)},ni=d,oi=fe,ii=at("species"),ai=ro,si=d,ci=xo,li=Q,ui=ze,fi=pn,hi=function(e){if(e>9007199254740991)throw Ao("Maximum allowed index exceeded");return e},di=function(e,t,r){var n=ko(t);n in e?To.f(e,n,Eo(0,r)):e[n]=r},pi=ri,gi=function(e){return oi>=51||!ni((function(){var t=[];return(t.constructor={})[ii]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},mi=fe,vi=at("isConcatSpreadable"),bi=mi>=51||!si((function(){var e=[];return e[vi]=!1,e.concat()[0]!==e})),yi=function(e){if(!li(e))return!1;var t=e[vi];return void 0!==t?!!t:ci(e)};ai({target:"Array",proto:!0,arity:1,forced:!bi||!gi("concat")},{concat:function(e){var t,r,n,o,i,a=ui(this),s=pi(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(yi(i=-1===t?a:arguments[t]))for(o=fi(i),hi(c+o),r=0;r<o;r++,c++)r in i&&di(s,c,i[r]);else hi(c+1),di(s,c++,i);return s.length=c,s}});var wi={},Si=p,xi=Lt,Ai=Pt,ki=Dt,Ti=$,Ei=io;wi.f=Si&&!xi?Object.defineProperties:function(e,t){ki(e);for(var r,n=Ti(t),o=Ei(t),i=o.length,a=0;i>a;)Ai.f(e,r=o[a++],n[r]);return e};var _i,Oi=ne("document","documentElement"),Ni=Dt,Ci=wi,Ri=En,Pi=yr,Li=Oi,Ii=wt,Fi=br("IE_PROTO"),ji=function(){},Di=function(e){return"<script>"+e+"</"+"script>"},Mi=function(e){e.write(Di("")),e.close();var t=e.parentWindow.Object;return e=null,t},Bi=function(){try{_i=new ActiveXObject("htmlfile")}catch(e){}var e,t;Bi="undefined"!=typeof document?document.domain&&_i?Mi(_i):((t=Ii("iframe")).style.display="none",Li.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Di("document.F=Object")),e.close(),e.F):Mi(_i);for(var r=Ri.length;r--;)delete Bi.prototype[Ri[r]];return Bi()};Pi[Fi]=!0;var Wi=at,Ui=Object.create||function(e,t){var r;return null!==e?(ji.prototype=Ni(e),r=new ji,ji.prototype=null,r[Fi]=e):r=Bi(),void 0===t?r:Ci.f(r,t)},Hi=Pt.f,zi=Wi("unscopables"),Vi=Array.prototype;null==Vi[zi]&&Hi(Vi,zi,{configurable:!0,value:Ui(null)});var qi=yn.includes,$i=function(e){Vi[zi][e]=!0};ro({target:"Array",proto:!0,forced:d((function(){return!Array(1).includes()}))},{includes:function(e){return qi(this,e,arguments.length>1?arguments[1]:void 0)}}),$i("includes");var Gi=Fo,Xi=Oo?{}.toString:function(){return"[object "+Gi(this)+"]"};Oo||tn(Object.prototype,"toString",Xi,{unsafe:!0});var Yi=wt("span").classList,Ki=Yi&&Yi.constructor&&Yi.constructor.prototype,Ji=Ki===Object.prototype?void 0:Ki,Zi=I,Qi=C,ea=function(e){if("Function"===Zi(e))return Qi(e)},ta=Te,ra=g,na=ea(ea.bind),oa=function(e,t){return ta(e),void 0===t?e:ra?na(e,t):function(){return e.apply(t,arguments)}},ia=B,aa=ze,sa=pn,ca=ri,la=C([].push),ua=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,l,u,f){for(var h,d,p=aa(c),g=ia(p),m=oa(l,u),v=sa(g),b=0,y=f||ca,w=t?y(c,v):r||a?y(c,0):void 0;v>b;b++)if((s||b in g)&&(d=m(h=g[b],b,p),e))if(t)w[b]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:la(w,h)}else switch(e){case 4:return!1;case 7:la(w,h)}return i?-1:n||o?o:w}},fa={forEach:ua(0),map:ua(1),filter:ua(2),some:ua(3),every:ua(4),find:ua(5),findIndex:ua(6),filterReject:ua(7)},ha=d,da=fa.forEach,pa=function(e,t){var r=[][e];return!!r&&ha((function(){r.call(null,t||function(){return 1},1)}))}("forEach")?[].forEach:function(e){return da(this,e,arguments.length>1?arguments[1]:void 0)},ga=f,ma={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},va=Ji,ba=pa,ya=Jt,wa=function(e){if(e&&e.forEach!==ba)try{ya(e,"forEach",ba)}catch(t){e.forEach=ba}};for(var Sa in ma)ma[Sa]&&wa(ga[Sa]&&ga[Sa].prototype);wa(va);var xa=Q,Aa=I,ka=at("match"),Ta=function(e){var t;return xa(e)&&(void 0!==(t=e[ka])?!!t:"RegExp"==Aa(e))},Ea=TypeError,_a=Fo,Oa=String,Na=at("match"),Ca=ro,Ra=function(e){if(Ta(e))throw Ea("The method doesn't accept regular expressions");return e},Pa=z,La=function(e){if("Symbol"===_a(e))throw TypeError("Cannot convert a Symbol value to a string");return Oa(e)},Ia=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Na]=!1,"/./"[e](t)}catch(e){}}return!1},Fa=C("".indexOf);Ca({target:"String",proto:!0,forced:!Ia("includes")},{includes:function(e){return!!~Fa(La(Pa(this)),La(Ra(e)),arguments.length>1?arguments[1]:void 0)}});var ja=function(e,t){var r=0;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=function(){r=0,e.apply(void 0,o)};clearTimeout(r),r=setTimeout(a,t)}};Object.assign(e.fn.bootstrapTable.defaults,{mobileResponsive:!1,minWidth:562,minHeight:void 0,heightThreshold:100,checkOnInit:!0,columnsHidden:[]}),e.BootstrapTable=function(i){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(h,i);var s,l,u,f=a(h);function h(){return t(this,h),f.apply(this,arguments)}return s=h,l=[{key:"init",value:function(){for(var t,r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];if((t=c(n(h.prototype),"init",this)).call.apply(t,[this].concat(i)),this.options.mobileResponsive&&this.options.minWidth){this.options.minWidth<100&&this.options.resizable&&(console.warn("The minWidth when the resizable extension is active should be greater or equal than 100"),this.options.minWidth=100);var s={width:e(window).width(),height:e(window).height()};if(e(window).on("resize orientationchange",ja((function(){var t=e(window).width(),n=e(window).height(),o=e(document.activeElement);o.length&&["INPUT","SELECT","TEXTAREA"].includes(o.prop("nodeName"))||(Math.abs(s.height-n)>r.options.heightThreshold||s.width!==t)&&(r.changeView(t,n),s={width:t,height:n})}),200)),this.options.checkOnInit){var l=e(window).width(),u=e(window).height();this.changeView(l,u),s={width:l,height:u}}}}},{key:"conditionCardView",value:function(){this.changeTableView(!1),this.showHideColumns(!1)}},{key:"conditionFullView",value:function(){this.changeTableView(!0),this.showHideColumns(!0)}},{key:"changeTableView",value:function(e){this.options.cardView=e,this.toggleView()}},{key:"showHideColumns",value:function(e){var t=this;this.options.columnsHidden.length>0&&this.columns.forEach((function(r){t.options.columnsHidden.includes(r.field)&&r.visible!==e&&t._toggleColumn(t.fieldsColumnsIndex[r.field],e,!0)}))}},{key:"changeView",value:function(e,t){this.options.minHeight?e<=this.options.minWidth&&t<=this.options.minHeight?this.conditionCardView():e>this.options.minWidth&&t>this.options.minHeight&&this.conditionFullView():e<=this.options.minWidth?this.conditionCardView():e>this.options.minWidth&&this.conditionFullView(),this.resetView()}}],l&&r(s.prototype,l),u&&r(s,u),Object.defineProperty(s,"prototype",{writable:!1}),h}(e.BootstrapTable)})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jQuery)}(this,(function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function n(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=o(e);if(t){var i=o(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return a(this,r)}}function c(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=c(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},l.apply(this,arguments)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function h(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},p=function(e){return e&&e.Math==Math&&e},g=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof d&&d)||function(){return this}()||Function("return this")(),m={},v=function(e){try{return!!e()}catch(e){return!0}},b=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),y=!v((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),w=y,S=Function.prototype.call,x=w?S.bind(S):function(){return S.apply(S,arguments)},A={},k={}.propertyIsEnumerable,T=Object.getOwnPropertyDescriptor,E=T&&!k.call({1:2},1);A.f=E?function(e){var t=T(this,e);return!!t&&t.enumerable}:k;var _,O,N=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},C=y,R=Function.prototype,P=R.call,L=C&&R.bind.bind(P,P),I=C?L:function(e){return function(){return P.apply(e,arguments)}},F=I,j=F({}.toString),D=F("".slice),M=function(e){return D(j(e),8,-1)},B=v,W=M,U=Object,H=I("".split),z=B((function(){return!U("z").propertyIsEnumerable(0)}))?function(e){return"String"==W(e)?H(e,""):U(e)}:U,V=function(e){return null==e},q=V,$=TypeError,G=function(e){if(q(e))throw $("Can't call method on "+e);return e},X=z,Y=G,K=function(e){return X(Y(e))},J="object"==typeof document&&document.all,Z={all:J,IS_HTMLDDA:void 0===J&&void 0!==J},Q=Z.all,ee=Z.IS_HTMLDDA?function(e){return"function"==typeof e||e===Q}:function(e){return"function"==typeof e},te=ee,re=Z.all,ne=Z.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:te(e)||e===re}:function(e){return"object"==typeof e?null!==e:te(e)},oe=g,ie=ee,ae=function(e){return ie(e)?e:void 0},se=function(e,t){return arguments.length<2?ae(oe[e]):oe[e]&&oe[e][t]},ce=I({}.isPrototypeOf),le=g,ue="undefined"!=typeof navigator&&String(navigator.userAgent)||"",fe=le.process,he=le.Deno,de=fe&&fe.versions||he&&he.version,pe=de&&de.v8;pe&&(O=(_=pe.split("."))[0]>0&&_[0]<4?1:+(_[0]+_[1])),!O&&ue&&(!(_=ue.match(/Edge\/(\d+)/))||_[1]>=74)&&(_=ue.match(/Chrome\/(\d+)/))&&(O=+_[1]);var ge=O,me=ge,ve=v,be=!!Object.getOwnPropertySymbols&&!ve((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&me&&me<41})),ye=be&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,we=se,Se=ee,xe=ce,Ae=Object,ke=ye?function(e){return"symbol"==typeof e}:function(e){var t=we("Symbol");return Se(t)&&xe(t.prototype,Ae(e))},Te=String,Ee=ee,_e=function(e){try{return Te(e)}catch(e){return"Object"}},Oe=TypeError,Ne=function(e){if(Ee(e))return e;throw Oe(_e(e)+" is not a function")},Ce=Ne,Re=V,Pe=function(e,t){var r=e[t];return Re(r)?void 0:Ce(r)},Le=x,Ie=ee,Fe=ne,je=TypeError,De={},Me={get exports(){return De},set exports(e){De=e}},Be=g,We=Object.defineProperty,Ue=function(e,t){try{We(Be,e,{value:t,configurable:!0,writable:!0})}catch(r){Be[e]=t}return t},He=Ue,ze="__core-js_shared__",Ve=g[ze]||He(ze,{}),qe=Ve;(Me.exports=function(e,t){return qe[e]||(qe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var $e=G,Ge=Object,Xe=function(e){return Ge($e(e))},Ye=Xe,Ke=I({}.hasOwnProperty),Je=Object.hasOwn||function(e,t){return Ke(Ye(e),t)},Ze=I,Qe=0,et=Math.random(),tt=Ze(1..toString),rt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+tt(++Qe+et,36)},nt=De,ot=Je,it=rt,at=be,st=ye,ct=g.Symbol,lt=nt("wks"),ut=st?ct.for||ct:ct&&ct.withoutSetter||it,ft=function(e){return ot(lt,e)||(lt[e]=at&&ot(ct,e)?ct[e]:ut("Symbol."+e)),lt[e]},ht=x,dt=ne,pt=ke,gt=Pe,mt=function(e,t){var r,n;if("string"===t&&Ie(r=e.toString)&&!Fe(n=Le(r,e)))return n;if(Ie(r=e.valueOf)&&!Fe(n=Le(r,e)))return n;if("string"!==t&&Ie(r=e.toString)&&!Fe(n=Le(r,e)))return n;throw je("Can't convert object to primitive value")},vt=TypeError,bt=ft("toPrimitive"),yt=function(e,t){if(!dt(e)||pt(e))return e;var r,n=gt(e,bt);if(n){if(void 0===t&&(t="default"),r=ht(n,e,t),!dt(r)||pt(r))return r;throw vt("Can't convert object to primitive value")}return void 0===t&&(t="number"),mt(e,t)},wt=ke,St=function(e){var t=yt(e,"string");return wt(t)?t:t+""},xt=ne,At=g.document,kt=xt(At)&&xt(At.createElement),Tt=function(e){return kt?At.createElement(e):{}},Et=Tt,_t=!b&&!v((function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),Ot=b,Nt=x,Ct=A,Rt=N,Pt=K,Lt=St,It=Je,Ft=_t,jt=Object.getOwnPropertyDescriptor;m.f=Ot?jt:function(e,t){if(e=Pt(e),t=Lt(t),Ft)try{return jt(e,t)}catch(e){}if(It(e,t))return Rt(!Nt(Ct.f,e,t),e[t])};var Dt={},Mt=b&&v((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Bt=ne,Wt=String,Ut=TypeError,Ht=function(e){if(Bt(e))return e;throw Ut(Wt(e)+" is not an object")},zt=b,Vt=_t,qt=Mt,$t=Ht,Gt=St,Xt=TypeError,Yt=Object.defineProperty,Kt=Object.getOwnPropertyDescriptor,Jt="enumerable",Zt="configurable",Qt="writable";Dt.f=zt?qt?function(e,t,r){if($t(e),t=Gt(t),$t(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Qt in r&&!r.writable){var n=Kt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:Zt in r?r.configurable:n.configurable,enumerable:Jt in r?r.enumerable:n.enumerable,writable:!1})}return Yt(e,t,r)}:Yt:function(e,t,r){if($t(e),t=Gt(t),$t(r),Vt)try{return Yt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Xt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var er=Dt,tr=N,rr=b?function(e,t,r){return er.f(e,t,tr(1,r))}:function(e,t,r){return e[t]=r,e},nr={},or={get exports(){return nr},set exports(e){nr=e}},ir=b,ar=Je,sr=Function.prototype,cr=ir&&Object.getOwnPropertyDescriptor,lr=ar(sr,"name"),ur={EXISTS:lr,PROPER:lr&&"something"===function(){}.name,CONFIGURABLE:lr&&(!ir||ir&&cr(sr,"name").configurable)},fr=ee,hr=Ve,dr=I(Function.toString);fr(hr.inspectSource)||(hr.inspectSource=function(e){return dr(e)});var pr,gr,mr,vr=hr.inspectSource,br=ee,yr=g.WeakMap,wr=br(yr)&&/native code/.test(String(yr)),Sr=rt,xr=De("keys"),Ar=function(e){return xr[e]||(xr[e]=Sr(e))},kr={},Tr=wr,Er=g,_r=ne,Or=rr,Nr=Je,Cr=Ve,Rr=Ar,Pr=kr,Lr="Object already initialized",Ir=Er.TypeError,Fr=Er.WeakMap;if(Tr||Cr.state){var jr=Cr.state||(Cr.state=new Fr);jr.get=jr.get,jr.has=jr.has,jr.set=jr.set,pr=function(e,t){if(jr.has(e))throw Ir(Lr);return t.facade=e,jr.set(e,t),t},gr=function(e){return jr.get(e)||{}},mr=function(e){return jr.has(e)}}else{var Dr=Rr("state");Pr[Dr]=!0,pr=function(e,t){if(Nr(e,Dr))throw Ir(Lr);return t.facade=e,Or(e,Dr,t),t},gr=function(e){return Nr(e,Dr)?e[Dr]:{}},mr=function(e){return Nr(e,Dr)}}var Mr={set:pr,get:gr,has:mr,enforce:function(e){return mr(e)?gr(e):pr(e,{})},getterFor:function(e){return function(t){var r;if(!_r(t)||(r=gr(t)).type!==e)throw Ir("Incompatible receiver, "+e+" required");return r}}},Br=I,Wr=v,Ur=ee,Hr=Je,zr=b,Vr=ur.CONFIGURABLE,qr=vr,$r=Mr.enforce,Gr=Mr.get,Xr=String,Yr=Object.defineProperty,Kr=Br("".slice),Jr=Br("".replace),Zr=Br([].join),Qr=zr&&!Wr((function(){return 8!==Yr((function(){}),"length",{value:8}).length})),en=String(String).split("String"),tn=or.exports=function(e,t,r){"Symbol("===Kr(Xr(t),0,7)&&(t="["+Jr(Xr(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Hr(e,"name")||Vr&&e.name!==t)&&(zr?Yr(e,"name",{value:t,configurable:!0}):e.name=t),Qr&&r&&Hr(r,"arity")&&e.length!==r.arity&&Yr(e,"length",{value:r.arity});try{r&&Hr(r,"constructor")&&r.constructor?zr&&Yr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=$r(e);return Hr(n,"source")||(n.source=Zr(en,"string"==typeof t?t:"")),e};Function.prototype.toString=tn((function(){return Ur(this)&&Gr(this).source||qr(this)}),"toString");var rn=ee,nn=Dt,on=nr,an=Ue,sn=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(rn(r)&&on(r,i,n),n.global)o?e[t]=r:an(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:nn.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},cn={},ln=Math.ceil,un=Math.floor,fn=Math.trunc||function(e){var t=+e;return(t>0?un:ln)(t)},hn=function(e){var t=+e;return t!=t||0===t?0:fn(t)},dn=hn,pn=Math.max,gn=Math.min,mn=function(e,t){var r=dn(e);return r<0?pn(r+t,0):gn(r,t)},vn=hn,bn=Math.min,yn=function(e){return e>0?bn(vn(e),9007199254740991):0},wn=yn,Sn=function(e){return wn(e.length)},xn=K,An=mn,kn=Sn,Tn=function(e){return function(t,r,n){var o,i=xn(t),a=kn(i),s=An(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},En={includes:Tn(!0),indexOf:Tn(!1)},_n=Je,On=K,Nn=En.indexOf,Cn=kr,Rn=I([].push),Pn=function(e,t){var r,n=On(e),o=0,i=[];for(r in n)!_n(Cn,r)&&_n(n,r)&&Rn(i,r);for(;t.length>o;)_n(n,r=t[o++])&&(~Nn(i,r)||Rn(i,r));return i},Ln=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],In=Pn,Fn=Ln.concat("length","prototype");cn.f=Object.getOwnPropertyNames||function(e){return In(e,Fn)};var jn={};jn.f=Object.getOwnPropertySymbols;var Dn=se,Mn=cn,Bn=jn,Wn=Ht,Un=I([].concat),Hn=Dn("Reflect","ownKeys")||function(e){var t=Mn.f(Wn(e)),r=Bn.f;return r?Un(t,r(e)):t},zn=Je,Vn=Hn,qn=m,$n=Dt,Gn=v,Xn=ee,Yn=/#|\.prototype\./,Kn=function(e,t){var r=Zn[Jn(e)];return r==eo||r!=Qn&&(Xn(t)?Gn(t):!!t)},Jn=Kn.normalize=function(e){return String(e).replace(Yn,".").toLowerCase()},Zn=Kn.data={},Qn=Kn.NATIVE="N",eo=Kn.POLYFILL="P",to=Kn,ro=g,no=m.f,oo=rr,io=sn,ao=Ue,so=function(e,t,r){for(var n=Vn(t),o=$n.f,i=qn.f,a=0;a<n.length;a++){var s=n[a];zn(e,s)||r&&zn(r,s)||o(e,s,i(t,s))}},co=to,lo=function(e,t){var r,n,o,i,a,s=e.target,c=e.global,l=e.stat;if(r=c?ro:l?ro[s]||ao(s,{}):(ro[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=no(r,n))&&a.value:r[n],!co(c?n:s+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;so(i,o)}(e.sham||o&&o.sham)&&oo(i,"sham",!0),io(r,n,i,e)}},uo=Pn,fo=Ln,ho=Object.keys||function(e){return uo(e,fo)},po=b,go=I,mo=x,vo=v,bo=ho,yo=jn,wo=A,So=Xe,xo=z,Ao=Object.assign,ko=Object.defineProperty,To=go([].concat),Eo=!Ao||vo((function(){if(po&&1!==Ao({b:1},Ao(ko({},"a",{enumerable:!0,get:function(){ko(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Ao({},e)[r]||bo(Ao({},t)).join("")!=n}))?function(e,t){for(var r=So(e),n=arguments.length,o=1,i=yo.f,a=wo.f;n>o;)for(var s,c=xo(arguments[o++]),l=i?To(bo(c),i(c)):bo(c),u=l.length,f=0;u>f;)s=l[f++],po&&!mo(a,c,s)||(r[s]=c[s]);return r}:Ao,_o=Eo;lo({target:"Object",stat:!0,arity:2,forced:Object.assign!==_o},{assign:_o});var Oo={};Oo[ft("toStringTag")]="z";var No="[object z]"===String(Oo),Co=No,Ro=ee,Po=M,Lo=ft("toStringTag"),Io=Object,Fo="Arguments"==Po(function(){return arguments}()),jo=Co?Po:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Io(e),Lo))?r:Fo?Po(t):"Object"==(n=Po(t))&&Ro(t.callee)?"Arguments":n},Do=jo,Mo=String,Bo=function(e){if("Symbol"===Do(e))throw TypeError("Cannot convert a Symbol value to a string");return Mo(e)},Wo=Ht,Uo=v,Ho=g.RegExp,zo=Uo((function(){var e=Ho("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Vo=zo||Uo((function(){return!Ho("a","y").sticky})),qo={BROKEN_CARET:zo||Uo((function(){var e=Ho("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Vo,UNSUPPORTED_Y:zo},$o={},Go=b,Xo=Mt,Yo=Dt,Ko=Ht,Jo=K,Zo=ho;$o.f=Go&&!Xo?Object.defineProperties:function(e,t){Ko(e);for(var r,n=Jo(t),o=Zo(t),i=o.length,a=0;i>a;)Yo.f(e,r=o[a++],n[r]);return e};var Qo,ei=se("document","documentElement"),ti=Ht,ri=$o,ni=Ln,oi=kr,ii=ei,ai=Tt,si=Ar("IE_PROTO"),ci=function(){},li=function(e){return"<script>"+e+"</"+"script>"},ui=function(e){e.write(li("")),e.close();var t=e.parentWindow.Object;return e=null,t},fi=function(){try{Qo=new ActiveXObject("htmlfile")}catch(e){}var e,t;fi="undefined"!=typeof document?document.domain&&Qo?ui(Qo):((t=ai("iframe")).style.display="none",ii.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(li("document.F=Object")),e.close(),e.F):ui(Qo);for(var r=ni.length;r--;)delete fi.prototype[ni[r]];return fi()};oi[si]=!0;var hi,di,pi=Object.create||function(e,t){var r;return null!==e?(ci.prototype=ti(e),r=new ci,ci.prototype=null,r[si]=e):r=fi(),void 0===t?r:ri.f(r,t)},gi=v,mi=g.RegExp,vi=gi((function(){var e=mi(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),bi=v,yi=g.RegExp,wi=bi((function(){var e=yi("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Si=x,xi=I,Ai=Bo,ki=function(){var e=Wo(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Ti=qo,Ei=pi,_i=Mr.get,Oi=vi,Ni=wi,Ci=De("native-string-replace",String.prototype.replace),Ri=RegExp.prototype.exec,Pi=Ri,Li=xi("".charAt),Ii=xi("".indexOf),Fi=xi("".replace),ji=xi("".slice),Di=(di=/b*/g,Si(Ri,hi=/a/,"a"),Si(Ri,di,"a"),0!==hi.lastIndex||0!==di.lastIndex),Mi=Ti.BROKEN_CARET,Bi=void 0!==/()??/.exec("")[1];(Di||Bi||Mi||Oi||Ni)&&(Pi=function(e){var t,r,n,o,i,a,s,c=this,l=_i(c),u=Ai(e),f=l.raw;if(f)return f.lastIndex=c.lastIndex,t=Si(Pi,f,u),c.lastIndex=f.lastIndex,t;var h=l.groups,d=Mi&&c.sticky,p=Si(ki,c),g=c.source,m=0,v=u;if(d&&(p=Fi(p,"y",""),-1===Ii(p,"g")&&(p+="g"),v=ji(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Li(u,c.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),r=new RegExp("^(?:"+g+")",p)),Bi&&(r=new RegExp("^"+g+"$(?!\\s)",p)),Di&&(n=c.lastIndex),o=Si(Ri,d?r:c,v),d?o?(o.input=ji(o.input,m),o[0]=ji(o[0],m),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Di&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),Bi&&o&&o.length>1&&Si(Ci,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&h)for(o.groups=a=Ei(null),i=0;i<h.length;i++)a[(s=h[i])[0]]=o[s[1]];return o});var Wi=Pi;lo({target:"RegExp",proto:!0,forced:/./.exec!==Wi},{exec:Wi});var Ui=y,Hi=Function.prototype,zi=Hi.apply,Vi=Hi.call,qi="object"==typeof Reflect&&Reflect.apply||(Ui?Vi.bind(zi):function(){return Vi.apply(zi,arguments)}),$i=M,Gi=I,Xi=function(e){if("Function"===$i(e))return Gi(e)},Yi=Xi,Ki=sn,Ji=Wi,Zi=v,Qi=ft,ea=rr,ta=Qi("species"),ra=RegExp.prototype,na=I,oa=hn,ia=Bo,aa=G,sa=na("".charAt),ca=na("".charCodeAt),la=na("".slice),ua=function(e){return function(t,r){var n,o,i=ia(aa(t)),a=oa(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=ca(i,a))<55296||n>56319||a+1===s||(o=ca(i,a+1))<56320||o>57343?e?sa(i,a):n:e?la(i,a,a+2):o-56320+(n-55296<<10)+65536}},fa={codeAt:ua(!1),charAt:ua(!0)}.charAt,ha=I,da=Xe,pa=Math.floor,ga=ha("".charAt),ma=ha("".replace),va=ha("".slice),ba=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ya=/\$([$&'`]|\d{1,2})/g,wa=x,Sa=Ht,xa=ee,Aa=M,ka=Wi,Ta=TypeError,Ea=qi,_a=x,Oa=I,Na=function(e,t,r,n){var o=Qi(e),i=!Zi((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Zi((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[ta]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var s=Yi(/./[o]),c=t(o,""[e],(function(e,t,r,n,o){var a=Yi(e),c=t.exec;return c===Ji||c===ra.exec?i&&!o?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));Ki(String.prototype,e,c[0]),Ki(ra,o,c[1])}n&&ea(ra[o],"sham",!0)},Ca=v,Ra=Ht,Pa=ee,La=V,Ia=hn,Fa=yn,ja=Bo,Da=G,Ma=function(e,t,r){return t+(r?fa(e,t).length:1)},Ba=Pe,Wa=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,c=ya;return void 0!==o&&(o=da(o),c=ba),ma(i,c,(function(i,c){var l;switch(ga(c,0)){case"$":return"$";case"&":return e;case"`":return va(t,0,r);case"'":return va(t,a);case"<":l=o[va(c,1,-1)];break;default:var u=+c;if(0===u)return i;if(u>s){var f=pa(u/10);return 0===f?i:f<=s?void 0===n[f-1]?ga(c,1):n[f-1]+ga(c,1):i}l=n[u-1]}return void 0===l?"":l}))},Ua=function(e,t){var r=e.exec;if(xa(r)){var n=wa(r,e,t);return null!==n&&Sa(n),n}if("RegExp"===Aa(e))return wa(ka,e,t);throw Ta("RegExp#exec called on incompatible receiver")},Ha=ft("replace"),za=Math.max,Va=Math.min,qa=Oa([].concat),$a=Oa([].push),Ga=Oa("".indexOf),Xa=Oa("".slice),Ya="$0"==="a".replace(/./,"$0"),Ka=!!/./[Ha]&&""===/./[Ha]("a","$0");Na("replace",(function(e,t,r){var n=Ka?"$":"$0";return[function(e,r){var n=Da(this),o=La(e)?void 0:Ba(e,Ha);return o?_a(o,e,n,r):_a(t,ja(n),e,r)},function(e,o){var i=Ra(this),a=ja(e);if("string"==typeof o&&-1===Ga(o,n)&&-1===Ga(o,"$<")){var s=r(t,i,a,o);if(s.done)return s.value}var c=Pa(o);c||(o=ja(o));var l=i.global;if(l){var u=i.unicode;i.lastIndex=0}for(var f=[];;){var h=Ua(i,a);if(null===h)break;if($a(f,h),!l)break;""===ja(h[0])&&(i.lastIndex=Ma(a,Fa(i.lastIndex),u))}for(var d,p="",g=0,m=0;m<f.length;m++){for(var v=ja((h=f[m])[0]),b=za(Va(Ia(h.index),a.length),0),y=[],w=1;w<h.length;w++)$a(y,void 0===(d=h[w])?d:String(d));var S=h.groups;if(c){var x=qa([v],y,b,a);void 0!==S&&$a(x,S);var A=ja(Ea(o,void 0,x))}else A=Wa(v,a,b,y,S,o);b>=g&&(p+=Xa(a,g,b)+A,g=b+v.length)}return p+Xa(a,g)}]}),!!Ca((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Ya||Ka);var Ja=M,Za=Array.isArray||function(e){return"Array"==Ja(e)},Qa=I,es=v,ts=ee,rs=jo,ns=vr,os=function(){},is=[],as=se("Reflect","construct"),ss=/^\s*(?:class|function)\b/,cs=Qa(ss.exec),ls=!ss.exec(os),us=function(e){if(!ts(e))return!1;try{return as(os,is,e),!0}catch(e){return!1}},fs=function(e){if(!ts(e))return!1;switch(rs(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ls||!!cs(ss,ns(e))}catch(e){return!0}};fs.sham=!0;var hs=!as||es((function(){var e;return us(us.call)||!us(Object)||!us((function(){e=!0}))||e}))?fs:us,ds=St,ps=Dt,gs=N,ms=function(e,t,r){var n=ds(t);n in e?ps.f(e,n,gs(0,r)):e[n]=r},vs=v,bs=ge,ys=ft("species"),ws=function(e){return bs>=51||!vs((function(){var t=[];return(t.constructor={})[ys]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ss=I([].slice),xs=lo,As=Za,ks=hs,Ts=ne,Es=mn,_s=Sn,Os=K,Ns=ms,Cs=ft,Rs=Ss,Ps=ws("slice"),Ls=Cs("species"),Is=Array,Fs=Math.max;xs({target:"Array",proto:!0,forced:!Ps},{slice:function(e,t){var r,n,o,i=Os(this),a=_s(i),s=Es(e,a),c=Es(void 0===t?a:t,a);if(As(i)&&(r=i.constructor,(ks(r)&&(r===Is||As(r.prototype))||Ts(r)&&null===(r=r[Ls]))&&(r=void 0),r===Is||void 0===r))return Rs(i,s,c);for(n=new(void 0===r?Is:r)(Fs(c-s,0)),o=0;s<c;s++,o++)s in i&&Ns(n,o,i[s]);return n.length=o,n}});var js=Ne,Ds=y,Ms=Xi(Xi.bind),Bs=Za,Ws=hs,Us=ne,Hs=ft("species"),zs=Array,Vs=function(e){var t;return Bs(e)&&(t=e.constructor,(Ws(t)&&(t===zs||Bs(t.prototype))||Us(t)&&null===(t=t[Hs]))&&(t=void 0)),void 0===t?zs:t},qs=function(e,t){return new(Vs(e))(0===t?0:t)},$s=function(e,t){return js(e),void 0===t?e:Ds?Ms(e,t):function(){return e.apply(t,arguments)}},Gs=z,Xs=Xe,Ys=Sn,Ks=qs,Js=I([].push),Zs=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,l,u,f){for(var h,d,p=Xs(c),g=Gs(p),m=$s(l,u),v=Ys(g),b=0,y=f||Ks,w=t?y(c,v):r||a?y(c,0):void 0;v>b;b++)if((s||b in g)&&(d=m(h=g[b],b,p),e))if(t)w[b]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:Js(w,h)}else switch(e){case 4:return!1;case 7:Js(w,h)}return i?-1:n||o?o:w}},Qs={forEach:Zs(0),map:Zs(1),filter:Zs(2),some:Zs(3),every:Zs(4),find:Zs(5),findIndex:Zs(6),filterReject:Zs(7)},ec=Qs.map;lo({target:"Array",proto:!0,forced:!ws("map")},{map:function(e){return ec(this,e,arguments.length>1?arguments[1]:void 0)}});var tc=ft,rc=pi,nc=Dt.f,oc=tc("unscopables"),ic=Array.prototype;null==ic[oc]&&nc(ic,oc,{configurable:!0,value:rc(null)});var ac=lo,sc=Qs.find,cc=function(e){ic[oc][e]=!0},lc="find",uc=!0;lc in[]&&Array(1).find((function(){uc=!1})),ac({target:"Array",proto:!0,forced:uc},{find:function(e){return sc(this,e,arguments.length>1?arguments[1]:void 0)}}),cc(lc);var fc=jo,hc=No?{}.toString:function(){return"[object "+fc(this)+"]"};No||sn(Object.prototype,"toString",hc,{unsafe:!0});var dc=TypeError,pc=lo,gc=v,mc=Za,vc=ne,bc=Xe,yc=Sn,wc=function(e){if(e>9007199254740991)throw dc("Maximum allowed index exceeded");return e},Sc=ms,xc=qs,Ac=ws,kc=ge,Tc=ft("isConcatSpreadable"),Ec=kc>=51||!gc((function(){var e=[];return e[Tc]=!1,e.concat()[0]!==e})),_c=function(e){if(!vc(e))return!1;var t=e[Tc];return void 0!==t?!!t:mc(e)};pc({target:"Array",proto:!0,arity:1,forced:!Ec||!Ac("concat")},{concat:function(e){var t,r,n,o,i,a=bc(this),s=xc(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(_c(i=-1===t?a:arguments[t]))for(o=yc(i),wc(c+o),r=0;r<o;r++,c++)r in i&&Sc(s,c,i[r]);else wc(c+1),Sc(s,c++,i);return s.length=c,s}});var Oc=v,Nc=function(e,t){var r=[][e];return!!r&&Oc((function(){r.call(null,t||function(){return 1},1)}))},Cc=lo,Rc=z,Pc=K,Lc=Nc,Ic=I([].join);Cc({target:"Array",proto:!0,forced:Rc!=Object||!Lc("join",",")},{join:function(e){return Ic(Pc(this),void 0===e?",":e)}});var Fc=Tt("span").classList,jc=Fc&&Fc.constructor&&Fc.constructor.prototype,Dc=jc===Object.prototype?void 0:jc,Mc=Qs.forEach,Bc=Nc("forEach")?[].forEach:function(e){return Mc(this,e,arguments.length>1?arguments[1]:void 0)},Wc=g,Uc={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},Hc=Dc,zc=Bc,Vc=rr,qc=function(e){if(e&&e.forEach!==zc)try{Vc(e,"forEach",zc)}catch(t){e.forEach=zc}};for(var $c in Uc)Uc[$c]&&qc(Wc[$c]&&Wc[$c].prototype);qc(Hc);var Gc=e.fn.bootstrapTable.utils,Xc={json:"JSON",xml:"XML",png:"PNG",csv:"CSV",txt:"TXT",sql:"SQL",doc:"MS-Word",excel:"MS-Excel",xlsx:"MS-Excel (OpenXML)",powerpoint:"MS-Powerpoint",pdf:"PDF"};Object.assign(e.fn.bootstrapTable.defaults,{showExport:!1,exportDataType:"basic",exportTypes:["json","xml","csv","txt","sql","excel"],exportOptions:{},exportFooter:!1}),Object.assign(e.fn.bootstrapTable.columnDefaults,{forceExport:!1,forceHide:!1}),Object.assign(e.fn.bootstrapTable.defaults.icons,{export:{bootstrap3:"glyphicon-export icon-share",bootstrap5:"bi-download",materialize:"file_download","bootstrap-table":"icon-download"}[e.fn.bootstrapTable.theme]||"fa-download"}),Object.assign(e.fn.bootstrapTable.locales,{formatExport:function(){return"Export data"}}),Object.assign(e.fn.bootstrapTable.defaults,e.fn.bootstrapTable.locales),e.fn.bootstrapTable.methods.push("exportTable"),Object.assign(e.fn.bootstrapTable.defaults,{onExportSaved:function(e){return!1},onExportStarted:function(){return!1}}),Object.assign(e.fn.bootstrapTable.events,{"export-saved.bs.table":"onExportSaved","export-started.bs.table":"onExportStarted"}),e.BootstrapTable=function(a){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(p,a);var c,u,h,d=s(p);function p(){return t(this,p),d.apply(this,arguments)}return c=p,u=[{key:"initToolbar",value:function(){var t,r=this,n=this.options,i=n.exportTypes;if(this.showToolbar=this.showToolbar||n.showExport,this.options.showExport){if("string"==typeof i){var a=i.slice(1,-1).replace(/ /g,"").split(",");i=a.map((function(e){return e.slice(1,-1)}))}if("string"==typeof n.exportOptions&&(n.exportOptions=Gc.calculateObjectValue(null,n.exportOptions)),this.$export=this.$toolbar.find(">.columns div.export"),this.$export.length)return void this.updateExportButton();this.buttons=Object.assign(this.buttons,{export:{html:function(){if(1===i.length)return'\n <div class="export '.concat(r.constants.classes.buttonsDropdown,'"\n data-type="').concat(i[0],'">\n <button class="').concat(r.constants.buttonsClass,'"\n aria-label="').concat(n.formatExport(),'"\n type="button"\n title="').concat(n.formatExport(),'">\n ').concat(n.showButtonIcons?Gc.sprintf(r.constants.html.icon,n.iconsPrefix,n.icons.export):"","\n ").concat(n.showButtonText?n.formatExport():"","\n </button>\n </div>\n ");var t=[];t.push('\n <div class="export '.concat(r.constants.classes.buttonsDropdown,'">\n <button class="').concat(r.constants.buttonsClass,' dropdown-toggle"\n aria-label="').concat(n.formatExport(),'"\n ').concat(r.constants.dataToggle,'="dropdown"\n type="button"\n title="').concat(n.formatExport(),'">\n ').concat(n.showButtonIcons?Gc.sprintf(r.constants.html.icon,n.iconsPrefix,n.icons.export):"","\n ").concat(n.showButtonText?n.formatExport():"","\n ").concat(r.constants.html.dropdownCaret,"\n </button>\n ").concat(r.constants.html.toolbarDropdown[0],"\n "));var o,a=f(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(Xc.hasOwnProperty(s)){var c=e(Gc.sprintf(r.constants.html.pageDropdownItem,"",Xc[s]));c.attr("data-type",s),t.push(c.prop("outerHTML"))}}}catch(e){a.e(e)}finally{a.f()}return t.push(r.constants.html.toolbarDropdown[1],"</div>"),t.join("")}}})}for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];if((t=l(o(p.prototype),"initToolbar",this)).call.apply(t,[this].concat(c)),this.$export=this.$toolbar.find(">.columns div.export"),this.options.showExport){this.updateExportButton();var h=this.$export.find("[data-type]");1===i.length&&(h=this.$export),h.click((function(t){t.preventDefault(),r.exportTable({type:e(t.currentTarget).data("type")})})),this.handleToolbar()}}},{key:"handleToolbar",value:function(){this.$export&&l(o(p.prototype),"handleToolbar",this)&&l(o(p.prototype),"handleToolbar",this).call(this)}},{key:"exportTable",value:function(t){var r=this,o=this.options,i=this.header.stateField,a=o.cardView,s=function(n){r.trigger("export-started"),i&&r.hideColumn(i),a&&r.toggleView(),r.columns.forEach((function(e){e.forceHide&&r.hideColumn(e.field)}));var s=r.getData();if(o.detailView&&o.detailViewIcon){var c="left"===o.detailViewAlign?0:r.getVisibleFields().length+Gc.getDetailViewIndexOffset(r.options);o.exportOptions.ignoreColumn=[c].concat(o.exportOptions.ignoreColumn||[])}if(o.exportFooter&&o.height){var l=r.$tableFooter.find("tr").first(),u={},f=[];e.each(l.children(),(function(t,n){var o=e(n).children(".th-inner").first().html();u[r.columns[t].field]=" "===o?null:o,f.push(o)})),r.$body.append(r.$body.children().last()[0].outerHTML);var h=r.$body.children().last();e.each(h.children(),(function(t,r){e(r).html(f[t])}))}var d=r.getHiddenColumns();d.forEach((function(e){e.forceExport&&r.showColumn(e.field)})),"function"==typeof o.exportOptions.fileName&&(t.fileName=o.exportOptions.fileName()),r.$el.tableExport(Gc.extend({onAfterSaveToFile:function(){o.exportFooter&&r.load(s),i&&r.showColumn(i),a&&r.toggleView(),d.forEach((function(e){e.forceExport&&r.hideColumn(e.field)})),r.columns.forEach((function(e){e.forceHide&&r.showColumn(e.field)})),n&&n()}},o.exportOptions,t))};if("all"===o.exportDataType&&o.pagination){var c="server"===o.sidePagination?"post-body.bs.table":"page-change.bs.table",l=this.options.virtualScroll;this.$el.one(c,(function(){setTimeout((function(){s((function(){r.options.virtualScroll=l,r.togglePagination()}))}),0)})),this.options.virtualScroll=!1,this.togglePagination(),this.trigger("export-saved",this.getData())}else if("selected"===o.exportDataType){var u=this.getData(),f=this.getSelections(),h=o.pagination;if(!f.length)return;"server"===o.sidePagination&&(u=n({total:o.totalRows},this.options.dataField,u),f=n({total:f.length},this.options.dataField,f)),this.load(f),h&&this.togglePagination(),s((function(){h&&r.togglePagination(),r.load(u)})),this.trigger("export-saved",f)}else s(),this.trigger("export-saved",this.getData(!0))}},{key:"updateSelected",value:function(){l(o(p.prototype),"updateSelected",this).call(this),this.updateExportButton()}},{key:"updateExportButton",value:function(){"selected"===this.options.exportDataType&&this.$export.find("> button").prop("disabled",!this.getSelections().length)}}],u&&r(c.prototype,u),h&&r(c,h),Object.defineProperty(c,"prototype",{writable:!1}),p}(e.BootstrapTable)})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jQuery)}(this,(function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),n)}var o,i}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=n(e);if(t){var a=n(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return i(this,r)}}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=s(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(this,arguments)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h=function(e){return e&&e.Math==Math&&e},d=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof f&&f)||function(){return this}()||Function("return this")(),p={},g=function(e){try{return!!e()}catch(e){return!0}},m=!g((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=!g((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),b=v,y=Function.prototype.call,w=b?y.bind(y):function(){return y.apply(y,arguments)},S={},x={}.propertyIsEnumerable,A=Object.getOwnPropertyDescriptor,k=A&&!x.call({1:2},1);S.f=k?function(e){var t=A(this,e);return!!t&&t.enumerable}:x;var T,E,_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},O=v,N=Function.prototype,C=N.call,R=O&&N.bind.bind(C,C),P=O?R:function(e){return function(){return C.apply(e,arguments)}},L=P,I=L({}.toString),F=L("".slice),j=function(e){return F(I(e),8,-1)},D=g,M=j,B=Object,W=P("".split),U=D((function(){return!B("z").propertyIsEnumerable(0)}))?function(e){return"String"==M(e)?W(e,""):B(e)}:B,H=function(e){return null==e},z=H,V=TypeError,q=function(e){if(z(e))throw V("Can't call method on "+e);return e},$=U,G=q,X=function(e){return $(G(e))},Y="object"==typeof document&&document.all,K={all:Y,IS_HTMLDDA:void 0===Y&&void 0!==Y},J=K.all,Z=K.IS_HTMLDDA?function(e){return"function"==typeof e||e===J}:function(e){return"function"==typeof e},Q=Z,ee=K.all,te=K.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Q(e)||e===ee}:function(e){return"object"==typeof e?null!==e:Q(e)},re=d,ne=Z,oe=function(e){return ne(e)?e:void 0},ie=function(e,t){return arguments.length<2?oe(re[e]):re[e]&&re[e][t]},ae=P({}.isPrototypeOf),se=d,ce="undefined"!=typeof navigator&&String(navigator.userAgent)||"",le=se.process,ue=se.Deno,fe=le&&le.versions||ue&&ue.version,he=fe&&fe.v8;he&&(E=(T=he.split("."))[0]>0&&T[0]<4?1:+(T[0]+T[1])),!E&&ce&&(!(T=ce.match(/Edge\/(\d+)/))||T[1]>=74)&&(T=ce.match(/Chrome\/(\d+)/))&&(E=+T[1]);var de=E,pe=de,ge=g,me=!!Object.getOwnPropertySymbols&&!ge((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pe&&pe<41})),ve=me&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,be=ie,ye=Z,we=ae,Se=Object,xe=ve?function(e){return"symbol"==typeof e}:function(e){var t=be("Symbol");return ye(t)&&we(t.prototype,Se(e))},Ae=String,ke=Z,Te=function(e){try{return Ae(e)}catch(e){return"Object"}},Ee=TypeError,_e=function(e){if(ke(e))return e;throw Ee(Te(e)+" is not a function")},Oe=_e,Ne=H,Ce=function(e,t){var r=e[t];return Ne(r)?void 0:Oe(r)},Re=w,Pe=Z,Le=te,Ie=TypeError,Fe={},je={get exports(){return Fe},set exports(e){Fe=e}},De=d,Me=Object.defineProperty,Be=function(e,t){try{Me(De,e,{value:t,configurable:!0,writable:!0})}catch(r){De[e]=t}return t},We=Be,Ue="__core-js_shared__",He=d[Ue]||We(Ue,{}),ze=He;(je.exports=function(e,t){return ze[e]||(ze[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ve=q,qe=Object,$e=function(e){return qe(Ve(e))},Ge=$e,Xe=P({}.hasOwnProperty),Ye=Object.hasOwn||function(e,t){return Xe(Ge(e),t)},Ke=P,Je=0,Ze=Math.random(),Qe=Ke(1..toString),et=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Qe(++Je+Ze,36)},tt=Fe,rt=Ye,nt=et,ot=me,it=ve,at=d.Symbol,st=tt("wks"),ct=it?at.for||at:at&&at.withoutSetter||nt,lt=function(e){return rt(st,e)||(st[e]=ot&&rt(at,e)?at[e]:ct("Symbol."+e)),st[e]},ut=w,ft=te,ht=xe,dt=Ce,pt=function(e,t){var r,n;if("string"===t&&Pe(r=e.toString)&&!Le(n=Re(r,e)))return n;if(Pe(r=e.valueOf)&&!Le(n=Re(r,e)))return n;if("string"!==t&&Pe(r=e.toString)&&!Le(n=Re(r,e)))return n;throw Ie("Can't convert object to primitive value")},gt=TypeError,mt=lt("toPrimitive"),vt=function(e,t){if(!ft(e)||ht(e))return e;var r,n=dt(e,mt);if(n){if(void 0===t&&(t="default"),r=ut(n,e,t),!ft(r)||ht(r))return r;throw gt("Can't convert object to primitive value")}return void 0===t&&(t="number"),pt(e,t)},bt=xe,yt=function(e){var t=vt(e,"string");return bt(t)?t:t+""},wt=te,St=d.document,xt=wt(St)&&wt(St.createElement),At=function(e){return xt?St.createElement(e):{}},kt=At,Tt=!m&&!g((function(){return 7!=Object.defineProperty(kt("div"),"a",{get:function(){return 7}}).a})),Et=m,_t=w,Ot=S,Nt=_,Ct=X,Rt=yt,Pt=Ye,Lt=Tt,It=Object.getOwnPropertyDescriptor;p.f=Et?It:function(e,t){if(e=Ct(e),t=Rt(t),Lt)try{return It(e,t)}catch(e){}if(Pt(e,t))return Nt(!_t(Ot.f,e,t),e[t])};var Ft={},jt=m&&g((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Dt=te,Mt=String,Bt=TypeError,Wt=function(e){if(Dt(e))return e;throw Bt(Mt(e)+" is not an object")},Ut=m,Ht=Tt,zt=jt,Vt=Wt,qt=yt,$t=TypeError,Gt=Object.defineProperty,Xt=Object.getOwnPropertyDescriptor,Yt="enumerable",Kt="configurable",Jt="writable";Ft.f=Ut?zt?function(e,t,r){if(Vt(e),t=qt(t),Vt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Jt in r&&!r.writable){var n=Xt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:Kt in r?r.configurable:n.configurable,enumerable:Yt in r?r.enumerable:n.enumerable,writable:!1})}return Gt(e,t,r)}:Gt:function(e,t,r){if(Vt(e),t=qt(t),Vt(r),Ht)try{return Gt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $t("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Zt=Ft,Qt=_,er=m?function(e,t,r){return Zt.f(e,t,Qt(1,r))}:function(e,t,r){return e[t]=r,e},tr={},rr={get exports(){return tr},set exports(e){tr=e}},nr=m,or=Ye,ir=Function.prototype,ar=nr&&Object.getOwnPropertyDescriptor,sr=or(ir,"name"),cr={EXISTS:sr,PROPER:sr&&"something"===function(){}.name,CONFIGURABLE:sr&&(!nr||nr&&ar(ir,"name").configurable)},lr=Z,ur=He,fr=P(Function.toString);lr(ur.inspectSource)||(ur.inspectSource=function(e){return fr(e)});var hr,dr,pr,gr=ur.inspectSource,mr=Z,vr=d.WeakMap,br=mr(vr)&&/native code/.test(String(vr)),yr=et,wr=Fe("keys"),Sr=function(e){return wr[e]||(wr[e]=yr(e))},xr={},Ar=br,kr=d,Tr=te,Er=er,_r=Ye,Or=He,Nr=Sr,Cr=xr,Rr="Object already initialized",Pr=kr.TypeError,Lr=kr.WeakMap;if(Ar||Or.state){var Ir=Or.state||(Or.state=new Lr);Ir.get=Ir.get,Ir.has=Ir.has,Ir.set=Ir.set,hr=function(e,t){if(Ir.has(e))throw Pr(Rr);return t.facade=e,Ir.set(e,t),t},dr=function(e){return Ir.get(e)||{}},pr=function(e){return Ir.has(e)}}else{var Fr=Nr("state");Cr[Fr]=!0,hr=function(e,t){if(_r(e,Fr))throw Pr(Rr);return t.facade=e,Er(e,Fr,t),t},dr=function(e){return _r(e,Fr)?e[Fr]:{}},pr=function(e){return _r(e,Fr)}}var jr={set:hr,get:dr,has:pr,enforce:function(e){return pr(e)?dr(e):hr(e,{})},getterFor:function(e){return function(t){var r;if(!Tr(t)||(r=dr(t)).type!==e)throw Pr("Incompatible receiver, "+e+" required");return r}}},Dr=P,Mr=g,Br=Z,Wr=Ye,Ur=m,Hr=cr.CONFIGURABLE,zr=gr,Vr=jr.enforce,qr=jr.get,$r=String,Gr=Object.defineProperty,Xr=Dr("".slice),Yr=Dr("".replace),Kr=Dr([].join),Jr=Ur&&!Mr((function(){return 8!==Gr((function(){}),"length",{value:8}).length})),Zr=String(String).split("String"),Qr=rr.exports=function(e,t,r){"Symbol("===Xr($r(t),0,7)&&(t="["+Yr($r(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Wr(e,"name")||Hr&&e.name!==t)&&(Ur?Gr(e,"name",{value:t,configurable:!0}):e.name=t),Jr&&r&&Wr(r,"arity")&&e.length!==r.arity&&Gr(e,"length",{value:r.arity});try{r&&Wr(r,"constructor")&&r.constructor?Ur&&Gr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Vr(e);return Wr(n,"source")||(n.source=Kr(Zr,"string"==typeof t?t:"")),e};Function.prototype.toString=Qr((function(){return Br(this)&&qr(this).source||zr(this)}),"toString");var en=Z,tn=Ft,rn=tr,nn=Be,on=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(en(r)&&rn(r,i,n),n.global)o?e[t]=r:nn(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:tn.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},an={},sn=Math.ceil,cn=Math.floor,ln=Math.trunc||function(e){var t=+e;return(t>0?cn:sn)(t)},un=function(e){var t=+e;return t!=t||0===t?0:ln(t)},fn=un,hn=Math.max,dn=Math.min,pn=un,gn=Math.min,mn=function(e){return e>0?gn(pn(e),9007199254740991):0},vn=mn,bn=function(e){return vn(e.length)},yn=X,wn=function(e,t){var r=fn(e);return r<0?hn(r+t,0):dn(r,t)},Sn=bn,xn=function(e){return function(t,r,n){var o,i=yn(t),a=Sn(i),s=wn(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},An={includes:xn(!0),indexOf:xn(!1)},kn=Ye,Tn=X,En=An.indexOf,_n=xr,On=P([].push),Nn=function(e,t){var r,n=Tn(e),o=0,i=[];for(r in n)!kn(_n,r)&&kn(n,r)&&On(i,r);for(;t.length>o;)kn(n,r=t[o++])&&(~En(i,r)||On(i,r));return i},Cn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Rn=Nn,Pn=Cn.concat("length","prototype");an.f=Object.getOwnPropertyNames||function(e){return Rn(e,Pn)};var Ln={};Ln.f=Object.getOwnPropertySymbols;var In=ie,Fn=an,jn=Ln,Dn=Wt,Mn=P([].concat),Bn=In("Reflect","ownKeys")||function(e){var t=Fn.f(Dn(e)),r=jn.f;return r?Mn(t,r(e)):t},Wn=Ye,Un=Bn,Hn=p,zn=Ft,Vn=g,qn=Z,$n=/#|\.prototype\./,Gn=function(e,t){var r=Yn[Xn(e)];return r==Jn||r!=Kn&&(qn(t)?Vn(t):!!t)},Xn=Gn.normalize=function(e){return String(e).replace($n,".").toLowerCase()},Yn=Gn.data={},Kn=Gn.NATIVE="N",Jn=Gn.POLYFILL="P",Zn=Gn,Qn=d,eo=p.f,to=er,ro=on,no=Be,oo=function(e,t,r){for(var n=Un(t),o=zn.f,i=Hn.f,a=0;a<n.length;a++){var s=n[a];Wn(e,s)||r&&Wn(r,s)||o(e,s,i(t,s))}},io=Zn,ao=function(e,t){var r,n,o,i,a,s=e.target,c=e.global,l=e.stat;if(r=c?Qn:l?Qn[s]||no(s,{}):(Qn[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=eo(r,n))&&a.value:r[n],!io(c?n:s+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;oo(i,o)}(e.sham||o&&o.sham)&&to(i,"sham",!0),ro(r,n,i,e)}},so={},co=Nn,lo=Cn,uo=Object.keys||function(e){return co(e,lo)},fo=m,ho=jt,po=Ft,go=Wt,mo=X,vo=uo;so.f=fo&&!ho?Object.defineProperties:function(e,t){go(e);for(var r,n=mo(t),o=vo(t),i=o.length,a=0;i>a;)po.f(e,r=o[a++],n[r]);return e};var bo,yo=ie("document","documentElement"),wo=Wt,So=so,xo=Cn,Ao=xr,ko=yo,To=At,Eo=Sr("IE_PROTO"),_o=function(){},Oo=function(e){return"<script>"+e+"</"+"script>"},No=function(e){e.write(Oo("")),e.close();var t=e.parentWindow.Object;return e=null,t},Co=function(){try{bo=new ActiveXObject("htmlfile")}catch(e){}var e,t;Co="undefined"!=typeof document?document.domain&&bo?No(bo):((t=To("iframe")).style.display="none",ko.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Oo("document.F=Object")),e.close(),e.F):No(bo);for(var r=xo.length;r--;)delete Co.prototype[xo[r]];return Co()};Ao[Eo]=!0;var Ro=Object.create||function(e,t){var r;return null!==e?(_o.prototype=wo(e),r=new _o,_o.prototype=null,r[Eo]=e):r=Co(),void 0===t?r:So.f(r,t)},Po=lt,Lo=Ro,Io=Ft.f,Fo=Po("unscopables"),jo=Array.prototype;null==jo[Fo]&&Io(jo,Fo,{configurable:!0,value:Lo(null)});var Do=function(e){jo[Fo][e]=!0},Mo=An.includes,Bo=Do;ao({target:"Array",proto:!0,forced:g((function(){return!Array(1).includes()}))},{includes:function(e){return Mo(this,e,arguments.length>1?arguments[1]:void 0)}}),Bo("includes");var Wo=te,Uo=j,Ho=lt("match"),zo=function(e){var t;return Wo(e)&&(void 0!==(t=e[Ho])?!!t:"RegExp"==Uo(e))},Vo=TypeError,qo={};qo[lt("toStringTag")]="z";var $o="[object z]"===String(qo),Go=$o,Xo=Z,Yo=j,Ko=lt("toStringTag"),Jo=Object,Zo="Arguments"==Yo(function(){return arguments}()),Qo=Go?Yo:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Jo(e),Ko))?r:Zo?Yo(t):"Object"==(n=Yo(t))&&Xo(t.callee)?"Arguments":n},ei=Qo,ti=String,ri=function(e){if("Symbol"===ei(e))throw TypeError("Cannot convert a Symbol value to a string");return ti(e)},ni=lt("match"),oi=ao,ii=function(e){if(zo(e))throw Vo("The method doesn't accept regular expressions");return e},ai=q,si=ri,ci=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[ni]=!1,"/./"[e](t)}catch(e){}}return!1},li=P("".indexOf);oi({target:"String",proto:!0,forced:!ci("includes")},{includes:function(e){return!!~li(si(ai(this)),si(ii(e)),arguments.length>1?arguments[1]:void 0)}});var ui=j,fi=Array.isArray||function(e){return"Array"==ui(e)},hi=TypeError,di=yt,pi=Ft,gi=_,mi=P,vi=g,bi=Z,yi=Qo,wi=gr,Si=function(){},xi=[],Ai=ie("Reflect","construct"),ki=/^\s*(?:class|function)\b/,Ti=mi(ki.exec),Ei=!ki.exec(Si),_i=function(e){if(!bi(e))return!1;try{return Ai(Si,xi,e),!0}catch(e){return!1}},Oi=function(e){if(!bi(e))return!1;switch(yi(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ei||!!Ti(ki,wi(e))}catch(e){return!0}};Oi.sham=!0;var Ni=!Ai||vi((function(){var e;return _i(_i.call)||!_i(Object)||!_i((function(){e=!0}))||e}))?Oi:_i,Ci=fi,Ri=Ni,Pi=te,Li=lt("species"),Ii=Array,Fi=function(e){var t;return Ci(e)&&(t=e.constructor,(Ri(t)&&(t===Ii||Ci(t.prototype))||Pi(t)&&null===(t=t[Li]))&&(t=void 0)),void 0===t?Ii:t},ji=function(e,t){return new(Fi(e))(0===t?0:t)},Di=g,Mi=de,Bi=lt("species"),Wi=function(e){return Mi>=51||!Di((function(){var t=[];return(t.constructor={})[Bi]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ui=ao,Hi=g,zi=fi,Vi=te,qi=$e,$i=bn,Gi=function(e){if(e>9007199254740991)throw hi("Maximum allowed index exceeded");return e},Xi=function(e,t,r){var n=di(t);n in e?pi.f(e,n,gi(0,r)):e[n]=r},Yi=ji,Ki=Wi,Ji=de,Zi=lt("isConcatSpreadable"),Qi=Ji>=51||!Hi((function(){var e=[];return e[Zi]=!1,e.concat()[0]!==e})),ea=function(e){if(!Vi(e))return!1;var t=e[Zi];return void 0!==t?!!t:zi(e)};Ui({target:"Array",proto:!0,arity:1,forced:!Qi||!Ki("concat")},{concat:function(e){var t,r,n,o,i,a=qi(this),s=Yi(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(ea(i=-1===t?a:arguments[t]))for(o=$i(i),Gi(c+o),r=0;r<o;r++,c++)r in i&&Xi(s,c,i[r]);else Gi(c+1),Xi(s,c++,i);return s.length=c,s}});var ta,ra,na=Wt,oa=function(){var e=na(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},ia=g,aa=d.RegExp,sa=ia((function(){var e=aa("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ca=sa||ia((function(){return!aa("a","y").sticky})),la={BROKEN_CARET:sa||ia((function(){var e=aa("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:ca,UNSUPPORTED_Y:sa},ua=g,fa=d.RegExp,ha=ua((function(){var e=fa(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),da=g,pa=d.RegExp,ga=da((function(){var e=pa("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),ma=w,va=P,ba=ri,ya=oa,wa=la,Sa=Ro,xa=jr.get,Aa=ha,ka=ga,Ta=Fe("native-string-replace",String.prototype.replace),Ea=RegExp.prototype.exec,_a=Ea,Oa=va("".charAt),Na=va("".indexOf),Ca=va("".replace),Ra=va("".slice),Pa=(ra=/b*/g,ma(Ea,ta=/a/,"a"),ma(Ea,ra,"a"),0!==ta.lastIndex||0!==ra.lastIndex),La=wa.BROKEN_CARET,Ia=void 0!==/()??/.exec("")[1];(Pa||Ia||La||Aa||ka)&&(_a=function(e){var t,r,n,o,i,a,s,c=this,l=xa(c),u=ba(e),f=l.raw;if(f)return f.lastIndex=c.lastIndex,t=ma(_a,f,u),c.lastIndex=f.lastIndex,t;var h=l.groups,d=La&&c.sticky,p=ma(ya,c),g=c.source,m=0,v=u;if(d&&(p=Ca(p,"y",""),-1===Na(p,"g")&&(p+="g"),v=Ra(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Oa(u,c.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),r=new RegExp("^(?:"+g+")",p)),Ia&&(r=new RegExp("^"+g+"$(?!\\s)",p)),Pa&&(n=c.lastIndex),o=ma(Ea,d?r:c,v),d?o?(o.input=Ra(o.input,m),o[0]=Ra(o[0],m),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Pa&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),Ia&&o&&o.length>1&&ma(Ta,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&h)for(o.groups=a=Sa(null),i=0;i<h.length;i++)a[(s=h[i])[0]]=o[s[1]];return o});var Fa=_a;ao({target:"RegExp",proto:!0,forced:/./.exec!==Fa},{exec:Fa});var ja=v,Da=Function.prototype,Ma=Da.apply,Ba=Da.call,Wa="object"==typeof Reflect&&Reflect.apply||(ja?Ba.bind(Ma):function(){return Ba.apply(Ma,arguments)}),Ua=j,Ha=P,za=function(e){if("Function"===Ua(e))return Ha(e)},Va=za,qa=on,$a=Fa,Ga=g,Xa=lt,Ya=er,Ka=Xa("species"),Ja=RegExp.prototype,Za=function(e,t,r,n){var o=Xa(e),i=!Ga((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Ga((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Ka]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var s=Va(/./[o]),c=t(o,""[e],(function(e,t,r,n,o){var a=Va(e),c=t.exec;return c===$a||c===Ja.exec?i&&!o?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));qa(String.prototype,e,c[0]),qa(Ja,o,c[1])}n&&Ya(Ja[o],"sham",!0)},Qa=P,es=un,ts=ri,rs=q,ns=Qa("".charAt),os=Qa("".charCodeAt),is=Qa("".slice),as=function(e){return function(t,r){var n,o,i=ts(rs(t)),a=es(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=os(i,a))<55296||n>56319||a+1===s||(o=os(i,a+1))<56320||o>57343?e?ns(i,a):n:e?is(i,a,a+2):o-56320+(n-55296<<10)+65536}},ss={codeAt:as(!1),charAt:as(!0)}.charAt,cs=P,ls=$e,us=Math.floor,fs=cs("".charAt),hs=cs("".replace),ds=cs("".slice),ps=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,gs=/\$([$&'`]|\d{1,2})/g,ms=w,vs=Wt,bs=Z,ys=j,ws=Fa,Ss=TypeError,xs=function(e,t){var r=e.exec;if(bs(r)){var n=ms(r,e,t);return null!==n&&vs(n),n}if("RegExp"===ys(e))return ms(ws,e,t);throw Ss("RegExp#exec called on incompatible receiver")},As=Wa,ks=w,Ts=P,Es=Za,_s=g,Os=Wt,Ns=Z,Cs=H,Rs=un,Ps=mn,Ls=ri,Is=q,Fs=function(e,t,r){return t+(r?ss(e,t).length:1)},js=Ce,Ds=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,c=gs;return void 0!==o&&(o=ls(o),c=ps),hs(i,c,(function(i,c){var l;switch(fs(c,0)){case"$":return"$";case"&":return e;case"`":return ds(t,0,r);case"'":return ds(t,a);case"<":l=o[ds(c,1,-1)];break;default:var u=+c;if(0===u)return i;if(u>s){var f=us(u/10);return 0===f?i:f<=s?void 0===n[f-1]?fs(c,1):n[f-1]+fs(c,1):i}l=n[u-1]}return void 0===l?"":l}))},Ms=xs,Bs=lt("replace"),Ws=Math.max,Us=Math.min,Hs=Ts([].concat),zs=Ts([].push),Vs=Ts("".indexOf),qs=Ts("".slice),$s="$0"==="a".replace(/./,"$0"),Gs=!!/./[Bs]&&""===/./[Bs]("a","$0");Es("replace",(function(e,t,r){var n=Gs?"$":"$0";return[function(e,r){var n=Is(this),o=Cs(e)?void 0:js(e,Bs);return o?ks(o,e,n,r):ks(t,Ls(n),e,r)},function(e,o){var i=Os(this),a=Ls(e);if("string"==typeof o&&-1===Vs(o,n)&&-1===Vs(o,"$<")){var s=r(t,i,a,o);if(s.done)return s.value}var c=Ns(o);c||(o=Ls(o));var l=i.global;if(l){var u=i.unicode;i.lastIndex=0}for(var f=[];;){var h=Ms(i,a);if(null===h)break;if(zs(f,h),!l)break;""===Ls(h[0])&&(i.lastIndex=Fs(a,Ps(i.lastIndex),u))}for(var d,p="",g=0,m=0;m<f.length;m++){for(var v=Ls((h=f[m])[0]),b=Ws(Us(Rs(h.index),a.length),0),y=[],w=1;w<h.length;w++)zs(y,void 0===(d=h[w])?d:String(d));var S=h.groups;if(c){var x=Hs([v],y,b,a);void 0!==S&&zs(x,S);var A=Ls(As(o,void 0,x))}else A=Ds(v,a,b,y,S,o);b>=g&&(p+=qs(a,g,b)+A,g=b+v.length)}return p+qs(a,g)}]}),!!_s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!$s||Gs);var Xs=Qo,Ys=$o?{}.toString:function(){return"[object "+Xs(this)+"]"};$o||on(Object.prototype,"toString",Ys,{unsafe:!0});var Ks=At("span").classList,Js=Ks&&Ks.constructor&&Ks.constructor.prototype,Zs=Js===Object.prototype?void 0:Js,Qs=_e,ec=v,tc=za(za.bind),rc=function(e,t){return Qs(e),void 0===t?e:ec?tc(e,t):function(){return e.apply(t,arguments)}},nc=U,oc=$e,ic=bn,ac=ji,sc=P([].push),cc=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,l,u,f){for(var h,d,p=oc(c),g=nc(p),m=rc(l,u),v=ic(g),b=0,y=f||ac,w=t?y(c,v):r||a?y(c,0):void 0;v>b;b++)if((s||b in g)&&(d=m(h=g[b],b,p),e))if(t)w[b]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:sc(w,h)}else switch(e){case 4:return!1;case 7:sc(w,h)}return i?-1:n||o?o:w}},lc={forEach:cc(0),map:cc(1),filter:cc(2),some:cc(3),every:cc(4),find:cc(5),findIndex:cc(6),filterReject:cc(7)},uc=g,fc=function(e,t){var r=[][e];return!!r&&uc((function(){r.call(null,t||function(){return 1},1)}))},hc=lc.forEach,dc=fc("forEach")?[].forEach:function(e){return hc(this,e,arguments.length>1?arguments[1]:void 0)},pc=d,gc={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},mc=Zs,vc=dc,bc=er,yc=function(e){if(e&&e.forEach!==vc)try{bc(e,"forEach",vc)}catch(t){e.forEach=vc}};for(var wc in gc)gc[wc]&&yc(pc[wc]&&pc[wc].prototype);yc(mc);var Sc=w,xc=Ye,Ac=ae,kc=oa,Tc=RegExp.prototype,Ec=cr.PROPER,_c=on,Oc=Wt,Nc=ri,Cc=g,Rc=function(e){var t=e.flags;return void 0!==t||"flags"in Tc||xc(e,"flags")||!Ac(Tc,e)?t:Sc(kc,e)},Pc="toString",Lc=RegExp.prototype.toString,Ic=Cc((function(){return"/a/b"!=Lc.call({source:"a",flags:"b"})})),Fc=Ec&&Lc.name!=Pc;(Ic||Fc)&&_c(RegExp.prototype,Pc,(function(){var e=Oc(this);return"/"+Nc(e.source)+"/"+Nc(Rc(e))}),{unsafe:!0});var jc=ao,Dc=lc.find,Mc=Do,Bc="find",Wc=!0;Bc in[]&&Array(1).find((function(){Wc=!1})),jc({target:"Array",proto:!0,forced:Wc},{find:function(e){return Dc(this,e,arguments.length>1?arguments[1]:void 0)}}),Mc(Bc);var Uc=lc.filter;ao({target:"Array",proto:!0,forced:!Wi("filter")},{filter:function(e){return Uc(this,e,arguments.length>1?arguments[1]:void 0)}});var Hc=m,zc=P,Vc=w,qc=g,$c=uo,Gc=Ln,Xc=S,Yc=$e,Kc=U,Jc=Object.assign,Zc=Object.defineProperty,Qc=zc([].concat),el=!Jc||qc((function(){if(Hc&&1!==Jc({b:1},Jc(Zc({},"a",{enumerable:!0,get:function(){Zc(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Jc({},e)[r]||$c(Jc({},t)).join("")!=n}))?function(e,t){for(var r=Yc(e),n=arguments.length,o=1,i=Gc.f,a=Xc.f;n>o;)for(var s,c=Kc(arguments[o++]),l=i?Qc($c(c),i(c)):$c(c),u=l.length,f=0;u>f;)s=l[f++],Hc&&!Vc(a,c,s)||(r[s]=c[s]);return r}:Jc,tl=el;ao({target:"Object",stat:!0,arity:2,forced:Object.assign!==tl},{assign:tl});var rl=lc.map;ao({target:"Array",proto:!0,forced:!Wi("map")},{map:function(e){return rl(this,e,arguments.length>1?arguments[1]:void 0)}});var nl=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},ol=w,il=Wt,al=H,sl=q,cl=nl,ll=ri,ul=Ce,fl=xs;Za("search",(function(e,t,r){return[function(t){var r=sl(this),n=al(t)?void 0:ul(t,e);return n?ol(n,t,r):new RegExp(t)[e](ll(r))},function(e){var n=il(this),o=ll(e),i=r(t,n,o);if(i.done)return i.value;var a=n.lastIndex;cl(a,0)||(n.lastIndex=0);var s=fl(n,o);return cl(n.lastIndex,a)||(n.lastIndex=a),null===s?-1:s.index}]}));var hl=ao,dl=U,pl=X,gl=fc,ml=P([].join);hl({target:"Array",proto:!0,forced:dl!=Object||!gl("join",",")},{join:function(e){return ml(pl(this),void 0===e?",":e)}});var vl=e.fn.bootstrapTable.utils,bl={cookieIds:{sortOrder:"bs.table.sortOrder",sortName:"bs.table.sortName",sortPriority:"bs.table.sortPriority",pageNumber:"bs.table.pageNumber",pageList:"bs.table.pageList",columns:"bs.table.columns",hiddenColumns:"bs.table.hiddenColumns",cardView:"bs.table.cardView",searchText:"bs.table.searchText",reorderColumns:"bs.table.reorderColumns",filterControl:"bs.table.filterControl",filterBy:"bs.table.filterBy"},getCurrentHeader:function(e){return e.options.height?e.$tableHeader:e.$header},getCurrentSearchControls:function(e){return e.options.height?"table select, table input":"select, input"},isCookieSupportedByBrowser:function(){return navigator.cookieEnabled},isCookieEnabled:function(e,t){return e.options.cookiesEnabled.includes(t)},setCookie:function(e,t,r){if(e.options.cookie&&bl.isCookieEnabled(e,t))return e._storage.setItem("".concat(e.options.cookieIdTable,".").concat(t),r)},getCookie:function(e,t){return t&&bl.isCookieEnabled(e,t)?e._storage.getItem("".concat(e.options.cookieIdTable,".").concat(t)):null},deleteCookie:function(e,t){return e._storage.removeItem("".concat(e.options.cookieIdTable,".").concat(t))},calculateExpiration:function(e){var t=e.replace(/[0-9]*/,"");switch(e=e.replace(/[A-Za-z]{1,2}/,""),t.toLowerCase()){case"s":e=+e;break;case"mi":e*=60;break;case"h":e=60*e*60;break;case"d":e=24*e*60*60;break;case"m":e=30*e*24*60*60;break;case"y":e=365*e*24*60*60;break;default:e=void 0}if(!e)return"";var r=new Date;return r.setTime(r.getTime()+1e3*e),r.toGMTString()},initCookieFilters:function(t){setTimeout((function(){var r=JSON.parse(bl.getCookie(t,bl.cookieIds.filterControl));if(!t._filterControlValuesLoaded&&r){var n={},o=bl.getCurrentHeader(t),i=bl.getCurrentSearchControls(t),a=o;t.options.filterControlContainer&&(a=e("".concat(t.options.filterControlContainer))),a.find(i).each((function(){var o=e(this).closest("[data-field]").data("field");!function(e,r){r.forEach((function(r){var o=e.value.toString(),i=r.text;if(""!==i&&("radio"!==e.type||o===i))if("INPUT"===e.tagName&&"radio"===e.type&&o===i)e.checked=!0,n[r.field]=i;else if("INPUT"===e.tagName)e.value=i,n[r.field]=i;else if("SELECT"===e.tagName&&t.options.filterControlContainer)e.value=i,n[r.field]=i;else if(""!==i&&"SELECT"===e.tagName){n[r.field]=i;var a,s=u(e);try{for(s.s();!(a=s.n()).done;){var c=a.value;if(c.value===i)return void(c.selected=!0)}}catch(e){s.e(e)}finally{s.f()}var l=document.createElement("option");l.value=i,l.text=i,e.add(l,e[1]),e.selectedIndex=1}}))}(this,r.filter((function(e){return e.field===o})))})),t.initColumnSearch(n),t._filterControlValuesLoaded=!0,t.initServer()}}),250)}};Object.assign(e.fn.bootstrapTable.defaults,{cookie:!1,cookieExpire:"2h",cookiePath:null,cookieDomain:null,cookieSecure:null,cookieSameSite:"Lax",cookieIdTable:"",cookiesEnabled:["bs.table.sortOrder","bs.table.sortName","bs.table.sortPriority","bs.table.pageNumber","bs.table.pageList","bs.table.hiddenColumns","bs.table.columns","bs.table.searchText","bs.table.filterControl","bs.table.filterBy","bs.table.reorderColumns","bs.table.cardView"],cookieStorage:"cookieStorage",cookieCustomStorageGet:null,cookieCustomStorageSet:null,cookieCustomStorageDelete:null,_filterControls:[],_filterControlValuesLoaded:!1,_storage:{setItem:void 0,getItem:void 0,removeItem:void 0}}),e.fn.bootstrapTable.methods.push("getCookies"),e.fn.bootstrapTable.methods.push("deleteCookie"),Object.assign(e.fn.bootstrapTable.utils,{setCookie:bl.setCookie,getCookie:bl.getCookie}),e.BootstrapTable=function(i){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(d,i);var s,l,f,h=a(d);function d(){return t(this,d),h.apply(this,arguments)}return s=d,l=[{key:"init",value:function(){if(this.options.cookie){if("cookieStorage"===this.options.cookieStorage&&!bl.isCookieSupportedByBrowser())throw new Error("Cookies are not enabled in this browser.");this.configureStorage();var e=bl.getCookie(this,bl.cookieIds.filterBy);if("boolean"==typeof e&&!e)throw new Error("The cookie value of filterBy must be a json!");var t={};try{t=JSON.parse(e)}catch(e){throw new Error("Could not parse the json of the filterBy cookie!")}if(this.filterColumns=t||{},this._filterControls=[],this._filterControlValuesLoaded=!1,this.options.cookiesEnabled="string"==typeof this.options.cookiesEnabled?this.options.cookiesEnabled.replace("[","").replace("]","").replace(/'/g,"").replace(/ /g,"").split(","):this.options.cookiesEnabled,this.options.filterControl){var r=this;this.$el.on("column-search.bs.table",(function(e,t,n){for(var o=!0,i=0;i<r._filterControls.length;i++)if(r._filterControls[i].field===t){r._filterControls[i].text=n,o=!1;break}o&&r._filterControls.push({field:t,text:n}),bl.setCookie(r,bl.cookieIds.filterControl,JSON.stringify(r._filterControls))})).on("created-controls.bs.table",bl.initCookieFilters(r))}}c(n(d.prototype),"init",this).call(this)}},{key:"initServer",value:function(){var e;if(this.options.cookie&&this.options.filterControl&&!this._filterControlValuesLoaded){var t=JSON.parse(bl.getCookie(this,bl.cookieIds.filterControl));if(t)return}for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];(e=c(n(d.prototype),"initServer",this)).call.apply(e,[this].concat(o))}},{key:"initTable",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=c(n(d.prototype),"initTable",this)).call.apply(e,[this].concat(r)),this.initCookie()}},{key:"onSort",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=c(n(d.prototype),"onSort",this)).call.apply(e,[this].concat(r)),this.options.cookie&&(void 0===this.options.sortName||void 0===this.options.sortOrder?(bl.deleteCookie(this,bl.cookieIds.sortName),bl.deleteCookie(this,bl.cookieIds.sortOrder)):(this.options.sortPriority=null,bl.deleteCookie(this,bl.cookieIds.sortPriority),bl.setCookie(this,bl.cookieIds.sortOrder,this.options.sortOrder),bl.setCookie(this,bl.cookieIds.sortName,this.options.sortName)))}},{key:"onMultipleSort",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=c(n(d.prototype),"onMultipleSort",this)).call.apply(e,[this].concat(r)),this.options.cookie&&(void 0===this.options.sortPriority?bl.deleteCookie(this,bl.cookieIds.sortPriority):(this.options.sortName=void 0,this.options.sortOrder=void 0,bl.deleteCookie(this,bl.cookieIds.sortName),bl.deleteCookie(this,bl.cookieIds.sortOrder),bl.setCookie(this,bl.cookieIds.sortPriority,JSON.stringify(this.options.sortPriority))))}},{key:"onPageNumber",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=c(n(d.prototype),"onPageNumber",this)).call.apply(e,[this].concat(r)),this.options.cookie&&bl.setCookie(this,bl.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPageListChange",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=c(n(d.prototype),"onPageListChange",this)).call.apply(e,[this].concat(r)),this.options.cookie&&(bl.setCookie(this,bl.cookieIds.pageList,this.options.pageSize),bl.setCookie(this,bl.cookieIds.pageNumber,this.options.pageNumber))}},{key:"onPagePre",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=c(n(d.prototype),"onPagePre",this)).call.apply(e,[this].concat(r)),this.options.cookie&&bl.setCookie(this,bl.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPageNext",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=c(n(d.prototype),"onPageNext",this)).call.apply(e,[this].concat(r)),this.options.cookie&&bl.setCookie(this,bl.cookieIds.pageNumber,this.options.pageNumber)}},{key:"_toggleColumn",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=c(n(d.prototype),"_toggleColumn",this)).call.apply(e,[this].concat(r)),this.options.cookie&&bl.setCookie(this,bl.cookieIds.hiddenColumns,JSON.stringify(this.getHiddenColumns().map((function(e){return e.field}))))}},{key:"_toggleAllColumns",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=c(n(d.prototype),"_toggleAllColumns",this)).call.apply(e,[this].concat(r)),this.options.cookie&&bl.setCookie(this,bl.cookieIds.hiddenColumns,JSON.stringify(this.getHiddenColumns().map((function(e){return e.field}))))}},{key:"toggleView",value:function(){c(n(d.prototype),"toggleView",this).call(this),bl.setCookie(this,bl.cookieIds.cardView,this.options.cardView)}},{key:"selectPage",value:function(e){c(n(d.prototype),"selectPage",this).call(this,e),this.options.cookie&&bl.setCookie(this,bl.cookieIds.pageNumber,e)}},{key:"onSearch",value:function(e){c(n(d.prototype),"onSearch",this).call(this,e,!(arguments.length>1)||arguments[1]),this.options.cookie&&(this.options.search&&bl.setCookie(this,bl.cookieIds.searchText,this.searchText),bl.setCookie(this,bl.cookieIds.pageNumber,this.options.pageNumber))}},{key:"initHeader",value:function(){var e;this.options.reorderableColumns&&this.options.cookie&&(this.columnsSortOrder=JSON.parse(bl.getCookie(this,bl.cookieIds.reorderColumns)));for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=c(n(d.prototype),"initHeader",this)).call.apply(e,[this].concat(r))}},{key:"persistReorderColumnsState",value:function(e){bl.setCookie(e,bl.cookieIds.reorderColumns,JSON.stringify(e.columnsSortOrder))}},{key:"filterBy",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];(e=c(n(d.prototype),"filterBy",this)).call.apply(e,[this].concat(r)),this.options.cookie&&bl.setCookie(this,bl.cookieIds.filterBy,JSON.stringify(this.filterColumns))}},{key:"initCookie",value:function(){var e=this;if(this.options.cookie){if(""===this.options.cookieIdTable||""===this.options.cookieExpire)return console.error("Configuration error. Please review the cookieIdTable and the cookieExpire property. If the properties are correct, then this browser does not support cookies."),void(this.options.cookie=!1);var t=bl.getCookie(this,bl.cookieIds.sortOrder),r=bl.getCookie(this,bl.cookieIds.sortName),n=bl.getCookie(this,bl.cookieIds.sortPriority),o=bl.getCookie(this,bl.cookieIds.pageNumber),i=bl.getCookie(this,bl.cookieIds.pageList),a=bl.getCookie(this,bl.cookieIds.searchText),s=bl.getCookie(this,bl.cookieIds.cardView),c=bl.getCookie(this,bl.cookieIds.columns),l=bl.getCookie(this,bl.cookieIds.hiddenColumns);if("boolean"==typeof c&&!c)throw new Error("The cookie value of filterBy must be a json!");var f={};try{f=JSON.parse(c)}catch(e){throw new Error("Could not parse the json of the columns cookie!",c)}var h={};try{h=JSON.parse(l)}catch(e){throw new Error("Could not parse the json of the hidden columns cookie!",l)}try{n=JSON.parse(n)}catch(e){throw new Error("Could not parse the json of the sortPriority cookie!",n)}if(n?(this.options.sortOrder=void 0,this.options.sortName=void 0):(this.options.sortOrder=t||this.options.sortOrder,this.options.sortName=r||this.options.sortName),this.options.sortPriority=n||this.options.sortPriority,(this.options.sortOrder||this.options.sortName)&&(this.options.sortPriority=null),this.options.pageNumber=o?+o:this.options.pageNumber,this.options.pageSize=i?i===this.options.formatAllRows()?i:+i:this.options.pageSize,bl.isCookieEnabled(this,bl.cookieIds.searchText)&&""===this.options.searchText&&(this.options.searchText=a||""),this.options.cardView="true"===s&&s,h){var d,p=u(this.columns);try{var g=function(){var t=d.value;t.visible=!h.filter((function(r){return!e.isSelectionColumn(t)&&r===t.field})).length>0||!t.switchable};for(p.s();!(d=p.n()).done;)g()}catch(e){p.e(e)}finally{p.f()}}else if(f){var m,v=u(this.columns);try{var b=function(){var t=m.value;if(!t.switchable)return"continue";t.visible=f.filter((function(r){return!!e.isSelectionColumn(t)||(r instanceof Object?r.field===t.field:r===t.field)})).length>0};for(v.s();!(m=v.n()).done;)b()}catch(e){v.e(e)}finally{v.f()}}}}},{key:"getCookies",value:function(){var t=this,r={};return e.each(bl.cookieIds,(function(e,n){r[e]=bl.getCookie(t,n),"columns"!==e&&"hiddenColumns"!==e&&"sortPriority"!==e||(r[e]=JSON.parse(r[e]))})),r}},{key:"deleteCookie",value:function(e){e&&bl.deleteCookie(this,bl.cookieIds[e])}},{key:"configureStorage",value:function(){var e=this;switch(this._storage={},this.options.cookieStorage){case"cookieStorage":this._storage.setItem=function(t,r){document.cookie=[t,"=",encodeURIComponent(r),"; expires=".concat(bl.calculateExpiration(e.options.cookieExpire)),e.options.cookiePath?"; path=".concat(e.options.cookiePath):"",e.options.cookieDomain?"; domain=".concat(e.options.cookieDomain):"",e.options.cookieSecure?"; secure":"",";SameSite=".concat(e.options.cookieSameSite)].join("")},this._storage.getItem=function(e){var t="; ".concat(document.cookie).split("; ".concat(e,"="));return 2===t.length?decodeURIComponent(t.pop().split(";").shift()):null},this._storage.removeItem=function(t){document.cookie=[encodeURIComponent(t),"=","; expires=Thu, 01 Jan 1970 00:00:00 GMT",e.options.cookiePath?"; path=".concat(e.options.cookiePath):"",e.options.cookieDomain?"; domain=".concat(e.options.cookieDomain):"",";SameSite=".concat(e.options.cookieSameSite)].join("")};break;case"localStorage":this._storage.setItem=function(e,t){localStorage.setItem(e,t)},this._storage.getItem=function(e){return localStorage.getItem(e)},this._storage.removeItem=function(e){localStorage.removeItem(e)};break;case"sessionStorage":this._storage.setItem=function(e,t){sessionStorage.setItem(e,t)},this._storage.getItem=function(e){return sessionStorage.getItem(e)},this._storage.removeItem=function(e){sessionStorage.removeItem(e)};break;case"customStorage":if(!this.options.cookieCustomStorageSet||!this.options.cookieCustomStorageGet||!this.options.cookieCustomStorageDelete)throw new Error("The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete");this._storage.setItem=function(t,r){vl.calculateObjectValue(e.options,e.options.cookieCustomStorageSet,[t,r],"")},this._storage.getItem=function(t){return vl.calculateObjectValue(e.options,e.options.cookieCustomStorageGet,[t],"")},this._storage.removeItem=function(t){vl.calculateObjectValue(e.options,e.options.cookieCustomStorageDelete,[t],"")};break;default:throw new Error("Storage method not supported.")}}}],l&&r(s.prototype,l),f&&r(s,f),Object.defineProperty(s,"prototype",{writable:!1}),d}(e.BootstrapTable)})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jQuery)}(this,(function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),n)}var o,i}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=n(e);if(t){var a=n(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return i(this,r)}}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=s(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(this,arguments)}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},u=function(e){return e&&e.Math==Math&&e},f=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof l&&l)||function(){return this}()||Function("return this")(),h={},d=function(e){try{return!!e()}catch(e){return!0}},p=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),g=!d((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),m=g,v=Function.prototype.call,b=m?v.bind(v):function(){return v.apply(v,arguments)},y={},w={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,x=S&&!w.call({1:2},1);y.f=x?function(e){var t=S(this,e);return!!t&&t.enumerable}:w;var A,k,T=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},E=g,_=Function.prototype,O=_.call,N=E&&_.bind.bind(O,O),C=E?N:function(e){return function(){return O.apply(e,arguments)}},R=C,P=R({}.toString),L=R("".slice),I=function(e){return L(P(e),8,-1)},F=d,j=I,D=Object,M=C("".split),B=F((function(){return!D("z").propertyIsEnumerable(0)}))?function(e){return"String"==j(e)?M(e,""):D(e)}:D,W=function(e){return null==e},U=W,H=TypeError,z=function(e){if(U(e))throw H("Can't call method on "+e);return e},V=B,q=z,$=function(e){return V(q(e))},G="object"==typeof document&&document.all,X={all:G,IS_HTMLDDA:void 0===G&&void 0!==G},Y=X.all,K=X.IS_HTMLDDA?function(e){return"function"==typeof e||e===Y}:function(e){return"function"==typeof e},J=K,Z=X.all,Q=X.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:J(e)||e===Z}:function(e){return"object"==typeof e?null!==e:J(e)},ee=f,te=K,re=function(e){return te(e)?e:void 0},ne=function(e,t){return arguments.length<2?re(ee[e]):ee[e]&&ee[e][t]},oe=C({}.isPrototypeOf),ie=f,ae="undefined"!=typeof navigator&&String(navigator.userAgent)||"",se=ie.process,ce=ie.Deno,le=se&&se.versions||ce&&ce.version,ue=le&&le.v8;ue&&(k=(A=ue.split("."))[0]>0&&A[0]<4?1:+(A[0]+A[1])),!k&&ae&&(!(A=ae.match(/Edge\/(\d+)/))||A[1]>=74)&&(A=ae.match(/Chrome\/(\d+)/))&&(k=+A[1]);var fe=k,he=fe,de=d,pe=!!Object.getOwnPropertySymbols&&!de((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&he&&he<41})),ge=pe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,me=ne,ve=K,be=oe,ye=Object,we=ge?function(e){return"symbol"==typeof e}:function(e){var t=me("Symbol");return ve(t)&&be(t.prototype,ye(e))},Se=String,xe=K,Ae=function(e){try{return Se(e)}catch(e){return"Object"}},ke=TypeError,Te=function(e){if(xe(e))return e;throw ke(Ae(e)+" is not a function")},Ee=Te,_e=W,Oe=b,Ne=K,Ce=Q,Re=TypeError,Pe={},Le={get exports(){return Pe},set exports(e){Pe=e}},Ie=f,Fe=Object.defineProperty,je=function(e,t){try{Fe(Ie,e,{value:t,configurable:!0,writable:!0})}catch(r){Ie[e]=t}return t},De=je,Me="__core-js_shared__",Be=f[Me]||De(Me,{}),We=Be;(Le.exports=function(e,t){return We[e]||(We[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ue=z,He=Object,ze=function(e){return He(Ue(e))},Ve=ze,qe=C({}.hasOwnProperty),$e=Object.hasOwn||function(e,t){return qe(Ve(e),t)},Ge=C,Xe=0,Ye=Math.random(),Ke=Ge(1..toString),Je=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ke(++Xe+Ye,36)},Ze=Pe,Qe=$e,et=Je,tt=pe,rt=ge,nt=f.Symbol,ot=Ze("wks"),it=rt?nt.for||nt:nt&&nt.withoutSetter||et,at=function(e){return Qe(ot,e)||(ot[e]=tt&&Qe(nt,e)?nt[e]:it("Symbol."+e)),ot[e]},st=b,ct=Q,lt=we,ut=function(e,t){var r=e[t];return _e(r)?void 0:Ee(r)},ft=function(e,t){var r,n;if("string"===t&&Ne(r=e.toString)&&!Ce(n=Oe(r,e)))return n;if(Ne(r=e.valueOf)&&!Ce(n=Oe(r,e)))return n;if("string"!==t&&Ne(r=e.toString)&&!Ce(n=Oe(r,e)))return n;throw Re("Can't convert object to primitive value")},ht=TypeError,dt=at("toPrimitive"),pt=function(e,t){if(!ct(e)||lt(e))return e;var r,n=ut(e,dt);if(n){if(void 0===t&&(t="default"),r=st(n,e,t),!ct(r)||lt(r))return r;throw ht("Can't convert object to primitive value")}return void 0===t&&(t="number"),ft(e,t)},gt=we,mt=function(e){var t=pt(e,"string");return gt(t)?t:t+""},vt=Q,bt=f.document,yt=vt(bt)&&vt(bt.createElement),wt=function(e){return yt?bt.createElement(e):{}},St=wt,xt=!p&&!d((function(){return 7!=Object.defineProperty(St("div"),"a",{get:function(){return 7}}).a})),At=p,kt=b,Tt=y,Et=T,_t=$,Ot=mt,Nt=$e,Ct=xt,Rt=Object.getOwnPropertyDescriptor;h.f=At?Rt:function(e,t){if(e=_t(e),t=Ot(t),Ct)try{return Rt(e,t)}catch(e){}if(Nt(e,t))return Et(!kt(Tt.f,e,t),e[t])};var Pt={},Lt=p&&d((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),It=Q,Ft=String,jt=TypeError,Dt=function(e){if(It(e))return e;throw jt(Ft(e)+" is not an object")},Mt=p,Bt=xt,Wt=Lt,Ut=Dt,Ht=mt,zt=TypeError,Vt=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,$t="enumerable",Gt="configurable",Xt="writable";Pt.f=Mt?Wt?function(e,t,r){if(Ut(e),t=Ht(t),Ut(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Xt in r&&!r.writable){var n=qt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:Gt in r?r.configurable:n.configurable,enumerable:$t in r?r.enumerable:n.enumerable,writable:!1})}return Vt(e,t,r)}:Vt:function(e,t,r){if(Ut(e),t=Ht(t),Ut(r),Bt)try{return Vt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw zt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Yt=Pt,Kt=T,Jt=p?function(e,t,r){return Yt.f(e,t,Kt(1,r))}:function(e,t,r){return e[t]=r,e},Zt={},Qt={get exports(){return Zt},set exports(e){Zt=e}},er=p,tr=$e,rr=Function.prototype,nr=er&&Object.getOwnPropertyDescriptor,or=tr(rr,"name"),ir={EXISTS:or,PROPER:or&&"something"===function(){}.name,CONFIGURABLE:or&&(!er||er&&nr(rr,"name").configurable)},ar=K,sr=Be,cr=C(Function.toString);ar(sr.inspectSource)||(sr.inspectSource=function(e){return cr(e)});var lr,ur,fr,hr=sr.inspectSource,dr=K,pr=f.WeakMap,gr=dr(pr)&&/native code/.test(String(pr)),mr=Je,vr=Pe("keys"),br=function(e){return vr[e]||(vr[e]=mr(e))},yr={},wr=gr,Sr=f,xr=Q,Ar=Jt,kr=$e,Tr=Be,Er=br,_r=yr,Or="Object already initialized",Nr=Sr.TypeError,Cr=Sr.WeakMap;if(wr||Tr.state){var Rr=Tr.state||(Tr.state=new Cr);Rr.get=Rr.get,Rr.has=Rr.has,Rr.set=Rr.set,lr=function(e,t){if(Rr.has(e))throw Nr(Or);return t.facade=e,Rr.set(e,t),t},ur=function(e){return Rr.get(e)||{}},fr=function(e){return Rr.has(e)}}else{var Pr=Er("state");_r[Pr]=!0,lr=function(e,t){if(kr(e,Pr))throw Nr(Or);return t.facade=e,Ar(e,Pr,t),t},ur=function(e){return kr(e,Pr)?e[Pr]:{}},fr=function(e){return kr(e,Pr)}}var Lr={set:lr,get:ur,has:fr,enforce:function(e){return fr(e)?ur(e):lr(e,{})},getterFor:function(e){return function(t){var r;if(!xr(t)||(r=ur(t)).type!==e)throw Nr("Incompatible receiver, "+e+" required");return r}}},Ir=C,Fr=d,jr=K,Dr=$e,Mr=p,Br=ir.CONFIGURABLE,Wr=hr,Ur=Lr.enforce,Hr=Lr.get,zr=String,Vr=Object.defineProperty,qr=Ir("".slice),$r=Ir("".replace),Gr=Ir([].join),Xr=Mr&&!Fr((function(){return 8!==Vr((function(){}),"length",{value:8}).length})),Yr=String(String).split("String"),Kr=Qt.exports=function(e,t,r){"Symbol("===qr(zr(t),0,7)&&(t="["+$r(zr(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Dr(e,"name")||Br&&e.name!==t)&&(Mr?Vr(e,"name",{value:t,configurable:!0}):e.name=t),Xr&&r&&Dr(r,"arity")&&e.length!==r.arity&&Vr(e,"length",{value:r.arity});try{r&&Dr(r,"constructor")&&r.constructor?Mr&&Vr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Ur(e);return Dr(n,"source")||(n.source=Gr(Yr,"string"==typeof t?t:"")),e};Function.prototype.toString=Kr((function(){return jr(this)&&Hr(this).source||Wr(this)}),"toString");var Jr=K,Zr=Pt,Qr=Zt,en=je,tn=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(Jr(r)&&Qr(r,i,n),n.global)o?e[t]=r:en(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Zr.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},rn={},nn=Math.ceil,on=Math.floor,an=Math.trunc||function(e){var t=+e;return(t>0?on:nn)(t)},sn=function(e){var t=+e;return t!=t||0===t?0:an(t)},cn=sn,ln=Math.max,un=Math.min,fn=sn,hn=Math.min,dn=function(e){return e>0?hn(fn(e),9007199254740991):0},pn=function(e){return dn(e.length)},gn=$,mn=function(e,t){var r=cn(e);return r<0?ln(r+t,0):un(r,t)},vn=pn,bn=function(e){return function(t,r,n){var o,i=gn(t),a=vn(i),s=mn(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},yn={includes:bn(!0),indexOf:bn(!1)},wn=$e,Sn=$,xn=yn.indexOf,An=yr,kn=C([].push),Tn=function(e,t){var r,n=Sn(e),o=0,i=[];for(r in n)!wn(An,r)&&wn(n,r)&&kn(i,r);for(;t.length>o;)wn(n,r=t[o++])&&(~xn(i,r)||kn(i,r));return i},En=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_n=Tn,On=En.concat("length","prototype");rn.f=Object.getOwnPropertyNames||function(e){return _n(e,On)};var Nn={};Nn.f=Object.getOwnPropertySymbols;var Cn=ne,Rn=rn,Pn=Nn,Ln=Dt,In=C([].concat),Fn=Cn("Reflect","ownKeys")||function(e){var t=Rn.f(Ln(e)),r=Pn.f;return r?In(t,r(e)):t},jn=$e,Dn=Fn,Mn=h,Bn=Pt,Wn=d,Un=K,Hn=/#|\.prototype\./,zn=function(e,t){var r=qn[Vn(e)];return r==Gn||r!=$n&&(Un(t)?Wn(t):!!t)},Vn=zn.normalize=function(e){return String(e).replace(Hn,".").toLowerCase()},qn=zn.data={},$n=zn.NATIVE="N",Gn=zn.POLYFILL="P",Xn=zn,Yn=f,Kn=h.f,Jn=Jt,Zn=tn,Qn=je,eo=function(e,t,r){for(var n=Dn(t),o=Bn.f,i=Mn.f,a=0;a<n.length;a++){var s=n[a];jn(e,s)||r&&jn(r,s)||o(e,s,i(t,s))}},to=Xn,ro=function(e,t){var r,n,o,i,a,s=e.target,c=e.global,l=e.stat;if(r=c?Yn:l?Yn[s]||Qn(s,{}):(Yn[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=Kn(r,n))&&a.value:r[n],!to(c?n:s+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;eo(i,o)}(e.sham||o&&o.sham)&&Jn(i,"sham",!0),Zn(r,n,i,e)}},no=Tn,oo=En,io=Object.keys||function(e){return no(e,oo)},ao=p,so=C,co=b,lo=d,uo=io,fo=Nn,ho=y,po=ze,go=B,mo=Object.assign,vo=Object.defineProperty,bo=so([].concat),yo=!mo||lo((function(){if(ao&&1!==mo({b:1},mo(vo({},"a",{enumerable:!0,get:function(){vo(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=mo({},e)[r]||uo(mo({},t)).join("")!=n}))?function(e,t){for(var r=po(e),n=arguments.length,o=1,i=fo.f,a=ho.f;n>o;)for(var s,c=go(arguments[o++]),l=i?bo(uo(c),i(c)):uo(c),u=l.length,f=0;u>f;)s=l[f++],ao&&!co(a,c,s)||(r[s]=c[s]);return r}:mo,wo=yo;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==wo},{assign:wo});var So=I,xo=Array.isArray||function(e){return"Array"==So(e)},Ao=TypeError,ko=mt,To=Pt,Eo=T,_o={};_o[at("toStringTag")]="z";var Oo="[object z]"===String(_o),No=Oo,Co=K,Ro=I,Po=at("toStringTag"),Lo=Object,Io="Arguments"==Ro(function(){return arguments}()),Fo=No?Ro:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Lo(e),Po))?r:Io?Ro(t):"Object"==(n=Ro(t))&&Co(t.callee)?"Arguments":n},jo=C,Do=d,Mo=K,Bo=Fo,Wo=hr,Uo=function(){},Ho=[],zo=ne("Reflect","construct"),Vo=/^\s*(?:class|function)\b/,qo=jo(Vo.exec),$o=!Vo.exec(Uo),Go=function(e){if(!Mo(e))return!1;try{return zo(Uo,Ho,e),!0}catch(e){return!1}},Xo=function(e){if(!Mo(e))return!1;switch(Bo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return $o||!!qo(Vo,Wo(e))}catch(e){return!0}};Xo.sham=!0;var Yo=!zo||Do((function(){var e;return Go(Go.call)||!Go(Object)||!Go((function(){e=!0}))||e}))?Xo:Go,Ko=xo,Jo=Yo,Zo=Q,Qo=at("species"),ei=Array,ti=function(e){var t;return Ko(e)&&(t=e.constructor,(Jo(t)&&(t===ei||Ko(t.prototype))||Zo(t)&&null===(t=t[Qo]))&&(t=void 0)),void 0===t?ei:t},ri=function(e,t){return new(ti(e))(0===t?0:t)},ni=d,oi=fe,ii=at("species"),ai=ro,si=d,ci=xo,li=Q,ui=ze,fi=pn,hi=function(e){if(e>9007199254740991)throw Ao("Maximum allowed index exceeded");return e},di=function(e,t,r){var n=ko(t);n in e?To.f(e,n,Eo(0,r)):e[n]=r},pi=ri,gi=function(e){return oi>=51||!ni((function(){var t=[];return(t.constructor={})[ii]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},mi=fe,vi=at("isConcatSpreadable"),bi=mi>=51||!si((function(){var e=[];return e[vi]=!1,e.concat()[0]!==e})),yi=function(e){if(!li(e))return!1;var t=e[vi];return void 0!==t?!!t:ci(e)};ai({target:"Array",proto:!0,arity:1,forced:!bi||!gi("concat")},{concat:function(e){var t,r,n,o,i,a=ui(this),s=pi(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(yi(i=-1===t?a:arguments[t]))for(o=fi(i),hi(c+o),r=0;r<o;r++,c++)r in i&&di(s,c,i[r]);else hi(c+1),di(s,c++,i);return s.length=c,s}});var wi=I,Si=C,xi=function(e){if("Function"===wi(e))return Si(e)},Ai=Te,ki=g,Ti=xi(xi.bind),Ei=function(e,t){return Ai(e),void 0===t?e:ki?Ti(e,t):function(){return e.apply(t,arguments)}},_i=B,Oi=ze,Ni=pn,Ci=ri,Ri=C([].push),Pi=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,l,u,f){for(var h,d,p=Oi(c),g=_i(p),m=Ei(l,u),v=Ni(g),b=0,y=f||Ci,w=t?y(c,v):r||a?y(c,0):void 0;v>b;b++)if((s||b in g)&&(d=m(h=g[b],b,p),e))if(t)w[b]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:Ri(w,h)}else switch(e){case 4:return!1;case 7:Ri(w,h)}return i?-1:n||o?o:w}},Li={forEach:Pi(0),map:Pi(1),filter:Pi(2),some:Pi(3),every:Pi(4),find:Pi(5),findIndex:Pi(6),filterReject:Pi(7)},Ii={},Fi=p,ji=Lt,Di=Pt,Mi=Dt,Bi=$,Wi=io;Ii.f=Fi&&!ji?Object.defineProperties:function(e,t){Mi(e);for(var r,n=Bi(t),o=Wi(t),i=o.length,a=0;i>a;)Di.f(e,r=o[a++],n[r]);return e};var Ui,Hi=ne("document","documentElement"),zi=Dt,Vi=Ii,qi=En,$i=yr,Gi=Hi,Xi=wt,Yi=br("IE_PROTO"),Ki=function(){},Ji=function(e){return"<script>"+e+"</"+"script>"},Zi=function(e){e.write(Ji("")),e.close();var t=e.parentWindow.Object;return e=null,t},Qi=function(){try{Ui=new ActiveXObject("htmlfile")}catch(e){}var e,t;Qi="undefined"!=typeof document?document.domain&&Ui?Zi(Ui):((t=Xi("iframe")).style.display="none",Gi.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ji("document.F=Object")),e.close(),e.F):Zi(Ui);for(var r=qi.length;r--;)delete Qi.prototype[qi[r]];return Qi()};$i[Yi]=!0;var ea=at,ta=Object.create||function(e,t){var r;return null!==e?(Ki.prototype=zi(e),r=new Ki,Ki.prototype=null,r[Yi]=e):r=Qi(),void 0===t?r:Vi.f(r,t)},ra=Pt.f,na=ea("unscopables"),oa=Array.prototype;null==oa[na]&&ra(oa,na,{configurable:!0,value:ta(null)});var ia=ro,aa=Li.find,sa=function(e){oa[na][e]=!0},ca="find",la=!0;ca in[]&&Array(1).find((function(){la=!1})),ia({target:"Array",proto:!0,forced:la},{find:function(e){return aa(this,e,arguments.length>1?arguments[1]:void 0)}}),sa(ca);var ua=Fo,fa=Oo?{}.toString:function(){return"[object "+ua(this)+"]"};Oo||tn(Object.prototype,"toString",fa,{unsafe:!0});var ha=e.fn.bootstrapTable.utils;Object.assign(e.fn.bootstrapTable.defaults,{stickyHeader:!1,stickyHeaderOffsetY:0,stickyHeaderOffsetLeft:0,stickyHeaderOffsetRight:0}),e.BootstrapTable=function(i){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(h,i);var s,l,u,f=a(h);function h(){return t(this,h),f.apply(this,arguments)}return s=h,l=[{key:"initHeader",value:function(){for(var t,r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];if((t=c(n(h.prototype),"initHeader",this)).call.apply(t,[this].concat(i)),this.options.stickyHeader){this.$tableBody.find(".sticky-header-container,.sticky_anchor_begin,.sticky_anchor_end").remove(),this.$el.before('<div class="sticky-header-container"></div>'),this.$el.before('<div class="sticky_anchor_begin"></div>'),this.$el.after('<div class="sticky_anchor_end"></div>'),this.$header.addClass("sticky-header"),this.$stickyContainer=this.$tableBody.find(".sticky-header-container"),this.$stickyBegin=this.$tableBody.find(".sticky_anchor_begin"),this.$stickyEnd=this.$tableBody.find(".sticky_anchor_end"),this.$stickyHeader=this.$header.clone(!0,!0);var s=ha.getEventName("resize.sticky-header-table",this.$el.attr("id")),l=ha.getEventName("scroll.sticky-header-table",this.$el.attr("id"));e(window).off(s).on(s,(function(){return r.renderStickyHeader()})),e(window).off(l).on(l,(function(){return r.renderStickyHeader()})),this.$tableBody.off("scroll").on("scroll",(function(){return r.matchPositionX()}))}}},{key:"onColumnSearch",value:function(e){var t=e.currentTarget,r=e.keyCode;c(n(h.prototype),"onColumnSearch",this).call(this,{currentTarget:t,keyCode:r}),this.renderStickyHeader()}},{key:"resetView",value:function(){for(var t,r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];(t=c(n(h.prototype),"resetView",this)).call.apply(t,[this].concat(i)),e(".bootstrap-table.fullscreen").off("scroll").on("scroll",(function(){return r.renderStickyHeader()}))}},{key:"getCaret",value:function(){for(var t,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];if((t=c(n(h.prototype),"getCaret",this)).call.apply(t,[this].concat(o)),this.$stickyHeader){var a=this.$stickyHeader.find("th");this.$header.find("th").each((function(t,r){a.eq(t).find(".sortable").attr("class",e(r).find(".sortable").attr("class"))}))}}},{key:"horizontalScroll",value:function(){var e=this;c(n(h.prototype),"horizontalScroll",this).call(this),this.$tableBody.on("scroll",(function(){return e.matchPositionX()}))}},{key:"renderStickyHeader",value:function(){var t=this,r=this;this.$stickyHeader=this.$header.clone(!0,!0),this.options.filterControl&&e(this.$stickyHeader).off("keyup change mouseup").on("keyup change mouse",(function(t){var n=e(t.target),o=n.val(),i=n.parents("th").data("field"),a=r.$header.find('th[data-field="'.concat(i,'"]'));if(n.is("input"))a.find("input").val(o);else if(n.is("select")){var s=a.find("select");s.find("option[selected]").removeAttr("selected"),s.find('option[value="'.concat(o,'"]')).attr("selected",!0)}r.triggerSearch()}));var n=e(window).scrollTop(),o=this.$stickyBegin.offset().top-this.options.stickyHeaderOffsetY,i=this.$stickyEnd.offset().top-this.options.stickyHeaderOffsetY-this.$header.height();if(n>o&&n<=i){this.$stickyHeader.find("tr").each((function(r,n){e(n).find("th").each((function(n,o){e(o).css("min-width",t.$header.find("tr:eq(".concat(r,")")).find("th:eq(".concat(n,")")).css("width"))}))})),this.$stickyContainer.show().addClass("fix-sticky fixed-table-container");var a=this.$tableBody[0].getBoundingClientRect(),s="100%",c=this.options.stickyHeaderOffsetLeft,l=this.options.stickyHeaderOffsetRight;c||(c=a.left),l||(s="".concat(a.width,"px")),this.$el.closest(".bootstrap-table").hasClass("fullscreen")&&(c=0,l=0,s="100%"),this.$stickyContainer.css("top","".concat(this.options.stickyHeaderOffsetY,"px")),this.$stickyContainer.css("left","".concat(c,"px")),this.$stickyContainer.css("right","".concat(l,"px")),this.$stickyContainer.css("width","".concat(s)),this.$stickyTable=e("<table/>"),this.$stickyTable.addClass(this.options.classes),this.$stickyContainer.html(this.$stickyTable.append(this.$stickyHeader)),this.matchPositionX()}else this.$stickyContainer.removeClass("fix-sticky").hide()}},{key:"matchPositionX",value:function(){this.$stickyContainer.scrollLeft(this.$tableBody.scrollLeft())}}],l&&r(s.prototype,l),u&&r(s,u),Object.defineProperty(s,"prototype",{writable:!1}),h}(e.BootstrapTable)})),jQuery.base64=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function r(e){var r,n,o,i,a,s,c,l="",u=0;for(e=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);n<128?t+=String.fromCharCode(n):n>127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t}(e);u<e.length;)i=(r=e.charCodeAt(u++))>>2,a=(3&r)<<4|(n=e.charCodeAt(u++))>>4,s=(15&n)<<2|(o=e.charCodeAt(u++))>>6,c=63&o,isNaN(n)?s=c=64:isNaN(o)&&(c=64),l=l+t.charAt(i)+t.charAt(a)+t.charAt(s)+t.charAt(c);return l}return{encode:function(e){return r(e)}}}(jQuery);var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(e,t,r){e instanceof String&&(e=String(e));for(var n=e.length,o=0;o<n;o++){var i=e[o];if(t.call(r,i,o,e))return{i:o,v:i}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)},$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(e,t,r,n){if(t){for(r=$jscomp.global,e=e.split("."),n=0;n<e.length-1;n++){var o=e[n];o in r||(r[o]={}),r=r[o]}(t=t(n=r[e=e[e.length-1]]))!=n&&null!=t&&$jscomp.defineProperty(r,e,{configurable:!0,writable:!0,value:t})}},$jscomp.polyfill("Array.prototype.find",(function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).v}}),"es6","es3"),function(e){e.fn.tableExport=function(i){function a(t){var r=[];return c(t,"thead").each((function(){r.push.apply(r,c(e(this),ne.theadSelector).toArray())})),r}function s(t){var r=[];return c(t,"tbody").each((function(){r.push.apply(r,c(e(this),ne.tbodySelector).toArray())})),ne.tfootSelector.length&&c(t,"tfoot").each((function(){r.push.apply(r,c(e(this),ne.tfootSelector).toArray())})),r}function c(t,r){var n=t[0].tagName,o=t.parents(n).length;return t.find(r).filter((function(){return o===e(this).closest(n).parents(n).length}))}function l(t){var r=[],n=0,o=0,i=0;return e(t).find("thead").first().find("th").each((function(t,a){t=void 0!==e(a).attr("data-field"),void 0!==a.parentNode.rowIndex&&o!==a.parentNode.rowIndex&&(o=a.parentNode.rowIndex,n=i=0);var s=N(a);for(n+=s||1;i<n;)r[i]=t?e(a).attr("data-field"):i.toString(),i++})),r}function u(t){var r=void 0!==t[0].rowIndex,n=!1===r&&void 0!==t[0].cellIndex,o=n||r?function(e){var t=[];return me&&(t=ge.filter((function(){var t=!1;return this.nodeType===e[0].nodeType&&(void 0!==this.rowIndex&&this.rowIndex===e[0].rowIndex||void 0!==this.cellIndex&&this.cellIndex===e[0].cellIndex&&void 0!==this.parentNode.rowIndex&&void 0!==e[0].parentNode.rowIndex&&this.parentNode.rowIndex===e[0].parentNode.rowIndex)&&(t=!0),t}))),!1===me||0===t.length}(t):t.is(":visible"),i=t.attr("data-tableexport-display");return n&&"none"!==i&&"always"!==i&&(r=void 0!==(t=e(t[0].parentNode))[0].rowIndex,i=t.attr("data-tableexport-display")),r&&"none"!==i&&"always"!==i&&(i=t.closest("table").attr("data-tableexport-display")),"none"!==i&&(!0===o||"always"===i)}function f(t,r,n){var o=!1;return u(t)?0<ne.ignoreColumn.length&&(-1!==e.inArray(n,ne.ignoreColumn)||-1!==e.inArray(n-r,ne.ignoreColumn)||de.length>n&&void 0!==de[n]&&-1!==e.inArray(de[n],ne.ignoreColumn))&&(o=!0):o=!0,o}function h(t,r,n,o,i){if("function"==typeof i){var a=!1;if("function"==typeof ne.onIgnoreRow&&(a=ne.onIgnoreRow(e(t),n)),!1===a&&(0===ne.ignoreRow.length||-1===e.inArray(n,ne.ignoreRow)&&-1===e.inArray(n-o,ne.ignoreRow))&&u(e(t))){var s=(t=c(e(t),r)).length,l=0,h=0;t.each((function(){var t,r=e(this),o=N(this),a=C(this);if(e.each(pe,(function(){if(n>this.s.r&&n<=this.e.r&&l>=this.s.c&&l<=this.e.c)for(t=0;t<=this.e.c-this.s.c;++t)s++,h++,i(null,n,l++)})),(a||o)&&(o=o||1,pe.push({s:{r:n,c:l},e:{r:n+(a||1)-1,c:l+o-1}})),!1===f(r,s,h++)&&i(this,n,l++),1<o)for(t=0;t<o-1;++t)h++,i(null,n,l++)})),e.each(pe,(function(){if(n>=this.s.r&&n<=this.e.r&&l>=this.s.c&&l<=this.e.c)for(var e=0;e<=this.e.c-this.s.c;++e)i(null,n,l++)}))}}}function d(e,t,r,n){if(void 0!==n.images&&void 0!==(r=n.images[r])){t=t.getBoundingClientRect();var o=e.width/e.height,i=t.width/t.height,a=e.width,s=e.height,c=19.049976/25.4,l=0;i<=o?(s=Math.min(e.height,t.height),a=t.width*s/t.height):i>o&&(a=Math.min(e.width,t.width),s=t.height*a/t.width),a*=c,(s*=c)<e.height&&(l=(e.height-s)/2);try{n.doc.addImage(r.src,e.textPos.x,e.y+l,a,s)}catch(e){}e.textPos.x+=a}}function p(e,t){if("string"===ne.outputMode)return e.output();if("base64"===ne.outputMode)return B(e.output());if("window"===ne.outputMode)window.URL=window.URL||window.webkitURL,window.open(window.URL.createObjectURL(e.output("blob")));else{var r=ne.fileName+".pdf";try{var n=e.output("blob");saveAs(n,r),"function"==typeof ne.onAfterSaveToFile&&ne.onAfterSaveToFile(n,r)}catch(n){M(r,"data:application/pdf"+(t?"":";base64")+",",t?e.output("blob"):e.output())}}}function g(e,t,r){var n=0;if(void 0!==r&&(n=r.colspan),0<=n){for(var o=e.width,i=e.textPos.x,a=t.table.columns.indexOf(t.column),s=1;s<n;s++)o+=t.table.columns[a+s].width;return 1<n&&("right"===e.styles.halign?i=e.textPos.x+o-e.width:"center"===e.styles.halign&&(i=e.textPos.x+(o-e.width)/2)),e.width=o,e.textPos.x=i,void 0!==r&&1<r.rowspan&&(e.height*=r.rowspan),"middle"!==e.styles.valign&&"bottom"!==e.styles.valign||2<(r=("string"==typeof e.text?e.text.split(/\r\n|\r|\n/g):e.text).length||1)&&(e.textPos.y-=(2-1.15)/2*t.row.styles.fontSize*(r-2)/3),!0}return!1}function m(t,r,n){null!=t&&(t.hasAttribute("data-tableexport-canvas")?(r=(new Date).getTime(),e(t).attr("data-tableexport-canvas",r),n.images[r]={url:'[data-tableexport-canvas="'+r+'"]',src:null}):"undefined"!==r&&null!=r&&r.each((function(){if(e(this).is("img")){var r=j(this.src);n.images[r]={url:this.src,src:this.src}}m(t,e(this).children(),n)})))}function v(t,r,n){r.each((function(){if(e(this).is("div")){var r=_(R(this,"background-color"),[255,255,255]),o=_(R(this,"border-top-color"),[0,0,0]),i=P(this,"border-top-width",ne.jspdf.unit),a=this.getBoundingClientRect(),s=this.offsetLeft*n.wScaleFactor,c=this.offsetTop*n.hScaleFactor,l=a.width*n.wScaleFactor;a=a.height*n.hScaleFactor,n.doc.setDrawColor.apply(void 0,o),n.doc.setFillColor.apply(void 0,r),n.doc.setLineWidth(i),n.doc.rect(t.x+s,t.y+c,l,a,i?"FD":"F")}else e(this).is("img")&&(r=j(this.src),d(t,this,r,n));v(t,e(this).children(),n)}))}function b(t,r,n){if("function"==typeof n.onAutotableText)n.onAutotableText(n.doc,t,r);else{var o=t.textPos.x,i=t.textPos.y,a={halign:t.styles.halign,valign:t.styles.valign};if(r.length){for(r=r[0];r.previousSibling;)r=r.previousSibling;for(var s=!1,c=!1;r;){var l=r.innerText||r.textContent||"",u=l.length&&" "===l[0]?" ":"",f=1<l.length&&" "===l[l.length-1]?" ":"";if(!0!==ne.preserve.leadingWS&&(l=u+w(l)),!0!==ne.preserve.trailingWS&&(l=S(l)+f),e(r).is("br")&&(o=t.textPos.x,i+=n.doc.internal.getFontSize()),e(r).is("b")?s=!0:e(r).is("i")&&(c=!0),(s||c)&&n.doc.setFont("undefined ",s&&c?"bolditalic":s?"bold":"italic"),u=n.doc.getStringUnitWidth(l)*n.doc.internal.getFontSize()){if("linebreak"===t.styles.overflow&&o>t.textPos.x&&o+u>t.textPos.x+t.width&&(0<=".,!%*;:=-".indexOf(l.charAt(0))&&(f=l.charAt(0),o+(u=n.doc.getStringUnitWidth(f)*n.doc.internal.getFontSize())<=t.textPos.x+t.width&&(U(f,o,i,a),l=l.substring(1,l.length)),u=n.doc.getStringUnitWidth(l)*n.doc.internal.getFontSize()),o=t.textPos.x,i+=n.doc.internal.getFontSize()),"visible"!==t.styles.overflow)for(;l.length&&o+u>t.textPos.x+t.width;)l=l.substring(0,l.length-1),u=n.doc.getStringUnitWidth(l)*n.doc.internal.getFontSize();U(l,o,i,a),o+=u}(s||c)&&(e(r).is("b")?s=!1:e(r).is("i")&&(c=!1),n.doc.setFont("undefined ",s||c?s?"bold":"italic":"normal")),r=r.nextSibling}t.textPos.x=o,t.textPos.y=i}else U(t.text,t.textPos.x,t.textPos.y,a)}}function y(e,t,r){return null==e?"":e.toString().replace(new RegExp(null==t?"":t.toString().replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),"g"),r)}function w(e){return null==e?"":e.toString().replace(/^\s+/,"")}function S(e){return null==e?"":e.toString().replace(/\s+$/,"")}function x(e){if(0===ne.date.html.length)return!1;ne.date.pattern.lastIndex=0;var t=ne.date.pattern.exec(e);if(null==t)return!1;if(0>(e=+t[ne.date.match_y])||8099<e)return!1;var r=1*t[ne.date.match_m];if(t=1*t[ne.date.match_d],!isFinite(t))return!1;var n=new Date(e,r-1,t,0,0,0);return n.getFullYear()===e&&n.getMonth()===r-1&&n.getDate()===t&&new Date(Date.UTC(e,r-1,t,0,0,0))}function A(e){return e=e||"0",""!==ne.numbers.html.thousandsSeparator&&(e=y(e,ne.numbers.html.thousandsSeparator,"")),"."!==ne.numbers.html.decimalMark&&(e=y(e,ne.numbers.html.decimalMark,".")),("number"==typeof e||!1!==jQuery.isNumeric(e))&&e}function k(t,r,n,o){var i="",a="text";if(null!==t){var s=e(t);if(s.removeData("teUserDefText"),s[0].hasAttribute("data-tableexport-canvas"))var c="";else if(s[0].hasAttribute("data-tableexport-value"))c=(c=s.attr("data-tableexport-value"))?c+"":"",s.data("teUserDefText",1);else if(c=s.html(),"function"==typeof ne.onCellHtmlData)c=ne.onCellHtmlData(s,r,n,c),s.data("teUserDefText",1);else if(""!==c){t=e.parseHTML("<div>"+c+"</div>",null,!1);var l=0,u=0;c="",e.each(t,(function(){if(e(this).is("input"))c+=s.find("input").eq(l++).val();else if(e(this).is("select"))c+=s.find("select option:selected").eq(u++).text();else if(e(this).is("br"))c+="<br>";else if(void 0===e(this).html()?c+=e(this).text():(void 0===jQuery().bootstrapTable||!1===e(this).hasClass("fht-cell")&&!1===e(this).hasClass("filterControl")&&0===s.parents(".detail-view").length)&&(c+=e(this).html()),e(this).is("a")){var t=s.find("a").attr("href")||"";i="function"==typeof ne.onCellHtmlHyperlink?i+ne.onCellHtmlHyperlink(s,r,n,t,c):"href"===ne.htmlHyperlink?i+t:i+c,c=""}}))}if(c&&""!==c&&!0===ne.htmlContent)i=e.trim(c);else if(c&&""!==c)if(""!==s.attr("data-tableexport-cellformat")){var f=c.replace(/\n/g,"\u2028").replace(/(<\s*br([^>]*)>)/gi,""),h=e("<div/>").html(f).contents();if(t=!1,f="",e.each(h.text().split("\u2028"),(function(e,t){0<e&&(f+=" "),!0!==ne.preserve.leadingWS&&(t=w(t)),f+=!0!==ne.preserve.trailingWS?S(t):t})),e.each(f.split(""),(function(e,t){0<e&&(i+="\n"),!0!==ne.preserve.leadingWS&&(t=w(t)),!0!==ne.preserve.trailingWS&&(t=S(t)),i+=t.replace(/\u00AD/g,"")})),i=i.replace(/\u00A0/g," "),"json"===ne.type||"excel"===ne.type&&"xmlss"===ne.mso.fileFormat||!1===ne.numbers.output)!1!==(t=A(i))&&(a="number",i=Number(t));else if((ne.numbers.html.decimalMark!==ne.numbers.output.decimalMark||ne.numbers.html.thousandsSeparator!==ne.numbers.output.thousandsSeparator)&&!1!==(t=A(i))){1===(h=(""+t.substr(0>t?1:0)).split(".")).length&&(h[1]="");var d=3<h[0].length?h[0].length%3:0;a="number",i=(0>t?"-":"")+(ne.numbers.output.thousandsSeparator?(d?h[0].substr(0,d)+ne.numbers.output.thousandsSeparator:"")+h[0].substr(d).replace(/(\d{3})(?=\d)/g,"$1"+ne.numbers.output.thousandsSeparator):h[0])+(h[1].length?ne.numbers.output.decimalMark+h[1]:"")}}else i=c;!0===ne.escape&&(i=escape(i)),"function"==typeof ne.onCellData&&(i=ne.onCellData(s,r,n,i,a),s.data("teUserDefText",1))}return void 0!==o&&(o.type=a),i}function T(e){return 0<e.length&&!0===ne.preventInjection&&0<="=+-@".indexOf(e.charAt(0))?"'"+e:e}function E(e,t,r){return t+"-"+r.toLowerCase()}function _(e,t){return(e=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.exec(e))&&(t=[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]),t}function O(e){var t=R(e,"text-align"),r=R(e,"font-weight"),n=R(e,"font-style"),o="";return"start"===t&&(t="rtl"===R(e,"direction")?"right":"left"),700<=r&&(o="bold"),"italic"===n&&(o+=n),""===o&&(o="normal"),t={style:{align:t,bcolor:_(R(e,"background-color"),[255,255,255]),color:_(R(e,"color"),[0,0,0]),fstyle:o},colspan:N(e),rowspan:C(e)},null!==e&&(e=e.getBoundingClientRect(),t.rect={width:e.width,height:e.height}),t}function N(t){var r=e(t).attr("data-tableexport-colspan");return void 0===r&&e(t).is("[colspan]")&&(r=e(t).attr("colspan")),parseInt(r)||0}function C(t){var r=e(t).attr("data-tableexport-rowspan");return void 0===r&&e(t).is("[rowspan]")&&(r=e(t).attr("rowspan")),parseInt(r)||0}function R(e,t){try{return window.getComputedStyle?(t=t.replace(/([a-z])([A-Z])/,E),"object"==typeof e&&void 0!==e.nodeType?window.getComputedStyle(e,null).getPropertyValue(t):"object"==typeof e&&e.length?e.getPropertyValue(t):""):e.currentStyle?e.currentStyle[t]:e.style[t]}catch(e){}return""}function P(e,t,r){if(null!==(t=R(e,t).match(/\d+/))){t=t[0],e=e.parentElement;var n=document.createElement("div");return n.style.overflow="hidden",n.style.visibility="hidden",e.appendChild(n),n.style.width=100+r,r=100/n.offsetWidth,e.removeChild(n),t*r}return 0}function L(e){var t=e.c,r="";for(++t;t;t=Math.floor((t-1)/26))r=String.fromCharCode((t-1)%26+65)+r;return r+""+(e.r+1)}function I(e,t){return void 0===t||"number"==typeof t?I(e.s,e.e):("string"!=typeof e&&(e=L(e)),"string"!=typeof t&&(t=L(t)),e===t?e:e+":"+t)}function F(e,t){var r=Number(e);if(isFinite(r))return r;var n=1;return""!==t.thousandsSeparator&&(e=e.replace(new RegExp("([\\d])"+t.thousandsSeparator+"([\\d])","g"),"$1$2")),"."!==t.decimalMark&&(e=e.replace(new RegExp("([\\d])"+t.decimalMark+"([\\d])","g"),"$1.$2")),e=e.replace(/[$]/g,"").replace(/[%]/g,(function(){return n*=100,""})),isFinite(r=Number(e))?r/n:(e=e.replace(/[(](.*)[)]/,(function(e,t){return n=-n,t})),isFinite(r=Number(e))?r/n:r)}function j(e){var t,r=0;if(0===e.length)return r;var n=0;for(t=e.length;n<t;n++){r=(r<<5)-r+e.charCodeAt(n),r|=0}return r}function D(e,t,r,n,o,i){var a=!0;if("function"==typeof ne.onBeforeSaveToFile&&("boolean"!=typeof(a=ne.onBeforeSaveToFile(e,t,r,n,o))&&(a=!0)),a)try{J=i?new Blob([String.fromCharCode(65279),[e]],{type:r+";charset="+n}):new Blob([e],{type:r+";charset="+n}),saveAs(J,t,{autoBom:!1}),"function"==typeof ne.onAfterSaveToFile&&ne.onAfterSaveToFile(e,t)}catch(a){M(t,"data:"+r+(n.length?";charset="+n:"")+(o.length?";"+o:"")+",",i?"\ufeff"+e:e)}}function M(e,t,r){var n=window.navigator.userAgent;if(!1!==e&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(new Blob([r]),e);else if(!1!==e&&(0<n.indexOf("MSIE ")||n.match(/Trident.*rv\:11\./))){if(t=document.createElement("iframe")){switch(document.body.appendChild(t),t.setAttribute("style","display:none"),t.contentDocument.open("txt/plain","replace"),t.contentDocument.write(r),t.contentDocument.close(),t.contentWindow.focus(),e.substr(e.lastIndexOf(".")+1)){case"doc":case"json":case"png":case"pdf":case"xls":case"xlsx":e+=".txt"}t.contentDocument.execCommand("SaveAs",!0,e),document.body.removeChild(t)}}else{var o=document.createElement("a");if(o){var i=null;o.style.display="none",!1!==e?o.download=e:o.target="_blank","object"==typeof r?(window.URL=window.URL||window.webkitURL,(n=[]).push(r),i=window.URL.createObjectURL(new Blob(n,{type:t})),o.href=i):0<=t.toLowerCase().indexOf("base64,")?o.href=t+B(r):o.href=t+encodeURIComponent(r),document.body.appendChild(o),document.createEvent?(null===ce&&(ce=document.createEvent("MouseEvents")),ce.initEvent("click",!0,!1),o.dispatchEvent(ce)):document.createEventObject?o.fireEvent("onclick"):"function"==typeof o.onclick&&o.onclick(),setTimeout((function(){i&&window.URL.revokeObjectURL(i),document.body.removeChild(o),"function"==typeof ne.onAfterSaveToFile&&ne.onAfterSaveToFile(r,e)}),100)}}}function B(e){var t,r="",n=0;if("string"==typeof e){e=e.replace(/\x0d\x0a/g,"\n");var o="";for(t=0;t<e.length;t++){var i=e.charCodeAt(t);128>i?o+=String.fromCharCode(i):(127<i&&2048>i?o+=String.fromCharCode(i>>6|192):(o+=String.fromCharCode(i>>12|224),o+=String.fromCharCode(i>>6&63|128)),o+=String.fromCharCode(63&i|128))}e=o}for(;n<e.length;){var a=e.charCodeAt(n++);i=a>>2,a=(3&a)<<4|(o=e.charCodeAt(n++))>>4;var s=(15&o)<<2|(t=e.charCodeAt(n++))>>6,c=63&t;isNaN(o)?s=c=64:isNaN(t)&&(c=64),r=r+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(i)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(s)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c)}return r}function W(e,t,r,n){return t&&"object"==typeof t||console.error("The headers should be an object or array, is: "+typeof t),r&&"object"==typeof r||console.error("The data should be an object or array, is: "+typeof r),n&&"object"!=typeof n&&console.error("The data should be an object or array, is: "+typeof r),Array.prototype.forEach||console.error("The current browser does not support Array.prototype.forEach which is required for jsPDF-AutoTable"),Z=e,ee=function(e){var t=Y({theme:"striped",styles:{},headerStyles:{},bodyStyles:{},alternateRowStyles:{},columnStyles:{},startY:!1,margin:40,pageBreak:"auto",tableWidth:"auto",createdHeaderCell:function(e,t){},createdCell:function(e,t){},drawHeaderRow:function(e,t){},drawRow:function(e,t){},drawHeaderCell:function(e,t){},drawCell:function(e,t){},beforePageContent:function(e){},afterPageContent:function(e){}},e);void 0!==t.extendWidth&&(t.tableWidth=t.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),void 0!==t.margins&&(void 0===t.margin&&(t.margin=t.margins),console.error("Use of deprecated option: margins, use margin instead.")),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach((function(e){var r="string"==typeof e?e:e[0];e="string"==typeof e?e:e[1],void 0!==t[r]&&(void 0===t.styles[e]&&(t.styles[e]=t[r]),console.error("Use of deprecated option: "+r+", use the style "+e+" instead."))}));var r=t.margin;return t.margin={},"number"==typeof r.horizontal&&(r.right=r.horizontal,r.left=r.horizontal),"number"==typeof r.vertical&&(r.top=r.vertical,r.bottom=r.vertical),["top","right","bottom","left"].forEach((function(e,n){"number"==typeof r?t.margin[e]=r:(n=Array.isArray(r)?n:e,t.margin[e]="number"==typeof r[n]?r[n]:40)})),t}(n||{}),te=1,Q={y:!1===ee.startY?ee.margin.top:ee.startY},e={textColor:30,fontSize:Z.internal.getFontSize(),fontStyle:Z.internal.getFont().fontStyle,fontName:Z.internal.getFont().fontName},H(t,r),function(){var e=0;re.columns.forEach((function(t){t.contentWidth=re.headerRow.cells[t.dataKey].contentWidth,re.rows.forEach((function(e){(e=e.cells[t.dataKey].contentWidth)>t.contentWidth&&(t.contentWidth=e)})),t.width=t.contentWidth,e+=t.contentWidth})),re.contentWidth=e;var t=Z.internal.pageSize.width-ee.margin.left-ee.margin.right,r=t;"number"==typeof ee.tableWidth?r=ee.tableWidth:"wrap"===ee.tableWidth&&(r=re.contentWidth),re.width=r<t?r:t;var n=[],o=0,i=re.width/re.columns.length,a=0;re.columns.forEach((function(e){var t=Y(ae,ie[ee.theme].table,ee.styles,e.styles);"wrap"===t.columnWidth?e.width=e.contentWidth:"number"==typeof t.columnWidth?e.width=t.columnWidth:e.contentWidth<=i&&re.contentWidth>re.width?e.width=e.contentWidth:(n.push(e),o+=e.contentWidth,e.width=0),a+=e.width})),z(n,a,o,i),re.height=0,re.rows.concat(re.headerRow).forEach((function(e,t){var r=0,n=re.x;re.columns.forEach((function(t){var o=e.cells[t.dataKey];t.x=n,q(o.styles);var i=t.width-2*o.styles.cellPadding;"linebreak"===o.styles.overflow?o.text=Z.splitTextToSize(o.text,i+1,{fontSize:o.styles.fontSize}):"ellipsize"===o.styles.overflow?o.text=G(o.text,i,o.styles):"visible"!==o.styles.overflow&&("hidden"===o.styles.overflow?o.text=G(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)),(o=Array.isArray(o.text)?o.text.length-1:0)>r&&(r=o),n+=t.width})),e.heightStyle=e.styles.rowHeight,e.height=e.heightStyle+r*e.styles.fontSize*1.15+(2-1.15)/2*e.styles.fontSize,re.height+=e.height}))}(),t=ee.startY+ee.margin.bottom+re.headerRow.height+(re.rows[0]&&"auto"===ee.pageBreak?re.rows[0].height:0),"avoid"===ee.pageBreak&&(t+=re.height),("always"===ee.pageBreak&&!1!==ee.startY||!1!==ee.startY&&t>Z.internal.pageSize.height)&&(Z.addPage(),Q.y=ee.margin.top),q(e),ee.beforePageContent($()),!1!==ee.drawHeaderRow(re.headerRow,$({row:re.headerRow}))&&V(re.headerRow,ee.drawHeaderCell),q(e),re.rows.forEach((function(e,t){Q.y+e.height+ee.margin.bottom>=Z.internal.pageSize.height&&(ee.afterPageContent($()),Z.addPage(),te++,Q={x:ee.margin.left,y:ee.margin.top},ee.beforePageContent($()),!1!==ee.drawHeaderRow(re.headerRow,$({row:re.headerRow}))&&V(re.headerRow,ee.drawHeaderCell)),e.y=Q.y,!1!==ee.drawRow(e,$({row:e}))&&V(e,ee.drawCell)})),ee.afterPageContent($()),q(e),Z}function U(e,t,r,n){"number"==typeof t&&"number"==typeof r||console.error("The x and y parameters are required. Missing for the text: ",e);var o=Z.internal.getFontSize()/Z.internal.scaleFactor,i=/\r\n|\r|\n/g,a=null,s=1;if("middle"!==n.valign&&"bottom"!==n.valign&&"center"!==n.halign&&"right"!==n.halign||(s=(a="string"==typeof e?e.split(i):e).length||1),r+=o*(2-1.15),"middle"===n.valign?r-=s/2*o:"bottom"===n.valign&&(r-=s*o),"center"===n.halign||"right"===n.halign){if(i=o,"center"===n.halign&&(i*=.5),a&&1<=s){for(e=0;e<a.length;e++)Z.text(a[e],t-Z.getStringUnitWidth(a[e])*i,r),r+=o;return Z}t-=Z.getStringUnitWidth(e)*i}return Z.text(e,t,r),Z}function H(i,a){(re=new t).x=ee.margin.left;var s=/\r\n|\r|\n/g,c=new r(i);c.index=-1;var l=Y(ae,ie[ee.theme].table,ie[ee.theme].header);c.styles=Y(l,ee.styles,ee.headerStyles),i.forEach((function(t,r){"object"==typeof t&&(r=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 i=new o(r);i.styles=ee.columnStyles[i.dataKey]||{},re.columns.push(i);var a=new n;a.raw="object"==typeof t?t.title:t,a.styles=e.extend({},c.styles),a.text=""+a.raw,a.contentWidth=2*a.styles.cellPadding+X(a.text,a.styles),a.text=a.text.split(s),c.cells[r]=a,ee.createdHeaderCell(a,{column:i,row:c,settings:ee})})),re.headerRow=c,a.forEach((function(e,t){var o=new r(e),i=0==t%2,a=Y(ae,ie[ee.theme].table,i?ie[ee.theme].alternateRow:{});i=Y(ee.styles,ee.bodyStyles,i?ee.alternateRowStyles:{}),o.styles=Y(a,i),o.index=t,re.columns.forEach((function(t){var r=new n;r.raw=e[t.dataKey],r.styles=Y(o.styles,t.styles),r.text=void 0!==r.raw?""+r.raw:"",o.cells[t.dataKey]=r,ee.createdCell(r,$({column:t,row:o})),r.contentWidth=2*r.styles.cellPadding+X(r.text,r.styles),r.text=r.text.split(s)})),re.rows.push(o)}))}function z(e,t,r,n){for(var o=re.width-t-r,i=0;i<e.length;i++){var a=e[i],s=a.contentWidth/r,c=a.contentWidth+o*s<n;if(0>o&&c){e.splice(i,1),r-=a.contentWidth,a.width=n,z(e,t+=a.width,r,n);break}a.width=a.contentWidth+o*s}}function V(e,t){for(var r=0;r<re.columns.length;r++){var n=re.columns[r],o=e.cells[n.dataKey];o&&(q(o.styles),o.x=n.x,o.y=Q.y,o.height=e.height,o.width=n.width,o.textPos.y="top"===o.styles.valign?Q.y+o.styles.cellPadding:"bottom"===o.styles.valign?Q.y+e.height-o.styles.cellPadding:Q.y+e.height/2,o.textPos.x="right"===o.styles.halign?o.x+o.width-o.styles.cellPadding:"center"===o.styles.halign?o.x+o.width/2:o.x+o.styles.cellPadding,!1!==t(o,n=$({column:n,row:e}))&&(Z.rect(o.x,o.y,o.width,o.height,o.styles.fillStyle),U(o.text,o.textPos.x,o.textPos.y,{halign:o.styles.halign,valign:o.styles.valign})))}Q.y+=e.height}function q(e){[{func:Z.setFillColor,value:e.fillColor},{func:Z.setTextColor,value:e.textColor},{func:Z.setFont,value:e.font,style:e.fontStyle},{func:Z.setDrawColor,value:e.lineColor},{func:Z.setLineWidth,value:e.lineWidth},{func:Z.setFont,value:e.font},{func:Z.setFontSize,value:e.fontSize}].forEach((function(e){void 0!==e.value&&(e.value.constructor===Array?e.func.apply(Z,e.value):void 0!==e.style?e.func(e.value,e.style):e.func(e.value))}))}function $(e){e=e||{};var t,r={pageCount:te,settings:ee,table:re,cursor:Q};for(t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r}function G(e,t,r,n){if(n=void 0!==n?n:"...",Array.isArray(e))return e.forEach((function(o,i){e[i]=G(o,t,r,n)})),e;if(t>=X(e,r))return e;for(;t<X(e+n,r)&&!(2>e.length);)e=e.substring(0,e.length-1);return e.trim()+n}function X(e,t){return q(t),Z.getStringUnitWidth(e)*t.fontSize}function Y(e){var t,r={};for(t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);for(var n=1;n<arguments.length;n++){var o=arguments[n];for(t in o)o.hasOwnProperty(t)&&(r[t]=o[t])}return r}var K,J,Z,Q,ee,te,re,ne={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:"",xlsx:{formatId:{date:14,numbers:2,currency:164},format:{currency:"$#,##0.00;[Red]-$#,##0.00"},onHyperlink:null}},numbers:{html:{decimalMark:".",thousandsSeparator:","},output:{decimalMark:".",thousandsSeparator:","}},onAfterSaveToFile:null,onBeforeSaveToFile:null,onCellData:null,onCellHtmlData:null,onCellHtmlHyperlink:null,onIgnoreRow:null,onTableExportBegin:null,onTableExportEnd:null,outputMode:"file",pdfmake:{enabled:!1,docDefinition:{pageSize:"A4",pageOrientation:"portrait",styles:{header:{background:"#34495E",color:"#FFFFFF",bold:!0,alignment:"center",fillColor:"#34495E"},alternateRow:{fillColor:"#f5f5f5"}},defaultStyle:{color:"#000000",fontSize:8,font:"Roboto"}},fonts:{}},preserve:{leadingWS:!1,trailingWS:!1},preventInjection:!0,sql:{tableEnclosure:"`",columnEnclosure:"`"},tbodySelector:"tr",tfootSelector:"tr",theadSelector:"tr",tableName:"Table",type:"csv"},oe={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]},ie={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal",fillStyle:"F"},header:{textColor:255,fillColor:[41,128,185],rowHeight:23,fontStyle:"bold"},body:{},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1,fillStyle:"DF"},header:{textColor:255,fillColor:[26,188,156],rowHeight:23,fillStyle:"F",fontStyle:"bold"},body:{},alternateRow:{}},plain:{header:{fontStyle:"bold"}}},ae={cellPadding:5,fontSize:10,fontName:"helvetica",lineColor:200,lineWidth:.1,fontStyle:"normal",overflow:"ellipsize",fillColor:255,textColor:20,halign:"left",valign:"top",fillStyle:"F",rowHeight:20,columnWidth:"auto"},se=this,ce=null,le=[],ue=[],fe=0,he="",de=[],pe=[],ge=[],me=!1;if(e.extend(!0,ne,i),"xlsx"===ne.type&&(ne.mso.fileFormat=ne.type,ne.type="excel"),void 0!==ne.excelFileFormat&&void 0===ne.mso.fileFormat&&(ne.mso.fileFormat=ne.excelFileFormat),void 0!==ne.excelPageFormat&&void 0===ne.mso.pageFormat&&(ne.mso.pageFormat=ne.excelPageFormat),void 0!==ne.excelPageOrientation&&void 0===ne.mso.pageOrientation&&(ne.mso.pageOrientation=ne.excelPageOrientation),void 0!==ne.excelRTL&&void 0===ne.mso.rtl&&(ne.mso.rtl=ne.excelRTL),void 0!==ne.excelstyles&&void 0===ne.mso.styles&&(ne.mso.styles=ne.excelstyles),void 0!==ne.onMsoNumberFormat&&void 0===ne.mso.onMsoNumberFormat&&(ne.mso.onMsoNumberFormat=ne.onMsoNumberFormat),void 0!==ne.worksheetName&&void 0===ne.mso.worksheetName&&(ne.mso.worksheetName=ne.worksheetName),void 0!==ne.mso.xslx&&void 0===ne.mso.xlsx&&(ne.mso.xlsx=ne.mso.xslx),ne.mso.pageOrientation="l"===ne.mso.pageOrientation.substr(0,1)?"landscape":"portrait",ne.date.html=ne.date.html||"",ne.date.html.length){var ve=[];ve.dd="(3[01]|[12][0-9]|0?[1-9])",ve.mm="(1[012]|0?[1-9])",ve.yyyy="((?:1[6-9]|2[0-2])\\d{2})",ve.yy="(\\d{2})";var be=ne.date.html.match(/[^a-zA-Z0-9]/)[0],ye=ne.date.html.toLowerCase().split(be);ne.date.regex="^\\s*",ne.date.regex+=ve[ye[0]],ne.date.regex+="(.)",ne.date.regex+=ve[ye[1]],ne.date.regex+="\\2",ne.date.regex+=ve[ye[2]],ne.date.regex+="\\s*$",ne.date.pattern=new RegExp(ne.date.regex,"g");var we=ye.indexOf("dd")+1;ne.date.match_d=we+(1<we?1:0),we=ye.indexOf("mm")+1,ne.date.match_m=we+(1<we?1:0),we=(0<=ye.indexOf("yyyy")?ye.indexOf("yyyy"):ye.indexOf("yy"))+1,ne.date.match_y=we+(1<we?1:0)}if(de=l(se),"function"==typeof ne.onTableExportBegin&&ne.onTableExportBegin(),"csv"===ne.type||"tsv"===ne.type||"txt"===ne.type){var Se="",xe=0;pe=[],fe=0;var Ae=function(t,r,n){return t.each((function(){he="",h(this,r,fe,n+t.length,(function(e,t,r){var n=he,o="";null!==e&&(t=null===(e=k(e,t,r))||""===e?"":e.toString(),"tsv"===ne.type?(e instanceof Date&&e.toLocaleString(),o=y(t,"\t"," ")):e instanceof Date?o=ne.csvEnclosure+e.toLocaleString()+ne.csvEnclosure:(0<=(o=y(o=T(t),ne.csvEnclosure,ne.csvEnclosure+ne.csvEnclosure)).indexOf(ne.csvSeparator)||/[\r\n ]/g.test(o))&&(o=ne.csvEnclosure+o+ne.csvEnclosure)),he=n+(o+("tsv"===ne.type?"\t":ne.csvSeparator))})),0<(he=e.trim(he).substring(0,he.length-1)).length&&(0<Se.length&&(Se+="\n"),Se+=he),fe++})),t.length};if(xe+=Ae(e(se).find("thead").first().find(ne.theadSelector),"th,td",xe),c(e(se),"tbody").each((function(){xe+=Ae(c(e(this),ne.tbodySelector),"td,th",xe)})),ne.tfootSelector.length&&Ae(e(se).find("tfoot").first().find(ne.tfootSelector),"td,th",xe),Se+="\n","string"===ne.outputMode)return Se;if("base64"===ne.outputMode)return B(Se);if("window"===ne.outputMode)return void M(!1,"data:text/"+("csv"===ne.type?"csv":"plain")+";charset=utf-8,",Se);D(Se,ne.fileName+"."+ne.type,"text/"+("csv"===ne.type?"csv":"plain"),"utf-8","","csv"===ne.type&&ne.csvUseBOM)}else if("sql"===ne.type){fe=0,pe=[];var ke="INSERT INTO "+ne.sql.tableEnclosure+ne.tableName+ne.sql.tableEnclosure+" (";if(le=a(e(se)),e(le).each((function(){h(this,"th,td",fe,le.length,(function(e,t,r){-1<(e=k(e,t,r)||"").indexOf(ne.sql.columnEnclosure)&&(e=y(e.toString(),ne.sql.columnEnclosure,ne.sql.columnEnclosure+ne.sql.columnEnclosure)),ke+=ne.sql.columnEnclosure+e+ne.sql.columnEnclosure+","})),fe++,ke=e.trim(ke).substring(0,ke.length-1)})),ke+=") VALUES ",ue=s(e(se)),e(ue).each((function(){he="",h(this,"td,th",fe,le.length+ue.length,(function(e,t,r){-1<(e=k(e,t,r)||"").indexOf("'")&&(e=y(e.toString(),"'","''")),he+="'"+e+"',"})),3<he.length&&(ke+="("+he,ke=e.trim(ke).substring(0,ke.length-1),ke+="),"),fe++})),ke=e.trim(ke).substring(0,ke.length-1),ke+=";","string"===ne.outputMode)return ke;if("base64"===ne.outputMode)return B(ke);D(ke,ne.fileName+".sql","application/sql","utf-8","",!1)}else if("json"===ne.type){var Te=[];pe=[],le=a(e(se)),e(le).each((function(){var e=[];h(this,"th,td",fe,le.length,(function(t,r,n){e.push(k(t,r,n))})),Te.push(e)}));var Ee=[];ue=s(e(se)),e(ue).each((function(){var t={},r=0;h(this,"td,th",fe,le.length+ue.length,(function(e,n,o){Te.length?t[Te[Te.length-1][r]]=k(e,n,o):t[r]=k(e,n,o),r++})),!1===e.isEmptyObject(t)&&Ee.push(t),fe++}));var _e="head"===ne.jsonScope?JSON.stringify(Te):"data"===ne.jsonScope?JSON.stringify(Ee):JSON.stringify({header:Te,data:Ee});if("string"===ne.outputMode)return _e;if("base64"===ne.outputMode)return B(_e);D(_e,ne.fileName+".json","application/json","utf-8","base64",!1)}else if("xml"===ne.type){fe=0,pe=[];var Oe='<?xml version="1.0" encoding="utf-8"?>';Oe+="<tabledata><fields>",le=a(e(se)),e(le).each((function(){h(this,"th,td",fe,le.length,(function(e,t,r){Oe+="<field>"+k(e,t,r)+"</field>"})),fe++})),Oe+="</fields><data>";var Ne=1;if(ue=s(e(se)),e(ue).each((function(){var e=1;he="",h(this,"td,th",fe,le.length+ue.length,(function(t,r,n){he+="<column-"+e+">"+k(t,r,n)+"</column-"+e+">",e++})),0<he.length&&"<column-1></column-1>"!==he&&(Oe+='<row id="'+Ne+'">'+he+"</row>",Ne++),fe++})),Oe+="</data></tabledata>","string"===ne.outputMode)return Oe;if("base64"===ne.outputMode)return B(Oe);D(Oe,ne.fileName+".xml","application/xml","utf-8","base64",!1)}else if("excel"===ne.type&&"xmlss"===ne.mso.fileFormat){var Ce=[],Re=[];e(se).filter((function(){return u(e(this))})).each((function(){function t(t,r,n){var o=[];return e(t).each((function(){var r=0,i=0;he="",h(this,"td,th",fe,n+t.length,(function(t,n,a){if(null!==t){var s="";if(n=k(t,n,a),a="String",!1!==jQuery.isNumeric(n))a="Number";else{var c=function(e){return-1<e.indexOf("%")?!1!==(e=A(e.replace(/%/g,"")))&&(e/=100):e=!1,e}(n);!1!==c&&(n=c,a="Number",s+=' ss:StyleID="pct1"')}"Number"!==a&&(n=n.replace(/\n/g,"<br>")),c=N(t),t=C(t),e.each(o,(function(){if(fe>=this.s.r&&fe<=this.e.r&&i>=this.s.c&&i<=this.e.c)for(var e=0;e<=this.e.c-this.s.c;++e)i++,r++})),(t||c)&&(t=t||1,c=c||1,o.push({s:{r:fe,c:i},e:{r:fe+t-1,c:i+c-1}})),1<c&&(s+=' ss:MergeAcross="'+(c-1)+'"',i+=c-1),1<t&&(s+=' ss:MergeDown="'+(t-1)+'" ss:StyleID="rsp1"'),0<r&&(s+=' ss:Index="'+(i+1)+'"',r=0),he+="<Cell"+s+'><Data ss:Type="'+a+'">'+e("<div />").text(n).html()+"</Data></Cell>\r",i++}})),0<he.length&&(K+='<Row ss:AutoFitHeight="0">\r'+he+"</Row>\r"),fe++})),t.length}var r=e(this),n="";"string"==typeof ne.mso.worksheetName&&ne.mso.worksheetName.length?n=ne.mso.worksheetName+" "+(Re.length+1):void 0!==ne.mso.worksheetName[Re.length]&&(n=ne.mso.worksheetName[Re.length]),n.length||(n=r.find("caption").text()||""),n.length||(n="Table "+(Re.length+1)),n=e.trim(n.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31)),Re.push(e("<div />").text(n).html()),!1===ne.exportHiddenCells&&(ge=r.find("tr, th, td").filter(":hidden"),me=0<ge.length),fe=0,de=l(this),K="<Table>\r",n=t(a(r),0,0),t(s(r),0,n),K+="</Table>\r",Ce.push(K)}));for(var Pe,Le,Ie={},Fe={},je=0,De=Re.length;je<De;je++)Le=Ie[Pe=Re[je]],2===(Le=Ie[Pe]=null==Le?1:Le+1)&&(Re[Fe[Pe]]=Re[Fe[Pe]].substring(0,29)+"-1"),1<Ie[Pe]?Re[je]=Re[je].substring(0,29)+"-"+Ie[Pe]:Fe[Pe]=je;for(var Me='<?xml version="1.0" encoding="UTF-8"?>\r<?mso-application progid="Excel.Sheet"?>\r<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"\r xmlns:o="urn:schemas-microsoft-com:office:office"\r xmlns:x="urn:schemas-microsoft-com:office:excel"\r xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"\r xmlns:html="http://www.w3.org/TR/REC-html40">\r<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">\r <Created>'+(new Date).toISOString()+'</Created>\r</DocumentProperties>\r<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">\r <AllowPNG/>\r</OfficeDocumentSettings>\r<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">\r <WindowHeight>9000</WindowHeight>\r <WindowWidth>13860</WindowWidth>\r <WindowTopX>0</WindowTopX>\r <WindowTopY>0</WindowTopY>\r <ProtectStructure>False</ProtectStructure>\r <ProtectWindows>False</ProtectWindows>\r</ExcelWorkbook>\r<Styles>\r <Style ss:ID="Default" ss:Name="Normal">\r <Alignment ss:Vertical="Bottom"/>\r <Borders/>\r <Font/>\r <Interior/>\r <NumberFormat/>\r <Protection/>\r </Style>\r <Style ss:ID="rsp1">\r <Alignment ss:Vertical="Center"/>\r </Style>\r <Style ss:ID="pct1">\r <NumberFormat ss:Format="Percent"/>\r </Style>\r</Styles>\r',Be=0;Be<Ce.length;Be++)Me+='<Worksheet ss:Name="'+Re[Be]+'" ss:RightToLeft="'+(ne.mso.rtl?"1":"0")+'">\r'+Ce[Be],Me=ne.mso.rtl?Me+'<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">\r<DisplayRightToLeft/>\r</WorksheetOptions>\r':Me+'<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"/>\r',Me+="</Worksheet>\r";if(Me+="</Workbook>\r","string"===ne.outputMode)return Me;if("base64"===ne.outputMode)return B(Me);D(Me,ne.fileName+".xml","application/xml","utf-8","base64",!1)}else if("excel"===ne.type&&"xlsx"===ne.mso.fileFormat){var We=[],Ue=XLSX.utils.book_new();e(se).filter((function(){return u(e(this))})).each((function(){for(var t,r,n,o,i,a,s,c=e(this),l={},h=this.getElementsByTagName("tr"),d=Math.min(1e7,h.length),p={s:{r:0,c:0},e:{r:0,c:0}},g=[],m=0,v=0,b=XLSX.SSF.get_table();m<h.length&&v<d;++m)if(n=h[m],o=!1,"function"==typeof ne.onIgnoreRow&&(o=ne.onIgnoreRow(e(n),m)),!0!==o&&(0===ne.ignoreRow.length||-1===e.inArray(m,ne.ignoreRow)&&-1===e.inArray(m-h.length,ne.ignoreRow))&&!1!==u(e(n))){var y=n.children,w=0;for(n=0;n<y.length;++n)w+=a=+N(s=y[n])||1;var S=0;for(n=o=0;n<y.length;++n)if(a=+N(s=y[n])||1,r=n+S,!f(e(s),w,r+(r<o?o-r:0))){for(S+=a-1,r=0;r<g.length;++r){var A=g[r];A.s.c==o&&A.s.r<=v&&v<=A.e.r&&(o=A.e.c+1,r=-1)}(0<(i=+C(s))||1<a)&&g.push({s:{r:v,c:o},e:{r:v+(i||1)-1,c:o+a-1}});var T={type:""};r={t:"s",v:A=k(s,m,n+S,T)};var E="";""!==(e(s).attr("data-tableexport-cellformat")||void 0)?(0===(t=parseInt(e(s).attr("data-tableexport-xlsxformatid")||0))&&"function"==typeof ne.mso.xlsx.formatId.numbers&&(t=ne.mso.xlsx.formatId.numbers(e(s),m,n+S)),0===t&&"function"==typeof ne.mso.xlsx.formatId.date&&(t=ne.mso.xlsx.formatId.date(e(s),m,n+S)),49===t||"@"===t?E="s":"number"===T.type||0<t&&14>t||36<t&&41>t||48===t?E="n":("date"===T.type||13<t&&37>t||44<t&&48>t||56===t)&&(E="d")):E="s",null!=A&&(0===A.length?r.t="z":0!==A.trim().length&&"s"!==E&&("function"===T.type?r={f:A}:"TRUE"===A?r={t:"b",v:!0}:"FALSE"===A?r={t:"b",v:!1}:"n"===E||isFinite(F(A,ne.numbers.output))?(E=F(A,ne.numbers.output),0===t&&"function"!=typeof ne.mso.xlsx.formatId.numbers&&(t=ne.mso.xlsx.formatId.numbers),(isFinite(E)||isFinite(A))&&(r={t:"n",v:isFinite(E)?E:A,z:"string"==typeof t?t:t in b?b[t]:t===ne.mso.xlsx.formatId.currency?ne.mso.xlsx.format.currency:"0.00"})):!1===(T=x(A))&&"d"!==E||(0===t&&"function"!=typeof ne.mso.xlsx.formatId.date&&(t=ne.mso.xlsx.formatId.date),r={t:"d",v:!1!==T?T:A,z:"string"==typeof t?t:t in b?b[t]:"m/d/yy"})),(E=e(s).find("a"))&&E.length&&(E=E[0].hasAttribute("href")?E.attr("href"):"",A="href"!==ne.htmlHyperlink||""===E?A:"",""!==(T=""!==E?'=HYPERLINK("'+E+(A.length?'","'+A:"")+'")':"")&&("function"==typeof ne.mso.xlsx.onHyperlink?r=0!==(A=ne.mso.xlsx.onHyperlink(e(s),m,n,E,A,T)).indexOf("=HYPERLINK")?{t:"s",v:A}:{f:A}:r={f:T}))),l[L({c:o,r:v})]=r,p.e.c<o&&(p.e.c=o),o+=a}++v}g.length&&(l["!merges"]=(l["!merges"]||[]).concat(g)),p.e.r=Math.max(p.e.r,v-1),l["!ref"]=I(p),v>=d&&(l["!fullref"]=I((p.e.r=h.length-m+v-1,p))),t="","string"==typeof ne.mso.worksheetName&&ne.mso.worksheetName.length?t=ne.mso.worksheetName+" "+(We.length+1):void 0!==ne.mso.worksheetName[We.length]&&(t=ne.mso.worksheetName[We.length]),t.length||(t=c.find("caption").text()||""),t.length||(t="Table "+(We.length+1)),t=e.trim(t.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31)),We.push(t),XLSX.utils.book_append_sheet(Ue,l,t)})),D(function(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!==e.length;++n)r[n]=255&e.charCodeAt(n);return t}(XLSX.write(Ue,{type:"binary",bookType:ne.mso.fileFormat,bookSST:!1})),ne.fileName+"."+ne.mso.fileFormat,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","UTF-8","",!1)}else if("excel"===ne.type||"xls"===ne.type||"word"===ne.type||"doc"===ne.type){var He="excel"===ne.type||"xls"===ne.type?"excel":"word",ze="excel"===He?"xls":"doc",Ve='xmlns:x="urn:schemas-microsoft-com:office:'+He+'"',qe=K="";e(se).filter((function(){return u(e(this))})).each((function(){var t=e(this);""===qe&&(qe=ne.mso.worksheetName||t.find("caption").text()||"Table",qe=e.trim(qe.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31))),!1===ne.exportHiddenCells&&(ge=t.find("tr, th, td").filter(":hidden"),me=0<ge.length),fe=0,pe=[],de=l(this),K+="<table><thead>",le=a(t),e(le).each((function(){var t=e(this),r=document.defaultView.getComputedStyle(t[0],null);he="",h(this,"th,td",fe,le.length,(function(e,t,n){if(null!==e){var o="";if(he+="<th",ne.mso.styles.length){var i,a=document.defaultView.getComputedStyle(e,null);for(i in ne.mso.styles){var s=ne.mso.styles[i],c=R(a,s);""===c&&(c=R(r,s)),""!==c&&"0px none rgb(0, 0, 0)"!==c&&"rgba(0, 0, 0, 0)"!==c&&(o+=""===o?'style="':";",o+=s+":"+c)}}""!==o&&(he+=" "+o+'"'),0<(o=N(e))&&(he+=' colspan="'+o+'"'),0<(o=C(e))&&(he+=' rowspan="'+o+'"'),he+=">"+k(e,t,n)+"</th>"}})),0<he.length&&(K+="<tr>"+he+"</tr>"),fe++})),K+="</thead><tbody>",ue=s(t),e(ue).each((function(){var t=e(this),r=null,n=null;he="",h(this,"td,th",fe,le.length+ue.length,(function(o,i,a){if(null!==o){var s=k(o,i,a),c="",l=e(o).attr("data-tableexport-msonumberformat");if(void 0===l&&"function"==typeof ne.mso.onMsoNumberFormat&&(l=ne.mso.onMsoNumberFormat(o,i,a)),void 0!==l&&""!==l&&(c="style=\"mso-number-format:'"+l+"'"),ne.mso.styles.length)for(var u in r=document.defaultView.getComputedStyle(o,null),n=null,ne.mso.styles)i=ne.mso.styles[u],""===(l=R(r,i))&&(null===n&&(n=document.defaultView.getComputedStyle(t[0],null)),l=R(n,i)),""!==l&&"0px none rgb(0, 0, 0)"!==l&&"rgba(0, 0, 0, 0)"!==l&&(c+=""===c?'style="':";",c+=i+":"+l);he+="<td",""!==c&&(he+=" "+c+'"'),0<(c=N(o))&&(he+=' colspan="'+c+'"'),0<(o=C(o))&&(he+=' rowspan="'+o+'"'),"string"==typeof s&&""!==s&&(s=(s=T(s)).replace(/\n/g,"<br>")),he+=">"+s+"</td>"}})),0<he.length&&(K+="<tr>"+he+"</tr>"),fe++})),ne.displayTableName&&(K+="<tr><td></td></tr><tr><td></td></tr><tr><td>"+k(e("<p>"+ne.tableName+"</p>"))+"</td></tr>"),K+="</tbody></table>"}));var $e='<html xmlns:o="urn:schemas-microsoft-com:office:office" '+Ve+' xmlns="http://www.w3.org/TR/REC-html40">';if($e+="<head>",$e+='<meta http-equiv="content-type" content="application/vnd.ms-'+He+'; charset=UTF-8">',"excel"===He&&($e+="\x3c!--[if gte mso 9]>",$e+="<xml>",$e+="<x:ExcelWorkbook>",$e+="<x:ExcelWorksheets>",$e+="<x:ExcelWorksheet>",$e+="<x:Name>",$e+=qe,$e+="</x:Name>",$e+="<x:WorksheetOptions>",$e+="<x:DisplayGridlines/>",ne.mso.rtl&&($e+="<x:DisplayRightToLeft/>"),$e+="</x:WorksheetOptions>",$e+="</x:ExcelWorksheet>",$e+="</x:ExcelWorksheets>",$e+="</x:ExcelWorkbook>",$e+="</xml>",$e+="<![endif]--\x3e"),$e+="<style>",$e+="@page { size:"+ne.mso.pageOrientation+"; mso-page-orientation:"+ne.mso.pageOrientation+"; }",$e+="@page Section1 {size:"+oe[ne.mso.pageFormat][0]+"pt "+oe[ne.mso.pageFormat][1]+"pt",$e+="; margin:1.0in 1.25in 1.0in 1.25in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}",$e+="div.Section1 {page:Section1;}",$e+="@page Section2 {size:"+oe[ne.mso.pageFormat][1]+"pt "+oe[ne.mso.pageFormat][0]+"pt",$e+=";mso-page-orientation:"+ne.mso.pageOrientation+";margin:1.25in 1.0in 1.25in 1.0in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}",$e+="div.Section2 {page:Section2;}",$e+="br {mso-data-placement:same-cell;}",$e+="</style>",$e+="</head>",$e+="<body>",$e+='<div class="Section'+("landscape"===ne.mso.pageOrientation?"2":"1")+'">',$e+=K,$e+="</div>",$e+="</body>",$e+="</html>","string"===ne.outputMode)return $e;if("base64"===ne.outputMode)return B($e);D($e,ne.fileName+"."+ze,"application/vnd.ms-"+He,"","base64",!1)}else if("png"===ne.type)html2canvas(e(se)[0]).then((function(e){e=e.toDataURL();for(var t=atob(e.substring(22)),r=new ArrayBuffer(t.length),n=new Uint8Array(r),o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return"string"===ne.outputMode?t:"base64"===ne.outputMode?B(e):void("window"===ne.outputMode?window.open(e):D(r,ne.fileName+".png","image/png","","",!1))}));else if("pdf"===ne.type)if(!0===ne.pdfmake.enabled){var Ge={content:[]};e.extend(!0,Ge,ne.pdfmake.docDefinition),pe=[],e(se).filter((function(){return u(e(this))})).each((function(){var t=e(this),r=[],n=[];fe=0;for(var o=function(t,r,o){var i=0;return e(t).each((function(){var e=[];h(this,r,fe,o,(function(t,n,o){if(null!=t){var i=N(t),a=C(t);t={text:k(t,n,o)||" "},(1<i||1<a)&&(t.colSpan=i||1,t.rowSpan=a||1)}else t={text:" "};0<=r.indexOf("th")&&(t.style="header"),e.push(t)})),e.length&&n.push(e),i<e.length&&(i=e.length),fe++})),i},i=o(le=a(t),"th,td",le.length),c=r.length;c<i;c++)r.push("*");for(i=o(ue=s(t),"td",le.length+ue.length),t=r.length;t<i;t++)r.push("*");Ge.content.push({table:{headerRows:le.length?le.length:null,widths:r,body:n},layout:{layout:"noBorders",hLineStyle:function(e,t){return 0},vLineWidth:function(e,t){return 0},hLineColor:function(e,t){return e<t.table.headerRows?ne.pdfmake.docDefinition.styles.header.background:ne.pdfmake.docDefinition.styles.alternateRow.fillColor},vLineColor:function(e,t){return e<t.table.headerRows?ne.pdfmake.docDefinition.styles.header.background:ne.pdfmake.docDefinition.styles.alternateRow.fillColor},fillColor:function(e,t,r){return 0==e%2?ne.pdfmake.docDefinition.styles.alternateRow.fillColor:null}},pageBreak:Ge.content.length?"before":void 0})})),"undefined"!=typeof pdfMake&&void 0!==pdfMake.createPdf&&(pdfMake.fonts={Roboto:{normal:"Roboto-Regular.ttf",bold:"Roboto-Medium.ttf",italics:"Roboto-Italic.ttf",bolditalics:"Roboto-MediumItalic.ttf"}},pdfMake.vfs.hasOwnProperty("Mirza-Regular.ttf")?(Ge.defaultStyle.font="Mirza",e.extend(!0,pdfMake.fonts,{Mirza:{normal:"Mirza-Regular.ttf",bold:"Mirza-Bold.ttf",italics:"Mirza-Medium.ttf",bolditalics:"Mirza-SemiBold.ttf"}})):pdfMake.vfs.hasOwnProperty("gbsn00lp.ttf")?(Ge.defaultStyle.font="gbsn00lp",e.extend(!0,pdfMake.fonts,{gbsn00lp:{normal:"gbsn00lp.ttf",bold:"gbsn00lp.ttf",italics:"gbsn00lp.ttf",bolditalics:"gbsn00lp.ttf"}})):pdfMake.vfs.hasOwnProperty("ZCOOLXiaoWei-Regular.ttf")&&(Ge.defaultStyle.font="ZCOOLXiaoWei",e.extend(!0,pdfMake.fonts,{ZCOOLXiaoWei:{normal:"ZCOOLXiaoWei-Regular.ttf",bold:"ZCOOLXiaoWei-Regular.ttf",italics:"ZCOOLXiaoWei-Regular.ttf",bolditalics:"ZCOOLXiaoWei-Regular.ttf"}})),e.extend(!0,pdfMake.fonts,ne.pdfmake.fonts),pdfMake.createPdf(Ge).getBuffer((function(e){D(e,ne.fileName+".pdf","application/pdf","","",!1)})))}else if(!1===ne.jspdf.autotable){var Xe=new jspdf.jsPDF({orientation:ne.jspdf.orientation,unit:ne.jspdf.unit,format:ne.jspdf.format});Xe.html(se[0],{callback:function(){p(Xe,!1)},html2canvas:{scale:(Xe.internal.pageSize.width-2*ne.jspdf.margins.left)/se[0].scrollWidth},x:ne.jspdf.margins.left,y:ne.jspdf.margins.top})}else{var Ye=ne.jspdf.autotable.tableExport;if("string"==typeof ne.jspdf.format&&"bestfit"===ne.jspdf.format.toLowerCase()){var Ke="",Je="",Ze=0;e(se).each((function(){if(u(e(this))){var t=P(e(this).get(0),"width","pt");if(t>Ze){for(var r in t>oe.a0[0]&&(Ke="a0",Je="l"),oe)oe.hasOwnProperty(r)&&oe[r][1]>t&&(Ke=r,Je="l",oe[r][0]>t&&(Je="p"));Ze=t}}})),ne.jspdf.format=""===Ke?"a4":Ke,ne.jspdf.orientation=""===Je?"w":Je}null==Ye.doc&&(Ye.doc=new jspdf.jsPDF(ne.jspdf.orientation,ne.jspdf.unit,ne.jspdf.format),Ye.wScaleFactor=1,Ye.hScaleFactor=1,"function"==typeof ne.jspdf.onDocCreated)&&ne.jspdf.onDocCreated(Ye.doc),ae.fontName=Ye.doc.getFont().fontName,!0===Ye.outputImages&&(Ye.images={}),void 0!==Ye.images&&(e(se).filter((function(){return u(e(this))})).each((function(){var t=0;pe=[],!1===ne.exportHiddenCells&&(ge=e(this).find("tr, th, td").filter(":hidden"),me=0<ge.length),le=a(e(this)),ue=s(e(this)),e(ue).each((function(){h(this,"td,th",le.length+t,le.length+ue.length,(function(t){m(t,e(t).children(),Ye)})),t++}))})),le=[],ue=[]),function(t,r){function n(t){if(t.url)if(t.src){var n=new Image;o=++i,n.crossOrigin="Anonymous",n.onerror=n.onload=function(){if(n.complete&&(0===n.src.indexOf("data:image/")&&(n.width=t.width||n.width||0,n.height=t.height||n.height||0),n.width+n.height)){var e=document.createElement("canvas"),a=e.getContext("2d");e.width=n.width,e.height=n.height,a.drawImage(n,0,0),t.src=e.toDataURL("image/png")}--i||r(o)},n.src=t.url}else{var a=e(t.url);a.length&&(o=++i,html2canvas(a[0]).then((function(e){t.src=e.toDataURL("image/png"),--i||r(o)})))}}var o=0,i=0;if(void 0!==t.images)for(var a in t.images)t.images.hasOwnProperty(a)&&n(t.images[a]);(t=i)||(r(o),t=void 0)}(Ye,(function(){e(se).filter((function(){return u(e(this))})).each((function(){var t;if(fe=0,pe=[],!1===ne.exportHiddenCells&&(ge=e(this).find("tr, th, td").filter(":hidden"),me=0<ge.length),de=l(this),Ye.columns=[],Ye.rows=[],Ye.teCells={},"function"==typeof Ye.onTable&&!1===Ye.onTable(e(this),ne))return!0;ne.jspdf.autotable.tableExport=null;var r=e.extend(!0,{},ne.jspdf.autotable);if(ne.jspdf.autotable.tableExport=Ye,r.margin={},e.extend(!0,r.margin,ne.jspdf.margins),r.tableExport=Ye,"function"!=typeof r.createdHeaderCell&&(r.createdHeaderCell=function(e,t){if(void 0!==Ye.columns[t.column.dataKey]){var n=Ye.columns[t.column.dataKey];if(void 0!==n.rect){if(e.contentWidth=n.rect.width,void 0===Ye.heightRatio||0===Ye.heightRatio){var o=t.row.raw[t.column.dataKey].rowspan?t.row.raw[t.column.dataKey].rect.height/t.row.raw[t.column.dataKey].rowspan:t.row.raw[t.column.dataKey].rect.height;Ye.heightRatio=e.styles.rowHeight/o}(o=t.row.raw[t.column.dataKey].rect.height*Ye.heightRatio)>e.styles.rowHeight&&(e.styles.rowHeight=o)}e.styles.halign="inherit"===r.headerStyles.halign?"center":r.headerStyles.halign,e.styles.valign=r.headerStyles.valign,void 0!==n.style&&!0!==n.style.hidden&&("inherit"===r.headerStyles.halign&&(e.styles.halign=n.style.align),"inherit"===r.styles.fillColor&&(e.styles.fillColor=n.style.bcolor),"inherit"===r.styles.textColor&&(e.styles.textColor=n.style.color),"inherit"===r.styles.fontStyle&&(e.styles.fontStyle=n.style.fstyle))}}),"function"!=typeof r.createdCell&&(r.createdCell=function(e,t){t=Ye.teCells[t.row.index+":"+t.column.dataKey],e.styles.halign="inherit"===r.styles.halign?"center":r.styles.halign,e.styles.valign=r.styles.valign,void 0!==t&&void 0!==t.style&&!0!==t.style.hidden&&("inherit"===r.styles.halign&&(e.styles.halign=t.style.align),"inherit"===r.styles.fillColor&&(e.styles.fillColor=t.style.bcolor),"inherit"===r.styles.textColor&&(e.styles.textColor=t.style.color),"inherit"===r.styles.fontStyle&&(e.styles.fontStyle=t.style.fstyle))}),"function"!=typeof r.drawHeaderCell&&(r.drawHeaderCell=function(e,t){var r=Ye.columns[t.column.dataKey];return(!0!==r.style.hasOwnProperty("hidden")||!0!==r.style.hidden)&&0<=r.rowIndex&&g(e,t,r)}),"function"!=typeof r.drawCell&&(r.drawCell=function(t,r){var n=Ye.teCells[r.row.index+":"+r.column.dataKey];if(!0!==(void 0!==n&&n.isCanvas))g(t,r,n)&&(Ye.doc.rect(t.x,t.y,t.width,t.height,t.styles.fillStyle),void 0===n||void 0!==n.hasUserDefText&&!0===n.hasUserDefText||void 0===n.elements||!n.elements.length?b(t,{},Ye):((r=t.height/n.rect.height)>Ye.hScaleFactor&&(Ye.hScaleFactor=r),Ye.wScaleFactor=t.width/n.rect.width,r=t.textPos.y,v(t,n.elements,Ye),t.textPos.y=r,b(t,n.elements,Ye)));else{n=n.elements[0];var o=e(n).attr("data-tableexport-canvas"),i=n.getBoundingClientRect();t.width=i.width*Ye.wScaleFactor,t.height=i.height*Ye.hScaleFactor,r.row.height=t.height,d(t,n,o,Ye)}return!1}),Ye.headerrows=[],le=a(e(this)),e(le).each((function(){t=0,Ye.headerrows[fe]=[],h(this,"th,td",fe,le.length,(function(e,r,n){var o=O(e);o.title=k(e,r,n),o.key=t++,o.rowIndex=fe,Ye.headerrows[fe].push(o)})),fe++})),0<fe)for(var n=fe-1;0<=n;)e.each(Ye.headerrows[n],(function(){var e=this;0<n&&null===this.rect&&(e=Ye.headerrows[n-1][this.key]),null!==e&&0<=e.rowIndex&&(!0!==e.style.hasOwnProperty("hidden")||!0!==e.style.hidden)&&Ye.columns.push(e)})),n=0<Ye.columns.length?-1:n-1;var o=0;ue=[],ue=s(e(this)),e(ue).each((function(){var r=[];t=0,h(this,"td,th",fe,le.length+ue.length,(function(n,i,a){if(void 0===Ye.columns[t]){var s={title:"",key:t,style:{hidden:!0}};Ye.columns.push(s)}r.push(k(n,i,a)),null!=n?((s=O(n)).isCanvas=n.hasAttribute("data-tableexport-canvas"),s.elements=s.isCanvas?e(n):e(n).children(),void 0!==e(n).data("teUserDefText")&&(s.hasUserDefText=!0)):(s=e.extend(!0,{},Ye.teCells[o+":"+(t-1)])).colspan=-1,Ye.teCells[o+":"+t++]=s})),r.length&&(Ye.rows.push(r),o++),fe++})),"function"==typeof Ye.onBeforeAutotable&&Ye.onBeforeAutotable(e(this),Ye.columns,Ye.rows,r),W(r.tableExport.doc,Ye.columns,Ye.rows,r),"function"==typeof Ye.onAfterAutotable&&Ye.onAfterAutotable(e(this),r);var i=ne.jspdf.autotable,c=void 0===Q||void 0===Q.y?0:Q.y;i.startY=c+r.margin.top})),p(Ye.doc,void 0!==Ye.images&&!1===jQuery.isEmptyObject(Ye.images)),void 0!==Ye.headerrows&&(Ye.headerrows.length=0),void 0!==Ye.columns&&(Ye.columns.length=0),void 0!==Ye.rows&&(Ye.rows.length=0),delete Ye.doc,Ye.doc=null}))}return"function"==typeof ne.onTableExportEnd&&ne.onTableExportEnd(),this};var t=function(){this.contentWidth=this.y=this.x=this.width=this.height=0,this.rows=[],this.columns=[],this.headerRow=null,this.settings={}},r=function(e){this.raw=e||{},this.index=0,this.styles={},this.cells={},this.y=this.height=0},n=function(e){this.raw=e,this.styles={},this.text="",this.contentWidth=0,this.textPos={},this.y=this.x=this.width=this.height=0},o=function(e){this.dataKey=e,this.options={},this.styles={},this.x=this.width=this.contentWidth=0}}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).jspdf={})}(this,(function(e){"use strict";var t=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function r(){t.console&&"function"==typeof t.console.log&&t.console.log.apply(t.console,arguments)}var n={log:r,warn:function(e){t.console&&("function"==typeof t.console.warn?t.console.warn.apply(t.console,arguments):r.call(null,arguments))},error:function(e){t.console&&("function"==typeof t.console.error?t.console.error.apply(t.console,arguments):r(e))}};function o(e,t,r){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){l(o.response,t,r)},o.onerror=function(){n.error("could not download file")},o.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var s,c,l=t.saveAs||("object"!=typeof window||window!==t?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,r,n){var s=t.URL||t.webkitURL,c=document.createElement("a");r=r||e.name||"download",c.download=r,c.rel="noopener","string"==typeof e?(c.href=e,c.origin!==location.origin?i(c.href)?o(e,r,n):a(c,c.target="_blank"):a(c)):(c.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){a(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download","string"==typeof e)if(i(e))o(e,t,r);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){a(s)}))}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(n.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,r),t)}:function(e,r,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return o(e,r,n);var a="application/octet-stream"===e.type,s=/constructor/i.test(t.HTMLElement)||t.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&s)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},l.readAsDataURL(e)}else{var u=t.URL||t.webkitURL,f=u.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout((function(){u.revokeObjectURL(f)}),4e4)}});function u(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",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",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],n=0;n<r.length;n++){var o=r[n].re,i=r[n].process,a=o.exec(e);a&&(t=i(a),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),"#"+e+t+r}}function f(e,t){var r=e[0],n=e[1],o=e[2],i=e[3];r=d(r,n,o,i,t[0],7,-680876936),i=d(i,r,n,o,t[1],12,-389564586),o=d(o,i,r,n,t[2],17,606105819),n=d(n,o,i,r,t[3],22,-1044525330),r=d(r,n,o,i,t[4],7,-176418897),i=d(i,r,n,o,t[5],12,1200080426),o=d(o,i,r,n,t[6],17,-1473231341),n=d(n,o,i,r,t[7],22,-45705983),r=d(r,n,o,i,t[8],7,1770035416),i=d(i,r,n,o,t[9],12,-1958414417),o=d(o,i,r,n,t[10],17,-42063),n=d(n,o,i,r,t[11],22,-1990404162),r=d(r,n,o,i,t[12],7,1804603682),i=d(i,r,n,o,t[13],12,-40341101),o=d(o,i,r,n,t[14],17,-1502002290),r=p(r,n=d(n,o,i,r,t[15],22,1236535329),o,i,t[1],5,-165796510),i=p(i,r,n,o,t[6],9,-1069501632),o=p(o,i,r,n,t[11],14,643717713),n=p(n,o,i,r,t[0],20,-373897302),r=p(r,n,o,i,t[5],5,-701558691),i=p(i,r,n,o,t[10],9,38016083),o=p(o,i,r,n,t[15],14,-660478335),n=p(n,o,i,r,t[4],20,-405537848),r=p(r,n,o,i,t[9],5,568446438),i=p(i,r,n,o,t[14],9,-1019803690),o=p(o,i,r,n,t[3],14,-187363961),n=p(n,o,i,r,t[8],20,1163531501),r=p(r,n,o,i,t[13],5,-1444681467),i=p(i,r,n,o,t[2],9,-51403784),o=p(o,i,r,n,t[7],14,1735328473),r=g(r,n=p(n,o,i,r,t[12],20,-1926607734),o,i,t[5],4,-378558),i=g(i,r,n,o,t[8],11,-2022574463),o=g(o,i,r,n,t[11],16,1839030562),n=g(n,o,i,r,t[14],23,-35309556),r=g(r,n,o,i,t[1],4,-1530992060),i=g(i,r,n,o,t[4],11,1272893353),o=g(o,i,r,n,t[7],16,-155497632),n=g(n,o,i,r,t[10],23,-1094730640),r=g(r,n,o,i,t[13],4,681279174),i=g(i,r,n,o,t[0],11,-358537222),o=g(o,i,r,n,t[3],16,-722521979),n=g(n,o,i,r,t[6],23,76029189),r=g(r,n,o,i,t[9],4,-640364487),i=g(i,r,n,o,t[12],11,-421815835),o=g(o,i,r,n,t[15],16,530742520),r=m(r,n=g(n,o,i,r,t[2],23,-995338651),o,i,t[0],6,-198630844),i=m(i,r,n,o,t[7],10,1126891415),o=m(o,i,r,n,t[14],15,-1416354905),n=m(n,o,i,r,t[5],21,-57434055),r=m(r,n,o,i,t[12],6,1700485571),i=m(i,r,n,o,t[3],10,-1894986606),o=m(o,i,r,n,t[10],15,-1051523),n=m(n,o,i,r,t[1],21,-2054922799),r=m(r,n,o,i,t[8],6,1873313359),i=m(i,r,n,o,t[15],10,-30611744),o=m(o,i,r,n,t[6],15,-1560198380),n=m(n,o,i,r,t[13],21,1309151649),r=m(r,n,o,i,t[4],6,-145523070),i=m(i,r,n,o,t[11],10,-1120210379),o=m(o,i,r,n,t[2],15,718787259),n=m(n,o,i,r,t[9],21,-343485551),e[0]=A(r,e[0]),e[1]=A(n,e[1]),e[2]=A(o,e[2]),e[3]=A(i,e[3])}function h(e,t,r,n,o,i){return t=A(A(t,e),A(n,i)),A(t<<o|t>>>32-o,r)}function d(e,t,r,n,o,i,a){return h(t&r|~t&n,e,t,o,i,a)}function p(e,t,r,n,o,i,a){return h(t&n|r&~n,e,t,o,i,a)}function g(e,t,r,n,o,i,a){return h(t^r^n,e,t,o,i,a)}function m(e,t,r,n,o,i,a){return h(r^(t|~n),e,t,o,i,a)}function v(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)f(n,b(e.substring(t-64,t)));e=e.substring(t-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(f(n,o),t=0;t<16;t++)o[t]=0;return o[14]=8*r,f(n,o),n}function b(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}s=t.atob.bind(t),c=t.btoa.bind(t);var y="0123456789abcdef".split("");function w(e){for(var t="",r=0;r<4;r++)t+=y[e>>8*r+4&15]+y[e>>8*r&15];return t}function S(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function x(e){return function(e){return e.map(S).join("")}(v(e))}function A(e,t){return e+t&4294967295}if("5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t<e.length;t++)e[t]=w(e[t]);return e.join("")}(v("hello"))){}function k(e,t){var r,n,o,i;if(e!==r){for(var a=(o=e,i=1+(256/e.length>>0),new Array(i+1).join(o)),s=[],c=0;c<256;c++)s[c]=c;var l=0;for(c=0;c<256;c++){var u=s[c];l=(l+u+a.charCodeAt(c))%256,s[c]=s[l],s[l]=u}r=e,n=s}else s=n;var f=t.length,h=0,d=0,p="";for(c=0;c<f;c++)d=(d+(u=s[h=(h+1)%256]))%256,s[h]=s[d],s[d]=u,a=s[(s[h]+s[d])%256],p+=String.fromCharCode(t.charCodeAt(c)^a);return p}var T={print:4,modify:8,copy:16,"annot-forms":32};function E(e,t,r,n){this.v=1,this.r=2;let o=192;e.forEach((function(e){if(void 0!==T.perm)throw new Error("Invalid permission: "+e);o+=T[e]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";let i=(t+this.padding).substr(0,32),a=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,a),this.P=-(1+(255^o)),this.encryptionKey=x(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=k(this.encryptionKey,this.padding)}function _(e){if("object"!=typeof e)throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var r={};this.subscribe=function(e,t,n){if(n=n||!1,"string"!=typeof e||"function"!=typeof t||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");r.hasOwnProperty(e)||(r[e]={});var o=Math.random().toString(35);return r[e][o]=[t,!!n],o},this.unsubscribe=function(e){for(var t in r)if(r[t][e])return delete r[t][e],0===Object.keys(r[t]).length&&delete r[t],!0;return!1},this.publish=function(o){if(r.hasOwnProperty(o)){var i=Array.prototype.slice.call(arguments,1),a=[];for(var s in r[o]){var c=r[o][s];try{c[0].apply(e,i)}catch(e){t.console&&n.error("jsPDF PubSub Error",e.message,e)}c[1]&&a.push(s)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return r}}function O(e){if(!(this instanceof O))return new O(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function N(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function C(e,t,r,n,o){if(!(this instanceof C))return new C(e,t,r,n,o);this.type="axial"===e?2:3,this.coords=t,this.colors=r,N.call(this,n,o)}function R(e,t,r,n,o){if(!(this instanceof R))return new R(e,t,r,n,o);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,N.call(this,n,o)}function P(e){var r,o="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],a=arguments[2],s=arguments[3],f=[],h=1,d=16,p="S",g=null;"object"==typeof(e=e||{})&&(o=e.orientation,i=e.unit||i,a=e.format||a,s=e.compress||e.compressPdf||s,null!==(g=e.encryption||null)&&(g.userPassword=g.userPassword||"",g.ownerPassword=g.ownerPassword||"",g.userPermissions=g.userPermissions||[]),h="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(r=e.precision),void 0!==e.floatPrecision&&(d=e.floatPrecision),p=e.defaultPathOperation||"S"),f=e.filters||(!0===s?["FlateEncode"]:f),i=i||"mm",o=(""+(o||"P")).toLowerCase();var m=e.putOnlyUsedFonts||!1,v={},b={internal:{},__private__:{}};b.__private__.PubSub=_;var y="1.3",w=b.__private__.getPdfVersion=function(){return y};b.__private__.setPdfVersion=function(e){y=e};var S={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};b.__private__.getPageFormats=function(){return S};var x=b.__private__.getPageFormat=function(e){return S[e]};a=a||"a4";var A={COMPAT:"compat",ADVANCED:"advanced"},k=A.COMPAT;function T(){this.saveGraphicsState(),le(new ze(ke,0,0,-ke,0,jr()*ke).toString()+" cm"),this.setFontSize(this.getFontSize()/ke),p="n",k=A.ADVANCED}function N(){this.restoreGraphicsState(),p="S",k=A.COMPAT}var L=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&e!==t&&(e=400==t?"italic"==e?"italic":"normal":700==t&&"italic"!==e?"bold":e+""+t),e};b.advancedAPI=function(e){var t=k===A.COMPAT;return t&&T.call(this),"function"!=typeof e||(e(this),t&&N.call(this)),this},b.compatAPI=function(e){var t=k===A.ADVANCED;return t&&N.call(this),"function"!=typeof e||(e(this),t&&T.call(this)),this},b.isAdvancedAPI=function(){return k===A.ADVANCED};var I,F=function(e){if(k!==A.ADVANCED)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},j=b.roundToPrecision=b.__private__.roundToPrecision=function(e,t){var n=r||t;if(isNaN(e)||isNaN(n))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(n).replace(/0+$/,"")};I=b.hpf=b.__private__.hpf="number"==typeof d?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return j(e,d)}:"smart"===d?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return j(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return j(e,16)};var D=b.f2=b.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return j(e,2)},M=b.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return j(e,3)},B=b.scale=b.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return k===A.COMPAT?e*ke:k===A.ADVANCED?e:void 0},W=function(e){return k===A.COMPAT?jr()-e:k===A.ADVANCED?e:void 0},U=function(e){return B(W(e))};b.__private__.setPrecision=b.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(r=parseInt(e,10))};var H,z="00000000000000000000000000000000",V=b.__private__.getFileId=function(){return z},q=b.__private__.setFileId=function(e){return z=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():z.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==g&&(qt=new E(g.userPermissions,g.userPassword,g.ownerPassword,z)),z};b.setFileId=function(e){return q(e),this},b.getFileId=function(){return V()};var $=b.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),r=t<0?"+":"-",n=Math.floor(Math.abs(t/60)),o=Math.abs(t%60),i=[r,J(n),"'",J(o),"'"].join("");return["D:",e.getFullYear(),J(e.getMonth()+1),J(e.getDate()),J(e.getHours()),J(e.getMinutes()),J(e.getSeconds()),i].join("")},G=b.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),r=parseInt(e.substr(6,2),10)-1,n=parseInt(e.substr(8,2),10),o=parseInt(e.substr(10,2),10),i=parseInt(e.substr(12,2),10),a=parseInt(e.substr(14,2),10);return new Date(t,r,n,o,i,a,0)},X=b.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=$(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return H=t},Y=b.__private__.getCreationDate=function(e){var t=H;return"jsDate"===e&&(t=G(H)),t};b.setCreationDate=function(e){return X(e),this},b.getCreationDate=function(e){return Y(e)};var K,J=b.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},Z=b.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},Q=0,ee=[],te=[],re=0,ne=[],oe=[],ie=!1,ae=te,se=function(){Q=0,re=0,te=[],ee=[],ne=[],Je=Xe(),Ze=Xe()};b.__private__.setCustomOutputDestination=function(e){ie=!0,ae=e};var ce=function(e){ie||(ae=e)};b.__private__.resetCustomOutputDestination=function(){ie=!1,ae=te};var le=b.__private__.out=function(e){return e=e.toString(),re+=e.length+1,ae.push(e),ae},ue=b.__private__.write=function(e){return le(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},fe=b.__private__.getArrayBuffer=function(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r);t--;)n[t]=e.charCodeAt(t);return r},he=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];b.__private__.getStandardFonts=function(){return he};var de=e.fontSize||16;b.__private__.setFontSize=b.setFontSize=function(e){return de=k===A.ADVANCED?e/ke:e,this};var pe,ge=b.__private__.getFontSize=b.getFontSize=function(){return k===A.COMPAT?de:de*ke},me=e.R2L||!1;b.__private__.setR2L=b.setR2L=function(e){return me=e,this},b.__private__.getR2L=b.getR2L=function(){return me};var ve,be=b.__private__.setZoomMode=function(e){if(/^\d*\.?\d*%$/.test(e))pe=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');pe=e}else pe=parseInt(e,10)};b.__private__.getZoomMode=function(){return pe};var ye,we=b.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');ve=e};b.__private__.getPageMode=function(){return ve};var Se=b.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');ye=e};b.__private__.getLayoutMode=function(){return ye},b.__private__.setDisplayMode=b.setDisplayMode=function(e,t,r){return be(e),Se(t),we(r),this};var xe={title:"",subject:"",author:"",keywords:"",creator:""};b.__private__.getDocumentProperty=function(e){if(-1===Object.keys(xe).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return xe[e]},b.__private__.getDocumentProperties=function(){return xe},b.__private__.setDocumentProperties=b.setProperties=b.setDocumentProperties=function(e){for(var t in xe)xe.hasOwnProperty(t)&&e[t]&&(xe[t]=e[t]);return this},b.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(xe).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return xe[e]=t};var Ae,ke,Te,Ee,_e,Oe={},Ne={},Ce=[],Re={},Pe={},Le={},Ie={},Fe=null,je=0,De=[],Me=new _(b),Be=e.hotfixes||[],We={},Ue={},He=[],ze=function(e,t,r,n,o,i){if(!(this instanceof ze))return new ze(e,t,r,n,o,i);isNaN(e)&&(e=1),isNaN(t)&&(t=0),isNaN(r)&&(r=0),isNaN(n)&&(n=1),isNaN(o)&&(o=0),isNaN(i)&&(i=0),this._matrix=[e,t,r,n,o,i]};Object.defineProperty(ze.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(ze.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(ze.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(ze.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(ze.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(ze.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(ze.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(ze.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(ze.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(ze.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(ze.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(ze.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(ze.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ze.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ze.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ze.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),ze.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(I).join(e)},ze.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,r=e.sx*this.shy+e.shy*this.sy,n=e.shx*this.sx+e.sy*this.shx,o=e.shx*this.shy+e.sy*this.sy,i=e.tx*this.sx+e.ty*this.shx+this.tx,a=e.tx*this.shy+e.ty*this.sy+this.ty;return new ze(t,r,n,o,i,a)},ze.prototype.decompose=function(){var e=this.sx,t=this.shy,r=this.shx,n=this.sy,o=this.tx,i=this.ty,a=Math.sqrt(e*e+t*t),s=(e/=a)*r+(t/=a)*n;r-=e*s,n-=t*s;var c=Math.sqrt(r*r+n*n);return s/=c,e*(n/=c)<t*(r/=c)&&(e=-e,t=-t,s=-s,a=-a),{scale:new ze(a,0,0,c,0,0),translate:new ze(1,0,0,1,o,i),rotate:new ze(e,t,-t,e,0,0),skew:new ze(1,0,s,1,0,0)}},ze.prototype.toString=function(e){return this.join(" ")},ze.prototype.inversed=function(){var e=this.sx,t=this.shy,r=this.shx,n=this.sy,o=this.tx,i=this.ty,a=1/(e*n-t*r),s=n*a,c=-t*a,l=-r*a,u=e*a;return new ze(s,c,l,u,-s*o-l*i,-c*o-u*i)},ze.prototype.applyToPoint=function(e){var t=e.x*this.sx+e.y*this.shx+this.tx,r=e.x*this.shy+e.y*this.sy+this.ty;return new Or(t,r)},ze.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),r=this.applyToPoint(new Or(e.x+e.w,e.y+e.h));return new Nr(t.x,t.y,r.x-t.x,r.y-t.y)},ze.prototype.clone=function(){var e=this.sx,t=this.shy,r=this.shx,n=this.sy,o=this.tx,i=this.ty;return new ze(e,t,r,n,o,i)},b.Matrix=ze;var Ve=b.matrixMult=function(e,t){return t.multiply(e)},qe=new ze(1,0,0,1,0,0);b.unitMatrix=b.identityMatrix=qe;var $e=function(e,t){if(!Pe[e]){var r=(t instanceof C?"Sh":"P")+(Object.keys(Re).length+1).toString(10);t.id=r,Pe[e]=r,Re[r]=t,Me.publish("addPattern",t)}};b.ShadingPattern=C,b.TilingPattern=R,b.addShadingPattern=function(e,t){return F("addShadingPattern()"),$e(e,t),this},b.beginTilingPattern=function(e){F("beginTilingPattern()"),Rr(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},b.endTilingPattern=function(e,t){F("endTilingPattern()"),t.stream=oe[K].join("\n"),$e(e,t),Me.publish("endTilingPattern",t),He.pop().restore()};var Ge=b.__private__.newObject=function(){var e=Xe();return Ye(e,!0),e},Xe=b.__private__.newObjectDeferred=function(){return Q++,ee[Q]=function(){return re},Q},Ye=function(e,t){return t="boolean"==typeof t&&t,ee[e]=re,t&&le(e+" 0 obj"),e},Ke=b.__private__.newAdditionalObject=function(){var e={objId:Xe(),content:""};return ne.push(e),e},Je=Xe(),Ze=Xe(),Qe=b.__private__.decodeColorString=function(e){var t=e.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var r=parseFloat(t[0]);t=[r,r,r,"r"]}for(var n="#",o=0;o<3;o++)n+=("0"+Math.floor(255*parseFloat(t[o])).toString(16)).slice(-2);return n},et=b.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});var r=e.ch1,n=e.ch2,o=e.ch3,i=e.ch4,a="draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof r&&"#"!==r.charAt(0)){var s=new u(r);if(s.ok)r=s.toHex();else if(!/^\d*\.?\d*$/.test(r))throw new Error('Invalid color "'+r+'" passed to jsPDF.encodeColorString.')}if("string"==typeof r&&/^#[0-9A-Fa-f]{3}$/.test(r)&&(r="#"+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]),"string"==typeof r&&/^#[0-9A-Fa-f]{6}$/.test(r)){var c=parseInt(r.substr(1),16);r=c>>16&255,n=c>>8&255,o=255&c}if(void 0===n||void 0===i&&r===n&&n===o)if("string"==typeof r)t=r+" "+a[0];else if(2===e.precision)t=D(r/255)+" "+a[0];else t=M(r/255)+" "+a[0];else if(void 0===i||"object"==typeof i){if(i&&!isNaN(i.a)&&0===i.a)return["1.","1.","1.",a[1]].join(" ");if("string"==typeof r)t=[r,n,o,a[1]].join(" ");else if(2===e.precision)t=[D(r/255),D(n/255),D(o/255),a[1]].join(" ");else t=[M(r/255),M(n/255),M(o/255),a[1]].join(" ")}else if("string"==typeof r)t=[r,n,o,i,a[2]].join(" ");else if(2===e.precision)t=[D(r),D(n),D(o),D(i),a[2]].join(" ");else t=[M(r),M(n),M(o),M(i),a[2]].join(" ");return t},tt=b.__private__.getFilters=function(){return f},rt=b.__private__.putStream=function(e){var t=(e=e||{}).data||"",r=e.filters||tt(),n=e.alreadyAppliedFilters||[],o=e.addLength1||!1,i=t.length,a=e.objectId,s=function(e){return e};if(null!==g&&void 0===a)throw new Error("ObjectId must be passed to putStream for file encryption");null!==g&&(s=qt.encryptor(a,0));var c={};!0===r&&(r=["FlateEncode"]);var l=e.additionalKeyValues||[],u=(c=void 0!==P.API.processDataByFilters?P.API.processDataByFilters(t,r):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(n)?n.join(" "):n.toString());if(0!==c.data.length&&(l.push({key:"Length",value:c.data.length}),!0===o&&l.push({key:"Length1",value:i})),0!=u.length)if(u.split("/").length-1==1)l.push({key:"Filter",value:u});else{l.push({key:"Filter",value:"["+u+"]"});for(var f=0;f<l.length;f+=1)if("DecodeParms"===l[f].key){for(var h=[],d=0;d<c.reverseChain.split("/").length-1;d+=1)h.push("null");h.push(l[f].value),l[f].value="["+h.join(" ")+"]"}}le("<<");for(var p=0;p<l.length;p++)le("/"+l[p].key+" "+l[p].value);le(">>"),0!==c.data.length&&(le("stream"),le(s(c.data)),le("endstream"))},nt=b.__private__.putPage=function(e){var t=e.number,r=e.data,n=e.objId,o=e.contentsObjId;Ye(n,!0),le("<</Type /Page"),le("/Parent "+e.rootDictionaryObjId+" 0 R"),le("/Resources "+e.resourceDictionaryObjId+" 0 R"),le("/MediaBox ["+parseFloat(I(e.mediaBox.bottomLeftX))+" "+parseFloat(I(e.mediaBox.bottomLeftY))+" "+I(e.mediaBox.topRightX)+" "+I(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&le("/CropBox ["+I(e.cropBox.bottomLeftX)+" "+I(e.cropBox.bottomLeftY)+" "+I(e.cropBox.topRightX)+" "+I(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&le("/BleedBox ["+I(e.bleedBox.bottomLeftX)+" "+I(e.bleedBox.bottomLeftY)+" "+I(e.bleedBox.topRightX)+" "+I(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&le("/TrimBox ["+I(e.trimBox.bottomLeftX)+" "+I(e.trimBox.bottomLeftY)+" "+I(e.trimBox.topRightX)+" "+I(e.trimBox.topRightY)+"]"),null!==e.artBox&&le("/ArtBox ["+I(e.artBox.bottomLeftX)+" "+I(e.artBox.bottomLeftY)+" "+I(e.artBox.topRightX)+" "+I(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&le("/UserUnit "+e.userUnit),Me.publish("putPage",{objId:n,pageContext:De[t],pageNumber:t,page:r}),le("/Contents "+o+" 0 R"),le(">>"),le("endobj");var i=r.join("\n");return k===A.ADVANCED&&(i+="\nQ"),Ye(o,!0),rt({data:i,filters:tt(),objectId:o}),le("endobj"),n},ot=b.__private__.putPages=function(){var e,t,r=[];for(e=1;e<=je;e++)De[e].objId=Xe(),De[e].contentsObjId=Xe();for(e=1;e<=je;e++)r.push(nt({number:e,data:oe[e],objId:De[e].objId,contentsObjId:De[e].contentsObjId,mediaBox:De[e].mediaBox,cropBox:De[e].cropBox,bleedBox:De[e].bleedBox,trimBox:De[e].trimBox,artBox:De[e].artBox,userUnit:De[e].userUnit,rootDictionaryObjId:Je,resourceDictionaryObjId:Ze}));Ye(Je,!0),le("<</Type /Pages");var n="/Kids [";for(t=0;t<je;t++)n+=r[t]+" 0 R ";le(n+"]"),le("/Count "+je),le(">>"),le("endobj"),Me.publish("postPutPages")},it=function(e){var t=function(e,t){return-1!==e.indexOf(" ")?"("+Nt(e,t)+")":Nt(e,t)};Me.publish("putFont",{font:e,out:le,newObject:Ge,putStream:rt,pdfEscapeWithNeededParanthesis:t}),!0!==e.isAlreadyPutted&&(e.objectNumber=Ge(),le("<<"),le("/Type /Font"),le("/BaseFont /"+t(e.postScriptName)),le("/Subtype /Type1"),"string"==typeof e.encoding&&le("/Encoding /"+e.encoding),le("/FirstChar 32"),le("/LastChar 255"),le(">>"),le("endobj"))},at=function(){for(var e in Oe)Oe.hasOwnProperty(e)&&(!1===m||!0===m&&v.hasOwnProperty(e))&&it(Oe[e])},st=function(e){e.objectNumber=Ge();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[I(e.x),I(e.y),I(e.x+e.width),I(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var r=e.pages[1].join("\n");rt({data:r,additionalKeyValues:t,objectId:e.objectNumber}),le("endobj")},ct=function(){for(var e in We)We.hasOwnProperty(e)&&st(We[e])},lt=function(e,t){var r,n=[],o=1/(t-1);for(r=0;r<1;r+=o)n.push(r);if(n.push(1),0!=e[0].offset){var i={offset:0,color:e[0].color};e.unshift(i)}if(1!=e[e.length-1].offset){var a={offset:1,color:e[e.length-1].color};e.push(a)}for(var s="",c=0,l=0;l<n.length;l++){for(r=n[l];r>e[c+1].offset;)c++;var u=e[c].offset,f=(r-u)/(e[c+1].offset-u),h=e[c].color,d=e[c+1].color;s+=Z(Math.round((1-f)*h[0]+f*d[0]).toString(16))+Z(Math.round((1-f)*h[1]+f*d[1]).toString(16))+Z(Math.round((1-f)*h[2]+f*d[2]).toString(16))}return s.trim()},ut=function(e,t){t||(t=21);var r=Ge(),n=lt(e.colors,t),o=[];o.push({key:"FunctionType",value:"0"}),o.push({key:"Domain",value:"[0.0 1.0]"}),o.push({key:"Size",value:"["+t+"]"}),o.push({key:"BitsPerSample",value:"8"}),o.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),o.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),rt({data:n,additionalKeyValues:o,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),le("endobj"),e.objectNumber=Ge(),le("<< /ShadingType "+e.type),le("/ColorSpace /DeviceRGB");var i="/Coords ["+I(parseFloat(e.coords[0]))+" "+I(parseFloat(e.coords[1]))+" ";2===e.type?i+=I(parseFloat(e.coords[2]))+" "+I(parseFloat(e.coords[3])):i+=I(parseFloat(e.coords[2]))+" "+I(parseFloat(e.coords[3]))+" "+I(parseFloat(e.coords[4]))+" "+I(parseFloat(e.coords[5])),le(i+="]"),e.matrix&&le("/Matrix ["+e.matrix.toString()+"]"),le("/Function "+r+" 0 R"),le("/Extend [true true]"),le(">>"),le("endobj")},ft=function(e,t){var r=Xe(),n=Ge();t.push({resourcesOid:r,objectOid:n}),e.objectNumber=n;var o=[];o.push({key:"Type",value:"/Pattern"}),o.push({key:"PatternType",value:"1"}),o.push({key:"PaintType",value:"1"}),o.push({key:"TilingType",value:"1"}),o.push({key:"BBox",value:"["+e.boundingBox.map(I).join(" ")+"]"}),o.push({key:"XStep",value:I(e.xStep)}),o.push({key:"YStep",value:I(e.yStep)}),o.push({key:"Resources",value:r+" 0 R"}),e.matrix&&o.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),rt({data:e.stream,additionalKeyValues:o,objectId:e.objectNumber}),le("endobj")},ht=function(e){var t;for(t in Re)Re.hasOwnProperty(t)&&(Re[t]instanceof C?ut(Re[t]):Re[t]instanceof R&&ft(Re[t],e))},dt=function(e){for(var t in e.objectNumber=Ge(),le("<<"),e)switch(t){case"opacity":le("/ca "+D(e[t]));break;case"stroke-opacity":le("/CA "+D(e[t]))}le(">>"),le("endobj")},pt=function(){var e;for(e in Le)Le.hasOwnProperty(e)&&dt(Le[e])},gt=function(){for(var e in le("/XObject <<"),We)We.hasOwnProperty(e)&&We[e].objectNumber>=0&&le("/"+e+" "+We[e].objectNumber+" 0 R");Me.publish("putXobjectDict"),le(">>")},mt=function(){qt.oid=Ge(),le("<<"),le("/Filter /Standard"),le("/V "+qt.v),le("/R "+qt.r),le("/U <"+qt.toHexString(qt.U)+">"),le("/O <"+qt.toHexString(qt.O)+">"),le("/P "+qt.P),le(">>"),le("endobj")},vt=function(){for(var e in le("/Font <<"),Oe)Oe.hasOwnProperty(e)&&(!1===m||!0===m&&v.hasOwnProperty(e))&&le("/"+e+" "+Oe[e].objectNumber+" 0 R");le(">>")},bt=function(){if(Object.keys(Re).length>0){for(var e in le("/Shading <<"),Re)Re.hasOwnProperty(e)&&Re[e]instanceof C&&Re[e].objectNumber>=0&&le("/"+e+" "+Re[e].objectNumber+" 0 R");Me.publish("putShadingPatternDict"),le(">>")}},yt=function(e){if(Object.keys(Re).length>0){for(var t in le("/Pattern <<"),Re)Re.hasOwnProperty(t)&&Re[t]instanceof b.TilingPattern&&Re[t].objectNumber>=0&&Re[t].objectNumber<e&&le("/"+t+" "+Re[t].objectNumber+" 0 R");Me.publish("putTilingPatternDict"),le(">>")}},wt=function(){if(Object.keys(Le).length>0){var e;for(e in le("/ExtGState <<"),Le)Le.hasOwnProperty(e)&&Le[e].objectNumber>=0&&le("/"+e+" "+Le[e].objectNumber+" 0 R");Me.publish("putGStateDict"),le(">>")}},St=function(e){Ye(e.resourcesOid,!0),le("<<"),le("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),vt(),bt(),yt(e.objectOid),wt(),gt(),le(">>"),le("endobj")},xt=function(){var e=[];at(),pt(),ct(),ht(e),Me.publish("putResources"),e.forEach(St),St({resourcesOid:Ze,objectOid:Number.MAX_SAFE_INTEGER}),Me.publish("postPutResources")},At=function(){Me.publish("putAdditionalObjects");for(var e=0;e<ne.length;e++){var t=ne[e];Ye(t.objId,!0),le(t.content),le("endobj")}Me.publish("postPutAdditionalObjects")},kt=function(e){Ne[e.fontName]=Ne[e.fontName]||{},Ne[e.fontName][e.fontStyle]=e.id},Tt=function(e,t,r,n,o){var i={id:"F"+(Object.keys(Oe).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:r,encoding:n,isStandardFont:o||!1,metadata:{}};return Me.publish("addFont",{font:i,instance:this}),Oe[i.id]=i,kt(i),i.id},Et=function(e){for(var t=0,r=he.length;t<r;t++){var n=Tt.call(this,e[t][0],e[t][1],e[t][2],he[t][3],!0);!1===m&&(v[n]=!0);var o=e[t][0].split("-");kt({id:n,fontName:o[0],fontStyle:o[1]||""})}Me.publish("addFonts",{fonts:Oe,dictionary:Ne})},_t=function(e){return e.foo=function(){try{return e.apply(this,arguments)}catch(e){var r=e.stack||"";~r.indexOf(" at ")&&(r=r.split(" at ")[1]);var n="Error in function "+r.split("\n")[0].split("<")[0]+": "+e.message;if(!t.console)throw new Error(n);t.console.error(n,e),t.alert&&alert(n)}},e.foo.bar=e,e.foo},Ot=function(e,t){var r,n,o,i,a,s,c,l,u;if(o=(t=t||{}).sourceEncoding||"Unicode",a=t.outputEncoding,(t.autoencode||a)&&Oe[Ae].metadata&&Oe[Ae].metadata[o]&&Oe[Ae].metadata[o].encoding&&(i=Oe[Ae].metadata[o].encoding,!a&&Oe[Ae].encoding&&(a=Oe[Ae].encoding),!a&&i.codePages&&(a=i.codePages[0]),"string"==typeof a&&(a=i[a]),a)){for(c=!1,s=[],r=0,n=e.length;r<n;r++)(l=a[e.charCodeAt(r)])?s.push(String.fromCharCode(l)):s.push(e[r]),s[r].charCodeAt(0)>>8&&(c=!0);e=s.join("")}for(r=e.length;void 0===c&&0!==r;)e.charCodeAt(r-1)>>8&&(c=!0),r--;if(!c)return e;for(s=t.noBOM?[]:[254,255],r=0,n=e.length;r<n;r++){if((u=(l=e.charCodeAt(r))>>8)>>8)throw new Error("Character at position "+r+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(u),s.push(l-(u<<8))}return String.fromCharCode.apply(void 0,s)},Nt=b.__private__.pdfEscape=b.pdfEscape=function(e,t){return Ot(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ct=b.__private__.beginPage=function(e){oe[++je]=[],De[je]={objId:0,contentsObjId:0,userUnit:Number(h),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},Lt(je),ce(oe[K])},Rt=function(e,t){var r,i,s;switch(o=t||o,"string"==typeof e&&(r=x(e.toLowerCase()),Array.isArray(r)&&(i=r[0],s=r[1])),Array.isArray(e)&&(i=e[0]*ke,s=e[1]*ke),isNaN(i)&&(i=a[0],s=a[1]),(i>14400||s>14400)&&(n.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),s=Math.min(14400,s)),a=[i,s],o.substr(0,1)){case"l":s>i&&(a=[s,i]);break;case"p":i>s&&(a=[s,i])}Ct(a),fr(ur),le(yr),0!==Tr&&le(Tr+" J"),0!==Er&&le(Er+" j"),Me.publish("addPage",{pageNumber:je})},Pt=function(e){e>0&&e<=je&&(oe.splice(e,1),De.splice(e,1),je--,K>je&&(K=je),this.setPage(K))},Lt=function(e){e>0&&e<=je&&(K=e)},It=b.__private__.getNumberOfPages=b.getNumberOfPages=function(){return oe.length-1},Ft=function(e,t,r){var o,i=void 0;return r=r||{},e=void 0!==e?e:Oe[Ae].fontName,t=void 0!==t?t:Oe[Ae].fontStyle,o=e.toLowerCase(),void 0!==Ne[o]&&void 0!==Ne[o][t]?i=Ne[o][t]:void 0!==Ne[e]&&void 0!==Ne[e][t]?i=Ne[e][t]:!1===r.disableWarning&&n.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),i||r.noFallback||null==(i=Ne.times[t])&&(i=Ne.times.normal),i},jt=b.__private__.putInfo=function(){var e=Ge(),t=function(e){return e};for(var r in null!==g&&(t=qt.encryptor(e,0)),le("<<"),le("/Producer ("+Nt(t("jsPDF "+P.version))+")"),xe)xe.hasOwnProperty(r)&&xe[r]&&le("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+Nt(t(xe[r]))+")");le("/CreationDate ("+Nt(t(H))+")"),le(">>"),le("endobj")},Dt=b.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Je;switch(Ge(),le("<<"),le("/Type /Catalog"),le("/Pages "+t+" 0 R"),pe||(pe="fullwidth"),pe){case"fullwidth":le("/OpenAction [3 0 R /FitH null]");break;case"fullheight":le("/OpenAction [3 0 R /FitV null]");break;case"fullpage":le("/OpenAction [3 0 R /Fit]");break;case"original":le("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+pe;"%"===r.substr(r.length-1)&&(pe=parseInt(pe)/100),"number"==typeof pe&&le("/OpenAction [3 0 R /XYZ null null "+D(pe)+"]")}switch(ye||(ye="continuous"),ye){case"continuous":le("/PageLayout /OneColumn");break;case"single":le("/PageLayout /SinglePage");break;case"two":case"twoleft":le("/PageLayout /TwoColumnLeft");break;case"tworight":le("/PageLayout /TwoColumnRight")}ve&&le("/PageMode /"+ve),Me.publish("putCatalog"),le(">>"),le("endobj")},Mt=b.__private__.putTrailer=function(){le("trailer"),le("<<"),le("/Size "+(Q+1)),le("/Root "+Q+" 0 R"),le("/Info "+(Q-1)+" 0 R"),null!==g&&le("/Encrypt "+qt.oid+" 0 R"),le("/ID [ <"+z+"> <"+z+"> ]"),le(">>")},Bt=b.__private__.putHeader=function(){le("%PDF-"+y),le("%ºß¬à")},Wt=b.__private__.putXRef=function(){var e="0000000000";le("xref"),le("0 "+(Q+1)),le("0000000000 65535 f ");for(var t=1;t<=Q;t++)"function"==typeof ee[t]?le((e+ee[t]()).slice(-10)+" 00000 n "):void 0!==ee[t]?le((e+ee[t]).slice(-10)+" 00000 n "):le("0000000000 00000 n ")},Ut=b.__private__.buildDocument=function(){se(),ce(te),Me.publish("buildDocument"),Bt(),ot(),At(),xt(),null!==g&&mt(),jt(),Dt();var e=re;return Wt(),Mt(),le("startxref"),le(""+e),le("%%EOF"),ce(oe[K]),te.join("\n")},Ht=b.__private__.getBlob=function(e){return new Blob([fe(e)],{type:"application/pdf"})},zt=b.output=b.__private__.output=_t((function(e,r){switch("string"==typeof(r=r||{})?r={filename:r}:r.filename=r.filename||"generated.pdf",e){case void 0:return Ut();case"save":b.save(r.filename);break;case"arraybuffer":return fe(Ut());case"blob":return Ht(Ut());case"bloburi":case"bloburl":if(void 0!==t.URL&&"function"==typeof t.URL.createObjectURL)return t.URL&&t.URL.createObjectURL(Ht(Ut()))||void 0;n.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var o="",i=Ut();try{o=c(i)}catch(e){o=c(unescape(encodeURIComponent(i)))}return"data:application/pdf;filename="+r.filename+";base64,"+o;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(t)){var a='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+(r.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(r)+");<\/script></body></html>",s=t.open();return null!==s&&s.document.write(a),s}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(t)){var l='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(r.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+r.filename+'" width="500px" height="400px" /></body></html>',u=t.open();if(null!==u){u.document.write(l);var f=this;u.document.documentElement.querySelector("#pdfViewer").onload=function(){u.document.title=r.filename,u.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(f.output("bloburl"))}}return u}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(t))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var h='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",r)+'"></iframe></body></html>',d=t.open();if(null!==d&&(d.document.write(h),d.document.title=r.filename),d||"undefined"==typeof safari)return d;break;case"datauri":case"dataurl":return t.document.location.href=this.output("datauristring",r);default:return null}})),Vt=function(e){return!0===Array.isArray(Be)&&Be.indexOf(e)>-1};switch(i){case"pt":ke=1;break;case"mm":ke=72/25.4;break;case"cm":ke=72/2.54;break;case"in":ke=72;break;case"px":ke=1==Vt("px_scaling")?.75:96/72;break;case"pc":case"em":ke=12;break;case"ex":ke=6;break;default:throw new Error("Invalid unit: "+i)}var qt=null;X(),q();var $t=function(e){return null!==g?qt.encryptor(e,0):function(e){return e}},Gt=b.__private__.getPageInfo=b.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:De[e].objId,pageNumber:e,pageContext:De[e]}},Xt=b.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in De)if(De[t].objId===e)break;return Gt(t)},Yt=b.__private__.getCurrentPageInfo=b.getCurrentPageInfo=function(){return{objId:De[K].objId,pageNumber:K,pageContext:De[K]}};b.addPage=function(){return Rt.apply(this,arguments),this},b.setPage=function(){return Lt.apply(this,arguments),ce.call(this,oe[K]),this},b.insertPage=function(e){return this.addPage(),this.movePage(K,e),this},b.movePage=function(e,t){var r,n;if(e>t){r=oe[e],n=De[e];for(var o=e;o>t;o--)oe[o]=oe[o-1],De[o]=De[o-1];oe[t]=r,De[t]=n,this.setPage(t)}else if(e<t){r=oe[e],n=De[e];for(var i=e;i<t;i++)oe[i]=oe[i+1],De[i]=De[i+1];oe[t]=r,De[t]=n,this.setPage(t)}return this},b.deletePage=function(){return Pt.apply(this,arguments),this},b.__private__.text=b.text=function(e,t,r,n,o){var i,a,s,c,l,u,f,h,d=(n=n||{}).scope||this;if("number"==typeof e&&"number"==typeof t&&("string"==typeof r||Array.isArray(r))){var p=r;r=t,t=e,e=p}if(arguments[3]instanceof ze==0?(s=arguments[4],c=arguments[5],"object"==typeof(f=arguments[3])&&null!==f||("string"==typeof s&&(c=s,s=null),"string"==typeof f&&(c=f,f=null),"number"==typeof f&&(s=f,f=null),n={flags:f,angle:s,align:c})):(F("The transform parameter of text() with a Matrix value"),h=o),isNaN(t)||isNaN(r)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return d;var g="",m=!1,b="number"==typeof n.lineHeightFactor?n.lineHeightFactor:lr,y=d.internal.scaleFactor;function w(e){return e=e.split("\t").join(Array(n.TabLen||9).join(" ")),Nt(e,f)}function S(e){for(var t,r=e.concat(),n=[],o=r.length;o--;)"string"==typeof(t=r.shift())?n.push(t):Array.isArray(e)&&(1===t.length||void 0===t[1]&&void 0===t[2])?n.push(t[0]):n.push([t[0],t[1],t[2]]);return n}function x(e,t){var r;if("string"==typeof e)r=t(e)[0];else if(Array.isArray(e)){for(var n,o,i=e.concat(),a=[],s=i.length;s--;)"string"==typeof(n=i.shift())?a.push(t(n)[0]):Array.isArray(n)&&"string"==typeof n[0]&&(o=t(n[0],n[1],n[2]),a.push([o[0],o[1],o[2]]));r=a}return r}var T=!1,E=!0;if("string"==typeof e)T=!0;else if(Array.isArray(e)){var _=e.concat();a=[];for(var O,N=_.length;N--;)("string"!=typeof(O=_.shift())||Array.isArray(O)&&"string"!=typeof O[0])&&(E=!1);T=E}if(!1===T)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var C=de/d.internal.scaleFactor,R=C*(lr-1);switch(n.baseline){case"bottom":r-=R;break;case"top":r+=C-R;break;case"hanging":r+=C-2*R;break;case"middle":r+=C/2-R}if((u=n.maxWidth||0)>0&&("string"==typeof e?e=d.splitTextToSize(e,u):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(d.splitTextToSize(t,u))}),[]))),i={text:e,x:t,y:r,options:n,mutex:{pdfEscape:Nt,activeFontKey:Ae,fonts:Oe,activeFontSize:de}},Me.publish("preProcessText",i),e=i.text,s=(n=i.options).angle,h instanceof ze==0&&s&&"number"==typeof s){s*=Math.PI/180,0===n.rotationDirection&&(s=-s),k===A.ADVANCED&&(s=-s);var P=Math.cos(s),L=Math.sin(s);h=new ze(P,L,-L,P,0,0)}else s&&s instanceof ze&&(h=s);k!==A.ADVANCED||h||(h=qe),void 0!==(l=n.charSpace||Ar)&&(g+=I(B(l))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),n.lang;var j=-1,D=void 0!==n.renderingMode?n.renderingMode:n.stroke,M=d.internal.getCurrentPageInfo().pageContext;switch(D){case 0:case!1:case"fill":j=0;break;case 1:case!0:case"stroke":j=1;break;case 2:case"fillThenStroke":j=2;break;case 3:case"invisible":j=3;break;case 4:case"fillAndAddForClipping":j=4;break;case 5:case"strokeAndAddPathForClipping":j=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":j=6;break;case 7:case"addToPathForClipping":j=7}var W=void 0!==M.usedRenderingMode?M.usedRenderingMode:-1;-1!==j?g+=j+" Tr\n":-1!==W&&(g+="0 Tr\n"),-1!==j&&(M.usedRenderingMode=j),c=n.align||"left";var U,H=de*b,z=d.internal.pageSize.getWidth(),V=Oe[Ae];l=n.charSpace||Ar,u=n.maxWidth||0,f=Object.assign({autoencode:!0,noBOM:!0},n.flags);var q=[];if("[object Array]"===Object.prototype.toString.call(e)){var $;a=S(e),"left"!==c&&(U=a.map((function(e){return d.getStringUnitWidth(e,{font:V,charSpace:l,fontSize:de,doKerning:!1})*de/y})));var G,X=0;if("right"===c){t-=U[0],e=[],N=a.length;for(var Y=0;Y<N;Y++)0===Y?(G=gr(t),$=mr(r)):(G=B(X-U[Y]),$=-H),e.push([a[Y],G,$]),X=U[Y]}else if("center"===c){t-=U[0]/2,e=[],N=a.length;for(var K=0;K<N;K++)0===K?(G=gr(t),$=mr(r)):(G=B((X-U[K])/2),$=-H),e.push([a[K],G,$]),X=U[K]}else if("left"===c){e=[],N=a.length;for(var J=0;J<N;J++)e.push(a[J])}else{if("justify"!==c)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');e=[],N=a.length,u=0!==u?u:z;for(var Z=0;Z<N;Z++)$=0===Z?mr(r):-H,G=0===Z?gr(t):0,Z<N-1&&q.push(I(B((u-U[Z])/(a[Z].split(" ").length-1)))),e.push([a[Z],G,$])}}var Q="boolean"==typeof n.R2L?n.R2L:me;!0===Q&&(e=x(e,(function(e,t,r){return[e.split("").reverse().join(""),t,r]}))),i={text:e,x:t,y:r,options:n,mutex:{pdfEscape:Nt,activeFontKey:Ae,fonts:Oe,activeFontSize:de}},Me.publish("postProcessText",i),e=i.text,m=i.mutex.isHex||!1;var ee=Oe[Ae].encoding;"WinAnsiEncoding"!==ee&&"StandardEncoding"!==ee||(e=x(e,(function(e,t,r){return[w(e),t,r]}))),a=S(e),e=[];for(var te,re,ne,oe=0,ie=1,ae=Array.isArray(a[0])?ie:oe,se="",ce=function(e,t,r){var o="";return r instanceof ze?(r="number"==typeof n.angle?Ve(r,new ze(1,0,0,1,e,t)):Ve(new ze(1,0,0,1,e,t),r),k===A.ADVANCED&&(r=Ve(new ze(1,0,0,-1,0,0),r)),o=r.join(" ")+" Tm\n"):o=I(e)+" "+I(t)+" Td\n",o},ue=0;ue<a.length;ue++){switch(se="",ae){case ie:ne=(m?"<":"(")+a[ue][0]+(m?">":")"),te=parseFloat(a[ue][1]),re=parseFloat(a[ue][2]);break;case oe:ne=(m?"<":"(")+a[ue]+(m?">":")"),te=gr(t),re=mr(r)}void 0!==q&&void 0!==q[ue]&&(se=q[ue]+" Tw\n"),0===ue?e.push(se+ce(te,re,h)+ne):ae===oe?e.push(se+ne):ae===ie&&e.push(se+ce(te,re,h)+ne)}e=ae===oe?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var fe="BT\n/";return fe+=Ae+" "+de+" Tf\n",fe+=I(de*b)+" TL\n",fe+=Sr+"\n",fe+=g,fe+=e,le(fe+="ET"),v[Ae]=!0,d};var Kt=b.__private__.clip=b.clip=function(e){return le("evenodd"===e?"W*":"W"),this};b.clipEvenOdd=function(){return Kt("evenodd")},b.__private__.discardPath=b.discardPath=function(){return le("n"),this};var Jt=b.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(e)&&(t=!0),t};b.__private__.setDefaultPathOperation=b.setDefaultPathOperation=function(e){return Jt(e)&&(p=e),this};var Zt=b.__private__.getStyle=b.getStyle=function(e){var t=p;switch(e){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=e}return t},Qt=b.close=function(){return le("h"),this};b.stroke=function(){return le("S"),this},b.fill=function(e){return er("f",e),this},b.fillEvenOdd=function(e){return er("f*",e),this},b.fillStroke=function(e){return er("B",e),this},b.fillStrokeEvenOdd=function(e){return er("B*",e),this};var er=function(e,t){"object"==typeof t?nr(t,e):le(e)},tr=function(e){null===e||k===A.ADVANCED&&void 0===e||(e=Zt(e),le(e))};function rr(e,t,r,n,o){var i=new R(t||this.boundingBox,r||this.xStep,n||this.yStep,this.gState,o||this.matrix);i.stream=this.stream;var a=e+"$$"+this.cloneIndex+++"$$";return $e(a,i),i}var nr=function(e,t){var r=Pe[e.key],n=Re[r];if(n instanceof C)le("q"),le(or(t)),n.gState&&b.setGState(n.gState),le(e.matrix.toString()+" cm"),le("/"+r+" sh"),le("Q");else if(n instanceof R){var o=new ze(1,0,0,-1,0,jr());e.matrix&&(o=o.multiply(e.matrix||qe),r=rr.call(n,e.key,e.boundingBox,e.xStep,e.yStep,o).id),le("q"),le("/Pattern cs"),le("/"+r+" scn"),n.gState&&b.setGState(n.gState),le(t),le("Q")}},or=function(e){switch(e){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},ir=b.moveTo=function(e,t){return le(I(B(e))+" "+I(U(t))+" m"),this},ar=b.lineTo=function(e,t){return le(I(B(e))+" "+I(U(t))+" l"),this},sr=b.curveTo=function(e,t,r,n,o,i){return le([I(B(e)),I(U(t)),I(B(r)),I(U(n)),I(B(o)),I(U(i)),"c"].join(" ")),this};b.__private__.line=b.line=function(e,t,r,n,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||!Jt(o))throw new Error("Invalid arguments passed to jsPDF.line");return k===A.COMPAT?this.lines([[r-e,n-t]],e,t,[1,1],o||"S"):this.lines([[r-e,n-t]],e,t,[1,1]).stroke()},b.__private__.lines=b.lines=function(e,t,r,n,o,i){var a,s,c,l,u,f,h,d,p,g,m,v;if("number"==typeof e&&(v=r,r=t,t=e,e=v),n=n||[1,1],i=i||!1,isNaN(t)||isNaN(r)||!Array.isArray(e)||!Array.isArray(n)||!Jt(o)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(ir(t,r),a=n[0],s=n[1],l=e.length,g=t,m=r,c=0;c<l;c++)2===(u=e[c]).length?(g=u[0]*a+g,m=u[1]*s+m,ar(g,m)):(f=u[0]*a+g,h=u[1]*s+m,d=u[2]*a+g,p=u[3]*s+m,g=u[4]*a+g,m=u[5]*s+m,sr(f,h,d,p,g,m));return i&&Qt(),tr(o),this},b.path=function(e){for(var t=0;t<e.length;t++){var r=e[t],n=r.c;switch(r.op){case"m":ir(n[0],n[1]);break;case"l":ar(n[0],n[1]);break;case"c":sr.apply(this,n);break;case"h":Qt()}}return this},b.__private__.rect=b.rect=function(e,t,r,n,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||!Jt(o))throw new Error("Invalid arguments passed to jsPDF.rect");return k===A.COMPAT&&(n=-n),le([I(B(e)),I(U(t)),I(B(r)),I(B(n)),"re"].join(" ")),tr(o),this},b.__private__.triangle=b.triangle=function(e,t,r,n,o,i,a){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(o)||isNaN(i)||!Jt(a))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[r-e,n-t],[o-r,i-n],[e-o,t-i]],e,t,[1,1],a,!0),this},b.__private__.roundedRect=b.roundedRect=function(e,t,r,n,o,i,a){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(o)||isNaN(i)||!Jt(a))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return o=Math.min(o,.5*r),i=Math.min(i,.5*n),this.lines([[r-2*o,0],[o*s,0,o,i-i*s,o,i],[0,n-2*i],[0,i*s,-o*s,i,-o,i],[2*o-r,0],[-o*s,0,-o,-i*s,-o,-i],[0,2*i-n],[0,-i*s,o*s,-i,o,-i]],e+o,t,[1,1],a,!0),this},b.__private__.ellipse=b.ellipse=function(e,t,r,n,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||!Jt(o))throw new Error("Invalid arguments passed to jsPDF.ellipse");var i=4/3*(Math.SQRT2-1)*r,a=4/3*(Math.SQRT2-1)*n;return ir(e+r,t),sr(e+r,t-a,e+i,t-n,e,t-n),sr(e-i,t-n,e-r,t-a,e-r,t),sr(e-r,t+a,e-i,t+n,e,t+n),sr(e+i,t+n,e+r,t+a,e+r,t),tr(o),this},b.__private__.circle=b.circle=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||!Jt(n))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,r,r,n)},b.setFont=function(e,t,r){return r&&(t=L(t,r)),Ae=Ft(e,t,{disableWarning:!1}),this};var cr=b.__private__.getFont=b.getFont=function(){return Oe[Ft.apply(b,arguments)]};b.__private__.getFontList=b.getFontList=function(){var e,t,r={};for(e in Ne)if(Ne.hasOwnProperty(e))for(t in r[e]=[],Ne[e])Ne[e].hasOwnProperty(t)&&r[e].push(t);return r},b.addFont=function(e,t,r,n,o){var i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==i.indexOf(arguments[3])?o=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(r=L(r,n)),o=o||"Identity-H",Tt.call(this,e,t,r,o)};var lr,ur=e.lineWidth||.200025,fr=b.__private__.setLineWidth=b.setLineWidth=function(e){return le(I(B(e))+" w"),this};b.__private__.setLineDash=P.API.setLineDash=P.API.setLineDashPattern=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return e=e.map((function(e){return I(B(e))})).join(" "),t=I(B(t)),le("["+e+"] "+t+" d"),this};var hr=b.__private__.getLineHeight=b.getLineHeight=function(){return de*lr};b.__private__.getLineHeight=b.getLineHeight=function(){return de*lr};var dr=b.__private__.setLineHeightFactor=b.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(lr=e),this},pr=b.__private__.getLineHeightFactor=b.getLineHeightFactor=function(){return lr};dr(e.lineHeight);var gr=b.__private__.getHorizontalCoordinate=function(e){return B(e)},mr=b.__private__.getVerticalCoordinate=function(e){return k===A.ADVANCED?e:De[K].mediaBox.topRightY-De[K].mediaBox.bottomLeftY-B(e)},vr=b.__private__.getHorizontalCoordinateString=b.getHorizontalCoordinateString=function(e){return I(gr(e))},br=b.__private__.getVerticalCoordinateString=b.getVerticalCoordinateString=function(e){return I(mr(e))},yr=e.strokeColor||"0 G";b.__private__.getStrokeColor=b.getDrawColor=function(){return Qe(yr)},b.__private__.setStrokeColor=b.setDrawColor=function(e,t,r,n){return yr=et({ch1:e,ch2:t,ch3:r,ch4:n,pdfColorType:"draw",precision:2}),le(yr),this};var wr=e.fillColor||"0 g";b.__private__.getFillColor=b.getFillColor=function(){return Qe(wr)},b.__private__.setFillColor=b.setFillColor=function(e,t,r,n){return wr=et({ch1:e,ch2:t,ch3:r,ch4:n,pdfColorType:"fill",precision:2}),le(wr),this};var Sr=e.textColor||"0 g",xr=b.__private__.getTextColor=b.getTextColor=function(){return Qe(Sr)};b.__private__.setTextColor=b.setTextColor=function(e,t,r,n){return Sr=et({ch1:e,ch2:t,ch3:r,ch4:n,pdfColorType:"text",precision:3}),this};var Ar=e.charSpace,kr=b.__private__.getCharSpace=b.getCharSpace=function(){return parseFloat(Ar||0)};b.__private__.setCharSpace=b.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ar=e,this};var Tr=0;b.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},b.__private__.setLineCap=b.setLineCap=function(e){var t=b.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Tr=t,le(t+" J"),this};var Er=0;b.__private__.setLineJoin=b.setLineJoin=function(e){var t=b.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Er=t,le(t+" j"),this},b.__private__.setLineMiterLimit=b.__private__.setMiterLimit=b.setLineMiterLimit=b.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return le(I(B(e))+" M"),this},b.GState=O,b.setGState=function(e){(e="string"==typeof e?Le[Ie[e]]:_r(null,e)).equals(Fe)||(le("/"+e.id+" gs"),Fe=e)};var _r=function(e,t){if(!e||!Ie[e]){var r=!1;for(var n in Le)if(Le.hasOwnProperty(n)&&Le[n].equals(t)){r=!0;break}if(r)t=Le[n];else{var o="GS"+(Object.keys(Le).length+1).toString(10);Le[o]=t,t.id=o}return e&&(Ie[e]=t.id),Me.publish("addGState",t),t}};b.addGState=function(e,t){return _r(e,t),this},b.saveGraphicsState=function(){return le("q"),Ce.push({key:Ae,size:de,color:Sr}),this},b.restoreGraphicsState=function(){le("Q");var e=Ce.pop();return Ae=e.key,de=e.size,Sr=e.color,Fe=null,this},b.setCurrentTransformationMatrix=function(e){return le(e.toString()+" cm"),this},b.comment=function(e){return le("#"+e),this};var Or=function(e,t){var r=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var n=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var o="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return o},set:function(e){o=e.toString()}}),this},Nr=function(e,t,r,n){Or.call(this,e,t),this.type="rect";var o=r||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return o},set:function(e){isNaN(e)||(o=parseFloat(e))}});var i=n||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}}),this},Cr=function(){this.page=je,this.currentPage=K,this.pages=oe.slice(0),this.pagesContext=De.slice(0),this.x=Te,this.y=Ee,this.matrix=_e,this.width=Ir(K),this.height=jr(K),this.outputDestination=ae,this.id="",this.objectNumber=-1};Cr.prototype.restore=function(){je=this.page,K=this.currentPage,De=this.pagesContext,oe=this.pages,Te=this.x,Ee=this.y,_e=this.matrix,Fr(K,this.width),Dr(K,this.height),ae=this.outputDestination};var Rr=function(e,t,r,n,o){He.push(new Cr),je=K=0,oe=[],Te=e,Ee=t,_e=o,Ct([r,n])},Pr=function(e){if(!Ue[e]){var t=new Cr,r="Xo"+(Object.keys(We).length+1).toString(10);t.id=r,Ue[e]=r,We[r]=t,Me.publish("addFormObject",t),He.pop().restore()}};for(var Lr in b.beginFormObject=function(e,t,r,n,o){return Rr(e,t,r,n,o),this},b.endFormObject=function(e){return Pr(e),this},b.doFormObject=function(e,t){var r=We[Ue[e]];return le("q"),le(t.toString()+" cm"),le("/"+r.id+" Do"),le("Q"),this},b.getFormObject=function(e){var t=We[Ue[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},b.save=function(e,r){return e=e||"generated.pdf",(r=r||{}).returnPromise=r.returnPromise||!1,!1===r.returnPromise?(l(Ht(Ut()),e),"function"==typeof l.unload&&t.setTimeout&&setTimeout(l.unload,911),this):new Promise((function(r,n){try{var o=l(Ht(Ut()),e);"function"==typeof l.unload&&t.setTimeout&&setTimeout(l.unload,911),r(o)}catch(e){n(e.message)}}))},P.API)P.API.hasOwnProperty(Lr)&&("events"===Lr&&P.API.events.length?function(e,t){var r,n,o;for(o=t.length-1;-1!==o;o--)r=t[o][0],n=t[o][1],e.subscribe.apply(e,[r].concat("function"==typeof n?[n]:n))}(Me,P.API.events):b[Lr]=P.API[Lr]);var Ir=b.getPageWidth=function(e){return(De[e=e||K].mediaBox.topRightX-De[e].mediaBox.bottomLeftX)/ke},Fr=b.setPageWidth=function(e,t){De[e].mediaBox.topRightX=t*ke+De[e].mediaBox.bottomLeftX},jr=b.getPageHeight=function(e){return(De[e=e||K].mediaBox.topRightY-De[e].mediaBox.bottomLeftY)/ke},Dr=b.setPageHeight=function(e,t){De[e].mediaBox.topRightY=t*ke+De[e].mediaBox.bottomLeftY};return b.internal={pdfEscape:Nt,getStyle:Zt,getFont:cr,getFontSize:ge,getCharSpace:kr,getTextColor:xr,getLineHeight:hr,getLineHeightFactor:pr,write:ue,getHorizontalCoordinate:gr,getVerticalCoordinate:mr,getCoordinateString:vr,getVerticalCoordinateString:br,collections:{},newObject:Ge,newAdditionalObject:Ke,newObjectDeferred:Xe,newObjectDeferredBegin:Ye,getFilters:tt,putStream:rt,events:Me,scaleFactor:ke,pageSize:{getWidth:function(){return Ir(K)},setWidth:function(e){Fr(K,e)},getHeight:function(){return jr(K)},setHeight:function(e){Dr(K,e)}},encryptionOptions:g,encryption:qt,getEncryptor:$t,output:zt,getNumberOfPages:It,pages:oe,out:le,f2:D,f3:M,getPageInfo:Gt,getPageInfoByObjId:Xt,getCurrentPageInfo:Yt,getPDFVersion:w,Point:Or,Rectangle:Nr,Matrix:ze,hasHotfix:Vt},Object.defineProperty(b.internal.pageSize,"width",{get:function(){return Ir(K)},set:function(e){Fr(K,e)},enumerable:!0,configurable:!0}),Object.defineProperty(b.internal.pageSize,"height",{get:function(){return jr(K)},set:function(e){Dr(K,e)},enumerable:!0,configurable:!0}),Et.call(b,he),Ae="F1",Rt(a,o),Me.publish("initialized"),b}E.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},E.prototype.toHexString=function(e){return e.split("").map((function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)})).join("")},E.prototype.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(String.fromCharCode(parseInt(e.substr(r,2),16)));return t.join("")},E.prototype.processOwnerPassword=function(e,t){return k(x(t).substr(0,5),e)},E.prototype.encryptor=function(e,t){let r=x(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return k(r,e)}},O.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||typeof e!=typeof this)return!1;var n=0;for(t in this)if(!(r.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&r.indexOf(t)<0&&n--;return 0===n},P.API={events:[]},P.version="2.3.1";var L=P.API,I=1,F=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},j=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},D=function(e){return e.toFixed(2)},M=function(e){return e.toFixed(5)};L.__acroform__={};var B=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},W=function(e){return e*I},U=function(e){var t=new ne,r=ve.internal.getHeight(e)||0,n=ve.internal.getWidth(e)||0;return t.BBox=[0,0,Number(D(n)),Number(D(r))],t},H=L.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},z=L.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},V=L.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(e&1<<t)?0:1},q=L.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return V(e,t-1)},$=L.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return H(e,t-1)},G=L.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return z(e,t-1)},X=L.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,o=e[0],i=e[1],a=e[2],s=e[3],c={};return c.lowerLeft_X=r(o)||0,c.lowerLeft_Y=n(i+s)||0,c.upperRight_X=r(o+a)||0,c.upperRight_Y=n(i)||0,[Number(D(c.lowerLeft_X)),Number(D(c.lowerLeft_Y)),Number(D(c.upperRight_X)),Number(D(c.upperRight_Y))]},Y=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=K(e,r),o=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+o+" "+D(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=U(e);return i.scope=e.scope,i.stream=t.join("\n"),i}},K=function(e,t){var r=0===e.fontSize?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},o=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" "),i=r,a=ve.internal.getHeight(e)||0;a=a<0?-a:a;var s=ve.internal.getWidth(e)||0;s=s<0?-s:s;var c=function(t,r,n){if(t+1<o.length){var i=r+" "+o[t+1];return J(i,e,n).width<=s-4}return!1};i++;e:for(;i>0;){t="",i--;var l,u,f=J("3",e,i).height,h=e.multiline?a-i:(a-f)/2,d=h+=2,p=0,g=0;if(i<=0){t="(...) Tj\n",t+="% Width of Text: "+J(t,e,i=12).width+", FieldWidth:"+s+"\n";break}var m="",v=0;for(var b in o)if(o.hasOwnProperty(b)){m=" "==(m+=o[b]+" ").substr(m.length-1)?m.substr(0,m.length-1):m;var y=parseInt(b),w=c(y,m,i),S=b>=o.length-1;if(w&&!S){m+=" ";continue}if(w||S){if(S)g=y;else if(e.multiline&&(f+2)*(v+2)+2>a)continue e}else{if(!e.multiline)continue e;if((f+2)*(v+2)+2>a)continue e;g=y}for(var x="",A=p;A<=g;A++)x+=o[A]+" ";switch(x=" "==x.substr(x.length-1)?x.substr(0,x.length-1):x,u=J(x,e,i).width,e.textAlign){case"right":l=s-u-2;break;case"center":l=(s-u)/2;break;default:l=2}t+=D(l)+" "+D(d)+" Td\n",t+="("+F(x)+") Tj\n",t+=-D(l)+" 0 Td\n",d=-(i+2),u=0,p=g+1,v++,m=""}break}return n.text=t,n.fontSize=i,n},J=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),o=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:o}},Z={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Q=function(e,t){var r={type:"reference",object:e};void 0===t.internal.getPageInfo(e.page).pageContext.annotations.find((function(e){return e.type===r.type&&e.object===r.object}))&&t.internal.getPageInfo(e.page).pageContext.annotations.push(r)},ee=L.__acroform__.arrayToPdfArray=function(e,t,r){var n=function(e){return e};if(Array.isArray(e)){for(var o="[",i=0;i<e.length;i++)switch(0!==i&&(o+=" "),typeof e[i]){case"boolean":case"number":case"object":o+=e[i].toString();break;case"string":"/"!==e[i].substr(0,1)?(void 0!==t&&r&&(n=r.internal.getEncryptor(t)),o+="("+F(n(e[i].toString()))+")"):o+=e[i].toString()}return o+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},te=function(e,t,r){var n=function(e){return e};return void 0!==t&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),"("+F(n(e))+")"},re=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};re.prototype.toString=function(){return this.objId+" 0 R"},re.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},re.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter((function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"scope"!=e&&"objId"!=e&&"_"!=e.substring(0,1)}));for(var r in t)if(!1===Object.getOwnPropertyDescriptor(this,t[r]).configurable){var n=t[r],o=this[n];o&&(Array.isArray(o)?e.push({key:n,value:ee(o,this.objId,this.scope)}):o instanceof re?(o.scope=this.scope,e.push({key:n,value:o.objId+" 0 R"})):"function"!=typeof o&&e.push({key:n,value:o}))}return e};var ne=function(){re.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};B(ne,re);var oe=function(){re.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+F(t(e))+")"}},set:function(t){e=t}})};B(oe,re);var ie=function(){re.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(e,3))},set:function(t){!0===Boolean(t)?this.F=$(e,3):this.F=G(e,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');t=e}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(e){r=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(e){r[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(e){r[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(e){r[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(e){r[3]=e}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof de)return;o="FieldObject"+ie.FieldNum++}var e=function(e){return e};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+F(e(o))+")"},set:function(e){o=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(e){o=e}});var i="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return i},set:function(e){i=e}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(e){a=e}});var s=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/I:c},set:function(e){c=e}});var l="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return l},set:function(e){l=e}});var u="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!u||this instanceof de||this instanceof ge))return te(u,this.objId,this.scope)},set:function(e){e=e.toString(),u=e}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof ue==0?te(f,this.objId,this.scope):f},set:function(e){e=e.toString(),f=this instanceof ue==0?"("===e.substr(0,1)?j(e.substr(1,e.length-2)):j(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ue==1?j(f.substr(1,f.length-1)):f},set:function(e){e=e.toString(),f=this instanceof ue==1?"/"+e:e}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof ue==0?te(h,this.objId,this.scope):h},set:function(e){e=e.toString(),h=this instanceof ue==0?"("===e.substr(0,1)?j(e.substr(1,e.length-2)):j(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ue==1?j(h.substr(1,h.length-1)):h},set:function(e){e=e.toString(),h=this instanceof ue==1?"/"+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var d,p=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return p},set:function(e){e=Boolean(e),p=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(d)return d},set:function(e){d=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,1):this.Ff=G(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,2):this.Ff=G(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,3):this.Ff=G(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');g=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(g){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:g=2;break;case"center":case 1:g=1;break;default:g=0}}})};B(ie,re);var ae=function(){ie.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return ee(t,this.objId,this.scope)},set:function(e){var r,n;n=[],"string"==typeof(r=e)&&(n=function(e,t,r){r||(r=1);for(var n,o=[];n=t.exec(e);)o.push(n[r]);return o}(r,/\((.*?)\)/g)),t=n}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==r););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,18):this.Ff=G(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=$(this.Ff,19):this.Ff=G(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=$(this.Ff,20),t.sort()):this.Ff=G(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,22):this.Ff=G(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,23):this.Ff=G(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,27):this.Ff=G(this.Ff,27)}}),this.hasAppearanceStream=!1};B(ae,ie);var se=function(){ae.call(this),this.fontName="helvetica",this.combo=!1};B(se,ae);var ce=function(){se.call(this),this.combo=!0};B(ce,se);var le=function(){ce.call(this),this.edit=!0};B(le,ce);var ue=function(){ie.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,15):this.Ff=G(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,16):this.Ff=G(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,17):this.Ff=G(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,26):this.Ff=G(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var r,n=[];for(r in n.push("<<"),t)n.push("/"+r+" ("+F(e(t[r]))+")");return n.push(">>"),n.join("\n")}},set:function(e){"object"==typeof e&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};B(ue,ie);var fe=function(){ue.call(this),this.pushButton=!0};B(fe,ue);var he=function(){ue.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};B(he,ue);var de=function(){var e,t;ie.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,r=[];for(t in r.push("<<"),n)r.push("/"+t+" ("+F(e(n[t]))+")");return r.push(">>"),r.join("\n")},set:function(e){"object"==typeof e&&(n=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(e){"string"==typeof e&&(n.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(e){r="/"+e}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ve.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};B(de,ie),he.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},he.prototype.createOption=function(e){var t=new de;return t.Parent=this,t.optionName=e,this.Kids.push(t),be.call(this.scope,t),t};var pe=function(){ue.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ve.CheckBox.createAppearanceStream()};B(pe,ue);var ge=function(){ie.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,13):this.Ff=G(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,21):this.Ff=G(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,23):this.Ff=G(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,24):this.Ff=G(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,25):this.Ff=G(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,26):this.Ff=G(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};B(ge,ie);var me=function(){ge.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(q(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=$(this.Ff,14):this.Ff=G(this.Ff,14)}}),this.password=!0};B(me,ge);var ve={CheckBox:{createAppearanceStream:function(){return{N:{On:ve.CheckBox.YesNormal},D:{On:ve.CheckBox.YesPushDown,Off:ve.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=U(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,o=e.scope.__private__.encodeColorString(e.color),i=K(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+D(ve.internal.getWidth(e))+" "+D(ve.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+D(i.fontSize)+" Tf "+o),r.push("BT"),r.push(i.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join("\n"),t},YesNormal:function(e){var t=U(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),o=[],i=ve.internal.getHeight(e),a=ve.internal.getWidth(e),s=K(e,e.caption);return o.push("1 g"),o.push("0 0 "+D(a)+" "+D(i)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+D(a-1)+" "+D(i-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+r+" "+D(s.fontSize)+" Tf "+n),o.push(s.text),o.push("ET"),o.push("Q"),t.stream=o.join("\n"),t},OffPushDown:function(e){var t=U(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+D(ve.internal.getWidth(e))+" "+D(ve.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:ve.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=ve.RadioButton.Circle.YesNormal,t.D[e]=ve.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=U(e);t.scope=e.scope;var r=[],n=ve.internal.getWidth(e)<=ve.internal.getHeight(e)?ve.internal.getWidth(e)/4:ve.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var o=ve.internal.Bezier_C,i=Number((n*o).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+M(ve.internal.getWidth(e)/2)+" "+M(ve.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),r.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),r.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),r.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t},YesPushDown:function(e){var t=U(e);t.scope=e.scope;var r=[],n=ve.internal.getWidth(e)<=ve.internal.getHeight(e)?ve.internal.getWidth(e)/4:ve.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var o=Number((2*n).toFixed(5)),i=Number((o*ve.internal.Bezier_C).toFixed(5)),a=Number((n*ve.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+M(ve.internal.getWidth(e)/2)+" "+M(ve.internal.getHeight(e)/2)+" cm"),r.push(o+" 0 m"),r.push(o+" "+i+" "+i+" "+o+" 0 "+o+" c"),r.push("-"+i+" "+o+" -"+o+" "+i+" -"+o+" 0 c"),r.push("-"+o+" -"+i+" -"+i+" -"+o+" 0 -"+o+" c"),r.push(i+" -"+o+" "+o+" -"+i+" "+o+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+M(ve.internal.getWidth(e)/2)+" "+M(ve.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),r.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),r.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),r.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=U(e);t.scope=e.scope;var r=[],n=ve.internal.getWidth(e)<=ve.internal.getHeight(e)?ve.internal.getWidth(e)/4:ve.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var o=Number((2*n).toFixed(5)),i=Number((o*ve.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+M(ve.internal.getWidth(e)/2)+" "+M(ve.internal.getHeight(e)/2)+" cm"),r.push(o+" 0 m"),r.push(o+" "+i+" "+i+" "+o+" 0 "+o+" c"),r.push("-"+i+" "+o+" -"+o+" "+i+" -"+o+" 0 c"),r.push("-"+o+" -"+i+" -"+i+" -"+o+" 0 -"+o+" c"),r.push(i+" -"+o+" "+o+" -"+i+" "+o+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:ve.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=ve.RadioButton.Cross.YesNormal,t.D[e]=ve.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=U(e);t.scope=e.scope;var r=[],n=ve.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+D(ve.internal.getWidth(e)-2)+" "+D(ve.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(D(n.x1.x)+" "+D(n.x1.y)+" m"),r.push(D(n.x2.x)+" "+D(n.x2.y)+" l"),r.push(D(n.x4.x)+" "+D(n.x4.y)+" m"),r.push(D(n.x3.x)+" "+D(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},YesPushDown:function(e){var t=U(e);t.scope=e.scope;var r=ve.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+D(ve.internal.getWidth(e))+" "+D(ve.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+D(ve.internal.getWidth(e)-2)+" "+D(ve.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(D(r.x1.x)+" "+D(r.x1.y)+" m"),n.push(D(r.x2.x)+" "+D(r.x2.y)+" l"),n.push(D(r.x4.x)+" "+D(r.x4.y)+" m"),n.push(D(r.x3.x)+" "+D(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=U(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+D(ve.internal.getWidth(e))+" "+D(ve.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};ve.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=ve.internal.getWidth(e),r=ve.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},ve.internal.getWidth=function(e){var t=0;return"object"==typeof e&&(t=W(e.Rect[2])),t},ve.internal.getHeight=function(e){var t=0;return"object"==typeof e&&(t=W(e.Rect[3])),t};var be=L.addField=function(e){if(function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(ie.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Z)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");I=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new oe,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){!function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0}(e)})),e.internal.events.subscribe("buildDocument",(function(){!function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];n.objId=void 0,n.hasAnnotation&&Q(n,e)}}(e)})),e.internal.events.subscribe("putCatalog",(function(){!function(e){if(void 0===e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(e)})),e.internal.events.subscribe("postPutPages",(function(t){!function(e,t){var r=!e;for(var n in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(n)){var o=e[n],i=[],a=o.Rect;if(o.Rect&&(o.Rect=X(o.Rect,t)),t.internal.newObjectDeferredBegin(o.objId,!0),o.DA=ve.createDefaultAppearanceStream(o),"object"==typeof o&&"function"==typeof o.getKeyValueListForStream&&(i=o.getKeyValueListForStream()),o.Rect=a,o.hasAppearanceStream&&!o.appearanceStreamContent){var s=Y(o);i.push({key:"AP",value:"<</N "+s+">>"}),t.internal.acroformPlugin.xForms.push(s)}if(o.appearanceStreamContent){var c="";for(var l in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(l)){var u=o.appearanceStreamContent[l];if(c+="/"+l+" ",c+="<<",Object.keys(u).length>=1||Array.isArray(u)){for(var n in u)if(u.hasOwnProperty(n)){var f=u[n];"function"==typeof f&&(f=f.call(t,o)),c+="/"+n+" "+f+" ",t.internal.acroformPlugin.xForms.indexOf(f)>=0||t.internal.acroformPlugin.xForms.push(f)}}else"function"==typeof(f=u)&&(f=f.call(t,o)),c+="/"+n+" "+f,t.internal.acroformPlugin.xForms.indexOf(f)>=0||t.internal.acroformPlugin.xForms.push(f);c+=">>"}i.push({key:"AP",value:"<<\n"+c+">>"})}t.internal.putStream({additionalKeyValues:i,objectId:o.objId}),t.internal.out("endobj")}r&&function(e,t){for(var r in e)if(e.hasOwnProperty(r)){var n=r,o=e[r];t.internal.newObjectDeferredBegin(o.objId,!0),"object"==typeof o&&"function"==typeof o.putStream&&o.putStream(),delete e[n]}}(t.internal.acroformPlugin.xForms,t)}(t,e)})),e.internal.acroformPlugin.isInitialized=!0}}(this,e),!(e instanceof ie))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};L.AcroFormChoiceField=ae,L.AcroFormListBox=se,L.AcroFormComboBox=ce,L.AcroFormEditBox=le,L.AcroFormButton=ue,L.AcroFormPushButton=fe,L.AcroFormRadioButton=he,L.AcroFormCheckBox=pe,L.AcroFormTextField=ge,L.AcroFormPasswordField=me,L.AcroFormAppearance=ve,L.AcroForm={ChoiceField:ae,ListBox:se,ComboBox:ce,EditBox:le,Button:ue,PushButton:fe,RadioButton:he,CheckBox:pe,TextField:ge,PasswordField:me,Appearance:ve},P.AcroForm={ChoiceField:ae,ListBox:se,ComboBox:ce,EditBox:le,Button:ue,PushButton:fe,RadioButton:he,CheckBox:pe,TextField:ge,PasswordField:me,Appearance:ve};var ye=P.AcroForm;function we(e){return e.reduce((function(e,t,r){return e[t]=r,e}),{})}!function(e){e.__addimage__={};var t="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=e.__addimage__.getImageFileTypeByImageData=function(e,n){var o,i;n=n||t;var a,s,c,l=t;if(k(e))for(c in r)for(a=r[c],o=0;o<a.length;o+=1){for(s=!0,i=0;i<a[o].length;i+=1)if(void 0!==a[o][i]&&a[o][i]!==e[i]){s=!1;break}if(!0===s){l=c;break}}else for(c in r)for(a=r[c],o=0;o<a.length;o+=1){for(s=!0,i=0;i<a[o].length;i+=1)if(void 0!==a[o][i]&&a[o][i]!==e.charCodeAt(i)){s=!1;break}if(!0===s){l=c;break}}return l===t&&n!==t&&(l=n),l},o=function(e){for(var t=this.internal.write,r=this.internal.putStream,n=(0,this.internal.getFilters)();-1!==n.indexOf("FlateEncode");)n.splice(n.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var i=[];if(i.push({key:"Type",value:"/XObject"}),i.push({key:"Subtype",value:"/Image"}),i.push({key:"Width",value:e.width}),i.push({key:"Height",value:e.height}),e.colorSpace===b.INDEXED?i.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.palette.length/3-1)+" "+("sMask"in e&&void 0!==e.sMask?e.objectId+2:e.objectId+1)+" 0 R]"}):(i.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===b.DEVICE_CMYK&&i.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),i.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&i.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)){for(var a="",s=0,c=e.transparency.length;s<c;s++)a+=e.transparency[s]+" "+e.transparency[s]+" ";i.push({key:"Mask",value:"["+a+"]"})}void 0!==e.sMask&&i.push({key:"SMask",value:e.objectId+1+" 0 R"});var l=void 0!==e.filter?["/"+e.filter]:void 0;if(r({data:e.data,additionalKeyValues:i,alreadyAppliedFilters:l,objectId:e.objectId}),t("endobj"),"sMask"in e&&void 0!==e.sMask){var u="/Predictor "+e.predictor+" /Colors 1 /BitsPerComponent "+e.bitsPerComponent+" /Columns "+e.width,f={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:e.bitsPerComponent,decodeParameters:u,data:e.sMask};"filter"in e&&(f.filter=e.filter),o.call(this,f)}if(e.colorSpace===b.INDEXED){var h=this.internal.newObject();r({data:E(new Uint8Array(e.palette)),objectId:h}),t("endobj")}},i=function(){var e=this.internal.collections.addImage_images;for(var t in e)o.call(this,e[t])},a=function(){var e,t=this.internal.collections.addImage_images,r=this.internal.write;for(var n in t)r("/I"+(e=t[n]).index,e.objectId,"0","R")},l=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",a))},u=function(){var e=this.internal.collections.addImage_images;return l.call(this),e},f=function(){return Object.keys(this.internal.collections.addImage_images).length},h=function(t){return"function"==typeof e["process"+t.toUpperCase()]},d=function(e){return"object"==typeof e&&1===e.nodeType},p=function(t,r){if("IMG"===t.nodeName&&t.hasAttribute("src")){var n=""+t.getAttribute("src");if(0===n.indexOf("data:image/"))return s(unescape(n).split("base64,").pop());var o=e.loadFile(n,!0);if(void 0!==o)return o}if("CANVAS"===t.nodeName){var i;switch(r){case"PNG":i="image/png";break;case"WEBP":i="image/webp";break;default:i="image/jpeg"}return s(t.toDataURL(i,1).split("base64,").pop())}},g=function(e){var t=this.internal.collections.addImage_images;if(t)for(var r in t)if(e===t[r].alias)return t[r]},m=function(e,t,r){return e||t||(e=-96,t=-96),e<0&&(e=-1*r.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*r.height*72/t/this.internal.scaleFactor),0===e&&(e=t*r.width/r.height),0===t&&(t=e*r.height/r.width),[e,t]},v=function(e,t,r,n,o,i){var a=m.call(this,r,n,o),s=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,l=u.call(this);if(r=a[0],n=a[1],l[o.index]=o,i){i*=Math.PI/180;var f=Math.cos(i),h=Math.sin(i),d=function(e){return e.toFixed(4)},p=[d(f),d(h),d(-1*h),d(f),0,0,"cm"]}this.internal.write("q"),i?(this.internal.write([1,"0","0",1,s(e),c(t+n),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(r),"0","0",s(n),"0","0","cm"].join(" "))):this.internal.write([s(r),"0","0",s(n),s(e),c(t+n),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+o.index+" Do"),this.internal.write("Q")},b=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},w=e.__addimage__.sHashCode=function(e){var t,r,n=0;if("string"==typeof e)for(r=e.length,t=0;t<r;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;else if(k(e))for(r=e.byteLength/2,t=0;t<r;t++)n=(n<<5)-n+e[t],n|=0;return n},S=e.__addimage__.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},x=e.__addimage__.extractImageFromDataUrl=function(e){var t=(e=e||"").split("base64,"),r=null;if(2===t.length){var n=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(t[0]);Array.isArray(n)&&(r={mimeType:n[1],charset:n[2],data:t[1]})}return r},A=e.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};e.__addimage__.isArrayBuffer=function(e){return A()&&e instanceof ArrayBuffer};var k=e.__addimage__.isArrayBufferView=function(e){return A()&&"undefined"!=typeof Uint32Array&&(e instanceof Int8Array||e instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)},T=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r},E=e.__addimage__.arrayBufferToBinaryString=function(e){try{return s(c(String.fromCharCode.apply(null,e)))}catch(t){if("undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.reduce)return new Uint8Array(e).reduce((function(e,t){return e.push(String.fromCharCode(t)),e}),[]).join("")}};e.addImage=function(){var e,r,n,o,i,a,s,c,u;if("number"==typeof arguments[1]?(r=t,n=arguments[1],o=arguments[2],i=arguments[3],a=arguments[4],s=arguments[5],c=arguments[6],u=arguments[7]):(r=arguments[1],n=arguments[2],o=arguments[3],i=arguments[4],a=arguments[5],s=arguments[6],c=arguments[7],u=arguments[8]),"object"==typeof(e=arguments[0])&&!d(e)&&"imageData"in e){var f=e;e=f.imageData,r=f.format||r||t,n=f.x||n||0,o=f.y||o||0,i=f.w||f.width||i,a=f.h||f.height||a,s=f.alias||s,c=f.compression||c,u=f.rotation||f.angle||u}var h=this.internal.getFilters();if(void 0===c&&-1!==h.indexOf("FlateEncode")&&(c="SLOW"),isNaN(n)||isNaN(o))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var p=_.call(this,e,r,s,c);return v.call(this,n,o,i,a,p,u),this};var _=function(r,o,i,a){var s,c,l;if("string"==typeof r&&n(r)===t){r=unescape(r);var u=O(r,!1);(""!==u||void 0!==(u=e.loadFile(r,!0)))&&(r=u)}if(d(r)&&(r=p(r,o)),o=n(r,o),!h(o))throw new Error("addImage does not support files of type '"+o+"', please ensure that a plugin for '"+o+"' support is added.");if((null==(l=i)||0===l.length)&&(i=function(e){return"string"==typeof e||k(e)?w(e):null}(r)),(s=g.call(this,i))||(A()&&(r instanceof Uint8Array||(c=r,r=T(r))),s=this["process"+o.toUpperCase()](r,f.call(this),i,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:y.NONE}(a),c)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},O=e.__addimage__.convertBase64ToBinaryString=function(e,t){var r;t="boolean"!=typeof t||t;var n,o="";if("string"==typeof e){n=null!==(r=x(e))?r.data:e;try{o=s(n)}catch(e){if(t)throw S(n)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+e.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return o};e.getImageProperties=function(r){var o,i,a="";if(d(r)&&(r=p(r)),"string"==typeof r&&n(r)===t&&(""===(a=O(r,!1))&&(a=e.loadFile(r)||""),r=a),i=n(r),!h(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(!A()||r instanceof Uint8Array||(r=T(r)),!(o=this["process"+i.toUpperCase()](r)))throw new Error("An unknown error occurred whilst processing the image");return o.fileType=i,o}}(P.API),function(e){var t=function(e){if(void 0!==e&&""!=e)return!0};P.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(e){for(var r,n,o,i=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(e.objId),c=e.pageContext.annotations,l=!1,u=0;u<c.length&&!l;u++)switch((r=c[u]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(0!=l){this.internal.write("/Annots [");for(var f=0;f<c.length;f++){r=c[f];var h=this.internal.pdfEscape,d=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),g=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(p.objId),v=r.title||"Note";o="<</Type /Annot /Subtype /Text "+(n="/Rect ["+i(r.bounds.x)+" "+a(r.bounds.y+r.bounds.h)+" "+i(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y)+"] ")+"/Contents ("+h(m(r.contents))+")",o+=" /Popup "+g.objId+" 0 R",o+=" /P "+s.objId+" 0 R",o+=" /T ("+h(m(v))+") >>",p.content=o;var b=p.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+i(r.bounds.x+30)+" "+a(r.bounds.y+r.bounds.h)+" "+i(r.bounds.x+r.bounds.w+30)+" "+a(r.bounds.y)+"] ")+" /Parent "+b,r.open&&(o+=" /Open true"),o+=" >>",g.content=o,this.internal.write(p.objId,"0 R",g.objId,"0 R");break;case"freetext":n="/Rect ["+i(r.bounds.x)+" "+a(r.bounds.y)+" "+i(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y+r.bounds.h)+"] ";var y=r.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+h(d(r.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+y+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(r.options.name){var w=this.annotations._nameMap[r.options.name];r.options.pageNumber=w.page,r.options.top=w.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",o="",r.options.url)o="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+h(d(r.options.url))+") >>";else if(r.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,o+=" /FitV "+r.options.left+"]";break;default:var S=a(r.options.top);r.options.left=r.options.left||0,void 0===r.options.zoom&&(r.options.zoom=0),o+=" /XYZ "+r.options.left+" "+S+" "+r.options.zoom+"]"}""!=o&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),e.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},e.link=function(e,t,r,n,o){var i=this.internal.getCurrentPageInfo(),a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;i.pageContext.annotations.push({finalBounds:{x:a(e),y:s(t),w:a(e+r),h:s(t+n)},options:o,type:"link"})},e.textWithLink=function(e,t,r,n){var o=this.getTextWidth(e),i=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(e,t,r,n),r+=.2*i,"center"===n.align&&(t-=o/2),"right"===n.align&&(t-=o),this.link(t,r-i,o,i,n),o},e.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor}}(P.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},o=[1570,1571,1573,1575];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},a=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},s=e.__arabicParser__.isArabicEndLetter=function(e){return a(e)&&i(e)&&t[e.charCodeAt(0)].length<=2},c=e.__arabicParser__.isArabicAlfLetter=function(e){return a(e)&&o.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return a(e)&&i(e)&&t[e.charCodeAt(0)].length>=1};var l=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return a(e)&&i(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return a(e)&&i(e)&&t[e.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return a(e)&&i(e)&&4==t[e.charCodeAt(0)].length},f=e.__arabicParser__.resolveLigatures=function(e){var t=0,n=r,o="",i=0;for(t=0;t<e.length;t+=1)void 0!==n[e.charCodeAt(t)]?(i++,"number"==typeof(n=n[e.charCodeAt(t)])&&(o+=String.fromCharCode(n),n=r,i=0),t===e.length-1&&(n=r,o+=e.charAt(t-(i-1)),t-=i-1,i=0)):(n=r,o+=e.charAt(t-i),t-=i,i=0);return o};e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==n[e.charCodeAt(0)]};var h=e.__arabicParser__.getCorrectForm=function(e,t,r){return a(e)?!1===i(e)?-1:!l(e)||!a(t)&&!a(r)||!a(r)&&s(t)||s(e)&&!a(t)||s(e)&&c(t)||s(e)&&s(t)?0:u(e)&&a(t)&&!s(t)&&a(r)&&l(r)?3:s(e)||!a(r)?1:2:-1},d=function(e){var r=0,n=0,o=0,i="",s="",c="",l=(e=e||"").split("\\s+"),u=[];for(r=0;r<l.length;r+=1){for(u.push(""),n=0;n<l[r].length;n+=1)i=l[r][n],s=l[r][n-1],c=l[r][n+1],a(i)?(o=h(i,s,c),u[r]+=-1!==o?String.fromCharCode(t[i.charCodeAt(0)][o]):i):u[r]+=i;u[r]=f(u[r])}return u.join(" ")},p=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,r=[];if(Array.isArray(t)){var n=0;for(r=[],n=0;n<t.length;n+=1)Array.isArray(t[n])?r.push([d(t[n][0]),t[n][1],t[n][2]]):r.push([d(t[n])]);e=r}else e=d(t);return"string"==typeof arguments[0]?e:(arguments[0].text=e,arguments[0])};e.events.push(["preProcessText",p])}(P.API),function(e){e.autoPrint=function(e){var t;if("javascript"===((e=e||{}).variant=e.variant||"non-conform",e.variant))this.addJS("print({});");else this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}));return this}}(P.API),function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(e){r=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var n=[];Object.defineProperty(this,"childNodes",{get:function(){return n},set:function(e){n=e}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(e){o=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var r;if("2d"!==(e=e||"2d"))return null;for(r in t)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=t[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(P.API),function(e){var t={left:0,top:0,bottom:0,right:0},r=!1,n=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),o.call(this))},o=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var r=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var n=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var o=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return o},set:function(e){o=e}});var i=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var a=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return a},set:function(e){a=e}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return n.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){n.call(this);var r=(t=t||{}).fontSize||this.getFontSize(),o=t.font||this.getFont(),i=t.scaleFactor||this.internal.scaleFactor,a=0,s=0,c=0,l=this;if(!Array.isArray(e)&&"string"!=typeof e){if("number"!=typeof e)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");e=String(e)}const u=t.maxWidth;u>0?"string"==typeof e?e=this.splitTextToSize(e,u):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(l.splitTextToSize(t,u))}),[])):e=Array.isArray(e)?e:[e];for(var f=0;f<e.length;f++)a<(c=this.getStringUnitWidth(e[f],{font:o})*r)&&(a=c);return 0!==a&&(s=e.length),{w:a/=i,h:Math.max((s*r*this.getLineHeightFactor()-r*(this.getLineHeightFactor()-1))/i,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new i(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=e.cell=function(){var e;e=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var o=this.internal.__cell__.lastCell,a=this.internal.__cell__.padding,s=this.internal.__cell__.margins||t,c=this.internal.__cell__.tableHeaderRow,l=this.internal.__cell__.printHeaders;return void 0!==o.lineNumber&&(o.lineNumber===e.lineNumber?(e.x=(o.x||0)+(o.width||0),e.y=o.y||0):o.y+o.height+e.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=s.top,l&&c&&(this.printHeaderRow(e.lineNumber,!0),e.y+=c[0].height)):e.y=o.y+o.height||e.y),void 0!==e.text[0]&&(this.rect(e.x,e.y,e.width,e.height,!0===r?"FD":void 0),"right"===e.align?this.text(e.text,e.x+e.width-a,e.y+a,{align:"right",baseline:"top"}):"center"===e.align?this.text(e.text,e.x+e.width/2,e.y+a,{align:"center",baseline:"top",maxWidth:e.width-a-a}):this.text(e.text,e.x+a,e.y+a,{align:"left",baseline:"top",maxWidth:e.width-a-a})),this.internal.__cell__.lastCell=e,this};e.table=function(e,r,c,l,u){if(n.call(this),!c)throw new Error("No data for PDF table.");var f,h,d,p,g=[],m=[],v=[],b={},y={},w=[],S=[],x=(u=u||{}).autoSize||!1,A=!1!==u.printHeaders,k=u.css&&void 0!==u.css["font-size"]?16*u.css["font-size"]:u.fontSize||12,T=u.margins||Object.assign({width:this.getPageWidth()},t),E="number"==typeof u.padding?u.padding:3,_=u.headerBackgroundColor||"#c8c8c8";if(o.call(this),this.internal.__cell__.printHeaders=A,this.internal.__cell__.margins=T,this.internal.__cell__.table_font_size=k,this.internal.__cell__.padding=E,this.internal.__cell__.headerBackgroundColor=_,this.setFontSize(k),null==l)m=g=Object.keys(c[0]),v=g.map((function(){return"left"}));else if(Array.isArray(l)&&"object"==typeof l[0])for(g=l.map((function(e){return e.name})),m=l.map((function(e){return e.prompt||e.name||""})),v=l.map((function(e){return e.align||"left"})),f=0;f<l.length;f+=1)y[l[f].name]=l[f].width*(19.049976/25.4);else Array.isArray(l)&&"string"==typeof l[0]&&(m=g=l,v=g.map((function(){return"left"})));if(x||Array.isArray(l)&&"string"==typeof l[0])for(f=0;f<g.length;f+=1){for(b[p=g[f]]=c.map((function(e){return e[p]})),this.setFont(void 0,"bold"),w.push(this.getTextDimensions(m[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),h=b[p],this.setFont(void 0,"normal"),d=0;d<h.length;d+=1)w.push(this.getTextDimensions(h[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);y[p]=Math.max.apply(null,w)+E+E,w=[]}if(A){var O={};for(f=0;f<g.length;f+=1)O[g[f]]={},O[g[f]].text=m[f],O[g[f]].align=v[f];var N=s.call(this,O,y);S=g.map((function(t){return new i(e,r,y[t],N,O[t].text,void 0,O[t].align)})),this.setTableHeaderRow(S),this.printHeaderRow(1,!1)}var C=l.reduce((function(e,t){return e[t.name]=t.align,e}),{});for(f=0;f<c.length;f+=1){var R=s.call(this,c[f],y);for(d=0;d<g.length;d+=1)a.call(this,new i(e,r,y[g[d]],R,c[f][g[d]],f+2,C[g[d]]))}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=r,this};var s=function(e,t){var r=this.internal.__cell__.padding,n=this.internal.__cell__.table_font_size,o=this.internal.scaleFactor;return Object.keys(e).map((function(n){var o=e[n];return this.splitTextToSize(o.hasOwnProperty("text")?o.text:o,t[n]-r-r)}),this).map((function(e){return this.getLineHeightFactor()*e.length*n/o+r+r}),this).reduce((function(e,t){return Math.max(e,t)}),0)};e.setTableHeaderRow=function(e){n.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var o;if(r=!0,"function"==typeof this.internal.__cell__.headerFunction){var s=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(s[0],s[1],s[2],s[3],void 0,-1)}this.setFont(void 0,"bold");for(var c=[],l=0;l<this.internal.__cell__.tableHeaderRow.length;l+=1)o=this.internal.__cell__.tableHeaderRow[l].clone(),t&&(o.y=this.internal.__cell__.margins.top||0,c.push(o)),o.lineNumber=e,this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,o);c.length>0&&this.setTableHeaderRow(c),this.setFont(void 0,"normal"),r=!1}}(P.API);var Se={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},xe=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ae=we(xe),ke=[100,200,300,400,500,600,700,800,900],Te=we(ke);function Ee(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=function(e){return Se[e=e||"normal"]?e:"normal"}(e.style),n=function(e){return e?"number"==typeof e?e>=100&&e<=900&&e%100==0?e:400:/^\d00$/.test(e)?parseInt(e):"bold"===e?700:400:400}(e.weight),o=function(e){return"number"==typeof Ae[e=e||"normal"]?e:"normal"}(e.stretch);return{family:t,style:r,weight:n,stretch:o,src:e.src||[],ref:e.ref||{name:t,style:[o,r,n].join(" ")}}}function _e(e,t,r,n){var o;for(o=r;o>=0&&o<t.length;o+=n)if(e[t[o]])return e[t[o]];for(o=r;o>=0&&o<t.length;o-=n)if(e[t[o]])return e[t[o]]}var Oe={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ne={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Ce(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Re(e){return e.trimLeft()}function Pe(e,t){for(var r=0;r<e.length;){if(e.charAt(r)===t)return[e.substring(0,r),e.substring(r+1)];r+=1}return null}function Le(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],e.substring(t[0].length)]}var Ie=["times"];!function(e){var t,r,o,i,a,s,c,l,f,h=function(e){return e=e||{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new l,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new s,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new s,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new d(this),t=this.internal.f2,r=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,s=this.internal.Point,c=this.internal.Rectangle,l=this.internal.Matrix,f=new h}]);var d=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var r=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return r},set:function(e){r=Boolean(e)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var o=0;Object.defineProperty(this,"posX",{get:function(){return o},set:function(e){isNaN(e)||(o=e)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(e){isNaN(e)||(i=e)}});var a=!1;Object.defineProperty(this,"autoPaging",{get:function(){return a},set:function(e){a=Boolean(e)}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(e){s=e}});var c=[];Object.defineProperty(this,"pageBreaks",{get:function(){return c},set:function(e){c=e}}),Object.defineProperty(this,"ctx",{get:function(){return f},set:function(e){e instanceof h&&(f=e)}}),Object.defineProperty(this,"path",{get:function(){return f.path},set:function(e){f.path=e}});var l=[];Object.defineProperty(this,"ctxStack",{get:function(){return l},set:function(e){l=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=p(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=p(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}});var u=null;function d(e,t){if(null===u){var r=function(e){var t=[];return Object.keys(e).forEach((function(r){e[r].forEach((function(e){var n=null;switch(e){case"bold":n={family:r,weight:"bold"};break;case"italic":n={family:r,style:"italic"};break;case"bolditalic":n={family:r,weight:"bold",style:"italic"};break;case"":case"normal":n={family:r}}null!==n&&(n.ref={name:r,style:e},t.push(n))}))})),t}(e.getFontList());u=function(e){for(var t={},r=0;r<e.length;++r){var n=Ee(e[r]),o=n.family,i=n.stretch,a=n.style,s=n.weight;t[o]=t[o]||{},t[o][i]=t[o][i]||{},t[o][i][a]=t[o][i][a]||{},t[o][i][a][s]=n}return t}(r.concat(t))}return u}var g=null;Object.defineProperty(this,"fontFaces",{get:function(){return g},set:function(e){u=null,g=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(e))){var r=t[1],n=(t[2],t[3]),o=t[4],i=(t[5],t[6]),a=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(o)[2];o="px"===a?Math.floor(parseFloat(o)*this.pdf.internal.scaleFactor):"em"===a?Math.floor(parseFloat(o)*this.pdf.getFontSize()):Math.floor(parseFloat(o)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(o);var s=function(e){var t,r,n=[],o=e.trim();if(""===o)return Ie;if(o in Ne)return[Ne[o]];for(;""!==o;){switch(r=null,t=(o=Re(o)).charAt(0)){case'"':case"'":r=Pe(o.substring(1),t);break;default:r=Le(o)}if(null===r)return Ie;if(n.push(r[0]),""!==(o=Re(r[1]))&&","!==o.charAt(0))return Ie;o=o.replace(/^,/,"")}return n}(i);if(this.fontFaces){var c=function(e,t,r){for(var n=(r=r||{}).defaultFontFamily||"times",o=Object.assign({},Oe,r.genericFontFamilies||{}),i=null,a=null,s=0;s<t.length;++s)if(o[(i=Ee(t[s])).family]&&(i.family=o[i.family]),e.hasOwnProperty(i.family)){a=e[i.family];break}if(!(a=a||e[n]))throw new Error("Could not find a font-family for the rule '"+Ce(i)+"' and default family '"+n+"'.");if(a=function(e,t){if(t[e])return t[e];var r=Ae[e],n=r<=Ae.normal?-1:1,o=_e(t,xe,r,n);if(!o)throw new Error("Could not find a matching font-stretch value for "+e);return o}(i.stretch,a),a=function(e,t){if(t[e])return t[e];for(var r=Se[e],n=0;n<r.length;++n)if(t[r[n]])return t[r[n]];throw new Error("Could not find a matching font-style for "+e)}(i.style,a),!(a=function(e,t){if(t[e])return t[e];if(400===e&&t[500])return t[500];if(500===e&&t[400])return t[400];var r=Te[e],n=_e(t,ke,r,e<400?-1:1);if(!n)throw new Error("Could not find a matching font-weight for value "+e);return n}(i.weight,a)))throw new Error("Failed to resolve a font for the rule '"+Ce(i)+"'.");return a}(d(this.pdf,this.fontFaces),s.map((function(e){return{family:e,stretch:"normal",weight:n,style:r}})));this.pdf.setFont(c.ref.name,c.ref.style)}else{var l="";("bold"===n||parseInt(n,10)>=700||"bold"===r)&&(l="bold"),"italic"===r&&(l+="italic"),0===l.length&&(l="normal");for(var u="",f={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},h=0;h<s.length;h++){if(void 0!==this.pdf.internal.getFont(s[h],l,{noFallback:!0,disableWarning:!0})){u=s[h];break}if("bolditalic"===l&&void 0!==this.pdf.internal.getFont(s[h],"bold",{noFallback:!0,disableWarning:!0}))u=s[h],l="bold";else if(void 0!==this.pdf.internal.getFont(s[h],"normal",{noFallback:!0,disableWarning:!0})){u=s[h],l="normal";break}}if(""===u)for(var p=0;p<s.length;p++)if(f[s[p]]){u=f[s[p]];break}u=""===u?"Times":u,this.pdf.setFont(u,l)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};d.prototype.fill=function(){S.call(this,"fill",!1)},d.prototype.stroke=function(){S.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw n.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var r=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"mt",x:r.x,y:r.y}),this.ctx.lastPoint=new s(e,t)},d.prototype.closePath=function(){var e=new s(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"==typeof this.path[t+1]&&"number"==typeof this.path[t+1].x){e=new s(this.path[t+1].x,this.path[t+1].y),this.path.push({type:"lt",x:e.x,y:e.y});break}"object"==typeof this.path[t+2]&&"number"==typeof this.path[t+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[t+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new s(e.x,e.y)},d.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw n.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var r=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"lt",x:r.x,y:r.y}),this.ctx.lastPoint=new s(r.x,r.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),S.call(this,null,!0)},d.prototype.quadraticCurveTo=function(e,t,r,o){if(isNaN(r)||isNaN(o)||isNaN(e)||isNaN(t))throw n.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new s(r,o)),a=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"qct",x1:a.x,y1:a.y,x:i.x,y:i.y}),this.ctx.lastPoint=new s(i.x,i.y)},d.prototype.bezierCurveTo=function(e,t,r,o,i,a){if(isNaN(i)||isNaN(a)||isNaN(e)||isNaN(t)||isNaN(r)||isNaN(o))throw n.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var c=this.ctx.transform.applyToPoint(new s(i,a)),l=this.ctx.transform.applyToPoint(new s(e,t)),u=this.ctx.transform.applyToPoint(new s(r,o));this.path.push({type:"bct",x1:l.x,y1:l.y,x2:u.x,y2:u.y,x:c.x,y:c.y}),this.ctx.lastPoint=new s(c.x,c.y)},d.prototype.arc=function(e,t,r,o,i,a){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(o)||isNaN(i))throw n.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(a=Boolean(a),!this.ctx.transform.isIdentity){var c=this.ctx.transform.applyToPoint(new s(e,t));e=c.x,t=c.y;var l=this.ctx.transform.applyToPoint(new s(0,r)),u=this.ctx.transform.applyToPoint(new s(0,0));r=Math.sqrt(Math.pow(l.x-u.x,2)+Math.pow(l.y-u.y,2))}Math.abs(i-o)>=2*Math.PI&&(o=0,i=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:r,startAngle:o,endAngle:i,counterclockwise:a})},d.prototype.arcTo=function(e,t,r,n,o){throw new Error("arcTo not implemented.")},d.prototype.rect=function(e,t,r,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(o))throw n.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+r,t),this.lineTo(e+r,t+o),this.lineTo(e,t+o),this.lineTo(e,t),this.lineTo(e+r,t),this.lineTo(e,t)},d.prototype.fillRect=function(e,t,r,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(o))throw n.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,r,o),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},d.prototype.strokeRect=function(e,t,r,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(o))throw n.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(e,t,r,o),this.stroke())},d.prototype.clearRect=function(e,t,r,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(o))throw n.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,r,o))},d.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var n=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=n}},d.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var p=function(e){var t,r,n,o;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,r=0,n=0,o=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==i)t=parseInt(i[1]),r=parseInt(i[2]),n=parseInt(i[3]),o=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e)))t=parseInt(i[1]),r=parseInt(i[2]),n=parseInt(i[3]),o=parseFloat(i[4]);else{if(o=1,"string"==typeof e&&"#"!==e.charAt(0)){var a=new u(e);e=a.ok?a.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,r=e.substring(2,3),r+=r,n=e.substring(3,4),n+=n):(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7)),t=parseInt(t,16),r=parseInt(r,16),n=parseInt(n,16)}}return{r:t,g:r,b:n,a:o,style:e}},g=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},m=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};d.prototype.fillText=function(e,t,r,o){if(isNaN(t)||isNaN(r)||"string"!=typeof e)throw n.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(o=isNaN(o)?void 0:o,!g.call(this)){r=A.call(this,r);var i=I(this.ctx.transform.rotation),a=this.ctx.transform.scaleX;O.call(this,{text:e,x:t,y:r,scale:a,angle:i,align:this.textAlign,maxWidth:o})}},d.prototype.strokeText=function(e,t,r,o){if(isNaN(t)||isNaN(r)||"string"!=typeof e)throw n.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){o=isNaN(o)?void 0:o,r=A.call(this,r);var i=I(this.ctx.transform.rotation),a=this.ctx.transform.scaleX;O.call(this,{text:e,x:t,y:r,scale:a,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:o})}},d.prototype.measureText=function(e){if("string"!=typeof e)throw n.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,r=this.pdf.internal.scaleFactor,o=t.internal.getFontSize(),i=t.getStringUnitWidth(e)*o/t.internal.scaleFactor,a=function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this};return new a({width:i*=Math.round(96*r/72*1e4)/1e4})},d.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw n.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var r=new l(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(r)},d.prototype.rotate=function(e){if(isNaN(e))throw n.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new l(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},d.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw n.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var r=new l(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(r)},d.prototype.transform=function(e,t,r,o,i,a){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(o)||isNaN(i)||isNaN(a))throw n.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var s=new l(e,t,r,o,i,a);this.ctx.transform=this.ctx.transform.multiply(s)},d.prototype.setTransform=function(e,t,r,n,o,i){e=isNaN(e)?1:e,t=isNaN(t)?0:t,r=isNaN(r)?0:r,n=isNaN(n)?1:n,o=isNaN(o)?0:o,i=isNaN(i)?0:i,this.ctx.transform=new l(e,t,r,n,o,i)},d.prototype.drawImage=function(e,t,r,n,o,i,a,s,u){var f=this.pdf.getImageProperties(e),h=1,d=1,p=1,g=1;void 0!==n&&void 0!==s&&(p=s/n,g=u/o,h=f.width/n*s/n,d=f.height/o*u/o),void 0===i&&(i=t,a=r,t=0,r=0),void 0!==n&&void 0===s&&(s=n,u=o),void 0===n&&void 0===s&&(s=f.width,u=f.height);for(var m,b=this.ctx.transform.decompose(),S=I(b.rotate.shx),A=new l,k=(A=(A=(A=A.multiply(b.translate)).multiply(b.skew)).multiply(b.scale)).applyToRectangle(new c(i-t*p,a-r*g,n*h,o*d)),T=v.call(this,k),E=[],_=0;_<T.length;_+=1)-1===E.indexOf(T[_])&&E.push(T[_]);if(w(E),this.autoPaging)for(var O=E[0],N=E[E.length-1],C=O;C<N+1;C++){if(this.pdf.setPage(C),0!==this.ctx.clip_path.length){var R=this.path;m=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(m,this.posX,-1*this.pdf.internal.pageSize.height*(C-1)+this.posY),x.call(this,"fill",!0),this.path=R}var P=JSON.parse(JSON.stringify(k));P=y([P],this.posX,-1*this.pdf.internal.pageSize.height*(C-1)+this.posY)[0],this.pdf.addImage(e,"JPEG",P.x,P.y,P.w,P.h,null,null,S)}else this.pdf.addImage(e,"JPEG",k.x,k.y,k.w,k.h,null,null,S)};var v=function(e,t,r){var n=[];switch(t=t||this.pdf.internal.pageSize.width,r=r||this.pdf.internal.pageSize.height,e.type){default:case"mt":case"lt":n.push(Math.floor((e.y+this.posY)/r)+1);break;case"arc":n.push(Math.floor((e.y+this.posY-e.radius)/r)+1),n.push(Math.floor((e.y+this.posY+e.radius)/r)+1);break;case"qct":var o=F(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);n.push(Math.floor(o.y/r)+1),n.push(Math.floor((o.y+o.h)/r)+1);break;case"bct":var i=j(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);n.push(Math.floor(i.y/r)+1),n.push(Math.floor((i.y+i.h)/r)+1);break;case"rect":n.push(Math.floor((e.y+this.posY)/r)+1),n.push(Math.floor((e.y+e.h+this.posY)/r)+1)}for(var a=0;a<n.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<n[a];)b.call(this);return n},b=function(){var e=this.fillStyle,t=this.strokeStyle,r=this.font,n=this.lineCap,o=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=r,this.lineCap=n,this.lineWidth=o,this.lineJoin=i},y=function(e,t,r){for(var n=0;n<e.length;n++)switch(e[n].type){case"bct":e[n].x2+=t,e[n].y2+=r;case"qct":e[n].x1+=t,e[n].y1+=r;default:e[n].x+=t,e[n].y+=r}return e},w=function(e){return e.sort((function(e,t){return e-t}))},S=function(e,t){for(var r,n,o=this.fillStyle,i=this.strokeStyle,a=this.lineCap,s=this.lineWidth,c=s*this.ctx.transform.scaleX,l=this.lineJoin,u=JSON.parse(JSON.stringify(this.path)),f=JSON.parse(JSON.stringify(this.path)),h=[],d=0;d<f.length;d++)if(void 0!==f[d].x)for(var p=v.call(this,f[d]),g=0;g<p.length;g+=1)-1===h.indexOf(p[g])&&h.push(p[g]);for(var m=0;m<h.length;m++)for(;this.pdf.internal.getNumberOfPages()<h[m];)b.call(this);if(w(h),this.autoPaging)for(var S=h[0],A=h[h.length-1],k=S;k<A+1;k++){if(this.pdf.setPage(k),this.fillStyle=o,this.strokeStyle=i,this.lineCap=a,this.lineWidth=c,this.lineJoin=l,0!==this.ctx.clip_path.length){var T=this.path;r=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(r,this.posX,-1*this.pdf.internal.pageSize.height*(k-1)+this.posY),x.call(this,e,!0),this.path=T}n=JSON.parse(JSON.stringify(u)),this.path=y(n,this.posX,-1*this.pdf.internal.pageSize.height*(k-1)+this.posY),!1!==t&&0!==k||x.call(this,e,t),this.lineWidth=s}else this.lineWidth=c,x.call(this,e,t),this.lineWidth=s;this.path=u},x=function(e,t){if(("stroke"!==e||t||!m.call(this))&&("stroke"===e||t||!g.call(this))){for(var r,n,o=[],i=this.path,a=0;a<i.length;a++){var s=i[a];switch(s.type){case"begin":o.push({begin:!0});break;case"close":o.push({close:!0});break;case"mt":o.push({start:s,deltas:[],abs:[]});break;case"lt":var c=o.length;if(!isNaN(i[a-1].x)&&(r=[s.x-i[a-1].x,s.y-i[a-1].y],c>0))for(;c>=0;c--)if(!0!==o[c-1].close&&!0!==o[c-1].begin){o[c-1].deltas.push(r),o[c-1].abs.push(s);break}break;case"bct":r=[s.x1-i[a-1].x,s.y1-i[a-1].y,s.x2-i[a-1].x,s.y2-i[a-1].y,s.x-i[a-1].x,s.y-i[a-1].y],o[o.length-1].deltas.push(r);break;case"qct":var l=i[a-1].x+2/3*(s.x1-i[a-1].x),u=i[a-1].y+2/3*(s.y1-i[a-1].y),f=s.x+2/3*(s.x1-s.x),h=s.y+2/3*(s.y1-s.y),d=s.x,p=s.y;r=[l-i[a-1].x,u-i[a-1].y,f-i[a-1].x,h-i[a-1].y,d-i[a-1].x,p-i[a-1].y],o[o.length-1].deltas.push(r);break;case"arc":o.push({deltas:[],abs:[],arc:!0}),Array.isArray(o[o.length-1].abs)&&o[o.length-1].abs.push(s)}}n=t?null:"stroke"===e?"stroke":"fill";for(var v=0;v<o.length;v++){if(o[v].arc){for(var b=o[v].abs,y=0;y<b.length;y++){var w=b[y];"arc"===w.type?k.call(this,w.x,w.y,w.radius,w.startAngle,w.endAngle,w.counterclockwise,void 0,t):N.call(this,w.x,w.y)}T.call(this,n),this.pdf.internal.out("h")}if(!o[v].arc&&!0!==o[v].close&&!0!==o[v].begin){var S=o[v].start.x,x=o[v].start.y;C.call(this,o[v].deltas,S,x)}}n&&T.call(this,n),t&&E.call(this)}},A=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,r=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-r;case"top":return e+t-r;case"hanging":return e+t-2*r;case"middle":return e+t/2-r;default:return e}};d.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var k=function(e,t,r,n,o,i,a,s){for(var c=P.call(this,r,n,o,i),l=0;l<c.length;l++){var u=c[l];0===l&&_.call(this,u.x1+e,u.y1+t),R.call(this,e,t,u.x2,u.y2,u.x3,u.y3,u.x4,u.y4)}s?E.call(this):T.call(this,a)},T=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},E=function(){this.pdf.clip(),this.pdf.discardPath()},_=function(e,t){this.pdf.internal.out(r(e)+" "+o(t)+" m")},O=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;default:t="left"}var r=this.ctx.transform.applyToPoint(new s(e.x,e.y)),n=this.ctx.transform.decompose(),o=new l;o=(o=(o=o.multiply(n.translate)).multiply(n.skew)).multiply(n.scale);for(var i,a,u,f=this.pdf.getTextDimensions(e.text),h=this.ctx.transform.applyToRectangle(new c(e.x,e.y,f.w,f.h)),d=o.applyToRectangle(new c(e.x,e.y-f.h,f.w,f.h)),p=v.call(this,d),g=[],m=0;m<p.length;m+=1)-1===g.indexOf(p[m])&&g.push(p[m]);if(w(g),!0===this.autoPaging)for(var b=g[0],S=g[g.length-1],A=b;A<S+1;A++){if(this.pdf.setPage(A),0!==this.ctx.clip_path.length){var k=this.path;i=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(i,this.posX,-1*this.pdf.internal.pageSize.height*(A-1)+this.posY),x.call(this,"fill",!0),this.path=k}var T=JSON.parse(JSON.stringify(h));T=y([T],this.posX,-1*this.pdf.internal.pageSize.height*(A-1)+this.posY)[0],e.scale>=.01&&(a=this.pdf.internal.getFontSize(),this.pdf.setFontSize(a*e.scale),u=this.lineWidth,this.lineWidth=u*e.scale),this.pdf.text(e.text,T.x,T.y,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(a),this.lineWidth=u)}else e.scale>=.01&&(a=this.pdf.internal.getFontSize(),this.pdf.setFontSize(a*e.scale),u=this.lineWidth,this.lineWidth=u*e.scale),this.pdf.text(e.text,r.x+this.posX,r.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(a),this.lineWidth=u)},N=function(e,t,n,i){n=n||0,i=i||0,this.pdf.internal.out(r(e+n)+" "+o(t+i)+" l")},C=function(e,t,r){return this.pdf.lines(e,t,r,null,null)},R=function(e,r,n,o,s,c,l,u){this.pdf.internal.out([t(i(n+e)),t(a(o+r)),t(i(s+e)),t(a(c+r)),t(i(l+e)),t(a(u+r)),"c"].join(" "))},P=function(e,t,r,n){for(var o=2*Math.PI,i=Math.PI/2;t>r;)t-=o;var a=Math.abs(r-t);a<o&&n&&(a=o-a);for(var s=[],c=n?-1:1,l=t;a>1e-5;){var u=l+c*Math.min(a,i);s.push(L.call(this,e,l,u)),a-=Math.abs(u-l),l=u}return s},L=function(e,t,r){var n=(r-t)/2,o=e*Math.cos(n),i=e*Math.sin(n),a=o,s=-i,c=a*a+s*s,l=c+a*o+s*i,u=4/3*(Math.sqrt(2*c*l)-l)/(a*i-s*o),f=a-u*s,h=s+u*a,d=f,p=-h,g=n+t,m=Math.cos(g),v=Math.sin(g);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:f*m-h*v,y2:f*v+h*m,x3:d*m-p*v,y3:d*v+p*m,x4:e*Math.cos(r),y4:e*Math.sin(r)}},I=function(e){return 180*e/Math.PI},F=function(e,t,r,n,o,i){var a=e+.5*(r-e),s=t+.5*(n-t),l=o+.5*(r-o),u=i+.5*(n-i),f=Math.min(e,o,a,l),h=Math.max(e,o,a,l),d=Math.min(t,i,s,u),p=Math.max(t,i,s,u);return new c(f,d,h-f,p-d)},j=function(e,t,r,n,o,i,a,s){var l,u,f,h,d,p,g,m,v,b,y,w,S,x,A=r-e,k=n-t,T=o-r,E=i-n,_=a-o,O=s-i;for(u=0;u<41;u++)v=(g=(f=e+(l=u/40)*A)+l*((d=r+l*T)-f))+l*(d+l*(o+l*_-d)-g),b=(m=(h=t+l*k)+l*((p=n+l*E)-h))+l*(p+l*(i+l*O-p)-m),0==u?(y=v,w=b,S=v,x=b):(y=Math.min(y,v),w=Math.min(w,b),S=Math.max(S,v),x=Math.max(x,b));return new c(Math.round(y),Math.round(w),Math.round(S-y),Math.round(x-w))}}(P.API);try{require("worker_threads").Worker}catch(e){}var Fe=Uint8Array,je=Uint16Array,De=Uint32Array,Me=new Fe([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Be=new Fe([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),We=new Fe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ue=function(e,t){for(var r=new je(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var o=new De(r[30]);for(n=1;n<30;++n)for(var i=r[n];i<r[n+1];++i)o[i]=i-r[n]<<5|n;return[r,o]},He=Ue(Me,2),ze=He[0],Ve=He[1];ze[28]=258,Ve[258]=28;for(var qe=Ue(Be,0),$e=qe[0],Ge=qe[1],Xe=new je(32768),Ye=0;Ye<32768;++Ye){var Ke=(43690&Ye)>>>1|(21845&Ye)<<1;Ke=(61680&(Ke=(52428&Ke)>>>2|(13107&Ke)<<2))>>>4|(3855&Ke)<<4,Xe[Ye]=((65280&Ke)>>>8|(255&Ke)<<8)>>>1}var Je=function(e,t,r){for(var n=e.length,o=0,i=new je(t);o<n;++o)++i[e[o]-1];var a,s=new je(t);for(o=0;o<t;++o)s[o]=s[o-1]+i[o-1]<<1;if(r){a=new je(1<<t);var c=15-t;for(o=0;o<n;++o)if(e[o])for(var l=o<<4|e[o],u=t-e[o],f=s[e[o]-1]++<<u,h=f|(1<<u)-1;f<=h;++f)a[Xe[f]>>>c]=l}else for(a=new je(n),o=0;o<n;++o)a[o]=Xe[s[e[o]-1]++]>>>15-e[o];return a},Ze=new Fe(288);for(Ye=0;Ye<144;++Ye)Ze[Ye]=8;for(Ye=144;Ye<256;++Ye)Ze[Ye]=9;for(Ye=256;Ye<280;++Ye)Ze[Ye]=7;for(Ye=280;Ye<288;++Ye)Ze[Ye]=8;var Qe=new Fe(32);for(Ye=0;Ye<32;++Ye)Qe[Ye]=5;var et=Je(Ze,9,0),tt=Je(Ze,9,1),rt=Je(Qe,5,0),nt=Je(Qe,5,1),ot=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},it=function(e,t,r){var n=t/8>>0;return(e[n]|e[n+1]<<8)>>>(7&t)&r},at=function(e,t){var r=t/8>>0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(7&t)},st=function(e){return(e/8>>0)+(7&e&&1)},ct=function(e,t,r){(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof je?je:e instanceof De?De:Fe)(r-t);return n.set(e.subarray(t,r)),n},lt=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8},ut=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},ft=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var o=r.length,i=r.slice();if(!o)return[new Fe(0),0];if(1==o){var a=new Fe(r[0].s+1);return a[r[0].s]=1,[a,1]}r.sort((function(e,t){return e.f-t.f})),r.push({s:-1,f:25001});var s=r[0],c=r[1],l=0,u=1,f=2;for(r[0]={s:-1,f:s.f+c.f,l:s,r:c};u!=o-1;)s=r[r[l].f<r[f].f?l++:f++],c=r[l!=u&&r[l].f<r[f].f?l++:f++],r[u++]={s:-1,f:s.f+c.f,l:s,r:c};var h=i[0].s;for(n=1;n<o;++n)i[n].s>h&&(h=i[n].s);var d=new je(h+1),p=ht(r[u-1],d,0);if(p>t){n=0;var g=0,m=p-t,v=1<<m;for(i.sort((function(e,t){return d[t.s]-d[e.s]||e.f-t.f}));n<o;++n){var b=i[n].s;if(!(d[b]>t))break;g+=v-(1<<p-d[b]),d[b]=t}for(g>>>=m;g>0;){var y=i[n].s;d[y]<t?g-=1<<t-d[y]++-1:++n}for(;n>=0&&g;--n){var w=i[n].s;d[w]==t&&(--d[w],++g)}p=t}return[new Fe(d),p]},ht=function(e,t,r){return-1==e.s?Math.max(ht(e.l,t,r+1),ht(e.r,t,r+1)):t[e.s]=r},dt=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new je(++t),n=0,o=e[0],i=1,a=function(e){r[n++]=e},s=1;s<=t;++s)if(e[s]==o&&s!=t)++i;else{if(!o&&i>2){for(;i>138;i-=138)a(32754);i>2&&(a(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(a(o),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(o);i=1,o=e[s]}return[r.subarray(0,n),t]},pt=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},gt=function(e,t,r){var n=r.length,o=st(t+2);e[o]=255&n,e[o+1]=n>>>8,e[o+2]=255^e[o],e[o+3]=255^e[o+1];for(var i=0;i<n;++i)e[o+i+4]=r[i];return 8*(o+4+n)},mt=function(e,t,r,n,o,i,a,s,c,l,u){lt(t,u++,r),++o[256];for(var f=ft(o,15),h=f[0],d=f[1],p=ft(i,15),g=p[0],m=p[1],v=dt(h),b=v[0],y=v[1],w=dt(g),S=w[0],x=w[1],A=new je(19),k=0;k<b.length;++k)A[31&b[k]]++;for(k=0;k<S.length;++k)A[31&S[k]]++;for(var T=ft(A,7),E=T[0],_=T[1],O=19;O>4&&!E[We[O-1]];--O);var N,C,R,P,L=l+5<<3,I=pt(o,Ze)+pt(i,Qe)+a,F=pt(o,h)+pt(i,g)+a+14+3*O+pt(A,E)+(2*A[16]+3*A[17]+7*A[18]);if(L<=I&&L<=F)return gt(t,u,e.subarray(c,c+l));if(lt(t,u,1+(F<I)),u+=2,F<I){N=Je(h,d,0),C=h,R=Je(g,m,0),P=g;var j=Je(E,_,0);for(lt(t,u,y-257),lt(t,u+5,x-1),lt(t,u+10,O-4),u+=14,k=0;k<O;++k)lt(t,u+3*k,E[We[k]]);u+=3*O;for(var D=[b,S],M=0;M<2;++M){var B=D[M];for(k=0;k<B.length;++k){var W=31&B[k];lt(t,u,j[W]),u+=E[W],W>15&&(lt(t,u,B[k]>>>5&127),u+=B[k]>>>12)}}}else N=et,C=Ze,R=rt,P=Qe;for(k=0;k<s;++k)if(n[k]>255){W=n[k]>>>18&31,ut(t,u,N[W+257]),u+=C[W+257],W>7&&(lt(t,u,n[k]>>>23&31),u+=Me[W]);var U=31&n[k];ut(t,u,R[U]),u+=P[U],U>3&&(ut(t,u,n[k]>>>5&8191),u+=Be[U])}else ut(t,u,N[n[k]]),u+=C[n[k]];return ut(t,u,N[256]),u+C[256]},vt=new De([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),bt=new Fe(0);function yt(e,t){void 0===t&&(t={});var r=function(){var e=1,t=0;return{p:function(r){for(var n=e,o=t,i=r.length,a=0;a!=i;){for(var s=Math.min(a+5552,i);a<s;++a)o+=n+=r[a];n%=65521,o%=65521}e=n,t=o},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}}();r.p(e);var n=function(e,t,r,n,o){return function(e,t,r,n,o,i){var a=e.length,s=new Fe(n+a+5*(1+Math.floor(a/7e3))+o),c=s.subarray(n,s.length-o),l=0;if(!t||a<8)for(var u=0;u<=a;u+=65535){var f=u+65535;f<a?l=gt(c,l,e.subarray(u,f)):(c[u]=i,l=gt(c,l,e.subarray(u,a)))}else{for(var h=vt[t-1],d=h>>>13,p=8191&h,g=(1<<r)-1,m=new je(32768),v=new je(g+1),b=Math.ceil(r/3),y=2*b,w=function(t){return(e[t]^e[t+1]<<b^e[t+2]<<y)&g},S=new De(25e3),x=new je(288),A=new je(32),k=0,T=0,E=(u=0,0),_=0,O=0;u<a;++u){var N=w(u),C=32767&u,R=v[N];if(m[C]=R,v[N]=C,_<=u){var P=a-u;if((k>7e3||E>24576)&&P>423){l=mt(e,c,0,S,x,A,T,E,O,u-O,l),E=k=T=0,O=u;for(var L=0;L<286;++L)x[L]=0;for(L=0;L<30;++L)A[L]=0}var I=2,F=0,j=p,D=C-R&32767;if(P>2&&N==w(u-D))for(var M=Math.min(d,P)-1,B=Math.min(32767,u),W=Math.min(258,P);D<=B&&--j&&C!=R;){if(e[u+I]==e[u+I-D]){for(var U=0;U<W&&e[u+U]==e[u+U-D];++U);if(U>I){if(I=U,F=D,U>M)break;var H=Math.min(D,U-2),z=0;for(L=0;L<H;++L){var V=u-D+L+32768&32767,q=V-m[V]+32768&32767;q>z&&(z=q,R=V)}}}D+=(C=R)-(R=m[C])+32768&32767}if(F){S[E++]=268435456|Ve[I]<<18|Ge[F];var $=31&Ve[I],G=31&Ge[F];T+=Me[$]+Be[G],++x[257+$],++A[G],_=u+I,++k}else S[E++]=e[u],++x[e[u]]}}l=mt(e,c,i,S,x,A,T,E,O,u-O,l),i||(l=gt(c,l,bt))}return ct(s,0,n+st(l)+o)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,r,n,!o)}(e,t,2,4);return function(e,t){var r=t.level,n=0==r?0:r<6?1:9==r?3:2;e[0]=120,e[1]=n<<6|(n?32-2*n:1)}(n,t),function(e,t,r){for(;r;++t)e[t]=r,r>>>=8}(n,n.length-4,r.d()),n}!function(e){var t=function(e){var t,r,n,o,i,a,s,c,l,u;for(/[^\x00-\xFF]/.test(e),r=[],n=0,o=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;o>n;n+=4)0!==(i=(e.charCodeAt(n)<<24)+(e.charCodeAt(n+1)<<16)+(e.charCodeAt(n+2)<<8)+e.charCodeAt(n+3))?(a=(i=((i=((i=((i=(i-(u=i%85))/85)-(l=i%85))/85)-(c=i%85))/85)-(s=i%85))/85)%85,r.push(a+33,s+33,c+33,l+33,u+33)):r.push(122);return function(e,t){for(var r=t;r>0;r--)e.pop()}(r,t.length),String.fromCharCode.apply(String,r)+"~>"},r=function(e){var t,r,n,o,i,a=String,s="length",c=255,l="charCodeAt",u="slice",f="replace";for(e[u](-2),e=e[u](0,-2)[f](/\s/g,"")[f]("z","!!!!!"),n=[],o=0,i=(e+=t="uuuuu"[u](e[s]%5||5))[s];i>o;o+=5)r=52200625*(e[l](o)-33)+614125*(e[l](o+1)-33)+7225*(e[l](o+2)-33)+85*(e[l](o+3)-33)+(e[l](o+4)-33),n.push(c&r>>24,c&r>>16,c&r>>8,c&r);return function(e,t){for(var r=t;r>0;r--)e.pop()}(n,t[s]),a.fromCharCode.apply(a,n)},n=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var r="",n=0;n<e.length;n+=2)r+=String.fromCharCode("0x"+(e[n]+e[n+1]));return r},o=function(e){for(var t=new Uint8Array(e.length),r=e.length;r--;)t[r]=e.charCodeAt(r);return(t=yt(t)).reduce((function(e,t){return e+String.fromCharCode(t)}),"")};e.processDataByFilters=function(e,i){var a=0,s=e||"",c=[];for("string"==typeof(i=i||[])&&(i=[i]),a=0;a<i.length;a+=1)switch(i[a]){case"ASCII85Decode":case"/ASCII85Decode":s=r(s),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":s=t(s),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":s=n(s),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":s=s.split("").map((function(e){return("0"+e.charCodeAt().toString(16)).slice(-2)})).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=o(s),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+i[a]+'" is not implemented')}return{data:s,reverseChain:c.reverse().join(" ")}}}(P.API),function(e){e.loadFile=function(e,t,r){return function(e,t,r){t=!1!==t,r="function"==typeof r?r:function(){};var n=void 0;try{n=function(e,t,r){var n=new XMLHttpRequest,o=0,i=function(e){var t=e.length,r=[],n=String.fromCharCode;for(o=0;o<t;o+=1)r.push(n(255&e.charCodeAt(o)));return r.join("")};if(n.open("GET",e,!t),n.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(n.onload=function(){200===n.status?r(i(this.responseText)):r(void 0)}),n.send(null),t&&200===n.status)return i(n.responseText)}(e,t,r)}catch(e){}return n}(e,t,r)},e.loadImageFile=e.loadFile}(P.API),function(r){function n(){return(t.html2canvas?Promise.resolve(t.html2canvas):"object"==typeof e&&"undefined"!=typeof module?new Promise((function(e,t){try{e(require("html2canvas"))}catch(e){t(e)}})):"function"==typeof define&&define.amd?new Promise((function(e,t){try{require(["html2canvas"],e)}catch(e){t(e)}})):Promise.reject(new Error("Could not load html2canvas"))).catch((function(e){return Promise.reject(new Error("Could not load html2canvas: "+e))})).then((function(e){return e.default?e.default:e}))}function o(){return(t.DOMPurify?Promise.resolve(t.DOMPurify):"object"==typeof e&&"undefined"!=typeof module?new Promise((function(e,t){try{e(require("dompurify"))}catch(e){t(e)}})):"function"==typeof define&&define.amd?new Promise((function(e,t){try{require(["dompurify"],e)}catch(e){t(e)}})):Promise.reject(new Error("Could not load dompurify"))).catch((function(e){return Promise.reject(new Error("Could not load dompurify: "+e))})).then((function(e){return e.default?e.default:e}))}var i=function(e){var t=typeof e;return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},a=function(e,t){var r=document.createElement(e);for(var n in t.className&&(r.className=t.className),t.innerHTML&&t.dompurify&&(r.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)r.style[n]=t.style[n];return r},s=function(e,t){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),n=e.firstChild;n;n=n.nextSibling)!0!==t&&1===n.nodeType&&"SCRIPT"===n.nodeName||r.appendChild(s(n,t));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(r.value=e.value),r.addEventListener("load",(function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft}),!0)),r},c=function e(t){var r=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),n=e.convert(Promise.resolve(),r);return(n=n.setProgress(1,e,1,[e])).set(t)};(c.prototype=Object.create(Promise.prototype)).constructor=c,c.convert=function(e,t){return e.__proto__=t||c.prototype,e},c.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},c.prototype.from=function(e,t){return this.then((function(){switch(t=t||function(e){switch(i(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e)){case"string":return this.then(o).then((function(t){return this.set({src:a("div",{innerHTML:e,dompurify:t})})}));case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}}))},c.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},c.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var e={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},c.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(n).then((function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)})).then((function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},c.prototype.toContext2d=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(n).then((function(e){var t=this.opt.jsPDF,r=this.opt.fontFaces,n=Object.assign({async:!0,allowTaint:!0,scale:1,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete n.onrendered,t.context2d.autoPaging=!0,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.fontFaces=r,r)for(var o=0;o<r.length;++o){var i=r[o],a=i.src.find((function(e){return"truetype"===e.format}));a&&t.addFont(a.url,i.ref.name,i.ref.style)}return n.windowHeight=n.windowHeight||0,n.windowHeight=0==n.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):n.windowHeight,e(this.prop.container,n)})).then((function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},c.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e}))},c.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},c.prototype.output=function(e,t,r){return"img"===(r=r||"pdf").toLowerCase()||"image"===r.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},c.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(e,t)}))},c.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}}))},c.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},c.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},c.prototype.set=function(e){if("object"!==i(e))return this;var t=Object.keys(e||{}).map((function(t){if(t in c.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}}),this);return this.then((function(){return this.thenList(t)}))},c.prototype.get=function(e,t){return this.then((function(){var r=e in c.template.prop?this.prop[e]:this.opt[e];return t?t(r):r}))},c.prototype.setMargin=function(e){return this.then((function(){switch(i(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e})).then(this.setPageSize)},c.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then((function(){(e=e||P.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e}))},c.prototype.setProgress=function(e,t,r,n){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=r&&(this.progress.n=r),null!=n&&(this.progress.stack=n),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(e,t,r,n){return this.setProgress(e?this.progress.val+e:null,t||null,r?this.progress.n+r:null,n?this.progress.stack.concat(n):null)},c.prototype.then=function(e,t){var r=this;return this.thenCore(e,t,(function(e,t){return r.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,(function(t){return r.updateProgress(null,e),t})).then(e,t).then((function(e){return r.updateProgress(1),e}))}))},c.prototype.thenCore=function(e,t,r){r=r||Promise.prototype.then,e&&(e=e.bind(this)),t&&(t=t.bind(this));var n=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:c.convert(Object.assign({},this),Promise.prototype),o=r.call(n,e,t);return c.convert(o,this.__proto__)},c.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},c.prototype.thenList=function(e){var t=this;return e.forEach((function(e){t=t.thenCore(e)})),t},c.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return c.convert(t,this)},c.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},c.prototype.error=function(e){return this.then((function(){throw new Error(e)}))},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype.export=c.prototype.output,c.prototype.run=c.prototype.then,P.getPageSize=function(e,t,r){if("object"==typeof e){var n=e;e=n.orientation,t=n.unit||t,r=n.format||r}t=t||"mm",r=r||"a4",e=(""+(e||"P")).toLowerCase();var o,i=(""+r).toLowerCase(),a={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":o=1;break;case"mm":o=72/25.4;break;case"cm":o=72/2.54;break;case"in":o=72;break;case"px":o=.75;break;case"pc":case"em":o=12;break;case"ex":o=6;break;default:throw"Invalid unit: "+t}var s,c=0,l=0;if(a.hasOwnProperty(i))c=a[i][1]/o,l=a[i][0]/o;else try{c=r[1],l=r[0]}catch(e){throw new Error("Invalid format: "+r)}if("p"===e||"portrait"===e)e="p",l>c&&(s=l,l=c,c=s);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",c>l&&(s=l,l=c,c=s)}return{width:l,height:c,unit:t,k:o,orientation:e}},r.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(Ee):null;var r=new c(t);return t.worker?r:r.from(e).doCallback()}}(P.API),function(e){var t,r,n;e.addJS=function(e){return n=e,this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),r=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+n+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==t&&void 0!==r&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")})),this}}(P.API),function(e){var t;e.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=e.outline.render().split(/\r\n/),o=0;o<n.length;o++){var i=n[o],a=r.exec(i);if(null!=a){var s=a[1];e.internal.newObjectDeferredBegin(s,!1)}e.internal.write(i)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,l=[];for(o=0;o<c;o++){var u=e.internal.newObject();l.push(u);var f=e.internal.getPageInfo(o+1);e.internal.write("<< /D["+f.objId+" 0 R /XYZ null null null]>> endobj")}var h=e.internal.newObject();for(e.internal.write("<< /Names [ "),o=0;o<l.length;o++)e.internal.write("(page_"+(o+1)+")"+l[o]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+h+" 0 R"),e.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,r){var n={title:t,options:r,children:[]};return null==e&&(e=this.root),e.children.push(n),n},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var r=0;r<t.children.length;r++)this.genIds_r(t.children[r])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),e.children.length>0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,n=0;n<t.children.length;n++){var o=t.children[n];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(t)),n>0&&this.line("/Prev "+this.makeRef(t.children[n-1])),n<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[n+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var i=this.count=this.count_r({count:0},o);if(i>0&&this.line("/Count "+i),o.options&&o.options.pageNumber){var a=e.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var s=0;s<t.children.length;s++)this.renderItems(t.children[s])},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var r=0;r<t.children.length;r++)e.count++,this.count_r(e,t.children[r]);return e.count}}])}(P.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,r,n,o,i,a){var s,c=this.decode.DCT_DECODE,l=null;if("string"==typeof e||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=i||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,(s=function(e){for(var r,n=256*e.charCodeAt(4)+e.charCodeAt(5),o=e.length,i={width:0,height:0,numcomponents:1},a=4;a<o;a+=2){if(a+=n,-1!==t.indexOf(e.charCodeAt(a+1))){r=256*e.charCodeAt(a+5)+e.charCodeAt(a+6),i={width:256*e.charCodeAt(a+7)+e.charCodeAt(a+8),height:r,numcomponents:e.charCodeAt(a+9)};break}n=256*e.charCodeAt(a+2)+e.charCodeAt(a+3)}return i}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}l={data:e,width:s.width,height:s.height,colorSpace:a,bitsPerComponent:8,filter:c,index:r,alias:n}}return l}}(P.API);var wt,St,xt,At,kt,Tt=function(){var e,r,n;function o(e){var t,r,n,o,i,a,s,c,l,u,f,h,d,p;for(this.data=e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},a=null;;){switch(t=this.readUInt32(),l=function(){var e,t;for(t=[],e=0;e<4;++e)t.push(String.fromCharCode(this.data[this.pos++]));return t}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(t);break;case"fcTL":a&&this.animation.frames.push(a),this.pos+=4,a={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},i=this.readUInt16(),o=this.readUInt16()||100,a.delay=1e3*i/o,a.disposeOp=this.data[this.pos++],a.blendOp=this.data[this.pos++],a.data=[];break;case"IDAT":case"fdAT":for("fdAT"===l&&(this.pos+=4,t-=4),e=(null!=a?a.data:void 0)||this.imgData,h=0;0<=t?h<t:h>t;0<=t?++h:--h)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(n=this.palette.length/3,this.transparency.indexed=this.read(t),this.transparency.indexed.length>n)throw new Error("More transparent colors than palette size");if((u=n-this.transparency.indexed.length)>0)for(d=0;0<=u?d<u:d>u;0<=u?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":s=(f=this.read(t)).indexOf(0),c=String.fromCharCode.apply(String,f.slice(0,s)),this.text[c]=String.fromCharCode.apply(String,f.slice(s+1));break;case"IEND":return a&&this.animation.frames.push(a),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,r=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*r,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}o.prototype.read=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;0<=e?++t:--t)r.push(this.data[this.pos++]);return r},o.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},o.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},o.prototype.decodePixels=function(e){var t=this.pixelBitlength/8,r=new Uint8Array(this.width*this.height*t),n=0,o=this;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);function i(i,a,s,c){var l,u,f,h,d,p,g,m,v,b,y,w,S,x,A,k,T,E,_,O,N,C=Math.ceil((o.width-i)/s),R=Math.ceil((o.height-a)/c),P=o.width==C&&o.height==R;for(x=t*C,w=P?r:new Uint8Array(x*R),p=e.length,S=0,u=0;S<R&&n<p;){switch(e[n++]){case 0:for(h=T=0;T<x;h=T+=1)w[u++]=e[n++];break;case 1:for(h=E=0;E<x;h=E+=1)l=e[n++],d=h<t?0:w[u-t],w[u++]=(l+d)%256;break;case 2:for(h=_=0;_<x;h=_+=1)l=e[n++],f=(h-h%t)/t,A=S&&w[(S-1)*x+f*t+h%t],w[u++]=(A+l)%256;break;case 3:for(h=O=0;O<x;h=O+=1)l=e[n++],f=(h-h%t)/t,d=h<t?0:w[u-t],A=S&&w[(S-1)*x+f*t+h%t],w[u++]=(l+Math.floor((d+A)/2))%256;break;case 4:for(h=N=0;N<x;h=N+=1)l=e[n++],f=(h-h%t)/t,d=h<t?0:w[u-t],0===S?A=k=0:(A=w[(S-1)*x+f*t+h%t],k=f&&w[(S-1)*x+(f-1)*t+h%t]),g=d+A-k,m=Math.abs(g-d),b=Math.abs(g-A),y=Math.abs(g-k),v=m<=b&&m<=y?d:b<=y?A:k,w[u++]=(l+v)%256;break;default:throw new Error("Invalid filter algorithm: "+e[n-1])}if(!P){var L=((a+S*c)*o.width+i)*t,I=S*x;for(h=0;h<C;h+=1){for(var F=0;F<t;F+=1)r[L++]=w[I++];L+=(s-1)*t}}S++}}return e=function(e,t){return function(e,t,r){var n=e.length,o=!t||r,i=!r||r.i;r||(r={}),t||(t=new Fe(3*n));var a=function(e){var r=t.length;if(e>r){var n=new Fe(Math.max(2*r,e));n.set(t),t=n}},s=r.f||0,c=r.p||0,l=r.b||0,u=r.l,f=r.d,h=r.m,d=r.n,p=8*n;do{if(!u){r.f=s=it(e,c,1);var g=it(e,c+1,3);if(c+=3,!g){var m=e[(_=st(c)+4)-4]|e[_-3]<<8,v=_+m;if(v>n){if(i)throw"unexpected EOF";break}o&&a(l+m),t.set(e.subarray(_,v),l),r.b=l+=m,r.p=c=8*v;continue}if(1==g)u=tt,f=nt,h=9,d=5;else{if(2!=g)throw"invalid block type";var b=it(e,c,31)+257,y=it(e,c+10,15)+4,w=b+it(e,c+5,31)+1;c+=14;for(var S=new Fe(w),x=new Fe(19),A=0;A<y;++A)x[We[A]]=it(e,c+3*A,7);c+=3*y;var k=ot(x),T=(1<<k)-1;if(!i&&c+w*(k+7)>p)break;var E=Je(x,k,1);for(A=0;A<w;){var _,O=E[it(e,c,T)];if(c+=15&O,(_=O>>>4)<16)S[A++]=_;else{var N=0,C=0;for(16==_?(C=3+it(e,c,3),c+=2,N=S[A-1]):17==_?(C=3+it(e,c,7),c+=3):18==_&&(C=11+it(e,c,127),c+=7);C--;)S[A++]=N}}var R=S.subarray(0,b),P=S.subarray(b);h=ot(R),d=ot(P),u=Je(R,h,1),f=Je(P,d,1)}if(c>p)throw"unexpected EOF"}o&&a(l+131072);for(var L=(1<<h)-1,I=(1<<d)-1,F=h+d+18;i||c+F<p;){var j=(N=u[at(e,c)&L])>>>4;if((c+=15&N)>p)throw"unexpected EOF";if(!N)throw"invalid length/literal";if(j<256)t[l++]=j;else{if(256==j){u=null;break}var D=j-254;if(j>264){var M=Me[A=j-257];D=it(e,c,(1<<M)-1)+ze[A],c+=M}var B=f[at(e,c)&I],W=B>>>4;if(!B)throw"invalid distance";if(c+=15&B,P=$e[W],W>3&&(M=Be[W],P+=at(e,c)&(1<<M)-1,c+=M),c>p)throw"unexpected EOF";o&&a(l+131072);for(var U=l+D;l<U;l+=4)t[l]=t[l-P],t[l+1]=t[l+1-P],t[l+2]=t[l+2-P],t[l+3]=t[l+3-P];l=U}}r.l=u,r.p=c,r.b=l,u&&(s=1,r.m=h,r.d=f,r.n=d)}while(!s);return l==t.length?t:ct(t,0,l)}((function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"}(e),e.subarray(2,-4)),t)}(e),1==o.interlaceMethod?(i(0,0,8,8),i(4,0,8,8),i(0,4,4,8),i(2,0,4,4),i(0,2,2,4),i(1,0,2,2),i(0,1,1,2)):i(0,0,1,1),r},o.prototype.decodePalette=function(){var e,t,r,n,o,i,a,s,c;for(r=this.palette,i=this.transparency.indexed||[],o=new Uint8Array((i.length||0)+r.length),n=0,e=0,t=a=0,s=r.length;a<s;t=a+=3)o[n++]=r[t],o[n++]=r[t+1],o[n++]=r[t+2],o[n++]=null!=(c=i[e++])?c:255;return o},o.prototype.copyToImageData=function(e,t){var r,n,o,i,a,s,c,l,u,f,h;if(n=this.colors,u=null,r=this.hasAlphaChannel,this.palette.length&&(u=null!=(h=this._decodedPalette)?h:this._decodedPalette=this.decodePalette(),n=4,r=!0),l=(o=e.data||e).length,a=u||t,i=s=0,1===n)for(;i<l;)c=u?4*t[i/4]:s,f=a[c++],o[i++]=f,o[i++]=f,o[i++]=f,o[i++]=r?a[c++]:255,s=c;else for(;i<l;)c=u?4*t[i/4]:s,o[i++]=a[c++],o[i++]=a[c++],o[i++]=a[c++],o[i++]=r?a[c++]:255,s=c},o.prototype.decode=function(){var e;return e=new Uint8Array(this.width*this.height*4),this.copyToImageData(e,this.decodePixels()),e};var i=function(){if("[object Window]"===Object.prototype.toString.call(t)){try{r=t.document.createElement("canvas"),n=r.getContext("2d")}catch(e){return!1}return!0}return!1};return i(),e=function(e){var t;if(!0===i())return n.width=e.width,n.height=e.height,n.clearRect(0,0,e.width,e.height),n.putImageData(e,0,0),(t=new Image).src=r.toDataURL(),t;throw new Error("This method requires a Browser with Canvas-capability.")},o.prototype.decodeFrames=function(t){var r,n,o,i,a,s,c,l;if(this.animation){for(l=[],n=a=0,s=(c=this.animation.frames).length;a<s;n=++a)r=c[n],o=t.createImageData(r.width,r.height),i=this.decodePixels(new Uint8Array(r.data)),this.copyToImageData(o,i),r.imageData=o,l.push(r.image=e(o));return l}},o.prototype.renderFrame=function(e,t){var r,n,o;return r=(n=this.animation.frames)[t],o=n[t-1],0===t&&e.clearRect(0,0,this.width,this.height),1===(null!=o?o.disposeOp:void 0)?e.clearRect(o.xOffset,o.yOffset,o.width,o.height):2===(null!=o?o.disposeOp:void 0)&&e.putImageData(o.imageData,o.xOffset,o.yOffset),0===r.blendOp&&e.clearRect(r.xOffset,r.yOffset,r.width,r.height),e.drawImage(r.image,r.xOffset,r.yOffset)},o.prototype.animate=function(e){var t,r,n,o,i,a,s=this;return r=0,a=this.animation,o=a.numFrames,n=a.frames,i=a.numPlays,(t=function(){var a,c;if(a=r++%o,c=n[a],s.renderFrame(e,a),o>1&&r/o<i)return s.animation._timeout=setTimeout(t,c.delay)})()},o.prototype.stopAnimation=function(){var e;return clearTimeout(null!=(e=this.animation)?e._timeout:void 0)},o.prototype.render=function(e){var t,r;return e._png&&e._png.stopAnimation(),e._png=this,e.width=this.width,e.height=this.height,t=e.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(r=t.createImageData(this.width,this.height),this.copyToImageData(r,this.decodePixels()),t.putImageData(r,0,0))},o}();function Et(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,o=e[t++],i=o>>7,a=1<<1+(7&o);e[t++],e[t++];var s=null,c=null;i&&(s=t,c=a,t+=3*a);var l=!0,u=[],f=0,h=null,d=0,p=null;for(this.width=r,this.height=n;l&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,p=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((_=e[t++])>=0))throw Error("Invalid block size");if(0===_)break;t+=_}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var g=e[t++];f=e[t++]|e[t++]<<8,h=e[t++],0==(1&g)&&(h=null),d=g>>2&7,t++;break;case 254:for(;;){if(!((_=e[t++])>=0))throw Error("Invalid block size");if(0===_)break;t+=_}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var m=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,w=e[t++],S=w>>6&1,x=1<<1+(7&w),A=s,k=c,T=!1;w>>7&&(T=!0,A=t,k=x,t+=3*x);var E=t;for(t++;;){var _;if(!((_=e[t++])>=0))throw Error("Invalid block size");if(0===_)break;t+=_}u.push({x:m,y:v,width:b,height:y,has_local_palette:T,palette_offset:A,palette_size:k,data_offset:E,data_length:t-E,transparent_index:h,interlaced:!!S,delay:f,disposal:d});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return p},this.frameInfo=function(e){if(e<0||e>=u.length)throw new Error("Frame index out of range.");return u[e]},this.decodeAndBlitFrameBGRA=function(t,n){var o=this.frameInfo(t),i=o.width*o.height,a=new Uint8Array(i);_t(e,o.data_offset,a,i);var s=o.palette_offset,c=o.transparent_index;null===c&&(c=256);var l=o.width,u=r-l,f=l,h=4*(o.y*r+o.x),d=4*((o.y+o.height)*r+o.x),p=h,g=4*u;!0===o.interlaced&&(g+=4*r*7);for(var m=8,v=0,b=a.length;v<b;++v){var y=a[v];if(0===f&&(f=l,(p+=g)>=d&&(g=4*u+4*r*(m-1),p=h+(l+u)*(m<<1),m>>=1)),y===c)p+=4;else{var w=e[s+3*y],S=e[s+3*y+1],x=e[s+3*y+2];n[p++]=x,n[p++]=S,n[p++]=w,n[p++]=255}--f}},this.decodeAndBlitFrameRGBA=function(t,n){var o=this.frameInfo(t),i=o.width*o.height,a=new Uint8Array(i);_t(e,o.data_offset,a,i);var s=o.palette_offset,c=o.transparent_index;null===c&&(c=256);var l=o.width,u=r-l,f=l,h=4*(o.y*r+o.x),d=4*((o.y+o.height)*r+o.x),p=h,g=4*u;!0===o.interlaced&&(g+=4*r*7);for(var m=8,v=0,b=a.length;v<b;++v){var y=a[v];if(0===f&&(f=l,(p+=g)>=d&&(g=4*u+4*r*(m-1),p=h+(l+u)*(m<<1),m>>=1)),y===c)p+=4;else{var w=e[s+3*y],S=e[s+3*y+1],x=e[s+3*y+2];n[p++]=w,n[p++]=S,n[p++]=x,n[p++]=255}--f}}}function _t(e,t,r,o){for(var i=e[t++],a=1<<i,s=a+1,c=s+1,l=i+1,u=(1<<l)-1,f=0,h=0,d=0,p=e[t++],g=new Int32Array(4096),m=null;;){for(;f<16&&0!==p;)h|=e[t++]<<f,f+=8,1===p?p=e[t++]:--p;if(f<l)break;var v=h&u;if(h>>=l,f-=l,v!==a){if(v===s)break;for(var b=v<c?v:m,y=0,w=b;w>a;)w=g[w]>>8,++y;var S=w;if(d+y+(b!==v?1:0)>o)return void n.log("Warning, gif stream longer than expected.");r[d++]=S;var x=d+=y;for(b!==v&&(r[d++]=S),w=b;y--;)w=g[w],r[--x]=255&w,w>>=8;null!==m&&c<4096&&(g[c++]=m<<8|S,c>=u+1&&l<12&&(++l,u=u<<1|1)),m=v}else c=s+1,u=(1<<(l=i+1))-1,m=null}return d!==o&&n.log("Warning, gif stream shorter than expected."),r}function Ot(e){var t,r,n,o,i,a=Math.floor,s=new Array(64),c=new Array(64),l=new Array(64),u=new Array(64),f=new Array(65535),h=new Array(65535),d=new Array(64),p=new Array(64),g=[],m=0,v=7,b=new Array(64),y=new Array(64),w=new Array(64),S=new Array(256),x=new Array(2048),A=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],k=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],E=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],_=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],N=[0,1,2,3,4,5,6,7,8,9,10,11],C=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],R=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function P(e,t){for(var r=0,n=0,o=new Array,i=1;i<=16;i++){for(var a=1;a<=e[i];a++)o[t[n]]=[],o[t[n]][0]=r,o[t[n]][1]=i,n++,r++;r*=2}return o}function L(e){for(var t=e[0],r=e[1]-1;r>=0;)t&1<<r&&(m|=1<<v),r--,--v<0&&(255==m?(I(255),I(0)):I(m),v=7,m=0)}function I(e){g.push(e)}function F(e){I(e>>8&255),I(255&e)}function j(e,t,r,n,o){for(var i,a=o[0],s=o[240],c=function(e,t){var r,n,o,i,a,s,c,l,u,f,h=0;for(u=0;u<8;++u){r=e[h],n=e[h+1],o=e[h+2],i=e[h+3],a=e[h+4],s=e[h+5],c=e[h+6];var p=r+(l=e[h+7]),g=r-l,m=n+c,v=n-c,b=o+s,y=o-s,w=i+a,S=i-a,x=p+w,A=p-w,k=m+b,T=m-b;e[h]=x+k,e[h+4]=x-k;var E=.707106781*(T+A);e[h+2]=A+E,e[h+6]=A-E;var _=.382683433*((x=S+y)-(T=v+g)),O=.5411961*x+_,N=1.306562965*T+_,C=.707106781*(k=y+v),R=g+C,P=g-C;e[h+5]=P+O,e[h+3]=P-O,e[h+1]=R+N,e[h+7]=R-N,h+=8}for(h=0,u=0;u<8;++u){r=e[h],n=e[h+8],o=e[h+16],i=e[h+24],a=e[h+32],s=e[h+40],c=e[h+48];var L=r+(l=e[h+56]),I=r-l,F=n+c,j=n-c,D=o+s,M=o-s,B=i+a,W=i-a,U=L+B,H=L-B,z=F+D,V=F-D;e[h]=U+z,e[h+32]=U-z;var q=.707106781*(V+H);e[h+16]=H+q,e[h+48]=H-q;var $=.382683433*((U=W+M)-(V=j+I)),G=.5411961*U+$,X=1.306562965*V+$,Y=.707106781*(z=M+j),K=I+Y,J=I-Y;e[h+40]=J+G,e[h+24]=J-G,e[h+8]=K+X,e[h+56]=K-X,h++}for(u=0;u<64;++u)f=e[u]*t[u],d[u]=f>0?f+.5|0:f-.5|0;return d}(e,t),l=0;l<64;++l)p[A[l]]=c[l];var u=p[0]-r;r=p[0],0==u?L(n[0]):(L(n[h[i=32767+u]]),L(f[i]));for(var g=63;g>0&&0==p[g];)g--;if(0==g)return L(a),r;for(var m,v=1;v<=g;){for(var b=v;0==p[v]&&v<=g;)++v;var y=v-b;if(y>=16){m=y>>4;for(var w=1;w<=m;++w)L(s);y&=15}i=32767+p[v],L(o[(y<<4)+h[i]]),L(f[i]),v++}return 63!=g&&L(a),r}function D(e){e=Math.min(Math.max(e,1),100),i!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],r=0;r<64;r++){var n=a((t[r]*e+50)/100);n=Math.min(Math.max(n,1),255),s[A[r]]=n}for(var o=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],i=0;i<64;i++){var f=a((o[i]*e+50)/100);f=Math.min(Math.max(f,1),255),c[A[i]]=f}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,p=0;p<8;p++)for(var g=0;g<8;g++)l[d]=1/(s[A[d]]*h[p]*h[g]*8),u[d]=1/(c[A[d]]*h[p]*h[g]*8),d++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),i=e)}this.encode=function(e,i){i&&D(i),g=new Array,m=0,v=7,F(65496),F(65504),F(16),I(74),I(70),I(73),I(70),I(0),I(1),I(1),I(0),F(1),F(1),I(0),I(0),function(){F(65499),F(132),I(0);for(var e=0;e<64;e++)I(s[e]);I(1);for(var t=0;t<64;t++)I(c[t])}(),function(e,t){F(65472),F(17),I(8),F(t),F(e),I(3),I(1),I(17),I(0),I(2),I(17),I(1),I(3),I(17),I(1)}(e.width,e.height),function(){F(65476),F(418),I(0);for(var e=0;e<16;e++)I(k[e+1]);for(var t=0;t<=11;t++)I(T[t]);I(16);for(var r=0;r<16;r++)I(E[r+1]);for(var n=0;n<=161;n++)I(_[n]);I(1);for(var o=0;o<16;o++)I(O[o+1]);for(var i=0;i<=11;i++)I(N[i]);I(17);for(var a=0;a<16;a++)I(C[a+1]);for(var s=0;s<=161;s++)I(R[s])}(),F(65498),F(12),I(3),I(1),I(0),I(2),I(17),I(3),I(17),I(0),I(63),I(0);var a=0,f=0,h=0;m=0,v=7,this.encode.displayName="_encode_";for(var d,p,S,A,P,M,B,W,U,H=e.data,z=e.width,V=e.height,q=4*z,$=0;$<V;){for(d=0;d<q;){for(P=q*$+d,B=-1,W=0,U=0;U<64;U++)M=P+(W=U>>3)*q+(B=4*(7&U)),$+W>=V&&(M-=q*($+1+W-V)),d+B>=q&&(M-=d+B-q+4),p=H[M++],S=H[M++],A=H[M++],b[U]=(x[p]+x[S+256>>0]+x[A+512>>0]>>16)-128,y[U]=(x[p+768>>0]+x[S+1024>>0]+x[A+1280>>0]>>16)-128,w[U]=(x[p+1280>>0]+x[S+1536>>0]+x[A+1792>>0]>>16)-128;a=j(b,l,a,t,n),f=j(y,u,f,r,o),h=j(w,u,h,r,o),d+=32}$+=8}if(v>=0){var G=[];G[1]=v+1,G[0]=(1<<v+1)-1,L(G)}return F(65497),new Uint8Array(g)},e=e||50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)S[t]=e(t)}(),t=P(k,T),r=P(O,N),n=P(E,_),o=P(C,R),function(){for(var e=1,t=2,r=1;r<=15;r++){for(var n=e;n<t;n++)h[32767+n]=r,f[32767+n]=[],f[32767+n][1]=r,f[32767+n][0]=n;for(var o=-(t-1);o<=-e;o++)h[32767+o]=r,f[32767+o]=[],f[32767+o][1]=r,f[32767+o][0]=t-1+o;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)x[e]=19595*e,x[e+256>>0]=38470*e,x[e+512>>0]=7471*e+32768,x[e+768>>0]=-11059*e,x[e+1024>>0]=-21709*e,x[e+1280>>0]=32768*e+8421375,x[e+1536>>0]=-27439*e,x[e+1792>>0]=-5329*e}(),D(e)}function Nt(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Ct(e){function t(e){if(!e)throw Error("assert :P")}function r(e,t,r){for(var n=0;4>n;n++)if(e[t+n]!=r.charCodeAt(n))return!0;return!1}function n(e,t,r,n,o){for(var i=0;i<o;i++)e[t+i]=r[n+i]}function o(e,t,r,n){for(var o=0;o<n;o++)e[t+o]=r}function i(e){return new Int32Array(e)}function a(e,t){for(var r=[],n=0;n<e;n++)r.push(new t);return r}function s(e,t){var r=[];return function e(r,n,o){for(var i=o[n],a=0;a<i&&(r.push(o.length>n+1?[]:new t),!(o.length<n+1));a++)e(r[a],n+1,o)}(r,0,e),r}function c(e,t){for(var r="",n=0;n<4;n++)r+=String.fromCharCode(e[t++]);return r}function l(e,t){return(e[t+0]<<0|e[t+1]<<8|e[t+2]<<16)>>>0}function u(e,t){return(e[t+0]<<0|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new(Ct=function(){var e=this;function c(e,t){for(var r=1<<t-1>>>0;e&r;)r>>>=1;return r?(e&r-1)+r:e}function l(e,r,n,o,i){t(!(o%n));do{e[r+(o-=n)]=i}while(0<o)}function u(e,r,n,o,a){if(t(2328>=a),512>=a)var s=i(512);else if(null==(s=i(a)))return 0;return function(e,r,n,o,a,s){var u,h,d=r,p=1<<n,g=i(16),m=i(16);for(t(0!=a),t(null!=o),t(null!=e),t(0<n),h=0;h<a;++h){if(15<o[h])return 0;++g[o[h]]}if(g[0]==a)return 0;for(m[1]=0,u=1;15>u;++u){if(g[u]>1<<u)return 0;m[u+1]=m[u]+g[u]}for(h=0;h<a;++h)u=o[h],0<o[h]&&(s[m[u]++]=h);if(1==m[15])return(o=new f).g=0,o.value=s[0],l(e,d,1,p,o),p;var v,b=-1,y=p-1,w=0,S=1,x=1,A=1<<n;for(h=0,u=1,a=2;u<=n;++u,a<<=1){if(S+=x<<=1,0>(x-=g[u]))return 0;for(;0<g[u];--g[u])(o=new f).g=u,o.value=s[h++],l(e,d+w,a,A,o),w=c(w,u)}for(u=n+1,a=2;15>=u;++u,a<<=1){if(S+=x<<=1,0>(x-=g[u]))return 0;for(;0<g[u];--g[u]){if(o=new f,(w&y)!=b){for(d+=A,v=1<<(b=u)-n;15>b&&!(0>=(v-=g[b]));)++b,v<<=1;p+=A=1<<(v=b-n),e[r+(b=w&y)].g=v+n,e[r+b].value=d-r-b}o.g=u-n,o.value=s[h++],l(e,d+(w>>n),a,A,o),w=c(w,u)}}return S!=2*m[15]-1?0:p}(e,r,n,o,a,s)}function f(){this.value=this.g=0}function h(){this.value=this.g=0}function d(){this.G=a(5,f),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(Mr,h)}function p(e,r,n,o){t(null!=e),t(null!=r),t(2147483648>o),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=r,e.pa=n,e.Jd=r,e.Yc=n+o,e.Zc=4<=o?n+o-4+1:n,E(e)}function g(e,t){for(var r=0;0<t--;)r|=O(e,128)<<t;return r}function m(e,t){var r=g(e,t);return _(e)?-r:r}function v(e,r,n,o){var i,a=0;for(t(null!=e),t(null!=r),t(4294967288>o),e.Sb=o,e.Ra=0,e.u=0,e.h=0,4<o&&(o=4),i=0;i<o;++i)a+=r[n+i]<<8*i;e.Ra=a,e.bb=o,e.oa=r,e.pa=n}function b(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<Ur-8>>>0,++e.bb,e.u-=8;A(e)&&(e.h=1,e.u=0)}function y(e,r){if(t(0<=r),!e.h&&r<=Wr){var n=x(e)&Br[r];return e.u+=r,b(e),n}return e.h=1,e.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function S(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function x(e){return e.Ra>>>(e.u&Ur-1)>>>0}function A(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>Ur}function k(e,t){e.u=t,e.h=A(e)}function T(e){e.u>=Hr&&(t(e.u>=Hr),b(e))}function E(e){t(null!=e&&null!=e.oa),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function _(e){return g(e,1)}function O(e,t){var r=e.Ca;0>e.b&&E(e);var n=e.b,o=r*t>>>8,i=(e.I>>>n>o)+0;for(i?(r-=o,e.I-=o+1<<n>>>0):r=o+1,n=r,o=0;256<=n;)o+=8,n>>=8;return n=7^o+zr[n],e.b-=n,e.Ca=(r<<n)-1,i}function N(e,t,r){e[t+0]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=r>>0&255}function C(e,t){return e[t+0]<<0|e[t+1]<<8}function R(e,t){return C(e,t)|e[t+2]<<16}function P(e,t){return C(e,t)|C(e,t+2)<<16}function L(e,r){var n=1<<r;return t(null!=e),t(0<r),e.X=i(n),null==e.X?0:(e.Mb=32-r,e.Xa=r,1)}function I(e,r){t(null!=e),t(null!=r),t(e.Xa==r.Xa),n(r.X,0,e.X,0,1<<r.Xa)}function F(){this.X=[],this.Xa=this.Mb=0}function j(e,r,n,o){t(null!=n),t(null!=o);var i=n[0],a=o[0];return 0==i&&(i=(e*a+r/2)/r),0==a&&(a=(r*i+e/2)/e),0>=i||0>=a?0:(n[0]=i,o[0]=a,1)}function D(e,t){return e+(1<<t)-1>>>t}function M(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function B(t,r){e[r]=function(r,n,o,i,a,s,c){var l;for(l=0;l<a;++l){var u=e[t](s[c+l-1],o,i+l);s[c+l]=M(r[n+l],u)}}}function W(){this.ud=this.hd=this.jd=0}function U(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function H(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function z(e,t){return H(e+(e-t+.5>>1))}function V(e,t,r){return Math.abs(t-r)-Math.abs(e-r)}function q(e,t,r,n,o,i,a){for(n=i[a-1],r=0;r<o;++r)i[a+r]=n=M(e[t+r],n)}function $(e,t,r,n,o){var i;for(i=0;i<r;++i){var a=e[t+i],s=a>>8&255,c=16711935&(c=(c=16711935&a)+((s<<16)+s));n[o+i]=(4278255360&a)+c>>>0}}function G(e,t){t.jd=e>>0&255,t.hd=e>>8&255,t.ud=e>>16&255}function X(e,t,r,n,o,i){var a;for(a=0;a<n;++a){var s=t[r+a],c=s>>>8,l=s,u=255&(u=(u=s>>>16)+((e.jd<<24>>24)*(c<<24>>24)>>>5));l=255&(l=(l+=(e.hd<<24>>24)*(c<<24>>24)>>>5)+((e.ud<<24>>24)*(u<<24>>24)>>>5)),o[i+a]=(4278255360&s)+(u<<16)+l}}function Y(t,r,n,o,i){e[r]=function(e,t,r,n,a,s,c,l,u){for(n=c;n<l;++n)for(c=0;c<u;++c)a[s++]=i(r[o(e[t++])])},e[t]=function(t,r,a,s,c,l,u){var f=8>>t.b,h=t.Ea,d=t.K[0],p=t.w;if(8>f)for(t=(1<<t.b)-1,p=(1<<f)-1;r<a;++r){var g,m=0;for(g=0;g<h;++g)g&t||(m=o(s[c++])),l[u++]=i(d[m&p]),m>>=f}else e["VP8LMapColor"+n](s,c,d,p,l,u,r,a,h)}}function K(e,t,r,n,o){for(r=t+r;t<r;){var i=e[t++];n[o++]=i>>16&255,n[o++]=i>>8&255,n[o++]=i>>0&255}}function J(e,t,r,n,o){for(r=t+r;t<r;){var i=e[t++];n[o++]=i>>16&255,n[o++]=i>>8&255,n[o++]=i>>0&255,n[o++]=i>>24&255}}function Z(e,t,r,n,o){for(r=t+r;t<r;){var i=(a=e[t++])>>16&240|a>>12&15,a=a>>0&240|a>>28&15;n[o++]=i,n[o++]=a}}function Q(e,t,r,n,o){for(r=t+r;t<r;){var i=(a=e[t++])>>16&248|a>>13&7,a=a>>5&224|a>>3&31;n[o++]=i,n[o++]=a}}function ee(e,t,r,n,o){for(r=t+r;t<r;){var i=e[t++];n[o++]=i>>0&255,n[o++]=i>>8&255,n[o++]=i>>16&255}}function te(e,t,r,o,i,a){if(0==a)for(r=t+r;t<r;)N(o,((a=e[t++])[0]>>24|a[1]>>8&65280|a[2]<<8&16711680|a[3]<<24)>>>0),i+=32;else n(o,i,e,t,r)}function re(t,r){e[r][0]=e[t+"0"],e[r][1]=e[t+"1"],e[r][2]=e[t+"2"],e[r][3]=e[t+"3"],e[r][4]=e[t+"4"],e[r][5]=e[t+"5"],e[r][6]=e[t+"6"],e[r][7]=e[t+"7"],e[r][8]=e[t+"8"],e[r][9]=e[t+"9"],e[r][10]=e[t+"10"],e[r][11]=e[t+"11"],e[r][12]=e[t+"12"],e[r][13]=e[t+"13"],e[r][14]=e[t+"0"],e[r][15]=e[t+"0"]}function ne(e){return e==zn||e==Vn||e==qn||e==$n}function oe(){this.eb=[],this.size=this.A=this.fb=0}function ie(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ae(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new oe,this.f.kb=new ie,this.sd=null}function se(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ce(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function le(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function ue(e,t){var r=e.T,o=t.ba.f.RGBA,i=o.eb,a=o.fb+e.ka*o.A,s=bo[t.ba.S],c=e.y,l=e.O,u=e.f,f=e.N,h=e.ea,d=e.W,p=t.cc,g=t.dc,m=t.Mc,v=t.Nc,b=e.ka,y=e.ka+e.T,w=e.U,S=w+1>>1;for(0==b?s(c,l,null,null,u,f,h,d,u,f,h,d,i,a,null,null,w):(s(t.ec,t.fc,c,l,p,g,m,v,u,f,h,d,i,a-o.A,i,a,w),++r);b+2<y;b+=2)p=u,g=f,m=h,v=d,f+=e.Rc,d+=e.Rc,a+=2*o.A,s(c,(l+=2*e.fa)-e.fa,c,l,p,g,m,v,u,f,h,d,i,a-o.A,i,a,w);return l+=e.fa,e.j+y<e.o?(n(t.ec,t.fc,c,l,w),n(t.cc,t.dc,u,f,S),n(t.Mc,t.Nc,h,d,S),r--):1&y||s(c,l,null,null,u,f,h,d,u,f,h,d,i,a+o.A,null,null,w),r}function fe(e,r,n){var o=e.F,i=[e.J];if(null!=o){var a=e.U,s=r.ba.S,c=s==Wn||s==qn;r=r.ba.f.RGBA;var l=[0],u=e.ka;l[0]=e.T,e.Kb&&(0==u?--l[0]:(--u,i[0]-=e.width),e.j+e.ka+e.T==e.o&&(l[0]=e.o-e.j-u));var f=r.eb;u=r.fb+u*r.A,e=Tn(o,i[0],e.width,a,l,f,u+(c?0:3),r.A),t(n==l),e&&ne(s)&&An(f,u,c,a,l,r.A)}return 0}function he(e){var t=e.ma,r=t.ba.S,n=11>r,o=r==Dn||r==Bn||r==Wn||r==Un||12==r||ne(r);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Fr(t.Oa,e,o?11:12))return 0;if(o&&ne(r)&&br(),e.da)alert("todo:use_scaling");else{if(n){if(t.Ib=le,e.Kb){if(r=e.U+1>>1,t.memory=i(e.U+2*r),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+r,t.Ib=ue,br()}}else alert("todo:EmitYUV");o&&(t.Jb=fe,n&&mr())}if(n&&!Po){for(e=0;256>e;++e)Lo[e]=89858*(e-128)+_o>>Eo,jo[e]=-22014*(e-128)+_o,Fo[e]=-45773*(e-128),Io[e]=113618*(e-128)+_o>>Eo;for(e=Oo;e<No;++e)t=76283*(e-16)+_o>>Eo,Do[e-Oo]=qe(t,255),Mo[e-Oo]=qe(t+8>>4,15);Po=1}return 1}function de(e){var r=e.ma,n=e.U,o=e.T;return t(!(1&e.ka)),0>=n||0>=o?0:(n=r.Ib(e,r),null!=r.Jb&&r.Jb(e,r,n),r.Dc+=n,1)}function pe(e){e.ma.memory=null}function ge(e,t,r,n){return 47!=y(e,8)?0:(t[0]=y(e,14)+1,r[0]=y(e,14)+1,n[0]=y(e,1),0!=y(e,3)?0:!e.h)}function me(e,t){if(4>e)return e+1;var r=e-2>>1;return(2+(1&e)<<r)+y(t,r)+1}function ve(e,t){return 120<t?t-120:1<=(r=((r=Zn[t-1])>>4)*e+(8-(15&r)))?r:1;var r}function be(e,t,r){var n=x(r),o=e[t+=255&n].g-8;return 0<o&&(k(r,r.u+8),n=x(r),t+=e[t].value,t+=n&(1<<o)-1),k(r,r.u+e[t].g),e[t].value}function ye(e,r,n){return n.g+=e.g,n.value+=e.value<<r>>>0,t(8>=n.g),e.g}function we(e,r,n){var o=e.xc;return t((r=0==o?0:e.vc[e.md*(n>>o)+(r>>o)])<e.Wb),e.Ya[r]}function Se(e,r,o,i){var a=e.ab,s=e.c*r,c=e.C;r=c+r;var l=o,u=i;for(i=e.Ta,o=e.Ua;0<a--;){var f=e.gc[a],h=c,d=r,p=l,g=u,m=(u=i,l=o,f.Ea);switch(t(h<d),t(d<=f.nc),f.hc){case 2:$r(p,g,(d-h)*m,u,l);break;case 0:var v=h,b=d,y=u,w=l,S=(E=f).Ea;0==v&&(Vr(p,g,null,null,1,y,w),q(p,g+1,0,0,S-1,y,w+1),g+=S,w+=S,++v);for(var x=1<<E.b,A=x-1,k=D(S,E.b),T=E.K,E=E.w+(v>>E.b)*k;v<b;){var _=T,O=E,N=1;for(qr(p,g,y,w-S,1,y,w);N<S;){var C=(N&~A)+x;C>S&&(C=S),(0,Jr[_[O++]>>8&15])(p,g+ +N,y,w+N-S,C-N,y,w+N),N=C}g+=S,w+=S,++v&A||(E+=k)}d!=f.nc&&n(u,l-m,u,l+(d-h-1)*m,m);break;case 1:for(m=p,b=g,S=(p=f.Ea)-(w=p&~(y=(g=1<<f.b)-1)),v=D(p,f.b),x=f.K,f=f.w+(h>>f.b)*v;h<d;){for(A=x,k=f,T=new W,E=b+w,_=b+p;b<E;)G(A[k++],T),Zr(T,m,b,g,u,l),b+=g,l+=g;b<_&&(G(A[k++],T),Zr(T,m,b,S,u,l),b+=S,l+=S),++h&y||(f+=v)}break;case 3:if(p==u&&g==l&&0<f.b){for(b=u,p=m=l+(d-h)*m-(w=(d-h)*D(f.Ea,f.b)),g=u,y=l,v=[],w=(S=w)-1;0<=w;--w)v[w]=g[y+w];for(w=S-1;0<=w;--w)b[p+w]=v[w];Gr(f,h,d,u,m,u,l)}else Gr(f,h,d,p,g,u,l)}l=i,u=o}u!=o&&n(i,o,l,u,s)}function xe(e,r){var n=e.V,o=e.Ba+e.c*e.C,i=r-e.C;if(t(r<=e.l.o),t(16>=i),0<i){var a=e.l,s=e.Ta,c=e.Ua,l=a.width;if(Se(e,i,n,o),i=c=[c],t((n=e.C)<(o=r)),t(a.v<a.va),o>a.o&&(o=a.o),n<a.j){var u=a.j-n;n=a.j,i[0]+=u*l}if(n>=o?n=0:(i[0]+=4*a.v,a.ka=n-a.j,a.U=a.va-a.v,a.T=o-n,n=1),n){if(c=c[0],11>(n=e.ca).S){var f=n.f.RGBA,h=(o=n.S,i=a.U,a=a.T,u=f.eb,f.A),d=a;for(f=f.fb+e.Ma*f.A;0<d--;){var p=s,g=c,m=i,v=u,b=f;switch(o){case jn:Qr(p,g,m,v,b);break;case Dn:en(p,g,m,v,b);break;case zn:en(p,g,m,v,b),An(v,b,0,m,1,0);break;case Mn:nn(p,g,m,v,b);break;case Bn:te(p,g,m,v,b,1);break;case Vn:te(p,g,m,v,b,1),An(v,b,0,m,1,0);break;case Wn:te(p,g,m,v,b,0);break;case qn:te(p,g,m,v,b,0),An(v,b,1,m,1,0);break;case Un:tn(p,g,m,v,b);break;case $n:tn(p,g,m,v,b),kn(v,b,m,1,0);break;case Hn:rn(p,g,m,v,b);break;default:t(0)}c+=l,f+=h}e.Ma+=a}else alert("todo:EmitRescaledRowsYUVA");t(e.Ma<=n.height)}}e.C=r,t(e.C<=e.i)}function Ae(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var r=e.Ya[t].G,n=e.Ya[t].H;if(0<r[1][n[1]+0].g||0<r[2][n[2]+0].g||0<r[3][n[3]+0].g)return 0}return 1}function ke(e,r,n,o,i,a){if(0!=e.Z){var s=e.qd,c=e.rd;for(t(null!=vo[e.Z]);r<n;++r)vo[e.Z](s,c,o,i,o,i,a),s=o,c=i,i+=a;e.qd=s,e.rd=c}}function Te(e,r){var n=e.l.ma,o=0==n.Z||1==n.Z?e.l.j:e.C;if(o=e.C<o?o:e.C,t(r<=e.l.o),r>o){var i=e.l.width,a=n.ca,s=n.tb+i*o,c=e.V,l=e.Ba+e.c*o,u=e.gc;t(1==e.ab),t(3==u[0].hc),Yr(u[0],o,r,c,l,a,s),ke(n,o,r,a,s,i)}e.C=e.Ma=r}function Ee(e,r,n,o,i,a,s){var c=e.$/o,l=e.$%o,u=e.m,f=e.s,h=n+e.$,d=h;i=n+o*i;var p=n+o*a,g=280+f.ua,m=e.Pb?c:16777216,v=0<f.ua?f.Wa:null,b=f.wc,y=h<p?we(f,l,c):null;t(e.C<a),t(p<=i);var w=!1;e:for(;;){for(;w||h<p;){var S=0;if(c>=m){var E=h-n;t((m=e).Pb),m.wd=m.m,m.xd=E,0<m.s.ua&&I(m.s.Wa,m.s.vb),m=c+eo}if(l&b||(y=we(f,l,c)),t(null!=y),y.Qb&&(r[h]=y.qb,w=!0),!w)if(T(u),y.jc){S=u,E=r;var _=h,O=y.pd[x(S)&Mr-1];t(y.jc),256>O.g?(k(S,S.u+O.g),E[_]=O.value,S=0):(k(S,S.u+O.g-256),t(256<=O.value),S=O.value),0==S&&(w=!0)}else S=be(y.G[0],y.H[0],u);if(u.h)break;if(w||256>S){if(!w)if(y.nd)r[h]=(y.qb|S<<8)>>>0;else{if(T(u),w=be(y.G[1],y.H[1],u),T(u),E=be(y.G[2],y.H[2],u),_=be(y.G[3],y.H[3],u),u.h)break;r[h]=(_<<24|w<<16|S<<8|E)>>>0}if(w=!1,++h,++l>=o&&(l=0,++c,null!=s&&c<=a&&!(c%16)&&s(e,c),null!=v))for(;d<h;)S=r[d++],v.X[(506832829*S&4294967295)>>>v.Mb]=S}else if(280>S){if(S=me(S-256,u),E=be(y.G[4],y.H[4],u),T(u),E=ve(o,E=me(E,u)),u.h)break;if(h-n<E||i-h<S)break e;for(_=0;_<S;++_)r[h+_]=r[h+_-E];for(h+=S,l+=S;l>=o;)l-=o,++c,null!=s&&c<=a&&!(c%16)&&s(e,c);if(t(h<=i),l&b&&(y=we(f,l,c)),null!=v)for(;d<h;)S=r[d++],v.X[(506832829*S&4294967295)>>>v.Mb]=S}else{if(!(S<g))break e;for(w=S-280,t(null!=v);d<h;)S=r[d++],v.X[(506832829*S&4294967295)>>>v.Mb]=S;S=h,t(!(w>>>(E=v).Xa)),r[S]=E.X[w],w=!0}w||t(u.h==A(u))}if(e.Pb&&u.h&&h<i)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&I(e.s.vb,e.s.Wa);else{if(u.h)break e;null!=s&&s(e,c>a?a:c),e.a=0,e.$=h-n}return 1}return e.a=3,0}function _e(e){t(null!=e),e.vc=null,e.yc=null,e.Ya=null;var r=e.Wa;null!=r&&(r.X=null),e.vb=null,t(null!=e)}function Oe(){var t=new ar;return null==t?null:(t.a=0,t.xb=mo,re("Predictor","VP8LPredictors"),re("Predictor","VP8LPredictors_C"),re("PredictorAdd","VP8LPredictorsAdd"),re("PredictorAdd","VP8LPredictorsAdd_C"),$r=$,Zr=X,Qr=K,en=J,tn=Z,rn=Q,nn=ee,e.VP8LMapColor32b=Xr,e.VP8LMapColor8b=Kr,t)}function Ne(e,r,n,s,c){var l=1,h=[e],p=[r],g=s.m,m=s.s,v=null,b=0;e:for(;;){if(n)for(;l&&y(g,1);){var w=h,S=p,A=s,E=1,_=A.m,O=A.gc[A.ab],N=y(_,2);if(A.Oc&1<<N)l=0;else{switch(A.Oc|=1<<N,O.hc=N,O.Ea=w[0],O.nc=S[0],O.K=[null],++A.ab,t(4>=A.ab),N){case 0:case 1:O.b=y(_,3)+2,E=Ne(D(O.Ea,O.b),D(O.nc,O.b),0,A,O.K),O.K=O.K[0];break;case 3:var C,R=y(_,8)+1,P=16<R?0:4<R?1:2<R?2:3;if(w[0]=D(O.Ea,P),O.b=P,C=E=Ne(R,1,0,A,O.K)){var I,F=R,j=O,B=1<<(8>>j.b),W=i(B);if(null==W)C=0;else{var U=j.K[0],H=j.w;for(W[0]=j.K[0][0],I=1;I<1*F;++I)W[I]=M(U[H+I],W[I-1]);for(;I<4*B;++I)W[I]=0;j.K[0]=null,j.K[0]=W,C=1}}E=C;break;case 2:break;default:t(0)}l=E}}if(h=h[0],p=p[0],l&&y(g,1)&&!(l=1<=(b=y(g,4))&&11>=b)){s.a=3;break e}var z;if(z=l)t:{var V,q,$,G=s,X=h,Y=p,K=b,J=n,Z=G.m,Q=G.s,ee=[null],te=1,re=0,ne=Qn[K];r:for(;;){if(J&&y(Z,1)){var oe=y(Z,3)+2,ie=D(X,oe),ae=D(Y,oe),se=ie*ae;if(!Ne(ie,ae,0,G,ee))break r;for(ee=ee[0],Q.xc=oe,V=0;V<se;++V){var ce=ee[V]>>8&65535;ee[V]=ce,ce>=te&&(te=ce+1)}}if(Z.h)break r;for(q=0;5>q;++q){var le=Yn[q];!q&&0<K&&(le+=1<<K),re<le&&(re=le)}var ue=a(te*ne,f),fe=te,he=a(fe,d);if(null==he)var de=null;else t(65536>=fe),de=he;var pe=i(re);if(null==de||null==pe||null==ue){G.a=1;break r}var ge=ue;for(V=$=0;V<te;++V){var me=de[V],ve=me.G,be=me.H,we=0,Se=1,xe=0;for(q=0;5>q;++q){le=Yn[q],ve[q]=ge,be[q]=$,!q&&0<K&&(le+=1<<K);n:{var Ae,ke=le,Te=G,Oe=pe,Ce=ge,Re=$,Pe=0,Le=Te.m,Ie=y(Le,1);if(o(Oe,0,0,ke),Ie){var Fe=y(Le,1)+1,je=y(Le,1),De=y(Le,0==je?1:8);Oe[De]=1,2==Fe&&(Oe[De=y(Le,8)]=1);var Me=1}else{var Be=i(19),We=y(Le,4)+4;if(19<We){Te.a=3;var Ue=0;break n}for(Ae=0;Ae<We;++Ae)Be[Jn[Ae]]=y(Le,3);var He=void 0,ze=void 0,Ve=Te,qe=Be,$e=ke,Ge=Oe,Xe=0,Ye=Ve.m,Ke=8,Je=a(128,f);o:for(;u(Je,0,7,qe,19);){if(y(Ye,1)){var Ze=2+2*y(Ye,3);if((He=2+y(Ye,Ze))>$e)break o}else He=$e;for(ze=0;ze<$e&&He--;){T(Ye);var Qe=Je[0+(127&x(Ye))];k(Ye,Ye.u+Qe.g);var et=Qe.value;if(16>et)Ge[ze++]=et,0!=et&&(Ke=et);else{var tt=16==et,rt=et-16,nt=Xn[rt],ot=y(Ye,Gn[rt])+nt;if(ze+ot>$e)break o;for(var it=tt?Ke:0;0<ot--;)Ge[ze++]=it}}Xe=1;break o}Xe||(Ve.a=3),Me=Xe}(Me=Me&&!Le.h)&&(Pe=u(Ce,Re,8,Oe,ke)),Me&&0!=Pe?Ue=Pe:(Te.a=3,Ue=0)}if(0==Ue)break r;if(Se&&1==Kn[q]&&(Se=0==ge[$].g),we+=ge[$].g,$+=Ue,3>=q){var at,st=pe[0];for(at=1;at<le;++at)pe[at]>st&&(st=pe[at]);xe+=st}}if(me.nd=Se,me.Qb=0,Se&&(me.qb=(ve[3][be[3]+0].value<<24|ve[1][be[1]+0].value<<16|ve[2][be[2]+0].value)>>>0,0==we&&256>ve[0][be[0]+0].value&&(me.Qb=1,me.qb+=ve[0][be[0]+0].value<<8)),me.jc=!me.Qb&&6>xe,me.jc){var ct,lt=me;for(ct=0;ct<Mr;++ct){var ut=ct,ft=lt.pd[ut],ht=lt.G[0][lt.H[0]+ut];256<=ht.value?(ft.g=ht.g+256,ft.value=ht.value):(ft.g=0,ft.value=0,ut>>=ye(ht,8,ft),ut>>=ye(lt.G[1][lt.H[1]+ut],16,ft),ut>>=ye(lt.G[2][lt.H[2]+ut],0,ft),ye(lt.G[3][lt.H[3]+ut],24,ft))}}}Q.vc=ee,Q.Wb=te,Q.Ya=de,Q.yc=ue,z=1;break t}z=0}if(!(l=z)){s.a=3;break e}if(0<b){if(m.ua=1<<b,!L(m.Wa,b)){s.a=1,l=0;break e}}else m.ua=0;var dt=s,pt=h,gt=p,mt=dt.s,vt=mt.xc;if(dt.c=pt,dt.i=gt,mt.md=D(pt,vt),mt.wc=0==vt?-1:(1<<vt)-1,n){s.xb=go;break e}if(null==(v=i(h*p))){s.a=1,l=0;break e}l=(l=Ee(s,v,0,h,p,p,null))&&!g.h;break e}return l?(null!=c?c[0]=v:(t(null==v),t(n)),s.$=0,n||_e(m)):_e(m),l}function Ce(e,r){var n=e.c*e.i,o=n+r+16*r;return t(e.c<=r),e.V=i(o),null==e.V?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+n+r,1)}function Re(e,r){var n=e.C,o=r-n,i=e.V,a=e.Ba+e.c*n;for(t(r<=e.l.o);0<o;){var s=16<o?16:o,c=e.l.ma,l=e.l.width,u=l*s,f=c.ca,h=c.tb+l*n,d=e.Ta,p=e.Ua;Se(e,s,i,a),En(d,p,f,h,u),ke(c,n,n+s,f,h,l),o-=s,i+=s*e.c,n+=s}t(n==r),e.C=e.Ma=r}function Pe(){this.ub=this.yd=this.td=this.Rb=0}function Le(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ie(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Fe(){this.Yb=function(){var e=[];return function e(t,r,n){for(var o=n[r],i=0;i<o&&(t.push(n.length>r+1?[]:0),!(n.length<r+1));i++)e(t[i],r+1,n)}(e,0,[3,11]),e}()}function je(){this.jb=i(3),this.Wc=s([4,8],Fe),this.Xc=s([4,17],Fe)}function De(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function Me(){this.ld=this.La=this.dd=this.tc=0}function Be(){this.Na=this.la=0}function We(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ue(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function He(){this.uc=this.M=this.Nb=0,this.wa=Array(new Me),this.Y=0,this.ya=Array(new Ue),this.aa=0,this.l=new $e}function ze(){this.y=i(16),this.f=i(8),this.ea=i(8)}function Ve(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new Pe,this.Kc=new Le,this.ed=new De,this.Qa=new Ie,this.Ic=this.$c=this.Aa=0,this.D=new He,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,w),this.ia=0,this.pb=a(4,We),this.Pa=new je,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ze),this.Hd=0,this.rb=Array(new Be),this.sb=0,this.wa=Array(new Me),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ue),this.L=this.aa=0,this.gd=s([4,2],Me),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function qe(e,t){return 0>e?0:e>t?t:e}function $e(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ge(){var e=new Ve;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,no||(no=Je)),e}function Xe(e,t,r){return 0==e.a&&(e.a=t,e.sc=r,e.cb=0),0}function Ye(e,t,r){return 3<=r&&157==e[t+0]&&1==e[t+1]&&42==e[t+2]}function Ke(e,r){if(null==e)return 0;if(e.a=0,e.sc="OK",null==r)return Xe(e,2,"null VP8Io passed to VP8GetHeaders()");var n=r.data,i=r.w,a=r.ha;if(4>a)return Xe(e,7,"Truncated header.");var s=n[i+0]|n[i+1]<<8|n[i+2]<<16,c=e.Od;if(c.Rb=!(1&s),c.td=s>>1&7,c.yd=s>>4&1,c.ub=s>>5,3<c.td)return Xe(e,3,"Incorrect keyframe parameters.");if(!c.yd)return Xe(e,4,"Frame not displayable.");i+=3,a-=3;var l=e.Kc;if(c.Rb){if(7>a)return Xe(e,7,"cannot parse picture header");if(!Ye(n,i,a))return Xe(e,3,"Bad code word");l.c=16383&(n[i+4]<<8|n[i+3]),l.Td=n[i+4]>>6,l.i=16383&(n[i+6]<<8|n[i+5]),l.Ud=n[i+6]>>6,i+=7,a-=7,e.za=l.c+15>>4,e.Ub=l.i+15>>4,r.width=l.c,r.height=l.i,r.Da=0,r.j=0,r.v=0,r.va=r.width,r.o=r.height,r.da=0,r.ib=r.width,r.hb=r.height,r.U=r.width,r.T=r.height,o((s=e.Pa).jb,0,255,s.jb.length),t(null!=(s=e.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,o(s.Zb,0,0,s.Zb.length),o(s.Lb,0,0,s.Lb)}if(c.ub>a)return Xe(e,7,"bad partition length");p(s=e.m,n,i,c.ub),i+=c.ub,a-=c.ub,c.Rb&&(l.Ld=_(s),l.Kd=_(s)),l=e.Qa;var u,f=e.Pa;if(t(null!=s),t(null!=l),l.Cb=_(s),l.Cb){if(l.Bb=_(s),_(s)){for(l.Fb=_(s),u=0;4>u;++u)l.Zb[u]=_(s)?m(s,7):0;for(u=0;4>u;++u)l.Lb[u]=_(s)?m(s,6):0}if(l.Bb)for(u=0;3>u;++u)f.jb[u]=_(s)?g(s,8):255}else l.Bb=0;if(s.Ka)return Xe(e,3,"cannot parse segment header");if((l=e.ed).zd=_(s),l.Tb=g(s,6),l.wb=g(s,3),l.Pc=_(s),l.Pc&&_(s)){for(f=0;4>f;++f)_(s)&&(l.vd[f]=m(s,6));for(f=0;4>f;++f)_(s)&&(l.od[f]=m(s,6))}if(e.L=0==l.Tb?0:l.zd?1:2,s.Ka)return Xe(e,3,"cannot parse filter header");var h=a;if(a=u=i,i=u+h,l=h,e.Xb=(1<<g(e.m,2))-1,h<3*(f=e.Xb))n=7;else{for(u+=3*f,l-=3*f,h=0;h<f;++h){var d=n[a+0]|n[a+1]<<8|n[a+2]<<16;d>l&&(d=l),p(e.Jc[+h],n,u,d),u+=d,l-=d,a+=3}p(e.Jc[+f],n,u,l),n=u<i?0:5}if(0!=n)return Xe(e,n,"cannot parse partitions");for(n=g(u=e.m,7),a=_(u)?m(u,4):0,i=_(u)?m(u,4):0,l=_(u)?m(u,4):0,f=_(u)?m(u,4):0,u=_(u)?m(u,4):0,h=e.Qa,d=0;4>d;++d){if(h.Cb){var v=h.Zb[d];h.Fb||(v+=n)}else{if(0<d){e.pb[d]=e.pb[0];continue}v=n}var b=e.pb[d];b.Sc[0]=to[qe(v+a,127)],b.Sc[1]=ro[qe(v+0,127)],b.Eb[0]=2*to[qe(v+i,127)],b.Eb[1]=101581*ro[qe(v+l,127)]>>16,8>b.Eb[1]&&(b.Eb[1]=8),b.Qc[0]=to[qe(v+f,117)],b.Qc[1]=ro[qe(v+u,127)],b.lc=v+u}if(!c.Rb)return Xe(e,4,"Not a key frame.");for(_(s),c=e.Pa,n=0;4>n;++n){for(a=0;8>a;++a)for(i=0;3>i;++i)for(l=0;11>l;++l)f=O(s,lo[n][a][i][l])?g(s,8):so[n][a][i][l],c.Wc[n][a].Yb[i][l]=f;for(a=0;17>a;++a)c.Xc[n][a]=c.Wc[n][uo[a]]}return e.kc=_(s),e.kc&&(e.Bd=g(s,8)),e.cb=1}function Je(e,t,r,n,o,i,a){var s=t[o].Yb[r];for(r=0;16>o;++o){if(!O(e,s[r+0]))return o;for(;!O(e,s[r+1]);)if(s=t[++o].Yb[0],r=0,16==o)return 16;var c=t[o+1].Yb;if(O(e,s[r+2])){var l=e,u=0;if(O(l,(h=s)[(f=r)+3]))if(O(l,h[f+6])){for(s=0,f=2*(u=O(l,h[f+8]))+(h=O(l,h[f+9+u])),u=0,h=oo[f];h[s];++s)u+=u+O(l,h[s]);u+=3+(8<<f)}else O(l,h[f+7])?(u=7+2*O(l,165),u+=O(l,145)):u=5+O(l,159);else u=O(l,h[f+4])?3+O(l,h[f+5]):2;s=c[2]}else u=1,s=c[1];c=a+io[o],0>(l=e).b&&E(l);var f,h=l.b,d=(f=l.Ca>>1)-(l.I>>h)>>31;--l.b,l.Ca+=d,l.Ca|=1,l.I-=(f+1&d)<<h,i[c]=((u^d)-d)*n[(0<o)+0]}return 16}function Ze(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,o(e.zc,0,0,e.zc.length),e.ja=0}function Qe(e,r){if(null==e)return 0;if(null==r)return Xe(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!Ke(e,r))return 0;if(t(e.cb),null==r.ac||r.ac(r)){r.ob&&(e.L=0);var s=Wo[e.L];if(2==e.L?(e.yb=0,e.zb=0):(e.yb=r.v-s>>4,e.zb=r.j-s>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=r.o+15+s>>4,e.Hb=r.va+15+s>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var c=e.ed;for(s=0;4>s;++s){var l;if(e.Qa.Cb){var u=e.Qa.Lb[s];e.Qa.Fb||(u+=c.Tb)}else u=c.Tb;for(l=0;1>=l;++l){var f=e.gd[s][l],h=u;if(c.Pc&&(h+=c.vd[0],l&&(h+=c.od[0])),0<(h=0>h?0:63<h?63:h)){var d=h;0<c.wb&&(d=4<c.wb?d>>2:d>>1)>9-c.wb&&(d=9-c.wb),1>d&&(d=1),f.dd=d,f.tc=2*h+d,f.ld=40<=h?2:15<=h?1:0}else f.tc=0;f.La=l}}}s=0}else Xe(e,6,"Frame setup failed"),s=e.a;if(s=0==s){if(s){e.$c=0,0<e.Aa||(e.Ic=Ho);e:{s=e.Ic,c=4*(d=e.za);var p=32*d,g=d+1,m=0<e.L?d*(0<e.Aa?2:1):0,v=(2==e.Aa?2:1)*d;if((f=c+832+(l=3*(16*s+Wo[e.L])/2*p)+(u=null!=e.Fa&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=f)s=0;else{if(f>e.Vb){if(e.Vb=0,e.Ec=i(f),e.Fc=0,null==e.Ec){s=Xe(e,1,"no memory during frame initialization.");break e}e.Vb=f}f=e.Ec,h=e.Fc,e.Ac=f,e.Bc=h,h+=c,e.Gd=a(p,ze),e.Hd=0,e.rb=a(g+1,Be),e.sb=1,e.wa=m?a(m,Me):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=d),t(!0),e.oc=f,e.pc=h,h+=832,e.ya=a(v,Ue),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,2==e.Aa&&(e.D.aa+=d),e.R=16*d,e.B=8*d,d=(p=Wo[e.L])*e.R,p=p/2*e.B,e.sa=f,e.ta=h+d,e.qa=e.sa,e.ra=e.ta+16*s*e.R+p,e.Ha=e.qa,e.Ia=e.ra+8*s*e.B+p,e.$c=0,h+=l,e.mb=u?f:null,e.nb=u?h:null,t(h+u<=e.Fc+e.Vb),Ze(e),o(e.Ac,e.Bc,0,c),s=1}}if(s){if(r.ka=0,r.y=e.sa,r.O=e.ta,r.f=e.qa,r.N=e.ra,r.ea=e.Ha,r.Vd=e.Ia,r.fa=e.R,r.Rc=e.B,r.F=null,r.J=0,!Rn){for(s=-255;255>=s;++s)_n[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)On[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Nn[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Cn[255+s]=0>s?0:255<s?255:s;Rn=1}on=lt,an=it,cn=at,ln=st,un=ct,sn=ot,fn=Xt,hn=Yt,dn=Zt,pn=Qt,gn=Kt,mn=Jt,vn=er,bn=tr,yn=Ht,wn=zt,Sn=Vt,xn=qt,ho[0]=kt,ho[1]=ft,ho[2]=xt,ho[3]=At,ho[4]=Tt,ho[5]=_t,ho[6]=Et,ho[7]=Ot,ho[8]=Ct,ho[9]=Nt,fo[0]=vt,fo[1]=dt,fo[2]=pt,fo[3]=gt,fo[4]=bt,fo[5]=yt,fo[6]=wt,po[0]=It,po[1]=ht,po[2]=Rt,po[3]=Pt,po[4]=jt,po[5]=Ft,po[6]=Dt,s=1}else s=0}s&&(s=function(e,r){for(e.M=0;e.M<e.Va;++e.M){var a,s=e.Jc[e.M&e.Xb],c=e.m,l=e;for(a=0;a<l.za;++a){var u=c,f=l,h=f.Ac,d=f.Bc+4*a,p=f.zc,g=f.ya[f.aa+a];if(f.Qa.Bb?g.$b=O(u,f.Pa.jb[0])?2+O(u,f.Pa.jb[2]):O(u,f.Pa.jb[1]):g.$b=0,f.kc&&(g.Ad=O(u,f.Bd)),g.Za=!O(u,145)+0,g.Za){var m=g.Ob,v=0;for(f=0;4>f;++f){var b,y=p[0+f];for(b=0;4>b;++b){y=co[h[d+b]][y];for(var w=ao[O(u,y[0])];0<w;)w=ao[2*w+O(u,y[w])];y=-w,h[d+b]=y}n(m,v,h,d,4),v+=4,p[0+f]=y}}else y=O(u,156)?O(u,128)?1:3:O(u,163)?2:0,g.Ob[0]=y,o(h,d,y,4),o(p,0,y,4);g.Dd=O(u,142)?O(u,114)?O(u,183)?1:3:2:0}if(l.m.Ka)return Xe(e,7,"Premature end-of-partition0 encountered.");for(;e.ja<e.za;++e.ja){if(l=s,u=(c=e).rb[c.sb-1],h=c.rb[c.sb+c.ja],a=c.ya[c.aa+c.ja],d=c.kc?a.Ad:0)u.la=h.la=0,a.Za||(u.Na=h.Na=0),a.Hc=0,a.Gc=0,a.ia=0;else{var S,x;if(u=h,h=l,d=c.Pa.Xc,p=c.ya[c.aa+c.ja],g=c.pb[p.$b],f=p.ad,m=0,v=c.rb[c.sb-1],y=b=0,o(f,m,0,384),p.Za)var A=0,k=d[3];else{w=i(16);var T=u.Na+v.Na;if(T=no(h,d[1],T,g.Eb,0,w,0),u.Na=v.Na=(0<T)+0,1<T)on(w,0,f,m);else{var E=w[0]+3>>3;for(w=0;256>w;w+=16)f[m+w]=E}A=1,k=d[0]}var _=15&u.la,N=15&v.la;for(w=0;4>w;++w){var C=1&N;for(E=x=0;4>E;++E)_=_>>1|(C=(T=no(h,k,T=C+(1&_),g.Sc,A,f,m))>A)<<7,x=x<<2|(3<T?3:1<T?2:0!=f[m+0]),m+=16;_>>=4,N=N>>1|C<<7,b=(b<<8|x)>>>0}for(k=_,A=N>>4,S=0;4>S;S+=2){for(x=0,_=u.la>>4+S,N=v.la>>4+S,w=0;2>w;++w){for(C=1&N,E=0;2>E;++E)T=C+(1&_),_=_>>1|(C=0<(T=no(h,d[2],T,g.Qc,0,f,m)))<<3,x=x<<2|(3<T?3:1<T?2:0!=f[m+0]),m+=16;_>>=2,N=N>>1|C<<5}y|=x<<4*S,k|=_<<4<<S,A|=(240&N)<<S}u.la=k,v.la=A,p.Hc=b,p.Gc=y,p.ia=43690&y?0:g.ia,d=!(b|y)}if(0<c.L&&(c.wa[c.Y+c.ja]=c.gd[a.$b][a.Za],c.wa[c.Y+c.ja].La|=!d),l.Ka)return Xe(e,7,"Premature end-of-file encountered.")}if(Ze(e),c=r,l=1,a=(s=e).D,u=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)e:{if(a.M=s.M,a.uc=u,Lr(s,a),l=1,a=(x=s.D).Nb,u=(y=Wo[s.L])*s.R,h=y/2*s.B,w=16*a*s.R,E=8*a*s.B,d=s.sa,p=s.ta-u+w,g=s.qa,f=s.ra-h+E,m=s.Ha,v=s.Ia-h+E,N=0==(_=x.M),b=_>=s.Va-1,2==s.Aa&&Lr(s,x),x.uc)for(C=(T=s).D.M,t(T.D.uc),x=T.yb;x<T.Hb;++x){A=x,k=C;var R=(P=(U=T).D).Nb;S=U.R;var P=P.wa[P.Y+A],L=U.sa,I=U.ta+16*R*S+16*A,F=P.dd,j=P.tc;if(0!=j)if(t(3<=j),1==U.L)0<A&&wn(L,I,S,j+4),P.La&&xn(L,I,S,j),0<k&&yn(L,I,S,j+4),P.La&&Sn(L,I,S,j);else{var D=U.B,M=U.qa,B=U.ra+8*R*D+8*A,W=U.Ha,U=U.Ia+8*R*D+8*A;R=P.ld,0<A&&(hn(L,I,S,j+4,F,R),pn(M,B,W,U,D,j+4,F,R)),P.La&&(mn(L,I,S,j,F,R),bn(M,B,W,U,D,j,F,R)),0<k&&(fn(L,I,S,j+4,F,R),dn(M,B,W,U,D,j+4,F,R)),P.La&&(gn(L,I,S,j,F,R),vn(M,B,W,U,D,j,F,R))}}if(s.ia&&alert("todo:DitherRow"),null!=c.put){if(x=16*_,_=16*(_+1),N?(c.y=s.sa,c.O=s.ta+w,c.f=s.qa,c.N=s.ra+E,c.ea=s.Ha,c.W=s.Ia+E):(x-=y,c.y=d,c.O=p,c.f=g,c.N=f,c.ea=m,c.W=v),b||(_-=y),_>c.o&&(_=c.o),c.F=null,c.J=null,null!=s.Fa&&0<s.Fa.length&&x<_&&(c.J=fr(s,c,x,_-x),c.F=s.mb,null==c.F&&0==c.F.length)){l=Xe(s,3,"Could not decode alpha data.");break e}x<c.j&&(y=c.j-x,x=c.j,t(!(1&y)),c.O+=s.R*y,c.N+=s.B*(y>>1),c.W+=s.B*(y>>1),null!=c.F&&(c.J+=c.width*y)),x<_&&(c.O+=c.v,c.N+=c.v>>1,c.W+=c.v>>1,null!=c.F&&(c.J+=c.v),c.ka=x-c.j,c.U=c.va-c.v,c.T=_-x,l=c.put(c))}a+1!=s.Ic||b||(n(s.sa,s.ta-u,d,p+16*s.R,u),n(s.qa,s.ra-h,g,f+8*s.B,h),n(s.Ha,s.Ia-h,m,v+8*s.B,h))}if(!l)return Xe(e,6,"Output aborted.")}return 1}(e,r)),null!=r.bc&&r.bc(r),s&=1}return s?(e.cb=0,s):0}function et(e,t,r,n,o){o=e[t+r+32*n]+(o>>3),e[t+r+32*n]=-256&o?0>o?0:255:o}function tt(e,t,r,n,o,i){et(e,t,0,r,n+o),et(e,t,1,r,n+i),et(e,t,2,r,n-i),et(e,t,3,r,n-o)}function rt(e){return(20091*e>>16)+e}function nt(e,t,r,n){var o,a=0,s=i(16);for(o=0;4>o;++o){var c=e[t+0]+e[t+8],l=e[t+0]-e[t+8],u=(35468*e[t+4]>>16)-rt(e[t+12]),f=rt(e[t+4])+(35468*e[t+12]>>16);s[a+0]=c+f,s[a+1]=l+u,s[a+2]=l-u,s[a+3]=c-f,a+=4,t++}for(o=a=0;4>o;++o)c=(e=s[a+0]+4)+s[a+8],l=e-s[a+8],u=(35468*s[a+4]>>16)-rt(s[a+12]),et(r,n,0,0,c+(f=rt(s[a+4])+(35468*s[a+12]>>16))),et(r,n,1,0,l+u),et(r,n,2,0,l-u),et(r,n,3,0,c-f),a++,n+=32}function ot(e,t,r,n){var o=e[t+0]+4,i=35468*e[t+4]>>16,a=rt(e[t+4]),s=35468*e[t+1]>>16;tt(r,n,0,o+a,e=rt(e[t+1]),s),tt(r,n,1,o+i,e,s),tt(r,n,2,o-i,e,s),tt(r,n,3,o-a,e,s)}function it(e,t,r,n,o){nt(e,t,r,n),o&&nt(e,t+16,r,n+4)}function at(e,t,r,n){an(e,t+0,r,n,1),an(e,t+32,r,n+128,1)}function st(e,t,r,n){var o;for(e=e[t+0]+4,o=0;4>o;++o)for(t=0;4>t;++t)et(r,n,t,o,e)}function ct(e,t,r,n){e[t+0]&&ln(e,t+0,r,n),e[t+16]&&ln(e,t+16,r,n+4),e[t+32]&&ln(e,t+32,r,n+128),e[t+48]&&ln(e,t+48,r,n+128+4)}function lt(e,t,r,n){var o,a=i(16);for(o=0;4>o;++o){var s=e[t+0+o]+e[t+12+o],c=e[t+4+o]+e[t+8+o],l=e[t+4+o]-e[t+8+o],u=e[t+0+o]-e[t+12+o];a[0+o]=s+c,a[8+o]=s-c,a[4+o]=u+l,a[12+o]=u-l}for(o=0;4>o;++o)s=(e=a[0+4*o]+3)+a[3+4*o],c=a[1+4*o]+a[2+4*o],l=a[1+4*o]-a[2+4*o],u=e-a[3+4*o],r[n+0]=s+c>>3,r[n+16]=u+l>>3,r[n+32]=s-c>>3,r[n+48]=u-l>>3,n+=64}function ut(e,t,r){var n,o=t-32,i=In,a=255-e[o-1];for(n=0;n<r;++n){var s,c=i,l=a+e[t-1];for(s=0;s<r;++s)e[t+s]=c[l+e[o+s]];t+=32}}function ft(e,t){ut(e,t,4)}function ht(e,t){ut(e,t,8)}function dt(e,t){ut(e,t,16)}function pt(e,t){var r;for(r=0;16>r;++r)n(e,t+32*r,e,t-32,16)}function gt(e,t){var r;for(r=16;0<r;--r)o(e,t,e[t-1],16),t+=32}function mt(e,t,r){var n;for(n=0;16>n;++n)o(t,r+32*n,e,16)}function vt(e,t){var r,n=16;for(r=0;16>r;++r)n+=e[t-1+32*r]+e[t+r-32];mt(n>>5,e,t)}function bt(e,t){var r,n=8;for(r=0;16>r;++r)n+=e[t-1+32*r];mt(n>>4,e,t)}function yt(e,t){var r,n=8;for(r=0;16>r;++r)n+=e[t+r-32];mt(n>>4,e,t)}function wt(e,t){mt(128,e,t)}function St(e,t,r){return e+2*t+r+2>>2}function xt(e,t){var r,o=t-32;for(o=new Uint8Array([St(e[o-1],e[o+0],e[o+1]),St(e[o+0],e[o+1],e[o+2]),St(e[o+1],e[o+2],e[o+3]),St(e[o+2],e[o+3],e[o+4])]),r=0;4>r;++r)n(e,t+32*r,o,0,o.length)}function At(e,t){var r=e[t-1],n=e[t-1+32],o=e[t-1+64],i=e[t-1+96];N(e,t+0,16843009*St(e[t-1-32],r,n)),N(e,t+32,16843009*St(r,n,o)),N(e,t+64,16843009*St(n,o,i)),N(e,t+96,16843009*St(o,i,i))}function kt(e,t){var r,n=4;for(r=0;4>r;++r)n+=e[t+r-32]+e[t-1+32*r];for(n>>=3,r=0;4>r;++r)o(e,t+32*r,n,4)}function Tt(e,t){var r=e[t-1+0],n=e[t-1+32],o=e[t-1+64],i=e[t-1-32],a=e[t+0-32],s=e[t+1-32],c=e[t+2-32],l=e[t+3-32];e[t+0+96]=St(n,o,e[t-1+96]),e[t+1+96]=e[t+0+64]=St(r,n,o),e[t+2+96]=e[t+1+64]=e[t+0+32]=St(i,r,n),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=St(a,i,r),e[t+3+64]=e[t+2+32]=e[t+1+0]=St(s,a,i),e[t+3+32]=e[t+2+0]=St(c,s,a),e[t+3+0]=St(l,c,s)}function Et(e,t){var r=e[t+1-32],n=e[t+2-32],o=e[t+3-32],i=e[t+4-32],a=e[t+5-32],s=e[t+6-32],c=e[t+7-32];e[t+0+0]=St(e[t+0-32],r,n),e[t+1+0]=e[t+0+32]=St(r,n,o),e[t+2+0]=e[t+1+32]=e[t+0+64]=St(n,o,i),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=St(o,i,a),e[t+3+32]=e[t+2+64]=e[t+1+96]=St(i,a,s),e[t+3+64]=e[t+2+96]=St(a,s,c),e[t+3+96]=St(s,c,c)}function _t(e,t){var r=e[t-1+0],n=e[t-1+32],o=e[t-1+64],i=e[t-1-32],a=e[t+0-32],s=e[t+1-32],c=e[t+2-32],l=e[t+3-32];e[t+0+0]=e[t+1+64]=i+a+1>>1,e[t+1+0]=e[t+2+64]=a+s+1>>1,e[t+2+0]=e[t+3+64]=s+c+1>>1,e[t+3+0]=c+l+1>>1,e[t+0+96]=St(o,n,r),e[t+0+64]=St(n,r,i),e[t+0+32]=e[t+1+96]=St(r,i,a),e[t+1+32]=e[t+2+96]=St(i,a,s),e[t+2+32]=e[t+3+96]=St(a,s,c),e[t+3+32]=St(s,c,l)}function Ot(e,t){var r=e[t+0-32],n=e[t+1-32],o=e[t+2-32],i=e[t+3-32],a=e[t+4-32],s=e[t+5-32],c=e[t+6-32],l=e[t+7-32];e[t+0+0]=r+n+1>>1,e[t+1+0]=e[t+0+64]=n+o+1>>1,e[t+2+0]=e[t+1+64]=o+i+1>>1,e[t+3+0]=e[t+2+64]=i+a+1>>1,e[t+0+32]=St(r,n,o),e[t+1+32]=e[t+0+96]=St(n,o,i),e[t+2+32]=e[t+1+96]=St(o,i,a),e[t+3+32]=e[t+2+96]=St(i,a,s),e[t+3+64]=St(a,s,c),e[t+3+96]=St(s,c,l)}function Nt(e,t){var r=e[t-1+0],n=e[t-1+32],o=e[t-1+64],i=e[t-1+96];e[t+0+0]=r+n+1>>1,e[t+2+0]=e[t+0+32]=n+o+1>>1,e[t+2+32]=e[t+0+64]=o+i+1>>1,e[t+1+0]=St(r,n,o),e[t+3+0]=e[t+1+32]=St(n,o,i),e[t+3+32]=e[t+1+64]=St(o,i,i),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=i}function Ct(e,t){var r=e[t-1+0],n=e[t-1+32],o=e[t-1+64],i=e[t-1+96],a=e[t-1-32],s=e[t+0-32],c=e[t+1-32],l=e[t+2-32];e[t+0+0]=e[t+2+32]=r+a+1>>1,e[t+0+32]=e[t+2+64]=n+r+1>>1,e[t+0+64]=e[t+2+96]=o+n+1>>1,e[t+0+96]=i+o+1>>1,e[t+3+0]=St(s,c,l),e[t+2+0]=St(a,s,c),e[t+1+0]=e[t+3+32]=St(r,a,s),e[t+1+32]=e[t+3+64]=St(n,r,a),e[t+1+64]=e[t+3+96]=St(o,n,r),e[t+1+96]=St(i,o,n)}function Rt(e,t){var r;for(r=0;8>r;++r)n(e,t+32*r,e,t-32,8)}function Pt(e,t){var r;for(r=0;8>r;++r)o(e,t,e[t-1],8),t+=32}function Lt(e,t,r){var n;for(n=0;8>n;++n)o(t,r+32*n,e,8)}function It(e,t){var r,n=8;for(r=0;8>r;++r)n+=e[t+r-32]+e[t-1+32*r];Lt(n>>4,e,t)}function Ft(e,t){var r,n=4;for(r=0;8>r;++r)n+=e[t+r-32];Lt(n>>3,e,t)}function jt(e,t){var r,n=4;for(r=0;8>r;++r)n+=e[t-1+32*r];Lt(n>>3,e,t)}function Dt(e,t){Lt(128,e,t)}function Mt(e,t,r){var n=e[t-r],o=e[t+0],i=3*(o-n)+Pn[1020+e[t-2*r]-e[t+r]],a=Ln[112+(i+4>>3)];e[t-r]=In[255+n+Ln[112+(i+3>>3)]],e[t+0]=In[255+o-a]}function Bt(e,t,r,n){var o=e[t+0],i=e[t+r];return Fn[255+e[t-2*r]-e[t-r]]>n||Fn[255+i-o]>n}function Wt(e,t,r,n){return 4*Fn[255+e[t-r]-e[t+0]]+Fn[255+e[t-2*r]-e[t+r]]<=n}function Ut(e,t,r,n,o){var i=e[t-3*r],a=e[t-2*r],s=e[t-r],c=e[t+0],l=e[t+r],u=e[t+2*r],f=e[t+3*r];return 4*Fn[255+s-c]+Fn[255+a-l]>n?0:Fn[255+e[t-4*r]-i]<=o&&Fn[255+i-a]<=o&&Fn[255+a-s]<=o&&Fn[255+f-u]<=o&&Fn[255+u-l]<=o&&Fn[255+l-c]<=o}function Ht(e,t,r,n){var o=2*n+1;for(n=0;16>n;++n)Wt(e,t+n,r,o)&&Mt(e,t+n,r)}function zt(e,t,r,n){var o=2*n+1;for(n=0;16>n;++n)Wt(e,t+n*r,1,o)&&Mt(e,t+n*r,1)}function Vt(e,t,r,n){var o;for(o=3;0<o;--o)Ht(e,t+=4*r,r,n)}function qt(e,t,r,n){var o;for(o=3;0<o;--o)zt(e,t+=4,r,n)}function $t(e,t,r,n,o,i,a,s){for(i=2*i+1;0<o--;){if(Ut(e,t,r,i,a))if(Bt(e,t,r,s))Mt(e,t,r);else{var c=e,l=t,u=r,f=c[l-2*u],h=c[l-u],d=c[l+0],p=c[l+u],g=c[l+2*u],m=27*(b=Pn[1020+3*(d-h)+Pn[1020+f-p]])+63>>7,v=18*b+63>>7,b=9*b+63>>7;c[l-3*u]=In[255+c[l-3*u]+b],c[l-2*u]=In[255+f+v],c[l-u]=In[255+h+m],c[l+0]=In[255+d-m],c[l+u]=In[255+p-v],c[l+2*u]=In[255+g-b]}t+=n}}function Gt(e,t,r,n,o,i,a,s){for(i=2*i+1;0<o--;){if(Ut(e,t,r,i,a))if(Bt(e,t,r,s))Mt(e,t,r);else{var c=e,l=t,u=r,f=c[l-u],h=c[l+0],d=c[l+u],p=Ln[112+(4+(g=3*(h-f))>>3)],g=Ln[112+(g+3>>3)],m=p+1>>1;c[l-2*u]=In[255+c[l-2*u]+m],c[l-u]=In[255+f+g],c[l+0]=In[255+h-p],c[l+u]=In[255+d-m]}t+=n}}function Xt(e,t,r,n,o,i){$t(e,t,r,1,16,n,o,i)}function Yt(e,t,r,n,o,i){$t(e,t,1,r,16,n,o,i)}function Kt(e,t,r,n,o,i){var a;for(a=3;0<a;--a)Gt(e,t+=4*r,r,1,16,n,o,i)}function Jt(e,t,r,n,o,i){var a;for(a=3;0<a;--a)Gt(e,t+=4,1,r,16,n,o,i)}function Zt(e,t,r,n,o,i,a,s){$t(e,t,o,1,8,i,a,s),$t(r,n,o,1,8,i,a,s)}function Qt(e,t,r,n,o,i,a,s){$t(e,t,1,o,8,i,a,s),$t(r,n,1,o,8,i,a,s)}function er(e,t,r,n,o,i,a,s){Gt(e,t+4*o,o,1,8,i,a,s),Gt(r,n+4*o,o,1,8,i,a,s)}function tr(e,t,r,n,o,i,a,s){Gt(e,t+4,1,o,8,i,a,s),Gt(r,n+4,1,o,8,i,a,s)}function rr(){this.ba=new ae,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ce,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nr(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function or(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ir(){this.ua=0,this.Wa=new F,this.vb=new F,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new f}function ar(){this.xb=this.a=0,this.l=new $e,this.ca=new ae,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new S,this.Pb=0,this.wd=new S,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ir,this.ab=0,this.gc=a(4,or),this.Oc=0}function sr(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new $e,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function cr(e,t,r,n,o,i,a){for(e=null==e?0:e[t+0],t=0;t<a;++t)o[i+t]=e+r[n+t]&255,e=o[i+t]}function lr(e,t,r,n,o,i,a){var s;if(null==e)cr(null,null,r,n,o,i,a);else for(s=0;s<a;++s)o[i+s]=e[t+s]+r[n+s]&255}function ur(e,t,r,n,o,i,a){if(null==e)cr(null,null,r,n,o,i,a);else{var s,c=e[t+0],l=c,u=c;for(s=0;s<a;++s)l=u+(c=e[t+s])-l,u=r[n+s]+(-256&l?0>l?0:255:l)&255,l=c,o[i+s]=u}}function fr(e,r,o,a){var s=r.width,c=r.o;if(t(null!=e&&null!=r),0>o||0>=a||o+a>c)return null;if(!e.Cc){if(null==e.ga){var l;if(e.ga=new sr,(l=null==e.ga)||(l=r.width*r.o,t(0==e.Gb.length),e.Gb=i(l),e.Uc=0,null==e.Gb?l=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,l=1),l=!l),!l){l=e.ga;var u=e.Fa,f=e.P,h=e.qc,d=e.mb,p=e.nb,g=f+1,m=h-1,b=l.l;if(t(null!=u&&null!=d&&null!=r),vo[0]=null,vo[1]=cr,vo[2]=lr,vo[3]=ur,l.ca=d,l.tb=p,l.c=r.width,l.i=r.height,t(0<l.c&&0<l.i),1>=h)r=0;else if(l.$a=u[f+0]>>0&3,l.Z=u[f+0]>>2&3,l.Lc=u[f+0]>>4&3,f=u[f+0]>>6&3,0>l.$a||1<l.$a||4<=l.Z||1<l.Lc||f)r=0;else if(b.put=de,b.ac=he,b.bc=pe,b.ma=l,b.width=r.width,b.height=r.height,b.Da=r.Da,b.v=r.v,b.va=r.va,b.j=r.j,b.o=r.o,l.$a)e:{t(1==l.$a),r=Oe();t:for(;;){if(null==r){r=0;break e}if(t(null!=l),l.mc=r,r.c=l.c,r.i=l.i,r.l=l.l,r.l.ma=l,r.l.width=l.c,r.l.height=l.i,r.a=0,v(r.m,u,g,m),!Ne(l.c,l.i,1,r,null))break t;if(1==r.ab&&3==r.gc[0].hc&&Ae(r.s)?(l.ic=1,u=r.c*r.i,r.Ta=null,r.Ua=0,r.V=i(u),r.Ba=0,null==r.V?(r.a=1,r=0):r=1):(l.ic=0,r=Ce(r,l.c)),!r)break t;r=1;break e}l.mc=null,r=0}else r=m>=l.c*l.i;l=!r}if(l)return null;1!=e.ga.Lc?e.Ga=0:a=c-o}t(null!=e.ga),t(o+a<=c);e:{if(r=(u=e.ga).c,c=u.l.o,0==u.$a){if(g=e.rc,m=e.Vc,b=e.Fa,f=e.P+1+o*r,h=e.mb,d=e.nb+o*r,t(f<=e.P+e.qc),0!=u.Z)for(t(null!=vo[u.Z]),l=0;l<a;++l)vo[u.Z](g,m,b,f,h,d,r),g=h,m=d,d+=r,f+=r;else for(l=0;l<a;++l)n(h,d,b,f,r),g=h,m=d,d+=r,f+=r;e.rc=g,e.Vc=m}else{if(t(null!=u.mc),r=o+a,t(null!=(l=u.mc)),t(r<=l.i),l.C>=r)r=1;else if(u.ic||mr(),u.ic){u=l.V,g=l.Ba,m=l.c;var y=l.i,w=(b=1,f=l.$/m,h=l.$%m,d=l.m,p=l.s,l.$),S=m*y,x=m*r,k=p.wc,E=w<x?we(p,h,f):null;t(w<=S),t(r<=y),t(Ae(p));t:for(;;){for(;!d.h&&w<x;){if(h&k||(E=we(p,h,f)),t(null!=E),T(d),256>(y=be(E.G[0],E.H[0],d)))u[g+w]=y,++w,++h>=m&&(h=0,++f<=r&&!(f%16)&&Te(l,f));else{if(!(280>y)){b=0;break t}y=me(y-256,d);var _,O=be(E.G[4],E.H[4],d);if(T(d),!(w>=(O=ve(m,O=me(O,d)))&&S-w>=y)){b=0;break t}for(_=0;_<y;++_)u[g+w+_]=u[g+w+_-O];for(w+=y,h+=y;h>=m;)h-=m,++f<=r&&!(f%16)&&Te(l,f);w<x&&h&k&&(E=we(p,h,f))}t(d.h==A(d))}Te(l,f>r?r:f);break t}!b||d.h&&w<S?(b=0,l.a=d.h?5:3):l.$=w,r=b}else r=Ee(l,l.V,l.Ba,l.c,l.i,r,Re);if(!r){a=0;break e}}o+a>=c&&(e.Cc=1),a=1}if(!a)return null;if(e.Cc&&(null!=(a=e.ga)&&(a.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+o*s}function hr(e,t,r,n,o,i){for(;0<o--;){var a,s=e,c=t+(r?1:0),l=e,u=t+(r?0:3);for(a=0;a<n;++a){var f=l[u+4*a];255!=f&&(f*=32897,s[c+4*a+0]=s[c+4*a+0]*f>>23,s[c+4*a+1]=s[c+4*a+1]*f>>23,s[c+4*a+2]=s[c+4*a+2]*f>>23)}t+=i}}function dr(e,t,r,n,o){for(;0<n--;){var i;for(i=0;i<r;++i){var a=e[t+2*i+0],s=15&(l=e[t+2*i+1]),c=4369*s,l=(240&l|l>>4)*c>>16;e[t+2*i+0]=(240&a|a>>4)*c>>16&240|(15&a|a<<4)*c>>16>>4&15,e[t+2*i+1]=240&l|s}t+=o}}function pr(e,t,r,n,o,i,a,s){var c,l,u=255;for(l=0;l<o;++l){for(c=0;c<n;++c){var f=e[t+c];i[a+4*c]=f,u&=f}t+=r,a+=s}return 255!=u}function gr(e,t,r,n,o){var i;for(i=0;i<o;++i)r[n+i]=e[t+i]>>8}function mr(){An=hr,kn=dr,Tn=pr,En=gr}function vr(r,n,o){e[r]=function(e,r,i,a,s,c,l,u,f,h,d,p,g,m,v,b,y){var w,S=y-1>>1,x=s[c+0]|l[u+0]<<16,A=f[h+0]|d[p+0]<<16;t(null!=e);var k=3*x+A+131074>>2;for(n(e[r+0],255&k,k>>16,g,m),null!=i&&(k=3*A+x+131074>>2,n(i[a+0],255&k,k>>16,v,b)),w=1;w<=S;++w){var T=s[c+w]|l[u+w]<<16,E=f[h+w]|d[p+w]<<16,_=x+T+A+E+524296,O=_+2*(T+A)>>3;k=O+x>>1,x=(_=_+2*(x+E)>>3)+T>>1,n(e[r+2*w-1],255&k,k>>16,g,m+(2*w-1)*o),n(e[r+2*w-0],255&x,x>>16,g,m+(2*w-0)*o),null!=i&&(k=_+A>>1,x=O+E>>1,n(i[a+2*w-1],255&k,k>>16,v,b+(2*w-1)*o),n(i[a+2*w+0],255&x,x>>16,v,b+(2*w+0)*o)),x=T,A=E}1&y||(k=3*x+A+131074>>2,n(e[r+y-1],255&k,k>>16,g,m+(y-1)*o),null!=i&&(k=3*A+x+131074>>2,n(i[a+y-1],255&k,k>>16,v,b+(y-1)*o)))}}function br(){bo[jn]=yo,bo[Dn]=So,bo[Mn]=wo,bo[Bn]=xo,bo[Wn]=Ao,bo[Un]=ko,bo[Hn]=To,bo[zn]=So,bo[Vn]=xo,bo[qn]=Ao,bo[$n]=ko}function yr(e){return e&~Ro?0>e?0:255:e>>Co}function wr(e,t){return yr((19077*e>>8)+(26149*t>>8)-14234)}function Sr(e,t,r){return yr((19077*e>>8)-(6419*t>>8)-(13320*r>>8)+8708)}function xr(e,t){return yr((19077*e>>8)+(33050*t>>8)-17685)}function Ar(e,t,r,n,o){n[o+0]=wr(e,r),n[o+1]=Sr(e,t,r),n[o+2]=xr(e,t)}function kr(e,t,r,n,o){n[o+0]=xr(e,t),n[o+1]=Sr(e,t,r),n[o+2]=wr(e,r)}function Tr(e,t,r,n,o){var i=Sr(e,t,r);t=i<<3&224|xr(e,t)>>3,n[o+0]=248&wr(e,r)|i>>5,n[o+1]=t}function Er(e,t,r,n,o){var i=240&xr(e,t)|15;n[o+0]=240&wr(e,r)|Sr(e,t,r)>>4,n[o+1]=i}function _r(e,t,r,n,o){n[o+0]=255,Ar(e,t,r,n,o+1)}function Or(e,t,r,n,o){kr(e,t,r,n,o),n[o+3]=255}function Nr(e,t,r,n,o){Ar(e,t,r,n,o),n[o+3]=255}function qe(e,t){return 0>e?0:e>t?t:e}function Cr(t,r,n){e[t]=function(e,t,o,i,a,s,c,l,u){for(var f=l+(-2&u)*n;l!=f;)r(e[t+0],o[i+0],a[s+0],c,l),r(e[t+1],o[i+0],a[s+0],c,l+n),t+=2,++i,++s,l+=2*n;1&u&&r(e[t+0],o[i+0],a[s+0],c,l)}}function Rr(e,t,r){return 0==r?0==e?0==t?6:5:0==t?4:0:r}function Pr(e,t,r,n,o){switch(e>>>30){case 3:an(t,r,n,o,0);break;case 2:sn(t,r,n,o);break;case 1:ln(t,r,n,o)}}function Lr(e,t){var r,i,a=t.M,s=t.Nb,c=e.oc,l=e.pc+40,u=e.oc,f=e.pc+584,h=e.oc,d=e.pc+600;for(r=0;16>r;++r)c[l+32*r-1]=129;for(r=0;8>r;++r)u[f+32*r-1]=129,h[d+32*r-1]=129;for(0<a?c[l-1-32]=u[f-1-32]=h[d-1-32]=129:(o(c,l-32-1,127,21),o(u,f-32-1,127,9),o(h,d-32-1,127,9)),i=0;i<e.za;++i){var p=t.ya[t.aa+i];if(0<i){for(r=-1;16>r;++r)n(c,l+32*r-4,c,l+32*r+12,4);for(r=-1;8>r;++r)n(u,f+32*r-4,u,f+32*r+4,4),n(h,d+32*r-4,h,d+32*r+4,4)}var g=e.Gd,m=e.Hd+i,v=p.ad,b=p.Hc;if(0<a&&(n(c,l-32,g[m].y,0,16),n(u,f-32,g[m].f,0,8),n(h,d-32,g[m].ea,0,8)),p.Za){var y=c,w=l-32+16;for(0<a&&(i>=e.za-1?o(y,w,g[m].y[15],4):n(y,w,g[m+1].y,0,4)),r=0;4>r;r++)y[w+128+r]=y[w+256+r]=y[w+384+r]=y[w+0+r];for(r=0;16>r;++r,b<<=2)y=c,w=l+Bo[r],ho[p.Ob[r]](y,w),Pr(b,v,16*+r,y,w)}else if(y=Rr(i,a,p.Ob[0]),fo[y](c,l),0!=b)for(r=0;16>r;++r,b<<=2)Pr(b,v,16*+r,c,l+Bo[r]);for(r=p.Gc,y=Rr(i,a,p.Dd),po[y](u,f),po[y](h,d),b=v,y=u,w=f,255&(p=r>>0)&&(170&p?cn(b,256,y,w):un(b,256,y,w)),p=h,b=d,255&(r>>=8)&&(170&r?cn(v,320,p,b):un(v,320,p,b)),a<e.Ub-1&&(n(g[m].y,0,c,l+480,16),n(g[m].f,0,u,f+224,8),n(g[m].ea,0,h,d+224,8)),r=8*s*e.B,g=e.sa,m=e.ta+16*i+16*s*e.R,v=e.qa,p=e.ra+8*i+r,b=e.Ha,y=e.Ia+8*i+r,r=0;16>r;++r)n(g,m+r*e.R,c,l+32*r,16);for(r=0;8>r;++r)n(v,p+r*e.B,u,f+32*r,8),n(b,y+r*e.B,h,d+32*r,8)}}function Ir(e,n,o,i,a,s,c,l,u){var f=[0],h=[0],d=0,p=null!=u?u.kd:0,g=null!=u?u:new nr;if(null==e||12>o)return 7;g.data=e,g.w=n,g.ha=o,n=[n],o=[o],g.gb=[g.gb];e:{var m=n,b=o,y=g.gb;if(t(null!=e),t(null!=b),t(null!=y),y[0]=0,12<=b[0]&&!r(e,m[0],"RIFF")){if(r(e,m[0]+8,"WEBP")){y=3;break e}var w=P(e,m[0]+4);if(12>w||4294967286<w){y=3;break e}if(p&&w>b[0]-8){y=7;break e}y[0]=w,m[0]+=12,b[0]-=12}y=0}if(0!=y)return y;for(w=0<g.gb[0],o=o[0];;){e:{var x=e;b=n,y=o;var A=f,k=h,T=m=[0];if((O=d=[d])[0]=0,8>y[0])y=7;else{if(!r(x,b[0],"VP8X")){if(10!=P(x,b[0]+4)){y=3;break e}if(18>y[0]){y=7;break e}var E=P(x,b[0]+8),_=1+R(x,b[0]+12);if(2147483648<=_*(x=1+R(x,b[0]+15))){y=3;break e}null!=T&&(T[0]=E),null!=A&&(A[0]=_),null!=k&&(k[0]=x),b[0]+=18,y[0]-=18,O[0]=1}y=0}}if(d=d[0],m=m[0],0!=y)return y;if(b=!!(2&m),!w&&d)return 3;if(null!=s&&(s[0]=!!(16&m)),null!=c&&(c[0]=b),null!=l&&(l[0]=0),c=f[0],m=h[0],d&&b&&null==u){y=0;break}if(4>o){y=7;break}if(w&&d||!w&&!d&&!r(e,n[0],"ALPH")){o=[o],g.na=[g.na],g.P=[g.P],g.Sa=[g.Sa];e:{E=e,y=n,w=o;var O=g.gb;A=g.na,k=g.P,T=g.Sa,_=22,t(null!=E),t(null!=w),x=y[0];var N=w[0];for(t(null!=A),t(null!=T),A[0]=null,k[0]=null,T[0]=0;;){if(y[0]=x,w[0]=N,8>N){y=7;break e}var C=P(E,x+4);if(4294967286<C){y=3;break e}var L=8+C+1&-2;if(_+=L,0<O&&_>O){y=3;break e}if(!r(E,x,"VP8 ")||!r(E,x,"VP8L")){y=0;break e}if(N[0]<L){y=7;break e}r(E,x,"ALPH")||(A[0]=E,k[0]=x+8,T[0]=C),x+=L,N-=L}}if(o=o[0],g.na=g.na[0],g.P=g.P[0],g.Sa=g.Sa[0],0!=y)break}o=[o],g.Ja=[g.Ja],g.xa=[g.xa];e:if(O=e,y=n,w=o,A=g.gb[0],k=g.Ja,T=g.xa,E=y[0],x=!r(O,E,"VP8 "),_=!r(O,E,"VP8L"),t(null!=O),t(null!=w),t(null!=k),t(null!=T),8>w[0])y=7;else{if(x||_){if(O=P(O,E+4),12<=A&&O>A-12){y=3;break e}if(p&&O>w[0]-8){y=7;break e}k[0]=O,y[0]+=8,w[0]-=8,T[0]=_}else T[0]=5<=w[0]&&47==O[E+0]&&!(O[E+4]>>5),k[0]=w[0];y=0}if(o=o[0],g.Ja=g.Ja[0],g.xa=g.xa[0],n=n[0],0!=y)break;if(4294967286<g.Ja)return 3;if(null==l||b||(l[0]=g.xa?2:1),c=[c],m=[m],g.xa){if(5>o){y=7;break}l=c,p=m,b=s,null==e||5>o?e=0:5<=o&&47==e[n+0]&&!(e[n+4]>>5)?(w=[0],O=[0],A=[0],v(k=new S,e,n,o),ge(k,w,O,A)?(null!=l&&(l[0]=w[0]),null!=p&&(p[0]=O[0]),null!=b&&(b[0]=A[0]),e=1):e=0):e=0}else{if(10>o){y=7;break}l=m,null==e||10>o||!Ye(e,n+3,o-3)?e=0:(p=e[n+0]|e[n+1]<<8|e[n+2]<<16,b=16383&(e[n+7]<<8|e[n+6]),e=16383&(e[n+9]<<8|e[n+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=g.Ja||!b||!e?e=0:(c&&(c[0]=b),l&&(l[0]=e),e=1))}if(!e)return 3;if(c=c[0],m=m[0],d&&(f[0]!=c||h[0]!=m))return 3;null!=u&&(u[0]=g,u.offset=n-u.w,t(4294967286>n-u.w),t(u.offset==u.ha-o));break}return 0==y||7==y&&d&&null==u?(null!=s&&(s[0]|=null!=g.na&&0<g.na.length),null!=i&&(i[0]=c),null!=a&&(a[0]=m),0):y}function Fr(e,t,r){var n=t.width,o=t.height,i=0,a=0,s=n,c=o;if(t.Da=null!=e&&0<e.Da,t.Da&&(s=e.cd,c=e.bd,i=e.v,a=e.j,11>r||(i&=-2,a&=-2),0>i||0>a||0>=s||0>=c||i+s>n||a+c>o))return 0;if(t.v=i,t.j=a,t.va=i+s,t.o=a+c,t.U=s,t.T=c,t.da=null!=e&&0<e.da,t.da){if(!j(s,c,r=[e.ib],i=[e.hb]))return 0;t.ib=r[0],t.hb=i[0]}return t.ob=null!=e&&e.ob,t.Kb=null==e||!e.Sd,t.da&&(t.ob=t.ib<3*n/4&&t.hb<3*o/4,t.Kb=0),1}function jr(e){if(null==e)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function Dr(e,t,r,n){if(null==n||0>=e||0>=t)return 2;if(null!=r){if(r.Da){var o=r.cd,a=r.bd,s=-2&r.v,c=-2&r.j;if(0>s||0>c||0>=o||0>=a||s+o>e||c+a>t)return 2;e=o,t=a}if(r.da){if(!j(e,t,o=[r.ib],a=[r.hb]))return 2;e=o[0],t=a[0]}}n.width=e,n.height=t;e:{var l=n.width,u=n.height;if(e=n.S,0>=l||0>=u||!(e>=jn&&13>e))e=2;else{if(0>=n.Rd&&null==n.sd){s=a=o=t=0;var f=(c=l*zo[e])*u;if(11>e||(a=(u+1)/2*(t=(l+1)/2),12==e&&(s=(o=l)*u)),null==(u=i(f+2*a+s))){e=1;break e}n.sd=u,11>e?((l=n.f.RGBA).eb=u,l.fb=0,l.A=c,l.size=f):((l=n.f.kb).y=u,l.O=0,l.fa=c,l.Fd=f,l.f=u,l.N=0+f,l.Ab=t,l.Cd=a,l.ea=u,l.W=0+f+a,l.Db=t,l.Ed=a,12==e&&(l.F=u,l.J=0+f+2*a),l.Tc=s,l.lb=o)}if(t=1,o=n.S,a=n.width,s=n.height,o>=jn&&13>o)if(11>o)e=n.f.RGBA,t&=(c=Math.abs(e.A))*(s-1)+a<=e.size,t&=c>=a*zo[o],t&=null!=e.eb;else{e=n.f.kb,c=(a+1)/2,f=(s+1)/2,l=Math.abs(e.fa),u=Math.abs(e.Ab);var h=Math.abs(e.Db),d=Math.abs(e.lb),p=d*(s-1)+a;t&=l*(s-1)+a<=e.Fd,t&=u*(f-1)+c<=e.Cd,t=(t&=h*(f-1)+c<=e.Ed)&l>=a&u>=c&h>=c,t&=null!=e.y,t&=null!=e.f,t&=null!=e.ea,12==o&&(t&=d>=a,t&=p<=e.Tc,t&=null!=e.F)}else t=0;e=t?0:2}}return 0!=e||null!=r&&r.fd&&(e=jr(n)),e}var Mr=64,Br=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Wr=24,Ur=32,Hr=8,zr=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];B("Predictor0","PredictorAdd0"),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,r){return t[r+0]},e.Predictor3=function(e,t,r){return t[r+1]},e.Predictor4=function(e,t,r){return t[r-1]},e.Predictor5=function(e,t,r){return U(U(e,t[r+1]),t[r+0])},e.Predictor6=function(e,t,r){return U(e,t[r-1])},e.Predictor7=function(e,t,r){return U(e,t[r+0])},e.Predictor8=function(e,t,r){return U(t[r-1],t[r+0])},e.Predictor9=function(e,t,r){return U(t[r+0],t[r+1])},e.Predictor10=function(e,t,r){return U(U(e,t[r-1]),U(t[r+0],t[r+1]))},e.Predictor11=function(e,t,r){var n=t[r+0];return 0>=V(n>>24&255,e>>24&255,(t=t[r-1])>>24&255)+V(n>>16&255,e>>16&255,t>>16&255)+V(n>>8&255,e>>8&255,t>>8&255)+V(255&n,255&e,255&t)?n:e},e.Predictor12=function(e,t,r){var n=t[r+0];return(H((e>>24&255)+(n>>24&255)-((t=t[r-1])>>24&255))<<24|H((e>>16&255)+(n>>16&255)-(t>>16&255))<<16|H((e>>8&255)+(n>>8&255)-(t>>8&255))<<8|H((255&e)+(255&n)-(255&t)))>>>0},e.Predictor13=function(e,t,r){var n=t[r-1];return(z((e=U(e,t[r+0]))>>24&255,n>>24&255)<<24|z(e>>16&255,n>>16&255)<<16|z(e>>8&255,n>>8&255)<<8|z(e>>0&255,n>>0&255))>>>0};var Vr=e.PredictorAdd0;e.PredictorAdd1=q,B("Predictor2","PredictorAdd2"),B("Predictor3","PredictorAdd3"),B("Predictor4","PredictorAdd4"),B("Predictor5","PredictorAdd5"),B("Predictor6","PredictorAdd6"),B("Predictor7","PredictorAdd7"),B("Predictor8","PredictorAdd8"),B("Predictor9","PredictorAdd9"),B("Predictor10","PredictorAdd10"),B("Predictor11","PredictorAdd11"),B("Predictor12","PredictorAdd12"),B("Predictor13","PredictorAdd13");var qr=e.PredictorAdd2;Y("ColorIndexInverseTransform","MapARGB","32b",(function(e){return e>>8&255}),(function(e){return e})),Y("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(e){return e}),(function(e){return e>>8&255}));var $r,Gr=e.ColorIndexInverseTransform,Xr=e.MapARGB,Yr=e.VP8LColorIndexInverseTransformAlpha,Kr=e.MapAlpha,Jr=e.VP8LPredictorsAdd=[];Jr.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var Zr,Qr,en,tn,rn,nn,on,an,sn,cn,ln,un,fn,hn,dn,pn,gn,mn,vn,bn,yn,wn,Sn,xn,An,kn,Tn,En,_n=i(511),On=i(2041),Nn=i(225),Cn=i(767),Rn=0,Pn=On,Ln=Nn,In=Cn,Fn=_n,jn=0,Dn=1,Mn=2,Bn=3,Wn=4,Un=5,Hn=6,zn=7,Vn=8,qn=9,$n=10,Gn=[2,3,7],Xn=[3,3,11],Yn=[280,256,256,256,40],Kn=[0,1,1,1,0],Jn=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Zn=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Qn=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],eo=8,to=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ro=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],no=null,oo=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],io=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ao=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],so=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],co=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],lo=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],uo=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],fo=[],ho=[],po=[],go=1,mo=2,vo=[],bo=[];vr("UpsampleRgbLinePair",Ar,3),vr("UpsampleBgrLinePair",kr,3),vr("UpsampleRgbaLinePair",Nr,4),vr("UpsampleBgraLinePair",Or,4),vr("UpsampleArgbLinePair",_r,4),vr("UpsampleRgba4444LinePair",Er,2),vr("UpsampleRgb565LinePair",Tr,2);var yo=e.UpsampleRgbLinePair,wo=e.UpsampleBgrLinePair,So=e.UpsampleRgbaLinePair,xo=e.UpsampleBgraLinePair,Ao=e.UpsampleArgbLinePair,ko=e.UpsampleRgba4444LinePair,To=e.UpsampleRgb565LinePair,Eo=16,_o=1<<Eo-1,Oo=-227,No=482,Co=6,Ro=(256<<Co)-1,Po=0,Lo=i(256),Io=i(256),Fo=i(256),jo=i(256),Do=i(No-Oo),Mo=i(No-Oo);Cr("YuvToRgbRow",Ar,3),Cr("YuvToBgrRow",kr,3),Cr("YuvToRgbaRow",Nr,4),Cr("YuvToBgraRow",Or,4),Cr("YuvToArgbRow",_r,4),Cr("YuvToRgba4444Row",Er,2),Cr("YuvToRgb565Row",Tr,2);var Bo=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Wo=[0,2,8],Uo=[8,7,6,4,4,2,2,2,1,1,1,1],Ho=1;this.WebPDecodeRGBA=function(e,r,n,o,i){var a=Dn,s=new rr,c=new ae;s.ba=c,c.S=a,c.width=[c.width],c.height=[c.height];var l=c.width,u=c.height,f=new se;if(null==f||null==e)var h=2;else t(null!=f),h=Ir(e,r,n,f.width,f.height,f.Pd,f.Qd,f.format,null);if(0!=h?l=0:(null!=l&&(l[0]=f.width[0]),null!=u&&(u[0]=f.height[0]),l=1),l){c.width=c.width[0],c.height=c.height[0],null!=o&&(o[0]=c.width),null!=i&&(i[0]=c.height);e:{if(o=new $e,(i=new nr).data=e,i.w=r,i.ha=n,i.kd=1,r=[0],t(null!=i),(0==(e=Ir(i.data,i.w,i.ha,null,null,null,r,null,i))||7==e)&&r[0]&&(e=4),0==(r=e)){if(t(null!=s),o.data=i.data,o.w=i.w+i.offset,o.ha=i.ha-i.offset,o.put=de,o.ac=he,o.bc=pe,o.ma=s,i.xa){if(null==(e=Oe())){s=1;break e}if(function(e,r){var n=[0],o=[0],i=[0];t:for(;;){if(null==e)return 0;if(null==r)return e.a=2,0;if(e.l=r,e.a=0,v(e.m,r.data,r.w,r.ha),!ge(e.m,n,o,i)){e.a=3;break t}if(e.xb=mo,r.width=n[0],r.height=o[0],!Ne(n[0],o[0],1,e,null))break t;return 1}return t(0!=e.a),0}(e,o)){if(o=0==(r=Dr(o.width,o.height,s.Oa,s.ba))){t:{o=e;r:for(;;){if(null==o){o=0;break t}if(t(null!=o.s.yc),t(null!=o.s.Ya),t(0<o.s.Wb),t(null!=(n=o.l)),t(null!=(i=n.ma)),0!=o.xb){if(o.ca=i.ba,o.tb=i.tb,t(null!=o.ca),!Fr(i.Oa,n,Bn)){o.a=2;break r}if(!Ce(o,n.width))break r;if(n.da)break r;if((n.da||ne(o.ca.S))&&mr(),11>o.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=o.ca.f.kb.F&&mr()),o.Pb&&0<o.s.ua&&null==o.s.vb.X&&!L(o.s.vb,o.s.Wa.Xa)){o.a=1;break r}o.xb=0}if(!Ee(o,o.V,o.Ba,o.c,o.i,n.o,xe))break r;i.Dc=o.Ma,o=1;break t}t(0!=o.a),o=0}o=!o}o&&(r=e.a)}else r=e.a}else{if(null==(e=new Ge)){s=1;break e}if(e.Fa=i.na,e.P=i.P,e.qc=i.Sa,Ke(e,o)){if(0==(r=Dr(o.width,o.height,s.Oa,s.ba))){if(e.Aa=0,n=s.Oa,t(null!=(i=e)),null!=n){if(0<(l=0>(l=n.Md)?0:100<l?255:255*l/100)){for(u=f=0;4>u;++u)12>(h=i.pb[u]).lc&&(h.ia=l*Uo[0>h.lc?0:h.lc]>>3),f|=h.ia;f&&(alert("todo:VP8InitRandom"),i.ia=1)}i.Ga=n.Id,100<i.Ga?i.Ga=100:0>i.Ga&&(i.Ga=0)}Qe(e,o)||(r=e.a)}}else r=e.a}0==r&&null!=s.Oa&&s.Oa.fd&&(r=jr(s.ba))}s=r}a=0!=s?null:11>a?c.f.RGBA.eb:c.f.kb.y}else a=null;return a};var zo=[3,4,3,4,4,2,2,4,4,4,2,1,1]});var f=[0],h=[0],d=[],p=new Ct,g=e,m=function(e,t){var r={},n=0,o=!1,i=0,a=0;if(r.frames=[],!function(e,t,r,n){for(var o=0;o<4;o++)if(e[t+o]!="RIFF".charCodeAt(o))return!0;return!1}(e,t)){var s,f;for(u(e,t+=4),t+=8;t<e.length;){var h=c(e,t),d=u(e,t+=4);t+=4;var p=d+(1&d);switch(h){case"VP8 ":case"VP8L":void 0===r.frames[n]&&(r.frames[n]={}),(v=r.frames[n]).src_off=o?a:t-8,v.src_size=i+d+8,n++,o&&(o=!1,i=0,a=0);break;case"VP8X":(v=r.header={}).feature_flags=e[t];var g=t+4;v.canvas_width=1+l(e,g),g+=3,v.canvas_height=1+l(e,g),g+=3;break;case"ALPH":o=!0,i=p+8,a=t-8;break;case"ANIM":(v=r.header).bgcolor=u(e,t),g=t+4,v.loop_count=(s=e)[(f=g)+0]<<0|s[f+1]<<8,g+=2;break;case"ANMF":var m,v;(v=r.frames[n]={}).offset_x=2*l(e,t),t+=3,v.offset_y=2*l(e,t),t+=3,v.width=1+l(e,t),t+=3,v.height=1+l(e,t),t+=3,v.duration=l(e,t),t+=3,m=e[t++],v.dispose=1&m,v.blend=m>>1&1}"ANMF"!=h&&(t+=p)}return r}}(g,0);m.response=g,m.rgbaoutput=!0,m.dataurl=!1;var v=m.header?m.header:null,b=m.frames?m.frames:null;if(v){v.loop_counter=v.loop_count,f=[v.canvas_height],h=[v.canvas_width];for(var y=0;y<b.length&&0!=b[y].blend;y++);}var w=b[0],S=p.WebPDecodeRGBA(g,w.src_off,w.src_size,h,f);w.rgba=S,w.imgwidth=h[0],w.imgheight=f[0];for(var x=0;x<h[0]*f[0]*4;x++)d[x]=S[x];return this.width=h,this.height=f,this.data=d,this}!function(e){var t=function(t,n,c,l){var u=4,f=i;switch(l){case e.image_compression.FAST:u=1,f=o;break;case e.image_compression.MEDIUM:u=6,f=a;break;case e.image_compression.SLOW:u=9,f=s}var h=yt(t=r(t,n,c,f),{level:u});return e.__addimage__.arrayBufferToBinaryString(h)},r=function(e,t,r,n){for(var o,i,a,s=e.length/t,c=new Uint8Array(e.length+s),f=l(),h=0;h<s;h+=1){if(a=h*t,o=e.subarray(a,a+t),n)c.set(n(o,r,i),a+h);else{for(var d,p=f.length,g=[];d<p;d+=1)g[d]=f[d](o,r,i);var m=u(g.concat());c.set(g[m],a+h)}i=o}return c},n=function(e){var t=Array.apply([],e);return t.unshift(0),t},o=function(e,t){var r,n=[],o=e.length;n[0]=1;for(var i=0;i<o;i+=1)r=e[i-t]||0,n[i+1]=e[i]-r+256&255;return n},i=function(e,t,r){var n,o=[],i=e.length;o[0]=2;for(var a=0;a<i;a+=1)n=r&&r[a]||0,o[a+1]=e[a]-n+256&255;return o},a=function(e,t,r){var n,o,i=[],a=e.length;i[0]=3;for(var s=0;s<a;s+=1)n=e[s-t]||0,o=r&&r[s]||0,i[s+1]=e[s]+256-(n+o>>>1)&255;return i},s=function(e,t,r){var n,o,i,a,s=[],l=e.length;s[0]=4;for(var u=0;u<l;u+=1)n=e[u-t]||0,o=r&&r[u]||0,i=r&&r[u-t]||0,a=c(n,o,i),s[u+1]=e[u]-a+256&255;return s},c=function(e,t,r){if(e===t&&t===r)return e;var n=Math.abs(t-r),o=Math.abs(e-r),i=Math.abs(e+t-r-r);return n<=o&&n<=i?e:o<=i?t:r},l=function(){return[n,o,i,a,s]},u=function(e){var t=e.map((function(e){return e.reduce((function(e,t){return e+Math.abs(t)}),0)}));return t.indexOf(Math.min.apply(null,t))};e.processPNG=function(r,n,o,i){var a,s,c,l,u,f,h,d,p,g,m,v,b,y,w,S=this.decode.FLATE_DECODE,x="";if(this.__addimage__.isArrayBuffer(r)&&(r=new Uint8Array(r)),this.__addimage__.isArrayBufferView(r)){if(r=(c=new Tt(r)).imgData,s=c.bits,a=c.colorSpace,u=c.colors,-1!==[4,6].indexOf(c.colorType)){if(8===c.bits){p=(d=32==c.pixelBitlength?new Uint32Array(c.decodePixels().buffer):16==c.pixelBitlength?new Uint16Array(c.decodePixels().buffer):new Uint8Array(c.decodePixels().buffer)).length,m=new Uint8Array(p*c.colors),g=new Uint8Array(p);var A,k=c.pixelBitlength-c.bits;for(y=0,w=0;y<p;y++){for(b=d[y],A=0;A<k;)m[w++]=b>>>A&255,A+=c.bits;g[y]=b>>>A&255}}if(16===c.bits){p=(d=new Uint32Array(c.decodePixels().buffer)).length,m=new Uint8Array(p*(32/c.pixelBitlength)*c.colors),g=new Uint8Array(p*(32/c.pixelBitlength)),v=c.colors>1,y=0,w=0;for(var T=0;y<p;)b=d[y++],m[w++]=b>>>0&255,v&&(m[w++]=b>>>16&255,b=d[y++],m[w++]=b>>>0&255),g[T++]=b>>>16&255;s=8}i!==e.image_compression.NONE?(r=t(m,c.width*c.colors,c.colors,i),h=t(g,c.width,1,i)):(r=m,h=g,S=void 0)}if(3===c.colorType&&(a=this.color_spaces.INDEXED,f=c.palette,c.transparency.indexed)){var E=c.transparency.indexed,_=0;for(y=0,p=E.length;y<p;++y)_+=E[y];if((_/=255)==p-1&&-1!==E.indexOf(0))l=[E.indexOf(0)];else if(_!==p){for(d=c.decodePixels(),g=new Uint8Array(d.length),y=0,p=d.length;y<p;y++)g[y]=E[d[y]];h=t(g,c.width,1)}}var O=function(t){var r;switch(t){case e.image_compression.FAST:r=11;break;case e.image_compression.MEDIUM:r=13;break;case e.image_compression.SLOW:r=14;break;default:r=12}return r}(i);return S===this.decode.FLATE_DECODE&&(x="/Predictor "+O+" "),x+="/Colors "+u+" /BitsPerComponent "+s+" /Columns "+c.width,(this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r))&&(r=this.__addimage__.arrayBufferToBinaryString(r)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:o,data:r,index:n,filter:S,decodeParameters:x,transparency:l,palette:f,sMask:h,predictor:O,width:c.width,height:c.height,bitsPerComponent:s,colorSpace:a}}}}(P.API),function(e){e.processGIF89A=function(t,r,n,o){var i=new Et(t),a=i.width,s=i.height,c=[];i.decodeAndBlitFrameRGBA(0,c);var l={data:c,width:a,height:s},u=new Ot(100).encode(l,100);return e.processJPEG.call(this,u,r,n,o)},e.processGIF87A=e.processGIF89A}(P.API),Nt.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:o,green:n,blue:r,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Nt.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(e){n.log("bit decode error:"+e)}},Nt.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),r=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,o=0;o<t;o++)for(var i=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+8*o*4,s=0;s<8&&8*o+s<this.width;s++){var c=this.palette[i>>7-s&1];this.data[a+4*s]=c.blue,this.data[a+4*s+1]=c.green,this.data[a+4*s+2]=c.red,this.data[a+4*s+3]=255}0!==r&&(this.pos+=4-r)}},Nt.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,o=0;o<e;o++){var i=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+2*o*4,s=i>>4,c=15&i,l=this.palette[s];if(this.data[a]=l.blue,this.data[a+1]=l.green,this.data[a+2]=l.red,this.data[a+3]=255,2*o+1>=this.width)break;l=this.palette[c],this.data[a+4]=l.blue,this.data[a+4+1]=l.green,this.data[a+4+2]=l.red,this.data[a+4+3]=255}0!==t&&(this.pos+=4-t)}},Nt.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var o=this.datav.getUint8(this.pos++,!0),i=r*this.width*4+4*n;if(o<this.palette.length){var a=this.palette[o];this.data[i]=a.red,this.data[i+1]=a.green,this.data[i+2]=a.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==e&&(this.pos+=4-e)}},Nt.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(i&t)/t*255|0,s=(i>>5&t)/t*255|0,c=(i>>10&t)/t*255|0,l=i>>15?255:0,u=n*this.width*4+4*o;this.data[u]=c,this.data[u+1]=s,this.data[u+2]=a,this.data[u+3]=l}this.pos+=e}},Nt.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var o=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&t)/t*255|0,c=(a>>5&r)/r*255|0,l=(a>>11)/t*255|0,u=o*this.width*4+4*i;this.data[u]=l,this.data[u+1]=c,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},Nt.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*r;this.data[a]=i,this.data[a+1]=o,this.data[a+2]=n,this.data[a+3]=255}this.pos+=this.width%4}},Nt.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*r;this.data[s]=i,this.data[s+1]=o,this.data[s+2]=n,this.data[s+3]=a}},Nt.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,r,n,o){var i=new Nt(t,!1),a=i.width,s=i.height,c={data:i.getData(),width:a,height:s},l=new Ot(100).encode(c,100);return e.processJPEG.call(this,l,r,n,o)}}(P.API),Ct.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,r,n,o){var i=new Ct(t,!1),a=i.width,s=i.height,c={data:i.getData(),width:a,height:s},l=new Ot(100).encode(c,100);return e.processJPEG.call(this,l,r,n,o)}}(P.API),function(e){e.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this}}(P.API),wt=P.API,St=wt.getCharWidthsArray=function(e,t){var r,n,o=(t=t||{}).font||this.internal.getFont(),i=t.fontSize||this.internal.getFontSize(),a=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:o.metadata.Unicode.widths,c=s.fof?s.fof:1,l=t.kerning?t.kerning:o.metadata.Unicode.kerning,u=l.fof?l.fof:1,f=!1!==t.doKerning,h=0,d=e.length,p=0,g=s[0]||c,m=[];for(r=0;r<d;r++)n=e.charCodeAt(r),"function"==typeof o.metadata.widthOfString?m.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(n))+a*(1e3/i)||0)/1e3):(h=f&&"object"==typeof l[n]&&!isNaN(parseInt(l[n][p],10))?l[n][p]/u:0,m.push((s[n]||g)/c+h)),p=n;return m},xt=wt.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),o=t.charSpace||this.internal.getCharSpace();return wt.processArabic&&(e=wt.processArabic(e)),"function"==typeof n.metadata.widthOfString?n.metadata.widthOfString(e,r,o)/r:St.apply(this,arguments).reduce((function(e,t){return e+t}),0)},At=function(e,t,r,n){for(var o=[],i=0,a=e.length,s=0;i!==a&&s+t[i]<r;)s+=t[i],i++;o.push(e.slice(0,i));var c=i;for(s=0;i!==a;)s+t[i]>n&&(o.push(e.slice(c,i)),s=0,c=i),s+=t[i],i++;return c!==i&&o.push(e.slice(c,i)),o},kt=function(e,t,r){r||(r={});var n,o,i,a,s,c,l,u=[],f=[u],h=r.textIndent||0,d=0,p=0,g=e.split(" "),m=St.apply(this,[" ",r])[0];if(c=-1===r.lineIndent?g[0].length+2:r.lineIndent||0){var v=Array(c).join(" "),b=[];g.map((function(e){(e=e.split(/\s*\n/)).length>1?b=b.concat(e.map((function(e,t){return(t&&e.length?"\n":"")+e}))):b.push(e[0])})),g=b,c=xt.apply(this,[v,r])}for(i=0,a=g.length;i<a;i++){var y=0;if(n=g[i],c&&"\n"==n[0]&&(n=n.substr(1),y=1),h+d+(p=(o=St.apply(this,[n,r])).reduce((function(e,t){return e+t}),0))>t||y){if(p>t){for(s=At.apply(this,[n,o,t-(h+d),t]),u.push(s.shift()),u=[s.pop()];s.length;)f.push([s.shift()]);p=o.slice(n.length-(u[0]?u[0].length:0)).reduce((function(e,t){return e+t}),0)}else u=[n];f.push(u),h=p+c,d=m}else u.push(n),h+=d+p,d=m}return l=c?function(e,t){return(t?v:"")+e.join(" ")}:function(e){return e.join(" ")},f.map(l)},wt.splitTextToSize=function(e,t,r){var n,o=(r=r||{}).fontSize||this.internal.getFontSize(),i=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle);return t.metadata.Unicode?{widths:t.metadata.Unicode.widths||{0:1},kerning:t.metadata.Unicode.kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,r);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var a=1*this.internal.scaleFactor*t/o;i.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/o:0,i.lineIndent=r.lineIndent;var s,c,l=[];for(s=0,c=n.length;s<c;s++)l=l.concat(kt.apply(this,[n[s],a,i]));return l},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",r={},n={},o=0;o<t.length;o++)r[t[o]]="0123456789abcdef"[o],n["0123456789abcdef"[o]]=t[o];var i=function(e){return"0x"+parseInt(e,10).toString(16)},a=e.__fontmetrics__.compress=function(e){var t,r,o,s,c=["{"];for(var l in e){if(t=e[l],isNaN(parseInt(l,10))?r="'"+l+"'":(l=parseInt(l,10),r=(r=i(l).slice(2)).slice(0,-1)+n[r.slice(-1)]),"number"==typeof t)t<0?(o=i(t).slice(3),s="-"):(o=i(t).slice(2),s=""),o=s+o.slice(0,-1)+n[o.slice(-1)];else{if("object"!=typeof t)throw new Error("Don't know what to do with value type "+typeof t+".");o=a(t)}c.push(r+o)}return c.push("}"),c.join("")},s=e.__fontmetrics__.uncompress=function(e){if("string"!=typeof e)throw new Error("Invalid argument passed to uncompress.");for(var t,n,o,i,a={},s=1,c=a,l=[],u="",f="",h=e.length-1,d=1;d<h;d+=1)"'"==(i=e[d])?t?(o=t.join(""),t=void 0):t=[]:t?t.push(i):"{"==i?(l.push([c,o]),c={},o=void 0):"}"==i?((n=l.pop())[0][n[1]]=c,o=void 0,c=n[0]):"-"==i?s=-1:void 0===o?r.hasOwnProperty(i)?(u+=r[i],o=parseInt(u,16)*s,s=1,u=""):u+=i:r.hasOwnProperty(i)?(f+=r[i],c[o]=parseInt(f,16)*s,s=1,o=void 0,f=""):f+=i;return a},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},l={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},u={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":s("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(e){var t=e.font,r=u.Unicode[t.postScriptName];r&&(t.metadata.Unicode={},t.metadata.Unicode.widths=r.widths,t.metadata.Unicode.kerning=r.kerning);var n=l.Unicode[t.postScriptName];n&&(t.metadata.Unicode.encoding=n,t.encoding=n.codePages[0])}])}(P.API),function(e){var t=function(e){for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r};e.API.events.push(["addFont",function(r){var n=void 0,o=r.font,i=r.instance;if(!o.isStandardFont){if(void 0===i)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");if("string"!=typeof(n=!1===i.existsFileInVFS(o.postScriptName)?i.loadFile(o.postScriptName):i.getFileFromVFS(o.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");!function(r,n){n=/^\x00\x01\x00\x00/.test(n)?t(n):t(s(n)),r.metadata=e.API.TTFFont.open(n),r.metadata.Unicode=r.metadata.Unicode||{encoding:{},kerning:{},widths:[]},r.metadata.glyIdsUsed=[0]}(o,n)}}])}(P),function(r){function o(){return(t.canvg?Promise.resolve(t.canvg):"object"==typeof e&&"undefined"!=typeof module?new Promise((function(e,t){try{e(require("canvg"))}catch(e){t(e)}})):"function"==typeof define&&define.amd?new Promise((function(e,t){try{require(["canvg"],e)}catch(e){t(e)}})):Promise.reject(new Error("Could not load canvg"))).catch((function(e){return Promise.reject(new Error("Could not load canvg: "+e))})).then((function(e){return e.default?e.default:e}))}r.addSvgAsImage=function(e,t,r,i,a,s,c,l){if(isNaN(t)||isNaN(r))throw n.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw n.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=i,u.height=a;var f=u.getContext("2d");f.fillStyle="#fff",f.fillRect(0,0,u.width,u.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return o().then((function(t){return t.fromString(f,e,h)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(e){return e.render(h)})).then((function(){d.addImage(u.toDataURL("image/jpeg",1),t,r,i,a,c,l)}))}}(P.API),function(e){e.putTotalPages=function(e){var t,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),r=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var o=0;o<this.internal.pages[n].length;o++)this.internal.pages[n][o]=this.internal.pages[n][o].replace(t,r);return this}}(P.API),function(e){e.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var n,o,i,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(a),c=[],l=0,u=0,f=0;function h(e,t){var r,n=!1;for(r=0;r<e.length;r+=1)e[r]===t&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var d=s.length;for(f=0;f<d;f+=1)r[s[f]].value=r[s[f]].defaultValue,r[s[f]].explicitSet=!1}if("object"==typeof e)for(o in e)if(i=e[o],h(s,o)&&void 0!==i){if("boolean"===r[o].type&&"boolean"==typeof i)r[o].value=i;else if("name"===r[o].type&&h(r[o].valueSet,i))r[o].value=i;else if("integer"===r[o].type&&Number.isInteger(i))r[o].value=i;else if("array"===r[o].type){for(l=0;l<i.length;l+=1)if(n=!0,1===i[l].length&&"number"==typeof i[l][0])c.push(String(i[l]-1));else if(i[l].length>1){for(u=0;u<i[l].length;u+=1)"number"!=typeof i[l][u]&&(n=!1);!0===n&&c.push([i[l][0]-1,i[l][1]-1].join(" "))}r[o].value="["+c.join(" ")+"]"}else r[o].value=r[o].defaultValue;r[o].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var e,t=[];for(e in r)!0===r[e].explicitSet&&("name"===r[e].type?t.push("/"+e+" /"+r[e].value):t.push("/"+e+" "+r[e].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this}}(P.API),function(e){var t=function(){var e='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),r=unescape(encodeURIComponent(e)),n=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),o=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),i=unescape(encodeURIComponent("</x:xmpmeta>")),a=r.length+n.length+o.length+t.length+i.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+a+" >>"),this.internal.write("stream"),this.internal.write(t+r+n+o+i),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(e,n){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:e,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",t)),this}}(P.API),function(e){var t=e.API,r=t.pdfEscape16=function(e,t){for(var r,n=t.metadata.Unicode.widths,o=["","0","00","000","0000"],i=[""],a=0,s=e.length;a<s;++a){if(r=t.metadata.characterToGlyph(e.charCodeAt(a)),t.metadata.glyIdsUsed.push(r),t.metadata.toUnicode[r]=e.charCodeAt(a),-1==n.indexOf(r)&&(n.push(r),n.push([parseInt(t.metadata.widthOfGlyph(r),10)])),"0"==r)return i.join("");r=r.toString(16),i.push(o[4-r.length],r)}return i.join("")},n=function(e){var t,r,n,o,i,a,s;for(i="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",n=[],a=0,s=(r=Object.keys(e).sort((function(e,t){return e-t}))).length;a<s;a++)t=r[a],n.length>=100&&(i+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar",n=[]),void 0!==e[t]&&null!==e[t]&&"function"==typeof e[t].toString&&(o=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),n.push("<"+t+"><"+o+">"));return n.length&&(i+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar\n"),i+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var r=t.font,o=t.out,i=t.newObject,a=t.putStream,s=t.pdfEscapeWithNeededParanthesis;if(r.metadata instanceof e.API.TTFFont&&"Identity-H"===r.encoding){for(var c=r.metadata.Unicode.widths,l=r.metadata.subset.encode(r.metadata.glyIdsUsed,1),u="",f=0;f<l.length;f++)u+=String.fromCharCode(l[f]);var h=i();a({data:u,addLength1:!0,objectId:h}),o("endobj");var d=i();a({data:n(r.metadata.toUnicode),addLength1:!0,objectId:d}),o("endobj");var p=i();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+s(r.fontName)),o("/FontFile2 "+h+" 0 R"),o("/FontBBox "+e.API.PDFObject.convert(r.metadata.bbox)),o("/Flags "+r.metadata.flags),o("/StemV "+r.metadata.stemV),o("/ItalicAngle "+r.metadata.italicAngle),o("/Ascent "+r.metadata.ascender),o("/Descent "+r.metadata.decender),o("/CapHeight "+r.metadata.capHeight),o(">>"),o("endobj");var g=i();o("<<"),o("/Type /Font"),o("/BaseFont /"+s(r.fontName)),o("/FontDescriptor "+p+" 0 R"),o("/W "+e.API.PDFObject.convert(c)),o("/CIDToGIDMap /Identity"),o("/DW 1000"),o("/Subtype /CIDFontType2"),o("/CIDSystemInfo"),o("<<"),o("/Supplement 0"),o("/Registry (Adobe)"),o("/Ordering ("+r.encoding+")"),o(">>"),o(">>"),o("endobj"),r.objectNumber=i(),o("<<"),o("/Type /Font"),o("/Subtype /Type0"),o("/ToUnicode "+d+" 0 R"),o("/BaseFont /"+s(r.fontName)),o("/Encoding /"+r.encoding),o("/DescendantFonts ["+g+" 0 R]"),o(">>"),o("endobj"),r.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var r=t.font,o=t.out,i=t.newObject,a=t.putStream,s=t.pdfEscapeWithNeededParanthesis;if(r.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===r.encoding){for(var c=r.metadata.rawData,l="",u=0;u<c.length;u++)l+=String.fromCharCode(c[u]);var f=i();a({data:l,addLength1:!0,objectId:f}),o("endobj");var h=i();a({data:n(r.metadata.toUnicode),addLength1:!0,objectId:h}),o("endobj");var d=i();o("<<"),o("/Descent "+r.metadata.decender),o("/CapHeight "+r.metadata.capHeight),o("/StemV "+r.metadata.stemV),o("/Type /FontDescriptor"),o("/FontFile2 "+f+" 0 R"),o("/Flags 96"),o("/FontBBox "+e.API.PDFObject.convert(r.metadata.bbox)),o("/FontName /"+s(r.fontName)),o("/ItalicAngle "+r.metadata.italicAngle),o("/Ascent "+r.metadata.ascender),o(">>"),o("endobj"),r.objectNumber=i();for(var p=0;p<r.metadata.hmtx.widths.length;p++)r.metadata.hmtx.widths[p]=parseInt(r.metadata.hmtx.widths[p]*(1e3/r.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+h+" 0 R/BaseFont/"+s(r.fontName)+"/FontDescriptor "+d+" 0 R/Encoding/"+r.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(r.metadata.hmtx.widths)+">>"),o("endobj"),r.isAlreadyPutted=!0}}(t)}]);var o=function(e){var t,n=e.text||"",o=e.x,i=e.y,a=e.options||{},s=e.mutex||{},c=s.pdfEscape,l=s.activeFontKey,u=s.fonts,f=l,h="",d=0,p="",g=u[f].encoding;if("Identity-H"!==u[f].encoding)return{text:n,x:o,y:i,options:a,mutex:s};for(p=n,f=l,Array.isArray(n)&&(p=n[0]),d=0;d<p.length;d+=1)u[f].metadata.hasOwnProperty("cmap")&&(t=u[f].metadata.cmap.unicode.codeMap[p[d].charCodeAt(0)]),t||p[d].charCodeAt(0)<256&&u[f].metadata.hasOwnProperty("Unicode")?h+=p[d]:h+="";var m="";return parseInt(f.slice(1))<14||"WinAnsiEncoding"===g?m=c(h,f).split("").map((function(e){return e.charCodeAt(0).toString(16)})).join(""):"Identity-H"===g&&(m=r(h,u[f])),s.isHex=!0,{text:m,x:o,y:i,options:a,mutex:s}};t.events.push(["postProcessText",function(e){var t=e.text||"",r=[],n={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var i=0;for(i=0;i<t.length;i+=1)Array.isArray(t[i])&&3===t[i].length?r.push([o(Object.assign({},n,{text:t[i][0]})).text,t[i][1],t[i][2]]):r.push(o(Object.assign({},n,{text:t[i]})).text);e.text=r}else e.text=o(Object.assign({},n,{text:t})).text}])}(P),function(e){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]},e.addFileToVFS=function(e,r){return t.call(this),this.internal.vFS[e]=r,this},e.getFileFromVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null}}(P.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var r,n,o,i,a,s,c,l=t,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],f=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],h={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,v=0;this.__bidiEngine__={};var b=function(e){var t=e.charCodeAt(),r=t>>8,n=d[r];return void 0!==n?l[256*n+(255&t)]:252===r||253===r?"AL":g.test(r)?"L":8===r?"R":"N"},y=function(e){for(var t,r=0;r<e.length;r++){if("L"===(t=b(e.charAt(r))))return!1;if("R"===t)return!0}return!1},w=function(e,t,a,s){var c,l,u,f,h=t[s];switch(h){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"N":case"AN":break;case"EN":m&&(h="AN");break;case"AL":m=!0,h="R";break;case"WS":case"BN":h="N";break;case"CS":s<1||s+1>=t.length||"EN"!==(c=a[s-1])&&"AN"!==c||"EN"!==(l=t[s+1])&&"AN"!==l?h="N":m&&(l="AN"),h=l===c?l:"N";break;case"ES":h="EN"===(c=s>0?a[s-1]:"B")&&s+1<t.length&&"EN"===t[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===a[s-1]){h="EN";break}if(m){h="N";break}for(u=s+1,f=t.length;u<f&&"ET"===t[u];)u++;h=u<f&&"EN"===t[u]?"EN":"N";break;case"NSM":if(o&&!i){for(f=t.length,u=s+1;u<f&&"NSM"===t[u];)u++;if(u<f){var d=e[s],p=d>=1425&&d<=2303||64286===d;if(c=t[u],p&&("R"===c||"AL"===c)){h="R";break}}}h=s<1||"B"===(c=t[s-1])?"N":a[s-1];break;case"B":m=!1,r=!0,h=v;break;case"S":n=!0,h="N"}return h},S=function(e,t,r){var n=e.split("");return r&&x(n,r,{hiLevel:v}),n.reverse(),t&&t.reverse(),n.join("")},x=function(e,t,o){var i,a,s,c,l,d=-1,p=e.length,g=0,y=[],S=v?f:u,x=[];for(m=!1,r=!1,n=!1,a=0;a<p;a++)x[a]=b(e[a]);for(s=0;s<p;s++){if(l=g,y[s]=w(e,x,y,s),i=240&(g=S[l][h[y[s]]]),g&=15,t[s]=c=S[g][5],i>0)if(16===i){for(a=d;a<s;a++)t[a]=1;d=-1}else d=-1;if(S[g][6])-1===d&&(d=s);else if(d>-1){for(a=d;a<s;a++)t[a]=c;d=-1}"B"===x[s]&&(t[s]=0),o.hiLevel|=c}n&&function(e,t,r){for(var n=0;n<r;n++)if("S"===e[n]){t[n]=v;for(var o=n-1;o>=0&&"WS"===e[o];o--)t[o]=v}}(x,t,p)},A=function(e,t,n,o,i){if(!(i.hiLevel<e)){if(1===e&&1===v&&!r)return t.reverse(),void(n&&n.reverse());for(var a,s,c,l,u=t.length,f=0;f<u;){if(o[f]>=e){for(c=f+1;c<u&&o[c]>=e;)c++;for(l=f,s=c-1;l<s;l++,s--)a=t[l],t[l]=t[s],t[s]=a,n&&(a=n[l],n[l]=n[s],n[s]=a);f=c}f++}}},k=function(e,t,r){var n=e.split(""),o={hiLevel:v};return r||(r=[]),x(n,r,o),function(e,t,r){if(0!==r.hiLevel&&c)for(var n,o=0;o<e.length;o++)1===t[o]&&(n=p.indexOf(e[o]))>=0&&(e[o]=p[n+1])}(n,r,o),A(2,n,t,r,o),A(1,n,t,r,o),n.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,r){if(function(e,t){if(t)for(var r=0;r<e.length;r++)t[r]=r;void 0===i&&(i=y(e)),void 0===s&&(s=y(e))}(e,t),o||!a||s)if(o&&a&&i^s)v=i?1:0,e=S(e,t,r);else if(!o&&a&&s)v=i?1:0,e=k(e,t,r),e=S(e,t);else if(!o||i||a||s){if(o&&!a&&i^s)e=S(e,t),i?(v=0,e=k(e,t,r)):(v=1,e=k(e,t,r),e=S(e,t));else if(o&&i&&!a&&s)v=1,e=k(e,t,r),e=S(e,t);else if(!o&&!a&&i^s){var n=c;i?(v=1,e=k(e,t,r),v=0,c=!1,e=k(e,t,r),c=n):(v=0,e=k(e,t,r),e=S(e,t),v=1,c=!1,e=k(e,t,r),c=n,e=S(e,t))}}else v=0,e=k(e,t,r);else v=i?1:0,e=k(e,t,r);return e},this.__bidiEngine__.setOptions=function(e){e&&(o=e.isInputVisual,a=e.isOutputVisual,i=e.isInputRtl,s=e.isOutputRtl,c=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text,n=(e.x,e.y,e.options||{}),o=(e.mutex,n.lang,[]);if(n.isInputVisual="boolean"!=typeof n.isInputVisual||n.isInputVisual,r.setOptions(n),"[object Array]"===Object.prototype.toString.call(t)){var i=0;for(o=[],i=0;i<t.length;i+=1)"[object Array]"===Object.prototype.toString.call(t[i])?o.push([r.doBidiReorder(t[i][0]),t[i][1],t[i][2]]):o.push([r.doBidiReorder(t[i])]);e.text=o}else e.text=r.doBidiReorder(t);r.setOptions({isInputVisual:!0})}])}(P),P.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new Pt(e),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new Jt(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new Lt(this.contents),this.head=new jt(this),this.name=new zt(this),this.cmap=new Mt(this),this.toUnicode={},this.hhea=new Bt(this),this.maxp=new Vt(this),this.hmtx=new qt(this),this.post=new Ut(this),this.os2=new Wt(this),this.loca=new Kt(this),this.glyf=new Gt(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,r,n,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,r,n,o;for(o=[],t=0,r=(n=this.bbox).length;t<r;t++)e=n[t],o.push(Math.round(e*this.scaleFactor));return o}.call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),0!=(32768&(t=n>>16))&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(o=this.familyClass)||2===o||3===o||4===o||5===o||7===o,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,r){var n,o,i,a;for(i=0,o=0,a=(e=""+e).length;0<=a?o<a:o>a;o=0<=a?++o:--o)n=e.charCodeAt(o),i+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/t)||0;return i*(t/1e3)},e.prototype.lineHeight=function(e,t){var r;return null==t&&(t=!1),r=t?this.lineGap:0,(this.ascender+r-this.decender)/1e3*e},e}();var Rt,Pt=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)r[t]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(e){var t,r,n;for(n=[],t=0,r=e.length;0<=r?t<r:t>r;t=0<=r?++t:--t)n.push(this.writeByte(e.charCodeAt(t)));return n},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,r,n,o,i,a,s;return e=this.readByte(),t=this.readByte(),r=this.readByte(),n=this.readByte(),o=this.readByte(),i=this.readByte(),a=this.readByte(),s=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^o)+65536*(255^i)+256*(255^a)+(255^s)+1):72057594037927940*e+281474976710656*t+1099511627776*r+4294967296*n+16777216*o+65536*i+256*a+s},e.prototype.writeLongLong=function(e){var t,r;return t=Math.floor(e/4294967296),r=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,r;for(t=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)t.push(this.readByte());return t},e.prototype.write=function(e){var t,r,n,o;for(o=[],r=0,n=e.length;r<n;r++)t=e[r],o.push(this.writeByte(t));return o},e}(),Lt=function(){var e;function t(e){var t,r,n;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},r=0,n=this.tableCount;0<=n?r<n:r>n;r=0<=n?++r:--r)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var r,n,o,i,a,s,c,l,u,f,h,d,p;for(p in h=Object.keys(t).length,s=Math.log(2),u=16*Math.floor(Math.log(h)/s),i=Math.floor(u/s),l=16*h-u,(n=new Pt).writeInt(this.scalarType),n.writeShort(h),n.writeShort(u),n.writeShort(i),n.writeShort(l),o=16*h,c=n.pos+o,a=null,d=[],t)for(f=t[p],n.writeString(p),n.writeInt(e(f)),n.writeInt(c),n.writeInt(f.length),d=d.concat(f),"head"===p&&(a=c),c+=f.length;c%4;)d.push(0),c++;return n.write(d),r=2981146554-e(n.data),n.pos=a+8,n.writeUInt32(r),n.data},e=function(e){var t,r,n,o;for(e=$t.call(e);e.length%4;)e.push(0);for(n=new Pt(e),r=0,t=0,o=e.length;t<o;t=t+=4)r+=n.readUInt32();return 4294967295&r},t}(),It={}.hasOwnProperty,Ft=function(e,t){for(var r in t)It.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},jt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ft(t,e),t.prototype.tag="head",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},t.prototype.encode=function(e){var t;return(t=new Pt).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},t}(Rt=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}()),Dt=function(){function e(e,t){var r,n,o,i,a,s,c,l,u,f,h,d,p,g,m,v,b;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),u=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=e.readByte();break;case 4:for(h=e.readUInt16(),f=h/2,e.pos+=6,o=function(){var t,r;for(r=[],s=t=0;0<=f?t<f:t>f;s=0<=f?++t:--t)r.push(e.readUInt16());return r}(),e.pos+=2,p=function(){var t,r;for(r=[],s=t=0;0<=f?t<f:t>f;s=0<=f?++t:--t)r.push(e.readUInt16());return r}(),c=function(){var t,r;for(r=[],s=t=0;0<=f?t<f:t>f;s=0<=f?++t:--t)r.push(e.readUInt16());return r}(),l=function(){var t,r;for(r=[],s=t=0;0<=f?t<f:t>f;s=0<=f?++t:--t)r.push(e.readUInt16());return r}(),n=(this.length-e.pos+this.offset)/2,a=function(){var t,r;for(r=[],s=t=0;0<=n?t<n:t>n;s=0<=n?++t:--t)r.push(e.readUInt16());return r}(),s=m=0,b=o.length;m<b;s=++m)for(g=o[s],r=v=d=p[s];d<=g?v<=g:v>=g;r=d<=g?++v:--v)0===l[s]?i=r+c[s]:0!==(i=a[l[s]/2+(r-d)-(f-s)]||0)&&(i+=c[s]),this.codeMap[r]=65535&i}e.pos=u}return e.encode=function(e,t){var r,n,o,i,a,s,c,l,u,f,h,d,p,g,m,v,b,y,w,S,x,A,k,T,E,_,O,N,C,R,P,L,I,F,j,D,M,B,W,U,H,z,V,q,$,G;switch(N=new Pt,i=Object.keys(e).sort((function(e,t){return e-t})),t){case"macroman":for(p=0,g=function(){var e=[];for(d=0;d<256;++d)e.push(0);return e}(),v={0:0},o={},C=0,I=i.length;C<I;C++)null==v[V=e[n=i[C]]]&&(v[V]=++p),o[n]={old:e[n],new:v[e[n]]},g[n]=v[e[n]];return N.writeUInt16(1),N.writeUInt16(0),N.writeUInt32(12),N.writeUInt16(0),N.writeUInt16(262),N.writeUInt16(0),N.write(g),{charMap:o,subtable:N.data,maxGlyphID:p+1};case"unicode":for(_=[],u=[],b=0,v={},r={},m=c=null,R=0,F=i.length;R<F;R++)null==v[w=e[n=i[R]]]&&(v[w]=++b),r[n]={old:w,new:v[w]},a=v[w]-n,null!=m&&a===c||(m&&u.push(m),_.push(n),c=a),m=n;for(m&&u.push(m),u.push(65535),_.push(65535),T=2*(k=_.length),A=2*Math.pow(Math.log(k)/Math.LN2,2),f=Math.log(A/2)/Math.LN2,x=2*k-A,s=[],S=[],h=[],d=P=0,j=_.length;P<j;d=++P){if(E=_[d],l=u[d],65535===E){s.push(0),S.push(0);break}if(E-(O=r[E].new)>=32768)for(s.push(0),S.push(2*(h.length+k-d)),n=L=E;E<=l?L<=l:L>=l;n=E<=l?++L:--L)h.push(r[n].new);else s.push(O-E),S.push(0)}for(N.writeUInt16(3),N.writeUInt16(1),N.writeUInt32(12),N.writeUInt16(4),N.writeUInt16(16+8*k+2*h.length),N.writeUInt16(0),N.writeUInt16(T),N.writeUInt16(A),N.writeUInt16(f),N.writeUInt16(x),H=0,D=u.length;H<D;H++)n=u[H],N.writeUInt16(n);for(N.writeUInt16(0),z=0,M=_.length;z<M;z++)n=_[z],N.writeUInt16(n);for(q=0,B=s.length;q<B;q++)a=s[q],N.writeUInt16(a);for($=0,W=S.length;$<W;$++)y=S[$],N.writeUInt16(y);for(G=0,U=h.length;G<U;G++)p=h[G],N.writeUInt16(p);return{charMap:r,subtable:N.data,maxGlyphID:b+1}}},e}(),Mt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ft(t,e),t.prototype.tag="cmap",t.prototype.parse=function(e){var t,r,n;for(e.pos=this.offset,this.version=e.readUInt16(),n=e.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)t=new Dt(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},t.encode=function(e,t){var r,n;return null==t&&(t="macroman"),r=Dt.encode(e,t),(n=new Pt).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},t}(Rt),Bt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ft(t,e),t.prototype.tag="hhea",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},t}(Rt),Wt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ft(t,e),t.prototype.tag="OS/2",t.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,r;for(r=[],t=0;t<10;++t)r.push(e.readByte());return r}(),this.charRange=function(){var t,r;for(r=[],t=0;t<4;++t)r.push(e.readInt());return r}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,r;for(r=[],t=0;t<2;t=++t)r.push(e.readInt());return r}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},t}(Rt),Ut=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ft(t,e),t.prototype.tag="post",t.prototype.parse=function(e){var t,r,n;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var o;for(r=e.readUInt16(),this.glyphNameIndex=[],o=0;0<=r?o<r:o>r;o=0<=r?++o:--o)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],n=[];e.pos<this.offset+this.length;)t=e.readByte(),n.push(this.names.push(e.readString(t)));return n;case 151552:return r=e.readUInt16(),this.offsets=e.read(r);case 262144:return this.map=function(){var t,r,n;for(n=[],o=t=0,r=this.file.maxp.numGlyphs;0<=r?t<r:t>r;o=0<=r?++t:--t)n.push(e.readUInt32());return n}.call(this)}},t}(Rt),Ht=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},zt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ft(t,e),t.prototype.tag="name",t.prototype.parse=function(e){var t,r,n,o,i,a,s,c,l,u,f;for(e.pos=this.offset,e.readShort(),t=e.readShort(),a=e.readShort(),r=[],o=0;0<=t?o<t:o>t;o=0<=t?++o:--o)r.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+a+e.readShort()});for(s={},o=l=0,u=r.length;l<u;o=++l)n=r[o],e.pos=n.offset,c=e.readString(n.length),i=new Ht(c,n),null==s[f=n.nameID]&&(s[f]=[]),s[n.nameID].push(i);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(e){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},t}(Rt),Vt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ft(t,e),t.prototype.tag="maxp",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},t}(Rt),qt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ft(t,e),t.prototype.tag="hmtx",t.prototype.parse=function(e){var t,r,n,o,i,a,s;for(e.pos=this.offset,this.metrics=[],t=0,a=this.file.hhea.numberOfMetrics;0<=a?t<a:t>a;t=0<=a?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var r,o;for(o=[],t=r=0;0<=n?r<n:r>n;t=0<=n?++r:--r)o.push(e.readInt16());return o}(),this.widths=function(){var e,t,r,n;for(n=[],e=0,t=(r=this.metrics).length;e<t;e++)o=r[e],n.push(o.advance);return n}.call(this),r=this.widths[this.widths.length-1],s=[],t=i=0;0<=n?i<n:i>n;t=0<=n?++i:--i)s.push(this.widths.push(r));return s},t.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},t}(Rt),$t=[].slice,Gt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ft(t,e),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(e){var t,r,n,o,i,a,s,c,l,u;return e in this.cache?this.cache[e]:(o=this.file.loca,t=this.file.contents,r=o.indexOf(e),0===(n=o.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+r,i=(a=new Pt(t.read(n))).readShort(),c=a.readShort(),u=a.readShort(),s=a.readShort(),l=a.readShort(),this.cache[e]=-1===i?new Yt(a,c,u,s,l):new Xt(a,i,c,u,s,l),this.cache[e]))},t.prototype.encode=function(e,t,r){var n,o,i,a,s;for(i=[],o=[],a=0,s=t.length;a<s;a++)n=e[t[a]],o.push(i.length),n&&(i=i.concat(n.encode(r)));return o.push(i.length),{table:i,offsets:o}},t}(Rt),Xt=function(){function e(e,t,r,n,o,i){this.raw=e,this.numberOfContours=t,this.xMin=r,this.yMin=n,this.xMax=o,this.yMax=i,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),Yt=function(){function e(e,t,r,n,o){var i,a;for(this.raw=e,this.xMin=t,this.yMin=r,this.xMax=n,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;a=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&a;)i.pos+=1&a?4:2,128&a?i.pos+=8:64&a?i.pos+=4:8&a&&(i.pos+=2)}return e.prototype.encode=function(){var e,t,r;for(t=new Pt($t.call(this.raw.data)),e=0,r=this.glyphIDs.length;e<r;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),Kt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ft(t,e),t.prototype.tag="loca",t.prototype.parse=function(e){var t,r;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,n;for(n=[],r=0,t=this.length;r<t;r+=2)n.push(2*e.readUInt16());return n}.call(this):function(){var t,n;for(n=[],r=0,t=this.length;r<t;r+=4)n.push(e.readUInt32());return n}.call(this)},t.prototype.indexOf=function(e){return this.offsets[e]},t.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},t.prototype.encode=function(e,t){for(var r=new Uint32Array(this.offsets.length),n=0,o=0,i=0;i<r.length;++i)if(r[i]=n,o<t.length&&t[o]==i){++o,r[i]=n;var a=this.offsets[i],s=this.offsets[i+1]-a;s>0&&(n+=s)}for(var c=new Array(4*r.length),l=0;l<r.length;++l)c[4*l+3]=255&r[l],c[4*l+2]=(65280&r[l])>>8,c[4*l+1]=(16711680&r[l])>>16,c[4*l]=(4278190080&r[l])>>24;return c},t}(Rt),Jt=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,r,n,o;for(t in n=this.font.cmap.tables[0].codeMap,e={},o=this.subset)r=o[t],e[t]=n[r];return e},e.prototype.glyphsFor=function(e){var t,r,n,o,i,a,s;for(n={},i=0,a=e.length;i<a;i++)n[o=e[i]]=this.font.glyf.glyphFor(o);for(o in t=[],n)(null!=(r=n[o])?r.compound:void 0)&&t.push.apply(t,r.glyphIDs);if(t.length>0)for(o in s=this.glyphsFor(t))r=s[o],n[o]=r;return n},e.prototype.encode=function(e,t){var r,n,o,i,a,s,c,l,u,f,h,d,p,g,m;for(n in r=Mt.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(e),h={0:0},m=r.charMap)h[(s=m[n]).old]=s.new;for(d in f=r.maxGlyphID,i)d in h||(h[d]=f++);return l=function(e){var t,r;for(t in r={},e)r[e[t]]=t;return r}(h),u=Object.keys(l).sort((function(e,t){return e-t})),p=function(){var e,t,r;for(r=[],e=0,t=u.length;e<t;e++)a=u[e],r.push(l[a]);return r}(),o=this.font.glyf.encode(i,p,h),c=this.font.loca.encode(o.offsets,p),g={cmap:this.font.cmap.raw(),glyf:o.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},e}();P.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(r){var n,o,i,a;if(Array.isArray(r))return"["+function(){var e,o,i;for(i=[],e=0,o=r.length;e<o;e++)n=r[e],i.push(t.convert(n));return i}().join(" ")+"]";if("string"==typeof r)return"/"+r;if(null!=r?r.isString:void 0)return"("+r+")";if(r instanceof Date)return"(D:"+e(r.getUTCFullYear(),4)+e(r.getUTCMonth(),2)+e(r.getUTCDate(),2)+e(r.getUTCHours(),2)+e(r.getUTCMinutes(),2)+e(r.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(r)){for(o in i=["<<"],r)a=r[o],i.push("/"+o+" "+t.convert(a));return i.push(">>"),i.join("\n")}return""+r},t}(),e.AcroForm=ye,e.AcroFormAppearance=ve,e.AcroFormButton=ue,e.AcroFormCheckBox=pe,e.AcroFormChoiceField=ae,e.AcroFormComboBox=ce,e.AcroFormEditBox=le,e.AcroFormListBox=se,e.AcroFormPasswordField=me,e.AcroFormPushButton=fe,e.AcroFormRadioButton=he,e.AcroFormTextField=ge,e.GState=O,e.ShadingPattern=C,e.TilingPattern=R,e.default=P,e.jsPDF=P,Object.defineProperty(e,"__esModule",{value:!0})}));var saveAs=saveAs||function(e){"use strict";if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=e.document,r=function(){return e.URL||e.webkitURL||e},n=t.createElementNS("http://www.w3.org/1999/xhtml","a"),o="download"in n,i=/constructor/i.test(e.HTMLElement)||e.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent),s=function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)},c=function(e){setTimeout((function(){"string"==typeof e?r().revokeObjectURL(e):e.remove()}),4e4)},l=function(e,t,r){for(var n=(t=[].concat(t)).length;n--;){var o=e["on"+t[n]];if("function"==typeof o)try{o.call(e,r||e)}catch(e){s(e)}}},u=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},f=function(t,s,f){f||(t=u(t));var h,d=this,p="application/octet-stream"===t.type,g=function(){l(d,"writestart progress write writeend".split(" "))};if(d.readyState=d.INIT,o)return h=r().createObjectURL(t),void setTimeout((function(){n.href=h,n.download=s,function(e){var t=new MouseEvent("click");e.dispatchEvent(t)}(n),g(),c(h),d.readyState=d.DONE}));!function(){if((a||p&&i)&&e.FileReader){var n=new FileReader;return n.onloadend=function(){var t=a?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,d.readyState=d.DONE,g()},n.readAsDataURL(t),void(d.readyState=d.INIT)}(h||(h=r().createObjectURL(t)),p)?e.location.href=h:e.open(h,"_blank")||(e.location.href=h);d.readyState=d.DONE,g(),c(h)}()},h=f.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||"download",r||(e=u(e)),navigator.msSaveOrOpenBlob(e,t)}:(h.abort=function(){},h.readyState=h.INIT=0,h.WRITING=1,h.DONE=2,h.error=h.onwritestart=h.onprogress=h.onwrite=h.onabort=h.onerror=h.onwriteend=null,function(e,t,r){return new f(e,t||e.name||"download",r)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=saveAs:"undefined"!=typeof define&&null!==define&&null!==define.amd&&define("FileSaver.js",(function(){return saveAs}));var XLSX={};function make_xlsx_lib(e){e.version="0.18.5";var t,r=1200,n=1252;"undefined"!=typeof cptable?t=cptable:"undefined"!=typeof module&&"undefined"!=typeof require&&(t=void 0);var o=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],i={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},a=function(e){-1!=o.indexOf(e)&&(n=i[0]=e)};var s=function(e){r=e,a(e)};function c(){s(1200),a(1252)}function l(e){for(var t=[],r=0,n=e.length;r<n;++r)t[r]=e.charCodeAt(r);return t}function u(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var f=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return 255==t&&254==r?function(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}(e.slice(2)):254==t&&255==r?u(e.slice(2)):65279==t?e.slice(1):e},h=function(e){return String.fromCharCode(e)},d=function(e){return String.fromCharCode(e)};void 0!==t&&(s=function(e){r=e,a(e)},f=function(e){return 255===e.charCodeAt(0)&&254===e.charCodeAt(1)?t.utils.decode(1200,l(e.slice(2))):e},h=function(e){return 1200===r?String.fromCharCode(e):t.utils.decode(r,[255&e,e>>8])[0]},d=function(e){return t.utils.decode(n,[e])[0]});var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function g(e){for(var t="",r=0,n=0,o=0,i=0,a=0,s=0,c=0,l=0;l<e.length;)i=(r=e.charCodeAt(l++))>>2,a=(3&r)<<4|(n=e.charCodeAt(l++))>>4,s=(15&n)<<2|(o=e.charCodeAt(l++))>>6,c=63&o,isNaN(n)?s=c=64:isNaN(o)&&(c=64),t+=p.charAt(i)+p.charAt(a)+p.charAt(s)+p.charAt(c);return t}function m(e){var t="",r=0,n=0,o=0,i=0,a=0,s=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<e.length;)r=p.indexOf(e.charAt(c++))<<2|(i=p.indexOf(e.charAt(c++)))>>4,t+=String.fromCharCode(r),n=(15&i)<<4|(a=p.indexOf(e.charAt(c++)))>>2,64!==a&&(t+=String.fromCharCode(n)),o=(3&a)<<6|(s=p.indexOf(e.charAt(c++))),64!==s&&(t+=String.fromCharCode(o));return t}var v="undefined"!=typeof Buffer&&!1,b=function(){if("undefined"!=typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function y(e){return v?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function w(e){return v?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var S=function(e){return v?b(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function x(e){if("undefined"==typeof ArrayBuffer)return S(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=255&e.charCodeAt(n);return t}function A(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function k(e){if("undefined"==typeof ArrayBuffer)throw new Error("Unsupported");if(e instanceof ArrayBuffer)return k(new Uint8Array(e));for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t}var T=v?function(e){return Buffer.concat(e.map((function(e){return Buffer.isBuffer(e)?e:b(e)})))}:function(e){if("undefined"!=typeof Uint8Array){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),o=0;for(t=0,r=0;t<e.length;r+=o,++t)if(o=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if("string"==typeof e[t])throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map((function(e){return Array.isArray(e)?e:[].slice.call(e)})))};var E=/\u0000/g,_=/[\u0001-\u0006]/g;function O(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function N(e,t){var r=""+e;return r.length>=t?r:qe("0",t-r.length)+r}function C(e,t){var r=""+e;return r.length>=t?r:qe(" ",t-r.length)+r}function R(e,t){var r=""+e;return r.length>=t?r:r+qe(" ",t-r.length)}var P=Math.pow(2,32);function L(e,t){return e>P||e<-P?function(e,t){var r=""+Math.round(e);return r.length>=t?r:qe("0",t-r.length)+r}(e,t):function(e,t){var r=""+e;return r.length>=t?r:qe("0",t-r.length)+r}(Math.round(e),t)}function I(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var F=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],j=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];var D={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},M={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},B={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function W(e,t,r){for(var n=e<0?-1:1,o=e*n,i=0,a=1,s=0,c=1,l=0,u=0,f=Math.floor(o);l<t&&(s=(f=Math.floor(o))*a+i,u=f*l+c,!(o-f<5e-8));)o=1/(o-f),i=a,a=s,c=l,l=u;if(u>t&&(l>t?(u=c,s=i):(u=l,s=a)),!r)return[0,n*s,u];var h=Math.floor(n*s/u);return[h,n*s-h*u,u]}function U(e,t,r){if(e>2958465||e<0)return null;var n=0|e,o=Math.floor(86400*(e-n)),i=0,a=[],s={D:n,T:o,u:86400*(e-n)-o,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(n+=1462),s.u>.9999&&(s.u=0,86400==++o&&(s.T=o=0,++n,++s.D)),60===n)a=r?[1317,10,29]:[1900,2,29],i=3;else if(0===n)a=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var c=new Date(1900,0,1);c.setDate(c.getDate()+n-1),a=[c.getFullYear(),c.getMonth()+1,c.getDate()],i=c.getDay(),n<60&&(i=(i+6)%7),r&&(i=function(e,t){t[0]-=581;var r=e.getDay();e<60&&(r=(r+6)%7);return r}(c,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=o%60,o=Math.floor(o/60),s.M=o%60,o=Math.floor(o/60),s.H=o,s.q=i,s}var H=new Date(1899,11,31,0,0,0),z=H.getTime(),V=new Date(1900,2,1,0,0,0);function q(e,t){var r=e.getTime();return t?r-=1262304e5:e>=V&&(r+=864e5),(r-(z+6e4*(e.getTimezoneOffset()-H.getTimezoneOffset())))/864e5}function G(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function X(e){var t,r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=r>=-4&&r<=-1?e.toPrecision(10+r):Math.abs(r)<=9?function(e){var t=e<0?12:11,r=G(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10)).length<=t?r:e.toExponential(5)}(e):10===r?e.toFixed(10).substr(0,12):function(e){var t=G(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),G(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}function Y(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):X(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return me(14,q(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function K(e,t,r,n){var o,i="",a=0,s=0,c=r.y,l=0;switch(e){case 98:c=r.y+543;case 121:switch(t.length){case 1:case 2:o=c%100,l=2;break;default:o=c%1e4,l=4}break;case 109:switch(t.length){case 1:case 2:o=r.m,l=t.length;break;case 3:return j[r.m-1][1];case 5:return j[r.m-1][0];default:return j[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=r.d,l=t.length;break;case 3:return F[r.q][0];default:return F[r.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(r.H+11)%12,l=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=r.H,l=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=r.M,l=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==r.u||"s"!=t&&"ss"!=t?(s=n>=2?3===n?1e3:100:1===n?10:1,(a=Math.round(s*(r.S+r.u)))>=60*s&&(a=0),"s"===t?0===a?"0":""+a/s:(i=N(a,2+n),"ss"===t?i.substr(0,2):"."+i.substr(2,t.length-1))):N(r.S,t.length);case 90:switch(t){case"[h]":case"[hh]":o=24*r.D+r.H;break;case"[m]":case"[mm]":o=60*(24*r.D+r.H)+r.M;break;case"[s]":case"[ss]":o=60*(60*(24*r.D+r.H)+r.M)+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}l=3===t.length?1:2;break;case 101:o=c,l=1}return l>0?N(o,l):""}function J(e){if(e.length<=3)return e;for(var t=e.length%3,r=e.substr(0,t);t!=e.length;t+=3)r+=(r.length>0?",":"")+e.substr(t,3);return r}var Z=/%/g;function Q(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+Q(e,-t);var o=e.indexOf(".");-1===o&&(o=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%o;if(i<0&&(i+=o),-1===(r=(t/Math.pow(10,i)).toPrecision(n+1+(o+i)%o)).indexOf("e")){var a=Math.floor(Math.log(t)*Math.LOG10E);for(-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(a-r.length+i):r+="E+"+(a-i);"0."===r.substr(0,2);)r=(r=r.charAt(0)+r.substr(2,o)+"."+r.substr(2+o)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,r,n){return t+r+n.substr(0,(o+i)%o)+"."+n.substr(i)+"E"}))}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var ee=/# (\?+)( ?)\/( ?)(\d+)/;var te=/^#*0*\.([0#]+)/,re=/\).*[0#]/,ne=/\(###\) ###\\?-####/;function oe(e){for(var t,r="",n=0;n!=e.length;++n)switch(t=e.charCodeAt(n)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function ie(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function ae(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function se(e,t,r){if(40===e.charCodeAt(0)&&!t.match(re)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?se("n",n,r):"("+se("n",n,-r)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,r){for(var n=t.length-1;44===t.charCodeAt(n-1);)--n;return ue(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}(e,t,r);if(-1!==t.indexOf("%"))return function(e,t,r){var n=t.replace(Z,""),o=t.length-n.length;return ue(e,n,r*Math.pow(10,2*o))+qe("%",o)}(e,t,r);if(-1!==t.indexOf("E"))return Q(t,r);if(36===t.charCodeAt(0))return"$"+se(e,t.substr(" "==t.charAt(1)?2:1),r);var o,i,a,s,c=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+L(c,t.length);if(t.match(/^[#?]+$/))return"0"===(o=L(r,0))&&(o=""),o.length>t.length?o:oe(t.substr(0,t.length-o.length))+o;if(i=t.match(ee))return function(e,t,r){var n=parseInt(e[4],10),o=Math.round(t*n),i=Math.floor(o/n),a=o-i*n,s=n;return r+(0===i?"":""+i)+" "+(0===a?qe(" ",e[1].length+1+e[4].length):C(a,e[1].length)+e[2]+"/"+e[3]+N(s,e[4].length))}(i,c,l);if(t.match(/^#+0+$/))return l+L(c,t.length-t.indexOf("0"));if(i=t.match(te))return o=ie(r,i[1].length).replace(/^([^\.]+)$/,"$1."+oe(i[1])).replace(/\.$/,"."+oe(i[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+qe("0",oe(i[1]).length-t.length)})),-1!==t.indexOf("0.")?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return l+ie(c,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return l+J(L(c,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+se(e,t,-r):J(""+(Math.floor(r)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(r,i[1].length)))+"."+N(ae(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return se(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=O(se(e,t.replace(/[\\-]/g,""),r)),a=0,O(O(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return a<o.length?o.charAt(a++):"0"===e?"0":""})));if(t.match(ne))return"("+(o=se(e,"##########",r)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var u="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(i[4].length,7),s=W(c,Math.pow(10,a)-1,!1),o=""+l," "==(u=ue("n",i[1],s[1])).charAt(u.length-1)&&(u=u.substr(0,u.length-1)+"0"),o+=u+i[2]+"/"+i[3],(u=R(s[2],a)).length<i[4].length&&(u=oe(i[4].substr(i[4].length-u.length))+u),o+=u;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(i[1].length,i[4].length),7),l+((s=W(c,Math.pow(10,a)-1,!0))[0]||(s[1]?"":"0"))+" "+(s[1]?C(s[1],a)+i[2]+"/"+i[3]+R(s[2],a):qe(" ",2*a+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return o=L(r,0),t.length<=o.length?o:oe(t.substr(0,t.length-o.length))+o;if(i=t.match(/^([#0?]+)\.([#0]+)$/)){o=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),a=o.indexOf(".");var f=t.indexOf(".")-a,h=t.length-o.length-f;return oe(t.substr(0,f)+o+t.substr(t.length-h))}if(i=t.match(/^00,000\.([#0]*0)$/))return a=ae(r,i[1].length),r<0?"-"+se(e,t,-r):J(function(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?N(0,3-e.length):"")+e}))+"."+N(a,i[1].length);switch(t){case"###,##0.00":return se(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var d=J(L(c,0));return"0"!==d?l+d:"";case"###,###.00":return se(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return se(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function ce(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+ce(e,-t);var o=e.indexOf(".");-1===o&&(o=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%o;if(i<0&&(i+=o),!(r=(t/Math.pow(10,i)).toPrecision(n+1+(o+i)%o)).match(/[Ee]/)){var a=Math.floor(Math.log(t)*Math.LOG10E);-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(a-r.length+i):r+="E+"+(a-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,r,n){return t+r+n.substr(0,(o+i)%o)+"."+n.substr(i)+"E"}))}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function le(e,t,r){if(40===e.charCodeAt(0)&&!t.match(re)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?le("n",n,r):"("+le("n",n,-r)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,r){for(var n=t.length-1;44===t.charCodeAt(n-1);)--n;return ue(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}(e,t,r);if(-1!==t.indexOf("%"))return function(e,t,r){var n=t.replace(Z,""),o=t.length-n.length;return ue(e,n,r*Math.pow(10,2*o))+qe("%",o)}(e,t,r);if(-1!==t.indexOf("E"))return ce(t,r);if(36===t.charCodeAt(0))return"$"+le(e,t.substr(" "==t.charAt(1)?2:1),r);var o,i,a,s,c=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+N(c,t.length);if(t.match(/^[#?]+$/))return o=""+r,0===r&&(o=""),o.length>t.length?o:oe(t.substr(0,t.length-o.length))+o;if(i=t.match(ee))return function(e,t,r){return r+(0===t?"":""+t)+qe(" ",e[1].length+2+e[4].length)}(i,c,l);if(t.match(/^#+0+$/))return l+N(c,t.length-t.indexOf("0"));if(i=t.match(te))return o=(o=(""+r).replace(/^([^\.]+)$/,"$1."+oe(i[1])).replace(/\.$/,"."+oe(i[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+qe("0",oe(i[1]).length-t.length)})),-1!==t.indexOf("0.")?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return l+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return l+J(""+c);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+le(e,t,-r):J(""+r)+"."+qe("0",i[1].length);if(i=t.match(/^#,#*,#0/))return le(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=O(le(e,t.replace(/[\\-]/g,""),r)),a=0,O(O(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return a<o.length?o.charAt(a++):"0"===e?"0":""})));if(t.match(ne))return"("+(o=le(e,"##########",r)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var u="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(i[4].length,7),s=W(c,Math.pow(10,a)-1,!1),o=""+l," "==(u=ue("n",i[1],s[1])).charAt(u.length-1)&&(u=u.substr(0,u.length-1)+"0"),o+=u+i[2]+"/"+i[3],(u=R(s[2],a)).length<i[4].length&&(u=oe(i[4].substr(i[4].length-u.length))+u),o+=u;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(i[1].length,i[4].length),7),l+((s=W(c,Math.pow(10,a)-1,!0))[0]||(s[1]?"":"0"))+" "+(s[1]?C(s[1],a)+i[2]+"/"+i[3]+R(s[2],a):qe(" ",2*a+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return o=""+r,t.length<=o.length?o:oe(t.substr(0,t.length-o.length))+o;if(i=t.match(/^([#0]+)\.([#0]+)$/)){o=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),a=o.indexOf(".");var f=t.indexOf(".")-a,h=t.length-o.length-f;return oe(t.substr(0,f)+o+t.substr(t.length-h))}if(i=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+le(e,t,-r):J(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?N(0,3-e.length):"")+e}))+"."+N(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var d=J(""+c);return"0"!==d?l+d:"";default:if(t.match(/\.[0#?]*$/))return le(e,t.slice(0,t.lastIndexOf(".")),r)+oe(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function ue(e,t,r){return(0|r)===r?le(e,t,r):se(e,t,r)}var fe=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function he(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":I(e,t)&&(t+=6),t++;break;case'"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case"\\":case"_":t+=2;break;case"@":++t;break;case"B":case"b":if("1"===e.charAt(t+1)||"2"===e.charAt(t+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===e.substr(t,3).toUpperCase())return!0;if("AM/PM"===e.substr(t,5).toUpperCase())return!0;if("上午/下午"===e.substr(t,5).toUpperCase())return!0;++t;break;case"[":for(n=r;"]"!==e.charAt(t++)&&t<e.length;)n+=e.charAt(t);if(n.match(fe))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||"\\"==r&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;default:++t}return!1}var de=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function pe(e,t){if(null==t)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0}return!1}function ge(e,t){var r=function(e){for(var t=[],r=!1,n=0,o=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(o,n-o),o=n+1}if(t[t.length]=e.substr(o),!0===r)throw new Error("Format |"+e+"| unterminated string ");return t}(e),n=r.length,o=r[n-1].indexOf("@");if(n<4&&o>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if("number"!=typeof t)return[4,4===r.length||o>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=o>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=o>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=o>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"]}var i=t>0?r[0]:t<0?r[1]:r[2];if(-1===r[0].indexOf("[")&&-1===r[1].indexOf("["))return[n,i];if(null!=r[0].match(/\[[=<>]/)||null!=r[1].match(/\[[=<>]/)){var a=r[0].match(de),s=r[1].match(de);return pe(t,a)?[n,r[0]]:pe(t,s)?[n,r[1]]:[n,r[null!=a&&null!=s?2:1]]}return[n,i]}function me(e,t,r){null==r&&(r={});var n="";switch(typeof e){case"string":n="m/d/yy"==e&&r.dateNF?r.dateNF:e;break;case"number":null==(n=14==e&&r.dateNF?r.dateNF:(null!=r.table?r.table:D)[e])&&(n=r.table&&r.table[M[e]]||D[M[e]]),null==n&&(n=B[e]||"General")}if(I(n,0))return Y(t,r);t instanceof Date&&(t=q(t,r.date1904));var o=ge(n,t);if(I(o[1]))return Y(t,r);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function(e,t,r,n){for(var o,i,a,s=[],c="",l=0,u="",f="t",h="H";l<e.length;)switch(u=e.charAt(l)){case"G":if(!I(e,l))throw new Error("unrecognized character "+u+" in "+e);s[s.length]={t:"G",v:"General"},l+=7;break;case'"':for(c="";34!==(a=e.charCodeAt(++l))&&l<e.length;)c+=String.fromCharCode(a);s[s.length]={t:"t",v:c},++l;break;case"\\":var d=e.charAt(++l),p="("===d||")"===d?d:"t";s[s.length]={t:p,v:d},++l;break;case"_":s[s.length]={t:"t",v:" "},l+=2;break;case"@":s[s.length]={t:"T",v:t},++l;break;case"B":case"b":if("1"===e.charAt(l+1)||"2"===e.charAt(l+1)){if(null==o&&null==(o=U(t,r,"2"===e.charAt(l+1))))return"";s[s.length]={t:"X",v:e.substr(l,2)},f=u,l+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":u=u.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==o&&null==(o=U(t,r)))return"";for(c=u;++l<e.length&&e.charAt(l).toLowerCase()===u;)c+=u;"m"===u&&"h"===f.toLowerCase()&&(u="M"),"h"===u&&(u=h),s[s.length]={t:u,v:c},f=u;break;case"A":case"a":case"上":var g={t:u,v:u};if(null==o&&(o=U(t,r)),"A/P"===e.substr(l,3).toUpperCase()?(null!=o&&(g.v=o.H>=12?"P":"A"),g.t="T",h="h",l+=3):"AM/PM"===e.substr(l,5).toUpperCase()?(null!=o&&(g.v=o.H>=12?"PM":"AM"),g.t="T",l+=5,h="h"):"上午/下午"===e.substr(l,5).toUpperCase()?(null!=o&&(g.v=o.H>=12?"下午":"上午"),g.t="T",l+=5,h="h"):(g.t="t",++l),null==o&&"T"===g.t)return"";s[s.length]=g,f=u;break;case"[":for(c=u;"]"!==e.charAt(l++)&&l<e.length;)c+=e.charAt(l);if("]"!==c.slice(-1))throw'unterminated "[" block: |'+c+"|";if(c.match(fe)){if(null==o&&null==(o=U(t,r)))return"";s[s.length]={t:"Z",v:c.toLowerCase()},f=c.charAt(1)}else c.indexOf("$")>-1&&(c=(c.match(/\$([^-\[\]]*)/)||[])[1]||"$",he(e)||(s[s.length]={t:"t",v:c}));break;case".":if(null!=o){for(c=u;++l<e.length&&"0"===(u=e.charAt(l));)c+=u;s[s.length]={t:"s",v:c};break}case"0":case"#":for(c=u;++l<e.length&&"0#?.,E+-%".indexOf(u=e.charAt(l))>-1;)c+=u;s[s.length]={t:"n",v:c};break;case"?":for(c=u;e.charAt(++l)===u;)c+=u;s[s.length]={t:u,v:c},f=u;break;case"*":++l," "!=e.charAt(l)&&"*"!=e.charAt(l)||++l;break;case"(":case")":s[s.length]={t:1===n?"t":u,v:u},++l;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(c=u;l<e.length&&"0123456789".indexOf(e.charAt(++l))>-1;)c+=e.charAt(l);s[s.length]={t:"D",v:c};break;case" ":s[s.length]={t:u,v:u},++l;break;case"$":s[s.length]={t:"t",v:"$"},++l;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(u))throw new Error("unrecognized character "+u+" in "+e);s[s.length]={t:"t",v:u},++l}var m,v=0,b=0;for(l=s.length-1,f="t";l>=0;--l)switch(s[l].t){case"h":case"H":s[l].t=h,f="h",v<1&&(v=1);break;case"s":(m=s[l].v.match(/\.0+$/))&&(b=Math.max(b,m[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":f=s[l].t;break;case"m":"s"===f&&(s[l].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&s[l].v.match(/[Hh]/)&&(v=1),v<2&&s[l].v.match(/[Mm]/)&&(v=2),v<3&&s[l].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M),o.M>=60&&(o.M=0,++o.H);break;case 2:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M)}var y,w="";for(l=0;l<s.length;++l)switch(s[l].t){case"t":case"T":case" ":case"D":break;case"X":s[l].v="",s[l].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":s[l].v=K(s[l].t.charCodeAt(0),s[l].v,o,b),s[l].t="t";break;case"n":case"?":for(y=l+1;null!=s[y]&&("?"===(u=s[y].t)||"D"===u||(" "===u||"t"===u)&&null!=s[y+1]&&("?"===s[y+1].t||"t"===s[y+1].t&&"/"===s[y+1].v)||"("===s[l].t&&(" "===u||"n"===u||")"===u)||"t"===u&&("/"===s[y].v||" "===s[y].v&&null!=s[y+1]&&"?"==s[y+1].t));)s[l].v+=s[y].v,s[y]={v:"",t:";"},++y;w+=s[l].v,l=y-1;break;case"G":s[l].t="t",s[l].v=Y(t,r)}var S,x,A="";if(w.length>0){40==w.charCodeAt(0)?(S=t<0&&45===w.charCodeAt(0)?-t:t,x=ue("n",w,S)):(x=ue("n",w,S=t<0&&n>1?-t:t),S<0&&s[0]&&"t"==s[0].t&&(x=x.substr(1),s[0].v="-"+s[0].v)),y=x.length-1;var k=s.length;for(l=0;l<s.length;++l)if(null!=s[l]&&"t"!=s[l].t&&s[l].v.indexOf(".")>-1){k=l;break}var T=s.length;if(k===s.length&&-1===x.indexOf("E")){for(l=s.length-1;l>=0;--l)null!=s[l]&&-1!=="n?".indexOf(s[l].t)&&(y>=s[l].v.length-1?(y-=s[l].v.length,s[l].v=x.substr(y+1,s[l].v.length)):y<0?s[l].v="":(s[l].v=x.substr(0,y+1),y=-1),s[l].t="t",T=l);y>=0&&T<s.length&&(s[T].v=x.substr(0,y+1)+s[T].v)}else if(k!==s.length&&-1===x.indexOf("E")){for(y=x.indexOf(".")-1,l=k;l>=0;--l)if(null!=s[l]&&-1!=="n?".indexOf(s[l].t)){for(i=s[l].v.indexOf(".")>-1&&l===k?s[l].v.indexOf(".")-1:s[l].v.length-1,A=s[l].v.substr(i+1);i>=0;--i)y>=0&&("0"===s[l].v.charAt(i)||"#"===s[l].v.charAt(i))&&(A=x.charAt(y--)+A);s[l].v=A,s[l].t="t",T=l}for(y>=0&&T<s.length&&(s[T].v=x.substr(0,y+1)+s[T].v),y=x.indexOf(".")+1,l=k;l<s.length;++l)if(null!=s[l]&&(-1!=="n?(".indexOf(s[l].t)||l===k)){for(i=s[l].v.indexOf(".")>-1&&l===k?s[l].v.indexOf(".")+1:0,A=s[l].v.substr(0,i);i<s[l].v.length;++i)y<x.length&&(A+=x.charAt(y++));s[l].v=A,s[l].t="t",T=l}}}for(l=0;l<s.length;++l)null!=s[l]&&"n?".indexOf(s[l].t)>-1&&(S=n>1&&t<0&&l>0&&"-"===s[l-1].v?-t:t,s[l].v=ue(s[l].t,s[l].v,S),s[l].t="t");var E="";for(l=0;l!==s.length;++l)null!=s[l]&&(E+=s[l].v);return E}(o[1],t,r,o[0])}function ve(e,t){if("number"!=typeof t){t=+t||-1;for(var r=0;r<392;++r)if(null!=D[r]){if(D[r]==e){t=r;break}}else t<0&&(t=r);t<0&&(t=391)}return D[t]=e,t}function be(e){for(var t=0;392!=t;++t)void 0!==e[t]&&ve(e[t],t)}function ye(){D=function(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}()}var we={format:me,load:ve,_table:D,load_table:be,parse_date_code:U,is_date:he,get_table:function(){return we._table=D}},Se={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},xe=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;var Ae,ke=function(){var e={};e.version="1.2.0";var t=function(){for(var e=0,t=new Array(256),r=0;256!=r;++r)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=r)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[r]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}();var r=function(e){var t=0,r=0,n=0,o="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(n=0;256!=n;++n)o[n]=e[n];for(n=0;256!=n;++n)for(r=e[n],t=256+n;t<4096;t+=256)r=o[t]=r>>>8^e[255&r];var i=[];for(n=1;16!=n;++n)i[n-1]="undefined"!=typeof Int32Array?o.subarray(256*n,256*n+256):o.slice(256*n,256*n+256);return i}(t),n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],c=r[5],l=r[6],u=r[7],f=r[8],h=r[9],d=r[10],p=r[11],g=r[12],m=r[13],v=r[14];return e.table=t,e.bstr=function(e,r){for(var n=-1^r,o=0,i=e.length;o<i;)n=n>>>8^t[255&(n^e.charCodeAt(o++))];return~n},e.buf=function(e,r){for(var b=-1^r,y=e.length-15,w=0;w<y;)b=v[e[w++]^255&b]^m[e[w++]^b>>8&255]^g[e[w++]^b>>16&255]^p[e[w++]^b>>>24]^d[e[w++]]^h[e[w++]]^f[e[w++]]^u[e[w++]]^l[e[w++]]^c[e[w++]]^s[e[w++]]^a[e[w++]]^i[e[w++]]^o[e[w++]]^n[e[w++]]^t[e[w++]];for(y+=15;w<y;)b=b>>>8^t[255&(b^e[w++])];return~b},e.str=function(e,r){for(var n=-1^r,o=0,i=e.length,a=0,s=0;o<i;)(a=e.charCodeAt(o++))<128?n=n>>>8^t[255&(n^a)]:a<2048?n=(n=n>>>8^t[255&(n^(192|a>>6&31))])>>>8^t[255&(n^(128|63&a))]:a>=55296&&a<57344?(a=64+(1023&a),s=1023&e.charCodeAt(o++),n=(n=(n=(n=n>>>8^t[255&(n^(240|a>>8&7))])>>>8^t[255&(n^(128|a>>2&63))])>>>8^t[255&(n^(128|s>>6&15|(3&a)<<4))])>>>8^t[255&(n^(128|63&s))]):n=(n=(n=n>>>8^t[255&(n^(224|a>>12&15))])>>>8^t[255&(n^(128|a>>6&63))])>>>8^t[255&(n^(128|63&a))];return~n},e}(),Te=function(){var e,t={};function r(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:r(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function n(e){if("/"==e.charAt(e.length-1))return n(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function o(e,t){"string"==typeof t&&(t=new Date(t));var r=t.getHours();r=(r=r<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e._W(2,r);var n=t.getFullYear()-1980;n=(n=n<<4|t.getMonth()+1)<<5|t.getDate(),e._W(2,n)}function i(e){Vr(e,0);for(var t={},r=0;e.l<=e.length-4;){var n=e._R(2),o=e._R(2),i=e.l+o,a={};if(21589===n)1&(r=e._R(1))&&(a.mtime=e._R(4)),o>5&&(2&r&&(a.atime=e._R(4)),4&r&&(a.ctime=e._R(4))),a.mtime&&(a.mt=new Date(1e3*a.mtime));e.l=i,t[n]=a}return t}function a(){return e||(e=void 0)}function s(e,t){if(80==e[0]&&75==e[1])return pe(e,t);if(109==(32|e[0])&&105==(32|e[1]))return xe(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var r,n,o,i,a,s,c=512,u=[],h=e.slice(0,512);Vr(h,0);var d=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(N,"Header Signature: "),e.l+=16;var t=e._R(2,"u");return[e._R(2,"u"),t]}(h);switch(r=d[0]){case 3:c=512;break;case 4:c=4096;break;case 0:if(0==d[1])return pe(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+r)}512!==c&&Vr(h=e.slice(0,c),28);var p=e.slice(0,c);!function(e,t){var r=9;switch(e.l+=2,r=e._R(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+r);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+r);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+r)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}(h,r);var g=h._R(4,"i");if(3===r&&0!==g)throw new Error("# Directory Sectors: Expected 0 saw "+g);h.l+=4,i=h._R(4,"i"),h.l+=4,h.chk("00100000","Mini Stream Cutoff Size: "),a=h._R(4,"i"),n=h._R(4,"i"),s=h._R(4,"i"),o=h._R(4,"i");for(var m=-1,v=0;v<109&&!((m=h._R(4,"i"))<0);++v)u[v]=m;var b=function(e,t){for(var r=Math.ceil(e.length/t)-1,n=[],o=1;o<r;++o)n[o-1]=e.slice(o*t,(o+1)*t);return n[r-1]=e.slice(r*t),n}(e,c);l(s,o,b,c,u);var y=function(e,t,r,n){var o=e.length,i=[],a=[],s=[],c=[],l=n-1,u=0,f=0,h=0,d=0;for(u=0;u<o;++u)if(s=[],(h=u+t)>=o&&(h-=o),!a[h]){c=[];var p=[];for(f=h;f>=0;){p[f]=!0,a[f]=!0,s[s.length]=f,c.push(e[f]);var g=r[Math.floor(4*f/n)];if(n<4+(d=4*f&l))throw new Error("FAT boundary crossed: "+f+" 4 "+n);if(!e[g])break;if(p[f=Mr(e[g],d)])break}i[h]={nodes:s,data:pr([c])}}return i}(b,i,u,c);y[i].name="!Directory",n>0&&a!==O&&(y[a].name="!MiniFAT"),y[u[0]].name="!FAT",y.fat_addrs=u,y.ssz=c;var w=[],S=[],x=[];f(i,y,b,w,n,{},S,a),function(e,t,r){for(var n=0,o=0,i=0,a=0,s=0,c=r.length,l=[],u=[];n<c;++n)l[n]=u[n]=n,t[n]=r[n];for(;s<u.length;++s)o=e[n=u[s]].L,i=e[n].R,a=e[n].C,l[n]===n&&(-1!==o&&l[o]!==o&&(l[n]=l[o]),-1!==i&&l[i]!==i&&(l[n]=l[i])),-1!==a&&(l[a]=n),-1!==o&&n!=l[n]&&(l[o]=l[n],u.lastIndexOf(o)<s&&u.push(o)),-1!==i&&n!=l[n]&&(l[i]=l[n],u.lastIndexOf(i)<s&&u.push(i));for(n=1;n<c;++n)l[n]===n&&(-1!==i&&l[i]!==i?l[n]=l[i]:-1!==o&&l[o]!==o&&(l[n]=l[o]));for(n=1;n<c;++n)if(0!==e[n].type){if((s=n)!=l[s])do{s=l[s],t[n]=t[s]+"/"+t[n]}while(0!==s&&-1!==l[s]&&s!=l[s]);l[n]=-1}for(t[0]+="/",n=1;n<c;++n)2!==e[n].type&&(t[n]+="/")}(S,x,w),w.shift();var A={FileIndex:S,FullPaths:x};return t&&t.raw&&(A.raw={header:p,sectors:b}),A}function c(e,t,r){for(var n=e.start,o=e.size,i=[],a=n;r&&o>0&&a>=0;)i.push(t.slice(a*k,a*k+k)),o-=k,a=Mr(r,4*a);return 0===i.length?$r(0):T(i).slice(0,e.size)}function l(e,t,r,n,o){var i=O;if(e===O){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var a=r[e],s=(n>>>2)-1;if(!a)return;for(var c=0;c<s&&(i=Mr(a,4*c))!==O;++c)o.push(i);l(Mr(a,n-4),t-1,r,n,o)}}function u(e,t,r,n,o){var i=[],a=[];o||(o=[]);var s=n-1,c=0,l=0;for(c=t;c>=0;){o[c]=!0,i[i.length]=c,a.push(e[c]);var u=r[Math.floor(4*c/n)];if(n<4+(l=4*c&s))throw new Error("FAT boundary crossed: "+c+" 4 "+n);if(!e[u])break;c=Mr(e[u],l)}return{nodes:i,data:pr([a])}}function f(e,t,r,n,o,i,a,s){for(var l,f=0,d=n.length?2:0,p=t[e].data,g=0,m=0;g<p.length;g+=128){var v=p.slice(g,g+128);Vr(v,64),m=v._R(2),l=mr(v,0,m-d),n.push(l);var b={name:l,type:v._R(1),color:v._R(1),L:v._R(4,"i"),R:v._R(4,"i"),C:v._R(4,"i"),clsid:v._R(16),state:v._R(4,"i"),start:0,size:0};0!==v._R(2)+v._R(2)+v._R(2)+v._R(2)&&(b.ct=h(v,v.l-8)),0!==v._R(2)+v._R(2)+v._R(2)+v._R(2)&&(b.mt=h(v,v.l-8)),b.start=v._R(4,"i"),b.size=v._R(4,"i"),b.size<0&&b.start<0&&(b.size=b.type=0,b.start=O,b.name=""),5===b.type?(f=b.start,o>0&&f!==O&&(t[f].name="!StreamData")):b.size>=4096?(b.storage="fat",void 0===t[b.start]&&(t[b.start]=u(r,b.start,t.fat_addrs,t.ssz)),t[b.start].name=b.name,b.content=t[b.start].data.slice(0,b.size)):(b.storage="minifat",b.size<0?b.size=0:f!==O&&b.start!==O&&t[f]&&(b.content=c(b,t[f].data,(t[s]||{}).data))),b.content&&Vr(b.content,0),i[l]=b,a.push(b)}}function h(e,t){return new Date(1e3*(Dr(e,t+4)/1e7*Math.pow(2,32)+Dr(e,t)/1e7-11644473600))}function d(e,t){var r=t||{},n=r.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=n+"/",e.FileIndex[0]={name:n,type:5}),r.CLSID&&(e.FileIndex[0].clsid=r.CLSID),function(e){var t="Sh33tJ5";if(Te.find(e,"/"+t))return;var r=$r(4);r[0]=55,r[1]=r[3]=50,r[2]=54,e.FileIndex.push({name:t,type:2,content:r,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),p(e)}(e)}function p(e,t){d(e);for(var o=!1,i=!1,a=e.FullPaths.length-1;a>=0;--a){var s=e.FileIndex[a];switch(s.type){case 0:i?o=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:i=!0,isNaN(s.R*s.L*s.C)&&(o=!0),s.R>-1&&s.L>-1&&s.R==s.L&&(o=!0);break;default:o=!0}}if(o||t){var c=new Date(1987,1,19),l=0,u=Object.create?Object.create(null):{},f=[];for(a=0;a<e.FullPaths.length;++a)u[e.FullPaths[a]]=!0,0!==e.FileIndex[a].type&&f.push([e.FullPaths[a],e.FileIndex[a]]);for(a=0;a<f.length;++a){var h=r(f[a][0]);(i=u[h])||(f.push([h,{name:n(h).replace("/",""),type:1,clsid:R,ct:c,mt:c,content:null}]),u[h]=!0)}for(f.sort((function(e,t){return function(e,t){for(var r=e.split("/"),n=t.split("/"),o=0,i=0,a=Math.min(r.length,n.length);o<a;++o){if(i=r[o].length-n[o].length)return i;if(r[o]!=n[o])return r[o]<n[o]?-1:1}return r.length-n.length}(e[0],t[0])})),e.FullPaths=[],e.FileIndex=[],a=0;a<f.length;++a)e.FullPaths[a]=f[a][0],e.FileIndex[a]=f[a][1];for(a=0;a<f.length;++a){var p=e.FileIndex[a],g=e.FullPaths[a];if(p.name=n(g).replace("/",""),p.L=p.R=p.C=-(p.color=1),p.size=p.content?p.content.length:0,p.start=0,p.clsid=p.clsid||R,0===a)p.C=f.length>1?1:-1,p.size=0,p.type=5;else if("/"==g.slice(-1)){for(l=a+1;l<f.length&&r(e.FullPaths[l])!=g;++l);for(p.C=l>=f.length?-1:l,l=a+1;l<f.length&&r(e.FullPaths[l])!=r(g);++l);p.R=l>=f.length?-1:l,p.type=1}else r(e.FullPaths[a+1]||"")==r(g)&&(p.R=a+1),p.type=2}}}function x(e,t){var r=t||{};if("mad"==r.fileType)return function(e,t){for(var r=t||{},n=r.boundary||"SheetJS",o=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(n="------="+n).slice(2)+'"',"","",""],i=e.FullPaths[0],a=i,s=e.FileIndex[0],c=1;c<e.FullPaths.length;++c)if(a=e.FullPaths[c].slice(i.length),(s=e.FileIndex[c]).size&&s.content&&"Sh33tJ5"!=a){a=a.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(e){return"_x"+e.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(e){return"_u"+e.charCodeAt(0).toString(16)+"_"}));for(var l=s.content,u=v&&Buffer.isBuffer(l)?l.toString("binary"):L(l),f=0,h=Math.min(1024,u.length),d=0,p=0;p<=h;++p)(d=u.charCodeAt(p))>=32&&d<128&&++f;var g=f>=4*h/5;o.push(n),o.push("Content-Location: "+(r.root||"file:///C:/SheetJS/")+a),o.push("Content-Transfer-Encoding: "+(g?"quoted-printable":"base64")),o.push("Content-Type: "+be(s,a)),o.push(""),o.push(g?we(u):ye(u))}return o.push(n+"--\r\n"),o.join("\r\n")}(e,r);if(p(e),"zip"===r.fileType)return me(e,r);var n=function(e){for(var t=0,r=0,n=0;n<e.FileIndex.length;++n){var o=e.FileIndex[n];if(o.content){var i=o.content.length;i>0&&(i<4096?t+=i+63>>6:r+=i+511>>9)}}for(var a=e.FullPaths.length+3>>2,s=t+127>>7,c=(t+7>>3)+r+a+s,l=c+127>>7,u=l<=109?0:Math.ceil((l-109)/127);c+l+u+127>>7>l;)u=++l<=109?0:Math.ceil((l-109)/127);var f=[1,u,l,s,a,r,t,0];return e.FileIndex[0].size=t<<6,f[7]=(e.FileIndex[0].start=f[0]+f[1]+f[2]+f[3]+f[4]+f[5])+(f[6]+7>>3),f}(e),o=$r(n[7]<<9),i=0,a=0;for(i=0;i<8;++i)o._W(1,C[i]);for(i=0;i<8;++i)o._W(2,0);for(o._W(2,62),o._W(2,3),o._W(2,65534),o._W(2,9),o._W(2,6),i=0;i<3;++i)o._W(2,0);for(o._W(4,0),o._W(4,n[2]),o._W(4,n[0]+n[1]+n[2]+n[3]-1),o._W(4,0),o._W(4,4096),o._W(4,n[3]?n[0]+n[1]+n[2]-1:O),o._W(4,n[3]),o._W(-4,n[1]?n[0]-1:O),o._W(4,n[1]),i=0;i<109;++i)o._W(-4,i<n[2]?n[1]+i:-1);if(n[1])for(a=0;a<n[1];++a){for(;i<236+127*a;++i)o._W(-4,i<n[2]?n[1]+i:-1);o._W(-4,a===n[1]-1?O:a+1)}var s=function(e){for(a+=e;i<a-1;++i)o._W(-4,i+1);e&&(++i,o._W(-4,O))};for(a=i=0,a+=n[1];i<a;++i)o._W(-4,P.DIFSECT);for(a+=n[2];i<a;++i)o._W(-4,P.FATSECT);s(n[3]),s(n[4]);for(var c=0,l=0,u=e.FileIndex[0];c<e.FileIndex.length;++c)(u=e.FileIndex[c]).content&&((l=u.content.length)<4096||(u.start=a,s(l+511>>9)));for(s(n[6]+7>>3);511&o.l;)o._W(-4,P.ENDOFCHAIN);for(a=i=0,c=0;c<e.FileIndex.length;++c)(u=e.FileIndex[c]).content&&(!(l=u.content.length)||l>=4096||(u.start=a,s(l+63>>6)));for(;511&o.l;)o._W(-4,P.ENDOFCHAIN);for(i=0;i<n[4]<<2;++i){var f=e.FullPaths[i];if(f&&0!==f.length){u=e.FileIndex[i],0===i&&(u.start=u.size?u.start-1:O);var h=0===i&&r.root||u.name;if(l=2*(h.length+1),o._W(64,h,"utf16le"),o._W(2,l),o._W(1,u.type),o._W(1,u.color),o._W(-4,u.L),o._W(-4,u.R),o._W(-4,u.C),u.clsid)o._W(16,u.clsid,"hex");else for(c=0;c<4;++c)o._W(4,0);o._W(4,u.state||0),o._W(4,0),o._W(4,0),o._W(4,0),o._W(4,0),o._W(4,u.start),o._W(4,u.size),o._W(4,0)}else{for(c=0;c<17;++c)o._W(4,0);for(c=0;c<3;++c)o._W(4,-1);for(c=0;c<12;++c)o._W(4,0)}}for(i=1;i<e.FileIndex.length;++i)if((u=e.FileIndex[i]).size>=4096)if(o.l=u.start+1<<9,v&&Buffer.isBuffer(u.content))u.content.copy(o,o.l,0,u.size),o.l+=u.size+511&-512;else{for(c=0;c<u.size;++c)o._W(1,u.content[c]);for(;511&c;++c)o._W(1,0)}for(i=1;i<e.FileIndex.length;++i)if((u=e.FileIndex[i]).size>0&&u.size<4096)if(v&&Buffer.isBuffer(u.content))u.content.copy(o,o.l,0,u.size),o.l+=u.size+63&-64;else{for(c=0;c<u.size;++c)o._W(1,u.content[c]);for(;63&c;++c)o._W(1,0)}if(v)o.l=o.length;else for(;o.l<o.length;)o._W(1,0);return o}t.version="1.2.1";var A,k=64,O=-2,N="d0cf11e0a1b11ae1",C=[208,207,17,224,161,177,26,225],R="00000000000000000000000000000000",P={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:O,FREESECT:-1,HEADER_SIGNATURE:N,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:R,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function L(e){for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function I(e){return A?A.deflateRawSync(e):ie(e)}var F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],D=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function M(e){var t=139536&(e<<1|e<<11)|558144&(e<<5|e<<15);return 255&(t>>16|t>>8|t)}for(var B="undefined"!=typeof Uint8Array,W=B?new Uint8Array(256):[],U=0;U<256;++U)W[U]=M(U);function H(e,t){var r=W[255&e];return t<=8?r>>>8-t:(r=r<<8|W[e>>8&255],t<=16?r>>>16-t:(r=r<<8|W[e>>16&255])>>>24-t)}function z(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=6?0:e[n+1]<<8))>>>r&3}function V(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=5?0:e[n+1]<<8))>>>r&7}function q(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=3?0:e[n+1]<<8))>>>r&31}function $(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=1?0:e[n+1]<<8))>>>r&127}function G(e,t,r){var n=7&t,o=t>>>3,i=(1<<r)-1,a=e[o]>>>n;return r<8-n?a&i:(a|=e[o+1]<<8-n,r<16-n?a&i:(a|=e[o+2]<<16-n,r<24-n?a&i:(a|=e[o+3]<<24-n)&i))}function X(e,t,r){var n=7&t,o=t>>>3;return n<=5?e[o]|=(7&r)<<n:(e[o]|=r<<n&255,e[o+1]=(7&r)>>8-n),t+3}function Y(e,t,r){return r=(1&r)<<(7&t),e[t>>>3]|=r,t+1}function K(e,t,r){var n=t>>>3;return r<<=7&t,e[n]|=255&r,r>>>=8,e[n+1]=r,t+8}function J(e,t,r){var n=t>>>3;return r<<=7&t,e[n]|=255&r,r>>>=8,e[n+1]=255&r,e[n+2]=r>>>8,t+16}function Z(e,t){var r=e.length,n=2*r>t?2*r:t+5,o=0;if(r>=t)return e;if(v){var i=w(n);if(e.copy)e.copy(i);else for(;o<e.length;++o)i[o]=e[o];return i}if(B){var a=new Uint8Array(n);if(a.set)a.set(e);else for(;o<r;++o)a[o]=e[o];return a}return e.length=n,e}function Q(e){for(var t=new Array(e),r=0;r<e;++r)t[r]=0;return t}function ee(e,t,r){var n=1,o=0,i=0,a=0,s=0,c=e.length,l=B?new Uint16Array(32):Q(32);for(i=0;i<32;++i)l[i]=0;for(i=c;i<r;++i)e[i]=0;c=e.length;var u=B?new Uint16Array(c):Q(c);for(i=0;i<c;++i)l[o=e[i]]++,n<o&&(n=o),u[i]=0;for(l[0]=0,i=1;i<=n;++i)l[i+16]=s=s+l[i-1]<<1;for(i=0;i<c;++i)0!=(s=e[i])&&(u[i]=l[s+16]++);var f=0;for(i=0;i<c;++i)if(0!=(f=e[i]))for(s=H(u[i],n)>>n-f,a=(1<<n+4-f)-1;a>=0;--a)t[s|a<<f]=15&f|i<<4;return n}var te=B?new Uint16Array(512):Q(512),re=B?new Uint16Array(32):Q(32);if(!B){for(var ne=0;ne<512;++ne)te[ne]=0;for(ne=0;ne<32;++ne)re[ne]=0}!function(){for(var e=[],t=0;t<32;t++)e.push(5);ee(e,re,32);var r=[];for(t=0;t<=143;t++)r.push(8);for(;t<=255;t++)r.push(9);for(;t<=279;t++)r.push(7);for(;t<=287;t++)r.push(8);ee(r,te,288)}();var oe=function(){for(var e=B?new Uint8Array(32768):[],t=0,r=0;t<D.length-1;++t)for(;r<D[t+1];++r)e[r]=t;for(;r<32768;++r)e[r]=29;var n=B?new Uint8Array(259):[];for(t=0,r=0;t<j.length-1;++t)for(;r<j[t+1];++r)n[r]=t;function o(t,r){for(var o=0,i=0,a=B?new Uint16Array(32768):[];i<t.length;){var s=Math.min(65535,t.length-i);if(s<10){for(7&(o=X(r,o,+!(i+s!=t.length)))&&(o+=8-(7&o)),r.l=o/8|0,r._W(2,s),r._W(2,65535&~s);s-- >0;)r[r.l++]=t[i++];o=8*r.l}else{o=X(r,o,+!(i+s!=t.length)+2);for(var c=0;s-- >0;){var l=t[i],u=-1,f=0;if((u=a[c=32767&(c<<5^l)])&&((u|=-32768&i)>i&&(u-=32768),u<i))for(;t[u+f]==t[i+f]&&f<250;)++f;if(f>2){(l=n[f])<=22?o=K(r,o,W[l+1]>>1)-1:(K(r,o,3),K(r,o+=5,W[l-23]>>5),o+=3);var h=l<8?0:l-4>>2;h>0&&(J(r,o,f-j[l]),o+=h),l=e[i-u],o=K(r,o,W[l]>>3),o-=3;var d=l<4?0:l-2>>1;d>0&&(J(r,o,i-u-D[l]),o+=d);for(var p=0;p<f;++p)a[c]=32767&i,c=32767&(c<<5^t[i]),++i;s-=f-1}else l<=143?l+=48:o=Y(r,o,1),o=K(r,o,W[l]),a[c]=32767&i,++i}o=K(r,o,0)-1}}return r.l=(o+7)/8|0,r.l}return function(e,t){return e.length<8?function(e,t){for(var r=0;r<e.length;){var n=Math.min(65535,e.length-r),o=r+n==e.length;for(t._W(1,+o),t._W(2,n),t._W(2,65535&~n);n-- >0;)t[t.l++]=e[r++]}return t.l}(e,t):o(e,t)}}();function ie(e){var t=$r(50+Math.floor(1.1*e.length)),r=oe(e,t);return t.slice(0,r)}var ae=B?new Uint16Array(32768):Q(32768),se=B?new Uint16Array(32768):Q(32768),ce=B?new Uint16Array(128):Q(128),le=1,ue=1;function fe(e,t){var r=q(e,t)+257,n=q(e,t+=5)+1,o=function(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=4?0:e[n+1]<<8))>>>r&15}(e,t+=5)+4;t+=4;for(var i=0,a=B?new Uint8Array(19):Q(19),s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],c=1,l=B?new Uint8Array(8):Q(8),u=B?new Uint8Array(8):Q(8),f=a.length,h=0;h<o;++h)a[F[h]]=i=V(e,t),c<i&&(c=i),l[i]++,t+=3;var d=0;for(l[0]=0,h=1;h<=c;++h)u[h]=d=d+l[h-1]<<1;for(h=0;h<f;++h)0!=(d=a[h])&&(s[h]=u[d]++);var p=0;for(h=0;h<f;++h)if(0!=(p=a[h])){d=W[s[h]]>>8-p;for(var g=(1<<7-p)-1;g>=0;--g)ce[d|g<<p]=7&p|h<<3}var m=[];for(c=1;m.length<r+n;)switch(t+=7&(d=ce[$(e,t)]),d>>>=3){case 16:for(i=3+z(e,t),t+=2,d=m[m.length-1];i-- >0;)m.push(d);break;case 17:for(i=3+V(e,t),t+=3;i-- >0;)m.push(0);break;case 18:for(i=11+$(e,t),t+=7;i-- >0;)m.push(0);break;default:m.push(d),c<d&&(c=d)}var v=m.slice(0,r),b=m.slice(r);for(h=r;h<286;++h)v[h]=0;for(h=n;h<30;++h)b[h]=0;return le=ee(v,ae,286),ue=ee(b,se,30),t}function he(e,t){var r=function(e,t){if(3==e[0]&&!(3&e[1]))return[y(t),2];for(var r=0,n=0,o=w(t||1<<18),i=0,a=o.length>>>0,s=0,c=0;0==(1&n);)if(n=V(e,r),r+=3,n>>>1!=0)for(n>>1==1?(s=9,c=5):(r=fe(e,r),s=le,c=ue);;){!t&&a<i+32767&&(a=(o=Z(o,i+32767)).length);var l=G(e,r,s),u=n>>>1==1?te[l]:ae[l];if(r+=15&u,0==((u>>>=4)>>>8&255))o[i++]=u;else{if(256==u)break;var f=(u-=257)<8?0:u-4>>2;f>5&&(f=0);var h=i+j[u];f>0&&(h+=G(e,r,f),r+=f),l=G(e,r,c),r+=15&(u=n>>>1==1?re[l]:se[l]);var d=(u>>>=4)<4?0:u-2>>1,p=D[u];for(d>0&&(p+=G(e,r,d),r+=d),!t&&a<h&&(a=(o=Z(o,h+100)).length);i<h;)o[i]=o[i-p],++i}}else{7&r&&(r+=8-(7&r));var g=e[r>>>3]|e[1+(r>>>3)]<<8;if(r+=32,g>0)for(!t&&a<i+g&&(a=(o=Z(o,i+g)).length);g-- >0;)o[i++]=e[r>>>3],r+=8}return t?[o,r+7>>>3]:[o.slice(0,i),r+7>>>3]}(e.slice(e.l||0),t);return e.l+=r[1],r[0]}function de(e,t){if(!e)throw new Error(t);"undefined"!=typeof console&&console.error(t)}function pe(e,t){var r=e;Vr(r,0);var n={FileIndex:[],FullPaths:[]};d(n,{root:t.root});for(var o=r.length-4;(80!=r[o]||75!=r[o+1]||5!=r[o+2]||6!=r[o+3])&&o>=0;)--o;r.l=o+4,r.l+=4;var a=r._R(2);r.l+=6;var s=r._R(4);for(r.l=s,o=0;o<a;++o){r.l+=20;var c=r._R(4),l=r._R(4),u=r._R(2),f=r._R(2),h=r._R(2);r.l+=8;var p=r._R(4),g=i(r.slice(r.l+u,r.l+u+f));r.l+=u+f+h;var m=r.l;r.l=p+4,ge(r,c,l,n,g),r.l=m}return n}function ge(e,t,r,n,o){e.l+=2;var a=e._R(2),s=e._R(2),c=function(e){var t=65535&e._R(2),r=65535&e._R(2),n=new Date,o=31&r,i=15&(r>>>=5);r>>>=4,n.setMilliseconds(0),n.setFullYear(r+1980),n.setMonth(i-1),n.setDate(o);var a=31&t,s=63&(t>>>=5);return t>>>=6,n.setHours(t),n.setMinutes(s),n.setSeconds(a<<1),n}(e);if(8257&a)throw new Error("Unsupported ZIP encryption");e._R(4);for(var l=e._R(4),u=e._R(4),f=e._R(2),h=e._R(2),d="",p=0;p<f;++p)d+=String.fromCharCode(e[e.l++]);if(h){var g=i(e.slice(e.l,e.l+h));(g[21589]||{}).mt&&(c=g[21589].mt),((o||{})[21589]||{}).mt&&(c=o[21589].mt)}e.l+=h;var m=e.slice(e.l,e.l+l);switch(s){case 8:m=function(e,t){if(!A)return he(e,t);var r=new(0,A.InflateRaw),n=r._processChunk(e.slice(e.l),r._finishFlushFlag);return e.l+=r.bytesRead,n}(e,u);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+s)}var v=!1;8&a&&(134695760==e._R(4)&&(e._R(4),v=!0),l=e._R(4),u=e._R(4)),l!=t&&de(v,"Bad compressed size: "+t+" != "+l),u!=r&&de(v,"Bad uncompressed size: "+r+" != "+u),Ae(n,d,m,{unsafe:!0,mt:c})}function me(e,t){var r=t||{},n=[],i=[],a=$r(1),s=r.compression?8:0,c=0;var l=0,u=0,f=0,h=0,d=e.FullPaths[0],p=d,g=e.FileIndex[0],m=[],v=0;for(l=1;l<e.FullPaths.length;++l)if(p=e.FullPaths[l].slice(d.length),(g=e.FileIndex[l]).size&&g.content&&"Sh33tJ5"!=p){var b=f,y=$r(p.length);for(u=0;u<p.length;++u)y._W(1,127&p.charCodeAt(u));y=y.slice(0,y.l),m[h]=ke.buf(g.content,0);var w=g.content;8==s&&(w=I(w)),(a=$r(30))._W(4,67324752),a._W(2,20),a._W(2,c),a._W(2,s),g.mt?o(a,g.mt):a._W(4,0),a._W(-4,8&c?0:m[h]),a._W(4,8&c?0:w.length),a._W(4,8&c?0:g.content.length),a._W(2,y.length),a._W(2,0),f+=a.length,n.push(a),f+=y.length,n.push(y),f+=w.length,n.push(w),8&c&&((a=$r(12))._W(-4,m[h]),a._W(4,w.length),a._W(4,g.content.length),f+=a.l,n.push(a)),(a=$r(46))._W(4,33639248),a._W(2,0),a._W(2,20),a._W(2,c),a._W(2,s),a._W(4,0),a._W(-4,m[h]),a._W(4,w.length),a._W(4,g.content.length),a._W(2,y.length),a._W(2,0),a._W(2,0),a._W(2,0),a._W(2,0),a._W(4,0),a._W(4,b),v+=a.l,i.push(a),v+=y.length,i.push(y),++h}return(a=$r(22))._W(4,101010256),a._W(2,0),a._W(2,0),a._W(2,h),a._W(2,h),a._W(4,v),a._W(4,f),a._W(2,0),T([T(n),T(i),a])}var ve={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function be(e,t){if(e.ctype)return e.ctype;var r=e.name||"",n=r.match(/\.([^\.]+)$/);return n&&ve[n[1]]||t&&(n=(r=t).match(/[\.\\]([^\.\\])+$/))&&ve[n[1]]?ve[n[1]]:"application/octet-stream"}function ye(e){for(var t=g(e),r=[],n=0;n<t.length;n+=76)r.push(t.slice(n,n+76));return r.join("\r\n")+"\r\n"}function we(e){var t=e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"="+(1==t.length?"0"+t:t)}));"\n"==(t=t.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(t="=0D"+t.slice(1));for(var r=[],n=(t=t.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),o=0;o<n.length;++o){var i=n[o];if(0!=i.length)for(var a=0;a<i.length;){var s=76,c=i.slice(a,a+s);"="==c.charAt(s-1)?s--:"="==c.charAt(s-2)?s-=2:"="==c.charAt(s-3)&&(s-=3),c=i.slice(a,a+s),(a+=s)<i.length&&(c+="="),r.push(c)}else r.push("")}return r.join("\r\n")}function Se(e,t,r){for(var n,o="",i="",a="",s=0;s<10;++s){var c=t[s];if(!c||c.match(/^\s*$/))break;var l=c.match(/^(.*?):\s*([^\s].*)$/);if(l)switch(l[1].toLowerCase()){case"content-location":o=l[2].trim();break;case"content-type":a=l[2].trim();break;case"content-transfer-encoding":i=l[2].trim()}}switch(++s,i.toLowerCase()){case"base64":n=S(m(t.slice(s).join("")));break;case"quoted-printable":n=function(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r];r<=e.length&&"="==n.charAt(n.length-1);)n=n.slice(0,n.length-1)+e[++r];t.push(n)}for(var o=0;o<t.length;++o)t[o]=t[o].replace(/[=][0-9A-Fa-f]{2}/g,(function(e){return String.fromCharCode(parseInt(e.slice(1),16))}));return S(t.join("\r\n"))}(t.slice(s));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+i)}var u=Ae(e,o.slice(r.length),n,{unsafe:!0});a&&(u.ctype=a)}function xe(e,t){if("mime-version:"!=L(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var r=t&&t.root||"",n=(v&&Buffer.isBuffer(e)?e.toString("binary"):L(e)).split("\r\n"),o=0,i="";for(o=0;o<n.length;++o)if(i=n[o],/^Content-Location:/i.test(i)&&(i=i.slice(i.indexOf("file")),r||(r=i.slice(0,i.lastIndexOf("/")+1)),i.slice(0,r.length)!=r))for(;r.length>0&&(r=(r=r.slice(0,r.length-1)).slice(0,r.lastIndexOf("/")+1),i.slice(0,r.length)!=r););var a=(n[1]||"").match(/boundary="(.*?)"/);if(!a)throw new Error("MAD cannot find boundary");var s="--"+(a[1]||""),c={FileIndex:[],FullPaths:[]};d(c);var l,u=0;for(o=0;o<n.length;++o){var f=n[o];f!==s&&f!==s+"--"||(u++&&Se(c,n.slice(l,o),r),l=o)}return c}function Ae(e,t,r,o){var i=o&&o.unsafe;i||d(e);var a=!i&&Te.find(e,t);if(!a){var s=e.FullPaths[0];t.slice(0,s.length)==s?s=t:("/"!=s.slice(-1)&&(s+="/"),s=(s+t).replace("//","/")),a={name:n(t),type:2},e.FileIndex.push(a),e.FullPaths.push(s),i||Te.utils.cfb_gc(e)}return a.content=r,a.size=r?r.length:0,o&&(o.CLSID&&(a.clsid=o.CLSID),o.mt&&(a.mt=o.mt),o.ct&&(a.ct=o.ct)),a}return t.find=function(e,t){var r=e.FullPaths.map((function(e){return e.toUpperCase()})),n=r.map((function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]})),o=!1;47===t.charCodeAt(0)?(o=!0,t=r[0].slice(0,-1)+t):o=-1!==t.indexOf("/");var i=t.toUpperCase(),a=!0===o?r.indexOf(i):n.indexOf(i);if(-1!==a)return e.FileIndex[a];var s=!i.match(_);for(i=i.replace(E,""),s&&(i=i.replace(_,"!")),a=0;a<r.length;++a){if((s?r[a].replace(_,"!"):r[a]).replace(E,"")==i)return e.FileIndex[a];if((s?n[a].replace(_,"!"):n[a]).replace(E,"")==i)return e.FileIndex[a]}return null},t.read=function(t,r){var n=r&&r.type;switch(n||v&&Buffer.isBuffer(t)&&(n="buffer"),n||"base64"){case"file":return function(t,r){return a(),s(e.readFileSync(t),r)}(t,r);case"base64":return s(S(m(t)),r);case"binary":return s(S(t),r)}return s(t,r)},t.parse=s,t.write=function(t,r){var n=x(t,r);switch(r&&r.type||"buffer"){case"file":return a(),e.writeFileSync(r.filename,n),n;case"binary":return"string"==typeof n?n:L(n);case"base64":return g("string"==typeof n?n:L(n));case"buffer":if(v)return Buffer.isBuffer(n)?n:b(n);case"array":return"string"==typeof n?S(n):n}return n},t.writeFile=function(t,r,n){a();var o=x(t,n);e.writeFileSync(r,o)},t.utils={cfb_new:function(e){var t={};return d(t,e),t},cfb_add:Ae,cfb_del:function(e,t){d(e);var r=Te.find(e,t);if(r)for(var n=0;n<e.FileIndex.length;++n)if(e.FileIndex[n]==r)return e.FileIndex.splice(n,1),e.FullPaths.splice(n,1),!0;return!1},cfb_mov:function(e,t,r){d(e);var o=Te.find(e,t);if(o)for(var i=0;i<e.FileIndex.length;++i)if(e.FileIndex[i]==o)return e.FileIndex[i].name=n(r),e.FullPaths[i]=r,!0;return!1},cfb_gc:function(e){p(e,!0)},ReadShift:Wr,CheckField:zr,prep_blob:Vr,bconcat:T,use_zlib:function(e){try{var t=new(0,e.InflateRaw);if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error("zlib does not expose bytesRead");A=e}catch(e){console.error("cannot use native zlib: "+(e.message||e))}},_deflateRaw:ie,_inflateRaw:he,consts:P},t}();if("undefined"!=typeof require)try{Ae=void 0}catch(e){}function Ee(e){return"string"==typeof e?x(e):Array.isArray(e)?function(e){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(e)}(e):e}function _e(e,t,r){if(void 0!==Ae&&Ae.writeFileSync)return r?Ae.writeFileSync(e,t,r):Ae.writeFileSync(e,t);if("undefined"!=typeof Deno){if(r&&"string"==typeof t)switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=x(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n="utf8"==r?Pt(t):t;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(n,e);if("undefined"!=typeof Blob){var o=new Blob([Ee(n)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(o,e);if(void 0!==saveAs)return saveAs(o,e);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(o);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(i)}),6e4),chrome.downloads.download({url:i,filename:e,saveAs:!0});var a=document.createElement("a");if(null!=a.download)return a.download=e,a.href=i,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(i)}),6e4),i}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var s=File(e);return s.open("w"),s.encoding="binary",Array.isArray(t)&&(t=A(t)),s.write(t),s.close(),t}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("cannot save file "+e)}function Oe(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function Ne(e,t){for(var r=[],n=Oe(e),o=0;o!==n.length;++o)null==r[e[n[o]][t]]&&(r[e[n[o]][t]]=n[o]);return r}function Ce(e){for(var t=[],r=Oe(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function Re(e){for(var t=[],r=Oe(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}var Pe=new Date(1899,11,30,0,0,0);function Le(e,t){var r=e.getTime();return t&&(r-=1263168e5),(r-(Pe.getTime()+6e4*(e.getTimezoneOffset()-Pe.getTimezoneOffset())))/864e5}var Ie=new Date,Fe=Pe.getTime()+6e4*(Ie.getTimezoneOffset()-Pe.getTimezoneOffset()),je=Ie.getTimezoneOffset();function De(e){var t=new Date;return t.setTime(24*e*60*60*1e3+Fe),t.getTimezoneOffset()!==je&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-je)),t}function Me(e){var t=0,r=0,n=!1,o=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!o)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var i=1;i!=o.length;++i)if(o[i]){switch(r=1,i>3&&(n=!0),o[i].slice(o[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+o[i].slice(o[i].length-1));case"D":r*=24;case"H":r*=60;case"M":if(!n)throw new Error("Unsupported ISO Duration Field: M");r*=60}t+=r*parseInt(o[i],10)}return t}var Be=new Date("2017-02-19T19:06:09.000Z"),We=isNaN(Be.getFullYear())?new Date("2/19/17"):Be,Ue=2017==We.getFullYear();function He(e,t){var r=new Date(e);if(Ue)return t>0?r.setTime(r.getTime()+60*r.getTimezoneOffset()*1e3):t<0&&r.setTime(r.getTime()-60*r.getTimezoneOffset()*1e3),r;if(e instanceof Date)return e;if(1917==We.getFullYear()&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var o=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+o[0],+o[1]-1,+o[2],+o[3]||0,+o[4]||0,+o[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-60*i.getTimezoneOffset()*1e3)),i}function ze(e,t){if(v&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return Pt(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return Pt(u(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return Pt(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return Pt(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"","‚":"","ƒ":"","„":"","…":"
","†":"","‡":"","ˆ":"","‰":"","Š":"","‹":"","Œ":"","Ž":"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"","š":"","›":"","œ":"","ž":"","Ÿ":""};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return r[e]||e}))}catch(e){}for(var n=[],o=0;o!=e.length;++o)n.push(String.fromCharCode(e[o]));return n.join("")}function Ve(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Ve(e[r]));return t}function qe(e,t){for(var r="";r.length<t;)r+=e;return r}function $e(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return r*=100,""}));return isNaN(t=Number(n))?(n=n.replace(/[(](.*)[)]/,(function(e,t){return r=-r,t})),isNaN(t=Number(n))?t:t/r):t/r}var Ge=["january","february","march","april","may","june","july","august","september","october","november","december"];function Xe(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),o=t.getMonth(),i=t.getDate();if(isNaN(i))return r;var a=e.toLowerCase();if(a.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((a=a.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==Ge.indexOf(a))return r}else if(a.match(/[a-z]/))return r;return n<0||n>8099?r:(o>0||i>1)&&101!=n?t:e.match(/[^-0-9:,\/\\]/)?r:t}var Ye=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,r,n){if(e||"string"==typeof r)return t.split(r);for(var o=t.split(r),i=[o[0]],a=1;a<o.length;++a)i.push(n),i.push(o[a]);return i}}();function Ke(e){return e?e.content&&e.type?ze(e.content,!0):e.data?f(e.data):e.asNodeBuffer&&v?f(e.asNodeBuffer().toString("binary")):e.asBinary?f(e.asBinary()):e._data&&e._data.getContent?f(ze(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function Je(e){if(!e)return null;if(e.data)return l(e.data);if(e.asNodeBuffer&&v)return e.asNodeBuffer();if(e._data&&e._data.getContent){var t=e._data.getContent();return"string"==typeof t?l(t):Array.prototype.slice.call(t)}return e.content&&e.type?e.content:null}function Ze(e,t){for(var r=e.FullPaths||Oe(e.files),n=t.toLowerCase().replace(/[\/]/g,"\\"),o=n.replace(/\\/g,"/"),i=0;i<r.length;++i){var a=r[i].replace(/^Root Entry[\/]/,"").toLowerCase();if(n==a||o==a)return e.files?e.files[r[i]]:e.FileIndex[i]}return null}function Qe(e,t){var r=Ze(e,t);if(null==r)throw new Error("Cannot find file "+t+" in zip");return r}function et(e,t,r){if(!r)return function(e){return e&&".bin"===e.name.slice(-4)?Je(e):Ke(e)}(Qe(e,t));if(!t)return null;try{return et(e,t)}catch(e){return null}}function tt(e,t,r){if(!r)return Ke(Qe(e,t));if(!t)return null;try{return tt(e,t)}catch(e){return null}}function rt(e,t,r){if(!r)return Je(Qe(e,t));if(!t)return null;try{return rt(e,t)}catch(e){return null}}function nt(e){for(var t=e.FullPaths||Oe(e.files),r=[],n=0;n<t.length;++n)"/"!=t[n].slice(-1)&&r.push(t[n].replace(/^Root Entry[\/]/,""));return r.sort()}function ot(e,t,r){if(e.FullPaths){var n;if("string"==typeof r)return n=v?b(r):function(e){for(var t=[],r=0,n=e.length+250,o=y(e.length+255),i=0;i<e.length;++i){var a=e.charCodeAt(i);if(a<128)o[r++]=a;else if(a<2048)o[r++]=192|a>>6&31,o[r++]=128|63&a;else if(a>=55296&&a<57344){a=64+(1023&a);var s=1023&e.charCodeAt(++i);o[r++]=240|a>>8&7,o[r++]=128|a>>2&63,o[r++]=128|s>>6&15|(3&a)<<4,o[r++]=128|63&s}else o[r++]=224|a>>12&15,o[r++]=128|a>>6&63,o[r++]=128|63&a;r>n&&(t.push(o.slice(0,r)),r=0,o=y(65535),n=65530)}return t.push(o.slice(0,r)),T(t)}(r),Te.utils.cfb_add(e,t,n);Te.utils.cfb_add(e,t,r)}else e.file(t,r)}function it(){return Te.utils.cfb_new()}function at(e,t){switch(t.type){case"base64":return Te.read(e,{type:"base64"});case"binary":return Te.read(e,{type:"binary"});case"buffer":case"array":return Te.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function st(e,t){if("/"==e.charAt(0))return e.slice(1);var r=t.split("/");"/"!=t.slice(-1)&&r.pop();for(var n=e.split("/");0!==n.length;){var o=n.shift();".."===o?r.pop():"."!==o&&r.push(o)}return r.join("/")}var ct='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',lt=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,ut=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,ft=ct.match(ut)?ut:/<[^>]*>/g,ht=/<\w*:/,dt=/<(\/?)\w+:/;function pt(e,t,r){for(var n={},o=0,i=0;o!==e.length&&(32!==(i=e.charCodeAt(o))&&10!==i&&13!==i);++o);if(t||(n[0]=e.slice(0,o)),o===e.length)return n;var a=e.match(lt),s=0,c="",l=0,u="",f="",h=1;if(a)for(l=0;l!=a.length;++l){for(f=a[l],i=0;i!=f.length&&61!==f.charCodeAt(i);++i);for(u=f.slice(0,i).trim();32==f.charCodeAt(i+1);)++i;for(h=34==(o=f.charCodeAt(i+1))||39==o?1:0,c=f.slice(i+1+h,f.length-h),s=0;s!=u.length&&58!==u.charCodeAt(s);++s);if(s===u.length)u.indexOf("_")>0&&(u=u.slice(0,u.indexOf("_"))),n[u]=c,r||(n[u.toLowerCase()]=c);else{var d=(5===s&&"xmlns"===u.slice(0,5)?"xmlns":"")+u.slice(s+1);if(n[d]&&"ext"==u.slice(s-3,s))continue;n[d]=c,r||(n[d.toLowerCase()]=c)}}return n}function gt(e){return e.replace(dt,"<$1")}var mt={""":'"',"'":"'",">":">","<":"<","&":"&"},vt=Ce(mt),bt=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function r(n){var o=n+"",i=o.indexOf("<![CDATA[");if(-1==i)return o.replace(e,(function(e,t){return mt[e]||String.fromCharCode(parseInt(t,e.indexOf("x")>-1?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))}));var a=o.indexOf("]]>");return r(o.slice(0,i))+o.slice(i+9,a)+r(o.slice(a+3))}}(),yt=/[&<>'"]/g,wt=/[\u0000-\u0008\u000b-\u001f]/g;function St(e){return(e+"").replace(yt,(function(e){return vt[e]})).replace(wt,(function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function xt(e){return St(e).replace(/ /g,"_x0020_")}var At=/[\u0000-\u001f]/g;function kt(e){return(e+"").replace(yt,(function(e){return vt[e]})).replace(/\n/g,"<br/>").replace(At,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}var Tt=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(r){return r.replace(e,t)}}();function Et(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function _t(e){for(var t="",r=0,n=0,o=0,i=0,a=0,s=0;r<e.length;)(n=e.charCodeAt(r++))<128?t+=String.fromCharCode(n):(o=e.charCodeAt(r++),n>191&&n<224?(a=(31&n)<<6,a|=63&o,t+=String.fromCharCode(a)):(i=e.charCodeAt(r++),n<240?t+=String.fromCharCode((15&n)<<12|(63&o)<<6|63&i):(s=((7&n)<<18|(63&o)<<12|(63&i)<<6|63&(a=e.charCodeAt(r++)))-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(1023&s)))));return t}function Ot(e){var t,r,n,o=y(2*e.length),i=1,a=0,s=0;for(r=0;r<e.length;r+=i)i=1,(n=e.charCodeAt(r))<128?t=n:n<224?(t=64*(31&n)+(63&e.charCodeAt(r+1)),i=2):n<240?(t=4096*(15&n)+64*(63&e.charCodeAt(r+1))+(63&e.charCodeAt(r+2)),i=3):(i=4,t=262144*(7&n)+4096*(63&e.charCodeAt(r+1))+64*(63&e.charCodeAt(r+2))+(63&e.charCodeAt(r+3)),s=55296+((t-=65536)>>>10&1023),t=56320+(1023&t)),0!==s&&(o[a++]=255&s,o[a++]=s>>>8,s=0),o[a++]=t%256,o[a++]=t>>>8;return o.slice(0,a).toString("ucs2")}function Nt(e){return b(e,"binary").toString("utf8")}var Ct="foo bar bazâð£",Rt=v&&(Nt(Ct)==_t(Ct)&&Nt||Ot(Ct)==_t(Ct)&&Ot)||_t,Pt=v?function(e){return b(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,o=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(63&n)));break;case n>=55296&&n<57344:n-=55296,o=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(o>>18&7))),t.push(String.fromCharCode(144+(o>>12&63))),t.push(String.fromCharCode(128+(o>>6&63))),t.push(String.fromCharCode(128+(63&o)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(63&n)))}return t.join("")},Lt=function(){var e={};return function(t,r){var n=t+"|"+(r||"");return e[n]?e[n]:e[n]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+t+">",r||"")}}(),It=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var r=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),n=0;n<e.length;++n)r=r.replace(e[n][0],e[n][1]);return r}}(),Ft=function(){var e={};return function(t){return void 0!==e[t]?e[t]:e[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}}(),jt=/<\/?(?:vt:)?variant>/g,Dt=/<(?:vt:)([^>]*)>([\s\S]*)</;function Mt(e,t){var r=pt(e),n=e.match(Ft(r.baseType))||[],o=[];if(n.length!=r.size){if(t.WTF)throw new Error("unexpected vector length "+n.length+" != "+r.size);return o}return n.forEach((function(e){var t=e.replace(jt,"").match(Dt);t&&o.push({v:Rt(t[2]),t:t[1]})})),o}var Bt=/(^\s|\s$|\n)/;function Wt(e,t){return"<"+e+(t.match(Bt)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function Ut(e){return Oe(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function Ht(e,t,r){return"<"+e+(null!=r?Ut(r):"")+(null!=t?(t.match(Bt)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function zt(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(e){if(t)throw e}return""}function Vt(e){if(v&&Buffer.isBuffer(e))return e.toString("utf8");if("string"==typeof e)return e;if("undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return Rt(A(k(e)));throw new Error("Bad input format: expected Buffer or string")}var qt=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/gm,$t="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",Gt="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",Xt="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",Yt="http://schemas.openxmlformats.org/package/2006/content-types",Kt="http://schemas.openxmlformats.org/package/2006/relationships",Jt="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",Zt="http://purl.org/dc/elements/1.1/",Qt="http://purl.org/dc/terms/",er="http://purl.org/dc/dcmitype/",tr="http://schemas.openxmlformats.org/officeDocument/2006/relationships",rr="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",nr="http://www.w3.org/2001/XMLSchema-instance",or="http://www.w3.org/2001/XMLSchema",ir=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],ar="urn:schemas-microsoft-com:office:office",sr="urn:schemas-microsoft-com:office:excel",cr="urn:schemas-microsoft-com:office:spreadsheet",lr="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",ur="http://macVmlSchemaUri",fr="urn:schemas-microsoft-com:vml",hr="http://www.w3.org/TR/REC-html40";var dr=function(e){for(var t=[],r=0;r<e[0].length;++r)if(e[0][r])for(var n=0,o=e[0][r].length;n<o;n+=10240)t.push.apply(t,e[0][r].slice(n,n+10240));return t},pr=v?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:b(e)}))):dr(e)}:dr,gr=function(e,t,r){for(var n=[],o=t;o<r;o+=2)n.push(String.fromCharCode(Fr(e,o)));return n.join("").replace(E,"")},mr=v?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(E,""):gr(e,t,r)}:gr,vr=function(e,t,r){for(var n=[],o=t;o<t+r;++o)n.push(("0"+e[o].toString(16)).slice(-2));return n.join("")},br=v?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):vr(e,t,r)}:vr,yr=function(e,t,r){for(var n=[],o=t;o<r;o++)n.push(String.fromCharCode(Ir(e,o)));return n.join("")},wr=v?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf8",t,r):yr(e,t,r)}:yr,Sr=function(e,t){var r=Dr(e,t);return r>0?wr(e,t+4,t+4+r-1):""},xr=Sr,Ar=function(e,t){var r=Dr(e,t);return r>0?wr(e,t+4,t+4+r-1):""},kr=Ar,Tr=function(e,t){var r=2*Dr(e,t);return r>0?wr(e,t+4,t+4+r-1):""},Er=Tr,_r=function(e,t){var r=Dr(e,t);return r>0?mr(e,t+4,t+4+r):""},Or=_r,Nr=function(e,t){var r=Dr(e,t);return r>0?wr(e,t+4,t+4+r):""},Cr=Nr,Rr=function(e,t){return function(e,t){for(var r=1-2*(e[t+7]>>>7),n=((127&e[t+7])<<4)+(e[t+6]>>>4&15),o=15&e[t+6],i=5;i>=0;--i)o=256*o+e[t+i];return 2047==n?0==o?r*(1/0):NaN:(0==n?n=-1022:(n-=1023,o+=Math.pow(2,52)),r*Math.pow(2,n-52)*o)}(e,t)},Pr=Rr,Lr=function(e){return Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array};v&&(xr=function(e,t){if(!Buffer.isBuffer(e))return Sr(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},kr=function(e,t){if(!Buffer.isBuffer(e))return Ar(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},Er=function(e,t){if(!Buffer.isBuffer(e))return Tr(e,t);var r=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r-1)},Or=function(e,t){if(!Buffer.isBuffer(e))return _r(e,t);var r=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r)},Cr=function(e,t){if(!Buffer.isBuffer(e))return Nr(e,t);var r=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+r)},Pr=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):Rr(e,t)},Lr=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array}),void 0!==t&&(mr=function(e,r,n){return t.utils.decode(1200,e.slice(r,n)).replace(E,"")},wr=function(e,r,n){return t.utils.decode(65001,e.slice(r,n))},xr=function(e,r){var o=Dr(e,r);return o>0?t.utils.decode(n,e.slice(r+4,r+4+o-1)):""},kr=function(e,n){var o=Dr(e,n);return o>0?t.utils.decode(r,e.slice(n+4,n+4+o-1)):""},Er=function(e,r){var n=2*Dr(e,r);return n>0?t.utils.decode(1200,e.slice(r+4,r+4+n-1)):""},Or=function(e,r){var n=Dr(e,r);return n>0?t.utils.decode(1200,e.slice(r+4,r+4+n)):""},Cr=function(e,r){var n=Dr(e,r);return n>0?t.utils.decode(65001,e.slice(r+4,r+4+n)):""});var Ir=function(e,t){return e[t]},Fr=function(e,t){return 256*e[t+1]+e[t]},jr=function(e,t){var r=256*e[t+1]+e[t];return r<32768?r:-1*(65535-r+1)},Dr=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Mr=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Br=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Wr(e,n){var o,i,a,s,c,l,u="",f=[];switch(n){case"dbcs":if(l=this.l,v&&Buffer.isBuffer(this))u=this.slice(this.l,this.l+2*e).toString("utf16le");else for(c=0;c<e;++c)u+=String.fromCharCode(Fr(this,l)),l+=2;e*=2;break;case"utf8":u=wr(this,this.l,this.l+e);break;case"utf16le":e*=2,u=mr(this,this.l,this.l+e);break;case"wstr":if(void 0===t)return Wr.call(this,e,"dbcs");u=t.utils.decode(r,this.slice(this.l,this.l+2*e)),e*=2;break;case"lpstr-ansi":u=xr(this,this.l),e=4+Dr(this,this.l);break;case"lpstr-cp":u=kr(this,this.l),e=4+Dr(this,this.l);break;case"lpwstr":u=Er(this,this.l),e=4+2*Dr(this,this.l);break;case"lpp4":e=4+Dr(this,this.l),u=Or(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+Dr(this,this.l),u=Cr(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":for(e=0,u="";0!==(a=Ir(this,this.l+e++));)f.push(h(a));u=f.join("");break;case"_wstr":for(e=0,u="";0!==(a=Fr(this,this.l+e));)f.push(h(a)),e+=2;e+=2,u=f.join("");break;case"dbcs-cont":for(u="",l=this.l,c=0;c<e;++c){if(this.lens&&-1!==this.lens.indexOf(l))return a=Ir(this,l),this.l=l+1,s=Wr.call(this,e-c,a?"dbcs-cont":"sbcs-cont"),f.join("")+s;f.push(h(Fr(this,l))),l+=2}u=f.join(""),e*=2;break;case"cpstr":if(void 0!==t){u=t.utils.decode(r,this.slice(this.l,this.l+e));break}case"sbcs-cont":for(u="",l=this.l,c=0;c!=e;++c){if(this.lens&&-1!==this.lens.indexOf(l))return a=Ir(this,l),this.l=l+1,s=Wr.call(this,e-c,a?"dbcs-cont":"sbcs-cont"),f.join("")+s;f.push(h(Ir(this,l))),l+=1}u=f.join("");break;default:switch(e){case 1:return o=Ir(this,this.l),this.l++,o;case 2:return o=("i"===n?jr:Fr)(this,this.l),this.l+=2,o;case 4:case-4:return"i"===n||0==(128&this[this.l+3])?(o=(e>0?Mr:Br)(this,this.l),this.l+=4,o):(i=Dr(this,this.l),this.l+=4,i);case 8:case-8:if("f"===n)return i=8==e?Pr(this,this.l):Pr([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;e=8;case 16:u=br(this,this.l,e)}}return this.l+=e,u}var Ur=function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255};function Hr(e,r,o){var i=0,a=0;if("dbcs"===o){for(a=0;a!=r.length;++a)Ur(this,r.charCodeAt(a),this.l+2*a);i=2*r.length}else if("sbcs"===o){if(void 0!==t&&874==n)for(a=0;a!=r.length;++a){var s=t.utils.encode(n,r.charAt(a));this[this.l+a]=s[0]}else for(r=r.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=r.length;++a)this[this.l+a]=255&r.charCodeAt(a);i=r.length}else{if("hex"===o){for(;a<e;++a)this[this.l++]=parseInt(r.slice(2*a,2*a+2),16)||0;return this}if("utf16le"===o){var c=Math.min(this.l+e,this.length);for(a=0;a<Math.min(r.length,e);++a){var l=r.charCodeAt(a);this[this.l++]=255&l,this[this.l++]=l>>8}for(;this.l<c;)this[this.l++]=0;return this}switch(e){case 1:i=1,this[this.l]=255&r;break;case 2:i=2,this[this.l]=255&r,r>>>=8,this[this.l+1]=255&r;break;case 3:i=3,this[this.l]=255&r,r>>>=8,this[this.l+1]=255&r,r>>>=8,this[this.l+2]=255&r;break;case 4:i=4,function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255}(this,r,this.l);break;case 8:if(i=8,"f"===o){!function(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,o=0,i=0,a=n?-t:t;isFinite(a)?0==a?o=i=0:(o=Math.floor(Math.log(a)/Math.LN2),i=a*Math.pow(2,52-o),o<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?o=-1022:(i-=Math.pow(2,52),o+=1023)):(o=2047,i=isNaN(t)?26985:0);for(var s=0;s<=5;++s,i/=256)e[r+s]=255&i;e[r+6]=(15&o)<<4|15&i,e[r+7]=o>>4|n}(this,r,this.l);break}case 16:break;case-4:i=4,function(e,t,r){e[r]=255&t,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255}(this,r,this.l)}}return this.l+=i,this}function zr(e,t){var r=br(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Vr(e,t){e.l=t,e._R=Wr,e.chk=zr,e._W=Hr}function qr(e,t){e.l+=t}function $r(e){var t=y(e);return Vr(t,0),t}function Gr(e,t,r){if(e){var n,o,i;Vr(e,e.l||0);for(var a=e.length,s=0,c=0;e.l<a;){128&(s=e._R(1))&&(s=(127&s)+((127&e._R(1))<<7));var l=iu[s]||iu[65535];for(i=127&(n=e._R(1)),o=1;o<4&&128&n;++o)i+=(127&(n=e._R(1)))<<7*o;c=e.l+i;var u=l.f&&l.f(e,i,r);if(e.l=c,t(u,l,s))return}}}function Xr(){var e=[],t=v?256:2048,r=function(e){var t=$r(e);return Vr(t,0),t},n=r(t),o=function(){n&&(n.length>n.l&&((n=n.slice(0,n.l)).l=n.length),n.length>0&&e.push(n),n=null)},i=function(e){return n&&e<n.length-n.l?n:(o(),n=r(Math.max(e+1,t)))};return{next:i,push:function(e){o(),null==(n=e).l&&(n.l=n.length),i(t)},end:function(){return o(),T(e)},_bufs:e}}function Yr(e,t,r,n){var o,i=+t;if(!isNaN(i)){n||(n=iu[i].p||(r||[]).length||0),o=1+(i>=128?1:0)+1,n>=128&&++o,n>=16384&&++o,n>=2097152&&++o;var a=e.next(o);i<=127?a._W(1,i):(a._W(1,128+(127&i)),a._W(1,i>>7));for(var s=0;4!=s;++s){if(!(n>=128)){a._W(1,n);break}a._W(1,128+(127&n)),n>>=7}n>0&&Lr(r)&&e.push(r)}}function Kr(e,t,r){var n=Ve(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function Jr(e,t,r){var n=Ve(e);return n.s=Kr(n.s,t.s,r),n.e=Kr(n.e,t.s,r),n}function Zr(e,t){if(e.cRel&&e.c<0)for(e=Ve(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Ve(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=an(e);return e.cRel||null==e.cRel||(r=function(e){return e.replace(/^([A-Z])/,"$$$1")}(r)),e.rRel||null==e.rRel||(r=function(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(r)),r}function Qr(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?Zr(e.s,t.biff)+":"+Zr(e.e,t.biff):(e.s.rRel?"":"$")+tn(e.s.r)+":"+(e.e.rRel?"":"$")+tn(e.e.r):(e.s.cRel?"":"$")+nn(e.s.c)+":"+(e.e.cRel?"":"$")+nn(e.e.c)}function en(e){return parseInt(function(e){return e.replace(/\$(\d+)$/,"$1")}(e),10)-1}function tn(e){return""+(e+1)}function rn(e){for(var t=function(e){return e.replace(/^\$([A-Z])/,"$1")}(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function nn(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function on(e){for(var t=0,r=0,n=0;n<e.length;++n){var o=e.charCodeAt(n);o>=48&&o<=57?t=10*t+(o-48):o>=65&&o<=90&&(r=26*r+(o-64))}return{c:r-1,r:t-1}}function an(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function sn(e){var t=e.indexOf(":");return-1==t?{s:on(e),e:on(e)}:{s:on(e.slice(0,t)),e:on(e.slice(t+1))}}function cn(e,t){return void 0===t||"number"==typeof t?cn(e.s,e.e):("string"!=typeof e&&(e=an(e)),"string"!=typeof t&&(t=an(t)),e==t?e:e+":"+t)}function ln(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,o=0,i=e.length;for(r=0;n<i&&!((o=e.charCodeAt(n)-64)<1||o>26);++n)r=26*r+o;for(t.s.c=--r,r=0;n<i&&!((o=e.charCodeAt(n)-48)<0||o>9);++n)r=10*r+o;if(t.s.r=--r,n===i||10!=o)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=i&&!((o=e.charCodeAt(n)-64)<1||o>26);++n)r=26*r+o;for(t.e.c=--r,r=0;n!=i&&!((o=e.charCodeAt(n)-48)<0||o>9);++n)r=10*r+o;return t.e.r=--r,t}function un(e,t){var r="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=me(e.z,r?Le(t):t)}catch(e){}try{return e.w=me((e.XF||{}).numFmtId||(r?14:0),r?Le(t):t)}catch(e){return""+t}}function fn(e,t,r){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),"e"==e.t?Kn[e.v]||e.v:un(e,null==t?e.v:t))}function hn(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function dn(e,t,r){var n=r||{},o=e?Array.isArray(e):n.dense;var i=e||(o?[]:{}),a=0,s=0;if(i&&null!=n.origin){if("number"==typeof n.origin)a=n.origin;else{var c="string"==typeof n.origin?on(n.origin):n.origin;a=c.r,s=c.c}i["!ref"]||(i["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var u=ln(i["!ref"]);l.s.c=u.s.c,l.s.r=u.s.r,l.e.c=Math.max(l.e.c,u.e.c),l.e.r=Math.max(l.e.r,u.e.r),-1==a&&(l.e.r=a=u.e.r+1)}for(var f=0;f!=t.length;++f)if(t[f]){if(!Array.isArray(t[f]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=t[f].length;++h)if(void 0!==t[f][h]){var d={v:t[f][h]},p=a+f,g=s+h;if(l.s.r>p&&(l.s.r=p),l.s.c>g&&(l.s.c=g),l.e.r<p&&(l.e.r=p),l.e.c<g&&(l.e.c=g),!t[f][h]||"object"!=typeof t[f][h]||Array.isArray(t[f][h])||t[f][h]instanceof Date)if(Array.isArray(d.v)&&(d.f=t[f][h][1],d.v=d.v[0]),null===d.v)if(d.f)d.t="n";else if(n.nullError)d.t="e",d.v=0;else{if(!n.sheetStubs)continue;d.t="z"}else"number"==typeof d.v?d.t="n":"boolean"==typeof d.v?d.t="b":d.v instanceof Date?(d.z=n.dateNF||D[14],n.cellDates?(d.t="d",d.w=me(d.z,Le(d.v))):(d.t="n",d.v=Le(d.v),d.w=me(d.z,d.v))):d.t="s";else d=t[f][h];if(o)i[p]||(i[p]=[]),i[p][g]&&i[p][g].z&&(d.z=i[p][g].z),i[p][g]=d;else{var m=an({c:g,r:p});i[m]&&i[m].z&&(d.z=i[m].z),i[m]=d}}}return l.s.c<1e7&&(i["!ref"]=cn(l)),i}function pn(e,t){return dn(null,e,t)}function gn(e,t){return t||(t=$r(4)),t._W(4,e),t}function mn(e){var t=e._R(4);return 0===t?"":e._R(t,"dbcs")}function vn(e,t){var r=!1;return null==t&&(r=!0,t=$r(4+2*e.length)),t._W(4,e.length),e.length>0&&t._W(0,e,"dbcs"),r?t.slice(0,t.l):t}function bn(e){return{ich:e._R(2),ifnt:e._R(2)}}function yn(e,t){var r=e.l,n=e._R(1),o=mn(e),i=[],a={t:o,h:o};if(0!=(1&n)){for(var s=e._R(4),c=0;c!=s;++c)i.push(bn(e));a.r=i}else a.r=[{ich:0,ifnt:0}];return e.l=r+t,a}var wn=yn;function Sn(e,t){var r=!1;return null==t&&(r=!0,t=$r(23+4*e.t.length)),t._W(1,1),vn(e.t,t),t._W(4,1),function(e,t){t||(t=$r(4)),t._W(2,e.ich||0),t._W(2,e.ifnt||0)}({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function xn(e){var t=e._R(4),r=e._R(2);return r+=e._R(1)<<16,e.l++,{c:t,iStyleRef:r}}function An(e,t){return null==t&&(t=$r(8)),t._W(-4,e.c),t._W(3,e.iStyleRef||e.s),t._W(1,0),t}function kn(e){var t=e._R(2);return t+=e._R(1)<<16,e.l++,{c:-1,iStyleRef:t}}function Tn(e,t){return null==t&&(t=$r(4)),t._W(3,e.iStyleRef||e.s),t._W(1,0),t}var En=mn,_n=vn;function On(e){var t=e._R(4);return 0===t||4294967295===t?"":e._R(t,"dbcs")}function Nn(e,t){var r=!1;return null==t&&(r=!0,t=$r(127)),t._W(4,e.length>0?e.length:4294967295),e.length>0&&t._W(0,e,"dbcs"),r?t.slice(0,t.l):t}var Cn=mn,Rn=On,Pn=Nn;function Ln(e){var t=e.slice(e.l,e.l+4),r=1&t[0],n=2&t[0];e.l+=4;var o=0===n?Pr([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):Mr(t,0)>>2;return r?o/100:o}function In(e,t){null==t&&(t=$r(4));var r=0,n=0,o=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?n=1:o==(0|o)&&o>=-(1<<29)&&o<1<<29&&(n=1,r=1),!n)throw new Error("unsupported RkNumber "+e);t._W(-4,((r?o:e)<<2)+(r+2))}function Fn(e){var t={s:{},e:{}};return t.s.r=e._R(4),t.e.r=e._R(4),t.s.c=e._R(4),t.e.c=e._R(4),t}var jn=Fn,Dn=function(e,t){return t||(t=$r(16)),t._W(4,e.s.r),t._W(4,e.e.r),t._W(4,e.s.c),t._W(4,e.e.c),t};function Mn(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e._R(8,"f")}function Bn(e,t){return(t||$r(8))._W(8,e,"f")}function Wn(e,t){if(t||(t=$r(8)),!e||e.auto)return t._W(4,0),t._W(4,0),t;null!=e.index?(t._W(1,2),t._W(1,e.index)):null!=e.theme?(t._W(1,6),t._W(1,e.theme)):(t._W(1,5),t._W(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t._W(2,r),e.rgb&&null==e.theme){var n=e.rgb||"FFFFFF";"number"==typeof n&&(n=("000000"+n.toString(16)).slice(-6)),t._W(1,parseInt(n.slice(0,2),16)),t._W(1,parseInt(n.slice(2,4),16)),t._W(1,parseInt(n.slice(4,6),16)),t._W(1,255)}else t._W(2,0),t._W(1,0),t._W(1,0);return t}function Un(e,t){var r=e._R(4);switch(r){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[e._R(4)]||""}if(r>400)throw new Error("Unsupported Clipboard: "+r.toString(16));return e.l-=4,e._R(0,1==t?"lpstr":"lpwstr")}var Hn=80,zn=[Hn,81],Vn={1:{n:"CodePage",t:2},2:{n:"Category",t:Hn},3:{n:"PresentationFormat",t:Hn},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:Hn},15:{n:"Company",t:Hn},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:Hn},27:{n:"ContentStatus",t:Hn},28:{n:"Language",t:Hn},29:{n:"Version",t:Hn},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},qn={1:{n:"CodePage",t:2},2:{n:"Title",t:Hn},3:{n:"Subject",t:Hn},4:{n:"Author",t:Hn},5:{n:"Keywords",t:Hn},6:{n:"Comments",t:Hn},7:{n:"Template",t:Hn},8:{n:"LastAuthor",t:Hn},9:{n:"RevNumber",t:Hn},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:Hn},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},$n={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},Gn=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];var Xn=function(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Yn=Ve(Xn),Kn={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Jn={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Zn={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Qn={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function eo(e,t){var r,n=function(e){for(var t=[],r=Oe(e),n=0;n!==r.length;++n)null==t[e[r[n]]]&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}(Zn),o=[];o[o.length]=ct,o[o.length]=Ht("Types",null,{xmlns:Yt,"xmlns:xsd":or,"xmlns:xsi":nr}),o=o.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(e){return Ht("Default",null,{Extension:e[0],ContentType:e[1]})})));var i=function(n){e[n]&&e[n].length>0&&(r=e[n][0],o[o.length]=Ht("Override",null,{PartName:("/"==r[0]?"":"/")+r,ContentType:Qn[n][t.bookType]||Qn[n].xlsx}))},a=function(r){(e[r]||[]).forEach((function(e){o[o.length]=Ht("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:Qn[r][t.bookType]||Qn[r].xlsx})}))},s=function(t){(e[t]||[]).forEach((function(e){o[o.length]=Ht("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:n[t][0]})}))};return i("workbooks"),a("sheets"),a("charts"),s("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),a("metadata"),s("people"),o.length>2&&(o[o.length]="</Types>",o[1]=o[1].replace("/>",">")),o.join("")}var to={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function ro(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function no(e,t){var r={"!id":{}};if(!e)return r;"/"!==t.charAt(0)&&(t="/"+t);var n={};return(e.match(ft)||[]).forEach((function(e){var o=pt(e);if("<Relationship"===o[0]){var i={};i.Type=o.Type,i.Target=o.Target,i.Id=o.Id,o.TargetMode&&(i.TargetMode=o.TargetMode);var a="External"===o.TargetMode?o.Target:st(o.Target,t);r[a]=i,n[o.Id]=i}})),r["!id"]=n,r}function oo(e){var t=[ct,Ht("Relationships",null,{xmlns:Kt})];return Oe(e["!id"]).forEach((function(r){t[t.length]=Ht("Relationship",null,e["!id"][r])})),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function io(e,t,r,n,o,i){if(o||(o={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,o.Id="rId"+t,o.Type=n,o.Target=r,i?o.TargetMode=i:[to.HLINK,to.XPATH,to.XMISS].indexOf(o.Type)>-1&&(o.TargetMode="External"),e["!id"][o.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][o.Id]=o,e[("/"+o.Target).replace("//","/")]=o,t}function ao(e,t,r){return[' <rdf:Description rdf:about="'+e+'">\n',' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+'"/>\n'," </rdf:Description>\n"].join("")}function so(e,t){return[' <rdf:Description rdf:about="'+e+'">\n',' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+'"/>\n'," </rdf:Description>\n"].join("")}function co(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+e.version+"</meta:generator></office:meta></office:document-meta>"}var lo=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],uo=function(){for(var e=new Array(lo.length),t=0;t<lo.length;++t){var r=lo[t],n="(?:"+r[0].slice(0,r[0].indexOf(":"))+":)"+r[0].slice(r[0].indexOf(":")+1);e[t]=new RegExp("<"+n+"[^>]*>([\\s\\S]*?)</"+n+">")}return e}();function fo(e){var t={};e=Rt(e);for(var r=0;r<lo.length;++r){var n=lo[r],o=e.match(uo[r]);null!=o&&o.length>0&&(t[n[1]]=bt(o[1])),"date"===n[2]&&t[n[1]]&&(t[n[1]]=He(t[n[1]]))}return t}function ho(e,t,r,n,o){null==o[e]&&null!=t&&""!==t&&(o[e]=t,t=St(t),n[n.length]=r?Ht(e,t,r):Wt(e,t))}function po(e,t){var r=t||{},n=[ct,Ht("cp:coreProperties",null,{"xmlns:cp":$t,"xmlns:dc":Zt,"xmlns:dcterms":Qt,"xmlns:dcmitype":er,"xmlns:xsi":nr})],o={};if(!e&&!r.Props)return n.join("");e&&(null!=e.CreatedDate&&ho("dcterms:created","string"==typeof e.CreatedDate?e.CreatedDate:zt(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,o),null!=e.ModifiedDate&&ho("dcterms:modified","string"==typeof e.ModifiedDate?e.ModifiedDate:zt(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,o));for(var i=0;i!=lo.length;++i){var a=lo[i],s=r.Props&&null!=r.Props[a[1]]?r.Props[a[1]]:e?e[a[1]]:null;!0===s?s="1":!1===s?s="0":"number"==typeof s&&(s=String(s)),null!=s&&ho(a[0],s,null,n,o)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var go=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],mo=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function vo(e,t,r,n){var o=[];if("string"==typeof e)o=Mt(e,n);else for(var i=0;i<e.length;++i)o=o.concat(e[i].map((function(e){return{v:e}})));var a="string"==typeof t?Mt(t,n).map((function(e){return e.v})):t,s=0,c=0;if(a.length>0)for(var l=0;l!==o.length;l+=2){switch(c=+o[l+1].v,o[l].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":r.Worksheets=c,r.SheetNames=a.slice(s,s+c);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=c,r.DefinedNames=a.slice(s,s+c);break;case"Charts":case"Diagramme":r.Chartsheets=c,r.ChartNames=a.slice(s,s+c)}s+=c}}function bo(e){var t=[],r=Ht;return e||(e={}),e.Application="SheetJS",t[t.length]=ct,t[t.length]=Ht("Properties",null,{xmlns:Xt,"xmlns:vt":rr}),go.forEach((function(n){if(void 0!==e[n[1]]){var o;switch(n[2]){case"string":o=St(String(e[n[1]]));break;case"bool":o=e[n[1]]?"true":"false"}void 0!==o&&(t[t.length]=r(n[0],o))}})),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map((function(e){return"<vt:lpstr>"+St(e)+"</vt:lpstr>"})).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var yo=/<[^>]+>[^<]*/g;function wo(e){var t=[ct,Ht("Properties",null,{xmlns:Gt,"xmlns:vt":rr})];if(!e)return t.join("");var r=1;return Oe(e).forEach((function(n){++r,t[t.length]=Ht("property",function(e,t){switch(typeof e){case"string":var r=Ht("vt:lpwstr",St(e));return t&&(r=r.replace(/"/g,"_x0022_")),r;case"number":return Ht((0|e)==e?"vt:i4":"vt:r8",St(String(e)));case"boolean":return Ht("vt:bool",e?"true":"false")}if(e instanceof Date)return Ht("vt:filetime",zt(e));throw new Error("Unable to serialize "+e)}(e[n],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:St(n)})})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var So,xo={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Ao(e,t,r){So||(So=Ce(xo)),e[t=So[t]||t]=r}function ko(e){var t=e._R(4),r=e._R(4);return new Date(1e3*(r/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function To(e,t,r){var n=e.l,o=e._R(0,"lpstr-cp");if(r)for(;e.l-n&3;)++e.l;return o}function Eo(e,t,r){var n=e._R(0,"lpwstr");return r&&(e.l+=4-(n.length+1&3)&3),n}function _o(e,t,r){return 31===t?Eo(e):To(e,0,r)}function Oo(e,t,r){return _o(e,t,!1===r?0:4)}function No(e){var t=e.l,r=Po(e,81);return 0==e[e.l]&&0==e[e.l+1]&&e.l-t&2&&(e.l+=2),[r,Po(e,3)]}function Co(e,t){for(var r=e._R(4),n={},o=0;o!=r;++o){var i=e._R(4),a=e._R(4);n[i]=e._R(a,1200===t?"utf16le":"utf8").replace(E,"").replace(_,"!"),1200===t&&a%2&&(e.l+=2)}return 3&e.l&&(e.l=e.l>>3<<2),n}function Ro(e){var t=e._R(4),r=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),r}function Po(e,t,r){var n,o=e._R(2),i=r||{};if(e.l+=2,12!==t&&o!==t&&-1===zn.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&o)))throw new Error("Expected type "+t+" saw "+o);switch(12===t?o:t){case 2:return n=e._R(2,"i"),i.raw||(e.l+=2),n;case 3:return n=e._R(4,"i");case 11:return 0!==e._R(4);case 19:return n=e._R(4);case 30:return To(e,0,4).replace(E,"");case 31:return Eo(e);case 64:return ko(e);case 65:return Ro(e);case 71:return function(e){var t={};return t.Size=e._R(4),e.l+=t.Size+3-(t.Size-1)%4,t}(e);case 80:return Oo(e,o,!i.raw).replace(E,"");case 81:return function(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return _o(e,t,0)}(e,o).replace(E,"");case 4108:return function(e){for(var t=e._R(4),r=[],n=0;n<t/2;++n)r.push(No(e));return r}(e);case 4126:case 4127:return 4127==o?function(e){for(var t=e._R(4),r=[],n=0;n!=t;++n){var o=e.l;r[n]=e._R(0,"lpwstr").replace(E,""),e.l-o&2&&(e.l+=2)}return r}(e):function(e){for(var t=e._R(4),r=[],n=0;n!=t;++n)r[n]=e._R(0,"lpstr-cp").replace(E,"");return r}(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+o)}}function Lo(e,t){var r=$r(4),n=$r(4);switch(r._W(4,80==e?31:e),e){case 3:n._W(-4,t);break;case 5:(n=$r(8))._W(8,t,"f");break;case 11:n._W(4,t?1:0);break;case 64:n=function(e){var t=("string"==typeof e?new Date(Date.parse(e)):e).getTime()/1e3+11644473600,r=t%Math.pow(2,32),n=(t-r)/Math.pow(2,32);n*=1e7;var o=(r*=1e7)/Math.pow(2,32)|0;o>0&&(r%=Math.pow(2,32),n+=o);var i=$r(8);return i._W(4,r),i._W(4,n),i}(t);break;case 31:case 80:for((n=$r(4+2*(t.length+1)+(t.length%2?0:2)))._W(4,t.length+1),n._W(0,t,"dbcs");n.l!=n.length;)n._W(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return T([r,n])}function Io(e,t){var r=e.l,n=e._R(4),o=e._R(4),i=[],a=0,c=0,l=-1,u={};for(a=0;a!=o;++a){var f=e._R(4),h=e._R(4);i[a]=[f,h+r]}i.sort((function(e,t){return e[1]-t[1]}));var d={};for(a=0;a!=o;++a){if(e.l!==i[a][1]){var p=!0;if(a>0&&t)switch(t[i[a-1][0]].t){case 2:e.l+2===i[a][1]&&(e.l+=2,p=!1);break;case 80:case 4108:e.l<=i[a][1]&&(e.l=i[a][1],p=!1)}if((!t||0==a)&&e.l<=i[a][1]&&(p=!1,e.l=i[a][1]),p)throw new Error("Read Error: Expected address "+i[a][1]+" at "+e.l+" :"+a)}if(t){var g=t[i[a][0]];if(d[g.n]=Po(e,g.t,{raw:!0}),"version"===g.p&&(d[g.n]=String(d[g.n]>>16)+"."+("0000"+String(65535&d[g.n])).slice(-4)),"CodePage"==g.n)switch(d[g.n]){case 0:d[g.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:s(c=d[g.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+d[g.n])}}else if(1===i[a][0]){if(c=d.CodePage=Po(e,2),s(c),-1!==l){var m=e.l;e.l=i[l][1],u=Co(e,c),e.l=m}}else if(0===i[a][0]){if(0===c){l=a,e.l=i[a+1][1];continue}u=Co(e,c)}else{var v,b=u[i[a][0]];switch(e[e.l]){case 65:e.l+=4,v=Ro(e);break;case 30:case 31:e.l+=4,v=Oo(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,v=e._R(4,"i");break;case 19:e.l+=4,v=e._R(4);break;case 5:e.l+=4,v=e._R(8,"f");break;case 11:e.l+=4,v=Uo(e,4);break;case 64:e.l+=4,v=He(ko(e));break;default:throw new Error("unparsed value: "+e[e.l])}d[b]=v}}return e.l=r+n,d}var Fo=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function jo(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64}return-1}function Do(e,t,r){var n=$r(8),o=[],i=[],a=8,s=0,c=$r(8),l=$r(8);if(c._W(4,2),c._W(4,1200),l._W(4,1),i.push(c),o.push(l),a+=8+c.length,!t){(l=$r(8))._W(4,0),o.unshift(l);var u=[$r(4)];for(u[0]._W(4,e.length),s=0;s<e.length;++s){var f=e[s][0];for((c=$r(8+2*(f.length+1)+(f.length%2?0:2)))._W(4,s+2),c._W(4,f.length+1),c._W(0,f,"dbcs");c.l!=c.length;)c._W(1,0);u.push(c)}c=T(u),i.unshift(c),a+=8+c.length}for(s=0;s<e.length;++s)if((!t||t[e[s][0]])&&!(Fo.indexOf(e[s][0])>-1||mo.indexOf(e[s][0])>-1)&&null!=e[s][1]){var h=e[s][1],d=0;if(t){var p=r[d=+t[e[s][0]]];if("version"==p.p&&"string"==typeof h){var g=h.split(".");h=(+g[0]<<16)+(+g[1]||0)}c=Lo(p.t,h)}else{var m=jo(h);-1==m&&(m=31,h=String(h)),c=Lo(m,h)}i.push(c),(l=$r(8))._W(4,t?d:2+s),o.push(l),a+=8+c.length}var v=8*(i.length+1);for(s=0;s<i.length;++s)o[s]._W(4,v),v+=i[s].length;return n._W(4,a),n._W(4,i.length),T([n].concat(o).concat(i))}function Mo(e,t,r){var n=e.content;if(!n)return{};Vr(n,0);var o,i,a,s,c=0;n.chk("feff","Byte Order: "),n._R(2);var l=n._R(4),u=n._R(16);if(u!==Te.utils.consts.HEADER_CLSID&&u!==r)throw new Error("Bad PropertySet CLSID "+u);if(1!==(o=n._R(4))&&2!==o)throw new Error("Unrecognized #Sets: "+o);if(i=n._R(16),s=n._R(4),1===o&&s!==n.l)throw new Error("Length mismatch: "+s+" !== "+n.l);2===o&&(a=n._R(16),c=n._R(4));var f,h=Io(n,t),d={SystemIdentifier:l};for(var p in h)d[p]=h[p];if(d.FMTID=i,1===o)return d;if(c-n.l==2&&(n.l+=2),n.l!==c)throw new Error("Length mismatch 2: "+n.l+" !== "+c);try{f=Io(n,null)}catch(e){}for(p in f)d[p]=f[p];return d.FMTID=[i,a],d}function Bo(e,t,r,n,o,i){var a=$r(o?68:48),s=[a];a._W(2,65534),a._W(2,0),a._W(4,842412599),a._W(16,Te.utils.consts.HEADER_CLSID,"hex"),a._W(4,o?2:1),a._W(16,t,"hex"),a._W(4,o?68:48);var c=Do(e,r,n);if(s.push(c),o){var l=Do(o,null,null);a._W(16,i,"hex"),a._W(4,68+c.length),s.push(l)}return T(s)}function Wo(e,t){return e._R(t),null}function Uo(e,t){return 1===e._R(t)}function Ho(e,t){return t||(t=$r(2)),t._W(2,+!!e),t}function zo(e){return e._R(2,"u")}function Vo(e,t){return t||(t=$r(2)),t._W(2,e),t}function qo(e,t){return function(e,t,r){for(var n=[],o=e.l+t;e.l<o;)n.push(r(e,o-e.l));if(o!==e.l)throw new Error("Slurp error");return n}(e,t,zo)}function $o(e,t,r){return r||(r=$r(2)),r._W(1,"e"==t?+e:+!!e),r._W(1,"e"==t?1:0),r}function Go(e,t,n){var o=e._R(n&&n.biff>=12?2:1),i="sbcs-cont",a=r;(n&&n.biff>=8&&(r=1200),n&&8!=n.biff)?12==n.biff&&(i="wstr"):e._R(1)&&(i="dbcs-cont");n.biff>=2&&n.biff<=5&&(i="cpstr");var s=o?e._R(o,i):"";return r=a,s}function Xo(e){var t=r;r=1200;var n,o=e._R(2),i=e._R(1),a=4&i,s=8&i,c=1+(1&i),l=0,u={};s&&(l=e._R(2)),a&&(n=e._R(4));var f=2==c?"dbcs-cont":"sbcs-cont",h=0===o?"":e._R(o,f);return s&&(e.l+=4*l),a&&(e.l+=n),u.t=h,s||(u.raw="<t>"+u.t+"</t>",u.r=u.t),r=t,u}function Yo(e){var t=e.t||"",r=$r(3);r._W(2,t.length),r._W(1,1);var n=$r(2*t.length);return n._W(2*t.length,t,"utf16le"),T([r,n])}function Ko(e,t,r){if(r){if(r.biff>=2&&r.biff<=5)return e._R(t,"cpstr");if(r.biff>=12)return e._R(t,"dbcs-cont")}return 0===e._R(1)?e._R(t,"sbcs-cont"):e._R(t,"dbcs-cont")}function Jo(e,t,r){var n=e._R(r&&2==r.biff?1:2);return 0===n?(e.l++,""):Ko(e,n,r)}function Zo(e,t,r){if(r.biff>5)return Jo(e,0,r);var n=e._R(1);return 0===n?(e.l++,""):e._R(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Qo(e,t,r){return r||(r=$r(3+2*e.length)),r._W(2,e.length),r._W(1,1),r._W(31,e,"utf16le"),r}function ei(e,t){var r=e._R(16);switch(16,r){case"e0c9ea79f9bace118c8200aa004ba90b":return function(e){var t=e._R(4),r=e.l,n=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e._R(16)&&(n=!0),e.l=r);var o=e._R((n?t-24:t)>>1,"utf16le").replace(E,"");return n&&(e.l+=24),o}(e);case"0303000000000000c000000000000046":return function(e){for(var t=e._R(2),r="";t-- >0;)r+="../";var n=e._R(0,"lpstr-ansi");if(e.l+=2,57005!=e._R(2))throw new Error("Bad FileMoniker");if(0===e._R(4))return r+n.replace(/\\/g,"/");var o=e._R(4);if(3!=e._R(2))throw new Error("Bad FileMoniker");return r+e._R(o>>1,"utf16le").replace(E,"")}(e);default:throw new Error("Unsupported Moniker "+r)}}function ti(e){var t=e._R(4);return t>0?e._R(t,"utf16le").replace(E,""):""}function ri(e,t){t||(t=$r(6+2*e.length)),t._W(4,1+e.length);for(var r=0;r<e.length;++r)t._W(2,e.charCodeAt(r));return t._W(2,0),t}function ni(e){var t=$r(512),r=0,n=e.Target;"file://"==n.slice(0,7)&&(n=n.slice(7));var o=n.indexOf("#"),i=o>-1?31:23;switch(n.charAt(0)){case"#":i=28;break;case".":i&=-3}t._W(4,2),t._W(4,i);var a=[8,6815827,6619237,4849780,83];for(r=0;r<a.length;++r)t._W(4,a[r]);if(28==i)ri(n=n.slice(1),t);else if(2&i){for(a="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<a.length;++r)t._W(1,parseInt(a[r],16));var s=o>-1?n.slice(0,o):n;for(t._W(4,2*(s.length+1)),r=0;r<s.length;++r)t._W(2,s.charCodeAt(r));t._W(2,0),8&i&&ri(o>-1?n.slice(o+1):"",t)}else{for(a="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<a.length;++r)t._W(1,parseInt(a[r],16));for(var c=0;"../"==n.slice(3*c,3*c+3)||"..\\"==n.slice(3*c,3*c+3);)++c;for(t._W(2,c),t._W(4,n.length-3*c+1),r=0;r<n.length-3*c;++r)t._W(1,255&n.charCodeAt(r+3*c));for(t._W(1,0),t._W(2,65535),t._W(2,57005),r=0;r<6;++r)t._W(4,0)}return t.slice(0,t.l)}function oi(e){return[e._R(1),e._R(1),e._R(1),e._R(1)]}function ii(e,t){var r=oi(e);return r[3]=0,r}function ai(e){return{r:e._R(2),c:e._R(2),ixfe:e._R(2)}}function si(e,t,r,n){return n||(n=$r(6)),n._W(2,e),n._W(2,t),n._W(2,r||0),n}function ci(e,t,r){var n=r.biff>8?4:2;return[e._R(n),e._R(n,"i"),e._R(n,"i")]}function li(e){return[e._R(2),Ln(e)]}function ui(e){var t=e._R(2),r=e._R(2);return{s:{c:e._R(2),r:t},e:{c:e._R(2),r:r}}}function fi(e,t){return t||(t=$r(8)),t._W(2,e.s.r),t._W(2,e.e.r),t._W(2,e.s.c),t._W(2,e.e.c),t}function hi(e){var t=e._R(2),r=e._R(2);return{s:{c:e._R(1),r:t},e:{c:e._R(1),r:r}}}var di=hi;function pi(e){e.l+=4;var t=e._R(2),r=e._R(2),n=e._R(2);return e.l+=12,[r,t,n]}function gi(e){e.l+=2,e.l+=e._R(2)}var mi={0:gi,4:gi,5:gi,6:gi,7:function(e){return e.l+=4,e.cf=e._R(2),{}},8:gi,9:gi,10:gi,11:gi,12:gi,13:function(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e._R(2),e.l+=4,t},14:gi,15:gi,16:gi,17:gi,18:gi,19:gi,20:gi,21:pi};function vi(e,t){var r={BIFFVer:0,dt:0};switch(r.BIFFVer=e._R(2),(t-=2)>=2&&(r.dt=e._R(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e._R(t),r}function bi(e,t,r){var n=1536,o=16;switch(r.bookType){case"biff8":case"xla":break;case"biff5":n=1280,o=8;break;case"biff4":n=4,o=6;break;case"biff3":n=3,o=6;break;case"biff2":n=2,o=4;break;default:throw new Error("unsupported BIFF version")}var i=$r(o);return i._W(2,n),i._W(2,t),o>4&&i._W(2,29282),o>6&&i._W(2,1997),o>8&&(i._W(2,49161),i._W(2,1),i._W(2,1798),i._W(2,0)),i}function yi(e,t){var r=!t||t.biff>=8?2:1,n=$r(8+r*e.name.length);n._W(4,e.pos),n._W(1,e.hs||0),n._W(1,e.dt),n._W(1,e.name.length),t.biff>=8&&n._W(1,1),n._W(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var o=n.slice(0,n.l);return o.l=n.l,o}function wi(e,t,r){var n=0;r&&2==r.biff||(n=e._R(2));var o=e._R(2);return r&&2==r.biff&&(n=1-(o>>15),o&=32767),[{Unsynced:1&n,DyZero:(2&n)>>1,ExAsc:(4&n)>>2,ExDsc:(8&n)>>3},o]}function Si(e,t,r,n){var o=r&&5==r.biff;n||(n=$r(o?3+t.length:5+2*t.length)),n._W(2,e),n._W(o?1:2,t.length),o||n._W(1,1),n._W((o?1:2)*t.length,t,o?"sbcs":"utf16le");var i=n.length>n.l?n.slice(0,n.l):n;return null==i.l&&(i.l=i.length),i}var xi=Zo;function Ai(e,t,r){var n=e.l+t,o=8!=r.biff&&r.biff?2:4,i=e._R(o),a=e._R(o),s=e._R(2),c=e._R(2);return e.l=n,{s:{r:i,c:s},e:{r:a,c:c}}}function ki(e,t,r,n){var o=r&&5==r.biff;n||(n=$r(o?16:20)),n._W(2,0),e.style?(n._W(2,e.numFmtId||0),n._W(2,65524)):(n._W(2,e.numFmtId||0),n._W(2,t<<4));var i=0;return e.numFmtId>0&&o&&(i|=1024),n._W(4,i),n._W(4,0),o||n._W(4,0),n._W(2,0),n}function Ti(e,t,r){var n=ai(e);2!=r.biff&&9!=t||++e.l;var o=function(e){var t=e._R(1);return 1===e._R(1)?t:1===t}(e);return n.val=o,n.t=!0===o||!1===o?"b":"e",n}var Ei=function(e,t,r){return 0===t?"":Zo(e,0,r)};function _i(e,t,r){var n,o=e._R(2),i={fBuiltIn:1&o,fWantAdvise:o>>>1&1,fWantPict:o>>>2&1,fOle:o>>>3&1,fOleLink:o>>>4&1,cf:o>>>5&1023,fIcon:o>>>15&1};return 14849===r.sbcch&&(n=function(e,t,r){e.l+=4,t-=4;var n=e.l+t,o=Go(e,0,r),i=e._R(2);if(i!==(n-=e.l))throw new Error("Malformed AddinUdf: padding = "+n+" != "+i);return e.l+=i,o}(e,t-2,r)),i.body=n||e._R(t-2),"string"==typeof n&&(i.Name=n),i}var Oi=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function Ni(e,t,r){var n=e.l+t,o=e._R(2),i=e._R(1),a=e._R(1),s=e._R(r&&2==r.biff?1:2),c=0;(!r||r.biff>=5)&&(5!=r.biff&&(e.l+=2),c=e._R(2),5==r.biff&&(e.l+=2),e.l+=4);var l=Ko(e,a,r);32&o&&(l=Oi[l.charCodeAt(0)]);var u=n-e.l;r&&2==r.biff&&--u;var f=n!=e.l&&0!==s&&u>0?function(e,t,r,n){var o,i=e.l+t,a=qs(e,n,r);i!==e.l&&(o=Vs(e,i-e.l,a,r));return[a,o]}(e,u,r,s):[];return{chKey:i,Name:l,itab:c,rgce:f}}function Ci(e,t,r){if(r.biff<8)return function(e,t,r){3==e[e.l+1]&&e[e.l]++;var n=Go(e,0,r);return 3==n.charCodeAt(0)?n.slice(1):n}(e,0,r);for(var n=[],o=e.l+t,i=e._R(r.biff>8?4:2);0!=i--;)n.push(ci(e,r.biff,r));if(e.l!=o)throw new Error("Bad ExternSheet: "+e.l+" != "+o);return n}function Ri(e,t,r){var n=di(e,6);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[n,Js(e,t,r)]}var Pi={8:function(e,t){var r=e.l+t;e.l+=10;var n=e._R(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var o=e._R(1);return e.l+=o,e.l=r,{fmt:n}}};function Li(e){var t=$r(24),r=on(e[0]);t._W(2,r.r),t._W(2,r.r),t._W(2,r.c),t._W(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),o=0;o<16;++o)t._W(1,parseInt(n[o],16));return T([t,ni(e[1])])}function Ii(e){var t=e[1].Tooltip,r=$r(10+2*(t.length+1));r._W(2,2048);var n=on(e[0]);r._W(2,n.r),r._W(2,n.r),r._W(2,n.c),r._W(2,n.c);for(var o=0;o<t.length;++o)r._W(2,t.charCodeAt(o));return r._W(2,0),r}function Fi(e,t,r){if(!r.cellStyles)return qr(e,t);var n=r&&r.biff>=12?4:2,o=e._R(n),i=e._R(n),a=e._R(n),s=e._R(n),c=e._R(2);2==n&&(e.l+=2);var l={s:o,e:i,w:a,ixfe:s,flags:c};return(r.biff>=5||!r.biff)&&(l.level=c>>8&7),l}var ji=ai,Di=qo,Mi=Jo;var Bi=[2,3,48,49,131,139,140,245],Wi=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},r=Ce({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function o(r,n){var o=[],i=y(1);switch(n.type){case"base64":i=S(m(r));break;case"binary":i=S(r);break;case"buffer":case"array":i=r}Vr(i,0);var a=i._R(1),s=!!(136&a),c=!1,l=!1;switch(a){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:c=!0,s=!0;break;case 140:l=!0;break;default:throw new Error("DBF Unsupported Version: "+a.toString(16))}var u=0,f=521;2==a&&(u=i._R(2)),i.l+=3,2!=a&&(u=i._R(4)),u>1048576&&(u=1e6),2!=a&&(f=i._R(2));var h=i._R(2),d=n.codepage||1252;2!=a&&(i.l+=16,i._R(1),0!==i[i.l]&&(d=e[i[i.l]]),i.l+=1,i.l+=2),l&&(i.l+=36);for(var p=[],g={},v=Math.min(i.length,2==a?521:f-10-(c?264:0)),b=l?32:11;i.l<v&&13!=i[i.l];)switch((g={}).name=t.utils.decode(d,i.slice(i.l,i.l+b)).replace(/[\u0000\r\n].*$/g,""),i.l+=b,g.type=String.fromCharCode(i._R(1)),2==a||l||(g.offset=i._R(4)),g.len=i._R(1),2==a&&(g.offset=i._R(2)),g.dec=i._R(1),g.name.length&&p.push(g),2!=a&&(i.l+=l?13:14),g.type){case"B":c&&8==g.len||!n.WTF||console.log("Skipping "+g.name+":"+g.type);break;case"G":case"P":n.WTF&&console.log("Skipping "+g.name+":"+g.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+g.type)}if(13!==i[i.l]&&(i.l=f-1),13!==i._R(1))throw new Error("DBF Terminator not found "+i.l+" "+i[i.l]);i.l=f;var w=0,x=0;for(o[0]=[],x=0;x!=p.length;++x)o[0][x]=p[x].name;for(;u-- >0;)if(42!==i[i.l])for(++i.l,o[++w]=[],x=0,x=0;x!=p.length;++x){var A=i.slice(i.l,i.l+p[x].len);i.l+=p[x].len,Vr(A,0);var k=t.utils.decode(d,A);switch(p[x].type){case"C":k.trim().length&&(o[w][x]=k.replace(/\s+$/,""));break;case"D":8===k.length?o[w][x]=new Date(+k.slice(0,4),+k.slice(4,6)-1,+k.slice(6,8)):o[w][x]=k;break;case"F":o[w][x]=parseFloat(k.trim());break;case"+":case"I":o[w][x]=l?2147483648^A._R(-4,"i"):A._R(4,"i");break;case"L":switch(k.trim().toUpperCase()){case"Y":case"T":o[w][x]=!0;break;case"N":case"F":o[w][x]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+k+"|")}break;case"M":if(!s)throw new Error("DBF Unexpected MEMO for type "+a.toString(16));o[w][x]="##MEMO##"+(l?parseInt(k.trim(),10):A._R(4));break;case"N":(k=k.replace(/\u0000/g,"").trim())&&"."!=k&&(o[w][x]=+k||0);break;case"@":o[w][x]=new Date(A._R(-8,"f")-621356832e5);break;case"T":o[w][x]=new Date(864e5*(A._R(4)-2440588)+A._R(4));break;case"Y":o[w][x]=A._R(4,"i")/1e4+A._R(4,"i")/1e4*Math.pow(2,32);break;case"O":o[w][x]=-A._R(-8,"f");break;case"B":if(c&&8==p[x].len){o[w][x]=A._R(8,"f");break}case"G":case"P":A.l+=p[x].len;break;case"0":if("_NullFlags"===p[x].name)break;default:throw new Error("DBF Unsupported data type "+p[x].type)}}else i.l+=h;if(2!=a&&i.l<i.length&&26!=i[i.l++])throw new Error("DBF EOF Marker missing "+(i.l-1)+" of "+i.length+" "+i[i.l-1].toString(16));return n&&n.sheetRows&&(o=o.slice(0,n.sheetRows)),n.DBF=p,o}function i(e,t){var r=t||{};r.dateNF||(r.dateNF="yyyymmdd");var n=pn(o(e,r),r);return n["!cols"]=r.DBF.map((function(e){return{wch:e.len,DBF:e}})),delete r.DBF,n}var a={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(e,t){try{return hn(i(e,t),t)}catch(e){if(t&&t.WTF)throw e}return{SheetNames:[],Sheets:{}}},to_sheet:i,from_sheet:function(e,t){var o=t||{};if(+o.codepage>=0&&s(+o.codepage),"string"==o.type)throw new Error("Cannot write DBF to JS string");var i=Xr(),c=Lf(e,{header:1,raw:!0,cellDates:!0}),l=c[0],u=c.slice(1),f=e["!cols"]||[],h=0,d=0,p=0,g=1;for(h=0;h<l.length;++h)if(((f[h]||{}).DBF||{}).name)l[h]=f[h].DBF.name,++p;else if(null!=l[h]){if(++p,"number"==typeof l[h]&&(l[h]=l[h].toString(10)),"string"!=typeof l[h])throw new Error("DBF Invalid column name "+l[h]+" |"+typeof l[h]+"|");if(l.indexOf(l[h])!==h)for(d=0;d<1024;++d)if(-1==l.indexOf(l[h]+"_"+d)){l[h]+="_"+d;break}}var m=ln(e["!ref"]),v=[],b=[],y=[];for(h=0;h<=m.e.c-m.s.c;++h){var w="",S="",x=0,A=[];for(d=0;d<u.length;++d)null!=u[d][h]&&A.push(u[d][h]);if(0!=A.length&&null!=l[h]){for(d=0;d<A.length;++d){switch(typeof A[d]){case"number":S="B";break;case"string":default:S="C";break;case"boolean":S="L";break;case"object":S=A[d]instanceof Date?"D":"C"}x=Math.max(x,String(A[d]).length),w=w&&w!=S?"C":S}x>250&&(x=250),"C"==(S=((f[h]||{}).DBF||{}).type)&&f[h].DBF.len>x&&(x=f[h].DBF.len),"B"==w&&"N"==S&&(w="N",y[h]=f[h].DBF.dec,x=f[h].DBF.len),b[h]="C"==w||"N"==S?x:a[w]||0,g+=b[h],v[h]=w}else v[h]="?"}var k=i.next(32);for(k._W(4,318902576),k._W(4,u.length),k._W(2,296+32*p),k._W(2,g),h=0;h<4;++h)k._W(4,0);for(k._W(4,0|(+r[n]||3)<<8),h=0,d=0;h<l.length;++h)if(null!=l[h]){var T=i.next(32),E=(l[h].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);T._W(1,E,"sbcs"),T._W(1,"?"==v[h]?"C":v[h],"sbcs"),T._W(4,d),T._W(1,b[h]||a[v[h]]||0),T._W(1,y[h]||0),T._W(1,2),T._W(4,0),T._W(1,0),T._W(4,0),T._W(4,0),d+=b[h]||a[v[h]]||0}var _=i.next(264);for(_._W(4,13),h=0;h<65;++h)_._W(4,0);for(h=0;h<u.length;++h){var O=i.next(g);for(O._W(1,0),d=0;d<l.length;++d)if(null!=l[d])switch(v[d]){case"L":O._W(1,null==u[h][d]?63:u[h][d]?84:70);break;case"B":O._W(8,u[h][d]||0,"f");break;case"N":var N="0";for("number"==typeof u[h][d]&&(N=u[h][d].toFixed(y[d]||0)),p=0;p<b[d]-N.length;++p)O._W(1,32);O._W(1,N,"sbcs");break;case"D":u[h][d]?(O._W(4,("0000"+u[h][d].getFullYear()).slice(-4),"sbcs"),O._W(2,("00"+(u[h][d].getMonth()+1)).slice(-2),"sbcs"),O._W(2,("00"+u[h][d].getDate()).slice(-2),"sbcs")):O._W(8,"00000000","sbcs");break;case"C":var C=String(null!=u[h][d]?u[h][d]:"").slice(0,b[d]);for(O._W(1,C,"sbcs"),p=0;p<b[d]-C.length;++p)O._W(1,32)}}return i.next(1)._W(1,26),i.end()}}}(),Ui=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},r=new RegExp("N("+Oe(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(t,r){var n=e[r];return"number"==typeof n?d(n):n},o=function(e,t,r){var n=t.charCodeAt(0)-32<<4|r.charCodeAt(0)-48;return 59==n?e:d(n)};function i(e,t){switch(t.type){case"base64":return a(m(e),t);case"binary":return a(e,t);case"buffer":return a(v&&Buffer.isBuffer(e)?e.toString("binary"):A(e),t);case"array":return a(ze(e),t)}throw new Error("Unrecognized type "+t.type)}function a(e,i){var a,c=e.split(/[\n\r]+/),l=-1,u=-1,f=0,h=0,d=[],p=[],g=null,m={},v=[],b=[],y=[],w=0;for(+i.codepage>=0&&s(+i.codepage);f!==c.length;++f){w=0;var S,x=c[f].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,o).replace(r,n),A=x.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),k=A[0];if(x.length>0)switch(k){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==A[1].charAt(0)&&p.push(x.slice(3).replace(/;;/g,";"));break;case"C":var T=!1,E=!1,_=!1,O=!1,N=-1,C=-1;for(h=1;h<A.length;++h)switch(A[h].charAt(0)){case"A":case"G":break;case"X":u=parseInt(A[h].slice(1))-1,E=!0;break;case"Y":for(l=parseInt(A[h].slice(1))-1,E||(u=0),a=d.length;a<=l;++a)d[a]=[];break;case"K":'"'===(S=A[h].slice(1)).charAt(0)?S=S.slice(1,S.length-1):"TRUE"===S?S=!0:"FALSE"===S?S=!1:isNaN($e(S))?isNaN(Xe(S).getDate())||(S=He(S)):(S=$e(S),null!==g&&he(g)&&(S=De(S))),void 0!==t&&"string"==typeof S&&"string"!=(i||{}).type&&(i||{}).codepage&&(S=t.utils.decode(i.codepage,S)),T=!0;break;case"E":O=!0;var R=ys(A[h].slice(1),{r:l,c:u});d[l][u]=[d[l][u],R];break;case"S":_=!0,d[l][u]=[d[l][u],"S5S"];break;case"R":N=parseInt(A[h].slice(1))-1;break;case"C":C=parseInt(A[h].slice(1))-1;break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+x)}if(T&&(d[l][u]&&2==d[l][u].length?d[l][u][0]=S:d[l][u]=S,g=null),_){if(O)throw new Error("SYLK shared formula cannot have own formula");var P=N>-1&&d[N][C];if(!P||!P[1])throw new Error("SYLK shared formula cannot find base");d[l][u][1]=xs(P[1],{r:l-N,c:u-C})}break;case"F":var L=0;for(h=1;h<A.length;++h)switch(A[h].charAt(0)){case"X":u=parseInt(A[h].slice(1))-1,++L;break;case"Y":for(l=parseInt(A[h].slice(1))-1,a=d.length;a<=l;++a)d[a]=[];break;case"M":w=parseInt(A[h].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":g=p[parseInt(A[h].slice(1))];break;case"W":for(y=A[h].slice(1).split(" "),a=parseInt(y[0],10);a<=parseInt(y[1],10);++a)w=parseInt(y[2],10),b[a-1]=0===w?{hidden:!0}:{wch:w},Oa(b[a-1]);break;case"C":b[u=parseInt(A[h].slice(1))-1]||(b[u]={});break;case"R":v[l=parseInt(A[h].slice(1))-1]||(v[l]={}),w>0?(v[l].hpt=w,v[l].hpx=Ca(w)):0===w&&(v[l].hidden=!0);break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+x)}L<1&&(g=null);break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+x)}}return v.length>0&&(m["!rows"]=v),b.length>0&&(m["!cols"]=b),i&&i.sheetRows&&(d=d.slice(0,i.sheetRows)),[d,m]}function c(e,t){var r=i(e,t),n=r[0],o=r[1],a=pn(n,t);return Oe(o).forEach((function(e){a[e]=o[e]})),a}function l(e,t,r,n){var o="C;Y"+(r+1)+";X"+(n+1)+";K";switch(e.t){case"n":o+=e.v||0,e.f&&!e.F&&(o+=";E"+Ss(e.f,{r:r,c:n}));break;case"b":o+=e.v?"TRUE":"FALSE";break;case"e":o+=e.w||e.v;break;case"d":o+='"'+(e.w||e.v)+'"';break;case"s":o+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return o}return e["|"]=254,{to_workbook:function(e,t){return hn(c(e,t),t)},to_sheet:c,from_sheet:function(e,t){var r,n=["ID;PWXL;N;E"],o=[],i=ln(e["!ref"]),a=Array.isArray(e),s="\r\n";n.push("P;PGeneral"),n.push("F;P0;DG0G8;M255"),e["!cols"]&&function(e,t){t.forEach((function(t,r){var n="F;W"+(r+1)+" "+(r+1)+" ";t.hidden?n+="0":("number"!=typeof t.width||t.wpx||(t.wpx=Aa(t.width)),"number"!=typeof t.wpx||t.wch||(t.wch=ka(t.wpx)),"number"==typeof t.wch&&(n+=Math.round(t.wch)))," "!=n.charAt(n.length-1)&&e.push(n)}))}(n,e["!cols"]),e["!rows"]&&function(e,t){t.forEach((function(t,r){var n="F;";t.hidden?n+="M0;":t.hpt?n+="M"+20*t.hpt+";":t.hpx&&(n+="M"+20*Na(t.hpx)+";"),n.length>2&&e.push(n+"R"+(r+1))}))}(n,e["!rows"]),n.push("B;Y"+(i.e.r-i.s.r+1)+";X"+(i.e.c-i.s.c+1)+";D"+[i.s.c,i.s.r,i.e.c,i.e.r].join(" "));for(var c=i.s.r;c<=i.e.r;++c)for(var u=i.s.c;u<=i.e.c;++u){var f=an({r:c,c:u});(r=a?(e[c]||[])[u]:e[f])&&(null!=r.v||r.f&&!r.F)&&o.push(l(r,0,c,u))}return n.join(s)+s+o.join(s)+s+"E"+s}}}(),Hi=function(){function e(e,r){switch(r.type){case"base64":return t(m(e),r);case"binary":return t(e,r);case"buffer":return t(v&&Buffer.isBuffer(e)?e.toString("binary"):A(e),r);case"array":return t(ze(e),r)}throw new Error("Unrecognized type "+r.type)}function t(e,t){for(var r=e.split("\n"),n=-1,o=-1,i=0,a=[];i!==r.length;++i)if("BOT"!==r[i].trim()){if(!(n<0)){for(var s=r[i].trim().split(","),c=s[0],l=s[1],u=r[++i]||"";1&(u.match(/["]/g)||[]).length&&i<r.length-1;)u+="\n"+r[++i];switch(u=u.trim(),+c){case-1:if("BOT"===u){a[++n]=[],o=0;continue}if("EOD"!==u)throw new Error("Unrecognized DIF special command "+u);break;case 0:"TRUE"===u?a[n][o]=!0:"FALSE"===u?a[n][o]=!1:isNaN($e(l))?isNaN(Xe(l).getDate())?a[n][o]=l:a[n][o]=He(l):a[n][o]=$e(l),++o;break;case 1:(u=(u=u.slice(1,u.length-1)).replace(/""/g,'"'))&&u.match(/^=".*"$/)&&(u=u.slice(2,-1)),a[n][o++]=""!==u?u:null}if("EOD"===u)break}}else a[++n]=[],o=0;return t&&t.sheetRows&&(a=a.slice(0,t.sheetRows)),a}function r(t,r){return pn(e(t,r),r)}var n=function(){var e=function(e,t,r,n,o){e.push(t),e.push(r+","+n),e.push('"'+o.replace(/"/g,'""')+'"')},t=function(e,t,r,n){e.push(t+","+r),e.push(1==t?'"'+n.replace(/"/g,'""')+'"':n)};return function(r){var n,o=[],i=ln(r["!ref"]),a=Array.isArray(r);e(o,"TABLE",0,1,"sheetjs"),e(o,"VECTORS",0,i.e.r-i.s.r+1,""),e(o,"TUPLES",0,i.e.c-i.s.c+1,""),e(o,"DATA",0,0,"");for(var s=i.s.r;s<=i.e.r;++s){t(o,-1,0,"BOT");for(var c=i.s.c;c<=i.e.c;++c){var l=an({r:s,c:c});if(n=a?(r[s]||[])[c]:r[l])switch(n.t){case"n":var u=n.w;u||null==n.v||(u=n.v),null==u?n.f&&!n.F?t(o,1,0,"="+n.f):t(o,1,0,""):t(o,0,u,"V");break;case"b":t(o,0,n.v?1:0,n.v?"TRUE":"FALSE");break;case"s":t(o,1,0,isNaN(n.v)?n.v:'="'+n.v+'"');break;case"d":n.w||(n.w=me(n.z||D[14],Le(He(n.v)))),t(o,0,n.w,"V");break;default:t(o,1,0,"")}else t(o,1,0,"")}}t(o,-1,0,"EOD");return o.join("\r\n")}}();return{to_workbook:function(e,t){return hn(r(e,t),t)},to_sheet:r,from_sheet:n}}(),zi=function(){function e(e){return e.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n")}function t(e){return e.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(t,r){for(var n=t.split("\n"),o=-1,i=-1,a=0,s=[];a!==n.length;++a){var c=n[a].trim().split(":");if("cell"===c[0]){var l=on(c[1]);if(s.length<=l.r)for(o=s.length;o<=l.r;++o)s[o]||(s[o]=[]);switch(o=l.r,i=l.c,c[2]){case"t":s[o][i]=e(c[3]);break;case"v":s[o][i]=+c[3];break;case"vtf":var u=c[c.length-1];case"vtc":if("nl"===c[3])s[o][i]=!!+c[4];else s[o][i]=+c[4];"vtf"==c[2]&&(s[o][i]=[s[o][i],u])}}}return r&&r.sheetRows&&(s=s.slice(0,r.sheetRows)),s}function n(e,t){return pn(r(e,t),t)}var o=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),i=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",a=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),s="--SocialCalcSpreadsheetControlSave--";function c(e){if(!e||!e["!ref"])return"";for(var r,n=[],o=[],i="",a=sn(e["!ref"]),s=Array.isArray(e),c=a.s.r;c<=a.e.r;++c)for(var l=a.s.c;l<=a.e.c;++l)if(i=an({r:c,c:l}),(r=s?(e[c]||[])[l]:e[i])&&null!=r.v&&"z"!==r.t){switch(o=["cell",i,"t"],r.t){case"s":case"str":o.push(t(r.v));break;case"n":r.f?(o[2]="vtf",o[3]="n",o[4]=r.v,o[5]=t(r.f)):(o[2]="v",o[3]=r.v);break;case"b":o[2]="vt"+(r.f?"f":"c"),o[3]="nl",o[4]=r.v?"1":"0",o[5]=t(r.f||(r.v?"TRUE":"FALSE"));break;case"d":var u=Le(He(r.v));o[2]="vtc",o[3]="nd",o[4]=""+u,o[5]=r.w||me(r.z||D[14],u);break;case"e":continue}n.push(o.join(":"))}return n.push("sheet:c:"+(a.e.c-a.s.c+1)+":r:"+(a.e.r-a.s.r+1)+":tvf:1"),n.push("valueformat:1:text-wiki"),n.join("\n")}return{to_workbook:function(e,t){return hn(n(e,t),t)},to_sheet:n,from_sheet:function(e){return[o,i,a,i,c(e),s].join("\n")}}}(),Vi=function(){function e(e,t,r,n,o){o.raw?t[r][n]=e:""===e||("TRUE"===e?t[r][n]=!0:"FALSE"===e?t[r][n]=!1:isNaN($e(e))?isNaN(Xe(e).getDate())?t[r][n]=e:t[r][n]=He(e):t[r][n]=$e(e))}function r(t,r){var n=r||{},o=[];if(!t||0===t.length)return o;for(var i=t.split(/[\r\n]/),a=i.length-1;a>=0&&0===i[a].length;)--a;for(var s=10,c=0,l=0;l<=a;++l)-1==(c=i[l].indexOf(" "))?c=i[l].length:c++,s=Math.max(s,c);for(l=0;l<=a;++l){o[l]=[];var u=0;for(e(i[l].slice(0,s).trim(),o,l,u,n),u=1;u<=(i[l].length-s)/10+1;++u)e(i[l].slice(s+10*(u-1),s+10*u).trim(),o,l,u,n)}return n.sheetRows&&(o=o.slice(0,n.sheetRows)),o}var n={44:",",9:"\t",59:";",124:"|"},o={44:3,9:2,59:1,124:0};function i(e){for(var t={},r=!1,i=0,a=0;i<e.length;++i)34==(a=e.charCodeAt(i))?r=!r:!r&&a in n&&(t[a]=(t[a]||0)+1);for(i in a=[],t)Object.prototype.hasOwnProperty.call(t,i)&&a.push([t[i],i]);if(!a.length)for(i in t=o)Object.prototype.hasOwnProperty.call(t,i)&&a.push([t[i],i]);return a.sort((function(e,t){return e[0]-t[0]||o[e[1]]-o[t[1]]})),n[a.pop()[1]]||44}function a(e,t){var r=t||{},n="";var o=r.dense?[]:{},a={s:{c:0,r:0},e:{c:0,r:0}};"sep="==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(n=e.charAt(4),e=e.slice(7)):13==e.charCodeAt(5)||10==e.charCodeAt(5)?(n=e.charAt(4),e=e.slice(6)):n=i(e.slice(0,1024)):n=r&&r.FS?r.FS:i(e.slice(0,1024));var s=0,c=0,l=0,u=0,f=0,h=n.charCodeAt(0),d=!1,p=0,g=e.charCodeAt(0);e=e.replace(/\r\n/gm,"\n");var m=null!=r.dateNF?function(e){var t="number"==typeof e?D[e]:e;return t=t.replace(xe,"(\\d+)"),new RegExp("^"+t+"$")}(r.dateNF):null;function v(){var t=e.slice(u,f),n={};if('"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.slice(1,-1).replace(/""/g,'"')),0===t.length)n.t="z";else if(r.raw)n.t="s",n.v=t;else if(0===t.trim().length)n.t="s",n.v=t;else if(61==t.charCodeAt(0))34==t.charCodeAt(1)&&34==t.charCodeAt(t.length-1)?(n.t="s",n.v=t.slice(2,-1).replace(/""/g,'"')):!function(e){return 1!=e.length}(t)?(n.t="s",n.v=t):(n.t="n",n.f=t.slice(1));else if("TRUE"==t)n.t="b",n.v=!0;else if("FALSE"==t)n.t="b",n.v=!1;else if(isNaN(l=$e(t)))if(!isNaN(Xe(t).getDate())||m&&t.match(m)){n.z=r.dateNF||D[14];var i=0;m&&t.match(m)&&(t=function(e,t,r){var n=-1,o=-1,i=-1,a=-1,s=-1,c=-1;(t.match(xe)||[]).forEach((function(e,t){var l=parseInt(r[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":n=l;break;case"d":i=l;break;case"h":a=l;break;case"s":c=l;break;case"m":a>=0?s=l:o=l}})),c>=0&&-1==s&&o>=0&&(s=o,o=-1);var l=(""+(n>=0?n:(new Date).getFullYear())).slice(-4)+"-"+("00"+(o>=1?o:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);7==l.length&&(l="0"+l),8==l.length&&(l="20"+l);var u=("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return-1==a&&-1==s&&-1==c?l:-1==n&&-1==o&&-1==i?u:l+"T"+u}(0,r.dateNF,t.match(m)||[]),i=1),r.cellDates?(n.t="d",n.v=He(t,i)):(n.t="n",n.v=Le(He(t,i))),!1!==r.cellText&&(n.w=me(n.z,n.v instanceof Date?Le(n.v):n.v)),r.cellNF||delete n.z}else n.t="s",n.v=t;else n.t="n",!1!==r.cellText&&(n.w=t),n.v=l;if("z"==n.t||(r.dense?(o[s]||(o[s]=[]),o[s][c]=n):o[an({c:c,r:s})]=n),u=f+1,g=e.charCodeAt(u),a.e.c<c&&(a.e.c=c),a.e.r<s&&(a.e.r=s),p==h)++c;else if(c=0,++s,r.sheetRows&&r.sheetRows<=s)return!0}e:for(;f<e.length;++f)switch(p=e.charCodeAt(f)){case 34:34===g&&(d=!d);break;case h:case 10:case 13:if(!d&&v())break e}return f-u>0&&v(),o["!ref"]=cn(a),o}function s(e,t){return t&&t.PRN?t.FS||"sep="==e.slice(0,4)||e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0?a(e,t):pn(r(e,t),t):a(e,t)}function c(e,r){var n="",o="string"==r.type?[0,0,0,0]:bf(e,r);switch(r.type){case"base64":n=m(e);break;case"binary":case"string":n=e;break;case"buffer":n=65001==r.codepage?e.toString("utf8"):r.codepage&&void 0!==t?t.utils.decode(r.codepage,e):v&&Buffer.isBuffer(e)?e.toString("binary"):A(e);break;case"array":n=ze(e);break;default:throw new Error("Unrecognized type "+r.type)}return 239==o[0]&&187==o[1]&&191==o[2]?n=Rt(n.slice(3)):"string"!=r.type&&"buffer"!=r.type&&65001==r.codepage?n=Rt(n):"binary"==r.type&&void 0!==t&&r.codepage&&(n=t.utils.decode(r.codepage,t.utils.encode(28591,n))),"socialcalc:version:"==n.slice(0,19)?zi.to_sheet("string"==r.type?n:Rt(n),r):s(n,r)}return{to_workbook:function(e,t){return hn(c(e,t),t)},to_sheet:c,from_sheet:function(e){for(var t,r=[],n=ln(e["!ref"]),o=Array.isArray(e),i=n.s.r;i<=n.e.r;++i){for(var a=[],s=n.s.c;s<=n.e.c;++s){var c=an({r:i,c:s});if((t=o?(e[i]||[])[s]:e[c])&&null!=t.v){for(var l=(t.w||(fn(t),t.w)||"").slice(0,10);l.length<10;)l+=" ";a.push(l+(0===s?" ":""))}else a.push(" ")}r.push(a.join(""))}return r.join("\n")}}}();var qi=function(){function e(e,t,r){if(e){Vr(e,e.l||0);for(var n=r.Enum||y;e.l<e.length;){var o=e._R(2),i=n[o]||n[65535],a=e._R(2),s=e.l+a,c=i.f&&i.f(e,a,r);if(e.l=s,t(c,i,o))return}}}function t(t,r){if(!t)return t;var n=r||{};var o=n.dense?[]:{},i="Sheet1",a="",s=0,c={},l=[],u=[],f={s:{r:0,c:0},e:{r:0,c:0}},h=n.sheetRows||0;if(0==t[2]&&(8==t[3]||9==t[3])&&t.length>=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])n.Enum=y,e(t,(function(e,t,r){switch(r){case 0:n.vers=e,e>=4096&&(n.qpro=!0);break;case 6:f=e;break;case 204:e&&(a=e);break;case 222:a=e;break;case 15:case 51:n.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==r&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=n.dateNF||D[14],n.cellDates&&(e[1].t="d",e[1].v=De(e[1].v))),n.qpro&&e[3]>s&&(o["!ref"]=cn(f),c[i]=o,l.push(i),o=n.dense?[]:{},f={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],i=a||"Sheet"+(s+1),a="");var u=n.dense?(o[e[0].r]||[])[e[0].c]:o[an(e[0])];if(u){u.t=e[1].t,u.v=e[1].v,null!=e[1].z&&(u.z=e[1].z),null!=e[1].f&&(u.f=e[1].f);break}n.dense?(o[e[0].r]||(o[e[0].r]=[]),o[e[0].r][e[0].c]=e[1]):o[an(e[0])]=e[1]}}),n);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);n.Enum=w,14==t[2]&&(n.qpro=!0,t.l=0),e(t,(function(e,t,r){switch(r){case 204:i=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>s&&(o["!ref"]=cn(f),c[i]=o,l.push(i),o=n.dense?[]:{},f={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],i="Sheet"+(s+1)),h>0&&e[0].r>=h)break;n.dense?(o[e[0].r]||(o[e[0].r]=[]),o[e[0].r][e[0].c]=e[1]):o[an(e[0])]=e[1],f.e.c<e[0].c&&(f.e.c=e[0].c),f.e.r<e[0].r&&(f.e.r=e[0].r);break;case 27:e[14e3]&&(u[e[14e3][0]]=e[14e3][1]);break;case 1537:u[e[0]]=e[1],e[0]==s&&(i=e[1])}}),n)}if(o["!ref"]=cn(f),c[a||i]=o,l.push(a||i),!u.length)return{SheetNames:l,Sheets:c};for(var d={},p=[],g=0;g<u.length;++g)c[l[g]]?(p.push(u[g]||l[g]),d[u[g]]=c[u[g]]||c[l[g]]):(p.push(u[g]),d[u[g]]={"!ref":"A1"});return{SheetNames:p,Sheets:d}}function r(e,t,r){var n=[{c:0,r:0},{t:"n",v:0},0,0];return r.qpro&&20768!=r.vers?(n[0].c=e._R(1),n[3]=e._R(1),n[0].r=e._R(2),e.l+=2):(n[2]=e._R(1),n[0].c=e._R(2),n[0].r=e._R(2)),n}function n(e,t,n){var o=e.l+t,i=r(e,0,n);if(i[1].t="s",20768==n.vers){e.l++;var a=e._R(1);return i[1].v=e._R(a,"utf8"),i}return n.qpro&&e.l++,i[1].v=e._R(o-e.l,"cstr"),i}function o(e,t,r){var n=$r(7+r.length);n._W(1,255),n._W(2,t),n._W(2,e),n._W(1,39);for(var o=0;o<n.length;++o){var i=r.charCodeAt(o);n._W(1,i>=128?95:i)}return n._W(1,0),n}function i(e,t,r){var n=$r(7);return n._W(1,255),n._W(2,t),n._W(2,e),n._W(2,r,"i"),n}function a(e,t,r){var n=$r(13);return n._W(1,255),n._W(2,t),n._W(2,e),n._W(8,r,"f"),n}function c(e,t,r){var n=32768&t;return t=(n?e:0)+((t&=-32769)>=8192?t-16384:t),(n?"":"$")+(r?nn(t):tn(t))}var l={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},u=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function f(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e._R(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function h(e,t,r,n){var o=$r(6+n.length);o._W(2,e),o._W(1,r),o._W(1,t),o._W(1,39);for(var i=0;i<n.length;++i){var a=n.charCodeAt(i);o._W(1,a>=128?95:a)}return o._W(1,0),o}function d(e,t){var r=f(e),n=e._R(4),o=e._R(4),i=e._R(2);if(65535==i)return 0===n&&3221225472===o?(r[1].t="e",r[1].v=15):0===n&&3489660928===o?(r[1].t="e",r[1].v=42):r[1].v=0,r;var a=32768&i;return i=(32767&i)-16446,r[1].v=(1-2*a)*(o*Math.pow(2,i+32)+n*Math.pow(2,i)),r}function p(e,t,r,n){var o=$r(14);if(o._W(2,e),o._W(1,r),o._W(1,t),0==n)return o._W(4,0),o._W(4,0),o._W(2,65535),o;var i,a=0,s=0,c=0;return n<0&&(a=1,n=-n),s=0|Math.log2(n),0==(2147483648&(c=(n/=Math.pow(2,s-31))>>>0))&&(++s,c=(n/=2)>>>0),n-=c,c|=2147483648,c>>>=0,i=(n*=Math.pow(2,32))>>>0,o._W(4,i),o._W(4,c),s+=16383+(a?32768:0),o._W(2,s),o}function g(e,t){var r=f(e),n=e._R(8,"f");return r[1].v=n,r}function v(e,t){return 0==e[e.l+t-1]?e._R(t,"cstr"):""}function b(e,t){var r=$r(5+e.length);r._W(2,14e3),r._W(2,t);for(var n=0;n<e.length;++n){var o=e.charCodeAt(n);r[r.l++]=o>127?95:o}return r[r.l++]=0,r}var y={0:{n:"BOF",f:zo},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,r){var n={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&r.qpro?(n.s.c=e._R(1),e.l++,n.s.r=e._R(2),n.e.c=e._R(1),e.l++,n.e.r=e._R(2),n):(n.s.c=e._R(2),n.s.r=e._R(2),12==t&&r.qpro&&(e.l+=2),n.e.c=e._R(2),n.e.r=e._R(2),12==t&&r.qpro&&(e.l+=2),65535==n.s.c&&(n.s.c=n.e.c=n.s.r=n.e.r=0),n)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,t,n){var o=r(e,0,n);return o[1].v=e._R(2,"i"),o}},14:{n:"NUMBER",f:function(e,t,n){var o=r(e,0,n);return o[1].v=e._R(8,"f"),o}},15:{n:"LABEL",f:n},16:{n:"FORMULA",f:function(e,t,n){var o=e.l+t,i=r(e,0,n);if(i[1].v=e._R(8,"f"),n.qpro)e.l=o;else{var a=e._R(2);!function(e,t){Vr(e,0);var r=[],n=0,o="",i="",a="",s="";for(;e.l<e.length;){var f=e[e.l++];switch(f){case 0:r.push(e._R(8,"f"));break;case 1:i=c(t[0].c,e._R(2),!0),o=c(t[0].r,e._R(2),!1),r.push(i+o);break;case 2:var h=c(t[0].c,e._R(2),!0),d=c(t[0].r,e._R(2),!1);i=c(t[0].c,e._R(2),!0),o=c(t[0].r,e._R(2),!1),r.push(h+d+":"+i+o);break;case 3:if(e.l<e.length)return void console.error("WK1 premature formula end");break;case 4:r.push("("+r.pop()+")");break;case 5:r.push(e._R(2));break;case 6:for(var p="";f=e[e.l++];)p+=String.fromCharCode(f);r.push('"'+p.replace(/"/g,'""')+'"');break;case 8:r.push("-"+r.pop());break;case 23:r.push("+"+r.pop());break;case 22:r.push("NOT("+r.pop()+")");break;case 20:case 21:s=r.pop(),a=r.pop(),r.push(["AND","OR"][f-20]+"("+a+","+s+")");break;default:if(f<32&&u[f])s=r.pop(),a=r.pop(),r.push(a+u[f]+s);else{if(!l[f])return f<=7?console.error("WK1 invalid opcode "+f.toString(16)):f<=24?console.error("WK1 unsupported op "+f.toString(16)):f<=30?console.error("WK1 invalid opcode "+f.toString(16)):f<=115?console.error("WK1 unsupported function opcode "+f.toString(16)):console.error("WK1 unrecognized opcode "+f.toString(16));if(69==(n=l[f][1])&&(n=e[e.l++]),n>r.length)return void console.error("WK1 bad formula parse 0x"+f.toString(16)+":|"+r.join("|")+"|");var g=r.slice(-n);r.length-=n,r.push(l[f][0]+"("+g.join(",")+")")}}}1==r.length?t[1].f=""+r[0]:console.error("WK1 bad formula parse |"+r.join("|")+"|")}(e.slice(e.l,e.l+a),i),e.l+=a}return i}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:n},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:v},222:{n:"SHEETNAMELP",f:function(e,t){var r=e[e.l++];r>t-1&&(r=t-1);for(var n="";n.length<r;)n+=String.fromCharCode(e[e.l++]);return n}},65535:{n:""}},w={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(e,t){var r=f(e);return r[1].t="s",r[1].v=e._R(t-4,"cstr"),r}},23:{n:"NUMBER17",f:d},24:{n:"NUMBER18",f:function(e,t){var r=f(e);r[1].v=e._R(2);var n=r[1].v>>1;if(1&r[1].v)switch(7&n){case 0:n=5e3*(n>>3);break;case 1:n=500*(n>>3);break;case 2:n=(n>>3)/20;break;case 3:n=(n>>3)/200;break;case 4:n=(n>>3)/2e3;break;case 5:n=(n>>3)/2e4;break;case 6:n=(n>>3)/16;break;case 7:n=(n>>3)/64}return r[1].v=n,r}},25:{n:"FORMULA19",f:function(e,t){var r=d(e);return e.l+=t-14,r}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var r={},n=e.l+t;e.l<n;){var o=e._R(2);if(14e3==o){for(r[o]=[0,""],r[o][0]=e._R(2);e[e.l];)r[o][1]+=String.fromCharCode(e[e.l]),e.l++;e.l++}}return r}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(e,t){var r=f(e),n=e._R(4);return r[1].v=n>>6,r}},38:{n:"??"},39:{n:"NUMBER27",f:g},40:{n:"FORMULA28",f:function(e,t){var r=g(e);return e.l+=t-10,r}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:v},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(e,t,r){if(r.qpro&&!(t<21)){var n=e._R(1);return e.l+=17,e.l+=1,e.l+=2,[n,e._R(t-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,t){var r=t||{};if(+r.codepage>=0&&s(+r.codepage),"string"==r.type)throw new Error("Cannot write WK1 to JS string");var n=Xr(),c=ln(e["!ref"]),l=Array.isArray(e),u=[];su(n,0,function(e){var t=$r(2);return t._W(2,e),t}(1030)),su(n,6,function(e){var t=$r(8);return t._W(2,e.s.c),t._W(2,e.s.r),t._W(2,e.e.c),t._W(2,e.e.r),t}(c));for(var f=Math.min(c.e.r,8191),h=c.s.r;h<=f;++h)for(var d=tn(h),p=c.s.c;p<=c.e.c;++p){h===c.s.r&&(u[p]=nn(p));var g=u[p]+d,m=l?(e[h]||[])[p]:e[g];if(m&&"z"!=m.t)if("n"==m.t)(0|m.v)==m.v&&m.v>=-32768&&m.v<=32767?su(n,13,i(h,p,m.v)):su(n,14,a(h,p,m.v));else su(n,15,o(h,p,fn(m).slice(0,239)))}return su(n,1),n.end()},book_to_wk3:function(e,t){var r=t||{};if(+r.codepage>=0&&s(+r.codepage),"string"==r.type)throw new Error("Cannot write WK3 to JS string");var n=Xr();su(n,0,function(e){var t=$r(26);t._W(2,4096),t._W(2,4),t._W(4,0);for(var r=0,n=0,o=0,i=0;i<e.SheetNames.length;++i){var a=e.SheetNames[i],s=e.Sheets[a];if(s&&s["!ref"]){++o;var c=sn(s["!ref"]);r<c.e.r&&(r=c.e.r),n<c.e.c&&(n=c.e.c)}}r>8191&&(r=8191);return t._W(2,r),t._W(1,o),t._W(1,n),t._W(2,0),t._W(2,0),t._W(1,1),t._W(1,2),t._W(4,0),t._W(4,0),t}(e));for(var o=0,i=0;o<e.SheetNames.length;++o)(e.Sheets[e.SheetNames[o]]||{})["!ref"]&&su(n,27,b(e.SheetNames[o],i++));var a=0;for(o=0;o<e.SheetNames.length;++o){var c=e.Sheets[e.SheetNames[o]];if(c&&c["!ref"]){for(var l=ln(c["!ref"]),u=Array.isArray(c),f=[],d=Math.min(l.e.r,8191),g=l.s.r;g<=d;++g)for(var m=tn(g),v=l.s.c;v<=l.e.c;++v){g===l.s.r&&(f[v]=nn(v));var y=f[v]+m,w=u?(c[g]||[])[v]:c[y];if(w&&"z"!=w.t)if("n"==w.t)su(n,23,p(g,v,a,w.v));else su(n,22,h(g,v,a,fn(w).slice(0,239)))}++a}}return su(n,1),n.end()},to_workbook:function(e,r){switch(r.type){case"base64":return t(S(m(e)),r);case"binary":return t(S(e),r);case"buffer":case"array":return t(e,r)}throw"Unsupported type "+r.type}}}();function $i(e){var t={},r=e.match(ft),n=0,o=!1;if(r)for(;n!=r.length;++n){var a=pt(r[n]);switch(a[0].replace(/\w*:/g,"")){case"<condense":case"<extend":break;case"<shadow":if(!a.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if("1"==a.val)break;t.cp=i[parseInt(a.val,10)];break;case"<outline":if(!a.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=a.val;break;case"<sz":t.sz=a.val;break;case"<strike":if(!a.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!a.val)break;switch(a.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting"}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if("0"==a.val)break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if("0"==a.val)break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":a.rgb&&(t.color=a.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=a.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=a.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":case"<scheme":case"<scheme>":case"<scheme/>":case"</scheme>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":o=!0;break;case"</ext>":o=!1;break;default:if(47!==a[0].charCodeAt(1)&&!o)throw new Error("Unrecognized rich format "+a[0])}}return t}var Gi=function(){var e=Lt("t"),t=Lt("rPr");function r(r){var n=r.match(e);if(!n)return{t:"s",v:""};var o={t:"s",v:bt(n[1])},i=r.match(t);return i&&(o.s=$i(i[1])),o}var n=/<(?:\w+:)?r>/g,o=/<\/(?:\w+:)?r>/;return function(e){return e.replace(n,"").split(o).map(r).filter((function(e){return e.v}))}}(),Xi=function(){var e=/(\r\n|\n)/g;function t(t){var r=[[],t.v,[]];return t.v?(t.s&&function(e,t,r){var n=[];e.u&&n.push("text-decoration: underline;"),e.uval&&n.push("text-underline-style:"+e.uval+";"),e.sz&&n.push("font-size:"+e.sz+"pt;"),e.outline&&n.push("text-effect: outline;"),e.shadow&&n.push("text-shadow: auto;"),t.push('<span style="'+n.join("")+'">'),e.b&&(t.push("<b>"),r.push("</b>")),e.i&&(t.push("<i>"),r.push("</i>")),e.strike&&(t.push("<s>"),r.push("</s>"));var o=e.valign||"";"superscript"==o||"super"==o?o="sup":"subscript"==o&&(o="sub"),""!=o&&(t.push("<"+o+">"),r.push("</"+o+">")),r.push("</span>")}(t.s,r[0],r[2]),r[0].join("")+r[1].replace(e,"<br/>")+r[2].join("")):""}return function(e){return e.map(t).join("")}}(),Yi=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Ki=/<(?:\w+:)?r>/,Ji=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Zi(e,t){var r=!t||t.cellHTML,n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=bt(Rt(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=Rt(e),r&&(n.h=kt(n.t))):e.match(Ki)&&(n.r=Rt(e),n.t=bt(Rt((e.replace(Ji,"").match(Yi)||[]).join("").replace(ft,""))),r&&(n.h=Xi(Gi(n.r)))),n):{t:""}}var Qi=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,ea=/<(?:\w+:)?(?:si|sstItem)>/g,ta=/<\/(?:\w+:)?(?:si|sstItem)>/;var ra=/^\s|\s$|[\t\n\r]/;function na(e,t){if(!t.bookSST)return"";var r=[ct];r[r.length]=Ht("sst",null,{xmlns:ir[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(null!=e[n]){var o=e[n],i="<si>";o.r?i+=o.r:(i+="<t",o.t||(o.t=""),o.t.match(ra)&&(i+=' xml:space="preserve"'),i+=">"+St(o.t)+"</t>"),i+="</si>",r[r.length]=i}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}var oa=function(e,t){var r=!1;return null==t&&(r=!0,t=$r(15+4*e.t.length)),t._W(1,0),vn(e.t,t),r?t.slice(0,t.l):t};function ia(e){var t=Xr();Yr(t,159,function(e,t){return t||(t=$r(8)),t._W(4,e.Count),t._W(4,e.Unique),t}(e));for(var r=0;r<e.length;++r)Yr(t,19,oa(e[r]));return Yr(t,160),t.end()}function aa(e){if(void 0!==t)return t.utils.encode(n,e);for(var r=[],o=e.split(""),i=0;i<o.length;++i)r[i]=o[i].charCodeAt(0);return r}function sa(e,t){var r={};return r.Major=e._R(2),r.Minor=e._R(2),t>=4&&(e.l+=t-4),r}function ca(e){for(var t=e._R(4),r=e.l+t-4,n={},o=e._R(4),i=[];o-- >0;)i.push({t:e._R(4),v:e._R(0,"lpp4")});if(n.name=e._R(0,"lpp4"),n.comps=i,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return n}function la(e){var t=function(e){var t={};return e._R(4),e.l+=4,t.id=e._R(0,"lpp4"),t.name=e._R(0,"lpp4"),t.R=sa(e,4),t.U=sa(e,4),t.W=sa(e,4),t}(e);if(t.ename=e._R(0,"8lpp4"),t.blksz=e._R(4),t.cmode=e._R(4),4!=e._R(4))throw new Error("Bad !Primary record");return t}function ua(e,t){var r=e.l+t,n={};n.Flags=63&e._R(4),e.l+=4,n.AlgID=e._R(4);var o=!1;switch(n.AlgID){case 26126:case 26127:case 26128:o=36==n.Flags;break;case 26625:o=4==n.Flags;break;case 0:o=16==n.Flags||4==n.Flags||36==n.Flags;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!o)throw new Error("Encryption Flags/AlgID mismatch");return n.AlgIDHash=e._R(4),n.KeySize=e._R(4),n.ProviderType=e._R(4),e.l+=8,n.CSPName=e._R(r-e.l>>1,"utf16le"),e.l=r,n}function fa(e,t){var r={},n=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e._R(4),r.VerifierHash=e.slice(e.l,n),e.l=n,r}function ha(e){if(36!=(63&e._R(4)))throw new Error("EncryptionInfo mismatch");var t=e._R(4);return{t:"Std",h:ua(e,t),v:fa(e,e.length-e.l)}}function da(){throw new Error("File is password-protected: ECMA-376 Extensible")}function pa(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e._R(e.length-e.l,"utf8"),n={};return r.replace(ft,(function(e){var r=pt(e);switch(gt(r[0])){case"<?xml":case"<encryption":case"</encryption>":case"</keyEncryptors>":case"</keyEncryptor>":break;case"<keyData":t.forEach((function(e){n[e]=r[e]}));break;case"<dataIntegrity":n.encryptedHmacKey=r.encryptedHmacKey,n.encryptedHmacValue=r.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":n.encs=[];break;case"<keyEncryptor":n.uri=r.uri;break;case"<encryptedKey":n.encs.push(r);break;default:throw r[0]}})),n}function ga(e){var t,r,n=0,o=aa(e),i=o.length+1;for((t=y(i))[0]=o.length,r=1;r!=i;++r)t[r]=o[r-1];for(r=i-1;r>=0;--r)n=((0==(16384&n)?0:1)|n<<1&32767)^t[r];return 52811^n}var ma=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],n=function(e,t){return function(e){return 255&(e/2|128*e)}(e^t)},o=function(e){for(var n=t[e.length-1],o=104,i=e.length-1;i>=0;--i)for(var a=e[i],s=0;7!=s;++s)64&a&&(n^=r[o]),a*=2,--o;return n};return function(t){for(var r,i,a,s=aa(t),c=o(s),l=s.length,u=y(16),f=0;16!=f;++f)u[f]=0;for(1==(1&l)&&(r=c>>8,u[l]=n(e[0],r),--l,r=255&c,i=s[s.length-1],u[l]=n(i,r));l>0;)r=c>>8,u[--l]=n(s[l],r),r=255&c,u[--l]=n(s[l],r);for(l=15,a=15-s.length;a>0;)r=c>>8,u[l]=n(e[a],r),--a,r=255&c,u[--l]=n(s[l],r),--l,--a;return u}}(),va=function(e){var t=0,r=ma(e);return function(e){var n=function(e,t,r,n,o){var i,a;for(o||(o=t),n||(n=ma(e)),i=0;i!=t.length;++i)a=t[i],a=255&((a^=n[r])>>5|a<<3),o[i]=a,++r;return[o,r,n]}("",e,t,r);return t=n[1],n[0]}};function ba(e,t,r){var n=r||{};return n.Info=e._R(2),e.l-=2,1===n.Info?n.Data=function(e){var t={},r=t.EncryptionVersionInfo=sa(e,4);if(1!=r.Major||1!=r.Minor)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e._R(16),t.EncryptedVerifier=e._R(16),t.EncryptedVerifierHash=e._R(16),t}(e):n.Data=function(e,t){var r={},n=r.EncryptionVersionInfo=sa(e,4);if(t-=4,2!=n.Minor)throw new Error("unrecognized minor version code: "+n.Minor);if(n.Major>4||n.Major<2)throw new Error("unrecognized major version code: "+n.Major);r.Flags=e._R(4),t-=4;var o=e._R(4);return t-=4,r.EncryptionHeader=ua(e,o),t-=o,r.EncryptionVerifier=fa(e,t),r}(e,t),n}var ya=function(){function e(e,r){switch(r.type){case"base64":return t(m(e),r);case"binary":return t(e,r);case"buffer":return t(v&&Buffer.isBuffer(e)?e.toString("binary"):A(e),r);case"array":return t(ze(e),r)}throw new Error("Unrecognized type "+r.type)}function t(e,t){var r=(t||{}).dense?[]:{},n=e.match(/\\trowd.*?\\row\b/g);if(!n.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:n.length-1}};return n.forEach((function(e,t){Array.isArray(r)&&(r[t]=[]);for(var n,i=/\\\w+\b/g,a=0,s=-1;n=i.exec(e);){if("\\cell"===n[0]){var c=e.slice(a,i.lastIndex-n[0].length);if(" "==c[0]&&(c=c.slice(1)),++s,c.length){var l={v:c,t:"s"};Array.isArray(r)?r[t][s]=l:r[an({r:t,c:s})]=l}}a=i.lastIndex}s>o.e.c&&(o.e.c=s)})),r["!ref"]=cn(o),r}return{to_workbook:function(t,r){return hn(e(t,r),r)},to_sheet:e,from_sheet:function(e){for(var t,r=["{\\rtf1\\ansi"],n=ln(e["!ref"]),o=Array.isArray(e),i=n.s.r;i<=n.e.r;++i){r.push("\\trowd\\trautofit1");for(var a=n.s.c;a<=n.e.c;++a)r.push("\\cellx"+(a+1));for(r.push("\\pard\\intbl"),a=n.s.c;a<=n.e.c;++a){var s=an({r:i,c:a});(t=o?(e[i]||[])[a]:e[s])&&(null!=t.v||t.f&&!t.F)&&(r.push(" "+(t.w||(fn(t),t.w))),r.push("\\cell"))}r.push("\\pard\\intbl\\row")}return r.join("")+"}"}}}();function wa(e){for(var t=0,r=1;3!=t;++t)r=256*r+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}function Sa(e,t){if(0===t)return e;var r=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(t,r,n),i=Math.min(t,r,n),a=o-i;if(0===a)return[0,0,t];var s,c=0,l=o+i;switch(s=a/(l>1?2-l:l),o){case t:c=((r-n)/a+6)%6;break;case r:c=(n-t)/a+2;break;case n:c=(t-r)/a+4}return[c/6,s,l/2]}(function(e){var t=e.slice("#"===e[0]?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}(e));return r[2]=t<0?r[2]*(1+t):1-(1-r[2])*(1-t),wa(function(e){var t,r=e[0],n=e[1],o=e[2],i=2*n*(o<.5?o:1-o),a=o-i/2,s=[a,a,a],c=6*r;if(0!==n)switch(0|c){case 0:case 6:t=i*c,s[0]+=i,s[1]+=t;break;case 1:t=i*(2-c),s[0]+=t,s[1]+=i;break;case 2:t=i*(c-2),s[1]+=i,s[2]+=t;break;case 3:t=i*(4-c),s[1]+=t,s[2]+=i;break;case 4:t=i*(c-4),s[2]+=i,s[0]+=t;break;case 5:t=i*(6-c),s[2]+=t,s[0]+=i}for(var l=0;3!=l;++l)s[l]=Math.round(255*s[l]);return s}(r))}var xa=6;function Aa(e){return Math.floor((e+Math.round(128/xa)/256)*xa)}function ka(e){return Math.floor((e-5)/xa*100+.5)/100}function Ta(e){return Math.round((e*xa+5)/xa*256)/256}function Ea(e){return Ta(ka(Aa(e)))}function _a(e){var t=Math.abs(e-Ea(e)),r=xa;if(t>.005)for(xa=1;xa<15;++xa)Math.abs(e-Ea(e))<=t&&(t=Math.abs(e-Ea(e)),r=xa);xa=r}function Oa(e){e.width?(e.wpx=Aa(e.width),e.wch=ka(e.wpx),e.MDW=xa):e.wpx?(e.wch=ka(e.wpx),e.width=Ta(e.wch),e.MDW=xa):"number"==typeof e.wch&&(e.width=Ta(e.wch),e.wpx=Aa(e.width),e.MDW=xa),e.customWidth&&delete e.customWidth}function Na(e){return 96*e/96}function Ca(e){return 96*e/96}var Ra={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};function Pa(e,t,r,n){t.Fonts=[];var o={},a=!1;(e[0].match(ft)||[]).forEach((function(e){var s=pt(e);switch(gt(s[0])){case"<fonts":case"<fonts>":case"</fonts>":case"<font":case"<font>":case"<name/>":case"</name>":case"<sz/>":case"</sz>":case"<vertAlign/>":case"</vertAlign>":case"<family/>":case"</family>":case"<scheme/>":case"</scheme>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"</font>":case"<font/>":t.Fonts.push(o),o={};break;case"<name":s.val&&(o.name=Rt(s.val));break;case"<b":o.bold=s.val?Et(s.val):1;break;case"<b/>":o.bold=1;break;case"<i":o.italic=s.val?Et(s.val):1;break;case"<i/>":o.italic=1;break;case"<u":switch(s.val){case"none":o.underline=0;break;case"single":o.underline=1;break;case"double":o.underline=2;break;case"singleAccounting":o.underline=33;break;case"doubleAccounting":o.underline=34}break;case"<u/>":o.underline=1;break;case"<strike":o.strike=s.val?Et(s.val):1;break;case"<strike/>":o.strike=1;break;case"<outline":o.outline=s.val?Et(s.val):1;break;case"<outline/>":o.outline=1;break;case"<shadow":o.shadow=s.val?Et(s.val):1;break;case"<shadow/>":o.shadow=1;break;case"<condense":o.condense=s.val?Et(s.val):1;break;case"<condense/>":o.condense=1;break;case"<extend":o.extend=s.val?Et(s.val):1;break;case"<extend/>":o.extend=1;break;case"<sz":s.val&&(o.sz=+s.val);break;case"<vertAlign":s.val&&(o.vertAlign=s.val);break;case"<family":s.val&&(o.family=parseInt(s.val,10));break;case"<scheme":s.val&&(o.scheme=s.val);break;case"<charset":if("1"==s.val)break;s.codepage=i[parseInt(s.val,10)];break;case"<color":if(o.color||(o.color={}),s.auto&&(o.color.auto=Et(s.auto)),s.rgb)o.color.rgb=s.rgb.slice(-6);else if(s.indexed){o.color.index=parseInt(s.indexed,10);var c=Yn[o.color.index];81==o.color.index&&(c=Yn[1]),c||(c=Yn[1]),o.color.rgb=c[0].toString(16)+c[1].toString(16)+c[2].toString(16)}else s.theme&&(o.color.theme=parseInt(s.theme,10),s.tint&&(o.color.tint=parseFloat(s.tint)),s.theme&&r.themeElements&&r.themeElements.clrScheme&&(o.color.rgb=Sa(r.themeElements.clrScheme[o.color.theme].rgb,o.color.tint||0)));break;case"<AlternateContent":case"<ext":a=!0;break;case"</AlternateContent>":case"</ext>":a=!1;break;default:if(n&&n.WTF&&!a)throw new Error("unrecognized "+s[0]+" in fonts")}}))}var La=["numFmtId","fillId","fontId","borderId","xfId"],Ia=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];var Fa=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,r=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,n=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,o=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(i,a,s){var c,l={};return i?((c=(i=i.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"")).match(e))&&function(e,t,r){t.NumberFmt=[];for(var n=Oe(D),o=0;o<n.length;++o)t.NumberFmt[n[o]]=D[n[o]];var i=e[0].match(ft);if(i)for(o=0;o<i.length;++o){var a=pt(i[o]);switch(gt(a[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":case"</numFmt>":break;case"<numFmt":var s=bt(Rt(a.formatCode)),c=parseInt(a.numFmtId,10);if(t.NumberFmt[c]=s,c>0){if(c>392){for(c=392;c>60&&null!=t.NumberFmt[c];--c);t.NumberFmt[c]=s}ve(s,c)}break;default:if(r.WTF)throw new Error("unrecognized "+a[0]+" in numFmts")}}}(c,l,s),(c=i.match(n))&&Pa(c,l,a,s),(c=i.match(r))&&function(e,t,r,n){t.Fills=[];var o={},i=!1;(e[0].match(ft)||[]).forEach((function(e){var r=pt(e);switch(gt(r[0])){case"<fills":case"<fills>":case"</fills>":case"</fill>":case"<gradientFill>":case"<patternFill/>":case"</patternFill>":case"<bgColor/>":case"</bgColor>":case"<fgColor/>":case"</fgColor>":case"<stop":case"<stop/>":case"</stop>":case"<color":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<fill>":case"<fill":case"<fill/>":o={},t.Fills.push(o);break;case"<gradientFill":case"</gradientFill>":t.Fills.push(o),o={};break;case"<patternFill":case"<patternFill>":r.patternType&&(o.patternType=r.patternType);break;case"<bgColor":o.bgColor||(o.bgColor={}),r.indexed&&(o.bgColor.indexed=parseInt(r.indexed,10)),r.theme&&(o.bgColor.theme=parseInt(r.theme,10)),r.tint&&(o.bgColor.tint=parseFloat(r.tint)),r.rgb&&(o.bgColor.rgb=r.rgb.slice(-6));break;case"<fgColor":o.fgColor||(o.fgColor={}),r.theme&&(o.fgColor.theme=parseInt(r.theme,10)),r.tint&&(o.fgColor.tint=parseFloat(r.tint)),null!=r.rgb&&(o.fgColor.rgb=r.rgb.slice(-6));break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+r[0]+" in fills")}}))}(c,l,0,s),(c=i.match(o))&&function(e,t,r,n){t.Borders=[];var o={},i=!1;(e[0].match(ft)||[]).forEach((function(e){var r=pt(e);switch(gt(r[0])){case"<borders":case"<borders>":case"</borders>":case"</border>":case"<left/>":case"<left":case"<left>":case"</left>":case"<right/>":case"<right":case"<right>":case"</right>":case"<top/>":case"<top":case"<top>":case"</top>":case"<bottom/>":case"<bottom":case"<bottom>":case"</bottom>":case"<diagonal":case"<diagonal>":case"<diagonal/>":case"</diagonal>":case"<horizontal":case"<horizontal>":case"<horizontal/>":case"</horizontal>":case"<vertical":case"<vertical>":case"<vertical/>":case"</vertical>":case"<start":case"<start>":case"<start/>":case"</start>":case"<end":case"<end>":case"<end/>":case"</end>":case"<color":case"<color>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<border":case"<border>":case"<border/>":o={},r.diagonalUp&&(o.diagonalUp=Et(r.diagonalUp)),r.diagonalDown&&(o.diagonalDown=Et(r.diagonalDown)),t.Borders.push(o);break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+r[0]+" in borders")}}))}(c,l,0,s),(c=i.match(t))&&function(e,t,r){var n;t.CellXf=[];var o=!1;(e[0].match(ft)||[]).forEach((function(e){var i=pt(e),a=0;switch(gt(i[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":case"</xf>":case"</alignment>":case"<protection":case"</protection>":case"<protection/>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<xf":case"<xf/>":for(delete(n=i)[0],a=0;a<La.length;++a)n[La[a]]&&(n[La[a]]=parseInt(n[La[a]],10));for(a=0;a<Ia.length;++a)n[Ia[a]]&&(n[Ia[a]]=Et(n[Ia[a]]));if(t.NumberFmt&&n.numFmtId>392)for(a=392;a>60;--a)if(t.NumberFmt[n.numFmtId]==t.NumberFmt[a]){n.numFmtId=a;break}t.CellXf.push(n);break;case"<alignment":case"<alignment/>":var s={};i.vertical&&(s.vertical=i.vertical),i.horizontal&&(s.horizontal=i.horizontal),null!=i.textRotation&&(s.textRotation=i.textRotation),i.indent&&(s.indent=i.indent),i.wrapText&&(s.wrapText=Et(i.wrapText)),n.alignment=s;break;case"<AlternateContent":case"<ext":o=!0;break;case"</AlternateContent>":case"</ext>":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+i[0]+" in cellXfs")}}))}(c,l,s),l):l}}();function ja(e,t){var r,n=[ct,Ht("styleSheet",null,{xmlns:ir[0],"xmlns:vt":rr})];return e.SSF&&null!=(r=function(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var n=r[0];n<=r[1];++n)null!=e[n]&&(t[t.length]=Ht("numFmt",null,{numFmtId:n,formatCode:St(e[n])}))})),1===t.length?"":(t[t.length]="</numFmts>",t[0]=Ht("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(e.SSF))&&(n[n.length]=r),n[n.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',n[n.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',n[n.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',n[n.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(r=function(e){var t=[];return t[t.length]=Ht("cellXfs",null),e.forEach((function(e){t[t.length]=Ht("xf",null,e)})),t[t.length]="</cellXfs>",2===t.length?"":(t[0]=Ht("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(t.cellXfs))&&(n[n.length]=r),n[n.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',n[n.length]='<dxfs count="0"/>',n[n.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',n.length>2&&(n[n.length]="</styleSheet>",n[1]=n[1].replace("/>",">")),n.join("")}function Da(e,t,r){r||(r=$r(6+4*t.length)),r._W(2,e),vn(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return null==r.l&&(r.l=r.length),n}function Ma(e,t){t||(t=$r(153)),t._W(2,20*e.sz),function(e,t){t||(t=$r(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);t._W(1,r),t._W(1,0)}(e,t),t._W(2,e.bold?700:400);var r=0;"superscript"==e.vertAlign?r=1:"subscript"==e.vertAlign&&(r=2),t._W(2,r),t._W(1,e.underline||0),t._W(1,e.family||0),t._W(1,e.charset||0),t._W(1,0),Wn(e.color,t);var n=0;return"major"==e.scheme&&(n=1),"minor"==e.scheme&&(n=2),t._W(1,n),vn(e.name,t),t.length>t.l?t.slice(0,t.l):t}var Ba,Wa=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Ua=qr;function Ha(e,t){t||(t=$r(84)),Ba||(Ba=Ce(Wa));var r=Ba[e.patternType];null==r&&(r=40),t._W(4,r);var n=0;if(40!=r)for(Wn({auto:1},t),Wn({auto:1},t);n<12;++n)t._W(4,0);else{for(;n<4;++n)t._W(4,0);for(;n<12;++n)t._W(4,0)}return t.length>t.l?t.slice(0,t.l):t}function za(e,t,r){r||(r=$r(16)),r._W(2,t||0),r._W(2,e.numFmtId||0),r._W(2,0),r._W(2,0),r._W(2,0),r._W(1,0),r._W(1,0);return r._W(1,0),r._W(1,0),r._W(1,0),r._W(1,0),r}function Va(e,t){return t||(t=$r(10)),t._W(1,0),t._W(1,0),t._W(4,0),t._W(4,0),t}var qa=qr;function $a(e){Yr(e,613,gn(1)),Yr(e,46,function(e,t){return t||(t=$r(51)),t._W(1,0),Va(0,t),Va(0,t),Va(0,t),Va(0,t),Va(0,t),t.length>t.l?t.slice(0,t.l):t}()),Yr(e,614)}function Ga(e){Yr(e,619,gn(1)),Yr(e,48,function(e,t){return t||(t=$r(52)),t._W(4,e.xfId),t._W(2,1),t._W(1,+e.builtinId),t._W(1,0),Nn(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}({xfId:0,builtinId:0,name:"Normal"})),Yr(e,620)}function Xa(e){Yr(e,508,function(e,t,r){var n=$r(2052);return n._W(4,e),Nn(t,n),Nn(r,n),n.length>n.l?n.slice(0,n.l):n}(0,"TableStyleMedium9","PivotStyleMedium4")),Yr(e,509)}function Ya(e,t){var r=Xr();return Yr(r,278),function(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(e){for(var n=e[0];n<=e[1];++n)null!=t[n]&&++r})),0!=r&&(Yr(e,615,gn(r)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var n=r[0];n<=r[1];++n)null!=t[n]&&Yr(e,44,Da(n,t[n]))})),Yr(e,616))}}(r,e.SSF),function(e){Yr(e,611,gn(1)),Yr(e,43,Ma({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Yr(e,612)}(r),function(e){Yr(e,603,gn(2)),Yr(e,45,Ha({patternType:"none"})),Yr(e,45,Ha({patternType:"gray125"})),Yr(e,604)}(r),$a(r),function(e){Yr(e,626,gn(1)),Yr(e,47,za({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Yr(e,627)}(r),function(e,t){Yr(e,617,gn(t.length)),t.forEach((function(t){Yr(e,47,za(t,0))})),Yr(e,618)}(r,t.cellXfs),Ga(r),function(e){Yr(e,505,gn(0)),Yr(e,506)}(r),Xa(r),Yr(r,279),r.end()}var Ka=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function Ja(e,t,r){t.themeElements.clrScheme=[];var n={};(e[0].match(ft)||[]).forEach((function(e){var o=pt(e);switch(o[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":n.rgb=o.val;break;case"<a:sysClr":n.rgb=o.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":"/"===o[0].charAt(1)?(t.themeElements.clrScheme[Ka.indexOf(o[0])]=n,n={}):n.name=o[0].slice(3,o[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+o[0]+" in clrScheme")}}))}function Za(){}function Qa(){}var es=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,ts=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,rs=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;var ns=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function os(e,t){var r;e&&0!==e.length||(e=is());var n={};if(!(r=e.match(ns)))throw new Error("themeElements not found in theme");return function(e,t,r){var n;t.themeElements={},[["clrScheme",es,Ja],["fontScheme",ts,Za],["fmtScheme",rs,Qa]].forEach((function(o){if(!(n=e.match(o[1])))throw new Error(o[0]+" not found in themeElements");o[2](n,t,r)}))}(r[0],n,t),n.raw=e,n}function is(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var r=[ct];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function as(e){var t={};switch(t.xclrType=e._R(2),t.nTintShade=e._R(2),t.xclrType){case 0:case 4:e.l+=4;break;case 1:t.xclrValue=function(e,t){return qr(e,t)}(e,4);break;case 2:t.xclrValue=oi(e);break;case 3:t.xclrValue=function(e){return e._R(4)}(e)}return e.l+=8,t}function ss(e){var t=e._R(2),r=e._R(2)-4,n=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:n[1]=as(e);break;case 6:n[1]=function(e,t){return qr(e,t)}(e,r);break;case 14:case 15:n[1]=e._R(1===r?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return n}function cs(e,t){t.forEach((function(e){e[0]}))}function ls(){var e=Xr();return Yr(e,332),Yr(e,334,gn(1)),Yr(e,335,function(e){var t=$r(12+2*e.name.length);return t._W(4,e.flags),t._W(4,e.version),vn(e.name,t),t.slice(0,t.l)}({name:"XLDAPR",version:12e4,flags:3496657072})),Yr(e,336),Yr(e,339,function(e,t){var r=$r(8+2*t.length);return r._W(4,e),vn(t,r),r.slice(0,r.l)}(1,"XLDAPR")),Yr(e,52),Yr(e,35,gn(514)),Yr(e,4096,gn(0)),Yr(e,4097,Vo(1)),Yr(e,36),Yr(e,53),Yr(e,340),Yr(e,337,function(e,t){var r=$r(8);return r._W(4,e),r._W(4,t?1:0),r}(1,!0)),Yr(e,51,function(e){var t=$r(4+8*e.length);t._W(4,e.length);for(var r=0;r<e.length;++r)t._W(4,e[r][0]),t._W(4,e[r][1]);return t}([[1,0]])),Yr(e,338),Yr(e,333),e.end()}function us(){var e=[ct];return e.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n <metadataTypes count="1">\n <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n </metadataTypes>\n <futureMetadata name="XLDAPR" count="1">\n <bk>\n <extLst>\n <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n </ext>\n </extLst>\n </bk>\n </futureMetadata>\n <cellMetadata count="1">\n <bk>\n <rc t="1" v="0"/>\n </bk>\n </cellMetadata>\n</metadata>'),e.join("")}var fs=1024;function hs(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),o=[Ht("xml",null,{"xmlns:v":fr,"xmlns:o":ar,"xmlns:x":sr,"xmlns:mv":ur}).replace(/\/>/,">"),Ht("o:shapelayout",Ht("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Ht("v:shapetype",[Ht("v:stroke",null,{joinstyle:"miter"}),Ht("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];fs<1e3*e;)fs+=1e3;return t.forEach((function(e){var t=on(e[0]),r={color2:"#BEFF82",type:"gradient"};"gradient"==r.type&&(r.angle="-180");var n="gradient"==r.type?Ht("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,i=Ht("v:fill",n,r);++fs,o=o.concat(["<v:shape"+Ut({id:"_x0000_s"+fs,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",i,Ht("v:shadow",null,{on:"t",obscured:"t"}),Ht("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Wt("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),Wt("x:AutoFill","False"),Wt("x:Row",String(t.r)),Wt("x:Column",String(t.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])})),o.push("</xml>"),o.join("")}function ds(e,t,r,n){var o,i=Array.isArray(e);t.forEach((function(t){var a=on(t.ref);if(i?(e[a.r]||(e[a.r]=[]),o=e[a.r][a.c]):o=e[t.ref],!o){o={t:"z"},i?e[a.r][a.c]=o:e[t.ref]=o;var s=ln(e["!ref"]||"BDWGO1000001:A1");s.s.r>a.r&&(s.s.r=a.r),s.e.r<a.r&&(s.e.r=a.r),s.s.c>a.c&&(s.s.c=a.c),s.e.c<a.c&&(s.e.c=a.c);var c=cn(s);c!==e["!ref"]&&(e["!ref"]=c)}o.c||(o.c=[]);var l={a:t.author,t:t.t,r:t.r,T:r};t.h&&(l.h=t.h);for(var u=o.c.length-1;u>=0;--u){if(!r&&o.c[u].T)return;r&&!o.c[u].T&&o.c.splice(u,1)}if(r&&n)for(u=0;u<n.length;++u)if(l.a==n[u].id){l.a=n[u].name||l.a;break}o.c.push(l)}))}function ps(e){var t=[ct,Ht("comments",null,{xmlns:ir[0]})],r=[];return t.push("<authors>"),e.forEach((function(e){e[1].forEach((function(e){var n=St(e.a);-1==r.indexOf(n)&&(r.push(n),t.push("<author>"+n+"</author>")),e.T&&e.ID&&-1==r.indexOf("tc="+e.ID)&&(r.push("tc="+e.ID),t.push("<author>tc="+e.ID+"</author>"))}))})),0==r.length&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach((function(e){var n=0,o=[];if(e[1][0]&&e[1][0].T&&e[1][0].ID?n=r.indexOf("tc="+e[1][0].ID):e[1].forEach((function(e){e.a&&(n=r.indexOf(St(e.a))),o.push(e.t||"")})),t.push('<comment ref="'+e[0]+'" authorId="'+n+'"><text>'),o.length<=1)t.push(Wt("t",St(o[0]||"")));else{for(var i="Comment:\n "+o[0]+"\n",a=1;a<o.length;++a)i+="Reply:\n "+o[a]+"\n";t.push(Wt("t",St(i)))}t.push("</text></comment>")})),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function gs(e,t,r){var n=[ct,Ht("ThreadedComments",null,{xmlns:Jt}).replace(/[\/]>/,">")];return e.forEach((function(e){var o="";(e[1]||[]).forEach((function(i,a){if(i.T){i.a&&-1==t.indexOf(i.a)&&t.push(i.a);var s={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};0==a?o=s.id:s.parentId=o,i.ID=s.id,i.a&&(s.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(i.a)).slice(-12)+"}"),n.push(Ht("threadedComment",Wt("text",i.t||""),s))}else delete i.ID}))})),n.push("</ThreadedComments>"),n.join("")}var ms=mn;function vs(e){var t=Xr(),r=[];return Yr(t,628),Yr(t,630),e.forEach((function(e){e[1].forEach((function(e){r.indexOf(e.a)>-1||(r.push(e.a.slice(0,54)),Yr(t,632,function(e){return vn(e.slice(0,54))}(e.a)))}))})),Yr(t,631),Yr(t,633),e.forEach((function(e){e[1].forEach((function(n){n.iauthor=r.indexOf(n.a);var o={s:on(e[0]),e:on(e[0])};Yr(t,635,function(e,t){return null==t&&(t=$r(36)),t._W(4,e[1].iauthor),Dn(e[0],t),t._W(4,0),t._W(4,0),t._W(4,0),t._W(4,0),t}([o,n])),n.t&&n.t.length>0&&Yr(t,637,Sn(n)),Yr(t,636),delete n.iauthor}))})),Yr(t,634),Yr(t,629),t.end()}var bs=["xlsb","xlsm","xlam","biff8","xla"];var ys=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(e,r,n,o){var i=!1,a=!1;0==n.length?a=!0:"["==n.charAt(0)&&(a=!0,n=n.slice(1,-1)),0==o.length?i=!0:"["==o.charAt(0)&&(i=!0,o=o.slice(1,-1));var s=n.length>0?0|parseInt(n,10):0,c=o.length>0?0|parseInt(o,10):0;return i?c+=t.c:--c,a?s+=t.r:--s,r+(i?"":"$")+nn(c)+(a?"":"$")+tn(s)}return function(n,o){return t=o,n.replace(e,r)}}(),ws=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Ss=function(e,t){return e.replace(ws,(function(e,r,n,o,i,a){var s=rn(o)-(n?0:t.c),c=en(a)-(i?0:t.r);return r+"R"+(0==c?"":i?c+1:"["+c+"]")+"C"+(0==s?"":n?s+1:"["+s+"]")}))};function xs(e,t){return e.replace(ws,(function(e,r,n,o,i,a){return r+("$"==n?n+o:nn(rn(o)+t.c))+("$"==i?i+a:tn(en(a)+t.r))}))}function As(e,t,r){var n=sn(t).s,o=on(r);return xs(e,{r:o.r-n.r,c:o.c-n.c})}function ks(e){return e.replace(/_xlfn\./g,"")}function Ts(e){e.l+=1}function Es(e,t){var r=e._R(1==t?1:2);return[16383&r,r>>14&1,r>>15&1]}function _s(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return Os(e);12==r.biff&&(n=4)}var o=e._R(n),i=e._R(n),a=Es(e,2),s=Es(e,2);return{s:{r:o,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function Os(e){var t=Es(e,2),r=Es(e,2),n=e._R(1),o=e._R(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:o,cRel:r[1],rRel:r[2]}}}function Ns(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return function(e){var t=Es(e,2),r=e._R(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}(e);var n=e._R(r&&12==r.biff?4:2),o=Es(e,2);return{r:n,c:o[0],cRel:o[1],rRel:o[2]}}function Cs(e){var t=e._R(2),r=e._R(2);return{r:t,c:255&r,fQuoted:!!(16384&r),cRel:r>>15,rRel:r>>15}}function Rs(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function Ps(e){return[e._R(1),e._R(1)]}function Ls(e,t){var r=[e._R(1)];if(12==t)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2}switch(r[0]){case 4:r[1]=Uo(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:r[1]=Kn[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:r[1]=Mn(e);break;case 2:r[1]=Zo(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function Is(e,t,r){for(var n=e._R(12==r.biff?4:2),o=[],i=0;i!=n;++i)o.push((12==r.biff?jn:ui)(e,8));return o}function Fs(e,t,r){var n=0,o=0;12==r.biff?(n=e._R(4),o=e._R(4)):(o=1+e._R(1),n=1+e._R(2)),r.biff>=2&&r.biff<8&&(--n,0==--o&&(o=256));for(var i=0,a=[];i!=n&&(a[i]=[]);++i)for(var s=0;s!=o;++s)a[i][s]=Ls(e,r.biff);return a}function js(e,t,r){return e.l+=2,[Cs(e)]}function Ds(e){return e.l+=6,[]}function Ms(e){return e.l+=2,[zo(e),1&e._R(2)]}var Bs=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];var Ws={1:{n:"PtgExp",f:function(e,t,r){return e.l++,r&&12==r.biff?[e._R(4,"i"),0]:[e._R(2),e._R(r&&2==r.biff?1:2)]}},2:{n:"PtgTbl",f:qr},3:{n:"PtgAdd",f:Ts},4:{n:"PtgSub",f:Ts},5:{n:"PtgMul",f:Ts},6:{n:"PtgDiv",f:Ts},7:{n:"PtgPower",f:Ts},8:{n:"PtgConcat",f:Ts},9:{n:"PtgLt",f:Ts},10:{n:"PtgLe",f:Ts},11:{n:"PtgEq",f:Ts},12:{n:"PtgGe",f:Ts},13:{n:"PtgGt",f:Ts},14:{n:"PtgNe",f:Ts},15:{n:"PtgIsect",f:Ts},16:{n:"PtgUnion",f:Ts},17:{n:"PtgRange",f:Ts},18:{n:"PtgUplus",f:Ts},19:{n:"PtgUminus",f:Ts},20:{n:"PtgPercent",f:Ts},21:{n:"PtgParen",f:Ts},22:{n:"PtgMissArg",f:Ts},23:{n:"PtgStr",f:function(e,t,r){return e.l++,Go(e,0,r)}},26:{n:"PtgSheet",f:function(e,t,r){return e.l+=5,e.l+=2,e.l+=2==r.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,r){return e.l+=2==r.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,Kn[e._R(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e._R(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e._R(2)}},31:{n:"PtgNum",f:function(e){return e.l++,Mn(e)}},32:{n:"PtgArray",f:function(e,t,r){var n=(96&e[e.l++])>>5;return e.l+=2==r.biff?6:12==r.biff?14:7,[n]}},33:{n:"PtgFunc",f:function(e,t,r){var n=(96&e[e.l])>>5;e.l+=1;var o=e._R(r&&r.biff<=3?1:2);return[cc[o],sc[o],n]}},34:{n:"PtgFuncVar",f:function(e,t,r){var n=e[e.l++],o=e._R(1),i=r&&r.biff<=3?[88==n?-1:0,e._R(1)]:function(e){return[e[e.l+1]>>7,32767&e._R(2)]}(e);return[o,(0===i[0]?sc:ac)[i[1]]]}},35:{n:"PtgName",f:function(e,t,r){var n=e._R(1)>>>5&3,o=!r||r.biff>=8?4:2,i=e._R(o);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[n,0,i]}},36:{n:"PtgRef",f:function(e,t,r){var n=(96&e[e.l])>>5;return e.l+=1,[n,Ns(e,0,r)]}},37:{n:"PtgArea",f:function(e,t,r){return[(96&e[e.l++])>>5,_s(e,r.biff>=2&&r.biff,r)]}},38:{n:"PtgMemArea",f:function(e,t,r){var n=e._R(1)>>>5&3;return e.l+=r&&2==r.biff?3:4,[n,e._R(r&&2==r.biff?1:2)]}},39:{n:"PtgMemErr",f:qr},40:{n:"PtgMemNoMem",f:qr},41:{n:"PtgMemFunc",f:function(e,t,r){return[e._R(1)>>>5&3,e._R(r&&2==r.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,r){var n=e._R(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,12==r.biff&&(e.l+=2),[n]}},43:{n:"PtgAreaErr",f:function(e,t,r){var n=(96&e[e.l++])>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}},44:{n:"PtgRefN",f:function(e,t,r){var n=(96&e[e.l])>>5;e.l+=1;var o=function(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return function(e){var t=e._R(2),r=e._R(1),n=(32768&t)>>15,o=(16384&t)>>14;return t&=16383,1==n&&t>=8192&&(t-=16384),1==o&&r>=128&&(r-=256),{r:t,c:r,cRel:o,rRel:n}}(e);var o=e._R(n>=12?4:2),i=e._R(2),a=(16384&i)>>14,s=(32768&i)>>15;if(i&=16383,1==s)for(;o>524287;)o-=1048576;if(1==a)for(;i>8191;)i-=16384;return{r:o,c:i,cRel:a,rRel:s}}(e,0,r);return[n,o]}},45:{n:"PtgAreaN",f:function(e,t,r){var n=(96&e[e.l++])>>5,o=function(e,t,r){if(r.biff<8)return Os(e);var n=e._R(12==r.biff?4:2),o=e._R(12==r.biff?4:2),i=Es(e,2),a=Es(e,2);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:o,c:a[0],cRel:a[1],rRel:a[2]}}}(e,0,r);return[n,o]}},46:{n:"PtgMemAreaN",f:function(e){return[e._R(1)>>>5&3,e._R(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e._R(1)>>>5&3,e._R(2)]}},57:{n:"PtgNameX",f:function(e,t,r){return 5==r.biff?function(e){var t=e._R(1)>>>5&3,r=e._R(2,"i");e.l+=8;var n=e._R(2);return e.l+=12,[t,r,n]}(e):[e._R(1)>>>5&3,e._R(2),e._R(4)]}},58:{n:"PtgRef3d",f:function(e,t,r){var n=(96&e[e.l])>>5;e.l+=1;var o=e._R(2);return r&&5==r.biff&&(e.l+=12),[n,o,Ns(e,0,r)]}},59:{n:"PtgArea3d",f:function(e,t,r){var n=(96&e[e.l++])>>5,o=e._R(2,"i");if(r)switch(r.biff){case 5:e.l+=12,6;break;case 12:12}return[n,o,_s(e,0,r)]}},60:{n:"PtgRefErr3d",f:function(e,t,r){var n=(96&e[e.l++])>>5,o=e._R(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6}return e.l+=i,[n,o]}},61:{n:"PtgAreaErr3d",f:function(e,t,r){var n=(96&e[e.l++])>>5,o=e._R(2),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12}return e.l+=i,[n,o]}},255:{}},Us={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Hs={1:{n:"PtgElfLel",f:Ms},2:{n:"PtgElfRw",f:js},3:{n:"PtgElfCol",f:js},6:{n:"PtgElfRwV",f:js},7:{n:"PtgElfColV",f:js},10:{n:"PtgElfRadical",f:js},11:{n:"PtgElfRadicalS",f:Ds},13:{n:"PtgElfColS",f:Ds},15:{n:"PtgElfColSV",f:Ds},16:{n:"PtgElfRadicalLel",f:Ms},25:{n:"PtgList",f:function(e){e.l+=2;var t=e._R(2),r=e._R(2),n=e._R(4),o=e._R(2),i=e._R(2);return{ixti:t,coltype:3&r,rt:Bs[r>>2&31],idx:n,c:o,C:i}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e._R(4)]}},255:{}},zs={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,r){var n=255&e[e.l+1]?1:0;return e.l+=r&&2==r.biff?3:4,[n]}},2:{n:"PtgAttrIf",f:function(e,t,r){var n=255&e[e.l+1]?1:0;return e.l+=2,[n,e._R(r&&2==r.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,r){e.l+=2;for(var n=e._R(r&&2==r.biff?1:2),o=[],i=0;i<=n;++i)o.push(e._R(r&&2==r.biff?1:2));return o}},8:{n:"PtgAttrGoto",f:function(e,t,r){var n=255&e[e.l+1]?1:0;return e.l+=2,[n,e._R(r&&2==r.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,r){e.l+=r&&2==r.biff?3:4}},32:{n:"PtgAttrBaxcel",f:Rs},33:{n:"PtgAttrBaxcel",f:Rs},64:{n:"PtgAttrSpace",f:function(e){return e._R(2),Ps(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e._R(2),Ps(e)}},128:{n:"PtgAttrIfError",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e._R(2)]}},255:{}};function Vs(e,t,r,n){if(n.biff<8)return qr(e,t);for(var o=e.l+t,i=[],a=0;a!==r.length;++a)switch(r[a][0]){case"PtgArray":r[a][1]=Fs(e,0,n),i.push(r[a][1]);break;case"PtgMemArea":r[a][2]=Is(e,r[a][1],n),i.push(r[a][2]);break;case"PtgExp":n&&12==n.biff&&(r[a][1][1]=e._R(4),i.push(r[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[a][0]}return 0!==(t=o-e.l)&&i.push(qr(e,t)),i}function qs(e,t,r){for(var n,o,i=e.l+t,a=[];i!=e.l;)t=i-e.l,o=e[e.l],n=Ws[o]||Ws[Us[o]],24!==o&&25!==o||(n=(24===o?Hs:zs)[e[e.l+1]]),n&&n.f?a.push([n.n,n.f(e,t,r)]):qr(e,t);return a}function $s(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],o=[],i=0;i<n.length;++i){var a=n[i];if(a)if(2===a[0])o.push('"'+a[1].replace(/"/g,'""')+'"');else o.push(a[1]);else o.push("")}t.push(o.join(","))}return t.join(";")}var Gs={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Xs(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var o="";if(r.biff>8)switch(e[n[0]][0]){case 357:return o=-1==n[1]?"#REF":e.SheetNames[n[1]],n[1]==n[2]?o:o+":"+e.SheetNames[n[2]];case 358:return null!=r.SID?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return o=-1==n[1]?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?o:o+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[n[0]][0][3]?(o=-1==n[1]?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?o:o+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Ys(e,t,r){var n=Xs(e,t,r);return"#REF"==n?n:function(e,t){if(!(e||t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}(n,r)}function Ks(e,t,r,n,o){var i,a,s,c,l=o&&o.biff||8,u={s:{c:0,r:0},e:{c:0,r:0}},f=[],h=0,d=0,p="";if(!e[0]||!e[0][0])return"";for(var g=-1,m="",v=0,b=e[0].length;v<b;++v){var y=e[0][v];switch(y[0]){case"PtgUminus":f.push("-"+f.pop());break;case"PtgUplus":f.push("+"+f.pop());break;case"PtgPercent":f.push(f.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(i=f.pop(),a=f.pop(),g>=0){switch(e[0][g][1][0]){case 0:m=qe(" ",e[0][g][1][1]);break;case 1:m=qe("\r",e[0][g][1][1]);break;default:if(m="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][g][1][0])}a+=m,g=-1}f.push(a+Gs[y[0]]+i);break;case"PtgIsect":i=f.pop(),a=f.pop(),f.push(a+" "+i);break;case"PtgUnion":i=f.pop(),a=f.pop(),f.push(a+","+i);break;case"PtgRange":i=f.pop(),a=f.pop(),f.push(a+":"+i);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":s=Kr(y[1][1],u,o),f.push(Zr(s,l));break;case"PtgRefN":s=r?Kr(y[1][1],r,o):y[1][1],f.push(Zr(s,l));break;case"PtgRef3d":h=y[1][1],s=Kr(y[1][2],u,o);p=Ys(n,h,o);f.push(p+"!"+Zr(s,l));break;case"PtgFunc":case"PtgFuncVar":var w=y[1][0],S=y[1][1];w||(w=0);var x=0==(w&=127)?[]:f.slice(-w);f.length-=w,"User"===S&&(S=x.shift()),f.push(S+"("+x.join(",")+")");break;case"PtgBool":f.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":f.push(y[1]);break;case"PtgNum":f.push(String(y[1]));break;case"PtgStr":f.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":c=Jr(y[1][1],r?{s:r}:u,o),f.push(Qr(c,o));break;case"PtgArea":c=Jr(y[1][1],u,o),f.push(Qr(c,o));break;case"PtgArea3d":h=y[1][1],c=y[1][2],p=Ys(n,h,o),f.push(p+"!"+Qr(c,o));break;case"PtgAttrSum":f.push("SUM("+f.pop()+")");break;case"PtgName":d=y[1][2];var A=(n.names||[])[d-1]||(n[0]||[])[d],k=A?A.Name:"SH33TJSNAME"+String(d);k&&"_xlfn."==k.slice(0,6)&&!o.xlfn&&(k=k.slice(6)),f.push(k);break;case"PtgNameX":var T,E=y[1][1];if(d=y[1][2],!(o.biff<=5)){var _="";if(14849==((n[E]||[])[0]||[])[0]||(1025==((n[E]||[])[0]||[])[0]?n[E][d]&&n[E][d].itab>0&&(_=n.SheetNames[n[E][d].itab-1]+"!"):_=n.SheetNames[d-1]+"!"),n[E]&&n[E][d])_+=n[E][d].Name;else if(n[0]&&n[0][d])_+=n[0][d].Name;else{var O=(Xs(n,E,o)||"").split(";;");O[d-1]?_=O[d-1]:_+="SH33TJSERRX"}f.push(_);break}E<0&&(E=-E),n[E]&&(T=n[E][d]),T||(T={Name:"SH33TJSERRY"}),f.push(T.Name);break;case"PtgParen":var N="(",C=")";if(g>=0){switch(m="",e[0][g][1][0]){case 2:N=qe(" ",e[0][g][1][1])+N;break;case 3:N=qe("\r",e[0][g][1][1])+N;break;case 4:C=qe(" ",e[0][g][1][1])+C;break;case 5:C=qe("\r",e[0][g][1][1])+C;break;default:if(o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][g][1][0])}g=-1}f.push(N+f.pop()+C);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":f.push("#REF!");break;case"PtgExp":s={c:y[1][1],r:y[1][0]};var R={c:r.c,r:r.r};if(n.sharedf[an(s)]){var P=n.sharedf[an(s)];f.push(Ks(P,u,R,n,o))}else{var L=!1;for(i=0;i!=n.arrayf.length;++i)if(a=n.arrayf[i],!(s.c<a[0].s.c||s.c>a[0].e.c||s.r<a[0].s.r||s.r>a[0].e.r)){f.push(Ks(a[1],u,R,n,o)),L=!0;break}L||f.push(y[1])}break;case"PtgArray":f.push("{"+$s(y[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":g=v;break;case"PtgMissArg":f.push("");break;case"PtgList":f.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(y))}if(3!=o.biff&&g>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][v][0])){var I=!0;switch((y=e[0][g])[1][0]){case 4:I=!1;case 0:m=qe(" ",y[1][1]);break;case 5:I=!1;case 1:m=qe("\r",y[1][1]);break;default:if(m="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}f.push((I?m:"")+f.pop()+(I?"":m)),g=-1}}if(f.length>1&&o.WTF)throw new Error("bad formula stack");return f[0]}function Js(e,t,r){var n,o=e.l+t,i=2==r.biff?1:2,a=e._R(i);if(65535==a)return[[],qr(e,t-2)];var s=qs(e,a,r);return t!==a+i&&(n=Vs(e,t-a-i,s,r)),e.l=o,[s,n]}function Zs(e,t,r){var n,o=e.l+t,i=e._R(2),a=qs(e,i,r);return 65535==i?[[],qr(e,t-2)]:(t!==i+2&&(n=Vs(e,o-i-2,a,r)),[a,n])}function Qs(e,t,r){var n=e.l+t,o=ai(e);2==r.biff&&++e.l;var i=function(e){var t;if(65535!==Fr(e,e.l+6))return[Mn(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}(e),a=e._R(1);2!=r.biff&&(e._R(1),r.biff>=5&&e._R(4));var s=function(e,t,r){var n,o=e.l+t,i=2==r.biff?1:2,a=e._R(i);if(65535==a)return[[],qr(e,t-2)];var s=qs(e,a,r);return t!==a+i&&(n=Vs(e,t-a-i,s,r)),e.l=o,[s,n]}(e,n-e.l,r);return{cell:o,val:i[0],formula:s,shared:a>>3&1,tt:i[1]}}function ec(e,t,r,n,o){var i=si(t,r,o),a=function(e){if(null==e){var t=$r(8);return t._W(1,3),t._W(1,0),t._W(2,0),t._W(2,0),t._W(2,65535),t}return Bn("number"==typeof e?e:0)}(e.v),s=$r(6);s._W(2,33),s._W(4,0);for(var c=$r(e.bf.length),l=0;l<e.bf.length;++l)c[l]=e.bf[l];return T([i,a,s,c])}function tc(e,t,r){var n=e._R(4),o=qs(e,n,r),i=e._R(4);return[o,i>0?Vs(e,i,o,r):null]}var rc=tc,nc=tc,oc=tc,ic=tc,ac={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},sc={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},cc={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function lc(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&61==(e=e.slice(1)).charCodeAt(0)&&(e=e.slice(1)),e=(e=e.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")})),(e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function uc(e){return("of:="+e.replace(ws,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function fc(e){var t=e.split(":");return[t[0].split(".")[0],t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}function hc(e){return e.replace(/\./,"!")}var dc={},pc={},gc="undefined"!=typeof Map;function mc(e,t,r){var n=0,o=e.length;if(r){if(gc?r.has(t):Object.prototype.hasOwnProperty.call(r,t))for(var i=gc?r.get(t):r[t];n<i.length;++n)if(e[i[n]].t===t)return e.Count++,i[n]}else for(;n<o;++n)if(e[n].t===t)return e.Count++,n;return e[o]={t:t},e.Count++,e.Unique++,r&&(gc?(r.has(t)||r.set(t,[]),r.get(t).push(o)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(o))),o}function vc(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(xa=t.MDW),null!=t.width?r.customWidth=1:null!=t.wpx?n=ka(t.wpx):null!=t.wch&&(n=t.wch),n>-1?(r.width=Ta(n),r.customWidth=1):null!=t.width&&(r.width=t.width),t.hidden&&(r.hidden=!0),null!=t.level&&(r.outlineLevel=r.level=t.level),r}function bc(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(r=[1,1,1,1,.5,.5]),null==e.left&&(e.left=r[0]),null==e.right&&(e.right=r[1]),null==e.top&&(e.top=r[2]),null==e.bottom&&(e.bottom=r[3]),null==e.header&&(e.header=r[4]),null==e.footer&&(e.footer=r[5])}}function yc(e,t,r){var n=r.revssf[null!=t.z?t.z:"General"],o=60,i=e.length;if(null==n&&r.ssf)for(;o<392;++o)if(null==r.ssf[o]){ve(t.z,o),r.ssf[o]=t.z,r.revssf[t.z]=n=o;break}for(o=0;o!=i;++o)if(e[o].numFmtId===n)return o;return e[i]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function wc(e,t,r,n,o,i){try{n.cellNF&&(e.z=D[t])}catch(e){if(n.WTF)throw e}if("z"!==e.t||n.cellStyles){if("d"===e.t&&"string"==typeof e.v&&(e.v=He(e.v)),(!n||!1!==n.cellText)&&"z"!==e.t)try{if(null==D[t]&&ve(Se[t]||"General",t),"e"===e.t)e.w=e.w||Kn[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=X(e.v);else if("d"===e.t){var a=Le(e.v);e.w=(0|a)===a?a.toString(10):X(a)}else{if(void 0===e.v)return"";e.w=Y(e.v,pc)}else"d"===e.t?e.w=me(t,Le(e.v),pc):e.w=me(t,e.v,pc)}catch(e){if(n.WTF)throw e}if(n.cellStyles&&null!=r)try{e.s=i.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=Sa(o.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),n.WTF&&(e.s.fgColor.raw_rgb=o.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=Sa(o.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),n.WTF&&(e.s.bgColor.raw_rgb=o.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(e){if(n.WTF&&i.Fills)throw e}}}function Sc(e,t,r){if(e&&e["!ref"]){var n=ln(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}var xc=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,Ac=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,kc=/<(?:\w:)?hyperlink [^>]*>/gm,Tc=/"(\w*:\w*)"/,Ec=/<(?:\w:)?col\b[^>]*[\/]?>/g,_c=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,Oc=/<(?:\w:)?pageMargins[^>]*\/>/g,Nc=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,Cc=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,Rc=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Pc(e,t,r,n,o,i,a){if(!e)return e;n||(n={"!id":{}});var s=t.dense?[]:{},c={s:{r:2e6,c:2e6},e:{r:0,c:0}},l="",u="",f=e.match(Ac);f?(l=e.slice(0,f.index),u=e.slice(f.index+f[0].length)):l=u=e;var h=l.match(Nc);h?Lc(h[0],s,o,r):(h=l.match(Cc))&&function(e,t,r,n,o){Lc(e.slice(0,e.indexOf(">")),r,n,o)}(h[0],h[1],s,o,r);var d=(l.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var p=l.slice(d,d+50).match(Tc);p&&function(e,t){var r=ln(t);r.s.r<=r.e.r&&r.s.c<=r.e.c&&r.s.r>=0&&r.s.c>=0&&(e["!ref"]=cn(r))}(s,p[1])}var g=l.match(Rc);g&&g[1]&&function(e,t){t.Views||(t.Views=[{}]);(e.match(jc)||[]).forEach((function(e,r){var n=pt(e);t.Views[r]||(t.Views[r]={}),+n.zoomScale&&(t.Views[r].zoom=+n.zoomScale),Et(n.rightToLeft)&&(t.Views[r].RTL=!0)}))}(g[1],o);var m=[];if(t.cellStyles){var v=l.match(Ec);v&&function(e,t){for(var r=!1,n=0;n!=t.length;++n){var o=pt(t[n],!0);o.hidden&&(o.hidden=Et(o.hidden));var i=parseInt(o.min,10)-1,a=parseInt(o.max,10)-1;for(o.outlineLevel&&(o.level=+o.outlineLevel||0),delete o.min,delete o.max,o.width=+o.width,!r&&o.width&&(r=!0,_a(o.width)),Oa(o);i<=a;)e[i++]=Ve(o)}}(m,v)}f&&Mc(f[1],s,t,c,i,a);var b=u.match(_c);b&&(s["!autofilter"]=function(e){return{ref:(e.match(/ref="([^"]*)"/)||[])[1]}}(b[0]));var y=[],w=u.match(xc);if(w)for(d=0;d!=w.length;++d)y[d]=ln(w[d].slice(w[d].indexOf('"')+1));var S=u.match(kc);S&&function(e,t,r){for(var n=Array.isArray(e),o=0;o!=t.length;++o){var i=pt(Rt(t[o]),!0);if(!i.ref)return;var a=((r||{})["!id"]||[])[i.id];a?(i.Target=a.Target,i.location&&(i.Target+="#"+bt(i.location))):(i.Target="#"+bt(i.location),a={Target:i.Target,TargetMode:"Internal"}),i.Rel=a,i.tooltip&&(i.Tooltip=i.tooltip,delete i.tooltip);for(var s=ln(i.ref),c=s.s.r;c<=s.e.r;++c)for(var l=s.s.c;l<=s.e.c;++l){var u=an({c:l,r:c});n?(e[c]||(e[c]=[]),e[c][l]||(e[c][l]={t:"z",v:void 0}),e[c][l].l=i):(e[u]||(e[u]={t:"z",v:void 0}),e[u].l=i)}}}(s,S,n);var x=u.match(Oc);if(x&&(s["!margins"]=function(e){var t={};return["left","right","top","bottom","header","footer"].forEach((function(r){e[r]&&(t[r]=parseFloat(e[r]))})),t}(pt(x[0]))),!s["!ref"]&&c.e.c>=c.s.c&&c.e.r>=c.s.r&&(s["!ref"]=cn(c)),t.sheetRows>0&&s["!ref"]){var A=ln(s["!ref"]);t.sheetRows<=+A.e.r&&(A.e.r=t.sheetRows-1,A.e.r>c.e.r&&(A.e.r=c.e.r),A.e.r<A.s.r&&(A.s.r=A.e.r),A.e.c>c.e.c&&(A.e.c=c.e.c),A.e.c<A.s.c&&(A.s.c=A.e.c),s["!fullref"]=s["!ref"],s["!ref"]=cn(A))}return m.length>0&&(s["!cols"]=m),y.length>0&&(s["!merges"]=y),s}function Lc(e,t,r,n){var o=pt(e);r.Sheets[n]||(r.Sheets[n]={}),o.codeName&&(r.Sheets[n].CodeName=bt(Rt(o.codeName)))}var Ic=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Fc=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];var jc=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function Dc(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),void 0===e.v&&"string"!=typeof e.f||"z"===e.t&&!e.f)return"";var o="",i=e.t,a=e.v;if("z"!==e.t)switch(e.t){case"b":o=e.v?"1":"0";break;case"n":o=""+e.v;break;case"e":o=Kn[e.v];break;case"d":n&&n.cellDates?o=He(e.v,-1).toISOString():((e=Ve(e)).t="n",o=""+(e.v=Le(He(e.v)))),void 0===e.z&&(e.z=D[14]);break;default:o=e.v}var s=Wt("v",St(o)),c={r:t},l=yc(n.cellXfs,e,n);switch(0!==l&&(c.s=l),e.t){case"n":case"z":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=Wt("v",""+mc(n.Strings,e.v,n.revStrings)),c.t="s";break}c.t="str"}if(e.t!=i&&(e.t=i,e.v=a),"string"==typeof e.f&&e.f){var u=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=Ht("f",St(e.f),u)+(null!=e.v?s:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(c.cm=1),Ht("c",s,c)}var Mc=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,o=/ref=["']([^"']*)["']/,i=Lt("v"),a=Lt("f");return function(s,c,l,u,f,h){for(var d,p,g,m,v,b=0,y="",w=[],S=[],x=0,A=0,k=0,T="",E=0,_=0,O=0,N=0,C=Array.isArray(h.CellXf),R=[],P=[],L=Array.isArray(c),I=[],F={},j=!1,M=!!l.sheetStubs,B=s.split(t),W=0,U=B.length;W!=U;++W){var H=(y=B[W].trim()).length;if(0!==H){var z=0;e:for(b=0;b<H;++b)switch(y[b]){case">":if("/"!=y[b-1]){++b;break e}if(l&&l.cellStyles){if(E=null!=(p=pt(y.slice(z,b),!0)).r?parseInt(p.r,10):E+1,_=-1,l.sheetRows&&l.sheetRows<E)continue;F={},j=!1,p.ht&&(j=!0,F.hpt=parseFloat(p.ht),F.hpx=Ca(F.hpt)),"1"==p.hidden&&(j=!0,F.hidden=!0),null!=p.outlineLevel&&(j=!0,F.level=+p.outlineLevel),j&&(I[E-1]=F)}break;case"<":z=b}if(z>=b)break;if(E=null!=(p=pt(y.slice(z,b),!0)).r?parseInt(p.r,10):E+1,_=-1,!(l.sheetRows&&l.sheetRows<E)){u.s.r>E-1&&(u.s.r=E-1),u.e.r<E-1&&(u.e.r=E-1),l&&l.cellStyles&&(F={},j=!1,p.ht&&(j=!0,F.hpt=parseFloat(p.ht),F.hpx=Ca(F.hpt)),"1"==p.hidden&&(j=!0,F.hidden=!0),null!=p.outlineLevel&&(j=!0,F.level=+p.outlineLevel),j&&(I[E-1]=F)),w=y.slice(b).split(e);for(var V=0;V!=w.length&&"<"==w[V].trim().charAt(0);++V);for(w=w.slice(V),b=0;b!=w.length;++b)if(0!==(y=w[b].trim()).length){if(S=y.match(r),x=b,A=0,k=0,y="<c "+("<"==y.slice(0,1)?">":"")+y,null!=S&&2===S.length){for(x=0,T=S[1],A=0;A!=T.length&&!((k=T.charCodeAt(A)-64)<1||k>26);++A)x=26*x+k;_=--x}else++_;for(A=0;A!=y.length&&62!==y.charCodeAt(A);++A);if(++A,(p=pt(y.slice(0,A),!0)).r||(p.r=an({r:E-1,c:_})),d={t:""},null!=(S=(T=y.slice(A)).match(i))&&""!==S[1]&&(d.v=bt(S[1])),l.cellFormula){if(null!=(S=T.match(a))&&""!==S[1]){if(d.f=bt(Rt(S[1])).replace(/\r\n/g,"\n"),l.xlfn||(d.f=ks(d.f)),S[0].indexOf('t="array"')>-1)d.F=(T.match(o)||[])[1],d.F.indexOf(":")>-1&&R.push([ln(d.F),d.F]);else if(S[0].indexOf('t="shared"')>-1){m=pt(S[0]);var q=bt(Rt(S[1]));l.xlfn||(q=ks(q)),P[parseInt(m.si,10)]=[m,q,p.r]}}else(S=T.match(/<f[^>]*\/>/))&&P[(m=pt(S[0])).si]&&(d.f=As(P[m.si][1],P[m.si][2],p.r));var $=on(p.r);for(A=0;A<R.length;++A)$.r>=R[A][0].s.r&&$.r<=R[A][0].e.r&&$.c>=R[A][0].s.c&&$.c<=R[A][0].e.c&&(d.F=R[A][1])}if(null==p.t&&void 0===d.v)if(d.f||d.F)d.v=0,d.t="n";else{if(!M)continue;d.t="z"}else d.t=p.t||"n";switch(u.s.c>_&&(u.s.c=_),u.e.c<_&&(u.e.c=_),d.t){case"n":if(""==d.v||null==d.v){if(!M)continue;d.t="z"}else d.v=parseFloat(d.v);break;case"s":if(void 0===d.v){if(!M)continue;d.t="z"}else g=dc[parseInt(d.v,10)],d.v=g.t,d.r=g.r,l.cellHTML&&(d.h=g.h);break;case"str":d.t="s",d.v=null!=d.v?Rt(d.v):"",l.cellHTML&&(d.h=kt(d.v));break;case"inlineStr":S=T.match(n),d.t="s",null!=S&&(g=Zi(S[1]))?(d.v=g.t,l.cellHTML&&(d.h=g.h)):d.v="";break;case"b":d.v=Et(d.v);break;case"d":l.cellDates?d.v=He(d.v,1):(d.v=Le(He(d.v,1)),d.t="n");break;case"e":l&&!1===l.cellText||(d.w=d.v),d.v=Jn[d.v]}if(O=N=0,v=null,C&&void 0!==p.s&&null!=(v=h.CellXf[p.s])&&(null!=v.numFmtId&&(O=v.numFmtId),l.cellStyles&&null!=v.fillId&&(N=v.fillId)),wc(d,O,N,l,f,h),l.cellDates&&C&&"n"==d.t&&he(D[O])&&(d.t="d",d.v=De(d.v)),p.cm&&l.xlmeta){var G=(l.xlmeta.Cell||[])[+p.cm-1];G&&"XLDAPR"==G.type&&(d.D=!0)}if(L){var X=on(p.r);c[X.r]||(c[X.r]=[]),c[X.r][X.c]=d}else c[p.r]=d}}}}I.length>0&&(c["!rows"]=I)}}();function Bc(e,t,r,n){var o,i=[ct,Ht("worksheet",null,{xmlns:ir[0],"xmlns:r":tr})],a=r.SheetNames[e],s="",c=r.Sheets[a];null==c&&(c={});var l=c["!ref"]||"A1",u=ln(l);if(u.e.c>16383||u.e.r>1048575){if(t.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),l=cn(u)}n||(n={}),c["!comments"]=[];var f=[];!function(e,t,r,n,o){var i=!1,a={},s=null;if("xlsx"!==n.bookType&&t.vbaraw){var c=t.SheetNames[r];try{t.Workbook&&(c=t.Workbook.Sheets[r].CodeName||c)}catch(e){}i=!0,a.codeName=Pt(St(c))}if(e&&e["!outline"]){var l={summaryBelow:1,summaryRight:1};e["!outline"].above&&(l.summaryBelow=0),e["!outline"].left&&(l.summaryRight=0),s=(s||"")+Ht("outlinePr",null,l)}(i||s)&&(o[o.length]=Ht("sheetPr",s,a))}(c,r,e,t,i),i[i.length]=Ht("dimension",null,{ref:l}),i[i.length]=function(e,t,r,n){var o={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(o.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Ht("sheetViews",Ht("sheetView",null,o),{})}(0,0,0,r),t.sheetFormat&&(i[i.length]=Ht("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=c["!cols"]&&c["!cols"].length>0&&(i[i.length]=function(e,t){for(var r,n=["<cols>"],o=0;o!=t.length;++o)(r=t[o])&&(n[n.length]=Ht("col",null,vc(o,r)));return n[n.length]="</cols>",n.join("")}(0,c["!cols"])),i[o=i.length]="<sheetData/>",c["!links"]=[],null!=c["!ref"]&&(s=function(e,t,r,n){var o,i,a=[],s=[],c=ln(e["!ref"]),l="",u="",f=[],h=0,d=0,p=e["!rows"],g=Array.isArray(e),m={r:u},v=-1;for(d=c.s.c;d<=c.e.c;++d)f[d]=nn(d);for(h=c.s.r;h<=c.e.r;++h){for(s=[],u=tn(h),d=c.s.c;d<=c.e.c;++d){o=f[d]+u;var b=g?(e[h]||[])[d]:e[o];void 0!==b&&null!=(l=Dc(b,o,e,t))&&s.push(l)}(s.length>0||p&&p[h])&&(m={r:u},p&&p[h]&&((i=p[h]).hidden&&(m.hidden=1),v=-1,i.hpx?v=Na(i.hpx):i.hpt&&(v=i.hpt),v>-1&&(m.ht=v,m.customHeight=1),i.level&&(m.outlineLevel=i.level)),a[a.length]=Ht("row",s.join(""),m))}if(p)for(;h<p.length;++h)p&&p[h]&&(m={r:h+1},(i=p[h]).hidden&&(m.hidden=1),v=-1,i.hpx?v=Na(i.hpx):i.hpt&&(v=i.hpt),v>-1&&(m.ht=v,m.customHeight=1),i.level&&(m.outlineLevel=i.level),a[a.length]=Ht("row","",m));return a.join("")}(c,t,0,0),s.length>0&&(i[i.length]=s)),i.length>o+1&&(i[i.length]="</sheetData>",i[o]=i[o].replace("/>",">")),c["!protect"]&&(i[i.length]=function(e){var t={sheet:1};return Ic.forEach((function(r){null!=e[r]&&e[r]&&(t[r]="1")})),Fc.forEach((function(r){null==e[r]||e[r]||(t[r]="0")})),e.password&&(t.password=ga(e.password).toString(16).toUpperCase()),Ht("sheetProtection",null,t)}(c["!protect"])),null!=c["!autofilter"]&&(i[i.length]=function(e,t,r,n){var o="string"==typeof e.ref?e.ref:cn(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,a=sn(o);a.s.r==a.e.r&&(a.e.r=sn(t["!ref"]).e.r,o=cn(a));for(var s=0;s<i.length;++s){var c=i[s];if("_xlnm._FilterDatabase"==c.Name&&c.Sheet==n){c.Ref="'"+r.SheetNames[n]+"'!"+o;break}}return s==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+o}),Ht("autoFilter",null,{ref:o})}(c["!autofilter"],c,r,e)),null!=c["!merges"]&&c["!merges"].length>0&&(i[i.length]=function(e){if(0===e.length)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+cn(e[r])+'"/>';return t+"</mergeCells>"}(c["!merges"]));var h,d=-1,p=-1;return c["!links"].length>0&&(i[i.length]="<hyperlinks>",c["!links"].forEach((function(e){e[1].Target&&(h={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(p=io(n,-1,St(e[1].Target).replace(/#.*$/,""),to.HLINK),h["r:id"]="rId"+p),(d=e[1].Target.indexOf("#"))>-1&&(h.location=St(e[1].Target.slice(d+1))),e[1].Tooltip&&(h.tooltip=St(e[1].Tooltip)),i[i.length]=Ht("hyperlink",null,h))})),i[i.length]="</hyperlinks>"),delete c["!links"],null!=c["!margins"]&&(i[i.length]=function(e){return bc(e),Ht("pageMargins",null,e)}(c["!margins"])),t&&!t.ignoreEC&&null!=t.ignoreEC||(i[i.length]=Wt("ignoredErrors",Ht("ignoredError",null,{numberStoredAsText:1,sqref:l}))),f.length>0&&(p=io(n,-1,"../drawings/drawing"+(e+1)+".xml",to.DRAW),i[i.length]=Ht("drawing",null,{"r:id":"rId"+p}),c["!drawing"]=f),c["!comments"].length>0&&(p=io(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",to.VML),i[i.length]=Ht("legacyDrawing",null,{"r:id":"rId"+p}),c["!legacy"]=p),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function Wc(e,t,r,n){var o=function(e,t,r){var n=$r(145),o=(r["!rows"]||[])[e]||{};n._W(4,e),n._W(4,0);var i=320;o.hpx?i=20*Na(o.hpx):o.hpt&&(i=20*o.hpt),n._W(2,i),n._W(1,0);var a=0;o.level&&(a|=o.level),o.hidden&&(a|=16),(o.hpx||o.hpt)&&(a|=32),n._W(1,a),n._W(1,0);var s=0,c=n.l;n.l+=4;for(var l={r:e,c:0},u=0;u<16;++u)if(!(t.s.c>u+1<<10||t.e.c<u<<10)){for(var f=-1,h=-1,d=u<<10;d<u+1<<10;++d)l.c=d,(Array.isArray(r)?(r[l.r]||[])[l.c]:r[an(l)])&&(f<0&&(f=d),h=d);f<0||(++s,n._W(4,f),n._W(4,h))}var p=n.l;return n.l=c,n._W(4,s),n.l=p,n.length>n.l?n.slice(0,n.l):n}(n,r,t);(o.length>17||(t["!rows"]||[])[n])&&Yr(e,0,o)}var Uc=jn,Hc=Dn;function zc(e){return[kn(e),Mn(e),"n"]}var Vc=jn,qc=Dn;var $c=["left","right","top","bottom","header","footer"];function Gc(e,t,r,n,o,i,a){if(void 0===t.v)return!1;var s="";switch(t.t){case"b":s=t.v?"1":"0";break;case"d":(t=Ve(t)).z=t.z||D[14],t.v=Le(He(t.v)),t.t="n";break;case"n":case"e":s=""+t.v;break;default:s=t.v}var c={r:r,c:n};switch(c.s=yc(o.cellXfs,t,o),t.l&&i["!links"].push([an(c),t.l]),t.c&&i["!comments"].push([an(c),t.c]),t.t){case"s":case"str":return o.bookSST?(s=mc(o.Strings,t.v,o.revStrings),c.t="s",c.v=s,a?Yr(e,18,function(e,t,r){return null==r&&(r=$r(8)),Tn(t,r),r._W(4,t.v),r}(0,c)):Yr(e,7,function(e,t,r){return null==r&&(r=$r(12)),An(t,r),r._W(4,t.v),r}(0,c))):(c.t="str",a?Yr(e,17,function(e,t,r){return null==r&&(r=$r(8+4*e.v.length)),Tn(t,r),vn(e.v,r),r.length>r.l?r.slice(0,r.l):r}(t,c)):Yr(e,6,function(e,t,r){return null==r&&(r=$r(12+4*e.v.length)),An(t,r),vn(e.v,r),r.length>r.l?r.slice(0,r.l):r}(t,c))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?a?Yr(e,13,function(e,t,r){return null==r&&(r=$r(8)),Tn(t,r),In(e.v,r),r}(t,c)):Yr(e,2,function(e,t,r){return null==r&&(r=$r(12)),An(t,r),In(e.v,r),r}(t,c)):a?Yr(e,16,function(e,t,r){return null==r&&(r=$r(12)),Tn(t,r),Bn(e.v,r),r}(t,c)):Yr(e,5,function(e,t,r){return null==r&&(r=$r(16)),An(t,r),Bn(e.v,r),r}(t,c)),!0;case"b":return c.t="b",a?Yr(e,15,function(e,t,r){return null==r&&(r=$r(5)),Tn(t,r),r._W(1,e.v?1:0),r}(t,c)):Yr(e,4,function(e,t,r){return null==r&&(r=$r(9)),An(t,r),r._W(1,e.v?1:0),r}(t,c)),!0;case"e":return c.t="e",a?Yr(e,14,function(e,t,r){return null==r&&(r=$r(8)),Tn(t,r),r._W(1,e.v),r._W(2,0),r._W(1,0),r}(t,c)):Yr(e,3,function(e,t,r){return null==r&&(r=$r(9)),An(t,r),r._W(1,e.v),r}(t,c)),!0}return a?Yr(e,12,function(e,t,r){return null==r&&(r=$r(4)),Tn(t,r)}(0,c)):Yr(e,1,function(e,t,r){return null==r&&(r=$r(8)),An(t,r)}(0,c)),!0}function Xc(e,t){t&&t["!merges"]&&(Yr(e,177,function(e,t){return null==t&&(t=$r(4)),t._W(4,e),t}(t["!merges"].length)),t["!merges"].forEach((function(t){Yr(e,176,qc(t))})),Yr(e,178))}function Yc(e,t){t&&t["!cols"]&&(Yr(e,390),t["!cols"].forEach((function(t,r){t&&Yr(e,60,function(e,t,r){null==r&&(r=$r(18));var n=vc(e,t);r._W(-4,e),r._W(-4,e),r._W(4,256*(n.width||10)),r._W(4,0);var o=0;return t.hidden&&(o|=1),"number"==typeof n.width&&(o|=2),t.level&&(o|=t.level<<8),r._W(2,o),r}(r,t))})),Yr(e,391))}function Kc(e,t){t&&t["!ref"]&&(Yr(e,648),Yr(e,649,function(e){var t=$r(24);return t._W(4,4),t._W(4,1),Dn(e,t),t}(ln(t["!ref"]))),Yr(e,650))}function Jc(e,t,r){t["!links"].forEach((function(t){if(t[1].Target){var n=io(r,-1,t[1].Target.replace(/#.*$/,""),to.HLINK);Yr(e,494,function(e,t){var r=$r(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Dn({s:on(e[0]),e:on(e[0])},r),Pn("rId"+t,r);var n=e[1].Target.indexOf("#");return vn((-1==n?"":e[1].Target.slice(n+1))||"",r),vn(e[1].Tooltip||"",r),vn("",r),r.slice(0,r.l)}(t,n))}})),delete t["!links"]}function Zc(e,t,r){Yr(e,133),Yr(e,137,function(e,t,r){null==r&&(r=$r(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r._W(2,n),r._W(4,0),r._W(4,0),r._W(4,0),r._W(1,0),r._W(1,0),r._W(2,0),r._W(2,100),r._W(2,0),r._W(2,0),r._W(2,0),r._W(4,0),r}(0,r)),Yr(e,138),Yr(e,134)}function Qc(e,t){t["!protect"]&&Yr(e,535,function(e,t){return null==t&&(t=$r(66)),t._W(2,e.password?ga(e.password):0),t._W(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(r){r[1]?t._W(4,null==e[r[0]]||e[r[0]]?0:1):t._W(4,null!=e[r[0]]&&e[r[0]]?0:1)})),t}(t["!protect"]))}function el(e,t,r,n){var o=Xr(),i=r.SheetNames[e],a=r.Sheets[i]||{},s=i;try{r&&r.Workbook&&(s=r.Workbook.Sheets[e].CodeName||s)}catch(e){}var c=ln(a["!ref"]||"A1");if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575)}return a["!links"]=[],a["!comments"]=[],Yr(o,129),(r.vbaraw||a["!outline"])&&Yr(o,147,function(e,t,r){null==r&&(r=$r(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r._W(1,n);for(var o=1;o<3;++o)r._W(1,0);return Wn({auto:1},r),r._W(-4,-1),r._W(-4,-1),_n(e,r),r.slice(0,r.l)}(s,a["!outline"])),Yr(o,148,Hc(c)),Zc(o,0,r.Workbook),Yc(o,a),function(e,t,r,n){var o,i=ln(t["!ref"]||"A1"),a="",s=[];Yr(e,145);var c=Array.isArray(t),l=i.e.r;t["!rows"]&&(l=Math.max(i.e.r,t["!rows"].length-1));for(var u=i.s.r;u<=l;++u){a=tn(u),Wc(e,t,i,u);var f=!1;if(u<=i.e.r)for(var h=i.s.c;h<=i.e.c;++h){u===i.s.r&&(s[h]=nn(h)),o=s[h]+a;var d=c?(t[u]||[])[h]:t[o];f=!!d&&Gc(e,d,u,h,n,t,f)}}Yr(e,146)}(o,a,0,t),Qc(o,a),function(e,t,r,n){if(t["!autofilter"]){var o=t["!autofilter"],i="string"==typeof o.ref?o.ref:cn(o.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,s=sn(i);s.s.r==s.e.r&&(s.e.r=sn(t["!ref"]).e.r,i=cn(s));for(var c=0;c<a.length;++c){var l=a[c];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+i;break}}c==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),Yr(e,161,Dn(ln(i))),Yr(e,162)}}(o,a,r,e),Xc(o,a),Jc(o,a,n),a["!margins"]&&Yr(o,476,function(e,t){return null==t&&(t=$r(48)),bc(e),$c.forEach((function(r){Bn(e[r],t)})),t}(a["!margins"])),t&&!t.ignoreEC&&null!=t.ignoreEC||Kc(o,a),function(e,t,r,n){if(t["!comments"].length>0){var o=io(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",to.VML);Yr(e,551,Pn("rId"+o)),t["!legacy"]=o}}(o,a,e,n),Yr(o,130),o.end()}function tl(e,t,r,n,o,i){var a=i||{"!type":"chart"};if(!e)return i;var s=0,c=0,l="A",u={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var t=function(e){var t,r=[],n=e.match(/^<c:numCache>/);(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var t=e.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);t&&(r[+t[1]]=n?+t[2]:t[2])}));var o=bt((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach((function(e){t=e.replace(/<.*?>/g,"")})),[r,o,t]}(e);u.s.r=u.s.c=0,u.e.c=s,l=nn(s),t[0].forEach((function(e,r){a[l+tn(r)]={t:"n",v:e,z:t[1]},c=r})),u.e.r<c&&(u.e.r=c),++s})),s>0&&(a["!ref"]=cn(u)),a}var rl=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],nl=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],ol=[],il=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function al(e,t){for(var r=0;r!=e.length;++r)for(var n=e[r],o=0;o!=t.length;++o){var i=t[o];if(null==n[i[0]])n[i[0]]=i[1];else switch(i[2]){case"bool":"string"==typeof n[i[0]]&&(n[i[0]]=Et(n[i[0]]));break;case"int":"string"==typeof n[i[0]]&&(n[i[0]]=parseInt(n[i[0]],10))}}}function sl(e,t){for(var r=0;r!=t.length;++r){var n=t[r];if(null==e[n[0]])e[n[0]]=n[1];else switch(n[2]){case"bool":"string"==typeof e[n[0]]&&(e[n[0]]=Et(e[n[0]]));break;case"int":"string"==typeof e[n[0]]&&(e[n[0]]=parseInt(e[n[0]],10))}}}function cl(e){sl(e.WBProps,rl),sl(e.CalcPr,il),al(e.WBView,nl),al(e.Sheets,ol),pc.date1904=Et(e.WBProps.date1904)}var ll="][*?/\\".split("");function ul(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return ll.forEach((function(n){if(-1!=e.indexOf(n)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}})),r}function fl(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];!function(e,t,r){e.forEach((function(n,o){ul(n);for(var i=0;i<o;++i)if(n==e[i])throw new Error("Duplicate Sheet Name: "+n);if(r){var a=t&&t[o]&&t[o].CodeName||n;if(95==a.charCodeAt(0)&&a.length>22)throw new Error("Bad Code Name: Worksheet"+a)}}))}(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)Sc(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}var hl=/<\w+:workbook/;function dl(e){var t=[ct];t[t.length]=Ht("workbook",null,{xmlns:ir[0],"xmlns:r":tr});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(rl.forEach((function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(n[t[0]]=e.Workbook.WBProps[t[0]])})),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=Ht("workbookPr",null,n);var o=e.Workbook&&e.Workbook.Sheets||[],i=0;if(o&&o[0]&&o[0].Hidden){for(t[t.length]="<bookViews>",i=0;i!=e.SheetNames.length&&o[i]&&o[i].Hidden;++i);i==e.SheetNames.length&&(i=0),t[t.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",i=0;i!=e.SheetNames.length;++i){var a={name:St(e.SheetNames[i].slice(0,31))};if(a.sheetId=""+(i+1),a["r:id"]="rId"+(i+1),o[i])switch(o[i].Hidden){case 1:a.state="hidden";break;case 2:a.state="veryHidden"}t[t.length]=Ht("sheet",null,a)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(e){var r={name:e.Name};e.Comment&&(r.comment=e.Comment),null!=e.Sheet&&(r.localSheetId=""+e.Sheet),e.Hidden&&(r.hidden="1"),e.Ref&&(t[t.length]=Ht("definedName",St(e.Ref),r))})),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function pl(e,t){return t||(t=$r(127)),t._W(4,e.Hidden),t._W(4,e.iTabID),Pn(e.strRelID,t),vn(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function gl(e,t){var r={};return e._R(4),r.ArchID=e._R(4),e.l+=t-8,r}function ml(t,r){r||(r=$r(127));for(var n=0;4!=n;++n)r._W(4,0);return vn("SheetJS",r),vn(e.version,r),vn(e.version,r),vn("7262",r),r.length>r.l?r.slice(0,r.l):r}function vl(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var r=t.Workbook.Sheets,n=0,o=-1,i=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&-1==o?o=n:1==r[n].Hidden&&-1==i&&(i=n);i>o||(Yr(e,135),Yr(e,158,function(e,t){return t||(t=$r(29)),t._W(-4,0),t._W(-4,460),t._W(4,28800),t._W(4,17600),t._W(4,500),t._W(4,e),t._W(4,e),t._W(1,120),t.length>t.l?t.slice(0,t.l):t}(o)),Yr(e,136))}}function bl(e,t){var r=Xr();return Yr(r,131),Yr(r,128,ml()),Yr(r,153,function(e,t){t||(t=$r(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t._W(4,r),t._W(4,0),_n(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}(e.Workbook&&e.Workbook.WBProps||null)),vl(r,e),function(e,t){Yr(e,143);for(var r=0;r!=t.SheetNames.length;++r)Yr(e,156,pl({Hidden:t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]}));Yr(e,144)}(r,e),Yr(r,132),r.end()}function yl(e,t,r){return".bin"===t.slice(-4)?function(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],o=!1;t||(t={}),t.biff=12;var i=[],a=[[]];return a.SheetNames=[],a.XTI=[],iu[16]={n:"BrtFRTArchID$",f:gl},Gr(e,(function(e,s,c){switch(c){case 156:a.SheetNames.push(e.name),r.Sheets.push(e);break;case 153:r.WBProps=e;break;case 39:null!=e.Sheet&&(t.SID=e.Sheet),e.Ref=Ks(e.Ptg,0,null,a,t),delete t.SID,delete e.Ptg,i.push(e);break;case 1036:case 361:case 2071:case 158:case 143:case 664:case 353:case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:case 16:break;case 357:case 358:case 355:case 667:a[0].length?a.push([c,e]):a[0]=[c,e],a[a.length-1].XTI=[];break;case 362:0===a.length&&(a[0]=[],a[0].XTI=[]),a[a.length-1].XTI=a[a.length-1].XTI.concat(e),a.XTI=a.XTI.concat(e);break;case 35:case 37:n.push(c),o=!0;break;case 36:case 38:n.pop(),o=!1;break;default:if(s.T);else if(!o||t.WTF&&37!=n[n.length-1]&&35!=n[n.length-1])throw new Error("Unexpected record 0x"+c.toString(16))}}),t),cl(r),r.Names=i,r.supbooks=a,r}(e,r):function(e,t){if(!e)throw new Error("Could not find file");var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},n=!1,o="xmlns",i={},a=0;if(e.replace(ft,(function(s,c){var l=pt(s);switch(gt(l[0])){case"<?xml":case"</workbook>":case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":case"<bookViews":case"<bookViews>":case"</bookViews>":case"</workbookView>":case"<sheets":case"<sheets>":case"</sheets>":case"</sheet>":case"<functionGroups":case"<functionGroups/>":case"<functionGroup":case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":case"<definedName/>":case"</calcPr>":case"<oleSize":case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":case"<customWorkbookView":case"</customWorkbookView>":case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":case"<smartTagPr":case"<smartTagPr/>":case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":case"<webPublishing":case"<webPublishing/>":case"<fileRecoveryPr":case"<fileRecoveryPr/>":case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":case"<ArchID":case"<revisionPtr":break;case"<workbook":s.match(hl)&&(o="xmlns"+s.match(/<(\w+):/)[1]),r.xmlns=l[o];break;case"<fileVersion":delete l[0],r.AppVersion=l;break;case"<workbookPr":case"<workbookPr/>":rl.forEach((function(e){if(null!=l[e[0]])switch(e[2]){case"bool":r.WBProps[e[0]]=Et(l[e[0]]);break;case"int":r.WBProps[e[0]]=parseInt(l[e[0]],10);break;default:r.WBProps[e[0]]=l[e[0]]}})),l.codeName&&(r.WBProps.CodeName=Rt(l.codeName));break;case"<workbookView":case"<workbookView/>":delete l[0],r.WBView.push(l);break;case"<sheet":switch(l.state){case"hidden":l.Hidden=1;break;case"veryHidden":l.Hidden=2;break;default:l.Hidden=0}delete l.state,l.name=bt(Rt(l.name)),delete l[0],r.Sheets.push(l);break;case"<definedNames>":case"<definedNames":case"<ext":case"<AlternateContent":case"<AlternateContent>":n=!0;break;case"</definedNames>":case"</ext>":case"</AlternateContent>":n=!1;break;case"<definedName":(i={}).Name=Rt(l.name),l.comment&&(i.Comment=l.comment),l.localSheetId&&(i.Sheet=+l.localSheetId),Et(l.hidden||"0")&&(i.Hidden=!0),a=c+s.length;break;case"</definedName>":i.Ref=bt(Rt(e.slice(a,c))),r.Names.push(i);break;case"<calcPr":case"<calcPr/>":delete l[0],r.CalcPr=l;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+l[0]+" in workbook")}return s})),-1===ir.indexOf(r.xmlns))throw new Error("Unknown Namespace: "+r.xmlns);return cl(r),r}(e,r)}function wl(e,t,r,n,o,i,a,s){return".bin"===t.slice(-4)?function(e,t,r,n,o,i,a){if(!e)return e;var s=t||{};n||(n={"!id":{}});var c,l,u,f,h,d,p,g,m,v,b=s.dense?[]:{},y={s:{r:2e6,c:2e6},e:{r:0,c:0}},w=[],S=!1,x=!1,A=[];s.biff=12,s["!row"]=0;var k=0,T=!1,E=[],_={},O=s.supbooks||o.supbooks||[[]];if(O.sharedf=_,O.arrayf=E,O.SheetNames=o.SheetNames||o.Sheets.map((function(e){return e.name})),!s.supbooks&&(s.supbooks=O,o.Names))for(var N=0;N<o.Names.length;++N)O[0][N+1]=o.Names[N];var C,R,P=[],L=[],I=!1;if(iu[16]={n:"BrtShortReal",f:zc},Gr(e,(function(e,t,N){if(!x)switch(N){case 148:c=e;break;case 0:l=e,s.sheetRows&&s.sheetRows<=l.r&&(x=!0),m=tn(h=l.r),s["!row"]=l.r,(e.hidden||e.hpt||null!=e.level)&&(e.hpt&&(e.hpx=Ca(e.hpt)),L[e.r]=e);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(u={t:e[2]},e[2]){case"n":u.v=e[1];break;case"s":g=dc[e[1]],u.v=g.t,u.r=g.r;break;case"b":u.v=!!e[1];break;case"e":u.v=e[1],!1!==s.cellText&&(u.w=Kn[u.v]);break;case"str":u.t="s",u.v=e[1];break;case"is":u.t="s",u.v=e[1].t}if((f=a.CellXf[e[0].iStyleRef])&&wc(u,f.numFmtId,null,s,i,a),d=-1==e[0].c?d+1:e[0].c,s.dense?(b[h]||(b[h]=[]),b[h][d]=u):b[nn(d)+m]=u,s.cellFormula){for(T=!1,k=0;k<E.length;++k){var F=E[k];l.r>=F[0].s.r&&l.r<=F[0].e.r&&d>=F[0].s.c&&d<=F[0].e.c&&(u.F=cn(F[0]),T=!0)}!T&&e.length>3&&(u.f=e[3])}if(y.s.r>l.r&&(y.s.r=l.r),y.s.c>d&&(y.s.c=d),y.e.r<l.r&&(y.e.r=l.r),y.e.c<d&&(y.e.c=d),s.cellDates&&f&&"n"==u.t&&he(D[f.numFmtId])){var j=U(u.v);j&&(u.t="d",u.v=new Date(j.y,j.m-1,j.d,j.H,j.M,j.S,j.u))}C&&("XLDAPR"==C.type&&(u.D=!0),C=void 0),R&&(R=void 0);break;case 1:case 12:if(!s.sheetStubs||S)break;u={t:"z",v:void 0},d=-1==e[0].c?d+1:e[0].c,s.dense?(b[h]||(b[h]=[]),b[h][d]=u):b[nn(d)+m]=u,y.s.r>l.r&&(y.s.r=l.r),y.s.c>d&&(y.s.c=d),y.e.r<l.r&&(y.e.r=l.r),y.e.c<d&&(y.e.c=d),C&&("XLDAPR"==C.type&&(u.D=!0),C=void 0),R&&(R=void 0);break;case 176:A.push(e);break;case 49:C=((s.xlmeta||{}).Cell||[])[e-1];break;case 494:var M=n["!id"][e.relId];for(M?(e.Target=M.Target,e.loc&&(e.Target+="#"+e.loc),e.Rel=M):""==e.relId&&(e.Target="#"+e.loc),h=e.rfx.s.r;h<=e.rfx.e.r;++h)for(d=e.rfx.s.c;d<=e.rfx.e.c;++d)s.dense?(b[h]||(b[h]=[]),b[h][d]||(b[h][d]={t:"z",v:void 0}),b[h][d].l=e):(p=an({c:d,r:h}),b[p]||(b[p]={t:"z",v:void 0}),b[p].l=e);break;case 426:if(!s.cellFormula)break;E.push(e),(v=s.dense?b[h][d]:b[nn(d)+m]).f=Ks(e[1],0,{r:l.r,c:d},O,s),v.F=cn(e[0]);break;case 427:if(!s.cellFormula)break;_[an(e[0].s)]=e[1],(v=s.dense?b[h][d]:b[nn(d)+m]).f=Ks(e[1],0,{r:l.r,c:d},O,s);break;case 60:if(!s.cellStyles)break;for(;e.e>=e.s;)P[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},I||(I=!0,_a(e.w/256)),Oa(P[e.e+1]);break;case 161:b["!autofilter"]={ref:cn(e)};break;case 476:b["!margins"]=e;break;case 147:o.Sheets[r]||(o.Sheets[r]={}),e.name&&(o.Sheets[r].CodeName=e.name),(e.above||e.left)&&(b["!outline"]={above:e.above,left:e.left});break;case 137:o.Views||(o.Views=[{}]),o.Views[0]||(o.Views[0]={}),e.RTL&&(o.Views[0].RTL=!0);break;case 485:case 64:case 1053:case 151:case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:S=!0;break;case 36:S=!1;break;case 37:w.push(N),S=!0;break;case 38:w.pop(),S=!1;break;default:if(t.T);else if(!S||s.WTF)throw new Error("Unexpected record 0x"+N.toString(16))}}),s),delete s.supbooks,delete s["!row"],!b["!ref"]&&(y.s.r<2e6||c&&(c.e.r>0||c.e.c>0||c.s.r>0||c.s.c>0))&&(b["!ref"]=cn(c||y)),s.sheetRows&&b["!ref"]){var F=ln(b["!ref"]);s.sheetRows<=+F.e.r&&(F.e.r=s.sheetRows-1,F.e.r>y.e.r&&(F.e.r=y.e.r),F.e.r<F.s.r&&(F.s.r=F.e.r),F.e.c>y.e.c&&(F.e.c=y.e.c),F.e.c<F.s.c&&(F.s.c=F.e.c),b["!fullref"]=b["!ref"],b["!ref"]=cn(F))}return A.length>0&&(b["!merges"]=A),P.length>0&&(b["!cols"]=P),L.length>0&&(b["!rows"]=L),b}(e,n,r,o,i,a,s):Pc(e,n,r,o,i,a,s)}function Sl(e,t,r,n,o,i,a,s){return".bin"===t.slice(-4)?function(e,t,r,n,o){if(!e)return e;n||(n={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},a=[],s=!1;return Gr(e,(function(e,n,c){switch(c){case 550:i["!rel"]=e;break;case 651:o.Sheets[r]||(o.Sheets[r]={}),e.name&&(o.Sheets[r].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:a.push(c);break;case 38:a.pop();break;default:if(n.T>0)a.push(c);else if(n.T<0)a.pop();else if(!s||t.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}),t),n["!id"][i["!rel"]]&&(i["!drawel"]=n["!id"][i["!rel"]]),i}(e,n,r,o,i):function(e,t,r,n,o){if(!e)return e;n||(n={"!id":{}});var i,a={"!type":"chart","!drawel":null,"!rel":""},s=e.match(Nc);return s&&Lc(s[0],0,o,r),(i=e.match(/drawing r:id="(.*?)"/))&&(a["!rel"]=i[1]),n["!id"][a["!rel"]]&&(a["!drawel"]=n["!id"][a["!rel"]]),a}(e,0,r,o,i)}function xl(e,t,r,n){return".bin"===t.slice(-4)?function(e,t,r){var n={NumberFmt:[]};for(var o in D)n.NumberFmt[o]=D[o];n.CellXf=[],n.Fonts=[];var i=[],a=!1;return Gr(e,(function(e,o,s){switch(s){case 44:n.NumberFmt[e[0]]=e[1],ve(e[1],e[0]);break;case 43:n.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=Sa(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:case 45:case 46:case 48:case 507:case 572:case 475:case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 47:617==i[i.length-1]&&n.CellXf.push(e);break;case 35:a=!0;break;case 36:a=!1;break;case 37:i.push(s),a=!0;break;case 38:i.pop(),a=!1;break;default:if(o.T>0)i.push(s);else if(o.T<0)i.pop();else if(!a||r.WTF&&37!=i[i.length-1])throw new Error("Unexpected record 0x"+s.toString(16))}})),n}(e,r,n):Fa(e,r,n)}function Al(e,t,r){return".bin"===t.slice(-4)?function(e,t){var r=[],n=!1;return Gr(e,(function(e,o,i){switch(i){case 159:r.Count=e[0],r.Unique=e[1];break;case 19:r.push(e);break;case 160:return!0;case 35:n=!0;break;case 36:n=!1;break;default:if(o.T,!n||t.WTF)throw new Error("Unexpected record 0x"+i.toString(16))}})),r}(e,r):function(e,t){var r=[],n="";if(!e)return r;var o=e.match(Qi);if(o){n=o[2].replace(ea,"").split(ta);for(var i=0;i!=n.length;++i){var a=Zi(n[i].trim(),t);null!=a&&(r[r.length]=a)}o=pt(o[1]),r.Count=o.count,r.Unique=o.uniqueCount}return r}(e,r)}function kl(e,t,r){return".bin"===t.slice(-4)?function(e,t){var r=[],n=[],o={},i=!1;return Gr(e,(function(e,a,s){switch(s){case 632:n.push(e);break;case 635:o=e;break;case 637:o.t=e.t,o.h=e.h,o.r=e.r;break;case 636:if(o.author=n[o.iauthor],delete o.iauthor,t.sheetRows&&o.rfx&&t.sheetRows<=o.rfx.r)break;o.t||(o.t=""),delete o.rfx,r.push(o);break;case 3072:case 37:case 38:break;case 35:i=!0;break;case 36:i=!1;break;default:if(a.T);else if(!i||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}})),r}(e,r):function(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var r=[],n=[],o=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);o&&o[1]&&o[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&r.push(t[1])}}));var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return i&&i[1]&&i[1].split(/<\/\w*:?comment>/).forEach((function(e){if(""!==e&&""!==e.trim()){var o=e.match(/<(?:\w+:)?comment[^>]*>/);if(o){var i=pt(o[0]),a={author:i.authorId&&r[i.authorId]||"sheetjsghost",ref:i.ref,guid:i.guid},s=on(i.ref);if(!(t.sheetRows&&t.sheetRows<=s.r)){var c=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),l=!!c&&!!c[1]&&Zi(c[1])||{r:"",t:"",h:""};a.r=l.r,"<t></t>"==l.r&&(l.t=l.h=""),a.t=(l.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(a.h=l.h),n.push(a)}}}})),n}(e,r)}function Tl(e,t,r){return".bin"===t.slice(-4)?function(e,t,r){var n=[];return Gr(e,(function(e,t,r){if(63===r)n.push(e);else if(!t.T)throw new Error("Unexpected record 0x"+r.toString(16))})),n}(e):function(e){var t=[];if(!e)return t;var r=1;return(e.match(ft)||[]).forEach((function(e){var n=pt(e);switch(n[0]){case"<?xml":case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete n[0],n.i?r=n.i:n.i=r,t.push(n)}})),t}(e)}function El(e,t,r,n){if(".bin"===r.slice(-4))return function(e,t,r,n){if(!e)return e;var o=n||{},i=!1;Gr(e,(function(e,t,r){switch(r){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:i=!0;break;case 36:i=!1;break;default:if(t.T);else if(!i||o.WTF)throw new Error("Unexpected record 0x"+r.toString(16))}}),o)}(e,0,0,n)}function _l(e,t,r){return".bin"===t.slice(-4)?function(e,t,r){var n={Types:[],Cell:[],Value:[]},o=r||{},i=[],a=!1,s=2;return Gr(e,(function(e,t,r){switch(r){case 335:n.Types.push({name:e.name});break;case 51:e.forEach((function(e){1==s?n.Cell.push({type:n.Types[e[0]-1].name,index:e[1]}):0==s&&n.Value.push({type:n.Types[e[0]-1].name,index:e[1]})}));break;case 337:s=e?1:0;break;case 338:s=2;break;case 35:i.push(r),a=!0;break;case 36:i.pop(),a=!1;break;default:if(t.T);else if(!a||o.WTF&&35!=i[i.length-1])throw new Error("Unexpected record 0x"+r.toString(16))}})),n}(e,0,r):function(e,t,r){var n={Types:[],Cell:[],Value:[]};if(!e)return n;var o,i=!1,a=2;return e.replace(ft,(function(e){var t=pt(e);switch(gt(t[0])){case"<?xml":case"<metadata":case"</metadata>":case"<metadataTypes":case"</metadataTypes>":case"</metadataType>":case"</futureMetadata>":case"<bk>":case"</bk>":case"</rc>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<metadataType":n.Types.push({name:t.name});break;case"<futureMetadata":for(var s=0;s<n.Types.length;++s)n.Types[s].name==t.name&&(o=n.Types[s]);break;case"<rc":1==a?n.Cell.push({type:n.Types[t.t-1].name,index:+t.v}):0==a&&n.Value.push({type:n.Types[t.t-1].name,index:+t.v});break;case"<cellMetadata":a=1;break;case"</cellMetadata>":case"</valueMetadata>":a=2;break;case"<valueMetadata":a=0;break;case"<ext":i=!0;break;case"</ext>":i=!1;break;case"<rvb":if(!o)break;o.offsets||(o.offsets=[]),o.offsets.push(+t.i);break;default:if(!i&&r.WTF)throw new Error("unrecognized "+t[0]+" in metadata")}return e})),n}(e,0,r)}function Ol(e,t,r,n,o){return(".bin"===t.slice(-4)?el:Bc)(e,r,n,o)}function Nl(e,t,r){return(".bin"===t.slice(-4)?vs:ps)(e,r)}var Cl,Rl=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Pl=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Ll(e,t){var r=e.split(/\s+/),n=[];if(t||(n[0]=r[0]),1===r.length)return n;var o,i,a,s=e.match(Rl);if(s)for(a=0;a!=s.length;++a)-1===(i=(o=s[a].match(Pl))[1].indexOf(":"))?n[o[1]]=o[2].slice(1,o[2].length-1):n["xmlns:"===o[1].slice(0,6)?"xmlns"+o[1].slice(6):o[1].slice(i+1)]=o[2].slice(1,o[2].length-1);return n}function Il(e){var t={};if(1===e.split(/\s+/).length)return t;var r,n,o,i=e.match(Rl);if(i)for(o=0;o!=i.length;++o)-1===(n=(r=i[o].match(Pl))[1].indexOf(":"))?t[r[1]]=r[2].slice(1,r[2].length-1):t["xmlns:"===r[1].slice(0,6)?"xmlns"+r[1].slice(6):r[1].slice(n+1)]=r[2].slice(1,r[2].length-1);return t}function Fl(e,t,r,n){var o=n;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":o=Et(n);break;case"i2":case"int":o=parseInt(n,10);break;case"r4":case"float":o=parseFloat(n);break;case"date":case"dateTime.tz":o=He(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[bt(t)]=o}function jl(e,t,r){if("z"!==e.t){if(!r||!1!==r.cellText)try{"e"===e.t?e.w=e.w||Kn[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=X(e.v):e.w=Y(e.v):e.w=function(e,t){var r=Cl[e]||bt(e);return"General"===r?Y(t):me(r,t)}(t||"General",e.v)}catch(e){if(r.WTF)throw e}try{var n=Cl[t]||t||"General";if(r.cellNF&&(e.z=n),r.cellDates&&"n"==e.t&&he(n)){var o=U(e.v);o&&(e.t="d",e.v=new Date(o.y,o.m-1,o.d,o.H,o.M,o.S,o.u))}}catch(e){if(r.WTF)throw e}}}function Dl(e,t,r){if(r.cellStyles&&t.Interior){var n=t.Interior;n.Pattern&&(n.patternType=Ra[n.Pattern]||n.Pattern)}e[t.ID]=t}function Ml(e,t,r,n,o,i,a,s,c,l){var u="General",f=n.StyleID,h={};l=l||{};var d=[],p=0;for(void 0===f&&s&&(f=s.StyleID),void 0===f&&a&&(f=a.StyleID);void 0!==i[f]&&(i[f].nf&&(u=i[f].nf),i[f].Interior&&d.push(i[f].Interior),i[f].Parent);)f=i[f].Parent;switch(r.Type){case"Boolean":n.t="b",n.v=Et(e);break;case"String":n.t="s",n.r=Tt(bt(e)),n.v=e.indexOf("<")>-1?bt(t||e).replace(/<.*?>/g,""):n.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),n.v=(He(e)-new Date(Date.UTC(1899,11,30)))/864e5,n.v!=n.v?n.v=bt(e):n.v<60&&(n.v=n.v-1),u&&"General"!=u||(u="yyyy-mm-dd");case"Number":void 0===n.v&&(n.v=+e),n.t||(n.t="n");break;case"Error":n.t="e",n.v=Jn[e],!1!==l.cellText&&(n.w=e);break;default:""==e&&""==t?n.t="z":(n.t="s",n.v=Tt(t||e))}if(jl(n,u,l),!1!==l.cellFormula)if(n.Formula){var g=bt(n.Formula);61==g.charCodeAt(0)&&(g=g.slice(1)),n.f=ys(g,o),delete n.Formula,"RC"==n.ArrayRange?n.F=ys("RC:RC",o):n.ArrayRange&&(n.F=ys(n.ArrayRange,o),c.push([ln(n.F),n.F]))}else for(p=0;p<c.length;++p)o.r>=c[p][0].s.r&&o.r<=c[p][0].e.r&&o.c>=c[p][0].s.c&&o.c<=c[p][0].e.c&&(n.F=c[p][1]);l.cellStyles&&(d.forEach((function(e){!h.patternType&&e.patternType&&(h.patternType=e.patternType)})),n.s=h),void 0!==n.StyleID&&(n.ixfe=n.StyleID)}function Bl(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function Wl(e,r){var n=r||{};ye();var o=f(Vt(e));"binary"!=n.type&&"array"!=n.type&&"base64"!=n.type||(o=void 0!==t?t.utils.decode(65001,l(o)):Rt(o));var i,a=o.slice(0,1024).toLowerCase(),s=!1;if((1023&(a=a.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&a.indexOf(","),1023&a.indexOf(";"))){var c=Ve(n);return c.type="string",Vi.to_workbook(o,c)}if(-1==a.indexOf("<?xml")&&["html","table","head","meta","script","style","div"].forEach((function(e){a.indexOf("<"+e)>=0&&(s=!0)})),s)return function(e,t){var r=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!r||0==r.length)throw new Error("Invalid HTML: could not find <table>");if(1==r.length)return hn(vu(r[0],t),t);var n={SheetNames:[],Sheets:{}};return r.forEach((function(e,r){Uf(n,vu(e,t),"Sheet"+(r+1))})),n}(o,n);Cl={"General Number":"General","General Date":D[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":D[15],"Short Date":D[14],"Long Time":D[19],"Medium Time":D[18],"Short Time":D[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:D[2],Standard:D[4],Percent:D[10],Scientific:D[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var u,h=[];var d,p={},g=[],m=n.dense?[]:{},v="",b={},y={},w=Ll('<Data ss:Type="String">'),S=0,x=0,A=0,k={s:{r:2e6,c:2e6},e:{r:0,c:0}},T={},E={},_="",O=0,N=[],C={},R={},P=0,L=[],I=[],F={},j=[],M=!1,B=[],W=[],U={},H=0,z=0,V={Sheets:[],WBProps:{date1904:!1}},q={};qt.lastIndex=0,o=o.replace(/<!--([\s\S]*?)-->/gm,"");for(var $="";i=qt.exec(o);)switch(i[3]=($=i[3]).toLowerCase()){case"data":if("data"==$){if("/"===i[1]){if((u=h.pop())[0]!==i[3])throw new Error("Bad state: "+u.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&h.push([i[3],!0]);break}if(h[h.length-1][1])break;"/"===i[1]?Ml(o.slice(S,i.index),_,w,"comment"==h[h.length-1][0]?F:b,{c:x,r:A},T,j[x],y,B,n):(_="",w=Ll(i[0]),S=i.index+i[0].length);break;case"cell":if("/"===i[1])if(I.length>0&&(b.c=I),(!n.sheetRows||n.sheetRows>A)&&void 0!==b.v&&(n.dense?(m[A]||(m[A]=[]),m[A][x]=b):m[nn(x)+tn(A)]=b),b.HRef&&(b.l={Target:bt(b.HRef)},b.HRefScreenTip&&(b.l.Tooltip=b.HRefScreenTip),delete b.HRef,delete b.HRefScreenTip),(b.MergeAcross||b.MergeDown)&&(H=x+(0|parseInt(b.MergeAcross,10)),z=A+(0|parseInt(b.MergeDown,10)),N.push({s:{c:x,r:A},e:{c:H,r:z}})),n.sheetStubs)if(b.MergeAcross||b.MergeDown){for(var G=x;G<=H;++G)for(var X=A;X<=z;++X)(G>x||X>A)&&(n.dense?(m[X]||(m[X]=[]),m[X][G]={t:"z"}):m[nn(G)+tn(X)]={t:"z"});x=H+1}else++x;else b.MergeAcross?x=H+1:++x;else(b=Il(i[0])).Index&&(x=+b.Index-1),x<k.s.c&&(k.s.c=x),x>k.e.c&&(k.e.c=x),"/>"===i[0].slice(-2)&&++x,I=[];break;case"row":"/"===i[1]||"/>"===i[0].slice(-2)?(A<k.s.r&&(k.s.r=A),A>k.e.r&&(k.e.r=A),"/>"===i[0].slice(-2)&&(y=Ll(i[0])).Index&&(A=+y.Index-1),x=0,++A):((y=Ll(i[0])).Index&&(A=+y.Index-1),U={},("0"==y.AutoFitHeight||y.Height)&&(U.hpx=parseInt(y.Height,10),U.hpt=Na(U.hpx),W[A]=U),"1"==y.Hidden&&(U.hidden=!0,W[A]=U));break;case"worksheet":if("/"===i[1]){if((u=h.pop())[0]!==i[3])throw new Error("Bad state: "+u.join("|"));g.push(v),k.s.r<=k.e.r&&k.s.c<=k.e.c&&(m["!ref"]=cn(k),n.sheetRows&&n.sheetRows<=k.e.r&&(m["!fullref"]=m["!ref"],k.e.r=n.sheetRows-1,m["!ref"]=cn(k))),N.length&&(m["!merges"]=N),j.length>0&&(m["!cols"]=j),W.length>0&&(m["!rows"]=W),p[v]=m}else k={s:{r:2e6,c:2e6},e:{r:0,c:0}},A=x=0,h.push([i[3],!1]),u=Ll(i[0]),v=bt(u.Name),m=n.dense?[]:{},N=[],B=[],W=[],q={name:v,Hidden:0},V.Sheets.push(q);break;case"table":if("/"===i[1]){if((u=h.pop())[0]!==i[3])throw new Error("Bad state: "+u.join("|"))}else{if("/>"==i[0].slice(-2))break;h.push([i[3],!1]),j=[],M=!1}break;case"style":"/"===i[1]?Dl(T,E,n):E=Ll(i[0]);break;case"numberformat":E.nf=bt(Ll(i[0]).Format||"General"),Cl[E.nf]&&(E.nf=Cl[E.nf]);for(var Y=0;392!=Y&&D[Y]!=E.nf;++Y);if(392==Y)for(Y=57;392!=Y;++Y)if(null==D[Y]){ve(E.nf,Y);break}break;case"column":if("table"!==h[h.length-1][0])break;if((d=Ll(i[0])).Hidden&&(d.hidden=!0,delete d.Hidden),d.Width&&(d.wpx=parseInt(d.Width,10)),!M&&d.wpx>10){M=!0,xa=6;for(var K=0;K<j.length;++K)j[K]&&Oa(j[K])}M&&Oa(d),j[d.Index-1||j.length]=d;for(var J=0;J<+d.Span;++J)j[j.length]=Ve(d);break;case"namedrange":if("/"===i[1])break;V.Names||(V.Names=[]);var Z=pt(i[0]),Q={Name:Z.Name,Ref:ys(Z.RefersTo.slice(1),{r:0,c:0})};V.Sheets.length>0&&(Q.Sheet=V.Sheets.length-1),V.Names.push(Q);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":case"protection":case"paragraphs":case"name":case"pixelsperinch":case"null":break;case"font":if("/>"===i[0].slice(-2))break;"/"===i[1]?_+=o.slice(O,i.index):O=i.index+i[0].length;break;case"interior":if(!n.cellStyles)break;E.Interior=Ll(i[0]);break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===i[0].slice(-2))break;"/"===i[1]?Ao(C,$,o.slice(P,i.index)):P=i.index+i[0].length;break;case"styles":case"workbook":if("/"===i[1]){if((u=h.pop())[0]!==i[3])throw new Error("Bad state: "+u.join("|"))}else h.push([i[3],!1]);break;case"comment":if("/"===i[1]){if((u=h.pop())[0]!==i[3])throw new Error("Bad state: "+u.join("|"));Bl(F),I.push(F)}else h.push([i[3],!1]),F={a:(u=Ll(i[0])).Author};break;case"autofilter":if("/"===i[1]){if((u=h.pop())[0]!==i[3])throw new Error("Bad state: "+u.join("|"))}else if("/"!==i[0].charAt(i[0].length-2)){var ee=Ll(i[0]);m["!autofilter"]={ref:ys(ee.Range).replace(/\$/g,"")},h.push([i[3],!0])}break;case"datavalidation":if("/"===i[1]){if((u=h.pop())[0]!==i[3])throw new Error("Bad state: "+u.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&h.push([i[3],!0]);break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===i[1]){if((u=h.pop())[0]!==i[3])throw new Error("Bad state: "+u.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&h.push([i[3],!0]);break;default:if(0==h.length&&"document"==i[3])return Cu(o,n);if(0==h.length&&"uof"==i[3])return Cu(o,n);var te=!0;switch(h[h.length-1][0]){case"officedocumentsettings":switch(i[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:te=!1}break;case"componentoptions":switch(i[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:te=!1}break;case"excelworkbook":switch(i[3]){case"date1904":V.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:te=!1}break;case"workbookoptions":switch(i[3]){case"owcversion":case"height":case"width":break;default:te=!1}break;case"worksheetoptions":switch(i[3]){case"visible":if("/>"===i[0].slice(-2));else if("/"===i[1])switch(o.slice(P,i.index)){case"SheetHidden":q.Hidden=1;break;case"SheetVeryHidden":q.Hidden=2}else P=i.index+i[0].length;break;case"header":m["!margins"]||bc(m["!margins"]={},"xlml"),isNaN(+pt(i[0]).Margin)||(m["!margins"].header=+pt(i[0]).Margin);break;case"footer":m["!margins"]||bc(m["!margins"]={},"xlml"),isNaN(+pt(i[0]).Margin)||(m["!margins"].footer=+pt(i[0]).Margin);break;case"pagemargins":var re=pt(i[0]);m["!margins"]||bc(m["!margins"]={},"xlml"),isNaN(+re.Top)||(m["!margins"].top=+re.Top),isNaN(+re.Left)||(m["!margins"].left=+re.Left),isNaN(+re.Right)||(m["!margins"].right=+re.Right),isNaN(+re.Bottom)||(m["!margins"].bottom=+re.Bottom);break;case"displayrighttoleft":V.Views||(V.Views=[]),V.Views[0]||(V.Views[0]={}),V.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;case"nosummaryrowsbelowdetail":m["!outline"]||(m["!outline"]={}),m["!outline"].above=!0;break;case"nosummarycolumnsrightdetail":m["!outline"]||(m["!outline"]={}),m["!outline"].left=!0;break;default:te=!1}break;case"pivottable":case"pivotcache":switch(i[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:te=!1}break;case"pagebreaks":switch(i[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:te=!1}break;case"autofilter":switch(i[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:te=!1}break;case"querytable":switch(i[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:te=!1}break;case"datavalidation":switch(i[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:te=!1}break;case"sorting":case"conditionalformatting":switch(i[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:te=!1}break;case"mapinfo":case"schema":case"data":switch(i[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:te=!1}break;case"smarttags":break;default:te=!1}if(te)break;if(i[3].match(/!\[CDATA/))break;if(!h[h.length-1][1])throw"Unrecognized tag: "+i[3]+"|"+h.join("|");if("customdocumentproperties"===h[h.length-1][0]){if("/>"===i[0].slice(-2))break;"/"===i[1]?Fl(R,$,L,o.slice(P,i.index)):(L=i,P=i.index+i[0].length);break}if(n.WTF)throw"Unrecognized tag: "+i[3]+"|"+h.join("|")}var ne={};return n.bookSheets||n.bookProps||(ne.Sheets=p),ne.SheetNames=g,ne.Workbook=V,ne.SSF=Ve(D),ne.Props=C,ne.Custprops=R,ne}function Ul(e,t){switch(lf(t=t||{}),t.type||"base64"){case"base64":return Wl(m(e),t);case"binary":case"buffer":case"file":return Wl(e,t);case"array":return Wl(A(e),t)}}function Hl(e,t){var r=[];return e.Props&&r.push(function(e,t){var r=[];return Oe(xo).map((function(e){for(var t=0;t<lo.length;++t)if(lo[t][1]==e)return lo[t];for(t=0;t<go.length;++t)if(go[t][1]==e)return go[t];throw e})).forEach((function(n){if(null!=e[n[1]]){var o=t&&t.Props&&null!=t.Props[n[1]]?t.Props[n[1]]:e[n[1]];"date"===n[2]&&(o=new Date(o).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof o?o=String(o):!0===o||!1===o?o=o?"1":"0":o instanceof Date&&(o=new Date(o).toISOString().replace(/\.\d*Z/,"")),r.push(Wt(xo[n[1]]||n[1],o))}})),Ht("DocumentProperties",r.join(""),{xmlns:ar})}(e.Props,t)),e.Custprops&&r.push(function(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",o=[];return e&&Oe(e).forEach((function(t){if(Object.prototype.hasOwnProperty.call(e,t)){for(var n=0;n<lo.length;++n)if(t==lo[n][1])return;for(n=0;n<go.length;++n)if(t==go[n][1])return;for(n=0;n<r.length;++n)if(t==r[n])return;var i=e[t],a="string";"number"==typeof i?(a="float",i=String(i)):!0===i||!1===i?(a="boolean",i=i?"1":"0"):i=String(i),o.push(Ht(xt(t),i,{"dt:dt":a}))}})),t&&Oe(t).forEach((function(r){if(Object.prototype.hasOwnProperty.call(t,r)&&(!e||!Object.prototype.hasOwnProperty.call(e,r))){var n=t[r],i="string";"number"==typeof n?(i="float",n=String(n)):!0===n||!1===n?(i="boolean",n=n?"1":"0"):n instanceof Date?(i="dateTime.tz",n=n.toISOString()):n=String(n),o.push(Ht(xt(r),n,{"dt:dt":i}))}})),"<"+n+' xmlns="'+ar+'">'+o.join("")+"</"+n+">"}(e.Props,e.Custprops)),r.join("")}function zl(e){return Ht("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Ss(e.Ref,{r:0,c:0})})}function Vl(e,t,r,n,o,i,a){if(!e||null==e.v&&null==e.f)return"";var s={};if(e.f&&(s["ss:Formula"]="="+St(Ss(e.f,a))),e.F&&e.F.slice(0,t.length)==t){var c=on(e.F.slice(t.length+1));s["ss:ArrayRange"]="RC:R"+(c.r==a.r?"":"["+(c.r-a.r)+"]")+"C"+(c.c==a.c?"":"["+(c.c-a.c)+"]")}if(e.l&&e.l.Target&&(s["ss:HRef"]=St(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=St(e.l.Tooltip))),r["!merges"])for(var l=r["!merges"],u=0;u!=l.length;++u)l[u].s.c==a.c&&l[u].s.r==a.r&&(l[u].e.c>l[u].s.c&&(s["ss:MergeAcross"]=l[u].e.c-l[u].s.c),l[u].e.r>l[u].s.r&&(s["ss:MergeDown"]=l[u].e.r-l[u].s.r));var f="",h="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":f="Number",h=String(e.v);break;case"b":f="Boolean",h=e.v?"1":"0";break;case"e":f="Error",h=Kn[e.v];break;case"d":f="DateTime",h=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||D[14]);break;case"s":f="String",h=function(e){return(e+"").replace(yt,(function(e){return vt[e]})).replace(At,(function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}))}(e.v||"")}var d=yc(n.cellXfs,e,n);s["ss:StyleID"]="s"+(21+d),s["ss:Index"]=a.c+1;var p=null!=e.v?h:"",g="z"==e.t?"":'<Data ss:Type="'+f+'">'+p+"</Data>";return(e.c||[]).length>0&&(g+=function(e){return e.map((function(e){var t=function(e){return e.replace(/(\r\n|[\r\n])/g," ")}(e.t||""),r=Ht("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return Ht("Comment",r,{"ss:Author":e.a})})).join("")}(e.c)),Ht("Cell",g,s)}function ql(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=Ca(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function $l(e,t,r){var n=[],o=r.SheetNames[e],i=r.Sheets[o],a=i?function(e,t,r,n){if(!e)return"";if(!((n||{}).Workbook||{}).Names)return"";for(var o=n.Workbook.Names,i=[],a=0;a<o.length;++a){var s=o[a];s.Sheet==r&&(s.Name.match(/^_xlfn\./)||i.push(zl(s)))}return i.join("")}(i,0,e,r):"";return a.length>0&&n.push("<Names>"+a+"</Names>"),a=i?function(e,t,r,n){if(!e["!ref"])return"";var o=ln(e["!ref"]),i=e["!merges"]||[],a=0,s=[];e["!cols"]&&e["!cols"].forEach((function(e,t){Oa(e);var r=!!e.width,n=vc(t,e),o={"ss:Index":t+1};r&&(o["ss:Width"]=Aa(n.width)),e.hidden&&(o["ss:Hidden"]="1"),s.push(Ht("Column",null,o))}));for(var c=Array.isArray(e),l=o.s.r;l<=o.e.r;++l){for(var u=[ql(l,(e["!rows"]||[])[l])],f=o.s.c;f<=o.e.c;++f){var h=!1;for(a=0;a!=i.length;++a)if(!(i[a].s.c>f||i[a].s.r>l||i[a].e.c<f||i[a].e.r<l)){i[a].s.c==f&&i[a].s.r==l||(h=!0);break}if(!h){var d={r:l,c:f},p=an(d),g=c?(e[l]||[])[f]:e[p];u.push(Vl(g,p,e,t,0,0,d))}}u.push("</Row>"),u.length>2&&s.push(u.join(""))}return s.join("")}(i,t):"",a.length>0&&n.push("<Table>"+a+"</Table>"),n.push(function(e,t,r,n){if(!e)return"";var o=[];if(e["!margins"]&&(o.push("<PageSetup>"),e["!margins"].header&&o.push(Ht("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&o.push(Ht("Footer",null,{"x:Margin":e["!margins"].footer})),o.push(Ht("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),o.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)o.push(Ht("Visible",1==n.Workbook.Sheets[r].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<r&&(!n.Workbook.Sheets[i]||n.Workbook.Sheets[i].Hidden);++i);i==r&&o.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&o.push("<DisplayRightToLeft/>"),e["!protect"]&&(o.push(Wt("ProtectContents","True")),e["!protect"].objects&&o.push(Wt("ProtectObjects","True")),e["!protect"].scenarios&&o.push(Wt("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||o.push(Wt("EnableSelection","UnlockedCells")):o.push(Wt("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(t){e["!protect"][t[0]]&&o.push("<"+t[1]+"/>")}))),0==o.length?"":Ht("WorksheetOptions",o.join(""),{xmlns:sr})}(i,0,e,r)),n.join("")}function Gl(e,t){t||(t={}),e.SSF||(e.SSF=Ve(D)),e.SSF&&(ye(),be(e.SSF),t.revssf=Re(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],yc(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(Hl(e,t)),r.push(""),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(Ht("Worksheet",$l(n,t,e),{"ss:Name":St(e.SheetNames[n])}));return r[2]=function(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach((function(e,t){var n=[];n.push(Ht("NumberFormat",null,{"ss:Format":St(D[e.numFmtId])}));var o={"ss:ID":"s"+(21+t)};r.push(Ht("Style",n.join(""),o))})),Ht("Styles",r.join(""))}(0,t),r[3]=function(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var o=t[n];null==o.Sheet&&(o.Name.match(/^_xlfn\./)||r.push(zl(o)))}return Ht("Names",r.join(""))}(e),ct+Ht("Workbook",r.join(""),{xmlns:cr,"xmlns:o":ar,"xmlns:x":sr,"xmlns:ss":cr,"xmlns:dt":lr,"xmlns:html":hr})}function Xl(e){var t={},r=e.content;if(r.l=28,t.AnsiUserType=r._R(0,"lpstr-ansi"),t.AnsiClipboardFormat=function(e){return Un(e,1)}(r),r.length-r.l<=4)return t;var n=r._R(4);return 0==n||n>40?t:(r.l-=4,t.Reserved1=r._R(0,"lpstr-ansi"),r.length-r.l<=4||1907505652!==(n=r._R(4))?t:(t.UnicodeClipboardFormat=function(e){return Un(e,2)}(r),0==(n=r._R(4))||n>40?t:(r.l-=4,void(t.Reserved2=r._R(0,"lpwstr")))))}var Yl=[60,1084,2066,2165,2175];function Kl(e,t,r,n,o){var i=n,a=[],s=r.slice(r.l,r.l+i);if(o&&o.enc&&o.enc.insitu&&s.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:o.enc.insitu(s)}a.push(s),r.l+=i;for(var c=Fr(r,r.l),l=au[c],u=0;null!=l&&Yl.indexOf(c)>-1;)i=Fr(r,r.l+2),u=r.l+4,2066==c?u+=4:2165!=c&&2175!=c||(u+=12),s=r.slice(u,r.l+4+i),a.push(s),r.l+=4+i,l=au[c=Fr(r,r.l)];var f=T(a);Vr(f,0);var h=0;f.lens=[];for(var d=0;d<a.length;++d)f.lens.push(h),h+=a[d].length;if(f.length<n)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+f.length+" < "+n;return t.f(f,f.length,o)}function Jl(e,t,r){if("z"!==e.t&&e.XF){var n=0;try{n=e.z||e.XF.numFmtId||0,t.cellNF&&(e.z=D[n])}catch(e){if(t.WTF)throw e}if(!t||!1!==t.cellText)try{"e"===e.t?e.w=e.w||Kn[e.v]:0===n||"General"==n?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=X(e.v):e.w=Y(e.v):e.w=me(n,e.v,{date1904:!!r,dateNF:t&&t.dateNF})}catch(e){if(t.WTF)throw e}if(t.cellDates&&n&&"n"==e.t&&he(D[n]||String(n))){var o=U(e.v);o&&(e.t="d",e.v=new Date(o.y,o.m-1,o.d,o.H,o.M,o.S,o.u))}}}function Zl(e,t,r){return{v:e,ixfe:t,t:r}}function Ql(e,t){var r={opts:{}},n={};var o,i,a,c,l,u,f,h,d=t.dense?[]:{},p={},g={},m=null,v=[],b="",y={},w="",S={},x=[],A=[],k=[],T={Sheets:[],WBProps:{date1904:!1},Views:[{}]},E={},_=function(e){return e<8?Yn[e]:e<64&&k[e-8]||Yn[e]},O=function(e,t,r){if(!(B>1||r.sheetRows&&e.r>=r.sheetRows)){if(r.cellStyles&&t.XF&&t.XF.data&&function(e,t,r){var n,o=t.XF.data;o&&o.patternType&&r&&r.cellStyles&&(t.s={},t.s.patternType=o.patternType,(n=wa(_(o.icvFore)))&&(t.s.fgColor={rgb:n}),(n=wa(_(o.icvBack)))&&(t.s.bgColor={rgb:n}))}(0,t,r),delete t.ixfe,delete t.XF,o=e,w=an(e),g&&g.s&&g.e||(g={s:{r:0,c:0},e:{r:0,c:0}}),e.r<g.s.r&&(g.s.r=e.r),e.c<g.s.c&&(g.s.c=e.c),e.r+1>g.e.r&&(g.e.r=e.r+1),e.c+1>g.e.c&&(g.e.c=e.c+1),r.cellFormula&&t.f)for(var n=0;n<x.length;++n)if(!(x[n][0].s.c>e.c||x[n][0].s.r>e.r||x[n][0].e.c<e.c||x[n][0].e.r<e.r)){t.F=cn(x[n][0]),x[n][0].s.c==e.c&&x[n][0].s.r==e.r||delete t.f,t.f&&(t.f=""+Ks(x[n][1],0,e,F,N));break}r.dense?(d[e.r]||(d[e.r]=[]),d[e.r][e.c]=t):d[w]=t}},N={enc:!1,sbcch:0,snames:[],sharedf:S,arrayf:x,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(N.password=t.password);var C=[],R=[],P=[],L=[],I=!1,F=[];F.SheetNames=N.snames,F.sharedf=N.sharedf,F.arrayf=N.arrayf,F.names=[],F.XTI=[];var j,M=0,B=0,W=0,U=[],H=[];N.codepage=1200,s(1200);for(var z=!1;e.l<e.length-1;){var V=e.l,q=e._R(2);if(0===q&&10===M)break;var $=e.l===e.length?0:e._R(2),G=au[q];if(G&&G.f){if(t.bookSheets&&133===M&&133!==q)break;if(M=q,2===G.r||12==G.r){var X=e._R(2);if($-=2,!N.enc&&X!==q&&((255&X)<<8|X>>8)!==q)throw new Error("rt mismatch: "+X+"!="+q);12==G.r&&(e.l+=10,$-=10)}var Y={};if(Y=10===q?G.f(e,$,N):Kl(q,G,e,$,N),0==B&&-1===[9,521,1033,2057].indexOf(M))continue;switch(q){case 34:r.opts.Date1904=T.WBProps.date1904=Y;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(N.enc||(e.l=0),N.enc=Y,!t.password)throw new Error("File is password-protected");if(null==Y.valid)throw new Error("Encryption scheme unsupported");if(!Y.valid)throw new Error("Password is incorrect");break;case 92:N.lastuser=Y;break;case 66:var K=Number(Y);switch(K){case 21010:K=1200;break;case 32768:K=1e4;break;case 32769:K=1252}s(N.codepage=K),z=!0;break;case 317:N.rrtabid=Y;break;case 25:N.winlocked=Y;break;case 439:r.opts.RefreshAll=Y;break;case 12:r.opts.CalcCount=Y;break;case 16:r.opts.CalcDelta=Y;break;case 17:r.opts.CalcIter=Y;break;case 13:r.opts.CalcMode=Y;break;case 14:r.opts.CalcPrecision=Y;break;case 95:r.opts.CalcSaveRecalc=Y;break;case 15:N.CalcRefMode=Y;break;case 2211:r.opts.FullCalc=Y;break;case 129:Y.fDialog&&(d["!type"]="dialog"),Y.fBelow||((d["!outline"]||(d["!outline"]={})).above=!0),Y.fRight||((d["!outline"]||(d["!outline"]={})).left=!0);break;case 224:A.push(Y);break;case 430:F.push([Y]),F[F.length-1].XTI=[];break;case 35:case 547:F[F.length-1].push(Y);break;case 24:case 536:j={Name:Y.Name,Ref:Ks(Y.rgce,0,null,F,N)},Y.itab>0&&(j.Sheet=Y.itab-1),F.names.push(j),F[0]||(F[0]=[],F[0].XTI=[]),F[F.length-1].push(Y),"_xlnm._FilterDatabase"==Y.Name&&Y.itab>0&&Y.rgce&&Y.rgce[0]&&Y.rgce[0][0]&&"PtgArea3d"==Y.rgce[0][0][0]&&(H[Y.itab-1]={ref:cn(Y.rgce[0][0][1][2])});break;case 22:N.ExternCount=Y;break;case 23:0==F.length&&(F[0]=[],F[0].XTI=[]),F[F.length-1].XTI=F[F.length-1].XTI.concat(Y),F.XTI=F.XTI.concat(Y);break;case 2196:if(N.biff<8)break;null!=j&&(j.Comment=Y[1]);break;case 18:d["!protect"]=Y;break;case 19:0!==Y&&N.WTF&&console.error("Password verifier: "+Y);break;case 133:p[Y.pos]=Y,N.snames.push(Y.name);break;case 10:if(--B)break;if(g.e){if(g.e.r>0&&g.e.c>0){if(g.e.r--,g.e.c--,d["!ref"]=cn(g),t.sheetRows&&t.sheetRows<=g.e.r){var J=g.e.r;g.e.r=t.sheetRows-1,d["!fullref"]=d["!ref"],d["!ref"]=cn(g),g.e.r=J}g.e.r++,g.e.c++}C.length>0&&(d["!merges"]=C),R.length>0&&(d["!objects"]=R),P.length>0&&(d["!cols"]=P),L.length>0&&(d["!rows"]=L),T.Sheets.push(E)}""===b?y=d:n[b]=d,d=t.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===N.biff&&(N.biff={9:2,521:3,1033:4}[q]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[Y.BIFFVer]||8),N.biffguess=0==Y.BIFFVer,0==Y.BIFFVer&&4096==Y.dt&&(N.biff=5,z=!0,s(N.codepage=28591)),8==N.biff&&0==Y.BIFFVer&&16==Y.dt&&(N.biff=2),B++)break;if(d=t.dense?[]:{},N.biff<8&&!z&&(z=!0,s(N.codepage=t.codepage||1252)),N.biff<5||0==Y.BIFFVer&&4096==Y.dt){""===b&&(b="Sheet1"),g={s:{r:0,c:0},e:{r:0,c:0}};var Z={pos:e.l-$,name:b};p[Z.pos]=Z,N.snames.push(b)}else b=(p[V]||{name:""}).name;32==Y.dt&&(d["!type"]="chart"),64==Y.dt&&(d["!type"]="macro"),C=[],R=[],N.arrayf=x=[],P=[],L=[],I=!1,E={Hidden:(p[V]||{hs:0}).hs,name:b};break;case 515:case 3:case 2:"chart"==d["!type"]&&(t.dense?(d[Y.r]||[])[Y.c]:d[an({c:Y.c,r:Y.r})])&&++Y.c,u={ixfe:Y.ixfe,XF:A[Y.ixfe]||{},v:Y.val,t:"n"},W>0&&(u.z=U[u.ixfe>>8&63]),Jl(u,t,r.opts.Date1904),O({c:Y.c,r:Y.r},u,t);break;case 5:case 517:u={ixfe:Y.ixfe,XF:A[Y.ixfe],v:Y.val,t:Y.t},W>0&&(u.z=U[u.ixfe>>8&63]),Jl(u,t,r.opts.Date1904),O({c:Y.c,r:Y.r},u,t);break;case 638:u={ixfe:Y.ixfe,XF:A[Y.ixfe],v:Y.rknum,t:"n"},W>0&&(u.z=U[u.ixfe>>8&63]),Jl(u,t,r.opts.Date1904),O({c:Y.c,r:Y.r},u,t);break;case 189:for(var Q=Y.c;Q<=Y.C;++Q){var ee=Y.rkrec[Q-Y.c][0];u={ixfe:ee,XF:A[ee],v:Y.rkrec[Q-Y.c][1],t:"n"},W>0&&(u.z=U[u.ixfe>>8&63]),Jl(u,t,r.opts.Date1904),O({c:Q,r:Y.r},u,t)}break;case 6:case 518:case 1030:if("String"==Y.val){m=Y;break}if((u=Zl(Y.val,Y.cell.ixfe,Y.tt)).XF=A[u.ixfe],t.cellFormula){var te=Y.formula;if(te&&te[0]&&te[0][0]&&"PtgExp"==te[0][0][0]){var re=te[0][0][1][0],ne=te[0][0][1][1],oe=an({r:re,c:ne});S[oe]?u.f=""+Ks(Y.formula,0,Y.cell,F,N):u.F=((t.dense?(d[re]||[])[ne]:d[oe])||{}).F}else u.f=""+Ks(Y.formula,0,Y.cell,F,N)}W>0&&(u.z=U[u.ixfe>>8&63]),Jl(u,t,r.opts.Date1904),O(Y.cell,u,t),m=Y;break;case 7:case 519:if(!m)throw new Error("String record expects Formula");m.val=Y,(u=Zl(Y,m.cell.ixfe,"s")).XF=A[u.ixfe],t.cellFormula&&(u.f=""+Ks(m.formula,0,m.cell,F,N)),W>0&&(u.z=U[u.ixfe>>8&63]),Jl(u,t,r.opts.Date1904),O(m.cell,u,t),m=null;break;case 33:case 545:x.push(Y);var ie=an(Y[0].s);if(i=t.dense?(d[Y[0].s.r]||[])[Y[0].s.c]:d[ie],t.cellFormula&&i){if(!m)break;if(!ie||!i)break;i.f=""+Ks(Y[1],0,Y[0],F,N),i.F=cn(Y[0])}break;case 1212:if(!t.cellFormula)break;if(w){if(!m)break;S[an(m.cell)]=Y[0],((i=t.dense?(d[m.cell.r]||[])[m.cell.c]:d[an(m.cell)])||{}).f=""+Ks(Y[0],0,o,F,N)}break;case 253:u=Zl(v[Y.isst].t,Y.ixfe,"s"),v[Y.isst].h&&(u.h=v[Y.isst].h),u.XF=A[u.ixfe],W>0&&(u.z=U[u.ixfe>>8&63]),Jl(u,t,r.opts.Date1904),O({c:Y.c,r:Y.r},u,t);break;case 513:t.sheetStubs&&(u={ixfe:Y.ixfe,XF:A[Y.ixfe],t:"z"},W>0&&(u.z=U[u.ixfe>>8&63]),Jl(u,t,r.opts.Date1904),O({c:Y.c,r:Y.r},u,t));break;case 190:if(t.sheetStubs)for(var ae=Y.c;ae<=Y.C;++ae){var se=Y.ixfe[ae-Y.c];u={ixfe:se,XF:A[se],t:"z"},W>0&&(u.z=U[u.ixfe>>8&63]),Jl(u,t,r.opts.Date1904),O({c:ae,r:Y.r},u,t)}break;case 214:case 516:case 4:(u=Zl(Y.val,Y.ixfe,"s")).XF=A[u.ixfe],W>0&&(u.z=U[u.ixfe>>8&63]),Jl(u,t,r.opts.Date1904),O({c:Y.c,r:Y.r},u,t);break;case 0:case 512:1===B&&(g=Y);break;case 252:v=Y;break;case 1054:if(4==N.biff){U[W++]=Y[1];for(var ce=0;ce<W+163&&D[ce]!=Y[1];++ce);ce>=163&&ve(Y[1],W+163)}else ve(Y[1],Y[0]);break;case 30:U[W++]=Y;for(var le=0;le<W+163&&D[le]!=Y;++le);le>=163&&ve(Y,W+163);break;case 229:C=C.concat(Y);break;case 93:R[Y.cmo[0]]=N.lastobj=Y;break;case 438:N.lastobj.TxO=Y;break;case 127:N.lastobj.ImData=Y;break;case 440:for(l=Y[0].s.r;l<=Y[0].e.r;++l)for(c=Y[0].s.c;c<=Y[0].e.c;++c)(i=t.dense?(d[l]||[])[c]:d[an({c:c,r:l})])&&(i.l=Y[1]);break;case 2048:for(l=Y[0].s.r;l<=Y[0].e.r;++l)for(c=Y[0].s.c;c<=Y[0].e.c;++c)(i=t.dense?(d[l]||[])[c]:d[an({c:c,r:l})])&&i.l&&(i.l.Tooltip=Y[1]);break;case 28:if(N.biff<=5&&N.biff>=2)break;i=t.dense?(d[Y[0].r]||[])[Y[0].c]:d[an(Y[0])];var ue=R[Y[2]];i||(t.dense?(d[Y[0].r]||(d[Y[0].r]=[]),i=d[Y[0].r][Y[0].c]={t:"z"}):i=d[an(Y[0])]={t:"z"},g.e.r=Math.max(g.e.r,Y[0].r),g.s.r=Math.min(g.s.r,Y[0].r),g.e.c=Math.max(g.e.c,Y[0].c),g.s.c=Math.min(g.s.c,Y[0].c)),i.c||(i.c=[]),a={a:Y[1],t:ue.TxO.t},i.c.push(a);break;case 2173:cs(A[Y.ixfe],Y.ext);break;case 125:if(!N.cellStyles)break;for(;Y.e>=Y.s;)P[Y.e--]={width:Y.w/256,level:Y.level||0,hidden:!!(1&Y.flags)},I||(I=!0,_a(Y.w/256)),Oa(P[Y.e+1]);break;case 520:var fe={};null!=Y.level&&(L[Y.r]=fe,fe.level=Y.level),Y.hidden&&(L[Y.r]=fe,fe.hidden=!0),Y.hpt&&(L[Y.r]=fe,fe.hpt=Y.hpt,fe.hpx=Ca(Y.hpt));break;case 38:case 39:case 40:case 41:d["!margins"]||bc(d["!margins"]={}),d["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[q]]=Y;break;case 161:d["!margins"]||bc(d["!margins"]={}),d["!margins"].header=Y.header,d["!margins"].footer=Y.footer;break;case 574:Y.RTL&&(T.Views[0].RTL=!0);break;case 146:k=Y;break;case 2198:h=Y;break;case 140:f=Y;break;case 442:b?E.CodeName=Y||E.name:T.WBProps.CodeName=Y||"ThisWorkbook"}}else G||console.error("Missing Info for XLS Record 0x"+q.toString(16)),e.l+=$}return r.SheetNames=Oe(p).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return p[e].name})),t.bookSheets||(r.Sheets=n),!r.SheetNames.length&&y["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=y)):r.Preamble=y,r.Sheets&&H.forEach((function(e,t){r.Sheets[r.SheetNames[t]]["!autofilter"]=e})),r.Strings=v,r.SSF=Ve(D),N.enc&&(r.Encryption=N.enc),h&&(r.Themes=h),r.Metadata={},void 0!==f&&(r.Metadata.Country=f),F.names.length>0&&(T.Names=F.names),r.Workbook=T,r}var eu="e0859ff2f94f6810ab9108002b27b3d9",tu="02d5cdd59c2e1b10939708002b2cf9ae",ru="05d5cdd59c2e1b10939708002b2cf9ae";function nu(e,t){var r,n,o,i;if(t||(t={}),lf(t),c(),t.codepage&&a(t.codepage),e.FullPaths){if(Te.find(e,"/encryption"))throw new Error("File is password-protected");r=Te.find(e,"!CompObj"),n=Te.find(e,"/Workbook")||Te.find(e,"/Book")}else{switch(t.type){case"base64":e=S(m(e));break;case"binary":e=S(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e))}Vr(e,0),n={content:e}}if(r&&Xl(r),t.bookProps&&!t.bookSheets)o={};else{var s=v?"buffer":"array";if(n&&n.content)o=Ql(n.content,t);else if((i=Te.find(e,"PerfectOffice_MAIN"))&&i.content)o=qi.to_workbook(i.content,(t.type=s,t));else{if(!(i=Te.find(e,"NativeContent_MAIN"))||!i.content)throw(i=Te.find(e,"MN0"))&&i.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");o=qi.to_workbook(i.content,(t.type=s,t))}t.bookVBA&&e.FullPaths&&Te.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(o.vbaraw=function(e){var t=Te.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(r,n){if("/"!==r.slice(-1)&&r.match(/_VBA_PROJECT_CUR/)){var o=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Te.utils.cfb_add(t,o,e.FileIndex[n].content)}})),Te.write(t)}(e))}var l={};return e.FullPaths&&function(e,t,r){var n=Te.find(e,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var o=Mo(n,Vn,tu);for(var i in o)t[i]=o[i]}catch(e){if(r.WTF)throw e}var a=Te.find(e,"/!SummaryInformation");if(a&&a.size>0)try{var s=Mo(a,qn,eu);for(var c in s)null==t[c]&&(t[c]=s[c])}catch(e){if(r.WTF)throw e}t.HeadingPairs&&t.TitlesOfParts&&(vo(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}(e,l,t),o.Props=o.Custprops=l,t.bookFiles&&(o.cfb=e),o}function ou(e,t){var r=t||{},n=Te.utils.cfb_new({root:"R"}),o="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":o="/Workbook",r.biff=8;break;case"biff5":o="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return Te.utils.cfb_add(n,o,mu(e,r)),8==r.biff&&(e.Props||e.Custprops)&&function(e,t){var r,n=[],o=[],i=[],a=0,s=Ne(Vn,"n"),c=Ne(qn,"n");if(e.Props)for(r=Oe(e.Props),a=0;a<r.length;++a)(Object.prototype.hasOwnProperty.call(s,r[a])?n:Object.prototype.hasOwnProperty.call(c,r[a])?o:i).push([r[a],e.Props[r[a]]]);if(e.Custprops)for(r=Oe(e.Custprops),a=0;a<r.length;++a)Object.prototype.hasOwnProperty.call(e.Props||{},r[a])||(Object.prototype.hasOwnProperty.call(s,r[a])?n:Object.prototype.hasOwnProperty.call(c,r[a])?o:i).push([r[a],e.Custprops[r[a]]]);var l=[];for(a=0;a<i.length;++a)Fo.indexOf(i[a][0])>-1||mo.indexOf(i[a][0])>-1||null!=i[a][1]&&l.push(i[a]);o.length&&Te.utils.cfb_add(t,"/SummaryInformation",Bo(o,eu,c,qn)),(n.length||l.length)&&Te.utils.cfb_add(t,"/DocumentSummaryInformation",Bo(n,tu,s,Vn,l.length?l:null,ru))}(e,n),8==r.biff&&e.vbaraw&&function(e,t){t.FullPaths.forEach((function(r,n){if(0!=n){var o=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==o.slice(-1)&&Te.utils.cfb_add(e,o,t.FileIndex[n].content)}}))}(n,Te.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),n}var iu={0:{f:function(e,t){var r={},n=e.l+t;r.r=e._R(4),e.l+=4;var o=e._R(2);e.l+=1;var i=e._R(1);return e.l=n,7&i&&(r.level=7&i),16&i&&(r.hidden=!0),32&i&&(r.hpt=o/20),r}},1:{f:function(e){return[xn(e)]}},2:{f:function(e){return[xn(e),Ln(e),"n"]}},3:{f:function(e){return[xn(e),e._R(1),"e"]}},4:{f:function(e){return[xn(e),e._R(1),"b"]}},5:{f:function(e){return[xn(e),Mn(e),"n"]}},6:{f:function(e){return[xn(e),mn(e),"str"]}},7:{f:function(e){return[xn(e),e._R(4),"s"]}},8:{f:function(e,t,r){var n=e.l+t,o=xn(e);o.r=r["!row"];var i=[o,mn(e),"str"];if(r.cellFormula){e.l+=2;var a=nc(e,n-e.l,r);i[3]=Ks(a,0,o,r.supbooks,r)}else e.l=n;return i}},9:{f:function(e,t,r){var n=e.l+t,o=xn(e);o.r=r["!row"];var i=[o,Mn(e),"n"];if(r.cellFormula){e.l+=2;var a=nc(e,n-e.l,r);i[3]=Ks(a,0,o,r.supbooks,r)}else e.l=n;return i}},10:{f:function(e,t,r){var n=e.l+t,o=xn(e);o.r=r["!row"];var i=[o,e._R(1),"b"];if(r.cellFormula){e.l+=2;var a=nc(e,n-e.l,r);i[3]=Ks(a,0,o,r.supbooks,r)}else e.l=n;return i}},11:{f:function(e,t,r){var n=e.l+t,o=xn(e);o.r=r["!row"];var i=[o,e._R(1),"e"];if(r.cellFormula){e.l+=2;var a=nc(e,n-e.l,r);i[3]=Ks(a,0,o,r.supbooks,r)}else e.l=n;return i}},12:{f:function(e){return[kn(e)]}},13:{f:function(e){return[kn(e),Ln(e),"n"]}},14:{f:function(e){return[kn(e),e._R(1),"e"]}},15:{f:function(e){return[kn(e),e._R(1),"b"]}},16:{f:zc},17:{f:function(e){return[kn(e),mn(e),"str"]}},18:{f:function(e){return[kn(e),e._R(4),"s"]}},19:{f:yn},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var o=e._R(4),i=Cn(e),a=oc(e,0,r),s=On(e);e.l=n;var c={Name:i,Ptg:a};return o<268435455&&(c.Sheet=o),s&&(c.Comment=s),c}},40:{},42:{},43:{f:function(e,t,r){var n={};n.sz=e._R(2)/20;var o=function(e){var t=e._R(1);return e.l++,{fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t}}(e);switch(o.fItalic&&(n.italic=1),o.fCondense&&(n.condense=1),o.fExtend&&(n.extend=1),o.fShadow&&(n.shadow=1),o.fOutline&&(n.outline=1),o.fStrikeout&&(n.strike=1),700===e._R(2)&&(n.bold=1),e._R(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript"}var i=e._R(1);0!=i&&(n.underline=i);var a=e._R(1);a>0&&(n.family=a);var s=e._R(1);switch(s>0&&(n.charset=s),e.l++,n.color=function(e){var t={},r=e._R(1)>>>1,n=e._R(1),o=e._R(2,"i"),i=e._R(1),a=e._R(1),s=e._R(1);switch(e.l++,r){case 0:t.auto=1;break;case 1:t.index=n;var c=Yn[n];c&&(t.rgb=wa(c));break;case 2:t.rgb=wa([i,a,s]);break;case 3:t.theme=n}return 0!=o&&(t.tint=o>0?o/32767:o/32768),t}(e),e._R(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor"}return n.name=mn(e),n}},44:{f:function(e,t){return[e._R(2),mn(e)]}},45:{f:Ua},46:{f:qa},47:{f:function(e,t){var r=e.l+t,n=e._R(2),o=e._R(2);return e.l=r,{ixfe:n,numFmtId:o}}},48:{},49:{f:function(e){return e._R(4,"i")}},50:{},51:{f:function(e){for(var t=[],r=e._R(4);r-- >0;)t.push([e._R(4),e._R(4)]);return t}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Fi},62:{f:function(e){return[xn(e),yn(e),"is"]}},63:{f:function(e){var t={};t.i=e._R(4);var r={};r.r=e._R(4),r.c=e._R(4),t.r=an(r);var n=e._R(1);return 2&n&&(t.l="1"),8&n&&(t.a="1"),t}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:qr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(e){var t=e._R(2);return e.l+=28,{RTL:32&t}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(e,t){var r={},n=e[e.l];return++e.l,r.above=!(64&n),r.left=!(128&n),e.l+=18,r.name=En(e,t-19),r}},148:{f:Uc,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var r={},n=e._R(4);r.defaultThemeVersion=e._R(4);var o=t>8?mn(e):"";return o.length>0&&(r.CodeName=o),r.autoCompressPictures=!!(65536&n),r.backupFile=!!(64&n),r.checkCompatibility=!!(4096&n),r.date1904=!!(1&n),r.filterPrivacy=!!(8&n),r.hidePivotFieldList=!!(1024&n),r.promptedSolutions=!!(16&n),r.publishItems=!!(2048&n),r.refreshAllConnections=!!(262144&n),r.saveExternalLinkValues=!!(128&n),r.showBorderUnselectedTables=!!(4&n),r.showInkAnnotation=!!(32&n),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(32768&n),r.updateLinks=["userSet","never","always"][n>>8&3],r}},154:{},155:{},156:{f:function(e,t){var r={};return r.Hidden=e._R(4),r.iTabID=e._R(4),r.strRelID=Rn(e,t-8),r.name=mn(e),r}},157:{},158:{},159:{T:1,f:function(e){return[e._R(4),e._R(4)]}},160:{T:-1},161:{T:1,f:jn},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Vc},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(e,t){return{flags:e._R(4),version:e._R(4),name:mn(e)}}},336:{T:-1},337:{f:function(e){return e.l+=4,0!=e._R(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Rn},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Ci},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(e,t,r){var n=e.l+t,o=Fn(e),i=e._R(1),a=[o];if(a[2]=i,r.cellFormula){var s=rc(e,n-e.l,r);a[1]=s}else e.l=n;return a}},427:{f:function(e,t,r){var n=e.l+t,o=[jn(e,16)];if(r.cellFormula){var i=ic(e,n-e.l,r);o[1]=i,e.l=n}else e.l=n;return o}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(e){var t={};return $c.forEach((function(r){t[r]=Mn(e)})),t}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(e,t){var r=e.l+t,n=jn(e,16),o=On(e),i=mn(e),a=mn(e),s=mn(e);e.l=r;var c={rfx:n,relId:o,loc:i,display:s};return a&&(c.Tooltip=a),c}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Rn},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:ms},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e._R(4);var r=jn(e,16);return t.rfx=r.s,t.ref=an(r.s),e.l+=16,t}},636:{T:-1},637:{f:wn},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(e,t){return e.l+=10,{name:mn(e)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},au={6:{f:Qs},10:{f:Wo},12:{f:zo},13:{f:zo},14:{f:Uo},15:{f:Uo},16:{f:Mn},17:{f:Uo},18:{f:Uo},19:{f:zo},20:{f:Ei},21:{f:Ei},23:{f:Ci},24:{f:Ni},25:{f:Uo},26:{},27:{},28:{f:function(e,t,r){return function(e,t,r){if(!(r.biff<8)){var n=e._R(2),o=e._R(2),i=e._R(2),a=e._R(2),s=Zo(e,0,r);return r.biff<8&&e._R(1),[{r:n,c:o},s,a,i]}}(e,0,r)}},29:{},34:{f:Uo},35:{f:_i},38:{f:Mn},39:{f:Mn},40:{f:Mn},41:{f:Mn},42:{f:Uo},43:{f:Uo},47:{f:function(e,t,r){var n={Type:r.biff>=8?e._R(2):0};return n.Type?ba(e,t-2,n):function(e,t,r,n){var o={key:zo(e),verificationBytes:zo(e)};r.password&&(o.verifier=ga(r.password)),n.valid=o.verificationBytes===o.verifier,n.valid&&(n.insitu=va(r.password))}(e,r.biff,r,n),n}},49:{f:function(e,t,r){var n={dyHeight:e._R(2),fl:e._R(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10}return n.name=Go(e,0,r),n}},51:{f:zo},60:{},61:{f:function(e){return{Pos:[e._R(2),e._R(2)],Dim:[e._R(2),e._R(2)],Flags:e._R(2),CurTab:e._R(2),FirstTab:e._R(2),Selected:e._R(2),TabRatio:e._R(2)}}},64:{f:Uo},65:{f:function(){}},66:{f:zo},77:{},80:{},81:{},82:{},85:{f:zo},89:{},90:{},91:{},92:{f:function(e,t,r){if(r.enc)return e.l+=t,"";var n=e.l,o=Zo(e,0,r);return e._R(t+n-e.l),o}},93:{f:function(e,t,r){if(r&&r.biff<8)return function(e,t,r){e.l+=4;var n=e._R(2),o=e._R(2),i=e._R(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var a=[];return a.push((Pi[n]||qr)(e,t,r)),{cmo:[o,n,i],ft:a}}(e,t,r);var n=pi(e),o=function(e,t){for(var r=e.l+t,n=[];e.l<r;){var o=e._R(2);e.l-=2;try{n.push(mi[o](e,r-e.l))}catch(t){return e.l=r,n}}return e.l!=r&&(e.l=r),n}(e,t-22,n[1]);return{cmo:n,ft:o}}},94:{},95:{f:Uo},96:{},97:{},99:{f:Uo},125:{f:Fi},128:{f:function(e){e.l+=4;var t=[e._R(2),e._R(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}},129:{f:function(e,t,r){var n=r&&8==r.biff||2==t?e._R(2):(e.l+=t,0);return{fDialog:16&n,fBelow:64&n,fRight:128&n}}},130:{f:zo},131:{f:Uo},132:{f:Uo},133:{f:function(e,t,r){var n=e._R(4),o=3&e._R(1),i=e._R(1);switch(i){case 0:i="Worksheet";break;case 1:i="Macrosheet";break;case 2:i="Chartsheet";break;case 6:i="VBAModule"}var a=Go(e,0,r);return 0===a.length&&(a="Sheet1"),{pos:n,hs:o,dt:i,name:a}}},134:{},140:{f:function(e){var t,r=[0,0];return t=e._R(2),r[0]=$n[t]||t,t=e._R(2),r[1]=$n[t]||t,r}},141:{f:zo},144:{},146:{f:function(e){for(var t=e._R(2),r=[];t-- >0;)r.push(ii(e));return r}},151:{},152:{},153:{},154:{},155:{},156:{f:zo},157:{},158:{},160:{f:Di},161:{f:function(e,t){var r={};return t<32||(e.l+=16,r.header=Mn(e),r.footer=Mn(e),e.l+=2),r}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(e,t){for(var r=e.l+t-2,n=e._R(2),o=e._R(2),i=[];e.l<r;)i.push(li(e));if(e.l!==r)throw new Error("MulRK read error");var a=e._R(2);if(i.length!=a-o+1)throw new Error("MulRK length mismatch");return{r:n,c:o,C:a,rkrec:i}}},190:{f:function(e,t){for(var r=e.l+t-2,n=e._R(2),o=e._R(2),i=[];e.l<r;)i.push(e._R(2));if(e.l!==r)throw new Error("MulBlank read error");var a=e._R(2);if(i.length!=a-o+1)throw new Error("MulBlank length mismatch");return{r:n,c:o,C:a,ixfe:i}}},193:{f:Wo},197:{},198:{},199:{},200:{},201:{},202:{f:Uo},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:zo},220:{},221:{f:Uo},222:{},224:{f:function(e,t,r){var n={};return n.ifnt=e._R(2),n.numFmtId=e._R(2),n.flags=e._R(2),n.fStyle=n.flags>>2&1,6,n.data=function(e,t,r,n){var o={},i=e._R(4),a=e._R(4),s=e._R(4),c=e._R(2);return o.patternType=Gn[s>>26],n.cellStyles?(o.alc=7&i,o.fWrap=i>>3&1,o.alcV=i>>4&7,o.fJustLast=i>>7&1,o.trot=i>>8&255,o.cIndent=i>>16&15,o.fShrinkToFit=i>>20&1,o.iReadOrder=i>>22&2,o.fAtrNum=i>>26&1,o.fAtrFnt=i>>27&1,o.fAtrAlc=i>>28&1,o.fAtrBdr=i>>29&1,o.fAtrPat=i>>30&1,o.fAtrProt=i>>31&1,o.dgLeft=15&a,o.dgRight=a>>4&15,o.dgTop=a>>8&15,o.dgBottom=a>>12&15,o.icvLeft=a>>16&127,o.icvRight=a>>23&127,o.grbitDiag=a>>30&3,o.icvTop=127&s,o.icvBottom=s>>7&127,o.icvDiag=s>>14&127,o.dgDiag=s>>21&15,o.icvFore=127&c,o.icvBack=c>>7&127,o.fsxButton=c>>14&1,o):o}(e,0,n.fStyle,r),n}},225:{f:function(e,t){return 0===t||e._R(2),1200}},226:{f:Wo},227:{},229:{f:function(e,t){for(var r=[],n=e._R(2);n--;)r.push(ui(e));return r}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(e,t){for(var r=e.l+t,n=e._R(4),o=e._R(4),i=[],a=0;a!=o&&e.l<r;++a)i.push(Xo(e));return i.Count=n,i.Unique=o,i}},253:{f:function(e){var t=ai(e);return t.isst=e._R(4),t}},255:{f:function(e,t){var r={};return r.dsst=e._R(2),e.l+=t-2,r}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:qo},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Uo},353:{f:Wo},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:function(e,t,r){var n=e.l+t,o=e._R(2),i=e._R(2);if(r.sbcch=i,1025==i||14849==i)return[i,o];if(i<1||i>255)throw new Error("Unexpected SupBook type: "+i);for(var a=Ko(e,i),s=[];n>e.l;)s.push(Jo(e));return[i,o,a,s]}},431:{f:Uo},432:{},433:{},434:{},437:{},438:{f:function(e,t,r){var n=e.l,o="";try{e.l+=4;var i=(r.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(i)?e.l+=6:function(e){var t=e._R(1);e.l++;var r=e._R(2);return e.l+=2,[t,r]}(e);var a=e._R(2);e._R(2),zo(e);var s=e._R(2);e.l+=s;for(var c=1;c<e.lens.length-1;++c){if(e.l-n!=e.lens[c])throw new Error("TxO: bad continue record");var l=e[e.l];if((o+=Ko(e,e.lens[c+1]-e.lens[c]-1)).length>=(l?a:2*a))break}if(o.length!==a&&o.length!==2*a)throw new Error("cchText: "+a+" != "+o.length);return e.l=n+t,{t:o}}catch(r){return e.l=n+t,{t:o}}}},439:{f:Uo},440:{f:function(e,t){var r=ui(e);e.l+=16;var n=function(e,t){var r=e.l+t,n=e._R(4);if(2!==n)throw new Error("Unrecognized streamVersion: "+n);var o=e._R(2);e.l+=2;var i,a,s,c,l,u,f="";16&o&&(i=ti(e,e.l)),128&o&&(a=ti(e,e.l)),257==(257&o)&&(s=ti(e,e.l)),1==(257&o)&&(c=ei(e,e.l)),8&o&&(f=ti(e,e.l)),32&o&&(l=e._R(16)),64&o&&(u=ko(e)),e.l=r;var h=a||s||c||"";h&&f&&(h+="#"+f),h||(h="#"+f),2&o&&"/"==h.charAt(0)&&"/"!=h.charAt(1)&&(h="file://"+h);var d={Target:h};return l&&(d.guid=l),u&&(d.time=u),i&&(d.Tooltip=i),d}(e,t-24);return[r,n]}},441:{},442:{f:Jo},443:{},444:{f:zo},445:{},446:{},448:{f:Wo},449:{f:function(e){return e._R(2),e._R(4)},r:2},450:{f:Wo},512:{f:Ai},513:{f:ji},515:{f:function(e,t,r){r.biffguess&&2==r.biff&&(r.biff=5);var n=ai(e),o=Mn(e);return n.val=o,n}},516:{f:function(e,t,r){r.biffguess&&2==r.biff&&(r.biff=5),e.l;var n=ai(e);2==r.biff&&e.l++;var o=Jo(e,e.l,r);return n.val=o,n}},517:{f:Ti},519:{f:Mi},520:{f:function(e){var t={};t.r=e._R(2),t.c=e._R(2),t.cnt=e._R(2)-t.c;var r=e._R(2);e.l+=4;var n=e._R(1);return e.l+=3,7&n&&(t.level=7&n),32&n&&(t.hidden=!0),64&n&&(t.hpt=r/20),t}},523:{},545:{f:Ri},549:{f:wi},566:{},574:{f:function(e,t,r){return r&&r.biff>=2&&r.biff<5?{}:{RTL:64&e._R(2)}}},638:{f:function(e){var t=e._R(2),r=e._R(2),n=li(e);return{r:t,c:r,ixfe:n[0],rknum:n[1]}}},659:{},1048:{},1054:{f:function(e,t,r){return[e._R(2),Zo(e,0,r)]}},1084:{},1212:{f:function(e,t,r){var n=hi(e);e.l++;var o=e._R(1);return[Zs(e,t-=8,r),o,n]}},2048:{f:function(e,t){e._R(2);var r=ui(e),n=e._R((t-10)/2,"dbcs-cont");return[r,n=n.replace(E,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:vi},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Wo},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e._R(2),t.crc=e._R(4),t},r:12},2173:{f:function(e,t){e.l,e.l+=2;var r=e._R(2);e.l+=2;for(var n=e._R(2),o=[];n-- >0;)o.push(ss(e,e.l));return{ixfe:r,ext:o}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Uo,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(e,t,r){if(!(r.biff<8)){var n=e._R(2),o=e._R(2);return[Ko(e,n,r),Ko(e,o,r)]}e.l+=t},r:12},2197:{},2198:{f:function(e,t,r){var n=e.l+t;if(124226!==e._R(4))if(r.cellStyles){var o,i=e.slice(e.l);e.l=n;try{o=at(i,{type:"array"})}catch(e){return}var a=tt(o,"theme/theme/theme1.xml",!0);if(a)return os(a,r)}else e.l=n},r:12},2199:{},2200:{},2201:{},2202:{f:function(e){return[0!==e._R(4),0!==e._R(4),e._R(4)]},r:12},2203:{f:Wo},2204:{},2205:{},2206:{},2207:{},2211:{f:function(e){var t=function(e){var t=e._R(2),r=e._R(2);return e.l+=8,{type:t,flags:r}}(e);if(2211!=t.type)throw new Error("Invalid Future Record "+t.type);return 0!==e._R(4)}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:zo},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(e,t,r){var n={area:!1};if(5!=r.biff)return e.l+=t,n;var o=e._R(1);return e.l+=3,16&o&&(n.area=!0),n}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(e){for(var t=e._R(2),r=[];t-- >0;)r.push(ii(e));return r}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:Ai},1:{},2:{f:function(e){var t=ai(e);++e.l;var r=e._R(2);return t.t="n",t.val=r,t}},3:{f:function(e){var t=ai(e);++e.l;var r=Mn(e);return t.t="n",t.val=r,t}},4:{f:function(e,t,r){r.biffguess&&5==r.biff&&(r.biff=2);var n=ai(e);++e.l;var o=Zo(e,0,r);return n.t="str",n.val=o,n}},5:{f:Ti},7:{f:function(e){var t=e._R(1);return 0===t?(e.l++,""):e._R(t,"sbcs-cont")}},8:{},9:{f:vi},11:{},22:{f:zo},30:{f:xi},31:{},32:{},33:{f:Ri},36:{},37:{f:wi},50:{f:function(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}},62:{},52:{},67:{},68:{f:zo},69:{},86:{},126:{},127:{f:function(e){var t=e._R(2),r=e._R(2),n=e._R(4),o={fmt:t,env:r,len:n,data:e.slice(e.l,e.l+n)};return e.l+=n,o}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(e,t,r){var n=e.l+t,o=ai(e),i=e._R(2),a=Ko(e,i,r);return e.l=n,o.t="str",o.val=a,o}},223:{},234:{},354:{},421:{},518:{f:Qs},521:{f:vi},536:{f:Ni},547:{f:_i},561:{},579:{},1030:{f:Qs},1033:{f:vi},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function su(e,t,r,n){var o=t;if(!isNaN(o)){var i=n||(r||[]).length||0,a=e.next(4);a._W(2,o),a._W(2,i),i>0&&Lr(r)&&e.push(r)}}function cu(e,t,r){return e||(e=$r(7)),e._W(2,t),e._W(2,r),e._W(2,0),e._W(1,0),e}function lu(e,t,r,n){if(null!=t.v)switch(t.t){case"d":case"n":var o="d"==t.t?Le(He(t.v)):t.v;return void(o==(0|o)&&o>=0&&o<65536?su(e,2,function(e,t,r){var n=$r(9);return cu(n,e,t),n._W(2,r),n}(r,n,o)):su(e,3,function(e,t,r){var n=$r(15);return cu(n,e,t),n._W(8,r,"f"),n}(r,n,o)));case"b":case"e":return void su(e,5,function(e,t,r,n){var o=$r(9);return cu(o,e,t),$o(r,n||"b",o),o}(r,n,t.v,t.t));case"s":case"str":return void su(e,4,function(e,t,r){var n=$r(8+2*r.length);return cu(n,e,t),n._W(1,r.length),n._W(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}(r,n,(t.v||"").slice(0,255)))}su(e,1,cu(null,r,n))}function uu(e,t){var r=t||{};for(var n=Xr(),o=0,i=0;i<e.SheetNames.length;++i)e.SheetNames[i]==r.sheet&&(o=i);if(0==o&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return su(n,4==r.biff?1033:3==r.biff?521:9,bi(0,16,r)),function(e,t,r,n){var o,i=Array.isArray(t),a=ln(t["!ref"]||"A1"),s="",c=[];if(a.e.c>255||a.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),o=cn(a)}for(var l=a.s.r;l<=a.e.r;++l){s=tn(l);for(var u=a.s.c;u<=a.e.c;++u){l===a.s.r&&(c[u]=nn(u)),o=c[u]+s;var f=i?(t[l]||[])[u]:t[o];f&&lu(e,f,l,u)}}}(n,e.Sheets[e.SheetNames[o]],0,r),su(n,10),n.end()}function fu(e,t,r){su(e,49,function(e,t){var r=e.name||"Arial",n=t&&5==t.biff,o=$r(n?15+r.length:16+2*r.length);return o._W(2,20*(e.sz||12)),o._W(4,0),o._W(2,400),o._W(4,0),o._W(2,0),o._W(1,r.length),n||o._W(1,1),o._W((n?1:2)*r.length,r,n?"sbcs":"utf16le"),o}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},r))}function hu(e,t){if(t){var r=0;t.forEach((function(t,n){++r<=256&&t&&su(e,125,function(e,t){var r=$r(12);r._W(2,t),r._W(2,t),r._W(2,256*e.width),r._W(2,0);var n=0;return e.hidden&&(n|=1),r._W(1,n),n=e.level||0,r._W(1,n),r._W(2,0),r}(vc(n,t),n))}))}}function du(e,t,r,n,o){var i=16+yc(o.cellXfs,t,o);if(null!=t.v||t.bf)if(t.bf)su(e,6,ec(t,r,n,0,i));else switch(t.t){case"d":case"n":su(e,515,function(e,t,r,n){var o=$r(14);return si(e,t,n,o),Bn(r,o),o}(r,n,"d"==t.t?Le(He(t.v)):t.v,i));break;case"b":case"e":su(e,517,function(e,t,r,n,o,i){var a=$r(8);return si(e,t,n,a),$o(r,i,a),a}(r,n,t.v,i,0,t.t));break;case"s":case"str":if(o.bookSST)su(e,253,function(e,t,r,n){var o=$r(10);return si(e,t,n,o),o._W(4,r),o}(r,n,mc(o.Strings,t.v,o.revStrings),i));else su(e,516,function(e,t,r,n,o){var i=!o||8==o.biff,a=$r(+i+8+(1+i)*r.length);return si(e,t,n,a),a._W(2,r.length),i&&a._W(1,1),a._W((1+i)*r.length,r,i?"utf16le":"sbcs"),a}(r,n,(t.v||"").slice(0,255),i,o));break;default:su(e,513,si(r,n,i))}else su(e,513,si(r,n,i))}function pu(e,t,r){var n,o=Xr(),i=r.SheetNames[e],a=r.Sheets[i]||{},s=(r||{}).Workbook||{},c=(s.Sheets||[])[e]||{},l=Array.isArray(a),u=8==t.biff,f="",h=[],d=ln(a["!ref"]||"A1"),p=u?65536:16384;if(d.e.c>255||d.e.r>=p){if(t.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");d.e.c=Math.min(d.e.c,255),d.e.r=Math.min(d.e.c,p-1)}su(o,2057,bi(0,16,t)),su(o,13,Vo(1)),su(o,12,Vo(100)),su(o,15,Ho(!0)),su(o,17,Ho(!1)),su(o,16,Bn(.001)),su(o,95,Ho(!0)),su(o,42,Ho(!1)),su(o,43,Ho(!1)),su(o,130,Vo(1)),su(o,128,function(e){var t=$r(8);return t._W(4,0),t._W(2,e[0]?e[0]+1:0),t._W(2,e[1]?e[1]+1:0),t}([0,0])),su(o,131,Ho(!1)),su(o,132,Ho(!1)),u&&hu(o,a["!cols"]),su(o,512,function(e,t){var r=8!=t.biff&&t.biff?2:4,n=$r(2*r+6);return n._W(r,e.s.r),n._W(r,e.e.r+1),n._W(2,e.s.c),n._W(2,e.e.c+1),n._W(2,0),n}(d,t)),u&&(a["!links"]=[]);for(var g=d.s.r;g<=d.e.r;++g){f=tn(g);for(var m=d.s.c;m<=d.e.c;++m){g===d.s.r&&(h[m]=nn(m)),n=h[m]+f;var v=l?(a[g]||[])[m]:a[n];v&&(du(o,v,g,m,t),u&&v.l&&a["!links"].push([n,v.l]))}}var b=c.CodeName||c.name||i;return u&&su(o,574,function(e){var t=$r(18),r=1718;return e&&e.RTL&&(r|=64),t._W(2,r),t._W(4,0),t._W(4,64),t._W(4,0),t._W(4,0),t}((s.Views||[])[0])),u&&(a["!merges"]||[]).length&&su(o,229,function(e){var t=$r(2+8*e.length);t._W(2,e.length);for(var r=0;r<e.length;++r)fi(e[r],t);return t}(a["!merges"])),u&&function(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];su(e,440,Li(n)),n[1].Tooltip&&su(e,2048,Ii(n))}delete t["!links"]}(o,a),su(o,442,Qo(b)),u&&function(e,t){var r=$r(19);r._W(4,2151),r._W(4,0),r._W(4,0),r._W(2,3),r._W(1,1),r._W(4,0),su(e,2151,r),(r=$r(39))._W(4,2152),r._W(4,0),r._W(4,0),r._W(2,3),r._W(1,0),r._W(4,0),r._W(2,1),r._W(4,4),r._W(2,0),fi(ln(t["!ref"]||"A1"),r),r._W(4,4),su(e,2152,r)}(o,a),su(o,10),o.end()}function gu(e,t,r){var n=Xr(),o=(e||{}).Workbook||{},i=o.Sheets||[],a=o.WBProps||{},s=8==r.biff,c=5==r.biff;(su(n,2057,bi(0,5,r)),"xla"==r.bookType&&su(n,135),su(n,225,s?Vo(1200):null),su(n,193,function(e,t){t||(t=$r(e));for(var r=0;r<e;++r)t._W(1,0);return t}(2)),c&&su(n,191),c&&su(n,192),su(n,226),su(n,92,function(e,t){var r=!t||8==t.biff,n=$r(r?112:54);for(n._W(8==t.biff?2:1,7),r&&n._W(1,0),n._W(4,859007059),n._W(4,5458548|(r?0:536870912));n.l<n.length;)n._W(1,r?0:32);return n}(0,r)),su(n,66,Vo(s?1200:1252)),s&&su(n,353,Vo(0)),s&&su(n,448),su(n,317,function(e){for(var t=$r(2*e),r=0;r<e;++r)t._W(2,r+1);return t}(e.SheetNames.length)),s&&e.vbaraw&&su(n,211),s&&e.vbaraw)&&su(n,442,Qo(a.CodeName||"ThisWorkbook"));su(n,156,Vo(17)),su(n,25,Ho(!1)),su(n,18,Ho(!1)),su(n,19,Vo(0)),s&&su(n,431,Ho(!1)),s&&su(n,444,Vo(0)),su(n,61,function(){var e=$r(18);return e._W(2,0),e._W(2,0),e._W(2,29280),e._W(2,17600),e._W(2,56),e._W(2,0),e._W(2,0),e._W(2,1),e._W(2,500),e}()),su(n,64,Ho(!1)),su(n,141,Vo(0)),su(n,34,Ho("true"==function(e){return e.Workbook&&e.Workbook.WBProps&&Et(e.Workbook.WBProps.date1904)?"true":"false"}(e))),su(n,14,Ho(!0)),s&&su(n,439,Ho(!1)),su(n,218,Vo(0)),fu(n,0,r),function(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var o=n[0];o<=n[1];++o)null!=t[o]&&su(e,1054,Si(o,t[o],r))}))}(n,e.SSF,r),function(e,t){for(var r=0;r<16;++r)su(e,224,ki({numFmtId:0,style:!0},0,t));t.cellXfs.forEach((function(r){su(e,224,ki(r,0,t))}))}(n,r),s&&su(n,352,Ho(!1));var l=n.end(),u=Xr();s&&su(u,140,function(e){return e||(e=$r(4)),e._W(2,1),e._W(2,1),e}()),s&&r.Strings&&function(e,t,r,n){var o=n||(r||[]).length||0;if(o<=8224)return su(e,t,r,o);var i=t;if(!isNaN(i)){for(var a=r.parts||[],s=0,c=0,l=0;l+(a[s]||8224)<=8224;)l+=a[s]||8224,s++;var u=e.next(4);for(u._W(2,i),u._W(2,l),e.push(r.slice(c,c+l)),c+=l;c<o;){for((u=e.next(4))._W(2,60),l=0;l+(a[s]||8224)<=8224;)l+=a[s]||8224,s++;u._W(2,l),e.push(r.slice(c,c+l)),c+=l}}}(u,252,function(e,t){var r=$r(8);r._W(4,e.Count),r._W(4,e.Unique);for(var n=[],o=0;o<e.length;++o)n[o]=Yo(e[o]);var i=T([r].concat(n));return i.parts=[r.length].concat(n.map((function(e){return e.length}))),i}(r.Strings)),su(u,10);var f=u.end(),h=Xr(),d=0,p=0;for(p=0;p<e.SheetNames.length;++p)d+=(s?12:11)+(s?2:1)*e.SheetNames[p].length;var g=l.length+d+f.length;for(p=0;p<e.SheetNames.length;++p){su(h,133,yi({pos:g,hs:(i[p]||{}).Hidden||0,dt:0,name:e.SheetNames[p]},r)),g+=t[p].length}var m=h.end();if(d!=m.length)throw new Error("BS8 "+d+" != "+m.length);var v=[];return l.length&&v.push(l),m.length&&v.push(m),f.length&&v.push(f),T(v)}function mu(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(n&&n["!ref"])sn(n["!ref"]).e.c>255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}var o=t||{};switch(o.biff||2){case 8:case 5:return function(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=Ve(D)),e&&e.SSF&&(ye(),be(e.SSF),r.revssf=Re(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,uf(r),r.cellXfs=[],yc(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var o=0;o<e.SheetNames.length;++o)n[n.length]=pu(o,r,e);return n.unshift(gu(e,n,r)),T(n)}(e,t);case 4:case 3:case 2:return uu(e,t)}throw new Error("invalid type "+o.bookType+" for BIFF")}function vu(e,t){var r=t||{};var n=r.dense?[]:{},o=(e=e.replace(/<!--.*?-->/g,"")).match(/<table/i);if(!o)throw new Error("Invalid HTML: could not find <table>");var i=e.match(/<\/table/i),a=o.index,s=i&&i.index||e.length,c=Ye(e.slice(a,s),/(:?<tr[^>]*>)/i,"<tr>"),l=-1,u=0,f=0,h=0,d={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(a=0;a<c.length;++a){var g=c[a].trim(),m=g.slice(0,3).toLowerCase();if("<tr"!=m){if("<td"==m||"<th"==m){var v=g.split(/<\/t[dh]>/i);for(s=0;s<v.length;++s){var b=v[s].trim();if(b.match(/<t[dh]/i)){for(var y=b,w=0;"<"==y.charAt(0)&&(w=y.indexOf(">"))>-1;)y=y.slice(w+1);for(var S=0;S<p.length;++S){var x=p[S];x.s.c==u&&x.s.r<l&&l<=x.e.r&&(u=x.e.c+1,S=-1)}var A=pt(b.slice(0,b.indexOf(">")));h=A.colspan?+A.colspan:1,((f=+A.rowspan)>1||h>1)&&p.push({s:{r:l,c:u},e:{r:l+(f||1)-1,c:u+h-1}});var k=A.t||A["data-t"]||"";if(y.length)if(y=It(y),d.s.r>l&&(d.s.r=l),d.e.r<l&&(d.e.r=l),d.s.c>u&&(d.s.c=u),d.e.c<u&&(d.e.c=u),y.length){var T={t:"s",v:y};r.raw||!y.trim().length||"s"==k||("TRUE"===y?T={t:"b",v:!0}:"FALSE"===y?T={t:"b",v:!1}:isNaN($e(y))?isNaN(Xe(y).getDate())||(T={t:"d",v:He(y)},r.cellDates||(T={t:"n",v:Le(T.v)}),T.z=r.dateNF||D[14]):T={t:"n",v:$e(y)}),r.dense?(n[l]||(n[l]=[]),n[l][u]=T):n[an({r:l,c:u})]=T,u+=h}else u+=h;else u+=h}}}}else{if(++l,r.sheetRows&&r.sheetRows<=l){--l;break}u=0}}return n["!ref"]=cn(d),p.length&&(n["!merges"]=p),n}function bu(e,t,r,n){for(var o=e["!merges"]||[],i=[],a=t.s.c;a<=t.e.c;++a){for(var s=0,c=0,l=0;l<o.length;++l)if(!(o[l].s.r>r||o[l].s.c>a||o[l].e.r<r||o[l].e.c<a)){if(o[l].s.r<r||o[l].s.c<a){s=-1;break}s=o[l].e.r-o[l].s.r+1,c=o[l].e.c-o[l].s.c+1;break}if(!(s<0)){var u=an({r:r,c:a}),f=n.dense?(e[r]||[])[a]:e[u],h=f&&null!=f.v&&(f.h||kt(f.w||(fn(f),f.w)||""))||"",d={};s>1&&(d.rowspan=s),c>1&&(d.colspan=c),n.editable?h='<span contenteditable="true">'+h+"</span>":f&&(d["data-t"]=f&&f.t||"z",null!=f.v&&(d["data-v"]=f.v),null!=f.z&&(d["data-z"]=f.z),f.l&&"#"!=(f.l.Target||"#").charAt(0)&&(h='<a href="'+f.l.Target+'">'+h+"</a>")),d.id=(n.id||"sjs")+"-"+u,i.push(Ht("td",h,d))}}return"<tr>"+i.join("")+"</tr>"}var yu='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',wu="</body></html>";function Su(e,t,r){return[].join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function xu(e,t){var r=t||{},n=null!=r.header?r.header:yu,o=null!=r.footer?r.footer:wu,i=[n],a=sn(e["!ref"]);r.dense=Array.isArray(e),i.push(Su(0,0,r));for(var s=a.s.r;s<=a.e.r;++s)i.push(bu(e,a,s,r));return i.push("</table>"+o),i.join("")}function Au(e,t,r){var n=r||{};var o=0,i=0;if(null!=n.origin)if("number"==typeof n.origin)o=n.origin;else{var a="string"==typeof n.origin?on(n.origin):n.origin;o=a.r,i=a.c}var s=t.getElementsByTagName("tr"),c=Math.min(n.sheetRows||1e7,s.length),l={s:{r:0,c:0},e:{r:o,c:i}};if(e["!ref"]){var u=sn(e["!ref"]);l.s.r=Math.min(l.s.r,u.s.r),l.s.c=Math.min(l.s.c,u.s.c),l.e.r=Math.max(l.e.r,u.e.r),l.e.c=Math.max(l.e.c,u.e.c),-1==o&&(l.e.r=o=u.e.r+1)}var f=[],h=0,d=e["!rows"]||(e["!rows"]=[]),p=0,g=0,m=0,v=0,b=0,y=0;for(e["!cols"]||(e["!cols"]=[]);p<s.length&&g<c;++p){var w=s[p];if(Tu(w)){if(n.display)continue;d[g]={hidden:!0}}var S=w.children;for(m=v=0;m<S.length;++m){var x=S[m];if(!n.display||!Tu(x)){var A=x.hasAttribute("data-v")?x.getAttribute("data-v"):x.hasAttribute("v")?x.getAttribute("v"):It(x.innerHTML),k=x.getAttribute("data-z")||x.getAttribute("z");for(h=0;h<f.length;++h){var T=f[h];T.s.c==v+i&&T.s.r<g+o&&g+o<=T.e.r&&(v=T.e.c+1-i,h=-1)}y=+x.getAttribute("colspan")||1,((b=+x.getAttribute("rowspan")||1)>1||y>1)&&f.push({s:{r:g+o,c:v+i},e:{r:g+o+(b||1)-1,c:v+i+(y||1)-1}});var E={t:"s",v:A},_=x.getAttribute("data-t")||x.getAttribute("t")||"";null!=A&&(0==A.length?E.t=_||"z":n.raw||0==A.trim().length||"s"==_||("TRUE"===A?E={t:"b",v:!0}:"FALSE"===A?E={t:"b",v:!1}:isNaN($e(A))?isNaN(Xe(A).getDate())||(E={t:"d",v:He(A)},n.cellDates||(E={t:"n",v:Le(E.v)}),E.z=n.dateNF||D[14]):E={t:"n",v:$e(A)})),void 0===E.z&&null!=k&&(E.z=k);var O="",N=x.getElementsByTagName("A");if(N&&N.length)for(var C=0;C<N.length&&(!N[C].hasAttribute("href")||"#"==(O=N[C].getAttribute("href")).charAt(0));++C);O&&"#"!=O.charAt(0)&&(E.l={Target:O}),n.dense?(e[g+o]||(e[g+o]=[]),e[g+o][v+i]=E):e[an({c:v+i,r:g+o})]=E,l.e.c<v+i&&(l.e.c=v+i),v+=y}}++g}return f.length&&(e["!merges"]=(e["!merges"]||[]).concat(f)),l.e.r=Math.max(l.e.r,g-1+o),e["!ref"]=cn(l),g>=c&&(e["!fullref"]=cn((l.e.r=s.length-p+g-1+o,l))),e}function ku(e,t){return Au((t||{}).dense?[]:{},e,t)}function Tu(e){var t="",r=function(e){return e.ownerDocument.defaultView&&"function"==typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}function Eu(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/<text:tab[^>]*\/>/g,"\t").replace(/<text:line-break\/>/g,"\n");return[bt(t.replace(/<[^>]*>/g,""))]}var _u={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function Ou(e,t){var r=t||{};var n,o,i,a,s,c,l=Vt(e),u=[],f={name:""},h="",d=0,p={},g=[],m=r.dense?[]:{},v={value:""},b="",y=0,w=[],S=-1,x=-1,A={s:{r:1e6,c:1e7},e:{r:0,c:0}},k=0,T={},E=[],_={},O=[],N=1,C=1,R=[],P={Names:[]},L={},I=["",""],F=[],j={},D="",M=0,B=!1,W=!1,U=0;for(qt.lastIndex=0,l=l.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");s=qt.exec(l);)switch(s[3]=s[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===s[1]?(A.e.c>=A.s.c&&A.e.r>=A.s.r?m["!ref"]=cn(A):m["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=A.e.r&&(m["!fullref"]=m["!ref"],A.e.r=r.sheetRows-1,m["!ref"]=cn(A)),E.length&&(m["!merges"]=E),O.length&&(m["!rows"]=O),i.name=i["名称"]||i.name,"undefined"!=typeof JSON&&JSON.stringify(i),g.push(i.name),p[i.name]=m,W=!1):"/"!==s[0].charAt(s[0].length-2)&&(i=pt(s[0],!1),S=x=-1,A.s.r=A.s.c=1e7,A.e.r=A.e.c=0,m=r.dense?[]:{},E=[],O=[],W=!0);break;case"table-row-group":"/"===s[1]?--k:++k;break;case"table-row":case"行":if("/"===s[1]){S+=N,N=1;break}if((a=pt(s[0],!1))["行号"]?S=a["行号"]-1:-1==S&&(S=0),(N=+a["number-rows-repeated"]||1)<10)for(U=0;U<N;++U)k>0&&(O[S+U]={level:k});x=-1;break;case"covered-table-cell":"/"!==s[1]&&++x,r.sheetStubs&&(r.dense?(m[S]||(m[S]=[]),m[S][x]={t:"z"}):m[an({r:S,c:x})]={t:"z"}),b="",w=[];break;case"table-cell":case"数据":if("/"===s[0].charAt(s[0].length-2))++x,v=pt(s[0],!1),C=parseInt(v["number-columns-repeated"]||"1",10),c={t:"z",v:null},v.formula&&0!=r.cellFormula&&(c.f=lc(bt(v.formula))),"string"==(v["数据类型"]||v["value-type"])&&(c.t="s",c.v=bt(v["string-value"]||""),r.dense?(m[S]||(m[S]=[]),m[S][x]=c):m[an({r:S,c:x})]=c),x+=C-1;else if("/"!==s[1]){b="",y=0,w=[],C=1;var H=N?S+N-1:S;if(++x>A.e.c&&(A.e.c=x),x<A.s.c&&(A.s.c=x),S<A.s.r&&(A.s.r=S),H>A.e.r&&(A.e.r=H),F=[],j={},c={t:(v=pt(s[0],!1))["数据类型"]||v["value-type"],v:null},r.cellFormula)if(v.formula&&(v.formula=bt(v.formula)),v["number-matrix-columns-spanned"]&&v["number-matrix-rows-spanned"]&&(_={s:{r:S,c:x},e:{r:S+(parseInt(v["number-matrix-rows-spanned"],10)||0)-1,c:x+(parseInt(v["number-matrix-columns-spanned"],10)||0)-1}},c.F=cn(_),R.push([_,c.F])),v.formula)c.f=lc(v.formula);else for(U=0;U<R.length;++U)S>=R[U][0].s.r&&S<=R[U][0].e.r&&x>=R[U][0].s.c&&x<=R[U][0].e.c&&(c.F=R[U][1]);switch((v["number-columns-spanned"]||v["number-rows-spanned"])&&(_={s:{r:S,c:x},e:{r:S+(parseInt(v["number-rows-spanned"],10)||0)-1,c:x+(parseInt(v["number-columns-spanned"],10)||0)-1}},E.push(_)),v["number-columns-repeated"]&&(C=parseInt(v["number-columns-repeated"],10)),c.t){case"boolean":c.t="b",c.v=Et(v["boolean-value"]);break;case"float":case"percentage":case"currency":c.t="n",c.v=parseFloat(v.value);break;case"date":c.t="d",c.v=He(v["date-value"]),r.cellDates||(c.t="n",c.v=Le(c.v)),c.z="m/d/yy";break;case"time":c.t="n",c.v=Me(v["time-value"])/86400,r.cellDates&&(c.t="d",c.v=De(c.v)),c.z="HH:MM:SS";break;case"number":c.t="n",c.v=parseFloat(v["数据数值"]);break;default:if("string"!==c.t&&"text"!==c.t&&c.t)throw new Error("Unsupported value type "+c.t);c.t="s",null!=v["string-value"]&&(b=bt(v["string-value"]),w=[])}}else{if(B=!1,"s"===c.t&&(c.v=b||"",w.length&&(c.R=w),B=0==y),L.Target&&(c.l=L),F.length>0&&(c.c=F,F=[]),b&&!1!==r.cellText&&(c.w=b),B&&(c.t="z",delete c.v),(!B||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=S))for(var z=0;z<N;++z){if(C=parseInt(v["number-columns-repeated"]||"1",10),r.dense)for(m[S+z]||(m[S+z]=[]),m[S+z][x]=0==z?c:Ve(c);--C>0;)m[S+z][x+C]=Ve(c);else for(m[an({r:S+z,c:x})]=c;--C>0;)m[an({r:S+z,c:x+C})]=Ve(c);A.e.c<=x&&(A.e.c=x)}x+=(C=parseInt(v["number-columns-repeated"]||"1",10))-1,C=0,c={},b="",w=[]}L={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===s[1]){if((n=u.pop())[0]!==s[3])throw"Bad state: "+n}else"/"!==s[0].charAt(s[0].length-2)&&u.push([s[3],!0]);break;case"annotation":if("/"===s[1]){if((n=u.pop())[0]!==s[3])throw"Bad state: "+n;j.t=b,w.length&&(j.R=w),j.a=D,F.push(j)}else"/"!==s[0].charAt(s[0].length-2)&&u.push([s[3],!1]);D="",M=0,b="",y=0,w=[];break;case"creator":"/"===s[1]?D=l.slice(M,s.index):M=s.index+s[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===s[1]){if((n=u.pop())[0]!==s[3])throw"Bad state: "+n}else"/"!==s[0].charAt(s[0].length-2)&&u.push([s[3],!1]);b="",y=0,w=[];break;case"scientific-number":case"currency-symbol":case"currency-style":case"script":case"libraries":case"automatic-styles":case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":case"fraction":case"boolean-style":case"boolean":case"text-style":case"text-content":case"text-properties":case"embedded-text":case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":case"s":case"date":case"object":case"title":case"标题":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===s[1]){if(T[f.name]=h,(n=u.pop())[0]!==s[3])throw"Bad state: "+n}else"/"!==s[0].charAt(s[0].length-2)&&(h="",f=pt(s[0],!1),u.push([s[3],!0]));break;case"number":case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(u[u.length-1][0]){case"time-style":case"date-style":o=pt(s[0],!1),h+=_u[s[3]]["long"===o.style?1:0]}break;case"text":if("/>"===s[0].slice(-2))break;if("/"===s[1])switch(u[u.length-1][0]){case"number-style":case"date-style":case"time-style":h+=l.slice(d,s.index)}else d=s.index+s[0].length;break;case"named-range":I=fc((o=pt(s[0],!1))["cell-range-address"]);var V={Name:o.name,Ref:I[0]+"!"+I[1]};W&&(V.Sheet=g.length),P.Names.push(V);break;case"p":case"文本串":if(["master-styles"].indexOf(u[u.length-1][0])>-1)break;if("/"!==s[1]||v&&v["string-value"])pt(s[0],!1),y=s.index+s[0].length;else{var q=Eu(l.slice(y,s.index));b=(b.length>0?b+"\n":"")+q[0]}break;case"database-range":if("/"===s[1])break;try{p[(I=fc(pt(s[0])["target-range-address"]))[0]]["!autofilter"]={ref:I[1]}}catch(e){}break;case"a":if("/"!==s[1]){if(!(L=pt(s[0],!1)).href)break;L.Target=bt(L.href),delete L.href,"#"==L.Target.charAt(0)&&L.Target.indexOf(".")>-1?(I=fc(L.Target.slice(1)),L.Target="#"+I[0]+"!"+I[1]):L.Target.match(/^\.\.[\\\/]/)&&(L.Target=L.Target.slice(3))}break;default:switch(s[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(r.WTF)throw new Error(s)}}var $={Sheets:p,SheetNames:g,Workbook:P};return r.bookSheets&&delete $.Sheets,$}function Nu(e,t){t=t||{},Ze(e,"META-INF/manifest.xml")&&function(e,t){for(var r,n,o=Vt(e);r=qt.exec(o);)switch(r[3]){case"manifest":break;case"file-entry":if("/"==(n=pt(r[0],!1)).path&&"application/vnd.oasis.opendocument.spreadsheet"!==n.type)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw r}}(et(e,"META-INF/manifest.xml"),t);var r=tt(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=Ou(Rt(r),t);return Ze(e,"meta.xml")&&(n.Props=fo(et(e,"meta.xml"))),n}function Cu(e,t){return Ou(e,t)}var Ru=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+Ut({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return ct+t}}(),Pu=function(){var e=function(e){return St(e).replace(/ +/g,(function(e){return'<text:s text:c="'+e.length+'"/>'})).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=" <table:table-cell />\n",r=function(r,n,o){var i=[];i.push(' <table:table table:name="'+St(n.SheetNames[o])+'" table:style-name="ta1">\n');var a=0,s=0,c=sn(r["!ref"]||"A1"),l=r["!merges"]||[],u=0,f=Array.isArray(r);if(r["!cols"])for(s=0;s<=c.e.c;++s)i.push(" <table:table-column"+(r["!cols"][s]?' table:style-name="co'+r["!cols"][s].ods+'"':"")+"></table:table-column>\n");var h="",d=r["!rows"]||[];for(a=0;a<c.s.r;++a)h=d[a]?' table:style-name="ro'+d[a].ods+'"':"",i.push(" <table:table-row"+h+"></table:table-row>\n");for(;a<=c.e.r;++a){for(h=d[a]?' table:style-name="ro'+d[a].ods+'"':"",i.push(" <table:table-row"+h+">\n"),s=0;s<c.s.c;++s)i.push(t);for(;s<=c.e.c;++s){var p=!1,g={},m="";for(u=0;u!=l.length;++u)if(!(l[u].s.c>s||l[u].s.r>a||l[u].e.c<s||l[u].e.r<a)){l[u].s.c==s&&l[u].s.r==a||(p=!0),g["table:number-columns-spanned"]=l[u].e.c-l[u].s.c+1,g["table:number-rows-spanned"]=l[u].e.r-l[u].s.r+1;break}if(p)i.push(" <table:covered-table-cell/>\n");else{var v=an({r:a,c:s}),b=f?(r[a]||[])[s]:r[v];if(b&&b.f&&(g["table:formula"]=St(uc(b.f)),b.F&&b.F.slice(0,v.length)==v)){var y=sn(b.F);g["table:number-matrix-columns-spanned"]=y.e.c-y.s.c+1,g["table:number-matrix-rows-spanned"]=y.e.r-y.s.r+1}if(b){switch(b.t){case"b":m=b.v?"TRUE":"FALSE",g["office:value-type"]="boolean",g["office:boolean-value"]=b.v?"true":"false";break;case"n":m=b.w||String(b.v||0),g["office:value-type"]="float",g["office:value"]=b.v||0;break;case"s":case"str":m=null==b.v?"":b.v,g["office:value-type"]="string";break;case"d":m=b.w||He(b.v).toISOString(),g["office:value-type"]="date",g["office:date-value"]=He(b.v).toISOString(),g["table:style-name"]="ce1";break;default:i.push(t);continue}var w=e(m);if(b.l&&b.l.Target){var S=b.l.Target;"#"==(S="#"==S.charAt(0)?"#"+hc(S.slice(1)):S).charAt(0)||S.match(/^\w+:/)||(S="../"+S),w=Ht("text:a",w,{"xlink:href":S.replace(/&/g,"&")})}i.push(" "+Ht("table:table-cell",Ht("text:p",w,{}),g)+"\n")}else i.push(t)}}i.push(" </table:table-row>\n")}return i.push(" </table:table>\n"),i.join("")};return function(e,t){var n=[ct],o=Ut({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),i=Ut({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==t.bookType?(n.push("<office:document"+o+i+">\n"),n.push(co().replace(/office:document-meta/g,"office:meta"))):n.push("<office:document-content"+o+">\n"),function(e,t){e.push(" <office:automatic-styles>\n"),e.push(' <number:date-style style:name="N37" number:automatic-order="true">\n'),e.push(' <number:month number:style="long"/>\n'),e.push(" <number:text>/</number:text>\n"),e.push(' <number:day number:style="long"/>\n'),e.push(" <number:text>/</number:text>\n"),e.push(" <number:year/>\n"),e.push(" </number:date-style>\n");var r=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!cols"])for(var n=0;n<t["!cols"].length;++n)if(t["!cols"][n]){var o=t["!cols"][n];if(null==o.width&&null==o.wpx&&null==o.wch)continue;Oa(o),o.ods=r;var i=t["!cols"][n].wpx+"px";e.push(' <style:style style:name="co'+r+'" style:family="table-column">\n'),e.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+i+'"/>\n'),e.push(" </style:style>\n"),++r}}));var n=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!rows"])for(var r=0;r<t["!rows"].length;++r)if(t["!rows"][r]){t["!rows"][r].ods=n;var o=t["!rows"][r].hpx+"px";e.push(' <style:style style:name="ro'+n+'" style:family="table-row">\n'),e.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+o+'"/>\n'),e.push(" </style:style>\n"),++n}})),e.push(' <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),e.push(' <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),e.push(" </style:style>\n"),e.push(' <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),e.push(" </office:automatic-styles>\n")}(n,e),n.push(" <office:body>\n"),n.push(" <office:spreadsheet>\n");for(var a=0;a!=e.SheetNames.length;++a)n.push(r(e.Sheets[e.SheetNames[a]],e,a));return n.push(" </office:spreadsheet>\n"),n.push(" </office:body>\n"),"fods"==t.bookType?n.push("</office:document>"):n.push("</office:document-content>"),n.join("")}}();function Lu(e,t){if("fods"==t.bookType)return Pu(e,t);var r=it(),n="",o=[],i=[];return ot(r,n="mimetype","application/vnd.oasis.opendocument.spreadsheet"),ot(r,n="content.xml",Pu(e,t)),o.push([n,"text/xml"]),i.push([n,"ContentFile"]),ot(r,n="styles.xml",Ru(e,t)),o.push([n,"text/xml"]),i.push([n,"StylesFile"]),ot(r,n="meta.xml",ct+co()),o.push([n,"text/xml"]),i.push([n,"MetadataFile"]),ot(r,n="manifest.rdf",function(e){var t=[ct];t.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var r=0;r!=e.length;++r)t.push(ao(e[r][0],e[r][1])),t.push(so("",e[r][0]));return t.push(ao("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}(i)),o.push([n,"application/rdf+xml"]),ot(r,n="META-INF/manifest.xml",function(e){var t=[ct];t.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),t.push(' <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var r=0;r<e.length;++r)t.push(' <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+'"/>\n');return t.push("</manifest:manifest>"),t.join("")}(o)),r}function Iu(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Fu(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):Rt(A(e))}function ju(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):S(Pt(e))}function Du(e){var t=e.reduce((function(e,t){return e+t.length}),0),r=new Uint8Array(t),n=0;return e.forEach((function(e){r.set(e,n),n+=e.length})),r}function Mu(e){return 16843009*((e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135)>>>24}function Bu(e,t){var r=t?t[0]:0,n=127&e[r];e:if(e[r++]>=128){if(n|=(127&e[r])<<7,e[r++]<128)break e;if(n|=(127&e[r])<<14,e[r++]<128)break e;if(n|=(127&e[r])<<21,e[r++]<128)break e;if(n+=(127&e[r])*Math.pow(2,28),++r,e[r++]<128)break e;if(n+=(127&e[r])*Math.pow(2,35),++r,e[r++]<128)break e;if(n+=(127&e[r])*Math.pow(2,42),++r,e[r++]<128)break e}return t&&(t[0]=r),n}function Wu(e){var t=new Uint8Array(7);t[0]=127&e;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383)break e;if(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)break e;if(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)break e;if(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)break e;if(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103)break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function Uu(e){var t=0,r=127&e[t];e:if(e[t++]>=128){if(r|=(127&e[t])<<7,e[t++]<128)break e;if(r|=(127&e[t])<<14,e[t++]<128)break e;if(r|=(127&e[t])<<21,e[t++]<128)break e;r|=(127&e[t])<<28}return r}function Hu(e){for(var t=[],r=[0];r[0]<e.length;){var n,o=r[0],i=Bu(e,r),a=7&i,s=0;if(0==(i=Math.floor(i/8)))break;switch(a){case 0:for(var c=r[0];e[r[0]++]>=128;);n=e.slice(c,r[0]);break;case 5:s=4,n=e.slice(r[0],r[0]+s),r[0]+=s;break;case 1:s=8,n=e.slice(r[0],r[0]+s),r[0]+=s;break;case 2:s=Bu(e,r),n=e.slice(r[0],r[0]+s),r[0]+=s;break;default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(o))}var l={data:n,type:a};null==t[i]?t[i]=[l]:t[i].push(l)}return t}function zu(e){var t=[];return e.forEach((function(e,r){e.forEach((function(e){e.data&&(t.push(Wu(8*r+e.type)),2==e.type&&t.push(Wu(e.data.length)),t.push(e.data))}))})),Du(t)}function Vu(e,t){return(null==e?void 0:e.map((function(e){return t(e.data)})))||[]}function qu(e){for(var t,r=[],n=[0];n[0]<e.length;){var o=Bu(e,n),i=Hu(e.slice(n[0],n[0]+o));n[0]+=o;var a={id:Uu(i[1][0].data),messages:[]};i[2].forEach((function(t){var r=Hu(t.data),o=Uu(r[3][0].data);a.messages.push({meta:r,data:e.slice(n[0],n[0]+o)}),n[0]+=o})),(null==(t=i[3])?void 0:t[0])&&(a.merge=Uu(i[3][0].data)>>>0>0),r.push(a)}return r}function $u(e){var t=[];return e.forEach((function(e){var r=[];r[1]=[{data:Wu(e.id),type:0}],r[2]=[],null!=e.merge&&(r[3]=[{data:Wu(+!!e.merge),type:0}]);var n=[];e.messages.forEach((function(e){n.push(e.data),e.meta[3]=[{type:0,data:Wu(e.data.length)}],r[2].push({data:zu(e.meta),type:2})}));var o=zu(r);t.push(Wu(o.length)),t.push(o),n.forEach((function(e){return t.push(e)}))})),Du(t)}function Gu(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=Bu(t,r),o=[];r[0]<t.length;){var i=3&t[r[0]];if(0!=i){var a=0,s=0;if(1==i?(s=4+(t[r[0]]>>2&7),a=(224&t[r[0]++])<<3,a|=t[r[0]++]):(s=1+(t[r[0]++]>>2),2==i?(a=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(a=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),o=[Du(o)],0==a)throw new Error("Invalid offset 0");if(a>o[0].length)throw new Error("Invalid offset beyond length");if(s>=a)for(o.push(o[0].slice(-a)),s-=a;s>=o[o.length-1].length;)o.push(o[o.length-1]),s-=o[o.length-1].length;o.push(o[0].slice(-a,-a+s))}else{var c=t[r[0]++]>>2;if(c<60)++c;else{var l=c-59;c=t[r[0]],l>1&&(c|=t[r[0]+1]<<8),l>2&&(c|=t[r[0]+2]<<16),l>3&&(c|=t[r[0]+3]<<24),c>>>=0,c++,r[0]+=l}o.push(t.slice(r[0],r[0]+c)),r[0]+=c}}var u=Du(o);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}function Xu(e){for(var t=[],r=0;r<e.length;){var n=e[r++],o=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(Gu(n,e.slice(r,r+o))),r+=o}if(r!==e.length)throw new Error("data is not a valid framed stream!");return Du(t)}function Yu(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),o=new Uint8Array(4);t.push(o);var i=Wu(n),a=i.length;t.push(i),n<=60?(a++,t.push(new Uint8Array([n-1<<2]))):n<=256?(a+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(a+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(a+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(a+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),a+=n,o[0]=0,o[1]=255&a,o[2]=a>>8&255,o[3]=a>>16&255,r+=n}return Du(t)}function Ku(e,t,r){var n,o=Iu(e),i=o.getUint32(8,!0),a=12,s=-1,c=-1,l=NaN,u=NaN,f=new Date(2001,0,1);switch(1&i&&(l=function(e,t){for(var r=(127&e[t+15])<<7|e[t+14]>>1,n=1&e[t+14],o=t+13;o>=t;--o)n=256*n+e[o];return(128&e[t+15]?-n:n)*Math.pow(10,r-6176)}(e,a),a+=16),2&i&&(u=o.getFloat64(a,!0),a+=8),4&i&&(f.setTime(f.getTime()+1e3*o.getFloat64(a,!0)),a+=8),8&i&&(c=o.getUint32(a,!0),a+=4),16&i&&(s=o.getUint32(a,!0),a+=4),e[1]){case 0:break;case 2:case 10:n={t:"n",v:l};break;case 3:n={t:"s",v:t[c]};break;case 5:n={t:"d",v:f};break;case 6:n={t:"b",v:u>0};break;case 7:n={t:"n",v:u/86400};break;case 8:n={t:"e",v:0};break;case 9:if(!(s>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&i," : ").concat(e.slice(0,4)));n={t:"s",v:r[s]};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&i," : ").concat(e.slice(0,4)))}return n}function Ju(e,t){var r=new Uint8Array(32),n=Iu(r),o=12,i=0;switch(r[0]=5,e.t){case"n":r[1]=2,function(e,t,r){var n=Math.floor(0==r?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,o=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(127&n)<<1;for(var i=0;o>=1;++i,o/=256)e[t+i]=255&o;e[t+15]|=r>=0?0:128}(r,o,e.v),i|=1,o+=16;break;case"b":r[1]=6,n.setFloat64(o,e.v?1:0,!0),i|=2,o+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(o,t.indexOf(e.v),!0),i|=8,o+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,i,!0),r.slice(0,o)}function Zu(e,t){var r=new Uint8Array(32),n=Iu(r),o=12,i=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(o,e.v,!0),i|=32,o+=8;break;case"b":r[2]=6,n.setFloat64(o,e.v?1:0,!0),i|=32,o+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(o,t.indexOf(e.v),!0),i|=16,o+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,i,!0),r.slice(0,o)}function Qu(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return function(e,t,r,n){var o,i=Iu(e),a=i.getUint32(4,!0),s=(n>1?12:8)+4*Mu(a&(n>1?3470:398)),c=-1,l=-1,u=NaN,f=new Date(2001,0,1);switch(512&a&&(c=i.getUint32(s,!0),s+=4),s+=4*Mu(a&(n>1?12288:4096)),16&a&&(l=i.getUint32(s,!0),s+=4),32&a&&(u=i.getFloat64(s,!0),s+=8),64&a&&(f.setTime(f.getTime()+1e3*i.getFloat64(s,!0)),s+=8),e[2]){case 0:break;case 2:o={t:"n",v:u};break;case 3:o={t:"s",v:t[l]};break;case 5:o={t:"d",v:f};break;case 6:o={t:"b",v:u>0};break;case 7:o={t:"n",v:u/86400};break;case 8:o={t:"e",v:0};break;case 9:if(c>-1)o={t:"s",v:r[c]};else if(l>-1)o={t:"s",v:t[l]};else{if(isNaN(u))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));o={t:"n",v:u}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return o}(e,t,r,e[0]);case 5:return Ku(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function ef(e){return Bu(Hu(e)[1][0].data)}function tf(e,t){var r=Hu(t.data),n=Uu(r[1][0].data),o=r[3],i=[];return(o||[]).forEach((function(t){var r=Hu(t.data),o=Uu(r[1][0].data)>>>0;switch(n){case 1:i[o]=Fu(r[3][0].data);break;case 8:var a=Hu(e[ef(r[9][0].data)][0].data),s=e[ef(a[1][0].data)][0],c=Uu(s.meta[1][0].data);if(2001!=c)throw new Error("2000 unexpected reference to ".concat(c));var l=Hu(s.data);i[o]=l[3].map((function(e){return Fu(e.data)})).join("")}})),i}function rf(e,t){var r,n=Hu(t.data),o=(null==(r=null==n?void 0:n[7])?void 0:r[0])?Uu(n[7][0].data)>>>0>0?1:0:-1,i=Vu(n[5],(function(e){return function(e,t){var r,n,o,i,a,s,c,l,u,f,h,d,p,g,m,v,b=Hu(e),y=Uu(b[1][0].data)>>>0,w=Uu(b[2][0].data)>>>0,S=(null==(n=null==(r=b[8])?void 0:r[0])?void 0:n.data)&&Uu(b[8][0].data)>0||!1;if((null==(i=null==(o=b[7])?void 0:o[0])?void 0:i.data)&&0!=t)m=null==(s=null==(a=b[7])?void 0:a[0])?void 0:s.data,v=null==(l=null==(c=b[6])?void 0:c[0])?void 0:l.data;else{if(!(null==(f=null==(u=b[4])?void 0:u[0])?void 0:f.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");m=null==(d=null==(h=b[4])?void 0:h[0])?void 0:d.data,v=null==(g=null==(p=b[3])?void 0:p[0])?void 0:g.data}for(var x=S?4:1,A=Iu(m),k=[],T=0;T<m.length/2;++T){var E=A.getUint16(2*T,!0);E<65535&&k.push([T,E])}if(k.length!=w)throw"Expected ".concat(w," cells, found ").concat(k.length);var _=[];for(T=0;T<k.length-1;++T)_[k[T][0]]=v.subarray(k[T][1]*x,k[T+1][1]*x);return k.length>=1&&(_[k[k.length-1][0]]=v.subarray(k[k.length-1][1]*x)),{R:y,cells:_}}(e,o)}));return{nrows:Uu(n[4][0].data)>>>0,data:i.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(r,n){if(e[t.R][n])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(n));e[t.R][n]=r})),e}),[])}}function nf(e,t){var r={"!ref":"A1"},n=e[ef(Hu(t.data)[2][0].data)],o=Uu(n[0].meta[1][0].data);if(6001!=o)throw new Error("6000 unexpected reference to ".concat(o));return function(e,t,r){var n,o=Hu(t.data),i={s:{r:0,c:0},e:{r:0,c:0}};if(i.e.r=(Uu(o[6][0].data)>>>0)-1,i.e.r<0)throw new Error("Invalid row varint ".concat(o[6][0].data));if(i.e.c=(Uu(o[7][0].data)>>>0)-1,i.e.c<0)throw new Error("Invalid col varint ".concat(o[7][0].data));r["!ref"]=cn(i);var a=Hu(o[4][0].data),s=tf(e,e[ef(a[4][0].data)][0]),c=(null==(n=a[17])?void 0:n[0])?tf(e,e[ef(a[17][0].data)][0]):[],l=Hu(a[3][0].data),u=0;l[1].forEach((function(t){var n=Hu(t.data),o=e[ef(n[2][0].data)][0],i=Uu(o.meta[1][0].data);if(6002!=i)throw new Error("6001 unexpected reference to ".concat(i));var a=rf(0,o);a.data.forEach((function(e,t){e.forEach((function(e,n){var o=an({r:u+t,c:n}),i=Qu(e,s,c);i&&(r[o]=i)}))})),u+=a.nrows}))}(e,n[0],r),r}function of(e,t){var r={SheetNames:[],Sheets:{}};if(Vu(Hu(t.data)[1],ef).forEach((function(t){e[t].forEach((function(t){if(2==Uu(t.meta[1][0].data)){var n=function(e,t){var r,n=Hu(t.data),o={name:(null==(r=n[1])?void 0:r[0])?Fu(n[1][0].data):"",sheets:[]};return Vu(n[2],ef).forEach((function(t){e[t].forEach((function(t){6e3==Uu(t.meta[1][0].data)&&o.sheets.push(nf(e,t))}))})),o}(e,t);n.sheets.forEach((function(e,t){Uf(r,e,0==t?n.name:n.name+"_"+t,!0)}))}}))})),0==r.SheetNames.length)throw new Error("Empty NUMBERS file");return r}function af(e){var t,r,n,o,i={},a=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)){var t,r;try{t=Xu(e.content)}catch(t){return console.log("?? "+e.content.length+" "+(t.message||t))}try{r=qu(t)}catch(e){return console.log("## "+(e.message||e))}r.forEach((function(e){i[e.id]=e.messages,a.push(e.id)}))}})),!a.length)throw new Error("File has no messages");var s=(null==(o=null==(n=null==(r=null==(t=null==i?void 0:i[1])?void 0:t[0])?void 0:r.meta)?void 0:n[1])?void 0:o[0].data)&&1==Uu(i[1][0].meta[1][0].data)&&i[1][0];if(s||a.forEach((function(e){i[e].forEach((function(e){if(1==Uu(e.meta[1][0].data)>>>0){if(s)throw new Error("Document has multiple roots");s=e}}))})),!s)throw new Error("Cannot find Document root");return of(i,s)}function sf(e,t,r){var n,o,i,a;if(!(null==(n=e[6])?void 0:n[0])||!(null==(o=e[7])?void 0:o[0]))throw"Mutation only works on post-BNC storages!";if((null==(a=null==(i=e[8])?void 0:i[0])?void 0:a.data)&&Uu(e[8][0].data)>0||!1)throw"Math only works with normal offsets";for(var s=0,c=Iu(e[7][0].data),l=0,u=[],f=Iu(e[4][0].data),h=0,d=[],p=0;p<t.length;++p)if(null!=t[p]){var g,m;switch(c.setUint16(2*p,l,!0),f.setUint16(2*p,h,!0),typeof t[p]){case"string":g=Ju({t:"s",v:t[p]},r),m=Zu({t:"s",v:t[p]},r);break;case"number":g=Ju({t:"n",v:t[p]},r),m=Zu({t:"n",v:t[p]},r);break;case"boolean":g=Ju({t:"b",v:t[p]},r),m=Zu({t:"b",v:t[p]},r);break;default:throw new Error("Unsupported value "+t[p])}u.push(g),l+=g.length,d.push(m),h+=m.length,++s}else c.setUint16(2*p,65535,!0),f.setUint16(2*p,65535);for(e[2][0].data=Wu(s);p<e[7][0].data.length/2;++p)c.setUint16(2*p,65535,!0),f.setUint16(2*p,65535,!0);return e[6][0].data=Du(u),e[3][0].data=Du(d),s}function cf(e){return function(t){for(var r=0;r!=e.length;++r){var n=e[r];void 0===t[n[0]]&&(t[n[0]]=n[1]),"n"===n[2]&&(t[n[0]]=Number(t[n[0]]))}}}function lf(e){cf([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function uf(e){cf([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function ff(e){return to.WS.indexOf(e)>-1?"sheet":to.CS&&e==to.CS?"chart":to.DS&&e==to.DS?"dialog":to.MS&&e==to.MS?"macro":e&&e.length?e:"sheet"}function hf(e,t,r,n,o,i,a,s,c,l,u,f){try{i[n]=no(tt(e,r,!0),t);var h,d=et(e,t);switch(s){case"sheet":h=wl(d,t,o,c,i[n],l,u,f);break;case"chart":if(!(h=Sl(d,t,o,c,i[n],l))||!h["!drawel"])break;var p=st(h["!drawel"].Target,t),g=ro(p),m=function(e,t){if(!e)return"??";var r=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}(tt(e,p,!0),no(tt(e,g,!0),p)),v=st(m,p),b=ro(v);h=tl(tt(e,v,!0),0,0,no(tt(e,b,!0),v),0,h);break;case"macro":h=function(e,t,r,n,o,i,a,s){return t.slice(-4),{"!type":"macro"}}(0,t,0,0,i[n]);break;case"dialog":h=function(e,t,r,n,o,i,a,s){return t.slice(-4),{"!type":"dialog"}}(0,t,0,0,i[n]);break;default:throw new Error("Unrecognized sheet type "+s)}a[n]=h;var y=[];i&&i[n]&&Oe(i[n]).forEach((function(r){var o="";if(i[n][r].Type==to.CMNT){o=st(i[n][r].Target,t);var a=kl(et(e,o,!0),o,c);if(!a||!a.length)return;ds(h,a,!1)}i[n][r].Type==to.TCMNT&&(o=st(i[n][r].Target,t),y=y.concat(function(e,t){var r=[],n=!1,o={},i=0;return e.replace(ft,(function(a,s){var c=pt(a);switch(gt(c[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<threadedComment":o={author:c.personId,guid:c.id,ref:c.ref,T:1};break;case"</threadedComment>":null!=o.t&&r.push(o);break;case"<text>":case"<text":i=s+a.length;break;case"</text>":o.t=e.slice(i,s).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"<mentions":case"<mentions>":case"<ext":n=!0;break;case"</mentions>":case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+c[0]+" in threaded comments")}return a})),r}(et(e,o,!0),c)))})),y&&y.length&&ds(h,y,!0,c.people||[])}catch(e){if(c.WTF)throw e}}function df(e){return"/"==e.charAt(0)?e.slice(1):e}function pf(e,t){if(ye(),lf(t=t||{}),Ze(e,"META-INF/manifest.xml"))return Nu(e,t);if(Ze(e,"objectdata.xml"))return Nu(e,t);if(Ze(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if(void 0!==af){if(e.FileIndex)return af(e);var r=Te.utils.cfb_new();return nt(e).forEach((function(t){ot(r,t,rt(e,t))})),af(r)}throw new Error("Unsupported NUMBERS file")}if(!Ze(e,"[Content_Types].xml")){if(Ze(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(Ze(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var n,o,i=nt(e),a=function(e){var t={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(!e||!e.match)return t;var r={};if((e.match(ft)||[]).forEach((function(e){var n=pt(e);switch(n[0].replace(ht,"<")){case"<?xml":break;case"<Types":t.xmlns=n["xmlns"+(n[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":r[n.Extension]=n.ContentType;break;case"<Override":void 0!==t[Zn[n.ContentType]]&&t[Zn[n.ContentType]].push(n.PartName)}})),t.xmlns!==Yt)throw new Error("Unknown Namespace: "+t.xmlns);return t.calcchain=t.calcchains.length>0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}(tt(e,"[Content_Types].xml")),s=!1;if(0===a.workbooks.length&&et(e,o="xl/workbook.xml",!0)&&a.workbooks.push(o),0===a.workbooks.length){if(!et(e,o="xl/workbook.bin",!0))throw new Error("Could not find workbook");a.workbooks.push(o),s=!0}"bin"==a.workbooks[0].slice(-3)&&(s=!0);var c={},l={};if(!t.bookSheets&&!t.bookProps){if(dc=[],a.sst)try{dc=Al(et(e,df(a.sst)),a.sst,t)}catch(e){if(t.WTF)throw e}t.cellStyles&&a.themes.length&&(c=function(e,t,r){return os(e,r)}(tt(e,a.themes[0].replace(/^\//,""),!0)||"",a.themes[0],t)),a.style&&(l=xl(et(e,df(a.style)),a.style,c,t))}a.links.map((function(r){try{no(tt(e,ro(df(r))),r);return El(et(e,df(r)),0,r,t)}catch(e){}}));var u=yl(et(e,df(a.workbooks[0])),a.workbooks[0],t),f={},h="";a.coreprops.length&&((h=et(e,df(a.coreprops[0]),!0))&&(f=fo(h)),0!==a.extprops.length&&(h=et(e,df(a.extprops[0]),!0))&&function(e,t,r){var n={};t||(t={}),e=Rt(e),go.forEach((function(r){var o=(e.match(Lt(r[0]))||[])[1];switch(r[2]){case"string":o&&(t[r[1]]=bt(o));break;case"bool":t[r[1]]="true"===o;break;case"raw":var i=e.match(new RegExp("<"+r[0]+"[^>]*>([\\s\\S]*?)</"+r[0]+">"));i&&i.length>0&&(n[r[1]]=i[1])}})),n.HeadingPairs&&n.TitlesOfParts&&vo(n.HeadingPairs,n.TitlesOfParts,t,r)}(h,f,t));var d={};t.bookSheets&&!t.bookProps||0!==a.custprops.length&&(h=tt(e,df(a.custprops[0]),!0))&&(d=function(e,t){var r={},n="",o=e.match(yo);if(o)for(var i=0;i!=o.length;++i){var a=o[i],s=pt(a);switch(s[0]){case"<?xml":case"<Properties":break;case"<property":n=bt(s.name);break;case"</property>":n=null;break;default:if(0===a.indexOf("<vt:")){var c=a.split(">"),l=c[0].slice(4),u=c[1];switch(l){case"lpstr":case"bstr":case"lpwstr":case"cy":case"error":r[n]=bt(u);break;case"bool":r[n]=Et(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[n]=parseInt(u,10);break;case"r4":case"r8":case"decimal":r[n]=parseFloat(u);break;case"filetime":case"date":r[n]=He(u);break;default:if("/"==l.slice(-1))break;t.WTF&&"undefined"!=typeof console&&console.warn("Unexpected",a,l,c)}}else if("</"===a.slice(0,2));else if(t.WTF)throw new Error(a)}}return r}(h,t));var p={};if((t.bookSheets||t.bookProps)&&(u.Sheets?n=u.Sheets.map((function(e){return e.name})):f.Worksheets&&f.SheetNames.length>0&&(n=f.SheetNames),t.bookProps&&(p.Props=f,p.Custprops=d),t.bookSheets&&void 0!==n&&(p.SheetNames=n),t.bookSheets?p.SheetNames:t.bookProps))return p;n={};var g={};t.bookDeps&&a.calcchain&&(g=Tl(et(e,df(a.calcchain)),a.calcchain));var m,v,b=0,y={},w=u.Sheets;f.Worksheets=w.length,f.SheetNames=[];for(var S=0;S!=w.length;++S)f.SheetNames[S]=w[S].name;var x=s?"bin":"xml",A=a.workbooks[0].lastIndexOf("/"),k=(a.workbooks[0].slice(0,A+1)+"_rels/"+a.workbooks[0].slice(A+1)+".rels").replace(/^\//,"");Ze(e,k)||(k="xl/_rels/workbook."+x+".rels");var T=no(tt(e,k,!0),k.replace(/_rels.*/,"s5s"));(a.metadata||[]).length>=1&&(t.xlmeta=_l(et(e,df(a.metadata[0])),a.metadata[0],t)),(a.people||[]).length>=1&&(t.people=function(e,t){var r=[],n=!1;return e.replace(ft,(function(e){var o=pt(e);switch(gt(o[0])){case"<?xml":case"<personList":case"</personList>":case"</person>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<person":r.push({name:o.displayname,id:o.id});break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return e})),r}(et(e,df(a.people[0])),t)),T&&(T=function(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,ff(e["!id"][t.id].Type)]}))}catch(e){return null}return e&&0!==e.length?e:null}(T,u.Sheets));var E=et(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(b=0;b!=f.Worksheets;++b){var _="sheet";if(T&&T[b]?(m="xl/"+T[b][1].replace(/[\/]?xl\//,""),Ze(e,m)||(m=T[b][1]),Ze(e,m)||(m=k.replace(/_rels\/.*$/,"")+T[b][1]),_=T[b][2]):m=(m="xl/worksheets/sheet"+(b+1-E)+"."+x).replace(/sheet0\./,"sheet."),v=m.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(b!=t.sheets)continue e;break;case"string":if(f.SheetNames[b].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var O=!1,N=0;N!=t.sheets.length;++N)"number"==typeof t.sheets[N]&&t.sheets[N]==b&&(O=1),"string"==typeof t.sheets[N]&&t.sheets[N].toLowerCase()==f.SheetNames[b].toLowerCase()&&(O=1);if(!O)continue e}}hf(e,m,v,f.SheetNames[b],b,y,n,_,t,u,c,l)}return p={Directory:a,Workbook:u,Props:f,Custprops:d,Deps:g,Sheets:n,SheetNames:f.SheetNames,Strings:dc,Styles:l,Themes:c,SSF:Ve(D)},t&&t.bookFiles&&(e.files?(p.keys=i,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach((function(t,r){t=t.replace(/^Root Entry[\/]/,""),p.keys.push(t),p.files[t]=e.FileIndex[r]})))),t&&t.bookVBA&&(a.vba.length>0?p.vbaraw=et(e,df(a.vba[0]),!0):a.defaults&&"application/vnd.ms-office.vbaProject"===a.defaults.bin&&(p.vbaraw=et(e,"xl/vbaProject.bin",!0))),p}function gf(e,t){var r=t||{},n="Workbook",o=Te.find(e,n);try{if(n="/!DataSpaces/Version",!(o=Te.find(e,n))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(function(e){var t={};t.id=e._R(0,"lpp4"),t.R=sa(e,4),t.U=sa(e,4),t.W=sa(e,4)}(o.content),n="/!DataSpaces/DataSpaceMap",!(o=Te.find(e,n))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+n);var i=function(e){var t=[];e.l+=4;for(var r=e._R(4);r-- >0;)t.push(ca(e));return t}(o.content);if(1!==i.length||1!==i[0].comps.length||0!==i[0].comps[0].t||"StrongEncryptionDataSpace"!==i[0].name||"EncryptedPackage"!==i[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(o=Te.find(e,n))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+n);var a=function(e){var t=[];e.l+=4;for(var r=e._R(4);r-- >0;)t.push(e._R(0,"lpp4"));return t}(o.content);if(1!=a.length||"StrongEncryptionTransform"!=a[0])throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(o=Te.find(e,n))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+n);la(o.content)}catch(e){}if(n="/EncryptionInfo",!(o=Te.find(e,n))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=function(e){var t=sa(e);switch(t.Minor){case 2:return[t.Minor,ha(e)];case 3:return[t.Minor,da()];case 4:return[t.Minor,pa(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}(o.content);if(n="/EncryptedPackage",!(o=Te.find(e,n))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(4==s[0]&&"undefined"!=typeof decrypt_agile)return decrypt_agile(s[1],o.content,r.password||"",r);if(2==s[0]&&"undefined"!=typeof decrypt_std76)return decrypt_std76(s[1],o.content,r.password||"",r);throw new Error("File is password-protected")}function mf(e,t){return"ods"==t.bookType?Lu(e,t):"numbers"==t.bookType?function(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=sn(r["!ref"]);n.s.r=n.s.c=0;var o=!1;n.e.c>9&&(o=!0,n.e.c=9),n.e.r>49&&(o=!0,n.e.r=49),o&&console.error("The Numbers writer is currently limited to ".concat(cn(n)));var i=Lf(r,{range:n,header:1}),a=["~Sh33tJ5~"];i.forEach((function(e){return e.forEach((function(e){"string"==typeof e&&a.push(e)}))}));var s={},c=[],l=Te.read(t.numbers,{type:"base64"});l.FileIndex.map((function(e,t){return[e,l.FullPaths[t]]})).forEach((function(e){var t=e[0],r=e[1];2==t.type&&t.name.match(/\.iwa/)&&qu(Xu(t.content)).forEach((function(e){c.push(e.id),s[e.id]={deps:[],location:r,type:Uu(e.messages[0].meta[1][0].data)}}))})),c.sort((function(e,t){return e-t}));var u=c.filter((function(e){return e>1})).map((function(e){return[e,Wu(e)]}));l.FileIndex.map((function(e,t){return[e,l.FullPaths[t]]})).forEach((function(e){var t=e[0];e[1],t.name.match(/\.iwa/)&&qu(Xu(t.content)).forEach((function(e){e.messages.forEach((function(t){u.forEach((function(t){e.messages.some((function(e){return 11006!=Uu(e.meta[1][0].data)&&function(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}(e.data,t[1])}))&&s[t[0]].deps.push(e.id)}))}))}))}));for(var f,h=Te.find(l,s[1].location),d=qu(Xu(h.content)),p=0;p<d.length;++p){var g=d[p];1==g.id&&(f=g)}var m=ef(Hu(f.messages[0].data)[1][0].data);for(d=qu(Xu((h=Te.find(l,s[m].location)).content)),p=0;p<d.length;++p)(g=d[p]).id==m&&(f=g);for(m=ef(Hu(f.messages[0].data)[2][0].data),d=qu(Xu((h=Te.find(l,s[m].location)).content)),p=0;p<d.length;++p)(g=d[p]).id==m&&(f=g);for(m=ef(Hu(f.messages[0].data)[2][0].data),d=qu(Xu((h=Te.find(l,s[m].location)).content)),p=0;p<d.length;++p)(g=d[p]).id==m&&(f=g);var v=Hu(f.messages[0].data);v[6][0].data=Wu(n.e.r+1),v[7][0].data=Wu(n.e.c+1);for(var b=ef(v[46][0].data),y=Te.find(l,s[b].location),w=qu(Xu(y.content)),S=0;S<w.length&&w[S].id!=b;++S);if(w[S].id!=b)throw"Bad ColumnRowUIDMapArchive";var x=Hu(w[S].messages[0].data);x[1]=[],x[2]=[],x[3]=[];for(var A=0;A<=n.e.c;++A){var k=[];k[1]=k[2]=[{type:0,data:Wu(A+420690)}],x[1].push({type:2,data:zu(k)}),x[2].push({type:0,data:Wu(A)}),x[3].push({type:0,data:Wu(A)})}x[4]=[],x[5]=[],x[6]=[];for(var T=0;T<=n.e.r;++T)(k=[])[1]=k[2]=[{type:0,data:Wu(T+726270)}],x[4].push({type:2,data:zu(k)}),x[5].push({type:0,data:Wu(T)}),x[6].push({type:0,data:Wu(T)});w[S].messages[0].data=zu(x),y.content=Yu($u(w)),y.size=y.content.length,delete v[46];var E=Hu(v[4][0].data);E[7][0].data=Wu(n.e.r+1);var _=ef(Hu(E[1][0].data)[2][0].data);if((w=qu(Xu((y=Te.find(l,s[_].location)).content)))[0].id!=_)throw"Bad HeaderStorageBucket";var O=Hu(w[0].messages[0].data);for(T=0;T<i.length;++T){var N=Hu(O[2][0].data);N[1][0].data=Wu(T),N[4][0].data=Wu(i[T].length),O[2][T]={type:O[2][0].type,data:zu(N)}}w[0].messages[0].data=zu(O),y.content=Yu($u(w)),y.size=y.content.length;var C=ef(E[2][0].data);if((w=qu(Xu((y=Te.find(l,s[C].location)).content)))[0].id!=C)throw"Bad HeaderStorageBucket";for(O=Hu(w[0].messages[0].data),A=0;A<=n.e.c;++A)(N=Hu(O[2][0].data))[1][0].data=Wu(A),N[4][0].data=Wu(n.e.r+1),O[2][A]={type:O[2][0].type,data:zu(N)};w[0].messages[0].data=zu(O),y.content=Yu($u(w)),y.size=y.content.length;var R=ef(E[4][0].data);!function(){for(var e,t=Te.find(l,s[R].location),r=qu(Xu(t.content)),n=0;n<r.length;++n){var o=r[n];o.id==R&&(e=o)}var i=Hu(e.messages[0].data);i[3]=[];var c=[];a.forEach((function(e,t){c[1]=[{type:0,data:Wu(t)}],c[2]=[{type:0,data:Wu(1)}],c[3]=[{type:2,data:ju(e)}],i[3].push({type:2,data:zu(c)})})),e.messages[0].data=zu(i);var u=Yu($u(r));t.content=u,t.size=t.content.length}();var P=Hu(E[3][0].data),L=P[1][0];delete P[2];var I=Hu(L.data),F=ef(I[2][0].data);!function(){for(var e,t=Te.find(l,s[F].location),r=qu(Xu(t.content)),o=0;o<r.length;++o){var c=r[o];c.id==F&&(e=c)}var u=Hu(e.messages[0].data);delete u[6],delete P[7];var f=new Uint8Array(u[5][0].data);u[5]=[];for(var h=0,d=0;d<=n.e.r;++d){var p=Hu(f);h+=sf(p,i[d],a),p[1][0].data=Wu(d),u[5].push({data:zu(p),type:2})}u[1]=[{type:0,data:Wu(n.e.c+1)}],u[2]=[{type:0,data:Wu(n.e.r+1)}],u[3]=[{type:0,data:Wu(h)}],u[4]=[{type:0,data:Wu(n.e.r+1)}],e.messages[0].data=zu(u);var g=Yu($u(r));t.content=g,t.size=t.content.length}(),L.data=zu(I),E[3][0].data=zu(P),v[4][0].data=zu(E),f.messages[0].data=zu(v);var j=Yu($u(d));return h.content=j,h.size=h.content.length,l}(e,t):"xlsb"==t.bookType?function(e,t){fs=1024,e&&!e.SSF&&(e.SSF=Ve(D));e&&e.SSF&&(ye(),be(e.SSF),t.revssf=Re(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF);t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,gc?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xlsb"==t.bookType?"bin":"xml",n=bs.indexOf(t.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};uf(t=t||{});var i=it(),a="",s=0;t.cellXfs=[],yc(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});if(ot(i,a="docProps/core.xml",po(e.Props,t)),o.coreprops.push(a),io(t.rels,2,a,to.CORE_PROPS),a="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var c=[],l=0;l<e.SheetNames.length;++l)2!=(e.Workbook.Sheets[l]||{}).Hidden&&c.push(e.SheetNames[l]);e.Props.SheetNames=c}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,ot(i,a,bo(e.Props)),o.extprops.push(a),io(t.rels,3,a,to.EXT_PROPS),e.Custprops!==e.Props&&Oe(e.Custprops||{}).length>0&&(ot(i,a="docProps/custom.xml",wo(e.Custprops)),o.custprops.push(a),io(t.rels,4,a,to.CUST_PROPS));for(s=1;s<=e.SheetNames.length;++s){var u={"!id":{}},f=e.Sheets[e.SheetNames[s-1]];(f||{})["!type"];if(ot(i,a="xl/worksheets/sheet"+s+"."+r,Ol(s-1,a,t,e,u)),o.sheets.push(a),io(t.wbrels,-1,"worksheets/sheet"+s+"."+r,to.WS[0]),f){var h=f["!comments"],d=!1,p="";h&&h.length>0&&(ot(i,p="xl/comments"+s+"."+r,Nl(h,p,t)),o.comments.push(p),io(u,-1,"../comments"+s+"."+r,to.CMNT),d=!0),f["!legacy"]&&d&&ot(i,"xl/drawings/vmlDrawing"+s+".vml",hs(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}u["!id"].rId1&&ot(i,ro(a),oo(u))}null!=t.Strings&&t.Strings.length>0&&(ot(i,a="xl/sharedStrings."+r,function(e,t,r){return(".bin"===t.slice(-4)?ia:na)(e,r)}(t.Strings,a,t)),o.strs.push(a),io(t.wbrels,-1,"sharedStrings."+r,to.SST));ot(i,a="xl/workbook."+r,function(e,t,r){return(".bin"===t.slice(-4)?bl:dl)(e,r)}(e,a,t)),o.workbooks.push(a),io(t.rels,1,a,to.WB),ot(i,a="xl/theme/theme1.xml",is(e.Themes,t)),o.themes.push(a),io(t.wbrels,-1,"theme/theme1.xml",to.THEME),ot(i,a="xl/styles."+r,function(e,t,r){return(".bin"===t.slice(-4)?Ya:ja)(e,r)}(e,a,t)),o.styles.push(a),io(t.wbrels,-1,"styles."+r,to.STY),e.vbaraw&&n&&(ot(i,a="xl/vbaProject.bin",e.vbaraw),o.vba.push(a),io(t.wbrels,-1,"vbaProject.bin",to.VBA));return ot(i,a="xl/metadata."+r,function(e){return(".bin"===e.slice(-4)?ls:us)()}(a)),o.metadata.push(a),io(t.wbrels,-1,"metadata."+r,to.XLMETA),ot(i,"[Content_Types].xml",eo(o,t)),ot(i,"_rels/.rels",oo(t.rels)),ot(i,"xl/_rels/workbook."+r+".rels",oo(t.wbrels)),delete t.revssf,delete t.ssf,i}(e,t):vf(e,t)}function vf(e,t){fs=1024,e&&!e.SSF&&(e.SSF=Ve(D)),e&&e.SSF&&(ye(),be(e.SSF),t.revssf=Re(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,gc?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=bs.indexOf(t.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};uf(t=t||{});var i=it(),a="",s=0;if(t.cellXfs=[],yc(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),ot(i,a="docProps/core.xml",po(e.Props,t)),o.coreprops.push(a),io(t.rels,2,a,to.CORE_PROPS),a="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var c=[],l=0;l<e.SheetNames.length;++l)2!=(e.Workbook.Sheets[l]||{}).Hidden&&c.push(e.SheetNames[l]);e.Props.SheetNames=c}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,ot(i,a,bo(e.Props)),o.extprops.push(a),io(t.rels,3,a,to.EXT_PROPS),e.Custprops!==e.Props&&Oe(e.Custprops||{}).length>0&&(ot(i,a="docProps/custom.xml",wo(e.Custprops)),o.custprops.push(a),io(t.rels,4,a,to.CUST_PROPS));var u=["SheetJ5"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var f={"!id":{}},h=e.Sheets[e.SheetNames[s-1]];(h||{})["!type"];if(ot(i,a="xl/worksheets/sheet"+s+"."+r,Bc(s-1,t,e,f)),o.sheets.push(a),io(t.wbrels,-1,"worksheets/sheet"+s+"."+r,to.WS[0]),h){var d=h["!comments"],p=!1,g="";if(d&&d.length>0){var m=!1;d.forEach((function(e){e[1].forEach((function(e){1==e.T&&(m=!0)}))})),m&&(ot(i,g="xl/threadedComments/threadedComment"+s+"."+r,gs(d,u,t)),o.threadedcomments.push(g),io(f,-1,"../threadedComments/threadedComment"+s+"."+r,to.TCMNT)),ot(i,g="xl/comments"+s+"."+r,ps(d)),o.comments.push(g),io(f,-1,"../comments"+s+"."+r,to.CMNT),p=!0}h["!legacy"]&&p&&ot(i,"xl/drawings/vmlDrawing"+s+".vml",hs(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}f["!id"].rId1&&ot(i,ro(a),oo(f))}return null!=t.Strings&&t.Strings.length>0&&(ot(i,a="xl/sharedStrings."+r,na(t.Strings,t)),o.strs.push(a),io(t.wbrels,-1,"sharedStrings."+r,to.SST)),ot(i,a="xl/workbook."+r,dl(e)),o.workbooks.push(a),io(t.rels,1,a,to.WB),ot(i,a="xl/theme/theme1.xml",is(e.Themes,t)),o.themes.push(a),io(t.wbrels,-1,"theme/theme1.xml",to.THEME),ot(i,a="xl/styles."+r,ja(e,t)),o.styles.push(a),io(t.wbrels,-1,"styles."+r,to.STY),e.vbaraw&&n&&(ot(i,a="xl/vbaProject.bin",e.vbaraw),o.vba.push(a),io(t.wbrels,-1,"vbaProject.bin",to.VBA)),ot(i,a="xl/metadata."+r,us()),o.metadata.push(a),io(t.wbrels,-1,"metadata."+r,to.XLMETA),u.length>1&&(ot(i,a="xl/persons/person.xml",function(e){var t=[ct,Ht("personList",null,{xmlns:Jt,"xmlns:x":ir[0]}).replace(/[\/]>/,">")];return e.forEach((function(e,r){t.push(Ht("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+r).slice(-12)+"}",userId:e,providerId:"None"}))})),t.push("</personList>"),t.join("")}(u)),o.people.push(a),io(t.wbrels,-1,"persons/person.xml",to.PEOPLE)),ot(i,"[Content_Types].xml",eo(o,t)),ot(i,"_rels/.rels",oo(t.rels)),ot(i,"xl/_rels/workbook.xml.rels",oo(t.wbrels)),delete t.revssf,delete t.ssf,i}function bf(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=m(e.slice(0,12));break;case"binary":r=e;break;default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function yf(e,t){var r=0;e:for(;r<e.length;)switch(e.charCodeAt(r)){case 10:case 13:case 32:++r;break;case 60:return Ul(e.slice(r),t);default:break e}return Vi.to_workbook(e,t)}function wf(e,r){var n=e;return"base64"==r.type&&(n=m(n)),n=t.utils.decode(1200,n.slice(2),"str"),r.type="binary",yf(n,r)}function Sf(e,t,r,n){return n?(r.type="string",Vi.to_workbook(e,r)):Vi.to_workbook(t,r)}function xf(e,t){c();var r=t||{};if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer)return xf(new Uint8Array(e),((r=Ve(r)).type="array",r));"undefined"!=typeof Uint8Array&&e instanceof Uint8Array&&!r.type&&(r.type="undefined"!=typeof Deno?"buffer":"array");var n,o=e,i=!1;if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),pc={},r.dateNF&&(pc.dateNF=r.dateNF),r.type||(r.type=v&&Buffer.isBuffer(e)?"buffer":"base64"),"file"==r.type&&(r.type=v?"buffer":"binary",o=function(e){if(void 0!==Ae)return Ae.readFileSync(e);if("undefined"!=typeof Deno)return Deno.readFileSync(e);if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var t=File(e);t.open("r"),t.encoding="binary";var r=t.read();return t.close(),r}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("Cannot access file "+e)}(e),"undefined"==typeof Uint8Array||v||(r.type="array")),"string"==r.type&&(i=!0,r.type="binary",r.codepage=65001,o=function(e){return e.match(/[^\x00-\x7F]/)?Pt(e):e}(e)),"array"==r.type&&"undefined"!=typeof Uint8Array&&e instanceof Uint8Array&&"undefined"!=typeof ArrayBuffer){var a=new ArrayBuffer(3),s=new Uint8Array(a);if(s.foo="bar",!s.foo)return(r=Ve(r)).type="array",xf(k(o),r)}switch((n=bf(o,r))[0]){case 208:if(207===n[1]&&17===n[2]&&224===n[3]&&161===n[4]&&177===n[5]&&26===n[6]&&225===n[7])return function(e,t){return Te.find(e,"EncryptedPackage")?gf(e,t):nu(e,t)}(Te.read(o,r),r);break;case 9:if(n[1]<=8)return nu(o,r);break;case 60:return Ul(o,r);case 73:if(73===n[1]&&42===n[2]&&0===n[3])throw new Error("TIFF Image File is not a spreadsheet");if(68===n[1])return function(e,t){var r=t||{},n=!!r.WTF;r.WTF=!0;try{var o=Ui.to_workbook(e,r);return r.WTF=n,o}catch(o){if(r.WTF=n,!o.message.match(/SYLK bad record ID/)&&n)throw o;return Vi.to_workbook(e,t)}}(o,r);break;case 84:if(65===n[1]&&66===n[2]&&76===n[3])return Hi.to_workbook(o,r);break;case 80:return 75===n[1]&&n[2]<9&&n[3]<9?function(e,t){var r=e,n=t||{};return n.type||(n.type=v&&Buffer.isBuffer(e)?"buffer":"base64"),pf(at(r,n),n)}(o,r):Sf(e,o,r,i);case 239:return 60===n[3]?Ul(o,r):Sf(e,o,r,i);case 255:if(254===n[1])return wf(o,r);if(0===n[1]&&2===n[2]&&0===n[3])return qi.to_workbook(o,r);break;case 0:if(0===n[1]){if(n[2]>=2&&0===n[3])return qi.to_workbook(o,r);if(0===n[2]&&(8===n[3]||9===n[3]))return qi.to_workbook(o,r)}break;case 3:case 131:case 139:case 140:return Wi.to_workbook(o,r);case 123:if(92===n[1]&&114===n[2]&&116===n[3])return ya.to_workbook(o,r);break;case 10:case 13:case 32:return function(e,t){var r="",n=bf(e,t);switch(t.type){case"base64":r=m(e);break;case"binary":r=e;break;case"buffer":r=e.toString("binary");break;case"array":r=ze(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==n[0]&&187==n[1]&&191==n[2]&&(r=Rt(r)),t.type="binary",yf(r,t)}(o,r);case 137:if(80===n[1]&&78===n[2]&&71===n[3])throw new Error("PNG Image File is not a spreadsheet")}return Bi.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?Wi.to_workbook(o,r):Sf(e,o,r,i)}function Af(e,t){var r=t||{};return r.type="file",xf(e,r)}function kf(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return _e(t.file,Te.write(e,{type:v?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Te.write(e,t)}function Tf(e,t){var r={},n=v?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var o=e.FullPaths?Te.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if("undefined"!=typeof Deno&&"string"==typeof o){if("binary"==t.type||"base64"==t.type)return o;o=new Uint8Array(x(o))}return t.password&&"undefined"!=typeof encrypt_agile?kf(encrypt_agile(o,t.password),t):"file"===t.type?_e(t.file,o):"string"==t.type?Rt(o):o}function Ef(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return g(Pt(n));case"binary":return Pt(n);case"string":return e;case"file":return _e(t.file,n,"utf8");case"buffer":return v?b(n,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(n):Ef(n,{type:"binary"}).split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function _f(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n<e.length;++n)r+=String.fromCharCode(e[n]);return"base64"==t.type?g(r):"string"==t.type?Rt(r):r;case"file":return _e(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function Of(e,t){c(),fl(e);var r=Ve(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),"array"==r.type){r.type="binary";var n=Of(e,r);return r.type="array",x(n)}return function(e,t){var r=Ve(t||{});return Tf(vf(e,r),r)}(e,r)}function Nf(e,t){c(),fl(e);var r=Ve(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),"array"==r.type){r.type="binary";var n=Nf(e,r);return r.type="array",x(n)}var o=0;if(r.sheet&&(o="number"==typeof r.sheet?r.sheet:e.SheetNames.indexOf(r.sheet),!e.SheetNames[o]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return Ef(Gl(e,r),r);case"slk":case"sylk":return Ef(Ui.from_sheet(e.Sheets[e.SheetNames[o]],r),r);case"htm":case"html":return Ef(xu(e.Sheets[e.SheetNames[o]],r),r);case"txt":return function(e,t){switch(t.type){case"base64":return g(e);case"binary":case"string":return e;case"file":return _e(t.file,e,"binary");case"buffer":return v?b(e,"binary"):e.split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}(Df(e.Sheets[e.SheetNames[o]],r),r);case"csv":return Ef(jf(e.Sheets[e.SheetNames[o]],r),r,"\ufeff");case"dif":return Ef(Hi.from_sheet(e.Sheets[e.SheetNames[o]],r),r);case"dbf":return _f(Wi.from_sheet(e.Sheets[e.SheetNames[o]],r),r);case"prn":return Ef(Vi.from_sheet(e.Sheets[e.SheetNames[o]],r),r);case"rtf":return Ef(ya.from_sheet(e.Sheets[e.SheetNames[o]],r),r);case"eth":return Ef(zi.from_sheet(e.Sheets[e.SheetNames[o]],r),r);case"fods":return Ef(Lu(e,r),r);case"wk1":return _f(qi.sheet_to_wk1(e.Sheets[e.SheetNames[o]],r),r);case"wk3":return _f(qi.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),_f(mu(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),function(e,t){var r=t||{};return kf(ou(e,r),r)}(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function(e,t){var r=Ve(t||{});return Tf(mf(e,r),r)}(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function Cf(e){if(!e.bookType){var t=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();t.match(/^\.[a-z]+$/)&&(e.bookType=t.slice(1)),e.bookType={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"}[e.bookType]||e.bookType}}function Rf(e,t,r){var n=r||{};return n.type="file",n.file=t,Cf(n),Nf(e,n)}function Pf(e,t,r,n,o,i,a,s){var c=tn(r),l=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),f=!0,h=1===o?[]:{};if(1!==o)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:r,enumerable:!1})}catch(e){h.__rowNum__=r}else h.__rowNum__=r;if(!a||e[r])for(var d=t.s.c;d<=t.e.c;++d){var p=a?e[r][d]:e[n[d]+c];if(void 0!==p&&void 0!==p.t){var g=p.v;switch(p.t){case"z":if(null==g)break;continue;case"e":g=0==g?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=i[d]){if(null==g)if("e"==p.t&&null===g)h[i[d]]=null;else if(void 0!==l)h[i[d]]=l;else{if(!u||null!==g)continue;h[i[d]]=null}else h[i[d]]=u&&("n"!==p.t||"n"===p.t&&!1!==s.rawNumbers)?g:fn(p,g,s);null!=g&&(f=!1)}}else{if(void 0===l)continue;null!=i[d]&&(h[i[d]]=l)}}return{row:h,isempty:f}}function Lf(e,t){if(null==e||null==e["!ref"])return[];var r={t:"n",v:0},n=0,o=1,i=[],a=0,s="",c={s:{r:0,c:0},e:{r:0,c:0}},l=t||{},u=null!=l.range?l.range:e["!ref"];switch(1===l.header?n=1:"A"===l.header?n=2:Array.isArray(l.header)?n=3:null==l.header&&(n=0),typeof u){case"string":c=ln(u);break;case"number":(c=ln(e["!ref"])).s.r=u;break;default:c=u}n>0&&(o=0);var f=tn(c.s.r),h=[],d=[],p=0,g=0,m=Array.isArray(e),v=c.s.r,b=0,y={};m&&!e[v]&&(e[v]=[]);var w=l.skipHidden&&e["!cols"]||[],S=l.skipHidden&&e["!rows"]||[];for(b=c.s.c;b<=c.e.c;++b)if(!(w[b]||{}).hidden)switch(h[b]=nn(b),r=m?e[v][b]:e[h[b]+f],n){case 1:i[b]=b-c.s.c;break;case 2:i[b]=h[b];break;case 3:i[b]=l.header[b-c.s.c];break;default:if(null==r&&(r={w:"__EMPTY",t:"s"}),s=a=fn(r,null,l),g=y[a]||0){do{s=a+"_"+g++}while(y[s]);y[a]=g,y[s]=1}else y[a]=1;i[b]=s}for(v=c.s.r+o;v<=c.e.r;++v)if(!(S[v]||{}).hidden){var x=Pf(e,c,v,h,n,i,m,l);(!1===x.isempty||(1===n?!1!==l.blankrows:l.blankrows))&&(d[p++]=x.row)}return d.length=p,d}var If=/"/g;function Ff(e,t,r,n,o,i,a,s){for(var c=!0,l=[],u="",f=tn(r),h=t.s.c;h<=t.e.c;++h)if(n[h]){var d=s.dense?(e[r]||[])[h]:e[n[h]+f];if(null==d)u="";else if(null!=d.v){c=!1,u=""+(s.rawNumbers&&"n"==d.t?d.v:fn(d,null,s));for(var p=0,g=0;p!==u.length;++p)if((g=u.charCodeAt(p))===o||g===i||34===g||s.forceQuotes){u='"'+u.replace(If,'""')+'"';break}"ID"==u&&(u='"ID"')}else null==d.f||d.F?u="":(c=!1,(u="="+d.f).indexOf(",")>=0&&(u='"'+u.replace(If,'""')+'"'));l.push(u)}return!1===s.blankrows&&c?null:l.join(a)}function jf(e,t){var r=[],n=null==t?{}:t;if(null==e||null==e["!ref"])return"";var o=ln(e["!ref"]),i=void 0!==n.FS?n.FS:",",a=i.charCodeAt(0),s=void 0!==n.RS?n.RS:"\n",c=s.charCodeAt(0),l=new RegExp(("|"==i?"\\|":i)+"+$"),u="",f=[];n.dense=Array.isArray(e);for(var h=n.skipHidden&&e["!cols"]||[],d=n.skipHidden&&e["!rows"]||[],p=o.s.c;p<=o.e.c;++p)(h[p]||{}).hidden||(f[p]=nn(p));for(var g=0,m=o.s.r;m<=o.e.r;++m)(d[m]||{}).hidden||null!=(u=Ff(e,o,m,f,a,c,i,n))&&(n.strip&&(u=u.replace(l,"")),(u||!1!==n.blankrows)&&r.push((g++?s:"")+u));return delete n.dense,r.join("")}function Df(e,r){r||(r={}),r.FS="\t",r.RS="\n";var n=jf(e,r);if(void 0===t||"string"==r.type)return n;var o=t.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+o}function Mf(e,t,r){var n,o=r||{},i=+!o.skipHeader,a=e||{},s=0,c=0;if(a&&null!=o.origin)if("number"==typeof o.origin)s=o.origin;else{var l="string"==typeof o.origin?on(o.origin):o.origin;s=l.r,c=l.c}var u={s:{c:0,r:0},e:{c:c,r:s+t.length-1+i}};if(a["!ref"]){var f=ln(a["!ref"]);u.e.c=Math.max(u.e.c,f.e.c),u.e.r=Math.max(u.e.r,f.e.r),-1==s&&(s=f.e.r+1,u.e.r=s+t.length-1+i)}else-1==s&&(s=0,u.e.r=t.length-1+i);var h=o.header||[],d=0;t.forEach((function(e,t){Oe(e).forEach((function(r){-1==(d=h.indexOf(r))&&(h[d=h.length]=r);var l=e[r],u="z",f="",p=an({c:c+d,r:s+t+i});n=Bf(a,p),!l||"object"!=typeof l||l instanceof Date?("number"==typeof l?u="n":"boolean"==typeof l?u="b":"string"==typeof l?u="s":l instanceof Date?(u="d",o.cellDates||(u="n",l=Le(l)),f=o.dateNF||D[14]):null===l&&o.nullError&&(u="e",l=0),n?(n.t=u,n.v=l,delete n.w,delete n.R,f&&(n.z=f)):a[p]=n={t:u,v:l},f&&(n.z=f)):a[p]=l}))})),u.e.c=Math.max(u.e.c,c+h.length-1);var p=tn(s);if(i)for(d=0;d<h.length;++d)a[nn(d+c)+p]={t:"s",v:h[d]};return a["!ref"]=cn(u),a}function Bf(e,t,r){if("string"==typeof t){if(Array.isArray(e)){var n=on(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return Bf(e,an("number"!=typeof t?t:{r:t,c:r||0}))}function Wf(){return{SheetNames:[],Sheets:{}}}function Uf(e,t,r,n){var o=1;if(!r)for(;o<=65535&&-1!=e.SheetNames.indexOf(r="Sheet"+o);++o,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);o=i&&+i[2]||0;var a=i&&i[1]||r;for(++o;o<=65535&&-1!=e.SheetNames.indexOf(r=a+o);++o);}if(ul(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function Hf(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}var zf,Vf={encode_col:nn,encode_row:tn,encode_cell:an,encode_range:cn,decode_col:rn,decode_row:en,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:on,decode_range:sn,format_cell:fn,sheet_add_aoa:dn,sheet_add_json:Mf,sheet_add_dom:Au,aoa_to_sheet:pn,json_to_sheet:function(e,t){return Mf(null,e,t)},table_to_sheet:ku,table_to_book:function(e,t){return hn(ku(e,t),t)},sheet_to_csv:jf,sheet_to_txt:Df,sheet_to_json:Lf,sheet_to_html:xu,sheet_to_formulae:function(e){var t,r="",n="";if(null==e||null==e["!ref"])return[];var o,i=ln(e["!ref"]),a="",s=[],c=[],l=Array.isArray(e);for(o=i.s.c;o<=i.e.c;++o)s[o]=nn(o);for(var u=i.s.r;u<=i.e.r;++u)for(a=tn(u),o=i.s.c;o<=i.e.c;++o)if(r=s[o]+a,n="",void 0!==(t=l?(e[u]||[])[o]:e[r])){if(null!=t.F){if(r=t.F,!t.f)continue;n=t.f,-1==r.indexOf(":")&&(r=r+":"+r)}if(null!=t.f)n=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)n=""+t.v;else if("b"==t.t)n=t.v?"TRUE":"FALSE";else if(void 0!==t.w)n="'"+t.w;else{if(void 0===t.v)continue;n="s"==t.t?"'"+t.v:""+t.v}}c[c.length]=r+"="+n}return c},sheet_to_row_object_array:Lf,sheet_get_cell:Bf,book_new:Wf,book_append_sheet:Uf,book_set_sheet_visibility:function(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=function(e,t){if("number"==typeof t){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:Hf,cell_set_internal_link:function(e,t,r){return Hf(e,"#"+t,r)},cell_add_comment:function(e,t,r){e.c||(e.c=[]),e.c.push({t:t,a:r||"SheetJS"})},sheet_set_array_formula:function(e,t,r,n){for(var o="string"!=typeof t?t:ln(t),i="string"==typeof t?t:cn(t),a=o.s.r;a<=o.e.r;++a)for(var s=o.s.c;s<=o.e.c;++s){var c=Bf(e,a,s);c.t="n",c.F=i,delete c.v,a==o.s.r&&s==o.s.c&&(c.f=r,n&&(c.D=!0))}return e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function qf(e){zf=e}var $f={to_json:function(e,t){var r=zf({objectMode:!0});if(null==e||null==e["!ref"])return r.push(null),r;var n={t:"n",v:0},o=0,i=1,a=[],s=0,c="",l={s:{r:0,c:0},e:{r:0,c:0}},u=t||{},f=null!=u.range?u.range:e["!ref"];switch(1===u.header?o=1:"A"===u.header?o=2:Array.isArray(u.header)&&(o=3),typeof f){case"string":l=ln(f);break;case"number":(l=ln(e["!ref"])).s.r=f;break;default:l=f}o>0&&(i=0);var h=tn(l.s.r),d=[],p=0,g=Array.isArray(e),m=l.s.r,v=0,b={};g&&!e[m]&&(e[m]=[]);var y=u.skipHidden&&e["!cols"]||[],w=u.skipHidden&&e["!rows"]||[];for(v=l.s.c;v<=l.e.c;++v)if(!(y[v]||{}).hidden)switch(d[v]=nn(v),n=g?e[m][v]:e[d[v]+h],o){case 1:a[v]=v-l.s.c;break;case 2:a[v]=d[v];break;case 3:a[v]=u.header[v-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),c=s=fn(n,null,u),p=b[s]||0){do{c=s+"_"+p++}while(b[c]);b[s]=p,b[c]=1}else b[s]=1;a[v]=c}return m=l.s.r+i,r._read=function(){for(;m<=l.e.r;)if(!(w[m-1]||{}).hidden){var t=Pf(e,l,m,d,o,a,g,u);if(++m,!1===t.isempty||(1===o?!1!==u.blankrows:u.blankrows))return void r.push(t.row)}return r.push(null)},r},to_html:function(e,t){var r=zf(),n=t||{},o=null!=n.header?n.header:yu,i=null!=n.footer?n.footer:wu;r.push(o);var a=sn(e["!ref"]);n.dense=Array.isArray(e),r.push(Su(0,0,n));var s=a.s.r,c=!1;return r._read=function(){if(s>a.e.r)return c||(c=!0,r.push("</table>"+i)),r.push(null);for(;s<=a.e.r;){r.push(bu(e,a,s,n)),++s;break}},r},to_csv:function(e,t){var r=zf(),n=null==t?{}:t;if(null==e||null==e["!ref"])return r.push(null),r;var o=ln(e["!ref"]),i=void 0!==n.FS?n.FS:",",a=i.charCodeAt(0),s=void 0!==n.RS?n.RS:"\n",c=s.charCodeAt(0),l=new RegExp(("|"==i?"\\|":i)+"+$"),u="",f=[];n.dense=Array.isArray(e);for(var h=n.skipHidden&&e["!cols"]||[],d=n.skipHidden&&e["!rows"]||[],p=o.s.c;p<=o.e.c;++p)(h[p]||{}).hidden||(f[p]=nn(p));var g=o.s.r,m=!1,v=0;return r._read=function(){if(!m)return m=!0,r.push("\ufeff");for(;g<=o.e.r;)if(++g,!(d[g-1]||{}).hidden&&null!=(u=Ff(e,o,g-1,f,a,c,i,n))&&(n.strip&&(u=u.replace(l,"")),u||!1!==n.blankrows))return r.push((v++?s:"")+u);return r.push(null)},r},set_readable:qf};if(void 0!==nu&&(e.parse_xlscfb=nu),e.parse_zip=pf,e.read=xf,e.readFile=Af,e.readFileSync=Af,e.write=Nf,e.writeFile=Rf,e.writeFileSync=Rf,e.writeFileAsync=function(e,t,r,n){var o=r||{};o.type="file",o.file=e,Cf(o),o.type="buffer";var i=n;return i instanceof Function||(i=r),Ae.writeFile(e,Nf(t,o),i)},e.utils=Vf,e.writeXLSX=Of,e.writeFileXLSX=function(e,t,r){var n=r||{};return n.type="file",n.file=t,Cf(n),Of(e,n)},e.SSF=we,void 0!==$f&&(e.stream=$f),void 0!==Te&&(e.CFB=Te),"undefined"!=typeof require){var Gf=void 0;({}).Readable&&qf(Gf.Readable)}}if("undefined"!=typeof exports?make_xlsx_lib(exports):"undefined"!=typeof module&&module.exports?make_xlsx_lib(module.exports):"function"==typeof define&&define.amd?define("xlsx",(function(){return XLSX.version||make_xlsx_lib(XLSX),XLSX})):make_xlsx_lib(XLSX),"undefined"!=typeof window&&!window.XLSX)try{window.XLSX=XLSX}catch(e){}!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jQuery)}(this,(function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),n)}var o,i}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=n(e);if(t){var a=n(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return i(this,r)}}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=s(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(this,arguments)}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},u=function(e){return e&&e.Math==Math&&e},f=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof l&&l)||function(){return this}()||Function("return this")(),h={},d=function(e){try{return!!e()}catch(e){return!0}},p=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),g=!d((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),m=g,v=Function.prototype.call,b=m?v.bind(v):function(){return v.apply(v,arguments)},y={},w={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,x=S&&!w.call({1:2},1);y.f=x?function(e){var t=S(this,e);return!!t&&t.enumerable}:w;var A,k,T=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},E=g,_=Function.prototype,O=_.call,N=E&&_.bind.bind(O,O),C=E?N:function(e){return function(){return O.apply(e,arguments)}},R=C,P=R({}.toString),L=R("".slice),I=function(e){return L(P(e),8,-1)},F=d,j=I,D=Object,M=C("".split),B=F((function(){return!D("z").propertyIsEnumerable(0)}))?function(e){return"String"==j(e)?M(e,""):D(e)}:D,W=function(e){return null==e},U=W,H=TypeError,z=function(e){if(U(e))throw H("Can't call method on "+e);return e},V=B,q=z,$=function(e){return V(q(e))},G="object"==typeof document&&document.all,X={all:G,IS_HTMLDDA:void 0===G&&void 0!==G},Y=X.all,K=X.IS_HTMLDDA?function(e){return"function"==typeof e||e===Y}:function(e){return"function"==typeof e},J=K,Z=X.all,Q=X.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:J(e)||e===Z}:function(e){return"object"==typeof e?null!==e:J(e)},ee=f,te=K,re=function(e){return te(e)?e:void 0},ne=function(e,t){return arguments.length<2?re(ee[e]):ee[e]&&ee[e][t]},oe=C({}.isPrototypeOf),ie=f,ae="undefined"!=typeof navigator&&String(navigator.userAgent)||"",se=ie.process,ce=ie.Deno,le=se&&se.versions||ce&&ce.version,ue=le&&le.v8;ue&&(k=(A=ue.split("."))[0]>0&&A[0]<4?1:+(A[0]+A[1])),!k&&ae&&(!(A=ae.match(/Edge\/(\d+)/))||A[1]>=74)&&(A=ae.match(/Chrome\/(\d+)/))&&(k=+A[1]);var fe=k,he=fe,de=d,pe=!!Object.getOwnPropertySymbols&&!de((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&he&&he<41})),ge=pe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,me=ne,ve=K,be=oe,ye=Object,we=ge?function(e){return"symbol"==typeof e}:function(e){var t=me("Symbol");return ve(t)&&be(t.prototype,ye(e))},Se=String,xe=K,Ae=function(e){try{return Se(e)}catch(e){return"Object"}},ke=TypeError,Te=function(e){if(xe(e))return e;throw ke(Ae(e)+" is not a function")},Ee=Te,_e=W,Oe=b,Ne=K,Ce=Q,Re=TypeError,Pe={},Le={get exports(){return Pe},set exports(e){Pe=e}},Ie=f,Fe=Object.defineProperty,je=function(e,t){try{Fe(Ie,e,{value:t,configurable:!0,writable:!0})}catch(r){Ie[e]=t}return t},De=je,Me="__core-js_shared__",Be=f[Me]||De(Me,{}),We=Be;(Le.exports=function(e,t){return We[e]||(We[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ue=z,He=Object,ze=function(e){return He(Ue(e))},Ve=ze,qe=C({}.hasOwnProperty),$e=Object.hasOwn||function(e,t){return qe(Ve(e),t)},Ge=C,Xe=0,Ye=Math.random(),Ke=Ge(1..toString),Je=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ke(++Xe+Ye,36)},Ze=Pe,Qe=$e,et=Je,tt=pe,rt=ge,nt=f.Symbol,ot=Ze("wks"),it=rt?nt.for||nt:nt&&nt.withoutSetter||et,at=function(e){return Qe(ot,e)||(ot[e]=tt&&Qe(nt,e)?nt[e]:it("Symbol."+e)),ot[e]},st=b,ct=Q,lt=we,ut=function(e,t){var r=e[t];return _e(r)?void 0:Ee(r)},ft=function(e,t){var r,n;if("string"===t&&Ne(r=e.toString)&&!Ce(n=Oe(r,e)))return n;if(Ne(r=e.valueOf)&&!Ce(n=Oe(r,e)))return n;if("string"!==t&&Ne(r=e.toString)&&!Ce(n=Oe(r,e)))return n;throw Re("Can't convert object to primitive value")},ht=TypeError,dt=at("toPrimitive"),pt=function(e,t){if(!ct(e)||lt(e))return e;var r,n=ut(e,dt);if(n){if(void 0===t&&(t="default"),r=st(n,e,t),!ct(r)||lt(r))return r;throw ht("Can't convert object to primitive value")}return void 0===t&&(t="number"),ft(e,t)},gt=we,mt=function(e){var t=pt(e,"string");return gt(t)?t:t+""},vt=Q,bt=f.document,yt=vt(bt)&&vt(bt.createElement),wt=function(e){return yt?bt.createElement(e):{}},St=wt,xt=!p&&!d((function(){return 7!=Object.defineProperty(St("div"),"a",{get:function(){return 7}}).a})),At=p,kt=b,Tt=y,Et=T,_t=$,Ot=mt,Nt=$e,Ct=xt,Rt=Object.getOwnPropertyDescriptor;h.f=At?Rt:function(e,t){if(e=_t(e),t=Ot(t),Ct)try{return Rt(e,t)}catch(e){}if(Nt(e,t))return Et(!kt(Tt.f,e,t),e[t])};var Pt={},Lt=p&&d((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),It=Q,Ft=String,jt=TypeError,Dt=function(e){if(It(e))return e;throw jt(Ft(e)+" is not an object")},Mt=p,Bt=xt,Wt=Lt,Ut=Dt,Ht=mt,zt=TypeError,Vt=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,$t="enumerable",Gt="configurable",Xt="writable";Pt.f=Mt?Wt?function(e,t,r){if(Ut(e),t=Ht(t),Ut(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Xt in r&&!r.writable){var n=qt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:Gt in r?r.configurable:n.configurable,enumerable:$t in r?r.enumerable:n.enumerable,writable:!1})}return Vt(e,t,r)}:Vt:function(e,t,r){if(Ut(e),t=Ht(t),Ut(r),Bt)try{return Vt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw zt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Yt=Pt,Kt=T,Jt=p?function(e,t,r){return Yt.f(e,t,Kt(1,r))}:function(e,t,r){return e[t]=r,e},Zt={},Qt={get exports(){return Zt},set exports(e){Zt=e}},er=p,tr=$e,rr=Function.prototype,nr=er&&Object.getOwnPropertyDescriptor,or=tr(rr,"name"),ir={EXISTS:or,PROPER:or&&"something"===function(){}.name,CONFIGURABLE:or&&(!er||er&&nr(rr,"name").configurable)},ar=K,sr=Be,cr=C(Function.toString);ar(sr.inspectSource)||(sr.inspectSource=function(e){return cr(e)});var lr,ur,fr,hr=sr.inspectSource,dr=K,pr=f.WeakMap,gr=dr(pr)&&/native code/.test(String(pr)),mr=Je,vr=Pe("keys"),br=function(e){return vr[e]||(vr[e]=mr(e))},yr={},wr=gr,Sr=f,xr=Q,Ar=Jt,kr=$e,Tr=Be,Er=br,_r=yr,Or="Object already initialized",Nr=Sr.TypeError,Cr=Sr.WeakMap;if(wr||Tr.state){var Rr=Tr.state||(Tr.state=new Cr);Rr.get=Rr.get,Rr.has=Rr.has,Rr.set=Rr.set,lr=function(e,t){if(Rr.has(e))throw Nr(Or);return t.facade=e,Rr.set(e,t),t},ur=function(e){return Rr.get(e)||{}},fr=function(e){return Rr.has(e)}}else{var Pr=Er("state");_r[Pr]=!0,lr=function(e,t){if(kr(e,Pr))throw Nr(Or);return t.facade=e,Ar(e,Pr,t),t},ur=function(e){return kr(e,Pr)?e[Pr]:{}},fr=function(e){return kr(e,Pr)}}var Lr={set:lr,get:ur,has:fr,enforce:function(e){return fr(e)?ur(e):lr(e,{})},getterFor:function(e){return function(t){var r;if(!xr(t)||(r=ur(t)).type!==e)throw Nr("Incompatible receiver, "+e+" required");return r}}},Ir=C,Fr=d,jr=K,Dr=$e,Mr=p,Br=ir.CONFIGURABLE,Wr=hr,Ur=Lr.enforce,Hr=Lr.get,zr=String,Vr=Object.defineProperty,qr=Ir("".slice),$r=Ir("".replace),Gr=Ir([].join),Xr=Mr&&!Fr((function(){return 8!==Vr((function(){}),"length",{value:8}).length})),Yr=String(String).split("String"),Kr=Qt.exports=function(e,t,r){"Symbol("===qr(zr(t),0,7)&&(t="["+$r(zr(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Dr(e,"name")||Br&&e.name!==t)&&(Mr?Vr(e,"name",{value:t,configurable:!0}):e.name=t),Xr&&r&&Dr(r,"arity")&&e.length!==r.arity&&Vr(e,"length",{value:r.arity});try{r&&Dr(r,"constructor")&&r.constructor?Mr&&Vr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Ur(e);return Dr(n,"source")||(n.source=Gr(Yr,"string"==typeof t?t:"")),e};Function.prototype.toString=Kr((function(){return jr(this)&&Hr(this).source||Wr(this)}),"toString");var Jr=K,Zr=Pt,Qr=Zt,en=je,tn=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(Jr(r)&&Qr(r,i,n),n.global)o?e[t]=r:en(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Zr.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},rn={},nn=Math.ceil,on=Math.floor,an=Math.trunc||function(e){var t=+e;return(t>0?on:nn)(t)},sn=function(e){var t=+e;return t!=t||0===t?0:an(t)},cn=sn,ln=Math.max,un=Math.min,fn=sn,hn=Math.min,dn=function(e){return e>0?hn(fn(e),9007199254740991):0},pn=function(e){return dn(e.length)},gn=$,mn=function(e,t){var r=cn(e);return r<0?ln(r+t,0):un(r,t)},vn=pn,bn=function(e){return function(t,r,n){var o,i=gn(t),a=vn(i),s=mn(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},yn={includes:bn(!0),indexOf:bn(!1)},wn=$e,Sn=$,xn=yn.indexOf,An=yr,kn=C([].push),Tn=function(e,t){var r,n=Sn(e),o=0,i=[];for(r in n)!wn(An,r)&&wn(n,r)&&kn(i,r);for(;t.length>o;)wn(n,r=t[o++])&&(~xn(i,r)||kn(i,r));return i},En=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_n=Tn,On=En.concat("length","prototype");rn.f=Object.getOwnPropertyNames||function(e){return _n(e,On)};var Nn={};Nn.f=Object.getOwnPropertySymbols;var Cn=ne,Rn=rn,Pn=Nn,Ln=Dt,In=C([].concat),Fn=Cn("Reflect","ownKeys")||function(e){var t=Rn.f(Ln(e)),r=Pn.f;return r?In(t,r(e)):t},jn=$e,Dn=Fn,Mn=h,Bn=Pt,Wn=d,Un=K,Hn=/#|\.prototype\./,zn=function(e,t){var r=qn[Vn(e)];return r==Gn||r!=$n&&(Un(t)?Wn(t):!!t)},Vn=zn.normalize=function(e){return String(e).replace(Hn,".").toLowerCase()},qn=zn.data={},$n=zn.NATIVE="N",Gn=zn.POLYFILL="P",Xn=zn,Yn=f,Kn=h.f,Jn=Jt,Zn=tn,Qn=je,eo=function(e,t,r){for(var n=Dn(t),o=Bn.f,i=Mn.f,a=0;a<n.length;a++){var s=n[a];jn(e,s)||r&&jn(r,s)||o(e,s,i(t,s))}},to=Xn,ro=function(e,t){var r,n,o,i,a,s=e.target,c=e.global,l=e.stat;if(r=c?Yn:l?Yn[s]||Qn(s,{}):(Yn[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=Kn(r,n))&&a.value:r[n],!to(c?n:s+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;eo(i,o)}(e.sham||o&&o.sham)&&Jn(i,"sham",!0),Zn(r,n,i,e)}},no=Tn,oo=En,io=Object.keys||function(e){return no(e,oo)},ao=p,so=C,co=b,lo=d,uo=io,fo=Nn,ho=y,po=ze,go=B,mo=Object.assign,vo=Object.defineProperty,bo=so([].concat),yo=!mo||lo((function(){if(ao&&1!==mo({b:1},mo(vo({},"a",{enumerable:!0,get:function(){vo(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=mo({},e)[r]||uo(mo({},t)).join("")!=n}))?function(e,t){for(var r=po(e),n=arguments.length,o=1,i=fo.f,a=ho.f;n>o;)for(var s,c=go(arguments[o++]),l=i?bo(uo(c),i(c)):uo(c),u=l.length,f=0;u>f;)s=l[f++],ao&&!co(a,c,s)||(r[s]=c[s]);return r}:mo,wo=yo;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==wo},{assign:wo});var So=I,xo=Array.isArray||function(e){return"Array"==So(e)},Ao=TypeError,ko=mt,To=Pt,Eo=T,_o={};_o[at("toStringTag")]="z";var Oo="[object z]"===String(_o),No=Oo,Co=K,Ro=I,Po=at("toStringTag"),Lo=Object,Io="Arguments"==Ro(function(){return arguments}()),Fo=No?Ro:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Lo(e),Po))?r:Io?Ro(t):"Object"==(n=Ro(t))&&Co(t.callee)?"Arguments":n},jo=C,Do=d,Mo=K,Bo=Fo,Wo=hr,Uo=function(){},Ho=[],zo=ne("Reflect","construct"),Vo=/^\s*(?:class|function)\b/,qo=jo(Vo.exec),$o=!Vo.exec(Uo),Go=function(e){if(!Mo(e))return!1;try{return zo(Uo,Ho,e),!0}catch(e){return!1}},Xo=function(e){if(!Mo(e))return!1;switch(Bo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return $o||!!qo(Vo,Wo(e))}catch(e){return!0}};Xo.sham=!0;var Yo=!zo||Do((function(){var e;return Go(Go.call)||!Go(Object)||!Go((function(){e=!0}))||e}))?Xo:Go,Ko=xo,Jo=Yo,Zo=Q,Qo=at("species"),ei=Array,ti=function(e){var t;return Ko(e)&&(t=e.constructor,(Jo(t)&&(t===ei||Ko(t.prototype))||Zo(t)&&null===(t=t[Qo]))&&(t=void 0)),void 0===t?ei:t},ri=function(e,t){return new(ti(e))(0===t?0:t)},ni=d,oi=fe,ii=at("species"),ai=ro,si=d,ci=xo,li=Q,ui=ze,fi=pn,hi=function(e){if(e>9007199254740991)throw Ao("Maximum allowed index exceeded");return e},di=function(e,t,r){var n=ko(t);n in e?To.f(e,n,Eo(0,r)):e[n]=r},pi=ri,gi=function(e){return oi>=51||!ni((function(){var t=[];return(t.constructor={})[ii]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},mi=fe,vi=at("isConcatSpreadable"),bi=mi>=51||!si((function(){var e=[];return e[vi]=!1,e.concat()[0]!==e})),yi=function(e){if(!li(e))return!1;var t=e[vi];return void 0!==t?!!t:ci(e)};ai({target:"Array",proto:!0,arity:1,forced:!bi||!gi("concat")},{concat:function(e){var t,r,n,o,i,a=ui(this),s=pi(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(yi(i=-1===t?a:arguments[t]))for(o=fi(i),hi(c+o),r=0;r<o;r++,c++)r in i&&di(s,c,i[r]);else hi(c+1),di(s,c++,i);return s.length=c,s}});var wi=I,Si=C,xi=function(e){if("Function"===wi(e))return Si(e)},Ai=Te,ki=g,Ti=xi(xi.bind),Ei=function(e,t){return Ai(e),void 0===t?e:ki?Ti(e,t):function(){return e.apply(t,arguments)}},_i=B,Oi=ze,Ni=pn,Ci=ri,Ri=C([].push),Pi=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,l,u,f){for(var h,d,p=Oi(c),g=_i(p),m=Ei(l,u),v=Ni(g),b=0,y=f||Ci,w=t?y(c,v):r||a?y(c,0):void 0;v>b;b++)if((s||b in g)&&(d=m(h=g[b],b,p),e))if(t)w[b]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:Ri(w,h)}else switch(e){case 4:return!1;case 7:Ri(w,h)}return i?-1:n||o?o:w}},Li={forEach:Pi(0),map:Pi(1),filter:Pi(2),some:Pi(3),every:Pi(4),find:Pi(5),findIndex:Pi(6),filterReject:Pi(7)},Ii={},Fi=p,ji=Lt,Di=Pt,Mi=Dt,Bi=$,Wi=io;Ii.f=Fi&&!ji?Object.defineProperties:function(e,t){Mi(e);for(var r,n=Bi(t),o=Wi(t),i=o.length,a=0;i>a;)Di.f(e,r=o[a++],n[r]);return e};var Ui,Hi=ne("document","documentElement"),zi=Dt,Vi=Ii,qi=En,$i=yr,Gi=Hi,Xi=wt,Yi=br("IE_PROTO"),Ki=function(){},Ji=function(e){return"<script>"+e+"</"+"script>"},Zi=function(e){e.write(Ji("")),e.close();var t=e.parentWindow.Object;return e=null,t},Qi=function(){try{Ui=new ActiveXObject("htmlfile")}catch(e){}var e,t;Qi="undefined"!=typeof document?document.domain&&Ui?Zi(Ui):((t=Xi("iframe")).style.display="none",Gi.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ji("document.F=Object")),e.close(),e.F):Zi(Ui);for(var r=qi.length;r--;)delete Qi.prototype[qi[r]];return Qi()};$i[Yi]=!0;var ea=at,ta=Object.create||function(e,t){var r;return null!==e?(Ki.prototype=zi(e),r=new Ki,Ki.prototype=null,r[Yi]=e):r=Qi(),void 0===t?r:Vi.f(r,t)},ra=Pt.f,na=ea("unscopables"),oa=Array.prototype;null==oa[na]&&ra(oa,na,{configurable:!0,value:ta(null)});var ia=ro,aa=Li.find,sa=function(e){oa[na][e]=!0},ca="find",la=!0;ca in[]&&Array(1).find((function(){la=!1})),ia({target:"Array",proto:!0,forced:la},{find:function(e){return aa(this,e,arguments.length>1?arguments[1]:void 0)}}),sa(ca);var ua=Fo,fa=Oo?{}.toString:function(){return"[object "+ua(this)+"]"};Oo||tn(Object.prototype,"toString",fa,{unsafe:!0});var ha=e.fn.bootstrapTable.utils;Object.assign(e.fn.bootstrapTable.defaults,{stickyHeader:!1,stickyHeaderOffsetY:0,stickyHeaderOffsetLeft:0,stickyHeaderOffsetRight:0}),e.BootstrapTable=function(i){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(h,i);var s,l,u,f=a(h);function h(){return t(this,h),f.apply(this,arguments)}return s=h,l=[{key:"initHeader",value:function(){for(var t,r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];if((t=c(n(h.prototype),"initHeader",this)).call.apply(t,[this].concat(i)),this.options.stickyHeader){this.$tableBody.find(".sticky-header-container,.sticky_anchor_begin,.sticky_anchor_end").remove(),this.$el.before('<div class="sticky-header-container"></div>'),this.$el.before('<div class="sticky_anchor_begin"></div>'),this.$el.after('<div class="sticky_anchor_end"></div>'),this.$header.addClass("sticky-header"),this.$stickyContainer=this.$tableBody.find(".sticky-header-container"),this.$stickyBegin=this.$tableBody.find(".sticky_anchor_begin"),this.$stickyEnd=this.$tableBody.find(".sticky_anchor_end"),this.$stickyHeader=this.$header.clone(!0,!0);var s=ha.getEventName("resize.sticky-header-table",this.$el.attr("id")),l=ha.getEventName("scroll.sticky-header-table",this.$el.attr("id"));e(window).off(s).on(s,(function(){return r.renderStickyHeader()})),e(window).off(l).on(l,(function(){return r.renderStickyHeader()})),this.$tableBody.off("scroll").on("scroll",(function(){return r.matchPositionX()}))}}},{key:"onColumnSearch",value:function(e){var t=e.currentTarget,r=e.keyCode;c(n(h.prototype),"onColumnSearch",this).call(this,{currentTarget:t,keyCode:r}),this.renderStickyHeader()}},{key:"resetView",value:function(){for(var t,r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];(t=c(n(h.prototype),"resetView",this)).call.apply(t,[this].concat(i)),e(".bootstrap-table.fullscreen").off("scroll").on("scroll",(function(){return r.renderStickyHeader()}))}},{key:"getCaret",value:function(){for(var t,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];if((t=c(n(h.prototype),"getCaret",this)).call.apply(t,[this].concat(o)),this.$stickyHeader){var a=this.$stickyHeader.find("th");this.$header.find("th").each((function(t,r){a.eq(t).find(".sortable").attr("class",e(r).find(".sortable").attr("class"))}))}}},{key:"horizontalScroll",value:function(){var e=this;c(n(h.prototype),"horizontalScroll",this).call(this),this.$tableBody.on("scroll",(function(){return e.matchPositionX()}))}},{key:"renderStickyHeader",value:function(){var t=this,r=this;this.$stickyHeader=this.$header.clone(!0,!0),this.options.filterControl&&e(this.$stickyHeader).off("keyup change mouseup").on("keyup change mouse",(function(t){var n=e(t.target),o=n.val(),i=n.parents("th").data("field"),a=r.$header.find('th[data-field="'.concat(i,'"]'));if(n.is("input"))a.find("input").val(o);else if(n.is("select")){var s=a.find("select");s.find("option[selected]").removeAttr("selected"),s.find('option[value="'.concat(o,'"]')).attr("selected",!0)}r.triggerSearch()}));var n=e(window).scrollTop(),o=this.$stickyBegin.offset().top-this.options.stickyHeaderOffsetY,i=this.$stickyEnd.offset().top-this.options.stickyHeaderOffsetY-this.$header.height();if(n>o&&n<=i){this.$stickyHeader.find("tr").each((function(r,n){e(n).find("th").each((function(n,o){e(o).css("min-width",t.$header.find("tr:eq(".concat(r,")")).find("th:eq(".concat(n,")")).css("width"))}))})),this.$stickyContainer.show().addClass("fix-sticky fixed-table-container");var a=this.$tableBody[0].getBoundingClientRect(),s="100%",c=this.options.stickyHeaderOffsetLeft,l=this.options.stickyHeaderOffsetRight;c||(c=a.left),l||(s="".concat(a.width,"px")),this.$el.closest(".bootstrap-table").hasClass("fullscreen")&&(c=0,l=0,s="100%"),this.$stickyContainer.css("top","".concat(this.options.stickyHeaderOffsetY,"px")),this.$stickyContainer.css("left","".concat(c,"px")),this.$stickyContainer.css("right","".concat(l,"px")),this.$stickyContainer.css("width","".concat(s)),this.$stickyTable=e("<table/>"),this.$stickyTable.addClass(this.options.classes),this.$stickyContainer.html(this.$stickyTable.append(this.$stickyHeader)),this.matchPositionX()}else this.$stickyContainer.removeClass("fix-sticky").hide()}},{key:"matchPositionX",value:function(){this.$stickyContainer.scrollLeft(this.$tableBody.scrollLeft())}}],l&&r(s.prototype,l),u&&r(s,u),Object.defineProperty(s,"prototype",{writable:!1}),h}(e.BootstrapTable)})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jQuery)}(this,(function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),n)}var o,i}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=n(e);if(t){var a=n(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return i(this,r)}}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=s(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(this,arguments)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||f(e,t)||function(){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(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){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 f(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},p=function(e){return e&&e.Math==Math&&e},g=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof d&&d)||function(){return this}()||Function("return this")(),m={},v=function(e){try{return!!e()}catch(e){return!0}},b=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),y=!v((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),w=y,S=Function.prototype.call,x=w?S.bind(S):function(){return S.apply(S,arguments)},A={},k={}.propertyIsEnumerable,T=Object.getOwnPropertyDescriptor,E=T&&!k.call({1:2},1);A.f=E?function(e){var t=T(this,e);return!!t&&t.enumerable}:k;var _,O,N=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},C=y,R=Function.prototype,P=R.call,L=C&&R.bind.bind(P,P),I=C?L:function(e){return function(){return P.apply(e,arguments)}},F=I,j=F({}.toString),D=F("".slice),M=function(e){return D(j(e),8,-1)},B=v,W=M,U=Object,H=I("".split),z=B((function(){return!U("z").propertyIsEnumerable(0)}))?function(e){return"String"==W(e)?H(e,""):U(e)}:U,V=function(e){return null==e},q=V,$=TypeError,G=function(e){if(q(e))throw $("Can't call method on "+e);return e},X=z,Y=G,K=function(e){return X(Y(e))},J="object"==typeof document&&document.all,Z={all:J,IS_HTMLDDA:void 0===J&&void 0!==J},Q=Z.all,ee=Z.IS_HTMLDDA?function(e){return"function"==typeof e||e===Q}:function(e){return"function"==typeof e},te=ee,re=Z.all,ne=Z.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:te(e)||e===re}:function(e){return"object"==typeof e?null!==e:te(e)},oe=g,ie=ee,ae=function(e){return ie(e)?e:void 0},se=function(e,t){return arguments.length<2?ae(oe[e]):oe[e]&&oe[e][t]},ce=I({}.isPrototypeOf),le=g,ue="undefined"!=typeof navigator&&String(navigator.userAgent)||"",fe=le.process,he=le.Deno,de=fe&&fe.versions||he&&he.version,pe=de&&de.v8;pe&&(O=(_=pe.split("."))[0]>0&&_[0]<4?1:+(_[0]+_[1])),!O&&ue&&(!(_=ue.match(/Edge\/(\d+)/))||_[1]>=74)&&(_=ue.match(/Chrome\/(\d+)/))&&(O=+_[1]);var ge=O,me=ge,ve=v,be=!!Object.getOwnPropertySymbols&&!ve((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&me&&me<41})),ye=be&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,we=se,Se=ee,xe=ce,Ae=Object,ke=ye?function(e){return"symbol"==typeof e}:function(e){var t=we("Symbol");return Se(t)&&xe(t.prototype,Ae(e))},Te=String,Ee=ee,_e=function(e){try{return Te(e)}catch(e){return"Object"}},Oe=TypeError,Ne=function(e){if(Ee(e))return e;throw Oe(_e(e)+" is not a function")},Ce=Ne,Re=V,Pe=function(e,t){var r=e[t];return Re(r)?void 0:Ce(r)},Le=x,Ie=ee,Fe=ne,je=TypeError,De={},Me={get exports(){return De},set exports(e){De=e}},Be=g,We=Object.defineProperty,Ue=function(e,t){try{We(Be,e,{value:t,configurable:!0,writable:!0})}catch(r){Be[e]=t}return t},He=Ue,ze="__core-js_shared__",Ve=g[ze]||He(ze,{}),qe=Ve;(Me.exports=function(e,t){return qe[e]||(qe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var $e=G,Ge=Object,Xe=function(e){return Ge($e(e))},Ye=Xe,Ke=I({}.hasOwnProperty),Je=Object.hasOwn||function(e,t){return Ke(Ye(e),t)},Ze=I,Qe=0,et=Math.random(),tt=Ze(1..toString),rt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+tt(++Qe+et,36)},nt=De,ot=Je,it=rt,at=be,st=ye,ct=g.Symbol,lt=nt("wks"),ut=st?ct.for||ct:ct&&ct.withoutSetter||it,ft=function(e){return ot(lt,e)||(lt[e]=at&&ot(ct,e)?ct[e]:ut("Symbol."+e)),lt[e]},ht=x,dt=ne,pt=ke,gt=Pe,mt=function(e,t){var r,n;if("string"===t&&Ie(r=e.toString)&&!Fe(n=Le(r,e)))return n;if(Ie(r=e.valueOf)&&!Fe(n=Le(r,e)))return n;if("string"!==t&&Ie(r=e.toString)&&!Fe(n=Le(r,e)))return n;throw je("Can't convert object to primitive value")},vt=TypeError,bt=ft("toPrimitive"),yt=function(e,t){if(!dt(e)||pt(e))return e;var r,n=gt(e,bt);if(n){if(void 0===t&&(t="default"),r=ht(n,e,t),!dt(r)||pt(r))return r;throw vt("Can't convert object to primitive value")}return void 0===t&&(t="number"),mt(e,t)},wt=ke,St=function(e){var t=yt(e,"string");return wt(t)?t:t+""},xt=ne,At=g.document,kt=xt(At)&&xt(At.createElement),Tt=function(e){return kt?At.createElement(e):{}},Et=Tt,_t=!b&&!v((function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),Ot=b,Nt=x,Ct=A,Rt=N,Pt=K,Lt=St,It=Je,Ft=_t,jt=Object.getOwnPropertyDescriptor;m.f=Ot?jt:function(e,t){if(e=Pt(e),t=Lt(t),Ft)try{return jt(e,t)}catch(e){}if(It(e,t))return Rt(!Nt(Ct.f,e,t),e[t])};var Dt={},Mt=b&&v((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Bt=ne,Wt=String,Ut=TypeError,Ht=function(e){if(Bt(e))return e;throw Ut(Wt(e)+" is not an object")},zt=b,Vt=_t,qt=Mt,$t=Ht,Gt=St,Xt=TypeError,Yt=Object.defineProperty,Kt=Object.getOwnPropertyDescriptor,Jt="enumerable",Zt="configurable",Qt="writable";Dt.f=zt?qt?function(e,t,r){if($t(e),t=Gt(t),$t(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Qt in r&&!r.writable){var n=Kt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:Zt in r?r.configurable:n.configurable,enumerable:Jt in r?r.enumerable:n.enumerable,writable:!1})}return Yt(e,t,r)}:Yt:function(e,t,r){if($t(e),t=Gt(t),$t(r),Vt)try{return Yt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Xt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var er=Dt,tr=N,rr=b?function(e,t,r){return er.f(e,t,tr(1,r))}:function(e,t,r){return e[t]=r,e},nr={},or={get exports(){return nr},set exports(e){nr=e}},ir=b,ar=Je,sr=Function.prototype,cr=ir&&Object.getOwnPropertyDescriptor,lr=ar(sr,"name"),ur={EXISTS:lr,PROPER:lr&&"something"===function(){}.name,CONFIGURABLE:lr&&(!ir||ir&&cr(sr,"name").configurable)},fr=ee,hr=Ve,dr=I(Function.toString);fr(hr.inspectSource)||(hr.inspectSource=function(e){return dr(e)});var pr,gr,mr,vr=hr.inspectSource,br=ee,yr=g.WeakMap,wr=br(yr)&&/native code/.test(String(yr)),Sr=rt,xr=De("keys"),Ar=function(e){return xr[e]||(xr[e]=Sr(e))},kr={},Tr=wr,Er=g,_r=ne,Or=rr,Nr=Je,Cr=Ve,Rr=Ar,Pr=kr,Lr="Object already initialized",Ir=Er.TypeError,Fr=Er.WeakMap;if(Tr||Cr.state){var jr=Cr.state||(Cr.state=new Fr);jr.get=jr.get,jr.has=jr.has,jr.set=jr.set,pr=function(e,t){if(jr.has(e))throw Ir(Lr);return t.facade=e,jr.set(e,t),t},gr=function(e){return jr.get(e)||{}},mr=function(e){return jr.has(e)}}else{var Dr=Rr("state");Pr[Dr]=!0,pr=function(e,t){if(Nr(e,Dr))throw Ir(Lr);return t.facade=e,Or(e,Dr,t),t},gr=function(e){return Nr(e,Dr)?e[Dr]:{}},mr=function(e){return Nr(e,Dr)}}var Mr={set:pr,get:gr,has:mr,enforce:function(e){return mr(e)?gr(e):pr(e,{})},getterFor:function(e){return function(t){var r;if(!_r(t)||(r=gr(t)).type!==e)throw Ir("Incompatible receiver, "+e+" required");return r}}},Br=I,Wr=v,Ur=ee,Hr=Je,zr=b,Vr=ur.CONFIGURABLE,qr=vr,$r=Mr.enforce,Gr=Mr.get,Xr=String,Yr=Object.defineProperty,Kr=Br("".slice),Jr=Br("".replace),Zr=Br([].join),Qr=zr&&!Wr((function(){return 8!==Yr((function(){}),"length",{value:8}).length})),en=String(String).split("String"),tn=or.exports=function(e,t,r){"Symbol("===Kr(Xr(t),0,7)&&(t="["+Jr(Xr(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Hr(e,"name")||Vr&&e.name!==t)&&(zr?Yr(e,"name",{value:t,configurable:!0}):e.name=t),Qr&&r&&Hr(r,"arity")&&e.length!==r.arity&&Yr(e,"length",{value:r.arity});try{r&&Hr(r,"constructor")&&r.constructor?zr&&Yr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=$r(e);return Hr(n,"source")||(n.source=Zr(en,"string"==typeof t?t:"")),e};Function.prototype.toString=tn((function(){return Ur(this)&&Gr(this).source||qr(this)}),"toString");var rn=ee,nn=Dt,on=nr,an=Ue,sn=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(rn(r)&&on(r,i,n),n.global)o?e[t]=r:an(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:nn.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},cn={},ln=Math.ceil,un=Math.floor,fn=Math.trunc||function(e){var t=+e;return(t>0?un:ln)(t)},hn=function(e){var t=+e;return t!=t||0===t?0:fn(t)},dn=hn,pn=Math.max,gn=Math.min,mn=hn,vn=Math.min,bn=function(e){return e>0?vn(mn(e),9007199254740991):0},yn=function(e){return bn(e.length)},wn=K,Sn=function(e,t){var r=dn(e);return r<0?pn(r+t,0):gn(r,t)},xn=yn,An=function(e){return function(t,r,n){var o,i=wn(t),a=xn(i),s=Sn(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},kn={includes:An(!0),indexOf:An(!1)},Tn=Je,En=K,_n=kn.indexOf,On=kr,Nn=I([].push),Cn=function(e,t){var r,n=En(e),o=0,i=[];for(r in n)!Tn(On,r)&&Tn(n,r)&&Nn(i,r);for(;t.length>o;)Tn(n,r=t[o++])&&(~_n(i,r)||Nn(i,r));return i},Rn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pn=Cn,Ln=Rn.concat("length","prototype");cn.f=Object.getOwnPropertyNames||function(e){return Pn(e,Ln)};var In={};In.f=Object.getOwnPropertySymbols;var Fn=se,jn=cn,Dn=In,Mn=Ht,Bn=I([].concat),Wn=Fn("Reflect","ownKeys")||function(e){var t=jn.f(Mn(e)),r=Dn.f;return r?Bn(t,r(e)):t},Un=Je,Hn=Wn,zn=m,Vn=Dt,qn=v,$n=ee,Gn=/#|\.prototype\./,Xn=function(e,t){var r=Kn[Yn(e)];return r==Zn||r!=Jn&&($n(t)?qn(t):!!t)},Yn=Xn.normalize=function(e){return String(e).replace(Gn,".").toLowerCase()},Kn=Xn.data={},Jn=Xn.NATIVE="N",Zn=Xn.POLYFILL="P",Qn=Xn,eo=g,to=m.f,ro=rr,no=sn,oo=Ue,io=function(e,t,r){for(var n=Hn(t),o=Vn.f,i=zn.f,a=0;a<n.length;a++){var s=n[a];Un(e,s)||r&&Un(r,s)||o(e,s,i(t,s))}},ao=Qn,so=function(e,t){var r,n,o,i,a,s=e.target,c=e.global,l=e.stat;if(r=c?eo:l?eo[s]||oo(s,{}):(eo[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=to(r,n))&&a.value:r[n],!ao(c?n:s+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;io(i,o)}(e.sham||o&&o.sham)&&ro(i,"sham",!0),no(r,n,i,e)}},co=Cn,lo=Rn,uo=Object.keys||function(e){return co(e,lo)},fo=b,ho=I,po=x,go=v,mo=uo,vo=In,bo=A,yo=Xe,wo=z,So=Object.assign,xo=Object.defineProperty,Ao=ho([].concat),ko=!So||go((function(){if(fo&&1!==So({b:1},So(xo({},"a",{enumerable:!0,get:function(){xo(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=So({},e)[r]||mo(So({},t)).join("")!=n}))?function(e,t){for(var r=yo(e),n=arguments.length,o=1,i=vo.f,a=bo.f;n>o;)for(var s,c=wo(arguments[o++]),l=i?Ao(mo(c),i(c)):mo(c),u=l.length,f=0;u>f;)s=l[f++],fo&&!po(a,c,s)||(r[s]=c[s]);return r}:So,To=ko;so({target:"Object",stat:!0,arity:2,forced:Object.assign!==To},{assign:To});var Eo={};Eo[ft("toStringTag")]="z";var _o="[object z]"===String(Eo),Oo=_o,No=ee,Co=M,Ro=ft("toStringTag"),Po=Object,Lo="Arguments"==Co(function(){return arguments}()),Io=Oo?Co:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Po(e),Ro))?r:Lo?Co(t):"Object"==(n=Co(t))&&No(t.callee)?"Arguments":n},Fo=Io,jo=String,Do=function(e){if("Symbol"===Fo(e))throw TypeError("Cannot convert a Symbol value to a string");return jo(e)},Mo=Ht,Bo=v,Wo=g.RegExp,Uo=Bo((function(){var e=Wo("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Ho=Uo||Bo((function(){return!Wo("a","y").sticky})),zo={BROKEN_CARET:Uo||Bo((function(){var e=Wo("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Ho,UNSUPPORTED_Y:Uo},Vo={},qo=b,$o=Mt,Go=Dt,Xo=Ht,Yo=K,Ko=uo;Vo.f=qo&&!$o?Object.defineProperties:function(e,t){Xo(e);for(var r,n=Yo(t),o=Ko(t),i=o.length,a=0;i>a;)Go.f(e,r=o[a++],n[r]);return e};var Jo,Zo=se("document","documentElement"),Qo=Ht,ei=Vo,ti=Rn,ri=kr,ni=Zo,oi=Tt,ii=Ar("IE_PROTO"),ai=function(){},si=function(e){return"<script>"+e+"</"+"script>"},ci=function(e){e.write(si("")),e.close();var t=e.parentWindow.Object;return e=null,t},li=function(){try{Jo=new ActiveXObject("htmlfile")}catch(e){}var e,t;li="undefined"!=typeof document?document.domain&&Jo?ci(Jo):((t=oi("iframe")).style.display="none",ni.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(si("document.F=Object")),e.close(),e.F):ci(Jo);for(var r=ti.length;r--;)delete li.prototype[ti[r]];return li()};ri[ii]=!0;var ui,fi,hi=Object.create||function(e,t){var r;return null!==e?(ai.prototype=Qo(e),r=new ai,ai.prototype=null,r[ii]=e):r=li(),void 0===t?r:ei.f(r,t)},di=v,pi=g.RegExp,gi=di((function(){var e=pi(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),mi=v,vi=g.RegExp,bi=mi((function(){var e=vi("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),yi=x,wi=I,Si=Do,xi=function(){var e=Mo(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Ai=zo,ki=hi,Ti=Mr.get,Ei=gi,_i=bi,Oi=De("native-string-replace",String.prototype.replace),Ni=RegExp.prototype.exec,Ci=Ni,Ri=wi("".charAt),Pi=wi("".indexOf),Li=wi("".replace),Ii=wi("".slice),Fi=(fi=/b*/g,yi(Ni,ui=/a/,"a"),yi(Ni,fi,"a"),0!==ui.lastIndex||0!==fi.lastIndex),ji=Ai.BROKEN_CARET,Di=void 0!==/()??/.exec("")[1];(Fi||Di||ji||Ei||_i)&&(Ci=function(e){var t,r,n,o,i,a,s,c=this,l=Ti(c),u=Si(e),f=l.raw;if(f)return f.lastIndex=c.lastIndex,t=yi(Ci,f,u),c.lastIndex=f.lastIndex,t;var h=l.groups,d=ji&&c.sticky,p=yi(xi,c),g=c.source,m=0,v=u;if(d&&(p=Li(p,"y",""),-1===Pi(p,"g")&&(p+="g"),v=Ii(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Ri(u,c.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),r=new RegExp("^(?:"+g+")",p)),Di&&(r=new RegExp("^"+g+"$(?!\\s)",p)),Fi&&(n=c.lastIndex),o=yi(Ni,d?r:c,v),d?o?(o.input=Ii(o.input,m),o[0]=Ii(o[0],m),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Fi&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),Di&&o&&o.length>1&&yi(Oi,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&h)for(o.groups=a=ki(null),i=0;i<h.length;i++)a[(s=h[i])[0]]=o[s[1]];return o});var Mi=Ci;so({target:"RegExp",proto:!0,forced:/./.exec!==Mi},{exec:Mi});var Bi=M,Wi=I,Ui=function(e){if("Function"===Bi(e))return Wi(e)},Hi=Ui,zi=sn,Vi=Mi,qi=v,$i=ft,Gi=rr,Xi=$i("species"),Yi=RegExp.prototype,Ki=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},Ji=x,Zi=Ht,Qi=ee,ea=M,ta=Mi,ra=TypeError,na=x,oa=function(e,t,r,n){var o=$i(e),i=!qi((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!qi((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Xi]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var s=Hi(/./[o]),c=t(o,""[e],(function(e,t,r,n,o){var a=Hi(e),c=t.exec;return c===Vi||c===Yi.exec?i&&!o?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));zi(String.prototype,e,c[0]),zi(Yi,o,c[1])}n&&Gi(Yi[o],"sham",!0)},ia=Ht,aa=V,sa=G,ca=Ki,la=Do,ua=Pe,fa=function(e,t){var r=e.exec;if(Qi(r)){var n=Ji(r,e,t);return null!==n&&Zi(n),n}if("RegExp"===ea(e))return Ji(ta,e,t);throw ra("RegExp#exec called on incompatible receiver")};oa("search",(function(e,t,r){return[function(t){var r=sa(this),n=aa(t)?void 0:ua(t,e);return n?na(n,t,r):new RegExp(t)[e](la(r))},function(e){var n=ia(this),o=la(e),i=r(t,n,o);if(i.done)return i.value;var a=n.lastIndex;ca(a,0)||(n.lastIndex=0);var s=fa(n,o);return ca(n.lastIndex,a)||(n.lastIndex=a),null===s?-1:s.index}]}));var ha=v,da=function(e,t){var r=[][e];return!!r&&ha((function(){r.call(null,t||function(){return 1},1)}))},pa=so,ga=z,ma=K,va=da,ba=I([].join);pa({target:"Array",proto:!0,forced:ga!=Object||!va("join",",")},{join:function(e){return ba(ma(this),void 0===e?",":e)}});var ya=Ne,wa=y,Sa=Ui(Ui.bind),xa=M,Aa=Array.isArray||function(e){return"Array"==xa(e)},ka=I,Ta=v,Ea=ee,_a=Io,Oa=vr,Na=function(){},Ca=[],Ra=se("Reflect","construct"),Pa=/^\s*(?:class|function)\b/,La=ka(Pa.exec),Ia=!Pa.exec(Na),Fa=function(e){if(!Ea(e))return!1;try{return Ra(Na,Ca,e),!0}catch(e){return!1}},ja=function(e){if(!Ea(e))return!1;switch(_a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ia||!!La(Pa,Oa(e))}catch(e){return!0}};ja.sham=!0;var Da=!Ra||Ta((function(){var e;return Fa(Fa.call)||!Fa(Object)||!Fa((function(){e=!0}))||e}))?ja:Fa,Ma=Aa,Ba=Da,Wa=ne,Ua=ft("species"),Ha=Array,za=function(e){var t;return Ma(e)&&(t=e.constructor,(Ba(t)&&(t===Ha||Ma(t.prototype))||Wa(t)&&null===(t=t[Ua]))&&(t=void 0)),void 0===t?Ha:t},Va=function(e,t){return new(za(e))(0===t?0:t)},qa=function(e,t){return ya(e),void 0===t?e:wa?Sa(e,t):function(){return e.apply(t,arguments)}},$a=z,Ga=Xe,Xa=yn,Ya=Va,Ka=I([].push),Ja=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,l,u,f){for(var h,d,p=Ga(c),g=$a(p),m=qa(l,u),v=Xa(g),b=0,y=f||Ya,w=t?y(c,v):r||a?y(c,0):void 0;v>b;b++)if((s||b in g)&&(d=m(h=g[b],b,p),e))if(t)w[b]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:Ka(w,h)}else switch(e){case 4:return!1;case 7:Ka(w,h)}return i?-1:n||o?o:w}},Za={forEach:Ja(0),map:Ja(1),filter:Ja(2),some:Ja(3),every:Ja(4),find:Ja(5),findIndex:Ja(6),filterReject:Ja(7)},Qa=ft,es=hi,ts=Dt.f,rs=Qa("unscopables"),ns=Array.prototype;null==ns[rs]&&ts(ns,rs,{configurable:!0,value:es(null)});var os=function(e){ns[rs][e]=!0},is=so,as=Za.find,ss=os,cs="find",ls=!0;cs in[]&&Array(1).find((function(){ls=!1})),is({target:"Array",proto:!0,forced:ls},{find:function(e){return as(this,e,arguments.length>1?arguments[1]:void 0)}}),ss(cs);var us=Io,fs=_o?{}.toString:function(){return"[object "+us(this)+"]"};_o||sn(Object.prototype,"toString",fs,{unsafe:!0});var hs=TypeError,ds=St,ps=Dt,gs=N,ms=v,vs=ge,bs=ft("species"),ys=function(e){return vs>=51||!ms((function(){var t=[];return(t.constructor={})[bs]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},ws=so,Ss=v,xs=Aa,As=ne,ks=Xe,Ts=yn,Es=function(e){if(e>9007199254740991)throw hs("Maximum allowed index exceeded");return e},_s=function(e,t,r){var n=ds(t);n in e?ps.f(e,n,gs(0,r)):e[n]=r},Os=Va,Ns=ys,Cs=ge,Rs=ft("isConcatSpreadable"),Ps=Cs>=51||!Ss((function(){var e=[];return e[Rs]=!1,e.concat()[0]!==e})),Ls=function(e){if(!As(e))return!1;var t=e[Rs];return void 0!==t?!!t:xs(e)};ws({target:"Array",proto:!0,arity:1,forced:!Ps||!Ns("concat")},{concat:function(e){var t,r,n,o,i,a=ks(this),s=Os(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(Ls(i=-1===t?a:arguments[t]))for(o=Ts(i),Es(c+o),r=0;r<o;r++,c++)r in i&&_s(s,c,i[r]);else Es(c+1),_s(s,c++,i);return s.length=c,s}});var Is=Za.filter;so({target:"Array",proto:!0,forced:!ys("filter")},{filter:function(e){return Is(this,e,arguments.length>1?arguments[1]:void 0)}});var Fs=b,js=I,Ds=uo,Ms=K,Bs=js(A.f),Ws=js([].push),Us=function(e){return function(t){for(var r,n=Ms(t),o=Ds(n),i=o.length,a=0,s=[];i>a;)r=o[a++],Fs&&!Bs(n,r)||Ws(s,e?[r,n[r]]:n[r]);return s}},Hs={entries:Us(!0),values:Us(!1)}.entries;so({target:"Object",stat:!0},{entries:function(e){return Hs(e)}});var zs=so,Vs=kn.indexOf,qs=da,$s=Ui([].indexOf),Gs=!!$s&&1/$s([1],1,-0)<0;zs({target:"Array",proto:!0,forced:Gs||!qs("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Gs?$s(this,e,t)||0:Vs(this,e,t)}});var Xs=kn.includes,Ys=os;so({target:"Array",proto:!0,forced:v((function(){return!Array(1).includes()}))},{includes:function(e){return Xs(this,e,arguments.length>1?arguments[1]:void 0)}}),Ys("includes");var Ks=ne,Js=M,Zs=ft("match"),Qs=function(e){var t;return Ks(e)&&(void 0!==(t=e[Zs])?!!t:"RegExp"==Js(e))},ec=TypeError,tc=ft("match"),rc=so,nc=function(e){if(Qs(e))throw ec("The method doesn't accept regular expressions");return e},oc=G,ic=Do,ac=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[tc]=!1,"/./"[e](t)}catch(e){}}return!1},sc=I("".indexOf);rc({target:"String",proto:!0,forced:!ac("includes")},{includes:function(e){return!!~sc(ic(oc(this)),ic(nc(e)),arguments.length>1?arguments[1]:void 0)}});var cc="\t\n\v\f\r \u2028\u2029\ufeff",lc=G,uc=Do,fc=cc,hc=I("".replace),dc=RegExp("^["+fc+"]+"),pc=RegExp("(^|[^"+fc+"])["+fc+"]+$"),gc=function(e){return function(t){var r=uc(lc(t));return 1&e&&(r=hc(r,dc,"")),2&e&&(r=hc(r,pc,"$1")),r}},mc={start:gc(1),end:gc(2),trim:gc(3)},vc=ur.PROPER,bc=v,yc=cc,wc=mc.trim;so({target:"String",proto:!0,forced:function(e){return bc((function(){return!!yc[e]()||"
"!=="
"[e]()||vc&&yc[e].name!==e}))}("trim")},{trim:function(){return wc(this)}});var Sc=e.fn.bootstrapTable.utils,xc={bootstrap3:{icons:{advancedSearchIcon:"glyphicon-chevron-down"},classes:{},html:{modal:'\n <div id="avdSearchModal_%s" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">\n <div class="modal-dialog modal-xs">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n <span aria-hidden="true">×</span>\n </button>\n <h4 class="modal-title">%s</h4>\n </div>\n <div class="modal-body modal-body-custom">\n <div class="container-fluid" id="avdSearchModalContent_%s"\n style="padding-right: 0px; padding-left: 0px;" >\n </div>\n </div>\n <div class="modal-footer">\n <button type="button" id="btnCloseAvd_%s" class="btn btn-%s">%s</button>\n </div>\n </div>\n </div>\n </div>\n '}},bootstrap4:{icons:{advancedSearchIcon:"fa-chevron-down"},classes:{},html:{modal:'\n <div id="avdSearchModal_%s" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">\n <div class="modal-dialog modal-xs">\n <div class="modal-content">\n <div class="modal-header">\n <h4 class="modal-title">%s</h4>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n <span aria-hidden="true">×</span>\n </button>\n </div>\n <div class="modal-body modal-body-custom">\n <div class="container-fluid" id="avdSearchModalContent_%s"\n style="padding-right: 0; padding-left: 0;" >\n </div>\n </div>\n <div class="modal-footer">\n <button type="button" id="btnCloseAvd_%s" class="btn btn-%s">%s</button>\n </div>\n </div>\n </div>\n </div>\n '}},bootstrap5:{icons:{advancedSearchIcon:"bi-chevron-down"},classes:{formGroup:"mb-3"},html:{modal:'\n <div id="avdSearchModal_%s" class="modal fade" tabindex="-1" aria-labelledby="mySmallModalLabel" aria-hidden="true">\n <div class="modal-dialog modal-xs">\n <div class="modal-content">\n <div class="modal-header">\n <h5 class="modal-title">%s</h5>\n <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>\n </div>\n <div class="modal-body modal-body-custom">\n <div class="container-fluid" id="avdSearchModalContent_%s"\n style="padding-right: 0; padding-left: 0;" >\n </div>\n </div>\n <div class="modal-footer">\n <button type="button" id="btnCloseAvd_%s" class="btn btn-%s">%s</button>\n </div>\n </div>\n </div>\n </div>\n '}},bulma:{icons:{advancedSearchIcon:"fa-chevron-down"},classes:{},html:{modal:'\n <div class="modal" id="avdSearchModal_%s">\n <div class="modal-background"></div>\n <div class="modal-card">\n <header class="modal-card-head">\n <p class="modal-card-title">%s</p>\n <button class="delete" aria-label="close"></button>\n </header>\n <section class="modal-card-body" id="avdSearchModalContent_%s"></section>\n <footer class="modal-card-foot">\n <button class="button" id="btnCloseAvd_%s" data-close="btn btn-%s">%s</button>\n </footer>\n </div>\n </div>\n '}},foundation:{icons:{advancedSearchIcon:"fa-chevron-down"},classes:{},html:{modal:'\n <div class="reveal" id="avdSearchModal_%s" data-reveal>\n <h1>%s</h1>\n <div id="avdSearchModalContent_%s">\n\n </div>\n <button class="close-button" data-close aria-label="Close modal" type="button">\n <span aria-hidden="true">×</span>\n </button>\n\n <button id="btnCloseAvd_%s" class="%s" type="button">%s</button>\n </div>\n '}},materialize:{icons:{advancedSearchIcon:"expand_more"},classes:{},html:{modal:'\n <div id="avdSearchModal_%s" class="modal">\n <div class="modal-content">\n <h4>%s</h4>\n <div id="avdSearchModalContent_%s">\n\n </div>\n </div>\n <div class="modal-footer">\n <a href="javascript:void(0)"" id="btnCloseAvd_%s" class="modal-close waves-effect waves-green btn-flat %s">%s</a>\n </div>\n </div>\n '}},semantic:{icons:{advancedSearchIcon:"fa-chevron-down"},classes:{},html:{modal:'\n <div class="ui modal" id="avdSearchModal_%s">\n <i class="close icon"></i>\n <div class="header">\n %s\n </div>\n <div class="image content ui form" id="avdSearchModalContent_%s"></div>\n <div class="actions">\n <div id="btnCloseAvd_%s" class="ui black deny button %s">%s</div>\n </div>\n </div>\n '}}}[e.fn.bootstrapTable.theme];Object.assign(e.fn.bootstrapTable.defaults,{advancedSearch:!1,idForm:"advancedSearch",actionForm:"",idTable:void 0,onColumnAdvancedSearch:function(e,t){return!1}}),Object.assign(e.fn.bootstrapTable.defaults.icons,{advancedSearchIcon:xc.icons.advancedSearchIcon}),Object.assign(e.fn.bootstrapTable.events,{"column-advanced-search.bs.table":"onColumnAdvancedSearch"}),Object.assign(e.fn.bootstrapTable.locales,{formatAdvancedSearch:function(){return"Advanced search"},formatAdvancedCloseButton:function(){return"Close"}}),Object.assign(e.fn.bootstrapTable.defaults,e.fn.bootstrapTable.locales),e.BootstrapTable=function(i){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(g,i);var s,h,d,p=a(g);function g(){return t(this,g),p.apply(this,arguments)}return s=g,h=[{key:"initToolbar",value:function(){var e=this.options;this.showToolbar=this.showToolbar||e.search&&e.advancedSearch&&e.idTable,e.search&&e.advancedSearch&&e.idTable&&(this.buttons=Object.assign(this.buttons,{advancedSearch:{text:this.options.formatAdvancedSearch(),icon:this.options.icons.advancedSearchIcon,event:this.showAvdSearch,attributes:{"aria-label":this.options.formatAdvancedSearch(),title:this.options.formatAdvancedSearch()}}})),c(n(g.prototype),"initToolbar",this).call(this)}},{key:"showAvdSearch",value:function(){var t=this,r=this.options,n="#avdSearchModal_".concat(r.idTable);if(e(n).length<=0){e("body").append(Sc.sprintf(xc.html.modal,r.idTable,r.formatAdvancedSearch(),r.idTable,r.idTable,r.buttonsClass,r.formatAdvancedCloseButton()));var o=0;e("#avdSearchModalContent_".concat(r.idTable)).append(this.createFormAvd().join("")),e("#".concat(r.idForm)).off("keyup blur","input").on("keyup blur","input",(function(e){"server"===r.sidePagination?t.onColumnAdvancedSearch(e):(clearTimeout(o),o=setTimeout((function(){t.onColumnAdvancedSearch(e)}),r.searchTimeOut))})),e("#btnCloseAvd_".concat(r.idTable)).click((function(){return t.hideModal()})),"bulma"===e.fn.bootstrapTable.theme&&e(n).find(".delete").off("click").on("click",(function(){return t.hideModal()})),this.showModal()}else this.showModal()}},{key:"showModal",value:function(){var t="#avdSearchModal_".concat(this.options.idTable);-1!==e.inArray(e.fn.bootstrapTable.theme,["bootstrap3","bootstrap4"])?e(t).modal():"bootstrap5"===e.fn.bootstrapTable.theme?(this.toolbarModal||(this.toolbarModal=new bootstrap.Modal(document.getElementById("avdSearchModal_".concat(this.options.idTable)),{})),this.toolbarModal.show()):"bulma"===e.fn.bootstrapTable.theme?e(t).toggleClass("is-active"):"foundation"===e.fn.bootstrapTable.theme?(this.toolbarModal||(this.toolbarModal=new Foundation.Reveal(e(t))),this.toolbarModal.open()):"materialize"===e.fn.bootstrapTable.theme?(e(t).modal(),e(t).modal("open")):"semantic"===e.fn.bootstrapTable.theme&&e(t).modal("show")}},{key:"hideModal",value:function(){var t=e("#avdSearchModal_".concat(this.options.idTable)),r="#avdSearchModal_".concat(this.options.idTable);-1!==e.inArray(e.fn.bootstrapTable.theme,["bootstrap3","bootstrap4"])?t.modal("hide"):"bootstrap5"===e.fn.bootstrapTable.theme?this.toolbarModal.hide():"bulma"===e.fn.bootstrapTable.theme?(e("html").toggleClass("is-clipped"),e(r).toggleClass("is-active")):"foundation"===e.fn.bootstrapTable.theme?this.toolbarModal.close():"materialize"===e.fn.bootstrapTable.theme?e(r).modal("open"):"semantic"===e.fn.bootstrapTable.theme&&e(r).modal("close"),"server"===this.options.sidePagination&&(this.options.pageNumber=1,this.updatePagination(),this.trigger("column-advanced-search",this.filterColumnsPartial))}},{key:"createFormAvd",value:function(){var e,t=this.options,r=['<form class="form-horizontal" id="'.concat(t.idForm,'" action="').concat(t.actionForm,'">')],n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=f(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(this.columns);try{for(n.s();!(e=n.n()).done;){var o=e.value;!o.checkbox&&o.visible&&o.searchable&&r.push('\n <div class="form-group row '.concat(xc.classes.formGroup||"",'">\n <label class="col-sm-4 control-label">').concat(o.title,'</label>\n <div class="col-sm-6">\n <input type="text" class="form-control ').concat(this.constants.classes.input,'" name="').concat(o.field,'" placeholder="').concat(o.title,'" id="').concat(o.field,'">\n </div>\n </div>\n '))}}catch(e){n.e(e)}finally{n.f()}return r.push("</form>"),r}},{key:"initSearch",value:function(){var t=this;if(c(n(g.prototype),"initSearch",this).call(this),this.options.advancedSearch&&"server"!==this.options.sidePagination){var r=e.isEmptyObject(this.filterColumnsPartial)?null:this.filterColumnsPartial;this.data=r?this.data.filter((function(e,n){for(var o=0,i=Object.entries(r);o<i.length;o++){var a=l(i[o],2),s=a[0],c=a[1].toLowerCase(),u=e[s],f=t.header.fields.indexOf(s);if(u=Sc.calculateObjectValue(t.header,t.header.formatters[f],[u,e,n],u),-1===f||"string"!=typeof u&&"number"!=typeof u||!"".concat(u).toLowerCase().includes(c))return!1}return!0})):this.data,this.unsortedData=u(this.data)}}},{key:"onColumnAdvancedSearch",value:function(t){var r=e(t.currentTarget).val().trim(),n=e(t.currentTarget)[0].id;e.isEmptyObject(this.filterColumnsPartial)&&(this.filterColumnsPartial={}),r?this.filterColumnsPartial[n]=r:delete this.filterColumnsPartial[n],"server"!==this.options.sidePagination&&(this.options.pageNumber=1,this.initSearch(),this.updatePagination(),this.trigger("column-advanced-search",n,r))}}],h&&r(s.prototype,h),d&&r(s,d),Object.defineProperty(s,"prototype",{writable:!1}),g}(e.BootstrapTable)}));
|