import{r as Te,m as lt,_ as ft,p as tt,f as ct,d as ke,A as mt,t as xt,j as J,R as ht,K as vt,I as ot,D as at,B as Qe,w as _t,g as et,v as st,c as qe,L as ut,e as Tt,F as Je,S as Dt,a as pt,o as kt,M as Bt,y as It,N as Rt}from"./index-CKIL6d0V.js";import{D as yt}from"./index-BzG6U_Bx.js";import{O as Ft}from"./index-DS0KBckH.js";import{R as gt}from"./index-CQHEr9cF.js";import{R as Pt}from"./MoreOutlined-D6hW6YIc.js";import{F as Ot}from"./Table-BaVi_066.js";import{R as zt}from"./PrinterOutlined-IzRNsDbg.js";import{R as Lt,a as Nt,b as jt}from"./StopOutlined-Cp4rPXEP.js";import{R as Mt}from"./WarningOutlined-DXw3DJIi.js";import"./index-C-LPyJas.js";import"./iconUtil-Co5gbObL.js";var Ut={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Yt=function(Me,A){return Te.createElement(lt,ft({},Me,{ref:A,icon:Ut}))},Zt=Te.forwardRef(Yt),Ht={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},Wt=function(Me,A){return Te.createElement(lt,ft({},Me,{ref:A,icon:Ht}))},bt=Te.forwardRef(Wt),Gt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 00-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 00-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z"}}]},name:"file-word",theme:"outlined"},Xt=function(Me,A){return Te.createElement(lt,ft({},Me,{ref:A,icon:Gt}))},Vt=Te.forwardRef(Xt);const Kt=tt.div`
  height: 100%;

`,$t=tt.div`
  height: 100%;
  overflow: auto;
  &::-webkit-scrollbar {
    display: none;
  }
  .searchTop {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 6px;
    transition: height 0.5s ease;
    border: 1px solid ${me=>me.theme.colorBorder};
    background-color: ${me=>me.theme.colorBgContainer};
    .showworld {
      height: 36px;
      line-height: 36px;
      padding: 0 10px;
      margin-bottom: 10px;
      border-bottom: 1px dotted ${me=>me.theme.colorBorder};
      display: flex;
      justify-content: space-between;
    }
    .inputs {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      .inp {
        max-width: 320px;
        width: 90%;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        .input {
          width: 70%;
          margin-left: 10px;
        }
        .btn {
          width: 100%;
        }
      }
    }
  }
  // 展开
  .spread {
    height: 260px;
  }
  .close {
    height: 36px;
  }

  // 主题内容
  .content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    .card {
      width: 100%;
      border-radius: 10px;
      margin-bottom: 10px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border-radius: 6px;
      border: 1px solid ${me=>me.theme.colorBorder};
      background-color: ${me=>me.theme.colorBgContainer};
      .top {
        height: 100px;
        display: flex;
        .lt {
          width: 70%;
          padding-top: 10px;
          padding-left: 10px;
          p {
            height: 30px;
          }
        }
        .rt {
          width: 30%;
          display: flex;
          justify-content: center;
          align-items: center;
          color: ${me=>me.theme.colorPrimary};
          border-left: 1px solid ${me=>me.theme.colorBorder};
        }
      }
      .bot {
        height: 30px;
        padding: 0 10px;
        line-height: 30px;
        border-top: 1px solid ${me=>me.theme.colorBorder};
        display: flex;
        justify-content: space-between;
      }
    }
  }
`,Jt=tt.div`
  height: 100%;
  .header {
    height: 40px;
    font-size: 16px;
    position: relative;
    .leftBtn {
      /* width: 100px; */
      height: 42px;
      line-height: 42px;
      text-align: center;
      position: absolute;
      margin-left: 15px;
      top: 0;
      left: 0;
    }
    .rightClose {
      width: 100px;
      height: 42px;
      font-size: 24px;
      line-height: 42px;
      text-align: center;
      position: absolute;
      cursor: pointer;
      top: 0;
      right: 0;
    }
  }
  // 后端返回的标签信息, 简单布局处理
  .inner {
    padding: 20px;
    & > table {
      width: 100%;
    }
    white-space:pre-wrap; /* css3.0 */ 
    white-space:-moz-pre-wrap; /* Firefox */ 
    white-space:-pre-wrap; /* Opera 4-6 */ 
    white-space:-o-pre-wrap; /* Opera 7 */ 
    word-wrap:break-word; /* Internet Explorer 5.5+ */ 
  }
`,wt=Te.memo(()=>{const{userInfo:{userID:me}}=ct(V=>V),[Me,A]=Te.useState(!1),[P,C]=Te.useState(""),[x,a]=Te.useState(""),[h,l]=Te.useState(ke().add(-7,"d")),[n,d]=Te.useState(ke().startOf("day")),[m,_]=Te.useState(null),{message:r}=mt.useApp(),{token:s}=xt.useToken(),[u,p]=Te.useState(null),[y,B]=Te.useState(!1);Te.useEffect(()=>{(async()=>{try{const $=await et("/api/PsyInforeport/GetListReport",{PNum:me,StartTime:ke().add(-1,"year").format("YYYY-MM-DD"),EndTime:ke().format("YYYY-MM-DD"),pageIndex:1,pageSize:99999});p($.data.items)}catch($){r.error($),console.log($)}})()},[r,me]);const I=V=>{C(V.target.value.trim())},W=V=>{a(V.target.value.trim())},F=V=>{l(V)},b=V=>{d(V)},H=()=>{A(!Me)},j=async()=>{const V={PTaskname:P,PNum:me,NameChinese:x,StartTime:ke(h).format("YYYY-MM-DD"),EndTime:ke(n).format("YYYY-MM-DD"),pageIndex:1,pageSize:999999999};console.log("prams",V);const $=await et("/api/PsyInforeport/GetListReport",V);p($.data.items),A(!1)},X=()=>{B(!1),_(null)},re=async(V,$=0)=>{if(!y)try{const U=await st("/api/PsyInforeport/GetUpdateReport",[V],{ReportType:$});U.code===200?(await _(U.data),await B(!0),r.success(U.msg,5)):r.warning(U.msg)}catch(U){r.error(U)}};return J.jsxs($t,{theme:s,children:[J.jsxs("div",{className:`searchTop ${Me?"spread":"close"}`,children:[J.jsxs("div",{className:"showworld",children:[J.jsxs("span",{children:[J.jsx(ht,{})," 搜索"]}),J.jsx("span",{onClick:H,children:Me?J.jsx(Zt,{}):J.jsx(vt,{})})]}),J.jsxs("div",{className:"inputs",children:[J.jsxs("div",{className:"inp",children:[J.jsx("span",{children:"任务名称: "}),J.jsx(ot,{className:"input",value:P,onChange:I})]}),J.jsxs("div",{className:"inp",children:[J.jsx("span",{children:"量表名称: "}),J.jsx(ot,{className:"input",value:x,onChange:W})]}),J.jsxs("div",{className:"inp",children:[J.jsx("span",{children:"开始时间: "}),J.jsx(at,{className:"input",placeholder:"请选择开始日期",value:h,onChange:F})]}),J.jsxs("div",{className:"inp",children:[J.jsx("span",{children:"结束时间: "}),J.jsx(at,{className:"input",placeholder:"请选择结束日期",value:n,onChange:b})]}),J.jsx("div",{className:"inp",children:J.jsxs(Qe,{className:"btn",type:"primary",onClick:j,children:[J.jsx(ht,{})," 查询"]})})]})]}),J.jsx("div",{className:"content",children:u&&u.map(V=>J.jsxs("div",{className:"card",children:[J.jsxs("div",{className:"top",children:[J.jsxs("div",{className:"lt",children:[J.jsx("p",{className:"text-nowrap",children:V.pTaskname}),J.jsxs("p",{className:"text-nowrap",children:[V.nameChinese,"(",V.tableCode,")"]}),J.jsxs("p",{className:"text-nowrap",children:[V.pNum," - ",V.pName]})]}),J.jsx("div",{className:"rt",onClick:()=>re(V.id,1),children:"简单报告"})]}),J.jsxs("div",{className:"bot",children:[J.jsx("span",{children:"创建时间: "}),J.jsx("span",{children:V.createTime})]})]},V.id))}),J.jsx(yt,{onClose:X,closable:!1,open:y,width:"100%",children:J.jsxs(Jt,{children:[J.jsxs("p",{className:"header",children:[J.jsx("span",{className:"leftBtn"}),J.jsx("span",{className:"rightClose",children:J.jsx(bt,{onClick:X})})]}),m?J.jsx("div",{className:"inner",id:"psyReport",dangerouslySetInnerHTML:{__html:m}}):J.jsx("div",{style:{marginTop:"100px",textAlign:"center"},children:J.jsx(_t,{})})]})})]})});wt.displayName="PSYReportMobile";const Qt=tt.div`
  height: 100%;
  display: flex;
  flex-direction: column;
  .searchTop {
    padding: 16px 16px 0;
    margin-bottom: 10px;
    border-radius: 6px;
    background-color: ${me=>me.theme.colorBgContainer};
    .ant-form {
      display: flex;
      align-items: center;
      justify-content: space-between;
      .ant-form-item {
        margin-bottom: 16px;

        &:nth-child(1) {
          width: 200px;
        }
        
        &:nth-child(2) {
          width: 180px;
          .ant-form-item-control {
            width: 100px;
          }
        }
        &:nth-last-child(1) {
          margin-right: 40px;
          width: 150px;
        }
        &:nth-child(3) {
          width: 200px;
        }
        &:nth-last-child(2) {
          width: 160px;
        }
        &:nth-last-child(3) {
          width: 160px;
          margin-right: -50px;
        }
        &:nth-last-child(4) {
          width: 180px;
          margin-right: 30px;
          .ant-select {
            width: 100px;
          }
        }
      }
    }
  }
  .content {
    flex: 1;
    height: 0;
    display: flex;
    .leftOrgan {
      width: 200px;
      margin-right: 16px;
      border-radius: 6px;
      background-color: ${me=>me.theme.colorBgContainer};
      overflow: auto;
    }
    .rightTable {
      flex: 1;
      font-size: 12px;
      padding: 16px;
      border-radius: 6px;
      overflow: hidden;
      background-color: ${me=>me.theme.colorBgContainer};
      .tableBox {
        height: 100%;
        overflow: hidden;
        border-radius: 6px;
      }
    }
  }
`,qt=tt.div`
  height: 100%;
  .header {
    height: 40px;
    font-size: 16px;
    position: relative;
    .leftBtn {
      /* width: 100px; */
      height: 42px;
      line-height: 42px;
      text-align: center;
      position: absolute;
      margin-left: 15px;
      top: 0;
      left: 0;
    }
    .rightClose {
      width: 100px;
      height: 42px;
      font-size: 24px;
      line-height: 42px;
      text-align: center;
      position: absolute;
      cursor: pointer;
      top: 0;
      right: 0;
    }
  }
  // 后端返回的标签信息, 简单布局处理
  .inner {
    padding: 20px;
    & > table {
      width: 100%;
    }
    white-space:pre-wrap; /* css3.0 */ 
    white-space:-moz-pre-wrap; /* Firefox */ 
    white-space:-pre-wrap; /* Opera 4-6 */ 
    white-space:-o-pre-wrap; /* Opera 7 */ 
    word-wrap:break-word; /* Internet Explorer 5.5+ */ 
  }
