=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}])&&QV(t.prototype,n),r&&QV(t,r),i}(eU);function oz(e,t,n){var r,o,i,a,u,c,l,s;tF(2,arguments);var f=cF(),p=eF(null!==(r=null!==(o=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(u=n.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==o?o:null===(l=f.locale)||void 0===l||null===(s=l.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=rF(e),h=eF(t),m=d.getUTCDay(),y=h%7,v=(y+7)%7,b=(v=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=oz(e,n,r)).setUTCHours(0,0,0,0),e}}])&&uz(t.prototype,n),r&&uz(t,r),i}(eU);function mz(e){return(mz="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})(e)}function yz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vz(e,t){for(var n=0;n=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=oz(e,n,r)).setUTCHours(0,0,0,0),e}}])&&vz(t.prototype,n),r&&vz(t,r),i}(eU);function Sz(e){return(Sz="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})(e)}function Ez(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tz(e,t){for(var n=0;n=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=oz(e,n,r)).setUTCHours(0,0,0,0),e}}])&&Tz(t.prototype,n),r&&Tz(t,r),i}(eU);function Mz(e){return(Mz="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})(e)}function Nz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lz(e,t){for(var n=0;n=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){tF(2,arguments);var n=eF(t);n%7==0&&(n-=7);var r=1,o=rF(e),i=o.getUTCDay(),a=((n%7+7)%7=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}])&&kH(t.prototype,n),r&&kH(t,r),i}(eU);function jH(e){return(jH="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})(e)}function RH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IH(e,t){for(var n=0;n=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}])&&IH(t.prototype,n),r&&IH(t,r),i}(eU);function VH(e){return(VH="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})(e)}function zH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HH(e,t){for(var n=0;n=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}])&&HH(t.prototype,n),r&&HH(t,r),i}(eU);function XH(e){return(XH="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})(e)}function ZH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JH(e,t){for(var n=0;n=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}])&&JH(t.prototype,n),r&&JH(t,r),i}(eU);function uY(e){return(uY="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})(e)}function cY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lY(e,t){for(var n=0;n=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}])&&lY(t.prototype,n),r&&lY(t,r),i}(eU);function vY(e){return(vY="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})(e)}function bY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gY(e,t){for(var n=0;n=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}])&&gY(t.prototype,n),r&&gY(t,r),i}(eU);function TY(e){return(TY="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})(e)}function CY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PY(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},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,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function EW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(aq),cq=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),lq=function(e){function t(n,r){void 0===r&&(r=cq.now);var o=e.call(this,n,(function(){return t.delegate&&t.delegate!==o?t.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return MW(t,e),t.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,o):e.prototype.schedule.call(this,n,r,o)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(cq),sq=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MW(t,e),t}(lq))(uq),fq=new ZW((function(e){return e.complete()}));function pq(e){return e?function(e){return new ZW((function(t){return e.schedule((function(){return t.complete()}))}))}(e):fq}function dq(e){return e&&"function"==typeof e.schedule}function hq(e,t){return new ZW((function(n){var r=new YW,o=0;return r.add(t.schedule((function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function mq(e,t){return t?hq(e,t):new ZW((n=e,function(e){for(var t=0,r=n.length;tthis._bufferSize&&n.shift()}e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new _q(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=r.length;if(this.closed)throw new eq;if(this.isStopped||this.hasError?t=YW.EMPTY:(this.observers.push(e),t=new tq(this,e)),o&&e.add(e=new bq(e,o)),n)for(var a=0;at&&(i=Math.max(i,o-t)),i>0&&r.splice(0,i),r},t}(rq),_q=function(){return function(e,t){this.time=e,this.value=t}}(),xq=new lq(aq),kq=new iq({placementId:"",fieldId:""}),Oq=new iq({});function Sq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eq(e){for(var t=1;t-1&&(v=v+"_"+m+"#"+d);var k=i&&i.hasOwnProperty("children")&&(null===(r=i.children)||void 0===r?void 0:r.length)>0,O=(null==s?void 0:s.length)>0&&(null===(o=i.ruleIds)||void 0===o?void 0:o.length)>0;y.exports.useEffect((function(){var e=kq.subscribe(S);return i.type.id===yb.EndSubmission&&(console.log("submission found: ",v),kq.next({placementId:v,fieldId:i.id})),function(){i.type.id===yb.EndSubmission&&(kq.value.fieldId===i.id&&kq.next({placementId:"",fieldId:""}));e.unsubscribe()}}),[]);var S=function(e){var t=e.placementId.split("_"),n=v.split("_"),r=t[h],o=n[h];if(""!==e.placementId)if(0===h){var i=parseInt(r);parseInt(o)<=i?x(!0):T()}else h>=t.length?E(t.length,t,n):E(n.length,t,n);else x(!0)};function E(e,t,n){for(var r=0;ri)T();else{if(c===i&&a===l)continue;c===i&&l>a?T():x(!0)}}else if(parseInt(t[r])!==parseInt(n[r])){x(!0);break}}function T(){var e=b.watch();b.unregister(i.id);for(var t=i.settings.hasOwnProperty("multiValue")&&i.settings.multiValue.enabled?i.settings.multiValue.count:0,n=0;n=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=eF(null!==(h=null!==(m=null!==(y=null!==(v=null==r?void 0:r.weekStartsOn)&&void 0!==v?v:null==r||null===(b=r.locale)||void 0===b||null===(g=b.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==y?y:O.weekStartsOn)&&void 0!==m?m:null===(w=O.locale)||void 0===w||null===(_=w.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==h?h:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?rF(n):new Date(NaN);var C,P={firstWeekContainsDate:E,weekStartsOn:T,locale:S},D=[new ZF],j=k.match(CW).map((function(e){var t=e[0];return t in kF?(0,kF[t])(e,S.formatLong):e})).join("").match(TW),R=[],I=SW(j);try{var A=function(){var t=C.value;null!=r&&r.useAdditionalWeekYearTokens||!TF(t)||CF(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!EF(t)||CF(t,k,e);var n=t[0],o=kW[n];if(o){var i=o.incompatibleTokens;if(Array.isArray(i)){var a=R.find((function(e){return i.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));R.push({token:n,fullToken:t});var u=o.run(x,t,S.match,P);if(!u)return{v:new Date(NaN)};D.push(u.setter),x=u.rest}else{if(n.match(RW))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=IW(t)),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(I.s();!(C=I.n()).done;){var M=A();if("object"===OW(M))return M.v}}catch(e){I.e(e)}finally{I.f()}if(x.length>0&&jW.test(x))return new Date(NaN);var N=D.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return D.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),L=rF(n);if(isNaN(L.getTime()))return new Date(NaN);var F,U=sF(L,lF(L)),B={},V=SW(N);try{for(V.s();!(F=V.n()).done;){var z=F.value;if(!z.validate(U,P))return new Date(NaN);var H=z.set(U,B,P);Array.isArray(H)?(U=H[0],FF(B,H[1])):U=H}}catch(e){V.e(e)}finally{V.f()}return U}(n,l,new Date),f=new Date;f.setHours(0),f.setMinutes(0),f.setSeconds(0),f.setMilliseconds(0),s.setHours(0),s.setMinutes(0);var p=r.condition[0],d=parseInt(r.unitValue);switch(r.unitValueType){case"DAYS":s=oF(s,d);break;case"WEEKS":s=function(e,t){tF(2,arguments);var n=eF(t);return oF(e,7*n)}(s,d);break;case"MONTHS":s=iF(s,d);break;case"YEARS":s=function(e,t){tF(2,arguments);var n=eF(t);return iF(e,12*n)}(s,d)}c=function(e,t,n){var r=!1;switch(n){case"GREATER_THAN":r=e>t;break;case"GREATER_THAN_OR_EQUAL":r=e>=t;break;case"LESS_THAN":r=e=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(jq);var Iq=jq.exports(),Aq=Iq;try{regeneratorRuntime=Iq}catch(e){"object"===("undefined"==typeof globalThis?"undefined":jb(globalThis))?globalThis.regeneratorRuntime=Iq:Function("r","regeneratorRuntime = r")(Iq)}function Mq(e){var t=e.fetchCaptchaDto,n=e.postAnswer,r=e.onInputCorrect,o=e.toggleRefresh,i="trustarc-captcha-single-line",a=y.exports.useRef(),u=y.exports.useRef(),c=Mb(y.exports.useState(!!o),2),l=c[0],s=c[1],f=Mb(y.exports.useState(""),2),p=f[0],d=f[1],h=Mb(y.exports.useState(!1),2),m=h[0],v=h[1],b=Mb(y.exports.useState(),2),g=b[0],w=b[1],_=ZN.translate(XN.captchaLabel,"Please enter the captcha value below"),x=function(){var e=Dq(Aq.mark((function e(t){var o,i;return Aq.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.target.value,d(o),5!==o.length){e.next=8;break}return i={answer:g.answer,input:o},e.next=6,n(i);case 6:e.sent.correct?(v(!0),r(i)):k();case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=Dq(Aq.mark((function e(){var n;return Aq.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:n=e.sent,d(""),w(n),a.current&&(a.current.pause(),a.current.load()),u.current.focus();case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return m||l===o||(s(o),k()),y.exports.useEffect((function(){k()}),[]),ce.createElement(ce.Fragment,null,ce.createElement(Zb,{htmlFor:i,style:{display:"inline"}},_),g&&ce.createElement(ce.Fragment,null,m?ce.createElement("span",{id:"trustarc-captcha-success",style:{marginLeft:"5px"}},"✅"):ce.createElement("button",{id:"trustarc-captcha-refresh",type:"button",style:{border:"none",background:"none"},onClick:k},"🔄"),ce.createElement("div",{id:"trustarc-captcha-refresh-section",style:{display:"flex",alignItems:"center"}},ce.createElement("img",{id:"captcha-image",title:"captcha-image",alt:"Captcha",src:g.image}),ce.createElement("audio",{id:"trustarc-captcha-audio",controls:!0,ref:a,style:{flexGrow:1,verticalAlign:"middle",marginTop:"5px",marginBottom:"5px"}},ce.createElement("source",{id:"trustarc-captcha-audio-source",title:"trustarc-captcha-audio-source",src:g.audio}),"Your browser does not support the audio element."))),ce.createElement(D_,{inputRef:u,id:i,readOnly:5===p.length,value:p,onChange:x}))}var Nq=function(e,t){if(e){var n=document.getElementById("ta-upm-form-".concat(e,"-").concat(null!=t?t:""));if(n)ud.unmountComponentAtNode(n.parentElement)&&console.log("[upm] The modal is unmounteds.s")}},Lq=function(e){var t=e.resend,n=Mb(y.exports.useState(!1),2),r=n[0],o=n[1],i=Mb(y.exports.useState(!1),2),a=i[0],u=i[1];return ce.createElement(ce.Fragment,null,ce.createElement(Mw,{onResendClick:function(){o(!0),t().then((function(){o(!1),u(!0)})).catch((function(e){console.error(e),o(!1)}))},isResendDisabled:r,isResendDone:a}))},Fq=Object.getOwnPropertySymbols,Uq=Object.prototype.hasOwnProperty,Bq=Object.prototype.propertyIsEnumerable;function Vq(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var zq=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=Vq(e),i=1;i1,i=0;i0&&e.children.forEach((function(e){-1!==r.indexOf(e.key.toLowerCase())&&e.selected&&o.push(e)}))})),o.map(mL).map(iL);case yb.Select:var i=(Array.isArray(n)?n:[n]).map((function(e){return e.toLowerCase()})),a=[];return t.optionList.forEach((function(e){-1!==i.indexOf(e.id.toLowerCase())?a.push(e):e.options&&e.options.length>0&&e.options.forEach((function(e){-1!==i.indexOf(e.id.toLowerCase())&&a.push(e)}))})),a.map(iL);case yb.PhoneNumber:var u,c;return Hq(n,null!==(u=null==t||null===(c=t.phoneNumberValidation)||void 0===c?void 0:c.countryOptions)&&void 0!==u?u:[]);default:return n}},fromExtras:function(){switch(e){case yb.Country:var n=t;return Array.isArray(n.defaultValue)?n.defaultValue.filter((function(e){return!!e.selected})).map(mL).map(iL):n.defaultValue.selected?iL(mL(n.defaultValue)):null;case yb.Select:var r,o,i,a,u=t;return Array.isArray(null===(r=u.defaultValue)||void 0===r?void 0:r.options)?(null===(i=u.defaultValue)||void 0===i?void 0:i.options).map(iL):null!==(o=u.defaultValue)&&void 0!==o&&o.options?iL(null===(a=u.defaultValue)||void 0===a?void 0:a.options):null;case yb.PhoneNumber:var c,l,s,f,p=t;return Hq(null!==(c=null==p||null===(l=p.defaultValue)||void 0===l?void 0:l.key)&&void 0!==c?c:"",null!==(s=null==p||null===(f=p.phoneNumberValidation)||void 0===f?void 0:f.countryOptions)&&void 0!==s?s:[]);case yb.Checkbox:var d=t;return d.hasOwnProperty("defaultValue")&&"object"===jb(d.defaultValue)?d.defaultValue.key:!!d.defaultValue;default:return t.defaultValue.key}}}},Wq=function(e,t,n,r,o){var i={},a={};return Array.isArray(o)&&o.length>0&&o.forEach((function(e){zq(a,e)})),e.forEach((function(e){var n=e.id,r=e.type,o=e.extras,u=n in t&&void 0!==t[n]&&null!==t[n],c=Yq(r.id,o),l=c.fromValue,s=c.fromExtras;if(u)i[n]=l(t[n]);else if(a[n])i[n]=l(a[n]);else if(o&&o.defaultValue){var f=s();null!==f&&""!==f&&(i[n]=f)}})),i};function qq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $q(e){for(var t=1;t0&&Gq.includes(e.type.id)})).forEach((function(e){var t=e.children.every((function(e){return!0===o[e]})),n=e.children.some((function(e){return!0===o[e]})),r=e.children.every((function(e){return!1===o[e]})),a=Qq(e),l=i.getValues(e.id),s=u[e.id],f=e.children.some((function(e){return o[e]!==u[e]})),p=function(e,t){var n={};e.forEach((function(e){return n[e]=t})),c=$q($q({},c),n)};Kq.includes(a)?void 0===l||s===l||f?f&&l!==t&&(c[e.id]=t):p(e.children,!!l):a===bb.UNSUBSCRIBE_ALL&&(void 0===l||s===l||f?f&&s===l&&(n?c[e.id]=!1:r&&(c[e.id]=!0)):p(e.children,!l))})),i.reset($q($q({},o),c),{keepDirty:!0,keepTouched:!0}),lG.set(n,$q($q({},o),c))}},Zq=function(e){var t=e.formConfig,n=e.methods,r=e.defaultValues;if(t&&n){var o=t.content.formFields.filter((function(e){return!!e.children&&e.children.length>0&&Gq.includes(e.type.id)&&Qq(e)===bb.UNSUBSCRIBE_ALL})),i={};o.forEach((function(e){var t=e.children.every((function(e){return!1===r[e]})),n=void 0===r[e.id]||!1===r[e.id];t&&n?i[e.id]=!0:t||n||(i[e.id]=void 0)})),t.content.formFields.filter((function(e){return!!e.children&&e.children.length>0&&Gq.includes(e.type.id)&&Kq.includes(Qq(e))})).forEach((function(e){var t=e.children.every((function(e){return!0===r[e]})),n=void 0===r[e.id]||!1===r[e.id];t&&n?i[e.id]=!0:t||n||(i[e.id]=!1)})),n.reset($q($q({},r),i))}};function Jq(e,t){return function(n){return n.lift(new e$(e,t))}}var e$=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new t$(e,this.compare,this.keySelector))},e}(),t$=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return MW(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(e){return this.destination.error(e)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))},t}($W);function n$(e,t,n){var r;return r=e&&"object"===jb(e)?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,r=e.bufferSize,o=void 0===r?Number.POSITIVE_INFINITY:r,i=e.windowTime,a=void 0===i?Number.POSITIVE_INFINITY:i,u=e.refCount,c=e.scheduler,l=0,s=!1,f=!1;return function(e){var r;l++,!t||s?(s=!1,t=new wq(o,a,c),r=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){s=!0,t.error(e)},complete:function(){f=!0,n=void 0,t.complete()}}),f&&(n=void 0)):r=t.subscribe(this),this.add((function(){l--,r.unsubscribe(),r=void 0,n&&!f&&u&&0===l&&(n.unsubscribe(),n=void 0,t=void 0)}))}}(r))}}var r$={leading:!0,trailing:!1};function o$(e,t,n){return void 0===t&&(t=xq),void 0===n&&(n=r$),function(r){return r.lift(new a$(e,t,n.leading,n.trailing))}}var i$,a$=function(){function e(e,t,n,r){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=r}return e.prototype.call=function(e,t){return t.subscribe(new u$(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),u$=function(e){function t(t,n,r,o,i){var a=e.call(this,t)||this;return a.duration=n,a.scheduler=r,a.leading=o,a.trailing=i,a._hasTrailingValue=!1,a._trailingValue=null,a}return MW(t,e),t.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(c$,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))},t.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},t.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},t}($W);function c$(e){e.subscriber.clearThrottle()}!function(e){e.ACTIVE="ACTIVE",e.PENDING="PENDING",e.EXPIRED="EXPIRED"}(i$||(i$={}));var l$=Object.hasOwnProperty,s$=Object.setPrototypeOf,f$=Object.isFrozen,p$=Object.getPrototypeOf,d$=Object.getOwnPropertyDescriptor,h$=Object.freeze,m$=Object.seal,y$=Object.create,v$="undefined"!=typeof Reflect&&Reflect,b$=v$.apply,g$=v$.construct;b$||(b$=function(e,t,n){return e.apply(t,n)}),h$||(h$=function(e){return e}),m$||(m$=function(e){return e}),g$||(g$=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(/*! @license DOMPurify 2.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.0/LICENSE */function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?n-1:0),o=1;o/gm),$$=m$(/^data-[\-\w.\u00B7-\uFFFF]/),G$=m$(/^aria-[\-\w]+$/),K$=m$(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q$=m$(/^(?:\w+script|data):/i),X$=m$(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z$="function"==typeof Symbol&&"symbol"===jb(Symbol.iterator)?function(e){return jb(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":jb(e)};function J$(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:eG(),n=function(t){return e(t)};if(n.version="2.3.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,i=t.DocumentFragment,a=t.HTMLTemplateElement,u=t.Node,c=t.Element,l=t.NodeFilter,s=t.NamedNodeMap,f=void 0===s?t.NamedNodeMap||t.MozNamedAttrMap:s,p=t.Text,d=t.Comment,h=t.DOMParser,m=t.trustedTypes,y=c.prototype,v=I$(y,"cloneNode"),b=I$(y,"nextSibling"),g=I$(y,"childNodes"),w=I$(y,"parentNode");if("function"==typeof a){var _=o.createElement("template");_.content&&_.content.ownerDocument&&(o=_.content.ownerDocument)}var x=tG(m,r),k=x&&te?x.createHTML(""):"",O=o,S=O.implementation,E=O.createNodeIterator,T=O.createDocumentFragment,C=O.getElementsByTagName,P=r.importNode,D={};try{D=R$(o).documentMode?o.documentMode:{}}catch(e){}var j={};n.isSupported="function"==typeof w&&S&&void 0!==S.createHTMLDocument&&9!==D;var R=W$,I=q$,A=$$,M=G$,N=Q$,L=X$,F=K$,U=null,B=j$({},[].concat(J$(A$),J$(M$),J$(N$),J$(F$),J$(B$))),V=null,z=j$({},[].concat(J$(V$),J$(z$),J$(H$),J$(Y$))),H=null,Y=null,W=!0,q=!0,$=!1,G=!1,K=!1,Q=!1,X=!1,Z=!1,J=!1,ee=!0,te=!1,ne=!0,re=!0,oe=!1,ie={},ae=j$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ue=null,ce=j$({},["audio","video","img","source","image","track"]),le=null,se=j$({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",de="http://www.w3.org/1999/xhtml",he=de,me=!1,ye=null,ve=o.createElement("form"),be=function(e){ye&&ye===e||(e&&"object"===(void 0===e?"undefined":Z$(e))||(e={}),e=R$(e),U="ALLOWED_TAGS"in e?j$({},e.ALLOWED_TAGS):B,V="ALLOWED_ATTR"in e?j$({},e.ALLOWED_ATTR):z,le="ADD_URI_SAFE_ATTR"in e?j$(R$(se),e.ADD_URI_SAFE_ATTR):se,ue="ADD_DATA_URI_TAGS"in e?j$(R$(ce),e.ADD_DATA_URI_TAGS):ce,H="FORBID_TAGS"in e?j$({},e.FORBID_TAGS):{},Y="FORBID_ATTR"in e?j$({},e.FORBID_ATTR):{},ie="USE_PROFILES"in e&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,$=e.ALLOW_UNKNOWN_PROTOCOLS||!1,G=e.SAFE_FOR_TEMPLATES||!1,K=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,J=e.RETURN_DOM_FRAGMENT||!1,ee=!1!==e.RETURN_DOM_IMPORT,te=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,re=!1!==e.KEEP_CONTENT,oe=e.IN_PLACE||!1,F=e.ALLOWED_URI_REGEXP||F,he=e.NAMESPACE||de,G&&(q=!1),J&&(Z=!0),ie&&(U=j$({},[].concat(J$(B$))),V=[],!0===ie.html&&(j$(U,A$),j$(V,V$)),!0===ie.svg&&(j$(U,M$),j$(V,z$),j$(V,Y$)),!0===ie.svgFilters&&(j$(U,N$),j$(V,z$),j$(V,Y$)),!0===ie.mathMl&&(j$(U,F$),j$(V,H$),j$(V,Y$))),e.ADD_TAGS&&(U===B&&(U=R$(U)),j$(U,e.ADD_TAGS)),e.ADD_ATTR&&(V===z&&(V=R$(V)),j$(V,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&j$(le,e.ADD_URI_SAFE_ATTR),re&&(U["#text"]=!0),K&&j$(U,["html","head","body"]),U.table&&(j$(U,["tbody"]),delete H.tbody),h$&&h$(e),ye=e)},ge=j$({},["mi","mo","mn","ms","mtext"]),we=j$({},["foreignobject","desc","title","annotation-xml"]),_e=j$({},M$);j$(_e,N$),j$(_e,L$);var xe=j$({},F$);j$(xe,U$);var ke=function(e){var t=w(e);t&&t.tagName||(t={namespaceURI:de,tagName:"template"});var n=k$(e.tagName),r=k$(t.tagName);if(e.namespaceURI===pe)return t.namespaceURI===de?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===r||ge[r]):Boolean(_e[n]);if(e.namespaceURI===fe)return t.namespaceURI===de?"math"===n:t.namespaceURI===pe?"math"===n&&we[r]:Boolean(xe[n]);if(e.namespaceURI===de){if(t.namespaceURI===pe&&!we[r])return!1;if(t.namespaceURI===fe&&!ge[r])return!1;var o=j$({},["title","style","font","a","script"]);return!xe[n]&&(o[n]||!_e[n])}return!1},Oe=function(e){x$(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=k}catch(t){e.remove()}}},Se=function(e,t){try{x$(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){x$(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!V[e])if(Z||J)try{Oe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ee=function(e){var t=void 0,n=void 0;if(X)e=""+e;else{var r=O$(e,/^[\r\n\t ]+/);n=r&&r[0]}var i=x?x.createHTML(e):e;if(he===de)try{t=(new h).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){t=S.createDocument(he,"template",null);try{t.documentElement.innerHTML=me?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),he===de?C.call(t,K?"html":"body")[0]:K?t.documentElement:a},Te=function(e){return E.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Ce=function(e){return!(e instanceof p||e instanceof d)&&!("string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof f&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},Pe=function(e){return"object"===(void 0===u?"undefined":Z$(u))?e instanceof u:e&&"object"===(void 0===e?"undefined":Z$(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},De=function(e,t,r){j[e]&&w$(j[e],(function(e){e.call(n,t,r,ye)}))},je=function(e){var t=void 0;if(De("beforeSanitizeElements",e,null),Ce(e))return Oe(e),!0;if(O$(e.nodeName,/[\u0080-\uFFFF]/))return Oe(e),!0;var r=k$(e.nodeName);if(De("uponSanitizeElement",e,{tagName:r,allowedTags:U}),!Pe(e.firstElementChild)&&(!Pe(e.content)||!Pe(e.content.firstElementChild))&&C$(/<[/\w]/g,e.innerHTML)&&C$(/<[/\w]/g,e.textContent))return Oe(e),!0;if(!U[r]||H[r]){if(re&&!ae[r]){var o=w(e)||e.parentNode,i=g(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(v(i[a],!0),b(e))}return Oe(e),!0}return e instanceof c&&!ke(e)?(Oe(e),!0):"noscript"!==r&&"noembed"!==r||!C$(/<\/no(script|embed)/i,e.innerHTML)?(G&&3===e.nodeType&&(t=e.textContent,t=S$(t,R," "),t=S$(t,I," "),e.textContent!==t&&(x$(n.removed,{element:e.cloneNode()}),e.textContent=t)),De("afterSanitizeElements",e,null),!1):(Oe(e),!0)},Re=function(e,t,n){if(ne&&("id"===t||"name"===t)&&(n in o||n in ve))return!1;if(q&&!Y[t]&&C$(A,t));else if(W&&C$(M,t));else{if(!V[t]||Y[t])return!1;if(le[t]);else if(C$(F,S$(n,L,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E$(n,"data:")||!ue[e]){if($&&!C$(N,S$(n,L,"")));else if(n)return!1}else;}return!0},Ie=function(e){var t=void 0,r=void 0,o=void 0,i=void 0;De("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V};for(i=a.length;i--;){var c=t=a[i],l=c.name,s=c.namespaceURI;if(r=T$(t.value),o=k$(l),u.attrName=o,u.attrValue=r,u.keepAttr=!0,u.forceKeepAttr=void 0,De("uponSanitizeAttribute",e,u),r=u.attrValue,!u.forceKeepAttr&&(Se(l,e),u.keepAttr))if(C$(/\/>/i,r))Se(l,e);else{G&&(r=S$(r,R," "),r=S$(r,I," "));var f=e.nodeName.toLowerCase();if(Re(f,o,r))try{s?e.setAttributeNS(s,l,r):e.setAttribute(l,r),_$(n.removed)}catch(e){}}}De("afterSanitizeAttributes",e,null)}},Ae=function e(t){var n=void 0,r=Te(t);for(De("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)De("uponSanitizeShadowNode",n,null),je(n)||(n.content instanceof i&&e(n.content),Ie(n));De("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,o){var a=void 0,c=void 0,l=void 0,s=void 0,f=void 0;if((me=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Pe(e)){if("function"!=typeof e.toString)throw P$("toString is not a function");if("string"!=typeof(e=e.toString()))throw P$("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Z$(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Pe(e))return t.toStaticHTML(e.outerHTML)}return e}if(Q||be(o),n.removed=[],"string"==typeof e&&(oe=!1),oe);else if(e instanceof u)1===(c=(a=Ee("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Z&&!G&&!K&&-1===e.indexOf("<"))return x&&te?x.createHTML(e):e;if(!(a=Ee(e)))return Z?null:k}a&&X&&Oe(a.firstChild);for(var p=Te(oe?e:a);l=p.nextNode();)3===l.nodeType&&l===s||je(l)||(l.content instanceof i&&Ae(l.content),Ie(l),s=l);if(s=null,oe)return e;if(Z){if(J)for(f=T.call(a.ownerDocument);a.firstChild;)f.appendChild(a.firstChild);else f=a;return ee&&(f=P.call(r,f,!0)),f}var d=K?a.outerHTML:a.innerHTML;return G&&(d=S$(d,R," "),d=S$(d,I," ")),x&&te?x.createHTML(d):d},n.setConfig=function(e){be(e),Q=!0},n.clearConfig=function(){ye=null,Q=!1},n.isValidAttribute=function(e,t,n){ye||be({});var r=k$(e),o=k$(t);return Re(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(j[e]=j[e]||[],x$(j[e],t))},n.removeHook=function(e){j[e]&&_$(j[e])},n.removeHooks=function(e){j[e]&&(j[e]=[])},n.removeAllHooks=function(){j={}},n}();function oG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iG(e){for(var t=1;t0&&(h.content.formFields=h.content.formFields.filter((function(e){return!pe(e)})),(B=h.content.formFields).unshift.apply(B,RL(de)));var he=function(){K(!1)},me=function(){var e=fe.getValues(),t=AL.exports.values(e).filter((function(e){return"object"===jb(e)})),n=null;if(A&&AL.exports.values(A).length)for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof e?e:"number"==typeof e?String(e):"boolean"==typeof e?e?"true":"false":Array.isArray(e)?e.filter((function(e){return"string"==typeof e})).join():t},NG=function(){return Array.isArray(navigator.languages)&&navigator.languages[0]?navigator.languages[0]:navigator.language?navigator.language:navigator.userLanguage?navigator.userLanguage:navigator.browserLanguage?navigator.browserLanguage:"en-US"},LG=function(e,t){if(e.__test__)return n=e.__test__,"http://localhost:1234/jsons/".concat(n,".json");var n,r=e.consentFormVersion?"/versions/".concat(e.consentFormVersion):"",o="?brandId=".concat(e.brandId);return e.token?"".concat("https://form-renderer.trustarc.com","/xapi/v1/consent-form-renderer/token/").concat(e.token):e.confirm?"".concat("https://form-renderer.trustarc.com","/xapi/v1/consent-form-renderer/double-opt-in/").concat(e.confirm,"?cacheBust=").concat((new Date).getTime()):(e.previewToken&&(o+="&previewToken=".concat(e.previewToken)),e.latestPreference&&(o+="&latestPreference=true"),e.locale?o+="&locale=".concat(e.locale):o+="&locale=".concat(NG()),e.preview&&e.landingPageId&&(o+="&landingPageId=".concat(e.landingPageId)),e.expiredConsentPreference&&(o+="&expiredConsentPreference=".concat(e.expiredConsentPreference)),(e.expiredConsentPreference||e.brandPreference)&&e.brandPreference&&(o+="&brandPreference=true"),(e.expiredConsentPreference||e.latestPreference)&&(Object.keys(t).forEach((function(e){o+="&".concat(e,"=").concat(MG(t[e]))})),o+="&cacheBust=".concat((new Date).getTime())),"".concat("https://form-renderer.trustarc.com","/xapi/v1/consent-form-renderer/").concat(e.consentFormId).concat(r).concat(o))},FG={exports:{}};!function(e,t){(function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,u=32,c=64,l=128,p=256,d=1/0,h=9007199254740991,m=NaN,y=4294967295,v=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",u],["partialRight",c],["rearg",p]],b="[object Arguments]",g="[object Array]",w="[object Boolean]",_="[object Date]",x="[object Error]",k="[object Function]",O="[object GeneratorFunction]",S="[object Map]",E="[object Number]",T="[object Object]",C="[object Promise]",P="[object RegExp]",D="[object Set]",j="[object String]",R="[object Symbol]",I="[object WeakMap]",A="[object ArrayBuffer]",M="[object DataView]",N="[object Float32Array]",L="[object Float64Array]",F="[object Int8Array]",U="[object Int16Array]",B="[object Int32Array]",V="[object Uint8Array]",z="[object Uint8ClampedArray]",H="[object Uint16Array]",Y="[object Uint32Array]",W=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Q=RegExp(G.source),X=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,ue=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ye=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,Oe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",De="['’]",je="[\\ud800-\\udfff]",Re="["+Pe+"]",Ie="["+Oe+"]",Ae="\\d+",Me="[\\u2700-\\u27bf]",Ne="["+Ee+"]",Le="[^\\ud800-\\udfff"+Pe+Ae+Se+Ee+Te+"]",Fe="\\ud83c[\\udffb-\\udfff]",Ue="[^\\ud800-\\udfff]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Te+"]",He="(?:"+Ne+"|"+Le+")",Ye="(?:"+ze+"|"+Le+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Ie+"|"+Fe+")"+"?",Ge="[\\ufe0e\\ufe0f]?",Ke=Ge+$e+("(?:\\u200d(?:"+[Ue,Be,Ve].join("|")+")"+Ge+$e+")*"),Qe="(?:"+[Me,Be,Ve].join("|")+")"+Ke,Xe="(?:"+[Ue+Ie+"?",Ie,Be,Ve,je].join("|")+")",Ze=RegExp(De,"g"),Je=RegExp(Ie,"g"),et=RegExp(Fe+"(?="+Fe+")|"+Xe+Ke,"g"),tt=RegExp([ze+"?"+Ne+"+"+We+"(?="+[Re,ze,"$"].join("|")+")",Ye+"+"+qe+"(?="+[Re,ze+He,"$"].join("|")+")",ze+"?"+He+"+"+We,ze+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,Qe].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+Oe+Ce+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,at={};at[N]=at[L]=at[F]=at[U]=at[B]=at[V]=at[z]=at[H]=at[Y]=!0,at[b]=at[g]=at[A]=at[w]=at[M]=at[_]=at[x]=at[k]=at[S]=at[E]=at[T]=at[P]=at[D]=at[j]=at[I]=!1;var ut={};ut[b]=ut[g]=ut[A]=ut[M]=ut[w]=ut[_]=ut[N]=ut[L]=ut[F]=ut[U]=ut[B]=ut[S]=ut[E]=ut[T]=ut[P]=ut[D]=ut[j]=ut[R]=ut[V]=ut[z]=ut[H]=ut[Y]=!0,ut[x]=ut[k]=ut[I]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,st=parseInt,ft="object"==s(f)&&f&&f.Object===Object&&f,pt="object"==("undefined"==typeof self?"undefined":s(self))&&self&&self.Object===Object&&self,dt=ft||pt||Function("return this")(),ht=t&&!t.nodeType&&t,mt=ht&&e&&!e.nodeType&&e,yt=mt&&mt.exports===ht,vt=yt&&ft.process,bt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),gt=bt&&bt.isArrayBuffer,wt=bt&&bt.isDate,_t=bt&&bt.isMap,xt=bt&&bt.isRegExp,kt=bt&&bt.isSet,Ot=bt&&bt.isTypedArray;function St(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Rt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function tn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=qt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),on=qt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+ct[e]}function un(e){return nt.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,o=0,a=[];++n",""":'"',"'":"'"});var vn=function e(t){var f=(t=null==t?dt:vn.defaults(dt.Object(),t,vn.pick(dt,ot))).Array,ue=t.Date,Oe=t.Error,Se=t.Function,Ee=t.Math,Te=t.Object,Ce=t.RegExp,Pe=t.String,De=t.TypeError,je=f.prototype,Re=Se.prototype,Ie=Te.prototype,Ae=t["__core-js_shared__"],Me=Re.toString,Ne=Ie.hasOwnProperty,Le=0,Fe=function(){var e=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ue=Ie.toString,Be=Me.call(Te),Ve=dt._,ze=Ce("^"+Me.call(Ne).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=yt?t.Buffer:n,Ye=t.Symbol,We=t.Uint8Array,qe=He?He.allocUnsafe:n,$e=ln(Te.getPrototypeOf,Te),Ge=Te.create,Ke=Ie.propertyIsEnumerable,Qe=je.splice,Xe=Ye?Ye.isConcatSpreadable:n,et=Ye?Ye.iterator:n,nt=Ye?Ye.toStringTag:n,ct=function(){try{var e=hi(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),ft=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,pt=ue&&ue.now!==dt.Date.now&&ue.now,ht=t.setTimeout!==dt.setTimeout&&t.setTimeout,mt=Ee.ceil,vt=Ee.floor,bt=Te.getOwnPropertySymbols,Ft=He?He.isBuffer:n,qt=t.isFinite,bn=je.join,gn=ln(Te.keys,Te),wn=Ee.max,_n=Ee.min,xn=ue.now,kn=t.parseInt,On=Ee.random,Sn=je.reverse,En=hi(t,"DataView"),Tn=hi(t,"Map"),Cn=hi(t,"Promise"),Pn=hi(t,"Set"),Dn=hi(t,"WeakMap"),jn=hi(Te,"create"),Rn=Dn&&new Dn,In={},An=Vi(En),Mn=Vi(Tn),Nn=Vi(Cn),Ln=Vi(Pn),Fn=Vi(Dn),Un=Ye?Ye.prototype:n,Bn=Un?Un.valueOf:n,Vn=Un?Un.toString:n;function zn(e){if(ou(e)&&!$a(e)&&!(e instanceof qn)){if(e instanceof Wn)return e;if(Ne.call(e,"__wrapped__"))return zi(e)}return new Wn(e)}var Hn=function(){function e(){}return function(t){if(!ru(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Yn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function sr(e,t,r,o,i,a){var u,c=1&t,l=2&t,s=4&t;if(r&&(u=i?r(e,o,i,a):r(e)),u!==n)return u;if(!ru(e))return e;var f=$a(e);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Ro(e,u)}else{var p=vi(e),d=p==k||p==O;if(Xa(e))return Eo(e,c);if(p==T||p==b||d&&!i){if(u=l||d?{}:gi(e),!c)return l?function(e,t){return Io(e,yi(e),t)}(e,function(e,t){return e&&Io(t,Mu(t),e)}(u,e)):function(e,t){return Io(e,mi(e),t)}(e,ar(u,e))}else{if(!ut[p])return i?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case A:return To(e);case w:case _:return new r(+e);case M:return function(e,t){var n=t?To(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case L:case F:case U:case B:case V:case z:case H:case Y:return Co(e,n);case S:return new r;case E:case j:return new r(e);case P:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case D:return new r;case R:return o=e,Bn?Te(Bn.call(o)):{}}var o}(e,p,c)}}a||(a=new Xn);var h=a.get(e);if(h)return h;a.set(e,u),lu(e)?e.forEach((function(n){u.add(sr(n,t,r,n,e,a))})):iu(e)&&e.forEach((function(n,o){u.set(o,sr(n,t,r,o,e,a))}));var m=f?n:(s?l?ui:ai:l?Mu:Au)(e);return Tt(m||e,(function(n,o){m&&(n=e[o=n]),rr(u,o,sr(n,t,r,o,e,a))})),u}function fr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Te(e);o--;){var i=r[o],a=t[i],u=e[i];if(u===n&&!(i in e)||!a(u))return!1}return!0}function pr(e,t,o){if("function"!=typeof e)throw new De(r);return Ai((function(){e.apply(n,o)}),t)}function dr(e,t,n,r){var o=-1,i=jt,a=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=It(t,Xt(n))),r?(i=Rt,a=!1):t.length>=200&&(i=Jt,a=!1,t=new Qn(t));e:for(;++o-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new $n,map:new(Tn||Gn),string:new $n}},Kn.prototype.delete=function(e){var t=pi(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return pi(this,e).get(e)},Kn.prototype.has=function(e){return pi(this,e).has(e)},Kn.prototype.set=function(e,t){var n=pi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Qn.prototype.add=Qn.prototype.push=function(e){return this.__data__.set(e,o),this},Qn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Tn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var hr=No(xr),mr=No(kr,!0);function yr(e,t){var n=!0;return hr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function vr(e,t,r){for(var o=-1,i=e.length;++o0&&n(u)?t>1?gr(u,t-1,n,r,o):At(o,u):r||(o[o.length]=u)}return o}var wr=Lo(),_r=Lo(!0);function xr(e,t){return e&&wr(e,t,Au)}function kr(e,t){return e&&_r(e,t,Au)}function Or(e,t){return Dt(t,(function(t){return eu(e[t])}))}function Sr(e,t){for(var r=0,o=(t=xo(t,e)).length;null!=e&&rt}function Pr(e,t){return null!=e&&Ne.call(e,t)}function Dr(e,t){return null!=e&&t in Te(e)}function jr(e,t,r){for(var o=r?Rt:jt,i=e[0].length,a=e.length,u=a,c=f(a),l=1/0,s=[];u--;){var p=e[u];u&&t&&(p=It(p,Xt(t))),l=_n(p.length,l),c[u]=!r&&(t||i>=120&&p.length>=120)?new Qn(u&&p):n}p=e[0];var d=-1,h=c[0];e:for(;++d=u?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function $r(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)u!==e&&Qe.call(u,c,1),Qe.call(e,c,1);return e}function Kr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;_i(o)?Qe.call(e,o,1):ho(e,o)}}return e}function Qr(e,t){return e+vt(On()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=vt(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Mi(Pi(e,t,ac),e+"")}function Jr(e){return Jn(Hu(e))}function eo(e,t){var n=Hu(e);return Fi(n,lr(t,0,n.length))}function to(e,t,r,o){if(!ru(e))return e;for(var i=-1,a=(t=xo(t,e)).length,u=a-1,c=e;null!=c&&++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=f(o);++r>>1,a=e[i];null!==a&&!fu(a)&&(n?a<=t:a=200){var l=t?null:Zo(e);if(l)return fn(l);a=!1,o=Jt,c=new Qn}else c=t?[]:u;e:for(;++r=o?e:io(e,t,r)}var So=ft||function(e){return dt.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function To(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Co(e,t){var n=t?To(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Po(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=fu(e),u=t!==n,c=null===t,l=t==t,s=fu(t);if(!c&&!s&&!a&&e>t||a&&u&&l&&!c&&!s||o&&u&&l||!r&&l||!i)return 1;if(!o&&!a&&!s&&e1?r[i-1]:n,u=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,u&&xi(r[0],r[1],u)&&(a=i<3?n:a,i=1),t=Te(t);++o-1?i[a?t[u]:u]:n}}function zo(e){return ii((function(t){var o=t.length,i=o,a=Wn.prototype.thru;for(e&&t.reverse();i--;){var u=t[i];if("function"!=typeof u)throw new De(r);if(a&&!c&&"wrapper"==li(u))var c=new Wn([],!0)}for(i=c?i:o;++i1&&g.reverse(),d&&sc))return!1;var s=a.get(e),f=a.get(t);if(s&&f)return s==t&&f==e;var p=-1,d=!0,h=2&r?new Qn:n;for(a.set(e,t),a.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Tt(v,(function(n){var r="_."+n[0];t&n[1]&&!jt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(se):[]}(r),n)))}function Li(e){var t=0,r=0;return function(){var o=xn(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Fi(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ca(e,r)}));function ma(e){var t=zn(e);return t.__chain__=!0,t}function ya(e,t){return t(e)}var va=ii((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return cr(t,e)};return!(t>1||this.__actions__.length)&&o instanceof qn&&_i(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:ya,args:[i],thisArg:n}),new Wn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var ba=Ao((function(e,t,n){Ne.call(e,n)?++e[n]:ur(e,n,1)}));var ga=Vo(qi),wa=Vo($i);function _a(e,t){return($a(e)?Tt:hr)(e,fi(t,3))}function xa(e,t){return($a(e)?Ct:mr)(e,fi(t,3))}var ka=Ao((function(e,t,n){Ne.call(e,n)?e[n].push(t):ur(e,n,[t])}));var Oa=Zr((function(e,t,n){var r=-1,o="function"==typeof t,i=Ka(e)?f(e.length):[];return hr(e,(function(e){i[++r]=o?St(t,e,n):Rr(e,t,n)})),i})),Sa=Ao((function(e,t,n){ur(e,n,t)}));function Ea(e,t){return($a(e)?It:Vr)(e,fi(t,3))}var Ta=Ao((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ca=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xi(e,t[0],t[1])?t=[]:n>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),qr(e,gr(t,1),[])})),Pa=pt||function(){return dt.Date.now()};function Da(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,ei(e,l,n,n,n,n,t)}function ja(e,t){var o;if("function"!=typeof t)throw new De(r);return e=vu(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Ra=Zr((function(e,t,n){var r=1;if(n.length){var o=sn(n,si(Ra));r|=u}return ei(e,r,t,n,o)})),Ia=Zr((function(e,t,n){var r=3;if(n.length){var o=sn(n,si(Ia));r|=u}return ei(t,r,e,n,o)}));function Aa(e,t,o){var i,a,u,c,l,s,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new De(r);function m(t){var r=i,o=a;return i=a=n,f=t,c=e.apply(o,r)}function y(e){return f=e,l=Ai(b,t),p?m(e):c}function v(e){var r=e-s;return s===n||r>=t||r<0||d&&e-f>=u}function b(){var e=Pa();if(v(e))return g(e);l=Ai(b,function(e){var n=t-(e-s);return d?_n(n,u-(e-f)):n}(e))}function g(e){return l=n,h&&i?m(e):(i=a=n,c)}function w(){var e=Pa(),r=v(e);if(i=arguments,a=this,s=e,r){if(l===n)return y(s);if(d)return So(l),l=Ai(b,t),m(s)}return l===n&&(l=Ai(b,t)),c}return t=gu(t)||0,ru(o)&&(p=!!o.leading,u=(d="maxWait"in o)?wn(gu(o.maxWait)||0,t):u,h="trailing"in o?!!o.trailing:h),w.cancel=function(){l!==n&&So(l),f=0,i=s=a=l=n},w.flush=function(){return l===n?c:g(Pa())},w}var Ma=Zr((function(e,t){return pr(e,1,t)})),Na=Zr((function(e,t,n){return pr(e,gu(t)||0,n)}));function La(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new De(r);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(La.Cache||Kn),n}function Fa(e){if("function"!=typeof e)throw new De(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}La.Cache=Kn;var Ua=ko((function(e,t){var n=(t=1==t.length&&$a(t[0])?It(t[0],Xt(fi())):It(gr(t,1),Xt(fi()))).length;return Zr((function(r){for(var o=-1,i=_n(r.length,n);++o=t})),qa=Ir(function(){return arguments}())?Ir:function(e){return ou(e)&&Ne.call(e,"callee")&&!Ke.call(e,"callee")},$a=f.isArray,Ga=gt?Xt(gt):function(e){return ou(e)&&Tr(e)==A};function Ka(e){return null!=e&&nu(e.length)&&!eu(e)}function Qa(e){return ou(e)&&Ka(e)}var Xa=Ft||gc,Za=wt?Xt(wt):function(e){return ou(e)&&Tr(e)==_};function Ja(e){if(!ou(e))return!1;var t=Tr(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!uu(e)}function eu(e){if(!ru(e))return!1;var t=Tr(e);return t==k||t==O||"[object AsyncFunction]"==t||"[object Proxy]"==t}function tu(e){return"number"==typeof e&&e==vu(e)}function nu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ru(e){var t=s(e);return null!=e&&("object"==t||"function"==t)}function ou(e){return null!=e&&"object"==s(e)}var iu=_t?Xt(_t):function(e){return ou(e)&&vi(e)==S};function au(e){return"number"==typeof e||ou(e)&&Tr(e)==E}function uu(e){if(!ou(e)||Tr(e)!=T)return!1;var t=$e(e);if(null===t)return!0;var n=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==Be}var cu=xt?Xt(xt):function(e){return ou(e)&&Tr(e)==P};var lu=kt?Xt(kt):function(e){return ou(e)&&vi(e)==D};function su(e){return"string"==typeof e||!$a(e)&&ou(e)&&Tr(e)==j}function fu(e){return"symbol"==s(e)||ou(e)&&Tr(e)==R}var pu=Ot?Xt(Ot):function(e){return ou(e)&&nu(e.length)&&!!at[Tr(e)]};var du=Ko(Br),hu=Ko((function(e,t){return e<=t}));function mu(e){if(!e)return[];if(Ka(e))return su(e)?hn(e):Ro(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=vi(e);return(t==S?cn:t==D?fn:Hu)(e)}function yu(e){return e?(e=gu(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vu(e){var t=yu(e),n=t%1;return t==t?n?t-n:t:0}function bu(e){return e?lr(vu(e),0,y):0}function gu(e){if("number"==typeof e)return e;if(fu(e))return m;if(ru(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ru(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ve.test(e);return n||ge.test(e)?st(e.slice(2),n?2:8):ye.test(e)?m:+e}function wu(e){return Io(e,Mu(e))}function _u(e){return null==e?"":fo(e)}var xu=Mo((function(e,t){if(Ei(t)||Ka(t))Io(t,Au(t),e);else for(var n in t)Ne.call(t,n)&&rr(e,n,t[n])})),ku=Mo((function(e,t){Io(t,Mu(t),e)})),Ou=Mo((function(e,t,n,r){Io(t,Mu(t),e,r)})),Su=Mo((function(e,t,n,r){Io(t,Au(t),e,r)})),Eu=ii(cr);var Tu=Zr((function(e,t){e=Te(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&xi(t[0],t[1],i)&&(o=1);++r1),t})),Io(e,ui(e),n),r&&(n=sr(n,7,ri));for(var o=t.length;o--;)ho(n,t[o]);return n}));var Uu=ii((function(e,t){return null==e?{}:function(e,t){return $r(e,t,(function(t,n){return Du(e,n)}))}(e,t)}));function Bu(e,t){if(null==e)return{};var n=It(ui(e),(function(e){return[e]}));return t=fi(t),$r(e,n,(function(e,n){return t(e,n[0])}))}var Vu=Jo(Au),zu=Jo(Mu);function Hu(e){return null==e?[]:Zt(e,Au(e))}var Yu=Uo((function(e,t,n){return t=t.toLowerCase(),e+(n?Wu(t):t)}));function Wu(e){return Ju(_u(e).toLowerCase())}function qu(e){return(e=_u(e))&&e.replace(_e,rn).replace(Je,"")}var $u=Uo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gu=Uo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ku=Fo("toLowerCase");var Qu=Uo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xu=Uo((function(e,t,n){return e+(n?" ":"")+Ju(t)}));var Zu=Uo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ju=Fo("toUpperCase");function ec(e,t,r){return e=_u(e),(t=r?n:t)===n?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}var tc=Zr((function(e,t){try{return St(e,n,t)}catch(e){return Ja(e)?e:new Oe(e)}})),nc=ii((function(e,t){return Tt(t,(function(t){t=Bi(t),ur(e,t,Ra(e[t],e))})),e}));function rc(e){return function(){return e}}var oc=zo(),ic=zo(!0);function ac(e){return e}function uc(e){return Lr("function"==typeof e?e:sr(e,1))}var cc=Zr((function(e,t){return function(n){return Rr(n,e,t)}})),lc=Zr((function(e,t){return function(n){return Rr(e,n,t)}}));function sc(e,t,n){var r=Au(t),o=Or(t,r);null!=n||ru(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Or(t,Au(t)));var i=!(ru(n)&&"chain"in n&&!n.chain),a=eu(e);return Tt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Ro(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,At([this.value()],arguments))})})),e}function fc(){}var pc=qo(It),dc=qo(Pt),hc=qo(Lt);function mc(e){return ki(e)?Wt(Bi(e)):function(e){return function(t){return Sr(t,e)}}(e)}var yc=Go(),vc=Go(!0);function bc(){return[]}function gc(){return!1}var wc=Wo((function(e,t){return e+t}),0),_c=Xo("ceil"),xc=Wo((function(e,t){return e/t}),1),kc=Xo("floor");var Oc,Sc=Wo((function(e,t){return e*t}),1),Ec=Xo("round"),Tc=Wo((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new De(r);return e=vu(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Da,zn.assign=xu,zn.assignIn=ku,zn.assignInWith=Ou,zn.assignWith=Su,zn.at=Eu,zn.before=ja,zn.bind=Ra,zn.bindAll=nc,zn.bindKey=Ia,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $a(e)?e:[e]},zn.chain=ma,zn.chunk=function(e,t,r){t=(r?xi(e,t,r):t===n)?1:wn(vu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,u=f(mt(o/t));ii?0:i+r),(o=o===n||o>i?i:vu(o))<0&&(o+=i),o=r>o?0:bu(o);r>>0)?(e=_u(e))&&("string"==typeof t||null!=t&&!cu(t))&&!(t=fo(t))&&un(e)?Oo(hn(e),0,r):e.split(t,r):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new De(r);return t=null==t?0:wn(vu(t),0),Zr((function(n){var r=n[t],o=Oo(n,0,t);return r&&At(o,r),St(e,this,o)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?io(e,1,t):[]},zn.take=function(e,t,r){return e&&e.length?io(e,0,(t=r||t===n?1:vu(t))<0?0:t):[]},zn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=o-(t=r||t===n?1:vu(t)))<0?0:t,o):[]},zn.takeRightWhile=function(e,t){return e&&e.length?yo(e,fi(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?yo(e,fi(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new De(r);return ru(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Aa(e,t,{leading:o,maxWait:t,trailing:i})},zn.thru=ya,zn.toArray=mu,zn.toPairs=Vu,zn.toPairsIn=zu,zn.toPath=function(e){return $a(e)?It(e,Bi):fu(e)?[e]:Ro(Ui(_u(e)))},zn.toPlainObject=wu,zn.transform=function(e,t,n){var r=$a(e),o=r||Xa(e)||pu(e);if(t=fi(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ru(e)&&eu(i)?Hn($e(e)):{}}return(o?Tt:xr)(e,(function(e,r,o){return t(n,e,r,o)})),n},zn.unary=function(e){return Da(e,1)},zn.union=oa,zn.unionBy=ia,zn.unionWith=aa,zn.uniq=function(e){return e&&e.length?po(e):[]},zn.uniqBy=function(e,t){return e&&e.length?po(e,fi(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?po(e,n,t):[]},zn.unset=function(e,t){return null==e||ho(e,t)},zn.unzip=ua,zn.unzipWith=ca,zn.update=function(e,t,n){return null==e?e:mo(e,t,_o(n))},zn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:mo(e,t,_o(r),o)},zn.values=Hu,zn.valuesIn=function(e){return null==e?[]:Zt(e,Mu(e))},zn.without=la,zn.words=ec,zn.wrap=function(e,t){return Ba(_o(t),e)},zn.xor=sa,zn.xorBy=fa,zn.xorWith=pa,zn.zip=da,zn.zipObject=function(e,t){return go(e||[],t||[],rr)},zn.zipObjectDeep=function(e,t){return go(e||[],t||[],to)},zn.zipWith=ha,zn.entries=Vu,zn.entriesIn=zu,zn.extend=ku,zn.extendWith=Ou,sc(zn,zn),zn.add=wc,zn.attempt=tc,zn.camelCase=Yu,zn.capitalize=Wu,zn.ceil=_c,zn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=gu(r))==r?r:0),t!==n&&(t=(t=gu(t))==t?t:0),lr(gu(e),t,r)},zn.clone=function(e){return sr(e,4)},zn.cloneDeep=function(e){return sr(e,5)},zn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:n)},zn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:n)},zn.conformsTo=function(e,t){return null==t||fr(e,t,Au(t))},zn.deburr=qu,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=xc,zn.endsWith=function(e,t,r){e=_u(e),t=fo(t);var o=e.length,i=r=r===n?o:lr(vu(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},zn.eq=Ha,zn.escape=function(e){return(e=_u(e))&&X.test(e)?e.replace(K,on):e},zn.escapeRegExp=function(e){return(e=_u(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},zn.every=function(e,t,r){var o=$a(e)?Pt:yr;return r&&xi(e,t,r)&&(t=n),o(e,fi(t,3))},zn.find=ga,zn.findIndex=qi,zn.findKey=function(e,t){return Ut(e,fi(t,3),xr)},zn.findLast=wa,zn.findLastIndex=$i,zn.findLastKey=function(e,t){return Ut(e,fi(t,3),kr)},zn.floor=kc,zn.forEach=_a,zn.forEachRight=xa,zn.forIn=function(e,t){return null==e?e:wr(e,fi(t,3),Mu)},zn.forInRight=function(e,t){return null==e?e:_r(e,fi(t,3),Mu)},zn.forOwn=function(e,t){return e&&xr(e,fi(t,3))},zn.forOwnRight=function(e,t){return e&&kr(e,fi(t,3))},zn.get=Pu,zn.gt=Ya,zn.gte=Wa,zn.has=function(e,t){return null!=e&&bi(e,t,Pr)},zn.hasIn=Du,zn.head=Ki,zn.identity=ac,zn.includes=function(e,t,n,r){e=Ka(e)?e:Hu(e),n=n&&!r?vu(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),su(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Vt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vu(n);return o<0&&(o=wn(r+o,0)),Vt(e,t,o)},zn.inRange=function(e,t,r){return t=yu(t),r===n?(r=t,t=0):r=yu(r),function(e,t,n){return e>=_n(t,n)&&e=-9007199254740991&&e<=h},zn.isSet=lu,zn.isString=su,zn.isSymbol=fu,zn.isTypedArray=pu,zn.isUndefined=function(e){return e===n},zn.isWeakMap=function(e){return ou(e)&&vi(e)==I},zn.isWeakSet=function(e){return ou(e)&&"[object WeakSet]"==Tr(e)},zn.join=function(e,t){return null==e?"":bn.call(e,t)},zn.kebabCase=$u,zn.last=Ji,zn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=vu(r))<0?wn(o+i,0):_n(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Bt(e,Ht,i,!0)},zn.lowerCase=Gu,zn.lowerFirst=Ku,zn.lt=du,zn.lte=hu,zn.max=function(e){return e&&e.length?vr(e,ac,Cr):n},zn.maxBy=function(e,t){return e&&e.length?vr(e,fi(t,2),Cr):n},zn.mean=function(e){return Yt(e,ac)},zn.meanBy=function(e,t){return Yt(e,fi(t,2))},zn.min=function(e){return e&&e.length?vr(e,ac,Br):n},zn.minBy=function(e,t){return e&&e.length?vr(e,fi(t,2),Br):n},zn.stubArray=bc,zn.stubFalse=gc,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=Sc,zn.nth=function(e,t){return e&&e.length?Wr(e,vu(t)):n},zn.noConflict=function(){return dt._===this&&(dt._=Ve),this},zn.noop=fc,zn.now=Pa,zn.pad=function(e,t,n){e=_u(e);var r=(t=vu(t))?dn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return $o(vt(o),n)+e+$o(mt(o),n)},zn.padEnd=function(e,t,n){e=_u(e);var r=(t=vu(t))?dn(e):0;return t&&rt){var o=e;e=t,t=o}if(r||e%1||t%1){var i=On();return _n(e+i*(t-e+lt("1e-"+((i+"").length-1))),t)}return Qr(e,t)},zn.reduce=function(e,t,n){var r=$a(e)?Mt:$t,o=arguments.length<3;return r(e,fi(t,4),n,o,hr)},zn.reduceRight=function(e,t,n){var r=$a(e)?Nt:$t,o=arguments.length<3;return r(e,fi(t,4),n,o,mr)},zn.repeat=function(e,t,r){return t=(r?xi(e,t,r):t===n)?1:vu(t),Xr(_u(e),t)},zn.replace=function(){var e=arguments,t=_u(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,r){var o=-1,i=(t=xo(t,e)).length;for(i||(i=1,e=n);++oh)return[];var n=y,r=_n(e,y);t=fi(t),e-=y;for(var o=Kt(r,t);++n=a)return e;var c=r-dn(o);if(c<1)return o;var l=u?Oo(u,0,c).join(""):e.slice(0,c);if(i===n)return l+o;if(u&&(c+=l.length-c),cu(i)){if(e.slice(c).search(i)){var s,f=l;for(i.global||(i=Ce(i.source,_u(me.exec(i))+"g")),i.lastIndex=0;s=i.exec(f);)var p=s.index;l=l.slice(0,p===n?c:p)}}else if(e.indexOf(fo(i),c)!=c){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+o},zn.unescape=function(e){return(e=_u(e))&&Q.test(e)?e.replace(G,yn):e},zn.uniqueId=function(e){var t=++Le;return _u(e)+t},zn.upperCase=Zu,zn.upperFirst=Ju,zn.each=_a,zn.eachRight=xa,zn.first=Ki,sc(zn,(Oc={},xr(zn,(function(e,t){Ne.call(zn.prototype,t)||(Oc[t]=e)})),Oc),{chain:!1}),zn.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Tt(["drop","take"],(function(e,t){qn.prototype[e]=function(r){r=r===n?1:wn(vu(r),0);var o=this.__filtered__&&!t?new qn(this):this.clone();return o.__filtered__?o.__takeCount__=_n(r,o.__takeCount__):o.__views__.push({size:_n(r,y),type:e+(o.__dir__<0?"Right":"")}),o},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:fi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Tt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(ac)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new qn(this):this.map((function(n){return Rr(n,e,t)}))})),qn.prototype.reject=function(e){return this.filter(Fa(fi(e)))},qn.prototype.slice=function(e,t){e=vu(e);var r=this;return r.__filtered__&&(e>0||t<0)?new qn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=vu(t))<0?r.dropRight(-t):r.take(t-e)),r)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(y)},xr(qn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=zn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,u=o?[1]:arguments,c=t instanceof qn,l=u[0],s=c||$a(t),f=function(e){var t=i.apply(zn,At([e],u));return o&&p?t[0]:t};s&&r&&"function"==typeof l&&1!=l.length&&(c=s=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,m=c&&!d;if(!a&&s){t=m?t:new qn(this);var y=e.apply(t,u);return y.__actions__.push({func:ya,args:[f],thisArg:n}),new Wn(y,p)}return h&&m?e.apply(this,u):(y=this.thru(f),h?o?y.value()[0]:y.value():y)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply($a(o)?o:[],e)}return this[n]((function(n){return t.apply($a(n)?n:[],e)}))}})),xr(qn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Ne.call(In,r)||(In[r]=[]),In[r].push({name:t,func:n})}})),In[Ho(n,2).name]=[{name:"wrapper",func:n}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Ro(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ro(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ro(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=$a(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,r=this;r instanceof Yn;){var o=zi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:ya,args:[ra],thisArg:n}),new Wn(t,this.__chain__)}return this.thru(ra)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,et&&(zn.prototype[et]=function(){return this}),zn}();mt?((mt.exports=vn)._=vn,ht._=vn):dt._=vn}).call(f)}(FG,FG.exports);var UG,BG=function(e,t,n,r){if(n){var o=[];return Object.keys(t).forEach((function(e){var n=t[e];o.push(u({},e,Array.isArray(n)?n:[n]))})),o}var i=[],a=[];return e.forEach((function(e){var n=e.id,o=e.type,c=e.ruleIds,l=t[n];if(!a.includes(n))switch(o.id){case yb.SingleLine:case yb.Email:case yb.ParagraphText:var s=MG(l);i.push(u({},n,[s]));break;case yb.PhoneNumber:if(l){var f=l;i.push(u({},n,[Db(f)]))}else i.push(u({},n,[""]));break;case yb.Checkbox:case yb.ToggleSwitch:var p=Boolean(l).toString();FG.exports.isEmpty(c)||c.forEach((function(e){var t=r.find((function(t){return t.id===e}));t.hasOwnProperty("formFieldIds")&&!FG.exports.isEqual(t.condition,[p])&&a.push.apply(a,ey(t.formFieldIds))})),i.push(u({},n,[p]));break;case yb.Select:case yb.Country:var d=[];Array.isArray(l)&&l.length>0?l.filter((function(e){return!(null==e||!e.value)})).forEach((function(e){var t=e.value;d.push(t)})):l&&l.value&&d.push(l.value),FG.exports.isEmpty(c)||c.forEach((function(e){var t=r.find((function(t){return t.id===e}));t.hasOwnProperty("formFieldIds")&&!FG.exports.isEqual(t.condition,d)&&a.push.apply(a,ey(t.formFieldIds))})),i.push(u({},n,d));break;case yb.GroupCheckboxes:case yb.GroupToggleSwitch:var h=Boolean(l).toString();i.push(u({},n,[h]));break;case yb.FileAttachment:var m=l;i.push(u({},n,[m.name]))}})),i},VG=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r=0&&(t=Object.values(e)),e&&Array.isArray(e)&&(t=e),t},KG=function(e){var t=VG(e);return{autoSubmit:t.autoSubmit,brandId:t.brandId,brandPreference:t.brandPreference,channelEmail:t.channelEmail,consentFormId:t.consentFormId,expiryMinutes:t.expiryMinutes,formFieldIdValues:t.formFieldIdValues,latestPreference:t.latestPreference,locale:t.locale,hideFooterButtons:t.hideFooterButtons,hideSubmitButton:t.hideSubmitButton,expiredConsentPreference:t.expiredConsentPreference}},QG=function(e){var t,n,r=VG(e),o={brandLogoBase64ImageUrl:null!==(t=r.brandLogoBase64ImageUrl)&&void 0!==t?t:"",content:$G(r.content),localeTranslations:zG(r.localeTranslations),landingPages:VG(r.landingPages),tokenValue:KG(r.tokenValue),urlCondition:r.urlCondition,emailRecipientFieldId:r.emailRecipientFieldId,doubleOptInJurisdiction:r.doubleOptInJurisdiction,doubleOptInTokenValue:r.doubleOptInTokenValue,showConsentForm:r.showConsentForm,consentRule:r.consentRule,browserCookieNeeded:null!==(n=r.browserCookieNeeded)&&void 0!==n&&n};return Array.isArray(r.latestPreferences)&&r.latestPreferences.length>0&&(o.latestPreferences=function(e){var t=[];return e.forEach((function(e){var n=VG(e);if(1===Object.keys(n).length){var r=Object.keys(n)[0],o=n[r];if(Array.isArray(o)&&o.length>0){var i=o.filter((function(e){return"string"==typeof e}));i.length>0&&t.push(u({},r,i))}}})),t}(r.latestPreferences)),o},XG=function(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="json",r.onerror=function(){n(new Error("The request could not be made."))},r.onload=function(){r.status>=400?n(new Error("The request has a ".concat(r.status," error. \n ").concat(r.response.message))):r.status>=200&&t(QG(r.response))},r.send()}))},ZG=function(e){var t=VG(e),n={};return Object.keys(t).forEach((function(e){var r=t[e];if("string"==typeof r&&r||"number"==typeof r||"boolean"==typeof r)n[e]=r;else if(Array.isArray(r)){var o=r.filter((function(e){return"string"==typeof e&&e}));o.length>0&&(n[e]=o)}})),n},JG=function(e,t,n,r){return n?e:"BRAND_CONSENT_FORM_IDS_ONLY"===t?{}:("NON_DS_IDENTIFIERS_ONLY"===t&&Object.keys(e).forEach((function(t){var n=r.find((function(e){return e.id==t}));null!=n&&n.group&&delete e[t]})),e)},eK=function(e){var t=VG(e);if(t.token||t.confirm||!t.consentFormId&&!t.brandId){if(!t.confirm){if(!t.token)throw new Error("Invalid UPM config: JWT token is missing.");if("string"!=typeof t.token)throw new Error("Invalid UPM config: token is invalid.")}}else{if(!t.brandId)throw new Error("Invalid UPM config: brandId is missing.");if("string"!=typeof t.brandId)throw new Error("Invalid UPM config: brandId is invalid.");if(!t.consentFormId)throw new Error("Invalid UPM config: consentFormId is missing.");if("string"!=typeof t.consentFormId)throw new Error("Invalid UPM config: consentFormId is invalid.")}return t},tK=function(e){var t={};return Object.keys(e).forEach((function(n){var r={},o=new Set;ey(e[n]).forEach((function(e){switch(e=e.toLowerCase(),o.add(e),e){case"e":o.has("r")?delete r.readOnly:r.readOnly=!1;break;case"r":o.has("e")?delete r.readOnly:r.readOnly=!0;break;case"h":o.has("d")?delete r.hidden:r.hidden=!0;break;case"d":o.has("h")?delete r.hidden:r.hidden=!1;break;case"q":o.has("n")?delete r.required:r.required=!0;break;case"n":o.has("q")?delete r.required:r.required=!1;break;default:o.delete(e)}})),t[n]=r})),t},nK=function(e,t){t.content.formFields.forEach((function(t){var n,r,o=t.type.id;e[t.id]&&(o==yb.GroupCheckboxes||o==yb.Checkbox&&null!==(n=t.extras)&&void 0!==n&&n.isChild)&&(null===(r=e[t.id])||void 0===r||delete r.required,Object.keys(e[t.id]).length||delete e[t.id])}))};!function(e){e.Email="Email",e.Website="Website",e.Manual="Manual",e.API="API",e.PhoneCall="PhoneCall",e.SMS="SMS",e.Support="Support",e.Others="Others",e.DataSubjectRequest="DataSubjectRequest"}(UG||(UG={}));var rK,oK=function(e){var t=VG(e);t.token&&(t.defaultValues=[]);var n={},r={};return t.defaultValues&&Object.keys(t.defaultValues).forEach((function(e){var o=a(e.split("_"),2),i=o[0],u=o[1];u&&(n[i]=u),r[i]=t.defaultValues[e]})),t.settingsValues=n,t.defaultValues=r,t.channel=function(e){switch(MG(e).toLowerCase()){case UG.Email.toLowerCase():return UG.Email;case UG.API.toLowerCase():return UG.API;case UG.Manual.toLowerCase():return UG.Manual;case UG.PhoneCall.toLowerCase():return UG.PhoneCall;case UG.SMS.toLowerCase():return UG.SMS;case UG.Support.toLowerCase():return UG.Support;case UG.Others.toLowerCase():return UG.Others;case UG.DataSubjectRequest.toLowerCase():return UG.DataSubjectRequest;default:return UG.Website}}(t.channel),t},iK=function(e){var t={};return e.forEach((function(e){var n;e.formValues.length>1?t[e.field.id]=e.formValues.map((function(e){return e.value})):t[e.field.id]=null===(n=e.formValues[0])||void 0===n?void 0:n.value})),t},aK=function(e){return new Promise((function(t,n){var r="".concat("https://form-renderer.trustarc.com","/xapi/v1/consent-form-renderer/double-opt-in/resend/").concat(e),o=new XMLHttpRequest;o.open("POST",r),o.setRequestHeader("Content-Type","application/json;charset=UTF-8"),o.responseType="json",o.onerror=function(){n(new Error("The resend request could not be made."))},o.onload=function(){o.status>=400?n(new Error("The resend request has a ".concat(o.status," error."))):o.status>=200&&t(o.response)},o.send()}))};!function(e){e.ACTIVE="ACTIVE",e.PENDING="PENDING",e.EXPIRED="EXPIRED"}(rK||(rK={}));var uK="00000000-0000-0000-0000-100000000000",cK=function(e){var t=function(e){return e.split("_").filter((function(e){return!!e})).join("_").substring(0,function(e,t,n){return e.split(t,n).join(t).length}(e,"_",2))}(e);return["NA_US","NA_CA"].includes(t)?e:t},lK=function(){var e=l(m.mark((function e(){var t,n,r;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=new Uint8Array(16),n=window.crypto||window.msCrypto){e.next=4;break}throw new Error("Web Crypto API not available in this browser.");case 4:return n.getRandomValues(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128,r=Array.from(t).map((function(e){return e.toString(16).padStart(2,"0")})),e.abrupt("return","".concat(r.slice(0,4).join(""),"-").concat(r.slice(4,6).join(""),"-").concat(r.slice(6,8).join(""),"-").concat(r.slice(8,10).join(""),"-").concat(r.slice(10).join("")));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),sK=function(){var e=l(m.mark((function e(t){var n,r,o;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lK();case 2:return n=e.sent,e.next=5,fetch("".concat(t,"?cacheBust=").concat(n),{method:"HEAD"});case 5:return r=e.sent,o=r.headers,e.abrupt("return",{continent:o.get("continent"),country:o.get("country"),state:o.get("state")});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fK=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length>0?cK(e.filter((function(e){return!FG.exports.isEmpty(e)})).join("_")):null},pK=function(){try{return window.self!==window.top}catch(e){return!0}},dK=function(){var e=navigator.cookieEnabled;return pK()&&(e=function(){try{var e="irmTestCookie",t="trustarcTestCookie="+e;t+="; samesite=None; secure",document.cookie=t;var n=-1!==document.cookie.indexOf(e);return document.cookie=e+"; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",n}catch(e){return!1}}()),e};function hK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mK(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:6,r=new Date;r.setTime(r.getTime()+30*(null!=n?n:6)*24*60*60*1e3);var o="expires="+r.toUTCString(),i=e+"="+t+";"+o+";path=/";document.cookie=i,console.log("[gpc] dropped cookie",i)},EK=function(){var e=l(m.mark((function e(t,n){var r,o,i,a,u,c;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=navigator.globalPrivacyControl,console.log("[gpc] globalPrivacyControl",r),r){e.next=4;break}return e.abrupt("return",!1);case 4:return e.next=6,sK(t);case 6:if(o=e.sent,console.log("[gpc] geoLocationCode",o),null!=n&&n.length){e.next=10;break}return e.abrupt("return",!0);case 10:return i=o.continent,a=o.country,u=o.state,c=[i,a,u],e.abrupt("return",TK(c,new Set(n)));case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),TK=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;e.length>0;){var n=fK(e),r=t.has(n);if(r)return console.log("[gpc] geoCode matches",n),!0;e.pop()}return console.log("[gpc] geoCode does not match"),!1},CK=function(e,t){return"form-opened_submitted"===OK(xK)&&(console.log("[gpc] cookie (form-opened_submitted) already dropped"),t&&function(e){try{ud.render(ce.createElement(wG,null),e)}catch(e){throw console.error("[upm] Error: ".concat(e.message)),new Error("An error occured while rendering the GPC Applied Banner.")}}(e),!0)},PK=function(){var e=document.getElementById(kK);e&&e.remove()},DK=function(){var e=l(m.mark((function e(t){var n,r,o,i,a,u,c,l,s,f,p,d;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.currentScriptUrl,o=t.gpcConfig,i=void 0===o?{}:o,a=t.onRenderForm,u=t.onRenderGPCForm,a||null!=i&&null!==(n=i.iframeConfig)&&void 0!==n&&n.formLink){e.next=3;break}throw Error("Invalid GPC configuration.");case 3:return c=OK(xK),l="ignored"===c&&!i.showFormForUnsubmittedDSR,e.next=7,EK(r,i.geoLocationCodes);case 7:if(s=e.sent,!c||s){e.next=14;break}if(!i.showFormOnDisabledSecondVisit){e.next=13;break}i.showPreviouslyDetectedContent=!0,e.next=14;break;case 13:return e.abrupt("return");case 14:if((f=document.createElement("div")).id=kK,document.body.insertBefore(f,document.body.firstChild),p=function(e){},p=a&&u?function(e){e?u():a()}:function(){AG(mK({},i.iframeConfig))},!s||!l||i.showPreviouslyDetectedContent){e.next=21;break}return e.abrupt("return");case 21:(s||i.showPreviouslyDetectedContent)&&(!i.showPreviouslyDetectedContent&&CK(f,i.showRecognizedGPCImage)||(d=null,dK()||("Your browser is blocking essential cookie","We see that cookies are blocked. You must enable cookies in your browser and refresh the page to submit the form data.",d={message:"We see that cookies are blocked. You must enable cookies in your browser and refresh the page to submit the form data.",headerLogo:null,showRespondButton:null,showAsModal:!1,headerMessage:"Your browser is blocking essential cookie",bodyLogo:null},i.cookieErrorLandingPage=d),jG({onIgnore:function(){var e,t;e="ignored",t=i.cookieExpiryInMonths,SK(xK,e,t),PK()},onOptOut:function(){return p(!0)},gpcConfig:i},f)));case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),jK={shouldShowGPCBanner:EK,setGPCSubmitted:function(e){SK(xK,"form-opened_submitted",e)},init:DK,destroy:PK};!function(e){e.Checkbox="Checkbox",e.Email="Email",e.ParagraphText="ParagraphText",e.PhoneNumber="PhoneNumber",e.Select="Select",e.SingleLine="SingleLine",e.StaticText="StaticText",e.Country="Country",e.GroupCheckboxes="GroupCheckboxes",e.Date="Date",e.ToggleSwitch="ToggleSwitch",e.NameField="name-type-field",e.EndSubmission="EndSubmission",e.FileAttachment="FileAttachment",e.GroupToggleSwitch="GroupToggleSwitch",e.OptionRule="OptionRule"}(yK||(yK={})),function(e){e.SUCCESS_SUBMISSION="SUCCESS_SUBMISSION",e.ERROR_SUBMISSION="ERROR_SUBMISSION",e.DOUBLE_OPT_IN="DOUBLE_OPT_IN",e.ERROR_COOKIE="ERROR_COOKIE"}(vK||(vK={})),function(e){e.SELECT_ALL_AND_UNSELECT_ALL="SELECT_ALL_AND_UNSELECT_ALL",e.ACTIVE_ALL_AND_INACTIVE_ALL="ACTIVE_ALL_AND_INACTIVE_ALL",e.UNSUBSCRIBE_ALL="UNSUBSCRIBE_ALL"}(bK||(bK={})),function(e){e.OPT_IN="OPT_IN",e.OPT_OUT="OPT_OUT"}(gK||(gK={})),function(e){e.HYPERLINK="HYPERLINK",e.TEXT="TEXT_ONLY",e.NUMBER="NUMBER_ONLY"}(wK||(wK={})),function(e){e.DASHED_FORMAT="DASHED_FORMAT",e.INTERNATIONAL_FORMAT="INTERNATIONAL_FORMAT"}(_K||(_K={}));var RK=function(e,t){var n=(Array.isArray(e)?e:[e]).map((function(e){return e.toLowerCase()})),r=[];return t.forEach((function(e){var t;-1!==n.indexOf(e.key.toLowerCase())&&e.selected?r.push(e):(null===(t=e.children)||void 0===t?void 0:t.length)>0&&e.children.forEach((function(e){-1!==n.indexOf(e.key.toLowerCase())&&e.selected&&r.push(e)}))})),{externalKeys:n,selected:r}},IK=function(){var e=l(m.mark((function e(t){return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:fetch("".concat("https://js-api-log.trustarc.com/form-renderer/error"),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function AK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MK(e){for(var t=1;t1&&void 0!==Q[1]?Q[1]:function(){},o=Q.length>2?Q[2]:void 0,!LK){e.next=4;break}return e.abrupt("return");case 4:if(i=null===(n=document)||void 0===n?void 0:n.currentScript,console.log("[upm] currentScript",i),u=i.getAttribute("src")||"".concat(window.location.origin,"/browser/client.js"),e.prev=7,t=oK(t),d=eK(t),console.log("[upm] init config",d),h=ZG(d.defaultValues),y={},v=tK(d.settingsValues),b=LG(d,h),g=null,d.containerId){e.next=22;break}(g=document.createElement("div")).id="ta-upm-form-renderer",document.body.insertBefore(g,document.body.firstChild),e.next=26;break;case 22:if(g=document.getElementById(d.containerId)){e.next=26;break}throw console.log("[upm] The container with id ".concat(d.containerId," can't be found.")),new Error("The container with id ".concat(d.containerId," can't be found."));case 26:return e.next=28,XG(b);case 28:if((w=e.sent).content.formFields=w.content.formFields.filter((function(e){return e.type.id!==yK.OptionRule})),d.preview){e.next=41;break}return e.next=33,sK(u);case 33:x=e.sent,k=x.continent,O=x.country,S=x.state,E=fK([k,O,S]),T=w.consentRule,FK=null==T||null===(_=T.find((function(e){return e.jurisdiction===E})))||void 0===_?void 0:_.conditionalValue,d.manual||(C=w.content.formFields.find((function(e){return e.id===uK})),P=C.extras.countriesOption,h[uK]&&(D=RK(h[uK],P),D.selected.length<1&&delete h[uK]),!h[uK]&&C.extras.autoFillGeolocation&&(j=RK(E,C.extras.countriesOption),R=j.externalKeys,j.selected.length>0&&(h[uK]=R)));case 41:if(!d.expiredConsentPreference||w.showConsentForm){e.next=43;break}return e.abrupt("return");case 43:if(!d.confirm||(null===(c=w.doubleOptInTokenValue)||void 0===c?void 0:c.consentStatus)!==rK.PENDING||null===(l=w.doubleOptInTokenValue)||void 0===l||!l.expiryDate){e.next=51;break}if(I=1e3*w.doubleOptInTokenValue.expiryDate,A=new Date,M=new Date(I),!(A>M)){e.next=51;break}return console.error("[upm] link has expired"),dG({resend:function(){return aK(d.confirm)}},g),e.abrupt("return");case 51:(N=!(!d.confirm||!w.doubleOptInTokenValue))&&(h=iK(w.doubleOptInTokenValue.formFieldValues),Object.keys(h).forEach((function(e){v[e]?v[e].readOnly=!0:v[e]={readOnly:!0}}))),d.token&&(h={},y={},w.tokenValue.formFieldIdValues.forEach((function(e){var t=a(Object.entries(e)[0],2),n=t[0],r=t[1],o=a(n.split("_"),2),i=o[0],u=o[1];u&&(y[i]=u),h[i]=r})),h=ZG(h),v=tK(y)),nK(v,w),N||(h=JG(h,w.urlCondition,!!d.token,w.content.formFields)),FK&&w.content.formFields.filter((function(e){return[yK.Checkbox,yK.ToggleSwitch].includes(e.type.id)&&e.extras.applyJurisdictionConsentRule})).forEach((function(e){h[e.id]||(h[e.id]=e.extras.valueConversionConfig===FK)})),(null!==(s=w.tokenValue)&&void 0!==s&&s.autoSubmit&&null===d.autoSubmit||d.autoSubmit)&&(d.token?(L=w.tokenValue,F=L.brandId,U=L.consentFormId,B=L.locale,o(F,U,BG(w.content.formFields,h,!0,w.content.rules),B,d.token,v)):o(d.brandId,d.consentFormId,null!==(V=w.latestPreferences)&&void 0!==V?V:BG(w.content.formFields,h,!0,w.content.rules),null!==(z=d.locale)&&void 0!==z?z:NG(),"",v)),H=function(e){var t={brandId:d.brandId?d.brandId:w.tokenValue.brandId,consentFormId:d.consentFormId?d.consentFormId:w.tokenValue.consentFormId,channel:d.channel,formFieldIdValues:BG(w.content.formFields,e,!1,w.content.rules),websiteSource:document.referrer||window.location.href,locale:NG(),formFieldIdFlags:v};return d.manual&&d.createdDate&&(t=MK(MK({},t),{},{manual:d.manual,createdDate:new Date(d.createdDate).toISOString(),token:d.accessToken})),d.token&&(t=MK(MK({},t),{},{token:d.token})),BK(t)},Y=function(){return VK(d.confirm)},W={formId:d.consentFormId,formVersion:d.consentFormVersion,formConfig:w,preview:!!d.preview,modal:!d.containerId,showLandingPage:d.showLandingPage,submitDataCallback:H,submitDoubleOptInCallback:Y,defaultValues:h,settingsValues:v,isDoubleOptInForm:N,containerId:null===(f=g)||void 0===f?void 0:f.id,consentStatus:null===(p=w.doubleOptInTokenValue)||void 0===p?void 0:p.consentStatus,hideFooterButtons:d.hideFooterButtons,hideSubmitButton:d.hideSubmitButton},q=!(null==d||!d.gpcDetection),$=null==d?void 0:d.gpcConfig,W.submitSuccessCallback=function(){q&&jK.shouldShowGPCBanner(u,null==$?void 0:$.geoLocationCodes)&&(jK.setGPCSubmitted(null==$?void 0:$.cookieExpiryInMonths),jK.destroy())},q?jK.init({currentScriptUrl:u,onRenderForm:function(){return pG(W,g)},onRenderGPCForm:function(){return pG(MK(MK({},W),{},{modal:!0}),g)},gpcConfig:$}):(G=pG(MK({},W),g),K=G.externalSubmitFunction,NK=K),LK=!0,e.next=73;break;case 68:e.prev=68,e.t0=e.catch(7),console.error("[cpm error]",e.t0),IK({info:{source:"CPM",config:t},error:String(e.t0),caller:{hostUrl:window.location.href}}),r(e.t0);case 73:case"end":return e.stop()}}),e,null,[[7,68]])})));return function(t){return e.apply(this,arguments)}}(),BK=function(e){return function(e,t){return new Promise((function(n,r){var o=e,i=new XMLHttpRequest;t.token&&(o="".concat(o,"?token=").concat(t.token)),i.open("POST",o),i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.responseType="json",i.onerror=function(){r(new Error("The submit request could not be made."))},i.onload=function(){i.status>=400?r(new Error("The submit request has a ".concat(i.status," error."))):i.status>=200&&n(i.response)},i.send(JSON.stringify(t))}))}("".concat("https://form-renderer.trustarc.com","/xapi/v1/consent-form-renderer/submit").concat(e.manual?"/manual":""),e)},VK=function(e){var t,n="".concat("https://form-renderer.trustarc.com","/xapi/v1/consent-form-renderer/double-opt-in/confirm/").concat(e);return t=n,new Promise((function(e,n){var r=t,o=new XMLHttpRequest;o.open("POST",r),o.setRequestHeader("Content-Type","application/json;charset=UTF-8"),o.responseType="json",o.onerror=function(){n(new Error("The submit request could not be made."))},o.onload=function(){o.status>=400?n(new Error("The submit request has a ".concat(o.status," error."))):o.status>=200&&e(o.response)},o.send()}))},zK={init:UK,externalSubmit:function(){return NK},submit:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};BK(e).then(n,t)},destroy:function(e){Nq(e),LK=!1},renderComponent:function(e){return new mG(e)}},HK=function(e,t){var n=[],r=[],o=e.map((function(e){return e.id}));for(var i in t)n.push(i);return o.forEach((function(e){var t=n.filter((function(t){return t.includes(e)}));n=FG.exports.difference(n,t),t.length>1?t.forEach((function(e){r.push(e)})):r.push(e)})),n.length&&r.push.apply(r,ey(n)),r};function YK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WK(e){for(var t=1;t1&&void 0!==se[1]?se[1]:function(){},!qK){e.next=3;break}return e.abrupt("return");case 3:if(o=null===(n=document)||void 0===n?void 0:n.currentScript,console.log("[irm] currentScript",o),i=o.getAttribute("src")||"".concat(window.location.origin,"/browser/client.js"),e.prev=6,u=null,c=null!==(a=t.preview)&&void 0!==a&&a,t.containerId){e.next=15;break}(u=document.createElement("div")).id="ta-irm-form-renderer",document.body.insertBefore(u,document.body.firstChild),e.next=18;break;case 15:if(u=document.getElementById(t.containerId)){e.next=18;break}throw new Error("[irm] The container with id ".concat(t.containerId," can't be found."));case 18:if(f=t.isSupplemental?t.supplementalFormRequestId:t.formId){e.next=21;break}throw new Error("[irm] No form id provided.");case 21:if(!(p=!(null==t||!t.gpcDetection))){e.next=33;break}h="".concat("https://submit-irm.trustarc.com/services","/validation/").concat(f),console.log("[irm] configFormLink",h),(y=new URL(h)).searchParams.set("gpc","1"),v=y.href,b={formLink:v,container:u,onMessageEvent:function(e){var n,r,o;try{n=JSON.parse(e.data)}catch(e){return}(console.log("[irm] received data",n),n&&n.source&&n.message)&&("trustarc_irm"==n.source&&"complete"==n.message&&p&&jK.shouldShowGPCBanner(i,null===(r=t.gpcConfig)||void 0===r?void 0:r.geoLocationCodes)&&(jK.setGPCSubmitted(null===(o=t.gpcConfig)||void 0===o?void 0:o.cookieExpiryInMonths),jK.destroy()))}},g=null!==(d=t.gpcConfig)&&void 0!==d?d:{},jK.init({currentScriptUrl:i,gpcConfig:WK(WK({},g),{},{iframeConfig:b})}),e.next=79;break;case 33:return console.log("[irm] container",u),O=t.isSupplemental?"".concat("https://submit-irm.trustarc.com/services","/suppvalidation/api/v1/formsupps"):"".concat("https://submit-irm.trustarc.com/services","/validation/api/v1/forms"),S=function(e,t,n){var r=document.getElementById(e);if(!r){var o=document.createElement("script");o.type="text/javascript",o.src=t,o.id=e,o.onload=function(){n&&n()},document.body.appendChild(o)}r&&n&&n()},E="6LdSn6gUAAAAAKZ5SiEQ8PdCUOgV9sf1ei4utXrB",e.next=39,fetch("".concat(O,"/").concat(f,"?locale=").concat(t.locale));case 39:return T=e.sent,e.next=42,T.json();case 42:if(C=e.sent,null!==(w=C.captchaTypes)&&void 0!==w||(C.captchaTypes=[]),null!==(_=C.brandName)&&void 0!==_||(C.brandName=null),P=C.captchaTypes,D=null!==(x=t.authType)&&void 0!==x?x:"CAPTCHA",j=new Set,console.log("[irm][authType]",t.authType),"TRUSTARC"===D&&(console.log("[renderer][listener added]"),window.addEventListener("message",(function(e){var t=e.data;t&&"trustarc_irm_portal"===t.source&&"submit"===t.message&&(N=t.data,M())}),!1)),L=function(e,t,n){var r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name",t),r.setAttribute("value",n),e.appendChild(r)},F=function(e,n){var r,o,i,a,u,c,l,p,d,h,m,y,v=document.createElement("form"),b=null===(r=N)||void 0===r||null===(o=r.overrideParams)||void 0===o?void 0:o.dateCreated,g=null===(i=N)||void 0===i||null===(a=i.overrideParams)||void 0===a?void 0:a.dateCompleted,w=XK(e),_=j.has(w);v.setAttribute("method","post"),v.setAttribute("action",t.isSupplemental?"".concat("https://submit-irm.trustarc.com/services","/suppvalidation/submit"):"".concat("https://submit-irm.trustarc.com/services","/validation/submit")),HK(C.content.formFields,e).forEach((function(t){var n,r;e.hasOwnProperty(t)&&("object"===s(e[t])&&(e[t]=JSON.stringify(e[t])),L(v,t,null!==(n=null===(r=e[t])||void 0===r?void 0:r.value)&&void 0!==n?n:e[t]))})),L(v,"locale",null!==(u=t.locale)&&void 0!==u?u:"en"),L(v,"formId",t.formId),L(v,"entityId",f),t.isSupplemental&&L(v,"suppValidationId",t.supplementalFormRequestId),L(v,"authType",D),L(v,"captchaInput",null!==(c=I)&&void 0!==c?c:""),L(v,"captchaAnswer",null!==(l=A)&&void 0!==l?l:""),L(v,"ipAddress",null!==(p=t.ipAddress)&&void 0!==p?p:""),L(v,"gpcEnabled",t.isFormGpc?"true":"false"),L(v,"authResponse","TRUSTARC"===D?null===(d=N)||void 0===d||null===(h=d.auth)||void 0===h?void 0:h.token:n);var x=new URLSearchParams(window.location.search);if(L(v,"sourceWebsite",x.has("sourceWebsite")?""===x.get("sourceWebsite")?null!==(m=t.sourceWebsite)&&void 0!==m?m:window.location.href:x.get("sourceWebsite"):null!==(y=t.sourceWebsite)&&void 0!==y?y:window.location.href),b&&L(v,"dateCreated",b),g&&L(v,"dateCompleted",g),document.body.appendChild(v),console.log("[irm][ccmEnabled]",_),console.log("[irm][isFormGpc]",t.isFormGpc),_||t.isFormGpc){window.parent.postMessage(JSON.stringify({source:"trustarc_irm",message:"submit",data:""}),"*")}v.submit()},U=null,B=null,C.browserCookieNeeded&&!dK()?(V=window.location.href,z="Your browser is blocking essential cookie",H="We see that cookies are blocked. You must enable cookies in your browser and refresh the page to submit the form data.",pK()&&(H="We have detected that essential third-party cookies are blocked. Click here to fill out and submit the form or enable third-party cookies in your browser and refresh the page."),U=vb.ERROR_COOKIE,B={message:H,headerLogo:null,showRespondButton:null,showAsModal:!1,headerMessage:z}):"CAPTCHA"===D&&(P.includes("GOOGLE_RECAPTCHA_V3")&&(t.preview||S("recaptcha-key","https://www.google.com/recaptcha/api.js?render=".concat(E),(function(){console.log("recaptcha script is Loaded.."),setTimeout((function(){document.querySelector(".grecaptcha-badge textarea").setAttribute("aria-label","ta-upm-form-".concat(f,'- ?? ""}'));var e=document.querySelector(".grecaptcha-badge iframe");e.setAttribute("aria-hidden","true"),e.setAttribute("title","grecaptcha iframe"),ZK(),window.addEventListener("resize",(function(){ZK()}))}),2e3)}))),P.includes("TRUSTARC")&&(R={toggleRefresh:!1,fetchCaptchaDto:function(){var e=l(m.mark((function e(){var t;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat("https://submit-irm.trustarc.com/services","/validation/api/v1/captcha"));case 2:return t=e.sent,e.next=5,t.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),postAnswer:function(){var e=l(m.mark((function e(t){var n;return m.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat("https://submit-irm.trustarc.com/services","/validation/api/v1/captcha/verify"),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)});case 2:return n=e.sent,e.next=5,n.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onInputCorrect:function(e){I=e.input,A=e.answer}})),Y=function(e){var n=new FormData;return n.append("file",e),fetch("".concat("https://submit-irm.trustarc.com/services","/storage/upload?formId=").concat(t.formId),{method:"POST",body:n})},W=null,!((q=C.content.formFields.findIndex((function(e){return"Country"===e.type.id})))>-1)){e.next=73;break}if($=C.content.formFields[q].extras,!C.content.formFields[q].extras.autoFillGeolocation){e.next=73;break}return console.log("[irm] autoFillGeolocation enabled"),e.next=66,sK(i);case 66:G=e.sent,K=G.continent,Q=G.country,X=G.state,Z=fK([K,Q,X]),J=RK(Z,$.countriesOption),(ee=J.selected).length>0&&"TRUSTARC"!==D&&($.defaultValue=ee[0]);case 73:t.isSupplemental||(oe=C.content.formFields.findIndex((function(e){return"data-subject-select"===e.type.id})),ie=KK(C.content.formFields[oe]),C.content.formFields[oe]=ie,ae=C.content.formFields.findIndex((function(e){return"request-type-select"===e.type.id})),null===(te=C.content.formFields[ae])||void 0===te||null===(ne=te.extras)||void 0===ne||null===(re=ne.optionLabels)||void 0===re||re.filter((function(e){return e.ccmEnabled})).forEach((function(e){return j.add(e.id)})),ue=QK(C.content.formFields[ae]),W=C.content.formFields[ae].extras.optionLabels.filter((function(e){return e.hasToConfirm})).reduce((function(e,t){return e[t.id]=t.confirmMessage.key,e}),{}),C.content.formFields[ae]=ue),C.content.formFields=C.content.formFields.filter((function(e){return e.type.id!==yK.OptionRule})),B&&(C.landingPages||(C.landingPages={}),C.landingPages.ERROR_COOKIE=B),ce=pG({formConfig:C,formId:f,defaultValues:{},settingsValues:{},hideSubmitButton:"TRUSTARC"===D,hideFooterButtons:"TRUSTARC"===D,submitDataCallback:function(e){return new Promise((function(t,n){"TRUSTARC"===D?F(e,"no-token"):"CAPTCHA"===D&&P.includes("GOOGLE_RECAPTCHA_V3")?window.grecaptcha.ready((function(){window.grecaptcha.execute(E,{action:"submit"}).then((function(t){F(e,t)}))})):F(e,"no-token")}))},uploadFileCallback:Y,trustArcCaptchaProps:R,preview:c,showLandingPage:U,fieldErrorMessage:null!==(k=t.fieldErrorMessage)&&void 0!==k?k:{},doubleConfirmation:W,containerId:t.containerId},u),le=ce.submitFormFunction,M=le;case 79:qK=!0,e.next=87;break;case 82:e.prev=82,e.t0=e.catch(6),console.error("[irm error]",e.t0),IK({info:{source:"IRM",config:t},error:String(e.t0),caller:{hostUrl:window.location.href}}),r(e.t0);case 87:case"end":return e.stop()}}),e,null,[[6,82]])})));return function(t){return e.apply(this,arguments)}}(),KK=function(e){var t,n,r,o=null!==(t=e.extras.defaultValue)&&void 0!==t?t:null,i=null!==(n=e.extras.defaultPlaceholderText)&&void 0!==n?n:null,a=null!==(r=e.extras.helpfulInfoText)&&void 0!==r?r:null;return WK(WK({},e),{},{type:{id:yK.Select,name:"Dropdown",icon:""},extras:{defaultValue:o?{options:[{id:o.key,text:o.context.dataSubjectLabelKey,isSelected:!1,warningMessage:null}]}:null,helpfulInfoText:a,optionList:e.extras.optionList.map((function(e){return{id:e.key,text:e.context.dataSubjectLabelKey,isSelected:!1,warningMessage:null}})),defaultPlaceholderText:i,allowMultipleSelect:null}})},QK=function(e){var t,n,r,o=null!==(t=e.extras.defaultValue)&&void 0!==t?t:null,i=null!==(n=e.extras.defaultPlaceholderText)&&void 0!==n?n:null,a=null!==(r=e.extras.helpfulInfoText)&&void 0!==r?r:null;return WK(WK({},e),{},{type:{id:yK.Select,name:"Dropdown",icon:""},extras:{defaultValue:o?{options:[{id:o.id,text:o.label.key,isSelected:!1,warningMessage:null}]}:null,helpfulInfoText:a,optionList:e.extras.optionLabels.map((function(e){return{id:e.id,text:e.label.key,isSelected:!1,warningMessage:null}})),defaultPlaceholderText:i,allowMultipleSelect:null}})};function XK(e){var t,n;return Array.isArray(e[$K])?null===(n=e[$K])||void 0===n?void 0:n[0].value:null===(t=e[$K])||void 0===t?void 0:t.value}function ZK(){var e=document.getElementsByClassName("grecaptcha-badge");if(e&&0!==e.length){var t=e[0];window.innerWidth<=785?t.classList.add("captchaBox-mobile"):t.classList.remove("captchaBox-mobile")}else console.log("[irm form] cannot find element with class: grecaptcha-badge")}for(var JK={init:GK,destroy:function(e){Nq(e),qK=!1},convertRequestTypeDropdownToSelect:QK,convertDSDropdownToSelect:KK},eQ=window.trustarc||{},tQ=Array.isArray(eQ.upm)?eQ.upm.slice(0):[],nQ=0;nQ { // webpackBootstrap
-/******/ var __webpack_modules__ = ({
-
-/***/ 3737:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-"use strict";
-
-
-var GetIntrinsic = __webpack_require__(55050);
-var callBind = __webpack_require__(68375);
-var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
-module.exports = function callBoundIntrinsic(name, allowMissing) {
- var intrinsic = GetIntrinsic(name, !!allowMissing);
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
- return callBind(intrinsic);
- }
- return intrinsic;
-};
-
-/***/ }),
-
-/***/ 68375:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-"use strict";
-
-
-var bind = __webpack_require__(36046);
-var GetIntrinsic = __webpack_require__(55050);
-var setFunctionLength = __webpack_require__(23954);
-var $TypeError = GetIntrinsic('%TypeError%');
-var $apply = GetIntrinsic('%Function.prototype.apply%');
-var $call = GetIntrinsic('%Function.prototype.call%');
-var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
-var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
-var $max = GetIntrinsic('%Math.max%');
-if ($defineProperty) {
- try {
- $defineProperty({}, 'a', {
- value: 1
- });
- } catch (e) {
- // IE 8 has a broken defineProperty
- $defineProperty = null;
- }
-}
-module.exports = function callBind(originalFunction) {
- if (typeof originalFunction !== 'function') {
- throw new $TypeError('a function is required');
- }
- var func = $reflectApply(bind, $call, arguments);
- return setFunctionLength(func, 1 + $max(0, originalFunction.length - (arguments.length - 1)), true);
-};
-var applyBind = function applyBind() {
- return $reflectApply(bind, $apply, arguments);
-};
-if ($defineProperty) {
- $defineProperty(module.exports, 'apply', {
- value: applyBind
- });
-} else {
- module.exports.apply = applyBind;
-}
-
-/***/ }),
-
-/***/ 91037:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-"use strict";
-
-
-var hasPropertyDescriptors = __webpack_require__(96757)();
-var GetIntrinsic = __webpack_require__(55050);
-var $defineProperty = hasPropertyDescriptors && GetIntrinsic('%Object.defineProperty%', true);
-if ($defineProperty) {
- try {
- $defineProperty({}, 'a', {
- value: 1
- });
- } catch (e) {
- // IE 8 has a broken defineProperty
- $defineProperty = false;
- }
-}
-var $SyntaxError = GetIntrinsic('%SyntaxError%');
-var $TypeError = GetIntrinsic('%TypeError%');
-var gopd = __webpack_require__(12319);
-
-/** @type {(obj: Record, property: PropertyKey, value: unknown, nonEnumerable?: boolean | null, nonWritable?: boolean | null, nonConfigurable?: boolean | null, loose?: boolean) => void} */
-module.exports = function defineDataProperty(obj, property, value) {
- if (!obj || typeof obj !== 'object' && typeof obj !== 'function') {
- throw new $TypeError('`obj` must be an object or a function`');
- }
- if (typeof property !== 'string' && typeof property !== 'symbol') {
- throw new $TypeError('`property` must be a string or a symbol`');
- }
- if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
- throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
- }
- if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
- throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
- }
- if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
- throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
- }
- if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
- throw new $TypeError('`loose`, if provided, must be a boolean');
- }
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
- var loose = arguments.length > 6 ? arguments[6] : false;
-
- /* @type {false | TypedPropertyDescriptor} */
- var desc = !!gopd && gopd(obj, property);
- if ($defineProperty) {
- $defineProperty(obj, property, {
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
- value: value,
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
- });
- } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
- // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
- obj[property] = value; // eslint-disable-line no-param-reassign
- } else {
- throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
- }
-};
-
-/***/ }),
-
-/***/ 51820:
-/***/ ((module) => {
-
-"use strict";
-
-
-/* eslint no-invalid-this: 1 */
-var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
-var toStr = Object.prototype.toString;
-var max = Math.max;
-var funcType = '[object Function]';
-var concatty = function concatty(a, b) {
- var arr = [];
- for (var i = 0; i < a.length; i += 1) {
- arr[i] = a[i];
- }
- for (var j = 0; j < b.length; j += 1) {
- arr[j + a.length] = b[j];
- }
- return arr;
-};
-var slicy = function slicy(arrLike, offset) {
- var arr = [];
- for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
- arr[j] = arrLike[i];
- }
- return arr;
-};
-var joiny = function (arr, joiner) {
- var str = '';
- for (var i = 0; i < arr.length; i += 1) {
- str += arr[i];
- if (i + 1 < arr.length) {
- str += joiner;
- }
- }
- return str;
-};
-module.exports = function bind(that) {
- var target = this;
- if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
- throw new TypeError(ERROR_MESSAGE + target);
- }
- var args = slicy(arguments, 1);
- var bound;
- var binder = function () {
- if (this instanceof bound) {
- var result = target.apply(this, concatty(args, arguments));
- if (Object(result) === result) {
- return result;
- }
- return this;
- }
- return target.apply(that, concatty(args, arguments));
- };
- var boundLength = max(0, target.length - args.length);
- var boundArgs = [];
- for (var i = 0; i < boundLength; i++) {
- boundArgs[i] = '$' + i;
- }
- bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
- if (target.prototype) {
- var Empty = function Empty() {};
- Empty.prototype = target.prototype;
- bound.prototype = new Empty();
- Empty.prototype = null;
- }
- return bound;
-};
-
-/***/ }),
-
-/***/ 36046:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-"use strict";
-
-
-var implementation = __webpack_require__(51820);
-module.exports = Function.prototype.bind || implementation;
-
-/***/ }),
-
-/***/ 55050:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-"use strict";
-
-
-var undefined;
-var $SyntaxError = SyntaxError;
-var $Function = Function;
-var $TypeError = TypeError;
-
-// eslint-disable-next-line consistent-return
-var getEvalledConstructor = function (expressionSyntax) {
- try {
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
- } catch (e) {}
-};
-var $gOPD = Object.getOwnPropertyDescriptor;
-if ($gOPD) {
- try {
- $gOPD({}, '');
- } catch (e) {
- $gOPD = null; // this is IE 8, which has a broken gOPD
- }
-}
-var throwTypeError = function () {
- throw new $TypeError();
-};
-var ThrowTypeError = $gOPD ? function () {
- try {
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
- arguments.callee; // IE 8 does not throw here
- return throwTypeError;
- } catch (calleeThrows) {
- try {
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
- return $gOPD(arguments, 'callee').get;
- } catch (gOPDthrows) {
- return throwTypeError;
- }
- }
-}() : throwTypeError;
-var hasSymbols = __webpack_require__(8269)();
-var hasProto = __webpack_require__(1886)();
-var getProto = Object.getPrototypeOf || (hasProto ? function (x) {
- return x.__proto__;
-} // eslint-disable-line no-proto
-: null);
-var needsEval = {};
-var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
-var INTRINSICS = {
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
- '%Array%': Array,
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
- '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
- '%AsyncFromSyncIteratorPrototype%': undefined,
- '%AsyncFunction%': needsEval,
- '%AsyncGenerator%': needsEval,
- '%AsyncGeneratorFunction%': needsEval,
- '%AsyncIteratorPrototype%': needsEval,
- '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
- '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
- '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
- '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
- '%Boolean%': Boolean,
- '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
- '%Date%': Date,
- '%decodeURI%': decodeURI,
- '%decodeURIComponent%': decodeURIComponent,
- '%encodeURI%': encodeURI,
- '%encodeURIComponent%': encodeURIComponent,
- '%Error%': Error,
- '%eval%': eval,
- // eslint-disable-line no-eval
- '%EvalError%': EvalError,
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
- '%Function%': $Function,
- '%GeneratorFunction%': needsEval,
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
- '%isFinite%': isFinite,
- '%isNaN%': isNaN,
- '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
- '%JSON%': typeof JSON === 'object' ? JSON : undefined,
- '%Map%': typeof Map === 'undefined' ? undefined : Map,
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
- '%Math%': Math,
- '%Number%': Number,
- '%Object%': Object,
- '%parseFloat%': parseFloat,
- '%parseInt%': parseInt,
- '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
- '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
- '%RangeError%': RangeError,
- '%ReferenceError%': ReferenceError,
- '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
- '%RegExp%': RegExp,
- '%Set%': typeof Set === 'undefined' ? undefined : Set,
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
- '%String%': String,
- '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
- '%Symbol%': hasSymbols ? Symbol : undefined,
- '%SyntaxError%': $SyntaxError,
- '%ThrowTypeError%': ThrowTypeError,
- '%TypedArray%': TypedArray,
- '%TypeError%': $TypeError,
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
- '%URIError%': URIError,
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
-};
-if (getProto) {
- try {
- null.error; // eslint-disable-line no-unused-expressions
- } catch (e) {
- // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
- var errorProto = getProto(getProto(e));
- INTRINSICS['%Error.prototype%'] = errorProto;
- }
-}
-var doEval = function doEval(name) {
- var value;
- if (name === '%AsyncFunction%') {
- value = getEvalledConstructor('async function () {}');
- } else if (name === '%GeneratorFunction%') {
- value = getEvalledConstructor('function* () {}');
- } else if (name === '%AsyncGeneratorFunction%') {
- value = getEvalledConstructor('async function* () {}');
- } else if (name === '%AsyncGenerator%') {
- var fn = doEval('%AsyncGeneratorFunction%');
- if (fn) {
- value = fn.prototype;
- }
- } else if (name === '%AsyncIteratorPrototype%') {
- var gen = doEval('%AsyncGenerator%');
- if (gen && getProto) {
- value = getProto(gen.prototype);
- }
- }
- INTRINSICS[name] = value;
- return value;
-};
-var LEGACY_ALIASES = {
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
- '%ArrayPrototype%': ['Array', 'prototype'],
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
- '%BooleanPrototype%': ['Boolean', 'prototype'],
- '%DataViewPrototype%': ['DataView', 'prototype'],
- '%DatePrototype%': ['Date', 'prototype'],
- '%ErrorPrototype%': ['Error', 'prototype'],
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
- '%FunctionPrototype%': ['Function', 'prototype'],
- '%Generator%': ['GeneratorFunction', 'prototype'],
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
- '%JSONParse%': ['JSON', 'parse'],
- '%JSONStringify%': ['JSON', 'stringify'],
- '%MapPrototype%': ['Map', 'prototype'],
- '%NumberPrototype%': ['Number', 'prototype'],
- '%ObjectPrototype%': ['Object', 'prototype'],
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
- '%PromisePrototype%': ['Promise', 'prototype'],
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
- '%Promise_all%': ['Promise', 'all'],
- '%Promise_reject%': ['Promise', 'reject'],
- '%Promise_resolve%': ['Promise', 'resolve'],
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
- '%RegExpPrototype%': ['RegExp', 'prototype'],
- '%SetPrototype%': ['Set', 'prototype'],
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
- '%StringPrototype%': ['String', 'prototype'],
- '%SymbolPrototype%': ['Symbol', 'prototype'],
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
- '%URIErrorPrototype%': ['URIError', 'prototype'],
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
-};
-var bind = __webpack_require__(36046);
-var hasOwn = __webpack_require__(1261);
-var $concat = bind.call(Function.call, Array.prototype.concat);
-var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
-var $replace = bind.call(Function.call, String.prototype.replace);
-var $strSlice = bind.call(Function.call, String.prototype.slice);
-var $exec = bind.call(Function.call, RegExp.prototype.exec);
-
-/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
-var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
-var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
-var stringToPath = function stringToPath(string) {
- var first = $strSlice(string, 0, 1);
- var last = $strSlice(string, -1);
- if (first === '%' && last !== '%') {
- throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
- } else if (last === '%' && first !== '%') {
- throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
- }
- var result = [];
- $replace(string, rePropName, function (match, number, quote, subString) {
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
- });
- return result;
-};
-/* end adaptation */
-
-var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
- var intrinsicName = name;
- var alias;
- if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
- alias = LEGACY_ALIASES[intrinsicName];
- intrinsicName = '%' + alias[0] + '%';
- }
- if (hasOwn(INTRINSICS, intrinsicName)) {
- var value = INTRINSICS[intrinsicName];
- if (value === needsEval) {
- value = doEval(intrinsicName);
- }
- if (typeof value === 'undefined' && !allowMissing) {
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
- }
- return {
- alias: alias,
- name: intrinsicName,
- value: value
- };
- }
- throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
-};
-module.exports = function GetIntrinsic(name, allowMissing) {
- if (typeof name !== 'string' || name.length === 0) {
- throw new $TypeError('intrinsic name must be a non-empty string');
- }
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
- throw new $TypeError('"allowMissing" argument must be a boolean');
- }
- if ($exec(/^%?[^%]*%?$/, name) === null) {
- throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
- }
- var parts = stringToPath(name);
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
- var intrinsicRealName = intrinsic.name;
- var value = intrinsic.value;
- var skipFurtherCaching = false;
- var alias = intrinsic.alias;
- if (alias) {
- intrinsicBaseName = alias[0];
- $spliceApply(parts, $concat([0, 1], alias));
- }
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
- var part = parts[i];
- var first = $strSlice(part, 0, 1);
- var last = $strSlice(part, -1);
- if ((first === '"' || first === "'" || first === '`' || last === '"' || last === "'" || last === '`') && first !== last) {
- throw new $SyntaxError('property names with quotes must have matching quotes');
- }
- if (part === 'constructor' || !isOwn) {
- skipFurtherCaching = true;
- }
- intrinsicBaseName += '.' + part;
- intrinsicRealName = '%' + intrinsicBaseName + '%';
- if (hasOwn(INTRINSICS, intrinsicRealName)) {
- value = INTRINSICS[intrinsicRealName];
- } else if (value != null) {
- if (!(part in value)) {
- if (!allowMissing) {
- throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
- }
- return void undefined;
- }
- if ($gOPD && i + 1 >= parts.length) {
- var desc = $gOPD(value, part);
- isOwn = !!desc;
-
- // By convention, when a data property is converted to an accessor
- // property to emulate a data property that does not suffer from
- // the override mistake, that accessor's getter is marked with
- // an `originalValue` property. Here, when we detect this, we
- // uphold the illusion by pretending to see that original data
- // property, i.e., returning the value rather than the getter
- // itself.
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
- value = desc.get;
- } else {
- value = value[part];
- }
- } else {
- isOwn = hasOwn(value, part);
- value = value[part];
- }
- if (isOwn && !skipFurtherCaching) {
- INTRINSICS[intrinsicRealName] = value;
- }
- }
- }
- return value;
-};
-
-/***/ }),
-
-/***/ 12319:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-"use strict";
-
-
-var GetIntrinsic = __webpack_require__(55050);
-var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
-if ($gOPD) {
- try {
- $gOPD([], 'length');
- } catch (e) {
- // IE 8 has a broken gOPD
- $gOPD = null;
- }
-}
-module.exports = $gOPD;
-
-/***/ }),
-
-/***/ 96757:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-"use strict";
-
-
-var GetIntrinsic = __webpack_require__(55050);
-var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
-var hasPropertyDescriptors = function hasPropertyDescriptors() {
- if ($defineProperty) {
- try {
- $defineProperty({}, 'a', {
- value: 1
- });
- return true;
- } catch (e) {
- // IE 8 has a broken defineProperty
- return false;
- }
- }
- return false;
-};
-hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
- // node v0.6 has a bug where array lengths can be Set but not Defined
- if (!hasPropertyDescriptors()) {
- return null;
- }
- try {
- return $defineProperty([], 'length', {
- value: 1
- }).length !== 1;
- } catch (e) {
- // In Firefox 4-22, defining length on an array throws an exception.
- return true;
- }
-};
-module.exports = hasPropertyDescriptors;
-
-/***/ }),
-
-/***/ 1886:
-/***/ ((module) => {
-
-"use strict";
-
-
-var test = {
- foo: {}
-};
-var $Object = Object;
-module.exports = function hasProto() {
- return {
- __proto__: test
- }.foo === test.foo && !({
- __proto__: null
- } instanceof $Object);
-};
-
-/***/ }),
-
-/***/ 8269:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-"use strict";
-
-
-var origSymbol = typeof Symbol !== 'undefined' && Symbol;
-var hasSymbolSham = __webpack_require__(88928);
-module.exports = function hasNativeSymbols() {
- if (typeof origSymbol !== 'function') {
- return false;
- }
- if (typeof Symbol !== 'function') {
- return false;
- }
- if (typeof origSymbol('foo') !== 'symbol') {
- return false;
- }
- if (typeof Symbol('bar') !== 'symbol') {
- return false;
- }
- return hasSymbolSham();
-};
-
-/***/ }),
-
-/***/ 88928:
-/***/ ((module) => {
-
-"use strict";
-
-
-/* eslint complexity: [2, 18], max-statements: [2, 33] */
-module.exports = function hasSymbols() {
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') {
- return false;
- }
- if (typeof Symbol.iterator === 'symbol') {
- return true;
- }
- var obj = {};
- var sym = Symbol('test');
- var symObj = Object(sym);
- if (typeof sym === 'string') {
- return false;
- }
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') {
- return false;
- }
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') {
- return false;
- }
-
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
- // if (sym instanceof Symbol) { return false; }
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
- // if (!(symObj instanceof Symbol)) { return false; }
-
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
-
- var symVal = 42;
- obj[sym] = symVal;
- for (sym in obj) {
- return false;
- } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) {
- return false;
- }
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) {
- return false;
- }
- var syms = Object.getOwnPropertySymbols(obj);
- if (syms.length !== 1 || syms[0] !== sym) {
- return false;
- }
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
- return false;
- }
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
- if (descriptor.value !== symVal || descriptor.enumerable !== true) {
- return false;
- }
- }
- return true;
-};
-
-/***/ }),
-
-/***/ 1261:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-"use strict";
-
-
-var call = Function.prototype.call;
-var $hasOwn = Object.prototype.hasOwnProperty;
-var bind = __webpack_require__(36046);
-
-/** @type {(o: {}, p: PropertyKey) => p is keyof o} */
-module.exports = bind.call(call, $hasOwn);
-
-/***/ }),
-
-/***/ 87676:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-var hasMap = typeof Map === 'function' && Map.prototype;
-var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
-var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
-var mapForEach = hasMap && Map.prototype.forEach;
-var hasSet = typeof Set === 'function' && Set.prototype;
-var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
-var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
-var setForEach = hasSet && Set.prototype.forEach;
-var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
-var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
-var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
-var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
-var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
-var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
-var booleanValueOf = Boolean.prototype.valueOf;
-var objectToString = Object.prototype.toString;
-var functionToString = Function.prototype.toString;
-var $match = String.prototype.match;
-var $slice = String.prototype.slice;
-var $replace = String.prototype.replace;
-var $toUpperCase = String.prototype.toUpperCase;
-var $toLowerCase = String.prototype.toLowerCase;
-var $test = RegExp.prototype.test;
-var $concat = Array.prototype.concat;
-var $join = Array.prototype.join;
-var $arrSlice = Array.prototype.slice;
-var $floor = Math.floor;
-var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
-var gOPS = Object.getOwnPropertySymbols;
-var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
-var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
-// ie, `has-tostringtag/shams
-var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol') ? Symbol.toStringTag : null;
-var isEnumerable = Object.prototype.propertyIsEnumerable;
-var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype // eslint-disable-line no-proto
-? function (O) {
- return O.__proto__; // eslint-disable-line no-proto
-} : null);
-function addNumericSeparator(num, str) {
- if (num === Infinity || num === -Infinity || num !== num || num && num > -1000 && num < 1000 || $test.call(/e/, str)) {
- return str;
- }
- var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
- if (typeof num === 'number') {
- var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
- if (int !== num) {
- var intStr = String(int);
- var dec = $slice.call(str, intStr.length + 1);
- return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
- }
- }
- return $replace.call(str, sepRegex, '$&_');
-}
-var utilInspect = __webpack_require__(53260);
-var inspectCustom = utilInspect.custom;
-var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
-module.exports = function inspect_(obj, options, depth, seen) {
- var opts = options || {};
- if (has(opts, 'quoteStyle') && opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double') {
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
- }
- if (has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
- }
- var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
- if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
- throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
- }
- if (has(opts, 'indent') && opts.indent !== null && opts.indent !== '\t' && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
- }
- if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
- }
- var numericSeparator = opts.numericSeparator;
- if (typeof obj === 'undefined') {
- return 'undefined';
- }
- if (obj === null) {
- return 'null';
- }
- if (typeof obj === 'boolean') {
- return obj ? 'true' : 'false';
- }
- if (typeof obj === 'string') {
- return inspectString(obj, opts);
- }
- if (typeof obj === 'number') {
- if (obj === 0) {
- return Infinity / obj > 0 ? '0' : '-0';
- }
- var str = String(obj);
- return numericSeparator ? addNumericSeparator(obj, str) : str;
- }
- if (typeof obj === 'bigint') {
- var bigIntStr = String(obj) + 'n';
- return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
- }
- var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
- if (typeof depth === 'undefined') {
- depth = 0;
- }
- if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
- return isArray(obj) ? '[Array]' : '[Object]';
- }
- var indent = getIndent(opts, depth);
- if (typeof seen === 'undefined') {
- seen = [];
- } else if (indexOf(seen, obj) >= 0) {
- return '[Circular]';
- }
- function inspect(value, from, noIndent) {
- if (from) {
- seen = $arrSlice.call(seen);
- seen.push(from);
- }
- if (noIndent) {
- var newOpts = {
- depth: opts.depth
- };
- if (has(opts, 'quoteStyle')) {
- newOpts.quoteStyle = opts.quoteStyle;
- }
- return inspect_(value, newOpts, depth + 1, seen);
- }
- return inspect_(value, opts, depth + 1, seen);
- }
- if (typeof obj === 'function' && !isRegExp(obj)) {
- // in older engines, regexes are callable
- var name = nameOf(obj);
- var keys = arrObjKeys(obj, inspect);
- return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
- }
- if (isSymbol(obj)) {
- var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
- return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
- }
- if (isElement(obj)) {
- var s = '<' + $toLowerCase.call(String(obj.nodeName));
- var attrs = obj.attributes || [];
- for (var i = 0; i < attrs.length; i++) {
- s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
- }
- s += '>';
- if (obj.childNodes && obj.childNodes.length) {
- s += '...';
- }
- s += '' + $toLowerCase.call(String(obj.nodeName)) + '>';
- return s;
- }
- if (isArray(obj)) {
- if (obj.length === 0) {
- return '[]';
- }
- var xs = arrObjKeys(obj, inspect);
- if (indent && !singleLineValues(xs)) {
- return '[' + indentedJoin(xs, indent) + ']';
- }
- return '[ ' + $join.call(xs, ', ') + ' ]';
- }
- if (isError(obj)) {
- var parts = arrObjKeys(obj, inspect);
- if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
- return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
- }
- if (parts.length === 0) {
- return '[' + String(obj) + ']';
- }
- return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
- }
- if (typeof obj === 'object' && customInspect) {
- if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
- return utilInspect(obj, {
- depth: maxDepth - depth
- });
- } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
- return obj.inspect();
- }
- }
- if (isMap(obj)) {
- var mapParts = [];
- if (mapForEach) {
- mapForEach.call(obj, function (value, key) {
- mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
- });
- }
- return collectionOf('Map', mapSize.call(obj), mapParts, indent);
- }
- if (isSet(obj)) {
- var setParts = [];
- if (setForEach) {
- setForEach.call(obj, function (value) {
- setParts.push(inspect(value, obj));
- });
- }
- return collectionOf('Set', setSize.call(obj), setParts, indent);
- }
- if (isWeakMap(obj)) {
- return weakCollectionOf('WeakMap');
- }
- if (isWeakSet(obj)) {
- return weakCollectionOf('WeakSet');
- }
- if (isWeakRef(obj)) {
- return weakCollectionOf('WeakRef');
- }
- if (isNumber(obj)) {
- return markBoxed(inspect(Number(obj)));
- }
- if (isBigInt(obj)) {
- return markBoxed(inspect(bigIntValueOf.call(obj)));
- }
- if (isBoolean(obj)) {
- return markBoxed(booleanValueOf.call(obj));
- }
- if (isString(obj)) {
- return markBoxed(inspect(String(obj)));
- }
- // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
- /* eslint-env browser */
- if (typeof window !== 'undefined' && obj === window) {
- return '{ [object Window] }';
- }
- if (obj === __webpack_require__.g) {
- return '{ [object globalThis] }';
- }
- if (!isDate(obj) && !isRegExp(obj)) {
- var ys = arrObjKeys(obj, inspect);
- var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
- var protoTag = obj instanceof Object ? '' : 'null prototype';
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
- var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
- var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
- if (ys.length === 0) {
- return tag + '{}';
- }
- if (indent) {
- return tag + '{' + indentedJoin(ys, indent) + '}';
- }
- return tag + '{ ' + $join.call(ys, ', ') + ' }';
- }
- return String(obj);
-};
-function wrapQuotes(s, defaultStyle, opts) {
- var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
- return quoteChar + s + quoteChar;
-}
-function quote(s) {
- return $replace.call(String(s), /"/g, '"');
-}
-function isArray(obj) {
- return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
-}
-function isDate(obj) {
- return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
-}
-function isRegExp(obj) {
- return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
-}
-function isError(obj) {
- return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
-}
-function isString(obj) {
- return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
-}
-function isNumber(obj) {
- return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
-}
-function isBoolean(obj) {
- return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
-}
-
-// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
-function isSymbol(obj) {
- if (hasShammedSymbols) {
- return obj && typeof obj === 'object' && obj instanceof Symbol;
- }
- if (typeof obj === 'symbol') {
- return true;
- }
- if (!obj || typeof obj !== 'object' || !symToString) {
- return false;
- }
- try {
- symToString.call(obj);
- return true;
- } catch (e) {}
- return false;
-}
-function isBigInt(obj) {
- if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
- return false;
- }
- try {
- bigIntValueOf.call(obj);
- return true;
- } catch (e) {}
- return false;
-}
-var hasOwn = Object.prototype.hasOwnProperty || function (key) {
- return key in this;
-};
-function has(obj, key) {
- return hasOwn.call(obj, key);
-}
-function toStr(obj) {
- return objectToString.call(obj);
-}
-function nameOf(f) {
- if (f.name) {
- return f.name;
- }
- var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
- if (m) {
- return m[1];
- }
- return null;
-}
-function indexOf(xs, x) {
- if (xs.indexOf) {
- return xs.indexOf(x);
- }
- for (var i = 0, l = xs.length; i < l; i++) {
- if (xs[i] === x) {
- return i;
- }
- }
- return -1;
-}
-function isMap(x) {
- if (!mapSize || !x || typeof x !== 'object') {
- return false;
- }
- try {
- mapSize.call(x);
- try {
- setSize.call(x);
- } catch (s) {
- return true;
- }
- return x instanceof Map; // core-js workaround, pre-v2.5.0
- } catch (e) {}
- return false;
-}
-function isWeakMap(x) {
- if (!weakMapHas || !x || typeof x !== 'object') {
- return false;
- }
- try {
- weakMapHas.call(x, weakMapHas);
- try {
- weakSetHas.call(x, weakSetHas);
- } catch (s) {
- return true;
- }
- return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
- } catch (e) {}
- return false;
-}
-function isWeakRef(x) {
- if (!weakRefDeref || !x || typeof x !== 'object') {
- return false;
- }
- try {
- weakRefDeref.call(x);
- return true;
- } catch (e) {}
- return false;
-}
-function isSet(x) {
- if (!setSize || !x || typeof x !== 'object') {
- return false;
- }
- try {
- setSize.call(x);
- try {
- mapSize.call(x);
- } catch (m) {
- return true;
- }
- return x instanceof Set; // core-js workaround, pre-v2.5.0
- } catch (e) {}
- return false;
-}
-function isWeakSet(x) {
- if (!weakSetHas || !x || typeof x !== 'object') {
- return false;
- }
- try {
- weakSetHas.call(x, weakSetHas);
- try {
- weakMapHas.call(x, weakMapHas);
- } catch (s) {
- return true;
- }
- return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
- } catch (e) {}
- return false;
-}
-function isElement(x) {
- if (!x || typeof x !== 'object') {
- return false;
- }
- if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
- return true;
- }
- return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
-}
-function inspectString(str, opts) {
- if (str.length > opts.maxStringLength) {
- var remaining = str.length - opts.maxStringLength;
- var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
- return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
- }
- // eslint-disable-next-line no-control-regex
- var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
- return wrapQuotes(s, 'single', opts);
-}
-function lowbyte(c) {
- var n = c.charCodeAt(0);
- var x = {
- 8: 'b',
- 9: 't',
- 10: 'n',
- 12: 'f',
- 13: 'r'
- }[n];
- if (x) {
- return '\\' + x;
- }
- return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
-}
-function markBoxed(str) {
- return 'Object(' + str + ')';
-}
-function weakCollectionOf(type) {
- return type + ' { ? }';
-}
-function collectionOf(type, size, entries, indent) {
- var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
- return type + ' (' + size + ') {' + joinedEntries + '}';
-}
-function singleLineValues(xs) {
- for (var i = 0; i < xs.length; i++) {
- if (indexOf(xs[i], '\n') >= 0) {
- return false;
- }
- }
- return true;
-}
-function getIndent(opts, depth) {
- var baseIndent;
- if (opts.indent === '\t') {
- baseIndent = '\t';
- } else if (typeof opts.indent === 'number' && opts.indent > 0) {
- baseIndent = $join.call(Array(opts.indent + 1), ' ');
- } else {
- return null;
- }
- return {
- base: baseIndent,
- prev: $join.call(Array(depth + 1), baseIndent)
- };
-}
-function indentedJoin(xs, indent) {
- if (xs.length === 0) {
- return '';
- }
- var lineJoiner = '\n' + indent.prev + indent.base;
- return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
-}
-function arrObjKeys(obj, inspect) {
- var isArr = isArray(obj);
- var xs = [];
- if (isArr) {
- xs.length = obj.length;
- for (var i = 0; i < obj.length; i++) {
- xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
- }
- }
- var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
- var symMap;
- if (hasShammedSymbols) {
- symMap = {};
- for (var k = 0; k < syms.length; k++) {
- symMap['$' + syms[k]] = syms[k];
- }
- }
- for (var key in obj) {
- // eslint-disable-line no-restricted-syntax
- if (!has(obj, key)) {
- continue;
- } // eslint-disable-line no-restricted-syntax, no-continue
- if (isArr && String(Number(key)) === key && key < obj.length) {
- continue;
- } // eslint-disable-line no-restricted-syntax, no-continue
- if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
- // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
- continue; // eslint-disable-line no-restricted-syntax, no-continue
- } else if ($test.call(/[^\w$]/, key)) {
- xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
- } else {
- xs.push(key + ': ' + inspect(obj[key], obj));
- }
- }
- if (typeof gOPS === 'function') {
- for (var j = 0; j < syms.length; j++) {
- if (isEnumerable.call(obj, syms[j])) {
- xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
- }
- }
- }
- return xs;
-}
-
-/***/ }),
-
-/***/ 14375:
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-"use strict";
-/* provided dependency */ var process = __webpack_require__(71624);
-// 'path' module extracted from Node.js v8.11.1 (only the posix part)
-// transplited with Babel
-
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-
-
-function assertPath(path) {
- if (typeof path !== 'string') {
- throw new TypeError('Path must be a string. Received ' + JSON.stringify(path));
- }
-}
-
-// Resolves . and .. elements in a path with directory names
-function normalizeStringPosix(path, allowAboveRoot) {
- var res = '';
- var lastSegmentLength = 0;
- var lastSlash = -1;
- var dots = 0;
- var code;
- for (var i = 0; i <= path.length; ++i) {
- if (i < path.length) code = path.charCodeAt(i);else if (code === 47 /*/*/) break;else code = 47 /*/*/;
- if (code === 47 /*/*/) {
- if (lastSlash === i - 1 || dots === 1) {
- // NOOP
- } else if (lastSlash !== i - 1 && dots === 2) {
- if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 /*.*/ || res.charCodeAt(res.length - 2) !== 46 /*.*/) {
- if (res.length > 2) {
- var lastSlashIndex = res.lastIndexOf('/');
- if (lastSlashIndex !== res.length - 1) {
- if (lastSlashIndex === -1) {
- res = '';
- lastSegmentLength = 0;
- } else {
- res = res.slice(0, lastSlashIndex);
- lastSegmentLength = res.length - 1 - res.lastIndexOf('/');
- }
- lastSlash = i;
- dots = 0;
- continue;
- }
- } else if (res.length === 2 || res.length === 1) {
- res = '';
- lastSegmentLength = 0;
- lastSlash = i;
- dots = 0;
- continue;
- }
- }
- if (allowAboveRoot) {
- if (res.length > 0) res += '/..';else res = '..';
- lastSegmentLength = 2;
- }
- } else {
- if (res.length > 0) res += '/' + path.slice(lastSlash + 1, i);else res = path.slice(lastSlash + 1, i);
- lastSegmentLength = i - lastSlash - 1;
- }
- lastSlash = i;
- dots = 0;
- } else if (code === 46 /*.*/ && dots !== -1) {
- ++dots;
- } else {
- dots = -1;
- }
- }
- return res;
-}
-function _format(sep, pathObject) {
- var dir = pathObject.dir || pathObject.root;
- var base = pathObject.base || (pathObject.name || '') + (pathObject.ext || '');
- if (!dir) {
- return base;
- }
- if (dir === pathObject.root) {
- return dir + base;
- }
- return dir + sep + base;
-}
-var posix = {
- // path.resolve([from ...], to)
- resolve: function resolve() {
- var resolvedPath = '';
- var resolvedAbsolute = false;
- var cwd;
- for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
- var path;
- if (i >= 0) path = arguments[i];else {
- if (cwd === undefined) cwd = process.cwd();
- path = cwd;
- }
- assertPath(path);
-
- // Skip empty entries
- if (path.length === 0) {
- continue;
- }
- resolvedPath = path + '/' + resolvedPath;
- resolvedAbsolute = path.charCodeAt(0) === 47 /*/*/;
- }
-
- // At this point the path should be resolved to a full absolute path, but
- // handle relative paths to be safe (might happen when process.cwd() fails)
-
- // Normalize the path
- resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute);
- if (resolvedAbsolute) {
- if (resolvedPath.length > 0) return '/' + resolvedPath;else return '/';
- } else if (resolvedPath.length > 0) {
- return resolvedPath;
- } else {
- return '.';
- }
- },
- normalize: function normalize(path) {
- assertPath(path);
- if (path.length === 0) return '.';
- var isAbsolute = path.charCodeAt(0) === 47 /*/*/;
- var trailingSeparator = path.charCodeAt(path.length - 1) === 47 /*/*/;
-
- // Normalize the path
- path = normalizeStringPosix(path, !isAbsolute);
- if (path.length === 0 && !isAbsolute) path = '.';
- if (path.length > 0 && trailingSeparator) path += '/';
- if (isAbsolute) return '/' + path;
- return path;
- },
- isAbsolute: function isAbsolute(path) {
- assertPath(path);
- return path.length > 0 && path.charCodeAt(0) === 47 /*/*/;
- },
- join: function join() {
- if (arguments.length === 0) return '.';
- var joined;
- for (var i = 0; i < arguments.length; ++i) {
- var arg = arguments[i];
- assertPath(arg);
- if (arg.length > 0) {
- if (joined === undefined) joined = arg;else joined += '/' + arg;
- }
- }
- if (joined === undefined) return '.';
- return posix.normalize(joined);
- },
- relative: function relative(from, to) {
- assertPath(from);
- assertPath(to);
- if (from === to) return '';
- from = posix.resolve(from);
- to = posix.resolve(to);
- if (from === to) return '';
-
- // Trim any leading backslashes
- var fromStart = 1;
- for (; fromStart < from.length; ++fromStart) {
- if (from.charCodeAt(fromStart) !== 47 /*/*/) break;
- }
- var fromEnd = from.length;
- var fromLen = fromEnd - fromStart;
-
- // Trim any leading backslashes
- var toStart = 1;
- for (; toStart < to.length; ++toStart) {
- if (to.charCodeAt(toStart) !== 47 /*/*/) break;
- }
- var toEnd = to.length;
- var toLen = toEnd - toStart;
-
- // Compare paths to find the longest common path from root
- var length = fromLen < toLen ? fromLen : toLen;
- var lastCommonSep = -1;
- var i = 0;
- for (; i <= length; ++i) {
- if (i === length) {
- if (toLen > length) {
- if (to.charCodeAt(toStart + i) === 47 /*/*/) {
- // We get here if `from` is the exact base path for `to`.
- // For example: from='/foo/bar'; to='/foo/bar/baz'
- return to.slice(toStart + i + 1);
- } else if (i === 0) {
- // We get here if `from` is the root
- // For example: from='/'; to='/foo'
- return to.slice(toStart + i);
- }
- } else if (fromLen > length) {
- if (from.charCodeAt(fromStart + i) === 47 /*/*/) {
- // We get here if `to` is the exact base path for `from`.
- // For example: from='/foo/bar/baz'; to='/foo/bar'
- lastCommonSep = i;
- } else if (i === 0) {
- // We get here if `to` is the root.
- // For example: from='/foo'; to='/'
- lastCommonSep = 0;
- }
- }
- break;
- }
- var fromCode = from.charCodeAt(fromStart + i);
- var toCode = to.charCodeAt(toStart + i);
- if (fromCode !== toCode) break;else if (fromCode === 47 /*/*/) lastCommonSep = i;
- }
- var out = '';
- // Generate the relative path based on the path difference between `to`
- // and `from`
- for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
- if (i === fromEnd || from.charCodeAt(i) === 47 /*/*/) {
- if (out.length === 0) out += '..';else out += '/..';
- }
- }
-
- // Lastly, append the rest of the destination (`to`) path that comes after
- // the common path parts
- if (out.length > 0) return out + to.slice(toStart + lastCommonSep);else {
- toStart += lastCommonSep;
- if (to.charCodeAt(toStart) === 47 /*/*/) ++toStart;
- return to.slice(toStart);
- }
- },
- _makeLong: function _makeLong(path) {
- return path;
- },
- dirname: function dirname(path) {
- assertPath(path);
- if (path.length === 0) return '.';
- var code = path.charCodeAt(0);
- var hasRoot = code === 47 /*/*/;
- var end = -1;
- var matchedSlash = true;
- for (var i = path.length - 1; i >= 1; --i) {
- code = path.charCodeAt(i);
- if (code === 47 /*/*/) {
- if (!matchedSlash) {
- end = i;
- break;
- }
- } else {
- // We saw the first non-path separator
- matchedSlash = false;
- }
- }
- if (end === -1) return hasRoot ? '/' : '.';
- if (hasRoot && end === 1) return '//';
- return path.slice(0, end);
- },
- basename: function basename(path, ext) {
- if (ext !== undefined && typeof ext !== 'string') throw new TypeError('"ext" argument must be a string');
- assertPath(path);
- var start = 0;
- var end = -1;
- var matchedSlash = true;
- var i;
- if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {
- if (ext.length === path.length && ext === path) return '';
- var extIdx = ext.length - 1;
- var firstNonSlashEnd = -1;
- for (i = path.length - 1; i >= 0; --i) {
- var code = path.charCodeAt(i);
- if (code === 47 /*/*/) {
- // If we reached a path separator that was not part of a set of path
- // separators at the end of the string, stop now
- if (!matchedSlash) {
- start = i + 1;
- break;
- }
- } else {
- if (firstNonSlashEnd === -1) {
- // We saw the first non-path separator, remember this index in case
- // we need it if the extension ends up not matching
- matchedSlash = false;
- firstNonSlashEnd = i + 1;
- }
- if (extIdx >= 0) {
- // Try to match the explicit extension
- if (code === ext.charCodeAt(extIdx)) {
- if (--extIdx === -1) {
- // We matched the extension, so mark this as the end of our path
- // component
- end = i;
- }
- } else {
- // Extension does not match, so our result is the entire path
- // component
- extIdx = -1;
- end = firstNonSlashEnd;
- }
- }
- }
- }
- if (start === end) end = firstNonSlashEnd;else if (end === -1) end = path.length;
- return path.slice(start, end);
- } else {
- for (i = path.length - 1; i >= 0; --i) {
- if (path.charCodeAt(i) === 47 /*/*/) {
- // If we reached a path separator that was not part of a set of path
- // separators at the end of the string, stop now
- if (!matchedSlash) {
- start = i + 1;
- break;
- }
- } else if (end === -1) {
- // We saw the first non-path separator, mark this as the end of our
- // path component
- matchedSlash = false;
- end = i + 1;
- }
- }
- if (end === -1) return '';
- return path.slice(start, end);
- }
- },
- extname: function extname(path) {
- assertPath(path);
- var startDot = -1;
- var startPart = 0;
- var end = -1;
- var matchedSlash = true;
- // Track the state of characters (if any) we see before our first dot and
- // after any path separator we find
- var preDotState = 0;
- for (var i = path.length - 1; i >= 0; --i) {
- var code = path.charCodeAt(i);
- if (code === 47 /*/*/) {
- // If we reached a path separator that was not part of a set of path
- // separators at the end of the string, stop now
- if (!matchedSlash) {
- startPart = i + 1;
- break;
- }
- continue;
- }
- if (end === -1) {
- // We saw the first non-path separator, mark this as the end of our
- // extension
- matchedSlash = false;
- end = i + 1;
- }
- if (code === 46 /*.*/) {
- // If this is our first dot, mark it as the start of our extension
- if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1;
- } else if (startDot !== -1) {
- // We saw a non-dot and non-path separator before our dot, so we should
- // have a good chance at having a non-empty extension
- preDotState = -1;
- }
- }
- if (startDot === -1 || end === -1 ||
- // We saw a non-dot character immediately before the dot
- preDotState === 0 ||
- // The (right-most) trimmed path component is exactly '..'
- preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
- return '';
- }
- return path.slice(startDot, end);
- },
- format: function format(pathObject) {
- if (pathObject === null || typeof pathObject !== 'object') {
- throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof pathObject);
- }
- return _format('/', pathObject);
- },
- parse: function parse(path) {
- assertPath(path);
- var ret = {
- root: '',
- dir: '',
- base: '',
- ext: '',
- name: ''
- };
- if (path.length === 0) return ret;
- var code = path.charCodeAt(0);
- var isAbsolute = code === 47 /*/*/;
- var start;
- if (isAbsolute) {
- ret.root = '/';
- start = 1;
- } else {
- start = 0;
- }
- var startDot = -1;
- var startPart = 0;
- var end = -1;
- var matchedSlash = true;
- var i = path.length - 1;
-
- // Track the state of characters (if any) we see before our first dot and
- // after any path separator we find
- var preDotState = 0;
-
- // Get non-dir info
- for (; i >= start; --i) {
- code = path.charCodeAt(i);
- if (code === 47 /*/*/) {
- // If we reached a path separator that was not part of a set of path
- // separators at the end of the string, stop now
- if (!matchedSlash) {
- startPart = i + 1;
- break;
- }
- continue;
- }
- if (end === -1) {
- // We saw the first non-path separator, mark this as the end of our
- // extension
- matchedSlash = false;
- end = i + 1;
- }
- if (code === 46 /*.*/) {
- // If this is our first dot, mark it as the start of our extension
- if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1;
- } else if (startDot !== -1) {
- // We saw a non-dot and non-path separator before our dot, so we should
- // have a good chance at having a non-empty extension
- preDotState = -1;
- }
- }
- if (startDot === -1 || end === -1 ||
- // We saw a non-dot character immediately before the dot
- preDotState === 0 ||
- // The (right-most) trimmed path component is exactly '..'
- preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
- if (end !== -1) {
- if (startPart === 0 && isAbsolute) ret.base = ret.name = path.slice(1, end);else ret.base = ret.name = path.slice(startPart, end);
- }
- } else {
- if (startPart === 0 && isAbsolute) {
- ret.name = path.slice(1, startDot);
- ret.base = path.slice(1, end);
- } else {
- ret.name = path.slice(startPart, startDot);
- ret.base = path.slice(startPart, end);
- }
- ret.ext = path.slice(startDot, end);
- }
- if (startPart > 0) ret.dir = path.slice(0, startPart - 1);else if (isAbsolute) ret.dir = '/';
- return ret;
- },
- sep: '/',
- delimiter: ':',
- win32: null,
- posix: null
-};
-posix.posix = posix;
-module.exports = posix;
-
-/***/ }),
-
-/***/ 71624:
-/***/ ((module) => {
-
-// shim for using process in browser
-var process = module.exports = {};
-
-// cached from whatever global is present so that test runners that stub it
-// don't break things. But we need to wrap it in a try catch in case it is
-// wrapped in strict mode code which doesn't define any globals. It's inside a
-// function because try/catches deoptimize in certain engines.
-
-var cachedSetTimeout;
-var cachedClearTimeout;
-function defaultSetTimout() {
- throw new Error('setTimeout has not been defined');
-}
-function defaultClearTimeout() {
- throw new Error('clearTimeout has not been defined');
-}
-(function () {
- try {
- if (typeof setTimeout === 'function') {
- cachedSetTimeout = setTimeout;
- } else {
- cachedSetTimeout = defaultSetTimout;
- }
- } catch (e) {
- cachedSetTimeout = defaultSetTimout;
- }
- try {
- if (typeof clearTimeout === 'function') {
- cachedClearTimeout = clearTimeout;
- } else {
- cachedClearTimeout = defaultClearTimeout;
- }
- } catch (e) {
- cachedClearTimeout = defaultClearTimeout;
- }
-})();
-function runTimeout(fun) {
- if (cachedSetTimeout === setTimeout) {
- //normal enviroments in sane situations
- return setTimeout(fun, 0);
- }
- // if setTimeout wasn't available but was latter defined
- if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
- cachedSetTimeout = setTimeout;
- return setTimeout(fun, 0);
- }
- try {
- // when when somebody has screwed with setTimeout but no I.E. maddness
- return cachedSetTimeout(fun, 0);
- } catch (e) {
- try {
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
- return cachedSetTimeout.call(null, fun, 0);
- } catch (e) {
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
- return cachedSetTimeout.call(this, fun, 0);
- }
- }
-}
-function runClearTimeout(marker) {
- if (cachedClearTimeout === clearTimeout) {
- //normal enviroments in sane situations
- return clearTimeout(marker);
- }
- // if clearTimeout wasn't available but was latter defined
- if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
- cachedClearTimeout = clearTimeout;
- return clearTimeout(marker);
- }
- try {
- // when when somebody has screwed with setTimeout but no I.E. maddness
- return cachedClearTimeout(marker);
- } catch (e) {
- try {
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
- return cachedClearTimeout.call(null, marker);
- } catch (e) {
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
- // Some versions of I.E. have different rules for clearTimeout vs setTimeout
- return cachedClearTimeout.call(this, marker);
- }
- }
-}
-var queue = [];
-var draining = false;
-var currentQueue;
-var queueIndex = -1;
-function cleanUpNextTick() {
- if (!draining || !currentQueue) {
- return;
- }
- draining = false;
- if (currentQueue.length) {
- queue = currentQueue.concat(queue);
- } else {
- queueIndex = -1;
- }
- if (queue.length) {
- drainQueue();
- }
-}
-function drainQueue() {
- if (draining) {
- return;
- }
- var timeout = runTimeout(cleanUpNextTick);
- draining = true;
- var len = queue.length;
- while (len) {
- currentQueue = queue;
- queue = [];
- while (++queueIndex < len) {
- if (currentQueue) {
- currentQueue[queueIndex].run();
- }
- }
- queueIndex = -1;
- len = queue.length;
- }
- currentQueue = null;
- draining = false;
- runClearTimeout(timeout);
-}
-process.nextTick = function (fun) {
- var args = new Array(arguments.length - 1);
- if (arguments.length > 1) {
- for (var i = 1; i < arguments.length; i++) {
- args[i - 1] = arguments[i];
- }
- }
- queue.push(new Item(fun, args));
- if (queue.length === 1 && !draining) {
- runTimeout(drainQueue);
- }
-};
-
-// v8 likes predictible objects
-function Item(fun, array) {
- this.fun = fun;
- this.array = array;
-}
-Item.prototype.run = function () {
- this.fun.apply(null, this.array);
-};
-process.title = 'browser';
-process.browser = true;
-process.env = {};
-process.argv = [];
-process.version = ''; // empty string to avoid regexp issues
-process.versions = {};
-function noop() {}
-process.on = noop;
-process.addListener = noop;
-process.once = noop;
-process.off = noop;
-process.removeListener = noop;
-process.removeAllListeners = noop;
-process.emit = noop;
-process.prependListener = noop;
-process.prependOnceListener = noop;
-process.listeners = function (name) {
- return [];
-};
-process.binding = function (name) {
- throw new Error('process.binding is not supported');
-};
-process.cwd = function () {
- return '/';
-};
-process.chdir = function (dir) {
- throw new Error('process.chdir is not supported');
-};
-process.umask = function () {
- return 0;
-};
-
-/***/ }),
-
-/***/ 43277:
-/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
-
-"use strict";
-__webpack_require__.r(__webpack_exports__);
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ decode: () => (/* binding */ decode),
-/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
-/* harmony export */ encode: () => (/* binding */ encode),
-/* harmony export */ toASCII: () => (/* binding */ toASCII),
-/* harmony export */ toUnicode: () => (/* binding */ toUnicode),
-/* harmony export */ ucs2decode: () => (/* binding */ ucs2decode),
-/* harmony export */ ucs2encode: () => (/* binding */ ucs2encode)
-/* harmony export */ });
-
-
-/** Highest positive signed 32-bit float value */
-const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
-
-/** Bootstring parameters */
-const base = 36;
-const tMin = 1;
-const tMax = 26;
-const skew = 38;
-const damp = 700;
-const initialBias = 72;
-const initialN = 128; // 0x80
-const delimiter = '-'; // '\x2D'
-
-/** Regular expressions */
-const regexPunycode = /^xn--/;
-const regexNonASCII = /[^\0-\x7F]/; // Note: U+007F DEL is excluded too.
-const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
-
-/** Error messages */
-const errors = {
- 'overflow': 'Overflow: input needs wider integers to process',
- 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
- 'invalid-input': 'Invalid input'
-};
-
-/** Convenience shortcuts */
-const baseMinusTMin = base - tMin;
-const floor = Math.floor;
-const stringFromCharCode = String.fromCharCode;
-
-/*--------------------------------------------------------------------------*/
-
-/**
- * A generic error utility function.
- * @private
- * @param {String} type The error type.
- * @returns {Error} Throws a `RangeError` with the applicable error message.
- */
-function error(type) {
- throw new RangeError(errors[type]);
-}
-
-/**
- * A generic `Array#map` utility function.
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} callback The function that gets called for every array
- * item.
- * @returns {Array} A new array of values returned by the callback function.
- */
-function map(array, callback) {
- const result = [];
- let length = array.length;
- while (length--) {
- result[length] = callback(array[length]);
- }
- return result;
-}
-
-/**
- * A simple `Array#map`-like wrapper to work with domain name strings or email
- * addresses.
- * @private
- * @param {String} domain The domain name or email address.
- * @param {Function} callback The function that gets called for every
- * character.
- * @returns {String} A new string of characters returned by the callback
- * function.
- */
-function mapDomain(domain, callback) {
- const parts = domain.split('@');
- let result = '';
- if (parts.length > 1) {
- // In email addresses, only the domain name should be punycoded. Leave
- // the local part (i.e. everything up to `@`) intact.
- result = parts[0] + '@';
- domain = parts[1];
- }
- // Avoid `split(regex)` for IE8 compatibility. See #17.
- domain = domain.replace(regexSeparators, '\x2E');
- const labels = domain.split('.');
- const encoded = map(labels, callback).join('.');
- return result + encoded;
-}
-
-/**
- * Creates an array containing the numeric code points of each Unicode
- * character in the string. While JavaScript uses UCS-2 internally,
- * this function will convert a pair of surrogate halves (each of which
- * UCS-2 exposes as separate characters) into a single code point,
- * matching UTF-16.
- * @see `punycode.ucs2.encode`
- * @see