UNPKG

leaflet-freedraw

Version:

Zoopla inspired freehand polygon creation using Leaflet.js.

1 lines 497 kB
function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function e(t,e,n){return e=u(e),function(t,e){if(e&&("object"==typeof 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)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,d(i.key),i)}}function r(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=v(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}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,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function s(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}}).apply(null,arguments)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(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&&f(t,e)}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||v(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.")}()}function d(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function v(e,n){if(e){if("string"==typeof e)return t(e,n);var i={}.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)?t(e,n):void 0}}var m="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")(),y={}.hasOwnProperty,g=function(t,e){return y.call(t,e)},_=function(t){try{return!!t()}catch(t){return!0}},P=!_(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),x={}.propertyIsEnumerable,b=Object.getOwnPropertyDescriptor,w={f:b&&!x.call({1:2},1)?function(t){var e=b(this,t);return!!e&&e.enumerable}:x},E=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},T={}.toString,S=function(t){return T.call(t).slice(8,-1)},I="".split,C=_(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==S(t)?I.call(t,""):Object(t)}:Object,O=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},A=function(t){return C(O(t))},M=function(t){return"object"==typeof t?null!==t:"function"==typeof t},N=function(t,e){if(!M(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!M(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!M(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!M(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},R=m.document,k=M(R)&&M(R.createElement),B=function(t){return k?R.createElement(t):{}},D=!P&&!_(function(){return 7!=Object.defineProperty(B("div"),"a",{get:function(){return 7}}).a}),j=Object.getOwnPropertyDescriptor,z={f:P?j:function(t,e){if(t=A(t),e=N(e,!0),D)try{return j(t,e)}catch(t){}if(g(t,e))return E(!w.f.call(t,e),t[e])}},Y=function(t){if(!M(t))throw TypeError(String(t)+" is not an object");return t},X=Object.defineProperty,F={f:P?X:function(t,e,n){if(Y(t),e=N(e,!0),Y(n),D)try{return X(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},W=P?function(t,e,n){return F.f(t,e,E(1,n))}:function(t,e,n){return t[e]=n,t},Z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function U(t,e){return t(e={exports:{}},e.exports),e.exports}var q,G,H,V=function(t,e){try{W(m,t,e)}catch(n){m[t]=e}return e},J=U(function(t){var e=m["__core-js_shared__"]||V("__core-js_shared__",{});(t.exports=function(t,n){return e[t]||(e[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.0.1",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),K=J("native-function-to-string",Function.toString),$=m.WeakMap,Q="function"==typeof $&&/native code/.test(K.call($)),tt=0,et=Math.random(),nt=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++tt+et).toString(36))},it=J("keys"),rt=function(t){return it[t]||(it[t]=nt(t))},ot={},st=m.WeakMap;if(Q){var at=new st,ut=at.get,lt=at.has,ht=at.set;q=function(t,e){return ht.call(at,t,e),e},G=function(t){return ut.call(at,t)||{}},H=function(t){return lt.call(at,t)}}else{var ct=rt("state");ot[ct]=!0,q=function(t,e){return W(t,ct,e),e},G=function(t){return g(t,ct)?t[ct]:{}},H=function(t){return g(t,ct)}}var ft={set:q,get:G,has:H,enforce:function(t){return H(t)?G(t):q(t,{})},getterFor:function(t){return function(e){var n;if(!M(e)||(n=G(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},pt=U(function(t){var e=ft.get,n=ft.enforce,i=String(K).split("toString");J("inspectSource",function(t){return K.call(t)}),(t.exports=function(t,e,r,o){var s=!!o&&!!o.unsafe,a=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet;"function"==typeof r&&("string"!=typeof e||g(r,"name")||W(r,"name",e),n(r).source=i.join("string"==typeof e?e:"")),t!==m?(s?!u&&t[e]&&(a=!0):delete t[e],a?t[e]=r:W(t,e,r)):a?t[e]=r:V(e,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||K.call(this)})}),dt=Math.ceil,vt=Math.floor,mt=function(t){return isNaN(t=+t)?0:(t>0?vt:dt)(t)},yt=Math.min,gt=function(t){return t>0?yt(mt(t),9007199254740991):0},_t=Math.max,Pt=Math.min,xt=function(t,e){var n=mt(t);return n<0?_t(n+e,0):Pt(n,e)},bt=function(t){return function(e,n,i){var r,o=A(e),s=gt(o.length),a=xt(i,s);if(t&&n!=n){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},wt=bt(!1),Et=function(t,e){var n,i=A(t),r=0,o=[];for(n in i)!g(ot,n)&&g(i,n)&&o.push(n);for(;e.length>r;)g(i,n=e[r++])&&(~wt(o,n)||o.push(n));return o},Lt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tt=Lt.concat("length","prototype"),St={f:Object.getOwnPropertyNames||function(t){return Et(t,Tt)}},It={f:Object.getOwnPropertySymbols},Ct=m.Reflect,Ot=Ct&&Ct.ownKeys||function(t){var e=St.f(Y(t)),n=It.f;return n?e.concat(n(t)):e},At=function(t,e){for(var n=Ot(e),i=F.f,r=z.f,o=0;o<n.length;o++){var s=n[o];g(t,s)||i(t,s,r(e,s))}},Mt=/#|\.prototype\./,Nt=function(t,e){var n=kt[Rt(t)];return n==Dt||n!=Bt&&("function"==typeof e?_(e):!!e)},Rt=Nt.normalize=function(t){return String(t).replace(Mt,".").toLowerCase()},kt=Nt.data={},Bt=Nt.NATIVE="N",Dt=Nt.POLYFILL="P",jt=Nt,zt=z.f,Yt=function(t,e){var n,i,r,o,s,a=t.target,u=t.global,l=t.stat;if(n=u?m:l?m[a]||V(a,{}):(m[a]||{}).prototype)for(i in e){if(o=e[i],r=t.noTargetGet?(s=zt(n,i))&&s.value:n[i],!jt(u?i:a+(l?".":"#")+i,t.forced)&&void 0!==r){if(typeof o==typeof r)continue;At(o,r)}(t.sham||r&&r.sham)&&W(o,"sham",!0),pt(n,i,o,t)}},Xt=!_(function(){return!String(Symbol())}),Ft=J("wks"),Wt=m.Symbol,Zt=function(t){return Ft[t]||(Ft[t]=Xt&&Wt[t]||(Xt?Wt:nt)("Symbol."+t))},Ut=F.f,qt=Zt("toStringTag"),Gt=function(t,e,n){t&&!g(t=n?t:t.prototype,qt)&&Ut(t,qt,{configurable:!0,value:e})},Ht={f:Zt},Vt=m,Jt=F.f,Kt=function(t){var e=Vt.Symbol||(Vt.Symbol={});g(e,t)||Jt(e,t,{value:Ht.f(t)})},$t=Object.keys||function(t){return Et(t,Lt)},Qt=Array.isArray||function(t){return"Array"==S(t)},te=P?Object.defineProperties:function(t,e){Y(t);for(var n,i=$t(e),r=i.length,o=0;r>o;)F.f(t,n=i[o++],e[n]);return t},ee=m.document,ne=ee&&ee.documentElement,ie=rt("IE_PROTO"),re=function(){},oe=function(){var t,e=B("iframe"),n=Lt.length;for(e.style.display="none",ne.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),oe=t.F;n--;)delete oe.prototype[Lt[n]];return oe()},se=Object.create||function(t,e){var n;return null!==t?(re.prototype=Y(t),n=new re,re.prototype=null,n[ie]=t):n=oe(),void 0===e?n:te(n,e)};ot[ie]=!0;var ae=St.f,ue={}.toString,le="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],he={f:function(t){return le&&"[object Window]"==ue.call(t)?function(t){try{return ae(t)}catch(t){return le.slice()}}(t):ae(A(t))}},ce=rt("hidden"),fe=ft.set,pe=ft.getterFor("Symbol"),de=z.f,ve=F.f,me=he.f,ye=m.Symbol,ge=m.JSON,_e=ge&&ge.stringify,Pe=Zt("toPrimitive"),xe=w.f,be=J("symbol-registry"),we=J("symbols"),Ee=J("op-symbols"),Le=J("wks"),Te=Object.prototype,Se=m.QObject,Ie=!Se||!Se.prototype||!Se.prototype.findChild,Ce=P&&_(function(){return 7!=se(ve({},"a",{get:function(){return ve(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=de(Te,e);i&&delete Te[e],ve(t,e,n),i&&t!==Te&&ve(Te,e,i)}:ve,Oe=function(t,e){var n=we[t]=se(ye.prototype);return fe(n,{type:"Symbol",tag:t,description:e}),P||(n.description=e),n},Ae=Xt&&"symbol"==typeof ye.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof ye},Me=function(t,e,n){return t===Te&&Me(Ee,e,n),Y(t),e=N(e,!0),Y(n),g(we,e)?(n.enumerable?(g(t,ce)&&t[ce][e]&&(t[ce][e]=!1),n=se(n,{enumerable:E(0,!1)})):(g(t,ce)||ve(t,ce,E(1,{})),t[ce][e]=!0),Ce(t,e,n)):ve(t,e,n)},Ne=function(t,e){Y(t);for(var n,i=function(t){var e=$t(t),n=It.f;if(n)for(var i,r=n(t),o=w.f,s=0;r.length>s;)o.call(t,i=r[s++])&&e.push(i);return e}(e=A(e)),r=0,o=i.length;o>r;)Me(t,n=i[r++],e[n]);return t},Re=function(t){var e=xe.call(this,t=N(t,!0));return!(this===Te&&g(we,t)&&!g(Ee,t))&&(!(e||!g(this,t)||!g(we,t)||g(this,ce)&&this[ce][t])||e)},ke=function(t,e){if(t=A(t),e=N(e,!0),t!==Te||!g(we,e)||g(Ee,e)){var n=de(t,e);return!n||!g(we,e)||g(t,ce)&&t[ce][e]||(n.enumerable=!0),n}},Be=function(t){for(var e,n=me(A(t)),i=[],r=0;n.length>r;)g(we,e=n[r++])||g(ot,e)||i.push(e);return i},De=function(t){for(var e,n=t===Te,i=me(n?Ee:A(t)),r=[],o=0;i.length>o;)!g(we,e=i[o++])||n&&!g(Te,e)||r.push(we[e]);return r};Xt||(pt((ye=function(){if(this instanceof ye)throw TypeError("Symbol is not a constructor");var t=void 0===arguments[0]?void 0:String(arguments[0]),e=nt(t),n=function(t){this===Te&&n.call(Ee,t),g(this,ce)&&g(this[ce],e)&&(this[ce][e]=!1),Ce(this,e,E(1,t))};return P&&Ie&&Ce(Te,e,{configurable:!0,set:n}),Oe(e,t)}).prototype,"toString",function(){return pe(this).tag}),w.f=Re,F.f=Me,z.f=ke,St.f=he.f=Be,It.f=De,P&&(ve(ye.prototype,"description",{configurable:!0,get:function(){return pe(this).description}}),pt(Te,"propertyIsEnumerable",Re,{unsafe:!0})),Ht.f=function(t){return Oe(Zt(t),t)}),Yt({global:!0,wrap:!0,forced:!Xt,sham:!Xt},{Symbol:ye});for(var je=$t(Le),ze=0;je.length>ze;)Kt(je[ze++]);Yt({target:"Symbol",stat:!0,forced:!Xt},{for:function(t){return g(be,t+="")?be[t]:be[t]=ye(t)},keyFor:function(t){if(!Ae(t))throw TypeError(t+" is not a symbol");for(var e in be)if(be[e]===t)return e},useSetter:function(){Ie=!0},useSimple:function(){Ie=!1}}),Yt({target:"Object",stat:!0,forced:!Xt,sham:!P},{create:function(t,e){return void 0===e?se(t):Ne(se(t),e)},defineProperty:Me,defineProperties:Ne,getOwnPropertyDescriptor:ke}),Yt({target:"Object",stat:!0,forced:!Xt},{getOwnPropertyNames:Be,getOwnPropertySymbols:De}),ge&&Yt({target:"JSON",stat:!0,forced:!Xt||_(function(){var t=ye();return"[null]"!=_e([t])||"{}"!=_e({a:t})||"{}"!=_e(Object(t))})},{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(M(e)||void 0!==t)&&!Ae(t))return Qt(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Ae(e))return e}),i[1]=e,_e.apply(ge,i)}}),ye.prototype[Pe]||W(ye.prototype,Pe,ye.prototype.valueOf),Gt(ye,"Symbol"),ot[ce]=!0,Kt("asyncIterator");var Ye=F.f,Xe=m.Symbol;if(P&&"function"==typeof Xe&&(!("description"in Xe.prototype)||void 0!==Xe().description)){var Fe={},We=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof We?new Xe(t):void 0===t?Xe():Xe(t);return""===t&&(Fe[e]=!0),e};At(We,Xe);var Ze=We.prototype=Xe.prototype;Ze.constructor=We;var Ue=Ze.toString,qe="Symbol(test)"==String(Xe("test")),Ge=/^Symbol\((.*)\)[^)]+$/;Ye(Ze,"description",{configurable:!0,get:function(){var t=M(this)?this.valueOf():this,e=Ue.call(t);if(g(Fe,t))return"";var n=qe?e.slice(7,-1):e.replace(Ge,"$1");return""===n?void 0:n}}),Yt({global:!0,forced:!0},{Symbol:We})}Kt("hasInstance"),Kt("isConcatSpreadable"),Kt("iterator"),Kt("match"),Kt("replace"),Kt("search"),Kt("species"),Kt("split"),Kt("toPrimitive"),Kt("toStringTag"),Kt("unscopables");var He=function(t){return Object(O(t))},Ve=Object.assign,Je=!Ve||_(function(){var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(t){e[t]=t}),7!=Ve({},t)[n]||"abcdefghijklmnopqrst"!=$t(Ve({},e)).join("")})?function(t,e){for(var n=He(t),i=arguments.length,r=1,o=It.f,s=w.f;i>r;)for(var a,u=C(arguments[r++]),l=o?$t(u).concat(o(u)):$t(u),h=l.length,c=0;h>c;)s.call(u,a=l[c++])&&(n[a]=u[a]);return n}:Ve;Yt({target:"Object",stat:!0,forced:Object.assign!==Je},{assign:Je}),Yt({target:"Object",stat:!0,sham:!P},{create:se}),Yt({target:"Object",stat:!0,forced:!P,sham:!P},{defineProperty:F.f}),Yt({target:"Object",stat:!0,forced:!P,sham:!P},{defineProperties:te});var Ke=w.f,$e=function(t,e){for(var n,i=A(t),r=$t(i),o=r.length,s=0,a=[];o>s;)Ke.call(i,n=r[s++])&&a.push(e?[n,i[n]]:i[n]);return a};Yt({target:"Object",stat:!0},{entries:function(t){return $e(t,!0)}});var Qe=!_(function(){return Object.isExtensible(Object.preventExtensions({}))}),tn=U(function(t){var e=nt("meta"),n=F.f,i=0,r=Object.isExtensible||function(){return!0},o=function(t){n(t,e,{value:{objectID:"O"+ ++i,weakData:{}}})},s=t.exports={REQUIRED:!1,fastKey:function(t,n){if(!M(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!g(t,e)){if(!r(t))return"F";if(!n)return"E";o(t)}return t[e].objectID},getWeakData:function(t,n){if(!g(t,e)){if(!r(t))return!0;if(!n)return!1;o(t)}return t[e].weakData},onFreeze:function(t){return Qe&&s.REQUIRED&&r(t)&&!g(t,e)&&o(t),t}};ot[e]=!0}),en=(tn.REQUIRED,tn.fastKey,tn.getWeakData,tn.onFreeze,tn.onFreeze),nn=Object.freeze,rn=_(function(){nn(1)});Yt({target:"Object",stat:!0,forced:rn,sham:!Qe},{freeze:function(t){return nn&&M(t)?nn(en(t)):t}});var on={},sn=Zt("iterator"),an=Array.prototype,un=function(t){return void 0!==t&&(on.Array===t||an[sn]===t)},ln=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},hn=function(t,e,n){if(ln(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}},cn=Zt("toStringTag"),fn="Arguments"==S(function(){return arguments}()),pn=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),cn))?n:fn?S(e):"Object"==(i=S(e))&&"function"==typeof e.callee?"Arguments":i},dn=Zt("iterator"),vn=function(t){if(null!=t)return t[dn]||t["@@iterator"]||on[pn(t)]},mn=function(t,e,n,i){try{return i?e(Y(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&Y(r.call(t)),e}},yn=U(function(t){var e={};(t.exports=function(t,n,i,r,o){var s,a,u,l,h,c=hn(n,i,r?2:1);if(o)s=t;else{if("function"!=typeof(a=vn(t)))throw TypeError("Target is not iterable");if(un(a)){for(u=0,l=gt(t.length);l>u;u++)if((r?c(Y(h=t[u])[0],h[1]):c(t[u]))===e)return e;return}s=a.call(t)}for(;!(h=s.next()).done;)if(mn(s,c,h.value,r)===e)return e}).BREAK=e}),gn=function(t,e,n){var i=N(e);i in t?F.f(t,i,E(0,n)):t[i]=n};Yt({target:"Object",stat:!0},{fromEntries:function(t){var e={};return yn(t,function(t,n){gn(e,t,n)},void 0,!0),e}});var _n=z.f,Pn=_(function(){_n(1)});Yt({target:"Object",stat:!0,forced:!P||Pn,sham:!P},{getOwnPropertyDescriptor:function(t,e){return _n(A(t),e)}}),Yt({target:"Object",stat:!0,sham:!P},{getOwnPropertyDescriptors:function(t){for(var e,n,i=A(t),r=z.f,o=Ot(i),s={},a=0;o.length>a;)void 0!==(n=r(i,e=o[a++]))&&gn(s,e,n);return s}});var xn=he.f,bn=_(function(){Object.getOwnPropertyNames(1)});Yt({target:"Object",stat:!0,forced:bn},{getOwnPropertyNames:xn});var wn=!_(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),En=rt("IE_PROTO"),Ln=Object.prototype,Tn=wn?Object.getPrototypeOf:function(t){return t=He(t),g(t,En)?t[En]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Ln:null},Sn=_(function(){Tn(1)});Yt({target:"Object",stat:!0,forced:Sn,sham:!wn},{getPrototypeOf:function(t){return Tn(He(t))}});var In=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Yt({target:"Object",stat:!0},{is:In});var Cn=Object.isExtensible,On=_(function(){Cn(1)});Yt({target:"Object",stat:!0,forced:On},{isExtensible:function(t){return!!M(t)&&(!Cn||Cn(t))}});var An=Object.isFrozen,Mn=_(function(){An(1)});Yt({target:"Object",stat:!0,forced:Mn},{isFrozen:function(t){return!M(t)||!!An&&An(t)}});var Nn=Object.isSealed,Rn=_(function(){Nn(1)});Yt({target:"Object",stat:!0,forced:Rn},{isSealed:function(t){return!M(t)||!!Nn&&Nn(t)}});var kn=_(function(){$t(1)});Yt({target:"Object",stat:!0,forced:kn},{keys:function(t){return $t(He(t))}});var Bn=tn.onFreeze,Dn=Object.preventExtensions,jn=_(function(){Dn(1)});Yt({target:"Object",stat:!0,forced:jn,sham:!Qe},{preventExtensions:function(t){return Dn&&M(t)?Dn(Bn(t)):t}});var zn=tn.onFreeze,Yn=Object.seal,Xn=_(function(){Yn(1)});Yt({target:"Object",stat:!0,forced:Xn,sham:!Qe},{seal:function(t){return Yn&&M(t)?Yn(zn(t)):t}});var Fn=function(t,e){if(Y(t),!M(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")},Wn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return Fn(n,i),e?t.call(n,i):n.__proto__=i,n}}():void 0);Yt({target:"Object",stat:!0},{setPrototypeOf:Wn}),Yt({target:"Object",stat:!0},{values:function(t){return $e(t)}});var Zn={};Zn[Zt("toStringTag")]="z";var Un="[object z]"!==String(Zn)?function(){return"[object "+pn(this)+"]"}:Zn.toString,qn=Object.prototype;Un!==qn.toString&&pt(qn,"toString",Un,{unsafe:!0});var Gn=!_(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete m[t]});P&&Yt({target:"Object",proto:!0,forced:Gn},{__defineGetter__:function(t,e){F.f(He(this),t,{get:ln(e),enumerable:!0,configurable:!0})}}),P&&Yt({target:"Object",proto:!0,forced:Gn},{__defineSetter__:function(t,e){F.f(He(this),t,{set:ln(e),enumerable:!0,configurable:!0})}});var Hn=z.f;P&&Yt({target:"Object",proto:!0,forced:Gn},{__lookupGetter__:function(t){var e,n=He(this),i=N(t,!0);do{if(e=Hn(n,i))return e.get}while(n=Tn(n))}});var Vn=z.f;P&&Yt({target:"Object",proto:!0,forced:Gn},{__lookupSetter__:function(t){var e,n=He(this),i=N(t,!0);do{if(e=Vn(n,i))return e.set}while(n=Tn(n))}});var Jn=[].slice,Kn={},$n=Function.bind||function(t){var e=ln(this),n=Jn.call(arguments,1),i=function(){var r=n.concat(Jn.call(arguments));return this instanceof i?function(t,e,n){if(!(e in Kn)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";Kn[e]=Function("C,a","return new C("+i.join(",")+")")}return Kn[e](t,n)}(e,r.length,r):e.apply(t,r)};return M(e.prototype)&&(i.prototype=e.prototype),i};Yt({target:"Function",proto:!0},{bind:$n});var Qn=F.f,ti=Function.prototype,ei=ti.toString,ni=/^\s*function ([^ (]*)/;!P||"name"in ti||Qn(ti,"name",{configurable:!0,get:function(){try{return ei.call(this).match(ni)[1]}catch(t){return""}}});var ii=Zt("hasInstance"),ri=Function.prototype;ii in ri||F.f(ri,ii,{value:function(t){if("function"!=typeof this||!M(t))return!1;if(!M(this.prototype))return t instanceof this;for(;t=Tn(t);)if(this.prototype===t)return!0;return!1}});var oi=Zt("iterator"),si=!1;try{var ai=0,ui={next:function(){return{done:!!ai++}},return:function(){si=!0}};ui[oi]=function(){return this},Array.from(ui,function(){throw 2})}catch(t){}var li=function(t,e){if(!e&&!si)return!1;var n=!1;try{var i={};i[oi]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n},hi=function(t){var e,n,i,r,o=He(t),s="function"==typeof this?this:Array,a=arguments.length,u=a>1?arguments[1]:void 0,l=void 0!==u,h=0,c=vn(o);if(l&&(u=hn(u,a>2?arguments[2]:void 0,2)),null==c||s==Array&&un(c))for(n=new s(e=gt(o.length));e>h;h++)gn(n,h,l?u(o[h],h):o[h]);else for(r=c.call(o),n=new s;!(i=r.next()).done;h++)gn(n,h,l?mn(r,u,[i.value,h],!0):i.value);return n.length=h,n},ci=!li(function(t){Array.from(t)});Yt({target:"Array",stat:!0,forced:ci},{from:hi}),Yt({target:"Array",stat:!0},{isArray:Qt});var fi=_(function(){function t(){}return!(Array.of.call(t)instanceof t)});Yt({target:"Array",stat:!0,forced:fi},{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)gn(n,t,arguments[t++]);return n.length=e,n}});var pi=Zt("species"),di=function(t,e){var n;return Qt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Qt(n.prototype)?M(n)&&null===(n=n[pi])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},vi=Zt("species"),mi=function(t){return!_(function(){var e=[];return(e.constructor={})[vi]=function(){return{foo:1}},1!==e[t](Boolean).foo})},yi=Zt("isConcatSpreadable"),gi=!_(function(){var t=[];return t[yi]=!1,t.concat()[0]!==t}),_i=mi("concat"),Pi=function(t){if(!M(t))return!1;var e=t[yi];return void 0!==e?!!e:Qt(t)};Yt({target:"Array",proto:!0,forced:!gi||!_i},{concat:function(t){var e,n,i,r,o,s=He(this),a=di(s,0),u=0;for(e=-1,i=arguments.length;e<i;e++)if(o=-1===e?s:arguments[e],Pi(o)){if(u+(r=gt(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<r;n++,u++)n in o&&gn(a,u,o[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");gn(a,u++,o)}return a.length=u,a}});var xi=[].copyWithin||function(t,e){var n=He(this),i=gt(n.length),r=xt(t,i),o=xt(e,i),s=arguments.length>2?arguments[2]:void 0,a=Math.min((void 0===s?i:xt(s,i))-o,i-r),u=1;for(o<r&&r<o+a&&(u=-1,o+=a-1,r+=a-1);a-- >0;)o in n?n[r]=n[o]:delete n[r],r+=u,o+=u;return n},bi=Zt("unscopables"),wi=Array.prototype;null==wi[bi]&&W(wi,bi,se(null));var Ei=function(t){wi[bi][t]=!0};Yt({target:"Array",proto:!0},{copyWithin:xi}),Ei("copyWithin");var Li=function(t,e){var n=1==t,i=2==t,r=3==t,o=4==t,s=6==t,a=5==t||s,u=e||di;return function(e,l,h){for(var c,f,p=He(e),d=C(p),v=hn(l,h,3),m=gt(d.length),y=0,g=n?u(e,m):i?u(e,0):void 0;m>y;y++)if((a||y in d)&&(f=v(c=d[y],y,p),t))if(n)g[y]=f;else if(f)switch(t){case 3:return!0;case 5:return c;case 6:return y;case 2:g.push(c)}else if(o)return!1;return s?-1:r||o?o:g}},Ti=function(t,e){var n=[][t];return!n||!_(function(){n.call(null,e||function(){throw 1},1)})},Si=Li(4),Ii=Ti("every");Yt({target:"Array",proto:!0,forced:Ii},{every:function(t){return Si(this,t,arguments[1])}});var Ci=function(t){for(var e=He(this),n=gt(e.length),i=arguments.length,r=xt(i>1?arguments[1]:void 0,n),o=i>2?arguments[2]:void 0,s=void 0===o?n:xt(o,n);s>r;)e[r++]=t;return e};Yt({target:"Array",proto:!0},{fill:Ci}),Ei("fill");var Oi=Li(2),Ai=mi("filter");Yt({target:"Array",proto:!0,forced:!Ai},{filter:function(t){return Oi(this,t,arguments[1])}});var Mi=Li(5),Ni=!0;"find"in[]&&Array(1).find(function(){Ni=!1}),Yt({target:"Array",proto:!0,forced:Ni},{find:function(t){return Mi(this,t,arguments.length>1?arguments[1]:void 0)}}),Ei("find");var Ri=Li(6),ki=!0;"findIndex"in[]&&Array(1).findIndex(function(){ki=!1}),Yt({target:"Array",proto:!0,forced:ki},{findIndex:function(t){return Ri(this,t,arguments.length>1?arguments[1]:void 0)}}),Ei("findIndex");var Bi=function(t,e,n,i,r,o,s,a){for(var u,l=r,h=0,c=!!s&&hn(s,a,3);h<i;){if(h in n){if(u=c?c(n[h],h,e):n[h],o>0&&Qt(u))l=Bi(t,e,u,gt(u.length),l,o-1)-1;else{if(l>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[l]=u}l++}h++}return l},Di=Bi;Yt({target:"Array",proto:!0},{flat:function(){var t=arguments[0],e=He(this),n=gt(e.length),i=di(e,0);return i.length=Di(i,e,e,n,0,void 0===t?1:mt(t)),i}}),Yt({target:"Array",proto:!0},{flatMap:function(t){var e,n=He(this),i=gt(n.length);return ln(t),(e=di(n,0)).length=Di(e,n,n,i,0,1,t,arguments[1]),e}});var ji=[].forEach,zi=Li(0),Yi=Ti("forEach")?function(t){return zi(this,t,arguments[1])}:ji;Yt({target:"Array",proto:!0,forced:[].forEach!=Yi},{forEach:Yi});var Xi=bt(!0);Yt({target:"Array",proto:!0},{includes:function(t){return Xi(this,t,arguments.length>1?arguments[1]:void 0)}}),Ei("includes");var Fi=bt(!1),Wi=[].indexOf,Zi=!!Wi&&1/[1].indexOf(1,-0)<0,Ui=Ti("indexOf");Yt({target:"Array",proto:!0,forced:Zi||Ui},{indexOf:function(t){return Zi?Wi.apply(this,arguments)||0:Fi(this,t,arguments[1])}});var qi=[].join,Gi=C!=Object,Hi=Ti("join",",");Yt({target:"Array",proto:!0,forced:Gi||Hi},{join:function(t){return qi.call(A(this),void 0===t?",":t)}});var Vi=[].lastIndexOf,Ji=!!Vi&&1/[1].lastIndexOf(1,-0)<0,Ki=Ti("lastIndexOf"),$i=Ji||Ki?function(t){if(Ji)return Vi.apply(this,arguments)||0;var e=A(this),n=gt(e.length),i=n-1;for(arguments.length>1&&(i=Math.min(i,mt(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in e&&e[i]===t)return i||0;return-1}:Vi;Yt({target:"Array",proto:!0,forced:$i!==[].lastIndexOf},{lastIndexOf:$i});var Qi=Li(1),tr=mi("map");Yt({target:"Array",proto:!0,forced:!tr},{map:function(t){return Qi(this,t,arguments[1])}});var er=function(t,e,n,i,r){ln(e);var o=He(t),s=C(o),a=gt(o.length),u=r?a-1:0,l=r?-1:1;if(n<2)for(;;){if(u in s){i=s[u],u+=l;break}if(u+=l,r?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;r?u>=0:a>u;u+=l)u in s&&(i=e(i,s[u],u,o));return i},nr=Ti("reduce");Yt({target:"Array",proto:!0,forced:nr},{reduce:function(t){return er(this,t,arguments.length,arguments[1],!1)}});var rr=Ti("reduceRight");Yt({target:"Array",proto:!0,forced:rr},{reduceRight:function(t){return er(this,t,arguments.length,arguments[1],!0)}});var or=[].reverse,sr=[1,2];Yt({target:"Array",proto:!0,forced:String(sr)===String(sr.reverse())},{reverse:function(){return Qt(this)&&(this.length=this.length),or.call(this)}});var ar=Zt("species"),ur=[].slice,lr=Math.max,hr=mi("slice");Yt({target:"Array",proto:!0,forced:!hr},{slice:function(t,e){var n,i,r,o=A(this),s=gt(o.length),a=xt(t,s),u=xt(void 0===e?s:e,s);if(Qt(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!Qt(n.prototype)?M(n)&&null===(n=n[ar])&&(n=void 0):n=void 0,n===Array||void 0===n))return ur.call(o,a,u);for(i=new(void 0===n?Array:n)(lr(u-a,0)),r=0;a<u;a++,r++)a in o&&gn(i,r,o[a]);return i.length=r,i}});var cr=Li(3),fr=Ti("some");Yt({target:"Array",proto:!0,forced:fr},{some:function(t){return cr(this,t,arguments[1])}});var pr=[].sort,dr=[1,2,3],vr=_(function(){dr.sort(void 0)}),mr=_(function(){dr.sort(null)}),yr=Ti("sort");Yt({target:"Array",proto:!0,forced:vr||!mr||yr},{sort:function(t){return void 0===t?pr.call(He(this)):pr.call(He(this),ln(t))}});var gr=Math.max,_r=Math.min,Pr=mi("splice");Yt({target:"Array",proto:!0,forced:!Pr},{splice:function(t,e){var n,i,r,o,s,a,u=He(this),l=gt(u.length),h=xt(t,l),c=arguments.length;if(0===c?n=i=0:1===c?(n=0,i=l-h):(n=c-2,i=_r(gr(mt(e),0),l-h)),l+n-i>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(r=di(u,i),o=0;o<i;o++)(s=h+o)in u&&gn(r,o,u[s]);if(r.length=i,n<i){for(o=h;o<l-i;o++)a=o+n,(s=o+i)in u?u[a]=u[s]:delete u[a];for(o=l;o>l-i+n;o--)delete u[o-1]}else if(n>i)for(o=l-i;o>h;o--)a=o+n-1,(s=o+i-1)in u?u[a]=u[s]:delete u[a];for(o=0;o<n;o++)u[o+h]=arguments[o+2];return u.length=l-i+n,r}});var xr=function(t){return"function"==typeof t?t:void 0},br=function(t,e){return arguments.length<2?xr(Vt[t])||xr(m[t]):Vt[t]&&Vt[t][e]||m[t]&&m[t][e]},wr=Zt("species"),Er=function(t){var e=br(t),n=F.f;P&&e&&!e[wr]&&n(e,wr,{configurable:!0,get:function(){return this}})};Er("Array"),Ei("flat"),Ei("flatMap");var Lr,Tr,Sr,Ir=Zt("iterator"),Cr=!1;[].keys&&("next"in(Sr=[].keys())?(Tr=Tn(Tn(Sr)))!==Object.prototype&&(Lr=Tr):Cr=!0),null==Lr&&(Lr={}),g(Lr,Ir)||W(Lr,Ir,function(){return this});var Or={IteratorPrototype:Lr,BUGGY_SAFARI_ITERATORS:Cr},Ar=Or.IteratorPrototype,Mr=function(){return this},Nr=function(t,e,n){var i=e+" Iterator";return t.prototype=se(Ar,{next:E(1,n)}),Gt(t,i,!1),on[i]=Mr,t},Rr=Zt("iterator"),kr=Or.IteratorPrototype,Br=Or.BUGGY_SAFARI_ITERATORS,Dr=function(){return this},jr=function(t,e,n,i,r,o,s){Nr(n,e,i);var a,u,l,h=function(t){if(t===r&&v)return v;if(!Br&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},c=e+" Iterator",f=!1,p=t.prototype,d=p[Rr]||p["@@iterator"]||r&&p[r],v=!Br&&d||h(r),m="Array"==e&&p.entries||d;if(m&&(a=Tn(m.call(new t)),kr!==Object.prototype&&a.next&&(Tn(a)!==kr&&(Wn?Wn(a,kr):"function"!=typeof a[Rr]&&W(a,Rr,Dr)),Gt(a,c,!0))),"values"==r&&d&&"values"!==d.name&&(f=!0,v=function(){return d.call(this)}),p[Rr]!==v&&W(p,Rr,v),on[e]=v,r)if(u={values:h("values"),keys:o?v:h("keys"),entries:h("entries")},s)for(l in u)!Br&&!f&&l in p||pt(p,l,u[l]);else Yt({target:e,proto:!0,forced:Br||f},u);return u},zr=ft.set,Yr=ft.getterFor("Array Iterator"),Xr=jr(Array,"Array",function(t,e){zr(this,{type:"Array Iterator",target:A(t),index:0,kind:e})},function(){var t=Yr(this),e=t.target,n=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}},"values");on.Arguments=on.Array,Ei("keys"),Ei("values"),Ei("entries");var Fr=String.fromCharCode,Wr=String.fromCodePoint,Zr=!!Wr&&1!=Wr.length;Yt({target:"String",stat:!0,forced:Zr},{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,r=0;i>r;){if(e=+arguments[r++],xt(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?Fr(e):Fr(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}}),Yt({target:"String",stat:!0},{raw:function(t){for(var e=A(t.raw),n=gt(e.length),i=arguments.length,r=[],o=0;n>o;)r.push(String(e[o++])),o<i&&r.push(String(arguments[o]));return r.join("")}});var Ur=function(t,e,n){var i,r,o=String(O(t)),s=mt(e),a=o.length;return s<0||s>=a?n?"":void 0:(i=o.charCodeAt(s))<55296||i>56319||s+1===a||(r=o.charCodeAt(s+1))<56320||r>57343?n?o.charAt(s):i:n?o.slice(s,s+2):r-56320+(i-55296<<10)+65536};Yt({target:"String",proto:!0},{codePointAt:function(t){return Ur(this,t)}});var qr=Zt("match"),Gr=function(t){var e;return M(t)&&(void 0!==(e=t[qr])?!!e:"RegExp"==S(t))},Hr=function(t,e,n){if(Gr(e))throw TypeError("String.prototype."+n+" doesn't accept regex");return String(O(t))},Vr=Zt("match"),Jr=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Vr]=!1,"/./"[t](e)}catch(t){}}return!1},Kr="".endsWith,$r=Math.min,Qr=Jr("endsWith");Yt({target:"String",proto:!0,forced:!Qr},{endsWith:function(t){var e=Hr(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,i=gt(e.length),r=void 0===n?i:$r(gt(n),i),o=String(t);return Kr?Kr.call(e,o,r):e.slice(r-o.length,r)===o}});var to=Jr("includes");Yt({target:"String",proto:!0,forced:!to},{includes:function(t){return!!~Hr(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}});var eo=function(t,e,n){return e+(n?Ur(t,e,!0).length:1)},no=function(){var t=Y(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},io=RegExp.prototype.exec,ro=String.prototype.replace,oo=io,so=function(){var t=/a/,e=/b*/g;return io.call(t,"a"),io.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),ao=void 0!==/()??/.exec("")[1];(so||ao)&&(oo=function(t){var e,n,i,r,o=this;return ao&&(n=new RegExp("^"+o.source+"$(?!\\s)",no.call(o))),so&&(e=o.lastIndex),i=io.call(o,t),so&&i&&(o.lastIndex=o.global?i.index+i[0].length:e),ao&&i&&i.length>1&&ro.call(i[0],n,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)}),i});var uo=oo,lo=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==S(t))throw TypeError("RegExp#exec called on incompatible receiver");return uo.call(t,e)},ho=Zt("species"),co=!_(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),fo=!_(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),po=function(t,e,n,i){var r=Zt(t),o=!_(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)}),s=o&&!_(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[ho]=function(){return n}),n[r](""),!e});if(!o||!s||"replace"===t&&!co||"split"===t&&!fo){var a=/./[r],u=n(r,""[t],function(t,e,n,i,r){return e.exec===uo?o&&!r?{done:!0,value:a.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),l=u[0],h=u[1];pt(String.prototype,t,l),pt(RegExp.prototype,r,2==e?function(t,e){return h.call(t,this,e)}:function(t){return h.call(t,this)}),i&&W(RegExp.prototype[r],"sham",!0)}};po("match",1,function(t,e,n){return[function(e){var n=O(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,n):new RegExp(e)[t](String(n))},function(t){var i=n(e,t,this);if(i.done)return i.value;var r=Y(t),o=String(this);if(!r.global)return lo(r,o);var s=r.unicode;r.lastIndex=0;for(var a,u=[],l=0;null!==(a=lo(r,o));){var h=String(a[0]);u[l]=h,""===h&&(r.lastIndex=eo(o,gt(r.lastIndex),s)),l++}return 0===l?null:u}]});var vo="".repeat||function(t){var e=String(O(this)),n="",i=mt(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n},mo=function(t,e,n,i){var r,o,s=String(O(t)),a=s.length,u=void 0===n?" ":String(n),l=gt(e);return l<=a||""==u?s:(r=l-a,(o=vo.call(u,Math.ceil(r/u.length))).length>r&&(o=o.slice(0,r)),i?o+s:s+o)},yo=m.navigator,go=yo&&yo.userAgent||"",_o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(go);Yt({target:"String",proto:!0,forced:_o},{padEnd:function(t){return mo(this,t,arguments.length>1?arguments[1]:void 0,!1)}}),Yt({target:"String",proto:!0,forced:_o},{padStart:function(t){return mo(this,t,arguments.length>1?arguments[1]:void 0,!0)}}),Yt({target:"String",proto:!0},{repeat:vo});var Po=Math.max,xo=Math.min,bo=Math.floor,wo=/\$([$&`']|\d\d?|<[^>]*>)/g,Eo=/\$([$&`']|\d\d?)/g;po("replace",2,function(t,e,n){return[function(n,i){var r=O(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r,i):e.call(String(r),n,i)},function(t,r){var o=n(e,t,this,r);if(o.done)return o.value;var s=Y(t),a=String(this),u="function"==typeof r;u||(r=String(r));var l=s.global;if(l){var h=s.unicode;s.lastIndex=0}for(var c=[];;){var f=lo(s,a);if(null===f)break;if(c.push(f),!l)break;""===String(f[0])&&(s.lastIndex=eo(a,gt(s.lastIndex),h))}for(var p,d="",v=0,m=0;m<c.length;m++){f=c[m];for(var y=String(f[0]),g=Po(xo(mt(f.index),a.length),0),_=[],P=1;P<f.length;P++)_.push(void 0===(p=f[P])?p:String(p));var x=f.groups;if(u){var b=[y].concat(_,g,a);void 0!==x&&b.push(x);var w=String(r.apply(void 0,b))}else w=i(y,a,g,_,x,r);g>=v&&(d+=a.slice(v,g)+w,v=g+y.length)}return d+a.slice(v)}];function i(t,n,i,r,o,s){var a=i+t.length,u=r.length,l=Eo;return void 0!==o&&(o=He(o),l=wo),e.call(s,l,function(e,s){var l;switch(s.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,i);case"'":return n.slice(a);case"<":l=o[s.slice(1,-1)];break;default:var h=+s;if(0===h)return e;if(h>u){var c=bo(h/10);return 0===c?e:c<=u?void 0===r[c-1]?s.charAt(1):r[c-1]+s.charAt(1):e}l=r[h-1]}return void 0===l?"":l})}}),po("search",1,function(t,e,n){return[function(e){var n=O(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,n):new RegExp(e)[t](String(n))},function(t){var i=n(e,t,this);if(i.done)return i.value;var r=Y(t),o=String(this),s=r.lastIndex;In(s,0)||(r.lastIndex=0);var a=lo(r,o);return In(r.lastIndex,s)||(r.lastIndex=s),null===a?-1:a.index}]});var Lo=Zt("species"),To=function(t,e){var n,i=Y(t).constructor;return void 0===i||null==(n=Y(i)[Lo])?e:ln(n)},So=[].push,Io=Math.min,Co=!_(function(){return!RegExp(4294967295,"y")});po("split",2,function(t,e,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=String(O(this)),r=void 0===n?4294967295:n>>>0;if(0===r)return[];if(void 0===t)return[i];if(!Gr(t))return e.call(i,t,r);for(var o,s,a,u=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,c=new RegExp(t.source,l+"g");(o=uo.call(c,i))&&!((s=c.lastIndex)>h&&(u.push(i.slice(h,o.index)),o.length>1&&o.index<i.length&&So.apply(u,o.slice(1)),a=o[0].length,h=s,u.length>=r));)c.lastIndex===o.index&&c.lastIndex++;return h===i.length?!a&&c.test("")||u.push(""):u.push(i.slice(h)),u.length>r?u.slice(0,r):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var r=O(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,r,n):i.call(String(r),e,n)},function(t,r){var o=n(i,t,this,r,i!==e);if(o.done)return o.value;var s=Y(t),a=String(this),u=To(s,RegExp),l=s.unicode,h=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(Co?"y":"g"),c=new u(Co?s:"^(?:"+s.source+")",h),f=void 0===r?4294967295:r>>>0;if(0===f)return[];if(0===a.length)return null===lo(c,a)?[a]:[];for(var p=0,d=0,v=[];d<a.length;){c.lastIndex=Co?d:0;var m,y=lo(c,Co?a:a.slice(d));if(null===y||(m=Io(gt(c.lastIndex+(Co?0:d)),a.length))===p)d=eo(a,d,l);else{if(v.push(a.slice(p,d)),v.length===f)return v;for(var g=1;g<=y.length-1;g++)if(v.push(y[g]),v.length===f)return v;d=p=m}}return v.push(a.slice(p)),v}]},!Co);var Oo=Jr("startsWith"),Ao="".startsWith;Yt({target:"String",proto:!0,forced:!Oo},{startsWith:function(t){var e=Hr(this,t,"startsWith"),n=gt(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return Ao?Ao.call(e,i,n):e.slice(n,n+i.length)===i}});var Mo="\t\n\v\f\r                 \u2028\u2029\ufeff",No="["+Mo+"]",Ro=RegExp("^"+No+No+"*"),ko=RegExp(No+No+"*$"),Bo=function(t,e){return t=String(O(t)),1&e&&(t=t.replace(Ro,"")),2&e&&(t=t.replace(ko,"")),t},Do=function(t){return _(function(){return!!Mo[t]()||"​…᠎"!="​…᠎"[t]()||Mo[t].name!==t})},jo=Do("trim");Yt({target:"String",proto:!0,forced:jo},{trim:function(){return Bo(this,3)}});var zo=Do("trimStart"),Yo=zo?function(){return Bo(this,1)}:"".trimStart;Yt({target:"String",proto:!0,forced:zo},{trimStart:Yo,trimLeft:Yo});var Xo=Do("trimEnd"),Fo=Xo?function(){return Bo(this,2)}:"".trimEnd;Yt({target:"String",proto:!0,forced:Xo},{trimEnd:Fo,trimRight:Fo});var Wo=ft.set,Zo=ft.getterFor("String Iterator");jr(String,"String",function(t){Wo(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=Zo(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=Ur(n,i,!0),e.index+=t.length,{value:t,done:!1})});var Uo=/"/g,qo=function(t,e,n,i){var r=String(O(t)),o="<"+e;return""!==n&&(o+=" "+n+'="'+String(i).replace(Uo,"&quot;")+'"'),o+">"+r+"</"+e+">"},Go=function(t){return _(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})},Ho=Go("anchor");Yt({target:"String",proto:!0,forced:Ho},{anchor:function(t){return qo(this,"a","name",t)}});var Vo=Go("big");Yt({target:"String",proto:!0,forced:Vo},{big:function(){return qo(this,"big","","")}});var Jo=Go("blink");Yt({target:"String",proto:!0,forced:Jo},{blink:function(){return qo(this,"blink","","")}});var Ko=Go("bold");Yt({target:"String",proto:!0,forced:Ko},{bold:function(){return qo(this,"b","","")}});var $o=Go("fixed");Yt({target:"String",proto:!0,forced:$o},{fixed:function(){return qo(this,"tt","","")}});var Qo=Go("fontcolor");Yt({target:"String",proto:!0,forced:Qo},{fontcolor:function(t){return qo(this,"font","color",t)}});var ts=Go("fontsize");Yt({target:"String",proto:!0,forced:ts},{fontsize:function(t){return qo(this,"font","size",t)}});var es=Go("italics");Yt({target:"String",proto:!0,forced:es},{italics:function(){return qo(this,"i","","")}});var ns=Go("link");Yt({target:"String",proto:!0,forced:ns},{link:function(t){return qo(this,"a","href",t)}});var is=Go("small");Yt({target:"String",proto:!0,forced:is},{small:function(){return qo(this,"small","","")}});var rs=Go("strike");Yt({target:"String",proto:!0,forced:rs},{strike:function(){return qo(this,"strike","","")}});var os=Go("sub");Yt({target:"String",proto:!0,forced:os},{sub:function(){return qo(this,"sub","","")}});var ss=Go("sup");Yt({target:"String",proto:!0,forced:ss},{sup:function(){return qo(this,"sup","","")}});var as=function(t,e,n){var i,r=e.constructor;return r!==n&&"function"==typeof r&&(i=r.prototype)!==n.prototype&&M(i)&&Wn&&Wn(t,i),t},us=Zt("match"),ls=F.f,hs=St.f,cs=m.RegExp,fs=cs.prototype,ps=/a/g,ds=/a/g,vs=new cs(ps)!==ps;if(jt("RegExp",P&&(!vs||_(function(){return ds[us]=!1,cs(ps)!=ps||cs(ds)==ds||"/a/i"!=cs(ps,"i")})))){for(var ms=function(t,e){var n=this instanceof ms,i=Gr(t),r=void 0===e;return!n&&i&&t.constructor===ms&&r?t:as(vs?new cs(i&&!r?t.source:t,e):cs((i=t instanceof ms)?t.source:t,i&&r?no.call(t):e),n?this:fs,ms)},ys=function(t){t in ms||ls(ms,t,{configurable:!0,get:function(){return cs[t]},set:function(e){cs[t]=e}})},gs=hs(cs),_s=0;_s<gs.length;)ys(gs[_s++]);fs.constructor=ms,ms.prototype=fs,pt(m,"RegExp",ms)}Er("RegExp"),Yt({target:"RegExp",proto:!0,forced:/./.exec!==uo},{exec:uo}),P&&"g"!=/./g.flags&&F.f(RegExp.prototype,"flags",{configurable:!0,get:no});var Ps=/./.toString,xs=_(function(){return"/a/b"!=Ps.call({source:"a",flags:"b"})}),bs="toString"!=Ps.name;(xs||bs)&&pt(RegExp.prototype,"toString",function(){var t=Y(this);return"/".concat(t.source,"/","flags"in t?t.flags:!P&&t instanceof RegExp?no.call(t):void 0)},{unsafe:!0});var ws=m.parseInt,Es=/^[-+]?0[xX]/,Ls=8!==ws(Mo+"08")||22!==ws(Mo+"0x16")?function(t,e){var n=Bo(String(t),3);return ws(n,e>>>0||(Es.test(n)?16:10))}:ws;Yt({global:!0,forced:parseInt!=Ls},{parseInt:Ls});var Ts=m.parseFloat,Ss=1/Ts(Mo+"-0")!=-1/0?function(t){var e=Bo(String(t),3),n=Ts(e);return 0===n&&"-"==e.charAt(0)?-0:n}:Ts;Yt({global:!0,forced:parseFloat!=Ss},{parseFloat:Ss});var Is=St.f,Cs=z.f,Os=F.f,As=m.Number,Ms=As.prototype,Ns="Number"==S(se(Ms)),Rs="trim"in String.prototype,ks=function(t){var e,n,i,r,o,s,a,u,l=N(t,!1);if("string"==typeof l&&l.length>2)if(43===(e=(l=Rs?l.trim():Bo(l,3)).charCodeAt(0))||45===e){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+l}for(s=(o=l.slice(2)).length,a=0;a<s;a++)if((u=o.charCodeAt(a))<48||u>r)return NaN;return parseInt(o,i)}return+l};if(jt("Number",!As(" 0o1")||!As("0b1")||As("+0x1"))){for(var Bs,Ds=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof Ds&&(Ns?_(function(){Ms.valueOf.call(n)}):"Number"!=S(n))?as(new As(ks(e)),n,Ds):ks(e)},js=P?Is(As):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),zs=0;js.length>zs;zs++)g(As,Bs=js[zs])&&!g(Ds,Bs)&&Os(Ds,Bs,Cs(As,Bs));Ds.prototype=Ms,Ms.constructor=Ds,pt(m,"Number",Ds)}Yt({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)});var Ys=m.isFinite,Xs=Number.isFinite||function(t){return"number"==typeof t&&Ys(t)};Yt({target:"Number",stat:!0},{isFinite:Xs});var Fs=Math.floor,Ws=function(t){return!M(t)&&isFinite(t)&&Fs(t)===t};Yt({target:"Number",stat:!0},{isInteger:Ws}),Yt({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Zs=Math.abs;Yt({target:"Number",stat:!0},{isSafeInteger:function(t){return Ws(t)&&Zs(t)<=9007199254740991}}),Yt({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991}),Yt({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991}),Yt({target:"Number",stat:!0,forced:Number.parseFloat!=Ss},{parseFloat:Ss}),Yt({target:"Number",stat:!0,forced:Number.parseInt!=Ls},{parseInt:Ls});var Us=function(t){if("number"!=typeof t&&"Number"!=S(t))throw TypeError("Incorrect invocation");return+t},qs=1..toFixed,Gs=Math.floor,Hs=[0,0,0,0,0,0],Vs=function(t,e){for(var n=-1,i=e;++n<6;)i+=t*Hs[n],Hs[n]=i%1e7,i=Gs(i/1e7)},Js=function(t){for(var e=6,n=0;--e>=0;)n+=Hs[e],Hs[e]=Gs(n/t),n=n%t*1e7},Ks=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==Hs[t]){var n=String(Hs[t]);e=""===e?n:e+vo.call("0",7-n.length)+n}return e},$s=function(t,e,n){return 0===e?n:e%2==1?$s(t,e-1,n*t):$s(t*t,e/2,n)};Yt({target:"Number",proto:!0,forced:qs&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!_(function(){qs.call({})})},{toFixed:function(t){var e,n,i,r,o=Us(this),s=mt(t),a="",u="0";if(s<0||s>20)throw RangeError("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(a="-",o=-o),o>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(o*$s(2,69,1))-69)<0?o*$s(2,-e,1):o/$s(2,e,1),n*=4503599627370496,(e=52-e)>0){for(Vs(0,n),i=s;i>=7;)Vs(1e7,0),i-=7;for(Vs($s(10,i,1),0),i=e-1;i>=23;)Js(1<<23),i-=23;Js(1<<i),Vs(1,1),Js(2),u=Ks()}else Vs(0,n),Vs(1<<-e,0),u=Ks()+vo.call("0",s);return u=s>0?a+((r=u.length)<=s?"0."+vo.call("0",s-r)+u:u.slice(0,r-s)+"."+u.slice(r-s)):a+u}});var Qs=1..toPrecision;Yt({target:"Number",proto:!0,forced:_(function(){return"1"!==Qs.call(1,void 0)})||!_(function(){Qs.call({})})},{toPrecision:function(t){return void 0===t?Qs.call(Us(this)):Qs.call(Us(this),t)}});var ta=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)},ea=Math.acosh,na=Math.log,ia=Math.sqrt,ra=Math.LN2,oa=!ea||710!=Math.floor(ea(Number.MAX_VALUE))||ea(1/0)!=1/0;Yt({target:"Math",stat:!0,forced:oa},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?na(t)+ra:ta(t-1+ia(t-1)*ia(t+1))}});var sa=Math.asinh,aa=Math.log,ua=Math.sqrt;Yt({target:"Math",stat:!0,forced:!(sa&&1/sa(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):aa(e+ua(e*e+1)):e}});var la=Math.atanh,ha=Math.log;Yt({target:"Math",stat:!0,forced:!(la&&1/la(-0)<0)},{atanh:function(t){return 0==(t=+t)?t:ha((1+t)/(1-t))/2}});var ca=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1},fa=Math.abs,pa=Math.pow;Yt({target:"Math",stat:!0},{cbrt:function(t){return ca(t=+t)*pa(fa(t),1/3)}});var da=Math.floor,va=Math.log,ma=Math.LOG2E;Yt({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-da(va(t+.5)*ma):32}});var ya=Math.expm1,ga=!ya||ya(10)>22025.465794806718||ya(10)<22025.465794806718||-2e-17!=ya(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:ya,_a=Math.cosh,Pa=Math.abs,xa=Math.E;Yt({target:"Math",stat:!0,forced:!_a||_a(710)===1/0},{cosh:function(t){var e=ga(Pa(t)-1)+1;return(e+1/(e*xa*xa))*(xa/2)}}),Yt({target:"Math",stat:!0,forced:ga!=Math.expm1},{expm1:ga});var ba=Math.pow,wa=ba(2,-52),Ea=ba(2,-23),La=ba(2,127)*(2-Ea),Ta=ba(2,-126),Sa=Math.fround||function(t){var e,n,i=Math.abs(t),r=ca(t);return i<Ta?r*(i/Ta/Ea+1/wa-1/wa)*Ta*Ea:(n=(e=(1+Ea/wa)*i)-(e-i))>La||n!=n?r*(1/0):r*n};Yt({target:"Math",stat:!0},{fround:Sa});var Ia=Math.abs,Ca=Math.sqrt;Yt({target:"Math",stat:!0},{hypot:function(t,e){for(var n,i,r=0,o=0,s=arguments.length,a=0;o<s;)a<(n=Ia(arguments[o++]))?(r=r*(i=a/n)*i+1,a=n):r+=n>0?(i=n/a)*i:n;return a===1/0?1/0:a*Ca(r)}});var Oa=Math.imul,Aa=_(function(){return-5!=Oa(4294967295,5)||2!=Oa.length});Yt({target:"Math",stat:!0,forced:Aa},{imul:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i;return 0|r*o+((65535&n>>