1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[505],{326:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(7294),o=r(3704),i="undefined"!=typeof document;function a(){var e=(0,n.useState)(i?window.innerHeight:null),t=e[0],r=e[1],a=(0,n.useCallback)(function(){return r(window.innerHeight)},[]);return(0,o.Z)(i?window:null,"resize",a),t}},9632:function(e,t,r){"use strict";function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===l(e)}r.d(t,{Z:function(){return $}});let o=1/0;function i(e){return"string"==typeof e}function a(e){return"number"==typeof e}function s(e){return"object"==typeof e}function c(e){return null!=e}function u(e){return!e.trim().length}function l(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let f=e=>`Invalid value for key ${e}`,h=e=>`Pattern length exceeds max of ${e}.`,p=e=>`Missing ${e} property in key`,d=e=>`Property 'weight' in key '${e}' must be a positive integer`,g=Object.prototype.hasOwnProperty;class y{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=v(e);t+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function v(e){let t=null,r=null,o=null,a=1,s=null;if(i(e)||n(e))o=e,t=m(e),r=b(e);else{if(!g.call(e,"name"))throw Error(p("name"));let n=e.name;if(o=n,g.call(e,"weight")&&(a=e.weight)<=0)throw Error(d(n));t=m(n),r=b(n),s=e.getFn}return{path:t,id:r,weight:a,src:o,getFn:s}}function m(e){return n(e)?e:e.split(".")}function b(e){return n(e)?e.join("."):e}var w={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,t){let r=[],u=!1,f=(e,t,h)=>{if(c(e)){if(t[h]){var p,d;let g=t[h],y=e[g];if(c(y)){if(h===t.length-1&&(i(y)||a(y)||!0===(p=y)||!1===p||s(d=p)&&null!==d&&"[object Boolean]"==l(p)))r.push(null==y?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-o?"-0":t}(y));else if(n(y)){u=!0;for(let e=0,r=y.length;e<r;e+=1)f(y[e],t,h+1)}else t.length&&f(y,t,h+1)}}else r.push(e)}};return f(e,i(t)?t.split("."):t,0),u?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};let E=/[^ ]+/g;class x{constructor({getFn:e=w.getFn,fieldNormWeight:t=w.fieldNormWeight}={}){this.norm=function(e=1,t=3){let r=new Map,n=Math.pow(10,t);return{get(t){let o=t.match(E).length;if(r.has(o))return r.get(o);let i=parseFloat(Math.round(1/Math.pow(o,.5*e)*n)/n);return r.set(o,i),i},clear(){r.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,i(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();i(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t<r;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!c(e)||u(e))return;let r={v:e,i:t,n:this.norm.get(e)};this.records.push(r)}_addObject(e,t){let r={i:t,$:{}};this.keys.forEach((t,o)=>{let a=t.getFn?t.getFn(e):this.getFn(e,t.path);if(c(a)){if(n(a)){let e=[],t=[{nestedArrIndex:-1,value:a}];for(;t.length;){let{nestedArrIndex:r,value:o}=t.pop();if(c(o)){if(i(o)&&!u(o)){let t={v:o,i:r,n:this.norm.get(o)};e.push(t)}else n(o)&&o.forEach((e,r)=>{t.push({nestedArrIndex:r,value:e})})}}r.$[o]=e}else if(i(a)&&!u(a)){let e={v:a,n:this.norm.get(a)};r.$[o]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function R(e,t,{getFn:r=w.getFn,fieldNormWeight:n=w.fieldNormWeight}={}){let o=new x({getFn:r,fieldNormWeight:n});return o.setKeys(e.map(v)),o.setSources(t),o.create(),o}function S(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:o=w.distance,ignoreLocation:i=w.ignoreLocation}={}){let a=t/e.length;if(i)return a;let s=Math.abs(n-r);return o?a+s/o:s?1:a}class k{constructor(e,{location:t=w.location,threshold:r=w.threshold,distance:n=w.distance,includeMatches:o=w.includeMatches,findAllMatches:i=w.findAllMatches,minMatchCharLength:a=w.minMatchCharLength,isCaseSensitive:s=w.isCaseSensitive,ignoreLocation:c=w.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:n,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:c},this.pattern=s?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;let u=(e,t)=>
1{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let r=0,n=e.length;r<n;r+=1){let o=e.charAt(r);t[o]=(t[o]||0)|1<<n-r-1}return t}(e),startIndex:t})},l=this.pattern.length;if(l>32){let e=0,t=l%32,r=l-t;for(;e<r;)u(this.pattern.substr(e,32),e),e+=32;if(t){let e=l-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,includeMatches:r}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:n,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:s,ignoreLocation:c}=this.options,u=[],l=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:p,startIndex:d})=>{let{isMatch:g,score:y,indices:v}=function(e,t,r,{location:n=w.location,distance:o=w.distance,threshold:i=w.threshold,findAllMatches:a=w.findAllMatches,minMatchCharLength:s=w.minMatchCharLength,includeMatches:c=w.includeMatches,ignoreLocation:u=w.ignoreLocation}={}){let l;if(t.length>32)throw Error(h(32));let f=t.length,p=e.length,d=Math.max(0,Math.min(n,p)),g=i,y=d,v=s>1||c,m=v?Array(p):[];for(;(l=e.indexOf(t,y))>-1;)if(g=Math.min(S(t,{currentLocation:l,expectedLocation:d,distance:o,ignoreLocation:u}),g),y=l+f,v){let e=0;for(;e<f;)m[l+e]=1,e+=1}y=-1;let b=[],E=1,x=f+p,R=1<<f-1;for(let n=0;n<f;n+=1){let i=0,s=x;for(;i<s;){let e=S(t,{errors:n,currentLocation:d+s,expectedLocation:d,distance:o,ignoreLocation:u});e<=g?i=s:x=s,s=Math.floor((x-i)/2+i)}x=s;let c=Math.max(1,d-s+1),l=a?p:Math.min(d+s,p)+f,h=Array(l+2);h[l+1]=(1<<n)-1;for(let i=l;i>=c;i-=1){let a=i-1,s=r[e.charAt(a)];if(v&&(m[a]=+!!s),h[i]=(h[i+1]<<1|1)&s,n&&(h[i]|=(b[i+1]|b[i])<<1|1|b[i+1]),h[i]&R&&(E=S(t,{errors:n,currentLocation:a,expectedLocation:d,distance:o,ignoreLocation:u}))<=g){if(g=E,(y=a)<=d)break;c=Math.max(1,2*d-y)}}let w=S(t,{errors:n+1,currentLocation:d,expectedLocation:d,distance:o,ignoreLocation:u});if(w>g)break;b=h}let k={isMatch:y>=0,score:Math.max(.001,E)};if(v){let e=function(e=[],t=w.minMatchCharLength){let r=[],n=-1,o=-1,i=0;for(let a=e.length;i<a;i+=1){let a=e[i];a&&-1===n?n=i:a||-1===n||((o=i-1)-n+1>=t&&r.push([n,o]),n=-1)}return e[i-1]&&i-n>=t&&r.push([n,i-1]),r}(m,s);e.length?c&&(k.indices=e):k.isMatch=!1}return k}(e,t,p,{location:n+d,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:s,includeMatches:r,ignoreLocation:c});g&&(f=!0),l+=y,g&&v&&(u=[...u,...v])});let p={isMatch:f,score:f?l/this.chunks.length:1};return f&&r&&(p.indices=u),p}}class O{constructor(e){this.pattern=e}static isMultiMatch(e){return P(e,this.multiRegex)}static isSingleMatch(e){return P(e,this.singleRegex)}search(){}}function P(e,t){let r=e.match(t);return r?r[1]:null}class I extends O{constructor(e,{location:t=w.location,threshold:r=w.threshold,distance:n=w.distance,includeMatches:o=w.includeMatches,findAllMatches:i=w.findAllMatches,minMatchCharLength:a=w.minMatchCharLength,isCaseSensitive:s=w.isCaseSensitive,ignoreLocation:c=w.ignoreLocation}={}){super(e),this._bitapSearch=new k(e,{location:t,threshold:r,distance:n,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class A extends O{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0,n=[],o=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+o,n.push([t,r-1]);let i=!!n.length;return{isMatch:i,score:i?0:1,indices:n}}}let C=[class extends O{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},A,class extends O{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends O{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends O{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends O{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends O{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=e.indexOf(this.pattern),r=-1===t;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}},I],T=C.length,Z=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,L=new Set([I.type,A.type]),M=[];function _(e,t){for(let r=0,n=M.length;r<n;r+=1){let n=M[r];if(n.condition(e,t))return new n(e,t)}return new k(e,t)}let j={AND:"$and",OR:"$or"},D={PATH:"$path",PATTERN:"$val"},B=e=>!!(e[j.AND]||e[j.OR]),U=e=>!!e[D.PATH],N=e=>!n(e)&&s(e)&&!B(e),F=e=>({[j.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function z(e,t,{auto:r=!0}={}){let o=e=>{let a=Object.keys(e),s=U(e);if(!s&&a.length>1&&!B(e))return o(F(e));if(N(e)){let n=s?e[D.PATH]:a[0],o=s?e[D.PATTERN]:e[n];if(!i(o))throw Error(f(n));let c={keyId:b(n),pattern:o};return r&&(c.searcher=_(o,t)),c}let c={children:[],operator:a[0]};return a.forEach(t=>{let r=e[t];
1n(r)&&r.forEach(e=>{c.children.push(o(e))})}),c};return B(e)||(e=F(e)),o(e)}function W(e,t){let r=e.matches;t.matches=[],c(r)&&r.forEach(e=>{if(!c(e.indices)||!e.indices.length)return;let{indices:r,value:n}=e,o={indices:r,value:n};e.key&&(o.key=e.key.src),e.idx>-1&&(o.refIndex=e.idx),t.matches.push(o)})}function V(e,t){t.score=e.score}class ${constructor(e,t={},r){this.options={...w,...t},this.options.useExtendedSearch,this._keyStore=new y(this.options.keys),this.setCollection(e,r)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof x))throw Error("Incorrect 'index' type");this._myIndex=t||R(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){c(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let r=0,n=this._docs.length;r<n;r+=1){let o=this._docs[r];e(o,r)&&(this.removeAt(r),r-=1,n-=1,t.push(o))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){let{includeMatches:r,includeScore:n,shouldSort:o,sortFn:s,ignoreFieldNorm:c}=this.options,u=i(e)?i(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return!function(e,{ignoreFieldNorm:t=w.ignoreFieldNorm}){e.forEach(e=>{let r=1;e.matches.forEach(({key:e,norm:n,score:o})=>{let i=e?e.weight:null;r*=Math.pow(0===o&&i?Number.EPSILON:o,(i||1)*(t?1:n))}),e.score=r})}(u,{ignoreFieldNorm:c}),o&&u.sort(s),a(t)&&t>-1&&(u=u.slice(0,t)),function(e,t,{includeMatches:r=w.includeMatches,includeScore:n=w.includeScore}={}){let o=[];return r&&o.push(W),n&&o.push(V),e.map(e=>{let{idx:r}=e,n={item:t[r],refIndex:r};return o.length&&o.forEach(t=>{t(e,n)}),n})}(u,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){let t=_(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:e,i:r,n:o})=>{if(!c(e))return;let{isMatch:i,score:a,indices:s}=t.searchIn(e);i&&n.push({item:e,idx:r,matches:[{score:a,value:e,norm:o,indices:s}]})}),n}_searchLogical(e){let t=z(e,this.options),r=(e,t,n)=>{if(!e.children){let{keyId:r,searcher:o}=e,i=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:o});return i&&i.length?[{idx:n,item:t,matches:i}]:[]}let o=[];for(let i=0,a=e.children.length;i<a;i+=1){let a=e.children[i],s=r(a,t,n);if(s.length)o.push(...s);else if(e.operator===j.AND)return[]}return o},n=this._myIndex.records,o={},i=[];return n.forEach(({$:e,i:n})=>{if(c(e)){let a=r(t,e,n);a.length&&(o[n]||(o[n]={idx:n,item:e,matches:[]},i.push(o[n])),a.forEach(({matches:e})=>{o[n].matches.push(...e)}))}}),i}_searchObjectList(e){let t=_(e,this.options),{keys:r,records:n}=this._myIndex,o=[];return n.forEach(({$:e,i:n})=>{if(!c(e))return;let i=[];r.forEach((r,n)=>{i.push(...this._findMatches({key:r,value:e[n],searcher:t}))}),i.length&&o.push({idx:n,item:e,matches:i})}),o}_findMatches({key:e,value:t,searcher:r}){if(!c(t))return[];let o=[];if(n(t))t.forEach(({v:t,i:n,n:i})=>{if(!c(t))return;let{isMatch:a,score:s,indices:u}=r.searchIn(t);a&&o.push({score:s,key:e,value:t,idx:n,norm:i,indices:u})});else{let{v:n,n:i}=t,{isMatch:a,score:s,indices:c}=r.searchIn(n);a&&o.push({score:s,key:e,value:n,norm:i,indices:c})}return o}}$.version="6.6.2",$.createIndex=R,$.parseIndex=function(e,{getFn:t=w.getFn,fieldNormWeight:r=w.fieldNormWeight}={}){let{keys:n,records:o}=e,i=new x({getFn:t,fieldNormWeight:r});return i.setKeys(n),i.setIndexRecords(o),i},$.config=w,$.parseQuery=z,function(...e){M.push(...e)}(class{constructor(e,{isCaseSensitive:t=w.isCaseSensitive,includeMatches:r=w.includeMatches,minMatchCharLength:n=w.minMatchCharLength,ignoreLocation:o=w.ignoreLocation,findAllMatches:i=w.findAllMatches,location:a=w.location,threshold:s=w.threshold,distance:c=w.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:r,minMatchCharLength:n,findAllMatches:i,ignoreLocation:o,location:a,threshold:s,distance:c},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map(e=>{let r=e.trim().split(Z).filter(e=>e&&!!e.trim()),n=[];for(let e=0,o=r.length;e<o;e+=1){let o=r[e],i=!1,a=-1;for(;!i&&++a<T;){let e=C[a],r=e.isMultiMatch(o);r&&(n.push(new e(r,t)),i=!0)}if(!i)for(a=-1;++a<T;){let e=C[a],r=e.isSingleMatch(o);if(r){n.push(new e(r,t));break}}}return n})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:r,isCaseSensitive:n}=this.options;e=n?e:e.toLowerCase();let o=0,i=[],a=0;for(let n=0,s=t.length;n<s;n+=1){let s=t[n];i.length=0,o=0;for(let t=0,n=s.length;t<n;t+=1){let n=s[t],{isMatch:c,indices:u,score:l}=n.search(e);if(c){if(o+=1,a+=l,r){let e=n.constructor.type;L.has(e)?i=[...i,...u]:i.push(u)}}else{a=0,o=0,i.length=0;break}}
1if(o){let e={isMatch:!0,score:a/o};return r&&(e.indices=i),e}}return{isMatch:!1,score:1}}})},1296:function(e,t,r){var n=0/0,o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,l="object"==typeof self&&self&&self.Object===Object&&self,f=u||l||Function("return this")(),h=Object.prototype.toString,p=Math.max,d=Math.min,g=function(){return f.Date.now()};function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==h.call(t))return n;if(y(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=y(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var u=a.test(e);return u||s.test(e)?c(e.slice(2),u?2:8):i.test(e)?n:+e}e.exports=function(e,t,r){var n,o,i,a,s,c,u=0,l=!1,f=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var r=n,i=o;return n=o=void 0,u=t,a=e.apply(i,r)}function b(e){var r=e-c,n=e-u;return void 0===c||r>=t||r<0||f&&n>=i}function w(){var e,r,n,o=g();if(b(o))return E(o);s=setTimeout(w,(e=o-c,r=o-u,n=t-e,f?d(n,i-r):n))}function E(e){return(s=void 0,h&&n)?m(e):(n=o=void 0,a)}function x(){var e,r=g(),i=b(r);if(n=arguments,o=this,c=r,i){if(void 0===s)return u=e=c,s=setTimeout(w,t),l?m(e):a;if(f)return s=setTimeout(w,t),m(c)}return void 0===s&&(s=setTimeout(w,t)),a}return t=v(t)||0,y(r)&&(l=!!r.leading,i=(f="maxWait"in r)?p(v(r.maxWait)||0,t):i,h="trailing"in r?!!r.trailing:h),x.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=c=o=s=void 0},x.flush=function(){return void 0===s?a:E(g())},x}},1876:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=c(e),a=i[0],s=i[1],u=new o((a+s)*3/4-s),l=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[l++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(function(e,t,n){for(var o,i=[],a=t;a<n;a+=3)i.push(r[(o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,a,a+16383>s?s:a+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function c(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]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(e,t,r){"use strict";/*! 2 * The buffer module from node.js, for the browser. 3 * 4 * @author Feross Aboukhadijeh <https://feross.org> 5 * @license MIT 6 */var n=r(675),o=r(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(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 c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|p(e,t),n=a(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return f(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 function(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),s.prototype),n}(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 s.from(n,t,r);var o=function(e){if(s.isBuffer(e)){var t,r=0|h(e.length),n=a(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?a(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.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 u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
6if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return u(e),a(e<0?0:0|h(e))}function f(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.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 o=!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 P(e).length;default:if(o)return n?-1:k(e).length;t=(""+t).toLowerCase(),o=!0}}function d(e,t,r){var o,i,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=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 o="",i=t;i<r;++i)o+=C[e[i]];return o}(this,t,r);case"utf8":case"utf-8":return m(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}(this,t,r);case"base64":return o=t,i=r,0===o&&i===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(o,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,o){var i;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(i=r=+r)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return -1;r=e.length-1}else if(r<0){if(!o)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,o);throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,o){var i,a=1,s=e.length,c=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;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=r;i<s;i++)if(u(e,i)===u(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*a}else -1!==l&&(i-=i-l),l=-1}else for(r+c>s&&(r=s-c),i=r;i>=0;i--){for(var f=!0,h=0;h<c;h++)if(u(e,i+h)!==u(t,h)){f=!1;break}if(f)return i}return -1}function m(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,c,u=e[o],l=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=r)switch(f){case 1:u<128&&(l=u);break;case 2:(192&(i=e[o+1]))==128&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(c=(15&u)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}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 b(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 w(e,t,r,n,o,i){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function E(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function x(e,t,r,n,i){return t=+t,r>>>=0,i||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function R(e,t,r,n,i){return t=+t,r>>>=0,i||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)}
vendor: 11,796 bytes, line 6
6,t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.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}}(),s.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(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return l(e)},s.allocUnsafeSlow=function(e){return l(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.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,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},s.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}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(A(i,Uint8Array)&&(i=s.from(i)),!s.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.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)g(this,t,t+1);return this},s.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)g(this,t,t+3),g(this,t+1,t+2);return this},s.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)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?m(this,0,e):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,o){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.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===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,a=r-t,c=Math.min(i,a),u=this.slice(n,o),l=e.slice(t,r),f=0;f<c;++f)if(u[f]!==l[f]){i=u[f],a=l[f];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},s.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 o,i,a,s,c,u,l,f,h,p,d,g,y=this.length-t;if((void 0===r||r>y)&&(r=y),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var v=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(s!=s)break;e[r+a]=s}return a}(this,e,t,r);case"utf8":case"utf-8":return c=t,u=r,I(k(e,this.length-c),this,c,u);case"ascii":return l=t,f=r,I(O(e),this,l,f);case"latin1":case"binary":return o=this,i=e,a=t,s=r,I(O(i),o,a,s);case"base64":return h=t,p=r,I(P(e),this,h,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=t,g=r,I(function(e,t){for(var r,n,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}(e,this.length-d),this,d,g);default:if(v)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),v=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.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,s.prototype),n},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;w(this,e,t,r,o,0)}var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;w(this,e,t,r,o,0)}var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);w(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);w(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return x(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return x(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return R(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.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 o=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var i=o-1;i>=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},s.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&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}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(o=t;o<r;++o)this[o]=e;else{var a=s.isBuffer(e)?e:s.from(e,n),c=a.length;
6if(0===c)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=a[o%c]}return this};var S=/[^+/0-9A-Za-z-_]/g;function k(e,t){t=t||1/0;for(var r,n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319||a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function O(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function P(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var C=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,c=(1<<s)-1,u=c>>1,l=-7,f=r?o-1:0,h=r?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-l)-1,p>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=h,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,n),i-=u}return(p?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,c,u=8*i-o-1,l=(1<<u)-1,f=l>>1,h=23===o?5960464477539062e-23:0,p=n?0:i-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+f>=1?t+=h/c:t+=h*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+p]=255&s,p+=d,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[r+p]=255&a,p+=d,a/=256,u-=8);e[r+p-d]|=128*g}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab="//";var o=n(72);e.exports=o}()},3159:function(){},6196:function(){},1987:function(e,t,r){!function(){var t={452:function(e){"use strict";e.exports=r(7334)}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,o),a=!1}finally{a&&delete n[e]}return i.exports}o.ab="//";var i={};!function(){var e,t=i,r=(e=o(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function a(e){"string"==typeof e&&(e=m(e));var t,o,i,a,s,c,u,l,f,h=(o=(t=e).auth,i=t.hostname,a=t.protocol||"",s=t.pathname||"",c=t.hash||"",u=t.query||"",l=!1,o=o?encodeURIComponent(o).replace(/%3A/i,":")+"@":"",t.host?l=o+t.host:i&&(l=o+(~i.indexOf(":")?"["+i+"]":i),t.port&&(l+=":"+t.port)),u&&"object"==typeof u&&(u=r.encode(u)),f=t.search||u&&"?"+u||"",a&&":"!==a.substr(-1)&&(a+=":"),t.slashes||(!a||n.test(a))&&!1!==l?(l="//"+(l||""),s&&"/"!==s[0]&&(s="/"+s)):l||(l=""),c&&"#"!==c[0]&&(c="#"+c),f&&"?"!==f[0]&&(f="?"+f),{protocol:a,host:l,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:f=f.replace("#","%23"),hash:c});return""+h.protocol+h.host+h.pathname+h.search+h.hash}var s="http://",c=s+"w.w",u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,l=/https?|ftp|gopher|file/;function f(e,t){var r="string"==typeof e?m(e):e;e="object"==typeof e?a(e):e;var n=m(t),o="";r.protocol&&!r.slashes&&(o=r.protocol,e=e.replace(r.protocol,""),o+="/"===t[0]||"/"===e[0]?"/":""),o&&n.protocol&&(o="",n.slashes||(o=n.protocol,t=t.replace(n.protocol,"")));var i=e.match(u);i&&!n.protocol&&(e=e.substr((o=i[1]+(i[2]||"")).length),/^\/\/[^/]/.test(t)&&(o=o.slice(0,-1)));var f=new URL(e,c+"/"),h=new URL(t,f).toString().replace(c,""),p=n.protocol||r.protocol;return p+=r.slashes||n.slashes?"//":"",!o&&p?h=h.replace(s,p):o&&(h=h.replace(s,"")),l.test(h)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==h.slice(-1)||(h=h.slice(0,-1)),o&&(h=o+("/"===h[0]?h.substr(1):h)),h}function h(){}h.prototype.parse=m,h.prototype.format=a,h.prototype.resolve=f,h.prototype.resolveObject=f;var p=/^https?|ftp|gopher|file/,d=/^(.*?)([#?].*)/,g=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,y=/^([a-z0-9.+-]*:)?\/\/\/*/i,v=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function m(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),e&&"object"==typeof e&&e instanceof h)return e;var o=(e=e.trim()).match(d);e=o?o[1].replace(/\\/g,"/")+o[2]:e.replace(/\\/g,"/"),v.test(e)&&"/"!==e.slice(-1)&&(e+="/");var i=!/(^javascript)/.test(e)&&e.match(g),s=y.test(e),u="";i&&(p.test(i[1])||(u=i[1].toLowerCase(),e=""+i[2]+i[3]),i[2]||(s=!1,p.test(i[1])?(u=i[1],e=""+i[3]):e="//"+i[3]),3!==i[2].length&&1!==i[2].length||(u=i[1],e="/"+i[3]));var l,f=(o?o[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),m=f&&f[1],b=new h,w="",E="";try{l=new URL(e)}catch(t){w=t,u||n||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(E="/",e=e.substr(1));try{l=new URL(e,c)}catch(e){return b.protocol=u,b.href=u,b}}b.slashes=s&&!E,b.host="w.w"===l.host?"":l.host,b.hostname="w.w"===l.hostname?"":l.hostname.replace(/(\[|\])/g,""),b.protocol=w?u||null:l.protocol,b.search=l.search.replace(/\\/g,"%5C"),b.hash=l.hash.replace(/\\/g,"%5C");var x=e.split("#");!b.search&&~x[0].indexOf("?")&&(b.search="?"),b.hash||""!==x[1]||(b.hash="#"),b.query=t?r.decode(l.search.substr(1)):b.search.substr(1),b.pathname=E+(i?l.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):l.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),w&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),u&&!p.test(u)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[l.username,l.password].map(decodeURIComponent).filter(
6Boolean).join(":"),b.port=l.port,m&&!b.host.endsWith(m)&&(b.host+=m,b.port=m.slice(1)),b.href=E?""+b.pathname+b.search+b.hash:a(b);var R=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach(function(e){~R.indexOf(e)||(b[e]=b[e]||null)}),b}t.parse=m,t.format=a,t.resolve=f,t.resolveObject=function(e,t){return m(f(e,t))},t.Url=h}(),e.exports=i}()},7334:function(e){!function(){"use strict";var t,r={815:function(e){e.exports=function(e,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(r);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u<c;++u){var l,f,h,p,d=e[u].replace(a,"%20"),g=d.indexOf(n);(g>=0?(l=d.substr(0,g),f=d.substr(g+1)):(l=d,f=""),h=decodeURIComponent(l),p=decodeURIComponent(f),Object.prototype.hasOwnProperty.call(i,h))?t(i[h])?i[h].push(p):i[h]=[i[h],p]:i[h]=p}return i};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,i,a,s){return(i=i||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?n(o(e),function(o){var s=encodeURIComponent(t(o))+a;return r(e[o])?n(e[o],function(e){return s+encodeURIComponent(t(e))}).join(i):s+encodeURIComponent(t(e[o]))}).join(i):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var o=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}},a=!0;try{r[e](i,i.exports,o),a=!1}finally{a&&delete n[e]}return i.exports}o.ab="//";var i={};(t=i).decode=t.parse=o(815),t.encode=t.stringify=o(577),e.exports=i}()},8554:function(e,t,r){"use strict";r.d(t,{BB:function(){return ei},T3:function(){return eC},v0:function(){return o}});var n,o=r(9299),i=r(7462),a=r(557),s=r(1002),c=r(5671),u=r(3144),l=r(7326),f=r(136),h=r(2963),p=r(1120),d=r(4942),g=r(7294),y=r(5697),v=r.n(y),m=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},b=["onKeyDown","onKeyPress","onKeyUp"],w=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],E=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],x=m(m(m(m(m(m(m(m(m(m(m(m(m(m(m(m(m(m([],["onCopy","onCut","onPaste"],!0),["onCompositionEnd","onCompositionStart","onCompositionUpdate"],!0),["onFocus","onBlur"],!0),["onInput","onInvalid","onReset","onSubmit"],!0),["onLoad","onError"],!0),b,!0),["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],!0),w,!0),["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],!0),["onSelect"],!0),E,!0),["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],!0),["onScroll"],!0),["onWheel"],!0),["onAnimationStart","onAnimationEnd","onAnimationIteration"],!0),["onTransitionEnd"],!0),["onChange"],!0),["onToggle"],!0);function R(e,t){var r={};return x.forEach(function(n){var o=e[n];o&&(t?r[n]=function(e){return o(e,t(n))}:r[n]=o)}),r}function S(e){var t=!1;return{promise:new Promise(function(r,n){e.then(function(e){return!t&&r(e)}).catch(function(e){return!t&&n(e)})}),cancel:function(){t=!0}}}var k=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n);
6else for(r in t)t[r]&&(o&&(o+=" "),o+=r)}return o}(e))&&(n&&(n+=" "),n+=t);return n};function O(e,t){if(!e)throw Error("Invariant failed")}var P=function(e,t){},I=(0,g.createContext)(null);function A(e){var t=e.children,r=e.type;return g.createElement("div",{className:"react-pdf__message react-pdf__message--".concat(r)},t)}A.propTypes={children:v().node,type:v().oneOf(["error","loading","no-data"]).isRequired};var C=function(){function e(){(0,c.Z)(this,e),this.externalLinkTarget=null,this.externalLinkRel=null}return(0,u.Z)(e,[{key:"setDocument",value:function(e){this.pdfDocument=e}},{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setExternalLinkRel",value:function(e){this.externalLinkRel=e}},{key:"setExternalLinkTarget",value:function(e){this.externalLinkTarget=e}},{key:"setHistory",value:function(){}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(e){this.pdfViewer.currentPageNumber=e}},{key:"rotation",get:function(){return 0},set:function(e){}},{key:"goToDestination",value:function(e){var t=this;new Promise(function(r){"string"==typeof e?t.pdfDocument.getDestination(e).then(r):Array.isArray(e)?r(e):e.then(r)}).then(function(r){O(Array.isArray(r),'"'.concat(r,'" is not a valid destination array.'));var n=r[0];new Promise(function(e){n instanceof Object?t.pdfDocument.getPageIndex(n).then(function(t){e(t)}).catch(function(){O(!1,'"'.concat(n,'" is not a valid page reference.'))}):"number"==typeof n?e(n):O(!1,'"'.concat(n,'" is not a valid destination reference.'))}).then(function(r){var n=r+1;O(n>=1&&n<=t.pagesCount,'"'.concat(n,'" is not a valid page number.')),t.pdfViewer.scrollPageIntoView({dest:e,pageIndex:r,pageNumber:n})})})}},{key:"navigateTo",value:function(e){this.goToDestination(e)}},{key:"goToPage",value:function(){}},{key:"addLinkAttributes",value:function(e,t,r){e.href=t,e.rel=this.externalLinkRel||"noopener noreferrer nofollow",e.target=r?"_blank":this.externalLinkTarget||""}},{key:"getDestinationHash",value:function(){return"#"}},{key:"getAnchorUrl",value:function(){return"#"}},{key:"setHash",value:function(){}},{key:"executeNamedAction",value:function(){}},{key:"cachePageRef",value:function(){}},{key:"isPageVisible",value:function(){return!0}},{key:"isPageCached",value:function(){return!0}}]),e}(),T={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},Z=r(6854),L="undefined"!=typeof document,M=L&&"file:"===window.location.protocol;function _(e){return void 0!==e}function j(e){return _(e)&&null!==e}function D(e){return"string"==typeof e&&/^data:/.test(e)}function B(e){O(D(e),"Invalid data URI.");var t=e.split(","),r=(0,Z.Z)(t,2),n=r[0],o=r[1];return -1!==n.split(";").indexOf("base64")?atob(o):unescape(o)}var U="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function N(){P(!M,"Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ".concat(U))}function F(e){e&&e.cancel&&e.cancel()}function z(e,t){return Object.defineProperty(e,"width",{get:function(){return this.view[2]*t},configurable:!0}),Object.defineProperty(e,"height",{get:function(){return this.view[3]*t},configurable:!0}),Object.defineProperty(e,"originalWidth",{get:function(){return this.view[2]},configurable:!0}),Object.defineProperty(e,"originalHeight",{get:function(){return this.view[3]},configurable:!0}),e}
6function W(e){return"RenderingCancelledException"===e.name}var V=r(1451),$=(n={},[].concat((0,V.Z)(w),(0,V.Z)(E),(0,V.Z)(b)).forEach(function(e){n[e]=v().func}),n),q=[v().string,v().instanceOf(ArrayBuffer),v().shape({data:v().oneOfType([v().object,v().string]),httpHeaders:v().object,range:v().object,url:v().string,withCredentials:v().bool})];"undefined"!=typeof File&&q.push(v().instanceOf(File)),"undefined"!=typeof Blob&&q.push(v().instanceOf(Blob));var G=v().oneOfType([v().string,v().arrayOf(v().string)]),H=v().oneOfType(q),K=v().instanceOf(C);v().oneOf(["_self","_blank","_parent","_top"]);var Y=v().shape({commonObjs:v().shape({}).isRequired,getAnnotations:v().func.isRequired,getTextContent:v().func.isRequired,getViewport:v().func.isRequired,render:v().func.isRequired}),J=v().oneOfType([v().shape({getDestination:v().func.isRequired,getOutline:v().func.isRequired,getPage:v().func.isRequired,numPages:v().number.isRequired}),v().bool]),X=v().oneOfType([v().func,v().shape({current:v().any})]),Q=v().oneOf(["canvas","none","svg"]),ee=v().oneOf([0,90,180,270]),et=["url"];function er(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 en(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?er(Object(r),!0).forEach(function(t){(0,d.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):er(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var eo=o.PDFDataRangeTransport,ei=function(e){(0,f.Z)(n,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=(0,p.Z)(n);if(t){var o=(0,p.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,h.Z)(this,e)});function n(){var e;(0,c.Z)(this,n);for(var t=arguments.length,i=Array(t),u=0;u<t;u++)i[u]=arguments[u];return e=r.call.apply(r,[this].concat(i)),(0,d.Z)((0,l.Z)(e),"state",{pdf:null}),(0,d.Z)((0,l.Z)(e),"viewer",{scrollPageIntoView:function(t){var r=t.dest,n=t.pageIndex,o=t.pageNumber,i=e.props.onItemClick;if(i){i({dest:r,pageIndex:n,pageNumber:o});return}var a=e.pages[n];if(a){a.scrollIntoView();return}P(!1,"An internal link leading to page ".concat(o," was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>."))}}),(0,d.Z)((0,l.Z)(e),"linkService",new C),(0,d.Z)((0,l.Z)(e),"loadDocument",function(){F(e.runningTask),e.loadingTask&&e.loadingTask.destroy();var t=S(e.findDocumentSource());e.runningTask=t,t.promise.then(function(t){if(e.onSourceSuccess(),t){e.setState(function(e){return e.pdf?{pdf:null}:null});var r=e.props,n=r.options,i=r.onLoadProgress,a=r.onPassword,s=o.getDocument(en(en({},t),n));s.onPassword=a,i&&(s.onProgress=i),e.loadingTask=s,s.promise.then(function(t){e.setState(function(e){return e.pdf&&e.pdf.fingerprint===t.fingerprint?null:{pdf:t}},e.onLoadSuccess)}).catch(function(t){e.onLoadError(t)})}}).catch(function(t){e.onSourceError(t)})}),(0,d.Z)((0,l.Z)(e),"setupLinkService",function(){var t=e.props,r=t.externalLinkRel,n=t.externalLinkTarget;e.linkService.setViewer(e.viewer),e.linkService.setExternalLinkRel(r),e.linkService.setExternalLinkTarget(n)}),(0,d.Z)((0,l.Z)(e),"onSourceSuccess",function(){var t=e.props.onSourceSuccess;t&&t()}),(0,d.Z)((0,l.Z)(e),"onSourceError",function(t){P(t);var r=e.props.onSourceError;r&&r(t)}),(0,d.Z)((0,l.Z)(e),"onLoadSuccess",function(){var t=e.props.onLoadSuccess,r=e.state.pdf;t&&t(r),e.pages=Array(r.numPages),e.linkService.setDocument(r)}),(0,d.Z)((0,l.Z)(e),"onLoadError",function(t){e.setState({pdf:!1}),P(t);var r=e.props.onLoadError;r&&r(t)}),(0,d.Z)((0,l.Z)(e),"findDocumentSource",function(){return new Promise(function(t){var r=e.props.file;if(r||t(null),"string"==typeof r&&(D(r)&&t({data:B(r)}),N(),t({url:r})),r instanceof eo&&t({range:r}),r instanceof ArrayBuffer&&t({data:r}),L&&(O(L,"isBlob can only be used in a browser environment"),r instanceof Blob||(O(L,"isFile can only be used in a browser environment"),r instanceof File))){new Promise(function(e,t){var n=new FileReader;return n.onload=function(){return e(new Uint8Array(n.result))},n.onerror=function(e){switch(e.target.error.code){case e.target.error.NOT_FOUND_ERR:return t(Error("Error while reading a file: File not found."));case e.target.error.NOT_READABLE_ERR:return t(Error("Error while reading a file: File not readable."));case e.target.error.SECURITY_ERR:return t(Error("Error while reading a file: Security error."));case e.target.error.ABORT_ERR:return t(Error("Error while reading a file: Aborted."));default:return t(Error("Error while reading a file."))}},n.readAsArrayBuffer(r),null}).then(function(e){t({data:e})});return}if(O("object"===(0,s.Z)(r),"Invalid parameter in file, need either Uint8Array, string or a parameter object"),O(r.url||r.data||r.range,"Invalid parameter object: need either .data, .range or .url"),"string"==typeof r.url){if(D(r.url)){var n=r.url,o=(0,a.Z)(r,et);t(en({data:B(n)},o))}N()}t(r)})}),(0,d.Z)((0,l.Z)(e),"registerPage",function(t,r){e.pages[t]=r}),(0,d.Z)((0,l.Z)(e),"unregisterPage",function(t){delete e.pages[t]}),e}
6return(0,u.Z)(n,[{key:"componentDidMount",value:function(){this.loadDocument(),this.setupLinkService()}},{key:"componentDidUpdate",value:function(e){this.props.file!==e.file&&this.loadDocument()}},{key:"componentWillUnmount",value:function(){F(this.runningTask),this.loadingTask&&this.loadingTask.destroy()}},{key:"childContext",get:function(){var e=this.linkService,t=this.registerPage,r=this.unregisterPage,n=this.props,o=n.imageResourcesPath,i=n.renderMode,a=n.rotate;return{imageResourcesPath:o,linkService:e,pdf:this.state.pdf,registerPage:t,renderMode:i,rotate:a,unregisterPage:r}}},{key:"eventProps",get:function(){var e=this;return R(this.props,function(){return e.state.pdf})}},{key:"renderChildren",value:function(){var e=this.props.children;return g.createElement(I.Provider,{value:this.childContext},e)}},{key:"renderContent",value:function(){var e=this.props.file,t=this.state.pdf;if(!e){var r=this.props.noData;return g.createElement(A,{type:"no-data"},"function"==typeof r?r():r)}if(null===t){var n=this.props.loading;return g.createElement(A,{type:"loading"},"function"==typeof n?n():n)}if(!1===t){var o=this.props.error;return g.createElement(A,{type:"error"},"function"==typeof o?o():o)}return this.renderChildren()}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.inputRef;return g.createElement("div",(0,i.Z)({className:k("react-pdf__Document",t),ref:r},this.eventProps),this.renderContent())}}]),n}(g.PureComponent);ei.defaultProps={error:"Failed to load PDF file.",loading:"Loading PDFâ¦",noData:"No PDF file specified.",onPassword:function(e,t){switch(t){case T.NEED_PASSWORD:e(prompt("Enter the password to open this PDF file."));break;case T.INCORRECT_PASSWORD:e(prompt("Invalid password. Please try again."))}}};var ea=v().oneOfType([v().func,v().node]);ei.propTypes=en(en({},$),{},{children:v().node,className:G,error:ea,externalLinkRel:v().string,externalLinkTarget:v().string,file:H,imageResourcesPath:v().string,inputRef:X,loading:ea,noData:ea,onItemClick:v().func,onLoadError:v().func,onLoadProgress:v().func,onLoadSuccess:v().func,onPassword:v().func,onSourceError:v().func,onSourceSuccess:v().func,rotate:v().number});var es=(0,g.createContext)(null),ec=function(){function e(t){var r=t.num,n=t.gen;(0,c.Z)(this,e),this.num=r,this.gen=n}return(0,u.Z)(e,[{key:"toString",value:function(){var e="".concat(this.num,"R");return 0!==this.gen&&(e+=this.gen),e}}]),e}(),eu=["item"],el=function(e){(0,f.Z)(n,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=(0,p.Z)(n);if(t){var o=(0,p.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,h.Z)(this,e)});function n(){var e;(0,c.Z)(this,n);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=r.call.apply(r,[this].concat(o)),(0,d.Z)((0,l.Z)(e),"getDestination",function(){return new Promise(function(t,r){if(_(e.destination)){t(e.destination);return}var n=e.props,o=n.item,i=n.pdf;"string"==typeof o.dest?i.getDestination(o.dest).then(t).catch(r):t(o.dest)}).then(function(t){return e.destination=t,t})}),(0,d.Z)((0,l.Z)(e),"getPageIndex",function(){return new Promise(function(t,r){var n=e.props.pdf;if(_(e.pageIndex)){t(e.pageIndex);return}e.getDestination().then(function(e){if(e){var o=(0,Z.Z)(e,1)[0];n.getPageIndex(new ec(o)).then(t).catch(r)}})}).then(function(t){return e.pageIndex=t,e.pageIndex})}),(0,d.Z)((0,l.Z)(e),"getPageNumber",function(){return new Promise(function(t,r){if(_(e.pageNumber)){t(e.pageNumber);return}e.getPageIndex().then(function(e){t(e+1)}).catch(r)}).then(function(t){return e.pageNumber=t,t})}),(0,d.Z)((0,l.Z)(e),"onClick",function(t){var r=e.props.onClick;return t.preventDefault(),!!r&&Promise.all([e.getDestination(),e.getPageIndex(),e.getPageNumber()]).then(function(e){var t=(0,Z.Z)(e,3);r({dest:t[0],pageIndex:t[1],pageNumber:t[2]})})}),e}return(0,u.Z)(n,[{key:"renderSubitems",value:function(){var e=this.props,t=e.item,r=(0,a.Z)(e,eu);if(!t.items||!t.items.length)return null;var o=t.items;return g.createElement("ul",null,o.map(function(e,t){return g.createElement(n,(0,i.Z)({key:"string"==typeof e.destination?e.destination:t,item:e},r))}))}},{key:"render",value:function(){var e=this.props.item;return g.createElement("li",null,g.createElement("a",{href:"#",onClick:this.onClick},e.title),this.renderSubitems())}}]),n}
6(g.PureComponent),ef=v().oneOfType([v().string,v().arrayOf(v().any)]);el.propTypes={item:v().shape({dest:ef,items:v().arrayOf(v().shape({dest:ef,title:v().string})),title:v().string}).isRequired,onClick:v().func,pdf:J.isRequired};var eh=function(e){return g.createElement(I.Consumer,null,function(t){return g.createElement(es.Consumer,null,function(r){return g.createElement(el,(0,i.Z)({},t,r,e))})})};function ep(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 ed(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.filter(Boolean);return r.length<=1?r[0]||null:function(e){r.forEach(function(t){"function"==typeof t?t(e):t&&(t.current=e)})}}(function(e){(0,f.Z)(n,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=(0,p.Z)(n);if(t){var o=(0,p.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,h.Z)(this,e)});function n(){var e;(0,c.Z)(this,n);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=r.call.apply(r,[this].concat(o)),(0,d.Z)((0,l.Z)(e),"state",{outline:null}),(0,d.Z)((0,l.Z)(e),"loadOutline",function(){var t=e.props.pdf;e.setState(function(e){return e.outline?{outline:null}:null});var r=S(t.getOutline());e.runningTask=r,r.promise.then(function(t){e.setState({outline:t},e.onLoadSuccess)}).catch(function(t){e.onLoadError(t)})}),(0,d.Z)((0,l.Z)(e),"onLoadSuccess",function(){var t=e.props.onLoadSuccess,r=e.state.outline;t&&t(r)}),(0,d.Z)((0,l.Z)(e),"onLoadError",function(t){e.setState({outline:!1}),P(t);var r=e.props.onLoadError;r&&r(t)}),(0,d.Z)((0,l.Z)(e),"onItemClick",function(t){var r=t.dest,n=t.pageIndex,o=t.pageNumber,i=e.props.onItemClick;i&&i({dest:r,pageIndex:n,pageNumber:o})}),e}return(0,u.Z)(n,[{key:"componentDidMount",value:function(){O(this.props.pdf,"Attempted to load an outline, but no document was specified."),this.loadOutline()}},{key:"componentDidUpdate",value:function(e){var t=this.props.pdf;e.pdf&&t!==e.pdf&&this.loadOutline()}},{key:"componentWillUnmount",value:function(){F(this.runningTask)}},{key:"childContext",get:function(){return{onClick:this.onItemClick}}},{key:"eventProps",get:function(){var e=this;return R(this.props,function(){return e.state.outline})}},{key:"renderOutline",value:function(){var e=this.state.outline;return g.createElement("ul",null,e.map(function(e,t){return g.createElement(eh,{key:"string"==typeof e.destination?e.destination:t,item:e})}))}},{key:"render",value:function(){var e=this.props.pdf,t=this.state.outline;if(!e||!t)return null;var r=this.props,n=r.className,o=r.inputRef;return g.createElement("div",(0,i.Z)({className:k("react-pdf__Outline",n),ref:o},this.eventProps),g.createElement(es.Provider,{value:this.childContext},this.renderOutline()))}}]),n})(g.PureComponent).propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ep(Object(r),!0).forEach(function(t){(0,d.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ep(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:G,inputRef:X,onItemClick:v().func,onLoadError:v().func,onLoadSuccess:v().func,pdf:J},$);var eg=(0,g.createContext)(null),ey=o.AnnotationMode,ev=function(e){(0,f.Z)(n,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=(0,p.Z)(n);if(t){var o=(0,p.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,h.Z)(this,e)});function n(){var e;(0,c.Z)(this,n);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=r.call.apply(r,[this].concat(o)),(0,d.Z)((0,l.Z)(e),"canvasElement",(0,g.createRef)()),(0,d.Z)((0,l.Z)(e),"onRenderSuccess",function(){e.renderer=null;var t=e.props,r=t.onRenderSuccess,n=t.page,o=t.scale;r&&r(z(n,o))}),(0,d.Z)((0,l.Z)(e),"onRenderError",function(t){if(!W(t)){P(t);var r=e.props.onRenderError;r&&r(t)}}),(0,d.Z)((0,l.Z)(e),"drawPageOnCanvas",function(){var t=e.canvasElement.current;if(!t)return null;var r=(0,l.Z)(e),n=r.renderViewport,o=r.viewport,i=e.props,a=i.canvasBackgroun
6d,s=i.page,c=i.renderForms;t.width=n.width,t.height=n.height,t.style.width="".concat(Math.floor(o.width),"px"),t.style.height="".concat(Math.floor(o.height),"px");var u={annotationMode:c?ey.ENABLE_FORMS:ey.ENABLE,get canvasContext(){return t.getContext("2d",{alpha:!1})},viewport:n};a&&(u.background=a),e.cancelRenderingTask();var f=s.render(u);return e.renderer=f,f.promise.then(e.onRenderSuccess).catch(e.onRenderError)}),e}return(0,u.Z)(n,[{key:"componentDidMount",value:function(){this.drawPageOnCanvas()}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.canvasBackground,n=t.devicePixelRatio,o=t.page,i=t.renderForms;(r!==e.canvasBackground||n!==e.devicePixelRatio||i!==e.renderForms)&&(o.cleanup(),this.drawPageOnCanvas())}},{key:"componentWillUnmount",value:function(){this.cancelRenderingTask();var e=this.canvasElement.current;e&&(e.width=0,e.height=0)}},{key:"cancelRenderingTask",value:function(){this.renderer&&(this.renderer.cancel(),this.renderer=null)}},{key:"devicePixelRatio",get:function(){return this.props.devicePixelRatio||L&&window.devicePixelRatio||1}},{key:"renderViewport",get:function(){var e=this.devicePixelRatio,t=this.props,r=t.page,n=t.rotate,o=t.scale;return r.getViewport({scale:o*e,rotation:n})}},{key:"viewport",get:function(){var e=this.props,t=e.page,r=e.rotate,n=e.scale;return t.getViewport({scale:n,rotation:r})}},{key:"render",value:function(){var e=this.props.canvasRef;return g.createElement("canvas",{className:"react-pdf__Page__canvas",dir:"ltr",ref:ed(e,this.canvasElement),style:{display:"block",userSelect:"none"}})}}]),n}(g.PureComponent);function em(e){return g.createElement(eg.Consumer,null,function(t){return g.createElement(ev,(0,i.Z)({},t,e))})}ev.propTypes={canvasBackground:v().string,canvasRef:X,devicePixelRatio:v().number,onRenderError:v().func,onRenderSuccess:v().func,page:Y.isRequired,renderForms:v().bool,rotate:ee,scale:v().number.isRequired};var eb=function(e){(0,f.Z)(n,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=(0,p.Z)(n);if(t){var o=(0,p.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,h.Z)(this,e)});function n(){var e;(0,c.Z)(this,n);for(var t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];return e=r.call.apply(r,[this].concat(i)),(0,d.Z)((0,l.Z)(e),"state",{svg:null}),(0,d.Z)((0,l.Z)(e),"onRenderSuccess",function(){e.renderer=null;var t=e.props,r=t.onRenderSuccess,n=t.page,o=t.scale;r&&r(z(n,o))}),(0,d.Z)((0,l.Z)(e),"onRenderError",function(t){if(!W(t)){P(t);var r=e.props.onRenderError;r&&r(t)}}),(0,d.Z)((0,l.Z)(e),"renderSVG",function(){var t=e.props.page;return e.renderer=t.getOperatorList(),e.renderer.then(function(r){var n=new o.SVGGraphics(t.commonObjs,t.objs);e.renderer=n.getSVG(r,e.viewport).then(function(t){e.setState({svg:t},e.onRenderSuccess)}).catch(e.onRenderError)}).catch(e.onRenderError)}),(0,d.Z)((0,l.Z)(e),"drawPageOnContainer",function(t){var r=e.state.svg;if(t&&r){t.firstElementChild||t.appendChild(r);var n=e.viewport,o=n.width,i=n.height;r.setAttribute("width",o),r.setAttribute("height",i)}}),e}return(0,u.Z)(n,[{key:"componentDidMount",value:function(){this.renderSVG()}},{key:"viewport",get:function(){var e=this.props,t=e.page,r=e.rotate,n=e.scale;return t.getViewport({scale:n,rotation:r})}},{key:"render",value:function(){var e=this,t=this.viewport,r=t.width,n=t.height;return g.createElement("div",{className:"react-pdf__Page__svg",ref:function(t){return e.drawPageOnContainer(t)},style:{display:"block",backgroundColor:"white",overflow:"hidden",width:r,height:n,userSelect:"none"}})}}]),n}(g.PureComponent);function ew(e){return g.createElement(eg.Consumer,null,function(t){return g.createElement(eb,(0,i.Z)({},t,e))})}function eE(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}eb.propTypes={onRenderError:v().func,onRenderSuccess:v().func,page:Y.isRequired,rotate:ee,scale:v().number.isRequired};var ex=function(e){(0,f.Z)(n,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=(0,p.Z)(n);if(t){var o=(0,p.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,h.Z)(this,e)});function n(){var e;(0,c.Z)(this,n);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=r.call.apply(r,[this].concat(o)),(0,d.Z)((0,l.Z)(e),"state",{textContent:null}),(0,d.Z)((0,l.Z)(e),"layerElement",(0,g.createRef)()),(0,d.Z)((0,l.Z)(e),"endElement",(0,g.createRef)()),(0,d.Z)((0,l.Z)(e),"loadTextContent",function(){var t=S(e.props.page.getTextContent());e.runningTask=t,t.promise.then(function(t){e.setState({textContent:t},e.onLoadSuccess)}).catch(function(t){e.onLoadError(t)})}),(0,d.Z)((0,l.Z)(e),"onLoadSuccess",function(){var t=e.props.onGetTextSuccess,r=e.state.textContent;t&&t(r)}),(0,d.Z)((0,l.Z)(e),"onLoadError",function(t){e.setState({textItems:!1}),P(t);var r=e.props.onGetTextError;r&&r(t)}),(0,d.Z)((0,l.Z)(e),"onRenderSuccess",function(){var t=e.props.onRenderTextLayerSuccess;t&&t()}),(0,d.Z)((0,l.Z)(e),"onRenderError",function(t){P(t);var r=e.props.onRenderTextLayerError;r&&r(t)}),(0,d.Z)((0,l.Z)(e),"onMouseDown",function(){var t=e.endElement.current;t&&t.classList.add("active")}),(0,d.Z)((0,l.Z)(e),"onMouseUp",function(){var t=e.endElement.current;t&&t.classList.remove("active")}),e}
6return(0,u.Z)(n,[{key:"componentDidMount",value:function(){O(this.props.page,"Attempted to load page text content, but no page was specified."),P(1===parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10),"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer"),this.loadTextContent()}},{key:"componentDidUpdate",value:function(e){var t=this.props.page;e.page&&t!==e.page&&this.loadTextContent()}},{key:"componentWillUnmount",value:function(){F(this.runningTask)}},{key:"viewport",get:function(){var e=this.props,t=e.page,r=e.rotate,n=e.scale;return t.getViewport({scale:n,rotation:r})}},{key:"unrotatedViewport",get:function(){var e=this.props,t=e.page,r=e.scale;return t.getViewport({scale:r})}},{key:"rotate",get:function(){var e=this.props,t=e.page;return e.rotate-t.rotate}},{key:"renderTextLayer",value:function(){var e=this,t=this.state.textContent;if(!t)return null;var r=this.layerElement.current,n=this.viewport,i=this.props,a=i.customTextRenderer,s=i.pageIndex,c=i.pageNumber;F(this.runningTask),r.innerHTML="";var u=o.renderTextLayer({container:r,textContent:t,viewport:n});this.runningTask=u,u.promise.then(function(){var n=document.createElement("div");if(n.className="endOfContent",r.append(n),e.endElement.current=n,a){var o=0;t.items.forEach(function(t,r){var n=e.layerElement.current.children[o],i=a(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eE(Object(r),!0).forEach(function(t){(0,d.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({pageIndex:s,pageNumber:c,itemIndex:r},t));n.innerHTML=i,o+=t.str&&t.hasEOL?2:1})}e.onRenderSuccess()}).catch(function(t){e.onRenderError(t)})}},{key:"render",value:function(){return g.createElement("div",{className:"react-pdf__Page__textContent textLayer",onMouseUp:this.onMouseUp,onMouseDown:this.onMouseDown,ref:this.layerElement},this.renderTextLayer())}}]),n}(g.PureComponent);function eR(e){return g.createElement(eg.Consumer,null,function(t){return g.createElement(ex,(0,i.Z)({},t,e))})}ex.propTypes={customTextRenderer:v().func,onGetTextError:v().func,onGetTextSuccess:v().func,onRenderTextLayerError:v().func,onRenderTextLayerSuccess:v().func,page:Y.isRequired,pageIndex:v().number.isRequired,pageNumber:v().number.isRequired,rotate:ee,scale:v().number};var eS=function(e){(0,f.Z)(n,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=(0,p.Z)(n);if(t){var o=(0,p.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,h.Z)(this,e)});function n(){var e;(0,c.Z)(this,n);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=r.call.apply(r,[this].concat(o)),(0,d.Z)((0,l.Z)(e),"state",{annotations:null}),(0,d.Z)((0,l.Z)(e),"layerElement",(0,g.createRef)()),(0,d.Z)((0,l.Z)(e),"loadAnnotations",function(){var t=S(e.props.page.getAnnotations());e.runningTask=t,t.promise.then(function(t){e.setState({annotations:t},e.onLoadSuccess)}).catch(function(t){e.onLoadError(t)})}),(0,d.Z)((0,l.Z)(e),"onLoadSuccess",function(){var t=e.props.onGetAnnotationsSuccess,r=e.state.annotations;t&&t(r)}),(0,d.Z)((0,l.Z)(e),"onLoadError",function(t){e.setState({annotations:!1}),P(t);var r=e.props.onGetAnnotationsError;r&&r(t)}),(0,d.Z)((0,l.Z)(e),"onRenderSuccess",function(){var t=e.props.onRenderAnnotationLayerSuccess;t&&t()}),(0,d.Z)((0,l.Z)(e),"onRenderError",function(t){P(t);var r=e.props.onRenderAnnotationLayerError;r&&r(t)}),e}return(0,u.Z)(n,[{key:"componentDidMount",value:function(){O(this.props.page,"Attempted to load page annotations, but no page was specified."),P(1===parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10),"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations"),this.loadAnnotations()}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.page,n=t.renderForms;(e.page&&r!==e.page||n!==e.renderForms)&&this.loadAnnotations()}},{key:"componentWillUnmount",value:function(){F(this.runningTask)}},{key:"viewport",get:function(){var e=this.props,t=e.page,r=e.rotate,n=e.scale;return t.getViewport({scale:n,rotation:r})}},{key:"renderAnnotationLayer",value:function(){var e=this.state.annotations;if(e){var t=this.props,r=t.imageResourcesPath,n=t.linkService,i=t.page,a=t.renderForms,s=this.viewport.clone({dontFlip:!0}),c={annotations:e,div:this.layerElement.current,imageResourcesPath:r,linkService:n,page:i,renderForms:a,viewport:s};this.layerElement.current.innerHTML="";try{o.AnnotationLayer.render(c),this.onRenderSuccess()}catch(e){this.onRenderError(e)}}}},{key:"render",value:function(){return g.createElement("div",{className:"react-pdf__Page__annotations annotationLayer",ref:this.layerElement},this.renderAnnotationLayer())}}]),n}(g.PureComponent);eS.propTypes={imageResourcesPath:v().string,linkService:K.isRequired,onGetAnnotationsError:v().func,onGetAnnotationsSuccess:v().func,onRenderAnnotationLayerError:v().func,onRenderAnnotationLayerSuccess:v().func,page:Y,renderForms:v().bool,rotate:ee,scale:v().number};var ek=function(e){return g.createElement(I.Consumer,null,function(t){return g.createElement(eg.Consumer,null,function(r){return g.createElement(eS,(0,i.Z)({},t,r,e))})})};function eO(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 eP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
6t%2?eO(Object(r),!0).forEach(function(t){(0,d.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var eI=function(e){(0,f.Z)(n,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=(0,p.Z)(n);if(t){var o=(0,p.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,h.Z)(this,e)});function n(){var e;(0,c.Z)(this,n);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=r.call.apply(r,[this].concat(o)),(0,d.Z)((0,l.Z)(e),"state",{page:null}),(0,d.Z)((0,l.Z)(e),"pageElement",(0,g.createRef)()),(0,d.Z)((0,l.Z)(e),"onLoadSuccess",function(){var t=e.props,r=t.onLoadSuccess,n=t.registerPage,o=e.state.page;r&&r(z(o,e.scale)),n&&n(e.pageIndex,e.pageElement.current)}),(0,d.Z)((0,l.Z)(e),"onLoadError",function(t){e.setState({page:!1}),P(t);var r=e.props.onLoadError;r&&r(t)}),(0,d.Z)((0,l.Z)(e),"loadPage",function(){var t=e.props.pdf,r=e.getPageNumber();if(r){e.setState(function(e){return e.page?{page:null}:null});var n=S(t.getPage(r));e.runningTask=n,n.promise.then(function(t){e.setState({page:t},e.onLoadSuccess)}).catch(function(t){e.onLoadError(t)})}}),e}return(0,u.Z)(n,[{key:"componentDidMount",value:function(){O(this.props.pdf,"Attempted to load a page, but no document was specified."),this.loadPage()}},{key:"componentDidUpdate",value:function(e){var t=this.props.pdf;if(e.pdf&&t!==e.pdf||this.getPageNumber()!==this.getPageNumber(e)){var r=this.props.unregisterPage;r&&r(this.getPageIndex(e)),this.loadPage()}}},{key:"componentWillUnmount",value:function(){var e=this.props.unregisterPage;e&&e(this.pageIndex),F(this.runningTask)}},{key:"childContext",get:function(){var e=this.pageIndex,t=this.pageNumber,r=this.state.page;if(!r)return{};var n=this.props,o=n.canvasBackground,i=n.customTextRenderer,a=n.devicePixelRatio,s=n.onGetAnnotationsError,c=n.onGetAnnotationsSuccess,u=n.onGetTextError,l=n.onGetTextSuccess,f=n.onRenderAnnotationLayerError,h=n.onRenderAnnotationLayerSuccess,p=n.onRenderError,d=n.onRenderSuccess,g=n.onRenderTextLayerError,y=n.onRenderTextLayerSuccess,v=n.renderForms,m=n.renderInteractiveForms;return{canvasBackground:o,customTextRenderer:i,devicePixelRatio:a,onGetAnnotationsError:s,onGetAnnotationsSuccess:c,onGetTextError:u,onGetTextSuccess:l,onRenderAnnotationLayerError:f,onRenderAnnotationLayerSuccess:h,onRenderError:p,onRenderSuccess:d,onRenderTextLayerError:g,onRenderTextLayerSuccess:y,page:r,pageIndex:e,pageNumber:t,renderForms:null!=v?v:m,rotate:this.rotate,scale:this.scale}}},{key:"getPageIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return j(e.pageNumber)?e.pageNumber-1:j(e.pageIndex)?e.pageIndex:null}},{key:"getPageNumber",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return j(e.pageNumber)?e.pageNumber:j(e.pageIndex)?e.pageIndex+1:null}},{key:"pageIndex",get:function(){return this.getPageIndex()}},{key:"pageNumber",get:function(){return this.getPageNumber()}},{key:"rotate",get:function(){var e=this.props.rotate;if(j(e))return e;var t=this.state.page;return t?t.rotate:null}},{key:"scale",get:function(){var e=this.state.page;if(!e)return null;var t=this.props,r=t.scale,n=t.width,o=t.height,i=this.rotate,a=1;if(n||o){var s=e.getViewport({scale:1,rotation:i});a=n?n/s.width:o/s.height}return(null===r?1:r)*a}},{key:"eventProps",get:function(){var e=this;return R(this.props,function(){var t=e.state.page;return t?z(t,e.scale):t})}},{key:"pageKey",get:function(){return"".concat(this.pageIndex,"@").concat(this.scale,"/").concat(this.rotate)}},{key:"pageKeyNoScale",get:function(){return"".concat(this.pageIndex,"/").concat(this.rotate)}},{key:"renderMainLayer",value:function(){var e=this.props,t=e.canvasRef;switch(e.renderMode){case"none":return null;case"svg":return g.createElement(ew,{key:"".concat(this.pageKeyNoScale,"_svg")});
6default:return g.createElement(em,{key:"".concat(this.pageKey,"_canvas"),canvasRef:t})}}},{key:"renderTextLayer",value:function(){return this.props.renderTextLayer?g.createElement(eR,{key:"".concat(this.pageKey,"_text")}):null}},{key:"renderAnnotationLayer",value:function(){return this.props.renderAnnotationLayer?g.createElement(ek,{key:"".concat(this.pageKey,"_annotations")}):null}},{key:"renderChildren",value:function(){var e=this.props.children;return g.createElement(eg.Provider,{value:this.childContext},this.renderMainLayer(),this.renderTextLayer(),this.renderAnnotationLayer(),e)}},{key:"renderContent",value:function(){var e=this.pageNumber,t=this.props.pdf,r=this.state.page;if(!e){var n=this.props.noData;return g.createElement(A,{type:"no-data"},"function"==typeof n?n():n)}if(null===t||null===r){var o=this.props.loading;return g.createElement(A,{type:"loading"},"function"==typeof o?o():o)}if(!1===t||!1===r){var i=this.props.error;return g.createElement(A,{type:"error"},"function"==typeof i?i():i)}return this.renderChildren()}},{key:"render",value:function(){var e=this.pageNumber,t=this.props,r=t.className,n=t.inputRef;return g.createElement("div",(0,i.Z)({className:k("react-pdf__Page",r),"data-page-number":e,ref:ed(n,this.pageElement),style:{position:"relative",minWidth:"min-content",minHeight:"min-content"}},this.eventProps),this.renderContent())}}]),n}(g.PureComponent);eI.defaultProps={error:"Failed to load the page.",loading:"Loading pageâ¦",noData:"No page specified.",renderAnnotationLayer:!0,renderMode:"canvas",renderTextLayer:!0,scale:1};var eA=v().oneOfType([v().func,v().node]);eI.propTypes=eP(eP({},$),{},{canvasBackground:v().string,children:v().node,className:G,customTextRenderer:v().func,devicePixelRatio:v().number,error:eA,height:v().number,imageResourcesPath:v().string,inputRef:X,loading:eA,noData:eA,onGetTextError:v().func,onGetTextSuccess:v().func,onLoadError:v().func,onLoadSuccess:v().func,onRenderError:v().func,onRenderSuccess:v().func,onRenderTextLayerError:v().func,onRenderTextLayerSuccess:v().func,pageIndex:function(e,t,r){var n=e[t],o=e.pageNumber,i=e.pdf;if(!_(i))return null;if(_(n)){if("number"!=typeof n)return Error("`".concat(t,"` of type `").concat((0,s.Z)(n),"` supplied to `").concat(r,"`, expected `number`."));if(n<0)return Error("Expected `".concat(t,"` to be greater or equal to 0."));var a=i.numPages;if(n+1>a)return Error("Expected `".concat(t,"` to be less or equal to ").concat(a-1,"."))}else if(!_(o))return Error("`".concat(t,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(r,"`."));return null},pageNumber:function(e,t,r){var n=e[t],o=e.pageIndex,i=e.pdf;if(!_(i))return null;if(_(n)){if("number"!=typeof n)return Error("`".concat(t,"` of type `").concat((0,s.Z)(n),"` supplied to `").concat(r,"`, expected `number`."));if(n<1)return Error("Expected `".concat(t,"` to be greater or equal to 1."));var a=i.numPages;if(n>a)return Error("Expected `".concat(t,"` to be less or equal to ").concat(a,"."))}else if(!_(o))return Error("`".concat(t,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(r,"`."));return null},pdf:J,registerPage:v().func,renderAnnotationLayer:v().bool,renderForms:v().bool,renderInteractiveForms:v().bool,renderMode:Q,renderTextLayer:v().bool,rotate:ee,scale:v().number,unregisterPage:v().func,width:v().number});var eC=g.forwardRef(function(e,t){return g.createElement(I.Consumer,null,function(r){return g.createElement(eI,(0,i.Z)({ref:t},r,e))})});P(!M,"Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ".concat(U)),o.GlobalWorkerOptions.workerSrc="pdf.worker.js"},541:function(e,t,r){"use strict";r.d(t,{S_:function(){return _}});var n,o,i,a,s,c,u,l,f,h,p,d=r(7462),g=r(7326),y=r(9611),v=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function m(e,t){if(e.length!==t.length)return!1;for(var r,n,o=0;o<e.length;o++)if(!((r=e[o])===(n=t[o])||v(r)&&v(n)))return!1;return!0}var b=function(e,t){void 0===t&&(t=m);var r,n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}},w=r(7294),E="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function x(e){cancelAnimationFrame(e.id)}var R=-1;function S(e){if(void 0===e&&(e=!1),-1===R||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),R=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return R}var k=null;function O(e){if(void 0===e&&(e=!1),null===k||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?k="positive-descending":(t.scrollLeft=1,k=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t)}return k}var P=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var c=o[a];s=c.offset+c.size}for(var u=a+1;u<=r;u++){var l=i(u);o[u]={offset:s,size:l},s+=l}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},I=function(e,t){return e},A=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},C=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var c=i+1;c<=t;c++){var u=n(c);o[c]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},T=function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?Z(e,t,o,0,r):L(e,t,Math.max(0,o),r)},Z=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=C(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},L=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&C(e,r,t).offset<n;)r+=i,i*=2;return Z(e,t,Math.min(r,o-1),Math.floor(r/2),n)},M=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},_=(i=(n={getItemOffset:function(e,t,r){return C(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:M,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.he
6ight,c=e.layout,u=e.width,l="horizontal"===a||"horizontal"===c?u:s,f=C(e,t,o),h=Math.max(0,Math.min(M(e,o)-l,f.offset)),p=Math.max(0,f.offset-l+f.size+i);switch("smart"===r&&(r=n>=p-l&&n<=h+l?"auto":"center"),r){case"start":return h;case"end":return p;case"center":return Math.round(p+(h-p)/2);default:if(n>=p&&n<=h)return n;if(n<p)return p;return h}},getStartIndexForOffset:function(e,t,r){return T(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,c=e.width,u=C(e,t,n),l=r+("horizontal"===o||"horizontal"===s?c:i),f=u.offset+u.size,h=t;h<a-1&&f<l;)f+=C(e,++h,n).size;return h},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}}).getItemOffset,a=n.getEstimatedTotalSize,s=n.getItemSize,c=n.getOffsetForIndexAndAlignment,u=n.getStartIndexForOffset,l=n.getStopIndexForStartIndex,f=n.initInstanceProps,h=n.shouldResetStyleCacheOnItemSizeChange,p=n.validateProps,(o=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=f(r.props,(0,g.Z)(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:(0,g.Z)(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=b(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=b(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,n=r.props,o=n.direction,a=n.itemSize,c=n.layout,u=r._getItemStyleCache(h&&a,h&&c,h&&o);if(u.hasOwnProperty(e))t=u[e];else{var l=i(r.props,e,r._instanceProps),f=s(r.props,e,r._instanceProps),p="horizontal"===o||"horizontal"===c,d="rtl"===o,g=p?l:0;u[e]=t={position:"absolute",left:d?void 0:g,right:d?g:void 0,top:p?0:l,height:p?"100%":f,width:p?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=b(function(e,t,r){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(O()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){var e,t,n;null!==r._resetIsScrollingTimeoutId&&x(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=(e=r._resetIsScrolling,t=E(),n={id:requestAnimationFrame(function r(){E()-t>=150?e.call(null):n.id=requestAnimationFrame(r)})})},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}(r=t).prototype=Object.create(e.prototype),r.prototype.constructor=r,(0,y.Z)(r,e),t.getDerivedStateFromProps=function(e,t){return A(e,t),p(e),null};var r,n=t.prototype;return n.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},n.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var a=0;if(this._outerRef){var s=this._outerRef;a="vertical"===o?s.scrollWidth>s.clientWidth?S():0:s.scrollHeight>s.clientHeight?S():0}this.scrollTo(c(this.props,e,t,i,this._instanceProps,a))},n.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r){if("rtl"===t)switch(O()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o}else i.scrollTop=o}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&x(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,r=e.className,n=e.direction,o=e.height,i=e.innerRef,s=e.innerElementType,c=e.innerTagName,u=e.itemCount,l=e.itemData,f=e.itemKey,h=void 0===f?I:f,p=e.layout,g=e.outerElementType,y=e.outerTagName,v=e.style,m=e.useIsScrolling,b=e.width,E=this.state.isScrolling,x="horizontal"===n||"horizontal"===p,R=x?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),k=S[0],O=S[1],P=[];if(u>0)for(var A=k;A<=O;A++)P.push((0,w.createElement)(t,{data:l,key:h(A,l),index:A,isScrolling:m?E:void 0,style:this._getItemStyle(A)}));var C=a(this.props,this._instanceProps);return(0,w.createElement)(g||y||"div",{className:r,onScroll:R,ref:this._outerRefSetter,style:(0,d.Z)({position:"relative",height:o,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:n},v)},(0,w.createElement)(s||c||"div",{children:P,ref:i,style:{height:x?"100%":C,pointerEvents:E?"none":void 0,width:x?C:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,c=i.scrollUpdateWasRequested;this._callOnScroll(a,s,c)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var s=u(this.props,a,this._instanceProps),c=l(this.props,s,a,this._instanceProps);return[Math.max(0,s-(o&&"backward"!==i?1:Math.max(1,r))),Math.max(0,Math.min(t-1,c+(o&&"forward"!==i?1:Math.max(1,r)))),s,c]},t}(w.PureComponent)).defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},o)},7632:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return u}});let o="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var i={randomUUID:o};let a=new Uint8Array(16);function s(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)}let c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));var u=function(e,t,r){if(i.randomUUID&&!t&&!e)return i.randomUUID();e=e||{};let n=e.random||(e.rng||s)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}(n)}}
6,2708:function(e,t,r){"use strict";r.d(t,{YD:function(){return c}});var n=r(7294),o=new Map,i=new WeakMap,a=0,s=void 0;function c({threshold:e,delay:t,trackVisibility:r,rootMargin:c,root:u,triggerOnce:l,skip:f,initialInView:h,fallbackInView:p,onChange:d}={}){let[g,y]=n.useState(null),v=n.useRef(),[m,b]=n.useState({inView:!!h,entry:void 0});v.current=d,n.useEffect(()=>{let n;if(!f&&g)return n=function(e,t,r={},n=s){if(void 0===window.IntersectionObserver&&void 0!==n){let o=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}let{id:c,observer:u,elements:l}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?(r=e.root)?(i.has(r)||(a+=1,i.set(r,a.toString())),i.get(r)):"0":e[t]}`}).toString(),r=o.get(t);if(!r){let n;let i=new Map,a=new IntersectionObserver(t=>{t.forEach(t=>{let r=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=r),i.get(t.target)?.forEach(e=>{e(r,t)})})},e);n=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:a,elements:i},o.set(t,r)}return r}(r),f=l.get(e)||[];return l.has(e)||l.set(e,f),f.push(t),u.observe(e),function(){f.splice(f.indexOf(t),1),0===f.length&&(l.delete(e),u.unobserve(e)),0===l.size&&(u.disconnect(),o.delete(c))}}(g,(e,t)=>{b({inView:e,entry:t}),v.current&&v.current(e,t),t.isIntersecting&&l&&n&&(n(),n=void 0)},{root:u,rootMargin:c,threshold:e,trackVisibility:r,delay:t},p),()=>{n&&n()}},[Array.isArray(e)?e.toString():e,g,u,c,l,f,r,p,t]);let w=m.entry?.target,E=n.useRef();g||!w||l||f||E.current===w||(E.current=w,b({inView:!!h,entry:void 0}));let x=[y,m.inView,m.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}n.Component}}]);
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.