(()=>{"use strict";var t={509:(t,r,e)=>{var n=e(9985),o=e(3691),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},767:(t,r,e)=>{var n=e(3622),o=TypeError;t.exports=function(t,r){if(n(r,t))return t;throw new o("Incorrect invocation")}},5027:(t,r,e)=>{var n=e(8999),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},4328:(t,r,e)=>{var n=e(5290),o=e(7578),i=e(6310),a=function(t){return function(r,e,a){var s,u=n(r),c=i(u),p=o(a,c);if(t&&e!=e){for(;c>p;)if((s=u[p++])!=s)return!0}else for(;c>p;p++)if((t||p in u)&&u[p]===e)return t||p||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},6648:(t,r,e)=>{var n=e(8844),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},926:(t,r,e)=>{var n=e(3043),o=e(9985),i=e(6648),a=e(4201)("toStringTag"),s=Object,u="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=s(t),a))?e:u?i(r):"Object"===(n=i(r))&&o(r.callee)?"Arguments":n}},8758:(t,r,e)=>{var n=e(6812),o=e(9152),i=e(2474),a=e(2560);t.exports=function(t,r,e){for(var s=o(r),u=a.f,c=i.f,p=0;p{var n=e(3689);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},5773:(t,r,e)=>{var n=e(7697),o=e(2560),i=e(5684);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},5684:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},1880:(t,r,e)=>{var n=e(9985),o=e(2560),i=e(8702),a=e(5014);t.exports=function(t,r,e,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:r;if(n(e)&&i(e,c,s),s.global)u?t[r]=e:a(r,e);else{try{s.unsafe?t[r]&&(u=!0):delete t[r]}catch(t){}u?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},5014:(t,r,e)=>{var n=e(9037),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},7697:(t,r,e)=>{var n=e(3689);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},2659:t=>{var r="object"==typeof document&&document.all,e=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:e}},6420:(t,r,e)=>{var n=e(9037),o=e(8999),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},71:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:(t,r,e)=>{var n,o,i=e(9037),a=e(71),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,p=c&&c.v8;p&&(o=(n=p.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},2739:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9989:(t,r,e)=>{var n=e(9037),o=e(2474).f,i=e(5773),a=e(1880),s=e(5014),u=e(8758),c=e(5266);t.exports=function(t,r){var e,p,f,l,h,v=t.target,y=t.global,b=t.stat;if(e=y?n:b?n[v]||s(v,{}):(n[v]||{}).prototype)for(p in r){if(l=r[p],f=t.dontCallGetSet?(h=o(e,p))&&h.value:e[p],!c(y?p:v+(b?".":"#")+p,t.forced)&&void 0!==f){if(typeof l==typeof f)continue;u(l,f)}(t.sham||f&&f.sham)&&i(l,"sham",!0),a(e,p,l,t)}}},3689:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},4071:(t,r,e)=>{var n=e(6576),o=e(509),i=e(7215),a=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?a(t,r):function(){return t.apply(r,arguments)}}},7215:(t,r,e)=>{var n=e(3689);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},2615:(t,r,e)=>{var n=e(7215),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},1236:(t,r,e)=>{var n=e(7697),o=e(6812),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},6576:(t,r,e)=>{var n=e(6648),o=e(8844);t.exports=function(t){if("Function"===n(t))return o(t)}},8844:(t,r,e)=>{var n=e(7215),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);t.exports=n?a:function(t){return function(){return i.apply(t,arguments)}}},6058:(t,r,e)=>{var n=e(9037),o=e(9985);t.exports=function(t,r){return arguments.length<2?(e=n[t],o(e)?e:void 0):n[t]&&n[t][r];var e}},2302:t=>{t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},1664:(t,r,e)=>{var n=e(926),o=e(4849),i=e(981),a=e(9478),s=e(4201)("iterator");t.exports=function(t){if(!i(t))return o(t,s)||o(t,"@@iterator")||a[n(t)]}},5185:(t,r,e)=>{var n=e(2615),o=e(509),i=e(5027),a=e(3691),s=e(1664),u=TypeError;t.exports=function(t,r){var e=arguments.length<2?s(t):r;if(o(e))return i(n(e,t));throw new u(a(t)+" is not iterable")}},4849:(t,r,e)=>{var n=e(509),o=e(981);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},9037:function(t,r,e){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||function(){return this}()||this||Function("return this")()},6812:(t,r,e)=>{var n=e(8844),o=e(690),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},7248:t=>{t.exports={}},2688:(t,r,e)=>{var n=e(6058);t.exports=n("document","documentElement")},8506:(t,r,e)=>{var n=e(7697),o=e(3689),i=e(6420);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},4413:(t,r,e)=>{var n=e(8844),o=e(3689),i=e(6648),a=Object,s=n("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?s(t,""):a(t)}:a},6738:(t,r,e)=>{var n=e(8844),o=e(9985),i=e(4091),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},618:(t,r,e)=>{var n,o,i,a=e(9834),s=e(9037),u=e(8999),c=e(5773),p=e(6812),f=e(4091),l=e(2713),h=e(7248),v="Object already initialized",y=s.TypeError,b=s.WeakMap;if(a||f.state){var d=f.state||(f.state=new b);d.get=d.get,d.has=d.has,d.set=d.set,n=function(t,r){if(d.has(t))throw new y(v);return r.facade=t,d.set(t,r),r},o=function(t){return d.get(t)||{}},i=function(t){return d.has(t)}}else{var g=l("state");h[g]=!0,n=function(t,r){if(p(t,g))throw new y(v);return r.facade=t,c(t,g,r),r},o=function(t){return p(t,g)?t[g]:{}},i=function(t){return p(t,g)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(r){var e;if(!u(r)||(e=o(r)).type!==t)throw new y("Incompatible receiver, "+t+" required");return e}}}},3292:(t,r,e)=>{var n=e(4201),o=e(9478),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},9985:(t,r,e)=>{var n=e(2659),o=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},5266:(t,r,e)=>{var n=e(3689),o=e(9985),i=/#|\.prototype\./,a=function(t,r){var e=u[s(t)];return e===p||e!==c&&(o(r)?n(r):!!r)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",p=a.POLYFILL="P";t.exports=a},981:t=>{t.exports=function(t){return null==t}},8999:(t,r,e)=>{var n=e(9985),o=e(2659),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},3931:t=>{t.exports=!1},734:(t,r,e)=>{var n=e(6058),o=e(9985),i=e(3622),a=e(9525),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,s(t))}},8734:(t,r,e)=>{var n=e(4071),o=e(2615),i=e(5027),a=e(3691),s=e(3292),u=e(6310),c=e(3622),p=e(5185),f=e(1664),l=e(2125),h=TypeError,Result=function(t,r){this.stopped=t,this.result=r},v=Result.prototype;t.exports=function(t,r,e){var y,b,d,g,x,w,m,S=e&&e.that,O=!(!e||!e.AS_ENTRIES),_=!(!e||!e.IS_RECORD),E=!(!e||!e.IS_ITERATOR),j=!(!e||!e.INTERRUPTED),I=n(r,S),T=function(t){return y&&l(y,"normal",t),new Result(!0,t)},L=function(t){return O?(i(t),j?I(t[0],t[1],T):I(t[0],t[1])):j?I(t,T):I(t)};if(_)y=t.iterator;else if(E)y=t;else{if(!(b=f(t)))throw new h(a(t)+" is not iterable");if(s(b)){for(d=0,g=u(t);g>d;d++)if((x=L(t[d]))&&c(v,x))return x;return new Result(!1)}y=p(t,b)}for(w=_?t.next:y.next;!(m=o(w,y)).done;){try{x=L(m.value)}catch(t){l(y,"throw",t)}if("object"==typeof x&&x&&c(v,x))return x}return new Result(!1)}},2125:(t,r,e)=>{var n=e(2615),o=e(5027),i=e(4849);t.exports=function(t,r,e){var a,s;o(t);try{if(!(a=i(t,"return"))){if("throw"===r)throw e;return e}a=n(a,t)}catch(t){s=!0,a=t}if("throw"===r)throw e;if(s)throw a;return o(a),e}},2013:(t,r,e)=>{var n,o,i,a=e(3689),s=e(9985),u=e(8999),c=e(5391),p=e(1868),f=e(1880),l=e(4201),h=e(3931),v=l("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=p(p(i)))!==Object.prototype&&(n=o):y=!0),!u(n)||a((function(){var t={};return n[v].call(t)!==t}))?n={}:h&&(n=c(n)),s(n[v])||f(n,v,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:y}},9478:t=>{t.exports={}},6310:(t,r,e)=>{var n=e(3126);t.exports=function(t){return n(t.length)}},8702:(t,r,e)=>{var n=e(8844),o=e(3689),i=e(9985),a=e(6812),s=e(7697),u=e(1236).CONFIGURABLE,c=e(6738),p=e(618),f=p.enforce,l=p.get,h=String,v=Object.defineProperty,y=n("".slice),b=n("".replace),d=n([].join),g=s&&!o((function(){return 8!==v((function(){}),"length",{value:8}).length})),x=String(String).split("String"),w=t.exports=function(t,r,e){"Symbol("===y(h(r),0,7)&&(r="["+b(h(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!a(t,"name")||u&&t.name!==r)&&(s?v(t,"name",{value:r,configurable:!0}):t.name=r),g&&e&&a(e,"arity")&&t.length!==e.arity&&v(t,"length",{value:e.arity});try{e&&a(e,"constructor")&&e.constructor?s&&v(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=f(t);return a(n,"source")||(n.source=d(x,"string"==typeof r?r:"")),t};Function.prototype.toString=w((function(){return i(this)&&l(this).source||c(this)}),"toString")},8828:t=>{var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},5391:(t,r,e)=>{var n,o=e(5027),i=e(8920),a=e(2739),s=e(7248),u=e(2688),c=e(6420),p=e(2713),f="prototype",l="script",h=p("IE_PROTO"),EmptyConstructor=function(){},v=function(t){return"<"+l+">"+t+""},NullProtoObjectViaActiveX=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},NullProtoObject=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;NullProtoObject="undefined"!=typeof document?document.domain&&n?NullProtoObjectViaActiveX(n):(r=c("iframe"),e="java"+l+":",r.style.display="none",u.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):NullProtoObjectViaActiveX(n);for(var o=a.length;o--;)delete NullProtoObject[f][a[o]];return NullProtoObject()};s[h]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(EmptyConstructor[f]=o(t),e=new EmptyConstructor,EmptyConstructor[f]=null,e[h]=t):e=NullProtoObject(),void 0===r?e:i.f(e,r)}},8920:(t,r,e)=>{var n=e(7697),o=e(5648),i=e(2560),a=e(5027),s=e(5290),u=e(300);r.f=n&&!o?Object.defineProperties:function(t,r){a(t);for(var e,n=s(r),o=u(r),c=o.length,p=0;c>p;)i.f(t,e=o[p++],n[e]);return t}},2560:(t,r,e)=>{var n=e(7697),o=e(8506),i=e(5648),a=e(5027),s=e(8360),u=TypeError,c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f="enumerable",l="configurable",h="writable";r.f=n?i?function(t,r,e){if(a(t),r=s(r),a(e),"function"==typeof t&&"prototype"===r&&"value"in e&&h in e&&!e[h]){var n=p(t,r);n&&n[h]&&(t[r]=e.value,e={configurable:l in e?e[l]:n[l],enumerable:f in e?e[f]:n[f],writable:!1})}return c(t,r,e)}:c:function(t,r,e){if(a(t),r=s(r),a(e),o)try{return c(t,r,e)}catch(t){}if("get"in e||"set"in e)throw new u("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},2474:(t,r,e)=>{var n=e(7697),o=e(2615),i=e(9556),a=e(5684),s=e(5290),u=e(8360),c=e(6812),p=e(8506),f=Object.getOwnPropertyDescriptor;r.f=n?f:function(t,r){if(t=s(t),r=u(r),p)try{return f(t,r)}catch(t){}if(c(t,r))return a(!o(i.f,t,r),t[r])}},2741:(t,r,e)=>{var n=e(4948),o=e(2739).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},7518:(t,r)=>{r.f=Object.getOwnPropertySymbols},1868:(t,r,e)=>{var n=e(6812),o=e(9985),i=e(690),a=e(2713),s=e(1748),u=a("IE_PROTO"),c=Object,p=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var r=i(t);if(n(r,u))return r[u];var e=r.constructor;return o(e)&&r instanceof e?e.prototype:r instanceof c?p:null}},3622:(t,r,e)=>{var n=e(8844);t.exports=n({}.isPrototypeOf)},4948:(t,r,e)=>{var n=e(8844),o=e(6812),i=e(5290),a=e(4328).indexOf,s=e(7248),u=n([].push);t.exports=function(t,r){var e,n=i(t),c=0,p=[];for(e in n)!o(s,e)&&o(n,e)&&u(p,e);for(;r.length>c;)o(n,e=r[c++])&&(~a(p,e)||u(p,e));return p}},300:(t,r,e)=>{var n=e(4948),o=e(2739);t.exports=Object.keys||function(t){return n(t,o)}},9556:(t,r)=>{var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},5899:(t,r,e)=>{var n=e(2615),o=e(9985),i=e(8999),a=TypeError;t.exports=function(t,r){var e,s;if("string"===r&&o(e=t.toString)&&!i(s=n(e,t)))return s;if(o(e=t.valueOf)&&!i(s=n(e,t)))return s;if("string"!==r&&o(e=t.toString)&&!i(s=n(e,t)))return s;throw new a("Can't convert object to primitive value")}},9152:(t,r,e)=>{var n=e(6058),o=e(8844),i=e(2741),a=e(7518),s=e(5027),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(s(t)),e=a.f;return e?u(r,e(t)):r}},4684:(t,r,e)=>{var n=e(981),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},2713:(t,r,e)=>{var n=e(3430),o=e(4630),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},4091:(t,r,e)=>{var n=e(9037),o=e(5014),i="__core-js_shared__",a=n[i]||o(i,{});t.exports=a},3430:(t,r,e)=>{var n=e(3931),o=e(4091);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.33.2",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"})},146:(t,r,e)=>{var n=e(3615),o=e(3689),i=e(9037).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},7578:(t,r,e)=>{var n=e(8700),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},5290:(t,r,e)=>{var n=e(4413),o=e(4684);t.exports=function(t){return n(o(t))}},8700:(t,r,e)=>{var n=e(8828);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},3126:(t,r,e)=>{var n=e(8700),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},690:(t,r,e)=>{var n=e(4684),o=Object;t.exports=function(t){return o(n(t))}},8732:(t,r,e)=>{var n=e(2615),o=e(8999),i=e(734),a=e(4849),s=e(5899),u=e(4201),c=TypeError,p=u("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,u=a(t,p);if(u){if(void 0===r&&(r="default"),e=n(u,t,r),!o(e)||i(e))return e;throw new c("Can't convert object to primitive value")}return void 0===r&&(r="number"),s(t,r)}},8360:(t,r,e)=>{var n=e(8732),o=e(734);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},3043:(t,r,e)=>{var n={};n[e(4201)("toStringTag")]="z",t.exports="[object z]"===String(n)},3691:t=>{var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},4630:(t,r,e)=>{var n=e(8844),o=0,i=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},9525:(t,r,e)=>{var n=e(146);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5648:(t,r,e)=>{var n=e(7697),o=e(3689);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},9834:(t,r,e)=>{var n=e(9037),o=e(9985),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},4201:(t,r,e)=>{var n=e(9037),o=e(3430),i=e(6812),a=e(4630),s=e(146),u=e(9525),c=n.Symbol,p=o("wks"),f=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return i(p,t)||(p[t]=s&&i(c,t)?c[t]:f("Symbol."+t)),p[t]}},7602:(t,r,e)=>{var n=e(9989),o=e(9037),i=e(767),a=e(9985),s=e(1868),u=e(5773),c=e(3689),p=e(6812),f=e(4201),l=e(2013).IteratorPrototype,h=e(3931),v=f("toStringTag"),y=TypeError,b=o.Iterator,d=h||!a(b)||b.prototype!==l||!c((function(){b({})})),g=function Iterator(){if(i(this,l),s(this)===l)throw new y("Abstract class Iterator not directly constructable")};p(l,v)||u(l,v,"Iterator"),!d&&p(l,"constructor")&&l.constructor!==Object||u(l,"constructor",g),g.prototype=l,n({global:!0,constructor:!0,forced:d},{Iterator:g})},928:(t,r,e)=>{var n=e(9989),o=e(8734),i=e(509),a=e(5027),s=e(2302);n({target:"Iterator",proto:!0,real:!0},{find:function(t){a(this),i(t);var r=s(this),e=0;return o(r,(function(r,n){if(t(r,e++))return n(r)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},5:(t,r,e)=>{var n=e(9989),o=e(8734),i=e(509),a=e(5027),s=e(2302);n({target:"Iterator",proto:!0,real:!0},{forEach:function(t){a(this),i(t);var r=s(this),e=0;o(r,(function(r){t(r,e++)}),{IS_RECORD:!0})}})}},r={};function __webpack_require__(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}};return t[e].call(o.exports,o,o.exports,__webpack_require__),o.exports}__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),(()=>{const t=window.wp.domReady;__webpack_require__(7602),__webpack_require__(928),__webpack_require__(5);class Lightbox{constructor(t){if(void 0===t)return;if(this.lightboxInitialized=!1,this.wrapperDiv=t,this.instanceId=this.wrapperDiv.dataset.id,this.lightboxElement=document.querySelector(`.ws-lightbox-${this.instanceId} .web-stories-list__lightbox`)||document.querySelector(`.ws-lightbox-${this.instanceId} .web-stories-singleton__lightbox`),this.player=this.lightboxElement.querySelector("amp-story-player"),this.currentLocation=location.href,void 0===this.player||void 0===this.lightboxElement)return;this.player.isReady&&!this.lightboxInitialized&&this.initializeLightbox(),this.player.addEventListener("ready",(()=>{this.lightboxInitialized||this.initializeLightbox()})),this.player.addEventListener("navigation",(t=>{const r=this.stories[t.detail.index];r&&r.href!==document.location.href&&this.storyContentReady(r,(()=>{history.pushState({},"",r.href)}))}));const r=this.player,e=this.lightboxElement;function n(){r&&(r.rewind(),r.pause(),r.mute(),e.classList.toggle("show"),document.body.classList.toggle("web-stories-lightbox-open"))}this.player.addEventListener("amp-story-player-close",(()=>{history.pushState({},"",this.currentLocation),n()})),window.addEventListener("popstate",(()=>{const t=this.lightboxElement.classList.contains("show"),r=this.stories.find((t=>t.href===document.location.href));r?(t||(this.lightboxElement.classList.toggle("show"),document.body.classList.toggle("web-stories-lightbox-open"),this.player.play()),this.player.show(r.href)):t&&n()}))}initializeLightbox(){this.stories=this.player.getStories(),this.bindStoryClickListeners(),this.lightboxInitialized=!0}bindStoryClickListeners(){this.wrapperDiv.querySelectorAll(".web-stories-list__story,.wp-block-embed__wrapper").forEach((t=>{t.addEventListener("click",(r=>{r.preventDefault();const e=this.stories.find((r=>r.href===t.querySelector("a").href));this.player.show(e.href),this.player.play(),this.storyContentReady(e,(()=>{history.pushState({},"",e.href)})),this.lightboxElement.classList.toggle("show"),document.body.classList.toggle("web-stories-lightbox-open")}))}))}storyContentReady(t,r){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const n=setInterval((()=>{!0===t.storyContentLoaded&&(window.clearInterval(n),r()),--e||window.clearInterval(n)}),250)}}t((()=>{!function(){const t=document.querySelectorAll(".web-stories-list,.web-stories-singleton");void 0!==t&&Array.from(t).forEach((t=>{new Lightbox(t)}))}()}))})()})();