ngx-extended-pdf-viewer
Version:
Embedding PDF files in your Angular application. Highly configurable viewer including the toolbar, sidebar, and all the features you're used to.
23 lines • 430 kB
JavaScript
window.ngxZone.runOutsideAngular(() => {
/**
* @licstart The following is the entire license notice for the
* JavaScript code in this page
*
* Copyright 2022 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @licend The above is the entire license notice for the
* JavaScript code in this page
*/
!function webpackUniversalModuleDefinition(t,e){"object"==typeof exports&&"object"==typeof module?globalThis["pdfjs-dist/build/pdf"]=module.exports=e():"function"==typeof define&&define.amd?(globalThis["pdfjs-dist/build/pdf"]=globalThis.pdfjsLib=e()||define("pdfjs-dist/build/pdf",[],e)):"object"==typeof exports?globalThis["pdfjs-dist/build/pdf"]=exports["pdfjs-dist/build/pdf"]=e():t["pdfjs-dist/build/pdf"]=t.pdfjsLib=e()}(globalThis,(()=>(()=>{var __webpack_modules__=[,(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.VerbosityLevel=e.Util=e.UnknownErrorException=e.UnexpectedResponseException=e.UNSUPPORTED_FEATURES=e.TextRenderingMode=e.StreamType=e.RenderingIntentFlag=e.PermissionFlag=e.PasswordResponses=e.PasswordException=e.PageActionEventType=e.OPS=e.MissingPDFException=e.LINE_FACTOR=e.LINE_DESCENT_FACTOR=e.InvalidPDFException=e.ImageKind=e.IDENTITY_MATRIX=e.FormatError=e.FontType=e.FeatureTest=e.FONT_IDENTITY_MATRIX=e.DocumentActionEventType=e.CMapCompressionType=e.BaseException=e.AnnotationType=e.AnnotationStateModelType=e.AnnotationReviewState=e.AnnotationReplyType=e.AnnotationMode=e.AnnotationMarkedState=e.AnnotationFlag=e.AnnotationFieldFlag=e.AnnotationEditorType=e.AnnotationEditorPrefix=e.AnnotationEditorParamsType=e.AnnotationBorderStyleType=e.AnnotationActionEventType=e.AbortException=void 0;e.arrayByteLength=arrayByteLength;e.arraysToBytes=function arraysToBytes(t){const e=t.length;if(1===e&&t[0]instanceof Uint8Array)return t[0];let r=0;for(let i=0;i<e;i++)r+=arrayByteLength(t[i]);let i=0;const n=new Uint8Array(r);for(let r=0;r<e;r++){let e=t[r];e instanceof Uint8Array||(e="string"==typeof e?stringToBytes(e):new Uint8Array(e));const a=e.byteLength;n.set(e,i);i+=a}return n};e.assert=function assert(t,e){t||unreachable(e)};e.bytesToString=function bytesToString(t){"object"==typeof t&&null!==t&&void 0!==t.length||unreachable("Invalid argument for bytesToString");const e=t.length,r=8192;if(e<r)return String.fromCharCode.apply(null,t);const i=[];for(let n=0;n<e;n+=r){const a=Math.min(n+r,e),s=t.subarray(n,a);i.push(String.fromCharCode.apply(null,s))}return i.join("")};e.createPromiseCapability=function createPromiseCapability(){const t=Object.create(null);let e=!1;Object.defineProperty(t,"settled",{get:()=>e});t.promise=new Promise((function(r,i){t.resolve=function(t){e=!0;r(t)};t.reject=function(t){e=!0;i(t)}}));return t};e.createValidAbsoluteUrl=function createValidAbsoluteUrl(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return null;try{if(r&&"string"==typeof t){if(r.addDefaultProtocol&&t.startsWith("www.")){const e=t.match(/\./g);e&&e.length>=2&&(t="http://".concat(t))}if(r.tryConvertEncoding)try{t=stringToUTF8String(t)}catch(t){}}const i=e?new URL(t,e):new URL(t);if(_isValidProtocol(i))return i}catch(t){}return null};e.escapeString=function escapeString(t){return t.replace(/([()\\\n\r])/g,(t=>"\n"===t?"\\n":"\r"===t?"\\r":"\\".concat(t)))};e.getModificationDate=function getModificationDate(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;const e=[t.getUTCFullYear().toString(),(t.getUTCMonth()+1).toString().padStart(2,"0"),t.getUTCDate().toString().padStart(2,"0"),t.getUTCHours().toString().padStart(2,"0"),t.getUTCMinutes().toString().padStart(2,"0"),t.getUTCSeconds().toString().padStart(2,"0")];return e.join("")};e.getVerbosityLevel=function getVerbosityLevel(){return n};e.info=function info(t){n>=i.INFOS&&("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?console.log("Info: ".concat(t)):Window&&Window.ngxConsole?Window.ngxConsole.log("Info: ".concat(t)):console.log("Info: ".concat(t)))};e.isArrayBuffer=function isArrayBuffer(t){return"object"==typeof t&&null!==t&&void 0!==t.byteLength};e.isArrayEqual=function isArrayEqual(t,e){if(t.length!==e.length)return!1;for(let r=0,i=t.length;r<i;r++)if(t[r]!==e[r])return!1;return!0};e.isAscii=function isAscii(t){return/^[\x00-\x7F]*$/.test(t)};e.objectFromMap=function objectFromMap(t){const e=Object.create(null);for(const[r,i]of t)e[r]=i;return e};e.objectSize=function objectSize(t){return Object.keys(t).length};e.setVerbosityLevel=function setVerbosityLevel(t){Number.isInteger(t)&&(n=t)};e.shadow=shadow;e.string32=function string32(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)};e.stringToBytes=stringToBytes;e.stringToPDFString=function stringToPDFString(t){if(t[0]>="ï"){let e;"þ"===t[0]&&"ÿ"===t[1]?e="utf-16be":"ÿ"===t[0]&&"þ"===t[1]?e="utf-16le":"ï"===t[0]&&"»"===t[1]&&"¿"===t[2]&&(e="utf-8");if(e)try{const r=new TextDecoder(e,{fatal:!0}),i=stringToBytes(t);return r.decode(i)}catch(t){warn('stringToPDFString: "'.concat(t,'".'))}}const e=[];for(let r=0,i=t.length;r<i;r++){const i=o[t.charCodeAt(r)];e.push(i?String.fromCharCode(i):t.charAt(r))}return e.join("")};e.stringToUTF16BEString=function stringToUTF16BEString(t){const e=["þÿ"];for(let r=0,i=t.length;r<i;r++){const i=t.charCodeAt(r);e.push(String.fromCharCode(i>>8&255),String.fromCharCode(255&i))}return e.join("")};e.stringToUTF8String=stringToUTF8String;e.unreachable=unreachable;e.utf8StringToString=function utf8StringToString(t){return unescape(encodeURIComponent(t))};e.warn=warn;r(2);r(79);r(93);r(116);r(117);r(138);r(140);r(141);r(145);r(146);r(152);r(178);e.IDENTITY_MATRIX=[1,0,0,1,0,0];e.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];e.LINE_FACTOR=1.35;e.LINE_DESCENT_FACTOR=.35;e.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};e.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};e.AnnotationEditorPrefix="pdfjs_internal_editor_";e.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};e.AnnotationEditorParamsType={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};e.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};e.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};e.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};e.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};e.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"};e.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};e.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};e.AnnotationReplyType={GROUP:"Group",REPLY:"R"};e.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};e.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};e.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};e.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};e.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};e.PageActionEventType={O:"PageOpen",C:"PageClose"};e.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};e.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const i={ERRORS:0,WARNINGS:1,INFOS:5};e.VerbosityLevel=i;e.CMapCompressionType={NONE:0,BINARY:1,STREAM:2};e.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};e.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"};e.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let n=i.WARNINGS;function warn(t){n>=i.WARNINGS&&("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?console.log("Warning: ".concat(t)):Window&&Window.ngxConsole?Window.ngxConsole.log("Warning: ".concat(t)):console.log("Warning: ".concat(t)))}function unreachable(t){throw new Error(t)}function _isValidProtocol(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":case"capacitor":return!0;default:return!1}}function shadow(t,e,r){Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!1});return r}const a=function BaseExceptionClosure(){function BaseException(t,e){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=t;this.name=e}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();e.BaseException=a;e.PasswordException=class PasswordException extends a{constructor(t,e){super(t,"PasswordException");this.code=e}};e.UnknownErrorException=class UnknownErrorException extends a{constructor(t,e){super(t,"UnknownErrorException");this.details=e}};e.InvalidPDFException=class InvalidPDFException extends a{constructor(t){super(t,"InvalidPDFException")}};e.MissingPDFException=class MissingPDFException extends a{constructor(t){super(t,"MissingPDFException")}};e.UnexpectedResponseException=class UnexpectedResponseException extends a{constructor(t,e){super(t,"UnexpectedResponseException");this.status=e}};e.FormatError=class FormatError extends a{constructor(t){super(t,"FormatError")}};e.AbortException=class AbortException extends a{constructor(t){super(t,"AbortException")}};function stringToBytes(t){"string"!=typeof t&&unreachable("Invalid argument for stringToBytes");const e=t.length,r=new Uint8Array(e);for(let i=0;i<e;++i)r[i]=255&t.charCodeAt(i);return r}function arrayByteLength(t){if(void 0!==t.length)return t.length;if(void 0!==t.byteLength)return t.byteLength;unreachable("Invalid argument for arrayByteLength")}e.FeatureTest=class FeatureTest{static get isLittleEndian(){return shadow(this,"isLittleEndian",function isLittleEndian(){const t=new Uint8Array(4);t[0]=1;return 1===new Uint32Array(t.buffer,0,1)[0]}())}static get isEvalSupported(){return shadow(this,"isEvalSupported",function isEvalSupported(){try{new Function("");return!0}catch(t){return!1}}())}static get isOffscreenCanvasSupported(){return shadow(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}};const s=[...Array(256).keys()].map((t=>t.toString(16).padStart(2,"0")));class Util{static makeHexColor(t,e,r){return"#".concat(s[t]).concat(s[e]).concat(s[r])}static scaleMinMax(t,e){let r;if(t[0]){if(t[0]<0){r=e[0];e[0]=e[1];e[1]=r}e[0]*=t[0];e[1]*=t[0];if(t[3]<0){r=e[2];e[2]=e[3];e[3]=r}e[2]*=t[3];e[3]*=t[3]}else{r=e[0];e[0]=e[2];e[2]=r;r=e[1];e[1]=e[3];e[3]=r;if(t[1]<0){r=e[2];e[2]=e[3];e[3]=r}e[2]*=t[1];e[3]*=t[1];if(t[2]<0){r=e[0];e[0]=e[1];e[1]=r}e[0]*=t[2];e[1]*=t[2]}e[0]+=t[4];e[1]+=t[4];e[2]+=t[5];e[3]+=t[5]}static transform(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}static applyTransform(t,e){return[t[0]*e[0]+t[1]*e[2]+e[4],t[0]*e[1]+t[1]*e[3]+e[5]]}static applyInverseTransform(t,e){const r=e[0]*e[3]-e[1]*e[2];return[(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])/r,(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/r]}static getAxialAlignedBoundingBox(t,e){const r=Util.applyTransform(t,e),i=Util.applyTransform(t.slice(2,4),e),n=Util.applyTransform([t[0],t[3]],e),a=Util.applyTransform([t[2],t[1]],e);return[Math.min(r[0],i[0],n[0],a[0]),Math.min(r[1],i[1],n[1],a[1]),Math.max(r[0],i[0],n[0],a[0]),Math.max(r[1],i[1],n[1],a[1])]}static inverseTransform(t){const e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}static apply3dTransform(t,e){return[t[0]*e[0]+t[1]*e[1]+t[2]*e[2],t[3]*e[0]+t[4]*e[1]+t[5]*e[2],t[6]*e[0]+t[7]*e[1]+t[8]*e[2]]}static singularValueDecompose2dScale(t){const e=[t[0],t[2],t[1],t[3]],r=t[0]*e[0]+t[1]*e[2],i=t[0]*e[1]+t[1]*e[3],n=t[2]*e[0]+t[3]*e[2],a=t[2]*e[1]+t[3]*e[3],s=(r+a)/2,o=Math.sqrt((r+a)**2-4*(r*a-n*i))/2,l=s+o||1,c=s-o||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(t){const e=t.slice(0);if(t[0]>t[2]){e[0]=t[2];e[2]=t[0]}if(t[1]>t[3]){e[1]=t[3];e[3]=t[1]}return e}static intersect(t,e){const r=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2])),i=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(r>i)return null;const n=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3])),a=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));return n>a?null:[r,n,i,a]}static bezierBoundingBox(t,e,r,i,n,a,s,o){const l=[],c=[[],[]];let h,d,u,p,f,g,v,m;for(let c=0;c<2;++c){if(0===c){d=6*t-12*r+6*n;h=-3*t+9*r-9*n+3*s;u=3*r-3*t}else{d=6*e-12*i+6*a;h=-3*e+9*i-9*a+3*o;u=3*i-3*e}if(Math.abs(h)<1e-12){if(Math.abs(d)<1e-12)continue;p=-u/d;0<p&&p<1&&l.push(p)}else{v=d*d-4*u*h;m=Math.sqrt(v);if(!(v<0)){f=(-d+m)/(2*h);0<f&&f<1&&l.push(f);g=(-d-m)/(2*h);0<g&&g<1&&l.push(g)}}}let _,y=l.length;const b=y;for(;y--;){p=l[y];_=1-p;c[0][y]=_*_*_*t+3*_*_*p*r+3*_*p*p*n+p*p*p*s;c[1][y]=_*_*_*e+3*_*_*p*i+3*_*p*p*a+p*p*p*o}c[0][b]=t;c[1][b]=e;c[0][b+1]=s;c[1][b+1]=o;c[0].length=c[1].length=b+2;return[Math.min(...c[0]),Math.min(...c[1]),Math.max(...c[0]),Math.max(...c[1])]}}e.Util=Util;const o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function stringToUTF8String(t){return decodeURIComponent(escape(t))}},(t,e,r)=>{"use strict";var i=r(3),n=r(67);i({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},(t,e,r)=>{var i=r(4),n=r(5).f,a=r(42),s=r(46),o=r(36),l=r(54),c=r(66);t.exports=function(t,e){var r,h,d,u,p,f=t.target,g=t.global,v=t.stat;if(r=g?i:v?i[f]||o(f,{}):(i[f]||{}).prototype)for(h in e){u=e[h];d=t.dontCallGetSet?(p=n(r,h))&&p.value:r[h];if(!c(g?h:f+(v?".":"#")+h,t.forced)&&void 0!==d){if(typeof u==typeof d)continue;l(u,d)}(t.sham||d&&d.sham)&&a(u,"sham",!0);s(r,h,u,t)}}},t=>{var check=function(t){return t&&t.Math==Math&&t};t.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof global&&global)||function(){return this}()||Function("return this")()},(t,e,r)=>{var i=r(6),n=r(8),a=r(10),s=r(11),o=r(12),l=r(17),c=r(37),h=r(40),d=Object.getOwnPropertyDescriptor;e.f=i?d:function getOwnPropertyDescriptor(t,e){t=o(t);e=l(e);if(h)try{return d(t,e)}catch(t){}if(c(t,e))return s(!n(a.f,t,e),t[e])}},(t,e,r)=>{var i=r(7);t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},(t,e,r)=>{var i=r(9),n=Function.prototype.call;t.exports=i?n.bind(n):function(){return n.apply(n,arguments)}},(t,e,r)=>{var i=r(7);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},(t,e)=>{"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,n=i&&!r.call({1:2},1);e.f=n?function propertyIsEnumerable(t){var e=i(this,t);return!!e&&e.enumerable}:r},t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},(t,e,r)=>{var i=r(13),n=r(16);t.exports=function(t){return i(n(t))}},(t,e,r)=>{var i=r(14),n=r(7),a=r(15),s=Object,o=i("".split);t.exports=n((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?o(t,""):s(t)}:s},(t,e,r)=>{var i=r(9),n=Function.prototype,a=n.bind,s=n.call,o=i&&a.bind(s,s);t.exports=i?function(t){return t&&o(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},(t,e,r)=>{var i=r(14),n=i({}.toString),a=i("".slice);t.exports=function(t){return a(n(t),8,-1)}},t=>{var e=TypeError;t.exports=function(t){if(null==t)throw e("Can't call method on "+t);return t}},(t,e,r)=>{var i=r(18),n=r(21);t.exports=function(t){var e=i(t,"string");return n(e)?e:e+""}},(t,e,r)=>{var i=r(8),n=r(19),a=r(21),s=r(28),o=r(31),l=r(32),c=TypeError,h=l("toPrimitive");t.exports=function(t,e){if(!n(t)||a(t))return t;var r,l=s(t,h);if(l){void 0===e&&(e="default");r=i(l,t,e);if(!n(r)||a(r))return r;throw c("Can't convert object to primitive value")}void 0===e&&(e="number");return o(t,e)}},(t,e,r)=>{var i=r(20);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},t=>{t.exports=function(t){return"function"==typeof t}},(t,e,r)=>{var i=r(22),n=r(20),a=r(23),s=r(24),o=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return n(e)&&a(e.prototype,o(t))}},(t,e,r)=>{var i=r(4),n=r(20),aFunction=function(t){return n(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?aFunction(i[t]):i[t]&&i[t][e]}},(t,e,r)=>{var i=r(14);t.exports=i({}.isPrototypeOf)},(t,e,r)=>{var i=r(25);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(t,e,r)=>{var i=r(26),n=r(7);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},(t,e,r)=>{var i,n,a=r(4),s=r(27),o=a.process,l=a.Deno,c=o&&o.versions||l&&l.version,h=c&&c.v8;h&&(n=(i=h.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1]));!n&&s&&(!(i=s.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/))&&(n=+i[1]);t.exports=n},(t,e,r)=>{var i=r(22);t.exports=i("navigator","userAgent")||""},(t,e,r)=>{var i=r(29);t.exports=function(t,e){var r=t[e];return null==r?void 0:i(r)}},(t,e,r)=>{var i=r(20),n=r(30),a=TypeError;t.exports=function(t){if(i(t))return t;throw a(n(t)+" is not a function")}},t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},(t,e,r)=>{var i=r(8),n=r(20),a=r(19),s=TypeError;t.exports=function(t,e){var r,o;if("string"===e&&n(r=t.toString)&&!a(o=i(r,t)))return o;if(n(r=t.valueOf)&&!a(o=i(r,t)))return o;if("string"!==e&&n(r=t.toString)&&!a(o=i(r,t)))return o;throw s("Can't convert object to primitive value")}},(t,e,r)=>{var i=r(4),n=r(33),a=r(37),s=r(39),o=r(25),l=r(24),c=n("wks"),h=i.Symbol,d=h&&h.for,u=l?h:h&&h.withoutSetter||s;t.exports=function(t){if(!a(c,t)||!o&&"string"!=typeof c[t]){var e="Symbol."+t;o&&a(h,t)?c[t]=h[t]:c[t]=l&&d?d(e):u(e)}return c[t]}},(t,e,r)=>{var i=r(34),n=r(35);(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.24.1",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},t=>{t.exports=!1},(t,e,r)=>{var i=r(4),n=r(36),a="__core-js_shared__",s=i[a]||n(a,{});t.exports=s},(t,e,r)=>{var i=r(4),n=Object.defineProperty;t.exports=function(t,e){try{n(i,t,{value:e,configurable:!0,writable:!0})}catch(r){i[t]=e}return e}},(t,e,r)=>{var i=r(14),n=r(38),a=i({}.hasOwnProperty);t.exports=Object.hasOwn||function hasOwn(t,e){return a(n(t),e)}},(t,e,r)=>{var i=r(16),n=Object;t.exports=function(t){return n(i(t))}},(t,e,r)=>{var i=r(14),n=0,a=Math.random(),s=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++n+a,36)}},(t,e,r)=>{var i=r(6),n=r(7),a=r(41);t.exports=!i&&!n((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},(t,e,r)=>{var i=r(4),n=r(19),a=i.document,s=n(a)&&n(a.createElement);t.exports=function(t){return s?a.createElement(t):{}}},(t,e,r)=>{var i=r(6),n=r(43),a=r(11);t.exports=i?function(t,e,r){return n.f(t,e,a(1,r))}:function(t,e,r){t[e]=r;return t}},(t,e,r)=>{var i=r(6),n=r(40),a=r(44),s=r(45),o=r(17),l=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,d="enumerable",u="configurable",p="writable";e.f=i?a?function defineProperty(t,e,r){s(t);e=o(e);s(r);if("function"==typeof t&&"prototype"===e&&"value"in r&&p in r&&!r.writable){var i=h(t,e);if(i&&i.writable){t[e]=r.value;r={configurable:u in r?r.configurable:i.configurable,enumerable:d in r?r.enumerable:i.enumerable,writable:!1}}}return c(t,e,r)}:c:function defineProperty(t,e,r){s(t);e=o(e);s(r);if(n)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw l("Accessors not supported");"value"in r&&(t[e]=r.value);return t}},(t,e,r)=>{var i=r(6),n=r(7);t.exports=i&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},(t,e,r)=>{var i=r(19),n=String,a=TypeError;t.exports=function(t){if(i(t))return t;throw a(n(t)+" is not an object")}},(t,e,r)=>{var i=r(20),n=r(43),a=r(47),s=r(36);t.exports=function(t,e,r,o){o||(o={});var l=o.enumerable,c=void 0!==o.name?o.name:e;i(r)&&a(r,c,o);if(o.global)l?t[e]=r:s(e,r);else{try{o.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=r:n.f(t,e,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return t}},(t,e,r)=>{var i=r(7),n=r(20),a=r(37),s=r(6),o=r(48).CONFIGURABLE,l=r(49),c=r(50),h=c.enforce,d=c.get,u=Object.defineProperty,p=s&&!i((function(){return 8!==u((function(){}),"length",{value:8}).length})),f=String(String).split("String"),g=t.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]");r&&r.getter&&(e="get "+e);r&&r.setter&&(e="set "+e);(!a(t,"name")||o&&t.name!==e)&&(s?u(t,"name",{value:e,configurable:!0}):t.name=e);p&&r&&a(r,"arity")&&t.length!==r.arity&&u(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&u(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=h(t);a(i,"source")||(i.source=f.join("string"==typeof e?e:""));return t};Function.prototype.toString=g((function toString(){return n(this)&&d(this).source||l(this)}),"toString")},(t,e,r)=>{var i=r(6),n=r(37),a=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,o=n(a,"name"),l=o&&"something"===function something(){}.name,c=o&&(!i||i&&s(a,"name").configurable);t.exports={EXISTS:o,PROPER:l,CONFIGURABLE:c}},(t,e,r)=>{var i=r(14),n=r(20),a=r(35),s=i(Function.toString);n(a.inspectSource)||(a.inspectSource=function(t){return s(t)});t.exports=a.inspectSource},(t,e,r)=>{var i,n,a,s=r(51),o=r(4),l=r(14),c=r(19),h=r(42),d=r(37),u=r(35),p=r(52),f=r(53),g="Object already initialized",v=o.TypeError,m=o.WeakMap;if(s||u.state){var _=u.state||(u.state=new m),y=l(_.get),b=l(_.has),A=l(_.set);i=function(t,e){if(b(_,t))throw new v(g);e.facade=t;A(_,t,e);return e};n=function(t){return y(_,t)||{}};a=function(t){return b(_,t)}}else{var P=p("state");f[P]=!0;i=function(t,e){if(d(t,P))throw new v(g);e.facade=t;h(t,P,e);return e};n=function(t){return d(t,P)?t[P]:{}};a=function(t){return d(t,P)}}t.exports={set:i,get:n,has:a,enforce:function(t){return a(t)?n(t):i(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=n(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return r}}}},(t,e,r)=>{var i=r(4),n=r(20),a=r(49),s=i.WeakMap;t.exports=n(s)&&/native code/.test(a(s))},(t,e,r)=>{var i=r(33),n=r(39),a=i("keys");t.exports=function(t){return a[t]||(a[t]=n(t))}},t=>{t.exports={}},(t,e,r)=>{var i=r(37),n=r(55),a=r(5),s=r(43);t.exports=function(t,e,r){for(var o=n(e),l=s.f,c=a.f,h=0;h<o.length;h++){var d=o[h];i(t,d)||r&&i(r,d)||l(t,d,c(e,d))}}},(t,e,r)=>{var i=r(22),n=r(14),a=r(56),s=r(65),o=r(45),l=n([].concat);t.exports=i("Reflect","ownKeys")||function ownKeys(t){var e=a.f(o(t)),r=s.f;return r?l(e,r(t)):e}},(t,e,r)=>{var i=r(57),n=r(64).concat("length","prototype");e.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return i(t,n)}},(t,e,r)=>{var i=r(14),n=r(37),a=r(12),s=r(58).indexOf,o=r(53),l=i([].push);t.exports=function(t,e){var r,i=a(t),c=0,h=[];for(r in i)!n(o,r)&&n(i,r)&&l(h,r);for(;e.length>c;)n(i,r=e[c++])&&(~s(h,r)||l(h,r));return h}},(t,e,r)=>{var i=r(12),n=r(59),a=r(62),createMethod=function(t){return function(e,r,s){var o,l=i(e),c=a(l),h=n(s,c);if(t&&r!=r){for(;c>h;)if((o=l[h++])!=o)return!0}else for(;c>h;h++)if((t||h in l)&&l[h]===r)return t||h||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(t,e,r)=>{var i=r(60),n=Math.max,a=Math.min;t.exports=function(t,e){var r=i(t);return r<0?n(r+e,0):a(r,e)}},(t,e,r)=>{var i=r(61);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function trunc(t){var i=+t;return(i>0?r:e)(i)}},(t,e,r)=>{var i=r(63);t.exports=function(t){return i(t.length)}},(t,e,r)=>{var i=r(60),n=Math.min;t.exports=function(t){return t>0?n(i(t),9007199254740991):0}},t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(t,e)=>{e.f=Object.getOwnPropertySymbols},(t,e,r)=>{var i=r(7),n=r(20),a=/#|\.prototype\./,isForced=function(t,e){var r=o[s(t)];return r==c||r!=l&&(n(e)?i(e):!!e)},s=isForced.normalize=function(t){return String(t).replace(a,".").toLowerCase()},o=isForced.data={},l=isForced.NATIVE="N",c=isForced.POLYFILL="P";t.exports=isForced},(t,e,r)=>{"use strict";var i=r(8),n=r(14),a=r(68),s=r(71),o=r(72),l=r(33),c=r(73),h=r(50).get,d=r(77),u=r(78),p=l("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,g=f,v=n("".charAt),m=n("".indexOf),_=n("".replace),y=n("".slice),b=function(){var t=/a/,e=/b*/g;i(f,t,"a");i(f,e,"a");return 0!==t.lastIndex||0!==e.lastIndex}(),A=o.BROKEN_CARET,P=void 0!==/()??/.exec("")[1];(b||P||A||d||u)&&(g=function exec(t){var e,r,n,o,l,d,u,S=this,x=h(S),w=a(t),E=x.raw;if(E){E.lastIndex=S.lastIndex;e=i(g,E,w);S.lastIndex=E.lastIndex;return e}var k=x.groups,T=A&&S.sticky,C=i(s,S),M=S.source,R=0,I=w;if(T){C=_(C,"y","");-1===m(C,"g")&&(C+="g");I=y(w,S.lastIndex);if(S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==v(w,S.lastIndex-1))){M="(?: "+M+")";I=" "+I;R++}r=new RegExp("^(?:"+M+")",C)}P&&(r=new RegExp("^"+M+"$(?!\\s)",C));b&&(n=S.lastIndex);o=i(f,T?r:S,I);if(T)if(o){o.input=y(o.input,R);o[0]=y(o[0],R);o.index=S.lastIndex;S.lastIndex+=o[0].length}else S.lastIndex=0;else b&&o&&(S.lastIndex=S.global?o.index+o[0].length:n);P&&o&&o.length>1&&i(p,o[0],r,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(o[l]=void 0)}));if(o&&k){o.groups=d=c(null);for(l=0;l<k.length;l++)d[(u=k[l])[0]]=o[u[1]]}return o});t.exports=g},(t,e,r)=>{var i=r(69),n=String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return n(t)}},(t,e,r)=>{var i=r(70),n=r(20),a=r(15),s=r(32)("toStringTag"),o=Object,l="Arguments"==a(function(){return arguments}());t.exports=i?a:function(t){var e,r,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=o(t),s))?r:l?a(e):"Object"==(i=a(e))&&n(e.callee)?"Arguments":i}},(t,e,r)=>{var i={};i[r(32)("toStringTag")]="z";t.exports="[object z]"===String(i)},(t,e,r)=>{"use strict";var i=r(45);t.exports=function(){var t=i(this),e="";t.hasIndices&&(e+="d");t.global&&(e+="g");t.ignoreCase&&(e+="i");t.multiline&&(e+="m");t.dotAll&&(e+="s");t.unicode&&(e+="u");t.unicodeSets&&(e+="v");t.sticky&&(e+="y");return e}},(t,e,r)=>{var i=r(7),n=r(4).RegExp,a=i((function(){var t=n("a","y");t.lastIndex=2;return null!=t.exec("abcd")})),s=a||i((function(){return!n("a","y").sticky})),o=a||i((function(){var t=n("^r","gy");t.lastIndex=2;return null!=t.exec("str")}));t.exports={BROKEN_CARET:o,MISSED_STICKY:s,UNSUPPORTED_Y:a}},(t,e,r)=>{var i,n=r(45),a=r(74),s=r(64),o=r(53),l=r(76),c=r(41),h=r(52),d=h("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<script>"+t+"</"+"script>"},NullProtoObjectViaActiveX=function(t){t.write(scriptTag(""));t.close();var e=t.parentWindow.Object;t=null;return e},NullProtoObject=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}NullProtoObject="undefined"!=typeof document?document.domain&&i?NullProtoObjectViaActiveX(i):function(){var t,e=c("iframe");e.style.display="none";l.appendChild(e);e.src=String("javascript:");(t=e.contentWindow.document).open();t.write(scriptTag("document.F=Object"));t.close();return t.F}():NullProtoObjectViaActiveX(i);for(var t=s.length;t--;)delete NullProtoObject.prototype[s[t]];return NullProtoObject()};o[d]=!0;t.exports=Object.create||function create(t,e){var r;if(null!==t){EmptyConstructor.prototype=n(t);r=new EmptyConstructor;EmptyConstructor.prototype=null;r[d]=t}else r=NullProtoObject();return void 0===e?r:a.f(r,e)}},(t,e,r)=>{var i=r(6),n=r(44),a=r(43),s=r(45),o=r(12),l=r(75);e.f=i&&!n?Object.defineProperties:function defineProperties(t,e){s(t);for(var r,i=o(e),n=l(e),c=n.length,h=0;c>h;)a.f(t,r=n[h++],i[r]);return t}},(t,e,r)=>{var i=r(57),n=r(64);t.exports=Object.keys||function keys(t){return i(t,n)}},(t,e,r)=>{var i=r(22);t.exports=i("document","documentElement")},(t,e,r)=>{var i=r(7),n=r(4).RegExp;t.exports=i((function(){var t=n(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},(t,e,r)=>{var i=r(7),n=r(4).RegExp;t.exports=i((function(){var t=n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},(t,e,r)=>{var i=r(4),n=r(80),a=r(81),s=r(82),o=r(42),l=r(32),c=l("iterator"),h=l("toStringTag"),d=s.values,handlePrototype=function(t,e){if(t){if(t[c]!==d)try{o(t,c,d)}catch(e){t[c]=d}t[h]||o(t,h,e);if(n[e])for(var r in s)if(t[r]!==s[r])try{o(t,r,s[r])}catch(e){t[r]=s[r]}}};for(var u in n)handlePrototype(i[u]&&i[u].prototype,u);handlePrototype(a,"DOMTokenList")},t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},(t,e,r)=>{var i=r(41)("span").classList,n=i&&i.constructor&&i.constructor.prototype;t.exports=n===Object.prototype?void 0:n},(t,e,r)=>{"use strict";var i=r(12),n=r(83),a=r(84),s=r(50),o=r(43).f,l=r(85),c=r(34),h=r(6),d="Array Iterator",u=s.set,p=s.getterFor(d);t.exports=l(Array,"Array",(function(t,e){u(this,{type:d,target:i(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,r=t.kind,i=t.index++;if(!e||i>=e.length){t.target=void 0;return{value:void 0,done:!0}}return"keys"==r?{value:i,done:!1}:"values"==r?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}}),"values");var f=a.Arguments=a.Array;n("keys");n("values");n("entries");if(!c&&h&&"values"!==f.name)try{o(f,"name",{value:"values"})}catch(t){}},(t,e,r)=>{var i=r(32),n=r(73),a=r(43).f,s=i("unscopables"),o=Array.prototype;null==o[s]&&a(o,s,{configurable:!0,value:n(null)});t.exports=function(t){o[s][t]=!0}},t=>{t.exports={}},(t,e,r)=>{"use strict";var i=r(3),n=r(8),a=r(34),s=r(48),o=r(20),l=r(86),c=r(88),h=r(91),d=r(90),u=r(42),p=r(46),f=r(32),g=r(84),v=r(87),m=s.PROPER,_=s.CONFIGURABLE,y=v.IteratorPrototype,b=v.BUGGY_SAFARI_ITERATORS,A=f("iterator"),P="keys",S="values",x="entries",returnThis=function(){return this};t.exports=function(t,e,r,s,f,v,w){l(r,e,s);var E,k,T,getIterationMethod=function(t){if(t===f&&D)return D;if(!b&&t in R)return R[t];switch(t){case P:return function keys(){return new r(this,t)};case S:return function values(){return new r(this,t)};case x:return function entries(){return new r(this,t)}}return function(){return new r(this)}},C=e+" Iterator",M=!1,R=t.prototype,I=R[A]||R["@@iterator"]||f&&R[f],D=!b&&I||getIterationMethod(f),O="Array"==e&&R.entries||I;if(O&&(E=c(O.call(new t)))!==Object.prototype&&E.next){a||c(E)===y||(h?h(E,y):o(E[A])||p(E,A,returnThis));d(E,C,!0,!0);a&&(g[C]=returnThis)}if(m&&f==S&&I&&I.name!==S)if(!a&&_)u(R,"name",S);else{M=!0;D=function values(){return n(I,this)}}if(f){k={values:getIterationMethod(S),keys:v?D:getIterationMethod(P),entries:getIterationMethod(x)};if(w)for(T in k)(b||M||!(T in R))&&p(R,T,k[T]);else i({target:e,proto:!0,forced:b||M},k)}a&&!w||R[A]===D||p(R,A,D,{name:f});g[e]=D;return k}},(t,e,r)=>{"use strict";var i=r(87).IteratorPrototype,n=r(73),a=r(11),s=r(90),o=r(84),returnThis=function(){return this};t.exports=function(t,e,r,l){var c=e+" Iterator";t.prototype=n(i,{next:a(+!l,r)});s(t,c,!1,!0);o[c]=returnThis;return t}},(t,e,r)=>{"use strict";var i,n,a,s=r(7),o=r(20),l=r(73),c=r(88),h=r(46),d=r(32),u=r(34),p=d("iterator"),f=!1;[].keys&&("next"in(a=[].keys())?(n=c(c(a)))!==Object.prototype&&(i=n):f=!0);null==i||s((function(){var t={};return i[p].call(t)!==t}))?i={}:u&&(i=l(i));o(i[p])||h(i,p,(function(){return this}));t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:f}},(t,e,r)=>{var i=r(37),n=r(20),a=r(38),s=r(52),o=r(89),l=s("IE_PROTO"),c=Object,h=c.prototype;t.exports=o?c.getPrototypeOf:function(t){var e=a(t);if(i(e,l))return e[l];var r=e.constructor;return n(r)&&e instanceof r?r.prototype:e instanceof c?h:null}},(t,e,r)=>{var i=r(7);t.exports=!i((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},(t,e,r)=>{var i=r(43).f,n=r(37),a=r(32)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype);t&&!n(t,a)&&i(t,a,{configurable:!0,value:e})}},(t,e,r)=>{var i=r(14),n=r(45),a=r(92);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]);e=r instanceof Array}catch(t){}return function setPrototypeOf(r,i){n(r);a(i);e?t(r,i):r.__proto__=i;return r}}():void 0)},(t,e,r)=>{var i=r(20),n=String,a=TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw a("Can't set "+n(t)+" as a prototype")}},(t,e,r)=>{r(94)},(t,e,r)=>{"use strict";r(95);var i,n=r(3),a=r(6),s=r(97),o=r(4),l=r(98),c=r(14),h=r(46),d=r(99),u=r(100),p=r(37),f=r(101),g=r(102),v=r(110),m=r(96).codeAt,_=r(111),y=r(68),b=r(90),A=r(112),P=r(113),S=r(50),x=S.set,w=S.getterFor("URL"),E=P.URLSearchParams,k=P.getState,T=o.URL,C=o.TypeError,M=o.parseInt,R=Math.floor,I=Math.pow,D=c("".charAt),O=c(/./.exec),L=c([].join),G=c(1..toString),N=c([].pop),j=c([].push),U=c("".replace),B=c([].shift),W=c("".split),q=c("".slice),z=c("".toLowerCase),V=c([].unshift),H="Invalid scheme",X="Invalid host",Y="Invalid port",K=/[a-z]/i,J=/[\d+-.a-z]/i,Q=/\d/,$=/^0x/i,Z=/^[0-7]+$/,tt=/^\d+$/,et=/^[\da-f]+$/i,rt=/[\0\t\n\r #%/:<>?@[\\\]^|]/,it=/[\0\t\n\r #/:<>?@[\\\]^|]/,nt=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,st=/[\t\n\r]/g,serializeHost=function(t){var e,r,i,n;if("number"==typeof t){e=[];for(r=0;r<4;r++){V(e,t%256);t=R(t/256)}return L(e,".")}if("object"==typeof t){e="";i=function(t){for(var e=null,r=1,i=null,n=0,a=0;a<8;a++)if(0!==t[a]){if(n>r){e=i;r=n}i=null;n=0}else{null===i&&(i=a);++n}if(n>r){e=i;r=n}return e}(t);for(r=0;r<8;r++)if(!n||0!==t[r]){n&&(n=!1);if(i===r){e+=r?":":"::";n=!0}else{e+=G(t[r],16);r<7&&(e+=":")}}return"["+e+"]"}return t},ot={},lt=f({},ot,{" ":1,'"':1,"<":1,">":1,"`":1}),ct=f({},lt,{"#":1,"?":1,"{":1,"}":1}),ht=f({},ct,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(t,e){var r=m(t,0);return r>32&&r<127&&!p(e,t)?t:encodeURIComponent(t)},dt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isWindowsDriveLetter=function(t,e){var r;return 2==t.length&&O(K,D(t,0))&&(":"==(r=D(t,1))||!e&&"|"==r)},startsWithWindowsDriveLetter=function(t){var e;return t.length>1&&isWindowsDriveLetter(q(t,0,2))&&(2==t.length||"/"===(e=D(t,2))||"\\"===e||"?"===e||"#"===e)},isSingleDot=function(t){return"."===t||"%2e"===z(t)},ut={},pt={},ft={},gt={},vt={},mt={},_t={},yt={},bt={},At={},Pt={},St={},xt={},wt={},Ft={},Et={},kt={},Tt={},Ct={},Mt={},Rt={},URLState=function(t,e,r){var i,n,a,s=y(t);if(e){if(n=this.parse(s))throw C(n);this.searchParams=null}else{void 0!==r&&(i=new URLState(r,!0));if(n=this.parse(s,null,i))throw C(n);(a=k(new E)).bindURL(this);this.searchParams=a}};URLState.prototype={type:"URL",parse:function(t,e,r){var n,a,s,o,l,c=this,h=e||ut,d=0,u="",f=!1,m=!1,_=!1;t=y(t);if(!e){c.scheme="";c.username="";c.password="";c.host=null;c.port=null;c.path=[];c.query=null;c.fragment=null;c.cannotBeABaseURL=!1;t=U(t,nt,"")}t=U(t,st,"");n=g(t);for(;d<=n.length;){a=n[d];switch(h){case ut:if(!a||!O(K,a)){if(e)return H;h=ft;continue}u+=z(a);h=pt;break;case pt:if(a&&(O(J,a)||"+"==a||"-"==a||"."==a))u+=z(a);else{if(":"!=a){if(e)return H;u="";h=ft;d=0;continue}if(e&&(c.isSpecial()!=p(dt,u)||"file"==u&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;c.scheme=u;if(e){c.isSpecial()&&dt[c.scheme]==c.port&&(c.port=null);return}u="";if("file"==c.scheme)h=wt;else if(c.isSpecial()&&r&&r.scheme==c.scheme)h=gt;else if(c.isSpecial())h=yt;else if("/"==n[d+1]){h=vt;d++}else{c.cannotBeABaseURL=!0;j(c.path,"");h=Ct}}break;case ft:if(!r||r.cannotBeABaseURL&&"#"!=a)return H;if(r.cannotBeABaseURL&&"#"==a){c.scheme=r.scheme;c.path=v(r.path);c.query=r.query;c.fragment="";c.cannotBeABaseURL=!0;h=Rt;break}h="file"==r.scheme?wt:mt;continue;case gt:if("/"!=a||"/"!=n[d+1]){h=mt;continue}h=bt;d++;break;case vt:if("/"==a){h=At;break}h=Tt;continue;case mt:c.scheme=r.scheme;if(a==i){c.username=r.username;c.password=r.password;c.host=r.host;c.port=r.port;c.path=v(r.path);c.query=r.query}else if("/"==a||"\\"==a&&c.isSpecial())h=_t;else if("?"==a){c.username=r.username;c.password=r.password;c.host=r.host;c.port=r.port;c.path=v(r.path);c.query="";h=Mt}else{if("#"!=a){c.username=r.username;c.password=r.password;c.host=r.host;c.port=r.port;c.path=v(r.path);c.path.length--;h=Tt;continue}c.username=r.username;c.password=r.password;c.host=r.host;c.port=r.port;c.path=v(r.path);c.query=r.query;c.fragment="";h=Rt}break;case _t:if(!c.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){c.username=r.username;c.password=r.password;c.host=r.host;c.port=r.port;h=Tt;continue}h=At}else h=bt;break;case yt:h=bt;if("/"!=a||"/"!=D(u,d+1))continue;d++;break;case bt:if("/"!=a&&"\\"!=a){h=At;continue}break;case At:if("@"==a){f&&(u="%40"+u);f=!0;s=g(u);for(var b=0;b<s.length;b++){var A=s[b];if(":"!=A||_){var P=percentEncode(A,ht);_?c.password+=P:c.username+=P}else _=!0}u=""}else if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(f&&""==u)return"Invalid authority";d-=g(u).length+1;u="";h=Pt}else u+=a;break;case Pt:case St:if(e&&"file"==c.scheme){h=Et;continue}if(":"!=a||m){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(c.isSpecial()&&""==u)return X;if(e&&""==u&&(c.includesCredentials()||null!==c.port))return;if(o=c.parseHost(u))return o;u="";h=kt;if(e)return;continue}"["==a?m=!0:"]"==a&&(m=!1);u+=a}else{if(""==u)return X;if(o=c.parseHost(u))return o;u="";h=xt;if(e==St)return}break;case xt:if(!O(Q,a)){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()||e){if(""!=u){var S=M(u,10);if(S>65535)return Y;c.port=c.isSpecial()&&S===dt[c.scheme]?null:S;u=""}if(e)return;h=kt;continue}return Y}u+=a;break;case wt:c.scheme="file";if("/"==a||"\\"==a)h=Ft;else{if(!r||"file"!=r.scheme){h=Tt;continue}if(a==i){c.host=r.host;c.path=v(r.path);c.query=r.query}else if("?"==a){c.host=r.host;c.path=v(r.path);c.query="";h=Mt}else{if("#"!=a){if(!startsWithWindowsDriveLetter(L(v(n,d),""))){c.host=r.host;c.path=v(r.path);c.shortenPath()}h=Tt;continue}c.host=r.host;c.path=v(r.path);c.query=r.query;c.fragment="";h=Rt}}break;case Ft:if("/"==a||"\\"==a){h=Et;break}r&&"file"==r.scheme&&!startsWithWindowsDriveLetter(L(v(n,d),""))&&(isWindowsDriveLetter(r.path[0],!0)?j(c.path,r.path[0]):c.host=r.host);h=Tt;continue;case Et:if(a==i||"/"==a||"\\"==a||"?"==a||"#"==a){if(!e&&isWindowsDriveLetter(u))h=Tt;else if(""==u){c.host="";if(e)return;h=kt}else{if(o=c.parseHost(u))return o;"localhost"==c.host&&(c.host="");if(e)return;u="";h=kt}continue}u+=a;break;case kt:if(c.isSpecial()){h=Tt;if("/"!=a&&"\\"!=a)continue}else if(e||"?"!=a)if(e||"#"!=a){if(a!=i){h=Tt;if("/"!=a)continue}}else{c.fragment="";h=Rt}else{c.query="";h=Mt}break;case Tt:if(a==i||"/"==a||"\\"==a&&c.isSpecial()||!e&&("?"==a||"#"==a)){if(".."===(l=z(l=u))||"%2e."===l||".%2e"===l||"%2e%2e"===l){c.shortenPath();"/"==a||"\\"==a&&c.isSpecial()||j(c.path,"")}else if(isSingleDot(u))"/"==a||"\\"==a&&c.isSpecial()||j(c.path,"");else{if("file"==c.scheme&&!c.path.length&&isWindowsDriveLetter(u)){c.host&&(c.host="");u=D(u,0)+":"}j(c.path,u)}u="";if("file"==c.scheme&&(a==i||"?"==a||"#"==a))for(;c.path.length>1&&""===c.path[0];)B(c.path);if("?"==a){c.query="";h=Mt}else if("#"==a){c.fragment="";h=Rt}}else u+=percentEncode(a,ct);break;case Ct:if("?"==a){c.query="";h=Mt}else if("#"==a){c.fragment="";h=Rt}else a!=i&&(c.path[0]+=percentEncode(a,ot));break;case Mt:if(e||"#"!=a)a!=i&&("'"==a&&c.isSpecial()?c.query+="%27":c.query+="#"==a?"%23":percentEncode(a,ot));else{c.fragment="";h=Rt}break;case Rt:a!=i&&(c.fragment+=percentEncode(a,lt))}d++}},parseHost:function(t){var e,r,i;if("["==D(t,0)){if("]"!=D(t,t.length-1))return X;e=function(t){var e,r,i,n,a,s,o,l=[0,0,0,0,0,0,0,0],c=0,h=null,d=0,chr=function(){return D(t,d)};if(":"==chr()){if(":"!=D(t,1))return;d+=2;h=++c}for(;chr();){if(8==c)return;if(":"!=chr()){e=r=0;for(;r<4&&O(et,chr());){e=16*e+M(chr(),16);d++;r++}if("."==chr()){if(0==r)return;d-=r;if(c>6)return;i=0;for(;chr();){n=null;if(i>0){if(!("."==chr()&&i<4))return;d++}if(!O(Q,chr()))return;for(;O(Q,chr());){a=M(chr(),10);if(null===n)n=a;else{if(0==n)return;n=10*n+a}if(n>255)return;d++}l[c]=256*l[c]+n;2!=++i&&4!=i||c++}if(4!=i)return;break}if(":"==chr()){d++;if(!chr())return}else if(chr())return;l[c++]=e}else{if(null!==h)return;d++;h=++c}}if(null!==h){s=c-h;c=7;for(;0!=c&&s>0;){o=l[c];l[c--]=l[h+s-1];l[h+--s]=o}}else if(8!=c)return;return l}(q(t,1,-1));if(!e)return X;this.host=e}else if(this.isSpecial()){t=_(t);if(O(rt,t))return X;e=function(t){var e,r,i,n,a,s,o,l=W(t,".");l.length&&""==l[l.length-1]&&l.length--;if((e=l.length)>4)return t;r=[];for(i=0;i<e;i++){if(""==(n=l[i]))return t;a=10;if(n.length>1&&"0"==D(n,0)){a=O($,n)?16:8;n=q(n,8==a?1:2)}if(""===n)s=0;else{if(!O(10==a?tt:8==a?Z:et,n))return t;s=M(n,a)}j(r,s)}for(i=0;i<e;i++){s=r[i];if(i==e-1){if(s>=I(256,5-e))return null}else if(s>255)return null}o=N(r);for(i=0;i<r.length;i++)o+=r[i]*I(256,3-i);return o}(t);if(null===e)return X;this.host=e}else{if(O(it,t))return X;e="";r=g(t);for(i=0;i<r.length;i++)e+=percentEncode(r[i],ot);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(dt,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&isWindowsDriveLetter(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,r=t.username,i=t.password,n=t.host,a=t.port,s=t.path,o=t.query,l=t.fragment,c=e+":";if(null!==n){c+="//";t.includesCredentials()&&(c+=r+(i?":"+i:"")+"@");c+=serializeHost(n);null!==a&&(c+=":"+a)}else"file"==e&&(c+="//");c+=t.cannotBeABaseURL?s[0]:s.length?"/"+L(s,"/"):"";null!==o&&(c+="?"+o);null!==l&&(c+="#"+l);return c},setHref:function(t){var e=this.parse(t);if(e)throw C(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new It(t.path[0]).origin}catch(t){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+serializeHost(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(y(t)+":",ut)},getUsername:function(){return this.username},setUsername:function(t){var e=g(y(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<e.length;r++)this.username+=percentEncode(e[r],ht)}},getPassword:function(){return this.password},setPassword:function(t){var e=g(y(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<e.length;r++)this.password+=percentEncode(e[r],ht)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?serializeHost(t):serializeHost(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Pt)},getHostname:function(){var t=this.host;return null===t?"":serializeHost(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,St)},getPort:function(){var t=this.port;return null===t?"":y(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=y(t))?this.port=null:this.parse(t,xt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+L(t,"/"):""},setPathname:function(t){if(!this.cannotBeABaseURL){this.path=[];this.parse(t,kt)}},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){if(""==(t=y(t)))this.query=null;else{"?"==D(t,0)&&(t=q(t,1));this.query="";this.parse(t,Mt)}this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){if(""!=(t=y(t))){"#"==D(t,0)&&(t=q(t,1));this.fragment="";this.parse(t,Rt)}else this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var It=function URL(t){var e=u(this,Dt),r=A(arguments.length,1)>1?arguments[1]:void 0,i=x(e,new URLState(t,!1,r));if(!a){e.href=i.serialize();e.origin=i.getOrigin();e.protocol=i.getProtocol();e.username=i.getUsername();e.password=i.getPassword();e.host=i.getHost();e.hostname=i.getHostname();e.port=i.getPort();e.pathname=i.getPathname();e.search=i.getSearch();e.searchParams=i.getSearchParams();e.hash=i.getHash()}},Dt=It.prototype,accessorDescriptor=function(t,e){return{get:function(){return w(this)[t]()},set:e&&function(t){return w(this)[e](t)},configurable:!0,enumerable:!0}};if(a){d(Dt,"href",accessorDescriptor("serialize","setHref"));d(Dt,"origin",accessorDescriptor("getOrigin"));d(Dt,"protocol",accessorDescriptor("getProtocol","setProtocol"));d(Dt,"username",accessorDescriptor("getUsername","setUsername"));d(Dt,"password",accessorDescriptor("getPassword","setPassword"));d(Dt,"host",accessorDescriptor("getHost","setHost"));d(Dt,"hostname",accessorDescriptor("getHostname","setHostname"));d(Dt,"port",accessorDescriptor("getPort","setPort"));d(Dt,"pathname",accessorDescriptor("getPathname","setPathname"));d(Dt,"search",accessorDescriptor("getSearch","setSearch"));d(Dt,"searchParams",accessorDescriptor("getSearchParams"));d(Dt,"hash",accessorDescriptor("getHash","setHash"))}h(Dt,"toJSON",(function toJSON(){return w(this).serialize()}),{enumerable:!0});h(Dt,"toString",(function toString(){return w(this).serialize()}),{enumerable:!0});if(T){var Ot=T.createObjec