klaro
Version:
A simple but powerful consent manager.
2 lines • 282 kB
JavaScript
/*! For license information please see ide-no-css.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ide=t():e.ide=t()}(self,(()=>(()=>{var e={2690:(e,t,r)=>{"use strict";function n(){for(var e=document.cookie.split(";"),t=[],r=new RegExp("^\\s*([^=]+)\\s*=\\s*(.*?)$"),n=0;n<e.length;n++){var o=e[n],i=r.exec(o);null!==i&&t.push({name:i[1],value:i[2]})}return t}function o(e,t,r){var n=e+"=; Max-Age=-99999999;";document.cookie=n,n+=" path="+(t||"/")+";",document.cookie=n,void 0!==r&&(n+=" domain="+r+";",document.cookie=n)}r.d(t,{default:()=>z}),r(9305),r(2733),r(4701),r(1678),r(4776),r(4382),r(9892),r(4962),r(6584),r(9336),r(4754),r(1908),r(94),r(7132),r(6457),r(8908),r(3810),r(8557),r(646),r(5021),r(3687),r(2745),r(3994),r(3062),r(4062),r(3630),r(2367);var i=r(5482);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e,t,r){return t=l(t),function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function v(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:String(t)}r(6437),r(2697),r(1359);var y=function(){function e(){p(this,e),this.value=null}return v(e,[{key:"get",value:function(){return this.value}},{key:"set",value:function(e){this.value=e}},{key:"delete",value:function(){this.value=null}}]),e}(),h=function(){function e(t){p(this,e),this.cookieName=t.storageName,this.cookieDomain=t.cookieDomain,this.cookiePath=t.cookiePath,this.cookieExpiresAfterDays=t.cookieExpiresAfterDays}return v(e,[{key:"get",value:function(){var e=function(e){for(var t=n(),r=0;r<t.length;r++)if(t[r].name===e)return t[r];return null}(this.cookieName);return e?e.value:null}},{key:"set",value:function(e){return function(e,t,r,n,o){var i="";if(r){var a=new Date;a.setTime(a.getTime()+24*r*60*60*1e3),i="; expires="+a.toUTCString()}void 0!==n&&(i+="; domain="+n),i+=void 0!==o?"; path="+o:"; path=/",document.cookie=e+"="+(t||"")+i+"; SameSite=Lax"}(this.cookieName,e,this.cookieExpiresAfterDays,this.cookieDomain,this.cookiePath)}},{key:"delete",value:function(){return o(this.cookieName)}}]),e}(),b=function(){function e(t,r){p(this,e),this.key=t.storageName,this.handle=r}return v(e,[{key:"get",value:function(){return this.handle.getItem(this.key)}},{key:"getWithKey",value:function(e){return this.handle.getItem(e)}},{key:"set",value:function(e){return this.handle.setItem(this.key,e)}},{key:"setWithKey",value:function(e,t){return this.handle.setItem(e,t)}},{key:"delete",value:function(){return this.handle.removeItem(this.key)}},{key:"deleteWithKey",value:function(e){return this.handle.removeItem(e)}}]),e}(),g=function(e){function t(e){return p(this,t),c(this,t,[e,localStorage])}return u(t,e),v(t)}(b),_=function(e){function t(e){return p(this,t),c(this,t,[e,sessionStorage])}return u(t,e),v(t)}(b);const w={cookie:h,test:y,localStorage:g,sessionStorage:_};function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function S(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=j(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||j(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){if(e){if("string"==typeof e)return O(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=C(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function A(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C(n.key),n)}}function C(e){var t=function(e,t){if("object"!=k(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(t)?t:String(t)}var z=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.store=void 0!==r?r:new w[this.storageMethod](this),void 0===this.store&&(this.store=w.cookie),this.auxiliaryStore=void 0!==n?n:new _(this),this.consents=this.defaultConsents,this.confirmed=!1,this.changed=!1,this.states={},this.initialized={},this.executedOnce={},this.watchers=new Set([]),this.loadConsents(),this.applyConsents(),this.savedConsents=P({},this.consents)}var t,r;return t=e,(r=[{key:"storageMethod",get:function(){return this.config.storageMethod||"cookie"}},{key:"storageName",get:function(){return this.config.storageName||this.config.cookieName||"klaro"}},{key:"cookieDomain",get:function(){return this.config.cookieDomain||void 0}},{key:"cookiePath",get:function(){return this.config.cookiePath||void 0}},{key:"cookieExpiresAfterDays",get:function(){return this.config.cookieExpiresAfterDays||120}},{key:"defaultConsents",get:function(){for(var e={},t=0;t<this.config.services.length;t++){var r=this.config.services[t];e[r.name]=this.getDefaultConsent(r)}return e}},{key:"watch",value:function(e){this.watchers.has(e)||this.watchers.add(e)}},{key:"unwatch",value:function(e){this.watchers.has(e)&&this.watchers.delete(e)}},{key:"notify",value:function(e,t){var r=this;this.watchers.forEach((function(n){n.update(r,e,t)}))}},{key:"getService",value:function(e){var t=this.config.services.filter((function(t){return t.name===e}));if(t.length>0)return t[0]}},{key:"getDefaultConsent",value:function(e){var t=e.default||e.required;return void 0===t&&(t=this.config.default),void 0===t&&(t=!1),t}},{key:"changeAll",value:function(e){var t=this,r=0;return this.config.services.filter((function(e){return!e.contextualConsentOnly})).map((function(n){n.required||t.config.required||e?t.updateConsent(n.name,!0)&&r++:t.updateConsent(n.name,!1)&&r++})),r}},{key:"updateConsent",value:function(e,t){var r=(this.consents[e]||!1)!==t;return this.consents[e]=t,this.notify("consents",this.consents),r}},{key:"resetConsents",value:function(){this.consents=this.defaultConsents,this.states={},this.confirmed=!1,this.applyConsents(),this.savedConsents=P({},this.consents),this.store.delete(),this.notify("consents",this.consents)}},{key:"getConsent",value:function(e){return this.consents[e]||!1}},{key:"loadConsents",value:function(){var e=this.store.get();return null!==e&&(this.consents=JSON.parse(decodeURIComponent(e)),this._checkConsents(),this.notify("consents",this.consents)),this.consents}},{key:"saveAndApplyConsents",value:function(e){this.saveConsents(e),this.applyConsents()}},{key:"changedConsents",value:function(){for(var e={},t=0,r=Object.entries(this.consents);t<r.length;t++){var n=E(r[t],2),o=n[0],i=n[1];this.savedConsents[o]!==i&&(e[o]=i)}return e}},{key:"saveConsents",value:function(e){var t=encodeURIComponent(JSON.stringify(this.consents));this.store.set(t),this.confirmed=!0,this.changed=!1;var r=this.changedConsents();this.savedConsents=P({},this.consents),this.notify("saveConsents",{changes:r,consents:this.consents,type:e||"script"})}},{key:"applyConsents",value:function(e,t,r){function n(e,t){if(void 0!==e)return("function"==typeof e?e:new Function("opts",e))(t)}for(var o=0,i=0;i<this.config.services.length;i++){var a=this.config.services[i];if(void 0===r||r===a.name){var c=a.vars||{},s={service:a,config:this.config,vars:c};this.initialized[a.name]||(this.initialized[a.name]=!0,n(a.onInit,s))}}for(var l=0;l<this.config.services.length;l++){var u=this.config.services[l];if(void 0===r||r===u.name){var f=this.states[u.name],p=u.vars||{},d=void 0!==u.optOut?u.optOut:this.config.optOut||!1,v=void 0!==u.required?u.required:this.config.required||!1,m=this.confirmed||d||e||t,y=this.getConsent(u.name)&&m||v,h={service:u,config:this.config,vars:p,consents:this.consents,confirmed:this.confirmed};f!==y&&o++,e||(n(y?u.onAccept:u.onDecline,h),this.updateServiceElements(u,y),this.updateServiceStorage(u,y),void 0!==u.callback&&u.callback(y,u),void 0!==this.config.callback&&this.config.callback(y,u),this.states[u.name]=y)}}return this.notify("applyConsents",o,r),o}},{key:"updateServiceElements",value:function(e,t){if(t){if(e.onlyOnce&&this.executedOnce[e.name])return;this.executedOnce[e.name]=!0}for(var r=document.querySelectorAll("[data-name='"+e.name+"']"),n=0;n<r.length;n++){var o=r[n],a=o.parentElement,c=(0,i.RT)(o),s=c.type,l=c.src,u=c.href,f=["href","src","type"];if("placeholder"!==s)if("IFRAME"===o.tagName){if(t&&o.src===l){console.debug("Skipping ".concat(o.tagName," for service ").concat(e.name,", as it already has the correct type..."));continue}var p,d=document.createElement(o.tagName),v=S(o.attributes);try{for(v.s();!(p=v.n()).done;){var m=p.value;d.setAttribute(m.name,m.value)}}catch(e){v.e(e)}finally{v.f()}d.innerText=o.innerText,d.text=o.text,t?(void 0!==c["original-display"]&&(d.style.display=c["original-display"]),void 0!==c.src&&(d.src=c.src)):(d.src="",void 0!==c["modified-by-klaro"]&&void 0!==c["original-display"]?d.setAttribute("data-original-display",c["original-display"]):(void 0!==o.style.display&&d.setAttribute("data-original-display",o.style.display),d.setAttribute("data-modified-by-klaro","yes")),d.style.display="none"),a.insertBefore(d,o),a.removeChild(o)}else if("SCRIPT"===o.tagName||"LINK"===o.tagName){if(t&&o.type===(s||"")&&o.src===l){console.debug("Skipping ".concat(o.tagName," for service ").concat(e.name,", as it already has the correct type or src..."));continue}var y,h=document.createElement(o.tagName),b=S(o.attributes);try{for(b.s();!(y=b.n()).done;){var g=y.value;h.setAttribute(g.name,g.value)}}catch(e){b.e(e)}finally{b.f()}h.innerText=o.innerText,h.text=o.text,t?(h.type=s||"",void 0!==l&&(h.src=l),void 0!==u&&(h.href=u)):h.type="text/plain",a.insertBefore(h,o),a.removeChild(o)}else{if(t){var _,w=S(f);try{for(w.s();!(_=w.n()).done;){var k=_.value,E=c[k];void 0!==E&&(void 0===c["original-"+k]&&(c["original-"+k]=o[k]),o[k]=E)}}catch(e){w.e(e)}finally{w.f()}void 0!==c.title&&(o.title=c.title),void 0!==c["original-display"]?o.style.display=c["original-display"]:o.style.removeProperty("display")}else{void 0!==c.title&&o.removeAttribute("title"),void 0===c["original-display"]&&void 0!==o.style.display&&(c["original-display"]=o.style.display),o.style.display="none";var j,O=S(f);try{for(O.s();!(j=O.n()).done;){var x=j.value;void 0!==c[x]&&(void 0!==c["original-"+x]?o[x]=c["original-"+x]:o.removeAttribute(x))}}catch(e){O.e(e)}finally{O.f()}}(0,i.X7)(c,o)}else t?(o.style.display="none",c["original-display"]=o.style.display):o.style.display=c["original-display"]||"block"}}},{key:"updateServiceStorage",value:function(e,t){if(!t&&void 0!==e.cookies&&e.cookies.length>0)for(var r=n(),i=0;i<e.cookies.length;i++){var a=e.cookies[i],c=void 0,s=void 0;if(a instanceof Array){var l=E(a,3);a=l[0],c=l[1],s=l[2]}else if(a instanceof Object&&!(a instanceof RegExp)){var u=a;a=u.pattern,c=u.path,s=u.domain}if(void 0!==a){a instanceof RegExp||(a=a.startsWith("^")?new RegExp(a):new RegExp("^"+a.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")+"$"));for(var f=0;f<r.length;f++){var p=r[f];null!==a.exec(p.name)&&(console.debug("Deleting cookie:",p.name,"Matched pattern:",a,"Path:",c,"Domain:",s),o(p.name,c,s),void 0===s&&o(p.name,c,"."+window.location.hostname))}}}}},{key:"_checkConsents",value:function(){for(var e=!0,t=new Set(this.config.services.map((function(e){return e.name}))),r=new Set(Object.keys(this.consents)),n=0,o=Object.keys(this.consents);n<o.length;n++){var i=o[n];t.has(i)||delete this.consents[i]}var a,c=S(this.config.services);try{for(c.s();!(a=c.n()).done;){var s=a.value;r.has(s.name)||(this.consents[s.name]=this.getDefaultConsent(s),e=!1)}}catch(e){c.e(e)}finally{c.f()}this.confirmed=e,e||(this.changed=!0)}}])&&A(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},5482:(e,t,r)=>{"use strict";function n(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e){if(null!==document.currentScript&&void 0!==document.currentScript)return document.currentScript;for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r++){var n=t[r];if(n.src.includes(e))return n}return null}function a(e){for(var t={},r=0;r<e.attributes.length;r++){var n=e.attributes[r];n.name.startsWith("data-")&&(t[n.name.slice(5)]=n.value)}return t}function c(e,t){for(var r=Object.keys(e),n=0;n<r.length;n++){var o=r[n],i=e[o];t[o]!==i&&t.setAttribute("data-"+o,i)}}function s(e){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=n(e))){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){s=!0,a=e},f:function(){try{c||null==r.return||r.return()}finally{if(s)throw a}}}}(document.querySelectorAll("style[data-context=klaro-styles]"));try{for(r.s();!(t=r.n()).done;){var o=t.value,i=o.innerText;void 0!==o.styleSheet&&(i=o.styleSheet.cssText);for(var a=function(){var e,t,r=(e=s[c],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],a=r[1],l=new RegExp("([a-z0-9-]+):[^;]+;[\\s\\n]*\\1:\\s*var\\(--"+o+",\\s*[^\\)]+\\)","g");i=i.replace(l,(function(e,t){return"".concat(t,": ").concat(a,"; ").concat(t,": var(--").concat(o,", ").concat(a,")")}))},c=0,s=Object.entries(e);c<s.length;c++)a();var l=document.createElement("style");l.setAttribute("type","text/css"),l.setAttribute("data-context","klaro-styles"),void 0!==l.styleSheet?l.styleSheet.cssText=i:l.innerText=i,o.parentElement.appendChild(l),o.parentElement.removeChild(o)}}catch(e){r.e(e)}finally{r.f()}}r.d(t,{N3:()=>s,RT:()=>a,X7:()=>c,XZ:()=>i}),r(9305),r(2733),r(4701),r(4776),r(9892),r(6281),r(4962),r(9336),r(1908),r(7132),r(3810),r(8557),r(646),r(5021),r(3687),r(9425),r(3994),r(3062),r(4062),r(2367)},362:(e,t,r)=>{"use strict";var n=r(6441);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},2688:(e,t,r)=>{e.exports=r(362)()},6441:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4452:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,i(r)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},8120:(e,t,r)=>{"use strict";var n=r(1483),o=r(8761),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},2374:(e,t,r)=>{"use strict";var n=r(943),o=r(8761),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a constructor")}},3852:(e,t,r)=>{"use strict";var n=r(735),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},7095:(e,t,r)=>{"use strict";var n=r(1),o=r(5290),i=r(5835).f,a=n("unscopables"),c=Array.prototype;void 0===c[a]&&i(c,a,{configurable:!0,value:o(null)}),e.exports=function(e){c[a][e]=!0}},4419:(e,t,r)=>{"use strict";var n=r(9105).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},6021:(e,t,r)=>{"use strict";var n=r(4815),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},2293:(e,t,r)=>{"use strict";var n=r(1704),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},9214:(e,t,r)=>{"use strict";var n=r(8473);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},4793:(e,t,r)=>{"use strict";var n=r(2867).forEach,o=r(3152)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},6142:(e,t,r)=>{"use strict";var n=r(2914),o=r(1807),i=r(2347),a=r(8901),c=r(5299),s=r(943),l=r(6960),u=r(670),f=r(4887),p=r(6665),d=Array;e.exports=function(e){var t=i(e),r=s(this),v=arguments.length,m=v>1?arguments[1]:void 0,y=void 0!==m;y&&(m=n(m,v>2?arguments[2]:void 0));var h,b,g,_,w,k,S=p(t),E=0;if(!S||this===d&&c(S))for(h=l(t),b=r?new this(h):d(h);h>E;E++)k=y?m(t[E],E):t[E],u(b,E,k);else for(w=(_=f(t,S)).next,b=r?new this:[];!(g=o(w,_)).done;E++)k=y?a(_,m,[g.value,E],!0):g.value,u(b,E,k);return b.length=E,b}},6651:(e,t,r)=>{"use strict";var n=r(5599),o=r(3392),i=r(6960),a=function(e){return function(t,r,a){var c=n(t),s=i(c);if(0===s)return!e&&-1;var l,u=o(a,s);if(e&&r!=r){for(;s>u;)if((l=c[u++])!=l)return!0}else for(;s>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2867:(e,t,r)=>{"use strict";var n=r(2914),o=r(4762),i=r(2121),a=r(2347),c=r(6960),s=r(4551),l=o([].push),u=function(e){var t=1===e,r=2===e,o=3===e,u=4===e,f=6===e,p=7===e,d=5===e||f;return function(v,m,y,h){for(var b,g,_=a(v),w=i(_),k=c(w),S=n(m,y),E=0,j=h||s,O=t?j(v,k):r||p?j(v,0):void 0;k>E;E++)if((d||E in w)&&(g=S(b=w[E],E,_),e))if(t)O[E]=g;else if(g)switch(e){case 3:return!0;case 5:return b;case 6:return E;case 2:l(O,b)}else switch(e){case 4:return!1;case 7:l(O,b)}return f?-1:o||u?u:O}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},4595:(e,t,r)=>{"use strict";var n=r(8473),o=r(1),i=r(6170),a=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},3152:(e,t,r)=>{"use strict";var n=r(8473);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},1698:(e,t,r)=>{"use strict";var n=r(4762);e.exports=n([].slice)},7354:(e,t,r)=>{"use strict";var n=r(1698),o=Math.floor,i=function(e,t){var r=e.length;if(r<8)for(var a,c,s=1;s<r;){for(c=s,a=e[s];c&&t(e[c-1],a)>0;)e[c]=e[--c];c!==s++&&(e[c]=a)}else for(var l=o(r/2),u=i(n(e,0,l),t),f=i(n(e,l),t),p=u.length,d=f.length,v=0,m=0;v<p||m<d;)e[v+m]=v<p&&m<d?t(u[v],f[m])<=0?u[v++]:f[m++]:v<p?u[v++]:f[m++];return e};e.exports=i},9703:(e,t,r)=>{"use strict";var n=r(4914),o=r(943),i=r(1704),a=r(1)("species"),c=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===c||n(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?c:t}},4551:(e,t,r)=>{"use strict";var n=r(9703);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},8901:(e,t,r)=>{"use strict";var n=r(2293),o=r(6721);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},1554:(e,t,r)=>{"use strict";var n=r(1)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},1278:(e,t,r)=>{"use strict";var n=r(4762),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},6145:(e,t,r)=>{"use strict";var n=r(4338),o=r(1483),i=r(1278),a=r(1)("toStringTag"),c=Object,s="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=c(e),a))?r:s?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},4092:(e,t,r)=>{"use strict";var n=r(5290),o=r(3864),i=r(2313),a=r(2914),c=r(6021),s=r(5983),l=r(1506),u=r(5662),f=r(5247),p=r(240),d=r(382),v=r(8041).fastKey,m=r(4483),y=m.set,h=m.getterFor;e.exports={getConstructor:function(e,t,r,u){var f=e((function(e,o){c(e,p),y(e,{type:t,index:n(null),first:void 0,last:void 0,size:0}),d||(e.size=0),s(o)||l(o,e[u],{that:e,AS_ENTRIES:r})})),p=f.prototype,m=h(t),b=function(e,t,r){var n,o,i=m(e),a=g(e,t);return a?a.value=r:(i.last=a={index:o=v(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),d?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},g=function(e,t){var r,n=m(e),o=v(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===t)return r};return i(p,{clear:function(){for(var e=m(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=n(null),d?e.size=0:this.size=0},delete:function(e){var t=this,r=m(t),n=g(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),d?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=m(this),n=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(p,r?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return b(this,0===e?0:e,t)}}:{add:function(e){return b(this,e=0===e?0:e,e)}}),d&&o(p,"size",{configurable:!0,get:function(){return m(this).size}}),f},setStrong:function(e,t,r){var n=t+" Iterator",o=h(t),i=h(n);u(e,t,(function(e,t){y(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?f("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=void 0,f(void 0,!0))}),r?"entries":"values",!r,!0),p(t)}}},7446:(e,t,r)=>{"use strict";var n=r(8612),o=r(8389),i=r(4762),a=r(8730),c=r(7914),s=r(8041),l=r(1506),u=r(6021),f=r(1483),p=r(5983),d=r(1704),v=r(8473),m=r(1554),y=r(2277),h=r(2429);e.exports=function(e,t,r){var b=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),_=b?"set":"add",w=o[e],k=w&&w.prototype,S=w,E={},j=function(e){var t=i(k[e]);c(k,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(g&&!d(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return g&&!d(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(g&&!d(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(a(e,!f(w)||!(g||k.forEach&&!v((function(){(new w).entries().next()})))))S=r.getConstructor(t,e,b,_),s.enable();else if(a(e,!0)){var O=new S,x=O[_](g?{}:-0,1)!==O,P=v((function(){O.has(1)})),A=m((function(e){new w(e)})),C=!g&&v((function(){for(var e=new w,t=5;t--;)e[_](t,t);return!e.has(-0)}));A||((S=t((function(e,t){u(e,k);var r=h(new w,e,S);return p(t)||l(t,r[_],{that:r,AS_ENTRIES:b}),r}))).prototype=k,k.constructor=S),(P||C)&&(j("delete"),j("has"),b&&j("get")),(C||x)&&j(_),g&&k.clear&&delete k.clear}return E[e]=S,n({global:!0,constructor:!0,forced:S!==w},E),y(S,e),g||r.setStrong(S,e,b),S}},6726:(e,t,r)=>{"use strict";var n=r(5755),o=r(9497),i=r(4961),a=r(5835);e.exports=function(e,t,r){for(var c=o(t),s=a.f,l=i.f,u=0;u<c.length;u++){var f=c[u];n(e,f)||r&&n(r,f)||s(e,f,l(t,f))}}},4522:(e,t,r)=>{"use strict";var n=r(1)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},9441:(e,t,r)=>{"use strict";var n=r(8473);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},5247:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},9037:(e,t,r)=>{"use strict";var n=r(382),o=r(5835),i=r(7738);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},7738:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},670:(e,t,r)=>{"use strict";var n=r(382),o=r(5835),i=r(7738);e.exports=function(e,t,r){n?o.f(e,t,i(0,r)):e[t]=r}},6446:(e,t,r)=>{"use strict";var n=r(2293),o=r(348),i=TypeError;e.exports=function(e){if(n(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return o(this,e)}},3864:(e,t,r)=>{"use strict";var n=r(169),o=r(5835);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},7914:(e,t,r)=>{"use strict";var n=r(1483),o=r(5835),i=r(169),a=r(2095);e.exports=function(e,t,r,c){c||(c={});var s=c.enumerable,l=void 0!==c.name?c.name:t;if(n(r)&&i(r,l,c),c.global)s?e[t]=r:a(t,r);else{try{c.unsafe?e[t]&&(s=!0):delete e[t]}catch(e){}s?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return e}},2313:(e,t,r)=>{"use strict";var n=r(7914);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},2095:(e,t,r)=>{"use strict";var n=r(8389),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},6060:(e,t,r)=>{"use strict";var n=r(8761),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+n(t)+" of "+n(e))}},382:(e,t,r)=>{"use strict";var n=r(8473);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3145:(e,t,r)=>{"use strict";var n=r(8389),o=r(1704),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},1091:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},4842:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},1902:(e,t,r)=>{"use strict";var n=r(3145)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},7332:(e,t,r)=>{"use strict";var n=r(9966).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},6956:(e,t,r)=>{"use strict";var n=r(938),o=r(4334);e.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},5413:e=>{"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},938:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},8996:(e,t,r)=>{"use strict";var n=r(9966);e.exports=/MSIE|Trident/.test(n)},4466:(e,t,r)=>{"use strict";var n=r(9966);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},8417:(e,t,r)=>{"use strict";var n=r(9966);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},4334:(e,t,r)=>{"use strict";var n=r(8389),o=r(1278);e.exports="process"===o(n.process)},6639:(e,t,r)=>{"use strict";var n=r(9966);e.exports=/web0s(?!.*chrome)/i.test(n)},9966:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},6170:(e,t,r)=>{"use strict";var n,o,i=r(8389),a=r(9966),c=i.process,s=i.Deno,l=c&&c.versions||s&&s.version,u=l&&l.v8;u&&(o=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},5158:(e,t,r)=>{"use strict";var n=r(9966).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},4741:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8612:(e,t,r)=>{"use strict";var n=r(8389),o=r(4961).f,i=r(9037),a=r(7914),c=r(2095),s=r(6726),l=r(8730);e.exports=function(e,t){var r,u,f,p,d,v=e.target,m=e.global,y=e.stat;if(r=m?n:y?n[v]||c(v,{}):n[v]&&n[v].prototype)for(u in t){if(p=t[u],f=e.dontCallGetSet?(d=o(r,u))&&d.value:r[u],!l(m?u:v+(y?".":"#")+u,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;s(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(r,u,p,e)}}},8473:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},3358:(e,t,r)=>{"use strict";r(5021);var n=r(1807),o=r(7914),i=r(8865),a=r(8473),c=r(1),s=r(9037),l=c("species"),u=RegExp.prototype;e.exports=function(e,t,r,f){var p=c(e),d=!a((function(){var t={};return t[p]=function(){return 7},7!==""[e](t)})),v=d&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[l]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return t=!0,null},r[p](""),!t}));if(!d||!v||r){var m=/./[p],y=t(p,""[e],(function(e,t,r,o,a){var c=t.exec;return c===i||c===u.exec?d&&!a?{done:!0,value:n(m,t,r,o)}:{done:!0,value:n(e,r,t,o)}:{done:!1}}));o(String.prototype,e,y[0]),o(u,p,y[1])}f&&s(u[p],"sham",!0)}},6530:(e,t,r)=>{"use strict";var n=r(8473);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},3067:(e,t,r)=>{"use strict";var n=r(274),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},2914:(e,t,r)=>{"use strict";var n=r(3786),o=r(8120),i=r(274),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},274:(e,t,r)=>{"use strict";var n=r(8473);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},2164:(e,t,r)=>{"use strict";var n=r(4762),o=r(8120),i=r(1704),a=r(5755),c=r(1698),s=r(274),l=Function,u=n([].concat),f=n([].join),p={};e.exports=s?l.bind:function(e){var t=o(this),r=t.prototype,n=c(arguments,1),s=function(){var r=u(n,c(arguments));return this instanceof s?function(e,t,r){if(!a(p,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";p[t]=l("C,a","return new C("+f(n,",")+")")}return p[t](e,r)}(t,r.length,r):t.apply(e,r)};return i(r)&&(s.prototype=r),s}},1807:(e,t,r)=>{"use strict";var n=r(274),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},2048:(e,t,r)=>{"use strict";var n=r(382),o=r(5755),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,c=o(i,"name"),s=c&&"something"===function(){}.name,l=c&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:c,PROPER:s,CONFIGURABLE:l}},680:(e,t,r)=>{"use strict";var n=r(4762),o=r(8120);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},3786:(e,t,r)=>{"use strict";var n=r(1278),o=r(4762);e.exports=function(e){if("Function"===n(e))return o(e)}},4762:(e,t,r)=>{"use strict";var n=r(274),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},1409:(e,t,r)=>{"use strict";var n=r(8389),o=r(1483);e.exports=function(e,t){return arguments.length<2?(r=n[e],o(r)?r:void 0):n[e]&&n[e][t];var r}},6665:(e,t,r)=>{"use strict";var n=r(6145),o=r(2564),i=r(5983),a=r(6775),c=r(1)("iterator");e.exports=function(e){if(!i(e))return o(e,c)||o(e,"@@iterator")||a[n(e)]}},4887:(e,t,r)=>{"use strict";var n=r(1807),o=r(8120),i=r(2293),a=r(8761),c=r(6665),s=TypeError;e.exports=function(e,t){var r=arguments.length<2?c(e):t;if(o(r))return i(n(r,e));throw new s(a(e)+" is not iterable")}},5215:(e,t,r)=>{"use strict";var n=r(4762),o=r(4914),i=r(1483),a=r(1278),c=r(6261),s=n([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,r=[],n=0;n<t;n++){var l=e[n];"string"==typeof l?s(r,l):"number"!=typeof l&&"Number"!==a(l)&&"String"!==a(l)||s(r,c(l))}var u=r.length,f=!0;return function(e,t){if(f)return f=!1,t;if(o(this))return t;for(var n=0;n<u;n++)if(r[n]===e)return t}}}},2564:(e,t,r)=>{"use strict";var n=r(8120),o=r(5983);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},708:(e,t,r)=>{"use strict";var n=r(4762),o=r(2347),i=Math.floor,a=n("".charAt),c=n("".replace),s=n("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,f,p){var d=r+e.length,v=n.length,m=u;return void 0!==f&&(f=o(f),m=l),c(p,m,(function(o,c){var l;switch(a(c,0)){case"$":return"$";case"&":return e;case"`":return s(t,0,r);case"'":return s(t,d);case"<":l=f[s(c,1,-1)];break;default:var u=+c;if(0===u)return o;if(u>v){var p=i(u/10);return 0===p?o:p<=v?void 0===n[p-1]?a(c,1):n[p-1]+a(c,1):o}l=n[u-1]}return void 0===l?"":l}))}},8389:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},5755:(e,t,r)=>{"use strict";var n=r(4762),o=r(2347),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},1507:e=>{"use strict";e.exports={}},1339:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},2811:(e,t,r)=>{"use strict";var n=r(1409);e.exports=n("document","documentElement")},1799:(e,t,r)=>{"use strict";var n=r(382),o=r(8473),i=r(3145);e.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2121:(e,t,r)=>{"use strict";var n=r(4762),o=r(8473),i=r(1278),a=Object,c=n("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?c(e,""):a(e)}:a},2429:(e,t,r)=>{"use strict";var n=r(1483),o=r(1704),i=r(1953);e.exports=function(e,t,r){var a,c;return i&&n(a=t.constructor)&&a!==r&&o(c=a.prototype)&&c!==r.prototype&&i(e,c),e}},7268:(e,t,r)=>{"use strict";var n=r(4762),o=r(1483),i=r(1831),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},8041:(e,t,r)=>{"use strict";var n=r(8612),o=r(4762),i=r(1507),a=r(1704),c=r(5755),s=r(5835).f,l=r(2278),u=r(2020),f=r(706),p=r(1866),d=r(6530),v=!1,m=p("meta"),y=0,h=function(e){s(e,m,{value:{objectID:"O"+y++,weakData:{}}})},b=e.exports={enable:function(){b.enable=function(){},v=!0;var e=l.f,t=o([].splice),r={};r[m]=1,e(r).length&&(l.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===m){t(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!c(e,m)){if(!f(e))return"F";if(!t)return"E";h(e)}return e[m].objectID},getWeakData:function(e,t){if(!c(e,m)){if(!f(e))return!0;if(!t)return!1;h(e)}return e[m].weakData},onFreeze:function(e){return d&&v&&f(e)&&!c(e,m)&&h(e),e}};i[m]=!0},4483:(e,t,r)=>{"use strict";var n,o,i,a=r(4644),c=r(8389),s=r(1704),l=r(9037),u=r(5755),f=r(1831),p=r(5409),d=r(1507),v="Object already initialized",m=c.TypeError,y=c.WeakMap;if(a||f.state){var h=f.state||(f.state=new y);h.get=h.get,h.has=h.has,h.set=h.set,n=function(e,t){if(h.has(e))throw new m(v);return t.facade=e,h.set(e,t),t},o=function(e){return h.get(e)||{}},i=function(e){return h.has(e)}}else{var b=p("state");d[b]=!0,n=function(e,t){if(u(e,b))throw new m(v);return t.facade=e,l(e,b,t),t},o=function(e){return u(e,b)?e[b]:{}},i=function(e){return u(e,b)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!s(t)||(r=o(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}}}},5299:(e,t,r)=>{"use strict";var n=r(1),o=r(6775),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},4914:(e,t,r)=>{"use strict";var n=r(1278);e.exports=Array.isArray||function(e){return"Array"===n(e)}},1483:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},943:(e,t,r)=>{"use strict";var n=r(4762),o=r(8473),i=r(1483),a=r(6145),c=r(1409),s=r(7268),l=function(){},u=c("Reflect","construct"),f=/^\s*(?:class|function)\b/,p=n(f.exec),d=!f.test(l),v=function(e){if(!i(e))return!1;try{return u(l,[],e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!p(f,s(e))}catch(e){return!0}};m.sham=!0,e.exports=!u||o((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?m:v},8730:(e,t,r)=>{"use strict";var n=r(8473),o=r(1483),i=/#|\.prototype\./,a=function(e,t){var r=s[c(e)];return r===u||r!==l&&(o(t)?n(t):!!t)},c=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},5983:e=>{"use strict";e.exports=function(e){return null==e}},1704:(e,t,r)=>{"use strict";var n=r(1483);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},735:(e,t,r)=>{"use strict";var n=r(1704);e.exports=function(e){return n(e)||null===e}},9557:e=>{"use strict";e.exports=!1},4786:(e,t,r)=>{"use strict";var n=r(1704),o=r(1278),i=r(1)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},1423:(e,t,r)=>{"use strict";var n=r(1409),o=r(1483),i=r(4815),a=r(5022),c=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,c(e))}},1506:(e,t,r)=>{"use strict";var n=r(2914),o=r(1807),i=r(2293),a=r(8761),c=r(5299),s=r(6960),l=r(4815),u=r(4887),f=r(6665),p=r(6721),d=TypeError,v=function(e,t){this.stopped=e,this.result=t},m=v.prototype;e.exports=function(e,t,r){var y,h,b,g,_,w,k,S=r&&r.that,E=!(!r||!r.AS_ENTRIES),j=!(!r||!r.IS_RECORD),O=!(!r||!r.IS_ITERATOR),x=!(!r||!r.INTERRUPTED),P=n(t,S),A=function(e){return y&&p(y,"normal",e),new v(!0,e)},C=function(e){return E?(i(e),x?P(e[0],e[1],A):P(e[0],e[1])):x?P(e,A):P(e)};if(j)y=e.iterator;else if(O)y=e;else{if(!(h=f(e)))throw new d(a(e)+" is not iterable");if(c(h)){for(b=0,g=s(e);g>b;b++)if((_=C(e[b]))&&l(m,_))return _;return new v(!1)}y=u(e,h)}for(w=j?e.next:y.next;!(k=o(w,y)).done;){try{_=C(k.value)}catch(e){p(y,"throw",e)}if("object"==typeof _&&_&&l(m,_))return _}return new v(!1)}},6721:(e,t,r)=>{"use strict";var n=r(1807),o=r(2293),i=r(2564);e.exports=function(e,t,r){var a,c;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){c=!0,a=e}if("throw"===t)throw r;if(c)throw a;return o(a),r}},1040:(e,t,r)=>{"use strict";var n=r(1851).IteratorPrototype,o=r(5290),i=r(7738),a=r(2277),c=r(6775),s=function(){return this};e.exports=function(e,t,r,l){var u=t+" Iterator";return e.prototype=o(n,{next:i(+!l,r)}),a(e,u,!1,!0),c[u]=s,e}},5662:(e,t,r)=>{"use strict";var n=r(8612),o=r(1807),i=r(9557),a=r(2048),c=r(1483),s=r(1040),l=r(3181),u=r(1953),f=r(2277),p=r(9037),d=r(7914),v=r(1),m=r(6775),y=r(1851),h=a.PROPER,b=a.CONFIGURABLE,g=y.IteratorPrototype,_=y.BUGGY_SAFARI_ITERATORS,w=v("iterator"),k="keys",S="values",E="entries",j=function(){return this};e.exports=function(e,t,r,a,v,y,O){s(r,t,a);var x,P,A,C=function(e){if(e===v&&R)return R;if(!_&&e&&e in T)return T[e];switch(e){case k:case S:case E:return function(){return new r(this,e)}}return function(){return new r(this)}},z=t+" Iterator",N=!1,T=e.prototype,I=T[w]||T["@@iterator"]||v&&T[v],R=!_&&I||C(v),D="Array"===t&&T.entries||I;if(D&&(x=l(D.call(new e)))!==Object.prototype&&x.next&&(i||l(x)===g||(u?u(x,g):c(x[w])||d(x,w,j)),f(x,z,!0,!0),i&&(m[z]=j)),h&&v===S&&I&&I.name!==S&&(!i&&b?p(T,"name",S):(N=!0,R=function(){return o(I,this)})),v)if(P={values:C(S),keys:y?R:C(k),entries:C(E)},O)for(A in P)(_||N||!(A in T))&&d(T,A,P[A]);else n({target:t,proto:!0,forced:_||N},P);return i&&!O||T[w]===R||d(T,w,R,{name:v}),m[t]=R,P}},1851:(e,t,r)=>{"use strict";var n,o,i,a=r(8473),c=r(1483),s=r(1704),l=r(5290),u=r(3181),f=r(7914),p=r(1),d=r(9557),v=p("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(n=o):m=!0),!s(n)||a((function(){var e={};return n[v].call(e)!==e}))?n={}:d&&(n=l(n)),c(n[v])||f(n,v,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},6775:e=>{"use strict";e.exports={}},6960:(e,t,r)=>{"use strict";var n=r(8324);e.exports=function(e){return n(e.length)}},169:(e,t,r)=>{"use strict";var n=r(4762),o=r(8473),i=r(1483),a=r(5755),c=r(382),s=r(2048).CONFIGURABLE,l=r(7268),u=r(4483),f=u.enforce,p=u.get,d=String,v=Object.defineProperty,m=n("".slice),y=n("".replace),h=n([].join),b=c&&!o((function(){return 8!==v((function(){}),"length",{value:8}).length})),g=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===m(d(t),0,7)&&(t="["+y(d(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||s&&e.name!==t)&&(c?v(e,"name",{value:t,configurable:!0}):e.name=t),b&&r&&a(r,"arity")&&e.length!==r.arity&&v(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?c&&v(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=f(e);return a(n,"source")||(n.source=h(g,"string"==typeof t?t:"")),e};Function.prototype.toString=_((function(){return i(this)&&p(this).source||l(this)}),"toString")},1703:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},553:(e,t,r)=>{"use strict";var n,o,i,a,c,s=r(8389),l=r(8123),u=r(2914),f=r(7007).set,p=r(5459),d=r(8417),v=r(4466),m=r(6639),y=r(4334),h=s.MutationObserver||s.WebKitMutationObserver,b=s.document,g=s.process,_=s.Promise,w=l("queueMicrotask");if(!w){var k=new p,S=function(){var e,t;for(y&&(e=g.domain)&&e.exit();t=k.get();)try{t()}catch(e){throw k.head&&n(),e}e&&e.enter()};d||y||m||!h||!b?!v&&_&&_.resolve?((a=_.resolve(void 0)).constructor=_,c=u(a.then,a),n=function(){c(S)}):y?n=function(){g.nextTick(S)}:(f=u(f,s),n=function(){f(S)}):(o=!0,i=b.createTextNode(""),new h(S).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),w=function(e){k.head||n(),k.add(e)}}e.exports=w},1173:(e,t,r)=>{"use strict";var n=r(8120),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},4989:(e,t,r)=>{"use strict";var n=r(4786),o=TypeError;e.exports=function(e){if(n(e))throw new o("The method doesn't accept regular expressions");return e}},1439:(e,t,r)=>{"use strict";var n=r(382),o=r(4762),i=r(1807),a=r(8473),c=r(3658),s=r(4347),l=r(7611),u=r(2347),f=r(2121),p=Object.assign,d=Object.defineProperty,v=o([].concat);e.exports=!p||a((function(){if(n&&1!==p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach((function(e){t[e]=e})),7!==p({},e)[r]||c(p({},t)).join("")!==o}))?function(e,t){for(var r=u(e),o=arguments.length,a=1,p=s.f,d=l.f;o>a;)for(var m,y=f(arguments[a++]),h=p?v(c(y),p(y)):c(y),b=h.length,g=0;b>g;)m=h[g++],n&&!i(d,y,m)||(r[m]=y[m]);return r}:p},5290:(e,t,r)=>{"use strict";var n,o=r(2293),i=r(5799),a=r(4741),c=r(1507),s=r(2811),l=r(3145),u=r(5409),f="prototype",p="script",d=u("IE_PROTO"),v=function(){},m=function(e){return"<"+p+">"+e+"</"+p+">"},y=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;h="undefined"!=typeof document?document.domain&&n?y(n):(t=l("iframe"),r="java"+p+":",t.style.display="none",s.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):y(n);for(var o=a.length;o--;)delete h[f][a[o]];return h()};c[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(v[f]=o(e),r=new v,v[f]=null,r[d]=e):r=h(),void 0===t?r:i.f(r,t)}},5799:(e,t,r)=>{"use strict";var n=r(382),o=r(3896),i=r(5835),a=r(2293),c=r(5599),s=r(3658);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);for(var r,n=c(t),o=s(t),l=o.length,u=0;l>u;)i.f(e,r=o[u++],n[r]);return e}},5835:(e,t,r)=>{"use strict";var n=r(382),o=r(1799),i=r(3896),a=r(2293),c=r(3815),s=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";t.f=n?i?function(e,t,r){if(a(e),t=c(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var n=u(e,t);n&&n[d]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(a(e),t=c(t),a(r),o)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new s("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},4961:(e,t,r)=>{"use strict";var n=r(382),o=r(1807),i=r(7611),a=r(7738),c=r(5599),s=r(3815),l=r(5755),u=r(1799),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=c(e),t=s(t),u)try{return f(e,t)}catch(e){}if(l(e,t))return a(!o(i.