UNPKG

@mescius/dspdfviewer

Version:
2 lines 6.64 MB
/*! For license information please see dspdfviewer.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.dspdfviewer=t():e.dspdfviewer=t()}(self,(()=>(()=>{var __webpack_modules__={7186:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{(()=>{var __webpack_modules__={92:(e,t,n)=>{"use strict";var i=n(10522);e.exports=i("document","documentElement")},432:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return s?(null!=c[e]||((0,r.default)(e)in s.style?c[e]=e:o.default.js+(0,r.default)("-"+e)in s.style?c[e]=o.default.css+e:c[e]=!1),c[e]):e};var i=a(n(62670)),o=a(n(65972)),r=a(n(92080));function a(e){return e&&e.__esModule?e:{default:e}}var s=void 0,c={};if(i.default){s=document.createElement("p");var l=window.getComputedStyle(document.documentElement,"");for(var d in l)isNaN(d)||(c[l[d]]=l[d])}},822:(e,t,n)=>{"use strict";n.d(t,{F:()=>p});var i=n(26786),o=n(96212),r=n(54533),a=-1,s=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],c=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],l=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],d=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],u=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],g=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]],p=(0,o.A)((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,i.A)(this,e),!t||"function"!=typeof t.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=t,this.eof=!1,this.encoding=n.K||0,this.eoline=n.EndOfLine||!1,this.byteAlign=n.EncodedByteAlign||!1,this.columns=n.Columns||1728,this.rows=n.Rows||0;var o,r=n.EndOfBlock;for(null==r&&(r=!0),this.eoblock=r,this.black=n.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;0===(o=this._lookBits(12));)this._eatBits(1);1===o&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}),[{key:"readNextChar",value:function(){if(this.eof)return-1;var e,t,n,i,o,s=this.refLine,c=this.codingLine,l=this.columns;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;var d,u,g;if(this.err=!1,this.nextLine2D){for(i=0;c[i]<l;++i)s[i]=c[i];for(s[i++]=l,s[i]=l,c[0]=0,this.codingPos=0,e=0,t=0;c[this.codingPos]<l;)switch(d=this._getTwoDimCode()){case 0:this._addPixels(s[e+1],t),s[e+1]<l&&(e+=2);break;case 1:if(d=u=0,t){do{d+=g=this._getBlackCode()}while(g>=64);do{u+=g=this._getWhiteCode()}while(g>=64)}else{do{d+=g=this._getWhiteCode()}while(g>=64);do{u+=g=this._getBlackCode()}while(g>=64)}for(this._addPixels(c[this.codingPos]+d,t),c[this.codingPos]<l&&this._addPixels(c[this.codingPos]+u,1^t);s[e]<=c[this.codingPos]&&s[e]<l;)e+=2;break;case 7:if(this._addPixels(s[e]+3,t),t^=1,c[this.codingPos]<l)for(++e;s[e]<=c[this.codingPos]&&s[e]<l;)e+=2;break;case 5:if(this._addPixels(s[e]+2,t),t^=1,c[this.codingPos]<l)for(++e;s[e]<=c[this.codingPos]&&s[e]<l;)e+=2;break;case 3:if(this._addPixels(s[e]+1,t),t^=1,c[this.codingPos]<l)for(++e;s[e]<=c[this.codingPos]&&s[e]<l;)e+=2;break;case 2:if(this._addPixels(s[e],t),t^=1,c[this.codingPos]<l)for(++e;s[e]<=c[this.codingPos]&&s[e]<l;)e+=2;break;case 8:if(this._addPixelsNeg(s[e]-3,t),t^=1,c[this.codingPos]<l)for(e>0?--e:++e;s[e]<=c[this.codingPos]&&s[e]<l;)e+=2;break;case 6:if(this._addPixelsNeg(s[e]-2,t),t^=1,c[this.codingPos]<l)for(e>0?--e:++e;s[e]<=c[this.codingPos]&&s[e]<l;)e+=2;break;case 4:if(this._addPixelsNeg(s[e]-1,t),t^=1,c[this.codingPos]<l)for(e>0?--e:++e;s[e]<=c[this.codingPos]&&s[e]<l;)e+=2;break;case a:this._addPixels(l,0),this.eof=!0;break;default:(0,r.info)("bad 2d code"),this._addPixels(l,0),this.err=!0}}else for(c[0]=0,this.codingPos=0,t=0;c[this.codingPos]<l;){if(d=0,t)do{d+=g=this._getBlackCode()}while(g>=64);else do{d+=g=this._getWhiteCode()}while(g>=64);this._addPixels(c[this.codingPos]+d,t),t^=1}var p=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(d=this._lookBits(12),this.eoline)for(;d!==a&&1!==d;)this._eatBits(1),d=this._lookBits(12);else for(;0===d;)this._eatBits(1),d=this._lookBits(12);1===d?(this._eatBits(12),p=!0):d===a&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&p&&this.byteAlign){if(1===(d=this._lookBits(12))){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(i=0;i<4;++i)1!==(d=this._lookBits(12))&&(0,r.info)("bad rtc code: "+d),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if((d=this._lookBits(13))===a)return this.eof=!0,-1;if(d>>1==1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&d))}c[0]>0?this.outputBits=c[this.codingPos=0]:this.outputBits=c[this.codingPos=1],this.row++}if(this.outputBits>=8)o=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&c[this.codingPos]<l&&(this.codingPos++,this.outputBits=c[this.codingPos]-c[this.codingPos-1]);else{n=8,o=0;do{if("number"!=typeof this.outputBits)throw new r.FormatError('Invalid /CCITTFaxDecode data, "outputBits" must be a number.');this.outputBits>n?(o<<=n,1&this.codingPos||(o|=255>>8-n),this.outputBits-=n,n=0):(o<<=this.outputBits,1&this.codingPos||(o|=255>>8-this.outputBits),n-=this.outputBits,this.outputBits=0,c[this.codingPos]<l?(this.codingPos++,this.outputBits=c[this.codingPos]-c[this.codingPos-1]):n>0&&(o<<=n,n=0))}while(n)}return this.black&&(o^=255),o}},{key:"_addPixels",value:function(e,t){var n=this.codingLine,i=this.codingPos;e>n[i]&&(e>this.columns&&((0,r.info)("row is wrong length"),this.err=!0,e=this.columns),1&i^t&&++i,n[i]=e),this.codingPos=i}},{key:"_addPixelsNeg",value:function(e,t){var n=this.codingLine,i=this.codingPos;if(e>n[i])e>this.columns&&((0,r.info)("row is wrong length"),this.err=!0,e=this.columns),1&i^t&&++i,n[i]=e;else if(e<n[i]){for(e<0&&((0,r.info)("invalid code"),this.err=!0,e=0);i>0&&e<n[i-1];)--i;n[i]=e}this.codingPos=i}},{key:"_findTableCode",value:function(e,t,n,i){for(var o=i||0,r=e;r<=t;++r){var s=this._lookBits(r);if(s===a)return[!0,1,!1];if(r<t&&(s<<=t-r),!o||s>=o){var c=n[s-o];if(c[0]===r)return this._eatBits(r),[!0,c[1],!0]}}return[!1,0,!1]}},{key:"_getTwoDimCode",value:function(){var e,t=0;if(this.eoblock){if(t=this._lookBits(7),(e=s[t])&&e[0]>0)return this._eatBits(e[0]),e[1]}else{var n=this._findTableCode(1,7,s);if(n[0]&&n[2])return n[1]}return(0,r.info)("Bad two dim code"),a}},{key:"_getWhiteCode",value:function(){var e,t=0;if(this.eoblock){if((t=this._lookBits(12))===a)return 1;if((e=t>>5?l[t>>3]:c[t])[0]>0)return this._eatBits(e[0]),e[1]}else{var n=this._findTableCode(1,9,l);if(n[0])return n[1];if((n=this._findTableCode(11,12,c))[0])return n[1]}return(0,r.info)("bad white code"),this._eatBits(1),1}},{key:"_getBlackCode",value:function(){var e,t;if(this.eoblock){if((e=this._lookBits(13))===a)return 1;if((t=e>>7?!(e>>9)&&e>>7?u[(e>>1)-64]:g[e>>7]:d[e])[0]>0)return this._eatBits(t[0]),t[1]}else{var n=this._findTableCode(2,6,g);if(n[0])return n[1];if((n=this._findTableCode(7,12,u,64))[0])return n[1];if((n=this._findTableCode(10,13,d))[0])return n[1]}return(0,r.info)("bad black code"),this._eatBits(1),1}},{key:"_lookBits",value:function(e){for(var t;this.inputBits<e;){if(-1===(t=this.source.next()))return 0===this.inputBits?a:this.inputBuf<<e-this.inputBits&65535>>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}},{key:"_eatBits",value:function(e){(this.inputBits-=e)<0&&(this.inputBits=0)}}])},828:(e,t)=>{"use strict";var n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.drawPageWatermark=t.globalScope=t.WeakMap=t.Util=t.SharedUtils=t.iOSversion=t.waitOnEventOrTimeout=t.scrollIntoView=t.getVisibleElements=t.getOutputScale=t.getPageSizeInches=t.roundToDivide=t.approximateFraction=t.binarySearchFirstItem=t.parseQueryString=t.createValidAbsoluteUrl=t.apiCompatibilityParams=t.addLinkAttributes=t.LinkTarget=t.createObjectURL=t.removeNullCharacters=t.GcUIViewTypeEnum=t.RendererType=t.RenderingStates=t.AbortException=t.isIETrident=t.MAX_CANVAS_PIXELS=t.VERTICAL_PADDING=t.SCROLLBAR_PADDING=t.MAX_AUTO_SCALE=t.UNKNOWN_SCALE=t.MAX_SCALE=t.MIN_SCALE=t.DEFAULT_SCALE=t.DEFAULT_SCALE_VALUE=t.CSS_UNITS=void 0,t.CSS_UNITS=96/72,t.DEFAULT_SCALE_VALUE="auto",t.DEFAULT_SCALE=1,t.MIN_SCALE=.1,t.MAX_SCALE=10,t.UNKNOWN_SCALE=0,t.MAX_AUTO_SCALE=1,t.SCROLLBAR_PADDING=40,t.VERTICAL_PADDING=2,t.MAX_CANVAS_PIXELS=16777216,t.isIETrident=navigator.userAgent.indexOf("Trident/")>-1,t.AbortException=function(){function e(e){this.name="AbortException",this.message=e}return e.prototype=new Error,e.constructor=e,e}(),(o=t.RenderingStates||(t.RenderingStates={}))[o.INITIAL=0]="INITIAL",o[o.RUNNING=1]="RUNNING",o[o.PAUSED=2]="PAUSED",o[o.FINISHED=3]="FINISHED",(i=t.RendererType||(t.RendererType={})).CANVAS="canvas",i.SVG="svg",(n=t.GcUIViewTypeEnum||(t.GcUIViewTypeEnum={})).continuous="continuous",n.singlepage="singlepage";var r=/\x00/g;function a(e){return"string"!=typeof e?e:e.replace(r,"")}t.removeNullCharacters=a,t.createObjectURL=function(e,t,n){return void 0===n&&(n=!1),_.createObjectURLClosure()(e,t,n)};var s=["http:","https:","ftp:","mailto:","tel:","blob:"];t.LinkTarget={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};var c=["","_self","_blank","_parent","_top"];t.addLinkAttributes=function(e,n){var i=n.url,o=n.target,r=n.rel,s=n.enabled,l=void 0===s||s,d=i?a(i):"";if(l?e.href=e.title=d:(e.href="",e.title="Disabled: ".concat(d),e.onclick=function(){return!1}),i){var u=Object.values(t.LinkTarget).includes(o)?o:t.LinkTarget.NONE;e.target=c[u],e.rel="string"==typeof r?r:"noopener noreferrer nofollow"}};var l=Object.create(null),d="undefined"!=typeof navigator&&navigator.userAgent||"",u=/Trident/.test(d),g=/CriOS/.test(d);function p(e,t){var n=0,i=e.length-1;if(0===e.length||!t(e[i]))return e.length;if(t(e[n]))return n;for(;n<i;){var o=n+i>>1;t(e[o])?i=o:n=o+1}return n}function h(e){var t=(window.devicePixelRatio||1)/(e&&(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio)||1);return{sx:t,sy:t,scaled:1!==t}}function f(e,t,n){void 0===n&&(n=!1),t=t||[];for(var i=e.scrollTop,o=i+e.clientHeight,r=e.scrollLeft,a=r+e.clientWidth,s=[],c=void 0,l=void 0,d=void 0,u=void 0,g=void 0,h=void 0,f=0===t.length?0:p(t,(function(e){var t=e.div,n=t.offsetTop+t.clientTop+t.clientHeight;return!t.clientHeight||n>i})),m=f,b=t.length;m<b;m++)if(u=(l=(c=t[m]).div).clientHeight){if((d=l.offsetTop+l.clientTop)>o)break;(h=l.offsetLeft+l.clientLeft)+l.clientWidth<r||h>a||(g=100*(u-(Math.max(0,i-d)+Math.max(0,d+u-o)))/u|0,s.push({id:c.id,x:h,y:d,view:c,percent:g}))}var v=s[0],_=s[s.length-1];return n&&s.sort((function(e,t){var n=e.percent-t.percent;return Math.abs(n)>.001?-n:e.id-t.id})),{first:v,last:_,views:s}}function m(e,t,n,i,o){if(i||(i=e.offsetParent),i){for(var r=e.offsetTop+e.clientTop,a=e.offsetLeft+e.clientLeft;i.clientHeight===i.scrollHeight&&i.clientWidth===i.scrollWidth||n&&"hidden"===getComputedStyle(i).overflow;)if(i.dataset&&i.dataset._scaleY&&(r/=i.dataset._scaleY,a/=i.dataset._scaleX),r+=i.offsetTop,a+=i.offsetLeft,!(i=i.offsetParent))return;if(t&&(void 0!==t.top&&(r+=t.top),void 0!==t.left&&(a+=t.left,i.scrollLeft=a)),"if-needed"===(o=o||{}).scrollMode){var s=_.getVisibleElements(i,[{div:e,id:1e3}],!0),c=o.visibilityThreshold||10;if(s.first&&s.first.percent>=c)return}o.behavior?i.scrollTo({top:r,behavior:o.behavior}):i.scrollTop=r}}(u||g)&&(l.disableCreateObjectURL=!0),t.apiCompatibilityParams=Object.freeze(l),t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{var n=t&&!function(e){if(!e)return!1;for(var t=e.toLowerCase(),n=0,i=s;n<i.length;n++){var o=i[n];if(t.startsWith(o))return!0}return!1}(e)?new URL(e,t):new URL(e);if(function(e){return!!e&&s.includes(e.protocol)}(n))return n}catch(e){}return null},t.parseQueryString=function(e){for(var t=e.split("&"),n=Object.create(null),i=0,o=t.length;i<o;++i){var r=t[i].split("="),a=r[0].toLowerCase(),s=r.length>1?r[1]:null;n[decodeURIComponent(a)]=decodeURIComponent(s)}return n},t.binarySearchFirstItem=p,t.approximateFraction=function(e){if(Math.floor(e)===e)return[e,1];var t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];for(var n=e>1?t:e,i=0,o=1,r=1,a=1;;){var s=i+r,c=o+a;if(c>8)break;n<=s/c?(r=s,a=c):(i=s,o=c)}return n-i/o<r/a-n?n===e?[i,o]:[o,i]:n===e?[r,a]:[a,r]},t.roundToDivide=function(e,t){var n=e%t;return 0===n?e:Math.round(e-n+t)},t.getPageSizeInches=function(e){var t=e.view,n=e.userUnit,i=e.rotate,o=t[0],r=t[1],a=i%180!=0,s=(t[2]-o)/72*n,c=(t[3]-r)/72*n;return{width:a?c:s,height:a?s:c}},t.getOutputScale=h,t.getVisibleElements=f,t.scrollIntoView=m,t.waitOnEventOrTimeout=function(e){var t=e.target,n=e.name,i=e.delay,o=void 0===i?0:i;return new Promise((function(e,i){if("object"!=typeof t||!n||"string"!=typeof n||!(isFinite(o)&&o>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function r(i){t.off?t.off(n,a):t.removeEventListener(n,a),c&&clearTimeout(c),e(i)}var a=r.bind(null,"event");t.on?t.on(n,a):t.addEventListener(n,a);var s=r.bind(null,"timeout"),c=setTimeout(s,o)}))},t.iOSversion=function(){try{if(/iP(hone|od|ad)/.test(navigator.platform)){var e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);if(e)return{status:!0,version:parseInt(e[1],10),info:parseInt(e[1],10)+"."+parseInt(e[2],10)+"."+parseInt(e[3]||"0",10)}}}catch(e){}return{status:!1,version:!1,info:""}};var b,v,_=function(){function e(){}return e.attachHeadCss=function(t,n){if(void 0===n&&(n=null),n){if(e._attachedCss[n])return;e._attachedCss[n]=!0}var i=document.getElementsByTagName("head")[0],o=document.createElement("link");n&&o.setAttribute("id",n),o.setAttribute("rel","stylesheet"),o.setAttribute("type","text/css"),o.setAttribute("href","data:text/css;charset=UTF-8,"+encodeURIComponent(t)),i.appendChild(o)},e.detachHeadCss=function(t){if(t){if(!e._attachedCss[t])return;var n=document.getElementById(t);n&&n.remove(),delete e._attachedCss[t]}},e.classListContains=function(e,t){return(" "+e.className+" ").indexOf(" "+t+" ")>-1},e.createBlob=function(e,t){if(void 0===t&&(t=""),"undefined"!=typeof Blob)return new Blob([e],{type:t});throw new Error('The "Blob" constructor is not supported.')},e.createObjectURLClosure=function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(n,i,o){if(void 0===o&&(o=!1),!o&&URL.createObjectURL){var r=e.createBlob(n,i);return URL.createObjectURL(r)}for(var a="data:"+i+";base64,",s=0,c=n.length;s<c;s+=3){var l=255&n[s],d=255&n[s+1],u=255&n[s+2];a+=t[l>>2]+t[(3&l)<<4|d>>4]+t[s+1<c?(15&d)<<2|u>>6:64]+t[s+2<c?63&u:64]}return a}},e.createPromiseCapability=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e},e.findSelfOrAncestor=function(t,n){if(t&&!e.classListContains(t,n))for(;(t=t.parentNode)&&!e.classListContains(t,n););return t},e.getEventTarget=function(e){return e.touches&&e.touches.length>0&&e.touches[0].target?e.touches[0].target:(e.path||e.composedPath&&e.composedPath()||[])[0]||e.target},e.getHtmlSelectValues=function(e){var t,n=[],i=e&&e.options;if(!i)return n;for(var o=0,r=i.length;o<r;o++)(t=i.item(o))&&t.selected&&n.push(t.value||t.text);return n},e.setHtmlSelectValues=function(e,t){if(e&&t&&t.length&&t.includes){var n=e&&e.options;if(n)for(var i=0,o=n.length;i<o;i++){var r=n.item(i);r&&(r.selected=t.includes(r.value||r.text))}}},e.getOutputScale=function(e){return h(e)},e.getVisibleElements=function(e,t,n){return void 0===n&&(n=!1),f(e,t,n)},e.isInputArea=function(e){var t;if(!e)return!1;for(var n="INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"OPTION"===e.tagName||(null===(t=e.classList)||void 0===t?void 0:t.contains("gc-text-content"))||e.allowTextSelection;e&&!n&&(n=e.hasAttribute&&e.hasAttribute("contenteditable")&&"true"===e.getAttribute("contenteditable"),"SECTION"!==e.tagName&&"BODY"!==e.tagName&&"HTML"!==e.tagName);)e=e.parentNode;return n},e.isPanActivated=function(t){if(!t)return!1;var n=!!e.findSelfOrAncestor(t,"gc-pan-activated");if(!n){var i=e.findSelfOrAncestor(t,"gcv-pageview");i&&(n="move"===i.style.cursor)}return n},e.isPunctuation=function(t){if(!t)return!1;var n;try{n=/[!-#%-*,-/\:;?@\[-\]_\{\}\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\n|\r/g}catch(e){n=/[^\w\s]|\s|_|\n|\r/g}return!!t.match(n)||e.isSpaceCharCode(t.charCodeAt(0))},e.isSpaceCharCode=function(e){return 32===e||9===e||13===e||10===e},e.isRenderingCancelled=function(e){return e&&-1!==(e.name||e.toString()).indexOf("RenderingCancelledException")},e.isValidRotation=function(e){return isFinite(e)&&e%90==0},e.isHashEmpty=function(e){return!e||0===Object.keys(e).length&&e.constructor===Object},e.cloneObject=function(t){return e.mergeObject(void 0,t)},e.isTypedArray=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},e.isPrimitive=function(e){return e!==Object(e)},e.mergeObject=function(t,n,i){if(void 0===i&&(i=!1),void 0===n||i&&void 0!==t&&e.isPrimitive(t))return t;if(e.isTypedArray(n))return n;if(void 0===t){if(n instanceof Date)return new Date(n.getTime());if(n instanceof Array)t=[];else{if(!n||"object"!=typeof n)return n;t={}}}if(n){if(n instanceof Array){if(t&&t instanceof Array){for(var o=[],r=0;r<n.length;r++)t.length>r?o[r]=e.mergeObject(t[r],n[r]):o[r]=e.mergeObject(void 0,n[r]);return o}return n}if("object"==typeof n&&t&&"object"==typeof t){for(var a in n)t[a]="irtAnnotations"===a||"parentAnnotation"===a||"popupAnnotation"===a||"threads"===a||"bead"===a||"firstBead"===a||"source"===a?n[a]:e.mergeObject(t[a],n[a]);return t}}return n},e.normalizeWheelEventDelta=function(e){var t=Math.sqrt(e.deltaX*e.deltaX+e.deltaY*e.deltaY),n=Math.atan2(e.deltaY,e.deltaX);return-.25*Math.PI<n&&n<.75*Math.PI&&(t=-t),0===e.deltaMode?t/=900:1===e.deltaMode&&(t/=30),t},e.scrollIntoView=function(e,t,n,i,o){void 0===n&&(n=!1),m(e,t,n,i,o)},e.hexToRgb=function(e){return e?0===e.indexOf("rgb")?(t=(e=(e=e.substr(e.indexOf("(")+1)).replace(")","")).split(",")).length>3?[parseInt(t[0]||"0",10),parseInt(t[1]||"0",10),parseInt(t[2]||"0",10),parseInt(t[3]||"1",10)]:[parseInt(t[0]||"0",10),parseInt(t[1]||"0",10),parseInt(t[2]||"0",10)]:(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null:null;var t},e.rgbToHex=function(e){return e&&e.length>0?"string"==typeof e?e:"#"+((1<<24)+((e[0]||0)<<16)+((e[1]||0)<<8)+(e[2]||0)).toString(16).slice(1):""},e.makeCssRgb=function(e){return"rgb(".concat(e[0]||0,",").concat(e[1]||0,",").concat(e[2]||0)},e.enlightColor=function(t,n){void 0===n&&(n=.7);var i="string"==typeof t?e.hexToRgb(t):t;if(i){var o=[];return o[0]=n*(255-i[0])+i[0],o[1]=n*(255-i[1])+i[1],o[2]=n*(255-i[2])+i[2],e.makeCssRgb(o)}return t},e.normalizeRect=function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t},e._attachedCss={},e}();t.SharedUtils=_,t.Util=(v=["rgb(",0,",",0,",",0,")"],(b={}).makeCssRgb=function(e,t,n){return v[1]=e,v[3]=t,v[5]=n,v.join("")},b.transform=function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]},b.applyTransform=function(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]},b.applyInverseTransform=function(e,t){var n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]},b.getAxialAlignedBoundingBox=function(e,t){var n=b.applyTransform(e,t),i=b.applyTransform(e.slice(2,4),t),o=b.applyTransform([e[0],e[3]],t),r=b.applyTransform([e[2],e[1]],t);return[Math.min(n[0],i[0],o[0],r[0]),Math.min(n[1],i[1],o[1],r[1]),Math.max(n[0],i[0],o[0],r[0]),Math.max(n[1],i[1],o[1],r[1])]},b.inverseTransform=function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]},b.apply3dTransform=function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]},b.singularValueDecompose2dScale=function(e){var t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],i=e[0]*t[1]+e[1]*t[3],o=e[2]*t[0]+e[3]*t[2],r=e[2]*t[1]+e[3]*t[3],a=(n+r)/2,s=Math.sqrt((n+r)*(n+r)-4*(n*r-o*i))/2,c=a+s||1,l=a-s||1;return[Math.sqrt(l),Math.sqrt(c)]},b.normalizeRect=function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t},b.intersect=function(e,t){function n(e,t){return e-t}var i=[e[0],e[2],t[0],t[2]].sort(n),o=[e[1],e[3],t[1],t[3]].sort(n),r=[];return e=b.normalizeRect(e),t=b.normalizeRect(t),(i[0]===e[0]&&i[1]===t[0]||i[0]===t[0]&&i[1]===e[0])&&(r[0]=i[1],r[2]=i[2],(o[0]===e[1]&&o[1]===t[1]||o[0]===t[1]&&o[1]===e[1])&&(r[1]=o[1],r[3]=o[2],r))},b),t.WeakMap=function(e){if(!e){var t=Object.defineProperty,n=Date.now()%1e9;(e=function(e){this.name="__st"+(1e9*Math.random()>>>0)+n+++"__",e&&e.forEach&&e.forEach((function(e){this.set.apply(this,e)}),this)}).prototype.set=function(e,n){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Invalid value used as weak map key");var i=e[this.name];return i&&i[0]===e?i[1]=n:t(e,this.name,{value:[e,n],writable:!0}),this},e.prototype.get=function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},e.prototype.delete=function(e){var t=e[this.name];return!(!t||t[0]!==e||(t[0]=t[1]=void 0,0))},e.prototype.has=function(e){var t=e[this.name];return!!t&&t[0]===e}}return e}(window.WeakMap),t.globalScope="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:{},t.drawPageWatermark=function(e,t){if(t){e.save();var n=Math.min(e.canvas.width,e.canvas.height);e.font="16px Arial",e.textAlign="right",e.textBaseline="bottom",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowColor="rgba(255, 255, 255, 0.9)",e.shadowBlur=5;for(var i=t.split("\n"),o=0,r=0,a=0;a<i.length;a++)o=Math.ceil(Math.max(e.measureText(i[a]).width,o)),r=Math.max(r,i[a].length);var s=n/2/o;e.translate(n-10*s,e.canvas.height-10*s),e.scale(s,s),e.fillStyle="#7D7D7D";var c=19.2*(i.length-1);for(a=0;a<i.length;a++){var l=i[a];l&&e.fillText(l,0,19.2*a-c)}e.restore()}}},909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{onProcessRule:function(e){"keyframes"===e.type&&(e.key="@"+i.prefix.css+e.key.substr(1))},onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n in e){var o=e[n],r=!1,a=i.supportedProperty(n);a&&a!==n&&(r=!0);var s=!1,c=i.supportedValue(a,o);c&&c!==o&&(s=!0),(r||s)&&(r&&delete e[n],e[a||n]=c||o)}return e},onChangeValue:function(e,t){return i.supportedValue(t,e)}}};var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(67922))},1425:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=(i=n(48398))&&i.__esModule?i:{default:i},s=function(){function e(t,n,i){for(var r in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="keyframes",this.isProcessed=!1,this.key=t,this.options=i,this.rules=new a.default(o({},i,{parent:this})),n)this.rules.add(r,n[r],o({},this.options,{parent:this,selector:r}));this.rules.process()}return r(e,[{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{indent:1},t=this.rules.toString(e);return t&&(t+="\n"),this.key+" {\n"+t+"}"}}]),e}();t.default=s},1531:(e,t,n)=>{"use strict";var i=n(19871),o=n(72747);e.exports=function(e,t,n){try{return i(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},1596:(e,t,n)=>{"use strict";var i=n(1531),o=n(48393),r=n(92035),a=n(88991);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),a(i),o(n)?(t?e(n,i):n.__proto__=i,n):n}}():void 0)},1711:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(46497);function o(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=(0,i.A)(e)););return e}},1752:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(a=0)),a;)try{if(n=1,i&&(o=2&s[0]?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.GcPageView=void 0;var r=n(40062),a=n(5284),s=n(60994),c=n(86893),l=n(828),d=n(3524),u=n(12003),g=n(53072),p=function(){function e(e,t,n,i,o,r,a,s){void 0===s&&(s={}),this.scale=1,this.hasRestrictedScaling=!1,this._options=s,this.pageIndex=e,this.id=e+1,this.renderingId="page"+this.id,this.pagesLoader=t,this.pdfViewer=t.pdfViewer,this.scale=t.currentScaleNumberValue,this.rotation=this.pdfViewer.pageRotation,this.renderingState=l.RenderingStates.INITIAL,this.eventBus=this.pdfViewer.serviceProvider.eventBus,this.l10n=this.pdfViewer.serviceProvider.localizer,this.textLayerFactory=n,this.annotationLayerFactory=i,this.xfaLayerFactory=o,this.renderer=s.renderer||l.RendererType.CANVAS,this.renderingQueue=r,this._useCanvasForSelection=s.useCanvasForSelection;var d=this.pdfViewer.elementPagesContent;delete this.pdfPage,this.pageLabel=null,this.viewport=a,this.pdfPageRotate=a.rotation,this.hasRestrictedScaling=!1,this.textLayerMode=isFinite(s.textLayerMode)?s.textLayerMode:c.TextLayerMode.ENABLE,this.imageResourcesPath=s.imageResourcesPath||"",this.renderInteractiveForms=s.renderInteractiveForms,g.isMobile.Android()||g.isMobile.iOS()||g.isMobile.iOSDesktopMode()?this.useOnlyCssZoom=!0:this.useOnlyCssZoom=s.useOnlyCssZoom||!1,void 0!==s.maxCanvasPixels&&Number.isFinite(s.maxCanvasPixels)?this.maxCanvasPixels=s.maxCanvasPixels:g.isMobile.anyMobile()||g.isMobile.iOSDesktopMode()?this.maxCanvasPixels=21e5:this.maxCanvasPixels=l.MAX_CANVAS_PIXELS,this.enableWebGL=s.enableWebGL||!1,this.paintTask=null,this.paintedViewportMap=new l.WeakMap,this.renderingState=l.RenderingStates.INITIAL,this.resume=null,this.error=null,this.onBeforeDraw=null,this.onAfterDraw=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null,this.structTreeLayer=null;var u=document.createElement("div");u.className="page page".concat(this.pageIndex),u.style.width=Math.floor(this.viewport.width)+"px",u.style.height=Math.floor(this.viewport.height)+"px",u.setAttribute("data-index",this.pageIndex.toString()),u.setAttribute("data-page-number",this.id.toString()),this.div=u,d.appendChild(u)}return e.prototype._cleanupAppearanceOps=function(){this._annotationAppearanceOps=null},e.prototype.ensureAnnotationLayerDOM=function(){if(!this.div.querySelector(".annotationLayer")){var e=document.createElement("div");e.className="annotationLayer",this.div.appendChild(e)}},Object.defineProperty(e.prototype,"highlishts",{get:function(){var e=this.highlightManager;return(null==e?void 0:e.getHighlightsForPage(this.pageIndex))||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highlightManager",{get:function(){return this.pdfViewer.highlightManager||null},enumerable:!1,configurable:!0}),e.prototype.ensureAnnotationLayerRendered=function(){return this._annotationsRenderedPromiseCap||(this._annotationsRenderedPromiseCap=l.SharedUtils.createPromiseCapability()),this._annotationsRenderedPromiseCap.promise},e.prototype.ensureFullyLoaded=function(){var e=this;return this._ensureFullyLoadedPromiseCap||(this._ensureFullyLoadedPromiseCap=l.SharedUtils.createPromiseCapability(),this.renderingState===l.RenderingStates.INITIAL?this.draw().then((function(){e._ensureFullyLoadedPromiseCap.resolve(e)})):this._ensureFullyLoadedPromiseCap.resolve(this)),this._ensureFullyLoadedPromiseCap.promise},e.prototype.ensureSelectionPainter=function(){var e=this;return this._ensureSelectionPainterPromiseCap||(this._ensureSelectionPainterPromiseCap=l.SharedUtils.createPromiseCapability(),this._selectionPainter?this._ensureSelectionPainterPromiseCap.resolve(this._selectionPainter):this.textLayerReadyPromise().then((function(){e._ensureSelectionPainterPromiseCap.resolve(e._selectionPainter)}))),this._ensureSelectionPainterPromiseCap.promise},Object.defineProperty(e.prototype,"viewport",{get:function(){return this._viewport},set:function(e){this._viewport=e},enumerable:!1,configurable:!0}),e.prototype.setPageLabel=function(e){this.pageLabel="string"==typeof e?e:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")},Object.defineProperty(e.prototype,"textLayerCanvas",{get:function(){return this._textLayerCanvas},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"outputScale",{get:function(){return this._outputScale?this._outputScale:(0,g.getDisplayPixelRatio)()},enumerable:!1,configurable:!0}),e.prototype.calculateOutputScale=function(e){var t=this.viewport;if(!t)return this.outputScale;var n=this._canvas;if(!(e=e||(n?n.getContext("2d",{alpha:!1}):void 0)))return this.outputScale;var i=(0,l.getOutputScale)(e);if(this._outputScale=i,this.useOnlyCssZoom){var o=t.clone({scale:l.CSS_UNITS});i.sx*=o.width/t.width,i.sy*=o.height/t.height,i.scaled=!0}if(this.maxCanvasPixels>0){var r=t.width*t.height,a=Math.sqrt(this.maxCanvasPixels/r);i.sx>a||i.sy>a?(i.sx=a,i.sy=a,i.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}return i},Object.defineProperty(e.prototype,"paintElement",{get:function(){return this._canvas||this.svg},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalRotation",{get:function(){return(this.rotation+this.pdfPageRotate)%360},enumerable:!1,configurable:!0}),e.prototype.setPdfPage=function(e){this.pdfPage=e,this.pdfPageRotate=e.rotate,this.viewport=e.getViewport({scale:this.scale*l.CSS_UNITS,rotation:this.totalRotation}),this.stats=e.stats,this.reset()},e.prototype.destroy=function(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()},e.prototype._resetZoomLayer=function(e){if(void 0===e&&(e=!1),this.zoomLayer){var t=this.zoomLayerTarget;this.paintedViewportMap.delete(t),t&&(t.width=0,t.height=0),e&&this.zoomLayer.remove(),this.zoomLayer=null,this.zoomLayerTarget=null}},e.prototype.reset=function(e,t,n){var i;void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=!1),delete this._annotationsRenderedPromiseCap,this.cancelRendering(t,n);var o=this.div;o.style.width=Math.floor(this.viewport.width)+"px",o.style.height=Math.floor(this.viewport.height)+"px";for(var r=o.childNodes,a=e&&this.zoomLayer||null,s=t&&this.annotationLayer&&this.annotationLayer.div||null,c=n&&(null===(i=this.xfaLayer)||void 0===i?void 0:i.div)||null,l=r.length-1;l>=0;l--){var d=r[l];switch(d){case a:case s:case c:continue}o.removeChild(d)}o.removeAttribute("data-loaded"),s?this.annotationLayer&&this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),c&&this.xfaLayer&&this.xfaLayer.hide(),a||(this._canvas&&(this.paintedViewportMap.delete(this._canvas),this._canvas.width=0,this._canvas.height=0,delete this._canvas,this._textLayerCanvas&&(this._textLayerCanvas.width=0,this._textLayerCanvas.height=0,delete this._textLayerCanvas)),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg)},e.prototype.update=function(e,t){if(void 0===e&&(e=null),void 0===t&&(t=null),this.scale=e||this.scale,this.rotation=null!==t&&isFinite(t)?t:this.rotation,this.viewport=this.viewport.clone({scale:this.scale*l.CSS_UNITS,rotation:this.totalRotation}),this.svg)return this.cssTransform(this.svg,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0});var n=!1;if(this._canvas&&this.maxCanvasPixels>0){var i=this.outputScale;(Math.floor(this.viewport.width)*i.sx|0)*(Math.floor(this.viewport.height)*i.sy|0)>this.maxCanvasPixels&&(n=!0)}if(this._canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&n)return this.cssTransform(this._canvas,!0),void this.pdfViewer.serviceProvider.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0});this.zoomLayer||this._canvas.hasAttribute("hidden")||(this.zoomLayer=this._canvas.parentNode,this.zoomLayerTarget=this._canvas,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayerTarget),this.reset(!0,!0)},e.prototype.cancelRendering=function(e,t){var n;void 0===e&&(e=!1),void 0===t&&(t=!1);var i=this.renderingState;this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.renderingState=l.RenderingStates.INITIAL,this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null,this._textLayerCanvas&&(this._textLayerCanvas.width=0,this._textLayerCanvas.height=0,delete this._textLayerCanvas)),this._selectionPainter&&(this._selectionPainter.cancel(),delete this._selectionPainter),!e&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null,this._cleanupAppearanceOps()),!this.xfaLayer||t&&this.xfaLayer.div||(this.xfaLayer.cancel(),this.xfaLayer=null,null===(n=this.textHighlighter)||void 0===n||n.disable()),i!==l.RenderingStates.INITIAL&&this.eventBus.dispatch("pagecancelled",{source:this,pageNumber:this.id,renderingState:i})},e.prototype.cssTransform=function(e,t,n){var i=this;void 0===t&&(t=!1),void 0===n&&(n=!1);try{this.viewport;var o=this.viewport.width,r=this.viewport.height,a=this.div;e.style.width=e.parentNode.style.width=a.style.width=Math.floor(o)+"px",e.style.height=e.parentNode.style.height=a.style.height=Math.floor(r)+"px",this._textLayerCanvas&&(this._textLayerCanvas.style.width=e.style.width,this._textLayerCanvas.style.height=e.style.height);var s=0;this.paintedViewportMap.get(e)&&(s=this.paintedViewportMap.get(e).rotation);var c=this.viewport.rotation-s,l=Math.abs(c),d=1,u=1;90!==l&&270!==l||(d=r/o,u=o/r);var g="rotate("+c+"deg) scale("+d+","+u+")";if(e.style.transform=g,this._textLayerCanvas&&(this._textLayerCanvas.style.transform=g),this.textLayer){var p=this.textLayer.viewport,h=this.viewport.rotation-p.rotation,f=Math.abs(h),m=o/p.width;90!==f&&270!==f||(m=o/p.height);var b=this.textLayer.textLayerDiv,v=void 0,_=void 0;switch(f){case 0:v=_=0;break;case 90:v=0,_="-"+b.style.height;break;case 180:v="-"+b.style.width,_="-"+b.style.height;break;case 270:v="-"+b.style.width,_=0}b.style.transform="rotate("+f+"deg) scale("+m+", "+m+") translate("+v+", "+_+")",b.style.transformOrigin="0% 0%"}this.annotationLayer&&(t?this.annotationLayer.render(this.pagesLoader,this.viewport,"display").then((function(){i.onAnnotationLayerRendered()})):this.onAnnotationLayerRendered()),n&&this.xfaLayer&&this._renderXfaLayer()}catch(t){}},e.prototype.repaintTextLayer=function(){var e,t,n=(null===(e=this.pagesLoader._selectionWorker)||void 0===e?void 0:e.getRepaintParams(this.pageIndex))||{cleared:!0,caretPosition:null,start:null,end:null,version:0};null===(t=this.selectionPainter)||void 0===t||t.repaint(n,!0)},e.prototype.renderAnnotationLayer=function(){var e,t,n=this;if(this._annotationLayerDirty=!1,this.annotationLayerFactory){if(!this.annotationLayer){var i=!!this.pdfViewer.disableFeaturesHash.JavaScript,o=null===(e=this.pdfViewer.pdfDocument)||void 0===e?void 0:e.hasJSActions(),r=this.pdfViewer.getFieldObjects(),a=null===(t=this.pdfViewer._scriptingManager)||void 0===t?void 0:t.mouseState;this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(this.div,this.pdfPage,this.imagesPath,this.renderInteractiveForms,this.l10n,this.pdfViewer.serviceProvider.linkService,this.pdfViewer.serviceProvider.downloadManager,i,o,r,a)}this.annotationLayer.render(this.pagesLoader,this.viewport,"display").then((function(){n.onAnnotationLayerRendered()}))}},Object.defineProperty(e.prototype,"elementOuter",{get:function(){return this.div},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.viewport?this.viewport.width:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.viewport?this.viewport.height:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"imagesPath",{get:function(){return this._options.imagesPath||""},enumerable:!1,configurable:!0}),e.prototype.getPagePoint=function(e,t){return this.viewport.convertToPdfPoint(e,t)},Object.defineProperty(e.prototype,"renderingState",{get:function(){return this._renderingState},set:function(e){this._renderingState!==l.RenderingStates.RUNNING&&l.RenderingStates.FINISHED,this._renderingState=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionPainter",{get:function(){return this._selectionPainter},enumerable:!1,configurable:!0}),e.prototype.applyRedactedRegions=function(){this.annotationLayer&&this.annotationLayer.div&&u.GcAnnotationLayerHelper.applyRedactedRegions(this.annotationLayer.div)},e.prototype.onAnnotationLayerRendered=function(){if(this.annotationLayer){try{var e=this.annotationLayer.div;this.applyRedactedRegions(),u.GcAnnotationLayerHelper.arangeOverlappedTextAnnotations(e,this.rotation);var t=this.pdfViewer.currentArticleObjId;t&&u.GcAnnotationLayerHelper.setCurrentArticle(e,t);var n=this.pagesLoader.restrictions;if(e&&n)if(n.fillingOfFormFields)e.classList.remove("gc-form-fill-disabled");else{e.classList.add("gc-form-fill-disabled");for(var i=e.querySelectorAll("section input, section button, section textarea, section select"),o=0;o<i.length;o++){var r=i[o];"INPUT"===r.tagName?(r.readOnly=!0,r.setAttribute("disabled","true"),r.title||(r.title="Document's security permissions does not allow form fields filling.")):"BUTTON"===r.tagName?"reset"===r.type&&(r.setAttribute("disabled","true"),r.title||(r.title="Document's security permissions does not allow reset form fields.")):(r.setAttribute("disabled","true"),r.title||(r.title="Document's security permissions does not allow form fields filling."))}}}finally{this._annotationsRenderedPromiseCap||(this._annotationsRenderedPromiseCap=l.SharedUtils.createPromiseCapability()),this._annotationsRenderedPromiseCap.resolve()}this.ensureAnnotationAppearance()}else this._annotationsRenderedPromiseCap||(this._annotationsRenderedPromiseCap=l.SharedUtils.createPromiseCapability()),this._annotationsRenderedPromiseCap.resolve()},e.prototype.textLayerReadyPromise=function(){return this._textLayerReadyPromiseCap||(this._textLayerReadyPromiseCap=l.SharedUtils.createPromiseCapability()),this._textLayerReadyPromiseCap.promise},e.prototype.waitRenderingStateFinished=function(e,t){return void 0===e&&(e=3e3),void 0===t&&(t=200),i(this,void 0,void 0,(function(){var n;return o(this,(function(i){switch(i.label){case 0:n=(new Date).getTime(),i.label=1;case 1:return this.renderingState!==l.RenderingStates.FINISHED&&(new Date).getTime()-n<e?[4,new Promise((function(e){setTimeout((function(){return e()}),t)}))]:[3,3];case 2:return i.sent(),[3,1];case 3:return[2,this.renderingState===l.RenderingStates.FINISHED]}}))}))},e.prototype.getMarkedTextRect=function(e){var t;return(null===(t=this.textLayer)||void 0===t?void 0:t.canvasTextBounds.filter((function(t){return t.markedId===e})))||[]},e.prototype._renderXfaLayer=function(){return i(this,void 0,void 0,(function(){var e,t;return o(this,(function(n){switch(n.label){case 0:e=null,n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.xfaLayer.render(this.viewport,"display")];case 2:return n.sent(),[3,5];case 3:return t=n.sent(),e=t,[3,5];case 4:return this.eventBus.dispatch("xfalayerrendered",{source:this,pageNumber:this.id,error:e}),[7];case 5:return[2]}}))}))},e.prototype._buildXfaTextContentItems=function(e){return i(this,void 0,void 0,(function(){var e,t,n,i,r;return o(this,(function(o){switch(o.label){case 0:return[4,this.pdfPage.getTextContent()];case 1:for(e