(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-09784ec9"],{"0083":function(e,t,r){"use strict";var n={};function i(){try{return new window.XMLHttpRequest}catch(e){}}function a(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}n._getBinaryFromXHR=function(e){return e.response||e.responseText};var o="undefined"!==typeof window&&window.ActiveXObject?function(){return i()||a()}:i;n.getBinaryContent=function(e,t){var r,i,a,s;t||(t={}),"function"===typeof t?(s=t,t={}):"function"===typeof t.callback&&(s=t.callback),s||"undefined"===typeof Promise?(i=function(e){s(null,e)},a=function(e){s(e,null)}):r=new Promise((function(e,t){i=e,a=t}));try{var l=o();l.open("GET",e,!0),"responseType"in l&&(l.responseType="arraybuffer"),l.overrideMimeType&&l.overrideMimeType("text/plain; charset=x-user-defined"),l.onreadystatechange=function(t){if(4===l.readyState)if(200===l.status||0===l.status)try{i(n._getBinaryFromXHR(l))}catch(r){a(new Error(r))}else a(new Error("Ajax error for "+e+" : "+this.status+" "+this.statusText))},t.progress&&(l.onprogress=function(r){t.progress({path:e,originalEvent:r,percent:r.loaded/r.total*100,loaded:r.loaded,total:r.total})}),l.send()}catch(u){a(new Error(u),null)}return r},e.exports=n},"037e":function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r>>0,i=0;i0?d.call(this,e,t,r-1):n}function p(e,t,r){var n,i=this,a=this.scopeList[r];return n=this.cachedParsers&&t.part?this.cachedParsers[t.part.lIndex]?this.cachedParsers[t.part.lIndex]:this.cachedParsers[t.part.lIndex]=this.parser(e,{scopePath:this.scopePath}):this.parser(e,{scopePath:this.scopePath}),Promise.resolve().then((function(){return n.get(a,i.getContext(t,r))}))["catch"]((function(r){throw s({tag:e,scope:a,error:r,offset:t.part.offset})})).then((function(n){return null==n&&r>0?p.call(i,e,t,r-1):n}))}var m=function(){function e(t){n(this,e),this.root=t.root||this,this.resolveOffset=t.resolveOffset||0,this.scopePath=t.scopePath,this.scopePathItem=t.scopePathItem,this.scopePathLength=t.scopePathLength,this.scopeList=t.scopeList,this.scopeLindex=t.scopeLindex,this.parser=t.parser,this.resolved=t.resolved,this.cachedParsers=t.cachedParsers}return a(e,[{key:"loopOver",value:function(e,t,r,n){return this.loopOverValue(this.getValue(e,n),t,r)}},{key:"functorIfInverted",value:function(e,t,r,n,i){return e&&t(r,n,i),e}},{key:"isValueFalsy",value:function(e,t){return null==e||!e||"[object Array]"===t&&0===e.length}},{key:"loopOverValue",value:function(e,t,r){this.root.finishedResolving&&(r=!1);var n=Object.prototype.toString.call(e);if(this.isValueFalsy(e,n))return this.functorIfInverted(r,t,u(this.scopeList),0,1);if("[object Array]"===n){for(var i=0;i1)try{"array"===a||"nodebuffer"===a?n.push(String.fromCharCode.apply(null,e.slice(s,Math.min(s+r,i)))):n.push(String.fromCharCode.apply(null,e.subarray(s,Math.min(s+r,i)))),s+=r}catch(f){r=Math.floor(r/2)}return n.join("")}function c(e,t){for(var r=0;r=0)e[t]=0}var o=0,s=1,l=2,u=3,c=258,f=29,h=256,d=h+1+f,p=30,m=19,g=2*d+1,v=15,y=16,b=7,w=256,_=16,x=17,E=18,T=new Uint8Array([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]),k=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),A=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),S=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),O=512,C=new Array(2*(d+2));a(C);var I=new Array(2*p);a(I);var N=new Array(O);a(N);var P=new Array(c-u+1);a(P);var R=new Array(f);a(R);var D,z,M,L=new Array(p);function U(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function j(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}a(L);var F=function(e){return e<256?N[e]:N[256+(e>>>7)]},B=function(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},Z=function(e,t,r){e.bi_valid>y-r?(e.bi_buf|=t<>y-e.bi_valid,e.bi_valid+=r-y):(e.bi_buf|=t<>>=1,r<<=1}while(--t>0);return r>>>1},H=function(e){16===e.bi_valid?(B(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)},Y=function(e,t){var r,n,i,a,o,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(a=0;a<=v;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;rp&&(a=p,m++),l[2*n+1]=a,n>u||(e.bl_count[a]++,o=0,n>=d&&(o=h[n-d]),s=l[2*n],e.opt_len+=s*(a+o),f&&(e.static_len+=s*(c[2*n+1]+o)));if(0!==m){do{a=p-1;while(0===e.bl_count[a])a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(a=p;0!==a;a--){n=e.bl_count[a];while(0!==n)i=e.heap[--r],i>u||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),n--)}}},q=function(e,t,r){var n,i,a=new Array(v+1),o=0;for(n=1;n<=v;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=V(a[s]++,s))}},G=function(){var e,t,r,n,i,a=new Array(v+1);for(r=0,n=0;n>=7;n8?B(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},K=function(e,t,r,n){W(e),n&&(B(e,r),B(e,~r)),e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},J=function(e,t,r,n){var i=2*t,a=2*r;return e[i]>1;r>=1;r--)Q(e,a,r);i=l;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Q(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,Q(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Y(e,t),q(a,u,e.bl_count)},re=function(e,t,r){var n,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=t[2*(n+1)+1],++s=3;t--)if(0!==e.bl_tree[2*S[t]+1])break;return e.opt_len+=3*(t+1)+5+5+4,t},ae=function(e,t,r,n){var i;for(Z(e,t-257,5),Z(e,r-1,5),Z(e,n-4,4),i=0;i>>=1)if(1&i&&0!==e.dyn_ltree[2*t])return r;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return n;for(t=32;t0?(e.strm.data_type===i&&(e.strm.data_type=oe(e)),te(e,e.l_desc),te(e,e.d_desc),c=ie(e),o=e.opt_len+3+7>>>3,u=e.static_len+3+7>>>3,u<=o&&(o=u)):o=u=n+5,n+4<=o&&-1!==r?ue(e,r,n,a):e.strategy===t||u===o?(Z(e,(s<<1)+(a?1:0),3),ee(e,C,I)):(Z(e,(l<<1)+(a?1:0),3),ae(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),ee(e,e.dyn_ltree,e.dyn_dtree)),$(e),a&&W(e)},he=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(P[r]+h+1)]++,e.dyn_dtree[2*F(t)]++),e.last_lit===e.lit_bufsize-1},de=le,pe=ue,me=fe,ge=he,ve=ce,ye={_tr_init:de,_tr_stored_block:pe,_tr_flush_block:me,_tr_tally:ge,_tr_align:ve},be=function(e,t,r,n){var i=65535&e|0,a=e>>>16&65535|0,o=0;while(0!==r){o=r>2e3?2e3:r,r-=o;do{i=i+t[n++]|0,a=a+i|0}while(--o);i%=65521,a%=65521}return i|a<<16|0},we=be,_e=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t},xe=new Uint32Array(_e()),Ee=function(e,t,r,n){var i=xe,a=n+r;e^=-1;for(var o=n;o>>8^i[255&(e^t[o])];return-1^e},Te=Ee,ke={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Ae={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},Se=ye._tr_init,Oe=ye._tr_stored_block,Ce=ye._tr_flush_block,Ie=ye._tr_tally,Ne=ye._tr_align,Pe=Ae.Z_NO_FLUSH,Re=Ae.Z_PARTIAL_FLUSH,De=Ae.Z_FULL_FLUSH,ze=Ae.Z_FINISH,Me=Ae.Z_BLOCK,Le=Ae.Z_OK,Ue=Ae.Z_STREAM_END,je=Ae.Z_STREAM_ERROR,Fe=Ae.Z_DATA_ERROR,Be=Ae.Z_BUF_ERROR,Ze=Ae.Z_DEFAULT_COMPRESSION,Xe=Ae.Z_FILTERED,Ve=Ae.Z_HUFFMAN_ONLY,He=Ae.Z_RLE,Ye=Ae.Z_FIXED,qe=Ae.Z_DEFAULT_STRATEGY,Ge=Ae.Z_UNKNOWN,$e=Ae.Z_DEFLATED,We=9,Ke=15,Je=8,Qe=29,et=256,tt=et+1+Qe,rt=30,nt=19,it=2*tt+1,at=15,ot=3,st=258,lt=st+ot+1,ut=32,ct=42,ft=69,ht=73,dt=91,pt=103,mt=113,gt=666,vt=1,yt=2,bt=3,wt=4,_t=3,xt=function(e,t){return e.msg=ke[t],t},Et=function(e){return(e<<1)-(e>4?9:0)},Tt=function(e){var t=e.length;while(--t>=0)e[t]=0},kt=function(e,t,r){return(t<e.avail_out&&(r=e.avail_out),0!==r&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))},Ot=function(e,t){Ce(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,St(e.strm)},Ct=function(e,t){e.pending_buf[e.pending++]=t},It=function(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},Nt=function(e,t,r,n){var i=e.avail_in;return i>n&&(i=n),0===i?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),r),1===e.state.wrap?e.adler=we(e.adler,t,i,r):2===e.state.wrap&&(e.adler=Te(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)},Pt=function(e,t){var r,n,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-lt?e.strstart-(e.w_size-lt):0,u=e.window,c=e.w_mask,f=e.prev,h=e.strstart+st,d=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(r=t,u[r+o]===p&&u[r+o-1]===d&&u[r]===u[a]&&u[++r]===u[a+1]){a+=2,r++;do{}while(u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&ao){if(e.match_start=t,o=n,n>=s)break;d=u[a+o-1],p=u[a+o]}}}while((t=f[t&c])>l&&0!==--i);return o<=e.lookahead?o:e.lookahead},Rt=function(e){var t,r,n,i,a,o=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=o+(o-lt)){e.window.set(e.window.subarray(o,o+o),0),e.match_start-=o,e.strstart-=o,e.block_start-=o,r=e.hash_size,t=r;do{n=e.head[--t],e.head[t]=n>=o?n-o:0}while(--r);r=o,t=r;do{n=e.prev[--t],e.prev[t]=n>=o?n-o:0}while(--r);i+=o}if(0===e.strm.avail_in)break;if(r=Nt(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=r,e.lookahead+e.insert>=ot){a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=At(e,e.ins_h,e.window[a+1]);while(e.insert)if(e.ins_h=At(e,e.ins_h,e.window[a+ot-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,e.lookahead+e.inserte.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Rt(e),0===e.lookahead&&t===Pe)return vt;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,Ot(e,!1),0===e.strm.avail_out))return vt;if(e.strstart-e.block_start>=e.w_size-lt&&(Ot(e,!1),0===e.strm.avail_out))return vt}return e.insert=0,t===ze?(Ot(e,!0),0===e.strm.avail_out?bt:wt):(e.strstart>e.block_start&&(Ot(e,!1),e.strm.avail_out),vt)},zt=function(e,t){for(var r,n;;){if(e.lookahead=ot&&(e.ins_h=At(e,e.ins_h,e.window[e.strstart+ot-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-lt&&(e.match_length=Pt(e,r)),e.match_length>=ot)if(n=Ie(e,e.strstart-e.match_start,e.match_length-ot),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ot){e.match_length--;do{e.strstart++,e.ins_h=At(e,e.ins_h,e.window[e.strstart+ot-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=At(e,e.ins_h,e.window[e.strstart+1]);else n=Ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(Ot(e,!1),0===e.strm.avail_out))return vt}return e.insert=e.strstart=ot&&(e.ins_h=At(e,e.ins_h,e.window[e.strstart+ot-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ot-1,0!==r&&e.prev_length4096)&&(e.match_length=ot-1)),e.prev_length>=ot&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-ot,n=Ie(e,e.strstart-1-e.prev_match,e.prev_length-ot),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=At(e,e.ins_h,e.window[e.strstart+ot-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=ot-1,e.strstart++,n&&(Ot(e,!1),0===e.strm.avail_out))return vt}else if(e.match_available){if(n=Ie(e,0,e.window[e.strstart-1]),n&&Ot(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return vt}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Ie(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart=ot&&e.strstart>0&&(i=e.strstart-1,n=o[i],n===o[++i]&&n===o[++i]&&n===o[++i])){a=e.strstart+st;do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ot?(r=Ie(e,1,e.match_length-ot),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Ot(e,!1),0===e.strm.avail_out))return vt}return e.insert=0,t===ze?(Ot(e,!0),0===e.strm.avail_out?bt:wt):e.last_lit&&(Ot(e,!1),0===e.strm.avail_out)?vt:yt},Ut=function(e,t){for(var r;;){if(0===e.lookahead&&(Rt(e),0===e.lookahead)){if(t===Pe)return vt;break}if(e.match_length=0,r=Ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Ot(e,!1),0===e.strm.avail_out))return vt}return e.insert=0,t===ze?(Ot(e,!0),0===e.strm.avail_out?bt:wt):e.last_lit&&(Ot(e,!1),0===e.strm.avail_out)?vt:yt};function jt(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}var Ft=[new jt(0,0,0,0,Dt),new jt(4,4,8,4,zt),new jt(4,5,16,8,zt),new jt(4,6,32,32,zt),new jt(4,4,16,16,Mt),new jt(8,16,32,32,Mt),new jt(8,16,128,128,Mt),new jt(8,32,128,256,Mt),new jt(32,128,258,1024,Mt),new jt(32,258,258,4096,Mt)],Bt=function(e){e.window_size=2*e.w_size,Tt(e.head),e.max_lazy_match=Ft[e.level].max_lazy,e.good_match=Ft[e.level].good_length,e.nice_match=Ft[e.level].nice_length,e.max_chain_length=Ft[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ot-1,e.match_available=0,e.ins_h=0};function Zt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=$e,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(2*it),this.dyn_dtree=new Uint16Array(2*(2*rt+1)),this.bl_tree=new Uint16Array(2*(2*nt+1)),Tt(this.dyn_ltree),Tt(this.dyn_dtree),Tt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(at+1),this.heap=new Uint16Array(2*tt+1),Tt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*tt+1),Tt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Xt=function(e){if(!e||!e.state)return xt(e,je);e.total_in=e.total_out=0,e.data_type=Ge;var t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?ct:mt,e.adler=2===t.wrap?0:1,t.last_flush=Pe,Se(t),Le},Vt=function(e){var t=Xt(e);return t===Le&&Bt(e.state),t},Ht=function(e,t){return e&&e.state?2!==e.state.wrap?je:(e.state.gzhead=t,Le):je},Yt=function(e,t,r,n,i,a){if(!e)return je;var o=1;if(t===Ze&&(t=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),i<1||i>We||r!==$e||n<8||n>15||t<0||t>9||a<0||a>Ye)return xt(e,je);8===n&&(n=9);var s=new Zt;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=n,s.w_size=1<Me||t<0)return e?xt(e,je):je;var i=e.state;if(!e.output||!e.input&&0!==e.avail_in||i.status===gt&&t!==ze)return xt(e,0===e.avail_out?Be:je);i.strm=e;var a=i.last_flush;if(i.last_flush=t,i.status===ct)if(2===i.wrap)e.adler=0,Ct(i,31),Ct(i,139),Ct(i,8),i.gzhead?(Ct(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Ct(i,255&i.gzhead.time),Ct(i,i.gzhead.time>>8&255),Ct(i,i.gzhead.time>>16&255),Ct(i,i.gzhead.time>>24&255),Ct(i,9===i.level?2:i.strategy>=Ve||i.level<2?4:0),Ct(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(Ct(i,255&i.gzhead.extra.length),Ct(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Te(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=ft):(Ct(i,0),Ct(i,0),Ct(i,0),Ct(i,0),Ct(i,0),Ct(i,9===i.level?2:i.strategy>=Ve||i.level<2?4:0),Ct(i,_t),i.status=mt);else{var o=$e+(i.w_bits-8<<4)<<8,s=-1;s=i.strategy>=Ve||i.level<2?0:i.level<6?1:6===i.level?2:3,o|=s<<6,0!==i.strstart&&(o|=ut),o+=31-o%31,i.status=mt,It(i,o),0!==i.strstart&&(It(i,e.adler>>>16),It(i,65535&e.adler)),e.adler=1}if(i.status===ft)if(i.gzhead.extra){r=i.pending;while(i.gzindex<(65535&i.gzhead.extra.length)){if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(e.adler=Te(e.adler,i.pending_buf,i.pending-r,r)),St(e),r=i.pending,i.pending===i.pending_buf_size))break;Ct(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++}i.gzhead.hcrc&&i.pending>r&&(e.adler=Te(e.adler,i.pending_buf,i.pending-r,r)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=ht)}else i.status=ht;if(i.status===ht)if(i.gzhead.name){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(e.adler=Te(e.adler,i.pending_buf,i.pending-r,r)),St(e),r=i.pending,i.pending===i.pending_buf_size)){n=1;break}n=i.gzindexr&&(e.adler=Te(e.adler,i.pending_buf,i.pending-r,r)),0===n&&(i.gzindex=0,i.status=dt)}else i.status=dt;if(i.status===dt)if(i.gzhead.comment){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(e.adler=Te(e.adler,i.pending_buf,i.pending-r,r)),St(e),r=i.pending,i.pending===i.pending_buf_size)){n=1;break}n=i.gzindexr&&(e.adler=Te(e.adler,i.pending_buf,i.pending-r,r)),0===n&&(i.status=pt)}else i.status=pt;if(i.status===pt&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&St(e),i.pending+2<=i.pending_buf_size&&(Ct(i,255&e.adler),Ct(i,e.adler>>8&255),e.adler=0,i.status=mt)):i.status=mt),0!==i.pending){if(St(e),0===e.avail_out)return i.last_flush=-1,Le}else if(0===e.avail_in&&Et(t)<=Et(a)&&t!==ze)return xt(e,Be);if(i.status===gt&&0!==e.avail_in)return xt(e,Be);if(0!==e.avail_in||0!==i.lookahead||t!==Pe&&i.status!==gt){var l=i.strategy===Ve?Ut(i,t):i.strategy===He?Lt(i,t):Ft[i.level].func(i,t);if(l!==bt&&l!==wt||(i.status=gt),l===vt||l===bt)return 0===e.avail_out&&(i.last_flush=-1),Le;if(l===yt&&(t===Re?Ne(i):t!==Me&&(Oe(i,0,0,!1),t===De&&(Tt(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),St(e),0===e.avail_out))return i.last_flush=-1,Le}return t!==ze?Le:i.wrap<=0?Ue:(2===i.wrap?(Ct(i,255&e.adler),Ct(i,e.adler>>8&255),Ct(i,e.adler>>16&255),Ct(i,e.adler>>24&255),Ct(i,255&e.total_in),Ct(i,e.total_in>>8&255),Ct(i,e.total_in>>16&255),Ct(i,e.total_in>>24&255)):(It(i,e.adler>>>16),It(i,65535&e.adler)),St(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?Le:Ue)},$t=function(e){if(!e||!e.state)return je;var t=e.state.status;return t!==ct&&t!==ft&&t!==ht&&t!==dt&&t!==pt&&t!==mt&&t!==gt?xt(e,je):(e.state=null,t===mt?xt(e,Fe):Le)},Wt=function(e,t){var r=t.length;if(!e||!e.state)return je;var n=e.state,i=n.wrap;if(2===i||1===i&&n.status!==ct||n.lookahead)return je;if(1===i&&(e.adler=we(e.adler,t,r,0)),n.wrap=0,r>=n.w_size){0===i&&(Tt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var a=new Uint8Array(n.w_size);a.set(t.subarray(r-n.w_size,r),0),t=a,r=n.w_size}var o=e.avail_in,s=e.next_in,l=e.input;e.avail_in=r,e.next_in=0,e.input=t,Rt(n);while(n.lookahead>=ot){var u=n.strstart,c=n.lookahead-(ot-1);do{n.ins_h=At(n,n.ins_h,n.window[u+ot-1]),n.prev[u&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=u,u++}while(--c);n.strstart=u,n.lookahead=ot-1,Rt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=ot-1,n.match_available=0,e.next_in=s,e.input=l,e.avail_in=o,n.wrap=i,Le},Kt=qt,Jt=Yt,Qt=Vt,er=Xt,tr=Ht,rr=Gt,nr=$t,ir=Wt,ar="pako deflate (from Nodeca project)",or={deflateInit:Kt,deflateInit2:Jt,deflateReset:Qt,deflateResetKeep:er,deflateSetHeader:tr,deflate:rr,deflateEnd:nr,deflateSetDictionary:ir,deflateInfo:ar};function sr(e){return sr="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},sr(e)}var lr=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},ur=function(e){var t=Array.prototype.slice.call(arguments,1);while(t.length){var r=t.shift();if(r){if("object"!==sr(r))throw new TypeError(r+"must be non-object");for(var n in r)lr(r,n)&&(e[n]=r[n])}}return e},cr=function(e){for(var t=0,r=0,n=e.length;r=252?6:pr>=248?5:pr>=240?4:pr>=224?3:pr>=192?2:1;dr[254]=dr[254]=1;var mr=function(e){if("function"===typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);var t,r,n,i,a,o=e.length,s=0;for(i=0;i>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t},gr=function(e,t){if(t<65534&&e.subarray&&hr)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));for(var r="",n=0;n4)a[n++]=65533,r+=s-1;else{o&=2===s?31:3===s?15:7;while(s>1&&r1?a[n++]=65533:o<65536?a[n++]=o:(o-=65536,a[n++]=55296|o>>10&1023,a[n++]=56320|1023&o)}}}return gr(a,n)},yr=function(e,t){t=t||e.length,t>e.length&&(t=e.length);var r=t-1;while(r>=0&&128===(192&e[r]))r--;return r<0||0===r?t:r+dr[e[r]]>t?r:t},br={string2buf:mr,buf2string:vr,utf8border:yr};function wr(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var _r=wr,xr=Object.prototype.toString,Er=Ae.Z_NO_FLUSH,Tr=Ae.Z_SYNC_FLUSH,kr=Ae.Z_FULL_FLUSH,Ar=Ae.Z_FINISH,Sr=Ae.Z_OK,Or=Ae.Z_STREAM_END,Cr=Ae.Z_DEFAULT_COMPRESSION,Ir=Ae.Z_DEFAULT_STRATEGY,Nr=Ae.Z_DEFLATED;function Pr(e){this.options=fr.assign({level:Cr,method:Nr,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ir},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _r,this.strm.avail_out=0;var r=or.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Sr)throw new Error(ke[r]);if(t.header&&or.deflateSetHeader(this.strm,t.header),t.dictionary){var n;if(n="string"===typeof t.dictionary?br.string2buf(t.dictionary):"[object ArrayBuffer]"===xr.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,r=or.deflateSetDictionary(this.strm,n),r!==Sr)throw new Error(ke[r]);this._dict_set=!0}}function Rr(e,t){var r=new Pr(t);if(r.push(e,!0),r.err)throw r.msg||ke[r.err];return r.result}function Dr(e,t){return t=t||{},t.raw=!0,Rr(e,t)}function zr(e,t){return t=t||{},t.gzip=!0,Rr(e,t)}Pr.prototype.push=function(e,t){var r,n,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;for(n=t===~~t?t:!0===t?Ar:Er,"string"===typeof e?i.input=br.string2buf(e):"[object ArrayBuffer]"===xr.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(a),i.next_out=0,i.avail_out=a),(n===Tr||n===kr)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if(r=or.deflate(i,n),r===Or)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),r=or.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Sr;if(0!==i.avail_out){if(n>0&&i.next_out>0)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},Pr.prototype.onData=function(e){this.chunks.push(e)},Pr.prototype.onEnd=function(e){e===Sr&&(this.result=fr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Mr=Pr,Lr=Rr,Ur=Dr,jr=zr,Fr=Ae,Br={Deflate:Mr,deflate:Lr,deflateRaw:Ur,gzip:jr,constants:Fr},Zr=30,Xr=12,Vr=function(e,t){var r,n,i,a,o,s,l,u,c,f,h,d,p,m,g,v,y,b,w,_,x,E,T,k,A=e.state;r=e.next_in,T=e.input,n=r+(e.avail_in-5),i=e.next_out,k=e.output,a=i-(t-e.avail_out),o=i+(e.avail_out-257),s=A.dmax,l=A.wsize,u=A.whave,c=A.wnext,f=A.window,h=A.hold,d=A.bits,p=A.lencode,m=A.distcode,g=(1<>>24,h>>>=b,d-=b,b=y>>>16&255,0===b)k[i++]=65535&y;else{if(!(16&b)){if(0===(64&b)){y=p[(65535&y)+(h&(1<>>=b,d-=b),d<15&&(h+=T[r++]<>>24,h>>>=b,d-=b,b=y>>>16&255,!(16&b)){if(0===(64&b)){y=m[(65535&y)+(h&(1<s){e.msg="invalid distance too far back",A.mode=Zr;break e}if(h>>>=b,d-=b,b=i-a,_>b){if(b=_-b,b>u&&A.sane){e.msg="invalid distance too far back",A.mode=Zr;break e}if(x=0,E=f,0===c){if(x+=l-b,b2)k[i++]=E[x++],k[i++]=E[x++],k[i++]=E[x++],w-=3;w&&(k[i++]=E[x++],w>1&&(k[i++]=E[x++]))}else{x=i-_;do{k[i++]=k[x++],k[i++]=k[x++],k[i++]=k[x++],w-=3}while(w>2);w&&(k[i++]=k[x++],w>1&&(k[i++]=k[x++]))}break}}break}}while(r>3,r-=w,d-=w<<3,h&=(1<=1;_--)if(0!==I[_])break;if(x>_&&(x=_),0===_)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(w=1;w<_;w++)if(0!==I[w])break;for(x0&&(e===Gr||1!==_))return-1;for(N[1]=0,y=1;yYr||e===Wr&&A>qr)return 1;for(;;){p=y-T,o[b]d?(m=P[R+o[b]],g=O[C+o[b]]):(m=96,g=0),l=1<>T)+u]=p<<24|m<<16|g|0}while(0!==u);l=1<>=1;if(0!==l?(S&=l-1,S+=l):S=0,b++,0===--I[y]){if(y===_)break;y=t[r+o[b]]}if(y>x&&(S&f)!==c){0===T&&(T=x),h+=w,E=y-T,k=1<Yr||e===Wr&&A>qr)return 1;c=S&f,i[c]=x<<24|E<<16|h-a|0}}return 0!==S&&(i[h+S]=y-T<<24|64<<16|0),s.bits=x,0},rn=tn,nn=0,an=1,on=2,sn=Ae.Z_FINISH,ln=Ae.Z_BLOCK,un=Ae.Z_TREES,cn=Ae.Z_OK,fn=Ae.Z_STREAM_END,hn=Ae.Z_NEED_DICT,dn=Ae.Z_STREAM_ERROR,pn=Ae.Z_DATA_ERROR,mn=Ae.Z_MEM_ERROR,gn=Ae.Z_BUF_ERROR,vn=Ae.Z_DEFLATED,yn=1,bn=2,wn=3,_n=4,xn=5,En=6,Tn=7,kn=8,An=9,Sn=10,On=11,Cn=12,In=13,Nn=14,Pn=15,Rn=16,Dn=17,zn=18,Mn=19,Ln=20,Un=21,jn=22,Fn=23,Bn=24,Zn=25,Xn=26,Vn=27,Hn=28,Yn=29,qn=30,Gn=31,$n=32,Wn=852,Kn=592,Jn=15,Qn=Jn,ei=function(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)};function ti(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var ri,ni,ii=function(e){if(!e||!e.state)return dn;var t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=yn,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(Wn),t.distcode=t.distdyn=new Int32Array(Kn),t.sane=1,t.back=-1,cn},ai=function(e){if(!e||!e.state)return dn;var t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,ii(e)},oi=function(e,t){var r;if(!e||!e.state)return dn;var n=e.state;return t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?dn:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,ai(e))},si=function(e,t){if(!e)return dn;var r=new ti;e.state=r,r.window=null;var n=oi(e,t);return n!==cn&&(e.state=null),n},li=function(e){return si(e,Qn)},ui=!0,ci=function(e){if(ui){ri=new Int32Array(512),ni=new Int32Array(32);var t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;rn(an,e.lens,0,288,ri,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;rn(on,e.lens,0,32,ni,0,e.work,{bits:5}),ui=!1}e.lencode=ri,e.lenbits=9,e.distcode=ni,e.distbits=5},fi=function(e,t,r,n){var i,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(a.window.set(t.subarray(r-a.wsize,r),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>n&&(i=n),a.window.set(t.subarray(r-n,r-n+i),a.wnext),n-=i,n?(a.window.set(t.subarray(r-n,r),0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,r.check=Te(r.check,S,2,0),u=0,c=0,r.mode=bn;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=qn;break}if((15&u)!==vn){e.msg="unknown compression method",r.mode=qn;break}if(u>>>=4,c-=4,x=8+(15&u),0===r.wbits)r.wbits=x;else if(x>r.wbits){e.msg="invalid window size",r.mode=qn;break}r.dmax=1<>8&1),512&r.flags&&(S[0]=255&u,S[1]=u>>>8&255,r.check=Te(r.check,S,2,0)),u=0,c=0,r.mode=wn;case wn:while(c<32){if(0===s)break e;s--,u+=n[a++]<>>8&255,S[2]=u>>>16&255,S[3]=u>>>24&255,r.check=Te(r.check,S,4,0)),u=0,c=0,r.mode=_n;case _n:while(c<16){if(0===s)break e;s--,u+=n[a++]<>8),512&r.flags&&(S[0]=255&u,S[1]=u>>>8&255,r.check=Te(r.check,S,2,0)),u=0,c=0,r.mode=xn;case xn:if(1024&r.flags){while(c<16){if(0===s)break e;s--,u+=n[a++]<>>8&255,r.check=Te(r.check,S,2,0)),u=0,c=0}else r.head&&(r.head.extra=null);r.mode=En;case En:if(1024&r.flags&&(d=r.length,d>s&&(d=s),d&&(r.head&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(a,a+d),x)),512&r.flags&&(r.check=Te(r.check,n,d,a)),s-=d,a+=d,r.length-=d),r.length))break e;r.length=0,r.mode=Tn;case Tn:if(2048&r.flags){if(0===s)break e;d=0;do{x=n[a+d++],r.head&&x&&r.length<65536&&(r.head.name+=String.fromCharCode(x))}while(x&&d>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Cn;break;case Sn:while(c<32){if(0===s)break e;s--,u+=n[a++]<>>=7&c,c-=7&c,r.mode=Vn;break}while(c<3){if(0===s)break e;s--,u+=n[a++]<>>=1,c-=1,3&u){case 0:r.mode=Nn;break;case 1:if(ci(r),r.mode=Ln,t===un){u>>>=2,c-=2;break e}break;case 2:r.mode=Dn;break;case 3:e.msg="invalid block type",r.mode=qn}u>>>=2,c-=2;break;case Nn:u>>>=7&c,c-=7&c;while(c<32){if(0===s)break e;s--,u+=n[a++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=qn;break}if(r.length=65535&u,u=0,c=0,r.mode=Pn,t===un)break e;case Pn:r.mode=Rn;case Rn:if(d=r.length,d){if(d>s&&(d=s),d>l&&(d=l),0===d)break e;i.set(n.subarray(a,a+d),o),s-=d,a+=d,l-=d,o+=d,r.length-=d;break}r.mode=Cn;break;case Dn:while(c<14){if(0===s)break e;s--,u+=n[a++]<>>=5,c-=5,r.ndist=1+(31&u),u>>>=5,c-=5,r.ncode=4+(15&u),u>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=qn;break}r.have=0,r.mode=zn;case zn:while(r.have>>=3,c-=3}while(r.have<19)r.lens[O[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,T={bits:r.lenbits},E=rn(nn,r.lens,0,19,r.lencode,0,r.work,T),r.lenbits=T.bits,E){e.msg="invalid code lengths set",r.mode=qn;break}r.have=0,r.mode=Mn;case Mn:while(r.have>>24,v=A>>>16&255,y=65535&A,g<=c)break;if(0===s)break e;s--,u+=n[a++]<>>=g,c-=g,r.lens[r.have++]=y;else{if(16===y){k=g+2;while(c>>=g,c-=g,0===r.have){e.msg="invalid bit length repeat",r.mode=qn;break}x=r.lens[r.have-1],d=3+(3&u),u>>>=2,c-=2}else if(17===y){k=g+3;while(c>>=g,c-=g,x=0,d=3+(7&u),u>>>=3,c-=3}else{k=g+7;while(c>>=g,c-=g,x=0,d=11+(127&u),u>>>=7,c-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=qn;break}while(d--)r.lens[r.have++]=x}}if(r.mode===qn)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=qn;break}if(r.lenbits=9,T={bits:r.lenbits},E=rn(an,r.lens,0,r.nlen,r.lencode,0,r.work,T),r.lenbits=T.bits,E){e.msg="invalid literal/lengths set",r.mode=qn;break}if(r.distbits=6,r.distcode=r.distdyn,T={bits:r.distbits},E=rn(on,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,T),r.distbits=T.bits,E){e.msg="invalid distances set",r.mode=qn;break}if(r.mode=Ln,t===un)break e;case Ln:r.mode=Un;case Un:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,r.hold=u,r.bits=c,Vr(e,h),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,n=e.input,s=e.avail_in,u=r.hold,c=r.bits,r.mode===Cn&&(r.back=-1);break}for(r.back=0;;){if(A=r.lencode[u&(1<>>24,v=A>>>16&255,y=65535&A,g<=c)break;if(0===s)break e;s--,u+=n[a++]<>b)],g=A>>>24,v=A>>>16&255,y=65535&A,b+g<=c)break;if(0===s)break e;s--,u+=n[a++]<>>=b,c-=b,r.back+=b}if(u>>>=g,c-=g,r.back+=g,r.length=y,0===v){r.mode=Xn;break}if(32&v){r.back=-1,r.mode=Cn;break}if(64&v){e.msg="invalid literal/length code",r.mode=qn;break}r.extra=15&v,r.mode=jn;case jn:if(r.extra){k=r.extra;while(c>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Fn;case Fn:for(;;){if(A=r.distcode[u&(1<>>24,v=A>>>16&255,y=65535&A,g<=c)break;if(0===s)break e;s--,u+=n[a++]<>b)],g=A>>>24,v=A>>>16&255,y=65535&A,b+g<=c)break;if(0===s)break e;s--,u+=n[a++]<>>=b,c-=b,r.back+=b}if(u>>>=g,c-=g,r.back+=g,64&v){e.msg="invalid distance code",r.mode=qn;break}r.offset=y,r.extra=15&v,r.mode=Bn;case Bn:if(r.extra){k=r.extra;while(c>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=qn;break}r.mode=Zn;case Zn:if(0===l)break e;if(d=h-l,r.offset>d){if(d=r.offset-d,d>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=qn;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=i,p=o-r.offset,d=r.length;d>l&&(d=l),l-=d,r.length-=d;do{i[o++]=m[p++]}while(--d);0===r.length&&(r.mode=Un);break;case Xn:if(0===l)break e;i[o++]=r.length,l--,r.mode=Un;break;case Vn:if(r.wrap){while(c<32){if(0===s)break e;s--,u|=n[a++]<=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _r,this.strm.avail_out=0;var r=Ai.inflateInit2(this.strm,t.windowBits);if(r!==Pi)throw new Error(ke[r]);if(this.header=new Oi,Ai.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"===typeof t.dictionary?t.dictionary=br.string2buf(t.dictionary):"[object ArrayBuffer]"===Ci.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Ai.inflateSetDictionary(this.strm,t.dictionary),r!==Pi)))throw new Error(ke[r])}function ji(e,t){var r=new Ui(t);if(r.push(e),r.err)throw r.msg||ke[r.err];return r.result}function Fi(e,t){return t=t||{},t.raw=!0,ji(e,t)}Ui.prototype.push=function(e,t){var r,n,i,a=this.strm,o=this.options.chunkSize,s=this.options.dictionary;if(this.ended)return!1;for(n=t===~~t?t:!0===t?Ni:Ii,"[object ArrayBuffer]"===Ci.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;;){0===a.avail_out&&(a.output=new Uint8Array(o),a.next_out=0,a.avail_out=o),r=Ai.inflate(a,n),r===Di&&s&&(r=Ai.inflateSetDictionary(a,s),r===Pi?r=Ai.inflate(a,n):r===Mi&&(r=Di));while(a.avail_in>0&&r===Ri&&a.state.wrap>0&&0!==e[a.next_in])Ai.inflateReset(a),r=Ai.inflate(a,n);switch(r){case zi:case Mi:case Di:case Li:return this.onEnd(r),this.ended=!0,!1}if(i=a.avail_out,a.next_out&&(0===a.avail_out||r===Ri))if("string"===this.options.to){var l=br.utf8border(a.output,a.next_out),u=a.next_out-l,c=br.buf2string(a.output,l);a.next_out=u,a.avail_out=o-u,u&&a.output.set(a.output.subarray(l,l+u),0),this.onData(c)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(r!==Pi||0!==i){if(r===Ri)return r=Ai.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},Ui.prototype.onData=function(e){this.chunks.push(e)},Ui.prototype.onEnd=function(e){e===Pi&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=fr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Bi=Ui,Zi=ji,Xi=Fi,Vi=ji,Hi=Ae,Yi={Inflate:Bi,inflate:Zi,inflateRaw:Xi,ungzip:Vi,constants:Hi},qi=Br.Deflate,Gi=Br.deflate,$i=Br.deflateRaw,Wi=Br.gzip,Ki=Yi.Inflate,Ji=Yi.inflate,Qi=Yi.inflateRaw,ea=Yi.ungzip,ta=qi,ra=Gi,na=$i,ia=Wi,aa=Ki,oa=Ji,sa=Qi,la=ea,ua=Ae,ca={Deflate:ta,deflate:ra,deflateRaw:na,gzip:ia,Inflate:aa,inflate:oa,inflateRaw:sa,ungzip:la,constants:ua};e.Deflate=ta,e.Inflate=aa,e.constants=ua,e["default"]=ca,e.deflate=ra,e.deflateRaw=na,e.gzip=ia,e.inflate=oa,e.inflateRaw=sa,e.ungzip=la,Object.defineProperty(e,"__esModule",{value:!0})}))},"210b":function(e,t,r){var n=r("e1c8");t.DOMImplementation=n.DOMImplementation,t.XMLSerializer=n.XMLSerializer,t.DOMParser=r("b074").DOMParser},"21a6":function(e,t,r){(function(r){var n,i,a;(function(r,o){i=[],n=o,a="function"===typeof n?n.apply(t,i):n,void 0===a||(e.exports=a)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.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(["\ufeff",e],{type:e.type}):e}function n(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){l(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){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 o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r&&r.global===r?r:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,r){var s=o.URL||o.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?a(l):i(l.href)?n(e,t,r):a(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){a(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,r,o){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,o),r);else if(i(e))n(e,r,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){a(s)}))}}:function(e,t,r,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return n(e,t,r);var a="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&l||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},c.readAsDataURL(e)}else{var f=o.URL||o.webkitURL,h=f.createObjectURL(e);i?i.location=h:location.href=h,i=null,setTimeout((function(){f.revokeObjectURL(h)}),4e4)}});o.saveAs=l.saveAs=l,e.exports=l}))}).call(this,r("c8ba"))},2522:function(e,t,r){"use strict";var n=r("50a1"),i=r("5558"),a=i.isTextStart,o=i.isTextEnd,s=i.endsWith,l=i.startsWith,u='',c=u.length,f="",h=f.length;function d(e){return a(e)&&"w:t"===e.tag}function p(e,t){var r=e[t].value;return""===e[t+1].value||-1!==r.indexOf('xml:space="preserve"')?r:r.substr(0,r.length-1)+' xml:space="preserve">'}function m(e,t){return e&&e.basePart&&t.length>1}var g={name:"SpacePreserveModule",postparse:function(e,t){var r=[],n=!1,i=0,a=0;function s(e,t){return"placeholder"===e.type&&(!e.module||"loop"===e.module)&&t.length>1}var l=e.reduce((function(e,l){return d(l)&&(n=!0,a=r.length),n?(r.push(l),m(t,r)&&(i=t.basePart.endLindex,r[0].value=p(r,0)),s(l,r)&&(r[a].value=p(r,a),i=l.endLindex),o(l)&&l.lIndex>i&&(0!==i&&(r[a].value=p(r,a)),Array.prototype.push.apply(e,r),r=[],n=!1,i=0,a=0),e):(e.push(l),e)}),[]);return Array.prototype.push.apply(l,r),l},postrender:function(e){for(var t="",r=0,n=0,i=e.length;n",o=o.substr(h)),t=o,r=a,e[n]=o)}return e}};e.exports=function(){return n(g)}},"309c":function(e,t,r){"use strict";var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(e){var t,r,i,a,o,s,l,u="",c=0;while(c>2,o=(3&t)<<4|r>>4,s=(15&r)<<2|i>>6,l=63&i,isNaN(r)?s=l=64:isNaN(i)&&(l=64),u=u+n.charAt(a)+n.charAt(o)+n.charAt(s)+n.charAt(l);return u},t.decode=function(e){var t,r,i,a,o,s,l,u="",c=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(c>4,r=(15&o)<<4|s>>2,i=(3&s)<<6|l,u+=String.fromCharCode(t),64!==s&&(u+=String.fromCharCode(r)),64!==l&&(u+=String.fromCharCode(i));return u}},3101:function(e,t,r){"use strict";function n(e){return s(e)||o(e)||a(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(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}}function o(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e){if(Array.isArray(e))return l(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},"3a82":function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0){var l=null;return s.forEach((function(e){e.priority=e.priority||-e.value.length,(!l||e.priority>l.priority)&&(l=e)})),l.offset=i,delete l.priority,l.endLindex=a,l.lIndex=a,l.raw=e,l.onMatch&&l.onMatch(l),delete l.onMatch,delete l.prefix,l}for(var u=0,c=n.length;u0){var f=v(a);r=r.concat(f.errors),a=f.traits}if(r.length>0)return{pairs:n,errors:r};i=0;for(var h=0;h=0?i:0}return{pairs:n,errors:r}}var b={name:"ExpandPairTrait",optionsTransformer:function(e,t){return this.expandTags=t.fileTypeConfig.expandTags.concat(t.options.paragraphLoop?t.fileTypeConfig.onParagraphLoop:[]),e},postparse:function(e,t){var r=this,a=t.getTraits,l=t.postparse,u=a(n,e);u=u.map((function(e){return e||[]})),u=i(u);var f=y(u),h=f.pairs,d=f.errors,m=0,g=null,v=h.map((function(t){var n,i,a=t[0].part.expandTo;if("auto"===a){var l=c(e,t,r.expandTags);l.error&&d.push(l.error),a=l.value}if(!a){var u=t[0].offset,f=t[1].offset;return u0)return{postparsed:e,errors:d};var b,w=0,_=e.reduce((function(t,r,n){var i=we.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?i[o-1].right:0),!(a.left]*>)([^<>]*))|(<(?:").concat(n,")[^>]*/>)"),"g");return r.matches=i(a,r.content),r}},"50a1":function(e,t,r){"use strict";var n=r("c838"),i=n.XTInternalError;function a(){}function o(e){return e}e.exports=function(e){var t={set:a,matchers:function(){return[]},parse:a,render:a,getTraits:a,getFileType:a,nullGetter:a,optionsTransformer:o,postrender:o,errorsTransformer:o,getRenderedMap:o,preparse:o,postparse:o,on:a,resolve:a};if(Object.keys(t).every((function(t){return!e[t]}))){var r=new i("This module cannot be wrapped, because it doesn't define any of the necessary functions");throw r.properties={id:"module_cannot_be_wrapped",explanation:"This module cannot be wrapped, because it doesn't define any of the necessary functions"},r}return Object.keys(t).forEach((function(r){e[r]=e[r]||t[r]})),e}},5114:function(e,t,r){"use strict";var n=r("c113"),i=r("2522"),a=r("037e"),o=r("3be1"),s=r("a6b4");function l(){return{getTemplatedFiles:function(){return[]},textPath:function(e){return e.targets[0]},tagsXmlTextArray:["Company","HyperlinkBase","Manager","cp:category","cp:keywords","dc:creator","dc:description","dc:subject","dc:title","w:t","m:t","vt:lpstr","vt:lpwstr"],tagsXmlLexedArray:["w:proofState","w:tc","w:tr","w:table","w:p","w:r","w:br","w:rPr","w:pPr","w:spacing","w:sdtContent","w:drawing","w:sectPr","w:type","w:headerReference","w:footerReference"],expandTags:[{contains:"w:tc",expand:"w:tr"}],onParagraphLoop:[{contains:"w:p",expand:"w:p",onlyTextInTag:!0}],tagRawXml:"w:p",baseModules:[n,i,o,a,s],tagShouldContain:[{tag:"w:tc",shouldContain:["w:p"],value:""},{tag:"w:sdtContent",shouldContain:["w:p","w:r"],value:""}]}}function u(){return{getTemplatedFiles:function(){return[]},textPath:function(e){return e.targets[0]},tagsXmlTextArray:["Company","HyperlinkBase","Manager","cp:category","cp:keywords","dc:creator","dc:description","dc:subject","dc:title","a:t","m:t","vt:lpstr","vt:lpwstr"],tagsXmlLexedArray:["p:sp","a:tc","a:tr","a:table","a:p","a:r","a:rPr","p:txBody","a:txBody","a:off","a:ext","p:graphicFrame","p:xfrm","a16:rowId"],expandTags:[{contains:"a:tc",expand:"a:tr"}],onParagraphLoop:[{contains:"a:p",expand:"a:p",onlyTextInTag:!0}],tagRawXml:"p:sp",baseModules:[n,o,a,s],tagShouldContain:[{tag:"p:txBody",shouldContain:["a:p"],value:""},{tag:"a:txBody",shouldContain:["a:p"],value:""}]}}e.exports={docx:l,pptx:u}},"547c":function(e,t,r){"use strict";var n=r("309c");function i(e,t){if(!(this instanceof i))return new i(e,t);this.files={},this.comment=null,this.root="",e&&this.load(e,t),this.clone=function(){var e=new i;for(var t in this)"function"!==typeof this[t]&&(e[t]=this[t]);return e}}i.prototype=r("73e2"),i.prototype.load=r("07ec"),i.support=r("fdf0"),i.defaults=r("189c"),i.utils=r("be27"),i.base64={encode:function(e){return n.encode(e)},decode:function(e){return n.decode(e)}},i.compressions=r("e6bb"),e.exports=i},5558:function(e,t,r){"use strict";function n(e,t){return l(e)||s(e,t)||a(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"===typeof e)return o(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)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r");return-1===i&&(i=e.lastIndexOf(">")),e.substr(0,i)+" ".concat(t,'="').concat(r,'"')+e.substr(i)}function w(e,t){var r=e.indexOf(" ".concat(t,'="'));if(-1===r)return null;var n=e.substr(r).search(/["']/)+r,i=e.substr(n+1).search(/["']/)+n;return e.substr(n+1,i-n)}function _(e,t){return-1!==e.indexOf(t,e.length-t.length)}function x(e,t){return e.substring(0,t.length)===t}function E(e){for(var t={},r=[],n=0,i=e.length;n0}))}var k={errorLogging:"json",paragraphLoop:!1,nullGetter:function(e){return e.module?"":"undefined"},xmlFileNames:["[Content_Types].xml"],parser:v,linebreaks:!1,fileTypeConfig:null,delimiters:{start:"{",end:"}"}};function A(){for(var e,t,r={},n=0;n",">"],['"',"""],["'","'"]],I=C.map((function(e){var t=n(e,2),r=t[0],i=t[1];return{rstart:new RegExp(i,"g"),rend:new RegExp(r,"g"),start:i,end:r}}));function N(e){for(var t,r=I.length-1;r>=0;r--)t=I[r],e=e.replace(t.rstart,t.end);return e}function P(e){var t;e=e.toString();for(var r=0,n=I.length;r"}function U(e,t){return 0===e.indexOf("<"+t)&&-1!==[">"," ","/"].indexOf(e[t.length+1])}function j(e,t,r){var n=F(e,t,r);if(null!==n)return n;d({position:"right",element:t,parsed:e,index:r})}function F(e,t,r){"string"===typeof t&&(t=[t]);for(var n=1,i=r,a=e.length;i=0;i--)for(var a=e[i],o=0,s=t.length;o1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e0)this.isSignature(r,l.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){var t=s.getTypeOf(e);if(s.checkSupport(t),"string"!==t||c.uint8array)if("nodebuffer"===t)this.reader=new i(e);else if(c.uint8array)this.reader=new a(s.transformTo("uint8array",e));else{if(!c.array)throw new Error("Unexpected error: unsupported type '"+t+"'");this.reader=new o(s.transformTo("array",e))}else this.reader=new n(e,this.loadOptions.optimizedBinaryString)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=f},"608e":function(e,t,r){"use strict";var n=r("e85b"),i=r("0e15b"),a=r("8bde"),o=r("73e2"),s=r("fdf0"),l=0,u=3;function c(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return 1===(1&this.bitFlag)},useUTF8:function(){return 2048===(2048&this.bitFlag)},prepareCompressedContent:function(e,t,r){return function(){var n=e.index;e.setIndex(t);var i=e.readData(r);return e.setIndex(n),i}},prepareContent:function(e,t,r,n,a){return function(){var e=i.transformTo(n.uncompressInputType,this.getCompressedContent()),t=n.uncompress(e);if(t.length!==a)throw new Error("Bug : uncompressed data size mismatch");return t}},readLocalPart:function(e){e.skip(22),this.fileNameLength=e.readInt(2);var t=e.readInt(2);if(this.fileName=e.readData(this.fileNameLength),e.skip(t),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");var r=i.findCompression(this.compressionMethod);if(null===r)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");if(this.decompressed=new a,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(e,e.index,this.compressedSize,r),this.decompressed.getContent=this.prepareContent(e,e.index,this.compressedSize,r,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=i.transformTo("string",this.decompressed.getContent()),o.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(e){if(this.versionMadeBy=e.readInt(2),this.versionNeeded=e.readInt(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4),this.fileNameLength=e.readInt(2),this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=e.readData(this.fileNameLength),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),e===l&&(this.dosPermissions=63&this.externalFileAttributes),e===u&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=new n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index;this.extraFields=this.extraFields||{};while(e.index>>=8;return n}function _(e){return e=e||{},!0!==e.base64||null!==e.binary&&void 0!==e.binary||(e.binary=!0),e=i.extend(e,s),e.date=e.date||new Date,null!==e.compression&&(e.compression=e.compression.toUpperCase()),e}function x(e,t,r){var n,a=i.getTypeOf(t);if(r=_(r),"string"===typeof r.unixPermissions&&(r.unixPermissions=parseInt(r.unixPermissions,8)),r.unixPermissions&&16384&r.unixPermissions&&(r.dir=!0),r.dosPermissions&&16&r.dosPermissions&&(r.dir=!0),r.dir&&(e=T(e)),r.createFolders&&(n=E(e))&&k.call(this,n,!0),r.dir||null===t||"undefined"===typeof t)r.base64=!1,r.binary=!1,t=null,a=null;else if("string"===a)r.binary&&!r.base64&&!0!==r.optimizedBinaryString&&(t=i.string2binary(t));else{if(r.base64=!1,r.binary=!0,!a&&!(t instanceof c))throw new Error("The data of '"+e+"' is in an unsupported format !");"arraybuffer"===a&&(t=i.transformTo("uint8array",t))}var o=new b(e,t,r);return this.files[e]=o,o}function E(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""}function T(e){return"/"!==e.slice(-1)&&(e+="/"),e}function k(e,t){return t="undefined"!==typeof t&&t,e=T(e),this.files[e]||x.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]}function A(e,t,r){var n,o=new c;return e._data instanceof c?(o.uncompressedSize=e._data.uncompressedSize,o.crc32=e._data.crc32,0===o.uncompressedSize||e.dir?(t=u.STORE,o.compressedContent="",o.crc32=0):e._data.compressionMethod===t.magic?o.compressedContent=e._data.getCompressedContent():(n=e._data.getContent(),o.compressedContent=t.compress(i.transformTo(t.compressInputType,n),r))):(n=g(e),n&&0!==n.length&&!e.dir||(t=u.STORE,n=""),o.uncompressedSize=n.length,o.crc32=a(n),o.compressedContent=t.compress(i.transformTo(t.compressInputType,n),r)),o.compressedSize=o.compressedContent.length,o.compressionMethod=t.magic,o}function S(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}function O(e){return 63&(e||0)}function C(e,t,r,n,s,l){var u,c,f,d,p=l!==h.utf8encode,m=i.transformTo("string",l(t.name)),g=i.transformTo("string",h.utf8encode(t.name)),v=t.comment||"",y=i.transformTo("string",l(v)),b=i.transformTo("string",h.utf8encode(v)),_=g.length!==t.name.length,x=b.length!==v.length,E=t.options,T="",k="",A="";f=t._initialMetadata.dir!==t.dir?t.dir:E.dir,d=t._initialMetadata.date!==t.date?t.date:E.date;var C=0,I=0;f&&(C|=16),"UNIX"===s?(I=798,C|=S(t.unixPermissions,f)):(I=20,C|=O(t.dosPermissions,f)),u=d.getHours(),u<<=6,u|=d.getMinutes(),u<<=5,u|=d.getSeconds()/2,c=d.getFullYear()-1980,c<<=4,c|=d.getMonth()+1,c<<=5,c|=d.getDate(),_&&(k=w(1,1)+w(a(m),4)+g,T+="up"+w(k.length,2)+k),x&&(A=w(1,1)+w(this.crc32(y),4)+b,T+="uc"+w(A.length,2)+A);var N="";N+="\n\0",N+=p||!_&&!x?"\0\0":"\0\b",N+=r.compressionMethod,N+=w(u,2),N+=w(c,2),N+=w(r.crc32,4),N+=w(r.compressedSize,4),N+=w(r.uncompressedSize,4),N+=w(m.length,2),N+=w(T.length,2);var P=o.LOCAL_FILE_HEADER+N+m+T,R=o.CENTRAL_FILE_HEADER+w(I,2)+N+w(y.length,2)+"\0\0\0\0"+w(C,4)+w(n,4)+m+T+y;return{fileRecord:P,dirRecord:R,compressedObject:r}}b.prototype={asText:function(){return y.call(this,!0)},asBinary:function(){return y.call(this,!1)},asNodeBuffer:function(){var e=g(this);return i.transformTo("nodebuffer",e)},asUint8Array:function(){var e=g(this);return i.transformTo("uint8array",e)},asArrayBuffer:function(){return this.asUint8Array().buffer}},e.exports=v},"7a9f":function(e,t,r){"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\b"},"84db":function(e,t,r){"use strict";function n(e){var t,r,n,i,a=0,o=e.length;for(n=0;n>>6,s[i++]=128|63&t):t<65536?(s[i++]=224|t>>>12,s[i++]=128|t>>>6&63,s[i++]=128|63&t):(s[i++]=240|t>>>18,s[i++]=128|t>>>12&63,s[i++]=128|t>>>6&63,s[i++]=128|63&t);return s}function i(e,t){for(var r=0,i=t.modules.length;rc){var m=n(l);o+=m.length,f.push(m),l=""}l+=p,u+=p.length,delete s[h]}var g=n(l);o+=g.length,f.push(g);var v=new Uint8Array(o),y=0;return f.forEach((function(e){for(var t=0;t0||(this.content=d(i,t),this.setModules({inspect:{content:this.content}})),this}}]),e}()},"8bde":function(e,t,r){"use strict";function n(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}n.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},e.exports=n},a6b4:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r":"",i=e.split("\n"),a=this.recordedRun.join("");return i.map((function(e){return c(e)})).reduce((function(e,o,s){return e.push(o),s").concat(n,"<").concat(r,":r>").concat(a,"<").concat(r,":t").concat("docx"===t.fileType?' xml:space="preserve"':"",">")),e}),[])}}]),e}();e.exports=function(){return o(new m)}},a9dc:function(e,t,r){"use strict";var n=r("5558"),i=n.endsWith,a=n.isStarting,o=n.isEnding,s=r("ddee");function l(e){for(var t=!1,r=e.length-1;r>=0;r--){var n=e[r];if(a(n,"w:sectPr")&&(t=!0),t){var s=n.trim();if(o(s,"w:tbl"))return e.splice(r+1,0,""),e;if(i(s,""))return e}}return e}function u(e,t){var r=t.fileTypeConfig.tagShouldContain||[],n="",i=-1;-1!==s.docx.indexOf(t.contentType)&&(e=l(e));for(var u=0,c=e.length;u-1&&(e[u]="");break}if(-1===i&&a(f,m)&&-1===f.substr(1).indexOf("<")){if("/"===f[f.length-2]){e[u]="";break}i=h,n=f,e[u]="";break}}return e}e.exports=u},b074:function(e,t,r){var n=r("89a7"),i=r("e1c8"),a=r("b30f"),o=r("e003"),s=i.DOMImplementation,l=n.NAMESPACE,u=o.ParseError,c=o.XMLReader;function f(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function h(e){this.options=e||{locator:{}}}function d(e,t,r){if(!e){if(t instanceof p)return t;e=t}var n={},i=e instanceof Function;function a(t){var a=e[t];!a&&i&&(a=2==e.length?function(r){e(t,r)}:e),n[t]=a&&function(e){a("[xmldom "+t+"]\t"+e+g(r))}||function(){}}return r=r||{},a("warning"),a("error"),a("fatalError"),n}function p(){this.cdata=!1}function m(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function g(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function v(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}function y(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}h.prototype.parseFromString=function(e,t){var r=this.options,n=new c,i=r.domBuilder||new p,o=r.errorHandler,s=r.locator,u=r.xmlns||{},h=/\/x?html?$/.test(t),m=h?a.HTML_ENTITIES:a.XML_ENTITIES;s&&i.setDocumentLocator(s),n.errorHandler=d(o,i,s),n.domBuilder=r.domBuilder||i,h&&(u[""]=l.HTML),u.xml=u.xml||l.XML;var g=r.normalizeLineEndings||f;return e&&"string"===typeof e?n.parse(g(e),u,m):n.errorHandler.error("invalid doc source"),i.doc},p.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,r,n){var i=this.doc,a=i.createElementNS(e,r||t),o=n.length;y(this,a),this.currentElement=a,this.locator&&m(this.locator,a);for(var s=0;s",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),t.entityMap=t.HTML_ENTITIES},b765:function(e,t,r){"use strict";var n=new RegExp(String.fromCharCode(160),"g");function i(e){return e.replace(n," ")}function a(e,t){return"string"===typeof e?i(t.substr(0,e.length))===e:e instanceof RegExp?e.test(i(t)):void 0}function o(e,t){return"string"===typeof e?i(t).substr(e.length):e instanceof RegExp?i(t).match(e)[1]:void 0}function s(e,t){return"string"===typeof e?[t,i(t).substr(e.length)]:e instanceof RegExp?i(t).match(e):void 0}e.exports={match:a,getValue:o,getValues:s}},be27:function(e,t,r){"use strict";var n=r("0e15b");t.string2binary=function(e){return n.string2binary(e)},t.string2Uint8Array=function(e){return n.transformTo("uint8array",e)},t.uint8Array2String=function(e){return n.transformTo("string",e)},t.string2Blob=function(e){var t=n.transformTo("arraybuffer",e);return n.arrayBuffer2Blob(t)},t.arrayBuffer2Blob=function(e){return n.arrayBuffer2Blob(e)},t.transformTo=function(e,t){return n.transformTo(e,t)},t.getTypeOf=function(e){return n.getTypeOf(e)},t.checkSupport=function(e){return n.checkSupport(e)},t.MAX_VALUE_16BITS=n.MAX_VALUE_16BITS,t.MAX_VALUE_32BITS=n.MAX_VALUE_32BITS,t.pretty=function(e){return n.pretty(e)},t.findCompression=function(e){return n.findCompression(e)},t.isRegExp=function(e){return n.isRegExp(e)}},bedd:function(e,t,r){"use strict";for(var n=r("0e15b"),i=r("fdf0"),a=r("dd84"),o=new Array(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(e){var t,r,n,a,o,s=0,l=e.length;for(a=0;a>>6,t[o++]=128|63&r):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|63&r):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|63&r);return t}function u(e,t){var r;t=t||e.length,t>e.length&&(t=e.length),r=t-1;while(r>=0&&128===(192&e[r]))r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}function c(e){var t,r,i,a,s=e.length,l=new Array(2*s);for(r=0,t=0;t4)l[r++]=65533,t+=a-1;else{i&=2===a?31:3===a?15:7;while(a>1&&t1?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}o[254]=o[254]=1,t.utf8encode=function(e){return i.nodebuffer?a(e,"utf-8"):l(e)},t.utf8decode=function(e){if(i.nodebuffer)return n.transformTo("nodebuffer",e).toString("utf-8");e=n.transformTo(i.uint8array?"uint8array":"array",e);var t=[],r=e.length,a=65536,o=0;while(oe.length)&&(t=e.length);for(var r=0,n=new Array(t);r':""}function U(e){return e.length&&E(e[0])&&k(x(e))}function j(e){return D(e)?0:e.length}function F(e){for(var t=!1,r=e.parts.length-1,n=e.parts.length-1;r>=0;r--){var i=e.parts[n];if(""===i&&!t){t=!0,e.parts.splice(n,0,'');break}}t||e.parts.push('')}function B(e){e.parts.unshift('')}function Z(e){return e.some((function(e){return C("w:type",e)&&-1!==e.value.indexOf("continuous")}))}function X(e){var t=!1,r=!1;return e.reduce((function(e,n){return!1===t&&S(n,"')),e.push(n),e}),[])}function V(e){return e.filter((function(e){return!S(e,"=0;n--){var i=e[n];if(O("w:sectPr",i)&&(r=!0),C("w:sectPr",i)&&(t.unshift(i.value),r=!1),r&&t.unshift(i.value),E(i)){if(t.length>0)return t.join("");break}}return""}var W=function(){function e(){g(this,e),this.name="LoopModule",this.inXfrm=!1,this.totalSectPr=0,this.prefix={start:"#",end:"/",dash:/^-([^\s]+)\s(.+)/,inverted:"^"}}return y(e,[{key:"optionsTransformer",value:function(e,t){return this.docxtemplater=t,e}},{key:"preparse",value:function(e,t){var r=t.contentType;"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"===r&&(this.sects=q(e))}},{key:"matchers",value:function(){var e=R;return[[this.prefix.start,e,{expandTo:"auto",location:"start",inverted:!1}],[this.prefix.inverted,e,{expandTo:"auto",location:"start",inverted:!0}],[this.prefix.end,e,{location:"end"}],[this.prefix.dash,e,function(e){var t=c(e,3),r=t[1],n=t[2];return{location:"start",inverted:!1,expandTo:r,value:n}}]]}},{key:"getTraits",value:function(e,t){if("expandPair"===e)return t.reduce((function(e,t,r){return T(t,R)&&null==t.subparsed&&e.push({part:t,offset:r}),e}),[])}},{key:"postparse",value:function(e,t){var r=t.basePart;if(r&&"docx"===this.docxtemplater.fileType){r.sectPrCount=G(e),this.totalSectPr+=r.sectPrCount;var n=this.sects;n.some((function(e,t){if(e[0].lIndex>r.lIndex)return t+10)throw s;return e}))}))}},{key:"render",value:function(e,t){if("p:xfrm"===e.tag&&(this.inXfrm="start"===e.position),"a:ext"===e.tag&&this.inXfrm)return this.lastExt=e,e;if(!T(e,R))return null;var r=[],n=[],a=0,o=e.subparsed[0],s=0;"a:tr"===(null===o||void 0===o?void 0:o.tag)&&(s=+I(o.value,"h")),a-=s;var l=0;function u(i,o,u){a+=s;var c=t.scopeManager.createSubScopeManager(i,e.value,o,e,u);e.subparsed.forEach((function(e){if(C("a16:rowId",e)){var t=+I(e.value,"val")+l;l=1,e.value=N(e.value,"val",t)}}));var f=t.render(w({},t,{compiled:e.subparsed,tags:{},scopeManager:c}));e.hasPageBreak&&o===u-1&&M(e)&&F(f);var h=c.scopePathItem.some((function(e){return 0!==e}));h&&(1===e.sectPrCount&&(f.parts=V(f.parts)),e.addContinuousType&&(f.parts=X(f.parts))),e.hasPageBreakBeginning&&M(e)&&B(f);for(var d=0,p=f.parts.length;d".concat(e.lastParagrapSectPr,"")}:{value:"".concat(e.lastParagrapSectPr,"")}:{value:L(e)||"",errors:n};if(0!==a){var f=+I(this.lastExt.value,"cy");this.lastExt.value=N(this.lastExt.value,"cy",f+a)}return{value:t.joinUncorrupt(r,i(i({},t),{},{basePart:e})),errors:n}}}]),e}();e.exports=function(){return P(new W)}},c48f:function(e,t,r){"use strict";var n=r("347e");function i(e){e&&(this.data=e,this.length=this.data.length,this.index=0,this.zero=0)}i.prototype=new n,i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},c816:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r65535){e-=65536;var t=55296+(e>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}function s(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(r,t)?r[t]:"#"===t.charAt(0)?o(parseInt(t.substr(1).replace("x","0x"))):(a.error("entity not found:"+e),e)}function l(t){if(t>v){var r=e.substring(v,t).replace(/&#?\w+;/g,s);d&&u(v),i.characters(r,0,t-v),v=t}}function u(t,r){while(t>=f&&(r=h.exec(e)))c=r.index,f=c+r[0].length,d.lineNumber++;d.columnNumber=t-c+1}var c=0,f=0,h=/.*(?:\r\n?|\n)|.*$/g,d=i.locator,p=[{currentNSMap:t}],g={},v=0;while(1){try{var E=e.indexOf("<",v);if(E<0){if(!e.substr(v).match(/^\s*$/)){var S=i.doc,O=S.createTextNode(e.substr(v));S.appendChild(O),i.currentElement=O}return}switch(E>v&&l(E),e.charAt(E+1)){case"/":var C=e.indexOf(">",E+3),I=e.substring(E+2,C).replace(/[ \t\n\r]+$/g,""),N=p.pop();C<0?(I=e.substring(E+2).replace(/[\s<].*/,""),a.error("end tag name: "+I+" is not complete:"+N.tagName),C=E+1+I.length):I.match(/\sv?v=C:l(Math.max(E,v)+1)}}function y(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function b(e,t,r,i,a,o){function m(e,t,n){r.attributeNames.hasOwnProperty(e)&&o.fatalError("Attribute "+e+" redefined"),r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,a),n)}var g,v=++t,y=s;while(1){var b=e.charAt(v);switch(b){case"=":if(y===l)g=e.slice(t,v),y=c;else{if(y!==u)throw new Error("attribute equal must after attrName");y=c}break;case"'":case'"':if(y===c||y===l){if(y===l&&(o.warning('attribute value must after "="'),g=e.slice(t,v)),t=v+1,v=e.indexOf(b,t),!(v>0))throw new Error("attribute value no end '"+b+"' match");w=e.slice(t,v),m(g,w,t-1),y=h}else{if(y!=f)throw new Error('attribute value must after "="');w=e.slice(t,v),m(g,w,t),o.warning('attribute "'+g+'" missed start quot('+b+")!!"),t=v+1,y=h}break;case"/":switch(y){case s:r.setTagName(e.slice(t,v));case h:case d:case p:y=p,r.closed=!0;case f:case l:case u:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),y==s&&r.setTagName(e.slice(t,v)),v;case">":switch(y){case s:r.setTagName(e.slice(t,v));case h:case d:case p:break;case f:case l:w=e.slice(t,v),"/"===w.slice(-1)&&(r.closed=!0,w=w.slice(0,-1));case u:y===u&&(w=g),y==f?(o.warning('attribute "'+w+'" missed quot(")!'),m(g,w,t)):(n.isHTML(i[""])&&w.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+w+'" missed value!! "'+w+'" instead!!'),m(w,w,t));break;case c:throw new Error("attribute value missed!!")}return v;case"€":b=" ";default:if(b<=" ")switch(y){case s:r.setTagName(e.slice(t,v)),y=d;break;case l:g=e.slice(t,v),y=u;break;case f:var w=e.slice(t,v);o.warning('attribute "'+w+'" missed quot(")!!'),m(g,w,t);case h:y=d;break}else switch(y){case u:r.tagName;n.isHTML(i[""])&&g.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+g+'" missed value!! "'+g+'" instead2!!'),m(g,g,t),t=v,y=l;break;case h:o.warning('attribute space is required"'+g+'"!!');case d:y=l,t=v;break;case c:y=f,t=v;break;case p:throw new Error("elements closed character '/' and '>' must be connected to")}}v++}}function w(e,t,r){var i=e.tagName,a=null,o=e.length;while(o--){var s=e[o],l=s.qName,u=s.value,c=l.indexOf(":");if(c>0)var f=s.prefix=l.slice(0,c),h=l.slice(c+1),d="xmlns"===f&&h;else h=l,f=null,d="xmlns"===l&&"";s.localName=h,!1!==d&&(null==a&&(a={},E(r,r={})),r[d]=a[d]=u,s.uri=n.XMLNS,t.startPrefixMapping(d,u))}o=e.length;while(o--){s=e[o];f=s.prefix;f&&("xml"===f&&(s.uri=n.XML),"xmlns"!==f&&(s.uri=r[f||""]))}c=i.indexOf(":");c>0?(f=e.prefix=i.slice(0,c),h=e.localName=i.slice(c+1)):(f=null,h=e.localName=i);var p=e.uri=r[f||""];if(t.startElement(p,h,i,e),!e.closed)return e.currentNSMap=r,e.localNSMap=a,!0;if(t.endElement(p,h,i),a)for(f in a)t.endPrefixMapping(f)}function _(e,t,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var a=e.indexOf("",t),o=e.substring(t+1,a);if(/[&<]/.test(o))return/^script$/i.test(r)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,n),i.characters(o,0,o.length),a)}return t+1}function x(e,t,r,n){var i=n[r];return null==i&&(i=e.lastIndexOf(""),it?(r.comment(e,t+4,a-t-4),a+3):(n.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(t+3,6)){a=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,a-t-9),r.endCDATA(),a+3}var o=S(e,t),s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var l=o[1][0],u=!1,c=!1;s>3&&(/^public$/i.test(o[2][0])?(u=o[3][0],c=s>4&&o[4][0]):/^system$/i.test(o[2][0])&&(c=o[3][0]));var f=o[s-1];return r.startDTD(l,u,c),r.endDTD(),f.index+f[0].length}}return-1}function k(e,t,r){var n=e.indexOf("?>",t);if(n){var i=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return r.processingInstruction(i[1],i[2]),n+2}return-1}return-1}function A(){this.attributeNames={}}function S(e,t){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=t,i.exec(e);while(r=i.exec(e))if(n.push(r),r[1])return n}m.prototype=new Error,m.prototype.name=m.name,g.prototype={parse:function(e,t,r){var n=this.domBuilder;n.startDocument(),E(t,t={}),v(e,t,r,n,this.errorHandler),n.endDocument()}},A.prototype={setTagName:function(e){if(!o.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!o.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=g,t.ParseError=m},e192:function(e,t,r){"use strict";function n(e,t){return l(e)||s(e,t)||a(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"===typeof e)return o(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)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r",n),(-1===n||-1!==h&&n>h)&&m(e,f);var d=e.slice(f,n+1),p=S(d),g=p.tag,v=p.position,y=a[g];null!=y&&c.push({type:"tag",position:v,text:y,offset:f,value:d,tag:g})}return c}function C(e,t){var r,n=[],i=!1,a={offset:0};e.forEach((function(e){r=t.substr(a.offset,e.offset-a.offset),"start"===e.position&&i||"end"===e.position&&!i?"start"===e.position?(a.offset+a.length===e.offset?(r=t.substr(a.offset,e.offset-a.offset+a.length+4),n.push(h({xtag:r,offset:a.offset}))):n.push(c({xtag:w(r),offset:a.offset})),e.error=!0):(a.offset+a.length===e.offset?(r=t.substr(a.offset-4,e.offset-a.offset+4+a.length),n.push(d({xtag:r,offset:a.offset}))):n.push(f({xtag:r,offset:e.offset})),e.error=!0):i=!i,a=e}));var o={offset:t.length};return r=t.substr(a.offset,o.offset-a.offset),i&&(n.push(c({xtag:w(r),offset:a.offset})),o.error=!0),n}function I(e,t){return-1===e&&-1===t?_:e===t?x:-1===e||-1===t?t0&&(h=s,s=0),u.forEach((function(e){var t=o.substr(h,e.offset-i-h);if(t.length>0){if(c)return void(e.changedelimiter&&(h=e.offset-i+e.length,c="start"===e.position));f.push({type:"content",value:t}),h+=t.length}var r={type:"delimiter",position:e.position,offset:h+i};if(e.changedelimiter)return c="start"===e.position,void(h=e.offset-i+e.length);f.push(r),h=e.offset-i+e.length})),s=h-o.length;var d=o.substr(h);return d.length>0&&f.push({type:"content",value:d}),f}),this);return{parsed:u,errors:o}}function D(e){return e.filter((function(e){return"content"===e.type&&"insidetag"===e.position}))}function z(e){var t=!1;e.forEach((function(e){t=A(e,t),"content"===e.type&&(e.position=t?"insidetag":"outsidetag"),t&&"content"===e.type&&(e.value=e.value.replace(/>/g,">"))}))}e.exports={parseDelimiters:R,parse:function(e,t){z(e);var r=R(D(e),t),n=r.parsed,i=r.errors,a=[],o=0,s=0;return e.forEach((function(e){"content"===e.type&&"insidetag"===e.position?(Array.prototype.push.apply(a,n[o].map((function(e){return"content"===e.type&&(e.position="insidetag"),e.lIndex=s++,e}))),o++):(e.lIndex=s++,a.push(e))})),{errors:i,lexed:a}},xmlparse:function(e,t){var r=O(e,t.text,t.other),n=0,i=r.reduce((function(t,r){var i=e.substr(n,r.offset-n);return i.length>0&&t.push({type:"content",value:i}),n=r.offset+r.value.length,delete r.offset,t.push(r),t}),[]),a=e.substr(n);return a.length>0&&i.push({type:"content",value:a}),i}}},e1c8:function(e,t,r){var n=r("89a7"),i=n.NAMESPACE;function a(e){return""!==e}function o(e){return e?e.split(/[\t\n\f\r ]+/).filter(a):[]}function s(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function l(e){if(!e)return[];var t=o(e);return Object.keys(t.reduce(s,{}))}function u(e){return function(t){return e&&-1!==e.indexOf(t)}}function c(e,t){for(var r in e)t[r]=e[r]}function f(e,t){var r=e.prototype;if(!(r instanceof t)){function n(){}n.prototype=t.prototype,n=new n,c(r,n),e.prototype=r=n}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e)}var h={},d=h.ELEMENT_NODE=1,p=h.ATTRIBUTE_NODE=2,m=h.TEXT_NODE=3,g=h.CDATA_SECTION_NODE=4,v=h.ENTITY_REFERENCE_NODE=5,y=h.ENTITY_NODE=6,b=h.PROCESSING_INSTRUCTION_NODE=7,w=h.COMMENT_NODE=8,_=h.DOCUMENT_NODE=9,x=h.DOCUMENT_TYPE_NODE=10,E=h.DOCUMENT_FRAGMENT_NODE=11,T=h.NOTATION_NODE=12,k={},A={},S=(k.INDEX_SIZE_ERR=(A[1]="Index size error",1),k.DOMSTRING_SIZE_ERR=(A[2]="DOMString size error",2),k.HIERARCHY_REQUEST_ERR=(A[3]="Hierarchy request error",3)),O=(k.WRONG_DOCUMENT_ERR=(A[4]="Wrong document",4),k.INVALID_CHARACTER_ERR=(A[5]="Invalid character",5),k.NO_DATA_ALLOWED_ERR=(A[6]="No data allowed",6),k.NO_MODIFICATION_ALLOWED_ERR=(A[7]="No modification allowed",7),k.NOT_FOUND_ERR=(A[8]="Not found",8)),C=(k.NOT_SUPPORTED_ERR=(A[9]="Not supported",9),k.INUSE_ATTRIBUTE_ERR=(A[10]="Attribute in use",10));k.INVALID_STATE_ERR=(A[11]="Invalid state",11),k.SYNTAX_ERR=(A[12]="Syntax error",12),k.INVALID_MODIFICATION_ERR=(A[13]="Invalid modification",13),k.NAMESPACE_ERR=(A[14]="Invalid namespace",14),k.INVALID_ACCESS_ERR=(A[15]="Invalid access",15);function I(e,t){if(t instanceof Error)var r=t;else r=this,Error.call(this,A[e]),this.message=A[e],Error.captureStackTrace&&Error.captureStackTrace(this,I);return r.code=e,t&&(this.message=this.message+": "+t),r}function N(){}function P(e,t){this._node=e,this._refresh=t,R(this)}function R(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var r=e._refresh(e._node);pe(e,"length",r.length),c(r,e),e._inc=t}}function D(){}function z(e,t){var r=e.length;while(r--)if(e[r]===t)return r}function M(e,t,r,n){if(n?t[z(t,n)]=r:t[t.length++]=r,e){r.ownerElement=e;var i=e.ownerDocument;i&&(n&&V(i,e,n),X(i,e,r))}}function L(e,t,r){var n=z(t,r);if(!(n>=0))throw I(O,new Error(e.tagName+"@"+r));var i=t.length-1;while(n"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function B(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(B(e,t))return!0}while(e=e.nextSibling)}function Z(){}function X(e,t,r){e&&e._inc++;var n=r.namespaceURI;n===i.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}function V(e,t,r,n){e&&e._inc++;var a=r.namespaceURI;a===i.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function H(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r)n[n.length++]=r;else{var i=t.firstChild,a=0;while(i)n[a++]=i,i=i.nextSibling;n.length=a,delete n[n.length]}}}function Y(e,t){var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,H(e.ownerDocument,e),t}function q(e,t,r){var n=t.parentNode;if(n&&n.removeChild(t),t.nodeType===E){var i=t.firstChild;if(null==i)return t;var a=t.lastChild}else i=a=t;var o=r?r.previousSibling:e.lastChild;i.previousSibling=o,a.nextSibling=r,o?o.nextSibling=i:e.firstChild=i,null==r?e.lastChild=a:r.previousSibling=a;do{i.parentNode=e}while(i!==a&&(i=i.nextSibling));return H(e.ownerDocument||e,e),t.nodeType==E&&(t.firstChild=t.lastChild=null),t}function G(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,H(e.ownerDocument,e,t),t}function $(){this._nsMap={}}function W(){}function K(){}function J(){}function Q(){}function ee(){}function te(){}function re(){}function ne(){}function ie(){}function ae(){}function oe(){}function se(){}function le(e,t){var r=[],n=9==this.nodeType&&this.documentElement||this,i=n.prefix,a=n.namespaceURI;if(a&&null==i){i=n.lookupPrefix(a);if(null==i)var o=[{namespace:a,prefix:null}]}return fe(this,r,e,t,o),r.join("")}function ue(e,t,r){var n=e.prefix||"",a=e.namespaceURI;if(!a)return!1;if("xml"===n&&a===i.XML||a===i.XMLNS)return!1;var o=r.length;while(o--){var s=r[o];if(s.prefix===n)return s.namespace!==a}return!0}function ce(e,t,r){e.push(" ",t,'="',r.replace(/[<&"\t\n\r]/g,F),'"')}function fe(e,t,r,n,a){if(a||(a=[]),n){if(e=n(e),!e)return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case d:var o=e.attributes,s=o.length,l=e.firstChild,u=e.tagName;r=i.isHTML(e.namespaceURI)||r;var c=u;if(!r&&!e.prefix&&e.namespaceURI){for(var f,h=0;h=0;y--){var T=a[y];if(""===T.prefix&&T.namespace===e.namespaceURI){f=T.namespace;break}}if(f!==e.namespaceURI)for(y=a.length-1;y>=0;y--){T=a[y];if(T.namespace===e.namespaceURI){T.prefix&&(c=T.prefix+":"+u);break}}}t.push("<",c);for(var k=0;k"),r&&/^script$/i.test(u))while(l)l.data?t.push(l.data):fe(l,t,r,n,a.slice()),l=l.nextSibling;else while(l)fe(l,t,r,n,a.slice()),l=l.nextSibling;t.push("")}else t.push("/>");return;case _:case E:l=e.firstChild;while(l)fe(l,t,r,n,a.slice()),l=l.nextSibling;return;case p:return ce(t,e.name,e.value);case m:return t.push(e.data.replace(/[<&]/g,F).replace(/]]>/g,"]]>"));case g:return t.push("");case w:return t.push("\x3c!--",e.data,"--\x3e");case x:var C=e.publicId,I=e.systemId;if(t.push("");else if(I&&"."!=I)t.push(" SYSTEM ",I,">");else{var N=e.internalSubset;N&&t.push(" [",N,"]"),t.push(">")}return;case b:return t.push("");case v:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function he(e,t,r){var n;switch(t.nodeType){case d:n=t.cloneNode(!1),n.ownerDocument=e;case E:break;case p:r=!0;break}if(n||(n=t.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,r){var i=t.firstChild;while(i)n.appendChild(he(e,i,r)),i=i.nextSibling}return n}function de(e,t,r){var n=new t.constructor;for(var i in t){var a=t[i];"object"!=typeof a&&a!=n[i]&&(n[i]=a)}switch(t.childNodes&&(n.childNodes=new N),n.ownerDocument=e,n.nodeType){case d:var o=t.attributes,s=n.attributes=new D,l=o.length;s._ownerElement=n;for(var u=0;u0},lookupPrefix:function(e){var t=this;while(t){var r=t._nsMap;if(r)for(var n in r)if(r[n]==e)return n;t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){var t=this;while(t){var r=t._nsMap;if(r&&e in r)return r[e];t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return null==t}},c(h,j),c(h,j.prototype),Z.prototype={nodeName:"#document",nodeType:_,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==E){var r=e.firstChild;while(r){var n=r.nextSibling;this.insertBefore(r,t),r=n}return e}return null==this.documentElement&&e.nodeType==d&&(this.documentElement=e),q(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),Y(this,e)},importNode:function(e,t){return he(this,e,t)},getElementById:function(e){var t=null;return B(this.documentElement,(function(r){if(r.nodeType==d&&r.getAttribute("id")==e)return t=r,!0})),t},getElementsByClassName:function(e){var t=l(e);return new P(this,(function(r){var n=[];return t.length>0&&B(r.documentElement,(function(i){if(i!==r&&i.nodeType===d){var a=i.getAttribute("class");if(a){var o=e===a;if(!o){var s=l(a);o=t.every(u(s))}o&&n.push(i)}}})),n}))},createElement:function(e){var t=new $;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new N;var r=t.attributes=new D;return r._ownerElement=t,t},createDocumentFragment:function(){var e=new ae;return e.ownerDocument=this,e.childNodes=new N,e},createTextNode:function(e){var t=new J;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new Q;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new ee;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new oe;return r.ownerDocument=this,r.tagName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){var t=new W;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ie;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var r=new $,n=t.split(":"),i=r.attributes=new D;return r.childNodes=new N,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,i._ownerElement=r,r},createAttributeNS:function(e,t){var r=new W,n=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,r}},f(Z,j),$.prototype={nodeType:d,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===E?this.insertBefore(e,null):G(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||""},setAttributeNS:function(e,t,r){var n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new P(this,(function(t){var r=[];return B(t,(function(n){n===t||n.nodeType!=d||"*"!==e&&n.tagName!=e||r.push(n)})),r}))},getElementsByTagNameNS:function(e,t){return new P(this,(function(r){var n=[];return B(r,(function(i){i===r||i.nodeType!==d||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||n.push(i)})),n}))}},Z.prototype.getElementsByTagName=$.prototype.getElementsByTagName,Z.prototype.getElementsByTagNameNS=$.prototype.getElementsByTagNameNS,f($,j),W.prototype.nodeType=p,f(W,j),K.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(A[S])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){var n=this.data.substring(0,e),i=this.data.substring(e+t);r=n+r+i,this.nodeValue=this.data=r,this.length=r.length}},f(K,j),J.prototype={nodeName:"#text",nodeType:m,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},f(J,K),Q.prototype={nodeName:"#comment",nodeType:w},f(Q,K),ee.prototype={nodeName:"#cdata-section",nodeType:g},f(ee,K),te.prototype.nodeType=x,f(te,j),re.prototype.nodeType=T,f(re,j),ne.prototype.nodeType=y,f(ne,j),ie.prototype.nodeType=v,f(ie,j),ae.prototype.nodeName="#document-fragment",ae.prototype.nodeType=E,f(ae,j),oe.prototype.nodeType=b,f(oe,j),se.prototype.serializeToString=function(e,t,r){return le.call(e,t,r)},j.prototype.toString=le;try{if(Object.defineProperty){function me(e){switch(e.nodeType){case d:case E:var t=[];e=e.firstChild;while(e)7!==e.nodeType&&8!==e.nodeType&&t.push(me(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(P.prototype,"length",{get:function(){return R(this),this.$$length}}),Object.defineProperty(j.prototype,"textContent",{get:function(){return me(this)},set:function(e){switch(this.nodeType){case d:case E:while(this.firstChild)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),pe=function(e,t,r){e["$$"+t]=r}}}catch(ge){}t.DocumentType=te,t.DOMException=I,t.DOMImplementation=U,t.Element=$,t.Node=j,t.NodeList=N,t.XMLSerializer=se},e6bb:function(e,t,r){"use strict";t.STORE={magic:"\0\0",compress:function(e){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},t.DEFLATE=r("661b")},e85b:function(e,t,r){"use strict";var n=r("ea35"),i=r("0e15b");function a(e,t){this.data=e,t||(this.data=i.string2binary(this.data)),this.length=this.data.length,this.index=0,this.zero=0}a.prototype=new n,a.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},a.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=a},ea35:function(e,t,r){"use strict";var n=r("0e15b");function i(){this.data=null,this.length=0,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)}},e.exports=i},eac6:function(e,t,r){"use strict";var n=r("c48f");function i(e){this.data=e,this.length=this.data.length,this.index=0,this.zero=0}i.prototype=new n,i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},ed61:function(e,t,r){"use strict";var n=r("0e15b"),i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];e.exports=function(e,t){if("undefined"===typeof e||!e.length)return 0;var r="string"!==n.getTypeOf(e);"undefined"==typeof t&&(t=0);var a=0,o=0,s=0;t^=-1;for(var l=0,u=e.length;l>>8^a;return-1^t}},f261:function(e,t,r){"use strict";function n(e,t){return t instanceof Error?Object.getOwnPropertyNames(t).concat("stack").reduce((function(e,r){return e[r]=t[r],"stack"===r&&(e[r]=t[r].toString()),e}),{}):t}function i(e,t){if(console.log(JSON.stringify({error:e},n,"json"===t?2:null)),e.properties&&e.properties.errors instanceof Array){var r=e.properties.errors.map((function(e){return e.properties.explanation})).join("\n");console.log("errorMessages",r)}}e.exports=i},f418:function(e,t,r){"use strict";function n(e,t){for(var r=-1,n=0,i=e.length;n=e[n].length||(-1===r||e[n][t[n]].offset0}));var r=new Array(t),i=e.map((function(){return 0})),a=0;while(a<=t-1){var o=n(e,i);r[a]=e[o][i[o]],i[o]++,a++}return r}},fbf9:function(e,t,r){"use strict";var n=["modules"];function i(e){return i="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},i(e)}function a(e,t){if(null==e)return{};var r,n,i=o(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function o(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},o=i.modules,l=void 0===o?[]:o,u=a(i,n);if(s(this,e),!Array.isArray(l))throw new Error("The modules argument of docxtemplater's constructor must be an array");if(this.scopeManagers={},this.compiled={},this.modules=[b()],this.setOptions(u),l.forEach((function(e){r.attachModule(e)})),arguments.length>0){if(!t||!t.files||"function"!==typeof t.file)throw new Error("The first argument of docxtemplater's constructor must be a valid zip file (jszip v2 or pizzip v3)");this.loadZip(t),this.modules=this.modules.filter((function(e){if(e.supportedFileTypes){if(!Array.isArray(e.supportedFileTypes))throw new Error("The supportedFileTypes field of the module must be an array");var t=-1!==e.supportedFileTypes.indexOf(r.fileType);return t||e.on("detached"),t}return!0})),this.compile(),this.v4Constructor=!0}}return u(e,[{key:"verifyApiVersion",value:function(e){return e=e.split(".").map((function(e){return parseInt(e,10)})),3!==e.length&&N("neededVersion is not a valid version",{neededVersion:e,explanation:"the neededVersion must be an array of length 3"}),e[0]!==P[0]&&N("The major api version do not match, you probably have to update docxtemplater with npm install --save docxtemplater",{neededVersion:e,currentModuleApiVersion:P,explanation:"moduleAPIVersionMismatch : needed=".concat(e.join("."),", current=").concat(P.join("."))}),e[1]>P[1]&&N("The minor api version is not uptodate, you probably have to update docxtemplater with npm install --save docxtemplater",{neededVersion:e,currentModuleApiVersion:P,explanation:"moduleAPIVersionMismatch : needed=".concat(e.join("."),", current=").concat(P.join("."))}),e[1]===P[1]&&e[2]>P[2]&&N("The patch api version is not uptodate, you probably have to update docxtemplater with npm install --save docxtemplater",{neededVersion:e,currentModuleApiVersion:P,explanation:"moduleAPIVersionMismatch : needed=".concat(e.join("."),", current=").concat(P.join("."))}),!0}},{key:"setModules",value:function(e){this.modules.forEach((function(t){t.set(e)}))}},{key:"sendEvent",value:function(e){this.modules.forEach((function(t){t.on(e)}))}},{key:"attachModule",value:function(e){if(this.v4Constructor)throw new O("attachModule() should not be called manually when using the v4 constructor");var t=i(e);if("function"===t)throw new O("Cannot attach a class/function as a module. Most probably you forgot to instantiate the module by using `new` on the module.");if(!e||"object"!==t)throw new O("Cannot attachModule with a falsy value");if(e.requiredAPIVersion&&this.verifyApiVersion(e.requiredAPIVersion),!0===e.attached){if("function"!==typeof e.clone)throw new Error('Cannot attach a module that was already attached : "'.concat(e.name,'". The most likely cause is that you are instantiating the module at the root level, and using it for multiple instances of Docxtemplater'));e=e.clone()}e.attached=!0;var r=T(e);return this.modules.push(r),r.on("attached"),this}},{key:"setOptions",value:function(e){var t=this;if(this.v4Constructor)throw new Error("setOptions() should not be called manually when using the v4 constructor");if(!e)throw new Error("setOptions should be called with an object as first parameter");return this.options={},Object.keys(_).forEach((function(r){var n=_[r];t.options[r]=null!=e[r]?e[r]:n,t[r]=t.options[r]})),this.delimiters.start=c.utf8ToWord(this.delimiters.start),this.delimiters.end=c.utf8ToWord(this.delimiters.end),this.zip&&this.updateFileTypeConfig(),this}},{key:"loadZip",value:function(e){if(this.v4Constructor)throw new Error("loadZip() should not be called manually when using the v4 constructor");if(e.loadAsync)throw new O("Docxtemplater doesn't handle JSZip version >=3, please use pizzip");return this.zip=e,this.updateFileTypeConfig(),this.modules=k([this.fileTypeConfig.baseModules.map((function(e){return e()})),this.modules]),this}},{key:"precompileFile",value:function(e){var t=this.createTemplateClass(e);t.preparse(),this.compiled[e]=t}},{key:"compileFile",value:function(e){this.compiled[e].parse()}},{key:"getScopeManager",value:function(e,t,r){return this.scopeManagers[e]||(this.scopeManagers[e]=f({tags:r||{},parser:this.parser,cachedParsers:t.cachedParsers})),this.scopeManagers[e]}},{key:"resolveData",value:function(e){var t=this,r=[];return Object.keys(this.compiled).length||p(),Promise.resolve(e).then((function(e){return t.setData(e),t.setModules({data:t.data,Lexer:w}),t.mapper=t.modules.reduce((function(e,t){return t.getRenderedMap(e)}),{}),Promise.all(Object.keys(t.mapper).map((function(e){var n=t.mapper[e],i=n.from,a=n.data;return Promise.resolve(a).then((function(n){var a=t.compiled[i];return a.filePath=e,a.scopeManager=t.getScopeManager(e,a,n),a.resolveTags(n).then((function(e){return a.scopeManager.finishedResolving=!0,e}),(function(e){Array.prototype.push.apply(r,e)}))}))}))).then((function(e){return 0!==r.length&&(t.options.errorLogging&&g(r,t.options.errorLogging),d(r)),k(e)}))}))}},{key:"compile",value:function(){var e=this;return Object.keys(this.compiled).length||(this.options=this.modules.reduce((function(t,r){return r.optionsTransformer(t,e)}),this.options),this.options.xmlFileNames=A(this.options.xmlFileNames),this.xmlDocuments=this.options.xmlFileNames.reduce((function(t,r){var n=e.zip.files[r].asText();return t[r]=x(n),t}),{}),this.setModules({zip:this.zip,xmlDocuments:this.xmlDocuments}),this.getTemplatedFiles(),this.templatedFiles.forEach((function(t){null!=e.zip.files[t]&&e.precompileFile(t)})),this.templatedFiles.forEach((function(t){null!=e.zip.files[t]&&e.compileFile(t)})),this.setModules({compiled:this.compiled}),D(this)),this}},{key:"updateFileTypeConfig",value:function(){var t,r=this;this.zip.files.mimetype&&(t="odt");var n=this.zip.files[y];this.targets=[];var i=n?x(n.asText()):null,a=i?i.getElementsByTagName("Override"):null,o=i?i.getElementsByTagName("Default"):null;return i&&(this.filesContentTypes=v(a,o,this.zip),this.invertedContentTypes=c.invertMap(this.filesContentTypes),this.setModules({contentTypes:this.contentTypes,invertedContentTypes:this.invertedContentTypes})),this.modules.forEach((function(e){t=e.getFileType({zip:r.zip,contentTypes:n,contentTypeXml:i,overrides:a,defaults:o,doc:r})||t})),"odt"===t&&I(t),t||C(),this.fileType=t,this.fileTypeConfig=this.options.fileTypeConfig||this.fileTypeConfig||e.FileTypeConfig[this.fileType](),this}},{key:"renderAsync",value:function(e){var t=this;return this.resolveData(e).then((function(){return t.render()}))}},{key:"render",value:function(e){var t=this;return this.compile(),this.errors.length>0&&m(),e&&this.setData(e),this.setModules({data:this.data,Lexer:w}),this.mapper=this.mapper||this.modules.reduce((function(e,t){return t.getRenderedMap(e)}),{}),Object.keys(this.mapper).forEach((function(e){var r=t.mapper[e],n=r.from,i=r.data,a=t.compiled[n];a.scopeManager=t.getScopeManager(e,a,i),a.render(e),t.zip.file(e,a.content,{createFolders:!0})})),D(this),this.sendEvent("syncing-zip"),this.syncZip(),this}},{key:"syncZip",value:function(){var e=this;Object.keys(this.xmlDocuments).forEach((function(t){e.zip.remove(t);var r=E(e.xmlDocuments[t]);return e.zip.file(t,r,{createFolders:!0})}))}},{key:"setData",value:function(e){return this.data=e,this}},{key:"getZip",value:function(){return this.zip}},{key:"createTemplateClass",value:function(e){var t=this.zip.files[e].asText();return this.createTemplateClassFromContent(t,e)}},{key:"createTemplateClassFromContent",value:function(t,r){var n=this,i={filePath:r,contentType:this.filesContentTypes[r]};return Object.keys(_).concat(["filesContentTypes","fileTypeConfig","modules"]).forEach((function(e){i[e]=n[e]})),new e.XmlTemplater(t,i)}},{key:"getFullText",value:function(e){return this.createTemplateClass(e||this.fileTypeConfig.textPath(this)).getFullText()}},{key:"getTemplatedFiles",value:function(){var e=this;return this.templatedFiles=this.fileTypeConfig.getTemplatedFiles(this.zip),this.targets.forEach((function(t){e.templatedFiles.push(t)})),this.templatedFiles=A(this.templatedFiles),this.templatedFiles}}]),e}();function D(e){var t=e.compiled;e.errors=k(Object.keys(t).map((function(e){return t[e].allErrors}))),0!==e.errors.length&&(e.options.errorLogging&&g(e.errors,e.options.errorLogging),d(e.errors))}R.DocUtils=c,R.Errors=r("c838"),R.XmlTemplater=r("8a20"),R.FileTypeConfig=r("5114"),R.XmlMatcher=r("4072"),e.exports=R},fdf0:function(e,t,r){"use strict";(function(e){if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array,t.nodebuffer="undefined"!==typeof e,t.uint8array="undefined"!==typeof Uint8Array,"undefined"===typeof ArrayBuffer)t.blob=!1;else{var r=new ArrayBuffer(0);try{t.blob=0===new Blob([r],{type:"application/zip"}).size}catch(a){try{var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,i=new n;i.append(r),t.blob=0===i.getBlob("application/zip").size}catch(a){t.blob=!1}}}}).call(this,r("b639").Buffer)}}]);