PageSourceSearch

https://xroid.ai/_next/static/chunks/8187f03c.bd5f95de564dfccf.js

js xroid.ai collected 2026-10-05 14:49:54 UTC 394,507 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[28489],{371529:(e,t,r)=>{r.d(t,{Document:()=>a5,HeadingLevel:()=>iB,Packer:()=>lb,Paragraph:()=>oe,TextRun:()=>rU});var n,i,o,s,a,l,u,c,h,d,p=r(995714).Buffer,f=Object.create,m=Object.defineProperty,g=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,y=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,b=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(e){throw r=[e],e}},x=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),_=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,o=w(t),s=0,a=o.length;s<a;s++)i=o[s],v.call(e,i)||i===r||m(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(n=g(t,i))||n.enumerable});return e},E=(e,t,r)=>(r=null!=e?f(y(e)):{},_(!t&&e&&e.__esModule&&v.call(e,"default")?r:m(r,"default",{value:e,enumerable:!0}),e)),k=(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t,r){var n;return(n=function(e,t){if("object"!=T(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=T(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==T(n)?n:n+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var A=class{constructor(e){S(this,"rootKey",void 0),this.rootKey=e}get writtenAs(){}},R=Object.seal({}),I=class extends A{constructor(e){super(e),S(this,"root",void 0),this.root=[]}prepForXml(e){var t;e.stack.push(this);let r=this.root.flatMap(t=>{if(t instanceof A){let r=t.writtenAs;return r?r.map(t=>t.prepForXml(e)):t.prepForXml(e)}return t}).filter(e=>void 0!==e);return e.stack.pop(),{[this.rootKey]:r.length?1===r.length&&(null===(t=r[0])||void 0===t?void 0:t._attr)?r[0]:r:R}}addChildElement(e){return this.root.push(e),this}},C=class extends I{constructor(e,t){super(e),S(this,"includeIfEmpty",void 0),this.includeIfEmpty=t}prepForXml(e){let t=super.prepForXml(e);return this.includeIfEmpty?t:t&&("object"!=typeof t[this.rootKey]||Object.keys(t[this.rootKey]).length)?t:void 0}};function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var F=class extends A{constructor(e){super("_attr"),S(this,"root",void 0),S(this,"xmlKeys",void 0),this.root=e}prepForXml(e){let t={};return Object.entries(this.root).forEach(([e,r])=>{void 0!==r&&(t[this.xmlKeys&&this.xmlKeys[e]||e]=r)}),{_attr:t}}},P=class extends A{constructor(e){super("_attr"),S(this,"root",void 0),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:e})=>void 0!==e).reduce((e,{key:t,value:r})=>N(N({},e),{},{[t]:r}),{})}}},D=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}},L=x((e,t)=>{var r,n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};r=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(e,t){return new Promise(function(r,n){var i;function o(r){e.removeListener(t,s),n(r)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}g(e,t,s,{once:!0}),"error"!==t&&(i={once:!0},"function"==typeof e.on&&g(e,"error",o,i))})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function l(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){if(l(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"==typeof s?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=u(e))>0&&s.length>i&&!s.warned){s.warned=!0;var i,o,s,a=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,console&&console.warn&&console.warn(a)}return e}function h(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):m(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return a}
1,set:function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),s.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var s,a=Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else for(var u=l.length,c=m(l,u),r=0;r<u;++r)i(c[r],this,t);return!0},s.prototype.addListener=function(e,t){return c(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return c(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,n,i,o,s;if(l(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n=this._events;if(void 0===n)return this;if(void 0===n.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0==arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},s.prototype.listenerCount=f,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}}),B=x((e,t)=>{"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),M=b(()=>{n=globalThis||self});function j(){throw Error("setTimeout has not been defined")}function U(){throw Error("clearTimeout has not been defined")}function z(e){if(s===setTimeout)return setTimeout(e,0);if((s===j||!s)&&setTimeout)return s=setTimeout,setTimeout(e,0);try{return s(e,0)}catch(t){try{return s.call(null,e,0)}catch(t){return s.call(this,e,0)}}}function W(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&H())}function H(){if(!u){var e=z(W);u=!0;for(var t=l.length;t;){for(c=l,l=[];++h<t;)c&&c[h].run();h=-1,t=l.length}c=null,u=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===U||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function K(e,t){this.fun=e,this.array=t}function G(){}var V=b(()=>{o=(i={exports:{}}).exports={}
1,function(){try{s="function"==typeof setTimeout?setTimeout:j}catch(e){s=j}try{a="function"==typeof clearTimeout?clearTimeout:U}catch(e){a=U}}(),l=[],u=!1,h=-1,o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new K(e,t)),1!==l.length||u||z(H)},K.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=G,o.addListener=G,o.once=G,o.off=G,o.removeListener=G,o.removeAllListeners=G,o.emit=G,o.prependListener=G,o.prependOnceListener=G,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0},d=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(i.exports)}),$=x((e,t)=>{t.exports=L().EventEmitter}),q=x(e=>{e.byteLength=function(e){var t=a(e),r=t[0],n=t[1];return(r+n)*3/4-n},e.toByteArray=function(e){for(var t,i=a(e),o=i[0],s=i[1],l=new n((o+s)*3/4-s),u=0,c=s>0?o-4:o,h=0;h<c;h+=4)t=r[e.charCodeAt(h)]<<18|r[e.charCodeAt(h+1)]<<12|r[e.charCodeAt(h+2)]<<6|r[e.charCodeAt(h+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=r[e.charCodeAt(h)]<<2|r[e.charCodeAt(h+1)]>>4,l[u++]=255&t),1===s&&(t=r[e.charCodeAt(h)]<<10|r[e.charCodeAt(h+1)]<<4|r[e.charCodeAt(h+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},e.fromByteArray=function(e){for(var r,n=e.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(function(e,r,n){for(var i,o=[],s=r;s<n;s+=3)o.push(t[(i=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]))>>18&63]+t[i>>12&63]+t[i>>6&63]+t[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(t[(r=e[n-1])>>2]+t[r<<4&63]+"=="):2===i&&o.push(t[(r=(e[n-2]<<8)+e[n-1])>>10]+t[r>>4&63]+t[r<<2&63]+"="),o.join("")};for(var t=[],r=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=i.length;o<s;++o)t[o]=i[o],r[i.charCodeAt(o)]=o;function a(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63}),Z=x(e=>{e.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,l=(1<<a)-1,u=l>>1,c=-7,h=r?i-1:0,d=r?-1:1,p=e[t+h];for(h+=d,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+e[t+h],h+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=u}return(p?-1:1)*s*Math.pow(2,o-n)},e.write=function(e,t,r,n,i,o){var s,a,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,d=23===i?5960464477539062e-23:0,p=n?0:o-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?t+=d/l:t+=d*Math.pow(2,1-h),t*l>=2&&(s++,l/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(t*l-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+p]=255&a,p+=f,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[r+p]=255&s,p+=f,s/=256,u-=8);e[r+p-f]|=128*m}}),X=x(e=>{var t=q(),r=Z(),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function i(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return l(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!o.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|d(e,t),n=i(r),s=n.write(e,t);return s!==r&&(n=n.slice(0,s)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(A(e,Uint8Array)){var t=new Uint8Array(e);return c(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(A(e,SharedArrayBuffer)||e&&A(e.buffer,SharedArrayBuffer)))return c(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return o.from(n,t,r);var s=function(e){if(o.isBuffer(e)){var t,r=0|h(e.length),n=i(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?i(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function a(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 17,192 bytes, line 1
1if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return a(e),i(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=i(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function c(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),o.prototype),n}function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(e).length;default:if(i)return n?-1:k(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,r,n){var i,o,s=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(r>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=R[e[o]];return i}(this,r,n);case"utf8":case"utf-8":return w(this,r,n);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,r,n);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,r,n);case"base64":return i=r,o=n,0===i&&o===this.length?t.fromByteArray(this):t.fromByteArray(this.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,r,n);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function f(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){var s;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(s=r=+r)!=s&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function g(e,t,r,n,i){var o,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,a/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=r;o<a;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*s}else -1!==c&&(o-=o-c),c=-1}else for(r+l>a&&(r=a-l),o=r;o>=0;o--){for(var h=!0,d=0;d<l;d++)if(u(e,o+d)!==u(t,d)){h=!1;break}if(h)return o}return -1}function w(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,l,u=e[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=r)switch(h){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],s=e[i+2],(192&o)==128&&(192&s)==128&&(l=(15&u)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(l=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function y(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function v(e,t,r,n,i,s){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function b(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function x(e,t,n,i,o){return t=+t,n>>>=0,o||b(e,t,n,4,34028234663852886e22,-34028234663852886e22),r.write(e,t,n,i,23,4),n+4}function _(e,t,n,i,o){return t=+t,n>>>=0,o||b(e,t,n,8,17976931348623157e292,-17976931348623157e292),r.write(e,t,n,i,52,8),n+8}e.Buffer=o,e.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,r){return s(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(a(e),e<=0)?i(e):void 0!==t?"string"==typeof r?i(e).fill(t,r):i(e).fill(t):i(e)},o.allocUnsafe=function(e){return l(e)},o.allocUnsafeSlow=function(e){return l(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(A(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,s=Math.min(r,n);i<s;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=o.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var s=e[r];if(A(s,Uint8Array))i+s.length>n.length?o.from(s).copy(n,i):Uint8Array.prototype.set.call(n,s,i);else if(o.isBuffer(s))s.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=s.length}return n},o.byteLength=d,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?w(this,0,e):p.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(e,t,r,n,i){if(A(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var s=i-n,a=r-t,l=Math.min(s,a),u=this.slice(n,i),c=e.slice(t,r),h=0;h<l;++h)if(u[h]!==c[h]){s=u[h],a=c[h];break}return s<a?-1:a<s?1:0},o.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},o.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,l,u,c,h,d=this.length-t;if((void 0===r||r>d)&&(r=d),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(a!=a)break;e[r+s]=a}return s}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,S(k(e,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return s=t,a=r,S(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,s,a);case"base64":return l=t,u=r,S(T(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,h=r,S(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,h);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,o.prototype),n},o.prototype.readUintLE=o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},o.prototype.readUintBE=o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e>>>=0,t||y(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return(e>>>=0,t||y(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||y(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||y(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||y(e,4,this.length),r.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||y(e,4,this.length),r.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||y(e,8,this.length),r.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||y(e,8,this.length),r.read(this,e,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;v(this,e,t,r,i,0)}var o=1,s=0;for(this[t]=255&e;++s<r&&(o*=256);)this[t+s]=e/o&255;return t+r},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;v(this,e,t,r,i,0)}var o=r-1,s=1;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+r},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);v(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);v(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,r){return x(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return x(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return _(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return _(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},o.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,s=e.charCodeAt(0);("utf8"===n&&s<128||"latin1"===n)&&(e=s)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=o.isBuffer(e)?e:o.from(e,n),l=a.length;
1if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%l]}return this};var E=/[^+/0-9A-Za-z-_]/g;function k(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function T(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function S(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var R=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()}),Y=x((e,t)=>{t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}}),J=x((e,t)=>{var r=Y();t.exports=function(){return r()&&!!Symbol.toStringTag}}),Q=x((e,t)=>{t.exports=Object}),ee=x((e,t)=>{t.exports=Error}),et=x((e,t)=>{t.exports=EvalError}),er=x((e,t)=>{t.exports=RangeError}),en=x((e,t)=>{t.exports=ReferenceError}),ei=x((e,t)=>{t.exports=SyntaxError}),eo=x((e,t)=>{t.exports=TypeError}),es=x((e,t)=>{t.exports=URIError}),ea=x((e,t)=>{t.exports=Math.abs}),el=x((e,t)=>{t.exports=Math.floor}),eu=x((e,t)=>{t.exports=Math.max}),ec=x((e,t)=>{t.exports=Math.min}),eh=x((e,t)=>{t.exports=Math.pow}),ed=x((e,t)=>{t.exports=Math.round}),ep=x((e,t)=>{t.exports=Number.isNaN||function(e){return e!=e}}),ef=x((e,t)=>{var r=ep();t.exports=function(e){return r(e)||0===e?e:e<0?-1:1}}),em=x((e,t)=>{t.exports=Object.getOwnPropertyDescriptor}),eg=x((e,t)=>{var r=em();if(r)try{r([],"length")}catch(e){r=null}t.exports=r}),ew=x((e,t)=>{var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}t.exports=r}),ey=x((e,t)=>{var r="undefined"!=typeof Symbol&&Symbol,n=Y();t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&n()}}),ev=x((e,t)=>{t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null}),eb=x((e,t)=>{t.exports=Q().getPrototypeOf||null}),ex=x((e,t)=>{var r=Object.prototype.toString,n=Math.max,i=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},o=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},s=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};t.exports=function(e){var t,a=this;if("function"!=typeof a||"[object Function]"!==r.apply(a))throw TypeError("Function.prototype.bind called on incompatible "+a);for(var l=o(arguments,1),u=n(0,a.length-l.length),c=[],h=0;h<u;h++)c[h]="$"+h;if(t=Function("binder","return function ("+s(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof t){var r=a.apply(this,i(l,arguments));return Object(r)===r?r:this}return a.apply(e,i(l,arguments))}),a.prototype){var d=function(){};d.prototype=a.prototype,t.prototype=new d,d.prototype=null}return t}}),e_=x((e,t)=>{var r=ex();t.exports=Function.prototype.bind||r}),eE=x((e,t)=>{t.exports=Function.prototype.call}),ek=x((e,t)=>{t.exports=Function.prototype.apply}),eT=x((e,t)=>{t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply}),eS=x((e,t)=>{var r=e_(),n=ek(),i=eE();t.exports=eT()||r.call(i,n)}),eA=x((e,t)=>{var r=e_(),n=eo(),i=eE(),o=eS();t.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new n("a function is required");return o(r,i,e)}}),eR=x((e,t)=>{var r,n=eA(),i=eg();try{r=[].__proto__===Array.prototype}
1catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!r&&i&&i(Object.prototype,"__proto__"),s=Object,a=s.getPrototypeOf;t.exports=o&&"function"==typeof o.get?n([o.get]):"function"==typeof a&&function(e){return a(null==e?e:s(e))}}),eI=x((e,t)=>{var r=ev(),n=eb(),i=eR();t.exports=r?function(e){return r(e)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return n(e)}:i?function(e){return i(e)}:null}),eC=x((e,t)=>{var r=Function.prototype.call,n=Object.prototype.hasOwnProperty;t.exports=e_().call(r,n)}),eO=x((e,t)=>{var r,n=Q(),i=ee(),o=et(),s=er(),a=en(),l=ei(),u=eo(),c=es(),h=ea(),d=el(),p=eu(),f=ec(),m=eh(),g=ed(),w=ef(),y=Function,v=function(e){try{return y('"use strict"; return ('+e+").constructor;")()}catch(e){}},b=eg(),x=ew(),_=function(){throw new u},E=b?function(){try{return arguments.callee,_}catch(e){try{return b(arguments,"callee").get}catch(e){return _}}}():_,k=ey()(),T=eI(),S=eb(),A=ev(),R=ek(),I=eE(),C={},O="undefined"!=typeof Uint8Array&&T?T(Uint8Array):r,N={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":k&&T?T([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":C,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":k&&T?T(T([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&T?T(new Map()[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&T?T(new Set()[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&T?T(""[Symbol.iterator]()):r,"%Symbol%":k?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":E,"%TypedArray%":O,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":R,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":S,"%Math.abs%":h,"%Math.floor%":d,"%Math.max%":p,"%Math.min%":f,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":w,"%Reflect.getPrototypeOf%":A};if(T)try{null.error}catch(e){N["%Error.prototype%"]=T(T(e))}var F=function e(t){var r;if("%AsyncFunction%"===t)r=v("async function () {}");else if("%GeneratorFunction%"===t)r=v("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=v("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&T&&(r=T(i.prototype))}return N[t]=r,r},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=e_(),L=eC(),B=D.call(I,Array.prototype.concat),M=D.call(R,Array.prototype.splice),j=D.call(I,String.prototype.replace),U=D.call(I,String.prototype.slice),z=D.call(I,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,K=function(e){var t=U(e,0,1),r=U(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return j(e,W,function(e,t,r,i){n[n.length]=r?j(i,H,"$1"):t||e}),n},G=function(e,t){var r,n=e;if(L(P,n)&&(n="%"+(r=P[n])[0]+"%"),L(N,n)){var i=N[n];if(i===C&&(i=F(n)),void 0===i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new l("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===z(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=K(e),n=r.length>0?r[0]:"",i=G("%"+n+"%",t),o=i.name,s=i.value,a=!1,c=i.alias;c&&(n=c[0],M(r,B([0,1],c)));for(var h=1,d=!0;h<r.length;h+=1){var p=r[h],f=U(p,0,1),m=U(p,-1);if(('"'===f||"'"===f||"`"===f||'"'===m||"'"===m||"`"===m)&&f!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==p&&d||(a=!0),n+="."+p,L(N,o="%"+n+"%"))s=N[o];else if(null!=s){if(!(p in s)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(b&&h+1>=r.length){var g=b(s,p);s=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[p]}else d=L(s,p),s=s[p];d&&!a&&(N[o]=s)}}return s}}),eN=x((e,t)=>{var r=eO(),n=eA(),i=n([r("%String.prototype.indexOf%")]);t.exports=function(e,t){var o=r(e,!!t);return"function"==typeof o&&i(e,".prototype.")>-1?n([o]):o}}),eF=x((e,t)=>{var r=J()(),n=eN()("Object.prototype.toString"),i=function(e){return(!r||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===n(e)},o=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==n(e)&&"callee"in e&&"[object Function]"===n(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=o,t.exports=s?i:o}),eP=x((e,t)=>{var r,n=Object.prototype.toString,i=Function.prototype.toString,o=/^\s*(?:function)?\*/,s=J()(),a=Object.getPrototypeOf,l=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}};t.exports=function(e){if("function"!=typeof e)return!1;if(o.test(i.call(e)))return!0;
1if(!s)return"[object GeneratorFunction]"===n.call(e);if(!a)return!1;if(void 0===r){var t=l();r=!!t&&a(t)}return a(e)===r}}),eD=x((e,t)=>{var r,n,i=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o(function(){throw 42},null,r)}catch(e){e!==n&&(o=null)}else o=null;var s=/^\s*class\b/,a=function(e){try{var t=i.call(e);return s.test(t)}catch(e){return!1}},l=function(e){try{if(a(e))return!1;return i.call(e),!0}catch(e){return!1}},u=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,h=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var p=document.all;u.call(p)===u.call(document.all)&&(d=function(e){if((h||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}t.exports=o?function(e){if(d(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,r)}catch(e){if(e!==n)return!1}return!a(e)&&l(e)}:function(e){if(d(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(c)return l(e);if(a(e))return!1;var t=u.call(e);return!!("[object Function]"===t||"[object GeneratorFunction]"===t||/^\[object HTML/.test(t))&&l(e)}}),eL=x((e,t)=>{var r=eD(),n=Object.prototype.toString,i=Object.prototype.hasOwnProperty,o=function(e,t,r){for(var n=0,o=e.length;n<o;n++)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},s=function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},a=function(e,t,r){for(var n in e)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))};t.exports=function(e,t,i){var l;if(!r(t))throw TypeError("iterator must be a function");(arguments.length>=3&&(l=i),"[object Array]"===n.call(e))?o(e,t,l):"string"==typeof e?s(e,t,l):a(e,t,l)}}),eB=x((e,t)=>{t.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),eM=x((e,t)=>{M();var r=eB(),i="undefined"==typeof globalThis?n:globalThis;t.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}}),ej=x((e,t)=>{var r=ew(),n=ei(),i=eo(),o=eg();t.exports=function(e,t,s){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],h=!!o&&o(e,t);if(r)r(e,t,{configurable:null===u&&h?h.configurable:!u,enumerable:null===a&&h?h.enumerable:!a,value:s,writable:null===l&&h?h.writable:!l});else if(!c&&(a||l||u))throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=s}}),eU=x((e,t)=>{var r=ew(),n=function(){return!!r};n.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},t.exports=n}),ez=x((e,t)=>{var r=eO(),n=ej(),i=eU()(),o=eg(),s=eo(),a=r("%Math.floor%");t.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||a(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],l=!0,u=!0;if("length"in e&&o){var c=o(e,"length");c&&!c.configurable&&(l=!1),c&&!c.writable&&(u=!1)}return(l||u||!r)&&(i?n(e,"length",t,!0,!0):n(e,"length",t)),e}}),eW=x((e,t)=>{var r=e_(),n=ek(),i=eS();t.exports=function(){return i(r,n,arguments)}}),eH=x((e,t)=>{var r=ez(),n=ew(),i=eA(),o=eW();t.exports=function(e){var t=i(arguments),n=e.length-(arguments.length-1);return r(t,1+(n>0?n:0),!0)},n?n(t.exports,"apply",{value:o}):t.exports.apply=o}),eK=x((e,t)=>{M();var r=eL(),i=eM(),o=eH(),s=eN(),a=eg(),l=eI(),u=s("Object.prototype.toString"),c=J()(),h="undefined"==typeof globalThis?n:globalThis,d=i(),p=s("String.prototype.slice"),f=s("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},m={__proto__:null};c&&a&&l?r(d,function(e){var t=new h[e];if(Symbol.toStringTag in t&&l){var r=l(t),n=a(r,Symbol.toStringTag);!n&&r&&(n=a(l(r),Symbol.toStringTag)),m["$"+e]=o(n.get)}}):r(d,function(e){var t=new h[e],r=t.slice||t.set;r&&(m["$"+e]=o(r))});var g=function(e){var t=!1;return r(m,function(r,n){if(!t)try{"$"+r(e)===n&&(t=p(n,1))}catch(e){}}),t},w=function(e){var t=!1;return r(m,function(r,n){if(!t)try{r(e),t=p(n,1)}catch(e){}}),t};t.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t=p(u(e),8,-1);return f(d,t)>-1?t:"Object"===t&&w(e)}return a?g(e):null}}),eG=x((e,t)=>{var r=eK();t.exports=function(e){return!!r(e)}}),eV=x(e=>{var t=eF(),r=eP(),n=eK(),i=eG();function o(e){return e.call.bind(e)}var s="undefined"!=typeof BigInt,a="undefined"!=typeof Symbol,l=o(Object.prototype.toString),u=o(Number.prototype.valueOf),c=o(String.prototype.valueOf),h=o(Bo
1olean.prototype.valueOf);if(s)var d=o(BigInt.prototype.valueOf);if(a)var p=o(Symbol.prototype.valueOf);function f(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function m(e){return"[object Map]"===l(e)}function g(e){return"[object Set]"===l(e)}function w(e){return"[object WeakMap]"===l(e)}function y(e){return"[object WeakSet]"===l(e)}function v(e){return"[object ArrayBuffer]"===l(e)}function b(e){return"undefined"!=typeof ArrayBuffer&&(v.working?v(e):e instanceof ArrayBuffer)}function x(e){return"[object DataView]"===l(e)}function _(e){return"undefined"!=typeof DataView&&(x.working?x(e):e instanceof DataView)}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=i,e.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},e.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):i(e)||_(e)},e.isUint8Array=function(e){return"Uint8Array"===n(e)},e.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===n(e)},e.isUint16Array=function(e){return"Uint16Array"===n(e)},e.isUint32Array=function(e){return"Uint32Array"===n(e)},e.isInt8Array=function(e){return"Int8Array"===n(e)},e.isInt16Array=function(e){return"Int16Array"===n(e)},e.isInt32Array=function(e){return"Int32Array"===n(e)},e.isFloat32Array=function(e){return"Float32Array"===n(e)},e.isFloat64Array=function(e){return"Float64Array"===n(e)},e.isBigInt64Array=function(e){return"BigInt64Array"===n(e)},e.isBigUint64Array=function(e){return"BigUint64Array"===n(e)},m.working="undefined"!=typeof Map&&m(new Map),e.isMap=function(e){return"undefined"!=typeof Map&&(m.working?m(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),e.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},w.working="undefined"!=typeof WeakMap&&w(new WeakMap),e.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(w.working?w(e):e instanceof WeakMap)},y.working="undefined"!=typeof WeakSet&&y(new WeakSet),e.isWeakSet=function(e){return y(e)},v.working="undefined"!=typeof ArrayBuffer&&v(new ArrayBuffer),e.isArrayBuffer=b,x.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&x(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=_;var E="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function k(e){return"[object SharedArrayBuffer]"===l(e)}function T(e){return void 0!==E&&(void 0===k.working&&(k.working=k(new E)),k.working?k(e):e instanceof E)}function S(e){return f(e,u)}function A(e){return f(e,c)}function R(e){return f(e,h)}function I(e){return s&&f(e,d)}function C(e){return a&&f(e,p)}e.isSharedArrayBuffer=T,e.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},e.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},e.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},e.isGeneratorObject=function(e){return"[object Generator]"===l(e)},e.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},e.isNumberObject=S,e.isStringObject=A,e.isBooleanObject=R,e.isBigIntObject=I,e.isSymbolObject=C,e.isBoxedPrimitive=function(e){return S(e)||A(e)||R(e)||I(e)||C(e)},e.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(b(e)||T(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw Error(t+" is not supported in userland")}})})}),e$=x((e,t)=>{t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}}),eq=x(e=>{V();var t=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},r=/%[sdj%]/g;e.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}for(var n=1,i=arguments,o=i.length,a=String(e).replace(r,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return e}}),l=i[n];n<o;l=i[++n])m(l)||!b(l)?a+=" "+l:a+=" "+s(l);return a},e.deprecate=function(t,r){if(void 0!==d&&!0===d.noDeprecation)return t;if(void 0===d)return function(){return e.deprecate(t,r).apply(this,arguments)};var n=!1;
1return function(){if(!n){if(d.throwDeprecation)throw Error(r);d.traceDeprecation?console.trace(r):console.error(r),n=!0}return t.apply(this,arguments)}};var n={},i=/^$/;if(d.env.NODE_DEBUG){var o=d.env.NODE_DEBUG;i=RegExp("^"+(o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function s(t,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),f(r)?n.showHidden=r:r&&e._extend(n,r),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=a),u(n,t,n.depth)}function a(e,t){var r=s.styles[t];return r?"\x1b["+s.colors[r][0]+"m"+e+"\x1b["+s.colors[r][1]+"m":e}function l(e,t){return e}function u(t,r,n){if(t.customInspect&&r&&E(r.inspect)&&r.inspect!==e.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o,s,a,l,d=r.inspect(n,t);return w(d)||(d=u(t,d,n)),d}var b=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(w(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return g(t)?e.stylize(""+t,"number"):f(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(t,r);if(b)return b;var k=Object.keys(r),T=(a={},k.forEach(function(e,t){a[e]=!0}),a);if(t.showHidden&&(k=Object.getOwnPropertyNames(r)),_(r)&&(k.indexOf("message")>=0||k.indexOf("description")>=0))return c(r);if(0===k.length){if(E(r)){var S=r.name?": "+r.name:"";return t.stylize("[Function"+S+"]","special")}if(v(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(x(r))return t.stylize(Date.prototype.toString.call(r),"date");if(_(r))return c(r)}var R="",I=!1,C=["{","}"];return(p(r)&&(I=!0,C=["[","]"]),E(r)&&(R=" [Function"+(r.name?": "+r.name:"")+"]"),v(r)&&(R=" "+RegExp.prototype.toString.call(r)),x(r)&&(R=" "+Date.prototype.toUTCString.call(r)),_(r)&&(R=" "+c(r)),0!==k.length||I&&0!=r.length)?n<0?v(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),l=I?function(e,t,r,n,i){for(var o=[],s=0,a=t.length;s<a;++s)A(t,String(s))?o.push(h(e,t,r,n,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,r,n,i,!0))}),o}(t,r,n,T,k):k.map(function(e){return h(t,r,n,T,e,I)}),t.seen.pop(),i=R,o=C,s=0,l.reduce(function(e,t){return s++,t.indexOf("\n")>=0&&s++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?o[0]+(""===i?"":i+"\n ")+" "+l.join(",\n  ")+" "+o[1]:o[0]+i+" "+l.join(", ")+" "+o[1]):C[0]+R+C[1]}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,o){var s,a,l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]};if(l.get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),A(n,i)||(s="["+i+"]"),!a&&(0>e.seen.indexOf(l.value)?(a=m(r)?u(e,l.value,null):u(e,l.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return"  "+e}).join("\n").slice(2):"\n"+a.split("\n").map(function(e){return"   "+e}).join("\n")):a=e.stylize("[Circular]","special")),y(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function p(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function w(e){return"string"==typeof e}function y(e){return void 0===e}function v(e){return b(e)&&"[object RegExp]"===k(e)}function b(e){return"object"==typeof e&&null!==e}function x(e){return b(e)&&"[object Date]"===k(e)}function _(e){return b(e)&&("[object Error]"===k(e)||e instanceof Error)}function E(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}e.debuglog=function(t){if(!n[t=t.toUpperCase()]){if(i.test(t)){var r=d.pid;n[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else n[t]=function(){}}return n[t]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=eV(),e.isArray=p,e.isBoolean=f,e.isNull=m,e.isNullOrUndefined=function(e){return null==e}
1,e.isNumber=g,e.isString=w,e.isSymbol=function(e){return"symbol"==typeof e},e.isUndefined=y,e.isRegExp=v,e.types.isRegExp=v,e.isObject=b,e.isDate=x,e.types.isDate=x,e.isError=_,e.types.isNativeError=_,e.isFunction=E,e.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},e.isBuffer=e$();var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.log=function(){var t,r;console.log("%s - %s",(r=[T((t=new Date).getHours()),T(t.getMinutes()),T(t.getSeconds())].join(":"),[t.getDate(),S[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=B(),e._extend=function(e,t){if(!t||!b(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}e.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(R&&e[R]){var r=e[R];if("function"!=typeof r)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,R,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),R&&Object.defineProperty(r,R,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,t(e))},e.promisify.custom=R,e.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function r(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var i=this,o=function(){return n.apply(i,arguments)};e.apply(this,t).then(function(e){d.nextTick(o.bind(null,null,e))},function(e){d.nextTick(I.bind(null,e,o))})}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,t(e)),r}}),eZ=x((e,t)=>{function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r,o;r=t,o=n[t],(r=i(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var o=X().Buffer,s=eq().inspect,a=s&&s.custom||"inspect";t.exports=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return e=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,n=o.allocUnsafe(e>>>0),i=this.head,s=0;i;)t=i.data,r=s,o.prototype.copy.call(t,n,r),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,s=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,s),0==(e-=s)){s===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(s));break}++n}return this.length-=n,t}},{key:a,value:function(e,t){return s(this,n(n({},t),{},{depth:0,customInspect:!1}))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}()}),eX=x((e,t)=>{function r(e,t){i(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(e,t){e.emit("error",t)}V(),t.exports={destroy:function(e,t){var o=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,d.nextTick(i,this,e)):d.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted?d.nextTick(n,o):(o._writableState.errorEmitted=!0,d.nextTick(r,o,e)):d.nextTick(r,o,e):t?(d.nextTick(n,o),t(e)):d.nextTick(n,o)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}),eY=x((e,t)=>{var r={};function n(e,t,n){n||(n=Error);var i=function(e){function r(r,n,i){return e.call(this,"string"==typeof t?t:t(r,n,i))||this}return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e,r}(n);i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function i(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invali
1d for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,r){if("string"==typeof t&&(n="not ",t.substr(0,n.length)===n)?(l="must not be",t=t.replace(/^not /,"")):l="must be",o=" argument",(void 0===s||s>e.length)&&(s=e.length),e.substring(s-o.length,s)===o)u="The ".concat(e," ").concat(l," ").concat(i(t,"type"));else{var n,o,s,a,l,u,c=("number"!=typeof a&&(a=0),a+1>e.length||-1===e.indexOf(".",a))?"argument":"property";u='The "'.concat(e,'" ').concat(c," ").concat(l," ").concat(i(t,"type"))}return u+". Received type ".concat(typeof r)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r}),eJ=x((e,t)=>{var r=eY().codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,n,i){var o=null!=t.highWaterMark?t.highWaterMark:i?t[n]:null;if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}}),eQ=x((e,t)=>{M(),t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function r(e){try{if(!n.localStorage)return!1}catch(e){return!1}var t=n.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}}),e0=x((e,t)=>{function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(void 0),n=n.next}t.corkedRequestsFree.next=e})(t,e)}}M(),V(),t.exports=T,T.WritableState=k;var i,o,s={deprecate:eQ()},a=$(),l=X().Buffer,u=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},c=eX(),h=eJ().getHighWaterMark,p=eY().codes,f=p.ERR_INVALID_ARG_TYPE,m=p.ERR_METHOD_NOT_IMPLEMENTED,g=p.ERR_MULTIPLE_CALLBACK,w=p.ERR_STREAM_CANNOT_PIPE,y=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,b=p.ERR_STREAM_WRITE_AFTER_END,x=p.ERR_UNKNOWN_ENCODING,_=c.errorOrDestroy;function E(){}function k(e,t,n){i=i||e1(),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new g;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,n?(d.nextTick(i,t),d.nextTick(O,e,r),e._writableState.errorEmitted=!0,_(e,t)):(i(t),e._writableState.errorEmitted=!0,_(e,t),O(e,r));else{var o=I(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||R(e,r),n?d.nextTick(A,e,r,o,i):A(e,r,o,i)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function T(e){var t=this instanceof(i=i||e1());if(!t&&!o.call(T,this))return new T(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function S(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function A(e,t,r,n){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,n(),O(e,t)}function R(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=Array(t.bufferedRequestCount),o=t.corkedRequestsFree;o.entry=n;for(var s=0,a=!0;n;)i[s]=n,n.isBuf||(a=!1),n=n.next,s+=1;i.allBuffers=a,S(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,c=n.callback;if(S(e,t,!1,t.objectMode?1:l.length,l,u,c),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function I(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final(function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),O(e,t)})}function O(e,t){var r=I(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,d.nextTick(C,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}B()(T,a),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===T&&e&&e._writableState instanceof k}})):o=function(e){return e instanceof this},T.prototype.pipe=function(){_(this,new w)},T.prototype.write=function(e,t,r){var n,i,o,s,a,c,h,p=this._writableState,m=!1,g=!p.objectMode&&(n=e,l.isBuffer(n)||n instanceof u);return g&&!l.isBuffer(e)&&(i=e,e=l.from(i)),("function"==typeof t&&(r=t,t=null),g?t="buffer":t||(t=p.defaultEncoding),"function"!=typeof r&&(r=E),p.ending)?(o=r,_(this,s=new b),d.nextTick(o,s)):(g||(a=e,c=r,null===a?h=new v:"string"==typeof a||p.objectMode||(h=new f("chunk",["string","Buffer"],a)),!h||(_(this,h),d.nextTick(c,h),0)))&&(p.pendingcb++,m=function(e,t,r,n,i,o){if(!r){var s,a,u=(s=n,a=i,t.objectMode||!1===t.decodeStrings||"string"!=typeof s||(s=l.from(s,a)),s);n!==u&&(r=!0,i="buffer",n=u)}var c=t.objectMode?1:n.length;t.length+=c;var h=t.length<t.highWaterMark;if(h||(t.needDrain=!0),t.writing||t.corked){var d=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},d?d.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else S(e,t,!1,c,n,i,o);return h}(this,p,g,e,t,r)),m},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||R(this,e))},T.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,r){r(new m("_write()"))},T.prototype._writev=null,T.prototype.end=function(e,t,r){var n,i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||(n=r,i.ending=!0,O(this,i),n&&(i.finished?d.nextTick(n):this.once("finish",n)),i.ended=!0,this.writable=!1),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=c.destroy,T.prototype._undestroy=c.undestroy,T.prototype._destroy=function(e,t){t(e)}}),e1=x((e,t)=>{V();var r=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=l;var n=e4(),i=e0();
1B()(l,n);for(var o=r(i.prototype),s=0;s<o.length;s++){var a=o[s];l.prototype[a]||(l.prototype[a]=i.prototype[a])}function l(e){if(!(this instanceof l))return new l(e);n.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||d.nextTick(c,this)}function c(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}),e2=x((e,t)=>{var r=X(),n=r.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=o),i(n,o),o.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return n(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return r.SlowBuffer(e)}}),e6=x(e=>{var t=e2().Buffer,r=t.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(e){var n;switch(this.encoding=function(e){var n=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof n&&(t.isEncoding===r||!r(e)))throw Error("Unknown encoding: "+e);return n||e}(e),this.encoding){case"utf16le":this.text=s,this.end=a,n=4;break;case"utf8":this.fillLast=o,n=4;break;case"base64":this.text=l,this.end=u,n=3;break;default:this.write=c,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}function i(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function s(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function c(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}e.StringDecoder=n,n.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},n.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},n.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var o=i(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||-2===o?0:(o=i(t[n]))>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||-2===o?0:(o=i(t[n]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}}),e5=x((e,t)=>{var r=eY().codes.ERR_STREAM_PREMATURE_CLOSE;function n(){}t.exports=function e(t,i,o){if("function"==typeof i)return e(t,null,i);
1i||(i={}),s=o||n,a=!1,o=function(){if(!a){a=!0;for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];s.apply(this,t)}};var s,a,l=i.readable||!1!==i.readable&&t.readable,u=i.writable||!1!==i.writable&&t.writable,c=function(){t.writable||d()},h=t._writableState&&t._writableState.finished,d=function(){u=!1,h=!0,l||o.call(t)},p=t._readableState&&t._readableState.endEmitted,f=function(){l=!1,p=!0,u||o.call(t)},m=function(e){o.call(t,e)},g=function(){var e;return l&&!p?(t._readableState&&t._readableState.ended||(e=new r),o.call(t,e)):u&&!h?(t._writableState&&t._writableState.ended||(e=new r),o.call(t,e)):void 0},w=function(){t.req.on("finish",d)};return t.setHeader&&"function"==typeof t.abort?(t.on("complete",d),t.on("abort",g),t.req?w():t.on("request",w)):u&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",f),t.on("finish",d),!1!==i.error&&t.on("error",m),t.on("close",g),function(){t.removeListener("complete",d),t.removeListener("abort",g),t.removeListener("request",w),t.req&&t.req.removeListener("finish",d),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",d),t.removeListener("end",f),t.removeListener("error",m),t.removeListener("close",g)}}}),e3=x((e,t)=>{function r(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}V();var n,i=e5(),o=Symbol("lastResolve"),s=Symbol("lastReject"),a=Symbol("error"),l=Symbol("ended"),u=Symbol("lastPromise"),c=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function f(e){var t=e[o];if(null!==t){var r=e[h].read();null!==r&&(e[u]=null,e[o]=null,e[s]=null,t(p(r,!1)))}}function m(e){d.nextTick(f,e)}var g=Object.getPrototypeOf(function(){}),w=Object.setPrototypeOf((r(n={get stream(){return this[h]},next:function(){var e,t,r=this,n=this[a];if(null!==n)return Promise.reject(n);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,t){d.nextTick(function(){r[a]?t(r[a]):e(p(void 0,!0))})});var i=this[u];if(i)t=new Promise((e=this,function(t,r){i.then(function(){if(e[l]){t(p(void 0,!0));return}e[c](t,r)},r)}));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));t=new Promise(this[c])}return this[u]=t,t}},Symbol.asyncIterator,function(){return this}),r(n,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),n),g);t.exports=function(e){var t,n=Object.create(w,(r(t={},h,{value:e,writable:!0}),r(t,o,{value:null,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,a,{value:null,writable:!0}),r(t,l,{value:e._readableState.endEmitted,writable:!0}),r(t,c,{value:function(e,t){var r=n[h].read();r?(n[u]=null,n[o]=null,n[s]=null,e(p(r,!1))):(n[o]=e,n[s]=t)},writable:!0}),t));return n[u]=null,i(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[s];null!==t&&(n[u]=null,n[o]=null,n[s]=null,t(e)),n[a]=e;return}var r=n[o];null!==r&&(n[u]=null,n[o]=null,n[s]=null,r(p(void 0,!0))),n[l]=!0}),e.on("readable",m.bind(null,n)),n}}),e8=x((e,t)=>{t.exports=function(){throw Error("Readable.from is not available in the browser")}}),e4=x((e,t)=>{M(),V(),t.exports=T,T.ReadableState=k,L().EventEmitter;var r,i,o,s,a,l=function(e,t){return e.listeners(t).length},u=$(),c=X().Buffer,h=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},p=eq();i=p&&p.debuglog?p.debuglog("stream"):function(){};var f=eZ(),m=eX(),g=eJ().getHighWaterMark,w=eY().codes,y=w.ERR_INVALID_ARG_TYPE,v=w.ERR_STREAM_PUSH_AFTER_EOF,b=w.ERR_METHOD_NOT_IMPLEMENTED,x=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;B()(T,u);var _=m.errorOrDestroy,E=["error","close","destroy","pause","resume"];function k(e,t,n){r=r||e1(),e=e||{},"boolean"!=typeof n&&(n=t instanceof r),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",n),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o||(o=e6().StringDecoder),this.decoder=new o(e.encoding),this.encoding=e.encoding)}function T(e){if(r=r||e1(),!(this instanceof T))return new T(e);var t=this instanceof r;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function S(e,t,r,n,o){i("readableAddChunk",t);var s,a,l,u,d,p=e._readableState;if(null===t)p.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?I(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}}(e,p);else{if(o||(s=p,a=t,c.isBuffer(a)||a instanceof h||"string"==typeof a||void 0===a||s.objectMode||(l=new y("chunk",["string","Buffer","Uint8Array"],a)),d=l),d)_(e,d);else if(p.objectMode||t&&t.length>0){if("string"==typeof t||p.objectMode||Object.getPrototypeOf(t)===c.prototype||(u=t,t=c.from(u)),n)p.endEmitted?_(e,new x):A(e,p,t,!0);else if(p.ended)_(e,new v);else{if(p.destroyed)return!1;p.reading=!1,p.decoder&&!r?(t=p.decoder.write(t),p.objectMode||0!==t.length?A(e,p,t,!1):O(e,p)):A(e,p,t,!1)}}else n||(p.reading=!1,O(e,p))}return!p.ended&&(p.length<p.highWaterMark||0===p.length)}function A(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&I(e)),O(e,t)}function R(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)return t.flowing&&t.length?t.buffer.head.data.length:t.length;if(e>t.highWaterMark){var r;t.highWaterMark=((r=e)>=0x40000000?r=0x40000000:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function I(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,d.nextTick(C,e))}function C(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,j(e)}function O(e,t){t.readingMore||(t.readingMore=!0,d.nextTick(N,e,t))}function N(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(i("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function F(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function P(e){i("readable nexttick read 0"),e.read(0)}function D(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function z(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,d.nextTick(W,t,e))}function W(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function H(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=m.destroy,T.prototype._undestroy=m.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),S(this,e,t,!1,r)},T.prototype.unshift=function(e){return S(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(e){o||(o=e6().StringDecoder);var t=new o(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;
1for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this},T.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return i("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?z(this):I(this),null;if(0===(e=R(e,r))&&r.ended)return 0===r.length&&z(this),null;var o=r.needReadable;return i("need readable",o),(0===r.length||r.length-e<r.highWaterMark)&&i("length less than watermark",o=!0),r.ended||r.reading?i("reading or ended",o=!1):o&&(i("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=R(n,r))),null===(t=e>0?U(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&z(this)),null!==t&&this.emit("data",t),t},T.prototype._read=function(e){_(this,new b("_read()"))},T.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,i("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===d.stdout||e===d.stderr?m:s;function s(){i("onend"),e.end()}n.endEmitted?d.nextTick(o):r.once("end",o),e.on("unpipe",function t(o,l){i("onunpipe"),o===r&&l&&!1===l.hasUnpiped&&(l.hasUnpiped=!0,i("cleanup"),e.removeListener("close",p),e.removeListener("finish",f),e.removeListener("drain",a),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",s),r.removeListener("end",m),r.removeListener("data",c),u=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&a())});var a=function(){var e=r._readableState;i("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&l(r,"data")&&(e.flowing=!0,j(r))};e.on("drain",a);var u=!1;function c(t){i("ondata");var o=e.write(t);i("dest.write",o),!1===o&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==H(n.pipes,e))&&!u&&(i("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){i("onerror",t),m(),e.removeListener("error",h),0===l(e,"error")&&_(e,t)}function p(){e.removeListener("finish",f),m()}function f(){i("onfinish"),e.removeListener("close",p),m()}function m(){i("unpipe"),r.unpipe(e)}return r.on("data",c),function(e,t,r){if("function"==typeof e.prependListener)return e.prepe
1ndListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",f),e.emit("pipe",r),n.flowing||(i("pipe resume"),r.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=H(t.pipes,e);return -1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},T.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,i("on readable",n.length,n.reading),n.length?I(this):n.reading||d.nextTick(P,this)),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var r=u.prototype.removeListener.call(this,e,t);return"readable"===e&&d.nextTick(F,this),r},T.prototype.removeAllListeners=function(e){var t=u.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&d.nextTick(F,this),t},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,d.nextTick(D,this,e))),e.paused=!1,this},T.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",function(){if(i("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){i("wrapped data"),r.decoder&&(o=r.decoder.write(o)),(!r.objectMode||null!=o)&&(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var s=0;s<E.length;s++)e.on(E[s],this.emit.bind(this,E[s]));return this._read=function(t){i("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===s&&(s=e3()),s(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=U,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(e,t){return void 0===a&&(a=e8()),a(T,e,t)})}),e9=x((e,t)=>{t.exports=u;var r=eY().codes,n=r.ERR_METHOD_NOT_IMPLEMENTED,i=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,a=e1();function l(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",c)}function c(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,r){h(e,t,r)})}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}B()(u,a),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,a.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new n("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){a.prototype._destroy.call(this,e,function(e){t(e)})}}),e7=x((e,t)=>{t.exports=n;var r=e9();function n(e){if(!(this instanceof n))return new n(e);r.call(this,e)}B()(n,r),n.prototype._transform=function(e,t,r){r(null,e)}}),te=x((e,t)=>{var r,n=eY().codes,i=n.ERR_MISSING_ARGS,o=n.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function a(e){e()}function l(e,t){return e.pipe(t)}t.exports=function(){for(var e,t,n=arguments.length,u=Array(n),c=0;c<n;c++)u[c]=arguments[c];var h=(e=u).length&&"function"==typeof e[e.length-1]?e.pop():s;
1if(Array.isArray(u[0])&&(u=u[0]),u.length<2)throw new i("streams");var d=u.map(function(e,n){var i,s,l,c,p,f,m=n<u.length-1;return i=n>0,l=s=function(e){t||(t=e),e&&d.forEach(a),m||(d.forEach(a),h(t))},c=!1,s=function(){c||(c=!0,l.apply(void 0,arguments))},p=!1,e.on("close",function(){p=!0}),void 0===r&&(r=e5()),r(e,{readable:m,writable:i},function(e){if(e)return s(e);p=!0,s()}),f=!1,function(t){if(!p&&!f){if(f=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new o("pipe"))}}});return u.reduce(l)}}),tt=x((e,t)=>{t.exports=n;var r=L().EventEmitter;function n(){r.call(this)}B()(n,r),n.Readable=e4(),n.Writable=e0(),n.Duplex=e1(),n.Transform=e9(),n.PassThrough=e7(),n.finished=e5(),n.pipeline=te(),n.Stream=n,n.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",a),n.on("close",l));var s=!1;function a(){s||(s=!0,e.end())}function l(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",a),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}}),tr=x(e=>{!function(e){e.parser=function(e,t){return new s(e,t)},e.SAXParser=s,e.SAXStream=l,e.createStream=function(e,t){return new l(e,t)},e.MAX_BUFFER_LENGTH=65536;var t,r,n,i,o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function s(t,r){if(!(this instanceof s))return new s(t,r);(function(e){for(var t=0,r=o.length;t<r;t++)e[o[t]]=""})(this),this.q=this.c="",this.bufferCheckPosition=e.MAX_BUFFER_LENGTH,this.opt=r||{},this.opt.lowercase=this.opt.lowercase||this.opt.lowercasetags,this.looseCase=this.opt.lowercase?"toLowerCase":"toUpperCase",this.tags=[],this.closed=this.closedRoot=this.sawRoot=!1,this.tag=this.error=null,this.strict=!!t,this.noscript=!!(t||this.opt.noscript),this.state=b.BEGIN,this.strictEntities=this.opt.strictEntities,this.ENTITIES=this.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),this.attribList=[],this.opt.xmlns&&(this.ns=Object.create(h)),this.trackPosition=!1!==this.opt.position,this.trackPosition&&(this.position=this.line=this.column=0),_(this,"onready")}e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}),s.prototype={end:function(){A(this)},write:function(t){if(this.error)throw this.error;if(this.closed)return S(this,"Cannot write after close. Assign an onready handler.");if(null===t)return A(this);"object"==typeof t&&(t=t.toString());for(var r=0,n="";n=P(t,r++),this.c=n,n;)switch(this.trackPosition&&(this.position++,"\n"===n?(this.line++,this.column=0):this.column++),this.state){case b.BEGIN:if(this.state=b.BEGIN_WHITESPACE,"\uFEFF"===n)continue;F(this,n);continue;case b.BEGIN_WHITESPACE:F(this,n);continue;case b.TEXT:if(this.sawRoot&&!this.closedRoot){for(var i,s,a,l=r-1;n&&"<"!==n&&"&"!==n;)(n=P(t,r++))&&this.trackPosition&&(this.position++,"\n"===n?(this.line++,this.column=0):this.column++);this.textNode+=t.substring(l,r-1)}"<"!==n||this.sawRoot&&this.closedRoot&&!this.strict?(w(n)||this.sawRoot&&!this.closedRoot||R(this,"Text data outside of root node."),"&"===n?this.state=b.TEXT_ENTITY:this.textNode+=n):(this.state=b.OPEN_WAKA,this.startTagPosition=this.position);continue;case b.SCRIPT:"<"===n?this.state=b.SCRIPT_ENDING:this.script+=n;continue;case b.SCRIPT_ENDING:"/"===n?this.state=b.CLOSE_TAG:(this.script+="<"+n,this.state=b.SCRIPT);continue;case b.OPEN_WAKA:"!"===n?(this.state=b.SGML_DECL,this.sgmlDecl=""):w(n)||(v(d,n)?(this.state=b.OPEN_TAG,this.tagName=n):"/"===n?(this.state=b.CLOSE_TAG,this.tagName=""):"?"===n?(this.state=b.PROC_INST,this.procInstName=this.procInstBody=""):(R(this,"
1Unencoded <"),this.startTagPosition+1<this.position&&(n=Array(this.position-this.startTagPosition).join(" ")+n),this.textNode+="<"+n,this.state=b.TEXT));continue;case b.SGML_DECL:"[CDATA["===(this.sgmlDecl+n).toUpperCase()?(E(this,"onopencdata"),this.state=b.CDATA,this.sgmlDecl="",this.cdata=""):this.sgmlDecl+n==="--"?(this.state=b.COMMENT,this.comment="",this.sgmlDecl=""):"DOCTYPE"===(this.sgmlDecl+n).toUpperCase()?(this.state=b.DOCTYPE,(this.doctype||this.sawRoot)&&R(this,"Inappropriately located doctype declaration"),this.doctype="",this.sgmlDecl=""):">"===n?(E(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=b.TEXT):(y(n)&&(this.state=b.SGML_DECL_QUOTED),this.sgmlDecl+=n);continue;case b.SGML_DECL_QUOTED:n===this.q&&(this.state=b.SGML_DECL,this.q=""),this.sgmlDecl+=n;continue;case b.DOCTYPE:">"===n?(this.state=b.TEXT,E(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=n,"["===n?this.state=b.DOCTYPE_DTD:y(n)&&(this.state=b.DOCTYPE_QUOTED,this.q=n));continue;case b.DOCTYPE_QUOTED:this.doctype+=n,n===this.q&&(this.q="",this.state=b.DOCTYPE);continue;case b.DOCTYPE_DTD:this.doctype+=n,"]"===n?this.state=b.DOCTYPE:y(n)&&(this.state=b.DOCTYPE_DTD_QUOTED,this.q=n);continue;case b.DOCTYPE_DTD_QUOTED:this.doctype+=n,n===this.q&&(this.state=b.DOCTYPE_DTD,this.q="");continue;case b.COMMENT:"-"===n?this.state=b.COMMENT_ENDING:this.comment+=n;continue;case b.COMMENT_ENDING:"-"===n?(this.state=b.COMMENT_ENDED,this.comment=T(this.opt,this.comment),this.comment&&E(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+n,this.state=b.COMMENT);continue;case b.COMMENT_ENDED:">"!==n?(R(this,"Malformed comment"),this.comment+="--"+n,this.state=b.COMMENT):this.state=b.TEXT;continue;case b.CDATA:"]"===n?this.state=b.CDATA_ENDING:this.cdata+=n;continue;case b.CDATA_ENDING:"]"===n?this.state=b.CDATA_ENDING_2:(this.cdata+="]"+n,this.state=b.CDATA);continue;case b.CDATA_ENDING_2:">"===n?(this.cdata&&E(this,"oncdata",this.cdata),E(this,"onclosecdata"),this.cdata="",this.state=b.TEXT):"]"===n?this.cdata+="]":(this.cdata+="]]"+n,this.state=b.CDATA);continue;case b.PROC_INST:"?"===n?this.state=b.PROC_INST_ENDING:w(n)?this.state=b.PROC_INST_BODY:this.procInstName+=n;continue;case b.PROC_INST_BODY:!this.procInstBody&&w(n)||("?"===n?this.state=b.PROC_INST_ENDING:this.procInstBody+=n);continue;case b.PROC_INST_ENDING:">"===n?(E(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=b.TEXT):(this.procInstBody+="?"+n,this.state=b.PROC_INST_BODY);continue;case b.OPEN_TAG:v(f,n)?this.tagName+=n:(function(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,r=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(r.ns=t.ns),e.attribList.length=0,E(e,"onopentagstart",r)}(this),">"===n?O(this):"/"===n?this.state=b.OPEN_TAG_SLASH:(w(n)||R(this,"Invalid character in tag name"),this.state=b.ATTRIB));continue;case b.OPEN_TAG_SLASH:">"===n?(O(this,!0),N(this)):(R(this,"Forward-slash in opening tag not followed by >"),this.state=b.ATTRIB);continue;case b.ATTRIB:w(n)||(">"===n?O(this):"/"===n?this.state=b.OPEN_TAG_SLASH:v(d,n)?(this.attribName=n,this.attribValue="",this.state=b.ATTRIB_NAME):R(this,"Invalid attribute name"));continue;case b.ATTRIB_NAME:"="===n?this.state=b.ATTRIB_VALUE:">"===n?(R(this,"Attribute without value"),this.attribValue=this.attribName,C(this),O(this)):w(n)?this.state=b.ATTRIB_NAME_SAW_WHITE:v(f,n)?this.attribName+=n:R(this,"Invalid attribute name");continue;case b.ATTRIB_NAME_SAW_WHITE:if("="===n)this.state=b.ATTRIB_VALUE;else{if(w(n))continue;R(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",E(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===n?O(this):v(d,n)?(this.attribName=n,this.state=b.ATTRIB_NAME):(R(this,"Invalid attribute name"),this.state=b.ATTRIB)}continue;case b.ATTRIB_VALUE:w(n)||(y(n)?(this.q=n,this.state=b.ATTRIB_VALUE_QUOTED):(R(this,"Unquoted attribute value"),this.state=b.ATTRIB_VALUE_UNQUOTED,this.attribValue=n));continue;case b.ATTRIB_VALUE_QUOTED:if(n!==this.q){"&"===n?this.state=b.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=n;continue}C(this),this.q="",this.state=b.ATTRIB_VALUE_CLOSED;continue;case b.ATTRIB_VALUE_CLOSED:w(n)?this.state=b.ATTRIB:">"===n?O(this):"/"===n?this.state=b.OPEN_TAG_SLASH:v(d,n)?(R(this,"No whitespace between attributes"),this.attribName=n,this.attribValue="",this.state=b.ATTRIB_NAME):R(this,"Invalid attribute name");continue;case b.ATTRIB_VALUE_UNQUOTED:if(!(">"===(i=n)||w(i))){"&"===n?this.state=b.ATTRIB_VALUE_ENTITY_U:this.attribValue+=n;continue}C(this),">"===n?O(this):this.state=b.ATTRIB;continue;case b.CLOSE_TAG:this.tagName?">"===n?N(this):v(f,n)?this.tagName+=n:this.script?(this.script+="</"+this.tagName,this.tagName="",this.state=b.SCRIPT):(w(n)||R(this,"Invalid tagname in closing tag"),this.state=b.CLOSE_TAG_SAW_WHITE):w(n)||(v(d,n)?this.tagName=n:this.script?(this.script+="</"+n,this.state=b.SCRIPT):R(this,"Invalid tagname in closing tag."));continue;case b.CLOSE_TAG_SAW_WHITE:if(w(n))continue;">"===n?N(this):R(this,"Invalid characters in closing tag");continue;case b.TEXT_ENTITY:case b.ATTRIB_VALUE_ENTITY_Q:case b.ATTRIB_VALUE_ENTITY_U:switch(this.state){case b.TEXT_ENTITY:s=b.TEXT,a="textNode";break;case b.ATTRIB_VALUE_ENTITY_Q:s=b.ATTRIB_VALUE_QUOTED,a="attribValue";break;case b.ATTRIB_VALUE_ENTITY_U:s=b.ATTRIB_VALUE_UNQUOTED,a="attribValue"}";"===n?(this[a]+=function(e){var t,r=e.entity,n=r.toLowerCase(),i="";return e.ENTITIES[r]?e.ENTITIES[r]:e.ENTITIES[n]?e.ENTITIES[n]:("#"===(r=n).charAt(0)&&(i="x"===r.charAt(1)?(t=parseInt(r=r.slice(2),16)).toString(16):(t=parseInt(r=r.slice(1),10)).toString(10)),r=r.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==r)?(R(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t)}(this),this.entity="",this.state=s):v(this.entity.length?g:m,n)?this.entity+=n:(R(this,"Invalid character in entity name"),this[a]+="&"+this.entity+n,this.entity="",this.state=s);continue;default:throw Error(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function(t){for(var r=Math.max(e.MAX_BUFFER_LENGTH,10),n=0,i=0,s=o.length;i<s;i++){var a=t[o[i]].length;if(a>r)switch(o[i]){case"textNode":k(t);break;case"cdata":E(t,"oncdata",t.cdata),t.cdata="";break;case"script":E(t,"onscript",t.script),t.script="";break;default:S(t,"Max buffer length exceeded: "+o[i])}n=Math.max(n,a)}t.bufferCheckPosition=e.MAX_BUFFER_LENGTH-n+t.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){k(this),""!==this.cdata&&(E(this,"oncdata",this.cdata),this.cdata=""),""!==this.script&&(E(this,"onscript",this.script),this.script="")}};try{i=tt().Stream}catch(e){i=function(){}}var a=e.EVENTS.filter(function(e){return"error"!==e&&"end"!==e});function l(e,t){if(!(this instanceof l))return new l(e,t);i.apply(this),this._parser=new s(e,t),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(e){r.emit("error",e),r._parser.error=null},this._decoder=null,a.forEach(function(e){Object.defineProperty(r,"on"+e,{get:function(){return r._parser["on"+e]},set:function(t){if(!t)return r.removeAllListeners(e),r._parser["on"+e]=t,t;r.on(e,t)},enumerable:!0,configurable:!1})})}l.prototype=Object.create(i.prototype,{constructor:{value:l}}),l.prototype.write=function(e){if("function"==typeof p&&"function"==typeof p.isBuffer&&p.isBuffer(e)){if(!this._decoder){var t=e6().StringDecoder;this._decoder=new t("utf8")}e=this._decoder.write(e)}
vendor: 2,758 bytes, line 1
1return this._parser.write(e.toString()),this.emit("data",e),!0},l.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},l.prototype.on=function(e,t){var r=this;return r._parser["on"+e]||-1===a.indexOf(e)||(r._parser["on"+e]=function(){var t=1==arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),r.emit.apply(r,t)}),i.prototype.on.call(r,e,t)};var u="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/2000/xmlns/",h={xml:u,xmlns:c},d=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function w(e){return" "===e||"\n"===e||"\r"===e||"	"===e}function y(e){return'"'===e||"'"===e}function v(e,t){return e.test(t)}var b=0;for(var x in e.STATE={BEGIN:b++,BEGIN_WHITESPACE:b++,TEXT:b++,TEXT_ENTITY:b++,OPEN_WAKA:b++,SGML_DECL:b++,SGML_DECL_QUOTED:b++,DOCTYPE:b++,DOCTYPE_QUOTED:b++,DOCTYPE_DTD:b++,DOCTYPE_DTD_QUOTED:b++,COMMENT_STARTING:b++,COMMENT:b++,COMMENT_ENDING:b++,COMMENT_ENDED:b++,CDATA:b++,CDATA_ENDING:b++,CDATA_ENDING_2:b++,PROC_INST:b++,PROC_INST_BODY:b++,PROC_INST_ENDING:b++,OPEN_TAG:b++,OPEN_TAG_SLASH:b++,ATTRIB:b++,ATTRIB_NAME:b++,ATTRIB_NAME_SAW_WHITE:b++,ATTRIB_VALUE:b++,ATTRIB_VALUE_QUOTED:b++,ATTRIB_VALUE_CLOSED:b++,ATTRIB_VALUE_UNQUOTED:b++,ATTRIB_VALUE_ENTITY_Q:b++,ATTRIB_VALUE_ENTITY_U:b++,CLOSE_TAG:b++,CLOSE_TAG_SAW_WHITE:b++,SCRIPT:b++,SCRIPT_ENDING:b++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:1
174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(t){var r=e.ENTITIES[t],n="number"==typeof r?String.fromCharCode(r):r;e.ENTITIES[t]=n}),e.STATE)e.STATE[e.STATE[x]]=x;function _(e,t,r){e[t]&&e[t](r)}function E(e,t,r){e.textNode&&k(e),_(e,t,r)}function k(e){e.textNode=T(e.opt,e.textNode),e.textNode&&_(e,"ontext",e.textNode),e.textNode=""}function T(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function S(e,t){return k(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=Error(t),e.error=t,_(e,"onerror",t),e}function A(e){return e.sawRoot&&!e.closedRoot&&R(e,"Unclosed root tag"),e.state!==b.BEGIN&&e.state!==b.BEGIN_WHITESPACE&&e.state!==b.TEXT&&S(e,"Unexpected end"),k(e),e.c="",e.closed=!0,_(e,"onend"),s.call(e,e.strict,e.opt),e}function R(e,t){if("object"!=typeof e||!(e instanceof s))throw Error("bad call to strictFail");e.strict&&S(e,t)}function I(e,t){var r=0>e.indexOf(":")?["",e]:e.split(":"),n=r[0],i=r[1];return t&&"xmlns"===e&&(n="xmlns",i=""),{prefix:n,local:i}}function C(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=I(e.attribName,!0),r=t.prefix,n=t.local;if("xmlns"===r){if("xml"===n&&e.attribValue!==u)R(e,"xml: prefix must be bound to "+u+"\nActual: "+e.attribValue);else if("xmlns"===n&&e.attribValue!==c)R(e,"xmlns: prefix must be bound to "+c+"\nActual: "+e.attribValue);else{var i=e.tag,o=e.tags[e.tags.length-1]||e;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[n]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,E(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}function O(e,t){if(e.opt.xmlns){var r=e.tag,n=I(e.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(R(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),r.uri=n.prefix);var i=e.tags[e.tags.length-1]||e;r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach(function(t){E(e,"onopennamespace",{prefix:t,uri:r.ns[t]})});for(var o=0,s=e.attribList.length;o<s;o++){var a=e.attribList[o],l=a[0],u=a[1],c=I(l,!0),h=c.prefix,d=c.local,p=""===h?"":r.ns[h]||"",f={name:l,value:u,prefix:h,local:d,uri:p};h&&"xmlns"!==h&&!p&&(R(e,"Unbound namespace prefix: "+JSON.stringify(h)),f.uri=h),e.tag.attributes[l]=f,E(e,"onattribute",f)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),E(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=b.TEXT:e.state=b.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function N(e){if(!e.tagName){R(e,"Weird empty close tag."),e.textNode+="</>",e.state=b.TEXT;return}if(e.script){if("script"!==e.tagName){e.script+="</"+e.tagName+">",e.tagName="",e.state=b.SCRIPT;return}E(e,"onscript",e.script),e.script=""}var t=e.tags.length,r=e.tagName;e.strict||(r=r[e.looseCase]());for(var n=r;t--;)if(e.tags[t].name!==n)R(e,"Unexpected close tag");else break;if(t<0){R(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",e.state=b.TEXT;return}e.tagName=r;for(var i=e.tags.length;i-- >t;){var o=e.tag=e.tags.pop();e.tagName=e.tag.name,E(e,"onclosetag",e.tagName);var s={};for(var a in o.ns)s[a]=o.ns[a];var l=e.tags[e.tags.length-1]||e;
1e.opt.xmlns&&o.ns!==l.ns&&Object.keys(o.ns).forEach(function(t){var r=o.ns[t];E(e,"onclosenamespace",{prefix:t,uri:r})})}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=b.TEXT}function F(e,t){"<"===t?(e.state=b.OPEN_WAKA,e.startTagPosition=e.position):w(t)||(R(e,"Non-whitespace before first tag."),e.textNode=t,e.state=b.TEXT)}function P(e,t){var r="";return t<e.length&&(r=e.charAt(t)),r}b=e.STATE,String.fromCodePoint||(t=String.fromCharCode,r=Math.floor,n=function(){var e,n,i=[],o=-1,s=arguments.length;if(!s)return"";for(var a="";++o<s;){var l=Number(arguments[o]);if(!isFinite(l)||l<0||l>1114111||r(l)!==l)throw RangeError("Invalid code point: "+l);l<=65535?i.push(l):(l-=65536,e=(l>>10)+55296,n=l%1024+56320,i.push(e,n)),(o+1===s||i.length>16384)&&(a+=t.apply(null,i),i.length=0)}return a},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n)}(void 0===e?e.sax={}:e)}),tn=x((e,t)=>{t.exports={isArray:function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}}}),ti=x((e,t)=>{var r=tn().isArray;t.exports={copyOptions:function(e){var t,r={};for(t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r},ensureFlagExists:function(e,t){e in t&&"boolean"==typeof t[e]||(t[e]=!1)},ensureSpacesExists:function(e){"spaces"in e&&("number"==typeof e.spaces||"string"==typeof e.spaces)||(e.spaces=0)},ensureAlwaysArrayExists:function(e){"alwaysArray"in e&&("boolean"==typeof e.alwaysArray||r(e.alwaysArray))||(e.alwaysArray=!1)},ensureKeyExists:function(e,t){e+"Key"in t&&"string"==typeof t[e+"Key"]||(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}}),to=x((e,t)=>{var r,n,i=tr(),o=ti(),s=tn().isArray;function a(e){var t=Number(e);if(!isNaN(t))return t;var r=e.toLowerCase();return"true"===r||"false"!==r&&e}function l(e,t){var i;if(r.compact){if(!n[r[e+"Key"]]&&(s(r.alwaysArray)?-1!==r.alwaysArray.indexOf(r[e+"Key"]):r.alwaysArray)&&(n[r[e+"Key"]]=[]),n[r[e+"Key"]]&&!s(n[r[e+"Key"]])&&(n[r[e+"Key"]]=[n[r[e+"Key"]]]),e+"Fn"in r&&"string"==typeof t&&(t=r[e+"Fn"](t,n)),"instruction"===e&&("instructionFn"in r||"instructionNameFn"in r)){for(i in t)if(t.hasOwnProperty(i)){if("instructionFn"in r)t[i]=r.instructionFn(t[i],i,n);else{var o=t[i];delete t[i],t[r.instructionNameFn(i,o,n)]=o}}}s(n[r[e+"Key"]])?n[r[e+"Key"]].push(t):n[r[e+"Key"]]=t}else{n[r.elementsKey]||(n[r.elementsKey]=[]);var a={};if(a[r.typeKey]=e,"instruction"===e){for(i in t)if(t.hasOwnProperty(i))break;a[r.nameKey]="instructionNameFn"in r?r.instructionNameFn(i,t,n):i,r.instructionHasAttributes?(a[r.attributesKey]=t[i][r.attributesKey],"instructionFn"in r&&(a[r.attributesKey]=r.instructionFn(a[r.attributesKey],i,n))):("instructionFn"in r&&(t[i]=r.instructionFn(t[i],i,n)),a[r.instructionKey]=t[i])}else e+"Fn"in r&&(t=r[e+"Fn"](t,n)),a[r[e+"Key"]]=t;r.addParent&&(a[r.parentKey]=n),n[r.elementsKey].push(a)}}function u(e){if("attributesFn"in r&&e&&(e=r.attributesFn(e,n)),(r.trim||"attributeValueFn"in r||"attributeNameFn"in r||r.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(r.trim&&(e[t]=e[t].trim()),r.nativeTypeAttributes&&(e[t]=a(e[t])),"attributeValueFn"in r&&(e[t]=r.attributeValueFn(e[t],t,n)),"attributeNameFn"in r)){var i=e[t];delete e[t],e[r.attributeNameFn(t,e[t],n)]=i}}return e}function c(e){var t={};if(e.body&&("xml"===e.name.toLowerCase()||r.instructionHasAttributes)){for(var i,o=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(i=o.exec(e.body));)t[i[1]]=i[2]||i[3]||i[4];t=u(t)}if("xml"===e.name.toLowerCase()){if(r.ignoreDeclaration)return;n[r.declarationKey]={},Object.keys(t).length&&(n[r.declarationKey][r.attributesKey]=t),r.addParent&&(n[r.declarationKey][r.parentKey]=n)}else{if(r.ignoreInstruction)return;r.trim&&(e.body=e.body.trim());var s={};r.instructionHasAttributes&&Object.keys(t).length?(s[e.name]={},s[e.name][r.attributesKey]=t):s[e.name]=e.body,l("instruction",s)}}function h(e,t){var i,o;if("object"==typeof e&&(t=e.attributes,e=e.name),t=u(t),"elementNameFn"in r&&(e=r.elementNameFn(e,n)),r.compact){if(i={},!r.ignoreAttributes&&t&&Object.keys(t).length)for(o in i[r.attributesKey]={},t)t.hasOwnProperty(o)&&(i[r.attributesKey][o]=t[o]);e in n||(s(r.alwaysArray)?-1===r.alwaysArray.indexOf(e):!r.alwaysArray)||(n[e]=[]),n[e]&&!s(n[e])&&(n[e]=[n[e]]),s(n[e])?n[e].push(i):n[e]=i}else n[r.elementsKey]||(n[r.elementsKey]=[]),(i={})[r.typeKey]="element",i[r.nameKey]=e,!r.ignoreAttributes&&t&&Object.keys(t).length&&(i[r.attributesKey]=t),r.alwaysChildren&&(i[r.elementsKey]=[]),n[r.elementsKey].push(i);i[r.parentKey]=n,n=i}function d(e){!r.ignoreText&&(e.trim()||r.captureSpacesBetweenElements)&&(r.trim&&(e=e.trim()),r.nativeType&&(e=a(e)),r.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),l("text",e))}function p(e){r.ignoreComment||(r.trim&&(e=e.trim()),l("comment",e))}function f(e){var t=n[r.parentKey];r.addParent||delete n[r.parentKey],n=t}function m(e){r.ignoreCdata||(r.trim&&(e=e.trim()),l("cdata",e))}function g(e){r.ignoreDoctype||(e=e.replace(/^ /,""),r.trim&&(e=e.trim()),l("doctype",e))}function w(e){e.note=e}t.exports=function(e,t){var s=i.parser(!0,{}),a={};if(n=a,r=o.copyOptions(t),o.ensureFlagExists("ignoreDeclaration",r),o.ensureFlagExists("ignoreInstruction",r),o.ensureFlagExists("ignoreAttributes",r),o.ensureFlagExists("ignoreText",r),o.ensureFlagExists("ignoreComment",r),o.ensureFlagExists("ignoreCdata",r),o.ensureFlagExists("ignoreDoctype",r),o.ensureFlagExists("compact",r),o.ensureFlagExists("alwaysChildren",r),o.ensureFlagExists("addParent",r),o.ensureFlagExists("trim",r),o.ensureFlagExists("nativeType",r),o.ensureFlagExists("nativeTypeAttributes",r),o.ensureFlagExists("sanitize",r),o.ensureFlagExists("instructionHasAttributes",r),o.ensureFlagExists("captureSpacesBetweenElements",r),o.ensureAlwaysArrayExists(r),o.ensureKeyExists("declaration",r),o.ensureKeyExists("instruction",r),o.ensureKeyExists("attributes",r),o.ensureKeyExists("text",r),o.ensureKeyExists("comment",r),o.ensureKeyExists("cdata",r),o.ensureKeyExists("doctype",r),o.ensureKeyExists("type",r),o.ensureKeyExists("name",r),o.ensureKeyExists("elements",r),o.ensureKeyExists("parent",r),o.checkFnExists("doctype",r),o.checkFnExists("instruction",r),o.checkFnExists("cdata",r),o.checkFnExists("comment",r),o.checkFnExists("text",r),o.checkFnExists("instructionName",r),o.checkFnExists("elementName",r),o.checkFnExists("attributeName",r),o.checkFnExists("attributeValue",r),o.checkFnExists("attributes",r),s.opt={strictEntities:!0},s.onopentag=h,s.ontext=d,s.oncomment=p,s.onclosetag=f,s.onerror=w,s.oncdata=m,s.ondoctype=g,s.onprocessinginstruction=c,s.write(e).close(),a[r.elementsKey]){var l=a[r.elementsKey];delete a[r.elementsKey],a[r.elementsKey]=l,delete a.text}return a}}),ts=x((e,t)=>{var r=ti(),n=to();t.exports=function(e,t){var i,o=(i=r.copyOptions(t),r.ensureSpace
1sExists(i),i),s=n(e,o),a="compact"in o&&o.compact?"_parent":"parent";return("addParent"in o&&o.addParent?JSON.stringify(s,function(e,t){return e===a?"_":t},o.spaces):JSON.stringify(s,null,o.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}}),ta=x((e,t)=>{var r,n,i=ti(),o=tn().isArray;function s(e,t,r){return(!r&&e.spaces?"\n":"")+Array(t+1).join(e.spaces)}function a(e,t,i){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,n,r));var o,a,l,u,c=[];for(o in e)e.hasOwnProperty(o)&&null!==e[o]&&void 0!==e[o]&&(u=t.noQuotesForNativeAttributes&&"string"!=typeof e[o]?"":'"',a=(a=""+e[o]).replace(/"/g,"&quot;"),l="attributeNameFn"in t?t.attributeNameFn(o,a,n,r):o,c.push(t.spaces&&t.indentAttributes?s(t,i+1,!1):" "),c.push(l+"="+u+("attributeValueFn"in t?t.attributeValueFn(a,o,n,r):a)+u));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&c.push(s(t,i,!1)),c.join("")}function l(e,t,i){return r=e,n="xml",t.ignoreDeclaration?"":"<?xml"+a(e[t.attributesKey],t,i)+"?>"}function u(e,t,i){if(t.ignoreInstruction)return"";for(o in e)if(e.hasOwnProperty(o))break;var o,s="instructionNameFn"in t?t.instructionNameFn(o,e[o],n,r):o;if("object"==typeof e[o])return r=e,n=s,"<?"+s+a(e[o][t.attributesKey],t,i)+"?>";var l=e[o]?e[o]:"";return"instructionFn"in t&&(l=t.instructionFn(l,o,n,r)),"<?"+s+(l?" "+l:"")+"?>"}function c(e,t){return t.ignoreComment?"":"\x3c!--"+("commentFn"in t?t.commentFn(e,n,r):e)+"--\x3e"}function h(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,n,r):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function d(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,n,r):e)+">"}function p(e,t){return t.ignoreText?"":(e=(e=(e=""+e).replace(/&amp;/g,"&")).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,n,r):e)}function f(e,t,r){var n;for(n in e)if(e.hasOwnProperty(n))switch(n){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||r)return!0;break;case t.cdataKey:if(t.indentCdata||r)return!0;break;case t.instructionKey:if(t.indentInstruction||r)return!0;break;case t.doctypeKey:case t.commentKey:default:return!0}return!1}t.exports=function(e,t){m=t,g=i.copyOptions(m),i.ensureFlagExists("ignoreDeclaration",g),i.ensureFlagExists("ignoreInstruction",g),i.ensureFlagExists("ignoreAttributes",g),i.ensureFlagExists("ignoreText",g),i.ensureFlagExists("ignoreComment",g),i.ensureFlagExists("ignoreCdata",g),i.ensureFlagExists("ignoreDoctype",g),i.ensureFlagExists("compact",g),i.ensureFlagExists("indentText",g),i.ensureFlagExists("indentCdata",g),i.ensureFlagExists("indentAttributes",g),i.ensureFlagExists("indentInstruction",g),i.ensureFlagExists("fullTagEmptyElement",g),i.ensureFlagExists("noQuotesForNativeAttributes",g),i.ensureSpacesExists(g),"number"==typeof g.spaces&&(g.spaces=Array(g.spaces+1).join(" ")),i.ensureKeyExists("declaration",g),i.ensureKeyExists("instruction",g),i.ensureKeyExists("attributes",g),i.ensureKeyExists("text",g),i.ensureKeyExists("comment",g),i.ensureKeyExists("cdata",g),i.ensureKeyExists("doctype",g),i.ensureKeyExists("type",g),i.ensureKeyExists("name",g),i.ensureKeyExists("elements",g),i.checkFnExists("doctype",g),i.checkFnExists("instruction",g),i.checkFnExists("cdata",g),i.checkFnExists("comment",g),i.checkFnExists("text",g),i.checkFnExists("instructionName",g),i.checkFnExists("elementName",g),i.checkFnExists("attributeName",g),i.checkFnExists("attributeValue",g),i.checkFnExists("attributes",g),i.checkFnExists("fullTagEmptyElement",g),t=g;var m,g,w=[];return r=e,n="_root_",t.compact?w.push(function e(t,i,m,g){var w,y,v,b=[];for(y in t)if(t.hasOwnProperty(y))for(w=0,v=o(t[y])?t[y]:[t[y]];w<v.length;++w){switch(y){case i.declarationKey:b.push(l(v[w],i,m));break;case i.instructionKey:b.push((i.indentInstruction?s(i,m,g):"")+u(v[w],i,m));break;case i.attributesKey:case i.parentKey:break;case i.textKey:b.push((i.indentText?s(i,m,g):"")+p(v[w],i));break;case i.cdataKey:b.push((i.indentCdata?s(i,m,g):"")+h(v[w],i));break;case i.doctypeKey:b.push(s(i,m,g)+d(v[w],i));break;case i.commentKey:b.push(s(i,m,g)+c(v[w],i));break;default:b.push(s(i,m,g)+function(t,i,o,l,u){r=t,n=i;var c="elementNameFn"in o?o.elementNameFn(i,t):i;if(null==t||""===t)return"fullTagEmptyElementFn"in o&&o.fullTagEmptyElementFn(i,t)||o.fullTagEmptyElement?"<"+c+"></"+c+">":"<"+c+"/>";var h=[];if(i){if(h.push("<"+c),"object"!=typeof t)return h.push(">"+p(t,o)+"</"+c+">"),h.join("");t[o.attributesKey]&&h.push(a(t[o.attributesKey],o,l));var d=f(t,o,!0)||t[o.attributesKey]&&"preserve"===t[o.attributesKey]["xml:space"];if(d||(d="fullTagEmptyElementFn"in o?o.fullTagEmptyElementFn(i,t):o.fullTagEmptyElement),!d)return h.push("/>"),h.join("");h.push(">")}return h.push(e(t,o,l+1,!1)),r=t,n=i,i&&h.push((u?s(o,l,!1):"")+"</"+c+">"),h.join("")}(v[w],y,i,m,f(v[w],i)))}g=g&&!b.length}return b.join("")}(e,t,0,!0)):(e[t.declarationKey]&&w.push(l(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&w.push(function e(t,i,o,l){return t.reduce(function(t,f){var m,g,w,y=s(i,o,l&&!t);switch(f.type){case"element":return t+y+(r=f,n=f.name,m=[],g="elementNameFn"in i?i.elementNameFn(f.name,f):f.name,m.push("<"+g),f[i.attributesKey]&&m.push(a(f[i.attributesKey],i,o)),(w=f[i.elementsKey]&&f[i.elementsKey].length||f[i.attributesKey]&&"preserve"===f[i.attributesKey]["xml:space"])||(w="fullTagEmptyElementFn"in i?i.fullTagEmptyElementFn(f.name,f):i.fullTagEmptyElement),w?(m.push(">"),f[i.elementsKey]&&f[i.elementsKey].length&&(m.push(e(f[i.elementsKey],i,o+1)),r=f,n=f.name),m.push(i.spaces&&function(e,t){var r;if(e.elements&&e.elements.length)for(r=0;r<e.elements.length;++r)switch(e.elements[r][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;default:return!0}return!1}(f,i)?"\n"+Array(o+1).join(i.spaces):""),m.push("</"+g+">")):m.push("/>"),m.join(""));case"comment":return t+y+c(f[i.commentKey],i);case"doctype":return t+y+d(f[i.doctypeKey],i);case"cdata":return t+(i.indentCdata?y:"")+h(f[i.cdataKey],i);case"text":return t+(i.indentText?y:"")+p(f[i.textKey],i);case"instruction":var v={};return v[f[i.nameKey]]=f[i.attributesKey]?f:f[i.instructionKey],t+(i.indentInstruction?y:"")+u(v,i,o)}},"")}(e[t.elementsKey],t,0,!w.length))),w.join("")}}),tl=x((e,t)=>{var r=ta();t.exports=function(e,t){e instanceof p&&(e=e.toString());var n=null;if("string"==typeof e)try{n=JSON.parse(e)}
1catch(e){throw Error("The JSON structure is invalid")}else n=e;return r(n,t)}}),tu=x((e,t)=>{t.exports={xml2js:to(),xml2json:ts(),js2xml:ta(),json2xml:tl()}})(),tc=e=>{switch(e.type){case void 0:case"element":let t=new td(e.name,e.attributes);for(let r of e.elements||[]){let e=tc(r);void 0!==e&&t.push(e)}return t;case"text":return e.text;default:return}},th=class extends F{},td=class extends I{static fromXmlString(e){return tc((0,tu.xml2js)(e,{compact:!1}))}constructor(e,t){super(e),t&&this.root.push(new th(t))}push(e){this.root.push(e)}},tp=class extends I{constructor(e){super(""),S(this,"_attr",void 0),this._attr=e}prepForXml(e){return{_attr:this._attr}}},tf=class extends I{constructor(e,t){super(e),t&&(this.root=t.root)}},tm=e=>{if(isNaN(e))throw Error(`Invalid value '${e}' specified. Must be an integer.`);return Math.floor(e)},tg=e=>{let t=tm(e);if(t<0)throw Error(`Invalid value '${e}' specified. Must be a positive integer.`);return t},tw=(e,t)=>{let r=2*t;if(e.length!==r||isNaN(Number(`0x${e}`)))throw Error(`Invalid hex value '${e}'. Expected ${r} digit hex value`);return e},ty=e=>tw(e,2),tv=e=>tw(e,1),tb=e=>{let t=e.slice(-2),r=e.substring(0,e.length-2);return`${Number(r)}${t}`},tx={in:1440,cm:1440/2.54,mm:1440/25.4,pt:20,pc:240,pi:240},t_=e=>{if("number"==typeof e)return e;let t=e.slice(-2),r=Number(e.substring(0,e.length-2)),n=tx[t];if(void 0===n||Number.isNaN(r))throw Error(`Invalid universal measure '${e}'. Expected a number followed by mm, cm, in, pt, pc or pi.`);return r*n},tE=e=>{let t=tb(e);if(0>parseFloat(t))throw Error(`Invalid value '${t}' specified. Expected a positive number.`);return t},tk=e=>"auto"===e?e:tw("#"===e.charAt(0)?e.substring(1):e,3),tT=e=>"string"==typeof e?tb(e):tm(e),tS=e=>"string"==typeof e?tE(e):tg(e),tA=e=>"string"==typeof e?tE(e):tg(e),tR=e=>{let t=e.substring(0,e.length-1);return`${Number(t)}%`},tI=e=>"number"==typeof e?tm(e):"%"===e.slice(-1)?tR(e):tb(e),tC=e=>e.toISOString(),tO=class extends I{constructor(e,t=!0){super(e),!0!==t&&this.root.push(new D({val:t}))}},tN=class extends I{constructor(e,t){super(e),this.root.push(new D({val:tS(t)}))}},tF=class extends I{},tP=class extends I{constructor(e,t){super(e),this.root.push(new D({val:t}))}},tD=(e,t)=>new tM({name:e,attributes:{value:{key:"w:val",value:t}}}),tL=class extends I{constructor(e,t){super(e),this.root.push(new D({val:t}))}},tB=class extends I{constructor(e,t){super(e),this.root.push(t)}},tM=class extends I{constructor({name:e,attributes:t,children:r}){super(e),t&&this.root.push(new P(t)),r&&this.root.push(...r)}},tj={START:"start",CENTER:"center",END:"end",LEFT:"left",RIGHT:"right"},tU=e=>new tM({name:"w:jc",attributes:{val:{key:"w:val",value:e}}}),tz={dark1:"dk1",light1:"lt1",dark2:"dk2",light2:"lt2",accent1:"accent1",accent2:"accent2",accent3:"accent3",accent4:"accent4",accent5:"accent5",accent6:"accent6",hyperlink:"hlink",followedHyperlink:"folHlink"},tW={dark2:"44546A",light2:"E7E6E6",accent1:"4472C4",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"5B9BD5",accent6:"70AD47",hyperlink:"0563C1",followedHyperlink:"954F72"},tH={dark1:{value:"windowText",lastColor:"000000"},light1:{value:"window",lastColor:"FFFFFF"}},tK=(e,t)=>{if("auto"===t)throw Error(`Invalid theme color ${e} 'auto'. Expected 6 digit hex value`);return tk(t)},tG=(e={})=>Object.fromEntries(Object.keys(tz).map(t=>{let r=e[t],n="dark1"===t||"light1"===t?tH[t].lastColor:tW[t];return[t,void 0===r?n:tK(t,r)]})),tV=(e,t)=>new tM({name:"a:srgbClr",attributes:{value:{key:"val",value:tK(e,t)}}}),t$=(e,t)=>{let r=t[e],n="dark1"===e||"light1"===e?tH[e]:void 0;return new tM({name:`a:${tz[e]}`,children:[void 0===r&&n?new tM({name:"a:sysClr",attributes:{value:{key:"val",value:n.value},lastColor:{key:"lastClr",value:n.lastColor}}}):tV(e,null!=r?r:tW[e])]})},tq=(e,t={})=>new tM({name:"a:clrScheme",attributes:{name:{key:"name",value:e}},children:Object.keys(tz).map(e=>t$(e,t))}),tZ=new Set(["dark1","light1","dark2","light2","accent1","accent2","accent3","accent4","accent5","accent6","hyperlink","followedHyperlink"]),tX=new Map([["dk1","dark1"],["lt1","light1"],["dk2","dark2"],["lt2","light2"],["hlink","hyperlink"],["folHlink","followedHyperlink"],["text1","dark1"],["background1","light1"],["text2","dark2"],["background2","light2"]]),tY=(e,t)=>
1{if(!(e>=0&&e<=100))throw Error(`Invalid ${t} ${e}. Expected a number from 0 to 100`);return Math.round(255*(1-e/100))},tJ=({theme:e,lighter:t,darker:r})=>{if(!tZ.has(e)){let t=tX.get(e);throw Error(`Invalid theme color "${e}". ${t?`Did you mean "${t}"?`:`Expected one of ${[...tZ].join(", ")}`}`)}if(void 0!==t&&void 0!==r)throw Error("Invalid theme color. Expected lighter or darker, not both");let n=void 0===t?void 0:tY(t,"lighter"),i=void 0===r?void 0:tY(r,"darker");return{tint:255===n?void 0:n,shade:255===i?void 0:i}},tQ=e=>{let[t,r,n]=[0,2,4].map(t=>parseInt(e.slice(t,t+2),16)/255),i=Math.max(t,r,n),o=Math.min(t,r,n),s=(i+o)/2,a=i-o;return 0===a?{hue:0,saturation:0,lightness:s}:{hue:(i===t?((r-n)/a+6)%6:i===r?(n-t)/a+2:(t-r)/a+4)*60,saturation:a/(1-Math.abs(2*s-1)),lightness:s}},t0=({hue:e,saturation:t,lightness:r})=>{let n=(1-Math.abs(2*r-1))*t,i=n*(1-Math.abs(e/60%2-1)),[o,s,a]=e<60?[n,i,0]:e<120?[i,n,0]:e<180?[0,n,i]:e<240?[0,i,n]:e<300?[i,0,n]:[n,0,i],l=r-n/2;return[o,s,a].map(e=>Math.floor((e+l)*255+1e-9).toString(16).padStart(2,"0")).join("").toUpperCase()},t1=(e,{tint:t,shade:r})=>{if(void 0===t&&void 0===r)return e;let n=tQ(e),i=void 0===t?n.lightness*r/255:n.lightness*t/255+(1-t/255);return t0(N(N({},n),{},{lightness:i}))},t2=e=>void 0===e?void 0:e.toString(16).padStart(2,"0").toUpperCase(),t6=e=>"string"==typeof e?{type:"hex",value:tk(e)}:{type:"theme",color:e,change:tJ(e)},t5=(e,t)=>"hex"===e.type?{color:e.value}:{color:t1(t[e.color.theme],e.change),theme:e.color.theme,tint:t2(e.change.tint),shade:t2(e.change.shade)},t3=tG(),t8=class extends A{constructor(e){super("_attr"),S(this,"attributes",void 0),this.attributes=e.map(e=>"keys"in e?{keys:e.keys,color:void 0===e.color?void 0:t6(e.color)}:e)}prepForXml(e){var t,r;let n=null!==(t=null===(r=e.file)||void 0===r||null===(r=r.Theme)||void 0===r?void 0:r.Colors)&&void 0!==t?t:t3;return{_attr:Object.fromEntries(this.attributes.flatMap(e=>{if(!("keys"in e))return[[e.key,e.value]];if(void 0===e.color)return[];let{keys:t}=e,r=t5(e.color,n);return[[t.color,r.color],[t.theme,r.theme],[t.tint,r.tint],[t.shade,r.shade]]}).filter(([,e])=>void 0!==e))}}},t4=class extends I{constructor(e,t){super(e),this.root.push(new t8(t))}},t9=(e,t)=>
1new t4(e,t),t7={color:"w:color",theme:"w:themeColor",tint:"w:themeTint",shade:"w:themeShade"},re=(e,{color:t,size:r,space:n,style:i})=>t9(e,[{key:"w:val",value:i},{keys:t7,color:t},{key:"w:sz",value:void 0===r?void 0:tg(r)},{key:"w:space",value:void 0===n?void 0:tg(n)}]),rt={SINGLE:"single",NONE:"none"},rr=class extends C{constructor(e){super("w:pBdr"),e.top&&this.root.push(re("w:top",e.top)),e.left&&this.root.push(re("w:left",e.left)),e.bottom&&this.root.push(re("w:bottom",e.bottom)),e.right&&this.root.push(re("w:right",e.right)),e.between&&this.root.push(re("w:between",e.between))}},rn=class extends I{constructor(){super("w:pBdr");let e=re("w:bottom",{color:"auto",space:1,style:rt.SINGLE,size:6});this.root.push(e)}},ri=({start:e,end:t,left:r,right:n,hanging:i,firstLine:o,firstLineChars:s})=>new tM({name:"w:ind",attributes:{start:{key:"w:start",value:void 0===e?void 0:tT(e)},end:{key:"w:end",value:void 0===t?void 0:tT(t)},left:{key:"w:left",value:void 0===r?void 0:tT(r)},right:{key:"w:right",value:void 0===n?void 0:tT(n)},hanging:{key:"w:hanging",value:void 0===i?void 0:tA(i)},firstLine:{key:"w:firstLine",value:void 0===o?void 0:tA(o)},firstLineChars:{key:"w:firstLineChars",value:void 0===s?void 0:tm(s)}}}),ro=()=>new tM({name:"w:br"}),rs={BEGIN:"begin",END:"end",SEPARATE:"separate"},ra=(e,t)=>new tM({name:"w:fldChar",attributes:{type:{key:"w:fldCharType",value:e},dirty:{key:"w:dirty",value:t}}}),rl=e=>ra(rs.BEGIN,e),ru=e=>ra(rs.SEPARATE,e),rc=e=>ra(rs.END,e),rh={DEFAULT:"default",PRESERVE:"preserve"},rd=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{space:"xml:space"})}},rp=class extends I{constructor(){super("w:instrText"),this.root.push(new rd({space:rh.PRESERVE})),this.root.push("PAGE")}},rf=class extends I{constructor(){super("w:instrText"),this.root.push(new rd({space:rh.PRESERVE})),this.root.push("NUMPAGES")}},rm=class extends I{constructor(){super("w:instrText"),this.root.push(new rd({space:rh.PRESERVE})),this.root.push("SECTIONPAGES")}},rg=class extends I{constructor(){super("w:instrText"),this.root.push(new rd({space:rh.PRESERVE})),this.root.push("SECTION")}},rw=({fill:e,color:t,type:r})=>t9("w:shd",[{keys:{color:"w:fill",theme:"w:themeFill",tint:"w:themeFillTint",shade:"w:themeFillShade"},color:e},{keys:t7,color:t},{key:"w:val",value:null!=r?r:ry.CLEAR}]),ry={CLEAR:"clear"},rv=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}},rb=class extends I{constructor(e){super("w:del"),this.root.push(new rv({id:e.id,author:e.author,date:e.date}))}},rx=class extends I{constructor(e){super("w:ins"),this.root.push(new rv({id:e.id,author:e.author,date:e.date}))}},r_={DOT:"dot"},rE=(e=r_.DOT)=>new tM({name:"w:em",attributes:{val:{key:"w:val",value:e}}}),rk=class extends I{constructor(e){super("w:spacing"),this.root.push(new D({val:tT(e)}))}},rT=class extends I{constructor(e){super("w:color"),this.root.push(new t8([{keys:N(N({},t7),{},{color:"w:val"}),color:e}]))}},rS=class extends I{constructor(e){super("w:highlight"),this.root.push(new D({val:e}))}},rA=e=>new tM({name:"w:lang",attributes:{value:{key:"w:val",value:e.value},eastAsia:{key:"w:eastAsia",value:e.eastAsia},bidirectional:{key:"w:bidi",value:e.bidirectional}}}),rR=(e,t)=>{if("string"==typeof e)return new tM({name:"w:rFonts",attributes:{ascii:{key:"w:ascii",value:e},cs:{key:"w:cs",value:e},eastAsia:{key:"w:eastAsia",value:e},hAnsi:{key:"w:hAnsi",value:e},hint:{key:"w:hint",value:t}}});if("theme"in e){let t="headings"===e.theme?"major":"minor";return new tM({name:"w:rFonts",attributes:{ascii:{key:"w:asciiTheme",value:`${t}HAnsi`},eastAsia:{key:"w:eastAsiaTheme",value:`${t}EastAsia`},hAnsi:{key:"w:hAnsiTheme",value:`${t}HAnsi`},cs:{key:"w:cstheme",value:`${t}Bidi`}}})}return new tM({name:"w:rFonts",attributes:{ascii:{key:"w:ascii",value:e.ascii},cs:{key:"w:cs",value:e.cs},eastAsia:{key:"w:eastAsia",value:e.eastAsia},hAnsi:{key:"w:hAnsi",value:e.hAnsi},hint:{key:"w:hint",value:e.hint}}})},rI=e=>new tM({name:"w:vertAlign",attributes:{val:{key:"w:val",value:e}}}),rC=()=>rI("superscript"),rO=()=>rI("subscript"),rN={SINGLE:"single"},rF=(e=rN.SINGLE,t)=>t9("w:u",[{key:"w:val",value:e},{keys:t7,color:t}]),rP=class extends C{constructor(e){var t,r;if(super("w:rPr"),!e)return;e.style&&this.push(new tP("w:rStyle",e.style)),e.font&&("string"==typeof e.font?this.push(rR(e.font)):"name"in e.font?this.push(rR(e.font.name,e.font.hint)):this.push(rR(e.font))),void 0!==e.bold&&this.push(new tO("w:b",e.bold)),(void 0===e.boldComplexScript&&void 0!==e.bold||e.boldComplexScript)&&this.push(new tO("w:bCs",null!==(t=e.boldComplexScript)&&void 0!==t?t:e.bold)),void 0!==e.italics&&this.push(new tO("w:i",e.italics)),(void 0===e.italicsComplexScript&&void 0!==e.italics||e.italicsComplexScript)&&this.push(new tO("w:iCs",null!==(r=e.italicsComplexScript)&&void 0!==r?r:e.italics)),void 0!==e.smallCaps?this.push(new tO("w:smallCaps",e.smallCaps)):void 0!==e.allCaps&&this.push(new tO("w:caps",e.allCaps)),void 0!==e.strike&&this.push(new tO("w:strike",e.strike)),void 0!==e.doubleStrike&&this.push(new tO("w:dstrike",e.doubleStrike)),void 0!==e.emboss&&this.push(new tO("w:emboss",e.emboss)),void 0!==e.imprint&&this.push(new tO("w:imprint",e.imprint)),void 0!==e.noProof&&this.push(new tO("w:noProof",e.noProof)),void 0!==e.snapToGri
1d&&this.push(new tO("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new tO("w:vanish",e.vanish)),e.color&&this.push(new rT(e.color)),e.characterSpacing&&this.push(new rk(e.characterSpacing)),void 0!==e.scale&&this.push(new tL("w:w",e.scale)),e.kern&&this.push(new tN("w:kern",e.kern)),e.position&&this.push(new tP("w:position",e.position)),void 0!==e.size&&this.push(new tN("w:sz",e.size));let n=void 0===e.sizeComplexScript||!0===e.sizeComplexScript?e.size:e.sizeComplexScript;n&&this.push(new tN("w:szCs",n)),e.highlight&&this.push(new rS(e.highlight)),e.underline&&this.push(rF(e.underline.type,e.underline.color)),e.effect&&this.push(new tP("w:effect",e.effect)),e.border&&this.push(re("w:bdr",e.border)),e.shading&&this.push(rw(e.shading)),e.subScript&&this.push(rO()),e.superScript&&this.push(rC()),void 0!==e.rightToLeft&&this.push(new tO("w:rtl",e.rightToLeft)),e.emphasisMark&&this.push(rE(e.emphasisMark.type)),e.language&&this.push(rA(e.language)),e.specVanish&&this.push(new tO("w:specVanish",e.vanish)),e.math&&this.push(new tO("w:oMath",e.math)),e.revision&&this.push(new rL(e.revision))}push(e){this.root.push(e)}},rD=class extends rP{constructor(e){super(e),(null==e?void 0:e.insertion)&&this.push(new rx(e.insertion)),(null==e?void 0:e.deletion)&&this.push(new rb(e.deletion))}},rL=class extends I{constructor(e){super("w:rPrChange"),this.root.push(new rv({id:e.id,author:e.author,date:e.date})),this.addChildElement(new rP(e))}},rB=class extends I{constructor(e){if(super("w:t"),"string"==typeof e)this.root.push(new rd({space:rh.PRESERVE})),this.root.push(e);else{var t;this.root.push(new rd({space:null!==(t=e.space)&&void 0!==t?t:rh.DEFAULT})),this.root.push(e.text)}}},rM={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"},rj=class e extends I{constructor(t){if(super("w:r"),S(this,"properties",void 0),S(this,"following",[]),this.properties=new rP(t),this.root.push(this.properties),t.break)for(let e=0;e<t.break;e++)this.root.push(ro());if(t.children)for(let[r,n]of t.children.entries()){if(n instanceof e){let i=t.children.slice(r+1);this.following=[n,...i.length>0?[new e(N(N({},t),{},{break:void 0,children:i}))]:[]];break}if("string"==typeof n){switch(n){case rM.CURRENT:this.root.push(rl()),this.root.push(new rp),this.root.push(ru()),this.root.push(rc());break;case rM.TOTAL_PAGES:this.root.push(rl()),this.root.push(new rf),this.root.push(ru()),this.root.push(rc());break;case rM.TOTAL_PAGES_IN_SECTION:this.root.push(rl()),this.root.push(new rm),this.root.push(ru()),this.root.push(rc());break;case rM.CURRENT_SECTION:this.root.push(rl()),this.root.push(new rg),this.root.push(ru()),this.root.push(rc());break;default:this.root.push(new rB(n))}continue}this.root.push(n)}else void 0!==t.text&&this.root.push(new rB(t.text))}get writtenAs(){return this.following.length>0?[this,...this.following.flatMap(e=>{var t;return null!==(t=e.writtenAs)&&void 0!==t?t:e})]:void 0}},rU=class extends rj{constructor(e){super("string"==typeof e?{text:e}:e)}},rz=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{char:"w:char",symbolfont:"w:font"})}},rW=x((e,t)=>{function r(e,t){if(!e)throw Error(t||"Assertion failed")}t.exports=r,r.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}}),rH=x(e=>{var t=rW();function r(e){return(e>>>24|e>>>8&65280|e<<8&0xff0000|(255&e)<<24)>>>0}function n(e){return 1===e.length?"0"+e:e}function i(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;if(2===e.length)return"000000"+e;if(1===e.length)return"0000000"+e;else return e}e.inherits=B(),e.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e){if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var o,s,a=e.charCodeAt(i);a<128?r[n++]=a:(a<2048?r[n++]=a>>6|192:((o=e,s=i,(64512&o.charCodeAt(s))!=55296||s<0||s+1>=o.length?1:(64512&o.charCodeAt(s+1))!=56320)?r[n++]=a>>12|224:(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128),r[n++]=a>>6&63|128),r[n++]=63&a|128)}}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},e.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t},e.htonl=r,e.toHex32=function(e,t){for(var n="",o=0;o<e.length;o++){var s=e[o];"little"===t&&(s=r(s)),n+=i(s.toString(16))}return n},e.zero2=n,e.zero8=i,e.join32=function(e,r,n,i){var o,s=n-r;t(s%4==0);for(var a=Array(s/4),l=0,u=r;l<a.length;l++,u+=4)o="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],a[l]=o>>>0;return a},e.split32=function(e,t){for(var r=Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},e.rotr32=function(e,t){return e>>>t|e<<32-t},e.rotl32=function(e,t){return e<<t|e>>>32-t},e.sum32=function(e,t){return e+t>>>0},e.sum32_3=function(e,t,r){return e+t+r>>>0},e.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},e.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},e.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0;e[t]=(o<n?1:0)+r+i>>>
10,e[t+1]=o},e.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},e.sum64_lo=function(e,t,r,n){return t+n>>>0},e.sum64_4_hi=function(e,t,r,n,i,o,s,a){var l,u=t;return e+r+i+s+(0+((u=u+n>>>0)<t?1:0)+((u=u+o>>>0)<o?1:0)+((u=u+a>>>0)<a?1:0))>>>0},e.sum64_4_lo=function(e,t,r,n,i,o,s,a){return t+n+o+a>>>0},e.sum64_5_hi=function(e,t,r,n,i,o,s,a,l,u){var c,h=t;return e+r+i+s+l+(0+((h=h+n>>>0)<t?1:0)+((h=h+o>>>0)<o?1:0)+((h=h+a>>>0)<a?1:0)+((h=h+u>>>0)<u?1:0))>>>0},e.sum64_5_lo=function(e,t,r,n,i,o,s,a,l,u){return t+n+o+a+u>>>0},e.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},e.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},e.shr64_hi=function(e,t,r){return e>>>r},e.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}}),rK=x(e=>{var t=rH(),r=rW();function n(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=n,n.prototype.update=function(e,r){if(e=t.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=t.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},n.prototype.digest=function(e){return this.update(this._pad()),r(null===this.pending),this._digest(e)},n.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(o=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;o<this.padLength;o++)n[i++]=0;return n}}),rG=x(e=>{var t=rH().rotr32;function r(e,t,r){return e&t^e&r^t&r}e.ft_1=function(e,t,n,i){return 0===e?t&n^~t&i:1===e||3===e?t^n^i:2===e?r(t,n,i):void 0},e.ch32=function(e,t,r){return e&t^~e&r},e.maj32=r,e.p32=function(e,t,r){return e^t^r},e.s0_256=function(e){return t(e,2)^t(e,13)^t(e,22)},e.s1_256=function(e){return t(e,6)^t(e,11)^t(e,25)},e.g0_256=function(e){return t(e,7)^t(e,18)^e>>>3},e.g1_256=function(e){return t(e,17)^t(e,19)^e>>>10}}),rV=x((e,t)=>{var r=rH(),n=rK(),i=rG(),o=r.rotl32,s=r.sum32,a=r.sum32_5,l=i.ft_1,u=n.BlockHash,c=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.W=Array(80)}r.inherits(h,u),t.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=o(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],u=this.h[1],h=this.h[2],d=this.h[3],p=this.h[4];for(n=0;n<r.length;n++){var f=~~(n/20),m=a(o(i,5),l(f,u,h,d),p,r[n],c[f]);p=d,d=h,h=o(u,30),u=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],u),this.h[2]=s(this.h[2],h),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],p)},h.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}}),r$=x((e,t)=>{var r=rH(),n=rK(),i=rG(),o=rW(),s=r.sum32,a=r.sum32_4,l=r.sum32_5,u=i.ch32,c=i.maj32,h=i.s0_256,d=i.s1_256,p=i.g0_256,f=i.g1_256,m=n.BlockHash,g=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function w(){if(!(this instanceof w))return new w;
1m.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=g,this.W=Array(64)}r.inherits(w,m),t.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(f(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],m=this.h[1],g=this.h[2],w=this.h[3],y=this.h[4],v=this.h[5],b=this.h[6],x=this.h[7];for(o(this.k.length===r.length),n=0;n<r.length;n++){var _=l(x,d(y),u(y,v,b),this.k[n],r[n]),E=s(h(i),c(i,m,g));x=b,b=v,v=y,y=s(w,_),w=g,g=m,m=i,i=s(_,E)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],m),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],w),this.h[4]=s(this.h[4],y),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],b),this.h[7]=s(this.h[7],x)},w.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}}),rq=x((e,t)=>{var r=rH(),n=r$();function i(){if(!(this instanceof i))return new i;n.call(this),this.h=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]}r.inherits(i,n),t.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}}),rZ=x((e,t)=>{var r=rH(),n=rK(),i=rW(),o=r.rotr64_hi,s=r.rotr64_lo,a=r.shr64_hi,l=r.shr64_lo,u=r.sum64,c=r.sum64_hi,h=r.sum64_lo,d=r.sum64_4_hi,p=r.sum64_4_lo,f=r.sum64_5_hi,m=r.sum64_5_lo,g=n.BlockHash,w=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179],this.k=w,this.W=Array(160)}r.inherits(y,g),t.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=function(e,t){var r=o(e,t,19)^o(t,e,29)^a(e,t,6);return r<0&&(r+=0x100000000),r}(r[n-4],r[n-3]),u=function(e,t){var r=s(e,t,19)^s(t,e,29)^l(e,t,6);return r<0&&(r+=0x100000000),r}(r[n-4],r[n-3]),c=r[n-14],h=r[n-13],f=function(e,t){var r=o(e,t,1)^o(e,t,8)^a(e,t,7);return r<0&&(r+=0x100000000),r}(r[n-30],r[n-29]),m=function(e,t){var r=s(e,t,1)^s(e,t,8)^l(e,t,7);return r<0&&(r+=0x100000000),r}(r[n-30],r[n-29]),g=r[n-32],w=r[n-31];r[n]=d(i,u,c,h,f,m,g,w),r[n+1]=p(i,u,c,h,f,m,g,w)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],a=this.h[1],l=this.h[2],d=this.h[3],p=this.h[4],g=this.h[5],w=this.h[6],y=this.h[7],v=this.h[8],b=this.h[9],x=this.h[10],_=this.h[11],E=this.h[12],k=this.h[13],T=this.h[14],S=this.h[15];i(this.k.length===r.length);for(var A=0;A<r.length;A+=2){var R=T,I=S,C=function(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=0x100000000),r}(v,b),O=function(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=0x100000000),r}(v,b),N=function(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=0x100000000),o}(v,0,x,0,E,k),F=function(e,t,r,n,i,o){var s=t&n^~t&o;return s<0&&(s+=0x100000000),s}(0,b,0,_,0,k),P=this.k[A],D=this.k[A+1],L=r[A],B=r[A+1],M=f(R,I,C,O,N,F,P,D,L,B),j=m(R,I,C,O,N,F,P,D,L,B);R=function(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=0x100000000),r}(n,a);var U=c(R,I=function(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=0x100000000),r}(n,a),C=function(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=0x100000000),o}(n,0,l,0,p,g),O=function(e,t,r,n,i,o){var s=t&n^t&o^n&o;return s<0&&(s+=0x100000000),s}(0,a,0,d,0,g)),z=h(R,I,C,O);T=E,S=k,E=x,k=_,x=v,_=b,v=c(w,y,M,j),b=h(y,y,M,j),w=p,y=g,p=l,g=
1d,l=n,d=a,n=c(M,j,U,z),a=h(M,j,U,z)}u(this.h,0,n,a),u(this.h,2,l,d),u(this.h,4,p,g),u(this.h,6,w,y),u(this.h,8,v,b),u(this.h,10,x,_),u(this.h,12,E,k),u(this.h,14,T,S)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}}),rX=x((e,t)=>{var r=rH(),n=rZ();function i(){if(!(this instanceof i))return new i;n.call(this),this.h=[0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]}r.inherits(i,n),t.exports=i,i.blockSize=1024,i.outSize=384,i.hmacStrength=192,i.padLength=128,i.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}}),rY=x(e=>{e.sha1=rV(),e.sha224=rq(),e.sha256=r$(),e.sha384=rX(),e.sha512=rZ()}),rJ=x(e=>{var t=rH(),r=rK(),n=t.rotl32,i=t.sum32,o=t.sum32_3,s=t.sum32_4,a=r.BlockHash;function l(){if(!(this instanceof l))return new l;a.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.endian="little"}function u(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}t.inherits(l,a),e.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var r=this.h[0],a=this.h[1],l=this.h[2],f=this.h[3],m=this.h[4],g=r,w=a,y=l,v=f,b=m,x=0;x<80;x++){var _,E,k=i(n(s(r,u(x,a,l,f),e[c[x]+t],(_=x)<=15?0:_<=31?0x5a827999:_<=47?0x6ed9eba1:_<=63?0x8f1bbcdc:0xa953fd4e),d[x]),m);r=m,m=f,f=n(l,10),l=a,a=k,k=i(n(s(g,u(79-x,w,y,v),e[h[x]+t],(E=x)<=15?0x50a28be6:E<=31?0x5c4dd124:E<=47?0x6d703ef3:E<=63?0x7a6d76e9:0),p[x]),b),g=b,b=v,v=n(y,10),y=w,w=k}k=o(this.h[1],l,v),this.h[1]=o(this.h[2],f,b),this.h[2]=o(this.h[3],m,g),this.h[3]=o(this.h[4],r,w),this.h[4]=o(this.h[0],a,y),this.h[0]=k},l.prototype._digest=function(e){return"hex"===e?t.toHex32(this.h,"little"):t.split32(this.h,"little")};var c=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],h=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],p=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]}),rQ=x((e,t)=>{var r=rH(),n=rW();function i(e,t,n){if(!(this instanceof i))return new i(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}t.exports=i,i.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=new this.Hash().update(e);t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},i.prototype.update=function(e,t){return this.inner.update(e,t),this},i.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}}),r0=(e,t=21)=>(r=t)=>{let n="",i=0|r;for(;i-- >0;)n+=e[Math.random()*e.length|0];return n},r1=(e=21)=>{let t="",r=0|e;for(;r-- >0;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},r2=e=>Math.floor(1440*e),r6=(e=0)=>{let t=e;return()=>++t},r5=()=>r6(),r3=()=>r6(1),r8=r6(),r4=r6(),r9=()=>r1().toLowerCase(),r7=e=>r0("1234567890abcdef",e)(),ne=()=>`${r7(8)}-${r7(4)}-${r7(4)}-${r7(4)}-${r7(12)}`,nt=e=>new Uint8Array(new TextEncoder().encode(e)),nr={PAGE:"page"},nn={PAGE:"page"},ni=()=>new tM({name:"wp:simplePos",attributes:{x:{key:"x",value:0},y:{key:"y",value:0}}}),no=e=>new tM({name:"wp:align",children:[e]}),ns=e=>new tM({name:"wp:posOffset",children:[e.toString()]}),na=({relative:e,align:t,offset:r})=>new tM({name:"wp:positionH",attributes:{relativeFrom:{key:"relativeFrom",value:null!=e?e:nr.PAGE}},children:[(()=>{if(t)return no(t);if(void 0!==r)return ns(r);throw Error("There is no configuration provided for floating position (Align or offset)")})()]}),nl=({relative:e,align:t,offset:r})=>new tM({name:"wp:positionV",attributes:{relativeFrom:{key:"relativeFrom",value:null!=e?e:nn.PAGE}},children:[(()=>{if(t)return no(t);if(void 0!==r)return ns(r);throw Error("There is no configuration provided for floating position (Align or offset)")})()]}),nu=(e={})=>{var t,r,n,i;
1return new tM({name:"wps:bodyPr",attributes:{lIns:{key:"lIns",value:null===(t=e.margins)||void 0===t?void 0:t.left},rIns:{key:"rIns",value:null===(r=e.margins)||void 0===r?void 0:r.right},tIns:{key:"tIns",value:null===(n=e.margins)||void 0===n?void 0:n.top},bIns:{key:"bIns",value:null===(i=e.margins)||void 0===i?void 0:i.bottom},anchor:{key:"anchor",value:e.verticalAnchor}},children:[...e.noAutoFit?[new tO("a:noAutofit",e.noAutoFit)]:[]]})},nc=(e={txBox:"1"})=>new tM({name:"wps:cNvSpPr",attributes:{txBox:{key:"txBox",value:e.txBox}}}),nh=e=>new tM({name:"w:txbxContent",children:[...e]}),nd=e=>new tM({name:"wps:txbx",children:[nh(e)]}),np=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{cx:"cx",cy:"cy"})}},nf=class extends I{constructor(e,t){super("a:ext"),S(this,"attributes",void 0),this.attributes=new np({cx:e,cy:t}),this.root.push(this.attributes)}},nm=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{x:"x",y:"y"})}},ng=class extends I{constructor(e,t){super("a:off"),this.root.push(new nm({x:null!=e?e:0,y:null!=t?t:0}))}},nw=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}},ny=class extends I{constructor(e){var t,r,n,i;super("a:xfrm"),S(this,"extents",void 0),S(this,"offset",void 0),this.root.push(new nw({flipVertical:null===(t=e.flip)||void 0===t?void 0:t.vertical,flipHorizontal:null===(r=e.flip)||void 0===r?void 0:r.horizontal,rotation:e.rotation})),this.offset=new ng(null===(n=e.offset)||void 0===n||null===(n=n.emus)||void 0===n?void 0:n.x,null===(i=e.offset)||void 0===i||null===(i=i.emus)||void 0===i?void 0:i.y),this.extents=new nf(e.emus.x,e.emus.y),this.root.push(this.offset),this.root.push(this.extents)}},nv=()=>new tM({name:"a:noFill"}),nb=e=>new tM({name:"a:srgbClr",attributes:{value:{key:"val",value:e.value}}}),nx=e=>new tM({name:"a:schemeClr",attributes:{value:{key:"val",value:e.value}}}),n_=e=>new tM({name:"a:solidFill",children:["rgb"===e.type?nb(e):nx(e)]}),nE={ROUND:"rnd",SQUARE:"sq",FLAT:"flat"},nk={SINGLE:"sng",DOUBLE:"dbl",THICK_THIN:"thickThin",THIN_THICK:"thinThick",TRI:"tri"},nT={CENTER:"ctr",INSET:"in"},nS=e=>new tM({name:"a:ln",attributes:{width:{key:"w",value:e.width},cap:{key:"cap",value:void 0===e.cap?void 0:nE[e.cap]},compoundLine:{key:"cmpd",value:void 0===e.compoundLine?void 0:nk[e.compoundLine]},align:{key:"algn",value:void 0===e.align?void 0:nT[e.align]}},children:["noFill"===e.type?nv():"rgb"===e.solidFillType?n_({type:"rgb",value:e.value}):n_({type:"scheme",value:e.value})]}),nA=class extends I{constructor(){super("a:avLst")}},nR=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{prst:"prst"})}},nI=class extends I{constructor(){super("a:prstGeom"),this.root.push(new nR({prst:"rect"})),this.root.push(new nA)}},nC=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{bwMode:"bwMode"})}},nO=class extends I{constructor({element:e,outline:t,solidFill:r,transform:n}){super(`${e}:spPr`),S(this,"form",void 0),this.root.push(new nC({bwMode:"auto"})),this.form=new ny(n),this.root.push(this.form),this.root.push(new nI),r?this.root.push(n_(r)):t&&this.root.push(nv()),t&&this.root.push(nS(t))}},nN=e=>new tM({name:"wps:wsp",children:[nc(e.nonVisualProperties),new nO({element:"wps",transform:e.transformation,outline:e.outline,solidFill:e.solidFill}),nd(e.children),nu(e.bodyProperties)]}),nF=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{uri:"uri"})}},nP=e=>new tM({name:"asvg:svgBlip",attributes:{asvg:{key:"xmlns:asvg",value:"http://schemas.microsoft.com/office/drawing/2016/SVG/main"},embed:{key:"r:embed",value:`rId{${e.fileName}}`}}}),nD=e=>new tM({name:"a:ext",attributes:{uri:{key:"uri",value:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"}},children:[nP(e)]}),nL=e=>new tM({name:"a:extLst",children:[nD(e)]}),nB=e=>new tM({name:"a:blip",attributes:{embed:{key:"r:embed",value:`rId{${"svg"===e.type?e.fallback.fileName:e.fileName}}`},cstate:{key:"cstate",value:"none"}},children:"svg"===e.type?[nL(e)]:[]}),nM=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{left:"l",top:"t",right:"r",bottom:"b"})}},nj=class extends I{constructor(e){super("a:srcRect"),e&&this.root.push(new nM({left:void 0===e.left?void 0:Math.round(1e3*e.left),top:void 0===e.top?void 0:Math.round(1e3*e.top),right:void 0===e.right?void 0:Math.round(1e3*e.right),bottom:void 0===e.bottom?void 0:Math.round(1e3*e.bottom)}))}},nU=class extends I{constructor(){super("a:fillRect")}},nz=class extends I{constructor(){super("a:stretch"),this.root.push(new nU)}},nW=class extends I{constructor(e,t){super("pic:blipFill"),this.root.push(nB(e)),this.root.push(new nj(t)),this.root.push(new nz)}},nH=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}},nK=class extends I{constructor(){super("a:picLocks"),this.root.push(new nH({noChangeAspect:1,noChangeArrowheads:1}))}},nG=class extends I{constructor(){super("pic:cNvPicPr"),this.root.push(new nK)}},nV=(e,t)=>new tM({name:"a:hlinkClick",attributes:N(N({},t?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{},{id:{key:"r:id",value:`rId${e}`}})}),n$=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}},nq=class extends I{constructor(){super("pic:cNvPr"),this.root.push(new n$({id:0,name:"",descr:""}))}
1prepForXml(e){for(let t=e.stack.length-1;t>=0;t--){let r=e.stack[t];if(r instanceof i$){this.root.push(nV(r.linkId,!1));break}}return super.prepForXml(e)}},nZ=class extends I{constructor(){super("pic:nvPicPr"),this.root.push(new nq),this.root.push(new nG)}},nX=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{xmlns:"xmlns:pic"})}},nY=class extends I{constructor({mediaData:e,transform:t,outline:r,solidFill:n,crop:i}){super("pic:pic"),this.root.push(new nX({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new nZ),this.root.push(new nW(e,i)),this.root.push(new nO({element:"pic",transform:t,outline:r,solidFill:n}))}},nJ=e=>{var t,r,n,i;return new tM({name:"a:xfrm",attributes:{flipVertical:{key:"flipV",value:null===(t=e.flip)||void 0===t?void 0:t.vertical},flipHorizontal:{key:"flipH",value:null===(r=e.flip)||void 0===r?void 0:r.horizontal},rotation:{key:"rot",value:e.rotation}},children:[new ng(null===(n=e.offset)||void 0===n||null===(n=n.emus)||void 0===n?void 0:n.x,null===(i=e.offset)||void 0===i||null===(i=i.emus)||void 0===i?void 0:i.y),new nf(e.emus.x,e.emus.y),new tM({name:"a:chOff",attributes:{x:{key:"x",value:0},y:{key:"y",value:0}}}),new tM({name:"a:chExt",attributes:{x:{key:"cx",value:e.emus.x},y:{key:"cy",value:e.emus.y}}})]})},nQ=()=>new tM({name:"wpg:cNvGrpSpPr"}),n0=e=>new tM({name:"wpg:wgp",children:[nQ(),new tM({name:"wpg:grpSpPr",children:[nJ(e.transformation)]}),...e.children]}),n1=class extends I{constructor({mediaData:e,transform:t,outline:r,solidFill:n,crop:i}){if(super("a:graphicData"),"graphic"===e.type)this.root.push(new nF({uri:e.uri})),this.root.push(e.content);else if("wps"===e.type){this.root.push(new nF({uri:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));let i=nN(N(N({},e.data),{},{transformation:t,outline:r,solidFill:n}));this.root.push(i)}else if("wpg"===e.type){this.root.push(new nF({uri:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"}));let r=n0({children:e.children.map(e=>"wps"===e.type?nN(N(N({},e.data),{},{transformation:e.transformation,outline:e.outline,solidFill:e.solidFill})):new nY({mediaData:e,transform:e.transformation,outline:e.outline,solidFill:e.solidFill})),transformation:t});this.root.push(r)}else{this.root.push(new nF({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"}));let o=new nY({mediaData:e,transform:t,outline:r,solidFill:n,crop:i});this.root.push(o)}}},n2=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{a:"xmlns:a"})}},n6=class extends I{constructor({mediaData:e,transform:t,outline:r,solidFill:n,crop:i}){super("a:graphic"),S(this,"data",void 0),this.root.push(new n2({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new n1({mediaData:e,transform:t,outline:r,solidFill:n,crop:i}),this.root.push(this.data)}},n5={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3,THROUGH:4},n3={BOTH_SIDES:"bothSides"},n8=()=>new tM({name:"wp:wrapNone"}),n4=(e,t={top:0,bottom:0,left:0,right:0})=>new tM({name:"wp:wrapSquare",attributes:{wrapText:{key:"wrapText",value:e.side||n3.BOTH_SIDES},distT:{key:"distT",value:t.top},distB:{key:"distB",value:t.bottom},distL:{key:"distL",value:t.left},distR:{key:"distR",value:t.right}}}),n9=(e,{x:t,y:r})=>new tM({name:e,attributes:{x:{key:"x",value:t},y:{key:"y",value:r}}}),n7=()=>new tM({name:"wp:wrapPolygon",attributes:{edited:{key:"edited",value:!1}},children:[n9("wp:start",{x:0,y:0}),n9("wp:lineTo",{x:0,y:21600}),n9("wp:lineTo",{x:21600,y:21600}),n9("wp:lineTo",{x:21600,y:0}),n9("wp:lineTo",{x:0,y:0})]}),ie=(e,t={},r)=>{var n;return new tM({name:e,attributes:{wrapText:{key:"wrapText",value:null!==(n=null==r?void 0:r.side)&&void 0!==n?n:n3.BOTH_SIDES},distL:{key:"distL",value:t.left},distR:{key:"distR",value:t.right}},children:[n7()]})},it=(e,t)=>ie("wp:wrapTight",e,t),ir=(e,t)=>ie("wp:wrapThrough",e,t),ii=(e={top:0,bottom:0})=>new tM({name:"wp:wrapTopAndBottom",attributes:{distT:{key:"distT",value:e.top},distB:{key:"distB",value:e.bottom}}}),io={EXTERNAL:"External"},is=(e,t,r,n)=>new tM({name:"Relationship",attributes:{id:{key:"Id",value:e},type:{key:"Type",value:t},target:{key:"Target",value:r},targetMode:{key:"TargetMode",value:n}}}),ia=e=>
1new tM({name:"a:extLst",attributes:{namespace:{key:"xmlns:a",value:e?"http://schemas.openxmlformats.org/drawingml/2006/main":void 0}},children:[new tM({name:"a:ext",attributes:{uri:{key:"uri",value:"{C183D7F6-B498-43B3-948B-1728B52AA6E4}"}},children:[new tM({name:"adec:decorative",attributes:{namespace:{key:"xmlns:adec",value:"http://schemas.microsoft.com/office/drawing/2017/decorative"},value:{key:"val",value:1}}})]})]}),il=class{constructor(e){S(this,"link",void 0),S(this,"linkId",r9()),S(this,"addedTo",new WeakSet),this.link=e}createClick(e){return nV(this.linkId,e)}addRelationship(e){let t=e.viewWrapper.Relationships;this.addedTo.has(t)||(this.addedTo.add(t),t.addRelationship(this.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",this.link,io.EXTERNAL))}},iu=class extends I{constructor({name:e,description:t,title:r,id:n}={name:"",description:"",title:""},{link:i,decorative:o}={}){super("wp:docPr"),S(this,"link",void 0),S(this,"decorative",void 0);let s={id:{key:"id",value:null!=n?n:r8()},name:{key:"name",value:e}};null!=t&&(s.description={key:"descr",value:t}),null!=r&&(s.title={key:"title",value:r}),this.root.push(new P(s)),this.link=void 0===i?void 0:new il(i),this.decorative=o}prepForXml(e){if(this.link)this.link.addRelationship(e),this.root.push(this.link.createClick(!0));else for(let t=e.stack.length-1;t>=0;t--){let r=e.stack[t];if(r instanceof i$){this.root.push(nV(r.linkId,!0));break}}this.decorative&&this.root.push(ia(!0));let t=super.prepForXml(e);return this.root.splice(1),t}},ic=({top:e,right:t,bottom:r,left:n})=>new tM({name:"wp:effectExtent",attributes:{top:{key:"t",value:e},right:{key:"r",value:t},bottom:{key:"b",value:r},left:{key:"l",value:n}}}),ih=({x:e,y:t})=>new tM({name:"wp:extent",attributes:{x:{key:"cx",value:e},y:{key:"cy",value:t}}}),id=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}},ip=class extends I{constructor(){super("a:graphicFrameLocks"),this.root.push(new id({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}},im=(e=!0)=>new tM({name:"wp:cNvGraphicFramePr",children:e?[new ip]:[]}),ig=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}},iw=e=>{let t=e.indexOf(";base64,");return new Uint8Array(atob(e.substring(-1===t?0:t+8)).split("").map(e=>e.charCodeAt(0)))},iy=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{xmlns:"xmlns"})}},iv=class extends I{constructor(){super("Relationships"),this.root.push(new iy({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}addRelationship(e,t,r,n){this.root.push(is(`rId${e}`,t,r,n))}get RelationshipCount(){return this.root.length-1}},ib=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}},ix=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps","mc:Ignorable":"mc:Ignorable"})}},i_=class extends I{constructor({id:e,initials:t,author:r,date:n=new Date,children:i},o){for(let s of(super("w:comment"),S(this,"paraId",void 0),this.paraId=o,this.root.push(new ib({id:e,initials:t,author:r,date:n.toISOString()})),i))this.root.push(s)}prepForXml(e){let t=super.prepForXml(e);
1if(!t||!this.paraId)return t;let r=t["w:comment"];if(!Array.isArray(r))return t;for(let e=r.length-1;e>=0;e--){let t=r[e];if(t&&"object"==typeof t&&"w:p"in t){let e=t["w:p"];Array.isArray(e)&&e.unshift({_attr:{"w14:paraId":this.paraId,"w14:textId":this.paraId}});break}}return t}},iE=e=>(e+1).toString(16).toUpperCase().padStart(8,"0"),ik=class extends I{constructor({children:e}){super("w:comments"),S(this,"relationships",void 0),S(this,"threadData",void 0),S(this,"commentIdsData",void 0),S(this,"isEmpty",void 0),this.isEmpty=0===e.length,this.root.push(new ix({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape","mc:Ignorable":"w14 w15 wp14"}));let t=e.some(e=>void 0!==e.parentId),r=e.some(e=>void 0!==e.durableId);if(t||r){let n=new Map(e.map(e=>[e.id,iE(e.id)]));for(let t of e)this.root.push(new i_(t,n.get(t.id)));t&&(this.threadData=e.map(e=>({paraId:n.get(e.id),parentParaId:void 0!==e.parentId?n.get(e.parentId):void 0,done:e.resolved}))),r&&(this.commentIdsData=e.map(e=>{var t;return{paraId:n.get(e.id),durableId:null!==(t=e.durableId)&&void 0!==t?t:n.get(e.id)}}))}else for(let t of e)this.root.push(new i_(t));this.relationships=new iv}get Relationships(){return this.relationships}get ThreadData(){return this.threadData}get CommentIdsData(){return this.commentIdsData}get IsEmpty(){return this.isEmpty}},iT=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{"xmlns:wpc":"xmlns:wpc","xmlns:mc":"xmlns:mc","xmlns:w15":"xmlns:w15","mc:Ignorable":"mc:Ignorable"})}},iS=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{paraId:"w15:paraId",paraIdParent:"w15:paraIdParent",done:"w15:done"})}},iA=class extends I{constructor(e){super("w15:commentEx"),this.root.push(new iS({paraId:e.paraId,paraIdParent:e.parentParaId,done:void 0!==e.done?e.done?"1":"0":void 0}))}},iR=class extends I{constructor(e){for(let t of(super("w15:commentsEx"),this.root.push(new iT({"xmlns:wpc":"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","mc:Ignorable":"w15"})),e))this.root.push(new iA(t))}},iI=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{paraId:"w16cid:paraId",durableId:"w16cid:durableId"})}},iC=class extends I{constructor(e){super("w16cid:commentId"),this.root.push(new iI({paraId:e.paraId,durableId:e.durableId}))}},iO=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{"xmlns:w16cid":"xmlns:w16cid","xmlns:mc":"xmlns:mc","mc:Ignorable":"mc:Ignorable"})}},iN=class extends I{constructor(e){for(let t of(super("w16cid:commentsIds"),this.root.push(new iO({"xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"w16cid"})),e))this.root.push(new iC(t))}},iF=class extends tF{constructor(){super("w:endnoteRef")}},iP=class extends I{constructor(){super("w:pageBreakBefore")}},iD={AUTO:"auto"},iL=({after:e,before:t,line:r,lineRule:n,beforeAutoSpacing:i,afterAutoSpacing:o})=>new tM({name:"w:spacing",attributes:{after:{key:"w:after",value:e},before:{key:"w:before",value:t},line:{key:"w:line",value:r},lineRule:{key:"w:lineRule",value:n},beforeAutoSpacing:{key:"w:beforeAutospacing",value:i},afterAutoSpacing:{key:"w:afterAutospacing",value:o}}}),iB={HEADING_1:"Heading1",HEADING_2:"Heading2",HEADING_3:"Heading3",HEADING_4:"Heading4",HEADING_5:"Heading5",HEADING_6:"Heading6",TITLE:"Title"},iM=e=>
1new tM({name:"w:pStyle",attributes:{val:{key:"w:val",value:e}}}),ij={LEFT:"left",RIGHT:"right"},iU=({type:e,position:t,leader:r})=>new tM({name:"w:tab",attributes:{val:{key:"w:val",value:e},pos:{key:"w:pos",value:tT(t)},leader:{key:"w:leader",value:r}}}),iz=e=>new tM({name:"w:tabs",children:e.map(e=>iU(e))}),iW=class extends I{constructor(e,t){super("w:numPr"),this.root.push(new iH(t)),this.root.push(new iK(e))}},iH=class extends I{constructor(e){if(super("w:ilvl"),e>9)throw Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new D({val:e}))}},iK=class extends I{constructor(e){super("w:numId"),this.root.push(new D({val:"string"==typeof e?`{${e}}`:e}))}},iG=class extends I{constructor(...e){super(...e),S(this,"fileChild",Symbol())}},iV=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}},i$=class extends I{constructor(e,t,r){super("w:hyperlink"),S(this,"linkId",void 0),this.linkId=t;let n=new iV({history:1,anchor:r||void 0,id:r?void 0:`rId${this.linkId}`});this.root.push(n),e.forEach(e=>{this.root.push(e)})}},iq=class extends I{constructor(e){super("w:externalHyperlink"),S(this,"options",void 0),this.options=e}},iZ=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{id:"w:id",name:"w:name"})}},iX=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{id:"w:id"})}},iY=class{constructor(e){S(this,"start",void 0),S(this,"children",void 0),S(this,"end",void 0);let t=r4();this.start=new iJ(e.id,t),this.children=e.children,this.end=new iQ(t)}},iJ=class extends I{constructor(e,t){super("w:bookmarkStart");let r=new iZ({name:e,id:t});this.root.push(r)}},iQ=class extends I{constructor(e){super("w:bookmarkEnd");let t=new iX({id:e});this.root.push(t)}},i0=e=>new tM({name:"w:outlineLvl",attributes:{val:{key:"w:val",value:e}}}),i1=({id:e,fontKey:t,subsetted:r},n)=>new tM({name:n,attributes:N({id:{key:"r:id",value:e}},t?{fontKey:{key:"w:fontKey",value:`{${t.toUpperCase()}}`}}:{}),children:[...r?[new tO("w:subsetted",r)]:[]]}),i2=({name:e,altName:t,panose1:r,charset:n,family:i,notTrueType:o,pitch:s,sig:a,embedRegular:l,embedBold:u,embedItalic:c,embedBoldItalic:h})=>new tM({name:"w:font",attributes:{name:{key:"w:name",value:e}},children:[...t?[tD("w:altName",t)]:[],...r?[tD("w:panose1",r)]:[],...n?[tD("w:charset",n)]:[],...i?[tD("w:family",i)]:[],...o?[new tO("w:notTrueType",o)]:[],...s?[tD("w:pitch",s)]:[],...a?[new tM({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:a.usb0},usb1:{key:"w:usb1",value:a.usb1},usb2:{key:"w:usb2",value:a.usb2},usb3:{key:"w:usb3",value:a.usb3},csb0:{key:"w:csb0",value:a.csb0},csb1:{key:"w:csb1",value:a.csb1}}})]:[],...l?[i1(l,"w:embedRegular")]:[],...u?[i1(u,"w:embedBold")]:[],...c?[i1(c,"w:embedItalic")]:[],...h?[i1(h,"w:embedBoldItalic")]:[]]}),i6=({name:e,index:t,fontKey:r,characterSet:n})=>i2({name:e,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:n,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${t}`}}),i5=e=>new tM({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:e.map((e,t)=>i6({name:e.name,index:t+1,fontKey:e.fontKey,characterSet:e.characterSet}))}),i3=class{constructor(e){S(this,"options",void 0),S(this,"fontTable",void 0),S(this,"relationships",void 0),S(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(e=>N(N({},e),{},{fontKey:ne()})),this.fontTable=i5(this.fontOptionsWithKey),this.relationships=new iv;for(let t=0;t<e.length;t++)this.relationships.addRelationship(t+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/font${t+1}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}},i8=()=>new tM({name:"w:wordWrap",attributes:{val:{key:"w:val",value:0}}}),i4=e=>{var t,r;return new tM({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:e.anchorLock},dropCap:{key:"w:dropCap",value:e.dropCap},width:{key:"w:w",value:e.width},height:{key:"w:h",value:e.height},x:{key:"w:x",value:e.position?e.position.x:void 0},y:{key:"w:y",value:e.position?e.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:e.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:e.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:null===(t=e.space)||void 0===t?void 0:t.horizontal},spaceVertical:{key:"w:vSpace",value:null===(r=e.space)||void 0===r?void 0:r.vertical},rule:{key:"w:hRule",value:e.rule},alignmentX:{key:"w:xAlign",value:e.alignment?e.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:e.alignment?e.alignment.y:void 0},lines:{key:"w:lines",value:e.lines},wrap:{key:"w:wrap",value:e.wrap}}})},i9=class extends C{constructor(e,{implicitListParagraphStyle:t=!0}={}){if(super("w:pPr",null==e?void 0:e.includeIfEmpty),S(this,"numberingReferences",[]),!e)return this;if(e.heading&&this.push(iM(e.heading)),!t||(e.bullet&&this.push(iM("ListParagraph")),!e.numbering||e.numbering.custom||e.style||e.heading||this.push(iM("ListParagraph"))),e.style&&this.push(iM(e.style)),void 0!==e.keepNext&&this.push(new tO("w:keepNext",e.keepNext)),void 0!==e.keepLines&&this.push(new tO("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new iP),e.frame&&this.push(i4(e.frame)),void 0!==e.widowControl&&this.push(new tO("w:widowControl",e.widowControl)),e.bullet&&this.push(new iW(1,e.bullet.level)),e.numbering){var r,n;this.numberingReferences.push({reference:e.numbering.reference,instance:null!==(r=e.numbering.instance)&&void 0!==r?r:0}),this.push(new iW(`${e.numbering.reference}-${null!==(n=e.numbering.instance)&&void 0!==n?n:0}`,e.numbering.level))}else!1===e.numbering&&this.push(new iW(0,0));e.border&&this.push(new rr(e.border)),e.thematicBreak&&this.push(new rn),e.shading&&this.push(rw(e.shading)),e.wordWrap&&this.push(i8()),e.overflowPunctuation&&this.push(new tO("w:overflowPunct",e.overflowPunctuation));let i=[...void 0!==e.rightTabStop?[{type:ij.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...void 0!==e.leftTabStop?[{type:ij.LEFT,position:e.leftTabStop}]:[]];i.length>0&&this.push(iz(i)),void 0!==e.bidirectional&&this.push(new tO("w:bidi",e.bidirectional)),e.spacing&&this.push(iL(e.spacing)),e.indent&&this.push(ri(e.indent)),void 0!==e.contextualSpacing&&this.push(new tO("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(tU(e.alignment)),void 0!==e.outlineLevel&&this.push(i0(e.outlineLevel)),void 0!==e.suppressLineNumbers&&this.push(new tO("w:suppressLineNumbers",e.suppressLineNumbers)),void 0!==e.autoSpaceEastAsianText&&this.push(new tO("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new rD(e.run)),e.revision&&this.push(new i7(e.revision))}push(e){this.root.push(e)}prepForXml(e){if(!(e.viewWrapper instanceof i3))for(let t of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(t.reference,t.instance);return super.prepForXml(e)}},i7=class extends I{constructor(e){super("w:pPrChange"),this.root.push(new rv({id:e.id,author:e.author,date:e.date})),this.root.push(new i9(N(N({},e),{},{includeIfEmpty:!0})))}},oe=class extends iG{constructor(e){if(super("w:p"),S(this,"properties",void 0),"string"==typeof e)return this.properties=new i9({}),this.root.push(this.properties),this.root.push(new rU(e)),this;if(this.properties=new i9(e),this.root.push(this.properties),e.text&&this.root.push(new rU(e.text)),e.children)for(let t of e.children){if(t instanceof iY){for(let e of(this.root.push(t.start),t.children))this.root.push(e);this.root.push(t.end);continue}this.root.push(t)}}
1prepForXml(e){for(let t of this.root)if(t instanceof iq){let r=this.root.indexOf(t),n=new i$(t.options.children,r9());e.viewWrapper.Relationships.addRelationship(n.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.options.link,io.EXTERNAL),this.root[r]=n}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}},ot=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{hide:"m:val"})}};N(N({},{TOP:"top",CENTER:"center",BOTTOM:"bottom"}),{},{BOTH:"both"});var or=e=>new tM({name:"w:vAlign",attributes:{verticalAlign:{key:"w:val",value:e}}}),on=({space:e,count:t,separate:r,equalWidth:n,children:i})=>new tM({name:"w:cols",attributes:{space:{key:"w:space",value:void 0===e?void 0:tA(e)},count:{key:"w:num",value:void 0===t?void 0:tm(t)},separate:{key:"w:sep",value:r},equalWidth:{key:"w:equalWidth",value:n}},children:!n&&i?i:void 0}),oi=({type:e,linePitch:t,charSpace:r})=>new tM({name:"w:docGrid",attributes:{type:{key:"w:type",value:e},linePitch:{key:"w:linePitch",value:tm(t)},charSpace:{key:"w:charSpace",value:r?tm(r):void 0}}}),oo={DEFAULT:"default",FIRST:"first",EVEN:"even"},os={HEADER:"w:headerReference",FOOTER:"w:footerReference"},oa=(e,t)=>new tM({name:e,attributes:{type:{key:"w:type",value:t.type||oo.DEFAULT},id:{key:"r:id",value:`rId${t.id}`}}}),ol=({countBy:e,start:t,restart:r,distance:n})=>new tM({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:void 0===e?void 0:tm(e)},start:{key:"w:start",value:void 0===t?void 0:tm(t)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:void 0===n?void 0:tA(n)}}}),ou=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}},oc=class extends C{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new ou({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new ou({})),e.pageBorderTop&&this.root.push(re("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(re("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(re("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(re("w:right",e.pageBorderRight))}},oh=(e,t,r,n,i,o,s)=>new tM({name:"w:pgMar",attributes:{top:{key:"w:top",value:tT(e)},right:{key:"w:right",value:tA(t)},bottom:{key:"w:bottom",value:tT(r)},left:{key:"w:left",value:tA(n)},header:{key:"w:header",value:tA(i)},footer:{key:"w:footer",value:tA(o)},gutter:{key:"w:gutter",value:tA(s)}}}),od=({start:e,formatType:t,separator:r})=>new tM({name:"w:pgNumType",attributes:{start:{key:"w:start",value:void 0===e?void 0:tm(e)},formatType:{key:"w:fmt",value:t},separator:{key:"w:chapSep",value:r}}}),op={PORTRAIT:"portrait",LANDSCAPE:"landscape"},of=({width:e,height:t,orientation:r,code:n})=>{let i=tA(e),o=tA(t);return new tM({name:"w:pgSz",attributes:{width:{key:"w:w",value:r===op.LANDSCAPE?o:i},height:{key:"w:h",value:r===op.LANDSCAPE?i:o},orientation:{key:"w:orient",value:r},code:{key:"w:code",value:n}}})},om=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{val:"w:val"})}},og=class extends I{constructor(e){super("w:textDirection"),this.root.push(new om({val:e}))}},ow=e=>new tM({name:"w:type",attributes:{val:{key:"w:val",value:e}}}),oy={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},ov={WIDTH:11906,HEIGHT:16838,ORIENTATION:op.PORTRAIT},ob=class e extends I{constructor({page:{size:{width:t=ov.WIDTH,height:r=ov.HEIGHT,orientation:n=ov.ORIENTATION,code:i}={},margin:{top:o=oy.TOP,right:s=oy.RIGHT,bottom:a=oy.BOTTOM,left:l=oy.LEFT,header:u=oy.HEADER,footer:c=oy.FOOTER,gutter:h=oy.GUTTER}={},pageNumbers:d={},borders:p,textDirection:f}={},grid:{linePitch:m=360,charSpace:g,type:w}={},headerWrapperGroup:y={},footerWrapperGroup:v={},lineNumbers:b,titlePage:x,verticalAlign:_,column:E,type:k,revision:T}={}){super("w:sectPr"),S(this,"availableTextWidth",void 0),this.availableTextWidth=e.calculateAvailableTextWidth({pageWidth:n===op.LANDSCAPE?r:t,left:l,right:s,gutter:h,column:E}),this.addHeaderFooterGroup(os.HEADER,y),this.addHeaderFooterGroup(os.FOOTER,v),k&&this.root.push(ow(k)),this.root.push(of({width:t,height:r,orientation:n,code:i})),this.root.push(oh(o,s,a,l,u,c,h)),p&&this.root.push(new oc(p)),b&&this.root.push(ol(b)),this.root.push(od(d)),E&&this.root.push(on(E)),_&&this.root.push(or(_)),void 0!==x&&this.root.push(new tO("w:titlePg",x)),f&&this.root.push(new og(f)),this.root.push(oi({linePitch:m,charSpace:g,type:w})),T&&this.root.push(new ox(T))}get AvailableTextWidth(){return this.availableTextWidth}static calculateAvailableTextWidth({pageWidth:e,left:t,right:r,gutter:n,column:i}){var o,s;let a=t_(e)-t_(t)-t_(r)-t_(n),l=null!==(o=null==i?void 0:i.count)&&void 0!==o?o:1;return l<=1?a:(a-t_(null!==(s=null==i?void 0:i.space)&&void 0!==s?s:720)*(l-1))/l}addHeaderFooterGroup(e,t){t.default&&this.root.push(oa(e,{type:oo.DEFAULT,id:t.default.View.ReferenceId})),t.first&&this.root.push(oa(e,{type:oo.FIRST,id:t.first.View.ReferenceId})),t.even&&this.root.push(oa(e,{type:oo.EVEN,id:t.even.View.ReferenceId}))}},ox=class extends I{constructor(e){super("w:sectPrChange"),this.root.push(new rv({id:e.id,author:e.author,date:e.date})),this.root.push(new ob(e))}},o_=class extends I{constructor(){super("w:body"),S(this,"sections",[]),S(this,"sectionParagraphs",new Map)}getSectionPropertiesFor(e){let t=e?this.root.indexOf(e)+1:0;for(let e=t;e<this.root.length;e++){let t=this.root[e];if(t instanceof ob)return t;let r=this.sectionParagraphs.get(t);if(r)return r}return this.sections[this.sections.length-1]}addSection(e){let t=this.sections.pop(),r=this.createSectionParagraph(t);this.root.push(r),t&&this.sectionParagraphs.set(r,t),this.sections.push(new ob(e))}prepForXml(e){return 1===this.sections.length&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){let t=new oe({}),r=new i9({});return r.push(e),t.addChildElement(r),t}},oE={AUTO:"auto",DXA:"dxa",PERCENTAGE:"pct"},ok=(e,{type:t=oE.AUTO,size:r})=>{let n=r;return t===oE.PERCENTAGE&&"number"==typeof r&&(n=Math.round(50*r)),new tM({name:e,attributes:{type:{key:"w:type",value:t},size:{key:"w:w",value:tI(n)}}})},oT=(ov.WIDTH,oy.LEFT,oy.RIGHT,oy.GUTTER,e=>e.options.columnSpan||1),oS=(e,t)=>{if(!e)return;let{type:r=oE.AUTO,size:n}=e;if(r!==oE.PERCENTAGE&&r!==oE.DXA)return;let i="number"==typeof n?r===oE.PERCENTAGE?n/100*t:n:n.endsWith("%")?Number(n.slice(0,-1))/100*t:t_(n);return i>0?i:void 0},oA=e=>new tM({name:"w:gridCol",attributes:void 0!==e?{width:{key:"w:w",value:tA(e)}}:void 0}),oR=class extends I{constructor(e,t){for(let t of(super("w:tblGrid"),e))this.root.push(oA(t));t&&this.root.push(new oC(t))}},oI=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{id:"w:id"})}},oC=class extends I{constructor(e){super("w:tblGridChange"),this.root.push(new oI({id:e.id})),this.root.push(new oR(e.columnWidths))}},oO=class extends I{constructor(e){super("w:ins"),this.root.push(new rv({id:e.id,author:e.author,date:e.date}))}},oN=class extends I{constructor(e){super("w:del"),this.root.push(new rv({id:e.id,author:e.author,date:e.date}))}},oF=class extends I{constructor(e){super("w:cellIns"),this.root.push(new rv({id:e.id,author:e.author,date:e.date}))}},oP=class extends I{constructor(e){super("w:cellDel"),this.root.push(new rv({id:e.id,author:e.author,date:e.date}))}},oD=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date",verticalMerge:"w:vMerge",verticalMergeOriginal:"w:vMergeOrig"})}},oL=class extends I{constructor(e){super("w:cellMerge"),this.root.push(new oD(e))}},oB=({marginUnitType:e=oE.DXA,top:t,left:r,bottom:n,right:i})=>[{name:"w:top",size:t},{name:"w:left",size:r},{name:"w:bottom",size:n},{name:"w:right",size:i}].filter(e=>void 0!==e.size).map(({name:t,size:r})=>
1ok(t,{type:e,size:r})),oM=e=>{let t=oB(e);if(0!==t.length)return new tM({name:"w:tblCellMar",children:t})},oj=e=>{let t=oB(e);if(0!==t.length)return new tM({name:"w:tcMar",children:t})},oU=class extends C{constructor(e){super("w:tcBorders"),e.top&&this.root.push(re("w:top",e.top)),e.start&&this.root.push(re("w:start",e.start)),e.left&&this.root.push(re("w:left",e.left)),e.bottom&&this.root.push(re("w:bottom",e.bottom)),e.end&&this.root.push(re("w:end",e.end)),e.right&&this.root.push(re("w:right",e.right))}},oz=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{val:"w:val"})}},oW=class extends I{constructor(e){super("w:gridSpan"),this.root.push(new oz({val:tm(e)}))}},oH={RESTART:"restart"},oK=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{val:"w:val"})}},oG=class extends I{constructor(e){super("w:vMerge"),this.root.push(new oK({val:e}))}},oV=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{val:"w:val"})}},o$=class extends I{constructor(e){super("w:textDirection"),this.root.push(new oV({val:e}))}},oq=class extends C{constructor(e){if(super("w:tcPr",e.includeIfEmpty),e.width&&this.root.push(ok("w:tcW",e.width)),e.columnSpan&&this.root.push(new oW(e.columnSpan)),e.verticalMerge?this.root.push(new oG(e.verticalMerge)):e.rowSpan&&e.rowSpan>1&&this.root.push(new oG(oH.RESTART)),e.borders&&this.root.push(new oU(e.borders)),e.shading&&this.root.push(rw(e.shading)),e.margins){let t=oj(e.margins);t&&this.root.push(t)}e.textDirection&&this.root.push(new o$(e.textDirection)),e.verticalAlign&&this.root.push(or(e.verticalAlign)),e.insertion&&this.root.push(new oF(e.insertion)),e.deletion&&this.root.push(new oP(e.deletion)),e.cellMerge&&this.root.push(new oL(e.cellMerge)),e.revision&&this.root.push(new oZ(e.revision))}},oZ=class extends I{constructor(e){super("w:tcPrChange"),this.root.push(new rv({id:e.id,author:e.author,date:e.date})),this.root.push(new oq(N(N({},e),{},{includeIfEmpty:!0})))}},oX=(e,t)=>t?new tO(e):new tP(e,"off"),oY={style:rt.NONE,size:0,color:"auto"},oJ={style:rt.SINGLE,size:4,color:"auto"},oQ=class extends I{constructor(e){var t,r,n,i,o,s;super("w:tblBorders"),this.root.push(re("w:top",null!==(t=e.top)&&void 0!==t?t:oJ)),this.root.push(re("w:left",null!==(r=e.left)&&void 0!==r?r:oJ)),this.root.push(re("w:bottom",null!==(n=e.bottom)&&void 0!==n?n:oJ)),this.root.push(re("w:right",null!==(i=e.right)&&void 0!==i?i:oJ)),this.root.push(re("w:insideH",null!==(o=e.insideHorizontal)&&void 0!==o?o:oJ)),this.root.push(re("w:insideV",null!==(s=e.insideVertical)&&void 0!==s?s:oJ))}};S(oQ,"NONE",{top:oY,bottom:oY,left:oY,right:oY,insideHorizontal:oY,insideVertical:oY});var o0=({horizontalAnchor:e,verticalAnchor:t,absoluteHorizontalPosition:r,relativeHorizontalPosition:n,absoluteVerticalPosition:i,relativeVerticalPosition:o,bottomFromText:s,topFromText:a,leftFromText:l,rightFromText:u})=>new tM({name:"w:tblpPr",attributes:{leftFromText:{key:"w:leftFromText",value:void 0===l?void 0:tA(l)},rightFromText:{key:"w:rightFromText",value:void 0===u?void 0:tA(u)},topFromText:{key:"w:topFromText",value:void 0===a?void 0:tA(a)},bottomFromText:{key:"w:bottomFromText",value:void 0===s?void 0:tA(s)},absoluteHorizontalPosition:{key:"w:tblpX",value:void 0===r?void 0:tT(r)},absoluteVerticalPosition:{key:"w:tblpY",value:void 0===i?void 0:tT(i)},horizontalAnchor:{key:"w:horzAnchor",value:e},relativeHorizontalPosition:{key:"w:tblpXSpec",value:n},relativeVerticalPosition:{key:"w:tblpYSpec",value:o},verticalAnchor:{key:"w:vertAnchor",value:t}}}),o1=e=>new tM({name:"w:tblLayout",attributes:{type:{key:"w:type",value:e}}}),o2={DXA:"dxa"},o6=({type:e=o2.DXA,value:t})=>new tM({name:"w:tblCellSpacing",attributes:{type:{key:"w:type",value:e},value:{key:"w:w",value:tI(t)}}}),o5=({firstRow:e,lastRow:t,firstColumn:r,lastColumn:n,noHBand:i,noVBand:o})=>new tM({name:"w:tblLook",attributes:{firstRow:{key:"w:firstRow",value:e},lastRow:{key:"w:lastRow",value:t},firstColumn:{key:"w:firstColumn",value:r},lastColumn:{key:"w:lastColumn",value:n},noHBand:{key:"w:noHBand",value:i},noVBand:{key:"w:noVBand",value:o}}}),o3=e=>new tM({name:"w:tblOverlap",attributes:{val:{key:"w:val",value:e}}}),o8=class extends C{constructor(e){var t;if(super("w:tblPr",e.includeIfEmpty),e.style&&this.root.push(new tP("w:tblStyle",e.style)),e.float&&this.root.push(o0(e.float)),(null===(t=e.float)||void 0===t?void 0:t.overlap)&&this.root.push(o3(e.float.overlap)),void 0!==e.visuallyRightToLeft&&this.root.push(oX("w:bidiVisual",e.visuallyRightToLeft)),e.width&&this.root.push(ok("w:tblW",e.width)),e.alignment&&this.root.push(tU(e.alignment)),e.cellSpacing&&this.root.push(o6(e.cellSpacing)),e.indent&&this.root.push(ok("w:tblInd",e.indent)),e.borders&&this.root.push(new oQ(e.borders)),e.shading&&this.root.push(rw(e.shading)),e.layout&&this.root.push(o1(e.layout)),e.cellMargin){let t=
1oM(e.cellMargin);t&&this.root.push(t)}e.tableLook&&this.root.push(o5(e.tableLook)),e.revision&&this.root.push(new o4(e.revision))}},o4=class extends I{constructor(e){super("w:tblPrChange"),this.root.push(new rv({id:e.id,author:e.author,date:e.date})),this.root.push(new o8(N(N({},e),{},{includeIfEmpty:!0})))}},o9=(e,t)=>new tM({name:"w:trHeight",attributes:{value:{key:"w:val",value:tA(e)},rule:{key:"w:hRule",value:t}}}),o7=class extends C{constructor(e){super("w:trPr",e.includeIfEmpty),void 0!==e.cantSplit&&this.root.push(oX("w:cantSplit",e.cantSplit)),void 0!==e.tableHeader&&this.root.push(oX("w:tblHeader",e.tableHeader)),e.height&&this.root.push(o9(e.height.value,e.height.rule)),e.cellSpacing&&this.root.push(o6(e.cellSpacing)),e.insertion&&this.root.push(new oO(e.insertion)),e.deletion&&this.root.push(new oN(e.deletion)),e.revision&&this.root.push(new se(e.revision))}},se=class extends I{constructor(e){super("w:trPrChange"),this.root.push(new rv({id:e.id,author:e.author,date:e.date})),this.root.push(new o7(N(N({},e),{},{includeIfEmpty:!0})))}},st=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},sr=class extends I{constructor(){super("Properties"),this.root.push(new st({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}},sn=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{xmlns:"xmlns"})}},si=(e,t)=>new tM({name:"Default",attributes:{contentType:{key:"ContentType",value:e},extension:{key:"Extension",value:t}}}),so=(e,t)=>new tM({name:"Override",attributes:{contentType:{key:"ContentType",value:e},partName:{key:"PartName",value:t}}}),ss=class extends I{constructor(){super("Types"),this.root.push(new sn({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(si("image/png","png")),this.root.push(si("image/jpeg","jpeg")),this.root.push(si("image/jpeg","jpg")),this.root.push(si("image/bmp","bmp")),this.root.push(si("image/gif","gif")),this.root.push(si("image/svg+xml","svg")),this.root.push(si("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(si("application/xml","xml")),this.root.push(si("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(so("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(so("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(so("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(so("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(so("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(so("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(so("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(so("application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml","/word/endnotes.xml")),this.root.push(so("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(so("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml")),this.root.push(so("application/vnd.openxmlformats-officedocument.theme+xml","/word/theme/theme1.xml"))}addComments(){this.root.push(so("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml"))}addCommentsExtended(){this.root.push(so("application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml","/word/commentsExtended.xml"))}addCommentsIds(){this.root.push(so("application/vnd.openxmlformats-officedocument.wordprocessingml.commentsIds+xml","/word/commentsIds.xml"))}addFooter(e){this.root.push(so("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addOverride(e,t){this.root.push(so(e,t))}addHeader(e){this.root.push(so("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}},sa={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},sl=class extends F{constructor(e,t){super(N({Ignorable:t},Object.fromEntries(e.map(e=>[e,sa[e]])))),S(this,"xmlKeys",N({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(sa).map(e=>[e,`xmlns:${e}`]))))}},su=class extends I{constructor(e){super("cp:coreProperties"),this.root.push(new sl(["cp","dc","dcterms","dcmitype","xsi"])),e.title&&this.root.push(new tB("dc:title",e.title)),e.subject&&this.root.push(new tB("dc:subject",e.subject)),e.creator&&this.root.push(new tB("dc:creator",e.creator)),e.keywords&&this.root.push(new tB("cp:keywords",e.keywords)),e.description&&this.root.push(new tB("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new tB("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new tB("cp:revision",String(e.revision))),this.root.push(new sh("dcterms:created")),this.root.push(new sh("dcterms:modified"))}},sc=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{type:"xsi:type"})}},sh=class extends I{constructor(e){super(e),this.root.push(new sc({type:"dcterms:W3CDTF"})),this.root.push(tC(new Date))}},sd=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},sp=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{formatId:"fmtid",pid:"pid",name:"name"})}},sf=class extends I{constructor(e,t){super("property"),this.root.push(new sp({formatId:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:t.name})),this.root.push(new sm(t.value))}},sm=class extends I{constructor(e){super("vt:lpwstr"),this.root.push(e)}},sg=class extends I{constructor(e){for(let t of(super("Properties"),S(this,"nextId",void 0),S(this,"properties",[]),this.root.push(new sd({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2,e))this.addCustomProperty(t)}
1prepForXml(e){return this.properties.forEach(e=>this.root.push(e)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new sf(this.nextId++,e))}},sw=class extends I{constructor({color:e,themeColor:t,themeShade:r,themeTint:n}){if(super("w:background"),"object"==typeof e&&(void 0!==t||void 0!==r||void 0!==n))throw Error("Invalid background. Expected a theme color in color, or themeColor, themeShade and themeTint, not both");this.root.push(new t8([{keys:t7,color:e},{key:"w:themeColor",value:t},{key:"w:themeShade",value:void 0===r?void 0:tv(r)},{key:"w:themeTint",value:void 0===n?void 0:tv(n)}]))}},sy=class extends I{constructor(e){super("w:document"),S(this,"body",void 0),this.root.push(new sl(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps","cx","cx1","cx2","cx3","cx4","cx5","cx6","cx7","cx8","aink","am3d","w16cex","w16cid","w16","w16sdtdh","w16se"],"w14 w15 wp14")),this.body=new o_,e.background&&this.root.push(new sw(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}},sv=class{constructor(e){S(this,"document",void 0),S(this,"relationships",void 0),this.document=new sy(e),this.relationships=new iv}get View(){return this.document}get Relationships(){return this.relationships}},sb=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},sx=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{type:"w:type",id:"w:id"})}},s_=class extends rj{constructor(){super({style:"EndnoteReference"}),this.root.push(new iF)}},sE={SEPARATOR:"separator",CONTINUATION_SEPARATOR:"continuationSeparator"},sk=class extends I{constructor(e){super("w:endnote"),this.root.push(new sx({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){let r=e.children[t];0===t&&r.addRunToFront(new s_),this.root.push(r)}}},sT=class extends I{constructor(){super("w:continuationSeparator")}},sS=class extends rj{constructor(){super({}),this.root.push(new sT)}},sA=class extends I{constructor(){super("w:separator")}},sR=class extends rj{constructor(){super({}),this.root.push(new sA)}},sI=class extends I{constructor(){super("w:endnotes"),this.root.push(new sb({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));let e=new sk({id:-1,type:sE.SEPARATOR,children:[new oe({spacing:{after:0,line:240,lineRule:iD.AUTO},children:[new sR]})]});this.root.push(e);let t=new sk({id:0,type:sE.CONTINUATION_SEPARATOR,children:[new oe({spacing:{after:0,line:240,lineRule:iD.AUTO},children:[new sS]})]});this.root.push(t)}createEndnote(e,t){let r=new sk({id:e,children:t});this.root.push(r)}},sC=class{constructor(){S(this,"endnotes",void 0),S(this,"relationships",void 0),this.endnotes=new sI,this.relationships=new iv}get View(){return this.endnotes}get Relationships(){return this.relationships}},sO=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}},sN=class extends tf{constructor(e,t){super("w:ftr",t),S(this,"refId",void 0),this.refId=e,t||this.root.push(new sO({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}},sF=class{constructor(e,t,r){S(this,"media",void 0),S(this,"footer",void 0),S(this,"relationships",void 0),this.media=e,this.footer=new sN(t,r),this.relationships=new iv}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}},sP=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{type:"w:type",id:"w:id"})}},sD=class extends I{constructor(){super("w:footnoteRef")}},sL=class extends rj{constructor(){super({style:"FootnoteReference"}),this.root.push(new sD)}},sB={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"},sM=class extends I{constructor(e){super("w:footnote"),this.root.push(new sP({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){let r=e.children[t];0===t&&r.addRunToFront(new sL),this.root.push(r)}}},sj=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},sU=class extends I{constructor(){super("w:footnotes"),this.root.push(new sj({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));let e=new sM({id:-1,type:sB.SEPERATOR,children:[new oe({spacing:{after:0,line:240,lineRule:iD.AUTO},children:[new sR]})]});this.root.push(e);
1let t=new sM({id:0,type:sB.CONTINUATION_SEPERATOR,children:[new oe({spacing:{after:0,line:240,lineRule:iD.AUTO},children:[new sS]})]});this.root.push(t)}createFootNote(e,t){let r=new sM({id:e,children:t});this.root.push(r)}},sz=class{constructor(){S(this,"footnotess",void 0),S(this,"relationships",void 0),this.footnotess=new sU,this.relationships=new iv}get View(){return this.footnotess}get Relationships(){return this.relationships}},sW=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}},sH=class extends tf{constructor(e,t){super("w:hdr",t),S(this,"refId",void 0),this.refId=e,t||this.root.push(new sW({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}},sK=class{constructor(e,t,r){S(this,"media",void 0),S(this,"header",void 0),S(this,"relationships",void 0),this.media=e,this.header=new sH(t,r),this.relationships=new iv}add(e){return this.header.add(e),this}addChildElement(e){this.header.addChildElement(e)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}},sG=class{constructor(){S(this,"map",void 0),this.map=new Map}addImage(e,t){this.map.set(e,t)}get Array(){return Array.from(this.map.values())}},sV={BULLET:"bullet"},s$=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w:tentative"})}},sq=class extends I{constructor(e){super("w:numFmt"),this.root.push(new D({val:e}))}},sZ=class extends I{constructor(e){super("w:lvlText"),this.root.push(new D({val:e}))}},sX=e=>{switch(e){case tj.CENTER:return"center";case tj.END:case tj.RIGHT:return"right";default:return"left"}},sY=class extends I{constructor(e){super("w:lvlJc"),this.root.push(new D({val:sX(e)}))}},sJ=class extends I{constructor(e){super("w:suff"),this.root.push(new D({val:e}))}},sQ=class extends I{constructor(){super("w:isLgl")}},s0=class extends I{constructor({level:e,format:t,text:r,alignment:n=tj.START,start:i=1,style:o,suffix:s,isLegalNumberingStyle:a}){if(super("w:lvl"),S(this,"paragraphProperties",void 0),S(this,"runProperties",void 0),this.root.push(new tL("w:start",tm(i))),t&&this.root.push(new sq(t)),(null==o?void 0:o.style)&&this.root.push(iM(o.style)),a&&this.root.push(new sQ),s&&this.root.push(new sJ(s)),r&&this.root.push(new sZ(r)),this.root.push(new sY(n)),this.paragraphProperties=new i9(o&&o.paragraph,{impl
1icitListParagraphStyle:!1}),this.runProperties=new rP((null==o?void 0:o.run)&&N(N({},o.run),{},{highlight:void 0,math:void 0,revision:void 0})),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),e>9)throw Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new s$({ilvl:tm(e),tentative:1}))}},s1=class extends s0{},s2=class extends I{constructor(e){super("w:multiLevelType"),this.root.push(new D({val:e}))}},s6=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}},s5=class extends I{constructor(e,t){for(let r of(super("w:abstractNum"),S(this,"id",void 0),this.root.push(new s6({abstractNumId:tm(e),restartNumberingAfterBreak:0})),this.root.push(new s2("hybridMultilevel")),this.id=e,t))this.root.push(new s1(r))}},s3=class extends I{constructor(e){super("w:abstractNumId"),this.root.push(new D({val:e}))}},s8=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{numId:"w:numId"})}},s4=class extends I{constructor(e){if(super("w:num"),S(this,"numId",void 0),S(this,"reference",void 0),S(this,"instance",void 0),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new s8({numId:tm(e.numId)})),this.root.push(new s3(tm(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(let t of e.overrideLevels)this.root.push(new s7(t.num,t.start))}},s9=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{ilvl:"w:ilvl"})}},s7=class extends I{constructor(e,t){super("w:lvlOverride"),this.root.push(new s9({ilvl:e})),void 0!==t&&this.root.push(new at(t))}},ae=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{val:"w:val"})}},at=class extends I{constructor(e){super("w:startOverride"),this.root.push(new ae({val:e}))}},ar=class extends I{constructor(e){super("w:numbering"),S(this,"abstractNumberingMap",new Map),S(this,"concreteNumberingMap",new Map),S(this,"referenceConfigMap",new Map),S(this,"abstractNumUniqueNumericId",r5()),S(this,"concreteNumUniqueNumericId",r3()),this.root.push(new sl(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));let t=new s5(this.abstractNumUniqueNumericId(),[{level:0,format:sV.BULLET,text:"●",alignment:tj.LEFT,style:{paragraph:{indent:{left:r2(.5),hanging:r2(.25)}}}},{level:1,format:sV.BULLET,text:"○",alignment:tj.LEFT,style:{paragraph:{indent:{left:r2(1),hanging:r2(.25)}}}},{level:2,format:sV.BULLET,text:"■",alignment:tj.LEFT,style:{paragraph:{indent:{left:2160,hanging:r2(.25)}}}},{level:3,format:sV.BULLET,text:"●",alignment:tj.LEFT,style:{paragraph:{indent:{left:2880,hanging:r2(.25)}}}},{level:4,format:sV.BULLET,text:"○",alignment:tj.LEFT,style:{paragraph:{indent:{left:3600,hanging:r2(.25)}}}},{level:5,format:sV.BULLET,text:"■",alignment:tj.LEFT,style:{paragraph:{indent:{left:4320,hanging:r2(.25)}}}},{level:6,format:sV.BULLET,text:"●",alignment:tj.LEFT,style:{paragraph:{indent:{left:5040,hanging:r2(.25)}}}},{level:7,format:sV.BULLET,text:"●",alignment:tj.LEFT,style:{paragraph:{indent:{left:5760,hanging:r2(.25)}}}},{level:8,format:sV.BULLET,text:"●",alignment:tj.LEFT,style:{paragraph:{indent:{left:6480,hanging:r2(.25)}}}}]);for(let r of(this.concreteNumberingMap.set("default-bullet-numbering",new s4({numId:1,abstractNumId:t.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",t),e.config))this.abstractNumberingMap.set(r.reference,new s5(this.abstractNumUniqueNumericId(),r.levels)),this.referenceConfigMap.set(r.reference,r.levels)}prepForXml(e){for(let e of this.abstractNumberingMap.values())this.root.push(e);for(let e of this.concreteNumberingMap.values())this.root.push(e);return super.prepForXml(e)}createConcreteNumberingInstance(e,t){let r=this.abstractNumberingMap.get(e);if(!r)return;let n=`${e}-${t}`;if(this.concreteNumberingMap.has(n))return;let i=this.referenceConfigMap.get(e),o=i&&i[0].start,s={numId:this.concreteNumUniqueNumericId(),abstractNumId:r.id,reference:e,instance:t,overrideLevels:["number"==typeof o&&Number.isInteger(o)?{num:0,start:o}:{num:0,start:1}]};this.concreteNumberingMap.set(n,new s4(s))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}},an=class{constructor(e,t=new Set){S(this,"contentTypes",void 0),S(this,"existingPaths",void 0),S(this,"paths",new Map),S(this,"folders",new WeakMap),this.contentTypes=e,this.existingPaths=t}add(e){let t=this.paths.get(e);if(void 0!==t)return t;let{folder:r,name:n,extension:i,contentType:o}=e.options,s=new Set([...this.existingPaths,...this.paths.values()]),a=1;for(;s.has(`${r}/${n}${a}.${i}`);)a++;let l=`${r}/${n}${a}.${i}`;return this.paths.set(e,l),this.contentTypes.addOverride(o,`/word/${l}`),l}get Array(){return[...this.paths].map(([e,t])=>({part:e,path:t}))}createRelationships(e){let t=new iv;return this.folders.set(t,e.slice(0,e.indexOf("/"))),t}getTarget(e,t){let r=this.folders.get(e);return void 0===r?t:t.startsWith(`${r}/`)?t.slice(r.length+1):`../${t}`}},ai=e=>new tM({name:"w:compatSetting",attributes:{version:{key:"w:val",value:e},name:{key:"w:name",value:"compatibilityMode"},uri:{key:"w:uri",value:"http://schemas.microsoft.com/office/word"}}}),ao=class extends I{constructor(e){super("w:compat"),e.useSingleBorderforContiguousCells&&this.root.push(new tO("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new tO("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new tO("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new tO("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new tO("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new tO("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new tO("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new tO("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new tO("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new tO("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new tO("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new tO("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new tO("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new tO("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new tO("w:printColBlack",e.printColorsBlack)),e.spaceWi
1dth&&this.root.push(new tO("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new tO("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new tO("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new tO("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new tO("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new tO("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new tO("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new tO("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new tO("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new tO("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new tO("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new tO("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new tO("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new tO("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new tO("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new tO("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new tO("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new tO("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new tO("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new tO("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new tO("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new tO("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new tO("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new tO("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new tO("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new tO("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new tO("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new tO("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new tO("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new tO("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new tO("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new tO("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new tO("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new tO("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new tO("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new tO("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new tO("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new tO("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new tO("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new tO("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new tO("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new tO("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new tO("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new tO("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new tO("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new tO("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new tO("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new tO("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new tO("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new tO("w:cachedColBalance",e.cachedColumnBalance)),e.ver
1sion&&this.root.push(ai(e.version))}},as=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},aa=class extends I{constructor(e){var t,r,n,i,o,s,a,l;super("w:settings"),this.root.push(new as({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new tO("w:displayBackgroundShape",!0)),void 0!==e.trackRevisions&&this.root.push(new tO("w:trackRevisions",e.trackRevisions)),void 0!==e.defaultTabStop&&this.root.push(new tL("w:defaultTabStop",e.defaultTabStop)),(null===(t=e.hyphenation)||void 0===t?void 0:t.autoHyphenation)!==void 0&&this.root.push(new tO("w:autoHyphenation",e.hyphenation.autoHyphenation)),(null===(r=e.hyphenation)||void 0===r?void 0:r.consecutiveHyphenLimit)!==void 0&&this.root.push(new tL("w:consecutiveHyphenLimit",e.hyphenation.consecutiveHyphenLimit)),(null===(n=e.hyphenation)||void 0===n?void 0:n.hyphenationZone)!==void 0&&this.root.push(new tL("w:hyphenationZone",e.hyphenation.hyphenationZone)),(null===(i=e.hyphenation)||void 0===i?void 0:i.doNotHyphenateCaps)!==void 0&&this.root.push(new tO("w:doNotHyphenateCaps",e.hyphenation.doNotHyphenateCaps)),void 0!==e.evenAndOddHeaders&&this.root.push(new tO("w:evenAndOddHeaders",e.evenAndOddHeaders)),void 0!==e.updateFields&&this.root.push(new tO("w:updateFields",e.updateFields)),this.root.push(new ao(N(N({},null!==(o=e.compatibility)&&void 0!==o?o:{}),{},{version:null!==(s=null!==(a=null===(l=e.compatibility)||void 0===l?void 0:l.version)&&void 0!==a?a:e.compatibilityModeVersion)&&void 0!==s?s:15})))}},al=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{val:"w:val"})}},au=class extends I{constructor(e){super("w:name"),this.root.push(new al({val:e}))}},ac=class extends I{constructor(e){super("w:uiPriority"),this.root.push(new al({val:tm(e)}))}},ah=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}},ad=class extends I{constructor(e,t){super("w:style"),this.root.push(new ah(e)),t.name&&this.root.push(new au(t.name)),t.basedOn&&this.root.push(new tP("w:basedOn",t.basedOn)),t.next&&this.root.push(new tP("w:next",t.next)),t.link&&this.root.push(new tP("w:link",t.link)),void 0!==t.uiPriority&&this.root.push(new ac(t.uiPriority)),void 0!==t.semiHidden&&this.root.push(new tO("w:semiHidden",t.semiHidden)),void 0!==t.unhideWhenUsed&&this.root.push(new tO("w:unhideWhenUsed",t.unhideWhenUsed)),void 0!==t.quickFormat&&this.root.push(new tO("w:qFormat",t.quickFormat))}},ap=class extends ad{constructor(e){super({type:"paragraph",styleId:e.id},e),S(this,"paragraphProperties",void 0),S(this,"runProperties",void 0),this.paragraphProperties=new i9(e.paragraph,{implicitListParagraphStyle:!1}),this.runProperties=new rP(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}},af=class extends ad{constructor(e){super({type:"character",styleId:e.id},N({uiPriority:99,unhideWhenUsed:!0},e)),S(this,"runProperties",void 0),this.runProperties=new rP(e.run),this.root.push(this.runProperties)}},am=class extends ap{constructor(e){super(N({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}},ag=class extends am{constructor(e){super(N({id:"Title",name:"Title"},e))}},aw=class extends am{constructor(e){super(N({id:"Heading1",name:"Heading 1"},e))}},ay=class extends am{constructor(e){super(N({id:"Heading2",name:"Heading 2"},e))}},av=class extends am{constructor(e){super(N({id:"Heading3",name:"Heading 3"},e))}},ab=class extends am{constructor(e){super(N({id:"Heading4",name:"Heading 4"},e))}},ax=class extends am{constructor(e){super(N({id:"Heading5",name:"Heading 5"},e))}},a_=class extends am{constructor(e){super(N({id:"Heading6",name:"Heading 6"},e))}},aE=class extends am{constructor(e){super(N({id:"Strong",name:"Strong"},e))}},ak=class extends ap{constructor(e){super(N({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}}
1,aT=class extends ap{constructor(e){super(N({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:iD.AUTO}},run:{size:20}},e))}},aS=class extends af{constructor(e){super(N({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}},aA=class extends af{constructor(e){super(N({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}},aR=class extends ap{constructor(e){super(N({id:"EndnoteText",name:"endnote text",link:"EndnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:iD.AUTO}},run:{size:20}},e))}},aI=class extends af{constructor(e){super(N({id:"EndnoteReference",name:"endnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}},aC=class extends af{constructor(e){super(N({id:"EndnoteTextChar",name:"Endnote Text Char",basedOn:"DefaultParagraphFont",link:"EndnoteText",semiHidden:!0,run:{size:20}},e))}},aO=class extends af{constructor(e){super(N({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:rN.SINGLE}}},e))}},aN=e=>"object"==typeof e?Object.keys(e)[0]:void 0,aF=e=>{var t;return null===(t=[e["w:style"]].flat().find(e=>e._attr))||void 0===t?void 0:t._attr},aP=e=>{var t;return null===(t=aF(e))||void 0===t?void 0:t["w:styleId"]},aD=e=>{var t;let r=aF(e);return(null!==(t=null==r?void 0:r["w:type"])&&void 0!==t?t:"paragraph")==="paragraph"&&(null==r?void 0:r["w:default"])!==void 0&&!["0","false","off"].includes(String(r["w:default"]))},aL=e=>({"w:style":[e["w:style"]].flat().map(e=>e._attr?{_attr:N(N({},e._attr),{},{"w:default":"1"})}:e)}),aB=class extends I{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(let t of e.importedStyles)this.root.push(t);if(e.paragraphStyles)for(let t of e.paragraphStyles)this.root.push(new ap(t));if(e.characterStyles)for(let t of e.characterStyles)this.root.push(new af(t))}prepForXml(e){let t=super.prepForXml(e),r=t["w:styles"];if(!Array.isArray(r))return t;let n=e=>r.filter(t=>aN(t)===e),i=r.map(e=>"w:style"===aN(e)?aP(e):void 0),o=r.filter((e,t)=>!["_attr","w:docDefaults","w:latentStyles"].includes(aN(e))&&(void 0===i[t]||i.lastIndexOf(i[t])===t)),s=o.some(e=>"w:style"===aN(e)&&aD(e))?o:o.map(e=>{var t,r;return"w:style"===aN(e)&&"Normal"===aP(e)&&(null!==(t=null===(r=aF(e))||void 0===r?void 0:r["w:type"])&&void 0!==t?t:"paragraph")==="paragraph"?aL(e):e});return{"w:styles":[...n("_attr"),...n("w:docDefaults").slice(-1),...n("w:latentStyles").slice(-1),...s]}}},aM=class extends I{constructor(e){super("w:pPrDefault"),this.root.push(new i9(e,{implicitListParagraphStyle:!1}))}},aj=class extends I{constructor(e){super("w:rPrDefault"),this.root.push(new rP(e))}},aU=class extends I{constructor(e){super("w:docDefaults"),S(this,"runPropertiesDefaults",void 0),S(this,"paragraphPropertiesDefaults",void 0),this.runPropertiesDefaults=new aj(e.run),this.paragraphPropertiesDefaults=new aM(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}},az=class{newInstance(e){let t;for(let r of(0,tu.xml2js)(e,{compact:!1}).elements||[])"w:styles"===r.name&&(t=r);if(void 0===t)throw Error("can not find styles element");let r=t.elements||[];return{initialStyles:new tp(t.attributes),importedStyles:r.map(e=>tc(e))}}},aW=(e={})=>{var t;return{normal:new ap({id:"Normal",name:"Normal",quickFormat:!0}),document:new aU(null!==(t=e.document)&&void 0!==t?t:{}),title:new ag(N({run:{size:56}},e.title)),heading1:new aw(N({run:{color:"2E74B5",size:32}},e.heading1)),heading2:new ay(N({run:{color:"2E74B5",size:26}},e.heading2)),heading3:new av(N({run:{color:"1F4D78",size:24}},e.heading3)),heading4:new ab(N({run:{color:"2E74B5",italics:!0}},e.heading4)),heading5:new ax(N({run:{color:"2E74B5"}}
1,e.heading5)),heading6:new a_(N({run:{color:"1F4D78"}},e.heading6)),strong:new aE(N({run:{bold:!0}},e.strong)),listParagraph:new ak(e.listParagraph||{}),hyperlink:new aO(e.hyperlink||{}),footnoteReference:new aS(e.footnoteReference||{}),footnoteText:new aT(e.footnoteText||{}),footnoteTextChar:new aA(e.footnoteTextChar||{}),endnoteReference:new aI(e.endnoteReference||{}),endnoteText:new aR(e.endnoteText||{}),endnoteTextChar:new aC(e.endnoteTextChar||{})}},aH=class{newInstance(e={}){return{initialStyles:new sl(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:Object.values(aW(e))}}},aK={headings:{latin:"Calibri Light",panose:"020F0302020204030204"},body:{latin:"Calibri",panose:"020F0502020204030204"}},aG=[["Jpan","游ゴシック Light","游明朝"],["Hang","맑은 고딕"],["Hans","等线 Light","等线"],["Hant","新細明體"],["Arab","Times New Roman","Arial"],["Hebr","Times New Roman","Arial"],["Thai","Angsana New","Cordia New"],["Ethi","Nyala"],["Beng","Vrinda"],["Gujr","Shruti"],["Khmr","MoolBoran","DaunPenh"],["Knda","Tunga"],["Guru","Raavi"],["Cans","Euphemia"],["Cher","Plantagenet Cherokee"],["Yiii","Microsoft Yi Baiti"],["Tibt","Microsoft Himalaya"],["Thaa","MV Boli"],["Deva","Mangal"],["Telu","Gautami"],["Taml","Latha"],["Syrc","Estrangelo Edessa"],["Orya","Kalinga"],["Mlym","Kartika"],["Laoo","DokChampa"],["Sinh","Iskoola Pota"],["Mong","Mongolian Baiti"],["Viet","Times New Roman","Arial"],["Uigh","Microsoft Uighur"],["Geor","Sylfaen"],["Armn","Arial"],["Bugi","Leelawadee UI"],["Bopo","Microsoft JhengHei"],["Java","Javanese Text"],["Lisu","Segoe UI"],["Mymr","Myanmar Text"],["Nkoo","Ebrima"],["Olck","Nirmala UI"],["Osma","Ebrima"],["Phag","Phagspa"],["Syrn","Estrangelo Edessa"],["Syrj","Estrangelo Edessa"],["Syre","Estrangelo Edessa"],["Sora","Nirmala UI"],["Tale","Microsoft Tai Le"],["Talu","Microsoft New Tai Lue"],["Tfng","Ebrima"]],aV=(e,t,r)=>new tM({name:e,attributes:{typeface:{key:"typeface",value:t},panose:{key:"panose",value:r}}}),a$=(e,t)=>{let r=t[e],n="string"==typeof r?r:null==r?void 0:r.latin;return null!=n?n:aK[e].latin},aq=(e,t)=>{let r=t[e],{eastAsia:n="",complexScript:i=""}="object"==typeof r?r:{},o=a$(e,t),s=aK[e];return new tM({name:"headings"===e?"a:majorFont":"a:minorFont",children:[aV("a:latin",o,o===s.latin?s.panose:void 0),aV("a:ea",n),aV("a:cs",i),...aG.map(([t,r,n=r])=>new tM({name:"a:font",attributes:{script:{key:"script",value:t},typeface:{key:"typeface",value:"headings"===e?r:n}}}))]})},aZ=(e,t={})=>new tM({name:"a:fontScheme",attributes:{name:{key:"name",value:e}},children:[aq("headings",t),aq("body",t)]}),aX=(e=[])=>new tM({name:"a:schemeClr",attributes:{value:{key:"val",value:"phClr"}},children:e.map(([e,t])=>new tM({name:`a:${e}`,attributes:{value:{key:"val",value:t}}}))}),aY=e=>new tM({name:"a:solidFill",children:[aX(e)]}),aJ=e=>new tM({name:"a:gradFill",attributes:{rotateWithShape:{key:"rotWithShape",value:!0}},children:[new tM({name:"a:gsLst",children:e.map((e,t)=>new tM({name:"a:gs",attributes:{position:{key:"pos",value:5e4*t}},children:[aX(e)]}))}),new tM({name:"a:lin",attributes:{angle:{key:"ang",value:54e5},scaled:{key:"scaled",value:!1}}})]}),aQ=e=>new tM({name:"a:ln",attributes:{width:{key:"w",value:e},cap:{key:"cap",value:"flat"},compound:{key:"cmpd",value:"sng"},alignment:{key:"algn",value:"ctr"}},children:[aY(),new tM({name:"a:prstDash",attributes:{value:{key:"val",value:"solid"}}}),new tM({name:"a:miter",attributes:{limit:{key:"lim",value:8e5}}})]}),a0=e=>new tM({name:"a:effectStyle",children:[new tM({name:"a:effectLst",children:e})]}),a1=()=>new tM({name:"a:outerShdw",attributes:{blurRadius:{key:"blurRad",value:57150},distance:{key:"dist",value:19050},direction:{key:"dir",value:54e5},alignment:{key:"algn",value:"ctr"},rotateWithShape:{key:"rotWithShape",value:!1}},children:[new tM({name:"a:srgbClr",attributes:{value:{key:"val",value:"
1000000"}},children:[new tM({name:"a:alpha",attributes:{value:{key:"val",value:63e3}}})]})]}),a2=()=>new tM({name:"a:fmtScheme",attributes:{name:{key:"name",value:"Office"}},children:[new tM({name:"a:fillStyleLst",children:[aY(),aJ([[["lumMod",11e4],["satMod",105e3],["tint",67e3]],[["lumMod",105e3],["satMod",103e3],["tint",73e3]],[["lumMod",105e3],["satMod",109e3],["tint",81e3]]]),aJ([[["satMod",103e3],["lumMod",102e3],["tint",94e3]],[["satMod",11e4],["lumMod",1e5],["shade",1e5]],[["lumMod",99e3],["satMod",12e4],["shade",78e3]]])]}),new tM({name:"a:lnStyleLst",children:[aQ(6350),aQ(12700),aQ(19050)]}),new tM({name:"a:effectStyleLst",children:[a0([]),a0([]),a0([a1()])]}),new tM({name:"a:bgFillStyleLst",children:[aY(),aY([["tint",95e3],["satMod",17e4]]),aJ([[["tint",93e3],["satMod",15e4],["shade",98e3],["lumMod",102e3]],[["tint",98e3],["satMod",13e4],["shade",9e4],["lumMod",103e3]],[["shade",63e3],["satMod",12e4]]])]})]}),a6=class extends I{constructor({name:e="Office Theme",colors:t,fonts:r}={}){super("a:theme"),S(this,"colors",void 0),this.colors=tG(t),this.root.push(new P({namespace:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"},name:{key:"name",value:e}})),this.root.push(new tM({name:"a:themeElements",children:[tq(t?e:"Office",t),aZ(r?e:"Office",r),a2()]})),this.root.push(new tM({name:"a:objectDefaults"})),this.root.push(new tM({name:"a:extraClrSchemeLst"}))}get Colors(){return this.colors}},a5=class{constructor(e){var t,r,n,i,o,s,a,l,u,c,h,d,p,f;if(S(this,"currentRelationshipId",1),S(this,"documentWrapper",void 0),S(this,"headers",[]),S(this,"footers",[]),S(this,"coreProperties",void 0),S(this,"numbering",void 0),S(this,"media",void 0),S(this,"fileRelationships",void 0),S(this,"footnotesWrapper",void 0),S(this,"endnotesWrapper",void 0),S(this,"settings",void 0),S(this,"contentTypes",void 0),S(this,"customProperties",void 0),S(this,"appProperties",void 0),S(this,"styles",void 0),S(this,"comments",void 0),S(this,"commentsExtended",void 0),S(this,"commentsIds",void 0),S(this,"fontWrapper",void 0),S(this,"theme",void 0),S(this,"packageParts",void 0),this.coreProperties=new su(N(N({},e),{},{creator:null!==(t=e.creator)&&void 0!==t?t:"Un-named",revision:null!==(r=e.revision)&&void 0!==r?r:1,lastModifiedBy:null!==(n=e.lastModifiedBy)&&void 0!==n?n:"Un-named"})),this.numbering=new ar(e.numbering?e.numbering:{config:[]}),this.comments=new ik(null!==(i=e.comments)&&void 0!==i?i:{children:[]}),this.comments.ThreadData&&(this.commentsExtended=new iR(this.comments.ThreadData)),this.comments.CommentIdsData&&(this.commentsIds=new iN(this.comments.CommentIdsData)),this.fileRelationships=new iv,this.customProperties=new sg(null!==(o=e.customProperties)&&void 0!==o?o:[]),this.appProperties=new sr,this.footnotesWrapper=new sz,this.endnotesWrapper=new sC,this.contentTypes=new ss,this.packageParts=new an(this.contentTypes),this.documentWrapper=new sv({background:e.background}),this.settings=new aa({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:null===(s=e.features)||void 0===s?void 0:s.trackRevisions,updateFields:null===(a=e.features)||void 0===a?void 0:a.updateFields,defaultTabStop:e.defaultTabStop,hyphenation:{autoHyphenation:null===(l=e.hyphenation)||void 0===l?void 0:l.autoHyphenation,hyphenationZone:null===(u=e.hyphenation)||void 0===u?void 0:u.hyphenationZone,consecutiveHyphenLimit:null===(c=e.hyphenation)||void 0===c?void 0:c.consecutiveHyphenLimit,doNotHyphenateCaps:null===(h=e.hyphenation)||void 0===h?void 0:h.doNotHyphenateCaps}}),this.media=new sG,void 0!==e.externalStyles){let t=null!==(p=null===(f=e.styles)||void 0===f?void 0:f.default)&&void 0!==p?p:{},r=Object.entries(aW(t)),n=([e])=>void 0!==t[e],i=new az().newInstance(e.externalStyles);this.styles=new aB(N(N({},i),{},{importedStyles:[...r.filter(e=>!n(e)).map(([,e])=>e),...i.importedStyles,...r.filter(n).map(([,e])=>e)]}))}else if(e.styles){let t=new aH().newInstance(e.styles.default);this.styles=new aB(N(N({},t),e.styles))}else{let e=new aH;this.styles=new aB(e.newInstance())}for(let t of(this.addDefaultRelationships(),e.sections))this.addSection(t);
1if(e.footnotes)for(let t in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(t),e.footnotes[t].children);if(e.endnotes)for(let t in e.endnotes)this.endnotesWrapper.View.createEndnote(parseFloat(t),e.endnotes[t].children);this.fontWrapper=new i3(null!==(d=e.fonts)&&void 0!==d?d:[]),this.theme=new a6(e.theme),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme","theme/theme1.xml")}addSection({headers:e={},footers:t={},children:r,properties:n}){for(let i of(this.documentWrapper.View.Body.addSection(N(N({},n),{},{headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,first:e.first?this.createHeader(e.first):void 0,even:e.even?this.createHeader(e.even):void 0},footerWrapperGroup:{default:t.default?this.createFooter(t.default):void 0,first:t.first?this.createFooter(t.first):void 0,even:t.even?this.createFooter(t.even):void 0}})),r))this.documentWrapper.View.add(i)}createHeader(e){let t=new sK(this.media,this.currentRelationshipId++);for(let r of e.options.children)t.add(r);return this.addHeaderToDocument(t),t}createFooter(e){let t=new sF(this.media,this.currentRelationshipId++);for(let r of e.options.children)t.add(r);return this.addFooterToDocument(t),t}addHeaderToDocument(e,t=oo.DEFAULT){this.headers.push({header:e,type:t}),this.documentWrapper.Relationships.addRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(e,t=oo.DEFAULT){this.footers.push({footer:e,type:t}),this.documentWrapper.Relationships.addRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.addRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.addRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.addRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.addRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes","endnotes.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.comments.IsEmpty||(this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml"),this.contentTypes.addComments()),this.commentsExtended&&(this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.microsoft.com/office/2011/relationships/commentsExtended","commentsExtended.xml"),this.contentTypes.addCommentsExtended()),this.commentsIds&&(this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.microsoft.com/office/2016/09/relationships/commentsIds","commentsIds.xml"),this.contentTypes.addCommentsIds())}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(e=>e.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Endnotes(){return this.endnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get CommentsExtended(){return this.commentsExtended}get CommentsIds(){return this.commentsIds}get FontTable(){return this.fontWrapper}
1get Theme(){return this.theme}get PackageParts(){return this.packageParts}},a3=class extends F{constructor(...e){super(...e),S(this,"xmlKeys",{val:"w14:val",symbolfont:"w14:font"})}},a8=e=>void 0===e?void 0:e?"t":"f",a4={flip:"flip",height:"height",left:"left",marginBottom:"margin-bottom",marginLeft:"margin-left",marginRight:"margin-right",marginTop:"margin-top",positionHorizontal:"mso-position-horizontal",positionHorizontalRelative:"mso-position-horizontal-relative",positionVertical:"mso-position-vertical",positionVerticalRelative:"mso-position-vertical-relative",wrapDistanceBottom:"mso-wrap-distance-bottom",wrapDistanceLeft:"mso-wrap-distance-left",wrapDistanceRight:"mso-wrap-distance-right",wrapDistanceTop:"mso-wrap-distance-top",wrapEdited:"mso-wrap-edited",wrapStyle:"mso-wrap-style",position:"position",rotation:"rotation",top:"top",visibility:"visibility",width:"width",zIndex:"z-index"},a9=e=>e?Object.entries(e).filter(([,e])=>void 0!==e).map(([e,t])=>`${a4[e]}:${t}`).join(";"):void 0,a7=({children:e=[]})=>new tM({name:"w:txbxContent",children:e}),le=x((e,t)=>{M(),V(),function(r){"object"==typeof e&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define([],r):("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:this).JSZip=r()}(function(){return(function e(t,r,n){function i(s,a){if(!r[s]){if(!t[s]){var l="function"==typeof k&&k;if(!a&&l)return l(s,!0);if(o)return o(s,!0);var u=Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[s]={exports:{}};t[s][0].call(c.exports,function(e){return i(t[s][1][e]||e)},c,c.exports,e,t,r,n)}return r[s].exports}for(var o="function"==typeof k&&k,s=0;s<n.length;s++)i(n[s]);return i})({1:[function(e,t,r){var n=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,i,s,a,l,u,c=[],h=0,d=e.length,p=d,f="string"!==n.getTypeOf(e);h<e.length;)p=d-h,i=f?(t=e[h++],r=h<d?e[h++]:0,h<d?e[h++]:0):(t=e.charCodeAt(h++),r=h<d?e.charCodeAt(h++):0,h<d?e.charCodeAt(h++):0),s=t>>2,a=(3&t)<<4|r>>4,l=1<p?(15&r)<<2|i>>6:64,u=2<p?63&i:64,c.push(o.charAt(s)+o.charAt(a)+o.charAt(l)+o.charAt(u));return c.join("")},r.decode=function(e){var t,r,n,s,a,l,u=0,c=0,h="data:";if(e.substr(0,h.length)===h)throw Error("Invalid base64 input, it looks like a data url.");var d,p=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&p--,e.charAt(e.length-2)===o.charAt(64)&&p--,p%1!=0)throw Error("Invalid base64 input, bad content length.");for(d=i.uint8array?new Uint8Array(0|p):Array(0|p);u<e.length;)t=o.indexOf(e.charAt(u++))<<2|(s=o.indexOf(e.charAt(u++)))>>4,r=(15&s)<<4|(a=o.indexOf(e.charAt(u++)))>>2,n=(3&a)<<6|(l=o.indexOf(e.charAt(u++))),d[c++]=t,64!==a&&(d[c++]=r),64!==l&&(d[c++]=n);return d}},{"./support":30,"./utils":32}],2:[function(e,t,r){var n=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),s=e("./stream/DataLengthProbe");function a(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}a.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(e,t,r){return e.pipe(new o).pipe(new s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},t.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){var n=e("./utils"),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?0xedb88320^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var o=0+r;e^=-1;for(var s=0;s<o;s++)e=e>>>8^i[255&(e^t[s])];return -1^e}(0|t,e,e.length,0):function(e,t,r,n){var o=0+r;e^=-1;for(var s=0;s<o;s++)e=e>>>8^i[255&(e^t.charCodeAt(s))];return -1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),s=e("./stream/GenericWorker"),a=n?"uint8array":"array";function l(e,t){s.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",o.inherits(l,s),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(a,e.data),!1)},l.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)}
vendor: 6,396 bytes, line 1
1,l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function i(e,t,r,i,s,c){var h,d,p,f,m=e.file,g=e.compression,w=c!==a.utf8encode,y=o.transformTo("string",c(m.name)),v=o.transformTo("string",a.utf8encode(m.name)),b=m.comment,x=o.transformTo("string",c(b)),_=o.transformTo("string",a.utf8encode(b)),E=v.length!==m.name.length,k=_.length!==b.length,T="",S="",A="",R=m.dir,I=m.date,C={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(C.crc32=e.crc32,C.compressedSize=e.compressedSize,C.uncompressedSize=e.uncompressedSize);var O=0;t&&(O|=8),!w&&(E||k)&&(O|=2048);var N=0,F=0;R&&(N|=16),"UNIX"===s?(F=798,N|=(d=h=m.unixPermissions,h||(d=R?16893:33204),(65535&d)<<16)):(F=20,N|=63&(m.dosPermissions||0)),p=(I.getUTCHours()<<6|I.getUTCMinutes())<<5|I.getUTCSeconds()/2,f=(I.getUTCFullYear()-1980<<4|I.getUTCMonth()+1)<<5|I.getUTCDate(),E&&(S=n(1,1)+n(l(y),4)+v,T+="up"+n(S.length,2)+S),k&&(A=n(1,1)+n(l(x),4)+_,T+="uc"+n(A.length,2)+A);var P="";return P+="\n\0",P+=n(O,2),P+=g.magic,P+=n(p,2),P+=n(f,2),P+=n(C.crc32,4),P+=n(C.compressedSize,4),P+=n(C.uncompressedSize,4),P+=n(y.length,2),P+=n(T.length,2),{fileRecord:u.LOCAL_FILE_HEADER+P+y+T,dirRecord:u.CENTRAL_FILE_HEADER+n(F,2)+P+n(x.length,2)+"\0\0\0\0"+n(N,4)+n(i,4)+y+T+x}}var o=e("../utils"),s=e("../stream/GenericWorker"),a=e("../utf8"),l=e("../crc32"),u=e("../signature");function c(e,t,r,n){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(c,s),c.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,s.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:u.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e,t,r,i,s=this.bytesWritten,a=0;a<this.dirRecords.length;a++)this.push({data:this.dirRecords[a],meta:{percent:100}});var l=this.bytesWritten-s,c=(e=this.dirRecords.length,t=this.zipComment,r=this.encodeFileName,i=o.transformTo("string",r(t)),u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(e,2)+n(e,2)+n(l,4)+n(s,4)+n(i.length,2)+i);this.push({data:c,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},c.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(e){var t=this._sources;if(!s.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},c.prototype.lock=function(){s.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){var n=e("../compressions"),i=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var o=new i(t.streamFiles,r,t.platform,t.encodeFileName),s=0;try{e.forEach(function(e,r){s++;var i=function(e,t){var r=e||t,i=n[r];if(!i)throw Error(r+" is not a valid compression method !");return i}(r.options.compression,t.compression),a=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,u=r.date;r._compressWorker(i,a).withStreamInfo("file",{name:e,dir:l,date:u,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(o)}),o.entriesCount=s}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.2",n.loadAsync=function(e,t){return new n().loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){var n=e("./utils"),i=e("./external"),o=e("./utf8"),s=e("./zipEntries"),a=e("./stream/Crc32Probe"),l=e("./nodejsUtils");t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip f
1ile",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var r=new s(t);return r.load(e),r}).then(function(e){var r=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var o=0;o<n.length;o++)r.push(function(e){return new i.Promise(function(t,r){var n=e.decompressed.getContentWorker().pipe(new a);n.on("error",function(e){r(e)}).on("end",function(){n.streamInfo.crc32!==e.decompressed.crc32?r(Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}(n[o]));return i.Promise.all(r)}).then(function(e){for(var i=e.shift(),o=i.files,s=0;s<o.length;s++){var a=o[s],l=a.fileNameStr,u=n.resolve(a.fileNameStr);r.file(u,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:t.createFolders}),a.dir||(r.file(u).unsafeOriginalName=l)}return i.zipComment.length&&(r.comment=i.zipComment),r})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){var n=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(o,i),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){var n=e("readable-stream").Readable;function i(e,t,r){n.call(this,t),this._helper=e;var i=this;e.on("data",function(e,t){i.push(e)||i._helper.pause(),r&&r(t)}).on("error",function(e){i.emit("error",e)}).on("end",function(){i.push(null)})}e("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){t.exports={isNode:void 0!==p,newBufferFrom:function(e,t){if(p.from&&p.from!==Uint8Array.from)return p.from(e,t);if("number"==typeof e)throw Error('The "data" argument must not be a number');return new p(e,t)},allocBuffer:function(e){if(p.alloc)return p.alloc(e);var t=new p(e);return t.fill(0),t},isBuffer:function(e){return p.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){function n(e,t,r){var n,i=o.getTypeOf(t),a=o.extend(r||{},l);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(e=m(e)),a.createFolders&&(n=f(e))&&g.call(this,n,!0);var h="string"===i&&!1===a.binary&&!1===a.base64;r&&void 0!==r.binary||(a.binary=!h),(t instanceof u&&0===t.uncompressedSize||a.dir||!t||0===t.length)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",i="string");var w=null;w=t instanceof u||t instanceof s?t:d.isNode&&d.isStream(t)?new p(e,t):o.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var y=new c(e,w,a);this.files[e]=y}var i=e("./utf8"),o=e("./utils"),s=e("./stream/GenericWorker"),a=e("./stream/StreamHelper"),l=e("./defaults"),u=e("./compressedObject"),c=e("./zipObject"),h=e("./generate"),d=e("./nodejsUtils"),p=e("./nodejs/NodejsStreamInputAdapter"),f=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function w(e){return"[object RegExp]"===Object.prototype.toString.call(e)}t.exports={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")}
vendor: 4,260 bytes, line 1
1,forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[];return this.forEach(function(r,n){e(r,n)&&t.push(n)}),t},file:function(e,t,r){if(1!=arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(w(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(w(e))return this.filter(function(t,r){return r.dir&&e.test(t)});var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(t,r){return r.name.slice(0,e.length)===e}),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw Error("No output type specified.");o.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=h.generateWorker(this,r,n)}catch(e){(t=new s("error")).error(e)}return new a(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===i)return o-this.zero;return -1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&r===o[1]&&n===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t}
vendor: 4,225 bytes, line 1
1,t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){var n=e("../utils"),i=e("../support"),o=e("./ArrayReader"),s=e("./StringReader"),a=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new a(e):i.uint8array?new l(n.transformTo("uint8array",e)):new o(n.transformTo("array",e)):new s(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){r.LOCAL_FILE_HEADER="PK\x03\x04",r.CENTRAL_FILE_HEADER="PK\x01\x02",r.CENTRAL_DIRECTORY_END="PK\x05\x06",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,r){var n=e("./GenericWorker"),i=e("../utils");function o(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,n),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){var n=e("./GenericWorker"),i=e("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,n),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}
vendor: 5,727 bytes, line 1
1n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){var n=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),a=e("../support"),l=e("../external"),u=null;if(a.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function c(e,t,r){var s=t;switch(t){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=t,this._mimeType=r,n.checkSupport(s),this._worker=e.pipe(new i(s)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}c.prototype={accumulate:function(e){var t;return t=this,new l.Promise(function(r,i){var o=[],a=t._internalType,l=t._outputType,u=t._mimeType;t.on("data",function(t,r){o.push(t),e&&e(r)}).on("error",function(e){o=[],i(e)}).on("end",function(){try{r(function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return s.encode(t);default:return n.transformTo(e,t)}}(l,function(e,t){var r,n=0,i=null,o=0;for(r=0;r<t.length;r++)o+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(o),r=0;r<t.length;r++)i.set(t[r],n),n+=t[r].length;return i;case"nodebuffer":return p.concat(t);default:throw Error("concat : unsupported type '"+e+"'")}}(a,o),u))}catch(e){i(e)}o=[]}).resume()})},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,function(e){t.call(r,e.data,e.meta)}):this._worker.on(e,function(){n.delay(t,arguments,r)}),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=c},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer=void 0!==p,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(n),r.blob=0===i.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){for(var n=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),s=e("./stream/GenericWorker"),a=Array(256),l=0;l<256;l++)a[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(){s.call(this,"utf-8 decode"),this.leftOver=null}function c(){s.call(this,"utf-8 encode")}a[254]=a[254]=1,r.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,r,n,o,s,a=e.length,l=0;for(o=0;o<a;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(l):Array(l),o=s=0;s<l;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,o,s=e.length,l=Array(2*s);for(t=r=0;t<s;)if((i=e[t++])<128)l[r++]=i;else if(4<(o=a[i]))l[r++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<s;)i=i<<6|63&e[t++],o--;
vendor: 8,209 bytes, line 1
11<o?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(u,s),u.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var s=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+a[e[r]]>t?r:t}(t),l=t;s!==t.length&&(i.uint8array?(l=t.subarray(0,s),this.leftOver=t.subarray(s,t.length)):(l=t.slice(0,s),this.leftOver=t.slice(s,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=u,n.inherits(c,s),c.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){var n=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),s=e("./external");function a(e){return e}function l(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(e,t){r.checkSupport("blob");try{return new Blob([e],{type:t})}catch(r){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(t)}catch(e){throw Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,r){var n=[],i=0,o=e.length;if(o<=r)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,o)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,o)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function c(e){var t=65536,n=r.getTypeOf(e),i=!0;if("uint8array"===n?i=u.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return u.stringifyByChunk(e,n,t)}catch(e){t=Math.floor(t/2)}return u.stringifyByChar(e)}function h(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=c;var d={};d.string={string:a,array:function(e){return l(e,Array(e.length))},arraybuffer:function(e){return d.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,o.allocBuffer(e.length))}},d.array={string:c,array:a,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},d.arraybuffer={string:function(e){return c(new Uint8Array(e))},array:function(e){return h(new Uint8Array(e),Array(e.byteLength))},arraybuffer:a,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},d.uint8array={string:c,array:function(e){return h(e,Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:a,nodebuffer:function(e){return o.newBufferFrom(e)}},d.nodebuffer={string:c,array:function(e){return h(e,Array(e.length))},arraybuffer:function(e){return d.nodebuffer.uint8array(e).buffer},uint8array:function(e){return h(e,new Uint8Array(e.length))},nodebuffer:a},r.transformTo=function(e,t){return(t=t||"",e)?(r.checkSupport(e),d[r.getTypeOf(t)][e](t)):t},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n];"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},r.getTypeOf=function(e){if("string"==typeof e)return"string";var t=Object.prototype.toString.call(e);return"[object Array]"===t?"array":n.nodebuffer&&o.isBuffer(e)?"nodebuffer":n.uint8array&&"[object Uint8Array]"===t?"uint8array":n.arraybuffer&&"[object ArrayBuffer]"===t?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,o,a,u){return s.Promise.resolve(t).then(function(t){return n.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))?void 0!==Blob.prototype.arrayBuffer?t.arrayBuffer():"undefined"!=typeof FileReader?new s.Promise(function(e,r){var n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(t)}):s.Promise.reject(Error(e+" is a Blob, but we have no way of reading it.")):t}).then(function(t){var c,h=r.getTypeOf(t);return h?("arraybuffer"===h?t=r.transformTo("uint8array",t):"string"===h&&(u?t=i.decode(t):o&&!0!==a&&(t=l(c=t,n.uint8array?new Uint8Array(c.length):Array(c.length)))),t):s.Promise.reject(Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),s=e("./zipEntry"),a=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},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 e=this.reader.readData(this.zipCommentLength),t=a.uint8array?"uint8array":"array",r=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),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 e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){for(var e,t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var e;
vendor: 4,614 bytes, line 1
1for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?Error("Corrupted zip: can't find end of central directory"):Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),s=e("./crc32"),a=e("./utf8"),l=e("./compressions"),u=e("./support");function c(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);
vendor: 2,528 bytes, line 1
1this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)?null:s(this.fileName)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)?null:s(this.fileComment)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}return null}},t.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),s=e("./utf8"),a=e("./compressedObject"),l=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!n&&(t=t.pipe(new s.Utf8EncodeWorker)),!o&&n&&(t=t.pipe(new s.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new i(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)}
vendor: 6,272 bytes, line 1
1,nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof a&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new s.Utf8EncodeWorker)),a.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<u.length;h++)n.prototype[u[h]]=c;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){var r,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,s=new i(c),a=e.document.createTextNode("");s.observe(a,{characterData:!0}),r=function(){a.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,r=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;n=!0;for(var r=u.length;r;){for(t=u,u=[],e=-1;++e<r;)t[e]();r=u.length}n=!1}t.exports=function(e){1!==u.push(e)||n||r()}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var n=e("immediate");function i(){}var o={},s=["REJECTED"],a=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function c(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function h(e,t,r){n(function(){var n;try{n=t(r)}catch(t){return o.reject(e,t)}n===e?o.reject(e,TypeError("Cannot resolve promise with itself")):o.resolve(e,n)})}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var r=!1;function n(t){r||(r=!0,o.reject(e,t))}function i(t){r||(r=!0,o.resolve(e,t))}var s=f(function(){t(i,n)});"error"===s.status&&n(s.value)}function f(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===a||"function"!=typeof t&&this.state===s)return this;var r=new this.constructor(i);return this.state!==l?h(r,this.state===a?e:t,this.outcome):this.queue.push(new c(r,e,t)),r},c.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){o.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},o.resolve=function(e,t){var r=f(d,t);if("error"===r.status)return o.reject(e,r.value);var n=r.value;if(n)p(e,n);else{e.state=a,e.outcome=t;for(var i=-1,s=e.queue.length;++i<s;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=s,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var s=Array(r),a=0,l=-1,u=new this(i);++l<r;)(function(e,i){t.resolve(e).then(function(e){s[i]=e,++a!==r||n||(n=!0,o.resolve(u,s))},function(e){n||(n=!0,o.reject(u,e))})})(e[l],l);return u},u.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(TypeError("must be an array"));var t,r=e.length,n=!1;if(!r)return this.resolve([]);for(var s=-1,a=new this(i);++s<r;)t=e[s],this.resolve(t).then(function(e){n||(n=!0,o.resolve(a,e))},function(e){n||(n=!0,o.reject(a,e))});return a}},{immediate:36}],38:[function(e,t,r){var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){var n=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),s=e("./zlib/messages"),a=e("./zlib/zstream"),l=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==r)throw Error(s[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var c="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary;if(0!==(r=n.deflateSetDictionary(this.strm,c)))throw Error(s[r]);this._dict_set=!0}}function c(e,t){var r=new u(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}u.prototype.push=function(e,t){var r,s,a=this.strm,u=this.options.chunkSize;if(this.ended)return!1;s=t===~~t?t:!0===t?4:0,"string"==typeof e?a.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?a.input=new 
vendor: 6,178 bytes, line 1
1Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new i.Buf8(u),a.next_out=0,a.avail_out=u),1!==(r=n.deflate(a,s))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(a.output,a.next_out))):this.onData(i.shrinkBuf(a.output,a.next_out)))}while((0<a.avail_in||0===a.avail_out)&&1!==r);return 4===s?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==s||(this.onEnd(0),a.avail_out=0,!0)},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=u,r.deflate=c,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,c(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){var n=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),s=e("./zlib/constants"),a=e("./zlib/messages"),l=e("./zlib/zstream"),u=e("./zlib/gzheader"),c=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==s.Z_OK)throw Error(a[r]);this.header=new u,n.inflateGetHeader(this.strm,this.header)}function d(e,t){var r=new h(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}h.prototype.push=function(e,t){var r,a,l,u,h,d,p=this.strm,f=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;a=t===~~t?t:!0===t?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof e?p.input=o.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new i.Buf8(f),p.next_out=0,p.avail_out=f),(r=n.inflate(p,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&m&&(d="string"==typeof m?o.string2buf(m):"[object ArrayBuffer]"===c.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,d)),r===s.Z_BUF_ERROR&&!0===g&&(r=s.Z_OK,g=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),this.ended=!0,!1;p.next_out&&(0!==p.avail_out&&r!==s.Z_STREAM_END&&(0!==p.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(p.output,p.next_out),u=p.next_out-l,h=o.buf2string(p.output,l),p.next_out=u,p.avail_out=f-u,u&&i.arraySet(p.output,p.output,l,u,0),this.onData(h)):this.onData(i.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(g=!0)}while((0<p.avail_in||0===p.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),p.avail_out=0,!0)},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=h,r.inflate=d,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},r.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){for(var t,r,n,i,o=t=0,s=e.length;o<s;o++)t+=e[o].length;for(i=new Uint8Array(t),o=r=0,s=e.length;o<s;o++)n=e[o],i.set(n,r),r+=n.length;return i}},o={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],42:[function(e,t,r){var n=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var s=new n.Buf8(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function l(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",s=0;s<t;s++)r+=String.fromCharCode(e[s]);return r}s[254]=s[254]=1,r.string2buf=function(e){var t,r,i,o,s,a=e.length,l=0;for(o=0;o<a;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(l),o=s=0;s<l;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,i,o,a=t||e.length,u=Array(2*a);for(r=n=0;r<a;)if((i=e[r++])<128)u[n++]=i;else if(4<(o=s[i]))u[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&r<a;)i=i<<6|63&e[r++],o--;
11<o?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}return l(u,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+s[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,n){for(var i=65535&e|0,o=e>>>16&65535|0,s=0;0!==r;){for(r-=s=2e3<r?2e3:r;o=o+(i=i+t[n++]|0)|0,--s;);i%=65521,o%=65521}return i|o<<16|0}},{}],44:[function(e,t,r){t.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}},{}],45:[function(e,t,r){var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?0xedb88320^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var o=i+r;e^=-1;for(var s=i;s<o;s++)e=e>>>8^n[255&(e^t[s])];return -1^e}},{}],46:[function(e,t,r){var n,i=e("../utils/common"),o=e("./trees"),s=e("./adler32"),a=e("./crc32"),l=e("./messages");function u(e,t){return e.msg=l[t],t}function c(e){return(e<<1)-(4<e?9:0)}function h(e){for(var t=e.length;0<=--t;)e[t]=0}function d(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function p(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,d(e.strm)}function f(e,t){e.pending_buf[e.pending++]=t}function m(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function g(e,t){var r,n,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match,l=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,u=e.window,c=e.w_mask,h=e.prev,d=e.strstart+258,p=u[o+s-1],f=u[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do if(u[(r=t)+s]===f&&u[r+s-1]===p&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do;while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&o<d);if(n=258-(d-o),o=d-258,s<n){if(e.match_start=t,a<=(s=n))break;p=u[o+s-1],f=u[o+s]}}while((t=h[t&c])>l&&0!=--i);return s<=e.lookahead?s:e.lookahead}function w(e){var t,r,n,o,l,u,c,h,d,p,f=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-262)){for(i.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=r=e.hash_size;n=e.head[--t],e.head[t]=f<=n?n-f:0,--r;);for(t=r=f;n=e.prev[--t],e.prev[t]=f<=n?n-f:0,--r;);o+=f}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,h=e.strstart+e.lookahead,p=void 0,(d=o)<(p=u.avail_in)&&(p=d),r=0===p?0:(u.avail_in-=p,i.arraySet(c,u.input,u.next_in,p,h),1===u.state.wrap?u.adler=s(u.adler,c,p,h):2===u.state.wrap&&(u.adler=a(u.adler,c,p,h)),u.next_in+=p,u.total_in+=p,p),e.lookahead+=r,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)}function y(e,t){for(var r,n;;){if(e.lookahead<262){if(w(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-262&&(e.match_length=g(e,r)),e.match_length>=3){if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask}
1else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(p(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(p(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(p(e,!1),0===e.strm.avail_out)?1:2}function v(e,t){for(var r,n,i;;){if(e.lookahead<262){if(w(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-262&&(e.match_length=g(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(p(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&p(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(p(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(p(e,!1),0===e.strm.avail_out)?1:2}function b(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function x(){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=8,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 i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),h(this.dyn_ltree),h(this.dyn_dtree),h(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),h(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),h(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 _(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):u(e,-2)}function E(e){var t,r=_(e);return 0===r&&((t=e.state).window_size=2*t.w_size,h(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),r}function k(e,t,r,n,o,s){if(!e)return -2;var a=1;if(-1===t&&(t=6),n<0?(a=0,n=-n):15<n&&(a=2,n-=16),o<1||9<o||8!==r||n<8||15<n||t<0||9<t||s<0||4<s)return u(e,-2);8===n&&(n=9);var l=new x;return(e.state=l).strm=e,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=s,l.method=r,E(e)}n=[new b(0,0,0,0,function(e,t){var r=65535;for(65535>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(w(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,p(e,!1),0===e.strm.avail_out)||e.strstart-e.block_start>=e.w_size-262&&(p(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(p(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(p(e,!1),e.strm.avail_out),1)}
1),new b(4,4,8,4,y),new b(4,5,16,8,y),new b(4,6,32,32,y),new b(4,4,16,16,v),new b(8,16,32,32,v),new b(8,16,128,128,v),new b(8,32,128,256,v),new b(32,128,258,1024,v),new b(32,258,258,4096,v)],r.deflateInit=function(e,t){return k(e,t,8,15,8,0)},r.deflateInit2=k,r.deflateReset=E,r.deflateResetKeep=_,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},r.deflate=function(e,t){var r,i,s,l;if(!e||!e.state||5<t||t<0)return e?u(e,-2):-2;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return u(e,0===e.avail_out?-5:-2);if(i.strm=e,r=i.last_flush,i.last_flush=t,42===i.status){if(2===i.wrap)e.adler=0,f(i,31),f(i,139),f(i,8),i.gzhead?(f(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),f(i,255&i.gzhead.time),f(i,i.gzhead.time>>8&255),f(i,i.gzhead.time>>16&255),f(i,i.gzhead.time>>24&255),f(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),f(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(f(i,255&i.gzhead.extra.length),f(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=a(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(f(i,0),f(i,0),f(i,0),f(i,0),f(i,0),f(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),f(i,3),i.status=113);else{var g=8+(i.w_bits-8<<4)<<8;g|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(g|=32),g+=31-g%31,i.status=113,m(i,g),0!==i.strstart&&(m(i,e.adler>>>16),m(i,65535&e.adler)),e.adler=1}}if(69===i.status){if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),d(e),s=i.pending,i.pending!==i.pending_buf_size));)f(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73}if(73===i.status){if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),d(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,f(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91}if(91===i.status){if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),d(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,f(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.status=103)}else i.status=103}if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&d(e),i.pending+2<=i.pending_buf_size&&(f(i,255&e.adler),f(i,e.adler>>8&255),e.adler=0,i.status=113)):i.status=113),0!==i.pending){if(d(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&c(t)<=c(r)&&4!==t)return u(e,-5);if(666===i.status&&0!==e.avail_in)return u(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var y=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(w(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(p(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(p(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(p(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,s,a=e.window;;){if(e.lookahead<=258){if(w(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(n=a[i=e.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){s=e.strstart+258;do;while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<s);e.match_length=258-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.
vendor: 5,878 bytes, line 1
1window[e.strstart]),e.lookahead--,e.strstart++),r&&(p(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(p(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(p(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==y&&4!==y||(i.status=666),1===y||3===y)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===y&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(h(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),d(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(f(i,255&e.adler),f(i,e.adler>>8&255),f(i,e.adler>>16&255),f(i,e.adler>>24&255),f(i,255&e.total_in),f(i,e.total_in>>8&255),f(i,e.total_in>>16&255),f(i,e.total_in>>24&255)):(m(i,e.adler>>>16),m(i,65535&e.adler)),d(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?0:1)},r.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?u(e,-2):(e.state=null,113===t?u(e,-3):0):-2},r.deflateSetDictionary=function(e,t){var r,n,o,a,l,u,c,d,p=t.length;if(!e||!e.state||2===(a=(r=e.state).wrap)||1===a&&42!==r.status||r.lookahead)return -2;for(1===a&&(e.adler=s(e.adler,t,p,0)),r.wrap=0,p>=r.w_size&&(0===a&&(h(r.head),r.strstart=0,r.block_start=0,r.insert=0),d=new i.Buf8(r.w_size),i.arraySet(d,t,p-r.w_size,r.w_size,0),t=d,p=r.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=p,e.next_in=0,e.input=t,w(r);r.lookahead>=3;){for(n=r.strstart,o=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--o;);r.strstart=n,r.lookahead=2,w(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=u,e.input=c,e.avail_in=l,r.wrap=a,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){t.exports=function(){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}},{}],48:[function(e,t,r){t.exports=function(e,t){var r,n,i,o,s,a,l,u,c,h,d,p,f,m,g,w,y,v,b,x,_,E,k=e.state,T=e.next_in,S=e.input;r=T+(e.avail_in-5),n=e.next_out,E=e.output,i=n-(t-e.avail_out),o=n+(e.avail_out-257),s=k.dmax,a=k.wsize,l=k.whave,u=k.wnext,c=k.window,h=k.hold,d=k.bits,p=k.lencode,f=k.distcode,m=(1<<k.lenbits)-1,g=(1<<k.distbits)-1;e:do for(d<15&&(h+=S[T++]<<d,d+=8,h+=S[T++]<<d,d+=8),w=p[h&m];;){if(h>>>=y=w>>>24,d-=y,0==(y=w>>>16&255))E[n++]=65535&w;else{if(!(16&y)){if(0==(64&y)){w=p[(65535&w)+(h&(1<<y)-1)];continue}if(32&y){k.mode=12;break e}e.msg="invalid literal/length code",k.mode=30;break e}for(v=65535&w,(y&=15)&&(d<y&&(h+=S[T++]<<d,d+=8),v+=h&(1<<y)-1,h>>>=y,d-=y),d<15&&(h+=S[T++]<<d,d+=8,h+=S[T++]<<d,d+=8),w=f[h&g];;){if(h>>>=y=w>>>24,d-=y,!(16&(y=w>>>16&255))){if(0==(64&y)){w=f[(65535&w)+(h&(1<<y)-1)];continue}e.msg="invalid distance code",k.mode=30;break e}if(b=65535&w,d<(y&=15)&&(h+=S[T++]<<d,(d+=8)<y&&(h+=S[T++]<<d,d+=8)),s<(b+=h&(1<<y)-1)){e.msg="invalid distance too far back",k.mode=30;break e}if(h>>>=y,d-=y,(y=n-i)<b){if(l<(y=b-y)&&k.sane){e.msg="invalid distance too far back",k.mode=30;break e}if(_=c,(x=0)===u){if(x+=a-y,y<v){for(v-=y;E[n++]=c[x++],--y;);x=n-b,_=E}}else if(u<y){if(x+=a+u-y,(y-=u)<v){for(v-=y;E[n++]=c[x++],--y;);if(x=0,u<v){for(v-=y=u;E[n++]=c[x++],--y;);x=n-b,_=E}}}else if(x+=u-y,y<v){for(v-=y;E[n++]=c[x++],--y;);x=n-b,_=E}for(;2<v;)E[n++]=_[x++],E[n++]=_[x++],E[n++]=_[x++],v-=3;v&&(E[n++]=_[x++],1<v&&(E[n++]=_[x++]))}else{for(x=n-b;E[n++]=E[x++],E[n++]=E[x++],E[n++]=E[x++],2<(v-=3););v&&(E[n++]=E[x++],1<v&&(E[n++]=E[x++]))}break}}break}while(T<r&&n<o);T-=v=d>>3,h&=(1<<(d-=v<<3))-1,e.next_in=T,e.next_out=n,e.avail_in=T<r?r-T+5:5-(T-r),e.avail_out=n<o?o-n+257:257-(n-o),k.hold=h,k.bits=d}},{}],49:[function(e,t,r){var n=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),s=e("./inffast"),a=e("./inftrees");function l(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function u(){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 n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):-2}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,c(e)):-2}function d(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?-2:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,h(e))):-2}function p(e,t){var r,n;return e?(n=new u,(e.state=n).window=null,0!==(r=d(e,t))&&(e.state=null),r):-2}var f,m,g=!0;function w(e,t,r,i){var o,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),i>=s.wsize?(n.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i<(o=s.wsize-s.wnext)&&(o=i),n.arraySet(s.window,t,r-i,o,s.wnext),(i-=o)?(n.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}r.inflateReset=h,r.inflateReset2=d,r.inflateResetKeep=c,r.inflateInit=function(e){return p(e,15)},r.inflateInit2=p,r.inflate=function(e,t){var r,u,c,h,d,p,y,v,b,x,_,E,k,T,S,A,R,I,C,O,
vendor: 10,036 bytes, line 1
1N,F,P,D,L=0,B=new n.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return -2;12===(r=e.state).mode&&(r.mode=13),d=e.next_out,c=e.output,y=e.avail_out,h=e.next_in,u=e.input,p=e.avail_in,v=r.hold,b=r.bits,x=p,_=y,F=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;b<16;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}if(2&r.wrap&&35615===v){B[r.check=0]=255&v,B[1]=v>>>8&255,r.check=o(r.check,B,2,0),b=v=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&v)){e.msg="unknown compression method",r.mode=30;break}if(b-=4,N=8+(15&(v>>>=4)),0===r.wbits)r.wbits=N;else if(N>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<N,e.adler=r.check=1,r.mode=512&v?10:12,b=v=0;break;case 2:for(;b<16;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}if(r.flags=v,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=v>>8&1),512&r.flags&&(B[0]=255&v,B[1]=v>>>8&255,r.check=o(r.check,B,2,0)),b=v=0,r.mode=3;case 3:for(;b<32;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}r.head&&(r.head.time=v),512&r.flags&&(B[0]=255&v,B[1]=v>>>8&255,B[2]=v>>>16&255,B[3]=v>>>24&255,r.check=o(r.check,B,4,0)),b=v=0,r.mode=4;case 4:for(;b<16;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}r.head&&(r.head.xflags=255&v,r.head.os=v>>8),512&r.flags&&(B[0]=255&v,B[1]=v>>>8&255,r.check=o(r.check,B,2,0)),b=v=0,r.mode=5;case 5:if(1024&r.flags){for(;b<16;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}r.length=v,r.head&&(r.head.extra_len=v),512&r.flags&&(B[0]=255&v,B[1]=v>>>8&255,r.check=o(r.check,B,2,0)),b=v=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(p<(E=r.length)&&(E=p),E&&(r.head&&(N=r.head.extra_len-r.length,r.head.extra||(r.head.extra=Array(r.head.extra_len)),n.arraySet(r.head.extra,u,h,E,N)),512&r.flags&&(r.check=o(r.check,u,E,h)),p-=E,h+=E,r.length-=E),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===p)break e;for(E=0;N=u[h+E++],r.head&&N&&r.length<65536&&(r.head.name+=String.fromCharCode(N)),N&&E<p;);if(512&r.flags&&(r.check=o(r.check,u,E,h)),p-=E,h+=E,N)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===p)break e;for(E=0;N=u[h+E++],r.head&&N&&r.length<65536&&(r.head.comment+=String.fromCharCode(N)),N&&E<p;);if(512&r.flags&&(r.check=o(r.check,u,E,h)),p-=E,h+=E,N)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;b<16;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}if(v!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}b=v=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;b<32;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}e.adler=r.check=l(v),b=v=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=d,e.avail_out=y,e.next_in=h,e.avail_in=p,r.hold=v,r.bits=b,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){v>>>=7&b,b-=7&b,r.mode=27;break}for(;b<3;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}switch(r.last=1&v,b-=1,3&(v>>>=1)){case 0:r.mode=14;break;case 1:if(function(e){if(g){var t;for(f=new n.Buf32(512),m=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(1,e.lens,0,288,f,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(2,e.lens,0,32,m,0,e.work,{bits:5}),g=!1}e.lencode=f,e.lenbits=9,e.distcode=m,e.distbits=5}(r),r.mode=20,6!==t)break;v>>>=2,b-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}v>>>=2,b-=2;break;case 14:for(v>>>=7&b,b-=7&b;b<32;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&v,b=v=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(E=r.length){if(p<E&&(E=p),y<E&&(E=y),0===E)break e;n.arraySet(c,u,h,E,d),p-=E,h+=E,y-=E,d+=E,r.length-=E;break}r.mode=12;break;case 17:for(;b<14;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}if(r.nlen=257+(31&v),v>>>=5,b-=5,r.ndist=1+(31&v),v>>>=5,b-=5,r.ncode=4+(15&v),v>>>=4,b-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;b<3;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}r.lens[M[r.have++]]=7&v,v>>>=3,b-=3}for(;r.have<19;)r.lens[M[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,P={bits:r.lenbits},F=a(0,r.lens,0,19,r.lencode,0,r.work,P),r.lenbits=P.bits,F){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;A=(L=r.lencode[v&(1<<r.lenbits)-1])>>>16&255,R=65535&L,!((S=L>>>24)<=b);){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}if(R<16)v>>>=S,b-=S,r.lens[r.have++]=R;else{if(16===R){for(D=S+2;b<D;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}if(v>>>=S,b-=S,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}N=r.lens[r.have-1],E=3+(3&v),v>>>=2,b-=2}else if(17===R){for(D=S+3;b<D;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}b-=S,N=0,E=3+(7&(v>>>=S)),v>>>=3,b-=3}else{for(D=S+7;b<D;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}b-=S,N=0,E=11+(127&(v>>>=S)),v>>>=7,b-=7}if(r.have+E>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;E--;)r.lens[r.have++]=N}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,P={bits:r.lenbits},F=a(1,r.lens,0,r.nlen,r.lencode,0,r.work,P),r.lenbits=P.bits,F){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,P={bits:r.distbits},F=a(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,P),r.distbits=P.bits,F){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=p&&258<=y){e.next_out=d,e.avail_out=y,e.next_in=h,e.avail_in=p,r.hold=v,r.bits=b,s(e,_),d=e.next_out,c=e.output,y=e.avail_out,h=e.next_in,u=e.input,p=e.avail_in,v=r.hold,b=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;A=(L=r.lencode[v&(1<<r.lenbits)-1])>>>16&255,R=65535&L,!((S=L>>>24)<=b);){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}if(A&&0==(240&A)){for(I=S,C=A,O=R;A=(L=r.lencode[O+((v&(1<<I+C)-1)>>I)])>>>16&255,R=65535&L,!(I+(S=L>>>24)<=b);){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}v>>>=I,b-=I,r.back+=I}if(v>>>=S,b-=S,r.back+=S,r.length=R,0===A){r.mode=26;break}if(32&A){r.back=-1,r.mode=12;break}if(64&A){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&A,r.mode=22;case 22:if(r.extra){for(D=r.extra;b<D;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}r.length+=v&(1<<r.extra)-1,v>>>=r.extra,b-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;A=(L=r.distcode[v&(1<<r.distbits)-1])>>>16&255,R=65535&L,!((S=L>>>24)<=b);){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}if(0==(240&A)){for(I=S,C=A,O=R;A=(L=r.distcode[O+((v&(1<<I+C)-1)>>I)])>>>16&255,R=65535&L,!(I+(S=L>>>24)<=b);){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}v>>>=I,b-=I,r.back+=I}if(v>>>=S,b-=S,r.back+=S,64&A){e.msg="invalid distance code",r.mode=30;break}r.offset=R,r.extra=15&A,r.mode=24;case 24:if(r.extra){for(D=r.extra;b<D;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}r.offset+=v&(1<<r.extra)-1,v>>>=r.extra,b-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===y)break e;if(E=_-y,r.offset>E){if((E=r.offset-E)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}k=E>r.wnext?(E-=r.wnext,r.wsize-E):r.wnext-E,E>r.length&&(E=r.length),T=r.window}else T=c,k=d-r.offset,E=r.length;for(y<E&&(E=y),y-=E,r.length-=E;c[d++]=T[k++],--E;);0===r.length&&(r.mode=21);break;case 26:if(0===y)break e;c[d++]=r.length,y--,r.mode=21;break;case 27:if(r.wrap){for(;b<32;){if(0===p)break e;p--,v|=u[h++]<<b,b+=8}if(_-=y,e.total_out+=_,r.total+=_,_&&(e.adler=r.check=r.flags?o(r.check,c,_,d-_):i(r.check,c,_,d-_)),_=y,(r.flags?v:l(v))!==r.check){e.msg="incorrect data check",r.mode=30;break}b=v=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;b<32;){if(0===p)break e;p--,v+=u[h++]<<b,b+=8}if(v!==(0xffffffff&r.total)){e.msg="incorrect length check",r.mode=30;break}b=v=0}r.mode=29;case 29:F=1;break e;case 30:F=-3;break e;case 31:return -4;default:return -2}return e.next_out=d,e.avail_out=y,e.next_in=h,e.avail_in=p,r.hold=v,r.bits=b,(r.wsize||_!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&w(e,e.output,e.next_out,_-e.avail_out)?(r.mode=31,-4):(x-=e.avail_in,_-=e.avail_out,e.total_in+=x,e.total_out+=_,r.total+=_,r.wrap&&_&&(e.adler=r.check=r.flags?o(r.check,c,_,e.next_out-_):i(r.check,c,_,e.next_out-_)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==x&&0===_||4===t)&&0===F&&(F=-5),F)},r.inflateEnd=function(e){if(!e||!e.state)return -2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},r.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?-2:((r.head=t).done=!1,0):-2},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?-2:11===r.mode&&i(1,t,n,0)!==r.check?-3:w(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):-2},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){var n=e("../utils/common"),i=[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],o=[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],a=[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];t.exports=function(e,t,r,l,u,c,h,d){var p,f,m,g,w,y,v,b,x,_=d.bits,E=0,k=0,T=0,S=0,A=0,R=0,I=0,C=0,O=0,N=0,F=null,P=0,D=new n.Buf16(16),L=new n.Buf16(16),B=null,M=0;for(E=0;E<=15;E++)D[E]=0;for(k=0;k<l;k++)D[t[r+k]]++;for(A=_,S=15;1<=S&&0===D[S];S--);if(S<A&&(A=S),0===S)return u[c++]=0x1400000,u[c++]=0x1400000,d.bits=1,0;for(T=1;
vendor: 1,451 bytes, line 1
1T<S&&0===D[T];T++);for(A<T&&(A=T),E=C=1;E<=15;E++)if(C<<=1,(C-=D[E])<0)return -1;if(0<C&&(0===e||1!==S))return -1;for(L[1]=0,E=1;E<15;E++)L[E+1]=L[E]+D[E];for(k=0;k<l;k++)0!==t[r+k]&&(h[L[t[r+k]]++]=k);if(y=0===e?(F=B=h,19):1===e?(F=i,P-=257,B=o,M-=257,256):(F=s,B=a,-1),E=T,w=c,I=k=N=0,m=-1,g=(O=1<<(R=A))-1,1===e&&852<O||2===e&&592<O)return 1;for(;;){for(v=E-I,x=h[k]<y?(b=0,h[k]):h[k]>y?(b=B[M+h[k]],F[P+h[k]]):(b=96,0),p=1<<E-I,T=f=1<<R;u[w+(N>>I)+(f-=p)]=v<<24|b<<16|x|0,0!==f;);for(p=1<<E-1;N&p;)p>>=1;if(0!==p?(N&=p-1,N+=p):N=0,k++,0==--D[E]){if(E===S)break;E=t[r+h[k]]}if(A<E&&(N&g)!==m){for(0===I&&(I=A),w+=T,C=1<<(R=E-I);R+I<S&&!((C-=D[R+I])<=0);)R++,C<<=1;if(O+=1<<R,1===e&&852<O||2===e&&592<O)return 1;u[m=N&g]=A<<24|R<<16|w-c|0}}return 0!==N&&(u[w+N]=E-I<<24|4194304),d.bits=A,0}},{"../utils/common":41}],51:[function(e,t,r){t.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"}},{}],52:[function(e,t,r){var n=e("../utils/common");function i(e){for(var t=e.length;0<=--t;)e[t]=0}var o=[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],s=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=Array(576);i(u);var c=Array(60);i(c);var h=Array(512);i(h);var d=Array(256);i(d);var p=Array(29);
vendor: 5,175 bytes, line 1
1i(p);var f,m,g,w=Array(30);function y(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function v(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function b(e){return e<256?h[e]:h[256+(e>>>7)]}function x(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function _(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,x(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function E(e,t,r){_(e,r[2*t],r[2*t+1])}function k(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function T(e,t,r){var n,i,o=Array(16),s=0;for(n=1;n<=15;n++)o[n]=s=s+r[n-1]<<1;for(i=0;i<=t;i++){var a=e[2*i+1];0!==a&&(e[2*i]=k(o[a]++,a))}}function S(e){for(var t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function A(e){8<e.bi_valid?x(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function R(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function I(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&R(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!R(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function C(e,t,r){var n,i,a,l,u=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],i=e.pending_buf[e.l_buf+u],u++,0===n?E(e,i,t):(E(e,(a=d[i])+256+1,t),0!==(l=o[a])&&_(e,i-=p[a],l),E(e,a=b(--n),r),0!==(l=s[a])&&_(e,n-=w[a],l)),u<e.last_lit;);E(e,256,t)}function O(e,t){var r,n,i,o=t.dyn_tree,s=t.stat_desc.static_tree,a=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==o[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,a&&(e.static_len-=s[2*i+1]);for(t.max_code=u,r=e.heap_len>>1;1<=r;r--)I(e,o,r);for(i=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],I(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,I(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,s,a,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,f=t.stat_desc.max_length,m=0;for(o=0;o<=15;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)f<(o=l[2*l[2*(n=e.heap[r])+1]+1]+1)&&(o=f,m++),l[2*n+1]=o,u<n||(e.bl_count[o]++,s=0,p<=n&&(s=d[n-p]),a=l[2*n],e.opt_len+=a*(o+s),h&&(e.static_len+=a*(c[2*n+1]+s)));if(0!==m){do{for(o=f-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[f]--,m-=2}while(0<m);for(o=f;0!==o;o--)for(n=e.bl_count[o];0!==n;)u<(i=e.heap[--r])||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),n--)}}(e,t),T(o,u,e.bl_count)}function N(e,t,r){var n,i,o=-1,s=t[1],a=0,l=7,u=4;for(0===s&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=s,s=t[2*(n+1)+1],++a<l&&i===s||(a<u?e.bl_tree[2*i]+=a:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):a<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=i,u=(a=0)===s?(l=138,3):i===s?(l=6,3):(l=7,4))}function F(e,t,r){var n,i,o=-1,s=t[1],a=0,l=7,u=4;for(0===s&&(l=138,u=3),n=0;n<=r;n++)if(i=s,s=t[2*(n+1)+1],!(++a<l&&i===s)){if(a<u)for(;E(e,i,e.bl_tree),0!=--a;);else 0!==i?(i!==o&&(E(e,i,e.bl_tree),a--),E(e,16,e.bl_tree),_(e,a-3,2)):a<=10?(E(e,17,e.bl_tree),_(e,a-3,3)):(E(e,18,e.bl_tree),_(e,a-11,7));o=i,u=(a=0)===s?(l=138,3):i===s?(l=6,3):(l=7,4)}}i(w);var P=!1;function D(e,t,r,i){_(e,0+(i?1:0),3),A(e),x(e,r),x(e,~r),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}r._tr_init=function(e){P||(function(){var e,t,r,n,i,l=Array(16);for(n=r=0;n<28;n++)for(p[n]=r,e=0;e<1<<o[n];e++)d[r++]=n;for(d[r-1]=n,n=i=0;n<16;n++)for(w[n]=i,e=0;e<1<<s[n];e++)h[i++]=n;for(i>>=7;n<30;n++)for(w[n]=i<<7,e=0;e<1<<s[n]-7;e++)h[256+i++]=n;for(t=0;t<=15;t++)l[t]=0;for(e=0;e<=143;)u[2*e+1]=8,e++,l[8]++;for(;e<=255;)u[2*e+1]=9,e++,l[9]++;for(;e<=279;)u[2*e+1]=7,e++,l[7]++;for(;e<=287;)u[2*e+1]=8,e++,l[8]++;for(T(u,287,l),e=0;e<30;e++)c[2*e+1]=5,c[2*e]=k(e,5);f=new y(u,o,257,286,15),m=new y(c,s,0,30,15),g=new y([],a,0,19,7)}(),P=!0),e.l_desc=new v(e.dyn_ltree,f),e.d_desc=new v(e.dyn_dtree,m),e.bl_desc=new v(e.bl_tree,g),e.bi_buf=0,e.bi_valid=0,S(e)},r._tr_stored_block=D,r._tr_flush_block=function(e,t,r,n){var i,o,s=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=0xf3ffc07f;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),O(e,e.l_desc),O(e,e.d_desc),s=function(e){var t;for(N(e,e.dyn_ltree,e.l_desc.max_code),N(e,e.dyn_dtree,e.d_desc.max_code),O(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?D(e,t,r,n):4===e.strategy||o===i?(_(e,2+(n?1:0),3),C(e,u,c)
1):(_(e,4+(n?1:0),3),function(e,t,r,n){var i;for(_(e,t-257,5),_(e,r-1,5),_(e,n-4,4),i=0;i<n;i++)_(e,e.bl_tree[2*l[i]+1],3);F(e,e.dyn_ltree,t-1),F(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),C(e,e.dyn_ltree,e.dyn_dtree)),S(e),n&&A(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(d[r]+256+1)]++,e.dyn_dtree[2*b(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){_(e,2,3),E(e,256,u),16===e.bi_valid?(x(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,r){t.exports=function(){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}},{}],54:[function(e,t,r){(function(e){!function(e,t){if(!e.setImmediate){var r,n,i,o,s=1,a={},l=!1,u=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,r="[object process]"===({}).toString.call(e.process)?function(e){d.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){p(e.data)},function(e){i.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(p,0,e)}:(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(o+t,"*")}),c.setImmediate=function(e){"function"!=typeof e&&(e=Function(""+e));for(var t=Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];return a[s]={callback:e,args:t},r(s),s++},c.clearImmediate=h}function h(e){delete a[e]}function p(e){if(l)setTimeout(p,0,e);else{var r=a[e];if(r){l=!0;try{!function(e){var r=e.callback,n=e.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(t,n)}}(r)}finally{h(e),l=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&p(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)})}),lt=x((e,t)=>{var r={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};t.exports=function(e){return e&&e.replace?e.replace(/([&"<>'])/g,function(e,t){return r[t]}):e}}),lr=x((e,t)=>{V();var r=lt(),n=tt().Stream;function i(e,t,n){var o,s,a=Array((n=n||0)||0).join(t||""),l=e;if("object"==typeof e&&(o=Object.keys(e)[0],(l=e[o])&&l._elem))return l._elem.name=o,l._elem.icount=n,l._elem.indent=t,l._elem.indents=a,l._elem.interrupt=l,l._elem;var u=[],c=[];function h(e){Object.keys(e).forEach(function(t){u.push(t+'="'+r(e[t])+'"')})}switch(typeof l){case"object":if(null===l)break;l._attr&&h(l._attr),l._cdata&&c.push(("<![CDATA["+l._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),l.forEach&&(s=!1,c.push(""),l.forEach(function(e){"object"==typeof e?"_attr"==Object.keys(e)[0]?h(e._attr):c.push(i(e,t,n+1)):(c.pop(),s=!0,c.push(r(e)))}),s||c.push(""));break;default:c.push(r(l))}return{name:o,interrupt:!1,attributes:u,content:c,icount:n,indents:a,indent:t}}function o(e,t,r){if("object"!=typeof t)return e(!1,t);var n=t.interrupt?1:t.content.length;function i(){for(;t.content.length;){var i=t.content.shift();if(void 0!==i){if(s(i))return;o(e,i)}}e(!1,(n>1?t.indents:"")+(t.name?"</"+t.name+">":"")+(t.indent&&!r?"\n":"")),r&&r()}function s(t){return!!t.interrupt&&(t.interrupt.append=e,t.interrupt.end=i,t.interrupt=!1,e(!0),!0)}if(e(!1,t.indents+(t.name?"<"+t.name:"")+(t.attributes.length?" "+t.attributes.join(" "):"")+(n?t.name?">":"":t.name?"/>":"")+(t.indent&&n>1?"\n":"")),!n)return e(!1,t.indent?"\n":"");s(t)||i()}t.exports=function(e,t){"object"!=typeof t&&(t={indent:t});var r,s,a=t.stream?new n:null,l="",u=!1,c=t.indent?!0===t.indent?"    ":t.indent:"",h=!0;function p(e){h?d.nextTick(e):e()}function f(e,t){if(void 0!==t&&(l+=t),e&&!u&&(a=a||new n,u=!0),e&&u){var r=l;
1p(function(){a.emit("data",r)}),l=""}}function m(e,t){o(f,i(e,c,c?1:0),t)}function g(){if(a){var e=l;p(function(){a.emit("data",e),a.emit("end"),a.readable=!1,a.emit("close")})}}return p(function(){h=!1}),t.declaration&&(s={version:"1.0",encoding:(r=t.declaration).encoding||"UTF-8"},r.standalone&&(s.standalone=r.standalone),m({"?xml":{_attr:s}}),l=l.replace("/>","?>")),(e&&e.forEach?e.forEach(function(t,r){var n;r+1===e.length&&(n=g),m(t,n)}):m(e,g),a)?(a.readable=!0,a):l},t.exports.element=t.exports.Element=function(){var e={_elem:i(Array.prototype.slice.call(arguments))};return e.push=function(e){if(!this.append)throw Error("not assigned to a parent!");var t=this,r=this._elem.indent;o(this.append,i(e,r,this._elem.icount+(r?1:0)),function(){t.append(!0)})},e.close=function(e){void 0!==e&&this.push(e),this.end&&this.end()},e}}),ln=tt(),li=E(le(),1),lo=E(lr(),1),ls=(e,t)=>{let r=t.replace(/-/g,"");if(32!==r.length)throw Error(`Error: Cannot extract GUID from font filename: ${t}`);let n=r.replace(/(..)/g,"$1 ").trim().split(" ").map(e=>parseInt(e,16));n.reverse();let i=e.slice(0,32).map((e,t)=>e^n[t%n.length]),o=new Uint8Array(0+i.length+Math.max(0,e.length-32));return o.set(e.slice(0,0)),o.set(i,0),o.set(e.slice(32),0+i.length),o},la=class{format(e,t={stack:[]}){let r=e.prepForXml(t);if(r)return r;throw Error("XMLComponent did not format correctly")}},ll=class{replace(e,t,r){let n=e;return t.forEach((e,t)=>{n=n.replace(RegExp(`{${e.fileName}}`,"g"),(r+t).toString())}),n}getMediaData(e,t){return t.Array.filter(t=>e.search(`{${t.fileName}}`)>0)}},lu=class{replace(e,t){let r=e;for(let e of t)r=r.replace(RegExp(`{${e.reference}-${e.instance}}`,"g"),e.numId.toString());return r}},lc=new la,lh=(e,t,r,n,i=!0)=>(0,lo.default)(lc.format(t,{viewWrapper:{View:t,Relationships:n},file:e,stack:[]}),{indent:r,declaration:i?{standalone:"yes",encoding:"UTF-8"}:{encoding:"UTF-8"}}),ld=(e,t,r,n)=>{let{content:i}=t.options;if(i instanceof Uint8Array)return[{data:i,path:`word/${r}`}];if("files"in i){let t=new li.default;for(let{path:r,content:o}of i.files)t.file(r,o instanceof Uint8Array?o:nt(lh(e,o,n,new iv)));return[{data:t.generateAsync({type:"uint8array",compression:"DEFLATE"}),path:`word/${r}`}]}let o=e.PackageParts.createRelationships(r),s=lh(e,i,n,o),a=r.slice(0,r.lastIndexOf("/")),l=r.slice(r.lastIndexOf("/")+1);return[{data:s,path:`word/${r}`},...o.RelationshipCount>0?[{data:lh(e,o,n,o,!1),path:`word/${a}/_rels/${l}.rels`}]:[]]},lp=(e,t,r=0)=>{let n=e.PackageParts.Array.slice(r);return 0===n.length?[]:[...n.flatMap(({part:r,path:n})=>ld(e,r,n,t)),...lp(e,t,r+n.length)]},lf=["PackageParts"],lm=class{constructor(){S(this,"formatter",void 0),S(this,"imageReplacer",void 0),S(this,"numberingReplacer",void 0),this.formatter=new la,this.imageReplacer=new ll,this.numberingReplacer=new lu}compile(e,t,r=[]){let n=new li.default,i=this.xmlifyFile(e,t),{PackageParts:o}=i;for(let[,e]of new Map(Object.entries(function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(i,lf))))if(Array.isArray(e))for(let t of e)n.file(t.path,nt(t.data));else n.file(e.path,nt(e.data));for(let{path:e,data:t}of o)n.file(e,"string"==typeof t?nt(t):t);for(let e of r)n.file(e.path,nt(e.data));for(let t of e.Media.Array)"svg"!==t.type?n.file(`word/media/${t.fileName}`,t.data):(n.file(`word/media/${t.fileName}`,t.data),n.file(`word/media/${t.fallback.fileName}`,t.fallback.data));for(let[t,{data:r,fontKey:i}]of e.FontTable.fontOptionsWithKey.entries())n.file(`word/fonts/font${t+1}.odttf`,ls(r,i));return n}xmlifyFile(e,t){let r=e.Document.Relationships.RelationshipCount+1,n=(0,lo.default)(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),i=e.Comments.Relationships.RelationshipCount+1,o=(0,lo.default)(this.formatter.format(e.Comments,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),s=e.FootNotes.Relationships.RelationshipCount+1,a=(0,lo.default)(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),l=this.imageReplacer.getMediaData(n,e.Media),u=this.imageReplacer.getMediaData(o,e.Media),c=this.imageReplacer.getMediaData(a,e.Media);return N(N(N(N({Relationships:{data:(l.forEach((t,n)=>{e.Document.Relationships.addRelationship(r+n,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${t.fileName}`)}),e.Document.Relationships.addRelationship(e.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),(0,lo.default)(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{let t=this.imageReplacer.replace(n,l,r);return this.numberingReplacer.replace(t,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{let r=(0,lo.default)(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(r,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:(0,lo.default)(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:(0,lo.default)(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:(0,lo.default)(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((r,n)=>{let i=(0,lo.default)(this.formatter.format(r.View,{viewWrapper:r,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});
1return this.imageReplacer.getMediaData(i,e.Media).forEach((e,t)=>{r.Relationships.addRelationship(t,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${e.fileName}`)}),{data:(0,lo.default)(this.formatter.format(r.Relationships,{viewWrapper:r,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${n+1}.xml.rels`}}),FooterRelationships:e.Footers.map((r,n)=>{let i=(0,lo.default)(this.formatter.format(r.View,{viewWrapper:r,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(i,e.Media).forEach((e,t)=>{r.Relationships.addRelationship(t,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${e.fileName}`)}),{data:(0,lo.default)(this.formatter.format(r.Relationships,{viewWrapper:r,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${n+1}.xml.rels`}}),Headers:e.Headers.map((r,n)=>{let i=(0,lo.default)(this.formatter.format(r.View,{viewWrapper:r,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),o=this.imageReplacer.getMediaData(i,e.Media),s=this.imageReplacer.replace(i,o,0);return{data:this.numberingReplacer.replace(s,e.Numbering.ConcreteNumbering),path:`word/header${n+1}.xml`}}),Footers:e.Footers.map((r,n)=>{let i=(0,lo.default)(this.formatter.format(r.View,{viewWrapper:r,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),o=this.imageReplacer.getMediaData(i,e.Media),s=this.imageReplacer.replace(i,o,0);return{data:this.numberingReplacer.replace(s,e.Numbering.ConcreteNumbering),path:`word/footer${n+1}.xml`}}),CustomProperties:{data:(0,lo.default)(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:(0,lo.default)(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:(()=>{let t=this.imageReplacer.replace(a,c,s);return this.numberingReplacer.replace(t,e.Numbering.ConcreteNumbering)})(),path:"word/footnotes.xml"},FootNotesRelationships:{data:(c.forEach((t,r)=>{e.FootNotes.Relationships.addRelationship(s+r,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${t.fileName}`)}),(0,lo.default)(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/footnotes.xml.rels"},Endnotes:{data:(0,lo.default)(this.formatter.format(e.Endnotes.View,{viewWrapper:e.Endnotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/endnotes.xml"},EndnotesRelationships:{data:(0,lo.default)(this.formatter.format(e.Endnotes.Relationships,{viewWrapper:e.Endnotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/endnotes.xml.rels"},Settings:{data:(0,lo.default)(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"}},e.Comments.IsEmpty?{}:{Comments:{data:(()=>{let t=this.imageReplacer.replace(o,u,i);return this.numberingReplacer.replace(t,e.Numbering.ConcreteNumbering)})(),path:"word/comments.xml"},CommentsRelationships:{data:(u.forEach((t,r)=>{e.Comments.Relationships.addRelationship(i+r,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${t.fileName}`)}),(0,lo.default)(this.formatter.format(e.Comments.Relationships,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/comments.xml.rels"}}),e.CommentsExtended?{CommentsExtended:{data:(0,lo.default)(this.formatter.format(e.CommentsExtended,{viewWrapper:{View:e.CommentsExtended,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/commentsExtended.xml"}}:{}),e.CommentsIds?{CommentsIds:{data:(0,lo.default)(this.formatter.format(e.CommentsIds,{viewWrapper:{View:e.CommentsIds,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/commentsIds.xml"}}:{}),{},{FontTable:{data:(0,lo.default)(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:(0,lo.default)(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"},Theme:{data:(0,lo.default)(this.formatter.format(e.Theme,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/theme/theme1.xml"},PackageParts:lp(e,t),ContentTypes:{data:(0,lo.default)(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"}})}};function lg(e,t,r,n,i,o,s){try{var a=e[o](s),l=a.value}catch(e){r(e);return}a.done?t(l):Promise.resolve(l).then(n,i)}function lw(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){lg(o,n,i,s,a,"next",e)}function a(e){lg(o,n,i,s,a,"throw",e)}s(void 0)})}}var ly={WITH_2_BLANKS:"  "},lv=e=>!0===e?ly.WITH_2_BLANKS:!1===e?void 0:e,lb=class e{static pack(e,t,r){var n=this;return lw(function*(e,t,r,i=[]){return n.compiler.compile(e,lv(r),i).generateAsync({type:t,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})}).apply(this,arguments)}static toString(t,r,n=[]){return e.pack(t,"string",r,n)}static toBuffer(t,r,n=[]){return e.pack(t,"nodebuffer",r,n)}static toBase64String(t,r,n=[]){return e.pack(t,"base64",r,n)}static toBlob(t,r,n=[]){return e.pack(t,"blob",r,n)}static toArrayBuffer(t,r,n=[]){return e.pack(t,"arraybuffer",r,n)}static toStream(e,t,r=[]){let n=new ln.Stream;return this.compiler.compile(e,lv(t),r).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(e=>{n.emit("data",e),n.emit("end")}),n}};S(lb,"compiler",new lm);var lx=new la,l_=e=>(0,tu.xml2js)(e,{compact:!1,captureSpacesBetweenElements:!0}),lE=e=>{var t;return null!==(t=l_((0,lo.default)(lx.format(new rB({text:e})))).elements[0].elements)&&void 0!==t?t:[]},lk=e=>N(N({},e),{},{attributes:{"xml:space":"preserve"}}),lT=(e,t)=>
1{var r,n;let i=null===(r=e.elements)||void 0===r?void 0:r.find(e=>e.name===t);return void 0===i?[]:(null!==(n=i.elements)&&void 0!==n||(i.elements=[]),i.elements)},lS=(e,t,r)=>{let n=lT(e,"Types");n.some(e=>{var n,i;return"element"===e.type&&"Default"===e.name&&(null==e||null===(n=e.attributes)||void 0===n?void 0:n.ContentType)===t&&(null==e||null===(i=e.attributes)||void 0===i?void 0:i.Extension)===r})||n.push({attributes:{ContentType:t,Extension:r},name:"Default",type:"element"})},lA=(e,t,r)=>{let n=lT(e,"Types");n.some(e=>{var t;return"element"===e.type&&"Override"===e.name&&(null===(t=e.attributes)||void 0===t?void 0:t.PartName)===r})||n.push({attributes:{ContentType:t,PartName:r},name:"Override",type:"element"})},lR=(e,t)=>{var r;let n=null===(r=e.elements)||void 0===r?void 0:r.find(e=>"Types"===e.name);(null==n?void 0:n.elements)!==void 0&&(n.elements=n.elements.filter(e=>{var r,n;return!("Override"===e.name&&String(null!==(r=null===(n=e.attributes)||void 0===n?void 0:n.PartName)&&void 0!==r?r:"").toLowerCase()===t.toLowerCase())}))},lI={DOCUMENT:"file",PARAGRAPH:"paragraph",DRAWING:"drawing"},lC=e=>{let t=parseInt(e.substring(3),10);return isNaN(t)?0:t},lO=e=>lT(e,"Relationships").map(e=>{var t,r;return lC(null!==(t=null===(r=e.attributes)||void 0===r||null===(r=r.Id)||void 0===r?void 0:r.toString())&&void 0!==t?t:"")}).reduce((e,t)=>Math.max(e,t),0)+1,lN=(e,t,r,n,i)=>{let o=lT(e,"Relationships");return o.push({attributes:{Id:`rId${t}`,Type:r,Target:n,TargetMode:i},name:"Relationship",type:"element"}),o},lF=()=>({declaration:{attributes:{version:"1.0",encoding:"UTF-8",standalone:"yes"}},elements:[{type:"element",name:"Relationships",attributes:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},elements:[]}]}),lP=new Map([["wp:inline","wp:docPr"],["wp:anchor","wp:docPr"],["wpg:graphicFrame","wpg:cNvPr"],["wpc:graphicFrame","wpg:cNvPr"]]),lD=e=>{var t;return(null!==(t=e.elements)&&void 0!==t?t:[]).flatMap(e=>{var t;let r=void 0===e.name?void 0:lP.get(e.name),n=void 0===r?void 0:null===(t=e.elements)||void 0===t?void 0:t.find(e=>e.name===r);return[...n?[{element:e,properties:n}]:[],...lD(e)]})},lL=e=>{var t,r;return[null===(t=e.attributes)||void 0===t?void 0:t.descr,null===(r=e.attributes)||void 0===r?void 0:r.title].flatMap(e=>void 0===e?[]:[String(e)])},lB=e=>{let t=e.lastIndexOf("/");return`${e.slice(0,t+1)}_rels/${e.slice(t+1)}.rels`},lM=e=>e.replace(/(^|\/)_rels\/([^/]*)\.rels$/,"$1$2"),lj=e=>e.slice(0,e.lastIndexOf("/")+1),lU=(e,t)=>{let r=t.replace(/\\/g,"/");return(r.startsWith("/")?r:`${lj(e)}${r}`).split("/").reduce((e,t)=>""===t||"."===t?e:".."===t?e.slice(0,-1):[...e,t],[]).join("/")},lz=(e,t)=>{let r=lj(e).split("/").filter(Boolean),n=t.split("/"),i=r.findIndex((e,t)=>t>=n.length-1||n[t]!==e),o=-1===i?r.length:i;return[...r.slice(o).map(()=>".."),...n.slice(o)].join("/")},lW="[Content_Types].xml",lH=e=>{var t,r;return(null===(t=e.elements)||void 0===t?void 0:t.some(e=>"Relationships"===e.name))||(e.elements=[...null!==(r=e.elements)&&void 0!==r?r:[],...lF().elements]),lT(e,"Relationships")},lK=(e,t,r,n)=>{let i=new la,o=r=>e.has(r)||t.has(r),s=r=>{if(o(r))return r;let n=(()=>{try{return decodeURI(r)}catch(e){return}})();if(void 0!==n&&o(n))return n;let i=r.toLowerCase();return[...e.keys(),...t.keys()].find(e=>e.toLowerCase()===i)},a=(t,r)=>{let n=e.get(lB(t));return void 0===n?void 0:lT(n,"Relationships").find(e=>{var t;return"Relationship"===e.name&&(null===(t=e.attributes)||void 0===t?void 0:t.Id)===r})},l=(e,t)=>{var r,n;let i=null===(r=t.attributes)||void 0===r?void 0:r.Target;return(null===(n=t.attributes)||void 0===n?void 0:n.TargetMode)==="External"||void 0===i?void 0:s(lU(e,String(i)))},u=t=>[...e].some(([e,r])=>e.endsWith(".rels")&&lT(r,"Relationships").some(r=>l(lM(e),r)===t)),c=r=>{e.delete(r),t.delete(r),e.delete(lB(r));let n=e.get(lW);void 0!==n&&lR(n,`/${r}`)};return{getRelatedPart:(t,r)=>{let n=a(t.path,r),i=void 0===n?void 0:l(t.path,n);return void 0===i?void 0:{path:i,xml:e.get(i)}},replaceRelatedPart:(t,n,i)=>{let o=`word/${r.PackageParts.add(i)}`,{relationshipType:s}=i.options,h=lz(t.path,o),d=void 0===n?void 0:a(t.path,n);if(void 0===d){var p;let r=lB(t.path),i=null!==(p=e.get(r))&&void 0!==p?p:lF();e.set(r,i);let o=null!=n?n:`rId${lO(i)}`;return lH(i).push({type:"element",name:"Relationship",attributes:{Id:o,Type:s,Target:h}}),o}let f=l(t.path,d);return d.attributes=N(N({},Object.fromEntries(Object.entries(d.attributes).filter(([e])=>"TargetMode"!==e))),{},{Type:s,Target:h}),void 0===f||f===t.path||f===lW||f.endsWith(".rels")||u(f)||c(f),String(d.attributes.Id)},format:e=>l_((0,lo.default)(i.format(e,n))).elements[0]}},lG=({parts:e,binaryParts:t,file:r,patches:n,delimiters:i},o)=>{let s=n.map(([e,t])=>({placeholder:`${i.start}${e}${i.end}`,patch:t}));for(let{drawing:n,patch:i}of[...e].filter(([e])=>e.startsWith("word/")&&!e.endsWith(".rels")).flatMap(([e,t])=>lD(t).flatMap(r=>{let n=lL(r.properties),i=s.filter(({placeholder:e})=>n.some(t=>t.includes(e)));if(i.length>1){var o,a;throw Error(`The drawing "${null!==(o=null===(a=r.properties.attributes)||void 0===a?void 0:a.name)&&void 0!==o?o:""}" in ${e} has the placeholders ${i.map(({placeholder:e})=>e).join(" and ")} in its alt text. A drawing can only be patched once`)}return i.map(({placeholder:n,patch:i})=>({drawing:N(N({placeholder:n},r),{},{part:{path:e,xml:t}}),patch:i}))})))i.patch(n,lK(e,t,r,o(n.part.path)))}
1,lV=class extends Error{constructor(e){super(`Token ${e} not found`),this.name="TokenNotFoundError"}},l$=(e,t)=>{var r,n,i,o;for(let s=0;s<(null!==(r=e.elements)&&void 0!==r?r:[]).length;s++){let r=e.elements[s];if("element"===r.type&&"w:r"===r.name){for(let e of(null!==(n=r.elements)&&void 0!==n?n:[]).filter(e=>"element"===e.type&&"w:t"===e.name))if((null===(i=e.elements)||void 0===i?void 0:i[0])&&(null===(o=e.elements[0].text)||void 0===o?void 0:o.includes(t)))return s}}throw new lV(t)},lq=(e,t)=>{var r,n;let i=-1,o=null!==(r=null===(n=e.elements)||void 0===n?void 0:n.map((e,r)=>{if(-1!==i||"element"!==e.type||"w:t"!==e.name)return e;{var n,o;let s=(null!==(n=null===(o=e.elements)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.text)&&void 0!==n?n:"").split(t),a=s.map(t=>N(N(N({},e),lk(e)),{},{elements:lE(t)}));return s.length>1&&(i=r),a}}).flat())&&void 0!==r?r:[];return{left:N(N({},JSON.parse(JSON.stringify(e))),{},{elements:o.slice(0,i+1)}),right:N(N({},JSON.parse(JSON.stringify(e))),{},{elements:o.slice(i+1)})}},lZ={START:0,MIDDLE:1,END:2},lX=({paragraphElement:e,renderedParagraph:t,originalText:r,replacementText:n,fromIndex:i=0})=>{let o=t.text.indexOf(r,i),s=o+r.length-1,a=lZ.START;for(let r of t.runs)for(let{text:t,index:i,start:l,end:u}of r.parts)switch(a){case lZ.START:if(o>=l&&o<=u){let c=o-l,h=Math.min(s,u)-l;if(""===t.substring(c,h+1))continue;let d=t.substring(0,c)+n+t.substring(h+1);lY(e.elements[r.index].elements[i],d),a=lZ.MIDDLE;continue}break;case lZ.MIDDLE:if(s<=u){let n=t.substring(s-l+1);lY(e.elements[r.index].elements[i],n);let o=e.elements[r.index].elements[i];e.elements[r.index].elements[i]=lk(o),a=lZ.END}else lY(e.elements[r.index].elements[i],"")}return e},lY=(e,t)=>(e.elements=lE(t),e),lJ=e=>{if("w:p"!==e.element.name)throw Error(`Invalid node type: ${e.element.name}`);if(!e.element.elements)return{text:"",runs:[],index:-1,pathToParagraph:[]};let t=0,r=e.element.elements.map((e,t)=>({element:e,i:t})).filter(({element:e})=>"w:r"===e.name).map(({element:e,i:r})=>{let n=lQ(e,r,t);return t+=n.text.length,n}).filter(e=>!!e);return{text:r.reduce((e,t)=>e+t.text,""),runs:r,index:e.index,pathToParagraph:l0(e)}},lQ=(e,t,r)=>{if(!e.elements)return{text:"",parts:[],index:-1,start:r,end:r};let n=r,i=e.elements.map((e,t)=>{var r,i;if("w:t"!==e.name||!e.elements||0===e.elements.length)return;let o=null!==(r=null===(i=e.elements[0].text)||void 0===i?void 0:i.toString())&&void 0!==r?r:"",s=n;return n+=o.length,{text:o,index:t,start:s,end:s+o.length-1}}).filter(e=>!!e).map(e=>e);return{text:i.reduce((e,t)=>e+t.text,""),parts:i,index:t,start:r,end:i.length>0?i[i.length-1].end:r}},l0=e=>e.parent?[...l0(e.parent),e.index]:[e.index],l1=e=>{var t,r;return null!==(t=null===(r=e.element.elements)||void 0===r?void 0:r.map((t,r)=>({element:t,index:r,parent:e})))&&void 0!==t?t:[]},l2=e=>{let t,r=[],n=[...l1({element:e,index:0,parent:void 0})];for(;n.length>0;)"w:p"===(t=n.shift()).element.name&&(r=[...r,lJ(t)]),n.push(...l1(t));return r},l6=(e,t)=>l2(e).filter(e=>e.text.includes(t)),l5=new la,l3=({json:e,patch:t,patchText:r,context:n,keepOriginalStyles:i=!0,recursive:o=!0})=>{let s=l6(e,r);if(0===s.length)return{element:e,didFindOccurrence:!1};let a=[...s].reverse();for(let s of t.type===lI.DOCUMENT?un(a):a)switch(t.type){case lI.DOCUMENT:{let r=uo(e,s.pathToParagraph),i=us(s.pathToParagraph);r.elements.splice(i,1,...l8(t,n));break}case lI.PARAGRAPH:default:{let a=ui(e,s.pathToParagraph),l=s,u=0;do{let e=l4({paragraphElement:a,renderedParagraph:l,patchText:r,fromIndex:u,children:l8(t,n),keepOriginalStyles:i});u=(l=lJ({element:a,index:s.index,parent:void 0})).runs.filter(t=>t.index<e).reduce((e,t)=>e+t.text.length,0)}while(o&&l.text.includes(r,u))}}return{element:e,didFindOccurrence:!0}},l8=(e,t)=>e.children.flatMap(e=>{var t;return null!==(t=e.writtenAs)&&void 0!==t?t:e}).map(e=>l_((0,lo.default)(l5.format(e,t)))).map(e=>e.elements[0]),l4=({paragraphElement:e,renderedParagraph:t,patchText:r,fromIndex:n,children:i,keepOriginalStyles:o})=>{lX({paragraphElement:e,renderedParagraph:t,originalText:r,replacementText:"ï¿¿",fromIndex:n});let s=l$(e,"ï¿¿"),a=e.elements[s],{left:l,right:u}=lq(a,"ï¿¿"),c=a.elements.find(e=>"element"===e.type&&"w:rPr"===e.name),h=o&&c?i.map(e=>"w:r"===e.name?l9(e,c):e):i,d=c?N(N({},u),{},{elements:[c,...u.elements]}):u;return e.elements.splice(s,1,l,...h,d),s+1+h.length},l9=(e,t)=>
1{let r=ut(e).find(e=>"element"===e.type&&"w:rPr"===e.name);if(!r)return N(N({},e),{},{elements:[t,...ut(e)]});let n=new Set(ut(r).map(e=>e.name)),i=[...ut(t).filter(e=>!n.has(e.name)),...ut(r)],o=N(N({},r),{},{elements:[...i].sort((e,t)=>ue(e)-ue(t))});return N(N({},e),{},{elements:ut(e).map(e=>e===r?o:e)})},l7=["w:rStyle","w:rFonts","w:b","w:bCs","w:i","w:iCs","w:caps","w:smallCaps","w:strike","w:dstrike","w:outline","w:shadow","w:emboss","w:imprint","w:noProof","w:snapToGrid","w:vanish","w:webHidden","w:color","w:spacing","w:w","w:kern","w:position","w:sz","w:szCs","w:highlight","w:u","w:effect","w:bdr","w:shd","w:fitText","w:vertAlign","w:rtl","w:cs","w:em","w:lang","w:eastAsianLayout","w:specVanish","w:oMath","w14:glow","w14:shadow","w14:reflection","w14:textOutline","w14:textFill","w14:scene3d","w14:props3d","w14:ligatures","w14:numForm","w14:numSpacing","w14:stylisticSets","w14:cntxtAlts"],ue=e=>{var t;if("w:rPrChange"===e.name)return l7.length+1;let r=l7.indexOf(null!==(t=e.name)&&void 0!==t?t:"");return -1===r?l7.length:r},ut=e=>{var t;return null!==(t=e.elements)&&void 0!==t?t:[]},ur=(e,t)=>e.length>t.length&&t.every((t,r)=>e[r]===t),un=e=>e.filter(t=>!e.some(e=>ur(t.pathToParagraph,e.pathToParagraph))),ui=(e,t)=>{let r=e;for(let e=1;e<t.length;e++){let n=t[e];r=r.elements[n]}return r},uo=(e,t)=>ui(e,t.slice(0,t.length-1)),us=e=>e[e.length-1],ua=new Map([["dk1","dark1"],["lt1","light1"],["dk2","dark2"],["lt2","light2"],["accent1","accent1"],["accent2","accent2"],["accent3","accent3"],["accent4","accent4"],["accent5","accent5"],["accent6","accent6"],["hlink","hyperlink"],["folHlink","followedHyperlink"]]),ul=e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.slice(e.name.indexOf(":")+1)},uu=(e,t)=>{var r;return null==e||null===(r=e.elements)||void 0===r?void 0:r.find(e=>ul(e)===t)},uc=e=>{var t;let r=null===(t=e.elements)||void 0===t?void 0:t.map(e=>{var t,r;return"srgbClr"===ul(e)?null===(t=e.attributes)||void 0===t?void 0:t.val:"sysClr"===ul(e)?null===(r=e.attributes)||void 0===r?void 0:r.lastClr:void 0}).find(e=>void 0!==e);return"string"==typeof r&&/^[0-9A-Fa-f]{6}$/.test(r)?r.toUpperCase():void 0},uh=e=>255===e[0]&&254===e[1]||254===e[0]&&255===e[1],ud=function(){var e=lw(function*(e,t){let r=e.file(t);if(null!==r)return uh((yield r.async("uint8array")))?void 0:l_((yield r.async("text")))});return function(t,r){return e.apply(this,arguments)}}(),up=function(){var e=lw(function*(e){var t,r;let n=null===(t=uu((yield ud(e,"word/_rels/document.xml.rels")),"Relationships"))||void 0===t||null===(t=t.elements)||void 0===t?void 0:t.find(e=>{var t;return(null===(t=e.attributes)||void 0===t?void 0:t.Type)==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"}),i=null==n||null===(r=n.attributes)||void 0===r?void 0:r.Target;return"string"==typeof i?ud(e,i.startsWith("/")?i.slice(1):`word/${i}`):void 0});return function(t){return e.apply(this,arguments)}}(),uf=function(){var e=lw(function*(e){var t;let r=yield up(e);if(void 0===r)return;let n=uu(uu(uu(r,"theme"),"themeElements"),"clrScheme");return tG(Object.fromEntries((null!==(t=null==n?void 0:n.elements)&&void 0!==t?t:[]).flatMap(e=>{var t;let r=ua.get(null!==(t=ul(e))&&void 0!==t?t:""),n=uc(e);return r&&n?[[r,n]]:[]})))});return function(t){return e.apply(this,arguments)}}(),um=new ll,ug=new Uint8Array([255,254]),uw=new Uint8Array([254,255]),uy=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0};lw(function*({outputType:e,data:t,patches:r,keepOriginalStyles:n,placeholderDelimiters:i={start:"{{",end:"}}"},recursive:o=!0}){var s,a,l;let u=t instanceof li.default?t:yield li.default.loadAsync(t),c=new Map,h=yield uf(u),d=[],p={Media:new sG,Theme:h&&{Colors:h},PackageParts:new an({addOverride:(e,t)=>d.push({contentType:e,partName:t})},new Set(Object.keys(u.files).filter(e=>e.startsWith("word/")).map(e=>e.slice(5))))},f=new Map,m=[],g=[],w=!1,y=new Map;if(!(null==i?void 0:i.start.trim())||!(null==i?void 0:i.end.trim()))throw Error("Both start and end delimiters must be non-empty strings.");let{start:v,end:b}=i;for(let[e,t]of Object.entries(r))if(!((null==t?void 0:t.type)===lI.DRAWING?"function"==typeof t.patch:Array.isArray(null==t?void 0:t.children)))throw Error(`Invalid patch "${e}". Expected { type: PatchType.PARAGRAPH or PatchType.DOCUMENT, children: [...] }, or a drawing patch such as ChartDataPatch from docx/charts`);for(let[e,t]of Object.entries(u.files)){let r=yield t.async("uint8array"),n=r.slice(0,2);if(uy(n,ug)||uy(n,uw)||!e.endsWith(".xml")&&!e.endsWith(".rels")){y.set(e,r);continue}let i=l_((yield t.async("text")));if("word/document.xml"===e){let e=null===(s=i.elements)||void 0===s?void 0:s.find(e=>"w:document"===e.name);
1if(e&&e.attributes){for(let t of["mc","wp","r","w15","m"])e.attributes[`xmlns:${t}`]=sa[t];e.attributes["mc:Ignorable"]=`${e.attributes["mc:Ignorable"]||""} w15`.trim()}}f.set(e,i)}let x=e=>({file:p,viewWrapper:{Relationships:{addRelationship:(t,r,n,i)=>{g.push({key:e,id:t,type:r,target:n,targetMode:i})}}},stack:[]});for(let[e,t]of(lG({parts:f,binaryParts:y,file:p,patches:Object.entries(r).flatMap(([e,t])=>t.type===lI.DRAWING?[[e,t]]:[]),delimiters:{start:v,end:b}},x),[...f])){if(!e.startsWith("word/")||e.endsWith(".xml.rels"))continue;let i=x(e);for(let[s,a]of(c.set(e,i),Object.entries(r))){if(a.type===lI.DRAWING)continue;let r=`${v}${s}${b}`;l3({json:t,patch:N(N({},a),{},{children:a.children.map(t=>{if(!(t instanceof iq))return t;{let r=new i$(t.options.children,r9());return g.push({key:e,id:r.linkId,type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",target:t.options.link,targetMode:io.EXTERNAL}),r}})}),patchText:r,context:i,keepOriginalStyles:n,recursive:o})}let s=um.getMediaData(JSON.stringify(t),i.file.Media);s.length>0&&(w=!0,m.push({key:e,mediaDatas:s}))}for(let{key:e,mediaDatas:t}of m){let r=lB(e),n=null!==(a=f.get(r))&&void 0!==a?a:lF();f.set(r,n);let i=lO(n),o=um.replace(JSON.stringify(f.get(e)),t,i);f.set(e,JSON.parse(o));for(let e=0;e<t.length;e++){let{fileName:r}=t[e];lN(n,i+e,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${r}`)}}for(let{key:e,id:t,type:r,target:n,targetMode:i}of g){let o=lB(e),s=null!==(l=f.get(o))&&void 0!==l?l:lF();f.set(o,s),lN(s,t,r,n,i)}let _=lp(p,void 0);if(w||d.length>0){let e=f.get("[Content_Types].xml");if(!e)throw Error("Could not find content types file");for(let{contentType:t,partName:r}of(w&&(lS(e,"image/png","png"),lS(e,"image/jpeg","jpeg"),lS(e,"image/jpeg","jpg"),lS(e,"image/bmp","bmp"),lS(e,"image/gif","gif"),lS(e,"image/svg+xml","svg")),d))lA(e,t,r)}let E=new li.default;for(let[e,t]of f){let r=ub(t);E.file(e,nt(r))}for(let[e,t]of y)E.file(e,t);for(let{data:e,fileName:t}of p.Media.Array)E.file(`word/media/${t}`,e);for(let{path:e,data:t}of _)E.file(e,"string"==typeof t?nt(t):t);return E.generateAsync({type:e,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})});var uv=e=>N(N({},e),void 0===e.elements?{}:{elements:e.elements.map(e=>"text"===e.type?N(N({},e),{},{text:String(e.text).replace(/&/g,"&amp;")}):uv(e))}),ub=e=>(0,tu.js2xml)(uv(e),{attributeValueFn:e=>String(e).replace(/&(?!amp;|lt;|gt;|quot;|apos;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")});lw(function*({data:e}){let t=e instanceof li.default?e:yield li.default.loadAsync(e),r=new Set;for(let[e,n]of Object.entries(t.files))if((e.endsWith(".xml")||e.endsWith(".rels"))&&e.startsWith("word/")&&!e.endsWith(".xml.rels")){let e=l_((yield n.async("text")));[...l2(e).map(e=>e.text),...lD(e).flatMap(({properties:e})=>lL(e))].forEach(e=>ux(e).forEach(e=>r.add(e)))}return Array.from(r)});var ux=e=>{var t;let r=RegExp("(?<=\\{\\{).+?(?=\\}\\})","gs");return null!==(t=e.match(r))&&void 0!==t?t:[]}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.