dropzone-vue
Version:
Vue3 Library Component for drag’n’drop file uploads with image previews..
6 lines • 142 kB
JavaScript
/**
* dropzone-vue 0.1.11
* (c) 2021
* @license MIT
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["drop-zone"]=t(e.Vue)}(this,(function(e){"use strict";var t=function(e){try{return!!e()}catch(e){return!0}},i=!t((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e){var t={exports:{}};return e(t,t.exports),t.exports}var p=function(e){return e&&e.Math==Math&&e},r=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof n&&n)||function(){return this}()||Function("return this")(),o=function(e){return"object"==typeof e?null!==e:"function"==typeof e},m=r.document,c=o(m)&&o(m.createElement),l=function(e){return c?m.createElement(e):{}},s=!i&&!t((function(){return 7!=Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a})),d=function(e){if(!o(e))throw TypeError(String(e)+" is not an object");return e},u=function(e,t){if(!o(e))return e;var i,n;if(t&&"function"==typeof(i=e.toString)&&!o(n=i.call(e)))return n;if("function"==typeof(i=e.valueOf)&&!o(n=i.call(e)))return n;if(!t&&"function"==typeof(i=e.toString)&&!o(n=i.call(e)))return n;throw TypeError("Can't convert object to primitive value")},f=Object.defineProperty,y={f:i?f:function(e,t,i){if(d(e),t=u(t,!0),d(i),s)try{return f(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},v=y.f,x=Function.prototype,_=x.toString,h=/^\s*function ([^ (]*)/,g="name";function b(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function w(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function k(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?w(Object(i),!0).forEach((function(t){b(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function E(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?A(e,t):void 0}}(e)||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.")}()}i&&!(g in x)&&v(x,g,{configurable:!0,get:function(){try{return _.call(this).match(h)[1]}catch(e){return""}}});var S={}.propertyIsEnumerable,j=Object.getOwnPropertyDescriptor,O={f:j&&!S.call({1:2},1)?function(e){var t=j(this,e);return!!t&&t.enumerable}:S},T=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},R={}.toString,I=function(e){return R.call(e).slice(8,-1)},L="".split,z=t((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==I(e)?L.call(e,""):Object(e)}:Object,U=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},N=function(e){return z(U(e))},F={}.hasOwnProperty,C=function(e,t){return F.call(e,t)},M=Object.getOwnPropertyDescriptor,P={f:i?M:function(e,t){if(e=N(e),t=u(t,!0),s)try{return M(e,t)}catch(e){}if(C(e,t))return T(!O.f.call(e,t),e[t])}},q=i?function(e,t,i){return y.f(e,t,T(1,i))}:function(e,t,i){return e[t]=i,e},D=function(e,t){try{q(r,e,t)}catch(i){r[e]=t}return t},B="__core-js_shared__",V=r[B]||D(B,{}),G=Function.toString;"function"!=typeof V.inspectSource&&(V.inspectSource=function(e){return G.call(e)});var $,W,Y,H=V.inspectSource,Q=r.WeakMap,X="function"==typeof Q&&/native code/.test(H(Q)),K=a((function(e){(e.exports=function(e,t){return V[e]||(V[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Z=0,J=Math.random(),ee=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Z+J).toString(36)},te=K("keys"),ie=function(e){return te[e]||(te[e]=ee(e))},ne={},ae=r.WeakMap;if(X){var pe=V.state||(V.state=new ae),re=pe.get,oe=pe.has,me=pe.set;$=function(e,t){return t.facade=e,me.call(pe,e,t),t},W=function(e){return re.call(pe,e)||{}},Y=function(e){return oe.call(pe,e)}}else{var ce=ie("state");ne[ce]=!0,$=function(e,t){return t.facade=e,q(e,ce,t),t},W=function(e){return C(e,ce)?e[ce]:{}},Y=function(e){return C(e,ce)}}var le={set:$,get:W,has:Y,enforce:function(e){return Y(e)?W(e):$(e,{})},getterFor:function(e){return function(t){var i;if(!o(t)||(i=W(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return i}}},se=a((function(e){var t=le.get,i=le.enforce,n=String(String).split("String");(e.exports=function(e,t,a,p){var o,m=!!p&&!!p.unsafe,c=!!p&&!!p.enumerable,l=!!p&&!!p.noTargetGet;"function"==typeof a&&("string"!=typeof t||C(a,"name")||q(a,"name",t),(o=i(a)).source||(o.source=n.join("string"==typeof t?t:""))),e!==r?(m?!l&&e[t]&&(c=!0):delete e[t],c?e[t]=a:q(e,t,a)):c?e[t]=a:D(t,a)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||H(this)}))})),de=r,ue=function(e){return"function"==typeof e?e:void 0},fe=function(e,t){return arguments.length<2?ue(de[e])||ue(r[e]):de[e]&&de[e][t]||r[e]&&r[e][t]},ye=Math.ceil,ve=Math.floor,xe=function(e){return isNaN(e=+e)?0:(e>0?ve:ye)(e)},_e=Math.min,he=function(e){return e>0?_e(xe(e),9007199254740991):0},ge=Math.max,be=Math.min,we=function(e,t){var i=xe(e);return i<0?ge(i+t,0):be(i,t)},ke=function(e){return function(t,i,n){var a,p=N(t),r=he(p.length),o=we(n,r);if(e&&i!=i){for(;r>o;)if((a=p[o++])!=a)return!0}else for(;r>o;o++)if((e||o in p)&&p[o]===i)return e||o||0;return!e&&-1}},Ae={includes:ke(!0),indexOf:ke(!1)},Ee=Ae.indexOf,Se=function(e,t){var i,n=N(e),a=0,p=[];for(i in n)!C(ne,i)&&C(n,i)&&p.push(i);for(;t.length>a;)C(n,i=t[a++])&&(~Ee(p,i)||p.push(i));return p},je=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Oe=je.concat("length","prototype"),Te={f:Object.getOwnPropertyNames||function(e){return Se(e,Oe)}},Re={f:Object.getOwnPropertySymbols},Ie=fe("Reflect","ownKeys")||function(e){var t=Te.f(d(e)),i=Re.f;return i?t.concat(i(e)):t},Le=function(e,t){for(var i=Ie(t),n=y.f,a=P.f,p=0;p<i.length;p++){var r=i[p];C(e,r)||n(e,r,a(t,r))}},ze=/#|\.prototype\./,Ue=function(e,i){var n=Fe[Ne(e)];return n==Me||n!=Ce&&("function"==typeof i?t(i):!!i)},Ne=Ue.normalize=function(e){return String(e).replace(ze,".").toLowerCase()},Fe=Ue.data={},Ce=Ue.NATIVE="N",Me=Ue.POLYFILL="P",Pe=Ue,qe=P.f,De=function(e,t){var i,n,a,p,o,m=e.target,c=e.global,l=e.stat;if(i=c?r:l?r[m]||D(m,{}):(r[m]||{}).prototype)for(n in t){if(p=t[n],a=e.noTargetGet?(o=qe(i,n))&&o.value:i[n],!Pe(c?n:m+(l?".":"#")+n,e.forced)&&void 0!==a){if(typeof p==typeof a)continue;Le(p,a)}(e.sham||a&&a.sham)&&q(p,"sham",!0),se(i,n,p,e)}},Be=function(){var e=d(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Ve(e,t){return RegExp(e,t)}var Ge,$e,We={UNSUPPORTED_Y:t((function(){var e=Ve("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:t((function(){var e=Ve("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},Ye=RegExp.prototype.exec,He=String.prototype.replace,Qe=Ye,Xe=(Ge=/a/,$e=/b*/g,Ye.call(Ge,"a"),Ye.call($e,"a"),0!==Ge.lastIndex||0!==$e.lastIndex),Ke=We.UNSUPPORTED_Y||We.BROKEN_CARET,Ze=void 0!==/()??/.exec("")[1];(Xe||Ze||Ke)&&(Qe=function(e){var t,i,n,a,p=this,r=Ke&&p.sticky,o=Be.call(p),m=p.source,c=0,l=e;return r&&(-1===(o=o.replace("y","")).indexOf("g")&&(o+="g"),l=String(e).slice(p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==e[p.lastIndex-1])&&(m="(?: "+m+")",l=" "+l,c++),i=new RegExp("^(?:"+m+")",o)),Ze&&(i=new RegExp("^"+m+"$(?!\\s)",o)),Xe&&(t=p.lastIndex),n=Ye.call(r?i:p,l),r?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=p.lastIndex,p.lastIndex+=n[0].length):p.lastIndex=0:Xe&&n&&(p.lastIndex=p.global?n.index+n[0].length:t),Ze&&n&&n.length>1&&He.call(n[0],i,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(n[a]=void 0)})),n});var Je=Qe;De({target:"RegExp",proto:!0,forced:/./.exec!==Je},{exec:Je});var et,tt,it="process"==I(r.process),nt=fe("navigator","userAgent")||"",at=r.process,pt=at&&at.versions,rt=pt&&pt.v8;rt?tt=(et=rt.split("."))[0]+et[1]:nt&&(!(et=nt.match(/Edge\/(\d+)/))||et[1]>=74)&&(et=nt.match(/Chrome\/(\d+)/))&&(tt=et[1]);var ot=tt&&+tt,mt=!!Object.getOwnPropertySymbols&&!t((function(){return!Symbol.sham&&(it?38===ot:ot>37&&ot<41)})),ct=mt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lt=K("wks"),st=r.Symbol,dt=ct?st:st&&st.withoutSetter||ee,ut=function(e){return C(lt,e)&&(mt||"string"==typeof lt[e])||(mt&&C(st,e)?lt[e]=st[e]:lt[e]=dt("Symbol."+e)),lt[e]},ft=ut("species"),yt=!t((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),vt="$0"==="a".replace(/./,"$0"),xt=ut("replace"),_t=!!/./[xt]&&""===/./[xt]("a","$0"),ht=!t((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var i="ab".split(e);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),gt=function(e,i,n,a){var p=ut(e),r=!t((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),o=r&&!t((function(){var t=!1,i=/a/;return"split"===e&&((i={}).constructor={},i.constructor[ft]=function(){return i},i.flags="",i[p]=/./[p]),i.exec=function(){return t=!0,null},i[p](""),!t}));if(!r||!o||"replace"===e&&(!yt||!vt||_t)||"split"===e&&!ht){var m=/./[p],c=n(p,""[e],(function(e,t,i,n,a){return t.exec===Je?r&&!a?{done:!0,value:m.call(t,i,n)}:{done:!0,value:e.call(i,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:vt,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:_t}),l=c[0],s=c[1];se(String.prototype,e,l),se(RegExp.prototype,p,2==i?function(e,t){return s.call(e,this,t)}:function(e){return s.call(e,this)})}a&&q(RegExp.prototype[p],"sham",!0)},bt=function(e){return function(t,i){var n,a,p=String(U(t)),r=xe(i),o=p.length;return r<0||r>=o?e?"":void 0:(n=p.charCodeAt(r))<55296||n>56319||r+1===o||(a=p.charCodeAt(r+1))<56320||a>57343?e?p.charAt(r):n:e?p.slice(r,r+2):a-56320+(n-55296<<10)+65536}},wt={codeAt:bt(!1),charAt:bt(!0)},kt=wt.charAt,At=function(e,t,i){return t+(i?kt(e,t).length:1)},Et=function(e){return Object(U(e))},St=Math.floor,jt="".replace,Ot=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Tt=/\$([$&'`]|\d{1,2})/g,Rt=function(e,t,i,n,a,p){var r=i+e.length,o=n.length,m=Tt;return void 0!==a&&(a=Et(a),m=Ot),jt.call(p,m,(function(p,m){var c;switch(m.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(r);case"<":c=a[m.slice(1,-1)];break;default:var l=+m;if(0===l)return p;if(l>o){var s=St(l/10);return 0===s?p:s<=o?void 0===n[s-1]?m.charAt(1):n[s-1]+m.charAt(1):p}c=n[l-1]}return void 0===c?"":c}))},It=function(e,t){var i=e.exec;if("function"==typeof i){var n=i.call(e,t);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==I(e))throw TypeError("RegExp#exec called on incompatible receiver");return Je.call(e,t)},Lt=Math.max,zt=Math.min;gt("replace",2,(function(e,t,i,n){var a=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,p=n.REPLACE_KEEPS_$0,r=a?"$":"$0";return[function(i,n){var a=U(this),p=null==i?void 0:i[e];return void 0!==p?p.call(i,a,n):t.call(String(a),i,n)},function(e,n){if(!a&&p||"string"==typeof n&&-1===n.indexOf(r)){var o=i(t,e,this,n);if(o.done)return o.value}var m=d(e),c=String(this),l="function"==typeof n;l||(n=String(n));var s=m.global;if(s){var u=m.unicode;m.lastIndex=0}for(var f=[];;){var y=It(m,c);if(null===y)break;if(f.push(y),!s)break;""===String(y[0])&&(m.lastIndex=At(c,he(m.lastIndex),u))}for(var v,x="",_=0,h=0;h<f.length;h++){y=f[h];for(var g=String(y[0]),b=Lt(zt(xe(y.index),c.length),0),w=[],k=1;k<y.length;k++)w.push(void 0===(v=y[k])?v:String(v));var A=y.groups;if(l){var E=[g].concat(w,b,c);void 0!==A&&E.push(A);var S=String(n.apply(void 0,E))}else S=Rt(g,c,b,w,A,n);b>=_&&(x+=c.slice(_,b)+S,_=b+g.length)}return x+c.slice(_)}]}));var Ut={};Ut[ut("toStringTag")]="z";var Nt="[object z]"===String(Ut),Ft=ut("toStringTag"),Ct="Arguments"==I(function(){return arguments}()),Mt=Nt?I:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Ft))?i:Ct?I(t):"Object"==(n=I(t))&&"function"==typeof t.callee?"Arguments":n},Pt=Nt?{}.toString:function(){return"[object "+Mt(this)+"]"};Nt||se(Object.prototype,"toString",Pt,{unsafe:!0});var qt="toString",Dt=RegExp.prototype,Bt=Dt.toString,Vt=t((function(){return"/a/b"!=Bt.call({source:"a",flags:"b"})})),Gt=Bt.name!=qt;(Vt||Gt)&&se(RegExp.prototype,qt,(function(){var e=d(this),t=String(e.source),i=e.flags;return"/"+t+"/"+String(void 0===i&&e instanceof RegExp&&!("flags"in Dt)?Be.call(e):i)}),{unsafe:!0});var $t=ut("iterator"),Wt=!1;try{var Yt=0,Ht={next:function(){return{done:!!Yt++}},return:function(){Wt=!0}};Ht[$t]=function(){return this},Array.from(Ht,(function(){throw 2}))}catch(e){}var Qt,Xt="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Kt=!t((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Zt=ie("IE_PROTO"),Jt=Object.prototype,ei=Kt?Object.getPrototypeOf:function(e){return e=Et(e),C(e,Zt)?e[Zt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Jt:null},ti=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),t=i instanceof Array}catch(e){}return function(i,n){return d(i),function(e){if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(n),t?e.call(i,n):i.__proto__=n,i}}():void 0),ii=y.f,ni=r.Int8Array,ai=ni&&ni.prototype,pi=r.Uint8ClampedArray,ri=pi&&pi.prototype,oi=ni&&ei(ni),mi=ai&&ei(ai),ci=Object.prototype,li=ci.isPrototypeOf,si=ut("toStringTag"),di=ee("TYPED_ARRAY_TAG"),ui=Xt&&!!ti&&"Opera"!==Mt(r.opera),fi=!1,yi={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},vi={BigInt64Array:8,BigUint64Array:8},xi=function(e){if(!o(e))return!1;var t=Mt(e);return C(yi,t)||C(vi,t)};for(Qt in yi)r[Qt]||(ui=!1);if((!ui||"function"!=typeof oi||oi===Function.prototype)&&(oi=function(){throw TypeError("Incorrect invocation")},ui))for(Qt in yi)r[Qt]&&ti(r[Qt],oi);if((!ui||!mi||mi===ci)&&(mi=oi.prototype,ui))for(Qt in yi)r[Qt]&&ti(r[Qt].prototype,mi);if(ui&&ei(ri)!==mi&&ti(ri,mi),i&&!C(mi,si))for(Qt in fi=!0,ii(mi,si,{get:function(){return o(this)?this[di]:void 0}}),yi)r[Qt]&&q(r[Qt],di,Qt);var _i={NATIVE_ARRAY_BUFFER_VIEWS:ui,TYPED_ARRAY_TAG:fi&&di,aTypedArray:function(e){if(xi(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(ti){if(li.call(oi,e))return e}else for(var t in yi)if(C(yi,Qt)){var i=r[t];if(i&&(e===i||li.call(i,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(i){if(n)for(var a in yi){var p=r[a];p&&C(p.prototype,e)&&delete p.prototype[e]}mi[e]&&!n||se(mi,e,n?t:ui&&ai[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var a,p;if(i){if(ti){if(n)for(a in yi)(p=r[a])&&C(p,e)&&delete p[e];if(oi[e]&&!n)return;try{return se(oi,e,n?t:ui&&ni[e]||t)}catch(e){}}for(a in yi)!(p=r[a])||p[e]&&!n||se(p,e,t)}},isView:function(e){if(!o(e))return!1;var t=Mt(e);return"DataView"===t||C(yi,t)||C(vi,t)},isTypedArray:xi,TypedArray:oi,TypedArrayPrototype:mi},hi=_i.NATIVE_ARRAY_BUFFER_VIEWS,gi=r.ArrayBuffer,bi=r.Int8Array,wi=!hi||!t((function(){bi(1)}))||!t((function(){new bi(-1)}))||!function(e,t){if(!t&&!Wt)return!1;var i=!1;try{var n={};n[$t]=function(){return{next:function(){return{done:i=!0}}}},e(n)}catch(e){}return i}((function(e){new bi,new bi(null),new bi(1.5),new bi(e)}),!0)||t((function(){return 1!==new bi(new gi(2),1,void 0).length})),ki=function(e,t,i){for(var n in t)se(e,n,t[n],i);return e},Ai=function(e,t,i){if(!(e instanceof t))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return e},Ei=function(e){if(void 0===e)return 0;var t=xe(e),i=he(t);if(t!==i)throw RangeError("Wrong length or index");return i},Si=Math.abs,ji=Math.pow,Oi=Math.floor,Ti=Math.log,Ri=Math.LN2,Ii=function(e,t,i){var n,a,p,r=new Array(i),o=8*i-t-1,m=(1<<o)-1,c=m>>1,l=23===t?ji(2,-24)-ji(2,-77):0,s=e<0||0===e&&1/e<0?1:0,d=0;for((e=Si(e))!=e||e===1/0?(a=e!=e?1:0,n=m):(n=Oi(Ti(e)/Ri),e*(p=ji(2,-n))<1&&(n--,p*=2),(e+=n+c>=1?l/p:l*ji(2,1-c))*p>=2&&(n++,p/=2),n+c>=m?(a=0,n=m):n+c>=1?(a=(e*p-1)*ji(2,t),n+=c):(a=e*ji(2,c-1)*ji(2,t),n=0));t>=8;r[d++]=255&a,a/=256,t-=8);for(n=n<<t|a,o+=t;o>0;r[d++]=255&n,n/=256,o-=8);return r[--d]|=128*s,r},Li=function(e,t){var i,n=e.length,a=8*n-t-1,p=(1<<a)-1,r=p>>1,o=a-7,m=n-1,c=e[m--],l=127&c;for(c>>=7;o>0;l=256*l+e[m],m--,o-=8);for(i=l&(1<<-o)-1,l>>=-o,o+=t;o>0;i=256*i+e[m],m--,o-=8);if(0===l)l=1-r;else{if(l===p)return i?NaN:c?-1/0:1/0;i+=ji(2,t),l-=r}return(c?-1:1)*i*ji(2,l-t)},zi=function(e){for(var t=Et(this),i=he(t.length),n=arguments.length,a=we(n>1?arguments[1]:void 0,i),p=n>2?arguments[2]:void 0,r=void 0===p?i:we(p,i);r>a;)t[a++]=e;return t},Ui=y.f,Ni=ut("toStringTag"),Fi=function(e,t,i){e&&!C(e=i?e:e.prototype,Ni)&&Ui(e,Ni,{configurable:!0,value:t})},Ci=Te.f,Mi=y.f,Pi=le.get,qi=le.set,Di="ArrayBuffer",Bi="DataView",Vi="Wrong index",Gi=r.ArrayBuffer,$i=Gi,Wi=r.DataView,Yi=Wi&&Wi.prototype,Hi=Object.prototype,Qi=r.RangeError,Xi=Ii,Ki=Li,Zi=function(e){return[255&e]},Ji=function(e){return[255&e,e>>8&255]},en=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},tn=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},nn=function(e){return Xi(e,23,4)},an=function(e){return Xi(e,52,8)},pn=function(e,t){Mi(e.prototype,t,{get:function(){return Pi(this)[t]}})},rn=function(e,t,i,n){var a=Ei(i),p=Pi(e);if(a+t>p.byteLength)throw Qi(Vi);var r=Pi(p.buffer).bytes,o=a+p.byteOffset,m=r.slice(o,o+t);return n?m:m.reverse()},on=function(e,t,i,n,a,p){var r=Ei(i),o=Pi(e);if(r+t>o.byteLength)throw Qi(Vi);for(var m=Pi(o.buffer).bytes,c=r+o.byteOffset,l=n(+a),s=0;s<t;s++)m[c+s]=l[p?s:t-s-1]};if(Xt){if(!t((function(){Gi(1)}))||!t((function(){new Gi(-1)}))||t((function(){return new Gi,new Gi(1.5),new Gi(NaN),Gi.name!=Di}))){for(var mn,cn=($i=function(e){return Ai(this,$i),new Gi(Ei(e))}).prototype=Gi.prototype,ln=Ci(Gi),sn=0;ln.length>sn;)(mn=ln[sn++])in $i||q($i,mn,Gi[mn]);cn.constructor=$i}ti&&ei(Yi)!==Hi&&ti(Yi,Hi);var dn=new Wi(new $i(2)),un=Yi.setInt8;dn.setInt8(0,2147483648),dn.setInt8(1,2147483649),!dn.getInt8(0)&&dn.getInt8(1)||ki(Yi,{setInt8:function(e,t){un.call(this,e,t<<24>>24)},setUint8:function(e,t){un.call(this,e,t<<24>>24)}},{unsafe:!0})}else $i=function(e){Ai(this,$i,Di);var t=Ei(e);qi(this,{bytes:zi.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},Wi=function(e,t,n){Ai(this,Wi,Bi),Ai(e,$i,Bi);var a=Pi(e).byteLength,p=xe(t);if(p<0||p>a)throw Qi("Wrong offset");if(p+(n=void 0===n?a-p:he(n))>a)throw Qi("Wrong length");qi(this,{buffer:e,byteLength:n,byteOffset:p}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=p)},i&&(pn($i,"byteLength"),pn(Wi,"buffer"),pn(Wi,"byteLength"),pn(Wi,"byteOffset")),ki(Wi.prototype,{getInt8:function(e){return rn(this,1,e)[0]<<24>>24},getUint8:function(e){return rn(this,1,e)[0]},getInt16:function(e){var t=rn(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=rn(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return tn(rn(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return tn(rn(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return Ki(rn(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return Ki(rn(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){on(this,1,e,Zi,t)},setUint8:function(e,t){on(this,1,e,Zi,t)},setInt16:function(e,t){on(this,2,e,Ji,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){on(this,2,e,Ji,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){on(this,4,e,en,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){on(this,4,e,en,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){on(this,4,e,nn,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){on(this,8,e,an,t,arguments.length>2?arguments[2]:void 0)}});Fi($i,Di),Fi(Wi,Bi);var fn,yn={ArrayBuffer:$i,DataView:Wi},vn=function(e,t){var i=function(e){var t=xe(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}(e);if(i%t)throw RangeError("Wrong offset");return i},xn=Object.keys||function(e){return Se(e,je)},_n=i?Object.defineProperties:function(e,t){d(e);for(var i,n=xn(t),a=n.length,p=0;a>p;)y.f(e,i=n[p++],t[i]);return e},hn=fe("document","documentElement"),gn=ie("IE_PROTO"),bn=function(){},wn=function(e){return"<script>"+e+"</"+"script>"},kn=function(){try{fn=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;kn=fn?function(e){e.write(wn("")),e.close();var t=e.parentWindow.Object;return e=null,t}(fn):((t=l("iframe")).style.display="none",hn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(wn("document.F=Object")),e.close(),e.F);for(var i=je.length;i--;)delete kn.prototype[je[i]];return kn()};ne[gn]=!0;var An=Object.create||function(e,t){var i;return null!==e?(bn.prototype=d(e),i=new bn,bn.prototype=null,i[gn]=e):i=kn(),void 0===t?i:_n(i,t)},En={},Sn=ut("iterator"),jn=function(e){if(null!=e)return e[Sn]||e["@@iterator"]||En[Mt(e)]},On=ut("iterator"),Tn=Array.prototype,Rn=function(e){return void 0!==e&&(En.Array===e||Tn[On]===e)},In=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Ln=function(e,t,i){if(In(e),void 0===t)return e;switch(i){case 0:return function(){return e.call(t)};case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,a){return e.call(t,i,n,a)}}return function(){return e.apply(t,arguments)}},zn=_i.aTypedArrayConstructor,Un=function(e){var t,i,n,a,p,r,o=Et(e),m=arguments.length,c=m>1?arguments[1]:void 0,l=void 0!==c,s=jn(o);if(null!=s&&!Rn(s))for(r=(p=s.call(o)).next,o=[];!(a=r.call(p)).done;)o.push(a.value);for(l&&m>2&&(c=Ln(c,arguments[2],2)),i=he(o.length),n=new(zn(this))(i),t=0;i>t;t++)n[t]=l?c(o[t],t):o[t];return n},Nn=Array.isArray||function(e){return"Array"==I(e)},Fn=ut("species"),Cn=function(e,t){var i;return Nn(e)&&("function"!=typeof(i=e.constructor)||i!==Array&&!Nn(i.prototype)?o(i)&&null===(i=i[Fn])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===t?0:t)},Mn=[].push,Pn=function(e){var t=1==e,i=2==e,n=3==e,a=4==e,p=6==e,r=7==e,o=5==e||p;return function(m,c,l,s){for(var d,u,f=Et(m),y=z(f),v=Ln(c,l,3),x=he(y.length),_=0,h=s||Cn,g=t?h(m,x):i||r?h(m,0):void 0;x>_;_++)if((o||_ in y)&&(u=v(d=y[_],_,f),e))if(t)g[_]=u;else if(u)switch(e){case 3:return!0;case 5:return d;case 6:return _;case 2:Mn.call(g,d)}else switch(e){case 4:return!1;case 7:Mn.call(g,d)}return p?-1:n||a?a:g}},qn={forEach:Pn(0),map:Pn(1),filter:Pn(2),some:Pn(3),every:Pn(4),find:Pn(5),findIndex:Pn(6),filterOut:Pn(7)},Dn=ut("species"),Bn=function(e,t,i){var n,a;return ti&&"function"==typeof(n=t.constructor)&&n!==i&&o(a=n.prototype)&&a!==i.prototype&&ti(e,a),e};a((function(e){var t=Te.f,n=qn.forEach,a=le.get,p=le.set,m=y.f,c=P.f,l=Math.round,s=r.RangeError,d=yn.ArrayBuffer,f=yn.DataView,v=_i.NATIVE_ARRAY_BUFFER_VIEWS,x=_i.TYPED_ARRAY_TAG,_=_i.TypedArray,h=_i.TypedArrayPrototype,g=_i.aTypedArrayConstructor,b=_i.isTypedArray,w="BYTES_PER_ELEMENT",k="Wrong length",A=function(e,t){for(var i=0,n=t.length,a=new(g(e))(n);n>i;)a[i]=t[i++];return a},E=function(e,t){m(e,t,{get:function(){return a(this)[t]}})},S=function(e){var t;return e instanceof d||"ArrayBuffer"==(t=Mt(e))||"SharedArrayBuffer"==t},j=function(e,t){return b(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},O=function(e,t){return j(e,t=u(t,!0))?T(2,e[t]):c(e,t)},R=function(e,t,i){return!(j(e,t=u(t,!0))&&o(i)&&C(i,"value"))||C(i,"get")||C(i,"set")||i.configurable||C(i,"writable")&&!i.writable||C(i,"enumerable")&&!i.enumerable?m(e,t,i):(e[t]=i.value,e)};i?(v||(P.f=O,y.f=R,E(h,"buffer"),E(h,"byteOffset"),E(h,"byteLength"),E(h,"length")),De({target:"Object",stat:!0,forced:!v},{getOwnPropertyDescriptor:O,defineProperty:R}),e.exports=function(e,c,u){var g=e.match(/\d+$/)[0]/8,E=e+(u?"Clamped":"")+"Array",j="get"+e,O="set"+e,T=r[E],R=T,I=R&&R.prototype,L={},z=function(e,t){m(e,t,{get:function(){return function(e,t){var i=a(e);return i.view[j](t*g+i.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,i){var n=a(e);u&&(i=(i=l(i))<0?0:i>255?255:255&i),n.view[O](t*g+n.byteOffset,i,!0)}(this,t,e)},enumerable:!0})};v?wi&&(R=c((function(e,t,i,n){return Ai(e,R,E),Bn(o(t)?S(t)?void 0!==n?new T(t,vn(i,g),n):void 0!==i?new T(t,vn(i,g)):new T(t):b(t)?A(R,t):Un.call(R,t):new T(Ei(t)),e,R)})),ti&&ti(R,_),n(t(T),(function(e){e in R||q(R,e,T[e])})),R.prototype=I):(R=c((function(e,t,i,n){Ai(e,R,E);var a,r,m,c=0,l=0;if(o(t)){if(!S(t))return b(t)?A(R,t):Un.call(R,t);a=t,l=vn(i,g);var u=t.byteLength;if(void 0===n){if(u%g)throw s(k);if((r=u-l)<0)throw s(k)}else if((r=he(n)*g)+l>u)throw s(k);m=r/g}else m=Ei(t),a=new d(r=m*g);for(p(e,{buffer:a,byteOffset:l,byteLength:r,length:m,view:new f(a)});c<m;)z(e,c++)})),ti&&ti(R,_),I=R.prototype=An(h)),I.constructor!==R&&q(I,"constructor",R),x&&q(I,x,E),L[E]=R,De({global:!0,forced:R!=T,sham:!v},L),w in R||q(R,w,g),w in I||q(I,w,g),function(e){var t=fe(e),n=y.f;i&&t&&!t[Dn]&&n(t,Dn,{configurable:!0,get:function(){return this}})}(E)}):e.exports=function(){}}))("Uint8",(function(e){return function(t,i,n){return e(this,t,i,n)}}));var Vn=Math.min,Gn=[].copyWithin||function(e,t){var i=Et(this),n=he(i.length),a=we(e,n),p=we(t,n),r=arguments.length>2?arguments[2]:void 0,o=Vn((void 0===r?n:we(r,n))-p,n-a),m=1;for(p<a&&a<p+o&&(m=-1,p+=o-1,a+=o-1);o-- >0;)p in i?i[a]=i[p]:delete i[a],a+=m,p+=m;return i},$n=_i.aTypedArray;(0,_i.exportTypedArrayMethod)("copyWithin",(function(e,t){return Gn.call($n(this),e,t,arguments.length>2?arguments[2]:void 0)}));var Wn=qn.every,Yn=_i.aTypedArray;(0,_i.exportTypedArrayMethod)("every",(function(e){return Wn(Yn(this),e,arguments.length>1?arguments[1]:void 0)}));var Hn=_i.aTypedArray;(0,_i.exportTypedArrayMethod)("fill",(function(e){return zi.apply(Hn(this),arguments)}));var Qn=ut("species"),Xn=function(e,t){var i,n=d(e).constructor;return void 0===n||null==(i=d(n)[Qn])?t:In(i)},Kn=_i.aTypedArrayConstructor,Zn=function(e,t){for(var i=Xn(e,e.constructor),n=0,a=t.length,p=new(Kn(i))(a);a>n;)p[n]=t[n++];return p},Jn=qn.filter,ea=_i.aTypedArray;(0,_i.exportTypedArrayMethod)("filter",(function(e){var t=Jn(ea(this),e,arguments.length>1?arguments[1]:void 0);return Zn(this,t)}));var ta=qn.find,ia=_i.aTypedArray;(0,_i.exportTypedArrayMethod)("find",(function(e){return ta(ia(this),e,arguments.length>1?arguments[1]:void 0)}));var na=qn.findIndex,aa=_i.aTypedArray;(0,_i.exportTypedArrayMethod)("findIndex",(function(e){return na(aa(this),e,arguments.length>1?arguments[1]:void 0)}));var pa=qn.forEach,ra=_i.aTypedArray;(0,_i.exportTypedArrayMethod)("forEach",(function(e){pa(ra(this),e,arguments.length>1?arguments[1]:void 0)}));var oa=Ae.includes,ma=_i.aTypedArray;(0,_i.exportTypedArrayMethod)("includes",(function(e){return oa(ma(this),e,arguments.length>1?arguments[1]:void 0)}));var ca=Ae.indexOf,la=_i.aTypedArray;(0,_i.exportTypedArrayMethod)("indexOf",(function(e){return ca(la(this),e,arguments.length>1?arguments[1]:void 0)}));var sa=ut("unscopables"),da=Array.prototype;null==da[sa]&&y.f(da,sa,{configurable:!0,value:An(null)});var ua,fa,ya,va=function(e){da[sa][e]=!0},xa=ut("iterator"),_a=!1;[].keys&&("next"in(ya=[].keys())?(fa=ei(ei(ya)))!==Object.prototype&&(ua=fa):_a=!0),(null==ua||t((function(){var e={};return ua[xa].call(e)!==e})))&&(ua={}),C(ua,xa)||q(ua,xa,(function(){return this}));var ha={IteratorPrototype:ua,BUGGY_SAFARI_ITERATORS:_a},ga=ha.IteratorPrototype,ba=function(){return this},wa=function(e,t,i){var n=t+" Iterator";return e.prototype=An(ga,{next:T(1,i)}),Fi(e,n,!1),En[n]=ba,e},ka=ha.IteratorPrototype,Aa=ha.BUGGY_SAFARI_ITERATORS,Ea=ut("iterator"),Sa="keys",ja="values",Oa="entries",Ta=function(){return this},Ra=function(e,t,i,n,a,p,r){wa(i,t,n);var o,m,c,l=function(e){if(e===a&&y)return y;if(!Aa&&e in u)return u[e];switch(e){case Sa:case ja:case Oa:return function(){return new i(this,e)}}return function(){return new i(this)}},s=t+" Iterator",d=!1,u=e.prototype,f=u[Ea]||u["@@iterator"]||a&&u[a],y=!Aa&&f||l(a),v="Array"==t&&u.entries||f;if(v&&(o=ei(v.call(new e)),ka!==Object.prototype&&o.next&&(ei(o)!==ka&&(ti?ti(o,ka):"function"!=typeof o[Ea]&&q(o,Ea,Ta)),Fi(o,s,!0))),a==ja&&f&&f.name!==ja&&(d=!0,y=function(){return f.call(this)}),u[Ea]!==y&&q(u,Ea,y),En[t]=y,a)if(m={values:l(ja),keys:p?y:l(Sa),entries:l(Oa)},r)for(c in m)(Aa||d||!(c in u))&&se(u,c,m[c]);else De({target:t,proto:!0,forced:Aa||d},m);return m},Ia="Array Iterator",La=le.set,za=le.getterFor(Ia),Ua=Ra(Array,"Array",(function(e,t){La(this,{type:Ia,target:N(e),index:0,kind:t})}),(function(){var e=za(this),t=e.target,i=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");En.Arguments=En.Array,va("keys"),va("values"),va("entries");var Na=ut("iterator"),Fa=r.Uint8Array,Ca=Ua.values,Ma=Ua.keys,Pa=Ua.entries,qa=_i.aTypedArray,Da=_i.exportTypedArrayMethod,Ba=Fa&&Fa.prototype[Na],Va=!!Ba&&("values"==Ba.name||null==Ba.name),Ga=function(){return Ca.call(qa(this))};Da("entries",(function(){return Pa.call(qa(this))})),Da("keys",(function(){return Ma.call(qa(this))})),Da("values",Ga,!Va),Da(Na,Ga,!Va);var $a=_i.aTypedArray,Wa=[].join;(0,_i.exportTypedArrayMethod)("join",(function(e){return Wa.apply($a(this),arguments)}));var Ya=function(e,i){var n=[][e];return!!n&&t((function(){n.call(null,i||function(){throw 1},1)}))},Ha=Math.min,Qa=[].lastIndexOf,Xa=!!Qa&&1/[1].lastIndexOf(1,-0)<0,Ka=Ya("lastIndexOf"),Za=Xa||!Ka?function(e){if(Xa)return Qa.apply(this,arguments)||0;var t=N(this),i=he(t.length),n=i-1;for(arguments.length>1&&(n=Ha(n,xe(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:Qa,Ja=_i.aTypedArray;(0,_i.exportTypedArrayMethod)("lastIndexOf",(function(e){return Za.apply(Ja(this),arguments)}));var ep=qn.map,tp=_i.aTypedArray,ip=_i.aTypedArrayConstructor;(0,_i.exportTypedArrayMethod)("map",(function(e){return ep(tp(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(ip(Xn(e,e.constructor)))(t)}))}));var np=function(e){return function(t,i,n,a){In(i);var p=Et(t),r=z(p),o=he(p.length),m=e?o-1:0,c=e?-1:1;if(n<2)for(;;){if(m in r){a=r[m],m+=c;break}if(m+=c,e?m<0:o<=m)throw TypeError("Reduce of empty array with no initial value")}for(;e?m>=0:o>m;m+=c)m in r&&(a=i(a,r[m],m,p));return a}},ap={left:np(!1),right:np(!0)},pp=ap.left,rp=_i.aTypedArray;(0,_i.exportTypedArrayMethod)("reduce",(function(e){return pp(rp(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}));var op=ap.right,mp=_i.aTypedArray;(0,_i.exportTypedArrayMethod)("reduceRight",(function(e){return op(mp(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}));var cp=_i.aTypedArray,lp=_i.exportTypedArrayMethod,sp=Math.floor;lp("reverse",(function(){for(var e,t=this,i=cp(t).length,n=sp(i/2),a=0;a<n;)e=t[a],t[a++]=t[--i],t[i]=e;return t}));var dp=_i.aTypedArray;(0,_i.exportTypedArrayMethod)("set",(function(e){dp(this);var t=vn(arguments.length>1?arguments[1]:void 0,1),i=this.length,n=Et(e),a=he(n.length),p=0;if(a+t>i)throw RangeError("Wrong length");for(;p<a;)this[t+p]=n[p++]}),t((function(){new Int8Array(1).set({})})));var up=_i.aTypedArray,fp=_i.aTypedArrayConstructor,yp=[].slice;(0,_i.exportTypedArrayMethod)("slice",(function(e,t){for(var i=yp.call(up(this),e,t),n=Xn(this,this.constructor),a=0,p=i.length,r=new(fp(n))(p);p>a;)r[a]=i[a++];return r}),t((function(){new Int8Array(1).slice()})));var vp=qn.some,xp=_i.aTypedArray;(0,_i.exportTypedArrayMethod)("some",(function(e){return vp(xp(this),e,arguments.length>1?arguments[1]:void 0)}));var _p=_i.aTypedArray,hp=[].sort;(0,_i.exportTypedArrayMethod)("sort",(function(e){return hp.call(_p(this),e)}));var gp=_i.aTypedArray;(0,_i.exportTypedArrayMethod)("subarray",(function(e,t){var i=gp(this),n=i.length,a=we(e,n);return new(Xn(i,i.constructor))(i.buffer,i.byteOffset+a*i.BYTES_PER_ELEMENT,he((void 0===t?n:we(t,n))-a))}));var bp=r.Int8Array,wp=_i.aTypedArray,kp=_i.exportTypedArrayMethod,Ap=[].toLocaleString,Ep=[].slice,Sp=!!bp&&t((function(){Ap.call(new bp(1))}));kp("toLocaleString",(function(){return Ap.apply(Sp?Ep.call(wp(this)):wp(this),arguments)}),t((function(){return[1,2].toLocaleString()!=new bp([1,2]).toLocaleString()}))||!t((function(){bp.prototype.toLocaleString.call([1,2])})));var jp=_i.exportTypedArrayMethod,Op=r.Uint8Array,Tp=Op&&Op.prototype||{},Rp=[].toString,Ip=[].join;t((function(){Rp.call({})}))&&(Rp=function(){return Ip.call(this)});var Lp=Tp.toString!=Rp;jp("toString",Rp,Lp);var zp=wt.charAt,Up="String Iterator",Np=le.set,Fp=le.getterFor(Up);Ra(String,"String",(function(e){Np(this,{type:Up,string:String(e),index:0})}),(function(){var e,t=Fp(this),i=t.string,n=t.index;return n>=i.length?{value:void 0,done:!0}:(e=zp(i,n),t.index+=e.length,{value:e,done:!1})}));var Cp=ut("iterator"),Mp=!t((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,i="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),i+=n+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Cp]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host})),Pp=Object.assign,qp=Object.defineProperty,Dp=!Pp||t((function(){if(i&&1!==Pp({b:1},Pp(qp({},"a",{enumerable:!0,get:function(){qp(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),a="abcdefghijklmnopqrst";return e[n]=7,a.split("").forEach((function(e){t[e]=e})),7!=Pp({},e)[n]||xn(Pp({},t)).join("")!=a}))?function(e,t){for(var n=Et(e),a=arguments.length,p=1,r=Re.f,o=O.f;a>p;)for(var m,c=z(arguments[p++]),l=r?xn(c).concat(r(c)):xn(c),s=l.length,d=0;s>d;)m=l[d++],i&&!o.call(c,m)||(n[m]=c[m]);return n}:Pp,Bp=function(e,t,i,n){try{return n?t(d(i)[0],i[1]):t(i)}catch(t){throw function(e){var t=e.return;if(void 0!==t)d(t.call(e)).value}(e),t}},Vp=function(e,t,i){var n=u(t);n in e?y.f(e,n,T(0,i)):e[n]=i},Gp=function(e){var t,i,n,a,p,r,o=Et(e),m="function"==typeof this?this:Array,c=arguments.length,l=c>1?arguments[1]:void 0,s=void 0!==l,d=jn(o),u=0;if(s&&(l=Ln(l,c>2?arguments[2]:void 0,2)),null==d||m==Array&&Rn(d))for(i=new m(t=he(o.length));t>u;u++)r=s?l(o[u],u):o[u],Vp(i,u,r);else for(p=(a=d.call(o)).next,i=new m;!(n=p.call(a)).done;u++)r=s?Bp(a,l,[n.value,u],!0):n.value,Vp(i,u,r);return i.length=u,i},$p=2147483647,Wp=/[^\0-\u007E]/,Yp=/[.\u3002\uFF0E\uFF61]/g,Hp="Overflow: input needs wider integers to process",Qp=Math.floor,Xp=String.fromCharCode,Kp=function(e){return e+22+75*(e<26)},Zp=function(e,t,i){var n=0;for(e=i?Qp(e/700):e>>1,e+=Qp(e/t);e>455;n+=36)e=Qp(e/35);return Qp(n+36*e/(e+38))},Jp=function(e){var t,i,n=[],a=(e=function(e){for(var t=[],i=0,n=e.length;i<n;){var a=e.charCodeAt(i++);if(a>=55296&&a<=56319&&i<n){var p=e.charCodeAt(i++);56320==(64512&p)?t.push(((1023&a)<<10)+(1023&p)+65536):(t.push(a),i--)}else t.push(a)}return t}(e)).length,p=128,r=0,o=72;for(t=0;t<e.length;t++)(i=e[t])<128&&n.push(Xp(i));var m=n.length,c=m;for(m&&n.push("-");c<a;){var l=$p;for(t=0;t<e.length;t++)(i=e[t])>=p&&i<l&&(l=i);var s=c+1;if(l-p>Qp(($p-r)/s))throw RangeError(Hp);for(r+=(l-p)*s,p=l,t=0;t<e.length;t++){if((i=e[t])<p&&++r>$p)throw RangeError(Hp);if(i==p){for(var d=r,u=36;;u+=36){var f=u<=o?1:u>=o+26?26:u-o;if(d<f)break;var y=d-f,v=36-f;n.push(Xp(Kp(f+y%v))),d=Qp(y/v)}n.push(Xp(Kp(d))),o=Zp(r,s,c==m),r=0,++c}}++r,++p}return n.join("")},er=function(e){var t=jn(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return d(t.call(e))},tr=fe("fetch"),ir=fe("Headers"),nr=ut("iterator"),ar="URLSearchParams",pr="URLSearchParamsIterator",rr=le.set,or=le.getterFor(ar),mr=le.getterFor(pr),cr=/\+/g,lr=Array(4),sr=function(e){return lr[e-1]||(lr[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},dr=function(e){try{return decodeURIComponent(e)}catch(t){return e}},ur=function(e){var t=e.replace(cr," "),i=4;try{return decodeURIComponent(t)}catch(e){for(;i;)t=t.replace(sr(i--),dr);return t}},fr=/[!'()~]|%20/g,yr={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},vr=function(e){return yr[e]},xr=function(e){return encodeURIComponent(e).replace(fr,vr)},_r=function(e,t){if(t)for(var i,n,a=t.split("&"),p=0;p<a.length;)(i=a[p++]).length&&(n=i.split("="),e.push({key:ur(n.shift()),value:ur(n.join("="))}))},hr=function(e){this.entries.length=0,_r(this.entries,e)},gr=function(e,t){if(e<t)throw TypeError("Not enough arguments")},br=wa((function(e,t){rr(this,{type:pr,iterator:er(or(e).entries),kind:t})}),"Iterator",(function(){var e=mr(this),t=e.kind,i=e.iterator.next(),n=i.value;return i.done||(i.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),i})),wr=function(){Ai(this,wr,ar);var e,t,i,n,a,p,r,m,c,l=arguments.length>0?arguments[0]:void 0,s=this,u=[];if(rr(s,{type:ar,entries:u,updateURL:function(){},updateSearchParams:hr}),void 0!==l)if(o(l))if("function"==typeof(e=jn(l)))for(i=(t=e.call(l)).next;!(n=i.call(t)).done;){if((r=(p=(a=er(d(n.value))).next).call(a)).done||(m=p.call(a)).done||!p.call(a).done)throw TypeError("Expected sequence with length 2");u.push({key:r.value+"",value:m.value+""})}else for(c in l)C(l,c)&&u.push({key:c,value:l[c]+""});else _r(u,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},kr=wr.prototype;ki(kr,{append:function(e,t){gr(arguments.length,2);var i=or(this);i.entries.push({key:e+"",value:t+""}),i.updateURL()},delete:function(e){gr(arguments.length,1);for(var t=or(this),i=t.entries,n=e+"",a=0;a<i.length;)i[a].key===n?i.splice(a,1):a++;t.updateURL()},get:function(e){gr(arguments.length,1);for(var t=or(this).entries,i=e+"",n=0;n<t.length;n++)if(t[n].key===i)return t[n].value;return null},getAll:function(e){gr(arguments.length,1);for(var t=or(this).entries,i=e+"",n=[],a=0;a<t.length;a++)t[a].key===i&&n.push(t[a].value);return n},has:function(e){gr(arguments.length,1);for(var t=or(this).entries,i=e+"",n=0;n<t.length;)if(t[n++].key===i)return!0;return!1},set:function(e,t){gr(arguments.length,1);for(var i,n=or(this),a=n.entries,p=!1,r=e+"",o=t+"",m=0;m<a.length;m++)(i=a[m]).key===r&&(p?a.splice(m--,1):(p=!0,i.value=o));p||a.push({key:r,value:o}),n.updateURL()},sort:function(){var e,t,i,n=or(this),a=n.entries,p=a.slice();for(a.length=0,i=0;i<p.length;i++){for(e=p[i],t=0;t<i;t++)if(a[t].key>e.key){a.splice(t,0,e);break}t===i&&a.push(e)}n.updateURL()},forEach:function(e){for(var t,i=or(this).entries,n=Ln(e,arguments.length>1?arguments[1]:void 0,3),a=0;a<i.length;)n((t=i[a++]).value,t.key,this)},keys:function(){return new br(this,"keys")},values:function(){return new br(this,"values")},entries:function(){return new br(this,"entries")}},{enumerable:!0}),se(kr,nr,kr.entries),se(kr,"toString",(function(){for(var e,t=or(this).entries,i=[],n=0;n<t.length;)e=t[n++],i.push(xr(e.key)+"="+xr(e.value));return i.join("&")}),{enumerable:!0}),Fi(wr,ar),De({global:!0,forced:!Mp},{URLSearchParams:wr}),Mp||"function"!=typeof tr||"function"!=typeof ir||De({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,i,n,a=[e];return arguments.length>1&&(o(t=arguments[1])&&(i=t.body,Mt(i)===ar&&((n=t.headers?new ir(t.headers):new ir).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=An(t,{body:T(0,String(i)),headers:T(0,n)}))),a.push(t)),tr.apply(this,a)}});var Ar,Er={URLSearchParams:wr,getState:or},Sr=wt.codeAt,jr=r.URL,Or=Er.URLSearchParams,Tr=Er.getState,Rr=le.set,Ir=le.getterFor("URL"),Lr=Math.floor,zr=Math.pow,Ur="Invalid scheme",Nr="Invalid host",Fr="Invalid port",Cr=/[A-Za-z]/,Mr=/[\d+-.A-Za-z]/,Pr=/\d/,qr=/^(0x|0X)/,Dr=/^[0-7]+$/,Br=/^\d+$/,Vr=/^[\dA-Fa-f]+$/,Gr=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,$r=/[\u0000\t\u000A\u000D #/:?@[\\]]/,Wr=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Yr=/[\t\u000A\u000D]/g,Hr=function(e,t){var i,n,a;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return Nr;if(!(i=Xr(t.slice(1,-1))))return Nr;e.host=i}else if(ao(e)){if(t=function(e){var t,i,n=[],a=e.toLowerCase().replace(Yp,".").split(".");for(t=0;t<a.length;t++)i=a[t],n.push(Wp.test(i)?"xn--"+Jp(i):i);return n.join(".")}(t),Gr.test(t))return Nr;if(null===(i=Qr(t)))return Nr;e.host=i}else{if($r.test(t))return Nr;for(i="",n=Gp(t),a=0;a<n.length;a++)i+=io(n[a],Zr);e.host=i}},Qr=function(e){var t,i,n,a,p,r,o,m=e.split(".");if(m.length&&""==m[m.length-1]&&m.pop(),(t=m.length)>4)return e;for(i=[],n=0;n<t;n++){if(""==(a=m[n]))return e;if(p=10,a.length>1&&"0"==a.charAt(0)&&(p=qr.test(a)?16:8,a=a.slice(8==p?1:2)),""===a)r=0;else{if(!(10==p?Br:8==p?Dr:Vr).test(a))return e;r=parseInt(a,p)}i.push(r)}for(n=0;n<t;n++)if(r=i[n],n==t-1){if(r>=zr(256,5-t))return null}else if(r>255)return null;for(o=i.pop(),n=0;n<i.length;n++)o+=i[n]*zr(256,3-n);return o},Xr=function(e){var t,i,n,a,p,r,o,m=[0,0,0,0,0,0,0,0],c=0,l=null,s=0,d=function(){return e.charAt(s)};if(":"==d()){if(":"!=e.charAt(1))return;s+=2,l=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=i=0;i<4&&Vr.test(d());)t=16*t+parseInt(d(),16),s++,i++;if("."==d()){if(0==i)return;if(s-=i,c>6)return;for(n=0;d();){if(a=null,n>0){if(!("."==d()&&n<4))return;s++}if(!Pr.test(d()))return;for(;Pr.test(d());){if(p=parseInt(d(),10),null===a)a=p;else{if(0==a)return;a=10*a+p}if(a>255)return;s++}m[c]=256*m[c]+a,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==d()){if(s++,!d())return}else if(d())return;m[c++]=t}else{if(null!==l)return;s++,l=++c}}if(null!==l)for(r=c-l,c=7;0!=c&&r>0;)o=m[c],m[c--]=m[l+r-1],m[l+--r]=o;else if(8!=c)return;return m},Kr=function(e){var t,i,n,a;if("number"==typeof e){for(t=[],i=0;i<4;i++)t.unshift(e%256),e=Lr(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,i=1,n=null,a=0,p=0;p<8;p++)0!==e[p]?(a>i&&(t=n,i=a),n=null,a=0):(null===n&&(n=p),++a);return a>i&&(t=n,i=a),t}(e),i=0;i<8;i++)a&&0===e[i]||(a&&(a=!1),n===i?(t+=i?":":"::",a=!0):(t+=e[i].toString(16),i<7&&(t+=":")));return"["+t+"]"}return e},Zr={},Jr=Dp({},Zr,{" ":1,'"':1,"<":1,">":1,"`":1}),eo=Dp({},Jr,{"#":1,"?":1,"{":1,"}":1}),to=Dp({},eo,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),io=function(e,t){var i=Sr(e,0);return i>32&&i<127&&!C(t,e)?e:encodeURIComponent(e)},no={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ao=function(e){return C(no,e.scheme)},po=function(e){return""!=e.username||""!=e.password},ro=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},oo=function(e,t){var i;return 2==e.length&&Cr.test(e.charAt(0))&&(":"==(i=e.charAt(1))||!t&&"|"==i)},mo=function(e){var t;return e.length>1&&oo(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},co=function(e){var t=e.path,i=t.length;!i||"file"==e.scheme&&1==i&&oo(t[0],!0)||t.pop()},lo=function(e){return"."===e||"%2e"===e.toLowerCase()},so={},uo={},fo={},yo={},vo={},xo={},_o={},ho={},go={},bo={},wo={},ko={},Ao={},Eo={},So={},jo={},Oo={},To={},Ro={},Io={},Lo={},zo=function(e,t,i,n){var a,p,r,o,m,c=i||so,l=0,s="",d=!1,u=!1,f=!1;for(i||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(Wr,"")),t=t.replace(Yr,""),a=Gp(t);l<=a.length;){switch(p=a[l],c){case so:if(!p||!Cr.test(p)){if(i)return Ur;c=fo;continue}s+=p.toLowerCase(),c=uo;break;case uo:if(p&&(Mr.test(p)||"+"==p||"-"==p||"."==p))s+=p.toLowerCase();else{if(":"!=p){if(i)return Ur;s="",c=fo,l=0;continue}if(i&&(ao(e)!=C(no,s)||"file"==s&&(po(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=s,i)return void(ao(e)&&no[e.scheme]==e.port&&(e.port=null));s="","file"==e.scheme?c=Eo:ao(e)&&n&&n.scheme==e.scheme?c=yo:ao(e)?c=ho:"/"==a[l+1]?(c=vo,l++):(e.cannotBeABaseURL=!0,e.path.push(""),c=Ro)}break;case fo:if(!n||n.cannotBeABaseURL&&"#"!=p)return Ur;if(n.cannotBeABaseURL&&"#"==p){e.scheme=n.scheme,e.path=n.path.slice(),e.query=n.query,e.fragment="",e.cannotBeABaseURL=!0,c=Lo;break}c="file"==n.scheme?Eo:xo;continue;case yo:if("/"!=p||"/"!=a[l+1]){c=xo;continue}c=go,l++;break;case vo:if("/"==p){c=bo;break}c=To;continue;case xo:if(e.scheme=n.scheme,p==Ar)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query;else if("/"==p||"\\"==p&&ao(e))c=_o;else if("?"==p)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query="",c=Io;else{if("#"!=p){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.path.pop(),c=To;continue}e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query,e.fragment="",c=Lo}break;case _o:if(!ao(e)||"/"!=p&&"\\"!=p){if("/"!=p){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,c=To;continue}c=bo}else c=go;break;case ho:if(c=go,"/"!=p||"/"!=s.charAt(l+1))continue;l++;break;case go:if("/"!=p&&"\\"!=p){c=bo;continue}break;case bo:if("@"==p){d&&(s="%40"+s),d=!0,r=Gp(s);for(var y=0;y<r.length;y++){var v=r[y];if(":"!=v||f){var x=io(v,to);f?e.password+=x:e.username+=x}else f=!0}s=""}else if(p==Ar||"/"==p||"?"==p||"#"==p||"\\"==p&&ao(e)){if(d&&""==s)return"Invalid authority";l-=Gp(s).length+1,s="",c=wo}else s+=p;break;case wo:case ko:if(i&&"file"==e.scheme){c=jo;continue}if(":"!=p||u){if(p==Ar||"/"==p||"?"==p||"#"==p||"\\"==p&&ao(e)){if(ao(e)&&""==s)return Nr;if(i&&""==s&&(po(e)||null!==e.port))return;if(o=Hr(e,s))return o;if(s="",c=Oo,i)return;continue}"["==p?u=!0:"]"==p&&(u=!1),s+=p}else{if(""==s)return Nr;if(o=Hr(e,s))return o;if(s="",c=Ao,i==ko)return}break;case Ao:if(!Pr.test(p)){if(p==Ar||"/"==p||"?"==p||"#"==p||"\\"==p&&ao(e)||i){if(""!=s){var _=parseInt(s,10);if(_>65535)return Fr;e.port=ao(e)&&_===no[e.scheme]?null:_,s=""}if(i)return;c=Oo;continue}return Fr}s+=p;break;case Eo:if(e.scheme="file","/"==p||"\\"==p)c=So;else{if(!n||"file"!=n.scheme){c=To;continue}if(p==Ar)e.host=n.host,e.path=n.path.slice(),e.query=n.query;else if("?"==p)e.host=n.host,e.path=n.path.slice(),e.query="",c=Io;else{if("#"!=p){mo(a.slice(l).join(""))||(e.host=n.host,e.path=n.path.slice(),co(e)),c=To;continue}e.host=n.host,e.path=n.path.slice(),e.query=n.query,e.fragment="",c=Lo}}break;case So:if("/"==p||"\\"==p){c=jo;break}n&&"file"==n.scheme&&!mo(a.slice(l).join(""))&&(oo(n.path[0],!0)?e.path.push(n.path[0]):e.host=n.host),c=To;continue;case jo:if(p==Ar||"/"==p||"\\"==p||"?"==p||"#"==p){if(!i&&oo(s))c=To;else if(""==s){if(e.host="",i)return;c=Oo}else{if(o=Hr(e,s))return o;if("localhost"==e.host&&(e.host=""),i)return;s="",c=Oo}continue}s+=p;break;case Oo:if(ao(e)){if(c=To,"/"!=p&&"\\"!=p)continue}else if(i||"?"!=p)if(i||"#"!=p){if(p!=Ar&&(c=To,"/"!=p))continue}else e.fragment="",c=Lo;else e.query="",c=Io;break;case To:if(p==Ar||"/"==p||"\\"==p&&ao(e)||!i&&("?"==p||"#"==p)){if(".."===(m=(m=s).toLowerCase())||"%2e."===m||".%2e"===m||"%2e%2e"===m?(co(e),"/"==p||"\\"==p&&ao(e)||e.path.push("")):lo(s)?"/"==p||"\\"==p&&ao(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&oo(s)&&(e.host&&(e.host=""),s=s.charAt(0)+":"),e.path.push(s)),s="","file"==e.scheme&&(p==Ar||"?"==p||"#"==p))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==p?(e.query="",c=Io):"#"==p&&(e.fragment="",c=Lo)}else s+=io(p,eo);break;case Ro:"?"==p?(e.query="",c=Io):"#"==p?(e.fragment="",c=Lo):p!=Ar&&(e.path[0]+=io(p,Zr));break;case Io:i||"#"!=p?p!=Ar&&("'"==p&&ao(e)?e.query+="%27":e.query+="#"==p?"%23":io(p,Zr)):(e.fragment="",c=Lo);break;case Lo:p!=Ar&&(e.fragment+=io(p,Jr))}l++}},Uo=function(e){var t,n,a=Ai(this,Uo,"URL"),p=arguments.length>1?arguments[1]:void 0,r=String(e),o=Rr(a,{type:"URL"});if(void 0!==p)if(p instanceof Uo)t=Ir(p);else if(n=zo(t={},String(p)))throw TypeError(n);if(n=zo(o,r,null,t))throw TypeError(n);var m=o.searchParams=new Or,c=Tr(m);c.updateSearchParams(o.query),c.updateURL=function(){o.query=String(m)||null},i||(a.href=Fo.call(a),a.origin=Co.call(a),a.protocol=Mo.call(a),a.username=Po.call(a),a.password=qo.call(a),a.host=Do.call(a),a.hostname=Bo.call(a),a.port=Vo.call(a),a.pathname=Go.call(a),a.search=$o.call(a),a.searchParams=Wo.call(a),a.hash=Yo.call(a))},No=Uo.prototype,Fo=function(){var e=Ir(this),t=e.scheme,i=e.username,n=e.password,a=e.host,p=e.port,r=e.path,o=e.query,m=e.fragment,c=t+":";return null!==a?(c+="//",po(e)&&(c+=i+(n?":"+n:"")+"@"),c+=Kr(a),null!==p&&(c+=":"+p)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?r[0]:r.length?"/"+r.join("/"):"",null!==o&&(c+="?"+o),null!==m&&(c+="#"+m),c},Co=function(){var e=Ir(this),t=e.scheme,i=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!