`;var Et={exports:{}};(function(me,Me){(function(A,P){P()})(qe,function(){function A(n,d){return typeof d>"u"?d={autoBom:!1}:typeof d!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),d={autoBom:!d}),d.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n}function P(n,d,m){var _=new XMLHttpRequest;_.open("GET",n),_.responseType="blob",_.onload=function(){l(_.response,d,m)},_.onerror=function(){console.error("could not download file")},_.send()}function C(n){var d=new XMLHttpRequest;d.open("HEAD",n,!1);try{d.send()}catch{}return 200<=d.status&&299>=d.status}function x(n){try{n.dispatchEvent(new MouseEvent("click"))}catch{var d=document.createEvent("MouseEvents");d.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(d)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof qe=="object"&&qe.global===qe?qe:void 0,h=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!h?function(n,d,m){var _=a.URL||a.webkitURL,r=document.createElement("a");d=d||n.name||"download",r.download=d,r.rel="noopener",typeof n=="string"?(r.href=n,r.origin===location.origin?x(r):C(r.href)?P(n,d,m):x(r,r.target="_blank")):(r.href=_.createObjectURL(n),setTimeout(function(){_.revokeObjectURL(r.href)},4e4),setTimeout(function(){x(r)},0))}:"msSaveOrOpenBlob"in navigator?function(n,d,m){if(d=d||n.name||"download",typeof n!="string")navigator.msSaveOrOpenBlob(A(n,m),d);else if(C(n))P(n,d,m);else{var _=document.createElement("a");_.href=n,_.target="_blank",setTimeout(function(){x(_)})}}:function(n,d,m,_){if(_=_||open("","_blank"),_&&(_.document.title=_.document.body.innerText="downloading..."),typeof n=="string")return P(n,d,m);var r=n.type==="application/octet-stream",s=/constructor/i.test(a.HTMLElement)||a.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||r&&s||h)&&typeof FileReader<"u"){var p=new FileReader;p.onloadend=function(){var I=p.result;I=u?I:I.replace(/^data:[^;]*;/,"data:attachment/file;"),_?_.location.href=I:location=I,_=null},p.readAsDataURL(n)}else{var y=a.URL||a.webkitURL,B=y.createObjectURL(n);_?_.location=B:location.href=B,_=null,setTimeout(function(){y.revokeObjectURL(B)},4e4)}});a.saveAs=l.saveAs=l,me.exports=l})})(Et);var er=Et.exports;const tr=ut(er);function it(me){throw new Error('Could not dynamically require "'+me+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var At={exports:{}};(function(me,Me){(function(A){me.exports=A()})(function(){return function A(P,C,x){function a(n,d){if(!C[n]){if(!P[n]){var m=typeof it=="function"&&it;if(!d&&m)return m(n,!0);if(h)return h(n,!0);throw new Error("Cannot find module '"+n+"'")}var _=C[n]={exports:{}};P[n][0].call(_.exports,function(r){var s=P[n][1][r];return a(s||r)},_,_.exports,A,P,C,x)}return C[n].exports}for(var h=typeof it=="function"&&it,l=0;l<x.length;l++)a(x[l]);return a}({1:[function(A,P,C){/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */var x=A("base64-js"),a=A("ieee754"),h=A("is-array");C.Buffer=n,C.SlowBuffer=n,C.INSPECT_MAX_BYTES=50,n.poolSize=8192;var l=1073741823;n.TYPED_ARRAY_SUPPORT=function(){try{var t=new ArrayBuffer(0),f=new Uint8Array(t);return f.foo=function(){return 42},f.foo()===42&&typeof f.subarray=="function"&&new Uint8Array(1).subarray(1,1).byteLength===0}catch{return!1}}();function n(t,f,w){if(!(this instanceof n))return new n(t,f,w);var N=typeof t,g;if(N==="number")g=t>0?t>>>0:0;else if(N==="string")f==="base64"&&(t=ae(t)),g=n.byteLength(t,f);else if(N==="object"&&t!==null)t.type==="Buffer"&&h(t.data)&&(t=t.data),g=+t.length>0?Math.floor(+t.length):0;else throw new TypeError("must start with number, buffer, array or string");if(this.length>l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");var v;n.TYPED_ARRAY_SUPPORT?v=n._augment(new Uint8Array(g)):(v=this,v.length=g,v._isBuffer=!0);var E;if(n.TYPED_ARRAY_SUPPORT&&typeof t.byteLength=="number")v._set(t);else if(z(t))if(n.isBuffer(t))for(E=0;E<g;E++)v[E]=t.readUInt8(E);else for(E=0;E<g;E++)v[E]=(t[E]%256+256)%256;else if(N==="string")v.write(t,0,f);else if(N==="number"&&!n.TYPED_ARRAY_SUPPORT&&!w)for(E=0;E<g;E++)v[E]=0;return v}n.isBuffer=function(t){return!!(t!=null&&t._isBuffer)},n.compare=function(t,f){if(!n.isBuffer(t)||!n.isBuffer(f))throw new TypeError("Arguments must be Buffers");for(var w=t.length,N=f.length,g=0,v=Math.min(w,N);g<v&&t[g]===f[g];g++);return g!==v&&(w=t[g],N=f[g]),w<N?-1:N<w?1:0},n.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(t,f){if(!h(t))throw new TypeError("Usage: Buffer.concat(list[, length])");if(t.length===0)return new n(0);if(t.length===1)return t[0];var w;if(f===void 0)for(f=0,w=0;w<t.length;w++)f+=t[w].length;var N=new n(f),g=0;for(w=0;w<t.length;w++){var v=t[w];v.copy(N,g),g+=v.length}return N},n.byteLength=function(t,f){var w;switch(t=t+"",f||"utf8"){case"ascii":case"binary":case"raw":w=t.length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":w=t.length*2;break;case"hex":w=t.length>>>1;break;case"utf8":case"utf-8":w=te(t).length;break;case"base64":w=le(t).length;break;default:w=t.length}return w},n.prototype.length=void 0,n.prototype.parent=void 0,n.prototype.toString=function(t,f,w){var N=!1;if(f=f>>>0,w=w===void 0||w===1/0?this.length:w>>>0,t||(t="utf8"),f<0&&(f=0),w>this.length&&(w=this.length),w<=f)return"";for(;;)switch(t){case"hex":return W(this,f,w);case"utf8":case"utf-8":return y(this,f,w);case"ascii":return B(this,f,w);case"binary":return I(this,f,w);case"base64":return p(this,f,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,f,w);default:if(N)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),N=!0}},n.prototype.equals=function(t){if(!n.isBuffer(t))throw new TypeError("Argument must be a Buffer");return n.compare(this,t)===0},n.prototype.inspect=function(){var t="",f=C.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,f).match(/.{2}/g).join(" "),this.length>f&&(t+=" ... ")),"<Buffer "+t+">"},n.prototype.compare=function(t){if(!n.isBuffer(t))throw new TypeError("Argument must be a Buffer");return n.compare(this,t)},n.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},n.prototype.set=function(t,f){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,f)};function d(t,f,w,N){w=Number(w)||0;var g=t.length-w;N?(N=Number(N),N>g&&(N=g)):N=g;var v=f.length;if(v%2!==0)throw new Error("Invalid hex string");N>v/2&&(N=v/2);for(var E=0;E<N;E++){var R=parseInt(f.substr(E*2,2),16);if(isNaN(R))throw new Error("Invalid hex string");t[w+E]=R}return E}function m(t,f,w,N){var g=_e(te(f),t,w,N);return g}function _(t,f,w,N){var g=_e(ie(f),t,w,N);return g}function r(t,f,w,N){return _(t,f,w,N)}function s(t,f,w,N){var g=_e(le(f),t,w,N);return g}function u(t,f,w,N){var g=_e(oe(f),t,w,N,2);return g}n.prototype.write=function(t,f,w,N){if(isFinite(f))isFinite(w)||(N=w,w=void 0);else{var g=N;N=f,f=w,w=g}f=Number(f)||0;var v=this.length-f;w?(w=Number(w),w>v&&(w=v)):w=v,N=String(N||"utf8").toLowerCase();var E;switch(N){case"hex":E=d(this,t,f,w);break;case"utf8":case"utf-8":E=m(this,t,f,w);break;case"ascii":E=_(this,t,f,w);break;case"binary":E=r(this,t,f,w);break;case"base64":E=s(this,t,f,w);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":E=u(this,t,f,w);break;default:throw new TypeError("Unknown encoding: "+N)}return E},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function p(t,f,w){return f===0&&w===t.length?x.fromByteArray(t):x.fromByteArray(t.slice(f,w))}function y(t,f,w){var N="",g="";w=Math.min(t.length,w);for(var v=f;v<w;v++)t[v]<=127?(N+=be(g)+String.fromCharCode(t[v]),g=""):g+="%"+t[v].toString(16);return N+be(g)}function B(t,f,w){var N="";w=Math.min(t.length,w);for(var g=f;g<w;g++)N+=String.fromCharCode(t[g]);return N}function I(t,f,w){return B(t,f,w)}function W(t,f,w){var N=t.length;(!f||f<0)&&(f=0),(!w||w<0||w>N)&&(w=N);for(var g="",v=f;v<w;v++)g+=O(t[v]);return g}function F(t,f,w){for(var N=t.slice(f,w),g="",v=0;v<N.length;v+=2)g+=String.fromCharCode(N[v]+N[v+1]*256);return g}n.prototype.slice=function(t,f){var w=this.length;if(t=~~t,f=f===void 0?w:~~f,t<0?(t+=w,t<0&&(t=0)):t>w&&(t=w),f<0?(f+=w,f<0&&(f=0)):f>w&&(f=w),f<t&&(f=t),n.TYPED_ARRAY_SUPPORT)return n._augment(this.subarray(t,f));for(var N=f-t,g=new n(N,void 0,!0),v=0;v<N;v++)g[v]=this[v+t];return g};function b(t,f,w){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+f>w)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUInt8=function(t,f){return f||b(t,1,this.length),this[t]},n.prototype.readUInt16LE=function(t,f){return f||b(t,2,this.length),this[t]|this[t+1]<<8},n.prototype.readUInt16BE=function(t,f){return f||b(t,2,this.length),this[t]<<8|this[t+1]},n.prototype.readUInt32LE=function(t,f){return f||b(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},n.prototype.readUInt32BE=function(t,f){return f||b(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},n.prototype.readInt8=function(t,f){return f||b(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},n.prototype.readInt16LE=function(t,f){f||b(t,2,this.length);var w=this[t]|this[t+1]<<8;return w&32768?w|4294901760:w},n.prototype.readInt16BE=function(t,f){f||b(t,2,this.length);var w=this[t+1]|this[t]<<8;return w&32768?w|4294901760:w},n.prototype.readInt32LE=function(t,f){return f||b(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},n.prototype.readInt32BE=function(t,f){return f||b(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},n.prototype.readFloatLE=function(t,f){return f||b(t,4,this.length),a.read(this,t,!0,23,4)},n.prototype.readFloatBE=function(t,f){return f||b(t,4,this.length),a.read(this,t,!1,23,4)},n.prototype.readDoubleLE=function(t,f){return f||b(t,8,this.length),a.read(this,t,!0,52,8)},n.prototype.readDoubleBE=function(t,f){return f||b(t,8,this.length),a.read(this,t,!1,52,8)};function H(t,f,w,N,g,v){if(!n.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");if(f>g||f<v)throw new TypeError("value is out of bounds");if(w+N>t.length)throw new TypeError("index out of range")}n.prototype.writeUInt8=function(t,f,w){return t=+t,f=f>>>0,w||H(this,t,f,1,255,0),n.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[f]=t,f+1};function j(t,f,w,N){f<0&&(f=65535+f+1);for(var g=0,v=Math.min(t.length-w,2);g<v;g++)t[w+g]=(f&255<<8*(N?g:1-g))>>>(N?g:1-g)*8}n.prototype.writeUInt16LE=function(t,f,w){return t=+t,f=f>>>0,w||H(this,t,f,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[f]=t,this[f+1]=t>>>8):j(this,t,f,!0),f+2},n.prototype.writeUInt16BE=function(t,f,w){return t=+t,f=f>>>0,w||H(this,t,f,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[f]=t>>>8,this[f+1]=t):j(this,t,f,!1),f+2};function X(t,f,w,N){f<0&&(f=4294967295+f+1);for(var g=0,v=Math.min(t.length-w,4);g<v;g++)t[w+g]=f>>>(N?g:3-g)*8&255}n.prototype.writeUInt32LE=function(t,f,w){return t=+t,f=f>>>0,w||H(this,t,f,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[f+3]=t>>>24,this[f+2]=t>>>16,this[f+1]=t>>>8,this[f]=t):X(this,t,f,!0),f+4},n.prototype.writeUInt32BE=function(t,f,w){return t=+t,f=f>>>0,w||H(this,t,f,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[f]=t>>>24,this[f+1]=t>>>16,this[f+2]=t>>>8,this[f+3]=t):X(this,t,f,!1),f+4},n.prototype.writeInt8=function(t,f,w){return t=+t,f=f>>>0,w||H(this,t,f,1,127,-128),n.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[f]=t,f+1},n.prototype.writeInt16LE=function(t,f,w){return t=+t,f=f>>>0,w||H(this,t,f,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[f]=t,this[f+1]=t>>>8):j(this,t,f,!0),f+2},n.prototype.writeInt16BE=function(t,f,w){return t=+t,f=f>>>0,w||H(this,t,f,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[f]=t>>>8,this[f+1]=t):j(this,t,f,!1),f+2},n.prototype.writeInt32LE=function(t,f,w){return t=+t,f=f>>>0,w||H(this,t,f,4,2147483647,-2147483648),n.TYPED_ARRAY_SUPPORT?(this[f]=t,this[f+1]=t>>>8,this[f+2]=t>>>16,this[f+3]=t>>>24):X(this,t,f,!0),f+4},n.prototype.writeInt32BE=function(t,f,w){return t=+t,f=f>>>0,w||H(this,t,f,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),n.TYPED_ARRAY_SUPPORT?(this[f]=t>>>24,this[f+1]=t>>>16,this[f+2]=t>>>8,this[f+3]=t):X(this,t,f,!1),f+4};function re(t,f,w,N,g,v){if(f>g||f<v)throw new TypeError("value is out of bounds");if(w+N>t.length)throw new TypeError("index out of range")}function V(t,f,w,N,g){return g||re(t,f,w,4,34028234663852886e22,-34028234663852886e22),a.write(t,f,w,N,23,4),w+4}n.prototype.writeFloatLE=function(t,f,w){return V(this,t,f,!0,w)},n.prototype.writeFloatBE=function(t,f,w){return V(this,t,f,!1,w)};function $(t,f,w,N,g){return g||re(t,f,w,8,17976931348623157e292,-17976931348623157e292),a.write(t,f,w,N,52,8),w+8}n.prototype.writeDoubleLE=function(t,f,w){return $(this,t,f,!0,w)},n.prototype.writeDoubleBE=function(t,f,w){return $(this,t,f,!1,w)},n.prototype.copy=function(t,f,w,N){var g=this;if(w||(w=0),!N&&N!==0&&(N=this.length),f||(f=0),N!==w&&!(t.length===0||g.length===0)){if(N<w)throw new TypeError("sourceEnd < sourceStart");if(f<0||f>=t.length)throw new TypeError("targetStart out of bounds");if(w<0||w>=g.length)throw new TypeError("sourceStart out of bounds");if(N<0||N>g.length)throw new TypeError("sourceEnd out of bounds");N>this.length&&(N=this.length),t.length-f<N-w&&(N=t.length-f+w);var v=N-w;if(v<1e3||!n.TYPED_ARRAY_SUPPORT)for(var E=0;E<v;E++)t[E+f]=this[E+w];else t._set(this.subarray(w,w+v),f)}},n.prototype.fill=function(t,f,w){if(t||(t=0),f||(f=0),w||(w=this.length),w<f)throw new TypeError("end < start");if(w!==f&&this.length!==0){if(f<0||f>=this.length)throw new TypeError("start out of bounds");if(w<0||w>this.length)throw new TypeError("end out of bounds");var N;if(typeof t=="number")for(N=f;N<w;N++)this[N]=t;else{var g=te(t.toString()),v=g.length;for(N=f;N<w;N++)this[N]=g[N%v]}return this}},n.prototype.toArrayBuffer=function(){if(typeof Uint8Array<"u"){if(n.TYPED_ARRAY_SUPPORT)return new n(this).buffer;for(var t=new Uint8Array(this.length),f=0,w=t.length;f<w;f+=1)t[f]=this[f];return t.buffer}else throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var U=n.prototype;n._augment=function(t){return t.constructor=n,t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=U.get,t.set=U.set,t.write=U.write,t.toString=U.toString,t.toLocaleString=U.toString,t.toJSON=U.toJSON,t.equals=U.equals,t.compare=U.compare,t.copy=U.copy,t.slice=U.slice,t.readUInt8=U.readUInt8,t.readUInt16LE=U.readUInt16LE,t.readUInt16BE=U.readUInt16BE,t.readUInt32LE=U.readUInt32LE,t.readUInt32BE=U.readUInt32BE,t.readInt8=U.readInt8,t.readInt16LE=U.readInt16LE,t.readInt16BE=U.readInt16BE,t.readInt32LE=U.readInt32LE,t.readInt32BE=U.readInt32BE,t.readFloatLE=U.readFloatLE,t.readFloatBE=U.readFloatBE,t.readDoubleLE=U.readDoubleLE,t.readDoubleBE=U.readDoubleBE,t.writeUInt8=U.writeUInt8,t.writeUInt16LE=U.writeUInt16LE,t.writeUInt16BE=U.writeUInt16BE,t.writeUInt32LE=U.writeUInt32LE,t.writeUInt32BE=U.writeUInt32BE,t.writeInt8=U.writeInt8,t.writeInt16LE=U.writeInt16LE,t.writeInt16BE=U.writeInt16BE,t.writeInt32LE=U.writeInt32LE,t.writeInt32BE=U.writeInt32BE,t.writeFloatLE=U.writeFloatLE,t.writeFloatBE=U.writeFloatBE,t.writeDoubleLE=U.writeDoubleLE,t.writeDoubleBE=U.writeDoubleBE,t.fill=U.fill,t.inspect=U.inspect,t.toArrayBuffer=U.toArrayBuffer,t};var ne=/[^+\/0-9A-z]/g;function ae(t){for(t=D(t).replace(ne,"");t.length%4!==0;)t=t+"=";return t}function D(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function z(t){return h(t)||n.isBuffer(t)||t&&typeof t=="object"&&typeof t.length=="number"}function O(t){return t<16?"0"+t.toString(16):t.toString(16)}function te(t){for(var f=[],w=0;w<t.length;w++){var N=t.charCodeAt(w);if(N<=127)f.push(N);else{var g=w;N>=55296&&N<=57343&&w++;for(var v=encodeURIComponent(t.slice(g,w+1)).substr(1).split("%"),E=0;E<v.length;E++)f.push(parseInt(v[E],16))}}return f}function ie(t){for(var f=[],w=0;w<t.length;w++)f.push(t.charCodeAt(w)&255);return f}function oe(t){for(var f,w,N,g=[],v=0;v<t.length;v++)f=t.charCodeAt(v),w=f>>8,N=f%256,g.push(N),g.push(w);return g}function le(t){return x.toByteArray(t)}function _e(t,f,w,N,g){g&&(N-=N%g);for(var v=0;v<N&&!(v+w>=f.length||v>=t.length);v++)f[v+w]=t[v];return v}function be(t){try{return decodeURIComponent(t)}catch{return"�"}}},{"base64-js":2,ieee754:3,"is-array":4}],2:[function(A,P,C){var x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(a){var h=typeof Uint8Array<"u"?Uint8Array:Array,l=43,n=47,d=48,m=97,_=65;function r(p){var y=p.charCodeAt(0);if(y===l)return 62;if(y===n)return 63;if(y<d)return-1;if(y<d+10)return y-d+26+26;if(y<_+26)return y-_;if(y<m+26)return y-m+26}function s(p){var y,B,I,W,F,b;if(p.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var H=p.length;F=p.charAt(H-2)==="="?2:p.charAt(H-1)==="="?1:0,b=new h(p.length*3/4-F),I=F>0?p.length-4:p.length;var j=0;function X(re){b[j++]=re}for(y=0,B=0;y<I;y+=4,B+=3)W=r(p.charAt(y))<<18|r(p.charAt(y+1))<<12|r(p.charAt(y+2))<<6|r(p.charAt(y+3)),X((W&16711680)>>16),X((W&65280)>>8),X(W&255);return F===2?(W=r(p.charAt(y))<<2|r(p.charAt(y+1))>>4,X(W&255)):F===1&&(W=r(p.charAt(y))<<10|r(p.charAt(y+1))<<4|r(p.charAt(y+2))>>2,X(W>>8&255),X(W&255)),b}function u(p){var y,B=p.length%3,I="",W,F;function b(j){return x.charAt(j)}function H(j){return b(j>>18&63)+b(j>>12&63)+b(j>>6&63)+b(j&63)}for(y=0,F=p.length-B;y<F;y+=3)W=(p[y]<<16)+(p[y+1]<<8)+p[y+2],I+=H(W);switch(B){case 1:W=p[p.length-1],I+=b(W>>2),I+=b(W<<4&63),I+="==";break;case 2:W=(p[p.length-2]<<8)+p[p.length-1],I+=b(W>>10),I+=b(W>>4&63),I+=b(W<<2&63),I+="=";break}return I}a.toByteArray=s,a.fromByteArray=u})(typeof C>"u"?this.base64js={}:C)},{}],3:[function(A,P,C){C.read=function(x,a,h,l,n){var d,m,_=n*8-l-1,r=(1<<_)-1,s=r>>1,u=-7,p=h?n-1:0,y=h?-1:1,B=x[a+p];for(p+=y,d=B&(1<<-u)-1,B>>=-u,u+=_;u>0;d=d*256+x[a+p],p+=y,u-=8);for(m=d&(1<<-u)-1,d>>=-u,u+=l;u>0;m=m*256+x[a+p],p+=y,u-=8);if(d===0)d=1-s;else{if(d===r)return m?NaN:(B?-1:1)*(1/0);m=m+Math.pow(2,l),d=d-s}return(B?-1:1)*m*Math.pow(2,d-l)},C.write=function(x,a,h,l,n,d){var m,_,r,s=d*8-n-1,u=(1<<s)-1,p=u>>1,y=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,B=l?0:d-1,I=l?1:-1,W=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(_=isNaN(a)?1:0,m=u):(m=Math.floor(Math.log(a)/Math.LN2),a*(r=Math.pow(2,-m))<1&&(m--,r*=2),m+p>=1?a+=y/r:a+=y*Math.pow(2,1-p),a*r>=2&&(m++,r/=2),m+p>=u?(_=0,m=u):m+p>=1?(_=(a*r-1)*Math.pow(2,n),m=m+p):(_=a*Math.pow(2,p-1)*Math.pow(2,n),m=0));n>=8;x[h+B]=_&255,B+=I,_/=256,n-=8);for(m=m<<n|_,s+=n;s>0;x[h+B]=m&255,B+=I,m/=256,s-=8);x[h+B-I]|=W*128}},{}],4:[function(A,P,C){var x=Array.isArray,a=Object.prototype.toString;P.exports=x||function(h){return!!h&&a.call(h)=="[object Array]"}},{}],5:[function(A,P,C){var x=A("./dataReader");function a(h){if(h){this.data=h,this.length=this.data.length,this.index=0,this.zero=0;for(var l=0;l<this.data.length;l++)h[l]=h[l]&255}}a.prototype=new x,a.prototype.byteAt=function(h){return this.data[this.zero+h]},a.prototype.lastIndexOfSignature=function(h){for(var l=h.charCodeAt(0),n=h.charCodeAt(1),d=h.charCodeAt(2),m=h.charCodeAt(3),_=this.length-4;_>=0;--_)if(this.data[_]===l&&this.data[_+1]===n&&this.data[_+2]===d&&this.data[_+3]===m)return _-this.zero;return-1},a.prototype.readData=function(h){if(this.checkOffset(h),h===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,l},P.exports=a},{"./dataReader":10}],6:[function(A,P,C){var x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";C.encode=function(a,h){for(var l="",n,d,m,_,r,s,u,p=0;p<a.length;)n=a.charCodeAt(p++),d=a.charCodeAt(p++),m=a.charCodeAt(p++),_=n>>2,r=(n&3)<<4|d>>4,s=(d&15)<<2|m>>6,u=m&63,isNaN(d)?s=u=64:isNaN(m)&&(u=64),l=l+x.charAt(_)+x.charAt(r)+x.charAt(s)+x.charAt(u);return l},C.decode=function(a,h){var l="",n,d,m,_,r,s,u,p=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");p<a.length;)_=x.indexOf(a.charAt(p++)),r=x.indexOf(a.charAt(p++)),s=x.indexOf(a.charAt(p++)),u=x.indexOf(a.charAt(p++)),n=_<<2|r>>4,d=(r&15)<<4|s>>2,m=(s&3)<<6|u,l=l+String.fromCharCode(n),s!=64&&(l=l+String.fromCharCode(d)),u!=64&&(l=l+String.fromCharCode(m));return l}},{}],7:[function(A,P,C){function x(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}x.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},P.exports=x},{}],8:[function(A,P,C){C.STORE={magic:"\0\0",compress:function(x,a){return x},uncompress:function(x){return x},compressInputType:null,uncompressInputType:null},C.DEFLATE=A("./flate")},{"./flate":13}],9:[function(A,P,C){var x=A("./utils"),a=[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];P.exports=function(l,n){if(typeof l>"u"||!l.length)return 0;var d=x.getTypeOf(l)!=="string";typeof n>"u"&&(n=0);var m=0,_=0,r=0;n=n^-1;for(var s=0,u=l.length;s<u;s++)r=d?l[s]:l.charCodeAt(s),_=(n^r)&255,m=a[_],n=n>>>8^m;return n^-1}},{"./utils":26}],10:[function(A,P,C){var x=A("./utils");function a(h){this.data=null,this.length=0,this.index=0,this.zero=0}a.prototype={checkOffset:function(h){this.checkIndex(this.index+h)},checkIndex:function(h){if(this.length<this.zero+h||h<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+h+"). Corrupted zip ?")},setIndex:function(h){this.checkIndex(h),this.index=h},skip:function(h){this.setIndex(this.index+h)},byteAt:function(h){},readInt:function(h){var l=0,n;for(this.checkOffset(h),n=this.index+h-1;n>=this.index;n--)l=(l<<8)+this.byteAt(n);return this.index+=h,l},readString:function(h){return x.transformTo("string",this.readData(h))},readData:function(h){},lastIndexOfSignature:function(h){},readDate:function(){var h=this.readInt(4);return new Date((h>>25&127)+1980,(h>>21&15)-1,h>>16&31,h>>11&31,h>>5&63,(h&31)<<1)}},P.exports=a},{"./utils":26}],11:[function(A,P,C){C.base64=!1,C.binary=!1,C.dir=!1,C.createFolders=!1,C.date=null,C.compression=null,C.compressionOptions=null,C.comment=null,C.unixPermissions=null,C.dosPermissions=null},{}],12:[function(A,P,C){var x=A("./utils");C.string2binary=function(a){return x.string2binary(a)},C.string2Uint8Array=function(a){return x.transformTo("uint8array",a)},C.uint8Array2String=function(a){return x.transformTo("string",a)},C.string2Blob=function(a){var h=x.transformTo("arraybuffer",a);return x.arrayBuffer2Blob(h)},C.arrayBuffer2Blob=function(a){return x.arrayBuffer2Blob(a)},C.transformTo=function(a,h){return x.transformTo(a,h)},C.getTypeOf=function(a){return x.getTypeOf(a)},C.checkSupport=function(a){return x.checkSupport(a)},C.MAX_VALUE_16BITS=x.MAX_VALUE_16BITS,C.MAX_VALUE_32BITS=x.MAX_VALUE_32BITS,C.pretty=function(a){return x.pretty(a)},C.findCompression=function(a){return x.findCompression(a)},C.isRegExp=function(a){return x.isRegExp(a)}},{"./utils":26}],13:[function(A,P,C){var x=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=A("pako");C.uncompressInputType=x?"uint8array":"array",C.compressInputType=x?"uint8array":"array",C.magic="\b\0",C.compress=function(h,l){return a.deflateRaw(h,{level:l.level||-1})},C.uncompress=function(h){return a.inflateRaw(h)}},{pako:29}],14:[function(A,P,C){var x=A("./base64");function a(h,l){if(!(this instanceof a))return new a(h,l);this.files={},this.comment=null,this.root="",h&&this.load(h,l),this.clone=function(){var n=new a;for(var d in this)typeof this[d]!="function"&&(n[d]=this[d]);return n}}a.prototype=A("./object"),a.prototype.load=A("./load"),a.support=A("./support"),a.defaults=A("./defaults"),a.utils=A("./deprecatedPublicUtils"),a.base64={encode:function(h){return x.encode(h)},decode:function(h){return x.decode(h)}},a.compressions=A("./compressions"),P.exports=a},{"./base64":6,"./compressions":8,"./defaults":11,"./deprecatedPublicUtils":12,"./load":15,"./object":18,"./support":22}],15:[function(A,P,C){var x=A("./base64"),a=A("./utf8"),h=A("./utils"),l=A("./zipEntries");P.exports=function(n,d){var m,_,r,s;for(d=h.extend(d||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),d.base64&&(n=x.decode(n)),_=new l(n,d),m=_.files,r=0;r<m.length;r++)s=m[r],this.file(s.fileNameStr,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:d.createFolders});return _.zipComment.length&&(this.comment=_.zipComment),this}},{"./base64":6,"./utf8":25,"./utils":26,"./zipEntries":27}],16:[function(A,P,C){(function(x){P.exports=function(a,h){return new x(a,h)},P.exports.test=function(a){return x.isBuffer(a)}}).call(this,A("buffer").Buffer)},{buffer:1}],17:[function(A,P,C){var x=A("./uint8ArrayReader");function a(h){this.data=h,this.length=this.data.length,this.index=0,this.zero=0}a.prototype=new x,a.prototype.readData=function(h){this.checkOffset(h);var l=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,l},P.exports=a},{"./uint8ArrayReader":23}],18:[function(A,P,C){var x=A("./support"),a=A("./utils"),h=A("./crc32"),l=A("./signature"),n=A("./defaults"),d=A("./base64"),m=A("./compressions"),_=A("./compressedObject"),r=A("./nodeBuffer"),s=A("./utf8"),u=A("./stringWriter"),p=A("./uint8ArrayWriter"),y=function(D){if(D._data instanceof _&&(D._data=D._data.getContent(),D.options.binary=!0,D.options.base64=!1,a.getTypeOf(D._data)==="uint8array")){var z=D._data;D._data=new Uint8Array(z.length),z.length!==0&&D._data.set(z,0)}return D._data},B=function(D){var z=y(D),O=a.getTypeOf(z);return O==="string"?!D.options.binary&&x.nodebuffer?r(z,"utf-8"):D.asBinary():z},I=function(D){var z=y(this);return z===null||typeof z>"u"?"":(this.options.base64&&(z=d.decode(z)),D&&this.options.binary?z=ae.utf8decode(z):z=a.transformTo("string",z),!D&&!this.options.binary&&(z=a.transformTo("string",ae.utf8encode(z))),z)},W=function(D,z,O){this.name=D,this.dir=O.dir,this.date=O.date,this.comment=O.comment,this.unixPermissions=O.unixPermissions,this.dosPermissions=O.dosPermissions,this._data=z,this.options=O,this._initialMetadata={dir:O.dir,date:O.date}};W.prototype={asText:function(){return I.call(this,!0)},asBinary:function(){return I.call(this,!1)},asNodeBuffer:function(){var D=B(this);return a.transformTo("nodebuffer",D)},asUint8Array:function(){var D=B(this);return a.transformTo("uint8array",D)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var F=function(D,z){var O="",te;for(te=0;te<z;te++)O+=String.fromCharCode(D&255),D=D>>>8;return O},b=function(D){return D=D||{},D.base64===!0&&(D.binary===null||D.binary===void 0)&&(D.binary=!0),D=a.extend(D,n),D.date=D.date||new Date,D.compression!==null&&(D.compression=D.compression.toUpperCase()),D},H=function(D,z,O){var te=a.getTypeOf(z),ie;if(O=b(O),typeof O.unixPermissions=="string"&&(O.unixPermissions=parseInt(O.unixPermissions,8)),O.unixPermissions&&O.unixPermissions&16384&&(O.dir=!0),O.dosPermissions&&O.dosPermissions&16&&(O.dir=!0),O.dir&&(D=X(D)),O.createFolders&&(ie=j(D))&&re.call(this,ie,!0),O.dir||z===null||typeof z>"u")O.base64=!1,O.binary=!1,z=null,te=null;else if(te==="string")O.binary&&!O.base64&&O.optimizedBinaryString!==!0&&(z=a.string2binary(z));else{if(O.base64=!1,O.binary=!0,!te&&!(z instanceof _))throw new Error("The data of '"+D+"' is in an unsupported format !");te==="arraybuffer"&&(z=a.transformTo("uint8array",z))}var oe=new W(D,z,O);return this.files[D]=oe,oe},j=function(D){D.slice(-1)=="/"&&(D=D.substring(0,D.length-1));var z=D.lastIndexOf("/");return z>0?D.substring(0,z):""},X=function(D){return D.slice(-1)!="/"&&(D+="/"),D},re=function(D,z){return z=typeof z<"u"?z:!1,D=X(D),this.files[D]||H.call(this,D,null,{dir:!0,createFolders:z}),this.files[D]},V=function(D,z,O){var te=new _,ie;return D._data instanceof _?(te.uncompressedSize=D._data.uncompressedSize,te.crc32=D._data.crc32,te.uncompressedSize===0||D.dir?(z=m.STORE,te.compressedContent="",te.crc32=0):D._data.compressionMethod===z.magic?te.compressedContent=D._data.getCompressedContent():(ie=D._data.getContent(),te.compressedContent=z.compress(a.transformTo(z.compressInputType,ie),O))):(ie=B(D),(!ie||ie.length===0||D.dir)&&(z=m.STORE,ie=""),te.uncompressedSize=ie.length,te.crc32=h(ie),te.compressedContent=z.compress(a.transformTo(z.compressInputType,ie),O)),te.compressedSize=te.compressedContent.length,te.compressionMethod=z.magic,te},$=function(D,z){var O=D;return D||(O=z?16893:33204),(O&65535)<<16},U=function(D,z){return(D||0)&63},ne=function(D,z,O,te,ie,oe){O.compressedContent;var le=oe!==s.utf8encode,_e=a.transformTo("string",oe(z.name)),be=a.transformTo("string",s.utf8encode(z.name)),t=z.comment||"",f=a.transformTo("string",oe(t)),w=a.transformTo("string",s.utf8encode(t)),N=be.length!==z.name.length,g=w.length!==t.length,v=z.options,E,R,T="",Z="",K="",fe,he;z._initialMetadata.dir!==z.dir?fe=z.dir:fe=v.dir,z._initialMetadata.date!==z.date?he=z.date:he=v.date;var ye=0,ce=0;fe&&(ye|=16),ie==="UNIX"?(ce=798,ye|=$(z.unixPermissions,fe)):(ce=20,ye|=U(z.dosPermissions)),E=he.getHours(),E=E<<6,E=E|he.getMinutes(),E=E<<5,E=E|he.getSeconds()/2,R=he.getFullYear()-1980,R=R<<4,R=R|he.getMonth()+1,R=R<<5,R=R|he.getDate(),N&&(Z=F(1,1)+F(h(_e),4)+be,T+="up"+F(Z.length,2)+Z),g&&(K=F(1,1)+F(this.crc32(f),4)+w,T+="uc"+F(K.length,2)+K);var pe="";pe+=`
\0`,pe+=!le&&(N||g)?"\0\b":"\0\0",pe+=O.compressionMethod,pe+=F(E,2),pe+=F(R,2),pe+=F(O.crc32,4),pe+=F(O.compressedSize,4),pe+=F(O.uncompressedSize,4),pe+=F(_e.length,2),pe+=F(T.length,2);var De=l.LOCAL_FILE_HEADER+pe+_e+T,we=l.CENTRAL_FILE_HEADER+F(ce,2)+pe+F(f.length,2)+"\0\0\0\0"+F(ye,4)+F(te,4)+_e+T+f;return{fileRecord:De,dirRecord:we,compressedObject:O}},ae={load:function(D,z){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(D){var z=[],O,te,ie,oe;for(O in this.files)this.files.hasOwnProperty(O)&&(ie=this.files[O],oe=new W(ie.name,ie._data,a.extend(ie.options)),te=O.slice(this.root.length,O.length),O.slice(0,this.root.length)===this.root&&D(te,oe)&&z.push(oe));return z},file:function(D,z,O){if(arguments.length===1)if(a.isRegExp(D)){var te=D;return this.filter(function(ie,oe){return!oe.dir&&te.test(ie)})}else return this.filter(function(ie,oe){return!oe.dir&&ie===D})[0]||null;else D=this.root+D,H.call(this,D,z,O);return this},folder:function(D){if(!D)return this;if(a.isRegExp(D))return this.filter(function(ie,oe){return oe.dir&&D.test(ie)});var z=this.root+D,O=re.call(this,z),te=this.clone();return te.root=O.name,te},remove:function(D){D=this.root+D;var z=this.files[D];if(z||(D.slice(-1)!="/"&&(D+="/"),z=this.files[D]),z&&!z.dir)delete this.files[D];else for(var O=this.filter(function(ie,oe){return oe.name.slice(0,D.length)===D}),te=0;te<O.length;te++)delete this.files[O[te].name];return this},generate:function(D){D=a.extend(D||{},{base64:!0,compression:"STORE",compressionOptions:null,type:"base64",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode}),a.checkSupport(D.type),(D.platform==="darwin"||D.platform==="freebsd"||D.platform==="linux"||D.platform==="sunos")&&(D.platform="UNIX"),D.platform==="win32"&&(D.platform="DOS");var z=[],O=0,te=0,ie,oe,le=a.transformTo("string",D.encodeFileName(D.comment||this.comment||""));for(var _e in this.files)if(this.files.hasOwnProperty(_e)){var be=this.files[_e],t=be.options.compression||D.compression.toUpperCase(),f=m[t];if(!f)throw new Error(t+" is not a valid compression method !");var w=be.options.compressionOptions||D.compressionOptions||{},N=V.call(this,be,f,w),g=ne.call(this,_e,be,N,O,D.platform,D.encodeFileName);O+=g.fileRecord.length+N.compressedSize,te+=g.dirRecord.length,z.push(g)}var v="";v=l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+F(z.length,2)+F(z.length,2)+F(te,4)+F(O,4)+F(le.length,2)+le;var E=D.type.toLowerCase();for(E==="uint8array"||E==="arraybuffer"||E==="blob"||E==="nodebuffer"?ie=new p(O+te+v.length):ie=new u(O+te+v.length),oe=0;oe<z.length;oe++)ie.append(z[oe].fileRecord),ie.append(z[oe].compressedObject.compressedContent);for(oe=0;oe<z.length;oe++)ie.append(z[oe].dirRecord);ie.append(v);var R=ie.finalize();switch(D.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return a.transformTo(D.type.toLowerCase(),R);case"blob":return a.arrayBuffer2Blob(a.transformTo("arraybuffer",R),D.mimeType);case"base64":return D.base64?d.encode(R):R;default:return R}},crc32:function(D,z){return h(D,z)},utf8encode:function(D){return a.transformTo("string",s.utf8encode(D))},utf8decode:function(D){return s.utf8decode(D)}};P.exports=ae},{"./base64":6,"./compressedObject":7,"./compressions":8,"./crc32":9,"./defaults":11,"./nodeBuffer":16,"./signature":19,"./stringWriter":21,"./support":22,"./uint8ArrayWriter":24,"./utf8":25,"./utils":26}],19:[function(A,P,C){C.LOCAL_FILE_HEADER="PK",C.CENTRAL_FILE_HEADER="PK",C.CENTRAL_DIRECTORY_END="PK",C.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",C.ZIP64_CENTRAL_DIRECTORY_END="PK",C.DATA_DESCRIPTOR="PK\x07\b"},{}],20:[function(A,P,C){var x=A("./dataReader"),a=A("./utils");function h(l,n){this.data=l,n||(this.data=a.string2binary(this.data)),this.length=this.data.length,this.index=0,this.zero=0}h.prototype=new x,h.prototype.byteAt=function(l){return this.data.charCodeAt(this.zero+l)},h.prototype.lastIndexOfSignature=function(l){return this.data.lastIndexOf(l)-this.zero},h.prototype.readData=function(l){this.checkOffset(l);var n=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,n},P.exports=h},{"./dataReader":10,"./utils":26}],21:[function(A,P,C){var x=A("./utils"),a=function(){this.data=[]};a.prototype={append:function(h){h=x.transformTo("string",h),this.data.push(h)},finalize:function(){return this.data.join("")}},P.exports=a},{"./utils":26}],22:[function(A,P,C){(function(x){if(C.base64=!0,C.array=!0,C.string=!0,C.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",C.nodebuffer=typeof x<"u",C.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")C.blob=!1;else{var a=new ArrayBuffer(0);try{C.blob=new Blob([a],{type:"application/zip"}).size===0}catch{try{var h=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,l=new h;l.append(a),C.blob=l.getBlob("application/zip").size===0}catch{C.blob=!1}}}}).call(this,A("buffer").Buffer)},{buffer:1}],23:[function(A,P,C){var x=A("./arrayReader");function a(h){h&&(this.data=h,this.length=this.data.length,this.index=0,this.zero=0)}a.prototype=new x,a.prototype.readData=function(h){if(this.checkOffset(h),h===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+h);return this.index+=h,l},P.exports=a},{"./arrayReader":5}],24:[function(A,P,C){var x=A("./utils"),a=function(h){this.data=new Uint8Array(h),this.index=0};a.prototype={append:function(h){h.length!==0&&(h=x.transformTo("uint8array",h),this.data.set(h,this.index),this.index+=h.length)},finalize:function(){return this.data}},P.exports=a},{"./utils":26}],25:[function(A,P,C){for(var x=A("./utils"),a=A("./support"),h=A("./nodeBuffer"),l=new Array(256),n=0;n<256;n++)l[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;l[254]=l[254]=1;var d=function(r){var s,u,p,y,B,I=r.length,W=0;for(y=0;y<I;y++)u=r.charCodeAt(y),(u&64512)===55296&&y+1<I&&(p=r.charCodeAt(y+1),(p&64512)===56320&&(u=65536+(u-55296<<10)+(p-56320),y++)),W+=u<128?1:u<2048?2:u<65536?3:4;for(a.uint8array?s=new Uint8Array(W):s=new Array(W),B=0,y=0;B<W;y++)u=r.charCodeAt(y),(u&64512)===55296&&y+1<I&&(p=r.charCodeAt(y+1),(p&64512)===56320&&(u=65536+(u-55296<<10)+(p-56320),y++)),u<128?s[B++]=u:u<2048?(s[B++]=192|u>>>6,s[B++]=128|u&63):u<65536?(s[B++]=224|u>>>12,s[B++]=128|u>>>6&63,s[B++]=128|u&63):(s[B++]=240|u>>>18,s[B++]=128|u>>>12&63,s[B++]=128|u>>>6&63,s[B++]=128|u&63);return s},m=function(r,s){var u;for(s=s||r.length,s>r.length&&(s=r.length),u=s-1;u>=0&&(r[u]&192)===128;)u--;return u<0||u===0?s:u+l[r[u]]>s?u:s},_=function(r){var s,u,p,y,B=r.length,I=new Array(B*2);for(u=0,s=0;s<B;){if(p=r[s++],p<128){I[u++]=p;continue}if(y=l[p],y>4){I[u++]=65533,s+=y-1;continue}for(p&=y===2?31:y===3?15:7;y>1&&s<B;)p=p<<6|r[s++]&63,y--;if(y>1){I[u++]=65533;continue}p<65536?I[u++]=p:(p-=65536,I[u++]=55296|p>>10&1023,I[u++]=56320|p&1023)}return I.length!==u&&(I.subarray?I=I.subarray(0,u):I.length=u),x.applyFromCharCode(I)};C.utf8encode=function(s){return a.nodebuffer?h(s,"utf-8"):d(s)},C.utf8decode=function(s){if(a.nodebuffer)return x.transformTo("nodebuffer",s).toString("utf-8");s=x.transformTo(a.uint8array?"uint8array":"array",s);for(var u=[],p=0,y=s.length,B=65536;p<y;){var I=m(s,Math.min(p+B,y));a.uint8array?u.push(_(s.subarray(p,I))):u.push(_(s.slice(p,I))),p=I}return u.join("")}},{"./nodeBuffer":16,"./support":22,"./utils":26}],26:[function(A,P,C){var x=A("./support"),a=A("./compressions"),h=A("./nodeBuffer");C.string2binary=function(r){for(var s="",u=0;u<r.length;u++)s+=String.fromCharCode(r.charCodeAt(u)&255);return s},C.arrayBuffer2Blob=function(r,s){C.checkSupport("blob"),s=s||"application/zip";try{return new Blob([r],{type:s})}catch{try{var u=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,p=new u;return p.append(r),p.getBlob(s)}catch{throw new Error("Bug : can't construct the Blob.")}}};function l(r){return r}function n(r,s){for(var u=0;u<r.length;++u)s[u]=r.charCodeAt(u)&255;return s}function d(r){var s=65536,u=[],p=r.length,y=C.getTypeOf(r),B=0,I=!0;try{switch(y){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,h(0));break}}catch{I=!1}if(!I){for(var W="",F=0;F<r.length;F++)W+=String.fromCharCode(r[F]);return W}for(;B<p&&s>1;)try{y==="array"||y==="nodebuffer"?u.push(String.fromCharCode.apply(null,r.slice(B,Math.min(B+s,p)))):u.push(String.fromCharCode.apply(null,r.subarray(B,Math.min(B+s,p)))),B+=s}catch{s=Math.floor(s/2)}return u.join("")}C.applyFromCharCode=d;function m(r,s){for(var u=0;u<r.length;u++)s[u]=r[u];return s}var _={};_.string={string:l,array:function(r){return n(r,new Array(r.length))},arraybuffer:function(r){return _.string.uint8array(r).buffer},uint8array:function(r){return n(r,new Uint8Array(r.length))},nodebuffer:function(r){return n(r,h(r.length))}},_.array={string:d,array:l,arraybuffer:function(r){return new Uint8Array(r).buffer},uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return h(r)}},_.arraybuffer={string:function(r){return d(new Uint8Array(r))},array:function(r){return m(new Uint8Array(r),new Array(r.byteLength))},arraybuffer:l,uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return h(new Uint8Array(r))}},_.uint8array={string:d,array:function(r){return m(r,new Array(r.length))},arraybuffer:function(r){return r.buffer},uint8array:l,nodebuffer:function(r){return h(r)}},_.nodebuffer={string:d,array:function(r){return m(r,new Array(r.length))},arraybuffer:function(r){return _.nodebuffer.uint8array(r).buffer},uint8array:function(r){return m(r,new Uint8Array(r.length))},nodebuffer:l},C.transformTo=function(r,s){if(s||(s=""),!r)return s;C.checkSupport(r);var u=C.getTypeOf(s),p=_[u][r](s);return p},C.getTypeOf=function(r){if(typeof r=="string")return"string";if(Object.prototype.toString.call(r)==="[object Array]")return"array";if(x.nodebuffer&&h.test(r))return"nodebuffer";if(x.uint8array&&r instanceof Uint8Array)return"uint8array";if(x.arraybuffer&&r instanceof ArrayBuffer)return"arraybuffer"},C.checkSupport=function(r){var s=x[r.toLowerCase()];if(!s)throw new Error(r+" is not supported by this browser")},C.MAX_VALUE_16BITS=65535,C.MAX_VALUE_32BITS=-1,C.pretty=function(r){var s="",u,p;for(p=0;p<(r||"").length;p++)u=r.charCodeAt(p),s+="\\x"+(u<16?"0":"")+u.toString(16).toUpperCase();return s},C.findCompression=function(r){for(var s in a)if(a.hasOwnProperty(s)&&a[s].magic===r)return a[s];return null},C.isRegExp=function(r){return Object.prototype.toString.call(r)==="[object RegExp]"},C.extend=function(){var r={},s,u;for(s=0;s<arguments.length;s++)for(u in arguments[s])arguments[s].hasOwnProperty(u)&&typeof r[u]>"u"&&(r[u]=arguments[s][u]);return r}},{"./compressions":8,"./nodeBuffer":16,"./support":22}],27:[function(A,P,C){var x=A("./stringReader"),a=A("./nodeBufferReader"),h=A("./uint8ArrayReader"),l=A("./arrayReader"),n=A("./utils"),d=A("./signature"),m=A("./zipEntry"),_=A("./support");A("./object");function r(s,u){this.files=[],this.loadOptions=u,s&&this.load(s)}r.prototype={checkSignature:function(s){var u=this.reader.readString(4);if(u!==s)throw new Error("Corrupted zip or bug : unexpected signature ("+n.pretty(u)+", expected "+n.pretty(s)+")")},isSignature:function(s,u){var p=this.reader.index;this.reader.setIndex(s);var y=this.reader.readString(4),B=y===u;return this.reader.setIndex(p),B},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var s=this.reader.readData(this.zipCommentLength),u=_.uint8array?"uint8array":"array",p=n.transformTo(u,s);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var s=this.zip64EndOfCentralSize-44,u=0,p,y,B;u<s;)p=this.reader.readInt(2),y=this.reader.readInt(4),B=this.reader.readString(y),this.zip64ExtensibleData[p]={id:p,length:y,value:B}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var s,u;for(s=0;s<this.files.length;s++)u=this.files[s],this.reader.setIndex(u.localHeaderOffset),this.checkSignature(d.LOCAL_FILE_HEADER),u.readLocalPart(this.reader),u.handleUTF8(),u.processAttributes()},readCentralDir:function(){var s;for(this.reader.setIndex(this.centralDirOffset);this.reader.readString(4)===d.CENTRAL_FILE_HEADER;)s=new m({zip64:this.zip64},this.loadOptions),s.readCentralPart(this.reader),this.files.push(s);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var s=this.reader.lastIndexOfSignature(d.CENTRAL_DIRECTORY_END);if(s<0){var u=!this.isSignature(0,d.LOCAL_FILE_HEADER);throw u?new Error("Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip : can't find end of central directory")}this.reader.setIndex(s);var p=s;if(this.checkSignature(d.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===n.MAX_VALUE_16BITS||this.diskWithCentralDirStart===n.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===n.MAX_VALUE_16BITS||this.centralDirRecords===n.MAX_VALUE_16BITS||this.centralDirSize===n.MAX_VALUE_32BITS||this.centralDirOffset===n.MAX_VALUE_32BITS){if(this.zip64=!0,s=this.reader.lastIndexOfSignature(d.ZIP64_CENTRAL_DIRECTORY_LOCATOR),s<0)throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(s),this.checkSignature(d.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,d.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(d.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip : can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(d.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var y=this.centralDirOffset+this.centralDirSize;this.zip64&&(y+=20,y+=12+this.zip64EndOfCentralSize);var B=p-y;if(B>0)this.isSignature(p,d.CENTRAL_FILE_HEADER)||(this.reader.zero=B);else if(B<0)throw new Error("Corrupted zip: missing "+Math.abs(B)+" bytes.")},prepareReader:function(s){var u=n.getTypeOf(s);if(n.checkSupport(u),u==="string"&&!_.uint8array)this.reader=new x(s,this.loadOptions.optimizedBinaryString);else if(u==="nodebuffer")this.reader=new a(s);else if(_.uint8array)this.reader=new h(n.transformTo("uint8array",s));else if(_.array)this.reader=new l(n.transformTo("array",s));else throw new Error("Unexpected error: unsupported type '"+u+"'")},load:function(s){this.prepareReader(s),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},P.exports=r},{"./arrayReader":5,"./nodeBufferReader":17,"./object":18,"./signature":19,"./stringReader":20,"./support":22,"./uint8ArrayReader":23,"./utils":26,"./zipEntry":28}],28:[function(A,P,C){var x=A("./stringReader"),a=A("./utils"),h=A("./compressedObject"),l=A("./object"),n=A("./support"),d=0,m=3;function _(r,s){this.options=r,this.loadOptions=s}_.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},prepareCompressedContent:function(r,s,u){return function(){var p=r.index;r.setIndex(s);var y=r.readData(u);return r.setIndex(p),y}},prepareContent:function(r,s,u,p,y){return function(){var B=a.transformTo(p.uncompressInputType,this.getCompressedContent()),I=p.uncompress(B);if(I.length!==y)throw new Error("Bug : uncompressed data size mismatch");return I}},readLocalPart:function(r){var s,u;if(r.skip(22),this.fileNameLength=r.readInt(2),u=r.readInt(2),this.fileName=r.readData(this.fileNameLength),r.skip(u),this.compressedSize==-1||this.uncompressedSize==-1)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");if(s=a.findCompression(this.compressionMethod),s===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");if(this.decompressed=new h,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(r,r.index,this.compressedSize,s),this.decompressed.getContent=this.prepareContent(r,r.index,this.compressedSize,s,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=a.transformTo("string",this.decompressed.getContent()),l.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(r){if(this.versionMadeBy=r.readInt(2),this.versionNeeded=r.readInt(2),this.bitFlag=r.readInt(2),this.compressionMethod=r.readString(2),this.date=r.readDate(),this.crc32=r.readInt(4),this.compressedSize=r.readInt(4),this.uncompressedSize=r.readInt(4),this.fileNameLength=r.readInt(2),this.extraFieldsLength=r.readInt(2),this.fileCommentLength=r.readInt(2),this.diskNumberStart=r.readInt(2),this.internalFileAttributes=r.readInt(2),this.externalFileAttributes=r.readInt(4),this.localHeaderOffset=r.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=r.readData(this.fileNameLength),this.readExtraFields(r),this.parseZIP64ExtraField(r),this.fileComment=r.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var r=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),r===d&&(this.dosPermissions=this.externalFileAttributes&63),r===m&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(r){if(this.extraFields[1]){var s=new x(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=s.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=s.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=s.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=s.readInt(4))}},readExtraFields:function(r){var s=r.index,u,p,y;for(this.extraFields=this.extraFields||{};r.index<s+this.extraFieldsLength;)u=r.readInt(2),p=r.readInt(2),y=r.readString(p),this.extraFields[u]={id:u,length:p,value:y}},handleUTF8:function(){var r=n.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=l.utf8decode(this.fileName),this.fileCommentStr=l.utf8decode(this.fileComment);else{var s=this.findExtraFieldUnicodePath();if(s!==null)this.fileNameStr=s;else{var u=a.transformTo(r,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(u)}var p=this.findExtraFieldUnicodeComment();if(p!==null)this.fileCommentStr=p;else{var y=a.transformTo(r,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(y)}}},findExtraFieldUnicodePath:function(){var r=this.extraFields[28789];if(r){var s=new x(r.value);return s.readInt(1)!==1||l.crc32(this.fileName)!==s.readInt(4)?null:l.utf8decode(s.readString(r.length-5))}return null},findExtraFieldUnicodeComment:function(){var r=this.extraFields[25461];if(r){var s=new x(r.value);return s.readInt(1)!==1||l.crc32(this.fileComment)!==s.readInt(4)?null:l.utf8decode(s.readString(r.length-5))}return null}},P.exports=_},{"./compressedObject":7,"./object":18,"./stringReader":20,"./support":22,"./utils":26}],29:[function(A,P,C){var x=A("./lib/utils/common").assign,a=A("./lib/deflate"),h=A("./lib/inflate"),l=A("./lib/zlib/constants"),n={};x(n,a,h,l),P.exports=n},{"./lib/deflate":30,"./lib/inflate":31,"./lib/utils/common":32,"./lib/zlib/constants":35}],30:[function(A,P,C){var x=A("./zlib/deflate"),a=A("./utils/common"),h=A("./utils/strings"),l=A("./zlib/messages"),n=A("./zlib/zstream"),d=Object.prototype.toString,m=0,_=4,r=0,s=1,u=2,p=-1,y=0,B=8;function I(H){if(!(this instanceof I))return new I(H);this.options=a.assign({level:p,method:B,chunkSize:16384,windowBits:15,memLevel:8,strategy:y,to:""},H||{});var j=this.options;j.raw&&j.windowBits>0?j.windowBits=-j.windowBits:j.gzip&&j.windowBits>0&&j.windowBits<16&&(j.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new n,this.strm.avail_out=0;var X=x.deflateInit2(this.strm,j.level,j.method,j.windowBits,j.memLevel,j.strategy);if(X!==r)throw new Error(l[X]);if(j.header&&x.deflateSetHeader(this.strm,j.header),j.dictionary){var re;if(typeof j.dictionary=="string"?re=h.string2buf(j.dictionary):d.call(j.dictionary)==="[object ArrayBuffer]"?re=new Uint8Array(j.dictionary):re=j.dictionary,X=x.deflateSetDictionary(this.strm,re),X!==r)throw new Error(l[X]);this._dict_set=!0}}I.prototype.push=function(H,j){var X=this.strm,re=this.options.chunkSize,V,$;if(this.ended)return!1;$=j===~~j?j:j===!0?_:m,typeof H=="string"?X.input=h.string2buf(H):d.call(H)==="[object ArrayBuffer]"?X.input=new Uint8Array(H):X.input=H,X.next_in=0,X.avail_in=X.input.length;do{if(X.avail_out===0&&(X.output=new a.Buf8(re),X.next_out=0,X.avail_out=re),V=x.deflate(X,$),V!==s&&V!==r)return this.onEnd(V),this.ended=!0,!1;(X.avail_out===0||X.avail_in===0&&($===_||$===u))&&(this.options.to==="string"?this.onData(h.buf2binstring(a.shrinkBuf(X.output,X.next_out))):this.onData(a.shrinkBuf(X.output,X.next_out)))}while((X.avail_in>0||X.avail_out===0)&&V!==s);return $===_?(V=x.deflateEnd(this.strm),this.onEnd(V),this.ended=!0,V===r):($===u&&(this.onEnd(r),X.avail_out=0),!0)},I.prototype.onData=function(H){this.chunks.push(H)},I.prototype.onEnd=function(H){H===r&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=H,this.msg=this.strm.msg};function W(H,j){var X=new I(j);if(X.push(H,!0),X.err)throw X.msg;return X.result}function F(H,j){return j=j||{},j.raw=!0,W(H,j)}function b(H,j){return j=j||{},j.gzip=!0,W(H,j)}C.Deflate=I,C.deflate=W,C.deflateRaw=F,C.gzip=b},{"./utils/common":32,"./utils/strings":33,"./zlib/deflate":37,"./zlib/messages":42,"./zlib/zstream":44}],31:[function(A,P,C){var x=A("./zlib/inflate"),a=A("./utils/common"),h=A("./utils/strings"),l=A("./zlib/constants"),n=A("./zlib/messages"),d=A("./zlib/zstream"),m=A("./zlib/gzheader"),_=Object.prototype.toString;function r(p){if(!(this instanceof r))return new r(p);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},p||{});var y=this.options;y.raw&&y.windowBits>=0&&y.windowBits<16&&(y.windowBits=-y.windowBits,y.windowBits===0&&(y.windowBits=-15)),y.windowBits>=0&&y.windowBits<16&&!(p&&p.windowBits)&&(y.windowBits+=32),y.windowBits>15&&y.windowBits<48&&(y.windowBits&15||(y.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var B=x.inflateInit2(this.strm,y.windowBits);if(B!==l.Z_OK)throw new Error(n[B]);this.header=new m,x.inflateGetHeader(this.strm,this.header)}r.prototype.push=function(p,y){var B=this.strm,I=this.options.chunkSize,W=this.options.dictionary,F,b,H,j,X,re,V=!1;if(this.ended)return!1;b=y===~~y?y:y===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof p=="string"?B.input=h.binstring2buf(p):_.call(p)==="[object ArrayBuffer]"?B.input=new Uint8Array(p):B.input=p,B.next_in=0,B.avail_in=B.input.length;do{if(B.avail_out===0&&(B.output=new a.Buf8(I),B.next_out=0,B.avail_out=I),F=x.inflate(B,l.Z_NO_FLUSH),F===l.Z_NEED_DICT&&W&&(typeof W=="string"?re=h.string2buf(W):_.call(W)==="[object ArrayBuffer]"?re=new Uint8Array(W):re=W,F=x.inflateSetDictionary(this.strm,re)),F===l.Z_BUF_ERROR&&V===!0&&(F=l.Z_OK,V=!1),F!==l.Z_STREAM_END&&F!==l.Z_OK)return this.onEnd(F),this.ended=!0,!1;B.next_out&&(B.avail_out===0||F===l.Z_STREAM_END||B.avail_in===0&&(b===l.Z_FINISH||b===l.Z_SYNC_FLUSH))&&(this.options.to==="string"?(H=h.utf8border(B.output,B.next_out),j=B.next_out-H,X=h.buf2string(B.output,H),B.next_out=j,B.avail_out=I-j,j&&a.arraySet(B.output,B.output,H,j,0),this.onData(X)):this.onData(a.shrinkBuf(B.output,B.next_out))),B.avail_in===0&&B.avail_out===0&&(V=!0)}while((B.avail_in>0||B.avail_out===0)&&F!==l.Z_STREAM_END);return F===l.Z_STREAM_END&&(b=l.Z_FINISH),b===l.Z_FINISH?(F=x.inflateEnd(this.strm),this.onEnd(F),this.ended=!0,F===l.Z_OK):(b===l.Z_SYNC_FLUSH&&(this.onEnd(l.Z_OK),B.avail_out=0),!0)},r.prototype.onData=function(p){this.chunks.push(p)},r.prototype.onEnd=function(p){p===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg};function s(p,y){var B=new r(y);if(B.push(p,!0),B.err)throw B.msg;return B.result}function u(p,y){return y=y||{},y.raw=!0,s(p,y)}C.Inflate=r,C.inflate=s,C.inflateRaw=u,C.ungzip=s},{"./utils/common":32,"./utils/strings":33,"./zlib/constants":35,"./zlib/gzheader":38,"./zlib/inflate":40,"./zlib/messages":42,"./zlib/zstream":44}],32:[function(A,P,C){var x=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";C.assign=function(l){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var d=n.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var m in d)d.hasOwnProperty(m)&&(l[m]=d[m])}}return l},C.shrinkBuf=function(l,n){return l.length===n?l:l.subarray?l.subarray(0,n):(l.length=n,l)};var a={arraySet:function(l,n,d,m,_){if(n.subarray&&l.subarray){l.set(n.subarray(d,d+m),_);return}for(var r=0;r<m;r++)l[_+r]=n[d+r]},flattenChunks:function(l){var n,d,m,_,r,s;for(m=0,n=0,d=l.length;n<d;n++)m+=l[n].length;for(s=new Uint8Array(m),_=0,n=0,d=l.length;n<d;n++)r=l[n],s.set(r,_),_+=r.length;return s}},h={arraySet:function(l,n,d,m,_){for(var r=0;r<m;r++)l[_+r]=n[d+r]},flattenChunks:function(l){return[].concat.apply([],l)}};C.setTyped=function(l){l?(C.Buf8=Uint8Array,C.Buf16=Uint16Array,C.Buf32=Int32Array,C.assign(C,a)):(C.Buf8=Array,C.Buf16=Array,C.Buf32=Array,C.assign(C,h))},C.setTyped(x)},{}],33:[function(A,P,C){var x=A("./common"),a=!0,h=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{h=!1}for(var l=new x.Buf8(256),n=0;n<256;n++)l[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;l[254]=l[254]=1,C.string2buf=function(m){var _,r,s,u,p,y=m.length,B=0;for(u=0;u<y;u++)r=m.charCodeAt(u),(r&64512)===55296&&u+1<y&&(s=m.charCodeAt(u+1),(s&64512)===56320&&(r=65536+(r-55296<<10)+(s-56320),u++)),B+=r<128?1:r<2048?2:r<65536?3:4;for(_=new x.Buf8(B),p=0,u=0;p<B;u++)r=m.charCodeAt(u),(r&64512)===55296&&u+1<y&&(s=m.charCodeAt(u+1),(s&64512)===56320&&(r=65536+(r-55296<<10)+(s-56320),u++)),r<128?_[p++]=r:r<2048?(_[p++]=192|r>>>6,_[p++]=128|r&63):r<65536?(_[p++]=224|r>>>12,_[p++]=128|r>>>6&63,_[p++]=128|r&63):(_[p++]=240|r>>>18,_[p++]=128|r>>>12&63,_[p++]=128|r>>>6&63,_[p++]=128|r&63);return _};function d(m,_){if(_<65537&&(m.subarray&&h||!m.subarray&&a))return String.fromCharCode.apply(null,x.shrinkBuf(m,_));for(var r="",s=0;s<_;s++)r+=String.fromCharCode(m[s]);return r}C.buf2binstring=function(m){return d(m,m.length)},C.binstring2buf=function(m){for(var _=new x.Buf8(m.length),r=0,s=_.length;r<s;r++)_[r]=m.charCodeAt(r);return _},C.buf2string=function(m,_){var r,s,u,p,y=_||m.length,B=new Array(y*2);for(s=0,r=0;r<y;){if(u=m[r++],u<128){B[s++]=u;continue}if(p=l[u],p>4){B[s++]=65533,r+=p-1;continue}for(u&=p===2?31:p===3?15:7;p>1&&r<y;)u=u<<6|m[r++]&63,p--;if(p>1){B[s++]=65533;continue}u<65536?B[s++]=u:(u-=65536,B[s++]=55296|u>>10&1023,B[s++]=56320|u&1023)}return d(B,s)},C.utf8border=function(m,_){var r;for(_=_||m.length,_>m.length&&(_=m.length),r=_-1;r>=0&&(m[r]&192)===128;)r--;return r<0||r===0?_:r+l[m[r]]>_?r:_}},{"./common":32}],34:[function(A,P,C){function x(a,h,l,n){for(var d=a&65535|0,m=a>>>16&65535|0,_=0;l!==0;){_=l>2e3?2e3:l,l-=_;do d=d+h[n++]|0,m=m+d|0;while(--_);d%=65521,m%=65521}return d|m<<16|0}P.exports=x},{}],35:[function(A,P,C){P.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],36:[function(A,P,C){function x(){for(var l,n=[],d=0;d<256;d++){l=d;for(var m=0;m<8;m++)l=l&1?3988292384^l>>>1:l>>>1;n[d]=l}return n}var a=x();function h(l,n,d,m){var _=a,r=m+d;l^=-1;for(var s=m;s<r;s++)l=l>>>8^_[(l^n[s])&255];return l^-1}P.exports=h},{}],37:[function(A,P,C){var x=A("../utils/common"),a=A("./trees"),h=A("./adler32"),l=A("./crc32"),n=A("./messages"),d=0,m=1,_=3,r=4,s=5,u=0,p=1,y=-2,B=-3,I=-5,W=-1,F=1,b=2,H=3,j=4,X=0,re=2,V=8,$=9,U=15,ne=8,ae=29,D=256,z=D+1+ae,O=30,te=19,ie=2*z+1,oe=15,le=3,_e=258,be=_e+le+1,t=32,f=42,w=69,N=73,g=91,v=103,E=113,R=666,T=1,Z=2,K=3,fe=4,he=3;function ye(e,M){return e.msg=n[M],M}function ce(e){return(e<<1)-(e>4?9:0)}function pe(e){for(var M=e.length;--M>=0;)e[M]=0}function De(e){var M=e.state,Y=M.pending;Y>e.avail_out&&(Y=e.avail_out),Y!==0&&(x.arraySet(e.output,M.pending_buf,M.pending_out,Y,e.next_out),e.next_out+=Y,M.pending_out+=Y,e.total_out+=Y,e.avail_out-=Y,M.pending-=Y,M.pending===0&&(M.pending_out=0))}function we(e,M){a._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,M),e.block_start=e.strstart,De(e.strm)}function xe(e,M){e.pending_buf[e.pending++]=M}function Re(e,M){e.pending_buf[e.pending++]=M>>>8&255,e.pending_buf[e.pending++]=M&255}function Ne(e,M,Y,o){var S=e.avail_in;return S>o&&(S=o),S===0?0:(e.avail_in-=S,x.arraySet(M,e.input,e.next_in,S,Y),e.state.wrap===1?e.adler=h(e.adler,M,S,Y):e.state.wrap===2&&(e.adler=l(e.adler,M,S,Y)),e.next_in+=S,e.total_in+=S,S)}function Ue(e,M){var Y=e.max_chain_length,o=e.strstart,S,L,ge=e.prev_length,se=e.nice_match,de=e.strstart>e.w_size-be?e.strstart-(e.w_size-be):0,Ce=e.window,Ke=e.w_mask,Ie=e.prev,Se=e.strstart+_e,ze=Ce[o+ge-1],Ze=Ce[o+ge];e.prev_length>=e.good_match&&(Y>>=2),se>e.lookahead&&(se=e.lookahead);do if(S=M,!(Ce[S+ge]!==Ze||Ce[S+ge-1]!==ze||Ce[S]!==Ce[o]||Ce[++S]!==Ce[o+1])){o+=2,S++;do;while(Ce[++o]===Ce[++S]&&Ce[++o]===Ce[++S]&&Ce[++o]===Ce[++S]&&Ce[++o]===Ce[++S]&&Ce[++o]===Ce[++S]&&Ce[++o]===Ce[++S]&&Ce[++o]===Ce[++S]&&Ce[++o]===Ce[++S]&&o<Se);if(L=_e-(Se-o),o=Se-_e,L>ge){if(e.match_start=M,ge=L,L>=se)break;ze=Ce[o+ge-1],Ze=Ce[o+ge]}}while((M=Ie[M&Ke])>de&&--Y!==0);return ge<=e.lookahead?ge:e.lookahead}function We(e){var M=e.w_size,Y,o,S,L,ge;do{if(L=e.window_size-e.lookahead-e.strstart,e.strstart>=M+(M-be)){x.arraySet(e.window,e.window,M,M,0),e.match_start-=M,e.strstart-=M,e.block_start-=M,o=e.hash_size,Y=o;do S=e.head[--Y],e.head[Y]=S>=M?S-M:0;while(--o);o=M,Y=o;do S=e.prev[--Y],e.prev[Y]=S>=M?S-M:0;while(--o);L+=M}if(e.strm.avail_in===0)break;if(o=Ne(e.strm,e.window,e.strstart+e.lookahead,L),e.lookahead+=o,e.lookahead+e.insert>=le)for(ge=e.strstart-e.insert,e.ins_h=e.window[ge],e.ins_h=(e.ins_h<<e.hash_shift^e.window[ge+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[ge+le-1])&e.hash_mask,e.prev[ge&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=ge,ge++,e.insert--,!(e.lookahead+e.insert<le)););}while(e.lookahead<be&&e.strm.avail_in!==0)}function Fe(e,M){var Y=65535;for(Y>e.pending_buf_size-5&&(Y=e.pending_buf_size-5);;){if(e.lookahead<=1){if(We(e),e.lookahead===0&&M===d)return T;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var o=e.block_start+Y;if((e.strstart===0||e.strstart>=o)&&(e.lookahead=e.strstart-o,e.strstart=o,we(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-be&&(we(e,!1),e.strm.avail_out===0))return T}return e.insert=0,M===r?(we(e,!0),e.strm.avail_out===0?K:fe):(e.strstart>e.block_start&&(we(e,!1),e.strm.avail_out===0),T)}function Ee(e,M){for(var Y,o;;){if(e.lookahead<be){if(We(e),e.lookahead<be&&M===d)return T;if(e.lookahead===0)break}if(Y=0,e.lookahead>=le&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+le-1])&e.hash_mask,Y=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),Y!==0&&e.strstart-Y<=e.w_size-be&&(e.match_length=Ue(e,Y)),e.match_length>=le)if(o=a._tr_tally(e,e.strstart-e.match_start,e.match_length-le),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=le){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+le-1])&e.hash_mask,Y=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else o=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(o&&(we(e,!1),e.strm.avail_out===0))return T}return e.insert=e.strstart<le-1?e.strstart:le-1,M===r?(we(e,!0),e.strm.avail_out===0?K:fe):e.last_lit&&(we(e,!1),e.strm.avail_out===0)?T:Z}function Ae(e,M){for(var Y,o,S;;){if(e.lookahead<be){if(We(e),e.lookahead<be&&M===d)return T;if(e.lookahead===0)break}if(Y=0,e.lookahead>=le&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+le-1])&e.hash_mask,Y=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=le-1,Y!==0&&e.prev_length<e.max_lazy_match&&e.strstart-Y<=e.w_size-be&&(e.match_length=Ue(e,Y),e.match_length<=5&&(e.strategy===F||e.match_length===le&&e.strstart-e.match_start>4096)&&(e.match_length=le-1)),e.prev_length>=le&&e.match_length<=e.prev_length){S=e.strstart+e.lookahead-le,o=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-le),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+le-1])&e.hash_mask,Y=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=le-1,e.strstart++,o&&(we(e,!1),e.strm.avail_out===0))return T}else if(e.match_available){if(o=a._tr_tally(e,0,e.window[e.strstart-1]),o&&we(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return T}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(o=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<le-1?e.strstart:le-1,M===r?(we(e,!0),e.strm.avail_out===0?K:fe):e.last_lit&&(we(e,!1),e.strm.avail_out===0)?T:Z}function Oe(e,M){for(var Y,o,S,L,ge=e.window;;){if(e.lookahead<=_e){if(We(e),e.lookahead<=_e&&M===d)return T;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=le&&e.strstart>0&&(S=e.strstart-1,o=ge[S],o===ge[++S]&&o===ge[++S]&&o===ge[++S])){L=e.strstart+_e;do;while(o===ge[++S]&&o===ge[++S]&&o===ge[++S]&&o===ge[++S]&&o===ge[++S]&&o===ge[++S]&&o===ge[++S]&&o===ge[++S]&&S<L);e.match_length=_e-(L-S),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=le?(Y=a._tr_tally(e,1,e.match_length-le),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(Y=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),Y&&(we(e,!1),e.strm.avail_out===0))return T}return e.insert=0,M===r?(we(e,!0),e.strm.avail_out===0?K:fe):e.last_lit&&(we(e,!1),e.strm.avail_out===0)?T:Z}function Ye(e,M){for(var Y;;){if(e.lookahead===0&&(We(e),e.lookahead===0)){if(M===d)return T;break}if(e.match_length=0,Y=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,Y&&(we(e,!1),e.strm.avail_out===0))return T}return e.insert=0,M===r?(we(e,!0),e.strm.avail_out===0?K:fe):e.last_lit&&(we(e,!1),e.strm.avail_out===0)?T:Z}function Be(e,M,Y,o,S){this.good_length=e,this.max_lazy=M,this.nice_length=Y,this.max_chain=o,this.func=S}var He;He=[new Be(0,0,0,0,Fe),new Be(4,4,8,4,Ee),new Be(4,5,16,8,Ee),new Be(4,6,32,32,Ee),new Be(4,4,16,16,Ae),new Be(8,16,32,32,Ae),new Be(8,16,128,128,Ae),new Be(8,32,128,256,Ae),new Be(32,128,258,1024,Ae),new Be(32,258,258,4096,Ae)];function Le(e){e.window_size=2*e.w_size,pe(e.head),e.max_lazy_match=He[e.level].max_lazy,e.good_match=He[e.level].good_length,e.nice_match=He[e.level].nice_length,e.max_chain_length=He[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=le-1,e.match_available=0,e.ins_h=0}function c(){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=V,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 x.Buf16(ie*2),this.dyn_dtree=new x.Buf16((2*O+1)*2),this.bl_tree=new x.Buf16((2*te+1)*2),pe(this.dyn_ltree),pe(this.dyn_dtree),pe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new x.Buf16(oe+1),this.heap=new x.Buf16(2*z+1),pe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new x.Buf16(2*z+1),pe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Q(e){var M;return!e||!e.state?ye(e,y):(e.total_in=e.total_out=0,e.data_type=re,M=e.state,M.pending=0,M.pending_out=0,M.wrap<0&&(M.wrap=-M.wrap),M.status=M.wrap?f:E,e.adler=M.wrap===2?0:1,M.last_flush=d,a._tr_init(M),u)}function ee(e){var M=Q(e);return M===u&&Le(e.state),M}function ue(e,M){return!e||!e.state||e.state.wrap!==2?y:(e.state.gzhead=M,u)}function k(e,M,Y,o,S,L){if(!e)return y;var ge=1;if(M===W&&(M=6),o<0?(ge=0,o=-o):o>15&&(ge=2,o-=16),S<1||S>$||Y!==V||o<8||o>15||M<0||M>9||L<0||L>j)return ye(e,y);o===8&&(o=9);var se=new c;return e.state=se,se.strm=e,se.wrap=ge,se.gzhead=null,se.w_bits=o,se.w_size=1<<se.w_bits,se.w_mask=se.w_size-1,se.hash_bits=S+7,se.hash_size=1<<se.hash_bits,se.hash_mask=se.hash_size-1,se.hash_shift=~~((se.hash_bits+le-1)/le),se.window=new x.Buf8(se.w_size*2),se.head=new x.Buf16(se.hash_size),se.prev=new x.Buf16(se.w_size),se.lit_bufsize=1<<S+6,se.pending_buf_size=se.lit_bufsize*4,se.pending_buf=new x.Buf8(se.pending_buf_size),se.d_buf=se.lit_bufsize>>1,se.l_buf=3*se.lit_bufsize,se.level=M,se.strategy=L,se.method=Y,ee(e)}function G(e,M){return k(e,M,V,U,ne,X)}function i(e,M){var Y,o,S,L;if(!e||!e.state||M>s||M<0)return e?ye(e,y):y;if(o=e.state,!e.output||!e.input&&e.avail_in!==0||o.status===R&&M!==r)return ye(e,e.avail_out===0?I:y);if(o.strm=e,Y=o.last_flush,o.last_flush=M,o.status===f)if(o.wrap===2)e.adler=0,xe(o,31),xe(o,139),xe(o,8),o.gzhead?(xe(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),xe(o,o.gzhead.time&255),xe(o,o.gzhead.time>>8&255),xe(o,o.gzhead.time>>16&255),xe(o,o.gzhead.time>>24&255),xe(o,o.level===9?2:o.strategy>=b||o.level<2?4:0),xe(o,o.gzhead.os&255),o.gzhead.extra&&o.gzhead.extra.length&&(xe(o,o.gzhead.extra.length&255),xe(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=l(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=w):(xe(o,0),xe(o,0),xe(o,0),xe(o,0),xe(o,0),xe(o,o.level===9?2:o.strategy>=b||o.level<2?4:0),xe(o,he),o.status=E);else{var ge=V+(o.w_bits-8<<4)<<8,se=-1;o.strategy>=b||o.level<2?se=0:o.level<6?se=1:o.level===6?se=2:se=3,ge|=se<<6,o.strstart!==0&&(ge|=t),ge+=31-ge%31,o.status=E,Re(o,ge),o.strstart!==0&&(Re(o,e.adler>>>16),Re(o,e.adler&65535)),e.adler=1}if(o.status===w)if(o.gzhead.extra){for(S=o.pending;o.gzindex<(o.gzhead.extra.length&65535)&&!(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>S&&(e.adler=l(e.adler,o.pending_buf,o.pending-S,S)),De(e),S=o.pending,o.pending===o.pending_buf_size));)xe(o,o.gzhead.extra[o.gzindex]&255),o.gzindex++;o.gzhead.hcrc&&o.pending>S&&(e.adler=l(e.adler,o.pending_buf,o.pending-S,S)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=N)}else o.status=N;if(o.status===N)if(o.gzhead.name){S=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>S&&(e.adler=l(e.adler,o.pending_buf,o.pending-S,S)),De(e),S=o.pending,o.pending===o.pending_buf_size)){L=1;break}o.gzindex<o.gzhead.name.length?L=o.gzhead.name.charCodeAt(o.gzindex++)&255:L=0,xe(o,L)}while(L!==0);o.gzhead.hcrc&&o.pending>S&&(e.adler=l(e.adler,o.pending_buf,o.pending-S,S)),L===0&&(o.gzindex=0,o.status=g)}else o.status=g;if(o.status===g)if(o.gzhead.comment){S=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>S&&(e.adler=l(e.adler,o.pending_buf,o.pending-S,S)),De(e),S=o.pending,o.pending===o.pending_buf_size)){L=1;break}o.gzindex<o.gzhead.comment.length?L=o.gzhead.comment.charCodeAt(o.gzindex++)&255:L=0,xe(o,L)}while(L!==0);o.gzhead.hcrc&&o.pending>S&&(e.adler=l(e.adler,o.pending_buf,o.pending-S,S)),L===0&&(o.status=v)}else o.status=v;if(o.status===v&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&De(e),o.pending+2<=o.pending_buf_size&&(xe(o,e.adler&255),xe(o,e.adler>>8&255),e.adler=0,o.status=E)):o.status=E),o.pending!==0){if(De(e),e.avail_out===0)return o.last_flush=-1,u}else if(e.avail_in===0&&ce(M)<=ce(Y)&&M!==r)return ye(e,I);if(o.status===R&&e.avail_in!==0)return ye(e,I);if(e.avail_in!==0||o.lookahead!==0||M!==d&&o.status!==R){var de=o.strategy===b?Ye(o,M):o.strategy===H?Oe(o,M):He[o.level].func(o,M);if((de===K||de===fe)&&(o.status=R),de===T||de===K)return e.avail_out===0&&(o.last_flush=-1),u;if(de===Z&&(M===m?a._tr_align(o):M!==s&&(a._tr_stored_block(o,0,0,!1),M===_&&(pe(o.head),o.lookahead===0&&(o.strstart=0,o.block_start=0,o.insert=0))),De(e),e.avail_out===0))return o.last_flush=-1,u}return M!==r?u:o.wrap<=0?p:(o.wrap===2?(xe(o,e.adler&255),xe(o,e.adler>>8&255),xe(o,e.adler>>16&255),xe(o,e.adler>>24&255),xe(o,e.total_in&255),xe(o,e.total_in>>8&255),xe(o,e.total_in>>16&255),xe(o,e.total_in>>24&255)):(Re(o,e.adler>>>16),Re(o,e.adler&65535)),De(e),o.wrap>0&&(o.wrap=-o.wrap),o.pending!==0?u:p)}function q(e){var M;return!e||!e.state?y:(M=e.state.status,M!==f&&M!==w&&M!==N&&M!==g&&M!==v&&M!==E&&M!==R?ye(e,y):(e.state=null,M===E?ye(e,B):u))}function ve(e,M){var Y=M.length,o,S,L,ge,se,de,Ce,Ke;if(!e||!e.state||(o=e.state,ge=o.wrap,ge===2||ge===1&&o.status!==f||o.lookahead))return y;for(ge===1&&(e.adler=h(e.adler,M,Y,0)),o.wrap=0,Y>=o.w_size&&(ge===0&&(pe(o.head),o.strstart=0,o.block_start=0,o.insert=0),Ke=new x.Buf8(o.w_size),x.arraySet(Ke,M,Y-o.w_size,o.w_size,0),M=Ke,Y=o.w_size),se=e.avail_in,de=e.next_in,Ce=e.input,e.avail_in=Y,e.next_in=0,e.input=M,We(o);o.lookahead>=le;){S=o.strstart,L=o.lookahead-(le-1);do o.ins_h=(o.ins_h<<o.hash_shift^o.window[S+le-1])&o.hash_mask,o.prev[S&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=S,S++;while(--L);o.strstart=S,o.lookahead=le-1,We(o)}return o.strstart+=o.lookahead,o.block_start=o.strstart,o.insert=o.lookahead,o.lookahead=0,o.match_length=o.prev_length=le-1,o.match_available=0,e.next_in=de,e.input=Ce,e.avail_in=se,o.wrap=ge,u}C.deflateInit=G,C.deflateInit2=k,C.deflateReset=ee,C.deflateResetKeep=Q,C.deflateSetHeader=ue,C.deflate=i,C.deflateEnd=q,C.deflateSetDictionary=ve,C.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":32,"./adler32":34,"./crc32":36,"./messages":42,"./trees":43}],38:[function(A,P,C){function x(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}P.exports=x},{}],39:[function(A,P,C){var x=30,a=12;P.exports=function(l,n){var d,m,_,r,s,u,p,y,B,I,W,F,b,H,j,X,re,V,$,U,ne,ae,D,z,O;d=l.state,m=l.next_in,z=l.input,_=m+(l.avail_in-5),r=l.next_out,O=l.output,s=r-(n-l.avail_out),u=r+(l.avail_out-257),p=d.dmax,y=d.wsize,B=d.whave,I=d.wnext,W=d.window,F=d.hold,b=d.bits,H=d.lencode,j=d.distcode,X=(1<<d.lenbits)-1,re=(1<<d.distbits)-1;e:do{b<15&&(F+=z[m++]<<b,b+=8,F+=z[m++]<<b,b+=8),V=H[F&X];t:for(;;){if($=V>>>24,F>>>=$,b-=$,$=V>>>16&255,$===0)O[r++]=V&65535;else if($&16){U=V&65535,$&=15,$&&(b<$&&(F+=z[m++]<<b,b+=8),U+=F&(1<<$)-1,F>>>=$,b-=$),b<15&&(F+=z[m++]<<b,b+=8,F+=z[m++]<<b,b+=8),V=j[F&re];r:for(;;){if($=V>>>24,F>>>=$,b-=$,$=V>>>16&255,$&16){if(ne=V&65535,$&=15,b<$&&(F+=z[m++]<<b,b+=8,b<$&&(F+=z[m++]<<b,b+=8)),ne+=F&(1<<$)-1,ne>p){l.msg="invalid distance too far back",d.mode=x;break e}if(F>>>=$,b-=$,$=r-s,ne>$){if($=ne-$,$>B&&d.sane){l.msg="invalid distance too far back",d.mode=x;break e}if(ae=0,D=W,I===0){if(ae+=y-$,$<U){U-=$;do O[r++]=W[ae++];while(--$);ae=r-ne,D=O}}else if(I<$){if(ae+=y+I-$,$-=I,$<U){U-=$;do O[r++]=W[ae++];while(--$);if(ae=0,I<U){$=I,U-=$;do O[r++]=W[ae++];while(--$);ae=r-ne,D=O}}}else if(ae+=I-$,$<U){U-=$;do O[r++]=W[ae++];while(--$);ae=r-ne,D=O}for(;U>2;)O[r++]=D[ae++],O[r++]=D[ae++],O[r++]=D[ae++],U-=3;U&&(O[r++]=D[ae++],U>1&&(O[r++]=D[ae++]))}else{ae=r-ne;do O[r++]=O[ae++],O[r++]=O[ae++],O[r++]=O[ae++],U-=3;while(U>2);U&&(O[r++]=O[ae++],U>1&&(O[r++]=O[ae++]))}}else if($&64){l.msg="invalid distance code",d.mode=x;break e}else{V=j[(V&65535)+(F&(1<<$)-1)];continue r}break}}else if($&64)if($&32){d.mode=a;break e}else{l.msg="invalid literal/length code",d.mode=x;break e}else{V=H[(V&65535)+(F&(1<<$)-1)];continue t}break}}while(m<_&&r<u);U=b>>3,m-=U,b-=U<<3,F&=(1<<b)-1,l.next_in=m,l.next_out=r,l.avail_in=m<_?5+(_-m):5-(m-_),l.avail_out=r<u?257+(u-r):257-(r-u),d.hold=F,d.bits=b}},{}],40:[function(A,P,C){var x=A("../utils/common"),a=A("./adler32"),h=A("./crc32"),l=A("./inffast"),n=A("./inftrees"),d=0,m=1,_=2,r=4,s=5,u=6,p=0,y=1,B=2,I=-2,W=-3,F=-4,b=-5,H=8,j=1,X=2,re=3,V=4,$=5,U=6,ne=7,ae=8,D=9,z=10,O=11,te=12,ie=13,oe=14,le=15,_e=16,be=17,t=18,f=19,w=20,N=21,g=22,v=23,E=24,R=25,T=26,Z=27,K=28,fe=29,he=30,ye=31,ce=32,pe=852,De=592,we=15,xe=we;function Re(k){return(k>>>24&255)+(k>>>8&65280)+((k&65280)<<8)+((k&255)<<24)}function Ne(){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 x.Buf16(320),this.work=new x.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ue(k){var G;return!k||!k.state?I:(G=k.state,k.total_in=k.total_out=G.total=0,k.msg="",G.wrap&&(k.adler=G.wrap&1),G.mode=j,G.last=0,G.havedict=0,G.dmax=32768,G.head=null,G.hold=0,G.bits=0,G.lencode=G.lendyn=new x.Buf32(pe),G.distcode=G.distdyn=new x.Buf32(De),G.sane=1,G.back=-1,p)}function We(k){var G;return!k||!k.state?I:(G=k.state,G.wsize=0,G.whave=0,G.wnext=0,Ue(k))}function Fe(k,G){var i,q;return!k||!k.state||(q=k.state,G<0?(i=0,G=-G):(i=(G>>4)+1,G<48&&(G&=15)),G&&(G<8||G>15))?I:(q.window!==null&&q.wbits!==G&&(q.window=null),q.wrap=i,q.wbits=G,We(k))}function Ee(k,G){var i,q;return k?(q=new Ne,k.state=q,q.window=null,i=Fe(k,G),i!==p&&(k.state=null),i):I}function Ae(k){return Ee(k,xe)}var Oe=!0,Ye,Be;function He(k){if(Oe){var G;for(Ye=new x.Buf32(512),Be=new x.Buf32(32),G=0;G<144;)k.lens[G++]=8;for(;G<256;)k.lens[G++]=9;for(;G<280;)k.lens[G++]=7;for(;G<288;)k.lens[G++]=8;for(n(m,k.lens,0,288,Ye,0,k.work,{bits:9}),G=0;G<32;)k.lens[G++]=5;n(_,k.lens,0,32,Be,0,k.work,{bits:5}),Oe=!1}k.lencode=Ye,k.lenbits=9,k.distcode=Be,k.distbits=5}function Le(k,G,i,q){var ve,e=k.state;return e.window===null&&(e.wsize=1<<e.wbits,e.wnext=0,e.whave=0,e.window=new x.Buf8(e.wsize)),q>=e.wsize?(x.arraySet(e.window,G,i-e.wsize,e.wsize,0),e.wnext=0,e.whave=e.wsize):(ve=e.wsize-e.wnext,ve>q&&(ve=q),x.arraySet(e.window,G,i-q,ve,e.wnext),q-=ve,q?(x.arraySet(e.window,G,i-q,q,0),e.wnext=q,e.whave=e.wsize):(e.wnext+=ve,e.wnext===e.wsize&&(e.wnext=0),e.whave<e.wsize&&(e.whave+=ve))),0}function c(k,G){var i,q,ve,e,M,Y,o,S,L,ge,se,de,Ce,Ke,Ie=0,Se,ze,Ze,Ge,rt,nt,Pe,Xe,je=new x.Buf8(4),$e,Ve,dt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!k||!k.state||!k.output||!k.input&&k.avail_in!==0)return I;i=k.state,i.mode===te&&(i.mode=ie),M=k.next_out,ve=k.output,o=k.avail_out,e=k.next_in,q=k.input,Y=k.avail_in,S=i.hold,L=i.bits,ge=Y,se=o,Xe=p;e:for(;;)switch(i.mode){case j:if(i.wrap===0){i.mode=ie;break}for(;L<16;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}if(i.wrap&2&&S===35615){i.check=0,je[0]=S&255,je[1]=S>>>8&255,i.check=h(i.check,je,2,0),S=0,L=0,i.mode=X;break}if(i.flags=0,i.head&&(i.head.done=!1),!(i.wrap&1)||(((S&255)<<8)+(S>>8))%31){k.msg="incorrect header check",i.mode=he;break}if((S&15)!==H){k.msg="unknown compression method",i.mode=he;break}if(S>>>=4,L-=4,Pe=(S&15)+8,i.wbits===0)i.wbits=Pe;else if(Pe>i.wbits){k.msg="invalid window size",i.mode=he;break}i.dmax=1<<Pe,k.adler=i.check=1,i.mode=S&512?z:te,S=0,L=0;break;case X:for(;L<16;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}if(i.flags=S,(i.flags&255)!==H){k.msg="unknown compression method",i.mode=he;break}if(i.flags&57344){k.msg="unknown header flags set",i.mode=he;break}i.head&&(i.head.text=S>>8&1),i.flags&512&&(je[0]=S&255,je[1]=S>>>8&255,i.check=h(i.check,je,2,0)),S=0,L=0,i.mode=re;case re:for(;L<32;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}i.head&&(i.head.time=S),i.flags&512&&(je[0]=S&255,je[1]=S>>>8&255,je[2]=S>>>16&255,je[3]=S>>>24&255,i.check=h(i.check,je,4,0)),S=0,L=0,i.mode=V;case V:for(;L<16;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}i.head&&(i.head.xflags=S&255,i.head.os=S>>8),i.flags&512&&(je[0]=S&255,je[1]=S>>>8&255,i.check=h(i.check,je,2,0)),S=0,L=0,i.mode=$;case $:if(i.flags&1024){for(;L<16;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}i.length=S,i.head&&(i.head.extra_len=S),i.flags&512&&(je[0]=S&255,je[1]=S>>>8&255,i.check=h(i.check,je,2,0)),S=0,L=0}else i.head&&(i.head.extra=null);i.mode=U;case U:if(i.flags&1024&&(de=i.length,de>Y&&(de=Y),de&&(i.head&&(Pe=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),x.arraySet(i.head.extra,q,e,de,Pe)),i.flags&512&&(i.check=h(i.check,q,de,e)),Y-=de,e+=de,i.length-=de),i.length))break e;i.length=0,i.mode=ne;case ne:if(i.flags&2048){if(Y===0)break e;de=0;do Pe=q[e+de++],i.head&&Pe&&i.length<65536&&(i.head.name+=String.fromCharCode(Pe));while(Pe&&de<Y);if(i.flags&512&&(i.check=h(i.check,q,de,e)),Y-=de,e+=de,Pe)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=ae;case ae:if(i.flags&4096){if(Y===0)break e;de=0;do Pe=q[e+de++],i.head&&Pe&&i.length<65536&&(i.head.comment+=String.fromCharCode(Pe));while(Pe&&de<Y);if(i.flags&512&&(i.check=h(i.check,q,de,e)),Y-=de,e+=de,Pe)break e}else i.head&&(i.head.comment=null);i.mode=D;case D:if(i.flags&512){for(;L<16;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}if(S!==(i.check&65535)){k.msg="header crc mismatch",i.mode=he;break}S=0,L=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),k.adler=i.check=0,i.mode=te;break;case z:for(;L<32;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}k.adler=i.check=Re(S),S=0,L=0,i.mode=O;case O:if(i.havedict===0)return k.next_out=M,k.avail_out=o,k.next_in=e,k.avail_in=Y,i.hold=S,i.bits=L,B;k.adler=i.check=1,i.mode=te;case te:if(G===s||G===u)break e;case ie:if(i.last){S>>>=L&7,L-=L&7,i.mode=Z;break}for(;L<3;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}switch(i.last=S&1,S>>>=1,L-=1,S&3){case 0:i.mode=oe;break;case 1:if(He(i),i.mode=w,G===u){S>>>=2,L-=2;break e}break;case 2:i.mode=be;break;case 3:k.msg="invalid block type",i.mode=he}S>>>=2,L-=2;break;case oe:for(S>>>=L&7,L-=L&7;L<32;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}if((S&65535)!==(S>>>16^65535)){k.msg="invalid stored block lengths",i.mode=he;break}if(i.length=S&65535,S=0,L=0,i.mode=le,G===u)break e;case le:i.mode=_e;case _e:if(de=i.length,de){if(de>Y&&(de=Y),de>o&&(de=o),de===0)break e;x.arraySet(ve,q,e,de,M),Y-=de,e+=de,o-=de,M+=de,i.length-=de;break}i.mode=te;break;case be:for(;L<14;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}if(i.nlen=(S&31)+257,S>>>=5,L-=5,i.ndist=(S&31)+1,S>>>=5,L-=5,i.ncode=(S&15)+4,S>>>=4,L-=4,i.nlen>286||i.ndist>30){k.msg="too many length or distance symbols",i.mode=he;break}i.have=0,i.mode=t;case t:for(;i.have<i.ncode;){for(;L<3;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}i.lens[dt[i.have++]]=S&7,S>>>=3,L-=3}for(;i.have<19;)i.lens[dt[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,$e={bits:i.lenbits},Xe=n(d,i.lens,0,19,i.lencode,0,i.work,$e),i.lenbits=$e.bits,Xe){k.msg="invalid code lengths set",i.mode=he;break}i.have=0,i.mode=f;case f:for(;i.have<i.nlen+i.ndist;){for(;Ie=i.lencode[S&(1<<i.lenbits)-1],Se=Ie>>>24,ze=Ie>>>16&255,Ze=Ie&65535,!(Se<=L);){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}if(Ze<16)S>>>=Se,L-=Se,i.lens[i.have++]=Ze;else{if(Ze===16){for(Ve=Se+2;L<Ve;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}if(S>>>=Se,L-=Se,i.have===0){k.msg="invalid bit length repeat",i.mode=he;break}Pe=i.lens[i.have-1],de=3+(S&3),S>>>=2,L-=2}else if(Ze===17){for(Ve=Se+3;L<Ve;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}S>>>=Se,L-=Se,Pe=0,de=3+(S&7),S>>>=3,L-=3}else{for(Ve=Se+7;L<Ve;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}S>>>=Se,L-=Se,Pe=0,de=11+(S&127),S>>>=7,L-=7}if(i.have+de>i.nlen+i.ndist){k.msg="invalid bit length repeat",i.mode=he;break}for(;de--;)i.lens[i.have++]=Pe}}if(i.mode===he)break;if(i.lens[256]===0){k.msg="invalid code -- missing end-of-block",i.mode=he;break}if(i.lenbits=9,$e={bits:i.lenbits},Xe=n(m,i.lens,0,i.nlen,i.lencode,0,i.work,$e),i.lenbits=$e.bits,Xe){k.msg="invalid literal/lengths set",i.mode=he;break}if(i.distbits=6,i.distcode=i.distdyn,$e={bits:i.distbits},Xe=n(_,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,$e),i.distbits=$e.bits,Xe){k.msg="invalid distances set",i.mode=he;break}if(i.mode=w,G===u)break e;case w:i.mode=N;case N:if(Y>=6&&o>=258){k.next_out=M,k.avail_out=o,k.next_in=e,k.avail_in=Y,i.hold=S,i.bits=L,l(k,se),M=k.next_out,ve=k.output,o=k.avail_out,e=k.next_in,q=k.input,Y=k.avail_in,S=i.hold,L=i.bits,i.mode===te&&(i.back=-1);break}for(i.back=0;Ie=i.lencode[S&(1<<i.lenbits)-1],Se=Ie>>>24,ze=Ie>>>16&255,Ze=Ie&65535,!(Se<=L);){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}if(ze&&!(ze&240)){for(Ge=Se,rt=ze,nt=Ze;Ie=i.lencode[nt+((S&(1<<Ge+rt)-1)>>Ge)],Se=Ie>>>24,ze=Ie>>>16&255,Ze=Ie&65535,!(Ge+Se<=L);){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}S>>>=Ge,L-=Ge,i.back+=Ge}if(S>>>=Se,L-=Se,i.back+=Se,i.length=Ze,ze===0){i.mode=T;break}if(ze&32){i.back=-1,i.mode=te;break}if(ze&64){k.msg="invalid literal/length code",i.mode=he;break}i.extra=ze&15,i.mode=g;case g:if(i.extra){for(Ve=i.extra;L<Ve;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}i.length+=S&(1<<i.extra)-1,S>>>=i.extra,L-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=v;case v:for(;Ie=i.distcode[S&(1<<i.distbits)-1],Se=Ie>>>24,ze=Ie>>>16&255,Ze=Ie&65535,!(Se<=L);){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}if(!(ze&240)){for(Ge=Se,rt=ze,nt=Ze;Ie=i.distcode[nt+((S&(1<<Ge+rt)-1)>>Ge)],Se=Ie>>>24,ze=Ie>>>16&255,Ze=Ie&65535,!(Ge+Se<=L);){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}S>>>=Ge,L-=Ge,i.back+=Ge}if(S>>>=Se,L-=Se,i.back+=Se,ze&64){k.msg="invalid distance code",i.mode=he;break}i.offset=Ze,i.extra=ze&15,i.mode=E;case E:if(i.extra){for(Ve=i.extra;L<Ve;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}i.offset+=S&(1<<i.extra)-1,S>>>=i.extra,L-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){k.msg="invalid distance too far back",i.mode=he;break}i.mode=R;case R:if(o===0)break e;if(de=se-o,i.offset>de){if(de=i.offset-de,de>i.whave&&i.sane){k.msg="invalid distance too far back",i.mode=he;break}de>i.wnext?(de-=i.wnext,Ce=i.wsize-de):Ce=i.wnext-de,de>i.length&&(de=i.length),Ke=i.window}else Ke=ve,Ce=M-i.offset,de=i.length;de>o&&(de=o),o-=de,i.length-=de;do ve[M++]=Ke[Ce++];while(--de);i.length===0&&(i.mode=N);break;case T:if(o===0)break e;ve[M++]=i.length,o--,i.mode=N;break;case Z:if(i.wrap){for(;L<32;){if(Y===0)break e;Y--,S|=q[e++]<<L,L+=8}if(se-=o,k.total_out+=se,i.total+=se,se&&(k.adler=i.check=i.flags?h(i.check,ve,se,M-se):a(i.check,ve,se,M-se)),se=o,(i.flags?S:Re(S))!==i.check){k.msg="incorrect data check",i.mode=he;break}S=0,L=0}i.mode=K;case K:if(i.wrap&&i.flags){for(;L<32;){if(Y===0)break e;Y--,S+=q[e++]<<L,L+=8}if(S!==(i.total&4294967295)){k.msg="incorrect length check",i.mode=he;break}S=0,L=0}i.mode=fe;case fe:Xe=y;break e;case he:Xe=W;break e;case ye:return F;case ce:default:return I}return k.next_out=M,k.avail_out=o,k.next_in=e,k.avail_in=Y,i.hold=S,i.bits=L,(i.wsize||se!==k.avail_out&&i.mode<he&&(i.mode<Z||G!==r))&&Le(k,k.output,k.next_out,se-k.avail_out),ge-=k.avail_in,se-=k.avail_out,k.total_in+=ge,k.total_out+=se,i.total+=se,i.wrap&&se&&(k.adler=i.check=i.flags?h(i.check,ve,se,k.next_out-se):a(i.check,ve,se,k.next_out-se)),k.data_type=i.bits+(i.last?64:0)+(i.mode===te?128:0)+(i.mode===w||i.mode===le?256:0),(ge===0&&se===0||G===r)&&Xe===p&&(Xe=b),Xe}function Q(k){if(!k||!k.state)return I;var G=k.state;return G.window&&(G.window=null),k.state=null,p}function ee(k,G){var i;return!k||!k.state||(i=k.state,!(i.wrap&2))?I:(i.head=G,G.done=!1,p)}function ue(k,G){var i=G.length,q,ve,e;return!k||!k.state||(q=k.state,q.wrap!==0&&q.mode!==O)?I:q.mode===O&&(ve=1,ve=a(ve,G,i,0),ve!==q.check)?W:(e=Le(k,G,i,i),e?(q.mode=ye,F):(q.havedict=1,p))}C.inflateReset=We,C.inflateReset2=Fe,C.inflateResetKeep=Ue,C.inflateInit=Ae,C.inflateInit2=Ee,C.inflate=c,C.inflateEnd=Q,C.inflateGetHeader=ee,C.inflateSetDictionary=ue,C.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":32,"./adler32":34,"./crc32":36,"./inffast":39,"./inftrees":41}],41:[function(A,P,C){var x=A("../utils/common"),a=15,h=852,l=592,n=0,d=1,m=2,_=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],r=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];P.exports=function(y,B,I,W,F,b,H,j){var X=j.bits,re=0,V=0,$=0,U=0,ne=0,ae=0,D=0,z=0,O=0,te=0,ie,oe,le,_e,be,t=null,f=0,w,N=new x.Buf16(a+1),g=new x.Buf16(a+1),v=null,E=0,R,T,Z;for(re=0;re<=a;re++)N[re]=0;for(V=0;V<W;V++)N[B[I+V]]++;for(ne=X,U=a;U>=1&&N[U]===0;U--);if(ne>U&&(ne=U),U===0)return F[b++]=1<<24|64<<16|0,F[b++]=1<<24|64<<16|0,j.bits=1,0;for($=1;$<U&&N[$]===0;$++);for(ne<$&&(ne=$),z=1,re=1;re<=a;re++)if(z<<=1,z-=N[re],z<0)return-1;if(z>0&&(y===n||U!==1))return-1;for(g[1]=0,re=1;re<a;re++)g[re+1]=g[re]+N[re];for(V=0;V<W;V++)B[I+V]!==0&&(H[g[B[I+V]]++]=V);if(y===n?(t=v=H,w=19):y===d?(t=_,f-=257,v=r,E-=257,w=256):(t=s,v=u,w=-1),te=0,V=0,re=$,be=b,ae=ne,D=0,le=-1,O=1<<ne,_e=O-1,y===d&&O>h||y===m&&O>l)return 1;for(;;){R=re-D,H[V]<w?(T=0,Z=H[V]):H[V]>w?(T=v[E+H[V]],Z=t[f+H[V]]):(T=96,Z=0),ie=1<<re-D,oe=1<<ae,$=oe;do oe-=ie,F[be+(te>>D)+oe]=R<<24|T<<16|Z|0;while(oe!==0);for(ie=1<<re-1;te&ie;)ie>>=1;if(ie!==0?(te&=ie-1,te+=ie):te=0,V++,--N[re]===0){if(re===U)break;re=B[I+H[V]]}if(re>ne&&(te&_e)!==le){for(D===0&&(D=ne),be+=$,ae=re-D,z=1<<ae;ae+D<U&&(z-=N[ae+D],!(z<=0));)ae++,z<<=1;if(O+=1<<ae,y===d&&O>h||y===m&&O>l)return 1;le=te&_e,F[le]=ne<<24|ae<<16|be-b|0}}return te!==0&&(F[be+te]=re-D<<24|64<<16|0),j.bits=ne,0}},{"../utils/common":32}],42:[function(A,P,C){P.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],43:[function(A,P,C){var x=A("../utils/common"),a=4,h=0,l=1,n=2;function d(c){for(var Q=c.length;--Q>=0;)c[Q]=0}var m=0,_=1,r=2,s=3,u=258,p=29,y=256,B=y+1+p,I=30,W=19,F=2*B+1,b=15,H=16,j=7,X=256,re=16,V=17,$=18,U=[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],ne=[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],ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z=512,O=new Array((B+2)*2);d(O);var te=new Array(I*2);d(te);var ie=new Array(z);d(ie);var oe=new Array(u-s+1);d(oe);var le=new Array(p);d(le);var _e=new Array(I);d(_e);function be(c,Q,ee,ue,k){this.static_tree=c,this.extra_bits=Q,this.extra_base=ee,this.elems=ue,this.max_length=k,this.has_stree=c&&c.length}var t,f,w;function N(c,Q){this.dyn_tree=c,this.max_code=0,this.stat_desc=Q}function g(c){return c<256?ie[c]:ie[256+(c>>>7)]}function v(c,Q){c.pending_buf[c.pending++]=Q&255,c.pending_buf[c.pending++]=Q>>>8&255}function E(c,Q,ee){c.bi_valid>H-ee?(c.bi_buf|=Q<<c.bi_valid&65535,v(c,c.bi_buf),c.bi_buf=Q>>H-c.bi_valid,c.bi_valid+=ee-H):(c.bi_buf|=Q<<c.bi_valid&65535,c.bi_valid+=ee)}function R(c,Q,ee){E(c,ee[Q*2],ee[Q*2+1])}function T(c,Q){var ee=0;do ee|=c&1,c>>>=1,ee<<=1;while(--Q>0);return ee>>>1}function Z(c){c.bi_valid===16?(v(c,c.bi_buf),c.bi_buf=0,c.bi_valid=0):c.bi_valid>=8&&(c.pending_buf[c.pending++]=c.bi_buf&255,c.bi_buf>>=8,c.bi_valid-=8)}function K(c,Q){var ee=Q.dyn_tree,ue=Q.max_code,k=Q.stat_desc.static_tree,G=Q.stat_desc.has_stree,i=Q.stat_desc.extra_bits,q=Q.stat_desc.extra_base,ve=Q.stat_desc.max_length,e,M,Y,o,S,L,ge=0;for(o=0;o<=b;o++)c.bl_count[o]=0;for(ee[c.heap[c.heap_max]*2+1]=0,e=c.heap_max+1;e<F;e++)M=c.heap[e],o=ee[ee[M*2+1]*2+1]+1,o>ve&&(o=ve,ge++),ee[M*2+1]=o,!(M>ue)&&(c.bl_count[o]++,S=0,M>=q&&(S=i[M-q]),L=ee[M*2],c.opt_len+=L*(o+S),G&&(c.static_len+=L*(k[M*2+1]+S)));if(ge!==0){do{for(o=ve-1;c.bl_count[o]===0;)o--;c.bl_count[o]--,c.bl_count[o+1]+=2,c.bl_count[ve]--,ge-=2}while(ge>0);for(o=ve;o!==0;o--)for(M=c.bl_count[o];M!==0;)Y=c.heap[--e],!(Y>ue)&&(ee[Y*2+1]!==o&&(c.opt_len+=(o-ee[Y*2+1])*ee[Y*2],ee[Y*2+1]=o),M--)}}function fe(c,Q,ee){var ue=new Array(b+1),k=0,G,i;for(G=1;G<=b;G++)ue[G]=k=k+ee[G-1]<<1;for(i=0;i<=Q;i++){var q=c[i*2+1];q!==0&&(c[i*2]=T(ue[q]++,q))}}function he(){var c,Q,ee,ue,k,G=new Array(b+1);for(ee=0,ue=0;ue<p-1;ue++)for(le[ue]=ee,c=0;c<1<<U[ue];c++)oe[ee++]=ue;for(oe[ee-1]=ue,k=0,ue=0;ue<16;ue++)for(_e[ue]=k,c=0;c<1<<ne[ue];c++)ie[k++]=ue;for(k>>=7;ue<I;ue++)for(_e[ue]=k<<7,c=0;c<1<<ne[ue]-7;c++)ie[256+k++]=ue;for(Q=0;Q<=b;Q++)G[Q]=0;for(c=0;c<=143;)O[c*2+1]=8,c++,G[8]++;for(;c<=255;)O[c*2+1]=9,c++,G[9]++;for(;c<=279;)O[c*2+1]=7,c++,G[7]++;for(;c<=287;)O[c*2+1]=8,c++,G[8]++;for(fe(O,B+1,G),c=0;c<I;c++)te[c*2+1]=5,te[c*2]=T(c,5);t=new be(O,U,y+1,B,b),f=new be(te,ne,0,I,b),w=new be(new Array(0),ae,0,W,j)}function ye(c){var Q;for(Q=0;Q<B;Q++)c.dyn_ltree[Q*2]=0;for(Q=0;Q<I;Q++)c.dyn_dtree[Q*2]=0;for(Q=0;Q<W;Q++)c.bl_tree[Q*2]=0;c.dyn_ltree[X*2]=1,c.opt_len=c.static_len=0,c.last_lit=c.matches=0}function ce(c){c.bi_valid>8?v(c,c.bi_buf):c.bi_valid>0&&(c.pending_buf[c.pending++]=c.bi_buf),c.bi_buf=0,c.bi_valid=0}function pe(c,Q,ee,ue){ce(c),v(c,ee),v(c,~ee),x.arraySet(c.pending_buf,c.window,Q,ee,c.pending),c.pending+=ee}function De(c,Q,ee,ue){var k=Q*2,G=ee*2;return c[k]<c[G]||c[k]===c[G]&&ue[Q]<=ue[ee]}function we(c,Q,ee){for(var ue=c.heap[ee],k=ee<<1;k<=c.heap_len&&(k<c.heap_len&&De(Q,c.heap[k+1],c.heap[k],c.depth)&&k++,!De(Q,ue,c.heap[k],c.depth));)c.heap[ee]=c.heap[k],ee=k,k<<=1;c.heap[ee]=ue}function xe(c,Q,ee){var ue,k,G=0,i,q;if(c.last_lit!==0)do ue=c.pending_buf[c.d_buf+G*2]<<8|c.pending_buf[c.d_buf+G*2+1],k=c.pending_buf[c.l_buf+G],G++,ue===0?R(c,k,Q):(i=oe[k],R(c,i+y+1,Q),q=U[i],q!==0&&(k-=le[i],E(c,k,q)),ue--,i=g(ue),R(c,i,ee),q=ne[i],q!==0&&(ue-=_e[i],E(c,ue,q)));while(G<c.last_lit);R(c,X,Q)}function Re(c,Q){var ee=Q.dyn_tree,ue=Q.stat_desc.static_tree,k=Q.stat_desc.has_stree,G=Q.stat_desc.elems,i,q,ve=-1,e;for(c.heap_len=0,c.heap_max=F,i=0;i<G;i++)ee[i*2]!==0?(c.heap[++c.heap_len]=ve=i,c.depth[i]=0):ee[i*2+1]=0;for(;c.heap_len<2;)e=c.heap[++c.heap_len]=ve<2?++ve:0,ee[e*2]=1,c.depth[e]=0,c.opt_len--,k&&(c.static_len-=ue[e*2+1]);for(Q.max_code=ve,i=c.heap_len>>1;i>=1;i--)we(c,ee,i);e=G;do i=c.heap[1],c.heap[1]=c.heap[c.heap_len--],we(c,ee,1),q=c.heap[1],c.heap[--c.heap_max]=i,c.heap[--c.heap_max]=q,ee[e*2]=ee[i*2]+ee[q*2],c.depth[e]=(c.depth[i]>=c.depth[q]?c.depth[i]:c.depth[q])+1,ee[i*2+1]=ee[q*2+1]=e,c.heap[1]=e++,we(c,ee,1);while(c.heap_len>=2);c.heap[--c.heap_max]=c.heap[1],K(c,Q),fe(ee,ve,c.bl_count)}function Ne(c,Q,ee){var ue,k=-1,G,i=Q[0*2+1],q=0,ve=7,e=4;for(i===0&&(ve=138,e=3),Q[(ee+1)*2+1]=65535,ue=0;ue<=ee;ue++)G=i,i=Q[(ue+1)*2+1],!(++q<ve&&G===i)&&(q<e?c.bl_tree[G*2]+=q:G!==0?(G!==k&&c.bl_tree[G*2]++,c.bl_tree[re*2]++):q<=10?c.bl_tree[V*2]++:c.bl_tree[$*2]++,q=0,k=G,i===0?(ve=138,e=3):G===i?(ve=6,e=3):(ve=7,e=4))}function Ue(c,Q,ee){var ue,k=-1,G,i=Q[0*2+1],q=0,ve=7,e=4;for(i===0&&(ve=138,e=3),ue=0;ue<=ee;ue++)if(G=i,i=Q[(ue+1)*2+1],!(++q<ve&&G===i)){if(q<e)do R(c,G,c.bl_tree);while(--q!==0);else G!==0?(G!==k&&(R(c,G,c.bl_tree),q--),R(c,re,c.bl_tree),E(c,q-3,2)):q<=10?(R(c,V,c.bl_tree),E(c,q-3,3)):(R(c,$,c.bl_tree),E(c,q-11,7));q=0,k=G,i===0?(ve=138,e=3):G===i?(ve=6,e=3):(ve=7,e=4)}}function We(c){var Q;for(Ne(c,c.dyn_ltree,c.l_desc.max_code),Ne(c,c.dyn_dtree,c.d_desc.max_code),Re(c,c.bl_desc),Q=W-1;Q>=3&&c.bl_tree[D[Q]*2+1]===0;Q--);return c.opt_len+=3*(Q+1)+5+5+4,Q}function Fe(c,Q,ee,ue){var k;for(E(c,Q-257,5),E(c,ee-1,5),E(c,ue-4,4),k=0;k<ue;k++)E(c,c.bl_tree[D[k]*2+1],3);Ue(c,c.dyn_ltree,Q-1),Ue(c,c.dyn_dtree,ee-1)}function Ee(c){var Q=4093624447,ee;for(ee=0;ee<=31;ee++,Q>>>=1)if(Q&1&&c.dyn_ltree[ee*2]!==0)return h;if(c.dyn_ltree[9*2]!==0||c.dyn_ltree[10*2]!==0||c.dyn_ltree[13*2]!==0)return l;for(ee=32;ee<y;ee++)if(c.dyn_ltree[ee*2]!==0)return l;return h}var Ae=!1;function Oe(c){Ae||(he(),Ae=!0),c.l_desc=new N(c.dyn_ltree,t),c.d_desc=new N(c.dyn_dtree,f),c.bl_desc=new N(c.bl_tree,w),c.bi_buf=0,c.bi_valid=0,ye(c)}function Ye(c,Q,ee,ue){E(c,(m<<1)+(ue?1:0),3),pe(c,Q,ee)}function Be(c){E(c,_<<1,3),R(c,X,O),Z(c)}function He(c,Q,ee,ue){var k,G,i=0;c.level>0?(c.strm.data_type===n&&(c.strm.data_type=Ee(c)),Re(c,c.l_desc),Re(c,c.d_desc),i=We(c),k=c.opt_len+3+7>>>3,G=c.static_len+3+7>>>3,G<=k&&(k=G)):k=G=ee+5,ee+4<=k&&Q!==-1?Ye(c,Q,ee,ue):c.strategy===a||G===k?(E(c,(_<<1)+(ue?1:0),3),xe(c,O,te)):(E(c,(r<<1)+(ue?1:0),3),Fe(c,c.l_desc.max_code+1,c.d_desc.max_code+1,i+1),xe(c,c.dyn_ltree,c.dyn_dtree)),ye(c),ue&&ce(c)}function Le(c,Q,ee){return c.pending_buf[c.d_buf+c.last_lit*2]=Q>>>8&255,c.pending_buf[c.d_buf+c.last_lit*2+1]=Q&255,c.pending_buf[c.l_buf+c.last_lit]=ee&255,c.last_lit++,Q===0?c.dyn_ltree[ee*2]++:(c.matches++,Q--,c.dyn_ltree[(oe[ee]+y+1)*2]++,c.dyn_dtree[g(Q)*2]++),c.last_lit===c.lit_bufsize-1}C._tr_init=Oe,C._tr_stored_block=Ye,C._tr_flush_block=He,C._tr_tally=Le,C._tr_align=Be},{"../utils/common":32}],44:[function(A,P,C){function x(){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}P.exports=x},{}],45:[function(A,P,C){var x=A("lodash._root"),a=1/0,h="[object Symbol]",l=/[&<>"'`]/g,n=RegExp(l.source),d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"};function m(F){return d[F]}var _=Object.prototype,r=_.toString,s=x.Symbol,u=s?s.prototype:void 0,p=s?u.toString:void 0;function y(F){return!!F&&typeof F=="object"}function B(F){return typeof F=="symbol"||y(F)&&r.call(F)==h}function I(F){if(typeof F=="string")return F;if(F==null)return"";if(B(F))return s?p.call(F):"";var b=F+"";return b=="0"&&1/F==-a?"-0":b}function W(F){return F=I(F),F&&n.test(F)?F.replace(l,m):F}P.exports=W},{"lodash._root":46}],46:[function(A,P,C){(function(x){var a={function:!0,object:!0},h=a[typeof C]&&C&&!C.nodeType?C:void 0,l=a[typeof P]&&P&&!P.nodeType?P:void 0,n=s(h&&l&&typeof x=="object"&&x),d=s(a[typeof self]&&self),m=s(a[typeof window]&&window),_=s(a[typeof this]&&this),r=n||m!==(_&&_.window)&&m||d||_||Function("return this")();function s(u){return u&&u.Object===Object?u:null}P.exports=r}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{}],47:[function(A,P,C){var x=A("lodash._arraycopy"),a=A("lodash._arrayeach"),h=A("lodash._createassigner"),l=A("lodash.isarguments"),n=A("lodash.isarray"),d=A("lodash.isplainobject"),m=A("lodash.istypedarray"),_=A("lodash.keys"),r=A("lodash.toplainobject");function s(j){return!!j&&typeof j=="object"}var u=9007199254740991;function p(j,X,re,V,$){if(!b(j))return j;var U=W(X)&&(n(X)||m(X)),ne=U?void 0:_(X);return a(ne||X,function(ae,D){if(ne&&(D=ae,ae=X[D]),s(ae))V||(V=[]),$||($=[]),y(j,X,D,p,re,V,$);else{var z=j[D],O=re?re(z,ae,D,j,X):void 0,te=O===void 0;te&&(O=ae),(O!==void 0||U&&!(D in j))&&(te||(O===O?O!==z:z===z))&&(j[D]=O)}}),j}function y(j,X,re,V,$,U,ne){for(var ae=U.length,D=X[re];ae--;)if(U[ae]==D){j[re]=ne[ae];return}var z=j[re],O=$?$(z,D,re,j,X):void 0,te=O===void 0;te&&(O=D,W(D)&&(n(D)||m(D))?O=n(z)?z:W(z)?x(z):[]:d(D)||l(D)?O=l(z)?r(z):d(z)?z:{}:te=!1),U.push(D),ne.push(O),te?j[re]=V(O,D,$,U,ne):(O===O?O!==z:z===z)&&(j[re]=O)}function B(j){return function(X){return X==null?void 0:X[j]}}var I=B("length");function W(j){return j!=null&&F(I(j))}function F(j){return typeof j=="number"&&j>-1&&j%1==0&&j<=u}function b(j){var X=typeof j;return!!j&&(X=="object"||X=="function")}var H=h(p);P.exports=H},{"lodash._arraycopy":48,"lodash._arrayeach":49,"lodash._createassigner":50,"lodash.isarguments":55,"lodash.isarray":56,"lodash.isplainobject":57,"lodash.istypedarray":59,"lodash.keys":60,"lodash.toplainobject":62}],48:[function(A,P,C){function x(a,h){var l=-1,n=a.length;for(h||(h=Array(n));++l<n;)h[l]=a[l];return h}P.exports=x},{}],49:[function(A,P,C){function x(a,h){for(var l=-1,n=a.length;++l<n&&h(a[l],l,a)!==!1;);return a}P.exports=x},{}],50:[function(A,P,C){var x=A("lodash._bindcallback"),a=A("lodash._isiterateecall"),h=A("lodash.restparam");function l(n){return h(function(d,m){var _=-1,r=d==null?0:m.length,s=r>2?m[r-2]:void 0,u=r>2?m[2]:void 0,p=r>1?m[r-1]:void 0;for(typeof s=="function"?(s=x(s,p,5),r-=2):(s=typeof p=="function"?p:void 0,r-=s?1:0),u&&a(m[0],m[1],u)&&(s=r<3?void 0:s,r=1);++_<r;){var y=m[_];y&&n(d,y,s)}return d})}P.exports=l},{"lodash._bindcallback":51,"lodash._isiterateecall":52,"lodash.restparam":53}],51:[function(A,P,C){function x(h,l,n){if(typeof h!="function")return a;if(l===void 0)return h;switch(n){case 1:return function(d){return h.call(l,d)};case 3:return function(d,m,_){return h.call(l,d,m,_)};case 4:return function(d,m,_,r){return h.call(l,d,m,_,r)};case 5:return function(d,m,_,r,s){return h.call(l,d,m,_,r,s)}}return function(){return h.apply(l,arguments)}}function a(h){return h}P.exports=x},{}],52:[function(A,P,C){var x=/^\d+$/,a=9007199254740991;function h(s){return function(u){return u==null?void 0:u[s]}}var l=h("length");function n(s){return s!=null&&_(l(s))}function d(s,u){return s=typeof s=="number"||x.test(s)?+s:-1,u=u??a,s>-1&&s%1==0&&s<u}function m(s,u,p){if(!r(p))return!1;var y=typeof u;if(y=="number"?n(p)&&d(u,p.length):y=="string"&&u in p){var B=p[u];return s===s?s===B:B!==B}return!1}function _(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=a}function r(s){var u=typeof s;return!!s&&(u=="object"||u=="function")}P.exports=m},{}],53:[function(A,P,C){var x="Expected a function",a=Math.max;function h(l,n){if(typeof l!="function")throw new TypeError(x);return n=a(n===void 0?l.length-1:+n||0,0),function(){for(var d=arguments,m=-1,_=a(d.length-n,0),r=Array(_);++m<_;)r[m]=d[n+m];switch(n){case 0:return l.call(this,r);case 1:return l.call(this,d[0],r);case 2:return l.call(this,d[0],d[1],r)}var s=Array(n+1);for(m=-1;++m<n;)s[m]=d[m];return s[n]=r,l.apply(this,s)}}P.exports=h},{}],54:[function(A,P,C){var x="[object Function]",a=/^\[object .+?Constructor\]$/;function h(y){return!!y&&typeof y=="object"}var l=Object.prototype,n=Function.prototype.toString,d=l.hasOwnProperty,m=l.toString,_=RegExp("^"+n.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function r(y,B){var I=y==null?void 0:y[B];return p(I)?I:void 0}function s(y){return u(y)&&m.call(y)==x}function u(y){var B=typeof y;return!!y&&(B=="object"||B=="function")}function p(y){return y==null?!1:s(y)?_.test(n.call(y)):h(y)&&a.test(y)}P.exports=r},{}],55:[function(A,P,C){var x=9007199254740991,a="[object Arguments]",h="[object Function]",l="[object GeneratorFunction]",n=Object.prototype,d=n.hasOwnProperty,m=n.toString,_=n.propertyIsEnumerable;function r(b){return function(H){return H==null?void 0:H[b]}}var s=r("length");function u(b){return y(b)&&d.call(b,"callee")&&(!_.call(b,"callee")||m.call(b)==a)}function p(b){return b!=null&&I(s(b))&&!B(b)}function y(b){return F(b)&&p(b)}function B(b){var H=W(b)?m.call(b):"";return H==h||H==l}function I(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=x}function W(b){var H=typeof b;return!!b&&(H=="object"||H=="function")}function F(b){return!!b&&typeof b=="object"}P.exports=u},{}],56:[function(A,P,C){var x="[object Array]",a="[object Function]",h=/^\[object .+?Constructor\]$/;function l(b){return!!b&&typeof b=="object"}var n=Object.prototype,d=Function.prototype.toString,m=n.hasOwnProperty,_=n.toString,r=RegExp("^"+d.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),s=p(Array,"isArray"),u=9007199254740991;function p(b,H){var j=b==null?void 0:b[H];return F(j)?j:void 0}function y(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=u}var B=s||function(b){return l(b)&&y(b.length)&&_.call(b)==x};function I(b){return W(b)&&_.call(b)==a}function W(b){var H=typeof b;return!!b&&(H=="object"||H=="function")}function F(b){return b==null?!1:I(b)?r.test(d.call(b)):l(b)&&h.test(b)}P.exports=B},{}],57:[function(A,P,C){var x=A("lodash._basefor"),a=A("lodash.isarguments"),h=A("lodash.keysin"),l="[object Object]";function n(u){return!!u&&typeof u=="object"}var d=Object.prototype,m=d.hasOwnProperty,_=d.toString;function r(u,p){return x(u,p,h)}function s(u){var p;if(!(n(u)&&_.call(u)==l&&!a(u))||!m.call(u,"constructor")&&(p=u.constructor,typeof p=="function"&&!(p instanceof p)))return!1;var y;return r(u,function(B,I){y=I}),y===void 0||m.call(u,y)}P.exports=s},{"lodash._basefor":58,"lodash.isarguments":55,"lodash.keysin":61}],58:[function(A,P,C){var x=a();function a(h){return function(l,n,d){for(var m=-1,_=Object(l),r=d(l),s=r.length;s--;){var u=r[++m];if(n(_[u],u,_)===!1)break}return l}}P.exports=x},{}],59:[function(A,P,C){var x=9007199254740991,a="[object Arguments]",h="[object Array]",l="[object Boolean]",n="[object Date]",d="[object Error]",m="[object Function]",_="[object Map]",r="[object Number]",s="[object Object]",u="[object RegExp]",p="[object Set]",y="[object String]",B="[object WeakMap]",I="[object ArrayBuffer]",W="[object DataView]",F="[object Float32Array]",b="[object Float64Array]",H="[object Int8Array]",j="[object Int16Array]",X="[object Int32Array]",re="[object Uint8Array]",V="[object Uint8ClampedArray]",$="[object Uint16Array]",U="[object Uint32Array]",ne={};ne[F]=ne[b]=ne[H]=ne[j]=ne[X]=ne[re]=ne[V]=ne[$]=ne[U]=!0,ne[a]=ne[h]=ne[I]=ne[l]=ne[W]=ne[n]=ne[d]=ne[m]=ne[_]=ne[r]=ne[s]=ne[u]=ne[p]=ne[y]=ne[B]=!1;var ae=Object.prototype,D=ae.toString;function z(ie){return typeof ie=="number"&&ie>-1&&ie%1==0&&ie<=x}function O(ie){return!!ie&&typeof ie=="object"}function te(ie){return O(ie)&&z(ie.length)&&!!ne[D.call(ie)]}P.exports=te},{}],60:[function(A,P,C){var x=A("lodash._getnative"),a=A("lodash.isarguments"),h=A("lodash.isarray"),l=/^\d+$/,n=Object.prototype,d=n.hasOwnProperty,m=x(Object,"keys"),_=9007199254740991;function r(b){return function(H){return H==null?void 0:H[b]}}var s=r("length");function u(b){return b!=null&&y(s(b))}function p(b,H){return b=typeof b=="number"||l.test(b)?+b:-1,H=H??_,b>-1&&b%1==0&&b<H}function y(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=_}function B(b){for(var H=F(b),j=H.length,X=j&&b.length,re=!!X&&y(X)&&(h(b)||a(b)),V=-1,$=[];++V<j;){var U=H[V];(re&&p(U,X)||d.call(b,U))&&$.push(U)}return $}function I(b){var H=typeof b;return!!b&&(H=="object"||H=="function")}var W=m?function(b){var H=b==null?void 0:b.constructor;return typeof H=="function"&&H.prototype===b||typeof b!="function"&&u(b)?B(b):I(b)?m(b):[]}:B;function F(b){if(b==null)return[];I(b)||(b=Object(b));var H=b.length;H=H&&y(H)&&(h(b)||a(b))&&H||0;for(var j=b.constructor,X=-1,re=typeof j=="function"&&j.prototype===b,V=Array(H),$=H>0;++X<H;)V[X]=X+"";for(var U in b)!($&&p(U,H))&&!(U=="constructor"&&(re||!d.call(b,U)))&&V.push(U);return V}P.exports=W},{"lodash._getnative":54,"lodash.isarguments":55,"lodash.isarray":56}],61:[function(A,P,C){var x=A("lodash.isarguments"),a=A("lodash.isarray"),h=/^\d+$/,l=Object.prototype,n=l.hasOwnProperty,d=9007199254740991;function m(u,p){return u=typeof u=="number"||h.test(u)?+u:-1,p=p??d,u>-1&&u%1==0&&u<p}function _(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=d}function r(u){var p=typeof u;return!!u&&(p=="object"||p=="function")}function s(u){if(u==null)return[];r(u)||(u=Object(u));var p=u.length;p=p&&_(p)&&(a(u)||x(u))&&p||0;for(var y=u.constructor,B=-1,I=typeof y=="function"&&y.prototype===u,W=Array(p),F=p>0;++B<p;)W[B]=B+"";for(var b in u)!(F&&m(b,p))&&!(b=="constructor"&&(I||!n.call(u,b)))&&W.push(b);return W}P.exports=s},{"lodash.isarguments":55,"lodash.isarray":56}],62:[function(A,P,C){var x=A("lodash._basecopy"),a=A("lodash.keysin");function h(l){return x(l,a(l))}P.exports=h},{"lodash._basecopy":63,"lodash.keysin":61}],63:[function(A,P,C){function x(a,h,l){l||(l={});for(var n=-1,d=h.length;++n<d;){var m=h[n];l[m]=a[m]}return l}P.exports=x},{}],64:[function(A,P,C){var x,a;x=A("jszip"),a=A("./internal"),P.exports={asBlob:function(h,l){var n;return n=new x,a.addFiles(n,h,l),a.generateDocument(n)}}},{"./internal":65,jszip:14}],65:[function(A,P,C){(function(x,a){var h,l,n;h=A("./templates/document"),l=A("./utils"),n={merge:A("lodash.merge")},P.exports={generateDocument:function(d){var m;if(m=d.generate({type:"arraybuffer"}),x.Blob)return new Blob([m],{type:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"});if(x.Buffer)return new a(new Uint8Array(m));throw new Error("Neither Blob nor Buffer are accessible in this environment. Consider adding Blob.js shim")},renderDocumentFile:function(d){var m;return d==null&&(d={}),m=n.merge({margins:{top:1440,right:1440,bottom:1440,left:1440,header:720,footer:720,gutter:0}},function(){switch(d.orientation){case"landscape":return{height:12240,width:15840,orient:"landscape"};default:return{width:12240,height:15840,orient:"portrait"}}}(),{margins:d.margins}),h(m)},addFiles:function(d,m,_){return d.file("[Content_Types].xml",a("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8VHlwZXMgeG1sbnM9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9wYWNrYWdlLzIwMDYvY29udGVudC10eXBlcyI+CiAgPERlZmF1bHQgRXh0ZW5zaW9uPSJyZWxzIiBDb250ZW50VHlwZT0KICAgICJhcHBsaWNhdGlvbi92bmQub3BlbnhtbGZvcm1hdHMtcGFja2FnZS5yZWxhdGlvbnNoaXBzK3htbCIgLz4KICA8T3ZlcnJpZGUgUGFydE5hbWU9Ii93b3JkL2RvY3VtZW50LnhtbCIgQ29udGVudFR5cGU9CiAgICAiYXBwbGljYXRpb24vdm5kLm9wZW54bWxmb3JtYXRzLW9mZmljZWRvY3VtZW50LndvcmRwcm9jZXNzaW5nbWwuZG9jdW1lbnQubWFpbit4bWwiLz4KICA8T3ZlcnJpZGUgUGFydE5hbWU9Ii93b3JkL2FmY2h1bmsubWh0IiBDb250ZW50VHlwZT0ibWVzc2FnZS9yZmM4MjIiLz4KPC9UeXBlcz4K","base64")),d.folder("_rels").file(".rels",a("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8UmVsYXRpb25zaGlwcyB4bWxucz0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL3BhY2thZ2UvMjAwNi9yZWxhdGlvbnNoaXBzIj4KICA8UmVsYXRpb25zaGlwCiAgICAgIFR5cGU9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9vZmZpY2VEb2N1bWVudC8yMDA2L3JlbGF0aW9uc2hpcHMvb2ZmaWNlRG9jdW1lbnQiCiAgICAgIFRhcmdldD0iL3dvcmQvZG9jdW1lbnQueG1sIiBJZD0iUjA5YzgzZmFmYzA2NzQ4OGUiIC8+CjwvUmVsYXRpb25zaGlwcz4K","base64")),d.folder("word").file("document.xml",this.renderDocumentFile(_)).file("afchunk.mht",l.getMHTdocument(m)).folder("_rels").file("document.xml.rels",a("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8UmVsYXRpb25zaGlwcyB4bWxucz0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL3BhY2thZ2UvMjAwNi9yZWxhdGlvbnNoaXBzIj4KICA8UmVsYXRpb25zaGlwIFR5cGU9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9vZmZpY2VEb2N1bWVudC8yMDA2L3JlbGF0aW9uc2hpcHMvYUZDaHVuayIKICAgIFRhcmdldD0iL3dvcmQvYWZjaHVuay5taHQiIElkPSJodG1sQ2h1bmsiIC8+CjwvUmVsYXRpb25zaGlwcz4K","base64"))}}}).call(this,typeof self<"u"?self:typeof window<"u"?window:{},A("buffer").Buffer)},{"./templates/document":66,"./utils":69,buffer:1,"lodash.merge":47}],66:[function(A,P,C){A("lodash.escape"),P.exports=function(x){var a,h="";return h+=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:document
  xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
  xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"
  xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
  xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
  xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
  xmlns:ns6="http://schemas.openxmlformats.org/schemaLibrary/2006/main"
  xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"
  xmlns:ns8="http://schemas.openxmlformats.org/drawingml/2006/chartDrawing"
  xmlns:dgm="http://schemas.openxmlformats.org/drawingml/2006/diagram"
  xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"
  xmlns:ns11="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"
  xmlns:dsp="http://schemas.microsoft.com/office/drawing/2008/diagram"
  xmlns:ns13="urn:schemas-microsoft-com:office:excel"
  xmlns:o="urn:schemas-microsoft-com:office:office"
  xmlns:v="urn:schemas-microsoft-com:vml"
  xmlns:w10="urn:schemas-microsoft-com:office:word"
  xmlns:ns17="urn:schemas-microsoft-com:office:powerpoint"
  xmlns:odx="http://opendope.org/xpaths"
  xmlns:odc="http://opendope.org/conditions"
  xmlns:odq="http://opendope.org/questions"
  xmlns:odi="http://opendope.org/components"
  xmlns:odgm="http://opendope.org/SmartArt/DataHierarchy"
  xmlns:ns24="http://schemas.openxmlformats.org/officeDocument/2006/bibliography"
  xmlns:ns25="http://schemas.openxmlformats.org/drawingml/2006/compatibility"
  xmlns:ns26="http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas">
  <w:body>
    <w:altChunk r:id="htmlChunk" />
    <w:sectPr>
      <w:pgSz w:w="`+((a=x.width)==null?"":a)+'" w:h="'+((a=x.height)==null?"":a)+'" w:orient="'+((a=x.orient)==null?"":a)+`" />
      <w:pgMar w:top="`+((a=x.margins.top)==null?"":a)+`"
               w:right="`+((a=x.margins.right)==null?"":a)+`"
               w:bottom="`+((a=x.margins.bottom)==null?"":a)+`"
               w:left="`+((a=x.margins.left)==null?"":a)+`"
               w:header="`+((a=x.margins.header)==null?"":a)+`"
               w:footer="`+((a=x.margins.footer)==null?"":a)+`"
               w:gutter="`+((a=x.margins.gutter)==null?"":a)+`"/>
    </w:sectPr>
  </w:body>
</w:document>
`,h}},{"lodash.escape":45}],67:[function(A,P,C){A("lodash.escape"),P.exports=function(x){var a,h="";return h+=`MIME-Version: 1.0
Content-Type: multipart/related;
    type="text/html";
    boundary="----=mhtDocumentPart"


------=mhtDocumentPart
Content-Type: text/html;
    charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Location: file:///C:/fake/document.html

`+((a=x.htmlSource)==null?"":a)+`

`+((a=x.contentParts)==null?"":a)+`

------=mhtDocumentPart--
`,h}},{"lodash.escape":45}],68:[function(A,P,C){A("lodash.escape"),P.exports=function(x){var a,h="";return h+=`------=mhtDocumentPart
Content-Type: `+((a=x.contentType)==null?"":a)+`
Content-Transfer-Encoding: `+((a=x.contentEncoding)==null?"":a)+`
Content-Location: `+((a=x.contentLocation)==null?"":a)+`

`+((a=x.encodedContent)==null?"":a)+`
`,h}},{"lodash.escape":45}],69:[function(A,P,C){var x,a;x=A("./templates/mht_document"),a=A("./templates/mht_part"),P.exports={getMHTdocument:function(h){var l,n;return n=this._prepareImageParts(h),h=n.htmlSource,l=n.imageContentParts,h=h.replace(/\=/g,"=3D"),x({htmlSource:h,contentParts:l.join(`
`)})},_prepareImageParts:function(h){var l,n,d;if(l=[],d=/"data:(\w+\/\w+);(\w+),(\S+)"/g,n=function(m,_,r,s){var u,p,y;return y=l.length,p=_.split("/")[1],u="file:///C:/fake/image"+y+"."+p,l.push(a({contentType:_,contentEncoding:r,contentLocation:u,encodedContent:s})),'"'+u+'"'},typeof h=="string")return/<img/g.test(h)?(h=h.replace(d,n),{htmlSource:h,imageContentParts:l}):{htmlSource:h,imageContentParts:l};throw new Error("Not a valid source provided!")}}},{"./templates/mht_document":67,"./templates/mht_part":68}]},{},[64])(64)})})(At);var rr=At.exports;const nr=ut(rr);var Ct={exports:{}};(function(me,Me){(function(A,P){me.exports=P(Te,Tt)})(typeof self<"u"?self:qe,function(A,P){return function(){var C={328:function(l,n,d){Object.defineProperty(n,"__esModule",{value:!0}),n.PrintContextConsumer=n.PrintContext=void 0;var m=d(496),_=Object.prototype.hasOwnProperty.call(m,"createContext");n.PrintContext=_?m.createContext({}):null,n.PrintContextConsumer=n.PrintContext?n.PrintContext.Consumer:function(){return null}},428:function(l,n,d){Object.defineProperty(n,"__esModule",{value:!0}),n.ReactToPrint=void 0;var m=d(316),_=d(496),r=d(190),s=d(328),u=d(940),p=function(y){function B(){var I=y.apply(this,m.__spreadArray([],m.__read(arguments),!1))||this;return I.startPrint=function(W){var F=I.props,b=F.onAfterPrint,H=F.onPrintError,j=F.print,X=F.documentTitle;setTimeout(function(){var re,V;if(W.contentWindow)if(W.contentWindow.focus(),j)j(W).then(function(){return b==null?void 0:b()}).then(function(){return I.handleRemoveIframe()}).catch(function(ne){H?H("print",ne):I.logMessages(["An error was thrown by the specified `print` function"])});else{if(W.contentWindow.print){var $=(V=(re=W.contentDocument)===null||re===void 0?void 0:re.title)!==null&&V!==void 0?V:"",U=W.ownerDocument.title;X&&(W.ownerDocument.title=X,W.contentDocument&&(W.contentDocument.title=X)),W.contentWindow.print(),X&&(W.ownerDocument.title=U,W.contentDocument&&(W.contentDocument.title=$))}else I.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);b==null||b(),I.handleRemoveIframe()}else I.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])},500)},I.triggerPrint=function(W){var F=I.props,b=F.onBeforePrint,H=F.onPrintError;if(b){var j=b();j&&typeof j.then=="function"?j.then(function(){I.startPrint(W)}).catch(function(X){H&&H("onBeforePrint",X)}):I.startPrint(W)}else I.startPrint(W)},I.handlePrint=function(W){var F=I.props,b=F.bodyClass,H=F.content,j=F.copyStyles,X=F.fonts,re=F.pageStyle,V=F.nonce,$=typeof W=="function"?W():null;if($&&typeof H=="function"&&I.logMessages(['"react-to-print" received a `content` prop and a content param passed the callback return by `useReactToPrint. The `content` prop will be ignored.'],"warning"),$||typeof H!="function"||($=H()),$!==void 0)if($!==null){var U=document.createElement("iframe");U.width="".concat(document.documentElement.clientWidth,"px"),U.height="".concat(document.documentElement.clientHeight,"px"),U.style.position="absolute",U.style.top="-".concat(document.documentElement.clientHeight+100,"px"),U.style.left="-".concat(document.documentElement.clientWidth+100,"px"),U.id="printWindow",U.srcdoc="<!DOCTYPE html>";var ne=(0,r.findDOMNode)($);if(ne){var ae=ne.cloneNode(!0),D=ae instanceof Text,z=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),O=D?[]:ae.querySelectorAll("img"),te=D?[]:ae.querySelectorAll("video"),ie=X?X.length:0;I.numResourcesToLoad=z.length+O.length+te.length+ie,I.resourcesLoaded=[],I.resourcesErrored=[];var oe=function(le,_e){I.resourcesLoaded.includes(le)?I.logMessages(["Tried to mark a resource that has already been handled",le],"debug"):(_e?(I.logMessages(m.__spreadArray(['"react-to-print" was unable to load a resource but will continue attempting to print the page'],m.__read(_e),!1)),I.resourcesErrored.push(le)):I.resourcesLoaded.push(le),I.resourcesLoaded.length+I.resourcesErrored.length===I.numResourcesToLoad&&I.triggerPrint(U))};U.onload=function(){var le,_e,be,t;U.onload=null;var f=U.contentDocument||((_e=U.contentWindow)===null||_e===void 0?void 0:_e.document);if(f){f.body.appendChild(ae),X&&(!((be=U.contentDocument)===null||be===void 0)&&be.fonts&&(!((t=U.contentWindow)===null||t===void 0)&&t.FontFace)?X.forEach(function(Fe){var Ee=new FontFace(Fe.family,Fe.source,{weight:Fe.weight,style:Fe.style});U.contentDocument.fonts.add(Ee),Ee.loaded.then(function(){oe(Ee)}).catch(function(Ae){oe(Ee,["Failed loading the font:",Ee,"Load error:",Ae])})}):(X.forEach(function(Fe){return oe(Fe)}),I.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var w=typeof re=="function"?re():re;if(typeof w!="string")I.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof w,'". Styles from `pageStyle` will not be applied.')]);else{var N=f.createElement("style");V&&(N.setAttribute("nonce",V),f.head.setAttribute("nonce",V)),N.appendChild(f.createTextNode(w)),f.head.appendChild(N)}if(b&&(le=f.body.classList).add.apply(le,m.__spreadArray([],m.__read(b.split(" ")),!1)),!D){for(var g=D?[]:ne.querySelectorAll("canvas"),v=f.querySelectorAll("canvas"),E=0;E<g.length;++E){var R=g[E],T=v[E].getContext("2d");T&&T.drawImage(R,0,0)}var Z=function(Fe){var Ee=O[Fe],Ae=Ee.getAttribute("src");if(Ae){var Oe=new Image;Oe.onload=function(){return oe(Ee)},Oe.onerror=function(Ye,Be,He,Le,c){return oe(Ee,["Error loading <img>",Ee,"Error",c])},Oe.src=Ae}else oe(Ee,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it. The <img> is:',Ee])};for(E=0;E<O.length;E++)Z(E);var K=function(Fe){var Ee=te[Fe];Ee.preload="auto";var Ae=Ee.getAttribute("poster");if(Ae){var Oe=new Image;Oe.onload=function(){return oe(Ee)},Oe.onerror=function(Ye,Be,He,Le,c){return oe(Ee,["Error loading video poster",Ae,"for video",Ee,"Error:",c])},Oe.src=Ae}else Ee.readyState>=2?oe(Ee):(Ee.onloadeddata=function(){return oe(Ee)},Ee.onerror=function(Ye,Be,He,Le,c){return oe(Ee,["Error loading video",Ee,"Error",c])},Ee.onstalled=function(){return oe(Ee,["Loading video stalled, skipping",Ee])})};for(E=0;E<te.length;E++)K(E);var fe="input",he=ne.querySelectorAll(fe),ye=f.querySelectorAll(fe);for(E=0;E<he.length;E++)ye[E].value=he[E].value;var ce="input[type=checkbox],input[type=radio]",pe=ne.querySelectorAll(ce),De=f.querySelectorAll(ce);for(E=0;E<pe.length;E++)De[E].checked=pe[E].checked;var we="select",xe=ne.querySelectorAll(we),Re=f.querySelectorAll(we);for(E=0;E<xe.length;E++)Re[E].value=xe[E].value}if(j)for(var Ne=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']"),Ue=function(Fe,Ee){var Ae=Ne[Fe];if(Ae.tagName.toLowerCase()==="style"){var Oe=f.createElement(Ae.tagName),Ye=Ae.sheet;if(Ye){var Be="";try{for(var He=Ye.cssRules.length,Le=0;Le<He;++Le)typeof Ye.cssRules[Le].cssText=="string"&&(Be+="".concat(Ye.cssRules[Le].cssText,`\r
`))}catch{I.logMessages(["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/gregnb/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",Ae],"warning")}Oe.setAttribute("id","react-to-print-".concat(Fe)),V&&Oe.setAttribute("nonce",V),Oe.appendChild(f.createTextNode(Be)),f.head.appendChild(Oe)}}else if(Ae.getAttribute("href"))if(Ae.hasAttribute("disabled"))I.logMessages(["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",Ae],"warning"),oe(Ae);else{for(var c=f.createElement(Ae.tagName),Q=(Le=0,Ae.attributes.length);Le<Q;++Le){var ee=Ae.attributes[Le];ee&&c.setAttribute(ee.nodeName,ee.nodeValue||"")}c.onload=function(){return oe(c)},c.onerror=function(ue,k,G,i,q){return oe(c,["Failed to load",c,"Error:",q])},V&&c.setAttribute("nonce",V),f.head.appendChild(c)}else I.logMessages(["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",Ae],"warning"),oe(Ae)},We=(E=0,Ne.length);E<We;++E)Ue(E)}I.numResourcesToLoad!==0&&j||I.triggerPrint(U)},I.handleRemoveIframe(!0),document.body.appendChild(U)}else I.logMessages(['"react-to-print" could not locate the DOM node corresponding with the `content` prop'])}else I.logMessages(['There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.']);else I.logMessages(["To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://github.com/gregnb/react-to-print#examples"])},I.handleRemoveIframe=function(W){var F=I.props.removeAfterPrint;if(W||F){var b=document.getElementById("printWindow");b&&document.body.removeChild(b)}},I.logMessages=function(W,F){F===void 0&&(F="error"),I.props.suppressErrors||(F==="error"?console.error(W):F==="warning"?console.warn(W):F==="debug"&&console.debug(W))},I}return m.__extends(B,y),B.prototype.handleClick=function(I,W){var F=this,b=this.props,H=b.onBeforeGetContent,j=b.onPrintError;if(H){var X=H();X&&typeof X.then=="function"?X.then(function(){return F.handlePrint(W)}).catch(function(re){j&&j("onBeforeGetContent",re)}):this.handlePrint(W)}else this.handlePrint(W)},B.prototype.render=function(){var I=this.props,W=I.children,F=I.trigger;if(F)return _.cloneElement(F(),{onClick:this.handleClick.bind(this)});if(!s.PrintContext)return this.logMessages(['"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"']),null;var b={handlePrint:this.handleClick.bind(this)};return _.createElement(s.PrintContext.Provider,{value:b},W)},B.defaultProps=u.defaultProps,B}(_.Component);n.ReactToPrint=p},940:function(l,n){Object.defineProperty(n,"__esModule",{value:!0}),n.defaultProps=void 0,n.defaultProps={copyStyles:!0,pageStyle:`
        @page {
            /* Remove browser default header (title) and footer (url) */
            margin: 0;
        }
        @media print {
            body {
                /* Tell browsers to print background colors */
                -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */
                color-adjust: exact; /* Firefox */
            }
        }
    `,removeAfterPrint:!1,suppressErrors:!1}},892:function(l,n,d){Object.defineProperty(n,"__esModule",{value:!0}),n.useReactToPrint=void 0;var m=d(316),_=d(496),r=d(428),s=d(940),u=d(860),p=Object.prototype.hasOwnProperty.call(_,"useMemo")&&Object.prototype.hasOwnProperty.call(_,"useCallback");n.useReactToPrint=function(y){if(!p)return y.suppressErrors||console.error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"'),function(){throw new Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')};var B=_.useMemo(function(){return new r.ReactToPrint(m.__assign(m.__assign({},s.defaultProps),y))},[y]);return _.useCallback(function(I,W){return(0,u.wrapCallbackWithArgs)(B,B.handleClick,W)(I)},[B])}},860:function(l,n,d){Object.defineProperty(n,"__esModule",{value:!0}),n.wrapCallbackWithArgs=void 0;var m=d(316);n.wrapCallbackWithArgs=function(_,r){for(var s=[],u=2;u<arguments.length;u++)s[u-2]=arguments[u];return function(){for(var p=[],y=0;y<arguments.length;y++)p[y]=arguments[y];return r.apply(_,m.__spreadArray(m.__spreadArray([],m.__read(p),!1),m.__read(s),!1))}}},496:function(l){l.exports=A},190:function(l){l.exports=P},316:function(l,n,d){d.r(n),d.d(n,{__addDisposableResource:function(){return f},__assign:function(){return r},__asyncDelegator:function(){return z},__asyncGenerator:function(){return D},__asyncValues:function(){return O},__await:function(){return ae},__awaiter:function(){return b},__classPrivateFieldGet:function(){return _e},__classPrivateFieldIn:function(){return t},__classPrivateFieldSet:function(){return be},__createBinding:function(){return j},__decorate:function(){return u},__disposeResources:function(){return N},__esDecorate:function(){return y},__exportStar:function(){return X},__extends:function(){return _},__generator:function(){return H},__importDefault:function(){return le},__importStar:function(){return oe},__makeTemplateObject:function(){return te},__metadata:function(){return F},__param:function(){return p},__propKey:function(){return I},__read:function(){return V},__rest:function(){return s},__runInitializers:function(){return B},__setFunctionName:function(){return W},__spread:function(){return $},__spreadArray:function(){return ne},__spreadArrays:function(){return U},__values:function(){return re}});var m=function(g,v){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,R){E.__proto__=R}||function(E,R){for(var T in R)Object.prototype.hasOwnProperty.call(R,T)&&(E[T]=R[T])},m(g,v)};function _(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function E(){this.constructor=g}m(g,v),g.prototype=v===null?Object.create(v):(E.prototype=v.prototype,new E)}var r=function(){return r=Object.assign||function(g){for(var v,E=1,R=arguments.length;E<R;E++)for(var T in v=arguments[E])Object.prototype.hasOwnProperty.call(v,T)&&(g[T]=v[T]);return g},r.apply(this,arguments)};function s(g,v){var E={};for(var R in g)Object.prototype.hasOwnProperty.call(g,R)&&v.indexOf(R)<0&&(E[R]=g[R]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function"){var T=0;for(R=Object.getOwnPropertySymbols(g);T<R.length;T++)v.indexOf(R[T])<0&&Object.prototype.propertyIsEnumerable.call(g,R[T])&&(E[R[T]]=g[R[T]])}return E}function u(g,v,E,R){var T,Z=arguments.length,K=Z<3?v:R===null?R=Object.getOwnPropertyDescriptor(v,E):R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")K=Reflect.decorate(g,v,E,R);else for(var fe=g.length-1;fe>=0;fe--)(T=g[fe])&&(K=(Z<3?T(K):Z>3?T(v,E,K):T(v,E))||K);return Z>3&&K&&Object.defineProperty(v,E,K),K}function p(g,v){return function(E,R){v(E,R,g)}}function y(g,v,E,R,T,Z){function K(Ue){if(Ue!==void 0&&typeof Ue!="function")throw new TypeError("Function expected");return Ue}for(var fe,he=R.kind,ye=he==="getter"?"get":he==="setter"?"set":"value",ce=!v&&g?R.static?g:g.prototype:null,pe=v||(ce?Object.getOwnPropertyDescriptor(ce,R.name):{}),De=!1,we=E.length-1;we>=0;we--){var xe={};for(var Re in R)xe[Re]=Re==="access"?{}:R[Re];for(var Re in R.access)xe.access[Re]=R.access[Re];xe.addInitializer=function(Ue){if(De)throw new TypeError("Cannot add initializers after decoration has completed");Z.push(K(Ue||null))};var Ne=(0,E[we])(he==="accessor"?{get:pe.get,set:pe.set}:pe[ye],xe);if(he==="accessor"){if(Ne===void 0)continue;if(Ne===null||typeof Ne!="object")throw new TypeError("Object expected");(fe=K(Ne.get))&&(pe.get=fe),(fe=K(Ne.set))&&(pe.set=fe),(fe=K(Ne.init))&&T.unshift(fe)}else(fe=K(Ne))&&(he==="field"?T.unshift(fe):pe[ye]=fe)}ce&&Object.defineProperty(ce,R.name,pe),De=!0}function B(g,v,E){for(var R=arguments.length>2,T=0;T<v.length;T++)E=R?v[T].call(g,E):v[T].call(g);return R?E:void 0}function I(g){return typeof g=="symbol"?g:"".concat(g)}function W(g,v,E){return typeof v=="symbol"&&(v=v.description?"[".concat(v.description,"]"):""),Object.defineProperty(g,"name",{configurable:!0,value:E?"".concat(E," ",v):v})}function F(g,v){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(g,v)}function b(g,v,E,R){return new(E||(E=Promise))(function(T,Z){function K(ye){try{he(R.next(ye))}catch(ce){Z(ce)}}function fe(ye){try{he(R.throw(ye))}catch(ce){Z(ce)}}function he(ye){var ce;ye.done?T(ye.value):(ce=ye.value,ce instanceof E?ce:new E(function(pe){pe(ce)})).then(K,fe)}he((R=R.apply(g,v||[])).next())})}function H(g,v){var E,R,T,Z,K={label:0,sent:function(){if(1&T[0])throw T[1];return T[1]},trys:[],ops:[]};return Z={next:fe(0),throw:fe(1),return:fe(2)},typeof Symbol=="function"&&(Z[Symbol.iterator]=function(){return this}),Z;function fe(he){return function(ye){return function(ce){if(E)throw new TypeError("Generator is already executing.");for(;Z&&(Z=0,ce[0]&&(K=0)),K;)try{if(E=1,R&&(T=2&ce[0]?R.return:ce[0]?R.throw||((T=R.return)&&T.call(R),0):R.next)&&!(T=T.call(R,ce[1])).done)return T;switch(R=0,T&&(ce=[2&ce[0],T.value]),ce[0]){case 0:case 1:T=ce;break;case 4:return K.label++,{value:ce[1],done:!1};case 5:K.label++,R=ce[1],ce=[0];continue;case 7:ce=K.ops.pop(),K.trys.pop();continue;default:if(!((T=(T=K.trys).length>0&&T[T.length-1])||ce[0]!==6&&ce[0]!==2)){K=0;continue}if(ce[0]===3&&(!T||ce[1]>T[0]&&ce[1]<T[3])){K.label=ce[1];break}if(ce[0]===6&&K.label<T[1]){K.label=T[1],T=ce;break}if(T&&K.label<T[2]){K.label=T[2],K.ops.push(ce);break}T[2]&&K.ops.pop(),K.trys.pop();continue}ce=v.call(g,K)}catch(pe){ce=[6,pe],R=0}finally{E=T=0}if(5&ce[0])throw ce[1];return{value:ce[0]?ce[1]:void 0,done:!0}}([he,ye])}}}var j=Object.create?function(g,v,E,R){R===void 0&&(R=E);var T=Object.getOwnPropertyDescriptor(v,E);T&&!("get"in T?!v.__esModule:T.writable||T.configurable)||(T={enumerable:!0,get:function(){return v[E]}}),Object.defineProperty(g,R,T)}:function(g,v,E,R){R===void 0&&(R=E),g[R]=v[E]};function X(g,v){for(var E in g)E==="default"||Object.prototype.hasOwnProperty.call(v,E)||j(v,g,E)}function re(g){var v=typeof Symbol=="function"&&Symbol.iterator,E=v&&g[v],R=0;if(E)return E.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&R>=g.length&&(g=void 0),{value:g&&g[R++],done:!g}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")}function V(g,v){var E=typeof Symbol=="function"&&g[Symbol.iterator];if(!E)return g;var R,T,Z=E.call(g),K=[];try{for(;(v===void 0||v-- >0)&&!(R=Z.next()).done;)K.push(R.value)}catch(fe){T={error:fe}}finally{try{R&&!R.done&&(E=Z.return)&&E.call(Z)}finally{if(T)throw T.error}}return K}function $(){for(var g=[],v=0;v<arguments.length;v++)g=g.concat(V(arguments[v]));return g}function U(){for(var g=0,v=0,E=arguments.length;v<E;v++)g+=arguments[v].length;var R=Array(g),T=0;for(v=0;v<E;v++)for(var Z=arguments[v],K=0,fe=Z.length;K<fe;K++,T++)R[T]=Z[K];return R}function ne(g,v,E){if(E||arguments.length===2)for(var R,T=0,Z=v.length;T<Z;T++)!R&&T in v||(R||(R=Array.prototype.slice.call(v,0,T)),R[T]=v[T]);return g.concat(R||Array.prototype.slice.call(v))}function ae(g){return this instanceof ae?(this.v=g,this):new ae(g)}function D(g,v,E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var R,T=E.apply(g,v||[]),Z=[];return R={},K("next"),K("throw"),K("return"),R[Symbol.asyncIterator]=function(){return this},R;function K(pe){T[pe]&&(R[pe]=function(De){return new Promise(function(we,xe){Z.push([pe,De,we,xe])>1||fe(pe,De)})})}function fe(pe,De){try{(we=T[pe](De)).value instanceof ae?Promise.resolve(we.value.v).then(he,ye):ce(Z[0][2],we)}catch(xe){ce(Z[0][3],xe)}var we}function he(pe){fe("next",pe)}function ye(pe){fe("throw",pe)}function ce(pe,De){pe(De),Z.shift(),Z.length&&fe(Z[0][0],Z[0][1])}}function z(g){var v,E;return v={},R("next"),R("throw",function(T){throw T}),R("return"),v[Symbol.iterator]=function(){return this},v;function R(T,Z){v[T]=g[T]?function(K){return(E=!E)?{value:ae(g[T](K)),done:!1}:Z?Z(K):K}:Z}}function O(g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var v,E=g[Symbol.asyncIterator];return E?E.call(g):(g=re(g),v={},R("next"),R("throw"),R("return"),v[Symbol.asyncIterator]=function(){return this},v);function R(T){v[T]=g[T]&&function(Z){return new Promise(function(K,fe){(function(he,ye,ce,pe){Promise.resolve(pe).then(function(De){he({value:De,done:ce})},ye)})(K,fe,(Z=g[T](Z)).done,Z.value)})}}}function te(g,v){return Object.defineProperty?Object.defineProperty(g,"raw",{value:v}):g.raw=v,g}var ie=Object.create?function(g,v){Object.defineProperty(g,"default",{enumerable:!0,value:v})}:function(g,v){g.default=v};function oe(g){if(g&&g.__esModule)return g;var v={};if(g!=null)for(var E in g)E!=="default"&&Object.prototype.hasOwnProperty.call(g,E)&&j(v,g,E);return ie(v,g),v}function le(g){return g&&g.__esModule?g:{default:g}}function _e(g,v,E,R){if(E==="a"&&!R)throw new TypeError("Private accessor was defined without a getter");if(typeof v=="function"?g!==v||!R:!v.has(g))throw new TypeError("Cannot read private member from an object whose class did not declare it");return E==="m"?R:E==="a"?R.call(g):R?R.value:v.get(g)}function be(g,v,E,R,T){if(R==="m")throw new TypeError("Private method is not writable");if(R==="a"&&!T)throw new TypeError("Private accessor was defined without a setter");if(typeof v=="function"?g!==v||!T:!v.has(g))throw new TypeError("Cannot write private member to an object whose class did not declare it");return R==="a"?T.call(g,E):T?T.value=E:v.set(g,E),E}function t(g,v){if(v===null||typeof v!="object"&&typeof v!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof g=="function"?v===g:g.has(v)}function f(g,v,E){if(v!=null){if(typeof v!="object"&&typeof v!="function")throw new TypeError("Object expected.");var R;if(E){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");R=v[Symbol.asyncDispose]}if(R===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");R=v[Symbol.dispose]}if(typeof R!="function")throw new TypeError("Object not disposable.");g.stack.push({value:v,dispose:R,async:E})}else E&&g.stack.push({async:!0});return v}var w=typeof SuppressedError=="function"?SuppressedError:function(g,v,E){var R=new Error(E);return R.name="SuppressedError",R.error=g,R.suppressed=v,R};function N(g){function v(E){g.error=g.hasError?new w(E,g.error,"An error was suppressed during disposal."):E,g.hasError=!0}return function E(){for(;g.stack.length;){var R=g.stack.pop();try{var T=R.dispose&&R.dispose.call(R.value);if(R.async)return Promise.resolve(T).then(E,function(Z){return v(Z),E()})}catch(Z){v(Z)}}if(g.hasError)throw g.error}()}n.default={__extends:_,__assign:r,__rest:s,__decorate:u,__param:p,__metadata:F,__awaiter:b,__generator:H,__createBinding:j,__exportStar:X,__values:re,__read:V,__spread:$,__spreadArrays:U,__spreadArray:ne,__await:ae,__asyncGenerator:D,__asyncDelegator:z,__asyncValues:O,__makeTemplateObject:te,__importStar:oe,__importDefault:le,__classPrivateFieldGet:_e,__classPrivateFieldSet:be,__classPrivateFieldIn:t,__addDisposableResource:f,__disposeResources:N}}},x={};function a(l){var n=x[l];if(n!==void 0)return n.exports;var d=x[l]={exports:{}};return C[l](d,d.exports,a),d.exports}a.d=function(l,n){for(var d in n)a.o(n,d)&&!a.o(l,d)&&Object.defineProperty(l,d,{enumerable:!0,get:n[d]})},a.o=function(l,n){return Object.prototype.hasOwnProperty.call(l,n)},a.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var h={};return function(){var l=h;Object.defineProperty(l,"__esModule",{value:!0}),l.useReactToPrint=l.ReactToPrint=l.PrintContextConsumer=void 0;var n=a(328);Object.defineProperty(l,"PrintContextConsumer",{enumerable:!0,get:function(){return n.PrintContextConsumer}});var d=a(428);Object.defineProperty(l,"ReactToPrint",{enumerable:!0,get:function(){return d.ReactToPrint}});var m=a(892);Object.defineProperty(l,"useReactToPrint",{enumerable:!0,get:function(){return m.useReactToPrint}});var _=a(428);l.default=_.ReactToPrint}(),h}()})})(Ct);var ir=Ct.exports;const ar=ut(ir),St=Te.memo(()=>{const{message:me,modal:Me}=mt.useApp(),{token:A}=xt.useToken(),{userInfo:{isAdmin:P,userID:C},genderList:x}=ct(T=>T),[a,h]=Te.useState([]),[l,n]=Te.useState([]),[d,m]=Te.useState([]),[_,r]=Te.useState([]),[s,u]=Te.useState(null),[p,y]=Te.useState(0),[B]=Je.useForm(),[I,W]=Te.useState(!1),[F,b]=Te.useState(!1),[H,j]=Te.useState(null),[X,re]=Te.useState(0),[V,$]=Te.useState([]),U=Te.useRef(null),ne=[{title:"序 号",dataIndex:"id",width:50,align:"center",key:"id",render:(T,Z,K)=>K+1},{title:J.jsx("span",{children:"风险提示"}),dataIndex:"reportLevel",width:80,align:"center",key:"id",render:T=>J.jsxs("span",{style:{color:_e(T,!0),fontWeight:700},children:[be(T),_e(T)]})},{title:J.jsx("span",{children:"任务名称"}),dataIndex:"pTaskname",ellipsis:!0,align:"center",key:"id"},{title:J.jsx("span",{children:"量表名称"}),dataIndex:"nameChinese",ellipsis:!0,align:"center",key:"id",render:(T,Z)=>`${Z.nameChinese}(${Z.tableCode})`},{title:J.jsx("span",{children:"组织机构"}),dataIndex:"pOrganizationName",ellipsis:!0,align:"center",key:"id"},{title:J.jsx("span",{children:"账号"}),dataIndex:"pNum",align:"center",key:"id"},{title:J.jsx("span",{children:"姓名"}),dataIndex:"pName",align:"center",key:"id"},{title:J.jsx("span",{children:"性别"}),width:60,dataIndex:"pSex",align:"center",key:"id",render:T=>x[T]},{title:J.jsx("span",{children:"出生日期"}),dataIndex:"pBirthDate",width:120,align:"center",key:"id",render:T=>`${ke(T).format("YYYY-MM-DD")}`},{title:J.jsx("span",{children:"报告总评"}),dataIndex:"reportEvaluate",width:150,align:"center",ellipsis:!0,key:"id"},{title:J.jsx("span",{children:"创建时间"}),dataIndex:"createTime",width:120,align:"center",key:"id",render:T=>`${ke(T).format("YYYY-MM-DD")}`},{title:J.jsx("span",{children:"操 作"}),width:220,dataIndex:"id",align:"center",key:"id",render:(T,Z)=>J.jsxs(pt,{style:{color:A.colorPrimaryText},children:[J.jsx("span",{style:{cursor:"pointer"},onClick:()=>{Me.confirm({title:"温馨提示",content:"确定删除吗?",onOk(){te(T)}})},children:"删除"}),J.jsx("span",{style:{display:P&&"none",cursor:"pointer"},onClick:()=>oe(Z.id,1),children:"简单报告"}),J.jsx("span",{style:{display:!P&&"none",cursor:"pointer"},onClick:()=>oe(Z.id,2),children:"标准报告"}),J.jsx("span",{style:{display:!P&&"none",cursor:"pointer"},onClick:()=>oe(Z.id,3),children:"完整报告"})]})}];Te.useEffect(()=>{(async()=>{try{const Z=await et("/api/PsyTaskName/All",{pageIndex:1,pageSize:999999});if(Z.code===200){const he=Z.data.items.map(ye=>({label:ye.ptaskname,value:ye.ptaskname}));h(he),n(he)}else me.warning(Z.msg);const K=await et("/api/PsyInfotablebrief/All",{pageIndex:1,pageSize:999999});if(K.code===200){const ye=K.data.items.sort((ce,pe)=>ce.sortCode-pe.sortCode).map(ce=>({label:ce.nameChinese,value:ce.nameChinese}));m(ye),r(ye)}else me.warning(K.msg);const fe=await et("/api/PsyInforeport/GetListReport",{PNum:P?"":C,StartTime:ke().add(-1,"year").format("YYYY-MM-DD"),EndTime:ke().format("YYYY-MM-DD"),pageIndex:1,pageSize:50});u(fe.data.items),y(fe.data.totalRecords)}catch(Z){me.error(Z),console.log(Z)}})()},[me,C,P]);const ae=T=>{const Z=[];l.forEach(K=>{K.value.includes(T)&&Z.push(K)}),h(Z)},D=async T=>{b(!0);try{const Z=await et("/api/PsyInforeport/GetListReport",T);u(Z.data.items),y(Z.data.totalRecords)}catch(Z){me.error(Z)}finally{b(!1)}},z=T=>{const Z=[];_.forEach(K=>{K.value.includes(T)&&Z.push(K)}),m(Z)},O=(T,Z)=>{const K={...B.getFieldValue()},fe={PTaskname:K.PTaskname,ReportLevel:K.ReportLevel,PNum:K.PNum,NameChinese:K.NameChinese,pageIndex:T,pageSize:Z};if(K.StartTime&&(fe.StartTime=ke(K.StartTime).format("YYYY-MM-DD")),K.EndTime&&(fe.EndTime=ke(K.EndTime).format("YYYY-MM-DD")),X&&(fe.QorganizeId=X),ke(K.StartTime).valueOf()>ke(K.EndTime).valueOf()){me.warning("开始时间大于结束时间, 请重新选择");return}D(fe)},te=async T=>{const Z=await Bt(`/api/PsyInforeport/Delete/${T}`);Z.code===200?me.success("删除成功",4):me.warning(Z.msg);const K=B.getFieldValue(),fe={PTaskname:K.PTaskname,ReportLevel:K.ReportLevel,PNum:K.PNum,NameChinese:K.NameChinese,pageIndex:1,pageSize:50};if(X&&(fe.QorganizeId=X),K.StartTime&&(fe.StartTime=ke(K.StartTime).format("YYYY-MM-DD")),K.EndTime&&(fe.EndTime=ke(K.EndTime).format("YYYY-MM-DD")),ke(K.StartTime).valueOf()>ke(K.EndTime).valueOf()){me.warning("开始时间大于结束时间, 请重新选择");return}D(fe)},ie=async T=>{if(F)return;const Z={ReportLevel:T.ReportLevel,PTaskname:T.PTaskname,PNum:T.PNum,NameChinese:T.NameChinese,pageIndex:1,pageSize:50};if(X&&(Z.QorganizeId=X),T.StartTime&&(Z.StartTime=ke(T.StartTime).format("YYYY-MM-DD")),T.EndTime&&(Z.EndTime=ke(T.EndTime).format("YYYY-MM-DD")),ke(T.StartTime).valueOf()>ke(T.EndTime).valueOf()){me.warning("开始时间大于结束时间, 请重新选择");return}D(Z)},oe=async(T,Z=0)=>{if(!I)try{const K=await st("/api/PsyInforeport/GetUpdateReport",[T],{ReportType:Z});K.code===200?(j(K.data),W(!0),me.success(K.msg,5)):me.warning(K.msg)}catch(K){me.error(K)}},le=()=>{W(!1),j(null)},_e=(T,Z=!1)=>{switch(T){case"0":return Z?"#5BC946":" 正常";case"1":return Z?"#FFC125":" 关注";case"2":return Z?"#FF8C00":" 追踪";case"3":return Z?"#FF6347":" 高危";case"4":return Z?"#B413EC":" 警戒";case"*":return Z?"#ff0000":" 异常";default:return""}},be=T=>{switch(T){case"0":return J.jsx(jt,{});case"1":return J.jsx(Rt,{});case"2":return J.jsx(Nt,{});case"3":return J.jsx(It,{});case"4":return J.jsx(Mt,{});case"*":return J.jsx(Lt,{});default:return""}},t=T=>{if(F)return;const Z=B.getFieldValue(),K={PTaskname:Z.PTaskname,ReportLevel:Z.ReportLevel,PNum:Z.PNum,NameChinese:Z.NameChinese,pageIndex:1,pageSize:50};if(T&&(K.QorganizeId=T),Z.StartTime&&(K.StartTime=ke(Z.StartTime).format("YYYY-MM-DD")),Z.EndTime&&(K.EndTime=ke(Z.EndTime).format("YYYY-MM-DD")),ke(Z.StartTime).valueOf()>ke(Z.EndTime).valueOf()){me.warning("开始时间大于结束时间, 请重新选择");return}D(K)},f=T=>{t(T),re(T)},N={selectedRowKeys:V,onChange:T=>{$(T)}},g=async T=>{if(V.length===0){me.info("请先选择人员");return}W(!0);try{const{code:Z,msg:K,data:fe}=await st("/api/PsyInforeport/GetUpdateReport",V,{ReportType:T});Z===200?(j(fe),me.success(K)):me.warning(K)}catch(Z){me.error(Z)}},v=(T,Z="")=>`
      Content-Type: text/html; charset='utf-8'
      <!DOCTYPE html>
      <html>
      <head>
      <style>
        ${Z}
      </style>
      </head>
      <body>
        ${T}
      </body>
      </html>
    `,E=({filename:T,selector:Z})=>{let K=window.document.querySelectorAll(Z);const fe=Array.from(K).reduce((ce,pe)=>ce+pe.innerHTML,"");let he=v(fe);const ye=nr.asBlob(he);tr(ye,T+".docx")},R=({key:T})=>{switch(T){case"1":g(2);break;case"2":g(3);break}};return J.jsxs(Qt,{theme:A,children:[J.jsx("div",{className:"searchTop",children:J.jsxs(Je,{form:B,layout:"inline",onFinish:ie,initialValues:{StartTime:null,ReportLevel:"",EndTime:null,PNum:P?"":C,PTaskname:"",NameChinese:""},children:[J.jsx(Je.Item,{label:"任务名称 : ",name:"PTaskname",children:J.jsx(gt,{options:a,allowClear:!0,placeholder:"任务名称",onChange:ae})}),J.jsx(Je.Item,{label:"用户账号 : ",name:"PNum",style:{display:P!==1&&"none"},children:J.jsx(ot,{allowClear:!0,className:"input",placeholder:"账号"})}),J.jsx(Je.Item,{label:"量表名称 : ",name:"NameChinese",children:J.jsx(gt,{options:d,allowClear:!0,placeholder:"量表名称",onChange:z})}),J.jsx(Je.Item,{label:"风险等级",name:"ReportLevel",children:J.jsx(Dt,{className:"select",placeholder:"风险等级",allowClear:!0,options:[{value:"0",label:"正常"},{value:"1",label:"关注"},{value:"2",label:"追踪"},{value:"3",label:"高危"},{value:"4",label:"警戒"},{value:"*",label:"异常"}]})}),J.jsx(Je.Item,{label:"开始 : ",name:"StartTime",children:J.jsx(at,{})}),J.jsx(Je.Item,{label:" 至 : ",name:"EndTime",children:J.jsx(at,{})}),J.jsx(Je.Item,{children:J.jsxs(pt,{children:[J.jsx(Qe,{type:"primary",htmlType:"submit",children:"搜 索"}),P?J.jsx(kt,{placement:"bottom",arrow:!0,menu:{items:[{label:J.jsx("span",{children:"多人标准报告"}),key:"1"},{type:"divider"},{label:J.jsx("span",{children:"多人完整报告"}),key:"2"}],onClick:R},trigger:["click"],children:J.jsxs(Qe,{icon:J.jsx(Pt,{}),children:["更 多 ",J.jsx(vt,{})," "]})}):J.jsx(Qe,{onClick:()=>g(1),children:"多次简单报告"})]})})]})}),J.jsxs("div",{className:"content",children:[P!==0&&J.jsx("div",{className:"leftOrgan",children:J.jsx(Ft,{onSelectOrg:f})}),J.jsx("div",{className:"rightTable",children:J.jsx("div",{className:"tableBox",children:s&&J.jsx(Ot,{size:"small",dataSource:s,columns:ne,sticky:!0,rowKey:T=>T.id,rowSelection:N,loading:F,pagination:{total:p,showSizeChanger:!0,showQuickJumper:!0,defaultPageSize:50,onChange:O,showTotal:T=>`共 ${T} 条`}})})})]}),J.jsx(yt,{onClose:le,closable:!1,open:I,width:794,children:J.jsxs(qt,{children:[J.jsxs("p",{className:"header",children:[J.jsxs("span",{className:"leftBtn",children:[J.jsxs(Qe,{style:{marginLeft:"10px"},onClick:()=>E({filename:`报告_${ke().format("YYYY-MM-DD")}`,selector:"#psyReport"}),children:[J.jsx(Vt,{}),"导出Word"]}),J.jsx(ar,{trigger:()=>J.jsxs(Qe,{style:{marginLeft:"10px"},children:[J.jsx(zt,{}),"打印"]}),content:()=>U.current})]}),J.jsx("span",{className:"rightClose",children:J.jsx(bt,{onClick:le})})]}),H&&U?J.jsx("div",{className:"inner",ref:U,id:"psyReport",dangerouslySetInnerHTML:{__html:H}}):J.jsx("div",{style:{marginTop:"100px",textAlign:"center"},children:J.jsx(_t,{})})]})})]})});St.displayName="PSYReportPC";const or=Te.memo(()=>{const{isPC:me}=ct(Me=>Me);return J.jsx(Kt,{children:me===1?J.jsx(St,{}):J.jsx(wt,{})})});or.displayName="PSYReport";export{or as default};
