filestack-js 3.32.2 → 3.32.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,8 +22,8 @@
22
22
  * SOFTWARE.
23
23
  *
24
24
  */
25
- var filestack=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=70)}([function(t,e,r){"use strict";r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a})),r.d(e,"d",(function(){return s}));var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var o=function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{c(n.next(t))}catch(t){o(t)}}function s(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((n=n.apply(t,e||[])).next())}))}function s(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError},function(t,e,r){"use strict";r.r(e),r.d(e,"resolveCdnUrl",(function(){return m})),r.d(e,"resolveHost",(function(){return h})),r.d(e,"removeEmpty",(function(){return y})),r.d(e,"uniqueTime",(function(){return v})),r.d(e,"uniqueId",(function(){return g})),r.d(e,"getMimetype",(function(){return b})),r.d(e,"extensionToMime",(function(){return x})),r.d(e,"sanitizeName",(function(){return w})),r.d(e,"filterObject",(function(){return k})),r.d(e,"cleanUpCallbacks",(function(){return _})),r.d(e,"md5",(function(){return u})),r.d(e,"b64",(function(){return p})),r.d(e,"getVersion",(function(){return l})),r.d(e,"isMobile",(function(){return f})),r.d(e,"isFacebook",(function(){return d}));var n=r(0),i={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/octet-stream":["bin","dms","tdms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","msp","buffer","psdata","indt","hpd","mxd","indd","vsm","hpt"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jpg":["jpeg","jpg","jpe"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"application/font-ttf":"ttf","application/vnd.ms-fontobject":"eot","application/font-otf":"otf","text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard","vcr"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"],"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["keynote","key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.key":["key"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.ms-visio.drawing.main+xml":["vsdx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/vnd.avi":["avi"],"video/x-msvideo":["avi"],"video/avi":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"],"application/x-msi":"msi","application/x-ms":"ms","application/vnd.geo+json":"geojson","application/vnd.debian.binary-package":"deb","application/font-woff":"woff","application/font-woff2":"woff2","application/x-font-ttf":["ttc","ttf"],"font/opentype":"otf","application/x-bb-appworld":"bbaw","application/x-cd-image":"iso","application/x-opera-extension":"oex","application/x-ms-dos-executable":"exe","text/vnd.rim.location.xloc":"xloc","application/x-desktop":"desktop","application/x-typescript":"ts","application/x-java-archive":"jar","application/x-sharedlib":"so"},o=r(29);var a,s=r(30),c=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i,u=function(t){return btoa(s.ArrayBuffer.hash(t,!0))},p=function(t,e){void 0===e&&(e=!1);var r=btoa(t);return e?r.replace(/\//g,"_").replace(/\+/g,"-"):r},l=function(){return"JS-3.32.2"},f=function(){return navigator&&navigator.userAgent&&c.test(navigator.userAgent)},d=function(){return navigator&&navigator.userAgent&&/\[FB.*;/i.test(navigator.userAgent)},m=function(t,e){var r=t.urls.cdnUrl;if(e&&(0===e.indexOf("src:")||0===e.indexOf("http"))){if(!t.apikey)throw new Error("Api key is required when storage alias is provided");return"".concat(r,"/").concat(t.apikey)}return r},h=function(t,e){if(!e)return t;var r=/filestackapi.com|filestackcontent.com/i;return Object.keys(t).forEach((function(n){t[n]=t[n].replace(r,e)})),t},y=function(t){var e=Object(n.a)({},t);return Object.keys(e).forEach((function(t){return!e[t]&&"boolean"!=typeof e[t]&&delete e[t]})),e},v=function(){var t=Date.now();return a=t===a?t+1:t},g=function(t){return void 0===t&&(t=10),new Array(t).join().replace(/(.|$)/g,(function(){return(36*Math.random()|0).toString(36)[Math.random()<.5?"toString":"toUpperCase"]()}))},b=function(t,e){return Object(n.b)(void 0,void 0,void 0,(function(){var r,i,a,s;return Object(n.d)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,Object(o.fromBuffer)(t)];case 1:return r=n.sent(),[3,3];case 2:return i=n.sent(),console.warn("An exception occurred while processing the buffer:",i.message),[3,3];case 3:if(e&&e.indexOf(".")>-1&&(a=x(e)))return[2,a];if(s=["text/plain","application/octet-stream","application/x-ms","application/x-msi","application/zip"],r&&-1===s.indexOf(r.mime))return[2,r.mime];try{if(function(t){if(!t)return!1;for(var e=0,r=t.length;e<r;)if(t[e]<=127)e++;else{if(t[e]>=194&&t[e]<=223){if(t[e+1]>>6==2){e+=2;continue}return!1}if((224===t[e]&&t[e+1]>=160&&t[e+1]<=191||237===t[e]&&t[e+1]>=128&&t[e+1]<=159)&&t[e+2]>>6==2)e+=3;else if((t[e]>=225&&t[e]<=236||t[e]>=238&&t[e]<=239)&&t[e+1]>>6==2&&t[e+2]>>6==2)e+=3;else{if(!(240===t[e]&&t[e+1]>=144&&t[e+1]<=191||t[e]>=241&&t[e]<=243&&t[e+1]>>6==2||244===t[e]&&t[e+1]>=128&&t[e+1]<=143)||t[e+2]>>6!=2||t[e+3]>>6!=2)return!1;e+=4}}return!0}(t))return[2,"text/plain"]}catch(t){console.warn("Additional mimetype checks (text/plain) are currently not supported for browsers")}return r?[2,r.mime]:[2,"application/octet-stream"]}}))}))},x=function(t){if(t&&0!==t.length){if(2===t.split("/").length)return t;t.indexOf(".")>-1&&(t=t.split(".").pop()),t=t.toLocaleLowerCase();for(var e=Object.keys(i),r=e.length,n=0;n<r;n++)if(i[e[n]].indexOf(t)>-1)return e[n]}},w=function(t,e){if(void 0===e&&(e=!0),"boolean"==typeof e&&!e)return t;var r,n="boolean"!=typeof e&&e.replacement?e.replacement:"-",i="boolean"!=typeof e&&e.exclude?e.exclude:["\\","{","}","|","%","`",'"',"'","~","[","]","#","|","^","<",">"];if(!t||0===t.length)return"undefined";var o=t.split(".");return o.length>1&&(r=o.pop()),"".concat(o.join(".").split("").map((function(t){return i.indexOf(t)>-1?n:t})).join("")).concat(r?"."+r:"")},k=function(t,e){return e&&0!==e.length?0===Object.keys(t).length?t:Object.keys(t).filter((function(t){return e.indexOf(t)>-1})).reduce((function(e,r){var i;return Object(n.a)(Object(n.a)({},e),((i={})[r]=t[r],i))}),{}):t},_=function t(e){return e&&0!==Object.keys(e).length?(Object.keys(e).forEach((function(r){"function"==typeof e[r]&&(e[r]=void 0),e[r]===Object(e[r])&&(e[r]=t(e[r]))})),e):e}},function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return o}));var n,i=r(0);!function(t){t.ABORTED="ABORTED",t.NETWORK="NETWORK",t.TIMEOUT="TIMEDOUT",t.SERVER="SERVER",t.REQUEST="REQUEST",t.OTHER="OTHER",t.REDIRECT="REDIRECT"}(n||(n={}));var o=function(t){function e(e,r,n,i){var o,a,s,c=this.constructor,u=t.call(this,e)||this;return u.config=r,u.response=n,u.code=i,o=u,a=c.prototype,(s=Object.setPrototypeOf)?s(o,a):o.__proto__=a,u}return Object(i.c)(e,t),e}(Error)},function(t,e,r){(function(n){var i;e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(n++,"%c"===t&&(i=n))})),e.splice(i,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){var t;try{t=e.storage.getItem("debug")}catch(t){}!t&&void 0!==n&&"env"in n&&(t=n.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(i=!1,function(){i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||function(){},t.exports=r(53)(e),t.exports.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,r(25))},function(t,e,r){"use strict";r.d(e,"a",(function(){return a})),r.d(e,"f",(function(){return s})),r.d(e,"d",(function(){return c})),r.d(e,"b",(function(){return u})),r.d(e,"h",(function(){return p})),r.d(e,"e",(function(){return l})),r.d(e,"i",(function(){return f})),r.d(e,"c",(function(){return n})),r.d(e,"g",(function(){return i}));var n=function(){return!1},i=function(){return!1};function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=function(t){return"[object ArrayBuffer]"===Object.prototype.toString.call(t)},s=function(t){return null!==t&&"object"===o(t)},c=function(t){return"[object File]"===Object.prototype.toString.call(t)},u=function(t){return"[object Blob]"===Object.prototype.toString.call(t)},p=function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},l=function(t){return"undefined"!=typeof FormData&&t instanceof FormData},f=function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}},function(t,e,r){"use strict";var n;r.d(e,"a",(function(){return n})),function(t){t.GET="GET",t.DELETE="DELETE",t.HEAD="HEAD",t.PURGE="PURGE",t.OPTIONS="OPTIONS",t.POST="POST",t.PUT="PUT",t.PATH="PATH"}(n||(n={}))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a}));var n=r(11),i={};function o(){return Object(n.b)()?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(t,e,r){var n=r||o(),i=n.__SENTRY__=n.__SENTRY__||{};return i[t]||(i[t]=e())}}).call(this,r(15))},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function s(t,e,r,n,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new a(r,n||t,o),c=i?i+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],s]:t._events[c].push(s):(t._events[c]=s,t._eventsCount++),t}function c(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),u.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},u.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,a=new Array(o);n<o;n++)a[n]=r[n].fn;return a},u.prototype.listenerCount=function(t){var e=i?i+t:t,r=this._events[e];return r?r.fn?1:r.length:0},u.prototype.emit=function(t,e,r,n,o,a){var s=i?i+t:t;if(!this._events[s])return!1;var c,u,p=this._events[s],l=arguments.length;if(p.fn){switch(p.once&&this.removeListener(t,p.fn,void 0,!0),l){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,e),!0;case 3:return p.fn.call(p.context,e,r),!0;case 4:return p.fn.call(p.context,e,r,n),!0;case 5:return p.fn.call(p.context,e,r,n,o),!0;case 6:return p.fn.call(p.context,e,r,n,o,a),!0}for(u=1,c=new Array(l-1);u<l;u++)c[u-1]=arguments[u];p.fn.apply(p.context,c)}else{var f,d=p.length;for(u=0;u<d;u++)switch(p[u].once&&this.removeListener(t,p[u].fn,void 0,!0),l){case 1:p[u].fn.call(p[u].context);break;case 2:p[u].fn.call(p[u].context,e);break;case 3:p[u].fn.call(p[u].context,e,r);break;case 4:p[u].fn.call(p[u].context,e,r,n);break;default:if(!c)for(f=1,c=new Array(l-1);f<l;f++)c[f-1]=arguments[f];p[u].fn.apply(p[u].context,c)}}return!0},u.prototype.on=function(t,e,r){return s(this,t,e,r,!1)},u.prototype.once=function(t,e,r){return s(this,t,e,r,!0)},u.prototype.removeListener=function(t,e,r,n){var o=i?i+t:t;if(!this._events[o])return this;if(!e)return c(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||n&&!a.once||r&&a.context!==r||c(this,o);else{for(var s=0,u=[],p=a.length;s<p;s++)(a[s].fn!==e||n&&!a[s].once||r&&a[s].context!==r)&&u.push(a[s]);u.length?this._events[o]=1===u.length?u[0]:u:c(this,o)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&c(this,e)):(this._events=new o,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=i,u.EventEmitter=u,t.exports=u},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=r(14),o=e.ValidationError=function(t,e,r,n,i,o){if(Array.isArray(n)?(this.path=n,this.property=n.reduce((function(t,e){return t+f(e)}),"instance")):void 0!==n&&(this.property=n),t&&(this.message=t),r){var a=r.$id||r.id;this.schema=a||r}void 0!==e&&(this.instance=e),this.name=i,this.argument=o,this.stack=this.toString()};o.prototype.toString=function(){return this.property+" "+this.message};var a=e.ValidatorResult=function(t,e,r,n){this.instance=t,this.schema=e,this.options=r,this.path=n.path,this.propertyPath=n.propertyPath,this.errors=[],this.throwError=r&&r.throwError,this.throwFirst=r&&r.throwFirst,this.throwAll=r&&r.throwAll,this.disableFormat=r&&!0===r.disableFormat};function s(t,e){return e+": "+t.toString()+"\n"}function c(t){Error.captureStackTrace&&Error.captureStackTrace(this,c),this.instance=t.instance,this.schema=t.schema,this.options=t.options,this.errors=t.errors}a.prototype.addError=function(t){var e;if("string"==typeof t)e=new o(t,this.instance,this.schema,this.path);else{if(!t)throw new Error("Missing error detail");if(!t.message)throw new Error("Missing error message");if(!t.name)throw new Error("Missing validator type");e=new o(t.message,this.instance,this.schema,this.path,t.name,t.argument)}if(this.errors.push(e),this.throwFirst)throw new c(this);if(this.throwError)throw e;return e},a.prototype.importErrors=function(t){"string"==typeof t||t&&t.validatorType?this.addError(t):t&&t.errors&&(this.errors=this.errors.concat(t.errors))},a.prototype.toString=function(t){return this.errors.map(s).join("")},Object.defineProperty(a.prototype,"valid",{get:function(){return!this.errors.length}}),t.exports.ValidatorResultError=c,c.prototype=new Error,c.prototype.constructor=c,c.prototype.name="Validation Error";var u=e.SchemaError=function t(e,r){this.message=e,this.schema=r,Error.call(this,e),Error.captureStackTrace(this,t)};u.prototype=Object.create(Error.prototype,{constructor:{value:u,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var p=e.SchemaContext=function(t,e,r,n,i){this.schema=t,this.options=e,Array.isArray(r)?(this.path=r,this.propertyPath=r.reduce((function(t,e){return t+f(e)}),"instance")):this.propertyPath=r,this.base=n,this.schemas=i};p.prototype.resolve=function(t){return i.resolve(this.base,t)},p.prototype.makeChild=function(t,e){var r=void 0===e?this.path:this.path.concat([e]),n=t.$id||t.id,o=i.resolve(this.base,n||""),a=new p(t,this.options,r,o,Object.create(this.schemas));return n&&!a.schemas[o]&&(a.schemas[o]=t),a};var l=e.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:(?:[!#-\[\]-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|\\(?:[\t -\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*"|(?:[!#-'\*\+\x2D\/-9=\?A-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:\.?(?:[!#-'\*\+\x2D\/-9=\?A-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*)@((?:[!#-'\*\+\x2D\/-9=\?A-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:\.?(?:[!#-'\*\+\x2D\/-9=\?A-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|\[(?:[!-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*\])$/,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][\+\x2D\.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:(?:[!\$&-\.0-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|[\/\?])|\?)(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|([A-Za-z][\+\x2D\.0-9A-Za-z]*:?)?)|([A-Za-z][\+\x2D\.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))+|(\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?)(:[0-9]*)?[\/\?]|(?:[!\$&-\.0-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|(\/((%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))+|(\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?)(:[0-9]*)?)?))#(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|(([A-Za-z][\+\x2D\.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=@_~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|[A-Za-z][\+\x2D\.0-9A-Za-z]*(?:[!\$&-\*,;=@_~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))(%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=@-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*((([\/\?](%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*)?#|[\/\?])(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*)?|([A-Za-z][\+\x2D\.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:(?:[!\$&-\.0-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|[\/\?])|\?)(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|([A-Za-z][\+\x2D\.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))+|(\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?)(:[0-9]*)?[\/\?]|(?:[!\$&-\.0-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|\/((%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))+(:[0-9]*)?|(\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?:[0-9]*|\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?)?|[A-Za-z][\+\x2D\.0-9A-Za-z]*:?)?$/,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#\$&\(-;=\?@\[\]_a-z~\u017F\u212A]|\{[!#&\+,\.\/;=\?@\|]?(%[0-9a-f]{2}|[0-9_a-z\u017F\u212A])(\.?(%[0-9a-f]{2}|[0-9_a-z\u017F\u212A]))*(:[1-9][0-9]{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z\u017F\u212A])(\.?(%[0-9a-f]{2}|[0-9_a-z\u017F\u212A]))*(:[1-9][0-9]{0,3}|\*)?)*\})*/i,"json-pointer":/^(\/([\0-\.0-@\[-\}\x7F\u017F\u212A]|~[01])*)*$/i,"relative-json-pointer":/^[0-9]+(#|(\/([\0-\.0-@\[-\}\x7F\u017F\u212A]|~[01])*)*)$/i,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(t){return"string"==typeof t&&parseFloat(t)===parseInt(t,10)&&!isNaN(t)},regex:function(t){var e=!0;try{new RegExp(t)}catch(t){e=!1}return e},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],e.isFormat=function(t,e,r){if("string"==typeof t&&void 0!==l[e]){if(l[e]instanceof RegExp)return l[e].test(t);if("function"==typeof l[e])return l[e](t)}else if(r&&r.customFormats&&"function"==typeof r.customFormats[e])return r.customFormats[e](t);return!0};var f=e.makeSuffix=function(t){return(t=t.toString()).match(/[.\s\[\]]/)||t.match(/^[\d]/)?t.match(/^\d+$/)?"["+t+"]":"["+JSON.stringify(t)+"]":"."+t};function d(t,e,r,i){"object"===n(r)?e[i]=y(t[i],r):-1===t.indexOf(r)&&e.push(r)}function m(t,e,r){e[r]=t[r]}function h(t,e,r,i){"object"===n(e[i])&&e[i]&&t[i]?r[i]=y(t[i],e[i]):r[i]=e[i]}function y(t,e){var r=Array.isArray(e),i=r&&[]||{};return r?(t=t||[],i=i.concat(t),e.forEach(d.bind(null,t,i))):(t&&"object"===n(t)&&Object.keys(t).forEach(m.bind(null,t,i)),Object.keys(e).forEach(h.bind(null,t,e,i))),i}function v(t){return"/"+encodeURIComponent(t).replace(/~/g,"%7E")}e.deepCompareStrict=function t(e,r){if(n(e)!==n(r))return!1;if(Array.isArray(e))return!!Array.isArray(r)&&(e.length===r.length&&e.every((function(n,i){return t(e[i],r[i])})));if("object"===n(e)){if(!e||!r)return e===r;var i=Object.keys(e),o=Object.keys(r);return i.length===o.length&&i.every((function(n){return t(e[n],r[n])}))}return e===r},t.exports.deepMerge=y,e.objectGetPath=function(t,e){for(var r,n=e.split("/").slice(1);"string"==typeof(r=n.shift());){var i=decodeURIComponent(r.replace(/~0/,"~").replace(/~1/g,"/"));if(!(i in t))return;t=t[i]}return t},e.encodePath=function(t){return t.map(v).join("")},e.getDecimalPlaces=function(t){var e=0;if(isNaN(t))return e;"number"!=typeof t&&(t=Number(t));var r=t.toString().split("e");if(2===r.length){if("-"!==r[1][0])return e;e=Number(r[1].slice(1))}var n=r[0].split(".");return 2===n.length&&(e+=n[1].length),e},e.isSchema=function(t){return"object"===n(t)&&t||"boolean"==typeof t}},function(t,e,r){"use strict";r.d(e,"b",(function(){return o})),r.d(e,"d",(function(){return d})),r.d(e,"c",(function(){return h})),r.d(e,"a",(function(){return v})),r.d(e,"e",(function(){return b.a}));var n=r(4),i=["expires","from","host","if-modified-since","if-unmodified-since","age","authorization","content-length","content-type","etag","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],o=function(t){var e,r,o,a={};return t?(t.split("\n").forEach((function(t){o=t.indexOf(":"),e=Object(n.i)(t.substr(0,o)).toLowerCase(),r=Object(n.i)(t.substr(o+1)),e&&(a[e]&&i.indexOf(e)>=0||(a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r))})),a):a},a=function(t,e,r,n){void 0===n&&(n=!1);var i=s(e);return t||(t={}),void 0===(t=JSON.parse(JSON.stringify(t)))[e]&&void 0===t[i]?t[i]=r:n&&(delete t[e],t[i]=r),t},s=function(t){var e={"content-md5":"Content-MD5",dnt:"DNT",etag:"ETag","last-event-id":"Last-Event-ID",tcn:"TCN",te:"TE","www-authenticate":"WWW-Authenticate","x-dnsprefetch-control":"X-DNSPrefetch-Control"}[t.toLowerCase()];return e||t.split("-").map((function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()})).join("-")},c=r(0),u=r(1),p=r(20),l=r(3),f=r.n(l)()("fs:request:data"),d=function(t){return t=m(t),Object(n.e)(t.data)||Object(n.c)(t.data)||Object(n.g)(t.data)||Object(n.d)(t.data)||Object(n.b)(t.data)||Object(n.a)(t.data)||(Object(n.h)(t.data)?(t.headers=a(t.headers,"content-type","application/x-www-form-urlencoded;charset=utf-8"),t.data=t.data.toString()):Object(n.f)(t.data)&&(t.headers=a(t.headers,"content-type","application/json",!0),t.data=JSON.stringify(t.data))),t},m=function(t){return t.filestackHeaders?(t.headers=a(t.headers,"filestack-source",Object(u.getVersion)()),t.headers=a(t.headers,"filestack-trace-id","".concat(Math.floor(Date.now()/1e3),"-").concat(Object(u.uniqueId)())),t.headers=a(t.headers,"filestack-trace-span","jssdk-".concat(Object(u.uniqueId)())),t):t},h=function(t){return Object(c.b)(void 0,void 0,void 0,(function(){var e,r;return Object(c.d)(this,(function(i){if(!t.headers||!t.headers["content-type"])return[2,Promise.resolve(t)];if(e=t.headers["content-type"],/application\/json/.test(e))try{t.data=JSON.parse(t.data)}catch(e){f("Cannot parse response %O - %O",t.data,t.headers)}else/text\/(plain|html)/.test(e)?Object(n.c)(t.data)&&(t.data=y(t.data)):/application\/xml/.test(e)&&(r=t.data,Object(n.c)(t.data)&&(r=y(t.data)),!0===p.XMLValidator.validate(r)&&(t.data=new p.XMLParser({ignoreDeclaration:!0,ignoreAttributes:!0,trimValues:!0}).parse(r)));return[2,Promise.resolve(t)]}))}))};function y(t){for(var e=new Uint16Array(t),r=e.length,n="",i=Math.pow(2,16)-1,o=0;o<r;o+=i)o+i>r&&(i=r-o),n+=String.fromCharCode.apply(null,e.subarray(o,o+i));return n}var v=function(t,e){if(!e)return t;var r=g(e),n=t.indexOf("#");return-1!==n&&(t=t.slice(0,n)),t+(-1===t.indexOf("?")?"?":"&")+r},g=function(t){return Object.keys(t).filter((function(e){return e&&void 0!==t[e]})).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e]))})).join("&")},b=r(12)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var n=r(19);Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return n.EndOfStreamError}});var i=r(44);Object.defineProperty(e,"StreamReader",{enumerable:!0,get:function(){return i.StreamReader}})},function(t,e,r){"use strict";(function(t,n){r.d(e,"b",(function(){return o})),r.d(e,"a",(function(){return a}));var i=r(33);function o(){return!Object(i.a)()&&"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)}function a(t,e){return t.require(e)}}).call(this,r(25),r(28)(t))},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(2),i=r(3),o=r.n(i)()("fs:request:shouldRetry"),a=function(t){switch(o("Checking error for retry. Code: %n, type: %s",t.response?t.response.status:"Malformed response",t.code),t.code){case n.b.NETWORK:case n.b.SERVER:case n.b.TIMEOUT:return!0;case n.b.ABORTED:return!1}return!!t.response&&(500<=t.response.status&&t.response.status<=599)}},function(t,e,r){"use strict";var n=t.exports.Validator=r(34);t.exports.ValidatorResult=r(8).ValidatorResult,t.exports.ValidatorResultError=r(8).ValidatorResultError,t.exports.ValidationError=r(8).ValidationError,t.exports.SchemaError=r(8).SchemaError,t.exports.SchemaScanResult=r(16).SchemaScanResult,t.exports.scan=r(16).scan,t.exports.validate=function(t,e,r){return(new n).validate(t,e,r)}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=r(35),o=r(36);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=x,e.resolve=function(t,e){return x(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?x(t,!1,!0).resolveObject(e):e},e.format=function(t){o.isString(t)&&(t=x(t));return t instanceof a?t.format():a.prototype.format.call(t)},e.Url=a;var s=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(p),f=["%","/","?",";","#"].concat(l),d=["/","?","#"],m=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=r(37);function x(t,e,r){if(t&&o.isObject(t)&&t instanceof a)return t;var n=new a;return n.parse(t,e,r),n}a.prototype.parse=function(t,e,r){if(!o.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+n(t));var a=t.indexOf("?"),c=-1!==a&&a<t.indexOf("#")?"?":"#",p=t.split(c);p[0]=p[0].replace(/\\/g,"/");var x=t=p.join(c);if(x=x.trim(),!r&&1===t.split("#").length){var w=u.exec(x);if(w)return this.path=x,this.href=x,this.pathname=w[1],w[2]?(this.search=w[2],this.query=e?b.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var k=s.exec(x);if(k){var _=(k=k[0]).toLowerCase();this.protocol=_,x=x.substr(k.length)}if(r||k||x.match(/^\/\/[^@\/]+@[^@\/]+/)){var F="//"===x.substr(0,2);!F||k&&v[k]||(x=x.substr(2),this.slashes=!0)}if(!v[k]&&(F||k&&!g[k])){for(var E,O,j=-1,S=0;S<d.length;S++){-1!==(T=x.indexOf(d[S]))&&(-1===j||T<j)&&(j=T)}-1!==(O=-1===j?x.lastIndexOf("@"):x.lastIndexOf("@",j))&&(E=x.slice(0,O),x=x.slice(O+1),this.auth=decodeURIComponent(E)),j=-1;for(S=0;S<f.length;S++){var T;-1!==(T=x.indexOf(f[S]))&&(-1===j||T<j)&&(j=T)}-1===j&&(j=x.length),this.host=x.slice(0,j),x=x.slice(j),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var A=this.hostname.split(/\./),C=(S=0,A.length);S<C;S++){var D=A[S];if(D&&!D.match(m)){for(var I="",L=0,N=D.length;L<N;L++)D.charCodeAt(L)>127?I+="x":I+=D[L];if(!I.match(m)){var z=A.slice(0,S),B=A.slice(S+1),M=D.match(h);M&&(z.push(M[1]),B.unshift(M[2])),B.length&&(x="/"+B.join(".")+x),this.hostname=z.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=i.toASCII(this.hostname));var R=this.port?":"+this.port:"",$=this.hostname||"";this.host=$+R,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==x[0]&&(x="/"+x))}if(!y[_])for(S=0,C=l.length;S<C;S++){var U=l[S];if(-1!==x.indexOf(U)){var q=encodeURIComponent(U);q===U&&(q=escape(U)),x=x.split(U).join(q)}}var V=x.indexOf("#");-1!==V&&(this.hash=x.substr(V),x=x.slice(0,V));var G=x.indexOf("?");if(-1!==G?(this.search=x.substr(G),this.query=x.substr(G+1),e&&(this.query=b.parse(this.query)),x=x.slice(0,G)):e&&(this.search="",this.query={}),x&&(this.pathname=x),g[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){R=this.pathname||"";var Z=this.search||"";this.path=R+Z}return this.href=this.format(),this},a.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,a="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=b.stringify(this.query));var s=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||g[e])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),e+i+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(s=s.replace("#","%23"))+n},a.prototype.resolve=function(t){return this.resolveObject(x(t,!1,!0)).format()},a.prototype.resolveObject=function(t){if(o.isString(t)){var e=new a;e.parse(t,!1,!0),t=e}for(var r=new a,n=Object.keys(this),i=0;i<n.length;i++){var s=n[i];r[s]=this[s]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var c=Object.keys(t),u=0;u<c.length;u++){var p=c[u];"protocol"!==p&&(r[p]=t[p])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!g[t.protocol]){for(var l=Object.keys(t),f=0;f<l.length;f++){var d=l[f];r[d]=t[d]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||v[t.protocol])r.pathname=t.pathname;else{for(var m=(t.pathname||"").split("/");m.length&&!(t.host=m.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==m[0]&&m.unshift(""),m.length<2&&m.unshift(""),r.pathname=m.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var h=r.pathname||"",y=r.search||"";r.path=h+y}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),x=t.host||t.pathname&&"/"===t.pathname.charAt(0),w=x||b||r.host&&t.pathname,k=w,_=r.pathname&&r.pathname.split("/")||[],F=(m=t.pathname&&t.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(F&&(r.hostname="",r.port=null,r.host&&(""===_[0]?_[0]=r.host:_.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===m[0]?m[0]=t.host:m.unshift(t.host)),t.host=null),w=w&&(""===m[0]||""===_[0])),x)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,_=m;else if(m.length)_||(_=[]),_.pop(),_=_.concat(m),r.search=t.search,r.query=t.query;else if(!o.isNullOrUndefined(t.search)){if(F)r.hostname=r.host=_.shift(),(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift());return r.search=t.search,r.query=t.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!_.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=_.slice(-1)[0],O=(r.host||t.host||_.length>1)&&("."===E||".."===E)||""===E,j=0,S=_.length;S>=0;S--)"."===(E=_[S])?_.splice(S,1):".."===E?(_.splice(S,1),j++):j&&(_.splice(S,1),j--);if(!w&&!k)for(;j--;j)_.unshift("..");!w||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),O&&"/"!==_.join("/").substr(-1)&&_.push("");var T,P=""===_[0]||_[0]&&"/"===_[0].charAt(0);F&&(r.hostname=r.host=P?"":_.length?_.shift():"",(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift()));return(w=w||r.host&&_.length)&&!P&&_.unshift(""),_.length?r.pathname=_.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var t=this.host,e=c.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=r(14),o=r(8);function a(t,e){this.id=t,this.ref=e}t.exports.SchemaScanResult=a,t.exports.scan=function(t,e){function r(t,e){if(e&&"object"==n(e))if(e.$ref){var a=i.resolve(t,e.$ref);p[a]=p[a]?p[a]+1:0}else{var l=e.$id||e.id,f=l?i.resolve(t,l):t;if(f){if(f.indexOf("#")<0&&(f+="#"),u[f]){if(!o.deepCompareStrict(u[f],e))throw new Error("Schema <"+f+"> already exists with different definition");return u[f]}u[f]=e,"#"==f[f.length-1]&&(u[f.substring(0,f.length-1)]=e)}s(f+"/items",Array.isArray(e.items)?e.items:[e.items]),s(f+"/extends",Array.isArray(e.extends)?e.extends:[e.extends]),r(f+"/additionalItems",e.additionalItems),c(f+"/properties",e.properties),r(f+"/additionalProperties",e.additionalProperties),c(f+"/definitions",e.definitions),c(f+"/patternProperties",e.patternProperties),c(f+"/dependencies",e.dependencies),s(f+"/disallow",e.disallow),s(f+"/allOf",e.allOf),s(f+"/anyOf",e.anyOf),s(f+"/oneOf",e.oneOf),r(f+"/not",e.not)}}function s(t,e){if(Array.isArray(e))for(var n=0;n<e.length;n++)r(t+"/"+n,e[n])}function c(t,e){if(e&&"object"==n(e))for(var i in e)r(t+"/"+i,e[i])}var u={},p={};return r(t,e),new a(u,p)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromBuffer=e.fromStream=e.EndOfStreamError=void 0;var n=r(43),i=r(46),o=r(10);Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return o.EndOfStreamError}}),e.fromStream=function(t,e){return e=e||{},new n.ReadStreamTokenizer(t,e)},e.fromBuffer=function(t,e){return new i.BufferTokenizer(t,e)}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new A(n||[]);return a(o,"_invoke",{value:j(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",h="executing",y="completed",v={};function g(){}function b(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(C([])));_&&_!==r&&o.call(_,c)&&(w=_);var F=x.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,s,c){var u=d(t[i],t,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var i=m;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var u=d(e,r,n);if("normal"===u.type){if(i=n.done?y:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=x,a(F,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,p,"GeneratorFunction")),t.prototype=Object.create(F),t},e.awrap=function(t){return{__await:t}},E(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(F),l(F,p,"Generator"),l(F,c,(function(){return this})),l(F,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function c(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractTokenizer=void 0;var u=r(10),p=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=e||{}}var e,r,n,o,c,p,l,f,d;return e=t,(r=[{key:"readToken",value:(d=a(i().mark((function t(e){var r,n,o=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:this.position,n=Buffer.alloc(e.len),t.next=4,this.readBuffer(n,{position:r});case 4:if(!(t.sent<e.len)){t.next=7;break}throw new u.EndOfStreamError;case 7:return t.abrupt("return",e.get(n,0));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return d.apply(this,arguments)})},{key:"peekToken",value:(f=a(i().mark((function t(e){var r,n,o=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:this.position,n=Buffer.alloc(e.len),t.next=4,this.peekBuffer(n,{position:r});case 4:if(!(t.sent<e.len)){t.next=7;break}throw new u.EndOfStreamError;case 7:return t.abrupt("return",e.get(n,0));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"readNumber",value:(l=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.readBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new u.EndOfStreamError;case 5:return t.abrupt("return",e.get(this.numBuffer,0));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"peekNumber",value:(p=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.peekBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new u.EndOfStreamError;case 5:return t.abrupt("return",e.get(this.numBuffer,0));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return p.apply(this,arguments)})},{key:"ignore",value:(c=a(i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===this.fileInfo.size){t.next=5;break}if(r=this.fileInfo.size-this.position,!(e>r)){t.next=5;break}return this.position+=r,t.abrupt("return",r);case 5:return this.position+=e,t.abrupt("return",e);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"close",value:(o=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)})},{key:"normalizeOptions",value:function(t,e){if(e&&void 0!==e.position&&e.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return e?{mayBeLess:!0===e.mayBeLess,offset:e.offset?e.offset:0,length:e.length?e.length:t.length-(e.offset?e.offset:0),position:e.position?e.position:this.position}:{mayBeLess:!1,offset:0,length:t.length,position:this.position}}}])&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.AbstractTokenizer=p},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}function a(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function s(t){var e="function"==typeof Map?new Map:void 0;return(s=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return c(t,arguments,l(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,t)})(t)}function c(t,e,r){return(c=u()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&p(i,r.prototype),i}).apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function p(t,e){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.EndOfStreamError=e.defaultMessages=void 0,e.defaultMessages="End-Of-Stream";var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(d,t);var r,n,o,s,c,f=(r=d,n=u(),function(){var t,e=l(r);if(n){var i=l(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return a(this,t)});function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),f.call(this,e.defaultMessages)}return o=d,s&&i(o.prototype,s),c&&i(o,c),Object.defineProperty(o,"prototype",{writable:!1}),o}(s(Error));e.EndOfStreamError=f},function(t,e,r){"use strict";var n=r(26),i=r(56),o=r(63);t.exports={XMLParser:i,XMLValidator:n,XMLBuilder:o}},,function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new A(n||[]);return a(o,"_invoke",{value:j(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",h="executing",y="completed",v={};function g(){}function b(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(C([])));_&&_!==r&&o.call(_,c)&&(w=_);var F=x.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,s,c){var u=d(t[i],t,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var i=m;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var u=d(e,r,n);if("normal"===u.type){if(i=n.done?y:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=x,a(F,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,p,"GeneratorFunction")),t.prototype=Object.create(F),t},e.awrap=function(t){return{__await:t}},E(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(F),l(F,p,"Generator"),l(F,c,(function(){return this})),l(F,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}Object.defineProperty(e,"__esModule",{value:!0}),e.readFile=e.writeFileSync=e.writeFile=e.read=e.open=e.close=e.stat=e.createReadStream=e.pathExists=void 0;var s=r(42);function c(){return(c=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){s.stat(e,(function(e,n){e?r(e):t(n)}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function u(){return(u=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){s.close(e,(function(e){e?r(e):t()}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(){return(p=a(i().mark((function t(e,r){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,n){s.open(e,r,(function(e,r){e?n(e):t(r)}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function l(){return(l=a(i().mark((function t(e,r,n,o,a){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,i){s.read(e,r,n,o,a,(function(e,r,n){e?i(e):t({bytesRead:r,buffer:n})}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(){return(f=a(i().mark((function t(e,r){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,n){s.writeFile(e,r,(function(e){e?n(e):t()}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function d(){return(d=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){s.readFile(e,(function(e,n){e?r(e):t(n)}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}e.pathExists=s.existsSync,e.createReadStream=s.createReadStream,e.stat=function(t){return c.apply(this,arguments)},e.close=function(t){return u.apply(this,arguments)},e.open=function(t,e){return p.apply(this,arguments)},e.read=function(t,e,r,n,i){return l.apply(this,arguments)},e.writeFile=function(t,e){return f.apply(this,arguments)},e.writeFileSync=function(t,e){s.writeFileSync(t,e)},e.readFile=function(t){return d.apply(this,arguments)}},function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var c,u=[],p=!1,l=-1;function f(){p&&c&&(p=!1,c.length?u=c.concat(u):l=-1,u.length&&d())}function d(){if(!p){var t=s(f);p=!0;for(var e=u.length;e;){for(c=u,u=[];++l<e;)c&&c[l].run();l=-1,e=u.length}c=null,p=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function m(t,e){this.fun=t,this.array=e}function h(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new m(t,e)),1!==u.length||p||s(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,r){"use strict";var n=r(27),i={allowBooleanAttributes:!1,unpairedTags:[]};function o(t){return" "===t||"\t"===t||"\n"===t||"\r"===t}function a(t,e){for(var r=e;e<t.length;e++)if("?"!=t[e]&&" "!=t[e]);else{var n=t.substr(r,e-r);if(e>5&&"xml"===n)return f("InvalidXml","XML declaration allowed only at the start of the document.",m(t,e));if("?"==t[e]&&">"==t[e+1]){e++;break}}return e}function s(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e<t.length;e++)if("-"===t[e]&&"-"===t[e+1]&&">"===t[e+2]){e+=2;break}}else if(t.length>e+8&&"D"===t[e+1]&&"O"===t[e+2]&&"C"===t[e+3]&&"T"===t[e+4]&&"Y"===t[e+5]&&"P"===t[e+6]&&"E"===t[e+7]){var r=1;for(e+=8;e<t.length;e++)if("<"===t[e])r++;else if(">"===t[e]&&0===--r)break}else if(t.length>e+9&&"["===t[e+1]&&"C"===t[e+2]&&"D"===t[e+3]&&"A"===t[e+4]&&"T"===t[e+5]&&"A"===t[e+6]&&"["===t[e+7])for(e+=8;e<t.length;e++)if("]"===t[e]&&"]"===t[e+1]&&">"===t[e+2]){e+=2;break}return e}e.validate=function(t,e){e=Object.assign({},i,e);var r,u=[],d=!1,h=!1;"\ufeff"===t[0]&&(t=t.substr(1));for(var y=0;y<t.length;y++)if("<"===t[y]&&"?"===t[y+1]){if((y=a(t,y+=2)).err)return y}else{if("<"!==t[y]){if(o(t[y]))continue;return f("InvalidChar","char '"+t[y]+"' is not expected.",m(t,y))}var v=y;if("!"===t[++y]){y=s(t,y);continue}var g=!1;"/"===t[y]&&(g=!0,y++);for(var b="";y<t.length&&">"!==t[y]&&" "!==t[y]&&"\t"!==t[y]&&"\n"!==t[y]&&"\r"!==t[y];y++)b+=t[y];if("/"===(b=b.trim())[b.length-1]&&(b=b.substring(0,b.length-1),y--),r=b,!n.isName(r)){return f("InvalidTag",0===b.trim().length?"Invalid space after '<'.":"Tag '"+b+"' is an invalid name.",m(t,y))}var x=c(t,y);if(!1===x)return f("InvalidAttr","Attributes for '"+b+"' have open quote.",m(t,y));var w=x.value;if(y=x.index,"/"===w[w.length-1]){var k=y-w.length,_=p(w=w.substring(0,w.length-1),e);if(!0!==_)return f(_.err.code,_.err.msg,m(t,k+_.err.line));d=!0}else if(g){if(!x.tagClosed)return f("InvalidTag","Closing tag '"+b+"' doesn't have proper closing.",m(t,y));if(w.trim().length>0)return f("InvalidTag","Closing tag '"+b+"' can't have attributes or invalid starting.",m(t,v));var F=u.pop();if(b!==F.tagName){var E=m(t,F.tagStartPos);return f("InvalidTag","Expected closing tag '"+F.tagName+"' (opened in line "+E.line+", col "+E.col+") instead of closing tag '"+b+"'.",m(t,v))}0==u.length&&(h=!0)}else{var O=p(w,e);if(!0!==O)return f(O.err.code,O.err.msg,m(t,y-w.length+O.err.line));if(!0===h)return f("InvalidXml","Multiple possible root nodes found.",m(t,y));-1!==e.unpairedTags.indexOf(b)||u.push({tagName:b,tagStartPos:v}),d=!0}for(y++;y<t.length;y++)if("<"===t[y]){if("!"===t[y+1]){y=s(t,++y);continue}if("?"!==t[y+1])break;if((y=a(t,++y)).err)return y}else if("&"===t[y]){var j=l(t,y);if(-1==j)return f("InvalidChar","char '&' is not expected.",m(t,y));y=j}else if(!0===h&&!o(t[y]))return f("InvalidXml","Extra text at the end",m(t,y));"<"===t[y]&&y--}return d?1==u.length?f("InvalidTag","Unclosed tag '"+u[0].tagName+"'.",m(t,u[0].tagStartPos)):!(u.length>0)||f("InvalidXml","Invalid '"+JSON.stringify(u.map((function(t){return t.tagName})),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):f("InvalidXml","Start tag expected.",1)};function c(t,e){for(var r="",n="",i=!1;e<t.length;e++){if('"'===t[e]||"'"===t[e])""===n?n=t[e]:n!==t[e]||(n="");else if(">"===t[e]&&""===n){i=!0;break}r+=t[e]}return""===n&&{value:r,index:e,tagClosed:i}}var u=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function p(t,e){for(var r=n.getAllMatches(t,u),i={},o=0;o<r.length;o++){if(0===r[o][1].length)return f("InvalidAttr","Attribute '"+r[o][2]+"' has no space in starting.",h(r[o]));if(void 0!==r[o][3]&&void 0===r[o][4])return f("InvalidAttr","Attribute '"+r[o][2]+"' is without value.",h(r[o]));if(void 0===r[o][3]&&!e.allowBooleanAttributes)return f("InvalidAttr","boolean attribute '"+r[o][2]+"' is not allowed.",h(r[o]));var a=r[o][2];if(!d(a))return f("InvalidAttr","Attribute '"+a+"' is an invalid name.",h(r[o]));if(i.hasOwnProperty(a))return f("InvalidAttr","Attribute '"+a+"' is repeated.",h(r[o]));i[a]=1}return!0}function l(t,e){if(";"===t[++e])return-1;if("#"===t[e])return function(t,e){var r=/\d/;for("x"===t[e]&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(";"===t[e])return e;if(!t[e].match(r))break}return-1}(t,++e);for(var r=0;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(";"===t[e])break;return-1}return e}function f(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function d(t){return n.isName(t)}function m(t,e){var r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function h(t){return t.startIndex+t[1].length}},function(t,e,r){"use strict";var n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i="["+n+"][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+i+"$");e.isExist=function(t){return void 0!==t},e.isEmptyObject=function(t){return 0===Object.keys(t).length},e.merge=function(t,e,r){if(e)for(var n=Object.keys(e),i=n.length,o=0;o<i;o++)t[n[o]]="strict"===r?[e[n[o]]]:e[n[o]]},e.getValue=function(t){return e.isExist(t)?t:""},e.isName=function(t){var e=o.exec(t);return!(null==e)},e.getAllMatches=function(t,e){for(var r=[],n=e.exec(t);n;){var i=[];i.startIndex=e.lastIndex-n[0].length;for(var o=n.length,a=0;a<o;a++)i.push(n[a]);r.push(i),n=e.exec(t)}return r},e.nameRegexp=i},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new A(n||[]);return a(o,"_invoke",{value:j(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",h="executing",y="completed",v={};function g(){}function b(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(C([])));_&&_!==r&&o.call(_,c)&&(w=_);var F=x.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,s,c){var u=d(t[i],t,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var i=m;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var u=d(e,r,n);if("normal"===u.type){if(i=n.done?y:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=x,a(F,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,p,"GeneratorFunction")),t.prototype=Object.create(F),t},e.awrap=function(t){return{__await:t}},E(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(F),l(F,p,"Generator"),l(F,c,(function(){return this})),l(F,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}var s=r(41),c=r(48);function u(){return(u=a(i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.fromFile(e);case 2:return r=t.sent,t.prev=3,t.next=6,c.fromTokenizer(r);case 6:return t.abrupt("return",t.sent);case 7:return t.prev=7,t.next=10,r.close();case 10:return t.finish(7);case 11:case"end":return t.stop()}}),t,null,[[3,,7,11]])})))).apply(this,arguments)}var p={fromFile:function(t){return u.apply(this,arguments)}};Object.assign(p,c),Object.defineProperty(p,"extensions",{get:function(){return c.extensions}}),Object.defineProperty(p,"mimeTypes",{get:function(){return c.mimeTypes}}),t.exports=p},function(t,e,r){var n,i,o;function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}o=function(t){"use strict";var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(t,e){var r=t[0],n=t[1],i=t[2],o=t[3];n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[0]-680876936|0)<<7|r>>>25)+n|0)&n|~r&i)+e[1]-389564586|0)<<12|o>>>20)+r|0)&r|~o&n)+e[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&r)+e[3]-1044525330|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[4]-176418897|0)<<7|r>>>25)+n|0)&n|~r&i)+e[5]+1200080426|0)<<12|o>>>20)+r|0)&r|~o&n)+e[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&r)+e[7]-45705983|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[8]+1770035416|0)<<7|r>>>25)+n|0)&n|~r&i)+e[9]-1958414417|0)<<12|o>>>20)+r|0)&r|~o&n)+e[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&r)+e[11]-1990404162|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[12]+1804603682|0)<<7|r>>>25)+n|0)&n|~r&i)+e[13]-40341101|0)<<12|o>>>20)+r|0)&r|~o&n)+e[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&r)+e[15]+1236535329|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[1]-165796510|0)<<5|r>>>27)+n|0)&i|n&~i)+e[6]-1069501632|0)<<9|o>>>23)+r|0)&n|r&~n)+e[11]+643717713|0)<<14|i>>>18)+o|0)&r|o&~r)+e[0]-373897302|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[5]-701558691|0)<<5|r>>>27)+n|0)&i|n&~i)+e[10]+38016083|0)<<9|o>>>23)+r|0)&n|r&~n)+e[15]-660478335|0)<<14|i>>>18)+o|0)&r|o&~r)+e[4]-405537848|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[9]+568446438|0)<<5|r>>>27)+n|0)&i|n&~i)+e[14]-1019803690|0)<<9|o>>>23)+r|0)&n|r&~n)+e[3]-187363961|0)<<14|i>>>18)+o|0)&r|o&~r)+e[8]+1163531501|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[13]-1444681467|0)<<5|r>>>27)+n|0)&i|n&~i)+e[2]-51403784|0)<<9|o>>>23)+r|0)&n|r&~n)+e[7]+1735328473|0)<<14|i>>>18)+o|0)&r|o&~r)+e[12]-1926607734|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[5]-378558|0)<<4|r>>>28)+n|0)^n^i)+e[8]-2022574463|0)<<11|o>>>21)+r|0)^r^n)+e[11]+1839030562|0)<<16|i>>>16)+o|0)^o^r)+e[14]-35309556|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[1]-1530992060|0)<<4|r>>>28)+n|0)^n^i)+e[4]+1272893353|0)<<11|o>>>21)+r|0)^r^n)+e[7]-155497632|0)<<16|i>>>16)+o|0)^o^r)+e[10]-1094730640|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[13]+681279174|0)<<4|r>>>28)+n|0)^n^i)+e[0]-358537222|0)<<11|o>>>21)+r|0)^r^n)+e[3]-722521979|0)<<16|i>>>16)+o|0)^o^r)+e[6]+76029189|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[9]-640364487|0)<<4|r>>>28)+n|0)^n^i)+e[12]-421815835|0)<<11|o>>>21)+r|0)^r^n)+e[15]+530742520|0)<<16|i>>>16)+o|0)^o^r)+e[2]-995338651|0)<<23|n>>>9)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[0]-198630844|0)<<6|r>>>26)+n|0)|~i))+e[7]+1126891415|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[14]-1416354905|0)<<15|i>>>17)+o|0)|~r))+e[5]-57434055|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[12]+1700485571|0)<<6|r>>>26)+n|0)|~i))+e[3]-1894986606|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[10]-1051523|0)<<15|i>>>17)+o|0)|~r))+e[1]-2054922799|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[8]+1873313359|0)<<6|r>>>26)+n|0)|~i))+e[15]-30611744|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[6]-1560198380|0)<<15|i>>>17)+o|0)|~r))+e[13]+1309151649|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[4]-145523070|0)<<6|r>>>26)+n|0)|~i))+e[11]-1120210379|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[2]+718787259|0)<<15|i>>>17)+o|0)|~r))+e[9]-343485551|0)<<21|n>>>11)+i|0,t[0]=r+t[0]|0,t[1]=n+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0}function n(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}function i(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return r}function o(t){var e,i,o,a,s,c,u=t.length,p=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=u;e+=64)r(p,n(t.substring(e-64,e)));for(i=(t=t.substring(e-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<i;e+=1)o[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(r(p,o),e=0;e<16;e+=1)o[e]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),c=parseInt(a[1],16)||0,o[14]=s,o[15]=c,r(p,o),p}function a(t){var r,n="";for(r=0;r<4;r+=1)n+=e[t>>8*r+4&15]+e[t>>8*r&15];return n}function s(t){var e;for(e=0;e<t.length;e+=1)t[e]=a(t[e]);return t.join("")}function c(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function u(t){var e,r=[],n=t.length;for(e=0;e<n-1;e+=2)r.push(parseInt(t.substr(e,2),16));return String.fromCharCode.apply(String,r)}function p(){this.reset()}return s(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(t,e){return(t=0|t||0)<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(r,n){var i,o,a,s,c=this.byteLength,u=e(r,c),p=c;return n!==t&&(p=e(n,c)),u>p?new ArrayBuffer(0):(i=p-u,o=new ArrayBuffer(i),a=new Uint8Array(o),s=new Uint8Array(this,u,i),a.set(s),o)}}(),p.prototype.append=function(t){return this.appendBinary(c(t)),this},p.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,i=this._buff.length;for(e=64;e<=i;e+=64)r(this._hash,n(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},p.prototype.end=function(t){var e,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=n.charCodeAt(e)<<(e%4<<3);return this._finish(o,i),r=s(this._hash),t&&(r=u(r)),this.reset(),r},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},p.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(t,e){var n,i,o,a=e;if(t[a>>2]|=128<<(a%4<<3),a>55)for(r(this._hash,t),a=0;a<16;a+=1)t[a]=0;n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(n[2],16),o=parseInt(n[1],16)||0,t[14]=i,t[15]=o,r(this._hash,t)},p.hash=function(t,e){return p.hashBinary(c(t),e)},p.hashBinary=function(t,e){var r=s(o(t));return e?u(r):r},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(t){var e,n,o,a,s,c=(n=this._buff.buffer,o=t,a=!0,(s=new Uint8Array(n.byteLength+o.byteLength)).set(new Uint8Array(n)),s.set(new Uint8Array(o),n.byteLength),a?s:s.buffer),u=c.length;for(this._length+=t.byteLength,e=64;e<=u;e+=64)r(this._hash,i(c.subarray(e-64,e)));return this._buff=e-64<u?new Uint8Array(c.buffer.slice(e-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(t){var e,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=n[e]<<(e%4<<3);return this._finish(o,i),r=s(this._hash),t&&(r=u(r)),this.reset(),r},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var t,e=p.prototype.getState.call(this);return e.buff=(t=e.buff,String.fromCharCode.apply(null,new Uint8Array(t))),e},p.ArrayBuffer.prototype.setState=function(t){return t.buff=function(t,e){var r,n=t.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r<n;r+=1)o[r]=t.charCodeAt(r);return e?o:i}(t.buff,!0),p.prototype.setState.call(this,t)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(t,e){var n=s(function(t){var e,n,o,a,s,c,u=t.length,p=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=u;e+=64)r(p,i(t.subarray(e-64,e)));for(n=(t=e-64<u?t.subarray(e-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<n;e+=1)o[e>>2]|=t[e]<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(r(p,o),e=0;e<16;e+=1)o[e]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),c=parseInt(a[1],16)||0,o[14]=s,o[15]=c,r(p,o),p}(new Uint8Array(t)));return e?u(n):n},p},"object"===a(e)?t.exports=o():void 0===(i="function"==typeof(n=o)?n.call(e,r,e,t):n)||(t.exports=i)},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new A(n||[]);return o(a,"_invoke",{value:j(t,r,s)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",h="executing",y="completed",v={};function g(){}function b(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(C([])));_&&_!==r&&i.call(_,c)&&(w=_);var F=x.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(n,o,s,c){var u=d(t[n],t,o);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==a(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var n;o(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,n){r(t,i,e,n)}))}return n=n?n.then(o,o):o()}})}function j(e,r,n){var i=m;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var u=d(e,r,n);if("normal"===u.type){if(i=n.done?y:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function r(){for(;++n<e.length;)if(i.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(a(e)+" is not iterable")}return b.prototype=x,o(F,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,p,"GeneratorFunction")),t.prototype=Object.create(F),t},e.awrap=function(t){return{__await:t}},E(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(F),l(F,p,"Generator"),l(F,c,(function(){return this})),l(F,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function c(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:String(e)}function u(t,e){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=f(t);if(e){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0});var d=r(65),m=r(66),h=r(68),y=function(){},v=new m.TimeoutError,g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(b,t);var e,r,i,c,l,f,d,g=p(b);function b(t){var e,r,n,i,o;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),(e=g.call(this))._intervalCount=0,e._intervalEnd=0,e._pendingCount=0,e._resolveEmpty=y,e._resolveIdle=y,!("number"==typeof(t=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:h.default},t)).intervalCap&&t.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(n=null===(r=t.intervalCap)||void 0===r?void 0:r.toString())&&void 0!==n?n:"","` (").concat(a(t.intervalCap),")"));if(void 0===t.interval||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(o=null===(i=t.interval)||void 0===i?void 0:i.toString())&&void 0!==o?o:"","` (").concat(a(t.interval),")"));return e._carryoverConcurrencyCount=t.carryoverConcurrencyCount,e._isIntervalIgnored=t.intervalCap===1/0||0===t.interval,e._intervalCap=t.intervalCap,e._interval=t.interval,e._queue=new t.queueClass,e._queueClass=t.queueClass,e.concurrency=t.concurrency,e._timeout=t.timeout,e._throwOnTimeout=!0===t.throwOnTimeout,e._isPaused=!1===t.autoStart,e}return e=b,(r=[{key:"_doesIntervalAllowAnother",get:function(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}},{key:"_doesConcurrentAllowAnother",get:function(){return this._pendingCount<this._concurrency}},{key:"_next",value:function(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}},{key:"_resolvePromises",value:function(){this._resolveEmpty(),this._resolveEmpty=y,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=y,this.emit("idle"))}},{key:"_onResumeInterval",value:function(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}},{key:"_isIntervalPaused",value:function(){var t=this,e=Date.now();if(void 0===this._intervalId){var r=this._intervalEnd-e;if(!(r<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((function(){t._onResumeInterval()}),r)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}},{key:"_tryToStartAnother",value:function(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){var t=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){var e=this._queue.dequeue();return!!e&&(this.emit("active"),e(),t&&this._initializeIntervalIfNeeded(),!0)}}return!1}},{key:"_initializeIntervalIfNeeded",value:function(){var t=this;this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((function(){t._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}},{key:"_onInterval",value:function(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}},{key:"_processQueue",value:function(){for(;this._tryToStartAnother(););}},{key:"concurrency",get:function(){return this._concurrency},set:function(t){if(!("number"==typeof t&&t>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(t,"` (").concat(a(t),")"));this._concurrency=t,this._processQueue()}},{key:"add",value:(d=o(n().mark((function t(e){var r,i=this,a=arguments;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",new Promise((function(t,a){var s=function(){var s=o(n().mark((function o(){var s;return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i._pendingCount++,i._intervalCount++,n.prev=2,s=void 0===i._timeout&&void 0===r.timeout?e():m.default(Promise.resolve(e()),void 0===r.timeout?i._timeout:r.timeout,(function(){(void 0===r.throwOnTimeout?i._throwOnTimeout:r.throwOnTimeout)&&a(v)})),n.t0=t,n.next=7,s;case 7:n.t1=n.sent,(0,n.t0)(n.t1),n.next=14;break;case 11:n.prev=11,n.t2=n.catch(2),a(n.t2);case 14:i._next();case 15:case"end":return n.stop()}}),o,null,[[2,11]])})));return function(){return s.apply(this,arguments)}}();i._queue.enqueue(s,r),i._tryToStartAnother(),i.emit("add")})));case 2:case"end":return t.stop()}}),t)}))),function(t){return d.apply(this,arguments)})},{key:"addAll",value:(f=o(n().mark((function t(e,r){var i=this;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.all(e.map(function(){var t=o(n().mark((function t(e){return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i.add(e,r));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())));case 1:case"end":return t.stop()}}),t)}))),function(t,e){return f.apply(this,arguments)})},{key:"start",value:function(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}},{key:"pause",value:function(){this._isPaused=!0}},{key:"clear",value:function(){this._queue=new this._queueClass}},{key:"onEmpty",value:(l=o(n().mark((function t(){var e=this;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==this._queue.size){t.next=2;break}return t.abrupt("return");case 2:return t.abrupt("return",new Promise((function(t){var r=e._resolveEmpty;e._resolveEmpty=function(){r(),t()}})));case 3:case"end":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)})},{key:"onIdle",value:(c=o(n().mark((function t(){var e=this;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==this._pendingCount||0!==this._queue.size){t.next=2;break}return t.abrupt("return");case 2:return t.abrupt("return",new Promise((function(t){var r=e._resolveIdle;e._resolveIdle=function(){r(),t()}})));case 3:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"size",get:function(){return this._queue.size}},{key:"sizeBy",value:function(t){return this._queue.filter(t).length}},{key:"pending",get:function(){return this._pendingCount}},{key:"isPaused",get:function(){return this._isPaused}},{key:"timeout",get:function(){return this._timeout},set:function(t){this._timeout=t}}])&&s(e.prototype,r),i&&s(e,i),Object.defineProperty(e,"prototype",{writable:!1}),b}(d);e.default=g},function(t,e,r){(function(t,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i="[object Arguments]",o="[object Function]",a="[object GeneratorFunction]",s="[object Map]",c="[object Set]",u=/\w*$/,p=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,f={};f[i]=f["[object Array]"]=f["[object ArrayBuffer]"]=f["[object DataView]"]=f["[object Boolean]"]=f["[object Date]"]=f["[object Float32Array]"]=f["[object Float64Array]"]=f["[object Int8Array]"]=f["[object Int16Array]"]=f["[object Int32Array]"]=f[s]=f["[object Number]"]=f["[object Object]"]=f["[object RegExp]"]=f[c]=f["[object String]"]=f["[object Symbol]"]=f["[object Uint8Array]"]=f["[object Uint8ClampedArray]"]=f["[object Uint16Array]"]=f["[object Uint32Array]"]=!0,f["[object Error]"]=f[o]=f["[object WeakMap]"]=!1;var d="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t,m="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,h=d||m||Function("return this")(),y="object"==n(e)&&e&&!e.nodeType&&e,v=y&&"object"==n(r)&&r&&!r.nodeType&&r,g=v&&v.exports===y;function b(t,e){return t.set(e[0],e[1]),t}function x(t,e){return t.add(e),t}function w(t,e,r,n){var i=-1,o=t?t.length:0;for(n&&o&&(r=t[++i]);++i<o;)r=e(r,t[i],i,t);return r}function k(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function _(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function F(t,e){return function(r){return t(e(r))}}function E(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var O,j=Array.prototype,S=Function.prototype,T=Object.prototype,P=h["__core-js_shared__"],A=(O=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",C=S.toString,D=T.hasOwnProperty,I=T.toString,L=RegExp("^"+C.call(D).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N=g?h.Buffer:void 0,z=h.Symbol,B=h.Uint8Array,M=F(Object.getPrototypeOf,Object),R=Object.create,$=T.propertyIsEnumerable,U=j.splice,q=Object.getOwnPropertySymbols,V=N?N.isBuffer:void 0,G=F(Object.keys,Object),Z=vt(h,"DataView"),H=vt(h,"Map"),W=vt(h,"Promise"),Y=vt(h,"Set"),Q=vt(h,"WeakMap"),K=vt(Object,"create"),J=kt(Z),X=kt(H),tt=kt(W),et=kt(Y),rt=kt(Q),nt=z?z.prototype:void 0,it=nt?nt.valueOf:void 0;function ot(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function at(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function st(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ct(t){this.__data__=new at(t)}function ut(t,e){var r=Ft(t)||function(t){return function(t){return function(t){return!!t&&"object"==n(t)}(t)&&Et(t)}(t)&&D.call(t,"callee")&&(!$.call(t,"callee")||I.call(t)==i)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],o=r.length,a=!!o;for(var s in t)!e&&!D.call(t,s)||a&&("length"==s||xt(s,o))||r.push(s);return r}function pt(t,e,r){var n=t[e];D.call(t,e)&&_t(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function lt(t,e){for(var r=t.length;r--;)if(_t(t[r][0],e))return r;return-1}function ft(t,e,r,n,p,l,d){var m;if(n&&(m=l?n(t,p,l,d):n(t)),void 0!==m)return m;if(!St(t))return t;var h=Ft(t);if(h){if(m=function(t){var e=t.length,r=t.constructor(e);e&&"string"==typeof t[0]&&D.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!e)return function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(t,m)}else{var y=bt(t),v=y==o||y==a;if(Ot(t))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(t,e);if("[object Object]"==y||y==i||v&&!l){if(k(t))return l?t:{};if(m=function(t){return"function"!=typeof t.constructor||wt(t)?{}:(e=M(t),St(e)?R(e):{});var e}(v?{}:t),!e)return function(t,e){return ht(t,gt(t),e)}(t,function(t,e){return t&&ht(e,Tt(e),t)}(m,t))}else{if(!f[y])return l?t:{};m=function(t,e,r,n){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return mt(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var r=e?mt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var r=e?mt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,n);case s:return function(t,e,r){return w(e?r(_(t),!0):_(t),b,new t.constructor)}(t,n,r);case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,u.exec(t));return e.lastIndex=t.lastIndex,e}(t);case c:return function(t,e,r){return w(e?r(E(t),!0):E(t),x,new t.constructor)}(t,n,r);case"[object Symbol]":return o=t,it?Object(it.call(o)):{}}var o}(t,y,ft,e)}}d||(d=new ct);var g=d.get(t);if(g)return g;if(d.set(t,m),!h)var F=r?function(t){return function(t,e,r){var n=e(t);return Ft(t)?n:function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}(n,r(t))}(t,Tt,gt)}(t):Tt(t);return function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r,t););}(F||t,(function(i,o){F&&(i=t[o=i]),pt(m,o,ft(i,e,r,n,o,t,d))})),m}function dt(t){return!(!St(t)||(e=t,A&&A in e))&&(jt(t)||k(t)?L:p).test(kt(t));var e}function mt(t){var e=new t.constructor(t.byteLength);return new B(e).set(new B(t)),e}function ht(t,e,r,n){r||(r={});for(var i=-1,o=e.length;++i<o;){var a=e[i],s=n?n(r[a],t[a],a,r,t):void 0;pt(r,a,void 0===s?t[a]:s)}return r}function yt(t,e){var r,i,o=t.__data__;return("string"==(i=n(r=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function vt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return dt(r)?r:void 0}ot.prototype.clear=function(){this.__data__=K?K(null):{}},ot.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},ot.prototype.get=function(t){var e=this.__data__;if(K){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return D.call(e,t)?e[t]:void 0},ot.prototype.has=function(t){var e=this.__data__;return K?void 0!==e[t]:D.call(e,t)},ot.prototype.set=function(t,e){return this.__data__[t]=K&&void 0===e?"__lodash_hash_undefined__":e,this},at.prototype.clear=function(){this.__data__=[]},at.prototype.delete=function(t){var e=this.__data__,r=lt(e,t);return!(r<0)&&(r==e.length-1?e.pop():U.call(e,r,1),!0)},at.prototype.get=function(t){var e=this.__data__,r=lt(e,t);return r<0?void 0:e[r][1]},at.prototype.has=function(t){return lt(this.__data__,t)>-1},at.prototype.set=function(t,e){var r=this.__data__,n=lt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},st.prototype.clear=function(){this.__data__={hash:new ot,map:new(H||at),string:new ot}},st.prototype.delete=function(t){return yt(this,t).delete(t)},st.prototype.get=function(t){return yt(this,t).get(t)},st.prototype.has=function(t){return yt(this,t).has(t)},st.prototype.set=function(t,e){return yt(this,t).set(t,e),this},ct.prototype.clear=function(){this.__data__=new at},ct.prototype.delete=function(t){return this.__data__.delete(t)},ct.prototype.get=function(t){return this.__data__.get(t)},ct.prototype.has=function(t){return this.__data__.has(t)},ct.prototype.set=function(t,e){var r=this.__data__;if(r instanceof at){var n=r.__data__;if(!H||n.length<199)return n.push([t,e]),this;r=this.__data__=new st(n)}return r.set(t,e),this};var gt=q?F(q,Object):function(){return[]},bt=function(t){return I.call(t)};function xt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||l.test(t))&&t>-1&&t%1==0&&t<e}function wt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||T)}function kt(t){if(null!=t){try{return C.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function _t(t,e){return t===e||t!=t&&e!=e}(Z&&"[object DataView]"!=bt(new Z(new ArrayBuffer(1)))||H&&bt(new H)!=s||W&&"[object Promise]"!=bt(W.resolve())||Y&&bt(new Y)!=c||Q&&"[object WeakMap]"!=bt(new Q))&&(bt=function(t){var e=I.call(t),r="[object Object]"==e?t.constructor:void 0,n=r?kt(r):void 0;if(n)switch(n){case J:return"[object DataView]";case X:return s;case tt:return"[object Promise]";case et:return c;case rt:return"[object WeakMap]"}return e});var Ft=Array.isArray;function Et(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!jt(t)}var Ot=V||function(){return!1};function jt(t){var e=St(t)?I.call(t):"";return e==o||e==a}function St(t){var e=n(t);return!!t&&("object"==e||"function"==e)}function Tt(t){return Et(t)?ut(t):function(t){if(!wt(t))return G(t);var e=[];for(var r in Object(t))D.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}r.exports=function(t){return ft(t,!0,!0)}}).call(this,r(15),r(22)(t))},function(t,e,r){"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=r(14),o=r(40),a=r(8),s=r(16).scan,c=a.ValidatorResult,u=a.ValidatorResultError,p=a.SchemaError,l=a.SchemaContext,f=function t(){this.customFormats=Object.create(t.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(m),this.attributes=Object.create(o.validators)};function d(t){var e="string"==typeof t?t:t.$ref;return"string"==typeof e&&e}f.prototype.customFormats={},f.prototype.schemas=null,f.prototype.types=null,f.prototype.attributes=null,f.prototype.unresolvedRefs=null,f.prototype.addSchema=function(t,e){var r=this;if(!t)return null;var n=s(e||"/",t),i=e||t.$id||t.id;for(var o in n.id)this.schemas[o]=n.id[o];for(var o in n.ref)this.unresolvedRefs.push(o);return this.unresolvedRefs=this.unresolvedRefs.filter((function(t){return void 0===r.schemas[t]})),this.schemas[i]},f.prototype.addSubSchemaArray=function(t,e){if(Array.isArray(e))for(var r=0;r<e.length;r++)this.addSubSchema(t,e[r])},f.prototype.addSubSchemaObject=function(t,e){if(e&&"object"==n(e))for(var r in e)this.addSubSchema(t,e[r])},f.prototype.setSchemas=function(t){this.schemas=t},f.prototype.getSchema=function(t){return this.schemas[t]},f.prototype.validate=function(t,e,r,o){if("boolean"!=typeof e&&"object"!==n(e)||null===e)throw new p("Expected `schema` to be an object or boolean");r||(r={});var a,f=e.$id||e.id,d=i.resolve(r.base||"/",f||"");if(!o){(o=new l(e,r,[],d,Object.create(this.schemas))).schemas[d]||(o.schemas[d]=e);var m=s(d,e);for(var h in m.id){var y=m.id[h];o.schemas[h]=y}}if(r.required&&void 0===t)return(a=new c(t,e,r,o)).addError("is required, but is undefined"),a;if(!(a=this.validateSchema(t,e,r,o)))throw new Error("Result undefined");if(r.throwAll&&a.errors.length)throw new u(a);return a},f.prototype.validateSchema=function(t,e,r,n){var i=new c(t,e,r,n);if("boolean"==typeof e)!0===e?e={}:!1===e&&(e={type:[]});else if(!e)throw new Error("schema is undefined");if(e.extends)if(Array.isArray(e.extends)){var s={schema:e,ctx:n};e.extends.forEach(this.schemaTraverser.bind(this,s)),e=s.schema,s.schema=null,s.ctx=null,s=null}else e=a.deepMerge(e,this.superResolve(e.extends,n));var u=d(e);if(u){var f=this.resolve(e,u,n),m=new l(f.subschema,r,n.path,f.switchSchema,n.schemas);return this.validateSchema(t,f.subschema,r,m)}var h=r&&r.skipAttributes||[];for(var y in e)if(!o.ignoreProperties[y]&&h.indexOf(y)<0){var v=null,g=this.attributes[y];if(g)v=g.call(this,t,e,r,n);else if(!1===r.allowUnknownAttributes)throw new p("Unsupported attribute: "+y,e);v&&i.importErrors(v)}if("function"==typeof r.rewrite){var b=r.rewrite.call(this,t,e,r,n);i.instance=b}return i},f.prototype.schemaTraverser=function(t,e){t.schema=a.deepMerge(t.schema,this.superResolve(e,t.ctx))},f.prototype.superResolve=function(t,e){var r=d(t);return r?this.resolve(t,r,e).subschema:t},f.prototype.resolve=function(t,e,r){if(e=r.resolve(e),r.schemas[e])return{subschema:r.schemas[e],switchSchema:e};var n=i.parse(e),o=n&&n.hash,s=o&&o.length&&e.substr(0,e.length-o.length);if(!s||!r.schemas[s])throw new p("no such schema <"+e+">",t);var c=a.objectGetPath(r.schemas[s],o.substr(1));if(void 0===c)throw new p("no such schema "+o+" located in <"+s+">",t);return{subschema:c,switchSchema:e}},f.prototype.testType=function(t,e,r,i,o){if(void 0!==o){if(null===o)throw new p('Unexpected null in "type" keyword');if("function"==typeof this.types[o])return this.types[o].call(this,t);if(o&&"object"==n(o)){var a=this.validateSchema(t,o,r,i);return void 0===a||!(a&&a.errors.length)}return!0}};var m=f.prototype.types={};m.string=function(t){return"string"==typeof t},m.number=function(t){return"number"==typeof t&&isFinite(t)},m.integer=function(t){return"number"==typeof t&&t%1==0},m.boolean=function(t){return"boolean"==typeof t},m.array=function(t){return Array.isArray(t)},m.null=function(t){return null===t},m.date=function(t){return t instanceof Date},m.any=function(t){return!0},m.object=function(t){return t&&"object"===n(t)&&!Array.isArray(t)&&!(t instanceof Date)},t.exports=f},function(t,e,r){(function(t,n){var i;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
25
+ var filestack=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=70)}([function(t,e,r){"use strict";r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a})),r.d(e,"d",(function(){return s}));var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var o=function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{c(n.next(t))}catch(t){o(t)}}function s(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((n=n.apply(t,e||[])).next())}))}function s(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError},function(t,e,r){"use strict";r.r(e),r.d(e,"resolveCdnUrl",(function(){return m})),r.d(e,"resolveHost",(function(){return h})),r.d(e,"removeEmpty",(function(){return y})),r.d(e,"uniqueTime",(function(){return v})),r.d(e,"uniqueId",(function(){return g})),r.d(e,"getMimetype",(function(){return b})),r.d(e,"extensionToMime",(function(){return x})),r.d(e,"sanitizeName",(function(){return w})),r.d(e,"filterObject",(function(){return k})),r.d(e,"cleanUpCallbacks",(function(){return _})),r.d(e,"md5",(function(){return u})),r.d(e,"b64",(function(){return p})),r.d(e,"getVersion",(function(){return l})),r.d(e,"isMobile",(function(){return f})),r.d(e,"isFacebook",(function(){return d}));var n=r(0),i={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/octet-stream":["bin","dms","tdms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","msp","buffer","psdata","indt","hpd","mxd","indd","vsm","hpt"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jpg":["jpeg","jpg","jpe"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"application/font-ttf":"ttf","application/vnd.ms-fontobject":"eot","application/font-otf":"otf","text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard","vcr"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"],"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["keynote","key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.key":["key"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.ms-visio.drawing.main+xml":["vsdx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/vnd.avi":["avi"],"video/x-msvideo":["avi"],"video/avi":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"],"application/x-msi":"msi","application/x-ms":"ms","application/vnd.geo+json":"geojson","application/vnd.debian.binary-package":"deb","application/font-woff":"woff","application/font-woff2":"woff2","application/x-font-ttf":["ttc","ttf"],"font/opentype":"otf","application/x-bb-appworld":"bbaw","application/x-cd-image":"iso","application/x-opera-extension":"oex","application/x-ms-dos-executable":"exe","text/vnd.rim.location.xloc":"xloc","application/x-desktop":"desktop","application/x-typescript":"ts","application/x-java-archive":"jar","application/x-sharedlib":"so"},o=r(29);var a,s=r(30),c=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i,u=function(t){return btoa(s.ArrayBuffer.hash(t,!0))},p=function(t,e){void 0===e&&(e=!1);var r=btoa(t);return e?r.replace(/\//g,"_").replace(/\+/g,"-"):r},l=function(){return"JS-3.32.3"},f=function(){return navigator&&navigator.userAgent&&c.test(navigator.userAgent)},d=function(){return navigator&&navigator.userAgent&&/\[FB.*;/i.test(navigator.userAgent)},m=function(t,e){var r=t.urls.cdnUrl;if(e&&(0===e.indexOf("src:")||0===e.indexOf("http"))){if(!t.apikey)throw new Error("Api key is required when storage alias is provided");return"".concat(r,"/").concat(t.apikey)}return r},h=function(t,e){if(!e)return t;var r=/filestackapi.com|filestackcontent.com/i;return Object.keys(t).forEach((function(n){t[n]=t[n].replace(r,e)})),t},y=function(t){var e=Object(n.a)({},t);return Object.keys(e).forEach((function(t){return!e[t]&&"boolean"!=typeof e[t]&&delete e[t]})),e},v=function(){var t=Date.now();return a=t===a?t+1:t},g=function(t){return void 0===t&&(t=10),new Array(t).join().replace(/(.|$)/g,(function(){return(36*Math.random()|0).toString(36)[Math.random()<.5?"toString":"toUpperCase"]()}))},b=function(t,e){return Object(n.b)(void 0,void 0,void 0,(function(){var r,i,a,s;return Object(n.d)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,Object(o.fromBuffer)(t)];case 1:return r=n.sent(),[3,3];case 2:return i=n.sent(),console.warn("An exception occurred while processing the buffer:",i.message),[3,3];case 3:if(e&&e.indexOf(".")>-1&&(a=x(e)))return[2,a];if(s=["text/plain","application/octet-stream","application/x-ms","application/x-msi","application/zip"],r&&-1===s.indexOf(r.mime))return[2,r.mime];try{if(function(t){if(!t)return!1;for(var e=0,r=t.length;e<r;)if(t[e]<=127)e++;else{if(t[e]>=194&&t[e]<=223){if(t[e+1]>>6==2){e+=2;continue}return!1}if((224===t[e]&&t[e+1]>=160&&t[e+1]<=191||237===t[e]&&t[e+1]>=128&&t[e+1]<=159)&&t[e+2]>>6==2)e+=3;else if((t[e]>=225&&t[e]<=236||t[e]>=238&&t[e]<=239)&&t[e+1]>>6==2&&t[e+2]>>6==2)e+=3;else{if(!(240===t[e]&&t[e+1]>=144&&t[e+1]<=191||t[e]>=241&&t[e]<=243&&t[e+1]>>6==2||244===t[e]&&t[e+1]>=128&&t[e+1]<=143)||t[e+2]>>6!=2||t[e+3]>>6!=2)return!1;e+=4}}return!0}(t))return[2,"text/plain"]}catch(t){console.warn("Additional mimetype checks (text/plain) are currently not supported for browsers")}return r?[2,r.mime]:[2,"application/octet-stream"]}}))}))},x=function(t){if(t&&0!==t.length){if(2===t.split("/").length)return t;t.indexOf(".")>-1&&(t=t.split(".").pop()),t=t.toLocaleLowerCase();for(var e=Object.keys(i),r=e.length,n=0;n<r;n++)if(i[e[n]].indexOf(t)>-1)return e[n]}},w=function(t,e){if(void 0===e&&(e=!0),"boolean"==typeof e&&!e)return t;var r,n="boolean"!=typeof e&&e.replacement?e.replacement:"-",i="boolean"!=typeof e&&e.exclude?e.exclude:["\\","{","}","|","%","`",'"',"'","~","[","]","#","|","^","<",">"];if(!t||0===t.length)return"undefined";var o=t.split(".");return o.length>1&&(r=o.pop()),"".concat(o.join(".").split("").map((function(t){return i.indexOf(t)>-1?n:t})).join("")).concat(r?"."+r:"")},k=function(t,e){return e&&0!==e.length?0===Object.keys(t).length?t:Object.keys(t).filter((function(t){return e.indexOf(t)>-1})).reduce((function(e,r){var i;return Object(n.a)(Object(n.a)({},e),((i={})[r]=t[r],i))}),{}):t},_=function t(e){return e&&0!==Object.keys(e).length?(Object.keys(e).forEach((function(r){"function"==typeof e[r]&&(e[r]=void 0),e[r]===Object(e[r])&&(e[r]=t(e[r]))})),e):e}},function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return o}));var n,i=r(0);!function(t){t.ABORTED="ABORTED",t.NETWORK="NETWORK",t.TIMEOUT="TIMEDOUT",t.SERVER="SERVER",t.REQUEST="REQUEST",t.OTHER="OTHER",t.REDIRECT="REDIRECT"}(n||(n={}));var o=function(t){function e(e,r,n,i){var o,a,s,c=this.constructor,u=t.call(this,e)||this;return u.config=r,u.response=n,u.code=i,o=u,a=c.prototype,(s=Object.setPrototypeOf)?s(o,a):o.__proto__=a,u}return Object(i.c)(e,t),e}(Error)},function(t,e,r){(function(n){var i;e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(n++,"%c"===t&&(i=n))})),e.splice(i,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){var t;try{t=e.storage.getItem("debug")}catch(t){}!t&&void 0!==n&&"env"in n&&(t=n.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(i=!1,function(){i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||function(){},t.exports=r(53)(e),t.exports.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,r(25))},function(t,e,r){"use strict";r.d(e,"a",(function(){return a})),r.d(e,"f",(function(){return s})),r.d(e,"d",(function(){return c})),r.d(e,"b",(function(){return u})),r.d(e,"h",(function(){return p})),r.d(e,"e",(function(){return l})),r.d(e,"i",(function(){return f})),r.d(e,"c",(function(){return n})),r.d(e,"g",(function(){return i}));var n=function(){return!1},i=function(){return!1};function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=function(t){return"[object ArrayBuffer]"===Object.prototype.toString.call(t)},s=function(t){return null!==t&&"object"===o(t)},c=function(t){return"[object File]"===Object.prototype.toString.call(t)},u=function(t){return"[object Blob]"===Object.prototype.toString.call(t)},p=function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},l=function(t){return"undefined"!=typeof FormData&&t instanceof FormData},f=function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}},function(t,e,r){"use strict";var n;r.d(e,"a",(function(){return n})),function(t){t.GET="GET",t.DELETE="DELETE",t.HEAD="HEAD",t.PURGE="PURGE",t.OPTIONS="OPTIONS",t.POST="POST",t.PUT="PUT",t.PATH="PATH"}(n||(n={}))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a}));var n=r(11),i={};function o(){return Object(n.b)()?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(t,e,r){var n=r||o(),i=n.__SENTRY__=n.__SENTRY__||{};return i[t]||(i[t]=e())}}).call(this,r(15))},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function s(t,e,r,n,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new a(r,n||t,o),c=i?i+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],s]:t._events[c].push(s):(t._events[c]=s,t._eventsCount++),t}function c(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),u.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},u.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,a=new Array(o);n<o;n++)a[n]=r[n].fn;return a},u.prototype.listenerCount=function(t){var e=i?i+t:t,r=this._events[e];return r?r.fn?1:r.length:0},u.prototype.emit=function(t,e,r,n,o,a){var s=i?i+t:t;if(!this._events[s])return!1;var c,u,p=this._events[s],l=arguments.length;if(p.fn){switch(p.once&&this.removeListener(t,p.fn,void 0,!0),l){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,e),!0;case 3:return p.fn.call(p.context,e,r),!0;case 4:return p.fn.call(p.context,e,r,n),!0;case 5:return p.fn.call(p.context,e,r,n,o),!0;case 6:return p.fn.call(p.context,e,r,n,o,a),!0}for(u=1,c=new Array(l-1);u<l;u++)c[u-1]=arguments[u];p.fn.apply(p.context,c)}else{var f,d=p.length;for(u=0;u<d;u++)switch(p[u].once&&this.removeListener(t,p[u].fn,void 0,!0),l){case 1:p[u].fn.call(p[u].context);break;case 2:p[u].fn.call(p[u].context,e);break;case 3:p[u].fn.call(p[u].context,e,r);break;case 4:p[u].fn.call(p[u].context,e,r,n);break;default:if(!c)for(f=1,c=new Array(l-1);f<l;f++)c[f-1]=arguments[f];p[u].fn.apply(p[u].context,c)}}return!0},u.prototype.on=function(t,e,r){return s(this,t,e,r,!1)},u.prototype.once=function(t,e,r){return s(this,t,e,r,!0)},u.prototype.removeListener=function(t,e,r,n){var o=i?i+t:t;if(!this._events[o])return this;if(!e)return c(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||n&&!a.once||r&&a.context!==r||c(this,o);else{for(var s=0,u=[],p=a.length;s<p;s++)(a[s].fn!==e||n&&!a[s].once||r&&a[s].context!==r)&&u.push(a[s]);u.length?this._events[o]=1===u.length?u[0]:u:c(this,o)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&c(this,e)):(this._events=new o,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=i,u.EventEmitter=u,t.exports=u},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=r(14),o=e.ValidationError=function(t,e,r,n,i,o){if(Array.isArray(n)?(this.path=n,this.property=n.reduce((function(t,e){return t+f(e)}),"instance")):void 0!==n&&(this.property=n),t&&(this.message=t),r){var a=r.$id||r.id;this.schema=a||r}void 0!==e&&(this.instance=e),this.name=i,this.argument=o,this.stack=this.toString()};o.prototype.toString=function(){return this.property+" "+this.message};var a=e.ValidatorResult=function(t,e,r,n){this.instance=t,this.schema=e,this.options=r,this.path=n.path,this.propertyPath=n.propertyPath,this.errors=[],this.throwError=r&&r.throwError,this.throwFirst=r&&r.throwFirst,this.throwAll=r&&r.throwAll,this.disableFormat=r&&!0===r.disableFormat};function s(t,e){return e+": "+t.toString()+"\n"}function c(t){Error.captureStackTrace&&Error.captureStackTrace(this,c),this.instance=t.instance,this.schema=t.schema,this.options=t.options,this.errors=t.errors}a.prototype.addError=function(t){var e;if("string"==typeof t)e=new o(t,this.instance,this.schema,this.path);else{if(!t)throw new Error("Missing error detail");if(!t.message)throw new Error("Missing error message");if(!t.name)throw new Error("Missing validator type");e=new o(t.message,this.instance,this.schema,this.path,t.name,t.argument)}if(this.errors.push(e),this.throwFirst)throw new c(this);if(this.throwError)throw e;return e},a.prototype.importErrors=function(t){"string"==typeof t||t&&t.validatorType?this.addError(t):t&&t.errors&&(this.errors=this.errors.concat(t.errors))},a.prototype.toString=function(t){return this.errors.map(s).join("")},Object.defineProperty(a.prototype,"valid",{get:function(){return!this.errors.length}}),t.exports.ValidatorResultError=c,c.prototype=new Error,c.prototype.constructor=c,c.prototype.name="Validation Error";var u=e.SchemaError=function t(e,r){this.message=e,this.schema=r,Error.call(this,e),Error.captureStackTrace(this,t)};u.prototype=Object.create(Error.prototype,{constructor:{value:u,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var p=e.SchemaContext=function(t,e,r,n,i){this.schema=t,this.options=e,Array.isArray(r)?(this.path=r,this.propertyPath=r.reduce((function(t,e){return t+f(e)}),"instance")):this.propertyPath=r,this.base=n,this.schemas=i};p.prototype.resolve=function(t){return i.resolve(this.base,t)},p.prototype.makeChild=function(t,e){var r=void 0===e?this.path:this.path.concat([e]),n=t.$id||t.id,o=i.resolve(this.base,n||""),a=new p(t,this.options,r,o,Object.create(this.schemas));return n&&!a.schemas[o]&&(a.schemas[o]=t),a};var l=e.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:(?:[!#-\[\]-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|\\(?:[\t -\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*"|(?:[!#-'\*\+\x2D\/-9=\?A-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:\.?(?:[!#-'\*\+\x2D\/-9=\?A-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*)@((?:[!#-'\*\+\x2D\/-9=\?A-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:\.?(?:[!#-'\*\+\x2D\/-9=\?A-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|\[(?:[!-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*\])$/,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][\+\x2D\.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:(?:[!\$&-\.0-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|[\/\?])|\?)(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|([A-Za-z][\+\x2D\.0-9A-Za-z]*:?)?)|([A-Za-z][\+\x2D\.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))+|(\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?)(:[0-9]*)?[\/\?]|(?:[!\$&-\.0-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|(\/((%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))+|(\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?)(:[0-9]*)?)?))#(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|(([A-Za-z][\+\x2D\.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=@_~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|[A-Za-z][\+\x2D\.0-9A-Za-z]*(?:[!\$&-\*,;=@_~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))(%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=@-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*((([\/\?](%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*)?#|[\/\?])(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*)?|([A-Za-z][\+\x2D\.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:(?:[!\$&-\.0-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|[\/\?])|\?)(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|([A-Za-z][\+\x2D\.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))+|(\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?)(:[0-9]*)?[\/\?]|(?:[!\$&-\.0-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|\/((%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))+(:[0-9]*)?|(\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?:[0-9]*|\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?)?|[A-Za-z][\+\x2D\.0-9A-Za-z]*:?)?$/,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#\$&\(-;=\?@\[\]_a-z~\u017F\u212A]|\{[!#&\+,\.\/;=\?@\|]?(%[0-9a-f]{2}|[0-9_a-z\u017F\u212A])(\.?(%[0-9a-f]{2}|[0-9_a-z\u017F\u212A]))*(:[1-9][0-9]{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z\u017F\u212A])(\.?(%[0-9a-f]{2}|[0-9_a-z\u017F\u212A]))*(:[1-9][0-9]{0,3}|\*)?)*\})*/i,"json-pointer":/^(\/([\0-\.0-@\[-\}\x7F\u017F\u212A]|~[01])*)*$/i,"relative-json-pointer":/^[0-9]+(#|(\/([\0-\.0-@\[-\}\x7F\u017F\u212A]|~[01])*)*)$/i,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(t){return"string"==typeof t&&parseFloat(t)===parseInt(t,10)&&!isNaN(t)},regex:function(t){var e=!0;try{new RegExp(t)}catch(t){e=!1}return e},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],e.isFormat=function(t,e,r){if("string"==typeof t&&void 0!==l[e]){if(l[e]instanceof RegExp)return l[e].test(t);if("function"==typeof l[e])return l[e](t)}else if(r&&r.customFormats&&"function"==typeof r.customFormats[e])return r.customFormats[e](t);return!0};var f=e.makeSuffix=function(t){return(t=t.toString()).match(/[.\s\[\]]/)||t.match(/^[\d]/)?t.match(/^\d+$/)?"["+t+"]":"["+JSON.stringify(t)+"]":"."+t};function d(t,e,r,i){"object"===n(r)?e[i]=y(t[i],r):-1===t.indexOf(r)&&e.push(r)}function m(t,e,r){e[r]=t[r]}function h(t,e,r,i){"object"===n(e[i])&&e[i]&&t[i]?r[i]=y(t[i],e[i]):r[i]=e[i]}function y(t,e){var r=Array.isArray(e),i=r&&[]||{};return r?(t=t||[],i=i.concat(t),e.forEach(d.bind(null,t,i))):(t&&"object"===n(t)&&Object.keys(t).forEach(m.bind(null,t,i)),Object.keys(e).forEach(h.bind(null,t,e,i))),i}function v(t){return"/"+encodeURIComponent(t).replace(/~/g,"%7E")}e.deepCompareStrict=function t(e,r){if(n(e)!==n(r))return!1;if(Array.isArray(e))return!!Array.isArray(r)&&(e.length===r.length&&e.every((function(n,i){return t(e[i],r[i])})));if("object"===n(e)){if(!e||!r)return e===r;var i=Object.keys(e),o=Object.keys(r);return i.length===o.length&&i.every((function(n){return t(e[n],r[n])}))}return e===r},t.exports.deepMerge=y,e.objectGetPath=function(t,e){for(var r,n=e.split("/").slice(1);"string"==typeof(r=n.shift());){var i=decodeURIComponent(r.replace(/~0/,"~").replace(/~1/g,"/"));if(!(i in t))return;t=t[i]}return t},e.encodePath=function(t){return t.map(v).join("")},e.getDecimalPlaces=function(t){var e=0;if(isNaN(t))return e;"number"!=typeof t&&(t=Number(t));var r=t.toString().split("e");if(2===r.length){if("-"!==r[1][0])return e;e=Number(r[1].slice(1))}var n=r[0].split(".");return 2===n.length&&(e+=n[1].length),e},e.isSchema=function(t){return"object"===n(t)&&t||"boolean"==typeof t}},function(t,e,r){"use strict";r.d(e,"b",(function(){return o})),r.d(e,"d",(function(){return d})),r.d(e,"c",(function(){return h})),r.d(e,"a",(function(){return v})),r.d(e,"e",(function(){return b.a}));var n=r(4),i=["expires","from","host","if-modified-since","if-unmodified-since","age","authorization","content-length","content-type","etag","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],o=function(t){var e,r,o,a={};return t?(t.split("\n").forEach((function(t){o=t.indexOf(":"),e=Object(n.i)(t.substr(0,o)).toLowerCase(),r=Object(n.i)(t.substr(o+1)),e&&(a[e]&&i.indexOf(e)>=0||(a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r))})),a):a},a=function(t,e,r,n){void 0===n&&(n=!1);var i=s(e);return t||(t={}),void 0===(t=JSON.parse(JSON.stringify(t)))[e]&&void 0===t[i]?t[i]=r:n&&(delete t[e],t[i]=r),t},s=function(t){var e={"content-md5":"Content-MD5",dnt:"DNT",etag:"ETag","last-event-id":"Last-Event-ID",tcn:"TCN",te:"TE","www-authenticate":"WWW-Authenticate","x-dnsprefetch-control":"X-DNSPrefetch-Control"}[t.toLowerCase()];return e||t.split("-").map((function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()})).join("-")},c=r(0),u=r(1),p=r(20),l=r(3),f=r.n(l)()("fs:request:data"),d=function(t){return t=m(t),Object(n.e)(t.data)||Object(n.c)(t.data)||Object(n.g)(t.data)||Object(n.d)(t.data)||Object(n.b)(t.data)||Object(n.a)(t.data)||(Object(n.h)(t.data)?(t.headers=a(t.headers,"content-type","application/x-www-form-urlencoded;charset=utf-8"),t.data=t.data.toString()):Object(n.f)(t.data)&&(t.headers=a(t.headers,"content-type","application/json",!0),t.data=JSON.stringify(t.data))),t},m=function(t){return t.filestackHeaders?(t.headers=a(t.headers,"filestack-source",Object(u.getVersion)()),t.headers=a(t.headers,"filestack-trace-id","".concat(Math.floor(Date.now()/1e3),"-").concat(Object(u.uniqueId)())),t.headers=a(t.headers,"filestack-trace-span","jssdk-".concat(Object(u.uniqueId)())),t):t},h=function(t){return Object(c.b)(void 0,void 0,void 0,(function(){var e,r;return Object(c.d)(this,(function(i){if(!t.headers||!t.headers["content-type"])return[2,Promise.resolve(t)];if(e=t.headers["content-type"],/application\/json/.test(e))try{t.data=JSON.parse(t.data)}catch(e){f("Cannot parse response %O - %O",t.data,t.headers)}else/text\/(plain|html)/.test(e)?Object(n.c)(t.data)&&(t.data=y(t.data)):/application\/xml/.test(e)&&(r=t.data,Object(n.c)(t.data)&&(r=y(t.data)),!0===p.XMLValidator.validate(r)&&(t.data=new p.XMLParser({ignoreDeclaration:!0,ignoreAttributes:!0,trimValues:!0}).parse(r)));return[2,Promise.resolve(t)]}))}))};function y(t){for(var e=new Uint16Array(t),r=e.length,n="",i=Math.pow(2,16)-1,o=0;o<r;o+=i)o+i>r&&(i=r-o),n+=String.fromCharCode.apply(null,e.subarray(o,o+i));return n}var v=function(t,e){if(!e)return t;var r=g(e),n=t.indexOf("#");return-1!==n&&(t=t.slice(0,n)),t+(-1===t.indexOf("?")?"?":"&")+r},g=function(t){return Object.keys(t).filter((function(e){return e&&void 0!==t[e]})).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e]))})).join("&")},b=r(12)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var n=r(19);Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return n.EndOfStreamError}});var i=r(44);Object.defineProperty(e,"StreamReader",{enumerable:!0,get:function(){return i.StreamReader}})},function(t,e,r){"use strict";(function(t,n){r.d(e,"b",(function(){return o})),r.d(e,"a",(function(){return a}));var i=r(33);function o(){return!Object(i.a)()&&"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)}function a(t,e){return t.require(e)}}).call(this,r(25),r(28)(t))},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(2),i=r(3),o=r.n(i)()("fs:request:shouldRetry"),a=function(t){switch(o("Checking error for retry. Code: %n, type: %s",t.response?t.response.status:"Malformed response",t.code),t.code){case n.b.NETWORK:case n.b.SERVER:case n.b.TIMEOUT:return!0;case n.b.ABORTED:return!1}return!!t.response&&(500<=t.response.status&&t.response.status<=599)}},function(t,e,r){"use strict";var n=t.exports.Validator=r(34);t.exports.ValidatorResult=r(8).ValidatorResult,t.exports.ValidatorResultError=r(8).ValidatorResultError,t.exports.ValidationError=r(8).ValidationError,t.exports.SchemaError=r(8).SchemaError,t.exports.SchemaScanResult=r(16).SchemaScanResult,t.exports.scan=r(16).scan,t.exports.validate=function(t,e,r){return(new n).validate(t,e,r)}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=r(35),o=r(36);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=x,e.resolve=function(t,e){return x(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?x(t,!1,!0).resolveObject(e):e},e.format=function(t){o.isString(t)&&(t=x(t));return t instanceof a?t.format():a.prototype.format.call(t)},e.Url=a;var s=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(p),f=["%","/","?",";","#"].concat(l),d=["/","?","#"],m=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=r(37);function x(t,e,r){if(t&&o.isObject(t)&&t instanceof a)return t;var n=new a;return n.parse(t,e,r),n}a.prototype.parse=function(t,e,r){if(!o.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+n(t));var a=t.indexOf("?"),c=-1!==a&&a<t.indexOf("#")?"?":"#",p=t.split(c);p[0]=p[0].replace(/\\/g,"/");var x=t=p.join(c);if(x=x.trim(),!r&&1===t.split("#").length){var w=u.exec(x);if(w)return this.path=x,this.href=x,this.pathname=w[1],w[2]?(this.search=w[2],this.query=e?b.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var k=s.exec(x);if(k){var _=(k=k[0]).toLowerCase();this.protocol=_,x=x.substr(k.length)}if(r||k||x.match(/^\/\/[^@\/]+@[^@\/]+/)){var F="//"===x.substr(0,2);!F||k&&v[k]||(x=x.substr(2),this.slashes=!0)}if(!v[k]&&(F||k&&!g[k])){for(var E,O,j=-1,S=0;S<d.length;S++){-1!==(T=x.indexOf(d[S]))&&(-1===j||T<j)&&(j=T)}-1!==(O=-1===j?x.lastIndexOf("@"):x.lastIndexOf("@",j))&&(E=x.slice(0,O),x=x.slice(O+1),this.auth=decodeURIComponent(E)),j=-1;for(S=0;S<f.length;S++){var T;-1!==(T=x.indexOf(f[S]))&&(-1===j||T<j)&&(j=T)}-1===j&&(j=x.length),this.host=x.slice(0,j),x=x.slice(j),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var A=this.hostname.split(/\./),C=(S=0,A.length);S<C;S++){var D=A[S];if(D&&!D.match(m)){for(var I="",L=0,N=D.length;L<N;L++)D.charCodeAt(L)>127?I+="x":I+=D[L];if(!I.match(m)){var z=A.slice(0,S),B=A.slice(S+1),M=D.match(h);M&&(z.push(M[1]),B.unshift(M[2])),B.length&&(x="/"+B.join(".")+x),this.hostname=z.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=i.toASCII(this.hostname));var R=this.port?":"+this.port:"",$=this.hostname||"";this.host=$+R,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==x[0]&&(x="/"+x))}if(!y[_])for(S=0,C=l.length;S<C;S++){var U=l[S];if(-1!==x.indexOf(U)){var q=encodeURIComponent(U);q===U&&(q=escape(U)),x=x.split(U).join(q)}}var V=x.indexOf("#");-1!==V&&(this.hash=x.substr(V),x=x.slice(0,V));var G=x.indexOf("?");if(-1!==G?(this.search=x.substr(G),this.query=x.substr(G+1),e&&(this.query=b.parse(this.query)),x=x.slice(0,G)):e&&(this.search="",this.query={}),x&&(this.pathname=x),g[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){R=this.pathname||"";var Z=this.search||"";this.path=R+Z}return this.href=this.format(),this},a.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,a="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=b.stringify(this.query));var s=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||g[e])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),e+i+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(s=s.replace("#","%23"))+n},a.prototype.resolve=function(t){return this.resolveObject(x(t,!1,!0)).format()},a.prototype.resolveObject=function(t){if(o.isString(t)){var e=new a;e.parse(t,!1,!0),t=e}for(var r=new a,n=Object.keys(this),i=0;i<n.length;i++){var s=n[i];r[s]=this[s]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var c=Object.keys(t),u=0;u<c.length;u++){var p=c[u];"protocol"!==p&&(r[p]=t[p])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!g[t.protocol]){for(var l=Object.keys(t),f=0;f<l.length;f++){var d=l[f];r[d]=t[d]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||v[t.protocol])r.pathname=t.pathname;else{for(var m=(t.pathname||"").split("/");m.length&&!(t.host=m.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==m[0]&&m.unshift(""),m.length<2&&m.unshift(""),r.pathname=m.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var h=r.pathname||"",y=r.search||"";r.path=h+y}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),x=t.host||t.pathname&&"/"===t.pathname.charAt(0),w=x||b||r.host&&t.pathname,k=w,_=r.pathname&&r.pathname.split("/")||[],F=(m=t.pathname&&t.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(F&&(r.hostname="",r.port=null,r.host&&(""===_[0]?_[0]=r.host:_.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===m[0]?m[0]=t.host:m.unshift(t.host)),t.host=null),w=w&&(""===m[0]||""===_[0])),x)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,_=m;else if(m.length)_||(_=[]),_.pop(),_=_.concat(m),r.search=t.search,r.query=t.query;else if(!o.isNullOrUndefined(t.search)){if(F)r.hostname=r.host=_.shift(),(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift());return r.search=t.search,r.query=t.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!_.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=_.slice(-1)[0],O=(r.host||t.host||_.length>1)&&("."===E||".."===E)||""===E,j=0,S=_.length;S>=0;S--)"."===(E=_[S])?_.splice(S,1):".."===E?(_.splice(S,1),j++):j&&(_.splice(S,1),j--);if(!w&&!k)for(;j--;j)_.unshift("..");!w||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),O&&"/"!==_.join("/").substr(-1)&&_.push("");var T,P=""===_[0]||_[0]&&"/"===_[0].charAt(0);F&&(r.hostname=r.host=P?"":_.length?_.shift():"",(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift()));return(w=w||r.host&&_.length)&&!P&&_.unshift(""),_.length?r.pathname=_.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var t=this.host,e=c.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=r(14),o=r(8);function a(t,e){this.id=t,this.ref=e}t.exports.SchemaScanResult=a,t.exports.scan=function(t,e){function r(t,e){if(e&&"object"==n(e))if(e.$ref){var a=i.resolve(t,e.$ref);p[a]=p[a]?p[a]+1:0}else{var l=e.$id||e.id,f=l?i.resolve(t,l):t;if(f){if(f.indexOf("#")<0&&(f+="#"),u[f]){if(!o.deepCompareStrict(u[f],e))throw new Error("Schema <"+f+"> already exists with different definition");return u[f]}u[f]=e,"#"==f[f.length-1]&&(u[f.substring(0,f.length-1)]=e)}s(f+"/items",Array.isArray(e.items)?e.items:[e.items]),s(f+"/extends",Array.isArray(e.extends)?e.extends:[e.extends]),r(f+"/additionalItems",e.additionalItems),c(f+"/properties",e.properties),r(f+"/additionalProperties",e.additionalProperties),c(f+"/definitions",e.definitions),c(f+"/patternProperties",e.patternProperties),c(f+"/dependencies",e.dependencies),s(f+"/disallow",e.disallow),s(f+"/allOf",e.allOf),s(f+"/anyOf",e.anyOf),s(f+"/oneOf",e.oneOf),r(f+"/not",e.not)}}function s(t,e){if(Array.isArray(e))for(var n=0;n<e.length;n++)r(t+"/"+n,e[n])}function c(t,e){if(e&&"object"==n(e))for(var i in e)r(t+"/"+i,e[i])}var u={},p={};return r(t,e),new a(u,p)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromBuffer=e.fromStream=e.EndOfStreamError=void 0;var n=r(43),i=r(46),o=r(10);Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return o.EndOfStreamError}}),e.fromStream=function(t,e){return e=e||{},new n.ReadStreamTokenizer(t,e)},e.fromBuffer=function(t,e){return new i.BufferTokenizer(t,e)}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new A(n||[]);return a(o,"_invoke",{value:j(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",h="executing",y="completed",v={};function g(){}function b(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(C([])));_&&_!==r&&o.call(_,c)&&(w=_);var F=x.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,s,c){var u=d(t[i],t,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var i=m;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var u=d(e,r,n);if("normal"===u.type){if(i=n.done?y:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=x,a(F,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,p,"GeneratorFunction")),t.prototype=Object.create(F),t},e.awrap=function(t){return{__await:t}},E(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(F),l(F,p,"Generator"),l(F,c,(function(){return this})),l(F,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function c(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractTokenizer=void 0;var u=r(10),p=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=e||{}}var e,r,n,o,c,p,l,f,d;return e=t,(r=[{key:"readToken",value:(d=a(i().mark((function t(e){var r,n,o=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:this.position,n=Buffer.alloc(e.len),t.next=4,this.readBuffer(n,{position:r});case 4:if(!(t.sent<e.len)){t.next=7;break}throw new u.EndOfStreamError;case 7:return t.abrupt("return",e.get(n,0));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return d.apply(this,arguments)})},{key:"peekToken",value:(f=a(i().mark((function t(e){var r,n,o=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:this.position,n=Buffer.alloc(e.len),t.next=4,this.peekBuffer(n,{position:r});case 4:if(!(t.sent<e.len)){t.next=7;break}throw new u.EndOfStreamError;case 7:return t.abrupt("return",e.get(n,0));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"readNumber",value:(l=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.readBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new u.EndOfStreamError;case 5:return t.abrupt("return",e.get(this.numBuffer,0));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"peekNumber",value:(p=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.peekBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new u.EndOfStreamError;case 5:return t.abrupt("return",e.get(this.numBuffer,0));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return p.apply(this,arguments)})},{key:"ignore",value:(c=a(i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===this.fileInfo.size){t.next=5;break}if(r=this.fileInfo.size-this.position,!(e>r)){t.next=5;break}return this.position+=r,t.abrupt("return",r);case 5:return this.position+=e,t.abrupt("return",e);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"close",value:(o=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)})},{key:"normalizeOptions",value:function(t,e){if(e&&void 0!==e.position&&e.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return e?{mayBeLess:!0===e.mayBeLess,offset:e.offset?e.offset:0,length:e.length?e.length:t.length-(e.offset?e.offset:0),position:e.position?e.position:this.position}:{mayBeLess:!1,offset:0,length:t.length,position:this.position}}}])&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.AbstractTokenizer=p},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}function a(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function s(t){var e="function"==typeof Map?new Map:void 0;return(s=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return c(t,arguments,l(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,t)})(t)}function c(t,e,r){return(c=u()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&p(i,r.prototype),i}).apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function p(t,e){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.EndOfStreamError=e.defaultMessages=void 0,e.defaultMessages="End-Of-Stream";var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(d,t);var r,n,o,s,c,f=(r=d,n=u(),function(){var t,e=l(r);if(n){var i=l(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return a(this,t)});function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),f.call(this,e.defaultMessages)}return o=d,s&&i(o.prototype,s),c&&i(o,c),Object.defineProperty(o,"prototype",{writable:!1}),o}(s(Error));e.EndOfStreamError=f},function(t,e,r){"use strict";var n=r(26),i=r(56),o=r(63);t.exports={XMLParser:i,XMLValidator:n,XMLBuilder:o}},,function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new A(n||[]);return a(o,"_invoke",{value:j(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",h="executing",y="completed",v={};function g(){}function b(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(C([])));_&&_!==r&&o.call(_,c)&&(w=_);var F=x.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,s,c){var u=d(t[i],t,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var i=m;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var u=d(e,r,n);if("normal"===u.type){if(i=n.done?y:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=x,a(F,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,p,"GeneratorFunction")),t.prototype=Object.create(F),t},e.awrap=function(t){return{__await:t}},E(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(F),l(F,p,"Generator"),l(F,c,(function(){return this})),l(F,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}Object.defineProperty(e,"__esModule",{value:!0}),e.readFile=e.writeFileSync=e.writeFile=e.read=e.open=e.close=e.stat=e.createReadStream=e.pathExists=void 0;var s=r(42);function c(){return(c=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){s.stat(e,(function(e,n){e?r(e):t(n)}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function u(){return(u=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){s.close(e,(function(e){e?r(e):t()}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(){return(p=a(i().mark((function t(e,r){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,n){s.open(e,r,(function(e,r){e?n(e):t(r)}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function l(){return(l=a(i().mark((function t(e,r,n,o,a){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,i){s.read(e,r,n,o,a,(function(e,r,n){e?i(e):t({bytesRead:r,buffer:n})}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(){return(f=a(i().mark((function t(e,r){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,n){s.writeFile(e,r,(function(e){e?n(e):t()}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function d(){return(d=a(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){s.readFile(e,(function(e,n){e?r(e):t(n)}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}e.pathExists=s.existsSync,e.createReadStream=s.createReadStream,e.stat=function(t){return c.apply(this,arguments)},e.close=function(t){return u.apply(this,arguments)},e.open=function(t,e){return p.apply(this,arguments)},e.read=function(t,e,r,n,i){return l.apply(this,arguments)},e.writeFile=function(t,e){return f.apply(this,arguments)},e.writeFileSync=function(t,e){s.writeFileSync(t,e)},e.readFile=function(t){return d.apply(this,arguments)}},function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var c,u=[],p=!1,l=-1;function f(){p&&c&&(p=!1,c.length?u=c.concat(u):l=-1,u.length&&d())}function d(){if(!p){var t=s(f);p=!0;for(var e=u.length;e;){for(c=u,u=[];++l<e;)c&&c[l].run();l=-1,e=u.length}c=null,p=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function m(t,e){this.fun=t,this.array=e}function h(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new m(t,e)),1!==u.length||p||s(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,r){"use strict";var n=r(27),i={allowBooleanAttributes:!1,unpairedTags:[]};function o(t){return" "===t||"\t"===t||"\n"===t||"\r"===t}function a(t,e){for(var r=e;e<t.length;e++)if("?"!=t[e]&&" "!=t[e]);else{var n=t.substr(r,e-r);if(e>5&&"xml"===n)return f("InvalidXml","XML declaration allowed only at the start of the document.",m(t,e));if("?"==t[e]&&">"==t[e+1]){e++;break}}return e}function s(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e<t.length;e++)if("-"===t[e]&&"-"===t[e+1]&&">"===t[e+2]){e+=2;break}}else if(t.length>e+8&&"D"===t[e+1]&&"O"===t[e+2]&&"C"===t[e+3]&&"T"===t[e+4]&&"Y"===t[e+5]&&"P"===t[e+6]&&"E"===t[e+7]){var r=1;for(e+=8;e<t.length;e++)if("<"===t[e])r++;else if(">"===t[e]&&0===--r)break}else if(t.length>e+9&&"["===t[e+1]&&"C"===t[e+2]&&"D"===t[e+3]&&"A"===t[e+4]&&"T"===t[e+5]&&"A"===t[e+6]&&"["===t[e+7])for(e+=8;e<t.length;e++)if("]"===t[e]&&"]"===t[e+1]&&">"===t[e+2]){e+=2;break}return e}e.validate=function(t,e){e=Object.assign({},i,e);var r,u=[],d=!1,h=!1;"\ufeff"===t[0]&&(t=t.substr(1));for(var y=0;y<t.length;y++)if("<"===t[y]&&"?"===t[y+1]){if((y=a(t,y+=2)).err)return y}else{if("<"!==t[y]){if(o(t[y]))continue;return f("InvalidChar","char '"+t[y]+"' is not expected.",m(t,y))}var v=y;if("!"===t[++y]){y=s(t,y);continue}var g=!1;"/"===t[y]&&(g=!0,y++);for(var b="";y<t.length&&">"!==t[y]&&" "!==t[y]&&"\t"!==t[y]&&"\n"!==t[y]&&"\r"!==t[y];y++)b+=t[y];if("/"===(b=b.trim())[b.length-1]&&(b=b.substring(0,b.length-1),y--),r=b,!n.isName(r)){return f("InvalidTag",0===b.trim().length?"Invalid space after '<'.":"Tag '"+b+"' is an invalid name.",m(t,y))}var x=c(t,y);if(!1===x)return f("InvalidAttr","Attributes for '"+b+"' have open quote.",m(t,y));var w=x.value;if(y=x.index,"/"===w[w.length-1]){var k=y-w.length,_=p(w=w.substring(0,w.length-1),e);if(!0!==_)return f(_.err.code,_.err.msg,m(t,k+_.err.line));d=!0}else if(g){if(!x.tagClosed)return f("InvalidTag","Closing tag '"+b+"' doesn't have proper closing.",m(t,y));if(w.trim().length>0)return f("InvalidTag","Closing tag '"+b+"' can't have attributes or invalid starting.",m(t,v));var F=u.pop();if(b!==F.tagName){var E=m(t,F.tagStartPos);return f("InvalidTag","Expected closing tag '"+F.tagName+"' (opened in line "+E.line+", col "+E.col+") instead of closing tag '"+b+"'.",m(t,v))}0==u.length&&(h=!0)}else{var O=p(w,e);if(!0!==O)return f(O.err.code,O.err.msg,m(t,y-w.length+O.err.line));if(!0===h)return f("InvalidXml","Multiple possible root nodes found.",m(t,y));-1!==e.unpairedTags.indexOf(b)||u.push({tagName:b,tagStartPos:v}),d=!0}for(y++;y<t.length;y++)if("<"===t[y]){if("!"===t[y+1]){y=s(t,++y);continue}if("?"!==t[y+1])break;if((y=a(t,++y)).err)return y}else if("&"===t[y]){var j=l(t,y);if(-1==j)return f("InvalidChar","char '&' is not expected.",m(t,y));y=j}else if(!0===h&&!o(t[y]))return f("InvalidXml","Extra text at the end",m(t,y));"<"===t[y]&&y--}return d?1==u.length?f("InvalidTag","Unclosed tag '"+u[0].tagName+"'.",m(t,u[0].tagStartPos)):!(u.length>0)||f("InvalidXml","Invalid '"+JSON.stringify(u.map((function(t){return t.tagName})),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):f("InvalidXml","Start tag expected.",1)};function c(t,e){for(var r="",n="",i=!1;e<t.length;e++){if('"'===t[e]||"'"===t[e])""===n?n=t[e]:n!==t[e]||(n="");else if(">"===t[e]&&""===n){i=!0;break}r+=t[e]}return""===n&&{value:r,index:e,tagClosed:i}}var u=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function p(t,e){for(var r=n.getAllMatches(t,u),i={},o=0;o<r.length;o++){if(0===r[o][1].length)return f("InvalidAttr","Attribute '"+r[o][2]+"' has no space in starting.",h(r[o]));if(void 0!==r[o][3]&&void 0===r[o][4])return f("InvalidAttr","Attribute '"+r[o][2]+"' is without value.",h(r[o]));if(void 0===r[o][3]&&!e.allowBooleanAttributes)return f("InvalidAttr","boolean attribute '"+r[o][2]+"' is not allowed.",h(r[o]));var a=r[o][2];if(!d(a))return f("InvalidAttr","Attribute '"+a+"' is an invalid name.",h(r[o]));if(i.hasOwnProperty(a))return f("InvalidAttr","Attribute '"+a+"' is repeated.",h(r[o]));i[a]=1}return!0}function l(t,e){if(";"===t[++e])return-1;if("#"===t[e])return function(t,e){var r=/\d/;for("x"===t[e]&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(";"===t[e])return e;if(!t[e].match(r))break}return-1}(t,++e);for(var r=0;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(";"===t[e])break;return-1}return e}function f(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function d(t){return n.isName(t)}function m(t,e){var r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function h(t){return t.startIndex+t[1].length}},function(t,e,r){"use strict";var n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i="["+n+"][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+i+"$");e.isExist=function(t){return void 0!==t},e.isEmptyObject=function(t){return 0===Object.keys(t).length},e.merge=function(t,e,r){if(e)for(var n=Object.keys(e),i=n.length,o=0;o<i;o++)t[n[o]]="strict"===r?[e[n[o]]]:e[n[o]]},e.getValue=function(t){return e.isExist(t)?t:""},e.isName=function(t){var e=o.exec(t);return!(null==e)},e.getAllMatches=function(t,e){for(var r=[],n=e.exec(t);n;){var i=[];i.startIndex=e.lastIndex-n[0].length;for(var o=n.length,a=0;a<o;a++)i.push(n[a]);r.push(i),n=e.exec(t)}return r},e.nameRegexp=i},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new A(n||[]);return a(o,"_invoke",{value:j(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",h="executing",y="completed",v={};function g(){}function b(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(C([])));_&&_!==r&&o.call(_,c)&&(w=_);var F=x.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,s,c){var u=d(t[i],t,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var i=m;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var u=d(e,r,n);if("normal"===u.type){if(i=n.done?y:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=x,a(F,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,p,"GeneratorFunction")),t.prototype=Object.create(F),t},e.awrap=function(t){return{__await:t}},E(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(F),l(F,p,"Generator"),l(F,c,(function(){return this})),l(F,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}var s=r(41),c=r(48);function u(){return(u=a(i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.fromFile(e);case 2:return r=t.sent,t.prev=3,t.next=6,c.fromTokenizer(r);case 6:return t.abrupt("return",t.sent);case 7:return t.prev=7,t.next=10,r.close();case 10:return t.finish(7);case 11:case"end":return t.stop()}}),t,null,[[3,,7,11]])})))).apply(this,arguments)}var p={fromFile:function(t){return u.apply(this,arguments)}};Object.assign(p,c),Object.defineProperty(p,"extensions",{get:function(){return c.extensions}}),Object.defineProperty(p,"mimeTypes",{get:function(){return c.mimeTypes}}),t.exports=p},function(t,e,r){var n,i,o;function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}o=function(t){"use strict";var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(t,e){var r=t[0],n=t[1],i=t[2],o=t[3];n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[0]-680876936|0)<<7|r>>>25)+n|0)&n|~r&i)+e[1]-389564586|0)<<12|o>>>20)+r|0)&r|~o&n)+e[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&r)+e[3]-1044525330|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[4]-176418897|0)<<7|r>>>25)+n|0)&n|~r&i)+e[5]+1200080426|0)<<12|o>>>20)+r|0)&r|~o&n)+e[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&r)+e[7]-45705983|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[8]+1770035416|0)<<7|r>>>25)+n|0)&n|~r&i)+e[9]-1958414417|0)<<12|o>>>20)+r|0)&r|~o&n)+e[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&r)+e[11]-1990404162|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[12]+1804603682|0)<<7|r>>>25)+n|0)&n|~r&i)+e[13]-40341101|0)<<12|o>>>20)+r|0)&r|~o&n)+e[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&r)+e[15]+1236535329|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[1]-165796510|0)<<5|r>>>27)+n|0)&i|n&~i)+e[6]-1069501632|0)<<9|o>>>23)+r|0)&n|r&~n)+e[11]+643717713|0)<<14|i>>>18)+o|0)&r|o&~r)+e[0]-373897302|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[5]-701558691|0)<<5|r>>>27)+n|0)&i|n&~i)+e[10]+38016083|0)<<9|o>>>23)+r|0)&n|r&~n)+e[15]-660478335|0)<<14|i>>>18)+o|0)&r|o&~r)+e[4]-405537848|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[9]+568446438|0)<<5|r>>>27)+n|0)&i|n&~i)+e[14]-1019803690|0)<<9|o>>>23)+r|0)&n|r&~n)+e[3]-187363961|0)<<14|i>>>18)+o|0)&r|o&~r)+e[8]+1163531501|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[13]-1444681467|0)<<5|r>>>27)+n|0)&i|n&~i)+e[2]-51403784|0)<<9|o>>>23)+r|0)&n|r&~n)+e[7]+1735328473|0)<<14|i>>>18)+o|0)&r|o&~r)+e[12]-1926607734|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[5]-378558|0)<<4|r>>>28)+n|0)^n^i)+e[8]-2022574463|0)<<11|o>>>21)+r|0)^r^n)+e[11]+1839030562|0)<<16|i>>>16)+o|0)^o^r)+e[14]-35309556|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[1]-1530992060|0)<<4|r>>>28)+n|0)^n^i)+e[4]+1272893353|0)<<11|o>>>21)+r|0)^r^n)+e[7]-155497632|0)<<16|i>>>16)+o|0)^o^r)+e[10]-1094730640|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[13]+681279174|0)<<4|r>>>28)+n|0)^n^i)+e[0]-358537222|0)<<11|o>>>21)+r|0)^r^n)+e[3]-722521979|0)<<16|i>>>16)+o|0)^o^r)+e[6]+76029189|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[9]-640364487|0)<<4|r>>>28)+n|0)^n^i)+e[12]-421815835|0)<<11|o>>>21)+r|0)^r^n)+e[15]+530742520|0)<<16|i>>>16)+o|0)^o^r)+e[2]-995338651|0)<<23|n>>>9)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[0]-198630844|0)<<6|r>>>26)+n|0)|~i))+e[7]+1126891415|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[14]-1416354905|0)<<15|i>>>17)+o|0)|~r))+e[5]-57434055|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[12]+1700485571|0)<<6|r>>>26)+n|0)|~i))+e[3]-1894986606|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[10]-1051523|0)<<15|i>>>17)+o|0)|~r))+e[1]-2054922799|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[8]+1873313359|0)<<6|r>>>26)+n|0)|~i))+e[15]-30611744|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[6]-1560198380|0)<<15|i>>>17)+o|0)|~r))+e[13]+1309151649|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[4]-145523070|0)<<6|r>>>26)+n|0)|~i))+e[11]-1120210379|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[2]+718787259|0)<<15|i>>>17)+o|0)|~r))+e[9]-343485551|0)<<21|n>>>11)+i|0,t[0]=r+t[0]|0,t[1]=n+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0}function n(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}function i(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return r}function o(t){var e,i,o,a,s,c,u=t.length,p=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=u;e+=64)r(p,n(t.substring(e-64,e)));for(i=(t=t.substring(e-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<i;e+=1)o[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(r(p,o),e=0;e<16;e+=1)o[e]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),c=parseInt(a[1],16)||0,o[14]=s,o[15]=c,r(p,o),p}function a(t){var r,n="";for(r=0;r<4;r+=1)n+=e[t>>8*r+4&15]+e[t>>8*r&15];return n}function s(t){var e;for(e=0;e<t.length;e+=1)t[e]=a(t[e]);return t.join("")}function c(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function u(t){var e,r=[],n=t.length;for(e=0;e<n-1;e+=2)r.push(parseInt(t.substr(e,2),16));return String.fromCharCode.apply(String,r)}function p(){this.reset()}return s(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(t,e){return(t=0|t||0)<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(r,n){var i,o,a,s,c=this.byteLength,u=e(r,c),p=c;return n!==t&&(p=e(n,c)),u>p?new ArrayBuffer(0):(i=p-u,o=new ArrayBuffer(i),a=new Uint8Array(o),s=new Uint8Array(this,u,i),a.set(s),o)}}(),p.prototype.append=function(t){return this.appendBinary(c(t)),this},p.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,i=this._buff.length;for(e=64;e<=i;e+=64)r(this._hash,n(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},p.prototype.end=function(t){var e,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=n.charCodeAt(e)<<(e%4<<3);return this._finish(o,i),r=s(this._hash),t&&(r=u(r)),this.reset(),r},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},p.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(t,e){var n,i,o,a=e;if(t[a>>2]|=128<<(a%4<<3),a>55)for(r(this._hash,t),a=0;a<16;a+=1)t[a]=0;n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(n[2],16),o=parseInt(n[1],16)||0,t[14]=i,t[15]=o,r(this._hash,t)},p.hash=function(t,e){return p.hashBinary(c(t),e)},p.hashBinary=function(t,e){var r=s(o(t));return e?u(r):r},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(t){var e,n,o,a,s,c=(n=this._buff.buffer,o=t,a=!0,(s=new Uint8Array(n.byteLength+o.byteLength)).set(new Uint8Array(n)),s.set(new Uint8Array(o),n.byteLength),a?s:s.buffer),u=c.length;for(this._length+=t.byteLength,e=64;e<=u;e+=64)r(this._hash,i(c.subarray(e-64,e)));return this._buff=e-64<u?new Uint8Array(c.buffer.slice(e-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(t){var e,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=n[e]<<(e%4<<3);return this._finish(o,i),r=s(this._hash),t&&(r=u(r)),this.reset(),r},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var t,e=p.prototype.getState.call(this);return e.buff=(t=e.buff,String.fromCharCode.apply(null,new Uint8Array(t))),e},p.ArrayBuffer.prototype.setState=function(t){return t.buff=function(t,e){var r,n=t.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r<n;r+=1)o[r]=t.charCodeAt(r);return e?o:i}(t.buff,!0),p.prototype.setState.call(this,t)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(t,e){var n=s(function(t){var e,n,o,a,s,c,u=t.length,p=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=u;e+=64)r(p,i(t.subarray(e-64,e)));for(n=(t=e-64<u?t.subarray(e-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<n;e+=1)o[e>>2]|=t[e]<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(r(p,o),e=0;e<16;e+=1)o[e]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),c=parseInt(a[1],16)||0,o[14]=s,o[15]=c,r(p,o),p}(new Uint8Array(t)));return e?u(n):n},p},"object"===a(e)?t.exports=o():void 0===(i="function"==typeof(n=o)?n.call(e,r,e,t):n)||(t.exports=i)},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new A(n||[]);return o(a,"_invoke",{value:j(t,r,s)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",h="executing",y="completed",v={};function g(){}function b(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(C([])));_&&_!==r&&i.call(_,c)&&(w=_);var F=x.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(n,o,s,c){var u=d(t[n],t,o);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==a(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var n;o(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,n){r(t,i,e,n)}))}return n=n?n.then(o,o):o()}})}function j(e,r,n){var i=m;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var u=d(e,r,n);if("normal"===u.type){if(i=n.done?y:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function r(){for(;++n<e.length;)if(i.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(a(e)+" is not iterable")}return b.prototype=x,o(F,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,p,"GeneratorFunction")),t.prototype=Object.create(F),t},e.awrap=function(t){return{__await:t}},E(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(F),l(F,p,"Generator"),l(F,c,(function(){return this})),l(F,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function c(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:String(e)}function u(t,e){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=f(t);if(e){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0});var d=r(65),m=r(66),h=r(68),y=function(){},v=new m.TimeoutError,g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(b,t);var e,r,i,c,l,f,d,g=p(b);function b(t){var e,r,n,i,o;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),(e=g.call(this))._intervalCount=0,e._intervalEnd=0,e._pendingCount=0,e._resolveEmpty=y,e._resolveIdle=y,!("number"==typeof(t=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:h.default},t)).intervalCap&&t.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(n=null===(r=t.intervalCap)||void 0===r?void 0:r.toString())&&void 0!==n?n:"","` (").concat(a(t.intervalCap),")"));if(void 0===t.interval||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(o=null===(i=t.interval)||void 0===i?void 0:i.toString())&&void 0!==o?o:"","` (").concat(a(t.interval),")"));return e._carryoverConcurrencyCount=t.carryoverConcurrencyCount,e._isIntervalIgnored=t.intervalCap===1/0||0===t.interval,e._intervalCap=t.intervalCap,e._interval=t.interval,e._queue=new t.queueClass,e._queueClass=t.queueClass,e.concurrency=t.concurrency,e._timeout=t.timeout,e._throwOnTimeout=!0===t.throwOnTimeout,e._isPaused=!1===t.autoStart,e}return e=b,(r=[{key:"_doesIntervalAllowAnother",get:function(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}},{key:"_doesConcurrentAllowAnother",get:function(){return this._pendingCount<this._concurrency}},{key:"_next",value:function(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}},{key:"_resolvePromises",value:function(){this._resolveEmpty(),this._resolveEmpty=y,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=y,this.emit("idle"))}},{key:"_onResumeInterval",value:function(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}},{key:"_isIntervalPaused",value:function(){var t=this,e=Date.now();if(void 0===this._intervalId){var r=this._intervalEnd-e;if(!(r<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((function(){t._onResumeInterval()}),r)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}},{key:"_tryToStartAnother",value:function(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){var t=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){var e=this._queue.dequeue();return!!e&&(this.emit("active"),e(),t&&this._initializeIntervalIfNeeded(),!0)}}return!1}},{key:"_initializeIntervalIfNeeded",value:function(){var t=this;this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((function(){t._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}},{key:"_onInterval",value:function(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}},{key:"_processQueue",value:function(){for(;this._tryToStartAnother(););}},{key:"concurrency",get:function(){return this._concurrency},set:function(t){if(!("number"==typeof t&&t>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(t,"` (").concat(a(t),")"));this._concurrency=t,this._processQueue()}},{key:"add",value:(d=o(n().mark((function t(e){var r,i=this,a=arguments;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",new Promise((function(t,a){var s=function(){var s=o(n().mark((function o(){var s;return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i._pendingCount++,i._intervalCount++,n.prev=2,s=void 0===i._timeout&&void 0===r.timeout?e():m.default(Promise.resolve(e()),void 0===r.timeout?i._timeout:r.timeout,(function(){(void 0===r.throwOnTimeout?i._throwOnTimeout:r.throwOnTimeout)&&a(v)})),n.t0=t,n.next=7,s;case 7:n.t1=n.sent,(0,n.t0)(n.t1),n.next=14;break;case 11:n.prev=11,n.t2=n.catch(2),a(n.t2);case 14:i._next();case 15:case"end":return n.stop()}}),o,null,[[2,11]])})));return function(){return s.apply(this,arguments)}}();i._queue.enqueue(s,r),i._tryToStartAnother(),i.emit("add")})));case 2:case"end":return t.stop()}}),t)}))),function(t){return d.apply(this,arguments)})},{key:"addAll",value:(f=o(n().mark((function t(e,r){var i=this;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.all(e.map(function(){var t=o(n().mark((function t(e){return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i.add(e,r));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())));case 1:case"end":return t.stop()}}),t)}))),function(t,e){return f.apply(this,arguments)})},{key:"start",value:function(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}},{key:"pause",value:function(){this._isPaused=!0}},{key:"clear",value:function(){this._queue=new this._queueClass}},{key:"onEmpty",value:(l=o(n().mark((function t(){var e=this;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==this._queue.size){t.next=2;break}return t.abrupt("return");case 2:return t.abrupt("return",new Promise((function(t){var r=e._resolveEmpty;e._resolveEmpty=function(){r(),t()}})));case 3:case"end":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)})},{key:"onIdle",value:(c=o(n().mark((function t(){var e=this;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==this._pendingCount||0!==this._queue.size){t.next=2;break}return t.abrupt("return");case 2:return t.abrupt("return",new Promise((function(t){var r=e._resolveIdle;e._resolveIdle=function(){r(),t()}})));case 3:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"size",get:function(){return this._queue.size}},{key:"sizeBy",value:function(t){return this._queue.filter(t).length}},{key:"pending",get:function(){return this._pendingCount}},{key:"isPaused",get:function(){return this._isPaused}},{key:"timeout",get:function(){return this._timeout},set:function(t){this._timeout=t}}])&&s(e.prototype,r),i&&s(e,i),Object.defineProperty(e,"prototype",{writable:!1}),b}(d);e.default=g},function(t,e,r){(function(t,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i="[object Arguments]",o="[object Function]",a="[object GeneratorFunction]",s="[object Map]",c="[object Set]",u=/\w*$/,p=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,f={};f[i]=f["[object Array]"]=f["[object ArrayBuffer]"]=f["[object DataView]"]=f["[object Boolean]"]=f["[object Date]"]=f["[object Float32Array]"]=f["[object Float64Array]"]=f["[object Int8Array]"]=f["[object Int16Array]"]=f["[object Int32Array]"]=f[s]=f["[object Number]"]=f["[object Object]"]=f["[object RegExp]"]=f[c]=f["[object String]"]=f["[object Symbol]"]=f["[object Uint8Array]"]=f["[object Uint8ClampedArray]"]=f["[object Uint16Array]"]=f["[object Uint32Array]"]=!0,f["[object Error]"]=f[o]=f["[object WeakMap]"]=!1;var d="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t,m="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,h=d||m||Function("return this")(),y="object"==n(e)&&e&&!e.nodeType&&e,v=y&&"object"==n(r)&&r&&!r.nodeType&&r,g=v&&v.exports===y;function b(t,e){return t.set(e[0],e[1]),t}function x(t,e){return t.add(e),t}function w(t,e,r,n){var i=-1,o=t?t.length:0;for(n&&o&&(r=t[++i]);++i<o;)r=e(r,t[i],i,t);return r}function k(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function _(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function F(t,e){return function(r){return t(e(r))}}function E(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var O,j=Array.prototype,S=Function.prototype,T=Object.prototype,P=h["__core-js_shared__"],A=(O=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",C=S.toString,D=T.hasOwnProperty,I=T.toString,L=RegExp("^"+C.call(D).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N=g?h.Buffer:void 0,z=h.Symbol,B=h.Uint8Array,M=F(Object.getPrototypeOf,Object),R=Object.create,$=T.propertyIsEnumerable,U=j.splice,q=Object.getOwnPropertySymbols,V=N?N.isBuffer:void 0,G=F(Object.keys,Object),Z=vt(h,"DataView"),H=vt(h,"Map"),W=vt(h,"Promise"),Y=vt(h,"Set"),Q=vt(h,"WeakMap"),K=vt(Object,"create"),J=kt(Z),X=kt(H),tt=kt(W),et=kt(Y),rt=kt(Q),nt=z?z.prototype:void 0,it=nt?nt.valueOf:void 0;function ot(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function at(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function st(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ct(t){this.__data__=new at(t)}function ut(t,e){var r=Ft(t)||function(t){return function(t){return function(t){return!!t&&"object"==n(t)}(t)&&Et(t)}(t)&&D.call(t,"callee")&&(!$.call(t,"callee")||I.call(t)==i)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],o=r.length,a=!!o;for(var s in t)!e&&!D.call(t,s)||a&&("length"==s||xt(s,o))||r.push(s);return r}function pt(t,e,r){var n=t[e];D.call(t,e)&&_t(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function lt(t,e){for(var r=t.length;r--;)if(_t(t[r][0],e))return r;return-1}function ft(t,e,r,n,p,l,d){var m;if(n&&(m=l?n(t,p,l,d):n(t)),void 0!==m)return m;if(!St(t))return t;var h=Ft(t);if(h){if(m=function(t){var e=t.length,r=t.constructor(e);e&&"string"==typeof t[0]&&D.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!e)return function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(t,m)}else{var y=bt(t),v=y==o||y==a;if(Ot(t))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(t,e);if("[object Object]"==y||y==i||v&&!l){if(k(t))return l?t:{};if(m=function(t){return"function"!=typeof t.constructor||wt(t)?{}:(e=M(t),St(e)?R(e):{});var e}(v?{}:t),!e)return function(t,e){return ht(t,gt(t),e)}(t,function(t,e){return t&&ht(e,Tt(e),t)}(m,t))}else{if(!f[y])return l?t:{};m=function(t,e,r,n){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return mt(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var r=e?mt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var r=e?mt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,n);case s:return function(t,e,r){return w(e?r(_(t),!0):_(t),b,new t.constructor)}(t,n,r);case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,u.exec(t));return e.lastIndex=t.lastIndex,e}(t);case c:return function(t,e,r){return w(e?r(E(t),!0):E(t),x,new t.constructor)}(t,n,r);case"[object Symbol]":return o=t,it?Object(it.call(o)):{}}var o}(t,y,ft,e)}}d||(d=new ct);var g=d.get(t);if(g)return g;if(d.set(t,m),!h)var F=r?function(t){return function(t,e,r){var n=e(t);return Ft(t)?n:function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}(n,r(t))}(t,Tt,gt)}(t):Tt(t);return function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r,t););}(F||t,(function(i,o){F&&(i=t[o=i]),pt(m,o,ft(i,e,r,n,o,t,d))})),m}function dt(t){return!(!St(t)||(e=t,A&&A in e))&&(jt(t)||k(t)?L:p).test(kt(t));var e}function mt(t){var e=new t.constructor(t.byteLength);return new B(e).set(new B(t)),e}function ht(t,e,r,n){r||(r={});for(var i=-1,o=e.length;++i<o;){var a=e[i],s=n?n(r[a],t[a],a,r,t):void 0;pt(r,a,void 0===s?t[a]:s)}return r}function yt(t,e){var r,i,o=t.__data__;return("string"==(i=n(r=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function vt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return dt(r)?r:void 0}ot.prototype.clear=function(){this.__data__=K?K(null):{}},ot.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},ot.prototype.get=function(t){var e=this.__data__;if(K){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return D.call(e,t)?e[t]:void 0},ot.prototype.has=function(t){var e=this.__data__;return K?void 0!==e[t]:D.call(e,t)},ot.prototype.set=function(t,e){return this.__data__[t]=K&&void 0===e?"__lodash_hash_undefined__":e,this},at.prototype.clear=function(){this.__data__=[]},at.prototype.delete=function(t){var e=this.__data__,r=lt(e,t);return!(r<0)&&(r==e.length-1?e.pop():U.call(e,r,1),!0)},at.prototype.get=function(t){var e=this.__data__,r=lt(e,t);return r<0?void 0:e[r][1]},at.prototype.has=function(t){return lt(this.__data__,t)>-1},at.prototype.set=function(t,e){var r=this.__data__,n=lt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},st.prototype.clear=function(){this.__data__={hash:new ot,map:new(H||at),string:new ot}},st.prototype.delete=function(t){return yt(this,t).delete(t)},st.prototype.get=function(t){return yt(this,t).get(t)},st.prototype.has=function(t){return yt(this,t).has(t)},st.prototype.set=function(t,e){return yt(this,t).set(t,e),this},ct.prototype.clear=function(){this.__data__=new at},ct.prototype.delete=function(t){return this.__data__.delete(t)},ct.prototype.get=function(t){return this.__data__.get(t)},ct.prototype.has=function(t){return this.__data__.has(t)},ct.prototype.set=function(t,e){var r=this.__data__;if(r instanceof at){var n=r.__data__;if(!H||n.length<199)return n.push([t,e]),this;r=this.__data__=new st(n)}return r.set(t,e),this};var gt=q?F(q,Object):function(){return[]},bt=function(t){return I.call(t)};function xt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||l.test(t))&&t>-1&&t%1==0&&t<e}function wt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||T)}function kt(t){if(null!=t){try{return C.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function _t(t,e){return t===e||t!=t&&e!=e}(Z&&"[object DataView]"!=bt(new Z(new ArrayBuffer(1)))||H&&bt(new H)!=s||W&&"[object Promise]"!=bt(W.resolve())||Y&&bt(new Y)!=c||Q&&"[object WeakMap]"!=bt(new Q))&&(bt=function(t){var e=I.call(t),r="[object Object]"==e?t.constructor:void 0,n=r?kt(r):void 0;if(n)switch(n){case J:return"[object DataView]";case X:return s;case tt:return"[object Promise]";case et:return c;case rt:return"[object WeakMap]"}return e});var Ft=Array.isArray;function Et(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!jt(t)}var Ot=V||function(){return!1};function jt(t){var e=St(t)?I.call(t):"";return e==o||e==a}function St(t){var e=n(t);return!!t&&("object"==e||"function"==e)}function Tt(t){return Et(t)?ut(t):function(t){if(!wt(t))return G(t);var e=[];for(var r in Object(t))D.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}r.exports=function(t){return ft(t,!0,!0)}}).call(this,r(15),r(22)(t))},function(t,e,r){"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=r(14),o=r(40),a=r(8),s=r(16).scan,c=a.ValidatorResult,u=a.ValidatorResultError,p=a.SchemaError,l=a.SchemaContext,f=function t(){this.customFormats=Object.create(t.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(m),this.attributes=Object.create(o.validators)};function d(t){var e="string"==typeof t?t:t.$ref;return"string"==typeof e&&e}f.prototype.customFormats={},f.prototype.schemas=null,f.prototype.types=null,f.prototype.attributes=null,f.prototype.unresolvedRefs=null,f.prototype.addSchema=function(t,e){var r=this;if(!t)return null;var n=s(e||"/",t),i=e||t.$id||t.id;for(var o in n.id)this.schemas[o]=n.id[o];for(var o in n.ref)this.unresolvedRefs.push(o);return this.unresolvedRefs=this.unresolvedRefs.filter((function(t){return void 0===r.schemas[t]})),this.schemas[i]},f.prototype.addSubSchemaArray=function(t,e){if(Array.isArray(e))for(var r=0;r<e.length;r++)this.addSubSchema(t,e[r])},f.prototype.addSubSchemaObject=function(t,e){if(e&&"object"==n(e))for(var r in e)this.addSubSchema(t,e[r])},f.prototype.setSchemas=function(t){this.schemas=t},f.prototype.getSchema=function(t){return this.schemas[t]},f.prototype.validate=function(t,e,r,o){if("boolean"!=typeof e&&"object"!==n(e)||null===e)throw new p("Expected `schema` to be an object or boolean");r||(r={});var a,f=e.$id||e.id,d=i.resolve(r.base||"/",f||"");if(!o){(o=new l(e,r,[],d,Object.create(this.schemas))).schemas[d]||(o.schemas[d]=e);var m=s(d,e);for(var h in m.id){var y=m.id[h];o.schemas[h]=y}}if(r.required&&void 0===t)return(a=new c(t,e,r,o)).addError("is required, but is undefined"),a;if(!(a=this.validateSchema(t,e,r,o)))throw new Error("Result undefined");if(r.throwAll&&a.errors.length)throw new u(a);return a},f.prototype.validateSchema=function(t,e,r,n){var i=new c(t,e,r,n);if("boolean"==typeof e)!0===e?e={}:!1===e&&(e={type:[]});else if(!e)throw new Error("schema is undefined");if(e.extends)if(Array.isArray(e.extends)){var s={schema:e,ctx:n};e.extends.forEach(this.schemaTraverser.bind(this,s)),e=s.schema,s.schema=null,s.ctx=null,s=null}else e=a.deepMerge(e,this.superResolve(e.extends,n));var u=d(e);if(u){var f=this.resolve(e,u,n),m=new l(f.subschema,r,n.path,f.switchSchema,n.schemas);return this.validateSchema(t,f.subschema,r,m)}var h=r&&r.skipAttributes||[];for(var y in e)if(!o.ignoreProperties[y]&&h.indexOf(y)<0){var v=null,g=this.attributes[y];if(g)v=g.call(this,t,e,r,n);else if(!1===r.allowUnknownAttributes)throw new p("Unsupported attribute: "+y,e);v&&i.importErrors(v)}if("function"==typeof r.rewrite){var b=r.rewrite.call(this,t,e,r,n);i.instance=b}return i},f.prototype.schemaTraverser=function(t,e){t.schema=a.deepMerge(t.schema,this.superResolve(e,t.ctx))},f.prototype.superResolve=function(t,e){var r=d(t);return r?this.resolve(t,r,e).subschema:t},f.prototype.resolve=function(t,e,r){if(e=r.resolve(e),r.schemas[e])return{subschema:r.schemas[e],switchSchema:e};var n=i.parse(e),o=n&&n.hash,s=o&&o.length&&e.substr(0,e.length-o.length);if(!s||!r.schemas[s])throw new p("no such schema <"+e+">",t);var c=a.objectGetPath(r.schemas[s],o.substr(1));if(void 0===c)throw new p("no such schema "+o+" located in <"+s+">",t);return{subschema:c,switchSchema:e}},f.prototype.testType=function(t,e,r,i,o){if(void 0!==o){if(null===o)throw new p('Unexpected null in "type" keyword');if("function"==typeof this.types[o])return this.types[o].call(this,t);if(o&&"object"==n(o)){var a=this.validateSchema(t,o,r,i);return void 0===a||!(a&&a.errors.length)}return!0}};var m=f.prototype.types={};m.string=function(t){return"string"==typeof t},m.number=function(t){return"number"==typeof t&&isFinite(t)},m.integer=function(t){return"number"==typeof t&&t%1==0},m.boolean=function(t){return"boolean"==typeof t},m.array=function(t){return Array.isArray(t)},m.null=function(t){return null===t},m.date=function(t){return t instanceof Date},m.any=function(t){return!0},m.object=function(t){return t&&"object"===n(t)&&!Array.isArray(t)&&!(t instanceof Date)},t.exports=f},function(t,e,r){(function(t,n){var i;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
26
26
  /*! https://mths.be/punycode v1.3.2 by @mathias */!function(a){var s="object"==o(e)&&e&&!e.nodeType&&e,c="object"==o(t)&&t&&!t.nodeType&&t,u="object"==(void 0===n?"undefined":o(n))&&n;u.global!==u&&u.window!==u&&u.self!==u||(a=u);var p,l,f=2147483647,d=/^xn--/,m=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=Math.floor,g=String.fromCharCode;function b(t){throw RangeError(y[t])}function x(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function w(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+x((t=t.replace(h,".")).split("."),e).join(".")}function k(t){for(var e,r,n=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(r=t.charCodeAt(i++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--):n.push(e);return n}function _(t){return x(t,(function(t){var e="";return t>65535&&(e+=g((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=g(t)})).join("")}function F(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function E(t,e,r){var n=0;for(t=r?v(t/700):t>>1,t+=v(t/e);t>455;n+=36)t=v(t/35);return v(n+36*t/(t+38))}function O(t){var e,r,n,i,o,a,s,c,u,p,l,d=[],m=t.length,h=0,y=128,g=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&b("not-basic"),d.push(t.charCodeAt(n));for(i=r>0?r+1:0;i<m;){for(o=h,a=1,s=36;i>=m&&b("invalid-input"),((c=(l=t.charCodeAt(i++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:36)>=36||c>v((f-h)/a))&&b("overflow"),h+=c*a,!(c<(u=s<=g?1:s>=g+26?26:s-g));s+=36)a>v(f/(p=36-u))&&b("overflow"),a*=p;g=E(h-o,e=d.length+1,0==o),v(h/e)>f-y&&b("overflow"),y+=v(h/e),h%=e,d.splice(h++,0,y)}return _(d)}function j(t){var e,r,n,i,o,a,s,c,u,p,l,d,m,h,y,x=[];for(d=(t=k(t)).length,e=128,r=0,o=72,a=0;a<d;++a)(l=t[a])<128&&x.push(g(l));for(n=i=x.length,i&&x.push("-");n<d;){for(s=f,a=0;a<d;++a)(l=t[a])>=e&&l<s&&(s=l);for(s-e>v((f-r)/(m=n+1))&&b("overflow"),r+=(s-e)*m,e=s,a=0;a<d;++a)if((l=t[a])<e&&++r>f&&b("overflow"),l==e){for(c=r,u=36;!(c<(p=u<=o?1:u>=o+26?26:u-o));u+=36)y=c-p,h=36-p,x.push(g(F(p+y%h,0))),c=v(y/h);x.push(g(F(c,0))),o=E(r,m,n==i),r=0,++n}++r,++e}return x.join("")}if(p={version:"1.3.2",ucs2:{decode:k,encode:_},decode:O,encode:j,toASCII:function(t){return w(t,(function(t){return m.test(t)?"xn--"+j(t):t}))},toUnicode:function(t){return w(t,(function(t){return d.test(t)?O(t.slice(4).toLowerCase()):t}))}},"object"==o(r(23))&&r(23))void 0===(i=function(){return p}.call(e,r,e,t))||(t.exports=i);else if(s&&c)if(t.exports==s)c.exports=p;else for(l in p)p.hasOwnProperty(l)&&(s[l]=p[l]);else a.punycode=p}(this)}).call(this,r(22)(t),r(15))},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"===n(t)&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,r){"use strict";e.decode=e.parse=r(38),e.encode=e.stringify=r(39)},function(t,e,r){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,r,o){e=e||"&",r=r||"=";var a={};if("string"!=typeof t||0===t.length)return a;var s=/\+/g;t=t.split(e);var c=1e3;o&&"number"==typeof o.maxKeys&&(c=o.maxKeys);var u=t.length;c>0&&u>c&&(u=c);for(var p=0;p<u;++p){var l,f,d,m,h=t[p].replace(s,"%20"),y=h.indexOf(r);y>=0?(l=h.substr(0,y),f=h.substr(y+1)):(l=h,f=""),d=decodeURIComponent(l),m=decodeURIComponent(f),n(a,d)?i(a[d])?a[d].push(m):a[d]=[a[d],m]:a[d]=m}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=function(t){switch(n(t)){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,c){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"===n(t)?a(s(t),(function(n){var s=encodeURIComponent(i(n))+r;return o(t[n])?a(t[n],(function(t){return s+encodeURIComponent(i(t))})).join(e):s+encodeURIComponent(i(t[n]))})).join(e):c?encodeURIComponent(i(c))+r+encodeURIComponent(i(t)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function a(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var s=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},function(t,e,r){"use strict";var n=r(8),i=n.ValidatorResult,o=n.SchemaError,a={ignoreProperties:{id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0}},s=a.validators={};function c(t,e,r,n,i){var o=e.throwError,a=e.throwAll;e.throwError=!1,e.throwAll=!1;var s=this.validateSchema(t,i,e,r);return e.throwError=o,e.throwAll=a,!s.valid&&n instanceof Function&&n(s),s.valid}function u(t,e){if(Object.hasOwnProperty.call(t,e))return t[e];if(e in t)for(;t=Object.getPrototypeOf(t);)if(Object.propertyIsEnumerable.call(t,e))return t[e]}function p(t,e,r,n,i,o){if(this.types.object(t)&&(!e.properties||void 0===e.properties[i]))if(!1===e.additionalProperties)o.addError({name:"additionalProperties",argument:i,message:"is not allowed to have the additional property "+JSON.stringify(i)});else{var a=e.additionalProperties||{};"function"==typeof r.preValidateProperty&&r.preValidateProperty(t,i,a,r,n);var s=this.validateSchema(t[i],a,r,n.makeChild(a,i));s.instance!==o.instance[i]&&(o.instance[i]=s.instance),o.importErrors(s)}}s.type=function(t,e,r,n){if(void 0===t)return null;var o=new i(t,e,r,n),a=Array.isArray(e.type)?e.type:[e.type];if(!a.some(this.testType.bind(this,t,e,r,n))){var s=a.map((function(t){if(t){var e=t.$id||t.id;return e?"<"+e+">":t+""}}));o.addError({name:"type",argument:s,message:"is not of a type(s) "+s})}return o},s.anyOf=function(t,e,r,n){if(void 0===t)return null;var a=new i(t,e,r,n),s=new i(t,e,r,n);if(!Array.isArray(e.anyOf))throw new o("anyOf must be an array");if(!e.anyOf.some(c.bind(this,t,r,n,(function(t){s.importErrors(t)})))){var u=e.anyOf.map((function(t,e){var r=t.$id||t.id;return r?"<"+r+">":t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+e+"]"}));r.nestedErrors&&a.importErrors(s),a.addError({name:"anyOf",argument:u,message:"is not any of "+u.join(",")})}return a},s.allOf=function(t,e,r,n){if(void 0===t)return null;if(!Array.isArray(e.allOf))throw new o("allOf must be an array");var a=new i(t,e,r,n),s=this;return e.allOf.forEach((function(e,i){var o=s.validateSchema(t,e,r,n);if(!o.valid){var c=e.$id||e.id||e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+i+"]";a.addError({name:"allOf",argument:{id:c,length:o.errors.length,valid:o},message:"does not match allOf schema "+c+" with "+o.errors.length+" error[s]:"}),a.importErrors(o)}})),a},s.oneOf=function(t,e,r,n){if(void 0===t)return null;if(!Array.isArray(e.oneOf))throw new o("oneOf must be an array");var a=new i(t,e,r,n),s=new i(t,e,r,n),u=e.oneOf.filter(c.bind(this,t,r,n,(function(t){s.importErrors(t)}))).length,p=e.oneOf.map((function(t,e){return t.$id||t.id||t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+e+"]"}));return 1!==u&&(r.nestedErrors&&a.importErrors(s),a.addError({name:"oneOf",argument:p,message:"is not exactly one from "+p.join(",")})),a},s.if=function(t,e,r,o){if(void 0===t)return null;if(!n.isSchema(e.if))throw new Error('Expected "if" keyword to be a schema');var a,s=c.call(this,t,r,o,null,e.if),u=new i(t,e,r,o);if(s){if(void 0===e.then)return;if(!n.isSchema(e.then))throw new Error('Expected "then" keyword to be a schema');a=this.validateSchema(t,e.then,r,o.makeChild(e.then)),u.importErrors(a)}else{if(void 0===e.else)return;if(!n.isSchema(e.else))throw new Error('Expected "else" keyword to be a schema');a=this.validateSchema(t,e.else,r,o.makeChild(e.else)),u.importErrors(a)}return u},s.propertyNames=function(t,e,r,a){if(this.types.object(t)){var s=new i(t,e,r,a),c=void 0!==e.propertyNames?e.propertyNames:{};if(!n.isSchema(c))throw new o('Expected "propertyNames" to be a schema (object or boolean)');for(var p in t)if(void 0!==u(t,p)){var l=this.validateSchema(p,c,r,a.makeChild(c));s.importErrors(l)}return s}},s.properties=function(t,e,r,n){if(this.types.object(t)){var a=new i(t,e,r,n),s=e.properties||{};for(var c in s){var p=s[c];if(void 0!==p){if(null===p)throw new o('Unexpected null, expected schema in "properties"');"function"==typeof r.preValidateProperty&&r.preValidateProperty(t,c,p,r,n);var l=u(t,c),f=this.validateSchema(l,p,r,n.makeChild(p,c));f.instance!==a.instance[c]&&(a.instance[c]=f.instance),a.importErrors(f)}}return a}},s.patternProperties=function(t,e,r,n){if(this.types.object(t)){var a=new i(t,e,r,n),s=e.patternProperties||{};for(var c in t){var u=!0;for(var l in s){var f=s[l];if(void 0!==f){if(null===f)throw new o('Unexpected null, expected schema in "patternProperties"');try{var d=new RegExp(l,"u")}catch(t){d=new RegExp(l)}if(d.test(c)){u=!1,"function"==typeof r.preValidateProperty&&r.preValidateProperty(t,c,f,r,n);var m=this.validateSchema(t[c],f,r,n.makeChild(f,c));m.instance!==a.instance[c]&&(a.instance[c]=m.instance),a.importErrors(m)}}}u&&p.call(this,t,e,r,n,c,a)}return a}},s.additionalProperties=function(t,e,r,n){if(this.types.object(t)){if(e.patternProperties)return null;var o=new i(t,e,r,n);for(var a in t)p.call(this,t,e,r,n,a,o);return o}},s.minProperties=function(t,e,r,n){if(this.types.object(t)){var o=new i(t,e,r,n);return Object.keys(t).length>=e.minProperties||o.addError({name:"minProperties",argument:e.minProperties,message:"does not meet minimum property length of "+e.minProperties}),o}},s.maxProperties=function(t,e,r,n){if(this.types.object(t)){var o=new i(t,e,r,n);return Object.keys(t).length<=e.maxProperties||o.addError({name:"maxProperties",argument:e.maxProperties,message:"does not meet maximum property length of "+e.maxProperties}),o}},s.items=function(t,e,r,n){var o=this;if(this.types.array(t)&&void 0!==e.items){var a=new i(t,e,r,n);return t.every((function(t,i){if(Array.isArray(e.items))var s=void 0===e.items[i]?e.additionalItems:e.items[i];else s=e.items;if(void 0===s)return!0;if(!1===s)return a.addError({name:"items",message:"additionalItems not permitted"}),!1;var c=o.validateSchema(t,s,r,n.makeChild(s,i));return c.instance!==a.instance[i]&&(a.instance[i]=c.instance),a.importErrors(c),!0})),a}},s.contains=function(t,e,r,o){var a=this;if(this.types.array(t)&&void 0!==e.contains){if(!n.isSchema(e.contains))throw new Error('Expected "contains" keyword to be a schema');var s=new i(t,e,r,o);return!1===t.some((function(t,n){return 0===a.validateSchema(t,e.contains,r,o.makeChild(e.contains,n)).errors.length}))&&s.addError({name:"contains",argument:e.contains,message:"must contain an item matching given schema"}),s}},s.minimum=function(t,e,r,n){if(this.types.number(t)){var o=new i(t,e,r,n);return e.exclusiveMinimum&&!0===e.exclusiveMinimum?t>e.minimum||o.addError({name:"minimum",argument:e.minimum,message:"must be greater than "+e.minimum}):t>=e.minimum||o.addError({name:"minimum",argument:e.minimum,message:"must be greater than or equal to "+e.minimum}),o}},s.maximum=function(t,e,r,n){if(this.types.number(t)){var o=new i(t,e,r,n);return e.exclusiveMaximum&&!0===e.exclusiveMaximum?t<e.maximum||o.addError({name:"maximum",argument:e.maximum,message:"must be less than "+e.maximum}):t<=e.maximum||o.addError({name:"maximum",argument:e.maximum,message:"must be less than or equal to "+e.maximum}),o}},s.exclusiveMinimum=function(t,e,r,n){if("boolean"!=typeof e.exclusiveMinimum&&this.types.number(t)){var o=new i(t,e,r,n);return t>e.exclusiveMinimum||o.addError({name:"exclusiveMinimum",argument:e.exclusiveMinimum,message:"must be strictly greater than "+e.exclusiveMinimum}),o}},s.exclusiveMaximum=function(t,e,r,n){if("boolean"!=typeof e.exclusiveMaximum&&this.types.number(t)){var o=new i(t,e,r,n);return t<e.exclusiveMaximum||o.addError({name:"exclusiveMaximum",argument:e.exclusiveMaximum,message:"must be strictly less than "+e.exclusiveMaximum}),o}};var l=function(t,e,r,a,s,c){if(this.types.number(t)){var u=e[s];if(0==u)throw new o(s+" cannot be zero");var p=new i(t,e,r,a),l=n.getDecimalPlaces(t),f=n.getDecimalPlaces(u),d=Math.max(l,f),m=Math.pow(10,d);return Math.round(t*m)%Math.round(u*m)!=0&&p.addError({name:s,argument:u,message:c+JSON.stringify(u)}),p}};function f(t,e,r){var i,o=r.length;for(i=e+1;i<o;i++)if(n.deepCompareStrict(t,r[i]))return!1;return!0}s.multipleOf=function(t,e,r,n){return l.call(this,t,e,r,n,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(t,e,r,n){return l.call(this,t,e,r,n,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(t,e,r,n){var o=new i(t,e,r,n);return void 0===t&&!0===e.required?o.addError({name:"required",message:"is required"}):this.types.object(t)&&Array.isArray(e.required)&&e.required.forEach((function(e){void 0===u(t,e)&&o.addError({name:"required",argument:e,message:"requires property "+JSON.stringify(e)})})),o},s.pattern=function(t,e,r,n){if(this.types.string(t)){var o=new i(t,e,r,n),a=e.pattern;try{var s=new RegExp(a,"u")}catch(t){s=new RegExp(a)}return t.match(s)||o.addError({name:"pattern",argument:e.pattern,message:"does not match pattern "+JSON.stringify(e.pattern.toString())}),o}},s.format=function(t,e,r,o){if(void 0!==t){var a=new i(t,e,r,o);return a.disableFormat||n.isFormat(t,e.format,this)||a.addError({name:"format",argument:e.format,message:"does not conform to the "+JSON.stringify(e.format)+" format"}),a}},s.minLength=function(t,e,r,n){if(this.types.string(t)){var o=new i(t,e,r,n),a=t.match(/[\uDC00-\uDFFF]/g);return t.length-(a?a.length:0)>=e.minLength||o.addError({name:"minLength",argument:e.minLength,message:"does not meet minimum length of "+e.minLength}),o}},s.maxLength=function(t,e,r,n){if(this.types.string(t)){var o=new i(t,e,r,n),a=t.match(/[\uDC00-\uDFFF]/g);return t.length-(a?a.length:0)<=e.maxLength||o.addError({name:"maxLength",argument:e.maxLength,message:"does not meet maximum length of "+e.maxLength}),o}},s.minItems=function(t,e,r,n){if(this.types.array(t)){var o=new i(t,e,r,n);return t.length>=e.minItems||o.addError({name:"minItems",argument:e.minItems,message:"does not meet minimum length of "+e.minItems}),o}},s.maxItems=function(t,e,r,n){if(this.types.array(t)){var o=new i(t,e,r,n);return t.length<=e.maxItems||o.addError({name:"maxItems",argument:e.maxItems,message:"does not meet maximum length of "+e.maxItems}),o}},s.uniqueItems=function(t,e,r,n){if(!0===e.uniqueItems&&this.types.array(t)){var o=new i(t,e,r,n);return t.every(f)||o.addError({name:"uniqueItems",message:"contains duplicate item"}),o}},s.dependencies=function(t,e,r,n){if(this.types.object(t)){var o=new i(t,e,r,n);for(var a in e.dependencies)if(void 0!==t[a]){var s=e.dependencies[a],c=n.makeChild(s,a);if("string"==typeof s&&(s=[s]),Array.isArray(s))s.forEach((function(e){void 0===t[e]&&o.addError({name:"dependencies",argument:c.propertyPath,message:"property "+e+" not found, required by "+c.propertyPath})}));else{var u=this.validateSchema(t,s,r,c);o.instance!==u.instance&&(o.instance=u.instance),u&&u.errors.length&&(o.addError({name:"dependencies",argument:c.propertyPath,message:"does not meet dependency required by "+c.propertyPath}),o.importErrors(u))}}return o}},s.enum=function(t,e,r,a){if(void 0===t)return null;if(!Array.isArray(e.enum))throw new o("enum expects an array",e);var s=new i(t,e,r,a);return e.enum.some(n.deepCompareStrict.bind(null,t))||s.addError({name:"enum",argument:e.enum,message:"is not one of enum values: "+e.enum.map(String).join(",")}),s},s.const=function(t,e,r,o){if(void 0===t)return null;var a=new i(t,e,r,o);return n.deepCompareStrict(e.const,t)||a.addError({name:"const",argument:e.const,message:"does not exactly match expected constant: "+e.const}),a},s.not=s.disallow=function(t,e,r,n){var o=this;if(void 0===t)return null;var a=new i(t,e,r,n),s=e.not||e.disallow;return s?(Array.isArray(s)||(s=[s]),s.forEach((function(i){if(o.testType(t,e,r,n,i)){var s=i&&(i.$id||i.id)||i;a.addError({name:"not",argument:s,message:"is of prohibited type "+s})}})),a):null},t.exports=a},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new A(n||[]);return a(o,"_invoke",{value:j(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",h="executing",y="completed",v={};function g(){}function b(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(C([])));_&&_!==r&&o.call(_,c)&&(w=_);var F=x.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,s,c){var u=d(t[i],t,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var i=m;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var u=d(e,r,n);if("normal"===u.type){if(i=n.done?y:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=x,a(F,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,p,"GeneratorFunction")),t.prototype=Object.create(F),t},e.awrap=function(t){return{__await:t}},E(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(F),l(F,p,"Generator"),l(F,c,(function(){return this})),l(F,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}Object.defineProperty(e,"__esModule",{value:!0}),e.fromStream=e.fromBuffer=e.EndOfStreamError=e.fromFile=void 0;var s=r(24),c=r(17),u=r(47);Object.defineProperty(e,"fromFile",{enumerable:!0,get:function(){return u.fromFile}});var p=r(17);function l(){return(l=a(i().mark((function t(e,r){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=r||{},!e.path){t.next=7;break}return t.next=4,s.stat(e.path);case 4:n=t.sent,r.path=e.path,r.size=n.size;case 7:return t.abrupt("return",c.fromStream(e,r));case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return p.EndOfStreamError}}),Object.defineProperty(e,"fromBuffer",{enumerable:!0,get:function(){return p.fromBuffer}}),e.fromStream=function(t,e){return l.apply(this,arguments)}},function(t,e){},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new A(n||[]);return a(o,"_invoke",{value:j(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",h="executing",y="completed",v={};function g(){}function b(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(C([])));_&&_!==r&&o.call(_,c)&&(w=_);var F=x.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,s,c){var u=d(t[i],t,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var i=m;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var u=d(e,r,n);if("normal"===u.type){if(i=n.done?y:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=x,a(F,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,p,"GeneratorFunction")),t.prototype=Object.create(F),t},e.awrap=function(t){return{__await:t}},E(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(F),l(F,p,"Generator"),l(F,c,(function(){return this})),l(F,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function c(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}function u(t,e){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=f(t);if(e){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.ReadStreamTokenizer=void 0;var d=r(18),m=r(10),h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(h,t);var e,r,n,o,c,l,f,d=p(h);function h(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),(r=d.call(this,e)).streamReader=new m.StreamReader(t),r}return e=h,(r=[{key:"getFileInfo",value:(f=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.fileInfo);case 1:case"end":return t.stop()}}),t,this)}))),function(){return f.apply(this,arguments)})},{key:"readBuffer",value:(l=a(i().mark((function t(e,r){var n,o,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),!((o=n.position-this.position)>0)){t.next=8;break}return t.next=5,this.ignore(o);case 5:return t.abrupt("return",this.readBuffer(e,r));case 8:if(!(o<0)){t.next=10;break}throw new Error("`options.position` must be equal or greater than `tokenizer.position`");case 10:if(0!==n.length){t.next=12;break}return t.abrupt("return",0);case 12:return t.next=14,this.streamReader.read(e,n.offset,n.length);case 14:if(a=t.sent,this.position+=a,r&&r.mayBeLess||!(a<n.length)){t.next=18;break}throw new m.EndOfStreamError;case 18:return t.abrupt("return",a);case 19:case"end":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:"peekBuffer",value:(c=a(i().mark((function t(e,r){var n,o,a,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),o=0,!n.position){t.next=15;break}if(!((a=n.position-this.position)>0)){t.next=13;break}return s=new Uint8Array(n.length+a),t.next=8,this.peekBuffer(s,{mayBeLess:n.mayBeLess});case 8:return o=t.sent,e.set(s.subarray(a),n.offset),t.abrupt("return",o-a);case 13:if(!(a<0)){t.next=15;break}throw new Error("Cannot peek from a negative offset in a stream");case 15:if(!(n.length>0)){t.next=29;break}return t.prev=16,t.next=19,this.streamReader.peek(e,n.offset,n.length);case 19:o=t.sent,t.next=27;break;case 22:if(t.prev=22,t.t0=t.catch(16),!(r&&r.mayBeLess&&t.t0 instanceof m.EndOfStreamError)){t.next=26;break}return t.abrupt("return",0);case 26:throw t.t0;case 27:if(n.mayBeLess||!(o<n.length)){t.next=29;break}throw new m.EndOfStreamError;case 29:return t.abrupt("return",o);case 30:case"end":return t.stop()}}),t,this,[[16,22]])}))),function(t,e){return c.apply(this,arguments)})},{key:"ignore",value:(o=a(i().mark((function t(e){var r,n,o,a,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=Math.min(256e3,e),n=new Uint8Array(r),o=0;case 3:if(!(o<e)){t.next=13;break}return a=e-o,t.next=7,this.readBuffer(n,{length:Math.min(r,a)});case 7:if(!((s=t.sent)<0)){t.next=10;break}return t.abrupt("return",s);case 10:o+=s,t.next=3;break;case 13:return t.abrupt("return",o);case 14:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})}])&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),h}(d.AbstractTokenizer);e.ReadStreamTokenizer=h},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new A(n||[]);return a(o,"_invoke",{value:j(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",h="executing",y="completed",v={};function g(){}function b(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(C([])));_&&_!==r&&o.call(_,c)&&(w=_);var F=x.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,s,c){var u=d(t[i],t,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var i=m;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var u=d(e,r,n);if("normal"===u.type){if(i=n.done?y:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=x,a(F,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,p,"GeneratorFunction")),t.prototype=Object.create(F),t},e.awrap=function(t){return{__await:t}},E(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(F),l(F,p,"Generator"),l(F,c,(function(){return this})),l(F,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function c(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var u=r(19),p=r(45),l=r(19);Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return l.EndOfStreamError}});var f=function(){function t(e){var r=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.s=e,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!e.read||!e.once)throw new Error("Expected an instance of stream.Readable");this.s.once("end",(function(){return r.reject(new u.EndOfStreamError)})),this.s.once("error",(function(t){return r.reject(t)})),this.s.once("close",(function(){return r.reject(new Error("Stream closed"))}))}var e,r,n,o,c,l;return e=t,(r=[{key:"peek",value:(l=a(i().mark((function t(e,r,n){var o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.read(e,r,n);case 2:return o=t.sent,this.peekQueue.push(e.subarray(r,r+o)),t.abrupt("return",o);case 5:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return l.apply(this,arguments)})},{key:"read",value:(c=a(i().mark((function t(e,r,n){var o,a,s,c,p,l;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==n){t.next=2;break}return t.abrupt("return",0);case 2:if(0!==this.peekQueue.length||!this.endOfStream){t.next=4;break}throw new u.EndOfStreamError;case 4:o=n,a=0;case 6:if(!(this.peekQueue.length>0&&o>0)){t.next=17;break}if(s=this.peekQueue.pop()){t.next=10;break}throw new Error("peekData should be defined");case 10:c=Math.min(s.length,o),e.set(s.subarray(0,c),r+a),a+=c,o-=c,c<s.length&&this.peekQueue.push(s.subarray(c)),t.next=6;break;case 17:if(!(o>0)||this.endOfStream){t.next=28;break}return p=Math.min(o,1048576),t.next=21,this.readFromStream(e,r+a,p);case 21:if(l=t.sent,a+=l,!(l<p)){t.next=25;break}return t.abrupt("break",28);case 25:o-=l,t.next=17;break;case 28:return t.abrupt("return",a);case 29:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return c.apply(this,arguments)})},{key:"readFromStream",value:(o=a(i().mark((function t(e,r,n){var o,a,s=this;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(o=this.s.read(n))){t.next=6;break}return e.set(o,r),t.abrupt("return",o.length);case 6:return a={buffer:e,offset:r,length:n,deferred:new p.Deferred},this.deferred=a.deferred,this.s.once("readable",(function(){s.readDeferred(a)})),t.abrupt("return",a.deferred.promise);case 10:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return o.apply(this,arguments)})},{key:"readDeferred",value:function(t){var e=this,r=this.s.read(t.length);r?(t.buffer.set(r,t.offset),t.deferred.resolve(r.length),this.deferred=null):this.s.once("readable",(function(){e.readDeferred(t)}))}},{key:"reject",value:function(t){this.endOfStream=!0,this.deferred&&(this.deferred.reject(t),this.deferred=null)}}])&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.StreamReader=f},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function o(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Deferred=void 0;var s=o((function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolve=function(){return null},this.reject=function(){return null},this.promise=new Promise((function(t,r){e.reject=r,e.resolve=t}))}));e.Deferred=s},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new A(n||[]);return a(o,"_invoke",{value:j(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",h="executing",y="completed",v={};function g(){}function b(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(C([])));_&&_!==r&&o.call(_,c)&&(w=_);var F=x.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,s,c){var u=d(t[i],t,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var i=m;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var u=d(e,r,n);if("normal"===u.type){if(i=n.done?y:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=x,a(F,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,p,"GeneratorFunction")),t.prototype=Object.create(F),t},e.awrap=function(t){return{__await:t}},E(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(F),l(F,p,"Generator"),l(F,c,(function(){return this})),l(F,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function c(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}function u(t,e){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=f(t);if(e){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.BufferTokenizer=void 0;var d=r(10),m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(m,t);var e,r,n,o,c,l,f=p(m);function m(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,m),(r=f.call(this,e)).uint8Array=t,r.fileInfo.size=r.fileInfo.size?r.fileInfo.size:t.length,r}return e=m,(r=[{key:"readBuffer",value:(l=a(i().mark((function t(e,r){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r||!r.position){t.next=4;break}if(!(r.position<this.position)){t.next=3;break}throw new Error("`options.position` must be equal or greater than `tokenizer.position`");case 3:this.position=r.position;case 4:return t.next=6,this.peekBuffer(e,r);case 6:return n=t.sent,this.position+=n,t.abrupt("return",n);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:"peekBuffer",value:(c=a(i().mark((function t(e,r){var n,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),o=Math.min(this.uint8Array.length-n.position,n.length),n.mayBeLess||!(o<n.length)){t.next=6;break}throw new d.EndOfStreamError;case 6:return e.set(this.uint8Array.subarray(n.position,n.position+o),n.offset),t.abrupt("return",o);case 8:case"end":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:"close",value:(o=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)})}])&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),m}(r(18).AbstractTokenizer);e.BufferTokenizer=m},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new A(n||[]);return a(o,"_invoke",{value:j(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",h="executing",y="completed",v={};function g(){}function b(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(C([])));_&&_!==r&&o.call(_,c)&&(w=_);var F=x.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,s,c){var u=d(t[i],t,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var i=m;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var u=d(e,r,n);if("normal"===u.type){if(i=n.done?y:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=x,a(F,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,p,"GeneratorFunction")),t.prototype=Object.create(F),t},e.awrap=function(t){return{__await:t}},E(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(F),l(F,p,"Generator"),l(F,c,(function(){return this})),l(F,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function c(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}function u(t,e){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=f(t);if(e){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.fromFile=e.FileTokenizer=void 0;var d=r(18),m=r(10),h=r(24),y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(d,t);var e,r,n,o,c,l,f=p(d);function d(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),(r=f.call(this,e)).fd=t,r}return e=d,(r=[{key:"readBuffer",value:(l=a(i().mark((function t(e,r){var n,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.normalizeOptions(e,r),this.position=n.position,t.next=4,h.read(this.fd,e,n.offset,n.length,n.position);case 4:if(o=t.sent,this.position+=o.bytesRead,!(o.bytesRead<n.length)||r&&r.mayBeLess){t.next=8;break}throw new m.EndOfStreamError;case 8:return t.abrupt("return",o.bytesRead);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:"peekBuffer",value:(c=a(i().mark((function t(e,r){var n,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.normalizeOptions(e,r),t.next=3,h.read(this.fd,e,n.offset,n.length,n.position);case 3:if(o=t.sent,n.mayBeLess||!(o.bytesRead<n.length)){t.next=6;break}throw new m.EndOfStreamError;case 6:return t.abrupt("return",o.bytesRead);case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:"close",value:(o=a(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h.close(this.fd));case 1:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})}])&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),d}(d.AbstractTokenizer);function v(){return(v=a(i().mark((function t(e){var r,n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h.stat(e);case 2:if((r=t.sent).isFile){t.next=5;break}throw new Error("File not a file: ".concat(e));case 5:return t.next=7,h.open(e,"r");case 7:return n=t.sent,t.abrupt("return",new y(n,{path:e,size:r.size}));case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}e.FileTokenizer=y,e.fromFile=function(t){return v.apply(this,arguments)}},function(module,exports,__webpack_require__){"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,a=Object.create(o.prototype),s=new T(n||[]);return i(a,"_invoke",{value:E(t,r,s)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",d="executing",m="completed",h={};function y(){}function v(){}function g(){}var b={};u(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(P([])));w&&w!==r&&n.call(w,a)&&(b=w);var k=g.prototype=y.prototype=Object.create(b);function _(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function F(t,e){function r(i,o,a,s){var c=l(t[i],t,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==_typeof(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,r,n){var i=f;return function(o,a){if(i===d)throw new Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=l(e,r,n);if("normal"===u.type){if(i=n.done?m:"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=l(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(_typeof(e)+" is not iterable")}return v.prototype=g,i(k,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:v,configurable:!0}),v.displayName=u(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},_(F.prototype),u(F.prototype,s,(function(){return this})),e.AsyncIterator=F,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new F(p(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(k),u(k,c,"Generator"),u(k,a,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){u=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _createForOfIteratorHelper(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach((function(e){_defineProperty(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==_typeof(e)?e:String(e)}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function asyncGeneratorStep(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){asyncGeneratorStep(o,n,i,a,s,"next",t)}function s(t){asyncGeneratorStep(o,n,i,a,s,"throw",t)}a(void 0)}))}}var Token=__webpack_require__(49),strtok3=__webpack_require__(17),_require=__webpack_require__(51),stringToBytes=_require.stringToBytes,tarHeaderChecksumMatches=_require.tarHeaderChecksumMatches,uint32SyncSafeToken=_require.uint32SyncSafeToken,supported=__webpack_require__(52),minimumBytes=4100;function fromStream(t){return _fromStream.apply(this,arguments)}function _fromStream(){return(_fromStream=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,strtok3.fromStream(e);case 2:return r=t.sent,t.prev=3,t.next=6,fromTokenizer(r);case 6:return t.abrupt("return",t.sent);case 7:return t.prev=7,t.next=10,r.close();case 10:return t.finish(7);case 11:case"end":return t.stop()}}),t,null,[[3,,7,11]])})))).apply(this,arguments)}function fromBuffer(t){return _fromBuffer.apply(this,arguments)}function _fromBuffer(){return(_fromBuffer=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)){t.next=2;break}throw new TypeError("Expected the `input` argument to be of type `Uint8Array` or `Buffer` or `ArrayBuffer`, got `".concat(_typeof(e),"`"));case 2:if((r=e instanceof Buffer?e:Buffer.from(e))&&r.length>1){t.next=5;break}return t.abrupt("return");case 5:return n=strtok3.fromBuffer(r),t.abrupt("return",fromTokenizer(n));case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function _check(t,e,r){r=_objectSpread({offset:0},r);var n,i=_createForOfIteratorHelper(e.entries());try{for(i.s();!(n=i.n()).done;){var o=_slicedToArray(n.value,2),a=o[0],s=o[1];if(r.mask){if(s!==(r.mask[a]&t[a+r.offset]))return!1}else if(s!==t[a+r.offset])return!1}}catch(t){i.e(t)}finally{i.f()}return!0}function fromTokenizer(t){return _fromTokenizer2.apply(this,arguments)}function _fromTokenizer2(){return(_fromTokenizer2=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt("return",_fromTokenizer(e));case 4:if(t.prev=4,t.t0=t.catch(0),t.t0 instanceof strtok3.EndOfStreamError){t.next=8;break}throw t.t0;case 8:case"end":return t.stop()}}),t,null,[[0,4]])})))).apply(this,arguments)}function _fromTokenizer(t){return _fromTokenizer3.apply(this,arguments)}function _fromTokenizer3(){return(_fromTokenizer3=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n,i,o,a,s,c,u,p,l,f,d,m,h,y,v,g,b,x,w,k,_,F,E,O,j,S,T,P,A;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Buffer.alloc(minimumBytes),12,n=function(t,e){return _check(r,t,e)},i=function(t,e){return n(stringToBytes(t),e)},e.fileInfo.size||(e.fileInfo.size=Number.MAX_SAFE_INTEGER),t.next=7,e.peekBuffer(r,{length:12,mayBeLess:!0});case 7:if(!n([66,77])){t.next=9;break}return t.abrupt("return",{ext:"bmp",mime:"image/bmp"});case 9:if(!n([11,119])){t.next=11;break}return t.abrupt("return",{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"});case 11:if(!n([120,1])){t.next=13;break}return t.abrupt("return",{ext:"dmg",mime:"application/x-apple-diskimage"});case 13:if(!n([77,90])){t.next=15;break}return t.abrupt("return",{ext:"exe",mime:"application/x-msdownload"});case 15:if(!n([37,33])){t.next=21;break}return t.next=18,e.peekBuffer(r,{length:24,mayBeLess:!0});case 18:if(!i("PS-Adobe-",{offset:2})||!i(" EPSF-",{offset:14})){t.next=20;break}return t.abrupt("return",{ext:"eps",mime:"application/eps"});case 20:return t.abrupt("return",{ext:"ps",mime:"application/postscript"});case 21:if(!n([31,160])&&!n([31,157])){t.next=23;break}return t.abrupt("return",{ext:"Z",mime:"application/x-compress"});case 23:if(!n([255,216,255])){t.next=25;break}return t.abrupt("return",{ext:"jpg",mime:"image/jpeg"});case 25:if(!n([73,73,188])){t.next=27;break}return t.abrupt("return",{ext:"jxr",mime:"image/vnd.ms-photo"});case 27:if(!n([31,139,8])){t.next=29;break}return t.abrupt("return",{ext:"gz",mime:"application/gzip"});case 29:if(!n([66,90,104])){t.next=31;break}return t.abrupt("return",{ext:"bz2",mime:"application/x-bzip2"});case 31:if(!i("ID3")){t.next=42;break}return t.next=34,e.ignore(6);case 34:return t.next=36,e.readToken(uint32SyncSafeToken);case 36:if(o=t.sent,!(e.position+o>e.fileInfo.size)){t.next=39;break}return t.abrupt("return",{ext:"mp3",mime:"audio/mpeg"});case 39:return t.next=41,e.ignore(o);case 41:return t.abrupt("return",fromTokenizer(e));case 42:if(!i("MP+")){t.next=44;break}return t.abrupt("return",{ext:"mpc",mime:"audio/x-musepack"});case 44:if(67!==r[0]&&70!==r[0]||!n([87,83],{offset:1})){t.next=46;break}return t.abrupt("return",{ext:"swf",mime:"application/x-shockwave-flash"});case 46:if(!n([71,73,70])){t.next=48;break}return t.abrupt("return",{ext:"gif",mime:"image/gif"});case 48:if(!i("FLIF")){t.next=50;break}return t.abrupt("return",{ext:"flif",mime:"image/flif"});case 50:if(!i("8BPS")){t.next=52;break}return t.abrupt("return",{ext:"psd",mime:"image/vnd.adobe.photoshop"});case 52:if(!i("WEBP",{offset:8})){t.next=54;break}return t.abrupt("return",{ext:"webp",mime:"image/webp"});case 54:if(!i("MPCK")){t.next=56;break}return t.abrupt("return",{ext:"mpc",mime:"audio/x-musepack"});case 56:if(!i("FORM")){t.next=58;break}return t.abrupt("return",{ext:"aif",mime:"audio/aiff"});case 58:if(!i("icns",{offset:0})){t.next=60;break}return t.abrupt("return",{ext:"icns",mime:"image/icns"});case 60:if(!n([80,75,3,4])){t.next=121;break}t.prev=61;case 62:if(!(e.position+30<e.fileInfo.size)){t.next=114;break}return t.next=65,e.readBuffer(r,{length:30});case 65:return a={compressedSize:r.readUInt32LE(18),uncompressedSize:r.readUInt32LE(22),filenameLength:r.readUInt16LE(26),extraFieldLength:r.readUInt16LE(28)},t.next=68,e.readToken(new Token.StringType(a.filenameLength,"utf-8"));case 68:return a.filename=t.sent,t.next=71,e.ignore(a.extraFieldLength);case 71:if("META-INF/mozilla.rsa"!==a.filename){t.next=73;break}return t.abrupt("return",{ext:"xpi",mime:"application/x-xpinstall"});case 73:if(!a.filename.endsWith(".rels")&&!a.filename.endsWith(".xml")){t.next=83;break}s=a.filename.split("/")[0],t.t0=s,t.next="_rels"===t.t0?78:"word"===t.t0?79:"ppt"===t.t0?80:"xl"===t.t0?81:82;break;case 78:return t.abrupt("break",83);case 79:return t.abrupt("return",{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"});case 80:return t.abrupt("return",{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"});case 81:return t.abrupt("return",{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});case 82:return t.abrupt("break",83);case 83:if(!a.filename.startsWith("xl/")){t.next=85;break}return t.abrupt("return",{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});case 85:if(!a.filename.startsWith("3D/")||!a.filename.endsWith(".model")){t.next=87;break}return t.abrupt("return",{ext:"3mf",mime:"model/3mf"});case 87:if("mimetype"!==a.filename||a.compressedSize!==a.uncompressedSize){t.next=98;break}return t.next=90,e.readToken(new Token.StringType(a.compressedSize,"utf-8"));case 90:c=t.sent,t.t1=c,t.next="application/epub+zip"===t.t1?94:"application/vnd.oasis.opendocument.text"===t.t1?95:"application/vnd.oasis.opendocument.spreadsheet"===t.t1?96:"application/vnd.oasis.opendocument.presentation"===t.t1?97:98;break;case 94:return t.abrupt("return",{ext:"epub",mime:"application/epub+zip"});case 95:return t.abrupt("return",{ext:"odt",mime:"application/vnd.oasis.opendocument.text"});case 96:return t.abrupt("return",{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"});case 97:return t.abrupt("return",{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"});case 98:if(0!==a.compressedSize){t.next=110;break}u=-1;case 100:if(!(u<0&&e.position<e.fileInfo.size)){t.next=108;break}return t.next=103,e.peekBuffer(r,{mayBeLess:!0});case 103:return u=r.indexOf("504B0304",0,"hex"),t.next=106,e.ignore(u>=0?u:r.length);case 106:t.next=100;break;case 108:t.next=112;break;case 110:return t.next=112,e.ignore(a.compressedSize);case 112:t.next=62;break;case 114:t.next=120;break;case 116:if(t.prev=116,t.t2=t.catch(61),t.t2 instanceof strtok3.EndOfStreamError){t.next=120;break}throw t.t2;case 120:return t.abrupt("return",{ext:"zip",mime:"application/zip"});case 121:if(!i("OggS")){t.next=140;break}return t.next=124,e.ignore(28);case 124:return p=Buffer.alloc(8),t.next=127,e.readBuffer(p);case 127:if(!_check(p,[79,112,117,115,72,101,97,100])){t.next=129;break}return t.abrupt("return",{ext:"opus",mime:"audio/opus"});case 129:if(!_check(p,[128,116,104,101,111,114,97])){t.next=131;break}return t.abrupt("return",{ext:"ogv",mime:"video/ogg"});case 131:if(!_check(p,[1,118,105,100,101,111,0])){t.next=133;break}return t.abrupt("return",{ext:"ogm",mime:"video/ogg"});case 133:if(!_check(p,[127,70,76,65,67])){t.next=135;break}return t.abrupt("return",{ext:"oga",mime:"audio/ogg"});case 135:if(!_check(p,[83,112,101,101,120,32,32])){t.next=137;break}return t.abrupt("return",{ext:"spx",mime:"audio/ogg"});case 137:if(!_check(p,[1,118,111,114,98,105,115])){t.next=139;break}return t.abrupt("return",{ext:"ogg",mime:"audio/ogg"});case 139:return t.abrupt("return",{ext:"ogx",mime:"application/ogg"});case 140:if(!n([80,75])||3!==r[2]&&5!==r[2]&&7!==r[2]||4!==r[3]&&6!==r[3]&&8!==r[3]){t.next=142;break}return t.abrupt("return",{ext:"zip",mime:"application/zip"});case 142:if(!i("ftyp",{offset:4})||0==(96&r[8])){t.next=167;break}l=r.toString("binary",8,12).replace("\0"," ").trim(),t.t3=l,t.next="avif"===t.t3?147:"mif1"===t.t3?148:"msf1"===t.t3?149:"heic"===t.t3||"heix"===t.t3?150:"hevc"===t.t3||"hevx"===t.t3?151:"qt"===t.t3?152:"M4V"===t.t3||"M4VH"===t.t3||"M4VP"===t.t3?153:"M4P"===t.t3?154:"M4B"===t.t3?155:"M4A"===t.t3?156:"F4V"===t.t3?157:"F4P"===t.t3?158:"F4A"===t.t3?159:"F4B"===t.t3?160:"crx"===t.t3?161:162;break;case 147:return t.abrupt("return",{ext:"avif",mime:"image/avif"});case 148:return t.abrupt("return",{ext:"heic",mime:"image/heif"});case 149:return t.abrupt("return",{ext:"heic",mime:"image/heif-sequence"});case 150:return t.abrupt("return",{ext:"heic",mime:"image/heic"});case 151:return t.abrupt("return",{ext:"heic",mime:"image/heic-sequence"});case 152:return t.abrupt("return",{ext:"mov",mime:"video/quicktime"});case 153:return t.abrupt("return",{ext:"m4v",mime:"video/x-m4v"});case 154:return t.abrupt("return",{ext:"m4p",mime:"video/mp4"});case 155:return t.abrupt("return",{ext:"m4b",mime:"audio/mp4"});case 156:return t.abrupt("return",{ext:"m4a",mime:"audio/x-m4a"});case 157:return t.abrupt("return",{ext:"f4v",mime:"video/mp4"});case 158:return t.abrupt("return",{ext:"f4p",mime:"video/mp4"});case 159:return t.abrupt("return",{ext:"f4a",mime:"audio/mp4"});case 160:return t.abrupt("return",{ext:"f4b",mime:"audio/mp4"});case 161:return t.abrupt("return",{ext:"cr3",mime:"image/x-canon-cr3"});case 162:if(!l.startsWith("3g")){t.next=166;break}if(!l.startsWith("3g2")){t.next=165;break}return t.abrupt("return",{ext:"3g2",mime:"video/3gpp2"});case 165:return t.abrupt("return",{ext:"3gp",mime:"video/3gpp"});case 166:return t.abrupt("return",{ext:"mp4",mime:"video/mp4"});case 167:if(!i("MThd")){t.next=169;break}return t.abrupt("return",{ext:"mid",mime:"audio/midi"});case 169:if(!i("wOFF")||!n([0,1,0,0],{offset:4})&&!i("OTTO",{offset:4})){t.next=171;break}return t.abrupt("return",{ext:"woff",mime:"font/woff"});case 171:if(!i("wOF2")||!n([0,1,0,0],{offset:4})&&!i("OTTO",{offset:4})){t.next=173;break}return t.abrupt("return",{ext:"woff2",mime:"font/woff2"});case 173:if(!n([212,195,178,161])&&!n([161,178,195,212])){t.next=175;break}return t.abrupt("return",{ext:"pcap",mime:"application/vnd.tcpdump.pcap"});case 175:if(!i("DSD ")){t.next=177;break}return t.abrupt("return",{ext:"dsf",mime:"audio/x-dsf"});case 177:if(!i("LZIP")){t.next=179;break}return t.abrupt("return",{ext:"lz",mime:"application/x-lzip"});case 179:if(!i("fLaC")){t.next=181;break}return t.abrupt("return",{ext:"flac",mime:"audio/x-flac"});case 181:if(!n([66,80,71,251])){t.next=183;break}return t.abrupt("return",{ext:"bpg",mime:"image/bpg"});case 183:if(!i("wvpk")){t.next=185;break}return t.abrupt("return",{ext:"wv",mime:"audio/wavpack"});case 185:if(!i("%PDF")){t.next=195;break}return t.next=188,e.ignore(1350);case 188:return 10485760,f=Buffer.alloc(Math.min(10485760,e.fileInfo.size)),t.next=192,e.readBuffer(f,{mayBeLess:!0});case 192:if(!f.includes(Buffer.from("AIPrivateData"))){t.next=194;break}return t.abrupt("return",{ext:"ai",mime:"application/postscript"});case 194:return t.abrupt("return",{ext:"pdf",mime:"application/pdf"});case 195:if(!n([0,97,115,109])){t.next=197;break}return t.abrupt("return",{ext:"wasm",mime:"application/wasm"});case 197:if(!n([73,73,42,0])){t.next=210;break}if(!i("CR",{offset:8})){t.next=200;break}return t.abrupt("return",{ext:"cr2",mime:"image/x-canon-cr2"});case 200:if(!n([28,0,254,0],{offset:8})&&!n([31,0,11,0],{offset:8})){t.next=202;break}return t.abrupt("return",{ext:"nef",mime:"image/x-nikon-nef"});case 202:if(!n([8,0,0,0],{offset:4})||!n([45,0,254,0],{offset:8})&&!n([39,0,254,0],{offset:8})){t.next=204;break}return t.abrupt("return",{ext:"dng",mime:"image/x-adobe-dng"});case 204:return r=Buffer.alloc(24),t.next=207,e.peekBuffer(r);case 207:if(!n([16,251,134,1],{offset:4})&&!n([8,0,0,0],{offset:4})||!n([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})){t.next=209;break}return t.abrupt("return",{ext:"arw",mime:"image/x-sony-arw"});case 209:return t.abrupt("return",{ext:"tif",mime:"image/tiff"});case 210:if(!n([77,77,0,42])){t.next=212;break}return t.abrupt("return",{ext:"tif",mime:"image/tiff"});case 212:if(!i("MAC ")){t.next=214;break}return t.abrupt("return",{ext:"ape",mime:"audio/ape"});case 214:if(!n([26,69,223,163])){t.next=233;break}return g=function(){return(g=_asyncToGenerator(_regeneratorRuntime().mark((function t(r,n){var i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n>0)){t.next=11;break}return t.next=3,h();case 3:if(17026!==(i=t.sent).id){t.next=6;break}return t.abrupt("return",e.readToken(new Token.StringType(i.len,"utf-8")));case 6:return t.next=8,e.ignore(i.len);case 8:--n,t.next=0;break;case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)},v=function(t,e){return g.apply(this,arguments)},y=function(){return(y=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,r,n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d();case 2:return e=t.sent,t.next=5,d();case 5:return(r=t.sent)[0]^=128>>r.length-1,n=Math.min(6,r.length),t.abrupt("return",{id:e.readUIntBE(0,e.length),len:r.readUIntBE(r.length-n,n)});case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)},h=function(){return y.apply(this,arguments)},m=function(){return(m=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var r,n,i,o;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.peekNumber(Token.UINT8);case 2:for(r=t.sent,n=128,i=0;0==(r&n)&&0!==n;)++i,n>>=1;return o=Buffer.alloc(i+1),t.next=9,e.readBuffer(o);case 9:return t.abrupt("return",o);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)},d=function(){return m.apply(this,arguments)},t.next=223,h();case 223:return b=t.sent,t.next=226,v(1,b.len);case 226:x=t.sent,t.t4=x,t.next="webm"===t.t4?230:"matroska"===t.t4?231:232;break;case 230:return t.abrupt("return",{ext:"webm",mime:"video/webm"});case 231:return t.abrupt("return",{ext:"mkv",mime:"video/x-matroska"});case 232:return t.abrupt("return");case 233:if(!n([82,73,70,70])){t.next=240;break}if(!n([65,86,73],{offset:8})){t.next=236;break}return t.abrupt("return",{ext:"avi",mime:"video/vnd.avi"});case 236:if(!n([87,65,86,69],{offset:8})){t.next=238;break}return t.abrupt("return",{ext:"wav",mime:"audio/vnd.wave"});case 238:if(!n([81,76,67,77],{offset:8})){t.next=240;break}return t.abrupt("return",{ext:"qcp",mime:"audio/qcelp"});case 240:if(!i("SQLi")){t.next=242;break}return t.abrupt("return",{ext:"sqlite",mime:"application/x-sqlite3"});case 242:if(!n([78,69,83,26])){t.next=244;break}return t.abrupt("return",{ext:"nes",mime:"application/x-nintendo-nes-rom"});case 244:if(!i("Cr24")){t.next=246;break}return t.abrupt("return",{ext:"crx",mime:"application/x-google-chrome-extension"});case 246:if(!i("MSCF")&&!i("ISc(")){t.next=248;break}return t.abrupt("return",{ext:"cab",mime:"application/vnd.ms-cab-compressed"});case 248:if(!n([237,171,238,219])){t.next=250;break}return t.abrupt("return",{ext:"rpm",mime:"application/x-rpm"});case 250:if(!n([197,208,211,198])){t.next=252;break}return t.abrupt("return",{ext:"eps",mime:"application/eps"});case 252:if(!n([40,181,47,253])){t.next=254;break}return t.abrupt("return",{ext:"zst",mime:"application/zstd"});case 254:if(!n([79,84,84,79,0])){t.next=256;break}return t.abrupt("return",{ext:"otf",mime:"font/otf"});case 256:if(!i("#!AMR")){t.next=258;break}return t.abrupt("return",{ext:"amr",mime:"audio/amr"});case 258:if(!i("{\\rtf")){t.next=260;break}return t.abrupt("return",{ext:"rtf",mime:"application/rtf"});case 260:if(!n([70,76,86,1])){t.next=262;break}return t.abrupt("return",{ext:"flv",mime:"video/x-flv"});case 262:if(!i("IMPM")){t.next=264;break}return t.abrupt("return",{ext:"it",mime:"audio/x-it"});case 264:if(!(i("-lh0-",{offset:2})||i("-lh1-",{offset:2})||i("-lh2-",{offset:2})||i("-lh3-",{offset:2})||i("-lh4-",{offset:2})||i("-lh5-",{offset:2})||i("-lh6-",{offset:2})||i("-lh7-",{offset:2})||i("-lzs-",{offset:2})||i("-lz4-",{offset:2})||i("-lz5-",{offset:2})||i("-lhd-",{offset:2}))){t.next=266;break}return t.abrupt("return",{ext:"lzh",mime:"application/x-lzh-compressed"});case 266:if(!n([0,0,1,186])){t.next=271;break}if(!n([33],{offset:4,mask:[241]})){t.next=269;break}return t.abrupt("return",{ext:"mpg",mime:"video/MP1S"});case 269:if(!n([68],{offset:4,mask:[196]})){t.next=271;break}return t.abrupt("return",{ext:"mpg",mime:"video/MP2P"});case 271:if(!i("ITSF")){t.next=273;break}return t.abrupt("return",{ext:"chm",mime:"application/vnd.ms-htmlhelp"});case 273:if(!n([253,55,122,88,90,0])){t.next=275;break}return t.abrupt("return",{ext:"xz",mime:"application/x-xz"});case 275:if(!i("<?xml ")){t.next=277;break}return t.abrupt("return",{ext:"xml",mime:"application/xml"});case 277:if(!n([55,122,188,175,39,28])){t.next=279;break}return t.abrupt("return",{ext:"7z",mime:"application/x-7z-compressed"});case 279:if(!n([82,97,114,33,26,7])||0!==r[6]&&1!==r[6]){t.next=281;break}return t.abrupt("return",{ext:"rar",mime:"application/x-rar-compressed"});case 281:if(!i("solid ")){t.next=283;break}return t.abrupt("return",{ext:"stl",mime:"model/stl"});case 283:if(!i("BLENDER")){t.next=285;break}return t.abrupt("return",{ext:"blend",mime:"application/x-blender"});case 285:if(!i("!<arch>")){t.next=294;break}return t.next=288,e.ignore(8);case 288:return t.next=290,e.readToken(new Token.StringType(13,"ascii"));case 290:if("debian-binary"!==t.sent){t.next=293;break}return t.abrupt("return",{ext:"deb",mime:"application/x-deb"});case 293:return t.abrupt("return",{ext:"ar",mime:"application/x-unix-archive"});case 294:if(!n([137,80,78,71,13,10,26,10])){t.next=313;break}return k=function(){return(k=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.readToken(Token.INT32_BE);case 2:return t.t0=t.sent,t.next=5,e.readToken(new Token.StringType(4,"binary"));case 5:return t.t1=t.sent,t.abrupt("return",{length:t.t0,type:t.t1});case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)},w=function(){return k.apply(this,arguments)},t.next=299,e.ignore(8);case 299:return t.next=301,w();case 301:if(!((_=t.sent).length<0)){t.next=304;break}return t.abrupt("return");case 304:t.t5=_.type,t.next="IDAT"===t.t5?307:"acTL"===t.t5?308:309;break;case 307:return t.abrupt("return",{ext:"png",mime:"image/png"});case 308:return t.abrupt("return",{ext:"apng",mime:"image/apng"});case 309:return t.next=311,e.ignore(_.length+4);case 311:if(e.position+8<e.fileInfo.size){t.next=299;break}case 312:return t.abrupt("return",{ext:"png",mime:"image/png"});case 313:if(!n([65,82,82,79,87,49,0,0])){t.next=315;break}return t.abrupt("return",{ext:"arrow",mime:"application/x-apache-arrow"});case 315:if(!n([103,108,84,70,2,0,0,0])){t.next=317;break}return t.abrupt("return",{ext:"glb",mime:"model/gltf-binary"});case 317:if(!(n([102,114,101,101],{offset:4})||n([109,100,97,116],{offset:4})||n([109,111,111,118],{offset:4})||n([119,105,100,101],{offset:4}))){t.next=319;break}return t.abrupt("return",{ext:"mov",mime:"video/quicktime"});case 319:if(!n([73,73,82,79,8,0,0,0,24])){t.next=321;break}return t.abrupt("return",{ext:"orf",mime:"image/x-olympus-orf"});case 321:if(!i("gimp xcf ")){t.next=323;break}return t.abrupt("return",{ext:"xcf",mime:"image/x-xcf"});case 323:if(!n([73,73,85,0,24,0,0,0,136,231,116,216])){t.next=325;break}return t.abrupt("return",{ext:"rw2",mime:"image/x-panasonic-rw2"});case 325:if(!n([48,38,178,117,142,102,207,17,166,217])){t.next=351;break}return E=function(){return(E=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Buffer.alloc(16),t.next=3,e.readBuffer(r);case 3:return t.t0=r,t.t1=Number,t.next=7,e.readToken(Token.UINT64_LE);case 7:return t.t2=t.sent,t.t3=(0,t.t1)(t.t2),t.abrupt("return",{id:t.t0,size:t.t3});case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)},F=function(){return E.apply(this,arguments)},t.next=330,e.ignore(30);case 330:if(!(e.position+24<e.fileInfo.size)){t.next=350;break}return t.next=333,F();case 333:if(O=t.sent,j=O.size-24,!_check(O.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){t.next=346;break}return S=Buffer.alloc(16),t.t6=j,t.next=340,e.readBuffer(S);case 340:if(j=t.t6-=t.sent,!_check(S,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=343;break}return t.abrupt("return",{ext:"asf",mime:"audio/x-ms-asf"});case 343:if(!_check(S,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=345;break}return t.abrupt("return",{ext:"asf",mime:"video/x-ms-asf"});case 345:return t.abrupt("break",350);case 346:return t.next=348,e.ignore(j);case 348:t.next=330;break;case 350:return t.abrupt("return",{ext:"asf",mime:"application/vnd.ms-asf"});case 351:if(!n([171,75,84,88,32,49,49,187,13,10,26,10])){t.next=353;break}return t.abrupt("return",{ext:"ktx",mime:"image/ktx"});case 353:if(!n([126,16,4])&&!n([126,24,4])||!n([48,77,73,69],{offset:4})){t.next=355;break}return t.abrupt("return",{ext:"mie",mime:"application/x-mie"});case 355:if(!n([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2})){t.next=357;break}return t.abrupt("return",{ext:"shp",mime:"application/x-esri-shape"});case 357:if(!n([0,0,0,12,106,80,32,32,13,10,135,10])){t.next=371;break}return t.next=360,e.ignore(20);case 360:return t.next=362,e.readToken(new Token.StringType(4,"ascii"));case 362:T=t.sent,t.t7=T,t.next="jp2 "===t.t7?366:"jpx "===t.t7?367:"jpm "===t.t7?368:"mjp2"===t.t7?369:370;break;case 366:return t.abrupt("return",{ext:"jp2",mime:"image/jp2"});case 367:return t.abrupt("return",{ext:"jpx",mime:"image/jpx"});case 368:return t.abrupt("return",{ext:"jpm",mime:"image/jpm"});case 369:return t.abrupt("return",{ext:"mj2",mime:"image/mj2"});case 370:return t.abrupt("return");case 371:if(!n([255,10])&&!n([0,0,0,12,74,88,76,32,13,10,135,10])){t.next=373;break}return t.abrupt("return",{ext:"jxl",mime:"image/jxl"});case 373:if(!n([0,0,1,186])&&!n([0,0,1,179])){t.next=375;break}return t.abrupt("return",{ext:"mpg",mime:"video/mpeg"});case 375:if(!n([0,1,0,0,0])){t.next=377;break}return t.abrupt("return",{ext:"ttf",mime:"font/ttf"});case 377:if(!n([0,0,1,0])){t.next=379;break}return t.abrupt("return",{ext:"ico",mime:"image/x-icon"});case 379:if(!n([0,0,2,0])){t.next=381;break}return t.abrupt("return",{ext:"cur",mime:"image/x-icon"});case 381:if(!n([208,207,17,224,161,177,26,225])){t.next=383;break}return t.abrupt("return",{ext:"cfb",mime:"application/x-cfb"});case 383:return t.next=385,e.peekBuffer(r,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0});case 385:if(!i("BEGIN:")){t.next=390;break}if(!i("VCARD",{offset:6})){t.next=388;break}return t.abrupt("return",{ext:"vcf",mime:"text/vcard"});case 388:if(!i("VCALENDAR",{offset:6})){t.next=390;break}return t.abrupt("return",{ext:"ics",mime:"text/calendar"});case 390:if(!i("FUJIFILMCCD-RAW")){t.next=392;break}return t.abrupt("return",{ext:"raf",mime:"image/x-fujifilm-raf"});case 392:if(!i("Extended Module:")){t.next=394;break}return t.abrupt("return",{ext:"xm",mime:"audio/x-xm"});case 394:if(!i("Creative Voice File")){t.next=396;break}return t.abrupt("return",{ext:"voc",mime:"audio/x-voc"});case 396:if(!(n([4,0,0,0])&&r.length>=16)){t.next=408;break}if(!((P=r.readUInt32LE(12))>12&&r.length>=P+16)){t.next=408;break}if(t.prev=399,A=r.slice(16,P+16).toString(),!JSON.parse(A).files){t.next=404;break}return t.abrupt("return",{ext:"asar",mime:"application/x-asar"});case 404:t.next=408;break;case 406:t.prev=406,t.t8=t.catch(399);case 408:if(!n([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){t.next=410;break}return t.abrupt("return",{ext:"mxf",mime:"application/mxf"});case 410:if(!i("SCRM",{offset:44})){t.next=412;break}return t.abrupt("return",{ext:"s3m",mime:"audio/x-s3m"});case 412:if(!n([71],{offset:4})||!n([71],{offset:192})&&!n([71],{offset:196})){t.next=414;break}return t.abrupt("return",{ext:"mts",mime:"video/mp2t"});case 414:if(!n([66,79,79,75,77,79,66,73],{offset:60})){t.next=416;break}return t.abrupt("return",{ext:"mobi",mime:"application/x-mobipocket-ebook"});case 416:if(!n([68,73,67,77],{offset:128})){t.next=418;break}return t.abrupt("return",{ext:"dcm",mime:"application/dicom"});case 418:if(!n([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70])){t.next=420;break}return t.abrupt("return",{ext:"lnk",mime:"application/x.ms.shortcut"});case 420:if(!n([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0])){t.next=422;break}return t.abrupt("return",{ext:"alias",mime:"application/x.apple.alias"});case 422:if(!n([76,80],{offset:34})||!(n([0,0,1],{offset:8})||n([1,0,2],{offset:8})||n([2,0,2],{offset:8}))){t.next=424;break}return t.abrupt("return",{ext:"eot",mime:"application/vnd.ms-fontobject"});case 424:if(!n([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29])){t.next=426;break}return t.abrupt("return",{ext:"indd",mime:"application/x-indesign"});case 426:return t.next=428,e.peekBuffer(r,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0});case 428:if(!tarHeaderChecksumMatches(r)){t.next=430;break}return t.abrupt("return",{ext:"tar",mime:"application/x-tar"});case 430:if(!n([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0])){t.next=432;break}return t.abrupt("return",{ext:"skp",mime:"application/vnd.sketchup.skp"});case 432:if(!i("-----BEGIN PGP MESSAGE-----")){t.next=434;break}return t.abrupt("return",{ext:"pgp",mime:"application/pgp-encrypted"});case 434:if(!(r.length>=2&&n([255,224],{offset:0,mask:[255,224]}))){t.next=445;break}if(!n([16],{offset:1,mask:[22]})){t.next=439;break}if(!n([8],{offset:1,mask:[8]})){t.next=438;break}return t.abrupt("return",{ext:"aac",mime:"audio/aac"});case 438:return t.abrupt("return",{ext:"aac",mime:"audio/aac"});case 439:if(!n([2],{offset:1,mask:[6]})){t.next=441;break}return t.abrupt("return",{ext:"mp3",mime:"audio/mpeg"});case 441:if(!n([4],{offset:1,mask:[6]})){t.next=443;break}return t.abrupt("return",{ext:"mp2",mime:"audio/mpeg"});case 443:if(!n([6],{offset:1,mask:[6]})){t.next=445;break}return t.abrupt("return",{ext:"mp1",mime:"audio/mpeg"});case 445:case"end":return t.stop()}}),t,null,[[61,116],[399,406]])})))).apply(this,arguments)}var stream=function stream(readableStream){return new Promise((function(resolve,reject){var stream=eval("require")("stream");readableStream.on("error",reject),readableStream.once("readable",_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,r,n,i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new stream.PassThrough,r=stream.pipeline?stream.pipeline(readableStream,e,(function(){})):readableStream.pipe(e),n=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0),t.prev=3,t.next=6,fromBuffer(n);case 6:i=t.sent,e.fileType=i,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),reject(t.t0);case 13:resolve(r);case 14:case"end":return t.stop()}}),t,null,[[3,10]])}))))}))},fileType={fromStream:fromStream,fromTokenizer:fromTokenizer,fromBuffer:fromBuffer,stream:stream};Object.defineProperty(fileType,"extensions",{get:function(){return new Set(supported.extensions)}}),Object.defineProperty(fileType,"mimeTypes",{get:function(){return new Set(supported.mimeTypes)}}),module.exports=fileType},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function a(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.AnsiStringType=e.StringType=e.BufferType=e.Uint8ArrayType=e.IgnoreType=e.Float80_LE=e.Float80_BE=e.Float64_LE=e.Float64_BE=e.Float32_LE=e.Float32_BE=e.Float16_LE=e.Float16_BE=e.INT64_BE=e.UINT64_BE=e.INT64_LE=e.UINT64_LE=e.INT32_LE=e.INT32_BE=e.INT24_BE=e.INT24_LE=e.INT16_LE=e.INT16_BE=e.INT8=e.UINT32_BE=e.UINT32_LE=e.UINT24_BE=e.UINT24_LE=e.UINT16_BE=e.UINT16_LE=e.UINT8=void 0;var c=r(50);function u(t){return new DataView(t.buffer,t.byteOffset)}e.UINT8={len:1,get:function(t,e){return u(t).getUint8(e)},put:function(t,e,r){return u(t).setUint8(e,r),e+1}},e.UINT16_LE={len:2,get:function(t,e){return u(t).getUint16(e,!0)},put:function(t,e,r){return u(t).setUint16(e,r,!0),e+2}},e.UINT16_BE={len:2,get:function(t,e){return u(t).getUint16(e)},put:function(t,e,r){return u(t).setUint16(e,r),e+2}},e.UINT24_LE={len:3,get:function(t,e){var r=u(t);return r.getUint8(e)+(r.getUint16(e+1,!0)<<8)},put:function(t,e,r){var n=u(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.UINT24_BE={len:3,get:function(t,e){var r=u(t);return(r.getUint16(e)<<8)+r.getUint8(e+2)},put:function(t,e,r){var n=u(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.UINT32_LE={len:4,get:function(t,e){return u(t).getUint32(e,!0)},put:function(t,e,r){return u(t).setUint32(e,r,!0),e+4}},e.UINT32_BE={len:4,get:function(t,e){return u(t).getUint32(e)},put:function(t,e,r){return u(t).setUint32(e,r),e+4}},e.INT8={len:1,get:function(t,e){return u(t).getInt8(e)},put:function(t,e,r){return u(t).setInt8(e,r),e+1}},e.INT16_BE={len:2,get:function(t,e){return u(t).getInt16(e)},put:function(t,e,r){return u(t).setInt16(e,r),e+2}},e.INT16_LE={len:2,get:function(t,e){return u(t).getInt16(e,!0)},put:function(t,e,r){return u(t).setInt16(e,r,!0),e+2}},e.INT24_LE={len:3,get:function(t,r){var n=e.UINT24_LE.get(t,r);return n>8388607?n-16777216:n},put:function(t,e,r){var n=u(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.INT24_BE={len:3,get:function(t,r){var n=e.UINT24_BE.get(t,r);return n>8388607?n-16777216:n},put:function(t,e,r){var n=u(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.INT32_BE={len:4,get:function(t,e){return u(t).getInt32(e)},put:function(t,e,r){return u(t).setInt32(e,r),e+4}},e.INT32_LE={len:4,get:function(t,e){return u(t).getInt32(e,!0)},put:function(t,e,r){return u(t).setInt32(e,r,!0),e+4}},e.UINT64_LE={len:8,get:function(t,e){return u(t).getBigUint64(e,!0)},put:function(t,e,r){return u(t).setBigUint64(e,r,!0),e+8}},e.INT64_LE={len:8,get:function(t,e){return u(t).getBigInt64(e,!0)},put:function(t,e,r){return u(t).setBigInt64(e,r,!0),e+8}},e.UINT64_BE={len:8,get:function(t,e){return u(t).getBigUint64(e)},put:function(t,e,r){return u(t).setBigUint64(e,r),e+8}},e.INT64_BE={len:8,get:function(t,e){return u(t).getBigInt64(e)},put:function(t,e,r){return u(t).setBigInt64(e,r),e+8}},e.Float16_BE={len:2,get:function(t,e){return c.read(t,e,!1,10,this.len)},put:function(t,e,r){return c.write(t,r,e,!1,10,this.len),e+this.len}},e.Float16_LE={len:2,get:function(t,e){return c.read(t,e,!0,10,this.len)},put:function(t,e,r){return c.write(t,r,e,!0,10,this.len),e+this.len}},e.Float32_BE={len:4,get:function(t,e){return u(t).getFloat32(e)},put:function(t,e,r){return u(t).setFloat32(e,r),e+4}},e.Float32_LE={len:4,get:function(t,e){return u(t).getFloat32(e,!0)},put:function(t,e,r){return u(t).setFloat32(e,r,!0),e+4}},e.Float64_BE={len:8,get:function(t,e){return u(t).getFloat64(e)},put:function(t,e,r){return u(t).setFloat64(e,r),e+8}},e.Float64_LE={len:8,get:function(t,e){return u(t).getFloat64(e,!0)},put:function(t,e,r){return u(t).setFloat64(e,r,!0),e+8}},e.Float80_BE={len:10,get:function(t,e){return c.read(t,e,!1,63,this.len)},put:function(t,e,r){return c.write(t,r,e,!1,63,this.len),e+this.len}},e.Float80_LE={len:10,get:function(t,e){return c.read(t,e,!0,63,this.len)},put:function(t,e,r){return c.write(t,r,e,!0,63,this.len),e+this.len}};var p=function(){function t(e){i(this,t),this.len=e}return a(t,[{key:"get",value:function(t,e){}}]),t}();e.IgnoreType=p;var l=function(){function t(e){i(this,t),this.len=e}return a(t,[{key:"get",value:function(t,e){return t.subarray(e,e+this.len)}}]),t}();e.Uint8ArrayType=l;var f=function(){function t(e){i(this,t),this.len=e}return a(t,[{key:"get",value:function(t,e){return Buffer.from(t.subarray(e,e+this.len))}}]),t}();e.BufferType=f;var d=function(){function t(e,r){i(this,t),this.len=e,this.encoding=r}return a(t,[{key:"get",value:function(t,e){return Buffer.from(t).toString(this.encoding,e,e+this.len)}}]),t}();e.StringType=d;var m=function(){function t(e){i(this,t),this.len=e}return a(t,[{key:"get",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.decode(e,r,r+this.len)}}],[{key:"decode",value:function(e,r,n){for(var i="",o=r;o<n;++o)i+=t.codePointToString(t.singleByteDecoder(e[o]));return i}},{key:"inRange",value:function(t,e,r){return e<=t&&t<=r}},{key:"codePointToString",value:function(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}},{key:"singleByteDecoder",value:function(e){if(t.inRange(e,0,127))return e;var r=t.windows1252[e-128];if(null===r)throw Error("invaliding encoding");return r}}]),t}();e.AnsiStringType=m,m.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]},function(t,e){
27
27
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
28
- e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,u=c>>1,p=-7,l=r?i-1:0,f=r?-1:1,d=t[e+l];for(l+=f,o=d&(1<<-p)-1,d>>=-p,p+=s;p>0;o=256*o+t[e+l],l+=f,p-=8);for(a=o&(1<<-p)-1,o>>=-p,p+=n;p>0;a=256*a+t[e+l],l+=f,p-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=u}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,c,u=8*o-i-1,p=(1<<u)-1,l=p>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,m=n?1:-1,h=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=p):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+l>=1?f/c:f*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=p?(s=0,a=p):a+l>=1?(s=(e*c-1)*Math.pow(2,i),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=m,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[r+d]=255&a,d+=m,a/=256,u-=8);t[r+d-m]|=128*h}},function(t,e,r){"use strict";function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}e.stringToBytes=function(t){return n(t).map((function(t){return t.charCodeAt(0)}))},e.tarHeaderChecksumMatches=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=parseInt(t.toString("utf8",148,154).replace(/\0.*$/,"").trim(),8);if(isNaN(r))return!1;for(var n=256,i=e;i<e+148;i++)n+=t[i];for(var o=e+156;o<e+512;o++)n+=t[o];return r===n},e.uint32SyncSafeToken={get:function(t,e){return 127&t[e+3]|t[e+2]<<7|t[e+1]<<14|t[e]<<21},len:4}},function(t,e,r){"use strict";t.exports={extensions:["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","ai","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf"],mimeTypes:["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/x-apache-arrow","video/mp4","audio/midi","video/x-matroska","video/webm","video/quicktime","video/vnd.avi","audio/vnd.wave","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","audio/opus","video/ogg","audio/ogg","application/ogg","audio/x-flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd"]}},function(t,e,r){function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}t.exports=function(t){function e(t){var r,n,o,a=null;function s(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(s.enabled){var o=s,a=Number(new Date),c=a-(r||a);o.diff=c,o.prev=r,o.curr=a,r=a,n[0]=e.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");var u=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,(function(t,r){if("%%"===t)return"%";u++;var i=e.formatters[r];if("function"==typeof i){var a=n[u];t=i.call(o,a),n.splice(u,1),u--}return t})),e.formatArgs.call(o,n);var p=o.log||e.log;p.apply(o,n)}}return s.namespace=t,s.useColors=e.useColors(),s.color=e.selectColor(t),s.extend=i,s.destroy=e.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==a?a:(n!==e.namespaces&&(n=e.namespaces,o=e.enabled(t)),o)},set:function(t){a=t}}),"function"==typeof e.init&&e.init(s),s}function i(t,r){var n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){var t=[].concat(n(e.names.map(o)),n(e.skips.map(o).map((function(t){return"-"+t})))).join(",");return e.enable(""),t},e.enable=function(t){var r;e.save(t),e.namespaces=t,e.names=[],e.skips=[];var n=("string"==typeof t?t:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.slice(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;var r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(54),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((function(r){e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=1e3,i=6e4,o=60*i,a=24*o;function s(t,e,r,n){var i=e>=1.5*r;return Math.round(t/r)+" "+n+(i?"s":"")}t.exports=function(t,e){e=e||{};var c=r(t);if("string"===c&&t.length>0)return function(t){if((t=String(t)).length>100)return;var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!e)return;var r=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return r*a;case"hours":case"hour":case"hrs":case"hr":case"h":return r*o;case"minutes":case"minute":case"mins":case"min":case"m":return r*i;case"seconds":case"second":case"secs":case"sec":case"s":return r*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(t);if("number"===c&&isFinite(t))return e.long?function(t){var e=Math.abs(t);if(e>=a)return s(t,e,a,"day");if(e>=o)return s(t,e,o,"hour");if(e>=i)return s(t,e,i,"minute");if(e>=n)return s(t,e,n,"second");return t+" ms"}(t):function(t){var e=Math.abs(t);if(e>=a)return Math.round(t/a)+"d";if(e>=o)return Math.round(t/o)+"h";if(e>=i)return Math.round(t/i)+"m";if(e>=n)return Math.round(t/n)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,r){"use strict";r.r(e),r.d(e,"XhrAdapter",(function(){return l}));var n=r(0),i=r(3),o=r.n(i),a=r(4),s=r(5),c=r(2),u=r(9),p=o()("fs:request:xhr"),l=function(){function t(){}return t.prototype.request=function(t){var e=this;void 0===t.filestackHeaders&&(t.filestackHeaders=!0),(t=Object(u.d)(t)).headers=t.headers||{};var r=t.data,i=t.headers;a.e(r)&&delete i["Content-Type"];var o=new XMLHttpRequest;if(t.blobResponse&&(o.responseType="blob"),t.auth){if(!t.auth.username||0===t.auth.username.length||!t.auth.password||0===t.auth.password.length)return Promise.reject(new c.a("Basic auth: username and password are required ".concat(t.auth),t));i.Authorization="Basic "+btoa(unescape(encodeURIComponent("".concat(t.auth.username,":").concat(t.auth.password)))),p("Set request authorization to %s",t.auth.username+t.auth.password)}var l=t.url.trim();return/^http(s)?:\/\//.test(l)||(l="https://".concat(l)),l=Object(u.a)(l,t.params),p("Starting request to %s with options %O",l,t),o.open(t.method.toUpperCase(),l,!0),o.timeout=t.timeout,new Promise((function(a,f){var d;if(t.cancelToken&&(d=function(e){return o&&(o.abort(),o=null),p("Request canceled by user %s, config: %O",e,t),f(new c.a("Request aborted. Reason: ".concat(e),t,null,c.b.ABORTED))},t.cancelToken.once("cancel",d)),o.onreadystatechange=function(){return Object(n.b)(e,void 0,void 0,(function(){var e,r,i;return Object(n.d)(this,(function(n){switch(n.label){case 0:return o&&4===o.readyState&&(0!==o.status||o.responseURL)?(e=Object(u.b)(o.getAllResponseHeaders()),r=o.response,i={data:r,status:o.status,statusText:o.statusText,headers:e,config:t},o=null,[4,Object(u.c)(i)]):[2];case 1:return 500<=(i=n.sent()).status&&i.status<=599?(p("Server error(5xx) - %O",i),[2,f(new c.a("Server error ".concat(l),t,i,c.b.SERVER))]):400<=i.status&&i.status<=499?(p("Request error(4xx) - %O",i),[2,f(new c.a("Request error ".concat(l),t,i,c.b.REQUEST))]):(t.cancelToken&&(t.cancelToken.removeListener("cancel",d),d=null),[2,a(i)])}}))}))},o.onabort=function(){o&&(o=null,f(new c.a("Request aborted",t,null,c.b.ABORTED)))},o.onerror=function(e){o=null,p("Request error! %O",e),f(new c.a("Network Error",t,null,c.b.NETWORK))},o.ontimeout=function(){o=null,p("Request timed out. %O",t),f(new c.a("Request timeout",t,null,c.b.TIMEOUT))},"setRequestHeader"in o&&i&&Object.keys(i).length)for(var m in i)void 0!==i[m]&&(p("Set request header %s to %s",m,i[m]),o.setRequestHeader(m,i[m]));"function"==typeof t.onProgress&&[s.a.POST,s.a.PUT].indexOf(t.method)>-1&&(o.upload?(p("Bind to upload progress event"),o.upload.addEventListener("progress",t.onProgress)):(p("Bind to progress event"),o.addEventListener("progress",t.onProgress))),void 0===r&&(r=null),o.send(r)}))},t}()},function(t,e,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}var a=r(57).buildOptions,s=r(58),c=r(62).prettify,u=r(26),p=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.externalEntities={},this.options=a(e)}var e,r,n;return e=t,(r=[{key:"parse",value:function(t,e){if("string"==typeof t);else{if(!t.toString)throw new Error("XML data is accepted in String or Bytes[] form.");t=t.toString()}if(e){!0===e&&(e={});var r=u.validate(t,e);if(!0!==r)throw Error("".concat(r.err.msg,":").concat(r.err.line,":").concat(r.err.col))}var n=new s(this.options);n.addExternalEntities(this.externalEntities);var i=n.parseXml(t);return this.options.preserveOrder||void 0===i?i:c(i,this.options)}},{key:"addEntity",value:function(t,e){if(-1!==e.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==t.indexOf("&")||-1!==t.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===e)throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=e}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=p},function(t,e){var r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:function(){return!1},commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t}};e.buildOptions=function(t){return Object.assign({},r,t)},e.defaultOptions=r},function(t,e,r){"use strict";function n(t,e,r){return(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function a(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:String(e)}var c=r(27),u=r(59),p=r(60),l=r(61),f=("<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,c.nameRegexp),a((function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"}},this.addExternalEntities=d,this.parseXml=g,this.parseTextData=m,this.resolveNameSpace=h,this.buildAttributesMap=v,this.isItStopNode=k,this.replaceEntitiesValue=x,this.readStopNodeData=O,this.saveTextToParentTag=w,this.addChild=b})));function d(t){for(var e=Object.keys(t),r=0;r<e.length;r++){var n=e[r];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:t[n]}}}function m(t,e,r,n,o,a,s){if(void 0!==t&&(this.options.trimValues&&!n&&(t=t.trim()),t.length>0)){s||(t=this.replaceEntitiesValue(t));var c=this.options.tagValueProcessor(e,t,r,o,a);return null==c?t:i(c)!==i(t)||c!==t?c:this.options.trimValues||t.trim()===t?j(t,this.options.parseTagValue,this.options.numberParseOptions):t}}function h(t){if(this.options.removeNSPrefix){var e=t.split(":"),r="/"===t.charAt(0)?"/":"";if("xmlns"===e[0])return"";2===e.length&&(t=r+e[1])}return t}var y=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function v(t,e,r){if(!this.options.ignoreAttributes&&"string"==typeof t){for(var n=c.getAllMatches(t,y),o=n.length,a={},s=0;s<o;s++){var u=this.resolveNameSpace(n[s][1]),p=n[s][4],l=this.options.attributeNamePrefix+u;if(u.length)if(this.options.transformAttributeName&&(l=this.options.transformAttributeName(l)),"__proto__"===l&&(l="#__proto__"),void 0!==p){this.options.trimValues&&(p=p.trim()),p=this.replaceEntitiesValue(p);var f=this.options.attributeValueProcessor(u,p,e);null==f?a[l]=p:i(f)!==i(p)||f!==p?a[l]=f:a[l]=j(p,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[l]=!0)}if(!Object.keys(a).length)return;if(this.options.attributesGroupName){var d={};return d[this.options.attributesGroupName]=a,d}return a}}var g=function(t){t=t.replace(/\r\n?/g,"\n");for(var e=new u("!xml"),r=e,i="",o="",a=0;a<t.length;a++){if("<"===t[a])if("/"===t[a+1]){var s=F(t,">",a,"Closing Tag is not closed."),c=t.substring(a+2,s).trim();if(this.options.removeNSPrefix){var l=c.indexOf(":");-1!==l&&(c=c.substr(l+1))}this.options.transformTagName&&(c=this.options.transformTagName(c)),r&&(i=this.saveTextToParentTag(i,r,o));var f=o.substring(o.lastIndexOf(".")+1);if(c&&-1!==this.options.unpairedTags.indexOf(c))throw new Error("Unpaired tag can not be used as closing tag: </".concat(c,">"));var d=0;f&&-1!==this.options.unpairedTags.indexOf(f)?(d=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):d=o.lastIndexOf("."),o=o.substring(0,d),r=this.tagsNodeStack.pop(),i="",a=s}else if("?"===t[a+1]){var m=E(t,a,!1,"?>");if(!m)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,r,o),this.options.ignoreDeclaration&&"?xml"===m.tagName||this.options.ignorePiTags);else{var h=new u(m.tagName);h.add(this.options.textNodeName,""),m.tagName!==m.tagExp&&m.attrExpPresent&&(h[":@"]=this.buildAttributesMap(m.tagExp,o,m.tagName)),this.addChild(r,h,o)}a=m.closeIndex+1}else if("!--"===t.substr(a+1,3)){var y=F(t,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){var v=t.substring(a+4,y-2);i=this.saveTextToParentTag(i,r,o),r.add(this.options.commentPropName,[n({},this.options.textNodeName,v)])}a=y}else if("!D"===t.substr(a+1,2)){var g=p(t,a);this.docTypeEntities=g.entities,a=g.i}else if("!["===t.substr(a+1,2)){var b=F(t,"]]>",a,"CDATA is not closed.")-2,x=t.substring(a+9,b);if(i=this.saveTextToParentTag(i,r,o),this.options.cdataPropName)r.add(this.options.cdataPropName,[n({},this.options.textNodeName,x)]);else{var w=this.parseTextData(x,r.tagname,o,!0,!1,!0);null==w&&(w=""),r.add(this.options.textNodeName,w)}a=b+2}else{var k=E(t,a,this.options.removeNSPrefix),_=k.tagName,O=k.tagExp,j=k.attrExpPresent,S=k.closeIndex;this.options.transformTagName&&(_=this.options.transformTagName(_)),r&&i&&"!xml"!==r.tagname&&(i=this.saveTextToParentTag(i,r,o,!1));var T=r;if(T&&-1!==this.options.unpairedTags.indexOf(T.tagname)&&(r=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),_!==e.tagname&&(o+=o?"."+_:_),this.isItStopNode(this.options.stopNodes,o,_)){var P="";if(O.length>0&&O.lastIndexOf("/")===O.length-1)a=k.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(_))a=k.closeIndex;else{var A=this.readStopNodeData(t,_,S+1);if(!A)throw new Error("Unexpected end of ".concat(_));a=A.i,P=A.tagContent}var C=new u(_);_!==O&&j&&(C[":@"]=this.buildAttributesMap(O,o,_)),P&&(P=this.parseTextData(P,_,o,!0,j,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),C.add(this.options.textNodeName,P),this.addChild(r,C,o)}else{if(O.length>0&&O.lastIndexOf("/")===O.length-1){O="/"===_[_.length-1]?_=_.substr(0,_.length-1):O.substr(0,O.length-1),this.options.transformTagName&&(_=this.options.transformTagName(_));var D=new u(_);_!==O&&j&&(D[":@"]=this.buildAttributesMap(O,o,_)),this.addChild(r,D,o),o=o.substr(0,o.lastIndexOf("."))}else{var I=new u(_);this.tagsNodeStack.push(r),_!==O&&j&&(I[":@"]=this.buildAttributesMap(O,o,_)),this.addChild(r,I,o),r=I}i="",a=S}}else i+=t[a]}return e.child};function b(t,e,r){var n=this.options.updateTag(e.tagname,r,e[":@"]);!1===n||("string"==typeof n?(e.tagname=n,t.addChild(e)):t.addChild(e))}var x=function(t){if(this.options.processEntities){for(var e in this.docTypeEntities){var r=this.docTypeEntities[e];t=t.replace(r.regx,r.val)}for(var n in this.lastEntities){var i=this.lastEntities[n];t=t.replace(i.regex,i.val)}if(this.options.htmlEntities)for(var o in this.htmlEntities){var a=this.htmlEntities[o];t=t.replace(a.regex,a.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function w(t,e,r,n){return t&&(void 0===n&&(n=0===Object.keys(e.child).length),void 0!==(t=this.parseTextData(t,e.tagname,r,!1,!!e[":@"]&&0!==Object.keys(e[":@"]).length,n))&&""!==t&&e.add(this.options.textNodeName,t),t=""),t}function k(t,e,r){var n="*."+r;for(var i in t){var o=t[i];if(n===o||e===o)return!0}return!1}function _(t,e){for(var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:">",i="",o=e;o<t.length;o++){var a=t[o];if(r)a===r&&(r="");else if('"'===a||"'"===a)r=a;else if(a===n[0]){if(!n[1])return{data:i,index:o};if(t[o+1]===n[1])return{data:i,index:o}}else"\t"===a&&(a=" ");i+=a}}function F(t,e,r,n){var i=t.indexOf(e,r);if(-1===i)throw new Error(n);return i+e.length-1}function E(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:">",i=_(t,e+1,n);if(i){var o=i.data,a=i.index,s=o.search(/\s/),c=o,u=!0;if(-1!==s&&(c=o.substr(0,s).replace(/\s\s*$/,""),o=o.substr(s+1)),r){var p=c.indexOf(":");-1!==p&&(u=(c=c.substr(p+1))!==i.data.substr(p+1))}return{tagName:c,tagExp:o,closeIndex:a,attrExpPresent:u}}}function O(t,e,r){for(var n=r,i=1;r<t.length;r++)if("<"===t[r])if("/"===t[r+1]){var o=F(t,">",r,"".concat(e," is not closed"));if(t.substring(r+2,o).trim()===e&&0===--i)return{tagContent:t.substring(n,r),i:o};r=o}else if("?"===t[r+1]){r=F(t,"?>",r+1,"StopNode is not closed.")}else if("!--"===t.substr(r+1,3)){r=F(t,"--\x3e",r+3,"StopNode is not closed.")}else if("!["===t.substr(r+1,2)){r=F(t,"]]>",r,"StopNode is not closed.")-2}else{var a=E(t,r,">");if(a)(a&&a.tagName)===e&&"/"!==a.tagExp[a.tagExp.length-1]&&i++,r=a.closeIndex}}function j(t,e,r){if(e&&"string"==typeof t){var n=t.trim();return"true"===n||"false"!==n&&l(t,r)}return c.isExist(t)?t:""}t.exports=f},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,r){return(e=a(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tagname=e,this.child=[],this[":@"]={}}var e,r,n;return e=t,(r=[{key:"add",value:function(t,e){"__proto__"===t&&(t="#__proto__"),this.child.push(i({},t,e))}},{key:"addChild",value:function(t){"__proto__"===t.tagname&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push(i(i({},t.tagname,t.child),":@",t[":@"])):this.child.push(i({},t.tagname,t.child))}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=s},function(t,e){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){u=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){for(var r="";e<t.length&&"'"!==t[e]&&'"'!==t[e];e++)r+=t[e];if(-1!==(r=r.trim()).indexOf(" "))throw new Error("External entites are not supported");for(var n=t[e++],i="";e<t.length&&t[e]!==n;e++)i+=t[e];return[r,i,e]}function o(t,e){return"!"===t[e+1]&&"-"===t[e+2]&&"-"===t[e+3]}function a(t,e){return"!"===t[e+1]&&"E"===t[e+2]&&"N"===t[e+3]&&"T"===t[e+4]&&"I"===t[e+5]&&"T"===t[e+6]&&"Y"===t[e+7]}function s(t,e){return"!"===t[e+1]&&"E"===t[e+2]&&"L"===t[e+3]&&"E"===t[e+4]&&"M"===t[e+5]&&"E"===t[e+6]&&"N"===t[e+7]&&"T"===t[e+8]}function c(t,e){return"!"===t[e+1]&&"A"===t[e+2]&&"T"===t[e+3]&&"T"===t[e+4]&&"L"===t[e+5]&&"I"===t[e+6]&&"S"===t[e+7]&&"T"===t[e+8]}function u(t,e){return"!"===t[e+1]&&"N"===t[e+2]&&"O"===t[e+3]&&"T"===t[e+4]&&"A"===t[e+5]&&"T"===t[e+6]&&"I"===t[e+7]&&"O"===t[e+8]&&"N"===t[e+9]}function p(t){for(var e=0;e<"!?\\/[]$%{}^&*()<>|+".length;e++){var r="!?\\/[]$%{}^&*()<>|+"[e];if(-1!==t.indexOf(r))throw new Error("Invalid character ".concat(r," in entity name"))}return t}t.exports=function(t,e){var n={};if("O"!==t[e+3]||"C"!==t[e+4]||"T"!==t[e+5]||"Y"!==t[e+6]||"P"!==t[e+7]||"E"!==t[e+8])throw new Error("Invalid Tag instead of DOCTYPE");e+=9;for(var l=1,f=!1,d=!1;e<t.length;e++)if("<"!==t[e]||d)if(">"===t[e]){if(d?"-"===t[e-1]&&"-"===t[e-2]&&(d=!1,l--):l--,0===l)break}else"["===t[e]?f=!0:t[e];else{if(f&&a(t,e)){var m=r(i(t,(e+=7)+1),3);entityName=m[0],val=m[1],e=m[2],-1===val.indexOf("&")&&(n[p(entityName)]={regx:RegExp("&".concat(entityName,";"),"g"),val:val})}else if(f&&s(t,e))e+=8;else if(f&&c(t,e))e+=8;else if(f&&u(t,e))e+=9;else{if(!o)throw new Error("Invalid DOCTYPE");d=!0}l++,""}if(0!==l)throw new Error("Unclosed DOCTYPE");return{entities:n,i:e}}},function(t,e){var r=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var i={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function o(t){return t&&-1!==t.indexOf(".")?("."===(t=t.replace(/0+$/,""))?t="0":"."===t[0]?t="0"+t:"."===t[t.length-1]&&(t=t.substr(0,t.length-1)),t):t}t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=Object.assign({},i,e),!t||"string"!=typeof t)return t;var a=t.trim();if(void 0!==e.skipLike&&e.skipLike.test(a))return t;if(e.hex&&r.test(a))return Number.parseInt(a,16);var s=n.exec(a);if(s){var c=s[1],u=s[2],p=o(s[3]),l=s[4]||s[6];if(!e.leadingZeros&&u.length>0&&c&&"."!==a[2])return t;if(!e.leadingZeros&&u.length>0&&!c&&"."!==a[1])return t;var f=Number(a),d=""+f;return-1!==d.search(/[eE]/)||l?e.eNotation?f:t:-1!==a.indexOf(".")?"0"===d&&""===p||d===p||c&&d==="-"+p?f:t:u?p===d||c+p===d?f:t:a===d||a===c+d?f:t}return t}},function(t,e,r){"use strict";function n(t){for(var e=Object.keys(t),r=0;r<e.length;r++){var n=e[r];if(":@"!==n)return n}}function i(t,e,r,n){if(e)for(var i=Object.keys(e),o=i.length,a=0;a<o;a++){var s=i[a];n.isArray(s,r+"."+s,!0,!0)?t[s]=[e[s]]:t[s]=e[s]}}function o(t,e){var r=e.textNodeName,n=Object.keys(t).length;return 0===n||!(1!==n||!t[r]&&"boolean"!=typeof t[r]&&0!==t[r])}e.prettify=function(t,e){return function t(e,r,a){for(var s,c={},u=0;u<e.length;u++){var p=e[u],l=n(p),f="";if(f=void 0===a?l:a+"."+l,l===r.textNodeName)void 0===s?s=p[l]:s+=""+p[l];else{if(void 0===l)continue;if(p[l]){var d=t(p[l],r,f),m=o(d,r);p[":@"]?i(d,p[":@"],f,r):1!==Object.keys(d).length||void 0===d[r.textNodeName]||r.alwaysCreateTextNode?0===Object.keys(d).length&&(r.alwaysCreateTextNode?d[r.textNodeName]="":d=""):d=d[r.textNodeName],void 0!==c[l]&&c.hasOwnProperty(l)?(Array.isArray(c[l])||(c[l]=[c[l]]),c[l].push(d)):r.isArray(l,f,m)?c[l]=[d]:c[l]=d}}}"string"==typeof s?s.length>0&&(c[r.textNodeName]=s):void 0!==s&&(c[r.textNodeName]=s);return c}(t,e)}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,r){var i;return i=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==n(i)?i:String(i))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(64),a={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function s(t){this.options=Object.assign({},a,t),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=p),this.processTextOrObjNode=c,this.options.format?(this.indentate=u,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function c(t,e,r){var n=this.j2x(t,r+1);return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,n.attrStr,r):this.buildObjectNode(n.val,e,n.attrStr,r)}function u(t){return this.options.indentBy.repeat(t)}function p(t){return!!t.startsWith(this.options.attributeNamePrefix)&&t.substr(this.attrPrefixLen)}s.prototype.build=function(t){return this.options.preserveOrder?o(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t=i({},this.options.arrayNodeName,t)),this.j2x(t,0).val)},s.prototype.j2x=function(t,e){var r="",i="";for(var o in t)if(void 0===t[o]);else if(null===t[o])"?"===o[0]?i+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(t[o]instanceof Date)i+=this.buildTextValNode(t[o],o,"",e);else if("object"!==n(t[o])){var a=this.isAttribute(o);if(a)r+=this.buildAttrPairStr(a,""+t[o]);else if(o===this.options.textNodeName){var s=this.options.tagValueProcessor(o,""+t[o]);i+=this.replaceEntitiesValue(s)}else i+=this.buildTextValNode(t[o],o,"",e)}else if(Array.isArray(t[o])){for(var c=t[o].length,u="",p=0;p<c;p++){var l=t[o][p];void 0===l||(null===l?"?"===o[0]?i+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+o+"/"+this.tagEndChar:"object"===n(l)?this.options.oneListGroup?u+=this.j2x(l,e+1).val:u+=this.processTextOrObjNode(l,o,e):u+=this.buildTextValNode(l,o,"",e))}this.options.oneListGroup&&(u=this.buildObjectNode(u,o,"",e)),i+=u}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName)for(var f=Object.keys(t[o]),d=f.length,m=0;m<d;m++)r+=this.buildAttrPairStr(f[m],""+t[o][f[m]]);else i+=this.processTextOrObjNode(t[o],o,e);return{attrStr:r,val:i}},s.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+e+'"'},s.prototype.buildObjectNode=function(t,e,r,n){if(""===t)return"?"===e[0]?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;var i="</"+e+this.tagEndChar,o="";return"?"===e[0]&&(o="?",i=""),r&&-1===t.indexOf("<")?this.indentate(n)+"<"+e+r+o+">"+t+i:!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===o.length?this.indentate(n)+"\x3c!--".concat(t,"--\x3e")+this.newLine:this.indentate(n)+"<"+e+r+o+this.tagEndChar+t+this.indentate(n)+i},s.prototype.closeTag=function(t){var e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":"></".concat(t),e},s.prototype.buildTextValNode=function(t,e,r,n){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName)return this.indentate(n)+"<![CDATA[".concat(t,"]]>")+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(n)+"\x3c!--".concat(t,"--\x3e")+this.newLine;if("?"===e[0])return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;var i=this.options.tagValueProcessor(e,t);return""===(i=this.replaceEntitiesValue(i))?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+i+"</"+e+this.tagEndChar},s.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(var e=0;e<this.options.entities.length;e++){var r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t},t.exports=s},function(t,e){function r(t){for(var e=Object.keys(t),r=0;r<e.length;r++){var n=e[r];if(":@"!==n)return n}}function n(t,e){var r="";if(t&&!e.ignoreAttributes)for(var n in t){var i=e.attributeValueProcessor(n,t[n]);!0===(i=o(i,e))&&e.suppressBooleanAttributes?r+=" ".concat(n.substr(e.attributeNamePrefix.length)):r+=" ".concat(n.substr(e.attributeNamePrefix.length),'="').concat(i,'"')}return r}function i(t,e){var r=(t=t.substr(0,t.length-e.textNodeName.length-1)).substr(t.lastIndexOf(".")+1);for(var n in e.stopNodes)if(e.stopNodes[n]===t||e.stopNodes[n]==="*."+r)return!0;return!1}function o(t,e){if(t&&t.length>0&&e.processEntities)for(var r=0;r<e.entities.length;r++){var n=e.entities[r];t=t.replace(n.regex,n.val)}return t}t.exports=function(t,e){var a="";return e.format&&e.indentBy.length>0&&(a="\n"),function t(e,a,s,c){for(var u="",p=!1,l=0;l<e.length;l++){var f=e[l],d=r(f),m="";if(m=0===s.length?d:"".concat(s,".").concat(d),d!==a.textNodeName)if(d!==a.cdataPropName)if(d!==a.commentPropName)if("?"!==d[0]){var h=c;""!==h&&(h+=a.indentBy);var y=n(f[":@"],a),v=c+"<".concat(d).concat(y),g=t(f[d],a,m,h);-1!==a.unpairedTags.indexOf(d)?a.suppressUnpairedNode?u+=v+">":u+=v+"/>":g&&0!==g.length||!a.suppressEmptyNode?g&&g.endsWith(">")?u+=v+">".concat(g).concat(c,"</").concat(d,">"):(u+=v+">",g&&""!==c&&(g.includes("/>")||g.includes("</"))?u+=c+a.indentBy+g+c:u+=g,u+="</".concat(d,">")):u+=v+"/>",p=!0}else{var b=n(f[":@"],a),x="?xml"===d?"":c,w=f[d][0][a.textNodeName];w=0!==w.length?" "+w:"",u+=x+"<".concat(d).concat(w).concat(b,"?>"),p=!0}else u+=c+"\x3c!--".concat(f[d][0][a.textNodeName],"--\x3e"),p=!0;else p&&(u+=c),u+="<![CDATA[".concat(f[d][0][a.textNodeName],"]]>"),p=!1;else{var k=f[d];i(m,a)||(k=o(k=a.tagValueProcessor(d,k),a)),p&&(u+=c),u+=k,p=!1}}return u}(t,e,"",a)}},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function s(t,e,r,n,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new a(r,n||t,o),c=i?i+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],s]:t._events[c].push(s):(t._events[c]=s,t._eventsCount++),t}function c(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),u.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},u.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,a=new Array(o);n<o;n++)a[n]=r[n].fn;return a},u.prototype.listenerCount=function(t){var e=i?i+t:t,r=this._events[e];return r?r.fn?1:r.length:0},u.prototype.emit=function(t,e,r,n,o,a){var s=i?i+t:t;if(!this._events[s])return!1;var c,u,p=this._events[s],l=arguments.length;if(p.fn){switch(p.once&&this.removeListener(t,p.fn,void 0,!0),l){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,e),!0;case 3:return p.fn.call(p.context,e,r),!0;case 4:return p.fn.call(p.context,e,r,n),!0;case 5:return p.fn.call(p.context,e,r,n,o),!0;case 6:return p.fn.call(p.context,e,r,n,o,a),!0}for(u=1,c=new Array(l-1);u<l;u++)c[u-1]=arguments[u];p.fn.apply(p.context,c)}else{var f,d=p.length;for(u=0;u<d;u++)switch(p[u].once&&this.removeListener(t,p[u].fn,void 0,!0),l){case 1:p[u].fn.call(p[u].context);break;case 2:p[u].fn.call(p[u].context,e);break;case 3:p[u].fn.call(p[u].context,e,r);break;case 4:p[u].fn.call(p[u].context,e,r,n);break;default:if(!c)for(f=1,c=new Array(l-1);f<l;f++)c[f-1]=arguments[f];p[u].fn.apply(p[u].context,c)}}return!0},u.prototype.on=function(t,e,r){return s(this,t,e,r,!1)},u.prototype.once=function(t,e,r){return s(this,t,e,r,!0)},u.prototype.removeListener=function(t,e,r,n){var o=i?i+t:t;if(!this._events[o])return this;if(!e)return c(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||n&&!a.once||r&&a.context!==r||c(this,o);else{for(var s=0,u=[],p=a.length;s<p;s++)(a[s].fn!==e||n&&!a[s].once||r&&a[s].context!==r)&&u.push(a[s]);u.length?this._events[o]=1===u.length?u[0]:u:c(this,o)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&c(this,e)):(this._events=new o,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=i,u.EventEmitter=u,t.exports=u},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}function a(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function s(t){var e="function"==typeof Map?new Map:void 0;return(s=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return c(t,arguments,l(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,t)})(t)}function c(t,e,r){return(c=u()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&p(i,r.prototype),i}).apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function p(t,e){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=r(67),d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(f,t);var e,r,n,o,s,c=(e=f,r=u(),function(){var t,n=l(e);if(r){var i=l(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return a(this,t)});function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(e=c.call(this,t)).name="TimeoutError",e}return n=f,o&&i(n.prototype,o),s&&i(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n}(s(Error)),m=function(t,e,r){return new Promise((function(n,i){if("number"!=typeof e||e<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(e!==1/0){var o=setTimeout((function(){if("function"!=typeof r){var o="string"==typeof r?r:"Promise timed out after ".concat(e," milliseconds"),a=r instanceof Error?r:new d(o);"function"==typeof t.cancel&&t.cancel(),i(a)}else try{n(r())}catch(t){i(t)}}),e);f(t.then(n,i),(function(){clearTimeout(o)}))}else n(t)}))};t.exports=m,t.exports.default=m,t.exports.TimeoutError=d},function(t,e,r){"use strict";t.exports=function(t,e){return e=e||function(){},t.then((function(t){return new Promise((function(t){t(e())})).then((function(){return t}))}),(function(t){return new Promise((function(t){t(e())})).then((function(){throw t}))}))}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}Object.defineProperty(e,"__esModule",{value:!0});var a=r(69),s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._queue=[]}var e,r,n;return e=t,(r=[{key:"enqueue",value:function(t,e){var r={priority:(e=Object.assign({priority:0},e)).priority,run:t};if(this.size&&this._queue[this.size-1].priority>=e.priority)this._queue.push(r);else{var n=a.default(this._queue,r,(function(t,e){return e.priority-t.priority}));this._queue.splice(n,0,r)}}},{key:"dequeue",value:function(){var t=this._queue.shift();return null==t?void 0:t.run}},{key:"filter",value:function(t){return this._queue.filter((function(e){return e.priority===t.priority})).map((function(t){return t.run}))}},{key:"size",get:function(){return this._queue.length}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){for(var n=0,i=t.length;i>0;){var o=i/2|0,a=n+o;r(t[a],e)<=0?(n=++a,i-=o+1):i=o}return n}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.r(e),r.d(e,"Filestack",(function(){return $e})),r.d(e,"init",(function(){return Ue})),r.d(e,"version",(function(){return qe})),r.d(e,"EAlignOptions",(function(){return Ht})),r.d(e,"EAlignFacesOptions",(function(){return Wt})),r.d(e,"EFitOptions",(function(){return Yt})),r.d(e,"EBlurMode",(function(){return Qt})),r.d(e,"EShapeType",(function(){return Kt})),r.d(e,"ENoiseType",(function(){return Jt})),r.d(e,"EStyleType",(function(){return Xt})),r.d(e,"EColorspaceType",(function(){return te})),r.d(e,"ECropfacesType",(function(){return ee})),r.d(e,"ESmartCropMode",(function(){return re})),r.d(e,"EImageWatermarkPosition",(function(){return ne})),r.d(e,"EAudioTypes",(function(){return ie})),r.d(e,"EVideoTypes",(function(){return oe})),r.d(e,"EUrlscreenshotAgent",(function(){return ae})),r.d(e,"EUrlscreenshotMode",(function(){return se})),r.d(e,"EUrlscreenshotOrientation",(function(){return ce})),r.d(e,"EVideoLocations",(function(){return ue})),r.d(e,"EVideoAccess",(function(){return pe})),r.d(e,"EVideoAccessMode",(function(){return le})),r.d(e,"transform",(function(){return fe})),r.d(e,"Align",(function(){return ut})),r.d(e,"FitOptions",(function(){return pt})),r.d(e,"BlurMode",(function(){return lt})),r.d(e,"ShapeType",(function(){return ft})),r.d(e,"NoiseType",(function(){return dt})),r.d(e,"StyleType",(function(){return mt})),r.d(e,"ColorspaceType",(function(){return ht})),r.d(e,"CropfacesType",(function(){return yt})),r.d(e,"ImageWatermarkPosition",(function(){return vt})),r.d(e,"SmartCropMode",(function(){return gt})),r.d(e,"AudioTypes",(function(){return bt})),r.d(e,"VideoTypes",(function(){return xt})),r.d(e,"URLScreenshotAgent",(function(){return wt})),r.d(e,"URLScreenshotMode",(function(){return kt})),r.d(e,"URLScreenshotOrientation",(function(){return _t})),r.d(e,"Locations",(function(){return Ft})),r.d(e,"VideoAccess",(function(){return Et})),r.d(e,"VideoAccessMode",(function(){return Ot})),r.d(e,"EnhancePreset",(function(){return jt})),r.d(e,"Filelink",(function(){return Pt})),r.d(e,"FilestackErrorType",(function(){return K})),r.d(e,"FsHttpMethod",(function(){return zt.a})),r.d(e,"FsRequest",(function(){return Ut})),r.d(e,"FsRequestErrorCode",(function(){return qt.b})),r.d(e,"FsRequestError",(function(){return qt.a})),r.d(e,"FsCancelToken",(function(){return Vt})),r.d(e,"resolveCdnUrl",(function(){return ot.resolveCdnUrl})),r.d(e,"resolveHost",(function(){return ot.resolveHost})),r.d(e,"removeEmpty",(function(){return ot.removeEmpty})),r.d(e,"uniqueTime",(function(){return ot.uniqueTime})),r.d(e,"uniqueId",(function(){return ot.uniqueId})),r.d(e,"extensionToMime",(function(){return ot.extensionToMime})),r.d(e,"sanitizeName",(function(){return ot.sanitizeName})),r.d(e,"filterObject",(function(){return ot.filterObject})),r.d(e,"cleanUpCallbacks",(function(){return ot.cleanUpCallbacks})),r.d(e,"md5",(function(){return ot.md5})),r.d(e,"b64",(function(){return ot.b64})),r.d(e,"getVersion",(function(){return ot.getVersion})),r.d(e,"isMobile",(function(){return ot.isMobile})),r.d(e,"isFacebook",(function(){return ot.isFacebook})),r.d(e,"TransformSchema",(function(){return tt})),r.d(e,"getSecurity",(function(){return c})),r.d(e,"validateWebhookSignature",(function(){return u})),r.d(e,"Client",(function(){return Re})),r.d(e,"FilestackError",(function(){return X})),r.d(e,"PickerDisplayMode",(function(){return ze})),r.d(e,"getMimetype",(function(){return ot.getMimetype})),r.d(e,"PrefetchEvents",(function(){return Ae}));var i=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==n(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(i,o,function(e){return t[e]}.bind(null,o));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){r.r(e),r.d(e,"loadModules",(function(){return c})),r.d(e,"loadModule",(function(){return u})),r.d(e,"registerModule",(function(){return p})),r.d(e,"loadCss",(function(){return l})),r.d(e,"FILESTACK_MODULES",(function(){return n}));var n,i={},o=function(){var t,e=(t="undefined"==typeof window?i:window).filestackInternals;return e||(e={modules:{}},t.filestackInternals=e),e.modules||(e.modules={}),e}(),a=o&&o.modules,s=function(t,e,r){t.detachEvent?t.detachEvent("onreadystatechange",e):t.removeEventListener(r,e,!1)},c=function(t){return Promise.all(t.map((function(t){var e=t.id,r=t.url;return u(e,r)}))).then((function(e){var r={};return e.forEach((function(e,n){var i=t[n];r[i.id]=e})),r}))},u=function(t,e){if("undefined"==typeof window)return Promise.reject(new Error("Load module is working only on browser env"));if(!t)throw new Error("Module id is required");var r=a[t="fs-loader-"+t];return r||(a[t]={},r=a[t]),r.instance?Promise.resolve(r.instance):r.promise?r.promise:r.promise=new Promise((function(r,n){var i=function e(i){if("load"===i.type||/^(complete|loaded)$/.test((i.currentTarget||i.srcElement).readyState)){var o=i.currentTarget||i.srcElement;s(o,e,"load"),s(o,n,"error"),setTimeout((function(){return r(a[t]?a[t].instance:void 0)}),10)}},o=document.createElement("script");o.id=t,!o.attachEvent||o.attachEvent.toString&&o.attachEvent.toString().indexOf("[native code")<0?(o.addEventListener("load",i,!1),o.addEventListener("onerror",n,!1)):o.attachEvent("onreadystatechange",i),o.setAttribute("crossorigin","anonymous"),o.setAttribute("charset","utf-8"),o.setAttribute("async","true"),o.src=e,document.body.appendChild(o)}))},p=function(t,e,r){if("undefined"!=typeof window){if(!t)throw new Error("Module id is required");if(!a)throw new Error("Loader is not initialized");a[t="fs-loader-"+t]&&(a[t]={instance:e,metadata:r})}},l=function(t){return null!==document.querySelector('link[href="'.concat(t,'"]'))?Promise.resolve():new Promise((function(e){var r=document.getElementsByTagName("head")[0],n=document.createElement("link");n.rel="stylesheet",n.href=t,n.addEventListener("load",(function t(){e(),n.removeEventListener("load",t)})),r.appendChild(n)}))};!function(t){t.FILESTACK_SDK="filestack-sdk",t.TRANSFORMS_UI="transforms-ui",t.PICKER="picker"}(n||(n={}))}]),o=(i.loadModules,i.loadModule),a=i.registerModule,s=(i.loadCss,i.FILESTACK_MODULES),c=function(t,e){throw new Error("getSecurity is only supported in nodejs")},u=function(t,e,r){throw new Error("validateWebhookSignature is only supported in nodejs")},p=r(0),l=r(7),f=r.n(l);function d(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}var h=function(){return(h=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function y(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(y(arguments[e]));return t}function g(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function x(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}var w=r(6);var k=Object.prototype.toString;function _(t,e){return k.call(t)==="[object "+e+"]"}function F(t){return _(t,"Object")}function E(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function O(t){var e,r;if(F(t)){var n={};try{for(var i=g(Object.keys(t)),o=i.next();!o.done;o=i.next()){var a=o.value;void 0!==t[a]&&(n[a]=O(t[a]))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n}return Array.isArray(t)?t.map(O):t}function j(){var t=Object(w.a)(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var r=new Uint16Array(8);e.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var n=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return n(r[0])+n(r[1])+n(r[2])+n(r[3])+n(r[4])+n(r[5])+n(r[6])+n(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}var S,T=r(72),P="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,A=Object(w.a)(),C=["debug","info","warn","error","log","assert"];function D(t){var e=Object(w.a)();if(!("console"in e))return t();var r=e.console,n={};C.forEach((function(t){var i=r[t]&&r[t].__sentry_original__;t in e.console&&i&&(n[t]=r[t],r[t]=i)}));try{return t()}finally{Object.keys(n).forEach((function(t){r[t]=n[t]}))}}function I(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return P?C.forEach((function(r){e[r]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t&&D((function(){var t;(t=A.console)[r].apply(t,x(["Sentry Logger ["+r+"]:"],e))}))}})):C.forEach((function(t){e[t]=function(){}})),e}S=P?Object(w.b)("logger",I):I();var L=r(11),N="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var z=function(){function t(t){var e=this;this._state=0,this._handlers=[],this._resolve=function(t){e._setResult(1,t)},this._reject=function(t){e._setResult(2,t)},this._setResult=function(t,r){0===e._state&&(E(r)?r.then(e._resolve,e._reject):(e._state=t,e._value=r,e._executeHandlers()))},this._executeHandlers=function(){if(0!==e._state){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t[0]||(1===e._state&&t[1](e._value),2===e._state&&t[2](e._value),t[0]=!0)}))}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return t.prototype.then=function(e,r){var n=this;return new t((function(t,i){n._handlers.push([!1,function(r){if(e)try{t(e(r))}catch(t){i(t)}else t(r)},function(e){if(r)try{t(r(e))}catch(t){i(t)}else i(e)}]),n._executeHandlers()}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var r=this;return new t((function(t,n){var i,o;return r.then((function(t){o=!1,i=t,e&&e()}),(function(t){o=!0,i=t,e&&e()})).then((function(){o?n(i):t(i)}))}))},t}(),B=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return t.clone=function(e){var r=new t;return e&&(r._breadcrumbs=v(e._breadcrumbs),r._tags=h({},e._tags),r._extra=h({},e._extra),r._contexts=h({},e._contexts),r._user=e._user,r._level=e._level,r._span=e._span,r._session=e._session,r._transactionName=e._transactionName,r._fingerprint=e._fingerprint,r._eventProcessors=v(e._eventProcessors),r._requestSession=e._requestSession),r},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=h(h({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var r;return this._tags=h(h({},this._tags),((r={})[t]=e,r)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=h(h({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var r;return this._extra=h(h({},this._extra),((r={})[t]=e,r)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var r;return null===e?delete this._contexts[t]:this._contexts=h(h({},this._contexts),((r={})[t]=e,r)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var r=e(this);return r instanceof t?r:this}return e instanceof t?(this._tags=h(h({},this._tags),e._tags),this._extra=h(h({},this._extra),e._extra),this._contexts=h(h({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):F(e)&&(e=e,this._tags=h(h({},this._tags),e.tags),this._extra=h(h({},this._extra),e.extra),this._contexts=h(h({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var r="number"==typeof e?Math.min(e,100):100;if(r<=0)return this;var n=h({timestamp:Object(T.a)()},t);return this._breadcrumbs=v(this._breadcrumbs,[n]).slice(-r),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){if(this._extra&&Object.keys(this._extra).length&&(t.extra=h(h({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=h(h({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=h(h({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=h(h({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=h({trace:this._span.getTraceContext()},t.contexts);var r=this._span.transaction&&this._span.transaction.name;r&&(t.tags=h({transaction:r},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=v(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(v(M(),this._eventProcessors),t,e)},t.prototype.setSDKProcessingMetadata=function(t){return this._sdkProcessingMetadata=h(h({},this._sdkProcessingMetadata),t),this},t.prototype._notifyEventProcessors=function(t,e,r,n){var i=this;return void 0===n&&(n=0),new z((function(o,a){var s=t[n];if(null===e||"function"!=typeof s)o(e);else{var c=s(h({},e),r);E(c)?c.then((function(e){return i._notifyEventProcessors(t,e,r,n+1).then(o)})).then(null,a):i._notifyEventProcessors(t,c,r,n+1).then(o).then(null,a)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function M(){return Object(w.b)("globalEventProcessors",(function(){return[]}))}var R=function(){function t(t){this.errors=0,this.sid=j(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=Object(T.b)();this.timestamp=e,this.started=e,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Object(T.b)(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:j()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return O({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},t}(),$=function(){function t(t,e,r){void 0===e&&(e=new B),void 0===r&&(r=4),this._version=r,this._stack=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=B.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,e){var r=this._lastEventId=e&&e.event_id?e.event_id:j(),n=e;if(!e){var i=void 0;try{throw new Error("Sentry syntheticException")}catch(t){i=t}n={originalException:t,syntheticException:i}}return this._invokeClient("captureException",t,h(h({},n),{event_id:r})),r},t.prototype.captureMessage=function(t,e,r){var n=this._lastEventId=r&&r.event_id?r.event_id:j(),i=r;if(!r){var o=void 0;try{throw new Error(t)}catch(t){o=t}i={originalException:t,syntheticException:o}}return this._invokeClient("captureMessage",t,e,h(h({},i),{event_id:n})),n},t.prototype.captureEvent=function(t,e){var r=e&&e.event_id?e.event_id:j();return"transaction"!==t.type&&(this._lastEventId=r),this._invokeClient("captureEvent",t,h(h({},e),{event_id:r})),r},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var r=this.getStackTop(),n=r.scope,i=r.client;if(n&&i){var o=i.getOptions&&i.getOptions()||{},a=o.beforeBreadcrumb,s=void 0===a?null:a,c=o.maxBreadcrumbs,u=void 0===c?100:c;if(!(u<=0)){var p=Object(T.a)(),l=h({timestamp:p},t),f=s?D((function(){return s(l,e)})):l;null!==f&&n.addBreadcrumb(f,u)}}},t.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},t.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},t.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},t.prototype.setTag=function(t,e){var r=this.getScope();r&&r.setTag(t,e)},t.prototype.setExtra=function(t,e){var r=this.getScope();r&&r.setExtra(t,e)},t.prototype.setContext=function(t,e){var r=this.getScope();r&&r.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop(),r=e.scope,n=e.client;r&&n&&t(r)},t.prototype.run=function(t){var e=q(this);try{t(this)}finally{q(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return N&&S.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},t.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var t=this.getStackTop(),e=t&&t.scope,r=e&&e.getSession();r&&r.close(),this._sendSessionUpdate(),e&&e.setSession()},t.prototype.startSession=function(t){var e=this.getStackTop(),r=e.scope,n=e.client,i=n&&n.getOptions()||{},o=i.release,a=i.environment,s=(Object(w.a)().navigator||{}).userAgent,c=new R(h(h(h({release:o,environment:a},r&&{user:r.getUser()}),s&&{userAgent:s}),t));if(r){var u=r.getSession&&r.getSession();u&&"ok"===u.status&&u.update({status:"exited"}),this.endSession(),r.setSession(c)}return c},t.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),e=t.scope,r=t.client;if(e){var n=e.getSession&&e.getSession();n&&r&&r.captureSession&&r.captureSession(n)}},t.prototype._invokeClient=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=this.getStackTop(),o=i.scope,a=i.client;a&&a[t]&&(e=a)[t].apply(e,v(r,[o]))},t.prototype._callExtensionMethod=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=U(),i=n.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[t])return i.extensions[t].apply(this,e);N&&S.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function U(){var t=Object(w.a)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function q(t){var e=U(),r=Z(e);return H(e,t),r}function V(){var t=U();return G(t)&&!Z(t).isOlderThan(4)||H(t,new $),Object(L.b)()?function(t){try{var e=U().__SENTRY__,r=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!r)return Z(t);if(!G(r)||Z(r).isOlderThan(4)){var n=Z(t).getStackTop();H(r,new $(n.client,B.clone(n.scope)))}return Z(r)}catch(e){return Z(t)}}(t):Z(t)}function G(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Z(t){return Object(w.b)("hub",(function(){return new $}),t)}function H(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}function W(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=V();if(n&&n[t])return n[t].apply(n,m(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function Y(t,e){return W("captureException",t,{captureContext:e,originalException:t,syntheticException:new Error("Sentry syntheticException")})}function Q(t){W("withScope",t)}var K,J={urls:{processUrl:"https://process.filestackapi.com",fileApiUrl:"https://www.filestackapi.com/api/file",uploadApiUrl:"https://upload.filestackapi.com",cloudApiUrl:"https://cloud.filestackapi.com",cdnUrl:"https://cdn.filestackcontent.com",pickerUrl:"https://static.filestackapi.com/picker/".concat("1.27.3","/picker.js")}};!function(t){t.VALIDATION="validation",t.REQUEST="request",t.ABORTED="aborted",t.OTHER="other"}(K||(K={}));var X=function(t){function e(r,n,i){var o=t.call(this,r)||this;return Object.setPrototypeOf(o,e.prototype),o.details=n,o.type=i,o}return Object(p.c)(e,t),e}(Error),tt={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Transformations",description:"Filestack transformations parameters",type:"object",additionalProperties:!1,properties:{flip:{type:"boolean",additionalProperties:!1},auto_image:{type:"boolean",additionalProperties:!1},no_metadata:{type:"boolean",additionalProperties:!1},compress:{additionalProperties:!1,oneOf:[{type:"boolean"},{type:"object",properties:{metadata:{type:"boolean",default:!1}}}]},flop:{type:"boolean",additionalProperties:!1},enhance:{default:!0,oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{preset:{type:"string",enum:["auto","vivid","beautify","beautify_plus","fix_dark","fix_noise","fix_tint","outdoor","fireworks"]}}}]},redeye:{type:"boolean",additionalProperties:!1},monochrome:{type:"boolean",additionalProperties:!1},negative:{type:"boolean",additionalProperties:!1},tags:{type:"boolean",additionalProperties:!1},sfw:{type:"boolean",additionalProperties:!1},imagesize:{type:"boolean",additionalProperties:!1},smart_crop:{width:{type:"integer",minimum:0,maximum:1e4},height:{type:"integer",minimum:0,maximum:1e4},mode:{type:"string",default:"auto",enum:["face","auto"]}},animate:{type:"object",properties:{delay:{type:"integer",minimum:0,maximum:1e4,default:1e3},loop:{type:"integer",minimum:0,maximum:1e3,default:0},width:{type:"integer",minimum:1,maximum:1800},height:{type:"integer",minimum:1,maximum:1800},fit:{type:"string",default:"clip",enum:["clip","scale","crop"]},background:{$ref:"colorDef",default:"transparent"},align:{$ref:"positionDef",default:"center"}}},metadata:{type:"object",params:{type:"array",items:{type:"string",enum:["filename","mimetype","size","width","height","writeable","path","container","cloud","exif","source_url","md5","sha256","sha1","sha512"]},minItems:0,uniqueItems:!0,additionalItems:!1},additionalProperties:!1},resize:{type:"object",properties:{width:{type:"number",minimum:0,maximum:1e4},height:{type:"number",minimum:0,maximum:1e4},fit:{type:"string",enum:["clip","crop","scale","max"],default:"clip"},align:{$ref:"positionDef",default:"center"}},additionalProperties:!1,anyOf:[{required:["width"]},{required:["height"]}]},crop:{type:"object",properties:{dim:{type:"array",additionalItems:!1,minItems:4,items:[{type:"integer",minimum:0,maximum:1e5},{type:"integer",minimum:0,maximum:1e5},{type:"integer",minimum:1,maximum:1e5},{type:"integer",minimum:1,maximum:1e5}]}},required:["dim"]},rotate:{type:"object",properties:{deg:{oneOf:[{type:"string",enum:["exif"]},{type:"number",minimum:0,maximum:359}]},exif:{type:"boolean"},background:{$ref:"colorDef",default:"FFFFFFFF"}},additionalProperties:!1},detect_faces:{oneOf:[{type:"boolean"},{type:"object",properties:{maxsize:{type:"number",minimum:0,maximum:1e4,default:.35},minsize:{type:"number",minimum:0,maximum:1e4,default:.35},export:{type:"boolean"},color:{$ref:"colorDef",default:"000000FF"}},additionalProperties:!1}]},crop_faces:{oneOf:[{type:"boolean"},{type:"object",properties:{faces:{default:1,$ref:"facesDef"},width:{type:"number",minimum:1,maximum:1e4},height:{type:"number",minimum:1,maximum:1e4},maxsize:{type:"number",minimum:0,maximum:1e4,default:.35},minsize:{type:"number",minimum:0,maximum:1e4,default:.35},buffer:{type:"integer",minimum:0,maximum:1e4},mode:{type:"string",enum:["crop","thumb","fill"],default:"thumb"}},additionalProperties:!1}]},pixelate_faces:{oneOf:[{type:"boolean"},{type:"object",properties:{faces:{$ref:"facesDef",default:"all"},maxsize:{type:"number",minimum:0,maximum:1e4,default:.35},minsize:{type:"number",minimum:0,maximum:1e4,default:.35},buffer:{type:"integer",minimum:0,maximum:1e4},amount:{type:"integer",minimum:2,maximum:100,default:10},blur:{type:"number",minimum:0,maximum:20,default:4},type:{type:"string",enum:["rect","oval"],default:"rect"}},additionalProperties:!1}]},blur_faces:{oneOf:[{type:"boolean"},{type:"object",properties:{faces:{$ref:"facesDef",default:"all"},maxsize:{type:"number",minimum:0,maximum:1e4,default:.35},minsize:{type:"number",minimum:0,maximum:1e4,default:.35},buffer:{type:"integer",minimum:0,maximum:1e4},amount:{type:"number",minimum:0,maximum:10,default:10},blur:{type:"number",minimum:0,maximum:20,default:4},type:{type:"string",enum:["rect","oval"],default:"rect"}},additionalProperties:!1}]},rounded_corners:{oneOf:[{type:"boolean"},{type:"object",properties:{radius:{oneOf:[{type:"integer",minimum:1,maximum:1e4},{type:"string",enum:["max"]}]},blur:{type:"number",minimum:0,maximum:20,default:.3},background:{$ref:"colorDef"}},additionalProperties:!1}]},vignette:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:0,maximum:100,default:20},blurmode:{type:"string",enum:["gaussian","linear"],default:"gaussian"},background:{$ref:"colorDef"}},additionalProperties:!1}]},polaroid:{oneOf:[{type:"boolean"},{type:"object",properties:{rotate:{type:"integer",minimum:0,maximum:359},color:{$ref:"colorDef",default:"snow"},background:{$ref:"colorDef"}},additionalProperties:!1}]},torn_edges:{oneOf:[{type:"boolean"},{type:"object",properties:{spread:{type:"array",additionalItems:!1,minItems:2,items:[{type:"integer",minimum:1,maximum:1e4,default:1},{type:"integer",minimum:1,maximum:1e4,default:10}]},background:{$ref:"colorDef"}},additionalProperties:!1}]},shadow:{oneOf:[{type:"boolean"},{type:"object",properties:{blur:{type:"number",minimum:0,maximum:20,default:100},opacity:{type:"integer",minimum:0,maximum:100,default:60},vector:{type:"array",additionalItems:!1,minItems:2,items:[{type:"integer",minimum:-1e3,maximum:1e3,default:4},{type:"integer",minimum:-1e3,maximum:1e3,default:4}]},color:{$ref:"colorDef"},background:{$ref:"colorDef"}},additionalProperties:!1}]},circle:{oneOf:[{type:"boolean"},{type:"object",properties:{background:{$ref:"colorDef"}},additionalProperties:!1}]},border:{oneOf:[{type:"boolean"},{type:"object",properties:{color:{$ref:"colorDef"},background:{$ref:"colorDef"},width:{type:"integer",minimum:0,maximum:1e3}},additionalProperties:!1}]},sharpen:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:0,maximum:20,default:2}},additionalProperties:!1}]},blur:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:0,maximum:20,default:2}},additionalProperties:!1}]},blackwhite:{oneOf:[{type:"boolean"},{type:"object",properties:{threshold:{type:"integer",minimum:0,maximum:100,default:50}},additionalProperties:!1}]},sepia:{oneOf:[{type:"boolean"},{type:"object",properties:{tone:{type:"integer",minimum:0,maximum:100,default:80}},additionalProperties:!1}]},pixelate:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:2,maximum:100,default:2}},additionalProperties:!1}]},oil_paint:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:2,maximum:100,default:2}},additionalProperties:!1}]},modulate:{oneOf:[{type:"boolean"},{type:"object",properties:{brightness:{type:"integer",minimum:0,maximum:1e4,default:100},saturation:{type:"integer",minimum:0,maximum:1e4,default:100},hue:{type:"integer",minimum:0,maximum:359,default:0}},additionalProperties:!1}]},ascii:{oneOf:[{type:"boolean"},{type:"object",properties:{foreground:{$ref:"colorDef",default:"000000FF"},background:{$ref:"colorDef",default:"FFFFFFFF"},colored:{type:"boolean",default:!1},size:{type:"integer",minimum:10,maximum:100,default:100},reverse:{type:"boolean",default:!1}},additionalProperties:!1}]},collage:{type:"object",properties:{files:{type:"array",minItems:1,items:[{type:"string"}]},margin:{type:"integer",minimum:1,maximum:100,default:10},width:{type:"integer",minimum:0,maximum:1e4},height:{type:"integer",minimum:0,maximum:1e4},color:{$ref:"colorDef",default:"FFFFFFFF"},fit:{type:"string",enum:["auto","crop"]},autorotate:{type:"boolean",default:!1}},required:["width","height","files"],additionalProperties:!1},urlscreenshot:{oneOf:[{type:"boolean"},{type:"object",properties:{agent:{type:"string",enum:["desktop","mobile"],default:"desktop"},width:{type:"integer",minimum:1,maximum:1920,default:1024},height:{type:"integer",minimum:1,maximum:8e3,default:768},mode:{type:"string",enum:["all","window"],default:"all"},delay:{type:"integer",minimum:0,maximum:2e4,default:1e3},orientation:{type:"string",enum:["portrait","landscape"],default:"portrait"},device:{type:"string",default:""}},additionalProperties:!1}]},upscale:{oneOf:[{type:"boolean"},{type:"object",properties:{noise:{type:"string",enum:["none","low","medium","high"],default:"none"},upscale:{type:"boolean",default:!0},style:{type:"string",enum:["artwork","photo"],default:"photo"}},additionalProperties:!1}]},output:{type:"object",additionalProperties:!1,properties:{format:{type:"string",enum:["doc","docx","html","jpg","odp","ods","odt","pjpg","pdf","png","ppt","pptx","svg","txt","webp","xls","xlsx"]},page:{type:"integer",minimum:1,maximum:99999},density:{type:"integer",minimum:1,maximum:500},compress:{type:"boolean"},quality:{oneOf:[{type:"string",enum:["input"]},{type:"integer",minimum:1,maximum:100,default:95}]},secure:{type:"boolean",default:!1},docinfo:{type:"boolean",default:!1},strip:{type:"boolean",default:!1},colorspace:{type:"string",enum:["rgb","cmyk","input"],default:"rgb"},background:{$ref:"colorDef"},pageformat:{type:"string",enum:["a2","a3","a4","a5","b4","b5","letter","legal","tabloid"]},pageorientation:{type:"string",enum:["landscape","portrait"]}}},pjpg:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{quality:{type:"integer",minimum:0,maximum:100},metadata:{type:"boolean",default:!1}}}]},quality:{type:"object",additionalProperties:!1,properties:{value:{type:"integer",minimum:1,maximum:100}}},cache:{oneOf:[{type:"boolean"},{type:"object",properties:{expiry:{type:"integer"}}}]},video_convert:{type:"object",additionalProperties:!1,properties:{width:{type:"integer",minimum:1,maximum:4096},height:{type:"integer",minimum:1,maximum:4096},preset:{type:"string"},force:{type:"boolean"},title:{type:"string"},extname:{type:"string"},upscale:{type:"boolean"},aspect_mode:{type:"string",enum:["letterbox","pad","crop","preserve","constrain"],default:"letterbox"},audio_sample_rate:{type:"integer",minimum:1,maximum:99999},two_pass:{type:"boolean"},video_bitrate:{type:"integer",minimum:1,maximum:5e3},fps:{type:"integer",minimum:1,maximum:300},keyframe_interval:{type:"integer",minimum:250,maximum:250},audio_bitrate:{type:"integer",minimum:1,maximum:999},audio_codec:{type:"string"},audio_channels:{type:"integer",minimum:1,maximum:12},clip_length:{type:"string",pattern:"^([0-1]?\\d|2[0-3])(?::([0-5]?\\d))?(?::([0-5]?\\d))?$"},clip_offset:{type:"string",pattern:"^([0-1]?\\d|2[0-3])(?::([0-5]?\\d))?(?::([0-5]?\\d))?$"},watermark_url:{type:"string"},watermark_top:{type:"integer",minimum:0,maximum:9999},watermark_right:{type:"integer",minimum:0,maximum:9999},watermark_bottom:{type:"integer",minimum:0,maximum:9999},watermark_left:{type:"integer",minimum:0,maximum:9999},frame_count:{type:"integer",minimum:1,maximum:1,default:1},filename:{type:"string"},location:{$ref:"locationsDef"},path:{type:"string"},container:{type:"string"},access:{type:"string",enum:["public","private"],default:"public"}}},store:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{filename:{type:"string"},location:{$ref:"locationsDef"},path:{type:"string"},container:{type:"string"},region:{$ref:"regionsDef"},access:{type:"string",enum:["public","private"],default:"private"},base64decode:{type:"boolean"},workflows:{$ref:"workflowsDef"}}}]},watermark:{type:"object",properties:{file:{type:"string"},size:{type:"number",minimum:0,maximum:500},position:{$ref:"positionDef"}},required:["file"],additionalProperties:!1},partial_blur:{type:"object",properties:{objects:{$ref:"objectsDef"},amount:{type:"number",minimum:0,maximum:20},blur:{type:"number",minimum:0,maximum:20},type:{type:"string",enum:["rect","oval"]}},required:["objects"]},partial_pixelate:{type:"object",properties:{objects:{$ref:"objectsDef"},amount:{type:"number",minimum:2,maximum:100},blur:{type:"number",minimum:0,maximum:20},type:{type:"string",enum:["rect","oval"]}},required:["objects"]},security:{type:"object",additionalProperties:!1,properties:{policy:{type:"string"},signature:{type:"string"}},required:["policy","signature"]},pdfinfo:{oneOf:[{type:"boolean"},{type:"object",properties:{colorinfo:{type:"boolean"}}}]},pdfconvert:{type:"object",additionalProperties:!1,properties:{pageorientation:{type:"string",enum:["portrait","landscape"]},pageformat:{$ref:"pageFormatDef"},pages:{$ref:"pageRangeDef"}},anyOf:[{required:["pageorientation"]},{required:["pageformat"]},{required:["pages"]}]},fallback:{type:"object",additionalProperties:!1,properties:{handle:{type:"string"},cache:{type:"integer",minimum:1,maximum:31536e3}},required:["handle"]},zip:{type:"string"},minify_css:{type:"object",additionalProperties:!1,properties:{gzip:{type:"boolean"},level:{type:"number",enum:[1,2]}}},minify_js:{type:"object",additionalProperties:!1,properties:{gzip:{type:"boolean"},use_babel_polyfill:{type:"boolean"},keep_fn_name:{type:"boolean"},keep_class_name:{type:"boolean"},mangle:{type:"boolean"},merge_vars:{type:"boolean"},remove_console:{type:"boolean"},remove_undefined:{type:"boolean"},targets:{type:"string"}}}}},et=r(13),rt={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack",description:"Filestack common definitions",type:"object",additionalProperties:!1,definitions:{workflowsDef:{id:"/workflowsDef",type:"array",additionalItems:!1,minItems:1,maxItems:20,items:[{oneOf:[{type:"string"},{type:"object",additionalProperties:!1,properties:{id:{type:"string"}}}]}]},securityCallDef:{id:"/securityCallDef",oneOf:[{additionalProperties:!1,type:"string",enum:["pick","read","stat","write","writeUrl","store","convert","remove","exif","runWorkflow"]},{type:"array",additionalProperties:!1,items:[{minItems:1,maxItems:10,type:"string",additionalProperties:!1,enum:["pick","read","stat","write","writeUrl","store","convert","remove","exif","runWorkflow"]}]}]},regionsDef:{id:"/regionsDef",type:"string"},locationsDef:{id:"/locationsDef",type:"string",enum:["s3","S3","rackspace","gcs","azure","dropbox"]},colorDef:{id:"colorDef",oneOf:[{type:"string",pattern:"^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"},{type:"string",enum:["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fractal","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray0","gray1","gray2","gray3","gray4","gray5","gray6","gray7","gray8","gray9","gray10","gray11","gray12","gray13","gray14","gray15","gray16","gray17","gray18","gray19","gray20","gray21","gray22","gray23","gray24","gray25","gray26","gray27","gray28","gray29","gray30","gray31","gray32","gray33","gray34","gray35","gray36","gray37","gray38","gray39","gray40","gray41","gray42","gray43","gray44","gray45","gray46","gray47","gray48","gray49","gray50","gray51","gray52","gray53","gray54","gray55","gray56","gray57","gray58","gray59","gray60","gray61","gray62","gray63","gray64","gray65","gray66","gray67","gray68","gray69","gray70","gray71","gray72","gray73","gray74","gray75","gray76","gray77","gray78","gray79","gray80","gray81","gray82","gray83","gray84","gray85","gray86","gray87","gray88","gray89","gray90","gray91","gray92","gray93","gray94","gray95","gray96","gray97","gray98","gray99","gray100","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","none","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","transparent"]}]},pageFormatDef:{id:"/pageFormatDef",type:"string",enum:["a2","a3","a4","a5","b4","b5","letter","legal","tabloid"]},pageRangeDef:{id:"/pageRangeDef",type:"array",uniqueItems:!0,items:[{oneOf:[{type:"integer",minimum:1},{type:"string",pattern:"^(\\d+(?:-\\d+)?)$|^(-\\d+)$|^(\\d+-)$",errorMessage:'Param should be provided in one of the following formats: "1,2,3,5", "1-3", "1-", "-2" '}]}]},facesDef:{id:"/facesDef",oneOf:[{type:"string",enum:["all"]},{type:"integer",minimum:1,maximum:1e3},{type:"array",uniqueItems:!0,items:[{type:"integer",minimum:1,maximum:1e3}]}]},objectsDef:{id:"/objectsDef",type:"array",minItems:1,maxItems:50,items:[{type:"array",additionalItems:!1,minItems:4,items:[{type:"integer",minimum:0,maximum:1e4},{type:"integer",minimum:0,maximum:1e4},{type:"integer",minimum:1,maximum:1e4},{type:"integer",minimum:1,maximum:1e4}]}]},positionDef:{id:"/positionDef",default:["middle","center"],oneOf:[{type:"string",enum:["top","middle","bottom","left","center","right","faces"]},{type:"array",uniqueItems:!0,additionalItems:!1,minItems:2,maxItems:2,default:["middle","center"],items:[{type:"string",enum:["top","middle","bottom"]},{type:"string",enum:["left","center","right"]}]}]}}},nt=new et.Validator;et.Validator.prototype.customFormats.callback=function(t){return"function"==typeof t},et.Validator.prototype.customFormats.HTMLContainer=function(t){return"string"==typeof t||t.toString&&t.toString().indexOf("HTML")>-1};var it=function(t){return function(e){return nt.addSchema(rt),nt.validate(e,t)}},ot=r(1),at=r(3),st=r.n(at);function ct(t){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ut,pt,lt,ft,dt,mt,ht,yt,vt,gt,bt,xt,wt,kt,_t,Ft,Et,Ot,jt,St=st()("fs:filelink");!function(t){t.left="left",t.right="right",t.center="center",t.bottom="bottom",t.top="top",t.faces="faces",t.middle="middle"}(ut||(ut={})),function(t){t.clip="clip",t.crop="crop",t.scale="scale",t.max="max"}(pt||(pt={})),function(t){t.linear="linear",t.gaussian="gaussian"}(lt||(lt={})),function(t){t.oval="oval",t.rect="rect"}(ft||(ft={})),function(t){t.none="none",t.low="low",t.medium="medium",t.high="high"}(dt||(dt={})),function(t){t.artwork="artwork",t.photo="photo"}(mt||(mt={})),function(t){t.RGB="RGB",t.CMYK="CMYK",t.Input="Input"}(ht||(ht={})),function(t){t.thumb="thumb",t.crop="crop",t.fill="fill"}(yt||(yt={})),function(t){t.top="top",t.middle="middle",t.bottom="bottom",t.left="left",t.center="center",t.right="right"}(vt||(vt={})),function(t){t.face="face",t.auto="auto"}(gt||(gt={})),function(t){t.libmp3lame="libmp3lame",t.libvorbis="libvorbis",t.libfdk_aac="libfdk_aac",t.dib_ac3="dib_ac3",t.pcm_s16le="pcm_s16le",t.mp2="mp2",t.ac3="ac3",t.eac3="eac3"}(bt||(bt={})),function(t){t.h264="h264",t.h264_hi="h264.hi",t.webm="webm",t["webm-hi"]="webm.hi",t.ogg="ogg",t["ogg-hi"]="ogg.hi",t["hls-variant"]="hls.variant",t.mp3="mp3",t.oga="oga",t.m4a="m4a",t.aac="aac",t.hls="hls.variant.audio"}(xt||(xt={})),function(t){t.desktop="desktop",t.mobile="mobile"}(wt||(wt={})),function(t){t.all="all",t.window="window"}(kt||(kt={})),function(t){t.portrait="portrait",t.landscape="landscape"}(_t||(_t={})),function(t){t.s3="s3",t.azure="azure",t.gcs="gcs",t.rackspace="rackspace",t.dropbox="dropbox"}(Ft||(Ft={})),function(t){t.private="private",t.public="public"}(Et||(Et={})),function(t){t.preserve="preserve",t.constrain="constrain",t.letterbox="letterbox",t.pad="pad",t.crop="crop"}(Ot||(Ot={})),function(t){t.auto="auto",t.vivid="vivid",t.beautify="beautify",t.beautifyPlus="beautify_plus",t.fixDark="fix_dark",t.fixNoise="fix_noise",t.fixTint="fix_tint",t.outdor="outdoor",t.fireworks="fireworks"}(jt||(jt={}));var Tt=/^[\w\-]{20}|wf:\/\/[\w\-\/]{106}$/,Pt=function(){function t(t,e){this.transforms=[],this.b64=!1,this.useValidator=!0,this.arrayToObject=function(t,e,r){return void 0===t&&(t=[]),t.reduce((function(t,n){return t[n[e]]=n[r],t}),{})},this.apikey=e,this.setSource(t)}return t.prototype.setBase64=function(t){return this.b64=t,this},t.prototype.setUseValidator=function(t){return this.useValidator=t,this},t.prototype.setCname=function(t){return this.cname=t,this},t.prototype.setCustomDomain=function(t){return this.customDomain=t,this},t.prototype.setSource=function(t){this.source=t;var e=this.isSourceExternal();if(St("Source ".concat(t," - isExternal? ").concat(e)),e&&!this.apikey)throw new X("External sources requires apikey to handle transforms");if(!e&&"string"==typeof this.source&&!Tt.test(this.source)&&-1===this.source.indexOf("filestackcontent"))throw new X("Invalid filestack source provided")},t.prototype.getValidationSchema=function(){return tt},t.prototype.getTransformations=function(){return this.useValidator&&this.validateTasks(this.transforms),this.transforms},t.prototype.toString=function(){var t=[];t.push(this.getCdnHost()),this.useValidator&&this.validateTasks(this.transforms),this.apikey&&t.push(this.apikey);var e=this.generateTransformString(),r=this.source;return this.b64?(this.transforms.length>0&&(e="b64/".concat(Object(ot.b64)(JSON.stringify(this.transforms),!0))),Array.isArray(r)&&(r=this.arrayToString(r)),r="b64://".concat(Object(ot.b64)(r,!0))):r=Array.isArray(r)?this.arrayToString(r):this.escapeValue(r),e.length&&t.push(e),t.push(r),t.join("/")},t.prototype.addTask=function(t,e){if(st()("Add task ".concat(t," with params %O"),e),"cache"!==t&&"boolean"==typeof e){if(!e)return this;e=void 0}else"object"!==ct(e)||Object.keys(e).length||(e=void 0);return this.transforms.push({name:t,params:e}),this},t.prototype.getTasks=function(){return this.transforms},t.prototype.reset=function(){return this.transforms=[],this},t.prototype.autoImage=function(){return this.addTask("auto_image",!0)},t.prototype.flip=function(){return this.addTask("flip",!0)},t.prototype.flop=function(){return this.addTask("flop",!0)},t.prototype.imagesize=function(){return this.addTask("imagesize",!0)},t.prototype.noMetadata=function(){return this.addTask("no_metadata",!0)},t.prototype.pjpg=function(t){return this.addTask("pjpg",t)},t.prototype.smartCrop=function(t){return this.addTask("smart_crop",t)},t.prototype.watermark=function(t){return this.addTask("watermark",t)},t.prototype.enhance=function(t){return this.addTask("enhance",t||!0)},t.prototype.redeye=function(){return this.addTask("redeye",!0)},t.prototype.monochrome=function(){return this.addTask("monochrome",!0)},t.prototype.compress=function(t){return this.addTask("compress",t||!0)},t.prototype.negative=function(){return this.addTask("negative",!0)},t.prototype.tags=function(){return this.addTask("tags",!0)},t.prototype.sfw=function(){return this.addTask("sfw",!0)},t.prototype.animate=function(t){return this.addTask("animate",t)},t.prototype.store=function(t){return this.addTask("store",t)},t.prototype.cache=function(t){return this.addTask("cache",t)},t.prototype.resize=function(t){return this.addTask("resize",t)},t.prototype.crop=function(t){return this.addTask("crop",t)},t.prototype.rotate=function(t){return this.addTask("rotate",t)},t.prototype.detectFaces=function(t){return this.addTask("detect_faces",t)},t.prototype.cropFaces=function(t){return this.addTask("crop_faces",t)},t.prototype.pixelateFaces=function(t){return this.addTask("pixelate_faces",t)},t.prototype.blurFaces=function(t){return this.addTask("blur_faces",t)},t.prototype.roundedCorners=function(t){return this.addTask("rounded_corners",t)},t.prototype.polaroid=function(t){return this.addTask("polaroid",t)},t.prototype.vignette=function(t){return this.addTask("vignette",t)},t.prototype.tornEdges=function(t){return this.addTask("torn_edges",t)},t.prototype.shadow=function(t){return this.addTask("shadow",t)},t.prototype.circle=function(t){return this.addTask("circle",t)},t.prototype.border=function(t){return this.addTask("border",t)},t.prototype.sharpen=function(t){return this.addTask("sharpen",t)},t.prototype.blur=function(t){return this.addTask("blur",t)},t.prototype.blackwhite=function(t){return this.addTask("blackwhite",t)},t.prototype.sepia=function(t){return this.addTask("sepia",t)},t.prototype.pixelate=function(t){return this.addTask("pixelate",t)},t.prototype.oilPaint=function(t){return this.addTask("oil_paint",t)},t.prototype.modulate=function(t){return this.addTask("modulate",t)},t.prototype.partialPixelate=function(t){return this.addTask("partial_pixelate",t)},t.prototype.partialBlur=function(t){return this.addTask("partial_blur",t)},t.prototype.collage=function(t){return this.addTask("collage",t)},t.prototype.upscale=function(t){return this.addTask("upscale",t)},t.prototype.ascii=function(t){return this.addTask("ascii",t)},t.prototype.quality=function(t){return this.addTask("quality",t)},t.prototype.security=function(t){return this.addTask("security",t)},t.prototype.output=function(t){return this.addTask("output",t)},t.prototype.videoConvert=function(t){return this.addTask("video_convert",t)},t.prototype.URLScreenshot=function(t){return this.addTask("urlscreenshot",t)},t.prototype.PDFInfo=function(t){return this.addTask("pdfinfo",t)},t.prototype.PDFConvert=function(t){return this.addTask("pdfconvert",t)},t.prototype.fallback=function(t){return this.addTask("fallback",t)},t.prototype.zip=function(){return this.addTask("zip",!0)},t.prototype.minifyCss=function(t){return this.addTask("minify_css",t)},t.prototype.minifyJs=function(t){return this.addTask("minify_js",t)},t.prototype.isSourceExternal=function(){if(!this.source)throw new X("Source not Set");var t=Array.isArray(this.source)?this.source:[this.source];for(var e in t)if(t.hasOwnProperty(e)&&(0===t[e].indexOf("src:")||0===t[e].indexOf("http")&&-1===t[e].indexOf("filestackcontent")))return!0;return!1},t.prototype.validateTasks=function(e){var r=t.validator(this.arrayToObject(e,"name","params"));if(r.errors.length)throw new X("Params validation error",r.errors,K.VALIDATION)},t.prototype.getCdnHost=function(){var t=Object.assign({},J.urls);return this.customDomain&&(t.cdnUrl=this.customDomain),(t=Object(ot.resolveHost)(t,this.cname)).cdnUrl},t.prototype.generateTransformString=function(){var t=this,e=[];return this.transforms.forEach((function(r){e.push(t.optionToString(r.name,r.params))})),e.join("/")},t.prototype.optionToString=function(t,e){var r=this,n=[];return void 0===e?t:"boolean"==typeof e?e||"cache"!==t?t:"cache=false":(Object.keys(e).forEach((function(t){Array.isArray(e[t])?n.push("".concat(t,":").concat(r.arrayToString(e[t]))):n.push("".concat(t,":").concat(r.escapeValue(e[t])))})),"".concat(t,"=").concat(n.join(",")))},t.prototype.escapeValue=function(t){return"string"!=typeof t?t:t.indexOf("/")>-1||t.indexOf(",")>-1?'"'.concat(t,'"'):t},t.prototype.arrayToString=function(t){var e=this,r=t.map((function(t){return Array.isArray(t)?e.arrayToString(t):e.escapeValue(t)}));return"[".concat(r,"]")},t.validator=it(tt),t}(),At={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Store",description:"Filestack Store Options",type:"object",additionalProperties:!1,properties:{filename:{oneOf:[{type:"string"},{format:"callback"}]},location:{$ref:"locationsDef"},path:{type:"string"},container:{type:"string"},region:{$ref:"regionsDef"},access:{type:"string",enum:["public","private"],default:"private"},base64decode:{type:"boolean"},workflows:{$ref:"workflowsDef"},disableStorageKey:{type:"boolean"},tags:{type:"object",additionalProperties:{type:"string"}},sanitizer:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{exclude:{type:"array",items:[{type:"string"}]},replacement:{type:"string"}}}]}}},Ct={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Preview",description:"Filestack Preview Options",type:"object",additionalProperties:!1,properties:{id:{type:"string"},css:{type:"string"}}},Dt={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Upload",description:"Filestack Upload Options",type:"object",additionalProperties:!1,properties:{partSize:{type:"integer",minimum:5242880},concurrency:{type:"integer",minimum:1,maximum:20},progressInterval:{type:"integer",minimum:1},retry:{type:"integer",minimum:0,maximum:20},retryFactor:{type:"integer"},retryMaxTime:{type:"integer"},timeout:{type:"integer",minimum:1,maximum:36e5},intelligent:{oneOf:[{type:"boolean"},{type:"string",enum:["fallback"]}]},intelligentChunkSize:{type:"integer"},onProgress:{format:"callback"},onRetry:{format:"callback"},disableIntegrityCheck:{type:"boolean"},tags:{type:"object",maxItems:10,additionalProperties:{type:"string",maxlength:256}}}},It={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Picker",description:"Filestack Picker Options",type:"object",additionalProperties:!1,properties:{allowManualRetry:{type:"boolean"},accept:{additionalProperties:!1,oneOf:[{type:"string"},{type:"array",minItems:1,items:[{type:"string"}]}]},acceptFn:{format:"callback"},websearch:{type:"object",properties:{predefinedText:{type:"string"}}},fromSources:{type:"array",items:{anyOf:[{type:"string",enum:["local_file_system","url","imagesearch","facebook","instagram","googledrive","unsplash","dropbox","webcam","video","audio","box","github","gmail","googlephotos","onedrive","onedriveforbusiness","clouddrive","customsource","tint"]},{type:"object"}]}},container:{format:"HTMLContainer"},cleanupImageExif:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{keepOrientation:{type:"boolean"},keepICCandAPP:{type:"boolean"}}}]},displayMode:{type:"string",enum:["inline","overlay","dropPane"]},concurrency:{type:"integer",minimum:1,maximum:20},supportEmail:{type:"string"},customSourceContainer:{type:"string"},customSourcePath:{type:"string"},customSourceName:{type:"string"},disableStorageKey:{type:"boolean"},disableTransformer:{type:"boolean"},disableThumbnails:{type:"boolean"},exposeOriginalFile:{type:"boolean"},globalDropZone:{type:"boolean"},hideModalWhenUploading:{type:"boolean"},imageDim:{type:"array",minItems:2,maxItems:2,items:[{type:"integer",minimum:1}]},imageMax:{type:"array",minItems:2,maxItems:2,items:[{type:"integer",minimum:1}]},imageMin:{type:"array",minItems:2,maxItems:2,items:[{type:"integer",minimum:1}]},imageMinMaxBlock:{type:"boolean",default:!1},lang:{type:"string",enum:["ca","da","de","en","es","fr","he","it","ja","ko","nl","no","pl","pt","sv","ru","vi","zh","tr","ar"]},minFiles:{type:"integer",minimum:1,maximum:1e6},maxFiles:{type:"integer",minimum:1,maximum:1e6},maxSize:{type:"integer",minimum:1},modalSize:{type:"array",minItems:2,maxItems:2,items:[{type:"integer",minimum:1,maximum:1e6}]},rootId:{type:"string"},startUploadingWhenMaxFilesReached:{type:"boolean"},uploadInBackground:{type:"boolean"},videoResolution:{type:"string"},onCancel:{format:"callback"},onClose:{format:"callback"},onOpen:{format:"callback"},onFileSelected:{format:"callback"},onFileUploadCancel:{format:"callback"},onFileUploadStarted:{format:"callback"},onFileUploadFinished:{format:"callback"},onFileUploadFailed:{format:"callback"},onFileUploadProgress:{format:"callback"},onUploadStarted:{format:"callback"},onUploadDone:{format:"callback"},onFileCropped:{format:"callback"},storeTo:{additionalProperties:!1,type:"object",properties:{filename:{type:"string"},location:{$ref:"locationsDef"},container:{type:"string"},path:{type:"string"},region:{type:"string"},access:{type:"string",enum:["public","private"]},workflows:{$ref:"workflowsDef"}}},viewType:{type:"string",enum:["grid","list"]},transformations:{type:"object",additionalProperties:!1,properties:{circle:{type:"boolean"},rotate:{type:"boolean"},force:{type:"boolean"},crop:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{force:{type:"boolean"},aspectRatio:{type:"number"}}}]}}},customText:{type:"object",patternProperties:{".*":{type:"string"}}},cropFiles:{type:"array",minItems:1},loadCss:{type:"string"},failOverMaxFiles:{type:"boolean"},dropPane:{type:"object",properties:{cropFiles:{type:"array",minItems:1},customText:{type:"string"},disableClick:{type:"boolean"},overlay:{type:"boolean"},showIcon:{type:"boolean"},showProgress:{type:"boolean"},onDragEnter:{format:"callback"},onProgress:{format:"callback"},onDragLeave:{format:"callback"},onDragOver:{format:"callback"},onDrop:{format:"callback"},onSuccess:{format:"callback"},onError:{format:"callback"},onClick:{format:"callback"}}},errorsTimeout:{type:"number",minimum:0},customAuthText:{type:"object",patternProperties:{".*":{additionalProperties:!1,type:"object",required:["top","bottom"],properties:{top:{type:"string"},bottom:{type:"string"}}}}},uploadConfig:{type:"object",additionalProperties:!1,properties:Object(p.a)(Object(p.a)({},Dt.properties),{tags:{type:"object",additionalProperties:{anyOf:[{type:"string"},{format:"callback"}]}}})},useSentryBreadcrumbs:{type:"boolean"},pasteMode:{type:"object",additionalProperties:!1,properties:{pasteToFirstInViewPort:{type:"boolean"},pasteToFirstInstance:{type:"boolean"}}}}},Lt={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Metadata",description:"Filestack Metadata Options",type:"object",additionalProperties:!1,properties:{size:{type:"boolean"},mimetype:{type:"boolean"},filename:{type:"boolean"},width:{type:"boolean"},metadata:{type:"boolean"},height:{type:"boolean"},uploaded:{type:"boolean"},writeable:{type:"boolean"},cloud:{type:"boolean"},sourceUrl:{type:"boolean"},md5:{type:"boolean"},sha1:{type:"boolean"},sha224:{type:"boolean"},sha256:{type:"boolean"},sha384:{type:"boolean"},sha512:{type:"boolean"},location:{type:"boolean"},path:{type:"boolean"},container:{type:"boolean"},exif:{type:"boolean"}}},Nt={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Retrieve",description:"Filestack Retrieve Options",type:"object",additionalProperties:!1,properties:{metadata:{type:"boolean"},head:{type:"boolean"},dl:{type:"boolean"},cache:{type:"boolean"},extension:{type:"string"}}},zt=r(5),Bt=r(12),Mt=st()("fs:request:dispatch"),Rt=function(){function t(t){this.adapter=t}return t.prototype.request=function(t){var e=this;return t.headers=t.headers||{},Mt("Dispatching request %O",t),this.adapter.request(t).catch((function(t){return Mt('Request error "%s": %O',t,t.response),e.retry(t)}))},t.prototype.retry=function(t){var e=this,r=t.config;if(!Object(Bt.a)(t))return Mt("[Retry] Request error is not retriable. Exiting"),Promise.reject(t);if(!r.retry)return Mt("[Retry] Retry config not found. Exiting"),Promise.reject(t);var n=r.retry,i=r.runtime&&r.runtime.retryCount?r.runtime.retryCount:0;if(n.retry&&n.retry<=i)return Mt("[Retry] Retry attempts reached %d. Exiting",i),Promise.reject(t);var o=Math.max(Math.min(n.retryMaxTime,1e3*Math.pow(n.retryFactor,i)),1);return r.runtime=Object(p.a)(Object(p.a)({},r.runtime),{retryCount:i+1}),Mt("[Retry] Retrying request to ".concat(r.url,", count ").concat(i," of ").concat(n.retry," - Delay: ").concat(o)),new Promise((function(t){setTimeout((function(){return t(e.request(r))}),o)}))},t}(),$t=r(55).XhrAdapter,Ut=function(){function t(t){this.defaults=t,this.dispatcher=new Rt(new $t)}return t.getInstance=function(){return t.instance||(t.instance=new t),t.instance},t.prototype.dispatch=function(t){return t.method||(t.method=zt.a.GET),this.dispatcher.request(Object.assign({},this.defaults,t))},t.dispatch=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{url:e}))},t.get=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:zt.a.GET,url:e}))},t.head=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:zt.a.HEAD,url:e}))},t.options=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:zt.a.OPTIONS,url:e}))},t.purge=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:zt.a.PURGE,url:e}))},t.delete=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:zt.a.DELETE,url:e}))},t.post=function(e,r,n){return t.getInstance().dispatch(Object.assign({},n||{},{method:zt.a.POST,url:e,data:r}))},t.put=function(e,r,n){return t.getInstance().dispatch(Object.assign({},n||{},{method:zt.a.PUT,url:e,data:r}))},t.path=function(e,r,n){return t.getInstance().dispatch(Object.assign({},n||{},{method:zt.a.PATH,url:e,data:r}))},t}(),qt=r(2),Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(p.c)(e,t),e.prototype.cancel=function(t){this.emit("cancel",t),this.removeAllListeners()},e}(l.EventEmitter),Gt=function(t,e,r,n){if(!e||"string"!=typeof e)throw new X("A valid Filestack handle is required for remove");if(!(t.policy&&t.signature||n&&n.policy&&n.signature))throw new X("Security policy and signature are required for remove");var i=t.urls.fileApiUrl,o="".concat(i,"/").concat(e),a={key:t.apikey,policy:n&&n.policy||t.policy,signature:n&&n.signature||t.signature};return r&&(a.skip_storage=!0),Ut.delete(o,{filestackHeaders:!1,params:Object(ot.removeEmpty)(a)})};function Zt(t){return(Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ht,Wt,Yt,Qt,Kt,Jt,Xt,te,ee,re,ne,ie,oe,ae,se,ce,ue,pe,le;!function(t){t.left="left",t.right="right",t.center="center",t.bottom="bottom",t.top="top"}(Ht||(Ht={})),function(t){t.left="left",t.right="right",t.center="center",t.bottom="bottom",t.top="top",t.faces="faces"}(Wt||(Wt={})),function(t){t.clip="clip",t.crop="crop",t.scale="scale",t.max="max"}(Yt||(Yt={})),function(t){t.linear="linear",t.gaussian="gaussian"}(Qt||(Qt={})),function(t){t.oval="oval",t.rect="rect"}(Kt||(Kt={})),function(t){t.none="none",t.low="low",t.medium="medium",t.high="high"}(Jt||(Jt={})),function(t){t.artwork="artwork",t.photo="photo"}(Xt||(Xt={})),function(t){t.RGB="RGB",t.CMYK="CMYK",t.Input="Input"}(te||(te={})),function(t){t.thumb="thumb",t.crop="crop",t.fill="fill"}(ee||(ee={})),function(t){t.fit="fit",t.auto="auto"}(re||(re={})),function(t){t.top="top",t.middle="middle",t.bottom="bottom",t.left="left",t.center="center",t.right="right"}(ne||(ne={})),function(t){t.libmp3lame="libmp3lame",t.libvorbis="libvorbis",t.libfdk_aac="libfdk_aac",t.dib_ac3="dib_ac3",t.pcm_s16le="pcm_s16le",t.mp2="mp2",t.ac3="ac3",t.eac3="eac3"}(ie||(ie={})),function(t){t.h264="h264",t.h264_hi="h264.hi",t.webm="webm",t["webm-hi"]="webm.hi",t.ogg="ogg",t["ogg-hi"]="ogg.hi",t["hls-variant"]="hls.variant",t.mp3="mp3",t.oga="oga",t.m4a="m4a",t.aac="aac",t.hls="hls.variant.audio"}(oe||(oe={})),function(t){t.desktop="desktop",t.mobile="mobile"}(ae||(ae={})),function(t){t.all="all",t.window="window"}(se||(se={})),function(t){t.portrait="portrait",t.landscape="landscape"}(ce||(ce={})),function(t){t.s3="s3",t.azure="azure",t.gcs="gcs",t.rackspace="rackspace",t.dropbox="dropbox"}(ue||(ue={})),function(t){t.private="private",t.public="public"}(pe||(pe={})),function(t){t.preserve="preserve",t.constrain="constrain",t.letterbox="letterbox",t.pad="pad",t.crop="crop"}(le||(le={}));var fe=function(t,e,r,n){void 0===r&&(r={}),void 0===n&&(n=!1),r=function t(e){for(var r={},n=Object.keys(e),i=0;i<n.length;i++){var o=n[i].split(/(?=[A-Z])/).join("_").toLowerCase();"object"!==Zt(e[n[i]])||Array.isArray(e[n[i]])?r[o]=e[n[i]]:r[o]=t(e[n[i]])}return r}(r),t.policy&&t.signature&&(r.security={policy:t.policy,signature:t.signature});var i=new Pt(e,t.apikey);return i.setCname(t.cname),i.setBase64(n),Object.keys(r).forEach((function(t){("boolean"!=typeof r[t]||r[t]||"cache"===t)&&i.addTask(t,r[t])})),i.toString()};function de(t){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var me,he=function(){function t(t,e){this._file=t,this._sanitizeOptions=e,this._file.name=Object(ot.sanitizeName)(this._file.name,this._sanitizeOptions)}return Object.defineProperty(t.prototype,"name",{get:function(){return this._file.name},set:function(t){this._file.name=Object(ot.sanitizeName)(t,this._sanitizeOptions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filename",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"customName",{set:function(t){switch(de(t)){case"string":this.name=t;break;case"function":if("string"!=typeof t(this))throw new Error("Name function must return a string. Current return type is ".concat(de(t)));this.name=t(this)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._file.type||"application/octet-stream"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mimetype",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._file.size},enumerable:!1,configurable:!0}),t.prototype.getPartsCount=function(t,e){var r=e?84825604096:63350767616;if(this._file.size>=r){var n=Math.ceil(this._file.size/1e4);return{partsCount:Math.ceil(this._file.size/n),chunkSize:n}}return{partsCount:Math.ceil(this._file.size/t),chunkSize:t}},t.prototype.getPartMetadata=function(t,e){var r=e*t;if(r>this._file.size)throw new Error("Start byte of the part is higher than buffer size");var n=Math.min(r+e,this._file.size);return{partNumber:t,startByte:r,endByte:n,size:n-r}},t.prototype.getPartByMetadata=function(t,e){return void 0===e&&(e=!0),Object(p.b)(this,void 0,void 0,(function(){var r;return Object(p.d)(this,(function(n){switch(n.label){case 0:return[4,this._file.slice(t.startByte,t.endByte)];case 1:return r=n.sent(),[2,Promise.resolve(Object(p.a)(Object(p.a)({},t),{buffer:r,md5:e?Object(ot.md5)(r):void 0}))]}}))}))},t.prototype.getChunkByMetadata=function(t,e,r,n){return void 0===n&&(n=!0),Object(p.b)(this,void 0,void 0,(function(){var i,o,a;return Object(p.d)(this,(function(s){switch(s.label){case 0:return i=t.startByte+e,o=Math.min(i+r,t.endByte),[4,this._file.slice(i,o)];case 1:return a=s.sent(),[2,Promise.resolve(Object(p.a)(Object(p.a)({},t),{buffer:a,md5:n?Object(ot.md5)(a):void 0,size:a.byteLength,startByte:i,endByte:o,offset:e}))]}}))}))},t.prototype.release=function(){this._file.release&&this._file.release()},t.prototype.toJSON=function(){return{name:this.name,status:this.status,type:this.type,size:this.size,url:this.url,handle:this.handle,uploadTags:this.uploadTags}},t}(),ye=/data:([a-zA-Z]*\/[a-zA-Z]*);base64,([^\"]*)/i,ve=function(t,e,r){return new Promise((function(n,i){var o=new FileReader,a=r.slice(t,e);o.onload=function(){return n(o.result)},o.onerror=i,o.readAsArrayBuffer(a)}))},ge=function(t,e){var r,n;if(function(t){return t&&t.file&&t.name}(t)&&(r=t.name,t=t.file),function(t){return t instanceof File}(t))n=t,r=t.name;else if(function(t){if("string"!=typeof t)return!1;t.indexOf("base64")>-1&&(t=t.match(ye).pop());try{return btoa(atob(t))===t}catch(t){return!1}}(t))n=function(t,e){void 0===e&&(e=512);var r="";if(t.indexOf("base64")>-1){var n=t.match(ye);t=n.pop(),r=n[1]}for(var i=atob(t),o=[],a=0;a<i.length;a+=e){for(var s=i.slice(a,a+e),c=new Array(s.length),u=0;u<s.length;u+=1)c[u]=s.charCodeAt(u);o.push(new Uint8Array(c))}return new Blob(o,{type:r})}(t);else{if(!function(t){return"[object Blob]"===t.toString()}(t))return Promise.reject(new X("Unsupported input file type"));n=t}return function(t){return Object(p.b)(void 0,void 0,void 0,(function(){return Object(p.d)(this,(function(e){return File&&FileReader&&Blob?[2,Promise.resolve({slice:function(e,r){return ve(e,r,t)},release:function(){t=null}})]:[2,Promise.reject(new X("The File APIs are not fully supported by your browser"))]}))}))}(n).then((function(t){return Object(p.b)(void 0,void 0,void 0,(function(){var i,o;return Object(p.d)(this,(function(a){switch(a.label){case 0:return i=n.type,4100,n.type&&0!==n.type.length&&"text/plain"!==n.type?[3,3]:(o=ot.getMimetype,[4,t.slice(0,4100)]);case 1:return[4,o.apply(void 0,[a.sent(),r])];case 2:i=a.sent(),a.label=3;case 3:return[2,new he({name:r,size:n.size,type:i,slice:t.slice,release:t.release},e)]}}))}))}))},be=r(31),xe=r.n(be),we=r(9),ke=st()("fs:upload:abstract"),_e=function(t){function e(e,r){void 0===r&&(r=3);var n=t.call(this)||this;return n.storeOptions=e,n.concurrency=r,n.partSize=6291456,n.intelligentChunkSize=Object(ot.isMobile)()?1048576:8388608,n.timeout=3e4,n.uploadMode="default",n.isModeLocked=!1,n.integrityCheck=!0,n.uploadTags=null,n}return Object(p.c)(e,t),e.prototype.setSecurity=function(t){ke("Set security %O",t),this.security=t},e.prototype.setApikey=function(t){ke("Set apikey to ".concat(t)),this.apikey=t},e.prototype.setTimeout=function(t){ke("Set request timeout to ".concat(t)),this.timeout=t},e.prototype.setRetryConfig=function(t){ke("Set retry config to ".concat(t)),this.retryConfig=t},e.prototype.setUrl=function(t){ke("Set upload url to ".concat(t)),this.url=t},e.prototype.setUploadTags=function(t){ke("Set tags to %O",t),this.uploadTags=t},e.prototype.setIntegrityCheck=function(t){this.integrityCheck=t},e.prototype.setUploadMode=function(t,e){void 0===e&&(e=!1),!0!==this.isModeLocked?(this.isModeLocked=e,ke("Set upload mode to ".concat(t)),this.uploadMode=t):ke("Cannot switch mode to ".concat(t,". Locked! Probably mode is not supported at this apikey"))},e.prototype.setPartSize=function(t){if("default"===this.uploadMode){if(ke("Set part size to ".concat(t)),t<5242880)throw new X("Minimum part size is 5MB");this.partSize=t}else ke("Cannot set part size because upload mode is other than default. ")},e.prototype.getPartSize=function(){return this.partSize},e.prototype.setIntelligentChunkSize=function(t){if(ke("Set inteligent chunk size to ".concat(t)),t<32768)throw new X("Minimum intelligent chunk size is ".concat(32768));this.intelligentChunkSize=t},e.prototype.getIntelligentChunkSize=function(){return this.intelligentChunkSize},e.prototype.getUrl=function(){if(!this.url)throw new X("Upload url not set");return this.url},e}(f.a),Fe=st()("fs:upload:s3"),Ee=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.payloads={},n.partsQueue=new xe.a({autoStart:!1,concurrency:n.concurrency}),n.cancelToken=new Vt,n}return Object(p.c)(e,t),e.prototype.pause=function(){this.partsQueue.pause()},e.prototype.resume=function(){this.partsQueue.isPaused&&this.partsQueue.start()},e.prototype.abort=function(t){this.partsQueue.pause(),this.partsQueue.clear(),this.cancelToken.cancel(t||"Aborted by user")},e.prototype.execute=function(){return Object(p.b)(this,void 0,void 0,(function(){var t,e=this;return Object(p.d)(this,(function(r){return t=Object.keys(this.payloads).map((function(t){return new Promise((function(r){return Object(p.b)(e,void 0,void 0,(function(){var e,n;return Object(p.d)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,5,,6]),[4,this.startRequest(t)];case 1:return i.sent(),[4,this.prepareParts(t)];case 2:return i.sent(),[4,this.startPartsQueue(t)];case 3:return i.sent(),[4,this.completeRequest(t)];case 4:return i.sent(),[3,6];case 5:return e=i.sent(),this.emit("error",e),Fe("[".concat(t,"] File upload failed. %O, \nDetails: %O "),e.message,e.details),[3,6];case 6:return(n=this.getPayloadById(t).file).release(),delete this.payloads[t],r(n),[2]}}))}))}))})),[2,Promise.all(t)]}))}))},e.prototype.addFile=function(t){Fe("Add file to queue: \n %o",t);var e="".concat(Object(ot.uniqueId)(15),"_").concat(Object(ot.uniqueTime)());return t.status="Initialized",this.payloads[e]={file:t,parts:[]},e},e.prototype.getUploadUrl=function(t){var e=this.getDefaultFields(t,["location_url"]).location_url;return 0===e.indexOf("http")?e:"https://".concat(e)},e.prototype.getStoreOptions=function(t){var e=Object(p.a)({location:"s3"},this.storeOptions);if(this.storeOptions.disableStorageKey){var r=this.getPayloadById(t);e.path&&"/"!==e.path.substr(-1)&&(e.path="".concat(e.path,"/")),e.path="".concat(e.path?e.path:"/").concat(r.file.name),delete e.disableStorageKey}return e},e.prototype.getDefaultFields=function(t,e,r){void 0===r&&(r=!1);var n=this.getPayloadById(t),i=Object(p.a)(Object(p.a)({},this.security),{apikey:this.apikey,uri:n.uri,location_url:n.location_url,upload_id:n.upload_id,region:n.region});return("intelligent"===this.uploadMode||"fallback"===this.uploadMode&&r)&&(i.fii=!0),Object(p.a)(Object(p.a)({},Object(ot.filterObject)(i,e)),{store:this.getStoreOptions(t)})},e.prototype.getDefaultHeaders=function(t){var e={},r=this.getPayloadById(t);return r.location_region&&(e["Filestack-Upload-Region"]=r.location_region),e},e.prototype.getPayloadById=function(t){return this.payloads[t]},e.prototype.prepareParts=function(t){var e=this.getPayloadById(t).file,r=!1;["intelligent","fallback"].indexOf(this.uploadMode)>-1&&(this.partSize=8388608,r=!0);for(var n=e.getPartsCount(this.partSize,r),i=n.partsCount,o=n.chunkSize,a=[],s=0;s<i;s++)a[s]=Object(p.a)(Object(p.a)({},e.getPartMetadata(s,o)),{offset:0});return this.payloads[t].parts=a,Promise.resolve()},e.prototype.startRequest=function(t){var e=this,r=this.getPayloadById(t);return 0===r.file.size?(this.setPayloadStatus(t,"Failed"),Promise.reject(new X('Invalid file "'.concat(r.file.name,'" size - 0'),{},K.VALIDATION))):(Fe("[".concat(t,"] Make start request")),Ut.post("".concat(this.getUrl(),"/multipart/start"),Object(p.a)({filename:r.file.name,mimetype:r.file.type,size:r.file.size},this.getDefaultFields(t,["apikey","policy","signature","fii"],!0)),{timeout:this.timeout,cancelToken:this.cancelToken,headers:this.getDefaultHeaders(t),retry:this.retryConfig}).then((function(r){var n=r.data;return n&&n.location_url&&n.region&&n.upload_id&&n.uri?(Fe("[".concat(t,"] Assign payload data: \n%O\n"),n),e.updatePayload(t,n),["intelligent","fallback"].indexOf(e.uploadMode)>-1&&(!n.upload_type||"intelligent_ingestion"!==n.upload_type)&&(Fe("[".concat(t,"] Intelligent Ingestion is not enabled on account, switch back to regular upload and lock mode change")),e.setUploadMode("default",!0)),n):(Fe("[".concat(t,"] Incorrect start response: \n%O\n"),n),e.setPayloadStatus(t,"Failed"),Promise.reject(new X("Incorrect start response",n,K.REQUEST)))})).catch((function(r){return Fe("[".concat(t,"] Start request error %O"),r),e.setPayloadStatus(t,"Failed"),e.rejectUpload("Cannot upload file. Start request failed",r)})))},e.prototype.startPartsQueue=function(t){return Object(p.b)(this,void 0,void 0,(function(){var e,r,n,i=this;return Object(p.d)(this,(function(o){return e=this.getPayloadById(t),r=e.parts,n=r.length,Fe("[".concat(t,"] Create uploading queue from file. parts count - %d"),n),[2,new Promise((function(e,n){return Object(p.b)(i,void 0,void 0,(function(){var i,o=this;return Object(p.d)(this,(function(a){switch(a.label){case 0:return r.forEach((function(e){return o.partsQueue.add((function(){return o.startPart(t,e.partNumber)})).catch((function(e){return o.setPayloadStatus(t,"Failed"),Fe("[".concat(t,"] Failed to upload part %s"),e.message),o.partsQueue.pause(),o.partsQueue.clear(),n(e)}))})),Fe("[".concat(t,"] All tasks for %s enqueued. Start processing main upload queue"),t),this.emit("start"),this.partsQueue.start(),i=e,[4,this.partsQueue.onIdle()];case 1:return i.apply(void 0,[a.sent()]),[2]}}))}))}))]}))}))},e.prototype.startPart=function(t,e){return Fe("[".concat(t,"] Start processing part ").concat(e," with mode ").concat(this.uploadMode)),this.getPayloadById(t).file.status="Progress",("intelligent"!==this.uploadMode?this.uploadRegular:this.uploadIntelligent).apply(this,[t,e])},e.prototype.getS3PartMetadata=function(t,e,r){var n=this,i=this.getUploadUrl(t);Fe("[".concat(t,"] Get data for part ").concat(e.partNumber,", url ").concat(i,", Md5: ").concat(e.md5,", Size: ").concat(e.size));var o=Object(p.a)(Object(p.a)({},this.getDefaultFields(t,["apikey","uri","region","signature","policy","upload_id","fii"])),{part:e.partNumber+1,size:e.size,offset:r});return this.integrityCheck&&e.md5&&(o.md5=e.md5),Ut.post("".concat(i,"/multipart/upload"),o,{headers:this.getDefaultHeaders(t),cancelToken:this.cancelToken,timeout:this.timeout,retry:this.retryConfig}).catch((function(e){return n.setPayloadStatus(t,"Failed"),n.rejectUpload("Cannot get part metadata",e)}))},e.prototype.uploadRegular=function(t,e){return Object(p.b)(this,void 0,void 0,(function(){var r,n,i,o,a,s,c=this;return Object(p.d)(this,(function(u){switch(u.label){case 0:return r=this.getPayloadById(t),n=r.parts[e],[4,r.file.getPartByMetadata(n,this.integrityCheck)];case 1:return i=u.sent(),[4,this.getS3PartMetadata(t,i)];case 2:return o=u.sent(),a=o.data,s=o.headers,Fe("[".concat(t,"] Received part ").concat(e," info body: \n%O\n headers: \n%O\n"),a,s),[2,Ut.put(a.url,i.buffer,{cancelToken:this.cancelToken,timeout:this.timeout,headers:a.headers,filestackHeaders:!1,onProgress:function(r){return c.onProgressUpdate(t,e,r.loaded)},retry:this.retryConfig&&"fallback"!==this.uploadMode?this.retryConfig:void 0}).then((function(r){if(!r.headers.etag)throw i=null,new X("Cannot upload file, check S3 bucket settings","Etag header is not exposed in CORS settings",K.REQUEST);return c.setPartETag(t,e,r.headers.etag),Fe("[".concat(t,"] S3 Upload response headers for ").concat(e,": \n%O\n"),r.headers),c.onProgressUpdate(t,e,i.size),i=null,r})).catch((function(r){var n=r&&r.response?r.response:null;if(n&&403===n.status&&n.data&&n.data.Error&&n.data.Error.code){var o=n.data.Error.code;switch(Array.isArray(o)&&(o=o.pop()),o){case"RequestTimeTooSkewed":return c.startPart(t,e);default:return Promise.reject(new X("Cannot upload file",n.data.Error,K.REQUEST))}}return i=null,r instanceof X?Promise.reject(r):(c.onProgressUpdate(t,e,0),"fallback"===c.uploadMode&&!c.isModeLocked||"intelligent"===c.uploadMode?(Fe("[".concat(t,"] Regular upload failed. Switching to intelligent ingestion mode")),c.setUploadMode("intelligent"),c.startPart(t,e)):c.rejectUpload("Cannot upload file part",r))}))]}}))}))},e.prototype.uploadIntelligent=function(t,e){return Object(p.b)(this,void 0,void 0,(function(){var r=this;return Object(p.d)(this,(function(n){return[2,this.uploadNextChunk(t,e).then((function(){return r.commitPart(t,e)}))]}))}))},e.prototype.uploadNextChunk=function(t,e,r){return void 0===r&&(r=this.intelligentChunkSize),Object(p.b)(this,void 0,void 0,(function(){var n,i,o,a,s=this;return Object(p.d)(this,(function(c){switch(c.label){case 0:return n=this.getPayloadById(t),i=n.parts[e],r=i.size-i.offset,[4,n.file.getChunkByMetadata(i,i.offset,r,this.integrityCheck)];case 1:return o=c.sent(),Fe("[".concat(t,"] PartNum: ").concat(e,", PartSize: ").concat(i.size,", StartByte: ").concat(i.startByte,", Offset: ").concat(i.offset,", ChunkSize: ").concat(o.size,",\n Left: ").concat(i.size-i.offset-o.size)),[4,this.getS3PartMetadata(t,o,i.offset).catch((function(n){return Fe("[".concat(t,"] Getting chunk data for ii failed %O, Chunk size: ").concat(r,", offset ").concat(i.offset,", part ").concat(e),n),Promise.reject(n)}))];case 2:return a=c.sent().data,[2,Ut.put(a.url,o.buffer,{cancelToken:this.cancelToken,timeout:this.timeout,headers:a.headers,filestackHeaders:!1,onProgress:function(r){return i?s.onProgressUpdate(t,e,i.offset+r.loaded):null}}).then((function(n){s.onProgressUpdate(t,e,i.offset+o.size);var a=Math.min(i.offset+r,i.size);return Fe("[".concat(t,"] S3 Chunk uploaded! offset: ").concat(i.offset,", part ").concat(e,"! response headers for ").concat(e,": \n%O\n"),n.headers),s.setPartData(t,e,"offset",a),a===i.size?Promise.resolve(n):(i=null,o=null,s.uploadNextChunk(t,e,r))})).catch((function(n){var a=n&&n.response?n.response:null;if(a&&403===a.status&&a.data&&a.data.Error&&a.data.Error.code){var c=a.data.Error.code;switch(Array.isArray(c)&&(c=c.pop()),c){case"RequestTimeTooSkewed":return s.startPart(t,e);default:return Promise.reject(new X("Cannot upload file",a.data.Error,K.REQUEST))}}s.onProgressUpdate(t,e,i.offset);var u=Math.ceil(r/2);return u<32768?(Fe("[".concat(t,"] Minimal chunk size limit. Upload file failed!")),Promise.reject(new X("Min chunk size reached",n.data,K.REQUEST))):Object(we.e)(n)?(Fe("[".concat(t,"] Request network error. Retry with new chunk size: ").concat(u)),s.uploadNextChunk(t,e,u)):(i=null,o=null,s.rejectUpload("Cannot upload file part (FII)",n))}))]}}))}))},e.prototype.commitPart=function(t,e){var r=this,n=this.getPayloadById(t),i=n.parts[e];return Ut.post("".concat(this.getUploadUrl(t),"/multipart/commit"),Object(p.a)(Object(p.a)({},this.getDefaultFields(t,["apikey","region","upload_id","policy","signature","uri"])),{size:n.file.size,part:i.partNumber+1}),{cancelToken:this.cancelToken,timeout:this.timeout,headers:this.getDefaultHeaders(t),retry:this.retryConfig}).then((function(e){return Fe("[".concat(t,"] Commit Part number ").concat(i.partNumber,". Response: %O"),e.data),e})).catch((function(t){return r.rejectUpload("Cannot commit file part metadata",t)}))},e.prototype.completeRequest=function(t){var e=this,r=this.getPayloadById(t),n=[];Fe("[".concat(t,"] Run complete request"));for(var i=r.parts,o=i.length,a=0;a<o;a++)i[a].etag&&n.push({part_number:a+1,etag:i[a].etag});return Fe("[".concat(t,"] Etags %O"),n),Ut.post("".concat(this.getUploadUrl(t),"/multipart/complete"),Object(p.a)(Object(p.a)({},this.getDefaultFields(t,["apikey","policy","signature","uri","region","upload_id","fii"],!0)),{filename:r.file.name,mimetype:r.file.type,size:r.file.size,upload_tags:this.uploadTags&&Object.keys(this.uploadTags).length?this.uploadTags:void 0,parts:n.length?n:void 0}),{timeout:this.timeout,cancelToken:this.cancelToken,headers:this.getDefaultHeaders(t),retry:this.retryConfig}).then((function(r){if(202===r.status)return new Promise((function(r,n){setTimeout((function(){return e.completeRequest(t).then(r).catch(n)}),1e3)}));var n=e.getPayloadById(t).file;return n.handle=r.data.handle,n.url=r.data.url,n.container=r.data.container,n.key=r.data.key,n.uploadTags=r.data.upload_tags,n.workflows=r.data.workflows,n.status=r.data.status,n})).catch((function(r){return e.setPayloadStatus(t,"Failed"),e.rejectUpload("Cannot complete file",r)}))},e.prototype.onProgressUpdate=function(t,e,r){this.setPartData(t,e,"progress",r),this.emitProgress()},e.prototype.emitProgress=function(){var t=0,e=0,r={};for(var n in this.payloads){var i=this.payloads[n];if("Failed"!==i.file.status){var o=i.parts.map((function(t){return t.progress||0})).reduce((function(t,e){return t+e}),0);e+=o,r[n]={totalBytes:o,totalPercent:Math.round(100*o/i.file.size)||0},t+=i.file.size}}var a={totalBytes:e||0,totalPercent:Math.round(100*e/t)||0,files:r};Fe("Upload progress %O",a),this.emit("progress",a)},e.prototype.updatePayload=function(t,e){this.payloads[t]=Object(p.a)(Object(p.a)({},this.payloads[t]),e)},e.prototype.setPartETag=function(t,e,r){Fe("[".concat(t,"] Set ").concat(r," etag for part ").concat(e)),this.getPayloadById(t).parts[e].etag=r},e.prototype.setPartData=function(t,e,r,n){Fe("[".concat(t,"] Set ").concat(r," = ").concat(n," for part ").concat(e));var i=this.getPayloadById(t);i?i.parts[e][r]=n:Fe("[".concat(t,"] Cannot set ").concat(r," = ").concat(n," for part ").concat(e))},e.prototype.setPayloadStatus=function(t,e){Fe("[".concat(t,"] Set payload status to ").concat(e)),this.payloads[t]&&(this.payloads[t].file.status=e)},e.prototype.parseError=function(t){return t.response?{code:t.response.status,data:t.response.data,headers:t.response.headers}:{}},e.prototype.rejectUpload=function(t,e){return e instanceof qt.a&&e.code===qt.b.ABORTED?Promise.reject(new X(t,{reason:e.message},K.ABORTED)):Promise.reject(new X(t,this.parseError(e),K.REQUEST))},e}(_e),Oe=function(t,e){return t.totalBytes=Math.max(t.totalBytes,e.totalBytes),t.totalPercent=Math.max(t.totalPercent,e.totalPercent),t},je=function(t){function e(e,r){void 0===e&&(e={}),void 0===r&&(r={});var n=t.call(this)||this;n.options=e,n.storeOptions=r,n.lastProgress={totalBytes:0,totalPercent:0},n.storeOptions=Object.assign({},r);var i=it(Dt)(e);if(i.errors.length)throw new X("Invalid upload params",i.errors,K.VALIDATION);var o=it(At)(r);if(o.errors.length)throw new X("Invalid store upload params",o.errors,K.VALIDATION);return r.filename&&(n.overrideFileName=r.filename,delete n.storeOptions.filename),n.storeOptions.sanitizer&&(n.sanitizerOptions=n.storeOptions.sanitizer,delete n.storeOptions.sanitizer),n.uploader=new Ee(n.storeOptions,e.concurrency),n.uploader.setRetryConfig({retry:e.retry||10,onRetry:e.onRetry,retryFactor:e.retryFactor||2,retryMaxTime:e.retryMaxTime||15e3}),n.uploader.setTimeout(e.timeout||12e4),e.partSize&&n.uploader.setPartSize(e.partSize),e.intelligentChunkSize&&n.uploader.setIntelligentChunkSize(e.intelligentChunkSize),e.disableIntegrityCheck&&n.uploader.setIntegrityCheck(!1),e.intelligent&&n.uploader.setUploadMode("fallback"===e.intelligent?"fallback":"intelligent"),n.uploader.setUploadTags(e.tags),n.uploader.on("start",(function(){return n.emit("start")})),n.uploader.on("error",(function(t){return n.emit("error",t)})),n.uploader.on("progress",n.handleProgress.bind(n)),n}return Object(p.c)(e,t),e.prototype.setSession=function(t){this.uploader.setApikey(t.apikey),t.policy&&t.signature&&this.uploader.setSecurity({policy:t.policy,signature:t.signature}),this.uploader.setUrl(t.urls.uploadApiUrl)},e.prototype.setToken=function(t){var e=this;if(!t||t!==Object(t))throw new Error("Incorrect upload token. Must be instance of object");return t.pause=function(){return e.uploader.pause()},t.resume=function(){return e.uploader.resume()},t.cancel=function(){return e.uploader.abort()},t},e.prototype.setSecurity=function(t){this.uploader.setSecurity(t)},e.prototype.setUploadTags=function(t){this.uploader.setUploadTags(t)},e.prototype.upload=function(t){return Object(p.b)(this,void 0,void 0,(function(){var e,r;return Object(p.d)(this,(function(n){switch(n.label){case 0:return[4,ge(t,this.sanitizerOptions)];case 1:return(e=n.sent()).customName=this.overrideFileName,this.uploader.addFile(e),this.startProgressInterval(),[4,this.uploader.execute()];case 2:return r=n.sent().shift(),this.stopProgressInterval(),this.uploader.removeAllListeners(),"Failed"===r.status?[2,Promise.reject(r)]:[2,Promise.resolve(r)]}}))}))},e.prototype.multiupload=function(t){return Object(p.b)(this,void 0,void 0,(function(){var e,r,n,i,o,a,s;return Object(p.d)(this,(function(c){switch(c.label){case 0:for(n in r=[],e=t)r.push(n);i=0,c.label=1;case 1:return i<r.length?(n=r[i])in e?(o=n,t.hasOwnProperty(o)?[4,ge(t[o],this.sanitizerOptions)]:[3,3]):[3,3]:[3,4];case 2:(a=c.sent()).customName=this.overrideFileName,this.uploader.addFile(a),c.label=3;case 3:return i++,[3,1];case 4:return this.startProgressInterval(),[4,this.uploader.execute()];case 5:return s=c.sent(),this.stopProgressInterval(),this.uploader.removeAllListeners(),[2,Promise.resolve(s)]}}))}))},e.prototype.startProgressInterval=function(){var t=this;"function"==typeof this.options.onProgress&&(this.progressIntervalHandler=setInterval((function(){t.options.onProgress(t.lastProgress)}),this.options.progressInterval||1e3),this.options.onProgress(this.lastProgress))},e.prototype.stopProgressInterval=function(){clearInterval(this.progressIntervalHandler)},e.prototype.handleProgress=function(t){if(t=Oe(t,this.lastProgress),this.lastProgress.files)for(var e in t.files)this.lastProgress.files[e]&&(t.files[e]=Oe(t.files[e],this.lastProgress.files[e]));this.lastProgress=t},e}(l.EventEmitter),Se=function(t,e,r){if(!e||"string"!=typeof e)throw new Error("A valid Filestack handle or storage alias is required for preview");var n=it(Ct)(r);if(n.errors.length)throw new X("Invalid preview params",n.errors,K.VALIDATION);var i=Object(ot.removeEmpty)(r||{}),o=function(t,e,r,n){var i=Object(p.a)({},r),o=n&&n.policy||t.policy,a=n&&n.signature||t.signature,s=a&&o,c=[t.urls.cdnUrl],u=i.css&&encodeURIComponent('"'.concat(i.css,'"')),l=u?"preview=css:".concat(u):"preview";return-1!==e.indexOf("src:")?c.push("".concat(t.apikey,"/").concat(l)):c.push(l),s&&c.push("security=policy:".concat(o,",signature:").concat(a)),c.push(e),c.join("/")}(t,e,i);if(i&&i.id){var a=i.id,s=document.createElement("iframe"),c=document.getElementById(a);if(s.src=o,s.width="100%",s.height="100%",!c)throw new Error('DOM Element with id "'.concat(a,'" not found.'));return c.appendChild(s)}return window.open(o,e)},Te=st()("fs:storage"),Pe=function(){function t(){this.availableTypes=[],void 0!==window.localStorage&&(this.availableTypes.push(me.LOCAL),Te("Local storage exists")),void 0!==window.sessionStorage&&(this.availableTypes.push(me.SESSION),Te("Session storage exists")),Te("availableTypes - %O",this.availableTypes)}return t.prototype.hasAccess=function(t){return Te("Checking access to storage for %s. Available types: %O",t,this.availableTypes),t?this.availableTypes.indexOf(t)>-1:!!this.availableTypes.length},t.prototype.getItem=function(t,e){var r=this.getStore(e);if(Te("getItem %s from %O",t,r),r)return r.getItem(t)},t.prototype.setItem=function(t,e,r){var n=this.getStore(r);if(Te("setItem %s to %O",t,n),n)return n.setItem(t,e)},t.prototype.removeItem=function(t,e){var r=this.getStore(e);if(Te("removeItem %s from %O",t,r),r)return r.removeItem(t)},t.prototype.getStore=function(t){if(Te("get store with pref type - %s",t),this.hasAccess(t))switch(t){case me.LOCAL:return window.localStorage;case me.SESSION:return window.sessionStorage;default:return window[this.availableTypes[0]]}else Te("User dont have access to any storage")},t}();!function(t){t.SESSION="sessionStorage",t.LOCAL="localStorage"}(me||(me={}));var Ae,Ce="__fs_picker_token",De=function(){function t(t,e){this.cache=!1,this.session=t,this.storeAdapter=new Pe,this.cloudApiUrl=t.urls.cloudApiUrl,e&&e.sessionCache&&(this.cache=e.sessionCache)}return Object.defineProperty(t.prototype,"token",{get:function(){if(this.cache){var t=this.storeAdapter.getItem(Ce,me.LOCAL);if(t)return t}return this.isInAppBrowser?this.storeAdapter.getItem(Ce,me.SESSION):this._token},set:function(t){this.cache&&this.storeAdapter.setItem(Ce,t,me.LOCAL),this.isInAppBrowser&&this.storeAdapter.setItem(Ce,t,me.SESSION),this._token=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInAppBrowser",{get:function(){return!!(this.session&&this.session.prefetch&&this.session.prefetch.settings&&this.session.prefetch.settings.inapp_browser)&&this.session.prefetch.settings.inapp_browser},enumerable:!1,configurable:!0}),t.prototype.list=function(t,e,r){var n=this,i={apikey:this.session.apikey,clouds:t,flow:"web",token:this.token};r&&(Array.isArray(r)||(r=[r]),r.includes("application/x-subrip")&&!r.includes("application/octet-stream")&&r.push("application/octet-stream"),i.accept=r),this.isInAppBrowser&&(i.appurl=this.currentAppUrl()),this.session.policy&&this.session.signature&&(i.policy=this.session.policy,i.signature=this.session.signature);var o={};if(e){var a=new Vt;e.cancel=a.cancel.bind(a),o.cancelToken=a}return Ut.post("".concat(this.cloudApiUrl,"/folder/list"),i,o).then((function(t){return t.data&&t.data.token&&(n.token=t.data.token),t.data}))},t.prototype.store=function(t,e,r,n,i,o){var a,s=this;void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=null),void 0===r.location&&(r.location="s3");var c={apikey:this.session.apikey,token:this.token,flow:"web",upload_tags:o||void 0,clouds:(a={},a[t]={path:e,store:Object(ot.removeEmpty)(r)},a)};"customsource"===t&&n.customSourcePath&&(c.clouds.customsource.customSourcePath=n.customSourcePath),"customsource"===t&&n.customSourceContainer&&(c.clouds.customsource.customSourceContainer=n.customSourceContainer),this.session.policy&&this.session.signature&&(c.policy=this.session.policy,c.signature=this.session.signature);var u={};if(i){var p=new Vt;i.cancel=p.cancel.bind(p),u.cancelToken=p}return Ut.post("".concat(this.cloudApiUrl,"/store/"),c,u).then((function(e){return e.data&&e.data.token&&(s.token=e.data.token),e.data&&e.data[t]?e.data[t]:e.data}))},t.prototype.logout=function(t){var e,r={apikey:this.session.apikey,flow:"web",token:this.token};return t?r.clouds=((e={})[t]={},e):(this.cache&&this.storeAdapter.removeItem(Ce,me.LOCAL),this.isInAppBrowser&&this.storeAdapter.removeItem(Ce,me.SESSION)),Ut.post("".concat(this.cloudApiUrl,"/auth/logout"),r).then((function(e){return e.data&&e.data[t]?e.data[t]:e.data}))},t.prototype.metadata=function(t,e){var r={apikey:this.session.apikey,url:t,headers:e};return this.session.policy&&this.session.signature&&(r.policy=this.session.policy,r.signature=this.session.signature),Ut.post("".concat(this.cloudApiUrl,"/metadata"),r).then((function(t){return t.data}))},t.prototype.tokInit=function(t){if("video"!==t&&"audio"!==t)throw new X("Type must be one of video or audio.");return Ut.post("".concat(this.cloudApiUrl,"/recording/").concat(t,"/init")).then((function(t){return t.data}))},t.prototype.tokStart=function(t,e,r){if("video"!==t&&"audio"!==t)throw new X("Type must be one of video or audio.");var n={apikey:e,session_id:r};return Ut.post("".concat(this.cloudApiUrl,"/recording/").concat(t,"/start"),n).then((function(t){return t.data}))},t.prototype.tokStop=function(t,e,r,n){if("video"!==t&&"audio"!==t)throw new X("Type must be one of video or audio.");var i={apikey:e,session_id:r,archive_id:n};return Ut.post("".concat(this.cloudApiUrl,"/recording/").concat(t,"/stop"),i).then((function(t){return t.data}))},t.prototype.currentAppUrl=function(){if(window.URLSearchParams){var t=new URLSearchParams(window.location.search);return t.set("fs-tab","init"),"".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname,"?").concat(t.toString())}},t}(),Ie=r(32),Le=r.n(Ie);!function(t){t.PICKER="picker",t.TRANSFORM_UI="transform_ui"}(Ae||(Ae={}));var Ne,ze,Be=function(){function t(t){this.session=t instanceof Re?t.session:t}return t.prototype.getConfig=function(t){var e=t.pickerOptions,r=t.settings,n=t.permissions,i=t.events;return Object(p.b)(this,void 0,void 0,(function(){var t,o,a=this;return Object(p.d)(this,(function(s){return t={apikey:this.session.apikey},this.session.policy&&this.session.signature&&(t.security={policy:this.session.policy,signature:this.session.signature}),r=r?(r=r.concat(["inapp_browser"])).filter((function(t,e){return r.indexOf(t)===e})):["inapp_browser"],e&&Object.keys(e).length&&(o=Object(ot.cleanUpCallbacks)(Le()(Object(p.a)({},e)))),t=Object(p.a)(Object(p.a)({},t),{permissions:n,settings:r,picker_config:o,events:i}),this.session.prefetch=null,[2,Ut.post("".concat(this.session.urls.uploadApiUrl,"/prefetch"),t).then((function(t){if(200!==t.status)throw new X("There is a problem with prefetch request");var r=t.data;return r.updated_config?(r.pickerOptions=a.reassignCallbacks(e,r.updated_config||{}),delete r.updated_config):r.pickerOptions=e,a.session.prefetch=r,r}))]}))}))},t.prototype.reassignCallbacks=function(t,e){if(!t||0===Object.keys(t).length)return t;for(var r in t)"function"==typeof t[r]&&(e[r]=t[r]),t[r]===Object(t[r])&&(e[r]=this.reassignCallbacks(t[r],e[r]));return e},t}();!function(t){t.cw="CW",t.ccw="CCW"}(Ne||(Ne={})),function(t){t.inline="inline",t.overlay="overlay",t.dropPane="dropPane"}(ze||(ze={}));var Me=function(){function t(t,e){var r=it(It)(e);if(r.errors.length)throw new X("Invalid picker params",r.errors,K.VALIDATION);this._initialized=this.loadModule(t,e)}return t.prototype.open=function(){return Object(p.b)(this,void 0,void 0,(function(){return Object(p.d)(this,(function(t){switch(t.label){case 0:return[4,this._initialized];case 1:return[4,t.sent().open()];case 2:return t.sent(),[2]}}))}))},t.prototype.crop=function(t){return Object(p.b)(this,void 0,void 0,(function(){return Object(p.d)(this,(function(e){switch(e.label){case 0:return[4,this._initialized];case 1:return[4,e.sent().crop(t)];case 2:return e.sent(),[2]}}))}))},t.prototype.close=function(){return Object(p.b)(this,void 0,void 0,(function(){return Object(p.d)(this,(function(t){switch(t.label){case 0:return[4,this._initialized];case 1:return[4,t.sent().close()];case 2:return t.sent(),[2]}}))}))},t.prototype.cancel=function(){return Object(p.b)(this,void 0,void 0,(function(){return Object(p.d)(this,(function(t){switch(t.label){case 0:return[4,this._initialized];case 1:return[4,t.sent().cancel()];case 2:return t.sent(),[2]}}))}))},t.prototype.loadModule=function(t,e){return Object(p.b)(this,void 0,void 0,(function(){var r;return Object(p.d)(this,(function(n){switch(n.label){case 0:return r=t.session.urls.pickerUrl,[4,o(s.PICKER,r)];case 1:return[2,new(n.sent())(t,e)]}}))}))},t}();W("addBreadcrumb",{category:"sdk",message:"filestack-js-sdk scope"});var Re=function(t){function e(e,r){var n=t.call(this)||this;if(n.options=r,n.forwardErrors=!0,r&&r.forwardErrors&&(n.forwardErrors=r.forwardErrors),!e||"string"!=typeof e||0===e.length)throw new Error("An apikey is required to initialize the Filestack client");var i=J.urls;if(n.session={apikey:e,urls:i},r){var o=r.cname,a=r.security;n.setSecurity(a),n.setCname(o)}return n.prefetchInstance=new Be(n.session),n.cloud=new De(n.session,r),n}return Object(p.c)(e,t),Object.defineProperty(e.prototype,"utils",{get:function(){return ot},enumerable:!1,configurable:!0}),e.prototype.prefetch=function(t){return this.prefetchInstance.getConfig(t)},e.prototype.setSecurity=function(t){if(t&&(!t.policy||!t.signature))throw new X("Both policy and signature are required for client security");t&&t.policy&&t.signature&&(this.session.policy=t.policy,this.session.signature=t.signature)},e.prototype.setCname=function(t){t&&0!==t.length&&(this.session.cname=t,this.session.urls=ot.resolveHost(this.session.urls,t))},e.prototype.logout=function(t){return this.cloud.logout(t)},e.prototype.metadata=function(t,e,r){return function(t,e,r,n){if(!e||"string"!=typeof e)throw new X("A valid Filestack handle is required for metadata");var i=it(Lt)(r);if(i.errors.length)throw new X("Invalid metadata params",i.errors);var o=Object(p.a)({},r);o.source_url=o.sourceUrl,o.policy=n&&n.policy||t.policy,o.signature=n&&n.signature||t.signature;var a="".concat(t.urls.fileApiUrl,"/").concat(e,"/metadata");return new Promise((function(t,r){Ut.get(a,{params:Object(ot.removeEmpty)(o),filestackHeaders:!1}).then((function(r){return t(Object(p.a)(Object(p.a)({},r.data),{handle:e}))})).catch(r)}))}(this.session,t,e,r)},e.prototype.picker=function(t){return function(t,e){return new Me(t,e)}(this,t)},e.prototype.preview=function(t,e){return Se(this.session,t,e)},e.prototype.remove=function(t,e){return Gt(this.session,t,!1,e)},e.prototype.removeMetadata=function(t,e){return Gt(this.session,t,!0,e)},e.prototype.storeURL=function(t,e,r,n,i,o,a){return function(t){var e=t.session,r=t.url,n=t.storeParams,i=t.token,o=t.security,a=t.uploadTags,s=t.headers,c=t.workflowIds;if(!r||"string"!=typeof r)return Promise.reject(new X("url is required for storeURL"));var u=it(At)(n);if(u.errors.length)return Promise.reject(new X("Invalid store params",u.errors));e.policy=o&&o.policy||e.policy,e.signature=o&&o.signature||e.signature;var l=new Pt(r,e.apikey);l.store(n),e.policy&&e.signature&&l.security({policy:e.policy,signature:e.signature});var f={};if(i){var d=new Vt;i.cancel=d.cancel.bind(d),f.cancelToken=d}var m=[r];return s&&(m=[{source:r,headers:s}]),c&&c.length>0&&l.addTask("store",{workflows:c}),Ut.post("".concat(e.urls.processUrl,"/process"),{apikey:e.apikey,sources:m,tasks:l.getTasks(),upload_tags:a},f).then((function(t){if(t.data&&t.data.handle)return t.data.upload_tags&&(t.data.uploadTags=t.data.upload_tags,delete t.data.upload_tags),Object(p.a)(Object(p.a)({},t.data),{mimetype:t.data.type});throw new X("Invalid store response ".concat(JSON.stringify(t.data)))}))}({session:this.session,url:t,storeParams:e,token:r,security:n,uploadTags:i,headers:o,workflowIds:a})},e.prototype.retrieve=function(t,e,r){return function(t,e,r,n){if(void 0===r&&(r={}),!e||0===e.length||"string"!=typeof e)throw new X("File handle is required");console.info("Retrieve method is deprecated and it will be removed. Please use metadata or download");var i=it(Nt)(r);if(i.errors.length)throw new X("Invalid retrieve params",i.errors);var o=Object(p.a)({},r);o.key=t.apikey,o.policy=n&&n.policy||t.policy,o.signature=n&&n.signature||t.signature;var a,s,c=zt.a.GET;if(o.head&&(c=zt.a.HEAD,delete o.head),o.extension&&o.extension.length&&(a=o.extension,delete o.extension),o.metadata){if(c===zt.a.HEAD)throw new X("Head and metadata options cannot be used together");s=o.metadata,delete o.metadata}var u="".concat(t.urls.fileApiUrl,"/").concat(e)+(a?"+".concat(a):"")+(s?"/metadata":"");return new Promise((function(t,e){Ut.dispatch(u,{method:c,filestackHeaders:!1,params:Object(ot.removeEmpty)(o)}).then((function(e){return t(c===zt.a.HEAD?e.headers:e.data)})).catch(e)}))}(this.session,t,e,r)},e.prototype.download=function(t,e){return function(t,e,r){var n=new Pt(e,t.apikey),i=r&&r.policy||t.policy,o=r&&r.signature||t.signature;return i&&o&&n.security({signature:o,policy:i}),Ut.dispatch(n.toString(),{method:zt.a.GET,blobResponse:!0})}(this.session,t,e)},e.prototype.transform=function(t,e,r){return void 0===r&&(r=!1),fe(this.session,t,e,r)},e.prototype.upload=function(t,e,r,n,i){var o=this,a=new je(e,r);return a.setSession(this.session),n&&a.setToken(n),i&&a.setSecurity(i),a.on("start",(function(){return o.emit("upload.start")})),a.on("error",(function(t){o.forwardErrors&&Q((function(n){n.setTag("filestack-apikey",o.session.apikey),n.setTag("filestack-version",ot.getVersion()),n.setExtra("filestack-options",o.options),n.setExtras({uploadOptions:e,storeOptions:r,details:t.details}),t.message="FS-".concat(t.message),Y(t)})),o.emit("upload.error",t)})),a.upload(t)},e.prototype.multiupload=function(t,e,r,n,i){var o=this,a=new je(e,r);return a.setSession(this.session),n&&a.setToken(n),i&&a.setSecurity(i),a.on("start",(function(){return o.emit("upload.start")})),a.on("error",(function(t){Q((function(n){n.setTag("filestack-apikey",o.session.apikey),n.setTag("filestack-version",ot.getVersion()),n.setExtra("filestack-options",o.options),n.setExtras(t.details),n.setExtras({uploadOptions:e,storeOptions:r}),Y(t)})),o.emit("upload.error",t)})),a.multiupload(t)},e}(l.EventEmitter),$e=function(t,e){return new Re(t,e)},Ue=$e,qe="3.32.2";a(s.FILESTACK_SDK,$e,{version:"3.32.2"})},,function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return c})),r.d(e,"b",(function(){return u}));var n=r(6),i=r(11),o={nowSeconds:function(){return Date.now()/1e3}};var a=Object(i.b)()?function(){try{return Object(i.a)(t,"perf_hooks").performance}catch(t){return}}():function(){var t=Object(n.a)().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),s=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},c=o.nowSeconds.bind(o),u=s.nowSeconds.bind(s);!function(){var t=Object(n.a)().performance;if(t&&t.now){var e=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+e-r):36e5,o=i<36e5,a=t.timing&&t.timing.navigationStart,s="number"==typeof a?Math.abs(a+e-r):36e5;return o||s<36e5?i<=s?("timeOrigin",t.timeOrigin):("navigationStart",a):("dateNow",r)}"none"}()}).call(this,r(28)(t))}]);const _filestack$Filestack=filestack.Filestack,_filestack$init=filestack.init,_filestack$version=filestack.version,_filestack$EAlignOptions=filestack.EAlignOptions,_filestack$EAlignFacesOptions=filestack.EAlignFacesOptions,_filestack$EFitOptions=filestack.EFitOptions,_filestack$EBlurMode=filestack.EBlurMode,_filestack$EShapeType=filestack.EShapeType,_filestack$ENoiseType=filestack.ENoiseType,_filestack$EStyleType=filestack.EStyleType,_filestack$EColorspaceType=filestack.EColorspaceType,_filestack$ECropfacesType=filestack.ECropfacesType,_filestack$ESmartCropMode=filestack.ESmartCropMode,_filestack$EImageWatermarkPosition=filestack.EImageWatermarkPosition,_filestack$EAudioTypes=filestack.EAudioTypes,_filestack$EVideoTypes=filestack.EVideoTypes,_filestack$EUrlscreenshotAgent=filestack.EUrlscreenshotAgent,_filestack$EUrlscreenshotMode=filestack.EUrlscreenshotMode,_filestack$EUrlscreenshotOrientation=filestack.EUrlscreenshotOrientation,_filestack$EVideoLocations=filestack.EVideoLocations,_filestack$EVideoAccess=filestack.EVideoAccess,_filestack$EVideoAccessMode=filestack.EVideoAccessMode,_filestack$transform=filestack.transform,_filestack$Align=filestack.Align,_filestack$FitOptions=filestack.FitOptions,_filestack$BlurMode=filestack.BlurMode,_filestack$ShapeType=filestack.ShapeType,_filestack$NoiseType=filestack.NoiseType,_filestack$StyleType=filestack.StyleType,_filestack$ColorspaceType=filestack.ColorspaceType,_filestack$CropfacesType=filestack.CropfacesType,_filestack$ImageWatermarkPosition=filestack.ImageWatermarkPosition,_filestack$SmartCropMode=filestack.SmartCropMode,_filestack$AudioTypes=filestack.AudioTypes,_filestack$VideoTypes=filestack.VideoTypes,_filestack$URLScreenshotAgent=filestack.URLScreenshotAgent,_filestack$URLScreenshotMode=filestack.URLScreenshotMode,_filestack$URLScreenshotOrientation=filestack.URLScreenshotOrientation,_filestack$Locations=filestack.Locations,_filestack$VideoAccess=filestack.VideoAccess,_filestack$VideoAccessMode=filestack.VideoAccessMode,_filestack$EnhancePreset=filestack.EnhancePreset,_filestack$Filelink=filestack.Filelink,_filestack$FilestackErrorType=filestack.FilestackErrorType,_filestack$FsHttpMethod=filestack.FsHttpMethod,_filestack$FsRequest=filestack.FsRequest,_filestack$FsRequestErrorCode=filestack.FsRequestErrorCode,_filestack$FsRequestError=filestack.FsRequestError,_filestack$FsCancelToken=filestack.FsCancelToken,_filestack$resolveCdnUrl=filestack.resolveCdnUrl,_filestack$resolveHost=filestack.resolveHost,_filestack$removeEmpty=filestack.removeEmpty,_filestack$uniqueTime=filestack.uniqueTime,_filestack$uniqueId=filestack.uniqueId,_filestack$extensionToMime=filestack.extensionToMime,_filestack$sanitizeName=filestack.sanitizeName,_filestack$filterObject=filestack.filterObject,_filestack$cleanUpCallbacks=filestack.cleanUpCallbacks,_filestack$md5=filestack.md5,_filestack$b64=filestack.b64,_filestack$getVersion=filestack.getVersion,_filestack$isMobile=filestack.isMobile,_filestack$isFacebook=filestack.isFacebook,_filestack$TransformSchema=filestack.TransformSchema,_filestack$getSecurity=filestack.getSecurity,_filestack$validateWebhookSignature=filestack.validateWebhookSignature,_filestack$Client=filestack.Client,_filestack$FilestackError=filestack.FilestackError,_filestack$PickerDisplayMode=filestack.PickerDisplayMode,_filestack$getMimetype=filestack.getMimetype,_filestack$PrefetchEvents=filestack.PrefetchEvents;export{_filestack$Filestack as Filestack,_filestack$init as init,_filestack$version as version,_filestack$EAlignOptions as EAlignOptions,_filestack$EAlignFacesOptions as EAlignFacesOptions,_filestack$EFitOptions as EFitOptions,_filestack$EBlurMode as EBlurMode,_filestack$EShapeType as EShapeType,_filestack$ENoiseType as ENoiseType,_filestack$EStyleType as EStyleType,_filestack$EColorspaceType as EColorspaceType,_filestack$ECropfacesType as ECropfacesType,_filestack$ESmartCropMode as ESmartCropMode,_filestack$EImageWatermarkPosition as EImageWatermarkPosition,_filestack$EAudioTypes as EAudioTypes,_filestack$EVideoTypes as EVideoTypes,_filestack$EUrlscreenshotAgent as EUrlscreenshotAgent,_filestack$EUrlscreenshotMode as EUrlscreenshotMode,_filestack$EUrlscreenshotOrientation as EUrlscreenshotOrientation,_filestack$EVideoLocations as EVideoLocations,_filestack$EVideoAccess as EVideoAccess,_filestack$EVideoAccessMode as EVideoAccessMode,_filestack$transform as transform,_filestack$Align as Align,_filestack$FitOptions as FitOptions,_filestack$BlurMode as BlurMode,_filestack$ShapeType as ShapeType,_filestack$NoiseType as NoiseType,_filestack$StyleType as StyleType,_filestack$ColorspaceType as ColorspaceType,_filestack$CropfacesType as CropfacesType,_filestack$ImageWatermarkPosition as ImageWatermarkPosition,_filestack$SmartCropMode as SmartCropMode,_filestack$AudioTypes as AudioTypes,_filestack$VideoTypes as VideoTypes,_filestack$URLScreenshotAgent as URLScreenshotAgent,_filestack$URLScreenshotMode as URLScreenshotMode,_filestack$URLScreenshotOrientation as URLScreenshotOrientation,_filestack$Locations as Locations,_filestack$VideoAccess as VideoAccess,_filestack$VideoAccessMode as VideoAccessMode,_filestack$EnhancePreset as EnhancePreset,_filestack$Filelink as Filelink,_filestack$FilestackErrorType as FilestackErrorType,_filestack$FsHttpMethod as FsHttpMethod,_filestack$FsRequest as FsRequest,_filestack$FsRequestErrorCode as FsRequestErrorCode,_filestack$FsRequestError as FsRequestError,_filestack$FsCancelToken as FsCancelToken,_filestack$resolveCdnUrl as resolveCdnUrl,_filestack$resolveHost as resolveHost,_filestack$removeEmpty as removeEmpty,_filestack$uniqueTime as uniqueTime,_filestack$uniqueId as uniqueId,_filestack$extensionToMime as extensionToMime,_filestack$sanitizeName as sanitizeName,_filestack$filterObject as filterObject,_filestack$cleanUpCallbacks as cleanUpCallbacks,_filestack$md5 as md5,_filestack$b64 as b64,_filestack$getVersion as getVersion,_filestack$isMobile as isMobile,_filestack$isFacebook as isFacebook,_filestack$TransformSchema as TransformSchema,_filestack$getSecurity as getSecurity,_filestack$validateWebhookSignature as validateWebhookSignature,_filestack$Client as Client,_filestack$FilestackError as FilestackError,_filestack$PickerDisplayMode as PickerDisplayMode,_filestack$getMimetype as getMimetype,_filestack$PrefetchEvents as PrefetchEvents};
28
+ e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,u=c>>1,p=-7,l=r?i-1:0,f=r?-1:1,d=t[e+l];for(l+=f,o=d&(1<<-p)-1,d>>=-p,p+=s;p>0;o=256*o+t[e+l],l+=f,p-=8);for(a=o&(1<<-p)-1,o>>=-p,p+=n;p>0;a=256*a+t[e+l],l+=f,p-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=u}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,c,u=8*o-i-1,p=(1<<u)-1,l=p>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,m=n?1:-1,h=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=p):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+l>=1?f/c:f*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=p?(s=0,a=p):a+l>=1?(s=(e*c-1)*Math.pow(2,i),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=m,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[r+d]=255&a,d+=m,a/=256,u-=8);t[r+d-m]|=128*h}},function(t,e,r){"use strict";function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}e.stringToBytes=function(t){return n(t).map((function(t){return t.charCodeAt(0)}))},e.tarHeaderChecksumMatches=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=parseInt(t.toString("utf8",148,154).replace(/\0.*$/,"").trim(),8);if(isNaN(r))return!1;for(var n=256,i=e;i<e+148;i++)n+=t[i];for(var o=e+156;o<e+512;o++)n+=t[o];return r===n},e.uint32SyncSafeToken={get:function(t,e){return 127&t[e+3]|t[e+2]<<7|t[e+1]<<14|t[e]<<21},len:4}},function(t,e,r){"use strict";t.exports={extensions:["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","ai","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf"],mimeTypes:["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/x-apache-arrow","video/mp4","audio/midi","video/x-matroska","video/webm","video/quicktime","video/vnd.avi","audio/vnd.wave","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","audio/opus","video/ogg","audio/ogg","application/ogg","audio/x-flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd"]}},function(t,e,r){function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}t.exports=function(t){function e(t){var r,n,o,a=null;function s(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(s.enabled){var o=s,a=Number(new Date),c=a-(r||a);o.diff=c,o.prev=r,o.curr=a,r=a,n[0]=e.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");var u=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,(function(t,r){if("%%"===t)return"%";u++;var i=e.formatters[r];if("function"==typeof i){var a=n[u];t=i.call(o,a),n.splice(u,1),u--}return t})),e.formatArgs.call(o,n);var p=o.log||e.log;p.apply(o,n)}}return s.namespace=t,s.useColors=e.useColors(),s.color=e.selectColor(t),s.extend=i,s.destroy=e.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==a?a:(n!==e.namespaces&&(n=e.namespaces,o=e.enabled(t)),o)},set:function(t){a=t}}),"function"==typeof e.init&&e.init(s),s}function i(t,r){var n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){var t=[].concat(n(e.names.map(o)),n(e.skips.map(o).map((function(t){return"-"+t})))).join(",");return e.enable(""),t},e.enable=function(t){var r;e.save(t),e.namespaces=t,e.names=[],e.skips=[];var n=("string"==typeof t?t:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.slice(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;var r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(54),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((function(r){e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=1e3,i=6e4,o=60*i,a=24*o;function s(t,e,r,n){var i=e>=1.5*r;return Math.round(t/r)+" "+n+(i?"s":"")}t.exports=function(t,e){e=e||{};var c=r(t);if("string"===c&&t.length>0)return function(t){if((t=String(t)).length>100)return;var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!e)return;var r=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return r*a;case"hours":case"hour":case"hrs":case"hr":case"h":return r*o;case"minutes":case"minute":case"mins":case"min":case"m":return r*i;case"seconds":case"second":case"secs":case"sec":case"s":return r*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(t);if("number"===c&&isFinite(t))return e.long?function(t){var e=Math.abs(t);if(e>=a)return s(t,e,a,"day");if(e>=o)return s(t,e,o,"hour");if(e>=i)return s(t,e,i,"minute");if(e>=n)return s(t,e,n,"second");return t+" ms"}(t):function(t){var e=Math.abs(t);if(e>=a)return Math.round(t/a)+"d";if(e>=o)return Math.round(t/o)+"h";if(e>=i)return Math.round(t/i)+"m";if(e>=n)return Math.round(t/n)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,r){"use strict";r.r(e),r.d(e,"XhrAdapter",(function(){return l}));var n=r(0),i=r(3),o=r.n(i),a=r(4),s=r(5),c=r(2),u=r(9),p=o()("fs:request:xhr"),l=function(){function t(){}return t.prototype.request=function(t){var e=this;void 0===t.filestackHeaders&&(t.filestackHeaders=!0),(t=Object(u.d)(t)).headers=t.headers||{};var r=t.data,i=t.headers;a.e(r)&&delete i["Content-Type"];var o=new XMLHttpRequest;if(t.blobResponse&&(o.responseType="blob"),t.auth){if(!t.auth.username||0===t.auth.username.length||!t.auth.password||0===t.auth.password.length)return Promise.reject(new c.a("Basic auth: username and password are required ".concat(t.auth),t));i.Authorization="Basic "+btoa(unescape(encodeURIComponent("".concat(t.auth.username,":").concat(t.auth.password)))),p("Set request authorization to %s",t.auth.username+t.auth.password)}var l=t.url.trim();return/^http(s)?:\/\//.test(l)||(l="https://".concat(l)),l=Object(u.a)(l,t.params),p("Starting request to %s with options %O",l,t),o.open(t.method.toUpperCase(),l,!0),o.timeout=t.timeout,new Promise((function(a,f){var d;if(t.cancelToken&&(d=function(e){return o&&(o.abort(),o=null),p("Request canceled by user %s, config: %O",e,t),f(new c.a("Request aborted. Reason: ".concat(e),t,null,c.b.ABORTED))},t.cancelToken.once("cancel",d)),o.onreadystatechange=function(){return Object(n.b)(e,void 0,void 0,(function(){var e,r,i;return Object(n.d)(this,(function(n){switch(n.label){case 0:return o&&4===o.readyState&&(0!==o.status||o.responseURL)?(e=Object(u.b)(o.getAllResponseHeaders()),r=o.response,i={data:r,status:o.status,statusText:o.statusText,headers:e,config:t},o=null,[4,Object(u.c)(i)]):[2];case 1:return 500<=(i=n.sent()).status&&i.status<=599?(p("Server error(5xx) - %O",i),[2,f(new c.a("Server error ".concat(l),t,i,c.b.SERVER))]):400<=i.status&&i.status<=499?(p("Request error(4xx) - %O",i),[2,f(new c.a("Request error ".concat(l),t,i,c.b.REQUEST))]):(t.cancelToken&&(t.cancelToken.removeListener("cancel",d),d=null),[2,a(i)])}}))}))},o.onabort=function(){o&&(o=null,f(new c.a("Request aborted",t,null,c.b.ABORTED)))},o.onerror=function(e){o=null,p("Request error! %O",e),f(new c.a("Network Error",t,null,c.b.NETWORK))},o.ontimeout=function(){o=null,p("Request timed out. %O",t),f(new c.a("Request timeout",t,null,c.b.TIMEOUT))},"setRequestHeader"in o&&i&&Object.keys(i).length)for(var m in i)void 0!==i[m]&&(p("Set request header %s to %s",m,i[m]),o.setRequestHeader(m,i[m]));"function"==typeof t.onProgress&&[s.a.POST,s.a.PUT].indexOf(t.method)>-1&&(o.upload?(p("Bind to upload progress event"),o.upload.addEventListener("progress",t.onProgress)):(p("Bind to progress event"),o.addEventListener("progress",t.onProgress))),void 0===r&&(r=null),o.send(r)}))},t}()},function(t,e,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}var a=r(57).buildOptions,s=r(58),c=r(62).prettify,u=r(26),p=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.externalEntities={},this.options=a(e)}var e,r,n;return e=t,(r=[{key:"parse",value:function(t,e){if("string"==typeof t);else{if(!t.toString)throw new Error("XML data is accepted in String or Bytes[] form.");t=t.toString()}if(e){!0===e&&(e={});var r=u.validate(t,e);if(!0!==r)throw Error("".concat(r.err.msg,":").concat(r.err.line,":").concat(r.err.col))}var n=new s(this.options);n.addExternalEntities(this.externalEntities);var i=n.parseXml(t);return this.options.preserveOrder||void 0===i?i:c(i,this.options)}},{key:"addEntity",value:function(t,e){if(-1!==e.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==t.indexOf("&")||-1!==t.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===e)throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=e}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=p},function(t,e){var r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:function(){return!1},commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t}};e.buildOptions=function(t){return Object.assign({},r,t)},e.defaultOptions=r},function(t,e,r){"use strict";function n(t,e,r){return(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function a(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:String(e)}var c=r(27),u=r(59),p=r(60),l=r(61),f=("<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,c.nameRegexp),a((function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"}},this.addExternalEntities=d,this.parseXml=g,this.parseTextData=m,this.resolveNameSpace=h,this.buildAttributesMap=v,this.isItStopNode=k,this.replaceEntitiesValue=x,this.readStopNodeData=O,this.saveTextToParentTag=w,this.addChild=b})));function d(t){for(var e=Object.keys(t),r=0;r<e.length;r++){var n=e[r];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:t[n]}}}function m(t,e,r,n,o,a,s){if(void 0!==t&&(this.options.trimValues&&!n&&(t=t.trim()),t.length>0)){s||(t=this.replaceEntitiesValue(t));var c=this.options.tagValueProcessor(e,t,r,o,a);return null==c?t:i(c)!==i(t)||c!==t?c:this.options.trimValues||t.trim()===t?j(t,this.options.parseTagValue,this.options.numberParseOptions):t}}function h(t){if(this.options.removeNSPrefix){var e=t.split(":"),r="/"===t.charAt(0)?"/":"";if("xmlns"===e[0])return"";2===e.length&&(t=r+e[1])}return t}var y=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function v(t,e,r){if(!this.options.ignoreAttributes&&"string"==typeof t){for(var n=c.getAllMatches(t,y),o=n.length,a={},s=0;s<o;s++){var u=this.resolveNameSpace(n[s][1]),p=n[s][4],l=this.options.attributeNamePrefix+u;if(u.length)if(this.options.transformAttributeName&&(l=this.options.transformAttributeName(l)),"__proto__"===l&&(l="#__proto__"),void 0!==p){this.options.trimValues&&(p=p.trim()),p=this.replaceEntitiesValue(p);var f=this.options.attributeValueProcessor(u,p,e);null==f?a[l]=p:i(f)!==i(p)||f!==p?a[l]=f:a[l]=j(p,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[l]=!0)}if(!Object.keys(a).length)return;if(this.options.attributesGroupName){var d={};return d[this.options.attributesGroupName]=a,d}return a}}var g=function(t){t=t.replace(/\r\n?/g,"\n");for(var e=new u("!xml"),r=e,i="",o="",a=0;a<t.length;a++){if("<"===t[a])if("/"===t[a+1]){var s=F(t,">",a,"Closing Tag is not closed."),c=t.substring(a+2,s).trim();if(this.options.removeNSPrefix){var l=c.indexOf(":");-1!==l&&(c=c.substr(l+1))}this.options.transformTagName&&(c=this.options.transformTagName(c)),r&&(i=this.saveTextToParentTag(i,r,o));var f=o.substring(o.lastIndexOf(".")+1);if(c&&-1!==this.options.unpairedTags.indexOf(c))throw new Error("Unpaired tag can not be used as closing tag: </".concat(c,">"));var d=0;f&&-1!==this.options.unpairedTags.indexOf(f)?(d=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):d=o.lastIndexOf("."),o=o.substring(0,d),r=this.tagsNodeStack.pop(),i="",a=s}else if("?"===t[a+1]){var m=E(t,a,!1,"?>");if(!m)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,r,o),this.options.ignoreDeclaration&&"?xml"===m.tagName||this.options.ignorePiTags);else{var h=new u(m.tagName);h.add(this.options.textNodeName,""),m.tagName!==m.tagExp&&m.attrExpPresent&&(h[":@"]=this.buildAttributesMap(m.tagExp,o,m.tagName)),this.addChild(r,h,o)}a=m.closeIndex+1}else if("!--"===t.substr(a+1,3)){var y=F(t,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){var v=t.substring(a+4,y-2);i=this.saveTextToParentTag(i,r,o),r.add(this.options.commentPropName,[n({},this.options.textNodeName,v)])}a=y}else if("!D"===t.substr(a+1,2)){var g=p(t,a);this.docTypeEntities=g.entities,a=g.i}else if("!["===t.substr(a+1,2)){var b=F(t,"]]>",a,"CDATA is not closed.")-2,x=t.substring(a+9,b);if(i=this.saveTextToParentTag(i,r,o),this.options.cdataPropName)r.add(this.options.cdataPropName,[n({},this.options.textNodeName,x)]);else{var w=this.parseTextData(x,r.tagname,o,!0,!1,!0);null==w&&(w=""),r.add(this.options.textNodeName,w)}a=b+2}else{var k=E(t,a,this.options.removeNSPrefix),_=k.tagName,O=k.tagExp,j=k.attrExpPresent,S=k.closeIndex;this.options.transformTagName&&(_=this.options.transformTagName(_)),r&&i&&"!xml"!==r.tagname&&(i=this.saveTextToParentTag(i,r,o,!1));var T=r;if(T&&-1!==this.options.unpairedTags.indexOf(T.tagname)&&(r=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),_!==e.tagname&&(o+=o?"."+_:_),this.isItStopNode(this.options.stopNodes,o,_)){var P="";if(O.length>0&&O.lastIndexOf("/")===O.length-1)a=k.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(_))a=k.closeIndex;else{var A=this.readStopNodeData(t,_,S+1);if(!A)throw new Error("Unexpected end of ".concat(_));a=A.i,P=A.tagContent}var C=new u(_);_!==O&&j&&(C[":@"]=this.buildAttributesMap(O,o,_)),P&&(P=this.parseTextData(P,_,o,!0,j,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),C.add(this.options.textNodeName,P),this.addChild(r,C,o)}else{if(O.length>0&&O.lastIndexOf("/")===O.length-1){O="/"===_[_.length-1]?_=_.substr(0,_.length-1):O.substr(0,O.length-1),this.options.transformTagName&&(_=this.options.transformTagName(_));var D=new u(_);_!==O&&j&&(D[":@"]=this.buildAttributesMap(O,o,_)),this.addChild(r,D,o),o=o.substr(0,o.lastIndexOf("."))}else{var I=new u(_);this.tagsNodeStack.push(r),_!==O&&j&&(I[":@"]=this.buildAttributesMap(O,o,_)),this.addChild(r,I,o),r=I}i="",a=S}}else i+=t[a]}return e.child};function b(t,e,r){var n=this.options.updateTag(e.tagname,r,e[":@"]);!1===n||("string"==typeof n?(e.tagname=n,t.addChild(e)):t.addChild(e))}var x=function(t){if(this.options.processEntities){for(var e in this.docTypeEntities){var r=this.docTypeEntities[e];t=t.replace(r.regx,r.val)}for(var n in this.lastEntities){var i=this.lastEntities[n];t=t.replace(i.regex,i.val)}if(this.options.htmlEntities)for(var o in this.htmlEntities){var a=this.htmlEntities[o];t=t.replace(a.regex,a.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function w(t,e,r,n){return t&&(void 0===n&&(n=0===Object.keys(e.child).length),void 0!==(t=this.parseTextData(t,e.tagname,r,!1,!!e[":@"]&&0!==Object.keys(e[":@"]).length,n))&&""!==t&&e.add(this.options.textNodeName,t),t=""),t}function k(t,e,r){var n="*."+r;for(var i in t){var o=t[i];if(n===o||e===o)return!0}return!1}function _(t,e){for(var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:">",i="",o=e;o<t.length;o++){var a=t[o];if(r)a===r&&(r="");else if('"'===a||"'"===a)r=a;else if(a===n[0]){if(!n[1])return{data:i,index:o};if(t[o+1]===n[1])return{data:i,index:o}}else"\t"===a&&(a=" ");i+=a}}function F(t,e,r,n){var i=t.indexOf(e,r);if(-1===i)throw new Error(n);return i+e.length-1}function E(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:">",i=_(t,e+1,n);if(i){var o=i.data,a=i.index,s=o.search(/\s/),c=o,u=!0;if(-1!==s&&(c=o.substr(0,s).replace(/\s\s*$/,""),o=o.substr(s+1)),r){var p=c.indexOf(":");-1!==p&&(u=(c=c.substr(p+1))!==i.data.substr(p+1))}return{tagName:c,tagExp:o,closeIndex:a,attrExpPresent:u}}}function O(t,e,r){for(var n=r,i=1;r<t.length;r++)if("<"===t[r])if("/"===t[r+1]){var o=F(t,">",r,"".concat(e," is not closed"));if(t.substring(r+2,o).trim()===e&&0===--i)return{tagContent:t.substring(n,r),i:o};r=o}else if("?"===t[r+1]){r=F(t,"?>",r+1,"StopNode is not closed.")}else if("!--"===t.substr(r+1,3)){r=F(t,"--\x3e",r+3,"StopNode is not closed.")}else if("!["===t.substr(r+1,2)){r=F(t,"]]>",r,"StopNode is not closed.")-2}else{var a=E(t,r,">");if(a)(a&&a.tagName)===e&&"/"!==a.tagExp[a.tagExp.length-1]&&i++,r=a.closeIndex}}function j(t,e,r){if(e&&"string"==typeof t){var n=t.trim();return"true"===n||"false"!==n&&l(t,r)}return c.isExist(t)?t:""}t.exports=f},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,r){return(e=a(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tagname=e,this.child=[],this[":@"]={}}var e,r,n;return e=t,(r=[{key:"add",value:function(t,e){"__proto__"===t&&(t="#__proto__"),this.child.push(i({},t,e))}},{key:"addChild",value:function(t){"__proto__"===t.tagname&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push(i(i({},t.tagname,t.child),":@",t[":@"])):this.child.push(i({},t.tagname,t.child))}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=s},function(t,e){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){u=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){for(var r="";e<t.length&&"'"!==t[e]&&'"'!==t[e];e++)r+=t[e];if(-1!==(r=r.trim()).indexOf(" "))throw new Error("External entites are not supported");for(var n=t[e++],i="";e<t.length&&t[e]!==n;e++)i+=t[e];return[r,i,e]}function o(t,e){return"!"===t[e+1]&&"-"===t[e+2]&&"-"===t[e+3]}function a(t,e){return"!"===t[e+1]&&"E"===t[e+2]&&"N"===t[e+3]&&"T"===t[e+4]&&"I"===t[e+5]&&"T"===t[e+6]&&"Y"===t[e+7]}function s(t,e){return"!"===t[e+1]&&"E"===t[e+2]&&"L"===t[e+3]&&"E"===t[e+4]&&"M"===t[e+5]&&"E"===t[e+6]&&"N"===t[e+7]&&"T"===t[e+8]}function c(t,e){return"!"===t[e+1]&&"A"===t[e+2]&&"T"===t[e+3]&&"T"===t[e+4]&&"L"===t[e+5]&&"I"===t[e+6]&&"S"===t[e+7]&&"T"===t[e+8]}function u(t,e){return"!"===t[e+1]&&"N"===t[e+2]&&"O"===t[e+3]&&"T"===t[e+4]&&"A"===t[e+5]&&"T"===t[e+6]&&"I"===t[e+7]&&"O"===t[e+8]&&"N"===t[e+9]}function p(t){for(var e=0;e<"!?\\/[]$%{}^&*()<>|+".length;e++){var r="!?\\/[]$%{}^&*()<>|+"[e];if(-1!==t.indexOf(r))throw new Error("Invalid character ".concat(r," in entity name"))}return t}t.exports=function(t,e){var n={};if("O"!==t[e+3]||"C"!==t[e+4]||"T"!==t[e+5]||"Y"!==t[e+6]||"P"!==t[e+7]||"E"!==t[e+8])throw new Error("Invalid Tag instead of DOCTYPE");e+=9;for(var l=1,f=!1,d=!1;e<t.length;e++)if("<"!==t[e]||d)if(">"===t[e]){if(d?"-"===t[e-1]&&"-"===t[e-2]&&(d=!1,l--):l--,0===l)break}else"["===t[e]?f=!0:t[e];else{if(f&&a(t,e)){var m=r(i(t,(e+=7)+1),3);entityName=m[0],val=m[1],e=m[2],-1===val.indexOf("&")&&(n[p(entityName)]={regx:RegExp("&".concat(entityName,";"),"g"),val:val})}else if(f&&s(t,e))e+=8;else if(f&&c(t,e))e+=8;else if(f&&u(t,e))e+=9;else{if(!o)throw new Error("Invalid DOCTYPE");d=!0}l++,""}if(0!==l)throw new Error("Unclosed DOCTYPE");return{entities:n,i:e}}},function(t,e){var r=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var i={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function o(t){return t&&-1!==t.indexOf(".")?("."===(t=t.replace(/0+$/,""))?t="0":"."===t[0]?t="0"+t:"."===t[t.length-1]&&(t=t.substr(0,t.length-1)),t):t}t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=Object.assign({},i,e),!t||"string"!=typeof t)return t;var a=t.trim();if(void 0!==e.skipLike&&e.skipLike.test(a))return t;if(e.hex&&r.test(a))return Number.parseInt(a,16);var s=n.exec(a);if(s){var c=s[1],u=s[2],p=o(s[3]),l=s[4]||s[6];if(!e.leadingZeros&&u.length>0&&c&&"."!==a[2])return t;if(!e.leadingZeros&&u.length>0&&!c&&"."!==a[1])return t;var f=Number(a),d=""+f;return-1!==d.search(/[eE]/)||l?e.eNotation?f:t:-1!==a.indexOf(".")?"0"===d&&""===p||d===p||c&&d==="-"+p?f:t:u?p===d||c+p===d?f:t:a===d||a===c+d?f:t}return t}},function(t,e,r){"use strict";function n(t){for(var e=Object.keys(t),r=0;r<e.length;r++){var n=e[r];if(":@"!==n)return n}}function i(t,e,r,n){if(e)for(var i=Object.keys(e),o=i.length,a=0;a<o;a++){var s=i[a];n.isArray(s,r+"."+s,!0,!0)?t[s]=[e[s]]:t[s]=e[s]}}function o(t,e){var r=e.textNodeName,n=Object.keys(t).length;return 0===n||!(1!==n||!t[r]&&"boolean"!=typeof t[r]&&0!==t[r])}e.prettify=function(t,e){return function t(e,r,a){for(var s,c={},u=0;u<e.length;u++){var p=e[u],l=n(p),f="";if(f=void 0===a?l:a+"."+l,l===r.textNodeName)void 0===s?s=p[l]:s+=""+p[l];else{if(void 0===l)continue;if(p[l]){var d=t(p[l],r,f),m=o(d,r);p[":@"]?i(d,p[":@"],f,r):1!==Object.keys(d).length||void 0===d[r.textNodeName]||r.alwaysCreateTextNode?0===Object.keys(d).length&&(r.alwaysCreateTextNode?d[r.textNodeName]="":d=""):d=d[r.textNodeName],void 0!==c[l]&&c.hasOwnProperty(l)?(Array.isArray(c[l])||(c[l]=[c[l]]),c[l].push(d)):r.isArray(l,f,m)?c[l]=[d]:c[l]=d}}}"string"==typeof s?s.length>0&&(c[r.textNodeName]=s):void 0!==s&&(c[r.textNodeName]=s);return c}(t,e)}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,r){var i;return i=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==n(i)?i:String(i))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(64),a={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function s(t){this.options=Object.assign({},a,t),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=p),this.processTextOrObjNode=c,this.options.format?(this.indentate=u,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function c(t,e,r){var n=this.j2x(t,r+1);return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,n.attrStr,r):this.buildObjectNode(n.val,e,n.attrStr,r)}function u(t){return this.options.indentBy.repeat(t)}function p(t){return!!t.startsWith(this.options.attributeNamePrefix)&&t.substr(this.attrPrefixLen)}s.prototype.build=function(t){return this.options.preserveOrder?o(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t=i({},this.options.arrayNodeName,t)),this.j2x(t,0).val)},s.prototype.j2x=function(t,e){var r="",i="";for(var o in t)if(void 0===t[o]);else if(null===t[o])"?"===o[0]?i+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(t[o]instanceof Date)i+=this.buildTextValNode(t[o],o,"",e);else if("object"!==n(t[o])){var a=this.isAttribute(o);if(a)r+=this.buildAttrPairStr(a,""+t[o]);else if(o===this.options.textNodeName){var s=this.options.tagValueProcessor(o,""+t[o]);i+=this.replaceEntitiesValue(s)}else i+=this.buildTextValNode(t[o],o,"",e)}else if(Array.isArray(t[o])){for(var c=t[o].length,u="",p=0;p<c;p++){var l=t[o][p];void 0===l||(null===l?"?"===o[0]?i+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+o+"/"+this.tagEndChar:"object"===n(l)?this.options.oneListGroup?u+=this.j2x(l,e+1).val:u+=this.processTextOrObjNode(l,o,e):u+=this.buildTextValNode(l,o,"",e))}this.options.oneListGroup&&(u=this.buildObjectNode(u,o,"",e)),i+=u}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName)for(var f=Object.keys(t[o]),d=f.length,m=0;m<d;m++)r+=this.buildAttrPairStr(f[m],""+t[o][f[m]]);else i+=this.processTextOrObjNode(t[o],o,e);return{attrStr:r,val:i}},s.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+e+'"'},s.prototype.buildObjectNode=function(t,e,r,n){if(""===t)return"?"===e[0]?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;var i="</"+e+this.tagEndChar,o="";return"?"===e[0]&&(o="?",i=""),r&&-1===t.indexOf("<")?this.indentate(n)+"<"+e+r+o+">"+t+i:!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===o.length?this.indentate(n)+"\x3c!--".concat(t,"--\x3e")+this.newLine:this.indentate(n)+"<"+e+r+o+this.tagEndChar+t+this.indentate(n)+i},s.prototype.closeTag=function(t){var e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":"></".concat(t),e},s.prototype.buildTextValNode=function(t,e,r,n){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName)return this.indentate(n)+"<![CDATA[".concat(t,"]]>")+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(n)+"\x3c!--".concat(t,"--\x3e")+this.newLine;if("?"===e[0])return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;var i=this.options.tagValueProcessor(e,t);return""===(i=this.replaceEntitiesValue(i))?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+i+"</"+e+this.tagEndChar},s.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(var e=0;e<this.options.entities.length;e++){var r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t},t.exports=s},function(t,e){function r(t){for(var e=Object.keys(t),r=0;r<e.length;r++){var n=e[r];if(":@"!==n)return n}}function n(t,e){var r="";if(t&&!e.ignoreAttributes)for(var n in t){var i=e.attributeValueProcessor(n,t[n]);!0===(i=o(i,e))&&e.suppressBooleanAttributes?r+=" ".concat(n.substr(e.attributeNamePrefix.length)):r+=" ".concat(n.substr(e.attributeNamePrefix.length),'="').concat(i,'"')}return r}function i(t,e){var r=(t=t.substr(0,t.length-e.textNodeName.length-1)).substr(t.lastIndexOf(".")+1);for(var n in e.stopNodes)if(e.stopNodes[n]===t||e.stopNodes[n]==="*."+r)return!0;return!1}function o(t,e){if(t&&t.length>0&&e.processEntities)for(var r=0;r<e.entities.length;r++){var n=e.entities[r];t=t.replace(n.regex,n.val)}return t}t.exports=function(t,e){var a="";return e.format&&e.indentBy.length>0&&(a="\n"),function t(e,a,s,c){for(var u="",p=!1,l=0;l<e.length;l++){var f=e[l],d=r(f),m="";if(m=0===s.length?d:"".concat(s,".").concat(d),d!==a.textNodeName)if(d!==a.cdataPropName)if(d!==a.commentPropName)if("?"!==d[0]){var h=c;""!==h&&(h+=a.indentBy);var y=n(f[":@"],a),v=c+"<".concat(d).concat(y),g=t(f[d],a,m,h);-1!==a.unpairedTags.indexOf(d)?a.suppressUnpairedNode?u+=v+">":u+=v+"/>":g&&0!==g.length||!a.suppressEmptyNode?g&&g.endsWith(">")?u+=v+">".concat(g).concat(c,"</").concat(d,">"):(u+=v+">",g&&""!==c&&(g.includes("/>")||g.includes("</"))?u+=c+a.indentBy+g+c:u+=g,u+="</".concat(d,">")):u+=v+"/>",p=!0}else{var b=n(f[":@"],a),x="?xml"===d?"":c,w=f[d][0][a.textNodeName];w=0!==w.length?" "+w:"",u+=x+"<".concat(d).concat(w).concat(b,"?>"),p=!0}else u+=c+"\x3c!--".concat(f[d][0][a.textNodeName],"--\x3e"),p=!0;else p&&(u+=c),u+="<![CDATA[".concat(f[d][0][a.textNodeName],"]]>"),p=!1;else{var k=f[d];i(m,a)||(k=o(k=a.tagValueProcessor(d,k),a)),p&&(u+=c),u+=k,p=!1}}return u}(t,e,"",a)}},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function s(t,e,r,n,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new a(r,n||t,o),c=i?i+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],s]:t._events[c].push(s):(t._events[c]=s,t._eventsCount++),t}function c(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),u.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},u.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,a=new Array(o);n<o;n++)a[n]=r[n].fn;return a},u.prototype.listenerCount=function(t){var e=i?i+t:t,r=this._events[e];return r?r.fn?1:r.length:0},u.prototype.emit=function(t,e,r,n,o,a){var s=i?i+t:t;if(!this._events[s])return!1;var c,u,p=this._events[s],l=arguments.length;if(p.fn){switch(p.once&&this.removeListener(t,p.fn,void 0,!0),l){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,e),!0;case 3:return p.fn.call(p.context,e,r),!0;case 4:return p.fn.call(p.context,e,r,n),!0;case 5:return p.fn.call(p.context,e,r,n,o),!0;case 6:return p.fn.call(p.context,e,r,n,o,a),!0}for(u=1,c=new Array(l-1);u<l;u++)c[u-1]=arguments[u];p.fn.apply(p.context,c)}else{var f,d=p.length;for(u=0;u<d;u++)switch(p[u].once&&this.removeListener(t,p[u].fn,void 0,!0),l){case 1:p[u].fn.call(p[u].context);break;case 2:p[u].fn.call(p[u].context,e);break;case 3:p[u].fn.call(p[u].context,e,r);break;case 4:p[u].fn.call(p[u].context,e,r,n);break;default:if(!c)for(f=1,c=new Array(l-1);f<l;f++)c[f-1]=arguments[f];p[u].fn.apply(p[u].context,c)}}return!0},u.prototype.on=function(t,e,r){return s(this,t,e,r,!1)},u.prototype.once=function(t,e,r){return s(this,t,e,r,!0)},u.prototype.removeListener=function(t,e,r,n){var o=i?i+t:t;if(!this._events[o])return this;if(!e)return c(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||n&&!a.once||r&&a.context!==r||c(this,o);else{for(var s=0,u=[],p=a.length;s<p;s++)(a[s].fn!==e||n&&!a[s].once||r&&a[s].context!==r)&&u.push(a[s]);u.length?this._events[o]=1===u.length?u[0]:u:c(this,o)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&c(this,e)):(this._events=new o,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=i,u.EventEmitter=u,t.exports=u},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}function a(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function s(t){var e="function"==typeof Map?new Map:void 0;return(s=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return c(t,arguments,l(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,t)})(t)}function c(t,e,r){return(c=u()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&p(i,r.prototype),i}).apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function p(t,e){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=r(67),d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(f,t);var e,r,n,o,s,c=(e=f,r=u(),function(){var t,n=l(e);if(r){var i=l(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return a(this,t)});function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(e=c.call(this,t)).name="TimeoutError",e}return n=f,o&&i(n.prototype,o),s&&i(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n}(s(Error)),m=function(t,e,r){return new Promise((function(n,i){if("number"!=typeof e||e<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(e!==1/0){var o=setTimeout((function(){if("function"!=typeof r){var o="string"==typeof r?r:"Promise timed out after ".concat(e," milliseconds"),a=r instanceof Error?r:new d(o);"function"==typeof t.cancel&&t.cancel(),i(a)}else try{n(r())}catch(t){i(t)}}),e);f(t.then(n,i),(function(){clearTimeout(o)}))}else n(t)}))};t.exports=m,t.exports.default=m,t.exports.TimeoutError=d},function(t,e,r){"use strict";t.exports=function(t,e){return e=e||function(){},t.then((function(t){return new Promise((function(t){t(e())})).then((function(){return t}))}),(function(t){return new Promise((function(t){t(e())})).then((function(){throw t}))}))}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:String(e)}Object.defineProperty(e,"__esModule",{value:!0});var a=r(69),s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._queue=[]}var e,r,n;return e=t,(r=[{key:"enqueue",value:function(t,e){var r={priority:(e=Object.assign({priority:0},e)).priority,run:t};if(this.size&&this._queue[this.size-1].priority>=e.priority)this._queue.push(r);else{var n=a.default(this._queue,r,(function(t,e){return e.priority-t.priority}));this._queue.splice(n,0,r)}}},{key:"dequeue",value:function(){var t=this._queue.shift();return null==t?void 0:t.run}},{key:"filter",value:function(t){return this._queue.filter((function(e){return e.priority===t.priority})).map((function(t){return t.run}))}},{key:"size",get:function(){return this._queue.length}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){for(var n=0,i=t.length;i>0;){var o=i/2|0,a=n+o;r(t[a],e)<=0?(n=++a,i-=o+1):i=o}return n}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.r(e),r.d(e,"Filestack",(function(){return $e})),r.d(e,"init",(function(){return Ue})),r.d(e,"version",(function(){return qe})),r.d(e,"EAlignOptions",(function(){return Ht})),r.d(e,"EAlignFacesOptions",(function(){return Wt})),r.d(e,"EFitOptions",(function(){return Yt})),r.d(e,"EBlurMode",(function(){return Qt})),r.d(e,"EShapeType",(function(){return Kt})),r.d(e,"ENoiseType",(function(){return Jt})),r.d(e,"EStyleType",(function(){return Xt})),r.d(e,"EColorspaceType",(function(){return te})),r.d(e,"ECropfacesType",(function(){return ee})),r.d(e,"ESmartCropMode",(function(){return re})),r.d(e,"EImageWatermarkPosition",(function(){return ne})),r.d(e,"EAudioTypes",(function(){return ie})),r.d(e,"EVideoTypes",(function(){return oe})),r.d(e,"EUrlscreenshotAgent",(function(){return ae})),r.d(e,"EUrlscreenshotMode",(function(){return se})),r.d(e,"EUrlscreenshotOrientation",(function(){return ce})),r.d(e,"EVideoLocations",(function(){return ue})),r.d(e,"EVideoAccess",(function(){return pe})),r.d(e,"EVideoAccessMode",(function(){return le})),r.d(e,"transform",(function(){return fe})),r.d(e,"Align",(function(){return ut})),r.d(e,"FitOptions",(function(){return pt})),r.d(e,"BlurMode",(function(){return lt})),r.d(e,"ShapeType",(function(){return ft})),r.d(e,"NoiseType",(function(){return dt})),r.d(e,"StyleType",(function(){return mt})),r.d(e,"ColorspaceType",(function(){return ht})),r.d(e,"CropfacesType",(function(){return yt})),r.d(e,"ImageWatermarkPosition",(function(){return vt})),r.d(e,"SmartCropMode",(function(){return gt})),r.d(e,"AudioTypes",(function(){return bt})),r.d(e,"VideoTypes",(function(){return xt})),r.d(e,"URLScreenshotAgent",(function(){return wt})),r.d(e,"URLScreenshotMode",(function(){return kt})),r.d(e,"URLScreenshotOrientation",(function(){return _t})),r.d(e,"Locations",(function(){return Ft})),r.d(e,"VideoAccess",(function(){return Et})),r.d(e,"VideoAccessMode",(function(){return Ot})),r.d(e,"EnhancePreset",(function(){return jt})),r.d(e,"Filelink",(function(){return Pt})),r.d(e,"FilestackErrorType",(function(){return K})),r.d(e,"FsHttpMethod",(function(){return zt.a})),r.d(e,"FsRequest",(function(){return Ut})),r.d(e,"FsRequestErrorCode",(function(){return qt.b})),r.d(e,"FsRequestError",(function(){return qt.a})),r.d(e,"FsCancelToken",(function(){return Vt})),r.d(e,"resolveCdnUrl",(function(){return ot.resolveCdnUrl})),r.d(e,"resolveHost",(function(){return ot.resolveHost})),r.d(e,"removeEmpty",(function(){return ot.removeEmpty})),r.d(e,"uniqueTime",(function(){return ot.uniqueTime})),r.d(e,"uniqueId",(function(){return ot.uniqueId})),r.d(e,"extensionToMime",(function(){return ot.extensionToMime})),r.d(e,"sanitizeName",(function(){return ot.sanitizeName})),r.d(e,"filterObject",(function(){return ot.filterObject})),r.d(e,"cleanUpCallbacks",(function(){return ot.cleanUpCallbacks})),r.d(e,"md5",(function(){return ot.md5})),r.d(e,"b64",(function(){return ot.b64})),r.d(e,"getVersion",(function(){return ot.getVersion})),r.d(e,"isMobile",(function(){return ot.isMobile})),r.d(e,"isFacebook",(function(){return ot.isFacebook})),r.d(e,"TransformSchema",(function(){return tt})),r.d(e,"getSecurity",(function(){return c})),r.d(e,"validateWebhookSignature",(function(){return u})),r.d(e,"Client",(function(){return Re})),r.d(e,"FilestackError",(function(){return X})),r.d(e,"PickerDisplayMode",(function(){return ze})),r.d(e,"getMimetype",(function(){return ot.getMimetype})),r.d(e,"PrefetchEvents",(function(){return Ae}));var i=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==n(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(i,o,function(e){return t[e]}.bind(null,o));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){r.r(e),r.d(e,"loadModules",(function(){return c})),r.d(e,"loadModule",(function(){return u})),r.d(e,"registerModule",(function(){return p})),r.d(e,"loadCss",(function(){return l})),r.d(e,"FILESTACK_MODULES",(function(){return n}));var n,i={},o=function(){var t,e=(t="undefined"==typeof window?i:window).filestackInternals;return e||(e={modules:{}},t.filestackInternals=e),e.modules||(e.modules={}),e}(),a=o&&o.modules,s=function(t,e,r){t.detachEvent?t.detachEvent("onreadystatechange",e):t.removeEventListener(r,e,!1)},c=function(t){return Promise.all(t.map((function(t){var e=t.id,r=t.url;return u(e,r)}))).then((function(e){var r={};return e.forEach((function(e,n){var i=t[n];r[i.id]=e})),r}))},u=function(t,e){if("undefined"==typeof window)return Promise.reject(new Error("Load module is working only on browser env"));if(!t)throw new Error("Module id is required");var r=a[t="fs-loader-"+t];return r||(a[t]={},r=a[t]),r.instance?Promise.resolve(r.instance):r.promise?r.promise:r.promise=new Promise((function(r,n){var i=function e(i){if("load"===i.type||/^(complete|loaded)$/.test((i.currentTarget||i.srcElement).readyState)){var o=i.currentTarget||i.srcElement;s(o,e,"load"),s(o,n,"error"),setTimeout((function(){return r(a[t]?a[t].instance:void 0)}),10)}},o=document.createElement("script");o.id=t,!o.attachEvent||o.attachEvent.toString&&o.attachEvent.toString().indexOf("[native code")<0?(o.addEventListener("load",i,!1),o.addEventListener("onerror",n,!1)):o.attachEvent("onreadystatechange",i),o.setAttribute("crossorigin","anonymous"),o.setAttribute("charset","utf-8"),o.setAttribute("async","true"),o.src=e,document.body.appendChild(o)}))},p=function(t,e,r){if("undefined"!=typeof window){if(!t)throw new Error("Module id is required");if(!a)throw new Error("Loader is not initialized");a[t="fs-loader-"+t]&&(a[t]={instance:e,metadata:r})}},l=function(t){return null!==document.querySelector('link[href="'.concat(t,'"]'))?Promise.resolve():new Promise((function(e){var r=document.getElementsByTagName("head")[0],n=document.createElement("link");n.rel="stylesheet",n.href=t,n.addEventListener("load",(function t(){e(),n.removeEventListener("load",t)})),r.appendChild(n)}))};!function(t){t.FILESTACK_SDK="filestack-sdk",t.TRANSFORMS_UI="transforms-ui",t.PICKER="picker"}(n||(n={}))}]),o=(i.loadModules,i.loadModule),a=i.registerModule,s=(i.loadCss,i.FILESTACK_MODULES),c=function(t,e){throw new Error("getSecurity is only supported in nodejs")},u=function(t,e,r){throw new Error("validateWebhookSignature is only supported in nodejs")},p=r(0),l=r(7),f=r.n(l);function d(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}var h=function(){return(h=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function y(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(y(arguments[e]));return t}function g(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function x(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}var w=r(6);var k=Object.prototype.toString;function _(t,e){return k.call(t)==="[object "+e+"]"}function F(t){return _(t,"Object")}function E(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function O(t){var e,r;if(F(t)){var n={};try{for(var i=g(Object.keys(t)),o=i.next();!o.done;o=i.next()){var a=o.value;void 0!==t[a]&&(n[a]=O(t[a]))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n}return Array.isArray(t)?t.map(O):t}function j(){var t=Object(w.a)(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var r=new Uint16Array(8);e.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var n=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return n(r[0])+n(r[1])+n(r[2])+n(r[3])+n(r[4])+n(r[5])+n(r[6])+n(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}var S,T=r(72),P="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,A=Object(w.a)(),C=["debug","info","warn","error","log","assert"];function D(t){var e=Object(w.a)();if(!("console"in e))return t();var r=e.console,n={};C.forEach((function(t){var i=r[t]&&r[t].__sentry_original__;t in e.console&&i&&(n[t]=r[t],r[t]=i)}));try{return t()}finally{Object.keys(n).forEach((function(t){r[t]=n[t]}))}}function I(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return P?C.forEach((function(r){e[r]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t&&D((function(){var t;(t=A.console)[r].apply(t,x(["Sentry Logger ["+r+"]:"],e))}))}})):C.forEach((function(t){e[t]=function(){}})),e}S=P?Object(w.b)("logger",I):I();var L=r(11),N="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var z=function(){function t(t){var e=this;this._state=0,this._handlers=[],this._resolve=function(t){e._setResult(1,t)},this._reject=function(t){e._setResult(2,t)},this._setResult=function(t,r){0===e._state&&(E(r)?r.then(e._resolve,e._reject):(e._state=t,e._value=r,e._executeHandlers()))},this._executeHandlers=function(){if(0!==e._state){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t[0]||(1===e._state&&t[1](e._value),2===e._state&&t[2](e._value),t[0]=!0)}))}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return t.prototype.then=function(e,r){var n=this;return new t((function(t,i){n._handlers.push([!1,function(r){if(e)try{t(e(r))}catch(t){i(t)}else t(r)},function(e){if(r)try{t(r(e))}catch(t){i(t)}else i(e)}]),n._executeHandlers()}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var r=this;return new t((function(t,n){var i,o;return r.then((function(t){o=!1,i=t,e&&e()}),(function(t){o=!0,i=t,e&&e()})).then((function(){o?n(i):t(i)}))}))},t}(),B=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return t.clone=function(e){var r=new t;return e&&(r._breadcrumbs=v(e._breadcrumbs),r._tags=h({},e._tags),r._extra=h({},e._extra),r._contexts=h({},e._contexts),r._user=e._user,r._level=e._level,r._span=e._span,r._session=e._session,r._transactionName=e._transactionName,r._fingerprint=e._fingerprint,r._eventProcessors=v(e._eventProcessors),r._requestSession=e._requestSession),r},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=h(h({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var r;return this._tags=h(h({},this._tags),((r={})[t]=e,r)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=h(h({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var r;return this._extra=h(h({},this._extra),((r={})[t]=e,r)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var r;return null===e?delete this._contexts[t]:this._contexts=h(h({},this._contexts),((r={})[t]=e,r)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var r=e(this);return r instanceof t?r:this}return e instanceof t?(this._tags=h(h({},this._tags),e._tags),this._extra=h(h({},this._extra),e._extra),this._contexts=h(h({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):F(e)&&(e=e,this._tags=h(h({},this._tags),e.tags),this._extra=h(h({},this._extra),e.extra),this._contexts=h(h({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var r="number"==typeof e?Math.min(e,100):100;if(r<=0)return this;var n=h({timestamp:Object(T.a)()},t);return this._breadcrumbs=v(this._breadcrumbs,[n]).slice(-r),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){if(this._extra&&Object.keys(this._extra).length&&(t.extra=h(h({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=h(h({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=h(h({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=h(h({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=h({trace:this._span.getTraceContext()},t.contexts);var r=this._span.transaction&&this._span.transaction.name;r&&(t.tags=h({transaction:r},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=v(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(v(M(),this._eventProcessors),t,e)},t.prototype.setSDKProcessingMetadata=function(t){return this._sdkProcessingMetadata=h(h({},this._sdkProcessingMetadata),t),this},t.prototype._notifyEventProcessors=function(t,e,r,n){var i=this;return void 0===n&&(n=0),new z((function(o,a){var s=t[n];if(null===e||"function"!=typeof s)o(e);else{var c=s(h({},e),r);E(c)?c.then((function(e){return i._notifyEventProcessors(t,e,r,n+1).then(o)})).then(null,a):i._notifyEventProcessors(t,c,r,n+1).then(o).then(null,a)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function M(){return Object(w.b)("globalEventProcessors",(function(){return[]}))}var R=function(){function t(t){this.errors=0,this.sid=j(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=Object(T.b)();this.timestamp=e,this.started=e,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Object(T.b)(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:j()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return O({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},t}(),$=function(){function t(t,e,r){void 0===e&&(e=new B),void 0===r&&(r=4),this._version=r,this._stack=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=B.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,e){var r=this._lastEventId=e&&e.event_id?e.event_id:j(),n=e;if(!e){var i=void 0;try{throw new Error("Sentry syntheticException")}catch(t){i=t}n={originalException:t,syntheticException:i}}return this._invokeClient("captureException",t,h(h({},n),{event_id:r})),r},t.prototype.captureMessage=function(t,e,r){var n=this._lastEventId=r&&r.event_id?r.event_id:j(),i=r;if(!r){var o=void 0;try{throw new Error(t)}catch(t){o=t}i={originalException:t,syntheticException:o}}return this._invokeClient("captureMessage",t,e,h(h({},i),{event_id:n})),n},t.prototype.captureEvent=function(t,e){var r=e&&e.event_id?e.event_id:j();return"transaction"!==t.type&&(this._lastEventId=r),this._invokeClient("captureEvent",t,h(h({},e),{event_id:r})),r},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var r=this.getStackTop(),n=r.scope,i=r.client;if(n&&i){var o=i.getOptions&&i.getOptions()||{},a=o.beforeBreadcrumb,s=void 0===a?null:a,c=o.maxBreadcrumbs,u=void 0===c?100:c;if(!(u<=0)){var p=Object(T.a)(),l=h({timestamp:p},t),f=s?D((function(){return s(l,e)})):l;null!==f&&n.addBreadcrumb(f,u)}}},t.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},t.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},t.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},t.prototype.setTag=function(t,e){var r=this.getScope();r&&r.setTag(t,e)},t.prototype.setExtra=function(t,e){var r=this.getScope();r&&r.setExtra(t,e)},t.prototype.setContext=function(t,e){var r=this.getScope();r&&r.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop(),r=e.scope,n=e.client;r&&n&&t(r)},t.prototype.run=function(t){var e=q(this);try{t(this)}finally{q(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return N&&S.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},t.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var t=this.getStackTop(),e=t&&t.scope,r=e&&e.getSession();r&&r.close(),this._sendSessionUpdate(),e&&e.setSession()},t.prototype.startSession=function(t){var e=this.getStackTop(),r=e.scope,n=e.client,i=n&&n.getOptions()||{},o=i.release,a=i.environment,s=(Object(w.a)().navigator||{}).userAgent,c=new R(h(h(h({release:o,environment:a},r&&{user:r.getUser()}),s&&{userAgent:s}),t));if(r){var u=r.getSession&&r.getSession();u&&"ok"===u.status&&u.update({status:"exited"}),this.endSession(),r.setSession(c)}return c},t.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),e=t.scope,r=t.client;if(e){var n=e.getSession&&e.getSession();n&&r&&r.captureSession&&r.captureSession(n)}},t.prototype._invokeClient=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=this.getStackTop(),o=i.scope,a=i.client;a&&a[t]&&(e=a)[t].apply(e,v(r,[o]))},t.prototype._callExtensionMethod=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=U(),i=n.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[t])return i.extensions[t].apply(this,e);N&&S.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function U(){var t=Object(w.a)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function q(t){var e=U(),r=Z(e);return H(e,t),r}function V(){var t=U();return G(t)&&!Z(t).isOlderThan(4)||H(t,new $),Object(L.b)()?function(t){try{var e=U().__SENTRY__,r=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!r)return Z(t);if(!G(r)||Z(r).isOlderThan(4)){var n=Z(t).getStackTop();H(r,new $(n.client,B.clone(n.scope)))}return Z(r)}catch(e){return Z(t)}}(t):Z(t)}function G(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Z(t){return Object(w.b)("hub",(function(){return new $}),t)}function H(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}function W(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=V();if(n&&n[t])return n[t].apply(n,m(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function Y(t,e){return W("captureException",t,{captureContext:e,originalException:t,syntheticException:new Error("Sentry syntheticException")})}function Q(t){W("withScope",t)}var K,J={urls:{processUrl:"https://process.filestackapi.com",fileApiUrl:"https://www.filestackapi.com/api/file",uploadApiUrl:"https://upload.filestackapi.com",cloudApiUrl:"https://cloud.filestackapi.com",cdnUrl:"https://cdn.filestackcontent.com",pickerUrl:"https://static.filestackapi.com/picker/".concat("1.27.3","/picker.js")}};!function(t){t.VALIDATION="validation",t.REQUEST="request",t.ABORTED="aborted",t.OTHER="other"}(K||(K={}));var X=function(t){function e(r,n,i){var o=t.call(this,r)||this;return Object.setPrototypeOf(o,e.prototype),o.details=n,o.type=i,o}return Object(p.c)(e,t),e}(Error),tt={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Transformations",description:"Filestack transformations parameters",type:"object",additionalProperties:!1,properties:{flip:{type:"boolean",additionalProperties:!1},auto_image:{type:"boolean",additionalProperties:!1},no_metadata:{type:"boolean",additionalProperties:!1},compress:{additionalProperties:!1,oneOf:[{type:"boolean"},{type:"object",properties:{metadata:{type:"boolean",default:!1}}}]},flop:{type:"boolean",additionalProperties:!1},enhance:{default:!0,oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{preset:{type:"string",enum:["auto","vivid","beautify","beautify_plus","fix_dark","fix_noise","fix_tint","outdoor","fireworks"]}}}]},redeye:{type:"boolean",additionalProperties:!1},monochrome:{type:"boolean",additionalProperties:!1},negative:{type:"boolean",additionalProperties:!1},tags:{type:"boolean",additionalProperties:!1},sfw:{type:"boolean",additionalProperties:!1},imagesize:{type:"boolean",additionalProperties:!1},smart_crop:{width:{type:"integer",minimum:0,maximum:1e4},height:{type:"integer",minimum:0,maximum:1e4},mode:{type:"string",default:"auto",enum:["face","auto"]}},animate:{type:"object",properties:{delay:{type:"integer",minimum:0,maximum:1e4,default:1e3},loop:{type:"integer",minimum:0,maximum:1e3,default:0},width:{type:"integer",minimum:1,maximum:1800},height:{type:"integer",minimum:1,maximum:1800},fit:{type:"string",default:"clip",enum:["clip","scale","crop"]},background:{$ref:"colorDef",default:"transparent"},align:{$ref:"positionDef",default:"center"}}},metadata:{type:"object",params:{type:"array",items:{type:"string",enum:["filename","mimetype","size","width","height","writeable","path","container","cloud","exif","source_url","md5","sha256","sha1","sha512"]},minItems:0,uniqueItems:!0,additionalItems:!1},additionalProperties:!1},resize:{type:"object",properties:{width:{type:"number",minimum:0,maximum:1e4},height:{type:"number",minimum:0,maximum:1e4},fit:{type:"string",enum:["clip","crop","scale","max"],default:"clip"},align:{$ref:"positionDef",default:"center"}},additionalProperties:!1,anyOf:[{required:["width"]},{required:["height"]}]},crop:{type:"object",properties:{dim:{type:"array",additionalItems:!1,minItems:4,items:[{type:"integer",minimum:0,maximum:1e5},{type:"integer",minimum:0,maximum:1e5},{type:"integer",minimum:1,maximum:1e5},{type:"integer",minimum:1,maximum:1e5}]}},required:["dim"]},rotate:{type:"object",properties:{deg:{oneOf:[{type:"string",enum:["exif"]},{type:"number",minimum:0,maximum:359}]},exif:{type:"boolean"},background:{$ref:"colorDef",default:"FFFFFFFF"}},additionalProperties:!1},detect_faces:{oneOf:[{type:"boolean"},{type:"object",properties:{maxsize:{type:"number",minimum:0,maximum:1e4,default:.35},minsize:{type:"number",minimum:0,maximum:1e4,default:.35},export:{type:"boolean"},color:{$ref:"colorDef",default:"000000FF"}},additionalProperties:!1}]},crop_faces:{oneOf:[{type:"boolean"},{type:"object",properties:{faces:{default:1,$ref:"facesDef"},width:{type:"number",minimum:1,maximum:1e4},height:{type:"number",minimum:1,maximum:1e4},maxsize:{type:"number",minimum:0,maximum:1e4,default:.35},minsize:{type:"number",minimum:0,maximum:1e4,default:.35},buffer:{type:"integer",minimum:0,maximum:1e4},mode:{type:"string",enum:["crop","thumb","fill"],default:"thumb"}},additionalProperties:!1}]},pixelate_faces:{oneOf:[{type:"boolean"},{type:"object",properties:{faces:{$ref:"facesDef",default:"all"},maxsize:{type:"number",minimum:0,maximum:1e4,default:.35},minsize:{type:"number",minimum:0,maximum:1e4,default:.35},buffer:{type:"integer",minimum:0,maximum:1e4},amount:{type:"integer",minimum:2,maximum:100,default:10},blur:{type:"number",minimum:0,maximum:20,default:4},type:{type:"string",enum:["rect","oval"],default:"rect"}},additionalProperties:!1}]},blur_faces:{oneOf:[{type:"boolean"},{type:"object",properties:{faces:{$ref:"facesDef",default:"all"},maxsize:{type:"number",minimum:0,maximum:1e4,default:.35},minsize:{type:"number",minimum:0,maximum:1e4,default:.35},buffer:{type:"integer",minimum:0,maximum:1e4},amount:{type:"number",minimum:0,maximum:10,default:10},blur:{type:"number",minimum:0,maximum:20,default:4},type:{type:"string",enum:["rect","oval"],default:"rect"}},additionalProperties:!1}]},rounded_corners:{oneOf:[{type:"boolean"},{type:"object",properties:{radius:{oneOf:[{type:"integer",minimum:1,maximum:1e4},{type:"string",enum:["max"]}]},blur:{type:"number",minimum:0,maximum:20,default:.3},background:{$ref:"colorDef"}},additionalProperties:!1}]},vignette:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:0,maximum:100,default:20},blurmode:{type:"string",enum:["gaussian","linear"],default:"gaussian"},background:{$ref:"colorDef"}},additionalProperties:!1}]},polaroid:{oneOf:[{type:"boolean"},{type:"object",properties:{rotate:{type:"integer",minimum:0,maximum:359},color:{$ref:"colorDef",default:"snow"},background:{$ref:"colorDef"}},additionalProperties:!1}]},torn_edges:{oneOf:[{type:"boolean"},{type:"object",properties:{spread:{type:"array",additionalItems:!1,minItems:2,items:[{type:"integer",minimum:1,maximum:1e4,default:1},{type:"integer",minimum:1,maximum:1e4,default:10}]},background:{$ref:"colorDef"}},additionalProperties:!1}]},shadow:{oneOf:[{type:"boolean"},{type:"object",properties:{blur:{type:"number",minimum:0,maximum:20,default:100},opacity:{type:"integer",minimum:0,maximum:100,default:60},vector:{type:"array",additionalItems:!1,minItems:2,items:[{type:"integer",minimum:-1e3,maximum:1e3,default:4},{type:"integer",minimum:-1e3,maximum:1e3,default:4}]},color:{$ref:"colorDef"},background:{$ref:"colorDef"}},additionalProperties:!1}]},circle:{oneOf:[{type:"boolean"},{type:"object",properties:{background:{$ref:"colorDef"}},additionalProperties:!1}]},border:{oneOf:[{type:"boolean"},{type:"object",properties:{color:{$ref:"colorDef"},background:{$ref:"colorDef"},width:{type:"integer",minimum:0,maximum:1e3}},additionalProperties:!1}]},sharpen:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:0,maximum:20,default:2}},additionalProperties:!1}]},blur:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:0,maximum:20,default:2}},additionalProperties:!1}]},blackwhite:{oneOf:[{type:"boolean"},{type:"object",properties:{threshold:{type:"integer",minimum:0,maximum:100,default:50}},additionalProperties:!1}]},sepia:{oneOf:[{type:"boolean"},{type:"object",properties:{tone:{type:"integer",minimum:0,maximum:100,default:80}},additionalProperties:!1}]},pixelate:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:2,maximum:100,default:2}},additionalProperties:!1}]},oil_paint:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:2,maximum:100,default:2}},additionalProperties:!1}]},modulate:{oneOf:[{type:"boolean"},{type:"object",properties:{brightness:{type:"integer",minimum:0,maximum:1e4,default:100},saturation:{type:"integer",minimum:0,maximum:1e4,default:100},hue:{type:"integer",minimum:0,maximum:359,default:0}},additionalProperties:!1}]},ascii:{oneOf:[{type:"boolean"},{type:"object",properties:{foreground:{$ref:"colorDef",default:"000000FF"},background:{$ref:"colorDef",default:"FFFFFFFF"},colored:{type:"boolean",default:!1},size:{type:"integer",minimum:10,maximum:100,default:100},reverse:{type:"boolean",default:!1}},additionalProperties:!1}]},collage:{type:"object",properties:{files:{type:"array",minItems:1,items:[{type:"string"}]},margin:{type:"integer",minimum:1,maximum:100,default:10},width:{type:"integer",minimum:0,maximum:1e4},height:{type:"integer",minimum:0,maximum:1e4},color:{$ref:"colorDef",default:"FFFFFFFF"},fit:{type:"string",enum:["auto","crop"]},autorotate:{type:"boolean",default:!1}},required:["width","height","files"],additionalProperties:!1},urlscreenshot:{oneOf:[{type:"boolean"},{type:"object",properties:{agent:{type:"string",enum:["desktop","mobile"],default:"desktop"},width:{type:"integer",minimum:1,maximum:1920,default:1024},height:{type:"integer",minimum:1,maximum:8e3,default:768},mode:{type:"string",enum:["all","window"],default:"all"},delay:{type:"integer",minimum:0,maximum:2e4,default:1e3},orientation:{type:"string",enum:["portrait","landscape"],default:"portrait"},device:{type:"string",default:""}},additionalProperties:!1}]},upscale:{oneOf:[{type:"boolean"},{type:"object",properties:{noise:{type:"string",enum:["none","low","medium","high"],default:"none"},upscale:{type:"boolean",default:!0},style:{type:"string",enum:["artwork","photo"],default:"photo"}},additionalProperties:!1}]},output:{type:"object",additionalProperties:!1,properties:{format:{type:"string",enum:["doc","docx","html","jpg","odp","ods","odt","pjpg","pdf","png","ppt","pptx","svg","txt","webp","xls","xlsx"]},page:{type:"integer",minimum:1,maximum:99999},density:{type:"integer",minimum:1,maximum:500},compress:{type:"boolean"},quality:{oneOf:[{type:"string",enum:["input"]},{type:"integer",minimum:1,maximum:100,default:95}]},secure:{type:"boolean",default:!1},docinfo:{type:"boolean",default:!1},strip:{type:"boolean",default:!1},colorspace:{type:"string",enum:["rgb","cmyk","input"],default:"rgb"},background:{$ref:"colorDef"},pageformat:{type:"string",enum:["a2","a3","a4","a5","b4","b5","letter","legal","tabloid"]},pageorientation:{type:"string",enum:["landscape","portrait"]}}},pjpg:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{quality:{type:"integer",minimum:0,maximum:100},metadata:{type:"boolean",default:!1}}}]},quality:{type:"object",additionalProperties:!1,properties:{value:{type:"integer",minimum:1,maximum:100}}},cache:{oneOf:[{type:"boolean"},{type:"object",properties:{expiry:{type:"integer"}}}]},video_convert:{type:"object",additionalProperties:!1,properties:{width:{type:"integer",minimum:1,maximum:4096},height:{type:"integer",minimum:1,maximum:4096},preset:{type:"string"},force:{type:"boolean"},title:{type:"string"},extname:{type:"string"},upscale:{type:"boolean"},aspect_mode:{type:"string",enum:["letterbox","pad","crop","preserve","constrain"],default:"letterbox"},audio_sample_rate:{type:"integer",minimum:1,maximum:99999},two_pass:{type:"boolean"},video_bitrate:{type:"integer",minimum:1,maximum:5e3},fps:{type:"integer",minimum:1,maximum:300},keyframe_interval:{type:"integer",minimum:250,maximum:250},audio_bitrate:{type:"integer",minimum:1,maximum:999},audio_codec:{type:"string"},audio_channels:{type:"integer",minimum:1,maximum:12},clip_length:{type:"string",pattern:"^([0-1]?\\d|2[0-3])(?::([0-5]?\\d))?(?::([0-5]?\\d))?$"},clip_offset:{type:"string",pattern:"^([0-1]?\\d|2[0-3])(?::([0-5]?\\d))?(?::([0-5]?\\d))?$"},watermark_url:{type:"string"},watermark_top:{type:"integer",minimum:0,maximum:9999},watermark_right:{type:"integer",minimum:0,maximum:9999},watermark_bottom:{type:"integer",minimum:0,maximum:9999},watermark_left:{type:"integer",minimum:0,maximum:9999},frame_count:{type:"integer",minimum:1,maximum:1,default:1},filename:{type:"string"},location:{$ref:"locationsDef"},path:{type:"string"},container:{type:"string"},access:{type:"string",enum:["public","private"],default:"public"}}},store:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{filename:{type:"string"},location:{$ref:"locationsDef"},path:{type:"string"},container:{type:"string"},region:{$ref:"regionsDef"},access:{type:"string",enum:["public","private"],default:"private"},base64decode:{type:"boolean"},workflows:{$ref:"workflowsDef"}}}]},watermark:{type:"object",properties:{file:{type:"string"},size:{type:"number",minimum:0,maximum:500},position:{$ref:"positionDef"}},required:["file"],additionalProperties:!1},partial_blur:{type:"object",properties:{objects:{$ref:"objectsDef"},amount:{type:"number",minimum:0,maximum:20},blur:{type:"number",minimum:0,maximum:20},type:{type:"string",enum:["rect","oval"]}},required:["objects"]},partial_pixelate:{type:"object",properties:{objects:{$ref:"objectsDef"},amount:{type:"number",minimum:2,maximum:100},blur:{type:"number",minimum:0,maximum:20},type:{type:"string",enum:["rect","oval"]}},required:["objects"]},security:{type:"object",additionalProperties:!1,properties:{policy:{type:"string"},signature:{type:"string"}},required:["policy","signature"]},pdfinfo:{oneOf:[{type:"boolean"},{type:"object",properties:{colorinfo:{type:"boolean"}}}]},pdfconvert:{type:"object",additionalProperties:!1,properties:{pageorientation:{type:"string",enum:["portrait","landscape"]},pageformat:{$ref:"pageFormatDef"},pages:{$ref:"pageRangeDef"}},anyOf:[{required:["pageorientation"]},{required:["pageformat"]},{required:["pages"]}]},fallback:{type:"object",additionalProperties:!1,properties:{handle:{type:"string"},cache:{type:"integer",minimum:1,maximum:31536e3}},required:["handle"]},zip:{type:"string"},minify_css:{type:"object",additionalProperties:!1,properties:{gzip:{type:"boolean"},level:{type:"number",enum:[1,2]}}},minify_js:{type:"object",additionalProperties:!1,properties:{gzip:{type:"boolean"},use_babel_polyfill:{type:"boolean"},keep_fn_name:{type:"boolean"},keep_class_name:{type:"boolean"},mangle:{type:"boolean"},merge_vars:{type:"boolean"},remove_console:{type:"boolean"},remove_undefined:{type:"boolean"},targets:{type:"string"}}}}},et=r(13),rt={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack",description:"Filestack common definitions",type:"object",additionalProperties:!1,definitions:{workflowsDef:{id:"/workflowsDef",type:"array",additionalItems:!1,minItems:1,maxItems:20,items:[{oneOf:[{type:"string"},{type:"object",additionalProperties:!1,properties:{id:{type:"string"}}}]}]},securityCallDef:{id:"/securityCallDef",oneOf:[{additionalProperties:!1,type:"string",enum:["pick","read","stat","write","writeUrl","store","convert","remove","exif","runWorkflow"]},{type:"array",additionalProperties:!1,items:[{minItems:1,maxItems:10,type:"string",additionalProperties:!1,enum:["pick","read","stat","write","writeUrl","store","convert","remove","exif","runWorkflow"]}]}]},regionsDef:{id:"/regionsDef",type:"string"},locationsDef:{id:"/locationsDef",type:"string",enum:["s3","S3","rackspace","gcs","azure","dropbox"]},colorDef:{id:"colorDef",oneOf:[{type:"string",pattern:"^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"},{type:"string",enum:["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fractal","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray0","gray1","gray2","gray3","gray4","gray5","gray6","gray7","gray8","gray9","gray10","gray11","gray12","gray13","gray14","gray15","gray16","gray17","gray18","gray19","gray20","gray21","gray22","gray23","gray24","gray25","gray26","gray27","gray28","gray29","gray30","gray31","gray32","gray33","gray34","gray35","gray36","gray37","gray38","gray39","gray40","gray41","gray42","gray43","gray44","gray45","gray46","gray47","gray48","gray49","gray50","gray51","gray52","gray53","gray54","gray55","gray56","gray57","gray58","gray59","gray60","gray61","gray62","gray63","gray64","gray65","gray66","gray67","gray68","gray69","gray70","gray71","gray72","gray73","gray74","gray75","gray76","gray77","gray78","gray79","gray80","gray81","gray82","gray83","gray84","gray85","gray86","gray87","gray88","gray89","gray90","gray91","gray92","gray93","gray94","gray95","gray96","gray97","gray98","gray99","gray100","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","none","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","transparent"]}]},pageFormatDef:{id:"/pageFormatDef",type:"string",enum:["a2","a3","a4","a5","b4","b5","letter","legal","tabloid"]},pageRangeDef:{id:"/pageRangeDef",type:"array",uniqueItems:!0,items:[{oneOf:[{type:"integer",minimum:1},{type:"string",pattern:"^(\\d+(?:-\\d+)?)$|^(-\\d+)$|^(\\d+-)$",errorMessage:'Param should be provided in one of the following formats: "1,2,3,5", "1-3", "1-", "-2" '}]}]},facesDef:{id:"/facesDef",oneOf:[{type:"string",enum:["all"]},{type:"integer",minimum:1,maximum:1e3},{type:"array",uniqueItems:!0,items:[{type:"integer",minimum:1,maximum:1e3}]}]},objectsDef:{id:"/objectsDef",type:"array",minItems:1,maxItems:50,items:[{type:"array",additionalItems:!1,minItems:4,items:[{type:"integer",minimum:0,maximum:1e4},{type:"integer",minimum:0,maximum:1e4},{type:"integer",minimum:1,maximum:1e4},{type:"integer",minimum:1,maximum:1e4}]}]},positionDef:{id:"/positionDef",default:["middle","center"],oneOf:[{type:"string",enum:["top","middle","bottom","left","center","right","faces"]},{type:"array",uniqueItems:!0,additionalItems:!1,minItems:2,maxItems:2,default:["middle","center"],items:[{type:"string",enum:["top","middle","bottom"]},{type:"string",enum:["left","center","right"]}]}]}}},nt=new et.Validator;et.Validator.prototype.customFormats.callback=function(t){return"function"==typeof t},et.Validator.prototype.customFormats.HTMLContainer=function(t){return"string"==typeof t||t.toString&&t.toString().indexOf("HTML")>-1};var it=function(t){return function(e){return nt.addSchema(rt),nt.validate(e,t)}},ot=r(1),at=r(3),st=r.n(at);function ct(t){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ut,pt,lt,ft,dt,mt,ht,yt,vt,gt,bt,xt,wt,kt,_t,Ft,Et,Ot,jt,St=st()("fs:filelink");!function(t){t.left="left",t.right="right",t.center="center",t.bottom="bottom",t.top="top",t.faces="faces",t.middle="middle"}(ut||(ut={})),function(t){t.clip="clip",t.crop="crop",t.scale="scale",t.max="max"}(pt||(pt={})),function(t){t.linear="linear",t.gaussian="gaussian"}(lt||(lt={})),function(t){t.oval="oval",t.rect="rect"}(ft||(ft={})),function(t){t.none="none",t.low="low",t.medium="medium",t.high="high"}(dt||(dt={})),function(t){t.artwork="artwork",t.photo="photo"}(mt||(mt={})),function(t){t.RGB="RGB",t.CMYK="CMYK",t.Input="Input"}(ht||(ht={})),function(t){t.thumb="thumb",t.crop="crop",t.fill="fill"}(yt||(yt={})),function(t){t.top="top",t.middle="middle",t.bottom="bottom",t.left="left",t.center="center",t.right="right"}(vt||(vt={})),function(t){t.face="face",t.auto="auto"}(gt||(gt={})),function(t){t.libmp3lame="libmp3lame",t.libvorbis="libvorbis",t.libfdk_aac="libfdk_aac",t.dib_ac3="dib_ac3",t.pcm_s16le="pcm_s16le",t.mp2="mp2",t.ac3="ac3",t.eac3="eac3"}(bt||(bt={})),function(t){t.h264="h264",t.h264_hi="h264.hi",t.webm="webm",t["webm-hi"]="webm.hi",t.ogg="ogg",t["ogg-hi"]="ogg.hi",t["hls-variant"]="hls.variant",t.mp3="mp3",t.oga="oga",t.m4a="m4a",t.aac="aac",t.hls="hls.variant.audio"}(xt||(xt={})),function(t){t.desktop="desktop",t.mobile="mobile"}(wt||(wt={})),function(t){t.all="all",t.window="window"}(kt||(kt={})),function(t){t.portrait="portrait",t.landscape="landscape"}(_t||(_t={})),function(t){t.s3="s3",t.azure="azure",t.gcs="gcs",t.rackspace="rackspace",t.dropbox="dropbox"}(Ft||(Ft={})),function(t){t.private="private",t.public="public"}(Et||(Et={})),function(t){t.preserve="preserve",t.constrain="constrain",t.letterbox="letterbox",t.pad="pad",t.crop="crop"}(Ot||(Ot={})),function(t){t.auto="auto",t.vivid="vivid",t.beautify="beautify",t.beautifyPlus="beautify_plus",t.fixDark="fix_dark",t.fixNoise="fix_noise",t.fixTint="fix_tint",t.outdor="outdoor",t.fireworks="fireworks"}(jt||(jt={}));var Tt=/^[\w\-]{20}|wf:\/\/[\w\-\/]{106}$/,Pt=function(){function t(t,e){this.transforms=[],this.b64=!1,this.useValidator=!0,this.arrayToObject=function(t,e,r){return void 0===t&&(t=[]),t.reduce((function(t,n){return t[n[e]]=n[r],t}),{})},this.apikey=e,this.setSource(t)}return t.prototype.setBase64=function(t){return this.b64=t,this},t.prototype.setUseValidator=function(t){return this.useValidator=t,this},t.prototype.setCname=function(t){return this.cname=t,this},t.prototype.setCustomDomain=function(t){return this.customDomain=t,this},t.prototype.setSource=function(t){this.source=t;var e=this.isSourceExternal();if(St("Source ".concat(t," - isExternal? ").concat(e)),e&&!this.apikey)throw new X("External sources requires apikey to handle transforms");if(!e&&"string"==typeof this.source&&!Tt.test(this.source)&&-1===this.source.indexOf("filestackcontent"))throw new X("Invalid filestack source provided")},t.prototype.getValidationSchema=function(){return tt},t.prototype.getTransformations=function(){return this.useValidator&&this.validateTasks(this.transforms),this.transforms},t.prototype.toString=function(){var t=[];t.push(this.getCdnHost()),this.useValidator&&this.validateTasks(this.transforms),this.apikey&&t.push(this.apikey);var e=this.generateTransformString(),r=this.source;return this.b64?(this.transforms.length>0&&(e="b64/".concat(Object(ot.b64)(JSON.stringify(this.transforms),!0))),Array.isArray(r)&&(r=this.arrayToString(r)),r="b64://".concat(Object(ot.b64)(r,!0))):r=Array.isArray(r)?this.arrayToString(r):this.escapeValue(r),e.length&&t.push(e),t.push(r),t.join("/")},t.prototype.addTask=function(t,e){if(st()("Add task ".concat(t," with params %O"),e),"cache"!==t&&"boolean"==typeof e){if(!e)return this;e=void 0}else"object"!==ct(e)||Object.keys(e).length||(e=void 0);return this.transforms.push({name:t,params:e}),this},t.prototype.getTasks=function(){return this.transforms},t.prototype.reset=function(){return this.transforms=[],this},t.prototype.autoImage=function(){return this.addTask("auto_image",!0)},t.prototype.flip=function(){return this.addTask("flip",!0)},t.prototype.flop=function(){return this.addTask("flop",!0)},t.prototype.imagesize=function(){return this.addTask("imagesize",!0)},t.prototype.noMetadata=function(){return this.addTask("no_metadata",!0)},t.prototype.pjpg=function(t){return this.addTask("pjpg",t)},t.prototype.smartCrop=function(t){return this.addTask("smart_crop",t)},t.prototype.watermark=function(t){return this.addTask("watermark",t)},t.prototype.enhance=function(t){return this.addTask("enhance",t||!0)},t.prototype.redeye=function(){return this.addTask("redeye",!0)},t.prototype.monochrome=function(){return this.addTask("monochrome",!0)},t.prototype.compress=function(t){return this.addTask("compress",t||!0)},t.prototype.negative=function(){return this.addTask("negative",!0)},t.prototype.tags=function(){return this.addTask("tags",!0)},t.prototype.sfw=function(){return this.addTask("sfw",!0)},t.prototype.animate=function(t){return this.addTask("animate",t)},t.prototype.store=function(t){return this.addTask("store",t)},t.prototype.cache=function(t){return this.addTask("cache",t)},t.prototype.resize=function(t){return this.addTask("resize",t)},t.prototype.crop=function(t){return this.addTask("crop",t)},t.prototype.rotate=function(t){return this.addTask("rotate",t)},t.prototype.detectFaces=function(t){return this.addTask("detect_faces",t)},t.prototype.cropFaces=function(t){return this.addTask("crop_faces",t)},t.prototype.pixelateFaces=function(t){return this.addTask("pixelate_faces",t)},t.prototype.blurFaces=function(t){return this.addTask("blur_faces",t)},t.prototype.roundedCorners=function(t){return this.addTask("rounded_corners",t)},t.prototype.polaroid=function(t){return this.addTask("polaroid",t)},t.prototype.vignette=function(t){return this.addTask("vignette",t)},t.prototype.tornEdges=function(t){return this.addTask("torn_edges",t)},t.prototype.shadow=function(t){return this.addTask("shadow",t)},t.prototype.circle=function(t){return this.addTask("circle",t)},t.prototype.border=function(t){return this.addTask("border",t)},t.prototype.sharpen=function(t){return this.addTask("sharpen",t)},t.prototype.blur=function(t){return this.addTask("blur",t)},t.prototype.blackwhite=function(t){return this.addTask("blackwhite",t)},t.prototype.sepia=function(t){return this.addTask("sepia",t)},t.prototype.pixelate=function(t){return this.addTask("pixelate",t)},t.prototype.oilPaint=function(t){return this.addTask("oil_paint",t)},t.prototype.modulate=function(t){return this.addTask("modulate",t)},t.prototype.partialPixelate=function(t){return this.addTask("partial_pixelate",t)},t.prototype.partialBlur=function(t){return this.addTask("partial_blur",t)},t.prototype.collage=function(t){return this.addTask("collage",t)},t.prototype.upscale=function(t){return this.addTask("upscale",t)},t.prototype.ascii=function(t){return this.addTask("ascii",t)},t.prototype.quality=function(t){return this.addTask("quality",t)},t.prototype.security=function(t){return this.addTask("security",t)},t.prototype.output=function(t){return this.addTask("output",t)},t.prototype.videoConvert=function(t){return this.addTask("video_convert",t)},t.prototype.URLScreenshot=function(t){return this.addTask("urlscreenshot",t)},t.prototype.PDFInfo=function(t){return this.addTask("pdfinfo",t)},t.prototype.PDFConvert=function(t){return this.addTask("pdfconvert",t)},t.prototype.fallback=function(t){return this.addTask("fallback",t)},t.prototype.zip=function(){return this.addTask("zip",!0)},t.prototype.minifyCss=function(t){return this.addTask("minify_css",t)},t.prototype.minifyJs=function(t){return this.addTask("minify_js",t)},t.prototype.isSourceExternal=function(){if(!this.source)throw new X("Source not Set");var t=Array.isArray(this.source)?this.source:[this.source];for(var e in t)if(t.hasOwnProperty(e)&&(0===t[e].indexOf("src:")||0===t[e].indexOf("http")&&-1===t[e].indexOf("filestackcontent")))return!0;return!1},t.prototype.validateTasks=function(e){var r=t.validator(this.arrayToObject(e,"name","params"));if(r.errors.length)throw new X("Params validation error",r.errors,K.VALIDATION)},t.prototype.getCdnHost=function(){var t=Object.assign({},J.urls);return this.customDomain&&(t.cdnUrl=this.customDomain),(t=Object(ot.resolveHost)(t,this.cname)).cdnUrl},t.prototype.generateTransformString=function(){var t=this,e=[];return this.transforms.forEach((function(r){e.push(t.optionToString(r.name,r.params))})),e.join("/")},t.prototype.optionToString=function(t,e){var r=this,n=[];return void 0===e?t:"boolean"==typeof e?e||"cache"!==t?t:"cache=false":(Object.keys(e).forEach((function(t){Array.isArray(e[t])?n.push("".concat(t,":").concat(r.arrayToString(e[t]))):n.push("".concat(t,":").concat(r.escapeValue(e[t])))})),"".concat(t,"=").concat(n.join(",")))},t.prototype.escapeValue=function(t){return"string"!=typeof t?t:t.indexOf("/")>-1||t.indexOf(",")>-1?'"'.concat(t,'"'):t},t.prototype.arrayToString=function(t){var e=this,r=t.map((function(t){return Array.isArray(t)?e.arrayToString(t):e.escapeValue(t)}));return"[".concat(r,"]")},t.validator=it(tt),t}(),At={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Store",description:"Filestack Store Options",type:"object",additionalProperties:!1,properties:{filename:{oneOf:[{type:"string"},{format:"callback"}]},location:{$ref:"locationsDef"},path:{type:"string"},container:{type:"string"},region:{$ref:"regionsDef"},access:{type:"string",enum:["public","private"],default:"private"},base64decode:{type:"boolean"},workflows:{$ref:"workflowsDef"},disableStorageKey:{type:"boolean"},tags:{type:"object",additionalProperties:{type:"string"}},sanitizer:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{exclude:{type:"array",items:[{type:"string"}]},replacement:{type:"string"}}}]}}},Ct={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Preview",description:"Filestack Preview Options",type:"object",additionalProperties:!1,properties:{id:{type:"string"},css:{type:"string"}}},Dt={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Upload",description:"Filestack Upload Options",type:"object",additionalProperties:!1,properties:{partSize:{type:"integer",minimum:5242880},concurrency:{type:"integer",minimum:1,maximum:20},progressInterval:{type:"integer",minimum:1},retry:{type:"integer",minimum:0,maximum:20},retryFactor:{type:"integer"},retryMaxTime:{type:"integer"},timeout:{type:"integer",minimum:1,maximum:36e5},intelligent:{oneOf:[{type:"boolean"},{type:"string",enum:["fallback"]}]},intelligentChunkSize:{type:"integer"},onProgress:{format:"callback"},onRetry:{format:"callback"},disableIntegrityCheck:{type:"boolean"},tags:{type:"object",maxItems:10,additionalProperties:{type:"string",maxlength:256}}}},It={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Picker",description:"Filestack Picker Options",type:"object",additionalProperties:!1,properties:{allowManualRetry:{type:"boolean"},accept:{additionalProperties:!1,oneOf:[{type:"string"},{type:"array",minItems:1,items:[{type:"string"}]}]},acceptFn:{format:"callback"},websearch:{type:"object",properties:{predefinedText:{type:"string"}}},fromSources:{type:"array",items:[{type:["string","object"],additionalProperties:!1,enum:["local_file_system","url","imagesearch","facebook","instagram","googledrive","unsplash","dropbox","webcam","video","audio","box","github","gmail","googlephotos","onedrive","onedriveforbusiness","clouddrive","googlephotos","customsource","tint"]}]},container:{format:"HTMLContainer"},cleanupImageExif:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{keepOrientation:{type:"boolean"},keepICCandAPP:{type:"boolean"}}}]},displayMode:{type:"string",enum:["inline","overlay","dropPane"]},concurrency:{type:"integer",minimum:1,maximum:20},supportEmail:{type:"string"},customSourceContainer:{type:"string"},customSourcePath:{type:"string"},customSourceName:{type:"string"},disableStorageKey:{type:"boolean"},disableTransformer:{type:"boolean"},disableThumbnails:{type:"boolean"},exposeOriginalFile:{type:"boolean"},globalDropZone:{type:"boolean"},hideModalWhenUploading:{type:"boolean"},imageDim:{type:"array",minItems:2,maxItems:2,items:[{type:"integer",minimum:1}]},imageMax:{type:"array",minItems:2,maxItems:2,items:[{type:"integer",minimum:1}]},imageMin:{type:"array",minItems:2,maxItems:2,items:[{type:"integer",minimum:1}]},imageMinMaxBlock:{type:"boolean",default:!1},lang:{type:"string",enum:["ca","da","de","en","es","fr","he","it","ja","ko","nl","no","pl","pt","sv","ru","vi","zh","tr","ar"]},minFiles:{type:"integer",minimum:1,maximum:1e6},maxFiles:{type:"integer",minimum:1,maximum:1e6},maxSize:{type:"integer",minimum:1},modalSize:{type:"array",minItems:2,maxItems:2,items:[{type:"integer",minimum:1,maximum:1e6}]},rootId:{type:"string"},startUploadingWhenMaxFilesReached:{type:"boolean"},uploadInBackground:{type:"boolean"},videoResolution:{type:"string"},onCancel:{format:"callback"},onClose:{format:"callback"},onOpen:{format:"callback"},onFileSelected:{format:"callback"},onFileUploadCancel:{format:"callback"},onFileUploadStarted:{format:"callback"},onFileUploadFinished:{format:"callback"},onFileUploadFailed:{format:"callback"},onFileUploadProgress:{format:"callback"},onUploadStarted:{format:"callback"},onUploadDone:{format:"callback"},onFileCropped:{format:"callback"},storeTo:{additionalProperties:!1,type:"object",properties:{filename:{type:"string"},location:{$ref:"locationsDef"},container:{type:"string"},path:{type:"string"},region:{type:"string"},access:{type:"string",enum:["public","private"]},workflows:{$ref:"workflowsDef"}}},viewType:{type:"string",enum:["grid","list"]},transformations:{type:"object",additionalProperties:!1,properties:{circle:{type:"boolean"},rotate:{type:"boolean"},force:{type:"boolean"},crop:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{force:{type:"boolean"},aspectRatio:{type:"number"}}}]}}},customText:{type:"object",patternProperties:{".*":{type:"string"}}},cropFiles:{type:"array",minItems:1},loadCss:{type:"string"},failOverMaxFiles:{type:"boolean"},dropPane:{type:"object",properties:{cropFiles:{type:"array",minItems:1},customText:{type:"string"},disableClick:{type:"boolean"},overlay:{type:"boolean"},showIcon:{type:"boolean"},showProgress:{type:"boolean"},onDragEnter:{format:"callback"},onProgress:{format:"callback"},onDragLeave:{format:"callback"},onDragOver:{format:"callback"},onDrop:{format:"callback"},onSuccess:{format:"callback"},onError:{format:"callback"},onClick:{format:"callback"}}},errorsTimeout:{type:"number",minimum:0},customAuthText:{type:"object",patternProperties:{".*":{additionalProperties:!1,type:"object",required:["top","bottom"],properties:{top:{type:"string"},bottom:{type:"string"}}}}},uploadConfig:{type:"object",additionalProperties:!1,properties:Object(p.a)(Object(p.a)({},Dt.properties),{tags:{type:"object",additionalProperties:{anyOf:[{type:"string"},{format:"callback"}]}}})},useSentryBreadcrumbs:{type:"boolean"},pasteMode:{type:"object",additionalProperties:!1,properties:{pasteToFirstInViewPort:{type:"boolean"},pasteToFirstInstance:{type:"boolean"}}}}},Lt={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Metadata",description:"Filestack Metadata Options",type:"object",additionalProperties:!1,properties:{size:{type:"boolean"},mimetype:{type:"boolean"},filename:{type:"boolean"},width:{type:"boolean"},metadata:{type:"boolean"},height:{type:"boolean"},uploaded:{type:"boolean"},writeable:{type:"boolean"},cloud:{type:"boolean"},sourceUrl:{type:"boolean"},md5:{type:"boolean"},sha1:{type:"boolean"},sha224:{type:"boolean"},sha256:{type:"boolean"},sha384:{type:"boolean"},sha512:{type:"boolean"},location:{type:"boolean"},path:{type:"boolean"},container:{type:"boolean"},exif:{type:"boolean"}}},Nt={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Retrieve",description:"Filestack Retrieve Options",type:"object",additionalProperties:!1,properties:{metadata:{type:"boolean"},head:{type:"boolean"},dl:{type:"boolean"},cache:{type:"boolean"},extension:{type:"string"}}},zt=r(5),Bt=r(12),Mt=st()("fs:request:dispatch"),Rt=function(){function t(t){this.adapter=t}return t.prototype.request=function(t){var e=this;return t.headers=t.headers||{},Mt("Dispatching request %O",t),this.adapter.request(t).catch((function(t){return Mt('Request error "%s": %O',t,t.response),e.retry(t)}))},t.prototype.retry=function(t){var e=this,r=t.config;if(!Object(Bt.a)(t))return Mt("[Retry] Request error is not retriable. Exiting"),Promise.reject(t);if(!r.retry)return Mt("[Retry] Retry config not found. Exiting"),Promise.reject(t);var n=r.retry,i=r.runtime&&r.runtime.retryCount?r.runtime.retryCount:0;if(n.retry&&n.retry<=i)return Mt("[Retry] Retry attempts reached %d. Exiting",i),Promise.reject(t);var o=Math.max(Math.min(n.retryMaxTime,1e3*Math.pow(n.retryFactor,i)),1);return r.runtime=Object(p.a)(Object(p.a)({},r.runtime),{retryCount:i+1}),Mt("[Retry] Retrying request to ".concat(r.url,", count ").concat(i," of ").concat(n.retry," - Delay: ").concat(o)),new Promise((function(t){setTimeout((function(){return t(e.request(r))}),o)}))},t}(),$t=r(55).XhrAdapter,Ut=function(){function t(t){this.defaults=t,this.dispatcher=new Rt(new $t)}return t.getInstance=function(){return t.instance||(t.instance=new t),t.instance},t.prototype.dispatch=function(t){return t.method||(t.method=zt.a.GET),this.dispatcher.request(Object.assign({},this.defaults,t))},t.dispatch=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{url:e}))},t.get=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:zt.a.GET,url:e}))},t.head=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:zt.a.HEAD,url:e}))},t.options=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:zt.a.OPTIONS,url:e}))},t.purge=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:zt.a.PURGE,url:e}))},t.delete=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:zt.a.DELETE,url:e}))},t.post=function(e,r,n){return t.getInstance().dispatch(Object.assign({},n||{},{method:zt.a.POST,url:e,data:r}))},t.put=function(e,r,n){return t.getInstance().dispatch(Object.assign({},n||{},{method:zt.a.PUT,url:e,data:r}))},t.path=function(e,r,n){return t.getInstance().dispatch(Object.assign({},n||{},{method:zt.a.PATH,url:e,data:r}))},t}(),qt=r(2),Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(p.c)(e,t),e.prototype.cancel=function(t){this.emit("cancel",t),this.removeAllListeners()},e}(l.EventEmitter),Gt=function(t,e,r,n){if(!e||"string"!=typeof e)throw new X("A valid Filestack handle is required for remove");if(!(t.policy&&t.signature||n&&n.policy&&n.signature))throw new X("Security policy and signature are required for remove");var i=t.urls.fileApiUrl,o="".concat(i,"/").concat(e),a={key:t.apikey,policy:n&&n.policy||t.policy,signature:n&&n.signature||t.signature};return r&&(a.skip_storage=!0),Ut.delete(o,{filestackHeaders:!1,params:Object(ot.removeEmpty)(a)})};function Zt(t){return(Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ht,Wt,Yt,Qt,Kt,Jt,Xt,te,ee,re,ne,ie,oe,ae,se,ce,ue,pe,le;!function(t){t.left="left",t.right="right",t.center="center",t.bottom="bottom",t.top="top"}(Ht||(Ht={})),function(t){t.left="left",t.right="right",t.center="center",t.bottom="bottom",t.top="top",t.faces="faces"}(Wt||(Wt={})),function(t){t.clip="clip",t.crop="crop",t.scale="scale",t.max="max"}(Yt||(Yt={})),function(t){t.linear="linear",t.gaussian="gaussian"}(Qt||(Qt={})),function(t){t.oval="oval",t.rect="rect"}(Kt||(Kt={})),function(t){t.none="none",t.low="low",t.medium="medium",t.high="high"}(Jt||(Jt={})),function(t){t.artwork="artwork",t.photo="photo"}(Xt||(Xt={})),function(t){t.RGB="RGB",t.CMYK="CMYK",t.Input="Input"}(te||(te={})),function(t){t.thumb="thumb",t.crop="crop",t.fill="fill"}(ee||(ee={})),function(t){t.fit="fit",t.auto="auto"}(re||(re={})),function(t){t.top="top",t.middle="middle",t.bottom="bottom",t.left="left",t.center="center",t.right="right"}(ne||(ne={})),function(t){t.libmp3lame="libmp3lame",t.libvorbis="libvorbis",t.libfdk_aac="libfdk_aac",t.dib_ac3="dib_ac3",t.pcm_s16le="pcm_s16le",t.mp2="mp2",t.ac3="ac3",t.eac3="eac3"}(ie||(ie={})),function(t){t.h264="h264",t.h264_hi="h264.hi",t.webm="webm",t["webm-hi"]="webm.hi",t.ogg="ogg",t["ogg-hi"]="ogg.hi",t["hls-variant"]="hls.variant",t.mp3="mp3",t.oga="oga",t.m4a="m4a",t.aac="aac",t.hls="hls.variant.audio"}(oe||(oe={})),function(t){t.desktop="desktop",t.mobile="mobile"}(ae||(ae={})),function(t){t.all="all",t.window="window"}(se||(se={})),function(t){t.portrait="portrait",t.landscape="landscape"}(ce||(ce={})),function(t){t.s3="s3",t.azure="azure",t.gcs="gcs",t.rackspace="rackspace",t.dropbox="dropbox"}(ue||(ue={})),function(t){t.private="private",t.public="public"}(pe||(pe={})),function(t){t.preserve="preserve",t.constrain="constrain",t.letterbox="letterbox",t.pad="pad",t.crop="crop"}(le||(le={}));var fe=function(t,e,r,n){void 0===r&&(r={}),void 0===n&&(n=!1),r=function t(e){for(var r={},n=Object.keys(e),i=0;i<n.length;i++){var o=n[i].split(/(?=[A-Z])/).join("_").toLowerCase();"object"!==Zt(e[n[i]])||Array.isArray(e[n[i]])?r[o]=e[n[i]]:r[o]=t(e[n[i]])}return r}(r),t.policy&&t.signature&&(r.security={policy:t.policy,signature:t.signature});var i=new Pt(e,t.apikey);return i.setCname(t.cname),i.setBase64(n),Object.keys(r).forEach((function(t){("boolean"!=typeof r[t]||r[t]||"cache"===t)&&i.addTask(t,r[t])})),i.toString()};function de(t){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var me,he=function(){function t(t,e){this._file=t,this._sanitizeOptions=e,this._file.name=Object(ot.sanitizeName)(this._file.name,this._sanitizeOptions)}return Object.defineProperty(t.prototype,"name",{get:function(){return this._file.name},set:function(t){this._file.name=Object(ot.sanitizeName)(t,this._sanitizeOptions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filename",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"customName",{set:function(t){switch(de(t)){case"string":this.name=t;break;case"function":if("string"!=typeof t(this))throw new Error("Name function must return a string. Current return type is ".concat(de(t)));this.name=t(this)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._file.type||"application/octet-stream"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mimetype",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._file.size},enumerable:!1,configurable:!0}),t.prototype.getPartsCount=function(t,e){var r=e?84825604096:63350767616;if(this._file.size>=r){var n=Math.ceil(this._file.size/1e4);return{partsCount:Math.ceil(this._file.size/n),chunkSize:n}}return{partsCount:Math.ceil(this._file.size/t),chunkSize:t}},t.prototype.getPartMetadata=function(t,e){var r=e*t;if(r>this._file.size)throw new Error("Start byte of the part is higher than buffer size");var n=Math.min(r+e,this._file.size);return{partNumber:t,startByte:r,endByte:n,size:n-r}},t.prototype.getPartByMetadata=function(t,e){return void 0===e&&(e=!0),Object(p.b)(this,void 0,void 0,(function(){var r;return Object(p.d)(this,(function(n){switch(n.label){case 0:return[4,this._file.slice(t.startByte,t.endByte)];case 1:return r=n.sent(),[2,Promise.resolve(Object(p.a)(Object(p.a)({},t),{buffer:r,md5:e?Object(ot.md5)(r):void 0}))]}}))}))},t.prototype.getChunkByMetadata=function(t,e,r,n){return void 0===n&&(n=!0),Object(p.b)(this,void 0,void 0,(function(){var i,o,a;return Object(p.d)(this,(function(s){switch(s.label){case 0:return i=t.startByte+e,o=Math.min(i+r,t.endByte),[4,this._file.slice(i,o)];case 1:return a=s.sent(),[2,Promise.resolve(Object(p.a)(Object(p.a)({},t),{buffer:a,md5:n?Object(ot.md5)(a):void 0,size:a.byteLength,startByte:i,endByte:o,offset:e}))]}}))}))},t.prototype.release=function(){this._file.release&&this._file.release()},t.prototype.toJSON=function(){return{name:this.name,status:this.status,type:this.type,size:this.size,url:this.url,handle:this.handle,uploadTags:this.uploadTags}},t}(),ye=/data:([a-zA-Z]*\/[a-zA-Z]*);base64,([^\"]*)/i,ve=function(t,e,r){return new Promise((function(n,i){var o=new FileReader,a=r.slice(t,e);o.onload=function(){return n(o.result)},o.onerror=i,o.readAsArrayBuffer(a)}))},ge=function(t,e){var r,n;if(function(t){return t&&t.file&&t.name}(t)&&(r=t.name,t=t.file),function(t){return t instanceof File}(t))n=t,r=t.name;else if(function(t){if("string"!=typeof t)return!1;t.indexOf("base64")>-1&&(t=t.match(ye).pop());try{return btoa(atob(t))===t}catch(t){return!1}}(t))n=function(t,e){void 0===e&&(e=512);var r="";if(t.indexOf("base64")>-1){var n=t.match(ye);t=n.pop(),r=n[1]}for(var i=atob(t),o=[],a=0;a<i.length;a+=e){for(var s=i.slice(a,a+e),c=new Array(s.length),u=0;u<s.length;u+=1)c[u]=s.charCodeAt(u);o.push(new Uint8Array(c))}return new Blob(o,{type:r})}(t);else{if(!function(t){return"[object Blob]"===t.toString()}(t))return Promise.reject(new X("Unsupported input file type"));n=t}return function(t){return Object(p.b)(void 0,void 0,void 0,(function(){return Object(p.d)(this,(function(e){return File&&FileReader&&Blob?[2,Promise.resolve({slice:function(e,r){return ve(e,r,t)},release:function(){t=null}})]:[2,Promise.reject(new X("The File APIs are not fully supported by your browser"))]}))}))}(n).then((function(t){return Object(p.b)(void 0,void 0,void 0,(function(){var i,o;return Object(p.d)(this,(function(a){switch(a.label){case 0:return i=n.type,4100,n.type&&0!==n.type.length&&"text/plain"!==n.type?[3,3]:(o=ot.getMimetype,[4,t.slice(0,4100)]);case 1:return[4,o.apply(void 0,[a.sent(),r])];case 2:i=a.sent(),a.label=3;case 3:return[2,new he({name:r,size:n.size,type:i,slice:t.slice,release:t.release},e)]}}))}))}))},be=r(31),xe=r.n(be),we=r(9),ke=st()("fs:upload:abstract"),_e=function(t){function e(e,r){void 0===r&&(r=3);var n=t.call(this)||this;return n.storeOptions=e,n.concurrency=r,n.partSize=6291456,n.intelligentChunkSize=Object(ot.isMobile)()?1048576:8388608,n.timeout=3e4,n.uploadMode="default",n.isModeLocked=!1,n.integrityCheck=!0,n.uploadTags=null,n}return Object(p.c)(e,t),e.prototype.setSecurity=function(t){ke("Set security %O",t),this.security=t},e.prototype.setApikey=function(t){ke("Set apikey to ".concat(t)),this.apikey=t},e.prototype.setTimeout=function(t){ke("Set request timeout to ".concat(t)),this.timeout=t},e.prototype.setRetryConfig=function(t){ke("Set retry config to ".concat(t)),this.retryConfig=t},e.prototype.setUrl=function(t){ke("Set upload url to ".concat(t)),this.url=t},e.prototype.setUploadTags=function(t){ke("Set tags to %O",t),this.uploadTags=t},e.prototype.setIntegrityCheck=function(t){this.integrityCheck=t},e.prototype.setUploadMode=function(t,e){void 0===e&&(e=!1),!0!==this.isModeLocked?(this.isModeLocked=e,ke("Set upload mode to ".concat(t)),this.uploadMode=t):ke("Cannot switch mode to ".concat(t,". Locked! Probably mode is not supported at this apikey"))},e.prototype.setPartSize=function(t){if("default"===this.uploadMode){if(ke("Set part size to ".concat(t)),t<5242880)throw new X("Minimum part size is 5MB");this.partSize=t}else ke("Cannot set part size because upload mode is other than default. ")},e.prototype.getPartSize=function(){return this.partSize},e.prototype.setIntelligentChunkSize=function(t){if(ke("Set inteligent chunk size to ".concat(t)),t<32768)throw new X("Minimum intelligent chunk size is ".concat(32768));this.intelligentChunkSize=t},e.prototype.getIntelligentChunkSize=function(){return this.intelligentChunkSize},e.prototype.getUrl=function(){if(!this.url)throw new X("Upload url not set");return this.url},e}(f.a),Fe=st()("fs:upload:s3"),Ee=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.payloads={},n.partsQueue=new xe.a({autoStart:!1,concurrency:n.concurrency}),n.cancelToken=new Vt,n}return Object(p.c)(e,t),e.prototype.pause=function(){this.partsQueue.pause()},e.prototype.resume=function(){this.partsQueue.isPaused&&this.partsQueue.start()},e.prototype.abort=function(t){this.partsQueue.pause(),this.partsQueue.clear(),this.cancelToken.cancel(t||"Aborted by user")},e.prototype.execute=function(){return Object(p.b)(this,void 0,void 0,(function(){var t,e=this;return Object(p.d)(this,(function(r){return t=Object.keys(this.payloads).map((function(t){return new Promise((function(r){return Object(p.b)(e,void 0,void 0,(function(){var e,n;return Object(p.d)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,5,,6]),[4,this.startRequest(t)];case 1:return i.sent(),[4,this.prepareParts(t)];case 2:return i.sent(),[4,this.startPartsQueue(t)];case 3:return i.sent(),[4,this.completeRequest(t)];case 4:return i.sent(),[3,6];case 5:return e=i.sent(),this.emit("error",e),Fe("[".concat(t,"] File upload failed. %O, \nDetails: %O "),e.message,e.details),[3,6];case 6:return(n=this.getPayloadById(t).file).release(),delete this.payloads[t],r(n),[2]}}))}))}))})),[2,Promise.all(t)]}))}))},e.prototype.addFile=function(t){Fe("Add file to queue: \n %o",t);var e="".concat(Object(ot.uniqueId)(15),"_").concat(Object(ot.uniqueTime)());return t.status="Initialized",this.payloads[e]={file:t,parts:[]},e},e.prototype.getUploadUrl=function(t){var e=this.getDefaultFields(t,["location_url"]).location_url;return 0===e.indexOf("http")?e:"https://".concat(e)},e.prototype.getStoreOptions=function(t){var e=Object(p.a)({location:"s3"},this.storeOptions);if(this.storeOptions.disableStorageKey){var r=this.getPayloadById(t);e.path&&"/"!==e.path.substr(-1)&&(e.path="".concat(e.path,"/")),e.path="".concat(e.path?e.path:"/").concat(r.file.name),delete e.disableStorageKey}return e},e.prototype.getDefaultFields=function(t,e,r){void 0===r&&(r=!1);var n=this.getPayloadById(t),i=Object(p.a)(Object(p.a)({},this.security),{apikey:this.apikey,uri:n.uri,location_url:n.location_url,upload_id:n.upload_id,region:n.region});return("intelligent"===this.uploadMode||"fallback"===this.uploadMode&&r)&&(i.fii=!0),Object(p.a)(Object(p.a)({},Object(ot.filterObject)(i,e)),{store:this.getStoreOptions(t)})},e.prototype.getDefaultHeaders=function(t){var e={},r=this.getPayloadById(t);return r.location_region&&(e["Filestack-Upload-Region"]=r.location_region),e},e.prototype.getPayloadById=function(t){return this.payloads[t]},e.prototype.prepareParts=function(t){var e=this.getPayloadById(t).file,r=!1;["intelligent","fallback"].indexOf(this.uploadMode)>-1&&(this.partSize=8388608,r=!0);for(var n=e.getPartsCount(this.partSize,r),i=n.partsCount,o=n.chunkSize,a=[],s=0;s<i;s++)a[s]=Object(p.a)(Object(p.a)({},e.getPartMetadata(s,o)),{offset:0});return this.payloads[t].parts=a,Promise.resolve()},e.prototype.startRequest=function(t){var e=this,r=this.getPayloadById(t);return 0===r.file.size?(this.setPayloadStatus(t,"Failed"),Promise.reject(new X('Invalid file "'.concat(r.file.name,'" size - 0'),{},K.VALIDATION))):(Fe("[".concat(t,"] Make start request")),Ut.post("".concat(this.getUrl(),"/multipart/start"),Object(p.a)({filename:r.file.name,mimetype:r.file.type,size:r.file.size},this.getDefaultFields(t,["apikey","policy","signature","fii"],!0)),{timeout:this.timeout,cancelToken:this.cancelToken,headers:this.getDefaultHeaders(t),retry:this.retryConfig}).then((function(r){var n=r.data;return n&&n.location_url&&n.region&&n.upload_id&&n.uri?(Fe("[".concat(t,"] Assign payload data: \n%O\n"),n),e.updatePayload(t,n),["intelligent","fallback"].indexOf(e.uploadMode)>-1&&(!n.upload_type||"intelligent_ingestion"!==n.upload_type)&&(Fe("[".concat(t,"] Intelligent Ingestion is not enabled on account, switch back to regular upload and lock mode change")),e.setUploadMode("default",!0)),n):(Fe("[".concat(t,"] Incorrect start response: \n%O\n"),n),e.setPayloadStatus(t,"Failed"),Promise.reject(new X("Incorrect start response",n,K.REQUEST)))})).catch((function(r){return Fe("[".concat(t,"] Start request error %O"),r),e.setPayloadStatus(t,"Failed"),e.rejectUpload("Cannot upload file. Start request failed",r)})))},e.prototype.startPartsQueue=function(t){return Object(p.b)(this,void 0,void 0,(function(){var e,r,n,i=this;return Object(p.d)(this,(function(o){return e=this.getPayloadById(t),r=e.parts,n=r.length,Fe("[".concat(t,"] Create uploading queue from file. parts count - %d"),n),[2,new Promise((function(e,n){return Object(p.b)(i,void 0,void 0,(function(){var i,o=this;return Object(p.d)(this,(function(a){switch(a.label){case 0:return r.forEach((function(e){return o.partsQueue.add((function(){return o.startPart(t,e.partNumber)})).catch((function(e){return o.setPayloadStatus(t,"Failed"),Fe("[".concat(t,"] Failed to upload part %s"),e.message),o.partsQueue.pause(),o.partsQueue.clear(),n(e)}))})),Fe("[".concat(t,"] All tasks for %s enqueued. Start processing main upload queue"),t),this.emit("start"),this.partsQueue.start(),i=e,[4,this.partsQueue.onIdle()];case 1:return i.apply(void 0,[a.sent()]),[2]}}))}))}))]}))}))},e.prototype.startPart=function(t,e){return Fe("[".concat(t,"] Start processing part ").concat(e," with mode ").concat(this.uploadMode)),this.getPayloadById(t).file.status="Progress",("intelligent"!==this.uploadMode?this.uploadRegular:this.uploadIntelligent).apply(this,[t,e])},e.prototype.getS3PartMetadata=function(t,e,r){var n=this,i=this.getUploadUrl(t);Fe("[".concat(t,"] Get data for part ").concat(e.partNumber,", url ").concat(i,", Md5: ").concat(e.md5,", Size: ").concat(e.size));var o=Object(p.a)(Object(p.a)({},this.getDefaultFields(t,["apikey","uri","region","signature","policy","upload_id","fii"])),{part:e.partNumber+1,size:e.size,offset:r});return this.integrityCheck&&e.md5&&(o.md5=e.md5),Ut.post("".concat(i,"/multipart/upload"),o,{headers:this.getDefaultHeaders(t),cancelToken:this.cancelToken,timeout:this.timeout,retry:this.retryConfig}).catch((function(e){return n.setPayloadStatus(t,"Failed"),n.rejectUpload("Cannot get part metadata",e)}))},e.prototype.uploadRegular=function(t,e){return Object(p.b)(this,void 0,void 0,(function(){var r,n,i,o,a,s,c=this;return Object(p.d)(this,(function(u){switch(u.label){case 0:return r=this.getPayloadById(t),n=r.parts[e],[4,r.file.getPartByMetadata(n,this.integrityCheck)];case 1:return i=u.sent(),[4,this.getS3PartMetadata(t,i)];case 2:return o=u.sent(),a=o.data,s=o.headers,Fe("[".concat(t,"] Received part ").concat(e," info body: \n%O\n headers: \n%O\n"),a,s),[2,Ut.put(a.url,i.buffer,{cancelToken:this.cancelToken,timeout:this.timeout,headers:a.headers,filestackHeaders:!1,onProgress:function(r){return c.onProgressUpdate(t,e,r.loaded)},retry:this.retryConfig&&"fallback"!==this.uploadMode?this.retryConfig:void 0}).then((function(r){if(!r.headers.etag)throw i=null,new X("Cannot upload file, check S3 bucket settings","Etag header is not exposed in CORS settings",K.REQUEST);return c.setPartETag(t,e,r.headers.etag),Fe("[".concat(t,"] S3 Upload response headers for ").concat(e,": \n%O\n"),r.headers),c.onProgressUpdate(t,e,i.size),i=null,r})).catch((function(r){var n=r&&r.response?r.response:null;if(n&&403===n.status&&n.data&&n.data.Error&&n.data.Error.code){var o=n.data.Error.code;switch(Array.isArray(o)&&(o=o.pop()),o){case"RequestTimeTooSkewed":return c.startPart(t,e);default:return Promise.reject(new X("Cannot upload file",n.data.Error,K.REQUEST))}}return i=null,r instanceof X?Promise.reject(r):(c.onProgressUpdate(t,e,0),"fallback"===c.uploadMode&&!c.isModeLocked||"intelligent"===c.uploadMode?(Fe("[".concat(t,"] Regular upload failed. Switching to intelligent ingestion mode")),c.setUploadMode("intelligent"),c.startPart(t,e)):c.rejectUpload("Cannot upload file part",r))}))]}}))}))},e.prototype.uploadIntelligent=function(t,e){return Object(p.b)(this,void 0,void 0,(function(){var r=this;return Object(p.d)(this,(function(n){return[2,this.uploadNextChunk(t,e).then((function(){return r.commitPart(t,e)}))]}))}))},e.prototype.uploadNextChunk=function(t,e,r){return void 0===r&&(r=this.intelligentChunkSize),Object(p.b)(this,void 0,void 0,(function(){var n,i,o,a,s=this;return Object(p.d)(this,(function(c){switch(c.label){case 0:return n=this.getPayloadById(t),i=n.parts[e],r=i.size-i.offset,[4,n.file.getChunkByMetadata(i,i.offset,r,this.integrityCheck)];case 1:return o=c.sent(),Fe("[".concat(t,"] PartNum: ").concat(e,", PartSize: ").concat(i.size,", StartByte: ").concat(i.startByte,", Offset: ").concat(i.offset,", ChunkSize: ").concat(o.size,",\n Left: ").concat(i.size-i.offset-o.size)),[4,this.getS3PartMetadata(t,o,i.offset).catch((function(n){return Fe("[".concat(t,"] Getting chunk data for ii failed %O, Chunk size: ").concat(r,", offset ").concat(i.offset,", part ").concat(e),n),Promise.reject(n)}))];case 2:return a=c.sent().data,[2,Ut.put(a.url,o.buffer,{cancelToken:this.cancelToken,timeout:this.timeout,headers:a.headers,filestackHeaders:!1,onProgress:function(r){return i?s.onProgressUpdate(t,e,i.offset+r.loaded):null}}).then((function(n){s.onProgressUpdate(t,e,i.offset+o.size);var a=Math.min(i.offset+r,i.size);return Fe("[".concat(t,"] S3 Chunk uploaded! offset: ").concat(i.offset,", part ").concat(e,"! response headers for ").concat(e,": \n%O\n"),n.headers),s.setPartData(t,e,"offset",a),a===i.size?Promise.resolve(n):(i=null,o=null,s.uploadNextChunk(t,e,r))})).catch((function(n){var a=n&&n.response?n.response:null;if(a&&403===a.status&&a.data&&a.data.Error&&a.data.Error.code){var c=a.data.Error.code;switch(Array.isArray(c)&&(c=c.pop()),c){case"RequestTimeTooSkewed":return s.startPart(t,e);default:return Promise.reject(new X("Cannot upload file",a.data.Error,K.REQUEST))}}s.onProgressUpdate(t,e,i.offset);var u=Math.ceil(r/2);return u<32768?(Fe("[".concat(t,"] Minimal chunk size limit. Upload file failed!")),Promise.reject(new X("Min chunk size reached",n.data,K.REQUEST))):Object(we.e)(n)?(Fe("[".concat(t,"] Request network error. Retry with new chunk size: ").concat(u)),s.uploadNextChunk(t,e,u)):(i=null,o=null,s.rejectUpload("Cannot upload file part (FII)",n))}))]}}))}))},e.prototype.commitPart=function(t,e){var r=this,n=this.getPayloadById(t),i=n.parts[e];return Ut.post("".concat(this.getUploadUrl(t),"/multipart/commit"),Object(p.a)(Object(p.a)({},this.getDefaultFields(t,["apikey","region","upload_id","policy","signature","uri"])),{size:n.file.size,part:i.partNumber+1}),{cancelToken:this.cancelToken,timeout:this.timeout,headers:this.getDefaultHeaders(t),retry:this.retryConfig}).then((function(e){return Fe("[".concat(t,"] Commit Part number ").concat(i.partNumber,". Response: %O"),e.data),e})).catch((function(t){return r.rejectUpload("Cannot commit file part metadata",t)}))},e.prototype.completeRequest=function(t){var e=this,r=this.getPayloadById(t),n=[];Fe("[".concat(t,"] Run complete request"));for(var i=r.parts,o=i.length,a=0;a<o;a++)i[a].etag&&n.push({part_number:a+1,etag:i[a].etag});return Fe("[".concat(t,"] Etags %O"),n),Ut.post("".concat(this.getUploadUrl(t),"/multipart/complete"),Object(p.a)(Object(p.a)({},this.getDefaultFields(t,["apikey","policy","signature","uri","region","upload_id","fii"],!0)),{filename:r.file.name,mimetype:r.file.type,size:r.file.size,upload_tags:this.uploadTags&&Object.keys(this.uploadTags).length?this.uploadTags:void 0,parts:n.length?n:void 0}),{timeout:this.timeout,cancelToken:this.cancelToken,headers:this.getDefaultHeaders(t),retry:this.retryConfig}).then((function(r){if(202===r.status)return new Promise((function(r,n){setTimeout((function(){return e.completeRequest(t).then(r).catch(n)}),1e3)}));var n=e.getPayloadById(t).file;return n.handle=r.data.handle,n.url=r.data.url,n.container=r.data.container,n.key=r.data.key,n.uploadTags=r.data.upload_tags,n.workflows=r.data.workflows,n.status=r.data.status,n})).catch((function(r){return e.setPayloadStatus(t,"Failed"),e.rejectUpload("Cannot complete file",r)}))},e.prototype.onProgressUpdate=function(t,e,r){this.setPartData(t,e,"progress",r),this.emitProgress()},e.prototype.emitProgress=function(){var t=0,e=0,r={};for(var n in this.payloads){var i=this.payloads[n];if("Failed"!==i.file.status){var o=i.parts.map((function(t){return t.progress||0})).reduce((function(t,e){return t+e}),0);e+=o,r[n]={totalBytes:o,totalPercent:Math.round(100*o/i.file.size)||0},t+=i.file.size}}var a={totalBytes:e||0,totalPercent:Math.round(100*e/t)||0,files:r};Fe("Upload progress %O",a),this.emit("progress",a)},e.prototype.updatePayload=function(t,e){this.payloads[t]=Object(p.a)(Object(p.a)({},this.payloads[t]),e)},e.prototype.setPartETag=function(t,e,r){Fe("[".concat(t,"] Set ").concat(r," etag for part ").concat(e)),this.getPayloadById(t).parts[e].etag=r},e.prototype.setPartData=function(t,e,r,n){Fe("[".concat(t,"] Set ").concat(r," = ").concat(n," for part ").concat(e));var i=this.getPayloadById(t);i?i.parts[e][r]=n:Fe("[".concat(t,"] Cannot set ").concat(r," = ").concat(n," for part ").concat(e))},e.prototype.setPayloadStatus=function(t,e){Fe("[".concat(t,"] Set payload status to ").concat(e)),this.payloads[t]&&(this.payloads[t].file.status=e)},e.prototype.parseError=function(t){return t.response?{code:t.response.status,data:t.response.data,headers:t.response.headers}:{}},e.prototype.rejectUpload=function(t,e){return e instanceof qt.a&&e.code===qt.b.ABORTED?Promise.reject(new X(t,{reason:e.message},K.ABORTED)):Promise.reject(new X(t,this.parseError(e),K.REQUEST))},e}(_e),Oe=function(t,e){return t.totalBytes=Math.max(t.totalBytes,e.totalBytes),t.totalPercent=Math.max(t.totalPercent,e.totalPercent),t},je=function(t){function e(e,r){void 0===e&&(e={}),void 0===r&&(r={});var n=t.call(this)||this;n.options=e,n.storeOptions=r,n.lastProgress={totalBytes:0,totalPercent:0},n.storeOptions=Object.assign({},r);var i=it(Dt)(e);if(i.errors.length)throw new X("Invalid upload params",i.errors,K.VALIDATION);var o=it(At)(r);if(o.errors.length)throw new X("Invalid store upload params",o.errors,K.VALIDATION);return r.filename&&(n.overrideFileName=r.filename,delete n.storeOptions.filename),n.storeOptions.sanitizer&&(n.sanitizerOptions=n.storeOptions.sanitizer,delete n.storeOptions.sanitizer),n.uploader=new Ee(n.storeOptions,e.concurrency),n.uploader.setRetryConfig({retry:e.retry||10,onRetry:e.onRetry,retryFactor:e.retryFactor||2,retryMaxTime:e.retryMaxTime||15e3}),n.uploader.setTimeout(e.timeout||12e4),e.partSize&&n.uploader.setPartSize(e.partSize),e.intelligentChunkSize&&n.uploader.setIntelligentChunkSize(e.intelligentChunkSize),e.disableIntegrityCheck&&n.uploader.setIntegrityCheck(!1),e.intelligent&&n.uploader.setUploadMode("fallback"===e.intelligent?"fallback":"intelligent"),n.uploader.setUploadTags(e.tags),n.uploader.on("start",(function(){return n.emit("start")})),n.uploader.on("error",(function(t){return n.emit("error",t)})),n.uploader.on("progress",n.handleProgress.bind(n)),n}return Object(p.c)(e,t),e.prototype.setSession=function(t){this.uploader.setApikey(t.apikey),t.policy&&t.signature&&this.uploader.setSecurity({policy:t.policy,signature:t.signature}),this.uploader.setUrl(t.urls.uploadApiUrl)},e.prototype.setToken=function(t){var e=this;if(!t||t!==Object(t))throw new Error("Incorrect upload token. Must be instance of object");return t.pause=function(){return e.uploader.pause()},t.resume=function(){return e.uploader.resume()},t.cancel=function(){return e.uploader.abort()},t},e.prototype.setSecurity=function(t){this.uploader.setSecurity(t)},e.prototype.setUploadTags=function(t){this.uploader.setUploadTags(t)},e.prototype.upload=function(t){return Object(p.b)(this,void 0,void 0,(function(){var e,r;return Object(p.d)(this,(function(n){switch(n.label){case 0:return[4,ge(t,this.sanitizerOptions)];case 1:return(e=n.sent()).customName=this.overrideFileName,this.uploader.addFile(e),this.startProgressInterval(),[4,this.uploader.execute()];case 2:return r=n.sent().shift(),this.stopProgressInterval(),this.uploader.removeAllListeners(),"Failed"===r.status?[2,Promise.reject(r)]:[2,Promise.resolve(r)]}}))}))},e.prototype.multiupload=function(t){return Object(p.b)(this,void 0,void 0,(function(){var e,r,n,i,o,a,s;return Object(p.d)(this,(function(c){switch(c.label){case 0:for(n in r=[],e=t)r.push(n);i=0,c.label=1;case 1:return i<r.length?(n=r[i])in e?(o=n,t.hasOwnProperty(o)?[4,ge(t[o],this.sanitizerOptions)]:[3,3]):[3,3]:[3,4];case 2:(a=c.sent()).customName=this.overrideFileName,this.uploader.addFile(a),c.label=3;case 3:return i++,[3,1];case 4:return this.startProgressInterval(),[4,this.uploader.execute()];case 5:return s=c.sent(),this.stopProgressInterval(),this.uploader.removeAllListeners(),[2,Promise.resolve(s)]}}))}))},e.prototype.startProgressInterval=function(){var t=this;"function"==typeof this.options.onProgress&&(this.progressIntervalHandler=setInterval((function(){t.options.onProgress(t.lastProgress)}),this.options.progressInterval||1e3),this.options.onProgress(this.lastProgress))},e.prototype.stopProgressInterval=function(){clearInterval(this.progressIntervalHandler)},e.prototype.handleProgress=function(t){if(t=Oe(t,this.lastProgress),this.lastProgress.files)for(var e in t.files)this.lastProgress.files[e]&&(t.files[e]=Oe(t.files[e],this.lastProgress.files[e]));this.lastProgress=t},e}(l.EventEmitter),Se=function(t,e,r){if(!e||"string"!=typeof e)throw new Error("A valid Filestack handle or storage alias is required for preview");var n=it(Ct)(r);if(n.errors.length)throw new X("Invalid preview params",n.errors,K.VALIDATION);var i=Object(ot.removeEmpty)(r||{}),o=function(t,e,r,n){var i=Object(p.a)({},r),o=n&&n.policy||t.policy,a=n&&n.signature||t.signature,s=a&&o,c=[t.urls.cdnUrl],u=i.css&&encodeURIComponent('"'.concat(i.css,'"')),l=u?"preview=css:".concat(u):"preview";return-1!==e.indexOf("src:")?c.push("".concat(t.apikey,"/").concat(l)):c.push(l),s&&c.push("security=policy:".concat(o,",signature:").concat(a)),c.push(e),c.join("/")}(t,e,i);if(i&&i.id){var a=i.id,s=document.createElement("iframe"),c=document.getElementById(a);if(s.src=o,s.width="100%",s.height="100%",!c)throw new Error('DOM Element with id "'.concat(a,'" not found.'));return c.appendChild(s)}return window.open(o,e)},Te=st()("fs:storage"),Pe=function(){function t(){this.availableTypes=[],void 0!==window.localStorage&&(this.availableTypes.push(me.LOCAL),Te("Local storage exists")),void 0!==window.sessionStorage&&(this.availableTypes.push(me.SESSION),Te("Session storage exists")),Te("availableTypes - %O",this.availableTypes)}return t.prototype.hasAccess=function(t){return Te("Checking access to storage for %s. Available types: %O",t,this.availableTypes),t?this.availableTypes.indexOf(t)>-1:!!this.availableTypes.length},t.prototype.getItem=function(t,e){var r=this.getStore(e);if(Te("getItem %s from %O",t,r),r)return r.getItem(t)},t.prototype.setItem=function(t,e,r){var n=this.getStore(r);if(Te("setItem %s to %O",t,n),n)return n.setItem(t,e)},t.prototype.removeItem=function(t,e){var r=this.getStore(e);if(Te("removeItem %s from %O",t,r),r)return r.removeItem(t)},t.prototype.getStore=function(t){if(Te("get store with pref type - %s",t),this.hasAccess(t))switch(t){case me.LOCAL:return window.localStorage;case me.SESSION:return window.sessionStorage;default:return window[this.availableTypes[0]]}else Te("User dont have access to any storage")},t}();!function(t){t.SESSION="sessionStorage",t.LOCAL="localStorage"}(me||(me={}));var Ae,Ce="__fs_picker_token",De=function(){function t(t,e){this.cache=!1,this.session=t,this.storeAdapter=new Pe,this.cloudApiUrl=t.urls.cloudApiUrl,e&&e.sessionCache&&(this.cache=e.sessionCache)}return Object.defineProperty(t.prototype,"token",{get:function(){if(this.cache){var t=this.storeAdapter.getItem(Ce,me.LOCAL);if(t)return t}return this.isInAppBrowser?this.storeAdapter.getItem(Ce,me.SESSION):this._token},set:function(t){this.cache&&this.storeAdapter.setItem(Ce,t,me.LOCAL),this.isInAppBrowser&&this.storeAdapter.setItem(Ce,t,me.SESSION),this._token=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInAppBrowser",{get:function(){return!!(this.session&&this.session.prefetch&&this.session.prefetch.settings&&this.session.prefetch.settings.inapp_browser)&&this.session.prefetch.settings.inapp_browser},enumerable:!1,configurable:!0}),t.prototype.list=function(t,e,r){var n=this,i={apikey:this.session.apikey,clouds:t,flow:"web",token:this.token};r&&(Array.isArray(r)||(r=[r]),r.includes("application/x-subrip")&&!r.includes("application/octet-stream")&&r.push("application/octet-stream"),i.accept=r),this.isInAppBrowser&&(i.appurl=this.currentAppUrl()),this.session.policy&&this.session.signature&&(i.policy=this.session.policy,i.signature=this.session.signature);var o={};if(e){var a=new Vt;e.cancel=a.cancel.bind(a),o.cancelToken=a}return Ut.post("".concat(this.cloudApiUrl,"/folder/list"),i,o).then((function(t){return t.data&&t.data.token&&(n.token=t.data.token),t.data}))},t.prototype.store=function(t,e,r,n,i,o){var a,s=this;void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=null),void 0===r.location&&(r.location="s3");var c={apikey:this.session.apikey,token:this.token,flow:"web",upload_tags:o||void 0,clouds:(a={},a[t]={path:e,store:Object(ot.removeEmpty)(r)},a)};"customsource"===t&&n.customSourcePath&&(c.clouds.customsource.customSourcePath=n.customSourcePath),"customsource"===t&&n.customSourceContainer&&(c.clouds.customsource.customSourceContainer=n.customSourceContainer),this.session.policy&&this.session.signature&&(c.policy=this.session.policy,c.signature=this.session.signature);var u={};if(i){var p=new Vt;i.cancel=p.cancel.bind(p),u.cancelToken=p}return Ut.post("".concat(this.cloudApiUrl,"/store/"),c,u).then((function(e){return e.data&&e.data.token&&(s.token=e.data.token),e.data&&e.data[t]?e.data[t]:e.data}))},t.prototype.logout=function(t){var e,r={apikey:this.session.apikey,flow:"web",token:this.token};return t?r.clouds=((e={})[t]={},e):(this.cache&&this.storeAdapter.removeItem(Ce,me.LOCAL),this.isInAppBrowser&&this.storeAdapter.removeItem(Ce,me.SESSION)),Ut.post("".concat(this.cloudApiUrl,"/auth/logout"),r).then((function(e){return e.data&&e.data[t]?e.data[t]:e.data}))},t.prototype.metadata=function(t,e){var r={apikey:this.session.apikey,url:t,headers:e};return this.session.policy&&this.session.signature&&(r.policy=this.session.policy,r.signature=this.session.signature),Ut.post("".concat(this.cloudApiUrl,"/metadata"),r).then((function(t){return t.data}))},t.prototype.tokInit=function(t){if("video"!==t&&"audio"!==t)throw new X("Type must be one of video or audio.");return Ut.post("".concat(this.cloudApiUrl,"/recording/").concat(t,"/init")).then((function(t){return t.data}))},t.prototype.tokStart=function(t,e,r){if("video"!==t&&"audio"!==t)throw new X("Type must be one of video or audio.");var n={apikey:e,session_id:r};return Ut.post("".concat(this.cloudApiUrl,"/recording/").concat(t,"/start"),n).then((function(t){return t.data}))},t.prototype.tokStop=function(t,e,r,n){if("video"!==t&&"audio"!==t)throw new X("Type must be one of video or audio.");var i={apikey:e,session_id:r,archive_id:n};return Ut.post("".concat(this.cloudApiUrl,"/recording/").concat(t,"/stop"),i).then((function(t){return t.data}))},t.prototype.currentAppUrl=function(){if(window.URLSearchParams){var t=new URLSearchParams(window.location.search);return t.set("fs-tab","init"),"".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname,"?").concat(t.toString())}},t}(),Ie=r(32),Le=r.n(Ie);!function(t){t.PICKER="picker",t.TRANSFORM_UI="transform_ui"}(Ae||(Ae={}));var Ne,ze,Be=function(){function t(t){this.session=t instanceof Re?t.session:t}return t.prototype.getConfig=function(t){var e=t.pickerOptions,r=t.settings,n=t.permissions,i=t.events;return Object(p.b)(this,void 0,void 0,(function(){var t,o,a=this;return Object(p.d)(this,(function(s){return t={apikey:this.session.apikey},this.session.policy&&this.session.signature&&(t.security={policy:this.session.policy,signature:this.session.signature}),r=r?(r=r.concat(["inapp_browser"])).filter((function(t,e){return r.indexOf(t)===e})):["inapp_browser"],e&&Object.keys(e).length&&(o=Object(ot.cleanUpCallbacks)(Le()(Object(p.a)({},e)))),t=Object(p.a)(Object(p.a)({},t),{permissions:n,settings:r,picker_config:o,events:i}),this.session.prefetch=null,[2,Ut.post("".concat(this.session.urls.uploadApiUrl,"/prefetch"),t).then((function(t){if(200!==t.status)throw new X("There is a problem with prefetch request");var r=t.data;return r.updated_config?(r.pickerOptions=a.reassignCallbacks(e,r.updated_config||{}),delete r.updated_config):r.pickerOptions=e,a.session.prefetch=r,r}))]}))}))},t.prototype.reassignCallbacks=function(t,e){if(!t||0===Object.keys(t).length)return t;for(var r in t)"function"==typeof t[r]&&(e[r]=t[r]),t[r]===Object(t[r])&&(e[r]=this.reassignCallbacks(t[r],e[r]));return e},t}();!function(t){t.cw="CW",t.ccw="CCW"}(Ne||(Ne={})),function(t){t.inline="inline",t.overlay="overlay",t.dropPane="dropPane"}(ze||(ze={}));var Me=function(){function t(t,e){var r=it(It)(e);if(r.errors.length)throw new X("Invalid picker params",r.errors,K.VALIDATION);this._initialized=this.loadModule(t,e)}return t.prototype.open=function(){return Object(p.b)(this,void 0,void 0,(function(){return Object(p.d)(this,(function(t){switch(t.label){case 0:return[4,this._initialized];case 1:return[4,t.sent().open()];case 2:return t.sent(),[2]}}))}))},t.prototype.crop=function(t){return Object(p.b)(this,void 0,void 0,(function(){return Object(p.d)(this,(function(e){switch(e.label){case 0:return[4,this._initialized];case 1:return[4,e.sent().crop(t)];case 2:return e.sent(),[2]}}))}))},t.prototype.close=function(){return Object(p.b)(this,void 0,void 0,(function(){return Object(p.d)(this,(function(t){switch(t.label){case 0:return[4,this._initialized];case 1:return[4,t.sent().close()];case 2:return t.sent(),[2]}}))}))},t.prototype.cancel=function(){return Object(p.b)(this,void 0,void 0,(function(){return Object(p.d)(this,(function(t){switch(t.label){case 0:return[4,this._initialized];case 1:return[4,t.sent().cancel()];case 2:return t.sent(),[2]}}))}))},t.prototype.loadModule=function(t,e){return Object(p.b)(this,void 0,void 0,(function(){var r;return Object(p.d)(this,(function(n){switch(n.label){case 0:return r=t.session.urls.pickerUrl,[4,o(s.PICKER,r)];case 1:return[2,new(n.sent())(t,e)]}}))}))},t}();W("addBreadcrumb",{category:"sdk",message:"filestack-js-sdk scope"});var Re=function(t){function e(e,r){var n=t.call(this)||this;if(n.options=r,n.forwardErrors=!0,r&&r.forwardErrors&&(n.forwardErrors=r.forwardErrors),!e||"string"!=typeof e||0===e.length)throw new Error("An apikey is required to initialize the Filestack client");var i=J.urls;if(n.session={apikey:e,urls:i},r){var o=r.cname,a=r.security;n.setSecurity(a),n.setCname(o)}return n.prefetchInstance=new Be(n.session),n.cloud=new De(n.session,r),n}return Object(p.c)(e,t),Object.defineProperty(e.prototype,"utils",{get:function(){return ot},enumerable:!1,configurable:!0}),e.prototype.prefetch=function(t){return this.prefetchInstance.getConfig(t)},e.prototype.setSecurity=function(t){if(t&&(!t.policy||!t.signature))throw new X("Both policy and signature are required for client security");t&&t.policy&&t.signature&&(this.session.policy=t.policy,this.session.signature=t.signature)},e.prototype.setCname=function(t){t&&0!==t.length&&(this.session.cname=t,this.session.urls=ot.resolveHost(this.session.urls,t))},e.prototype.logout=function(t){return this.cloud.logout(t)},e.prototype.metadata=function(t,e,r){return function(t,e,r,n){if(!e||"string"!=typeof e)throw new X("A valid Filestack handle is required for metadata");var i=it(Lt)(r);if(i.errors.length)throw new X("Invalid metadata params",i.errors);var o=Object(p.a)({},r);o.source_url=o.sourceUrl,o.policy=n&&n.policy||t.policy,o.signature=n&&n.signature||t.signature;var a="".concat(t.urls.fileApiUrl,"/").concat(e,"/metadata");return new Promise((function(t,r){Ut.get(a,{params:Object(ot.removeEmpty)(o),filestackHeaders:!1}).then((function(r){return t(Object(p.a)(Object(p.a)({},r.data),{handle:e}))})).catch(r)}))}(this.session,t,e,r)},e.prototype.picker=function(t){return function(t,e){return new Me(t,e)}(this,t)},e.prototype.preview=function(t,e){return Se(this.session,t,e)},e.prototype.remove=function(t,e){return Gt(this.session,t,!1,e)},e.prototype.removeMetadata=function(t,e){return Gt(this.session,t,!0,e)},e.prototype.storeURL=function(t,e,r,n,i,o,a){return function(t){var e=t.session,r=t.url,n=t.storeParams,i=t.token,o=t.security,a=t.uploadTags,s=t.headers,c=t.workflowIds;if(!r||"string"!=typeof r)return Promise.reject(new X("url is required for storeURL"));var u=it(At)(n);if(u.errors.length)return Promise.reject(new X("Invalid store params",u.errors));e.policy=o&&o.policy||e.policy,e.signature=o&&o.signature||e.signature;var l=new Pt(r,e.apikey);l.store(n),e.policy&&e.signature&&l.security({policy:e.policy,signature:e.signature});var f={};if(i){var d=new Vt;i.cancel=d.cancel.bind(d),f.cancelToken=d}var m=[r];return s&&(m=[{source:r,headers:s}]),c&&c.length>0&&l.addTask("store",{workflows:c}),Ut.post("".concat(e.urls.processUrl,"/process"),{apikey:e.apikey,sources:m,tasks:l.getTasks(),upload_tags:a},f).then((function(t){if(t.data&&t.data.handle)return t.data.upload_tags&&(t.data.uploadTags=t.data.upload_tags,delete t.data.upload_tags),Object(p.a)(Object(p.a)({},t.data),{mimetype:t.data.type});throw new X("Invalid store response ".concat(JSON.stringify(t.data)))}))}({session:this.session,url:t,storeParams:e,token:r,security:n,uploadTags:i,headers:o,workflowIds:a})},e.prototype.retrieve=function(t,e,r){return function(t,e,r,n){if(void 0===r&&(r={}),!e||0===e.length||"string"!=typeof e)throw new X("File handle is required");console.info("Retrieve method is deprecated and it will be removed. Please use metadata or download");var i=it(Nt)(r);if(i.errors.length)throw new X("Invalid retrieve params",i.errors);var o=Object(p.a)({},r);o.key=t.apikey,o.policy=n&&n.policy||t.policy,o.signature=n&&n.signature||t.signature;var a,s,c=zt.a.GET;if(o.head&&(c=zt.a.HEAD,delete o.head),o.extension&&o.extension.length&&(a=o.extension,delete o.extension),o.metadata){if(c===zt.a.HEAD)throw new X("Head and metadata options cannot be used together");s=o.metadata,delete o.metadata}var u="".concat(t.urls.fileApiUrl,"/").concat(e)+(a?"+".concat(a):"")+(s?"/metadata":"");return new Promise((function(t,e){Ut.dispatch(u,{method:c,filestackHeaders:!1,params:Object(ot.removeEmpty)(o)}).then((function(e){return t(c===zt.a.HEAD?e.headers:e.data)})).catch(e)}))}(this.session,t,e,r)},e.prototype.download=function(t,e){return function(t,e,r){var n=new Pt(e,t.apikey),i=r&&r.policy||t.policy,o=r&&r.signature||t.signature;return i&&o&&n.security({signature:o,policy:i}),Ut.dispatch(n.toString(),{method:zt.a.GET,blobResponse:!0})}(this.session,t,e)},e.prototype.transform=function(t,e,r){return void 0===r&&(r=!1),fe(this.session,t,e,r)},e.prototype.upload=function(t,e,r,n,i){var o=this,a=new je(e,r);return a.setSession(this.session),n&&a.setToken(n),i&&a.setSecurity(i),a.on("start",(function(){return o.emit("upload.start")})),a.on("error",(function(t){o.forwardErrors&&Q((function(n){n.setTag("filestack-apikey",o.session.apikey),n.setTag("filestack-version",ot.getVersion()),n.setExtra("filestack-options",o.options),n.setExtras({uploadOptions:e,storeOptions:r,details:t.details}),t.message="FS-".concat(t.message),Y(t)})),o.emit("upload.error",t)})),a.upload(t)},e.prototype.multiupload=function(t,e,r,n,i){var o=this,a=new je(e,r);return a.setSession(this.session),n&&a.setToken(n),i&&a.setSecurity(i),a.on("start",(function(){return o.emit("upload.start")})),a.on("error",(function(t){Q((function(n){n.setTag("filestack-apikey",o.session.apikey),n.setTag("filestack-version",ot.getVersion()),n.setExtra("filestack-options",o.options),n.setExtras(t.details),n.setExtras({uploadOptions:e,storeOptions:r}),Y(t)})),o.emit("upload.error",t)})),a.multiupload(t)},e}(l.EventEmitter),$e=function(t,e){return new Re(t,e)},Ue=$e,qe="3.32.3";a(s.FILESTACK_SDK,$e,{version:"3.32.3"})},,function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return c})),r.d(e,"b",(function(){return u}));var n=r(6),i=r(11),o={nowSeconds:function(){return Date.now()/1e3}};var a=Object(i.b)()?function(){try{return Object(i.a)(t,"perf_hooks").performance}catch(t){return}}():function(){var t=Object(n.a)().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),s=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},c=o.nowSeconds.bind(o),u=s.nowSeconds.bind(s);!function(){var t=Object(n.a)().performance;if(t&&t.now){var e=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+e-r):36e5,o=i<36e5,a=t.timing&&t.timing.navigationStart,s="number"==typeof a?Math.abs(a+e-r):36e5;return o||s<36e5?i<=s?("timeOrigin",t.timeOrigin):("navigationStart",a):("dateNow",r)}"none"}()}).call(this,r(28)(t))}]);const _filestack$Filestack=filestack.Filestack,_filestack$init=filestack.init,_filestack$version=filestack.version,_filestack$EAlignOptions=filestack.EAlignOptions,_filestack$EAlignFacesOptions=filestack.EAlignFacesOptions,_filestack$EFitOptions=filestack.EFitOptions,_filestack$EBlurMode=filestack.EBlurMode,_filestack$EShapeType=filestack.EShapeType,_filestack$ENoiseType=filestack.ENoiseType,_filestack$EStyleType=filestack.EStyleType,_filestack$EColorspaceType=filestack.EColorspaceType,_filestack$ECropfacesType=filestack.ECropfacesType,_filestack$ESmartCropMode=filestack.ESmartCropMode,_filestack$EImageWatermarkPosition=filestack.EImageWatermarkPosition,_filestack$EAudioTypes=filestack.EAudioTypes,_filestack$EVideoTypes=filestack.EVideoTypes,_filestack$EUrlscreenshotAgent=filestack.EUrlscreenshotAgent,_filestack$EUrlscreenshotMode=filestack.EUrlscreenshotMode,_filestack$EUrlscreenshotOrientation=filestack.EUrlscreenshotOrientation,_filestack$EVideoLocations=filestack.EVideoLocations,_filestack$EVideoAccess=filestack.EVideoAccess,_filestack$EVideoAccessMode=filestack.EVideoAccessMode,_filestack$transform=filestack.transform,_filestack$Align=filestack.Align,_filestack$FitOptions=filestack.FitOptions,_filestack$BlurMode=filestack.BlurMode,_filestack$ShapeType=filestack.ShapeType,_filestack$NoiseType=filestack.NoiseType,_filestack$StyleType=filestack.StyleType,_filestack$ColorspaceType=filestack.ColorspaceType,_filestack$CropfacesType=filestack.CropfacesType,_filestack$ImageWatermarkPosition=filestack.ImageWatermarkPosition,_filestack$SmartCropMode=filestack.SmartCropMode,_filestack$AudioTypes=filestack.AudioTypes,_filestack$VideoTypes=filestack.VideoTypes,_filestack$URLScreenshotAgent=filestack.URLScreenshotAgent,_filestack$URLScreenshotMode=filestack.URLScreenshotMode,_filestack$URLScreenshotOrientation=filestack.URLScreenshotOrientation,_filestack$Locations=filestack.Locations,_filestack$VideoAccess=filestack.VideoAccess,_filestack$VideoAccessMode=filestack.VideoAccessMode,_filestack$EnhancePreset=filestack.EnhancePreset,_filestack$Filelink=filestack.Filelink,_filestack$FilestackErrorType=filestack.FilestackErrorType,_filestack$FsHttpMethod=filestack.FsHttpMethod,_filestack$FsRequest=filestack.FsRequest,_filestack$FsRequestErrorCode=filestack.FsRequestErrorCode,_filestack$FsRequestError=filestack.FsRequestError,_filestack$FsCancelToken=filestack.FsCancelToken,_filestack$resolveCdnUrl=filestack.resolveCdnUrl,_filestack$resolveHost=filestack.resolveHost,_filestack$removeEmpty=filestack.removeEmpty,_filestack$uniqueTime=filestack.uniqueTime,_filestack$uniqueId=filestack.uniqueId,_filestack$extensionToMime=filestack.extensionToMime,_filestack$sanitizeName=filestack.sanitizeName,_filestack$filterObject=filestack.filterObject,_filestack$cleanUpCallbacks=filestack.cleanUpCallbacks,_filestack$md5=filestack.md5,_filestack$b64=filestack.b64,_filestack$getVersion=filestack.getVersion,_filestack$isMobile=filestack.isMobile,_filestack$isFacebook=filestack.isFacebook,_filestack$TransformSchema=filestack.TransformSchema,_filestack$getSecurity=filestack.getSecurity,_filestack$validateWebhookSignature=filestack.validateWebhookSignature,_filestack$Client=filestack.Client,_filestack$FilestackError=filestack.FilestackError,_filestack$PickerDisplayMode=filestack.PickerDisplayMode,_filestack$getMimetype=filestack.getMimetype,_filestack$PrefetchEvents=filestack.PrefetchEvents;export{_filestack$Filestack as Filestack,_filestack$init as init,_filestack$version as version,_filestack$EAlignOptions as EAlignOptions,_filestack$EAlignFacesOptions as EAlignFacesOptions,_filestack$EFitOptions as EFitOptions,_filestack$EBlurMode as EBlurMode,_filestack$EShapeType as EShapeType,_filestack$ENoiseType as ENoiseType,_filestack$EStyleType as EStyleType,_filestack$EColorspaceType as EColorspaceType,_filestack$ECropfacesType as ECropfacesType,_filestack$ESmartCropMode as ESmartCropMode,_filestack$EImageWatermarkPosition as EImageWatermarkPosition,_filestack$EAudioTypes as EAudioTypes,_filestack$EVideoTypes as EVideoTypes,_filestack$EUrlscreenshotAgent as EUrlscreenshotAgent,_filestack$EUrlscreenshotMode as EUrlscreenshotMode,_filestack$EUrlscreenshotOrientation as EUrlscreenshotOrientation,_filestack$EVideoLocations as EVideoLocations,_filestack$EVideoAccess as EVideoAccess,_filestack$EVideoAccessMode as EVideoAccessMode,_filestack$transform as transform,_filestack$Align as Align,_filestack$FitOptions as FitOptions,_filestack$BlurMode as BlurMode,_filestack$ShapeType as ShapeType,_filestack$NoiseType as NoiseType,_filestack$StyleType as StyleType,_filestack$ColorspaceType as ColorspaceType,_filestack$CropfacesType as CropfacesType,_filestack$ImageWatermarkPosition as ImageWatermarkPosition,_filestack$SmartCropMode as SmartCropMode,_filestack$AudioTypes as AudioTypes,_filestack$VideoTypes as VideoTypes,_filestack$URLScreenshotAgent as URLScreenshotAgent,_filestack$URLScreenshotMode as URLScreenshotMode,_filestack$URLScreenshotOrientation as URLScreenshotOrientation,_filestack$Locations as Locations,_filestack$VideoAccess as VideoAccess,_filestack$VideoAccessMode as VideoAccessMode,_filestack$EnhancePreset as EnhancePreset,_filestack$Filelink as Filelink,_filestack$FilestackErrorType as FilestackErrorType,_filestack$FsHttpMethod as FsHttpMethod,_filestack$FsRequest as FsRequest,_filestack$FsRequestErrorCode as FsRequestErrorCode,_filestack$FsRequestError as FsRequestError,_filestack$FsCancelToken as FsCancelToken,_filestack$resolveCdnUrl as resolveCdnUrl,_filestack$resolveHost as resolveHost,_filestack$removeEmpty as removeEmpty,_filestack$uniqueTime as uniqueTime,_filestack$uniqueId as uniqueId,_filestack$extensionToMime as extensionToMime,_filestack$sanitizeName as sanitizeName,_filestack$filterObject as filterObject,_filestack$cleanUpCallbacks as cleanUpCallbacks,_filestack$md5 as md5,_filestack$b64 as b64,_filestack$getVersion as getVersion,_filestack$isMobile as isMobile,_filestack$isFacebook as isFacebook,_filestack$TransformSchema as TransformSchema,_filestack$getSecurity as getSecurity,_filestack$validateWebhookSignature as validateWebhookSignature,_filestack$Client as Client,_filestack$FilestackError as FilestackError,_filestack$PickerDisplayMode as PickerDisplayMode,_filestack$getMimetype as getMimetype,_filestack$PrefetchEvents as PrefetchEvents};
29
29
  //# sourceMappingURL=filestack.esm.js.map