UNPKG

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 372 kB
window.ngxZone.runOutsideAngular(() => { /** * @licstart The following is the entire license notice for the * JavaScript code in this page * * Copyright 2023 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,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.VerbosityLevel=e.Util=e.UnknownErrorException=e.UnexpectedResponseException=e.TextRenderingMode=e.RenderingIntentFlag=e.PermissionFlag=e.PasswordResponses=e.PasswordException=e.PageActionEventType=e.OPS=e.MissingPDFException=e.MAX_IMAGE_SIZE_TO_CACHE=e.LINE_FACTOR=e.LINE_DESCENT_FACTOR=e.InvalidPDFException=e.ImageKind=e.IDENTITY_MATRIX=e.FormatError=e.FeatureTest=e.FONT_IDENTITY_MATRIX=e.DocumentActionEventType=e.CMapCompressionType=e.BaseException=e.BASELINE_FACTOR=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.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,i=8192;if(e<i)return String.fromCharCode.apply(null,t);const s=[];for(let a=0;a<e;a+=i){const r=Math.min(a+i,e),n=t.subarray(a,r);s.push(String.fromCharCode.apply(null,n))}return s.join("")};e.createPromiseCapability=function createPromiseCapability(){const t=Object.create(null);let e=!1;Object.defineProperty(t,"settled",{get:()=>e});t.promise=new Promise((function(i,s){t.resolve=function(t){e=!0;i(t)};t.reject=function(t){e=!0;s(t)}}));return t};e.createValidAbsoluteUrl=function createValidAbsoluteUrl(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return null;try{if(i&&"string"==typeof t){if(i.addDefaultProtocol&&t.startsWith("www.")){const e=t.match(/\./g);e&&e.length>=2&&(t=`http://${t}`)}if(i.tryConvertEncoding)try{t=stringToUTF8String(t)}catch(t){}}const s=e?new URL(t,e):new URL(t);if(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}}(s))return s}catch(t){}return null};e.getModificationDate=function getModificationDate(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[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")].join("")};e.getVerbosityLevel=function getVerbosityLevel(){return a};e.info=function info(t){a>=s.INFOS&&("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?console.log(`Info: ${t}`):Window&&Window.ngxConsole?Window.ngxConsole.log(`Info: ${t}`):console.log(`Info: ${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 i=0,s=t.length;i<s;i++)if(t[i]!==e[i])return!1;return!0};e.objectFromMap=function objectFromMap(t){const e=Object.create(null);for(const[i,s]of t)e[i]=s;return e};e.objectSize=function objectSize(t){return Object.keys(t).length};e.setVerbosityLevel=function setVerbosityLevel(t){Number.isInteger(t)&&(a=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 i=new TextDecoder(e,{fatal:!0}),s=stringToBytes(t);return i.decode(s)}catch(t){warn(`stringToPDFString: "${t}".`)}}const e=[];for(let i=0,s=t.length;i<s;i++){const s=o[t.charCodeAt(i)];e.push(s?String.fromCharCode(s):t.charAt(i))}return e.join("")};e.stringToUTF8String=stringToUTF8String;e.unreachable=unreachable;e.utf8StringToString=function utf8StringToString(t){return unescape(encodeURIComponent(t))};e.warn=warn;if(!globalThis._pdfjsCompatibilityChecked){globalThis._pdfjsCompatibilityChecked=!0;i(2)}e.IDENTITY_MATRIX=[1,0,0,1,0,0];e.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];e.MAX_IMAGE_SIZE_TO_CACHE=1e7;e.LINE_FACTOR=1.35;e.LINE_DESCENT_FACTOR=.35;e.BASELINE_FACTOR=.25925925925925924;e.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,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"};const s={ERRORS:0,WARNINGS:1,INFOS:5};e.VerbosityLevel=s;e.CMapCompressionType={NONE:0,BINARY:1};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,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};e.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let a=s.WARNINGS;function warn(t){a>=s.WARNINGS&&("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?console.log(`Warning: ${t}`):Window&&Window.ngxConsole?Window.ngxConsole.log(`Warning: ${t}`):console.log(`Warning: ${t}`))}function unreachable(t){throw new Error(t)}function shadow(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Object.defineProperty(t,e,{value:i,enumerable:!s,configurable:!0,writable:!1});return i}const r=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=r;e.PasswordException=class PasswordException extends r{constructor(t,e){super(t,"PasswordException");this.code=e}};e.UnknownErrorException=class UnknownErrorException extends r{constructor(t,e){super(t,"UnknownErrorException");this.details=e}};e.InvalidPDFException=class InvalidPDFException extends r{constructor(t){super(t,"InvalidPDFException")}};e.MissingPDFException=class MissingPDFException extends r{constructor(t){super(t,"MissingPDFException")}};e.UnexpectedResponseException=class UnexpectedResponseException extends r{constructor(t,e){super(t,"UnexpectedResponseException");this.status=e}};e.FormatError=class FormatError extends r{constructor(t){super(t,"FormatError")}};e.AbortException=class AbortException extends r{constructor(t){super(t,"AbortException")}};function stringToBytes(t){"string"!=typeof t&&unreachable("Invalid argument for stringToBytes");const e=t.length,i=new Uint8Array(e);for(let s=0;s<e;++s)i[s]=255&t.charCodeAt(s);return i}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)}static get platform(){return"undefined"==typeof navigator?shadow(this,"platform",{isWin:!1,isMac:!1}):shadow(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}};const n=[...Array(256).keys()].map((t=>t.toString(16).padStart(2,"0")));class Util{static makeHexColor(t,e,i){return`#${n[t]}${n[e]}${n[i]}`}static scaleMinMax(t,e){let i;if(t[0]){if(t[0]<0){i=e[0];e[0]=e[1];e[1]=i}e[0]*=t[0];e[1]*=t[0];if(t[3]<0){i=e[2];e[2]=e[3];e[3]=i}e[2]*=t[3];e[3]*=t[3]}else{i=e[0];e[0]=e[2];e[2]=i;i=e[1];e[1]=e[3];e[3]=i;if(t[1]<0){i=e[2];e[2]=e[3];e[3]=i}e[2]*=t[1];e[3]*=t[1];if(t[2]<0){i=e[0];e[0]=e[1];e[1]=i}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 i=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])/i,(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/i]}static getAxialAlignedBoundingBox(t,e){const i=Util.applyTransform(t,e),s=Util.applyTransform(t.slice(2,4),e),a=Util.applyTransform([t[0],t[3]],e),r=Util.applyTransform([t[2],t[1]],e);return[Math.min(i[0],s[0],a[0],r[0]),Math.min(i[1],s[1],a[1],r[1]),Math.max(i[0],s[0],a[0],r[0]),Math.max(i[1],s[1],a[1],r[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 singularValueDecompose2dScale(t){const e=[t[0],t[2],t[1],t[3]],i=t[0]*e[0]+t[1]*e[2],s=t[0]*e[1]+t[1]*e[3],a=t[2]*e[0]+t[3]*e[2],r=t[2]*e[1]+t[3]*e[3],n=(i+r)/2,o=Math.sqrt((i+r)**2-4*(i*r-a*s))/2,l=n+o||1,c=n-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 i=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2])),s=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(i>s)return null;const a=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3])),r=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));return a>r?null:[i,a,s,r]}static bezierBoundingBox(t,e,i,s,a,r,n,o){const l=[],c=[[],[]];let d,h,u,p,f,g,m,v;for(let c=0;c<2;++c){if(0===c){h=6*t-12*i+6*a;d=-3*t+9*i-9*a+3*n;u=3*i-3*t}else{h=6*e-12*s+6*r;d=-3*e+9*s-9*r+3*o;u=3*s-3*e}if(Math.abs(d)<1e-12){if(Math.abs(h)<1e-12)continue;p=-u/h;0<p&&p<1&&l.push(p)}else{m=h*h-4*u*d;v=Math.sqrt(m);if(!(m<0)){f=(-h+v)/(2*d);0<f&&f<1&&l.push(f);g=(-h-v)/(2*d);0<g&&g<1&&l.push(g)}}}let _,b=l.length;const y=b;for(;b--;){p=l[b];_=1-p;c[0][b]=_*_*_*t+3*_*_*p*i+3*_*p*p*a+p*p*p*n;c[1][b]=_*_*_*e+3*_*_*p*s+3*_*p*p*r+p*p*p*o}c[0][y]=t;c[1][y]=e;c[0][y+1]=n;c[1][y+1]=o;c[0].length=c[1].length=y+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,i)=>{"use strict";!function checkDOMMatrix(){globalThis.DOMMatrix}();!function checkPath2D(){globalThis.Path2D}();!function checkReadableStream(){globalThis.ReadableStream}();!function checkArrayAt(){Array.prototype.at||i(3)}();!function checkTypedArrayAt(){Uint8Array.prototype.at||i(77)}();!function checkStructuredClone(){globalThis.structuredClone||i(87)}()},(t,e,i)=>{i(4);var s=i(76);t.exports=s("Array","at")},(t,e,i)=>{"use strict";var s=i(5),a=i(42),r=i(66),n=i(64),o=i(71);s({target:"Array",proto:!0},{at:function at(t){var e=a(this),i=r(e),s=n(t),o=s>=0?s:i+s;return o<0||o>=i?void 0:e[o]}});o("at")},(t,e,i)=>{var s=i(6),a=i(7).f,r=i(46),n=i(50),o=i(40),l=i(58),c=i(70);t.exports=function(t,e){var i,d,h,u,p,f=t.target,g=t.global,m=t.stat;if(i=g?s:m?s[f]||o(f,{}):(s[f]||{}).prototype)for(d in e){u=e[d];h=t.dontCallGetSet?(p=a(i,d))&&p.value:i[d];if(!c(g?d:f+(m?".":"#")+d,t.forced)&&void 0!==h){if(typeof u==typeof h)continue;l(u,h)}(t.sham||h&&h.sham)&&r(u,"sham",!0);n(i,d,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,i)=>{var s=i(8),a=i(10),r=i(12),n=i(13),o=i(14),l=i(20),c=i(41),d=i(44),h=Object.getOwnPropertyDescriptor;e.f=s?h:function getOwnPropertyDescriptor(t,e){t=o(t);e=l(e);if(d)try{return h(t,e)}catch(t){}if(c(t,e))return n(!a(r.f,t,e),t[e])}},(t,e,i)=>{var s=i(9);t.exports=!s((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,i)=>{var s=i(11),a=Function.prototype.call;t.exports=s?a.bind(a):function(){return a.apply(a,arguments)}},(t,e,i)=>{var s=i(9);t.exports=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},(t,e)=>{"use strict";var i={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,a=s&&!i.call({1:2},1);e.f=a?function propertyIsEnumerable(t){var e=s(this,t);return!!e&&e.enumerable}:i},t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},(t,e,i)=>{var s=i(15),a=i(18);t.exports=function(t){return s(a(t))}},(t,e,i)=>{var s=i(16),a=i(9),r=i(17),n=Object,o=s("".split);t.exports=a((function(){return!n("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?o(t,""):n(t)}:n},(t,e,i)=>{var s=i(11),a=Function.prototype,r=a.call,n=s&&a.bind.bind(r,r);t.exports=s?n:function(t){return function(){return r.apply(t,arguments)}}},(t,e,i)=>{var s=i(16),a=s({}.toString),r=s("".slice);t.exports=function(t){return r(a(t),8,-1)}},(t,e,i)=>{var s=i(19),a=TypeError;t.exports=function(t){if(s(t))throw a("Can't call method on "+t);return t}},t=>{t.exports=function(t){return null==t}},(t,e,i)=>{var s=i(21),a=i(25);t.exports=function(t){var e=s(t,"string");return a(e)?e:e+""}},(t,e,i)=>{var s=i(10),a=i(22),r=i(25),n=i(32),o=i(35),l=i(36),c=TypeError,d=l("toPrimitive");t.exports=function(t,e){if(!a(t)||r(t))return t;var i,l=n(t,d);if(l){void 0===e&&(e="default");i=s(l,t,e);if(!a(i)||r(i))return i;throw c("Can't convert object to primitive value")}void 0===e&&(e="number");return o(t,e)}},(t,e,i)=>{var s=i(23),a=i(24),r=a.all;t.exports=a.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:s(t)||t===r}:function(t){return"object"==typeof t?null!==t:s(t)}},(t,e,i)=>{var s=i(24),a=s.all;t.exports=s.IS_HTMLDDA?function(t){return"function"==typeof t||t===a}:function(t){return"function"==typeof t}},t=>{var e="object"==typeof document&&document.all,i=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:i}},(t,e,i)=>{var s=i(26),a=i(23),r=i(27),n=i(28),o=Object;t.exports=n?function(t){return"symbol"==typeof t}:function(t){var e=s("Symbol");return a(e)&&r(e.prototype,o(t))}},(t,e,i)=>{var s=i(6),a=i(23),aFunction=function(t){return a(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?aFunction(s[t]):s[t]&&s[t][e]}},(t,e,i)=>{var s=i(16);t.exports=s({}.isPrototypeOf)},(t,e,i)=>{var s=i(29);t.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(t,e,i)=>{var s=i(30),a=i(9);t.exports=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},(t,e,i)=>{var s,a,r=i(6),n=i(31),o=r.process,l=r.Deno,c=o&&o.versions||l&&l.version,d=c&&c.v8;d&&(a=(s=d.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1]));!a&&n&&(!(s=n.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=n.match(/Chrome\/(\d+)/))&&(a=+s[1]);t.exports=a},t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},(t,e,i)=>{var s=i(33),a=i(19);t.exports=function(t,e){var i=t[e];return a(i)?void 0:s(i)}},(t,e,i)=>{var s=i(23),a=i(34),r=TypeError;t.exports=function(t){if(s(t))return t;throw r(a(t)+" is not a function")}},t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},(t,e,i)=>{var s=i(10),a=i(23),r=i(22),n=TypeError;t.exports=function(t,e){var i,o;if("string"===e&&a(i=t.toString)&&!r(o=s(i,t)))return o;if(a(i=t.valueOf)&&!r(o=s(i,t)))return o;if("string"!==e&&a(i=t.toString)&&!r(o=s(i,t)))return o;throw n("Can't convert object to primitive value")}},(t,e,i)=>{var s=i(6),a=i(37),r=i(41),n=i(43),o=i(29),l=i(28),c=s.Symbol,d=a("wks"),h=l?c.for||c:c&&c.withoutSetter||n;t.exports=function(t){r(d,t)||(d[t]=o&&r(c,t)?c[t]:h("Symbol."+t));return d[t]}},(t,e,i)=>{var s=i(38),a=i(39);(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.27.2",mode:s?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})},t=>{t.exports=!1},(t,e,i)=>{var s=i(6),a=i(40),r="__core-js_shared__",n=s[r]||a(r,{});t.exports=n},(t,e,i)=>{var s=i(6),a=Object.defineProperty;t.exports=function(t,e){try{a(s,t,{value:e,configurable:!0,writable:!0})}catch(i){s[t]=e}return e}},(t,e,i)=>{var s=i(16),a=i(42),r=s({}.hasOwnProperty);t.exports=Object.hasOwn||function hasOwn(t,e){return r(a(t),e)}},(t,e,i)=>{var s=i(18),a=Object;t.exports=function(t){return a(s(t))}},(t,e,i)=>{var s=i(16),a=0,r=Math.random(),n=s(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++a+r,36)}},(t,e,i)=>{var s=i(8),a=i(9),r=i(45);t.exports=!s&&!a((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},(t,e,i)=>{var s=i(6),a=i(22),r=s.document,n=a(r)&&a(r.createElement);t.exports=function(t){return n?r.createElement(t):{}}},(t,e,i)=>{var s=i(8),a=i(47),r=i(13);t.exports=s?function(t,e,i){return a.f(t,e,r(1,i))}:function(t,e,i){t[e]=i;return t}},(t,e,i)=>{var s=i(8),a=i(44),r=i(48),n=i(49),o=i(20),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,h="enumerable",u="configurable",p="writable";e.f=s?r?function defineProperty(t,e,i){n(t);e=o(e);n(i);if("function"==typeof t&&"prototype"===e&&"value"in i&&p in i&&!i[p]){var s=d(t,e);if(s&&s[p]){t[e]=i.value;i={configurable:u in i?i[u]:s[u],enumerable:h in i?i[h]:s[h],writable:!1}}}return c(t,e,i)}:c:function defineProperty(t,e,i){n(t);e=o(e);n(i);if(a)try{return c(t,e,i)}catch(t){}if("get"in i||"set"in i)throw l("Accessors not supported");"value"in i&&(t[e]=i.value);return t}},(t,e,i)=>{var s=i(8),a=i(9);t.exports=s&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},(t,e,i)=>{var s=i(22),a=String,r=TypeError;t.exports=function(t){if(s(t))return t;throw r(a(t)+" is not an object")}},(t,e,i)=>{var s=i(23),a=i(47),r=i(51),n=i(40);t.exports=function(t,e,i,o){o||(o={});var l=o.enumerable,c=void 0!==o.name?o.name:e;s(i)&&r(i,c,o);if(o.global)l?t[e]=i:n(e,i);else{try{o.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=i:a.f(t,e,{value:i,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return t}},(t,e,i)=>{var s=i(16),a=i(9),r=i(23),n=i(41),o=i(8),l=i(52).CONFIGURABLE,c=i(53),d=i(54),h=d.enforce,u=d.get,p=String,f=Object.defineProperty,g=s("".slice),m=s("".replace),v=s([].join),_=o&&!a((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),y=t.exports=function(t,e,i){"Symbol("===g(p(e),0,7)&&(e="["+m(p(e),/^Symbol\(([^)]*)\)/,"$1")+"]");i&&i.getter&&(e="get "+e);i&&i.setter&&(e="set "+e);(!n(t,"name")||l&&t.name!==e)&&(o?f(t,"name",{value:e,configurable:!0}):t.name=e);_&&i&&n(i,"arity")&&t.length!==i.arity&&f(t,"length",{value:i.arity});try{i&&n(i,"constructor")&&i.constructor?o&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var s=h(t);n(s,"source")||(s.source=v(b,"string"==typeof e?e:""));return t};Function.prototype.toString=y((function toString(){return r(this)&&u(this).source||c(this)}),"toString")},(t,e,i)=>{var s=i(8),a=i(41),r=Function.prototype,n=s&&Object.getOwnPropertyDescriptor,o=a(r,"name"),l=o&&"something"===function something(){}.name,c=o&&(!s||s&&n(r,"name").configurable);t.exports={EXISTS:o,PROPER:l,CONFIGURABLE:c}},(t,e,i)=>{var s=i(16),a=i(23),r=i(39),n=s(Function.toString);a(r.inspectSource)||(r.inspectSource=function(t){return n(t)});t.exports=r.inspectSource},(t,e,i)=>{var s,a,r,n=i(55),o=i(6),l=i(22),c=i(46),d=i(41),h=i(39),u=i(56),p=i(57),f="Object already initialized",g=o.TypeError,m=o.WeakMap;if(n||h.state){var v=h.state||(h.state=new m);v.get=v.get;v.has=v.has;v.set=v.set;s=function(t,e){if(v.has(t))throw g(f);e.facade=t;v.set(t,e);return e};a=function(t){return v.get(t)||{}};r=function(t){return v.has(t)}}else{var _=u("state");p[_]=!0;s=function(t,e){if(d(t,_))throw g(f);e.facade=t;c(t,_,e);return e};a=function(t){return d(t,_)?t[_]:{}};r=function(t){return d(t,_)}}t.exports={set:s,get:a,has:r,enforce:function(t){return r(t)?a(t):s(t,{})},getterFor:function(t){return function(e){var i;if(!l(e)||(i=a(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return i}}}},(t,e,i)=>{var s=i(6),a=i(23),r=s.WeakMap;t.exports=a(r)&&/native code/.test(String(r))},(t,e,i)=>{var s=i(37),a=i(43),r=s("keys");t.exports=function(t){return r[t]||(r[t]=a(t))}},t=>{t.exports={}},(t,e,i)=>{var s=i(41),a=i(59),r=i(7),n=i(47);t.exports=function(t,e,i){for(var o=a(e),l=n.f,c=r.f,d=0;d<o.length;d++){var h=o[d];s(t,h)||i&&s(i,h)||l(t,h,c(e,h))}}},(t,e,i)=>{var s=i(26),a=i(16),r=i(60),n=i(69),o=i(49),l=a([].concat);t.exports=s("Reflect","ownKeys")||function ownKeys(t){var e=r.f(o(t)),i=n.f;return i?l(e,i(t)):e}},(t,e,i)=>{var s=i(61),a=i(68).concat("length","prototype");e.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return s(t,a)}},(t,e,i)=>{var s=i(16),a=i(41),r=i(14),n=i(62).indexOf,o=i(57),l=s([].push);t.exports=function(t,e){var i,s=r(t),c=0,d=[];for(i in s)!a(o,i)&&a(s,i)&&l(d,i);for(;e.length>c;)a(s,i=e[c++])&&(~n(d,i)||l(d,i));return d}},(t,e,i)=>{var s=i(14),a=i(63),r=i(66),createMethod=function(t){return function(e,i,n){var o,l=s(e),c=r(l),d=a(n,c);if(t&&i!=i){for(;c>d;)if((o=l[d++])!=o)return!0}else for(;c>d;d++)if((t||d in l)&&l[d]===i)return t||d||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(t,e,i)=>{var s=i(64),a=Math.max,r=Math.min;t.exports=function(t,e){var i=s(t);return i<0?a(i+e,0):r(i,e)}},(t,e,i)=>{var s=i(65);t.exports=function(t){var e=+t;return e!=e||0===e?0:s(e)}},t=>{var e=Math.ceil,i=Math.floor;t.exports=Math.trunc||function trunc(t){var s=+t;return(s>0?i:e)(s)}},(t,e,i)=>{var s=i(67);t.exports=function(t){return s(t.length)}},(t,e,i)=>{var s=i(64),a=Math.min;t.exports=function(t){return t>0?a(s(t),9007199254740991):0}},t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(t,e)=>{e.f=Object.getOwnPropertySymbols},(t,e,i)=>{var s=i(9),a=i(23),r=/#|\.prototype\./,isForced=function(t,e){var i=o[n(t)];return i==c||i!=l&&(a(e)?s(e):!!e)},n=isForced.normalize=function(t){return String(t).replace(r,".").toLowerCase()},o=isForced.data={},l=isForced.NATIVE="N",c=isForced.POLYFILL="P";t.exports=isForced},(t,e,i)=>{var s=i(36),a=i(72),r=i(47).f,n=s("unscopables"),o=Array.prototype;null==o[n]&&r(o,n,{configurable:!0,value:a(null)});t.exports=function(t){o[n][t]=!0}},(t,e,i)=>{var s,a=i(49),r=i(73),n=i(68),o=i(57),l=i(75),c=i(45),d=i(56),h="prototype",u="script",p=d("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<"+u+">"+t+"</"+u+">"},NullProtoObjectViaActiveX=function(t){t.write(scriptTag(""));t.close();var e=t.parentWindow.Object;t=null;return e},NullProtoObject=function(){try{s=new ActiveXObject("htmlfile")}catch(t){}NullProtoObject="undefined"!=typeof document?document.domain&&s?NullProtoObjectViaActiveX(s):function(){var t,e=c("iframe"),i="java"+u+":";e.style.display="none";l.appendChild(e);e.src=String(i);(t=e.contentWindow.document).open();t.write(scriptTag("document.F=Object"));t.close();return t.F}():NullProtoObjectViaActiveX(s);for(var t=n.length;t--;)delete NullProtoObject[h][n[t]];return NullProtoObject()};o[p]=!0;t.exports=Object.create||function create(t,e){var i;if(null!==t){EmptyConstructor[h]=a(t);i=new EmptyConstructor;EmptyConstructor[h]=null;i[p]=t}else i=NullProtoObject();return void 0===e?i:r.f(i,e)}},(t,e,i)=>{var s=i(8),a=i(48),r=i(47),n=i(49),o=i(14),l=i(74);e.f=s&&!a?Object.defineProperties:function defineProperties(t,e){n(t);for(var i,s=o(e),a=l(e),c=a.length,d=0;c>d;)r.f(t,i=a[d++],s[i]);return t}},(t,e,i)=>{var s=i(61),a=i(68);t.exports=Object.keys||function keys(t){return s(t,a)}},(t,e,i)=>{var s=i(26);t.exports=s("document","documentElement")},(t,e,i)=>{var s=i(6),a=i(16);t.exports=function(t,e){return a(s[t].prototype[e])}},(t,e,i)=>{i(78)},(t,e,i)=>{"use strict";var s=i(79),a=i(66),r=i(64),n=s.aTypedArray;(0,s.exportTypedArrayMethod)("at",(function at(t){var e=n(this),i=a(e),s=r(t),o=s>=0?s:i+s;return o<0||o>=i?void 0:e[o]}))},(t,e,i)=>{"use strict";var s,a,r,n=i(80),o=i(8),l=i(6),c=i(23),d=i(22),h=i(41),u=i(81),p=i(34),f=i(46),g=i(50),m=i(47).f,v=i(27),_=i(83),b=i(85),y=i(36),A=i(43),S=i(54),P=S.enforce,w=S.get,x=l.Int8Array,E=x&&x.prototype,C=l.Uint8ClampedArray,k=C&&C.prototype,M=x&&_(x),T=E&&_(E),R=Object.prototype,I=l.TypeError,D=y("toStringTag"),O=A("TYPED_ARRAY_TAG"),L="TypedArrayConstructor",G=n&&!!b&&"Opera"!==u(l.opera),N=!1,j={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},B={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor=function(t){var e=_(t);if(d(e)){var i=w(e);return i&&h(i,L)?i[L]:getTypedArrayConstructor(e)}},isTypedArray=function(t){if(!d(t))return!1;var e=u(t);return h(j,e)||h(B,e)};for(s in j)(r=(a=l[s])&&a.prototype)?P(r)[L]=a:G=!1;for(s in B)(r=(a=l[s])&&a.prototype)&&(P(r)[L]=a);if(!G||!c(M)||M===Function.prototype){M=function TypedArray(){throw I("Incorrect invocation")};if(G)for(s in j)l[s]&&b(l[s],M)}if(!G||!T||T===R){T=M.prototype;if(G)for(s in j)l[s]&&b(l[s].prototype,T)}G&&_(k)!==T&&b(k,T);if(o&&!h(T,D)){N=!0;m(T,D,{get:function(){return d(this)?this[O]:void 0}});for(s in j)l[s]&&f(l[s],O,s)}t.exports={NATIVE_ARRAY_BUFFER_VIEWS:G,TYPED_ARRAY_TAG:N&&O,aTypedArray:function(t){if(isTypedArray(t))return t;throw I("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!b||v(M,t)))return t;throw I(p(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,i,s){if(o){if(i)for(var a in j){var r=l[a];if(r&&h(r.prototype,t))try{delete r.prototype[t]}catch(i){try{r.prototype[t]=e}catch(t){}}}T[t]&&!i||g(T,t,i?e:G&&E[t]||e,s)}},exportTypedArrayStaticMethod:function(t,e,i){var s,a;if(o){if(b){if(i)for(s in j)if((a=l[s])&&h(a,t))try{delete a[t]}catch(t){}if(M[t]&&!i)return;try{return g(M,t,i?e:G&&M[t]||e)}catch(t){}}for(s in j)!(a=l[s])||a[t]&&!i||g(a,t,e)}},getTypedArrayConstructor:getTypedArrayConstructor,isView:function isView(t){if(!d(t))return!1;var e=u(t);return"DataView"===e||h(j,e)||h(B,e)},isTypedArray:isTypedArray,TypedArray:M,TypedArrayPrototype:T}},t=>{t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},(t,e,i)=>{var s=i(82),a=i(23),r=i(17),n=i(36)("toStringTag"),o=Object,l="Arguments"==r(function(){return arguments}());t.exports=s?r:function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=o(t),n))?i:l?r(e):"Object"==(s=r(e))&&a(e.callee)?"Arguments":s}},(t,e,i)=>{var s={};s[i(36)("toStringTag")]="z";t.exports="[object z]"===String(s)},(t,e,i)=>{var s=i(41),a=i(23),r=i(42),n=i(56),o=i(84),l=n("IE_PROTO"),c=Object,d=c.prototype;t.exports=o?c.getPrototypeOf:function(t){var e=r(t);if(s(e,l))return e[l];var i=e.constructor;return a(i)&&e instanceof i?i.prototype:e instanceof c?d:null}},(t,e,i)=>{var s=i(9);t.exports=!s((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},(t,e,i)=>{var s=i(16),a=i(49),r=i(86);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=s(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]);e=i instanceof Array}catch(t){}return function setPrototypeOf(i,s){a(i);r(s);e?t(i,s):i.__proto__=s;return i}}():void 0)},(t,e,i)=>{var s=i(23),a=String,r=TypeError;t.exports=function(t){if("object"==typeof t||s(t))return t;throw r("Can't set "+a(t)+" as a prototype")}},(t,e,i)=>{i(88);i(95);i(97);i(120);i(122);var s=i(133);t.exports=s.structuredClone},(t,e,i)=>{"use strict";var s=i(14),a=i(71),r=i(89),n=i(54),o=i(47).f,l=i(90),c=i(94),d=i(38),h=i(8),u="Array Iterator",p=n.set,f=n.getterFor(u);t.exports=l(Array,"Array",(function(t,e){p(this,{type:u,target:s(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,i=t.kind,s=t.index++;if(!e||s>=e.length){t.target=void 0;return c(void 0,!0)}return c("keys"==i?s:"values"==i?e[s]:[s,e[s]],!1)}),"values");var g=r.Arguments=r.Array;a("keys");a("values");a("entries");if(!d&&h&&"values"!==g.name)try{o(g,"name",{value:"values"})}catch(t){}},t=>{t.exports={}},(t,e,i)=>{"use strict";var s=i(5),a=i(10),r=i(38),n=i(52),o=i(23),l=i(91),c=i(83),d=i(85),h=i(93),u=i(46),p=i(50),f=i(36),g=i(89),m=i(92),v=n.PROPER,_=n.CONFIGURABLE,b=m.IteratorPrototype,y=m.BUGGY_SAFARI_ITERATORS,A=f("iterator"),S="keys",P="values",w="entries",returnThis=function(){return this};t.exports=function(t,e,i,n,f,m,x){l(i,e,n);var E,C,k,getIterationMethod=function(t){if(t===f&&D)return D;if(!y&&t in R)return R[t];switch(t){case S:return function keys(){return new i(this,t)};case P:return function values(){return new i(this,t)};case w:return function entries(){return new i(this,t)}}return function(){return new i(this)}},M=e+" Iterator",T=!1,R=t.prototype,I=R[A]||R["@@iterator"]||f&&R[f],D=!y&&I||getIterationMethod(f),O="Array"==e&&R.entries||I;if(O&&(E=c(O.call(new t)))!==Object.prototype&&E.next){r||c(E)===b||(d?d(E,b):o(E[A])||p(E,A,returnThis));h(E,M,!0,!0);r&&(g[M]=returnThis)}if(v&&f==P&&I&&I.name!==P)if(!r&&_)u(R,"name",P);else{T=!0;D=function values(){return a(I,this)}}if(f){C={values:getIterationMethod(P),keys:m?D:getIterationMethod(S),entries:getIterationMethod(w)};if(x)for(k in C)(y||T||!(k in R))&&p(R,k,C[k]);else s({target:e,proto:!0,forced:y||T},C)}r&&!x||R[A]===D||p(R,A,D,{name:f});g[e]=D;return C}},(t,e,i)=>{"use strict";var s=i(92).IteratorPrototype,a=i(72),r=i(13),n=i(93),o=i(89),returnThis=function(){return this};t.exports=function(t,e,i,l){var c=e+" Iterator";t.prototype=a(s,{next:r(+!l,i)});n(t,c,!1,!0);o[c]=returnThis;return t}},(t,e,i)=>{"use strict";var s,a,r,n=i(9),o=i(23),l=i(22),c=i(72),d=i(83),h=i(50),u=i(36),p=i(38),f=u("iterator"),g=!1;[].keys&&("next"in(r=[].keys())?(a=d(d(r)))!==Object.prototype&&(s=a):g=!0);!l(s)||n((function(){var t={};return s[f].call(t)!==t}))?s={}:p&&(s=c(s));o(s[f])||h(s,f,(function(){return this}));t.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:g}},(t,e,i)=>{var s=i(47).f,a=i(41),r=i(36)("toStringTag");t.exports=function(t,e,i){t&&!i&&(t=t.prototype);t&&!a(t,r)&&s(t,r,{configurable:!0,value:e})}},t=>{t.exports=function(t,e){return{value:t,done:e}}},(t,e,i)=>{var s=i(82),a=i(50),r=i(96);s||a(Object.prototype,"toString",r,{unsafe:!0})},(t,e,i)=>{"use strict";var s=i(82),a=i(81);t.exports=s?{}.toString:function toString(){return"[object "+a(this)+"]"}},(t,e,i)=>{i(98)},(t,e,i)=>{"use strict";i(99)("Map",(function(t){return function Map(){return t(this,arguments.length?arguments[0]:void 0)}}),i(117))},(t,e,i)=>{"use strict";var s=i(5),a=i(6),r=i(16),n=i(70),o=i(50),l=i(100),c=i(107),d=i(114),h=i(23),u=i(19),p=i(22),f=i(9),g=i(115),m=i(93),v=i(116);t.exports=function(t,e,i){var _=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),y=_?"set":"add",A=a[t],S=A&&A.prototype,P=A,w={},fixMethod=function(t){var e=r(S[t]);o(S,t,"add"==t?function add(t){e(this,0===t?0:t);return this}:"delete"==t?function(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:"get"==t?function get(t){return b&&!p(t)?void 0:e(this,0===t?0:t)}:"has"==t?function has(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:function set(t,i){e(this,0===t?0:t,i);return this})};if(n(t,!h(A)||!(b||S.forEach&&!f((function(){(new A).entries().next()}))))){P=i.getConstructor(e,t,_,y);l.enable()}else if(n(t,!0)){var x=new P,E=x[y](b?{}:-0,1)!=x,C=f((function(){x.has(1)})),k=g((function(t){new A(t)})),M=!b&&f((function(){for(var t=new A,e=5;e--;)t[y](e,e);return!t.has(-0)}));if(!k){(P=e((function(t,e){d(t,S);var i=v(new A,t,P);u(e)||c(e,i[y],{that:i,AS_ENTRIES:_});return i}))).prototype=S;S.constructor=P}if(C||M){fixMethod("delete");fixMethod("has");_&&fixMethod("get")}(M||E)&&fixMethod(y);b&&S.clear&&delete S.clear}w[t]=P;s({global:!0,constructor:!0,forced:P!=A},w);m(P,t);b||i.setStrong(P,t,_);return P}},(t,e,i)=>{var s=i(5),a=i(16),r=i(57),n=i(22),o=i(41),l=i(47).f,c=i(60),d=i(101),h=i(104),u=i(43),p=i(106),f=!1,g=u("meta"),m=0,setMetadata=function(t){l(t,g,{value:{objectID:"O"+m++,weakData:{}}})},v=t.exports={enable:function(){v.enable=function(){};f=!0;var t=c.f,e=a([].splice),i={};i[g]=1;if(t(i).length){c.f=function(i){for(var s=t(i),a=0,r=s.length;a<r;a++)if(s[a]===g){e(s,a,1);break}return s};s({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d.f})}},fastKey:function(t,e){if(!n(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,g)){if(!h(t))return"F";if(!e)return"E";setMetadata(t)}return t[g].objectID},getWeakData:function(t,e){if(!o(t,g)){if(!h(t))return!0;if(!e)return!1;setMetadata(t)}return t[g].weakData},onFreeze:function(t){p&&f&&h(t)&&!o(t,g)&&setMetadata(t);return t}};r[g]=!0},(t,e,i)=>{var s=i(17),a=i(14),r=i(60).f,n=i(102),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function getOwnPropertyNames(t){return o&&"Window"==s(t)?function(t){try{return r(t)}catch(t){return n(o)}}(t):r(a(t))}},(t,e,i)=>{var s=i(63),a=i(66),r=i(103),n=Array,o=Math.max;t.exports=function(t,e,i){for(var l=a(t),c=s(e,l),d=s(void 0===i?l:i,l),h=n(o(d-c,0)),u=0;c<d;c++,u++)r(h,u,t[c]);h.length=u;return h}},(t,e,i)=>{"use strict";var s=i(20),a=i(47),r=i(13);t.exports=function(t,e,i){var n=s(e);n in t?a.f(t,n,r(0,i)):t[n]=i}},(t,e,i)=>{var s=i(9),a=i(22),r=i(17),n=i(105),o=Object.isExtensible,l=s((function(){o(1)}));t.exports=l||n?function isExtensible(t){return!!a(t)&&((!n||"ArrayBuffer"!=r(t))&&(!o||o(t)))}:o},(t,e,i)=>{var s=i(9);t.exports=s((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},(t,e,i)=>{var s=i(9);t.exports=!s((function(){return Object.isExtensible(Object.preventExtensions({}))}))},(t,e,i)=>{var s=i(108),a=i(10),r=i(49),n=i(34),o=i(110),l=i(66),c=i(27),d=i(111),h=i(112),u=i(113),p=TypeError,Result=function(t,e){this.stopped=t;this.result=e},f=Result.prototype;t.exports=function(t,e,i){var g,m,v,_,b,y,A,S=i&&i.that,P=!(!i||!i.AS_ENTRIES),w=!(!i||!i.IS_RECORD),x=!(!i||!i.IS_ITERATOR),E=!(!i||!i.INTERRUPTED),C=s(e,S),stop=function(t){g&&u(g,"normal",t);return new Result(!0,t)},callFn=function(t){if(P){r(t);return E?C(t[0],t[1],stop):C(t[0],t[1])}return E?C(t,stop):C(t)};if(w)g=t.iterator;else if(x)g=t;else{if(!(m=h(t)))throw p(n(t)+" is not iterable");if(o(m)){for(v=0,_=l(t);_>v;v++)if((b=callFn(t[v]))&&c(f,b))return b;return new Result(!1)}g=d(t,m)}y=w?t.next:g.next;for(;!(A=a(y,g)).done;){try{b=callFn(A.value)}catch(t){u(g,"throw",t)}if("object"==typeof b&&b&&c(f,b))return b}return new Result(!1)}},(t,e,i)=>{var s=i(109),a=i(33),r=i(11),n=s(s.bind);t.exports=function(t,e){a(t);return void 0===e?t:r?n(t,e):function(){return t.apply(e,arguments)}}},(t,e,i)=>{var s=i(17),a=i(16);t.exports=function(t){if("Function"===s(t))return a(t)}},(t,e,i)=>{var s=i(36),a=i(89),r=s("iterator"),n=Array.prototype;t.exports=function(t){return void 0!==t&&(a.Array===t||n[r]===t)}},(t,e,i)=>{var s=i(10),a=i(33),r=i(49),n=i(34),o=i(112),l=TypeError;t.exports=function(t,e){var i=arguments.length<2?o(t):e;if(a(i))return r(s(i,t));throw l(n(t)+" is not iterable")}},(t,e,i)=>{var s=i(81),a=i(32),r=i(19),n=i(89),o=i(36)("iterator");t.exports=function(t){if(!r(t))return a(t,o)||a(t,"@@iterator")||n[s(t)]}},(t,e,i)=>{var s=i(10),a=i(49),r=i(32);t.exports=function(t,e,i){var n,o;a(t);try{if(!(n=r(t,"return"))){if("throw"===e)throw i;return i}n=s(n,t)}catch(t){o=!0;n=t}if("throw"===e)throw i;if(o)throw n;a(n);return i}},(t,e,i)=>{var s=i(27),a=TypeError;t.exports=function(t,e){if(s(e,t))return t;throw a("Incorrect invocation")}},(t,e,i)=>{var s=i(36)("iterator"),a=!1;try{var r=0,n={next:function(){return{done:!!r++}},return:function(){a=!0}};n[s]=function(){return this};Array.from(n,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!a)return!1;var i=!1;try{var r={};r[s]=function(){return{next:function(){return{done:i=!0}}}};t(r)}catch(t){}return i}},(t,e,i)=>{var s=i(23),a=i(22),r=i(85);t.exports=function(t,e,i){var n,o;r&&s(n=e.constructor)&&n!==i&&a(o=n.prototype)&&o!==i.prototype&&r(t,o);return t}},(t,e,i)=>{"use strict";var s=i(47).f,a=i(72),r=i(118),n=i(108),o=i(114),l=i(19),c=i(107),d=i(90),h=i(94),u=i(119),p=i(8),f=i(100).fastKey,g=i(54),m=g.set,v=g.getterFor;t.exports={getConstructor:function(t,e,i,d){var h=t((function(t,s){o(t,u);m(t,{type:e,index:a(null),first:void 0,last:void 0,size:0});p||(t.size=0);l(s)||c(s,t[d],{that:t,AS_ENTRIES:i})})),u=h.prototype,g=v(e),define=function(t,e,i){var s,a,r=g(t),n=getEntry(t,e);if(n)n.value=i;else{r.last=n={index:a=f(e,!0),key:e,value:i,previous:s=r.last,next:void 0,removed:!1};r.first||(r.first=n);s&&(s.next=n);p?r.size++:t.size++;"F"!==a&&(r.index[a]=n)}return t},getEntry=function(t,e){var i,s=g(t),a=f(e);if("F"!==a)return s.index[a];for(i=s.first;i;i=i.next)if(i.key==e)return i};r(u,{clear:function clear(){for(var t=g(this),e=t.index,i=t.first;i;){i.removed=!0;i.previous&&(i.previous=i.previous.next=void 0);delete e[i.index];i=i.next}t.first=t.last=void 0;p?t.size=0:this.size=0},delete:function(t){var e=this,i=g(e),s=getEntry(e,t);if(s){var a=s.next,r=s.previous;delete i.index[s.index];s.removed=!0;r&&(r.next=a);a&&(a.previous=r);i.first==s&&(i.first=a);i.last==s&&(i.last=r);p?i.size--:e.size--}return!!s},forEach:function forEach(t){for(var e,i=g(this),s=n(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:i.first;){s(e.value,e.key,this);for(;e&&e.removed;)e=e.previous}},has:function has(t){return!!getEntry(this,t)}});r(u,i?{get:function get(t){var e=getEntry(this,t);return e&&e.value},set:function set(t,e){return define(this,0===t?0:t,e)}}:{add:function add(t){return define(this,t=0===t?0:t,t)}});p&&s(u,"size",{get:function(){return g(this).size}});return h},setStrong:function(t,e,i){var s=e+" Iterator",a=v(e),r=v(s);d(t,e,(function(t,e){m(this,{type:s,target:t,state:a(t),kind:e,last:void 0})}),(function(){for(var t=r(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;if(!t.target||!(t.last=i=i?i.next:t.state.first)){t.target=void 0;return h(void 0,!0)}return h("keys"==e?i.key:"values"==e?i.value:[i.key,i.value],!1)}),i?"entries":"values",!i,!0);u(e)}}},(t,e,i)=>{var s=i(50);t.exports=function(t,e,i){for(var a in e)s(t,a,e[a],i);return t}},(t,e,i)=>{"use strict";var s=i(26),a=i(47),r=i(36),n=i(8),o=r("species");t.exports=function(t){var e=s(t),i=a.f;n&&e&&!e[o]&&i(e,o,{configurable:!0,get:function(){return this}})}},(t,e,i)=>{i(121)},(t,e,i)=>{"use strict";i(99)("Set",(function(t){return function Set(){return t(this,arguments.length?arguments[0]:void 0)}}),i(117))},(t,e,i)=>{var s,a=i(38),r=i(5),n=i(6),o=i(26),l=i(16),c=i(9),d=i(43),h=i(23),u=i(123),p=i(19),f=i(22),g=i(25),m=i(107),v=i(49),_=i(81),b=i(41),y=i(103),A=i(46),S=i(66),P=i(124),w=i(125),x=i(127),E=i(128),C=i(129),k=i(30),M=i(130),T=i(131),R=i(132),I=n.Object,D=n.Array,O=n.Date,L=n.Error,G=n.EvalError,N=n.RangeError,j=n.ReferenceError,B=n.SyntaxError,W=n.TypeError,U=n.URIError,q=n.PerformanceMark,V=n.WebAssembly,z=V&&V.CompileError||L,H=V&&V.LinkError||L,X=V&&V.RuntimeError||L,$=o("DOMException"),Y=x.Map,K=x.has,J=x.get,Q=x.set,Z=E.Set,tt=E.add,et=o("Object","keys"),it=l([].push),st=l((!0).valueOf),rt=l(1..valueOf),nt=l("".valueOf),ot=l(O.prototype.getTime),lt=d("structuredClone"),ct="DataCloneError",dt="Transferring",checkBasicSemantic=function(t){return!c((function(){var e=new n.Set([7]),i=t(e),s=t(I(7));return i==e||!i.has(7)||"object"!=typeof s||7!=s}))&&t},checkErrorsCloning=function(t,e){return!c((function(){var i=new e,s=t({a:i,b:i});return!(s&&s.a===s.b&&s.a instanceof e&&s.a.stack===i.stack)}))},ht=n.structuredClone,ut=a||!checkErrorsCloning(ht,L)||!checkErrorsCloning(ht,$)||!(s=ht,!c((function(){var t=s(new n.AggregateError([1],lt,{cause:3}));return"AggregateError"!=t.name||1!=t.errors[0]||t.message!=lt||3!=t.cause}))),pt=!ht&&checkBasicSemantic((function(t){return new q(lt,{detail:t}).detail})),ft=checkBasicSemantic(ht)||pt,throwUncloneable=function(t){throw new $("Uncloneable type: "+t,ct)},throwUnpolyfillable=function(t,e){throw new $((e||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",ct)},structuredCloneInternal=function(t,e){g(t)&&throwUncloneable("Symbol");if(!f(t))return t;if(e){if(K(e,t))return J(e,t)}else e=new Y;var i,s,a,r,l,c,d,u,p,m,v=_(t),P=!1;switch(v){case"Array":a=D(S(t));P=!0;break;case"Object":a={};P=!0;break;case"Map":a=new Y;P=!0;break;case"Set":a=new Z;P=!0;break;case"RegExp":a=new RegExp(t.source,w(t));break;case"Error":switch(s=t.name){case"AggregateError":a=o("AggregateError")([]);break;case"EvalError":a=G();break;case"RangeError":a=N();break;case"ReferenceError":a=j();break;case"SyntaxError":a=B();break;case"TypeError":a=W();break;case"URIError":a=U();break;case"CompileError":a=z();break;case"LinkError":a=H();break;case"RuntimeError":a=X();break;default:a=L()}P=!0;break;case"DOMException":a=new $(t.message,t.name);P=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":i=n[v];f(i)||throwUnpolyfillable(v);a=new i(structuredCloneInternal(t.buffer,e),t.byteOffset,"DataView"===v?t.byteLength:t.length);break;case"DOMQuad":try{a=new DOMQuad(structuredCloneInternal(t.p1,e),structuredCloneInternal(t.p2,e),structuredCloneInternal(t.p3,e),structuredCloneInternal(t.p4,e))}catch(e){ft?a=ft(t):throwUnpolyfillable(v)}break;case"FileList":if(r=function(){var t;try{t=new n.DataTransfer}catch(e){try{t=new n.ClipboardEvent("").clipboardData}catch(t){}}return t&&t.items&&t.files?t:null}()){for(l=0,c=S(t);l<c;l++)r.items.add(structuredCloneInternal(t[l],e));a=r.files}else ft?a=ft(t):throwUnpolyfillable(v);break;case"ImageData":try{a=new ImageData(structuredCloneInternal(t.data,e),t.width,t.height,{colorSpace:t.colorSpace})}catch(e){ft?a=ft(t):throwUnpolyfillable(v)}break;default:if(ft)a=ft(t);else switch(v){case"BigInt":a=I(t.valueOf());break;case"Boolean":a=I(st(t));break;case"Number":a=I(rt(t));break;case"String":a=I(nt(t));break;case"Date":a=new O(ot(t));break;case"ArrayBuffer":(i=n.DataView)||"function"==typeof t.slice||throwUnpolyfillable(v);try{if("function"==typeof t.slice)a=t.slice(0);else{c=t.byteLength;a=new ArrayBuffer(c);p=new i(t);m=new i(a);for(l=0;l<c;l++)m.setUint8(l,p.getUint8(l))}}catch(t){throw new $("ArrayBuffer is detached",ct)}break;case"SharedArrayBuffer":a=t;break;case"Blob":try{a=t.slice(0,t.size,t.type)}catch(t){throwUnpolyfillable(v)}break;case"DOMPoint":case"DOMPointReadOnly":i=n[v];try{a=i.fromPoint?i.fromPoint(t):new i(t.x,t.y,t.z,t.w)}catch(t){throwUnpolyfillable(v)}break;case"DOMRect":case"DOMRectReadOnly":i=n[v];try{a=i.fromRect?i.fromRect(t):new i(t.x,t.y,t.width,t.height)}catch(t){throwUnpolyfillable(v)}break;case"DOMMatrix":case"DOMMatrixReadOnly":i=n[v];try{a=i.fromMatrix?i.fromMatrix(t):new i(t)}catch(t){throwUnpolyfillable(v)}break;case"AudioData":case"VideoFrame":h(t.clone)||throwUnpolyfillable(v);try{a=t.clone()}catch(t){throwUncloneable(v)}break;case"File":try{a=new File([t],t.name,t)}catch(t){throwUnpolyfillable(v)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":throwUnpolyfillable(v);default:throwUncloneable(v)}}Q(e,t,a);if(P)switch(v){case"Array":case"Object":d=et(t);for(l=0,c=S(d);l<c;l++){u=d[l];y(a,u,structuredCloneInternal(t[u],e))}break;case"Map":t.forEach((function(t,i){Q(a,structuredCloneInternal(i,e),structuredCloneInternal(t,e))}));break;case"Set":t.forEach((function(t){tt(a,structuredCloneInternal(t,e))}));break;case"Error":A(a,"message",structuredCloneInternal(t.message,e));b(t,"cause")&&A(a,"cause",structuredCloneInternal(t.cause,e));"AggregateError"==s&&(a.errors=structuredCloneInternal(t.errors,e));case"DOMException":C&&A(a,"stack",structuredCloneInternal(t.stack,e))}return a},gt=ht&&!c((function(){if(T&&k>92||R&&k>94||M&&k>97)return!1;var t=new ArrayBuffer(8),e=ht(t,{transfer:[t]});return 0!=t.byteLength||8!=e.byteLength})),tryToTransfer=function(t,e){if(!f(t))throw W("Transfer option cannot be converted to a sequence");var i=[];m(t,(function(t){it(i,v(t))}));var s,a,r,o,l,c,d=0,p=S(i);if(gt){o=ht(i,{transfer:i});for(;d<p;)Q(e,i[d],o[d++])}else for(;d<p;){s=i[d++];if(K(e,s))throw new $("Duplicate transferable",ct);switch(a=_(s)){case"ImageBitmap":r=n.OffscreenCanvas;u(r)||throwUnpolyfillable(a,dt);try{(c=new r(s.width,s.height)).getContext("bitmaprenderer").transferFromImageBitmap(s);l=c.transferToImageBitmap()}catch(t){}break;case"AudioData":case"VideoFrame":h(s.clone)&&h(s.close)||throwUnpolyfillable(a,dt);try{l=s.clone();s.close()}catch(t){}break;case"ArrayBuffer":case"MediaSourceHandle":case"MessagePort":case"Offsc