1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/layout-base-DTJb7rks.js","assets/index-CDmec6_0.js","assets/index-CXBT2q46.js","assets/index-DLsrO_8g.css","assets/layout-base-BcDQ7M_T.css","assets/home-layout-Cd_YQFDs.js","assets/autocomplete-DFAN5cXd.js","assets/home-layout-sy_Z5pPL.css","assets/with-object-page-layout-wmU-_wEA.js","assets/index-CFerFsZx.js","assets/index-CIbOFiar.css","assets/index-dIT-EYDc.js","assets/index-DvVt1mAB.css","assets/with-object-page-layout-BXqK8U5b.css","assets/index-BZqCu_Tw.js","assets/index-BrkvvZ-6.js","assets/index-CfVuZzFY.css","assets/index-DDKfik03.js","assets/index-CSn13wFk.css","assets/localActionSupport-4XNNiwtn.js","assets/Exhibition-DPkvfiMS.js","assets/Place-D5Gmi7hS.js","assets/aat-BCs5GS3p.js","assets/ulan-Dp3X2__W.js","assets/Group--tYTkp70.js","assets/SearchItemHelper-BZXvsJ4i.js","assets/index-B9NmoCgE.css","assets/index-CnDmV6c7.js","assets/index-D4Sq1iWO.css","assets/index-Bfe-Aosf.js","assets/index-DneiKqRh.css","assets/image-request-BmEn7LoK.js","assets/FormHelpers-S3_56xUT.js","assets/formTypes-DKCOgwxA.js","assets/object-D7N0MSfp.js","assets/Person-DHmwwEpl.js","assets/image-request-DXwhmAn0.css","assets/index-Vyu63xEx.js","assets/index-BppdvJek.css","assets/index-BwfCfvU6.js","assets/index-C_U9B84-.css","assets/search-Bcwf92En.js","assets/search-8AKv8iX_.css","assets/index-BSBUt7jc.js","assets/index-DkLo8yAh.js","assets/index-PV4VMX-x.css","assets/index-BtmeQmaf.js","assets/index-DFcVBWza.css","assets/index-BZzy1tvA.css","assets/index-0_phhfI9.js","assets/index-Dh5zEl0h.css","assets/index-BbwKI0FO.js","assets/index-qp7J1wiL.css"])))=>i.map(i=>d[i]); 2 var e,t,n,i,r,a,s,o,l,u,c,d,p,h,f,m,g,y,v,b,_,w,S,C,k,x,T,E,A,L=Object.defineProperty,I=Object.defineProperties,$=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,M=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),R=Math.pow,N=(e,t,n)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=>{for(var n in t||(t={}))P.call(t,n)&&N(e,n,t[n]);if(D)for(var n of D(t))O.call(t,n)&&N(e,n,t[n]);return e},B=(e,t)=>I(e,$(t)),H=(e,t)=>L(e,"name",{value:t,configurable:!0}),j=(e,t)=>{var n={};for(var i in e)P.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&D)for(var i of D(e))t.indexOf(i)<0&&O.call(e,i)&&(n[i]=e[i]);return n},U=(e,t,n)=>N(e,"symbol"!=typeof t?t+"":t,n),V=(e,t,n)=>new Promise(((i,r)=>{var a=e=>{try{o(n.next(e))}catch(t){r(t)}},s=e=>{try{o(n.throw(e))}catch(t){r(t)}},o=e=>e.done?i(e.value):Promise.resolve(e.value).then(a,s);o((n=n.apply(e,t)).next())})),q=function(e,t){this[0]=e,this[1]=t},z=(e,t,n)=>{var i=(e,t,r,a)=>{try{var s=n[e](t),o=(t=s.value)instanceof q,l=s.done;Promise.resolve(o?t[0]:t).then((n=>o?i("return"===e?e:"next",t[1]?{done:n.done,value:n.value}:n,r,a):r({value:n,done:l}))).catch((e=>i("throw",e,r,a)))}catch(u){a(u)}},r=e=>a[e]=t=>new Promise(((n,r)=>i(e,t,n,r))),a={};return n=n.apply(e,t),a[M("asyncIterator")]=()=>a,r("next"),r("throw"),r("return"),a},W=e=>{var t,n=e[M("asyncIterator")],i=!1,r={};return null==n?(n=e[M("iterator")](),t=e=>r[e]=t=>n[e](t)):(n=n.call(e),t=e=>r[e]=t=>{if(i){if(i=!1,"throw"===e)throw t;return t}return i=!0,{done:!1,value:new q(new Promise((i=>{var r=n[e](t);r instanceof Object||(e=>{throw TypeError(e)})("Object expected"),i(r)})),1)}}),r[M("iterator")]=()=>r,t("next"),"throw"in n?t("throw"):r.throw=e=>{throw e},"return"in n&&t("return"),r}; 3 /** 4 * @vue/shared v3.5.40 5 * (c) 2018-present Yuxi (Evan) You and Vue contributors 6 * @license MIT 7 **/ 8 function G(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}H((function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))n(e);new MutationObserver((e=>{for(const t of e)if("childList"===t.type)for(const e of t.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&n(e)})).observe(document,{childList:!0,subtree:!0}),H(t,"getFetchOpts"),H(n,"processPreload")}function t(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}function n(e){if(e.ep)return;e.ep=!0;const n=t(e);fetch(e.href,n)}}),"polyfill")(),H(G,"makeMap$1");const K={},Y=[],Z=H((()=>{}),"NOOP$1"),X=H((()=>!1),"NO$1"),Q=H((e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)),"isOn$1"),J=H((e=>e.startsWith("onUpdate:")),"isModelListener"),ee=Object.assign,te=H(((e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}),"remove$1"),ne=Object.prototype.hasOwnProperty,ie=H(((e,t)=>ne.call(e,t)),"hasOwn$3"),re=Array.isArray,ae=H((e=>"[object Map]"===fe(e)),"isMap$2"),se=H((e=>"[object Set]"===fe(e)),"isSet$3"),oe=H((e=>"[object Date]"===fe(e)),"isDate$4"),le=H((e=>"function"==typeof e),"isFunction$5"),ue=H((e=>"string"==typeof e),"isString$7"),ce=H((e=>"symbol"==typeof e),"isSymbol$2"),de=H((e=>null!==e&&"object"==typeof e),"isObject$7"),pe=H((e=>(de(e)||le(e))&&le(e.then)&&le(e.catch)),"isPromise$4"),he=Object.prototype.toString,fe=H((e=>he.call(e)),"toTypeString$3"),me=H((e=>fe(e).slice(8,-1)),"toRawType$1"),ge=H((e=>"[object Object]"===fe(e)),"isPlainObject$7"),ye=H((e=>ue(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e),"isIntegerKey$1"),ve=G
8(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),be=H((e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}),"cacheStringFunction$1"),_e=/-\w/g,we=be((e=>e.replace(_e,(e=>e.slice(1).toUpperCase())))),Se=/\B([A-Z])/g,Ce=be((e=>e.replace(Se,"-$1").toLowerCase())),ke=be((e=>e.charAt(0).toUpperCase()+e.slice(1))),xe=be((e=>e?`on${ke(e)}`:"")),Te=H(((e,t)=>!Object.is(e,t)),"hasChanged$1"),Ee=H(((e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)}),"invokeArrayFns"),Ae=H(((e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})}),"def$1"),Le=H((e=>{const t=parseFloat(e);return isNaN(t)?e:t}),"looseToNumber"),Ie=H((e=>{const t=ue(e)?Number(e):NaN;return isNaN(t)?e:t}),"toNumber");let $e;const De=H((()=>$e||($e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})),"getGlobalThis$3");function Pe(e){if(re(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=ue(i)?Ne(i):Pe(i);if(r)for(const e in r)t[e]=r[e]}return t}if(ue(e)||de(e))return e}H(Pe,"normalizeStyle$1");const Oe=/;(?![^(]*\))/g,Me=/:([^]+)/,Re=/\/\*[^]*?\*\//g;function Ne(e){const t={};return e.replace(Re,"").split(Oe).forEach((e=>{if(e){const n=e.split(Me);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Fe(e){let t="";if(ue(e))t=e;else if(re(e))for(let n=0;n<e.length;n++){const i=Fe(e[n]);i&&(t+=i+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Be(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ue(t)&&(e.class=Fe(t)),n&&(e.style=Pe(n)),e}H(Ne,"parseStringStyle$1"),H(Fe,"normalizeClass$1"),H(Be,"normalizeProps");const He=G("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function je(e){return!!e||""===e}function Ue(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Ve(e[i],t[i]);return n}function Ve(e,t){if(e===t)return!0;let n=oe(e),i=oe(t);if(n||i)return!(!n||!i)&&e.getTime()===t.getTime();if(n=ce(e),i=ce(t),n||i)return e===t;if(n=re(e),i=re(t),n||i)return!(!n||!i)&&Ue(e,t);if(n=de(e),i=de(t),n||i){if(!n||!i)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const i=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(i&&!r||!i&&r||!Ve(e[n],t[n]))return!1}}return String(e)===String(t)}H(je,"includeBooleanAttr"),H(Ue,"looseCompareArrays"),H(Ve,"looseEqual");const qe=H((e=>!(!e||!0!==e.__v_isRef)),"isRef$2"),ze=H((e=>ue(e)?e:null==e?"":re(e)||de(e)&&(e.toString===he||!le(e.toString))?qe(e)?ze(e.value):JSON.stringify(e,We,2):String(e)),"toDisplayString$2"),We=H(((e,t)=>qe(t)?We(e,t.value):ae(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],i)=>(e[Ge(t,i)+" =>"]=n,e)),{})}:se(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>Ge(e)))}:ce(t)?Ge(t):!de(t)||re(t)||ge(t)?t:String(t)),"replacer"),Ge=H(((e,t="")=>{var n;return ce(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}),"stringifySymbol"); 9 /** 10 * @vue/reactivity v3.5.40 11 * (c) 2018-present Yuxi (Evan) You and Vue contributors 12 * @license MIT 13 **/ 14 let Ke,Ye,Ze=(H(e=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Ke&&(Ke.active?(this.parent=Ke,this.index=(Ke.scopes||(Ke.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}const n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){const t=Ke;try{return Ke=this,e()}finally{Ke=t}}}on(){1==++this._on&&(this.prevScope=Ke,Ke=this)}off(){if(this._on>0&&0==--this._on){if(Ke===this)Ke=this.prevScope;else{let e=Ke;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){const e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}},"EffectScope"),e);function Xe(e){return new Ze(e)}function Qe(){return Ke}function Je(e,t=!1){Ke&&Ke.cleanups.push(e)}H(Xe,"effectScope$1"),H(Qe,"getCurrentScope$3"),H(Je,"onScopeDispose");const et=new WeakSet;let tt,nt,it=(H(t=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler
14=void 0,Ke&&(Ke.active?Ke.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,et.has(this)&&(et.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||at(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,vt(this),lt(this);const e=Ye,t=ft;Ye=this,ft=!0;try{return this.fn()}finally{ut(this),Ye=e,ft=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)pt(e);this.deps=this.depsTail=void 0,vt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?et.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ct(this)&&this.run()}get dirty(){return ct(this)}},"ReactiveEffect"),t),rt=0;function at(e,t=!1){if(e.flags|=8,t)return e.next=nt,void(nt=e);e.next=tt,tt=e}function st(){rt++}function ot(){if(--rt>0)return;if(nt){let e=nt;for(nt=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;tt;){let n=tt;for(tt=void 0;n;){const i=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=i}}if(e)throw e}function lt(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ut(e){let t,n=e.depsTail,i=n;for(;i;){const e=i.prevDep;-1===i.version?(i===n&&(n=e),pt(i),ht(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=e}e.deps=t,e.depsTail=n}function ct(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(dt(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function dt(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===bt)return;if(e.globalVersion=bt,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!ct(e)))return;e.flags|=2;const t=e.dep,n=Ye,i=ft;Ye=e,ft=!0;try{lt(e);const n=e.fn(e._value);(0===t.version||Te(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(r){throw t.version++,r}finally{Ye=n,ft=i,ut(e),e.flags&=-3}}function pt(e,t=!1){const{dep:n,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)pt(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function ht(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}H(at,"batch$1"),H(st,"startBatch$1"),H(ot,"endBatch$1"),H(lt,"prepareDeps$1"),H(ut,"cleanupDeps$1"),H(ct,"isDirty$1"),H(dt,"refreshComputed$1"),H(pt,"removeSub$1"),H(ht,"removeDep$1");let ft=!0;const mt=[];function gt(){mt.push(ft),ft=!1}function yt(){const e=mt.pop();ft=void 0===e||e}function vt(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=Ye;Ye=void 0;try{t()}finally{Ye=e}}}H(gt,"pauseTracking$1"),H(yt,"resetTracking$1"),H(vt,"cleanupEffect$1");let bt=0,_t=(H(n=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},"Link"),n),wt=(H(i=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ye||!ft||Ye===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==Ye)t=this.activeLink=new _t(Ye,this),Ye.deps?(t.prevDep=Ye.depsTail,Ye.depsTail.nextDep=t,Ye.depsTail=t):Ye.deps=Ye.depsTail=t,St(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Ye.depsTail,t.nextDep=void 0,Ye.depsTail.nextDep=t,Ye.depsTail=t,Ye.deps===t&&(Ye.deps=e)}return t}trigger(e){this.version++,bt++,this.notify(e)}notify(e){st();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ot()}}},"Dep"),i);function St(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)St(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}H(St,"addSub$1");const Ct=new WeakMap,kt=Symbol(""),xt=Symbol(""),Tt=Symbol("");function Et(e,t,n){if(ft&&Ye){let t=Ct.get(e);t||Ct.set(e,t=new Map);let i=t.get(n);i||(t.set(n,i=new wt),i.map=t,i.key=n),i.track()}}function At(e,t,n,i,r,a){const s=Ct.get(e);if(!s)return void bt++;const o=H((e=>{e&&e.trigger()}),"run");if(st(),"clear"===t)s.forEach(o);else{const r=re(e),a=r&&ye(n);if(r&&"length"===n){const e=Number(i);
14s.forEach(((t,n)=>{("length"===n||n===Tt||!ce(n)&&n>=e)&&o(t)}))}else switch((void 0!==n||s.has(void 0))&&o(s.get(n)),a&&o(s.get(Tt)),t){case"add":r?a&&o(s.get("length")):(o(s.get(kt)),ae(e)&&o(s.get(xt)));break;case"delete":r||(o(s.get(kt)),ae(e)&&o(s.get(xt)));break;case"set":ae(e)&&o(s.get(kt))}}ot()}function Lt(e,t){const n=Ct.get(e);return n&&n.get(t)}function It(e){const t=wn(e);return t===e?t:(Et(t,0,Tt),bn(e)?t:t.map(Cn))}function $t(e){return Et(e=wn(e),0,Tt),e}function Dt(e,t){return vn(e)?kn(yn(e)?Cn(t):t):Cn(t)}H(Et,"track$1"),H(At,"trigger$2"),H(Lt,"getDepFromReactive"),H(It,"reactiveReadArray$1"),H($t,"shallowReadArray$1"),H(Dt,"toWrapped");const Pt={__proto__:null,[Symbol.iterator](){return Ot(this,Symbol.iterator,(e=>Dt(this,e)))},concat(...e){return It(this).concat(...e.map((e=>re(e)?It(e):e)))},entries(){return Ot(this,"entries",(e=>(e[1]=Dt(this,e[1]),e)))},every(e,t){return Rt(this,"every",e,t,void 0,arguments)},filter(e,t){return Rt(this,"filter",e,t,(e=>e.map((e=>Dt(this,e)))),arguments)},find(e,t){return Rt(this,"find",e,t,(e=>Dt(this,e)),arguments)},findIndex(e,t){return Rt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Rt(this,"findLast",e,t,(e=>Dt(this,e)),arguments)},findLastIndex(e,t){return Rt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Rt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ft(this,"includes",e)},indexOf(...e){return Ft(this,"indexOf",e)},join(e){return It(this).join(e)},lastIndexOf(...e){return Ft(this,"lastIndexOf",e)},map(e,t){return Rt(this,"map",e,t,void 0,arguments)},pop(){return Bt(this,"pop")},push(...e){return Bt(this,"push",e)},reduce(e,...t){return Nt(this,"reduce",e,t)},reduceRight(e,...t){return Nt(this,"reduceRight",e,t)},shift(){return Bt(this,"shift")},some(e,t){return Rt(this,"some",e,t,void 0,arguments)},splice(...e){return Bt(this,"splice",e)},toReversed(){return It(this).toReversed()},toSorted(e){return It(this).toSorted(e)},toSpliced(...e){return It(this).toSpliced(...e)},unshift(...e){return Bt(this,"unshift",e)},values(){return Ot(this,"values",(e=>Dt(this,e)))}};function Ot(e,t,n){const i=$t(e),r=i[t]();return i===e||bn(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.done||(e.value=n(e.value)),e}),r}H(Ot,"iterator$2");const Mt=Array.prototype;function Rt(e,t,n,i,r,a){const s=$t(e),o=s!==e&&!bn(e),l=s[t];if(l!==Mt[t]){const t=l.apply(e,a);return o?Cn(t):t}let u=n;s!==e&&(o?u=H((function(t,i){return n.call(this,Dt(e,t),i,e)}),"wrappedFn"):n.length>2&&(u=H((function(t,i){return n.call(this,t,i,e)}),"wrappedFn")));const c=l.call(s,u,i);return o&&r?r(c):c}function Nt(e,t,n,i){const r=$t(e);let a=n,s=!1;r!==e&&(r!==e&&!bn(e)?(s=0===i.length,a=H((function(t,i,r){return s&&(s=!1,t=Dt(e,t)),n.call(this,t,Dt(e,i),r,e)}),"wrappedFn")):n.length>3&&(a=H((function(t,i,r){return n.call(this,t,i,r,e)}),"wrappedFn")));const o=r[t](a,...i);return s?Dt(e,o):o}function Ft(e,t,n){const i=wn(e);Et(i,0,Tt);const r=i[t](...n);return-1!==r&&!1!==r||!_n(n[0])?r:(n[0]=wn(n[0]),i[t](...n))}function Bt(e,t,n=[]){gt(),st();const i=wn(e)[t].apply(e,n);return ot(),yt(),i}H(Rt,"apply$2"),H(Nt,"reduce$2"),H(Ft,"searchProxy$1"),H(Bt,"noTracking$1");const Ht=G("__proto__,__v_isRef,__isVue"),jt=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(ce));function Ut(e){ce(e)||(e=String(e));const t=wn(this);return Et(t,0,e),t.hasOwnProperty(e)}H(Ut,"hasOwnProperty$5");let Vt=(H(r=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const i=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!i;if("__v_isReadonly"===t)return i;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(i?r?cn:un:r?ln:on).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const a=re(e);if(!i){let e;if(a&&(e=Pt[t]))return e;if("hasOwnProperty"===t)return Ut}const s=Reflect.get(e,t,xn(e)?e:n);if(ce(t)?jt.has(t):Ht(t))return s;if(i||Et(e,0,t),r)return s;if(xn(s)){const e=a&&ye(t)?s:s.value;return i&&de(e)?fn(e):e}return de(s)?i?fn(s):pn(s):s}},"BaseReactiveHandler"),r),qt=(H(a=class extends Vt{constructor(e=!1){super(!1,e)}set(e,t,n,i){let r=e[t];const a=re(e)&&ye(t);if(!this._isShallow){const e=vn(r);if(bn(n)||vn(n)||(r=wn(r),n=wn(n)),!a&&xn(r)&&!xn(n))return e||(r.value=n),!0}const s=a?Number(t)<e.length:ie(e,t),o=Reflect.set(e,t,n,xn(e)?e:i);return e===wn(i)&&o&&(s?Te(n,r)&&At(e,"set",t,n):At(e,"add",t,n)),o}deleteProperty(e,t){const n=ie(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&n&&At(e,"delete",t,void 0),i}has(e,t){const n=Reflect.has(e,t);return ce(t)&&jt.has(t)||Et(e,0,t),n}ownKeys(e){return Et(e,0,re(e)?"length":kt),Reflect.ownKeys(e)}},"MutableReactiveHandler"),a),zt=(H(s=class extends Vt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},"ReadonlyReactiveHandler"),s);const Wt=new qt,Gt=new zt,Kt=new qt(!0),Yt=new zt(!0),Zt=H((e=>e),"toShallow$1"),Xt=H((e=>Reflect.getPrototypeOf(e)),"getProto$2");function Qt(e,t,n){return function(...i){const r=this.__v_raw,a=wn(r),s=ae(a),o="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,u=r[e](...i),c=n?Zt:t?kn:Cn;return!t&&Et(a,0,l?xt:kt),ee(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:o?[c(e[0]),c(e[1])]:c(e),done:t}}})}}function Jt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function en(e,t){const n={get(n){const i=this.__v_raw,r=wn(i),a=wn(n);e||(Te(n,a)&&Et(r,0,n),Et(r,0,a));const{has:s}=Xt(r),o=t?Zt:e?kn:Cn;return s.call(r,n)?o(i.get(n)):s.call(r,a)?o(i.get(a)):void(i!==r&&i.get(n))},get size(){const t=this.__v_raw;return!e&&Et(wn(t),0,kt),t.size},has(t){const n=this.__v_raw,i=wn(n),r=wn(t);return e||(Te(t,r)&&Et(i,0,t),Et(i,0,r)),t===r?n.has(t):n.has(t)||n.has(r)}
14,forEach(n,i){const r=this,a=r.__v_raw,s=t?Zt:e?kn:Cn;return!e&&Et(wn(a),0,kt),a.forEach(((e,t)=>n.call(i,s(e),s(t),r)))}};ee(n,e?{add:Jt("add"),set:Jt("set"),delete:Jt("delete"),clear:Jt("clear")}:{add(e){const n=wn(this),i=Xt(n),r=wn(e),a=t||bn(e)||vn(e)?e:r;return i.has.call(n,a)||Te(e,a)&&i.has.call(n,e)||Te(r,a)&&i.has.call(n,r)||(n.add(a),At(n,"add",a,a)),this},set(e,n){t||bn(n)||vn(n)||(n=wn(n));const i=wn(this),{has:r,get:a}=Xt(i);let s=r.call(i,e);s||(e=wn(e),s=r.call(i,e));const o=a.call(i,e);return i.set(e,n),s?Te(n,o)&&At(i,"set",e,n):At(i,"add",e,n),this},delete(e){const t=wn(this),{has:n,get:i}=Xt(t);let r=n.call(t,e);r||(e=wn(e),r=n.call(t,e)),i&&i.call(t,e);const a=t.delete(e);return r&&At(t,"delete",e,void 0),a},clear(){const e=wn(this),t=0!==e.size,n=e.clear();return t&&At(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach((i=>{n[i]=Qt(i,e,t)})),n}function tn(e,t){const n=en(e,t);return(t,i,r)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(ie(n,i)&&i in t?n:t,i,r)}H(Qt,"createIterableMethod$1"),H(Jt,"createReadonlyMethod$1"),H(en,"createInstrumentations$1"),H(tn,"createInstrumentationGetter$1");const nn={get:tn(!1,!1)},rn={get:tn(!1,!0)},an={get:tn(!0,!1)},sn={get:tn(!0,!0)},on=new WeakMap,ln=new WeakMap,un=new WeakMap,cn=new WeakMap;function dn(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pn(e){return vn(e)?e:gn(e,!1,Wt,nn,on)}function hn(e){return gn(e,!1,Kt,rn,ln)}function fn(e){return gn(e,!0,Gt,an,un)}function mn(e){return gn(e,!0,Yt,sn,cn)}function gn(e,t,n,i,r){if(!de(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;if(e.__v_skip||!Object.isExtensible(e))return e;const a=r.get(e);if(a)return a;const s=dn(me(e));if(0===s)return e;const o=new Proxy(e,2===s?i:n);return r.set(e,o),o}function yn(e){return vn(e)?yn(e.__v_raw):!(!e||!e.__v_isReactive)}function vn(e){return!(!e||!e.__v_isReadonly)}function bn(e){return!(!e||!e.__v_isShallow)}function _n(e){return!!e&&!!e.__v_raw}function wn(e){const t=e&&e.__v_raw;return t?wn(t):e}function Sn(e){return!ie(e,"__v_skip")&&Object.isExtensible(e)&&Ae(e,"__v_skip",!0),e}H(dn,"targetTypeMap$1"),H(pn,"reactive$1"),H(hn,"shallowReactive"),H(fn,"readonly$1"),H(mn,"shallowReadonly"),H(gn,"createReactiveObject$1"),H(yn,"isReactive$1"),H(vn,"isReadonly$1"),H(bn,"isShallow$1"),H(_n,"isProxy$1"),H(wn,"toRaw$1"),H(Sn,"markRaw");const Cn=H((e=>de(e)?pn(e):e),"toReactive$1"),kn=H((e=>de(e)?fn(e):e),"toReadonly$1");function xn(e){return!!e&&!0===e.__v_isRef}function Tn(e){return An(e,!1)}function En(e){return An(e,!0)}function An(e,t){return xn(e)?e:new Ln(e,t)}H(xn,"isRef$1"),H(Tn,"ref$2"),H(En,"shallowRef$1"),H(An,"createRef$1");let Ln=(H(o=class{constructor(e,t){this.dep=new wt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:wn(e),this._value=t?e:Cn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||bn(e)||vn(e);Te(e=n?e:wn(e),t)&&(this._rawValue=e,this._value=n?e:Cn(e),this.dep.trigger())}},"RefImpl"),o);function In(e){e.dep&&e.dep.trigger()}function $n(e){return xn(e)?e.value:e}function Dn(e){return le(e)?e():$n(e)}H(In,"triggerRef"),H($n,"unref"),H(Dn,"toValue");const Pn={get:H(((e,t,n)=>"__v_raw"===t?e:$n(Reflect.get(e,t,n))),"get"),set:H(((e,t,n,i)=>{const r=e[t];return xn(r)&&!xn(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}),"set")};function On(e){return yn(e)?e:new Proxy(e,Pn)}H(On,"proxyRefs");const Mn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new wt,{get:n,set:i}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}};H(Mn,"CustomRefImpl");let Rn=Mn;function Nn(e){return new Rn(e)}function Fn(e){const t=re(e)?new Array(e.length):{};for(const n in e)t[n]=qn(e,n);return t}H(Nn,"customRef"),H(Fn,"toRefs");const Bn=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=ce(t)?t:String(t),this._raw=wn(e);let i=!0,r=e;if(!re(e)||ce(this._key)||!ye(this._key))do{i=!_n(r)||bn(r)}while(i&&(r=r.__v_raw));this._shallow=i}get value(){let e=this._object[this._key];return this._shallow&&(e=$n(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&xn(this._raw[this._key])){const t=this._object[this._key];if(xn(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return Lt(this._raw,this._key)}};H(Bn,"ObjectRefImpl");let Hn=Bn;const jn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};H(jn,"GetterRefImpl");let Un=jn;function Vn(e,t,n){return xn(e)?e:le(e)?new Un(e):de(e)&&arguments.length>
141?qn(e,t,n):Tn(e)}function qn(e,t,n){return new Hn(e,t,n)}H(Vn,"toRef"),H(qn,"propertyToRef");let zn=(H(l=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new wt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=bt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&Ye!==this)return at(this,!0),!0}get value(){const e=this.dep.track();return dt(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}},"ComputedRefImpl"),l);function Wn(e,t,n=!1){let i,r;le(e)?i=e:(i=e.get,r=e.set);return new zn(i,r,n)}H(Wn,"computed$3");const Gn={},Kn=new WeakMap;let Yn;function Zn(e,t=!1,n=Yn){if(n){let t=Kn.get(n);t||Kn.set(n,t=[]),t.push(e)}}function Xn(e,t,n=K){const{immediate:i,deep:r,once:a,scheduler:s,augmentJob:o,call:l}=n,u=H((e=>r?e:bn(e)||!1===r||0===r?Qn(e,1):Qn(e)),"reactiveGetter");let c,d,p,h,f=!1,m=!1;if(xn(e)?(d=H((()=>e.value),"getter"),f=bn(e)):yn(e)?(d=H((()=>u(e)),"getter"),f=!0):re(e)?(m=!0,f=e.some((e=>yn(e)||bn(e))),d=H((()=>e.map((e=>xn(e)?e.value:yn(e)?u(e):le(e)?l?l(e,2):e():void 0))),"getter")):d=le(e)?t?l?()=>l(e,2):e:H((()=>{if(p){gt();try{p()}finally{yt()}}const t=Yn;Yn=c;try{return l?l(e,3,[h]):e(h)}finally{Yn=t}}),"getter"):Z,t&&r){const e=d,t=!0===r?1/0:r;d=H((()=>Qn(e(),t)),"getter")}const g=Qe(),y=H((()=>{c.stop(),g&&g.active&&te(g.effects,c)}),"watchHandle");if(a&&t){const e=t;t=H(((...t)=>{const n=e(...t);return y(),n}),"cb")}let v=m?new Array(e.length).fill(Gn):Gn;const b=H((e=>{if(1&c.flags&&(c.dirty||e))if(t){const n=c.run();if(e||r||f||(m?n.some(((e,t)=>Te(e,v[t]))):Te(n,v))){p&&p();const e=Yn;Yn=c;try{const e=[n,v===Gn?void 0:m&&v[0]===Gn?[]:v,h];v=n,l?l(t,3,e):t(...e)}finally{Yn=e}}}else c.run()}),"job");
14return o&&o(b),c=new it(d),c.scheduler=s?()=>s(b,!1):b,h=H((e=>Zn(e,!1,c)),"boundCleanup"),p=c.onStop=()=>{const e=Kn.get(c);if(e){if(l)l(e,4);else for(const t of e)t();Kn.delete(c)}},t?i?b(!0):v=c.run():s?s(b.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function Qn(e,t=1/0,n){if(t<=0||!de(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,xn(e))Qn(e.value,t,n);else if(re(e))for(let i=0;i<e.length;i++)Qn(e[i],t,n);else if(se(e)||ae(e))e.forEach((e=>{Qn(e,t,n)}));else if(ge(e)){for(const i in e)Qn(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&Qn(e[i],t,n)}return e}H(Zn,"onWatcherCleanup$1"),H(Xn,"watch$4"),H(Qn,"traverse$1"); 15 /** 16 * @vue/runtime-core v3.5.40 17 * (c) 2018-present Yuxi (Evan) You and Vue contributors 18 * @license MIT 19 **/ 20 const Jn=[];let ei=!1;function ti(e,...t){if(ei)return;ei=!0,gt();const n=Jn.length?Jn[Jn.length-1].component:null,i=n&&n.appContext.config.warnHandler,r=ni();if(i)oi(i,n,11,[e+t.map((e=>{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)})).join(""),n&&n.proxy,r.map((({vnode:e})=>`at <${wo(n,e.type)}>`)).join("\n"),r]);else{const n=[`[Vue warn]: ${e}`,...t];r.length&&n.push("\n",...ii(r)),console.warn(...n)}yt(),ei=!1}function ni(){let e=Jn[Jn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const i=e.component&&e.component.parent;e=i&&i.vnode}return t}function ii(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...ri(e))})),t}function ri({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",i=!!e.component&&null==e.component.parent,r=` at <${wo(e.component,e.type,i)}`,a=">"+n;return e.props?[r,...ai(e.props),a]:[r+a]}function ai(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...si(n,e[n]))})),n.length>3&&t.push(" ..."),t}function si(e,t,n){return ue(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:xn(t)?(t=si(e,wn(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):le(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=wn(t),n?t:[`${e}=`,t])}function oi(e,t,n,i){try{return i?e(...i):e()}catch(r){ui(r,t,n)}}function li(e,t,n,i){if(le(e)){const r=oi(e,t,n,i);return r&&pe(r)&&r.catch((e=>{ui(e,t,n)})),r}if(re(e)){const r=[];for(let a=0;a<e.length;a++)r.push(li(e[a],t,n,i));return r}}function ui(e,t,n,i=!0){const r=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||K;if(t){let i=t.parent;const r=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const t=i.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,s))return;i=i.parent}if(a)return gt(),oi(a,null,10,[e,r,s]),void yt()}ci(e,n,r,i,s)}function ci(e,t,n,i=!0,r=!1){if(r)throw e;console.error(e)}H(ti,"warn$1$1"),H(ni,"getComponentTrace$1"),H(ii,"formatTrace$1"),H(ri,"formatTraceEntry$1"),H(ai,"formatProps$1"),H(si,"formatProp$1"),H(oi,"callWithErrorHandling$1"),H(li,"callWithAsyncErrorHandling$1"),H(ui,"handleError$1"),H(ci,"logError$1");const di=[];let pi=-1;const hi=[];let fi=null,mi=0;const gi=Promise.resolve();let yi=null;function vi(e){const t=yi||gi;return e?t.then(this?e.bind(this):e):t}function bi(e){let t=pi+1,n=di.length;for(;t<n;){const i=t+n>>>1,r=di[i],a=xi(r);a<e||a===e&&2&r.flags?t=i+1:n=i}return t}function _i(e){if(!(1&e.flags)){const t=xi(e),n=di[di.length-1];!n||!(2&e.flags)&&t>=xi(n)?di.push(e):di.splice(bi(t),0,e),e.flags|=1,wi()}}function wi(){yi||(yi=gi.then(Ti))}function Si(e){re(e)?hi.push(...e):fi&&-1===e.id?fi.splice(mi+1,0,e):1&e.flags||(hi.push(e),e.flags|=1),wi()}function Ci(e,t,n=pi+1){for(;n<di.length;n++){const t=di[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;di.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function ki(e){if(hi.length){const e=[...new Set(hi)].sort(((e,t)=>xi(e)-xi(t)));if(hi.length=0,fi)return void fi.push(...e);for(fi=e,mi=0;mi<fi.length;mi++){const e=fi[mi];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}fi=null,mi=0}}H(vi,"nextTick"),H(bi,"findInsertionIndex$2"),H(_i,"queueJob$1"),H(wi,"queueFlush$1"),H(Si,"queuePostFlushCb$1"),H(Ci,"flushPreFlushCbs"),H(ki,"flushPostFlushCbs$1");const xi=H((e=>null==e.id?2&e.flags?-1:1/0:e.id),"getId$1");function Ti(e){try{for(pi=0;pi<di.length;pi++){const e=di[pi];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),oi(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;pi<di.length;pi++){const e=di[pi];e&&(e.flags&=-2)}pi=-1,di.length=0,ki(),yi=null,(di.length||hi.length)&&Ti()}}H(Ti,"flushJobs$1");let Ei=null,Ai=null;function Li(e){const t=Ei;return Ei=e,Ai=e&&e.type.__scopeId||null,t}function Ii(e,t=Ei,n){if(!t)return e;if(e._n)return e;const i=H(((...n)=>{i._d&&$s(-1);const r=Li(t),a=Ts.length;let s;try{s=e(...n)}finally{for(let e=Ts.length;e>a;e--)Ls();Li(r),i._d&&$s(1)}return s}),"renderFnWithContext");return i._n=!0,i._c=!0,i._d=!0,i}function $i(e,t){if(null===Ei)return e;const n=yo(Ei),i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[e,a,s,o=K]=t[r];e&&(le(e)&&(e={mounted:e,updated:e}),e.deep&&Qn(a),i.push({dir:e,instance:n,value:a,oldValue:void 0,arg:s,modifiers:o}))}return e}function Di(e,t,n,i){const r=e.dirs,a=t&&t.dirs;for(let s=0;s<r.length;s++){const o=r[s];a&&(o.oldValue=a[s].value);let l=o.dir[i];l&&(gt(),li(l,n,8,[e.el,o,e,t]),yt())}}function Pi(e,t){if(no){let n=no.provides;const i=no.parent&&no.parent.provides;i===n&&(n=no.provides=Object.create(i)),n[e]=t}}function Oi(e,t,n=!1){const i=io();if(i||$a){let r=$a?$a._context.provides:i?null==i.parent||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&le(t)?t.call(i&&i.proxy):t}}function Mi(){return!(!io()&&!$a)}H(Li,"setCurrentRenderingInstance"),H(Ii,"withCtx"),H($i,"withDirectives"),H(Di,"invokeDirectiveHook"),H(Pi,"provide"),H(Oi,"inject$1"),H(Mi,"hasInjectionContext");const Ri=Symbol.for("v-scx"),Ni=H((()=>Oi(Ri)),"useSSRContext$1");function Fi(e,t){return Hi(e,null,t)}function Bi(e,t,n){return Hi(e,t,n)}function Hi(e,t,n=K){const{immediate:i,deep:r,flush:a,once:s}=n,o=ee({},n),l=t&&i||!t&&"post"!==a;let u;if(uo)if("sync"===a){const e=Ni();u=e.__watcherHandles||(e.__watcherHandles=[])}else if(!l){const e=H((()=>{}),"watchStopHandle");return e.stop=Z,e.resume=Z,e.pause=Z,e}const c=no;
20o.call=(e,t,n)=>li(e,c,t,n);let d=!1;"post"===a?o.scheduler=e=>{us(e,c&&c.suspense)}:"sync"!==a&&(d=!0,o.scheduler=(e,t)=>{t?e():_i(e)}),o.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,c&&(e.id=c.uid,e.i=c))};const p=Xn(e,t,o);return uo&&(u?u.push(p):l&&p()),p}function ji(e,t,n){const i=this.proxy,r=ue(e)?e.includes(".")?Ui(i,e):()=>i[e]:e.bind(i,i);let a;le(t)?a=t:(a=t.handler,n=t);const s=so(this),o=Hi(r,a.bind(i),n);return s(),o}function Ui(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}H(Fi,"watchEffect"),H(Bi,"watch$3"),H(Hi,"doWatch$1"),H(ji,"instanceWatch"),H(Ui,"createPathGetter");const Vi=new WeakMap,qi=Symbol("_vte"),zi=H((e=>e.__isTeleport),"isTeleport$1"),Wi=H((e=>e&&(e.disabled||""===e.disabled)),"isTeleportDisabled"),Gi=H((e=>e&&(e.defer||""===e.defer)),"isTeleportDeferred"),Ki=H((e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement),"isTargetSVG"),Yi=H((e=>"function"==typeof MathMLElement&&e instanceof MathMLElement),"isTargetMathML"),Zi=H(((e,t)=>{const n=e&&e.to;if(ue(n)){if(t){return t(n)}return null}return n}),"resolveTarget"),Xi={name:"Teleport",__isTeleport:!0,process(e,t,n,i,r,a,s,o,l,u){const{mc:c,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:m,createComment:g,parentNode:y}}=u,v=Wi(t.props);let{dynamicChildren:b}=t;const _=H(((e,t,n)=>{16&e.shapeFlag&&c(e.children,t,n,r,a,s,o,l)}),"mount"),w=H(((e=t)=>{const n=Wi(e.props),i=e.target=Zi(e.props,f),a=nr(i,e,m,h);i&&("svg"!==s&&Ki(i)?s="svg":"mathml"!==s&&Yi(i)&&(s="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(i),n||(_(e,i,a),tr(e,!1)))}),"mountToTarget"),S=H((e=>{const t=H((()=>{if(Vi.get(e)===t){if(Vi.delete(e),Wi(e.props)){const t=y(e.el)||n;_(e,t,e.anchor),tr(e,!0)}w(e)}}),"mountJob");Vi.set(e,t),us(t,a)}),"queuePendingMount");if(null==e){const e=t.el=m(""),r=t.anchor=m("");if(h(e,n,i),h(r,n,i),Gi(t.props)||a&&a.pendingBranch)return void S(t);v&&(_(t,n,r),tr(t,!0)),w()}else{t.el=e.el;const i=t.anchor=e.anchor,c=Vi.get(e);if(c)return c.flags|=8,Vi.delete(e),void S(t);t.targetStart=e.targetStart;const h=t.target=e.target,m=t.targetAnchor=e.targetAnchor,g=Wi(e.props),y=g?n:h,_=g?i:m;if("svg"===s||Ki(h)?s="svg":("mathml"===s||Yi(h))&&(s="mathml"),b?(p(e.dynamicChildren,b,y,r,a,s,o),ms(e,t,!0)):l||d(e,t,y,_,r,a,s,o,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qi(t,n,i,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=Zi(t.props,f);e&&(t.target=e,Qi(t,e,null,u,0))}else g&&Qi(t,h,m,u,1);tr(t,v)}},remove(e,t,n,{um:i,o:{remove:r}},a){const{shapeFlag:s,children:o,anchor:l,targetStart:u,targetAnchor:c,target:d,props:p}=e,h=Wi(p),f=a||!h,m=Vi.get(e);if(m&&(m.flags|=8,Vi.delete(e)),d&&(r(u),r(c)),a&&r(l),!m&&(h||d)&&16&s)for(let g=0;g<o.length;g++){const e=o[g];i(e,t,n,f,!!e.dynamicChildren)}},move:Qi,hydrate:Ji};function Qi(e,t,n,{o:{insert:i},m:r},a=2){0===a&&i(e.targetAnchor,t,n);const{el:s,anchor:o,shapeFlag:l,children:u,props:c}=e,d=2===a;if(d&&i(s,t,n),!Vi.has(e)&&(!d||Wi(c))&&16&l)for(let p=0;p<u.length;p++)r(u[p],t,n,2);d&&i(o,t,n)}function Ji(e,t,n,i,r,a,{o:{nextSibling:s,parentNode:o,querySelector:l,insert:u,createText:c}},d){function p(e,n){let i=n;for(;i;){if(i&&8===i.nodeType)if("teleport start anchor"===i.data)t.targetStart=i;else if("teleport anchor"===i.data){t.targetAnchor=i,e._lpa=t.targetAnchor&&s(t.targetAnchor);break}i=s(i)}}function h(e,t){t.anchor=d(s(e),t,o(e),n,i,r,a)}H(p,"hydrateAnchor"),H(h,"hydrateDisabledTeleport");const f=t.target=Zi(t.props,l),m=Wi(t.props);if(f){const l=f._lpa||f.firstChild;16&t.shapeFlag&&(m?(h(e,t),p(f,l),t.targetAnchor||nr(f,t,c,u,o(e)===f?e:null)):(t.anchor=s(e),p(f,l),t.targetAnchor||nr(f,t,c,u),d(l&&s(l),t,f,n,i,r,a))),tr(t,m)}else m&&16&t.shapeFlag&&(h(e,t),t.targetStart=e,t.targetAnchor=s(e));return t.anchor&&s(t.anchor)}H(Qi,"moveTeleport"),H(Ji,"hydrateTeleport");const er=Xi;function tr(e,t){const n=e.ctx;if(n&&n.ut){let i,r;for(t?(i=e.el,r=e.anchor):(i=e.targetStart,r=e.targetAnchor);i&&i!==r;)1===i.nodeType&&i.setAttribute("data-v-owner",n.uid),i=i.nextSibling;n.ut()}}function nr(e,t,n,i,r=null){const a=t.targetStart=n(""),s=t.targetAnchor=n("");return a[qi]=s,e&&(i(a,e,r),i(s,e,r)),s}H(tr,"updateCssVars"),H(nr,"prepareAnchor");const ir=Symbol("_leaveCb"),rr=Symbol("_enterCb");function ar(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leav
20ingVNodes:new Map};return Br((()=>{e.isMounted=!0})),Ur((()=>{e.isUnmounting=!0})),e}H(ar,"useTransitionState");const sr=[Function,Array],or={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:sr,onEnter:sr,onAfterEnter:sr,onEnterCancelled:sr,onBeforeLeave:sr,onLeave:sr,onAfterLeave:sr,onLeaveCancelled:sr,onBeforeAppear:sr,onAppear:sr,onAfterAppear:sr,onAppearCancelled:sr},lr=H((e=>{const t=e.subTree;return t.component?lr(t.component):t}),"recursiveGetSubtree"),ur={name:"BaseTransition",props:or,setup(e,{slots:t}){const n=io(),i=ar();return()=>{const r=t.default&&yr(t.default(),!0),a=r&&r.length?cr(r):n.subTree?Ws():void 0;if(!a)return;const s=wn(e),{mode:o}=s;if(i.isLeaving)return fr(a);const l=mr(a);if(!l)return fr(a);let u=hr(l,s,i,n,(e=>u=e));l.type!==ks&&gr(l,u);let c=n.subTree&&mr(n.subTree);if(c&&c.type!==ks&&!Rs(c,l)&&lr(n).type!==ks){let e=hr(c,s,i,n);if(gr(c,e),"out-in"===o&&l.type!==ks)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,c=void 0},fr(a);"in-out"===o&&l.type!==ks?e.delayLeave=(e,t,n)=>{pr(i,c)[String(c.key)]=c,e[ir]=()=>{t(),e[ir]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{n(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return a}}};function cr(e){let t=e[0];if(e.length>1)for(const n of e)if(n.type!==ks){t=n;break}return t}H(cr,"findNonCommentChild");const dr=ur;function pr(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function hr(e,t,n,i,r){const{appear:a,mode:s,persisted:o=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:g,onAppear:y,onAfterAppear:v,onAppearCancelled:b}=t,_=String(e.key),w=pr(n,e),S=H(((e,t)=>{e&&li(e,i,9,t)}),"callHook2"),C=H(((e,t)=>{const n=t[1];S(e,t),re(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()}),"callAsyncHook"),k={mode:s,persisted:o,beforeEnter(t){let i=l;if(!n.isMounted){if(!a)return;i=g||l}t[ir]&&t[ir](!0);const r=w[_];r&&Rs(e,r)&&r.el[ir]&&r.el[ir](),S(i,[t])},enter(t){if(w[_]===e)return;let i=u,r=c,s=d;if(!n.isMounted){if(!a)return;i=y||u,r=v||c,s=b||d}let o=!1;t[rr]=e=>{o||(o=!0,S(e?s:r,[t]),k.delayedLeave&&k.delayedLeave(),t[rr]=void 0)};const l=t[rr].bind(null,!1);i?C(i,[t,l]):l()},leave(t,i){const r=String(e.key);if(t[rr]&&t[rr](!0),n.isUnmounting)return i();S(p,[t]);let a=!1;t[ir]=n=>{a||(a=!0,i(),S(n?m:f,[t]),t[ir]=void 0,w[r]===e&&delete w[r])};const s=t[ir].bind(null,!1);w[r]=e,h?C(h,[t,s]):s()},clone(e){const a=hr(e,t,n,i,r);return r&&r(a),a}};return k}function fr(e){if($r(e))return(e=Vs(e)).children=null,e}function mr(e){if(!$r(e))return zi(e.type)&&e.children?cr(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&le(n.default))return n.default()}}function gr(e,t){6&e.shapeFlag&&e.component?(e.transition=t,gr(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function yr(e,t=!1,n){let i=[],r=0;for(let a=0;a<e.length;a++){let s=e[a];const o=null==n?s.key:String(n)+String(null!=s.key?s.key:a);s.type===Ss?(128&s.patchFlag&&r++,i=i.concat(yr(s.children,t,o))):(t||s.type!==ks)&&i.push(null!=o?Vs(s,{key:o}):s)}if(r>1)for(let a=0;a<i.length;a++)i[a].patchFlag=-2;return i}function vr(e,t){return le(e)?(()=>ee({name:e.name},t,{setup:e}))():e}function br(){const e=io();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function _r(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function wr(e){const t=io(),n=En(null);if(t){const i=t.refs===K?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:H((()=>n.value),"get"),set:H((e=>n.value=e),"set")})}return n}function Sr(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}H(pr,"getLeavingNodesForType"),H(hr,"resolveTransitionHooks"),H(fr,"emptyPlaceholder"),H(mr,"getInnerChild$1"),H(gr,"setTransitionHooks$1"),H(yr,"getTransitionRawChildren"),H(vr,"defineComponent$1"),H(br,"useId"),H(_r,"markAsyncBoundary"),H(wr,"useTemplateRef"),H(Sr,"isTemplateRefKey");const Cr=new WeakMap;function kr(e,t,n,i,r=!1){if(re(e))return void e.forEach(((e,a)=>kr(e,t&&(re(t)?t[a]:t),n,i,r)));if(Ar(i)&&!r)return void(512&i.shapeFlag&&i.type.__asyncResolved&&i.component.subTree.component&&kr(e,t,n,i.component.subTree));const a=4&i.shapeFlag?yo(i.component):i.el,s=r?null:a,{i:o,r:l}=e,u=t&&t.r,c=o.refs===K?o.refs={}:o.refs,d=o.setupState,p=wn(d),h=d===K?X:e=>!Sr(c,e)&&ie(p,e),f=H(((e,t)=>!t||!Sr(c,t)),"canSetRef");if(null!=u&&u!==l)if(xr(t),ue(u))c[u]=null,h(u)&&(d[u]=null);else if(xn(u)){const e=t;f(u,e.k)&&(u.value=null),e.k&&(c[e.k]=null)}if(le(l))oi(l,o,12,[s,c]);else{const t=ue(l),i=xn(l);if(t||i){const o=H((()=>
20{if(e.f){const n=t?h(l)?d[l]:c[l]:f()||!e.k?l.value:c[e.k];if(r)re(n)&&te(n,a);else if(re(n))n.includes(a)||n.push(a);else if(t)c[l]=[a],h(l)&&(d[l]=c[l]);else{const t=[a];f(l,e.k)&&(l.value=t),e.k&&(c[e.k]=t)}}else t?(c[l]=s,h(l)&&(d[l]=s)):i&&(f(l,e.k)&&(l.value=s),e.k&&(c[e.k]=s))}),"doSet");if(s){const t=H((()=>{o(),Cr.delete(e)}),"job");t.id=-1,Cr.set(e,t),us(t,n)}else xr(e),o()}}}function xr(e){const t=Cr.get(e);t&&(t.flags|=8,Cr.delete(e))}H(kr,"setRef"),H(xr,"invalidatePendingSetRef");const Tr=H((e=>8===e.nodeType),"isComment");function Er(e,t){if(Tr(e)&&"["===e.data){let n=1,i=e.nextSibling;for(;i;){if(1===i.nodeType){if(!1===t(i))break}else if(Tr(i))if("]"===i.data){if(0==--n)break}else"["===i.data&&n++;i=i.nextSibling}}else t(e)}De().requestIdleCallback,De().cancelIdleCallback,H(Er,"forEachElement");const Ar=H((e=>!!e.type.__asyncLoader),"isAsyncWrapper");function Lr(e){le(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:r=200,hydrate:a,timeout:s,suspensible:o=!0,onError:l}=e;let u,c=null,d=0;const p=H((()=>(d++,c=null,h())),"retry"),h=H((()=>{let e;return c||(e=c=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,H((()=>t(p())),"userRetry"),H((()=>n(e)),"userFail"),d+1)}));throw e})).then((t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),u=t,t))))}),"load");return vr({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(e,t,n){const i=e.isConnected;let r=!1;(t.bu||(t.bu=[])).push((()=>r=!0));const s=H((()=>{r||!e.parentNode||i&&!e.isConnected||n()}),"performHydrate"),o=a?()=>{const n=a(s,(t=>Er(e,t)));n&&(t.bum||(t.bum=[])).push(n)}:s;u?o():h().then((()=>!t.isUnmounted&&o()))},get __asyncResolved(){return u},setup(){const e=no;if(_r(e),u)return()=>Ir(u,e);const t=H((t=>{c=null,ui(t,e,13,!i)}),"onError");if(o&&e.suspense||uo)return h().then((t=>()=>Ir(t,e))).catch((e=>(t(e),()=>i?Hs(i,{error:e}):null)));const a=Tn(!1),l=Tn(),d=Tn(!!r);let p,f;return Vr((()=>{null!=p&&clearTimeout(p),null!=f&&clearTimeout(f)})),r&&(f=setTimeout((()=>{e.isUnmounted||(d.value=!1)}),r)),null!=s&&(p=setTimeout((()=>{if(!e.isUnmounted&&!a.value&&!l.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),l.value=e}}),s)),h().then((()=>{e.isUnmounted||(a.value=!0,e.parent&&$r(e.parent.vnode)&&e.parent.update())})).catch((n=>{e.isUnmounted?c=null:(t(n),l.value=n)})),()=>a.value&&u?Ir(u,e):l.value&&i?Hs(i,{error:l.value}):n&&!d.value?Ir(n,e):void 0}})}function Ir(e,t){const{ref:n,props:i,children:r,ce:a}=t.vnode,s=Hs(e,i,r);return s.ref=n,s.ce=a,delete t.vnode.ce,s}H(Lr,"defineAsyncComponent"),H(Ir,"createInnerComp");const $r=H((e=>e.type.__isKeepAlive),"isKeepAlive");function Dr(e,t){Or(e,"a",t)}function Pr(e,t){Or(e,"da",t)}function Or(e,t,n=no){const i=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Rr(t,i,n),n){let e=n.parent;for(;e&&e.parent;)$r(e.parent.vnode)&&Mr(i,t,n,e),e=e.parent}}function Mr(e,t,n,i){const r=Rr(t,e,i,!0);Vr((()=>{te(i[t],r)}),n)}function Rr(e,t,n=no,i=!1){if(n){const r=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...i)=>{gt();const r=so(n),a=li(t,n,e,i);return r(),yt(),a});return i?r.unshift(a):r.push(a),a}}H(Dr,"onActivated"),H(Pr,"onDeactivated"),H(Or,"registerKeepAliveHook"),H(Mr,"injectToKeepAliveRoot"),H(Rr,"injectHook$1");const Nr=H((e=>(t,n=no)=>{uo&&"sp"!==e||Rr(e,((...e)=>t(...e)),n)}),"createHook$1"),Fr=Nr("bm"),Br=Nr("m"),Hr=Nr("bu"),jr=Nr("u"),Ur=Nr("bum"),Vr=Nr("um"),qr=Nr("sp"),zr=Nr("rtg"),Wr=Nr("rtc");function Gr(e,t=no){Rr("ec",e,t)}H(Gr,"onErrorCaptured");const Kr="components";function Yr(e,t){return Qr(Kr,e,!0,t)||e}H(Yr,"resolveComponent");const Zr=Symbol.for("v-ndc");function Xr(e){return ue(e)?Qr(Kr,e,!1)||e:e||Zr}function Qr(e,t,n=!0,i=!1){const r=Ei||no;if(r){const n=r.type;{const e=_o(n,!1);if(e&&(e===t||e===we(t)||e===ke(we(t))))return n}const a=Jr(r[e]||n[e],t)||Jr(r.appContext[e],t);return!a&&i?n:a}}function Jr(e,t){return e&&(e[t]||e[we(t)]||e[ke(we(t))])}function ea(e,t,n,i){let r;const a=n,s=re(e);if(s||ue(e)){let n=!1,i=!1;s&&yn(e)&&(n=!bn(e),i=vn(e),e=$t(e)),r=new Array(e.length);for(let s=0,o=e.length;s<o;s++)r[s]=t(n?i?kn(Cn(e[s])):Cn(e[s]):e[s],s,void 0,a)}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,a)}else if(de(e))if(e[Symbol.iterator])r=Array.from(e,((e,n)=>t(e,n,void 0,a)));else{const n=Object.keys(e);r=new Array(n.length);for(let i=0,s=n.length;i<s;i++){const s=n[i];r[i]=t(e[s],s,i,a)}}else r=[];return r}function ta(e,t){for(let n=0;n<t.length;n++){const i=t[n];if(re(i))for(let t=0;t<i.length;t++)e[i[t].name]=i[t].fn;else i&&(e[i.name]=i.key?(...e)=>{const t=i.fn(...e);return t&&(t.key=i.key),t}:i.fn)}return e}function na(e,t,n={},i,r,a){if(Ei.ce||Ei.parent&&Ar(Ei.parent)&&Ei.parent.ce){const e=null!=a&&null==n.key?ee({},n,{key:a}):n,r=Object.keys(e).length>0;return"default"!==t&&(e.name=t),As(),Os(Ss,null,[Hs("slot",e,i&&i())],r?-2:64)}let s=e[t];s&&s._c&&(s._d=!1);const o=Ts.length;let l;As();try{const r=s&&ia(s(n)),o=n.key||a||r&&r.key;l=Os(Ss,{key:(o&&!ce(o)?o:`_${t}`)+(!r&&i?"_fb":"")},r||(i?i():[]),r&&1===e._?64:-2)}catch(u){for(let e=Ts.length;e>o;e--)Ls();throw u}finally{s&&s._c&&(s._d=!0)}return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),l}function ia(e){return e.some((e=>!Ms(e)||e.type!==ks&&!(e.type===Ss&&!ia(e.children))))?e:null}function ra(e,t){const n={};for(const i in e)n[xe(i)]=e[i];return n}H(Xr,"resolveDynamicComponent"),H(Qr,"resolveAsset"),H(Jr,"resolve"),H(ea,"renderList"),H(ta,"createSlots"),H(na,"renderSlot"),H(ia,"ensureValidVNode"),H(ra,"toHandlers");const aa=H((e=>e?lo(e)?yo(e):aa(e.parent):null),"getPublicInstance"),sa=ee(Object.create(null),{$:H((e=>e),"$"),$el:H((e=>e.vnode.el),"$el"),$data:H((e=>e.data),"$data"),$props:H((e=>e.props),"$props"),$attrs:H((e=>e.attrs),"$attrs"),$slots:H((e=>e.slots),"$slots"),$refs:H((e=>e.refs),"$refs"),$parent:H((e=>aa(e.parent)),"$parent"),$root:H((e=>aa(e.root)),"$root"),$host:H((e=>e.ce),"$host"),$emit:H((e=>e.emit),"$emit"),$options:H((e=>va(e)),"$options"),$forceUpdate:H((e=>e.f||(e.f=()=>{_i(e.update)})),"$forceUpdate"),$nextTick:H((e=>e.n||(e.n=vi.bind(e.proxy))),"$nextTick"),$watch:H((e=>
20ji.bind(e)),"$watch")}),oa=H(((e,t)=>e!==K&&!e.__isScriptSetup&&ie(e,t)),"hasSetupBinding"),la={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:i,data:r,props:a,accessCache:s,type:o,appContext:l}=e;if("$"!==t[0]){const e=s[t];if(void 0!==e)switch(e){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return a[t]}else{if(oa(i,t))return s[t]=1,i[t];if(r!==K&&ie(r,t))return s[t]=2,r[t];if(ie(a,t))return s[t]=3,a[t];if(n!==K&&ie(n,t))return s[t]=4,n[t];ha&&(s[t]=0)}}const u=sa[t];let c,d;return u?("$attrs"===t&&Et(e.attrs,0,""),u(e)):(c=o.__cssModules)&&(c=c[t])?c:n!==K&&ie(n,t)?(s[t]=4,n[t]):(d=l.config.globalProperties,ie(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:i,setupState:r,ctx:a}=e;return oa(r,t)?(r[t]=n,!0):i!==K&&ie(i,t)?(i[t]=n,!0):!ie(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,props:a,type:s}},o){let l;return!!(n[o]||e!==K&&"$"!==o[0]&&ie(e,o)||oa(t,o)||ie(a,o)||ie(i,o)||ie(sa,o)||ie(r.config.globalProperties,o)||(l=s.__cssModules)&&l[o])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ua(){return da().slots}function ca(){return da().attrs}function da(e){const t=io();return t.setupContext||(t.setupContext=go(t))}function pa(e){return re(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}H(ua,"useSlots"),H(ca,"useAttrs"),H(da,"getContext$1"),H(pa,"normalizePropsOrEmits");let ha=!0;function fa(e){const t=va(e),n=e.proxy,i=e.ctx;ha=!1,t.beforeCreate&&ga(t.beforeCreate,e,"bc");const{data:r,computed:a,methods:s,watch:o,provide:l,inject:u,created:c,beforeMount:d,mounted:p,beforeUpdate:h,updated:f,activated:m,deactivated:g,beforeDestroy:y,beforeUnmount:v,destroyed:b,unmounted:_,render:w,renderTracked:S,renderTriggered:C,errorCaptured:k,serverPrefetch:x,expose:T,inheritAttrs:E,components:A,directives:L,filters:I}=t;if(u&&ma(u,i,null),s)for(const D in s){const e=s[D];le(e)&&(i[D]=e.bind(n))}if(r){const t=r.call(n,n);de(t)&&(e.data=pn(t))}if(ha=!0,a)for(const D in a){const e=a[D],t=le(e)?e.bind(n,n):le(e.get)?e.get.bind(n,n):Z,r=!le(e)&&le(e.set)?e.set.bind(n):Z,s=Co({get:t,set:r});Object.defineProperty(i,D,{enumerable:!0,configurable:!0,get:H((()=>s.value),"get"),set:H((e=>s.value=e),"set")})}if(o)for(const D in o)ya(o[D],i,n,D);if(l){const e=le(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{Pi(t,e[t])}))}function $(e,t){re(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(c&&ga(c,e,"c"),H($,"registerLifecycleHook"),$(Fr,d),$(Br,p),$(Hr,h),$(jr,f),$(Dr,m),$(Pr,g),$(Gr,k),$(Wr,S),$(zr,C),$(Ur,v),$(Vr,_),$(qr,x),re(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach((e=>{Object.defineProperty(t,e,{get:H((()=>n[e]),"get"),set:H((t=>n[e]=t),"set"),enumerable:!0})}))}else e.exposed||(e.exposed={});w&&e.render===Z&&(e.render=w),null!=E&&(e.inheritAttrs=E),A&&(e.components=A),L&&(e.directives=L),x&&_r(e)}function ma(e,t,n=Z){re(e)&&(e=Ca(e));for(const i in e){const n=e[i];let r;r=de(n)?"default"in n?Oi(n.from||i,n.default,!0):Oi(n.from||i):Oi(n),xn(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:H((()=>r.value),"get"),set:H((e=>r.value=e),"set")}):t[i]=r}}function ga(e,t,n){li(re(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function ya(e,t,n,i){let r=i.includes(".")?Ui(n,i):()=>n[i];if(ue(e)){const n=t[e];le(n)&&Bi(r,n)}else if(le(e))Bi(r,e.bind(n));else if(de(e))if(re(e))e.forEach((e=>ya(e,t,n,i)));else{const i=le(e.handler)?e.handler.bind(n):t[e.handler];le(i)&&Bi(r,i,e)}}function va(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,o=a.get(t);let l;return o?l=o:r.length||n||i?(l={},r.length&&r.forEach((e=>ba(l,e,s,!0))),ba(l,t,s)):l=t,de(t)&&a.set(t,l),l}function ba(e,t,n,i=!1){const{mixins:r,extends:a}=t;a&&ba(e,a,n,!0),r&&r.forEach((t=>ba(e,t,n,!0)));for(const s in t)if(i&&"expose"===s);else{const i=_a[s]||n&&n[s];e[s]=i?i(e[s],t[s]):t[s]}return e}H(fa,"applyOptions"),H(ma,"resolveInjections"),H(ga,"callHook$1"),H(ya,"createWatcher"),H(va,"resolveMergedOptions"),H(ba,"mergeOptions$1");const _a={data:wa,props:Ta,emits:Ta,methods:xa,computed:xa,beforeCreate:ka,created:ka,beforeMount:ka,mounted:ka,beforeUpdate:ka,updated:ka,beforeDestroy:ka,beforeUnmount:ka,destroyed:ka,unmounted:ka,activated:ka,deactivated:ka,errorCaptured:ka,serverPrefetch:ka,components:xa,directives:xa,watch:Ea,provide:wa,inject:Sa};function wa(e,t){return t?e?H((function(){return ee(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}),"mergedDataFn"):t:e}function Sa(e,t){return xa(Ca(e),Ca(t))}function Ca(e){if(re(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ka(e,t){return e?[...new Set([].concat(e,t))]:t}function xa(e,t){return e?ee(Object.create(null),e,t):t}function Ta(e,t){return e?re(e)&&re(t)?[...new Set([...e,...t])]:ee(Object.create(null),pa(e),pa(null!=t?t:{})):t}function Ea(e,t){if(!e)return t;if(!t)return e;const n=ee(Object.create(null),e);for(const i in t)n[i]=ka(e[i],t[i]);return n}function Aa(){return{app:null,config:{isNativeTag:X,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}H(wa,"mergeDataFn"),H(Sa,"mergeInject"),H(Ca,"normalizeInject"),H(ka,"mergeAsArray"),H(xa,"mergeObjectOptions"),H(Ta,"mergeEmitsOrPropsOptions"),H(Ea,"mergeWatchOptions"),H(Aa,"createAppContext");let La=0;function Ia(e,t){return H((function(t,n=null){le(t)||(t=ee({},t)),null==n||de(n)||(n=null);const i=Aa(),r=new WeakSet,a=[];let s=!1;const o=i.app={_uid:La++,_component:t,_props:n,_container:null,_context:i,_instance:null,version:xo,get config(){return i.config},set config(e){},use:(e,...t)=>(r.has(e)||(e&&le(e.install)?(r.add(e),e.install(o,...t)):le(e)&&(r.add(e),e(o,...t))),o),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),o),component:(e,t)=>
20t?(i.components[e]=t,o):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,o):i.directives[e],mount(r,a,l){if(!s){const a=o._ceVNode||Hs(t,n);return a.appContext=i,!0===l?l="svg":!1===l&&(l=void 0),e(a,r,l),s=!0,o._container=r,r.__vue_app__=o,yo(a.component)}},onUnmount(e){a.push(e)},unmount(){s&&(li(a,o._instance,16),e(null,o._container),delete o._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,o),runWithContext(e){const t=$a;$a=o;try{return e()}finally{$a=t}}};return o}),"createApp")}H(Ia,"createAppAPI");let $a=null;const Da=H(((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${we(t)}Modifiers`]||e[`${Ce(t)}Modifiers`]),"getModelModifiers");function Pa(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||K;let r=n;const a=t.startsWith("update:"),s=a&&Da(i,t.slice(7));let o;s&&(s.trim&&(r=n.map((e=>ue(e)?e.trim():e))),s.number&&(r=n.map(Le)));let l=i[o=xe(t)]||i[o=xe(we(t))];!l&&a&&(l=i[o=xe(Ce(t))]),l&&li(l,e,6,r);const u=i[o+"Once"];if(u){if(e.emitted){if(e.emitted[o])return}else e.emitted={};e.emitted[o]=!0,li(u,e,6,r)}}H(Pa,"emit$1");const Oa=new WeakMap;function Ma(e,t,n=!1){const i=n?Oa:t.emitsCache,r=i.get(e);if(void 0!==r)return r;const a=e.emits;let s={},o=!1;if(!le(e)){const i=H((e=>{const n=Ma(e,t,!0);n&&(o=!0,ee(s,n))}),"extendEmits");!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return a||o?(re(a)?a.forEach((e=>s[e]=null)):ee(s,a),de(e)&&i.set(e,s),s):(de(e)&&i.set(e,null),null)}function Ra(e,t){return!(!e||!Q(t))&&(t="Once"===(t=t.slice(2))?t:t.replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,Ce(t))||ie(e,t))}function Na(){}function Fa(e){const{type:t,vnode:n,proxy:i,withProxy:r,propsOptions:[a],slots:s,attrs:o,emit:l,render:u,renderCache:c,props:d,data:p,setupState:h,ctx:f,inheritAttrs:m}=e,g=Li(e);let y,v;try{if(4&n.shapeFlag){const e=r||i,t=e;y=Gs(u.call(t,e,c,d,h,p,f)),v=o}else{const e=t;0,y=Gs(e.length>1?e(d,{attrs:o,slots:s,emit:l}):e(d,null)),v=t.props?o:Ba(o)}}catch(_){Ts.length=0,ui(_,e,1),y=Hs(ks)}let b=y;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(a&&e.some(J)&&(v=Ha(v,a)),b=Vs(b,v,!1,!0))}return n.dirs&&(b=Vs(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&gr(b,n.transition),y=b,Li(g),y}H(Ma,"normalizeEmitsOptions"),H(Ra,"isEmitListener"),H(Na,"markAttrsAccessed"),H(Fa,"renderComponentRoot");const Ba=H((e=>{let t;for(const n in e)("class"===n||"style"===n||Q(n))&&((t||(t={}))[n]=e[n]);return t}),"getFunctionalFallthrough"),Ha=H(((e,t)=>{const n={};for(const i in e)J(i)&&i.slice(9)in t||(n[i]=e[i]);return n}),"filterModelListeners");function ja(e,t,n){const{props:i,children:r,component:a}=e,{props:s,children:o,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!o||o&&o.$stable)||i!==s&&(i?!s||Ua(i,s,u):!!s);if(1024&l)return!0;if(16&l)return i?Ua(i,s,u):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(Va(s,i,n)&&!Ra(u,n))return!0}}return!1}function Ua(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const a=i[r];if(Va(t,e,a)&&!Ra(n,a))return!0}return!1}function Va(e,t,n){const i=e[n],r=t[n];return"style"===n&&de(i)&&de(r)?!Ve(i,r):i!==r}function qa({vnode:e,parent:t,suspense:n},i){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=i,e=n),n!==e)break;(e=t.vnode).el=i,t=t.parent}n&&n.activeBranch===e&&(n.vnode.el=i)}H(ja,"shouldUpdateComponent"),H(Ua,"hasPropsChanged"),H(Va,"hasPropValueChanged"),H(qa,"updateHOCHostEl");const za={},Wa=H((()=>Object.create(za)),"createInternalObject"),Ga=H((e=>Object.getPrototypeOf(e)===za),"isInternalObject$1");function Ka(e,t,n,i=!1){const r={},a=Wa();e.propsDefaults=Object.create(null),Za(e,t,r,a);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=i?r:hn(r):e.type.props?e.props=r:e.props=a,e.attrs=a}function Ya(e,t,n,i){const{props:r,attrs:a,vnode:{patchFlag:s}}=e,o=wn(r),[l]=e.propsOptions;let u=!1;if(!(i||s>0)||16&s){let i;Za(e,t,r,a)&&(u=!0);for(const a in o)t&&(ie(t,a)||(i=Ce(a))!==a&&ie(t,i))||(l?!n||void 0===n[a]&&void 0===n[i]||(r[a]=Xa(l,o,a,void 0,e,!0)):delete r[a]);if(a!==o)for(const e in a)t&&ie(t,e)||(delete a[e],u=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let i=0;i<n.length;i++){let s=n[i];if(Ra(e.emitsOptions,s))continue;const c=t[s];if(l)if(ie(a,s))c!==a[s]&&(a[s]=c,u=!0);else{const t=we(s);r[t]=Xa(l,o,t,c,e,!1)}else c!==a[s]&&(a[s]=c,u=!0)}}u&&At(e.attrs,"set","")}function Za(e,t,n,i){const[r,a]=e.propsOptions;let s,o=!1;if(t)for(let l in t){if(ve(l))continue;const u=t[l];let c;r&&ie(r,c=we(l))?a&&a.includes(c)?(s||(s={}))[c]=u:n[c]=u:Ra(e.emitsOptions,l)||l in i&&u===i[l]||(i[l]=u,o=!0)}if(a){const t=wn(n),i=s||K;for(let s=0;s<a.length;s++){const o=a[s];n[o]=Xa(r,t,o,i[o],e,!ie(i,o))}}return o}function Xa(e,t,n,i,r,a){const s=e[n];if(null!=s){const e=ie(s,"default");if(e&&void 0===i){const e=s.default;if(s.type!==Function&&!s.skipFactory&&le(e)){const{propsDefaults:a}=r;if(n in a)i=a[n];else{const s=so(r);i=a[n]=e.call(null,t),s()}}else i=e;r.ce&&r.ce._setProp(n,i)}s[0]&&(a&&!e?i=!1:!s[1]||""!==i&&i!==Ce(n)||(i=!0))}return i}H(Ka,"initProps"),H(Ya,"updateProps"),H(Za,"setFullProps"),H(Xa,"resolvePropValue");const Qa=new WeakMap;function Ja(e,t,n=!1){const i=n?Qa:t.propsCache,r=i.get(e);if(r)return r;const a=e.props,s={},o=[];let l=!1;if(!le(e)){const i=H((e=>{l=!0;const[n,i]=Ja(e,t,!0);ee(s,n),i&&o.push(...i)}),"extendProps");!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!a&&!l)return de(e)&&i.set(e,Y),Y;if(re(a))for(let c=0;c<a.length;c++){const e=we(a[c]);es(e)&&(s[e]=K)}else if(a)for(const c in a){const e=we(c);if(es(e)){const t=a[c],n=s[e]=re(t)||le(t)?{type:t}:ee({},t),i=n.type;let r=!1,l=!0;if(re(i))for(let e=0;e<i.length;++e){const t=i[e],n=le(t)&&t.name;if("Boolean"===n){r=!0;break}"String"===n&&(l=!1)}else r=le(i)&&"Boolean"===i.name;n[0]=r,n[1]=l,(r||ie(n,"default"))&&o.push(e)}}const u=[s,o];return de(e)&&i.set(e,u),u}function es(e){return"$"!==e[0]&&!ve(e)}H(Ja,"normalizePropsOptions"),H(es,"validatePropName");const ts=H((e=>"_"===e||"_ctx"===e||"$stable"===e),"isInternalKey"),ns=H((e=>re(e)?e.map(Gs):[Gs(e)]),"normalizeSlotValue"),is=H(((e,t,n)=>{if(t._n)return t;const i=Ii(((...e)=>ns(t(...e))),n);return i._c=!1,i}),"normalizeSlot$1"),rs=H(((e,t,n)=>{const i=e._ctx;for(const r in e){if(ts(r))continue;const n=e[r];if(le(n))t[r]=is(r,n,i);else if(null!=n){const e=ns(n);t[r]=()=>e}}}),"normalizeObjectSlots"),as=H(((e,t)=>{const n=ns(t);e.slots.default=()=>n}),"normalizeVNodeSlots"),ss=H(((e,t,n)=>{for(const i in t)!n&&ts(i)||(e[i]=t[i])}),"assignSlots"),os=H(((e,t,n)=>{const i=e.slots=Wa();if(32&e.vnode.shapeFlag){const e=t._;e?(ss(i,t,n),n&&Ae(i,"_",e,!0)):rs(t,i)}else t&&as(e,t)}),"initSlots"),ls=H(((e,t,n)=>{const{vnode:i,slots:r}=e;let a=!0,s=K;if(32&i.shapeFlag){const e=t._;e?n&&1===e?a=!1:ss(r,t,n):(a=!t.$stable,rs(t,r)),s=t}else t&&(as(e,t),s={default:1});if(a)for(const o in r)ts(o)||null!=s[o]||delete r[o]}),"updateSlots"),us=ws;function cs(e){return ds(e)}function ds(e,t){De().__VUE__=!0;const{insert:n,remove:i,patchProp:r,createElement:a,createText:s,createComment:o,setText:l,setElementText:u,parentNode:c,nextSibling:d,setScopeId:p=Z,insertStaticContent:h}=e,f=H(((e,t,n,i=null,r=null,a=null,s=void 0,o=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Rs(e,t)&&(i=V(e),N(e,r,a,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:c,shapeFlag:d}=t;switch(u){case Cs:m(e,t,n,i);break;case ks:g(e,t,n,i);break;case xs:null==e&&y(t,n,i,s);break;case Ss:E(e,t,n,i,r,a,s,o,l);break;default:1&d?_(e,t,n,i,r,a,s,o,l):6&d?A(e,t,n,i,r,a,s,o,l):(64&d||128&d)&&u.process(e,t,n,i,r,a,s,o,l,W)}
20null!=c&&r?kr(c,e&&e.ref,a,t||e,!t):null==c&&e&&null!=e.ref&&kr(e.ref,null,a,e,!0)}),"patch"),m=H(((e,t,i,r)=>{if(null==e)n(t.el=s(t.children),i,r);else{const n=t.el=e.el;t.children!==e.children&&l(n,t.children)}}),"processText"),g=H(((e,t,i,r)=>{null==e?n(t.el=o(t.children||""),i,r):t.el=e.el}),"processCommentNode"),y=H(((e,t,n,i)=>{[e.el,e.anchor]=h(e.children,t,n,i,e.el,e.anchor)}),"mountStaticNode"),v=H((({el:e,anchor:t},i,r)=>{let a;for(;e&&e!==t;)a=d(e),n(e,i,r),e=a;n(t,i,r)}),"moveStaticNode"),b=H((({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=d(e),i(e),e=n;i(t)}),"removeStaticNode"),_=H(((e,t,n,i,r,a,s,o,l)=>{if("svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e)w(t,n,i,r,a,s,o,l);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),k(e,t,r,a,s,o,l)}finally{n&&n._endPatch()}}}),"processElement"),w=H(((e,t,i,s,o,l,c,d)=>{let p,h;const{props:f,shapeFlag:m,transition:g,dirs:y}=e;if(p=e.el=a(e.type,l,f&&f.is,f),8&m?u(p,e.children):16&m&&C(e.children,p,null,s,o,ps(e,l),c,d),y&&Di(e,null,s,"created"),S(p,e,e.scopeId,c,s),f){for(const e in f)"value"===e||ve(e)||r(p,e,null,f[e],l,s);"value"in f&&r(p,"value",null,f.value,l),(h=f.onVnodeBeforeMount)&&Xs(h,s,e)}y&&Di(e,null,s,"beforeMount");const v=fs(o,g);v&&g.beforeEnter(p),n(p,t,i),((h=f&&f.onVnodeMounted)||v||y)&&us((()=>{try{h&&Xs(h,s,e),v&&g.enter(p),y&&Di(e,null,s,"mounted")}finally{}}),o)}),"mountElement"),S=H(((e,t,n,i,r)=>{if(n&&p(e,n),i)for(let a=0;a<i.length;a++)p(e,i[a]);if(r){let n=r.subTree;if(t===n||_s(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=r.vnode;S(e,t,t.scopeId,t.slotScopeIds,r.parent)}}}),"setScopeId"),C=H(((e,t,n,i,r,a,s,o,l=0)=>{for(let u=l;u<e.length;u++){const l=e[u]=o?Ks(e[u]):Gs(e[u]);f(null,l,t,n,i,r,a,s,o)}}),"mountChildren"),k=H(((e,t,n,i,a,s,o)=>{const l=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:p}=t;c|=16&e.patchFlag;const h=e.props||K,f=t.props||K;let m;if(n&&hs(n,!1),(m=f.onVnodeBeforeUpdate)&&Xs(m,n,t,e),p&&Di(t,e,n,"beforeUpdate"),n&&hs(n,!0),!d||e.dynamicChildren&&e.dynamicChildren.length===d.length||(c=0,o=!1,d=null),(h.innerHTML&&null==f.innerHTML||h.textContent&&null==f.textContent)&&u(l,""),d?x(e.dynamicChildren,d,l,n,i,ps(t,a),s):o||P(e,t,l,null,n,i,ps(t,a),s,!1),c>0){if(16&c)T(l,h,f,n,a);else if(2&c&&h.class!==f.class&&r(l,"class",null,f.class,a),4&c&&r(l,"style",h.style,f.style,a),8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const i=e[t],s=h[i],o=f[i];o===s&&"value"!==i||r(l,i,s,o,a,n)}}1&c&&e.children!==t.children&&u(l,t.children)}else o||null!=d||T(l,h,f,n,a);((m=f.onVnodeUpdated)||p)&&us((()=>{m&&Xs(m,n,t,e),p&&Di(t,e,n,"updated")}),i)}),"patchElement"),x=H(((e,t,n,i,r,a,s)=>{for(let o=0;o<t.length;o++){const l=e[o],u=t[o],d=l.el&&(l.type===Ss||!Rs(l,u)||198&l.shapeFlag)?c(l.el):n;f(l,u,d,null,i,r,a,s,!0)}}),"patchBlockChildren"),T=H(((e,t,n,i,a)=>{if(t!==n){if(t!==K)for(const s in t)ve(s)||s in n||r(e,s,t[s],null,a,i);for(const s in n){if(ve(s))continue;const o=n[s],l=t[s];o!==l&&"value"!==s&&r(e,s,l,o,a,i)}"value"in n&&r(e,"value",t.value,n.value,a)}}),"patchProps"),E=H(((e,t,i,r,a,o,l,u,c)=>{const d=t.el=e?e.el:s(""),p=t.anchor=e?e.anchor:s("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(u=u?u.concat(m):m),null==e?(n(d,i,r),n(p,i,r),C(t.children||[],i,p,a,o,l,u,c)):h>0&&64&h&&f&&e.dynamicChildren&&e.dynamicChildren.length===f.length?(x(e.dynamicChildren,f,i,a,o,l,u),(null!=t.key||a&&t===a.subTree)&&ms(e,t,!0)):P(e,t,i,p,a,o,l,u,c)}),"processFragment"),A=H(((e,t,n,i,r,a,s,o,l)=>{t.slotScopeIds=o,null==e?512&t.shapeFlag?r.ctx.activate(t,n,i,s,l):L(t,n,i,r,a,s,l):I(e,t,l)}),"processComponent"),L=H(((e,t,n,i,r,a,s)=>{const o=e.component=eo(e,i,r);if($r(e)&&(o.ctx.renderer=W),co(o,!1,s),o.asyncDep){if(r&&r.registerDep(o,$,s),!e.el){const i=o.subTree=Hs(ks);g(null,i,t,n),e.placeholder=i.el}}else $(o,e,t,n,r,a,s)}),"mountComponent"),I=H(((e,t,n)=>{const i=t.component=e.component;if(ja(e,t,n)){if(i.asyncDep&&!i.asyncResolved)return void D(i,t,n);i.next=t,i.update()}else t.el=e.el,i.vnode=t}),"updateComponent"),$=H(((e,t,n,i,r,a,s)=>{const o=H((()=>
20{if(e.isMounted){let{next:t,bu:n,u:i,parent:o,vnode:l}=e;{const n=ys(e);if(n)return t&&(t.el=l.el,D(e,t,s)),void n.asyncDep.then((()=>{us((()=>{e.isUnmounted||u()}),r)}))}let d,p=t;hs(e,!1),t?(t.el=l.el,D(e,t,s)):t=l,n&&Ee(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Xs(d,o,t,l),hs(e,!0);const h=Fa(e),m=e.subTree;e.subTree=h,f(m,h,c(m.el),V(m),e,r,a),t.el=h.el,null===p&&qa(e,h.el),i&&us(i,r),(d=t.props&&t.props.onVnodeUpdated)&&us((()=>Xs(d,o,t,l)),r)}else{let s;const{el:o,props:l}=t,{bm:u,m:c,parent:d,root:p,type:h}=e,m=Ar(t);hs(e,!1),u&&Ee(u),!m&&(s=l&&l.onVnodeBeforeMount)&&Xs(s,d,t),hs(e,!0);{p.ce&&p.ce._hasShadowRoot()&&p.ce._injectChildStyle(h,e.parent?e.parent.type:void 0);const s=e.subTree=Fa(e);f(null,s,n,i,e,r,a),t.el=s.el}if(c&&us(c,r),!m&&(s=l&&l.onVnodeMounted)){const e=t;us((()=>Xs(s,d,e)),r)}(256&t.shapeFlag||d&&Ar(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&us(e.a,r),e.isMounted=!0,t=n=i=null}}),"componentUpdateFn");e.scope.on();const l=e.effect=new it(o);e.scope.off();const u=e.update=l.run.bind(l),d=e.job=l.runIfDirty.bind(l);d.i=e,d.id=e.uid,l.scheduler=()=>_i(d),hs(e,!0),u()}),"setupRenderEffect"),D=H(((e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,Ya(e,t.props,i,n),ls(e,t.children,n),gt(),Ci(e),yt()}),"updateComponentPreRender"),P=H(((e,t,n,i,r,a,s,o,l=!1)=>{const c=e&&e.children,d=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void M(c,p,n,i,r,a,s,o,l);if(256&h)return void O(c,p,n,i,r,a,s,o,l)}8&f?(16&d&&U(c,r,a),p!==c&&u(n,p)):16&d?16&f?M(c,p,n,i,r,a,s,o,l):U(c,r,a,!0):(8&d&&u(n,""),16&f&&C(p,n,i,r,a,s,o,l))}),"patchChildren"),O=H(((e,t,n,i,r,a,s,o,l)=>{t=t||Y;const u=(e=e||Y).length,c=t.length,d=Math.min(u,c);let p;for(p=0;p<d;p++){const i=t[p]=l?Ks(t[p]):Gs(t[p]);f(e[p],i,n,null,r,a,s,o,l)}u>c?U(e,r,a,!0,!1,d):C(t,n,i,r,a,s,o,l,d)}),"patchUnkeyedChildren"),M=H(((e,t,n,i,r,a,s,o,l)=>{let u=0;const c=t.length;let d=e.length-1,p=c-1;for(;u<=d&&u<=p;){const i=e[u],c=t[u]=l?Ks(t[u]):Gs(t[u]);if(!Rs(i,c))break;f(i,c,n,null,r,a,s,o,l),u++}for(;u<=d&&u<=p;){const i=e[d],u=t[p]=l?Ks(t[p]):Gs(t[p]);if(!Rs(i,u))break;f(i,u,n,null,r,a,s,o,l),d--,p--}if(u>d){if(u<=p){const e=p+1,d=e<c?t[e].el:i;for(;u<=p;)f(null,t[u]=l?Ks(t[u]):Gs(t[u]),n,d,r,a,s,o,l),u++}}else if(u>p)for(;u<=d;)N(e[u],r,a,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=l?Ks(t[u]):Gs(t[u]);null!=e.key&&g.set(e.key,u)}let y,v=0;const b=p-m+1;let _=!1,w=0;const S=new Array(b);for(u=0;u<b;u++)S[u]=0;for(u=h;u<=d;u++){const i=e[u];if(v>=b){N(i,r,a,!0);continue}let c;if(null!=i.key)c=g.get(i.key);else for(y=m;y<=p;y++)if(0===S[y-m]&&Rs(i,t[y])){c=y;break}void 0===c?N(i,r,a,!0):(S[c-m]=u+1,c>=w?w=c:_=!0,f(i,t[c],n,null,r,a,s,o,l),v++)}const C=_?gs(S):Y;for(y=C.length-1,u=b-1;u>=0;u--){const e=m+u,d=t[e],p=t[e+1],h=e+1<c?p.el||bs(p):i;0===S[u]?f(null,d,n,h,r,a,s,o,l):_&&(y<0||u!==C[y]?R(d,n,h,2):y--)}}}),"patchKeyedChildren"),R=H(((e,t,r,a,s=null)=>{const{el:o,type:l,transition:u,children:c,shapeFlag:d}=e;if(6&d)return void R(e.component.subTree,t,r,a);if(128&d)return void e.suspense.move(t,r,a);if(64&d)return void l.move(e,t,r,W);if(l===Ss){n(o,t,r);for(let e=0;e<c.length;e++)R(c[e],t,r,a);return void n(e.anchor,t,r)}if(l===xs)return void v(e,t,r);if(2!==a&&1&d&&u)if(0===a)u.persisted&&!o[ir]?n(o,t,r):(u.beforeEnter(o),n(o,t,r),us((()=>u.enter(o)),s));else{const{leave:a,delayLeave:s,afterLeave:l}=u,c=H((()=>{e.ctx.isUnmounted?i(o):n(o,t,r)}),"remove22"),d=H((()=>{const e=o._isLeaving||!!o[ir];o._isLeaving&&o[ir](!0),u.persisted&&!e?c():a(o,(()=>{c(),l&&l()}))}),"performLeave");s?s(o,c,d):d()}else n(o,t,r)}),"move"),N=H(((e,t,n,i=!1,r=!1)=>{const{type:a,props:s,ref:o,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:d,dirs:p,cacheIndex:h,memo:f}=e;if(-2===d&&(r=!1),null!=o&&(gt(),kr(o,null,n,e,!0),yt()),null!=h&&(t.renderCache[h]=void 0),256&c)return void t.ctx.deactivate(e);const m=1&c&&p,g=!Ar(e);let y;if(g&&(y=s&&s.onVnodeBeforeUnmount)&&Xs(y,t,e),6&c)j(e.component,n,i);else{if(128&c)return void e.suspense.unmount(n,i);m&&Di(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,W,i):u&&!u.hasOnce&&(a!==Ss||d>
200&&64&d)?U(u,t,n,!1,!0):(a===Ss&&384&d||!r&&16&c)&&U(l,t,n),i&&F(e)}const v=null!=f&&null==h;(g&&(y=s&&s.onVnodeUnmounted)||m||v)&&us((()=>{y&&Xs(y,t,e),m&&Di(e,null,t,"unmounted"),v&&(e.el=null)}),n)}),"unmount"),F=H((e=>{const{type:t,el:n,anchor:r,transition:a}=e;if(t===Ss)return void B(n,r);if(t===xs)return void b(e);const s=H((()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()}),"performRemove");if(1&e.shapeFlag&&a&&!a.persisted){const{leave:t,delayLeave:i}=a,r=H((()=>t(n,s)),"performLeave");i?i(e.el,s,r):r()}else s()}),"remove2"),B=H(((e,t)=>{let n;for(;e!==t;)n=d(e),i(e),e=n;i(t)}),"removeFragment"),j=H(((e,t,n)=>{const{bum:i,scope:r,job:a,subTree:s,um:o,m:l,a:u}=e;vs(l),vs(u),i&&Ee(i),r.stop(),a&&(a.flags|=8,N(s,e,t,n)),o&&us(o,t),us((()=>{e.isUnmounted=!0}),t)}),"unmountComponent"),U=H(((e,t,n,i=!1,r=!1,a=0)=>{for(let s=a;s<e.length;s++)N(e[s],t,n,i,r)}),"unmountChildren"),V=H((e=>{if(6&e.shapeFlag)return V(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=d(e.anchor||e.el),n=t&&t[qi];return n?d(n):t}),"getNextHostNode");let q=!1;const z=H(((e,t,n)=>{let i;null==e?t._vnode&&(N(t._vnode,null,null,!0),i=t._vnode.component):f(t._vnode||null,e,t,null,null,null,n),t._vnode=e,q||(q=!0,Ci(i),ki(),q=!1)}),"render"),W={p:f,um:N,m:R,r:F,mt:L,mc:C,pc:P,pbc:x,n:V,o:e};return{render:z,hydrate:undefined,createApp:Ia(z)}}function ps({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function hs({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function fs(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ms(e,t,n=!1){const i=e.children,r=t.children;if(re(i)&&re(r))for(let a=0;a<i.length;a++){const e=i[a];let t=r[a];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=r[a]=Ks(r[a]),t.el=e.el),n||-2===t.patchFlag||ms(e,t)),t.type===Cs&&(-1===t.patchFlag&&(t=r[a]=Ks(t)),t.el=e.el),t.type!==ks||t.el||(t.el=e.el)}}function gs(e){const t=e.slice(),n=[0];let i,r,a,s,o;const l=e.length;for(i=0;i<l;i++){const l=e[i];if(0!==l){if(r=n[n.length-1],e[r]<l){t[i]=r,n.push(i);continue}for(a=0,s=n.length-1;a<s;)o=a+s>>1,e[n[o]]<l?a=o+1:s=o;l<e[n[a]]&&(a>0&&(t[i]=n[a-1]),n[a]=i)}}for(a=n.length,s=n[a-1];a-- >0;)n[a]=s,s=t[s];return n}function ys(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ys(t)}function vs(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function bs(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?bs(t.subTree):null}H(cs,"createRenderer"),H(ds,"baseCreateRenderer"),H(ps,"resolveChildrenNamespace"),H(hs,"toggleRecurse"),H(fs,"needTransition"),H(ms,"traverseStaticChildren"),H(gs,"getSequence"),H(ys,"locateNonHydratedAsyncRoot"),H(vs,"invalidateMount"),H(bs,"resolveAsyncComponentPlaceholder");const _s=H((e=>e.__isSuspense),"isSuspense$1");function ws(e,t){t&&t.pendingBranch?re(e)?t.effects.push(...e):t.effects.push(e):Si(e)}H(ws,"queueEffectWithSuspense$1");const Ss=Symbol.for("v-fgt"),Cs=Symbol.for("v-txt"),ks=Symbol.for("v-cmt"),xs=Symbol.for("v-stc"),Ts=[];let Es=null;function As(e=!1){Ts.push(Es=e?null:[])}function Ls(){Ts.pop(),Es=Ts[Ts.length-1]||null}H(As,"openBlock"),H(Ls,"closeBlock");let Is=1;function $s(e,t=!1){Is+=e,e<0&&Es&&t&&(Es.hasOnce=!0)}function Ds(e){return e.dynamicChildren=Is>0?Es||Y:null,Ls(),Is>0&&Es&&Es.push(e),e}function Ps(e,t,n,i,r,a){return Ds(Bs(e,t,n,i,r,a,!0))}function Os(e,t,n,i,r){return Ds(Hs(e,t,n,i,r,!0))}function Ms(e){return!!e&&!0===e.__v_isVNode}function Rs(e,t){return e.type===t.type&&e.key===t.key}H($s,"setBlockTracking"),H(Ds,"setupBlock"),H(Ps,"createElementBlock"),H(Os,"createBlock"),H(Ms,"isVNode$3"),H(Rs,"isSameVNodeType");const Ns=H((({key:e})=>null!=e?e:null),"normalizeKey$1"),Fs=H((({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?ue(e)||xn(e)||le(e)?{i:Ei,r:e,k:t,f:!!n}:e:null)),"normalizeRef$1");function Bs(e,t=null,n=null,i=0,r=null,a=(e===Ss?0:1),s=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ns(t),ref:t&&Fs(t),scopeId:Ai,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ei};return o?(Ys(l,n),128&a&&e.normalize(l)):n&&(l.shapeFlag|=ue(n)?8:16),Is>0&&!s&&Es&&(l.patchFlag>0||6&a)&&32!==l.patchFlag&&Es.push(l),l}H(Bs,"createBaseVNode$1");const Hs=js;function js(e,t=null,n=null,i=0,r=null,a=!1){if(e&&e!==Zr||(e=ks),Ms(e)){const i=Vs(e,t,!0);return n&&Ys(i,n),Is>0&&!a&&Es&&(6&i.shapeFlag?Es[Es.indexOf(e)]=i:Es.push(i)),i.patchFlag=-2,i}if(So(e)&&(e=e.__vccOpts),t){t=Us(t);let{class:e,style:n}=t;e&&!ue(e)&&(t.class=Fe(e)),de(n)&&(_n(n)&&!re(n)&&(n=ee({},n)),t.style=Pe(n))}return Bs(e,t,n,i,r,ue(e)?1:_s(e)?128:zi(e)?64:de(e)?4:le(e)?2:0,a,!0)}function Us(e){return e?_n(e)||Ga(e)?ee({},e):e:null}function Vs(e,t,n=!1,i=!1){const{props:r,ref:a,patchFlag:s,children:o,transition:l}=e,u=t?Zs(r||{}
20,t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Ns(u),ref:t&&t.ref?n&&a?re(a)?a.concat(Fs(t)):[a,Fs(t)]:Fs(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ss?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Vs(e.ssContent),ssFallback:e.ssFallback&&Vs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&gr(c,l.clone(c)),c}function qs(e=" ",t=0){return Hs(Cs,null,e,t)}function zs(e,t){const n=Hs(xs,null,e);return n.staticCount=t,n}function Ws(e="",t=!1){return t?(As(),Os(ks,null,e)):Hs(ks,null,e)}function Gs(e){return null==e||"boolean"==typeof e?Hs(ks):re(e)?Hs(Ss,null,e.slice()):Ms(e)?Ks(e):Hs(Cs,null,String(e))}function Ks(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Vs(e)}function Ys(e,t){let n=0;const{shapeFlag:i}=e;if(null==t)t=null;else if(re(t))n=16;else if("object"==typeof t){if(65&i){const n=t.default;return void(n&&(n._c&&(n._d=!1),Ys(e,n()),n._c&&(n._d=!0)))}{n=32;const i=t._;i||Ga(t)?3===i&&Ei&&(1===Ei.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Ei}}else if(le(t)){if(65&i)return void Ys(e,{default:t});t={default:t,_ctx:Ei},n=32}else t=String(t),64&i?(n=16,t=[qs(t)]):n=8;e.children=t,e.shapeFlag|=n}function Zs(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const e in i)if("class"===e)t.class!==i.class&&(t.class=Fe([t.class,i.class]));else if("style"===e)t.style=Pe([t.style,i.style]);else if(Q(e)){const n=t[e],r=i[e];!r||n===r||re(n)&&n.includes(r)?null!=r||null!=n||J(e)||(t[e]=r):t[e]=n?[].concat(n,r):r}else""!==e&&(t[e]=i[e])}return t}function Xs(e,t,n,i=null){li(e,t,7,[n,i])}H(js,"_createVNode$1"),H(Us,"guardReactiveProps$1"),H(Vs,"cloneVNode$1"),H(qs,"createTextVNode$1"),H(zs,"createStaticVNode"),H(Ws,"createCommentVNode"),H(Gs,"normalizeVNode"),H(Ks,"cloneIfMounted"),H(Ys,"normalizeChildren$1"),H(Zs,"mergeProps$2"),H(Xs,"invokeVNodeHook");const Qs=Aa();let Js=0;function eo(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||Qs,a={uid:Js++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ze(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ja(i,r),emitsOptions:Ma(i,r),emit:null,emitted:null,propsDefaults:K,inheritAttrs:i.inheritAttrs,ctx:K,data:K,props:K,attrs:K,slots:K,refs:K,setupState:K,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Pa.bind(null,a),e.ce&&e.ce(a),a}H(eo,"createComponentInstance");let no=null;const io=H((()=>no||Ei),"getCurrentInstance$1");let ro,ao;{const e=De(),t=H(((t,n)=>{let i;return(i=e[t])||(i=e[t]=[]),i.push(n),e=>{i.length>1?i.forEach((t=>t(e))):i[0](e)}}),"registerGlobalSetter");ro=t("__VUE_INSTANCE_SETTERS__",(e=>no=e)),ao=t("__VUE_SSR_SETTERS__",(e=>uo=e))}const so=H((e=>{const t=no;return ro(e),e.scope.on(),()=>{e.scope.off(),ro(t)}}),"setCurrentInstance$1"),oo=H((()=>{no&&no.scope.off(),ro(null)}),"unsetCurrentInstance");function lo(e){return 4&e.vnode.shapeFlag}H(lo,"isStatefulComponent");let uo=!1;function co(e,t=!1,n=!1){t&&ao(t);const{props:i,children:r}=e.vnode,a=lo(e);Ka(e,i,a,t),os(e,r,n||t);const s=a?po(e,t):void 0;return t&&ao(!1),s}function po(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,la);const{setup:i}=n;if(i){gt();const n=e.setupContext=i.length>1?go(e):null,r=so(e),a=oi(i,e,0,[e.props,n]),s=pe(a);if(yt(),r(),!s&&!e.sp||Ar(e)||_r(e),s){if(a.then(oo,oo),t)return a.then((t=>{ho(e,t)})).catch((t=>{ui(t,e,0)}));e.asyncDep=a}else ho(e,a)}else fo(e)}
20function ho(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=On(t)),fo(e)}function fo(e,t,n){const i=e.type;e.render||(e.render=i.render||Z);{const t=so(e);gt();try{fa(e)}finally{yt(),t()}}}H(co,"setupComponent"),H(po,"setupStatefulComponent"),H(ho,"handleSetupResult"),H(fo,"finishComponentSetup");const mo={get:(e,t)=>(Et(e,0,""),e[t])};function go(e){const t=H((t=>{e.exposed=t||{}}),"expose");return{attrs:new Proxy(e.attrs,mo),slots:e.slots,emit:e.emit,expose:t}}function yo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(On(Sn(e.exposed)),{get:(t,n)=>n in t?t[n]:n in sa?sa[n](e):void 0,has:(e,t)=>t in e||t in sa})):e.proxy}H(go,"createSetupContext"),H(yo,"getComponentPublicInstance");const vo=/(?:^|[-_])\w/g,bo=H((e=>e.replace(vo,(e=>e.toUpperCase())).replace(/[-_]/g,"")),"classify$2");function _o(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function wo(e,t,n=!1){let i=_o(t);if(!i&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(i=e[1])}if(!i&&e){const n=H((e=>{for(const n in e)if(e[n]===t)return n}),"inferFromRegistry");i=n(e.components)||e.parent&&n(e.parent.type.components)||n(e.appContext.components)}return i?bo(i):n?"App":"Anonymous"}function So(e){return le(e)&&"__vccOpts"in e}H(_o,"getComponentName$2"),H(wo,"formatComponentName$2"),H(So,"isClassComponent$1");const Co=H(((e,t)=>Wn(e,0,uo)),"computed$2");function ko(e,t,n){try{$s(-1);const i=arguments.length;return 2===i?de(t)&&!re(t)?Ms(t)?Hs(e,null,[t]):Hs(e,t):Hs(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&Ms(n)&&(n=[n]),Hs(e,t,n))}finally{$s(1)}}H(ko,"h$3");const xo="3.5.40"; 21 /** 22 * @vue/runtime-dom v3.5.40 23 * (c) 2018-present Yuxi (Evan) You and Vue contributors 24 * @license MIT 25 **/let To;const Eo="undefined"!=typeof window&&window.trustedTypes;if(Eo)try{To=Eo.createPolicy("vue",{createHTML:H((e=>e),"createHTML")})}catch(tvt){}const Ao=To?e=>To.createHTML(e):e=>e,Lo="undefined"!=typeof document?document:null,Io=Lo&&Lo.createElement("template"),$o={insert:H(((e,t,n)=>{t.insertBefore(e,n||null)}),"insert"),remove:H((e=>{const t=e.parentNode;t&&t.removeChild(e)}),"remove"),createElement:H(((e,t,n,i)=>{const r="svg"===t?Lo.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Lo.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Lo.createElement(e,{is:n}):Lo.createElement(e);return"select"===e&&i&&null!=i.multiple&&r.setAttribute("multiple",i.multiple),r}),"createElement"),createText:H((e=>Lo.createTextNode(e)),"createText"),createComment:H((e=>Lo.createComment(e)),"createComment"),setText:H(((e,t)=>{e.nodeValue=t}),"setText"),setElementText:H(((e,t)=>{e.textContent=t}),"setElementText"),parentNode:H((e=>e.parentNode),"parentNode"),nextSibling:H((e=>e.nextSibling),"nextSibling"),querySelector:H((e=>Lo.querySelector(e)),"querySelector"),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,r,a){const s=n?n.previousSibling:t.lastChild;if(r&&(r===a||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==a&&(r=r.nextSibling););else{Io.innerHTML=Ao("svg"===i?`<svg>${e}</svg>`:"mathml"===i?`<math>${e}</math>`:e);const r=Io.content;if("svg"===i||"mathml"===i){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Do="transition",Po="animation",Oo=Symbol("_vtc"),Mo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ro=ee({},or,Mo),No=H((e=>(e.displayName="Transition",e.props=Ro,e)),"decorate$1")(((e,{slots:t})=>ko(dr,Ho(e),t))),Fo=H(((e,t=[])=>{re(e)?e.forEach((e=>e(...t))):e&&e(...t)}),"callHook"),Bo=H((e=>!!e&&(re(e)?e.some((e=>e.length>1)):e.length>1)),"hasExplicitCallback");function Ho(e){const t={};for(const A in e)A in Mo||(t[A]=e[A]);if(!1===e.css)return t;const{name:n="v",type:i,duration:r,enterFromClass:a=`${n}
25-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=s,appearToClass:c=o,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=jo(r),m=f&&f[0],g=f&&f[1],{onBeforeEnter:y,onEnter:v,onEnterCancelled:b,onLeave:_,onLeaveCancelled:w,onBeforeAppear:S=y,onAppear:C=v,onAppearCancelled:k=b}=t,x=H(((e,t,n,i)=>{e._enterCancelled=i,qo(e,t?c:o),qo(e,t?u:s),n&&n()}),"finishEnter"),T=H(((e,t)=>{e._isLeaving=!1,qo(e,d),qo(e,h),qo(e,p),t&&t()}),"finishLeave"),E=H((e=>(t,n)=>{const r=e?C:v,s=H((()=>x(t,e,n)),"resolve");Fo(r,[t,s]),zo((()=>{qo(t,e?l:a),Vo(t,e?c:o),Bo(r)||Go(t,i,m,s)}))}),"makeEnterHook");return ee(t,{onBeforeEnter(e){Fo(y,[e]),Vo(e,a),Vo(e,s)},onBeforeAppear(e){Fo(S,[e]),Vo(e,l),Vo(e,u)},onEnter:E(!1),onAppear:E(!0),onLeave(e,t){e._isLeaving=!0;const n=H((()=>T(e,t)),"resolve");Vo(e,d),e._enterCancelled?(Vo(e,p),Xo(e)):(Xo(e),Vo(e,p)),zo((()=>{e._isLeaving&&(qo(e,d),Vo(e,h),Bo(_)||Go(e,i,g,n))})),Fo(_,[e,n])},onEnterCancelled(e){x(e,!1,void 0,!0),Fo(b,[e])},onAppearCancelled(e){x(e,!0,void 0,!0),Fo(k,[e])},onLeaveCancelled(e){T(e),Fo(w,[e])}})}function jo(e){if(null==e)return null;if(de(e))return[Uo(e.enter),Uo(e.leave)];{const t=Uo(e);return[t,t]}}function Uo(e){return Ie(e)}function Vo(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[Oo]||(e[Oo]=new Set)).add(t)}function qo(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[Oo];n&&(n.delete(t),n.size||(e[Oo]=void 0))}function zo(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}H(Ho,"resolveTransitionProps"),H(jo,"normalizeDuration"),H(Uo,"NumberOf"),H(Vo,"addTransitionClass"),H(qo,"removeTransitionClass"),H(zo,"nextFrame");let Wo=0;function Go(e,t,n,i){const r=e._endId=++Wo,a=H((()=>{r===e._endId&&i()}),"resolveIfNotStale");if(null!=n)return setTimeout(a,n);const{type:s,timeout:o,propCount:l}=Ko(e,t);if(!s)return i();const u=s+"end";let c=0;const d=H((()=>{e.removeEventListener(u,p),a()}),"end"),p=H((t=>{t.target===e&&++c>=l&&d()}),"onEnd");setTimeout((()=>{c<l&&d()}),o+1),e.addEventListener(u,p)}function Ko(e,t){const n=window.getComputedStyle(e),i=H((e=>(n[e]||"").split(", ")),"getStyleProperties"),r=i(`${Do}Delay`),a=i(`${Do}Duration`),s=Yo(r,a),o=i(`${Po}Delay`),l=i(`${Po}Duration`),u=Yo(o,l);let c=null,d=0,p=0;t===Do?s>0&&(c=Do,d=s,p=a.length):t===Po?u>0&&(c=Po,d=u,p=l.length):(d=Math.max(s,u),c=d>0?s>u?Do:Po:null,p=c?c===Do?a.length:l.length:0);return{type:c,timeout:d,propCount:p,hasTransform:c===Do&&/\b(?:transform|all)(?:,|$)/.test(i(`${Do}Property`).toString())}}function Yo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>Zo(t)+Zo(e[n]))))}function Zo(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function Xo(e){return(e?e.ownerDocument:document).body.offsetHeight}function Qo(e,t,n){const i=e[Oo];i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}H(Go,"whenTransitionEnds"),H(Ko,"getTransitionInfo"),H(Yo,"getTimeout"),H(Zo,"toMs"),H(Xo,"forceReflow"),H(Qo,"patchClass");const Jo=Symbol("_vod"),el=Symbol("_vsh"),tl={name:"show",beforeMount(e,{value:t},{transition:n}){e[Jo]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):nl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),nl(e,!0),i.enter(e)):i.leave(e,(()=>{nl(e,!1)})):nl(e,t))},beforeUnmount(e,{value:t}){nl(e,t)}};function nl(e,t){e.style.display=t?e[Jo]:"none",e[el]=!t}H(nl,"setDisplay");const il=Symbol(""),rl=/(?:^|;)\s*display\s*:/;function al(e,t,n){const i=e.style,r=ue(n);let a=!1;if(n&&!r){if(t)if(ue(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&ol(i,t,"")}else for(const e in t)null==n[e]&&ol(i,e,"");for(const r in n){"display"===r&&(a=!0);const s=n[r];null!=s?dl(e,r,!ue(t)&&t?t[r]:void 0,s)||ol(i,r,s):ol(i,r,"")}}else if(r){if(t!==n){const e=i[il];e&&(n+=";"+e),i.cssText=n,a=rl.test(n)}}else t&&e.removeAttribute("style");Jo in e&&(e[Jo]=a?i.display:"",e[el]&&(i.display="none"))}H(al,"patchStyle");const sl=/\s*!important$/;function ol(e,t,n){if(re(n))n.forEach((n=>ol(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=cl(e,t);
25sl.test(n)?e.setProperty(Ce(i),n.replace(sl,""),"important"):e[i]=n}}H(ol,"setStyle");const ll=["Webkit","Moz","ms"],ul={};function cl(e,t){const n=ul[t];if(n)return n;let i=we(t);if("filter"!==i&&i in e)return ul[t]=i;i=ke(i);for(let r=0;r<ll.length;r++){const n=ll[r]+i;if(n in e)return ul[t]=n}return t}function dl(e,t,n,i){return"TEXTAREA"===e.tagName&&("width"===t||"height"===t)&&ue(i)&&n===i}H(cl,"autoPrefix"),H(dl,"shouldPreserveTextareaResizeStyle");const pl="http://www.w3.org/1999/xlink";function hl(e,t,n,i,r,a=He(t)){i&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(pl,t.slice(6,t.length)):e.setAttributeNS(pl,t,n):null==n||a&&!je(n)?e.removeAttribute(t):e.setAttribute(t,a?"":ce(n)?String(n):n)}function fl(e,t,n,i,r){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Ao(n):n));const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){const i="OPTION"===a?e.getAttribute("value")||"":e.value,r=null==n?"checkbox"===e.type?"on":"":String(n);return i===r&&"_value"in e||(e.value=r),null==n&&e.removeAttribute(t),void(e._value=n)}let s=!1;if(""===n||null==n){const i=typeof e[t];"boolean"===i?n=je(n):null==n&&"string"===i?(n="",s=!0):"number"===i&&(n=0,s=!0)}try{e[t]=n}catch(tvt){}s&&e.removeAttribute(r||t)}function ml(e,t,n,i){e.addEventListener(t,n,i)}function gl(e,t,n,i){e.removeEventListener(t,n,i)}H(hl,"patchAttr"),H(fl,"patchDOMProp"),H(ml,"addEventListener$1"),H(gl,"removeEventListener$1");const yl=Symbol("_vei");function vl(e,t,n,i,r=null){const a=e[yl]||(e[yl]={}),s=a[t];if(i&&s)s.value=i;else{const[n,o]=wl(t);if(i){ml(e,n,a[t]=xl(i,r),o)}else s&&(gl(e,n,s,o),a[t]=void 0)}}H(vl,"patchEvent");const bl=/(Once|Passive|Capture)$/,_l=/^on:?(?:Once|Passive|Capture)$/;function wl(e){let t,n;for(;(n=e.match(bl))&&!_l.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[":"===e[2]?e.slice(3):Ce(e.slice(2)),t]}H(wl,"parseName");let Sl=0;const Cl=Promise.resolve(),kl=H((()=>Sl||(Cl.then((()=>Sl=0)),Sl=Date.now())),"getNow");function xl(e,t){const n=H((e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const i=n.value;if(re(i)){const n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};const r=i.slice(),a=[e];for(let i=0;i<r.length&&!e._stopped;i++){const e=r[i];e&&li(e,t,5,a)}}else li(i,t,5,[e])}),"invoker");return n.value=e,n.attached=kl(),n}H(xl,"createInvoker");const Tl=H((e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123),"isNativeOn"),El=H(((e,t,n,i,r,a)=>{const s="svg"===r;"class"===t?Qo(e,i,s):"style"===t?al(e,n,i):Q(t)?J(t)||vl(e,t,0,i,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):Al(e,t,i,s))?(fl(e,t,i),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||hl(e,t,i,s,0,"value"!==t)):e._isVueCE&&(Ll(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ue(i)))?fl(e,we(t),i,0,t):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),hl(e,t,i,s))}),"patchProp");function Al(e,t,n,i){if(i)return"innerHTML"===t||"textContent"===t||!!(t in e&&Tl(t)&&le(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!Tl(t)||!ue(n))&&t in e}function Ll(e,t){const n=e._def.props;if(!n)return!1;const i=we(t);return Array.isArray(n)?n.some((e=>we(e)===i)):Object.keys(n).some((e=>we(e)===i))}H(Al,"shouldSetAsProp"),H(Ll,"shouldSetAsPropForVueCE");const Il=new WeakMap,$l=new WeakMap,Dl=Symbol("_moveCb"),Pl=Symbol("_enterCb"),Ol=H((e=>(delete e.props.mode,e)),"decorate")({name:"TransitionGroup",props:ee({},Ro,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=io(),i=ar();let r,a;return jr((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!Bl(r[0].el,n.vnode.el,t))return void(r=[]);r.forEach(Ml),r.forEach(Rl);const i=r.filter(Nl);
25Xo(n.vnode.el),i.forEach((e=>{const n=e.el,i=n.style;Vo(n,t),i.transform=i.webkitTransform=i.transitionDuration="";const r=n[Dl]=e=>{e&&e.target!==n||e&&!e.propertyName.endsWith("transform")||(n.removeEventListener("transitionend",r),n[Dl]=null,qo(n,t))};n.addEventListener("transitionend",r)})),r=[]})),()=>{const s=wn(e),o=Ho(s);let l=s.tag||Ss;if(r=[],a)for(let e=0;e<a.length;e++){const t=a[e];t.el&&t.el instanceof Element&&!t.el[el]&&(r.push(t),gr(t,hr(t,o,i,n)),Il.set(t,Fl(t.el)))}a=t.default?yr(t.default()):[];for(let e=0;e<a.length;e++){const t=a[e];null!=t.key&&gr(t,hr(t,o,i,n))}return Hs(l,null,a)}}});function Ml(e){const t=e.el;t[Dl]&&t[Dl](),t[Pl]&&t[Pl]()}function Rl(e){$l.set(e,Fl(e.el))}function Nl(e){const t=Il.get(e),n=$l.get(e),i=t.left-n.left,r=t.top-n.top;if(i||r){const t=e.el,n=t.style,a=t.getBoundingClientRect();let s=1,o=1;return t.offsetWidth&&(s=a.width/t.offsetWidth),t.offsetHeight&&(o=a.height/t.offsetHeight),Number.isFinite(s)&&0!==s||(s=1),Number.isFinite(o)&&0!==o||(o=1),Math.abs(s-1)<.01&&(s=1),Math.abs(o-1)<.01&&(o=1),n.transform=n.webkitTransform=`translate(${i/s}px,${r/o}px)`,n.transitionDuration="0s",e}}function Fl(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Bl(e,t,n){const i=e.cloneNode(),r=e[Oo];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&i.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&i.classList.add(e))),i.style.display="none";const a=1===t.nodeType?t:t.parentNode;a.appendChild(i);const{hasTransform:s}=Ko(i);return a.removeChild(i),s}H(Ml,"callPendingCbs"),H(Rl,"recordPosition"),H(Nl,"applyTranslation"),H(Fl,"getPosition"),H(Bl,"hasCSSTransform");const Hl=H((e=>{const t=e.props["onUpdate:modelValue"]||!1;return re(t)?e=>Ee(t,e):t}),"getModelAssigner");function jl(e){e.target.composing=!0}function Ul(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}H(jl,"onCompositionStart"),H(Ul,"onCompositionEnd");const Vl=Symbol("_assign");function ql(e,t,n){return t&&(e=e.trim()),n&&(e=Le(e)),e}H(ql,"castValue");const zl={created(e,{modifiers:{lazy:t,trim:n,number:i}},r){e[Vl]=Hl(r);const a=i||r.props&&"number"===r.props.type;ml(e,t?"change":"input",(t=>{t.target.composing||e[Vl](ql(e.value,n,a))})),(n||a)&&ml(e,"change",(()=>{e.value=ql(e.value,n,a)})),t||(ml(e,"compositionstart",jl),ml(e,"compositionend",Ul),ml(e,"change",Ul))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:r,number:a}},s){if(e[Vl]=Hl(s),e.composing)return;const o=null==t?"":t;if((!a&&"number"!==e.type||/^0\d/.test(e.value)?e.value:Le(e.value))===o)return;const l=e.getRootNode();if((l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&"range"!==e.type){if(i&&t===n)return;if(r&&e.value.trim()===o)return}e.value=o}},Wl=["ctrl","shift","alt","meta"],Gl={stop:H((e=>e.stopPropagation()),"stop"),prevent:H((e=>e.preventDefault()),"prevent"),self:H((e=>e.target!==e.currentTarget),"self"),ctrl:H((e=>!e.ctrlKey),"ctrl"),shift:H((e=>!e.shiftKey),"shift"),alt:H((e=>!e.altKey),"alt"),meta:H((e=>!e.metaKey),"meta"),left:H((e=>"button"in e&&0!==e.button),"left"),middle:H((e=>"button"in e&&1!==e.button),"middle"),right:H((e=>"button"in e&&2!==e.button),"right"),exact:H(((e,t)=>Wl.some((n=>e[`${n}Key`]&&!t.includes(n)))),"exact")},Kl=H(((e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=(n,...i)=>{for(let e=0;e<t.length;e++){const i=Gl[t[e]];if(i&&i(n,t))return}return e(n,...i)})}),"withModifiers"),Yl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Zl=H(((e,t)=>{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=n=>{if(!("key"in n))return;const i=Ce(n.key);return t.some((e=>e===i||Yl[e]===i))?e(n):void 0})}),"withKeys"),Xl=ee({patchProp:El},$o);let Ql;function Jl(){return Ql||(Ql=cs(Xl))}H(Jl,"ensureRenderer");const eu=H(((...e)=>{Jl().render(...e)}),"render"),tu=H(((...e)=>{const t=Jl().createApp(...e),{mount:n}=t;return t.mount=e=>{const i=iu(e);if(!i)return;const r=t._component;le(r)||r.render||r.template||(r.template=i.innerHTML),1===i.nodeType&&(i.textContent="");const a=n(i,!1,nu(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t}),"createApp");function nu(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function iu(e){if(ue(e)){return document.querySelector(e)}return e}function ru(e,t={},n){for(const i in e){const r=e[i],a=n?`${n}:${i}`:i;"object"==typeof r&&null!==r?ru(r,t,a):"function"==typeof r&&(t[a]=r)}
25return t}H(nu,"resolveRootNamespace"),H(iu,"normalizeContainer"),H(ru,"flatHooks");const au={run:H((e=>e()),"run")},su=H((()=>au),"_createTask"),ou=void 0!==console.createTask?console.createTask:su;function lu(e,t){const n=t.shift(),i=ou(n);return e.reduce(((e,n)=>e.then((()=>i.run((()=>n(...t)))))),Promise.resolve())}function uu(e,t){const n=t.shift(),i=ou(n);return Promise.all(e.map((e=>i.run((()=>e(...t))))))}function cu(e,t){for(const n of[...e])n(t)}H(lu,"serialTaskCaller"),H(uu,"parallelTaskCaller"),H(cu,"callEachWith");const du=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||"function"!=typeof t)return()=>{};const i=e;let r;for(;this._deprecatedHooks[e];)r=this._deprecatedHooks[e],e=r.to;if(r&&!n.allowDeprecated){let e=r.message;e||(e=`${i} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:H((()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb"),"get"),configurable:!0})}catch(tvt){}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,i=H(((...e)=>("function"==typeof n&&n(),n=void 0,i=void 0,t(...e))),"_function");return n=this.hook(e,i),n}removeHook(e,t){if(this._hooks[e]){const n=this._hooks[e].indexOf(t);-1!==n&&this._hooks[e].splice(n,1),0===this._hooks[e].length&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]="string"==typeof t?{to:t}:t;const n=this._hooks[e]||[];delete this._hooks[e];for(const i of n)this.hook(e,i)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=ru(e),n=Object.keys(t).map((e=>this.hook(e,t[e])));return()=>{for(const e of n.splice(0,n.length))e()}}removeHooks(e){const t=ru(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(lu,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(uu,e,...t)}callHookWith(e,t,...n){const i=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&cu(this._before,i);const r=e(t in this._hooks?[...this._hooks[t]]:[],n);return r instanceof Promise?r.finally((()=>{this._after&&i&&cu(this._after,i)})):(this._after&&i&&cu(this._after,i),r)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(void 0!==this._before){const t=this._before.indexOf(e);-1!==t&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(void 0!==this._after){const t=this._after.indexOf(e);-1!==t&&this._after.splice(t,1)}}}};H(du,"Hookable");let pu,hu=du;function fu(){return new hu}H(fu,"createHooks$1");const mu=H((e=>pu=e),"setActivePinia"),gu=Symbol();function yu(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var vu,bu;function _u(){const e=Xe(!0),t=e.run((()=>Tn({})));let n=[],i=[];const r=Sn({install(e){mu(r),r._a=e,e.provide(gu,r),e.config.globalProperties.$pinia=r,i.forEach((e=>n.push(e))),i=[]},use(e){return this._a?n.push(e):i.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}H(yu,"isPlainObject$6"),(bu=vu||(vu={})).direct="direct",bu.patchObject="patch object",bu.patchFunction="patch function",H(_u,"createPinia");const wu=H((()=>{}),"noop$3");function Su(e,t,n,i=wu){e.push(t);const r=H((()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),i())}),"removeSubscription");return!n&&Qe()&&Je(r),r}function Cu(e,...t){e.slice().forEach((e=>{e(...t)}))}H(Su,"addSubscription"),H(Cu,"triggerSubscriptions");const ku=H((e=>e()),"fallbackRunWithContext"),xu=Symbol(),Tu=Symbol();function Eu(e,t){e instanceof Map&&t instanceof Map?t.forEach(((t,n)=>e.set(n,t))):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const i=t[n],r=e[n];yu(r)&&yu(i)&&e.hasOwnProperty(n)&&!xn(i)&&!yn(i)?e[n]=Eu(r,i):e[n]=i}return e}H(Eu,"mergeReactiveObjects");const Au=Symbol();function Lu(e){return!yu(e)||!Object.prototype.hasOwnProperty.call(e,Au)}H(Lu,"shouldHydrate");const{assign:Iu}=Object;function $u(e){return!(!xn(e)||!e.effect)}function Du(e,t,n,i){const{state:r,actions:a,getters:s}=t,o=n.state.value[e];let l;function u(){o||(n.state.value[e]=r?r():{});const t=Fn(n.state.value[e]);return Iu(t,a,Object.keys(s||{}).reduce(((t,i)=>(t[i]=Sn(Co((()=>{mu(n);const t=n._s.get(e);return s[i].call(t,t)}))),t)),{}))}return H(u,"setup"),l=Pu(e,u,t,n,i,!0),l}function Pu(e,t,n={},i,r,a){let s;const o=Iu({actions:{}},n),l={deep:!0};let u,c,d,p=[],h=[];const f=i.state.value[e];let m;function g(t){let n;u=c=!1,"function"==typeof t?(t(i.state.value[e]),n={type:vu.patchFunction,storeId:e,events:d}):(Eu(i.state.value[e],t),n={type:vu.patchObject,payload:t,storeId:e,events:d});const r=m=Symbol();vi().then((()=>{m===r&&(u=!0)})),c=!0,Cu(p,n,i.state.value[e])}a||f||(i.state.value[e]={}),H(g,"$patch");const y=a?H((function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{Iu(e,t)}))}),"$reset2"):wu;function v(){s.stop(),p=[],h=[],i._s.delete(e)}H(v,"$dispose");const b=H(((t,n="")=>{if(xu in t)return t[Tu]=n,t;const r=H((function(){mu(i);const n=Array.from(arguments),a=[],s=[];function o(e){a.push(e)}function l(e){s.push(e)}let u;H(o,"after"),H(l,"onError"),Cu(h,{args:n,name:r[Tu],store:_,after:o,onError:l});try{u=t.apply(this&&this.$id===e?this:_,n)}catch(c){throw Cu(s,c),c}return u instanceof Promise?u.then((e=>(Cu(a,e),e))).catch((e=>(Cu(s,e),Promise.reject(e)))):(Cu(a,u),u)}),"wrappedAction");return r[xu]=!0,r[Tu]=n,r}),"action"),_=pn({_p:i,$id:e,$onAction:Su.bind(null,h),$patch:g,$reset:y,$subscribe(t,n={}){const r=Su(p,t,n.detached,(()=>a())),a=s.run((()=>Bi((()=>i.state.value[e]),(i=>{("sync"===n.flush?c:u)&&t({storeId:e,type:vu.direct,events:d},i)}),Iu({}
25,l,n))));return r},$dispose:v});i._s.set(e,_);const w=(i._a&&i._a.runWithContext||ku)((()=>i._e.run((()=>(s=Xe()).run((()=>t({action:b})))))));for(const S in w){const t=w[S];if(xn(t)&&!$u(t)||yn(t))a||(f&&Lu(t)&&(xn(t)?t.value=f[S]:Eu(t,f[S])),i.state.value[e][S]=t);else if("function"==typeof t){const e=b(t,S);w[S]=e,o.actions[S]=t}}return Iu(_,w),Iu(wn(_),w),Object.defineProperty(_,"$state",{get:H((()=>i.state.value[e]),"get"),set:H((e=>{g((t=>{Iu(t,e)}))}),"set")}),i._p.forEach((e=>{Iu(_,s.run((()=>e({store:_,app:i._a,pinia:i,options:o}))))})),f&&a&&n.hydrate&&n.hydrate(_.$state,f),u=!0,c=!0,_} 26 /*! #__NO_SIDE_EFFECTS__ */ 27 function Ou(e,t,n){let i;const r="function"==typeof t;function a(n,a){const s=Mi();(n=n||(s?Oi(gu,null):null))&&mu(n),(n=pu)._s.has(e)||(r?Pu(e,t,i,n):Du(e,i,n));return n._s.get(e)}return i=r?n:t,H(a,"useStore"),a.$id=e,a}H($u,"isComputed"),H(Du,"createOptionsStore"),H(Pu,"createSetupStore"),H(Ou,"defineStore");function Mu(...e){return e.reduce(((e,t)=>(e[t.$id+"Store"]=function(){return t(this.$pinia)},e)),{})}H(Mu,"mapStores");const Ru=H((function(e){return"/art/collection/"+e}),"assetsURL"),Nu={},Fu=H((function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){let e=H((function(e){return Promise.all(e.map((e=>Promise.resolve(e).then((e=>({status:"fulfilled",value:e})),(e=>({status:"rejected",reason:e}))))))}),"allSettled2");document.getElementsByTagName("link");const n=document.querySelector("meta[property=csp-nonce]"),r=(null==n?void 0:n.nonce)||(null==n?void 0:n.getAttribute("nonce"));i=e(t.map((e=>{if((e=Ru(e))in Nu)return;Nu[e]=!0;const t=e.endsWith(".css"),n=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${n}`))return;const i=document.createElement("link");return i.rel=t?"stylesheet":"modulepreload",t||(i.as="script"),i.crossOrigin="",i.href=e,r&&i.setAttribute("nonce",r),document.head.appendChild(i),t?new Promise(((t,n)=>{i.addEventListener("load",t),i.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0})))}function r(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return H(r,"handlePreloadError"),i.then((t=>{for(const e of t||[])"rejected"===e.status&&r(e.reason);return e().catch(r)}))}),"preload"),Bu="undefined"!=typeof document;function Hu(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function ju(e){return e.__esModule||"Module"===e[Symbol.toStringTag]||e.default&&Hu(e.default)}H(Hu,"isRouteComponent"),H(ju,"isESModule");const Uu=Object.assign;function Vu(e,t){const n={};for(const i in t){const r=t[i];n[i]=zu(r)?r.map(e):e(r)}return n}H(Vu,"applyToParams");const qu=H((()=>{}),"noop$2"),zu=Array.isArray,Wu=/#/g,Gu=/&/g,Ku=/\//g,Yu=/=/g,Zu=/\?/g,Xu=/\+/g,Qu=/%5B/g,Ju=/%5D/g,ec=/%5E/g,tc=/%60/g,nc=/%7B/g,ic=/%7C/g,rc=/%7D/g,ac=/%20/g;function sc(e){return encodeURI(""+e).replace(ic,"|").replace(Qu,"[").replace(Ju,"]")}function oc(e){return sc(e).replace(nc,"{").replace(rc,"}").replace(ec,"^")}function lc(e){return sc(e).replace(Xu,"%2B").replace(ac,"+").replace(Wu,"%23").replace(Gu,"%26").replace(tc,"`").replace(nc,"{").replace(rc,"}").replace(ec,"^")}function uc(e){return lc(e).replace(Yu,"%3D")}function cc(e){return sc(e).replace(Wu,"%23").replace(Zu,"%3F")}function dc(e){return null==e?"":cc(e).replace(Ku,"%2F")}function pc(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}H(sc,"commonEncode"),H(oc,"encodeHash"),H(lc,"encodeQueryValue"),H(uc,"encodeQueryKey"),H(cc,"encodePath"),H(dc,"encodeParam"),H(pc,"decode$1");const hc=/\/$/,fc=H((e=>e.replace(hc,"")),"removeTrailingSlash");function mc(e,t,n="/"){let i,r={},a="",s="";const o=t.indexOf("#");let l=t.indexOf("?");return o<l&&o>=0&&(l=-1),l>-1&&(i=t.slice(0,l),a=t.slice(l+1,o>-1?o:t.length),r=e(a)),o>-1&&(i=i||t.slice(0,o),s=t.slice(o,t.length)),i=Cc(null!=i?i:t,n),{fullPath:i+(a&&"?")+a+s,path:i,query:r,hash:pc(s)}}function gc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function yc(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function vc(e,t,n){const i=t.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&bc(t.matched[i],n.matched[r])&&_c(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function bc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _c(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!wc(e[n],t[n]))return!1;return!0}function wc(e,t){return zu(e)?Sc(e,t):zu(t)?Sc(t,e):e===t}function Sc(e,t){return zu(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function Cc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),r=i[i.length-1];".."!==r&&"."!==r||i.push("");let a,s,o=n.length-1;for(a=0;a<i.length;a++)if(s=i[a],"."!==s){if(".."!==s)break;o>1&&o--}return n.slice(0,o).join("/")+"/"+i.slice(a).join("/")}H(mc,"parseURL"),H(gc,"stringifyURL"),H(yc,"stripBase"),H(vc,"isSameRouteLocation"),H(bc,"isSameRouteRecord"),H(_c,"isSameRouteLocationParams"),H(wc,"isSameRouteLocationParamsValue"),H(Sc,"isEquivalentArray"),H(Cc,"resolveRelativePath");const kc={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var xc,Tc,Ec,Ac;function Lc(e){if(!e)if(Bu){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),fc(e)}(Tc=xc||(xc={})).pop="pop",Tc.push="push",(Ac=Ec||(Ec={})).back="back",Ac.forward="forward",Ac.unknown="",H(Lc,"normalizeBase");const Ic=/^[^#]+#/;function $c(e,t){return e.replace(Ic,"#")+t}function Dc(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}H($c,"createHref"),H(Dc,"getElementPosition");const Pc=H((()=>({left:window.scrollX,top:window.scrollY})),"computeScrollPosition");function Oc(e){let t;if("el"in e){const n=e.el,i="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Dc(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}
27function Mc(e,t){return(history.state?history.state.position-t:-1)+e}H(Oc,"scrollToPosition"),H(Mc,"getScrollKey");const Rc=new Map;function Nc(e,t){Rc.set(e,t)}function Fc(e){const t=Rc.get(e);return Rc.delete(e),t}H(Nc,"saveScrollPosition"),H(Fc,"getSavedScrollPosition");let Bc=H((()=>location.protocol+"//"+location.host),"createBaseLocation");function Hc(e,t){const{pathname:n,search:i,hash:r}=t,a=e.indexOf("#");if(a>-1){let t=r.includes(e.slice(a))?e.slice(a).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),yc(n,"")}return yc(n,e)+i+r}function jc(e,t,n,i){let r=[],a=[],s=null;const o=H((({state:a})=>{const o=Hc(e,location),l=n.value,u=t.value;let c=0;if(a){if(n.value=o,t.value=a,s&&s===l)return void(s=null);c=u?a.position-u.position:0}else i(o);r.forEach((e=>{e(n.value,l,{delta:c,type:xc.pop,direction:c?c>0?Ec.forward:Ec.back:Ec.unknown})}))}),"popStateHandler");function l(){s=n.value}function u(e){r.push(e);const t=H((()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)}),"teardown");return a.push(t),t}function c(){const{history:e}=window;e.state&&e.replaceState(Uu({},e.state,{scroll:Pc()}),"")}function d(){for(const e of a)e();a=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",c)}return H(l,"pauseListeners"),H(u,"listen"),H(c,"beforeUnloadListener"),H(d,"destroy"),window.addEventListener("popstate",o),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:d}}function Uc(e,t,n,i=!1,r=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:r?Pc():null}}function Vc(e){const{history:t,location:n}=window,i={value:Hc(e,n)},r={value:t.state};function a(i,a,s){const o=e.indexOf("#"),l=o>-1?(n.host&&document.querySelector("base")?e:e.slice(o))+i:Bc()+e+i;try{t[s?"replaceState":"pushState"](a,"",l),r.value=a}catch(u){console.error(u),n[s?"replace":"assign"](l)}}function s(e,n){a(e,Uu({},t.state,Uc(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),i.value=e}function o(e,n){const s=Uu({},r.value,t.state,{forward:e,scroll:Pc()});a(s.current,s,!0);a(e,Uu({},Uc(i.value,e,null),{position:s.position+1},n),!1),i.value=e}return r.value||a(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),H(a,"changeLocation"),H(s,"replace"),H(o,"push"),{location:i,state:r,push:o,replace:s}}function qc(e){const t=Vc(e=Lc(e)),n=jc(e,t.state,t.location,t.replace);function i(e,t=!0){t||n.pauseListeners(),history.go(e)}H(i,"go");const r=Uu({location:"",base:e,go:i,createHref:$c.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:H((()=>t.location.value),"get")}),Object.defineProperty(r,"state",{enumerable:!0,get:H((()=>t.state.value),"get")}),r}function zc(e){return"string"==typeof e||e&&"object"==typeof e}function Wc(e){return"string"==typeof e||"symbol"==typeof e}H(Hc,"createCurrentLocation"),H(jc,"useHistoryListeners"),H(Uc,"buildState"),H(Vc,"useHistoryStateNavigation"),H(qc,"createWebHistory"),H(zc,"isRouteLocation"),H(Wc,"isRouteName");const Gc=Symbol("");var Kc,Yc;function Zc(e,t){return Uu(new Error,{type:e,[Gc]:!0},t)}function Xc(e,t){return e instanceof Error&&Gc in e&&(null==t||!!(e.type&t))}(Yc=Kc||(Kc={}))[Yc.aborted=4]="aborted",Yc[Yc.cancelled=8]="cancelled",Yc[Yc.duplicated=16]="duplicated",H(Zc,"createRouterError"),H(Xc,"isNavigationFailure$1");const Qc="[^/]+?",Jc={sensitive:!1,strict:!1,start:!0,end:!0},ed=/[.+*?^${}()[\]/\\]/g;function td(e,t){const n=Uu({},Jc,t),i=[];let r=n.start?"^":"";const a=[];for(const c of e){const e=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let t=0;t<c.length;t++){const i=c[t];let s=40+(n.sensitive?.25:0);if(0===i.type)t||(r+="/"),r+=i.value.replace(ed,"\\$&"),s+=40;else if(1===i.type){const{value:e,repeatable:n,optional:o,regexp:l}=i;a.push({name:e,repeatable:n,optional:o});const d=l||Qc;if(d!==Qc){s+=10;try{new RegExp(`(${d})`)}catch(u){throw new Error(`Invalid custom RegExp for param "${e}" (${d}): `+u.message)}}let p=n?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;t||(p=o&&c.length<2?`(?:/${p})`:"/"+p),o&&(p+="?"),r+=p,s+=20,o&&(s+=-8),n&&(s+=-20),".*"===d&&(s+=-50)}e.push(s)}i.push(e)}if(n.strict&&n.end){const e=i.length-1;i[e][i[e].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const s=new RegExp(r,n.sensitive?"":"i");function o(e){const t=e.match(s),n={};if(!t)return null;for(let i=1;i<t.length;i++){const e=t[i]||"",r=a[i-1];n[r.name]=e&&r.repeatable?e.split("/"):e}return n}function l(t){let n="",i=!1;for(const r of e){i&&n.endsWith("/")||(n+="/"),i=!1;for(const e of r)if(0===e.type)n+=e.value;else if(1===e.type){const{value:a,repeatable:s,optional:o}=e,l=a in t?t[a]:"";if(zu(l)&&!s)throw new Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);const u=zu(l)?l.join("/"):l;if(!u){if(!o)throw new Error(`Missing required param "${a}"`);r.length<2&&(n.endsWith("/")?n=n.slice(0,-1):i=!0)}n+=u}}return n||"/"}return H(o,"parse"),H(l,"stringify"),{re:s,score:i,keys:a,parse:o,stringify:l}}
27function nd(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function id(e,t){let n=0;const i=e.score,r=t.score;for(;n<i.length&&n<r.length;){const e=nd(i[n],r[n]);if(e)return e;n++}if(1===Math.abs(r.length-i.length)){if(rd(i))return 1;if(rd(r))return-1}return r.length-i.length}function rd(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}H(td,"tokensToParser"),H(nd,"compareScoreArray"),H(id,"comparePathParserScore"),H(rd,"isLastScoreNegative");const ad={type:0,value:""},sd=/[a-zA-Z0-9_]/;function od(e){if(!e)return[[]];if("/"===e)return[[ad]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${u}": ${e}`)}H(t,"crash");let n=0,i=n;const r=[];let a;function s(){a&&r.push(a),a=[]}H(s,"finalizeSegment");let o,l=0,u="",c="";function d(){u&&(0===n?a.push({type:0,value:u}):1===n||2===n||3===n?(a.length>1&&("*"===o||"+"===o)&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:c,repeatable:"*"===o||"+"===o,optional:"*"===o||"?"===o})):t("Invalid state to consume buffer"),u="")}function p(){u+=o}for(H(d,"consumeBuffer"),H(p,"addCharToBuffer");l<e.length;)if(o=e[l++],"\\"!==o||2===n)switch(n){case 0:"/"===o?(u&&d(),s()):":"===o?(d(),n=1):p();break;case 4:p(),n=i;break;case 1:"("===o?n=2:sd.test(o)?p():(d(),n=0,"*"!==o&&"?"!==o&&"+"!==o&&l--);break;case 2:")"===o?"\\"==c[c.length-1]?c=c.slice(0,-1)+o:n=3:c+=o;break;case 3:d(),n=0,"*"!==o&&"?"!==o&&"+"!==o&&l--,c="";break;default:t("Unknown state")}else i=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${u}"`),d(),s(),r}function ld(e,t,n){const i=td(od(e.path),n),r=Uu(i,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function ud(e,t){const n=[],i=new Map;function r(e){return i.get(e)}function a(e,n,i){const r=!i,o=dd(e);o.aliasOf=i&&i.record;const u=md(t,e),c=[o];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)c.push(dd(Uu({},o,{components:i?i.record.components:o.components,path:e,aliasOf:i?i.record:o})))}let d,p;for(const t of c){const{path:c}=t;if(n&&"/"!==c[0]){const e=n.record.path,i="/"===e[e.length-1]?"":"/";t.path=n.record.path+(c&&i+c)}if(d=ld(t,n,u),i?i.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),r&&e.name&&!hd(d)&&s(e.name)),vd(d)&&l(d),o.children){const e=o.children;for(let t=0;t<e.length;t++)a(e[t],d,i&&i.children[t])}i=i||d}return p?()=>{s(p)}:qu}function s(e){if(Wc(e)){const t=i.get(e);t&&(i.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(s),t.alias.forEach(s))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&i.delete(e.record.name),e.children.forEach(s),e.alias.forEach(s))}}function o(){return n}function l(e){const t=gd(e,n);n.splice(t,0,e),e.record.name&&!hd(e)&&i.set(e.record.name,e)}function u(e,t){let r,a,s,o={};if("name"in e&&e.name){if(r=i.get(e.name),!r)throw Zc(1,{location:e});s=r.record.name,o=Uu(cd(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&cd(e.params,r.keys.map((e=>e.name)))),a=r.stringify(o)}else if(null!=e.path)a=e.path,r=n.find((e=>e.re.test(a))),r&&(o=r.parse(a),s=r.record.name);else{if(r=t.name?i.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw Zc(1,{location:e,currentLocation:t});
27s=r.record.name,o=Uu({},t.params,e.params),a=r.stringify(o)}const l=[];let u=r;for(;u;)l.unshift(u.record),u=u.parent;return{name:s,path:a,params:o,matched:l,meta:fd(l)}}function c(){n.length=0,i.clear()}return t=md({strict:!1,end:!0,sensitive:!1},t),H(r,"getRecordMatcher"),H(a,"addRoute"),H(s,"removeRoute"),H(o,"getRoutes"),H(l,"insertMatcher"),H(u,"resolve"),e.forEach((e=>a(e))),H(c,"clearRoutes"),{addRoute:a,resolve:u,removeRoute:s,clearRoutes:c,getRoutes:o,getRecordMatcher:r}}function cd(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function dd(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:pd(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function pd(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]="object"==typeof n?n[i]:n;return t}function hd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fd(e){return e.reduce(((e,t)=>Uu(e,t.meta)),{})}function md(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function gd(e,t){let n=0,i=t.length;for(;n!==i;){const r=n+i>>1;id(e,t[r])<0?i=r:n=r+1}const r=yd(e);return r&&(i=t.lastIndexOf(r,i-1)),i}function yd(e){let t=e;for(;t=t.parent;)if(vd(t)&&0===id(e,t))return t}function vd({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bd(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const e=n[i].replace(Xu," "),r=e.indexOf("="),a=pc(r<0?e:e.slice(0,r)),s=r<0?null:pc(e.slice(r+1));if(a in t){let e=t[a];zu(e)||(e=t[a]=[e]),e.push(s)}else t[a]=s}return t}function _d(e){let t="";for(let n in e){const i=e[n];if(n=uc(n),null==i){void 0!==i&&(t+=(t.length?"&":"")+n);continue}(zu(i)?i.map((e=>e&&lc(e))):[i&&lc(i)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function wd(e){const t={};for(const n in e){const i=e[n];void 0!==i&&(t[n]=zu(i)?i.map((e=>null==e?null:""+e)):null==i?i:""+i)}return t}H(od,"tokenizePath"),H(ld,"createRouteRecordMatcher"),H(ud,"createRouterMatcher"),H(cd,"paramsFromLocation"),H(dd,"normalizeRouteRecord"),H(pd,"normalizeRecordProps"),H(hd,"isAliasRecord"),H(fd,"mergeMetaFields"),H(md,"mergeOptions"),H(gd,"findInsertionIndex$1"),H(yd,"getInsertionAncestor"),H(vd,"isMatchable"),H(bd,"parseQuery"),H(_d,"stringifyQuery"),H(wd,"normalizeQuery");const Sd=Symbol(""),Cd=Symbol(""),kd=Symbol(""),xd=Symbol(""),Td=Symbol("");function Ed(){let e=[];function t(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return H(t,"add"),H(n,"reset"),{add:t,list:H((()=>e.slice()),"list"),reset:n}}function Ad(e,t,n,i,r,a=(e=>e())){const s=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise(((o,l)=>{const u=H((e=>{!1===e?l(Zc(4,{from:n,to:t})):e instanceof Error?l(e):zc(e)?l(Zc(2,{from:t,to:e})):(s&&i.enterCallbacks[r]===s&&"function"==typeof e&&s.push(e),o())}),"next"),c=a((()=>e.call(i&&i.instances[r],t,n,u)));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch((e=>l(e)))}))}function Ld(e,t,n,i,r=(e=>e())){const a=[];for(const s of e)for(const e in s.components){let o=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if(Hu(o)){const l=(o.__vccOpts||o)[t];l&&a.push(Ad(l,n,i,s,e,r))}else{let l=o();a.push((()=>l.then((a=>{if(!a)throw new Error(`Couldn't resolve component "${e}" at "${s.path}"`);const o=ju(a)?a.default:a;s.mods[e]=a,s.components[e]=o;const l=(o.__vccOpts||o)[t];return l&&Ad(l,n,i,s,e,r)()}))))}}return a}function Id(e){const t=Oi(kd),n=Oi(xd),i=Co((()=>{const n=$n(e.to);return t.resolve(n)})),r=Co((()=>{const{matched:e}=i.value,{length:t}=e,r=e[t-1],a=n.matched;if(!r||!a.length)return-1;const s=a.findIndex(bc.bind(null,r));if(s>-1)return s;const o=Md(e[t-2]);return t>1&&Md(r)===o&&a[a.length-1].path!==o?a.findIndex(bc.bind(null,e[t-2])):s})),a=Co((()=>r.value>-1&&Od(n.params,i.value.params))),s=Co((()=>r.value>-1&&r.value===n.matched.length-1&&_c(n.params,i.value.params)));function o(n={}){if(Pd(n)){const n=t[$n(e.replace)?"replace":"push"]($n(e.to)).catch(qu);return e.viewTransition&&"undefined"!=typeof document&&"startViewTransition"in document&&document.startViewTransition((()=>n)),n}return Promise.resolve()}return H(o,"navigate"),{route:i,href:Co((()=>i.value.href)),isActive:a,isExactActive:s,navigate:o}}function $d(e){return 1===e.length?e[0]:e}H(Ed,"useCallbacks"),H(Ad,"guardToPromiseFn"),H(Ld,"extractComponentsGuards"),H(Id,"useLink"),H($d,"preferSingleVNode");const Dd=vr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Id,setup(e,{slots:t}){const n=pn(Id(e)),{options:i}=Oi(kd),r=Co((()=>({[Rd(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Rd(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const i=t.default&&$d(t.default(n));return e.custom?i:ko("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}});function Pd(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Od(e,t){for(const n in t){const i=t[n],r=e[n];if("string"==typeof i){if(i!==r)return!1}else if(!zu(r)||r.length!==i.length||i.some(((e,t)=>e!==r[t])))return!1}return!0}function Md(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}H(Pd,"guardEvent"),H(Od,"includesParams"),H(Md,"getOriginalPath");const Rd=H(((e,t,n)=>null!=e?e:null!=t?t:n),"getLinkClass"),Nd=vr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=Oi(Td),r=Co((()=>e.route||i.value)),a=Oi(Cd,0),s=Co((()=>{let e=$n(a);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),o=Co((()=>r.value.matched[s.value]));Pi(Cd,Co((()=>s.value+1))),Pi(Sd,o),Pi(Td,r);const l=Tn();return Bi((()=>[l.value,o.value,e.name]),(([e,t,n],[i,r,a])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===i&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&bc(t,r)&&i||(t.enterCallbacks[n]||[]).forEac
27h((t=>t(e)))}),{flush:"post"}),()=>{const i=r.value,a=e.name,s=o.value,u=s&&s.components[a];if(!u)return Fd(n.default,{Component:u,route:i});const c=s.props[a],d=c?!0===c?i.params:"function"==typeof c?c(i):c:null,p=ko(u,Uu({},d,t,{onVnodeUnmounted:H((e=>{e.component.isUnmounted&&(s.instances[a]=null)}),"onVnodeUnmounted"),ref:l}));return Fd(n.default,{Component:p,route:i})||p}}});function Fd(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}H(Fd,"normalizeSlot");const Bd=Nd;function Hd(e){const t=ud(e.routes,e),n=e.parseQuery||bd,i=e.stringifyQuery||_d,r=e.history,a=Ed(),s=Ed(),o=Ed(),l=En(kc);let u=kc;Bu&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Vu.bind(null,(e=>""+e)),d=Vu.bind(null,dc),p=Vu.bind(null,pc);function h(e,n){let i,r;return Wc(e)?(i=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,i)}function f(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function m(){return t.getRoutes().map((e=>e.record))}function g(e){return!!t.getRecordMatcher(e)}function y(e,a){if(a=Uu({},a||l.value),"string"==typeof e){const i=mc(n,e,a.path),s=t.resolve({path:i.path},a),o=r.createHref(i.fullPath);return Uu(i,s,{params:p(s.params),hash:pc(i.hash),redirectedFrom:void 0,href:o})}let s;if(null!=e.path)s=Uu({},e,{path:mc(n,e.path,a.path).path});else{const t=Uu({},e.params);for(const e in t)null==t[e]&&delete t[e];s=Uu({},e,{params:d(t)}),a.params=d(a.params)}const o=t.resolve(s,a),u=e.hash||"";o.params=c(p(o.params));const h=gc(i,Uu({},e,{hash:oc(u),path:o.path})),f=r.createHref(h);return Uu({fullPath:h,hash:u,query:i===_d?wd(e.query):e.query||{}},o,{redirectedFrom:void 0,href:f})}function v(e){return"string"==typeof e?mc(n,e,l.value.path):Uu({},e)}function b(e,t){if(u!==e)return Zc(8,{from:t,to:e})}function _(e){return C(e)}function w(e){return _(Uu(v(e),{replace:!0}))}function S(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let i="function"==typeof n?n(e):n;return"string"==typeof i&&(i=i.includes("?")||i.includes("#")?i=v(i):{path:i},i.params={}),Uu({query:e.query,hash:e.hash,params:null!=i.path?{}:e.params},i)}}function C(e,t){const n=u=y(e),r=l.value,a=e.state,s=e.force,o=!0===e.replace,c=S(n);if(c)return C(Uu(v(c),{state:"object"==typeof c?Uu({},a,c.state):a,force:s,replace:o}),t||n);const d=n;let p;return d.redirectedFrom=t,!s&&vc(i,r,n)&&(p=Zc(16,{to:d,from:r}),N(r,r,!0,!1)),(p?Promise.resolve(p):T(d,r)).catch((e=>Xc(e)?Xc(e,2)?e:R(e):O(e,d,r))).then((e=>{if(e){if(Xc(e,2))return C(Uu({replace:o},v(e.to),{state:"object"==typeof e.to?Uu({},a,e.to.state):a,force:s}),t||d)}else e=A(d,r,!0,o,a);return E(d,r,e),e}))}function k(e,t){const n=b(e,t);return n?Promise.reject(n):Promise.resolve()}function x(e){const t=j.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function T(e,t){let n;const[i,r,o]=jd(e,t);n=Ld(i.reverse(),"beforeRouteLeave",e,t);for(const a of i)a.leaveGuards.forEach((i=>{n.push(Ad(i,e,t))}));const l=k.bind(null,e,t);return n.push(l),V(n).then((()=>{n=[];for(const i of a.list())n.push(Ad(i,e,t));return n.push(l),V(n)})).then((()=>{n=Ld(r,"beforeRouteUpdate",e,t);for(const i of r)i.updateGuards.forEach((i=>{n.push(Ad(i,e,t))}));return n.push(l),V(n)})).then((()=>{n=[];for(const i of o)if(i.beforeEnter)if(zu(i.beforeEnter))for(const r of i.beforeEnter)n.push(Ad(r,e,t));else n.push(Ad(i.beforeEnter,e,t));return n.push(l),V(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Ld(o,"beforeRouteEnter",e,t,x),n.push(l),V(n)))).then((()=>{n=[];for(const i of s.list())n.push(Ad(i,e,t));return n.push(l),V(n)})).catch((e=>Xc(e,8)?e:Promise.reject(e)))}function E(e,t,n){o.list().forEach((i=>x((()=>i(e,t,n)))))}function A(e,t,n,i,a){const s=b(e,t);if(s)return s;const o=t===kc,u=Bu?history.state:{};n&&(i||o?r.replace(e.fullPath,Uu({scroll:o&&u&&u.scroll},a)):r.push(e.fullPath,a)),l.value=e,N(e,t,n,o),R()}let L;function I(){L||(L=r.listen(((e,t,n)=>{if(!U.listening)return;const i=y(e),a=S(i);if(a)return void C(Uu(a,{replace:!0,force:!0}),i).catch(qu);u=i;const s=l.value;Bu&&Nc(Mc(s.fullPath,n.delta),Pc()),T(i,s).catch((e=>Xc(e,12)?e:Xc(e,2)?(C(Uu(v(e.to),{force:!0}),i).then((e=>{Xc(e,20)&&!n.delta&&n.type===xc.pop&&r.go(-1,!1)})).catch(qu),Promise.reject()):(n.delta&&r.go(-n.delta,!1),O(e,i,s)))).then((e=>{(e=e||A(i,s,!1))&&(n.delta&&!Xc(e,8)?r.go(-n.delta,!1):n.type===xc.pop&&Xc(e,20)&&r.go(-1,!1)),E(i,s,e)})).catch(qu)})))}H(h,"addRoute"),H(f,"removeRoute"),H(m,"getRoutes"),H(g,"hasRoute"),H(y,"resolve"),H(v,"locationAsObject"),H(b,"checkCanceledNavigation"),H(_,"push"),H(w,"replace"),H(S,"handleRedirectRecord"),H(C,"pushWithRedirect"),H(k,"checkCanceledNavigationAndReject"),H(x,"runWithContext"),H(T,"navigate"),H(E,"triggerAfterEach"),H(A,"finalizeNavigation"),H(I,"setupListeners");let $,D=Ed(),P=Ed();function O(e,t,n){R(e);const i=P.list();
27return i.length?i.forEach((i=>i(e,t,n))):console.error(e),Promise.reject(e)}function M(){return $&&l.value!==kc?Promise.resolve():new Promise(((e,t)=>{D.add([e,t])}))}function R(e){return $||($=!e,I(),D.list().forEach((([t,n])=>e?n(e):t())),D.reset()),e}function N(t,n,i,r){const{scrollBehavior:a}=e;if(!Bu||!a)return Promise.resolve();const s=!i&&Fc(Mc(t.fullPath,0))||(r||!i)&&history.state&&history.state.scroll||null;return vi().then((()=>a(t,n,s))).then((e=>e&&Oc(e))).catch((e=>O(e,t,n)))}H(O,"triggerError"),H(M,"isReady"),H(R,"markAsReady"),H(N,"handleScroll");const F=H((e=>r.go(e)),"go");let B;const j=new Set,U={currentRoute:l,listening:!0,addRoute:h,removeRoute:f,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:m,resolve:y,options:e,push:_,replace:w,go:F,back:H((()=>F(-1)),"back"),forward:H((()=>F(1)),"forward"),beforeEach:a.add,beforeResolve:s.add,afterEach:o.add,onError:P.add,isReady:M,install(e){e.component("RouterLink",Dd),e.component("RouterView",Bd),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:H((()=>$n(l)),"get")}),Bu&&!B&&l.value===kc&&(B=!0,_(r.location).catch((e=>{})));const t={};for(const i in kc)Object.defineProperty(t,i,{get:H((()=>l.value[i]),"get"),enumerable:!0});e.provide(kd,this),e.provide(xd,hn(t)),e.provide(Td,l);const n=e.unmount;j.add(e),e.unmount=function(){j.delete(e),j.size<1&&(u=kc,L&&L(),L=null,l.value=kc,B=!1,$=!1),n()}}};function V(e){return e.reduce(((e,t)=>e.then((()=>x(t)))),Promise.resolve())}return H(V,"runGuardQueue"),U}function jd(e,t){const n=[],i=[],r=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;s<a;s++){const a=t.matched[s];a&&(e.matched.find((e=>bc(e,a)))?i.push(a):n.push(a));const o=e.matched[s];o&&(t.matched.find((e=>bc(e,o)))||r.push(o))}return[n,i,r]} 28 /*! 29 * shared v11.1.11 30 * (c) 2025 kazuya kawaguchi 31 * Released under the MIT License. 32 */ 33 function Ud(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}H(Hd,"createRouter"),H(jd,"extractChangingRecords"),H(Ud,"warn$7");const Vd="undefined"!=typeof window,qd=H(((e,t=!1)=>t?Symbol.for(e):Symbol(e)),"makeSymbol$1"),zd=H(((e,t,n)=>Wd({l:e,k:t,s:n})),"generateFormatCacheKey$1"),Wd=H((e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027")),"friendlyJSONstringify$1"),Gd=H((e=>"number"==typeof e&&isFinite(e)),"isNumber$2"),Kd=H((e=>"[object Date]"===fp(e)),"isDate$3"),Yd=H((e=>"[object RegExp]"===fp(e)),"isRegExp$3"),Zd=H((e=>mp(e)&&0===Object.keys(e).length),"isEmptyObject$2"),Xd=Object.assign,Qd=Object.create,Jd=H(((e=null)=>Qd(e)),"create$2");let ep;const tp=H((()=>ep||(ep="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:Jd())),"getGlobalThis$2");function np(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function ip(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function rp(e){e=(e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,((e,t,n)=>`${t}="${ip(n)}"`))).replace(/(\w+)\s*=\s*'([^']*)'/g,((e,t,n)=>`${t}='${ip(n)}'`));/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3"));return[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach((t=>{e=e.replace(t,"$1javascript:")})),e}H(np,"escapeHtml$1"),H(ip,"escapeAttributeValue$1"),H(rp,"sanitizeTranslatedHtml$1");const ap=Object.prototype.hasOwnProperty;function sp(e,t){return ap.call(e,t)}H(sp,"hasOwn$2");const op=Array.isArray,lp=H((e=>"function"==typeof e),"isFunction$4"),up=H((e=>"string"==typeof e),"isString$6"),cp=H((e=>"boolean"==typeof e),"isBoolean$2"),dp=H((e=>null!==e&&"object"==typeof e),"isObject$6"),pp=H((e=>dp(e)&&lp(e.then)&&lp(e.catch)),"isPromise$3"),hp=Object.prototype.toString,fp=H((e=>hp.call(e)),"toTypeString$2"),mp=H((e=>"[object Object]"===fp(e)),"isPlainObject$5"),gp=H((e=>null==e?"":op(e)||mp(e)&&e.toString===hp?JSON.stringify(e,null,2):String(e)),"toDisplayString$1");function yp(e,t=""){return e.reduce(((e,n,i)=>0===i?e+n:e+t+n),"")}H(yp,"join$1");const vp=H((e=>!dp(e)||op(e)),"isNotObjectOrIsArray$1");function bp(e,t){if(vp(e)||vp(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:e,des:t}=n.pop();Object.keys(e).forEach((i=>{"__proto__"!==i&&(dp(e[i])&&!dp(t[i])&&(t[i]=Array.isArray(e[i])?[]:Jd()),vp(t[i])||vp(e[i])?t[i]=e[i]:n.push({src:e[i],des:t[i]}))}))}} 34 /*! 35 * message-compiler v11.1.11 36 * (c) 2025 kazuya kawaguchi 37 * Released under the MIT License. 38 */ 39 function _p(e,t,n){return{line:e,column:t,offset:n}}
39function wp(e,t,n){return{start:e,end:t}}H(bp,"deepCopy$1"),H(_p,"createPosition$1"),H(wp,"createLocation$1");const Sp={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14};function Cp(e,t,n={}){const{domain:i,messages:r,args:a}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=i,s}function kp(e){throw e}H(Cp,"createCompileError$1"),H(kp,"defaultOnError$1");const xp=" ",Tp="\r",Ep="\n",Ap=String.fromCharCode(8232),Lp=String.fromCharCode(8233);function Ip(e){const t=e;let n=0,i=1,r=1,a=0;const s=H((e=>t[e]===Tp&&t[e+1]===Ep),"isCRLF"),o=H((e=>t[e]===Ep),"isLF"),l=H((e=>t[e]===Lp),"isPS"),u=H((e=>t[e]===Ap),"isLS"),c=H((e=>s(e)||o(e)||l(e)||u(e)),"isLineEnd"),d=H((()=>n),"index"),p=H((()=>i),"line"),h=H((()=>r),"column"),f=H((()=>a),"peekOffset"),m=H((e=>s(e)||l(e)||u(e)?Ep:t[e]),"charAt"),g=H((()=>m(n)),"currentChar"),y=H((()=>m(n+a)),"currentPeek");function v(){return a=0,c(n)&&(i++,r=0),s(n)&&n++,n++,r++,t[n]}function b(){return s(n+a)&&a++,a++,t[n+a]}function _(){n=0,i=1,r=1,a=0}function w(e=0){a=e}function S(){const e=n+a;for(;e!==n;)v();a=0}return H(v,"next"),H(b,"peek"),H(_,"reset"),H(w,"resetPeek"),H(S,"skipToPeek"),{index:d,line:p,column:h,peekOffset:f,charAt:m,currentChar:g,currentPeek:y,next:v,peek:b,reset:_,resetPeek:w,skipToPeek:S}}H(Ip,"createScanner$1");const $p=void 0,Dp="'",Pp="tokenizer";function Op(e,t={}){const n=!1!==t.location,i=Ip(e),r=H((()=>i.index()),"currentOffset"),a=H((()=>_p(i.line(),i.column(),i.index())),"currentPosition"),s=a(),o=r(),l={currentType:13,offset:o,startLoc:s,endLoc:s,lastType:13,lastOffset:o,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},u=H((()=>l),"context"),{onError:c}=t;function d(e,t,i,...r){const a=u();if(t.column+=i,t.offset+=i,c){const i=Cp(e,n?wp(a.startLoc,t):null,{domain:Pp,args:r});c(i)}}function p(e,t,i){e.endLoc=a(),e.currentType=t;const r={type:t};return n&&(r.loc=wp(e.startLoc,e.endLoc)),null!=i&&(r.value=i),r}H(d,"emitError"),H(p,"getToken");const h=H((e=>p(e,13)),"getEndToken");function f(e,t){return e.currentChar()===t?(e.next(),t):(d(Sp.EXPECTED_TOKEN,a(),0,t),"")}function m(e){let t="";for(;e.currentPeek()===xp||e.currentPeek()===Ep;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function y(e){if(e===$p)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e){if(e===$p)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}function b(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i=y(e.currentPeek());return e.resetPeek(),i}function _(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i=v("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),i}function w(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i=e.currentPeek()===Dp;return e.resetPeek(),i}function S(e,t){const{currentType:n}=t;if(7!==n)return!1;m(e);const i="."===e.currentPeek();return e.resetPeek(),i}function C(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const i=y(e.currentPeek());return e.resetPeek(),i}function k(e,t){const{currentType:n}=t;if(7!==n&&11!==n)return!1;m(e);const i=":"===e.currentPeek();return e.resetPeek(),i}function x(e,t){const{currentType:n}=t;if(9!==n)return!1;const i=H((()=>{const t=e.currentPeek();return"{"===t?y(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===xp||!t)&&(t===Ep?(e.peek(),i()):E(e,!1))}),"fn"),r=i();return e.resetPeek(),r}function T(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function E(e,t=!0){const n=H(((t=!1,i="")=>{const r=e.currentPeek();return"{"===r?t:"@"!==r&&r?"|"===r?!(i===xp||i===Ep):r===xp?(e.peek(),n(!0,xp)):r!==Ep||(e.peek(),n(!0,Ep)):t}),"fn"),i=n();return t&&e.resetPeek(),i}function A(e,t){const n=e.currentChar();return n===$p?$p:t(n)?(e.next(),n):null}function L(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function I(e){return A(e,L)}function $(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function D(e){return A(e,$)}function P(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function O(e){return A(e,P)}function M(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function R(e){return A(e,M)}function N(e){let t="",n="";for(;t=O(e);)n+=t;return n}function F(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===xp||n===Ep)if(E(e))t+=n,e.next();else{if(T(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function B(e){g(e);let t="",n="";for(;t=D(e);)n+=t;return e.currentChar()===$p&&d(Sp.UNTERMINATED_CLOSING_BRACE,a(),0),n}function j(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${N(e)}`):t+=N(e),e.currentChar()===$p&&d(Sp.UNTERMINATED_CLOSING_BRACE,a(),0),t}function U(e){return e!==Dp&&e!==Ep}function V(e){g(e),f(e,"'");let t="",n="";for(;t=A(e,U);)n+="\\"===t?q(e):t;const i=e.currentChar();return i===Ep||i===$p?(d(Sp.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),i===Ep&&(e.next(),f(e,"'")),n):(f(e,"'"),n)}function q(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return z(e,t,4);case"U":return z(e,t,6);default:return d(Sp.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),""}}function z(e,t,n){f(e,t);let i="";for(let r=0;r<n;r++){const n=R(e);if(!n){d(Sp.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${i}${e.currentChar()}`);break}i+=n}return`\\${t}${i}`}function W(e){return"{"!==e&&"}"!==e&&e!==xp&&e!==Ep}function G(e){g(e);let t="",n="";for(;t=A(e,W);)n+=t;return n}function K(e){let t="",n="";for(;t=I(e);)n+=t;return n}function Y(e){const t=H((n=>{const i=e.currentChar();return"{"!==i&&"@"!==i&&"|"!==i&&"("!==i&&")"!==i&&i?i===xp?n:(n+=i,e.next(),t(n)):n}),"fn");return t("")}function Z(e){g(e);const t=f(e,"|");return g(e),t}function X(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&d(Sp.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=p(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(Sp.EMPTY_PLACEHOLDER,a(),0),e.next(),n=p(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&d(Sp.UNTERMINATED_CLOSING_BRACE,a(),0),n=Q(e,t)||h(t),t.braceNest=0,n;default:{let i=!0,r=!0,s=!0;if(T(e))return t.braceNest>0&&d(Sp.UNTERMINATED_CLOSING_BRACE,a(),0),n=p(t,1,Z(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return d(Sp.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,J(e,t);if(i=b(e,t))return n=p(t,4,B(e)),g(e),n;if(r=_(e,t))return n=p(t,5,j(e)),g(e),n;if(s=w(e,t))return n=p(t,6,V(e)),g(e),n;if(!i&&!r&&!s)return n=p(t,12,G(e)),d(Sp.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function Q(e,t){const{currentType:n}=t;let i=null;const r=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||r!==Ep&&r!==xp||d(Sp.INVALID_LINKED_FORMAT,a(),0),r){case"@":return e.next(),i=p(t,7,"@"),t.inLinked=!0,i;case".":return g(e),e.next(),p(t,8,".");case":":return g(e),e.next(),p(t,9,":");default:return T(e)?(i=p(t,1,Z(e)),t.braceNest=0,t.inLinked=!1,i):S(e,t)||k(e,t)?(g(e),Q(e,t)):C(e,t)?(g(e),p(t,11,K(e))):x(e,t)?(g(e),"{"===r?X(e,t)||i:p(t,10,Y(e))):(7===n&&d(Sp.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,J(e,t))}}function J(e,t){let n={type:13};if(t.braceNest>0)return X(e,t)||h(t);if(t.inLinked)return Q(e,t)||h(t);switch(e.currentChar()){case"{":return X(e,t)||h(t);case"}":return d(Sp.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),p(t,3,"}");case"@":return Q(e,t)||h(t);default:if(T(e))return n=p(t,1,Z(e)),t.braceNest=0,t.inLinked=!1,n;if(E(e))return p(t,0,F(e))}return n}function ee(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=s,l.offset=r(),l.startLoc=a(),i.currentChar()===$p?p(l,13):J(i,l)}return H(f,"eat"),H(m,"peekSpaces"),H(g,"skipSpaces"),H(y,"isIdentifierStart"),H(v,"isNumberStart"),H(b,"isNamedIdentifierStart"),H(_,"isListIdentifierStart"),H(w,"isLiteralStart"),H(S,"isLinkedDotStart"),H(C,"isLinkedModifierStart"),H(k,"isLinkedDelimiterStart"),H(x,"isLinkedReferStart"),H(T,"isPluralStart"),H(E,"isTextStart"),H(A,"takeChar"),H(L,"isIdentifier"),H(I,"takeIdentifierChar"),H($,"isNamedIdentifier"),H(D,"takeNamedIdentifierChar"),H(P,"isDigit"),H(O,"takeDigit"),H(M,"isHexDigit"),H(R,"takeHexDigit"),H(N,"getDigits"),H(F,"readText"),H(B,"readNamedIdentifier"),H(j,"readListIdentifier"),H(U,"isLiteral"),H(V,"readLiteral"),H(q,"readEscapeSequence"),H(z,"readUnicodeEscapeSequence"),H(W,"isInvalidIdentifier"),H(G,"readInvali
39dIdentifier"),H(K,"readLinkedModifier"),H(Y,"readLinkedRefer"),H(Z,"readPlural"),H(X,"readTokenInPlaceholder"),H(Q,"readTokenInLinked"),H(J,"readToken"),H(ee,"nextToken"),{nextToken:ee,currentOffset:r,currentPosition:a,context:u}}H(Op,"createTokenizer$1");const Mp="parser",Rp=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Np(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function Fp(e={}){const t=!1!==e.location,{onError:n}=e;function i(e,i,r,a,...s){const o=e.currentPosition();if(o.offset+=a,o.column+=a,n){const e=Cp(i,t?wp(r,o):null,{domain:Mp,args:s});n(e)}}function r(e,n,i){const r={type:e};return t&&(r.start=n,r.end=n,r.loc={start:i,end:i}),r}function a(e,n,i,r){t&&(e.end=n,e.loc&&(e.loc.end=i))}function s(e,t){const n=e.context(),i=r(3,n.offset,n.startLoc);return i.value=t,a(i,e.currentOffset(),e.currentPosition()),i}function o(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:s}=n,o=r(5,i,s);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function l(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:s}=n,o=r(4,i,s);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function u(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:s}=n,o=r(9,i,s);return o.value=t.replace(Rp,Np),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function c(e){const t=e.nextToken(),n=e.context(),{lastOffset:s,lastStartLoc:o}=n,l=r(8,s,o);return 11!==t.type?(i(e,Sp.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),l.value="",a(l,s,o),{nextConsumeToken:t,node:l}):(null==t.value&&i(e,Sp.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,Bp(t)),l.value=t.value||"",a(l,e.currentOffset(),e.currentPosition()),{node:l})}function d(e,t){const n=e.context(),i=r(7,n.offset,n.startLoc);return i.value=t,a(i,e.currentOffset(),e.currentPosition()),i}function p(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let s=e.nextToken();if(8===s.type){const t=c(e);n.modifier=t.node,s=t.nextConsumeToken||e.nextToken()}switch(9!==s.type&&i(e,Sp.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Bp(s)),s=e.nextToken(),2===s.type&&(s=e.nextToken()),s.type){case 10:null==s.value&&i(e,Sp.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Bp(s)),n.key=d(e,s.value||"");break;case 4:null==s.value&&i(e,Sp.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Bp(s)),n.key=l(e,s.value||"");break;case 5:null==s.value&&i(e,Sp.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Bp(s)),n.key=o(e,s.value||"");break;case 6:null==s.value&&i(e,Sp.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Bp(s)),n.key=u(e,s.value||"");break;default:{i(e,Sp.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const o=e.context(),l=r(7,o.offset,o.startLoc);return l.value="",a(l,o.offset,o.startLoc),n.key=l,a(n,o.offset,o.startLoc),{nextConsumeToken:s,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function h(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let c=null;do{const r=c||e.nextToken();switch(c=null,r.type){case 0:null==r.value&&i(e,Sp.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Bp(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&i(e,Sp.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Bp(r)),n.items.push(o(e,r.value||""));break;case 4:null==r.value&&i(e,Sp.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Bp(r)),n.items.push(l(e,r.value||""));break;case 6:null==r.value&&i(e,Sp.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Bp(r)),n.items.push(u(e,r.value||""));break;case 7:{const t=p(e);n.items.push(t.node),c=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function f(e,t,n,s){const o=e.context();let l=0===s.items.length;const u=r(1,t,n);u.cases=[],u.cases.push(s);do{const t=h(e);l||(l=0===t.items.length),u.cases.push(t)}while(13!==o.currentType);return l&&i(e,Sp.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(u,e.currentOffset(),e.currentPosition()),u}function m(e){const t=e.context(),{offset:n,startLoc:i}=t,r=h(e);return 13===t.currentType?r:f(e,n,i,r)}function g(n){const s=Op(n,Xd({},e)),o=s.context(),l=r(0,o.offset,o.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(s),e.onCacheKey&&(l.cac
39heKey=e.onCacheKey(n)),13!==o.currentType&&i(s,Sp.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,0,n[o.offset]||""),a(l,s.currentOffset(),s.currentPosition()),l}return H(i,"emitError"),H(r,"startNode"),H(a,"endNode"),H(s,"parseText"),H(o,"parseList"),H(l,"parseNamed"),H(u,"parseLiteral"),H(c,"parseLinkedModifier"),H(d,"parseLinkedKey"),H(p,"parseLinked"),H(h,"parseMessage"),H(f,"parsePlural"),H(m,"parseResource"),H(g,"parse"),{parse:g}}function Bp(e){if(13===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"â¦":t}function Hp(e,t={}){const n={ast:e,helpers:new Set};return{context:H((()=>n),"context"),helper:H((e=>(n.helpers.add(e),e)),"helper")}}function jp(e,t){for(let n=0;n<e.length;n++)Up(e[n],t)}function Up(e,t){switch(e.type){case 1:jp(e.cases,t),t.helper("plural");break;case 2:jp(e.items,t);break;case 6:Up(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function Vp(e,t={}){const n=Hp(e);n.helper("normalize"),e.body&&Up(e.body,n);const i=n.context();e.helpers=Array.from(i.helpers)}function qp(e){const t=e.body;return 2===t.type?zp(t):t.cases.forEach((e=>zp(e))),e}function zp(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const i=e.items[n];if(3!==i.type&&9!==i.type)break;if(null==i.value)break;t.push(i.value)}if(t.length===e.items.length){e.static=yp(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function Wp(e){switch(e.t=e.type,e.type){case 0:{const t=e;Wp(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)Wp(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)Wp(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Wp(t.key),t.k=t.key,delete t.key,t.modifier&&(Wp(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Gp(e,t){const{filename:n,breakLineCode:i,needIndent:r}=t,a=!1!==t.location,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:r,indentLevel:0};a&&e.loc&&(s.source=e.loc.source);const o=H((()=>s),"context");function l(e,t){s.code+=e}function u(e,t=!0){const n=t?i:"";l(r?n+" ".repeat(e):n)}function c(e=!0){const t=++s.indentLevel;e&&u(t)}function d(e=!0){const t=--s.indentLevel;e&&u(t)}function p(){u(s.indentLevel)}H(l,"push"),H(u,"_newline"),H(c,"indent"),H(d,"deindent"),H(p,"newline");return{context:o,push:l,indent:c,deindent:d,newline:p,helper:H((e=>`_${e}`),"helper"),needIndent:H((()=>s.needIndent),"needIndent")}}function Kp(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Qp(e,t.key),t.modifier?(e.push(", "),Qp(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Yp(e,t){const{helper:n,needIndent:i}=e;e.push(`${n("normalize")}([`),e.indent(i());const r=t.items.length;for(let a=0;a<r&&(Qp(e,t.items[a]),a!==r-1);a++)e.push(", ");e.deindent(i()),e.push("])")}function Zp(e,t){const{helper:n,needIndent:i}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(i());const r=t.cases.length;for(let n=0;n<r&&(Qp(e,t.cases[n]),n!==r-1);n++)e.push(", ");e.deindent(i()),e.push("])")}}function Xp(e,t){t.body?Qp(e,t.body):e.push("null")}function Qp(e,t){const{helper:n}=e;switch(t.type){case 0:Xp(e,t);break;case 1:Zp(e,t);break;case 2:Yp(e,t);break;case 6:Kp(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t)}}H(Np,"fromEscapeSequence$1"),H(Fp,"createParser$1"),H(Bp,"getTokenCaption$1"),H(Hp,"createTransformer$1"),H(jp,"traverseNodes$1"),H(Up,"traverseNode$1"),H(Vp,"transform$2"),H(qp,"optimize$1"),H(zp,"optimizeMessageNode$1"),H(Wp,"minify$1"),H(Gp,"createCodeGenerator$1"),H(Kp,"generateLinkedNode$1"),H(Yp,"generateMessageNode$1"),H(Zp,"generatePluralNode$1"),H(Xp,"generateResource$1"),H(Qp,"generateNode$1");const Jp=H(((e,t={})=>{const n=up(t.mode)?t.mode:"normal",i=up(t.filename)?t.filename:"message.intl";t.sourceMap;const r=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],o=Gp(e,{filename:i,breakLineCode:r,needIndent:a});o.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),o.indent(a),s.length>0&&(o.push(`const { ${yp(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),o.newline()),o.push("return "),Qp(o,e),o.deindent(a),o.push("}"),delete e.helpers;const{code:l,map:u}=o.context();return{ast:e,code:l,map:u?u.toJSON():void 0}}),"generate$1");function eh(e,t={}){const n=Xd({},t),i=!!n.jit,r=!!n.minify,a=null==n.optimize||n.optimize,s=Fp(n).parse(e);return i?(a&&qp(s),r&&Wp(s),{ast:s,code:""}):(Vp(s,n),Jp(s,n))} 40 /*! 41 * core-base v11.1.11 42 * (c) 2025 kazuya kawaguchi 43 * Released under the MIT License. 44 */ 45 function th(){"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(tp().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function nh(e){return dp(e)&&0===ph(e)&&(sp(e,"b")||sp(e,"body"))}H(eh,"baseCompile$3"),H(th,"initFeatureFlags$3"),H(nh,"isMessageAST$1");const ih=["b","body"];function rh(e){return bh(e,ih)}H(rh,"resolveBody$1");const ah=["c","cases"];function sh(e){return bh(e,ah,[])}
45H(sh,"resolveCases$1");const oh=["s","static"];function lh(e){return bh(e,oh)}H(lh,"resolveStatic$1");const uh=["i","items"];function ch(e){return bh(e,uh,[])}H(ch,"resolveItems$1");const dh=["t","type"];function ph(e){return bh(e,dh)}H(ph,"resolveType$1");const hh=["v","value"];function fh(e,t){const n=bh(e,hh);if(null!=n)return n;throw wh(t)}H(fh,"resolveValue$1$1");const mh=["m","modifier"];function gh(e){return bh(e,mh)}H(gh,"resolveLinkedModifier$1");const yh=["k","key"];function vh(e){const t=bh(e,yh);if(t)return t;throw wh(6)}function bh(e,t,n){for(let i=0;i<t.length;i++){const n=t[i];if(sp(e,n)&&null!=e[n])return e[n]}return n}H(vh,"resolveLinkedKey$1"),H(bh,"resolveProps$1");const _h=[...ih,...ah,...oh,...uh,...yh,...mh,...hh,...dh];function wh(e){return new Error(`unhandled node type: ${e}`)}function Sh(e){return H((t=>Ch(t,e)),"msg")}function Ch(e,t){const n=rh(t);if(null==n)throw wh(0);if(1===ph(n)){const t=sh(n);return e.plural(t.reduce(((t,n)=>[...t,kh(e,n)]),[]))}return kh(e,n)}function kh(e,t){const n=lh(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=ch(t).reduce(((t,n)=>[...t,xh(e,n)]),[]);return e.normalize(n)}}function xh(e,t){const n=ph(t);switch(n){case 3:case 9:case 7:case 8:return fh(t,n);case 4:{const i=t;if(sp(i,"k")&&i.k)return e.interpolate(e.named(i.k));if(sp(i,"key")&&i.key)return e.interpolate(e.named(i.key));throw wh(n)}case 5:{const i=t;if(sp(i,"i")&&Gd(i.i))return e.interpolate(e.list(i.i));if(sp(i,"index")&&Gd(i.index))return e.interpolate(e.list(i.index));throw wh(n)}case 6:{const n=t,i=gh(n),r=vh(n);return e.linked(xh(e,r),i?xh(e,i):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}H(wh,"createUnhandleNodeError$1"),H(Sh,"format$3"),H(Ch,"formatParts$1"),H(kh,"formatMessageParts$1"),H(xh,"formatMessagePart$1");const Th=H((e=>e),"defaultOnCacheKey$1");let Eh=Jd();function Ah(e,t={}){let n=!1;const i=t.onError||kp;return t.onError=e=>{n=!0,i(e)},B(F({},eh(e,t)),{detectError:n})}function Lh(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&up(e)){!cp(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||Th)(e),i=Eh[n];if(i)return i;const{ast:r,detectError:a}=Ah(e,B(F({},t),{location:!1,jit:!0})),s=Sh(r);return a?s:Eh[n]=s}{const t=e.cacheKey;if(t){const n=Eh[t];return n||(Eh[t]=Sh(e))}return Sh(e)}}H(Ah,"baseCompile$2"),H(Lh,"compile$2");const Ih={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function $h(e){return Cp(e,null,void 0)}function Dh(e,t){return null!=t.locale?Oh(t.locale):Oh(e.locale)}let Ph;function Oh(e){if(up(e))return e;if(lp(e)){if(e.resolvedOnce&&null!=Ph)return Ph;if("Function"===e.constructor.name){const t=e();if(pp(t))throw $h(Ih.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Ph=t}throw $h(Ih.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw $h(Ih.NOT_SUPPORT_LOCALE_TYPE)}function Mh(e,t,n){return[...new Set([n,...op(t)?t:dp(t)?Object.keys(t):up(t)?[t]:[n]])]}function Rh(e,t,n){const i=up(n)?n:Qh,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let a=r.__localeChainCache.get(i);if(!a){a=[];let e=[n];for(;op(e);)e=Nh(a,e,t);const s=op(t)||!mp(t)?t:t.default?t.default:null;e=up(s)?[s]:s,op(e)&&Nh(a,e,!1),r.__localeChainCache.set(i,a)}return a}function Nh(e,t,n){let i=!0;for(let r=0;r<t.length&&cp(i);r++){const a=t[r];up(a)&&(i=Fh(e,t[r],n))}return i}function Fh(e,t,n){let i;const r=t.split("-");do{i=Bh(e,r.join("-"),n),r.splice(-1,1)}while(r.length&&!0===i);return i}function Bh(e,t,n){let i=!1;if(!e.includes(t)&&(i=!0,t)){i="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(op(n)||mp(n))&&n[r]&&(i=n[r])}return i}H($h,"createCoreError$1"),H(Dh,"getLocale$1"),H(Oh,"resolveLocale$1"),H(Mh,"fallbackWithSimple$1"),H(Rh,"fallbackWithLocaleChain$1"),H(Nh,"appendBlockToChain$1"),H(Fh,"appendLocaleToChain$1"),H(Bh,"appendItemToChain$1");const Hh=[];Hh[0]={w:[0],i:[3,0],"[":[4],o:[7]},Hh[1]={w:[1],".":[2],"[":[4],o:[7]},Hh[2]={w:[2],i:[3,0],0:[3,0]},Hh[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Hh[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Hh[5]={"'":[4,0],o:8,l:[5,0]},Hh[6]={'"':[4,0],o:8,l:[6,0]};const jh=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Uh(e){return jh.test(e)}function Vh(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}function qh(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function zh(e){const t=e.trim();
45return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(Uh(t)?Vh(t):"*"+t)}function Wh(e){const t=[];let n,i,r,a,s,o,l,u=-1,c=0,d=0;const p=[];function h(){const t=e[u+1];if(5===c&&"'"===t||6===c&&'"'===t)return u++,r="\\"+t,p[0](),!0}for(p[0]=()=>{void 0===i?i=r:i+=r},p[1]=()=>{void 0!==i&&(t.push(i),i=void 0)},p[2]=()=>{p[0](),d++},p[3]=()=>{if(d>0)d--,c=4,p[0]();else{if(d=0,void 0===i)return!1;if(i=zh(i),!1===i)return!1;p[1]()}},H(h,"maybeUnescapeQuote");null!==c;)if(u++,n=e[u],"\\"!==n||!h()){if(a=qh(n),l=Hh[c],s=l[a]||l.l||8,8===s)return;if(c=s[0],void 0!==s[1]&&(o=p[s[1]],o&&(r=n,!1===o())))return;if(7===c)return t}}H(Uh,"isLiteral$1"),H(Vh,"stripQuotes$1"),H(qh,"getPathCharType$1"),H(zh,"formatSubPath$1"),H(Wh,"parse$3");const Gh=new Map;function Kh(e,t){return dp(e)?e[t]:null}function Yh(e,t){if(!dp(e))return null;let n=Gh.get(t);if(n||(n=Wh(t),n&&Gh.set(t,n)),!n)return null;const i=n.length;let r=e,a=0;for(;a<i;){const e=n[a];if(_h.includes(e)&&nh(r))return null;const t=r[e];if(void 0===t)return null;if(lp(r))return null;r=t,a++}return r}H(Kh,"resolveWithKeyValue$1"),H(Yh,"resolveValue$2");const Zh="11.1.11",Xh=-1,Qh="en-US",Jh="",ef=H((e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`),"capitalize$2");function tf(){return{upper:H(((e,t)=>"text"===t&&up(e)?e.toUpperCase():"vnode"===t&&dp(e)&&"__v_isVNode"in e?e.children.toUpperCase():e),"upper"),lower:H(((e,t)=>"text"===t&&up(e)?e.toLowerCase():"vnode"===t&&dp(e)&&"__v_isVNode"in e?e.children.toLowerCase():e),"lower"),capitalize:H(((e,t)=>"text"===t&&up(e)?ef(e):"vnode"===t&&dp(e)&&"__v_isVNode"in e?ef(e.children):e),"capitalize")}}let nf,rf,af;function sf(e){nf=e}function of(e){rf=e}function lf(e){af=e}H(tf,"getDefaultLinkedModifiers$1"),H(sf,"registerMessageCompiler$1"),H(of,"registerMessageResolver$1"),H(lf,"registerLocaleFallbacker$1");let uf=null;const cf=H((e=>{uf=e}),"setFallbackContext$1"),df=H((()=>uf),"getFallbackContext$1");let pf=0;function hf(e={}){const t=lp(e.onWarn)?e.onWarn:Ud,n=up(e.version)?e.version:Zh,i=up(e.locale)||lp(e.locale)?e.locale:Qh,r=lp(i)?Qh:i,a=op(e.fallbackLocale)||mp(e.fallbackLocale)||up(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:r,s=mp(e.messages)?e.messages:ff(r),o=mp(e.datetimeFormats)?e.datetimeFormats:ff(r),l=mp(e.numberFormats)?e.numberFormats:ff(r),u=Xd(Jd(),e.modifiers,tf()),c=e.pluralRules||Jd(),d=lp(e.missing)?e.missing:null,p=!cp(e.missingWarn)&&!Yd(e.missingWarn)||e.missingWarn,h=!cp(e.fallbackWarn)&&!Yd(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,m=!!e.unresolving,g=lp(e.postTranslation)?e.postTranslation:null,y=mp(e.processor)?e.processor:null,v=!cp(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter,_=lp(e.messageCompiler)?e.messageCompiler:nf,w=lp(e.messageResolver)?e.messageResolver:rf||Kh,S=lp(e.localeFallbacker)?e.localeFallbacker:af||Mh,C=dp(e.fallbackContext)?e.fallbackContext:void 0,k=e,x=dp(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,T=dp(k.__numberFormatters)?k.__numberFormatters:new Map,E=dp(k.__meta)?k.__meta:{};pf++;const A={version:n,cid:pf,locale:i,fallbackLocale:a,messages:s,modifiers:u,pluralRules:c,missing:d,missingWarn:p,fallbackWarn:h,fallbackFormat:f,unresolving:m,postTranslation:g,processor:y,warnHtmlMessage:v,escapeParameter:b,messageCompiler:_,messageResolver:w,localeFallbacker:S,fallbackContext:C,onWarn:t,__meta:E};return A.datetimeFormats=o,A.numberFormats=l,A.__datetimeFormatters=x,A.__numberFormatters=T,A}H(hf,"createCoreContext$1");const ff=H((e=>({[e]:Jd()})),"createResources$1");function mf(e,t,n,i,r){const{missing:a,onWarn:s}=e;if(null!==a){const i=a(e,n,t,r);return up(i)?i:t}return t}function gf(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function yf(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function vf(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let i=n+1;i<t.length;i++)if(yf(e,t[i]))return!0;return!1}function bf(e,...t){const{datetimeFormats:n,unresolving:i,fallbackLocale:r,onWarn:a,localeFallbacker:s}=e,{__datetimeFormatters:o}=e,[l,u,c,d]=wf(...t);cp(c.missingWarn)?c.missingWarn:e.missingWarn;cp(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const p=!!c.part,h=Dh(e,c),f=s(e,r,h);if(!up(l)||""===l)return new Intl.DateTimeFormat(h,d).format(u);let m,g={},y=null;for(let _=0;_<f.length&&(m=f[_],g=n[m]||{},y=g[l],!mp(y));_++)mf(e,l,m,0,"datetime format");if(!mp(y)||!up(m))return i?Xh:l;let v=`${m}__${l}`;Zd(d)||(v=`${v}__${JSON.stringify(d)}`);let b=o.get(v);return b||(b=new Intl.DateTimeFormat(m,Xd({},y,d)),o.set(v,b)),p?b.formatToParts(u):b.format(u)}H(mf,"handleMissing$1"),H(gf,"updateFallbackLocale$1"),H(yf,"isAlmostSameLocale$1"),H(vf,"isImplicitFallback$1"),H(bf,"datetime$1");const _f=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function wf(...e){const[t,n,i,r]=e,a=Jd();let s,o=Jd();if(up(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw $h(Ih.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch(tvt){throw $h(Ih.INVALID_ISO_DATE_ARGUMENT)}}else if(Kd(t)){if(isNaN(t.getTime()))throw $h(Ih.INVALID_DATE_ARGUMENT);s=t}else{if(!Gd(t))throw $h(Ih.INVALID_ARGUMENT);s=t}
45return up(n)?a.key=n:mp(n)&&Object.keys(n).forEach((e=>{_f.includes(e)?o[e]=n[e]:a[e]=n[e]})),up(i)?a.locale=i:mp(i)&&(o=i),mp(r)&&(o=r),[a.key||"",s,a,o]}function Sf(e,t,n){const i=e;for(const r in n){const e=`${t}__${r}`;i.__datetimeFormatters.has(e)&&i.__datetimeFormatters.delete(e)}}function Cf(e,...t){const{numberFormats:n,unresolving:i,fallbackLocale:r,onWarn:a,localeFallbacker:s}=e,{__numberFormatters:o}=e,[l,u,c,d]=xf(...t);cp(c.missingWarn)?c.missingWarn:e.missingWarn;cp(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const p=!!c.part,h=Dh(e,c),f=s(e,r,h);if(!up(l)||""===l)return new Intl.NumberFormat(h,d).format(u);let m,g={},y=null;for(let _=0;_<f.length&&(m=f[_],g=n[m]||{},y=g[l],!mp(y));_++)mf(e,l,m,0,"number format");if(!mp(y)||!up(m))return i?Xh:l;let v=`${m}__${l}`;Zd(d)||(v=`${v}__${JSON.stringify(d)}`);let b=o.get(v);return b||(b=new Intl.NumberFormat(m,Xd({},y,d)),o.set(v,b)),p?b.formatToParts(u):b.format(u)}H(wf,"parseDateTimeArgs$1"),H(Sf,"clearDateTimeFormat$1"),H(Cf,"number$1");const kf=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function xf(...e){const[t,n,i,r]=e,a=Jd();let s=Jd();if(!Gd(t))throw $h(Ih.INVALID_ARGUMENT);const o=t;return up(n)?a.key=n:mp(n)&&Object.keys(n).forEach((e=>{kf.includes(e)?s[e]=n[e]:a[e]=n[e]})),up(i)?a.locale=i:mp(i)&&(s=i),mp(r)&&(s=r),[a.key||"",o,a,s]}function Tf(e,t,n){const i=e;for(const r in n){const e=`${t}__${r}`;i.__numberFormatters.has(e)&&i.__numberFormatters.delete(e)}}H(xf,"parseNumberArgs$1"),H(Tf,"clearNumberFormat$1");const Ef=H((e=>e),"DEFAULT_MODIFIER$1"),Af=H((e=>""),"DEFAULT_MESSAGE$1"),Lf="text",If=H((e=>0===e.length?"":yp(e)),"DEFAULT_NORMALIZE$1"),$f=gp;function Df(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Pf(e){const t=Gd(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Gd(e.named.count)||Gd(e.named.n))?Gd(e.named.count)?e.named.count:Gd(e.named.n)?e.named.n:t:t}function Of(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Mf(e={}){const t=e.locale,n=Pf(e),i=dp(e.pluralRules)&&up(t)&&lp(e.pluralRules[t])?e.pluralRules[t]:Df,r=dp(e.pluralRules)&&up(t)&&lp(e.pluralRules[t])?Df:void 0,a=H((e=>e[i(n,e.length,r)]),"plural"),s=e.list||[],o=H((e=>s[e]),"list"),l=e.named||Jd();Gd(e.pluralIndex)&&Of(n,l);const u=H((e=>l[e]),"named");function c(t,n){const i=lp(e.messages)?e.messages(t,!!n):!!dp(e.messages)&&e.messages[t];return i||(e.parent?e.parent.message(t):Af)}H(c,"message");const d=H((t=>e.modifiers?e.modifiers[t]:Ef),"_modifier"),p=mp(e.processor)&&lp(e.processor.normalize)?e.processor.normalize:If,h=mp(e.processor)&&lp(e.processor.interpolate)?e.processor.interpolate:$f,f=mp(e.processor)&&up(e.processor.type)?e.processor.type:Lf,m={list:o,named:u,plural:a,linked:H(((e,...t)=>{const[n,i]=t;let r="text",a="";1===t.length?dp(n)?(a=n.modifier||a,r=n.type||r):up(n)&&(a=n||a):2===t.length&&(up(n)&&(a=n||a),up(i)&&(r=i||r));const s=c(e,!0)(m),o="vnode"===r&&op(s)&&a?s[0]:s;return a?d(a)(o,r):o}),"linked"),message:c,type:f,interpolate:h,normalize:p,values:Xd(Jd(),s,l)};return m}H(Df,"pluralDefault$1"),H(Pf,"getPluralIndex$1"),H(Of,"normalizeNamed$1"),H(Mf,"createMessageContext$1");const Rf=H((()=>""),"NOOP_MESSAGE_FUNCTION$1"),Nf=H((e=>lp(e)),"isMessageFunction$1");function Ff(e,...t){const{fallbackFormat:n,postTranslation:i,unresolving:r,messageCompiler:a,fallbackLocale:s,messages:o}=e,[l,u]=Vf(...t),c=cp(u.missingWarn)?u.missingWarn:e.missingWarn,d=cp(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=cp(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,f=up(u.default)||cp(u.default)?cp(u.default)?a?l:()=>l:u.default:n?a?l:()=>l:null,m=n||null!=f&&(up(f)||lp(f)),g=Dh(e,u);p&&Bf(u);let[y,v,b]=h?[l,g,o[g]||Jd()]:Hf(e,l,g,s,d,c),_=y,w=l;if(h||up(_)||nh(_)||Nf(_)||m&&(_=f,w=_),!(h||(up(_)||nh(_)||Nf(_))&&up(v)))return r?Xh:l;let S=!1;const C=H((()=>{S=!0}),"onError"),k=Nf(_)?_:jf(e,l,v,_,w,C);if(S)return _;const x=Uf(e,k,Mf(zf(e,v,b,u)));let T=i?i(x,l):x;return p&&up(T)&&(T=rp(T)),T}function Bf(e){op(e.list)?e.list=e.list.map((e=>
vendor: 7,470 bytes, lines 45-51
45up(e)?np(e):e)):dp(e.named)&&Object.keys(e.named).forEach((t=>{up(e.named[t])&&(e.named[t]=np(e.named[t]))}))}function Hf(e,t,n,i,r,a){const{messages:s,onWarn:o,messageResolver:l,localeFallbacker:u}=e,c=u(e,i,n);let d,p=Jd(),h=null;for(let f=0;f<c.length&&(d=c[f],p=s[d]||Jd(),null===(h=l(p,t))&&(h=p[t]),!(up(h)||nh(h)||Nf(h)));f++)if(!vf(d,c)){const n=mf(e,t,d,0,"translate");n!==t&&(h=n)}return[h,d,p]}function jf(e,t,n,i,r,a){const{messageCompiler:s,warnHtmlMessage:o}=e;if(Nf(i)){const e=i;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=H((()=>i),"msg2");return e.locale=n,e.key=t,e}const l=s(i,qf(e,n,r,i,o,a));return l.locale=n,l.key=t,l.source=i,l}function Uf(e,t,n){return t(n)}function Vf(...e){const[t,n,i]=e,r=Jd();if(!(up(t)||Gd(t)||Nf(t)||nh(t)))throw $h(Ih.INVALID_ARGUMENT);const a=Gd(t)?String(t):(Nf(t),t);return Gd(n)?r.plural=n:up(n)?r.default=n:mp(n)&&!Zd(n)?r.named=n:op(n)&&(r.list=n),Gd(i)?r.plural=i:up(i)?r.default=i:mp(i)&&Xd(r,i),[a,r]}function qf(e,t,n,i,r,a){return{locale:t,key:n,warnHtmlMessage:r,onError:H((e=>{throw a&&a(e),e}),"onError"),onCacheKey:H((e=>zd(t,n,e)),"onCacheKey")}}function zf(e,t,n,i){const{modifiers:r,pluralRules:a,messageResolver:s,fallbackLocale:o,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:r,pluralRules:a,messages:H(((i,r)=>{let a=s(n,i);if(null==a&&(c||r)){const[,,n]=Hf(c||e,i,t,o);a=s(n,i)}if(up(a)||nh(a)){let n=!1;const r=jf(e,i,t,a,i,H((()=>{n=!0}),"onError"));return n?Rf:r}return Nf(a)?a:Rf}),"resolveMessage")};return e.processor&&(d.processor=e.processor),i.list&&(d.list=i.list),i.named&&(d.named=i.named),Gd(i.plural)&&(d.pluralIndex=i.plural),d}H(Ff,"translate$1"),H(Bf,"escapeParams$1"),H(Hf,"resolveMessageFormat$1"),H(jf,"compileMessageFormat$1"),H(Uf,"evaluateMessage$1"),H(Vf,"parseTranslateArgs$1"),H(qf,"getCompileContext$1"),H(zf,"getMessageContextOptions$1"),th(); 46 /*! 47 * vue-i18n v11.1.11 48 * (c) 2025 kazuya kawaguchi 49 * Released under the MIT License. 50 */ 51 const Wf="11.1.11";function Gf(){"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(tp().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}H(Gf,"initFeatureFlags$2");const Kf={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Yf(e,...t){return Cp(e,null,void 0)}H(Yf,"createI18nError$1");const Zf=qd("__translateVNode"),Xf=qd("__datetimeParts"),Qf=qd("__numberParts"),Jf=qd("__setPluralRules"),em=qd("__injectWithOption"),tm=qd("__dispose");function nm(e){if(!dp(e))return e;if(nh(e))return e;for(const t in e)if(sp(e,t))if(t.includes(".")){const n=t.split("."),i=n.length-1;let r=e,a=!1;for(let e=0;e<i;e++){if("__proto__"===n[e])throw new Error(`unsafe key: ${n[e]}`);if(n[e]in r||(r[n[e]]=Jd()),!dp(r[n[e]])){a=!0;break}r=r[n[e]]}if(a||(nh(r)?_h.includes(n[i])||delete e[t]:(r[n[i]]=e[t],delete e[t])),!nh(r)){const e=r[n[i]];dp(e)&&nm(e)}}else dp(e[t])&&nm(e[t]);return e}function im(e,t){const{messages:n,__i18n:i,messageResolver:r,flatJson:a}=t,s=mp(n)?n:op(i)?Jd():{[e]:Jd()};if(op(i)&&i.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||Jd(),bp(n,s[t])):bp(n,s)}else up(e)&&bp(JSON.parse(e),s)})),null==r&&a)for(const o in s)sp(s,o)&&nm(s[o]);return s}function rm(e){return e.type}function am(e,t,n){let i=dp(t.messages)?t.messages:Jd();"__i18nGlobal"in n&&(i=im(e.locale.value,{messages:i,__i18n:n.__i18nGlobal}));const r=Object.keys(i);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,i[t])})),dp(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(dp(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function sm(e){return Hs(Cs,null,e,0)}H(nm,"handleFlatJson$1"),H(im,"getLocaleMessages$1"),H(rm,"getComponentOptions$1"),H(am,"adjustI18nResources$1"),H(sm,"createTextNode$1");const om=H((()=>[]),"NOOP_RETURN_ARRAY$1"),lm=H((()=>!1),"NOOP_RETURN_FALSE$1");let um=0;function cm(e){return(t,n,i,r)=>e(n,i,io()||void 0,r)}H(cm,"defineCoreMissingHandler$1");function dm(e={}){const{__root:t,__injectWithOption:n}=e,i=void 0===t,r=e.flatJson,a=Vd?Tn:En;let s=!cp(e.inheritLocale)||e.inheritLocale;const o=a(t&&s?t.locale.value:up(e.locale)?e.locale:Qh),l=a(t&&s?t.fallbackLocale.value:up(e.fallbackLocale)||op(e.fallbackLocale)||mp(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:o.value),u=a(im(o.value,e)),c=a(mp(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),d=a(mp(e.numberFormats)?e.numberFormats:{[o.value]:{}});let p=t?t.missingWarn:!cp(e.missingWarn)&&!Yd(e.missingWarn)||e.missingWarn,h=t?t.fallbackWarn:!cp(e.fallbackWarn)&&!Yd(e.fallbackWarn)||e.fallbackWarn,f=t?t.fallbackRoot:!cp(e.fallbackRoot)||e.fallbackRoot,m=!!e.fallbackFormat,g=lp(e.missing)?e.missing:null,y=lp(e.missing)?cm(e.missing):null,v=lp(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:!cp(e.warnHtmlMessage)||e.warnHtmlMessage,_=!!e.escapeParameter;const w=t?t.modifiers:mp(e.modifiers)?e.modifiers:{};let S,C=e.pluralRules||t&&t.pluralRules;function k(){return[o.value,l.value,u.value,c.value,d.value]}S=H((()=>{i&&cf(null);const t={version:Wf,locale:o.value,fallbackLocale:l.value,messages:u.value,modifiers:w,pluralRules:C,missing:null===y?void 0:y,missingWarn:p,fallbackWarn:h,fallbackFormat:m,unresolving:!0,postTranslation:null===v?void 0:v,warnHtmlMessage:b,escapeParameter:_,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=c.value,t.numberFormats=d.value,t.__datetimeFormatters=mp(S)?S.__datetimeFormatters:void 0,t.__numberFormatters=mp(S)?S.__numberFormatters:void 0;const n=hf(t);return i&&cf(n),n}),"getCoreContext")(),gf(S,o.value,l.value),H(k,"trackReactivityValues");const x=Co({get:H((()=>o.value),"get"),set:H((e=>{S.locale=e,o.value=e}),"set")}),T=Co({get:H((()=>l.value),"get"),set:H((e=>{S.fallbackLocale=e,l.value=e,gf(S,o.value,e)}),"set")}),E=Co((()=>u.value)),A=Co((()=>c.value)),L=Co((()=>d.value));function I(){return lp(v)?v:null}function $(e){v=e,S.postTranslation=e}function D(){return g}function P(e){null!==e&&(y=cm(e)),g=e,S.missing=y}H(I,"getPostTranslationHandler"),H($,"setPostTranslationHandler"),H(D,"getMissingHandler"),H(P,"setMissingHandler");const O=H(((e,n,r,a,s,o)=>{let l;k();try{0,i||(S.fallbackContext=t?df():void 0),l=e(S)}finally{i||(S.fallbackContext=void 0)}if("translate exists"!==r&&Gd(l)&&l===Xh||"translate exists"===r&&!l){const[e,i]=n();return t&&f?a(t):s(e)}if(o(l))return l;throw Yf(Kf.UNEXPECTED_RETURN_TYPE)}),"wrapWithDeps");function M(...e){return O((t=>Reflect.apply(Ff,null,[t,...e])),(()=>Vf(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>up(e)))}function R(...e){const[t,n,i]=e;if(i&&!dp(i))throw Yf(Kf.INVALID_ARGUMENT);return M(t,n,Xd({resolvedMessage:!0},i||{}))}function N(...e){return O((t=>Reflect.apply(bf,null,[t,...e])),(()=>wf(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Jh),(e=>up(e)||op(e)))}function F(...e){return O((t=>Reflect.apply(Cf,null,[t,...e])),(()=>xf(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Jh),(e=>up(e)||op(e)))}function B(e){return e.map((e=>up(e)||Gd(e)||cp(e)?sm(String(e)):e))}H(M,"t"),H(R,"rt"),H(N,"d"),H(F,"n"),H(B,"normalize");const j={normalize:B,interpolate:H((e=>e),"interpolate"),type:"vnode"};function U(...e){return O((t=>{let n;const i=t;
51try{i.processor=j,n=Reflect.apply(Ff,null,[i,...e])}finally{i.processor=null}return n}),(()=>Vf(...e)),"translate",(t=>t[Zf](...e)),(e=>[sm(e)]),(e=>op(e)))}function V(...e){return O((t=>Reflect.apply(Cf,null,[t,...e])),(()=>xf(...e)),"number format",(t=>t[Qf](...e)),om,(e=>up(e)||op(e)))}function q(...e){return O((t=>Reflect.apply(bf,null,[t,...e])),(()=>wf(...e)),"datetime format",(t=>t[Xf](...e)),om,(e=>up(e)||op(e)))}function z(e){C=e,S.pluralRules=C}function W(e,t){return O((()=>{if(!e)return!1;const n=Y(up(t)?t:o.value),i=S.messageResolver(n,e);return nh(i)||Nf(i)||up(i)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),lm,(e=>cp(e)))}function G(e){let t=null;const n=Rh(S,l.value,o.value);for(let i=0;i<n.length;i++){const r=u.value[n[i]]||{},a=S.messageResolver(r,e);if(null!=a){t=a;break}}return t}function K(e){const n=G(e);return null!=n?n:t&&t.tm(e)||{}}function Y(e){return u.value[e]||{}}function Z(e,t){if(r){const n={[e]:t};for(const e in n)sp(n,e)&&nm(n[e]);t=n[e]}u.value[e]=t,S.messages=u.value}function X(e,t){u.value[e]=u.value[e]||{};const n={[e]:t};if(r)for(const i in n)sp(n,i)&&nm(n[i]);bp(t=n[e],u.value[e]),S.messages=u.value}function Q(e){return c.value[e]||{}}function J(e,t){c.value[e]=t,S.datetimeFormats=c.value,Sf(S,e,t)}function ee(e,t){c.value[e]=Xd(c.value[e]||{},t),S.datetimeFormats=c.value,Sf(S,e,t)}function te(e){return d.value[e]||{}}function ne(e,t){d.value[e]=t,S.numberFormats=d.value,Tf(S,e,t)}function ie(e,t){d.value[e]=Xd(d.value[e]||{},t),S.numberFormats=d.value,Tf(S,e,t)}H(U,"translateVNode"),H(V,"numberParts"),H(q,"datetimeParts"),H(z,"setPluralRules"),H(W,"te"),H(G,"resolveMessages"),H(K,"tm"),H(Y,"getLocaleMessage"),H(Z,"setLocaleMessage"),H(X,"mergeLocaleMessage"),H(Q,"getDateTimeFormat"),H(J,"setDateTimeFormat"),H(ee,"mergeDateTimeFormat"),H(te,"getNumberFormat"),H(ne,"setNumberFormat"),H(ie,"mergeNumberFormat"),um++,t&&Vd&&(Bi(t.locale,(e=>{s&&(o.value=e,S.locale=e,gf(S,o.value,l.value))})),Bi(t.fallbackLocale,(e=>{s&&(l.value=e,S.fallbackLocale=e,gf(S,o.value,l.value))})));const re={id:um,locale:x,fallbackLocale:T,get inheritLocale(){return s},set inheritLocale(e){s=e,e&&t&&(o.value=t.locale.value,l.value=t.fallbackLocale.value,gf(S,o.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:E,get modifiers(){return w},get pluralRules(){return C||{}},get isGlobal(){return i},get missingWarn(){return p},set missingWarn(e){p=e,S.missingWarn=p},get fallbackWarn(){return h},set fallbackWarn(e){h=e,S.fallbackWarn=h},get fallbackRoot(){return f},set fallbackRoot(e){f=e},get fallbackFormat(){return m},set fallbackFormat(e){m=e,S.fallbackFormat=m},get warnHtmlMessage(){return b},set warnHtmlMessage(e){b=e,S.warnHtmlMessage=e},get escapeParameter(){return _},set escapeParameter(e){_=e,S.escapeParameter=e},t:M,getLocaleMessage:Y,setLocaleMessage:Z,mergeLocaleMessage:X,getPostTranslationHandler:I,setPostTranslationHandler:$,getMissingHandler:D,setMissingHandler:P,[Jf]:z};return re.datetimeFormats=A,re.numberFormats=L,re.rt=R,re.te=W,re.tm=K,re.d=N,re.n=F,re.getDateTimeFormat=Q,re.setDateTimeFormat=J,re.mergeDateTimeFormat=ee,re.getNumberFormat=te,re.setNumberFormat=ne,re.mergeNumberFormat=ie,re[em]=n,re[Zf]=U,re[Xf]=q,re[Qf]=V,re}H(dm,"createComposer$1");const pm={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:H((e=>"parent"===e||"global"===e),"validator"),default:"parent"},i18n:{type:Object}};function hm({slots:e},t){if(1===t.length&&"default"===t[0]){return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.type===Ss?t.children:[t]]),[])}return t.reduce(((t,n)=>{const i=e[n];return i&&(t[n]=i()),t}),Jd())}function fm(){return Ss}function mm(e){return op(e)&&!up(e[0])}function gm(e,t,n,i){const{slots:r,attrs:a}=t;return()=>{const t={part:!0};let s=Jd();e.locale&&(t.locale=e.locale),up(e.format)?t.key=e.format:dp(e.format)&&(up(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,i)=>n.includes(i)?Xd(Jd(),t,{[i]:e.format[i]}):t),Jd()));const o=i(e.value,t,s);let l=[t.key];op(o)?l=o.map(((e,t)=>{const n=r[e.type],i=n?n({[e.type]:e.value,index:t,parts:o}):[e.value];return mm(i)&&(i[0].key=`${e.type}-${t}`),i})):up(o)&&(l=[o]);const u=Xd(Jd(),a);return ko(up(e.tag)||dp(e.tag)?e.tag:fm(),u,l)}}H(hm,"getInterpolateArg$1"),H(fm,"getFragmentableTag$1"),Xd({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:H((e=>Gd(e)||!isNaN(e)),"validator")}},pm),H(mm,"isVNode$2"),H(gm,"renderFormatter$1"),Xd({value:{type:Number,required:!0},format:{type:[String,Object]}},pm);const ym=qd("global-vue-i18n");function vm(e={}){const t=!cp(e.globalInjection)||e.globalInjection,n=new Map,[i,r]=_m(e),a=qd("");function s(e){return n.get(e)||null}function o(e,t){n.set(e,t)}function l(e){n.delete(e)}H(s,"__getInstance"),H(o,"__setInstance"),H(l,"__deleteInstance");const u={get mode(){return"composition"},install(e,...n){return V(this,null,(function*(){if(e.__VUE_I18N_SYMBOL__=a,e.provide(e.__VUE_I18N_SYMBOL__,u),mp(n[0])){const e=n[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let i=null;t&&(i=Lm(e,u.global));const r=e.unmount;e.unmount=()=>{i&&i(),u.dispose(),r()}}))},get global(){return r},dispose(){i.stop()},__instances:n,__getInstance:s,__setInstance:o,__deleteInstance:l};return u}function bm(e={}){const t=io();if(null==t)throw Yf(Kf.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Yf(Kf.NOT_INSTALLED);const n=wm(t),i=Cm(n),r=rm(t),a=Sm(e,r);if("global"===a)return am(i,e,r),i;if("parent"===a){let r=km(n,t,e.__useComponent);return null==r&&(r=i),r}const s=n;let o=s.__getInstance(t);if(null==o){const n=Xd({},e);"__i18n"in r&&(n.__i18n=r.__i18n),i&&(n.__root=i),o=dm(n),s.__composerExtend&&(o[tm]=s.__composerExtend(o)),Tm(s,t,o),s.__setInstance(t,o)}return o}function _m(e,t){const n=Xe(),i=n.run((()=>dm(e)));if(null==i)throw Yf(Kf.UNEXPECTED_ERROR);return[n,i]}function wm(e){const t=Oi(e.isCE?ym:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Yf(e.isCE?Kf.NOT_INSTALLED_WITH_PROVIDE:Kf.UNEXPECTED_ERROR);return t}function Sm(e,t){return Zd(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Cm(e){return"composition"===e.mode?e.global:e.global.__composer}function km(e,t,n=!1){let i=null;const r=t.root;let a=xm(t,n);for(;null!=a;){const t=e;if("composition"===e.mode&&(i=t.__getInstance(a)),null!=i)break;if(r===a)break;a=a.parent}return i}function xm(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}function Tm(e,t,n){Br((()=>{}),t),Vr((()=>{const i=n;e.__deleteInstance(t);const r=i[tm];r&&(r(),delete i[tm])}),t)}H(vm,"createI18n$1"),H(bm,"useI18n$1"),H(_m,"createGlobal$1"),H(wm,"getI18nInstance$1"),H(Sm,"getScope$1"),H(Cm,"getGlobalComposer$1"),H(km,"getComposer$3"),H(xm,"getParentComponentInstance$1"),H(Tm,"setupLifeCycle$1");const Em=["locale","fallbackLocale","availableLocales"],Am=["t","rt","d","n","tm","te"];function Lm(e,t){const n=Object.create(null);Em.forEach((e=>{const i=Object.getOwnPropertyDescriptor(t,e);if(!i)throw Yf(Kf.UNEXPECTED_ERROR);const r=xn(i.value)?{get:()=>i.value.value,set(e){i.value.value=e}}:{get:()=>i.get&&i.get()};Object.defineProperty(n,e,r)}
51)),e.config.globalProperties.$i18n=n,Am.forEach((n=>{const i=Object.getOwnPropertyDescriptor(t,n);if(!i||!i.value)throw Yf(Kf.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,i)}));return H((()=>{delete e.config.globalProperties.$i18n,Am.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))}),"dispose")}H(Lm,"injectGlobalFields$1"),Xd({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},pm),Gf(),sf(Lh),of(Yh),lf(Rh);const Im=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uD
51F37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,$m=Object.hasOwnProperty,Dm=class{constructor(){this.occurrences,this.reset()}slug(e,t){const n=this;let i=Om(e,!0===t);const r=i;for(;$m.call(n.occurrences,i);)n.occurrences[r]++,i=r+"-"+n.occurrences[r];return n.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}};H(Dm,"BananaSlug");let Pm=Dm;function Om(e,t){return"string"!=typeof e?"":(t||(e=e.toLowerCase()),e.replace(Im,"").replace(/ /g,"-"))}H(Om,"slug");let Mm=new Pm,Rm=[];const Nm=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Fm(e){return e.replace(Nm,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}function Bm({prefix:e="",globalSlugs:t=!1}={}){return{headerIds:!1,hooks:{preprocess:e=>(t||Hm(),e)},useNewRenderer:!0,renderer:{heading({tokens:t,depth:n}){const i=this.parser.parseInline(t),r=Fm(this.parser.parseInline(t,this.parser.textRenderer)).trim().replace(/<[!\/a-z].*?>/gi,""),a=n,s=`${e}${Mm.slug(r.toLowerCase())}`,o={level:a,text:i,id:s,raw:r};return Rm.push(o),`<h${a} id="${s}">${i}</h${a}>\n`}}}}function Hm(){Rm=[],Mm=new Pm}function jm(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}H(Fm,"unescape$1"),H(Bm,"gfmHeadingId"),H(Hm,"resetHeadings"),H(jm,"_getDefaults");let Um={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function Vm(e){Um=e}H(Vm,"changeDefaults");const qm=/[&<>"']/,zm=new RegExp(qm.source,"g"),Wm=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Gm=new RegExp(Wm.source,"g"),Km={"&":"&","<":"<",">":">",'"':""","'":"'"},Ym=H((e=>Km[e]),"getEscapeReplacement");function Zm(e,t){if(t){if(qm.test(e))return e.replace(zm,Ym)}else if(Wm.test(e))return e.replace(Gm,Ym);return e}H(Zm,"escape$1$1");const Xm=/(^|[^\[])\^/g;function Qm(e,t){let n="string"==typeof e?e:e.source;t=t||"";const i={replace:H(((e,t)=>{let r="string"==typeof t?t:t.source;return r=r.replace(Xm,"$1"),n=n.replace(e,r),i}),"replace"),getRegex:H((()=>new RegExp(n,t)),"getRegex")};return i}function Jm(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(tvt){return null}return e}H(Qm,"edit"),H(Jm,"cleanUrl");const eg={exec:H((()=>null),"exec")}
vendor: 12,465 bytes, line 51
51;function tg(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let i=!1,r=t;for(;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}function ng(e,t,n){const i=e.length;if(0===i)return"";let r=0;for(;r<i;){if(e.charAt(i-r-1)!==t)break;r++}return e.slice(0,i-r)}function ig(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let i=0;i<e.length;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return-1}function rg(e,t,n,i){const r=t.href,a=t.title?Zm(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){i.state.inLink=!0;const e={type:"link",raw:n,href:r,title:a,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,e}return{type:"image",raw:n,href:r,title:a,text:Zm(s)}}function ag(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const i=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=i.length?e.slice(i.length):e})).join("\n")}H(tg,"splitCells"),H(ng,"rtrim"),H(ig,"findClosingBracket"),H(rg,"outputLink"),H(ag,"indentCodeCompensation");const sg=class{constructor(e){U(this,"options"),U(this,"rules"),U(this,"lexer"),this.options=e||Um}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ng(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=ag(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=ng(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ng(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=ng(t[0],"\n").split("\n"),n="",i="";const r=[];for(;e.length>0;){let t=!1;const a=[];let s;for(s=0;s<e.length;s++)if(/^ {0,3}>/.test(e[s]))a.push(e[s]),t=!0;else{if(t)break;a.push(e[s])}e=e.slice(s);const o=a.join("\n"),l=o.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1").replace(/^ {0,3}>[ \t]?/gm,"");n=n?`${n}\n${o}`:o,i=i?`${i}\n${l}`:l;const u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,r,!0),this.lexer.state.top=u,0===e.length)break;const c=r[r.length-1];if("code"===(null==c?void 0:c.type))break;if("blockquote"===(null==c?void 0:c.type)){const t=c,a=t.raw+"\n"+e.join("\n"),s=this.blockquote(a);r[r.length-1]=s,n=n.substring(0,n.length-t.raw.length)+s.raw,i=i.substring(0,i.length-t.text.length)+s.text;break}if("list"!==(null==c?void 0:c.type));else{const t=c,a=t.raw+"\n"+e.join("\n"),s=this.list(a);r[r.length-1]=s,n=n.substring(0,n.length-c.raw.length)+s.raw,i=i.substring(0,i.length-t.raw.length)+s.raw,e=a.substring(r[r.length-1].raw.length).split("\n")}}return{type:"blockquote",raw:n,tokens:r,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const i=n.length>1,r={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");const a=new RegExp(`^( {0,3}${n})((?:[\t ][^\\n]*)?(?:\\n|$))`);let s=!1;for(;e;){let n=!1,i="",o="";if(!(t=a.exec(e)))break;if(this.rules.block.hr.test(e))break;i=t[0],e=e.substring(i.length);let l=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),u=e.split("\n",1)[0],c=!l.trim(),d=0;if(this.options.pedantic?(d=2,o=l.trimStart()):c?d=t[1].length+1:(d=t[2].search(/[^ ]/),d=d>4?1:d,o=l.slice(d),d+=t[1].length),c&&/^[ \t]*$/.test(u)&&(i+=u+"\n",e=e.substring(u.length+1),n=!0),!n){const t=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),r=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),a=new RegExp(`^ {0,${Math.min(3,d-1)}}#`),s=new RegExp(`^ {0,${Math.min(3,d-1)}}<(?:[a-z].*>|!--)`,"i");for(;e;){const p=e.split("\n",1)[0];let h;if(u=p,this.options.pedantic?(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),h=u):h=u.replace(/\t/g," "),r.test(u))break;if(a.test(u))break;if(s.test(u))break;if(t.test(u))break;if(n.test(u))break;if(h.search(/[^ ]/)>=d||!u.trim())o+="\n"+h.slice(d);else{if(c)break;if(l.replace(/\t/g," ").search(/[^ ]/)>=4)break;if(r.test(l))break;if(a.test(l))break;if(n.test(l))break;o+="\n"+u}c||u.trim()||(c=!0),i+=p+"\n",e=e.substring(p.length+1),l=h.slice(d)}}r.loose||(s?r.loose=!0:/\n[ \t]*\n[ \t]*$/.test(i)&&(s=!0));let p,h=null;this.options.gfm&&(h=/^\[[ xX]\] /.exec(o),h&&(p="[ ] "!==h[0],o=o.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:i,task:!!h,checked:p,loose:!1,text:o,tokens:[]}),r.raw+=i}r.items[r.items.length-1].raw=r.items[r.items.length-1].raw.trimEnd(),r.items[r.items.length-1].text=r.items[r.items.length-1].text.trimEnd(),r.raw=r.raw.trimEnd();for(let e=0;e<r.items.length;e++)if(this.lexer.state.top=!1,r.items[e].tokens=this.lexer.blockTokens(r.items[e].text,[]),!r.loose){const t=r.items[e].tokens.filter((e=>"space"===e.type)),n=t.length>0&&t.some((e=>/\n.*\n/.test(e.raw)));r.loose=n}if(r.loose)for(let e=0;e<r.items.length;e++)r.items[e].loose=!0;return r}}html(e){const t=this.rules.block.html.exec(e);if(t){return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:i}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!/[:|]/.test(t[2]))return;const n=tg(t[1]),i=t[2].replace(/^\||\| *$/g,"").split("|"),r=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===i.length){for(const e of i)/^ *-+: *$/.test(e)?a.align.push("right"):/^ *:-+: *$/.test(e)?a.align.push("center"):/^ *:-+ *$/.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(const e of r)a.rows.push(tg(e,a.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]}))));return a}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Zm(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=ng(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=ig(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],i=e[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),rg(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:i?i.replace(this.rules.inline.anyPunctuation,"$1"):i},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=t[(n[2]||n[1]).replace(/\s+/g," ").toLowerCase()];if(!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return rg(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i)return;if(i[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const n=[...i[0]].length-1;let r,a,s=n,o=0;const l="*"===i[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(i=l.exec(t));){if(r=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!r)continue;if(a=[...r].length,i[3]||i[4]){s+=a;continue}if((i[5]||i[6])&&n%3&&!((n+a)%3)){o+=a;continue}if(s-=a,s>0)continue;a=Math.min(a,a+s+o);const t=[...i[0]][0].length,l=e.slice(0,n+i.index+t+a);if(Math.min(n,a)%2){const e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}const u=l.slice(2,-2);return{type:"strong",raw:l,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),i=/^ /.test(e)&&/ $/.test(e);return n&&i&&(e=e.substring(1,e.length-1)),e=Zm(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=Zm(t[1]),n="mailto:"+e):(e=Zm(t[1]),n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t,n;let i;if(i=this.rules.inline.url.exec(e)){let e,r;if("@"===i[2])e=Zm(i[0]),r="mailto:"+e;else{let a;do{a=i[0],i[0]=null!=(n=null==(t=this.rules.inline._backpedal.exec(i[0]))?void 0:t[0])?n:""}while(a!==i[0]);e=Zm(i[0]),r="www."===i[1]?"http://"+i[0]:i[0]}return{type:"link",raw:i[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:Zm(t[0]),{type:"text",raw:t[0],text:e}}}};H(sg,"_Tokenizer");let og=sg;const lg=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ug=/(?:[*+-]|\d{1,9}[.)])/,cg=Qm(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,ug).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),dg=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,pg=/(?!\s*\])(?:\\.|[^\[\]\\])+/,hg=Qm(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",pg).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),fg=Qm(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ug).getRegex(),mg="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",gg=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,yg=Qm("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
51)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",gg).replace("tag",mg).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),vg=Qm(dg).replace("hr",lg).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mg).getRegex(),bg={blockquote:Qm(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",vg).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:hg,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:lg,html:yg,lheading:cg,list:fg,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:vg,table:eg,text:/^[^\n]+/},_g=Qm("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",lg).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mg).getRegex(),wg=B(F({},bg),{table:_g,paragraph:Qm(dg).replace("hr",lg).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_g).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mg).getRegex()}),Sg=B(F({},bg),{html:Qm("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",gg).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:eg,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Qm(dg).replace("hr",lg).replace("heading"," *#{1,6} *[^\n]").replace("lheading",cg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Cg=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,kg=/^( {2,}|\\)\n(?!\s*$)/,xg="\\p{P}\\p{S}",Tg=Qm(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,xg).getRegex(),Eg=Qm(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,xg).getRegex(),Ag=Qm("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,xg).getRegex(),Lg=Qm("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,xg).getRegex(),Ig=Qm(/\\([punct])/,"gu").replace(/punct/g,xg).getRegex(),$g=Qm(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Dg=Qm(gg).replace("(?:--\x3e|$)","--\x3e").getRegex(),Pg=Qm("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Dg).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Og=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Mg=Qm(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Og).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Rg=Qm(/^!?\[(label)\]\[(ref)\]/).replace("label",Og).replace("ref",pg).getRegex(),Ng=Qm(/^!?\[(ref)\](?:\[\])?/).replace("ref",pg).getRegex(),Fg={_backpedal:eg,anyPunctuation:Ig,autolink:$g,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:kg,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:eg,emStrongLDelim:Eg,emStrongRDelimAst:Ag,emStrongRDelimUnd:Lg,escape:Cg,link:Mg,nolink:Ng,punctuation:Tg,reflink:Rg,reflinkSearch:Qm("reflink|nolink(?!\\()","g").replace("reflink",Rg).replace("nolink",Ng).getRegex(),tag:Pg,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:eg}
vendor: 9,164 bytes, line 51
51,Bg=B(F({},Fg),{link:Qm(/^!?\[(label)\]\((.*?)\)/).replace("label",Og).getRegex(),reflink:Qm(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Og).getRegex()}),Hg=B(F({},Fg),{escape:Qm(Cg).replace("])","~|])").getRegex(),url:Qm(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),jg=B(F({},Hg),{br:Qm(kg).replace("{2,}","*").getRegex(),text:Qm(Hg.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),Ug={normal:bg,gfm:wg,pedantic:Sg},Vg={normal:Fg,gfm:Hg,breaks:jg,pedantic:Bg},qg=class e{constructor(e){U(this,"tokens"),U(this,"options"),U(this,"state"),U(this,"tokenizer"),U(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Um,this.options.tokenizer=this.options.tokenizer||new og,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Ug.normal,inline:Vg.normal};this.options.pedantic?(t.block=Ug.pedantic,t.inline=Vg.pedantic):this.options.gfm&&(t.block=Ug.gfm,this.options.breaks?t.inline=Vg.breaks:t.inline=Vg.gfm),this.tokenizer.rules=t}static get rules(){return{block:Ug,inline:Vg}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){let i,r,a;for(this.options.pedantic&&(e=e.replace(/\t/g," ").replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(i=n.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))))if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),1===i.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(i):(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.list(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.def(e))e=e.substring(i.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(r.raw+="\n"+i.raw,r.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else{if(a=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let i;this.options.extensions.startBlock.forEach((e=>{i=e.call({lexer:this},n),"number"==typeof i&&i>=0&&(t=Math.min(t,i))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a)))r=t[t.length-1],n&&"paragraph"===(null==r?void 0:r.type)?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,i,r,a,s,o,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.anyPunctuation.exec(l));)l=l.slice(0,a.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(s||(o=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((i=>!!(n=i.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),i=t[t.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),i=t[t.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,l,o))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let i;this.options.extensions.startInline.forEach((e=>{i=e.call({lexer:this},n),"number"==typeof i&&i>=0&&(t=Math.min(t,i))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(r))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(o=n.raw.slice(-1)),s=!0,i=t[t.length-1],i&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}};H(qg,"_Lexer");let zg=qg;const Wg=class{constructor(e){U(this,"options"),U(this,"parser"),this.options=e||Um}space(e){return""}code({text:e,lang:t,escaped:n}){var i;const r=null==(i=(t||"").match(/^\S*/))?void 0:i[0],a=e.replace(/\n$/,"")+"\n";return r?'<pre><code class="language-'+Zm(r)+'">'+(n?a:Zm(a,!0))+"</code></pre>\n":"<pre><code>"+(n?a:Zm(a,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,n=e.start;let i="";for(let a=0;a<e.items.length;a++){const t=e.items[a];i+=this.listitem(t)}const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+i+"</"+r+">\n"}listitem(e){let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&"paragraph"===e.tokens[0].type?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" "}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let r=0;r<e.header.length;r++)n+=this.tablecell(e.header[r]);t+=this.tablerow({text:n});let i="";for(let r=0;r<e.rows.length;r++){const t=e.rows[r];n="";for(let e=0;e<t.length;e++)n+=this.tablecell(t[e]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+i+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const i=this.parser.parseInline(n),r=Jm(e);
51if(null===r)return i;let a='<a href="'+(e=r)+'"';return t&&(a+=' title="'+t+'"'),a+=">"+i+"</a>",a}image({href:e,title:t,text:n}){const i=Jm(e);if(null===i)return n;let r=`<img src="${e=i}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=">",r}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}};H(Wg,"_Renderer");let Gg=Wg;const Kg=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}};H(Kg,"_TextRenderer");let Yg=Kg;const Zg=class e{constructor(e){U(this,"options"),U(this,"renderer"),U(this,"textRenderer"),this.options=e||Um,this.options.renderer=this.options.renderer||new Gg,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Yg}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let i=0;i<e.length;i++){const r=e[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const e=r,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}const a=r;switch(a.type){case"space":n+=this.renderer.space(a);continue;case"hr":n+=this.renderer.hr(a);continue;case"heading":n+=this.renderer.heading(a);continue;case"code":n+=this.renderer.code(a);continue;case"table":n+=this.renderer.table(a);continue;case"blockquote":n+=this.renderer.blockquote(a);continue;case"list":n+=this.renderer.list(a);continue;case"html":n+=this.renderer.html(a);continue;case"paragraph":n+=this.renderer.paragraph(a);continue;case"text":{let r=a,s=this.renderer.text(r);for(;i+1<e.length&&"text"===e[i+1].type;)r=e[++i],s+="\n"+this.renderer.text(r);n+=t?this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s}]}):s;continue}default:{const e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t){t=t||this.renderer;let n="";for(let i=0;i<e.length;i++){const r=e[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){n+=e||"";continue}}const a=r;switch(a.type){case"escape":case"text":n+=t.text(a);break;case"html":n+=t.html(a);break;case"link":n+=t.link(a);break;case"image":n+=t.image(a);break;case"strong":n+=t.strong(a);break;case"em":n+=t.em(a);break;case"codespan":n+=t.codespan(a);break;case"br":n+=t.br(a);break;case"del":n+=t.del(a);break;default:{const e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}};H(Zg,"_Parser");let Xg=Zg;const Qg=class{constructor(e){U(this,"options"),U(this,"block"),this.options=e||Um}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?zg.lex:zg.lexInline}provideParser(){return this.block?Xg.parse:Xg.parseInline}};H(Qg,"_Hooks"),U(Qg,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));let Jg=Qg;const ey=class{constructor(...e){U(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),U(this,"options",this.setOptions),U(this,"parse",this.parseMarkdown(!0)),U(this,"parseInline",this.parseMarkdown(!1)),U(this,"Parser",Xg),U(this,"Renderer",Gg),U(this,"TextRenderer",Yg),U(this,"Lexer",zg),U(this,"Tokenizer",og),U(this,"Hooks",Jg),this.use(...e)}walkTokens(e,t){var n,i;let r=[];for(const a of e)switch(r=r.concat(t.call(this,a)),a.type){case"table":{const e=a;for(const n of e.header)r=r.concat(this.walkTokens(n.tokens,t));for(const n of e.rows)for(const e of n)r=r.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=a;r=r.concat(this.walkTokens(e.items,t));break}default:{const e=a;(null==(i=null==(n=this.defaults.extensions)?void 0:n.childTokens)?void 0:i[e.type])?this.defaults.extensions.childTokens[e.type].forEach((n=>{const i=e[n].flat(1/0);r=r.concat(this.walkTokens(i,t))})):e.tokens&&(r=r.concat(this.walkTokens(e.tokens,t)))}}return r}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const n=F({},e);if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let i=e.renderer.apply(this,t);return!1===i&&(i=n.apply(this,t)),i}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer){const t=this.defaults.renderer||new Gg(this.defaults);for(const n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;const i=n,r=e.renderer[i],a=t[i];t[i]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=a.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new og(this.defaults);for(const n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const i=n,r=e.tokenizer[i],a=t[i];t[i]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new Jg;for(const n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;const i=n,r=e.hooks[i],a=t[i];Jg.passThroughHooks.has(n)?t[i]=e=>{if(this.defaults.async)return Promise.resolve(r.call(t,e)).then((e=>a.call(t,e)));const n=r.call(t,e);return a.call(t,n)}:t[i]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,i=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(i.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults=F(F({},this.defaults),n)})),this}setOptions(e){return this.defaults=F(F({},this.defaults),e),this}lexer(e,t){return zg.lex(e,null!=t?t:this.defaults)}parser(e,t){return Xg.parse(e,null!=t?t:this.defaults)}parseMarkdown(e){return H(((t,n)=>{const i=F({},n),r=F(F({},this.defaults),i),a=this.onError(!!r.silent,!!r.async);if(!0===this.defaults.async&&!1===i.async)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==t)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));r.hooks&&(r.hooks.options=r,r.hooks.block=e);const s=r.hooks?r.hooks.provideLexer():e?zg.lex:zg.lexInline,o=r.hooks?r.hooks.provideParser():e?Xg.parse:Xg.parseInline;if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(t):t).then((e=>s(e,r))).then((e=>r.hooks?r.hooks.processAllTokens(e):e)).then((e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then((()=>e)):e)).then((e=>o(e,r))).then((e=>r.hooks?r.hooks.postprocess(e):e)).catch(a);try{r.hooks&&(t=r.hooks.preprocess(t));let e=s(t,r);r.hooks&&(e=r.hooks.processAllTokens(e)),r.walkTokens&&this.walkTokens(e,r.walkTokens);let n=o(e,r);return r.hooks&&(n=r.hooks.postprocess(n)),n}catch(tvt){return a(tvt)}}),"parse")}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+Zm(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};H(ey,"Marked");const ty=new ey;function ny(e,t){return ty.parse(e,t)}
51function iy(e){var t=[].slice.call(arguments,1);return function(){return t.reduce((function(e,t){return t(e)}),e.apply(null,arguments))}}H(ny,"marked"),ny.options=ny.setOptions=function(e){return ty.setOptions(e),ny.defaults=ty.defaults,Vm(ny.defaults),ny},ny.getDefaults=jm,ny.defaults=Um,ny.use=function(...e){return ty.use(...e),ny.defaults=ty.defaults,Vm(ny.defaults),ny},ny.walkTokens=function(e,t){return ty.walkTokens(e,t)},ny.parseInline=ty.parseInline,ny.Parser=Xg,ny.parser=Xg.parse,ny.Renderer=Gg,ny.TextRenderer=Yg,ny.Lexer=zg,ny.lexer=zg.lex,ny.Tokenizer=og,ny.Hooks=Jg,ny.parse=ny,ny.options,ny.setOptions,ny.use,ny.walkTokens,ny.parseInline,Xg.parse,zg.lex,H(iy,"pipe");var ry=H((function(e){return String.prototype.normalize?e.normalize("NFKD").replace(/[\u0300-\u036F]/g,""):e}),"normalizeDiacritics"),ay=H((function(e){return Array.isArray(e)?e:[e]}),"resolveToArray");function sy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return ay(e).reduce((function(e,n,i){return e+t[i-1]+n})).replace(/\s+/g," ").trim()}H(sy,"normalizeWhiteSpaces");var oy=iy(H((function(e){return Array.isArray(e)?e.join(" "):e}),"resolveToText"),ry,sy,H((function(e){return e.toLocaleLowerCase()}),"transformToLowerCase"));function ly(e){return{all:e=e||new Map,on:H((function(t,n){var i=e.get(t);i?i.push(n):e.set(t,[n])}),"on"),off:H((function(t,n){var i=e.get(t);i&&(n?i.splice(i.indexOf(n)>>>0,1):e.set(t,[]))}),"off"),emit:H((function(t,n){var i=e.get(t);i&&i.slice().map((function(e){e(n)})),(i=e.get("*"))&&i.slice().map((function(e){e(t,n)}))}),"emit")}}H(ly,"X1"); 52 /*! 53 * tabbable 6.2.0 54 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 55 */ 56 var uy=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],cy=uy.join(","),dy="undefined"==typeof Element,py=dy?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,hy=!dy&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},fy=H((function e(t,n){var i;void 0===n&&(n=!0);var r=null==t||null===(i=t.getAttribute)||void 0===i?void 0:i.call(t,"inert");return""===r||"true"===r||n&&t&&e(t.parentNode)}),"isInert"),my=H((function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}),"isContentEditable"),gy=H((function(e,t,n){if(fy(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(cy));return t&&py.call(e,cy)&&i.unshift(e),i=i.filter(n)}),"getCandidates"),yy=H((function e(t,n,i){for(var r=[],a=Array.from(t);a.length;){var s=a.shift();if(!fy(s,!1))if("SLOT"===s.tagName){var o=s.assignedElements(),l=e(o.length?o:s.children,!0,i);
56i.flatten?r.push.apply(r,l):r.push({scopeParent:s,candidates:l})}else{py.call(s,cy)&&i.filter(s)&&(n||!t.includes(s))&&r.push(s);var u=s.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(s),c=!fy(u,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(s));if(u&&c){var d=e(!0===u?s.children:u.children,!0,i);i.flatten?r.push.apply(r,d):r.push({scopeParent:s,candidates:d})}else a.unshift.apply(a,s.children)}}return r}),"getCandidatesIteratively"),vy=H((function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))}),"hasTabIndex"),by=H((function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||my(e))&&!vy(e)?0:e.tabIndex}),"getTabIndex"),_y=H((function(e,t){var n=by(e);return n<0&&t&&!vy(e)?0:n}),"getSortOrderTabIndex"),wy=H((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}),"sortOrderedTabbables"),Sy=H((function(e){return"INPUT"===e.tagName}),"isInput"),Cy=H((function(e){return Sy(e)&&"hidden"===e.type}),"isHiddenInput"),ky=H((function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}),"isDetailsWithSummary"),xy=H((function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}),"getCheckedRadio"),Ty=H((function(e){if(!e.name)return!0;var t,n=e.form||hy(e),i=H((function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')}),"queryRadios");if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var r=xy(t,e.form);return!r||r===e}),"isTabbableRadio"),Ey=H((function(e){return Sy(e)&&"radio"===e.type}),"isRadio"),Ay=H((function(e){return Ey(e)&&!Ty(e)}),"isNonTabbableRadio"),Ly=H((function(e){var t,n,i,r,a=e&&hy(e),s=null===(t=a)||void 0===t?void 0:t.host,o=!1;if(a&&a!==e)for(o=!!(null!==(n=s)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(s)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!o&&s;){var l,u,c;o=!(null===(u=s=null===(l=a=hy(s))||void 0===l?void 0:l.host)||void 0===u||null===(c=u.ownerDocument)||void 0===c||!c.contains(s))}return o}),"isNodeAttached"),Iy=H((function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i}),"isZeroArea"),$y=H((function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var r=py.call(e,"details>summary:first-of-type")?e.parentElement:e;if(py.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Iy(e)}else{if("function"==typeof i){for(var a=e;e;){var s=e.parentElement,o=hy(e);if(s&&!s.shadowRoot&&!0===i(s))return Iy(e);e=e.assignedSlot?e.assignedSlot:s||o===e.ownerDocument?s:o.host}e=a}if(Ly(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}),"isHidden"),Dy=H((function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!py.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}),"isDisabledFromFieldset"),Py=H((function(e,t){return!(t.disabled||fy(t)||Cy(t)||$y(t,e)||ky(t)||Dy(t))}),"isNodeMatchingSelectorFocusable"),Oy=H((function(e,t){return!(Ay(t)||by(t)<0||!Py(e,t))}),"isNodeMatchingSelectorTabbable"),My=H((function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)}),"isValidShadowRootTabbable"),Ry=H((function e(t){var n=[],i=[];return t.forEach((function(t,r){var a=!!t.scopeParent,s=a?t.scopeParent:t,o=_y(s,a),l=a?e(t.candidates):s;0===o?a?n.push.apply(n,l):n.push(s):i.push({documentOrder:r,tabIndex:o,item:t,isScope:a,content:l})})),i.sort(wy).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)}),"sortByOrder"),Ny=H((function(e,t){var n;return n=(t=t||{}).getShadowRoot?yy([e],t.includeContainer,{filter:Oy.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:My}):gy(e,t.includeContainer,Oy.bind(null,t)),Ry(n)}),"tabbable"),Fy=H((function(e,t){return(t=t||{}).getShadowRoot?yy([e],t.includeContainer,{filter:Py.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):gy(e,t.includeContainer,Py.bind(null,t))}),"focusable"),By=H((function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==py.call(e,cy)&&Oy(t,e)}),"isTabbable"),Hy=uy.concat("iframe").join(","),jy=H((function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==py.call(e,Hy)&&Py(t,e)}),"isFocusable"); 57 /*! 58 * focus-trap 7.5.4 59 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE 60 */ 61 function Uy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Vy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
61t%2?Uy(Object(n),!0).forEach((function(t){qy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qy(e,t,n){return(t=Wy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zy(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Wy(e){var t=zy(e,"string");return"symbol"==typeof t?t:String(t)}H(Uy,"ownKeys"),H(Vy,"_objectSpread2"),H(qy,"_defineProperty"),H(zy,"_toPrimitive"),H(Wy,"_toPropertyKey");var Gy={activateTrap:H((function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)}),"activateTrap"),deactivateTrap:H((function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}),"deactivateTrap")},Ky=H((function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}),"isSelectableInput"),Yy=H((function(e){return"Escape"===(null==e?void 0:e.key)||"Esc"===(null==e?void 0:e.key)||27===(null==e?void 0:e.keyCode)}),"isEscapeEvent"),Zy=H((function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)}),"isTabEvent"),Xy=H((function(e){return Zy(e)&&!e.shiftKey}),"isKeyForward"),Qy=H((function(e){return Zy(e)&&e.shiftKey}),"isKeyBackward"),Jy=H((function(e){return setTimeout(e,0)}),"delay"),ev=H((function(e,t){var n=-1;return e.every((function(e,i){return!t(e)||(n=i,!1)})),n}),"findIndex"),tv=H((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return"function"==typeof e?e.apply(void 0,n):e}),"valueOrHandler"),nv=H((function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target}),"getActualTarget"),iv=[],rv=H((function(e,t){var n,i=(null==t?void 0:t.document)||document,r=(null==t?void 0:t.trapStack)||iv,a=Vy({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Xy,isKeyBackward:Qy},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o=H((function(e,t,n){return e&&void 0!==e[t]?e[t]:a[n||t]}),"getOption"),l=H((function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return s.containerGroups.findIndex((function(t){var i=t.container,r=t.tabbableNodes;return i.contains(e)||(null==n?void 0:n.includes(i))||r.find((function(t){return t===e}))}))}),"findContainerIndex"),u=H((function(e){var t=a[e];if("function"==typeof t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];t=t.apply(void 0,r)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var o=t;if("string"==typeof t&&!(o=i.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return o}
61),"getNodeForOption"),c=H((function(){var e=u("initialFocus");if(!1===e)return!1;if(void 0===e||!jy(e,a.tabbableOptions))if(l(i.activeElement)>=0)e=i.activeElement;else{var t=s.tabbableGroups[0];e=t&&t.firstTabbableNode||u("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e}),"getInitialFocusNode"),d=H((function(){if(s.containerGroups=s.containers.map((function(e){var t=Ny(e,a.tabbableOptions),n=Fy(e,a.tabbableOptions),i=t.length>0?t[0]:void 0,r=t.length>0?t[t.length-1]:void 0,s=n.find((function(e){return By(e)})),o=n.slice().reverse().find((function(e){return By(e)})),l=!!t.find((function(e){return by(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:r,firstDomTabbableNode:s,lastDomTabbableNode:o,nextTabbableNode:H((function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.indexOf(e);return r<0?i?n.slice(n.indexOf(e)+1).find((function(e){return By(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return By(e)})):t[r+(i?1:-1)]}),"nextTabbableNode")}})),s.tabbableGroups=s.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),s.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find((function(e){return e.posTabIndexesFound}))&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}),"updateTabbableNodes"),p=H((function e(t){var n=t.activeElement;if(n)return n.shadowRoot&&null!==n.shadowRoot.activeElement?e(n.shadowRoot):n}),"getActiveElement"),h=H((function e(t){!1!==t&&t!==p(document)&&(t&&t.focus?(t.focus({preventScroll:!!a.preventScroll}),s.mostRecentlyFocusedNode=t,Ky(t)&&t.select()):e(c()))}),"tryFocus"),f=H((function(e){var t=u("setReturnFocus",e);return t||!1!==t&&e}),"getReturnFocusNode"),m=H((function(e){var t=e.target,n=e.event,i=e.isBackward,r=void 0!==i&&i;t=t||nv(n),d();var o=null;if(s.tabbableGroups.length>0){var c=l(t,n),p=c>=0?s.containerGroups[c]:void 0;if(c<0)o=r?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(r){var h=ev(s.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(h<0&&(p.container===t||jy(t,a.tabbableOptions)&&!By(t,a.tabbableOptions)&&!p.nextTabbableNode(t,!1))&&(h=c),h>=0){var f=0===h?s.tabbableGroups.length-1:h-1,m=s.tabbableGroups[f];o=by(t)>=0?m.lastTabbableNode:m.lastDomTabbableNode}else Zy(n)||(o=p.nextTabbableNode(t,!1))}else{var g=ev(s.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(g<0&&(p.container===t||jy(t,a.tabbableOptions)&&!By(t,a.tabbableOptions)&&!p.nextTabbableNode(t))&&(g=c),g>=0){var y=g===s.tabbableGroups.length-1?0:g+1,v=s.tabbableGroups[y];o=by(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else Zy(n)||(o=p.nextTabbableNode(t))}}else o=u("fallbackFocus");return o}),"findNextNavNode"),g=H((function(e){var t=nv(e);l(t,e)>=0||(tv(a.clickOutsideDeactivates,e)?n.deactivate({returnFocus:a.returnFocusOnDeactivate}):tv(a.allowOutsideClick,e)||e.preventDefault())}),"checkPointerDown"),y=H((function(e){var t=nv(e),n=l(t,e)>=0;if(n||t instanceof Document)n&&(s.mostRecentlyFocusedNode=t);else{var i;e.stopImmediatePropagation();var r=!0;if(s.mostRecentlyFocusedNode)if(by(s.mostRecentlyFocusedNode)>0){var o=l(s.mostRecentlyFocusedNode),u=s.containerGroups[o].tabbableNodes;if(u.length>0){var d=u.findIndex((function(e){return e===s.mostRecentlyFocusedNode}));d>=0&&(a.isKeyForward(s.recentNavEvent)?d+1<u.length&&(i=u[d+1],r=!1):d-1>=0&&(i=u[d-1],r=!1))}}else s.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return by(e)>0}))}))||(r=!1);else r=!1;r&&(i=m({target:s.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(s.recentNavEvent)})),h(i||(s.mostRecentlyFocusedNode||c()))}s.recentNavEvent=void 0}),"checkFocusIn"),v=H((function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s.recentNavEvent=e;var n=m({event:e,isBackward:t});n&&(Zy(e)&&e.preventDefault(),h(n))}),"checkKeyNav"),b=H((function(e){if(Yy(e)&&!1!==tv(a.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(a.isKeyForward(e)||a.isKeyBackward(e))&&v(e,a.isKeyBackward(e))}),"checkKey"),_=H((function(e){var t=nv(e);l(t,e)>=0||tv(a.clickOutsideDeactivates,e)||tv(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}),"checkClick"),w=H((function(){if(s.active)return Gy.activateTrap(r,n),s.delayInitialFocusTimer=a.delayInitialFocus?Jy((function(){h(c())})):h(c()),i.addEventListener("focusin",y,!0),i.addEventListener("mousedown",g,{capture:!0,passive:!1}),i.addEventListener("touchstart",g,{capture:!0,passive:!1}),i.addEventListener("click",_,{capture:!0,passive:!1}),i.addEventListener("keydown",b,{capture:!0,passive:!1}),n}),"addListeners"),S=H((function(){if(s.active)return i.removeEventListener("focusin",y,!0),i.removeEventListener("mousedown",g,!0),i.removeEventListener("touchstart",g,!0),i.removeEventListener("click",_,!0),i.removeEventListener("keydown",b,!0),n}),"removeListeners"),C="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(H((function(e){e.some((function(e){return Array.from(e.removedNodes
61).some((function(e){return e===s.mostRecentlyFocusedNode}))}))&&h(c())}),"checkDomRemoval")):void 0,k=H((function(){C&&(C.disconnect(),s.active&&!s.paused&&s.containers.map((function(e){C.observe(e,{subtree:!0,childList:!0})})))}),"updateObservedNodes");return(n={get active(){return s.active},get paused(){return s.paused},activate:H((function(e){if(s.active)return this;var t=o(e,"onActivate"),n=o(e,"onPostActivate"),r=o(e,"checkCanFocusTrap");r||d(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=i.activeElement,null==t||t();var a=H((function(){r&&d(),w(),k(),null==n||n()}),"finishActivation");return r?(r(s.containers.concat()).then(a,a),this):(a(),this)}),"activate"),deactivate:H((function(e){if(!s.active)return this;var t=Vy({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,S(),s.active=!1,s.paused=!1,k(),Gy.deactivateTrap(r,n);var i=o(t,"onDeactivate"),l=o(t,"onPostDeactivate"),u=o(t,"checkCanReturnFocus"),c=o(t,"returnFocus","returnFocusOnDeactivate");null==i||i();var d=H((function(){Jy((function(){c&&h(f(s.nodeFocusedBeforeActivation)),null==l||l()}))}),"finishDeactivation");return c&&u?(u(f(s.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)}),"deactivate"),pause:H((function(e){if(s.paused||!s.active)return this;var t=o(e,"onPause"),n=o(e,"onPostPause");return s.paused=!0,null==t||t(),S(),k(),null==n||n(),this}),"pause"),unpause:H((function(e){if(!s.paused||!s.active)return this;var t=o(e,"onUnpause"),n=o(e,"onPostUnpause");return s.paused=!1,null==t||t(),d(),w(),k(),null==n||n(),this}),"unpause"),updateContainerElements:H((function(e){var t=[].concat(e).filter(
61Boolean);return s.containers=t.map((function(e){return"string"==typeof e?i.querySelector(e):e})),s.active&&d(),k(),this}),"updateContainerElements")}).updateContainerElements(e),n}),"createFocusTrap"); 62 /*! 63 * focus-trap-vue v4.0.2 64 * (c) 2023 Eduardo San Martin Morote 65 * @license MIT 66 */ 67 function av(e){return e}H(av,"defineFocusTrapProps");const sv={escapeDeactivates:{type:Boolean,default:!0},returnFocusOnDeactivate:{type:Boolean,default:!0},allowOutsideClick:{type:[Boolean,Function],default:!0},clickOutsideDeactivates:[Boolean,Function],initialFocus:[String,Function,Boolean],fallbackFocus:[String,Function],checkCanFocusTrap:Function,checkCanReturnFocus:Function,delayInitialFocus:{type:Boolean,default:!0},document:Object,preventScroll:Boolean,setReturnFocus:[Object,String,Boolean,Function],tabbableOptions:Object},ov=vr({props:Object.assign({active:{type:Boolean,default:!0}},sv),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(e,{slots:t,emit:n}){let i;const r=Tn(null),a=Co((()=>{const e=r.value;return e&&(e instanceof HTMLElement?e:e.$el)}));function s(){return i||(i=rv(a.value,{escapeDeactivates:e.escapeDeactivates,allowOutsideClick:e.allowOutsideClick,returnFocusOnDeactivate:e.returnFocusOnDeactivate,clickOutsideDeactivates:e.clickOutsideDeactivates,onActivate:H((()=>{n("update:active",!0),n("activate")}),"onActivate"),onDeactivate:H((()=>{n("update:active",!1),n("deactivate")}),"onDeactivate"),onPostActivate:H((()=>n("postActivate")),"onPostActivate"),onPostDeactivate:H((()=>n("postDeactivate")),"onPostDeactivate"),initialFocus:e.initialFocus,fallbackFocus:e.fallbackFocus,tabbableOptions:e.tabbableOptions,delayInitialFocus:e.delayInitialFocus,preventScroll:e.preventScroll}))}return H(s,"ensureTrap"),Br((()=>{Bi((()=>e.active),(e=>{e&&a.value?s().activate():i&&(i.deactivate(),a.value&&a.value.nodeType!==Node.COMMENT_NODE||(i=null))}),{immediate:!0,flush:"post"})})),Vr((()=>{i&&i.deactivate(),i=null})),{activate(){s().activate()},deactivate(){i&&i.deactivate()},renderImpl(){if(!t.default)return null;const e=t.default().filter((e=>e.type!==ks));if(!e||!e.length||e.length>1)return console.error("[focus-trap-vue]: FocusTrap requires exactly one child."),e;return Vs(e[0],{ref:r})}}}});var lv,uv,cv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function dv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pv(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=H((function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)}),"a");n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:H((function(){return e[t]}),"get")})})),n}function hv(){return uv?lv:(uv=1,e="undefined"!=typeof window?window:void 0!==cv?cv:"undefined"!=typeof self?self:{},lv=e);var e}H(dv,"getDefaultExportFromCjs"),H(pv,"getAugmentedNamespace"),H(hv,"requireWindow");const fv=dv(hv()),mv=pv(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var gv,yv;function vv(){if(yv)return gv;yv=1;var e,t=void 0!==cv?cv:"undefined"!=typeof window?window:{},n=mv;return"undefined"!=typeof document?e=document:(e=t["__GLOBAL_DOCUMENT_CACHE@4"])||(e=t["__GLOBAL_DOCUMENT_CACHE@4"]=n),gv=e}H(vv,"requireDocument");const bv=dv(vv());var _v,wv={exports:{}};function Sv(){return _v||(_v=1,function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return s[e];var n,a=String(e);return(n=i[a.toLowerCase()])?n:(n=r[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}H(n,"keyCode"),n.isEventKey=H((function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var a;if(a=i[t.toLowerCase()])return a===n;if(a=r[t.toLowerCase()])return a===n}else if("number"==typeof t)return t===n;return!1}}),"isEventKey");
67var i=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"â§":16,"â¥":18,"â":17,"â":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91}; 68 /*! 69 * Programatically add the following 70 */ 71 for(a=97;a<123;a++)i[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)i[a-48]=a;for(a=1;a<13;a++)i["f"+a]=a+111;for(a=0;a<10;a++)i["numpad "+a]=a+96;var s=t.names=t.title={};for(a in i)s[i[a]]=a;for(var o in r)i[o]=r[o]}(wv,wv.exports)),wv.exports}H(Sv,"requireKeycode");const Cv=dv(Sv());var kv,xv;function Tv(){if(xv)return kv;function e(e,t){var n,i=null;try{n=JSON.parse(e,t)}catch(r){i=r}return[i,n]}return xv=1,kv=e,H(e,"SafeParseTuple"),kv}H(Tv,"requireTuple");const Ev=dv(Tv());var Av,Lv,Iv,$v,Dv,Pv,Ov={exports:{}},Mv={exports:{}};function Rv(){return Av||(Av=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}H(t,"_extends"),e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Mv)),Mv.exports}function Nv(){if(Iv)return Lv;Iv=1,Lv=t;var e=Object.prototype.toString;function t(t){if(!t)return!1;var n=e.call(t);return"[object Function]"===n||"function"==typeof t&&"[object RegExp]"!==n||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)}return H(t,"isFunction"),Lv}function Fv(){if(Dv)return $v;Dv=1;var e=hv(),t=H((function(t,i){return void 0===i&&(i=!1),function(r,a,s){if(r)t(r);else if(a.statusCode>=400&&a.statusCode<=599){var o=s;if(i)if(e.TextDecoder){var l=n(a.headers&&a.headers["content-type"]);try{o=new TextDecoder(l).decode(s)}catch(tvt){}}else o=String.fromCharCode.apply(null,new Uint8Array(s));t({cause:o})}else t(null,s)}}),"httpResponseHandler");function n(e){return void 0===e&&(e=""),e.toLowerCase().split(";").reduce((function(e,t){var n=t.split("="),i=n[0],r=n[1];return"charset"===i.trim()?r.trim():e}),"utf-8")}return H(n,"getCharset"),$v=t}function Bv(){if(Pv)return Ov.exports;Pv=1;var e=hv(),t=Rv(),n=Nv();o.httpHandler=Fv(); 72 /** 73 * @license 74 * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/> 75 * Copyright (c) 2014 David Björklund 76 * Available under the MIT license 77 * <https://github.com/kesla/parse-headers/blob/master/LICENCE> 78 */ 79 var i=H((function(e){var t={};return e?(e.trim().split("\n").forEach((function(e){var n=e.indexOf(":"),i=e.slice(0,n).trim().toLowerCase(),r=e.slice(n+1).trim();void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]})),t):t}),"parseHeaders");function r(e,t){for(var n=0;n<e.length;n++)t(e[n])}function a(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function s(e,i,r){var a=e;return n(i)?(r=i,"string"==typeof e&&(a={uri:e})):a=t({},i,{uri:e}),a.callback=r,a}function o(e,t,n){return l(t=s(e,t,n))}function l(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=H((function(n,i,r){t||(t=!0,e.callback(n,i,r))}),"cbOnce");function r(){4===h.readyState&&setTimeout(c,0)}function s(){var e=void 0;if(e=h.response?h.response:h.responseText||u(h),_)try{e=JSON.parse(e)}catch(tvt){}return e}function l(e){return clearTimeout(f),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,w)}function c(){if(!p){var t;clearTimeout(f),t=e.useXDR&&void 0===h.status?200:1223===h.status?204:h.status;var r=w,a=null;return 0!==t?(r={body:s(),statusCode:t,method:g,headers:{},url:m,rawRequest:h},h.getAllResponseHeaders&&(r.headers=i(h.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,r,r.body)}}H(r,"readystatechange"),H(s,"getBody"),H(l,"errorFunc"),H(c,"loadFunc");var d,p,h=e.xhr||null;h||(h=e.cors||e.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var f,m=h.url=e.uri||e.url,g=h.method=e.method||"GET",y=e.body||e.data,v=h.headers=e.headers||{},b=!!e.sync,_=!1,w={body:void 0,headers:{},statusCode:0,method:g,url:m,rawRequest:h};if("json"in e&&!1!==e.json&&(_=!0,v.accept||v.Accept||(v.Accept="application/json"),"GET"!==g&&"HEAD"!==g&&(v["content-type"]||v["Content-Type"]||(v["Content-Type"]="application/json"),y=JSON.stringify(!0===e.json?y:e.json))),h.onreadystatechange=r,h.onload=c,h.onerror=l,h.onprogress=function(){},h.onabort=function(){p=!0},h.ontimeout=l,h.open(g,m,!b,e.username,e.password),b||(h.withCredentials=!!e.withCredentials),!b&&e.timeout>0&&(f=setTimeout((function(){if(!p){p=!0,h.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",l(e)}}),e.timeout)),h.setRequestHeader)for(d in v)v.hasOwnProperty(d)&&h.setRequestHeader(d,v[d]);else if(e.headers&&!a(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(h.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(h),h.send(y||null),h}function u(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(tvt){}return null}function c(){}return Ov.exports=o,Ov.exports.default=o,o.XMLHttpRequest=e.XMLHttpRequest||c,o.XD
79omainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:e.XDomainRequest,r(["get","put","post","patch","head","delete"],(function(e){o["delete"===e?"del":e]=function(t,n,i){return(n=s(t,n,i)).method=e.toUpperCase(),l(n)}})),H(r,"forEachArray"),H(a,"isEmpty"),H(s,"initParams"),H(o,"createXHR"),H(l,"_createXHR"),H(u,"getXml"),H(c,"noop"),Ov.exports}H(Rv,"require_extends"),H(Nv,"requireIsFunction"),H(Fv,"requireHttpHandler"),H(Bv,"requireLib$2");const Hv=dv(Bv());var jv,Uv,Vv,qv,zv,Wv,Gv,Kv={exports:{}};function Yv(){if(Uv)return jv;Uv=1;var e=vv(),t=Object.create||function(){function e(){}return H(e,"F"),function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function n(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function i(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+(0|i)/1e3}H(t,"computeSeconds");var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function r(){this.values=t(null)}function a(e,t,n,i){var r=i?e.split(i):[e];for(var a in r)if("string"==typeof r[a]){var s=r[a].split(n);if(2===s.length)t(s[0].trim(),s[1].trim())}}function s(e,t,s){var o=e;function l(){var t=i(e);if(null===t)throw new n(n.Errors.BadTimeStamp,"Malformed timestamp: "+o);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function u(e,t){var n=new r;a(e,(function(e,t){switch(e){case"region":for(var i=s.length-1;i>=0;i--)if(s[i].id===t){n.set(e,s[i].region);break}break;case"vertical":n.alt(e,t,["rl","lr"]);break;case"line":var r=t.split(","),a=r[0];n.integer(e,a),n.percent(e,a)&&n.set("snapToLines",!1),n.alt(e,a,["auto"]),2===r.length&&n.alt("lineAlign",r[1],["start","center","end"]);break;case"position":r=t.split(","),n.percent(e,r[0]),2===r.length&&n.alt("positionAlign",r[1],["start","center","end"]);break;case"size":n.percent(e,t);break;case"align":n.alt(e,t,["start","center","end","left","right"])}}),/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical","");try{t.line=n.get("line","auto")}catch(tvt){}t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100);try{t.align=n.get("align","center")}catch(tvt){t.align=n.get("align","middle")}try{t.position=n.get("position","auto")}catch(tvt){t.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}function c(){e=e.replace(/^\s+/,"")}if(H(l,"consumeTimeStamp"),H(u,"consumeCueSettings"),H(c,"skipWhitespace"),c(),t.startTime=l(),c(),"--\x3e"!==e.substr(0,3))throw new n(n.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+o);e=e.substr(3),c(),t.endTime=l(),c(),u(e,t)}H(n,"ParsingError"),n.prototype=t(Error.prototype),n.prototype.constructor=n,n.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},H(i,"parseTimeStamp"),H(r,"Settings"),r.prototype={set:H((function(e,t){this.get(e)||""===t||(this.values[e]=t)}),"set"),get:H((function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t}),"get"),has:H((function(e){return e in this.values}),"has"),alt:H((function(e,t,n){for(var i=0;i<n.length;++i)if(t===n[i]){this.set(e,t);break}}),"alt"),integer:H((function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}),"integer"),percent:H((function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}),"percent")},H(a,"parseOptions"),H(s,"parseCue");var o=e.createElement&&e.createElement("textarea"),l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},u={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},c={v:"title",lang:"lang"},d={rt:"ruby"};function p(e,t){function n(){if(!t)return null;function e(e){return t=t.substr(e.length),e}H(e,"consume");var n=t.match(/^([^<]*)(<[^>
79]*>?)?/);return e(n[1]?n[1]:n[2])}function r(e){return o.innerHTML=e,e=o.textContent,o.textContent="",e}function a(e,t){return!d[t.localName]||d[t.localName]===e.localName}function s(t,n){var i=l[t];if(!i)return null;var r=e.document.createElement(i),a=c[t];return a&&n&&(r[a]=n.trim()),r}H(n,"nextToken"),H(r,"unescape"),H(a,"shouldAdd"),H(s,"createElement");for(var p,h=e.document.createElement("div"),f=h,m=[];null!==(p=n());)if("<"!==p[0])f.appendChild(e.document.createTextNode(r(p)));else{if("/"===p[1]){m.length&&m[m.length-1]===p.substr(2).replace(">","")&&(m.pop(),f=f.parentNode);continue}var g,y=i(p.substr(1,p.length-2));if(y){g=e.document.createProcessingInstruction("timestamp",y),f.appendChild(g);continue}var v=p.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(!(g=s(v[1],v[3])))continue;if(!a(f,g))continue;if(v[2]){var b=v[2].split(".");b.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(u.hasOwnProperty(n)){var i=t?"background-color":"color",r=u[n];g.style[i]=r}})),g.className=b.join(" ")}m.push(v[1]),f.appendChild(g),f=g}return h}H(p,"parseContent");var h=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function f(e){for(var t=0;t<h.length;t++){var n=h[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function m(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function i(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function r(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var a=n.match(/^.*(\n|\r)/);return a?(e.length=0,a[0]):n}return"ruby"===t.tagName?r(e):t.childNodes?(i(e,t),r(e)):void 0}for(H(i,"pushNodes"),H(r,"nextTextNode"),i(t,e);n=r(t);)for(var a=0;a<n.length;a++)if(f(n.charCodeAt(a)))return"rtl";return"ltr"}function g(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,i=0,r=0;r<n.length&&n[r]!==t;r++)"showing"===n[r].mode&&i++;return-1*++i}function y(){}function v(e,t,n){y.call(this),this.cue=t,this.cueDiv=p(e,t.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={direction:m(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":case"line-left":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":case"line-right":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")}
79)}}function b(e){var t,n,i,r;if(e.div){n=e.div.offsetHeight,i=e.div.offsetWidth,r=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||n,this.bottom=e.bottom||r+(e.height||n),this.width=e.width||i,this.lineHeight=void 0!==t?t:e.lineHeight}function _(e,t,n,i){function r(e,t){for(var r,a=new b(e),s=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(n,t[o])||e.within(n)&&e.overlapsAny(i);)e.move(t[o]);if(e.within(n))return e;var l=e.intersectPercentage(n);s>l&&(r=new b(e),s=l),e=new b(a)}return r||a}H(r,"findBestPosition");var a=new b(t),s=t.cue,o=g(s),l=[];if(s.snapToLines){var u;switch(s.vertical){case"":l=["+y","-y"],u="height";break;case"rl":l=["+x","-x"],u="width";break;case"lr":l=["-x","+x"],u="width"}var c=a.lineHeight,d=c*Math.round(o),p=n[u]+c,h=l[0];Math.abs(d)>p&&(d=d<0?-1:1,d*=Math.ceil(p/c)*c),o<0&&(d+=""===s.vertical?n.height:n.width,l=l.reverse()),a.move(h,d)}else{var f=a.lineHeight/n.height*100;switch(s.lineAlign){case"center":o-=f/2;break;case"end":o-=f}switch(s.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")})}l=["+y","-x","+x","-y"],a=new b(t)}var m=r(a,l);t.move(m.toCSSCompatValues(n))}function w(){}H(f,"isStrongRTLChar"),H(m,"determineBidi"),H(g,"computeLinePos"),H(y,"StyleBox"),y.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},y.prototype.formatStyle=function(e,t){return 0===e?0:e+t},H(v,"CueStyleBox"),v.prototype=t(y.prototype),v.prototype.constructor=v,H(b,"BoxPosition"),b.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},b.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},b.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},b.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},b.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},b.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},b.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},b.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n}},H(_,"moveBoxToLinePosition"),H(w,"WebVTT"),w.StringDecoder=function(){return{decode:H((function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}),"decode")}},w.convertCueToDOMTree=function(e,t){return e&&t?p(e,t):null};return w.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=e.document.createElement("div");function r(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin="1.5%",n.appendChild(i),H(r,"shouldCompute"),r(t)){var a=[],s=b.getSimpleBoxPosition(i),o={font:Math.round(.05*s.height*100)/100+"px sans-serif"};!function(){for(var n,r,l=0;l<t.length;l++)r=t[l],n=new v(e,r,o),i.appendChild(n.div),_(0,n,s,a),r.displayState=n.div,a.push(b.getSimpleBoxPosition(n))}()}else for(var l=0;l<t.length;l++)i.appendChild(t[l].displayState)},w.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},w.Parser.prototype={reportOrThrowError:H((function(e){if(!(e instanceof n))throw e;this.onparsingerror&&this.onparsingerror(e)}),"reportOrThrowError"),parse:H((function(e){var t=this;function o(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var i=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),i}function l(e){var n=new r;if(a(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var a=new r;if(a.percent("x",i[0]),a.percent("y",i[1]),!a.has("x")||!a.has("y"))break;n.set(e+"X",a.get("x")),n.set(e+"Y",a.get("y"));break;case"scroll":n.alt(e,t,["up"])}}
79),/=/,/\s/),n.has("id")){var i=new(t.vttjs.VTTRegion||t.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),t.onregion&&t.onregion(i),t.regionList.push({id:n.get("id"),region:i})}}function u(e){var n=new r;a(e,(function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",i(t))}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}function c(e){e.match(/X-TIMESTAMP-MAP/)?a(e,(function(e,t){if("X-TIMESTAMP-MAP"===e)u(t)}),/=/):a(e,(function(e,t){if("Region"===e)l(t)}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0})),H(o,"collectNextLine"),H(l,"parseRegion"),H(u,"parseTimestampMap"),H(c,"parseHeader");try{var d;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var p=(d=o()).match(/^WEBVTT([ \t].*)?$/);if(!p||!p[0])throw new n(n.Errors.BadSignature);t.state="HEADER"}for(var h=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(h?h=!1:d=o(),t.state){case"HEADER":/:/.test(d)?c(d):d||(t.state="ID");continue;case"NOTE":d||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(d)){t.state="NOTE";break}if(!d)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(tvt){t.cue.align="middle"}if(t.state="CUE",-1===d.indexOf("--\x3e")){t.cue.id=d;continue}case"CUE":try{s(d,t.cue,t.regionList)}catch(tvt){t.reportOrThrowError(tvt),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var f=-1!==d.indexOf("--\x3e");if(!d||f&&(h=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=d.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":d||(t.state="ID");continue}}}catch(tvt){t.reportOrThrowError(tvt),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this}),"parse"),flush:H((function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new n(n.Errors.BadSignature)}catch(tvt){e.reportOrThrowError(tvt)}return e.onflush&&e.onflush(),this}),"flush")},jv=w}function Zv(){if(qv)return Vv;qv=1;var e={"":1,lr:1,rl:1},t={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function n(t){return"string"==typeof t&&(!!e[t.toLowerCase()]&&t.toLowerCase())}function i(e){return"string"==typeof e&&(!!t[e.toLowerCase()]&&e.toLowerCase())}function r(e,t,r){this.hasBeenReset=!1;var a="",s=!1,o=e,l=t,u=r,c=null,d="",p=!0,h="auto",f="start",m="auto",g="auto",y=100,v="center";Object.defineProperties(this,{id:{enumerable:!0,get:H((function(){return a}),"get"),set:H((function(e){a=""+e}),"set")},pauseOnExit:{enumerable:!0,get:H((function(){return s}),"get"),set:H((function(e){s=!!e}),"set")},startTime:{enumerable:!0,get:H((function(){return o}),"get"),set:H((function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");o=e,this.hasBeenReset=!0}),"set")},endTime:{enumerable:!0,get:H((function(){return l}),"get"),set:H((function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");l=e,this.hasBeenReset=!0}),"set")},text:{enumerable:!0,get:H((function(){return u}),"get"),set:H((function(e){u=""+e,this.hasBeenReset=!0}),"set")},region:{enumerable:!0,get:H((function(){return c}),"get"),set:H((function(e){c=e,this.hasBeenReset=!0}),"set")},vertical:{enumerable:!0,get:H((function(){return d}),"get"),set:H((function(e){var t=n(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");d=t,this.hasBeenReset=!0}),"set")},snapToLines:{enumerable:!0,get:H((function(){return p}),"get"),set:H((function(e){p=!!e,this.hasBeenReset=!0}),"set")},line:{enumerable:!0,get:H((function(){return h}),"get"),set:H((function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invali
79d number or illegal string was specified.");h=e,this.hasBeenReset=!0}),"set")},lineAlign:{enumerable:!0,get:H((function(){return f}),"get"),set:H((function(e){var t=i(e);t?(f=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}),"set")},position:{enumerable:!0,get:H((function(){return m}),"get"),set:H((function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");m=e,this.hasBeenReset=!0}),"set")},positionAlign:{enumerable:!0,get:H((function(){return g}),"get"),set:H((function(e){var t=i(e);t?(g=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}),"set")},size:{enumerable:!0,get:H((function(){return y}),"get"),set:H((function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}),"set")},align:{enumerable:!0,get:H((function(){return v}),"get"),set:H((function(e){var t=i(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");v=t,this.hasBeenReset=!0}),"set")}}),this.displayState=void 0}return H(n,"findDirectionSetting"),H(i,"findAlignSetting"),H(r,"VTTCue"),r.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},Vv=r}function Xv(){if(Wv)return zv;Wv=1;var e={"":!0,up:!0};function t(t){return"string"==typeof t&&(!!e[t.toLowerCase()]&&t.toLowerCase())}function n(e){return"number"==typeof e&&e>=0&&e<=100}function i(){var e=100,i=3,r=0,a=100,s=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:H((function(){return e}),"get"),set:H((function(t){if(!n(t))throw new Error("Width must be between 0 and 100.");e=t}),"set")},lines:{enumerable:!0,get:H((function(){return i}),"get"),set:H((function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");i=e}),"set")},regionAnchorY:{enumerable:!0,get:H((function(){return a}),"get"),set:H((function(e){if(!n(e))throw new Error("RegionAnchorX must be between 0 and 100.");a=e}),"set")},regionAnchorX:{enumerable:!0,get:H((function(){return r}),"get"),set:H((function(e){if(!n(e))throw new Error("RegionAnchorY must be between 0 and 100.");r=e}),"set")},viewportAnchorY:{enumerable:!0,get:H((function(){return o}),"get"),set:H((function(e){if(!n(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}),"set")},viewportAnchorX:{enumerable:!0,get:H((function(){return s}),"get"),set:H((function(e){if(!n(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}),"set")},scroll:{enumerable:!0,get:H((function(){return l}),"get"),set:H((function(e){var n=t(e);!1===n?console.warn("Scroll: an invalid or illegal string was specified."):l=n}),"set")}})}return H(t,"findScrollSetting"),H(n,"isValidPercentValue"),H(i,"VTTRegion"),zv=i}function Qv(){if(Gv)return Kv.exports;Gv=1;var e=hv(),t=Kv.exports={WebVTT:Yv(),VTTCue:Zv(),VTTRegion:Xv()};e.vttjs=t,e.WebVTT=t.WebVTT;var n=t.VTTCue,i=t.VTTRegion,r=e.VTTCue,a=e.VTTRegion;return t.shim=function(){e.VTTCue=n,e.VTTRegion=i},t.restore=function(){e.VTTCue=r,e.VTTRegion=a},e.VTTCue||t.shim(),Kv.exports}H(Yv,"requireVtt"),H(Zv,"requireVttcue"),H(Xv,"requireVttregion"),H(Qv,"requireBrowserIndex");const Jv=dv(Qv());function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},eb.apply(null,arguments)}H(eb,"_extends");var tb,nb={exports:{}};function ib(){return tb||(tb=1,e=nb,t=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,r=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:H((function(e,t,i){if(i=i||{},e=e.trim(),!(t=t.trim())){if(!i.alwaysNormalize)return e;var r=a.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=a.normalizePath(r.path),a.buildURLFromParts(r)}var s=a.parseURL(t);if(!s)throw new Error("Error trying to parse relative URL.");if(s.scheme)return i.alwaysNormalize?(s.path=a.normalizePath(s.path),a.buildURLFromParts(s)):t;var o=a.parseURL(e);if(!o)throw new Error("Error trying to parse base URL.");
79if(!o.netLoc&&o.path&&"/"!==o.path[0]){var l=n.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var u={scheme:o.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(u.netLoc=o.netLoc,"/"!==s.path[0]))if(s.path){var c=o.path,d=c.substring(0,c.lastIndexOf("/")+1)+s.path;u.path=a.normalizePath(d)}else u.path=o.path,s.params||(u.params=o.params,s.query||(u.query=o.query));return null===u.path&&(u.path=i.alwaysNormalize?a.normalizePath(s.path):s.path),a.buildURLFromParts(u)}),"buildAbsoluteURL"),parseURL:H((function(e){var n=t.exec(e);return n?{scheme:n[1]||"",netLoc:n[2]||"",path:n[3]||"",params:n[4]||"",query:n[5]||"",fragment:n[6]||""}:null}),"parseURL"),normalizePath:H((function(e){for(e=e.split("").reverse().join("").replace(i,"");e.length!==(e=e.replace(r,"")).length;);return e.split("").reverse().join("")}),"normalizePath"),buildURLFromParts:H((function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}),"buildURLFromParts")},e.exports=a),nb.exports;var e,t,n,i,r,a}H(ib,"requireUrlToolkit");const rb=dv(ib());var ab="http://example.com",sb=H((function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=fv.location&&fv.location.href||"");var n="function"==typeof fv.URL,i=/^\/\//.test(e),r=!fv.location&&!/\/\//i.test(e);if(n?e=new fv.URL(e,fv.location||ab):/\/\//i.test(e)||(e=rb.buildAbsoluteURL(fv.location&&fv.location.href||"",e)),n){var a=new URL(t,e);return r?a.href.slice(18):i?a.href.slice(a.protocol.length):a.href}return rb.buildAbsoluteURL(e,t)}),"resolveUrl"),ob=function(){function e(){this.listeners={}}H(e,"Stream");var t=e.prototype;return t.on=H((function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}),"on"),t.off=H((function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1}),"off"),t.trigger=H((function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,r)}),"trigger"),t.dispose=H((function(){this.listeners={}}),"dispose"),t.pipe=H((function(e){this.on("data",(function(t){e.push(t)}))}),"pipe"),e}(),lb=H((function(e){return fv.atob?fv.atob(e):Buffer.from(e,"base64").toString("binary")}),"atob");function ub(e){for(var t=lb(e),n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}H(ub,"decodeB64ToUint8Array$1"); 80 /*! @name m3u8-parser @version 7.2.0 @license Apache-2.0 */ 81 const cb=class extends ob{constructor(){super(),this.buffer=""}push(e){let t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}};H(cb,"LineStream");let db=cb;const pb=String.fromCharCode(9),hb=H((function(e){const t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n}),"parseByterange"),fb=H((function(){return new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')}),"attributeSeparator"),mb=H((function(e){const t={};if(!e)return t;const n=e.split(fb());let i,r=n.length;for(;r--;)""!==n[r]&&(i=/([^=]*)=(.*)/.exec(n[r]).slice(1),i[0]=i[0].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^['"](.*)['"]$/g,"$1"),t[i[0]]=i[1]);return t}),"parseAttributes$1"),gb=H((e=>{const t=e.split("x"),n={};return t[0]&&(n.width=parseInt(t[0],10)),t[1]&&(n.height=parseInt(t[1],10)),n}),"parseResolution"),yb=class extends ob{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,n;if(0===(e=e.trim()).length)return;if("#"!==e[0])return void this.trigger("data",{type:"uri",uri:e});this.tagMappers.reduce(((t,n)=>{const i=n(e);return i===e?t:t.concat([i])}),[e]).forEach((e=>{for(let t=0;t<this.customParsers.length;t++)if(this.customParsers[t].call(this,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e),t)this.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void this.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e),t)return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void this.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e),t)return n=eb(hb(t[1]),{type:"tag",tagType:"byterange"}),void this.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e),t)return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void this.trigger("data",n);if(t=/^#EXT-X-MAP:(.*)$/.exec(e),t){if(n={type:"tag",tagType:"map"},t[1]){const e=mb(t[1]);e.URI&&(n.uri=e.URI),e.BYTERANGE&&(n.byterange=hb(e.BYTERANGE))}this.trigger("data",n)}else{if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(e),t)return n={type:"tag",tagType:"stream-inf"},t[1]&&(n.attributes=mb(t[1]),n.attributes.RESOLUTION&&(n.attributes.RESOLUTION=gb(n.attributes.RESOLUTION)),n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))),void this.trigger("data",n);if(t=/^#EXT-X-MEDIA:(.*)$/.exec(e),t)return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=mb(t[1])),void this.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e),t)this.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e),t)this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e),t)return n={type:"tag",tagType:"program-date-time"}
vendor: 4,394 bytes, line 81
81,t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void this.trigger("data",n);if(t=/^#EXT-X-KEY:(.*)$/.exec(e),t)return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=mb(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void this.trigger("data",n);if(t=/^#EXT-X-START:(.*)$/.exec(e),t)return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=mb(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void this.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n);if(t=/^#EXT-X-SKIP:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"skip"},n.attributes=mb(t[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(pb)),void this.trigger("data",n);if(t=/^#EXT-X-PART:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part"},n.attributes=mb(t[1]),["DURATION"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["INDEPENDENT","GAP"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=hb(n.attributes.BYTERANGE)),void this.trigger("data",n);if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"server-control"},n.attributes=mb(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),void this.trigger("data",n);if(t=/^#EXT-X-PART-INF:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part-inf"},n.attributes=mb(t[1]),["PART-TARGET"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),void this.trigger("data",n);if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"preload-hint"},n.attributes=mb(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach((function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10);const t="BYTERANGE-LENGTH"===e?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e]}})),void this.trigger("data",n);if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"rendition-report"},n.attributes=mb(t[1]),["LAST-MSN","LAST-PART"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))})),void this.trigger("data",n);if(t=/^#EXT-X-DATERANGE:(.*)$/.exec(e),t&&t[1]){n={type:"tag",tagType:"daterange"},n.attributes=mb(t[1]),["ID","CLASS"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=String(n.attributes[e]))})),["START-DATE","END-DATE"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=new Date(n.attributes[e]))})),["DURATION","PLANNED-DURATION"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["END-ON-NEXT"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/i.test(n.attributes[e]))})),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=n.attributes[e].toString(16))}));const e=/^X-([A-Z]+-)+[A-Z]+$/;
81for(const t in n.attributes){if(!e.test(t))continue;const i=/[0-9A-Fa-f]{6}/g.test(n.attributes[t]),r=/^\d+(\.\d+)?$/.test(n.attributes[t]);n.attributes[t]=i?n.attributes[t].toString(16):r?parseFloat(n.attributes[t]):String(n.attributes[t])}this.trigger("data",n)}else if(t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(e),t)this.trigger("data",{type:"tag",tagType:"independent-segments"});else if(t=/^#EXT-X-I-FRAMES-ONLY/.exec(e),t)this.trigger("data",{type:"tag",tagType:"i-frames-only"});else{if(t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(e),t)return n={type:"tag",tagType:"content-steering"},n.attributes=mb(t[1]),void this.trigger("data",n);if(t=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(e),t)return n={type:"tag",tagType:"i-frame-playlist"},n.attributes=mb(t[1]),n.attributes.URI&&(n.uri=n.attributes.URI),n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes.RESOLUTION&&(n.attributes.RESOLUTION=gb(n.attributes.RESOLUTION)),n.attributes["AVERAGE-BANDWIDTH"]&&(n.attributes["AVERAGE-BANDWIDTH"]=parseInt(n.attributes["AVERAGE-BANDWIDTH"],10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),void this.trigger("data",n);if(t=/^#EXT-X-DEFINE:(.*)$/.exec(e),t)return n={type:"tag",tagType:"define"},n.attributes=mb(t[1]),void this.trigger("data",n);this.trigger("data",{type:"tag",data:e.slice(4)})}}}}else this.trigger("data",{type:"comment",text:e.slice(1)})}))}addParser({expression:e,customType:t,dataParser:n,segment:i}){"function"!=typeof n&&(n=H((e=>e),"dataParser")),this.customParsers.push((r=>{if(e.exec(r))return this.trigger("data",{type:"custom",data:n(r),customType:t,segment:i}),!0}))}addTagMapper({expression:e,map:t}){const n=H((n=>e.test(n)?t(n):n),"mapFn");this.tagMappers.push(n)}};H(yb,"ParseStream");let vb=yb;const bb=H((e=>e.toLowerCase().replace(/-(\w)/g,(e=>e[1].toUpperCase()))),"camelCase"),_b=H((function(e){const t={};return Object.keys(e).forEach((function(n){t[bb(n)]=e[n]})),t}),"camelCaseKeys"),wb=H((function(e){const{serverControl:t,targetDuration:n,partTargetDuration:i}=e;if(!t)return;const r="#EXT-X-SERVER-CONTROL",a="holdBack",s="partHoldBack",o=n&&3*n,l=i&&2*i;n&&!t.hasOwnProperty(a)&&(t[a]=o,this.trigger("info",{message:`${r} defaulting HOLD-BACK to targetDuration * 3 (${o}).`})),o&&t[a]<o&&(this.trigger("warn",{message:`${r} clamping HOLD-BACK (${t[a]}) to targetDuration * 3 (${o})`}),t[a]=o),i&&!t.hasOwnProperty(s)&&(t[s]=3*i,this.trigger("info",{message:`${r} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[s]}).`})),i&&t[s]<l&&(this.trigger("warn",{message:`${r} clamping PART-HOLD-BACK (${t[s]}) to partTargetDuration * 2 (${l}).`}),t[s]=l)}),"setHoldBack");let Sb=(H(u=class extends ob{constructor(e={}){super(),this.lineStream=new db,this.parseStream=new vb,this.lineStream.pipe(this.parseStream),this.mainDefinitions=e.mainDefinitions||{},this.params=new URL(e.uri,"https://a.com").searchParams,this.lastProgramDateTime=null;const t=this,n=[];let i,r,a={},s=!1;const o=H((function(){}),"noop"),l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}};let u=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let c=0,d=0;const p={};this.on("end",(()=>{a.uri||!a.parts&&!a.preloadHints||(!a.map&&i&&(a.map=i),!a.key&&r&&(a.key=r),a.timeline||"number"!=typeof u||(a.timeline=u),this.manifest.preloadSegment=a)})),this.parseStream.on("data",(function(e){let h,f;if(t.manifest.definitions)for(const n in t.manifest.definitions)if(e.uri&&(e.uri=e.uri.replace(`{$${n}}`,t.manifest.definitions[n])),e.attributes)for(const i in e.attributes)"string"==typeof e.attributes[i]&&(e.attributes[i]=e.attributes[i].replace(`{$${n}}`,t.manifest.definitions[n]));({tag(){({version(){e.version&&(this.manifest.version=e.version)},"allow-cache"(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const t={};"length"in e&&(a.byterange=t,t.length=e.length,"offset"in e||(e.offset=c)),"offset"in e&&(a.byterange=t,t.offset=e.offset),c=t.offset+t.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.title&&(a.title=e.title),e.duration>0&&(a.duration=e.duration),0===e.duration&&(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=n},key(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:ub(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),r={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(r.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else r=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence"(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence"(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,u=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type"(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map(){i={}
vendor: 5,366 bytes, line 81
81,e.uri&&(i.uri=e.uri),e.byterange&&(i.byterange=e.byterange),r&&(i.key=r)},"stream-inf"(){this.manifest.playlists=n,this.manifest.mediaGroups=this.manifest.mediaGroups||l,e.attributes?(a.attributes||(a.attributes={}),eb(a.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,!(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});const t=this.manifest.mediaGroups[e.attributes.TYPE];t[e.attributes["GROUP-ID"]]=t[e.attributes["GROUP-ID"]]||{},h=t[e.attributes["GROUP-ID"]],f={default:/yes/i.test(e.attributes.DEFAULT)},f.default?f.autoselect=!0:f.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(f.language=e.attributes.LANGUAGE),e.attributes.URI&&(f.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(f.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(f.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(f.forced=/yes/i.test(e.attributes.FORCED)),h[e.attributes.NAME]=f},discontinuity(){u+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(n.length)},"program-date-time"(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),a.dateTimeString=e.dateTimeString,a.dateTimeObject=e.dateTimeObject;const{lastProgramDateTime:t}=this;this.lastProgramDateTime=new Date(e.dateTimeString).getTime(),null===t&&this.manifest.segments.reduceRight(((e,t)=>(t.programDateTime=e-1e3*t.duration,t.programDateTime)),this.lastProgramDateTime)},targetduration(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,wb.call(this,this.manifest))},start(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out"(){a.cueOut=e.data},"cue-out-cont"(){a.cueOutCont=e.data},"cue-in"(){a.cueIn=e.data},skip(){this.manifest.skip=_b(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part(){s=!0;const t=this.manifest.segments.length,n=_b(e.attributes);a.parts=a.parts||[],a.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=d),d=n.byterange.offset+n.byterange.length);const i=a.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${i} for segment #${t}`,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(((e,t)=>{e.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${t} lacks required attribute(s): LAST-PART`})}))},"server-control"(){const t=this.manifest.serverControl=_b(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),wb.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const t=this.manifest.segments.length,n=_b(e.attributes),i=n.type&&"PART"===n.type;a.preloadHints=a.preloadHints||[],a.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=i?d:0,i&&(d=n.byterange.offset+n.byterange.length)));const r=a.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${r} for segment #${t}`,e.attributes,["TYPE","URI"]),n.type)for(let e=0;e<a.preloadHints.length-1;e++){const i=a.preloadHints[e];i.type&&(i.type===n.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${r} for segment #${t} has the same TYPE ${n.type} as preload hint #${e}`}))}},"rendition-report"(){const t=_b(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);const n=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];s&&i.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${n}`,e.attributes,i)},"part-inf"(){this.manifest.partInf=_b(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),wb.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(_b(e.attributes));const t=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${t}`,e.attributes,["ID","START-DATE"]);const n=this.manifest.dateRanges[t];n.endDate&&n.startDate&&new Date(n.endDate)<new Date(n.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),n.duration&&n.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),n.plannedDuration&&n.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const i=!!n.endOnNext;if(i&&!n.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT
81=YES attribute must have a CLASS attribute"}),i&&(n.duration||n.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),n.duration&&n.endDate){const e=n.startDate.getTime()+1e3*n.duration;this.manifest.dateRanges[t].endDate=new Date(e)}if(p[n.id]){for(const t in p[n.id])if(n[t]&&JSON.stringify(p[n.id][t])!==JSON.stringify(n[t])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}const e=this.manifest.dateRanges.findIndex((e=>e.id===n.id));this.manifest.dateRanges[e]=eb(this.manifest.dateRanges[e],n),p[n.id]=eb(p[n.id],n),this.manifest.dateRanges.pop()}else p[n.id]=n},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=_b(e.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",e.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{};const t=H(((e,t)=>{e in this.manifest.definitions?this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${e}`}):this.manifest.definitions[e]=t}),"addDef");if("QUERYPARAM"in e.attributes){if("NAME"in e.attributes||"IMPORT"in e.attributes)return void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});const n=this.params.get(e.attributes.QUERYPARAM);return n?void t(e.attributes.QUERYPARAM,decodeURIComponent(n)):void this.trigger("error",{message:`EXT-X-DEFINE: No query param ${e.attributes.QUERYPARAM}`})}return"NAME"in e.attributes?"IMPORT"in e.attributes?void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"}):"VALUE"in e.attributes&&"string"==typeof e.attributes.VALUE?void t(e.attributes.NAME,e.attributes.VALUE):void this.trigger("error",{message:`EXT-X-DEFINE: No value for ${e.attributes.NAME}`}):"IMPORT"in e.attributes?this.mainDefinitions[e.attributes.IMPORT]?void t(e.attributes.IMPORT,this.mainDefinitions[e.attributes.IMPORT]):void this.trigger("error",{message:`EXT-X-DEFINE: No value ${e.attributes.IMPORT} to import, or IMPORT used on main playlist`}):void this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:e.attributes,uri:e.uri,timeline:u}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",e.attributes,["BANDWIDTH","URI"])}}[e.tagType]||o).call(t)},uri(){a.uri=e.uri,n.push(a),this.manifest.targetDuration&&!("duration"in a)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),r&&(a.key=r),a.timeline=u,i&&(a.map=i),d=0,null!==this.lastProgramDateTime&&(a.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*a.duration),a={}},comment(){},custom(){e.segment?(a.custom=a.custom||{},a.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(t)}))}requiredCompatibilityversion(e,t){(e<t||!e)&&this.trigger("warn",{message:`manifest must be at least version ${t}`})}warnOnMissingAttributes_(e,t,n){const i=[];n.forEach((function(e){t.hasOwnProperty(e)||i.push(e)})),i.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${i.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}},"Parser"),u);var Cb,kb,xb={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},Tb=["video","audio","text"],Eb=["Video","Audio","Text"],Ab=H((function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)})):e}),"translateLegacyCodec"),Lb=H((function(e){void 0===e&&(e="");var t=e.split(","),n=[];return t.forEach((function(e){var t;e=e.trim(),Tb.forEach((function(i){var r=xb[i].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=i;var a=e.substring(0,r[1].length),s=e.replace(a,"");
81n.push({type:a,details:s,mediaType:i})}})),t||n.push({type:e,details:"",mediaType:"unknown"})})),n}),"parseCodecs"),Ib=H((function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var i in n){var r=n[i];if(r.default&&r.playlists)return Lb(r.playlists[0].attributes.CODECS)}return null}),"codecsFromDefault"),$b=H((function(e){return void 0===e&&(e=""),xb.audio.test(e.trim().toLowerCase())}),"isAudioCodec"),Db=H((function(e){return void 0===e&&(e=""),xb.text.test(e.trim().toLowerCase())}),"isTextCodec"),Pb=H((function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map((function(e){return Ab(e.trim())})),n="video";1===t.length&&$b(t[0])?n="audio":1===t.length&&Db(t[0])&&(n="application");var i="mp4";return t.every((function(e){return xb.mp4.test(e)}))?i="mp4":t.every((function(e){return xb.webm.test(e)}))?i="webm":t.every((function(e){return xb.ogg.test(e)}))&&(i="ogg"),n+"/"+i+';codecs="'+e+'"'}}),"getMimeForCodec"),Ob=H((function(e){return void 0===e&&(e=""),fv.MediaSource&&fv.MediaSource.isTypeSupported&&fv.MediaSource.isTypeSupported(Pb(e))||!1}),"browserSupportsCodec"),Mb=H((function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t<Eb.length;t++){if(xb["muxer"+Eb[t]].test(e))return!0}return!1}))}),"muxerSupportsCodec"),Rb="mp4a.40.2",Nb=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,Fb=/^application\/dash\+xml/i,Bb=H((function(e){return Nb.test(e)?"hls":Fb.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null}),"simpleTypeFromSourceType"),Hb=H((function(e){return e.toString(2).length}),"countBits"),jb=H((function(e){return Math.ceil(Hb(e)/8)}),"countBytes"),Ub=H((function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer}),"isArrayBufferView"),Vb=H((function(e){return Ub(e)}),"isTypedArray"),qb=H((function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||Vb(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))}),"toUint8"),zb=fv.BigInt||Number,Wb=[zb("0x1"),zb("0x100"),zb("0x10000"),zb("0x1000000"),zb("0x100000000"),zb("0x10000000000"),zb("0x1000000000000"),zb("0x100000000000000"),zb("0x10000000000000000")];Cb=new Uint16Array([65484]),255===(kb=new Uint8Array(Cb.buffer,Cb.byteOffset,Cb.byteLength))[0]||kb[0];var Gb=H((function(e,t){var n=void 0===t?{}:t,i=n.signed,r=void 0!==i&&i,a=n.le,s=void 0!==a&&a;e=qb(e);var o=s?"reduce":"reduceRight",l=(e[o]?e[o]:Array.prototype[o]).call(e,(function(t,n,i){var r=s?i:Math.abs(i+1-e.length);return t+zb(n)*Wb[r]}),zb(0));if(r){var u=Wb[e.length]/zb(2)-zb(1);(l=zb(l))>u&&(l-=u,l-=u,l-=zb(2))}return Number(l)}),"bytesToNumber"),Kb=H((function(e,t){var n={}.le,i=void 0!==n&&n;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0),e=zb(e);for(var r=jb(e),a=new Uint8Array(new ArrayBuffer(r)),s=0;s<r;s++){var o=i?s:Math.abs(s+1-a.length);a[o]=Number(e/Wb[s]&zb(255)),e<0&&(a[o]=Math.abs(~a[o]),a[o]-=0===s?1:2)}return a}),"numberToBytes"),Yb=H((function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n}),"stringToBytes"),Zb=H((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t=t.filter((function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e})),t.length<=1)return qb(t[0]);var i=t.reduce((function(e,t,n){return e+(t.byteLength||t.length)}),0),r=new Uint8Array(i),a=0;return t.forEach((function(e){e=qb(e),r.set(e,a),a+=e.byteLength})),r}),"concatTypedArrays"),Xb=H((function(e,t,n){var i=void 0===n?{}:n,r=i.offset,a=void 0===r?0:r,s=i.mask,o=void 0===s?[]:s;e=qb(e);var l=(t=qb(t)).every?t.every:Array.prototype.every;return t.length&&e.length-a>=t.length&&l.call(t,(function(t,n){return t===(o[n]?o[n]&e[a+n]:e[a+n])}))}),"bytesMatch"),Qb=H((function(e,t,n){t.forEach((function(t){for(var i in e.mediaGroups[t])for(var r in e.mediaGroups[t][i]){var a=e.mediaGroups[t][i][r];n(a,t,i,r)}}))}),"forEachMediaGroup"),Jb=H((function(e){return fv.atob?fv.atob(e):Buffer.from(e,"base64").toString("binary")}),"atob");function e_(e){for(var t=Jb(e),n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}H(e_,"decodeB64ToUint8Array");var t_,n_,i_={},r_={},a_={};function s_(){if(t_)return a_;function e(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var i=0;i<e.length;i++)if(Object.prototype.hasOwnProperty.call(e,i)){var r=e[i];if(t.call(void 0,r,i,e))return r}}function t(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}function n(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}t_=1,H(e,"find"),H(t,"freeze"),H(n,"assign");var i=t({HTML:"text/html",isHTML:H((function(e){return e===i.HTML}),"isHTML"),XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),r=t({HTML:"http://www.w3.org/1999/xhtml",isHTML:H((function(e){return e===r.HTML}),"isHTML"),SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});
81return a_.assign=n,a_.find=e,a_.freeze=t,a_.MIME_TYPE=i,a_.NAMESPACE=r,a_}function o_(){if(n_)return r_;n_=1;var e=s_(),t=e.find,n=e.NAMESPACE;function i(e){return""!==e}function r(e){return e?e.split(/[\t\n\f\r ]+/).filter(i):[]}function a(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function s(e){if(!e)return[];var t=r(e);return Object.keys(t.reduce(a,{}))}function o(e){return function(t){return e&&-1!==e.indexOf(t)}}function l(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function u(e,t){var n=e.prototype;if(!(n instanceof t)){let i=function(){};H(i,"t"),i.prototype=t.prototype,i=new i,l(n,i),e.prototype=n=i}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}H(i,"notEmptyString"),H(r,"splitOnASCIIWhitespace"),H(a,"orderedSetReducer"),H(s,"toOrderedSet"),H(o,"arrayIncludes"),H(l,"copy"),H(u,"_extends");var c={},d=c.ELEMENT_NODE=1,p=c.ATTRIBUTE_NODE=2,h=c.TEXT_NODE=3,f=c.CDATA_SECTION_NODE=4,m=c.ENTITY_REFERENCE_NODE=5,g=c.ENTITY_NODE=6,y=c.PROCESSING_INSTRUCTION_NODE=7,v=c.COMMENT_NODE=8,b=c.DOCUMENT_NODE=9,_=c.DOCUMENT_TYPE_NODE=10,w=c.DOCUMENT_FRAGMENT_NODE=11,S=c.NOTATION_NODE=12,C={},k={};C.INDEX_SIZE_ERR=(k[1]="Index size error",1),C.DOMSTRING_SIZE_ERR=(k[2]="DOMString size error",2);var x=C.HIERARCHY_REQUEST_ERR=(k[3]="Hierarchy request error",3);C.WRONG_DOCUMENT_ERR=(k[4]="Wrong document",4);var T=C.INVALID_CHARACTER_ERR=(k[5]="Invalid character",5);C.NO_DATA_ALLOWED_ERR=(k[6]="No data allowed",6),C.NO_MODIFICATION_ALLOWED_ERR=(k[7]="No modification allowed",7);var E=C.NOT_FOUND_ERR=(k[8]="Not found",8);C.NOT_SUPPORTED_ERR=(k[9]="Not supported",9);var A=C.INUSE_ATTRIBUTE_ERR=(k[10]="Attribute in use",10),L=C.INVALID_STATE_ERR=(k[11]="Invalid state",11);function I(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,k[e]),this.message=k[e],Error.captureStackTrace&&Error.captureStackTrace(this,I);return n.code=e,t&&(this.message=this.message+": "+t),n}function $(){}function D(e,t){this._node=e,this._refresh=t,P(this)}function P(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(Ee(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var i=n.length;i in e;i++)Object.prototype.hasOwnProperty.call(e,i)&&delete e[i];l(n,e),e._inc=t}}function O(){}function M(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function R(e,t,n,i){if(i?t[M(t,i)]=n:t[t.length++]=n,e){n.ownerElement=e;var r=e.ownerDocument;r&&(i&&W(r,e,i),z(r,e,n))}}function N(e,t,n){var i=M(t,n);if(!(i>=0))throw new I(E,new Error(e.tagName+"@"+n));for(var r=t.length-1;i<r;)t[i]=t[++i];if(t.length=r,e){var a=e.ownerDocument;a&&(W(a,e,n),n.ownerElement=null)}}function F(){}function B(){}function j(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function U(e,t){return V(e,null,{enter:H((function(e){return!t(e)||V.STOP}),"enter")})===V.STOP}function V(e,t,n){for(var i=[{node:e,context:t,phase:V.ENTER}];i.length>0;){var r=i.pop();if(r.phase===V.ENTER){var a=n.enter(r.node,r.context);if(a===V.STOP)return V.STOP;if(i.push({node:r.node,context:a,phase:V.EXIT}),null==a)continue;for(var s=r.node.lastChild;s;)i.push({node:s,context:a,phase:V.ENTER}),s=s.previousSibling}else n.exit&&n.exit(r.node,r.context)}}function q(){this.ownerDocument=this}function z(e,t,i){e&&e._inc++,i.namespaceURI===n.XMLNS&&(t._nsMap[i.prefix?i.localName:""]=i.value)}function W(e,t,i,r){e&&e._inc++,i.namespaceURI===n.XMLNS&&delete t._nsMap[i.prefix?i.localName:""]}function G(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{for(var r=t.firstChild,a=0;r;)i[a++]=r,r=r.nextSibling;i.length=a,delete i[i.length]}}}function K(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,G(e.ownerDocument,e),t}function Y(e){return e&&(e.nodeType===B.DOCUMENT_NODE||e.nodeType===B.DOCUMENT_FRAGMENT_NODE||e.nodeType===B.ELEMENT_NODE)}function Z(e){return e&&(Q(e)||J(e)||X(e)||e.nodeType===B.DOCUMENT_FRAGMENT_NODE||e.nodeType===B.COMMENT_NODE||e.nodeType===B.PROCESSING_INSTRUCTION_NODE)}function X(e){return e&&e.nodeType===B.DOCUMENT_TYPE_NODE}function Q(e){return e&&e.nodeType===B.ELEMENT_NODE}function J(e){return e&&e.nodeType===B.TEXT_NODE}function ee(e,n){var i=e.childNodes||[];if(t(i,Q)||X(n))return!1;var r=t(i,X);return!(n&&r&&i.indexOf(r)>i.indexOf(n))}function te(e,n){var i=e.childNodes||[];function r(e){return Q(e)&&e!==n}if(H(r,"hasElementChildThatIsNotChild"),t(i,r))return!1;var a=t(i,X);return!(n&&a&&i.indexOf(a)>i.indexOf(n))}function ne(e,t,n){if(!Y(e))throw new I(x,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new I(E,"child not in parent");
vendor: 5,942 bytes, line 81
81if(!Z(t)||X(t)&&e.nodeType!==B.DOCUMENT_NODE)throw new I(x,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function ie(e,n,i){var r=e.childNodes||[],a=n.childNodes||[];if(n.nodeType===B.DOCUMENT_FRAGMENT_NODE){var s=a.filter(Q);if(s.length>1||t(a,J))throw new I(x,"More than one element or text in fragment");if(1===s.length&&!ee(e,i))throw new I(x,"Element in fragment can not be inserted before doctype")}if(Q(n)&&!ee(e,i))throw new I(x,"Only one element can be added and only after doctype");if(X(n)){if(t(r,X))throw new I(x,"Only one doctype is allowed");var o=t(r,Q);if(i&&r.indexOf(o)<r.indexOf(i))throw new I(x,"Doctype can only be inserted before an element");if(!i&&o)throw new I(x,"Doctype can not be appended since element is present")}}function re(e,n,i){var r=e.childNodes||[],a=n.childNodes||[];if(n.nodeType===B.DOCUMENT_FRAGMENT_NODE){var s=a.filter(Q);if(s.length>1||t(a,J))throw new I(x,"More than one element or text in fragment");if(1===s.length&&!te(e,i))throw new I(x,"Element in fragment can not be inserted before doctype")}if(Q(n)&&!te(e,i))throw new I(x,"Only one element can be added and only after doctype");if(X(n)){let e=function(e){return X(e)&&e!==i};if(H(e,"hasDoctypeChildThatIsNotChild"),t(r,e))throw new I(x,"Only one doctype is allowed");var o=t(r,Q);if(i&&r.indexOf(o)<r.indexOf(i))throw new I(x,"Doctype can only be inserted before an element")}}function ae(e,t,n,i){ne(e,t,n),e.nodeType===B.DOCUMENT_NODE&&(i||ie)(e,t,n);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===w){var a=t.firstChild;if(null==a)return t;var s=t.lastChild}else a=s=t;var o=n?n.previousSibling:e.lastChild;a.previousSibling=o,s.nextSibling=n,o?o.nextSibling=a:e.firstChild=a,null==n?e.lastChild=s:n.previousSibling=s;do{a.parentNode=e,se(a,e.ownerDocument||e)}while(a!==s&&(a=a.nextSibling));return G(e.ownerDocument||e,e),t.nodeType==w&&(t.firstChild=t.lastChild=null),t}function se(e,t){if(e.ownerDocument!==t){if(e.ownerDocument=t,e.nodeType===d&&e.attributes)for(var n=0;n<e.attributes.length;n++){var i=e.attributes.item(n);i&&(i.ownerDocument=t)}for(var r=e.firstChild;r;)se(r,t),r=r.nextSibling}}function oe(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,G(e.ownerDocument,e,t),se(t,e.ownerDocument||e),t}function le(){this._nsMap={}}function ue(){}function ce(){}function de(){}function pe(){}function he(){}function fe(){}function me(){}function ge(){}function ye(){}function ve(){}function be(){}function _e(){}function we(e,t,n){var i=!!n&&!!n.requireWellFormed,r=[],a=9==this.nodeType&&this.documentElement||this,s=a.prefix,o=a.namespaceURI;if(o&&null==s&&null==(s=a.lookupPrefix(o)))var l=[{namespace:o,prefix:null}];return ke(this,r,e,t,l,i),r.join("")}function Se(e,t,i){var r=e.prefix||"",a=e.namespaceURI;if(!a)return!1;if("xml"===r&&a===n.XML||a===n.XMLNS)return!1;for(var s=i.length;s--;){var o=i[s];if(o.prefix===r)return o.namespace!==a}return!0}function Ce(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,j),'"')}function ke(e,t,i,r,a,s){a||(a=[]),V(e,{ns:a,isHTML:i},{enter:H((function(e,i){var a=i.ns,o=i.isHTML;if(r){if(!(e=r(e)))return null;if("string"==typeof e)return t.push(e),null}switch(e.nodeType){case d:var l=e.attributes,u=l.length,c=e.tagName,g=c;if(!(o=n.isHTML(e.namespaceURI)||o)&&!e.prefix&&e.namespaceURI){for(var S,C=0;C<l.length;C++)if("xmlns"===l.item(C).name){S=l.item(C).value;break}if(!S)for(var k=a.length-1;k>=0;k--){if(""===(x=a[k]).prefix&&x.namespace===e.namespaceURI){S=x.namespace;break}}if(S!==e.namespaceURI)for(k=a.length-1;k>=0;k--){var x;if((x=a[k]).namespace===e.namespaceURI){x.prefix&&(g=x.prefix+":"+c);break}}}t.push("<",g);for(var T=a.slice(),E=0;E<u;E++){"xmlns"==(A=l.item(E)).prefix?T.push({prefix:A.localName,namespace:A.value}):"xmlns"==A.nodeName&&T.push({prefix:"",namespace:A.value})}for(E=0;E<u;E++){var A;if(Se(A=l.item(E),0,T)){var $=A.prefix||"",D=A.namespaceURI;Ce(t,$?"xmlns:"+$:"xmlns",D),T.push({prefix:$,namespace:D})}var P=r?r(A):A;P&&("string"==typeof P?t.push(P):Ce(t,P.name,P.value))}if(c===g&&Se(e,0,T)){var O=e.prefix||"";D=e.namespaceURI;Ce(t,O?"xmlns:"+O:"xmlns",D),T.push({prefix:O,namespace:D})}var M=e.firstChild;if(M||o&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(t.push(">"),o&&/^script$/i.test(c)){for(;M;)M.data?t.push(M.data):ke(M,t,o,r,T.slice(),s),M=M.nextSibling;return t.push("</",c,">"),null}return{ns:T,isHTML:o,tag:g}}return t.push("/>"),null;case b:case w:return{ns:a.slice(),isHTML:o,tag:null};case p:return Ce(t,e.name,e.value),null;case h:return t.push(e.data.replace(/[<&>]/g,j)),null;case f:if(s&&-1!==e.data.indexOf("]]>"))throw new I(L,'The CDATASection data contains "]]>"');return t.push("<![CDATA[",e.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case v:if(s&&-1!==e.data.indexOf("--\x3e"))throw new I(L,'The comment node data contains "--\x3e"');return t.push("\x3c!--",e.data,"--\x3e"),null;case _:if(s){if(e.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(e.publicId))throw new I(L,"DocumentType publicId is not a valid PubidLiteral");if(e.systemId&&!/^("[^"]*"|'[^']*')$/.test(e.systemId))throw new I(L,"DocumentType systemId is not a valid SystemLiteral");if(e.internalSubset&&-1!==e.internalSubset.indexOf("]>"))throw new I(L,'DocumentType internalSubset contains "]>"')}var R=e.publicId,N=e.systemId;if(t.push("<!DOCTYPE ",e.name),R)t.push(" PUBLIC ",R),N&&"."!=N&&t.push(" ",N),t.push(">");else if(N&&"."!=N)t.push(" SYSTEM ",N,">");else{var F=e.internalSubset;F&&t.push(" [",F,"]"),t.push(">")}return null;case y:if(s&&-1!==e.data.indexOf("?>"))throw new I(L,'The ProcessingInstruction data contains "?>"');return t.push("<?",e.target," ",e.data,"?>"),null;case m:return t.push("&",e.nodeName,";"),null;default:return t.push("??",e.nodeName),null}}
81),"enter"),exit:H((function(e,n){n&&n.tag&&t.push("</",n.tag,">")}),"exit")})}function xe(e,t,n){var i;return V(t,null,{enter:H((function(t,r){var a=t.cloneNode(!1);return a.ownerDocument=e,a.parentNode=null,null===r?i=a:r.appendChild(a),t.nodeType===p||n?a:null}),"enter")}),i}function Te(e,t,n){var i;return V(t,null,{enter:H((function(t,r){var a=new t.constructor;for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){var o=t[s];"object"!=typeof o&&o!=a[s]&&(a[s]=o)}t.childNodes&&(a.childNodes=new $),a.ownerDocument=e;var l=n;switch(a.nodeType){case d:var u=t.attributes,c=a.attributes=new O,h=u.length;c._ownerElement=a;for(var f=0;f<h;f++)a.setAttributeNode(Te(e,u.item(f),!0));break;case p:l=!0}return null!==r?r.appendChild(a):i=a,l?a:null}),"enter")}),i}function Ee(e,t,n){e[t]=n}C.SYNTAX_ERR=(k[12]="Syntax error",12),C.INVALID_MODIFICATION_ERR=(k[13]="Invalid modification",13),C.NAMESPACE_ERR=(k[14]="Invalid namespace",14),C.INVALID_ACCESS_ERR=(k[15]="Invalid access",15),H(I,"DOMException"),I.prototype=Error.prototype,l(C,I),H($,"NodeList"),$.prototype={length:0,item:H((function(e){return e>=0&&e<this.length?this[e]:null}),"item"),toString:H((function(e,t,n){for(var i=!!n&&!!n.requireWellFormed,r=[],a=0;a<this.length;a++)ke(this[a],r,e,t,null,i);return r.join("")}),"toString"),filter:H((function(e){return Array.prototype.filter.call(this,e)}),"filter"),indexOf:H((function(e){return Array.prototype.indexOf.call(this,e)}),"indexOf")},H(D,"LiveNodeList"),H(P,"_updateLiveList"),D.prototype.item=function(e){return P(this),this[e]||null},u(D,$),H(O,"NamedNodeMap"),H(M,"_findNodeIndex"),H(R,"_addNamedNode"),H(N,"_removeNamedNode"),O.prototype={length:0,item:$.prototype.item,getNamedItem:H((function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}}),"getNamedItem"),setNamedItem:H((function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new I(A);var n=this.getNamedItem(e.nodeName);return R(this._ownerElement,this,e,n),n}),"setNamedItem"),setNamedItemNS:H((function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new I(A);return t=this.getNamedItemNS(e.namespaceURI,e.localName),R(this._ownerElement,this,e,t),t}),"setNamedItemNS"),removeNamedItem:H((function(e){var t=this.getNamedItem(e);return N(this._ownerElement,this,t),t}),"removeNamedItem"),removeNamedItemNS:H((function(e,t){var n=this.getNamedItemNS(e,t);return N(this._ownerElement,this,n),n}),"removeNamedItemNS"),getNamedItemNS:H((function(e,t){for(var n=this.length;n--;){var i=this[n];if(i.localName==t&&i.namespaceURI==e)return i}return null}),"getNamedItemNS")},H(F,"DOMImplementation"),F.prototype={hasFeature:H((function(e,t){return!0}),"hasFeature"),createDocument:H((function(e,t,n){var i=new q;if(i.implementation=this,i.childNodes=new $,i.doctype=n||null,n&&i.appendChild(n),t){var r=i.createElementNS(e,t);i.appendChild(r)}return i}),"createDocument"),createDocumentType:H((function(e,t,n){var i=new fe;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=n||"",i}),"createDocumentType")},H(B,"Node"),B.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:H((function(e,t){return ae(this,e,t)}),"insertBefore"),replaceChild:H((function(e,t){ae(this,e,t,re),t&&this.removeChild(t)}),"replaceChild"),removeChild:H((function(e){return K(this,e)}),"removeChild"),appendChild:H((function(e){return this.insertBefore(e,null)}),"appendChild"),hasChildNodes:H((function(){return null!=this.firstChild}),"hasChildNodes"),cloneNode:H((function(e){return Te(this.ownerDocument||this,this,e)}),"cloneNode"),normalize:H((function(){V(this,null,{enter:H((function(e){for(var t=e.firstChild;t;){var n=t.nextSibling;null!==n&&n.nodeType===h&&t.nodeType===h?(e.removeChild(n),t.appendData(n.data)):t=n}return!0}),"enter")})}),"normalize"),isSupported:H((function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)}),"isSupported"),hasAttributes:H((function(){return this.attributes.length>0}),"hasAttributes"),lookupPrefix:H((function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&n[i]===e)return i;
81t=t.nodeType==p?t.ownerDocument:t.parentNode}return null}),"lookupPrefix"),lookupNamespaceURI:H((function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==p?t.ownerDocument:t.parentNode}return null}),"lookupNamespaceURI"),isDefaultNamespace:H((function(e){return null==this.lookupPrefix(e)}),"isDefaultNamespace")},H(j,"_xmlEncoder"),l(c,B),l(c,B.prototype),H(U,"_visitNode"),H(V,"walkDOM"),V.STOP=Symbol("walkDOM.STOP"),V.ENTER=0,V.EXIT=1,H(q,"Document"),H(z,"_onAddAttribute"),H(W,"_onRemoveAttribute"),H(G,"_onUpdateChild"),H(K,"_removeChild"),H(Y,"hasValidParentNodeType"),H(Z,"hasInsertableNodeType"),H(X,"isDocTypeNode"),H(Q,"isElementNode"),H(J,"isTextNode"),H(ee,"isElementInsertionPossible"),H(te,"isElementReplacementPossible"),H(ne,"assertPreInsertionValidity1to5"),H(ie,"assertPreInsertionValidityInDocument"),H(re,"assertPreReplacementValidityInDocument"),H(ae,"_insertBefore"),H(se,"_updateOwnerDocument"),H(oe,"_appendSingleChild"),q.prototype={nodeName:"#document",nodeType:b,doctype:null,documentElement:null,_inc:1,insertBefore:H((function(e,t){if(e.nodeType==w){for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return ae(this,e,t),se(e,this),null===this.documentElement&&e.nodeType===d&&(this.documentElement=e),e}),"insertBefore"),removeChild:H((function(e){return this.documentElement==e&&(this.documentElement=null),K(this,e)}),"removeChild"),replaceChild:H((function(e,t){ae(this,e,t,re),se(e,this),t&&this.removeChild(t),Q(e)&&(this.documentElement=e)}),"replaceChild"),importNode:H((function(e,t){return xe(this,e,t)}),"importNode"),getElementById:H((function(e){var t=null;return U(this.documentElement,(function(n){if(n.nodeType==d&&n.getAttribute("id")==e)return t=n,!0})),t}),"getElementById"),getElementsByClassName:H((function(e){var t=s(e);return new D(this,(function(n){var i=[];return t.length>0&&U(n.documentElement,(function(r){if(r!==n&&r.nodeType===d){var a=r.getAttribute("class");if(a){var l=e===a;if(!l){var u=s(a);l=t.every(o(u))}l&&i.push(r)}}})),i}))}),"getElementsByClassName"),createElement:H((function(e){var t=new le;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new $,(t.attributes=new O)._ownerElement=t,t}),"createElement"),createDocumentFragment:H((function(){var e=new ve;return e.ownerDocument=this,e.childNodes=new $,e}),"createDocumentFragment"),createTextNode:H((function(e){var t=new de;return t.ownerDocument=this,t.appendData(e),t}),"createTextNode"),createComment:H((function(e){var t=new pe;return t.ownerDocument=this,t.appendData(e),t}),"createComment"),createCDATASection:H((function(e){if(-1!==e.indexOf("]]>"))throw new I(T,'data contains "]]>"');var t=new he;return t.ownerDocument=this,t.appendData(e),t}),"createCDATASection"),createProcessingInstruction:H((function(e,t){var n=new be;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n}),"createProcessingInstruction"),createAttribute:H((function(e){var t=new ue;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t}),"createAttribute"),createEntityReference:H((function(e){var t=new ye;return t.ownerDocument=this,t.nodeName=e,t}),"createEntityReference"),createElementNS:H((function(e,t){var n=new le,i=t.split(":"),r=n.attributes=new O;return n.childNodes=new $,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,r._ownerElement=n,n}),"createElementNS"),createAttributeNS:H((function(e,t){var n=new ue,i=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,n}),"createAttributeNS")},u(q,B),H(le,"Element"),le.prototype={nodeType:d,hasAttribute:H((function(e){return null!=this.getAttributeNode(e)}),"hasAttribute"),getAttribute:H((function(e){var t=this.getAttributeNode(e);return t&&t.value||""}),"getAttribute"),getAttributeNode:H((function(e){return this.attributes.getNamedItem(e)}),"getAttributeNode"),setAttribute:H((function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)}),"setAttribute"),removeAttribute:H((function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)}
81),"removeAttribute"),appendChild:H((function(e){return e.nodeType===w?this.insertBefore(e,null):oe(this,e)}),"appendChild"),setAttributeNode:H((function(e){return this.attributes.setNamedItem(e)}),"setAttributeNode"),setAttributeNodeNS:H((function(e){return this.attributes.setNamedItemNS(e)}),"setAttributeNodeNS"),removeAttributeNode:H((function(e){return this.attributes.removeNamedItem(e.nodeName)}),"removeAttributeNode"),removeAttributeNS:H((function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)}),"removeAttributeNS"),hasAttributeNS:H((function(e,t){return null!=this.getAttributeNodeNS(e,t)}),"hasAttributeNS"),getAttributeNS:H((function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""}),"getAttributeNS"),setAttributeNS:H((function(e,t,n){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+n,this.setAttributeNode(i)}),"setAttributeNS"),getAttributeNodeNS:H((function(e,t){return this.attributes.getNamedItemNS(e,t)}),"getAttributeNodeNS"),getElementsByTagName:H((function(e){return new D(this,(function(t){var n=[];return U(t,(function(i){i===t||i.nodeType!=d||"*"!==e&&i.tagName!=e||n.push(i)})),n}))}),"getElementsByTagName"),getElementsByTagNameNS:H((function(e,t){return new D(this,(function(n){var i=[];return U(n,(function(r){r===n||r.nodeType!==d||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||i.push(r)})),i}))}),"getElementsByTagNameNS")},q.prototype.getElementsByTagName=le.prototype.getElementsByTagName,q.prototype.getElementsByTagNameNS=le.prototype.getElementsByTagNameNS,u(le,B),H(ue,"Attr"),ue.prototype.nodeType=p,u(ue,B),H(ce,"CharacterData"),ce.prototype={data:"",substringData:H((function(e,t){return this.data.substring(e,e+t)}),"substringData"),appendData:H((function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length}),"appendData"),insertData:H((function(e,t){this.replaceData(e,0,t)}),"insertData"),appendChild:H((function(e){throw new Error(k[x])}),"appendChild"),deleteData:H((function(e,t){this.replaceData(e,t,"")}),"deleteData"),replaceData:H((function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}),"replaceData")},u(ce,B),H(de,"Text"),de.prototype={nodeName:"#text",nodeType:h,splitText:H((function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}),"splitText")},u(de,ce),H(pe,"Comment"),pe.prototype={nodeName:"#comment",nodeType:v},u(pe,ce),H(he,"CDATASection"),he.prototype={nodeName:"#cdata-section",nodeType:f},u(he,ce),H(fe,"DocumentType"),fe.prototype.nodeType=_,u(fe,B),H(me,"Notation"),me.prototype.nodeType=S,u(me,B),H(ge,"Entity"),ge.prototype.nodeType=g,u(ge,B),H(ye,"EntityReference"),ye.prototype.nodeType=m,u(ye,B),H(ve,"DocumentFragment"),ve.prototype.nodeName="#document-fragment",ve.prototype.nodeType=w,u(ve,B),H(be,"ProcessingInstruction"),be.prototype.nodeType=y,u(be,B),H(_e,"XMLSerializer"),_e.prototype.serializeToString=function(e,t,n,i){return we.call(e,t,n,i)},B.prototype.toString=we,H(we,"nodeSerializeToString"),H(Se,"needNamespaceDefine"),H(Ce,"addSerializedAttribute"),H(ke,"serializeToString"),H(xe,"importNode"),H(Te,"cloneNode"),H(Ee,"__set__");try{Object.defineProperty&&(Object.defineProperty(D.prototype,"length",{get:H((function(){return P(this),this.$$length}),"get")}),Object.defineProperty(B.prototype,"textContent",{get:H((function(){if(this.nodeType===d||this.nodeType===w){var e=[];return V(this,null,{enter:H((function(t){return t.nodeType===d||t.nodeType===w||(t.nodeType===y||t.nodeType===v?null:void e.push(t.nodeValue))}),"enter")}),e.join("")}return this.nodeValue}),"get"),set:H((function(e){switch(this.nodeType){case d:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}),"set")}),Ee=H((function(e,t,n){e["$$"+t]=n}),"__set__"))}catch(tvt){}return r_.DocumentType=fe,r_.DOMException=I,r_.DOMImplementation=F,r_.Element=le,r_.Node=B,r_.NodeList=$,r_.walkDOM=V,r_.XMLSerializer
81=_e,r_}H(s_,"requireConventions"),H(o_,"requireDom");var l_,u_={},c_={};function d_(){return l_||(l_=1,e=c_,t=s_().freeze,e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t
vendor: 28,727 bytes, line 81
81({Aacute:"Ã",aacute:"á",Abreve:"Ä",abreve:"Ä",ac:"â¾",acd:"â¿",acE:"â¾Ì³",Acirc:"Ã",acirc:"â",acute:"´",Acy:"Ð",acy:"а",AElig:"Ã",aelig:"æ",af:"â¡",Afr:"ð",afr:"ð",Agrave:"Ã",agrave:"à ",alefsym:"âµ",aleph:"âµ",Alpha:"Î",alpha:"α",Amacr:"Ä",amacr:"Ä",amalg:"⨿",AMP:"&",amp:"&",And:"â©",and:"â§",andand:"â©",andd:"â©",andslope:"â©",andv:"â©",ang:"â ",ange:"⦤",angle:"â ",angmsd:"â¡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"â¦",angmsdag:"⦮",angmsdah:"⦯",angrt:"â",angrtvb:"â¾",angrtvbd:"â¦",angsph:"â¢",angst:"Ã
",angzarr:"â¼",Aogon:"Ä",aogon:"Ä
",Aopf:"ð¸",aopf:"ð",ap:"â",apacir:"⩯",apE:"â©°",ape:"â",apid:"â",apos:"'",ApplyFunction:"â¡",approx:"â",approxeq:"â",Aring:"Ã
",aring:"Ã¥",Ascr:"ð",ascr:"ð¶",Assign:"â",ast:"*",asymp:"â",asympeq:"â",Atilde:"Ã",atilde:"ã",Auml:"Ã",auml:"ä",awconint:"â³",awint:"â¨",backcong:"â",backepsilon:"϶",backprime:"âµ",backsim:"â½",backsimeq:"â",Backslash:"â",Barv:"â«§",barvee:"â½",Barwed:"â",barwed:"â
",barwedge:"â
",bbrk:"âµ",bbrktbrk:"â¶",bcong:"â",Bcy:"Ð",bcy:"б",bdquo:"â",becaus:"âµ",Because:"âµ",because:"âµ",bemptyv:"⦰",bepsi:"϶",bernou:"â¬",Bernoullis:"â¬",Beta:"Î",beta:"β",beth:"â¶",between:"â¬",Bfr:"ð
",bfr:"ð",bigcap:"â",bigcirc:"â¯",bigcup:"â",bigodot:"â¨",bigoplus:"â¨",bigotimes:"â¨",bigsqcup:"â¨",bigstar:"â
",bigtriangledown:"â½",bigtriangleup:"â³",biguplus:"â¨",bigvee:"â",bigwedge:"â",bkarow:"â¤",blacklozenge:"â§«",blacksquare:"âª",blacktriangle:"â´",blacktriangledown:"â¾",blacktriangleleft:"â",blacktriangleright:"â¸",blank:"â£",blk12:"â",blk14:"â",blk34:"â",block:"â",bne:"=â¥",bnequiv:"â¡â¥",bNot:"â«",bnot:"â",Bopf:"ð¹",bopf:"ð",bot:"â¥",bottom:"â¥",bowtie:"â",boxbox:"â§",boxDL:"â",boxDl:"â",boxdL:"â",boxdl:"â",boxDR:"â",boxDr:"â",boxdR:"â",boxdr:"â",boxH:"â",boxh:"â",boxHD:"â¦",boxHd:"â¤",boxhD:"â¥",boxhd:"â¬",boxHU:"â©",boxHu:"â§",boxhU:"â¨",boxhu:"â´",boxminus:"â",boxplus:"â",boxtimes:"â ",boxUL:"â",boxUl:"â",boxuL:"â",boxul:"â",boxUR:"â",boxUr:"â",boxuR:"â",boxur:"â",boxV:"â",boxv:"â",boxVH:"â¬",boxVh:"â«",boxvH:"âª",boxvh:"â¼",boxVL:"â£",boxVl:"â¢",boxvL:"â¡",boxvl:"â¤",boxVR:"â ",boxVr:"â",boxvR:"â",boxvr:"â",bprime:"âµ",Breve:"Ë",breve:"Ë",brvbar:"¦",Bscr:"â¬",bscr:"ð·",bsemi:"â",bsim:"â½",bsime:"â",bsol:"\\",bsolb:"â§
",bsolhsub:"â",bull:"â¢",bullet:"â¢",bump:"â",bumpE:"⪮",bumpe:"â",Bumpeq:"â",bumpeq:"â",Cacute:"Ä",cacute:"Ä",Cap:"â",cap:"â©",capand:"â©",capbrcup:"â©",capcap:"â©",capcup:"â©",capdot:"â©",CapitalDifferentialD:"â
",caps:"â©ï¸",caret:"â",caron:"Ë",Cayleys:"â",ccaps:"â©",Ccaron:"Ä",ccaron:"Ä",Ccedil:"Ã",ccedil:"ç",Ccirc:"Ä",ccirc:"Ä",Cconint:"â°",ccups:"â©",ccupssm:"â©",Cdot:"Ä",cdot:"Ä",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"â",cfr:"ð ",CHcy:"Ч",chcy:"Ñ",check:"â",checkmark:"â",Chi:"Χ",chi:"Ï",cir:"â",circ:"Ë",circeq:"â",circlearrowleft:"âº",circlearrowright:"â»",circledast:"â",circledcirc:"â",circleddash:"â",CircleDot:"â",circledR:"®",circledS:"â",CircleMinus:"â",CirclePlus:"â",CircleTimes:"â",cirE:"â§",cire:"â",cirfnint:"â¨",cirmid:"⫯",cirscir:"â§",ClockwiseContourIntegral:"â²",CloseCurlyDoubleQuote:"â",CloseCurlyQuote:"â",clubs:"â£",clubsuit:"â£",Colon:"â·",colon:":",Colone:"â©´",colone:"â",coloneq:"â",comma:",",commat:"@",comp:"â",compfn:"â",complement:"â",complexes:"â",cong:"â
",congdot:"â©",Congruent:"â¡",Conint:"â¯",conint:"â®",ContourIntegral:"â®",Copf:"â",copf:"ð",coprod:"â",Coproduct:"â",COPY:"©",copy:"©",copysr:"â",CounterClockwiseContourIntegral:"â³",crarr:"âµ",Cross:"⨯",cross:"â",Cscr:"ð",cscr:"ð¸",csub:"â«",csube:"â«",csup:"â«",csupe:"â«",ctdot:"â¯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"â",cuesc:"â",cularr:"â¶",cularrp:"⤽",Cup:"â",cup:"âª",cupbrcap:"â©",CupCap:"â",cupcap:"â©",cupcup:"â©",cupdot:"â",cupor:"â©
",cups:"âªï¸",curarr:"â·",curarrm:"⤼",curlyeqprec:"â",curlyeqsucc:"â",curlyvee:"â",curlywedge:"â",curren:"¤",curvearrowleft:"â¶",curvearrowright:"â·",cuvee:"â",cuwed:"â",cwconint:"â²",cwint:"â±",cylcty:"â",Dagger:"â¡",dagger:"â ",daleth:"â¸",Darr:"â¡",dArr:"â",darr:"â",dash:"â",Dashv:"⫤",dashv:"â£",dbkarow:"â¤",dblac:"Ë",Dcaron:"Ä",dcaron:"Ä",Dcy:"Ð",dcy:"д",DD:"â
",dd:"â
",ddagger:"â¡",ddarr:"â",DDotrahd:"â¤",ddotseq:"â©·",deg:"°",Del:"â",Delta:"Î",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"ð",dfr:"ð¡",dHar:"⥥",dharl:"â",dharr:"â",DiacriticalAcute:"´",DiacriticalDot:"Ë",DiacriticalDoubleAcute:"Ë",DiacriticalGrave:"`",DiacriticalTilde:"Ë",diam:"â",Diamond:"â",diamond:"â",diamondsuit:"â¦",diams:"â¦",die:"¨",DifferentialD:"â
",digamma:"Ï",disin:"â²",div:"÷",divide:"÷",divideontimes:"â",divonx:"â",DJcy:"Ð",djcy:"Ñ",dlcorn:"â",dlcrop:"â",dollar:"$",Dopf:"ð»",dopf:"ð",Dot:"¨",dot:"Ë",DotDot:"â",doteq:"â",doteqdot:"â",DotEqual:"â",dotminus:"â¸",dotplus:"â",dotsquare:"â¡",doublebarwedge:"â",DoubleContourIntegral:"â¯",DoubleDot:"¨",DoubleDownArrow:"â",DoubleLeftArrow:"â",DoubleLeftRightArrow:"â",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"â¸",DoubleLongLeftRightArrow:"âº",DoubleLongRightArrow:"â¹",DoubleRightArrow:"â",DoubleRightTee:"â¨",DoubleUpArrow:"â",DoubleUpDownArrow:"â",DoubleVerticalBar:"â¥",DownArrow:"â",Downarrow:"â",downarrow:"â",DownArrowBar:"â¤",DownArrowUpArrow:"âµ",DownBreve:"Ì",downdownarrows:"â",downharpoonleft:"â",downharpoonright:"â",DownLeftRightVector:"â¥",DownLeftTeeVector:"â¥",DownLeftVector:"â½",DownLeftVectorBar:"â¥",DownRightTeeVector:"â¥",DownRightVector:"â",DownRightVectorBar:"â¥",DownTee:"â¤",DownTeeArrow:"â§",drbkarow:"â¤",drcorn:"â",drcrop:"â",Dscr:"ð",dscr:"ð¹",DScy:"Ð
",dscy:"Ñ",dsol:"â§¶",Dstrok:"Ä",dstrok:"Ä",dtdot:"â±",dtri:"â¿",dtrif:"â¾",duarr:"âµ",duhar:"⥯",dwangle:"⦦",DZcy:"Ð",dzcy:"Ñ",dzigrarr:"â¿",Eacute:"Ã",eacute:"é",easter:"â©®",Ecaron:"Ä",ecaron:"Ä",ecir:"â",Ecirc:"Ã",ecirc:"ê",ecolon:"â",Ecy:"Ð",ecy:"Ñ",eDDot:"â©·",Edot:"Ä",eDot:"â",edot:"Ä",ee:"â
",efDot:"â",Efr:"ð",efr:"ð¢",eg:"âª",Egrave:"Ã",egrave:"è",egs:"âª",egsdot:"âª",el:"âª",Element:"â",elinters:"â§",ell:"â",els:"âª",elsdot:"âª",Emacr:"Ä",emacr:"Ä",empty:"â
",emptyset:"â
",EmptySmallSquare:"â»",emptyv:"â
",EmptyVerySmallSquare:"â«",emsp:"â",emsp13:"â",emsp14:"â
",ENG:"Å",eng:"Å",ensp:"â",Eogon:"Ä",eogon:"Ä",Eopf:"ð¼",eopf:"ð",epar:"â",eparsl:"â§£",eplus:"⩱",epsi:"ε",Epsilon:"Î",epsilon:"ε",epsiv:"ϵ",eqcirc:"â",eqcolon:"â",eqsim:"â",eqslantgtr:"âª",eqslantless:"âª",Equal:"⩵",equals:"=",EqualTilde:"â",equest:"â",Equilibrium:"â",equiv:"â¡",equivDD:"⩸",eqvparsl:"â§¥",erarr:"⥱",erDot:"â",Escr:"â°",escr:"â¯",esdot:"â",Esim:"⩳",esim:"â",Eta:"Î",eta:"η",ETH:"Ã",eth:"ð",Euml:"Ã",euml:"ë",euro:"â¬",excl:"!",exist:"â",Exists:"â",expectation:"â°",ExponentialE:"â
",exponentiale:"â
",fallingdotseq:"â",Fcy:"Ф",fcy:"Ñ",female:"â",ffilig:"ï¬",fflig:"ï¬",ffllig:"ï¬",Ffr:"ð",ffr:"ð£",filig:"ï¬",FilledSmallSquare:"â¼",FilledVerySmallSquare:"âª",fjlig:"fj",flat:"â",fllig:"ï¬",fltns:"â±",fnof:"Æ",Fopf:"ð½",fopf:"ð",ForAll:"â",forall:"â",fork:"â",forkv:"â«",Fouriertrf:"â±",fpartint:"â¨",frac12:"½",frac13:"â
",frac14:"¼",frac15:"â
",frac16:"â
",frac18:"â
",frac23:"â
",frac25:"â
",frac34:"¾",frac35:"â
",frac38:"â
",frac45:"â
",frac56:"â
",frac58:"â
",frac78:"â
",frasl:"â",frown:"â¢",Fscr:"â±",fscr:"ð»",gacute:"ǵ",Gamma:"Î",gamma:"γ",Gammad:"Ï",gammad:"Ï",gap:"âª",Gbreve:"Ä",gbreve:"Ä",Gcedil:"Ä¢",Gcirc:"Ä",gcirc:"Ä",Gcy:"Ð",gcy:"г",Gdot:"Ä ",gdot:"Ä¡",gE:"â§",ge:"â¥",gEl:"âª",gel:"â",geq:"â¥",geqq:"â§",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"âª",gesdoto:"âª",gesdotol:"âª",gesl:"âï¸",gesles:"âª",Gfr:"ð",gfr:"ð¤",Gg:"â",gg:"â«",ggg:"â",gimel:"â·",GJcy:"Ð",gjcy:"Ñ",gl:"â·",gla:"⪥",glE:"âª",glj:"⪤",gnap:"âª",gnapprox:"âª",gnE:"â©",gne:"âª",gneq:"âª",gneqq:"â©",gnsim:"â§",Gopf:"ð¾",gopf:"ð",grave:"`",GreaterEqual:"â¥",GreaterEqualLess:"â",GreaterFullEqual:"â§",GreaterGreater:"⪢",GreaterLess:"â·",GreaterSlantEqual:"⩾",GreaterTilde:"â³",Gscr:"ð¢",gscr:"â",gsim:"â³",gsime:"âª",gsiml:"âª",Gt:"â«",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"â",gtlPar:"â¦",gtquest:"⩼",gtrapprox:"âª",gtrarr:"⥸",gtrdot:"â",gtreqless:"â",gtreqqless:"âª",gtrless:"â·",gtrsim:"â³",gvertneqq:"â©ï¸",gvnE:"â©ï¸",Hacek:"Ë",hairsp:"â",half:"½",hamilt:"â",HARDcy:"Ъ",hardcy:"Ñ",hArr:"â",harr:"â",harrcir:"â¥",harrw:"â",Hat:"^",hbar:"â",Hcirc:"Ĥ",hcirc:"Ä¥",hearts:"â¥",heartsuit:"â¥",hellip:"â¦",hercon:"â¹",Hfr:"â",hfr:"ð¥",HilbertSpace:"â",hksearow:"⤥",hkswarow:"⤦",hoarr:"â¿",homtht:"â»",hookleftarrow:"â©",hookrightarrow:"âª",Hopf:"â",hopf:"ð",horbar:"â",HorizontalLine:"â",Hscr:"â",hscr:"ð½",hslash:"â",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"â",HumpEqual:"â",hybull:"â",hyphen:"â",Iacute:"Ã",iacute:"Ã",ic:"â£",Icirc:"Ã",icirc:"î",Icy:"Ð",icy:"и",Idot:"İ",IEcy:"Ð",iecy:"е",iexcl:"¡",iff:"â",Ifr:"â",ifr:"ð¦",Igrave:"Ã",igrave:"ì",ii:"â
",iiiint:"â¨",iiint:"â",iinfin:"â§",iiota:"â©",IJlig:"IJ",ijlig:"ij",Im:"â",Imacr:"Ī",imacr:"Ä«",image:"â",ImaginaryI:"â
",imagline:"â",imagpart:"â",imath:"ı",imof:"â·",imped:"Ƶ",Implies:"â",in:"â",incare:"â
",infin:"â",infintie:"â§",inodot:"ı",Int:"â¬",int:"â«",intcal:"âº",integers:"â¤",Integral:"â«",intercal:"âº",Intersection:"â",intlarhk:"â¨",intprod:"⨼",InvisibleComma:"â£",InvisibleTimes:"â¢",IOcy:"Ð",iocy:"Ñ",Iogon:"Ä®",iogon:"į",Iopf:"ð",iopf:"ð",Iota:"Î",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"â",iscr:"ð¾",isin:"â",isindot:"âµ",isinE:"â¹",isins:"â´",isinsv:"â³",isinv:"â",it:"â¢",Itilde:"Ĩ",itilde:"Ä©",Iukcy:"Ð",iukcy:"Ñ",Iuml:"Ã",iuml:"ï",Jcirc:"Ä´",jcirc:"ĵ",Jcy:"Ð",jcy:"й",Jfr:"ð",jfr:"ð§",jmath:"È·",Jopf:"ð",jopf:"ð",Jscr:"ð¥",jscr:"ð¿",Jsercy:"Ð",jsercy:"Ñ",Jukcy:"Ð",jukcy:"Ñ",Kappa:"Î",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"Ä·",Kcy:"Ð",kcy:"к",Kfr:"ð",kfr:"ð¨",kgreen:"ĸ",KHcy:"Ð¥",khcy:"Ñ
",KJcy:"Ð",kjcy:"Ñ",Kopf:"ð",kopf:"ð",Kscr:"ð¦",kscr:"ð",lAarr:"â",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"â",Lambda:"Î",lambda:"λ",Lang:"âª",lang:"â¨",langd:"â¦",langle:"â¨",lap:"âª
",Laplacetrf:"â",laquo:"«",Larr:"â",lArr:"â",larr:"â",larrb:"â¤",larrbfs:"â¤",larrfs:"â¤",larrhk:"â©",larrlp:"â«",larrpl:"⤹",larrsim:"⥳",larrtl:"â¢",lat:"⪫",lAtail:"â¤",latail:"â¤",late:"âª",lates:"âªï¸",lBarr:"â¤",lbarr:"â¤",lbbrk:"â²",lbrace:"{",lbrack:"[",lbrke:"â¦",lbrksld:"â¦",lbrkslu:"â¦",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ä»",lcedil:"ļ",lceil:"â",lcub:"{",Lcy:"Ð",lcy:"л",ldca:"⤶",ldquo:"â",ldquor:"â",ldrdhar:"⥧",ldrushar:"â¥",ldsh:"â²",lE:"â¦",le:"â¤",LeftAngleBracket:"â¨",LeftArrow:"â",Leftarrow:"â",leftarrow:"â",LeftArrowBar:"â¤",LeftArrowRightArrow:"â",leftarrowtail:"â¢",LeftCeiling:"â",LeftDoubleBracket:"â¦",LeftDownTeeVector:"⥡",LeftDownVector:"â",LeftDownVectorBar:"â¥",LeftFloor:"â",leftharpoondown:"â½",leftharpoonup:"â¼",leftleftarrows:"â",LeftRightArrow:"â",Leftrightarrow:"â",leftrightarrow:"â",leftrightarrows:"â",leftrightharpoons:"â",leftrightsquigarrow:"â",LeftRightVector:"â¥",LeftTee:"â£",LeftTeeArrow:"â¤",LeftTeeVector:"â¥",leftthreetimes:"â",LeftTriangle:"â²",LeftTriangleBar:"â§",LeftTriangleEqual:"â´",LeftUpDownVector:"â¥",LeftUpTeeVector:"⥠",LeftUpVector:"â¿",LeftUpVectorBar:"â¥",LeftVector:"â¼",LeftVectorBar:"â¥",lEg:"âª",leg:"â",leq:"â¤",leqq:"â¦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"â©¿",lesdoto:"âª",lesdotor:"âª",lesg:"âï¸",lesges:"âª",lessapprox:"âª
",lessdot:"â",lesseqgtr:"â",lesseqqgtr:"âª",LessEqualGreater:"â",LessFullEqual:"â¦",LessGreater:"â¶",lessgtr:"â¶",LessLess:"⪡",lesssim:"â²",LessSlantEqual:"⩽",LessTilde:"â²",lfisht:"⥼",lfloor:"â",Lfr:"ð",lfr:"ð©",lg:"â¶",lgE:"âª",lHar:"⥢",lhard:"â½",lharu:"â¼",lharul:"⥪",lhblk:"â",LJcy:"Ð",ljcy:"Ñ",Ll:"â",ll:"âª",llarr:"â",llcorner:"â",Lleftarrow:"â",llhard:"⥫",lltri:"âº",Lmidot:"Ä¿",lmidot:"Å",lmoust:"â°",lmoustache:"â°",lnap:"âª",lnapprox:"âª",lnE:"â¨",lne:"âª",lneq:"âª",lneqq:"â¨",lnsim:"â¦",loang:"â¬",loarr:"â½",lobrk:"â¦",LongLeftArrow:"âµ",Longleftarrow:"â¸",longleftarrow:"âµ",LongLeftRightArrow:"â·",Longleftrightarrow:"âº",longleftrightarrow:"â·",longmapsto:"â¼",LongRightArrow:"â¶",Longrightarrow:"â¹",longrightarrow:"â¶",looparrowleft:"â«",looparrowright:"â¬",lopar:"â¦
",Lopf:"ð",lopf:"ð",loplus:"â¨",lotimes:"⨴",lowast:"â",lowbar:"_",LowerLeftArrow:"â",LowerRightArrow:"â",loz:"â",lozenge:"â",lozf:"â§«",lpar:"(",lparlt:"â¦",lrarr:"â",lrcorner:"â",lrhar:"â",lrhard:"â¥",lrm:"â",lrtri:"â¿",lsaquo:"â¹",Lscr:"â",lscr:"ð",Lsh:"â°",lsh:"â°",lsim:"â²",lsime:"âª",lsimg:"âª",lsqb:"[",lsquo:"â",lsquor:"â",Lstrok:"Å",lstrok:"Å",Lt:"âª",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"â",lthree:"â",ltimes:"â",ltlarr:"⥶",ltquest:"â©»",ltri:"â",ltrie:"â´",ltrif:"â",ltrPar:"â¦",lurdshar:"â¥",luruhar:"⥦",lvertneqq:"â¨ï¸",lvnE:"â¨ï¸",macr:"¯",male:"â",malt:"â ",maltese:"â ",Map:"â¤
",map:"â¦",mapsto:"â¦",mapstodown:"â§",mapstoleft:"â¤",mapstoup:"â¥",marker:"â®",mcomma:"⨩",Mcy:"Ð",mcy:"м",mdash:"â",mDDot:"âº",measuredangle:"â¡",MediumSpace:"â",Mellintrf:"â³",Mfr:"ð",mfr:"ðª",mho:"â§",micro:"µ",mid:"â£",midast:"*",midcir:"â«°",middot:"·",minus:"â",minusb:"â",minusd:"â¸",minusdu:"⨪",MinusPlus:"â",mlcp:"â«",mldr:"â¦",mnplus:"â",models:"â§",Mopf:"ð",mopf:"ð",mp:"â",Mscr:"â³",mscr:"ð",mstpos:"â¾",Mu:"Î",mu:"μ",multimap:"â¸",mumap:"â¸",nabla:"â",Nacute:"Å",nacute:"Å",nang:"â â",nap:"â",napE:"⩰̸",napid:"â̸",napos:"Å",napprox:"â",natur:"â®",natural:"â®",naturals:"â",nbsp:" ",nbump:"â̸",nbumpe:"â̸",ncap:"â©",Ncaron:"Å",ncaron:"Å",Ncedil:"Å
",ncedil:"Å",ncong:"â",ncongdot:"â©Ì¸",ncup:"â©",Ncy:"Ð",ncy:"н",ndash:"â",ne:"â ",nearhk:"⤤",neArr:"â",nearr:"â",nearrow:"â",nedot:"â̸",NegativeMediumSpace:"â",NegativeThickSpace:"â",NegativeThinSpace:"â",NegativeVeryThinSpace:"â",nequiv:"â¢",nesear:"⤨",nesim:"â̸",NestedGreaterGreater:"â«",NestedLessLess:"âª",NewLine:"\n",nexist:"â",nexists:"â",Nfr:"ð",nfr:"ð«",ngE:"â§Ì¸",nge:"â±",ngeq:"â±",ngeqq:"â§Ì¸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"â̸",ngsim:"âµ",nGt:"â«â",ngt:"â¯",ngtr:"â¯",nGtv:"â«Ì¸",nhArr:"â",nharr:"â®",nhpar:"⫲",ni:"â",nis:"â¼",nisd:"âº",niv:"â",NJcy:"Ð",njcy:"Ñ",nlArr:"â",nlarr:"â",nldr:"â¥",nlE:"â¦Ì¸",nle:"â°",nLeftarrow:"â",nleftarrow:"â",nLeftrightarrow:"â",nleftrightarrow:"â®",nleq:"â°",nleqq:"â¦Ì¸",nleqslant:"⩽̸",nles:"⩽̸",nless:"â®",nLl:"â̸",nlsim:"â´",nLt:"âªâ",nlt:"â®",nltri:"âª",nltrie:"â¬",nLtv:"âªÌ¸",nmid:"â¤",NoBreak:"â ",NonBreakingSpace:" ",Nopf:"â",nopf:"ð",Not:"⫬",not:"¬",NotCongruent:"â¢",NotCupCap:"â",NotDoubleVerticalBar:"â¦",NotElement:"â",NotEqual:"â ",NotEqualTilde:"â̸",NotExists:"â",NotGreater:"â¯",NotGreaterEqual:"â±",NotGreaterFullEqual:"â§Ì¸",NotGreaterGreater:"â«Ì¸",NotGreaterLess:"â¹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"âµ",NotHumpDownHump:"â̸",NotHumpEqual:"â̸",notin:"â",notindot:"âµÌ¸",notinE:"â¹Ì¸",notinva:"â",notinvb:"â·",notinvc:"â¶",NotLeftTriangle:"âª",NotLeftTriangleBar:"â§Ì¸",NotLeftTriangleEqual:"â¬",NotLess:"â®",NotLessEqual:"â°",NotLessGreater:"â¸",NotLessLess:"âªÌ¸",NotLessSlantEqual:"⩽̸",NotLessTilde:"â´",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"â",notniva:"â",notnivb:"â¾",notnivc:"â½",NotPrecedes:"â",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"â ",NotReverseElement:"â",NotRightTriangle:"â«",NotRightTriangleBar:"â§Ì¸",NotRightTriangleEqual:"â",NotSquareSubset:"â̸",NotSquareSubsetEqual:"â¢",NotSquareSuperset:"â̸",NotSquareSupersetEqual:"â£",NotSubset:"ââ",NotSubsetEqual:"â",NotSucceeds:"â",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"â¡",NotSucceedsTilde:"â¿Ì¸",NotSuperset:"ââ",NotSupersetEqual:"â",NotTilde:"â",NotTildeEqual:"â",NotTildeFullEqual:"â",NotTildeTilde:"â",NotVerticalBar:"â¤",npar:"â¦",nparallel:"â¦",nparsl:"⫽â¥",npart:"â̸",npolint:"â¨",npr:"â",nprcue:"â ",npre:"⪯̸",nprec:"â",npreceq:"⪯̸",nrArr:"â",nrarr:"â",nrarrc:"⤳̸",nrarrw:"â̸",nRightarrow:"â",nrightarrow:"â",nrtri:"â«",nrtrie:"â",nsc:"â",nsccue:"â¡",nsce:"⪰̸",Nscr:"ð©",nscr:"ð",nshortmid:"â¤",nshortparallel:"â¦",nsim:"â",nsime:"â",nsimeq:"â",nsmid:"â¤",nspar:"â¦",nsqsube:"â¢",nsqsupe:"â£",nsub:"â",nsubE:"â«
̸",nsube:"â",nsubset:"ââ",nsubseteq:"â",nsubseteqq:"â«
̸",nsucc:"â",nsucceq:"⪰̸",nsup:"â
",nsupE:"â«Ì¸",nsupe:"â",nsupset:"ââ",nsupseteq:"â",nsupseteqq:"â«Ì¸",ntgl:"â¹",Ntilde:"Ã",ntilde:"ñ",ntlg:"â¸",ntriangleleft:"âª",ntrianglelefteq:"â¬",ntriangleright:"â«",ntrianglerighteq:"â",Nu:"Î",nu:"ν",num:"#",numero:"â",numsp:"â",nvap:"ââ",nVDash:"â¯",nVdash:"â®",nvDash:"â",nvdash:"â¬",nvge:"â¥â",nvgt:">â",nvHarr:"â¤",nvinfin:"â§",nvlArr:"â¤",nvle:"â¤â",nvlt:"<â",nvltrie:"â´â",nvrArr:"â¤",nvrtrie:"âµâ",nvsim:"â¼â",nwarhk:"⤣",nwArr:"â",nwarr:"â",nwarrow:"â",nwnear:"⤧",Oacute:"Ã",oacute:"ó",oast:"â",ocir:"â",Ocirc:"Ã",ocirc:"ô",Ocy:"Ð",ocy:"о",odash:"â",Odblac:"Å",odblac:"Å",odiv:"⨸",odot:"â",odsold:"⦼",OElig:"Å",oelig:"Å",ofcir:"⦿",Ofr:"ð",ofr:"ð¬",ogon:"Ë",Ograve:"Ã",ograve:"ò",ogt:"â§",ohbar:"⦵",ohm:"Ω",oint:"â®",olarr:"âº",olcir:"⦾",olcross:"⦻",oline:"â¾",olt:"â§",Omacr:"Å",omacr:"Å",Omega:"Ω",omega:"Ï",Omicron:"Î",omicron:"ο",omid:"⦶",ominus:"â",Oopf:"ð",oopf:"ð ",opar:"⦷",OpenCurlyDoubleQuote:"â",OpenCurlyQuote:"â",operp:"⦹",oplus:"â",Or:"â©",or:"â¨",orarr:"â»",ord:"â©",order:"â´",orderof:"â´",ordf:"ª",ordm:"º",origof:"â¶",oror:"â©",orslope:"â©",orv:"â©",oS:"â",Oscr:"ðª",oscr:"â´",Oslash:"Ã",oslash:"ø",osol:"â",Otilde:"Ã",otilde:"õ",Otimes:"⨷",otimes:"â",otimesas:"⨶",Ouml:"Ã",ouml:"ö",ovbar:"â½",OverBar:"â¾",OverBrace:"â",OverBracket:"â´",OverParenthesis:"â",par:"â¥",para:"¶",parallel:"â¥",parsim:"⫳",parsl:"⫽",part:"â",PartialD:"â",Pcy:"Ð",pcy:"п",percnt:"%",period:".",permil:"â°",perp:"â¥",pertenk:"â±",Pfr:"ð",pfr:"ð",Phi:"Φ",phi:"Ï",phiv:"Ï",phmmat:"â³",phone:"â",Pi:"Î ",pi:"Ï",pitchfork:"â",piv:"Ï",planck:"â",planckh:"â",plankv:"â",plus:"+",plusacir:"⨣",plusb:"â",pluscir:"⨢",plusdo:"â",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"â",pointint:"â¨",Popf:"â",popf:"ð¡",pound:"£",Pr:"⪻",pr:"âº",prap:"⪷",prcue:"â¼",prE:"⪳",pre:"⪯",prec:"âº",precapprox:"⪷",preccurlyeq:"â¼",Precedes:"âº",PrecedesEqual:"⪯",PrecedesSlantEqual:"â¼",PrecedesTilde:"â¾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"â¨",precsim:"â¾",Prime:"â³",prime:"â²",primes:"â",prnap:"⪹",prnE:"⪵",prnsim:"â¨",prod:"â",Product:"â",profalar:"â®",profline:"â",profsurf:"â",prop:"â",Proportion:"â·",Proportional:"â",propto:"â",prsim:"â¾",prurel:"â°",Pscr:"ð«",pscr:"ð
",Psi:"Ψ",psi:"Ï",puncsp:"â",Qfr:"ð",qfr:"ð®",qint:"â¨",Qopf:"â",qopf:"ð¢",qprime:"â",Qscr:"ð¬",qscr:"ð",quaternions:"â",quatint:"â¨",quest:"?",questeq:"â",QUOT:'"',quot:'"',rAarr:"â",race:"â½Ì±",Racute:"Å",racute:"Å",radic:"â",raemptyv:"⦳",Rang:"â«",rang:"â©",rangd:"â¦",range:"⦥",rangle:"â©",raquo:"»",Rarr:"â ",rArr:"â",rarr:"â",rarrap:"⥵",rarrb:"â¥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"â¤",rarrhk:"âª",rarrlp:"â¬",rarrpl:"â¥
",rarrsim:"⥴",Rarrtl:"â¤",rarrtl:"â£",rarrw:"â",rAtail:"â¤",ratail:"â¤",ratio:"â¶",rationals:"â",RBarr:"â¤",rBarr:"â¤",rbarr:"â¤",rbbrk:"â³",rbrace:"}",rbrack:"]",rbrke:"â¦",rbrksld:"â¦",rbrkslu:"â¦",Rcaron:"Å",rcaron:"Å",Rcedil:"Å",rcedil:"Å",rceil:"â",rcub:"}",Rcy:"Ð ",rcy:"Ñ",rdca:"⤷",rdldhar:"⥩",rdquo:"â",rdquor:"â",rdsh:"â³",Re:"â",real:"â",realine:"â",realpart:"â",reals:"â",rect:"â",REG:"®",reg:"®",ReverseElement:"â",ReverseEquilibrium:"â",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"â",Rfr:"â",rfr:"ð¯",rHar:"⥤",rhard:"â",rharu:"â",rharul:"⥬",Rho:"Ρ",rho:"Ï",rhov:"ϱ",RightAngleBracket:"â©",RightArrow:"â",Rightarrow:"â",rightarrow:"â",RightArrowBar:"â¥",RightArrowLeftArrow:"â",rightarrowtail:"â£",RightCeiling:"â",RightDoubleBracket:"â§",RightDownTeeVector:"â¥",RightDownVector:"â",RightDownVectorBar:"â¥",RightFloor:"â",rightharpoondown:"â",rightharpoonup:"â",rightleftarrows:"â",rightleftharpoons:"â",rightrightarrows:"â",rightsquigarrow:"â",RightTee:"â¢",RightTeeArrow:"â¦",RightTeeVector:"â¥",rightthreetimes:"â",RightTriangle:"â³",RightTriangleBar:"â§",RightTriangleEqual:"âµ",RightUpDownVector:"â¥",RightUpTeeVector:"â¥",RightUpVector:"â¾",RightUpVectorBar:"â¥",RightVector:"â",RightVectorBar:"â¥",ring:"Ë",risingdotseq:"â",rlarr:"â",rlhar:"â",rlm:"â",rmoust:"â±",rmoustache:"â±",rnmid:"â«®",roang:"â",roarr:"â¾",robrk:"â§",ropar:"â¦",Ropf:"â",ropf:"ð£",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"â¦",rppolint:"â¨",rrarr:"â",Rrightarrow:"â",rsaquo:"âº",Rscr:"â",rscr:"ð",Rsh:"â±",rsh:"â±",rsqb:"]",rsquo:"â",rsquor:"â",rthree:"â",rtimes:"â",rtri:"â¹",rtrie:"âµ",rtrif:"â¸",rtriltri:"â§",RuleDelayed:"â§´",ruluhar:"⥨",rx:"â",Sacute:"Å",sacute:"Å",sbquo:"â",Sc:"⪼",sc:"â»",scap:"⪸",Scaron:"Å ",scaron:"Å¡",sccue:"â½",scE:"⪴",sce:"⪰",Scedil:"Å",scedil:"Å",Scirc:"Å",scirc:"Å",scnap:"⪺",scnE:"⪶",scnsim:"â©",scpolint:"â¨",scsim:"â¿",Scy:"С",scy:"Ñ",sdot:"â
",sdotb:"â¡",sdote:"⩦",searhk:"⤥",seArr:"â",searr:"â",searrow:"â",sect:"§",semi:";",seswar:"⤩",setminus:"â",setmn:"â",sext:"â¶",Sfr:"ð",sfr:"ð°",sfrown:"â¢",sharp:"â¯",SHCHcy:"Щ",shchcy:"Ñ",SHcy:"Ш",shcy:"Ñ",ShortDownArrow:"â",ShortLeftArrow:"â",shortmid:"â£",shortparallel:"â¥",ShortRightArrow:"â",ShortUpArrow:"â",shy:"Â",Sigma:"Σ",sigma:"Ï",sigmaf:"Ï",sigmav:"Ï",sim:"â¼",simdot:"⩪",sime:"â",simeq:"â",simg:"âª",simgE:"⪠",siml:"âª",simlE:"âª",simne:"â",simplus:"⨤",simrarr:"⥲",slarr:"â",SmallCircle:"â",smallsetminus:"â",smashp:"⨳",smeparsl:"⧤",smid:"â£",smile:"â£",smt:"⪪",smte:"⪬",smtes:"⪬ï¸",SOFTcy:"Ь",softcy:"Ñ",sol:"/",solb:"â§",solbar:"â¿",Sopf:"ð",sopf:"ð¤",spades:"â ",spadesuit:"â ",spar:"â¥",sqcap:"â",sqcaps:"âï¸",sqcup:"â",sqcups:"âï¸",Sqrt:"â",sqsub:"â",sqsube:"â",sqsubset:"â",sqsubseteq:"â",sqsup:"â",sqsupe:"â",sqsupset:"â",sqsupseteq:"â",squ:"â¡",Square:"â¡",square:"â¡",SquareIntersection:"â",SquareSubset:"â",SquareSubsetEqual:"â",SquareSuperset:"â",SquareSupersetEqual:"â",SquareUnion:"â",squarf:"âª",squf:"âª",srarr:"â",Sscr:"ð®",sscr:"ð",ssetmn:"â",ssmile:"â£",sstarf:"â",Star:"â",star:"â",starf:"â
",straightepsilon:"ϵ",straightphi:"Ï",strns:"¯",Sub:"â",sub:"â",subdot:"⪽",subE:"â«
",sube:"â",subedot:"â«",submult:"â«",subnE:"â«",subne:"â",subplus:"⪿",subrarr:"⥹",Subset:"â",subset:"â",subseteq:"â",subseteqq:"â«
",SubsetEqual:"â",subsetneq:"â",subsetneqq:"â«",subsim:"â«",subsub:"â«",subsup:"â«",succ:"â»",succapprox:"⪸",succcurlyeq:"â½",Succeeds:"â»",SucceedsEqual:"⪰",SucceedsSlantEqual:"â½",SucceedsTilde:"â¿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"â©",succsim:"â¿",SuchThat:"â",Sum:"â",sum:"â",sung:"âª",Sup:"â",sup:"â",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"â«",supE:"â«",supe:"â",supedot:"â«",Superset:"â",SupersetEqual:"â",suphsol:"â",suphsub:"â«",suplarr:"⥻",supmult:"â«",supnE:"â«",supne:"â",supplus:"â«",Supset:"â",supset:"â",supseteq:"â",supseteqq:"â«",supsetneq:"â",supsetneqq:"â«",supsim:"â«",supsub:"â«",supsup:"â«",swarhk:"⤦",swArr:"â",swarr:"â",swarrow:"â",swnwar:"⤪",szlig:"Ã",Tab:"\t",target:"â",Tau:"Τ",tau:"Ï",tbrk:"â´",Tcaron:"Ť",tcaron:"Å¥",Tcedil:"Å¢",tcedil:"Å£",Tcy:"Т",tcy:"Ñ",tdot:"â",telrec:"â",Tfr:"ð",tfr:"ð±",there4:"â´",Therefore:"â´",therefore:"â´",Theta:"Î",theta:"θ",thetasym:"Ï",thetav:"Ï",thickapprox:"â",thicksim:"â¼",ThickSpace:"ââ",thinsp:"â",ThinSpace:"â",thkap:"â",thksim:"â¼",THORN:"Ã",thorn:"þ",Tilde:"â¼",tilde:"Ë",TildeEqual:"â",TildeFullEqual:"â
",TildeTilde:"â",times:"Ã",timesb:"â ",timesbar:"⨱",timesd:"⨰",tint:"â",toea:"⤨",top:"â¤",topbot:"â¶",topcir:"⫱",Topf:"ð",topf:"ð¥",topfork:"â«",tosa:"⤩",tprime:"â´",TRADE:"â¢",trade:"â¢",triangle:"âµ",triangledown:"â¿",triangleleft:"â",trianglelefteq:"â´",triangleq:"â",triangleright:"â¹",trianglerighteq:"âµ",tridot:"â¬",trie:"â",triminus:"⨺",TripleDot:"â",triplus:"⨹",trisb:"â§",tritime:"⨻",trpezium:"â¢",Tscr:"ð¯",tscr:"ð",TScy:"Ц",tscy:"Ñ",TSHcy:"Ð",tshcy:"Ñ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"â¬",twoheadleftarrow:"â",twoheadrightarrow:"â ",Uacute:"Ã",uacute:"ú",Uarr:"â",uArr:"â",uarr:"â",Uarrocir:"â¥",Ubrcy:"Ð",ubrcy:"Ñ",Ubreve:"Ŭ",ubreve:"Å",Ucirc:"Ã",ucirc:"û",Ucy:"У",ucy:"Ñ",udarr:"â
",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"ð",ufr:"ð²",Ugrave:"Ã",ugrave:"ù",uHar:"⥣",uharl:"â¿",uharr:"â¾",uhblk:"â",ulcorn:"â",ulcorner:"â",ulcrop:"â",ultri:"â¸",Umacr:"Ū",umacr:"Å«",uml:"¨",UnderBar:"_",UnderBrace:"â",UnderBracket:"âµ",UnderParenthesis:"â",Union:"â",UnionPlus:"â",Uogon:"Ų",uogon:"ų",Uopf:"ð",uopf:"ð¦",UpArrow:"â",Uparrow:"â",uparrow:"â",UpArrowBar:"â¤",UpArrowDownArrow:"â
",UpDownArrow:"â",Updownarrow:"â",updownarrow:"â",UpEquilibrium:"⥮",upharpoonleft:"â¿",upharpoonright:"â¾",uplus:"â",UpperLeftArrow:"â",UpperRightArrow:"â",Upsi:"Ï",upsi:"Ï
",upsih:"Ï",Upsilon:"Î¥",upsilon:"Ï
",UpTee:"â¥",UpTeeArrow:"â¥",upuparrows:"â",urcorn:"â",urcorner:"â",urcrop:"â",Uring:"Å®",uring:"ů",urtri:"â¹",Uscr:"ð°",uscr:"ð",utdot:"â°",Utilde:"Ũ",utilde:"Å©",utri:"âµ",utrif:"â´",uuarr:"â",Uuml:"Ã",uuml:"ü",uwangle:"⦧",vangrt:"â¦",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"â
",varphi:"Ï",varpi:"Ï",varpropto:"â",vArr:"â",varr:"â",varrho:"ϱ",varsigma:"Ï",varsubsetneq:"âï¸",varsubsetneqq:"â«ï¸",varsupsetneq:"âï¸",varsupsetneqq:"â«ï¸",vartheta:"Ï",vartriangleleft:"â²",vartriangleright:"â³",Vbar:"â««",vBar:"⫨",vBarv:"â«©",Vcy:"Ð",vcy:"в",VDash:"â«",Vdash:"â©",vDash:"â¨",vdash:"â¢",Vdashl:"⫦",Vee:"â",vee:"â¨",veebar:"â»",veeeq:"â",vellip:"â®",Verbar:"â",verbar:"|",Vert:"â",vert:"|",VerticalBar:"â£",VerticalLine:"|",VerticalSeparator:"â",VerticalTilde:"â",VeryThinSpace:"â",Vfr:"ð",vfr:"ð³",vltri:"â²",vnsub:"ââ",vnsup:"ââ",Vopf:"ð",vopf:"ð§",vprop:"â",vrtri:"â³",Vscr:"ð±",vscr:"ð",vsubnE:"â«ï¸",vsubne:"âï¸",vsupnE:"â«ï¸",vsupne:"âï¸",Vvdash:"âª",vzigzag:"â¦",Wcirc:"Å´",wcirc:"ŵ",wedbar:"â©",Wedge:"â",wedge:"â§",wedgeq:"â",weierp:"â",Wfr:"ð",wfr:"ð´",Wopf:"ð",wopf:"ð¨",wp:"â",wr:"â",wreath:"â",Wscr:"ð²",wscr:"ð",xcap:"â",xcirc:"â¯",xcup:"â",xdtri:"â½",Xfr:"ð",xfr:"ðµ",xhArr:"âº",xharr:"â·",Xi:"Î",xi:"ξ",xlArr:"â¸",xlarr:"âµ",xmap:"â¼",xnis:"â»",xodot:"â¨",Xopf:"ð",xopf:"ð©",xoplus:"â¨",xotime:"â¨",xrArr:"â¹",xrarr:"â¶",Xscr:"ð³",xscr:"ð",xsqcup:"â¨",xuplus:"â¨",xutri:"â³",xvee:"â",xwedge:"â",Yacute:"Ã",yacute:"ý",YAcy:"Я",yacy:"Ñ",Ycirc:"Ŷ",ycirc:"Å·",Ycy:"Ы",ycy:"Ñ",yen:"Â¥",Yfr:"ð",yfr:"ð¶",YIcy:"Ð",yicy:"Ñ",Yopf:"ð",yopf:"ðª",Yscr:"ð´",yscr:"ð",YUcy:"Ю",yucy:"Ñ",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"Ð",zcy:"з",Zdot:"Å»",zdot:"ż",zeetrf:"â¨",ZeroWidthSpace:"â",Zeta:"Î",zeta:"ζ",Zfr:"â¨",zfr:"ð·",ZHcy:"Ð",zhcy:"ж",zigrarr:"â",Zopf:"â¤",zopf:"ð«",Zscr:"ðµ",zscr:"ð",zwj:"â",zwnj:"â"}),
81e.entityMap=e.HTML_ENTITIES),c_;var e,t}H(d_,"requireEntities");var p_,h_,f_,m_={};function g_(){if(p_)return m_;p_=1;var e=s_().NAMESPACE,t=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=new RegExp("[\\-\\.0-9"+t.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+t.source+n.source+"*(?::"+t.source+n.source+"*)?$"),r=0,a=1,s=2,o=3,l=4,u=5,c=6,d=7;function p(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,p)}function h(){}function f(t,n,i,r,a){function s(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function o(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(i,t)?i[t]:"#"===t.charAt(0)?s(parseInt(t.substr(1).replace("x","0x"))):(a.error("entity n
81ot found:"+e),e)}function l(e){if(e>x){var n=t.substring(x,e).replace(/&#?\w+;/g,o);f&&u(x),r.characters(n,0,e-x),x=e}}function u(e,n){for(;e>=d&&(n=h.exec(t));)c=n.index,d=c+n[0].length,f.lineNumber++;f.columnNumber=e-c+1}H(s,"fixedFromCharCode"),H(o,"entityReplacer"),H(l,"appendText"),H(u,"position");for(var c=0,d=0,h=/.*(?:\r\n?|\n)|.*$/g,f=r.locator,_=[{currentNSMap:n}],k={},x=0;;){try{var T=t.indexOf("<",x);if(T<0){if(!t.substr(x).match(/^\s*$/)){var E=r.doc,A=E.createTextNode(t.substr(x));E.appendChild(A),r.currentElement=A}return}switch(T>x&&l(T),t.charAt(T+1)){case"/":var L=t.indexOf(">",T+3),I=t.substring(T+2,L).replace(/[ \t\n\r]+$/g,""),$=_.pop();L<0?(I=t.substring(T+2).replace(/[\s<].*/,""),a.error("end tag name: "+I+" is not complete:"+$.tagName),L=T+1+I.length):I.match(/\s</)&&(I=I.replace(/[\s<].*/,""),a.error("end tag name: "+I+" maybe not complete"),L=T+1+I.length);var D=$.localNSMap,P=$.tagName==I;if(P||$.tagName&&$.tagName.toLowerCase()==I.toLowerCase()){if(r.endElement($.uri,$.localName,I),D)for(var O in D)Object.prototype.hasOwnProperty.call(D,O)&&r.endPrefixMapping(O);P||a.fatalError("end tag name: "+I+" is not match the current start tagName:"+$.tagName)}else _.push($);L++;break;case"?":f&&u(T),L=S(t,T,r);break;case"!":f&&u(T),L=w(t,T,r,a);break;default:f&&u(T);var M=new C,R=_[_.length-1].currentNSMap,N=(L=g(t,T,M,R,o,a),M.length);if(!M.closed&&b(t,L,M.tagName,k)&&(M.closed=!0,i.nbsp||a.warning("unclosed xml attribute")),f&&N){for(var F=m(f,{}),B=0;B<N;B++){var j=M[B];u(j.offset),j.locator=m(f,{})}r.locator=F,y(M,r,R)&&_.push(M),r.locator=f}else y(M,r,R)&&_.push(M);e.isHTML(M.uri)&&!M.closed?L=v(t,L,M.tagName,o,r):L++}}catch(tvt){if(tvt instanceof p)throw tvt;a.error("element parse error: "+tvt),L=-1}L>x?x=L:l(Math.max(T,x)+1)}}function m(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function g(t,n,i,p,h,f){function m(e,t,n){i.attributeNames.hasOwnProperty(e)&&f.fatalError("Attribute "+e+" redefined"),i.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,h),n)}var g;H(m,"addAttribute");for(var y=++n,v=r;;){var b=t.charAt(y);switch(b){case"=":if(v===a)g=t.slice(n,y),v=o;else{if(v!==s)throw new Error("attribute equal must after attrName");v=o}break;case"'":case'"':if(v===o||v===a){if(v===a&&(f.warning('attribute value must after "="'),g=t.slice(n,y)),n=y+1,!((y=t.indexOf(b,n))>0))throw new Error("attribute value no end '"+b+"' match");m(g,_=t.slice(n,y),n-1),v=u}else{if(v!=l)throw new Error('attribute value must after "="');m(g,_=t.slice(n,y),n),f.warning('attribute "'+g+'" missed start quot('+b+")!!"),n=y+1,v=u}break;case"/":switch(v){case r:i.setTagName(t.slice(n,y));case u:case c:case d:v=d,i.closed=!0;case l:case a:break;case s:i.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return f.error("unexpected end of input"),v==r&&i.setTagName(t.slice(n,y)),y;case">":switch(v){case r:i.setTagName(t.slice(n,y));case u:case c:case d:break;case l:case a:"/"===(_=t.slice(n,y)).slice(-1)&&(i.closed=!0,_=_.slice(0,-1));case s:v===s&&(_=g),v==l?(f.warning('attribute "'+_+'" missed quot(")!'),m(g,_,n)):(e.isHTML(p[""])&&_.match(/^(?:disabled|checked|selected)$/i)||f.warning('attribute "'+_+'" missed value!! "'+_+'" instead!!'),m(_,_,n));break;case o:throw new Error("attribute value missed!!")}return y;case"Â":b=" ";default:if(b<=" ")switch(v){case r:i.setTagName(t.slice(n,y)),v=c;break;case a:g=t.slice(n,y),v=s;break;case l:var _=t.slice(n,y);f.warning('attribute "'+_+'" missed quot(")!!'),m(g,_,n);case u:v=c}else switch(v){case s:i.tagName,e.isHTML(p[""])&&g.match(/^(?:disabled|checked|selected)$/i)||f.warning('attribute "'+g+'" missed value!! "'+g+'" instead2!!'),m(g,g,n),n=y,v=a;break;case u:f.warning('attribute space is required"'+g+'"!!');case c:v=a,n=y;break;case o:v=l,n=y;break;case d:throw new Error("elements closed character '/' and '>' must be connected to")}}y++}}function y(t,n,i){for(var r=t.tagName,a=null,s=t.length;s--;){var o=t[s],l=o.qName,u=o.value;if((h=l.indexOf(":"))>0)var c=o.prefix=l.slice(0,h),d=l.slice(h+1),p="xmlns"===c&&d;else d=l,c=null,p="xmlns"===l&&"";o.localName=d,!1!==p&&(null==a&&(a={},_(i,i={})),i[p]=a[p]=u,o.uri=e.XMLNS,n.startPrefixMapping(p,u))}for(s=t.length;s--;){(c=(o=t[s]).prefix)&&("xml"===c&&(o.uri=e.XML),"xmlns"!==c&&(o.uri=i[c||""]))}var h;(h=r.indexOf(":"))>0?(c=t.prefix=r.slice(0,h),d=t.localName=r.slice(h+1)):(c=null,d=t.localName=r);var f=t.uri=i[c||""];if(n.startElement(f,d,r,t),!t.closed)return t.currentNSMap=i,t.localNSMap=a,!0;if(n.endElement(f,d,r),a)for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&n.endPrefixMapping(c)}function v(e,t,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var a=e.indexOf("</"+n+">",t),s=e.substring(t+1,a);if(/[&<]/.test(s))return/^script$/i.test(n)?(r.characters(s,0,s.length),a):(s=s.replace(/&#?\w+;/g,i),r.characters(s,0,s.length),a)}return t+1}function b(e,t,n,i){var r=i[n];return null==r&&((r=e.lastIndexOf("</"+n+">"))<t&&(r=e.lastIndexOf("</"+n)),i[n]=r),r<t}function _(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function w(e,t,n,i){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(r=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,r-t-4),r+3):(i.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var r=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,r-t-9),n.endCDATA(),r+3}var a=k(e,t),s=a.length;if(s>1&&/!doctype/i.test(a[0][0])){var o=a[1][0],l=!1,u=!1;s>3&&(/^public$/i.test(a[2][0])?(l=a[3][0],u=s>4&&a[4][0]):/^system$/i.test(a[2][0])&&(u=a[3][0]));var c=a[s-1];return n.startDTD(o,l,u),n.endDTD(),c.index+c[0].length}return-1}function S(e,t,n){var i=e.indexOf("?>",t);if(i){var r=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)$/);return r?(r[0].length,n.processingInstruction(r[1],r[2]),i+2):-1}return-1}function C(){this.attributeNames={}}function k(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(e);n=r.exec(e);)if(i.push(n),n[1])return i}return H(p,"ParseError"),p.prototype=new Error,p.prototype.name=p.name,H(h,"XMLReader"),h.prototype={parse:H((function(e,t,n){var i=this.domBuilder;i.startDocument(),_(t,t={}),f(e,t,n,i,this.errorHandler),i.endDocument()}),"parse")},H(f,"parse"),H(m,"copyLocator"),H(g,"parseElementStartPart"),H(y,"appendElement"),H(v,"parseHtmlSpecialContent"),H(b,"fixSelfClosed"),H(_,"_copy"),H(w,"parseDCC"),H(S,"parseInstruction"),H(C,"ElementAttributes"),C.prototype={setTagName:H((function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e}),"setTagName"),addValue:H((function(e,t,n){if(!i.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}}),"addValue"),length:0,getLocalName:H((function(e){return this[e].localName}
81),"getLocalName"),getLocator:H((function(e){return this[e].locator}),"getLocator"),getQName:H((function(e){return this[e].qName}),"getQName"),getURI:H((function(e){return this[e].uri}),"getURI"),getValue:H((function(e){return this[e].value}),"getValue")},H(k,"split"),m_.XMLReader=h,m_.ParseError=p,m_}function y_(){if(h_)return u_;h_=1;var e=s_(),t=o_(),n=d_(),i=g_(),r=t.DOMImplementation,a=e.NAMESPACE,s=i.ParseError,o=i.XMLReader;function l(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function u(e){this.options=e||{locator:{}}}function c(e,t,n){if(!e){if(t instanceof d)return t;e=t}var i={},r=e instanceof Function;function a(t){var a=e[t];!a&&r&&(a=2==e.length?function(n){e(t,n)}:e),i[t]=a&&function(e){a("[xmldom "+t+"]\t"+e+h(n))}||function(){}}return n=n||{},H(a,"build"),a("warning"),a("error"),a("fatalError"),i}function d(){this.cdata=!1}function p(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function h(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function f(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function m(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}return H(l,"normalizeLineEndings"),H(u,"DOMParser"),u.prototype.parseFromString=function(e,t){var i=this.options,r=new o,s=i.domBuilder||new d,u=i.errorHandler,p=i.locator,h=i.xmlns||{},f=/\/x?html?$/.test(t),m=f?n.HTML_ENTITIES:n.XML_ENTITIES;p&&s.setDocumentLocator(p),r.errorHandler=c(u,s,p),r.domBuilder=i.domBuilder||s,f&&(h[""]=a.HTML),h.xml=h.xml||a.XML;var g=i.normalizeLineEndings||l;return e&&"string"==typeof e?r.parse(g(e),h,m):r.errorHandler.error("invalid doc source"),s.doc},H(c,"buildErrorHandler"),H(d,"DOMHandler"),H(p,"position"),d.prototype={startDocument:H((function(){this.doc=(new r).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)}),"startDocument"),startElement:H((function(e,t,n,i){var r=this.doc,a=r.createElementNS(e,n||t),s=i.length;m(this,a),this.currentElement=a,this.locator&&p(this.locator,a);for(var o=0;o<s;o++){e=i.getURI(o);var l=i.getValue(o),u=(n=i.getQName(o),r.createAttributeNS(e,n));this.locator&&p(i.getLocator(o),u),u.value=u.nodeValue=l,a.setAttributeNode(u)}}),"startElement"),endElement:H((function(e,t,n){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode}),"endElement"),startPrefixMapping:H((function(e,t){}),"startPrefixMapping"),endPrefixMapping:H((function(e){}),"endPrefixMapping"),processingInstruction:H((function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&p(this.locator,n),m(this,n)}),"processingInstruction"),ignorableWhitespace:H((function(e,t,n){}),"ignorableWhitespace"),characters:H((function(e,t,n){if(e=f.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(e);else i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&p(this.locator,i)}}),"characters"),skippedEntity:H((function(e){}),"skippedEntity"),endDocument:H((function(){this.doc.normalize()}),"endDocument"),setDocumentLocator:H((function(e){(this.locator=e)&&(e.lineNumber=0)}),"setDocumentLocator"),comment:H((function(e,t,n){e=f.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&p(this.locator,i),m(this,i)}),"comment"),startCDATA:H((function(){this.cdata=!0}),"startCDATA"),endCDATA:H((function(){this.cdata=!1}),"endCDATA"),startDTD:H((function(e,t,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(e,t,n);this.locator&&p(this.locator,r),m(this,r),this.doc.doctype=r}}),"startDTD"),warning:H((function(e){console.warn("[xmldom warning]\t"+e,h(this.locator))}),"warning"),error:H((function(e){console.error("[xmldom error]\t"+e,h(this.locator))}),"error"),fatalError:H((function(e){throw new s(e,this.locator)}),"fatalError")},H(h,"_locator"),H(f,"_toString"),"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){d.prototype[e]=function(){return null}}
81)),H(m,"appendElement"),u_.__DOMHandler=d,u_.normalizeLineEndings=l,u_.DOMParser=u,u_}function v_(){if(f_)return i_;f_=1;var e=o_();return i_.DOMImplementation=e.DOMImplementation,i_.XMLSerializer=e.XMLSerializer,i_.DOMParser=y_().DOMParser,i_}H(g_,"requireSax"),H(y_,"requireDomParser"),H(v_,"requireLib$1");var b_=v_(); 82 /*! @name mpd-parser @version 1.3.0 @license Apache-2.0 */const __=H((e=>!!e&&"object"==typeof e),"isObject$5"),w_=H(((...e)=>e.reduce(((e,t)=>("object"!=typeof t||Object.keys(t).forEach((n=>{Array.isArray(e[n])&&Array.isArray(t[n])?e[n]=e[n].concat(t[n]):__(e[n])&&__(t[n])?e[n]=w_(e[n],t[n]):e[n]=t[n]})),e)),{})),"merge$6"),S_=H((e=>Object.keys(e).map((t=>e[t]))),"values$1"),C_=H(((e,t)=>{const n=[];for(let i=e;i<t;i++)n.push(i);return n}),"range$1"),k_=H((e=>e.reduce(((e,t)=>e.concat(t)),[])),"flatten"),x_=H((e=>{if(!e.length)return[];const t=[];for(let n=0;n<e.length;n++)t.push(e[n]);return t}),"from"),T_=H(((e,t)=>e.reduce(((e,n,i)=>(n[t]&&e.push(i),e)),[])),"findIndexes"),E_=H(((e,t)=>S_(e.reduce(((e,n)=>(n.forEach((n=>{e[t(n)]=n})),e)),{}))),"union");var A_="INVALID_NUMBER_OF_PERIOD",L_="DASH_EMPTY_MANIFEST",I_="DASH_INVALID_XML",$_="NO_BASE_URL",D_="SEGMENT_TIME_UNSPECIFIED",P_="UNSUPPORTED_UTC_TIMING_SCHEME";const O_=H((({baseUrl:e="",source:t="",range:n="",indexRange:i=""})=>{const r={uri:t,resolvedUri:sb(e||"",t)};if(n||i){const e=(n||i).split("-");let t,a=fv.BigInt?fv.BigInt(e[0]):parseInt(e[0],10),s=fv.BigInt?fv.BigInt(e[1]):parseInt(e[1],10);a<Number.MAX_SAFE_INTEGER&&"bigint"==typeof a&&(a=Number(a)),s<Number.MAX_SAFE_INTEGER&&"bigint"==typeof s&&(s=Number(s)),t="bigint"==typeof s||"bigint"==typeof a?fv.BigInt(s)-fv.BigInt(a)+fv.BigInt(1):s-a+1,"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),r.byterange={length:t,offset:a}}return r}),"urlTypeToSegment"),M_=H((e=>{let t;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?fv.BigInt(e.offset)+fv.BigInt(e.length)-fv.BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`}),"byteRangeToString"),R_=H((e=>(e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e)),"parseEndNumber"),N_={static(e){const{duration:t,timescale:n=1,sourceDuration:i,periodDuration:r}=e,a=R_(e.endNumber),s=t/n;return"number"==typeof a?{start:0,end:a}:"number"==typeof r?{start:0,end:r/s}:{start:0,end:i/s}},dynamic(e){const{NOW:t,clientOffset:n,availabilityStartTime:i,timescale:r=1,duration:a,periodStart:s=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:l=1/0}=e,u=R_(e.endNumber),c=(t+n)/1e3,d=i+s,p=c+o-d,h=Math.ceil(p*r/a),f=Math.floor((c-d-l)*r/a),m=Math.floor((c-d)*r/a);return{start:Math.max(0,f),end:"number"==typeof u?u:Math.min(h,m)}}},F_=H((e=>t=>{const{duration:n,timescale:i=1,periodStart:r,startNumber:a=1}=e;return{number:a+t,duration:n/i,timeline:r,time:t*n}}),"toSegments"),B_=H((e=>{const{type:t,duration:n,timescale:i=1,periodDuration:r,sourceDuration:a}=e,{start:s,end:o}=N_[t](e),l=C_(s,o).map(F_(e));if("static"===t){const e=l.length-1,t="number"==typeof r?r:a;l[e].duration=t-n/i*e}return l}),"parseByDuration"),H_=H((e=>{const{baseUrl:t,initialization:n={},sourceDuration:i,indexRange:r="",periodStart:a,presentationTime:s,number:o=0,duration:l}=e;if(!t)throw new Error($_);const u=O_({baseUrl:t,source:n.sourceURL,range:n.range}),c=O_({baseUrl:t,source:t,indexRange:r});if(c.map=u,l){const t=B_(e);t.length&&(c.duration=t[0].duration,c.timeline=t[0].timeline)}else i&&(c.duration=i,c.timeline=a);return c.presentationTime=s||a,c.number=o,[c]}),"segmentsFromBase"),j_=H(((e,t,n)=>{const i=e.sidx.map?e.sidx.map:null,r=e.sidx.duration,a=e.timeline||0,s=e.sidx.byterange,o=s.offset+s.length,l=t.timescale,u=t.references.filter((e=>1!==e.referenceType)),c=[],d=e.endList?"static":"dynamic",p=e.sidx.timeline;let h,f=p,m=e.mediaSequence||0;h="bigint"==typeof t.firstOffset?fv.BigInt(o)+t.firstOffset:o+t.firstOffset;for(let g=0;g<u.length;g++){const e=t.references[g],s=e.referencedSize,o=e.subsegmentDuration;let u;u="bigint"==typeof h?h+fv.BigInt(s)-fv.BigInt(1):h+s-1;const y=H_({baseUrl:n,timescale:l,timeline:a,periodStart:p,presentationTime:f,number:m,duration:o,sourceDuration:r,indexRange:`${h}-${u}`,type:d})[0];i&&(y.map=i),c.push(y),h+="bigint"==typeof h?fv.BigInt(s):s,f+=o/l,m++}return e.segments=c,e}),"addSidxSegmentsToPlaylist$1"),U_=["AUDIO","SUBTITLES"],V_=H((e=>E_(e,(({timeline:e})=>e)).sort(((e,t)=>e.timeline>t.timeline?1:-1))),"getUniqueTimelineStarts"),q_=H(((e,t)=>{for(let n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null}),"findPlaylistWithName"),z_=H((e=>{let t=[];return Qb(e,U_,((e,n,i,r)=>{t=t.concat(e.playlists||[])})),t}),"getMediaGroupPlaylists"),W_=H((({playlist:e,mediaSequence:t})=>
82{e.mediaSequence=t,e.segments.forEach(((t,n)=>{t.number=e.mediaSequence+n}))}),"updateMediaSequenceForPlaylist"),G_=H((({oldPlaylists:e,newPlaylists:t,timelineStarts:n})=>{t.forEach((t=>{t.discontinuitySequence=n.findIndex((function({timeline:e}){return e===t.timeline}));const i=q_(e,t.attributes.NAME);if(!i)return;if(t.sidx)return;const r=t.segments[0],a=i.segments.findIndex((function(e){return Math.abs(e.presentationTime-r.presentationTime)<.016666666666666666}));if(-1===a)return W_({playlist:t,mediaSequence:i.mediaSequence+i.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),void((!i.segments.length&&t.timeline>i.timeline||i.segments.length&&t.timeline>i.segments[i.segments.length-1].timeline)&&t.discontinuitySequence--);i.segments[a].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),W_({playlist:t,mediaSequence:i.segments[a].number})}))}),"updateSequenceNumbers"),K_=H((({oldManifest:e,newManifest:t})=>{const n=e.playlists.concat(z_(e)),i=t.playlists.concat(z_(t));return t.timelineStarts=V_([e.timelineStarts,t.timelineStarts]),G_({oldPlaylists:n,newPlaylists:i,timelineStarts:t.timelineStarts}),t}),"positionManifestOnTimeline"),Y_=H((e=>e&&e.uri+"-"+M_(e.byterange)),"generateSidxKey"),Z_=H((e=>{const t=e.reduce((function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e}),{});let n=[];return Object.values(t).forEach((e=>{const t=S_(e.reduce(((e,t)=>{const n=t.attributes.id+(t.attributes.lang||"");return e[n]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[n].segments.push(...t.segments)),t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)):(e[n]=t,e[n].attributes.timelineStarts=[]),e[n].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e}),{}));n=n.concat(t)})),n.map((e=>(e.discontinuityStarts=T_(e.segments||[],"discontinuity"),e)))}),"mergeDiscontiguousPlaylists"),X_=H(((e,t)=>{const n=Y_(e.sidx),i=n&&t[n]&&t[n].sidx;return i&&j_(e,i,e.sidx.resolvedUri),e}),"addSidxSegmentsToPlaylist"),Q_=H(((e,t={})=>{if(!Object.keys(t).length)return e;for(const n in e)e[n]=X_(e[n],t);return e}),"addSidxSegmentsToPlaylists"),J_=H((({attributes:e,segments:t,sidx:n,mediaSequence:i,discontinuitySequence:r,discontinuityStarts:a},s)=>{const o={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:r,discontinuityStarts:a,timelineStarts:e.timelineStarts,mediaSequence:i,segments:t};return e.contentProtection&&(o.contentProtection=e.contentProtection),e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),n&&(o.sidx=n),s&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o}),"formatAudioPlaylist"),ew=H((({attributes:e,segments:t,mediaSequence:n,discontinuityStarts:i,discontinuitySequence:r})=>{void 0===t&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);const a={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(a.CODECS=e.codecs);const s={attributes:a,uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:i,discontinuitySequence:r,mediaSequence:n,segments:t};return e.serviceLocation&&(s.attributes.serviceLocation=e.serviceLocation),s}),"formatVttPlaylist"),tw=H(((e,t={},n=!1)=>{let i;const r=e.reduce(((e,r)=>{const a=r.attributes.role&&r.attributes.role.value||"",s=r.attributes.lang||"";let o=r.attributes.label||"main";if(s&&!r.attributes.label){const e=a?` (${a})`:"";o=`${r.attributes.lang}${e}`}e[o]||(e[o]={language:s,autoselect:!0,default:"main"===a,playlists:[],uri:""});const l=X_(J_(r,n),t);return e[o].playlists.push(l),void 0===i&&"main"===a&&(i=r,i.default=!0),e}),{});if(!i){r[Object.keys(r)[0]].default=!0}return r}),"organizeAudioPlaylists"),nw=H(((e,t={})=>e.reduce(((e,n)=>{const i=n.attributes.label||n.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(X_(ew(n),t)),e}),{})),"organizeVttPlaylists"),iw=H((e=>e.reduce(((e,t)=>t?(t.forEach((t=>{const{channel:n,language:i}=t;e[i]={autoselect:!1,default:!1,instreamId:n,language:i},t.hasOwnProperty("aspectRatio")&&(e[i].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[i].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[i]["3D"]=t["3D"])})),e):e),{})),"organizeCaptionServices"),rw=H((({attributes:e,segments:t,sidx:n,discontinuityStarts:i})=>{const r={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:i,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(r.attributes["FRAME-RATE"]=e.frameRate),e.contentProtection&&(r.contentProtection=e.contentProtection),e.serviceLocation&&(r.attributes.serviceLocation=e.serviceLocation),n&&(r.sidx=n),r}),"formatVideoPlaylist"),aw=H((({attributes:e})=>"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType),"videoOnly"),sw=H((({attributes:e})=>"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType),"audioOnly"),ow=H((({attributes:e})=>"text/vtt"===e.mimeType||"text"===e.contentType),"vttOnly"),lw=H(((e,t)=>{e.forEach((e=>{e.mediaSequence=0,e.discontinuitySequence=t.findIndex((function({timeline:t}){return t===e.timeline}
82)),e.segments&&e.segments.forEach(((e,t)=>{e.number=t}))}))}),"addMediaSequenceValues"),uw=H((e=>e?Object.keys(e).reduce(((t,n)=>{const i=e[n];return t.concat(i.playlists)}),[]):[]),"flattenMediaGroupPlaylists"),cw=H((({dashPlaylists:e,locations:t,contentSteering:n,sidxMapping:i={},previousManifest:r,eventStream:a})=>{if(!e.length)return{};const{sourceDuration:s,type:o,suggestedPresentationDelay:l,minimumUpdatePeriod:u}=e[0].attributes,c=Z_(e.filter(aw)).map(rw),d=Z_(e.filter(sw)),p=Z_(e.filter(ow)),h=e.map((e=>e.attributes.captionServices)).filter(Boolean),f={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:s,playlists:Q_(c,i)};u>=0&&(f.minimumUpdatePeriod=1e3*u),t&&(f.locations=t),n&&(f.contentSteering=n),"dynamic"===o&&(f.suggestedPresentationDelay=l),a&&a.length>0&&(f.eventStream=a);const m=0===f.playlists.length,g=d.length?tw(d,i,m):null,y=p.length?nw(p,i):null,v=c.concat(uw(g),uw(y)),b=v.map((({timelineStarts:e})=>e));return f.timelineStarts=V_(b),lw(v,f.timelineStarts),g&&(f.mediaGroups.AUDIO.audio=g),y&&(f.mediaGroups.SUBTITLES.subs=y),h.length&&(f.mediaGroups["CLOSED-CAPTIONS"].cc=iw(h)),r?K_({oldManifest:r,newManifest:f}):f}),"toM3u8"),dw=H(((e,t,n)=>{const{NOW:i,clientOffset:r,availabilityStartTime:a,timescale:s=1,periodStart:o=0,minimumUpdatePeriod:l=0}=e,u=(i+r)/1e3+l-(a+o);return Math.ceil((u*s-t)/n)}),"getLiveRValue"),pw=H(((e,t)=>{const{type:n,minimumUpdatePeriod:i=0,media:r="",sourceDuration:a,timescale:s=1,startNumber:o=1,periodStart:l}=e,u=[];let c=-1;for(let d=0;d<t.length;d++){const p=t[d],h=p.d,f=p.r||0,m=p.t||0;let g;if(c<0&&(c=m),m&&m>c&&(c=m),f<0){const o=d+1;g=o===t.length?"dynamic"===n&&i>0&&r.indexOf("$Number$")>0?dw(e,c,h):(a*s-c)/h:(t[o].t-c)/h}else g=f+1;const y=o+u.length+g;let v=o+u.length;for(;v<y;)u.push({number:v,duration:h/s,time:c,timeline:l}),c+=h,v++}return u}),"parseByTimeline"),hw=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,fw=H((e=>(t,n,i,r)=>{if("$$"===t)return"$";if(void 0===e[n])return t;const a=""+e[n];return"RepresentationID"===n?a:(r=i?parseInt(r,10):1,a.length>=r?a:`${new Array(r-a.length+1).join("0")}${a}`)}),"identifierReplacement"),mw=H(((e,t)=>e.replace(hw,fw(t))),"constructTemplateUrl"),gw=H(((e,t)=>e.duration||t?e.duration?B_(e):pw(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]),"parseTemplateInfo"),yw=H(((e,t)=>{const n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:i={sourceURL:"",range:""}}
82=e,r=O_({baseUrl:e.baseUrl,source:mw(i.sourceURL,n),range:i.range});return gw(e,t).map((t=>{n.Number=t.number,n.Time=t.time;const i=mw(e.media||"",n),a=e.timescale||1,s=e.presentationTimeOffset||0,o=e.periodStart+(t.time-s)/a;return{uri:i,timeline:t.timeline,duration:t.duration,resolvedUri:sb(e.baseUrl||"",i),map:r,number:t.number,presentationTime:o}}))}),"segmentsFromTemplate"),vw=H(((e,t)=>{const{baseUrl:n,initialization:i={}}=e,r=O_({baseUrl:n,source:i.sourceURL,range:i.range}),a=O_({baseUrl:n,source:t.media,range:t.mediaRange});return a.map=r,a}),"SegmentURLToSegmentObject"),bw=H(((e,t)=>{const{duration:n,segmentUrls:i=[],periodStart:r}=e;if(!n&&!t||n&&t)throw new Error(D_);const a=i.map((t=>vw(e,t)));let s;n&&(s=B_(e)),t&&(s=pw(e,t));return s.map(((t,n)=>{if(a[n]){const i=a[n],s=e.timescale||1,o=e.presentationTimeOffset||0;return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i.presentationTime=r+(t.time-o)/s,i}})).filter((e=>e))}),"segmentsFromList"),_w=H((({attributes:e,segmentInfo:t})=>{let n,i;t.template?(i=yw,n=w_(e,t.template)):t.base?(i=H_,n=w_(e,t.base)):t.list&&(i=bw,n=w_(e,t.list));const r={attributes:e};if(!i)return r;const a=i(n,t.segmentTimeline);if(n.duration){const{duration:e,timescale:t=1}=n;n.duration=e/t}else a.length?n.duration=a.reduce(((e,t)=>Math.max(e,Math.ceil(t.duration))),0):n.duration=0;return r.attributes=n,r.segments=a,t.base&&n.indexRange&&(r.sidx=a[0],r.segments=[]),r}),"generateSegments"),ww=H((e=>e.map(_w)),"toPlaylists"),Sw=H(((e,t)=>x_(e.childNodes).filter((({tagName:e})=>e===t))),"findChildren"),Cw=H((e=>e.textContent.trim()),"getContent"),kw=H((e=>parseFloat(e.split("/").reduce(((e,t)=>e/t)))),"parseDivisionValue"),xw=H((e=>{const t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;const[n,i,r,a,s,o]=t.slice(1);return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(r||0)+3600*parseFloat(a||0)+60*parseFloat(s||0)+parseFloat(o||0)}),"parseDuration"),Tw=H((e=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e))),"parseDate"),Ew={mediaPresentationDuration:e=>xw(e),availabilityStartTime:e=>Tw(e)/1e3,minimumUpdatePeriod:e=>xw(e),suggestedPresentationDelay:e=>xw(e),type:e=>e,timeShiftBufferDepth:e=>xw(e),start:e=>xw(e),width:e=>parseInt(e,10),height:e=>parseInt(e,10),bandwidth:e=>parseInt(e,10),frameRate:e=>kw(e),startNumber:e=>parseInt(e,10),timescale:e=>parseInt(e,10),presentationTimeOffset:e=>parseInt(e,10),duration(e){const t=parseInt(e,10);return isNaN(t)?xw(e):t},d:e=>parseInt(e,10),t:e=>parseInt(e,10),r:e=>parseInt(e,10),presentationTime:e=>parseInt(e,10),DEFAULT:e=>e},Aw=H((e=>e&&e.attributes?x_(e.attributes).reduce(((e,t)=>{const n=Ew[t.name]||Ew.DEFAULT;return e[t.name]=n(t.value),e}),{}):{}),"parseAttributes"),Lw={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},Iw=H(((e,t)=>t.length?k_(e.map((function(e){return t.map((function(t){const n=Cw(t),i=sb(e.baseUrl,n),r=w_(Aw(t),{baseUrl:i});return i!==n&&!r.serviceLocation&&e.serviceLocation&&(r.serviceLocation=e.serviceLocation),r}))}))):e),"buildBaseUrls"),$w=H((e=>{const t=Sw(e,"SegmentTemplate")[0],n=Sw(e,"SegmentList")[0],i=n&&Sw(n,"SegmentURL").map((e=>w_({tag:"SegmentURL"},Aw(e)))),r=Sw(e,"SegmentBase")[0],a=n||t,s=a&&Sw(a,"SegmentTimeline")[0],o=n||r||t,l=o&&Sw(o,"Initialization")[0],u=t&&Aw(t);u&&l?u.initialization=l&&Aw(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});const c={template:u,segmentTimeline:s&&Sw(s,"S").map((e=>Aw(e))),list:n&&w_(Aw(n),{segmentUrls:i,initialization:Aw(l)}),base:r&&w_(Aw(r),{initialization:Aw(l)})};return Object.keys(c).forEach((e=>{c[e]||delete c[e]})),c}),"getSegmentInformation"),Dw=H(((e,t,n)=>i=>{const r=Sw(i,"BaseURL"),a=Iw(t,r),s=w_(e,Aw(i)),o=$w(i);return a.map((e=>({segmentInfo:w_(n,o),attributes:w_(s,e)})))}),"inheritBaseUrls"),Pw=H((e=>e.reduce(((e,t)=>{const n=Aw(t);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());const i=Lw[n.schemeIdUri];if(i){e[i]={attributes:n};
82const r=Sw(t,"cenc:pssh")[0];if(r){const t=Cw(r);e[i].pssh=t&&e_(t)}}return e}),{})),"generateKeySystemInformation"),Ow=H((e=>{if("urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri){return("string"!=typeof e.value?[]:e.value.split(";")).map((e=>{let t,n;return n=e,/^CC\d=/.test(e)?[t,n]=e.split("="):/^CC\d$/.test(e)&&(t=e),{channel:t,language:n}}))}if("urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri){return("string"!=typeof e.value?[]:e.value.split(";")).map((e=>{const t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){const[n,i=""]=e.split("=");t.channel=n,t.language=e,i.split(",").forEach((e=>{const[n,i]=e.split(":");"lang"===n?t.language=i:"er"===n?t.easyReader=Number(i):"war"===n?t.aspectRatio=Number(i):"3D"===n&&(t["3D"]=Number(i))}))}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}))}}),"parseCaptionServiceMetadata"),Mw=H((e=>k_(Sw(e.node,"EventStream").map((t=>{const n=Aw(t),i=n.schemeIdUri;return Sw(t,"Event").map((t=>{const r=Aw(t),a=r.presentationTime||0,s=n.timescale||1,o=r.duration||0,l=a/s+e.attributes.start;return{schemeIdUri:i,value:n.value,id:r.id,start:l,end:l+o/s,messageData:Cw(t)||r.messageData,contentEncoding:n.contentEncoding,presentationTimeOffset:n.presentationTimeOffset||0}}))})))),"toEventStream"),Rw=H(((e,t,n)=>i=>{const r=Aw(i),a=Iw(t,Sw(i,"BaseURL")),s=Sw(i,"Role")[0],o={role:Aw(s)};let l=w_(e,r,o);const u=Sw(i,"Accessibility")[0],c=Ow(Aw(u));c&&(l=w_(l,{captionServices:c}));const d=Sw(i,"Label")[0];if(d&&d.childNodes.length){const e=d.childNodes[0].nodeValue.trim();l=w_(l,{label:e})}const p=Pw(Sw(i,"ContentProtection"));Object.keys(p).length&&(l=w_(l,{contentProtection:p}));const h=$w(i),f=Sw(i,"Representation"),m=w_(n,h);return k_(f.map(Dw(l,a,m)))}),"toRepresentations"),Nw=H(((e,t)=>(n,i)=>{const r=Iw(t,Sw(n.node,"BaseURL")),a=w_(e,{periodStart:n.attributes.start});"number"==typeof n.attributes.duration&&(a.periodDuration=n.attributes.duration);const s=Sw(n.node,"AdaptationSet"),o=$w(n.node);return k_(s.map(Rw(a,r,o)))}),"toAdaptationSets"),Fw=H(((e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;const n=w_({serverURL:Cw(e[0])},Aw(e[0]));return n.queryBeforeStart="true"===n.queryBeforeStart,n}),"generateContentSteeringInformation"),Bw=H((({attributes:e,priorPeriodAttributes:t,mpdType:n})=>"number"==typeof e.start?e.start:t&&"number"==typeof t.start&&"number"==typeof t.duration?t.start+t.duration:t||"static"!==n?null:0),"getPeriodStart"),Hw=H(((e,t={})=>{const{manifestUri:n="",NOW:i=Date.now(),clientOffset:r=0,eventHandler:a=H((function(){}),"eventHandler")}=t,s=Sw(e,"Period");if(!s.length)throw new Error(A_);const o=Sw(e,"Location"),l=Aw(e),u=Iw([{baseUrl:n}],Sw(e,"BaseURL")),c=Sw(e,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=i,l.clientOffset=r,o.length&&(l.locations=o.map(Cw));const d=[];return s.forEach(((e,t)=>{const n=Aw(e),i=d[t-1];n.start=Bw({attributes:n,priorPeriodAttributes:i?i.attributes:null,mpdType:l.type}),d.push({node:e,attributes:n})})),{locations:l.locations,contentSteeringInfo:Fw(c,a),representationInfo:k_(d.map(Nw(l,u))),eventStream:k_(d.map(Mw))}}),"inheritAttributes"),jw=H((e=>{if(""===e)throw new Error(L_);const t=new b_.DOMParser;let n,i;try{n=t.parseFromString(e,"application/xml"),i=n&&"MPD"===n.documentElement.tagName?n.documentElement:null}catch(tvt){}if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error(I_);return i}),"stringToMpdXml"),Uw=H((e=>{const t=Sw(e,"UTCTiming")[0];if(!t)return null;const n=Aw(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;default:throw new Error(P_)}return n}),"parseUTCTimingScheme"),Vw=H(((e,t={})=>{const n=Hw(jw(e),t),i=ww(n.representationInfo);return cw({dashPlaylists:i,locations:n.locations,contentSteering:n.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:n.eventStream})}),"parse$2"),qw=H((e=>Uw(jw(e))),"parseUTCTiming");var zw,Ww,Gw,Kw;function Yw(){if(Ww)return zw;Ww=1;var e=Math.pow(2,32);return zw={getUint64:H((function(t){var n,i=new DataView(t.buffer,t.byteOffset,t.byteLength);return i.getBigUint64?(n=i.getBigUint64(0))<Number.MAX_SAFE_INTEGER?
82Number(n):n:i.getUint32(0)*e+i.getUint32(4)}),"getUint64"),MAX_UINT32:e}}function Zw(){if(Kw)return Gw;Kw=1;var e=Yw().getUint64;return Gw=H((function(t){var n=new DataView(t.buffer,t.byteOffset,t.byteLength),i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:n.getUint32(4),timescale:n.getUint32(8)},r=12;0===i.version?(i.earliestPresentationTime=n.getUint32(r),i.firstOffset=n.getUint32(r+4),r+=8):(i.earliestPresentationTime=e(t.subarray(r)),i.firstOffset=e(t.subarray(r+8)),r+=16),r+=2;var a=n.getUint16(r);for(r+=2;a>0;r+=12,a--)i.references.push({referenceType:(128&t[r])>>>7,referencedSize:2147483647&n.getUint32(r),subsegmentDuration:n.getUint32(r+4),startsWithSap:!!(128&t[r+8]),sapType:(112&t[r+8])>>>4,sapDeltaTime:268435455&n.getUint32(r+8)});return i}),"parseSidx")}H(Yw,"requireNumbers"),H(Zw,"requireParseSidx");const Xw=dv(Zw());var Qw=qb([73,68,51]),Jw=H((function(e,t){void 0===t&&(t=0);var n=(e=qb(e))[t+5],i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&n)>>4?i+20:i+10}),"getId3Size"),eS=H((function e(t,n){return void 0===n&&(n=0),(t=qb(t)).length-n<10||!Xb(t,Qw,{offset:n})?n:e(t,n+=Jw(t,n))}),"getId3Offset"),tS=H((function(e){return"string"==typeof e?Yb(e):e}),"normalizePath"),nS=H((function(e){return Array.isArray(e)?e.map((function(e){return tS(e)})):[tS(e)]}),"normalizePaths"),iS=H((function e(t,n,i){void 0===i&&(i=!1),n=nS(n),t=qb(t);var r=[];if(!n.length)return r;for(var a=0;a<t.length;){var s=(t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3])>>>0,o=t.subarray(a+4,a+8);if(0===s)break;var l=a+s;if(l>t.length){if(i)break;l=t.length}var u=t.subarray(a+8,l);Xb(o,n[0])&&(1===n.length?r.push(u):r.push.apply(r,e(u,n.slice(1),i))),a=l}return r}),"findBox"),rS={EBML:qb([26,69,223,163]),DocType:qb([66,130]),Segment:qb([24,83,128,103]),SegmentInfo:qb([21,73,169,102]),Tracks:qb([22,84,174,107]),Track:qb([174]),TrackNumber:qb([215]),DefaultDuration:qb([35,227,131]),TrackEntry:qb([174]),TrackType:qb([131]),FlagDefault:qb([136]),CodecID:qb([134]),CodecPrivate:qb([99,162]),VideoTrack:qb([224]),AudioTrack:qb([225]),Cluster:qb([31,67,182,117]),Timestamp:qb([231]),TimestampScale:qb([42,215,177]),BlockGroup:qb([160]),BlockDuration:qb([155]),Block:qb([161]),SimpleBlock:qb([163])},aS=[128,64,32,16,8,4,2,1],sS=H((function(e){for(var t=1,n=0;n<aS.length&&!(e&aS[n]);n++)t++;return t}),"getLength"),oS=H((function(e,t,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var r=sS(e[t]),a=e.subarray(t,t+r);return n&&((a=Array.prototype.slice.call(e,t,t+r))[0]^=aS[r-1]),{length:r,value:Gb(a,{signed:i}),bytes:a}}),"getvint"),lS=H((function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map((function(t){return e(t)})):"number"==typeof t?Kb(t):t}),"normalizePath"),uS=H((function(e){return Array.isArray(e)?e.map((function(e){return lS(e)})):[lS(e)]}),"normalizePaths"),cS=H((function e(t,n,i){if(i>=n.length)return n.length;var r=oS(n,i,!1);if(Xb(t.bytes,r.bytes))return i;var a=oS(n,i+r.length);return e(t,n,i+a.length+a.value+r.length)}),"getInfinityDataSize"),dS=H((function e(t,n){n=uS(n),t=qb(t);var i=[];if(!n.length)return i;for(var r=0;r<t.length;){var a=oS(t,r,!1),s=oS(t,r+a.length),o=r+a.length+s.length;127===s.value&&(s.value=cS(a,t,o),s.value!==t.length&&(s.value-=o));var l=o+s.value>t.length?t.length:o+s.value,u=t.subarray(o,l);Xb(n[0],a.bytes)&&(1===n.length?i.push(u):i=i.concat(e(u,n.slice(1)))),r+=a.length+s.length+u.length}return i}),"findEbml"),pS=qb([0,0,0,1]),hS=qb([0,0,1]),fS=qb([0,0,3]),mS=H((function(e){for(var t=[],n=1;n<e.length-2;)Xb(e.subarray(n,n+3),fS)&&(t.push(n+2),n++),n++;if(0===t.length)return e;var i=e.length-t.length,r=new Uint8Array(i),a=0;for(n=0;n<i;a++,n++)a===t[0]&&(a++,t.shift()),r[n]=e[a];return r}),"discardEmulationPreventionBytes"),gS=H((function(e,t,n,i){e=qb(e),n=[].concat(n);for(var r,a=0,s=0;a<e.length&&(s<i||r);){var o=void 0;if(Xb(e.subarray(a),pS)?o=4:Xb(e.subarray(a),hS)&&(o=3),o){if(s++,r)return mS(e.subarray(r,a));var l=void 0;"h264"===t?l=31&e[a+o]:"h265"===t&&(l=e[a+o]>>1&63),-1!==n.indexOf(l)&&(r=a+o),a+=o+("h264"===t?1:2)}else a++}return e.subarray(0,0)}),"findNal"),yS=H((function(e,t,n){return gS(e,"h264",t,n)}
82),"findH264Nal"),vS=H((function(e,t,n){return gS(e,"h265",t,n)}),"findH265Nal"),bS={webm:qb([119,101,98,109]),matroska:qb([109,97,116,114,111,115,107,97]),flac:qb([102,76,97,67]),ogg:qb([79,103,103,83]),ac3:qb([11,119]),riff:qb([82,73,70,70]),avi:qb([65,86,73]),wav:qb([87,65,86,69]),"3gp":qb([102,116,121,112,51,103]),mp4:qb([102,116,121,112]),fmp4:qb([115,116,121,112]),mov:qb([102,116,121,112,113,116]),moov:qb([109,111,111,118]),moof:qb([109,111,111,102])},_S={aac:H((function(e){var t=eS(e);return Xb(e,[255,16],{offset:t,mask:[255,22]})}),"aac"),mp3:H((function(e){var t=eS(e);return Xb(e,[255,2],{offset:t,mask:[255,6]})}),"mp3"),webm:H((function(e){var t=dS(e,[rS.EBML,rS.DocType])[0];return Xb(t,bS.webm)}),"webm"),mkv:H((function(e){var t=dS(e,[rS.EBML,rS.DocType])[0];return Xb(t,bS.matroska)}),"mkv"),mp4:H((function(e){return!_S["3gp"](e)&&!_S.mov(e)&&(!(!Xb(e,bS.mp4,{offset:4})&&!Xb(e,bS.fmp4,{offset:4}))||(!(!Xb(e,bS.moof,{offset:4})&&!Xb(e,bS.moov,{offset:4}))||void 0))}),"mp4"),mov:H((function(e){return Xb(e,bS.mov,{offset:4})}),"mov"),"3gp":H((function(e){return Xb(e,bS["3gp"],{offset:4})}),"gp"),ac3:H((function(e){var t=eS(e);return Xb(e,bS.ac3,{offset:t})}),"ac3"),ts:H((function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1}),"ts"),flac:H((function(e){var t=eS(e);return Xb(e,bS.flac,{offset:t})}),"flac"),ogg:H((function(e){return Xb(e,bS.ogg)}),"ogg"),avi:H((function(e){return Xb(e,bS.riff)&&Xb(e,bS.avi,{offset:8})}),"avi"),wav:H((function(e){return Xb(e,bS.riff)&&Xb(e,bS.wav,{offset:8})}),"wav"),h264:H((function(e){return yS(e,7,3).length}),"h264"),h265:H((function(e){return vS(e,[32,33],3).length}),"h265")},wS=Object.keys(_S).filter((function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e})).concat(["ts","h264","h265"]);wS.forEach((function(e){var t=_S[e];_S[e]=function(e){return t(qb(e))}}));var SS,CS,kS=_S,xS=H((function(e){e=qb(e);for(var t=0;t<wS.length;t++){var n=wS[t];if(kS[n](e))return n}return""}),"detectContainerForBytes"),TS=H((function(e){return iS(e,["moof"]).length>0}),"isLikelyFmp4MediaSegment");function ES(){if(CS)return SS;CS=1;var e,t,n,i,r,a,s,o=9e4;return e=H((function(e){return e*o}),"secondsToVideoTs"),t=H((function(e,t){return e*t}),"secondsToAudioTs"),n=H((function(e){return e/o}),"videoTsToSeconds"),i=H((function(e,t){return e/t}),"audioTsToSeconds"),r=H((function(t,n){return e(i(t,n))}),"audioTsToVideoTs"),a=H((function(e,i){return t(n(e),i)}),"videoTsToAudioTs"),s=H((function(e,t,i){return n(i?e:e-t)}),"metadataTsToSeconds"),SS={ONE_SECOND_IN_TS:o,secondsToVideoTs:e,secondsToAudioTs:t,videoTsToSeconds:n,audioTsToSeconds:i,audioTsToVideoTs:r,videoTsToAudioTs:a,metadataTsToSeconds:s}}H(ES,"requireClock");var AS=ES(),LS="8.12.0"; 83 /** 84 * @license 85 * Video.js 8.12.0 <http://videojs.com/> 86 * Copyright Brightcove, Inc. <https://www.brightcove.com/> 87 * Available under Apache License Version 2.0 88 * <https://github.com/videojs/video.js/blob/main/LICENSE> 89 * 90 * Includes vtt.js <https://github.com/mozilla/vtt.js> 91 * Available under Apache License Version 2.0 92 * <https://github.com/mozilla/vtt.js/blob/main/LICENSE> 93 */const IS={},$S=H((function(e,t){return IS[e]=IS[e]||[],t&&(IS[e]=IS[e].concat(t)),IS[e]}),"hooks"),DS=H((function(e,t){$S(e,t)}),"hook"),PS=H((function(e,t){const n=$S(e).indexOf(t);return!(n<=-1)&&(IS[e]=IS[e].slice(),IS[e].splice(n,1),!0)}),"removeHook"),OS=H((function(e,t){$S(e,[].concat(t).map((t=>{const n=H(((...i)=>(PS(e,n),t(...i))),"wrapper");return n})))}),"hookOnce"),MS={prefixed:!0},RS=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],NS=RS[0];let FS;for(let to=0;to<RS.length;to++)if(RS[to][1]in bv){FS=RS[to];break}if(FS){for(let e=0;e<FS.length;e++)MS[NS[e]]=FS[e];MS.prefixed=FS[0]!==NS[0]}let BS=[];const HS=H(((e,t,n)=>(i,r,a)=>{const s=t.levels[r],o=new RegExp(`^(${s})$`);let l=e;if("log"!==i&&a.unshift(i.toUpperCase()+":"),n&&(l=`%c${e}`,a.unshift(n)),a.unshift(l+":"),BS){BS.push([].concat(a));const e=BS.length-1e3;BS.splice(0,e>0?e:0)}if(!fv.console)return;let u=fv.console[i];u||"debug"!==i||(u=fv.console.info||fv.console.log),u&&s&&o.test(i)&&u[Array.isArray(a)?"apply":"call"](fv.console,a)}),"LogByTypeFactory");function jS(e,t=":",n=""){let i,r="info";const a=H((function(...e){i("log",r,e)}),"log");return i=HS(e,a,n),a.createLogger=(i,r,a)=>{const s=void 0!==r?r:t;return jS(`${e} ${s} ${i}`,s,void 0!==a?a:n)},a.createNewLogger=(e,t,n)=>jS(e,t,n),a.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},a.level=e=>{if("string"==typeof e){if(!a.levels.hasOwnProperty(e))throw new Error(`"${e}" in not a valid log level`);r=e}return r},a.history=()=>BS?[].concat(BS):[],a.history.filter=e=>(BS||[]).filter((t=>new RegExp(`.*${e}.*`).test(t[0]))),a.history.clear=()=>{BS&&(BS.length=0)},a.history.disable=()=>{null!==BS&&(BS.length=0,BS=null)},a.history.enable=()=>{null===BS&&(BS=[])},a.error=(...e)=>i("error",r,e),a.warn=(...e)=>i("warn",r,e),a.debug=(...e)=>i("debug",r,e),a}H(jS,"createLogger$1");const US=jS("VIDEOJS"),VS=US.createLogger,qS=Object.prototype.toString,zS=H((function(e){return KS(e)?Object.keys(e):[]}),"keys");function WS(e,t){zS(e).forEach((n=>t(e[n],n)))}function GS(e,t,n=0){return zS(e).reduce(((n,i)=>t(n,e[i],i)),n)}function KS(e){return!!e&&"object"==typeof e}function YS(e){return KS(e)&&"[object Object]"===qS.call(e)&&e.constructor===Object}function ZS(...e){const t={};return e.forEach((e=>{e&&WS(e,((e,n)=>{YS(e)?(YS(t[n])||(t[n]={}),t[n]=ZS(t[n],e)):t[n]=e}))})),t}function XS(e={}){const t=[];for(const n in e)if(e.hasOwnProperty(n)){const i=e[n];t.push(i)}return t}function QS(e,t,n,i=!0){const r=H((n=>Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0})),"set"),a={configurable:!0,enumerable:!0,get(){const e=n();return r(e),e}};return i&&(a.set=r),Object.defineProperty(e,t,a)}H(WS,"each"),H(GS,"reduce$1"),H(KS,"isObject$4"),H(YS,"isPlain"),H(ZS,"merge$1$1"),H(XS,"values"),H(QS,"defineLazyProperty");var JS=Object.freeze({__proto__:null,each:WS,reduce:GS,isObject:KS,isPlain:YS,merge:ZS,values:XS,defineLazyProperty:QS});let eC,tC=!1,nC=null,iC=!1,rC=!1,aC=!1,sC=!1,oC=!1,lC=null,uC=null,cC=null,dC=!1,pC=!1,hC=!1,fC=!1,mC=!1,gC=!1,yC=!1;const vC=Boolean(xC()&&("ontouchstart"in fv||fv.navigator.maxTouchPoints||fv.DocumentTouch&&fv.document instanceof fv.DocumentTouch)),bC=fv.navigator&&fv.navigator.userAgentData;if(bC&&bC.platform&&bC.brands&&(iC="Android"===bC.platform,aC=Boolean(bC.brands.find((e=>"Microsoft Edge"===e.brand))),sC=Boolean(bC.brands.find((e=>"Chromium"===e.brand))),oC=!aC&&sC,lC=uC=(bC.brands.find((e=>"Chromium"===e.brand))||{}).version||null,pC="Windows"===bC.platform),!sC){const e=fv.navigator&&fv.navigator.userAgent||"";tC=/iPod/i.test(e),nC=function(){const t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),iC=/Android/i.test(e),eC=function(){const t=e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;const n=t[1]&&parseFloat(t[1]),i=t[2]&&parseFloat(t[2]);return n&&i?parseFloat(t[1]+"."+t[2]):n||null}(),rC=/Firefox/i.test(e),aC=/Edg/i.test(e),sC=/Chrome/i.test(e)||/CriOS/i.test(e),oC=!aC&&sC,lC=uC=function(){const t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),cC=function(){const t=/MSIE\s(\d+)\.\d/.exec(e);let n=t&&parseFloat(t[1]);return!n&&/Trident\/7.0/i.test(e)&&/rv:11.0/.test(e)&&(n=11),n}(),mC=/Tizen/i.test(e),gC=/Web0S/i.test(e),yC=mC||gC,dC=/Safari/i.test(e)&&!oC&&!iC&&!aC&&!yC,pC=/Windows/i.test(e),hC=/iPad/i.test(e)||dC&&vC&&!/iPhone/i.test(e),fC=/iPhone/i.test(e)&&!hC}const _C=fC||hC||tC,wC=(dC||_C)&&!oC;var SC=Object.freeze({__proto__:null,get IS_IPOD(){return tC},get IOS_VERSION(){return nC},get IS_ANDROID(){return iC},get ANDROID_VERSION(){return eC},get IS_FIREFOX(){return rC},get IS_EDGE(){return aC},get IS_CHROMIUM(){return sC},get IS_CHROME(){return oC},get CHROMIUM_VERSION(){return lC},get CHROME_VERSION(){return uC},get IE_VERSION(){return cC},get IS_SAFARI(){return dC},get IS_WINDOWS(){return pC},get IS_IPAD(){return hC},get IS_IPHONE(){return fC},get IS_TIZEN(){return mC},get IS_WEBOS(){return gC},get IS_SMART_TV(){return yC},TOUCH_ENABLED:vC,IS_IOS:_C,IS_ANY_SAFARI:wC});function CC(e){return"string"==typeof e&&Boolean(e.trim())}function kC(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function xC(){return bv===fv.document}function TC(e){return KS(e)&&1===e.nodeType}function EC(){try{return fv.parent!==fv.self}catch(e){return!0}}function AC(e){return function(t,n){if(!CC(t))return bv[e](null);CC(n)&&(n=bv.querySelector(n));const i=TC(n)?n:bv;return i[e]&&i[e](t)}}function LC(e="div",t={},n={},i){const r=bv.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){const n=t[e];"textContent"===e?IC(r,n):r[e]===n&&"tabIndex"!==e||(r[e]=n)}
vendor: 2,075 bytes, line 93
93)),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),i&&YC(r,i),r}function IC(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function $C(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function DC(e,t){return kC(t),e.classList.contains(t)}function PC(e,...t){return e.classList.add(...t.reduce(((e,t)=>e.concat(t.split(/\s+/))),[])),e}function OC(e,...t){return e?(e.classList.remove(...t.reduce(((e,t)=>e.concat(t.split(/\s+/))),[])),e):(US.warn("removeClass was called with an element that doesn't exist"),null)}function MC(e,t,n){return"function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=void 0),t.split(/\s+/).forEach((t=>e.classList.toggle(t,n))),e}function RC(e,t){Object.getOwnPropertyNames(t).forEach((function(n){const i=t[n];null==i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)}))}function NC(e){const t={},n=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(e&&e.attributes&&e.attributes.length>0){const i=e.attributes;for(let e=i.length-1;e>=0;e--){const r=i[e].name;let a=i[e].value;n.includes(r)&&(a=null!==a),t[r]=a}}return t}function FC(e,t){return e.getAttribute(t)}function BC(e,t,n){e.setAttribute(t,n)}function HC(e,t){e.removeAttribute(t)}function jC(){bv.body.focus(),bv.onselectstart=function(){return!1}}function UC(){bv.onselectstart=function(){return!0}}function VC(e){if(e&&e.getBoundingClientRect&&e.parentNode){const t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((e=>{void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(ek(e,"height"))),n.width||(n.width=parseFloat(ek(e,"width"))),n}}function qC(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};const t=e.offsetWidth,n=e.offsetHeight;let i=0,r=0;for(;e.offsetParent&&e!==bv[MS.fullscreenElement];)i+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:i,top:r,width:t,height:n}}function zC(e,t){const n={x:0,y:0};if(_C){let t=e;for(;t&&"html"!==t.nodeName.toLowerCase();){const e=ek(t,"transform");
93if(/^matrix/.test(e)){const t=e.slice(7,-1).split(/,\s/).map(Number);n.x+=t[4],n.y+=t[5]}else if(/^matrix3d/.test(e)){const t=e.slice(9,-1).split(/,\s/).map(Number);n.x+=t[12],n.y+=t[13]}t=t.parentNode}}const i={},r=qC(t.target),a=qC(e),s=a.width,o=a.height;let l=t.offsetY-(a.top-r.top),u=t.offsetX-(a.left-r.left);return t.changedTouches&&(u=t.changedTouches[0].pageX-a.left,l=t.changedTouches[0].pageY+a.top,_C&&(u-=n.x,l-=n.y)),i.y=1-Math.max(0,Math.min(1,l/o)),i.x=Math.max(0,Math.min(1,u/s)),i}function WC(e){return KS(e)&&3===e.nodeType}function GC(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function KC(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((e=>("function"==typeof e&&(e=e()),TC(e)||WC(e)?e:"string"==typeof e&&/\S/.test(e)?bv.createTextNode(e):void 0))).filter((e=>e))}function YC(e,t){return KC(t).forEach((t=>e.appendChild(t))),e}function ZC(e,t){return YC(GC(e),t)}function XC(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}H(CC,"isNonBlankString"),H(kC,"throwIfWhitespace"),H(xC,"isReal"),H(TC,"isEl"),H(EC,"isInFrame"),H(AC,"createQuerier"),H(LC,"createEl"),H(IC,"textContent"),H($C,"prependTo"),H(DC,"hasClass"),H(PC,"addClass$1"),H(OC,"removeClass$1"),H(MC,"toggleClass"),H(RC,"setAttributes"),H(NC,"getAttributes"),H(FC,"getAttribute"),H(BC,"setAttribute"),H(HC,"removeAttribute"),H(jC,"blockTextSelection"),H(UC,"unblockTextSelection"),H(VC,"getBoundingClientRect"),H(qC,"findPosition"),H(zC,"getPointerPosition"),H(WC,"isTextNode"),H(GC,"emptyEl"),H(KC,"normalizeContent"),H(YC,"appendContent"),H(ZC,"insertContent"),H(XC,"isSingleLeftClick");const QC=AC("querySelector"),JC=AC("querySelectorAll");function ek(e,t){if(!e||!t)return"";if("function"==typeof fv.getComputedStyle){let n;try{n=fv.getComputedStyle(e)}catch(tvt){return""}return n?n.getPropertyValue(t)||n[t]:""}return""}function tk(e){[...bv.styleSheets].forEach((t=>{try{const n=[...t.cssRules].map((e=>e.cssText)).join(""),i=bv.createElement("style");i.textContent=n,e.document.head.appendChild(i)}catch(tvt){const i=bv.createElement("link");i.rel="stylesheet",i.type=t.type,i.media=t.media.mediaText,i.href=t.href,e.document.head.appendChild(i)}}))}H(ek,"computedStyle"),H(tk,"copyStyleSheetsToWindow");var nk=Object.freeze({__proto__:null,isReal:xC,isEl:TC,isInFrame:EC,createEl:LC,textContent:IC,prependTo:$C,hasClass:DC,addClass:PC,removeClass:OC,toggleClass:MC,setAttributes:RC,getAttributes:NC,getAttribute:FC,setAttribute:BC,removeAttribute:HC,blockTextSelection:jC,unblockTextSelection:UC,getBoundingClientRect:VC,findPosition:qC,getPointerPosition:zC,isTextNode:WC,emptyEl:GC,normalizeContent:KC,appendContent:YC,insertContent:ZC,isSingleLeftClick:XC,$:QC,$$:JC,computedStyle:ek,copyStyleSheetsToWindow:tk});let ik,rk=!1;const ak=H((function(){if(!1===ik.options.autoSetup)return;const e=Array.prototype.slice.call(bv.getElementsByTagName("video")),t=Array.prototype.slice.call(bv.getElementsByTagName("audio")),n=Array.prototype.slice.call(bv.getElementsByTagName("video-js")),i=e.concat(t,n);if(i&&i.length>0)for(let r=0,a=i.length;r<a;r++){const e=i[r];if(!e||!e.getAttribute){sk(1);break}if(void 0===e.player){null!==e.getAttribute("data-setup")&&ik(e)}}else rk||sk(1)}),"autoSetup");function sk(e,t){xC()&&(t&&(ik=t),fv.setTimeout(ak,e))}function ok(){rk=!0,fv.removeEventListener("load",ok)}H(sk,"autoSetupTimeout"),H(ok,"setWindowLoaded"),xC()&&("complete"===bv.readyState?ok():fv.addEventListener("load",ok));const lk=H((function(e){const t=bv.createElement("style");return t.className=e,t}),"createStyleElement"),uk=H((function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t}),"setTextContent");var ck=new WeakMap;let dk,pk=3;function hk(){return pk++}function fk(e,t){if(!ck.has(e))return;const n=ck.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&ck.delete(e)}
93function mk(e,t,n,i){n.forEach((function(n){e(t,n,i)}))}function gk(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(H(t,"returnTrue"),H(n,"returnFalse"),!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){const i=e||fv.event;e={};for(const t in i)"layerX"!==t&&"layerY"!==t&&"keyLocation"!==t&&"webkitMovementX"!==t&&"webkitMovementY"!==t&&"path"!==t&&("returnValue"===t&&i.preventDefault||(e[t]=i[t]));if(e.target||(e.target=e.srcElement||bv),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){const t=bv.documentElement,n=bv.body;e.pageX=e.clientX+(t&&t.scrollLeft||n&&n.scrollLeft||0)-(t&&t.clientLeft||n&&n.clientLeft||0),e.pageY=e.clientY+(t&&t.scrollTop||n&&n.scrollTop||0)-(t&&t.clientTop||n&&n.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}H(hk,"newGUID"),H(fk,"_cleanUpEvents"),H(mk,"_handleMultipleEvents"),H(gk,"fixEvent");const yk=H((function(){if("boolean"!=typeof dk){dk=!1;try{const e=Object.defineProperty({},"passive",{get(){dk=!0}});fv.addEventListener("test",null,e),fv.removeEventListener("test",null,e)}catch(tvt){}}return dk}),"supportsPassive"),vk=["touchstart","touchmove"];function bk(e,t,n){if(Array.isArray(t))return mk(bk,e,t,n);ck.has(e)||ck.set(e,{});const i=ck.get(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=hk()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(i.disabled)return;t=gk(t);const r=i.handlers[t.type];if(r){const i=r.slice(0);for(let r=0,a=i.length;r<a&&!t.isImmediatePropagationStopped();r++)try{i[r].call(e,t,n)}catch(tvt){US.error(tvt)}}}),1===i.handlers[t].length)if(e.addEventListener){let n=!1;yk()&&vk.indexOf(t)>-1&&(n={passive:!0}),e.addEventListener(t,i.dispatcher,n)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function _k(e,t,n){if(!ck.has(e))return;const i=ck.get(e);if(!i.handlers)return;if(Array.isArray(t))return mk(_k,e,t,n);const r=H((function(e,t){i.handlers[t]=[],fk(e,t)}),"removeType");if(void 0===t){for(const t in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},t)&&r(e,t);return}const a=i.handlers[t];if(a)if(n){if(n.guid)for(let e=0;e<a.length;e++)a[e].guid===n.guid&&a.splice(e--,1);fk(e,t)}else r(e,t)}function wk(e,t,n){const i=ck.has(e)?ck.get(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=gk(t),i.dispatcher&&i.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&!0===t.bubbles)wk.call(null,r,t,n);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){ck.has(t.target)||ck.set(t.target,{});const e=ck.get(t.target);t.target[t.type]&&(e.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),e.disabled=!1)}return!t.defaultPrevented}function Sk(e,t,n){if(Array.isArray(t))return mk(Sk,e,t,n);const i=H((function(){_k(e,t,i),n.apply(this,arguments)}),"func");i.guid=n.guid=n.guid||hk(),bk(e,t,i)}function Ck(e,t,n){const i=H((function(){_k(e,t,i),n.apply(this,arguments)}),"func");i.guid=n.guid=n.guid||hk(),bk(e,t,i)}H(bk,"on$1"),H(_k,"off$1"),H(wk,"trigger$1"),H(Sk,"one"),H(Ck,"any");var kk=Object.freeze({__proto__:null,fixEvent:gk,on:bk,off:_k,trigger:wk,one:Sk,any:Ck});const xk=30,Tk=H((function(e,t,n){t.guid||(t.guid=hk());const i=t.bind(e);return i.guid=n?n+"_"+t.guid:t.guid,i}),"bind_"),Ek=H((function(e,t){let n=fv.performance.now();return H((function(...i){const r=fv.performance.now();r-n>=t&&(e(...i),n=r)}),"throttled")}),"throttle$1"),Ak=H((function(e,t,n,i=fv){let r;const a=H((()=>{i.clearTimeout(r),r=null}),"cancel"),s=H((function(){const a=this,s=arguments;let o=H((function(){r=null,o=null,n||e.apply(a,s)}),"later");!r&&n&&e.apply(a,s),i.clearTimeout(r),r=i.setTimeout(o,t)}),"debounced");return s.cancel=a,s}),"debounce");var Lk=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:xk,bind_:Tk,throttle:Ek,debounce:Ak});let Ik;const $k=class{on(e,t){const n=this.addEventListener;this.addEventListener=()=>{},bk(this,e,t),this.addEventListener=n}off(e,t){_k(this,e,t)}
93one(e,t){const n=this.addEventListener;this.addEventListener=()=>{},Sk(this,e,t),this.addEventListener=n}any(e,t){const n=this.addEventListener;this.addEventListener=()=>{},Ck(this,e,t),this.addEventListener=n}trigger(e){const t=e.type||e;"string"==typeof e&&(e={type:t}),e=gk(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),wk(this,e)}queueTrigger(e){Ik||(Ik=new Map);const t=e.type||e;let n=Ik.get(this);n||(n=new Map,Ik.set(this,n));const i=n.get(t);n.delete(t),fv.clearTimeout(i);const r=fv.setTimeout((()=>{n.delete(t),0===n.size&&(n=null,Ik.delete(this)),this.trigger(e)}),0);n.set(t,r)}};H($k,"EventTarget$2");let Dk=$k;Dk.prototype.allowedEvents_={},Dk.prototype.addEventListener=Dk.prototype.on,Dk.prototype.removeEventListener=Dk.prototype.off,Dk.prototype.dispatchEvent=Dk.prototype.trigger;const Pk=H((e=>"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e),"objName"),Ok=H((e=>e instanceof Dk||!!e.eventBusEl_&&["on","one","off","trigger"].every((t=>"function"==typeof e[t]))),"isEvented"),Mk=H(((e,t)=>{Ok(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))}),"addEventedCallback"),Rk=H((e=>"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length),"isValidEventType"),Nk=H(((e,t,n)=>{if(!e||!e.nodeName&&!Ok(e))throw new Error(`Invalid target for ${Pk(t)}#${n}; must be a DOM node or evented object.`)}),"validateTarget"),Fk=H(((e,t,n)=>{if(!Rk(e))throw new Error(`Invalid event type for ${Pk(t)}#${n}; must be a non-empty string or array.`)}),"validateEventType"),Bk=H(((e,t,n)=>{if("function"!=typeof e)throw new Error(`Invalid listener for ${Pk(t)}#${n}; must be a function.`)}),"validateListener"),Hk=H(((e,t,n)=>{const i=t.length<3||t[0]===e||t[0]===e.eventBusEl_;let r,a,s;return i?(r=e.eventBusEl_,t.length>=3&&t.shift(),[a,s]=t):[r,a,s]=t,Nk(r,e,n),Fk(a,e,n),Bk(s,e,n),s=Tk(e,s),{isTargetingSelf:i,target:r,type:a,listener:s}}),"normalizeListenArgs"),jk=H(((e,t,n,i)=>{Nk(e,e,t),e.nodeName?kk[t](e,n,i):e[t](n,i)}),"listen"),Uk={on(...e){const{isTargetingSelf:t,target:n,type:i,listener:r}=Hk(this,e,"on");if(jk(n,"on",i,r),!t){const e=H((()=>this.off(n,i,r)),"removeListenerOnDispose");e.guid=r.guid;const t=H((()=>this.off("dispose",e)),"removeRemoverOnTargetDispose");t.guid=r.guid,jk(this,"on","dispose",e),jk(n,"on","dispose",t)}},one(...e){const{isTargetingSelf:t,target:n,type:i,listener:r}=Hk(this,e,"one");if(t)jk(n,"one",i,r);else{const e=H(((...t)=>{this.off(n,i,e),r.apply(null,t)}),"wrapper");e.guid=r.guid,jk(n,"one",i,e)}},any(...e){const{isTargetingSelf:t,target:n,type:i,listener:r}=Hk(this,e,"any");if(t)jk(n,"any",i,r);else{const e=H(((...t)=>{this.off(n,i,e),r.apply(null,t)}),"wrapper");e.guid=r.guid,jk(n,"any",i,e)}},off(e,t,n){if(!e||Rk(e))_k(this.eventBusEl_,e,t);else{const i=e,r=t;Nk(i,this,"off"),Fk(r,this,"off"),Bk(n,this,"off"),n=Tk(this,n),this.off("dispose",n),i.nodeName?(_k(i,r,n),_k(i,"dispose",n)):Ok(i)&&(i.off(r,n),i.off("dispose",n))}},trigger(e,t){Nk(this.eventBusEl_,this,"trigger");const n=e&&"string"!=typeof e?e.type:e;if(!Rk(n))throw new Error(`Invalid event type for ${Pk(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return wk(this.eventBusEl_,e,t)}};function Vk(e,t={}){const{eventBusKey:n}=t;if(n){if(!e[n].nodeName)throw new Error(`The eventBusKey "${n}" does not refer to an element.`);e.eventBusEl_=e[n]}else e.eventBusEl_=LC("span",{className:"vjs-event-bus"});return Object.assign(e,Uk),e.eventedCallbacks&&e.eventedCallbacks.forEach((e=>{e()})),e.on("dispose",(()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach((function(e){e&&ck.has(e)&&ck.delete(e)})),fv.setTimeout((()=>{e.eventBusEl_=null}),0)})),e}H(Vk,"evented");const qk={state:{},setState(e){let t;return"function"==typeof e&&(e=e()),WS(e,((e,n)=>{this.state[n]!==e&&(t=t||{},t[n]={from:this.state[n],to:e}),this.state[n]=e})),t&&Ok(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function zk(e,t){return Object.assign(e,qk),e.state=Object.assign({},e.state,t),"function"==typeof e.handleStateChanged&&Ok(e)&&e.on("statechanged",e.handleStateChanged),e}H(zk,"stateful");const Wk=H((function(e){return"string"!=typeof e?e:e.replace(/./,(e=>e.toLowerCase()))}),"toLowerCase"),Gk=H((function(e){return"string"!=typeof e?e:e.replace(/./,(e=>e.toUpperCase()))}),"toTitleCase$1"),Kk=H((function(e,t){return Gk(e)===Gk(t)}),"titleCaseEquals");var Yk=Object.freeze({__proto__:null,toLowerCase:Wk,toTitleCase:Gk,titleCaseEquals:Kk});const Zk=class e{constructor(e,t,n){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=ZS({},this.options_),t=this.options_=ZS(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){const t=e&&e.id&&e.id()||"no_player";this.id_=`${t}_component_${hk()}`}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach((e=>this.addClass(e))),["on","off","one","any","trigger"].forEach((e=>{this[e]=void 0})),!1!==t.evented&&(Vk(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),zk(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}on(e,t){}off(e,t){}one(e,t){}any(e,t){}trigger(e,t){}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return Boolean(this.isDisposed_)}player(){return this.player_}options(e){return e?(this.options_=ZS(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,t,n){return LC(e,t,n)}localize(e,t,n=e){const i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[i],s=i&&i.split("-")[0],o=r&&r[s];let l=n;return a&&a[e]?l=a[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,n){const i=t[n-1];let r=i;return void 0===i&&(r=e),r}))),l}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}
vendor: 6,912 bytes, line 93
93getDescendant(...e){e=e.reduce(((e,t)=>e.concat(t)),[]);let t=this;for(let n=0;n<e.length;n++)if(t=t.getChild(e[n]),!t||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const n="http://www.w3.org/2000/svg",i=LC("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),r=bv.createElementNS(n,"svg");r.setAttributeNS(null,"viewBox","0 0 512 512");const a=bv.createElementNS(n,"use");return r.appendChild(a),a.setAttributeNS(null,"href",`#vjs-icon-${e}`),i.appendChild(r),this.iconIsSet_?t.replaceChild(i,t.querySelector(".vjs-icon-placeholder")):t.appendChild(i),this.iconIsSet_=!0,i}addChild(t,n={},i=this.children_.length){let r,a;if("string"==typeof t){a=Gk(t);const i=n.componentClass||a;n.name=a;const s=e.getComponent(i);if(!s)throw new Error(`Component ${i} does not exist`);if("function"!=typeof s)return null;r=new s(this.player_||this,n)}else r=t;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),a=a||r.name&&Gk(r.name()),a&&(this.childNameIndex_[a]=r,this.childNameIndex_[Wk(a)]=r),"function"==typeof r.el&&r.el()){let e=null;this.children_[i+1]&&(this.children_[i+1].el_?e=this.children_[i+1].el_:TC(this.children_[i+1])&&(e=this.children_[i+1])),this.contentEl().insertBefore(r.el(),e)}return r}removeChild(e){if("string"==typeof e&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let i=this.children_.length-1;i>=0;i--)if(this.children_[i]===e){t=!0,this.children_.splice(i,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Gk(e.name())]=null,this.childNameIndex_[Wk(e.name())]=null;const n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){const t=this.options_.children;if(t){const n=this.options_,i=H((e=>{const t=e.name;let i=e.opts;if(void 0!==n[t]&&(i=n[t]),!1===i)return;!0===i&&(i={}),i.playerOptions=this.options_.playerOptions;const r=this.addChild(t,i);r&&(this[t]=r)}),"handleAdd");let r;const a=e.getComponent("Tech");r=Array.isArray(t)?t:Object.keys(t),r.concat(Object.keys(this.options_).filter((function(e){return!r.some((function(t){return"string"==typeof t?e===t:e===t.name}))}))).map((e=>{let n,i;return"string"==typeof e?(n=e,i=t[n]||this.options_[n]||{}):(n=e.name,i=e),{name:n,opts:i}})).filter((t=>{const n=e.getComponent(t.opts.componentClass||Gk(t.name));return n&&!a.isTech(n)})).forEach(i)}}buildCSSClass(){return""}ready(e,t=!1){if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))}triggerReady(){this.isReady_=!0,this.setTimeout((function(){const e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)}$(e,t){return QC(e,t||this.contentEl())}$$(e,t){return JC(e,t||this.contentEl())}hasClass(e){return DC(this.el_,e)}addClass(...e){PC(this.el_,...e)}removeClass(...e){OC(this.el_,...e)}toggleClass(e,t){MC(this.el_,e,t)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return FC(this.el_,e)}setAttribute(e,t){BC(this.el_,e,t)}removeAttribute(e){HC(this.el_,e)}width(e,t){return this.dimension("width",e,t)}height(e,t){return this.dimension("height",e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;const i=this.el_.style[e],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+Gk(e)],10)}currentDimension(e){let t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=ek(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){const n=`offset${Gk(e)}`;t=this.el_[n]}return t}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&(Cv.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e=0,t=null;let n;this.on("touchstart",(function(i){1===i.touches.length&&(t={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},e=fv.performance.now(),n=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)n=!1;else if(t){const i=e.touches[0].pageX-t.pageX,r=e.touches[0].pageY-t.pageY;Math.sqrt(i*i+r*r)>10&&(n=!1)}}));const i=H((function(){n=!1}),"noTap");this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",(function(i){if(t=null,!0===n){fv.performance.now()-e<200&&(i.preventDefault(),this.trigger("tap"))}}))}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const e=Tk(this.player(),this.player().reportUserActivity);let t;this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));const n=H((function(n){e(),this.clearInterval(t)}),"touchEnd");this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}setTimeout(e,t){var n;return e=Tk(this,e),this.clearTimersOnDispose_(),n=fv.setTimeout((()=>{this.setTimeoutIds_.has(n)&&this.setTimeoutIds_.delete(n),e()}),t),this.setTimeoutIds_.add(n),n}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),fv.clearTimeout(e)),e}setInterval(e,t){e=Tk(this,e),this.clearTimersOnDispose_();const n=fv.setInterval(e,t);return this.setIntervalIds_.add(n),n}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),fv.clearInterval(e)),e}requestAnimationFrame(e){var t;return this.clearTimersOnDispose_(),e=Tk(this,e),t=fv.requestAnimationFrame((()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()})),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){if(this.namedRafs_.has(e))return;this.clearTimersOnDispose_(),t=Tk(this,t);const n=this.requestAnimationFrame((()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)}));return this.namedRafs_.set(e,n),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),fv.cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
93h((([e,t])=>{this[e].forEach(((e,n)=>this[t](n)))})),this.clearingTimersOnDispose_=!1})))}static registerComponent(t,n){if("string"!=typeof t||!t)throw new Error(`Illegal component name, "${t}"; must be a non-empty string.`);const i=e.getComponent("Tech"),r=i&&i.isTech(n),a=e===n||e.prototype.isPrototypeOf(n.prototype);if(r||!a){let e;throw e=r?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error(`Illegal component, "${t}"; ${e}.`)}t=Gk(t),e.components_||(e.components_={});const s=e.getComponent("Player");if("Player"===t&&s&&s.players){const e=s.players,t=Object.keys(e);if(e&&t.length>0&&t.map((t=>e[t])).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[Wk(t)]=n,n}static getComponent(t){if(t&&e.components_)return e.components_[t]}};H(Zk,"Component$1");let Xk=Zk;function Qk(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error(`Failed to execute '${e}' on 'TimeRanges': The index provided (${t}) is non-numeric or out of bounds (0-${n}).`)}function Jk(e,t,n,i){return Qk(e,i,n.length-1),n[i][t]}function ex(e){let t;return t=void 0===e||0===e.length?{length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Jk.bind(null,"start",0,e),end:Jk.bind(null,"end",1,e)},fv.Symbol&&fv.Symbol.iterator&&(t[fv.Symbol.iterator]=()=>(e||[]).values()),t}function tx(e,t){return Array.isArray(e)?ex(e):void 0===e||void 0===t?ex():ex([[e,t]])}Xk.registerComponent("Component",Xk),H(Qk,"rangeCheck"),H(Jk,"getRange"),H(ex,"createTimeRangesObj"),H(tx,"createTimeRanges$1");const nx=H((function(e,t){e=e<0?0:e;let n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600);const a=Math.floor(t/60%60),s=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),r=r>0||s>0?r+":":"",i=((r||a>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,r+i+n}),"defaultImplementation");let ix=nx;function rx(e){ix=e}function ax(){ix=nx}function sx(e,t=e){return ix(e,t)}H(rx,"setFormatTime"),H(ax,"resetFormatTime"),H(sx,"formatTime");var ox=Object.freeze({__proto__:null,createTimeRanges:tx,createTimeRange:tx,setFormatTime:rx,resetFormatTime:ax,formatTime:sx});function lx(e,t){let n,i,r=0;if(!t)return 0;e&&e.length||(e=tx(0,0));for(let a=0;a<e.length;a++)n=e.start(a),i=e.end(a),i>t&&(i=t),r+=i-n;return r/t}function ux(e){if(e instanceof ux)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:KS(e)&&("number"==typeof e.code&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=ux.defaultMessages[this.code]||"")}function cx(e){return null!=e&&"function"==typeof e.then}function dx(e){cx(e)&&e.then(null,(e=>{}))}H(lx,"bufferedPercent"),H(ux,"MediaError"),ux.prototype.code=0,ux.prototype.message="",ux.prototype.status=null,ux.prototype.metadata=null,ux.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],ux.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."},ux.MEDIA_ERR_CUSTOM=0,ux.prototype.MEDIA_ERR_CUSTOM=0,ux.MEDIA_ERR_ABORTED=1,ux.prototype.MEDIA_ERR_ABORTED=1,ux.MEDIA_ERR_NETWORK=2,ux.prototype.MEDIA_ERR_NETWORK=2,ux.MEDIA_ERR_DECODE=3,ux.prototype.MEDIA_ERR_DECODE=3,ux.MEDIA_ERR_SRC_NOT_SUPPORTED=4,ux.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4,ux.MEDIA_ERR_ENCRYPTED=5,ux.prototype.MEDIA_ERR_ENCRYPTED=5,H(cx,"isPromise$2"),H(dx,"silencePromise");const px=H((function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(((t,n,i)=>(e[n]&&(t[n]=e[n]),t)),{cues:e.cues&&Array.prototype.map.call(e.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))})}),"trackToJson_");var hx={textTracksToJson:H((function(e){const t=e.$$("track"),n=Array.prototype.map.call(t,(e=>e.track));return Array.prototype.map.call(t,(function(e){const t=px(e.track);return e.src&&(t.src=e.src),t})).concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===n.indexOf(e)})).map(px))}),"textTracksToJson"),jsonToTextTracks:H((function(e,t){return e.forEach((function(e){const n=t.addRemoteTextTrack(e).track;
vendor: 4,488 bytes, line 93
93!e.src&&e.cues&&e.cues.forEach((e=>n.addCue(e)))})),t.textTracks()}),"jsonToTextTracks"),trackToJson_:px};const fx="vjs-modal-dialog",mx=class extends Xk{constructor(e,t){super(e,t),this.handleKeyDown_=e=>this.handleKeyDown(e),this.close_=e=>this.close(e),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=LC("div",{className:`${fx}-content`},{role:"document"}),this.descEl_=LC("p",{className:`${fx}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),IC(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog","aria-live":"polite"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${fx} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}open(){if(this.opened_)return void(this.options_.fillAlways&&this.fill());const e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}opened(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if("boolean"==typeof e){const t=this.closeable_=!!e;let n=this.getChild("closeButton");if(t&&!n){const e=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=e,this.on(n,"close",this.close_)}!t&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){const t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),ZC(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t);const r=this.getChild("closeButton");r&&n.appendChild(r.el_)}empty(){this.trigger("beforemodalempty"),GC(this.contentEl()),this.trigger("modalempty")}content(e){return void 0!==e&&(this.content_=e),this.content_}conditionalFocus_(){const e=bv.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){if(e.stopPropagation(),Cv.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(!Cv.isEventKey(e,"Tab"))return;const t=this.focusableEls_(),n=this.el_.querySelector(":focus");let i;for(let r=0;r<t.length;r++)if(n===t[r]){i=r;break}bv.activeElement===this.el_&&(i=0),e.shiftKey&&0===i?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||i!==t.length-1||(t[0].focus(),e.preventDefault())}focusableEls_(){const e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(e=>(e instanceof fv.HTMLAnchorElement||e instanceof fv.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof fv.HTMLInputElement||e instanceof fv.HTMLSelectElement||e instanceof fv.HTMLTextAreaElement||e instanceof fv.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof fv.HTMLIFrameElement||e instanceof fv.HTMLObjectElement||e instanceof fv.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")))}};H(mx,"ModalDialog");let gx=mx;
93gx.prototype.options_={pauseOnOpen:!0,temporary:!0},Xk.registerComponent("ModalDialog",gx);const yx=class extends Dk{constructor(e=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let t=0;t<e.length;t++)this.addTrack(e[t])}addTrack(e){const t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},Ok(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let t;for(let n=0,i=this.length;n<i;n++)if(this[n]===e){t=this[n],t.off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})}getTrackById(e){let t=null;for(let n=0,i=this.length;n<i;n++){const i=this[n];if(i.id===e){t=i;break}}return t}};H(yx,"TrackList");let vx=yx;vx.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const to in vx.prototype.allowedEvents_)vx.prototype["on"+to]=null;const bx=H((function(e,t){for(let n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)}),"disableOthers$1"),_x=class extends vx{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){bx(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&bx(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,bx(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}};H(_x,"AudioTrackList");let wx=_x;const Sx=H((function(e,t){for(let n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)}),"disableOthers"),Cx=class extends vx{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){Sx(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set(){}})}addTrack(e){e.selected&&Sx(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,Sx(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}};H(Cx,"VideoTrackList");let kx=Cx;const xx=class extends vx{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}};H(xx,"TextTrackList");let Tx=xx;const Ex=class{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}addTrackElement_(e){const t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t}removeTrackElement_(e){for(let t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}}};H(Ex,"HtmlTrackElementList");let Ax=Ex;const Lx=class e{constructor(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){const t=this.length||0;let n=0;const i=e.length;this.cues_=e,this.length_=e.length;const r=H((function(e){""+e in this||Object.defineProperty(this,""+e,{get(){return this.cues_[e]}})}),"defineProp");if(t<i)for(n=t;n<i;
93n++)r.call(this,n)}getCueById(e){let t=null;for(let n=0,i=this.length;n<i;n++){const i=this[n];if(i.id===e){t=i;break}}return t}};H(Lx,"TextTrackCueList");let Ix=Lx;const $x={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Dx={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Px={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Ox={disabled:"disabled",hidden:"hidden",showing:"showing"},Mx=class extends Dk{constructor(e={}){super();const t={id:e.id||"vjs_track_"+hk(),kind:e.kind||"",language:e.language||""};let n=e.label||"";for(const i in t)Object.defineProperty(this,i,{get:()=>t[i],set(){}});Object.defineProperty(this,"label",{get:()=>n,set(e){e!==n&&(n=e,this.trigger("labelchange"))}})}};H(Mx,"Track");let Rx=Mx;const Nx=H((function(e){const t=["protocol","hostname","port","pathname","search","hash","host"],n=bv.createElement("a");n.href=e;const i={};for(let r=0;r<t.length;r++)i[t[r]]=n[t[r]];return"http:"===i.protocol&&(i.host=i.host.replace(/:80$/,"")),"https:"===i.protocol&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=fv.location.protocol),i.host||(i.host=fv.location.host),i}),"parseUrl$1"),Fx=H((function(e){if(!e.match(/^https?:\/\//)){const t=bv.createElement("a");t.href=e,e=t.href}return e}),"getAbsoluteURL"),Bx=H((function(e){if("string"==typeof e){const t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""}),"getFileExtension"),Hx=H((function(e,t=fv.location){const n=Nx(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host}),"isCrossOrigin");var jx=Object.freeze({__proto__:null,parseUrl:Nx,getAbsoluteURL:Fx,getFileExtension:Bx,isCrossOrigin:Hx});const Ux=H((function(e,t){const n=new fv.WebVTT.Parser(fv,fv.vttjs,fv.WebVTT.StringDecoder()),i=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){i.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),i.length>0&&(fv.console&&fv.console.groupCollapsed&&fv.console.groupCollapsed(`Text Track parsing errors for ${t.src}`),i.forEach((e=>US.error(e))),fv.console&&fv.console.groupEnd&&fv.console.groupEnd()),n.flush()}),"parseCues"),Vx=H((function(e,t){const n={uri:e},i=Hx(e);i&&(n.cors=i);const r="use-credentials"===t.tech_.crossOrigin();r&&(n.withCredentials=r),Hv(n,Tk(this,(function(e,n,i){if(e)return US.error(e,n);t.loaded_=!0,"function"!=typeof fv.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(e=>{if("vttjserror"!==e.type)return Ux(i,t);US.error(`vttjs failed to load, stopping trying to process ${t.src}`)})):Ux(i,t)})))}),"loadTrack"),qx=class extends Rx{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");const t=ZS(e,{kind:Px[e.kind]||"subtitles",language:e.language||e.srclang||""});let n=Ox[t.mode]||"disabled";const i=t.default;"metadata"!==t.kind&&"chapters"!==t.kind||(n="hidden"),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=!1!==this.tech_.preloadTextTracks;const r=new Ix(this.cues_),a=new Ix(this.activeCues_);let s=!1;this.timeupdateHandler=Tk(this,(function(e={}){this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,s&&(this.trigger("cuechange"),s=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))}));const o=H((()=>{this.stopTracking()}),"disposeHandler");this.tech_.one("dispose",o),"disabled"!==n&&this.startTracking(),Object.defineProperties(this,{default:{get:()=>i,set(){}},mode:{get:()=>n,set(e){Ox[e]&&n!==e&&(n=e,this.preload_||"disabled"===n||0!==this.cues.length||Vx(this.src,this),this.stopTracking(),"disabled"!==n&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?r:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(0===this.cues.length)return a;const e=this.tech_.currentTime(),t=[];for(let n=0,i=this.cues.length;n<i;n++){const i=this.cues[n];i.startTime<=e&&i.endTime>=e&&t.push(i)}if(s=!1,t.length!==this.activeCues_.length)s=!0;else for(let n=0;n<t.length;n++)-1===this.activeCues_.indexOf(t[n])&&(s=!0);return this.activeCues_=t,a.setCues_(this.activeCues_),a},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||"subtitles"!==t.kind&&"captions"!==t.kind)&&Vx(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let t=e;
vendor: 5,424 bytes, line 93
93if(!("getCueAsHTML"in t)){t=new fv.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(const n in e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}const n=this.tech_.textTracks();for(let i=0;i<n.length;i++)n[i]!==this&&n[i].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}removeCue(e){let t=this.cues_.length;for(;t--;){const n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}};H(qx,"TextTrack");let zx=qx;zx.prototype.allowedEvents_={cuechange:"cuechange"};const Wx=class extends Rx{constructor(e={}){const t=ZS(e,{kind:Dx[e.kind]||""});super(t);let n=!1;Object.defineProperty(this,"enabled",{get:()=>n,set(e){"boolean"==typeof e&&e!==n&&(n=e,this.trigger("enabledchange"))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}};H(Wx,"AudioTrack");let Gx=Wx;const Kx=class extends Rx{constructor(e={}){const t=ZS(e,{kind:$x[e.kind]||""});super(t);let n=!1;Object.defineProperty(this,"selected",{get:()=>n,set(e){"boolean"==typeof e&&e!==n&&(n=e,this.trigger("selectedchange"))}}),t.selected&&(this.selected=t.selected)}};H(Kx,"VideoTrack");let Yx=Kx;const Zx=class e extends Dk{constructor(t={}){let n;super();const i=new zx(t);this.kind=i.kind,this.src=i.src,this.srclang=i.language,this.label=i.label,this.default=i.default,Object.defineProperties(this,{readyState:{get:()=>n},track:{get:()=>i}}),n=e.NONE,i.addEventListener("loadeddata",(()=>{n=e.LOADED,this.trigger({type:"load",target:this})}))}};H(Zx,"HTMLTrackElement");let Xx=Zx;Xx.prototype.allowedEvents_={load:"load"},Xx.NONE=0,Xx.LOADING=1,Xx.LOADED=2,Xx.ERROR=3;const Qx={audio:{ListClass:wx,TrackClass:Gx,capitalName:"Audio"},video:{ListClass:kx,TrackClass:Yx,capitalName:"Video"},text:{ListClass:Tx,TrackClass:zx,capitalName:"Text"}};Object.keys(Qx).forEach((function(e){Qx[e].getterName=`${e}Tracks`,Qx[e].privateName=`${e}Tracks_`}));const Jx={remoteText:{ListClass:Tx,TrackClass:zx,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Ax,TrackClass:Xx,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},eT=Object.assign({},Qx,Jx);function tT(e,t,n,i,r={}){const a=e.textTracks();r.kind=t,n&&(r.label=n),i&&(r.language=i),r.tech=e;const s=new eT.text.TrackClass(r);return a.addTrack(s),s}Jx.names=Object.keys(Jx),Qx.names=Object.keys(Qx),eT.names=[].concat(Jx.names).concat(Qx.names),H(tT,"createTrackHelper");const nT=class e extends Xk{constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=e=>this.onDurationChange(e),this.trackProgress_=e=>this.trackProgress(e),this.trackCurrentTime_=e=>this.trackCurrentTime(e),this.stopTrackingCurrentTime_=e=>this.stopTrackingCurrentTime(e),this.disposeSourceHandler_=e=>this.disposeSourceHandler(e),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",(function(){this.hasStarted_=!0})),this.on("loadstart",(function(){this.hasStarted_=!1})),eT.names.forEach((t=>{const n=eT[t];e&&e[n.getterName]&&(this[n.privateName]=e[n.getterName])})),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((t=>{!1===e[`native${t}Tracks`]&&(this[`featuresNative${t}Tracks`]=!1)})),!1===e.nativeCaptions||!1===e.nativeTextTracks?this.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=!1!==e.preloadTextTracks,this.autoRemoteTextTracks_=new eT.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",(()=>this.setTimeout((()=>this.triggerSourceset(e)),1))),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Tk(this,(function(){const e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return tx(0,0)}bufferedPercent(){return lx(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(Qx.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}
93clearTracks(e){(e=[].concat(e)).forEach((e=>{const t=this[`${e}Tracks`]()||[];let n=t.length;for(;n--;){const i=t[n];"text"===e&&this.removeRemoteTextTrack(i),t.removeTrack(i)}}))}cleanupAutoTextTracks(){const e=this.autoRemoteTextTracks_||[];let t=e.length;for(;t--;){const n=e[t];this.removeRemoteTextTrack(n)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return void 0!==e&&(this.error_=new ux(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?tx(0,0):tx()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){Qx.names.forEach((e=>{const t=Qx[e],n=H((()=>{this.trigger(`${e}trackchange`)}),"trackListChanges"),i=this[t.getterName]();i.addEventListener("removetrack",n),i.addEventListener("addtrack",n),this.on("dispose",(()=>{i.removeEventListener("removetrack",n),i.removeEventListener("addtrack",n)}))}))}addWebVttScript_(){if(!fv.WebVTT)if(bv.body.contains(this.el())){if(!this.options_["vtt.js"]&&YS(Jv)&&Object.keys(Jv).length>0)return void this.trigger("vttjsloaded");const e=bv.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",(()=>{e.onload=null,e.onerror=null})),fv.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const e=this.textTracks(),t=this.remoteTextTracks(),n=H((t=>e.addTrack(t.track)),"handleAddTrack"),i=H((t=>e.removeTrack(t.track)),"handleRemoveTrack");t.on("addtrack",n),t.on("removetrack",i),this.addWebVttScript_();const r=H((()=>this.trigger("texttrackchange")),"updateDisplay"),a=H((()=>{r();for(let t=0;t<e.length;t++){const n=e[t];n.removeEventListener("cuechange",r),"showing"===n.mode&&n.addEventListener("cuechange",r)}}),"textTracksChanges");a(),e.addEventListener("change",a),e.addEventListener("addtrack",a),e.addEventListener("removetrack",a),this.on("dispose",(function(){t.off("addtrack",n),t.off("removetrack",i),e.removeEventListener("change",a),e.removeEventListener("addtrack",a),e.removeEventListener("removetrack",a);for(let t=0;t<e.length;t++){e[t].removeEventListener("cuechange",r)}}))}addTextTrack(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return tT(this,e,t,n)}createRemoteTextTrack(e){const t=ZS(e,{tech:this});return new Jx.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){const n=this.createRemoteTextTrack(e);return"boolean"!=typeof t&&(t=!1),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!1===t&&this.ready((()=>this.autoRemoteTextTracks_.addTrack(n.track))),n}removeRemoteTextTrack(e){const t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){const t=hk();return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one("playing",(()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())}))):this.requestNamedAnimationFrame(t,e),t}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(t,n){return e.canPlayType(t.type)}static isTech(t){return t.prototype instanceof e||t instanceof e||t===e}static registerTech(t,n){if(e.techs_||(e.techs_={}),!e.isTech(n))throw new Error(`Tech ${t} must be a Tech`);if(!e.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!e.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=Gk(t),e.techs_[t]=n,e.techs_[Wk(t)]=n,"Tech"!==t&&e.defaultTechOrder_.push(t),n}static getTech(t){if(t)return e.techs_&&e.techs_[t]?e.techs_[t]:(t=Gk(t),fv&&fv.videojs&&fv.videojs[t]?(US.warn(`The ${t} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),fv.videojs[t]):void 0)}};H(nT,"Tech");let iT=nT;
93eT.names.forEach((function(e){const t=eT[e];iT.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),iT.prototype.featuresVolumeControl=!0,iT.prototype.featuresMuteControl=!0,iT.prototype.featuresFullscreenResize=!1,iT.prototype.featuresPlaybackRate=!1,iT.prototype.featuresProgressEvents=!1,iT.prototype.featuresSourceset=!1,iT.prototype.featuresTimeupdateEvents=!1,iT.prototype.featuresNativeTextTracks=!1,iT.prototype.featuresVideoFrameCallback=!1,iT.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){let i=e.sourceHandlers;i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){const n=e.sourceHandlers||[];let i;for(let e=0;e<n.length;e++)if(i=n[e].canPlayType(t),i)return i;return""},e.selectSourceHandler=function(t,n){const i=e.sourceHandlers||[];let r;for(let e=0;e<i.length;e++)if(r=i[e].canHandleSource(t,n),r)return i[e];return null},e.canPlaySource=function(t,n){const i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""};["seekable","seeking","duration"].forEach((function(e){const t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})}),e.prototype),e.prototype.setSource=function(t){let n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:US.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Xk.registerComponent("Tech",iT),iT.registerTech("Tech",iT),iT.defaultTechOrder_=[];const rT={},aT={},sT={};function oT(e,t){rT[e]=rT[e]||[],rT[e].push(t)}function lT(e,t,n){e.setTimeout((()=>_T(t,rT[t.type],n,e)),1)}function uT(e,t){e.forEach((e=>e.setTech&&e.setTech(t)))}function cT(e,t,n){return e.reduceRight(gT(n),t[n]())}function dT(e,t,n,i){return t[n](e.reduce(gT(n),i))}function pT(e,t,n,i=null){const r="call"+Gk(n),a=e.reduce(gT(r),i),s=a===sT,o=s?null:t[n](a);return yT(e,n,o,s),o}H(oT,"use$1"),H(lT,"setSource"),H(uT,"setTech"),H(cT,"get$3"),H(dT,"set$1"),H(pT,"mediate");const hT={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},fT={setCurrentTime:1,setMuted:1,setVolume:1},mT={play:1,pause:1};function gT(e){return(t,n)=>t===sT?sT:n[e]?n[e](t):t}function yT(e,t,n,i){for(let r=e.length-1;r>=0;r--){const a=e[r];a[t]&&a[t](i,n)}}function vT(e){aT[e.id()]=null}function bT(e,t){const n=aT[e.id()];let i=null;if(null==n)return i=t(e),aT[e.id()]=[[t,i]],i;for(let r=0;r<n.length;r++){const[e,a]=n[r];e===t&&(i=a)}return null===i&&(i=t(e),n.push([t,i])),i}function _T(e={},t=[],n,i,r=[],a=!1){const[s,...o]=t;if("string"==typeof s)_T(e,rT[s],n,i,r,a);else if(s){const t=bT(i,s);if(!t.setSource)return r.push(t),_T(e,o,n,i,r,a);t.setSource(Object.assign({},e),(function(s,l){if(s)return _T(e,o,n,i,r,a);r.push(t),_T(l,e.type===l.type?o:rT[l.type],n,i,r,a)}))}else o.length?_T(e,o,n,i,r,a):a?n(e,r):_T(e,rT["*"],n,i,r,!0)}H(gT,"middlewareIterator"),H(yT,"executeRight"),H(vT,"clearCacheForPlayer"),H(bT,"getOrCreateFactory"),H(_T,"setSourceHelper");const wT={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},ST=H((function(e=""){const t=Bx(e);return wT[t.toLowerCase()]||""}),"getMimetype"),CT=H(((e,t)=>{if(!t)return"";
vendor: 27,050 bytes, line 93
93if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;const n=e.cache_.sources.filter((e=>e.src===t));if(n.length)return n[0].type;const i=e.$$("source");for(let r=0;r<i.length;r++){const e=i[r];if(e.type&&e.src&&e.src===t)return e.type}return ST(t)}),"findMimetype"),kT=H((function(e){if(Array.isArray(e)){let t=[];e.forEach((function(e){e=kT(e),Array.isArray(e)?t=t.concat(e):KS(e)&&t.push(e)})),e=t}else e="string"==typeof e&&e.trim()?[xT({src:e})]:KS(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[xT(e)]:[];return e}),"filterSource");function xT(e){if(!e.type){const t=ST(e.src);t&&(e.type=t)}return e}H(xT,"fixSource");const TT=class extends Xk{constructor(e,t,n){if(super(e,ZS({createEl:!1},t),n),t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(let i=0,r=t.playerOptions.techOrder;i<r.length;i++){const t=Gk(r[i]);let n=iT.getTech(t);if(t||(n=Xk.getComponent(t)),n&&n.isSupported()){e.loadTech_(t);break}}}};H(TT,"MediaLoader");let ET=TT;Xk.registerComponent("MediaLoader",ET);const AT=class extends Xk{constructor(e,t){super(e,t),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=e=>this.handleMouseOver(e),this.handleMouseOut_=e=>this.handleMouseOut(e),this.handleClick_=e=>this.handleClick(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.emitTapEvents(),this.enable()}createEl(e="div",t={},n={}){t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&US.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),n=Object.assign({role:"button"},n),this.tabIndex_=t.tabIndex;const i=LC(e,t,n);return this.player_.options_.experimentalSvgIcons||i.appendChild(LC("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=LC("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,t=this.el()){if(void 0===e)return this.controlText_||"Need Text";const n=this.localize(e);this.controlText_=e,IC(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",n)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){Cv.isEventKey(e,"Space")||Cv.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}};H(AT,"ClickableComponent");let LT=AT;Xk.registerComponent("ClickableComponent",LT);const IT=class extends LT{constructor(e,t){super(e,t),this.update(),this.update_=e=>this.update(e),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return LC("div",{className:"vjs-poster"})}crossOrigin(e){if(void 0===e)return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;null===e||"anonymous"===e||"use-credentials"===e?this.$("img")&&(this.$("img").crossOrigin=e):this.player_.log.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`)}update(e){const t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}setSrc(e){e?(this.$("img")||this.el_.appendChild(LC("picture",{className:"vjs-poster",tabIndex:-1},{},LC("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e):this.el_.textContent=""}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?dx(this.player_.play()):this.player_.pause())}};H(IT,"PosterImage");let $T=IT;$T.prototype.crossorigin=$T.prototype.crossOrigin,Xk.registerComponent("PosterImage",$T);const DT="#222",PT="#ccc",OT={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function MT(e,t){let n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function RT(e,t,n){try{e.style[t]=n}catch(tvt){return}}function NT(e){return e?`${e}px`:""}H(MT,"constructColor"),H(RT,"tryUpdateStyle"),H(NT,"getCSSPositionValue");const FT=class extends Xk{constructor(e,t,n){super(e,t,n);const i=H((e=>this.updateDisplay(e)),"updateDisplayTextHandler"),r=H((e=>{this.updateDisplayOverlay(),this.updateDisplay(e)}),"updateDisplayHandler");e.on("loadstart",(e=>this.toggleDisplay(e))),e.on("texttrackchange",i),e.on("loadedmetadata",(e=>{this.updateDisplayOverlay(),this.preselectTrack(e)})),e.ready(Tk(this,(function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",r),e.on("playerresize",r);const t=fv.screen.orientation||fv,n=fv.screen.orientation?"change":"orientationchange";t.addEventListener(n,r),e.on("dispose",(()=>t.removeEventListener(n,r)));const i=this.options_.playerOptions.tracks||[];for(let e=0;e<i.length;e++)this.player_.addRemoteTextTrack(i[e],!0);this.preselectTrack()})))}preselectTrack(){const e={captions:1,subtitles:1},t=this.player_.textTracks(),n=this.player_.cache_.selectedLanguage;let i,r,a;for(let s=0;s<t.length;s++){const o=t[s];n&&n.enabled&&n.language&&n.language===o.language&&o.kind in e?o.kind===n.kind?a=o:a||(a=o):n&&!n.enabled?(a=null,i=null,r=null):o.default&&("descriptions"!==o.kind||i?o.kind in e&&!r&&(r=o):i=o)}a?a.mode="showing":r?r.mode="showing":i&&(i.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){"function"==typeof fv.WebVTT&&fv.WebVTT.processCues(fv,[],this.el_)}updateDisplay(){const e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){const t=[];for(let n=0;n<e.length;++n){const i=e[n];"showing"===i.mode&&t.push(i)}return void this.updateForTrack(t)}let n=null,i=null,r=e.length;for(;r--;){const t=e[r];"showing"===t.mode&&("descriptions"===t.kind?n=t:i=t)}i?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(i)):n&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(n))}updateDisplayOverlay(){if(!this.player_.videoHeight()||!fv.CSS.supports("inset-inline: 10px"))return;const e=this.player_.currentWidth(),t=this.player_.currentHeight(),n=e/t,i=this.player_.videoWidth()/this.player_.videoHeight();let r=0,a=0;Math.abs(n-i)>.1&&(n>i?r=Math.round((e-t*i)/2):a=Math.round((t-e/i)/2)),RT(this.el_,"insetInline",NT(r)),RT(this.el_,"insetBlock",NT(a))}updateDisplayState(e){const t=this.player_.textTrackSettings.getValues(),n=e.activeCues;let i=n.length;for(;i--;){const e=n[i];if(!e)continue;const r=e.displayState;if(t.color&&(r.firstChild.style.color=t.color),t.textOpacity&&RT(r.firstChild,"color",MT(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(r.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&RT(r.firstChild,"backgroundColor",MT(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?RT(r,"backgroundColor",MT(t.windowColor,t.windowOpacity)):r.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?r.firstChild.style.textShadow=`2px 2px 3px ${DT}, 2px 2px 4px ${DT}, 2px 2px 5px ${DT}`:"raised"===t.edgeStyle?r.firstChild.style.textShadow=`1px 1px ${DT}, 2px 2px ${DT}, 3px 3px ${DT}`:"depressed"===t.edgeStyle?r.firstChild.style.textShadow=`1px 1px ${PT}, 0 1px ${PT}, -1px -1px ${DT}, 0 -1px ${DT}`:"uniform"===t.edgeStyle&&(r.firstChild.style.textShadow=`0 0 4px ${DT}, 0 0 4px ${DT}, 0 0 4px ${DT}, 0 0 4px ${DT}`)),t.fontPercent&&1!==t.fontPercent){const e=fv.parseFloat(r.style.fontSize);r.style.fontSize=e*t.fontPercent+"px",r.style.height="auto",r.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?r.firstChild.style.fontVariant="small-caps":r.firstChild.style.fontFamily=OT[t.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),"function"!=typeof fv.WebVTT||e.every((e=>!e.activeCues)))return;const t=[];for(let n=0;n<e.length;++n){const i=e[n];for(let e=0;e<i.activeCues.length;++e)t.push(i.activeCues[e])}fv.WebVTT.processCues(fv,t,this.el_);for(let n=0;n<e.length;++n){const t=e[n];for(let e=0;e<t.activeCues.length;++e){const i=t.activeCues[e].displayState;PC(i,"vjs-text-track-cue","vjs-text-track-cue-"+(t.language?t.language:n)),t.language&&BC(i,"lang",t.language)}this.player_.textTrackSettings&&this.updateDisplayState(t)}}};H(FT,"TextTrackDisplay");let BT=FT;Xk.registerComponent("TextTrackDisplay",BT);const HT=class extends Xk{createEl(){const e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),n=LC("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),i=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return i.appendChild(n),i}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}};H(HT,"LoadingSpinner");let jT=HT;Xk.registerComponent("LoadingSpinner",jT);const UT=class extends LT{createEl(e,t={},n={}){const i=LC("button",t=Object.assign({className:this.buildCSSClass()},t),n=Object.assign({type:"button"},n));return this.player_.options_.experimentalSvgIcons||i.appendChild(LC("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i}addChild(e,t={}){const n=this.constructor.name;return US.warn(`Adding an actionable (user controllable) child to a Button (${n}) is not supported; use a ClickableComponent instead.`),Xk.prototype.addChild.call(this,e,t)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){Cv.isEventKey(e,"Space")||Cv.isEventKey(e,"Enter")?e.stopPropagation():super.handleKeyDown(e)}};H(UT,"Button");let VT=UT;Xk.registerComponent("Button",VT);const qT=class extends VT{constructor(e,t){super(e,t),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",(e=>this.handleMouseDown(e)))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){const t=this.player_.play();if(this.mouseused_&&"clientX"in e&&"clientY"in e)return dx(t),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());const n=this.player_.getChild("controlBar"),i=n&&n.getChild("playToggle");if(!i)return void this.player_.tech(!0).focus();const r=H((()=>i.focus()),"playFocus");cx(t)?t.then(r,(()=>{})):this.setTimeout(r,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}};H(qT,"BigPlayButton");let zT=qT;zT.prototype.controlText_="Play Video",Xk.registerComponent("BigPlayButton",zT);const WT=class extends VT{constructor(e,t){super(e,t),this.setIcon("cancel"),this.controlText(t&&t.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){Cv.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}};H(WT,"CloseButton");let GT=WT;Xk.registerComponent("CloseButton",GT);const KT=class extends VT{constructor(e,t={}){super(e,t),t.replay=void 0===t.replay||t.replay,this.setIcon("play"),this.on(e,"play",(e=>this.handlePlay(e))),this.on(e,"pause",(e=>this.handlePause(e))),t.replay&&this.on(e,"ended",(e=>this.handleEnded(e)))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?dx(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",(e=>this.handleSeeked(e)))}};H(KT,"PlayToggle");let YT=KT;YT.prototype.controlText_="Play",Xk.registerComponent("PlayToggle",YT);const ZT=class extends Xk{constructor(e,t){super(e,t),this.on(e,["timeupdate","ended","seeking"],(e=>this.update(e))),this.updateTextNode_()}createEl(){const e=this.buildCSSClass(),t=super.createEl("div",{className:`${e} vjs-time-control vjs-control`}),n=LC("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)}Â `},{role:"presentation"});return t.appendChild(n),this.contentEl_=LC("span",{className:`${e}-display`},{role:"presentation"}),t.appendChild(this.contentEl_),t}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){(this.player_.options_.enableSmoothSeeking||"seeking"!==e.type)&&this.updateContent(e)}updateTextNode_(e=0){e=sx(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(()=>{if(!this.contentEl_)return;let e=this.textNode_;e&&this.contentEl_.firstChild!==e&&(e=null,US.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=bv.createTextNode(this.formattedTime_),this.textNode_&&(e?this.contentEl_.replaceChild(this.textNode_,e):this.contentEl_.appendChild(this.textNode_))})))}updateContent(e){}};H(ZT,"TimeDisplay");let XT=ZT;XT.prototype.labelText_="Time",XT.prototype.controlText_="Time",Xk.registerComponent("TimeDisplay",XT);const QT=class extends XT{buildCSSClass(){return"vjs-current-time"}updateContent(e){let t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}};H(QT,"CurrentTimeDisplay");let JT=QT;JT.prototype.labelText_="Current Time",JT.prototype.controlText_="Current Time",Xk.registerComponent("CurrentTimeDisplay",JT);const eE=class extends XT{constructor(e,t){super(e,t);const n=H((e=>this.updateContent(e)),"updateContent");this.on(e,"durationchange",n),this.on(e,"loadstart",n),this.on(e,"loadedmetadata",n)}buildCSSClass(){return"vjs-duration"}updateContent(e){const t=this.player_.duration();this.updateTextNode_(t)}};H(eE,"DurationDisplay");let tE=eE;tE.prototype.labelText_="Duration",tE.prototype.controlText_="Duration",Xk.registerComponent("DurationDisplay",tE);const nE=class extends Xk{createEl(){const e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=super.createEl("div"),n=super.createEl("span",{textContent:"/"});return t.appendChild(n),e.appendChild(t),e}};H(nE,"TimeDivider");let iE=nE;Xk.registerComponent("TimeDivider",iE);const rE=class extends XT{constructor(e,t){super(e,t),this.on(e,"durationchange",(e=>this.updateContent(e)))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const e=super.createEl();return!1!==this.options_.displayNegative&&e.insertBefore(LC("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){if("number"!=typeof this.player_.duration())return;let t;t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t)}};H(rE,"RemainingTimeDisplay");let aE=rE;aE.prototype.labelText_="Remaining Time",aE.prototype.controlText_="Remaining Time",Xk.registerComponent("RemainingTimeDisplay",aE);const sE=class extends Xk{constructor(e,t){super(e,t),this.updateShowing(),this.on(this.player(),"durationchange",(e=>this.updateShowing(e)))}createEl(){const e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=LC("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(LC("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")}Â `})),this.contentEl_.appendChild(bv.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}};H(sE,"LiveDisplay");let oE=sE;Xk.registerComponent("LiveDisplay",oE);const lE=class extends VT{constructor(e,t){super(e,t),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=e=>this.updateLiveEdgeStatus(e),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=LC("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}};H(lE,"SeekToLive");let uE=lE;function cE(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))}uE.prototype.controlText_="Seek to live, currently playing live",Xk.registerComponent("SeekToLive",uE),H(cE,"clamp");var dE=Object.freeze({__proto__:null,clamp:cE});const pE=class extends Xk{constructor(e,t){super(e,t),this.handleMouseDown_=e=>this.handleMouseDown(e),this.handleMouseUp_=e=>this.handleMouseUp(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.handleClick_=e=>this.handleClick(e),this.handleMouseMove_=e=>this.handleMouseMove(e),this.update_=e=>this.update(e),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;const e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(e,t={},n={}){return t.className=t.className+" vjs-slider",t=Object.assign({tabIndex:0},t),n=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},n),super.createEl(e,t,n)}handleMouseDown(e){const t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||oC||e.preventDefault(),jC(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){const t=this.bar.el_.ownerDocument;UC(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",(()=>{const t=this.vertical()?"height":"width";this.bar.el().style[t]=(100*e).toFixed(2)+"%"}))),e}getProgress(){return Number(cE(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){const t=zC(this.el_,e);return this.vertical()?t.y:t.x}handleKeyDown(e){Cv.isEventKey(e,"Left")||Cv.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):Cv.isEventKey(e,"Right")||Cv.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}};H(pE,"Slider");let hE=pE;Xk.registerComponent("Slider",hE);const fE=H(((e,t)=>cE(e/t*100,0,100).toFixed(2)+"%"),"percentify"),mE=class extends Xk{constructor(e,t){super(e,t),this.partEls_=[],this.on(e,"progress",(e=>this.update(e)))}createEl(){const e=super.createEl("div",{className:"vjs-load-progress"}),t=LC("span",{className:"vjs-control-text"}),n=LC("span",{textContent:this.localize("Loaded")}),i=bv.createTextNode(": ");return this.percentageEl_=LC("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(n),t.appendChild(i),t.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",(()=>{const e=this.player_.liveTracker,t=this.player_.buffered(),n=e&&e.isLive()?e.seekableEnd():this.player_.duration(),i=this.player_.bufferedEnd(),r=this.partEls_,a=fE(i,n);this.percent_!==a&&(this.el_.style.width=a,IC(this.percentageEl_,a),this.percent_=a);for(let s=0;s<t.length;s++){const e=t.start(s),n=t.end(s);let a=r[s];a||(a=this.el_.appendChild(LC()),r[s]=a),a.dataset.start===e&&a.dataset.end===n||(a.dataset.start=e,a.dataset.end=n,a.style.left=fE(e,i),a.style.width=fE(n-e,i))}for(let s=r.length;s>t.length;s--)this.el_.removeChild(r[s-1]);r.length=t.length}))}};H(mE,"LoadProgressBar");let gE=mE;Xk.registerComponent("LoadProgressBar",gE);const yE=class extends Xk{constructor(e,t){super(e,t),this.update=Ek(Tk(this,this.update),xk)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,t,n){const i=qC(this.el_),r=VC(this.player_.el()),a=e.width*t;if(!r||!i)return;let s=e.left-r.left+a,o=e.width-a+(r.right-e.right);o||(o=e.width-a,s=a);let l=i.width/2;s<l?l+=l-s:o<l&&(l=o),l<0?l=0:l>i.width&&(l=i.width),l=Math.round(l),this.el_.style.right=`-${l}px`,this.write(n)}write(e){IC(this.el_,e)}updateTime(e,t,n,i){this.requestNamedAnimationFrame("TimeTooltip#updateTime",(()=>{let r;const a=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const e=this.player_.liveTracker.liveWindow(),n=e-t*e;r=(n<1?"":"-")+sx(n,e)}else r=sx(n,a);this.update(e,t,r),i&&i()}))}};H(yE,"TimeTooltip");let vE=yE;Xk.registerComponent("TimeTooltip",vE);const bE=class extends Xk{constructor(e,t){super(e,t),this.setIcon("circle"),this.update=Ek(Tk(this,this.update),xk)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,t){const n=this.getChild("timeTooltip");if(!n)return;const i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,i)}};H(bE,"PlayProgressBar");let _E=bE;_E.prototype.options_={children:[]},_C||iC||_E.prototype.options_.children.push("timeTooltip"),Xk.registerComponent("PlayProgressBar",_E);const wE=class extends Xk{constructor(e,t){super(e,t),this.update=Ek(Tk(this,this.update),xk)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t){const n=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,n,(()=>{this.el_.style.left=e.width*t+"px"}))}};H(wE,"MouseTimeDisplay");let SE=wE;SE.prototype.options_={children:["timeTooltip"]},Xk.registerComponent("MouseTimeDisplay",SE);const CE=class extends hE{constructor(e,t){super(e,t),this.setEventHandlers_()}setEventHandlers_(){this.update_=Tk(this,this.update),this.update=Ek(this.update_,xk),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in bv&&"visibilityState"in bv&&this.on(bv,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){"hidden"===bv.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,xk))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if("hidden"===bv.visibilityState)return;
93const t=super.update();return this.requestNamedAnimationFrame("SeekBar#update",(()=>{const e=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),n=this.player_.liveTracker;let i=this.player_.duration();n&&n.isLive()&&(i=this.player_.liveTracker.liveCurrentTime()),this.percent_!==t&&(this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.percent_=t),this.currentTime_===e&&this.duration_===i||(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[sx(e,i),sx(i,i)],"{1} of {2}")),this.currentTime_=e,this.duration_=i),this.bar&&this.bar.update(VC(this.el()),this.getProgress())})),t}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}getPercent(){const e=this.getCurrentTime_();let t;const n=this.player_.liveTracker;return n&&n.isLive()?(t=(e-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t}handleMouseDown(e){XC(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,t=!1){if(!XC(e)||isNaN(this.player_.duration()))return;let n;t||this.player_.scrubbing()||this.player_.scrubbing(!0);const i=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(i>=.99)return void r.seekToLiveEdge();const e=r.seekableStart(),t=r.liveCurrentTime();if(n=e+i*r.liveWindow(),n>=t&&(n=t),n<=e&&(n=e+.1),n===1/0)return}else n=i*this.player_.duration(),n===this.player_.duration()&&(n-=.1);this.userSeek_(n),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();const e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();const e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?dx(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+5)}stepBack(){this.userSeek_(this.player_.currentTime()-5)}handleAction(e){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){const t=this.player_.liveTracker;if(Cv.isEventKey(e,"Space")||Cv.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(Cv.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(Cv.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),t&&t.isLive()?this.userSeek_(t.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(Cv(e))){e.preventDefault(),e.stopPropagation();const n=10*(Cv.codes[Cv(e)]-Cv.codes[0])/100;t&&t.isLive()?this.userSeek_(t.seekableStart()+t.liveWindow()*n):this.userSeek_(this.player_.duration()*n)}else Cv.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):Cv.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in bv&&"visibilityState"in bv&&this.off(bv,"visibilitychange",this.toggleVisibility_),super.dispose()}};H(CE,"SeekBar");let kE=CE;kE.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},_C||iC||kE.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Xk.registerComponent("SeekBar",kE);const xE=class extends Xk{constructor(e,t){super(e,t),this.handleMouseMove=Ek(Tk(this,this.handleMouseMove),xk),this.throttledHandleMouseSeek=Ek(Tk(this,this.handleMouseSeek),xk),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.handleMouseDownHandler_=e=>this.handleMouseDown(e),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){const t=this.getChild("seekBar");if(!t)return;const n=t.getChild("playProgressBar"),i=t.getChild("mouseTimeDisplay");if(!n&&!i)return;const r=t.el(),a=qC(r);let s=zC(r,e).x;s=cE(s,0,1),i&&i.update(a,s),n&&n.update(a,t.getProgress())}handleMouseSeek(e){const t=this.getChild("seekBar");t&&t.handleMouseMove(e)}enabled(){return this.enabled_}
93disable(){if(this.children().forEach((e=>e.disable&&e.disable())),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){const e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&dx(this.player_.play())}}enable(){this.children().forEach((e=>e.enable&&e.enable())),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){const e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}handleMouseDown(e){const t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}};H(xE,"ProgressControl");let TE=xE;TE.prototype.options_={children:["seekBar"]},Xk.registerComponent("ProgressControl",TE);const EE=class extends VT{constructor(e,t){super(e,t),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],(e=>this.handlePictureInPictureChange(e))),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],(e=>this.handlePictureInPictureEnabledChange(e))),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],(()=>this.handlePictureInPictureAudioModeChange())),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){"audio"===this.player_.currentType().substring(0,5)||this.player_.audioPosterMode()||this.player_.audioOnlyMode()?(this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()):this.show()}handlePictureInPictureEnabledChange(){bv.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in fv?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){"function"==typeof bv.exitPictureInPicture&&super.show()}};H(EE,"PictureInPictureToggle");let AE=EE;AE.prototype.controlText_="Picture-in-Picture",Xk.registerComponent("PictureInPictureToggle",AE);const LE=class extends VT{constructor(e,t){super(e,t),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",(e=>this.handleFullscreenChange(e))),!1===bv[e.fsApi_.fullscreenEnabled]&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}};H(LE,"FullscreenToggle");let IE=LE;IE.prototype.controlText_="Fullscreen",Xk.registerComponent("FullscreenToggle",IE);const $E=H((function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}),"checkVolumeSupport"),DE=class extends Xk{createEl(){const e=super.createEl("div",{className:"vjs-volume-level"});
vendor: 4,553 bytes, line 93
93return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}};H(DE,"VolumeLevel");let PE=DE;Xk.registerComponent("VolumeLevel",PE);const OE=class extends Xk{constructor(e,t){super(e,t),this.update=Ek(Tk(this,this.update),xk)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,t,n,i){if(!n){const n=VC(this.el_),i=VC(this.player_.el()),r=e.width*t;if(!i||!n)return;const a=e.left-i.left+r,s=e.width-r+(i.right-e.right);let o=n.width/2;a<o?o+=o-a:s<o&&(o=s),o<0?o=0:o>n.width&&(o=n.width),this.el_.style.right=`-${o}px`}this.write(`${i}%`)}write(e){IC(this.el_,e)}updateVolume(e,t,n,i,r){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(()=>{this.update(e,t,n,i.toFixed(0)),r&&r()}))}};H(OE,"VolumeLevelTooltip");let ME=OE;Xk.registerComponent("VolumeLevelTooltip",ME);const RE=class extends Xk{constructor(e,t){super(e,t),this.update=Ek(Tk(this,this.update),xk)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t,n){const i=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,i,(()=>{n?this.el_.style.bottom=e.height*t+"px":this.el_.style.left=e.width*t+"px"}))}};H(RE,"MouseVolumeLevelDisplay");let NE=RE;NE.prototype.options_={children:["volumeLevelTooltip"]},Xk.registerComponent("MouseVolumeLevelDisplay",NE);const FE=class extends hE{constructor(e,t){super(e,t),this.on("slideractive",(e=>this.updateLastVolume_(e))),this.on(e,"volumechange",(e=>this.updateARIAAttributes(e))),e.ready((()=>this.updateARIAAttributes()))}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){XC(e)&&super.handleMouseDown(e)}handleMouseMove(e){const t=this.getChild("mouseVolumeLevelDisplay");if(t){const n=this.el(),i=VC(n),r=this.vertical();let a=zC(n,e);a=r?a.y:a.x,a=cE(a,0,1),t.update(i,a,r)}XC(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){const t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}volumeAsPercentage_(){return Math.round(100*this.player_.volume())}updateLastVolume_(){const e=this.player_.volume();this.one("sliderinactive",(()=>{0===this.player_.volume()&&this.player_.lastVolume_(e)}))}};H(FE,"VolumeBar");let BE=FE;BE.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},_C||iC||BE.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),BE.prototype.playerEvent="volumechange",Xk.registerComponent("VolumeBar",BE);const HE=class extends Xk{constructor(e,t={}){t.vertical=t.vertical||!1,(void 0===t.volumeBar||YS(t.volumeBar))&&(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),super(e,t),$E(this,e),this.throttledHandleMouseMove=Ek(Tk(this,this.handleMouseMove),xk),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.on("mousedown",(e=>this.handleMouseDown(e))),this.on("touchstart",(e=>this.handleMouseDown(e))),this.on("mousemove",(e=>this.handleMouseMove(e))),this.on(this.volumeBar,["focus","slideractive"],(()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")})),this.on(this.volumeBar,["blur","sliderinactive"],(()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")}))}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${e}`})}handleMouseDown(e){const t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}};H(HE,"VolumeControl");let jE=HE;jE.prototype.options_={children:["volumeBar"]}
93,Xk.registerComponent("VolumeControl",jE);const UE=H((function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}),"checkMuteSupport"),VE=class extends VT{constructor(e,t){super(e,t),UE(this,e),this.on(e,["loadstart","volumechange"],(e=>this.update(e)))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){const e=n<.1?.1:n;this.player_.volume(e),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const e=this.player_.volume();let t=3;this.setIcon("volume-high"),_C&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?(this.setIcon("volume-mute"),t=0):e<.33?(this.setIcon("volume-low"),t=1):e<.67&&(this.setIcon("volume-medium"),t=2),OC(this.el_,[0,1,2,3].reduce(((e,t)=>e+`${t?" ":""}vjs-vol-${t}`),"")),PC(this.el_,`vjs-vol-${t}`)}updateControlText_(){const e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)}};H(VE,"MuteToggle");let qE=VE;qE.prototype.controlText_="Mute",Xk.registerComponent("MuteToggle",qE);const zE=class extends Xk{constructor(e,t={}){void 0!==t.inline?t.inline=t.inline:t.inline=!0,(void 0===t.volumeControl||YS(t.volumeControl))&&(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),super(e,t),this.handleKeyPressHandler_=e=>this.handleKeyPress(e),this.on(e,["loadstart"],(e=>this.volumePanelState_(e))),this.on(this.muteToggle,"keyup",(e=>this.handleKeyPress(e))),this.on(this.volumeControl,"keyup",(e=>this.handleVolumeControlKeyUp(e))),this.on("keydown",(e=>this.handleKeyPress(e))),this.on("mouseover",(e=>this.handleMouseOver(e))),this.on("mouseout",(e=>this.handleMouseOut(e))),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${e}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){Cv.isEventKey(e,"Esc")&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),bk(bv,"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),_k(bv,"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){Cv.isEventKey(e,"Esc")&&this.handleMouseOut()}};H(zE,"VolumePanel");let WE=zE;WE.prototype.options_={children:["muteToggle","volumeControl"]},Xk.registerComponent("VolumePanel",WE);const GE=class extends VT{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipForwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){if(isNaN(this.player_.duration()))return;const t=this.player_.currentTime(),n=this.player_.liveTracker,i=n&&n.isLive()?n.seekableEnd():this.player_.duration();let r;r=t+this.skipTime<=i?t+this.skipTime:i,this.player_.currentTime(r)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}};H(GE,"SkipForward");let KE=GE;KE.prototype.controlText_="Skip Forward",Xk.registerComponent("SkipForward",KE);const YE=class extends VT{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1}
93 seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipBackwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.currentTime(),n=this.player_.liveTracker,i=n&&n.isLive()&&n.seekableStart();let r;r=i&&t-this.skipTime<=i?i:t>=this.skipTime?t-this.skipTime:0,this.player_.currentTime(r)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}};H(YE,"SkipBackward");let ZE=YE;ZE.prototype.controlText_="Skip Backward",Xk.registerComponent("SkipBackward",ZE);const XE=class extends Xk{constructor(e,t){super(e,t),t&&(this.menuButton_=t.menuButton),this.focusedChild_=-1,this.on("keydown",(e=>this.handleKeyDown(e))),this.boundHandleBlur_=e=>this.handleBlur(e),this.boundHandleTapClick_=e=>this.handleTapClick(e)}addEventListenerForItem(e){e instanceof Xk&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof Xk&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){const t=this.addChild(e);t&&this.addEventListenerForItem(t)}createEl(){const e=this.options_.contentElType||"ul";this.contentEl_=LC(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const t=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),bk(t,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),t}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){const t=e.relatedTarget||bv.activeElement;if(!this.children().some((e=>e.el()===t))){const e=this.menuButton_;e&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();const t=this.children();if(!Array.isArray(t))return;const n=t.filter((t=>t.el()===e.target))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}}handleKeyDown(e){Cv.isEventKey(e,"Left")||Cv.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(Cv.isEventKey(e,"Right")||Cv.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){const t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())}};H(XE,"Menu");let QE=XE;Xk.registerComponent("Menu",QE);const JE=class extends Xk{constructor(e,t={}){super(e,t),this.menuButton_=new VT(e,t),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const n=VT.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+n,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const i=H((e=>this.handleClick(e)),"handleClick");this.handleMenuKeyUp_=e=>this.handleMenuKeyUp(e),this.on(this.menuButton_,"tap",i),this.on(this.menuButton_,"click",i),this.on(this.menuButton_,"keydown",(e=>this.handleKeyDown(e))),this.on(this.menuButton_,"mouseenter",(()=>{this.addClass("vjs-hover"),this.menu.show(),bk(bv,"keyup",this.handleMenuKeyUp_)})),this.on("mouseleave",(e=>this.handleMouseLeave(e))),this.on("keydown",(e=>this.handleSubmenuKeyDown(e)))}update(){const e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){const e=new QE(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const t=LC("li",{className:"vjs-menu-title",textContent:Gk(this.options_.title),tabIndex:-1}),n=new Xk(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(let t=0;t<this.items.length;t++)e.addItem(this.items[t]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";!0===this.options_.inline?e+="-inline":e+="-popup";return`vjs-menu-button ${e} ${VT.prototype.buildCSSClass()} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,t=this.menuButton_.el()){return this.menuButton_.controlText(e,t)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),_k(bv,"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){Cv.isEventKey(e,"Esc")||Cv.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),Cv.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(Cv.isEventKey(e,"Up")||Cv.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))}handleMenuKeyUp(e){(Cv.isEventKey(e,"Esc")||Cv.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){(Cv.isEventKey(e,"Esc")||Cv.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),Cv.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),_C&&EC())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","fal
93se"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}};H(JE,"MenuButton");let eA=JE;Xk.registerComponent("MenuButton",eA);const tA=class extends eA{constructor(e,t){const n=t.tracks;if(super(e,t),this.items.length<=1&&this.hide(),!n)return;const i=Tk(this,this.update);n.addEventListener("removetrack",i),n.addEventListener("addtrack",i),n.addEventListener("labelchange",i),this.player_.on("ready",i),this.player_.on("dispose",(function(){n.removeEventListener("removetrack",i),n.removeEventListener("addtrack",i),n.removeEventListener("labelchange",i)}))}};H(tA,"TrackButton");let nA=tA;Xk.registerComponent("TrackButton",nA);const iA=["Tab","Esc","Up","Down","Right","Left"],rA=class extends LT{constructor(e,t){super(e,t),this.selectable=t.selectable,this.isSelected_=t.selected||!1,this.multiSelectable=t.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(e,t,n){this.nonIconControl=!0;const i=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},t),n),r=LC("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?i.appendChild(r):i.replaceChild(r,i.querySelector(".vjs-icon-placeholder")),i}handleKeyDown(e){iA.some((t=>Cv.isEventKey(e,t)))||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}};H(rA,"MenuItem");let aA=rA;Xk.registerComponent("MenuItem",aA);const sA=class extends aA{constructor(e,t){const n=t.track,i=e.textTracks();t.label=n.label||n.language||"Unknown",t.selected="showing"===n.mode,super(e,t),this.track=n,this.kinds=(t.kinds||[t.kind||this.track.kind]).filter(Boolean);const r=H(((...e)=>{this.handleTracksChange.apply(this,e)}),"changeHandler"),a=H(((...e)=>{this.handleSelectedLanguageChange.apply(this,e)}),"selectedLanguageChangeHandler");if(e.on(["loadstart","texttrackchange"],r),i.addEventListener("change",r),i.addEventListener("selectedlanguagechange",a),this.on("dispose",(function(){e.off(["loadstart","texttrackchange"],r),i.removeEventListener("change",r),i.removeEventListener("selectedlanguagechange",a)})),void 0===i.onchange){let e;this.on(["tap","click"],(function(){if("object"!=typeof fv.Event)try{e=new fv.Event("change")}catch(t){}e||(e=bv.createEvent("Event"),e.initEvent("change",!0,!0)),i.dispatchEvent(e)}))}this.handleTracksChange()}handleClick(e){const t=this.track,n=this.player_.textTracks();if(super.handleClick(e),n)for(let i=0;i<n.length;i++){const e=n[i];-1!==this.kinds.indexOf(e.kind)&&(e===t?"showing"!==e.mode&&(e.mode="showing"):"disabled"!==e.mode&&(e.mode="disabled"))}}handleTracksChange(e){const t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)}handleSelectedLanguageChange(e){if("showing"===this.track.mode){const e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}};H(sA,"TextTrackMenuItem");let oA=sA;Xk.registerComponent("TextTrackMenuItem",oA);const lA=class extends oA{constructor(e,t){t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,super(e,t)}handleTracksChange(e){const t=this.player().textTracks();let n=!0;for(let i=0,r=t.length;i<r;i++){const e=t[i];if(this.options_.kinds.indexOf(e.kind)>-1&&"showing"===e.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)}handleSelectedLanguageChange(e){const t=this.player().textTracks();let n=!0;for(let i=0,r=t.length;i<r;i++){const e=t[i];if(["captions","descriptions","subtitles"].indexOf(e.kind)>-1&&"showing"===e.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}};H(lA,"OffTextTrackMenuItem");let uA=lA;Xk.registerComponent("OffTextTrackMenuItem",uA);const cA=class extends nA{constructor(e,t={}){t.tracks=e.textTracks(),super(e,t)}createItems(e=[],t=oA){let n;this.label_&&(n=`${this.label_} off`),e.push(new uA(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;const i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let r=0;r<i.length;r++){const n=i[r];if(this.kinds_.indexOf(n.kind)>-1){const i=new t(this.player_,{track:n,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});i.addClass(`vjs-${n.kind}-menu-item`),e.push(i)}}return e}};H(cA,"TextTrackButton");let dA=cA;Xk.registerComponent("TextTrackButton",dA);const pA=class extends aA{constructor(e,t){const n=t.track,i=t.cue,r=e.currentTime();t.selectable=!0,t.multiSelectable=!1,t.label=i.text,t.selected=i.startTime<=r&&r<i.endTime,super(e,t),this.track=n,this.cue=i}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}};H(pA,"ChaptersTrackMenuItem");let hA=pA;Xk.registerComponent("ChaptersTrackMenuItem",hA);const fA=class extends dA{constructor(e,t,n){super(e,t,n),this.setIcon("chapters"),this.selectCurrentItem_=()=>
vendor: 10,453 bytes, line 93
93{this.items.forEach((e=>{e.selected(this.track_.activeCues[0]===e.cue)}))}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(e){if(e&&e.track&&"chapters"!==e.track.kind)return;const t=this.findChaptersTrack();t!==this.track_?(this.setTrack(t),super.update()):(!this.items||t&&t.cues&&t.cues.length!==this.items.length)&&super.update()}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){const e=this.player_.textTracks()||[];for(let t=e.length-1;t>=0;t--){const n=e[t];if(n.kind===this.kind_)return n}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(Gk(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const e=[];if(!this.track_)return e;const t=this.track_.cues;if(!t)return e;for(let n=0,i=t.length;n<i;n++){const i=t[n],r=new hA(this.player_,{track:this.track_,cue:i});e.push(r)}return e}};H(fA,"ChaptersButton");let mA=fA;mA.prototype.kind_="chapters",mA.prototype.controlText_="Chapters",Xk.registerComponent("ChaptersButton",mA);const gA=class extends dA{constructor(e,t,n){super(e,t,n),this.setIcon("audio-description");const i=e.textTracks(),r=Tk(this,this.handleTracksChange);i.addEventListener("change",r),this.on("dispose",(function(){i.removeEventListener("change",r)}))}handleTracksChange(e){const t=this.player().textTracks();let n=!1;for(let i=0,r=t.length;i<r;i++){const e=t[i];if(e.kind!==this.kind_&&"showing"===e.mode){n=!0;break}}n?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}};H(gA,"DescriptionsButton");let yA=gA;yA.prototype.kind_="descriptions",yA.prototype.controlText_="Descriptions",Xk.registerComponent("DescriptionsButton",yA);const vA=class extends dA{constructor(e,t,n){super(e,t,n),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}};H(vA,"SubtitlesButton");let bA=vA;bA.prototype.kind_="subtitles",bA.prototype.controlText_="Subtitles",Xk.registerComponent("SubtitlesButton",bA);const _A=class extends oA{constructor(e,t){t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",super(e,t),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+t.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}};H(_A,"CaptionSettingsMenuItem");let wA=_A;Xk.registerComponent("CaptionSettingsMenuItem",wA);const SA=class extends dA{constructor(e,t,n){super(e,t,n),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){const e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new wA(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}};H(SA,"CaptionsButton");let CA=SA;CA.prototype.kind_="captions",CA.prototype.controlText_="Captions",Xk.registerComponent("CaptionsButton",CA);const kA=class extends oA{createEl(e,t,n){const i=super.createEl(e,t,n),r=i.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",i):r.appendChild(LC("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),r.appendChild(LC("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),i}};H(kA,"SubsCapsMenuItem");let xA=kA;Xk.registerComponent("SubsCapsMenuItem",xA);const TA=class extends dA{constructor(e,t={}){super(e,t),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(Gk(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new wA(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,xA),e}};H(TA,"SubsCapsButton");let EA=TA;EA.prototype.kinds_=["captions","subtitles"],EA.prototype.controlText_="Subtitles",Xk.registerComponent("SubsCapsButton",EA);const AA=class extends aA{constructor(e,t){const n=t.track,i=e.audioTracks();t.label=n.label||n.language||"Unknown",t.selected=n.enabled,super(e,t),this.track=n,this.addClass(`vjs-${n.kind}-menu-item`);const r=H(((...e)=>{this.handleTracksChange.apply(this,e)}),"changeHandler");i.addEventListener("change",r),this.on("dispose",(()=>{i.removeEventListener("change",r)}))}createEl(e,t,n){const i=super.createEl(e,t,n),r=i.querySelector(".vjs-menu-item-text");return["main-desc","description"].indexOf(this.options_.track.kind)>=0&&(r.appendChild(LC("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),r.appendChild(LC("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),i}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const e=this.player_.audioTracks();for(let t=0;t<e.length;t++){const n=e[t];n!==this.track&&(n.enabled=n===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}};H(AA,"AudioTrackMenuItem");let LA=AA;Xk.registerComponent("AudioTrackMenuItem",LA);const IA=class extends nA{constructor(e,t={}){t.tracks=e.audioTracks(),super(e,t),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;const t=this.player_.audioTracks();for(let n=0;n<t.length;n++){const i=t[n];e.push(new LA(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e}};H(IA,"AudioTrackButton");let $A=IA;$A.prototype.controlText_="Audio Track",Xk.registerComponent("AudioTrackButton",$A);const DA=class extends aA{constructor(e,t){const n=t.rate,i=parseFloat(n,10);t.label=n,t.selected=i===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,super(e,t),this.label=n,this.rate=i,this.on(e,"ratechange",(e=>this.update(e)))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}};H(DA,"PlaybackRateMenuItem");let PA=DA;PA.prototype.contentElType="button",Xk.registerComponent("PlaybackRateMenuItem",PA);const OA=class extends eA{constructor(e,t){super(e,t),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",(e=>this.updateVisibility(e))),this.on(e,"ratechange",(e=>this.updateLabel(e))),this.on(e,"playbackrateschange",(e=>this.handlePlaybackRateschange(e)))}createEl(){const e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=LC("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){const e=this.playbackRates(),t=[];for(let n=e.length-1;n>=0;n--)t.push(new PA(this.player(),{rate:e[n]+"x"}));return t}handlePlaybackRateschange(e){this.update()}playbackRates(){const e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}};H(OA,"PlaybackRateMenuButton");let MA=OA;MA.prototype.controlText_="Playback Rate",Xk.registerComponent("PlaybackRateMenuButton",MA);const RA=class extends Xk{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",t={},n={}){return t.className||(t.className=this.buildCSSClass()),super.createEl(e,t,n)}};H(RA,"Spacer");let NA=RA;Xk.registerComponent("Spacer",NA);const FA=class extends NA{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:"Â "})}};H(FA,"CustomControlSpacer");let BA=FA;Xk.registerComponent("CustomControlSpacer",BA);const HA=class extends Xk{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}};H(HA,"ControlBar");let jA=HA;jA.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]},Xk.registerComponent("ControlBar",jA);const UA=class extends gx{constructor(e,t){super(e,t),this.on(e,"error",(e=>{this.open(e)}))}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){const e=this.player().error();return e?this.localize(e.message):""}};H(UA,"ErrorDisplay");let VA=UA;VA.prototype.options_=Object.assign({}
93,gx.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Xk.registerComponent("ErrorDisplay",VA);const qA="vjs-text-track-settings",zA=["#000","Black"],WA=["#00F","Blue"],GA=["#0FF","Cyan"],KA=["#0F0","Green"],YA=["#F0F","Magenta"],ZA=["#F00","Red"],XA=["#FFF","White"],QA=["#FF0","Yellow"],JA=["1","Opaque"],eL=["0.5","Semi-Transparent"],tL=["0","Transparent"],nL={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[zA,XA,ZA,KA,WA,QA,YA,GA]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[JA,eL,tL]},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[XA,zA,ZA,KA,WA,QA,YA,GA]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:H((e=>"1.00"===e?null:Number(e)),"parser")},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[JA,eL]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[tL,eL,JA]}};function iL(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function rL(e,t){return iL(e.options[e.options.selectedIndex].value,t)}function aL(e,t,n){if(t)for(let i=0;i<e.options.length;i++)if(iL(e.options[i].value,n)===t){e.selectedIndex=i;break}}nL.windowColor.options=nL.backgroundColor.options,H(iL,"parseOptionValue"),H(rL,"getSelectedOptionValue"),H(aL,"setSelectedOption");const sL=class extends gx{constructor(e,t){t.temporary=!1,super(e,t),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.endDialog=LC("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),void 0===t.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.on(this.$(".vjs-done-button"),"click",(()=>{this.saveSettings(),this.close()})),this.on(this.$(".vjs-default-button"),"click",(()=>{this.setDefaults(),this.updateDisplay()})),WS(nL,(e=>{this.on(this.$(e.selector),"change",this.updateDisplay)})),this.options_.persistTextTrackSettings&&this.restoreSettings()}dispose(){this.endDialog=null,super.dispose()}createElSelect_(e,t="",n="label"){const i=nL[e],r=i.id.replace("%s",this.id_),a=[t,r].join(" ").trim(),s=`vjs_select_${hk()}`;return[`<${n} id="${r}"${"label"===n?` for="${s}" class="vjs-label"`:""}>`,this.localize(i.label),`</${n}>`,`<select aria-labelledby="${a}" id="${s}">`].concat(i.options.map((e=>{const t=r+"-"+e[1].replace(/\W+/g,"");return[`<option id="${t}" value="${e[0]}" `,`aria-labelledby="${a} ${t}">`,this.localize(e[1]),"</option>"].join("")}))).concat("</select>").join("")}createElFgColor_(){const e=`captions-text-legend-${this.id_}`;return['<fieldset class="vjs-fg vjs-track-setting">',`<legend id="${e}">`,this.localize("Text"),"</legend>",'<span class="vjs-text-color">',this.createElSelect_("color",e),"</span>",'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")}createElBgColor_(){const e=`captions-background-${this.id_}`;return['<fieldset class="vjs-bg vjs-track-setting">',`<legend id="${e}">
93`,this.localize("Text Background"),"</legend>",'<span class="vjs-bg-color">',this.createElSelect_("backgroundColor",e),"</span>",'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")}createElWinColor_(){const e=`captions-window-${this.id_}`;return['<fieldset class="vjs-window vjs-track-setting">',`<legend id="${e}">`,this.localize("Caption Area Background"),"</legend>",'<span class="vjs-window-color">',this.createElSelect_("windowColor",e),"</span>",'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")}createElColors_(){return LC("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})}createElFont_(){return LC("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})}createElControls_(){const e=this.localize("restore all settings to the default values");return LC("div",{className:"vjs-track-settings-controls",innerHTML:[`<button type="button" class="vjs-default-button" title="${e}">`,this.localize("Reset"),`<span class="vjs-control-text"> ${e}</span>`,"</button>",`<button type="button" class="vjs-done-button">${this.localize("Done")}</button>`].join("")})}content(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return GS(nL,((e,t,n)=>{const i=rL(this.$(t.selector),t.parser);return void 0!==i&&(e[n]=i),e}),{})}setValues(e){WS(nL,((t,n)=>{aL(this.$(t.selector),e[n],t.parser)}))}setDefaults(){WS(nL,(e=>{const t=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=t}))}restoreSettings(){let e;try{e=JSON.parse(fv.localStorage.getItem(qA))}catch(t){US.warn(t)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const e=this.getValues();try{Object.keys(e).length?fv.localStorage.setItem(qA,JSON.stringify(e)):fv.localStorage.removeItem(qA)}catch(t){US.warn(t)}}updateDisplay(){const e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}conditionalBlur_(){this.previouslyActiveEl_=null;const e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()}handleLanguagechange(){this.fill()}};H(sL,"TextTrackSettings");let oL=sL;Xk.registerComponent("TextTrackSettings",oL);const lL=class extends Xk{constructor(e,t){let n=t.ResizeObserver||fv.ResizeObserver;null===t.ResizeObserver&&(n=!1);super(e,ZS({createEl:!n,reportTouchActivity:!1},t)),this.ResizeObserver=t.ResizeObserver||fv.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=Ak((()=>{this.resizeHandler()}),100,!1,this),n?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const e=this.debouncedHandler_;let t=this.unloadListener_=function(){_k(this,"resize",e),_k(this,"unload",t),t=null};bk(this.el_.contentWindow,"unload",t),bk(this.el_.contentWindow,"resize",e)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}};H(lL,"ResizeManager");let uL=lL;Xk.registerComponent("ResizeManager",uL);const cL={trackingThreshold:20,liveTolerance:15},dL=class extends Xk{constructor(e,t){super(e,ZS(cL,t,{createEl:!1})),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=e=>this.handlePlay(e),this.handleFirstTimeupdate_=e=>this.handleFirstTimeupdate(e),this.handleSeeked_=e=>this.handleSeeked(e),this.seekToLiveEdge_=e=>this.seekToLiveEdge(e),this.reset_(),this.on(this.player_,"durationchange",(e=>this.handleDurationchange(e))),this.on(this.player_,"canplay",(()=>this.toggleTracking()))}trackLive_(){const e=this.player_.seekable();if(!e||!e.length)return;const t=Number(fv.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;const i=this.liveCurrentTime(),r=this.player_.currentTime();let a=this.player_.paused()||this.seekedBehindLive_||Math.abs(i-r)>this.options_.liveTolerance;this.timeupdateSeen_&&i!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,xk),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const e=this.player_.seekable(),t=[];let n=e?e.length:0;for(;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0}seekableStart(){const e=this.player_.seekable(),t=[];let n=e?e.length:0;for(;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0}
93liveWindow(){const e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return"number"==typeof this.trackingInterval_}seekToLiveEdge(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}};H(dL,"LiveTracker");let pL=dL;Xk.registerComponent("LiveTracker",pL);const hL=class extends Xk{constructor(e,t){super(e,t),this.on("statechanged",(e=>this.updateDom_())),this.updateDom_()}createEl(){return this.els={title:LC("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${hk()}`}),description:LC("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${hk()}`})},LC("div",{className:"vjs-title-bar"},{},XS(this.els))}updateDom_(){const e=this.player_.tech_,t=e&&e.el_,n={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach((e=>{const i=this.state[e],r=this.els[e],a=n[e];GC(r),i&&IC(r,i),t&&(t.removeAttribute(a),i&&t.setAttribute(a,r.id))})),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){const e=this.player_.tech_,t=e&&e.el_;t&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("aria-describedby")),super.dispose(),this.els=null}};H(hL,"TitleBar");let fL=hL;Xk.registerComponent("TitleBar",fL);const mL=H((e=>{const t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;const n=e.$$("source"),i=[];let r="";if(!n.length)return!1;for(let a=0;a<n.length;a++){const e=n[a].src;e&&-1===i.indexOf(e)&&i.push(e)}return!!i.length&&(1===i.length&&(r=i[0]),e.triggerSourceset(r),!0)}),"sourcesetLoad"),gL=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(e){const t=bv.createElement(this.nodeName.toLowerCase());t.innerHTML=e;const n=bv.createDocumentFragment();for(;t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",fv.Element.prototype.appendChild.call(this,n),this.innerHTML}}),yL=H(((e,t)=>{let n={};for(let i=0;i<e.length&&(n=Object.getOwnPropertyDescriptor(e[i],t),!(n&&n.set&&n.get));i++);return n.enumerable=!0,n.configurable=!0,n}),"getDescriptor"),vL=H((e=>yL([e.el(),fv.HTMLMediaElement.prototype,fv.Element.prototype,gL],"innerHTML")),"getInnerHTMLDescriptor"),bL=H((function(e){const t=e.el();if(t.resetSourceWatch_)return;const n={},i=vL(e),r=H((n=>(...i)=>{const r=n.apply(t,i);return mL(e),r}),"appendWrapper");["append","appendChild","insertAdjacentHTML"].forEach((e=>{t[e]&&(n[e]=t[e],t[e]=r(n[e]))})),Object.defineProperty(t,"innerHTML",ZS(i,{set:r(i.set)})),t.resetSourceWatch_=()=>{t.resetSourceWatch_=null,Object.keys(n).forEach((e=>{t[e]=n[e]})),Object.defineProperty(t,"innerHTML",i)},e.one("sourceset",t.resetSourceWatch_)}),"firstSourceWatch"),_L=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?Fx(fv.Element.prototype.getAttribute.call(this,"src")):""},set(e){return fv.Element.prototype.setAttribute.call(this,"src",e),e}}),wL=H((e=>yL([e.el(),fv.HTMLMediaElement.prototype,_L],"src")),"getSrcDescriptor"),SL=H((function(e){if(!e.featuresSourceset)return;const t=e.el();if(t.resetSourceset_)return;const n=wL(e),i=t.setAttribute,r=t.load;Object.defineProperty(t,"src",ZS(n,{set:H((i=>{const r=n.set.call(t,i);return e.triggerSourceset(t.src),r}),"set")})),t.setAttribute=(n,r)=>{const a=i.call(t,n,r);return/src/i.test(n)&&e.triggerSourceset(t.src),a},t.load=()=>{const n=r.call(t);return mL(e)||(e.triggerSourceset(""),bL(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):mL(e)||bL(e),t.resetSourceset_=()=>{t.resetSourceset_=null,t.load=r,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}),"setupSourceset"),CL=class e extends iT{constructor(e,t){super(e,t);const n=e.source;let i=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&"VIDEO"===this.el_.tagName,n&&(this.el_.currentSrc!==n.src||e.tag&&3===e.tag.initNetworkState_)?this.setSource(n):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const e=this.el_.childNodes;let t=e.length;const n=[];for(;t--;){const r=e[t];
93"track"===r.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),this.textTracks().addTrack(r.track),i||this.el_.hasAttribute("crossorigin")||!Hx(r.src)||(i=!0)):n.push(r))}for(let i=0;i<n.length;i++)this.el_.removeChild(n[i])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&i&&US.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),this.restoreMetadataTracksInIOSNativePlayer_(),(vC||fC)&&!0===e.nativeControlsForTouch&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),e.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){SL(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let t;const n=H((()=>{t=[];for(let n=0;n<e.length;n++){const i=e[n];"metadata"===i.kind&&t.push({track:i,storedMode:i.mode})}}),"takeMetadataTrackSnapshot");n(),e.addEventListener("change",n),this.on("dispose",(()=>e.removeEventListener("change",n)));const i=H((()=>{for(let e=0;e<t.length;e++){const n=t[e];"disabled"===n.track.mode&&n.track.mode!==n.storedMode&&(n.track.mode=n.storedMode)}e.removeEventListener("change",i)}),"restoreTrackMode");this.on("webkitbeginfullscreen",(()=>{e.removeEventListener("change",n),e.removeEventListener("change",i),e.addEventListener("change",i)})),this.on("webkitendfullscreen",(()=>{e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",i)}))}overrideNative_(e,t){if(t!==this[`featuresNative${e}Tracks`])return;const n=e.toLowerCase();this[`${n}TracksListeners_`]&&Object.keys(this[`${n}TracksListeners_`]).forEach((e=>{this.el()[`${n}Tracks`].removeEventListener(e,this[`${n}TracksListeners_`][e])})),this[`featuresNative${e}Tracks`]=!t,this[`${n}TracksListeners_`]=null,this.proxyNativeTracksForType_(n)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){const t=Qx[e],n=this.el()[t.getterName],i=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!n||!n.addEventListener)return;const r={change:H((t=>{const n={type:"change",target:i,currentTarget:i,srcElement:i};i.trigger(n),"text"===e&&this[Jx.remoteText.getterName]().trigger(n)}),"change"),addtrack(e){i.addTrack(e.track)},removetrack(e){i.removeTrack(e.track)}},a=H((function(){const e=[];for(let t=0;t<i.length;t++){let r=!1;for(let e=0;e<n.length;e++)if(n[e]===i[t]){r=!0;break}r||e.push(i[t])}for(;e.length;)i.removeTrack(e.shift())}),"removeOldTracks");this[t.getterName+"Listeners_"]=r,Object.keys(r).forEach((e=>{const t=r[e];n.addEventListener(e,t),this.on("dispose",(i=>n.removeEventListener(e,t)))})),this.on("loadstart",a),this.on("dispose",(e=>this.off("loadstart",a)))}proxyNativeTracks_(){Qx.names.forEach((e=>{this.proxyNativeTracksForType_(e)}))}createEl(){let t=this.options_.tag;if(!t||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(t){const n=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(n,t),e.disposeMediaElement(t),t=n}else{t=bv.createElement("video");const e=ZS({},this.options_.tag&&NC(this.options_.tag));vC&&!0===this.options_.nativeControlsForTouch||delete e.controls,RC(t,Object.assign(e,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}void 0!==this.options_.preload&&BC(t,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(t.disablePictureInPicture=this.options_.disablePictureInPicture);const n=["loop","muted","playsinline","autoplay"];for(let e=0;e<n.length;e++){const i=n[e],r=this.options_[i];void 0!==r&&(r?BC(t,i,i):HC(t,i),t[i]=r)}return t}handleLateInit_(e){if(0===e.networkState||3===e.networkState)return;if(0===e.readyState){let e=!1;const t=H((function(){e=!0}),"setLoadstartFired");this.on("loadstart",t);const n=H((function(){e||this.trigger("loadstart")}),"triggerLoadstart");return this.on("loadedmetadata",n),void this.ready((function(){this.off("loadstart",t),this.off("loadedmetadata",n),e||this.trigger("loadstart")}))}const t=["loadstart"];t.push("loadedmetadata"),e.readyState>=2&&t.push("loadeddata"),e.readyState>=3&&t.push("canplay"),e.readyState>=4&&t.push("canplaythrough"),this.ready((function(){t.forEach((function(e){this.trigger(e)}),this)}))}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&wC?this.el_.fastSeek(e):this.el_.currentTime=e}catch(tvt){US(tvt,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&iC&&oC&&0===this.el_.currentTime){const e=H((()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))}),"checkProgress");return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}
vendor: 10,769 bytes, line 93
93proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const e=H((function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)}),"endFn"),t=H((function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))}),"beginFn");this.on("webkitbeginfullscreen",t),this.on("dispose",(()=>{this.off("webkitbeginfullscreen",t),this.off("webkitendfullscreen",e)}))}supportsFullScreen(){return"function"==typeof this.el_.webkitEnterFullScreen}enterFullScreen(){const e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)dx(this.el_.play()),this.setTimeout((function(){e.pause();try{e.webkitEnterFullScreen()}catch(tvt){this.trigger("fullscreenerror",tvt)}}),0);else try{e.webkitEnterFullScreen()}catch(tvt){this.trigger("fullscreenerror",tvt)}}exitFullScreen(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(void 0===e)return this.el_.src;this.setSrc(e)}reset(){e.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,t,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,n):super.addTextTrack(e,t,n)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);const t=bv.createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t}addRemoteTextTrack(e,t){const n=super.addRemoteTextTrack(e,t);return this.featuresNativeTextTracks&&this.el().appendChild(n),n}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){const t=this.$$("track");let n=t.length;for(;n--;)e!==t[n]&&e!==t[n].track||this.el().removeChild(t[n])}}getVideoPlaybackQuality(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();const e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),fv.performance&&(e.creationTime=fv.performance.now()),e}};H(CL,"Html5");let kL=CL;QS(kL,"TEST_VID",(function(){if(!xC())return;const e=bv.createElement("video"),t=bv.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e})),kL.isSupported=function(){try{kL.TEST_VID.volume=.5}catch(tvt){return!1}return!(!kL.TEST_VID||!kL.TEST_VID.canPlayType)},kL.canPlayType=function(e){return kL.TEST_VID.canPlayType(e)},kL.canPlaySource=function(e,t){return kL.canPlayType(e.type)},kL.canControlVolume=function(){try{const e=kL.TEST_VID.volume;kL.TEST_VID.volume=e/2+.1;const t=e!==kL.TEST_VID.volume;return t&&_C?(fv.setTimeout((()=>{kL&&kL.prototype&&(kL.prototype.featuresVolumeControl=e!==kL.TEST_VID.volume)})),!1):t}catch(tvt){return!1}},kL.canMuteVolume=function(){try{const e=kL.TEST_VID.muted;return kL.TEST_VID.muted=!e,kL.TEST_VID.muted?BC(kL.TEST_VID,"muted","muted"):HC(kL.TEST_VID,"muted"),e!==kL.TEST_VID.muted}catch(tvt){return!1}},kL.canControlPlaybackRate=function(){if(iC&&oC&&uC<58)return!1;try{const e=kL.TEST_VID.playbackRate;return kL.TEST_VID.playbackRate=e/2+.1,e!==kL.TEST_VID.playbackRate}catch(tvt){return!1}},kL.canOverrideAttributes=function(){try{const e=H((()=>{}),"noop");Object.defineProperty(bv.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(bv.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(bv.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(bv.createElement("audio"),"innerHTML",{get:e,set:e})}catch(tvt){return!1}return!0},kL.supportsNativeTextTracks=function(){return wC||_C&&oC},kL.supportsNativeVideoTracks=function(){return!(!kL.TEST_VID||!kL.TEST_VID.videoTracks)},kL.supportsNativeAudioTracks=function(){return!(!kL.TEST_VID||!kL.TEST_VID.audioTracks)},kL.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function([e,t]){QS(kL.prototype,e,(()=>kL[t]()),!0)})),kL.prototype.featuresVolumeControl=kL.canControlVolume(),kL.prototype.movingMediaElementInDOM=!_C,kL.prototype.featuresFullscreenResize=!0,kL.prototype.featuresProgressEvents=!0,kL.prototype.featuresTimeupdateEvents=!0,kL.prototype.featuresVideoFrameCallback=!(!kL.TEST_VID||!kL.TEST_VID.requestVideoFrameCallback),kL.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(tvt){}}()}},kL.resetMediaElement=function(e){if(!e)return;const t=e.querySelectorAll("source");let n=t.length;for(;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(tvt){}}()},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){kL.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){kL.prototype["set"+Gk(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(e){kL.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){kL.prototype["set"+Gk(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){kL.prototype[e]=function(){return this.el_[e]()}})),iT.withSourceHandlers(kL),kL.nativeSourceHandler={},kL.nativeSourceHandler.canPlayType=function(e){try{return kL.TEST_VID.canPlayType(e)}catch(tvt){return""}},kL.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return kL.nativeSourceHandler.canPlayType(e.type);if(e.src){const t=Bx(e.src);return kL.nativeSourceHandler.canPlayType(`video/${t}`)}return""},kL.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},kL.nativeSourceHandler.dispose=function(){},kL.registerSourceHandler(kL.nativeSourceHandler),iT.registerTech("Html5",kL);const xL=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],TL={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},EL=["tiny","xsmall","small","medium","large","xlarge","huge"],AL={};EL.forEach((e=>{const t="x"===e.charAt(0)?`x-${e.substring(1)}`:e;AL[e]=`vjs-layout-${t}`}));const LL={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},IL=class e extends Xk{constructor(t,n,i){if(t.id=t.id||n.id||`vjs_video_${hk()}`,(n=Object.assign(e.getTagSettings(t),n)).initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language){const e=t.closest("[lang]");e&&(n.language=e.getAttribute("lang"))}if(super(null,n,i),this.boundDocumentFullscreenChange_=e=>this.documentFullscreenChange_(e),this.boundFullWindowOnEscKey_=e=>this.fullWindowOnEscKey(e),this.boundUpdateStyleEl_=e=>this.updateStyleEl_(e),this.boundApplyInitTime_=e=>this.applyInitTime_(e),this.boundUpdateCurrentBreakpoint_=e=>this.updateCurrentBreakpoint_(e),this.boundHandleTechClick_=e=>this.handleTechClick_(e),this.boundHandleTechDoubleClick_=e=>this.handleTechDoubleClick_(e),this.boundHandleTechTouchStart_=e=>this.handleTechTouchStart_(e),this.boundHandleTechTouchMove_=e=>this.handleTechTouchMove_(e),this.boundHandleTechTouchEnd_=e=>this.handleTechTouchEnd_(e),this.boundHandleTechTap_=e=>this.handleTechTap_(e),this.isFullscreen_=!1,this.log=VS(this.id_),this.fsApi_=MS,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=t,this.tagAttributes=t&&NC(t),this.language(this.options_.language),n.languages){const e={};Object.getOwnPropertyNames(n.languages).forEach((function(t){e[t.toLowerCase()]=n.languages[t]})),this.languages_=e}else this.languages_=e.prototype.options_.languages;this.resetCache_(),this.poster_=n.poster||"",this.controls_=!!n.controls,t.controls=!1,t.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],t.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),n.plugins&&Object.keys(n.plugins).forEach((e=>{if("function"!=typeof this[e])throw new Error(`plugin "${e}" does not exist`)})),this.scrubbing_=!1,this.el_=this.createEl(),Vk(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(bk(bv,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const r=ZS(this.options_);if(n.plugins&&Object.keys(n.plugins).forEach((e=>{this[e](n.plugins[e])})),n.debug&&this.debug(!0),this.options_.playerOptions=r,this.middleware_=[],this.playbackRates(n.playbackRates),n.experimentalSvgIcons){const e=(new fv.DOMParser
vendor: 16,361 bytes, line 93
93).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">\n <defs>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play">\n <path d="M16 10v28l22-14z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-pause">\n <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-audio">\n <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-captions">\n <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">\n <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">\n <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">\n <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">\n <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">\n <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">\n <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">\n <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">\n <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">\n <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>\n </symbol>\n <symbol viewBox="0 0 24 24" id="vjs-icon-hd">\n <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">\n <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>\n </symbol>\n <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">\n <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">\n <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">\n <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">\n <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-share">\n <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cog">\n <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-square">\n <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle">\n <circle cx="24" cy="24" r="20"></circle>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">\n <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-replay">\n <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">\n <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">\n <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">\n <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">\n <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">\n <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">\n <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">\n <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>\n </symbol>\n <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">\n <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">\n <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">\n <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">\n <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cast">\n <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">\n <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>\n </symbol>\n <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">\n <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>\n <path fill="none" d="M-1-3h24v24H-1z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">\n <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">\n <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>\n </symbol>\n <symbol viewBox="0 0 1
93792 1792" id="vjs-icon-twitter">\n <path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5T1369.5 1125 1185 1335.5t-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5T285 1033q33 5 61 5 43 0 85-11-112-23-185.5-111.5T172 710v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5T884 653q-8-38-8-74 0-134 94.5-228.5T1199 256q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">\n <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">\n <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>\n </symbol>\n </defs>\n</svg>',"image/svg+xml");if(e.querySelector("parsererror"))US.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const t=e.documentElement;t.style.display="none",this.el_.appendChild(t),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio("audio"===t.nodeName.toLowerCase()),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),vC&&this.addClass("vjs-touch-enabled"),_C||this.addClass("vjs-workinghover"),e.players[this.id_]=this;const a=LS.split(".")[0];this.addClass(`vjs-v${a}`),this.userActive(!0),this.reportUserActivity(),this.one("play",(e=>this.listenForUserActivity_(e))),this.on("keydown",(e=>this.handleKeyDown(e))),this.on("languagechange",(e=>this.handleLanguagechange(e))),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",(()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)}))}dispose(){this.trigger("dispose"),this.off("dispose"),_k(bv,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),_k(bv,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),e.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),vT(this),eT.names.forEac
vendor: 7,906 bytes, line 93
93h((e=>{const t=this[eT[e].getterName]();t&&t.off&&t.off()})),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e,t=this.tag,n=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player");const i="video-js"===this.tag.tagName.toLowerCase();n?e=this.el_=t.parentNode:i||(e=this.el_=super.createEl("div"));const r=NC(t);if(i){for(e=this.el_=t,t=this.tag=bv.createElement("video");e.children.length;)t.appendChild(e.firstChild);DC(e,"video-js")||PC(e,"video-js"),e.appendChild(t),n=this.playerElIngest_=e,Object.keys(e).forEach((n=>{try{t[n]=e[n]}catch(tvt){}}))}t.setAttribute("tabindex","-1"),r.tabindex="-1",oC&&pC&&(t.setAttribute("role","application"),r.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in r&&delete r.width,"height"in r&&delete r.height,Object.getOwnPropertyNames(r).forEach((function(n){i&&"class"===n||e.setAttribute(n,r[n]),i&&t.setAttribute(n,r[n])})),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=e.player=this,this.addClass("vjs-paused");const a=["IS_SMART_TV","IS_TIZEN","IS_WEBOS","IS_ANDROID","IS_IPAD","IS_IPHONE"].filter((e=>SC[e])).map((e=>"vjs-device-"+e.substring(3).toLowerCase().replace(/\_/g,"-")));if(this.addClass(...a),!0!==fv.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=lk("vjs-styles-dimensions");const e=QC(".vjs-styles-defaults"),t=QC("head");t.insertBefore(this.styleEl_,e?e.nextSibling:t.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);const s=t.getElementsByTagName("a");for(let o=0;o<s.length;o++){const e=s.item(o);PC(e,"vjs-hidden"),e.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!n&&t.parentNode.insertBefore(e,t),$C(t,e),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=e,e}crossOrigin(e){if(void 0===e)return this.techGet_("crossOrigin");null===e||"anonymous"===e||"use-credentials"===e?(this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e)):US.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`)}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,t){const n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();const i=parseFloat(t);isNaN(i)?US.error(`Improper value "${t}" supplied for for ${e}`):(this[n]=i,this.updateStyleEl_())}fluid(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,Ok(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),Mk(this,(()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)}))):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){if(!0===fv.VIDEOJS_NO_DYNAMIC_STYLE){const e="number"==typeof this.width_?this.width_:this.options_.width,t="number"==typeof this.height_?this.height_:this.options_.height,n=this.tech_&&this.tech_.el();return void(n&&(e>=0&&(n.width=e),t>=0&&(n.height=t)))}let e,t,n,i;n=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";const r=n.split(":"),a=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/a:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*a,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),uk(this.styleEl_,`\n .${i} {\n width: ${e}px;\n height: ${t}px;\n }\n\n .${i}.vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: ${100*a}%;\n }\n `)}loadTech_(e,t){this.tech_&&this.unloadTech_();const n=Gk(e),i=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(iT.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;let r=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(r=!1);const a={source:t,autoplay:r,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${i}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};eT.names.forEach((e=>{const t=eT[e];a[t.getterName]=this[t.privateName]})),Object.assign(a,this.options_[n]),Object.assign(a,this.options_[i]),Object.assign(a,this.options_[e.toLowerCase()]),this.tag&&(a.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);const s=iT.getTech(e);if(!s)throw new Error(`No Tech named '${n}' exists! '${n}' should be registered using videojs.registerTech()'`);this.tech_=new s(a),this.tech_.ready(Tk(this,this.handleTechReady_),!0),hx.jsonToTextTracks(this.textTracksJson_||[],this.tech_),xL.forEach((e=>{this.on(this.tech_,e,(t=>this[`handleTech${Gk(e)}_`](t)))})),Object.keys(TL).forEach((e=>{this.on(this.tech_,e,(t=>{0===this.tech_.playbackRate()&&this.tech_.seeking()?this.queuedCallbacks_.push({callback:this[`handleTech${TL[e]}_`].bind(this),event:t}):this[`handleTech${TL[e]}_`](t)}))})),this.on(this.tech_,"loadstart",(e=>this.handleTechLoadStart_(e))),this.on(this.tech_,"sourceset",(e=>this.handleTechSourceset_(e))),this.on(this.tech_,"waiting",(e=>this.handleTechWaiting_(e))),this.on(this.tech_,"ended",(e=>this.handleTechEnded_(e))),this.on(this.tech_,"seeking",(e=>this.handleTechSeeking_(e))),this.on(this.tech_,"play",(e=>this.handleTechPlay_(e))),this.on(this.tech_,"pause",(e=>this.handleTechPause_(e))),this.on(this.tech_,"durationchange",(e=>this.handleTechDurationChange_(e))),this.on(this.tech_,"fullscreenchange",((e,t)=>this.handleTechFullscreenChange_(e,t))),this.on(this.tech_,"fullscreenerror",((e,t)=>this.handleTechFullscreenError_(e,t))),this.on(this.tech_,"enterpictureinpicture",(e=>this.handleTechEnterPictureInPicture_(e))),this.on(this.tech_,"leavepictureinpicture",(e=>this.handleTechLeavePictureInPicture_(e))),this.on(this.tech_,"error",(e=>this.handleTechError_(e))),this.on(this.tech_,"posterchange",(e=>this.handleTechPosterChange_(e))),this.on(this.tech_,"textdata",(e=>this.handleTechTextData_(e))),this.on(this.tech_,"ratechange",(e=>this.handleTechRateChange_(e))),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||$C(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){eT.names.forEach((e=>{const t=eT[e];this[t.privateName]=this[t.getterName]()})),this.textTracksJson_=hx.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return void 0===e&&US.warn("Using the tech directly can be dangerous. I hope you know
93what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_}version(){return{"video.js":LS}}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){if(!this.tech_||"string"!=typeof e)return;const t=H((()=>{const e=this.muted();this.muted(!0);const t=H((()=>{this.muted(e)}),"restoreMuted");this.playTerminatedQueue_.push(t);const n=this.play();if(cx(n))return n.catch((e=>{throw t(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${e||""}`)}))}),"resolveMuted");let n;return"any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():t():(n=this.play(),cx(n)&&(n=n.catch(t))),cx(n)?n.then((()=>{this.trigger({type:"autoplay-success",autoplay:e})})).catch((()=>{this.trigger({type:"autoplay-failure",autoplay:e})})):void 0}updateSourceCaches_(e=""){let t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=CT(this,t)),this.cache_.source=ZS({},e,{src:t,type:n});const i=this.cache_.sources.filter((e=>e.src&&e.src===t)),r=[],a=this.$$("source"),s=[];for(let o=0;o<a.length;o++){const e=NC(a[o]);r.push(e),e.src&&e.src===t&&s.push(e.src)}s.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}handleTechSourceset_(e){if(!this.changingSrc_){let t=H((e=>this.updateSourceCaches_(e)),"updateSourceCaches");const n=this.currentSource().src,i=e.src;n&&!/^blob:/.test(n)&&/^blob:/.test(i)&&(!this.lastSource_||this.lastSource_.tech!==i&&this.lastSource_.player!==n)&&(t=H((()=>{}),"updateSourceCaches")),t(i),e.src||this.tech_.any(["sourceset","loadstart"],(e=>{if("sourceset"===e.type)return;const t=this.techGet_("currentSrc");this.lastSource_.tech=t,this.updateSourceCaches_(t)}))}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((e=>e.callback(e.event))),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const e=this.currentTime(),t=H((()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",t))}),"timeUpdateListener");this.on("timeupdate",t)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}
vendor: 10,918 bytes, line 93
93handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?dx(this.play()):this.pause()))}handleTechDoubleClick_(e){if(!this.controls_)return;Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(t=>t.contains(e.target)))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){const t=e.target.player;if(t&&t!==this)return;const n=this.el();let i=bv[this.fsApi_.fullscreenElement]===n;!i&&n.matches&&(i=n.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(i)}handleTechFullscreenChange_(e,t){t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",(()=>{this.removeClass("vjs-ios-native-fs")}))),this.isFullscreen(t.isFullscreen))}handleTechFullscreenError_(e,t){this.trigger("fullscreenerror",t)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){const e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(e,t){this.ready((function(){if(e in fT)return dT(this.middleware_,this.tech_,e,t);if(e in mT)return pT(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(tvt){throw US(tvt),tvt}}),!0)}techGet_(e){if(this.tech_&&this.tech_.isReady_){if(e in hT)return cT(this.middleware_,this.tech_,e);if(e in mT)return pT(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(tvt){if(void 0===this.tech_[e])throw US(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,tvt),tvt;if("TypeError"===tvt.name)throw US(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,tvt),this.tech_.isReady_=!1,tvt;throw US(tvt),tvt}}}play(){return new Promise((e=>{this.play_(e)}))}play_(e=dx){this.playCallbacks_.push(e);const t=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())),n=Boolean(wC||_C);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!t)return this.waitToPlay_=e=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!t&&n&&this.load());const i=this.techGet_("play");n&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===i?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(i)}runPlayTerminatedQueue_(){const e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}))}runPlayCallbacks_(e){const t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))}pause(){this.techCall_("pause")}paused(){return!1!==this.techGet_("paused")}played(){return this.techGet_("played")||tx(0,0)}scrubbing(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(e){return void 0===e?(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime):(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),this.cache_.initTime=0,void(isFinite(e)&&(this.cache_.currentTime=Number(e)))):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_)))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return e&&e.length||(e=tx(0,0)),e}seekable(){let e=this.techGet_("seekable");return e&&e.length||(e=tx(0,0)),e}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return lx(this.buffered(),this.duration())}bufferedEnd(){const e=this.buffered(),t=this.duration();let n=e.end(e.length-1);return n>t&&(n=t),n}volume(e){let t;return void 0!==e?(t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)}muted(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)}defaultMuted(e){return void 0!==e&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(void 0!==e){const t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();const t=this;return new Promise(((n,i)=>{function r(){t.off("fullscreenerror",s),t.off("fullscreenchange",a)}function a(){r(),n()}function s(e,t){r(),i(t)}H(r,"offHandler"),H(a,"changeHandler"),H(s,"errorHandler"),t.one("fullscreenchange",a),t.one("fullscreenerror",s);const o=t.requestFullscreenHelper_(e);o&&(o.then(r,r),o.then(n,i))}))}requestFullscreenHelper_(e){let t;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){const e=this.el_[this.fsApi_.requestFullscreen](t);return e&&e.then((()=>this.isFullscreen(!0)),(()=>this.isFullscreen(!1))),e}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const e=this;return new Promise(((t,n)=>{function i(){e.off("fullscreenerror",a),e.off("fullscreenchange",r)}function r(){i(),t()}function a(e,t){i(),n(t)}H(i,"offHandler"),H(r,"changeHandler"),H(a,"errorHandler"),e.one("fullscreenchange",r),e.one("fullscreenerror",a);const s=e.exitFullscreenHelper_();s&&(s.then(i,i),s.then(t,n))}))}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const e=bv[this.fsApi_.exitFullscreen]();return e&&dx(e.then((()=>this.isFullscreen(!1)))),e}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=bv.documentElement.style.overflow,bk(bv,"keydown",this.boundFullWindowOnEscKey_),bv.documentElement.style.overflow="hidden",PC(bv.body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){Cv.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,_k(bv,"keydown",this.boundFullWindowOnEscKey_),bv.documentElement.style.overflow=this.docOrigOverflow,OC(bv.body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&fv.documentPictureInPicture){const e=bv.createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(LC("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),fv.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then((t=>(tk(t),this.el_.parentNode.insertBefore(e,this.el_),t.document.body.appendChild(this.el_),t.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger({type:"enterpictureinpicture",pipWindow:t}),t.addEventListener("pagehide",(t=>{const n=t.target.querySelector(".video-js");e.parentNode.replaceChild(n,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")})),t)))}return"pictureInPictureEnabled"in bv&&!1===this.disablePictureInPicture()?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){return fv.documentPictureInPicture&&fv.documentPictureInPicture.window?(fv.documentPictureInPicture.window.close(),Promise.resolve()):"pictureInPictureEnabled"in bv?bv.exitPictureInPicture():void 0}handleKeyDown(e){const{userActions:t}=this.options_;if(!t||!t.hotkeys)return;H((e=>{const t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;
93if("input"===t)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type);return-1!==["textarea"].indexOf(t)}),"excludeElement")(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}handleHotkeys(e){const t=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:n=H((e=>Cv.isEventKey(e,"f")),"fullscreenKey"),muteKey:i=H((e=>Cv.isEventKey(e,"m")),"muteKey"),playPauseKey:r=H((e=>Cv.isEventKey(e,"k")||Cv.isEventKey(e,"Space")),"playPauseKey")}=t;if(n.call(this,e)){e.preventDefault(),e.stopPropagation();const t=Xk.getComponent("FullscreenToggle");!1!==bv[this.fsApi_.fullscreenEnabled]&&t.prototype.handleClick.call(this,e)}else if(i.call(this,e)){e.preventDefault(),e.stopPropagation();Xk.getComponent("MuteToggle").prototype.handleClick.call(this,e)}else if(r.call(this,e)){e.preventDefault(),e.stopPropagation();Xk.getComponent("PlayToggle").prototype.handleClick.call(this,e)}}canPlayType(e){let t;for(let n=0,i=this.options_.techOrder;n<i.length;n++){const r=i[n];let a=iT.getTech(r);if(a||(a=Xk.getComponent(r)),a){if(a.isSupported()&&(t=a.canPlayType(e),t))return t}else US.error(`The "${r}" tech is undefined. Skipped browser support check for that tech.`)}return""}selectSource(e){const t=this.options_.techOrder.map((e=>[e,iT.getTech(e)])).filter((([e,t])=>t?t.isSupported():(US.error(`The "${e}" tech is undefined. Skipped browser support check for that tech.`),!1))),n=H((function(e,t,n){let i;return e.some((e=>t.some((t=>{if(i=n(e,t),i)return!0})))),i}),"findFirstPassingTechSourcePair");let i;const r=H((e=>(t,n)=>e(n,t)),"flip"),a=H((([e,t],n)=>{if(t.canPlaySource(n,this.options_[e.toLowerCase()]))return{source:n,tech:e}}),"finder");return i=this.options_.sourceOrder?n(e,t,r(a)):n(t,e,a),i||!1}handleSrc_(e,t){if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const n=kT(e);if(n.length){if(this.changingSrc_=!0,t||(this.cache_.sources=n),this.updateSourceCaches_(n[0]),lT(this,n[0],((e,i)=>{this.middleware_=i,t||(this.cache_.sources=n),this.updateSourceCaches_(e);if(this.src_(e))return n.length>1?this.handleSrc_(n.slice(1)):(this.changingSrc_=!1,this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0),void this.triggerReady());uT(i,this.tech_)})),n.length>1){const e=H((()=>{this.error(null),this.handleSrc_(n.slice(1),!0)}),"retry"),t=H((()=>{this.off("error",e)}),"stopListeningForErrors");this.one("error",e),this.one("playing",t),this.resetRetryOnError_=()=>{this.off("error",e),this.off("playing",t)}}}else this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0)}src(e){return this.handleSrc_(e,!1)}src_(e){const t=this.selectSource([e]);return!t||(Kk(t.tech,this.techName_)?(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1):(this.changingSrc_=!0,this.loadTech_(t.tech,t.source),this.tech_.ready((()=>{this.changingSrc_=!1})),!1))}load(){this.tech_&&this.tech_.vhs?this.src(this.currentSource()):this.techCall_("load")}reset(){if(this.paused())this.doReset_();else{dx(this.play().then((()=>this.doReset_())))}}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),Ok(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:e,durationDisplay:t,progressControl:n,remainingTimeDisplay:i}=this.controlBar||{},{seekBar:r}=n||{};e&&e.updateContent(),t&&t.updateContent(),i&&i.updateContent(),r&&(r.update(),r.loadProgressBar&&r.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")}autoplay(e){if(void 0===e)return this.options_.autoplay||!1;let t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)}playsinline(e){return void 0!==e&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")}poster(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}
93controls(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(e){if(void 0===e)return this.error_||null;if($S("beforeerror").forEach((t=>{const n=t(this,e);KS(n)&&!Array.isArray(n)||"string"==typeof n||"number"==typeof n||null===n?e=n:this.log.error("please return a value that MediaError expects in beforeerror hooks")})),this.options_.suppressNotSupportedError&&e&&4===e.code){const t=H((function(){this.error(e)}),"triggerSuppressedError");return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",(function(){this.off(["click","touchstart"],t)}))}if(null===e)return this.error_=null,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new ux(e),this.addClass("vjs-error"),US.error(`(CODE:${this.error_.code} ${ux.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),$S("error").forEach((e=>e(this,this.error_)))}reportUserActivity(e){this.userActivity_=!0}userActive(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let e,t,n;const i=Tk(this,this.reportUserActivity),r=H((function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,i())}),"handleMouseMove"),a=H((function(){i(),this.clearInterval(e),e=this.setInterval(i,250)}),"handleMouseDown"),s=H((function(t){i(),this.clearInterval(e)}),"handleMouseUpAndMouseLeave");this.on("mousedown",a),this.on("mousemove",r),this.on("mouseup",s),this.on("mouseleave",s);const o=this.getChild("controlBar");let l;!o||_C||iC||(o.on("mouseenter",(function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),o.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",i),this.on("keyup",i);const u=H((function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(l);const e=this.options_.inactivityTimeout;e<=0||(l=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}),"activityCheck");this.setInterval(u,250)}playbackRate(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)}defaultPlaybackRate(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const e=this.children(),t=this.getChild("ControlBar"),n=t&&t.currentHeight();e.forEach((e=>{e!==t&&e.el_&&!e.hasClass("vjs-hidden")&&(e.hide(),this.audioOnlyCache_.hiddenChildren.push(e))})),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(n),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEac
vendor: 4,827 bytes, line 93
93h((e=>e.show())),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){const e=[];return this.isInPictureInPicture()&&e.push(this.exitPictureInPicture()),this.isFullscreen()&&e.push(this.exitFullscreen()),this.audioPosterMode()&&e.push(this.audioPosterMode(!1)),Promise.all(e).then((()=>this.enableAudioOnlyUI_()))}return Promise.resolve().then((()=>this.disableAudioOnlyUI_()))}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){if("boolean"!=typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;if(this.audioPosterMode_=e,e){if(this.audioOnlyMode()){return this.audioOnlyMode(!1).then((()=>{this.enablePosterModeUI_()}))}return Promise.resolve().then((()=>{this.enablePosterModeUI_()}))}return Promise.resolve().then((()=>{this.disablePosterModeUI_()}))}addTextTrack(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)}addRemoteTextTrack(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}removeRemoteTextTrack(e={}){let{track:t}=e;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Ok(this)&&this.trigger("languagechange"))}languages(){return ZS(e.prototype.options_.languages,this.languages_)}toJSON(){const e=ZS(this.options_),t=e.tracks;e.tracks=[];for(let n=0;n<t.length;n++){let i=t[n];i=ZS(i),i.player=void 0,e.tracks[n]=i}return e}createModal(e,t){(t=t||{}).content=e||"";const n=new gx(this,t);return this.addChild(n),n.on("dispose",(()=>{this.removeChild(n)})),n.open(),n}updateCurrentBreakpoint_(){if(!this.responsive())return;const e=this.currentBreakpoint(),t=this.currentWidth();for(let n=0;n<EL.length;n++){const i=EL[n];if(t<=this.breakpoints_[i]){if(e===i)return;e&&this.removeClass(AL[e]),this.addClass(AL[i]),this.breakpoint_=i;break}}}removeCurrentBreakpoint_(){const e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Object.assign({},LL,e),this.updateCurrentBreakpoint_()),Object.assign(this.breakpoints_)}responsive(e){if(void 0===e)return this.responsive_;return(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return AL[this.breakpoint_]||""}loadMedia(e,t){if(!e||"object"!=typeof e)return;const n=this.crossOrigin();this.reset(),this.cache_.media=ZS(e);const{artist:i,artwork:r,description:a,poster:s,src:o,textTracks:l,title:u}=this.cache_.media;!r&&s&&(this.cache_.media.artwork=[{src:s,type:ST(s)}]),n&&this.crossOrigin(n),o&&this.src(o),s&&this.poster(s),Array.isArray(l)&&l.forEach((e=>this.addRemoteTextTrack(e,!1))),this.titleBar&&this.titleBar.update({title:u,description:a||i||""}),this.ready(t)}getMedia(){if(!this.cache_.media){const e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),(e=>({kind:e.kind,label:e.label,language:e.language,src:e.src})))};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:ST(t.poster)}]),t}return ZS(this.cache_.media)}static getTagSettings(e){const t={sources:[],tracks:[]},n=NC(e),i=n["data-setup"];if(DC(e,"vjs-fill")&&(n.fill=!0),DC(e,"vjs-fluid")&&(n.fluid=!0),null!==i){const[e,t]=Ev(i||"{}");e&&US.error(e),Object.assign(n,t)}if(Object.assign(t,n),e.hasChildNodes()){const n=e.childNodes;for(let e=0,i=n.length;e<i;e++){const i=n[e],r=i.nodeName.toLowerCase();"source"===r?t.sources.push(NC(i)):"track"===r&&t.tracks.push(NC(i))}}return t}debug(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every((e=>"number"==typeof e))&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}};H(IL,"Player");let $L=IL;
93eT.names.forEach((function(e){const t=eT[e];$L.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),$L.prototype.crossorigin=$L.prototype.crossOrigin,$L.players={};const DL=fv.navigator;$L.prototype.options_={techOrder:iT.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:DL&&(DL.languages&&DL.languages[0]||DL.userLanguage||DL.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,enableSmoothSeeking:!1},xL.forEach((function(e){$L.prototype[`handleTech${Gk(e)}_`]=function(){return this.trigger(e)}})),Xk.registerComponent("Player",$L);const PL="plugin",OL="activePlugins_",ML={},RL=H((e=>ML.hasOwnProperty(e)),"pluginExists"),NL=H((e=>RL(e)?ML[e]:void 0),"getPlugin"),FL=H(((e,t)=>{e[OL]=e[OL]||{},e[OL][t]=!0}),"markPluginAsActive"),BL=H(((e,t,n)=>{const i=(n?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)}),"triggerSetupEvent"),HL=H((function(e,t){const n=H((function(){BL(this,{name:e,plugin:t,instance:null},!0);const n=t.apply(this,arguments);return FL(this,e),BL(this,{name:e,plugin:t,instance:n}),n}),"basicPluginWrapper");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}),"createBasicPlugin"),jL=H(((e,t)=>(t.prototype.name=e,function(...n){BL(this,{name:e,plugin:t,instance:null},!0);const i=new t(...[this,...n]);return this[e]=()=>i,BL(this,i.getEventHash()),i})),"createPluginFactory"),UL=class e{constructor(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),Vk(this),delete this.trigger,zk(this,this.constructor.defaultState),FL(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(e={}){return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}trigger(e,t={}){return wk(this.eventBusEl_,e,this.getEventHash(t))}handleStateChanged(e){}dispose(){const{name:e,player:t}=this;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[OL][e]=!1,this.player=this.state=null,t[e]=jL(e,ML[e])}static isBasic(t){const n="string"==typeof t?NL(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)}static registerPlugin(t,n){if("string"!=typeof t)throw new Error(`Illegal plugin name, "${t}", must be a string, was ${typeof t}.`);if(RL(t))US.warn(`A plugin named "${t}" already exists. You may want to avoid re-registering plugins!`);else if($L.prototype.hasOwnProperty(t))throw new Error(`Illegal plugin name, "${t}", cannot share a name with an existing player method!`);if("function"!=typeof n)throw new Error(`Illegal plugin for "${t}", must be a function, was ${typeof n}.`);return ML[t]=n,t!==PL&&(e.isBasic(n)?$L.prototype[t]=HL(t,n):$L.prototype[t]=jL(t,n)),n}static deregisterPlugin(e){if(e===PL)throw new Error("Cannot de-register base plugin.");RL(e)&&(delete ML[e],delete $L.prototype[e])}static getPlugins(e=Object.keys(ML)){let t;return e.forEach((e=>{const n=NL(e);n&&(t=t||{},t[e]=n)})),t}static getPluginVersion(e){const t=NL(e);return t&&t.VERSION||""}};H(UL,"Plugin");let VL=UL;function qL(e,t){let n=!1;return function(...i){return n||US.warn(e),n=!0,t.apply(this,i)}}function zL(e,t,n,i){return qL(`${t} is deprecated and will be removed in ${e}.0; please use ${n} instead.`,i)}VL.getPlugin=NL,VL.BASE_PLUGIN_NAME=PL,VL.registerPlugin(PL,VL),$L.prototype.usingPlugin=function(e){return!!this[OL]&&!0===this[OL][e]},$L.prototype.hasPlugin=function(e){return!!RL(e)},H(qL,"deprecate"),H(zL,"deprecateForMajor");const WL=H((e=>0===e.indexOf("#")?e.slice(1):e),"normalizeId");function GL(e,t,n){let i=GL.getPlayer(e);if(i)return t&&US.warn(`Player "${e}" is already initialised. Options will not be applied.`),n&&i.ready(n),i;const r="string"==typeof e?QC("#"+WL(e)):e;if(!TC(r))throw new TypeError("The element or ID supplied is not val
93id. (videojs)");const a="getRootNode"in r&&r.getRootNode()instanceof fv.ShadowRoot?r.getRootNode():r.ownerDocument.body;r.ownerDocument.defaultView&&a.contains(r)||US.warn("The element supplied is not included in the DOM"),!0===(t=t||{}).restoreEl&&(t.restoreEl=(r.parentNode&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),$S("beforesetup").forEach((e=>{const n=e(r,ZS(t));KS(n)&&!Array.isArray(n)?t=ZS(t,n):US.error("please return an object in beforesetup hooks")}));const s=Xk.getComponent("Player");return i=new s(r,t,n),$S("setup").forEach((e=>e(i))),i}if(H(GL,"videojs"),GL.hooks_=IS,GL.hooks=$S,GL.hook=DS,GL.hookOnce=OS,GL.removeHook=PS,!0!==fv.VIDEOJS_NO_DYNAMIC_STYLE&&xC()){let e=QC(".vjs-styles-defaults");if(!e){e=lk("vjs-styles-defaults");const t=QC("head");t&&t.insertBefore(e,t.firstChild),uk(e,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")}}sk(1,GL),GL.VERSION=LS,GL.options=$L.prototype.options_,GL.getPlayers=()=>$L.players,GL.getPlayer=e=>{const t=$L.players;let n;if("string"==typeof e){const i=WL(e),r=t[i];if(r)return r;n=QC("#"+i)}else n=e;if(TC(n)){const{player:e,playerId:i}=n;if(e||t[i])return e||t[i]}},GL.getAllPlayers=()=>Object.keys($L.players).map((e=>$L.players[e])).filter(Boolean),GL.players=$L.players,GL.getComponent=Xk.getComponent,GL.registerComponent=(e,t)=>(iT.isTech(t)&&US.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),Xk.registerComponent.call(Xk,e,t)),GL.getTech=iT.getTech,GL.registerTech=iT.registerTech,GL.use=oT,Object.defineProperty(GL,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(GL.middleware,"TERMINATOR",{value:sT,writeable:!1,enumerable:!0}),GL.browser=SC,GL.obj=JS,GL.mergeOptions=zL(9,"videojs.mergeOptions","videojs.obj.merge",ZS),GL.defineLazyProperty=zL(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",QS),GL.bind=zL(9,"videojs.bind","native Function.prototype.bind",Tk),GL.registerPlugin=VL.registerPlugin,GL.deregisterPlugin=VL.deregisterPlugin,GL.plugin=(e,t)=>(US.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),VL.registerPlugin(e,t)),GL.getPlugins=VL.getPlugins,GL.getPlugin=VL.getPlugin,GL.getPluginVersion=VL.getPluginVersion,GL.addLanguage=function(e,t){return e=(""+e).toLowerCase(),GL.options.languages=ZS(GL.options.languages,{[e]:t}),GL.options.languages[e]},GL.log=US,GL.createLogger=VS,GL.time=ox,GL.createTimeRange=zL(9,"videojs.createTimeRange","videojs.time.createTimeRanges",tx),GL.createTimeRanges=zL(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",tx),GL.formatTime=zL(9,"videojs.formatTime","videojs.time.formatTime",sx),GL.setFormatTime=zL(9,"videojs.setFormatTime","videojs.time.setFormatTime",rx),GL.resetFormatTime=zL(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",ax),GL.parseUrl=zL(9,"videojs.parseUrl","videojs.url.parseUrl",Nx),GL.isCrossOrigin=zL(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",Hx),GL.EventTarget=Dk,GL.any=Ck,GL.on=bk,GL.one=Sk,GL.off=_k,GL.trigger=wk,GL.xhr=Hv,GL.TextTrack=zx,GL.AudioTrack=Gx,GL.VideoTrack=Yx,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((e=>{GL[e]=function(){return US.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),nk[e].apply(null,arguments)}})),GL.computedStyle=zL(9,"videojs.computedStyle","videojs.dom.computedStyle",ek),GL.dom=nk,GL.fn=Lk,GL.num=dE,GL.str=Yk,GL.url=jx,GL.Error={UnsupportedSidxContainer:"unsupported-sidx-container-error",DashManifestSidxParsingError:"dash-manifest-sidx-parsing-error",HlsPlaylistRequestError:"hls-playlist-request-error",SegmentUnsupportedMediaFormat:"segment-unsupported-media-format-error",UnsupportedMediaInitialization:"unsupported-media-initialization-error",SegmentSwitchError:"segment-switch-error",SegmentExceedsSourceBufferQuota:"segment-exceeds-source-buffer-quota-error",SegmentAppendError:"segment-append-error",VttLoadError:"vtt-load-error",VttCueParsingError:"vtt-cue-parsing-error",AdsBeforePrerollError:"ads-before-preroll-error",AdsPrerollError:"ads-preroll-error",AdsMidrollError:"ads-midroll-error",AdsPostrollError:"ads-postroll-error",AdsMacroReplacementFailed:"ads-macro-replacement-failed",AdsResumeContentFailed:"ads-resume-content-failed",EMEFailedToRequestMediaKeySystemAccess:"eme-failed-request-media-key-system-access",EMEFailedToCreateMediaKeys:"eme-failed-create-media-keys",EMEFailedToAttachMediaKeysToVideoElement:"eme-failed-attach-media-keys-to-video",EMEFailedToCreateMediaKeySession:"eme-failed-create-media-key-session",EMEFailedToSetServerCertificate:"eme-failed-set-server-certificate",EMEFailedToGenerateLicenseRequest:"eme-failed-generate-license-request",EMEFailedToUpdateSessionWithReceivedLicenseKeys:"eme-failed-update-session",EMEFailedToCloseSession:"eme-failed-close-session",EMEFailedToRemoveKeysFromSession:"eme-failed-remove-keys",EMEFailedToLoadSessionBySessionId:"eme-failed-load-session"}; 94 /*! @name videojs-contrib-quality-levels @version 4.1.0 @license Apache-2.0 */ 95 const KL=class{constructor(e){let t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get:()=>t.enabled_(),set(e){t.enabled_(e)}}),t}};H(KL,"QualityLevel");let YL=KL;const ZL=class extends GL.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get:()=>e.selectedIndex_}),Object.defineProperty(e,"length",{get:()=>e.levels_.length}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let t=this.getQualityLevelById(e.id);if(t)return t;const n=this.levels_.length;return t=new YL(e),""+n in this||Object.defineProperty(this,n,{get(){return this.levels_[n]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}removeQualityLevel(e){let t=null;for(let n=0,i=this.length;n<i;n++)if(this[n]===e){t=this.levels_.splice(n,1)[0],this.selectedIndex_===n?this.selectedIndex_=-1:this.selectedIndex_>n&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}getQualityLevelById(e){for(let t=0,n=this.length;t<n;t++){const n=this[t];if(n.id===e)return n}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}};H(ZL,"QualityLevelList");let XL=ZL;XL.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const to in XL.prototype.allowedEvents_)XL.prototype["on"+to]=null;var QL="4.1.0";const JL=H((function(e,t){const n=e.qualityLevels,i=new XL,r=H((function(){i.dispose(),e.qualityLevels=n,e.off("dispose",r)}),"disposeHandler");return e.on("dispose",r),e.qualityLevels=()=>i,e.qualityLevels.VERSION=QL,i}),"initPlugin$1"),eI=H((function(e){return JL(this,GL.obj.merge({},e))}),"qualityLevels");GL.registerPlugin("qualityLevels",eI),eI.VERSION=QL; 96 /*! @name @videojs/http-streaming @version 3.12.1 @license Apache-2.0 */ 97 const tI=sb,nI=H(((e,t)=>t&&t.responseURL&&e!==t.responseURL?t.responseURL:e),"resolveManifestRedirect"),iI=H((e=>GL.log.debug?GL.log.debug.bind(GL,"VHS:",`${e} >`):function(){}),"logger");function rI(...e){const t=GL.obj||GL;return(t.merge||t.mergeOptions).apply(t,e)}function aI(...e){const t=GL.time||GL;return(t.createTimeRanges||t.createTimeRanges).apply(t,e)}function sI(e){if(0===e.length)return"Buffered Ranges are empty";let t="Buffered Ranges: \n";for(let n=0;n<e.length;n++){const i=e.start(n),r=e.end(n);t+=`${i} --\x3e ${r}. Duration (${r-i})\n`}return t}H(rI,"merge$5"),H(aI,"createTimeRanges"),H(sI,"bufferedRangesToString");const oI=1/30,lI=.1,uI=H((function(e,t){const n=[];let i;if(e&&e.length)for(i=0;i<e.length;i++)t(e.start(i),e.end(i))&&n.push([e.start(i),e.end(i)]);return aI(n)}),"filterRanges"),cI=H((function(e,t){return uI(e,(function(e,n){return e-lI<=t&&n+lI>=t}))}),"findRange"),dI=H((function(e,t){return uI(e,(function(e){return e-oI>=t}))}),"findNextRange"),pI=H((function(e){if(e.length<2)return aI();const t=[];for(let n=1;n<e.length;n++){const i=e.end(n-1),r=e.start(n);t.push([i,r])}return aI(t)}),"findGaps"),hI=H((function(e,t){let n=null,i=null,r=0;const a=[],s=[];if(!(e&&e.length&&t&&t.length))return aI();let o=e.length;for(;o--;)a.push({time:e.start(o),type:"start"}),a.push({time:e.end(o),type:"end"});for(o=t.length;o--;)a.push({time:t.start(o),type:"start"}),a.push({time:t.end(o),type:"end"});for(a.sort((function(e,t){return e.time-t.time})),o=0;o<a.length;o++)"start"===a[o].type?(r++,2===r&&(n=a[o].time)):"end"===a[o].type&&(r--,1===r&&(i=a[o].time)),null!==n&&null!==i&&(s.push([n,i]),n=null,i=null);return aI(s)}),"bufferIntersection"),fI=H((e=>{const t=[];if(!e||!e.length)return"";for(let n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")}),"printableRange"),mI=H((function(e,t,n=1){return((e.length?e.end(e.length-1):0)-t)/n}),"timeUntilRebuffer"),gI=H((e=>{const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}),"timeRangesToArray"),yI=H((function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;
97if(e.length!==t.length)return!0;for(let n=0;n<e.length;n++)if(e.start(n)!==t.start(n)||e.end(n)!==t.end(n))return!0;return!1}),"isRangeDifferent"),vI=H((function(e){if(e&&e.length&&e.end)return e.end(e.length-1)}),"lastBufferedEnd"),bI=H((function(e,t){let n=0;if(!e||!e.length)return n;for(let i=0;i<e.length;i++){const r=e.start(i),a=e.end(i);t>a||(n+=t>r&&t<=a?a-t:a-r)}return n}),"timeAheadOf"),_I=H(((e,t)=>{if(!t.preload)return t.duration;let n=0;return(t.parts||[]).forEach((function(e){n+=e.duration})),(t.preloadHints||[]).forEach((function(t){"PART"===t.type&&(n+=e.partTargetDuration)})),n}),"segmentDurationWithParts"),wI=H((e=>(e.segments||[]).reduce(((e,t,n)=>(t.parts?t.parts.forEach((function(i,r){e.push({duration:i.duration,segmentIndex:n,partIndex:r,part:i,segment:t})})):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e)),[])),"getPartsAndSegments"),SI=H((e=>{const t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]}),"getLastParts"),CI=H((({preloadSegment:e})=>{if(!e)return;const{parts:t,preloadHints:n}=e;let i=(n||[]).reduce(((e,t)=>e+("PART"===t.type?1:0)),0);return i+=t&&t.length?t.length:0,i}),"getKnownPartCount"),kI=H(((e,t)=>{if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;const n=SI(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0}),"liveEdgeDelay"),xI=H((function(e,t){let n=0,i=t-e.mediaSequence,r=e.segments[i];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;i--;){if(r=e.segments[i],void 0!==r.end)return{result:n+r.end,precise:!0};if(n+=_I(e,r),void 0!==r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}}),"backwardDuration"),TI=H((function(e,t){let n,i=0,r=t-e.mediaSequence;for(;r<e.segments.length;r++){if(n=e.segments[r],void 0!==n.start)return{result:n.start-i,precise:!0};if(i+=_I(e,n),void 0!==n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}}),"forwardDuration"),EI=H((function(e,t,n){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;const i=xI(e,t);if(i.precise)return i.result;const r=TI(e,t);return r.precise?r.result:i.result+n}),"intervalDuration"),AI=H((function(e,t,n){if(!e)return 0;if("number"!=typeof n&&(n=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return fv.Infinity}return EI(e,t,n)}),"duration"),LI=H((function({defaultDuration:e,durationList:t,startIndex:n,endIndex:i}){let r=0;if(n>i&&([n,i]=[i,n]),n<0){for(let t=n;t<Math.min(0,i);t++)r+=e;n=0}for(let a=n;a<i;a++)r+=t[a].duration;return r}),"sumDurations"),II=H((function(e,t,n,i){if(!e||!e.segments)return null;if(e.endList)return AI(e);if(null===t)return null;t=t||0;let r=EI(e,e.mediaSequence+e.segments.length,t);return n&&(r-=i="number"==typeof i?i:kI(null,e)),Math.max(0,r)}),"playlistEnd"),$I=H((function(e,t,n){const i=t||0;let r=II(e,t,!0,n);return null===r?aI():(r<i&&(r=i),aI(i,r))}),"seekable"),DI=H((function({playlist:e,currentTime:t,startingSegmentIndex:n,startingPartIndex:i,startTime:r,exactManifestTimings:a}){let s=t-r;const o=wI(e);let l=0;for(let u=0;u<o.length;u++){const e=o[u];if(n===e.segmentIndex&&("number"!=typeof i||"number"!=typeof e.partIndex||i===e.partIndex)){l=u;break}}if(s<0){if(l>0)for(let t=l-1;t>=0;t--){const n=o[t];if(s+=n.duration,a){if(s<0)continue}else if(s+oI<=0)continue;return{partIndex:n.partIndex,segmentIndex:n.segmentIndex,startTime:r-LI({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:t})}}return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:t}}if(l<0){for(let n=l;n<0;n++)if(s-=e.targetDuration,s<0)return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:t};l=0}for(let u=l;u<o.length;u++){const t=o[u];s-=t.duration;const n=t.duration>oI;if(!(0===s)&&!(n&&s+oI>=0)||u===o.length-1){if(a){if(s>0)continue}else if(s-oI>=0)continue;return{partIndex:t.partIndex,segmentIndex:t.segmentIndex,startTime:r
97+LI({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:u})}}}return{segmentIndex:o[o.length-1].segmentIndex,partIndex:o[o.length-1].partIndex,startTime:t}}),"getMediaInfoForTime"),PI=H((function(e){return e.excludeUntil&&e.excludeUntil>Date.now()}),"isExcluded"),OI=H((function(e){return e.excludeUntil&&e.excludeUntil===1/0}),"isIncompatible"),MI=H((function(e){const t=PI(e);return!e.disabled&&!t}),"isEnabled$3"),RI=H((function(e){return e.disabled}),"isDisabled"),NI=H((function(e){for(let t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1}),"isAes"),FI=H((function(e,t){return t.attributes&&t.attributes[e]}),"hasAttribute"),BI=H((function(e,t,n,i=0){if(!FI("BANDWIDTH",n))return NaN;return(e*n.attributes.BANDWIDTH-8*i)/t}),"estimateSegmentRequestTime"),HI=H(((e,t)=>{if(1===e.playlists.length)return!0;const n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter((e=>!!MI(e)&&(e.attributes.BANDWIDTH||0)<n)).length}),"isLowestEnabledRendition"),jI=H(((e,t)=>!(!e&&!t||!e&&t||e&&!t)&&(e===t||(!(!e.id||!t.id||e.id!==t.id)||(!(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)||!(!e.uri||!t.uri||e.uri!==t.uri))))),"playlistMatch"),UI=H((function(e,t){const n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{};let i=!1;for(const r in n){for(const e in n[r])if(i=t(n[r][e]),i)break;if(i)break}return!!i}),"someAudioVariant"),VI=H((e=>{if(!e||!e.playlists||!e.playlists.length){return UI(e,(e=>e.playlists&&e.playlists.length||e.uri))}for(let t=0;t<e.playlists.length;t++){const n=e.playlists[t],i=n.attributes&&n.attributes.CODECS;if(i&&i.split(",").every((e=>$b(e))))continue;if(!UI(e,(e=>jI(n,e))))return!1}return!0}),"isAudioOnly");var qI={liveEdgeDelay:kI,duration:AI,seekable:$I,getMediaInfoForTime:DI,isEnabled:MI,isDisabled:RI,isExcluded:PI,isIncompatible:OI,playlistEnd:II,isAes:NI,hasAttribute:FI,estimateSegmentRequestTime:BI,isLowestEnabledRendition:HI,isAudioOnly:VI,playlistMatch:jI,segmentDurationWithParts:_I};const{log:zI}=GL,WI=H(((e,t)=>`${e}-${t}`),"createPlaylistID"),GI=H(((e,t,n)=>`placeholder-uri-${e}-${t}-${n}`),"groupID"),KI=H((({onwarn:e,oninfo:t,manifestString:n,customTagParsers:i=[],customTagMappers:r=[],llhls:a})=>{const s=new Sb;e&&s.on("warn",e),t&&s.on("info",t),i.forEach((e=>s.addParser(e))),r.forEach((e=>s.addTagMapper(e))),s.push(n),s.end();const o=s.manifest;if(a||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(e){o.hasOwnProperty(e)&&delete o[e]})),o.segments&&o.segments.forEach((function(e){["parts","preloadHints"].forEach((function(t){e.hasOwnProperty(t)&&delete e[t]}))}))),!o.targetDuration){let t=10;o.segments&&o.segments.length&&(t=o.segments.reduce(((e,t)=>Math.max(e,t.duration)),0)),e&&e({message:`manifest has no targetDuration defaulting to ${t}`}),o.targetDuration=t}const l=SI(o);if(l.length&&!o.partTargetDuration){const t=l.reduce(((e,t)=>Math.max(e,t.duration)),0);e&&(e({message:`manifest has no partTargetDuration defaulting to ${t}`}),zI.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),o.partTargetDuration=t}return o}),"parseManifest"),YI=H(((e,t)=>{e.mediaGroups&&["AUDIO","SUBTITLES"].forEach((n=>{if(e.mediaGroups[n])for(const i in e.mediaGroups[n])for(const r in e.mediaGroups[n][i]){const a=e.mediaGroups[n][i][r];t(a,n,i,r)}}))}),"forEachMediaGroup"),ZI=H((({playlist:e,uri:t,id:n})=>{e.id=n,e.playlistErrors_=0,t&&(e.uri=t),e.attributes=e.attributes||{}}),"setupMediaPlaylist"),XI=H((e=>{let t=e.playlists.length;for(;t--;){const n=e.playlists[t];ZI({playlist:n,id:WI(t,n.uri)}),n.resolvedUri=tI(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||zI.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}),"setupMediaPlaylists"),QI=H((e=>{YI(e,(t=>{t.uri&&(t.resolvedUri=tI(e.uri,t.uri))}))}),"resolveMediaGroupUris"),JI=H(((e,t)=>{const n=WI(0,t),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:fv.location.href,resolvedUri:fv.location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return i.playlists[n]=i.playlists[0],i.playlists[t]=i.playlists[0],i}),"mainForMedia"),e$=H(((e,t,n=GI)=>{e.uri=t;
vendor: 4,584 bytes, line 97
97for(let r=0;r<e.playlists.length;r++)if(!e.playlists[r].uri){const t=`placeholder-uri-${r}`;e.playlists[r].uri=t}const i=VI(e);YI(e,((t,r,a,s)=>{if(!t.playlists||!t.playlists.length){if(i&&"AUDIO"===r&&!t.uri)for(let t=0;t<e.playlists.length;t++){const n=e.playlists[t];if(n.attributes&&n.attributes.AUDIO&&n.attributes.AUDIO===a)return}t.playlists=[eb({},t)]}t.playlists.forEach((function(t,i){const o=n(r,a,s,t),l=WI(i,o);t.uri?t.resolvedUri=t.resolvedUri||tI(e.uri,t.uri):(t.uri=0===i?o:l,t.resolvedUri=t.uri),t.id=t.id||l,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t}))})),XI(e),QI(e)}),"addPropertiesToMain"),t$=class{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(null!==this.offset_)return;if(!e.length)return;const[t]=e;void 0!==t.programDateTime&&(this.offset_=t.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;const[t]=e,n=t.startDate.getTime();this.trimProcessedDateRanges_(n),this.pendingDateRanges_=e.reduce(((e,t)=>(e.set(t.id,t),e)),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(null===this.offset_)return[];const e={},t=[];this.pendingDateRanges_.forEach(((n,i)=>{if(!this.processedDateRanges_.has(i)&&(n.startTime=n.startDate.getTime()/1e3-this.offset_,n.processDateRange=()=>this.processDateRange(n),t.push(n),n.class))if(e[n.class]){const t=e[n.class].push(n);n.classListIndex=t-1}else e[n.class]=[n],n.classListIndex=0}));for(const n of t){const t=e[n.class]||[];n.endDate?n.endTime=n.endDate.getTime()/1e3-this.offset_:n.endOnNext&&t[n.classListIndex+1]?n.endTime=t[n.classListIndex+1].startTime:n.duration?n.endTime=n.startTime+n.duration:n.plannedDuration?n.endTime=n.startTime+n.plannedDuration:n.endTime=n.startTime}return t}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach(((t,n)=>{t.startDate.getTime()<e&&this.processedDateRanges_.delete(n)}))}};H(t$,"DateRangesStorage");let n$=t$;const{EventTarget:i$}=GL,r$=H(((e,t)=>{if(t.endList||!t.serverControl)return e;const n={};if(t.serverControl.canBlockReload){const{preloadSegment:e}=t;let i=t.mediaSequence+t.segments.length;if(e){const r=e.parts||[],a=CI(t)-1;a>-1&&a!==r.length-1&&(n._HLS_part=a),(a>-1||r.length)&&i--}n._HLS_msn=i}if(t.serverControl&&t.serverControl.canSkipUntil&&(n._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){const t=new fv.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach((function(e){n.hasOwnProperty(e)&&t.searchParams.set(e,n[e])})),e=t.toString()}return e}),"addLLHLSQueryDirectives"),a$=H(((e,t)=>{if(!e)return t;const n=rI(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(let i=0;i<t.parts.length;i++)e.parts&&e.parts[i]&&(n.parts[i]=rI(e.parts[i],t.parts[i]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n}),"updateSegment"),s$=H(((e,t,n)=>{const i=e.slice(),r=t.slice();n=n||0;const a=[];let s;for(let o=0;o<r.length;o++){const e=i[o+n],t=r[o];e?(s=e.map||s,a.push(a$(e,t))):(s&&!t.map&&(t.map=s),a.push(t))}return a}),"updateSegments"),o$=H(((e,t)=>{!e.resolvedUri&&e.uri&&(e.resolvedUri=tI(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=tI(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=tI(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=tI(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach((e=>{e.resolvedUri||(e.resolvedUri=tI(t,e.uri))})),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach((e=>{e.resolvedUri||(e.resolvedUri=tI(t,e.uri))}))}),"resolveSegmentUris"),l$=H((function(e){const t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints)for(let e=0;e<n.preloadHints.length;e++)if("MAP"===n.preloadHints[e].type)return t;n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t}),"getAllSegments"),u$=H(((e,t)=>e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment),"isPlaylistUnchanged"),c$=H(((e,t,n=u$)=>{const i=rI(e,{}),r=i.playlists[t.id];if(!r)return null;if(n(r,t))return null;t.segments=l$(t);const a=rI(r,t);if(a.preloadSegment&&!t.preloadSegment&&delete a.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(let e=0;e<t.skip.skippedSegments;e++)t.segments.unshift({skipped:!0})}a.segments=s$(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}
97a.segments.forEach((e=>{o$(e,a.resolvedUri)}));for(let s=0;s<i.playlists.length;s++)i.playlists[s].id===t.id&&(i.playlists[s]=a);return i.playlists[t.id]=a,i.playlists[t.uri]=a,YI(e,((e,n,i,r)=>{if(e.playlists)for(let s=0;s<e.playlists.length;s++)t.id===e.playlists[s].id&&(e.playlists[s]=a)})),i}),"updateMain$1"),d$=H(((e,t)=>{const n=e.segments||[],i=n[n.length-1],r=i&&i.parts&&i.parts[i.parts.length-1],a=r&&r.duration||i&&i.duration;return t&&a?1e3*a:500*(e.partTargetDuration||e.targetDuration||10)}),"refreshDelay"),p$=class extends i${constructor(e,t,n={}){if(super(),!e)throw new Error("A non-empty playlist URL or object is required");this.logger_=iI("PlaylistLoader");const{withCredentials:i=!1}=n;this.src=e,this.vhs_=t,this.withCredentials=i,this.addDateRangesToTextTrack_=n.addDateRangesToTextTrack;const r=t.options_;this.customTagParsers=r&&r.customTagParsers||[],this.customTagMappers=r&&r.customTagMappers||[],this.llhls=r&&r.llhls,this.dateRangesStorage_=new n$,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){const e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);const t=this.dateRangesStorage_.getDateRangesToProcess();t.length&&this.addDateRangesToTextTrack_&&this.addDateRangesToTextTrack_(t)}handleMediaupdatetimeout_(){if("HAVE_METADATA"!==this.state)return;const e=this.media();let t=tI(this.main.uri,e.uri);this.llhls&&(t=r$(t,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:t,withCredentials:this.withCredentials,requestType:"hls-playlist"},((e,t)=>{if(this.request)return e?this.playlistRequestError(this.request,this.media(),"HAVE_METADATA"):void this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})}))}playlistRequestError(e,t,n){const{uri:i,id:r}=t;this.request=null,n&&(this.state=n),this.error={playlist:this.main.playlists[r],status:e.status,message:`HLS playlist request error at URL: ${i}.`,responseText:e.responseText,code:e.status>=500?4:2,metadata:{errorType:GL.Error.HlsPlaylistRequestError}},this.trigger("error")}parseManifest_({url:e,manifestString:t}){return KI({onwarn:H((({message:t})=>this.logger_(`m3u8-parser warn for ${e}: ${t}`)),"onwarn"),oninfo:H((({message:t})=>this.logger_(`m3u8-parser info for ${e}: ${t}`)),"oninfo"),manifestString:t,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls})}haveMetadata({playlistString:e,playlistObject:t,url:n,id:i}){this.request=null,this.state="HAVE_METADATA";const r=t||this.parseManifest_({url:n,manifestString:e});r.lastRequest=Date.now(),ZI({playlist:r,uri:n,id:i});const a=c$(this.main,r);this.targetDuration=r.partTargetDuration||r.targetDuration,this.pendingMedia_=null,a?(this.main=a,this.media_=this.main.playlists[i]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(d$(this.media(),!!a)),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),fv.clearTimeout(this.mediaUpdateTimeout),fv.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new n$,this.off()}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,t){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(fv.clearTimeout(this.finalRenditionTimeout),t){const t=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;return void(this.finalRenditionTimeout=fv.setTimeout(this.media.bind(this,e,!1),t))}const n=this.state,i=!this.media_||e.id!==this.media_.id,r=this.main.playlists[e.id];if(r&&r.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),"HAVE_MAIN_MANIFEST"===n?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(d$(e,!0)),i){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials,requestType:"hls-playlist"},((t,i)=>{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=nI(e.resolvedUri,i),t)return this.playlistRequestError(this.request,e,n);this.haveMetadata({playlistString:i.responseText,url:e.uri,id:e.id}),"HAVE_MAIN_MANIFEST"===n?this.trigger("loadedmetadata"):this.trigger("mediachange")}}))}}pause(){this.mediaUpdateTimeout&&(fv.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MAIN_MANIFEST":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}load(e){this.mediaUpdateTimeout&&(fv.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const t=this.media();if(e){const e=t?(t.partTargetDuration||t.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=fv.setTimeout((()=>{this.mediaUpdateTimeout=null,this.load()}),e)}else this.started?t&&!t.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(fv.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=fv.setTimeout((()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)}),e))}
97start(){if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=fv.location.href),this.src.resolvedUri=this.src.uri,void setTimeout((()=>{this.setupInitialPlaylist(this.src)}),0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials,requestType:"hls-playlist"},((e,t)=>{if(!this.request)return;if(this.request=null,e)return this.error={status:t.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:t.responseText,code:2,metadata:{errorType:GL.Error.HlsPlaylistRequestError}},"HAVE_NOTHING"===this.state&&(this.started=!1),this.trigger("error");this.src=nI(this.src,t);const n=this.parseManifest_({manifestString:t.responseText,url:this.src});this.setupInitialPlaylist(n)}))}srcUri(){return"string"==typeof this.src?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists)return this.main=e,e$(this.main,this.srcUri()),e.playlists.forEach((e=>{e.segments=l$(e),e.segments.forEach((t=>{o$(t,e.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.main.playlists[0]));const t=this.srcUri()||fv.location.href;this.main=JI(e,t),this.haveMetadata({playlistObject:e,url:t,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,t){const n=this.main,i=e.ID;let r=n.playlists.length;for(;r--;){const a=n.playlists[r];if(a.attributes["PATHWAY-ID"]===i){const s=a.resolvedUri,o=a.id;if(t){const t=this.createCloneURI_(a.resolvedUri,e),s=WI(i,t),o=this.createCloneAttributes_(i,a.attributes),l=this.createClonePlaylist_(a,s,e,o);n.playlists[r]=l,n.playlists[s]=l,n.playlists[t]=l}else n.playlists.splice(r,1);delete n.playlists[o],delete n.playlists[s]}}this.updateOrDeleteCloneMedia(e,t)}updateOrDeleteCloneMedia(e,t){const n=this.main,i=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((e=>{if(n.mediaGroups[e]&&n.mediaGroups[e][i])for(const t in n.mediaGroups[e])if(t===i){for(const i in n.mediaGroups[e][t]){n.mediaGroups[e][t][i].playlists.forEac
97h(((e,t)=>{const i=n.playlists[e.id],r=i.id,a=i.resolvedUri;delete n.playlists[r],delete n.playlists[a]}))}delete n.mediaGroups[e][t]}})),t&&this.createClonedMediaGroups_(e)}addClonePathway(e,t={}){const n=this.main,i=n.playlists.length,r=this.createCloneURI_(t.resolvedUri,e),a=WI(e.ID,r),s=this.createCloneAttributes_(e.ID,t.attributes),o=this.createClonePlaylist_(t,a,e,s);n.playlists[i]=o,n.playlists[a]=o,n.playlists[r]=o,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){const t=e.ID,n=e["BASE-ID"],i=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((r=>{if(i.mediaGroups[r]&&!i.mediaGroups[r][t])for(const a in i.mediaGroups[r])if(a===n){i.mediaGroups[r][t]={};for(const n in i.mediaGroups[r][a]){const s=i.mediaGroups[r][a][n];i.mediaGroups[r][t][n]=eb({},s);const o=i.mediaGroups[r][t][n],l=this.createCloneURI_(s.resolvedUri,e);o.resolvedUri=l,o.uri=l,o.playlists=[],s.playlists.forEach(((a,s)=>{const l=i.playlists[a.id],u=GI(r,t,n),c=WI(t,u);if(l&&!i.playlists[c]){const t=this.createClonePlaylist_(l,c,e),n=t.resolvedUri;i.playlists[c]=t,i.playlists[n]=t}o.playlists[s]=this.createClonePlaylist_(a,c,e)}))}}}))}createClonePlaylist_(e,t,n,i){const r=this.createCloneURI_(e.resolvedUri,n),a={resolvedUri:r,uri:r,id:t};return e.segments&&(a.segments=[]),i&&(a.attributes=i),rI(e,a)}createCloneURI_(e,t){const n=new URL(e);n.hostname=t["URI-REPLACEMENT"].HOST;const i=t["URI-REPLACEMENT"].PARAMS;for(const r of Object.keys(i))n.searchParams.set(r,i[r]);return n.href}createCloneAttributes_(e,t){const n={"PATHWAY-ID":e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((i=>{t[i]&&(n[i]=e)})),n}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const n in e.contentProtection){const i=e.contentProtection[n].attributes.keyId;i&&t.add(i.toLowerCase())}return t}}};H(p$,"PlaylistLoader");let h$=p$;const f$=H((function(e,t,n,i){const r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),i(t,e)}),"callbackWrapper"),m$=H(((e,t)=>{if(!e||!e.size)return;let n=t;return e.forEach((e=>{n=e(n)})),n}),"callAllRequestHooks"),g$=H(((e,t,n,i)=>{e&&e.size&&e.forEach((e=>{e(t,n,i)}))}),"callAllResponseHooks"),y$=H((function(){const e=H((function e(t,n){t=rI({timeout:45e3},t);const i=e.beforeRequest||GL.Vhs.xhr.beforeRequest,r=e._requestCallbackSet||GL.Vhs.xhr._requestCallbackSet||new Set,a=e._responseCallbackSet||GL.Vhs.xhr._responseCallbackSet;i&&"function"==typeof i&&(GL.log.warn("beforeRequest is deprecated, use onRequest instead."),r.add(i));const s=!0===GL.Vhs.xhr.original?GL.xhr:GL.Vhs.xhr,o=m$(r,t);r.delete(i);const l=s(o||t,(function(e,t){return g$(a,l,e,t),f$(l,e,t,n)})),u=l.abort;return l.abort=function(){return l.aborted=!0,u.apply(l,arguments)},l.uri=t.uri,l.requestTime=Date.now(),l}),"XhrFunction");return e.original=!0,e}),"xhrFactory"),v$=H((function(e){let t;const n=e.offset;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?fv.BigInt(e.offset)+fv.BigInt(e.length)-fv.BigInt(1):e.offset+e.length-1,"bytes="+n+"-"+t}),"byterangeStr"),b$=H((function(e){const t={};return e.byterange&&(t.Range=v$(e.byterange)),t}),"segmentXhrHeaders"),_$=H((function(e,t){return e.start(t)+"-"+e.end(t)}),"textRange"),w$=H((function(e,t){const n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")}),"formatHexString"),S$=H((function(e){return e>=32&&e<126?String.fromCharCode(e):"."}),"formatAsciiString"),C$=H((function(e){const t={};return Object.keys(e).forEach((n=>{const i=e[n];Ub(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i})),t}),"createTransferableMessage"),k$=H((function(e){const t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")}),"initSegmentId"),x$=H((function(e){return e.resolvedUri}),"segmentKeyId"),T$=H((e=>{const t=Array.prototype.slice.call(e),n=16;let i,r,a="";for(let s=0;s<t.length/n;s++)i=t.slice(s*n,s*n+n).map(w$).join(""),r=t.slice(s*n,s*n+n).map(S$).join(""),a+=i+" "+r+"\n";return a}),"hexDump"),E$=H((({bytes:e})=>T$(e)),"tagDump"),A$=H((e=>{let t,n="";for(t=0;t<e.length;t++)n+=_$(e,t)+" ";return n}),"textRanges");var L$=Object.freeze({__proto__:null,createTransferableMessage:C$,initSegmentId:k$,segmentKeyId:x$,hexDump:T$,tagDump:E$,textRanges:A$});const I$=H(((e,t)=>{if(!t.dateTimeObject)return null;const n=t.videoTimingInfo.transmuxerPrependedSeconds,i=e-(t.videoTimingInfo.transmuxedPresentationStart+n);return new Date(t.dateTimeObject.getTime()+1e3*i)}),"playerTimeToProgramTime"),$$=H((e=>e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds),"originalSegmentVideoDuration"),D$=H(((e,t)=>{let n;try{n=new Date(e)}catch(tvt){return null}if(!t||!t.segments||0===t.segments.length)return null;let i=t.segments[0];if(n<new Date(i.dateTimeObject))return null;for(let o=0;o<t.segments.length-1;o++){i=t.segments[o];if(n<new Date(t.segments[o+1].dateTimeObject))break}const r=t.segments[t.segments.length-1],a=r.dateTimeObject,s=r.videoTimingInfo?$$(r.videoTimingInfo):r.duration+.25*r.duration;return n>new Date(a.getTime()+1e3*s)?null:(n>
97new Date(a)&&(i=r),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:qI.duration(t,t.mediaSequence+t.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})}),"findSegmentForProgramTime"),P$=H(((e,t)=>{if(!t||!t.segments||0===t.segments.length)return null;let n,i=0;for(let a=0;a<t.segments.length&&(n=t.segments[a],i=n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration,!(e<=i));a++);const r=t.segments[t.segments.length-1];if(r.videoTimingInfo&&r.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>i){if(e>i+.25*r.duration)return null;n=r}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}}),"findSegmentForPlayerTime"),O$=H(((e,t)=>{let n,i;try{n=new Date(e),i=new Date(t)}catch(tvt){}const r=n.getTime();return(i.getTime()-r)/1e3}),"getOffsetFromTimestamp"),M$=H((e=>{if(!e.segments||0===e.segments.length)return!1;for(let t=0;t<e.segments.length;t++){if(!e.segments[t].dateTimeObject)return!1}return!0}),"verifyProgramDateTimeTags"),R$=H((({playlist:e,time:t,callback:n})=>{if(!n)throw new Error("getProgramTime: callback must be provided");if(!e||void 0===t)return n({message:"getProgramTime: playlist and time must be provided"});const i=P$(t,e);if(!i)return n({message:"valid programTime was not found"});if("estimate"===i.type)return n({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:i.estimatedStart});const r={mediaSeconds:t},a=I$(t,i.segment);return a&&(r.programDateTime=a.toISOString()),n(null,r)}),"getProgramTime"),N$=H((({programTime:e,playlist:t,retryCount:n=2,seekTo:i,pauseAfterSeek:r=!0,tech:a,callback:s})=>{if(!s)throw new Error("seekToProgramTime: callback must be provided");if(void 0===e||!t||!i)return s({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!t.endList&&!a.hasStarted_)return s({message:"player must be playing a live stream to start buffering"});if(!M$(t))return s({message:"programDateTime tags must be provided in the manifest "+t.resolvedUri});const o=D$(e,t);if(!o)return s({message:`${e} was not found in the stream`});const l=o.segment,u=O$(l.dateTimeObject,e);if("estimate"===o.type)return 0===n?s({message:`${e} is not buffered yet. Try again`}):(i(o.estimatedStart+u),void a.one("seeked",(()=>{N$({programTime:e,playlist:t,retryCount:n-1,seekTo:i,pauseAfterSeek:r,tech:a,callback:s})})));const c=l.start+u,d=H((()=>s(null,a.currentTime())),"seekedCallback");a.one("seeked",d),r&&a.pause(),i(c)}),"seekToProgramTime"),F$=H(((e,t)=>{if(4===e.readyState)return t()}),"callbackOnCompleted"),B$=H(((e,t,n)=>{let i,r=[],a=!1;const s=H((function(e,t,i,r){return t.abort(),a=!0,n(e,t,i,r)}),"endRequestAndCallback"),o=H((function(e,t){if(a)return;if(e)return s(e,t,"",r);const n=t.responseText.substring(r&&r.byteLength||0,t.responseText.length);if(r=Zb(r,Yb(n,!0)),i=i||eS(r),r.length<10||i&&r.length<i+2)return F$(t,(()=>s(e,t,"",r)));const o=xS(r);return"ts"===o&&r.length<188||!o&&r.length<376?F$(t,(()=>s(e,t,"",r))):s(null,t,o,r)}),"progressListener"),l=t({uri:e,beforeSend(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",(function({total:t,loaded:n}){return f$(e,null,{statusCode:e.status},o)}))}},(function(e,t){return f$(l,e,t,o)}));return l}),"containerRequest"),{EventTarget:H$}=GL,j$=H((function(e,t){if(!u$(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(let n=0;n<e.segments.length;n++){const i=e.segments[n],r=t.segments[n];if(i.uri!==r.uri)return!1;if(!i.byterange&&!r.byterange)continue;const a=i.byterange,s=r.byterange;if(a&&!s||!a&&s)return!1;if(a.offset!==s.offset||a.length!==s.length)return!1}return!0}),"dashPlaylistUnchanged"),U$=H(((e,t,n,i)=>`placeholder-uri-${e}-${t}-${i.attributes.NAME||n}`),"dashGroupId"),V$=H((({mainXml:e,srcUrl:t,clientOffset:n,sidxMapping:i,previousManifest:r})=>{const a=Vw(e,{manifestUri:t,clientOffset:n,sidxMapping:i,previousManifest:r});return e$(a,t,U$),a}
97),"parseMainXml"),q$=H(((e,t)=>{YI(e,((n,i,r,a)=>{a in t.mediaGroups[i][r]||delete e.mediaGroups[i][r][a]}))}),"removeOldMediaGroupLabels"),z$=H(((e,t,n)=>{let i=!0,r=rI(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts});for(let a=0;a<t.playlists.length;a++){const e=t.playlists[a];if(e.sidx){const t=Y_(e.sidx);n&&n[t]&&n[t].sidx&&j_(e,n[t].sidx,e.sidx.resolvedUri)}const s=c$(r,e,j$);s&&(r=s,i=!1)}return YI(t,((e,t,n,a)=>{if(e.playlists&&e.playlists.length){const s=e.playlists[0].id,o=c$(r,e.playlists[0],j$);o&&(r=o,a in r.mediaGroups[t][n]||(r.mediaGroups[t][n][a]=e),r.mediaGroups[t][n][a].playlists[0]=r.playlists[s],i=!1)}})),q$(r,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(i=!1),i?null:r}),"updateMain"),W$=H(((e,t)=>(Boolean(!e.map&&!t.map)||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length),"equivalentSidx"),G$=H(((e,t)=>{const n={};for(const i in e){const r=e[i].sidx;if(r){const e=Y_(r);if(!t[e])break;const i=t[e].sidxInfo;W$(i,r)&&(n[e]=t[e])}}return n}),"compareSidxEntry"),K$=H(((e,t)=>{let n=G$(e.playlists,t);return YI(e,((e,i,r,a)=>{if(e.playlists&&e.playlists.length){const i=e.playlists;n=rI(n,G$(i,t))}})),n}),"filterChangedSidxMappings"),Y$=class extends H${constructor(e,t,n={},i){super(),this.mainPlaylistLoader_=i||this,i||(this.isMain_=!0);const{withCredentials:r=!1}=n;if(this.vhs_=t,this.withCredentials=r,this.addMetadataToTextTrack=n.addMetadataToTextTrack,!e)throw new Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",(()=>{this.refreshXml_()})),this.on("mediaupdatetimeout",(()=>{this.refreshMedia_(this.media().id)})),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=iI("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}requestErrored_(e,t,n){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2,metadata:e.metadata}:e,n&&(this.state=n),this.trigger("error"),!0):void 0)}addSidxSegments_(e,t,n){const i=e.sidx&&Y_(e.sidx);if(!e.sidx||!i||this.mainPlaylistLoader_.sidxMapping_[i])return void(this.mediaRequest_=fv.setTimeout((()=>n(!1)),0));const r=nI(e.sidx.resolvedUri),a=H(((r,a)=>{if(this.requestErrored_(r,a,t))return;const s=this.mainPlaylistLoader_.sidxMapping_;let o;try{o=Xw(qb(a.response).subarray(8))}catch(tvt){return tvt.metadata={errorType:GL.Error.DashManifestSidxParsingError},void this.requestErrored_(tvt,a,t)}return s[i]={sidxInfo:e.sidx,sidx:o},j_(e,o,e.sidx.resolvedUri),n(!0)}),"fin");this.request=B$(r,this.vhs_.xhr,((t,n,i,s)=>{if(t)return a(t,n);if(!i||"mp4"!==i){const t=i||"unknown";return a({status:n.status,message:`Unsupported ${t} container type for sidx segment at URL: ${r}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2,metadata:{errorType:GL.Error.UnsupportedSidxContainer,sidxContainer:t}},n)}const{offset:o,length:l}=e.sidx.byterange;if(s.length>=l+o)return a(t,{response:s.subarray(o,o+l),status:n.status,uri:n.uri});this.request=this.vhs_.xhr({uri:r,responseType:"arraybuffer",headers:b$({byterange:e.sidx.byterange})},a)}))}dispose(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},fv.clearTimeout(this.minimumUpdatePeriodTimeout_),fv.clearTimeout(this.mediaRequest_),fv.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);const t=this.state;if("string"==typeof e){if(!this.mainPlaylistLoader_.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}const n=!this.media_||e.id!==this.media_.id;if(n&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(n&&(this.trigger("mediachanging"),this.trigger("mediachange")));n&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,t,(n=>{this.haveMetadata({startingState:t,playlist:e})})))}haveMetadata({startingState:e,playlist:t}){this.state="HAVE_METADATA",this.loadedPlaylists_[t.id]=t,this.mediaRequest_=null,this.refreshMedia_(t.id),"HAVE_MAIN_MANIFEST"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")}pause(){this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),fv.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(fv.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)}load(e){fv.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const t=this.media();if(e){const e=t?t.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=fv.setTimeout((()=>this.load()),e)}else this.started?t&&!t.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()}start(){this.started=!0,this.isMain_?this.requestMain_(((e,t)=>{this.haveMain_(),this.hasPendingRequest()||this.media_||this.media(this.mainPlaylistLoader_.main.playlists[0])})):this.mediaRequest_=fv.setTimeout((()=>
97this.haveMain_()),0)}requestMain_(e){this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials,requestType:"dash-manifest"},((t,n)=>{if(this.requestErrored_(t,n))return void("HAVE_NOTHING"===this.state&&(this.started=!1));const i=n.responseText!==this.mainPlaylistLoader_.mainXml_;return this.mainPlaylistLoader_.mainXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?this.mainLoaded_=Date.parse(n.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=nI(this.mainPlaylistLoader_.srcUrl,n),i?(this.handleMain_(),void this.syncClientServerClock_((()=>e(n,i)))):e(n,i)}))}syncClientServerClock_(e){const t=qw(this.mainPlaylistLoader_.mainXml_);return null===t?(this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()):"DIRECT"===t.method?(this.mainPlaylistLoader_.clientOffset_=t.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:tI(this.mainPlaylistLoader_.srcUrl,t.value),method:t.method,withCredentials:this.withCredentials,requestType:"dash-clock-sync"},((n,i)=>{if(!this.request)return;if(n)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e();let r;r="HEAD"===t.method?i.responseHeaders&&i.responseHeaders.date?Date.parse(i.responseHeaders.date):this.mainLoaded_:Date.parse(i.responseText),this.mainPlaylistLoader_.clientOffset_=r-Date.now(),e()})))}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){this.mediaRequest_=null;const e=this.mainPlaylistLoader_.main;let t=V$({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(t=z$(e,t,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=t||e;const n=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];return n&&n!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=n),(!e||t&&t.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(t),Boolean(t)}updateMinimumUpdatePeriodTimeout_(){const e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(fv.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let t=e.main&&e.main.minimumUpdatePeriod;0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_(`found invalid minimumUpdatePeriod of ${t}, not setting a timeout`):this.createMUPTimeout_(t)}createMUPTimeout_(e){const t=this.mainPlaylistLoader_;t.minimumUpdatePeriodTimeout_=fv.setTimeout((()=>{t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)}),e)}refreshXml_(){this.requestMain_(((e,t)=>{t&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=K$(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,(e=>{this.refreshMedia_(this.media().id)})))}))}refreshMedia_(e){if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();const t=this.mainPlaylistLoader_.main.playlists,n=!this.media_||this.media_!==t[e];if(n?this.media_=t[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){const e=H((()=>{this.media().endList||(this.mediaUpdateTimeout=fv.setTimeout((()=>{this.trigger("mediaupdatetimeout"),e()}),d$(this.media(),Boolean(n))))}),"createMediaUpdateTimeout");e()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){const e=this.mainPlaylistLoader_.main.eventStream.map((e=>({cueTime:e.start,frames:[{data:e.messageData}]})));this.addMetadataToTextTrack("EventStream",e,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const n in e.contentProtection){const i=e.contentProtection[n].attributes["cenc:default_KID"];i&&t.add(i.replace(/-/g,"").toLowerCase())}return t}}};H(Y$,"DashPlaylistLoader");let Z$=Y$;var X$={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};const Q$=H((e=>{const t=new Uint8Array(new ArrayBuffer(e.length));for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer}),"stringToArrayBuffer"),J$=H((function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e}),"browserWorkerPolyFill"),eD=H((function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(tvt){const n=new BlobBuilder;return n.append(e),URL.createObjectURL(n.getBlob())}}),"createObjectURL"),tD=H((function(e){return function(){const t=eD(e),n=J$(new Worker(t));n.objURL=t;const i=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),i.call(this)},n}}),"factory$1"),nD=H((function(e){return`var browserWorkerPolyFill = ${J$.toString()};\nbrowserWorkerPolyFill(self);\n`+e}),"transform$1"),iD=H((function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)}),"getWorkerString"),rD=nD(iD((function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=H((function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var i;return!!e[t]&&(i=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(i,1),i>-1)},this.trigger=function(t){var n,i,r,a;if(n=e[t])if(2===arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(a=[],i=arguments.length,i=1;i<arguments.length;++i)a.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,a)}},this.dispose=function(){e={}}}}),"Stream$8");t.prototype.pipe=function(e){return this.on("data",(function(t){e.push(t)})),this.on("done",(function(t){e.flush(t)})),this.on("partialdone",(function(t){e.partialFlush(t)})),this.on("endedtimeline",(function(t){e.endTimeline(t)})),this.on("reset",(function(t){e.reset(t)})),e},t.prototype.push=function(e){this.trigger("data",e)},t.prototype.flush=function(e){this.trigger("done",e)},t.prototype.partialFlush=function(e){this.trigger("partialdone",e)},t.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},t.prototype.reset=function(e){this.trigger("reset",e)};var n,i,r,a,s,o,l,u,c,d,p,h,f,m,g,y,v,b,_,w,S,C,k,x,T,E,A,L,I,$,D,P,O,M,R,N,F,B,j,U,V,q=t,z=Math.pow(2,32),W={getUint64:H((function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?
97Number(t):t:n.getUint32(0)*z+n.getUint32(4)}),"getUint64$3"),MAX_UINT32:z},G=W.MAX_UINT32;!function(){var e;if(k={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in k)k.hasOwnProperty(e)&&(k[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);x=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),E=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),T=new Uint8Array([0,0,0,1]),A=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),L=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),I={video:A,audio:L},P=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),D=new Uint8Array([0,0,0,0,0,0,0,0]),O=new Uint8Array([0,0,0,0,0,0,0,0]),M=O,R=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),N=O,$=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),n=H((function(e){var t,n,i=[],r=0;for(t=1;t<arguments.length;t++)i.push(arguments[t]);for(t=i.length;t--;)r+=i[t].byteLength;for(n=new Uint8Array(r+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(e,4),t=0,r=8;t<i.length;t++)n.set(i[t],r),r+=i[t].byteLength;return n}),"box"),i=H((function(){return n(k.dinf,n(k.dref,P))}),"dinf"),r=H((function(e){return n(k.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))}),"esds"),a=H((function(){return n(k.ftyp,x,T,x,E)}),"ftyp"),y=H((function(e){return n(k.hdlr,I[e])}),"hdlr"),s=H((function(e){return n(k.mdat,e)}),"mdat"),g=H((function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),n(k.mdhd,t)}),"mdhd"),m=H((function(e){return n(k.mdia,g(e),y(e.type),l(e))}),"mdia"),o=H((function(e){return n(k.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))}),"mfhd"),l=H((function(e){return n(k.minf,"video"===e.type?n(k.vmhd,$):n(k.smhd,D),i(),b(e))}),"minf"),u=H((function(e,t){for(var i=[],r=t.length;r--;)i[r]=w(t[r]);return n.apply(null,[k.moof,o(e)].concat(i))}),"moof"),c=H((function(e){for(var t=e.length,i=[];t--;)i[t]=h(e[t]);return n.apply(null,[k.moov,p(4294967295)].concat(i).concat(d(e)))}),"moov"),d=H((function(e){for(var t=e.length,i=[];t--;)i[t]=S(e[t]);return n.apply(null,[k.mvex].concat(i))}),"mvex"),p=H((function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return n(k.mvhd,t)}),"mvhd"),v=H((function(e){var t,i,r=e.samples||[],a=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)t=r[i].flags,a[i+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return n(k.sdtp,a)}),"sdtp"),b=H((function(e){return n(k.stbl,_(e),n(k.stts,N),n(k.stsc,M),n(k.stsz,R),n(k.stco,O))}),"stbl"),_=H((function(e){return n(k.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?F(e):B(e))}),"stsd"),F=H((function(e){var t,i,r=e.sps||[],a=e.pps||[],s=[],o=[];for(t=0;t<r.length;t++)s.push((65280&r[t].byteLength)>>>8),s.push(255&r[t].byteLength),s=s.concat(Array.prototype.slice.call(r[t]));for(t=0;t<a.length;t++)o.push((65280&a[t].byteLength)>>>8),o.push(255&a[t].byteLength),o=o.concat(Array.prototype.slice.call(a[t]));if(i=[k.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),n(k.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],s,[a.length],o))),n(k.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.s
97arRatio[0],u=e.sarRatio[1];i.push(n(k.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return n.apply(null,i)}),"videoSample"),B=H((function(e){return n(k.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),r(e))}),"audioSample"),f=H((function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return n(k.tkhd,t)}),"tkhd"),w=H((function(e){var t,i,r,a,s,o;return t=n(k.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),s=Math.floor(e.baseMediaDecodeTime/G),o=Math.floor(e.baseMediaDecodeTime%G),i=n(k.tfdt,new Uint8Array([1,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,o>>>24&255,o>>>16&255,o>>>8&255,255&o])),92,"audio"===e.type?(r=C(e,92),n(k.traf,t,i,r)):(a=v(e),r=C(e,a.length+92),n(k.traf,t,i,r,a))}),"traf"),h=H((function(e){return e.duration=e.duration||4294967295,n(k.trak,f(e),m(e))}),"trak"),S=H((function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),n(k.trex,t)}),"trex"),V=H((function(e,t){var n=0,i=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(i=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,n|i|r|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]}),"trunHeader"),U=H((function(e,t){var i,r,a,s,o,l;for(t+=20+16*(s=e.samples||[]).length,a=V(s,t),(r=new Uint8Array(a.length+16*s.length)).set(a),i=a.length,l=0;l<s.length;l++)o=s[l],r[i++]=(4278190080&o.duration)>>>24,r[i++]=(16711680&o.duration)>>>16,r[i++]=(65280&o.duration)>>>8,r[i++]=255&o.duration,r[i++]=(4278190080&o.size)>>>24,r[i++]=(16711680&o.size)>>>16,r[i++]=(65280&o.size)>>>8,r[i++]=255&o.size,r[i++]=o.flags.isLeading<<2|o.flags.dependsOn,r[i++]=o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,r[i++]=61440&o.flags.degradationPriority,r[i++]=15&o.flags.degradationPriority,r[i++]=(4278190080&o.compositionTimeOffset)>>>24,r[i++]=(16711680&o.compositionTimeOffset)>>>16,r[i++]=(65280&o.compositionTimeOffset)>>>8,r[i++]=255&o.compositionTimeOffset;return n(k.trun,r)}),"videoTrun"),j=H((function(e,t){var i,r,a,s,o,l;for(t+=20+8*(s=e.samples||[]).length,a=V(s,t),(i=new Uint8Array(a.length+8*s.length)).set(a),r=a.length,l=0;l<s.length;l++)o=s[l],i[r++]=(4278190080&o.duration)>>>24,i[r++]=(16711680&o.duration)>>>16,i[r++]=(65280&o.duration)>>>8,i[r++]=255&o.duration,i[r++]=(4278190080&o.size)>>>24,i[r++]=(16711680&o.size)>>>16,i[r++]=(65280&o.size)>>>8,i[r++]=255&o.size;return n(k.trun,i)}),"audioTrun"),C=H((function(e,t){return"audio"===e.type?j(e,t):U(e,t)}),"trun$1");var K,Y,Z,X,Q,J,ee,te,ne={ftyp:a,mdat:s,moof:u,moov:c,initSegment:H((function(e){var t,n=a(),i=c(e);return(t=new Uint8Array(n.byteLength+i.byteLength)).set(n),t.set(i,n.byteLength),t}),"initSegment")},ie=H((function(e){var t,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,i.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(n=e[t]).nalUnitType?(i.length&&(i.duration=n.dts-i.dts,r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i)),(i=[n]).byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return r.length&&(!i.duration||i.duration<=0)&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i),r}),"groupNalsIntoFrames"),re=H((function(e){var t,n,i=[],r=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)(n=e[t]).keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),(i=[n]).nalCount=n.length,i.byteLength=n.byteLength,i.pts=n.pts,i.dts=n.dts,i.duration=n.duration):(i.duration+=n.duration,i.nalCount+=n.length,i.byteLength+=n.byteLength,i.push(n));return r.length&&i.duration<=0&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration,r.push(i),r}),"groupFramesIntoGops"),ae=H((function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e}),"extendFirstKeyFrame"),se=H((function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}}),"createDefaultSample"),oe=H((function(e,t){var n=se();return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n}),"sampleForFrame"),le={groupNalsIntoFrames:ie,groupFramesIntoGops:re,extendFirstKeyFrame:ae,generateSampleTable:H((function(e,t){var n,i,r,a,s,o=t||0,l=[];for(n=0;n<e.length;n++)for(a=e[n],i=0;i<a.length;i++)s=a[i],o+=(r=oe(s,o)).size,l.push(r);return l}),"generateSampleTable$1"),concatenateNalData:H((function(e){var t,n,i,r,a,s,o=0,l=e.byteLength,u=e.nalCount,c=new Uint8Array(l+4*u),d=new DataView(c.buffer);for(t=0;t<e.length;t++)for(r=e[t],n=0;n<r.length;n++)for(a=r[n],i=0;i<a.length;i++)s=a[i],d.setUint32(o,s.data.byteLength),o+=4,c.set(s.data,o),o+=s.data.byteLength;return c}),"concatenateNalData"),generateSampleTableForFrame:H((function(e,t){var n,i=[];return n=oe(e,t||0),i.push(n),i}),"generateSampleTableForFrame"),concatenateNalDataForFrame:H((function(e){var t,n,i=0,r=e.byteLength,a=e.length,s=new Uint8Array(r+4*a),o=new DataView(s.buffer);for(t=0;t<e.length;t++)n=e[t],o.setUint32(i,n.data.byteLength),i+=4,s.set(n.data,i),i+=n.data.byteLength;return s}),"concatenateNalDataForFrame")},ue=[33,16,5,32,164,27],ce=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],de=H((function(e){for(var t=[];e--;)t.push(0);return t}),"zeroFill"),pe=H((function(e){return Object.keys(e).reduce((function(t,n){return t[n]=new Uint8Array(e[n].reduce((function(e,t){return e.concat(t)}),[])),t}),{})}),"makeTable"),he=H((function(){if(!K){var e={96e3:[ue,[227,64],de(154),[56]],88200:[ue,[231],de(170),[56]],64e3:[ue,[248,192],de(240),[56]],48e3:[ue,[255,192],de(268),[55,148,128],de(54),[112]],44100:[ue,[255,192],de(268),[55,163,128],de(84),[112]],32e3:[ue,[255,192],de(268),[55,234],de(226),[112]],24e3:[ue,[255,192],de(268),[55,255,128],de(268),[111,112],de(126),[224]],16e3:[ue,[255,192],de(268),[55,255,128],de(268),[111,255],de(269),[223,108],de(195),[1,192]],12e3:[ce,de(268),[3,127,248],de(268),[6,255,240],de(268),[13,255,224],de(268),[27,253,128],de(259),[56]],11025:[ce,de(268),[3,127,248],de(268),[6,255,240],de(268),[13,255,224],de(268),[27,255,192],de(268),[55,175,128],de(108),[112]],8e3:[ce,de(268),[3,121,16],de(47),[7]]};K=pe(e)}return K}),"silence_1"),fe=9e4;Y=H((function(e){return e*fe}),"secondsToVideoTs"),Z=H((function(e,t){return e*t}
97),"secondsToAudioTs"),X=H((function(e){return e/fe}),"videoTsToSeconds"),Q=H((function(e,t){return e/t}),"audioTsToSeconds"),J=H((function(e,t){return Y(Q(e,t))}),"audioTsToVideoTs"),ee=H((function(e,t){return Z(X(e),t)}),"videoTsToAudioTs"),te=H((function(e,t,n){return X(n?e:e-t)}),"metadataTsToSeconds");var me={ONE_SECOND_IN_TS:fe,secondsToVideoTs:Y,secondsToAudioTs:Z,videoTsToSeconds:X,audioTsToSeconds:Q,audioTsToVideoTs:J,videoTsToAudioTs:ee,metadataTsToSeconds:te},ge=he,ye=me,ve=H((function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].data.byteLength;return n}),"sumFrameByteLengths"),be={prefixWithSilence:H((function(e,t,n,i){var r,a,s,o,l,u=0,c=0,d=0;if(t.length&&(r=ye.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),a=Math.ceil(ye.ONE_SECOND_IN_TS/(e.samplerate/1024)),n&&i&&(u=r-Math.max(n,i),d=(c=Math.floor(u/a))*a),!(c<1||d>ye.ONE_SECOND_IN_TS/2))){for((s=ge()[e.samplerate])||(s=t[0].data),o=0;o<c;o++)l=t[0],t.splice(0,0,{data:s,dts:l.dts-a,pts:l.pts-a});return e.baseMediaDecodeTime-=Math.floor(ye.videoTsToAudioTs(d,e.samplerate)),d}}),"prefixWithSilence"),trimAdtsFramesByEarliestDts:H((function(e,t,n){return t.minSegmentDts>=n?e:(t.minSegmentDts=1/0,e.filter((function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)})))}),"trimAdtsFramesByEarliestDts"),generateSampleTable:H((function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],i.push({size:n.data.byteLength,duration:1024});return i}),"generateSampleTable"),concatenateFrameData:H((function(e){var t,n,i=0,r=new Uint8Array(ve(e));for(t=0;t<e.length;t++)n=e[t],r.set(n.data,i),i+=n.data.byteLength;return r}),"concatenateFrameData")},_e=me.ONE_SECOND_IN_TS,we=H((function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))}),"collectDtsInfo"),Se={clearDtsInfo:H((function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts}),"clearDtsInfo"),calculateTrackBaseMediaDecodeTime:H((function(e,t){var n,i=e.minSegmentDts;return t||(i-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=i,n=Math.max(0,n),"audio"===e.type&&(n*=e.samplerate/_e,n=Math.floor(n)),n}),"calculateTrackBaseMediaDecodeTime"),collectDtsInfo:we},Ce={parseSei:H((function(e){for(var t=0,n={payloadType:-1,payloadSize:0},i=0,r=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)i+=255,t++;for(i+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!n.payload&&4===i){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){n.payloadType=i,n.payloadSize=r,n.payload=e.subarray(t,t+r);break}n.payload=void 0}t+=r,i=0,r=0}return n}),"parseSei"),parseUserData:H((function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)}),"parseUserData"),parseCaptionPackets:H((function(e,t){var n,i,r,a,s=[];if(!(64&t[0]))return s;for(i=31&t[0],n=0;n<i;n++)a={type:3&t[(r=3*n)+2],pts:e},4&t[r+2]&&(a.ccData=t[r+3]<<8|t[r+4],s.push(a));return s}),"parseCaptionPackets"),discardEmulationPreventionBytes:H((function(e){for(var t,n,i=e.byteLength,r=[],a=1;a<i-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),n[a]=e[s];return n}),"discardEmulationPreventionBytes$1"),USER_DATA_REGISTERED_ITU_T_T35:4},ke=q,xe=Ce,Te=H((function(e){e=e||{},Te.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Ne(0,0),new Ne(0,1),new Ne(1,0),new Ne(1,1)],this.parse708captions_&&(this.cc708Stream_=new De({captionServices:e.captionServices})),this.reset(),this.ccStreams_.forEach((function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))}),this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))}),"CaptionStream$2");Te.prototype=new ke,Te.prototype.push=function(e){var t,n,i;
vendor: 4,627 bytes, line 97
97if("sei_rbsp"===e.nalUnitType&&(t=xe.parseSei(e.escapedRBSP)).payload&&t.payloadType===xe.USER_DATA_REGISTERED_ITU_T_T35&&(n=xe.parseUserData(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=xe.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},Te.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},Te.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach((function(e,t){e.presortIndex=t})),this.captionPackets_.sort((function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts})),this.captionPackets_.forEach((function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)}),this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},Te.prototype.flush=function(){return this.flushStream("flush")},Te.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Te.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},Te.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},Te.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},Te.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},Te.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},Te.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var Ee={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},Ae=H((function(e){var t=Ee[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)}),"get708CharFromCode"),Le=H((function(e){return 32<=e&&e<=127||160<=e&&e<=255}),"within708TextBlock"),Ie=H((function(e){this.windowNum=e,this.reset()}),"Cea708Window");Ie.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},Ie.prototype.getText=function(){return this.rows.join("\n")},Ie.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Ie.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Ie.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Ie.prototype.addText=function(e){this.rows[this.rowIdx]+=e},Ie.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var $e=H((function(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new Ie(-1),this.windows=[],this.stream=n,"string"==typeof t&&this.createTextDecoder(t)}),"Cea708Service");$e.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new Ie(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},$e.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},$e.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var De=H((function(e){e=e||{},De.prototype.init.call(this);var t,n=this,i=e.captionServices||{},r={};
vendor: 9,599 bytes, line 97
97Object.keys(i).forEach((e=>{t=i[e],/^SERVICE/.test(e)&&(r[e]=t.encoding)})),this.serviceEncodings=r,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(n.new708Packet(),n.add708Bytes(e)):(null===n.current708Packet&&n.new708Packet(),n.add708Bytes(e))}}),"Cea708Stream");De.prototype=new ke,De.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},De.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8,i=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(i)},De.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,i=null,r=0,a=t[r++];for(e.seq=a>>6,e.sizeCode=63&a;r<t.length;r++)i=31&(a=t[r++]),7===(n=a>>5)&&i>0&&(n=a=t[r++]),this.pushServiceBlock(n,r,i),i>0&&(r+=i-1)},De.prototype.pushServiceBlock=function(e,t,n){var i,r=t,a=this.current708Packet.data,s=this.services[e];for(s||(s=this.initService(e,r));r<t+n&&r<a.length;r++)i=a[r],Le(i)?r=this.handleText(r,s):24===i?r=this.multiByteCharacter(r,s):16===i?r=this.extendedCommands(r,s):128<=i&&i<=135?r=this.setCurrentWindow(r,s):152<=i&&i<=159?r=this.defineWindow(r,s):136===i?r=this.clearWindows(r,s):140===i?r=this.deleteWindows(r,s):137===i?r=this.displayWindows(r,s):138===i?r=this.hideWindows(r,s):139===i?r=this.toggleWindows(r,s):151===i?r=this.setWindowAttributes(r,s):144===i?r=this.setPenAttributes(r,s):145===i?r=this.setPenColor(r,s):146===i?r=this.setPenLocation(r,s):143===i?s=this.reset(r,s):8===i?s.currentWindow.backspace():12===i?s.currentWindow.clearText():13===i?s.currentWindow.pendingNewLine=!0:14===i?s.currentWindow.clearText():141===i&&r++},De.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data[++e];return Le(n)&&(e=this.handleText(e,t,{isExtended:!0})),e},De.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},De.prototype.initService=function(e,t){var n,i,r=this;return(n="SERVICE"+e)in this.serviceEncodings&&(i=this.serviceEncodings[n]),this.services[e]=new $e(e,i,r),this.services[e].init(this.getPts(t),(function(t){r.flushDisplayed(t,r.services[e])})),this.services[e]},De.prototype.handleText=function(e,t,n){var i,r,a=n&&n.isExtended,s=n&&n.isMultiByte,o=this.current708Packet.data,l=a?4096:0,u=o[e],c=o[e+1],d=t.currentWindow;function p(e){return e.map((e=>("0"+(255&e).toString(16)).slice(-2))).join("")}if(H(p,"toHexString"),s?(r=[u,c],e++):r=[u],t.textDecoder_&&!a)i=t.textDecoder_.decode(new Uint8Array(r));else if(s){const e=p(r);i=String.fromCharCode(parseInt(e,16))}else i=Ae(l|u);return d.pendingNewLine&&!d.isEmpty()&&d.newLine(this.getPts(e)),d.pendingNewLine=!1,d.addText(i),e},De.prototype.multiByteCharacter=function(e,t){var n=this.current708Packet.data,i=n[e+1],r=n[e+2];return Le(i)&&Le(r)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},De.prototype.setCurrentWindow=function(e,t){var n=7&this.current708Packet.data[e];return t.setCurrentWindow(n),e},De.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,i=n[e],r=7&i;t.setCurrentWindow(r);var a=t.currentWindow;return i=n[++e],a.visible=(32&i)>>5,a.rowLock=(16&i)>>4,a.columnLock=(8&i)>>3,a.priority=7&i,i=n[++e],a.relativePositioning=(128&i)>>7,a.anchorVertical=127&i,i=n[++e],a.anchorHorizontal=i,i=n[++e],a.anchorPoint=(240&i)>>4,a.rowCount=15&i,i=n[++e],a.columnCount=63&i,i=n[++e],a.windowStyle=(56&i)>>3,a.penStyle=7&i,a.virtualRowCount=a.rowCount+1,e},De.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.winAttr;return i=n[++e],r.fillOpacity=(192&i)>>6,r.fillRed=(48&i)>>4,r.fillGreen=(12&i)>>2,r.fillBlue=3&i,i=n[++e],r.borderType=(192&i)>>6,r.borderRed=(48&i)>>4,r.borderGreen=(12&i)>>2,r.borderBlue=3&i,i=n[++e],r.borderType+=(128&i)>>5,r.wordWrap=(64&i)>>6,r.printDirection=(48&i)>>4,r.scrollDirection=(12&i)>>2,r.justify=3&i,i=n[++e],r.effectSpeed=(240&i)>>4,r.effectDirection=(12&i)>>2,r.displayEffect=3&i,e},De.prototype.flushDisplayed=function(e,t){for(var n=[],i=0;i<8;i++)t.windows[i].visible&&!t.windows[i].isEmpty()&&n.push(t.windows[i].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},De.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},De.prototype.displayWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible=1);return e},De.prototype.hideWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible=0);return e},De.prototype.toggleWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible^=1);return e},De.prototype.clearWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&t.windows[r].clearText();return e},De.prototype.deleteWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&t.windows[r].reset();return e},De.prototype.setPenAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penAttr;return i=n[++e],r.textTag=(240&i)>>4,r.offset=(12&i)>>2,r.penSize=3&i,i=n[++e],r.italics=(128&i)>>7,r.underline=(64&i)>>6,r.edgeType=(56&i)>>3,r.fontStyle=7&i,e},De.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penColor;return i=n[++e],r.fgOpacity=(192&i)>>6,r.fgRed=(48&i)>>4,r.fgGreen=(12&i)>>2,r.fgBlue=3&i,i=n[++e],r.bgOpacity=(192&i)>>6,r.bgRed=(48&i)>>4,r.bgGreen=(12&i)>>2,r.bgBlue=3&i,i=n[++e],r.edgeRed=(48&i)>>4,r.edgeGreen=(12&i)>>2,r.edgeBlue=3&i,e},De.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,i=n[++e],r.row=15&i,i=n[++e],r.column=63&i,e},De.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var Pe={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Oe=H((function(e){return null===e?"":(e=Pe[e]||e,String.fromCharCode(e))}),"getCharFromCode"),Me=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Re=H((function(){for(var e=[],t=15;t--;)e.push({text:"",indent:0,offset:0});return e}),"createDisplayBuffer"),Ne=H((function(e,t){Ne.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,i,r,a;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),i=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Re();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Re();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Re()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(i,r))a=Oe((i=(3&i)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),a=Oe((i=(3&i)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&r)&&this.addFormatting(e.pts,["i"]),1==(1&r)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(i,r)){const e=3&r;this.nonDisplayed_[this.row_].offset=e,this.column_+=e}else if(this.isPAC(i,r)){var s=Me.indexOf(7968&t);if("rollUp"===this.mode_&&(s-this.rollUpRows_+1<0&&(s=this.rollUpRows_-1),this.setRollUp(e.pts,s)
97),s!==this.row_&&s>=0&&s<=14&&(this.clearFormatting(e.pts),this.row_=s),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)){const e=(14&t)>>1;this.column_=4*e,this.nonDisplayed_[this.row_].indent+=e}this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),a=Oe(i),a+=Oe(r),this[this.mode_](e.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}}),"Cea608Stream");Ne.prototype=new ke,Ne.prototype.flushDisplayed=function(e){const t=H((e=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+e+"."})}),"logWarning"),n=[];this.displayed_.forEach(((e,i)=>{if(e&&e.text&&e.text.length){try{e.text=e.text.trim()}catch(tvt){t(i)}e.text.length&&n.push({text:e.text,line:i+1,position:10+Math.min(70,10*e.indent)+2.5*e.offset})}else null==e&&t(i)})),n.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,content:n,stream:this.name_})},Ne.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Re(),this.nonDisplayed_=Re(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Ne.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Ne.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},Ne.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},Ne.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},Ne.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},Ne.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},Ne.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},Ne.prototype.isNormalChar=function(e){return e>=32&&e<=127},Ne.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Re(),this.displayed_=Re()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]={text:"",indent:0,offset:0};void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Ne.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce((function(e,t){return e+"<"+t+">"}),"");this[this.mode_](e,n)},Ne.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce((function(e,t){return e+"</"+t+">"}),"");this.formatting_=[],this[this.mode_](e,t)}},Ne.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_].text;n+=t,this.nonDisplayed_[this.row_].text=n},Ne.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_].text;n+=t,this.displayed_[this.row_].text=n},Ne.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.row_+1;e<15;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},Ne.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_].text;n+=t,this.displayed_[this.row_].text=n};var Fe={CaptionStream:Te,Cea608Stream:Ne,Cea708Stream:De},Be={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},He=q,je="shared",Ue=H((function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e}),"handleRollover$1"),Ve=H((function(e){var t,n;Ve.prototype.init.call(this),this.type_=e||je,this.push=function(e){"metadata"!==e.type?this.type_!==je&&e.type!==this.type_||(void 0===n&&(n=e.dts),e.dts=Ue(e.dts,n),e.pts=Ue(e.pts,n),t=e.dts,this.trigger("data",e)):this.trigger("data",e)},this.flush=function(){n=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}}),"TimestampRolloverStream$1");Ve.prototype=new He;var qe,ze={TimestampRolloverStream:Ve,handleRollover:Ue},We={typedArrayIndexOf:H(((e,t,n)=>{if(!e)return-1;for(var i=n;i<e.length;i++)if(e[i]===t)return i;return-1}),"typedArrayIndexOf$1")}.typedArrayIndexOf,Ge=3,Ke=H((function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r}),"percentEncode$1"),Ye=H((function(e,t,n){return decodeURIComponent(Ke(e,t,n))}),"parseUtf8"),Ze=H((function(e,t,n){return unescape(Ke(e,t,n))}),"parseIso88591$1"),Xe=H((function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]}),"parseSyncSafeInteger$1"),Qe={APIC:H((function(e){var t,n,i=1;
97e.data[0]===Ge&&((t=We(e.data,0,i))<0||(e.mimeType=Ze(e.data,i,t),i=t+1,e.pictureType=e.data[i],i++,(n=We(e.data,0,i))<0||(e.description=Ye(e.data,i,n),i=n+1,"--\x3e"===e.mimeType?e.url=Ze(e.data,i,e.data.length):e.pictureData=e.data.subarray(i,e.data.length))))}),"APIC"),"T*":H((function(e){e.data[0]===Ge&&(e.value=Ye(e.data,1,e.data.length).replace(/\0*$/,""),e.values=e.value.split("\0"))}),"T*"),TXXX:H((function(e){var t;e.data[0]===Ge&&-1!==(t=We(e.data,0,1))&&(e.description=Ye(e.data,1,t),e.value=Ye(e.data,t+1,e.data.length).replace(/\0*$/,""),e.data=e.value)}),"TXXX"),"W*":H((function(e){e.url=Ze(e.data,0,e.data.length).replace(/\0.*$/,"")}),"W*"),WXXX:H((function(e){var t;e.data[0]===Ge&&-1!==(t=We(e.data,0,1))&&(e.description=Ye(e.data,1,t),e.url=Ze(e.data,t+1,e.data.length).replace(/\0.*$/,""))}),"WXXX"),PRIV:H((function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=Ze(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}),"PRIV")},Je={parseId3Frames:H((function(e){var t,n=10,i=0,r=[];if(!(e.length<10||e[0]!=="I".charCodeAt(0)||e[1]!=="D".charCodeAt(0)||e[2]!=="3".charCodeAt(0))){i=Xe(e.subarray(6,10)),i+=10,64&e[5]&&(n+=4,n+=Xe(e.subarray(10,14)),i-=Xe(e.subarray(16,20)));do{if((t=Xe(e.subarray(n+4,n+8)))<1)break;var a={id:String.fromCharCode(e[n],e[n+1],e[n+2],e[n+3]),data:e.subarray(n+10,n+t+10)};a.key=a.id,Qe[a.id]?Qe[a.id](a):"T"===a.id[0]?Qe["T*"](a):"W"===a.id[0]&&Qe["W*"](a),r.push(a),n+=10,n+=t}while(n<i);return r}}),"parseId3Frames$1"),parseSyncSafeInteger:Xe,frameParsers:Qe},et=q,tt=Be,nt=Je;(qe=H((function(e){var t,n={descriptor:e&&e.descriptor},i=0,r=[],a=0;if(qe.prototype.init.call(this),this.dispatchType=tt.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,n,s,o,l;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(a=0,r.length=0),0===r.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(e),a+=e.data.byteLength,1===r.length&&(i=nt.parseSyncSafeInteger(e.data.subarray(6,10)),i+=10),!(a<i)){for(t={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts},l=0;l<i;)t.data.set(r[0].data.subarray(0,i-l),l),l+=r[0].data.byteLength,a-=r[0].data.byteLength,r.shift();n=10,64&t.data[5]&&(n+=4,n+=nt.parseSyncSafeInteger(t.data.subarray(10,14)),i-=nt.parseSyncSafeInteger(t.data.subarray(16,20)));do{if((s=nt.parseSyncSafeInteger(t.data.subarray(n+4,n+8)))<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if((o={id:String.fromCharCode(t.data[n],t.data[n+1],t.data[n+2],t.data[n+3]),data:t.data.subarray(n+10,n+s+10)}).key=o.id,nt.frameParsers[o.id]?nt.frameParsers[o.id](o):"T"===o.id[0]?nt.frameParsers["T*"](o):"W"===o.id[0]&&nt.frameParsers["W*"](o),"com.apple.streaming.transportStreamTimestamp"===o.owner){var u=o.data,c=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;c*=4,c+=3&u[7],o.timeStamp=c,void 0===t.pts&&void 0===t.dts&&(t.pts=o.timeStamp,t.dts=o.timeStamp),this.trigger("timestamp",o)}t.frames.push(o),n+=10,n+=s}while(n<i);this.trigger("data",t)}}}),"MetadataStream")).prototype=new et;var it,rt,at,st=qe,ot=q,lt=Fe,ut=Be,ct=ze.TimestampRolloverStream,dt=188;(it=H((function(){var e=new Uint8Array(dt),t=0;it.prototype.init.call(this),this.push=function(n){var i,r=0,a=dt;for(t?((i=new Uint8Array(n.byteLength+t)).set(e.subarray(0,t)),i.set(n,t),t=0):i=n;a<i.byteLength;)71!==i[r]||71!==i[a]?(r++,a++):(this.trigger("data",i.subarray(r,a)),r+=dt,a+=dt);r<i.byteLength&&(e.set(i.subarray(r),0),t=i.byteLength-r)},this.flush=function(){t===dt&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}}),"TransportPacketStream")).prototype=new ot,(rt=H((function(){var e,t,n,i;rt.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=H((function(e,i){var r=0;i.payloadUnitStartIndicator&&(r+=e[r]+1),"pat"===i.type?t(e.subarray(r),i):n(e.subarray(r),i)}),"parsePsi"),t=H((function(e,t){t.section_number=e[7],t.last_section_number=e[8],i.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=i.pmtPid}),"parsePat"),n=H((function(e,t){var n,r;if(1&e[5]){for(i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&e[1])<<8|e[2])-4,r=12+((15&e[10])<<8|e[11]);r<n;){var a=e[r],s=(31&e[r+1])<<8|e[r+2];a===ut.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=s:a===ut.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=s:a===ut.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][s]=a),r+=5+((15&e[r+3])<<8|e[r+4])}t.programMapTable=i.programMapTable}}),"parsePmt"),this.push=function(t){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(i+=t[i]+1),0===n.pid)n.type="pat",e(t.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(i),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());
97else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,i,n]):this.processPes_(t,i,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=ut.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=ut.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}}),"TransportParseStream")).prototype=new ot,rt.STREAM_TYPES={h264:27,adts:15},(at=H((function(){var e,t=this,n=!1,i={data:[],size:0},r={data:[],size:0},a={data:[],size:0},s=H((function(e,t){var n;const i=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===i&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=0!=(4&e[6]),192&(n=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&n&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))}),"parsePes"),o=H((function(e,n,i){var r,a,o=new Uint8Array(e.size),l={type:n},u=0,c=0;if(e.data.length&&!(e.size<9)){for(l.trackId=e.data[0].pid,u=0;u<e.data.length;u++)a=e.data[u],o.set(a.data,c),c+=a.data.byteLength;s(o,l),r="video"===n||l.packetLength<=e.size,(i||r)&&(e.size=0,e.data.length=0),r&&t.trigger("data",l)}}),"flushStream");at.prototype.init.call(this),this.push=function(s){({pat:H((function(){}),"pat"),pes:H((function(){var e,t;switch(s.streamType){case ut.H264_STREAM_TYPE:e=i,t="video";break;case ut.ADTS_STREAM_TYPE:e=r,t="audio";break;case ut.METADATA_STREAM_TYPE:e=a,t="timed-metadata";break;default:return}s.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(s),e.size+=s.data.byteLength}),"pes"),pmt:H((function(){var i={type:"metadata",tracks:[]};null!==(e=s.programMapTable).video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),n=!0,t.trigger("data",i)}),"pmt")})[s.type]()},this.reset=function(){i.size=0,i.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(i,"video"),o(r,"audio"),o(a,"timed-metadata")},this.flush=function(){if(!n&&e){var i={type:"metadata",tracks:[]};null!==e.video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",i)}n=!1,this.flushStreams_(),this.trigger("done")}}),"ElementaryStream")).prototype=new ot;var pt={PAT_PID:0,MP2T_PACKET_LENGTH:dt,TransportPacketStream:it,TransportParseStream:rt,ElementaryStream:at,TimestampRolloverStream:ct,CaptionStream:lt.CaptionStream,Cea608Stream:lt.Cea608Stream,Cea708Stream:lt.Cea708Stream,MetadataStream:st};for(var ht in ut)ut.hasOwnProperty(ht)&&(pt[ht]=ut[ht]);var ft,mt=pt,gt=q,yt=me.ONE_SECOND_IN_TS,vt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(ft=H((function(e){var t,n=0;ft.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:`adts ski
97ping bytes ${e} to ${t} in frame ${n} outside syncword`})},this.push=function(i){var r,a,s,o,l,u=0;if(e||(n=0),"audio"===i.type){var c;for(t&&t.length?(s=t,(t=new Uint8Array(s.byteLength+i.data.byteLength)).set(s),t.set(i.data,s.byteLength)):t=i.data;u+7<t.length;)if(255===t[u]&&240==(246&t[u+1])){if("number"==typeof c&&(this.skipWarn_(c,u),c=null),a=2*(1&~t[u+1]),r=(3&t[u+3])<<11|t[u+4]<<3|(224&t[u+5])>>5,l=(o=1024*(1+(3&t[u+6])))*yt/vt[(60&t[u+2])>>>2],t.byteLength-u<r)break;this.trigger("data",{pts:i.pts+n*l,dts:i.dts+n*l,sampleCount:o,audioobjecttype:1+(t[u+2]>>>6&3),channelcount:(1&t[u+2])<<2|(192&t[u+3])>>>6,samplerate:vt[(60&t[u+2])>>>2],samplingfrequencyindex:(60&t[u+2])>>>2,samplesize:16,data:t.subarray(u+7+a,u+r)}),n++,u+=r}else"number"!=typeof c&&(c=u),u++;"number"==typeof c&&(this.skipWarn_(c,u),c=null),t=t.subarray(u)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}}),"AdtsStream$1")).prototype=new gt;var bt,_t,wt,St=ft,Ct=q,kt=H((function(e){var t=e.byteLength,n=0,i=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+i},this.loadWord=function(){var r=e.byteLength-t,a=new Uint8Array(4),s=Math.min(4,t);if(0===s)throw new Error("no bytes available");a.set(e.subarray(r,r+s)),n=new DataView(a.buffer).getUint32(0),i=8*s,t-=s},this.skipBits=function(e){var r;i>e?(n<<=e,i-=e):(e-=i,e-=8*(r=Math.floor(e/8)),t-=r,this.loadWord(),n<<=e,i-=e)},this.readBits=function(e){var r=Math.min(i,e),a=n>>>32-r;return(i-=r)>0?n<<=r:t>0&&this.loadWord(),(r=e-r)>0?a<<r|this.readBits(r):a},this.skipLeadingZeros=function(){var e;for(e=0;e<i;++e)if(0!=(n&2147483648>>>e))return n<<=e,i-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()}),"ExpGolomb$1");(_t=H((function(){var e,t,n=0;_t.prototype.init.call(this),this.push=function(i){var r;t?((r=new Uint8Array(t.byteLength+i.data.byteLength)).set(t),r.set(i.data,t.byteLength),t=r):t=i.data;for(var a=t.byteLength;n<a-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<a;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do{e++}while(1!==t[e]&&e<a);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}),"NalByteStream")).prototype=new Ct,wt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(bt=H((function(){var e,t,n,i,r,a,s,o=new _t;bt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,i=e.dts,o.push(e))},o.on("data",(function(s){var o={trackId:t,pts:n,dts:i,data:s,nalUnitTypeCode:31&s[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=r(s.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=r(s.subarray(1)),o.config=a(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",o)})),o.on("done",(function(){e.trigger("done")})),o.on("partialdone",(function(){e.trigger("partialdone")})),o.on("reset",(function(){e.trigger("reset")})),o.on("endedtimeline",(function(){e.trigger("endedtimeline")})),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},s=H((function(e,t){var n,i=8,r=8;for(n=0;n<e;n++)0!==r&&(r=(i+t.readExpGolomb()+256)%256),i=0===r?i:r}),"skipScalingList"),r=H((function(e){for(var t,n,i=e.byteLength,r=[],a=1;a<i-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),n[a]=e[s];return n}),"discardEmulationPreventionBytes"),a=H((function(e){var t,n,i,r,a,o,l,u,c,d,p,h,f=0,m=0,g=0,y=0,v=[1,1];if(n=(t=new kt(e)).readUnsignedByte(),r=t.readUnsignedByte(),i=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),wt[n]&&(3===(a=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(p=3!==a?8:12,h=0;h<p;h++)t.readBoolean()&&s(h<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(o=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===o)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),h=0;h<l;h++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),c=t.readUnsignedExpGolomb(),0===(d=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(f=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:v=[1,1];break;case 2:v=[12,11];break;case 3:v=[10,11];break;case 4:v=[16,11];break;case 5:v=[40,33];break;case 6:v=[24,11];break;case 7:v=[20,11];break;case 8:v=[32,11];break;case 9:v=[80,33];break;case 10:v=[18,11];break;case 11:v=[15,11];break;case 12:v=[64,33];break;case 13:v=[160,99];break;case 14:v=[4,3];break;case 15:v=[3,2];break;case 16:v=[2,1];break;case 255:v=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}v&&(v[0],v[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:16*(u+1)-2*f-2*m,height:(2-d)*(c+1)*16-2*g-2*y,sarRatio:v}}),"readSequenceParameterSet")}),"H264Stream$1")).prototype=new Ct;var xt,Tt={H264Stream:bt},Et=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],At=H((function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return n=n>=0?n:0,(16&e[t+5])>>4?n+20:n+10}),"parseId3TagSize"),Lt=H((function(e,t){return e.length-t<10||e[t]!=="I".charCodeAt(0)||e[t+1
97]!=="D".charCodeAt(0)||e[t+2]!=="3".charCodeAt(0)?t:(t+=At(e,t),Lt(e,t))}),"getId3Offset"),It=H((function(e){var t=Lt(e,0);return e.length>=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])}),"isLikelyAacData$1"),$t=H((function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]}),"parseSyncSafeInteger"),Dt=H((function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r}),"percentEncode"),Pt=H((function(e,t,n){return unescape(Dt(e,t,n))}),"parseIso88591"),Ot={isLikelyAacData:It,parseId3TagSize:At,parseAdtsSize:H((function(e,t){var n=(224&e[t+5])>>5,i=e[t+4]<<3;return 6144&e[t+3]|i|n}),"parseAdtsSize"),parseType:H((function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240==(240&e[t+1])?"audio":null}),"parseType$4"),parseSampleRate:H((function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return Et[(60&e[t+2])>>>2];t++}return null}),"parseSampleRate"),parseAacTimestamp:H((function(e){var t,n,i;t=10,64&e[5]&&(t+=4,t+=$t(e.subarray(10,14)));do{if((n=$t(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){i=e.subarray(t+10,t+n+10);for(var r=0;r<i.byteLength;r++)if(0===i[r]){if("com.apple.streaming.transportStreamTimestamp"===Pt(i,0,r)){var a=i.subarray(r+1),s=(1&a[3])<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2;return s*=4,s+=3&a[7]}break}}t+=10,t+=n}while(t<e.byteLength);return null}),"parseAacTimestamp")},Mt=q,Rt=Ot;(xt=H((function(){var e=new Uint8Array,t=0;xt.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var i,r,a,s,o=0,l=0;for(e.length?(s=e.length,(e=new Uint8Array(n.byteLength+s)).set(e.subarray(0,s)),e.set(n,s)):e=n;e.length-l>=3;)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(255!=(255&e[l])||240!=(240&e[l+1]))l++;else{if(e.length-l<7)break;if(l+(o=Rt.parseAdtsSize(e,l))>e.length)break;a={type:"audio",data:e.subarray(l,l+o),pts:t,dts:t},this.trigger("data",a),l+=o}else{if(e.length-l<10)break;if(l+(o=Rt.parseId3TagSize(e,l))>e.length)break;r={type:"timed-metadata",data:e.subarray(l,l+o)},this.trigger("data",r),l+=o}i=e.length-l,e=i>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}),"AacStream$1")).prototype=new Mt;var Nt,Ft,Bt,Ht,jt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Ut=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Vt=q,qt=ne,zt=le,Wt=be,Gt=Se,Kt=mt,Yt=me,Zt=St,Xt=Tt.H264Stream,Qt=xt,Jt=Ot.isLikelyAacData,en=me.ONE_SECOND_IN_TS,tn=jt,nn=Ut,rn=H((function(e,t){t.stream=e,this.trigger("log",t)}),"retriggerForStream"),an=H((function(e,t){for(var n=Object.keys(t),i=0;i<n.length;i++){var r=n[i];"headOfPipeline"!==r&&t[r].on&&t[r].on("log",rn.bind(e,r))}}),"addPipelineLogRetriggers"),sn=H((function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}),"arrayEquals"),on=H((function(e,t,n,i,r,a){return{start:{dts:e,pts:e+(n-t)},end:{dts:e+(i-t),pts:e+(r-n)},prependedContentDuration:a,baseMediaDecodeTime:e}}),"generateSegmentTimingInfo");(Ft=H((function(e,t){var n,i=[],r=0,a=0,s=1/0;n=(t=t||{}).firstSequenceNumber||0,Ft.prototype.init.call(this),this.push=function(t){Gt.collectDtsInfo(e,t),e&&tn.forEach((function(n){e[n]=t[n]})),i.push(t)},this.setEarliestDts=function(e){r=e},this.setVideoBaseMediaDecodeTime=function(e){s=e},this.setAudioAppendStart=function(e){a=e},this.flush=function(){var o,l,u,c,d,p,h;0!==i.length?(o=Wt.trimAdtsFramesByEarliestDts(i,e,r),e.baseMediaDecodeTime=Gt.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),h=Wt.prefixWithSilence(e,o,a,s),e.samples=Wt.generateSampleTable(o),u=qt.mdat(Wt.concatenateFrameData(o)),i=[],l=qt.moof(n,[e]),c=new Uint8Array(l.byteLength+u.byteLength),n++,c.set(l),c.set(u,l.byteLength),Gt.clearDtsInfo(e),d=Math.ceil(1024*en/e.samplerate),o.length&&(p=o.length*d,this.trigger("segmentTimingInfo",on(Yt.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),o[0].dts,o[0].pts,o[0].dts+p,o[0].pts+p,h||0)),this.trigger("timingInfo",{start:o[0].pts,end:o[0].pts+p})),this.trigger("data",{track:e,boxes:c}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){Gt.clearDtsInfo(e),i=[],this.trigger("reset")}}),"AudioSegmentStream")).prototype=new Vt,(Nt=H((function(e,t){var n,i,r,a=[],s=[];n=(t=t||{}).firstSequenceNumber||0,Nt.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){Gt.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.config,e.sps=[t.data],nn.forEach((function(t){e[t]=i[t]}),this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),a.push(t)},this.flush=function(){for(var i,r,o,l,u,c,d,p,h=0;a.length&&"access_unit_delimiter_rbsp"!==a[0].nalUnitType;)a.shift();
vendor: 11,614 bytes, line 97
97if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(i=zt.groupNalsIntoFrames(a),(o=zt.groupFramesIntoGops(i))[0][0].keyFrame||((r=this.getGopForFusion_(a[0],e))?(h=r.duration,o.unshift(r),o.byteLength+=r.byteLength,o.nalCount+=r.nalCount,o.pts=r.pts,o.dts=r.dts,o.duration+=r.duration):o=zt.extendFirstKeyFrame(o)),s.length){var f;if(!(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(o):this.alignGopsAtStart_(o)))return this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");Gt.clearDtsInfo(e),o=f}Gt.collectDtsInfo(e,o),e.samples=zt.generateSampleTable(o),u=qt.mdat(zt.concatenateNalData(o)),e.baseMediaDecodeTime=Gt.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",o.map((function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}))),d=o[0],p=o[o.length-1],this.trigger("segmentTimingInfo",on(e.baseMediaDecodeTime,d.dts,d.pts,p.dts+p.duration,p.pts+p.duration,h)),this.trigger("timingInfo",{start:o[0].pts,end:o[o.length-1].pts+o[o.length-1].duration}),this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=qt.moof(n,[e]),c=new Uint8Array(l.byteLength+u.byteLength),n++,c.set(l),c.set(u,l.byteLength),this.trigger("data",{track:e,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),a=[],this.gopCache_.length=0,s.length=0,this.trigger("reset")},this.resetStream_=function(){Gt.clearDtsInfo(e),i=void 0,r=void 0},this.getGopForFusion_=function(t){var n,i,r,a,s,o=1/0;for(s=0;s<this.gopCache_.length;s++)r=(a=this.gopCache_[s]).gop,e.pps&&sn(e.pps[0],a.pps[0])&&e.sps&&sn(e.sps[0],a.sps[0])&&(r.dts<e.timelineStartInfo.dts||(n=t.dts-r.dts-r.duration)>=-1e4&&n<=45e3&&(!i||o>n)&&(i=a,o=n));return i?i.gop:null},this.alignGopsAtStart_=function(e){var t,n,i,r,a,o,l,u;for(a=e.byteLength,o=e.nalCount,l=e.duration,t=n=0;t<s.length&&n<e.length&&(i=s[t],r=e[n],i.pts!==r.pts);)r.pts>i.pts?t++:(n++,a-=r.byteLength,o-=r.nalCount,l-=r.duration);return 0===n?e:n===e.length?null:((u=e.slice(n)).byteLength=a,u.duration=l,u.nalCount=o,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,n,i,r,a,o,l;for(t=s.length-1,n=e.length-1,a=null,o=!1;t>=0&&n>=0;){if(i=s[t],r=e[n],i.pts===r.pts){o=!0;break}i.pts>r.pts?t--:(t===s.length-1&&(a=n),n--)}if(!o&&null===a)return null;if(0===(l=o?n:a))return e;var u=e.slice(l),c=u.reduce((function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e}),{byteLength:0,duration:0,nalCount:0});return u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){s=e}}),"VideoSegmentStream")).prototype=new Vt,(Ht=H((function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Ht.prototype.init.call(this),this.push=function(e){return e.content||e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}}),"CoalesceStream")).prototype=new Vt,Ht.prototype.flush=function(e){var t,n,i,r,a=0,s={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,nn.forEach((function(e){s.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,tn.forEach((function(e){s.info[e]=this.audioTrack[e]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,i=qt.initSegment(this.pendingTracks),s.initSegment=new Uint8Array(i.byteLength),s.initSegment.set(i),s.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)s.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(t=this.pendingCaptions[r]).startTime=Yt.metadataTsToSeconds(t.startPts,o,this.keepOriginalTimestamps),t.endTime=Yt.metadataTsToSeconds(t.endPts,o,this.keepOriginalTimestamps),s.captionStreams[t.stream]=!0,s.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)(n=this.pendingMetadata[r]).cueTime=Yt.metadataTsToSeconds(n.pts,o,this.keepOriginalTimestamps),s.metadata.push(n);for(s.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",s),r=0;r<s.captions.length;r++)t=s.captions[r],this.trigger("caption",t);for(r=0;r<s.metadata.length;r++)n=s.metadata[r],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Ht.prototype.setRemux=function(e){this.remuxTracks=e},(Bt=H((function(e){var t,n,i=this,r=!0;Bt.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new Kt.MetadataStream,r.aacStream=new Qt,r.audioTimestampRolloverStream=new Kt.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new Kt.TimestampRolloverStream("timed-metadata"),r.adtsStream=new Zt,r.coalesceStream=new Ht(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",(function(e){r.aacStream.setTimestamp(e.timeStamp)})),r.aacStream.on("data",(function(a){"timed-metadata"!==a.type&&"audio"!==a.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Ft(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),an(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new Kt.MetadataStream,r.packetStream=new Kt.TransportPacketStream,r.parseStream=new Kt.TransportParseStream,r.elementaryStream=new Kt.ElementaryStream,r.timestampRolloverStream=new Kt.TimestampRolloverStream,r.adtsStream=new Zt,r.h264Stream=new Xt,r.captionStream=new Kt.CaptionStream(e),r.coalesceStream=new Ht(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(a){var s;if("metadata"===a.type){for(s=a.tracks.length;s--;)t||"video"!==a.tracks[s].type?n||"audio"!==a.tracks[s].type||((n=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new Nt(t,e),r.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",(function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-i.baseMediaDecodeTime))})),r.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",(function(e){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),r.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Ft(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",(function(e){e.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",e)})),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),an(this,r)},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,Gt.clearDtsInfo(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,Gt.clearDtsInfo(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(e){if(r){var t=Jt(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}),"Transmuxer")).prototype=new Vt;var ln,un,cn,dn,pn,hn,fn,mn={Transmuxer:Bt},gn={toUnsigned:H((function(e){return e>>>0}
97),"toUnsigned$3"),toHexString:H((function(e){return("00"+e.toString(16)).slice(-2)}),"toHexString$1")},yn=H((function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])}),"parseType$3"),vn=gn.toUnsigned,bn=yn,_n=H((function(e,t){var n,i,r,a,s,o=[];if(!t.length)return null;for(n=0;n<e.byteLength;)i=vn(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]),r=bn(e.subarray(n+4,n+8)),a=i>1?n+i:e.byteLength,r===t[0]&&(1===t.length?o.push(e.subarray(n+8,a)):(s=_n(e.subarray(n+8,a),t.slice(1))).length&&(o=o.concat(s))),n=a;return o}),"findBox$2"),wn=_n,Sn=gn.toUnsigned,Cn=W.getUint64,kn=H((function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=Cn(e.subarray(4)):t.baseMediaDecodeTime=Sn(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t}),"tfdt"),xn=H((function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}}),"parseSampleFlags$1"),Tn=H((function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},i=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&n.flags[2],a=4&n.flags[2],s=1&n.flags[1],o=2&n.flags[1],l=4&n.flags[1],u=8&n.flags[1],c=i.getUint32(4),d=8;for(r&&(n.dataOffset=i.getInt32(d),d+=4),a&&c&&(t={flags:xn(e.subarray(d,d+4))},d+=4,s&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),u&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t),c--);c--;)t={},s&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),l&&(t.flags=xn(e.subarray(d,d+4)),d+=4),u&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t);return n}),"trun"),En=H((function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},r=1&i.flags[2],a=2&i.flags[2],s=8&i.flags[2],o=16&i.flags[2],l=32&i.flags[2],u=65536&i.flags[0],c=131072&i.flags[0];return t=8,r&&(t+=4,i.baseDataOffset=n.getUint32(12),t+=4),a&&(i.sampleDescriptionIndex=n.getUint32(t),t+=4),s&&(i.defaultSampleDuration=n.getUint32(t),t+=4),o&&(i.defaultSampleSize=n.getUint32(t),t+=4),l&&(i.defaultSampleFlags=n.getUint32(t)),u&&(i.durationIsEmpty=!0),!r&&c&&(i.baseDataOffsetIsMoof=!0),i}),"tfhd"),An="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},Ln=Ce.discardEmulationPreventionBytes,In=Fe.CaptionStream,$n=wn,Dn=kn,Pn=Tn,On=En,Mn=An,Rn=H((function(e,t){for(var n=e,i=0;i<t.length;i++){var r=t[i];if(n<r.size)return r;n-=r.size}return null}),"mapToSample"),Nn=H((function(e,t,n){var i,r,a,s,o=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(r=0;r+4<e.length;r+=a)if(a=o.getUint32(r),r+=4,!(a<=0))switch(31&e[r]){case 6:var u=e.subarray(r+1,r+1+a),c=Rn(r,t);if(i={nalUnitType:"sei_rbsp",size:a,data:u,escapedRBSP:Ln(u),trackId:n},c)i.pts=c.pts,i.dts=c.dts,s=c;else{if(!s){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+n+". See mux.js#223."});break}i.pts=s.pts,i.dts=s.dts}l.seiNals.push(i)}return l}),"findSeiNals"),Fn=H((function(e,t,n){var i=t,r=n.defaultSampleDuration||0,a=n.defaultSampleSize||0,s=n.trackId,o=[];return e.forEach((function(e){var t=Pn(e).samples;t.forEach((function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=a),e.trackId=s,e.dts=i,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof i?(e.pts=i+Mn.BigInt(e.compositionTimeOffset),i+=Mn.BigInt(e.duration)):(e.pts=i+e.compositionTimeOffset,i+=e.duration)})),o=o.concat(t)})),o}),"parseSamples"),Bn=H((function(e,t){var n=$n(e,["moof","traf"]),i=$n(e,["mdat"]),r={},a=[];return i.forEach((function(e,t){var i=n[t];a.push({mdat:e,traf:i})})),a.forEach((function(e){var n,i,a=e.mdat,s=e.traf,o=$n(s,["tfhd"]),l=On(o[0]),u=l.trackId,c=$n(s,["tfdt"]),d=c.length>0?Dn(c[0]).baseMediaDecodeTime:0,p=$n(s,["trun"]);t===u&&p.length>0&&(n=Fn(p,d,l),i=Nn(a,n,u),r[u]||(r[u]={seiNals:[],logs:[]}),r[u].seiNals=r[u].seiNals.concat(i.seiNals),r[u].logs=r[u].logs.concat(i.logs))})),r}),"parseCaptionNals"),Hn=H((function(e,t,n){if(null===t)return null;var i=Bn(e,t)[t]||{};return{seiNals:i.seiNals,logs:i.logs,timescale:n}}),"parseEmbeddedCaptions"),jn=H((function(){var e,t,n,i,r,a,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new In,s=!0,a=!!t&&t.isPartial,e.on("data",(function(e){e.startTime=e.startPts/i,e.endTime=e.endPts/i,r.captions.push(e),r.captionStream
97s[e.stream]=!0})),e.on("log",(function(e){r.logs.push(e)}))},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length)&&(n!==e[0]||i!==t[n])},this.parse=function(e,a,s){var o;if(!this.isInitialized())return null;if(!a||!s)return null;if(this.isNewInit(a,s))n=a[0],i=s[n];else if(null===n||!i)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,a,s)}return(o=Hn(e,n,i))&&o.logs&&(r.logs=r.logs.concat(o.logs)),null!==o&&o.seiNals?(this.pushNals(o.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach((function(t){e.push(t)}))},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,i=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()}),"CaptionParser"),Un={uint8ToCString:H((function(e){for(var t=0,n=String.fromCharCode(e[t]),i="";"\0"!==n;)i+=n,t++,n=String.fromCharCode(e[t]);return i+=n}),"uint8ToCString$1")}.uint8ToCString,Vn=W.getUint64,qn=H((function(e){var t,n,i,r,a,s,o,l=4,u=e[0];if(0===u)l+=(t=Un(e.subarray(l))).length,l+=(n=Un(e.subarray(l))).length,i=(c=new DataView(e.buffer)).getUint32(l),l+=4,a=c.getUint32(l),l+=4,s=c.getUint32(l),l+=4,o=c.getUint32(l),l+=4;else if(1===u){var c;i=(c=new DataView(e.buffer)).getUint32(l),l+=4,r=Vn(e.subarray(l)),l+=8,s=c.getUint32(l),l+=4,o=c.getUint32(l),l+=4,l+=(t=Un(e.subarray(l))).length,l+=(n=Un(e.subarray(l))).length}var d={scheme_id_uri:t,value:n,timescale:i||1,presentation_time:r,presentation_time_delta:a,event_duration:s,id:o,message_data:new Uint8Array(e.subarray(l,e.byteLength))};return Wn(u,d)?d:void 0}),"parseEmsgBox"),zn=H((function(e,t,n,i){return e||0===e?e/t:i+n/t}),"scaleTime"),Wn=H((function(e,t){var n="\0"!==t.scheme_id_uri,i=0===e&&Gn(t.presentation_time_delta)&&n,r=1===e&&Gn(t.presentation_time)&&n;return!(e>1)&&i||r}),"isValidEmsgBox"),Gn=H((function(e){return void 0!==e||null!==e}),"isDefined"),Kn=gn.toUnsigned,Yn=gn.toHexString,Zn=wn,Xn=yn,Qn={parseEmsgBox:qn,scaleTime:zn},Jn=En,ei=Tn,ti=kn,ni=W.getUint64,ii=An,ri=Je.parseId3Frames;ln=H((function(e){return Zn(e,["moov","trak"]).reduce((function(e,t){var n,i,r,a,s;return(n=Zn(t,["tkhd"])[0])?(i=n[0],a=Kn(n[r=0===i?12:20]<<24|n[r+1]<<16|n[r+2]<<8|n[r+3]),(s=Zn(t,["mdia","mdhd"])[0])?(r=0===(i=s[0])?12:20,e[a]=Kn(s[r]<<24|s[r+1]<<16|s[r+2]<<8|s[r+3]),e):null):null}),{})}),"timescale"),un=H((function(e,t){var n=Zn(t,["moof","traf"]).reduce((function(t,n){var i,r=Zn(n,["tfhd"])[0],a=Kn(r[4]<<24|r[5]<<16|r[6]<<8|r[7]),s=e[a]||9e4,o=Zn(n,["tfdt"])[0],l=new DataView(o.buffer,o.byteOffset,o.byteLength);let u;return"bigint"==typeof(i=1===o[0]?ni(o.subarray(4,12)):l.getUint32(4))?u=i/ii.BigInt(s):"number"!=typeof i||isNaN(i)||(u=i/s),u<Number.MAX_SAFE_INTEGER&&(u=Number(u)),u<t&&(t=u),t}),1/0);return"bigint"==typeof n||isFinite(n)?n:0}),"startTime"),cn=H((function(e,t){var n,i=Zn(t,["moof","traf"]),r=0,a=0;if(i&&i.length){var s=Zn(i[0],["tfhd"])[0],o=Zn(i[0],["trun"])[0],l=Zn(i[0],["tfdt"])[0];if(s)n=Jn(s).trackId;if(l)r=ti(l).baseMediaDecodeTime;if(o){var u=ei(o);u.samples&&u.samples.length&&(a=u.samples[0].compositionTimeOffset||0)}}var c=e[n]||9e4;"bigint"==typeof r&&(a=ii.BigInt(a),c=ii.BigInt(c));var d=(r+a)/c;return"bigint"==typeof d&&d<Number.MAX_SAFE_INTEGER&&(d=Number(d)),d}),"compositionStartTime"),dn=H((function(e){var t=Zn(e,["moov","trak"]),n=[];return t.forEach((function(e){var t=Zn(e,["mdia","hdlr"]),i=Zn(e,["tkhd"]);t.forEach((function(e,t){var r,a,s=Xn(e.subarray(8,12)),o=i[t];"vide"===s&&(a=0===(r=new DataView(o.buffer,o.byteOffset,o.byteLength)).getUint8(0)?r.getUint32(12):r.getUint32(20),n.push(a))}))})),n}),"getVideoTrackIds"),hn=H((function(e){var t=0===e[0]?12:20;return Kn(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])}),"getTimescaleFromMediaHeader"),pn=H((function(e){var t=Zn(e,["moov","trak"]),n=[];return t.forEach((function(e){var t,i,r={},a=Zn(e,["tkhd"])[0];a&&(i=(t=new DataView(a.buffer,a.byteOffset,a.byteLength)).getUint8(0),r.id=0===i?t.getUint32(12):t.getUint32(20));var s=Zn(e,["mdia","hdlr"])[0];if(s){var o=Xn(s.subarray(8,12));r.type="vide"===o?"video":"soun"===o?"audio":o}var l=Zn(e,["mdia","minf","stbl","stsd"])[0];if(l){var u=l.subarray(8);r.codec=Xn(u.subarray(4,8));var c,d=Zn(u,[r.codec])[0];d&&(/^[asm]vc[1-9]$/i.test(r.codec)?(c=d.subarray(78),"avcC"===Xn(c.subarray(4,8))&&c.length>11?(r.codec+=".",r.codec+=Yn(c[9]),r.codec+=Yn(c[10]),r.codec+=Yn(c[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(c=d.subarray(28),"esds"===Xn(c.subarray(4,8))&&c.length>20&&0!==c[19]?(r.codec+="."+Yn(c[19]),r.codec+="."+Yn(c[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var p=Zn(e,["mdia","mdhd"])[0];
97p&&(r.timescale=hn(p)),n.push(r)})),n}),"getTracks"),fn=H((function(e,t=0){return Zn(e,["emsg"]).map((e=>{var n=Qn.parseEmsgBox(new Uint8Array(e)),i=ri(n.message_data);return{cueTime:Qn.scaleTime(n.presentation_time,n.timescale,n.presentation_time_delta,t),duration:Qn.scaleTime(n.event_duration,n.timescale),frames:i}}))}),"getEmsgID3");var ai={findBox:Zn,parseType:Xn,timescale:ln,startTime:un,compositionStartTime:cn,videoTrackIds:dn,tracks:pn,getTimescaleFromMediaHeader:hn,getEmsgID3:fn},si=Be,oi=H((function(e){var t=31&e[1];return t<<=8,t|=e[2]}),"parsePid"),li=H((function(e){return!!(64&e[1])}),"parsePayloadUnitStartIndicator"),ui=H((function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t}),"parseAdaptionField"),ci=H((function(e,t){var n=oi(e);return 0===n?"pat":n===t?"pmt":t?"pes":null}),"parseType"),di=H((function(e){var t=li(e),n=4+ui(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]}),"parsePat"),pi=H((function(e){var t={},n=li(e),i=4+ui(e);if(n&&(i+=e[i]+1),1&e[i+5]){var r;r=3+((15&e[i+1])<<8|e[i+2])-4;for(var a=12+((15&e[i+10])<<8|e[i+11]);a<r;){var s=i+a;t[(31&e[s+1])<<8|e[s+2]]=e[s],a+=5+((15&e[s+3])<<8|e[s+4])}return t}}),"parsePmt"),hi=H((function(e,t){switch(t[oi(e)]){case si.H264_STREAM_TYPE:return"video";case si.ADTS_STREAM_TYPE:return"audio";case si.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}}),"parsePesType"),fi=H((function(e){if(!li(e))return null;var t=4+ui(e);if(t>=e.byteLength)return null;var n,i=null;return 192&(n=e[t+7])&&((i={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,i.pts*=4,i.pts+=(6&e[t+13])>>>1,i.dts=i.pts,64&n&&(i.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,i.dts*=4,i.dts+=(6&e[t+18])>>>1)),i}),"parsePesTime"),mi=H((function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}}),"parseNalUnitType"),gi={parseType:ci,parsePat:di,parsePmt:pi,parsePayloadUnitStartIndicator:li,parsePesType:hi,parsePesTime:fi,videoPacketContainsKeyFrame:H((function(e){for(var t=4+ui(e),n=e.subarray(t),i=0,r=0,a=!1;r<n.byteLength-3;r++)if(1===n[r+2]){i=r+5;break}for(;i<n.byteLength;)switch(n[i]){case 0:if(0!==n[i-1]){i+=2;break}if(0!==n[i-2]){i++;break}r+3!==i-2&&"slice_layer_without_partitioning_rbsp_idr"===mi(31&n[r+3])&&(a=!0);do{i++}while(1!==n[i]&&i<n.length);r=i-2,i+=3;break;case 1:if(0!==n[i-1]||0!==n[i-2]){i+=3;break}"slice_layer_without_partitioning_rbsp_idr"===mi(31&n[r+3])&&(a=!0),r=i-2,i+=3;break;default:i+=3}return n=n.subarray(r),i-=r,r=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===mi(31&n[r+3])&&(a=!0),a}),"videoPacketContainsKeyFrame")},yi=Be,vi=ze.handleRollover,bi={};bi.ts=gi,bi.aac=Ot;var _i=me.ONE_SECOND_IN_TS,wi=188,Si=71,Ci=H((function(e,t){for(var n,i=0,r=wi;r<e.byteLength;)if(e[i]!==Si||e[r]!==Si)i++,r++;else{switch(n=e.subarray(i,r),bi.ts.parseType(n,t.pid)){case"pat":t.pid=bi.ts.parsePat(n);break;case"pmt":var a=bi.ts.parsePmt(n);t.table=t.table||{},Object.keys(a).forEach((function(e){t.table[e]=a[e]}))}i+=wi,r+=wi}}),"parsePsi_"),ki=H((function(e,t,n){for(var i,r,a,s,o=0,l=wi,u=!1;l<=e.byteLength;)if(e[o]!==Si||e[l]!==Si&&l!==e.byteLength)o++,l++;else{if(i=e.subarray(o,l),"pes"===bi.ts.parseType(i,t.pid))r=bi.ts.parsePesType(i,t.table),a=bi.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&a&&(s=bi.ts.parsePesTime(i))&&(s.type="audio",n.audio.push(s),u=!0);if(u)break;o+=wi,l+=wi}for(o=(l=e.byteLength)-wi,u=!1;o>=0;)if(e[o]!==Si||e[l]!==Si&&l!==e.byteLength)o--,l--;else{if(i=e.subarray(o,l),"pes"===bi.ts.parseType(i,t.pid))r=bi.ts.parsePesType(i,t.table),a=bi.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&a&&(s=bi.ts.parsePesTime(i))&&(s.type="audio",n.audio.push(s),u=!0);if(u)break;o-=wi,l-=wi}}),"parseAudioPes_"),xi=H((function(e,t,n){for(var i,r,a,s,o,l,u,c=0,d=wi,p=!1,h={data:[],size:0};d<e.byteLength;)if(e[c]!==Si||e[d]!==Si)c++,d++;else{if(i=e.subarray(c,d),"pes"===bi.ts.parseType(i,t.pid))if(r=bi.ts.parsePesType(i,t.table),a=bi.ts.parsePayloadUnitStartIndicator(i),"video"===r&&(a&&!p&&(s=bi.ts.parsePesTime(i))&&(s.type="video",n.video.push(s),p=!0),!n.firstKeyFrame)){if(a&&0!==h.size){for(o=new Uint8Array(h.size),l=0;h.data.length;)u=h.data.shift(),o.set(u,l),l+=u.byteLength;if(bi.ts.videoPacketContainsKeyFrame(o)){var f=bi.ts.parsePesTime(o);f?(n.firstKeyFrame=f,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}h.size=0}h.data.push(i),h.size+=i.byteLength}if(p&&n.firstKeyFrame)break;c+=wi,d+=wi}for(c=(d=e.byteLength)-wi,p=!1;c>=0;)if(e[c]!==Si||e[d]!==Si)c--,d--;else{if(i=e.subarray(c,d),"pes"===bi.ts.parseType(i,t.pid))r=bi.ts.parsePesType(i,t.table),a=bi.ts.parsePayloadUnitStartIndicator(i),"video"===r&&a&&(s=bi.ts.parsePesTime(i))&&(s.type="video",n.video.push(s),p=!0);if(p)break;c-=wi,d-=wi}}),"parseVideoPes_"),Ti=H((function(e,t){if(e.audio&&e.audio.length){var n=t;
97(void 0===n||isNaN(n))&&(n=e.audio[0].dts),e.audio.forEach((function(e){e.dts=vi(e.dts,n),e.pts=vi(e.pts,n),e.dtsTime=e.dts/_i,e.ptsTime=e.pts/_i}))}if(e.video&&e.video.length){var i=t;if((void 0===i||isNaN(i))&&(i=e.video[0].dts),e.video.forEach((function(e){e.dts=vi(e.dts,i),e.pts=vi(e.pts,i),e.dtsTime=e.dts/_i,e.ptsTime=e.pts/_i})),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=vi(r.dts,i),r.pts=vi(r.pts,i),r.dtsTime=r.dts/_i,r.ptsTime=r.pts/_i}}}),"adjustTimestamp_"),Ei=H((function(e){for(var t,n=!1,i=0,r=null,a=null,s=0,o=0;e.length-o>=3;){switch(bi.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10){n=!0;break}if((s=bi.aac.parseId3TagSize(e,o))>e.length){n=!0;break}null===a&&(t=e.subarray(o,o+s),a=bi.aac.parseAacTimestamp(t)),o+=s;break;case"audio":if(e.length-o<7){n=!0;break}if((s=bi.aac.parseAdtsSize(e,o))>e.length){n=!0;break}null===r&&(t=e.subarray(o,o+s),r=bi.aac.parseSampleRate(t)),i++,o+=s;break;default:o++}if(n)return null}if(null===r||null===a)return null;var l=_i/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*i*l,pts:a+1024*i*l}]}}),"inspectAac_"),Ai=H((function(e){var t={pid:null,table:null},n={};for(var i in Ci(e,t),t.table){if(t.table.hasOwnProperty(i))switch(t.table[i]){case yi.H264_STREAM_TYPE:n.video=[],xi(e,t,n),0===n.video.length&&delete n.video;break;case yi.ADTS_STREAM_TYPE:n.audio=[],ki(e,t,n),0===n.audio.length&&delete n.audio}}return n}),"inspectTs_"),Li={inspect:H((function(e,t){var n;return(n=bi.aac.isLikelyAacData(e)?Ei(e):Ai(e))&&(n.audio||n.video)?(Ti(n,t),n):null}),"inspect"),parseAudioPes_:ki};const Ii=H((function(e,t){t.on("data",(function(t){const n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};const i=t.data;t.data=i.buffer,e.postMessage({action:"data",segment:t,byteOffset:i.byteOffset,byteLength:i.byteLength},[t.data])})),t.on("done",(function(t){e.postMessage({action:"done"})})),t.on("gopInfo",(function(t){e.postMessage({action:"gopInfo",gopInfo:t})})),t.on("videoSegmentTimingInfo",(function(t){const n={start:{decode:me.videoTsToSeconds(t.start.dts),presentation:me.videoTsToSeconds(t.start.pts)},end:{decode:me.videoTsToSeconds(t.end.dts),presentation:me.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:me.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=me.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})})),t.on("audioSegmentTimingInfo",(function(t){const n={start:{decode:me.videoTsToSeconds(t.start.dts),presentation:me.videoTsToSeconds(t.start.pts)},end:{decode:me.videoTsToSeconds(t.end.dts),presentation:me.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:me.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=me.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})})),t.on("id3Frame",(function(t){e.postMessage({action:"id3Frame",id3Frame:t})})),t.on("caption",(function(t){e.postMessage({action:"caption",caption:t})})),t.on("trackinfo",(function(t){e.postMessage({action:"trackinfo",trackInfo:t})})),t.on("audioTimingInfo",(function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:me.videoTsToSeconds(t.start),end:me.videoTsToSeconds(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:me.videoTsToSeconds(t.start),end:me.videoTsToSeconds(t.end)}})})),t.on("log",(function(t){e.postMessage({action:"log",log:t})}))}),"wireTransmuxerEvents"),$i=class{constructor(e,t){this.options=t||{},this.self=e,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new mn.Transmuxer(this.options),Ii(this.self,this.transmuxer)}pushMp4Captions(e){this.captionParser||(this.captionParser=new jn,this.captionParser.init());const t=new Uint8Array(e.data,e.byteOffset,e.byteLength),n=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],logs:n&&n.logs||[],data:t.buffer},[t.buffer])}probeMp4StartTime({timescales:e,data:t}){const n=ai.startTime(e,t);this.self.postMessage({action:"probeMp4StartTime",startTime:n,data:t},[t.buffer])}probeMp4Tracks({data:e}){const t=ai.tracks(e);this.self.postMessage({action:"probeMp4Tracks",tracks:t,data:e},[e.buffer])}probeEmsgID3({data:e,offset:t}){const n=ai.getEmsgID3(e,t);this.self.postMessage({action:"probeEmsgID3",id3Frames:n,emsgData:e},[e.buffer])}probeTs({data:e,baseStartTime:t}){const n="number"!=typeof t||isNaN(t)?void 0:t*me.ONE_SECOND_IN_TS,i=Li.inspect(e,n);let r=null;i&&(r={hasVideo:i.video&&2===i.video.length||!1,hasAudio:i.audio&&2===i.audio.length||!1},r.hasVideo&&(r.videoStart=i.video[0].ptsTime),r.hasAudio&&(r.audioStart=i.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:r,data:e},[e.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(e){const t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}reset(){this.transmuxer.reset()}setTimestampOffset(e){const t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(me.secondsToVideoTs(t)))}setAudioAppendStart(e){this.transmuxer.setAudioAppendStart(Math.ceil(me.secondsToVideoTs(e.appendStart)))}setRemux(e){this.transmuxer.setRemux(e.remux)}flush(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}};H($i,"MessageHandlers");let Di=$i;
97self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new Di(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new Di(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}})));var aD=tD(rD);const sD=H(((e,t,n)=>{const{type:i,initSegment:r,captions:a,captionStreams:s,metadata:o,videoFrameDtsTime:l,videoFramePtsTime:u}=e.data.segment;t.buffer.push({captions:a,captionStreams:s,metadata:o});const c=e.data.segment.boxes||{data:e.data.segment.data},d={type:i,data:new Uint8Array(c.data,c.data.byteOffset,c.data.byteLength),initSegment:new Uint8Array(r.data,r.byteOffset,r.byteLength)};void 0!==l&&(d.videoFrameDtsTime=l),void 0!==u&&(d.videoFramePtsTime=u),n(d)}),"handleData_"),oD=H((({transmuxedData:e,callback:t})=>{e.buffer=[],t(e)}),"handleDone_"),lD=H(((e,t)=>{t.gopInfo=e.data.gopInfo}),"handleGopInfo_"),uD=H((e=>{const{transmuxer:t,bytes:n,audioAppendStart:i,gopsToAlignWith:r,remux:a,onData:s,onTrackInfo:o,onAudioTimingInfo:l,onVideoTimingInfo:u,onVideoSegmentTimingInfo:c,onAudioSegmentTimingInfo:d,onId3:p,onCaptions:h,onDone:f,onEndedTimeline:m,onTransmuxerLog:g,isEndOfTimeline:y}=e,v={buffer:[]};let b=y;const _=H((n=>{t.currentTransmux===e&&("data"===n.data.action&&sD(n,v,s),"trackinfo"===n.data.action&&o(n.data.trackInfo),"gopInfo"===n.data.action&&lD(n,v),"audioTimingInfo"===n.data.action&&l(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&u(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&c(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&d(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&p([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&h(n.data.caption),"endedtimeline"===n.data.action&&(b=!1,m()),"log"===n.data.action&&g(n.data.log),"transmuxed"===n.data.type&&(b||(t.onmessage=null,oD({transmuxedData:v,callback:f}),cD(t))))}),"handleMessage");if(t.onmessage=_,i&&t.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==a&&t.postMessage({action:"setRemux",remux:a}),n.byteLength){const e=n instanceof ArrayBuffer?n:n.buffer,i=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:e,byteOffset:i,byteLength:n.byteLength},[e])}y&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})}),"processTransmux"),cD=H((e=>{e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():uD(e.currentTransmux))}),"dequeue"),dD=H(((e,t)=>{e.postMessage({action:t}),cD(e)}),"processAction"),pD=H(((e,t)=>{if(!t.currentTransmux)return t.currentTransmux=e,void dD(t,e);t.transmuxQueue.push(dD.bind(null,t,e))}),"enqueueAction"),hD=H((e=>{pD("reset",e)}),"reset$1"),fD=H((e=>{pD("endTimeline",e)}),"endTimeline"),mD=H((e=>{if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void uD(e);e.transmuxer.transmuxQueue.push(e)}),"transmux");var gD={reset:hD,endTimeline:fD,transmux:mD,createTransmuxer:H((e=>{const t=new aD;t.currentTransmux=null,t.transmuxQueue=[];const n=t.terminate;return t.terminate=()=>(t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)),t.postMessage({action:"init",options:e}),t}),"createTransmuxer")};const yD=H((function(e){const t=e.transmuxer,n=e.endAction||e.action,i=e.callback,r=eb({},e,{endAction:null,transmuxer:null,callback:null}),a=H((r=>{r.data.action===n&&(t.removeEventListener("message",a),r.data.data&&(r.data.data=new Uint8Array(r.data.data,e.byteOffset||0,e.byteLength||r.data.data.byteLength),e.data&&(e.data=r.data.data)),i(r.data))}),"listenForEndEvent");if(t.addEventListener("message",a),e.data){const n=e.data instanceof ArrayBuffer;r.byteOffset=n?0:e.data.byteOffset,r.byteLength=e.data.byteLength;const i=[n?e.data:e.data.buffer];t.postMessage(r,i)}else t.postMessage(r)}),"workerCallback"),vD=2,bD=-101,_D=-102,wD=H((e=>{e.forEach((e=>{e.abort()}))}),"abortAll"),SD=H((e=>({bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0})),"getRequestStats"),CD=H((e=>{const t=e.target,n={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return n.bytesReceived=e.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3),n}),"getProgressStats"),kD=H(((e,t)=>t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:bD,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:_D,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:vD,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:vD,xhr:t}:null),"handleErrors"),xD=H(((e,t,n)=>(i,r)=>{const a=r.response,s=kD(i,r);if(s)return n(s,e);if(16!==a.byteLength)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:vD,xhr:r},e);const o=new DataView(a),l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]);for(let e=0;e<t.length;e++)t[e].bytes=l;return n(null,e)}),"handleKeyResponse"),TD=H(((e,t)=>{const n=xS(e.map.bytes);if("mp4"!==n){const i=e.map.resolvedUri||e.map.uri,r=n||"unknown";return t({internal:!0,message:`Found unsupported ${r} container for initialization segment at URL: ${i}`,code:vD,metadata:{errorType:GL.Error.UnsupportedMediaInitialization,mediaType:r}})}yD({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:H((({tracks:n,data:i})=>
97(e.map.bytes=i,n.forEach((function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||(e.map.tracks[t.type]=t,"number"==typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale))})),t(null))),"callback")})}),"parseInitSegment"),ED=H((({segment:e,finishProcessingFn:t})=>(n,i)=>{const r=kD(n,i);if(r)return t(r,e);const a=new Uint8Array(i.response);if(e.map.key)return e.map.encryptedBytes=a,t(null,e);e.map.bytes=a,TD(e,(function(n){if(n)return n.xhr=i,n.status=i.status,t(n,e);t(null,e)}))}),"handleInitSegmentResponse"),AD=H((({segment:e,finishProcessingFn:t,responseType:n})=>(i,r)=>{const a=kD(i,r);if(a)return t(a,e);const s="arraybuffer"!==n&&r.responseText?Q$(r.responseText.substring(e.lastReachedChar||0)):r.response;return e.stats=SD(r),e.key?e.encryptedBytes=new Uint8Array(s):e.bytes=new Uint8Array(s),t(null,e)}),"handleSegmentResponse"),LD=H((({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:d,onTransmuxerLog:p})=>{const h=e.map&&e.map.tracks||{},f=Boolean(h.audio&&h.video);let m=i.bind(null,e,"audio","start");const g=i.bind(null,e,"audio","end");let y=i.bind(null,e,"video","start");const v=i.bind(null,e,"video","end"),b=H((()=>mD({bytes:t,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:f,onData:H((t=>{t.type="combined"===t.type?"video":t.type,c(e,t)}),"onData"),onTrackInfo:H((t=>{n&&(f&&(t.isMuxed=!0),n(e,t))}),"onTrackInfo"),onAudioTimingInfo:H((e=>{m&&void 0!==e.start&&(m(e.start),m=null),g&&void 0!==e.end&&g(e.end)}),"onAudioTimingInfo"),onVideoTimingInfo:H((e=>{y&&void 0!==e.start&&(y(e.start),y=null),v&&void 0!==e.end&&v(e.end)}),"onVideoTimingInfo"),onVideoSegmentTimingInfo:H((e=>{r(e)}),"onVideoSegmentTimingInfo"),onAudioSegmentTimingInfo:H((e=>{a(e)}),"onAudioSegmentTimingInfo"),onId3:H(((t,n)=>{s(e,t,n)}),"onId3"),onCaptions:H((t=>{o(e,[t])}),"onCaptions"),isEndOfTimeline:l,onEndedTimeline:H((()=>{u()}),"onEndedTimeline"),onTransmuxerLog:p,onDone:H((t=>{d&&(t.type="combined"===t.type?"video":t.type,d(null,e,t))}),"onDone")})),"finish");yD({action:"probeTs",transmuxer:e.transmuxer,data:t,baseStartTime:e.baseStartTime,callback:H((i=>{e.bytes=t=i.data;const r=i.result;r&&(n(e,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:f}),n=null),b()}),"callback")})}),"transmuxAndNotify"),ID=H((({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:d,onTransmuxerLog:p})=>{let h=new Uint8Array(t);if(TS(h)){e.isFmp4=!0;const{tracks:r}=e.map,a={isFmp4:!0,hasVideo:!!r.video,hasAudio:!!r.audio};r.audio&&r.audio.codec&&"enca"!==r.audio.codec&&(a.audioCodec=r.audio.codec),r.video&&r.video.codec&&"encv"!==r.video.codec&&(a.videoCodec=r.video.codec),r.video&&r.audio&&(a.isMuxed=!0),n(e,a);const l=H(((t,n)=>{c(e,{data:h,type:a.hasAudio&&!a.isMuxed?"audio":"video"}),n&&n.length&&s(e,n),t&&t.length&&o(e,t),d(null,e,{})}),"finishLoading");yD({action:"probeMp4StartTime",timescales:e.map.timescales,data:h,transmuxer:e.transmuxer,callback:H((({data:n,startTime:s})=>{t=n.buffer,e.bytes=h=n,a.hasAudio&&!a.isMuxed&&i(e,"audio","start",s),a.hasVideo&&i(e,"video","start",s),yD({action:"probeEmsgID3",data:h,transmuxer:e.transmuxer,offset:s,callback:H((({emsgData:n,id3Frames:i})=>{t=n.buffer,e.bytes=h=n,r.video&&n.byteLength&&e.transmuxer?yD({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:h,timescales:e.map.timescales,trackIds:[r.video.id],callback:H((n=>{t=n.data.buffer,e.bytes=h=n.data,n.logs.forEach((function(e){p(rI(e,{stream:"mp4CaptionParser"}))})),l(n.captions,i)}),"callback")}):l(void 0,i)}),"callback")})}),"callback")})}else if(e.transmuxer){if(void 0===e.container&&(e.container=xS(h)),"ts"!==e.container&&"aac"!==e.container)return n(e,{hasAudio:!1,hasVideo:!1}),void d(null,e,{});LD({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:d,onTransmuxerLog:p})}else d(null,e,{})}),"handleSegmentBytes"),$D=H((function({id:e,key:t,encryptedBytes:n,decryptionWorker:i},r){const a=H((t=>{if(t.data.source===e){i.removeEventListener("message",a);const e=t.data.decrypted;r(new Uint8Array(e.bytes,e.byteOffset,e.byteLength))}}),"decryptionHandler");let s;i.addEventListener("message",a),s=t.bytes.slice?t.bytes.slice():new Uint32Array(Array.prototype.slice.call(t.bytes)),i.postMessage(C$({source:e,encrypted:n,key:s,iv:t.iv}),[n.buffer,s.buffer])}),"decrypt"),DD=H((({decryptionWorker:e,segment:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:d,onTransmuxerLog:p})=>{$D({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e},(e=>{t.bytes=e,ID({segment:t,bytes:t.bytes,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:d,onTransmuxerLog:p})}))}),"decryptSegment"),PD=H((({activeXhrs:e,decryptionWorker:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:d,onTransmuxerLog:p})=>{let h=0,f=!1;return(m,g)=>{if(!f){if(m)return f=!0,wD(e),d(m,g);if(h+=1,h===e.length){const h=H((function(){if(g.encryptedBytes)return DD({decryptionWorker:t,segment:g,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:d,onTransmuxerLog:p});ID({segment:g,bytes:g.bytes,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:d,onTransmuxerLog:p})}),"segmentFinish");if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return $D({decryptionWorker:t,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},(t=>{g.map.bytes=t,TD(g,(t=>{if(t)return wD(e),d(t,g);h()}))}));h()}}}}),"waitForCompletion"),OD=H((({loadendState:e,abortFn:t})=>n=>{n.target.aborted&&t&&!e.calledAbortFn&&(t(),e.calledAbortFn=!0)}),"handleLoadEnd"),MD=H((({segment:e,progressFn:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c})=>n=>{if(!n.target.aborted)return e.stats=rI(e.stats,CD(n)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(n,e)}),"handleProgress"),RD=H((({xhr:e,xhrOptions:t,decryptionWorker:n,segment:i,abortFn:r,progressFn:a,trackInfoFn:s,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:d,isEndOfTimeline:p,endedTimelineFn:h,dataFn:f,doneFn:m,onTransmuxerLog:g})=>{const y=[],v=PD({activeXhrs:y,decryptionWorker:n,trackInfoFn:s,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:d,isEndOfTimeline:p,endedTimelineFn:h,dataFn:f,doneFn:m,onTransmuxerLog:g});if(i.key&&!i.key.bytes){const n=[i.key];i.map&&!i.map.bytes&&i.map.key&&i.map.key.resolvedUri===i.key.resolvedUri&&n.push(i.map.
97key);const r=e(rI(t,{uri:i.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),xD(i,n,v));y.push(r)}if(i.map&&!i.map.bytes){if(i.map.key&&(!i.key||i.key.resolvedUri!==i.map.key.resolvedUri)){const n=e(rI(t,{uri:i.map.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),xD(i,[i.map.key],v));y.push(n)}const n=e(rI(t,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:b$(i.map),requestType:"segment-media-initialization"}),ED({segment:i,finishProcessingFn:v}));y.push(n)}const b=rI(t,{uri:i.part&&i.part.resolvedUri||i.resolvedUri,responseType:"arraybuffer",headers:b$(i),requestType:"segment"}),_=e(b,AD({segment:i,finishProcessingFn:v,responseType:b.responseType}));_.addEventListener("progress",MD({segment:i,progressFn:a,trackInfoFn:s,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:d,isEndOfTimeline:p,endedTimelineFn:h,dataFn:f})),y.push(_);const w={};return y.forEach((e=>{e.addEventListener("loadend",OD({loadendState:w,abortFn:r}))})),()=>wD(y)}),"mediaSegmentRequest"),ND=iI("CodecUtils"),FD=H((function(e){const t=e.attributes||{};if(t.CODECS)return Lb(t.CODECS)}),"getCodecs"),BD=H(((e,t)=>{const n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]}),"isMaat"),HD=H(((e,t)=>{if(!BD(e,t))return!0;const n=t.attributes||{},i=e.mediaGroups.AUDIO[n.AUDIO];for(const r in i)if(!i[r].uri&&!i[r].playlists)return!0;return!1}),"isMuxed"),jD=H((function(e){const t={};return e.forEach((({mediaType:e,type:n,details:i})=>{t[e]=t[e]||[],t[e].push(Ab(`${n}${i}`))})),Object.keys(t).forEach((function(e){if(t[e].length>1)return ND(`multiple ${e} codecs found as attributes: ${t[e].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),void(t[e]=null);t[e]=t[e][0]})),t}),"unwrapCodecList"),UD=H((function(e){let t=0;return e.audio&&t++,e.video&&t++,t}),"codecCount"),VD=H((function(e,t){const n=t.attributes||{},i=jD(FD(t)||[]);if(BD(e,t)&&!i.audio&&!HD(e,t)){const t=jD(Ib(e,n.AUDIO)||[]);t.audio&&(i.audio=t.audio)}return i}),"codecsForPlaylist"),qD=iI("PlaylistSelector"),zD=H((function(e){if(!e||!e.playlist)return;const t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}),"representationToString"),WD=H((function(e,t){if(!e)return"";const n=fv.getComputedStyle(e);return n?n[t]:""}),"safeGetComputedStyle"),GD=H((function(e,t){const n=e.slice();e.sort((function(e,i){const r=t(e,i);return 0===r?n.indexOf(e)-n.indexOf(i):r}))}),"stableSort"),KD=H((function(e,t){let n,i;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||fv.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(i=t.attributes.BANDWIDTH),i=i||fv.Number.MAX_VALUE,n-i}),"comparePlaylistBandwidth"),YD=H((function(e,t){let n,i;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||fv.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(i=t.attributes.RESOLUTION.width),i=i||fv.Number.MAX_VALUE,n===i&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-i}),"comparePlaylistResolution");let ZD=H((function(e,t,n,i,r,a){if(!e)return;const s={bandwidth:t,width:n,height:i,limitRenditionByPlayerDimensions:r};let o=e.playlists;qI.isAudioOnly(e)&&(o=a.getAudioTrackPlaylists_(),s.audioOnly=!0);let l=o.map((e=>{let t;const n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return t=e.attributes&&e.attributes.BANDWIDTH,t=t||fv.Number.MAX_VALUE,{bandwidth:t,width:n,height:i,playlist:e}}));GD(l,((e,t)=>e.bandwidth-t.bandwidth)),l=l.filter((e=>!qI.isIncompatible(e.playlist)));let u=l.filter((e=>qI.isEnabled(e.playlist)));u.length||(u=l.filter((e=>!qI.isDisabled(e.playlist))));const c=u.filter((e=>e.bandwidth*X$.BANDWIDTH_VARIANCE<t));let d=c[c.length-1];const p=c.filter((e=>e.bandwidth===d.bandwidth))[0];if(!1===r){const e=p||u[0]||l[0];if(e&&e.playlist){let t="sortedPlaylistReps";return p&&(t="bandwidthBestRep"),u[0]&&(t="enabledPlaylistReps"),qD(`choosing ${zD(e)} using ${t}
97 with options`,s),e.playlist}return qD("could not choose a playlist with options",s),null}const h=c.filter((e=>e.width&&e.height));GD(h,((e,t)=>e.width-t.width));const f=h.filter((e=>e.width===n&&e.height===i));d=f[f.length-1];const m=f.filter((e=>e.bandwidth===d.bandwidth))[0];let g,y,v,b;if(m||(g=h.filter((e=>e.width>n||e.height>i)),y=g.filter((e=>e.width===g[0].width&&e.height===g[0].height)),d=y[y.length-1],v=y.filter((e=>e.bandwidth===d.bandwidth))[0]),a.leastPixelDiffSelector){const e=h.map((e=>(e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e)));GD(e,((e,t)=>e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff)),b=e[0]}const _=b||v||m||p||u[0]||l[0];if(_&&_.playlist){let e="sortedPlaylistReps";return b?e="leastPixelDiffRep":v?e="resolutionPlusOneRep":m?e="resolutionBestRep":p?e="bandwidthBestRep":u[0]&&(e="enabledPlaylistReps"),qD(`choosing ${zD(_)} using ${e} with options`,s),_.playlist}return qD("could not choose a playlist with options",s),null}),"simpleSelector");const XD=H((function(){let e=this.useDevicePixelRatio&&fv.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(e=this.customPixelRatio),ZD(this.playlists.main,this.systemBandwidth,parseInt(WD(this.tech_.el(),"width"),10)*e,parseInt(WD(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.playlistController_)}),"lastBandwidthSelector"),QD=H((function(e){let t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){let i=this.useDevicePixelRatio&&fv.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(i=this.customPixelRatio),t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),ZD(this.playlists.main,t,parseInt(WD(this.tech_.el(),"width"),10)*i,parseInt(WD(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.playlistController_)}}),"movingAverageBandwidthSelector"),JD=H((function(e){const{main:t,currentTime:n,bandwidth:i,duration:r,segmentDuration:a,timeUntilRebuffer:s,currentTimeline:o,syncController:l}=e,u=t.playlists.filter((e=>!qI.isIncompatible(e)));let c=u.filter(qI.isEnabled);c.length||(c=u.filter((e=>!qI.isDisabled(e))));const d=c.filter(qI.hasAttribute.bind(null,"BANDWIDTH")).map((e=>{const t=l.getSyncPoint(e,r,o,n)?1:2;return{playlist:e,rebufferingImpact:qI.estimateSegmentRequestTime(a,i,e)*t-s}})),p=d.filter((e=>e.rebufferingImpact<=0));return GD(p,((e,t)=>KD(t.playlist,e.playlist))),p.length?p[0]:(GD(d,((e,t)=>e.rebufferingImpact-t.rebufferingImpact)),d[0]||null)}),"minRebufferMaxBandwidthSelector"),eP=H((function(){const e=this.playlists.main.playlists.filter(qI.isEnabled);GD(e,((e,t)=>KD(e,t)));return e.filter((e=>!!VD(this.playlists.main,e).video))[0]||null}),"lowestBitrateCompatibleVariantSelector"),tP=H((e=>{let t,n=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach((e=>{t.set(e,n),n+=e.byteLength}))),t}),"concatSegments");function nP(e){try{return new URL(e).pathname.split("/").slice(-2).join("/")}catch(tvt){return""}}H(nP,"compactSegmentUrlDescription");const iP=H((function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"});let i=n;/^cc708_/.test(n)&&(i="SERVICE"+n.split("_")[1]);const r=t.textTracks().getTrackById(i);if(r)e[n]=r;else{let r=n,a=n,s=!1;const o=(t.options_.vhs&&t.options_.vhs.captionServices||{})[i];o&&(r=o.label,a=o.language,s=o.default),e[n]=t.addRemoteTextTrack({kind:"captions",id:i,default:s,label:r,language:a},!1).track}}}),"createCaptionsTrackIfNotExists"),rP=H((function({inbandTextTracks:e,captionArray:t,timestampOffset:n}){if(!t)return;const i=fv.WebKitDataCue||fv.VTTCue;t.forEach((t=>{const r=t.stream;t.content?t.content.forEach((a=>{const s=new i(t.startTime+n,t.endTime+n,a.text);s.line=a.line,s.align="left",s.position=a.position,s.positionAlign="line-left",e[r].addCue(s)})):e[r].addCue(new i(t.startTime+n,t.endTime+n,t.text))}))}),"addCaptionData"),aP=H((function(e){Object.defineProperties(e.frame,{id:{get:()=>(GL.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key)},value:{get:()=>(GL.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data)},privateData:{get:()=>(GL.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data)}})}),"deprecateOldCue"),sP=H((({inbandTextTracks:e,metadataArray:t,timestampOffset:n,videoDuration:i})=>{if(!t)return;const r=fv.WebKitDataCue||fv.VTTCue,a=e.metadataTrack_;if(!a)return;if(t.forEach((e=>{const t=e.cueTime+n;!("number"!=typeof t||fv.isNaN(t)||t<0)&&t<1/0&&e.frames&&e.frames.length&&e.frames.forEac
97h((e=>{const n=new r(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,aP(n),a.addCue(n)}))})),!a.cues||!a.cues.length)return;const s=a.cues,o=[];for(let c=0;c<s.length;c++)s[c]&&o.push(s[c]);const l=o.reduce(((e,t)=>{const n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e}),{}),u=Object.keys(l).sort(((e,t)=>Number(e)-Number(t)));u.forEach(((e,t)=>{const n=l[e],r=isFinite(i)?i:e,a=Number(u[t+1])||r;n.forEach((e=>{e.endTime=a}))}))}),"addMetadata"),oP={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},lP=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),uP=H((({inbandTextTracks:e,dateRanges:t})=>{const n=e.metadataTrack_;if(!n)return;const i=fv.WebKitDataCue||fv.VTTCue;t.forEach((e=>{for(const t of Object.keys(e)){if(lP.has(t))continue;const r=new i(e.startTime,e.endTime,"");r.id=e.id,r.type="com.apple.quicktime.HLS",r.value={key:oP[t],data:e[t]},"scte35Out"!==t&&"scte35In"!==t||(r.value.data=new Uint8Array(r.value.data.match(/[\da-f]{2}/gi)).buffer),n.addCue(r)}e.processDateRange()}))}),"addDateRangeMetadata"),cP=H(((e,t,n)=>{e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,GL.browser.IS_ANY_SAFARI||(e.metadataTrack_.inBandMetadataTrackDispatchType=t))}),"createMetadataTrackIfNotExists"),dP=H((function(e,t,n){let i,r;if(n&&n.cues)for(i=n.cues.length;i--;)r=n.cues[i],r.startTime>=e&&r.endTime<=t&&n.removeCue(r)}),"removeCuesFromTrack"),pP=H((function(e){const t=e.cues;if(!t)return;const n={};for(let i=t.length-1;i>=0;i--){const r=t[i],a=`${r.startTime}-${r.endTime}-${r.text}`;n[a]?e.removeCue(r):n[a]=r}}),"removeDuplicateCuesFromTrack"),hP=H(((e,t,n)=>{if(null==t||!e.length)return[];const i=Math.ceil((t-n+3)*AS.ONE_SECOND_IN_TS);let r;for(r=0;r<e.length&&!(e[r].pts>i);r++);return e.slice(r)}),"gopsSafeToAlignWith"),fP=H(((e,t,n)=>{if(!t.length)return e;if(n)return t.slice();const i=t[0].pts;let r=0;for(;r<e.length&&!(e[r].pts>=i);r++);return e.slice(0,r).concat(t)}),"updateGopBuffer"),mP=H(((e,t,n,i)=>{const r=Math.ceil((t-i)*AS.ONE_SECOND_IN_TS),a=Math.ceil((n-i)*AS.ONE_SECOND_IN_TS),s=e.slice();let o=e.length;for(;o--&&!(e[o].pts<=a););if(-1===o)return s;let l=o+1;for(;l--&&!(e[l].pts<=r););return l=Math.max(l,0),s.splice(l,o-l+1),s}),"removeGopBuffer"),gP=H((function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;const n=Object.keys(e).sort(),i=Object.keys(t).sort();if(n.length!==i.length)return!1;for(let r=0;r<n.length;r++){const a=n[r];if(a!==i[r])return!1;if(e[a]!==t[a])return!1}return!0}),"shallowEqual"),yP=H((function(e,t,n){t=t||[];const i=[];let r=0;for(let a=0;a<t.length;a++){const s=t[a];if(e===s.timeline&&(i.push(a),r+=s.duration,r>n))return a}return 0===i.length?0:i[i.length-1]}),"getSyncSegmentCandidate"),vP=H((e=>"number"==typeof e&&isFinite(e)),"finite"),bP=1/60,_P=H(((e,t,n)=>"main"===e&&t&&n?n.hasAudio||n.hasVideo?t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null),"illegalMediaSwitch"),wP=H(((e,t,n)=>{let i=t-X$.BACK_BUFFER_LENGTH;e.length&&(i=Math.max(i,e.start(0)));const r=t-n;return Math.min(r,i)}),"safeBackBufferTrimTime"),SP=H((e=>{const{startOfSegment:t,duration:n,segment:i,part:r,playlist:{mediaSequence:a,id:s,segments:o=[]},mediaIndex:l,partIndex:u,timeline:c}=e,d=o.length-1;let p="mediaIndex/partIndex increment";e.getMediaInfoForTime?p=`getMediaInfoForTime (${e.getMediaInfoForTime})`:e.isSyncRequest&&(p="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(p+=` with independent ${e.independent}`);const h="number"==typeof u,f=e.segment.uri?"segment":"pre-segment",m=h?CI({preloadSegment:i})-1:0;return`${f} [${a+l}/${a+d}]`+(h?` part [${u}/${m}]`:"")+` segment start/end [${i.start} => ${i.end}]`+(h?` part start/end [${r.start} => ${r.end}]`:"")+` startOfSegment [${t}] duration [${n}] timeline [${c}] selected by [${p}] playlist [${s}]`}),"segmentInfoString"),CP=H((e=>`${e}TimingInfo`),"timingInfoPropertyForMedia"),kP=H((({segmentTimeline:e,currentTimeline:t,startOfSegment:n,buffered:i,overrideCheck:r})=>r||e!==t?e<t?n:i.length?i.end(i.length-1):n:null),"timestampOffsetForSegment"),xP=H((({timelineChangeController:e,currentTimeline:t,segmentTimeline:n,loaderType:i,audioDisabled:r})=>{if(t===n)return!1;if("audio"===i){const t=e.lastTimelineChange({type:"main"});return!t||t.to!==n}if("main"===i&&r){const t=e.pendingTimelineChange({type:"audio"});return!t||t.to!==n}return!1}),"shouldWaitForTimelineChange"),TP=H((e=>{let t=0;return["video","audio"].forEach((function(n){const i=e[`${n}TimingInfo`];if(!i)return;const{start:r,end:a}=i;let s;"bigint"==typeof r||"bigint"==typeof a?s=fv.BigInt(a)-fv.BigInt(r):"number"==typeof r&&"number"==typeof a&&(s=a-r),void 0!==s&&s>t&&(t=s)})),"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t}),"mediaDuration"),EP=H((({segmentDuration:e,maxDuration:t})=>!!e&&Math.round(e)>t+oI),"segmentTooLong"),AP=H(((e,t)=>{if("hls"!==t)return null;const n=TP({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!n)return null;const i=e.playlist.targetDuration,r=EP({segmentDuration:n,maxDuration:2*i}),a=EP({segmentDuration:n,maxDuration:i}),s=`Segment with index ${e.mediaIndex} from playlist ${e.playlist.id} has a duration of ${n} when the reported duration is ${e.duration} and the target duration is ${i}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`;
97return r||a?{severity:r?"warn":"info",message:s}:null}),"getTroublesomeSegmentDurationMessage"),LP=class extends GL.EventTarget{constructor(e,t={}){if(super(),!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",(()=>{this.isEndOfStream_()||(this.ended_=!1)})),this.fetchAtBuffer_=!1,this.logger_=iI(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(e){e!==this.state_&&(this.logger_(`${this.state_} -> ${e}`),this.state_=e,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",(()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})),"main"===this.loaderType_&&this.timelineChangeController_.on("pendingtimelinechange",(()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})),"audio"===this.loaderType_&&this.timelineChangeController_.on("timelinechange",(()=>{this.hasEnoughInfoToLoad_()&&this.processLoadQueue_(),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}))}get mediaSequenceSync_(){return this.syncController_.getMediaSequenceSync(this.loaderType_)}createTransmuxer_(){return gD.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&fv.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)}abort_(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,fv.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e
vendor: 10,260 bytes, line 97
97:(this.state="READY",!0)}error(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&gD.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return aI();if("main"===this.loaderType_){const{hasAudio:t,hasVideo:n,isMuxed:i}=e;if(n&&t&&!this.audioDisabled_&&!i)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,t=!1){if(!e)return null;const n=k$(e);let i=this.initSegments_[n];return t&&!i&&e.bytes&&(this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),i||e}segmentKey(e,t=!1){if(!e)return null;const n=x$(e);let i=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!i&&e.bytes&&(this.keyCache_[n]=i={resolvedUri:e.resolvedUri,bytes:e.bytes});const r={resolvedUri:(i||e).resolvedUri};return i&&(r.bytes=i.bytes),r}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(e,t={}){if(!e)return;const n=this.playlist_,i=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));let r=null;if(n&&(n.id?r=n.id:n.uri&&(r=n.uri)),this.logger_(`playlist update [${r} => ${e.id||e.uri}]`),this.mediaSequenceSync_&&(this.mediaSequenceSync_.update(e,this.currentTime_()),this.logger_(`Playlist update:\ncurrentTime: ${this.currentTime_()}\nbufferedEnd: ${vI(this.buffered_())}\n`,this.mediaSequenceSync_.diagnostics)),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri){if(null!==this.mediaIndex){!e.endList&&"number"==typeof e.partTargetDuration?this.resetLoader():this.resyncLoader()}return this.currentMediaInfo_=void 0,void this.trigger("playlistupdate")}const a=e.mediaSequence-n.mediaSequence;if(this.logger_(`live window shift [${a}]`),null!==this.mediaIndex)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const e=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!e.parts||!e.parts.length||!e.parts[this.partIndex])){const e=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=e}}i&&(i.mediaIndex-=a,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(i.mediaIndex>=0&&(i.segment=e.segments[i.mediaIndex]),i.partIndex>=0&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}pause(){this.checkBufferTimeout_&&(fv.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return null===this.checkBufferTimeout_}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}resetLoader(){this.fetchAtBuffer_=!1,this.mediaSequenceSync_&&this.mediaSequenceSync_.resetAppendedStatus(),this.resyncLoader()}resyncLoader(){this.transmuxer_&&gD.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1;const e=this.currentMediaInfo_&&this.currentMediaInfo_.isFmp4;"hls"===this.sourceType_&&!e&&(this.shouldForceTimestampOffsetAfterResync_=!0),this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(e,t,n=(()=>{}),i=!1){if(t===1/0&&(t=this.duration_()),t<=e)return void this.logger_("skipping remove because end ${end} is <= start ${start}");if(!this.sourceUpdater_||!this.getMediaInfo_())return void this.logger_("skipping remove because no source updater or starting media info");let r=1;const a=H((()=>{r--,0===r&&n()}),"removeFinished");!i&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,a)),(i||"main"===this.loaderType_)&&(this.gopBuffer_=mP(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,a));for(const s in this.inbandTextTracks_)dP(e,t,this.inbandTextTracks_[s]);dP(e,t,this.segmentMetadataTrack_),a()}monitorBuffer_(){this.checkBufferTimeout_&&fv.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=fv.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&fv.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=fv.setTimeout(this.monitorBufferTick_.bind(this),500)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const e=this.chooseNextRequest_();e&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}isEndOfStream_(e=this.mediaIndex,t=this.playlist_,n=this.partIndex){if(!t||!this.mediaSource_)return!1;const i="number"==typeof e&&t.segments[e],r=e+1===t.segments.length,a=!i||!i.parts||n+1===i.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&a}chooseNextRequest_(){const e=this.buffered_(),t=vI(e)||0,n=bI(e,this.currentTime_()),i=!this.hasPlayed_()&&n>=1,r=n>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||i||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);const s={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(s.isSyncRequest)s.mediaIndex=yP(this.currentTimeline_,a,t),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${s.mediaIndex}`);else if(null!==this.mediaIndex){const e=a[this.mediaIndex],n="number"==typeof this.partIndex?this.partIndex:-1;s.startOfSegment=e.end?e.end:t,e.parts&&e.parts[n+1]?(s.mediaIndex=this.mediaIndex,s.partIndex=n+1):s.mediaIndex=this.mediaIndex+1}else{let e,n,i;const r=this.fetchAtBuffer_?t:this.currentTime_();if(this.mediaSequenceSync_&&this.logger_(`chooseNextRequest_ request after Quality Switch:\nFor TargetTime: ${r}.\nCurrentTime: ${this.currentTime_()}\nBufferedEnd: ${t}\nFetch At Buffer: ${this.fetchAtBuffer_}\n`,this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){const t=this.getSyncInfoFromMediaSequenceSync_(r);if(!t)return this.logger_("chooseNextRequest_ - no sync info found using media sequence sync"),null;this.logger_(`chooseNextRequest_ mediaSequence syncInfo (${t.start} --\x3e ${t.end})`),e=t.segmentIndex,n=t.partIndex,i=t.start}else{this.logger_("chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.");const t=qI.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:r,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});e=t.segmentIndex,n=t.partIndex,i=t.startTime}s.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${r}`:`currentTime ${r}`,s.mediaIndex=e,s.startOfSegment=i,s.partIndex=n,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${s.mediaIndex} `)}const o=a[s.mediaIndex];let l=o&&"number"==typeof s.partIndex&&o.parts&&o.parts[s.partIndex];if(!o||"number"==typeof s.partIndex&&!l)return null;"number"!=typeof s.partIndex&&o.parts&&(s.partIndex=0,l=o.parts[0]);const u=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!n&&l&&!u&&!l.independent)if(0===s.partIndex){const e=a[s.mediaIndex-1],t=e.parts&&e.parts.length&&e.parts[e.parts.length-1];t&&t.independent&&(s.mediaIndex-=1,s.partIndex=e.parts.length-1,s.independent="previous segment")}else o.parts[s.partIndex-1].independent&&(s.partIndex-=1,s.independent="previous part");const c=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return s.mediaIndex>=a.length-1&&c&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,s.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(s))}getSyncInfoFromMediaSequenceSync_(e){if(!this.mediaSequenceSync_)return null;const t=Math.max(e,this.mediaSequenceSync_.start);e!==t&&this.logger_(`getSyncInfoFromMediaSequenceSync_. Pulled target time from ${e} to ${t}`);const n=this.mediaSequenceSync_.getSyncInfoForTime(t);if(!n)return null;if(!n.isAppended)return n;const i=this.mediaSequenceSync_.getSyncInfoForTime(n.end);return i?(i.isAppended&&this.logger_("getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!"),i):null}generateSegmentInfo_(e){const{independent:t,playlist:n,mediaIndex:i,startOfSegment:r,isSyncRequest:a,partIndex:s,forceTimestampOffset:o,getMediaInfoForTime:l}=e,u=n.segments[i],c="number"==typeof s&&u.parts[s],d={requestId:"segment-loader-"+Math.random(),uri:c&&c.resolvedUri||u.resolvedUri,mediaIndex:i,partIndex:c?s:null,isSyncRequest:a,startOfSegment:r,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:c&&c.duration||u.duration,segment:u,part:c,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},p=void 0!==o?o:this.isPendingTimestampOffset_;d.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:p});
97const h=vI(this.sourceUpdater_.audioBuffered());return"number"==typeof h&&(d.audioAppendStart=h-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(d.gopsToAlignWith=hP(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d}timestampOffsetForSegment_(e){return kP(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return;if(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;const t=this.currentTime_(),n=e.bandwidth,i=this.pendingSegment_.duration,r=qI.estimateSegmentRequestTime(i,n,this.playlist_,e.bytesReceived),a=mI(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(r<=a)return;const s=JD({main:this.vhs_.playlists.main,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!s)return;const o=r-a-s.rebufferingImpact;let l=.5;a<=oI&&(l=1),!s.playlist||s.playlist.uri===this.playlist_.uri||o<l||(this.bandwidth=s.playlist.attributes.BANDWIDTH*X$.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${SP(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")}handleTrackInfo_(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},gP(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))}handleTimingInfo_(e,t,n,i){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;const r=this.pendingSegment_,a=CP(t);r[a]=r[a]||{},r[a][n]=i,this.logger_(`timinginfo: ${t} - ${n} - ${i}`),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}handleCaptions_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(0===t.length)return void this.logger_("SegmentLoader received no captions from a caption event");if(!this.pendingSegment_.hasAppendedData_)return void this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));const n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),i={};t.forEach((e=>{i[e.stream]=i[e.stream]||{startTime:1/0,captions:[],endTime:0};const t=i[e.stream];t.startTime=Math.min(t.startTime,e.startTime+n),t.endTime=Math.max(t.endTime,e.endTime+n),t.captions.push(e)}
vendor: 4,275 bytes, line 97
97)),Object.keys(i).forEach((e=>{const{startTime:t,endTime:r,captions:a}=i[e],s=this.inbandTextTracks_;this.logger_(`adding cues from ${t} -> ${r} for ${e}`),iP(s,this.vhs_.tech_,e),dP(t,r,s[e]),rP({captionArray:a,inbandTextTracks:s,timestampOffset:n})})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;this.pendingSegment_.hasAppendedData_?this.addMetadataToTextTrack(n,t,this.duration_()):this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n))}processMetadataQueue_(){this.metadataQueue_.id3.forEach((e=>e())),this.metadataQueue_.caption.forEach((e=>e())),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){const e=this.callQueue_;this.callQueue_=[],e.forEach((e=>e()))}processLoadQueue_(){const e=this.loadQueue_;this.loadQueue_=[],e.forEach((e=>e()))}hasEnoughInfoToLoad_(){if("audio"!==this.loaderType_)return!0;const e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!xP({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;const e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;const{hasAudio:n,hasVideo:i,isMuxed:r}=t;return!(i&&!e.videoTimingInfo)&&(!(n&&!this.audioDisabled_&&!r&&!e.audioTimingInfo)&&!xP({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_())return void this.callQueue_.push(this.handleData_.bind(this,e,t));const n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.part||n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[CP(t.type)].start;else{const e=this.getCurrentMediaInfo_(),t="main"===this.loaderType_&&e&&e.hasVideo;let i;t&&(i=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:t,firstVideoFrameTimeForData:i,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});const e=this.chooseNextRequest_();if(e.mediaIndex!==n.mediaIndex||e.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}updateAppendInitSegmentStatus(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)}getInitSegmentAndUpdateState_({type:e,initSegment:t,map:n,playlist:i}){if(n){const e=k$(n);if(this.activeInitSegmentId_===e)return null;t=this.initSegmentForMap(n,!0).bytes,this.activeInitSegmentId_=e}return t&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=i,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,t):null}handleQuotaExceededError_({segmentInfo:e,type:t,bytes:n}
vendor: 4,235 bytes, line 97
97,i){const r=this.sourceUpdater_.audioBuffered(),a=this.sourceUpdater_.videoBuffered();r.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+gI(r).join(", ")),a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+gI(a).join(", "));const s=r.length?r.start(0):0,o=r.length?r.end(r.length-1):0,l=a.length?a.start(0):0,u=a.length?a.end(a.length-1):0;if(o-s<=1&&u-l<=1)return this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${n.byteLength}, audio buffer: ${gI(r).join(", ")}, video buffer: ${gI(a).join(", ")}, `),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0,metadata:{errorType:GL.Error.SegmentExceedsSourceBufferQuota}}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:e,type:t,bytes:n}));const c=this.currentTime_()-1;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${c}`),this.remove(0,c,(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=fv.setTimeout((()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()}),1e3)}),!0)}handleAppendError_({segmentInfo:e,type:t,bytes:n},i){i&&(22!==i.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",i),this.error({message:`${t} append of ${n.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`,metadata:{errorType:GL.Error.SegmentAppendError}}),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:e,type:t,bytes:n}))}appendToSourceBuffer_({segmentInfo:e,type:t,initSegment:n,data:i,bytes:r}){if(!r){const e=[i];let t=i.byteLength;n&&(e.unshift(n),t+=n.byteLength),r=tP({bytes:t,segments:e})}this.sourceUpdater_.appendBuffer({segmentInfo:e,type:t,bytes:r},this.handleAppendError_.bind(this,{segmentInfo:e,type:t,bytes:r}))}handleSegmentTimingInfo_(e,t,n){if(!this.pendingSegment_||t!==this.pendingSegment_.requestId)return;const i=this.pendingSegment_.segment,r=`${e}TimingInfo`;i[r]||(i[r]={}),i[r].transmuxerPrependedSeconds=n.prependedContentDuration||0,i[r].transmuxedPresentationStart=n.start.presentation,i[r].transmuxedDecodeStart=n.start.decode,i[r].transmuxedPresentationEnd=n.end.presentation,i[r].transmuxedDecodeEnd=n.end.decode,i[r].baseMediaDecodeTime=n.baseMediaDecodeTime}appendData_(e,t){const{type:n,data:i}=t;if(!i||!i.byteLength)return;if("audio"===n&&this.audioDisabled_)return;const r=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:r,data:i})}loadSegment_(e){this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push((()=>{const t=eb({},e,{forceTimestampOffset:!0});eb(e,this.generateSegmentInfo_(t)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)}))}updateTransmuxerAndRequestSegment_(e){this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));const t=this.createSimplifiedSegmentObj_(e),n=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),i=null!==this.mediaIndex,r=e.timeline!==this.currentTimeline_&&e.timeline>0,a=n||i&&r;this.logger_(`Requesting\n${nP(e.uri)}\n${SP(e)}`),t.map&&!t.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=RD({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:t,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.b
97ind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:a,endedTimelineFn:H((()=>{this.logger_("received endedtimeline callback")}),"endedTimelineFn"),id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:H((({message:t,level:n,stream:i})=>{this.logger_(`${SP(e)} logged from transmuxer stream ${i} as a ${n}: ${t}`)}),"onTransmuxerLog")})}trimBackBuffer_(e){const t=wP(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}createSimplifiedSegmentObj_(e){const t=e.segment,n=e.part,i={resolvedUri:n?n.resolvedUri:t.resolvedUri,byterange:n?n.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},r=e.playlist.segments[e.mediaIndex-1];if(r&&r.timeline===t.timeline&&(r.videoTimingInfo?i.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(i.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){const n=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);i.key=this.segmentKey(t.key),i.key.iv=n}return t.map&&(i.map=this.initSegmentForMap(t.map)),i}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<bP?this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record 0.016666666666666666`):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,t,n){if(this.callQueue_.length)return void this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return;if(t.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",e.code===_D)return;return this.pause(),e.code===bD?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}const i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,t.stats),i.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=fP(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(i)}setTimeMapping_(e){const t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)}updateMediaSecondsLoaded_(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())}trueSegmentStart_({currentStart:e,playlist:t,mediaIndex:n,firstVideoFrameTimeForData:i,currentVideoTimestampOffset:r,useVideoTimingInfo:a,videoTimingInfo:s,audioTimingInfo:o}){if(void 0!==e)return e;if(!a)return o.start;const l=t.segments[n-1];return 0!==n&&l&&void 0!==l.start&&l.end===i+r?s.start:i}waitForAppendsToComplete_(e){const t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0,metadata:{errorType:GL.Error.SegmentUnsupportedMediaFormat}}),void this.trigger("error");const{hasAudio:n,hasVideo:i,isMuxed:r}=t,a="main"===this.loaderType_&&i,s=!this.audioDisabled_&&n&&!r;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);a&&e.waitingOnAppends++,s&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),s&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}
vendor: 4,219 bytes, line 97
97checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){const t=_P(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,playlistExclusionDuration:1/0,metadata:{errorType:GL.Error.SegmentSwitchError}}),this.trigger("error"),!0)}updateSourceBufferTimestampOffset_(e){if(null===e.timestampOffset||"number"!=typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_)return;let t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:t,timingInfo:n}){return this.useDtsForTimestampOffset_?e&&"number"==typeof e.transmuxedDecodeStart?e.transmuxedDecodeStart:t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:n.start:n.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};const t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;n&&(e.timingInfo.end="number"==typeof n.end?n.end:n.start+e.duration)}handleAppendsDone_(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());const e=this.pendingSegment_;e.part&&e.part.syncInfo?e.part.syncInfo.markAppended():e.segment.syncInfo&&e.segment.syncInfo.markAppended(),this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});const t=AP(e,this.sourceType_);if(t&&("warn"===t.severity?GL.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_))return void this.logger_(`Throwing away un-appended sync request ${SP(e)}`);this.logger_(`Appended ${SP(e)}`),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");const n=e.segment,i=e.part,r=n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration,a=i&&i.end&&this.currentTime_()-i.end>3*e.playlist.partTargetDuration;if(r||a)return this.logger_(`bad ${r?"segment":"part"} ${SP(e)}`),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(e){if(e.duration<bP)return void this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record 0.016666666666666666`);const t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,i=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(i-t)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;const t=e.segment,n=t.start,i=t.end;if(!vP(n)||!vP(i))return;dP(n,i,this.segmentMetadataTrack_);const r=fv.WebKitDataCue||fv.VTTCue,a={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,programDateTime:t.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.ur
97i,timeline:e.timeline,playlist:e.playlist.id,start:n,end:i},s=new r(n,i,JSON.stringify(a));s.value=a,this.segmentMetadataTrack_.addCue(s)}};H(LP,"SegmentLoader");let IP=LP;function $P(){}H($P,"noop$1");const DP=H((function(e){return"string"!=typeof e?e:e.replace(/./,(e=>e.toUpperCase()))}),"toTitleCase"),PP=["video","audio"],OP=H(((e,t)=>{const n=t[`${e}Buffer`];return n&&n.updating||t.queuePending[e]}),"updating"),MP=H(((e,t)=>{for(let n=0;n<t.length;n++){const i=t[n];if("mediaSource"===i.type)return null;if(i.type===e)return n}return null}),"nextQueueIndexOfType"),RP=H(((e,t)=>{if(0===t.queue.length)return;let n=0,i=t.queue[n];if("mediaSource"!==i.type){if("mediaSource"!==e&&t.ready()&&"closed"!==t.mediaSource.readyState&&!OP(e,t)){if(i.type!==e){if(n=MP(e,t.queue),null===n)return;i=t.queue[n]}return t.queue.splice(n,1),t.queuePending[e]=i,i.action(e,t),i.doneFn?void 0:(t.queuePending[e]=null,void RP(e,t))}}else t.updating()||"closed"===t.mediaSource.readyState||(t.queue.shift(),i.action(t),i.doneFn&&i.doneFn(),RP("audio",t),RP("video",t))}),"shiftQueue"),NP=H(((e,t)=>{const n=t[`${e}Buffer`],i=DP(e);n&&(n.removeEventListener("updateend",t[`on${i}UpdateEnd_`]),n.removeEventListener("error",t[`on${i}Error_`]),t.codecs[e]=null,t[`${e}Buffer`]=null)}),"cleanupBuffer"),FP=H(((e,t)=>e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)),"inSourceBuffers"),BP={appendBuffer:H(((e,t,n)=>(i,r)=>{const a=r[`${i}Buffer`];if(FP(r.mediaSource,a)){r.logger_(`Appending segment ${t.mediaIndex}'s ${e.length} bytes to ${i}Buffer`);try{a.appendBuffer(e)}catch(tvt){r.logger_(`Error with code ${tvt.code} `+(22===tvt.code?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${t.mediaIndex} to ${i}Buffer`),r.queuePending[i]=null,n(tvt)}}}),"appendBuffer"),remove:H(((e,t)=>(n,i)=>{const r=i[`${n}Buffer`];if(FP(i.mediaSource,r)){i.logger_(`Removing ${e} to ${t} from ${n}Buffer`);try{r.remove(e,t)}catch(tvt){i.logger_(`Remove ${e} to ${t} from ${n}Buffer failed`)}}}),"remove"),timestampOffset:H((e=>(t,n)=>{const i=n[`${t}Buffer`];FP(n.mediaSource,i)&&(n.logger_(`Setting ${t}timestampOffset to ${e}`),i.timestampOffset=e)}),"timestampOffset"),callback:H((e=>(t,n)=>{e()}),"callback"),endOfStream:H((e=>t=>{if("open"===t.mediaSource.readyState){t.logger_(`Calling mediaSource endOfStream(${e||""})`);try{t.mediaSource.endOfStream(e)}catch(tvt){GL.log.warn("Failed to call media source endOfStream",tvt)}}}),"endOfStream"),duration:H((e=>t=>{t.logger_(`Setting mediaSource duration to ${e}`);try{t.mediaSource.duration=e}catch(tvt){GL.log.warn("Failed to set media source duration",tvt)}}),"duration"),abort:H((()=>(e,t)=>{if("open"!==t.mediaSource.readyState)return;const n=t[`${e}Buffer`];if(FP(t.mediaSource,n)){t.logger_(`calling abort on ${e}Buffer`);try{n.abort()}catch(tvt){GL.log.warn(`Failed to abort on ${e}Buffer`,tvt)}}}),"abort"),addSourceBuffer:H(((e,t)=>n=>{const i=DP(e),r=Pb(t);n.logger_(`Adding ${e}Buffer with codec ${t} to mediaSource`);const a=n.mediaSource.addSourceBuffer(r);a.addEventListener("updateend",n[`on${i}UpdateEnd_`]),a.addEventListener("error",n[`on${i}Error_`]),n.codecs[e]=t,n[`${e}Buffer`]=a}),"addSourceBuffer"),removeSourceBuffer:H((e=>t=>{const n=t[`${e}Buffer`];if(NP(e,t),FP(t.mediaSource,n)){t.logger_(`Removing ${e}Buffer with codec ${t.codecs[e]} from mediaSource`);try{t.mediaSource.removeSourceBuffer(n)}catch(tvt){GL.log.warn(`Failed to removeSourceBuffer ${e}Buffer`,tvt)}}}),"removeSourceBuffer"),changeType:H((e=>(t,n)=>{const i=n[`${t}Buffer`],r=Pb(e);if(!FP(n.mediaSource,i))return;const a=e.substring(0,e.indexOf(".")),s=n.codecs[t];if(s.substring(0,s.indexOf("."))!==a){n.logger_(`changing ${t}Buffer codec from ${n.codecs[t]} to ${e}`);try{i.changeType(r),n.codecs[t]=e}catch(tvt){GL.log.warn(`Failed to changeType on ${t}Buffer`,tvt)}}}),"changeType")},HP=H((({type:e,sourceUpdater:t,action:n,doneFn:i,name:r})=>{t.queue.push({type:e,action:n,doneFn:i,name:r}),RP(e,t)}),"pushQueue"),jP=H(((e,t)=>n=>{const i=sI(t[`${e}Buffered`]());if(t.logger_(`received "updateend" event for ${e} Source Buffer: `,i),t.queuePending[e]){const n=t.queuePending[e].doneFn;t.queuePending[e]=null,n&&n(t[`${e}Error_`])}RP(e,t)}),"onUpdateend"),UP=class extends GL.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>RP("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=iI("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=jP("video",this),this.onAudioUpdateEnd_=jP("audio",this),this.onVideoError_=e=>{this.videoError_=e},this.onAudioError_=e=>{this.audioError_=e},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}
97triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,t){HP({type:"mediaSource",sourceUpdater:this,action:BP.addSourceBuffer(e,t),name:"addSourceBuffer"})}abort(e){HP({type:e,sourceUpdater:this,action:BP.abort(e),name:"abort"})}removeSourceBuffer(e){this.canRemoveSourceBuffer()?HP({type:"mediaSource",sourceUpdater:this,action:BP.removeSourceBuffer(e),name:"removeSourceBuffer"}):GL.log.error("removeSourceBuffer is not supported!")}canRemoveSourceBuffer(){return!GL.browser.IS_FIREFOX&&fv.MediaSource&&fv.MediaSource.prototype&&"function"==typeof fv.MediaSource.prototype.removeSourceBuffer}static canChangeType(){return fv.SourceBuffer&&fv.SourceBuffer.prototype&&"function"==typeof fv.SourceBuffer.prototype.changeType}canChangeType(){return this.constructor.canChangeType()}changeType(e,t){this.canChangeType()?HP({type:e,sourceUpdater:this,action:BP.changeType(t),name:"changeType"}):GL.log.error("changeType is not supported!")}addOrChangeSourceBuffers(e){if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach((t=>{const n=e[t];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(t,n);this.canChangeType()&&this.changeType(t,n)}))}appendBuffer(e,t){const{segmentInfo:n,type:i,bytes:r}=e;if(this.processedAppend_=!0,"audio"===i&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_(`delayed audio append of ${r.length} until video append`);const a=t;if(HP({type:i,sourceUpdater:this,action:BP.appendBuffer(r,n||{mediaIndex:-1},a),doneFn:t,name:"appendBuffer"}),"video"===i){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const e=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${e.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,e.forEach((e=>{this.appendBuffer.apply(this,e)}))}}audioBuffered(){return FP(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:aI()}videoBuffered(){return FP(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:aI()}buffered(){const e=FP(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=FP(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():hI(this.audioBuffered(),this.videoBuffered())}setDuration(e,t=$P){HP({type:"mediaSource",sourceUpdater:this,action:BP.duration(e),name:"duration",doneFn:t})}endOfStream(e=null,t=$P){"string"!=typeof e&&(e=void 0),HP({type:"mediaSource",sourceUpdater:this,action:BP.endOfStream(e),name:"endOfStream",doneFn:t})}removeAudio(e,t,n=$P){this.audioBuffered().length&&0!==this.audioBuffered().end(0)?HP({type:"audio",sourceUpdater:this,action:BP.remove(e,t),doneFn:n,name:"remove"}):n()}removeVideo(e,t,n=$P){this.videoBuffered().length&&0!==this.videoBuffered().end(0)?HP({type:"video",sourceUpdater:this,action:BP.remove(e,t),doneFn:n,name:"remove"}):n()}updating(){return!(!OP("audio",this)&&!OP("video",this))}audioTimestampOffset(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(HP({type:"audio",sourceUpdater:this,action:BP.timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(HP({type:"video",sourceUpdater:this,action:BP.timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&HP({type:"audio",sourceUpdater:this,action:BP.callback(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&HP({type:"video",sourceUpdater:this,action:BP.callback(e),name:"callback"})}dispose(){this.trigger("dispose"),PP.forEach((e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`]((()=>NP(e,this)))})),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}};H(UP,"SourceUpdater");let VP=UP;const qP=H((e=>decodeURIComponent(escape(String.fromCharCode.apply(null,e)))),"uint8ToUtf8"),zP=H((e=>{const t=new Uint8Array(e);return Array.from(t).map((e=>e.toString(16).padStart(2,"0"))).join("")}
97),"bufferToHexString"),WP=new Uint8Array("\n\n".split("").map((e=>e.charCodeAt(0)))),GP=class extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}};H(GP,"NoVttJsError");let KP=GP;const YP=class extends IP{constructor(e,t={}){super(e,t),this.mediaSource_=null,this.subtitlesTrack_=null,this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}createTransmuxer_(){return null}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return aI();const e=this.subtitlesTrack_.cues;return aI([[e[0].startTime,e[e.length-1].startTime]])}initSegmentForMap(e,t=!1){if(!e)return null;const n=k$(e);let i=this.initSegments_[n];if(t&&!i&&e.bytes){const t=WP.byteLength+e.bytes.byteLength,r=new Uint8Array(t);r.set(e.bytes),r.set(WP,e.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:r}}return i||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}remove(e,t){dP(e,t,this.subtitlesTrack_)}fillBuffer_(){const e=this.chooseNextRequest_();if(e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){const e=H((()=>{this.state="READY",this.paused()||this.monitorBuffer_()}),"checkTimestampOffset");return this.syncController_.one("timestampoffset",e),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,t,n){if(!this.subtitlesTrack_)return void(this.state="READY");if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===bD&&this.handleTimeout_(),e.code===_D?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);const i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");const r=i.segment;if(r.map&&(r.map.bytes=t.map.bytes),i.bytes=t.bytes,"function"!=typeof fv.WebVTT&&"function"==typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then((()=>this.segmentRequestFinished_(e,t,n)),(()=>this.stopForError({message:"Error loading vtt.js",metadata:{errorType:GL.Error.VttLoadError}})));r.requested=!0;try{this.parseVTTCues_(i)}catch(tvt){return void this.stopForError({message:tvt.message,metadata:{errorType:GL.Error.VttCueParsingError}})}if(this.updateTimeMapping_(i,this.syncController_.timelines[i.timeline],this.playlist_),i.cues.length?i.timingInfo={start:i.cues[0].startTime,end:i.cues[i.cues.length-1].endTime}:i.timingInfo={start:i.startOfSegment,end:i.startOfSegment+i.duration},i.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");i.byteLength=i.bytes.byteLength,this.mediaSecondsLoaded+=r.duration,i.cues.forEach((e=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new fv.VTTCue(e.startTime,e.endTime,e.text):e)})),pP(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(){}updateTimingInfoEnd_(){}parseVTTCues_(e){let t,n=!1;if("function"!=typeof fv.WebVTT)throw new KP;"function"==typeof fv.TextDecoder?t=new fv.TextDecoder("utf8"):(t=fv.WebVTT.StringDecoder(),n=!0);const i=new fv.WebVTT.Parser(fv,fv.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=e.cues.push.bind(e.cues),i.ontimestampmap=t=>{e.timestampmap=t},i.onparsingerror=e=>{GL.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){let t=e.segment.map.bytes;n&&(t=qP(t)),i.parse(t)}let r=e.bytes;n&&(r=qP(r)),i.parse(r),i.flush()}updateTimeMapping_(e,t,n){const i=e.segment;if(!t)return;if(!e.cues.length)return void(i.empty=!0);const{MPEGTS:r,LOCAL:a}=e.timestampmap,s=r/AS.ONE_SECOND_IN_TS-a+t.mapping;
97if(e.cues.forEach((e=>{const n=e.endTime-e.startTime,i=0===r?e.startTime+s:this.handleRollover_(e.startTime+s,t.time);e.startTime=Math.max(i,0),e.endTime=Math.max(i+n,0)})),!n.syncInfo){const t=e.cues[0].startTime,r=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(t,r-i.duration)}}}handleRollover_(e,t){if(null===t)return e;let n=e*AS.ONE_SECOND_IN_TS;const i=t*AS.ONE_SECOND_IN_TS;let r;for(r=i<n?-8589934592:8589934592;Math.abs(n-i)>4294967296;)n+=r;return n/AS.ONE_SECOND_IN_TS}};H(YP,"VTTSegmentLoader");let ZP=YP;const XP=H((function(e,t){const n=e.cues;for(let i=0;i<n.length;i++){const e=n[i];if(t>=e.adStartTime&&t<=e.adEndTime)return e}return null}),"findAdCue"),QP=H((function(e,t,n=0){if(!e.segments)return;let i,r=n;for(let a=0;a<e.segments.length;a++){const n=e.segments[a];if(i||(i=XP(t,r+n.duration/2)),i){if("cueIn"in n){i.endTime=r,i.adEndTime=r,r+=n.duration,i=null;continue}if(r<i.endTime){r+=n.duration;continue}i.endTime+=n.duration}else if("cueOut"in n&&(i=new fv.VTTCue(r,r+n.duration,n.cueOut),i.adStartTime=r,i.adEndTime=r+parseFloat(n.cueOut),t.addCue(i)),"cueOutCont"in n){const[e,a]=n.cueOutCont.split("/").map(parseFloat);i=new fv.VTTCue(r,r+n.duration,""),i.adStartTime=r-e,i.adEndTime=i.adStartTime+a,t.addCue(i)}r+=n.duration}}),"updateAdCues"),JP=class{constructor({start:e,end:t,segmentIndex:n,partIndex:i=null,appended:r=!1}){this.start_=e,this.end_=t,this.segmentIndex_=n,this.partIndex_=i,this.appended_=r}isInRange(e){return e>=this.start&&e<this.end}markAppended(){this.appended_=!0}resetAppendedStatus(){this.appended_=!1}get isAppended(){return this.appended_}get start(){return this.start_}get end(){return this.end_}get segmentIndex(){return this.segmentIndex_}get partIndex(){return this.partIndex_}};H(JP,"SyncInfo");let eO=JP;const tO=class{constructor(e,t=[]){this.segmentSyncInfo_=e,this.partsSyncInfo_=t}get segmentSyncInfo(){return this.segmentSyncInfo_}get partsSyncInfo(){return this.partsSyncInfo_}get hasPartsSyncInfo(){return this.partsSyncInfo_.length>0}resetAppendStatus(){this.segmentSyncInfo_.resetAppendedStatus(),this.partsSyncInfo_.forEach((e=>e.resetAppendedStatus()))}};H(tO,"SyncInfoData");let nO=tO;const iO=class{constructor(){this.storage_=new Map,this.diagnostics_="",this.isReliable_=!1,this.start_=-1/0,this.end_=1/0}get start(){return this.start_}get end(){return this.end_}get diagnostics(){return this.diagnostics_}get isReliable(){return this.isReliable_}resetAppendedStatus(){this.storage_.forEach((e=>e.resetAppendStatus()))}update(e,t){const{mediaSequence:n,segments:i}=e;if(this.isReliable_=this.isReliablePlaylist_(n,i),this.isReliable_)return this.updateStorage_(i,n,this.calculateBaseTime_(n,t))}getSyncInfoForTime(e){for(const{segmentSyncInfo:t,partsSyncInfo:n}of this.storage_.values())if(n.length){for(const i of n)if(i.isInRange(e))return i}else if(t.isInRange(e))return t;return null}updateStorage_(e,t,n){const i=new Map;let r="\n",a=n,s=t;this.start_=a,e.forEach(((e,t)=>{const n=this.storage_.get(s),o=a,l=o+e.duration,u=Boolean(n&&n.segmentSyncInfo&&n.segmentSyncInfo.isAppended),c=new eO({start:o,end:l,appended:u,segmentIndex:t});e.syncInfo=c;let d=a;const p=(e.parts||[]).map(((e,i)=>{const a=d,o=d+e.duration,l=Boolean(n&&n.partsSyncInfo&&n.partsSyncInfo[i]&&n.partsSyncInfo[i].isAppended),u=new eO({start:a,end:o,appended:l,segmentIndex:t,partIndex:i});return d=o,r+=`Media Sequence: ${s}.${i} | Range: ${a} --\x3e ${o} | Appended: ${l}\n`,e.syncInfo=u,u}));i.set(s,new nO(c,p)),r+=`${nP(e.resolvedUri)} | Media Sequence: ${s} | Range: ${o} --\x3e ${l} | Appended: ${u}\n`,s++,a=l})),this.end_=a,this.storage_=i,this.diagnostics_=r}calculateBaseTime_(e,t){return this.storage_.size?this.storage_.has(e)?this.storage_.get(e).segmentSyncInfo.start:t:0}isReliablePlaylist_(e,t){return null!=e&&Array.isArray(t)&&t.length}};H(iO,"MediaSequenceSync");let rO=iO;const aO=[{name:"VOD",run:H(((e,t,n,i,r)=>{if(n!==1/0){return{time:0,segmentIndex:0,partIndex:null}}return null}),"run")},{name:"MediaSequence",run:H(((e,t,n,i,r,a)=>{const s=e.getMediaSequenceSync(a);if(!s)return null;if(!s.isReliable)return null;
97const o=s.getSyncInfoForTime(r);return o?{time:o.start,partIndex:o.partIndex,segmentIndex:o.segmentIndex}:null}),"run")},{name:"ProgramDateTime",run:H(((e,t,n,i,r)=>{if(!Object.keys(e.timelineToDatetimeMappings).length)return null;let a=null,s=null;const o=wI(t);r=r||0;for(let l=0;l<o.length;l++){const n=o[t.endList||0===r?l:o.length-(l+1)],i=n.segment,u=e.timelineToDatetimeMappings[i.timeline];if(!u||!i.dateTimeObject)continue;let c=i.dateTimeObject.getTime()/1e3+u;if(i.parts&&"number"==typeof n.partIndex)for(let e=0;e<n.partIndex;e++)c+=i.parts[e].duration;const d=Math.abs(r-c);if(null!==s&&(0===d||s<d))break;s=d,a={time:c,segmentIndex:n.segmentIndex,partIndex:n.partIndex}}return a}),"run")},{name:"Segment",run:H(((e,t,n,i,r)=>{let a=null,s=null;r=r||0;const o=wI(t);for(let l=0;l<o.length;l++){const e=o[t.endList||0===r?l:o.length-(l+1)],n=e.segment,u=e.part&&e.part.start||n&&n.start;if(n.timeline===i&&void 0!==u){const t=Math.abs(r-u);if(null!==s&&s<t)break;(!a||null===s||s>=t)&&(s=t,a={time:u,segmentIndex:e.segmentIndex,partIndex:e.partIndex})}}return a}),"run")},{name:"Discontinuity",run:H(((e,t,n,i,r)=>{let a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length){let n=null;for(let i=0;i<t.discontinuityStarts.length;i++){const s=t.discontinuityStarts[i],o=t.discontinuitySequence+i+1,l=e.discontinuities[o];if(l){const e=Math.abs(r-l.time);if(null!==n&&n<e)break;(!a||null===n||n>=e)&&(n=e,a={time:l.time,segmentIndex:s,partIndex:null})}}}return a}),"run")},{name:"Playlist",run:H(((e,t,n,i,r)=>{if(t.syncInfo){return{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}}return null}),"run")}],sO=class extends GL.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={},this.mediaSequenceStorage_={main:new rO,audio:new rO,vtt:new rO},this.logger_=iI("SyncController")}getMediaSequenceSync(e){return this.mediaSequenceStorage_[e]||null}getSyncPoint(e,t,n,i,r){if(t!==1/0){return aO.find((({name:e})=>"VOD"===e)).run(this,e,t)}const a=this.runStrategies_(e,t,n,i,r);if(!a.length)return null;for(const s of a){const{syncPoint:t,strategy:n}=s,{segmentIndex:r,time:a}=t;if(r<0)continue;const o=a,l=o+e.segments[r].duration;if(this.logger_(`Strategy: ${n}. Current time: ${i}. selected segment: ${r}. Time: [${o} -> ${l}]}`),i>=o&&i<l)return this.logger_("Found sync point with exact match: ",t),t}return this.selectSyncPoint_(a,{key:"time",value:i})}getExpiredTime(e,t){if(!e||!e.segments)return null;const n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;const i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+LI({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:i.segmentIndex,endIndex:0}))}runStrategies_(e,t,n,i,r){const a=[];for(let s=0;s<aO.length;s++){const o=aO[s],l=o.run(this,e,t,n,i,r);l&&(l.strategy=o.name,a.push({strategy:o.name,syncPoint:l}))}return a}selectSyncPoint_(e,t){let n=e[0].syncPoint,i=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy;for(let a=1;a<e.length;a++){const s=Math.abs(e[a].syncPoint[t.key]-t.value);s<i&&(i=s,n=e[a].syncPoint,r=e[a].strategy)}return this.logger_(`syncPoint for [${t.key}: ${t.value}] chosen with strategy [${r}]: [time:${n.time}, segmentIndex:${n.segmentIndex}`+("number"==typeof n.partIndex?`,partIndex:${n.partIndex}`:"")+"]"),n}saveExpiredSegmentInfo(e,t){const n=t.mediaSequence-e.mediaSequence;if(n>86400)GL.log.warn(`Not saving expired segment info. Media sequence gap ${n} is too large.`);else for(let i=n-1;i>=0;i--){const n=e.segments[i];if(n&&void 0!==n.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:n.start},this.logger_(`playlist refresh sync: [time:${t.syncInfo.time}, mediaSequence: ${t.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){const t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:t}){const n=this.calculateSegmentTimeMapping_(e,e.timingInfo,t),i=e.segment;n&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:i.start}));const r=i.dateTimeObject;i.discontinuity&&t&&r&&(this.timelineToDatetimeMappings[i.timeline]=-r.getTime()/1e3)}timestampOffsetForTimeline(e){return void 0===this.timelines[e]?null:this.timelines[e].time}mappingForTimeline(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,t,n){const i=e.segment,r=e.part;let a,s,o=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${o.time}] [mapping: ${o.mapping}]`)),a=e.startOfSegment,s=t.end+o.mapping;else{if(!o)return!1;a=t.start+o.mapping,s=t.end+o.mapping}return r&&(r.start=a,r.end=s),(!i.start||a<i.start)&&(i.start=a),i.end=s,!0}saveDiscontinuitySyncInfo_(e){const t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(let i=0;i<t.discontinuityStarts.length;i++){const r=t.discontinuityStarts[i],a=t.discontinuitySequence+i+1,s=r-e.mediaIndex,o=Math.abs(s);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>o){let i;i=s<0?n.start-LI({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):n.end+LI({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[a]={time:i,accuracy:o}}}}dispose(){this.trigger("dispose"),this.off()}};H(sO,"SyncController");let oO=sO;const lO=class extends GL.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:t,to:n}){return"number"==typeof t&&"number"==typeof n&&(this.pendingTimelineChanges_[e]={type:e,from:t,to:n},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:t,to:n}){return"number"==typeof t&&"number"==typeof n&&(this.lastTimelineChanges_[e]={type:e,from:t,to:n},delete this.pendingTimelineChanges_[e],this.trigger("timelinechange")),this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}};H(lO,"TimelineChangeController");let uO=lO;const cO=nD(iD((function(){var e=function(){function e(){this.listeners={}}H(e,"Stream");var t=e.prototype;return t.on=H((function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}),"on"),t.off=H((function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1}),"off"),t.trigger=H((function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);
97else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,r)}),"trigger"),t.dispose=H((function(){this.listeners={}}),"dispose"),t.pipe=H((function(e){this.on("data",(function(t){e.push(t)}))}),"pipe"),e}(); 98 /*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */function t(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}H(t,"unpad"); 99 /*! @name aes-decrypter @version 4.0.1 @license Apache-2.0 */ 100 const n=H((function(){const e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],n=e[1],i=t[4],r=n[4];let a,s,o;const l=[],u=[];let c,d,p,h,f,m;for(a=0;a<256;a++)u[(l[a]=a<<1^283*(a>>7))^a]=a;for(s=o=0;!i[s];s^=c||1,o=u[o]||1)for(h=o^o<<1^o<<2^o<<3^o<<4,h=h>>8^255&h^99,i[s]=h,r[h]=s,p=l[d=l[c=l[s]]],m=16843009*p^65537*d^257*c^16843008*s,f=257*l[h]^16843008*h,a=0;a<4;a++)t[a][s]=f=f<<24^f>>>8,n[a][h]=m=m<<24^m>>>8;for(a=0;a<5;a++)t[a]=t[a].slice(0),n[a]=n[a].slice(0);return e}),"precompute");let i=null;const r=class{constructor(e){let t,r,a;i||(i=n()),this._tables=[[i[0][0].slice(),i[0][1].slice(),i[0][2].slice(),i[0][3].slice(),i[0][4].slice()],[i[1][0].slice(),i[1][1].slice(),i[1][2].slice(),i[1][3].slice(),i[1][4].slice()]];const s=this._tables[0][4],o=this._tables[1],l=e.length;let u=1;if(4!==l&&6!==l&&8!==l)throw new Error("Invalid aes key size");const c=e.slice(0),d=[];for(this._key=[c,d],t=l;t<4*l+28;t++)a=c[t-1],(t%l==0||8===l&&t%l==4)&&(a=s[a>>>24]<<24^s[a>>16&255]<<16^s[a>>8&255]<<8^s[255&a],t%l==0&&(a=a<<8^a>>>24^u<<24,u=u<<1^283*(u>>7))),c[t]=c[t-l]^a;for(r=0;t;r++,t--)a=c[3&r?t:t-4],d[r]=t<=4||r<4?a:o[0][s[a>>>24]]^o[1][s[a>>16&255]]^o[2][s[a>>8&255]]^o[3][s[255&a]]}decrypt(e,t,n,i,r,a){const s=this._key[1];let o,l,u,c=e^s[0],d=i^s[1],p=n^s[2],h=t^s[3];const f=s.length/4-2;let m,g=4;const y=this._tables[1],v=y[0],b=y[1],_=y[2],w=y[3],S=y[4];for(m=0;m<f;m++)o=v[c>>>24]^b[d>>16&255]^_[p>>8&255]^w[255&h]^s[g],l=v[d>>>24]^b[p>>16&255]^_[h>>8&255]^w[255&c]^s[g+1],u=v[p>>>24]^b[h>>16&255]^_[c>>8&255]^w[255&d]^s[g+2],h=v[h>>>24]^b[c>>16&255]^_[d>>8&255]^w[255&p]^s[g+3],g+=4,c=o,d=l,p=u;for(m=0;m<4;m++)r[(3&-m)+a]=S[c>>>24]<<24^S[d>>16&255]<<16^S[p>>8&255]<<8^S[255&h]^s[g++],o=c,c=d,d=p,p=h,h=o}};H(r,"AES");let a=r;const s=class extends e{constructor(){super(e),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}};H(s,"AsyncStream");let o=s;const l=H((function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24}),"ntoh"),u=H((function(e,t,n){const i=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),r=new a(Array.prototype.slice.call(t)),s=new Uint8Array(e.byteLength),o=new Int32Array(s.buffer);let u,c,d,p,h,f,m,g,y;for(u=n[0],c=n[1],d=n[2],p=n[3],y=0;y<i.length;y+=4)h=l(i[y]),f=l(i[y+1]),m=l(i[y+2]),g=l(i[y+3]),r.decrypt(h,f,m,g,o,y),o[y]=l(o[y]^u),o[y+1]=l(o[y+1]^c),o[y+2]=l(o[y+2]^d),o[y+3]=l(o[y+3]^p),u=h,c=f,d=m,p=g;return s}),"decrypt"),c=class e{constructor(n,i,r,a){const s=e.STEP,u=new Int32Array(n.buffer),c=new Uint8Array(n.byteLength);let d=0;for(this.asyncStream_=new o,this.asyncStream_.push(this.decryptChunk_(u.subarray(d,d+s),i,r,c)),d=s;d<u.length;d+=s)r=new Uint32Array([l(u[d-4]),l(u[d-3]),l(u[d-2]),l(u[d-1])]),this.asyncStream_.push(this.decryptChunk_(u.subarray(d,d+s),i,r,c));this.asyncStream_.push((function(){a(null,t(c))}))}static get STEP(){return 32e3}decryptChunk_(e,t,n,i){return function(){const r=u(e,t,n);i.set(r,e.byteOffset)}}};H(c,"Decrypter");let d=c;var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h="undefined"!=typeof window?window:void 0!==p?p:"undefined"!=typeof self?self:{},f=H((function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer}),"isArrayBufferView"),m=h.BigInt||Number;m("0x1"),m("0x100"),m("0x10000"),m("0x1000000"),m("0x100000000"),m("0x10000000000"),m("0x1000000000000"),m("0x100000000000000"),m("0x10000000000000000"),function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}();const g=H((function(e){const t={};return Object.keys(e).forEach((n=>{const i=e[n];f(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i})),t}),"createTransferableMessage");self.onmessage=function(e){const t=e.data,n=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),i=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),r=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new d(n,i,r,(function(e,n){self.postMessage(g({source:t.source,decrypted:n}),[n.buffer])}))}})));var dO=tD(cO);const pO=H((e=>{let t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t}),"audioTrackKind_"),hO=H(((e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)}),"stopLoaders"),fO=H(((e,t)=>{t.activePlaylistLoader=e,e.load()}),"startLoaders"),mO=H(((e,t)=>()=>{const{segmentLoaders:{[e]:n,main:i},mediaTypes:{[e]:r}}=t,a=r.activeTrack(),s=r.getActiveGroup(),o=r.activePlaylistLoader,l=r.lastGroup_;s&&l&&s.id===l.id||(r.lastGroup_=s,r.lastTrack_=a,hO(n,r),s&&!s.isMainPlaylist&&(s.playlistLoader?(n.resyncLoader(),fO(s.playlistLoader,r)):o&&i.resetEverything()))}),"onGroupChanged"),gO=H(((e,t)=>()=>{const{segmentLoaders:{[e]:n},mediaTypes:{[e]:i}}=t;i.lastGroup_=null,n.abort(),n.pause()}),"onGroupChanging"),yO=H(((e,t)=>()=>{const{mainPlaylistLoader:n,segmentLoaders:{[e]:i,main:r},mediaTypes:{[e]:a}}=t,s=a.activeTrack(),o=a.getActiveGroup(),l=a.activePlaylistLoader,u=a.lastTrack_;
vendor: 4,170 bytes, line 100
100if((!u||!s||u.id!==s.id)&&(a.lastGroup_=o,a.lastTrack_=s,hO(i,a),o)){if(o.isMainPlaylist){if(!s||!u||s.id===u.id)return;const e=t.vhs.playlistController_,i=e.selectPlaylist();if(e.media()===i)return;return a.logger_(`track change. Switching main audio from ${u.id} to ${s.id}`),n.pause(),r.resetEverything(),void e.fastQualityChange_(i)}if("AUDIO"===e){if(!o.playlistLoader)return r.setAudio(!0),void r.resetEverything();i.setAudio(!0),r.setAudio(!1)}l!==o.playlistLoader?(i.track&&i.track(s),i.resetEverything(),fO(o.playlistLoader,a)):fO(o.playlistLoader,a)}}),"onTrackChanged"),vO={AUDIO:H(((e,t)=>()=>{const{mediaTypes:{[e]:n},excludePlaylist:i}=t,r=n.activeTrack(),a=n.activeGroup(),s=(a.filter((e=>e.default))[0]||a[0]).id,o=n.tracks[s];if(r!==o){GL.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const e in n.tracks)n.tracks[e].enabled=n.tracks[e]===o;n.onTrackChanged()}else i({error:{message:"Problem encountered loading the default audio track."}})}),"AUDIO"),SUBTITLES:H(((e,t)=>()=>{const{mediaTypes:{[e]:n}}=t;GL.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const i=n.activeTrack();i&&(i.mode="disabled"),n.onTrackChanged()}),"SUBTITLES")},bO={AUDIO:H(((e,t,n)=>{if(!t)return;const{tech:i,requestOptions:r,segmentLoaders:{[e]:a}}=n;t.on("loadedmetadata",(()=>{const e=t.media();a.playlist(e,r),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()})),t.on("loadedplaylist",(()=>{a.playlist(t.media(),r),i.paused()||a.load()})),t.on("error",vO[e](e,n))}),"AUDIO"),SUBTITLES:H(((e,t,n)=>{const{tech:i,requestOptions:r,segmentLoaders:{[e]:a},mediaTypes:{[e]:s}}=n;t.on("loadedmetadata",(()=>{const e=t.media();a.playlist(e,r),a.track(s.activeTrack()),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()})),t.on("loadedplaylist",(()=>{a.playlist(t.media(),r),i.paused()||a.load()})),t.on("error",vO[e](e,n))}),"SUBTITLES")},_O={AUDIO:H(((e,t)=>{const{vhs:n,sourceType:i,segmentLoaders:{[e]:r},requestOptions:a,main:{mediaGroups:s},mediaTypes:{[e]:{groups:o,tracks:l,logger_:u}},mainPlaylistLoader:c}=t,d=VI(c.main);s[e]&&0!==Object.keys(s[e]).length||(s[e]={main:{default:{default:!0}}},d&&(s[e].main.default.playlists=c.main.playlists));for(const p in s[e]){o[p]||(o[p]=[]);for(const r in s[e][p]){let h,f=s[e][p][r];if(d?(u(`AUDIO group '${p}' label '${r}' is a main playlist`),f.isMainPlaylist=!0,h=null):h="vhs-json"===i&&f.playlists?new h$(f.playlists[0],n,a):f.resolvedUri?new h$(f.resolvedUri,n,a):f.playlists&&"dash"===i?new Z$(f.playlists[0],n,a,c):null,f=rI({id:r,playlistLoader:h},f),bO[e](e,f.playlistLoader,t),o[p].push(f),void 0===l[r]){const e=new GL.AudioTrack({id:r,kind:pO(f),enabled:!1,language:f.language,default:f.default,label:r});l[r]=e}}}r.on("error",vO[e](e,t))}),"AUDIO"),SUBTITLES:H(((e,t)=>{const{tech:n,vhs:i,sourceType:r,segmentLoaders:{[e]:a},requestOptions:s,main:{mediaGroups:o},mediaTypes:{[e]:{groups:l,tracks:u}},mainPlaylistLoader:c}=t;for(const d in o[e]){l[d]||(l[d]=[]);for(const a in o[e][d]){if(!i.options_.useForcedSubtitles&&o[e][d][a].forced)continue;let p,h=o[e][d][a];if("hls"===r)p=new h$(h.resolvedUri,i,s);else if("dash"===r){if(!h.playlists.filter((e=>e.excludeUntil!==1/0)).length)return;p=new Z$(h.playlists[0],i,s,c)}else"vhs-json"===r&&(p=new h$(h.playlists?h.playlists[0]:h.resolvedUri,i,s));if(h=rI({id:a,playlistLoader:p},h),bO[e](e,h.playlistLoader,t),l[d].push(h),void 0===u[a]){const e=n.addRemoteTextTrack({id:a,kind:"subtitles",default:h.default&&h.autoselect,language:h.language,label:a},!1).track;u[a]=e}}}a.on("error",vO[e](e,t))}),"SUBTITLES"),"CLOSED-CAPTIONS":H(((e,t)=>{const{tech:n,main:{mediaGroups:i},mediaTypes:{[e]:{groups:r,tracks:a}}}=t;for(const s in i[e]){r[s]||(r[s]=[]);for(const t in i[e][s]){const o=i[e][s][t];if(!/^(?:CC|SERVICE)/.test(o.instreamId))continue;const l=n.options_.vhs&&n.options_.vhs.captionServices||{};let u={label:t,language:o.language,instreamId:o.instreamId,default:o.default&&o.autoselect};if(l[u.instreamId]&&(u=rI(u,l[u.instreamId])),void 0===u.default&&delete u.default,r[s].push(rI({id:t},o)),void 0===a[t]){const e=n.addRemoteTextTrack({id:u.instreamId,
100kind:"captions",default:u.default,language:u.language,label:u.label},!1).track;a[t]=e}}}}),"CLOSED-CAPTIONS")},wO=H(((e,t)=>{for(let n=0;n<e.length;n++){if(jI(t,e[n]))return!0;if(e[n].playlists&&wO(e[n].playlists,t))return!0}return!1}),"groupMatch"),SO=H(((e,t)=>n=>{const{mainPlaylistLoader:i,mediaTypes:{[e]:{groups:r}}}=t,a=i.media();if(!a)return null;let s=null;a.attributes[e]&&(s=r[a.attributes[e]]);const o=Object.keys(r);if(!s)if("AUDIO"===e&&o.length>1&&VI(t.main))for(let e=0;e<o.length;e++){const t=r[o[e]];if(wO(t,a)){s=t;break}}else r.main?s=r.main:1===o.length&&(s=r[o[0]]);return void 0===n?s:null!==n&&s&&s.filter((e=>e.id===n.id))[0]||null}),"activeGroup"),CO={AUDIO:H(((e,t)=>()=>{const{mediaTypes:{[e]:{tracks:n}}}=t;for(const e in n)if(n[e].enabled)return n[e];return null}),"AUDIO"),SUBTITLES:H(((e,t)=>()=>{const{mediaTypes:{[e]:{tracks:n}}}=t;for(const e in n)if("showing"===n[e].mode||"hidden"===n[e].mode)return n[e];return null}),"SUBTITLES")},kO=H(((e,{mediaTypes:t})=>()=>{const n=t[e].activeTrack();return n?t[e].activeGroup(n):null}),"getActiveGroup"),xO=H((e=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((t=>{_O[t](t,e)}));const{mediaTypes:t,mainPlaylistLoader:n,tech:i,vhs:r,segmentLoaders:{AUDIO:a,main:s}}=e;["AUDIO","SUBTITLES"].forEach((n=>{t[n].activeGroup=SO(n,e),t[n].activeTrack=CO[n](n,e),t[n].onGroupChanged=mO(n,e),t[n].onGroupChanging=gO(n,e),t[n].onTrackChanged=yO(n,e),t[n].getActiveGroup=kO(n,e)}));const o=t.AUDIO.activeGroup();if(o){const e=(o.filter((e=>e.default))[0]||o[0]).id;t.AUDIO.tracks[e].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged();t.AUDIO.getActiveGroup().playlistLoader?(s.setAudio(!1),a.setAudio(!0)):s.setAudio(!0)}n.on("mediachange",(()=>{["AUDIO","SUBTITLES"].forEach((e=>t[e].onGroupChanged()))})),n.on("mediachanging",(()=>{["AUDIO","SUBTITLES"].forEach((e=>t[e].onGroupChanging()))}));const l=H((()=>{t.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"})}),"onAudioTrackChanged");i.audioTracks().addEventListener("change",l),i.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",(()=>{i.audioTracks().removeEventListener("change",l),i.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)})),i.clearTracks("audio");for(const u in t.AUDIO.tracks)i.audioTracks().addTrack(t.AUDIO.tracks[u])}),"setupMediaGroups"),TO=H((()=>{const e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((t=>{e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:$P,activeTrack:$P,getActiveGroup:$P,onGroupChanged:$P,onTrackChanged:$P,lastTrack_:null,logger_:iI(`MediaGroups[${t}]`)}})),e}),"createMediaTypes"),EO=class{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){1===e&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=tI(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map((e=>[e.ID,e]))))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}};H(EO,"SteeringManifest");let AO=EO;const LO=class extends GL.EventTarget{constructor(e,t){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new AO,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=iI("Content Steering"),this.xhr_=e,this.getBandwidth_=t}assignTagProperties(e,t){this.manifestType_=t.serverUri?"HLS":"DASH";const n=t.serverUri||t.serverURL;if(!n)return this.logger_(`steering manifest URL is ${n}, cannot request steering manifest.`),void this.trigger("error");n.startsWith("data:")?this.decodeDataUriManifest_(n.substring(n.indexOf(",")+1)):(this.steeringManifest.reloadUri=tI(e,n),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart,this.proxyServerUrl_=t.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering"))}requestSteeringManifest(e){const t=this.steeringManifest.reloadUri;if(!t)return;const n=e?t:this.getRequestURI(t);if(!n)return this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),void this.dispose();this.request_=this.xhr_({uri:n,requestType:"content-steering-manifest"},((e,t)=>{if(e){if(410===t.status)return this.logger_(`manifest request 410 ${e}.`),this.logger_(`There will be no more content steering requests to ${n} this session.`),void this.excludedSteeringManifestURLs.add(n);if(429===t.status){const n=t.responseHeaders["retry-after"];return this.logger_(`manifest request 429 ${e}.`),this.logger_(`content steering will retry in ${n} seconds.`),void this.startTTLTimeout_(parseInt(n,10))}return this.logger_(`manifest failed to load ${e}.`),void this.startTTLTimeout_()}const i=JSON.parse(this.request_.responseText);this.assignSteeringProperties_(i),this.startTTLTimeout_()}))}setProxyServerUrl_(e){const t=new fv.URL(e),n=new fv.URL(this.proxyServerUrl_);return n.searchParams.set("url",encodeURI(t.toString())),this.setSteeringParams_(n.toString())}decodeDataUriManifest_(e){const t=JSON.parse(fv.atob(e));this.assignSteeringProperties_(t)}setSteeringParams_(e){const t=new fv.URL(e),n=this.getPathway(),i=this.getBandwidth_();if(n){const e=`_${this.manifestType_}_pathway`;t.searchParams.set(e,n)}if(i){const e=`_${this.manifestType_}_throughput`;t.searchParams.set(e,i)}return t.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version)return this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),void this.trigger("error");this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for c
100ontent steering. Ending content steering."),this.trigger("error"),this.dispose());const t=H((e=>{for(const t of e)if(this.availablePathways_.has(t))return t;return[...this.availablePathways_][0]}),"chooseNextPathway")(this.steeringManifest.priority);this.currentPathway!==t&&(this.currentPathway=t,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;const t=H((e=>this.excludedSteeringManifestURLs.has(e)),"isExcluded");if(this.proxyServerUrl_){const n=this.setProxyServerUrl_(e);if(!t(n))return n}const n=this.setSteeringParams_(e);return t(n)?null:n}startTTLTimeout_(e=this.steeringManifest.ttl){const t=1e3*e;this.ttlTimeout_=fv.setTimeout((()=>{this.requestSteeringManifest()}),t)}clearTTLTimeout_(){fv.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new AO}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,t){return!t&&this.steeringManifest.reloadUri||t&&(tI(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}};H(LO,"ContentSteeringController");let IO=LO;let $O;const DO=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],PO=H((function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]}),"sumLoaderStat"),OO=H((function({currentPlaylist:e,buffered:t,currentTime:n,nextPlaylist:i,bufferLowWaterLine:r,bufferHighWaterLine:a,duration:s,bufferBasedABR:o,log:l}){if(!i)return GL.log.warn("We received no playlist to switch to. Please check your stream."),!1;const u=`allowing switch ${e&&e.id||"null"} -> ${i.id}`;if(!e)return l(`${u} as current playlist is not set`),!0;if(i.id===e.id)return!1;const c=Boolean(cI(t,n).length);if(!e.endList)return c||"number"!=typeof e.partTargetDuration?(l(`${u} as current playlist is live`),!0):(l(`not ${u} as current playlist is live llhls, but currentTime isn't in buffered.`),!1);const d=bI(t,n),p=o?X$.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:X$.MAX_BUFFER_LOW_WATER_LINE;if(s<p)return l(`${u} as duration < max low water line (${s} < ${p})`),!0;const h=i.attributes.BANDWIDTH,f=e.attributes.BANDWIDTH;if(h<f&&(!o||d<a)){let e=`${u} as next bandwidth < current bandwidth (${h} < ${f})`;return o&&(e+=` and forwardBuffer < bufferHighWaterLine (${d} < ${a})`),l(e),!0}if((!o||h>f)&&d>=r){let e=`${u} as forwardBuffer >= bufferLowWaterLine (${d} >= ${r})`;return o&&(e+=` and next bandwidth > current bandwidth (${h} > ${f})`),l(e),!0}return l(`not ${u} as no switching criteria met`),!1}),"shouldSwitchToMedia"),MO=class extends GL.EventTarget{constructor(e){super();const{src:t,withCredentials:n,tech:i,bandwidth:r,externVhs:a,useCueTags:s,playlistExclusionDuration:o,enableLowInitialPlaylist:l,sourceType:u,cacheEncryptionKeys:c,bufferBasedABR:d,leastPixelDiffSelector:p,captionServices:h}=e;if(!t)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:f}=e;null==f&&(f=1/0),$O=a,this.bufferBasedABR=Boolean(d),this.leastPixelDiffSelector=Boolean(p),this.withCredentials=n,this.tech_=i,this.vhs_=i.vhs,this.sourceType_=u,this.useCueTags_=s,this.playlistExclusionDuration=o,this.maxPlaylistRetries=f,this.enableLowInitialPlaylist=l,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:n,maxPlaylistRetries:f,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=TO(),this.mediaSource=new fv.MediaSource,this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.seekable_=aI(),this.hasPlayed_=!1,this.syncController_=new oO(e),this.segmentMetadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new dO,this.sourceUpdater_=new VP(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new uO,this.keyStatusMap_=new Map;const m={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:h,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:H((()=>this.seekable()),"seekable"),seeking:H((()=>this.tech_.seeking()),"seeking"),duration:H((()=>this.duration()),"duration"),hasPlayed:H((()=>this.hasPlayed_),"hasPlayed"),goalBufferLength:H((()=>this.goalBufferLength()),"goalBufferLength"),bandwidth:r,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:c,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_="dash"===this.sourceType_?new Z$(t,this.vhs_,rI(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new h$(t,this.vhs_,rI(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new IP(rI(m,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new IP(rI(m,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new ZP(rI(m,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:H((()=>new Promise(((e,t)=>{function n(){i.off("vttjserror",r),e()}function r(){i.off("vttjsloaded",n),t()}H(n,"onLoad"),H(r,"onError"),i.one("vttjsloaded",n),i.one("vttjserror",r),i.addWebVttScript_()}))),"loadVttJs")}),e);const g=H((()=>this.mainSegmentLoader_.bandwidth),"getBandwidth");this.contentSteeringController_=new IO(this.vhs_.xhr,g),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",(()=>this.startABRTimer_())),this.tech_.on("pause",(()=>this.stopABRTimer_())),this.tech_.on("play",(()=>this.startABRTimer_()))),DO.forEach((e=>{this[e+"_"]=PO.bind(this,e)})),this.logger_=iI("pc"),this.triggeredFmp4Usage=!1,"none"===this.tech_.preload()?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const y="none"===this.tech_.preload()?"play":"loadstart";this.tech_.one(y,(()=>{const e=Date.now();this.tech_.one("loadeddata",(()=>{this.timeToLoadedData__=Date.now()-e,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends}))}
vendor: 6,046 bytes, line 100
100))}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){const t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}switchMedia_(e,t,n){const i=this.media(),r=i&&(i.id||i.uri),a=e&&(e.id||e.uri);r&&r!==a&&(this.logger_(`switch media ${r} -> ${a} from ${t}`),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${t}`})),this.mainPlaylistLoader_.media(e,n)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((e=>{const t=this.mediaTypes_[e],n=t?t.activeGroup():null,i=this.contentSteeringController_.getPathway();if(n&&i){const t=(n.length?n[0].playlists:n.playlists).filter((e=>e.attributes.serviceLocation===i));t.length&&this.mediaTypes_[e].activePlaylistLoader.media(t[0])}}))}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=fv.setInterval((()=>this.checkABR_()),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(fv.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const e=this.main(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;const n=e.mediaGroups.AUDIO,i=Object.keys(n);let r;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)r=this.mediaTypes_.AUDIO.activeTrack();else{const e=n.main||i.length&&n[i[0]];for(const t in e)if(e[t].default){r={label:t};break}}if(!r)return t;const a=[];for(const s in n)if(n[s][r.label]){const t=n[s][r.label];if(t.playlists&&t.playlists.length)a.push.apply(a,t.playlists);else if(t.uri)a.push(t);else if(e.playlists.length)for(let n=0;n<e.playlists.length;n++){const t=e.playlists[n];t.attributes&&t.attributes.AUDIO&&t.attributes.AUDIO===s&&a.push(t)}}return a.length?a:t}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",(()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;HI(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,e.endList&&"none"!==this.tech_.preload()&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),xO({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",(()=>{this.trigger("selectedinitialmedia")}))})),this.mainPlaylistLoader_.on("loadedplaylist",(()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){let t;if(this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_(),this.enableLowInitialPlaylist&&(t=this.selectInitialPlaylist()),t||(t=this.selectPlaylist()),!t||!this.shouldSwitchToMedia_(t))return;this.initialMedia_=t,this.switchMedia_(this.initialMedia_,"initial");if(!("vhs-json"===this.sourceType_&&this.initialMedia_.segments))return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)})),this.mainPlaylistLoader_.on("error",(()=>{const e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})})),this.mainPlaylistLoader_.on("mediachanging",(()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()})),this.mainPlaylistLoader_.on("mediachange",(()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;HI(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,"dash"===this.sourceType_&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})})),this.mainPlaylistLoader_.on("playlistunchanged",(()=>{const e=this.mainPlaylistLoader_.media();if("playlist-unchanged"===e.lastExcludeReason_)return;this.stuckAtPlaylistEnd_(e)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))})),this.mainPlaylistLoader_.on("renditiondisabled",(()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})})),this.mainPlaylistLoader_.on("renditionenabled",(()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})}))}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,t){const n=e.mediaGroups||{};let i=!0;const r=Object.keys(n.AUDIO);for(const a in n.AUDIO)for(const e in n.AUDIO[a]){n.AUDIO[a][e].uri||(i=!1)}i&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(n.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),$O.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){const t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pen
vendor: 5,892 bytes, line 100
100dingMedia_,n=this.tech_.currentTime(),i=this.bufferLowWaterLine(),r=this.bufferHighWaterLine(),a=this.tech_.buffered();return OO({buffered:a,currentTime:n,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:i,bufferHighWaterLine:r,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",(()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("timeout",(()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()})),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",(()=>{this.trigger("progress")})),this.mainSegmentLoader_.on("error",(()=>{const e=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:e.playlist,error:e})})),this.mainSegmentLoader_.on("appenderror",(()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(()=>{this.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(()=>{this.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")})),this.mainSegmentLoader_.on("ended",(()=>{this.logger_("main segment loader ended"),this.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(e=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:10}))}));const e=H((()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const e=this.getCodecsOrExclude_();e&&this.sourceUpdater_.addOrChangeSourceBuffers(e)}),"updateCodecs");this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",(()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()}))}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}fastQualityChange_(e=this.selectPlaylist()){e&&e===this.mainPlaylistLoader_.media()?this.logger_("skipping fastQualityChange because new media is same as old"):(this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0)}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything((()=>{this.tech_.setCurrentTime(this.tech_.currentTime())}))}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}setupFirstPlay(){const e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){const t=this.seekable();if(!t.length)return!1;const n=t.end(0);let i=n;if(e.start){const r=e.start.timeOffset;i=r<0?Math.max(n+r,t.start(0)):Math.min(n,r)}this.trigger("firstplay"),this.tech_.setCurrentTime(i)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,(e=>{}))}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;const t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;const t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;const n=$O.Playlist.playlistEnd(e,t),i=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return n-i<=lI;const a=r.end(r.length-1);return a-i<=lI&&n-a<=lI}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:t={},playlistExclusionDuration:n}){if(e=e||this.mainPlaylistLoader_.media(),n=n||t.playlistExclusionDuration||this.playlistExclusionDuration,!e)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));e.playlistErrors_++;const i=this.mainPlaylistLoader_.main.playlists,r=i.filter(MI),a=1===r.length&&r[0]===e;if(1===i.length&&n!==1/0)return GL.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(a);if(a){if(this.main().contentSteering){const t=this.pathwayAttribute_(e),n=1e3*this.contentSteeringController_.steeringManifest.ttl;return this.contentSteeringController_.excludePathway(t),this.excludeThenChangePathway_(),void setTimeout((()=>{this.contentSteeringController_.addAvailablePathway(t)}),n)}let t=!1;
100i.forEach((n=>{if(n===e)return;const i=n.excludeUntil;void 0!==i&&i!==1/0&&(t=!0,delete n.excludeUntil)})),t&&(GL.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let s;s=e.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*n,e.excludeUntil=s,t.reason&&(e.lastExcludeReason_=t.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const o=this.selectPlaylist();if(!o)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");const l=t.internal?this.logger_:GL.log.warn,u=t.message?" "+t.message:"";l(`${t.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${u} Switching to playlist ${o.id}.`),o.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),o.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const c=o.targetDuration/2*1e3||5e3,d="number"==typeof o.lastRequest&&Date.now()-o.lastRequest<=c;return this.switchMedia_(o,"exclude",a||d)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,t){const n=[],i="all"===e;(i||"main"===e)&&n.push(this.mainPlaylistLoader_);const r=[];(i||"audio"===e)&&r.push("AUDIO"),(i||"subtitle"===e)&&(r.push("CLOSED-CAPTIONS"),r.push("SUBTITLES")),r.forEach((e=>{const t=this.mediaTypes_[e]&&this.mediaTypes_[e].activePlaylistLoader;t&&n.push(t)})),["main","audio","subtitle"].forEach((t=>{const i=this[`${t}SegmentLoader_`];!i||e!==t&&"all"!==e||n.push(i)})),n.forEach((e=>t.forEach((t=>{"function"==typeof e[t]&&e[t]()}))))}setCurrentTime(e){const t=cI(this.tech_.buffered(),e);return this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media()&&this.mainPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),void this.load()):0}duration(){if(!this.mainPlaylistLoader_)return 0;const e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:$O.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}onSyncInfoUpdate_(){let e;if(!this.mainPlaylistLoader_)return;let t=this.mainPlaylistLoader_.media();if(!t)return;let n=this.syncController_.getExpiredTime(t,this.duration());if(null===n)return;const i=this.mainPlaylistLoader_.main,r=$O.Playlist.seekable(t,n,$O.Playlist.liveEdgeDelay(i,t));if(0===r.length)return;if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),n=this.syncController_.getExpiredTime(t,this.duration()),null===n)return;if(e=$O.Playlist.seekable(t,n,$O.Playlist.liveEdgeDelay(i,t)),0===e.length)return}let a,s;this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),s=this.seekable_.start(0)),e?e.start(0)>r.end(0)||r.start(0)>e.end(0)?this.seekable_=r:this.seekable_=aI([[e.start(0)>r.start(0)?e.start(0):r.start(0),e.end(0)<r.end(0)?e.end(0):r.end(0)]]):this.seekable_=r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===a&&this.seekable_.start(0)===s||(this.logger_(`seekable updated [${fI(this.seekable_)}]`),this.tech_.trigger("seekablechanged"))}updateDuration(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){const e=this.seekable();if(!e.length)return;return void((isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1)))}const t=this.tech_.buffered();let n=$O.Playlist.duration(this.mainPlaylistLoader_.media());t.length>0&&(n=Math.max(n,t.end(t.length-1))),this.mediaSource.duration!==n&&this.sourceUpdater_.setDuration(n)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach((e=>{const t=this.mediaTypes_[e].groups;
vendor: 1,997 bytes, line 100
100for(const n in t)t[n].forEach((e=>{e.playlistLoader&&e.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!n)}getCodecsOrExclude_(){const e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},t=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;const n=VD(this.main(),t),i={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(i.video=n.video||e.main.videoCodec||"avc1.4d400d"),e.main.isMuxed&&(i.video+=`,${n.audio||e.main.audioCodec||Rb}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||r)&&(i.audio=n.audio||e.main.audioCodec||e.audio.audioCodec||Rb,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!i.audio&&!i.video)return void this.excludePlaylist({playlistToExclude:t,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});const a=H(((e,t)=>e?Ob(t):Mb(t)),"supportFunction"),s={};let o;if(["video","audio"].forEach((function(t){if(i.hasOwnProperty(t)&&!a(e[t].isFmp4,i[t])){const n=e[t].isFmp4?"browser":"muxer";s[n]=s[n]||[],s[n].push(i[t]),"audio"===t&&(o=n)}})),r&&o&&t.attributes.AUDIO){const e=t.attributes.AUDIO;
vendor: 4,133 bytes, line 100
100this.main().playlists.forEach((n=>{(n.attributes&&n.attributes.AUDIO)===e&&n!==t&&(n.excludeUntil=1/0)})),this.logger_(`excluding audio group ${e} as ${o} does not support codec(s): "${i.audio}"`)}if(!Object.keys(s).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const e=[];if(["video","audio"].forEach((t=>{const n=(Lb(this.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=(Lb(i[t]||"")[0]||{}).type;n&&r&&n.toLowerCase()!==r.toLowerCase()&&e.push(`"${this.sourceUpdater_.codecs[t]}" -> "${i[t]}"`)})),e.length)return void this.excludePlaylist({playlistToExclude:t,error:{message:`Codec switching not supported: ${e.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0})}return i}{const e=Object.keys(s).reduce(((e,t)=>(e&&(e+=", "),e+=`${t} does not support codec(s): "${s[t].join(",")}"`)),"")+".";this.excludePlaylist({playlistToExclude:t,error:{internal:!0,message:e},playlistExclusionDuration:1/0})}}tryToCreateSourceBuffers_(){if("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers())return;if(!this.areMediaTypesKnown_())return;const e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);const t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}excludeUnsupportedVariants_(){const e=this.main().playlists,t=[];Object.keys(e).forEach((n=>{const i=e[n];if(-1!==t.indexOf(i.id))return;t.push(i.id);const r=VD(this.main,i),a=[];!r.audio||Mb(r.audio)||Ob(r.audio)||a.push(`audio codec ${r.audio}`),!r.video||Mb(r.video)||Ob(r.video)||a.push(`video codec ${r.video}`),r.text&&"stpp.ttml.im1t"===r.text&&a.push(`text codec ${r.text}`),a.length&&(i.excludeUntil=1/0,this.logger_(`excluding ${i.id} for unsupported: ${a.join(", ")}`))}))}excludeIncompatibleVariants_(e){const t=[],n=this.main().playlists,i=jD(Lb(e)),r=UD(i),a=i.video&&Lb(i.video)[0]||null,s=i.audio&&Lb(i.audio)[0]||null;Object.keys(n).forEach((e=>{const i=n[e];if(-1!==t.indexOf(i.id)||i.excludeUntil===1/0)return;t.push(i.id);const o=[],l=VD(this.mainPlaylistLoader_.main,i),u=UD(l);if(l.audio||l.video){if(u!==r&&o.push(`codec count "${u}" !== "${r}"`),!this.sourceUpdater_.canChangeType()){const e=l.video&&Lb(l.video)[0]||null,t=l.audio&&Lb(l.audio)[0]||null;e&&a&&e.type.toLowerCase()!==a.type.toLowerCase()&&o.push(`video codec "${e.type}" !== "${a.type}"`),t&&s&&t.type.toLowerCase()!==s.type.toLowerCase()&&o.push(`audio codec "${t.type}" !== "${s.type}"`)}o.length&&(i.excludeUntil=1/0,this.logger_(`excluding ${i.id}: ${o.join(" && ")}`))}}))}updateAdCues_(e){let t=0;const n=this.seekable();n.length&&(t=n.start(0)),QP(e,this.cueTagsTrack_,t)}goalBufferLength(){const e=this.tech_.currentTime(),t=X$.GOAL_BUFFER_LENGTH,n=X$.GOAL_BUFFER_LENGTH_RATE,i=Math.max(t,X$.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,i)}bufferLowWaterLine(){const e=this.tech_.currentTime(),t=X$.BUFFER_LOW_WATER_LINE,n=X$.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(t,X$.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,X$.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.bufferBasedABR?r:i)}bufferHighWaterLine(){return X$.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){cP(this.inbandTextTracks_,"com.apple.streaming",this.tech_),uP({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,t,n){const i=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();cP(this.inbandTextTracks_,e,this.tech_),sP({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:i,videoDuration:n})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){const e=this.main();if(e.contentSteering){for(const t of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(t));this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart?this.contentSteeringController_.requestSteeringManifest(!0):this.tech_.one("canplay",(()=>{this.contentSteeringController_.requestSteeringManifest()}))}}
100resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),"dash"===this.sourceType_&&this.mainPlaylistLoader_.on("loadedplaylist",(()=>{const e=this.main();(this.contentSteeringController_.didDASHTagChange(e.uri,e.contentSteering)||H((()=>{const t=this.contentSteeringController_.getAvailablePathways(),n=[];for(const i of e.playlists){const e=i.attributes.serviceLocation;if(e&&(n.push(e),!t.has(e)))return!0}return!(n.length||!t.size)}),"didPathwaysChange")())&&this.resetContentSteeringController_()}))}excludeThenChangePathway_(){const e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();const t=this.main().playlists,n=new Set;let i=!1;Object.keys(t).forEach((r=>{const a=t[r],s=this.pathwayAttribute_(a),o=s&&e!==s;a.excludeUntil===1/0&&"content-steering"===a.lastExcludeReason_&&!o&&(delete a.excludeUntil,delete a.lastExcludeReason_,i=!0);const l=!a.excludeUntil&&a.excludeUntil!==1/0;!n.has(a.id)&&o&&l&&(n.add(a.id),a.excludeUntil=1/0,a.lastExcludeReason_="content-steering",this.logger_(`excluding ${a.id} for ${a.lastExcludeReason_}`))})),"DASH"===this.contentSteeringController_.manifestType_&&Object.keys(this.mediaTypes_).forEach((t=>{const n=this.mediaTypes_[t];if(n.activePlaylistLoader){const t=n.activePlaylistLoader.media_;t&&t.attributes.serviceLocation!==e&&(i=!0)}})),i&&this.changeSegmentPathway_()}handlePathwayClones_(){const e=this.main().playlists,t=this.contentSteeringController_.currentPathwayClones,n=this.contentSteeringController_.nextPathwayClones;if(t&&t.size||n&&n.size){for(const[e,i]of t.entries()){n.get(e)||(this.mainPlaylistLoader_.updateOrDeleteClone(i),this.contentSteeringController_.excludePathway(e))}for(const[i,r]of n.entries()){const n=t.get(i);if(n)this.equalPathwayClones_(n,r)||(this.mainPlaylistLoader_.updateOrDeleteClone(r,!0),this.contentSteeringController_.addAvailablePathway(i));else{e.filter((e=>e.attributes["PATHWAY-ID"]===r["BASE-ID"])).forEach((e=>{this.mainPlaylistLoader_.addClonePathway(r,e)})),this.contentSteeringController_.addAvailablePathway(i)}}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...n])))}}equalPathwayClones_(e,t){if(e["BASE-ID"]!==t["BASE-ID"]||e.ID!==t.ID||e["URI-REPLACEMENT"].HOST!==t["URI-REPLACEMENT"].HOST)return!1;const n=e["URI-REPLACEMENT"].PARAMS,i=t["URI-REPLACEMENT"].PARAMS;for(const r in n)if(n[r]!==i[r])return!1;for(const r in i)if(n[r]!==i[r])return!1;return!0}changeSegmentPathway_(){const e=this.selectPlaylist();this.pauseLoading(),"DASH"===this.contentSteeringController_.manifestType_&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0;const t="non-usable";
100this.mainPlaylistLoader_.main.playlists.forEach((n=>{const i=this.mainPlaylistLoader_.getKeyIdSet(n);i&&i.size&&i.forEach((i=>{const r="usable",a=this.keyStatusMap_.has(i)&&this.keyStatusMap_.get(i)===r,s=n.lastExcludeReason_===t&&n.excludeUntil===1/0;a?a&&s&&(delete n.excludeUntil,delete n.lastExcludeReason_,this.logger_(`enabling playlist ${n.id} because key ID ${i} is ${r}`)):(n.excludeUntil!==1/0&&n.lastExcludeReason_!==t&&(n.excludeUntil=1/0,n.lastExcludeReason_=t,this.logger_(`excluding playlist ${n.id} because the key ID ${i} doesn't exist in the keyStatusMap or is not ${r}`)),e++)}))})),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach((e=>{const n=e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height<720,i=e.excludeUntil===1/0&&e.lastExcludeReason_===t;n&&i&&(delete e.excludeUntil,GL.log.warn(`enabling non-HD playlist ${e.id} because all playlists were excluded due to ${t} key IDs`))}))}addKeyStatus_(e,t){const n=("string"==typeof e?e:zP(e)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${t}' with key ID ${n} added to the keyStatusMap`),this.keyStatusMap_.set(n,t)}updatePlaylistByKeyStatus(e,t){this.addKeyStatus_(e,t),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}};H(MO,"PlaylistController");let RO=MO;const NO=H(((e,t,n)=>i=>{const r=e.main.playlists[t],a=OI(r),s=MI(r);return void 0===i?s:(i?delete r.disabled:r.disabled=!0,i===s||a||(n(r),i?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),i)}),"enableFunction"),FO=class{constructor(e,t,n){const{playlistController_:i}=e,r=i.fastQualityChange_.bind(i);if(t.attributes){const e=t.attributes.RESOLUTION;this.width=e&&e.width,this.height=e&&e.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}this.codecs=VD(i.main(),t),this.playlist=t,this.id=n,this.enabled=NO(e.playlists,t.id,r)}};H(FO,"Representation");let BO=FO;const HO=H((function(e){e.representations=()=>{const t=e.playlistController_.main(),n=VI(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter((e=>!OI(e))).map(((t,n)=>new BO(e,t,t.id))):[]}}),"renditionSelectionMixin"),jO=["seeking","seeked","pause","playing","error"],UO=class{constructor(e){this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=iI("PlaybackWatcher"),this.logger_("initialize");const t=H((()=>this.monitorCurrentTime_()),"playHandler"),n=H((()=>this.monitorCurrentTime_()),"canPlayHandler"),i=H((()=>this.techWaiting_()),"waitingHandler"),r=H((()=>this.resetTimeUpdate_()),"cancelTimerHandler"),a=this.playlistController_,s=["main","subtitle","audio"],o={};s.forEach((e=>{o[e]={reset:H((()=>this.resetSegmentDownloads_(e)),"reset"),updateend:H((()=>this.checkSegmentDownloads_(e)),"updateend")},a[`${e}SegmentLoader_`].on("appendsdone",o[e].updateend),a[`${e}SegmentLoader_`].on("playlistupdate",o[e].reset),this.tech_.on(["seeked","seeking"],o[e].reset)}));const l=H((e=>{["main","audio"].forEach((t=>{a[`${t}SegmentLoader_`][e]("appended",this.seekingAppendCheck_)}))}),"setSeekingHandlers");this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),l("off"))},this.clearSeekingAppendCheck_=()=>l("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),l("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",i),this.tech_.on(jO,r),this.tech_.on("canplay",n),this.tech_.one("play",t),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",i),this.tech_.off(jO,r),this.tech_.off("canplay",n),this.tech_.off("play",t),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),s.forEac
vendor: 4,548 bytes, line 100
100h((e=>{a[`${e}SegmentLoader_`].off("appendsdone",o[e].updateend),a[`${e}SegmentLoader_`].off("playlistupdate",o[e].reset),this.tech_.off(["seeked","seeking"],o[e].reset)})),this.checkCurrentTimeTimeout_&&fv.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&fv.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=fv.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){const t=this.playlistController_[`${e}SegmentLoader_`];this[`${e}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[`${e}StalledDownloads_`]=0,this[`${e}Buffered_`]=t.buffered_()}checkSegmentDownloads_(e){const t=this.playlistController_,n=t[`${e}SegmentLoader_`],i=n.buffered_(),r=yI(this[`${e}Buffered_`],i);this[`${e}Buffered_`]=i,r?this.resetSegmentDownloads_(e):(this[`${e}StalledDownloads_`]++,this.logger_(`found #${this[`${e}StalledDownloads_`]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:n.playlist_&&n.playlist_.id,buffered:gI(i)}),this[`${e}StalledDownloads_`]<10||(this.logger_(`${e} loader stalled download exclusion`),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),"subtitle"!==e&&t.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0})))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+lI>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;const e=this.seekable(),t=this.tech_.currentTime();let n;if(this.afterSeekableWindow_(e,t,this.media(),this.allowSeeksWithinUnsafeLiveWindow)){n=e.end(e.length-1)}if(this.beforeSeekableWindow_(e,t)){const t=e.start(0);n=t+(t===e.end(0)?0:lI)}if(void 0!==n)return this.logger_(`Trying to seek outside of seekable at time ${t} with seekable range ${fI(e)}. Seeking to ${n}.`),this.tech_.setCurrentTime(n),!0;const i=this.playlistController_.sourceUpdater_,r=this.tech_.buffered(),a=i.audioBuffer?i.audioBuffered():null,s=i.videoBuffer?i.videoBuffered():null,o=this.media(),l=o.partTargetDuration?o.partTargetDuration:2*(o.targetDuration-oI),u=[a,s];for(let d=0;d<u.length;d++){if(!u[d])continue;if(bI(u[d],t)<l)return!1}const c=dI(r,t);return 0!==c.length&&(n=c.start(0)+lI,this.logger_(`Buffered region starts (${c.start(0)}) just beyond seek point (${t}). Seeking to ${n}.`),this.tech_.setCurrentTime(n),!0)}waiting_(){if(this.techWaiting_())return;const e=this.tech_.currentTime(),t=this.tech_.buffered(),n=cI(t,e);return n.length&&e+3<=n.end(0)?(this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${n.start(0)} -> ${n.end(0)}]. Attempting to resume playback by seeking to the current time.`),void this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"})):void 0}techWaiting_(){const e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,t)){const n=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${t}. Seeking to live point (seekable end) ${n}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const n=this.tech_.vhs.playlistController_.sourceUpdater_,i=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:n.audioBuffered(),videoBuffered:n.videoBuffered(),currentTime:t}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const r=dI(i,t);return r.length>0&&(this.logger_(`Stopped at ${t} and seeking to ${r.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}afterSeekableWindow_(e,t,n,i=!1){if(!e.length)return!1;let r=e.end(e.length-1)+lI;const a=!n.endList,s="number"==typeof n.partTargetDuration;return a&&(s||i)&&(r=e.end(e.length-1)+3*n.targetDuration),t>r}beforeSeekableWindow_(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:t,currentTime:n}){if(!e)return;let i;
100if(e.length&&t.length){const r=cI(e,n-3),a=cI(e,n),s=cI(t,n);s.length&&!a.length&&r.length&&(i={start:r.end(0),end:s.end(0)})}else{dI(e,n).length||(i=this.gapFromVideoUnderflow_(e,n))}return!!i&&(this.logger_(`Encountered a gap in video from ${i.start} to ${i.end}. Seeking to current time ${n}`),!0)}skipTheGap_(e){const t=this.tech_.buffered(),n=this.tech_.currentTime(),i=dI(t,n);this.resetTimeUpdate_(),0!==i.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+oI),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}))}gapFromVideoUnderflow_(e,t){const n=pI(e);for(let i=0;i<n.length;i++){const e=n.start(i),r=n.end(i);if(t-e<4&&t-e>2)return{start:e,end:r}}return null}};H(UO,"PlaybackWatcher");let VO=UO;const qO={errorInterval:30,getSource(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},zO=H((function(e,t){let n=0,i=0;const r=rI(qO,t);e.ready((()=>{e.trigger({type:"usage",name:"vhs-error-reload-initialized"})}));const a=H((function(){i&&e.currentTime(i)}),"loadedMetadataHandler"),s=H((function(t){null!=t&&(i=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",a),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.play())}),"setSource"),o=H((function(){if(Date.now()-n<1e3*r.errorInterval)e.trigger({type:"usage",name:"vhs-error-reload-canceled"});else{if(r.getSource&&"function"==typeof r.getSource)return n=Date.now(),r.getSource.call(e,s);GL.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}}),"errorHandler"),l=H((function(){e.off("loadedmetadata",a),e.off("error",o),e.off("dispose",l)}),"cleanupEvents"),u=H((function(t){l(),zO(e,t)}),"reinitPlugin");e.on("error",o),e.on("dispose",l),e.reloadSourceOnError=u}),"initPlugin"),WO=H((function(e){zO(this,e)}),"reloadSourceOnError");var GO="3.12.1";const KO={PlaylistLoader:h$,Playlist:qI,utils:L$,STANDARD_PLAYLIST_SELECTOR:XD,INITIAL_PLAYLIST_SELECTOR:eP,lastBandwidthSelector:XD,movingAverageBandwidthSelector:QD,comparePlaylistBandwidth:KD,comparePlaylistResolution:YD,xhr:y$()};Object.keys(X$).forEach((e=>{Object.defineProperty(KO,e,{get:()=>(GL.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),X$[e]),set(t){GL.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),"number"!=typeof t||t<0?GL.log.warn(`value of Vhs.${e} must be greater than or equal to 0`):X$[e]=t}})}));const YO="videojs-vhs",ZO=H((function(e,t){const n=t.media();let i=-1;for(let r=0;r<e.length;r++)if(e[r].id===n.id){i=r;break}e.selectedIndex_=i,e.trigger({selectedIndex:i,type:"change"})}),"handleVhsMediaChange"),XO=H((function(e,t){t.representations().forEach((t=>{e.addQualityLevel(t)})),ZO(e,t.playlists)}),"handleVhsLoadedMetadata");KO.canPlaySource=function(){return GL.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const QO=H(((e,t,n)=>{if(!e)return e;let i={};t&&t.attributes&&t.attributes.CODECS&&(i=jD(Lb(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);const r=Pb(i.video),a=Pb(i.audio),s={};for(const o in e)s[o]={},a&&(s[o].audioContentType=a),r&&(s[o].videoContentType=r),t.contentProtection&&t.contentProtection[o]&&t.contentProtection[o].pssh&&(s[o].pssh=t.contentProtection[o].pssh),"string"==typeof e[o]&&(s[o].url=e[o]);return rI(e,s)}),"emeKeySystems"),JO=H(((e,t)=>e.reduce(((e,n)=>{if(!n.contentProtection)return e;const i=t.reduce(((e,t)=>{const i=n.contentProtection[t];return i&&i.pssh&&(e[t]={pssh:i.pssh}),e}),{});return Object.keys(i).length&&e.push(i),e}),[])),"getAllPsshKeySystemsOptions"),eM=H((({player:e,sourceKeySystems:t,audioMedia:n,mainPlaylists:i})=>{if(!e.eme.initializeMediaKeys)return Promise.resolve();const r=n?i.concat([n]):i,a=JO(r,Object.keys(t)),s=[],o=[];return a.forEach((t=>{o.push(new Promise(((t,n)=>{e.tech_.one("keysessioncreated",t)}))),s.push(new Promise(((n,i)=>{e.eme.initializeMediaKeys({keySystems:t},(e=>{e?i(e):n()}))})))})),Promise.race([Promise.all(s),Promise.race(o)])}),"waitForKeySessionCreation"),tM=H((({player:e,sourceKeySystems:t,media:n,audioMedia:i})=>{const r=QO(t,n,i);return!!r&&(e.currentSource().keySystems=r,!(r&&!e.eme)||(GL.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))}),"setupEmeOptions"),nM=H((()=>
100{if(!fv.localStorage)return null;const e=fv.localStorage.getItem(YO);if(!e)return null;try{return JSON.parse(e)}catch(tvt){return null}}),"getVhsLocalStorage"),iM=H((e=>{if(!fv.localStorage)return!1;let t=nM();t=t?rI(t,e):e;try{fv.localStorage.setItem(YO,JSON.stringify(t))}catch(tvt){return!1}return t}),"updateVhsLocalStorage"),rM=H((e=>0===e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e),"expandDataUri"),aM=H(((e,t)=>{e._requestCallbackSet||(e._requestCallbackSet=new Set),e._requestCallbackSet.add(t)}),"addOnRequestHook"),sM=H(((e,t)=>{e._responseCallbackSet||(e._responseCallbackSet=new Set),e._responseCallbackSet.add(t)}),"addOnResponseHook"),oM=H(((e,t)=>{e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)}),"removeOnRequestHook"),lM=H(((e,t)=>{e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)}),"removeOnResponseHook");KO.supportsNativeHls=function(){if(!bv||!bv.createElement)return!1;const e=bv.createElement("video");if(!GL.getTech("Html5").isSupported())return!1;return["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some((function(t){return/maybe|probably/i.test(e.canPlayType(t))}))}(),KO.supportsNativeDash=!!(bv&&bv.createElement&&GL.getTech("Html5").isSupported())&&/maybe|probably/i.test(bv.createElement("video").canPlayType("application/dash+xml")),KO.supportsTypeNatively=e=>"hls"===e?KO.supportsNativeHls:"dash"===e&&KO.supportsNativeDash,KO.isSupported=function(){return GL.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")},KO.xhr.onRequest=function(e){aM(KO.xhr,e)},KO.xhr.onResponse=function(e){sM(KO.xhr,e)},KO.xhr.offRequest=function(e){oM(KO.xhr,e)},KO.xhr.offResponse=function(e){lM(KO.xhr,e)};const uM=GL.getComponent("Component"),cM=class extends uM{constructor(e,t,n){if(super(t,n.vhs),"number"==typeof n.initialBandwidth&&(this.options_.bandwidth=n.initialBandwidth),this.logger_=iI("VhsHandler"),t.options_&&t.options_.playerId){const e=GL.getPlayer(t.options_.playerId);this.player_=e}if(this.tech_=t,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(bv,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(e=>{const t=bv.fullscreenElement||bv.webkitFullscreenElement||bv.mozFullScreenElement||bv.msFullscreenElement;t&&t.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()})),this.on(this.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),this.on(this.tech_,"error",(function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()})),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=rI(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhl
100s=!1!==this.options_.llhls,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,"number"!=typeof this.options_.playlistExclusionDuration&&(this.options_.playlistExclusionDuration=60),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){const e=nM();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=X$.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===X$.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","customPixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach((e=>{void 0!==this.source_[e]&&(this.options_[e]=this.source_[e])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio;const t=this.options_.customPixelRatio;"number"==typeof t&&t>=0&&(this.customPixelRatio=t)}setOptions(e={}){this.setOptions_(e)}src(e,t){if(!e)return;this.setOptions_(),this.options_.src=rM(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=KO,this.options_.sourceType=Bb(t),this.options_.seekTo=e=>{this.tech_.setCurrentTime(e)},this.playlistController_=new RO(this.options_);const n=rI({liveRangeSafeTimeDelta:lI},this.options_,{seekable:H((()=>this.seekable()),"seekable"),media:H((()=>this.playlistController_.media()),"media"),playlistController:this.playlistController_});this.playbackWatcher_=new VO(n),this.playlistController_.on("error",(()=>{const e=GL.players[this.tech_.options_.playerId];let t=this.playlistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)}));const i=this.options_.bufferBasedABR?KO.movingAverageBandwidthSelector(.55):KO.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):i.bind(this),this.playlistController_.selectInitialPlaylist=KO.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(e){this.playlistController_.selectPlaylist=e.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(e){this.playlistController_.mainSegmentLoader_.throughput.rate=e,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let e=this.playlistController_.mainSegmentLoader_.bandwidth;const t=fv.navigator.connection||fv.navigator.mozConnection||fv.navigator.webkitConnection,n=1e7;if(this.options_.useNetworkInformationApi&&t){const i=1e3*t.downlink*1e3;e=i>=n&&e>=n?Math.max(e,i):i}return e},set(e){this.playlistController_.mainSegmentLoader_.bandwidth=e,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){const e=1/(this.bandwidth||1);let t;t=this.throughput>0?1/this.throughput:0;return Math.floor(1/(e+t))},set(){GL.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:H((()=>this.bandwidth||0),"get"),enumerable:!0},mediaRequests:{get:H((()=>this.playlistController_.mediaRequests_()||0),"get"),enumerable:!0},mediaRequestsAborted:{get:H((()=>this.playlistController_.mediaRequestsAborted_()||0),"get"),enumerable:!0},mediaRequestsTimedout:{get:H((()=>this.playlistController_.mediaRequestsTimedout_()||0),"get"),enumerable:!0},mediaRequestsErrored:{get:H((()=>this.playlistController_.mediaRequestsErrored_()||0),"get"),enumerable:!0},mediaTransferDuration:{get:H((()=>this.playlistController_.mediaTransferDuration_()||0),"get"),enumerable:!0},mediaBytesTransferred:{get:H((()=>this.playlistController_.mediaBytesTransferred_()||0),"get"),enumerable:!0},mediaSecondsLoaded:{get:H((()=>this.playlistController_.mediaSecondsLoaded_()||0),"get"),enumerable:!0},mediaAppends:{get:H((()=>this.playlistController_.mediaAppends_()||0),"get"),enumerable:!0},mainAppendsToLoadedData:{get:H((()=>this.playlistController_.mainAppendsToLoadedData_()||0),"get"),enumerable:!0},audioAppendsToLoadedData:{get:H((()=>this.playlistController_.audioAppendsToLoadedData_()||0),"get"),enumerable:!0},appendsToLoadedData:{get:H((()=>this.playlistController_.appendsToLoadedData_()||0),"get"),enumerable:!0},timeToLoadedData:{get:H((()=>this.playlistController_.timeToLoadedData_()||0),"get"),enumerable:!0},buffered:{get:H((()=>gI(this.tech_.buffered())),"get"),enumerable:!0},currentTime:{get:H((()=>this.tech_.currentTime()),"get"),enumerable:!0},currentSource:{get:H((()=>this.tech_.currentSource_),"get"),enumerable:!0},currentTech:{get:H((()=>this.tech_.name_),"get"),enumerable:!0},duration:{get:H((()=>this.tech_.duration()),"get"),enumerable:!0},main:{get:H((()=>this.playlists.main),"get"),enumerable:!0},playerDimensions:{get:H((()=>this.tech_.currentDimensions()),"get"),enumerable:!0},seekable:{get:H((()=>gI(this.tech_.seekable())),"get"),enumerable:!0},timestamp:{get:H((()=>Date.now()),"get"),enumerable:!0},videoPlaybackQuality:{get:H((()=>this.tech_.getVideoPlaybackQuality()),"get"),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",(()=>{this.options_.useBandwidthFromLocalStorage&&iM({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})})),this.playlistController_.on("selectedinitialmedia",(()=>{HO(this)})),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",(()=>{this.setupEme_()})),this.on(this.playlistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.playlistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=fv.URL.createObjectURL(this.playlistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),eM({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then((()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()})).catch((e=>{this.logger_("error while creating EME key session",e),this.player_.error({message:"Failed to initialize media ke
100ys for EME",code:3,metadata:{errorType:GL.Error.EMEKeySessionCreationError}})}))}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,t=tM({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});this.player_.tech_.on("keystatuschange",(e=>{this.playlistController_.updatePlaylistByKeyStatus(e.keyId,e.status)})),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),t?this.createKeySessions_():this.playlistController_.sourceUpdater_.initializedEme()}setupQualityLevels_(){const e=GL.players[this.tech_.options_.playerId];e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",(()=>{XO(this.qualityLevels_,this)})),this.playlists.on("mediachange",(()=>{ZO(this.qual
100ityLevels_,this.playlists)})))}static version(){return{"@videojs/http-streaming":GO,"mux.js":"7.0.3","mpd-parser":"1.3.0","m3u8-parser":"7.1.0","aes-decrypter":"4.0.1"}}version(){return this.constructor.version()}canChangeType(){return VP.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&fv.URL.revokeObjectURL&&(fv.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,t){return R$({playlist:this.playlistController_.media(),time:e,callback:t})}seekToProgramTime(e,t,n=!0,i=2){return N$({programTime:e,playlist:this.playlistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}setupXhrHooks_(){this.xhr.onRequest=e=>{aM(this.xhr,e)},this.xhr.onResponse=e=>{sM(this.xhr,e)},this.xhr.offRequest=e=>{oM(this.xhr,e)},this.xhr.offResponse=e=>{lM(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}};H(cM,"VhsHandler");let dM=cM;const pM={name:"videojs-http-streaming",VERSION:GO,canHandleSource(e,t={}){const n=rI(GL.options,t);return pM.canPlayType(e.type,n)},handleSource(e,t,n={}){const i=rI(GL.options,n);return t.vhs=new dM(e,t,i),t.vhs.xhr=y$(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs},canPlayType(e,t){const n=Bb(e);if(!n)return"";const i=pM.getOverrideNative(t);return!KO.supportsTypeNatively(n)||i?"maybe":""},getOverrideNative(e={}){const{vhs:t={}}=e,n=!(GL.browser.IS_ANY_SAFARI||GL.browser.IS_IOS),{overrideNative:i=n}=t;return i}};H((()=>Ob("avc1.4d400d,mp4a.40.2")),"supportsNativeMediaSources")()&&GL.getTech("Html5").registerSourceHandler(pM,0),GL.VhsHandler=dM,GL.VhsSourceHandler=pM,GL.Vhs=KO,GL.use||GL.registerComponent("Vhs",KO),GL.options.vhs=GL.options.vhs||{},GL.getPlugin&&GL.getPlugin("reloadSourceOnError")||GL.registerPlugin("reloadSourceOnError",WO);const hM=Object.freeze(Object.defineProperty({__proto__:null,default:GL},Symbol.toStringTag,{value:"Module"}));var fM,mM={exports:{}};function gM(){return fM||(fM=1,mM.exports=function(){var e=1e3,t=6e4,n=36e5,i="millisecond",r="second",a="minute",s="hour",o="day",l="week",u="month",c="quarter",d="year",p="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:H((function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}),"ordinal")},y=H((function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e}),"m"),v={s:y,z:H((function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+y(i,2,"0")+":"+y(r,2,"0")}),"z"),m:H((function e(t,n){if(t.date()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(i,u),a=n-r<0,s=t.clone().add(i+(a?-1:1),u);return+(-(i+(n-r)/(a?r-s:s-r))||0)}),"t"),a:H((function(e){return e<0?Math.ceil(e)||0:Math.floor(e)}),"a"),p:H((function(e){return{M:u,y:d,w:l,d:o,D:p,h:s,m:a,s:r,ms:i,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")}),"p"),u:H((function(e){return void 0===e}),"u")},b="en",_={};_[b]=g;var w="$isDayjsObject",S=H((function(e){return e instanceof T||!(!e||!e[w])}),"S"),C=H((function e(t,n,i){var r;if(!t)return b;if("string"==typeof t){var a=t.toLowerCase();_[a]&&(r=a),n&&(_[a]=n,r=a);var s=t.split("-");if(!r&&s.length>1)return e(s[0])}else{var o=t.name;_[o]=t,r=o}return!i&&r&&(b=r),r||!i&&b}),"t"),k=H((function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new T(n)}),"O"),x=v;x.l=C,x.i=S,x.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}H(g,"M");var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(f);if(i){var r=i[2]-1||0,a=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return x},y.isValid=function(){return!(this.$d.toString()===h)},y.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return k(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<k(e)},y.$g=function(e,t,n){return x.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,i=!!x.u(t)||t,c=x.p(e),h=H((function(e,t){var r=x.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return i?r:r.endOf(o)}),"l"),f=H((function(e,t){return x.w(n.toDate()[e].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),n)}),"$"),m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(c){case d:return i?h(1,0):h(31,11);case u:return i?h(1,g):h(0,g+1);case l:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return h(i?y-_:y+(6-_),g);case o:case p:return f(v+"Hours",0);case s:return f(v+"Minutes",1);case a:return f(v+"Seconds",2);case r:return f(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var n,l=x.p(e),c="set"+(this.$u?"UTC":""),h=(n={},n[o]=c+"Date",n[p]=c+"Date",n[u]=c+"Month",n[d]=c+"FullYear",n[s]=c+"Hours",n[a]=c+"Minutes",n[r]=c+"Seconds",n[i]=c+"Milliseconds",n)[l],f=l===o?this.$D+(t-this.$W):t;if(l===u||l===d){var m=this.clone().set(p,1);
100m.$d[h](f),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[x.p(e)]()},y.add=function(i,c){var p,h=this;i=Number(i);var f=x.p(c),m=H((function(e){var t=k(h);return x.w(t.date(t.date()+Math.round(e*i)),h)}),"y");if(f===u)return this.set(u,this.$M+i);if(f===d)return this.set(d,this.$y+i);if(f===o)return m(1);if(f===l)return m(7);var g=(p={},p[a]=t,p[s]=n,p[r]=e,p)[f]||1,y=this.$d.getTime()+i*g;return x.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var i=e||"YYYY-MM-DDTHH:mm:ssZ",r=x.z(this),a=this.$H,s=this.$m,o=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,d=H((function(e,n,r,a){return e&&(e[n]||e(t,i))||r[n].slice(0,a)}),"h"),p=H((function(e){return x.s(a%12||12,e,"0")}),"d"),f=c||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i};return i.replace(m,(function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return x.s(t.$y,4,"0");case"M":return o+1;case"MM":return x.s(o+1,2,"0");case"MMM":return d(n.monthsShort,o,u,3);case"MMMM":return d(u,o);case"D":return t.$D;case"DD":return x.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return x.s(a,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return f(a,s,!0);case"A":return f(a,s,!1);case"m":return String(s);case"mm":return x.s(s,2,"0");case"s":return String(t.$s);case"ss":return x.s(t.$s,2,"0");case"SSS":return x.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(i,p,h){var f,m=this,g=x.p(p),y=k(i),v=(y.utcOffset()-this.utcOffset())*t,b=this-y,_=H((function(){return x.m(m,y)}),"D");switch(g){case d:f=_()/12;break;case u:f=_();break;case c:f=_()/3;break;case l:f=(b-v)/6048e5;break;case o:f=(b-v)/864e5;break;case s:f=b/n;break;case a:f=b/t;break;case r:f=b/e;break;default:f=b}return h?f:x.a(f)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return _[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=C(e,t,!0);return i&&(n.$L=i),n},y.clone=function(){return x.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),E=T.prototype;return k.prototype=E,[["$ms",i],["$s",r],["$m",a],["$H",s],["$W",o],["$M",u],["$y",d],["$D",p]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),k.extend=function(e,t){return e.$i||(e(t,T,k),e.$i=!0),k},k.locale=C,k.isDayjs=S,k.unix=function(e){return k(1e3*e)},k.en=_[b],k.Ls=_,k.p={},k}()),mM.exports}H(gM,"requireDayjs_min");const yM=dv(gM()),vM=6048e5,bM=864e5,_M=36e5,wM=Symbol.for("constructDateFrom");function SM(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&wM in e?e[wM](t):e instanceof Date?new e.constructor(t):new Date(t)}function CM(e,t){return SM(t||e,e)}function kM(e,t,n){const i=CM(e,null==n?void 0:n.in);return isNaN(t)?SM((null==n?void 0:n.in)||e,NaN):t?(i.setDate(i.getDate()+t),i):i}function xM(e,t,n){const i=CM(e,null==n?void 0:n.in);if(isNaN(t))return SM(e,NaN);if(!t)return i;const r=i.getDate(),a=SM(e,i.getTime());a.setMonth(i.getMonth()+t+1,0);return r>=a.getDate()?a:(i.setFullYear(a.getFullYear(),a.getMonth(),r),i)}function TM(e,t,n){const{years:i=0,months:r=0,weeks:a=0,days:s=0,hours:o=0,minutes:l=0,seconds:u=0}=t,c=CM(e,null==n?void 0:n.in),d=r||i?xM(c,r+12*i):c;return SM(e,+(s||a?kM(d,s+7*a):d)+1e3*(u+60*(l+60*o)))}function EM(e,t,n){return SM(e,+CM(e)+t)}function AM(e,t,n){return EM(e,t*_M)}H(SM,"constructFrom"),H(CM,"toDate"),H(kM,"addDays"),H(xM,"addMonths"),H(TM,"add$1"),H(EM,"addMilliseconds"),H(AM,"addHours");let LM={};function IM(){return LM}function $M(e,t){var n,i,r,a,s,o,l,u;
100const c=IM(),d=null!=(u=null!=(l=null!=(a=null!=(r=null==t?void 0:t.weekStartsOn)?r:null==(i=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:i.weekStartsOn)?a:c.weekStartsOn)?l:null==(o=null==(s=c.locale)?void 0:s.options)?void 0:o.weekStartsOn)?u:0,p=CM(e,null==t?void 0:t.in),h=p.getDay(),f=(h<d?7:0)+h-d;return p.setDate(p.getDate()-f),p.setHours(0,0,0,0),p}function DM(e,t){return $M(e,B(F({},t),{weekStartsOn:1}))}function PM(e,t){const n=CM(e,null==t?void 0:t.in),i=n.getFullYear(),r=SM(n,0);r.setFullYear(i+1,0,4),r.setHours(0,0,0,0);const a=DM(r),s=SM(n,0);s.setFullYear(i,0,4),s.setHours(0,0,0,0);const o=DM(s);return n.getTime()>=a.getTime()?i+1:n.getTime()>=o.getTime()?i:i-1}function OM(e){const t=CM(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function MM(e,...t){const n=SM.bind(null,t.find((e=>"object"==typeof e)));return t.map(n)}function RM(e,t){const n=CM(e,null==t?void 0:t.in);return n.setHours(0,0,0,0),n}function NM(e,t,n){const[i,r]=MM(null==n||n.in,e,t),a=RM(i),s=RM(r),o=+a-OM(a),l=+s-OM(s);return Math.round((o-l)/bM)}function FM(e,t){const n=PM(e,t),i=SM(e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),DM(i)}function BM(e,t,n){return xM(e,3*t,n)}function HM(e,t,n){return xM(e,12*t,n)}function jM(e,t){const n=+CM(e)-+CM(t);return n<0?-1:n>0?1:n}function UM(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function VM(e){return!(!UM(e)&&"number"!=typeof e||isNaN(+CM(e)))}function qM(e,t){const n=CM(e,null==t?void 0:t.in);return Math.trunc(n.getMonth()/3)+1}function zM(e,t,n){const[i,r]=MM(null==n||n.in,e,t);return i.getFullYear()-r.getFullYear()}function WM(e,t,n){const[i,r]=MM(null==n||n.in,e,t),a=jM(i,r),s=Math.abs(zM(i,r));i.setFullYear(1584),r.setFullYear(1584);const o=a*(s-+(jM(i,r)===-a));return 0===o?0:o}function GM(e,t){const[n,i]=MM(0,t.start,t.end);return{start:n,end:i}}function KM(e,t){const{start:n,end:i}=GM(null==t||t.in,e);let r=+n>+i;const a=r?+n:+i,s=r?i:n;s.setHours(0,0,0,0);const o=[];for(;+s<=a;)o.push(SM(n,s)),s.setDate(s.getDate()+1),s.setHours(0,0,0,0);return r?o.reverse():o}function YM(e,t){const n=CM(e,null==t?void 0:t.in),i=n.getMonth(),r=i-i%3;return n.setMonth(r,1),n.setHours(0,0,0,0),n}function ZM(e,t){const{start:n,end:i}=GM(null==t||t.in,e);let r=+n>+i;const a=r?+YM(n):+YM(i);let s=YM(r?i:n);const o=[];for(;+s<=a;)o.push(SM(n,s)),s=BM(s,1);return r?o.reverse():o}function XM(e,t){const n=CM(e,null==t?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function QM(e,t){const n=CM(e,null==t?void 0:t.in),i=n.getFullYear();return n.setFullYear(i+1,0,0),n.setHours(23,59,59,999),n}function JM(e,t){const n=CM(e,null==t?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function eR(e,t){var n,i,r,a,s,o,l,u;const c=IM(),d=null!=(u=null!=(l=null!=(a=null!=(r=null==t?void 0:t.weekStartsOn)?r:null==(i=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:i.weekStartsOn)?a:c.weekStartsOn)?l:null==(o=null==(s=c.locale)?void 0:s.options)?void 0:o.weekStartsOn)?u:0,p=CM(e,null==t?void 0:t.in),h=p.getDay(),f=6+(h<d?-7:0)-(h-d);return p.setDate(p.getDate()+f),p.setHours(23,59,59,999),p}function tR(e,t){const n=CM(e,null==t?void 0:t.in),i=n.getMonth(),r=i-i%3+3;return n.setMonth(r,0),n.setHours(23,59,59,999),n}H(IM,"getDefaultOptions$1"),H($M,"startOfWeek"),H(DM,"startOfISOWeek"),H(PM,"getISOWeekYear"),H(OM,"getTimezoneOffsetInMilliseconds"),H(MM,"normalizeDates"),H(RM,"startOfDay"),H(NM,"differenceInCalendarDays"),H(FM,"startOfISOWeekYear"),H(BM,"addQuarters"),H(HM,"addYears"),H(jM,"compareAsc"),H(UM,"isDate$2"),H(VM,"isValid"),H(qM,"getQuarter"),H(zM,"differenceInCalendarYears"),H(WM,"differenceInYears"),H(GM,"normalizeInterval"),H(KM,"eachDayOfInterval"),H(YM,"startOfQuarter"),H(ZM,"eachQuarterOfInterval"),H(XM,"startOfMonth"),H(QM,"endOfYear"),H(JM,"startOfYear"),H(eR,"endOfWeek"),H(tR,"endOfQuarter");const nR={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},iR=H(((e,t,n)=>{let i;const r=nR[e];return i="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),(null==n?void 0:n.addSuffix)?n.comparison&&n.comparison>0?"in "+i:i+" ago":i}),"formatDistance");function rR(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}H(rR,"buildFormatLongFn");const aR={date:rR({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:rR({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:rR({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},sR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},oR=H(((e,t,n,i)=>sR[e]),"formatRelative");function lR(e){return(t,n)=>{let i;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,r=(null==n?void 0:n.width)?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{const t=e.defaultWidth,r=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}return i[e.argumentCallback?e.argumentCallback(t):t]}}H(lR,"buildLocalizeFn");const uR={ordinalNumber:H(((e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}),"ordinalNumber"),era:lR({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:lR({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:H((e=>e-1),"argumentCallback")}),month:lR({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:lR({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
100ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:lR({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function cR(e){return(t,n={})=>{const i=n.width,r=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(r);if(!a)return null;const s=a[0],o=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?pR(o,(e=>e.test(s))):dR(o,(e=>e.test(s)));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(s.length)}}}function dR(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function pR(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function hR(e){return(t,n={})=>{const i=t.match(e.matchPattern);if(!i)return null;const r=i[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;return{value:s,rest:t.slice(r.length)}}}H(cR,"buildMatchFn"),H(dR,"findKey$1"),H(pR,"findIndex"),H(hR,"buildMatchPatternFn");const fR={code:"en-US",formatDistance:iR,formatLong:aR,formatRelative:oR,localize:uR,match:{ordinalNumber:hR({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:H((e=>parseInt(e,10)),"valueCallback")}),era:cR({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:cR({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:H((e=>e+1),"valueCallback")}),month:cR({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:cR({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:cR({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function mR(e,t){const n=CM(e,null==t?void 0:t.in);return NM(n,JM(n))+1}function gR(e,t){const n=CM(e,null==t?void 0:t.in),i=+DM(n)-+FM(n);return Math.round(i/vM)+1}function yR(e,t){var n,i,r,a,s,o,l,u;const c=CM(e,null==t?void 0:t.in),d=c.getFullYear(),p=IM(),h=null!=(u=null!=(l=null!=(a=null!=(r=null==t?void 0:t.firstWeekContainsDate)?r:null==(i=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:i.firstWeekContainsDate)?a:
100p.firstWeekContainsDate)?l:null==(o=null==(s=p.locale)?void 0:s.options)?void 0:o.firstWeekContainsDate)?u:1,f=SM((null==t?void 0:t.in)||e,0);f.setFullYear(d+1,0,h),f.setHours(0,0,0,0);const m=$M(f,t),g=SM((null==t?void 0:t.in)||e,0);g.setFullYear(d,0,h),g.setHours(0,0,0,0);const y=$M(g,t);return+c>=+m?d+1:+c>=+y?d:d-1}function vR(e,t){var n,i,r,a,s,o,l,u;const c=IM(),d=null!=(u=null!=(l=null!=(a=null!=(r=null==t?void 0:t.firstWeekContainsDate)?r:null==(i=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:i.firstWeekContainsDate)?a:c.firstWeekContainsDate)?l:null==(o=null==(s=c.locale)?void 0:s.options)?void 0:o.firstWeekContainsDate)?u:1,p=yR(e,t),h=SM((null==t?void 0:t.in)||e,0);h.setFullYear(p,0,d),h.setHours(0,0,0,0);return $M(h,t)}function bR(e,t){const n=CM(e,null==t?void 0:t.in),i=+$M(n,t)-+vR(n,t);return Math.round(i/vM)+1}function _R(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}H(mR,"getDayOfYear"),H(gR,"getISOWeek"),H(yR,"getWeekYear"),H(vR,"startOfWeekYear"),H(bR,"getWeek"),H(_R,"addLeadingZeros");const wR={y(e,t){const n=e.getFullYear(),i=n>0?n:1-n;return _R("yy"===t?i%100:i,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):_R(n+1,2)},d:(e,t)=>_R(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>_R(e.getHours()%12||12,t.length),H:(e,t)=>_R(e.getHours(),t.length),m:(e,t)=>_R(e.getMinutes(),t.length),s:(e,t)=>_R(e.getSeconds(),t.length),S(e,t){const n=t.length,i=e.getMilliseconds();return _R(Math.trunc(i*Math.pow(10,n-3)),t.length)}},SR="midnight",CR="noon",kR="morning",xR="afternoon",TR="evening",ER="night",AR={G:H((function(e,t,n){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}}),"G"),y:H((function(e,t,n){if("yo"===t){const t=e.getFullYear(),i=t>0?t:1-t;return n.ordinalNumber(i,{unit:"year"})}return wR.y(e,t)}),"y"),Y:H((function(e,t,n,i){const r=yR(e,i),a=r>0?r:1-r;if("YY"===t){return _R(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):_R(a,t.length)}),"Y"),R:H((function(e,t){return _R(PM(e),t.length)}),"R"),u:H((function(e,t){return _R(e.getFullYear(),t.length)}),"u"),Q:H((function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return _R(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}}),"Q"),q:H((function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return _R(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}}),"q"),M:H((function(e,t,n){const i=e.getMonth();switch(t){case"M":case"MM":return wR.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}}),"M"),L:H((function(e,t,n){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return _R(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}}),"L"),w:H((function(e,t,n,i){const r=bR(e,i);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):_R(r,t.length)}),"w"),I:H((function(e,t,n){const i=gR(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):_R(i,t.length)}),"I"),d:H((function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):wR.d(e,t)}),"d"),D:H((function(e,t,n){const i=mR(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):_R(i,t.length)}),"D"),E:H((function(e,t,n){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}}),"E"),e:H((function(e,t,n,i){const r=e.getDay(),a=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return _R(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}}),"e"),c:H((function(e,t,n,i){const r=e.getDay(),a=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return _R(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}}),"c"),i:H((function(e,t,n){const i=e.getDay(),r=0===i?7:i;switch(t){case"i":return String(r);case"ii":return _R(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}}),"i"),a:H((function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}}),"a"),b:H((function(e,t,n){const i=e.getHours();let r;switch(r=12===i?CR:0===i?SR:i/12>
100=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}}),"b"),B:H((function(e,t,n){const i=e.getHours();let r;switch(r=i>=17?TR:i>=12?xR:i>=4?kR:ER,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}}),"B"),h:H((function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return wR.h(e,t)}),"h"),H:H((function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):wR.H(e,t)}),"H"),K:H((function(e,t,n){const i=e.getHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):_R(i,t.length)}),"K"),k:H((function(e,t,n){let i=e.getHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):_R(i,t.length)}),"k"),m:H((function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):wR.m(e,t)}),"m"),s:H((function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):wR.s(e,t)}),"s"),S:H((function(e,t){return wR.S(e,t)}),"S"),X:H((function(e,t,n){const i=e.getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return IR(i);case"XXXX":case"XX":return $R(i);default:return $R(i,":")}}),"X"),x:H((function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"x":return IR(i);case"xxxx":case"xx":return $R(i);default:return $R(i,":")}}),"x"),O:H((function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+LR(i,":");default:return"GMT"+$R(i,":")}}),"O"),z:H((function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+LR(i,":");default:return"GMT"+$R(i,":")}}),"z"),t:H((function(e,t,n){return _R(Math.trunc(+e/1e3),t.length)}),"t"),T:H((function(e,t,n){return _R(+e,t.length)}),"T")};function LR(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),r=Math.trunc(i/60),a=i%60;return 0===a?n+String(r):n+String(r)+t+_R(a,2)}function IR(e,t){if(e%60==0){return(e>0?"-":"+")+_R(Math.abs(e)/60,2)}return $R(e,t)}function $R(e,t=""){const n=e>0?"-":"+",i=Math.abs(e);return n+_R(Math.trunc(i/60),2)+t+_R(i%60,2)}H(LR,"formatTimezoneShort"),H(IR,"formatTimezoneWithOptionalMinutes"),H($R,"formatTimezone");const DR=H(((e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}),"dateLongFormatter"),PR=H(((e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}),"timeLongFormatter"),OR=H(((e,t)=>{const n=e.match(/(P+)(p+)?/)||[],i=n[1],r=n[2];if(!r)return DR(e,t);let a;switch(i){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",DR(i,t)).replace("{{time}}",PR(r,t))}),"dateTimeLongFormatter"),MR={p:PR,P:OR},RR=/^D+$/,NR=/^Y+$/,FR=["D","DD","YY","YYYY"];function BR(e){return RR.test(e)}function HR(e){return NR.test(e)}function jR(e,t,n){const i=UR(e,t,n);if(console.warn(i),FR.includes(e))throw new RangeError(i)}function UR(e,t,n){const i="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}H(BR,"isProtectedDayOfYearToken"),H(HR,"isProtectedWeekYearToken"),H(jR,"warnOrThrowProtectedError"),H(UR,"message$2");const VR=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qR=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zR=/^'([^]*?)'?$/,WR=/''/g,GR=/[a-zA-Z]/;function KR(e,t,n){var i,r,a,s,o,l,u,c,d,p,h,f,m,g,y,v,b,_;const w=IM(),S=null!=(r=null!=(i=null==n?void 0:n.locale)?i:w.locale)?r:fR,C=null!=(p=null!=(d=null!=(l=null!=(o=null==n?void 0:n.firstWeekContainsDate)?o:null==(s=null==(a=null==n?void 0:n.locale)?void 0:a.options)?void 0:s.firstWeekContainsDate)?l:w.firstWeekContainsDate)?d:null==(c=null==(u=w.locale)?void 0:u.options)?void 0:c.firstWeekContainsDate)?p:1,k=null!=(_=null!=(b=null!=(g=null!=(m=null==n?void 0:n.weekStartsOn)?m:null==(f=null==(h=null==n?void 0:n.locale)?void 0:h.options)?void 0:f.weekStartsOn)?g:w.weekStartsOn)?b:null==(v=null==(y=w.locale)?void 0:y.options)?void 0:v.weekStartsOn)?_:0,x=CM(e,null==n?void 0:n.in);if(!VM(x))throw new RangeError("Invalid time value");let T=t.match(qR).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,MR[t])(e,S.formatLong)}return e})).join("").match(VR).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:YR(e)};if(AR[t])return{isToken:!0,value:e};
100if(t.match(GR))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));S.localize.preprocessor&&(T=S.localize.preprocessor(x,T));const E={firstWeekContainsDate:C,weekStartsOn:k,locale:S};return T.map((i=>{if(!i.isToken)return i.value;const r=i.value;(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&HR(r)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&BR(r))&&jR(r,t,String(e));return(0,AR[r[0]])(x,r,S.localize,E)})).join("")}function YR(e){const t=e.match(zR);return t?t[1].replace(WR,"'"):e}function ZR(e,t){return CM(e,null==t?void 0:t.in).getDay()}function XR(e,t){const n=CM(e,null==t?void 0:t.in),i=n.getFullYear(),r=n.getMonth(),a=SM(n,0);return a.setFullYear(i,r+1,0),a.setHours(0,0,0,0),a.getDate()}function QR(){return Object.assign({},IM())}function JR(e,t){return CM(e,null==t?void 0:t.in).getHours()}function eN(e,t){const n=CM(e,null==t?void 0:t.in).getDay();return 0===n?7:n}function tN(e,t){return CM(e,null==t?void 0:t.in).getMinutes()}function nN(e,t){return CM(e,null==t?void 0:t.in).getMonth()}function iN(e){return CM(e).getSeconds()}function rN(e,t){return CM(e,null==t?void 0:t.in).getFullYear()}function aN(e,t){return+CM(e)>+CM(t)}function sN(e,t){return+CM(e)<+CM(t)}function oN(e,t){return+CM(e)==+CM(t)}function lN(e,t){const n=uN(t)?new t(0):SM(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function uN(e){var t;return"function"==typeof e&&(null==(t=e.prototype)?void 0:t.constructor)===e}H(KR,"format$2"),H(YR,"cleanEscapedString$1"),H(ZR,"getDay"),H(XR,"getDaysInMonth"),H(QR,"getDefaultOptions"),H(JR,"getHours"),H(eN,"getISODay"),H(tN,"getMinutes"),H(nN,"getMonth"),H(iN,"getSeconds"),H(rN,"getYear"),H(aN,"isAfter"),H(sN,"isBefore"),H(oN,"isEqual$1"),H(lN,"transpose"),H(uN,"isConstructor");const cN=class{constructor(){U(this,"subPriority",0)}validate(e,t){return!0}};H(cN,"Setter");let dN=cN;const pN=class extends dN{constructor(e,t,n,i,r){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=i,r&&(this.subPriority=r)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}};H(pN,"ValueSetter");let hN=pN;const fN=class extends dN{constructor(e,t){super(),U(this,"priority",10),U(this,"subPriority",-1),this.context=e||(e=>SM(t,e))}set(e,t){return t.timestampIsSet?e:SM(e,lN(e,this.context))}};H(fN,"DateTimezoneSetter");let mN=fN;const gN=class{run(e,t,n,i){const r=this.parse(e,t,n,i);return r?{setter:new hN(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(e,t,n){return!0}};H(gN,"Parser");let yN=gN;const vN=class extends yN{constructor(){super(...arguments),U(this,"priority",140),U(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}};H(vN,"EraParser");let bN=vN;const _N=/^(1[0-2]|0?\d)/,wN=/^(3[0-1]|[0-2]?\d)/,SN=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,CN=/^(5[0-3]|[0-4]?\d)/,kN=/^(2[0-3]|[0-1]?\d)/,xN=/^(2[0-4]|[0-1]?\d)/,TN=/^(1[0-1]|0?\d)/,EN=/^(1[0-2]|0?\d)/,AN=/^[0-5]?\d/,LN=/^[0-5]?\d/,IN=/^\d/,$N=/^\d{1,2}/,DN=/^\d{1,3}/,PN=/^\d{1,4}/,ON=/^-?\d+/,MN=/^-?\d/,RN=/^-?\d{1,2}/,NN=/^-?\d{1,3}/,FN=/^-?\d{1,4}/,BN=/^([+-])(\d{2})(\d{2})?|Z/,HN=/^([+-])(\d{2})(\d{2})|Z/,jN=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,UN=/^([+-])(\d{2}):(\d{2})|Z/,VN=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function qN(e,t){return e?{value:t(e.value),rest:e.rest}:e}function zN(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function WN(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const i="+"===n[1]?1:-1,r=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:i*(r*_M+6e4*a+1e3*s),rest:t.slice(n[0].length)}}function GN(e){return zN(ON,e)}function KN(e,t){switch(e){case 1:return zN(IN,t);case 2:return zN($N,t);case 3:return zN(DN,t);case 4:return zN(PN,t);default:return zN(new RegExp("^\\d{1,"+e+"}"),t)}}function YN(e,t){switch(e){case 1:return zN(MN,t);case 2:return zN(RN,t);case 3:return zN(NN,t);case 4:return zN(FN,t);default:return zN(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ZN(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function XN(e,t){const n=t>0,i=n?t:1-t;let r;if(i<=50)r=e||100;else{const t=i+50;r=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?r:1-r}function QN(e){return e%400==0||e%4==0&&e%100!=0}H(qN,"mapValue"),H(zN,"parseNumericPattern"),H(WN,"parseTimezonePattern"),H(GN,"parseAnyDigitsSigned"),H(KN,"parseNDigits"),H(YN,"parseNDigitsSigned"),H(ZN,"dayPeriodEnumToHours"),H(XN,"normalizeTwoDigitYear"),H(QN,"isLeapYearIndex");const JN=class extends yN{constructor(){super(...arguments),U(this,"priority",130),U(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,n){const i=H((e=>({year:e,isTwoDigitYear:"yy"===t})),"valueCallback");switch(t){case"y":return qN(KN(4,e),i);case"yo":return qN(n.ordinalNumber(e,{unit:"year"}),i);default:return qN(KN(t.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const i=e.getFullYear();if(n.isTwoDigitYear){const t=XN(n.year,i);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const r="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}};H(JN,"YearParser");let eF=JN;const tF=class extends yN{constructor(){super(...arguments),U(this,"priority",130),U(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,n){const i=H((e=>({year:e,isTwoDigitYear:"YY"===t})),"valueCallback");switch(t){case"Y":return qN(KN(4,e),i);case"Yo":return qN(n.ordinalNumber(e,{unit:"year"}),i);default:return qN(KN(t.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,i){const r=yR(e,i);if(n.isTwoDigitYear){const t=XN(n.year,r);return e.setFullYear(t,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),$M(e,i)}const a="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(a,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),$M(e,i)}};H(tF,"LocalWeekYearParser");let nF=tF;const iF=class extends yN{constructor(){super(...arguments),U(this,"priority",130),U(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return YN("R"===t?4:t.length,e)}set(e,t,n){const i=SM(e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),DM(i)}};H(iF,"ISOWeekYearParser");let rF=iF;const aF=class extends yN{constructor(){super(...arguments),U(this,"priority",130),U(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return YN("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}};H(aF,"ExtendedYearParser");let sF=aF;const oF=class extends yN{constructor(){super(...arguments),U(this,"priority",120),U(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"Q":case"QQ":return KN(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}};H(oF,"QuarterParser");let lF=oF;const uF=class extends yN{constructor(){super(...arguments),U(this,"priority",120),U(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"q":case"qq":return KN(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}};H(uF,"StandAloneQuarterParser");let cF=uF;const dF=class extends yN{constructor(){super(...arguments),U(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),U(this,"priority",110)}parse(e,t,n){const i=H((e=>e-1),"valueCallback");switch(t){case"M":return qN(zN(_N,e),i);case"MM":return qN(KN(2,e),i);case"Mo":return qN(n.ordinalNumber(e,{unit:"month"}),i);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}};H(dF,"MonthParser");let pF=dF;const hF=class extends yN{constructor(){super(...arguments),U(this,"priority",110),U(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,n){const i=H((e=>e-1),"valueCallback");switch(t){case"L":return qN(zN(_N,e),i);case"LL":return qN(KN(2,e),i);case"Lo":return qN(n.ordinalNumber(e,{unit:"month"}),i);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}};H(hF,"StandAloneMonthParser");let fF=hF;function mF(e,t,n){const i=CM(e,null==n?void 0:n.in),r=bR(i,n)-t;return i.setDate(i.getDate()-7*r),CM(i,null==n?void 0:n.in)}H(mF,"setWeek");const gF=class extends yN{constructor(){super(...arguments),U(this,"priority",100),U(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,n){switch(t){case"w":return zN(CN,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return KN(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,i){return $M(mF(e,n,i),i)}};H(gF,"LocalWeekParser");let yF=gF;function vF(e,t,n){const i=CM(e,null==n?void 0:n.in),r=gR(i,n)-t;return i.setDate(i.getDate()-7*r),i}H(vF,"setISOWeek");const bF=class extends yN{constructor(){super(...arguments),U(this,"priority",100),U(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,n){switch(t){case"I":return zN(CN,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return KN(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return DM(vF(e,n))}};H(bF,"ISOWeekParser");let _F=bF;const wF=[31,28,31,30,31,30,31,31,30,31,30,31],SF=[31,29,31,30,31,30,31,31,30,31,30,31],CF=class extends yN{constructor(){super(...arguments),U(this,"priority",90),U(this,"subPriority",1),U(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"d":return zN(wN,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return KN(t.length,e)}}validate(e,t){const n=QN(e.getFullYear()),i=e.getMonth();return n?t>=1&&t<=SF[i]:t>=1&&t<=wF[i]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}};H(CF,"DateParser");let kF=CF;
100const xF=class extends yN{constructor(){super(...arguments),U(this,"priority",90),U(this,"subpriority",1),U(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,n){switch(t){case"D":case"DD":return zN(SN,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return KN(t.length,e)}}validate(e,t){return QN(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}};H(xF,"DayOfYearParser");let TF=xF;function EF(e,t,n){var i,r,a,s,o,l,u,c;const d=IM(),p=null!=(c=null!=(u=null!=(s=null!=(a=null==n?void 0:n.weekStartsOn)?a:null==(r=null==(i=null==n?void 0:n.locale)?void 0:i.options)?void 0:r.weekStartsOn)?s:d.weekStartsOn)?u:null==(l=null==(o=d.locale)?void 0:o.options)?void 0:l.weekStartsOn)?c:0,h=CM(e,null==n?void 0:n.in),f=h.getDay(),m=7-p;return kM(h,t<0||t>6?t-(f+m)%7:((t%7+7)%7+m)%7-(f+m)%7,n)}H(EF,"setDay");const AF=class extends yN{constructor(){super(...arguments),U(this,"priority",90),U(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,i){return(e=EF(e,n,i)).setHours(0,0,0,0),e}};H(AF,"DayParser");let LF=AF;const IF=class extends yN{constructor(){super(...arguments),U(this,"priority",90),U(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,n,i){const r=H((e=>{const t=7*Math.floor((e-1)/7);return(e+i.weekStartsOn+6)%7+t}),"valueCallback");switch(t){case"e":case"ee":return qN(KN(t.length,e),r);case"eo":return qN(n.ordinalNumber(e,{unit:"day"}),r);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,i){return(e=EF(e,n,i)).setHours(0,0,0,0),e}};H(IF,"LocalDayParser");let $F=IF;const DF=class extends yN{constructor(){super(...arguments),U(this,"priority",90),U(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,n,i){const r=H((e=>{const t=7*Math.floor((e-1)/7);return(e+i.weekStartsOn+6)%7+t}),"valueCallback");switch(t){case"c":case"cc":return qN(KN(t.length,e),r);case"co":return qN(n.ordinalNumber(e,{unit:"day"}),r);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,i){return(e=EF(e,n,i)).setHours(0,0,0,0),e}};H(DF,"StandAloneLocalDayParser");let PF=DF;function OF(e,t,n){const i=CM(e,null==n?void 0:n.in);return kM(i,t-eN(i,n),n)}H(OF,"setISODay");const MF=class extends yN{constructor(){super(...arguments),U(this,"priority",90),U(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,n){const i=H((e=>0===e?7:e),"valueCallback");switch(t){case"i":case"ii":return KN(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return qN(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return qN(n.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return qN(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i);default:return qN(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=OF(e,n)).setHours(0,0,0,0),e}};H(MF,"ISODayParser");let RF=MF;const NF=class extends yN{constructor(){super(...arguments),U(this,"priority",80),U(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(ZN(n),0,0,0),e}};H(NF,"AMPMParser");let FF=NF;const BF=class extends yN{constructor(){super(...arguments),U(this,"priority",80),U(this,"incompatibleTokens",["a","B","H","k","t","T"])}
100parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(ZN(n),0,0,0),e}};H(BF,"AMPMMidnightParser");let HF=BF;const jF=class extends yN{constructor(){super(...arguments),U(this,"priority",80),U(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(ZN(n),0,0,0),e}};H(jF,"DayPeriodParser");let UF=jF;const VF=class extends yN{constructor(){super(...arguments),U(this,"priority",70),U(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,n){switch(t){case"h":return zN(EN,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return KN(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const i=e.getHours()>=12;return i&&n<12?e.setHours(n+12,0,0,0):i||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}};H(VF,"Hour1to12Parser");let qF=VF;const zF=class extends yN{constructor(){super(...arguments),U(this,"priority",70),U(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,n){switch(t){case"H":return zN(kN,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return KN(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}};H(zF,"Hour0to23Parser");let WF=zF;const GF=class extends yN{constructor(){super(...arguments),U(this,"priority",70),U(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,n){switch(t){case"K":return zN(TN,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return KN(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}};H(GF,"Hour0To11Parser");let KF=GF;const YF=class extends yN{constructor(){super(...arguments),U(this,"priority",70),U(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,n){switch(t){case"k":return zN(xN,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return KN(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const i=n<=24?n%24:n;return e.setHours(i,0,0,0),e}};H(YF,"Hour1To24Parser");let ZF=YF;const XF=class extends yN{constructor(){super(...arguments),U(this,"priority",60),U(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"m":return zN(AN,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return KN(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}};H(XF,"MinuteParser");let QF=XF;const JF=class extends yN{constructor(){super(...arguments),U(this,"priority",50),U(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"s":return zN(LN,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return KN(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}};H(JF,"SecondParser");let eB=JF;const tB=class extends yN{constructor(){super(...arguments),U(this,"priority",30),U(this,"incompatibleTokens",["t","T"])}parse(e,t){const n=H((e=>Math.trunc(e*Math.pow(10,3-t.length))),"valueCallback");return qN(KN(t.length,e),n)}set(e,t,n){return e.setMilliseconds(n),e}};H(tB,"FractionOfSecondParser");let nB=tB;const iB=class extends yN{constructor(){super(...arguments),U(this,"priority",10),U(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return WN(BN,e);case"XX":return WN(HN,e);case"XXXX":return WN(jN,e);case"XXXXX":return WN(VN,e);default:return WN(UN,e)}}set(e,t,n){return t.timestampIsSet?e:SM(e,e.getTime()-OM(e)-n)}};H(iB,"ISOTimezoneWithZParser");let rB=iB;const aB=class extends yN{constructor(){super(...arguments),U(this,"priority",10),U(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return WN(BN,e);case"xx":return WN(HN,e);case"xxxx":return WN(jN,e);case"xxxxx":return WN(VN,e);default:return WN(UN,e)}}set(e,t,n){return t.timestampIsSet?e:SM(e,e.getTime()-OM(e)-n)}};H(aB,"ISOTimezoneParser");let sB=aB;const oB=class extends yN{constructor(){super(...arguments),U(this,"priority",40),U(this,"incompatibleTokens","*")}parse(e){return GN(e)}set(e,t,n){return[SM(e,1e3*n),{timestampIsSet:!0}]}};H(oB,"TimestampSecondsParser");let lB=oB;const uB=class extends yN{constructor(){super(...arguments),U(this,"priority",20),U(this,"incompatibleTokens","*")}parse(e){return GN(e)}set(e,t,n){return[SM(e,n),{timestampIsSet:!0}]}};H(uB,"TimestampMillisecondsParser");let cB=uB;const dB={G:new bN,y:new eF,Y:new nF,R:new rF,u:new sF,Q:new lF,q:new cF,M:new pF,L:new fF,w:new yF,I:new _F,d:new kF,D:new TF,E:new LF,e:new $F,c:new PF,i:new RF,a:new FF,b:new HF,B:new UF,h:new qF,H:new WF,K:new KF,k:new ZF,m:new Q
100F,s:new eB,S:new nB,X:new rB,x:new sB,t:new lB,T:new cB},pB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fB=/^'([^]*?)'?$/,mB=/''/g,gB=/\S/,yB=/[a-zA-Z]/;function vB(e,t,n,i){var r,a,s,o,l,u,c,d,p,h,f,m,g,y,v,b,_,w;const S=H((()=>SM((null==i?void 0:i.in)||n,NaN)),"invalidDate"),C=QR(),k=null!=(a=null!=(r=null==i?void 0:i.locale)?r:C.locale)?a:fR,x=null!=(h=null!=(p=null!=(u=null!=(l=null==i?void 0:i.firstWeekContainsDate)?l:null==(o=null==(s=null==i?void 0:i.locale)?void 0:s.options)?void 0:o.firstWeekContainsDate)?u:C.firstWeekContainsDate)?p:null==(d=null==(c=C.locale)?void 0:c.options)?void 0:d.firstWeekContainsDate)?h:1,T=null!=(w=null!=(_=null!=(y=null!=(g=null==i?void 0:i.weekStartsOn)?g:null==(m=null==(f=null==i?void 0:i.locale)?void 0:f.options)?void 0:m.weekStartsOn)?y:C.weekStartsOn)?_:null==(b=null==(v=C.locale)?void 0:v.options)?void 0:b.weekStartsOn)?w:0;if(!t)return e?S():CM(n,null==i?void 0:i.in);const E={firstWeekContainsDate:x,weekStartsOn:T,locale:k},A=[new mN(null==i?void 0:i.in,n)],L=t.match(hB).map((e=>{const t=e[0];if(t in MR){return(0,MR[t])(e,k.formatLong)}return e})).join("").match(pB),I=[];for(let O of L){!(null==i?void 0:i.useAdditionalWeekYearTokens)&&HR(O)&&jR(O,t,e),!(null==i?void 0:i.useAdditionalDayOfYearTokens)&&BR(O)&&jR(O,t,e);const n=O[0],r=dB[n];if(r){const{incompatibleTokens:t}=r;if(Array.isArray(t)){const e=I.find((e=>t.includes(e.token)||e.token===n));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${O}\` at the same time`)}else if("*"===r.incompatibleTokens&&I.length>0)throw new RangeError(`The format string mustn't contain \`${O}\` and any other token at the same time`);I.push({token:n,fullToken:O});const i=r.run(e,O,k.match,E);if(!i)return S();A.push(i.setter),e=i.rest}else{if(n.match(yB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===O?O="'":"'"===n&&(O=bB(O)),0!==e.indexOf(O))return S();e=e.slice(O.length)}}if(e.length>0&&gB.test(e))return S();const $=A.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>A.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let D=CM(n,null==i?void 0:i.in);if(isNaN(+D))return S();const P={};for(const O of $){if(!O.validate(D,E))return S();const e=O.set(D,P,E);Array.isArray(e)?(D=e[0],Object.assign(P,e[1])):D=e}return D}function bB(e){return e.match(fB)[1].replace(mB,"'")}function _B(e,t,n){const[i,r]=MM(null==n||n.in,e,t);return+YM(i)==+YM(r)}function wB(e,t,n){return kM(e,-t,n)}function SB(e,t,n){const i=CM(e,null==n?void 0:n.in),r=i.getFullYear(),a=i.getDate(),s=SM(e,0);s.setFullYear(r,t,15),s.setHours(0,0,0,0);const o=XR(s);return i.setMonth(t,Math.min(a,o)),i}function CB(e,t,n){let i=CM(e,null==n?void 0:n.in);return isNaN(+i)?SM(e,NaN):(null!=t.year&&i.setFullYear(t.year),null!=t.month&&(i=SB(i,t.month)),null!=t.date&&i.setDate(t.date),null!=t.hours&&i.setHours(t.hours),null!=t.minutes&&i.setMinutes(t.minutes),null!=t.seconds&&i.setSeconds(t.seconds),null!=t.milliseconds&&i.setMilliseconds(t.milliseconds),i)}function kB(e,t,n){const i=CM(e,null==n?void 0:n.in);return i.setHours(t),i}function xB(e,t,n){const i=CM(e,null==n?void 0:n.in);return i.setMilliseconds(t),i}function TB(e,t,n){const i=CM(e,null==n?void 0:n.in);return i.setMinutes(t),i}function EB(e,t,n){const i=CM(e,null==n?void 0:n.in);return i.setSeconds(t),i}function AB(e,t,n){const i=CM(e,null==n?void 0:n.in);return isNaN(+i)?SM(e,NaN):(i.setFullYear(t),i)}function LB(e,t,n){return xM(e,-t,n)}function IB(e,t,n){const{years:i=0,months:r=0,weeks:a=0,days:s=0,hours:o=0,minutes:l=0,seconds:u=0}=t;return SM(e,+wB(LB(e,r+12*i,n),s+7*a,n)-1e3*(u+60*(l+60*o)))}function $B(e,t,n){return HM(e,-t,n)}function DB(){const e=ca();return As(),Ps("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},e),[Bs("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),Bs("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),Bs("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),Bs("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}function PB(){return As(),Ps("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"
100currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[Bs("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),Bs("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function OB(){return As(),Ps("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[Bs("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function MB(){return As(),Ps("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[Bs("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}function RB(){return As(),Ps("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[Bs("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),Bs("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}function NB(){return As(),Ps("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[Bs("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function FB(){return As(),Ps("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[Bs("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}H(vB,"parse$1"),H(bB,"cleanEscapedString"),H(_B,"isSameQuarter"),H(wB,"subDays"),H(SB,"setMonth"),H(CB,"set"),H(kB,"setHours"),H(xB,"setMilliseconds"),H(TB,"setMinutes"),H(EB,"setSeconds"),H(AB,"setYear"),H(LB,"subMonths"),H(IB,"sub$1"),H($B,"subYears"),H(DB,"Gt$2"),DB.compatConfig={MODE:3},H(PB,"Tn$3"),PB.compatConfig={MODE:3},H(OB,"Wa$1"),OB.compatConfig={MODE:3},H(MB,"Va$2"),MB.compatConfig={MODE:3},H(RB,"ja$1"),RB.compatConfig={MODE:3},H(NB,"Ka$1"),NB.compatConfig={MODE:3},H(FB,"Ga$1"),FB.compatConfig={MODE:3};const BB=H(((e,t)=>t?new Date(e.toLocaleString("en-US",{timeZone:t})):new Date(e)),"tt$2"),HB=H(((e,t,n)=>UB(e,t,n)||$H()),"Qa$1"),jB=H(((e,t,n)=>{const i=t.dateInTz?BB(new Date(e),t.dateInTz):$H(e);return n?PH(i,!0):i}),"kl$1"),UB=H(((e,t,n)=>{if(!e)return null;const i=n?PH($H(e),!0):$H(e);return t?t.exactMatch?jB(e,t,n):BB(i,t.timezone):i}),"La$2"),VB=H((e=>{const t=new Date(e.getFullYear(),0,1).getTimezoneOffset();return e.getTimezoneOffset()<t}),"wl$1"),qB=H(((e,t)=>{if(!e)return 0;const n=new Date,i=new Date(n.toLocaleString("en-US",{timeZone:"UTC"})),r=new Date(n.toLocaleString("en-US",{timeZone:e}));return(+i-+r)/36e5-(VB(null!=t?t:r)?r:null!=t?t:r).getTimezoneOffset()/60}),"Dl$2");var zB=(e=>(e.month="month",e.year="year",e))(zB||{}),WB=(e=>(e.top="top",e.bottom="bottom",e))(WB||{}),GB=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(GB||{}),KB=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(KB||{});const YB=["timestamp","date","iso"];var ZB=(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(ZB||{}),XB=(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter
100="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(XB||{}),QB=(e=>(e.MONTH_AND_YEAR="MM-yyyy",e.YEAR="yyyy",e.DATE="dd-MM-yyyy",e))(QB||{});function JB(e){return t=>{const n=new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`));return"ar"===e?n.slice(2,5):n.slice(0,2)}}function eH(e){return t=>KR(BB(new Date(`2017-01-0${t}T00:00:00+00:00`),"UTC"),"EEEEEE",{locale:e})}H(JB,"sn"),H(eH,"$l$2");const tH=H(((e,t,n)=>{const i=[1,2,3,4,5,6,7];let r;if(null!==e)try{r=i.map(eH(e))}catch(o){r=i.map(JB(t))}else r=i.map(JB(t));const a=r.slice(0,n),s=r.slice(n+1,r.length);return[r[n]].concat(...s).concat(...a)}),"Al$2"),nH=H(((e,t,n)=>{const i=[];for(let r=+e[0];r<=+e[1];r++)i.push({value:+r,text:_H(r,t)});return n?i.reverse():i}),"qa$1"),iH=H(((e,t,n)=>{const i=[1,2,3,4,5,6,7,8,9,10,11,12].map((e=>new Date(`2017-${e<10?`0${e}`:e}-01T00:00:00+00:00`)));if(null!==e)try{const t="long"===n?"LLLL":"LLL";return i.map(((n,i)=>{const r=KR(BB(n,"UTC"),t,{locale:e});return{text:r.charAt(0).toUpperCase()+r.substring(1),value:i}}))}catch(a){}const r=new Intl.DateTimeFormat(t,{month:n,timeZone:"UTC"});return i.map(((e,t)=>{const n=r.format(e);return{text:n.charAt(0).toUpperCase()+n.substring(1),value:t}}))}),"Sn$3"),rH=H((e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e]),"Tl$2"),aH=H((e=>{const t=$n(e);return null!=t&&t.$el?null==t?void 0:t.$el:t}),"He$1"),sH=H((e=>F({type:"dot"},null!=e?e:{})),"Sl$1"),oH=H((e=>!!Array.isArray(e)&&(!!e[0]&&!!e[1])),"Pn$3"),lH={prop:H((e=>`"${e}" prop must be enabled!`),"prop"),dateArr:H((e=>`You need to use array as "model-value" binding in order to support "${e}"`),"dateArr")},uH=H((e=>e),"ze$2"),cH=H((e=>0===e?e:!e||isNaN(+e)?null:+e),"un"),dH=H((e=>null===e),"dn"),pH=H((e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]}),"Rn$3"),hH=H((e=>{const t=[],n=H((e=>e.filter((e=>e))),"r");for(let i=0;i<e.length;i+=3){const r=[e[i],e[i+1],e[i+2]];t.push(n(r))}return t}),"Pl$3"),fH=H(((e,t,n)=>{const i=null!=n,r=null!=t;if(!i&&!r)return!1;const a=+n,s=+t;return i&&r?+e>a||+e<s:i?+e>a:!!r&&+e<s}),"xt$1"),mH=H(((e,t)=>hH(e).map((e=>e.map((e=>{const{active:n,disabled:i,isBetween:r,highlighted:a}=t(e);return B(F({},e),{active:n,disabled:i,className:{dp__overlay_cell_active:n,dp__overlay_cell:!n,dp__overlay_cell_disabled:i,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:i&&n,dp__cell_in_between:r,"dp--highlighted":a}})}))))),"Wt$1"),gH=H(((e,t,n=!1)=>{e&&t.allowStopPropagation&&(n&&e.stopImmediatePropagation(),e.stopPropagation())}),"$t$2"),yH=H((()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ")),"Rl$3");function vH(e,t){let n=[...document.querySelectorAll(yH())];n=n.filter((t=>!e.contains(t)||t.hasAttribute("data-datepicker-instance")));const i=n.indexOf(e);if(i>=0&&(t?i-1>=0:i+1<=n.length))return n[i+(t?-1:1)]}H(vH,"Cl$1");const bH=H(((e,t)=>null==e?void 0:e.querySelector(`[data-dp-element="${t}"]`)),"Fa$1"),_H=H(((e,t)=>new Intl.NumberFormat(t,{useGrouping:!1,style:"decimal"}).format(e)),"Cn$3"),wH=H(((e,t)=>KR(e,null!=t?t:QB.DATE)),"Ja$1"),SH=H((e=>Array.isArray(e)),"Ta$2"),CH=H(((e,t,n)=>t.get(wH(e,n))),"va$1"),kH=H(((e,t)=>!e||!!t&&(t instanceof Map?!!CH(e,t):t($H(e)))),"Ol$1"),xH=H(((e,t,n=!1,i)=>e.key===XB.enter||e.key===XB.space?(n&&e.preventDefault(),t()):i?i(e):void 0),"xe$1"),TH=H((()=>"ontouchstart"in window||navigator.maxTouchPoints>0),"Bl$1"),EH=H(((e,t)=>e?QB.MONTH_AND_YEAR:t?QB.YEAR:QB.DATE),"On$3"),AH=H((e=>e<10?`0${e}`:e),"Bn$3"),LH=H(((e,t,n,i,r,a)=>{const s=vB(e,t.slice(0,e.length),new Date,{locale:a});return VM(s)&&UM(s)?i||r?s:CB(s,{hours:+n.hours,minutes:+(null==n?void 0:n.minutes),seconds:+(null==n?void 0:n.seconds),milliseconds:0}):null}),"cn$1"),IH=H(((e,t,n,i,r,a)=>{const s=Array.isArray(n)?n[0]:n;if("string"==typeof t)return LH(e,t,s,i,r,a);if(Array.isArray(t)){let n=null;for(const o of t)if(n=LH(e,o,s,i,r,a),n)break;return n}return"function"==typeof t?t(e):null}),"_l$1"),$H=H((e=>e?new Date(e):new Date),"K$2"),DH=H(((e,t,n)=>{if(t){const t=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),a=e.getMinutes().toString().padStart(2,"0"),s=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${t}-${i}T${r}:${a}:${s}.000Z`}const i=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(i).toISOString()}),"Yl$2"),PH=H(((e,t)=>{const n=CB($H(JSON.parse(JSON.stringify(e))),{hours:0,minutes:0,seconds:0,milliseconds:0});return t?XM(n):n}),"je$3"),OH=H(((e,t,n,i)=>{let r=e?$H(e):$H();return(t||0===t)&&(r=kB(r,+t)),(n||0===n)&&(r=TB(r,+n)),(i||0===i)&&(r=EB(r,+i)),xB(r,0)}),"At$2"),MH=H(((e,t)=>!(!e||!t)&&sN(PH(e),PH(t))),"Ne$2"),RH=H(((e,t)=>!(!e||!t)&&oN(PH(e),PH(t))),"Te$2"),NH=H(((e,t)=>!(!e||!t)&&aN(PH(e),PH(t))),"Fe$2"),FH=H(((e,t,n)=>null!=e&&e[0]&&null!=e&&e[1]?NH(n,e[0])&&MH(n,e[1]):!(null==e||!e[0]||!t)&&(NH(n,e[0])&&MH(n,t)||MH(n,e[0])&&NH(n,t))),"ea$1"),BH=H((e=>{const t=CB(new Date(e),{date:1});return PH(t)}),"dt$3"),HH=H(((e,t,n)=>t&&(n||0===n)?Object.fromEntries(["hours","minutes","seconds"].map((i=>i===t?[i,n]:[i,isNaN(+e[i])?void 0:+e[i]]))):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds}),"Sa$2"),jH=H((e=>({hours:JR(e),minutes:tN(e),seconds:iN(e)})),"Yt$1"),UH=H(((e,t)=>{if(t){const n=rN($H(t));if(n>e)return 12;if(n===e)return nN($H(t))}}),"_n$3"),VH=H(((e,t)=>{if(t){const n=rN($H(t));return n<e?-1:n===e?nN($H(t)):void 0}}),"Yn$1"),qH=H((e=>{if(e)return rN($H(e))}),"Vt$1"),zH=H(((e,t)=>KM({start:NH(e,t)?t:e,end:NH(t,e)?t:e})),"In$3"),WH=H((e=>{const t=xM(e,1);return{month:nN(t),year:rN(t)}}),"Il$2"),GH=H(((e,t)=>[$M(e,{weekStartsOn:+t}),eR(e,{weekStartsOn:+t})]),"gt$2"),KH=H(((e,t)=>{const n={hours:JR($H()),minutes:tN($H()),seconds:t?iN($H()):0};return Object.assign(n,e)}),"En$3"),YH=H(((e,t,n)=>[CB($H(e),{date:1}),CB($H(),{month:t,year:n,date:1})]),"Mt$1"),ZH=H(((e,t,n)=>{let i=e?$H(e):$H();return(t||0===t)&&(i=SB(i,t)),n&&(i=AB(i,n)),i}),"ht$2"),XH=H(((e,t,n,i,r)=>{if(!i||r&&!t||!r&&!n)return!1;const a=r?xM(e,1):LB(e,1),s=[nN(a),rN(a)];return r?!JH(...s,t):!QH(...s,n)}),"Nn$3"),QH=H(((e,t,n)=>MH(...YH(n,e,t))||RH(...YH(n,e,t))),"El$3"),JH=H(((e,t,n)=>NH(...YH(n,e,t))||RH(...YH(n,e,t))),"Nl$2"),ej=H(((e,t,n,i,r,a,s)=>{if("function"==typeof t&&!s)return t(e);const o=n?{locale:n}:void 0;return Array.isArray(e)?`${KR(e[0],a,o)}${r&&!e[1]?"":i}${e[1]?KR(e[1],a,o):""}`:KR(e,a,o)}),"Ln$3"),tj=H((e=>{if(e)return null;throw new Error(lH.prop("partial-range"))}),"Nt$1"),nj=H(((e,t)=>{if(t)return e();throw new Error(lH.prop("range"))}),"sa$1"),ij=H((e=>Array.isArray(e)?VM(e[0])&&(!e[1]||VM(e[1])):!!e&&VM(e)),"za$1"),rj=H(((e,t)=>CB(null!=t?t:$H(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0})),"Ll$1"),aj=H(((e,t,n,i)=>{if(!e)return!0;
100if(i){const i={seconds:0,milliseconds:0};return("max"===n?sN(e,t):aN(e,t))||oN(CB(e,i),CB(t,i))}return"max"===n?e.getTime()<=t.getTime():e.getTime()>=t.getTime()}),"Pa$2"),sj=H(((e,t,n)=>e?rj(e,t):$H(null!=n?n:t)),"Ra$2"),oj=H(((e,t,n,i,r)=>{if(Array.isArray(i)){const a=sj(e,i[0],t),s=sj(e,i[1],t);return aj(i[0],a,n,!!t)&&aj(i[1],s,n,!!t)&&r}const a=sj(e,i,t);return aj(i,a,n,!!t)&&r}),"fn$1"),lj=H((e=>CB($H(),jH(e))),"Ca$2"),uj=H(((e,t,n)=>{if(e instanceof Map){const i=`${AH(n+1)}-${t}`;return!!e.size&&e.has(i)}return"function"==typeof e&&e(PH(CB($H(),{month:n,year:t}),!0))}),"Fl$2"),cj=H(((e,t,n)=>{if(e instanceof Map){const i=`${AH(n+1)}-${t}`;return!e.size||e.has(i)}return!0}),"zl$2"),dj=H(((e,t,n)=>"function"==typeof e?e({month:t,year:n}):!!e.months.find((e=>e.month===t&&e.year===n))),"Fn$3"),pj=H(((e,t)=>"function"==typeof e?e(t):e.years.includes(t)),"Za$1"),hj=H((e=>`dp-${KR(e,"yyyy-MM-dd")}`),"Ha$2"),fj=H(((e,t)=>({before:wB(PH(t),e),after:kM(PH(t),e)})),"vn$2"),mj=pn({menuFocused:!1,shiftKeyInMenu:!1}),gj=H((()=>{const e=H((e=>{mj.menuFocused=e}),"e"),t=H((e=>{mj.shiftKeyInMenu!==e&&(mj.shiftKeyInMenu=e)}),"t");return{control:Co((()=>({shiftKeyInMenu:mj.shiftKeyInMenu,menuFocused:mj.menuFocused}))),setMenuFocused:e,setShiftKey:t}}),"zn$3"),yj=pn({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),vj=Tn(null),bj=Tn(!1),_j=Tn(!1),wj=Tn(!1),Sj=Tn(!1),Cj=Tn(0),kj=Tn(0),xj=H((()=>{const e=Co((()=>bj.value?[...yj.selectionGrid,yj.actionRow].filter((e=>e.length)):_j.value?[...yj.timePicker[0],...yj.timePicker[1],Sj.value?[]:[vj.value],yj.actionRow].filter((e=>e.length)):wj.value?[...yj.monthPicker,yj.actionRow]:[yj.monthYear,...yj.calendar,yj.time,yj.actionRow].filter((e=>e.length)))),t=H((t=>{Cj.value=t?Cj.value+1:Cj.value-1;let n=null;e.value[kj.value]&&(n=e.value[kj.value][Cj.value]),!n&&e.value[kj.value+(t?1:-1)]?(kj.value=kj.value+(t?1:-1),Cj.value=t?0:e.value[kj.value].length-1):n||(Cj.value=t?Cj.value-1:Cj.value+1)}),"t"),n=H((t=>{0===kj.value&&!t||kj.value===e.value.length&&t||(kj.value=t?kj.value+1:kj.value-1,e.value[kj.value]?e.value[kj.value]&&!e.value[kj.value][Cj.value]&&0!==Cj.value&&(Cj.value=e.value[kj.value].length-1):kj.value=t?kj.value-1:kj.value+1)}),"r"),i=H((t=>{let n=null;e.value[kj.value]&&(n=e.value[kj.value][Cj.value]),n?n.focus({preventScroll:!bj.value}):Cj.value=t?Cj.value-1:Cj.value+1}),"a"),r=H((()=>{t(!0),i(!0)}),"n"),a=H((()=>{t(!1),i(!1)}),"u"),s=H((()=>{n(!1),i(!0)}),"c"),o=H((()=>{n(!0),i(!0)}),"p"),l=H(((e,t)=>{yj[t]=e}),"d"),u=H(((e,t)=>{yj[t]=e}),"Y"),c=H((()=>{Cj.value=0,kj.value=0}),"f");return{buildMatrix:l,buildMultiLevelMatrix:u,setTimePickerBackRef:H((e=>{vj.value=e}),"setTimePickerBackRef"),setSelectionGrid:H((e=>{bj.value=e,c(),e||(yj.selectionGrid=[])}),"setSelectionGrid"),setTimePicker:H(((e,t=!1)=>{_j.value=e,Sj.value=t,c(),e||(yj.timePicker[0]=[],yj.timePicker[1]=[])}),"setTimePicker"),setTimePickerElements:H(((e,t=0)=>{yj.timePicker[t]=e}),"setTimePickerElements"),arrowRight:r,arrowLeft:a,arrowUp:s,arrowDown:o,clearArrowNav:H((()=>{yj.monthYear=[],yj.calendar=[],yj.time=[],yj.actionRow=[],yj.selectionGrid=[],yj.timePicker[0]=[],yj.timePicker[1]=[],bj.value=!1,_j.value=!1,Sj.value=!1,wj.value=!1,c(),vj.value=null}),"clearArrowNav"),setMonthPicker:H((e=>{wj.value=e,c()}),"setMonthPicker"),refSets:yj}}),"St$2"),Tj=H((e=>F({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down"},null!=e?e:{})),"mn"),Ej=H((e=>F({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:H((e=>`Increment ${e}`),"incrementValue"),decrementValue:H((e=>`Decrement ${e}`),"decrementValue"),openTpOverlay:H((e=>`Open ${e} overlay`),"openTpOverlay"),amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,clearInput:"Clear value",calendarIcon:"Calendar icon",timePicker:"Time picker",monthPicker:H((e=>"Month picker"+(e?" overlay":"")),"monthPicker"),yearPicker:H((e=>"Year picker"+(e?" overlay":"")),"yearPicker"),timeOverlay:H((e=>`${e} overlay`),"timeOverlay")},null!=e?e:{})),"Hl$1"),Aj=H((e=>e?"boolean"==typeof e?e?2:0:+e>=2?+e:2:0),"pn"),Lj=H((e=>{var t;const n="object"==typeof e&&e,i={static:!0,solo:!1};if(!e)return B(F({},i),{count:Aj(!1)});const r=n?e:{}
100,a=n?null==(t=r.count)||t:e,s=Aj(a);return Object.assign(i,r,{count:s})}),"Ul$2"),Ij=H(((e,t,n)=>e||("string"==typeof n?n:t)),"Wl$2"),$j=H((e=>"boolean"==typeof e?!!e&&Tj({}):Tj(e)),"Vl$2"),Dj=H((e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:"open",selectOnFocus:!1,rangeSeparator:" - ",escClose:!0};return"object"==typeof e?B(F(F({},t),null!=e?e:{}),{enabled:!0}):B(F({},t),{enabled:e})}),"jl$2"),Pj=H((e=>F({months:[],years:[],times:{hours:[],minutes:[],seconds:[]}},null!=e?e:{})),"Kl$1"),Oj=H((e=>F({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0},null!=e?e:{})),"Gl$2"),Mj=H((e=>{const t={input:!1};return"object"==typeof e?B(F(F({},t),null!=e?e:{}),{enabled:!0}):F({enabled:e},t)}),"Ql$3"),Rj=H((e=>F(F({},{allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,shadowDom:!1,mobileBreakpoint:600,setDateOnMenuClose:!1}),null!=e?e:{})),"ql$2"),Nj=H((e=>{const t={dates:Array.isArray(e)?e.map((e=>$H(e))):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return"function"==typeof e?e:F(F({},t),null!=e?e:{})}),"Xl$2"),Fj=H((e=>{var t,n;return"object"==typeof e?{type:null!=(t=null==e?void 0:e.type)?t:"local",hideOnOffsetDates:null!=(n=null==e?void 0:e.hideOnOffsetDates)&&n}:{type:e,hideOnOffsetDates:!1}}),"Jl$3"),Bj=H((e=>{const t={noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1};return"object"==typeof e?F(F({enabled:!0},t),e):F({enabled:e},t)}),"Zl$2"),Hj=H((e=>{var t,n,i,r;return e?"string"==typeof e?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:void 0,convertModel:!0}:{timezone:e.timezone,exactMatch:null!=(t=e.exactMatch)&&t,dateInTz:null!=(n=e.dateInTz)?n:void 0,emitTimezone:null!=(i=e.emitTimezone)?i:void 0,convertModel:null==(r=e.convertModel)||r}:{timezone:void 0,exactMatch:!1,emitTimezone:void 0}}),"xl$1"),jj=H(((e,t,n,i)=>new Map(e.map((e=>{const r=HB(e,t,i);return[wH(r,n),r]})))),"Ia$2"),Uj=H(((e,t)=>e.length?new Map(e.map((e=>{const n=HB(e.date,t);return[wH(n,QB.DATE),e]}))):null),"er$1"),Vj=H((e=>{var t;const n=EH(e.isMonthPicker,e.isYearPicker);return{minDate:UB(e.minDate,e.timezone,e.isSpecific),maxDate:UB(e.maxDate,e.timezone,e.isSpecific),disabledDates:SH(e.disabledDates)?jj(e.disabledDates,e.timezone,n,e.
100isSpecific):e.disabledDates,allowedDates:SH(e.allowedDates)?jj(e.allowedDates,e.timezone,n,e.isSpecific):null,highlight:"object"==typeof e.highlight&&SH(null==(t=e.highlight)?void 0:t.dates)?jj(e.highlight.dates,e.timezone,n):e.highlight,markers:Uj(e.markers,e.timezone)}}),"tr$1"),qj=H((e=>{var t;return"boolean"==typeof e?{enabled:e,dragSelect:!0,limit:null}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:null==(t=e.dragSelect)||t}}),"ar$1"),zj=H((e=>F({},Object.fromEntries(Object.keys(e).map((t=>{const n=t,i=e[n];return[t,"string"==typeof e[n]?{[i]:!0}:Object.fromEntries(i.map((e=>[e,!0])))]}))))),"nr$1"),Wj=H((e=>{const t=H((()=>{const t=e.enableSeconds?":ss":"",n=e.enableMinutes?":mm":"";return e.is24?`HH${n}${t}`:`hh${n}${t} aa`}),"t"),n=H((()=>{var n;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?("iso"===(null==(n=g.value)?void 0:n.type)?"II":"ww")+"-RR":e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${t()}`:"MM/dd/yyyy"}),"r"),i=H((t=>KH(t,e.enableSeconds)),"a"),r=H((()=>_.value.enabled?e.startTime&&Array.isArray(e.startTime)?[i(e.startTime[0]),i(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?i(e.startTime):null),"n"),a=Co((()=>Lj(e.multiCalendars))),s=Co((()=>r())),o=Co((()=>Ej(e.ariaLabels))),l=Co((()=>Pj(e.filters))),u=Co((()=>$j(e.transitions))),c=Co((()=>Oj(e.actionRow))),d=Co((()=>Ij(e.previewFormat,e.format,n()))),p=Co((()=>Dj(e.textInput))),h=Co((()=>Mj(e.inline))),f=Co((()=>Rj(e.config))),m=Co((()=>Nj(e.highlight))),g=Co((()=>Fj(e.weekNumbers))),y=Co((()=>Hj(e.timezone))),v=Co((()=>qj(e.multiDates))),b=Co((()=>Vj({minDate:e.minDate,maxDate:e.maxDate,disabledDates:e.disabledDates,allowedDates:e.allowedDates,highlight:m.value,markers:e.markers,timezone:y.value,isSpecific:e.monthPicker||e.yearPicker||e.quarterPicker,isMonthPicker:e.monthPicker,isYearPicker:e.yearPicker}))),_=Co((()=>Bj(e.range))),w=Co((()=>zj(e.ui)));return{defaultedTransitions:u,defaultedMultiCalendars:a,defaultedStartTime:s,defaultedAriaLabels:o,defaultedFilters:l,defaultedActionRow:c,defaultedPreviewFormat:d,defaultedTextInput:p,defaultedInline:h,defaultedConfig:f,defaultedHighlight:m,defaultedWeekNumbers:g,defaultedRange:_,propDates:b,defaultedTz:y,defaultedMultiDates:v,defaultedUI:w,getDefaultPattern:n,getDefaultStartTime:r,handleEventPropagation:H((e=>{f.value.allowStopPropagation&&e.stopPropagation(),f.value.allowPreventDefault&&e.preventDefault()}),"handleEventPropagation")}}),"Ye$1"),Gj=H(((e,t,n)=>{const i=Tn(),{defaultedTextInput:r,defaultedRange:a,defaultedTz:s,defaultedMultiDates:o,getDefaultPattern:l}=Wj(t),u=Tn(""),c=Vn(t,"format"),d=Vn(t,"formatLocale");Bi(i,(()=>{"function"==typeof t.onInternalModelChange&&e("internal-model-change",i.value,V(!0))}),{deep:!0}),Bi(a,((e,t)=>{e.enabled!==t.enabled&&(i.value=null)})),Bi(c,(()=>{O()}));const p=H((e=>s.value.timezone&&s.value.convertModel?BB(e,s.value.timezone):e),"m"),h=H((e=>{if(s.value.timezone&&s.value.convertModel){return AM(e,qB(s.value.timezone,e))}return e}),"P"),f=H(((e,n,i=!1)=>ej(e,t.format,t.formatLocale,r.value.rangeSeparator,t.modelAuto,null!=n?n:l(),i)),"F"),m=H((e=>e?t.modelType?R(e):{hours:JR(e),minutes:tN(e),seconds:t.enableSeconds?iN(e):0}:null),"L"),g=H((e=>t.modelType?R(e):{month:nN(e),year:rN(e)}),"_"),y=H((e=>Array.isArray(e)?o.value.enabled?e.map((e=>v(e,AB($H(),e)))):nj((()=>[AB($H(),e[0]),e[1]?AB($H(),e[1]):tj(a.value.partialRange)]),a.value.enabled):AB($H(),+e)),"h"),v=H(((e,n)=>"string"!=typeof e&&"number"!=typeof e||!t.modelType?n:M(e)),"R"),b=H((e=>Array.isArray(e)?[v(e[0],OH(null,+e[0].hours,+e[0].minutes,e[0].seconds)),v(e[1],OH(null,+e[1].hours,+e[1].minutes,e[1].seconds))]:v(e,OH(null,e.hours,e.minutes,e.seconds))),"b"),_=H((e=>{const t=CB($H(),{date:1});return Array.isArray(e)?o.value.enabled?e.map((e=>v(e,ZH(t,+e.month,+e.year)))):nj((()=>[v(e[0],ZH(t,+e[0].month,+e[0].year)),v(e[1],e[1]?ZH(t,+e[1].month,+e[1].year):tj(a.value.partialRange))]),a.value.enabled):v(e,ZH(t,+e.month,+e.year))}),"j"),w=H((e=>{if(Array.isArray(e))return e.map((e=>M(e)));throw new Error(lH.dateArr("multi-dates"))}),"z"),S=H((e=>{if(Array.isArray(e)&&a.value.enabled){const t=e[0],n=e[1];return[$H(Array.isArray(t)?t[0]:null),Array.isArray(n)&&n.length?$H(n[0]):null]}return $H(e[0])}),"ae"),C=H((e=>t.modelAuto?Array.isArray(e)?[M(e[0]),M(e[1])]:t.autoApply?[M(e)]:[M(e),null]:Array.isArray(e)?nj((()=>e[1]?[M(e[0]),e[1]?M(e[1]):tj(a.value.partialRange)]:[M(e[0])]),a.value.enabled):M(e)),"H"),k=H((()=>{Array.isArray(i.value)&&a.value.enabled&&1===i.value.length&&i.value.push(tj(a.value.partialRange))}),"D"),x=H((()=>{const e=i.value;return[R(e[0]),e[1]?R(e[1]):tj(a.value.partialRange)]}),"Q"),T=H((()=>Array.isArray(i.value)?i.value[1]?x():R(uH(i.value[0])):[]),"B"),E=H((()=>(i.value||[]).map((e=>R(e)))),"q"),A=H(((e=!1)=>(e||k(),t.modelAuto?T():o.value.enabled?E():Array.isArray(i.value)?nj((()=>x()),a.value.enabled):R(uH(i.value)))),"ve"),L=H((e=>!e||Array.isArray(e)&&!e.length?null:t.timePicker?b(uH(e)):t.monthPicker?_(uH(e)):t.yearPicker?y(uH(e)):o.value.enabled?w(uH(e)):t.
100weekPicker?S(uH(e)):C(uH(e))),"pe"),I=H((e=>{const t=L(e);ij(uH(t))?(i.value=uH(t),O()):(i.value=null,u.value="")}),"v"),$=H((()=>{const e=H((e=>KR(e,r.value.format)),"l");return`${e(i.value[0])} ${r.value.rangeSeparator} ${i.value[1]?e(i.value[1]):""}`}),"N"),D=H((()=>n.value&&i.value?Array.isArray(i.value)?$():KR(i.value,r.value.format):f(i.value)),"ee"),P=H((()=>i.value?o.value.enabled?i.value.map((e=>f(e))).join("; "):r.value.enabled&&"string"==typeof r.value.format?D():f(i.value):""),"y"),O=H((()=>{!t.format||"string"==typeof t.format||r.value.enabled&&"string"==typeof r.value.format?u.value=P():u.value=t.format(i.value)}),"U"),M=H((e=>{if(t.utc){const n=new Date(e);return"preserve"===t.utc?new Date(n.getTime()+6e4*n.getTimezoneOffset()):n}return t.modelType?YB.includes(t.modelType)?p(new Date(e)):"format"!==t.modelType||"string"!=typeof t.format&&t.format?p(vB(e,t.modelType,new Date,{locale:d.value})):p(vB(e,l(),new Date,{locale:d.value})):p(new Date(e))}),"S"),R=H((e=>e?t.utc?DH(e,"preserve"===t.utc,t.enableSeconds):t.modelType?"timestamp"===t.modelType?+h(e):"iso"===t.modelType?h(e).toISOString():"format"!==t.modelType||"string"!=typeof t.format&&t.format?f(h(e),t.modelType,!0):f(h(e)):h(e):""),"Z"),N=H(((t,n=!1,i=!1)=>{if(i)return t;if(e("update:model-value",t),s.value.emitTimezone&&n){const n=Array.isArray(t)?t.map((e=>BB(uH(e),s.value.emitTimezone))):BB(uH(t),s.value.emitTimezone);e("update:model-timezone-value",n)}}),"A"),F=H((e=>Array.isArray(i.value)?o.value.enabled?i.value.map((t=>e(t))):[e(i.value[0]),i.value[1]?e(i.value[1]):tj(a.value.partialRange)]:e(uH(i.value))),"ie"),B=H((()=>
100{if(Array.isArray(i.value)){const e=GH(i.value[0],t.weekStart),n=i.value[1]?GH(i.value[1],t.weekStart):[];return[e.map((e=>$H(e))),n.map((e=>$H(e)))]}return GH(i.value,t.weekStart).map((e=>$H(e)))}),"i"),j=H(((e,t)=>N(uH(F(e)),!1,t)),"W"),U=H((t=>{const n=B();return t?n:e("update:model-value",B())}),"se"),V=H(((e=!1)=>(e||O(),t.monthPicker?j(g,e):t.timePicker?j(m,e):t.yearPicker?j(rN,e):t.weekPicker?U(e):N(A(e),!0,e))),"T");return{inputValue:u,internalModelValue:i,checkBeforeEmit:H((()=>!!i.value&&(a.value.enabled?a.value.partialRange?i.value.length>=1:2===i.value.length:!!i.value)),"checkBeforeEmit"),parseExternalModelValue:I,formatInputValue:O,emitModelValue:V}}),"lr$1"),Kj=H(((e,t)=>{const{defaultedFilters:n,propDates:i}=Wj(e),{validateMonthYearInRange:r}=kV(e),a=H(((e,t)=>{let i=e;return n.value.months.includes(nN(i))?(i=t?xM(e,1):LB(e,1),a(i,t)):i}),"u"),s=H(((e,t)=>{let i=e;return n.value.years.includes(rN(i))?(i=t?HM(e,1):$B(e,1),s(i,t)):i}),"c"),o=H(((t,i=!1)=>{const o=CB($H(),{month:e.month,year:e.year});let u=t?xM(o,1):LB(o,1);e.disableYearSelect&&(u=AB(u,e.year));let c=nN(u),d=rN(u);n.value.months.includes(c)&&(u=a(u,t),c=nN(u),d=rN(u)),n.value.years.includes(d)&&(u=s(u,t),d=rN(u)),r(c,d,t,e.preventMinMaxNavigation)&&l(c,d,i)}),"p"),l=H(((e,n,i)=>{t("update-month-year",{month:e,year:n,fromNav:i})}),"d");return{handleMonthYearChange:o,isDisabled:Co((()=>t=>XH(CB($H(),{month:e.month,year:e.year}),i.value.maxDate,i.value.minDate,e.preventMinMaxNavigation,t))),updateMonthYear:l}}),"rr$1"),Yj={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:H((()=>null),"default")},autoPosition:{type:[Boolean,String],default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:H((()=>({})),"default")},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:H((()=>[]),"default")},timezone:{type:[String,Object],default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},dayClass:{type:Function,default:null},yearRange:{type:Array,default:H((()=>[1900,2100]),"default")},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:H((()=>[]),"default")},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:H((()=>[]),"default")},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:H((()=>[]),"default")},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:H((()=>[]),"default")},flow:{type:Array,default:H((()=>[]),"default")},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:H((()=>({})),"default")},arrowNavigation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:H((()=>""),"default")},multiDates:{type:[Object,Boolean],default:!1},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},alwaysClearable:{type:Boolean,default:!1},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:H((()=>({})),"default")},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0},ui:{type:Object,default:H((()=>({})),"default")}},Zj=B(F({},Yj),{shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:H((()=>({})),"default")},isTextInputDate:{type:Boolean,default:!1},isMobile:{type:Boolean,default:void 0}}),Xj=["title"],Qj=["disabled"],Jj=vr({compatConfig:{MODE:3},__name:"ActionRow",props:F({menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0}}
100,Zj),emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=t,i=e,{defaultedActionRow:r,defaultedPreviewFormat:a,defaultedMultiCalendars:s,defaultedTextInput:o,defaultedInline:l,defaultedRange:u,defaultedMultiDates:c}=Wj(i),{isTimeValid:d,isMonthValid:p}=kV(i),{buildMatrix:h}=xj(),f=Tn(null),m=Tn(null),g=Tn(!1),y=Tn({}),v=Tn(null),b=Tn(null);Br((()=>{i.arrowNavigation&&h([aH(f),aH(m)],"actionRow"),_(),window.addEventListener("resize",_)})),Vr((()=>{window.removeEventListener("resize",_)}));const _=H((()=>{g.value=!1,setTimeout((()=>{var e,t;const n=null==(e=v.value)?void 0:e.getBoundingClientRect(),i=null==(t=b.value)?void 0:t.getBoundingClientRect();n&&i&&(y.value.maxWidth=i.width-n.width-20+"px"),g.value=!0}),0)}),"j"),w=Co((()=>!(u.value.enabled&&!u.value.partialRange&&i.internalModelValue)||2===i.internalModelValue.length)),S=Co((()=>!d.value(i.internalModelValue)||!p.value(i.internalModelValue)||!w.value)),C=H((()=>{const e=a.value;return i.timePicker||i.monthPicker,e(uH(i.internalModelValue))}),"H"),k=H((()=>{const e=i.internalModelValue;return s.value.count>0?`${x(e[0])} - ${x(e[1])}`:[x(e[0]),x(e[1])]}),"D"),x=H((e=>ej(e,a.value,i.formatLocale,o.value.rangeSeparator,i.modelAuto,a.value)),"Q"),T=Co((()=>i.internalModelValue&&i.menuMount?"string"==typeof a.value?Array.isArray(i.internalModelValue)?2===i.internalModelValue.length&&i.internalModelValue[1]?k():c.value.enabled?i.internalModelValue.map((e=>`${x(e)}`)):i.modelAuto?`${x(i.internalModelValue[0])}`:`${x(i.internalModelValue[0])} -`:x(i.internalModelValue):C():"")),E=H((()=>c.value.enabled?"; ":" - "),"q"),A=Co((()=>Array.isArray(T.value)?T.value.join(E()):T.value)),L=H((()=>{d.value(i.internalModelValue)&&p.value(i.internalModelValue)&&w.value?n("select-date"):n("invalid-select")}),"pe");return(e,t)=>(As(),Ps("div",{ref_key:"actionRowRef",ref:b,class:"dp__action_row"},[e.$slots["action-row"]?na(e.$slots,"action-row",Be(Zs({key:0},{internalModelValue:e.internalModelValue,disabled:S.value,selectDate:H((()=>e.$emit("select-date")),"selectDate"),closePicker:H((()=>e.$emit("close-picker")),"closePicker")}))):(As(),Ps(Ss,{key:1},[$n(r).showPreview?(As(),Ps("div",{key:0,class:"dp__selection_preview",title:A.value,style:Pe(y.value)},[e.$slots["action-preview"]&&g.value?na(e.$slots,"action-preview",{key:0,value:e.internalModelValue}):Ws("",!0),!e.$slots["action-preview"]&&g.value?(As(),Ps(Ss,{key:1},[qs(ze(A.value),1)],64)):Ws("",!0)],12,Xj)):Ws("",!0),Bs("div",{ref_key:"actionBtnContainer",ref:v,class:"dp__action_buttons","data-dp-element":"action-row"},[e.$slots["action-buttons"]?na(e.$slots,"action-buttons",{key:0,value:e.internalModelValue}):Ws("",!0),e.$slots["action-buttons"]?Ws("",!0):(As(),Ps(Ss,{key:1},[!$n(l).enabled&&$n(r).showCancel?(As(),Ps("button",{key:0,ref_key:"cancelButtonRef",ref:f,type:"button",class:"dp__action_button dp__action_cancel",onClick:t[0]||(t[0]=t=>e.$emit("close-picker")),onKeydown:t[1]||(t[1]=t=>$n(xH)(t,(()=>e.$emit("close-picker"))))},ze(e.cancelText),545)):Ws("",!0),$n(r).showNow?(As(),Ps("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:t[2]||(t[2]=t=>e.$emit("select-now")),onKeydown:t[3]||(t[3]=t=>$n(xH)(t,(()=>e.$emit("select-now"))))},ze(e.nowButtonLabel),33)):Ws("",!0),$n(r).showSelect?(As(),Ps("button",{key:2,ref_key:"selectButtonRef",ref:m,type:"button",class:"dp__action_button dp__action_select",disabled:S.value,"data-test-id":"select-button",onKeydown:t[4]||(t[4]=e=>$n(xH)(e,(()=>L()))),onClick:L},ze(e.selectText),41,Qj)):Ws("",!0)],64))],512)],64))],512))}}),eU=["role","aria-label","tabindex"],tU={class:"dp__selection_grid_header"},nU=["aria-selected","aria-disabled","data-test-id","onClick","onKeydown","onMouseover"],iU=["aria-label"],rU=vr({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{},overlayLabel:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:n}){const{setSelectionGrid:i,buildMultiLevelMatrix:r,setMonthPicker:a}=xj(),s=n,o=e,{defaultedAriaLabels:l,defaultedTextInput:u,defaultedConfig:c,handleEventPropagation:d}=Wj(o),{hideNavigationButtons:p}=xV(),h=Tn(!1),f=Tn(null),m=Tn(null),g=Tn([]),y=Tn(),v=Tn(null),b=Tn(0),_=Tn(null);Hr((()=>{f.value=null})),Br((()=>{vi().then((()=>A())),o.noOverlayFocus||S(),w(!0)})),Vr((()=>w(!1)));const w=H((e=>{var t;o.arrowNavigation&&(null!=(t=o.headerRefs)&&t.length?a(e):i(e))}),"z"),S=H((()=>{var e;const t=aH(m);t&&(u.value.enabled||(f.value?null==(e=f.value)||e.focus({preventScroll:!0}):t.focus({preventScroll:!0})),h.value=t.clientHeight<t.scrollHeight)}),"ae"),C=Co((()=>({dp__overlay:!0,"dp--overlay-absolute":!o.useRelative,"dp--overlay-relative":o.useRelative}))),k=Co((()=>o.useRelative?{height:`${o.height}px`,width:"var(--dp-menu-min-width)"}:void 0)),x=Co((()=>({dp__overlay_col:!0}))),T=Co((()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:h.value,dp__button_bottom:o.isLast}))),E=Co((()=>{var e,t;return{dp__overlay_container:!0,dp__container_flex:(null==(e=o.items)?void 0:e.length)<=6,dp__container_block:(null==(t=o.items)?void 0:t.length)>6}}));Bi((()=>o.items),(()=>A(!1)),{deep:!0});const A=H(((e=!0)=>{vi().then((()=>{const t=aH(f),n=aH(m),i=aH(v),r=aH(_),a=i?i.getBoundingClientRect().height:0;n&&(n.getBoundingClientRect().height?b.value=n.getBoundingClientRect().height-a:b.value=c.value.modeHeight-a),t&&r&&e&&(r.scrollTop=t.offsetTop-r.offsetTop-(b.value/2-t.getBoundingClientRect().height)-a)}))}),"ve"),L=H((e=>{e.disabled||s("selected",e.value)}),"pe"),I=H((()=>{s("toggle"),s("reset-flow")}),"v"),$=H((e=>{o.escClose&&(I(),d(e))}),"N"),D=H(((e,t,n,i)=>{e&&((t.active||t.value===o.focusValue)&&(f.value=e),o.arrowNavigation&&(Array.isArray(g.value[n])?g.value[n][i]=e:g.value[n]=[e],P()))}),"ee"),P=H((()=>{var e,t;const n=null!=(e=o.headerRefs)&&e.length?[o.headerRefs].concat(g.value):g.value.concat([o.skipButtonRef?[]:[v.value]]);r(uH(n),null!=(t=o.headerRefs)&&t.length?"monthPicker":"selectionGrid")}),"y"),O=H((e=>{o.arrowNavigation||gH(e,c.value,!0)}),"U"),M=H((e=>{y.value=e,s("hover-value",e)}),"S"),R=H((()=>{var e;if(I(),!o.isLast){const t=bH(null!=(e=o.menuWrapRef)?e:null,"action-row");if(t){const e=pH(t);null==e||e.focus()}}}),"Z"),N=H((e=>{switch(e.key){case XB.esc:return $(e);case XB.arrowLeft:case XB.arrowRight:case XB.arrowUp:case XB.arrowDown:return O(e);default:return}}),"A"),F=H((e=>e.key===XB.enter?I():e.key===XB.tab?R():void 0),"ie");return t({focusGrid:S}),(e,t)=>{var n;return As(),Ps("div",{ref_key:"gridWrapRef",ref:m,class:Fe(C.value),style:Pe(k.value),role:e.useRelative?void 0:"dialog","aria-label":e.overlayLabel,tabindex:e.useRelative?void 0:"0",onKeydown:N,onClick:t[0]||(t[0]=Kl((()=>{}),["prevent"]))},[Bs("div",{ref_key:"containerRef",ref:_,class:Fe(E.value),style:Pe({"--dp-overlay-height":`${b.value}px`}),role:"grid"},[Bs("div",tU,[na(e.$slots,"header")]),e.$slots.overlay?na(e.$slots,"overlay",{key:0}):(As(!0),Ps(Ss,{key:1},ea(e.items,((t,n)=>(As(),Ps("div",{key:n,class:Fe(["dp__overlay_row",{dp__flex_row:e.items.length>=3}]),role:"row"},[(As(!0),Ps(Ss,null,ea(t,((t,i)=>(As(),Ps("div",{key:t.value,ref_for:!0,ref:H((e=>D(e,t,n,i)),"ref"),role:"gridcell",class:Fe(x.value),"aria-selected":t.active||void 0,"aria-disabled":t.disabled||void 0,tabindex:"0","data-test-id":t.text,onClick:Kl((e=>L(t)),["prevent"]),onKeydown:H((e=>$n(xH)(e,(()=>L(t)),!0)),"onKeydown"),onMouseover:H((e=>M(t.value)),"onMouseover")},[Bs("div",{class:Fe(t.className)},[e.$slots.item?na(e.$slots,"item",{key:0,item:t}):Ws("",!0),e.$slots.item?Ws("",!0):(As(),Ps(Ss,{key:1},[qs(ze(t.text),1)],64))],2)],42,nU)))),128))],2)))),128))],6),e.$slots["button-icon"]?$i((As(),Ps("button",{key:0,ref_key:"toggleButton",ref:v,type:"button","aria-label":null==(n=$n(l))?void 0:n.toggleOverlay,class:Fe(T.value),tabindex:"0",onClick:I,onKeydown:F},[na(e.$slots,"button-icon")],42,iU)),[[tl,!$n(p)(e.hideNavigation,e.type)]]):Ws("",!0)],46,eU)}}}),aU=["data-dp-mobile"],sU=vr({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean},isMobile:{type:Boolean}},setup(e){const t=e,n=Co((()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0])),i=Co((()=>({dp__instance_calendar:t.multiCalendars>0})));return(e,t)=>(As(),Ps("div",{class:Fe({dp__menu_inner:!e.stretch,"dp--menu--inner-stretched":e.stretch,dp__flex_display:e.multiCalendars>0,"dp--flex-display-collapsed":e.collapse}),"data-dp-mobile":e.isMobile},[(As(!0),Ps(Ss,null,ea(n.value,((t,n)=>(As(),Ps("div",{key:t,class:Fe(i.value)},[na(e.$slots,"default",{instance:t,index:n}
100)],2)))),128))],10,aU))}}),oU=["data-dp-element","aria-label","aria-disabled"],lU=vr({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},elName:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=t,i=Tn(null);return Br((()=>n("set-ref",i))),(e,t)=>(As(),Ps("button",{ref_key:"elRef",ref:i,type:"button","data-dp-element":e.elName,class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":e.ariaLabel,"aria-disabled":e.disabled||void 0,onClick:t[0]||(t[0]=t=>e.$emit("activate")),onKeydown:t[1]||(t[1]=t=>$n(xH)(t,(()=>e.$emit("activate")),!0))},[Bs("span",{class:Fe(["dp__inner_nav",{dp__inner_nav_disabled:e.disabled}])},[na(e.$slots,"default")],2)],40,oU))}}),uU=["aria-label","data-test-id"],cU=vr({__name:"YearModePicker",props:B(F({},Zj),{showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:H((()=>[]),"default")},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:H((()=>!1),"default")}}),emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:t}){const n=t,i=e,{showRightIcon:r,showLeftIcon:a}=xV(),{defaultedConfig:s,defaultedMultiCalendars:o,defaultedAriaLabels:l,defaultedTransitions:u,defaultedUI:c}=Wj(i),{showTransition:d,transitionName:p}=wV(u),h=Tn(!1),f=H(((e=!1,t)=>{h.value=!h.value,n("toggle-year-picker",{flow:e,show:t})}),"F"),m=H((e=>{h.value=!1,n("year-select",e)}),"L"),g=H(((e=!1)=>{n("handle-year",e)}),"_");return(t,n)=>{var i,u,y,v,b;return As(),Ps(Ss,null,[Bs("div",{class:Fe(["dp--year-mode-picker",{"dp--hidden-el":h.value}])},[$n(a)($n(o),e.instance)?(As(),Os(lU,{key:0,ref:"mpPrevIconRef","aria-label":null==(i=$n(l))?void 0:i.prevYear,disabled:e.isDisabled(!1),class:Fe(null==(u=$n(c))?void 0:u.navBtnPrev),onActivate:n[0]||(n[0]=e=>g(!1))},{default:Ii((()=>[t.$slots["arrow-left"]?na(t.$slots,"arrow-left",{key:0}):Ws("",!0),t.$slots["arrow-left"]?Ws("",!0):(As(),Os($n(OB),{key:1}))])),_:3},8,["aria-label","disabled","class"])):Ws("",!0),Bs("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":`${e.year}-${null==(y=$n(l))?void 0:y.openYearsOverlay}`,"data-test-id":`year-mode-btn-${e.instance}`,onClick:n[1]||(n[1]=()=>f(!1)),onKeydown:n[2]||(n[2]=Zl((()=>f(!1)),["enter"]))},[t.$slots.year?na(t.$slots,"year",{key:0,year:e.year}):Ws("",!0),t.$slots.year?Ws("",!0):(As(),Ps(Ss,{key:1},[qs(ze(e.year),1)],64))],40,uU),$n(r)($n(o),e.instance)?(As(),Os(lU,{key:1,ref:"mpNextIconRef","aria-label":null==(v=$n(l))?void 0:v.nextYear,disabled:e.isDisabled(!0),class:Fe(null==(b=$n(c))?void 0:b.navBtnNext),onActivate:n[3]||(n[3]=e=>g(!0))},{default:Ii((()=>[t.$slots["arrow-right"]?na(t.$slots,"arrow-right",{key:0}):Ws("",!0),t.$slots["arrow-right"]?Ws("",!0):(As(),Os($n(MB),{key:1}))])),_:3},8,["aria-label","disabled","class"])):Ws("",!0)],2),Hs(No,{name:$n(p)(e.showYearPicker),css:$n(d)},{default:Ii((()=>{var i,r;return[e.showYearPicker?(As(),Os(rU,{key:0,items:e.items,"text-input":t.textInput,"esc-close":t.escClose,config:t.config,"is-last":t.autoApply&&!$n(s).keepActionRow,"hide-navigation":t.hideNavigation,"aria-labels":t.ariaLabels,"overlay-label":null==(r=null==(i=$n(l))?void 0:i.yearPicker)?void 0:r.call(i,!0),type:"year",onToggle:f,onSelected:n[4]||(n[4]=e=>m(e))},ta({"button-icon":Ii((()=>[t.$slots["calendar-icon"]?na(t.$slots,"calendar-icon",{key:0}):Ws("",!0),t.$slots["calendar-icon"]?Ws("",!0):(As(),Os($n(DB),{key:1}))])),_:2},[t.$slots["year-overlay-value"]?{name:"item",fn:Ii((({item:e})=>[na(t.$slots,"year-overlay-value",{text:e.text,value:e.value})])),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels","overlay-label"])):Ws("",!0)]})),_:3},8,["name","css"])],64)}}}),dU=H(((e,t,n)=>{if(t.value&&Array.isArray(t.value))if(t.value.some((t=>RH(e,t)))){const n=t.value.filter((t=>!RH(t,e)));t.value=n.length?n:null}else(n&&+n>t.value.length||!n)&&t.value.push(e);else t.value=[e]}),"xa$2"),pU=H(((e,t,n)=>{let i=e.value?e.value.slice():[];return 2===i.length&&null!==i[1]&&(i=[]),i.length?(MH(t,i[0])?i.unshift(t):i[1]=t,n("range-end",t)):(i=[t],n("range-start",t)),i}),"en$3"),hU=H(((e,t,n,i)=>{e&&(e[0]&&e[1]&&n&&t("auto-apply"),e[0]&&!e[1]&&i&&n&&t("auto-apply"))}),"ga$1"),fU=H((e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map((t=>BB($H(t),e.timezone))):Array.isArray(e.value)||(e.modelValue.value=BB($H(e.value),e.timezone))}),"Un$2"),mU=H(((e,t,n,i)=>Array.isArray(t.value)&&(2===t.value.length||1===t.value.length&&i.value.partialRange)?i.value.fixedStart&&(NH(e,t.value[0])||RH(e,t.value[0]))?[t.value[0],e]:i.value.fixedEnd&&(MH(e,t.value[1])||RH(e,t.value[1]))?[e,t.value[1]]:(n("invalid-fixed-range",e),t.value):[]),"Wn$1"),gU=H((({multiCalendars:e,range:t,highlight:n,propDates:i,calendars:r,modelValue:a,props:s,filters:o,year:l,month:u,emit:c})=>{const d=Co((()=>nH(s.yearRange,s.locale,s.reverseYears))),p=Tn([!1]),h=Co((()=>(e,t)=>{const n=CB(BH(new Date),{month:u.value(e),year:l.value(e)}),r=t?QM(n):JM(n);
100return XH(r,i.value.maxDate,i.value.minDate,s.preventMinMaxNavigation,t)})),f=H((()=>Array.isArray(a.value)&&e.value.solo&&a.value[1]),"F"),m=H((()=>{for(let t=0;t<e.value.count;t++)if(0===t)r.value[t]=r.value[0];else if(t===e.value.count-1&&f())r.value[t]={month:nN(a.value[1]),year:rN(a.value[1])};else{const e=CB($H(),r.value[t-1]);r.value[t]={month:nN(e),year:rN(HM(e,1))}}}),"L"),g=H((t=>{if(!t)return m();const n=CB($H(),r.value[t]);return r.value[0].year=rN($B(n,e.value.count-1)),m()}),"_"),y=H(((e,n)=>{const i=WM(n,e);return t.value.showLastInRange&&i>1?n:e}),"h"),v=H((t=>s.focusStartDate||e.value.solo?t[0]:t[1]?y(t[0],t[1]):t[0]),"R"),b=H((()=>{if(a.value){const e=Array.isArray(a.value)?v(a.value):a.value;r.value[0]={month:nN(e),year:rN(e)}}}),"b"),_=H((()=>{b(),e.value.count&&m()}),"j");Bi(a,((e,t)=>{s.isTextInputDate&&JSON.stringify(null!=e?e:{})!==JSON.stringify(null!=t?t:{})&&_()})),Br((()=>{_()}));const w=H(((t,n)=>{r.value[n].year=t,c("update-month-year",{instance:n,year:t,month:r.value[n].month}),e.value.count&&!e.value.solo&&g(n)}),"z"),S=Co((()=>e=>mH(d.value,(t=>{var r;return{active:l.value(e)===t.value,disabled:fH(t.value,qH(i.value.minDate),qH(i.value.maxDate))||(null==(r=o.value.years)?void 0:r.includes(l.value(e))),highlighted:pj(n.value,t.value)}})))),C=H(((e,t)=>{w(e,t),x(t)}),"H"),k=H(((e,t=!1)=>{if(!h.value(e,t)){const n=t?l.value(e)+1:l.value(e)-1;w(n,e)}}),"D"),x=H(((e,t=!1,n)=>{t||c("reset-flow"),p.value[e]=void 0!==n?n:!p.value[e],p.value[e]?c("overlay-toggle",{open:!0,overlay:KB.year}):(c("overlay-closed"),c("overlay-toggle",{open:!1,overlay:KB.year}))}),"Q");return{isDisabled:h,groupedYears:S,showYearPicker:p,selectYear:w,toggleYearPicker:x,handleYearSelect:C,handleYear:k}}),"Vn$3"),yU=H(((e,t)=>{const{defaultedMultiCalendars:n,defaultedAriaLabels:i,defaultedTransitions:r,defaultedConfig:a,defaultedRange:s,defaultedHighlight:o,propDates:l,defaultedTz:u,defaultedFilters:c,defaultedMultiDates:d}=Wj(e),p=H((()=>{e.isTextInputDate&&_(rN($H(e.startDate)),0)}),"m"),{modelValue:h,year:f,month:m,calendars:g}=SV(e,t,p),y=Co((()=>iH(e.formatLocale,e.locale,e.monthNameFormat))),v=Tn(null),{checkMinMaxRange:b}=kV(e),{selectYear:_,groupedYears:w,showYearPicker:S,toggleYearPicker:C,handleYearSelect:k,handleYear:x,isDisabled:T}=gU({modelValue:h,multiCalendars:n,range:s,highlight:o,calendars:g,year:f,propDates:l,month:m,filters:c,props:e,emit:t});Br((()=>{e.startDate&&(h.value&&e.focusStartDate||!h.value)&&_(rN($H(e.startDate)),0)}));const E=H((e=>e?{month:nN(e),year:rN(e)}:{month:null,year:null}),"q"),A=H((()=>h.value?Array.isArray(h.value)?h.value.map((e=>E(e))):E(h.value):E()),"ve"),L=H(((e,t)=>{const n=g.value[e],i=A();return Array.isArray(i)?i.some((e=>e.year===(null==n?void 0:n.year)&&e.month===t)):(null==n?void 0:n.year)===i.year&&t===i.month}),"pe"),I=H(((e,t,n)=>{var i,r;const a=A();return!!Array.isArray(a)&&(f.value(t)===(null==(i=a[n])?void 0:i.year)&&e===(null==(r=a[n])?void 0:r.month))}),"v"),$=H(((e,t)=>{if(s.value.enabled){const n=A();if(Array.isArray(h.value)&&Array.isArray(n)){const n=I(e,t,0)||I(e,t,1),i=ZH(BH($H()),e,f.value(t));return FH(h.value,v.value,i)&&!n}return!1}return!1}),"N"),D=Co((()=>e=>mH(y.value,(t=>{var n;return{active:L(e,t.value),disabled:fH(t.value,UH(f.value(e),l.value.minDate),VH(f.value(e),l.value.maxDate))||uj(l.value.disabledDates,f.value(e),t.value)||(null==(n=c.value.months)?void 0:n.includes(t.value))||!cj(l.value.allowedDates,f.value(e),t.value),isBetween:$(t.value,e),highlighted:dj(o.value,t.value,f.value(e))}})))),P=H(((e,t)=>ZH(BH($H()),e,f.value(t))),"y"),O=H(((e,n)=>{const i=h.value?h.value:BH(new Date);h.value=ZH(i,e,f.value(n)),t("auto-apply"),t("update-flow-step")}),"U"),M=H(((n,i)=>{const r=P(n,i);s.value.fixedEnd||s.value.fixedStart?h.value=mU(r,h,t,s):h.value?b(r,h.value)&&(h.value=pU(h,P(n,i),t)):h.value=[P(n,i)],vi().then((()=>{hU(h.value,t,e.autoApply,e.modelAuto)}))}),"S"),R=H(((e,n)=>{dU(P(e,n),h,d.value.limit),t("auto-apply",!0)}),"Z"),N=H(((e,t)=>(g.value[t].month=e,B(t,g.value[t].year,e),d.value.enabled?R(e,t):s.value.enabled?M(e,t):O(e,t))),"A"),F=H(((e,t)=>{_(e,t),B(t,e,null)}),"ie"),B=H(((e,n,i)=>{let r=i;if(!r&&0!==r){const t=A();r=Array.isArray(t)?t[e].month:t.month}
100t("update-month-year",{instance:e,year:n,month:r})}),"i");return{groupedMonths:D,groupedYears:w,year:f,isDisabled:T,defaultedMultiCalendars:n,defaultedAriaLabels:i,defaultedTransitions:r,defaultedConfig:a,showYearPicker:S,modelValue:h,presetDate:H(((e,n)=>{fU({value:e,modelValue:h,range:s.value.enabled,timezone:n?void 0:u.value.timezone}),t("auto-apply")}),"presetDate"),setHoverDate:H(((e,t)=>{v.value=P(e,t)}),"setHoverDate"),selectMonth:N,selectYear:F,toggleYearPicker:C,handleYearSelect:k,handleYear:x,getModelMonthYear:A}}),"yr$1"),vU=vr({compatConfig:{MODE:3},__name:"MonthPicker",props:F({},Zj),emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(e,{expose:t,emit:n}){const i=n,r=ua(),a=_V(r,"yearMode"),s=e;Br((()=>{s.shadow||i("mount",null)}));const{groupedMonths:o,groupedYears:l,year:u,isDisabled:c,defaultedMultiCalendars:d,defaultedConfig:p,showYearPicker:h,modelValue:f,presetDate:m,setHoverDate:g,selectMonth:y,selectYear:v,toggleYearPicker:b,handleYearSelect:_,handleYear:w,getModelMonthYear:S}=yU(s,i);return t({getSidebarProps:H((()=>({modelValue:f,year:u,getModelMonthYear:S,selectMonth:y,selectYear:v,handleYear:w})),"getSidebarProps"),presetDate:m,toggleYearPicker:H((e=>b(0,e)),"toggleYearPicker")}),(e,t)=>(As(),Os(sU,{"multi-calendars":$n(d).count,collapse:e.collapse,stretch:"","is-mobile":e.isMobile},{default:Ii((({instance:t})=>[e.$slots["top-extra"]?na(e.$slots,"top-extra",{key:0,value:e.internalModelValue}):Ws("",!0),e.$slots["month-year"]?na(e.$slots,"month-year",Be(Zs({key:1},{year:$n(u),months:$n(o)(t),years:$n(l)(t),selectMonth:$n(y),selectYear:$n(v),instance:t}))):(As(),Os(rU,{key:2,items:$n(o)(t),"arrow-navigation":e.arrowNavigation,"is-last":e.autoApply&&!$n(p).keepActionRow,"esc-close":e.escClose,height:$n(p).modeHeight,config:e.config,"no-overlay-focus":!(!e.noOverlayFocus&&!e.textInput),"use-relative":"",type:"month",onSelected:H((e=>$n(y)(e,t)),"onSelected"),onHoverValue:H((e=>$n(g)(e,t)),"onHoverValue")},ta({header:Ii((()=>[Hs(cU,Zs(e.$props,{items:$n(l)(t),instance:t,"show-year-picker":$n(h)[t],year:$n(u)(t),"is-disabled":H((e=>$n(c)(t,e)),"is-disabled"),onHandleYear:H((e=>$n(w)(t,e)),"onHandleYear"),onYearSelect:H((e=>$n(_)(e,t)),"onYearSelect"),onToggleYearPicker:H((e=>$n(b)(t,null==e?void 0:e.flow,null==e?void 0:e.show)),"onToggleYearPicker")}),ta({_:2},[ea($n(a),((t,n)=>({name:t,fn:Ii((n=>[na(e.$slots,t,Be(Us(n)))]))})))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])])),_:2},[e.$slots["month-overlay-value"]?{name:"item",fn:Ii((({item:t})=>[na(e.$slots,"month-overlay-value",{text:t.text,value:t.value})])),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))])),_:3},8,["multi-calendars","collapse","is-mobile"]))}}),bU=H(((e,t)=>{const n=H((()=>{e.isTextInputDate&&(c.value=rN($H(e.startDate)))}),"r"),{modelValue:i}=SV(e,t,n),r=Tn(null),{defaultedHighlight:a,defaultedMultiDates:s,defaultedFilters:o,defaultedRange:l,propDates:u}=Wj(e),c=Tn();Br((()=>{e.startDate&&(i.value&&e.focusStartDate||!i.value)&&(c.value=rN($H(e.startDate)))}));const d=H((e=>Array.isArray(i.value)?i.value.some((t=>rN(t)===e)):!!i.value&&rN(i.value)===e),"O"),p=H((e=>!(!l.value.enabled||!Array.isArray(i.value))&&FH(i.value,r.value,g(e))),"m"),h=H((e=>!(u.value.allowedDates instanceof Map)||!!u.value.allowedDates.size&&u.value.allowedDates.has(`${e}`)),"P"),f=H((e=>!(u.value.disabledDates instanceof Map)||!!u.value.disabledDates.size&&u.value.disabledDates.has(`${e}`)),"F"),m=Co((()=>mH(nH(e.yearRange,e.locale,e.reverseYears),(e=>{const t=d(e.value);return{active:t,disabled:fH(e.value,qH(u.value.minDate),qH(u.value.maxDate))||o.value.years.includes(e.value)||!h(e.value)||f(e.value),isBetween:p(e.value)&&!t,highlighted:pj(a.value,e.value)}})))),g=H((e=>AB(BH(JM(new Date)),e)),"_");return{groupedYears:m,modelValue:i,focusYear:c,setHoverValue:H((e=>{r.value=AB(BH(new Date),e)}),"setHoverValue"),selectYear:H((n=>{var r;if(t("update-month-year",{instance:0,year:n}),s.value.enabled)return i.value?Array.isArray(i.value)&&((null==(r=i.value)?void 0:r.map((e=>rN(e)))).includes(n)?i.value=i.value.filter((e=>rN(e)!==n)):i.value.push(AB(PH($H()),n))):i.value=[AB(PH(JM($H())),n)],t("auto-apply",!0);l.value.enabled?(i.value=pU(i,g(n),t),vi().then((()=>{hU(i.value,t,e.autoApply,e.modelAuto)}))):(i.value=g(n),t("auto-apply"))}),"selectYear")}}),"hr$1"),_U=vr({compatConfig:{MODE:3},__name:"YearPicker",props:F({},Zj),emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:t,emit:n}){const i=n,r=e,{groupedYears:a,modelValue:s,focusYear:o,selectYear:l,setHoverValue:u}=bU(r,i),{defaultedConfig:c}=Wj(r);return t({getSidebarProps:H((()=>({modelValue:s,selectYear:l})),"getSidebarProps")}),(e,t)=>
100(As(),Ps("div",null,[e.$slots["top-extra"]?na(e.$slots,"top-extra",{key:0,value:e.internalModelValue}):Ws("",!0),e.$slots["month-year"]?na(e.$slots,"month-year",Be(Zs({key:1},{years:$n(a),selectYear:$n(l)}))):(As(),Os(rU,{key:2,items:$n(a),"is-last":e.autoApply&&!$n(c).keepActionRow,height:$n(c).modeHeight,config:e.config,"no-overlay-focus":!(!e.noOverlayFocus&&!e.textInput),"focus-value":$n(o),type:"year","use-relative":"",onSelected:$n(l),onHoverValue:$n(u)},ta({_:2},[e.$slots["year-overlay-value"]?{name:"item",fn:Ii((({item:t})=>[na(e.$slots,"year-overlay-value",{text:t.text,value:t.value})])),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),wU={key:0,class:"dp__time_input"},SU=["data-compact","data-collapsed"],CU=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],kU=["aria-label","disabled","data-test-id","onKeydown","onClick"],xU=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],TU={key:0},EU=["aria-label","data-compact"],AU=vr({compatConfig:{MODE:3},__name:"TimeInput",props:F({hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:H((()=>!1),"default")}},Zj),emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(e,{expose:t,emit:n}){const i=n,r=e,{setTimePickerElements:a,setTimePickerBackRef:s}=xj(),{defaultedAriaLabels:o,defaultedTransitions:l,defaultedFilters:u,defaultedConfig:c,defaultedRange:d,defaultedMultiCalendars:p}=Wj(r),{transitionName:h,showTransition:f}=wV(l),m=pn({hours:!1,minutes:!1,seconds:!1}),g=Tn("AM"),y=Tn(null),v=Tn([]),b=Tn(),_=Tn(!1);Br((()=>{i("mounted")}));const w=H((e=>CB(new Date,{hours:e.hours,minutes:e.minutes,seconds:r.enableSeconds?e.
100seconds:0,milliseconds:0})),"z"),S=Co((()=>e=>M(e,r[e])||k(e,r[e]))),C=Co((()=>({hours:r.hours,minutes:r.minutes,seconds:r.seconds}))),k=H(((e,t)=>!(!d.value.enabled||d.value.disableTimeRangeValidation)&&!r.validateTime(e,t)),"D"),x=H(((e,t)=>{if(d.value.enabled&&!d.value.disableTimeRangeValidation){const n=t?+r[`${e}Increment`]:-+r[`${e}Increment`],i=r[e]+n;return!r.validateTime(e,i)}return!1}),"Q"),T=Co((()=>e=>!j(+r[e]+ +r[`${e}Increment`],e)||x(e,!0))),E=Co((()=>e=>!j(+r[e]-+r[`${e}Increment`],e)||x(e,!1))),A=H(((e,t)=>TM(CB($H(),e),t)),"ve"),L=H(((e,t)=>IB(CB($H(),e),t)),"pe"),I=Co((()=>({dp__time_col:!0,dp__time_col_block:!r.timePickerInline,dp__time_col_reg_block:!r.enableSeconds&&r.is24&&!r.timePickerInline,dp__time_col_reg_inline:!r.enableSeconds&&r.is24&&r.timePickerInline,dp__time_col_reg_with_button:!r.enableSeconds&&!r.is24,dp__time_col_sec:r.enableSeconds&&r.is24,dp__time_col_sec_with_button:r.enableSeconds&&!r.is24}))),$=Co((()=>r.timePickerInline&&d.value.enabled&&!p.value.count)),D=Co((()=>{const e=[{type:"hours"}];return r.enableMinutes&&e.push({type:"",separator:!0},{type:"minutes"}),r.enableSeconds&&e.push({type:"",separator:!0},{type:"seconds"}),e})),P=Co((()=>D.value.filter((e=>!e.separator)))),O=Co((()=>e=>{if("hours"===e){const e=G(+r.hours);return{text:e<10?`0${e}`:`${e}`,value:e}}return{text:r[e]<10?`0${r[e]}`:`${r[e]}`,value:r[e]}})),M=H(((e,t)=>{var n;if(!r.disabledTimesConfig)return!1;const i=r.disabledTimesConfig(r.order,"hours"===e?t:void 0);return!i[e]||!(null==(n=i[e])||!n.includes(t))}),"S"),R=H(((e,t)=>"hours"!==t||"AM"===g.value?e:e+12),"Z"),N=H((e=>{const t=r.is24?24:12,n="hours"===e?t:60,i=+r[`${e}
100GridIncrement`],a=[];for(let s="hours"!==e||r.is24?0:i;s<n;s+=i)a.push({value:r.is24?s:R(s,e),text:s<10?`0${s}`:`${s}`});return"hours"===e&&!r.is24&&a.unshift({value:"PM"===g.value?12:0,text:"12"}),mH(a,(t=>({active:!1,disabled:u.value.times[e].includes(t.value)||!j(t.value,e)||M(e,t.value)||k(e,t.value)})))}),"A"),F=H((e=>e>=0?e:59),"ie"),B=H((e=>e>=0?e:23),"i"),j=H(((e,t)=>{const n=r.minTime?w(HH(r.minTime)):null,i=r.maxTime?w(HH(r.maxTime)):null,a=w(HH(C.value,t,"minutes"===t||"seconds"===t?F(e):B(e)));return n&&i?(sN(a,i)||oN(a,i))&&(aN(a,n)||oN(a,n)):n?aN(a,n)||oN(a,n):!i||(sN(a,i)||oN(a,i))}),"W"),U=H((e=>r[`no${e[0].toUpperCase()+e.slice(1)}Overlay`]),"se"),V=H((e=>{U(e)||(m[e]=!m[e],m[e]?(_.value=!0,i("overlay-opened",e)):(_.value=!1,i("overlay-closed",e)))}),"T"),q=H((e=>"hours"===e?JR:"minutes"===e?tN:iN),"re"),z=H((()=>{b.value&&clearTimeout(b.value)}),"l"),W=H(((e,t=!0,n)=>{const a=t?A:L,s=t?+r[`${e}Increment`]:-+r[`${e}Increment`];j(+r[e]+s,e)&&i(`update:${e}`,q(e)(a({[e]:+r[e]},{[e]:+r[`${e}Increment`]}))),(null==n||!n.keyboard)&&c.value.timeArrowHoldThreshold&&(b.value=setTimeout((()=>{W(e,t)}),c.value.timeArrowHoldThreshold))}),"w"),G=H((e=>r.is24?e:(g.value=e>=12?"PM":"AM",rH(e))),"oe"),K=H((()=>{"PM"===g.value?(g.value="AM",i("update:hours",r.hours-12)):(g.value="PM",i("update:hours",r.hours+12)),i("am-pm-change",g.value)}),"M"),Y=H((e=>{m[e]=!0}),"he"),Z=H(((e,t,n)=>{if(e&&r.arrowNavigation){Array.isArray(v.value[t])?v.value[t][n]=e:v.value[t]=[e];const i=v.value.reduce(((e,t)=>t.map(((n,i)=>[...e[i]||[],t[i]]))),[]);s(r.closeTimePickerBtn),y.value&&(i[1]=i[1].concat(y.value)),a(i,r.order)}}),"ke"),X=H(((e,t)=>(V(e),i(`update:${e}`,t))),"le");return t({openChildCmp:Y}),(e,t)=>{var n;return e.disabled?Ws("",!0):(As(),Ps("div",wU,[(As(!0),Ps(Ss,null,ea(D.value,((n,i)=>{var a,s,l;return As(),Ps("div",{key:i,class:Fe(I.value),"data-compact":$.value&&!e.enableSeconds,"data-collapsed":$.value&&e.enableSeconds},[n.separator?(As(),Ps(Ss,{key:0},[_.value?Ws("",!0):(As(),Ps(Ss,{key:0},[qs(":")],64))],64)):(As(),Ps(Ss,{key:1},[Bs("button",{ref_for:!0,ref:H((e=>Z(e,i,0)),"ref"),type:"button",class:Fe({dp__btn:!0,dp__inc_dec_button:!e.timePickerInline,dp__inc_dec_button_inline:e.timePickerInline,dp__tp_inline_btn_top:e.timePickerInline,dp__inc_dec_button_disabled:T.value(n.type),"dp--hidden-el":_.value}),"data-test-id":`${n.type}-time-inc-btn-${r.order}`,"aria-label":null==(a=$n(o))?void 0:a.incrementValue(n.type),tabindex:"0",onKeydown:H((e=>$n(xH)(e,(()=>W(n.type,!0,{keyboard:!0})),!0)),"onKeydown"),onClick:H((e=>$n(c).timeArrowHoldThreshold?void 0:W(n.type,!0)),"onClick"),onMousedown:H((e=>$n(c).timeArrowHoldThreshold?W(n.type,!0):void 0),"onMousedown"),onMouseup:z},[r.timePickerInline?(As(),Ps(Ss,{key:1},[e.$slots["tp-inline-arrow-up"]?na(e.$slots,"tp-inline-arrow-up",{key:0}):(As(),Ps(Ss,{key:1},[t[2]||(t[2]=Bs("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),t[3]||(t[3]=Bs("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(As(),Ps(Ss,{key:0},[e.$slots["arrow-up"]?na(e.$slots,"arrow-up",{key:0}):Ws("",!0),e.$slots["arrow-up"]?Ws("",!0):(As(),Os($n(NB),{key:1}))],64))],42,CU),Bs("button",{ref_for:!0,ref:H((e=>Z(e,i,1)),"ref"),type:"button","aria-label":`${O.value(n.type).text}-${null==(s=$n(o))?void 0:s.openTpOverlay(n.type)}`,class:Fe({dp__time_display:!0,dp__time_display_block:!e.timePickerInline,dp__time_display_inline:e.timePickerInline,"dp--time-invalid":S.value(n.type),"dp--time-overlay-btn":!S.value(n.type),"dp--hidden-el":_.value}),disabled:U(n.type),tabindex:"0","data-test-id":`${n.type}-toggle-overlay-btn-${r.order}`,onKeydown:H((e=>$n(xH)(e,(()=>V(n.type)),!0)),"onKeydown"),onClick:H((e=>V(n.type)),"onClick")},[e.$slots[n.type]?na(e.$slots,n.type,{key:0,text:O.value(n.type).text,value:O.value(n.type).value}):Ws("",!0),e.$slots[n.type]?Ws("",!0):(As(),Ps(Ss,{key:1},[qs(ze(O.value(n.type).text),1)],64))],42,kU),Bs("button",{ref_for:!0,ref:H((e=>Z(e,i,2)),"ref"),type:"button",class:Fe({dp__btn:!0,dp__inc_dec_button:!e.timePickerInline,dp__inc_dec_button_inline:e.timePickerInline,dp__tp_inline_btn_bottom:e.timePickerInline,dp__inc_dec_button_disabled:E.value(n.type),"dp--hidden-el":_.value}),"data-test-id":`${n.type}-time-dec-btn-${r.order}
100`,"aria-label":null==(l=$n(o))?void 0:l.decrementValue(n.type),tabindex:"0",onKeydown:H((e=>$n(xH)(e,(()=>W(n.type,!1,{keyboard:!0})),!0)),"onKeydown"),onClick:H((e=>$n(c).timeArrowHoldThreshold?void 0:W(n.type,!1)),"onClick"),onMousedown:H((e=>$n(c).timeArrowHoldThreshold?W(n.type,!1):void 0),"onMousedown"),onMouseup:z},[r.timePickerInline?(As(),Ps(Ss,{key:1},[e.$slots["tp-inline-arrow-down"]?na(e.$slots,"tp-inline-arrow-down",{key:0}):(As(),Ps(Ss,{key:1},[t[4]||(t[4]=Bs("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),t[5]||(t[5]=Bs("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(As(),Ps(Ss,{key:0},[e.$slots["arrow-down"]?na(e.$slots,"arrow-down",{key:0}):Ws("",!0),e.$slots["arrow-down"]?Ws("",!0):(As(),Os($n(FB),{key:1}))],64))],42,xU)],64))],10,SU)})),128)),e.is24?Ws("",!0):(As(),Ps("div",TU,[e.$slots["am-pm-button"]?na(e.$slots,"am-pm-button",{key:0,toggle:K,value:g.value}):Ws("",!0),e.$slots["am-pm-button"]?Ws("",!0):(As(),Ps("button",{key:1,ref_key:"amPmButton",ref:y,type:"button",class:"dp__pm_am_button",role:"button","aria-label":null==(n=$n(o))?void 0:n.amPmButton,tabindex:"0","data-compact":$.value,onClick:K,onKeydown:t[0]||(t[0]=e=>$n(xH)(e,(()=>K()),!0))},ze(g.value),41,EU))])),(As(!0),Ps(Ss,null,ea(P.value,((n,i)=>(As(),Os(No,{key:i,name:$n(h)(m[n.type]),css:$n(f)},{default:Ii((()=>{var i,r;return[m[n.type]?(As(),Os(rU,{key:0,items:N(n.type),"is-last":e.autoApply&&!$n(c).keepActionRow,"esc-close":e.escClose,type:n.type,"text-input":e.textInput,config:e.config,"arrow-navigation":e.arrowNavigation,"aria-labels":e.ariaLabels,"overlay-label":null==(r=(i=$n(o)).timeOverlay)?void 0:r.call(i,n.type),onSelected:H((e=>X(n.type,e)),"onSelected"),onToggle:H((e=>V(n.type)),"onToggle"),onResetFlow:t[1]||(t[1]=t=>e.$emit("reset-flow"))},ta({"button-icon":Ii((()=>[e.$slots["clock-icon"]?na(e.$slots,"clock-icon",{key:0}):Ws("",!0),e.$slots["clock-icon"]?Ws("",!0):(As(),Os(Xr(e.timePickerInline?$n(DB):$n(RB)),{key:1}))])),_:2},[e.$slots[`${n.type}-overlay-value`]?{name:"item",fn:Ii((({item:t})=>[na(e.$slots,`${n.type}-overlay-value`,{text:t.text,value:t.value})])),key:"0"}:void 0,e.$slots[`${n.type}-overlay-header`]?{name:"header",fn:Ii((()=>[na(e.$slots,`${n.type}-overlay-header`,{toggle:H((()=>V(n.type)),"toggle")})])),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","overlay-label","onSelected","onToggle"])):Ws("",!0)]})),_:2},1032,["name","css"])))),128))]))}}}),LU=["data-dp-mobile"],IU=["aria-label","tabindex"],$U=["role","aria-label","tabindex"],DU=["aria-label"],PU=vr({compatConfig:{MODE:3},__name:"TimePicker",props:F({hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:H((()=>!1),"default")}},Zj),emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const i=n,r=e,{buildMatrix:a,setTimePicker:s}=xj(),o=ua(),{defaultedTransitions:l,defaultedAriaLabels:u,defaultedTextInput:c,defaultedConfig:d,defaultedRange:p}=Wj(r),{transitionName:h,showTransition:f}=wV(l),{hideNavigationButtons:m}=xV(),g=Tn(null),y=Tn(null),v=Tn([]),b=Tn(null),_=Tn(!1);Br((()=>{i("mount"),!r.timePicker&&r.arrowNavigation?a([aH(g.value)],"time"):s(!0,r.timePicker)}));const w=Co((()=>!p.value.enabled||!r.modelAuto||oH(r.internalModelValue))),S=Tn(!1),C=H((e=>({hours:Array.isArray(r.hours)?r.hours[e]:r.hours,minutes:Array.isArray(r.minutes)?r.minutes[e]:r.minutes,seconds:Array.isArray(r.seconds)?r.seconds[e]:r.seconds})),"H"),k=Co((()=>{const e=[];if(p.value.enabled)for(let t=0;t<2;t++)e.push(C(t));else e.push(C(0));return e})),x=H(((e,t=!1,n="")=>{t||i("reset-flow"),S.value=e,i(e?"overlay-opened":"overlay-closed",KB.time),r.arrowNavigation&&s(e),vi((()=>{""!==n&&v.value[0]&&v.value[0].openChildCmp(n)}))}),"Q"),T=Co((()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:r.autoApply&&!d.value.keepActionRow}))),E=_V(o,"timePicker"),A=H(((e,t,n)=>p.value.enabled?0===t?[e,k.value[1][n]]:[k.value[0][n],e]:e),"ve"),L=H((e=>{i("update:hours",e)}),"pe"),I=H((e=>{i("update:minutes",e)}),"v"),$=H((e=>{i("update:seconds",e)}),"N"),D=H((()=>
100{if(b.value&&!c.value.enabled&&!r.noOverlayFocus){const e=pH(b.value);e&&e.focus({preventScroll:!0})}}),"ee"),P=H((e=>{_.value=!1,i("overlay-closed",e)}),"y"),O=H((e=>{_.value=!0,i("overlay-opened",e)}),"U");return t({toggleTimePicker:x}),(t,n)=>{var i;return As(),Ps("div",{class:"dp--tp-wrap","data-dp-mobile":t.isMobile},[t.timePicker||t.timePickerInline?Ws("",!0):$i((As(),Ps("button",{key:0,ref_key:"openTimePickerBtn",ref:g,type:"button",class:Fe(B(F({},T.value),{"dp--hidden-el":S.value})),"aria-label":null==(i=$n(u))?void 0:i.openTimePicker,tabindex:t.noOverlayFocus?void 0:0,"data-test-id":"open-time-picker-btn",onKeydown:n[0]||(n[0]=e=>$n(xH)(e,(()=>x(!0)))),onClick:n[1]||(n[1]=e=>x(!0))},[t.$slots["clock-icon"]?na(t.$slots,"clock-icon",{key:0}):Ws("",!0),t.$slots["clock-icon"]?Ws("",!0):(As(),Os($n(RB),{key:1}))],42,IU)),[[tl,!$n(m)(t.hideNavigation,"time")]]),Hs(No,{name:$n(h)(S.value),css:$n(f)&&!t.timePickerInline},{default:Ii((()=>{var i,a;return[S.value||t.timePicker||t.timePickerInline?(As(),Ps("div",{key:0,ref_key:"overlayRef",ref:b,role:t.timePickerInline?void 0:"dialog",class:Fe({dp__overlay:!t.timePickerInline,"dp--overlay-absolute":!r.timePicker&&!t.timePickerInline,"dp--overlay-relative":r.timePicker}),style:Pe(t.timePicker?{height:`${$n(d).modeHeight}px`}:void 0),"aria-label":null==(i=$n(u))?void 0:i.timePicker,tabindex:t.timePickerInline?void 0:0},[Bs("div",{class:Fe(t.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[t.$slots["time-picker-overlay"]?na(t.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:L,setMinutes:I,setSeconds:$}):Ws("",!0),t.$slots["time-picker-overlay"]?Ws("",!0):(As(),Ps("div",{key:1,class:Fe(t.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(As(!0),Ps(Ss,null,ea(k.value,((i,r)=>$i((As(),Os(AU,Zs({key:r,ref_for:!0},B(F({},t.$props),{order:r,hours:i.hours,minutes:i.minutes,seconds:i.seconds,closeTimePickerBtn:y.value,disabledTimesConfig:e.disabledTimesConfig,disabled:0===r?$n(p).fixedStart:$n(p).fixedEnd}),{ref_for:!0,ref_key:"timeInputRefs",ref:v,"validate-time":H(((t,n)=>e.validateTime(t,A(n,r,t))),"validate-time"),"onUpdate:hours":H((e=>L(A(e,r,"hours"))),"onUpdate:hours"),"onUpdate:minutes":H((e=>I(A(e,r,"minutes"))),"onUpdate:minutes"),"onUpdate:seconds":H((e=>$(A(e,r,"seconds"))),"onUpdate:seconds"),onMounted:D,onOverlayClosed:P,onOverlayOpened:O,onAmPmChange:n[2]||(n[2]=e=>t.$emit("am-pm-change",e))}),ta({_:2},[ea($n(E),((e,n)=>({name:e,fn:Ii((n=>[na(t.$slots,e,Zs({ref_for:!0},n))]))})))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[tl,0===r||w.value]]))),128))],2)),t.timePicker||t.timePickerInline?Ws("",!0):$i((As(),Ps("button",{key:2,ref_key:"closeTimePickerBtn",ref:y,type:"button",class:Fe(B(F({},T.value),{"dp--hidden-el":_.value})),"aria-label":null==(a=$n(u))?void 0:a.closeTimePicker,tabindex:"0",onKeydown:n[3]||(n[3]=e=>$n(xH)(e,(()=>x(!1)))),onClick:n[4]||(n[4]=e=>x(!1))},[t.$slots["calendar-icon"]?na(t.$slots,"calendar-icon",{key:0}):Ws("",!0),t.$slots["calendar-icon"]?Ws("",!0):(As(),Os($n(DB),{key:1}))],42,DU)),[[tl,!$n(m)(t.hideNavigation,"time")]])],2)],14,$U)):Ws("",!0)]})),_:3},8,["name","css"])],8,LU)}}}),OU=H(((e,t,n,i)=>{const{defaultedRange:r}=Wj(e),a=H(((e,n)=>Array.isArray(t[e])?t[e][n]:t[e]),"u"),s=H((n=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[n]:t.seconds:0),"c"),o=H(((e,n)=>e?void 0!==n?OH(e,a("hours",n),a("minutes",n),s(n)):OH(e,t.hours,t.minutes,s()):EB($H(),s(n))),"p"),l=H(((e,n)=>{t[e]=n}),"d"),u=Co((()=>e.modelAuto&&r.value.enabled?!!Array.isArray(n.value)&&n.value.length>1:r.value.enabled)),c=H(((e,i)=>{const a=Object.fromEntries(Object.keys(t).map((n=>n===e?[n,i]:[n,t[n]].slice())));if(u.value&&!r.value.disableTimeRangeValidation){const e=H((e=>n.value?OH(n.value[e],a.hours[e],a.minutes[e],a.seconds[e]):null),"ae"),t=H((e=>xB(n.value[e],0)),"H");return!(RH(e(0),e(1))&&(aN(e(0),t(1))||sN(e(1),t(0))))}return!0}),"f"),d=H(((e,t)=>{c(e,t)&&(l(e,t),i&&i())}),"O"),p=H((e=>{d("hours",e)}),"m"),h=H((e=>{d("minutes",e)}),"P"),f=H((e=>{d("seconds",e)}),"F"),m=H(((e,t,i,r)=>{t&&p(e),!t&&!i&&h(e),i&&f(e),n.value&&r(n.value)}),"L"),g=H((t=>{if(t){const n=Array.isArray(t),i=n?[+t[0].hours,+t[1].hours]:+t.hours,r=n?[+t[0].minutes,+t[1].minutes]:+t.minutes,a=n?[+t[0].seconds,+t[1].seconds]:+t.seconds;l("hours",i),l("minutes",r),e.enableSeconds&&l("seconds",a)}}),"_"),y=H(((n,i)=>{const a={hours:Array.isArray(t.hours)?t.hours[n]:t.hours,disabledArr:[]};return(i||0===i)&&(a.hours=i),Array.isArray(e.disabledTimes)&&(a.disabledArr=r.value.enabled&&Array.isArray(e.disabledTimes[n])?e.disabledTimes[n]:e.disabledTimes),a}),"h"),v=Co((()=>(t,n)=>{var i,r,a;if(Array.isArray(e.disabledTimes)){const{disabledArr:e,hours:s}=y(t,n),o=e.filter((e=>+e.hours===s));return"*"===(null==(a=o[0])?void 0:a.minutes)?{hours:[s],minutes:void 0,seconds:void 0}:{hours:[],minutes:null!=(i=null==o?void 0:o.map((e=>+e.minutes)))?i:[],seconds:null!=(r=null==o?void 0:o.map((e=>e.seconds?+e.seconds:void 0)))?r:[]}}return{hours:[],minutes:[],seconds:[]}}));return{setTime:l,updateHours:p,updateMinutes:h,updateSeconds:f,getSetDateTime:o,updateTimeValues:m,getSecondsValue:s,assignStartTime:g,validateTime:c,disabledTimesConfig:v}}),"Kn$1"),MU=H(((e,t)=>{const n=H((()=>{e.isTextInputDate&&_()}),"r"),{modelValue:i,time:r}=SV(e,t,n),{defaultedStartTime:a,defaultedRange:s,defaultedTz:o}=Wj(e),{updateTimeValues:l,getSetDateTime:u,setTime:c,assignStartTime:d,disabledTimesConfig:p,validateTime:h}=OU(e,r,i,f);function f(){t("update-flow-step")}H(f,"F");const m=H((e=>{const{hours:t,minutes:n,seconds:i}=e;return{hours:+t,minutes:+n,seconds:i?+i:0}}),"L"),g=H((()=>
100{if(e.startTime){if(Array.isArray(e.startTime)){const t=m(e.startTime[0]),n=m(e.startTime[1]);return[CB($H(),t),CB($H(),n)]}const t=m(e.startTime);return CB($H(),t)}return s.value.enabled?[null,null]:null}),"_"),y=H((()=>{if(s.value.enabled){const[e,t]=g();i.value=[BB(u(e,0),o.value.timezone),BB(u(t,1),o.value.timezone)]}else i.value=BB(u(g()),o.value.timezone)}),"h"),v=H((e=>Array.isArray(e)?[jH($H(e[0])),jH($H(e[1]))]:[jH(null!=e?e:$H())]),"R"),b=H(((t,n,i)=>{c("hours",t),c("minutes",n),c("seconds",e.enableSeconds?i:0)}),"b"),_=H((()=>{const[e,t]=v(i.value);return s.value.enabled?b([e.hours,t.hours],[e.minutes,t.minutes],[e.seconds,t.seconds]):b(e.hours,e.minutes,e.seconds)}),"j");Br((()=>{if(!e.shadow)return d(a.value),i.value?_():y()}));const w=H((()=>{Array.isArray(i.value)?i.value=i.value.map(((e,t)=>e&&u(e,t))):i.value=u(i.value),t("time-update")}),"z");return{modelValue:i,time:r,disabledTimesConfig:p,updateTime:H(((e,t=!0,n=!1)=>{l(e,t,n,w)}),"updateTime"),validateTime:h}}),"Br$2"),RU=vr({compatConfig:{MODE:3},__name:"TimePickerSolo",props:F({},Zj),emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(e,{expose:t,emit:n}){const i=n,r=e,a=ua(),s=_V(a,"timePicker"),o=Tn(null),{time:l,modelValue:u,disabledTimesConfig:c,updateTime:d,validateTime:p}=MU(r,i);return Br((()=>{r.shadow||i("mount",null)})),t({getSidebarProps:H((()=>({modelValue:u,time:l,updateTime:d})),"getSidebarProps"),toggleTimePicker:H(((e,t=!1,n="")=>{var i;null==(i=o.value)||i.toggleTimePicker(e,t,n)}),"toggleTimePicker")}),(e,t)=>(As(),Os(sU,{"multi-calendars":0,stretch:"","is-mobile":e.isMobile},{default:Ii((()=>[Hs(PU,Zs({ref_key:"tpRef",ref:o},e.$props,{hours:$n(l).hours,minutes:$n(l).minutes,seconds:$n(l).seconds,"internal-model-value":e.internalModelValue,"disabled-times-config":$n(c),"validate-time":$n(p),"onUpdate:hours":t[0]||(t[0]=e=>$n(d)(e)),"onUpdate:minutes":t[1]||(t[1]=e=>$n(d)(e,!1)),"onUpdate:seconds":t[2]||(t[2]=e=>$n(d)(e,!1,!0)),onAmPmChange:t[3]||(t[3]=t=>e.$emit("am-pm-change",t)),onResetFlow:t[4]||(t[4]=t=>e.$emit("reset-flow")),onOverlayClosed:t[5]||(t[5]=t=>e.$emit("overlay-toggle",{open:!1,overlay:t})),onOverlayOpened:t[6]||(t[6]=t=>e.$emit("overlay-toggle",{open:!0,overlay:t}))}),ta({_:2},[ea($n(s),((t,n)=>({name:t,fn:Ii((n=>[na(e.$slots,t,Be(Us(n)))]))})))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])])),_:3},8,["is-mobile"]))}}),NU={class:"dp--header-wrap"},FU={key:0,class:"dp__month_year_wrap"},BU={key:0},HU={class:"dp__month_year_wrap"},jU=["data-dp-element","aria-label","data-test-id","onClick","onKeydown"],UU=vr({compatConfig:{MODE:3},__name:"DpHeader",props:F({month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:H((()=>[]),"default")},months:{type:Array,default:H((()=>[]),"default")}},Zj),emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(e,{expose:t,emit:n}){const i=n,r=e,{defaultedTransitions:a,defaultedAriaLabels:s,defaultedMultiCalendars:o,defaultedFilters:l,defaultedConfig:u,defaultedHighlight:c,propDates:d,defaultedUI:p}=Wj(r),{transitionName:h,showTransition:f}=wV(a),{buildMatrix:m}=xj(),{handleMonthYearChange:g,isDisabled:y,updateMonthYear:v}=Kj(r,i),{showLeftIcon:b,showRightIcon:_}=xV(),w=Tn(!1),S=Tn(!1),C=Tn(!1),k=Tn([null,null,null,null]);Br((()=>{i("mount")}));const x=H((e=>({get:H((()=>r[e]),"get"),set:H((t=>{const n=e===zB.month?zB.year:zB.month;i("update-month-year",{[e]:t,[n]:r[n]}),e===zB.month?P(!0):O(!0)}),"set")})),"Q"),T=Co(x(zB.month)),E=Co(x(zB.year)),A=Co((()=>e=>({month:r.month,year:r.year,items:e===zB.month?r.months:r.years,instance:r.instance,updateMonthYear:v,toggle:e===zB.month?P:O}))),L=Co((()=>r.months.find((e=>e.value===r.month))||{text:"",value:0})),I=Co((()=>mH(r.months,(e=>({active:r.month===e.value,disabled:fH(e.value,UH(r.year,d.value.minDate),VH(r.year,d.value.maxDate))||l.value.months.includes(e.value),highlighted:dj(c.value,e.value,r.year)}))))),$=Co((()=>mH(r.years,(e=>({active:r.year===e.value,disabled:fH(e.value,qH(d.value.minDate),qH(d.value.maxDate))||l.value.years.includes(e.value),highlighted:pj(c.value,e.value)}))))),D=H(((e,t,n)=>{e.value=void 0!==n?n:!e.value,e.value?(C.value=!0,i("overlay-opened",t)):(C.value=!1,i("overlay-closed",t))}),"ee"),P=H(((e=!1,t)=>{M(e),D(w,KB.month,t)}),"y"),O=H(((e=!1,t)=>{M(e),D(S,KB.year,t)}),"U"),M=H((e=>{e||i("reset-flow")}),"S"),R=H(((e,t)=>{r.arrowNavigation&&(k.value[t]=aH(e),m(k.value,"monthYear"))}),"Z"),N=Co((()=>{var e,t,n,i,a,o,l,u;return[{type:zB.month,index:1,toggle:P,modelValue:T.value,updateModelValue:H((e=>T.value=e),"updateModelValue"),text:L.value.text,showSelectionGrid:w.value,items:I.value,ariaLabel:null==(n=s.value)?void 0:n.openMonthsOverlay,overlayLabel:null!=(e=null==(a=(i=s.value).monthPicker)?void 0:a.call(i,!0))?e:void 0},{type:zB.year,index:2,toggle:O,modelValue:E.value,updateModelValue:H((e=>E.value=e),"updateModelValue"),text:_H(r.year,r.locale),showSelectionGrid:S.value,items:$.value,ariaLabel:null==(o=s.value)?void 0:o.openYearsOverlay,overlayLabel:null!=(t=null==(u=(l=s.value).yearPicker)?void 0:u.call(l,!0))?t:void 0}]})),F=Co((()=>r.disableYearSelect?[N.value[0]]:r.yearFirst?[...N.value].reverse():N.value));return t({toggleMonthPicker:P,toggleYearPicker:O,handleMonthYearChange:g}),(t,n)=>{var i,a,l,c,d,m;return As(),Ps("div",NU,[t.$slots["month-year"]?(As(),Ps("div",FU,[na(t.$slots,"month-year",Be(Us({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:$n(v),handleMonthYearChange:$n(g),instance:e.instance,isDisabled:$n(y)})))])):(As(),Ps(Ss,{key:1},[t.$slots["top-extra"]?(As(),Ps("div",BU,[na(t.$slots,"top-extra",{value:t.internalModelValue}
100)])):Ws("",!0),Bs("div",HU,[$n(b)($n(o),e.instance)&&!t.vertical?(As(),Os(lU,{key:0,"aria-label":null==(i=$n(s))?void 0:i.prevMonth,disabled:$n(y)(!1),class:Fe(null==(a=$n(p))?void 0:a.navBtnPrev),"el-name":"action-prev",onActivate:n[0]||(n[0]=e=>$n(g)(!1,!0)),onSetRef:n[1]||(n[1]=e=>R(e,0))},{default:Ii((()=>[t.$slots["arrow-left"]?na(t.$slots,"arrow-left",{key:0}):Ws("",!0),t.$slots["arrow-left"]?Ws("",!0):(As(),Os($n(OB),{key:1}))])),_:3},8,["aria-label","disabled","class"])):Ws("",!0),Bs("div",{class:Fe(["dp__month_year_wrap",{dp__year_disable_select:t.disableYearSelect}])},[(As(!0),Ps(Ss,null,ea(F.value,((n,i)=>(As(),Ps(Ss,{key:n.type},[Bs("button",{ref_for:!0,ref:H((e=>R(e,i+1)),"ref"),type:"button","data-dp-element":`overlay-${n.type}`,class:Fe(["dp__btn dp__month_year_select",{"dp--hidden-el":C.value}]),"aria-label":`${n.text}-${n.ariaLabel}`,"data-test-id":`${n.type}-toggle-overlay-${e.instance}`,onClick:n.toggle,onKeydown:H((e=>$n(xH)(e,(()=>n.toggle()),!0)),"onKeydown")},[t.$slots[n.type]?na(t.$slots,n.type,{key:0,text:n.text,value:r[n.type]}):Ws("",!0),t.$slots[n.type]?Ws("",!0):(As(),Ps(Ss,{key:1},[qs(ze(n.text),1)],64))],42,jU),Hs(No,{name:$n(h)(n.showSelectionGrid),css:$n(f)},{default:Ii((()=>[n.showSelectionGrid?(As(),Os(rU,{key:0,items:n.items,"arrow-navigation":t.arrowNavigation,"hide-navigation":t.hideNavigation,"is-last":t.autoApply&&!$n(u).keepActionRow,"skip-button-ref":!1,config:t.config,type:n.type,"header-refs":[],"esc-close":t.escClose,"menu-wrap-ref":t.menuWrapRef,"text-input":t.textInput,"aria-labels":t.ariaLabels,"overlay-label":n.overlayLabel,onSelected:n.updateModelValue,onToggle:n.toggle},ta({"button-icon":Ii((()=>[t.$slots["calendar-icon"]?na(t.$slots,"calendar-icon",{key:0}):Ws("",!0),t.$slots["calendar-icon"]?Ws("",!0):(As(),Os($n(DB),{key:1}))])),_:2},[t.$slots[`${n.type}-overlay-value`]?{name:"item",fn:Ii((({item:e})=>[na(t.$slots,`${n.type}-overlay-value`,{text:e.text,value:e.value})])),key:"0"}:void 0,t.$slots[`${n.type}-overlay`]?{name:"overlay",fn:Ii((()=>[na(t.$slots,`${n.type}-overlay`,Zs({ref_for:!0},A.value(n.type)))])),key:"1"}:void 0,t.$slots[`${n.type}-overlay-header`]?{name:"header",fn:Ii((()=>[na(t.$slots,`${n.type}-overlay-header`,{toggle:n.toggle})])),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","overlay-label","onSelected","onToggle"])):Ws("",!0)])),_:2},1032,["name","css"])],64)))),128))],2),$n(b)($n(o),e.instance)&&t.vertical?(As(),Os(lU,{key:1,"aria-label":null==(l=$n(s))?void 0:l.prevMonth,"el-name":"action-prev",disabled:$n(y)(!1),class:Fe(null==(c=$n(p))?void 0:c.navBtnPrev),onActivate:n[2]||(n[2]=e=>$n(g)(!1,!0))},{default:Ii((()=>[t.$slots["arrow-up"]?na(t.$slots,"arrow-up",{key:0}):Ws("",!0),t.$slots["arrow-up"]?Ws("",!0):(As(),Os($n(NB),{key:1}))])),_:3},8,["aria-label","disabled","class"])):Ws("",!0),$n(_)($n(o),e.instance)?(As(),Os(lU,{key:2,ref:"rightIcon","el-name":"action-next",disabled:$n(y)(!0),"aria-label":null==(d=$n(s))?void 0:d.nextMonth,class:Fe(null==(m=$n(p))?void 0:m.navBtnNext),onActivate:n[3]||(n[3]=e=>$n(g)(!0,!0)),onSetRef:n[4]||(n[4]=e=>R(e,t.disableYearSelect?2:3))},{default:Ii((()=>[t.$slots[t.vertical?"arrow-down":"arrow-right"]?na(t.$slots,t.vertical?"arrow-down":"arrow-right",{key:0}):Ws("",!0),t.$slots[t.vertical?"arrow-down":"arrow-right"]?Ws("",!0):(As(),Os(Xr(t.vertical?$n(FB):$n(MB)),{key:1}))])),_:3},8,["disabled","aria-label","class"])):Ws("",!0)])],64))])}}}),VU={class:"dp__calendar_header",role:"row"},qU={key:0,class:"dp__calendar_header_item",role:"gridcell"},zU=["aria-label"],WU={key:0,class:"dp__calendar_item dp__week_num",role:"gridcell"},GU={class:"dp__cell_inner"},KU=["id","aria-pressed","aria-disabled","aria-label","tabindex","data-test-id","onClick","onTouchend","onKeydown","onMouseenter","onMouseleave","onMousedown"],YU=vr({compatConfig:{MODE:3},__name:"DpCalendar",props:F({mappedDates:{type:Array,default:H((()=>[]),"default")},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0}},Zj),emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:n}){const i=n,r=e,{buildMultiLevelMatrix:a}=xj(),{defaultedTransitions:s,defaultedConfig:o,defaultedAriaLabels:l,defaultedMultiCalendars:u,defaultedWeekNumbers:c,defaultedMultiDates:d,defaultedUI:p}=Wj(r),h=Tn(null),f=Tn({bottom:"",left:"",transform:""}),m=Tn([]),g=Tn(null),y=Tn(!0),v=Tn(""),b=Tn({startX:0,endX:0,startY:0,endY:0}),_=Tn([]),w=Tn({left:"50%"}),S=Tn(!1),C=Co((()=>r.calendar?r.calendar(r.mappedDates):r.mappedDates)),k=Co((()=>r.dayNames?Array.isArray(r.dayNames)?r.dayNames:r.dayNames(r.locale,+r.weekStart):tH(r.formatLocale,r.locale,+r.weekStart)));Br((()=>{i("mount",{cmp:"calendar",refs:m}),o.value.noSwipe||g.value&&(g.value.addEventListener("touchstart",R,{passive:!1}),g.value.addEventListener("touchend",N,{passive:!1}),g.value.addEventListener("touchmove",j,{passive:!1}
100)),r.monthChangeOnScroll&&g.value&&g.value.addEventListener("wheel",z,{passive:!1})})),Vr((()=>{o.value.noSwipe||g.value&&(g.value.removeEventListener("touchstart",R),g.value.removeEventListener("touchend",N),g.value.removeEventListener("touchmove",j)),r.monthChangeOnScroll&&g.value&&g.value.removeEventListener("wheel",z)}));const x=H((e=>e?r.vertical?"vNext":"next":r.vertical?"vPrevious":"previous"),"Q"),T=H(((e,t)=>{if(r.transitions){const n=PH(ZH($H(),r.month,r.year));v.value=NH(PH(ZH($H(),e,t)),n)?s.value[x(!0)]:s.value[x(!1)],y.value=!1,vi((()=>{y.value=!0}))}}),"B"),E=Co((()=>{var e;return F({},null!=(e=p.value.calendar)?e:{})})),A=Co((()=>e=>{const t=sH(e);return{dp__marker_dot:"dot"===t.type,dp__marker_line:"line"===t.type}})),L=Co((()=>e=>RH(e,h.value))),I=Co((()=>({dp__calendar:!0,dp__calendar_next:u.value.count>0&&0!==r.instance}))),$=Co((()=>e=>!r.hideOffsetDates||e.current)),D=H(((e,t)=>V(this,null,(function*(){const{width:n,height:i}=e.getBoundingClientRect();h.value=t.value;let r={left:n/2+"px"},a=-50;if(yield vi(),_.value[0]){const{left:e,width:t}=_.value[0].getBoundingClientRect();e<0&&(r={left:"0"},a=0,w.value.left=n/2+"px"),window.innerWidth<e+t&&(r={right:"0"},a=0,w.value.left=t-n/2+"px")}f.value=B(F({bottom:`${i}px`},r),{transform:`translateX(${a}%)`})}))),"ee"),P=H(((e,t,n)=>V(this,null,(function*(){var r,a,s;const o=aH(m.value[t][n]);o&&(null!=(r=e.marker)&&r.customPosition&&null!=(s=null==(a=e.marker)?void 0:a.tooltip)&&s.length?f.value=e.marker.customPosition(o):yield D(o,e),i("tooltip-open",e.marker))}))),"y"),O=H(((e,t,n)=>V(this,null,(function*(){var a,s;if(S.value&&d.value.enabled&&d.value.dragSelect)return i("select-date",e);if(i("set-hover-date",e),null!=(s=null==(a=e.marker)?void 0:a.tooltip)&&s.length){if(r.hideOffsetDates&&!e.current)return;yield P(e,t,n)}}))),"U"),M=H((e=>{h.value&&(h.value=null,f.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),i("tooltip-close",e.marker))}),"S"),R=H((e=>{b.value.startX=e.changedTouches[0].screenX,b.value.startY=e.changedTouches[0].screenY}),"Z"),N=H((e=>{b.value.endX=e.changedTouches[0].screenX,b.value.endY=e.changedTouches[0].screenY,U()}),"A"),j=H((e=>{r.vertical&&!r.inline&&e.preventDefault()}),"ie"),U=H((()=>{const e=r.vertical?"Y":"X";Math.abs(b.value[`start${e}`]-b.value[`end${e}`])>10&&i("handle-swipe",b.value[`start${e}`]>b.value[`end${e}`]?"right":"left")}),"i"),q=H(((e,t,n)=>{e&&(Array.isArray(m.value[t])?m.value[t][n]=e:m.value[t]=[e]),r.arrowNavigation&&a(m.value,"calendar")}),"W"),z=H((e=>{r.monthChangeOnScroll&&(e.preventDefault(),i("handle-scroll",e))}),"se"),W=H((e=>"local"===c.value.type?bR(e.value,{weekStartsOn:+r.weekStart}):"iso"===c.value.type?gR(e.value):"function"==typeof c.value.type?c.value.type(e.value):""),"T"),G=H((e=>{const t=e[0];return c.value.hideOnOffsetDates?e.some((e=>e.current))?W(t):"":W(t)}),"re"),K=H(((e,t,n=!0)=>{!n&&TH()||(!d.value.enabled||o.value.allowPreventDefault)&&(gH(e,o.value),i("select-date",t))}),"l"),Y=H((e=>{gH(e,o.value)}),"w"),Z=H((e=>{d.value.enabled&&d.value.dragSelect?(S.value=!0,i("select-date",e)):d.value.enabled&&i("select-date",e)}),"oe");return t({triggerTransition:T}),(e,t)=>(As(),Ps("div",{class:Fe(I.value)},[Bs("div",{ref_key:"calendarWrapRef",ref:g,class:Fe(E.value),role:"grid"},[Bs("div",VU,[e.weekNumbers?(As(),Ps("div",qU,ze(e.weekNumName),1)):Ws("",!0),(As(!0),Ps(Ss,null,ea(k.value,((t,n)=>{var i,r;return As(),Ps("div",{key:n,class:"dp__calendar_header_item",role:"gridcell","data-test-id":"calendar-header","aria-label":null==(r=null==(i=$n(l))?void 0:i.weekDay)?void 0:r.call(i,n)},[e.$slots["calendar-header"]?na(e.$slots,"calendar-header",{key:0,day:t,index:n}):Ws("",!0),e.$slots["calendar-header"]?Ws("",!0):(As(),Ps(Ss,{key:1},[qs(ze(t),1)],64))],8,zU)})),128))]),t[2]||(t[2]=Bs("div",{class:"dp__calendar_header_separator"},null,-1)),Hs(No,{name:v.value,css:!!e.transitions},{default:Ii((()=>[y.value?(As(),Ps("div",{key:0,class:"dp__calendar",role:"rowgroup",onMouseleave:t[1]||(t[1]=e=>S.value=!1)},[(As(!0),Ps(Ss,null,ea(C.value,((n,i)=>(As(),Ps("div",{key:i,class:"dp__calendar_row",role:"row"},[e.weekNumbers?(As(),Ps("div",WU,[Bs("div",GU,ze(G(n.days)),1)])):Ws("",!0),(As(!0),Ps(Ss,null,ea(n.days,((n,r)=>{var a,s,o,u;return As(),Ps("div",{id:$n(hj)(n.value),ref_for:!0,ref:H((e=>q(e,i,r)),"ref"),key:r+i,role:"gridcell",class:"dp__calendar_item","aria-pressed":null!=(a=n.classData.dp__active_date||n.classData.dp__range_start||n.classData.dp__range_start)?a:void 0,"aria-disabled":n.classData.dp__cell_disabled||void 0,"aria-label":null==(o=null==(s=$n(l))?void 0:s.day)?void 0:o.call(s,n),tabindex:!n.current&&e.hideOffsetDates?void 0:0,"data-test-id":$n(hj)(n.value),onClick:Kl((e=>K(e,n)),["prevent"]),onTouchend:H((e=>K(e,n,!1)),"onTouchend"),onKeydown:H((t=>$n(xH)(t,(()=>e.$emit("select-date",n)))),"onKeydown"),onMouseenter:H((e=>O(n,i,r)),"onMouseenter"),onMouseleave:H((e=>M(n)),"onMouseleave"),onMousedown:H((e=>Z(n)),"onMousedown"),onMouseup:t[0]||(t[0]=e=>S.value=!1)},[Bs("div",{class:Fe(["dp__cell_inner",n.classData])},[e.$slots.day&&$.value(n)?na(e.$slots,"day",{key:0,day:+n.text,date:n.value}):Ws("",!0),e.$slots.day?Ws("",!0):(As(),Ps(Ss,{key:1},[qs(ze(n.text),1)],64)),n.marker&&$.value(n)?(As(),Ps(Ss,{key:2},[e.$slots.marker?na(e.$slots,"marker",{key:0,marker:n.marker,day:+n.text,date:n.value}):(As(),Ps("div",{key:1,class:Fe(A.value(n.marker)),style:Pe(n.marker.color?{backgroundColor:n.marker.color}:{})},null,6))],64)):Ws("",!0),L.value(n.value)?(As(),Ps("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:_,class:"dp__marker_tooltip",style:Pe(f.value)},[null!=(u=n.marker)&&u.tooltip?(As(),Ps("div",{key:0,class:"dp__tooltip_content",onClick:Y},[(As(!0),Ps(Ss,null,ea(n.marker.tooltip,((t,i)=>(As(),Ps("div",{key:i,class:"dp__tooltip_text"},[e.$slots["marker-tooltip"]?na(e.$slots,"marker-tooltip",{key:0,tooltip:t,day:n.value}):Ws("",!0),e.$slots["marker-tooltip"]?Ws("",!0):(As(),Ps(Ss,{key:1},[Bs("div",{class:"dp__tooltip_mark",style:Pe(t.color?{backgroundColor:t.color}:{})},null,4),Bs("div",null,ze(t.text),1)],64))])))),128)),Bs("div",{class:"dp__arrow_bottom_tp",style:Pe(w.value)},null,4)])):Ws("",!0)],4)):Ws("",!0)],2)],40,KU)})),128))])))),128))],32)):Ws("",!0)])),_:3},8,["name","css"])],2)],2))}}),ZU=H((e=>Array.isArray(e)),"yn$2"),XU=H(((e,t,n,i)=>{const r=Tn([]),a=Tn(new Date),s=Tn(),o=H((()=>N(e.isTextInputDate)),"p"),{modelValue:l,calendars:u,time:c,today:d}=SV(e,t,o),{defaultedMultiCalendars:p,defaultedStartTime:h,defaultedRange:f,defaultedConfig:m,defaultedTz:g,propDates:y,defaultedMultiDates:v}=Wj(e),{validateMonthYearInRange:b,isDisabled:_,isDateRangeAllowed:w,checkMinMaxRange:S}=kV(e),{updateTimeValues:C,getSetDateTime:k,setTime:x,assignStartTime:T,validateTime:E,disabledTimesConfig:A}=OU(e,c,l,i),L=Co((()=>e=>u.value[e]?u.value[e].month:0)),I=Co((()=>e=>u.value[e]?u.value[e].year:0)),$=H((e=>!(m.value.keepViewOnOffsetClick&&!e)||!s.value),"N"),D=H(((e,t,n,i=!1)=>{var r,a;$(i)&&(u.value[e]||(u.value[e]={month:0,year:0}),u.value[e].month=dH(t)?null==(r=u.value[e])?void 0:r.month:t,u.value[e].year=dH(n)?null==(a=u.value[e])?void 0:a.year:n)}),"ee"),P=H((()=>{e.autoApply&&t("select-date")}),"y"),O=H((()=>{h.value&&T(h.value)}),"U");Br((()=>{e.shadow||(l.value||(Y(),O()),N(!0),e.focusStartDate&&e.startDate&&Y())}
100));const M=Co((()=>{var t;return!(null!=(t=e.flow)&&t.length&&!e.partialFlow)||e.flowStep===e.flow.length})),R=H((()=>{e.autoApply&&M.value&&t("auto-apply",!!e.partialFlow&&e.flowStep!==e.flow.length)}),"Z"),N=H(((t=!1)=>l.value?Array.isArray(l.value)?(r.value=l.value,z(t)):j(l.value,t):p.value.count&&t&&!e.startDate?B($H(),t):void 0),"A"),F=H((()=>{var e;return!(!Array.isArray(l.value)||!f.value.enabled)&&nN(l.value[0])===nN(null!=(e=l.value[1])?e:l.value[0])}),"ie"),B=H(((e=new Date,t=!1)=>{if((!p.value.count||!p.value.static||t)&&D(0,nN(e),rN(e)),p.value.count&&(!l.value||F()||!p.value.solo)&&(!p.value.solo||t))for(let n=1;n<p.value.count;n++){const e=TM(CB($H(),{month:L.value(n-1),year:I.value(n-1)}),{months:1});u.value[n]={month:nN(e),year:rN(e)}}}),"i"),j=H(((e,t)=>{B(e),x("hours",JR(e)),x("minutes",tN(e)),x("seconds",iN(e)),p.value.count&&t&&K()}),"W"),U=H((e=>{if(p.value.count){if(p.value.solo)return 0;const t=nN(e[0]),n=nN(e[1]);return Math.abs(n-t)<p.value.count?0:1}return 1}),"se"),V=H(((e,t)=>{e[1]&&f.value.showLastInRange?B(e[U(e)],t):B(e[0],t);const n=H(((t,n)=>[t(e[0]),e[1]?t(e[1]):c[n][1]]),"me");x("hours",n(JR,"hours")),x("minutes",n(tN,"minutes")),x("seconds",n(iN,"seconds"))}),"T"),q=H(((t,n)=>{if((f.value.enabled||e.weekPicker)&&!v.value.enabled)return V(t,n);if(v.value.enabled&&n){const e=t[t.length-1];return j(e,n)}}),"re"),z=H((e=>{const t=l.value;q(t,e),p.value.count&&p.value.solo&&K()}),"l"),W=H(((i,r)=>{const a=CB($H(),{month:L.value(r),year:I.value(r)}),s=i<0?xM(a,1):LB(a,1);b(nN(s),rN(s),i<0,e.preventMinMaxNavigation)&&(D(r,nN(s),rN(s)),t("update-month-year",{instance:r,month:nN(s),year:rN(s)}),p.value.count&&!p.value.solo&&G(r),n())}),"w"),G=H((e=>{for(let t=e-1;t>=0;t--){const e=LB(CB($H(),{month:L.value(t+1),year:I.value(t+1)}),1);D(t,nN(e),rN(e))}for(let t=e+1;t<=p.value.count-1;t++){const e=xM(CB($H(),{month:L.value(t-1),year:I.value(t-1)}),1);D(t,nN(e),rN(e))}}),"oe"),K=H((()=>{if(Array.isArray(l.value)&&2===l.value.length){const e=$H($H(l.value[1]?l.value[1]:xM(l.value[0],1))),[t,n]=[nN(l.value[0]),rN(l.value[0])],[i,r]=[nN(l.value[1]),rN(l.value[1])];(t!==i||t===i&&n!==r)&&p.value.solo&&D(1,nN(e),rN(e))}else l.value&&!Array.isArray(l.value)&&(D(0,nN(l.value),rN(l.value)),B($H()))}),"M"),Y=H((()=>{e.startDate&&(D(0,nN($H(e.startDate)),rN($H(e.startDate))),p.value.count&&G(0))}),"he"),Z=H(((t,n)=>{if(e.monthChangeOnScroll){const i=(new Date).getTime()-a.value.getTime(),r=Math.abs(t.deltaY);let s=500;r>1&&(s=100),r>100&&(s=0),i>s&&(a.value=new Date,W("inverse"!==e.monthChangeOnScroll?-t.deltaY:t.deltaY,n))}}),"ke"),X=H(((t,n,i=!1)=>{e.monthChangeOnArrows&&e.vertical===i&&Q(t,n)}),"le"),Q=H(((e,t)=>{W("right"===e?-1:1,t)}),"o"),J=H((e=>{if(y.value.markers)return CH(e.value,y.value.markers)}),"E"),ee=H(((t,n)=>{switch(!0===e.sixWeeks?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[0==t,!0];case"fair":return[0==t||n>t,!0];default:return[!1,!1]}}),"fe"),te=H(((t,n,i,r)=>{if(e.sixWeeks&&t.length<6){const e=6-t.length,a=(n.getDay()+7-r)%7,s=6-(i.getDay()+7-r)%7,[o,l]=ee(a,s);for(let i=1;i<=e;i++)if(l?!!(i%2)==o:o){const e=t[0].days[0],i=ne(kM(e.value,-7),nN(n));t.unshift({days:i})}else{const e=t[t.length-1],i=e.days[e.days.length-1],r=ne(kM(i.value,1),nN(n));t.push({days:r})}}return t}),"I"),ne=H(((t,n)=>{const i=$H(t),r=[];for(let a=0;a<7;a++){const t=kM(i,a),s=nN(t)!==n;r.push({text:e.hideOffsetDates&&s?"":t.getDate(),value:t,current:!s,classData:{}})}return r}),"$e"),ie=H(((t,n)=>{const i=[],r=new Date(n,t),a=new Date(n,t+1,0),s=e.weekStart,o=$M(r,{weekStartsOn:s}),l=H((e=>{const n=ne(e,t);if(i.push({days:n}),!i[i.length-1].days.some((e=>RH(PH(e.value),PH(a))))){const t=kM(e,7);l(t)}}),"vt");return l(o),te(i,r,a,s)}),"be"),re=H((e=>{const n=OH($H(e.value),c.hours,c.minutes,de());t("date-update",n),v.value.enabled?dU(n,l,v.value.limit):l.value=n,i(),vi().then((()=>{R()}))}),"Pe"),ae=H((e=>!!f.value.noDisabledRange&&zH(r.value[0],e).some((e=>_(e)))),"Ee"),se=H((()=>{r.value=l.value?l.value.slice():[],2===r.value.length&&!f.value.fixedStart&&!f.value.fixedEnd&&(r.value=[])}),"Be"),oe=H(((e,n)=>{const i=[$H(e.value),kM($H(e.value),+f.value.autoRange)];w(i)?(n&&le(e.value),r.value=i):t("invalid-date",e.value)}),"k"),le=H((e=>{const t=nN($H(e)),n=rN($H(e));if(D(0,t,n),p.value.count>0)for(let i=1;i<p.value.count;i++){const t=WH(CB($H(e),{year:I.value(i-1),month:L.value(i-1)}));D(i,t.month,t.year)}}),"x"),ue=H((e=>{if(ae(e.value)||!S(e.value,l.value,f.value.fixedStart?0:1))return t("invalid-date",e.value);r.value=mU($H(e.value),l,t,f)}),"Ie"),ce=H(((n,i)=>(se(),f.value.autoRange?oe(n,i):f.value.fixedStart||f.value.fixedEnd?ue(n):void(r.value[0]?S($H(n.value),l.value)&&!ae(n.value)?MH($H(n.value),$H(r.value[0]))?(r.value.unshift($H(n.value)),t("range-end",r.value[0])):(r.value[1]=$H(n.value),t("range-end",r.value[1])):(e.autoApply&&t("auto-apply-invalid",n.value),t("invalid-date",n.value)):(r.value[0]=$H(n.value),t("range-start",r.value[0]))))),"Ue"),de=H(((t=!0)=>e.enableSeconds?Array.isArray(c.seconds)?t?c.seconds[0]:c.seconds[1]:c.seconds:0),"rt"),pe=H((e=>{r.value[e]=OH(r.value[e],c.hours[e],c.minutes[e],de(1!==e))}),"de"),he=H((()=>{var e,n;r.value[0]&&r.value[1]&&+(null==(e=r.value)?void 0:e[0])>+(null==(n=r.value)?void 0:n[1])&&(r.value.reverse(),t("range-start",r.value[0]),t("range-end",r.value[1]))}),"Rt"),fe=H((()=>{r.value.length&&(r.value[0]&&!r.value[1]?pe(0):(pe(0),pe(1),i()),he(),l.value=r.value.slice(),hU(r.value,t,e.autoApply,e.modelAuto))}),"ft"),me=H(((n,i=!1)=>_(n.value)||!n.current&&e.hideOffsetDates?t("invalid-date",n.value):(s.value=JSON.parse(JSON.stringify(n)),f.value.enabled?void(ZU(c.hours)&&ZU(c.minutes)&&!v.value.enabled&&(ce(n,i),fe())):re(n))),"ra"),ge=H(((r,a)=>{var s;D(r,a.month,a.year,!0),p.value.count&&!p.value.solo&&G(r),t("update-month-year",{instance:r,month:a.month,year:a.year}),n(p.value.solo?r:void 0);const o=null!=(s=e.flow)&&s.length?e.flow[e.flowStep]:void 0;!a.fromNav&&(o===KB.month||o===KB.year)&&i()}),"ba"),ye=H(((t,n)=>{fU({value:t,modelValue:l,range:f.value.enabled,timezone:n?void 0:g.value.timezone}),P(),e.multiCalendars&&vi().then((()=>N(!0)))}),"ka"),ve=H((()=>{const e=HB($H(),g.value);f.value.enabled||v.value.enabled?l.value&&Array.isArray(l.value)&&l.value[0]?v.value.enabled?l.value=[...l.value,e]:l.value=MH(e,l.value[0])?[e,l.value[0]]:[l.value[0],e]:l.value=[e]:l.value=e,P()}),"wa"),be=H((()=>
100{if(Array.isArray(l.value))if(v.value.enabled){const e=_e();l.value[l.value.length-1]=k(e)}else l.value=l.value.map(((e,t)=>e&&k(e,t)));else l.value=k(l.value);t("time-update")}),"Da"),_e=H((()=>Array.isArray(l.value)&&l.value.length?l.value[l.value.length-1]:null),"Ma");return{calendars:u,modelValue:l,month:L,year:I,time:c,disabledTimesConfig:A,today:d,validateTime:E,getCalendarDays:ie,getMarker:J,handleScroll:Z,handleSwipe:Q,handleArrow:X,selectDate:me,updateMonthYear:ge,presetDate:ye,selectCurrentDate:ve,updateTime:H(((e,t=!0,n=!1)=>{C(e,t,n,be)}),"updateTime"),assignMonthAndYear:B,setStartTime:O}}),"Gr$3"),QU={key:0},JU=vr({__name:"DatePicker",props:F({},Zj),emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const i=n,r=e,{calendars:a,month:s,year:o,modelValue:l,time:u,disabledTimesConfig:c,today:d,validateTime:p,getCalendarDays:h,getMarker:f,handleArrow:m,handleScroll:g,handleSwipe:y,selectDate:v,updateMonthYear:b,presetDate:_,selectCurrentDate:w,updateTime:S,assignMonthAndYear:C,setStartTime:k}=XU(r,i,j,U),x=ua(),{setHoverDate:T,getDayClassData:E,clearHoverDate:A}=CV(l,r),{defaultedMultiCalendars:L}=Wj(r),I=Tn([]),$=Tn([]),D=Tn(null),P=_V(x,"calendar"),O=_V(x,"monthYear"),M=_V(x,"timePicker"),R=H((e=>{r.shadow||i("mount",e)}),"Z");Bi(a,(()=>{r.shadow||setTimeout((()=>{i("recalculate-position")}),0)}),{deep:!0}),Bi(L,((e,t)=>{e.count-t.count>0&&C()}),{deep:!0});const N=Co((()=>e=>h(s.value(e),o.value(e)).map((e=>B(F({},e),{days:e.days.map((e=>(e.marker=f(e),e.classData=E(e),e)))})))));function j(e){var t;e||0===e?null==(t=$.value[e])||t.triggerTransition(s.value(e),o.value(e)):$.value.forEach(((e,t)=>e.triggerTransition(s.value(t),o.value(t))))}function U(){i("update-flow-step")}H(j,"ie"),H(U,"i");const V=H(((e,t=!1)=>{v(e,t),r.spaceConfirm&&i("select-date")}),"W"),q=H(((e,t,n=0)=>{var i;null==(i=I.value[n])||i.toggleMonthPicker(e,t)}),"se"),z=H(((e,t,n=0)=>{var i;null==(i=I.value[n])||i.toggleYearPicker(e,t)}),"T"),W=H(((e,t,n)=>{var i;null==(i=D.value)||i.toggleTimePicker(e,t,n)}),"re"),G=H(((e,t)=>{var n;if(!r.range){const i=l.value?l.value:d,r=t?new Date(t):i,a=e?$M(r,{weekStartsOn:1}):eR(r,{weekStartsOn:1});v({value:a,current:nN(r)===s.value(0),text:"",classData:{}}),null==(n=document.getElementById(hj(a)))||n.focus()}}),"l"),K=H((e=>{var t;null==(t=I.value[0])||t.handleMonthYearChange(e,!0)}),"w"),Y=H((e=>{b(0,{month:s.value(0),year:o.value(0)+(e?1:-1),fromNav:!0})}),"oe"),Z=H(((e,t)=>{e===KB.time&&i("time-picker-"+(t?"open":"close")),i("overlay-toggle",{open:t,overlay:e})}),"M"),X=H((e=>{i("overlay-toggle",{open:!1,overlay:e}),i("focus-menu")}),"he");return t({clearHoverDate:A,presetDate:_,selectCurrentDate:w,toggleMonthPicker:q,toggleYearPicker:z,toggleTimePicker:W,handleArrow:m,updateMonthYear:b,getSidebarProps:H((()=>({modelValue:l,month:s,year:o,time:u,updateTime:S,updateMonthYear:b,selectDate:v,presetDate:_})),"getSidebarProps"),changeMonth:K,changeYear:Y,selectWeekDate:G,setStartTime:k}),(e,t)=>(As(),Ps(Ss,null,[Hs(sU,{"multi-calendars":$n(L).count,collapse:e.collapse,"is-mobile":e.isMobile},{default:Ii((({instance:n,index:i})=>[e.disableMonthYearSelect?Ws("",!0):(As(),Os(UU,Zs({key:0,ref:H((e=>{e&&(I.value[i]=e)}),"ref"),months:$n(iH)(e.formatLocale,e.locale,e.monthNameFormat),years:$n(nH)(e.yearRange,e.locale,e.reverseYears),month:$n(s)(n),year:$n(o)(n),instance:n},e.$props,{onMount:t[0]||(t[0]=e=>R($n(GB).header)),onResetFlow:t[1]||(t[1]=t=>e.$emit("reset-flow")),onUpdateMonthYear:H((e=>$n(b)(n,e)),"onUpdateMonthYear"),onOverlayClosed:X,onOverlayOpened:t[2]||(t[2]=t=>e.$emit("overlay-toggle",{open:!0,overlay:t}))}),ta({_:2},[ea($n(O),((t,n)=>({name:t,fn:Ii((n=>[na(e.$slots,t,Be(Us(n)))]))})))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),Hs(YU,Zs({ref:H((e=>{e&&($.value[i]=e)}),"ref"),"mapped-dates":N.value(n),month:$n(s)(n),year:$n(o)(n),instance:n},e.$props,{onSelectDate:H((e=>
100$n(v)(e,1!==n)),"onSelectDate"),onHandleSpace:H((e=>V(e,1!==n)),"onHandleSpace"),onSetHoverDate:t[3]||(t[3]=e=>$n(T)(e)),onHandleScroll:H((e=>$n(g)(e,n)),"onHandleScroll"),onHandleSwipe:H((e=>$n(y)(e,n)),"onHandleSwipe"),onMount:t[4]||(t[4]=e=>R($n(GB).calendar)),onResetFlow:t[5]||(t[5]=t=>e.$emit("reset-flow")),onTooltipOpen:t[6]||(t[6]=t=>e.$emit("tooltip-open",t)),onTooltipClose:t[7]||(t[7]=t=>e.$emit("tooltip-close",t))}),ta({_:2},[ea($n(P),((t,n)=>({name:t,fn:Ii((n=>[na(e.$slots,t,Be(Us(F({},n))))]))})))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])])),_:3},8,["multi-calendars","collapse","is-mobile"]),e.enableTimePicker?(As(),Ps("div",QU,[e.$slots["time-picker"]?na(e.$slots,"time-picker",Be(Zs({key:0},{time:$n(u),updateTime:$n(S)}))):(As(),Os(PU,Zs({key:1,ref_key:"timePickerRef",ref:D},e.$props,{hours:$n(u).hours,minutes:$n(u).minutes,seconds:$n(u).seconds,"internal-model-value":e.internalModelValue,"disabled-times-config":$n(c),"validate-time":$n(p),onMount:t[8]||(t[8]=e=>R($n(GB).timePicker)),"onUpdate:hours":t[9]||(t[9]=e=>$n(S)(e)),"onUpdate:minutes":t[10]||(t[10]=e=>$n(S)(e,!1)),"onUpdate:seconds":t[11]||(t[11]=e=>$n(S)(e,!1,!0)),onResetFlow:t[12]||(t[12]=t=>e.$emit("reset-flow")),onOverlayClosed:t[13]||(t[13]=e=>Z(e,!1)),onOverlayOpened:t[14]||(t[14]=e=>Z(e,!0)),onAmPmChange:t[15]||(t[15]=t=>e.$emit("am-pm-change",t))}),ta({_:2},[ea($n(M),((t,n)=>({name:t,fn:Ii((n=>[na(e.$slots,t,Be(Us(n)))]))})))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):Ws("",!0)],64))}}),eV=H(((e,t)=>{const n=Tn(),{defaultedMultiCalendars:i,defaultedConfig:r,defaultedHighlight:a,defaultedRange:s,propDates:o,defaultedFilters:l,defaultedMultiDates:u}=Wj(e),{modelValue:c,year:d,month:p,calendars:h}=SV(e,t),{isDisabled:f}=kV(e),{selectYear:m,groupedYears:g,showYearPicker:y,isDisabled:v,toggleYearPicker:b,handleYearSelect:_,handleYear:w}=gU({modelValue:c,multiCalendars:i,range:s,highlight:a,calendars:h,propDates:o,month:p,year:d,filters:l,props:e,emit:t}),S=H(((t,n)=>[t,n].map((t=>KR(t,"MMMM",{locale:e.formatLocale}))).join("-")),"ae"),C=Co((()=>e=>!!c.value&&(Array.isArray(c.value)?c.value.some((t=>_B(e,t))):_B(c.value,e)))),k=H((e=>{if(s.value.enabled){if(Array.isArray(c.value)){const t=RH(e,c.value[0])||RH(e,c.value[1]);return FH(c.value,n.value,e)&&!t}return!1}return!1}),"D"),x=H(((e,t)=>e.quarter===qM(t)&&e.year===rN(t)),"Q"),T=H((e=>"function"==typeof a.value?a.value({quarter:qM(e),year:rN(e)}):!!a.value.quarters.find((t=>x(t,e)))),"B"),E=Co((()=>e=>{const t=CB(new Date,{year:d.value(e)});return ZM({start:JM(t),end:QM(t)}).map((e=>{const t=YM(e),n=tR(e),i=f(e),r=k(t),a=T(t);return{text:S(t,n),value:t,active:C.value(t),highlighted:a,disabled:i,isBetween:r}}))})),A=H((e=>{dU(e,c,u.value.limit),t("auto-apply",!0)}),"ve"),L=H((n=>{c.value=pU(c,n,t),hU(c.value,t,e.autoApply,e.modelAuto)}),"pe"),I=H((e=>{c.value=e,t("auto-apply")}),"v");return{defaultedConfig:r,defaultedMultiCalendars:i,groupedYears:g,year:d,isDisabled:v,quarters:E,showYearPicker:y,modelValue:c,setHoverDate:H((e=>{n.value=e}),"setHoverDate"),selectYear:m,selectQuarter:H(((e,t,n)=>{if(!n)return h.value[t].month=nN(tR(e)),u.value.enabled?A(e):s.value.enabled?L(e):I(e)}),"selectQuarter"),toggleYearPicker:b,handleYearSelect:_,handleYear:w}}),"Xr$3"),tV={class:"dp--quarter-items"},nV=["data-test-id","disabled","onClick","onMouseover"],iV=vr({compatConfig:{MODE:3},__name:"QuarterPicker",props:F({},Zj),emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(e,{expose:t,emit:n}){const i=n,r=e,a=ua(),s=_V(a,"yearMode"),{defaultedMultiCalendars:o,defaultedConfig:l,groupedYears:u,year:c,isDisabled:d,quarters:p,modelValue:h,showYearPicker:f,setHoverDate:m,selectQuarter:g,toggleYearPicker:y,handleYearSelect:v,handleYear:b}=eV(r,i);return t({getSidebarProps:H((()=>({modelValue:h,year:c,selectQuarter:g,handleYearSelect:v,handleYear:b})),"getSidebarProps")}),(e,t)=>(As(),Os(sU,{"multi-calendars":$n(o).count,collapse:e.collapse,stretch:"","is-mobile":e.isMobile},{default:Ii((({instance:t})=>[Bs("div",{class:"dp-quarter-picker-wrap",style:Pe({minHeight:`${$n(l).modeHeight}px`})}
100,[e.$slots["top-extra"]?na(e.$slots,"top-extra",{key:0,value:e.internalModelValue}):Ws("",!0),Bs("div",null,[Hs(cU,Zs(e.$props,{items:$n(u)(t),instance:t,"show-year-picker":$n(f)[t],year:$n(c)(t),"is-disabled":H((e=>$n(d)(t,e)),"is-disabled"),onHandleYear:H((e=>$n(b)(t,e)),"onHandleYear"),onYearSelect:H((e=>$n(v)(e,t)),"onYearSelect"),onToggleYearPicker:H((e=>$n(y)(t,null==e?void 0:e.flow,null==e?void 0:e.show)),"onToggleYearPicker")}),ta({_:2},[ea($n(s),((t,n)=>({name:t,fn:Ii((n=>[na(e.$slots,t,Be(Us(n)))]))})))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),Bs("div",tV,[(As(!0),Ps(Ss,null,ea($n(p)(t),((n,i)=>(As(),Ps("div",{key:i},[Bs("button",{type:"button",class:Fe(["dp--qr-btn",{"dp--qr-btn-active":n.active,"dp--qr-btn-between":n.isBetween,"dp--qr-btn-disabled":n.disabled,"dp--highlighted":n.highlighted}]),"data-test-id":n.value,disabled:n.disabled,onClick:H((e=>$n(g)(n.value,t,n.disabled)),"onClick"),onMouseover:H((e=>$n(m)(n.value)),"onMouseover")},[e.$slots.quarter?na(e.$slots,"quarter",{key:0,value:n.value,text:n.text}):(As(),Ps(Ss,{key:1},[qs(ze(n.text),1)],64))],42,nV)])))),128))])],4)])),_:3},8,["multi-calendars","collapse","is-mobile"]))}}),rV=H(((e,t)=>{const n=Tn(0);Br((()=>{i(),window.addEventListener("resize",i,{passive:!0})})),Vr((()=>{window.removeEventListener("resize",i)}));const i=H((()=>{n.value=window.document.documentElement.clientWidth}),"a");return{isMobile:Co((()=>n.value<=e.value.mobileBreakpoint&&!t||void 0))}}),"Gn$3"),aV=["id","tabindex","role","aria-label"],sV={key:0,class:"dp--menu-load-container"},oV={key:1,class:"dp--menu-header"},lV=["data-dp-mobile"],uV={key:0,class:"dp__sidebar_left"},cV=["data-dp-mobile"],dV=["data-test-id","data-dp-mobile","onClick","onKeydown"],pV={key:2,class:"dp__sidebar_right"},hV={key:3,class:"dp__action_extra"},fV=vr({compatConfig:{MODE:3},__name:"DatepickerMenu",props:B(F({},Yj),{shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:H((()=>({})),"default")},isTextInputDate:{type:Boolean,default:!1}}),emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle","menu-blur"],setup(e,{expose:t,emit:n}){const i=n,r=e,a=Tn(null),s=Co((()=>{const e=r,{openOnTop:t}=e,n=j(e,["openOnTop"]);return B(F({},n),{isMobile:g.value,flowStep:L.value,menuWrapRef:a.value})})),{setMenuFocused:o,setShiftKey:l,control:u}=gj(),c=ua(),{defaultedTextInput:d,defaultedInline:p,defaultedConfig:h,defaultedUI:f,handleEventPropagation:m}=Wj(r),{isMobile:g}=rV(h,r.shadow),y=Tn(null),v=Tn(0),b=Tn(null),_=Tn(!1),w=Tn(null),S=Tn(!1),C=H((e=>{S.value=!0,h.value.allowPreventDefault&&e.preventDefault(),gH(e,h.value,!0)}),"H");Br((()=>{if(!r.shadow){_.value=!0,k(),window.addEventListener("resize",k);const e=aH(a);e&&!d.value.enabled&&!p.value.enabled&&(o(!0),R()),e&&(e.addEventListener("pointerdown",C),e.addEventListener("mousedown",C))}document.addEventListener("mousedown",le)})),Vr((()=>{window.removeEventListener("resize",k),document.removeEventListener("mousedown",le);const e=aH(a);e&&(e.removeEventListener("pointerdown",C),e.removeEventListener("mousedown",C))}));const k=H((()=>{const e=aH(b);e&&(v.value=e.getBoundingClientRect().width)}),"D"),{arrowRight:x,arrowLeft:T,arrowDown:E,arrowUp:A}=xj(),{flowStep:L,updateFlowStep:I,childMount:$,resetFlow:D,handleFlow:P}=TV(r,i,w),O=Co((()=>r.monthPicker?vU:r.yearPicker?_U:r.timePicker?RU:r.quarterPicker?iV:JU)),M=Co((()=>{var e,t,n;if(h.value.arrowLeft)return h.value.arrowLeft;const i=null==(n=a.value)?void 0:n.getBoundingClientRect(),s=r.getInputRect();return(null==s?void 0:s.width)<(null==v?void 0:v.value)&&(null==s?void 0:s.left)<=(null!=(e=null==i?void 0:i.left)?e:0)?(null==s?void 0:s.width)/2+"px":(null==s?void 0:s.right)>=(null!=(t=null==i?void 0:i.right)?t:0)&&(null==s?void 0:s.width)<(null==v?void 0:v.value)?(null==v?void 0:v.value)-(null==s?void 0:s.width)/2+"px":"50%"})),R=H((()=>{const e=aH(a);e&&e.focus({preventScroll:!0})}),"Z"),N=Co((()=>{var e;return(null==(e=w.value)?void 0:e.getSidebarProps())||{}})),U=H((()=>{r.openOnTop&&i("recalculate-position")}),"ie"),V=_V(c,"action"),q=Co((()=>r.monthPicker||r.yearPicker?_V(c,"monthYear"):r.timePicker?_V(c,"timePicker"):_V(c,"shared"))),z=Co((()=>r.openOnTop?"dp__arrow_bottom":"dp__arrow_top")),W=Co((()=>({dp__menu_disabled:r.disabled,dp__menu_readonly:r.readonly,"dp-menu-loading":r.loading}
100))),G=Co((()=>{var e;return F({dp__menu:!0,dp__menu_index:!p.value.enabled,dp__relative:p.value.enabled},null!=(e=f.value.menu)?e:{})})),K=H((e=>{gH(e,h.value,!0)}),"l"),Y=H((e=>{r.escClose&&(i("close-picker"),m(e))}),"w"),Z=H((e=>{if(r.arrowNavigation){if(e===ZB.up)return A();if(e===ZB.down)return E();if(e===ZB.left)return T();if(e===ZB.right)return x()}else e===ZB.left||e===ZB.up?te("handleArrow",ZB.left,0,e===ZB.up):te("handleArrow",ZB.right,0,e===ZB.down)}),"oe"),X=H((e=>{l(e.shiftKey),!r.disableMonthYearSelect&&e.code===XB.tab&&e.target.classList.contains("dp__menu")&&u.value.shiftKeyInMenu&&(e.preventDefault(),gH(e,h.value,!0),i("close-picker"))}),"M"),Q=H((()=>{R(),i("time-picker-close")}),"he"),J=H((e=>{var t,n,i;null==(t=w.value)||t.toggleTimePicker(!1,!1),null==(n=w.value)||n.toggleMonthPicker(!1,!1,e),null==(i=w.value)||i.toggleYearPicker(!1,!1,e)}),"ke"),ee=H(((e,t=0)=>{var n,i,r;return"month"===e?null==(n=w.value)?void 0:n.toggleMonthPicker(!1,!0,t):"year"===e?null==(i=w.value)?void 0:i.toggleYearPicker(!1,!0,t):"time"===e?null==(r=w.value)?void 0:r.toggleTimePicker(!0,!1):J(t)}),"le"),te=H(((e,...t)=>{var n,i;null!=(n=w.value)&&n[e]&&(null==(i=w.value)||i[e](...t))}),"o"),ne=H((()=>{te("selectCurrentDate")}),"E"),ie=H(((e,t)=>{te("presetDate",Dn(e),t)}),"fe"),re=H((()=>{te("clearHoverDate")}),"I"),ae=H(((e,t)=>{te("updateMonthYear",e,t)}),"$e"),se=H(((e,t)=>{e.preventDefault(),Z(t)}),"be"),oe=H((e=>{var t,n,i;if(X(e),e.key===XB.home||e.key===XB.end)return te("selectWeekDate",e.key===XB.home,e.target.getAttribute("id"));switch((e.key===XB.pageUp||e.key===XB.pageDown)&&(e.shiftKey?(te("changeYear",e.key===XB.pageUp),null==(t=bH(a.value,"overlay-year"))||t.focus()):(te("changeMonth",e.key===XB.pageUp),null==(n=bH(a.value,e.key===XB.pageUp?"action-prev":"action-next"))||n.focus()),e.target.getAttribute("id")&&(null==(i=a.value)||i.focus({preventScroll:!0}))),e.key){case XB.esc:return Y(e);case XB.arrowLeft:return se(e,ZB.left);case XB.arrowRight:return se(e,ZB.right);case XB.arrowUp:return se(e,ZB.up);case XB.arrowDown:return se(e,ZB.down);default:return}}),"Pe"),le=H((e=>{var t;p.value.enabled&&!p.value.input&&(null==(t=a.value)||!t.contains(e.target))&&S.value&&(S.value=!1,i("menu-blur"))}),"Ee");return t({updateMonthYear:ae,switchView:ee,handleFlow:P,onValueCleared:H((()=>{var e,t;null==(t=null==(e=w.value)?void 0:e.setStartTime)||t.call(e)}),"onValueCleared")}),(t,n)=>{var i,r,o;return As(),Ps("div",{id:t.uid?`dp-menu-${t.uid}`:void 0,ref_key:"dpMenuRef",ref:a,tabindex:$n(p).enabled?void 0:"0",role:$n(p).enabled?void 0:"dialog","aria-label":null==(i=t.ariaLabels)?void 0:i.menu,class:Fe(G.value),style:Pe({"--dp-arrow-left":M.value}),onMouseleave:re,onClick:K,onKeydown:oe},[(t.disabled||t.readonly)&&$n(p).enabled||t.loading?(As(),Ps("div",{key:0,class:Fe(W.value)},[t.loading?(As(),Ps("div",sV,n[19]||(n[19]=[Bs("span",{class:"dp--menu-loader"},null,-1)]))):Ws("",!0)],2)):Ws("",!0),t.$slots["menu-header"]?(As(),Ps("div",oV,[na(t.$slots,"menu-header")])):Ws("",!0),$n(p).enabled||t.teleportCenter?Ws("",!0):(As(),Ps("div",{key:2,class:Fe(z.value)},null,2)),Bs("div",{ref_key:"innerMenuRef",ref:b,class:Fe({dp__menu_content_wrapper:(null==(r=t.presetDates)?void 0:r.length)||!!t.$slots["left-sidebar"]||!!t.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&((null==(o=t.presetDates)?void 0:o.length)||!!t.$slots["left-sidebar"]||!!t.$slots["right-sidebar"])}),"data-dp-mobile":$n(g),style:Pe({"--dp-menu-width":`${v.value}px`})},[t.$slots["left-sidebar"]?(As(),Ps("div",uV,[na(t.$slots,"left-sidebar",Be(Us(N.value)))])):Ws("",!0),t.presetDates.length?(As(),Ps("div",{key:1,class:Fe({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0}),"data-dp-mobile":$n(g)},[(As(!0),Ps(Ss,null,ea(t.presetDates,((n,i)=>{var r;return As(),Ps(Ss,{key:i},[n.slot?na(t.$slots,n.slot,{key:0,presetDate:ie,label:n.label,value:n.value}):(As(),Ps("button",{key:1,type:"button",style:Pe(n.style||{}),class:Fe(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test-id":null!=(r=n.testId)?r:void 0,"data-dp-mobile":$n(g),onClick:Kl((e=>
100ie(n.value,n.noTz)),["prevent"]),onKeydown:H((e=>$n(xH)(e,(()=>ie(n.value,n.noTz)),!0)),"onKeydown")},ze(n.label),47,dV))],64)})),128))],10,cV)):Ws("",!0),Bs("div",{ref_key:"calendarWrapperRef",ref:y,class:"dp__instance_calendar",role:"document"},[(As(),Os(Xr(O.value),Zs({ref_key:"dynCmpRef",ref:w},s.value,{"flow-step":$n(L),onMount:$n($),onUpdateFlowStep:$n(I),onResetFlow:$n(D),onFocusMenu:R,onSelectDate:n[0]||(n[0]=e=>t.$emit("select-date")),onDateUpdate:n[1]||(n[1]=e=>t.$emit("date-update",e)),onTooltipOpen:n[2]||(n[2]=e=>t.$emit("tooltip-open",e)),onTooltipClose:n[3]||(n[3]=e=>t.$emit("tooltip-close",e)),onAutoApply:n[4]||(n[4]=e=>t.$emit("auto-apply",e)),onRangeStart:n[5]||(n[5]=e=>t.$emit("range-start",e)),onRangeEnd:n[6]||(n[6]=e=>t.$emit("range-end",e)),onInvalidFixedRange:n[7]||(n[7]=e=>t.$emit("invalid-fixed-range",e)),onTimeUpdate:n[8]||(n[8]=e=>t.$emit("time-update")),onAmPmChange:n[9]||(n[9]=e=>t.$emit("am-pm-change",e)),onTimePickerOpen:n[10]||(n[10]=e=>t.$emit("time-picker-open",e)),onTimePickerClose:Q,onRecalculatePosition:U,onUpdateMonthYear:n[11]||(n[11]=e=>t.$emit("update-month-year",e)),onAutoApplyInvalid:n[12]||(n[12]=e=>t.$emit("auto-apply-invalid",e)),onInvalidDate:n[13]||(n[13]=e=>t.$emit("invalid-date",e)),onOverlayToggle:n[14]||(n[14]=e=>t.$emit("overlay-toggle",e)),"onUpdate:internalModelValue":n[15]||(n[15]=e=>t.$emit("update:internal-model-value",e))}),ta({_:2},[ea(q.value,((e,n)=>({name:e,fn:Ii((n=>[na(t.$slots,e,Be(Us(F({},n))))]))})))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),t.$slots["right-sidebar"]?(As(),Ps("div",pV,[na(t.$slots,"right-sidebar",Be(Us(N.value)))])):Ws("",!0),t.$slots["action-extra"]?(As(),Ps("div",hV,[t.$slots["action-extra"]?na(t.$slots,"action-extra",{key:0,selectCurrentDate:ne}):Ws("",!0)])):Ws("",!0)],14,lV),!t.autoApply||$n(h).keepActionRow?(As(),Os(Jj,Zs({key:3,"menu-mount":_.value},s.value,{"calendar-width":v.value,onClosePicker:n[16]||(n[16]=e=>t.$emit("close-picker")),onSelectDate:n[17]||(n[17]=e=>t.$emit("select-date")),onInvalidSelect:n[18]||(n[18]=e=>t.$emit("invalid-select")),onSelectNow:ne}),ta({_:2},[ea($n(V),((e,n)=>({name:e,fn:Ii((n=>[na(t.$slots,e,Be(Us(F({},n))))]))})))]),1040,["menu-mount","calendar-width"])):Ws("",!0)],46,aV)}}});var mV=(e=>(e.center="center",e.left="left",e.right="right",e))(mV||{});const gV=H((({menuRef:e,menuRefInner:t,inputRef:n,pickerWrapperRef:i,inline:r,emit:a,props:s,slots:o})=>{const{defaultedConfig:l}=Wj(s),u=Tn({}),c=Tn(!1),d=Tn({top:"0",left:"0"}),p=Tn(!1),h=Vn(s,"teleportCenter");Bi(h,(()=>{d.value=JSON.parse(JSON.stringify({})),w()}));const f=H((e=>{if(s.teleport){const t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY}}return{top:0,left:0}}),"F"),m=H(((e,t)=>{d.value.left=e+t-u.value.width+"px"}),"L"),g=H((e=>{d.value.left=`${e}px`}),"_"),y=H(((e,t)=>{s.position===mV.left&&g(e),s.position===mV.right&&m(e,t),s.position===mV.center&&(d.value.left=e+t/2-u.value.width/2+"px")}),"h"),v=H((e=>{const{width:t,height:n}=e.getBoundingClientRect(),{top:i,left:r}=f(e);return{top:+i,left:+r,width:t,height:n}}),"R"),b=H((()=>{d.value.left="50%",d.value.top="50%",d.value.transform="translate(-50%, -50%)",d.value.position="fixed",delete d.value.opacity}),"b"),_=H((()=>{const e=aH(n);d.value=s.altPosition(e)}),"j"),w=H(((n=!0)=>{var i;if(!r.value.enabled){if(h.value)return b();if(null!==s.altPosition)return _();if(n){const n=s.teleport?null==(i=t.value)?void 0:i.$el:e.value;n&&(u.value=n.getBoundingClientRect()),a("recalculate-position")}return A()}}),"z"),S=H((({inputEl:e,left:t,width:n})=>{window.screen.width>768&&!c.value&&y(t,n),x(e)}),"ae"),C=H((e=>{const{top:t,left:n,height:i,width:r}=v(e);d.value.top=`${i+t+ +s.offset}px`,p.value=!1,c.value||(d.value.left=n+r/2-u.value.width/2+"px"),S({inputEl:e,left:n,width:r})}),"H"),k=H((e=>{const{top:t,left:n,width:i}=v(e);d.value.top=t-+s.offset-u.value.height+"px",p.value=!0,S({inputEl:e,left:n,width:i})}),"D"),x=H((e=>{if(s.autoPosition){const{left:t,width:n}=v(e),{left:i,right:r}=u.value;if(!c.value){if(Math.abs(i)!==Math.abs(r)){if(i<=0)return c.value=!0,g(t);if(r>=document.documentElement.clientWidth)return c.value=!0,m(t,n)}return y(t,n)}}}),"Q"),T=H((()=>{const e=aH(n);if(e){if(s.autoPosition===WB.top)return WB.top;if(s.autoPosition===WB.bottom)return WB.bottom;const{height:t}=u.value,{top:n,height:i}=e.getBoundingClientRect(),r=window.innerHeight-n-i,a=n;return t<=r?WB.bottom:t>r&&t<=a?WB.top:r>=a?WB.bottom:WB.top}return WB.bottom}),"B"),E=H((e=>T()===WB.bottom?C(e):k(e)),"q"),A=H((()=>{const e=aH(n);if(e)return s.autoPosition?E(e):C(e)}),"ve"),L=H((function(e){if(e){const t=e.scrollHeight>e.clientHeight,n=-1!==window.getComputedStyle(e).overflowY.indexOf("hidden");return t&&!n}return!0}),"pe"),I=H((function(e){return e&&e!==document.body&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?L(e)?e:I(e.assignedSlot&&l.value.shadowDom?e.assignedSlot.parentNode:e.parentNode):window}),"v"),$=H((e=>{if(e)switch(s.position){case mV.left:return{left:0,transform:"translateX(0)"};case mV.right:return{left:`${e.width}px`,transform:"translateX(-100%)"};default:return{left:e.width/2+"px",transform:"translateX(-50%)"}}return{}}),"N");return{openOnTop:p,menuStyle:d,xCorrect:c,setMenuPosition:w,getScrollableParent:I,shadowRender:H(((e,t,r)=>{var a,s,c;const d=document.createElement("div"),p=null==(a=aH(n))?void 0:a.getBoundingClientRect();
100d.setAttribute("id","dp--temp-container");const h=null!=(s=i.value)&&s.clientWidth?i.value:document.body;h.append(d);const f=$(p),m=l.value.shadowDom?Object.keys(o).filter((e=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(e))):Object.keys(o),g=ko(t,B(F({},r),{shadow:!0,style:F({opacity:0,position:"absolute"},f)}),Object.fromEntries(m.map((e=>[e,o[e]]))));null!=e&&(g.appContext=e.appContext),eu(g,d),u.value=null==(c=g.el)?void 0:c.getBoundingClientRect(),eu(null,d),h.removeChild(d)}),"shadowRender")}}),"io$2"),yV=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]},{name:"menu-header",use:["menu"]}],vV=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],bV={all:H((()=>yV),"all"),monthYear:H((()=>yV.filter((e=>e.use.includes("month-year")))),"monthYear"),input:H((()=>vV),"input"),timePicker:H((()=>yV.filter((e=>e.use.includes("time")))),"timePicker"),action:H((()=>yV.filter((e=>e.use.includes("action")))),"action"),calendar:H((()=>yV.filter((e=>e.use.includes("calendar")))),"calendar"),menu:H((()=>yV.filter((e=>e.use.includes("menu")))),"menu"),shared:H((()=>yV.filter((e=>e.use.includes("shared")))),"shared"),yearMode:H((()=>yV.filter((e=>e.use.includes("year-mode")))),"yearMode")},_V=H(((e,t,n)=>{const i=[];return bV[t]().forEach((t=>{e[t.name]&&i.push(t.name)})),null!=n&&n.length&&n.forEach((e=>{e.slot&&i.push(e.slot)})),i}),"at$2"),wV=H((e=>{const t=Co((()=>t=>e.value?t?e.value.open:e.value.close:"")),n=Co((()=>t=>e.value?t?e.value.menuAppearTop:e.value.menuAppearBottom:""));return{transitionName:t,showTransition:!!e.value,menuTransition:n}}),"na$1"),SV=H(((e,t,n)=>{const{defaultedRange:i,defaultedTz:r}=Wj(e),a=$H(BB($H(),r.value.timezone)),s=Tn([{month:nN(a),year:rN(a)}]),o=H((e=>{const t={hours:JR(a),minutes:tN(a),seconds:0};return i.value.enabled?[t[e],t[e]]:t[e]}),"p"),l=pn({hours:o("hours"),minutes:o("minutes"),seconds:o("seconds")});Bi(i,((e,t)=>{e.enabled!==t.enabled&&(l.hours=o("hours"),l.minutes=o("minutes"),l.seconds=o("seconds"))}),{deep:!0});const u=Co({get:H((()=>e.internalModelValue),"get"),set:H((n=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",n)}),"set")}),c=Co((()=>e=>s.value[e]?s.value[e].month:0)),d=Co((()=>e=>s.value[e]?s.value[e].year:0));return Bi(u,((e,t)=>
100{n&&JSON.stringify(null!=e?e:{})!==JSON.stringify(null!=t?t:{})&&n()}),{deep:!0}),{calendars:s,time:l,modelValue:u,month:c,year:d,today:a}}),"la$1"),CV=H(((e,t)=>{const{defaultedMultiCalendars:n,defaultedMultiDates:i,defaultedUI:r,defaultedHighlight:a,defaultedTz:s,propDates:o,defaultedRange:l}=Wj(t),{isDisabled:u}=kV(t),c=Tn(null),d=Tn(BB(new Date,s.value.timezone)),p=H((e=>{!e.current&&t.hideOffsetDates||(c.value=e.value)}),"m"),h=H((()=>{c.value=null}),"P"),f=H((t=>!(Array.isArray(e.value)&&l.value.enabled&&e.value[0]&&c.value)||(t?NH(c.value,e.value[0]):MH(c.value,e.value[0]))),"F"),m=H(((t,n)=>{const i=H((()=>e.value?n?e.value[0]||null:e.value[1]:null),"oe"),r=e.value&&Array.isArray(e.value)?i():null;return RH($H(t.value),r)}),"L"),g=H((t=>{var n;const i=Array.isArray(e.value)?e.value[0]:null;return!t||!MH(null!=(n=c.value)?n:null,i)}),"_"),y=H(((n,i=!0)=>(l.value.enabled||t.weekPicker)&&Array.isArray(e.value)&&2===e.value.length?!(t.hideOffsetDates&&!n.current)&&RH($H(n.value),e.value[i?0:1]):!!l.value.enabled&&(m(n,i)&&g(i)||RH(n.value,Array.isArray(e.value)?e.value[0]:null)&&f(i))),"h"),v=H(((t,n)=>{if(Array.isArray(e.value)&&e.value[0]&&1===e.value.length){const i=RH(t.value,c.value);return n?NH(e.value[0],t.value)&&i:MH(e.value[0],t.value)&&i}return!1}),"R"),b=H((n=>!(!e.value||t.hideOffsetDates&&!n.current)&&(l.value.enabled?!(!t.modelAuto||!Array.isArray(e.value))&&RH(n.value,e.value[0]?e.value[0]:d.value):i.value.enabled&&Array.isArray(e.value)?e.value.some((e=>RH(e,n.value))):RH(n.value,e.value?e.value:d.value))),"b"),_=H((e=>{if(l.value.autoRange||t.weekPicker){if(c.value){if(t.hideOffsetDates&&!e.current)return!1;const n=kM(c.value,+l.value.autoRange),i=GH($H(c.value),t.weekStart);return t.weekPicker?RH(i[1],$H(e.value)):RH(n,$H(e.value))}return!1}return!1}),"j"),w=H((e=>{if(l.value.autoRange||t.weekPicker){if(c.value){const n=kM(c.value,+l.value.autoRange);if(t.hideOffsetDates&&!e.current)return!1;const i=GH($H(c.value),t.weekStart);return t.weekPicker?NH(e.value,i[0])&&MH(e.value,i[1]):NH(e.value,c.value)&&MH(e.value,n)}return!1}return!1}),"z"),S=H((e=>{if(l.value.autoRange||t.weekPicker){if(c.value){if(t.hideOffsetDates&&!e.current)return!1;const n=GH($H(c.value),t.weekStart);return t.weekPicker?RH(n[0],e.value):RH(c.value,e.value)}return!1}return!1}),"ae"),C=H((t=>FH(e.value,c.value,t.value)),"H"),k=H((()=>!(!t.modelAuto||!Array.isArray(t.internalModelValue))&&!!t.internalModelValue[0]),"D"),x=H((()=>!t.modelAuto||oH(t.internalModelValue)),"Q"),T=H((e=>{if(t.weekPicker)return!1;const n=!l.value.enabled||!y(e)&&!y(e,!1);return!u(e.value)&&!b(e)&&!(!e.current&&t.hideOffsetDates)&&n}),"B"),E=H((e=>l.value.enabled?!!t.modelAuto&&(k()&&b(e)):b(e)),"q"),A=H((e=>!!a.value&&kH(e.value,o.value.highlight)),"ve"),L=H((e=>{const t=u(e.value);return t&&("function"==typeof a.value?!a.value(e.value,t):!a.value.options.highlightDisabled)}),"pe"),I=H((e=>{var t;return"function"==typeof a.value?a.value(e.value):null==(t=a.value.weekdays)?void 0:t.includes(e.value.getDay())}),"v"),$=H((e=>!(!l.value.enabled&&!t.weekPicker||n.value.count>0&&!e.current||!x()||!e.current&&t.hideOffsetDates||b(e))&&C(e)),"N"),D=H((t=>{if(Array.isArray(e.value)&&1===e.value.length){const{before:n,after:i}=fj(+l.value.maxRange,e.value[0]);return sN(t.value,n)||aN(t.value,i)}return!1}),"ee"),P=H((t=>{if(Array.isArray(e.value)&&1===e.value.length){const{before:n,after:i}=fj(+l.value.minRange,e.value[0]);return FH([n,i],e.value[0],t.value)}return!1}),"y"),O=H((e=>!(!l.value.enabled||!l.value.maxRange&&!l.value.minRange)&&(l.value.maxRange&&l.value.minRange?D(e)||P(e):l.value.maxRange?D(e):P(e))),"U"),M=H((e=>{const{isRangeStart:n,isRangeEnd:i}=U(e),r=!!l.value.enabled&&(n||i);return{dp__cell_offset:!e.current,dp__pointer:!(t.disabled||!e.current&&t.hideOffsetDates||u(e.value)||O(e)),dp__cell_disabled:u(e.value)||O(e),dp__cell_highlight:!L(e)&&(A(e)||I(e))&&!E(e)&&!r&&!S(e)&&!($(e)&&t.weekPicker)&&!i,dp__cell_highlight_active:!L(e)&&(A(e)||I(e))&&E(e),dp__today:!t.noToday&&RH(e.value,d.value)&&e.current,"dp--past":MH(e.value,d.value),"dp--future":NH(e.value,d.value)}}),"S"),R=H((e=>({dp__active_date:E(e),dp__date_hover:T(e)})),"Z"),N=H((n=>{if(e.value&&!Array.isArray(e.value)){const i=GH(e.value,t.weekStart);return B(F({},q(n)),{dp__range_start:RH(i[0],n.value),dp__range_end:RH(i[1],n.value),dp__range_between_week:NH(n.value,i[0])&&MH(n.value,i[1])})}return F({},q(n))}),"A"),j=H((n=>{if(e.value&&Array.isArray(e.value)){const i=GH(e.value[0],t.weekStart),r=e.value[1]?GH(e.value[1],t.weekStart):[];return B(F({},q(n)),{dp__range_start:RH(i[0],n.value)||RH(r[0],n.value),dp__range_end:RH(i[1],n.value)||RH(r[1],n.value),dp__range_between_week:NH(n.value,i[0])&&MH(n.value,i[1])||NH(n.value,r[0])&&MH(n.value,r[1]),dp__range_between:NH(n.value,i[1])&&MH(n.value,r[0])})}return F({},q(n))}),"ie"),U=H((e=>({isRangeStart:n.value.count>0?e.current&&y(e)&&x():y(e)&&x(),isRangeEnd:n.value.count>0?e.current&&y(e,!1)&&x():y(e,!1)&&x()})),"i"),V=H((e=>{const{isRangeStart:n,isRangeEnd:i}=U(e);return{dp__range_start:n,dp__range_end:i,dp__range_between:$(e),dp__date_hover:RH(e.value,c.value)&&!n&&!i&&!t.weekPicker,dp__date_hover_start:v(e,!0),dp__date_hover_end:v(e,!1)}}),"W"),q=H((e=>B(F({},V(e)),{dp__cell_auto_range:w(e),dp__cell_auto_range_start:S(e),dp__cell_auto_range_end:_(e)})),"se"),z=H((e=>l.value.enabled?l.value.autoRange?q(e):t.modelAuto?F(F({},R(e)),V(e)):t.weekPicker?j(e):V(e):t.weekPicker?N(e):R(e)),"T");return{setHoverDate:p,clearHoverDate:h,getDayClassData:H((e=>{var n;return t.hideOffsetDates&&!e.current?{}:F(B(F(F({},M(e)),z(e)),{[t.dayClass?t.dayClass(e.value,t.internalModelValue):""]:!0}),null!=(n=r.value.calendarCell)?n:{})}),"getDayClassData")}}),"vo$3"),kV=H((e=>{const{defaultedFilters:t,defaultedRange:n,propDates:i,defaultedMultiDates:r}=Wj(e),a=H((e=>!!i.value.disabledDates&&("function"==typeof i.value.disabledDates?i.value.disabledDates($H(e)):!!CH(e,i.value.disabledDates))),"u"),s=H((t=>!!i.value.maxDate&&(e.yearPicker?rN(t)>rN(i.value.maxDate):NH(t,i.value.maxDate))),"c"),o=H((t=>!!i.value.minDate&&(e.yearPicker?rN(t)<rN(i.value.minDate):MH(t,i.value.minDate))),"p"),l=H((n=>{const i=s(n),r=o(n),l=a(n),u=t.value.months.map((e=>+e)).includes(nN(n)),c=!!e.disabledWeekDays.length&&e.disabledWeekDays.some((e=>+e===ZR(n))),d=h(n),p=rN(n),f=p<+e.yearRange[0]||p>+e.yearRange[1];return!(i||r||l||u||f||c||d)}),"d"),u=H(((e,t)=>MH(...YH(i.value.minDate,e,t))||RH(...YH(i.value.minDate,e,t))),"Y"),c=H(((e,t)=>NH(...YH(i.value.maxDate,e,t))||RH(...YH(i.value.maxDate,e,t))),"f"),d=H(((e,t,n)=>{let r=!1;return i.value.maxDate&&n&&c(e,t)&&(r=!0),i.value.minDate&&!n&&u(e,t)&&(r=!0),r}),"O"),p=H(((e,t,n,r)=>{let a=!1;return r&&(i.value.minDate||i.value.maxDate)?i.value.minDate&&i.value.maxDate?a=d(e,t,n
100):(i.value.minDate&&u(e,t)||i.value.maxDate&&c(e,t))&&(a=!0):a=!0,a}),"m"),h=H((t=>!(!Array.isArray(i.value.allowedDates)||i.value.allowedDates.length)||!!i.value.allowedDates&&!CH(t,i.value.allowedDates,EH(e.monthPicker,e.yearPicker))),"P"),f=H((e=>!l(e)),"F"),m=H((e=>!n.value.noDisabledRange||!KM({start:e[0],end:e[1]}).some((e=>f(e)))),"L"),g=H((t=>{if(t){const n=rN(t);return n>=+e.yearRange[0]&&n<=e.yearRange[1]}return!0}),"_"),y=H(((e,t)=>!!(Array.isArray(e)&&e[t]&&(n.value.maxRange||n.value.minRange)&&g(e[t]))),"h"),v=H(((e,t,i=0)=>{if(y(t,i)&&g(e)){const r=NM(e,t[i]),a=zH(t[i],e),s=1===a.length?0:a.filter((e=>f(e))).length,o=Math.abs(r)-(n.value.minMaxRawRange?0:s);if(n.value.minRange&&n.value.maxRange)return o>=+n.value.minRange&&o<=+n.value.maxRange;if(n.value.minRange)return o>=+n.value.minRange;if(n.value.maxRange)return o<=+n.value.maxRange}return!0}),"R"),b=H((()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation),"b"),_=H((e=>Array.isArray(e)?[e[0]?lj(e[0]):null,e[1]?lj(e[1]):null]:lj(e)),"j"),w=H(((e,t,n)=>e.find((e=>+e.hours===JR(t)&&"*"===e.minutes||+e.minutes===tN(t)&&+e.hours===JR(t)))&&n),"z"),S=H(((e,t,n)=>{const[i,r]=e,[a,s]=t;return!w(i,a,n)&&!w(r,s,n)&&n}),"ae"),C=H(((t,n)=>{const i=Array.isArray(n)?n:[n];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?S(e.disabledTimes,i,t):!i.some((n=>w(e.disabledTimes,n,t))):t}),"H"),k=H(((t,n)=>{const i=Array.isArray(n)?[jH(n[0]),n[1]?jH(n[1]):void 0]:jH(n),r=!e.disabledTimes(i);return t&&r}),"D"),x=H(((t,n)=>e.disabledTimes?Array.isArray(e.disabledTimes)?C(n,t):k(n,t):n),"Q"),T=H((t=>{let n=!0;if(!t||b())return!0;const r=i.value.minDate||i.value.maxDate?t:_(t);return(e.maxTime||i.value.maxDate)&&(n=oj(e.maxTime,i.value.maxDate,"max",uH(r),n)),(e.minTime||i.value.minDate)&&(n=oj(e.minTime,i.value.minDate,"min",uH(r),n)),x(t,n)}),"B"),E=H((t=>{if(!e.monthPicker)return!0;let n=!0;const r=$H(BH(t));if(i.value.minDate&&i.value.maxDate){const e=$H(BH(i.value.minDate)),t=$H(BH(i.value.maxDate));return NH(r,e)&&MH(r,t)||RH(r,e)||RH(r,t)}if(i.value.minDate){const e=$H(BH(i.value.minDate));n=NH(r,e)||RH(r,e)}if(i.value.maxDate){const e=$H(BH(i.value.maxDate));n=MH(r,e)||RH(r,e)}return n}),"q"),A=Co((()=>t=>!(e.enableTimePicker&&!e.ignoreTimeValidation)||T(t))),L=Co((()=>t=>!e.monthPicker||(Array.isArray(t)&&(n.value.enabled||r.value.enabled)?!t.filter((e=>!E(e))).length:E(t))));return{isDisabled:f,validateDate:l,validateMonthYearInRange:p,isDateRangeAllowed:m,checkMinMaxRange:v,isValidTime:T,isTimeValid:A,isMonthValid:L}}),"Pt$2"),xV=H((()=>{const e=Co((()=>(e,t)=>null==e?void 0:e.includes(t))),t=Co((()=>(e,t)=>!e.count||(!!e.solo||0===t))),n=Co((()=>(e,t)=>!e.count||(!!e.solo||t===e.count-1)));return{hideNavigationButtons:e,showLeftIcon:t,showRightIcon:n}}),"ha$1"),TV=H(((e,t,n)=>{const i=Tn(0),r=pn({[GB.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[GB.calendar]:!1,[GB.header]:!1}),a=Co((()=>e.monthPicker||e.timePicker)),s=H((t=>{var n;if(null!=(n=e.flow)&&n.length){if(!t&&a.value)return c();r[t]=!0,Object.keys(r).filter((e=>!r[e])).length||c()}}),"c"),o=H((()=>{var n,r;null!=(n=e.flow)&&n.length&&-1!==i.value&&(i.value+=1,t("flow-step",i.value),
100c()),(null==(r=e.flow)?void 0:r.length)===i.value&&vi().then((()=>l()))}),"p"),l=H((()=>{i.value=-1}),"d"),u=H(((t,r,...a)=>{var s,o;e.flow[i.value]===t&&n.value&&(null==(o=(s=n.value)[r])||o.call(s,...a))}),"Y"),c=H(((t=0)=>{t&&(i.value+=t),u(KB.month,"toggleMonthPicker",!0),u(KB.year,"toggleYearPicker",!0),u(KB.calendar,"toggleTimePicker",!1,!0),u(KB.time,"toggleTimePicker",!0,!0);const n=e.flow[i.value];(n===KB.hours||n===KB.minutes||n===KB.seconds)&&u(n,"toggleTimePicker",!0,!0,n)}),"f");return{childMount:s,updateFlowStep:o,resetFlow:l,handleFlow:c,flowStep:i}}),"mo$3"),EV={key:1,class:"dp__input_wrap"},AV=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],LV={key:2,class:"dp--clear-btn"},IV=["aria-label"],$V=vr({compatConfig:{MODE:3},__name:"DatepickerInput",props:F({isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""}},Yj),emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur","text-input"],setup(e,{expose:t,emit:n}){const i=n,r=e,{defaultedTextInput:a,defaultedAriaLabels:s,defaultedInline:o,defaultedConfig:l,defaultedRange:u,defaultedMultiDates:c,defaultedUI:d,getDefaultPattern:p,getDefaultStartTime:h}=Wj(r),{checkMinMaxRange:f}=kV(r),m=Tn(),g=Tn(null),y=Tn(!1),v=Tn(!1),b=Co((()=>{var e;return F({dp__pointer:!r.disabled&&!r.readonly&&!a.value.enabled,dp__disabled:r.disabled,dp__input_readonly:!a.value.enabled,dp__input:!0,dp__input_icon_pad:!r.hideInputIcon,dp__input_valid:"boolean"==typeof r.state&&r.state,dp__input_invalid:"boolean"==typeof r.state&&!r.state,dp__input_focus:y.value||r.isMenuOpen,dp__input_reg:!a.value.enabled},null!=(e=d.value.input)?e:{})})),_=H((()=>{i("set-input-date",null),r.clearable&&r.autoApply&&(i("set-empty-date"),m.value=null)}),"j"),w=H((e=>{var t;const n=h();return IH(e,null!=(t=a.value.format)?t:p(),null!=n?n:KH({},r.enableSeconds),r.inputValue,v.value,r.formatLocale)}),"z"),S=H((e=>{const{rangeSeparator:t}=a.value,[n,i]=e.split(`${t}`);if(n){const e=w(n.trim()),t=i?w(i.trim()):void 0;if(aN(e,t))return;const r=e&&t?[e,t]:[e];f(t,r,0)&&(m.value=e?r:null)}}),"ae"),C=H((()=>{v.value=!0}),"H"),k=H((e=>{if(u.value.enabled)S(e);else if(c.value.enabled){const t=e.split(";");m.value=t.map((e=>w(e.trim()))).filter((e=>e))}else m.value=w(e)}),"D"),x=H((e=>{var t;const n="string"==typeof e?e:null==(t=e.target)?void 0:t.value;""!==n?(a.value.openMenu&&!r.isMenuOpen&&i("open"),k(n),i("set-input-date",m.value)):_(),v.value=!1,i("update:input-value",n),i("text-input",e,m.value)}),"Q"),T=H((e=>{a.value.enabled?(k(e.target.value),a.value.enterSubmit&&ij(m.value)&&""!==r.inputValue?(i("set-input-date",m.value,!0),m.value=null):a.value.enterSubmit&&""===r.inputValue&&(m.value=null,i("clear"))):L(e)}),"B"),E=H(((e,t)=>{a.value.enabled&&a.value.tabSubmit&&!t&&k(e.target.value),a.value.tabSubmit&&ij(m.value)&&""!==r.inputValue?(i("set-input-date",m.value,!0,!0),m.value=null):a.value.tabSubmit&&""===r.inputValue&&(m.value=null,i("clear",!0))}),"q"),A=H((()=>{y.value=!0,i("focus"),vi().then((()=>{var e;a.value.enabled&&a.value.selectOnFocus&&(null==(e=g.value)||e.select())}))}),"ve"),L=H((e=>{if(gH(e,l.value,!0),a.value.enabled&&a.value.openMenu&&!o.value.input){if("open"===a.value.openMenu&&!r.isMenuOpen)return i("open");if("toggle"===a.value.openMenu)return i("toggle")}else a.value.enabled||i("toggle")}),"pe"),I=H((()=>{i("real-blur"),y.value=!1,(!r.isMenuOpen||o.value.enabled&&o.value.input)&&i("blur"),r.autoApply&&a.value.enabled&&m.value&&!r.isMenuOpen&&(i("set-input-date",m.value),i("select-date"),m.value=null)}),"v"),$=H((e=>{gH(e,l.value,!0),i("clear")}),"N"),D=H((()=>{i("close")}),"ee"),P=H((e=>{if("Tab"===e.key&&E(e),"Enter"===e.key&&T(e),"Escape"===e.key&&a.value.escClose&&D(),!a.value.enabled){if("Tab"===e.code)return;e.preventDefault()}}),"y"),O=H((()=>{var e;null==(e=g.value)||e.focus({preventScroll:!0})}),"U"),M=H((e=>{m.value=e}),"S"),R=H((e=>{e.key===XB.tab&&E(e,!0)}),"Z");return t({focusInput:O,setParsedDate:M}),(t,n)=>{var r,l,u;return As(),Ps("div",{onClick:L},[!t.$slots.trigger||t.$slots["dp-input"]||$n(o).enabled?Ws("",!0):na(t.$slots,"trigger",{key:0}),t.$slots.trigger||$n(o).enabled&&!$n(o).input?Ws("",!0):(As(),Ps("div",EV,[t.$slots["dp-input"]&&!t.$slots.trigger&&(!$n(o).enabled||$n(o).enabled&&$n(o).input)?na(t.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:x,onEnter:T,onTab:E,onClear:$,onBlur:I,onKeypress:P,onPaste:C,onFocus:A,openMenu:H((()=>t.$emit("open")),"openMenu"),closeMenu:H((()=>t.$emit("close")),"closeMenu"),toggleMenu:H((()=>t.$emit("toggle")),"toggleMenu")}):Ws("",!0),t.$slots["dp-input"]?Ws("",!0):(As(),Ps("input",{key:1,id:t.uid?`dp-input-${t.uid}
100`:void 0,ref_key:"inputRef",ref:g,"data-test-id":"dp-input",name:t.name,class:Fe(b.value),inputmode:$n(a).enabled?"text":"none",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,required:t.required,value:e.inputValue,autocomplete:t.autocomplete,"aria-label":null==(r=$n(s))?void 0:r.input,"aria-disabled":t.disabled||void 0,"aria-invalid":!1===t.state||void 0,onInput:x,onBlur:I,onFocus:A,onKeypress:P,onKeydown:n[0]||(n[0]=e=>P(e)),onPaste:C},null,42,AV)),Bs("div",{onClick:n[3]||(n[3]=e=>i("toggle"))},[t.$slots["input-icon"]&&!t.hideInputIcon?(As(),Ps("span",{key:0,class:"dp__input_icon",onClick:n[1]||(n[1]=e=>i("toggle"))},[na(t.$slots,"input-icon")])):Ws("",!0),t.$slots["input-icon"]||t.hideInputIcon||t.$slots["dp-input"]?Ws("",!0):(As(),Os($n(DB),{key:1,"aria-label":null==(l=$n(s))?void 0:l.calendarIcon,class:"dp__input_icon dp__input_icons",onClick:n[2]||(n[2]=e=>i("toggle"))},null,8,["aria-label"]))]),t.$slots["clear-icon"]&&(t.alwaysClearable||e.inputValue&&t.clearable&&!t.disabled&&!t.readonly)?(As(),Ps("span",LV,[na(t.$slots,"clear-icon",{clear:$})])):Ws("",!0),!t.$slots["clear-icon"]&&(t.alwaysClearable||t.clearable&&e.inputValue&&!t.disabled&&!t.readonly)?(As(),Ps("button",{key:3,"aria-label":null==(u=$n(s))?void 0:u.clearInput,class:"dp--clear-btn",type:"button",onKeydown:n[4]||(n[4]=e=>$n(xH)(e,(()=>$(e)),!0,R)),onClick:n[5]||(n[5]=Kl((e=>$(e)),["prevent"]))},[Hs($n(PB),{class:"dp__input_icons","data-test-id":"clear-icon"})],40,IV)):Ws("",!0)]))])}}}),DV=typeof window<"u"?window:void 0,PV=H((()=>{}),"Ea$1"),OV=H((e=>!!Qe()&&(Je(e),!0)),"wo$3"),MV=H(((e,t,n,i)=>{if(!e)return PV;let r=PV;const a=Bi((()=>$n(e)),(e=>{r(),e&&(e.removeEventListener(t,n),e.addEventListener(t,n,i),r=H((()=>{e.removeEventListener(t,n,i),r=PV}),"n"))}),{immediate:!0,flush:"post"}),s=H((()=>{a(),r()}),"c");return OV(s),s}),"Do$3"),RV=H(((e,t,n,i={})=>{const{window:r=DV,event:a="pointerdown"}=i;return r?MV(r,a,(i=>{const r=aH(e),a=aH(t);!r||!a||r===i.target||i.composedPath().includes(r)||i.composedPath().includes(a)||n(i)}),{passive:!0}):void 0}),"Mo$2"),NV=["data-dp-mobile"],FV=vr({compatConfig:{MODE:3},__name:"VueDatePicker",props:F({},Yj),emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle","text-input"],setup(e,{expose:t,emit:n}){const i=n,r=e,a=ua(),s=Tn(!1),o=Vn(r,"modelValue"),l=Vn(r,"timezone"),u=Tn(null),c=Tn(null),d=Tn(null),p=Tn(!1),h=Tn(null),f=Tn(!1),m=Tn(!1),g=Tn(!1),y=Tn(!1),{setMenuFocused:v,setShiftKey:b}=gj(),{clearArrowNav:_}=xj(),{validateDate:w,isValidTime:S}=kV(r),{defaultedTransitions:C,defaultedTextInput:k,defaultedInline:x,defaultedConfig:T,defaultedRange:E,defaultedMultiDates:A}=Wj(r),{menuTransition:L,showTransition:I}=wV(C),{isMobile:$}=rV(T),D=io();Br((()=>{z(r.modelValue),vi().then((()=>
100{if(!x.value.enabled){const e=j(h.value);null==e||e.addEventListener("scroll",te),null==window||window.addEventListener("resize",ne)}})),x.value.enabled&&(s.value=!0),null==window||window.addEventListener("keyup",ie),null==window||window.addEventListener("keydown",re)})),Vr((()=>{if(!x.value.enabled){const e=j(h.value);null==e||e.removeEventListener("scroll",te),null==window||window.removeEventListener("resize",ne)}null==window||window.removeEventListener("keyup",ie),null==window||window.removeEventListener("keydown",re)}));const P=_V(a,"all",r.presetDates),O=_V(a,"input");Bi([o,l],(()=>{z(o.value)}),{deep:!0});const{openOnTop:M,menuStyle:R,xCorrect:N,setMenuPosition:B,getScrollableParent:j,shadowRender:U}=gV({menuRef:u,menuRefInner:c,inputRef:d,pickerWrapperRef:h,inline:x,emit:i,props:r,slots:a}),{inputValue:V,internalModelValue:q,parseExternalModelValue:z,emitModelValue:W,formatInputValue:G,checkBeforeEmit:K}=Gj(i,r,p),Y=Co((()=>({dp__main:!0,dp__theme_dark:r.dark,dp__theme_light:!r.dark,dp__flex_display:x.value.enabled,"dp--flex-display-collapsed":g.value,dp__flex_display_with_input:x.value.input}))),Z=Co((()=>r.dark?"dp__theme_dark":"dp__theme_light")),X=Co((()=>r.teleport?{to:"boolean"==typeof r.teleport?"body":r.teleport,disabled:!r.teleport||x.value.enabled}:{})),Q=Co((()=>({class:"dp__outer_menu_wrap"}))),J=Co((()=>x.value.enabled&&(r.timePicker||r.monthPicker||r.yearPicker||r.quarterPicker))),ee=H((()=>{var e,t,n;return null!=(e=null==(n=null==(t=d.value)?void 0:t.$el)?void 0:n.getBoundingClientRect())?e:{width:0,left:0,right:0}}),"E"),te=H((()=>{s.value&&(T.value.closeOnScroll?he():B())}),"fe"),ne=H((()=>{var e,t;s.value&&B();const n=null!=(e=null==(t=c.value)?void 0:t.$el.getBoundingClientRect().width)?e:0;g.value=document.body.offsetWidth<=n}),"I"),ie=H((e=>{"Tab"===e.key&&!x.value.enabled&&!r.teleport&&T.value.tabOutClosesMenu&&(h.value.contains(document.activeElement)||he()),m.value=e.shiftKey}),"$e"),re=H((e=>{m.value=e.shiftKey}),"be"),ae=H((()=>{!r.disabled&&!r.readonly&&(U(D,fV,r),B(!1),s.value=!0,s.value&&i("open"),s.value||pe(),z(r.modelValue))}),"Pe"),se=H((()=>{var e,t;V.value="",pe(),null==(e=c.value)||e.onValueCleared(),null==(t=d.value)||t.setParsedDate(null),i("update:model-value",null),i("update:model-timezone-value",null),i("cleared"),T.value.closeOnClearValue&&he()}),"Ee"),oe=H((()=>{const e=q.value;return!(e&&(Array.isArray(e)||!w(e)))||!!Array.isArray(e)&&(!!(A.value.enabled||2===e.length&&w(e[0])&&w(e[1]))||!(!E.value.partialRange||r.timePicker)&&w(e[0]))}),"Be"),le=H((()=>{K()&&oe()?(W(),he()):i("invalid-select",q.value)}),"k"),ue=H((e=>{ce(),W(),T.value.closeOnAutoApply&&!e&&he()}),"x"),ce=H((()=>{d.value&&k.value.enabled&&d.value.setParsedDate(q.value)}),"Ie"),de=H(((e=!1)=>{r.autoApply&&S(q.value)&&oe()&&(E.value.enabled&&Array.isArray(q.value)?(E.value.partialRange||2===q.value.length)&&ue(e):ue(e))}),"Ue"),pe=H((()=>{k.value.enabled||(q.value=null)}),"rt"),he=H(((e=!1)=>{var t,n;e&&q.value&&T.value.setDateOnMenuClose&&le(),x.value.enabled||(s.value&&(s.value=!1,N.value=!1,v(!1),b(!1),_(),i("closed"),V.value&&z(o.value)),pe(),i("blur"),null==(n=null==(t=c.value)?void 0:t.$el)||n.remove())}),"de"),fe=H(((e,t,n=!1)=>
100{if(!e)return void(q.value=null);const a=Array.isArray(e)?!e.some((e=>!w(e))):w(e),s=S(e);a&&s?(y.value=!0,q.value=e,t?(f.value=n,le(),i("text-submit")):r.autoApply&&de(),vi().then((()=>{y.value=!1}))):i("invalid-date",e)}),"Rt"),me=H((()=>{r.autoApply&&S(q.value)&&W(),ce()}),"ft"),ge=H((()=>s.value?he():ae()),"ra"),ye=H((e=>{q.value=e}),"ba"),ve=H((()=>{k.value.enabled&&(p.value=!0,G()),i("focus")}),"ka"),be=H((()=>{if(k.value.enabled&&(p.value=!1,z(r.modelValue),f.value)){const e=vH(h.value,m.value);null==e||e.focus()}i("blur")}),"wa"),_e=H((e=>{c.value&&c.value.updateMonthYear(0,{month:cH(e.month),year:cH(e.year)})}),"Da"),we=H((e=>{z(null!=e?e:r.modelValue)}),"Ma"),Se=H(((e,t)=>{var n;null==(n=c.value)||n.switchView(e,t)}),"tn"),Ce=H(((e,t)=>T.value.onClickOutside?T.value.onClickOutside(e,t):he(!0)),"g"),ke=H(((e=0)=>{var t;null==(t=c.value)||t.handleFlow(e)}),"ne"),xe=H((()=>u),"me");return RV(u,d,(e=>Ce(oe,e))),t({closeMenu:he,selectDate:le,clearValue:se,openMenu:ae,onScroll:te,formatInputValue:G,updateInternalModelValue:ye,setMonthYear:_e,parseModel:we,switchView:Se,toggleMenu:ge,handleFlow:ke,getDpWrapMenuRef:xe}),(e,t)=>(As(),Ps("div",{ref_key:"pickerWrapperRef",ref:h,class:Fe(Y.value),"data-datepicker-instance":"","data-dp-mobile":$n($)},[Hs($V,Zs({ref_key:"inputRef",ref:d,"input-value":$n(V),"onUpdate:inputValue":t[0]||(t[0]=e=>xn(V)?V.value=e:null),"is-menu-open":s.value},e.$props,{onClear:se,onOpen:ae,onSetInputDate:fe,onSetEmptyDate:$n(W),onSelectDate:le,onToggle:ge,onClose:he,onFocus:ve,onBlur:be,onRealBlur:t[1]||(t[1]=e=>p.value=!1),onTextInput:t[2]||(t[2]=t=>e.$emit("text-input",t))}),ta({_:2},[ea($n(O),((t,n)=>({name:t,fn:Ii((n=>[na(e.$slots,t,Be(Us(n)))]))})))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(As(),Os(Xr(e.teleport?er:"div"),Be(Us(X.value)),{default:Ii((()=>[Hs(No,{name:$n(L)($n(M)),css:$n(I)&&!$n(x).enabled},{default:Ii((()=>[s.value?(As(),Ps("div",Zs({key:0,ref_key:"dpWrapMenuRef",ref:u},Q.value,{class:{"dp--menu-wrapper":!$n(x).enabled},style:$n(x).enabled?void 0:$n(R)}),[Hs(fV,Zs({ref_key:"dpMenuRef",ref:c},e.$props,{"internal-model-value":$n(q),"onUpdate:internalModelValue":t[3]||(t[3]=e=>xn(q)?q.value=e:null),class:{[Z.value]:!0,"dp--menu-wrapper":e.teleport},"open-on-top":$n(M),"no-overlay-focus":J.value,collapse:g.value,"get-input-rect":ee,"is-text-input-date":y.value,onClosePicker:he,onSelectDate:le,onAutoApply:de,onTimeUpdate:me,onFlowStep:t[4]||(t[4]=t=>e.$emit("flow-step",t)),onUpdateMonthYear:t[5]||(t[5]=t=>e.$emit("update-month-year",t)),onInvalidSelect:t[6]||(t[6]=t=>e.$emit("invalid-select",$n(q))),onAutoApplyInvalid:t[7]||(t[7]=t=>e.$emit("invalid-select",t)),onInvalidFixedRange:t[8]||(t[8]=t=>e.$emit("invalid-fixed-range",t)),onRecalculatePosition:$n(B),onTooltipOpen:t[9]||(t[9]=t=>e.$emit("tooltip-open",t)),onTooltipClose:t[10]||(t[10]=t=>e.$emit("tooltip-close",t)),onTimePickerOpen:t[11]||(t[11]=t=>e.$emit("time-picker-open",t)),onTimePickerClose:t[12]||(t[12]=t=>e.$emit("time-picker-close",t)),onAmPmChange:t[13]||(t[13]=t=>e.$emit("am-pm-change",t)),onRangeStart:t[14]||(t[14]=t=>e.$emit("range-start",t)),onRangeEnd:t[15]||(t[15]=t=>e.$emit("range-end",t)),onDateUpdate:t[16]||(t[16]=t=>e.$emit("date-update",t)),onInvalidDate:t[17]||(t[17]=t=>e.$emit("invalid-date",t)),onOverlayToggle:t[18]||(t[18]=t=>e.$emit("overlay-toggle",t)),onMenuBlur:t[19]||(t[19]=t=>e.$emit("blur"))}),ta({_:2},[ea($n(P),((t,n)=>({name:t,fn:Ii((n=>[na(e.$slots,t,Be(Us(F({},n))))]))})))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","is-text-input-date","onRecalculatePosition"])],16)):Ws("",!0)])),_:3},8,["name","css"])])),_:3},16))],10,NV))}}),BV=(()=>{const e=FV;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),HV=Object.freeze(Object.defineProperty({__proto__:null,default:BV},Symbol.toStringTag,{value:"Module"}));Object.entries(HV).forEach((([e,t])=>{"default"!==e&&(BV[e]=t)}));const jV={baidu:"http://cang.baidu.com/do/add?iu=@u&it=@t",bluesky:"https://bsky.app/intent/compose?text=@t%0A@u",buffer:"https://bufferapp.com/add?text=@t&url=@u",email:"mailto:?subject=@t&body=@u%0D%0A@d",evernote:"https://www.evernote.com/clip.action?url=@u&title=@t",facebook:"https://www.facebook.com/sharer/sharer.php?u=@u&title=@t&description=@d"e=@q&hashtag=@h",flipboard:"https://share.flipboard.com/bookmarklet/popout?v=2&url=@u&title=@t",hackernews:"https://news.ycombinator.com/submitlink?u=@u&t=@t",instapaper:"http://www.instapaper.com/edit?url=@u&title=@t&description=@d",line:"http://line.me/R/msg/text/?@t%0D%0A@u%0D%0A@d",linkedin:"https://www.linkedin.com/sharing/share-offsite/?url=@u",messenger:"fb-messenger://share/?link=@u",odnoklassniki:"https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&st.shareUrl=@u&st.comments=@t",pinterest:"https://pinterest.com/pin/create/button/?url=@u&media=@m&description=@t",pocket:"https://getpocket.com/save?url=@u&title=@t",quora:"https://www.quora.com/share?url=@u&title=@t",reddit:"https://www.reddit.com/submit?url=@u&title=@t",skype:"https://web.skype.com/share?url=@t%0D%0A@u%0D%0A@d",sms:"sms:?body=@t%0D%0A@u%0D%0A@d",stumbleupon:"https://www.stumbleupon.com/submit?url=@u&title=@t",telegram:"https://t.me/share/url?url=@u&text=@t%0D%0A@d",tumblr:"https://www.tumblr.com/share/link?url=@u&name=@t&description=@d",twitter:"https://twitter.com/intent/tweet?text=@t&url=@u&hashtags=@h&via=@tu",x:"https://x.com/intent/post?text=@t&url=@u&hashtags=@h&via=@tu",viber:"viber://forward?text=@t%0D%0A@u%0D%0A@d",vk:"https://vk.com/share.php?url=@u&title=@t&image=@m&noparse=true",weibo:"http://service.weibo.com/share/share.php?url=@u&title=@t&pic=@m",whatsapp:"https://api.whatsapp.com/se
100nd?text=@t%0D%0A@u%0D%0A@d",wordpress:"https://wordpress.com/press-this.php?u=@u&t=@t&s=@d&i=@m",xing:"https://www.xing.com/social/share/spi?op=share&url=@u&title=@t",yammer:"https://www.yammer.com/messages/new?login=true&status=@t%0D%0A@u%0D%0A@d",threads:"https://www.threads.net/intent/post?url=@u&text=@t"},UV=H((()=>typeof window<"u"),"i$2"),VV=H(((e,t)=>{if(!UV())return null;const n=window.innerWidth||document.documentElement.clientWidth||window.screenX,i=window.innerHeight||document.documentElement.clientHeight||window.screenY,r=n/window.screen.availWidth,a=(n-e)/2/r+(void 0!==window.screenLeft?window.screenLeft:window.screenX);return{top:(i-t)/2/r+(void 0!==window.screenTop?window.screenTop:window.screenY),left:a,width:e,height:t}}),"w$2"),qV=H((e=>Object.entries(e).map((([e,t])=>t?`${e}=${t}`:"")).filter((e=>e)).join(",")),"d$2"),zV=H((e=>{if(!UV())return null;if("http"!==e.substring(0,4))return window.open(e,"_blank");const t=VV(500,500);return t?window.open(e,"sharer",qV(t)):null}),"h$2"),WV=H(((e,t)=>{const n=window.navigator.userAgent.toLowerCase();return"sms"===e&&(n.includes("iphone")||n.includes("ipad"))?t[e].replace(":?",":&"):t[e]}),"m$2"),GV=H(((e,t)=>"facebook"===t&&e&&e.length>0?`%23${e.split(",")[0]}`:e),"g$3"),KV=H((()=>({network:"",url:"",title:"",description:"",quote:"",hashtags:"",twitterUser:"",media:""})),"f$2"),YV=H((e=>{const t=KV();return Object.fromEntries(Object.keys(t).map((n=>{let i=Dn(e[n])||t[n];return i="hashtags"===n?GV(i,n):encodeURIComponent(i),[n,i]})))}),"k$2"),ZV=H(((e,t)=>e.replace(/@tu/g,t.twitterUser).replace(/@u/g,t.url).replace(/@t/g,t.title).replace(/@d/g,t.description).replace(/@q/g,t.quote).replace(/@h/g,t.hashtags).replace(/@m/g,t.media)),"b$2"),XV=H((()=>{const e=Object.assign({},jV,Oi("share-networks",{})),t=H((t=>{const n=YV(t);if(!n.network||!e[n.network])throw new Error(`Network ${n.network} does not exist`);let i=WV(n.network,e);return"twitter"===n.network&&(n.hashtags.length||(i=i.replace("&hashtags=@h","")),n.twitterUser.length||(i=i.replace("&via=@tu",""))),ZV(i,n)}),"t");return{getSharingLink:t,shareLink:H((e=>{const n=t(e);return zV(n)}),"shareLink")}}),"v$2"),QV=vr({props:{network:{type:String,required:!0},url:{type:String,default:""},title:{type:String,default:""},description:{type:String,default:""},quote:{type:String,default:""},hashtags:{type:String,default:""},twitterUser:{type:String,default:""},media:{type:String,default:""}},setup(e,t){const{shareLink:n}=XV();return()=>t.slots.default?t.slots.default({share:H((()=>n(e)),"share")}):ko("div",{onClick:H((()=>n(e)),"onClick")},"Share")}});var JV="undefined"!=typeof window,eq=["__key","__init","__shim","__original","__index","__prevKey"];function tq(){return Math.random().toString(36).substring(2,15)}function nq(e,t){return[...e instanceof Set?e:new Set(e)]}function iq(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rq(e,t,n=!0,i=["__key"]){if(e===t)return!0;if("object"==typeof t&&"object"==typeof e){if(e instanceof Map)return!1;if(e instanceof Set)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return aq(e,t);if(null===e||null===t)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n of i)if((n in e||n in t)&&e[n]!==t[n])return!1;for(const r in e){if(!(r in t))return!1;if(e[r]!==t[r]&&!n)return!1;if(n&&!rq(e[r],t[r],n,i))return!1}return!0}return!1}function aq(e,t){return e.source===t.source&&e.flags.split("").sort().join("")===t.flags.split("").sort().join("")}function sq(e){const t=typeof e;if("number"===t)return!1;if(void 0===e)return!0;if("string"===t)return""===e;if("object"===t){if(null===e)return!0;for(const t in e)return!1;return!(e instanceof RegExp)&&!(e instanceof Date)}return!1}function oq(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function lq(e){const t=`^${oq(e)}$`,n={MM:"(0[1-9]|1[012])",M:"([1-9]|1[012])",DD:"([012][0-9]|3[01])",D:"([012]?[0-9]|3[01])",YYYY:"\\d{4}",YY:"\\d{2}"},i=Object.keys(n);return new RegExp(i.reduce(((e,t)=>e.replace(t,n[t])),t))}function uq(e){return"[object Object]"===Object.prototype.toString.call(e)}function cq(e){return uq(e)||Array.isArray(e)}function dq(e){if(!1===uq(e))return!1;if(e.__FKNode__||!1===e.__POJO__)return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!1!==uq(n)&&!1!==n.hasOwnProperty("isPrototypeOf")}H(tq,"token"),H(nq,"dedupe"),H(iq,"has"),H(rq,"eq"),H(aq,"eqRegExp"),H(sq,"empty"),H(oq,"escapeExp"),H(lq,"regexForFormat"),H(uq,"isRecord"),H(cq,"isObject$3"),H(dq,"isPojo");var pq=H(((e,t,n=!1,i=!1)=>
100{if(null===t)return null;const r={};if("string"==typeof t)return t;for(const a in e)if(!iq(t,a)||void 0===t[a]&&i)r[a]=e[a];else{if(n&&Array.isArray(e[a])&&Array.isArray(t[a])){r[a]=e[a].concat(t[a]);continue}if(void 0===t[a])continue;dq(e[a])&&dq(t[a])?r[a]=pq(e[a],t[a],n,i):r[a]=t[a]}for(const a in t)iq(r,a)||void 0===t[a]||(r[a]=t[a]);return r}),"extend$3");function hq(e){if('"'!==e[0]&&"'"!==e[0])return!1;if(e[0]!==e[e.length-1])return!1;const t=e[0];for(let n=1;n<e.length;n++)if(e[n]===t&&(1===n||"\\"!==e[n-1])&&n!==e.length-1)return!1;return!0}function fq(e){if(!e.length)return"";let t="",n="";for(let i=0;i<e.length;i++){const r=e.charAt(i);"\\"===r&&"\\"!==n||(t+=r),n=r}return t}function mq(...e){return e.reduce(((e,t)=>{const n=t,{value:i,name:r,modelValue:a,config:s,plugins:o}=n,l=j(n,["value","name","modelValue","config","plugins"]);return Object.assign(e,l)}),{})}function gq(e){const t=[];let n="",i=0,r="",a="";for(let s=0;s<e.length;s++){const o=e.charAt(s);o===r&&"\\"!==a?r="":"'"!==o&&'"'!==o||r||"\\"===a?"("!==o||r?")"!==o||r||i--:i++:r=o,","!==o||r||0!==i?(" "!==o||r)&&(n+=o):(t.push(n),n=""),a=o}return n&&t.push(n),t}function yq(e,t){const n={},i=t.filter((e=>e instanceof RegExp)),r=new Set(t);for(const a in e)r.has(a)||i.some((e=>e.test(a)))||(n[a]=e[a]);return n}function vq(e,t){const n={},i=t.filter((e=>e instanceof RegExp));return t.forEach((t=>{t instanceof RegExp||(n[t]=e[t])})),Object.keys(e).forEach((t=>{i.some((e=>e.test(t)))&&(n[t]=e[t])})),n}function bq(e){return e.replace(/-([a-z0-9])/gi,((e,t)=>t.toUpperCase()))}function _q(e){return e.replace(/([a-z0-9])([A-Z])/g,((e,t,n)=>t+"-"+n.toLowerCase())).replace(" ","-").toLowerCase()}function wq(e,t=eq){if(null!==e&&"object"==typeof e){let n;if(Array.isArray(e)?n=[...e]:dq(e)&&(n=F({},e)),n)return Aq(e,n,t),n}return e}function Sq(e,t=eq){if(null===e||e instanceof RegExp||e instanceof Date||e instanceof Map||e instanceof Set||"function"==typeof File&&e instanceof File)return e;let n;n=Array.isArray(e)?e.map((e=>"object"==typeof e?Sq(e,t):e)):Object.keys(e).reduce(((n,i)=>(n[i]="object"==typeof e[i]?Sq(e[i],t):e[i],n)),{});for(const i of t)i in e&&Object.defineProperty(n,i,{enumerable:!1,value:e[i]});return n}function Cq(e){return"object"==typeof e?Sq(e):e}function kq(e,t){if(!e||"object"!=typeof e)return null;const n=t.split(".");let i=e;for(const r in n){const e=n[r];if(iq(i,e)&&(i=i[e]),+r==n.length-1)return i;if(!i||"object"!=typeof i)return null}return null}function xq(e){return void 0!==e&&"false"!==e&&!1!==e||void 0}function Tq(e){return Object.isFrozen(e)?e:Object.defineProperty(e,"__init",{enumerable:!1,value:!0})}function Eq(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g," ").trim().replace(/\s+/g,"-")}function Aq(e,t,n){for(const i of n)i in e&&Object.defineProperty(t,i,{enumerable:!1,value:e[i]});return t}function Lq(e,t,n){if(!JV)return;n||(n=document);const i=n.getElementById(e);if(i)return t(i);const r=new MutationObserver((()=>{const i=null==n?void 0:n.getElementById(e);i&&(null==r||r.disconnect(),t(i))}));r.observe(n,{childList:!0,subtree:!0})}function Iq(e){let t=!1;return(...n)=>{if(!t)return t=!0,queueMicrotask((()=>t=!1)),e(...n)}}function $q(e){if("false"!==e&&!1!==e)return!0}function Dq(){const e=[];let t=0;const n=H((t=>e.push(t)),"use2"),i=H((n=>{const r=e[t];return"function"==typeof r?r(n,(e=>(t++,i(e)))):(t=0,n)}),"dispatch");return n.dispatch=i,n.unshift=t=>e.unshift(t),n.remove=t=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},n}function Pq(){const e=new Map,t=new Map;let n;const i=H(((t,i)=>{n?n.set(i.name,[t,i]):(e.has(i.name)&&e.get(i.name).forEach((e=>{(i.origin===t||e.modifiers.includes("deep"))&&e.listener(i)})),i.bubble&&t.bubble(i))}),"emitter");return i.flush=()=>{e.clear(),t.clear(),null==n||n.clear()},i.on=(n,i,r="push")=>{const[a,...s]=n.split("."),o=i.receipt||tq(),l={modifiers:s,event:a,listener:i,receipt:o};return e.has(a)?e.get(a)[r](l):e.set(a,[l]),t.has(o)?t.get(o)[r](a):t.set(o,[a]),o},i.off=n=>{var i;t.has(n)&&(null==(i=t.get(n))||i.forEach((t=>{const i=e.get(t);Array.isArray(i)&&e.set(t,i.filter((e=>e.receipt!==n)))})),t.delete(n))},i.pause=e=>{n||(n=new Map),e&&e.walk((e=>e._e.pause()))},i.play=e=>{if(!n)return;const t=n;n=void 0,t.forEach((([e,t])=>i(e,t))),e&&e.walk((e=>e._e.play()))},i}function Oq(e,t,n,i,r=!0,a){return t._e(e,{payload:i,name:n,bubble:r,origin:e,meta:a}),e}function Mq(e,t,n){return Tz(e.parent)&&e.parent._e(e.parent,n),e}function Rq(e,t,n,i,r){return t._e.on(n,i,r)}function Nq(e,t,n){return t._e.off(n),e}H(hq,"isQuotedString"),H(fq,"rmEscapes"),H(mq,"nodeProps"),H(gq,"parseArgs"),H(yq,"except"),H(vq,"only"),H(bq,"camel"),H(_q,"kebab"),H(wq,"shallowClone"),H(Sq,"clone"),H(Cq,"cloneAny"),H(kq,"getAt"),H(xq,"undefine"),H(Tq,"init$2"),H(Eq,"slugify"),H(Aq,"applyExplicit"),H(Lq,"whenAvailable"),H(Iq,"oncePerTick"),H($q,"boolGetter"),H(Dq,"createDispatcher"),H(Pq,"createEmitter$1"),H(Oq,"emit"),H(Mq,"bubble"),H(Rq,"on"),H(Nq,"off");var Fq=Dq();Fq(((e,t)=>(e.message||(e.message=String(`E${e.code}`)),t(e))));var Bq=Dq();function Hq(e,t={}){Bq.dispatch({code:e,data:t})}function jq(e,t={}){throw Error(Fq.dispatch({code:e,data:t}).message)}function Uq(e,t){return F({blocking:!1,key:tq(),meta:{},type:"state",visible:!0},e)}Bq(((e,t)=>{e.message||(e.message=String(`W${e.code}`));const n=t(e);return console&&"function"==typeof console.warn&&console.warn(n.message),n})),H(Hq,"warn$6"),H(jq,"error$5"),H(Uq,"createMessage");var Vq={apply:Zq,set:zq,remove:Gq,filter:Kq,reduce:Yq,release:ez,touch:Wq};function qq(e=!1){const t={};let n,i=e,r=[];const a=new Map;let s;const o=new Proxy(t,{get(...e){const[l,u]=e;return"buffer"===u?i:"_b"===u?r:"_m"===u?a:"_r"===u?s:iq(Vq,u)?Vq[u].bind(null,t,o,n):Reflect.get(...e)},set:(e,t,a)=>"_n"===t?(n=a,"__n"===s&&Jq(n,o),!0):"_b"===t?(r=a,!0):"buffer"===t?(i=a,!0):"_r"===t?(s=a,!0):(jq(101,n),!1)});return o}function zq(e,t,n,i){if(t.buffer)return t._b.push([[i]]),t;if(e[i.key]!==i){if("string"==typeof i.value&&!1!==i.meta.localize){const e=i.value;i.value=n.t(i),i.value!==e&&(i.meta.locale=n.props.locale)}const t="message-"+(iq(e,i.key)?"updated":"added");e[i.key]=Object.freeze(n.hook.message.dispatch(i)),n.emit(t,i)}return t}function Wq(e,t){for(const n in e){const i=F({},e[n]);t.set(i)}}function Gq(e,t,n,i){if(iq(e,i)){const t=e[i];delete e[i],n.emit("message-removed",t)}return!0===t.buffer&&(t._b=t._b.filter((e=>(e[0]=e[0].filter((e=>e.key!==i)),e[1]||e[0].length)))),t}function Kq(e,t,n,i,r){for(const a in e){const s=e[a];r&&s.type!==r||i(s)||Gq(e,t,n,a)}}function Yq(e,t,n,i,r){for(const a in e){r=i(r,e[a])}return r}function Zq(e,t,n,i,r){if(Array.isArray(i)){if(t.buffer)return void t._b.push([i,r]);const e=new Set(i.map((e=>(t.set(e),e.key))));"string"==typeof r?t.filter((t=>t.type!==r||e.has(t.key))):"function"==typeof r&&t.filter((t=>!r(t)||e.has(t.key)))}else for(const a in i){const e=n.at(a);
100e?e.store.apply(i[a],r):Qq(n,t,a,i[a],r)}}function Xq(e,...t){const n=`${e.name}-set`,i=H((e=>Uq({key:Eq(e),type:"error",value:e,meta:{source:n,autoClear:!0}})),"make");return t.filter((e=>!!e)).map((e=>{if("string"==typeof e&&(e=[e]),Array.isArray(e))return e.map((e=>i(e)));{const t={};for(const n in e)Array.isArray(e[n])?t[n]=e[n].map((e=>i(e))):t[n]=[i(e[n])];return t}}))}function Qq(e,t,n,i,r){var a;const s=t._m;s.has(n)||s.set(n,[]),t._r||(t._r=Jq(e,t)),null==(a=s.get(n))||a.push([i,r])}function Jq(e,t){return e.on("child.deep",(({payload:n})=>{t._m.forEach(((i,r)=>{e.at(r)===n&&(i.forEach((([e,t])=>{n.store.apply(e,t)})),t._m.delete(r))})),0===t._m.size&&t._r&&(e.off(t._r),t._r=void 0)}))}function ez(e,t){t.buffer=!1,t._b.forEach((([e,n])=>t.apply(e,n))),t._b=[]}function tz(){const e={};let t;return{count:H(((...n)=>nz(t,e,...n)),"count"),init(n){t=n,n.on("message-added.deep",az(e,1)),n.on("message-removed.deep",az(e,-1))},merge:H((n=>sz(t,e,n)),"merge"),settled:t=>iq(e,t)?e[t].promise:Promise.resolve(),unmerge:H((n=>sz(t,e,n,!0)),"unmerge"),value:t=>iq(e,t)?e[t].count:0}}function nz(e,t,n,i,r=0){if(i=iz(i||n),!iq(t,n)){const a={condition:i,count:0,name:n,node:e,promise:Promise.resolve(),resolve:H((()=>{}),"resolve")};t[n]=a,r=e.store.reduce(((e,t)=>e+1*a.condition(t)),r),e.each((e=>{e.ledger.count(a.name,a.condition),r+=e.ledger.value(a.name)}))}return rz(t[n],r).promise}function iz(e){return"function"==typeof e?e:t=>t.type===e}function rz(e,t){const n=e.count,i=e.count+t;return e.count=i,0===n&&0!==i?(e.node.emit(`unsettled:${e.name}`,e.count,!1),e.promise=new Promise((t=>e.resolve=t))):0!==n&&0===i&&(e.node.emit(`settled:${e.name}`,e.count,!1),e.resolve()),e.node.emit(`count:${e.name}`,e.count,!1),e}function az(e,t){return n=>{for(const i in e){const r=e[i];r.condition(n.payload)&&rz(r,t)}}}function sz(e,t,n,i=!1){const r=e;for(const a in t){const s=t[a].condition;i||n.ledger.count(a,s);const o=n.ledger.value(a)*(i?-1:1);if(e){do{e.ledger.count(a,s,o),e=e.parent}while(e);e=r}}}H(qq,"createStore"),H(zq,"setMessage"),H(Wq,"touchMessages"),H(Gq,"removeMessage$1"),H(Kq,"filterMessages"),H(Yq,"reduceMessages"),H(Zq,"applyMessages"),H(Xq,"createMessages"),H(Qq,"missed"),H(Jq,"releaseMissed"),H(ez,"releaseBuffer"),H(tz,"createLedger"),H(nz,"createCounter"),H(iz,"parseCondition"),H(rz,"count"),H(az,"add"),H(sz,"merge$4");var oz=new Map,lz=new Map,uz=Pq(),cz=[];function dz(e){e.props.id&&(oz.set(e.props.id,e),lz.set(e,e.props.id),uz(e,{payload:e,name:e.props.id,bubble:!1,origin:e}))}function pz(e){if(lz.has(e)){const t=lz.get(e);lz.delete(e),oz.delete(t),uz(e,{payload:null,name:t,bubble:!1,origin:e})}}function hz(e){return oz.get(e)}function fz(e,t){cz.push(uz.on(e,t))}function mz(e,t,n){let i=!0;return t in e.config._t?i=!1:e.emit(`config:${t}`,n,!1),t in e.props||(e.emit("prop",{prop:t,value:n}),e.emit(`prop:${t}`,n)),i}function gz(e={}){const t=new Set,n=F(F({},e),{_add:H((e=>t.add(e)),"_add"),_rm:H((e=>t.delete(e)),"_rm")});return new Proxy(n,{set:(e,n,i,r)=>("string"==typeof n&&t.forEach((e=>mz(e,n,i))),Reflect.set(e,n,i,r))})}function yz(e,t){const n=(t||document).getElementById(e);if(n instanceof HTMLFormElement){const e=new Event("submit",{cancelable:!0,bubbles:!0});n.dispatchEvent(e)}else Hq(151,e)}function vz(e){const t=H((e=>{for(const t in e.store){const n=e.store[t];"error"===n.type||"ui"===n.type&&"incomplete"===t?e.store.remove(t):"state"===n.type&&e.store.set(B(F({},n),{value:!1}))}}),"clear");t(e),e.walk(t)}function bz(e,t){const n="string"==typeof e?hz(e):e;if(n){const e=H((e=>Cq(e.props.initial)||("group"===e.type?{}:"list"===e.type?[]:void 0)),"initial");n._e.pause(n);const i=Cq(t);t&&!sq(t)&&(n.props.initial=cq(i)?Tq(i):i,n.props._init=n.props.initial),n.input(e(n),!1),n.walk((t=>{"list"===t.type&&t.sync||t.input(e(t),!1)})),n.input(sq(i)&&i?i:e(n),!1);return"input"!==n.type&&t&&!sq(t)&&cq(t)&&n.walk((e=>{e.props.initial=cq(e.value)?Tq(e.value):e.value,e.props._init=e.props.initial})),n._e.play(n),vz(n),n.emit("reset",n),n}Hq(152,e)}
100H(dz,"register$1"),H(pz,"deregister"),H(hz,"getNode"),H(fz,"watchRegistry"),H(mz,"configChange"),H(gz,"createConfig"),H(yz,"submitForm"),H(vz,"clearState"),H(bz,"reset");var _z={delimiter:".",delay:0,locale:"en",rootClasses:H((e=>({[`formkit-${_q(e)}`]:!0})),"rootClasses")},wz=Symbol("index"),Sz=Symbol("removed"),Cz=Symbol("moved"),kz=Symbol("inserted");function xz(e){return"list"===e.type&&Array.isArray(e._value)}function Tz(e){return e&&"object"==typeof e&&!0===e.__FKNode__}H(xz,"isList"),H(Tz,"isNode$3");var Ez=H(((e,t,n)=>{jq(102,[e,n])}),"invalidSetter"),Az={_c:Iz(rW,Ez,!1),add:Iz(Yz),addProps:Iz(Wz),address:Iz(sW,Ez,!1),at:Iz(oW),bubble:Iz(Mq),clearErrors:Iz(yW),calm:Iz(Vz),config:Iz(!1),define:Iz(zz),disturb:Iz(Uz),destroy:Iz(qz),extend:Iz(bW),hydrate:Iz(Hz),index:Iz(iW,nW,!1),input:Iz(Rz),each:Iz(Qz),emit:Iz(Oq),find:Iz(uW),on:Iz(Rq),off:Iz(Nq),parent:Iz(!1,Zz),plugins:Iz(!1),remove:Iz(Xz),root:Iz(dW,Ez,!1),reset:Iz(mW),resetConfig:Iz(eW),setErrors:Iz(gW),submit:Iz(fW),t:Iz(hW),use:Iz(tW),name:Iz(aW,!1,!1),walk:Iz(Jz)};function Lz(){return new Map(Object.entries(Az))}function Iz(e,t,n=!0){return{get:!!e&&((t,i)=>n?(...n)=>e(t,i,...n):e(t,i)),set:void 0!==t?t:Ez.bind(null)}}function $z(){const e=new Map;return new Proxy(e,{get:(t,n)=>(e.has(n)||e.set(n,Dq()),e.get(n))})}H(Lz,"createTraps"),H(Iz,"trap"),H($z,"createHooks");var Dz=0,Pz=0;function Oz(e){var t,n;return"list"===(null==(t=e.parent)?void 0:t.type)?wz:e.name||`${(null==(n=e.props)?void 0:n.type)||"input"}_${++Dz}`}function Mz(e){return"group"===e.type?Tq(e.value&&"object"==typeof e.value&&!Array.isArray(e.value)?e.value:{}):"list"===e.type?Tq(Array.isArray(e.value)?e.value:[]):e.value}function Rz(e,t,n,i=!0){return t._value=Nz(e,e.hook.input.dispatch(n)),e.emit("input",t._value),e.isCreated&&"input"===e.type&&rq(t._value,t.value)?(e.emit("commitRaw",t.value),t.settled):(t.isSettled&&e.disturb(),i?(t._tmo&&clearTimeout(t._tmo),t._tmo=setTimeout(Fz,e.props.delay,e,t)):Fz(e,t),t.settled)}function Nz(e,t){switch(e.type){case"input":break;case"group":t&&"object"==typeof t||jq(107,[e,t]);break;case"list":Array.isArray(t)||jq(108,[e,t])}return t}function Fz(e,t,n=!0,i=!0){t._value=t.value=e.hook.commit.dispatch(t._value),"input"!==e.type&&i&&e.hydrate(),e.emit("commitRaw",t.value),e.emit("commit",t.value),n&&e.calm()}function Bz(e,{name:t,value:n,from:i}){if(!Object.isFrozen(e._value))if(xz(e)){const r=n===Sz?[]:n===Cz&&"number"==typeof i?e._value.splice(i,1):[n];e._value.splice(t,n===Cz||i===kz?0:1,...r)}else n!==Sz?e._value[t]=n:delete e._value[t]}function Hz(e,t){const n=t._value;return"list"===e.type&&e.sync&&jz(e,t),t.children.forEach((i=>{if("object"==typeof n)if(i.name in n){const e="input"!==i.type||n[i.name]&&"object"==typeof n[i.name]?Tq(n[i.name]):n[i.name];if(!i.isSettled||!cq(e)&&rq(e,i._value))return;i.input(e,!1)}else"list"===e.type&&"number"!=typeof i.name||Bz(t,{name:i.name,value:i.value}),n.__init||("group"===i.type?i.input({},!1):"list"===i.type?i.input([],!1):i.input(void 0,!1))})),e}function jz(e,t){const n=e._value;if(!Array.isArray(n))return;const i=[],r=new Set(t.children),a=new Map;n.forEach(((e,n)=>{if(t.children[n]&&t.children[n]._value===e)i.push(t.children[n]),r.delete(t.children[n]);else{i.push(null);const t=a.get(e)||[];t.push(n),a.set(e,t)}})),r.size&&a.size&&r.forEach((e=>{if(a.has(e._value)){const t=a.get(e._value),n=t.shift();i[n]=e,r.delete(e),t.length||a.delete(e._value)}}));const s=[];for(a.forEach((e=>{s.push(...e)}));r.size&&s.length;){const e=r.values().next().value,t=s.shift();if(void 0===t)break;i[t]=e,r.delete(e)}s.forEach(((e,t)=>{i[e]=CW({value:t})})),r.size&&r.forEach((e=>{if(!("__FKP"in e)){const t=e._c.parent;if(!t||kW(t))return;t.ledger.unmerge(e),e._c.parent=null,e.destroy()}})),t.children=i}function Uz(e,t){var n;return t._d<=0&&(t.isSettled=!1,e.emit("settled",!1,!1),t.settled=new Promise((e=>{t._resolve=e})),e.parent&&(null==(n=e.parent)||n.disturb())),t._d++,e}function Vz(e,t,n){var i;if(void 0!==n&&"input"!==e.type)return Bz(t,n),Fz(e,t,!0,!1);t._d>0&&t._d--,0===t._d&&(t.isSettled=!0,e.emit("settled",!0,!1),e.parent&&(null==(i=e.parent)||i.calm({name:e.name,value:t.value})),t._resolve&&t._resolve(t.value))}function qz(e,t){e.emit("destroying",e),e.store.filter((()=>!1)),e.parent&&e.parent.remove(e),pz(e),e.emit("destroyed",e),t._e.flush(),t._value=t.value=void 0;for(const n in t.context)delete t.context[n];t.plugins.clear(),t.context=null}function zz(e,t,n){var i;t.type=n.type;const r=Sq(n);e.props.__propDefs=Kz(null!=(i=e.props.__propDefs)?i:[],(null==r?void 0:r.props)||[]),r.props=e.props.__propDefs,t.props.definition=r,t.value=t._value=Mz({type:e.type,value:t.value}),n.forceTypeProp&&(e.props.type&&(e.props.originalType=e.props.type),t.props.type=n.forceTypeProp),n.family&&(t.props.family=n.family),n.features&&n.features.forEac
100h((t=>t(e))),n.props&&e.addProps(n.props),e.emit("defined",n)}function Wz(e,t,n){var i;const r=Array.isArray(n)?n:Object.keys(n),a=Array.isArray(n)?{}:r.reduce(((e,t)=>("default"in n[t]&&(e[t]=n[t].default),e)),{});if(e.props.attrs){const i=F({},e.props.attrs);e.props._emit=!1;for(const t in i){const n=bq(t);r.includes(n)&&(e.props[n]=i[t],delete i[t])}Array.isArray(n)||r.forEach((t=>{"default"in n[t]&&void 0===e.props[t]&&(e.props[t]=a[t])}));const s=Cq(t._value);e.props.initial="input"!==e.type?Tq(s):s,e.props._emit=!0,e.props.attrs=i}const s=Kz(null!=(i=e.props.__propDefs)?i:[],n);return e.props.definition&&(e.props.definition.props=s),e.props.__propDefs=s,e.emit("added-props",n),e}function Gz(e){return Array.isArray(e)?e.reduce(((e,t)=>(e[t]={},e)),{}):e}function Kz(e,t){return Array.isArray(e)&&Array.isArray(t)?e.concat(t):pq(Gz(e),Gz(t))}function Yz(e,t,n,i){if("input"===e.type&&jq(100,e),n.parent&&n.parent!==e&&n.parent.remove(n),!t.children.includes(n)){if(void 0!==i&&"list"===e.type){const r=t.children[i];r&&"__FKP"in r?(n._c.uid=r.uid,t.children.splice(i,1,n)):t.children.splice(i,0,n),Array.isArray(e.value)&&e.value.length<t.children.length&&e.disturb().calm({name:i,value:n.value,from:kz})}else t.children.push(n);n.isSettled||e.disturb()}if(n.parent!==e){if(n.parent=e,n.parent!==e)return e.remove(n),n.parent.add(n),e}else n.use(e.plugins);return Fz(e,t,!1),e.ledger.merge(n),e.emit("child",n),e}function Zz(e,t,n,i){return Tz(i)?(e.parent&&e.parent!==i&&e.parent.remove(e),t.parent=i,e.resetConfig(),i.children.includes(e)?e.use(i.plugins):i.add(e),!0):null===i&&(t.parent=null,!0)}function Xz(e,t,n){const i=t.children.indexOf(n);if(-1!==i){n.isSettled&&e.disturb(),t.children.splice(i,1);let r=xq(n.props.preserve),a=n.parent;for(;void 0===r&&a;)r=xq(a.props.preserve),a=a.parent;r?e.calm():e.calm({name:"list"===e.type?i:n.name,value:Sz}),n.parent=null,n.config._rmn=n}return e.ledger.unmerge(n),e.emit("childRemoved",n),e}function Qz(e,t,n){t.children.forEach((e=>!("__FKP"in e)&&n(e)))}function Jz(e,t,n,i=!1,r=!1){t.children.some((e=>{if("__FKP"in e)return!1;const t=n(e);return!(!i||!1!==t)||(!r||!1!==t)&&e.walk(n,i,r)}))}function eW(e,t){const n=e.parent||void 0;t.config=pW(e.config._t,n),e.walk((e=>e.resetConfig()))}function tW(e,t,n,i=!0,r=!0){return Array.isArray(n)||n instanceof Set?(n.forEach((n=>tW(e,t,n))),e):(t.plugins.has(n)||(r&&"function"==typeof n.library&&n.library(e),i&&!1!==n(e)&&(t.plugins.add(n),e.children.forEach((e=>e.use(n))))),e)}function nW(e,t,n,i){if(Tz(e.parent)){const t=e.parent.children,n=i>=t.length?t.length-1:i<0?0:i,r=t.indexOf(e);return-1!==r&&(t.splice(r,1),t.splice(n,0,e),e.parent.children=t,"list"===e.parent.type&&e.parent.disturb().calm({name:n,value:Cz,from:r}),!0)}return!1}function iW(e){if(e.parent){const t=[...e.parent.children].indexOf(e);return-1===t?e.parent.children.length:t}return-1}function rW(e,t){return t}function aW(e,t){var n;return"list"===(null==(n=e.parent)?void 0:n.type)?e.index:t.name!==wz?t.name:e.index}function sW(e,t){return t.parent?t.parent.address.concat([e.name]):[e.name]}function oW(e,t,n){const i="string"==typeof n?n.split(e.config.delimiter):n;if(!i.length)return;const r=i[0];let a=e.parent;for(a||(String(i[0])===String(e.name)&&i.shift(),a=e),"$parent"===r&&i.shift();a&&i.length;){const t=i.shift();switch(t){case"$root":a=e.root;break;case"$parent":a=a.parent;break;case"$self":a=e;break;default:a=a.children.find((e=>!("__FKP"in e)&&String(e.name)===String(t)))||lW(a,t)}}return a||void 0}function lW(e,t){const n=String(t).match(/^(find)\((.*)\)$/);if(n){const[,t,i]=n,r=i.split(",").map((e=>e.trim()));return"find"===t?e.find(r[0],r[1]):void 0}}function uW(e,t,n,i){return cW(e,n,i)}function cW(e,t,n="name"){const i="string"==typeof n?e=>e[n]==t:n,r=[e];for(;r.length;){const e=r.shift();if(!("__FKP"in e)){if(i(e,t))return e;r.push(...e.children)}}}function dW(e){let t=e;for(;t.parent;)t=t.parent;return t}function pW(e={},t){let n;return new Proxy(e,{get(...i){const r=i[1];if("_t"===r)return e;const a=Reflect.get(...i);if(void 0!==a)return a;if(t){const e=t.config[r];if(void 0!==e)return e}if(e.rootConfig&&"string"==typeof r){const t=e.rootConfig[r];if(void 0!==t)return t}return"delay"===r&&"input"===(null==n?void 0:n.type)?20:_z[r]},set(...t){const i=t[1],r=t[2];if("_n"===i)return n=r,e.rootConfig&&e.rootConfig._add(n),!0;if("_rmn"===i)return e.rootConfig&&e.rootConfig._rm(n),n=void 0,!0;if(!rq(e[i],r,!1)){const e=Reflect.set(...t);return n&&(n.emit(`config:${i}`,r,!1),mz(n,i,r),n.walk((e=>mz(e,i,r)),!1,!0)),e}return!0}})}function hW(e,t,n,i="ui"){const r="string"==typeof n?{key:n,value:n,type:i}:n,a=e.hook.text.dispatch(r);return e.emit("text",a,!1),a.value}function fW(e){const t=e.name;do{if(!0===e.props.isForm)break;e.parent||jq(106,t),e=e.parent}while(e);e.props.id&&yz(e.props.id,e.props.__root)}function mW(e,t,n){return bz(e,n)}function gW(e,t,n,i){const r=`${e.name}-set`,a=e.hook.setErrors.dispatch({localErrors:n,childErrors:i});
100return Xq(e,a.localErrors,a.childErrors).forEach((t=>{e.store.apply(t,(e=>e.meta.source===r))})),e}function yW(e,t,n=!0,i){return e.store.filter((e=>!(void 0===i||e.meta.source===i)),"error"),n&&(i=i||`${e.name}-set`,e.walk((e=>{e.store.filter((e=>!("error"===e.type&&e.meta&&e.meta.source===i)))}))),e}function vW(e){const t={initial:"object"==typeof e?Cq(e):e};let n,i=!0,r={};return new Proxy(t,{get(...e){var i,a,s,o;const[l,u]=e;let c;iq(t,u)?(c=Reflect.get(...e),(null==(i=r[u])?void 0:i.boolean)&&(c=$q(c))):c=n&&"string"==typeof u&&void 0!==n.config[u]?n.config[u]:null==(a=r[u])?void 0:a.default;const d=null==(s=r[u])?void 0:s.getter;return(null==(o=r[u])?void 0:o.boolean)&&(c=!!c),d?d(c,n):c},set(e,a,s,o){var l;if("_n"===a)return n=s,!0;if("_emit"===a)return i=s,!0;let{prop:u,value:c}=n.hook.prop.dispatch({prop:a,value:s});const d=null==(l=r[u])?void 0:l.setter;if(c=d?d(c,n):c,!rq(t[u],c,!1)||"object"==typeof c){const t=Reflect.set(e,u,c,o);return"__propDefs"===u&&(r=Gz(c)),i&&(n.emit("prop",{prop:u,value:c}),"string"==typeof u&&n.emit(`prop:${u}`,c)),t}return!0}})}function bW(e,t,n,i){return t.traps.set(n,i),e}function _W(e,t){if(e.props.definition)return e.define(e.props.definition);for(const n of t){if(e.props.definition)return;"function"==typeof n.library&&n.library(e)}}function wW(e){const t=Mz(e),n=pW(e.config||{},e.parent);return{_d:0,_e:Pq(),uid:Symbol(),_resolve:!1,_tmo:!1,_value:t,children:nq(e.children||[]),config:n,hook:$z(),isCreated:!1,isSettled:!0,ledger:tz(),name:Oz(e),parent:e.parent||null,plugins:new Set,props:vW(t),settled:Promise.resolve(t),store:qq(!0),sync:e.sync||!1,traps:Lz(),type:e.type||"input",value:t}}function SW(e,t){var n,i,r;const a=null==(n=t.props)?void 0:n.id;if(a||null==(i=t.props)||delete i.id,e.ledger.init(e.store._n=e.props._n=e.config._n=e),e.props._emit=!1,Object.assign(e.props,a?{}:{id:"input_"+Pz++},null!=(r=t.props)?r:{}),e.props._emit=!0,_W(e,new Set([...t.plugins||[],...e.parent?e.parent.plugins:[]])),t.plugins)for(const s of t.plugins)tW(e,e._c,s,!0,!1);return e.each((t=>e.add(t))),e.parent&&e.parent.add(e,t.index),"input"===e.type&&e.children.length&&jq(100,e),Rz(e,e._c,e._value,!1),e.store.release(),a&&dz(e),e.emit("created",e),e.isCreated=!0,e}function CW(e){var t,n,i,r;return{__FKP:!0,uid:Symbol(),name:null!=(t=null==e?void 0:e.name)?t:"p_"+Dz++,value:null!=(n=null==e?void 0:e.value)?n:null,_value:null!=(i=null==e?void 0:e.value)?i:null,type:null!=(r=null==e?void 0:e.type)?r:"input",use:H((()=>{}),"use"),input(e){return this._value=e,this.value=e,Promise.resolve()},isSettled:!0}}function kW(e){return"__FKP"in e}function xW(e){const t=e||{},n=wW(t),i=new Proxy(n,{get(...e){const[,t]=e;if("__FKNode__"===t)return!0;const r=n.traps.get(t);return r&&r.get?r.get(i,n):Reflect.get(...e)},set(...e){const[,t,r]=e,a=n.traps.get(t);return a&&a.set?a.set(i,n,t,r):Reflect.set(...e)}});return SW(i,t)}function TW(e){return"string"!=typeof e&&iq(e,"$el")}function EW(e){return"string"!=typeof e&&iq(e,"$cmp")}function AW(e){return!(!e||"string"==typeof e)&&(iq(e,"if")&&iq(e,"then"))}function LW(e){return"string"!=typeof e&&"$formkit"in e}function IW(e){if("string"==typeof e)return{$el:"text",children:e};if(LW(e)){const t=e,{$formkit:n,for:i,if:r,children:a,bind:s}=t,o=j(t,["$formkit","for","if","children","bind"]);return Object.assign({$cmp:"FormKit",props:B(F({},o),{type:n})},r?{if:r}:{},i?{for:i}:{},a?{children:a}:{},s?{bind:s}:{})}return e}function $W(e){let t;const n=new Set,i=H((function(e,t){return"function"==typeof e?e(t):e}),"expand"),r=[{"&&":H(((e,t,n)=>i(e,n)&&i(t,n)),"&&"),"||":H(((e,t,n)=>i(e,n)||i(t,n)),"||")},{"===":H(((e,t,n)=>!(i(e,n)!==i(t,n))),"==="),"!==":H(((e,t,n)=>!(i(e,n)===i(t,n))),"!=="),"==":H(((e,t,n)=>!(i(e,n)!=i(t,n))),"=="),"!=":H(((e,t,n)=>!(i(e,n)==i(t,n))),"!="),">=":H(((e,t,n)=>!!(i(e,n)>=i(t,n))),">="),"<=":H(((e,t,n)=>!!(i(e,n)<=i(t,n))),"<="),">":H(((e,t,n)=>!!(i(e,n)>i(t,n))),">"),"<":H(((e,t,n)=>!!(i(e,n)<i(t,n))),"<")},{"+":H(((e,t,n)=>i(e,n)+i(t,n)),"+"),"-":H(((e,t,n)=>i(e,n)-i(t,n)),"-")},{"*":H(((e,t,n)=>i(e,n)*i(t,n)),"*"),"/":H(((e,t,n)=>
100i(e,n)/i(t,n)),"/"),"%":H(((e,t,n)=>i(e,n)%i(t,n)),"%")}],a=r.reduce(((e,t)=>e.concat(Object.keys(t))),[]),s=new Set(a.map((e=>e.charAt(0))));function o(e,t,n,i){const r=e.filter((e=>e.startsWith(t)));return!!r.length&&r.find((e=>{if(i.length>=n+e.length){if(i.substring(n,n+e.length)===e)return e}return!1}))}function l(e,t,n=1){let i=n?t.substring(e+1).trim():t.substring(0,e).trim();if(!i.length)return-1;if(!n){const e=i.split("").reverse(),t=e.findIndex((e=>s.has(e)));i=e.slice(t).join("")}const a=i[0];return r.findIndex((e=>!!o(Object.keys(e),a,0,i)))}function u(e,t){let n="";const i=t.length;let r=0;for(let s=e;s<i;s++){const e=t.charAt(s);if("("===e)r++;else if(")"===e)r--;else if(0===r&&" "===e)continue;if(0===r&&o(a,e,s,t))return[n,s-1];n+=e}return[n,t.length-1]}function c(e,t=0){const n=r[t],i=e.length,a=Object.keys(n);let s,c=0,p=!1,h=null,f="",m=null,g="",y="",v="",b="",_=0;const w=H(((e,t)=>{e?v+=t:f+=t}),"addTo");for(let r=0;r<i;r++)if(g=y,y=e.charAt(r),"'"!==y&&'"'!==y||"\\"===g||!(0===c&&!p||c&&!b))if(p&&(y!==p||"\\"===g)||b&&(y!==b||"\\"===g))w(c,y);else if(p!==y)if(b!==y){if(" "!==y)if("("===y)0===c?_=r:v+=y,c++;else if(")"===y)if(c--,0===c){const n="string"==typeof f&&f.startsWith("$")?f:void 0,i=n&&"."===e.charAt(r+1);let a="";i&&([a,r]=u(r+2,e));const s=h?t:l(_,e,0),o=l(r,e);-1===s&&-1===o?(f=d(v,-1,n,a),"string"==typeof f&&(f=v)):h&&(s>=o||-1===o)&&t===s?(m=h.bind(null,d(v,-1,n,a)),h=null,f=""):o>s&&t===o?f=d(v,-1,n,a):f+=`(${v})${i?`.${a}`:""}`,v=""}else v+=y;else{if(0===c&&(s=o(a,y,r,e))){0===r&&jq(103,[s,e]),r+=s.length-1,r===e.length-1&&jq(104,[s,e]),h?f&&(m=h.bind(null,d(f,t)),h=n[s].bind(null,m),f=""):m?(h=n[s].bind(null,d(m,t)),m=null):(h=n[s].bind(null,d(f,t)),f="");continue}w(c,y)}}else b=!1,w(c,y);else p=!1,w(c,y);else c?b=y:p=y,w(c,y);return f&&h&&(h=h.bind(null,d(f,t))),h=!h&&m?m:h,!h&&f&&(h=H(((e,t)=>"function"==typeof e?e(t):e),"op"),h=h.bind(null,d(f,t))),h||f||jq(105,e),h}function d(e,i,a,s){if(a){const n=d(a,r.length);let i,o=!!s&&$W(`$${s}`);if("function"==typeof n){const r=gq(String(e)).map((e=>d(e,-1)));return e=>{const l=n(e);return"function"!=typeof l?(Hq(150,a),l):(i=l(...r.map((t=>"function"==typeof t?t(e):t))),o&&(o=o.provide((e=>{const n=t(e);return e.reduce(((e,t)=>{if(t===s||(null==s?void 0:s.startsWith(`${t}(`))){const n=kq(i,t);e[t]=()=>n}else e[t]=n[t];return e}),{})}))),o?o():i)}}}else if("string"==typeof e){if("true"===e)return!0;if("false"===e)return!1;if("undefined"===e)return;if(hq(e))return fq(e.substring(1,e.length-1));if(!isNaN(+e))return Number(e);if(i<r.length-1)return c(e,i+1);if(e.startsWith("$")){const t=e.substring(1);return n.add(t),H((function(e){return t in e?e[t]():void 0}),"getToken")}return e}return e}H(o,"getOp"),H(l,"getStep"),H(u,"getTail"),H(c,"parseLogicals"),H(d,"evaluate");const p=c(e.startsWith("$:")?e.substring(2):e),h=Array.from(n);function f(e){return t=e,Object.assign(p.bind(null,e(h)),{provide:f})}return H(f,"provide"),Object.assign(p,{provide:f})}function DW(e,t,n){if(!n)return{};if("string"==typeof n){return n.split(" ").reduce(((e,t)=>Object.assign(e,{[t]:!0})),{})}return"function"==typeof n?DW(e,t,n(t,e)):n}function PW(e,t,...n){const i=n.reduce(((e,t)=>{if(!t)return OW(e);const n=t,{$reset:i}=n,r=j(n,["$reset"]);return OW(i?r:Object.assign(e,r))}),{});return Object.keys(e.hook.classes.dispatch({property:t,classes:i}).classes).filter((e=>i[e])).join(" ")||null}function OW(e){const t="$remove:";let n=!1;const i=Object.keys(e).filter((i=>(e[i]&&i.startsWith(t)&&(n=!0),e[i])));if(i.length>1&&n){i.filter((e=>e.startsWith(t))).map((t=>{const n=t.substring(8);e[n]=!1,e[t]=!1}))}return e}function MW(e,t,n){const i=hz(e);i?i.setErrors(t,n):Hq(651,e)}function RW(e,t=!0){const n=hz(e);n?n.clearErrors(t):Hq(652,e)}H(Oz,"createName"),H(Mz,"createValue"),H(Rz,"input"),H(Nz,"validateInput"),H(Fz,"commit"),H(Bz,"partial"),H(Hz,"hydrate"),H(jz,"syncListNodes"),H(Uz,"disturb"),H(Vz,"calm"),H(qz,"destroy"),H(zz,"define"),H(Wz,"addProps"),H(Gz,"toPropsObj"),H(Kz,"mergeProps$1"),H(Yz,"addChild"),H(Zz,"setParent"),H(Xz,"removeChild"),H(Qz,"eachChild"),H(Jz,"walkTree"),H(eW,"resetConfig"),H(tW,"use"),H(nW,"setIndex"),H(iW,"getIndex"),H(rW,"getContext"),H(aW,"getName$2"),H(sW,"getAddress"),H(oW,"getNode2"),H(lW,"select$1"),H(uW,"find"),H(cW,"bfs"),H(dW,"getRoot"),H(pW,"createConfig2"),H(hW,"text$1"),H(fW,"submit"),H(mW,"resetValue"),H(gW,"setErrors"),H(yW,"clearErrors"),H(vW,"createProps"),H(bW,"extend$2"),H(_W,"findDefinition"),H(wW,"createContext"),H(SW,"nodeInit"),H(CW,"createPlaceholder"),H(kW,"isPlaceholder"),H(xW,"createNode"),H(TW,"isDOM"),H(EW,"isComponent"),H(AW,"isConditional"),H(LW,"isSugar"),H(IW,"sugar"),H($W,"compile$1"),H(DW,"createClasses"),H(PW,"generateClassList"),H(OW,"handleNegativeClasses"),H(MW,"setErrors2"),H(RW,"clearErrors2");var NW="1.5.7",FW=new WeakSet;function BW(e,t){const n=t||Object.assign(new Map,{active:!1}),i=new Map,r=H((function(t){var i;n.active&&(n.has(e)||n.set(e,new Set),null==(i=n.get(e))||i.add(t))}),"addDependency"),a=H((function(e){return new Proxy(e,{get:(...e)=>("string"==typeof e[1]&&r(`prop:${e[1]}`),Reflect.get(...e))})}),"observeProps"),s=H((function(e){return new Proxy(e,{get:(...t)=>"value"===t[1]?t=>(r(`count:${t}`),e.value(t)):Reflect.get(...t)})}),"observeLedger"),o=H((function(e,t){return Tz(e)?BW(e,n):("value"===t&&r("commit"),"_value"===t&&r("input"),"props"===t?a(e):"ledger"===t?s(e):("children"===t&&(r("child"),r("childRemoved")),e))}),"observe"),{proxy:l,revoke:u}=Proxy.revocable(e,{get(...t){switch(t[1]){case"_node":return e;case"deps":return n;case"watch":return(e,t,n)=>UW(l,e,t,n);case"observe":return()=>{const e=new Map(n);return n.clear(),n.active=!0,e};case"stopObserve":return()=>{const e=new Map(n);return n.active=!1,e};
100case"receipts":return i;case"kill":return()=>{jW(i),FW.add(t[2]),u()}}const r=Reflect.get(...t);return"function"==typeof r?(...e)=>{const n=r(...e);return o(n,t[1])}:o(r,t[1])}});return l}function HW(e,[t,n],i,r){t.forEach(((t,n)=>{t.forEach((t=>{var a,s;e.receipts.has(n)||e.receipts.set(n,{});const o=null!=(a=e.receipts.get(n))?a:{};o[t]=null!=(s=o[t])?s:[],o[t].push(n.on(t,i,r)),e.receipts.set(n,o)}))})),n.forEach(((t,n)=>{t.forEach((t=>{if(e.receipts.has(n)){const i=e.receipts.get(n);i&&iq(i,t)&&(i[t].map(n.off),delete i[t],e.receipts.set(n,i))}}))}))}function jW(e){e.forEach(((e,t)=>{for(const n in e)e[n].map(t.off)})),e.clear()}function UW(e,t,n,i){const r=H((r=>{const s=e.stopObserve();HW(e,VW(a,s),(()=>UW(e,t,n,i)),i),n&&n(r)}),"doAfterObservation"),a=new Map(e.deps);e.observe();const s=t(e);s instanceof Promise?s.then((e=>r(e))):r(s)}function VW(e,t){const n=new Map,i=new Map;return t.forEach(((t,i)=>{if(e.has(i)){const r=new Set,a=e.get(i);t.forEach((e=>!(null==a?void 0:a.has(e))&&r.add(e))),n.set(i,r)}else n.set(i,t)})),e.forEach(((e,n)=>{if(t.has(n)){const r=new Set,a=t.get(n);e.forEach((e=>!(null==a?void 0:a.has(e))&&r.add(e))),i.set(n,r)}else i.set(n,e)})),[n,i]}function qW(e){return FW.has(e)}H(BW,"createObserver"),H(HW,"applyListeners"),H(jW,"removeListeners"),H(UW,"watch$2"),H(VW,"diffDeps"),H(qW,"isKilled");var zW=H((function({value:e}){return["yes","on","1",1,!0,"true"].includes(e)}),"accepted2");zW.skipEmpty=!1;var WW=zW,GW=H((function({value:e},t=!1){const n=Date.parse(t||new Date),i=Date.parse(String(e));return!isNaN(i)&&i>n}),"date_after"),KW=H((function({value:e},t="default"){const n={default:new RegExp("^\\p{L}+$","u"),latin:/^[a-z]+$/i};return n[iq(n,t)?t:"default"].test(String(e))}),"alpha"),YW=H((function({value:e},t="default"){const n={default:/^[\p{L} ]+$/u,latin:/^[a-z ]+$/i};return n[iq(n,t)?t:"default"].test(String(e))}),"alpha_spaces"),ZW=H((function({value:e},t="default"){const n={default:/^[0-9\p{L}]+$/u,latin:/^[0-9a-z]+$/i};return n[iq(n,t)?t:"default"].test(String(e))}),"alphanumeric"),XW=H((function({value:e},t=!1){const n=Date.parse(t||new Date),i=Date.parse(String(e));return!isNaN(i)&&i<n}),"date_before"),QW=H((function({value:e},t,n){if(!isNaN(e)&&!isNaN(t)&&!isNaN(n)){const i=1*e;t=Number(t),n=Number(n);const[r,a]=t<=n?[t,n]:[n,t];return i>=1*r&&i<=1*a}return!1}),"between2"),JW=QW,eG=/(_confirm(?:ed)?)$/,tG=H((function(e,t,n="loose"){var i;t||(t=eG.test(e.name)?e.name.replace(eG,""):`${e.name}_confirm`);const r=null==(i=e.at(t))?void 0:i.value;return"strict"===n?e.value===r:e.value==r}),"confirm2"),nG=H((function({value:e},t="default"){const n={default:new RegExp("\\p{L}","u"),latin:/[a-z]/i};return n[iq(n,t)?t:"default"].test(String(e))}),"contains_alpha"),iG=H((function({value:e},t="default"){const n={default:/[\p{L} ]/u,latin:/[a-z ]/i};return n[iq(n,t)?t:"default"].test(String(e))}),"contains_alpha_spaces"),rG=H((function({value:e},t="default"){const n={default:/[0-9\p{L}]/u,latin:/[0-9a-z]/i};return n[iq(n,t)?t:"default"].test(String(e))}),"contains_alphanumeric"),aG=H((function({value:e},t="default"){const n={default:new RegExp("\\p{Ll}","u"),latin:/[a-z]/};return n[iq(n,t)?t:"default"].test(String(e))}),"contains_lowercase"),sG=H((function({value:e}){return/[0-9]/.test(String(e))}),"number"),oG=H((function({value:e}){return/[!-/:-@[-`{-~]/.test(String(e))}),"contains_symbol"),lG=H((function({value:e},t="default"){const n={default:new RegExp("\\p{Lu}","u"),latin:/[A-Z]/};return n[iq(n,t)?t:"default"].test(String(e))}),"contains_uppercase"),uG=H((function({value:e},t,n){t=t instanceof Date?t.getTime():Date.parse(t),n=n instanceof Date?n.getTime():Date.parse(n);const i=e instanceof Date?e.getTime():Date.parse(String(e));if(t&&!n)n=t,t=Date.now();else if(!t||!i)return!1;return i>=t&&i<=n}),"date_between2"),cG=H((function({value:e},t){return t&&"string"==typeof t?lq(t).test(String(e)):!isNaN(Date.parse(String(e)))}),"date"),dG=H((function({value:e}){return/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(String(e))}),"email2"),pG=H((function({value:e},...t){return"string"==typeof e&&t.length?t.some((t=>e.endsWith(t))):"string"==typeof e&&0===t.length}),"ends_with2"),hG=H((function({value:e},...t){return t.some((t=>"object"==typeof t?rq(t,e):t==e))}),"is2"),fG=H((function({value:e}
100,t=0,n=1/0){const i=(t=parseInt(t))<=(n=isNaN(parseInt(n))?1/0:parseInt(n))?t:n,r=n>=t?n:t;if("string"==typeof e||Array.isArray(e))return e.length>=i&&e.length<=r;if(e&&"object"==typeof e){const t=Object.keys(e).length;return t>=i&&t<=r}return!1}),"length2"),mG=H((function({value:e},t="default"){const n={default:new RegExp("^\\p{Ll}+$","u"),allow_non_alpha:/^[0-9\p{Ll}!-/:-@[-`{-~]+$/u,allow_numeric:/^[0-9\p{Ll}]+$/u,allow_numeric_dashes:/^[0-9\p{Ll}-]+$/u,latin:/^[a-z]+$/};return n[iq(n,t)?t:"default"].test(String(e))}),"lowercase"),gG=H((function({value:e},...t){return t.some((t=>("string"==typeof t&&"/"===t.substr(0,1)&&"/"===t.substr(-1)&&(t=new RegExp(t.substr(1,t.length-2))),t instanceof RegExp?t.test(String(e)):t===e)))}),"matches2"),yG=H((function({value:e},t=10){return Array.isArray(e)?e.length<=t:Number(e)<=Number(t)}),"max2"),vG=H((function({value:e},t=1){return Array.isArray(e)?e.length>=t:Number(e)>=Number(t)}),"min2"),bG=H((function({value:e},...t){return!t.some((t=>"object"==typeof t?rq(t,e):t===e))}),"not2"),_G=H((function({value:e}){return!isNaN(e)}),"number3"),wG=H((function(e,...t){if(!sq(e.value))return!0;return t.map((t=>{var n;return null==(n=e.at(t))?void 0:n.value})).some((e=>!sq(e)))}),"require_one");wG.skipEmpty=!1;var SG=wG,CG=H((function({value:e},t="default"){return"trim"===t&&"string"==typeof e?!sq(e.trim()):!sq(e)}),"required2");CG.skipEmpty=!1;var kG=CG,xG=H((function({value:e},...t){return"string"==typeof e&&t.length?t.some((t=>e.startsWith(t))):"string"==typeof e&&0===t.length}),"starts_with2"),TG=H((function({value:e}){return/^[!-/:-@[-`{-~]+$/.test(String(e))}),"symbol"),EG=H((function({value:e},t="default"){const n={default:new RegExp("^\\p{Lu}+$","u"),latin:/^[A-Z]+$/};return n[iq(n,t)?t:"default"].test(String(e))}),"uppercase"),AG=H((function({value:e},...t){try{const n=t.length?t:["http:","https:"],i=new URL(String(e));return n.includes(i.protocol)}catch(tvt){return!1}}),"url2");const LG=Object.freeze(Object.defineProperty({__proto__:null,accepted:WW,alpha:KW,alpha_spaces:YW,alphanumeric:ZW,between:JW,confirm:tG,contains_alpha:nG,contains_alpha_spaces:iG,contains_alphanumeric:rG,contains_lowercase:aG,contains_numeric:sG,contains_symbol:oG,contains_uppercase:lG,date_after:GW,date_before:XW,date_between:uG,date_format:cG,email:dG,ends_with:pG,is:hG,length:fG,lowercase:mG,matches:gG,max:yG,min:vG,not:bG,number:_G,require_one:SG,required:kG,starts_with:xG,symbol:TG,uppercase:EG,url:AG},Symbol.toStringTag,{value:"Module"}));var IG=Uq({type:"state",blocking:!0,visible:!1,value:!0,key:"validating"});function $G(e={}){return H((function(t){let n=Cq(t.props.validationRules||{}),i=F(F({},e),n),r=BW(t);const a={input:tq(),rerun:null,isPassing:!0};let s=Cq(t.props.validation);function o(o,l){var u;rq(Object.keys(n||{}),Object.keys(l||{}))&&rq(s,o)||(n=Cq(l),s=Cq(o),i=F(F({},e),n),jW(r.receipts),null==(u=t.props.parsedRules)||u.forEach((e=>{var t;e.messageObserver=null==(t=e.messageObserver)?void 0:t.kill()})),t.store.filter((()=>!1),"validation"),t.props.parsedRules=GG(o,i),r.kill(),r=BW(t),DG(r,t.props.parsedRules,a))}t.on("prop:validation",(({payload:e})=>o(e,n))),t.on("prop:validationRules",(({payload:e})=>o(s,e))),H(o,"reboot"),t.props.parsedRules=GG(s,i),DG(r,t.props.parsedRules,a)}),"validationPlugin")}function DG(e,t,n){qW(e)||(n.input=tq(),n.isPassing=!0,e.store.filter((e=>!e.meta.removeImmediately),"validation"),t.forEach((e=>e.debounce&&clearTimeout(e.timer))),t.length&&(e.store.set(IG),PG(0,t,e,n,!1,(()=>{e.store.remove(IG.key)}))))}function PG(e,t,n,i,r,a){const s=t[e];if(!s)return a();const o=i.input;function l(l,u){i.isPassing=i.isPassing&&!!u,s.queued=!1;const c=n.stopObserve();HW(n,VW(s.deps,c),H((function(){try{n.store.set(IG)}catch(tvt){}s.queued=!0,i.rerun&&clearTimeout(i.rerun),i.rerun=setTimeout(DG,0,n,t,i)}),"revalidate"),"unshift"),s.deps=c,i.input===o&&(s.state=u,!1===u?RG(n,s,r||l):MG(n,s),t.length>e+1?PG(e+1,t,n,i,r||l,a):a())}s.state=null,H(l,"next"),sq(n.value)&&s.skipEmpty||!i.isPassing&&!s.force?sq(n.value)&&s.skipEmpty&&i.isPassing?(n.observe(),n.value,l(!1,i.isPassing)):l(!1,null):s.queued?OG(s,n,(e=>{e instanceof Promise?e.then((e=>l(!0,e))):l(!1,e)})):PG(e+1,t,n,i,r,a)}function OG(e,t,n){e.debounce?e.timer=setTimeout((()=>{t.observe(),n(e.rule(t,...e.args))}),e.debounce):(t.observe(),n(e.rule(t,...e.args)))}function MG(e,t){const n=`rule_${t.name}`;
100t.messageObserver&&(t.messageObserver=t.messageObserver.kill()),iq(e.store,n)&&e.store.remove(n)}function RG(e,t,n){qW(e)||(t.messageObserver||(t.messageObserver=BW(e._node)),t.messageObserver.watch((e=>FG(e,t)),(i=>{const r=NG(e,t,i),a=Uq({blocking:t.blocking,key:`rule_${t.name}`,meta:{messageKey:t.name,removeImmediately:n,localize:!r,i18nArgs:i},type:"validation",value:r||"This field is not valid."});e.store.set(a)})))}function NG(e,t,n){const i=e.props.validationMessages&&iq(e.props.validationMessages,t.name)?e.props.validationMessages[t.name]:void 0;return"function"==typeof i?i(...n):i}function FG(e,t){return[{node:e,name:BG(e),args:t.args}]}function BG(e){return"function"==typeof e.props.validationLabel?e.props.validationLabel(e):e.props.validationLabel||e.props.label||e.props.name||String(e.name)}H($G,"createValidationPlugin"),H(DG,"validate"),H(PG,"run"),H(OG,"runRule"),H(MG,"removeMessage"),H(RG,"createFailedMessage"),H(NG,"createCustomMessage"),H(FG,"createI18nArgs"),H(BG,"createMessageName");var HG="(?:[\\*+?()0-9]+)",jG="[a-zA-Z][a-zA-Z0-9_]+",UG=new RegExp(`^(${HG}?${jG})(?:\\:(.*)+)?$`,"i"),VG=new RegExp(`^(${HG})(${jG})$`,"i"),qG=/([\*+?]+)?(\(\d+\))([\*+?]+)?/,zG=/\(\d+\)/,WG={blocking:!0,debounce:0,force:!1,skipEmpty:!0,name:""};function GG(e,t){if(!e)return[];return("string"==typeof e?KG(e):Sq(e)).reduce(((e,n)=>{let i=n.shift();const r={};if("string"==typeof i){const[e,n]=ZG(i);iq(t,e)&&(i=t[e],Object.assign(r,n))}return"function"==typeof i&&e.push(F(F({rule:i,args:n,timer:0,state:null,queued:!0,deps:new Map},WG),XG(r,i))),e}),[])}function KG(e){return e.split("|").reduce(((e,t)=>{const n=YG(t);return n&&e.push(n),e}),[])}function YG(e){const t=e.trim();if(t){const e=t.match(UG);if(e&&"string"==typeof e[1]){return[e[1].trim(),...e[2]&&"string"==typeof e[2]?e[2].split(",").map((e=>e.trim())):[]]}}return!1}function ZG(e){const t=e.match(VG);if(!t)return[e,{name:e}];const n={"*":{force:!0},"+":{skipEmpty:!1},"?":{blocking:!1}},[,i,r]=t,a=zG.test(i)?i.match(qG)||[]:[,i];return[r,[a[1],a[2],a[3]].reduce(((e,t)=>t?(zG.test(t)?e.debounce=parseInt(t.substr(1,t.length-1)):t.split("").forEach((t=>iq(n,t)&&Object.assign(e,n[t]))),e):e),{name:r})]}function XG(e,t){return e.name||(e.name=t.ruleName||t.name),["skipEmpty","force","debounce","blocking"].reduce(((e,n)=>(iq(t,n)&&!iq(e,n)&&Object.assign(e,{[n]:t[n]}),e)),e)}function QG(e){return e[0].toUpperCase()+e.substr(1)}function JG(e,t="or"){return e.reduce(((n,i,r)=>(n+=i,r<=e.length-2&&e.length>2&&(n+=", "),r===e.length-2&&(n+=`${2===e.length?" ":""}${t} `),n)),"")}function eK(e){const t="string"==typeof e?new Date(Date.parse(e)):e;return t instanceof Date?new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeZone:"UTC"}).format(t):"(unknown)"}function tK(e,t){return Number(e)>=Number(t)?[t,e]:[e,t]}H(GG,"parseRules"),H(KG,"extractRules"),H(YG,"parseRule"),H(ZG,"parseHints"),H(XG,"fnHints"),H(QG,"sentence"),H(JG,"list$1"),H(eK,"date$1"),H(tK,"order");var nK={accepted:({name:e})=>`Please accept the ${e}.`,date_after:({name:e,args:t})=>Array.isArray(t)&&t.length?`${QG(e)} must be after ${eK(t[0])}.`:`${QG(e)} must be in the future.`,alpha:({name:e})=>`${QG(e)} can only contain alphabetical characters.`,alphanumeric:({name:e})=>`${QG(e)} can only contain letters and numbers.`,alpha_spaces:({name:e})=>`${QG(e)} can only contain letters and spaces.`,contains_alpha:({name:e})=>`${QG(e)} must contain alphabetical characters.`,contains_alphanumeric:({name:e})=>`${QG(e)} must contain letters or numbers.`,contains_alpha_spaces:({name:e})=>`${QG(e)} must contain letters or spaces.`,contains_symbol:({name:e})=>`${QG(e)} must contain a symbol.`,contains_uppercase:({name:e})=>`${QG(e)} must contain an uppercase letter.`,contains_lowercase:({name:e})=>`${QG(e)} must contain a lowercase letter.`,contains_numeric:({name:e})=>`${QG(e)} must contain numbers.`,symbol:({name:e})=>`${QG(e)} must be a symbol.`,uppercase:({name:e})=>`${QG(e)} can only contain uppercase letters.`,lowercase({name:e,args:t}){let n="";return Array.isArray(t)&&t.length&&("allow_non_alpha"===t[0]&&(n=", numbers and symbols"),"allow_numeric"===t[0]&&(n=" and numbers"),"allow_numeric_dashes"===t[0]&&(n=", numbers and dashes")),`${QG(e)} can only contain lowercase letters${n}.`},date_before:({name:e,args:t})=>Array.isArray(t)&&t.length?`${QG(e)} must be before ${eK(t[0])}.`:`${QG(e)} must be in the past.`,between({name:e,args:t}){if(isNaN(t[0])||isNaN(t[1]))return"This field was configured incorrectly and canât be submitted.";const[n,i]=tK(t[0],t[1]);return`${QG(e)} must be between ${n} and ${i}.`},confirm:({name:e})=>`${QG(e)} does not match.`,date_format:({name:e,args:t})=>Array.isArray(t)&&t.length?`${QG(e)} is not a valid date, please use the format ${t[0]}`:"This field was configured incorrectly and canât be submitted",date_between:({name:e,args:t})=>`${QG(e)} must be between ${eK(t[0])} and ${eK(t[1])}`,email:"Please enter a valid email address.",ends_with:({name:e,args:t})=>`${QG(e)} doesnât end with ${JG(t)}.`,is:({name:e})=>`${QG(e)} is not an allowed value.`,length({name:e,args:[t=0,n=1/0]}){const i=Number(t)<=Number(n)?t:n,r=Number(n)>=Number(t)?n:t;return 1==i&&r===1/0?`${QG(e)} must be at least one character.`:0==i&&r?`${QG(e)} must be less than or equal to ${r} characters.`:i===r?`${QG(e)} should be ${r} characters long.`:i&&r===1/0?`${QG(e)} must be greater than or equal to ${i} characters.`:`${QG(e)} must be between ${i} and ${r} characters.`},matches:({name:e})=>`${QG(e)} is not an allowed value.`,max:({name:e,node:{value:t},args:n})=>Array.isArray(t)?`Cannot have more than ${n[0]} ${e}.`:`${QG(e)} must be no more than ${n[0]}.`,mime:({name:e,args:t})=>t[0]?`${QG(e)} must be of the type: ${t[0]}`:"No file formats allowed.",min:({name:e,node:{value:t},args:n})=>Array.isArray(t)?`Cannot have fewer than ${n[0]} ${e}.`:`${QG(e)} must be at least ${n[0]}.`,not:({name:e,node:{value:t}})=>`â${t}â is not an allowed ${e}.`,number:({name:e})=>`${QG(e)} must be a number.`,require_one:H((({name:e,node:t,args:n})=>{const i=n.map((e=>{const n=t.at(e);return!!n&&BG(n)})).filter((e=>!!e));return i.unshift(e),`${i.join(" or ")} is required.`}),"require_one"),required:({name:e})=>`${QG(e)} is required.`,starts_with:({name:e,args:t})=>`${QG(e)} doesnât start with ${JG(t)}.`,url:()=>"Please enter a valid URL.",invalidDate:"The selected date is invali
100d."},iK={ui:{add:"Add",remove:"Remove",removeAll:"Remove all",incomplete:"Sorry, not all fields are filled out correctly.",submit:"Submit",noFiles:"No file chosen",moveUp:"Move up",moveDown:"Move down",isLoading:"Loading...",loadMore:"Load more",next:"Next",prev:"Previous",addAllValues:"Add all values",addSelectedValues:"Add selected values",removeAllValues:"Remove all values",removeSelectedValues:"Remove selected values",chooseDate:"Choose date",changeDate:"Change date",summaryHeader:"There were errors in your form.",close:"Close"},validation:nK},rK=new Set;function aK(e){return H((function(t){rK.add(t),t.on("destroying",(()=>rK.delete(t)));let n=sK(t.config.locale,e),i=n?e[n]:{};t.on("prop:locale",(({payload:r})=>{n=sK(r,e),i=n?e[n]:{},t.store.touch()})),t.on("prop:label",(()=>t.store.touch())),t.on("prop:validationLabel",(()=>t.store.touch())),t.hook.text(((e,t)=>{var n,r;const a=(null==(n=e.meta)?void 0:n.messageKey)||e.key;if(iq(i,e.type)&&iq(i[e.type],a)){const t=i[e.type][a];e.value="function"==typeof t?Array.isArray(null==(r=e.meta)?void 0:r.i18nArgs)?t(...e.meta.i18nArgs):t(e):t}return t(e)}))}),"i18nPlugin")}function sK(e,t){if(iq(t,e))return e;const[n]=e.split("-");if(iq(t,n))return n;for(const i in t)return i;return!1}function oK(...e){const t=e.reduce(((e,t)=>pq(e,t)),{}),n=H((()=>{}),"plugin");return n.library=function(e){const n=bq(e.props.type);iq(t,n)&&e.define(t[n])},n}H(aK,"createI18nPlugin"),H(sK,"parseLocale"),H(oK,"createLibraryPlugin");function lK(e){return e&&"object"==typeof e&&"group"in e&&Array.isArray(e.options)}function uK(e,t={count:1}){return Array.isArray(e)?e.map((e=>{if("string"==typeof e||"number"==typeof e)return{label:String(e),value:String(e)};if("object"==typeof e){if("group"in e)return e.options=uK(e.options||[],t),e;"value"in e&&"string"!=typeof e.value&&Object.assign(e,{value:"__mask_"+t.count++,__original:e.value})}return e})):Object.keys(e).map((t=>({label:e[t],value:t})))}function cK(e,t,n=!1){if(Array.isArray(e))for(const i of e)if("object"==typeof i||!i)if(lK(i)){const e=cK(i.options,t,!0);if(void 0!==e)return e}else if(t==i.value)return"__original"in i?i.__original:i.value;return n?void 0:t}function dK(e,t){return!(null===e&&void 0===t||void 0===e&&null===t)&&(e==t||!(!dq(e)||!dq(t))&&rq(e,t))}function pK(e){e.hook.prop(((t,n)=>{var i;return"options"===t.prop&&("function"==typeof t.value?(e.props.optionsLoader=t.value,t.value=[]):(null!=(i=e.props)._normalizeCounter||(i._normalizeCounter={count:1}),t.value=uK(t.value,e.props._normalizeCounter))),n(t)}))}function hK(e,t,n=!1){return(...i)=>{const r=H((n=>{const r=t&&"string"!=typeof t?t():{$el:t};return(TW(r)||EW(r))&&(r.meta||(r.meta={section:e}),i.length&&!r.children&&(r.children=[...i.map((e=>"function"==typeof e?e(n):e))]),TW(r)&&(r.attrs=F({class:`$classes.${e}`},r.attrs||{}))),{if:`$slots.${e}`,then:`$slots.${e}`,else:e in n?gK(r,n[e]):r}}),"extendable");return r._s=e,n?fK(r):r}}function fK(e){return t=>[e(t)]}function mK(e){return!(!e||"object"!=typeof e||!("$el"in e||"$cmp"in e||"$formkit"in e))}function gK(e,t={}){return"string"==typeof e?mK(t)||"string"==typeof t?t:e:Array.isArray(e)?mK(t)?t:e:pq(e,t)}H(lK,"isGroupOption"),H(uK,"normalizeOptions"),H(cK,"optionValue"),H(dK,"shouldSelect"),H(pK,"options"),H(hK,"createSection"),H(fK,"createRoot"),H(mK,"isSchemaObject"),H(gK,"extendSchema");var yK=hK("actions",(()=>({$el:"div",if:"$actions"}))),vK=hK("input",(()=>({$el:"input",bind:"$attrs",attrs:{type:"$type",name:"$node.props.altName || $node.name",disabled:"$option.attrs.disabled || $disabled",onInput:"$handlers.toggleChecked",checked:"$fns.eq($_value, $onValue)",onBlur:"$handlers.blur",value:"$: true",id:"$id","aria-describedby":{if:"$options.length",then:{if:"$option.help",then:'$: "help-" + $option.attrs.id',else:void 0},else:{if:"$help",then:'$: "help-" + $id',else:void 0}}}}))),bK=hK("optionHelp",(()=>({$el:"div",if:"$option.help",attrs:{id:'$: "help-" + $option.attrs.id'}}))),_K=hK("inner","span"),wK=hK("label","span"),SK=hK("option",(()=>({$el:"li",for:["option","$options"],attrs:{"data-disabled":"$option.attrs.disabled || $disabled || undefined"}}))),CK=hK("options","ul"),kK=hK("wrapper",(()=>({$el:"label",attrs:{"data-disabled":{if:"$options.length",then:void 0,else:"$disabled || undefined"},"data-checked":{if:"$options == undefined",then:"$fns.eq($_value, $onValue) || undefined",else:"$fns.isChecked($option.value) || undefined"}}}))),xK=hK("input",(()=>({$el:"button",bind:"$attrs",attrs:{type:"$type",disabled:"$disabled",name:"$node.name",id:"$id"}}))),TK=hK("default",null),EK=hK("decorator",(()=>({$el:"span",attrs:{"aria-hidden":"true"}}))),AK=hK("fieldset",(()=>({$el:"fieldset",attrs:{id:"$id","aria-describedby":{if:"$help",then:'$: "help-" + $id',else:void 0}}}))),LK=hK("input",(()=>({$el:"input",bind:"$attrs",attrs:{type:"file",disabled:"$disabled",name:"$node.name",onChange:"$handlers.files",onBlur:"$handlers.blur",id:"$id","aria-describedby":"$describedBy","aria-required":"$state.required || undefined"}}))),IK=hK("fileItem",(()=>({$el:"li",for:["file","$value"]}))),$K=hK("fileList",(()=>({$el:"ul",if:"$value.length",attrs:{"data-has-multiple":"$_hasMultipleFiles"}}))),DK=hK("fileName",(()=>({$el:"span",attrs:{class:"$classes.fileName"}}))),PK=hK("fileRemove",(()=>({$el:"button",attrs:{type:"button",onClick:"$handlers.resetFiles"}}))),OK=hK("form",(()=>({$el:"form",bind:"$attrs",attrs:{id:"$id",name:"$node.name",onSubmit:"$handlers.submit","data-loading":"$state.loading || undefined"}}))),MK=hK("wrapper",null,!0),RK=hK("help",(()=>({$el:"div",if:"$help",attrs:{id:'$: "help-" + $id'}}))),NK=H(((e,t)=>hK(`${e}Icon`,(()=>{const n=`_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;return{if:`$${e}Icon && $${n}`,$el:`${t||"span"}`,attrs:{class:`$classes.${e}Icon + " " + $classes.icon`,innerHTML:`$${n}
100`,onClick:`$handlers.iconClick(${e})`,for:{if:`${"label"===t}`,then:"$id"}}}}))()),"icon"),FK=hK("inner","div"),BK=hK("label",(()=>({$el:"label",if:"$label",attrs:{for:"$id"}}))),HK=hK("legend",(()=>({$el:"legend",if:"$label"}))),jK=hK("message",(()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}}))),UK=hK("messages",(()=>({$el:"ul",if:"$defaultMessagePlacement && $fns.length($messages)"}))),VK=hK("noFiles",(()=>({$el:"span",if:"$value.length == 0"}))),qK=hK("optGroup",(()=>({$el:"optgroup",bind:"$option.attrs",attrs:{label:"$option.group"}}))),zK=hK("option",(()=>({$el:"option",bind:"$option.attrs",attrs:{class:"$classes.option",value:"$option.value",selected:"$fns.isSelected($option)"}}))),WK=hK("options",(()=>({$el:null,if:"$options.length",for:["option","$option.options || $options"]}))),GK=hK("outer",(()=>({$el:"div",attrs:{key:"$id","data-family":"$family || undefined","data-type":"$type","data-multiple":'$attrs.multiple || ($type != "select" && $options != undefined) || undefined',"data-has-multiple":"$_hasMultipleFiles","data-disabled":'$: ($disabled !== "false" && $disabled) || undefined',"data-empty":"$state.empty || undefined","data-complete":"$state.complete || undefined","data-invalid":"$state.valid === false && $state.validationVisible || undefined","data-errors":"$state.errors || undefined","data-submitted":"$state.submitted || undefined","data-
100prefix-icon":"$_rawPrefixIcon !== undefined || undefined","data-suffix-icon":"$_rawSuffixIcon !== undefined || undefined","data-prefix-icon-click":"$onPrefixIconClick !== undefined || undefined","data-suffix-icon-click":"$onSuffixIconClick !== undefined || undefined"}}))),KK=hK("prefix",null),YK=hK("input",(()=>({$el:"select",bind:"$attrs",attrs:{id:"$id","data-placeholder":"$fns.showPlaceholder($_value, $placeholder)",disabled:"$disabled",class:"$classes.input",name:"$node.name",onChange:"$handlers.onChange",onInput:"$handlers.selectInput",onBlur:"$handlers.blur","aria-describedby":"$describedBy","aria-required":"$state.required || undefined"}}))),ZK=hK("submit",(()=>({$cmp:"FormKit",bind:"$submitAttrs",props:{type:"submit",label:"$submitLabel"}}))),XK=hK("suffix",null),QK=hK("input",(()=>({$el:"input",bind:"$attrs",attrs:{type:"$type",disabled:"$disabled",name:"$node.name",onInput:"$handlers.DOMInput",onBlur:"$handlers.blur",value:"$_value",id:"$id","aria-describedby":"$describedBy","aria-required":"$state.required || undefined"}}))),JK=hK("input",(()=>({$el:"textarea",bind:"$attrs",attrs:{disabled:"$disabled",name:"$node.name",onInput:"$handlers.DOMInput",onBlur:"$handlers.blur",value:"$_value",id:"$id","aria-describedby":"$describedBy","aria-required":"$state.required || undefined"},children:"$initialValue"}))),eY=hK("wrapper","div");function tY(e){return function(t,n){return"options"===t.prop&&Array.isArray(t.value)&&(t.value=t.value.map((t=>{var n;return(null==(n=t.attrs)?void 0:n.id)?t:pq(t,{attrs:{id:`${e.props.id}-option-${Eq(String(t.value))}`}})})),"checkbox"!==e.props.type||Array.isArray(e.value)||(e.isCreated?e.input([],!1):e.on("created",(()=>{Array.isArray(e.value)||e.input([],!1)})))),n(t)}}function nY(e,t){const n=t.target;if(n instanceof HTMLInputElement){const t=Array.isArray(e.props.options)?cK(e.props.options,n.value):n.value;Array.isArray(e.props.options)&&e.props.options.length?Array.isArray(e._value)?e._value.some((e=>dK(t,e)))?e.input(e._value.filter((e=>!dK(t,e)))):e.input([...e._value,t]):e.input([t]):n.checked?e.input(e.props.onValue):e.input(e.props.offValue)}}function iY(e,t){var n,i;return null==(n=e.context)||n.value,null==(i=e.context)||i._value,!!Array.isArray(e._value)&&e._value.some((n=>dK(cK(e.props.options,t),n)))}function rY(e){e.on("created",(()=>{var t,n;(null==(t=e.context)?void 0:t.handlers)&&(e.context.handlers.toggleChecked=nY.bind(null,e)),(null==(n=e.context)?void 0:n.fns)&&(e.context.fns.isChecked=iY.bind(null,e)),iq(e.props,"onValue")||(e.props.onValue=!0),iq(e.props,"offValue")||(e.props.offValue=!1)})),e.hook.prop(tY(e))}function aY(e,t){return n=>{void 0===n.props[`${e}Icon`]&&(n.props[`${e}Icon`]=t.startsWith("<svg")?t:`default:${t}`)}}function sY(e){e.on("created",(()=>{"disabled"in e.props&&(e.props.disabled=xq(e.props.disabled),e.config.disabled=xq(e.props.disabled))})),e.hook.prop((({prop:e,value:t},n)=>n({prop:e,value:t="disabled"===e?xq(t):t}))),e.on("prop:disabled",(({payload:t})=>{e.config.disabled=xq(t)}))}function oY(e,t){return n=>{n.store.set(Uq({key:e,type:"ui",value:t||e,meta:{localize:!0,i18nArgs:[n]}}))}}H(tY,"normalizeBoxes"),H(nY,"toggleChecked"),H(iY,"isChecked"),H(rY,"checkboxes"),H(aY,"defaultIcon"),H(sY,"disables"),H(oY,"localize");var lY="undefined"!=typeof window;function uY(e){e.target instanceof HTMLElement&&e.target.hasAttribute("data-file-hover")&&e.target.removeAttribute("data-file-hover")}function cY(e,t){t.target instanceof HTMLInputElement?"dragover"===e&&t.target.setAttribute("data-file-hover","true"):t.preventDefault(),"drop"===e&&uY(t)}function dY(e){oY("noFiles","Select file")(e),oY("removeAll","Remove all")(e),oY("remove")(e),e.addProps(["_hasMultipleFiles"]),lY&&(window._FormKit_File_Drop||(window.addEventListener("dragover",cY.bind(null,"dragover")),window.addEventListener("drop",cY.bind(null,"drop")),window.addEventListener("dragleave",uY),window._FormKit_File_Drop=!0)),e.hook.input(((e,t)=>t(Array.isArray(e)?e:[]))),e.on("input",(({payload:t})=>{e.props._hasMultipleFiles=!!(Array.isArray(t)&&t.length>1)||void 0})),e.on("reset",(()=>{if(e.props.id&&lY){const t=document.getElementById(e.props.id);t&&(t.value="")}})),e.on("created",(()=>{Array.isArray(e.value)||e.input([],!1),e.context&&(e.context.handlers.resetFiles=t=>{if(t.preventDefault(),e.input([]),e.props.id&&lY){const t=document.getElementById(e.props.id);t&&(t.value=""),null==t||t.focus()}},e.context.handlers.files=t=>{var n,i;const r=[];if(t.target instanceof HTMLInputElement&&t.target.files){for(let e=0;e<t.target.files.length;e++){let n;(n=t.target.files.item(e))&&r.push({name:n.name,file:n})}e.input(r)}e.context&&(e.context.files=r),"function"==typeof(null==(n=e.props.attrs)?void 0:n.onChange)&&(null==(i=e.props.attrs)||i.onChange(t))})}))}H(uY,"removeHover"),H(cY,"preventStrayDrop"),H(dY,"files");var pY=Uq({key:"loading",value:!0,visible:!1});function hY(e,t){return V(this,null,(function*(){const n=Math.random();if(e.props._submitNonce=n,t.preventDefault(),yield e.settled,e.ledger.value("validating")&&(e.store.set(pY),yield e.ledger.settled("validating"),e.store.remove("loading"),e.props._submitNonce!==n))return;const i=H((e=>e.store.set(Uq({key:"submitted",value:!0,visible:!1}))),"setSubmitted");if(e.walk(i),i(e),e.emit("submit-raw"),"function"==typeof e.props.onSubmitRaw&&e.props.onSubmitRaw(t,e),e.ledger.value("blocking"))"function"==typeof e.props.onSubmitInvalid&&e.props.onSubmitInvalid(e),!1!==e.props.incompleteMessage&&fY(e);else if("function"==typeof e.props.onSubmit){const t=e.props.onSubmit(e.hook.submit.dispatch(Sq(e.value)),e);if(t instanceof Promise){const n=void 0===e.props.disabled&&"live"!==e.props.submitBehavior;n&&(e.props.disabled=!0),e.store.set(pY),yield t,n&&(e.props.disabled=!1),e.store.remove("loading")}}else t.target instanceof HTMLFormElement&&t.target.submit()}))}function fY(e){e.store.set(Uq({blocking:!1,key:"incomplete",meta:{localize:void 0===e.props.incompleteMessage,i18nArgs:[{node:e}],showAsMessage:!0},type:"ui",value:e.props.incompleteMessage||"Form incomplete."}))}function mY(e){var t;e.props.isForm=!0,e.ledger.count("validating",(e=>"validating"===e.key)),null!=(t=e.props).submitAttrs||(t.submitAttrs={disabled:e.props.disabled}),e.on("prop:disabled",(({payload:t})=>{e.props.submitAttrs=B(F({},e.props.submitAttrs),{disabled:t})})),e.on("created",(()=>{var t;(null==(t=e.context)?void 0:t.handlers)&&(e.context.handlers.submit=hY.bind(null,e)),iq(e.props,"actions")||(e.props.actions=!0)})),e.on("prop:incompleteMessage",(()=>{e.store.incomplete&&fY(e)}
100)),e.on("settled:blocking",(()=>e.store.remove("incomplete")))}function gY(e){void 0===e.props.ignore&&(e.props.ignore=!0,e.parent=null)}function yY(e){e.on("created",(()=>{e.context&&(e.context.initialValue=e.value||"")}))}function vY(e){if(void 0===e.props.number)return;const t=["number","range","hidden"].includes(e.props.type);e.hook.input(((n,i)=>{if(""===n)return i(void 0);const r="integer"===e.props.number?parseInt(n):parseFloat(n);return Number.isFinite(r)?i(r):i(t?void 0:n)}))}function bY(e,t){t.target instanceof HTMLInputElement&&e.input(cK(e.props.options,t.target.value))}function _Y(e,t){var n,i;return null==(n=e.context)||n.value,null==(i=e.context)||i._value,dK(cK(e.props.options,t),e._value)}function wY(e){e.on("created",(()=>{var t,n;Array.isArray(e.props.options)||Hq(350,{node:e,inputType:"radio"}),(null==(t=e.context)?void 0:t.handlers)&&(e.context.handlers.toggleChecked=bY.bind(null,e)),(null==(n=e.context)?void 0:n.fns)&&(e.context.fns.isChecked=_Y.bind(null,e))})),e.hook.prop(tY(e))}H(hY,"handleSubmit"),H(fY,"setIncompleteMessage"),H(mY,"form"),H(gY,"ignore"),H(yY,"initialValue"),H(vY,"casts"),H(bY,"toggleChecked2"),H(_Y,"isChecked2"),H(wY,"radios");var SY=0;function CY(e){"group"!==e.type&&"list"!==e.type||e.plugins.add(kY)}function kY(e){"radio"===e.props.type&&(e.addProps(["altName"]),e.props.altName=`${e.name}_${SY++}`)}function xY(e,t){if(lK(t))return!1;e.context&&e.context.value;const n="__original"in t?t.__original:t.value;return Array.isArray(e._value)?e._value.some((e=>dK(e,n))):!(void 0!==e._value&&(null!==e._value||TY(e.props.options,null))||!t.attrs||!t.attrs["data-is-placeholder"])||dK(n,e._value)}function TY(e,t){return e.some((e=>lK(e)?TY(e.options,t):("__original"in e?e.__original:e.value)===t))}function EY(e,t){return V(this,null,(function*(){var n;"function"==typeof(null==(n=e.props.attrs)?void 0:n.onChange)&&(yield new Promise((e=>setTimeout(e,0))),yield e.settled,e.props.attrs.onChange(t))}))}function AY(e,t){const n=t.target,i=n.hasAttribute("multiple")?Array.from(n.selectedOptions).map((t=>cK(e.props.options,t.value))):cK(e.props.options,n.value);e.input(i)}function LY(e,t){return e.some((e=>e.attrs&&e.attrs["data-is-placeholder"]))?e:[{label:t,value:"",attrs:{hidden:!0,disabled:!0,"data-is-placeholder":"true"}},...e]}function IY(e){const t=e.length>0?e[0]:void 0;if(t)return lK(t)?IY(t.options):"__original"in t?t.__original:t.value}function $Y(e){e.on("created",(()=>{var t,n,i;const r=xq(null==(t=e.props.attrs)?void 0:t.multiple);!r&&e.props.placeholder&&Array.isArray(e.props.options)&&(e.hook.prop((({prop:t,value:n},i)=>("options"===t&&(n=LY(n,e.props.placeholder)),i({prop:t,value:n})))),e.props.options=LY(e.props.options,e.props.placeholder)),r?void 0===e.value&&e.input([],!1):e.context&&!e.context.options&&(e.props.attrs=Object.assign({},e.props.attrs,{value:e._value}),e.on("input",(({payload:t})=>{e.props.attrs=Object.assign({},e.props.attrs,{value:t})}))),(null==(n=e.context)?void 0:n.handlers)&&(e.context.handlers.selectInput=AY.bind(null,e),e.context.handlers.onChange=EY.bind(null,e)),(null==(i=e.context)?void 0:i.fns)&&(e.context.fns.isSelected=xY.bind(null,e),e.context.fns.showPlaceholder=(t,n)=>{if(!Array.isArray(e.props.options))return!1;const i=e.props.options.some((e=>{if(e.attrs&&"data-is-placeholder"in e.attrs)return!1;const n="__original"in e?e.__original:e.value;return rq(t,n)}));return!(!n||i)||void 0})})),e.hook.input(((t,n)=>{var i,r,a;return!e.props.placeholder&&void 0===t&&Array.isArray(null==(i=e.props)?void 0:i.options)&&e.props.options.length&&!xq(null==(a=null==(r=e.props)?void 0:r.attrs)?void 0:a.multiple)&&(t=IY(e.props.options)),n(t)}))}function DY(e){return!!(AW(e)&&e.if&&e.if.startsWith("$slots.")&&"string"==typeof e.then&&e.then.startsWith("$slots.")&&"else"in e)}function PY(e,t={}){const n=GK(eY(BK("$label"),FK(NK("prefix"),KK(),e(),XK(),NK("suffix"))),RK("$help"),UK(jK("$message.value")));return(e={})=>n(pq(t,e))}function OY(e,t,n){const i=H((i=>{const r=t(i);if(n||mK(r)&&"if"in r||DY(r)){const t={if:e,then:r};return n&&(t.else=n(i)),t}return DY(r)?Object.assign(r.else,{if:e}):mK(r)&&Object.assign(r,{if:e}),r}),"extendable");return i._s=tq(),i}function MY(e,t){const n=H((n=>{const i=e({});return DY(i)?(Array.isArray(i.else)||(i.else=gK(gK(i.else,t),e._s?n[e._s]:{})),i):gK(gK(i,t),e._s?n[e._s]:{})}),"extendable");return n._s=e._s,n}H(CY,"renamesRadios"),H(kY,"renamesRadiosPlugin"),H(xY,"isSelected"),H(TY,"containsValue"),H(EY,"deferChange"),H(AY,"selectInput2"),H(LY,"applyPlaceholder"),H(IY,"firstValue"),H($Y,"select"),H(DY,"isSlotCondition"),H(PY,"useSchema"),H(OY,"$if"),H(MY,"$extend");var RY,NY={schema:GK(UK(jK("$message.value")),eY(xK(NK("prefix"),KK(),TK("$label || $ui.submit.value"),XK(),NK("suffix"))),RK("$help")),type:"input",family:"button",props:[],features:[oY("submit"),gY],schemaMemoKey:"h6st4epl3j8"},FY={schema:GK(OY("$options == undefined",kK(_K(KK(),vK(),EK(NK("decorator")),XK()),MY(wK("$label"),{if:"$label"})),AK(HK("$label"),RK("$help"),CK(SK(kK(_K(KK(),MY(vK(),{bind:"$option.attrs",attrs:{id:"$option.attrs.id",value:"$option.value",checked:"$fns.isChecked($option.value)"}}),EK(NK("decorator")),XK()),MY(wK("$option.label"),{if:"$option.label"})),bK("$option.help"))))),OY("$options == undefined && $help",RK("$help")),UK(jK("$message.value"))),type:"input",family:"box",props:["options","onValue","offValue","optionsLoader"],features:[pK,rY,aY("decorator","checkboxDecorator")],schemaMemoKey:"qje02tb3gu8"},BY={schema:GK(eY(BK("$label"),FK(NK("prefix","label"),KK(),LK(),$K(IK(NK("fileItem"),DK("$file.name"),OY("$value.length === 1",PK(NK("fileRemove"),'$ui.remove.value + " " + $file.name')))),OY("$value.length > 1",PK("$ui.removeAll.value")),VK(NK("noFiles"),"$ui.noFiles.value"),XK(),NK("suffix"))),RK("$help"),UK(jK("$message.value"))),type:"input",family:"text",props:[],features:[dY,aY("fileItem","fileItem"),aY("fileRemove","fileRemove"),aY("noFiles","noFiles")],schemaMemoKey:"9kqc4852fv8"},HY={schema:OK("$slots.default",UK(jK("$message.value")),yK(ZK())),type:"group",props:["actions","submit","submitLabel","submitAttrs","submitBehavior","incompleteMessage"],features:[mY,sY],schemaMemoKey:"5bg016redjo"},jY={schema:MK("$slots.default"),type:"group",props:[],features:[sY,CY]},UY={schema:QK(),type:"input",props:[],features:[vY]},VY={schema:MK("$slots.default"),type:"list",props:["sync","dynamic"],features:[sY,CY]},qY={schema:MK(),type:"input",props:[],features:[]},zY={schema:GK(OY("$options == undefined",kK(_K(KK(),vK(),EK(NK("decorator")),XK()),MY(wK("$label"),{if:"$label"})),AK(HK("$label"),RK("$help"),CK(SK(kK(_K(KK(),MY(vK(),{bind:"$option.attrs",attrs:{id:"$option.attrs.id",value:"$option.value",checked:"$fns.isChecked($option.value)"}}),EK(NK("decorator")),XK()),MY(wK("$option.label"),{if:"$option.label"})),bK("$option.help"))))),OY("$options == undefined && $help",RK("$help")),UK(jK("$message.value"))),type:"input",family:"box",props:["options","onValue","offValue","optionsLoader"],features:[pK,wY,aY("decorator","radioDecorator")],schemaMemoKey:"qje02tb3gu8"},WY={schema:GK(eY(BK("$label"),FK(NK("prefix"),KK(),YK(OY("$slots.default",(()=>"$slots.default"),WK(OY("$option.group",qK(WK(zK("$option.label"))),zK("$option.label"))))),OY("$attrs.multiple !== undefined",(()=>""),NK("select")),XK(),NK("suffix"))),RK("$help"),UK(jK("$message.value"))),type:"input",props:["options","placeholder","optionsLoader"],features:[pK,$Y,aY("select","select")],schemaMemoKey:"cb119h43krg"},GY={schema:GK(eY(BK("$label"),FK(NK("prefix","label"),KK(),JK(),XK(),NK("suffix"))),RK("$help"),UK(jK("$message.value"))),type:"input",props:[],features:[yY],schemaMemoKey:"b1n0td79m9g"},KY={schema:GK(eY(BK("$label"),FK(NK("prefix","label"),KK(),QK(),XK(),NK("suffix"))),RK("$help"),UK(jK("$message.value"))),type:"input",family:"text",props:[],features:[vY],schemaMemoKey:"c3cc4kflsg"},YY={button:NY,submit:NY,checkbox:FY,file:BY,form:HY,group:jY,hidden:UY,list:VY,meta:qY,radio:zY,select:WY,textarea:GY,text:KY,color:KY,date:KY,datetimeLocal:KY,email:KY,month:KY,number:KY,password:KY,search:KY,tel:KY,time:KY,url:KY,week:KY,range:KY},ZY=void 0,XY=null,QY=!1,JY=!1,eZ=new Promise((e=>{RY=H((()=>{QY=!0,e()}),"themeDidLoad")})),tZ="undefined"!=typeof window&&"undefined"!=typeof fetch;ZY=tZ?getComputedStyle(document.documentElement):void 0;var nZ={},iZ={};function rZ(e,t,n,i){t&&Object.assign(nZ,t),tZ&&!JY&&(null==ZY?void 0:ZY.getPropertyValue("--formkit-theme"))?(RY(),JY=!0):e&&!JY&&tZ?aZ(e):!JY&&tZ&&RY();const r=H((function(e){var t,r;e.addProps(["iconLoader","iconLoaderUrl"]),e.props.iconHandler=sZ((null==(t=e.props)?void 0:t.iconLoader)?e.props.iconLoader:i,(null==(r=e.props)?void 0:r.iconLoaderUrl)?e.props.iconLoaderUrl:n),cZ(e,e.props.iconHandler),e.on("created",(()=>{var t;(null==(t=null==e?void 0:e.context)?void 0:t.handlers)&&(e.context.handlers.iconCl
100ick=t=>{const n=`on${t.charAt(0).toUpperCase()}${t.slice(1)}IconClick`,i=e.props[n];if(i&&"function"==typeof i)return t=>i(e,t)})}))}),"themePlugin2");return r.iconHandler=sZ(i,n),r}function aZ(e){if(e&&tZ&&"function"==typeof getComputedStyle&&(JY=!0,XY=document.getElementById("formkit-theme"),e&&tZ&&(!(null==ZY?void 0:ZY.getPropertyValue("--formkit-theme"))&&!XY||(null==XY?void 0:XY.getAttribute("data-theme"))&&(null==XY?void 0:XY.getAttribute("data-theme"))!==e))){const t=`https://cdn.jsdelivr.net/npm/@formkit/themes@${NW.startsWith("__")?"latest":NW}/dist/${e}/theme.css`,n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.id="formkit-theme",n.setAttribute("data-theme",e),n.onload=()=>{ZY=getComputedStyle(document.documentElement),RY()},document.head.appendChild(n),n.href=t,XY&&XY.remove()}}function sZ(e,t){return n=>{if("string"!=typeof n)return;if(n.startsWith("<svg"))return n;const i=n.startsWith("default:");let r;if((n=i?n.split(":")[1]:n)in nZ)return nZ[n];if(!iZ[n])if(r=oZ(n),r=tZ&&void 0===r?Promise.resolve(r):r,r instanceof Promise)iZ[n]=r.then((a=>a||"string"!=typeof n||i?a:r="function"==typeof e?e(n):uZ(n,t))).then((e=>("string"==typeof n&&(nZ[i?`default:${n}`:n]=e),e)));else if("string"==typeof r)return nZ[i?`default:${n}`:n]=r,r;return iZ[n]}}function oZ(e){if(tZ)return QY?lZ(e):eZ.then((()=>lZ(e)))}function lZ(e){const t=null==ZY?void 0:ZY.getPropertyValue(`--fk-icon-${e}`);if(t){const n=atob(t);if(n.startsWith("<svg"))return nZ[e]=n,n}}function uZ(e,t){const n=NW.startsWith("__")?"latest":NW,i="function"==typeof t?t(e):`https://cdn.jsdelivr.net/npm/@formkit/icons@${n}/dist/icons/${e}.svg`;if(tZ)return fetch(`${i}`).then((e=>V(this,null,(function*(){const t=yield e.text();if(t.startsWith("<svg"))return t})))).catch((e=>{console.error(e)}))}function cZ(e,t){const n=/^[a-zA-Z-]+(?:-icon|Icon)$/;Object.keys(e.props).filter((e=>n.test(e))).forEach((n=>dZ(e,t,n)))}function dZ(e,t,n){const i=t(e.props[n]),r=`_raw${n.charAt(0).toUpperCase()}${n.slice(1)}`,a=`on${n.charAt(0).toUpperCase()}${n.slice(1)}Click`;if(e.addProps([r,a]),e.on(`prop:${n}`,pZ),i instanceof Promise)return i.then((t=>{e.props[r]=t}));e.props[r]=i}function pZ(e){var t;const n=e.origin,i=e.payload,r=null==(t=null==n?void 0:n.props)?void 0:t.iconHandler,a=e.name.split(":")[1],s=`_raw${a.charAt(0).toUpperCase()}${a.slice(1)}`;if(r&&"function"==typeof r){const e=r(i);if(e instanceof Promise)return e.then((e=>{n.props[s]=e}));n.props[s]=e}}H(rZ,"createThemePlugin"),H(aZ,"loadTheme"),H(sZ,"createIconHandler"),H(oZ,"getIconFromStylesheet"),H(lZ,"loadStylesheetIcon"),H(uZ,"getRemoteIcon"),H(cZ,"loadIconPropIcons"),H(dZ,"loadPropIcon"),H(pZ,"reloadIcon");var hZ={100:({data:e})=>`Only groups, lists, and forms can have children (${e.name}).`,101:({data:e})=>`You cannot directly modify the store (${e.name}). See: https://formkit.com/advanced/core#message-store`,102:({data:[e,t]})=>`You cannot directly assign node.${t} (${e.name})`,103:({data:[e]})=>`Schema expressions cannot start with an operator (${e})`,104:({data:[e,t]})=>`Schema expressions cannot end with an operator (${e} in "${t}")`,105:({data:e})=>`Invalid schema expression: ${e}`,106:({data:e})=>`Cannot submit because (${e}) is not in a form.`,107:({data:[e,t]})=>`Cannot set ${e.name} to non object value: ${t}`,108:({data:[e,t]})=>`Cannot set ${e.name} to non array value: ${t}`,300:({data:[e]})=>`Cannot set behavior prop to overscroll (on ${e.name} input) when options prop is a function.`,600:({data:e})=>`Unknown input type${"string"==typeof e.props.type?' "'+e.props.type+'"':""} ("${e.name}")`,601:({data:e})=>`Input definition${"string"==typeof e.props.type?' "'+e.props.type+'"':""} is missing a schema or component property (${e.name}).`},fZ={150:({data:e})=>`Schema function "${e}()" is not a valid function.`,151:({data:e})=>`No form element with id: ${e}`,152:({data:e})=>`No input element with id: ${e}`,350:({data:{node:e,inputType:t}})=>`Invalid options prop for ${e.name} input (${t}). See https://formkit.com/inputs/${t}`,650:'Schema "$get()" must use the id of an input to access.',651:({data:e})=>`Cannot setErrors() on "${e}" because no such id exists.`,652:({data:e})=>`Cannot clearErrors() on "${e}" because no such id exists.`,800:({data:e})=>`${e} is deprecated.`},mZ=H(((e,t)=>{if(e.code in hZ){const t=hZ[e.code];e.message="function"==typeof t?t(e):t}return t(e)}),"decodeErrors"),gZ=!1;function yZ(){gZ||(Fq(mZ),Bq(_Z),gZ=!0)}H(yZ,"register");var vZ,bZ,_Z=H(((e,t)=>{if(e.code in fZ){const t=fZ[e.code];e.message="function"==typeof t?t(e):t}return t(e)}),"decodeWarnings"),wZ=Object.defineProperty,SZ=Object.getOwnPropertyNames,CZ=H(((e,t)=>H((function(){return e&&(t=(0,e[SZ(e)[0]])(e=0)),t}),"__init")),"__esm"),kZ=H(((e,t)=>{for(var n in t)wZ(e,n,{get:t[n],enumerable:!0})}),"__export"),xZ=CZ({"packages/vue/src/bindings.ts"(){vZ=H((function(e){e.ledger.count("blocking",(e=>e.blocking));const t=Tn(!e.ledger.value("blocking"));e.ledger.count("errors",(e=>"error"===e.type));const n=Tn(!!e.ledger.value("errors"));let i=!1;vi((()=>{i=!0}));const r=pn(e.store.reduce(((e,t)=>(t.visible&&(e[t.key]=t),e)),{})),a=Tn(e.props.validationVisibility||("checkbox"===e.props.type?"dirty":"blur"));e.on("prop:validationVisibility",(({payload:e})=>{a.value=e}));const s=Tn("live"===a.value),o=Tn(!1),l=H((e=>{o.value=(null!=e?e:[]).some((e=>"required"===e.name))}),"checkForRequired");l(e.props.parsedRules),e.on("prop:parsedRules",(({payload:e})=>l(e)));const u=Tn(e.children.map((e=>e.uid))),c=Co((()=>
100{if(!_.state)return!1;if(_.state.submitted)return!0;if(!s.value&&!_.state.settled)return!1;switch(a.value){case"live":return!0;case"blur":return _.state.blurred;case"dirty":return _.state.dirty;default:return!1}})),d=Co((()=>_&&p.value?t.value&&!n.value:_.state.dirty&&!sq(_.value))),p=Tn(Array.isArray(e.props.parsedRules)&&e.props.parsedRules.length>0);e.on("prop:parsedRules",(({payload:e})=>{p.value=Array.isArray(e)&&e.length>0}));const h=Co((()=>{const e={};for(const t in r){const n=r[t];("validation"!==n.type||c.value)&&(e[t]=n)}return e})),f=pn(e.store.reduce(((e,t)=>("ui"===t.type&&t.visible&&(e[t.key]=t),e)),{})),m=pn({}),g=new Proxy(m,{get(...t){const[n,i]=t;let r=Reflect.get(...t);if(!r&&"string"==typeof i&&!iq(n,i)&&!i.startsWith("__v")){BW(e).watch((e=>{const t="function"==typeof e.config.rootClasses?e.config.rootClasses(i,e):{},a=e.config.classes?DW(i,e,e.config.classes[i]):{},s=DW(i,e,e.props[`_${i}Class`]),o=DW(i,e,e.props[`${i}Class`]);r=PW(e,i,t,a,s,o),n[i]=null!=r?r:""}))}return r}});e.on("prop:rootClasses",(()=>{const e=Object.keys(m);for(const t of e)delete m[t]}));const y=Co((()=>{const t=[];_.help&&t.push(`help-${e.props.id}`);for(const n in h.value)t.push(`${e.props.id}-${n}`);return t.length?t.join(" "):void 0})),v=Tn(e.value),b=Tn(e.value),_=pn({_value:b,attrs:e.props.attrs,disabled:e.props.disabled,describedBy:y,fns:{length:H((e=>Object.keys(e).length),"length"),number:H((e=>Number(e)),"number"),string:H((e=>String(e)),"string"),json:H((e=>JSON.stringify(e)),"json"),eq:rq},handlers:{blur:H((t=>{e&&(e.store.set(Uq({key:"blurred",visible:!1,value:!0})),"function"==typeof e.props.attrs.onBlur&&e.props.attrs.onBlur(t))}),"blur"),touch:H((()=>{var t;const n="compare"===_.dirtyBehavior;if((null==(t=e.store.dirty)?void 0:t.value)&&!n)return;const i=!rq(e.props._init,e._value);(i||n)&&e.store.set(Uq({key:"dirty",visible:!1,value:i}))}),"touch"),DOMInput:H((t=>{e.input(t.target.value),e.emit("dom-input-event",t)}),"DOMInput")},help:e.props.help,id:e.props.id,items:u,label:e.props.label,messages:h,didMount:!1,node:Sn(e),options:e.props.options,defaultMessagePlacement:!0,slots:e.props.__slots,state:{blurred:!1,complete:d,dirty:!1,empty:sq(v),submitted:!1,settled:e.isSettled,valid:t,errors:n,rules:p,validationVisible:c,required:o},type:e.props.type,family:e.props.family,ui:f,value:v,classes:g});function w(t){(Array.isArray(t)?t:Object.keys(t)).forEach((t=>{t=bq(t),iq(_,t)||(_[t]=e.props[t]),e.on(`prop:${t}`,(({payload:e})=>{_[t]=e}))}))}e.on("created",(()=>{rq(_.value,e.value)||(b.value=e.value,v.value=e.value,In(v),In(b)),(()=>{V(this,null,(function*(){yield e.settled,e&&(e.props._init=Cq(e.value))}))})()})),e.on("mounted",(()=>{_.didMount=!0})),e.on("settled",(({payload:e})=>{_.state.settled=e})),H(w,"observeProps");function S(e){e.props&&w(e.props)}w(H((()=>{const t=/^[a-zA-Z-]+(?:-icon|Icon)$/,n=Object.keys(e.props).filter((e=>t.test(e)));return["__root","help","label","disabled","options","type","attrs","preserve","preserveErrors","id","dirtyBehavior"].concat(n)}),"rootProps")()),H(S,"definedAs"),e.props.definition&&S(e.props.definition),e.on("added-props",(({payload:e})=>w(e))),e.on("input",(({payload:t})=>{"input"===e.type||xn(t)||yn(t)?(b.value=t,In(b)):b.value=wq(t)})),e.on("commitRaw",(({payload:t})=>{"input"===e.type||xn(t)||yn(t)?(v.value=b.value=t,In(v)):v.value=b.value=wq(t),e.emit("modelUpdated")})),e.on("commit",(({payload:t})=>{var r;if((!_.state.dirty||"compare"===_.dirtyBehavior)&&e.isCreated&&i)if(null==(r=e.store.validating)?void 0:r.value){const t=e.on("message-removed",(({payload:n})=>{"validating"===n.key&&(_.handlers.touch(),e.off(t))}))}else _.handlers.touch();d&&"input"===e.type&&n.value&&!xq(e.props.preserveErrors)&&e.store.filter((e=>{var t;return!("error"===e.type&&!0===(null==(t=e.meta)?void 0:t.autoClear))})),"list"===e.type&&e.sync&&(u.value=e.children.map((e=>e.uid))),_.state.empty=sq(t)}));const C=H((e=>V(this,null,(function*(){"ui"===e.type&&e.visible&&!e.meta.showAsMessage?f[e.key]=e:e.visible?r[e.key]=e:"state"===e.type&&(_.state[e.key]=!!e.value)}))),"updateState");e.on("message-added",(e=>C(e.payload))),e.on("message-updated",(e=>C(e.payload))),e.on("message-removed",(({payload:e})=>{delete f[e.key],delete r[e.key],delete _.state[e.key]})),e.on("settled:blocking",(()=>{t.value=!0})),e.on("unsettled:blocking",(()=>{t.value=!1})),e.on("settled:errors",(()=>{n.value=!1})),e.on("unsettled:errors",(()=>{n.value=!0})),Bi(c,(e=>{e&&(s.value=!0)})),e.context=_,e.emit("context",e,!1),e.on("destroyed",(()=>{e.context=void 0,e=null}))}),"vueBindings2")}});kZ({},{defaultConfig:H((()=>bZ),"defaultConfig")});var TZ=CZ({"packages/vue/src/defaultConfig.ts"(){xZ(),bZ=H(((e={})=>{yZ();const t=e,{rules:n={},locales:i={},inputs:r={},messages:a={},locale:s,theme:o,iconLoaderUrl:l,iconLoader:u,icons:c={}}=t,d=j(t,["rules","locales","inputs","messages","locale","theme","iconLoaderUrl","iconLoader","icons"]),p=$G(F(F({},LG),n||{})),h=aK(pq(F({en:iK},i||{}),a)),f=oK(YY,r),m=rZ(o,c,l,u);return pq(F({plugins:[f,m,vZ,h,p]},s?{config:{locale:s}}:{}),d||{},!0)}),"defaultConfig")}}),EZ="undefined"==typeof window,AZ=new Map;function LZ(e,t){var n;EZ&&e&&(AZ.has(e)||AZ.set(e,new Set),null==(n=AZ.get(e))||n.add(t))}H(LZ,"onSSRComplete");var IZ,$Z="undefined"==typeof window,DZ={},PZ={},OZ=new WeakMap,MZ=/[a-zA-Z0-9\-][cC]lass$/;function RZ(e,t){const n=Tn(null);if("get"===e){const e={};return n.value=FZ.bind(null,e),n}const i=e.split(".");return Fi((()=>{n.value=NZ(xn(t)?t.value:t,i)})),n}function NZ(e,t){if(Array.isArray(e)){for(const n of e){const e=!1!==n&&NZ(n,t);if(void 0!==e)return e}return}let n,i=e;for(const r in t){const e=t[r];if("object"!=typeof i||null===i){n=void 0;break}const a=i[e];if(Number(r)===t.length-1&&void 0!==a){n="function"==typeof a?a.bind(i):a;break}i=a}return n}function FZ(e,t){if("string"!=typeof t)return Hq(650);if(t in e||(e[t]=Tn(void 0)),void 0===e[t].value){e[t].value=null;const n=hz(t);n&&(e[t].value=n.context),fz(t,(({payload:n})=>{e[t].value=Tz(n)?n.context:n}))}return e[t].value}function BZ(e,t,n){function i(e,t){return[d($W(t.if),{if:!0}),u(e,t.then),t.else?u(e,t.else):null]}function r(e,t){var n,i;const r=d($W(e.if));let s=H((()=>
100t),"b"),o=H((()=>t),"a");return o="object"==typeof e.then?a(e.then,void 0):"string"==typeof e.then&&(null==(n=e.then)?void 0:n.startsWith("$"))?d($W(e.then)):H((()=>e.then),"a"),iq(e,"else")&&(s="object"==typeof e.else?a(e.else):"string"==typeof e.else&&(null==(i=e.else)?void 0:i.startsWith("$"))?d($W(e.else)):H((()=>e.else),"b")),()=>r()?o():s()}function a(e,t,n={}){const i=new Set(Object.keys(e||{})),s=t?d($W(t)):()=>({}),o=[e=>{const t=s();for(const n in t)i.has(n)||(e[n]=t[n])}];if(e){if(AW(e)){return r(e,n)}for(let t in e){const n=e[t];let i;const s="string"==typeof n;t.startsWith("__raw__")?(t=t.substring(7),i=H((()=>n),"getValue2")):i=!(s&&n.startsWith("$")&&n.length>1)||n.startsWith("$reset")&&MZ.test(t)?"object"==typeof n&&AW(n)?r(n,void 0):"object"==typeof n&&dq(n)?a(n):H((()=>n),"getValue2"):d($W(n)),o.push((e=>{e[t]=i()}))}}return()=>{const t=Array.isArray(e)?[]:{};return o.forEach((e=>e(t))),t}}function s(e,t){let n=null,r=H((()=>null),"attrs"),s=!1,o=null,l=null,c=null,p=!1;const h=IW(t);if(TW(h)?(n=h.$el,r="text"!==h.$el?a(h.attrs,h.bind):()=>null):EW(h)?("string"==typeof h.$cmp?iq(e,h.$cmp)?n=e[h.$cmp]:(n=h.$cmp,p=!0):n=h.$cmp,r=a(h.props,h.bind)):AW(h)&&([s,o,l]=i(e,h)),!AW(h)&&"if"in h?s=d($W(h.if)):AW(h)||null!==n||(s=H((()=>!0),"condition")),"children"in h&&h.children)if("string"==typeof h.children)if(h.children.startsWith("$slots."))n="text"===n?"slot":n,o=d($W(h.children));else if(h.children.startsWith("$")&&h.children.length>1){const e=d($W(h.children));o=H((()=>String(e())),"children")}else o=H((()=>String(h.children)),"children");else if(Array.isArray(h.children))o=u(e,h.children);else{const[t,n,r]=i(e,h.children);o=H((e=>t&&t()?n&&n(e):r&&r(e)),"children")}if(EW(h))if(o){const e=o;o=H((t=>({default(n,i){var r,a,s,o;const l=IZ;i&&(IZ=i),n&&(null==(r=OZ.get(IZ))||r.unshift(n)),t&&(null==(a=OZ.get(IZ))||a.unshift(t));const u=e(t);return n&&(null==(s=OZ.get(IZ))||s.shift()),t&&(null==(o=OZ.get(IZ))||o.shift()),IZ=l,u}})),"children"),o.slot=!0}else o=H((()=>({})),"children");if("for"in h&&h.for){const e=3===h.for.length?h.for[2]:h.for[1];c=["string"==typeof e&&e.startsWith("$")?d($W(e)):()=>e,h.for[0],3===h.for.length?String(h.for[1]):null]}return[s,n,r,o,l,c,p]}function o(e,t){const n=e(t),i=IZ;return Object.keys(n).reduce(((e,t)=>{const r=n&&n[t];return e[t]=e=>r&&r(e,i)||null,e}),{})}function l(e,t){const[n,i,r,a,l,u,c]=s(e,t);let d=H((e=>{if(n&&null===i&&a)return n()?a(e):l&&l(e);if(i&&(!n||n())){if("text"===i&&a)return qs(String(a()));if("slot"===i&&a)return a(e);const t=c?Yr(i):i,n=(null==a?void 0:a.slot)?o(a,e):null;return ko(t,r(),n||(a?a(e):[]))}return"function"==typeof l?l(e):l}),"createNodes");if(u){const e=d,[t,n,i]=u;d=H((()=>{const r=t(),a=Number.isFinite(r)?Array(Number(r)).fill(0).map(((e,t)=>t)):r,s=[];if("object"!=typeof a)return null;const o=OZ.get(IZ)||[],l=Array.isArray(a);for(const t in a){if(l&&t in Array.prototype)continue;const r=Object.defineProperty(F(B(F({},o.reduce(((e,t)=>e.__idata?F(F({},e),t):t),{})),{[n]:a[t]}),null!==i?{[i]:l?Number(t):t}:{}),"__idata",{enumerable:!1,value:!0});o.unshift(r),s.push(e.bind(null,r)()),o.shift()}return s}),"createNodes")}return d}function u(e,t){if(Array.isArray(t)){const n=t.map(l.bind(null,e));return e=>n.map((t=>t(e)))}const n=l(e,t);return e=>n(e)}H(i,"parseCondition"),H(r,"parseConditionAttr"),H(a,"parseAttrs"),H(s,"parseNode"),H(o,"createSlots"),H(l,"createElement"),H(u,"createElements");const c=[];function d(e,t={}){const n=new WeakMap;return c.push(((i,r)=>{n.set(r,e.provide((e=>i(e,t))))})),()=>n.get(IZ)()}function p(i,r){null!=n||(n=qZ(t));const[a,s]=iq(DZ,n)?DZ[n]:[u(e,t),c];return $Z||(null!=PZ[n]||(PZ[n]=0),PZ[n]++,DZ[n]=[a,s]),s.forEach((e=>{e(i,r)})),()=>(IZ=r,a())}return H(d,"provider"),H(p,"createInstance"),p}function HZ(e,t){const n=OZ.get(IZ)||[];let i;return n.length&&(i=NZ(n,e.split("."))),void 0===i?t:i}function jZ(e,t){return new Proxy(e,{get(...e){let n;const i=e[1];if("string"==typeof i){const e=IZ;IZ=t,n=HZ(i,void 0),IZ=e}return void 0!==n?n:Reflect.get(...e)}})}function UZ(e,t,n){return e(((e,i={})=>e.reduce(((e,r)=>{if(r.startsWith("slots.")){const a=r.substring(6),s=H((()=>t.slots&&iq(t.slots,a)&&"function"==typeof t.slots[a]),"hasSlot");if(i.if)e[r]=s;else if(t.slots){const i=jZ(t,n);e[r]=()=>s()?t.slots[a](i):null}}else{const n=RZ(r,t);e[r]=()=>HZ(r,n.value)}return e}),{})),n)}
100function VZ(e,t,n){if(null!=t||(t=qZ(e)),PZ[t]--,0===PZ[t]){delete PZ[t];const[,e]=DZ[t];delete DZ[t],e.length=0}OZ.delete(n)}function qZ(e){return JSON.stringify(e,((e,t)=>"function"==typeof t?t.toString():t))}H(RZ,"getRef"),H(NZ,"getValue$1"),H(FZ,"get$2"),H(BZ,"parseSchema"),H(HZ,"useScope"),H(jZ,"slotData"),H(UZ,"createRenderFn"),H(VZ,"clean"),H(qZ,"toMemoKey");var zZ=vr({name:"FormKitSchema",props:{schema:{type:[Array,Object],required:!0},data:{type:Object,default:H((()=>({})),"default")},library:{type:Object,default:H((()=>({})),"default")},memoKey:{type:String,required:!1}},emits:["mounted"],setup(e,t){var n;const i=io();let r={};OZ.set(r,[]);const a=F({FormKit:Sn(QZ)},e.library);let s,o,l=BZ(a,e.schema,e.memoKey);function u(){VZ(e.schema,e.memoKey,r),o.node&&o.node.destroy(),o.slots=null,o=null,s=null}return $Z||Bi((()=>e.schema),((t,n)=>{var u;const c=r;r={},OZ.set(r,[]),l=BZ(a,e.schema,e.memoKey),s=UZ(l,o,r),t===n&&(null==(u=null==i?void 0:i.proxy)?void 0:u.$forceUpdate).call(u),VZ(e.schema,e.memoKey,c)}),{deep:!0}),Fi((()=>{var n;o=Object.assign(pn(null!=(n=e.data)?n:{}),{slots:t.slots}),t.slots,s=UZ(l,o,r)})),H(u,"cleanUp"),Br((()=>t.emit("mounted"))),Vr(u),LZ(null==(n=io())?void 0:n.appContext.app,u),()=>s?s():null}}),WZ=zZ,GZ="undefined"==typeof window,KZ=Symbol("FormKitParent"),YZ=Symbol("FormKitComponentCallback");function ZZ(e,t){const n=uX(e,t);if(n.props.definition||jq(600,n),n.props.definition.component)return()=>{var e;return ko(null==(e=n.props.definition)?void 0:e.component,{context:n.context},F({},t.slots))};const i=Tn([]);let r=n.props.definition.schemaMemoKey;const a=H((()=>{var t,a;const s=null==(a=null==(t=n.props)?void 0:t.definition)?void 0:a.schema;s||jq(601,n),"function"==typeof s?(i.value=s(F({},e.sectionsSchema||{})),(r&&e.sectionsSchema||"memoKey"in s&&"string"==typeof s.memoKey)&&(r=(null!=r?r:null==s?void 0:s.memoKey)+JSON.stringify(e.sectionsSchema))):i.value=s}),"generateSchema");a(),GZ||n.on("schema",(()=>{r+="â»ï¸",a()})),t.emit("node",n);const s=n.props.definition.library,o=F({FormKit:Sn(XZ)},s);function l(){n.emit("mounted")}return H(l,"didMount"),t.expose({node:n}),()=>ko(zZ,{schema:i.value,data:n.context,onMounted:l,library:o,memoKey:r},F({},t.slots))}H(ZZ,"FormKit");var XZ=vr(ZZ,{props:["classes","config","delay","errors","id","index","inputErrors","modelValue","onUpdate:modelValue","name","number","parent","plugins","sectionsSchema","type","validation","validationLabel","validationMessages","validationRules","onInput","onInputRaw","onUpdate:modelValue","onNode","onSubmit","onSubmitInvalid","onSubmitRaw"],inheritAttrs:!1}),QZ=XZ,JZ=Symbol();function eX(e,t){return e.component(t.alias||"FormKit",QZ).component(t.schemaAlias||"FormKitSchema",WZ),{get:hz,setLocale:H((e=>{var n;(null==(n=t.config)?void 0:n.rootConfig)&&(t.config.rootConfig.locale=e)}),"setLocale"),clearErrors:RW,setErrors:MW,submit:yz,reset:bz}}H(eX,"createPlugin");var tX=Symbol.for("FormKitOptions"),nX=Symbol.for("FormKitConfig"),iX={install(e,t){const n=Object.assign({alias:"FormKit",schemaAlias:"FormKitSchema"},"function"==typeof t?t():t),i=gz(n.config||{});n.config={rootConfig:i},e.config.globalProperties.$formkit=eX(e,n),e.provide(tX,n),e.provide(nX,i),"undefined"!=typeof window&&(globalThis.__FORMKIT_CONFIGS__=(globalThis.__FORMKIT_CONFIGS__||[]).concat([i]))}},rX="undefined"!=typeof window,aX=["ignore","disabled","preserve","help","label",/^preserve(-e|E)rrors/,/^[a-z]+(?:-visibility|Visibility|-behavior|Behavior)$/,/^[a-zA-Z-]+(?:-class|Class)$/,"prefixIcon","suffixIcon",/^[a-zA-Z-]+(?:-icon|Icon)$/],sX=["disabled","ignore","preserve"];function oX(e,t){t.classes&&Object.keys(t.classes).forEach((n=>{"string"==typeof n&&(e.props[`_${n}Class`]=t.classes[n],cq(t.classes[n])&&"inner"===n&&Object.values(t.classes[n]))}))}function lX(e){if(!e)return{};return["Submit","SubmitRaw","SubmitInvalid"].reduce(((t,n)=>{const i=`on${n}`;return i in e&&"function"==typeof e[i]&&(t[i]=e[i]),t}),{})}function uX(e,t,n={}){var i,r;const a=Object.assign({},Oi(tX)||{},n),s=Oi(JZ,Tn(rX?document:void 0)),o=Oi(YZ,(()=>{})),l=io(),u=lX(null==l?void 0:l.vnode.props),c=["modelValue","model-value"].some((e=>{var t;return e in(null!=(t=null==l?void 0:l.vnode.props)?t:{})}));let d=!1;Br((()=>{d=!0}));const p=void 0!==e.modelValue?e.modelValue:Cq(t.attrs.value);function h(){var n;const i=B(F(F({},mq(e)),u),{type:null!=(n=e.type)?n:"text",__root:s.value,__slots:t.slots}
100),r=yq(mq(t.attrs),aX);r.key||(r.key=tq()),i.attrs=r;const a=vq(mq(t.attrs),aX);for(const e in a)sX.includes(e)&&""===a[e]&&(a[e]=!0),i[bq(e)]=a[e];const o={props:{}};return oX(o,e),Object.assign(i,o.props),"string"!=typeof i.type&&(i.definition=i.type,delete i.type),i}H(h,"createInitialProps");const f=h(),m=f.ignore?null:e.parent||Oi(KZ,null),g=xW(pq(a||{},{name:e.name||void 0,value:p,parent:m,plugins:(a.plugins||[]).concat(null!=(i=e.plugins)?i:[]),config:e.config||{},props:f,index:e.index,sync:!!xq(t.attrs.sync||t.attrs.dynamic)},!1,!0));o(g),g.props.definition||jq(600,g);const y=Tn(new Set(Array.isArray(g.props.__propDefs)?g.props.__propDefs:Object.keys(null!=(r=g.props.__propDefs)?r:{})));g.on("added-props",(({payload:e})=>{(Array.isArray(e)?e:Object.keys(null!=e?e:{})).forEach((e=>y.value.add(e)))}));const v=Co((()=>aX.concat([...y.value]).reduce(((e,t)=>("string"==typeof t?(e.push(bq(t)),e.push(_q(t))):e.push(t),e)),[])));Fi((()=>oX(g,e)));const b=mq(e);for(const k in b)Bi((()=>e[k]),(()=>{void 0!==e[k]&&(g.props[k]=e[k])}));Fi((()=>{g.props.__root=s.value}));const _=new Set,w=mq(t.attrs);function S(e){_.forEach((e=>{e(),_.delete(e)}));for(const n in e){const e=bq(n);_.add(Bi((()=>t.attrs[n]),(()=>{g.props[e]=t.attrs[n]})))}}if(Fi((()=>{S(vq(w,v.value))})),H(S,"watchAttributes"),Fi((()=>{const e=yq(mq(t.attrs),v.value);"multiple"in e&&(e.multiple=xq(e.multiple)),"function"==typeof e.onBlur&&(e.onBlur=Iq(e.onBlur)),g.props.attrs=Object.assign({},g.props.attrs||{},e)})),Fi((()=>{var t;const n=(null!=(t=e.errors)?t:[]).map((e=>Uq({key:Eq(e),type:"error",value:e,meta:{source:"prop"}})));g.store.apply(n,(e=>"error"===e.type&&"prop"===e.meta.source))})),"input"!==g.type){const t=`${g.name}-prop`;Fi((()=>{var n;const i=null!=(n=e.inputErrors)?n:{},r=Object.keys(i);r.length||g.clearErrors(!0,t);const a=r.reduce(((e,n)=>{let r=i[n];return"string"==typeof r&&(r=[r]),Array.isArray(r)&&(e[n]=r.map((e=>Uq({key:e,type:"error",value:e,meta:{source:t}})))),e}),{});g.store.apply(a,(e=>"error"===e.type&&e.meta.source===t))}))}let C;return Fi((()=>Object.assign(g.config,e.config))),"input"!==g.type&&Pi(KZ,g),g.on("modelUpdated",(()=>{var e,n;t.emit("inputRaw",null==(e=g.context)?void 0:e.value,g),d&&t.emit("input",null==(n=g.context)?void 0:n.value,g),c&&g.context&&(C=Cq(g.value),t.emit("update:modelValue",wq(g.value)))})),c&&(Bi(Vn(e,"modelValue"),(e=>{rq(C,e)||g.input(e,!1)}),{deep:!0}),g.value!==p&&g.emit("modelUpdated")),Ur((()=>g.destroy())),g}H(oX,"classesToNodeProps"),H(lX,"onlyListeners"),H(uX,"useInput");var cX=1;function dX(e){return"function"==typeof e&&2===e.length||"object"==typeof e&&!Array.isArray(e)&&!("$el"in e)&&!("$cmp"in e)&&!("if"in e)}function pX(e,t={},n={}){const i=F({type:"input"},t);let r;if(dX(e)){const t="SchemaComponent"+cX++;r=hK("input",(()=>({$cmp:t,props:{context:"$node.context"}}))),i.library={[t]:Sn(e)}}else r="function"==typeof e?e:hK("input",(()=>Cq(e)));return i.schema=PY(r||"Schema undefined",n),i.schemaMemoKey||(i.schemaMemoKey=`${Math.random()}`),i}H(dX,"isComponent2"),H(pX,"createInput"),hK("messages",(()=>({$el:"ul",if:"$fns.length($messages)"})))(hK("message",(()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})))("$message.value"));var hX=hK("summary",(()=>({$el:"div",attrs:{"aria-live":"polite"}}))),fX=hK("summaryInner",(()=>({$el:"div",if:"$summaries.length && $showSummaries"}))),mX=hK("messages",(()=>({$el:"ul",if:"$summaries.length && $showSummaries"}))),gX=hK("message",(()=>({$el:"li",for:["summary","$summaries"],attrs:{key:"$summary.key","data-message-type":"$summary.type"}}))),yX=hK("summaryHeader",(()=>({$el:"h2",attrs:{id:"$id"}}))),vX=hK("messageLink",(()=>({$el:"a",attrs:{id:"$summary.key",href:'$: "#" + $summary.id',onClick:"$jumpLink"}})));function bX(e){return e.split(" ").filter((e=>e))}hX(fX(yX("$summaryHeader"),mX(gX(vX("$summary.message"))))),TZ(),xZ(),H(bX,"splitClass");var _X="undefined"!=typeof window;function wX(e,t,n=!1){if(!t)return;const i=bX(t);if(i.length&&!i.includes("longTouch"))for(const r of e){if(!xX(r)||!jX.has(r)){r.classList.add(...i);continue}const e=[],t=jX.get(r);if(t){for(const t of i)r.classList.contains(t)?r.classList.contains(t)&&!1===n&&e.push(t):r.classList.add(t);t.privateClasses=e,jX.set(r,t)}}}function SX(e,t){if(!t)return;const n=bX(t);if(n.length)for(const i of e){if(!xX(i)){i.classList.remove(...n);continue}const e=jX.get(i);if(e)for(const t of n)e.privateClasses.includes(t)||i.classList.remove(t)}}function CX(e){if(null!=e)return e.scrollHeight>e.clientHeight?e:e.parentNode instanceof HTMLElement?CX(e.parentNode):void 0}function kX(e){if(!(e.e instanceof TouchEvent))return;const t=e.e.touches[0].clientX,n=e.e.touches[0].clientY,i=document.elementsFromPoint(t,n);if(jX)for(const r of i){if(xX(r)&&jX.has(r)){const e=r,t=jX.get(e),n=UX.get(e.parentNode);
100if(!t||!n)return;return{node:{el:e,data:t},parent:{el:e.parentNode,data:n}}}if(r instanceof HTMLElement){const e=UX.get(r);if(e)return{parent:{el:r,data:e}}}}}function xX(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function TX(e,t){const n={};for(const i in t){const r=new AbortController,a=t[i];e.addEventListener(i,a,{signal:r.signal}),n[i]=r}return n}function EX(e,t,n=!1){const i=window.getComputedStyle(e),r=["position","top","left","x","y","transform-origin","filter","-webkit-text-fill-color"];for(const a of Array.from(i))!1===n&&a&&r.includes(a)||t.style.setProperty(a,i.getPropertyValue(a),i.getPropertyPriority(a));for(const a of Array.from(e.children)){if(!xX(a))continue;EX(a,t.children[Array.from(e.children).indexOf(a)],n)}}function AX(e){return e instanceof DragEvent?{x:e.clientX,y:e.clientY}:{x:e.touches[0].clientX,y:e.touches[0].clientY}}function LX(e={}){return t=>{const n=UX.get(t);if(n)return{tearDownParent(){},setupParent(){n.config.multiDragConfig=e,n.config.handleDragstart=e.handleDragstart||PX,n.config.handleTouchstart=e.handleTouchstart||MX,n.config.handleDragend=e.handleDragend||$X,n.config.reapplyDragClasses=e.reapplyDragClasses||IX,rQ(t)}}}}function IX(e,t){if(!qX)return;const n="touchedNode"in qX?t.config.multiDragConfig.touchDropZoneClass:t.config.multiDragConfig.dropZoneClass;qX.draggedNodes.map((e=>e.el)).includes(e)&&wX([e],n,!0)}function $X(e){qX&&(gQ(e,qX),DX(e),zX())}function DX(e){const t=e.targetData.parent.data.config,n=e.targetData.parent.data.config.multiDragConfig,i=t.root||document,r=qX&&"touchedNode"in qX?n.selectionDropZoneClass:n.touchSelectionDraggingClass;if(r){const e=i.querySelectorAll(`.${bX(r)}`);SX(Array.from(e),r)}}function PX(e){e.e instanceof DragEvent&&OX({e:e.e,targetData:e.targetData})}function OX(e){const t=oQ(e),n=e.targetData.parent.data.config.multiDragConfig,i=n.selections&&n.selections(e.targetData.parent.el),r=e.targetData.node.el.style.zIndex;if(t.originalZIndex=r,e.targetData.node.el.style.zIndex="9999",Array.isArray(i)&&i.length){const n=e.targetData.node.el.getBoundingClientRect(),[r,a]=[e.e.clientX-n.left,e.e.clientY-n.top];FX(NX(e,i,t,r,a))}else{const n=e.targetData.parent.data.config;sQ(t.draggedNode.el,n.draggingClass,n.dropZoneClass)}}function MX(e){e.e instanceof TouchEvent&&RX({e:e.e,targetData:e.targetData})}function RX(e){const t=vQ(e),n=e.targetData.parent.data.config.multiDragConfig,i=(null==n?void 0:n.selections)&&(null==n?void 0:n.selections(e.targetData.parent.el));Array.isArray(i)&&i.length?FX(NX(e,i,t,t.touchStartLeft,t.touchStartTop)):bQ(e,t),_Q(e,t)}function NX(e,t,n,i,r){for(const o of e.targetData.parent.data.enabledNodes){if(o===n.draggedNode.el)continue;const e=jX.get(o);e&&(t.includes(e.value)&&n.draggedNodes.push({el:o,data:e}))}const a=e.targetData.parent.data.config.multiDragConfig,s=n.draggedNodes.map((t=>{const n=t.el.cloneNode(!0);return EX(t.el,n,!0),e.e instanceof DragEvent&&wX([n],a.draggingClass),n}));return setTimeout((()=>{e.e instanceof DragEvent&&wX(n.draggedNodes.map((e=>e.el)),a.dropZoneClass)})),n.clonedDraggedEls=s,{data:e,state:n,x:i,y:r}}function FX({data:e,state:t,x:n,y:i}){var r;const a=document.createElement("div");for(const o of t.clonedDraggedEls)a.append(o);const{width:s}=t.draggedNode.el.getBoundingClientRect();a.style.cssText=`\n display: flex;\n flex-direction: column;\n width: ${s}px;\n position: absolute;\n left: -9999px\n `,document.body.append(a),e.e instanceof DragEvent?(null==(r=e.e.dataTransfer)||r.setDragImage(a,n,i),setTimeout((()=>{a.remove()}))):"touchedNode"in t&&(t.touchedNode=a)}function BX(e={}){return()=>({setupParent(){const t=document.createElement("style");document.head.querySelector("[data-drag-and-drop]")||(t.innerHTML=`\n .drag-and-drop-slide-up {\n animation-name: slideUp;\n animation-duration: ${(e.duration||200)/1e3}s;\n }\n\n @keyframes slideUp {\n from {\n transform: translateY(100%);\n }\n to {\n transform: translateY(0);\n }\n }\n\n .drag-and-drop-slide-down {\n animation-name: slideDown;\n animation-duration: ${(e.duration||200)/1e3}s;\n }\n\n @keyframes slideDown {\n from {\n transform: translateY(-100%);\n }\n to {\n transform: translateY(0%);\n }\n }\n\n .drag-and-drop-slide-left {\n animation-name: slideLeft;\n animation-duration: ${(e.duration||200)/1e3}s;\n }\n\n @keyframes slideLeft {\n from {\n transform: translateX(100%);\n }\n to {\n transform: translateX(0%);\n }\n }\n\n .drag-and-drop-slide-right {\n animation-name: slideRight;\n animation-duration: ${(e.duration||200)/1e3}s;\n }\n\n @keyframes slideRight {\n from {\n transform: translateX(-100%);\n }\n to {\n transform: translateX(0);\n }\n }\n `,t.setAttribute("type","text/css"),t.setAttribute("data-drag-and-drop","true"),document.head.append(t))},setupNode(t){if(!qX)return;const n=t.nodeData.value;if(n===qX.swappedNodeValue)switch(qX.preventSortValue=n,qX.incomingDirection){case"below":HX(t.node,qX.draggedNode.el,"drag-and-drop-slide-down","drag-and-drop-slide-up",e.duration||200);break;case"above":HX(t.node,qX.draggedNode.el,"drag-and-drop-slide-up","drag-and-drop-slide-down",e.duration||200);break;case"left":HX(t.node,qX.draggedNode.el,"drag-and-drop-slide-left","drag-and-drop-slide-right",e.duration||200);break;case"right":HX(t.node,qX.draggedNode.el,"drag-and-drop-slide-right","drag-and-drop-slide-left",e.duration||200)}}})}function HX(e,t,n,i,r){e.classList.add(n),t.classList.add(i),setTimeout((()=>{qX&&(qX.preventSortValue=void 0,t.classList.remove(i),e.classList.remove(n))}),r)}H(wX,"addClass"),H(SX,"removeClass"),H(CX,"getScrollParent"),H(kX,"getElFromPoint"),H(xX,"isNode$2"),H(TX,"addEvents"),H(EX,"copyNodeStyle"),H(AX,"eventCoordinates"),H(LX,"multiDrag"),H(IX,"reapplyDragClasses"),H($X,"handleDragend"),H(DX,"selectionsEnd"),H(PX,"handleDragstart"),H(OX,"dragstart"),H(MX,"handleTouchstart"),H(RX,"touchstart"),H(NX,"handleSelections"),H(FX,"stackNodes"),H(BX,"animations"),H(HX,"setClasses");var jX=new WeakMap,UX=new WeakMap,VX=new WeakMap,qX=void 0;function zX(){qX=void 0}function WX(e){return qX=F({incomingDirection:void 0,enterCount:0,lastValue:void 0,preventEnter:!1,clonedDraggedEls:[],swappedNodeValue:!1,preventSortValue:void 0,originalZIndex:void 0},e)}function GX(e,t){return qX=F(F({},e),t)}function KX(e){return{draggedNode:{el:e.node.el,data:e.node.data},draggedNodes:[{el:e.node.el,data:e.node.data}],initialParent:{el:e.parent.el,data:e.parent.data},lastParent:{el:e.parent.el,data:e.parent.data}}}function YX(e,t){const n=QX(e),i=[...ZX(t.targetData.parent.el,t.targetData.parent.data).filter((e=>!n.includes(e)))];i.splice(t.targetData.node.data.index,0,...n),XX(t.targetData.parent.el,t.targetData.parent.data,[...i])}function ZX(e,t){return[...t.getValues(e)]}
100function XX(e,t,n){t.setValues(e,n)}function QX(e){return[...e.draggedNodes.map((e=>e.data.value))]}function JX({parent:e,getValues:t,setValues:n,config:i={}}){var r,a;if(!_X)return;document.addEventListener("dragover",(e=>{e.preventDefault()})),eQ(e);const s={getValues:t,setValues:n,config:F({handleDragstart:aQ,handleDragoverNode:xQ,handleDragoverParent:TQ,handleDragend:mQ,handleTouchstart:yQ,handleTouchmove:wQ,handleTouchOverNode:dQ,handleTouchOverParent:EQ,performSort:YX,performTransfer:PQ,root:document,setupNode:pQ,reapplyDragClasses:hQ,tearDownNode:fQ,threshold:{horizontal:0,vertical:0}},i),enabledNodes:[],abortControllers:{}};tQ(e,s),null==(r=i.plugins)||r.forEach((t=>{var n,i;null==(i=null==(n=t(e))?void 0:n.tearDownParent)||i.call(n)})),rQ(e),null==(a=i.plugins)||a.forEach((t=>{var n,i;null==(i=null==(n=t(e))?void 0:n.setupParent)||i.call(n)}))}function eQ(e){const t=UX.get(e);if(!t)return;for(const i of Object.keys(t.abortControllers.mainParent))t.abortControllers.mainParent[i].abort();for(const i of Array.from(e.children))xX(i)&&jX.delete(i);UX.delete(e);const n=VX.get(e.parentNode);n&&n.disconnect(),VX.delete(e)}function tQ(e,t){if(new MutationObserver(iQ).observe(e,{childList:!0}),e.parentNode){const t=new MutationObserver(nQ);if(t.observe(e.parentNode,{childList:!0}),!(e.parentNode instanceof HTMLElement))return;VX.set(e.parentNode,t)}UX.set(e,F({},t));const n=TX(e,{dragover:MQ(t.config.handleDragoverParent),touchOverParent:t.config.handleTouchOverParent});t.abortControllers.mainParent=n}function nQ(e){for(const t of e)for(const e of Array.from(t.removedNodes)){if(!(e instanceof HTMLElement))continue;const t=UX.get(e);if(t){for(const n of Array.from(e.childNodes))xX(n)&&t.enabledNodes.includes(n)&&jX.delete(n);UX.delete(e)}}}function iQ(e){const t=e[0].target;t instanceof HTMLElement&&rQ(t)}function rQ(e){const t=UX.get(e);if(!t)return;const n=[],i=t.config;for(let a=0;a<e.children.length;a++){const r=e.children[a];if(!xX(r))continue;const s=jX.get(r);if(i.tearDownNode({node:r,parent:e,nodeData:s,parentData:t}),i.disabled)return;(!i.draggable||i.draggable&&i.draggable(r))&&n.push(r)}if(n.length!==t.getValues(e).length&&!i.disabled)return void console.warn("The number of enabled nodes does not match the number of values.");const r=t.getValues(e);for(let a=0;a<n.length;a++){const s=n[a],o={value:r[a],index:a,privateClasses:[],abortControllers:{}};if(qX&&o.value===qX.draggedNode.data.value&&(qX.draggedNode.data=o,qX.draggedNode.el=s),qX&&qX.draggedNodes.map((e=>e.data.value)).includes(o.value)){const e=qX.draggedNodes.find((e=>e.data.value===o.value));e&&(e.el=s)}i.setupNode({node:s,parent:e,parentData:t,nodeData:o})}UX.set(e,B(F({},t),{enabledNodes:n})),qX&&(qX.preventEnter=!1)}function aQ(e){e.e instanceof DragEvent&&cQ({e:e.e,targetData:e.targetData})}function sQ(e,t,n){wX([e],t),setTimeout((()=>{SX([e],t),wX([e],n)}))}function oQ(e){const t=WX(KX(e.targetData));return e.e.dataTransfer&&(e.e.dataTransfer.dropEffect="move",e.e.dataTransfer.effectAllowed="move"),t}function lQ(e){if(!(e.e instanceof DragEvent||e.e instanceof TouchEvent))return!1;const t=e.targetData.parent.data.config;if(!t.dragHandle)return!0;const n=e.targetData.node.el.querySelectorAll(t.dragHandle);if(!n)return!1;const i=AX(e.e),r=t.root.elementFromPoint(i.x,i.y);if(!r)return!1;for(const a of Array.from(n))if(r===a||a.contains(r))return!0;return!1}function uQ(e){if(!lQ(e))return void e.e.preventDefault();const t=vQ(e);bQ(e,t),_Q(e,t)}function cQ(e){if(!lQ(e))return void e.e.preventDefault();const t=e.targetData.parent.data.config,n=oQ(e),i=e.targetData.node.el.style.zIndex;n.originalZIndex=i,e.targetData.node.el.style.zIndex="9999",sQ(n.draggedNode.el,t.draggingClass,t.dropZoneClass)}function dQ(e){qX&&qX.draggedNode.el!==e.detail.targetData.node.el&&e.detail.targetData.parent.el===qX.lastParent.el&&$Q(e.detail,qX)}function pQ(e){var t;jX.set(e.node,e.nodeData);const n=e.parentData.config;e.node.setAttribute("draggable","true");const i=TX(e.node,{dragstart:DQ(n.handleDragstart),dragover:DQ(n.handleDragoverNode),dragend:DQ(n.handleDragend),touchstart:DQ(n.handleTouchstart),touchmove:DQ(n.handleTouchmove),touchend:DQ(n.handleDragend),touchOverNode:n.handleTouchOverNode});e.nodeData.abortControllers.mainNode=i,null==(t=e.parentData.config.plugins)||t.forEach((t=>{var n,i;null==(i=null==(n=t(e.parent))?void 0:n.setupNode)||i.call(n,e)})),n.reapplyDragClasses(e.node,e.parentData)}function hQ(e,t){if(!qX)return;const n="touchedNode"in qX?t.config.touchDropZoneClass:t.config.dropZoneClass;qX.draggedNode.el===e&&wX([e],n,!0)}function fQ(e){var t,n,i;if(e.node.setAttribute("draggable","false"),null==(n=null==(t=e.nodeData)?void 0:t.abortControllers)?void 0:n.mainNode)for(const r of Object.keys(e.nodeData.abortControllers.mainNode))e.nodeData.abortControllers.mainNode[r].abort();
100null==(i=e.parentData.config.plugins)||i.forEach((t=>{var n,i;null==(i=null==(n=t(e.parent))?void 0:n.tearDownNode)||i.call(n,e)})),jX.delete(e.node)}function mQ(e){qX&&(gQ(e,qX),zX())}function gQ(e,t){var n,i,r,a;"longTouchTimeout"in t&&t.longTouchTimeout&&clearTimeout(t.longTouchTimeout);const s=null==(n=UX.get(t.initialParent.el))?void 0:n.config,o=(null==s?void 0:s.root)||document,l="touchedNode"in t?null==s?void 0:s.touchDropZoneClass:null==s?void 0:s.dropZoneClass;if(void 0!==t.originalZIndex&&(t.draggedNode.el.style.zIndex=t.originalZIndex),wX(t.draggedNodes.map((e=>e.el)),l,!0),l){const e=o.querySelectorAll(`.${bX(l)}`);SX(Array.from(e),l)}(null==s?void 0:s.longTouchClass)&&SX(t.draggedNodes.map((e=>e.el)),null==(r=null==(i=t.initialParent.data)?void 0:i.config)?void 0:r.longTouchClass),"touchedNode"in t&&(null==(a=t.touchedNode)||a.remove(),t.scrollParent&&(t.scrollParent.style.overflow=t.scrollParentOverflow||""))}function yQ(e){e.e instanceof TouchEvent&&uQ({e:e.e,targetData:e.targetData})}function vQ(e){e.e.stopPropagation();const t=e.targetData.node.el.cloneNode(!0),n=e.targetData.node.el.getBoundingClientRect();return GX(WX(KX(e.targetData)),{touchStartLeft:e.e.touches[0].clientX-n.left,touchStartTop:e.e.touches[0].clientY-n.top,touchedNode:t})}function bQ(e,t){t.touchedNodeDisplay=t.touchedNode.style.display;const n=e.targetData.node.el.getBoundingClientRect();t.touchedNode.style.cssText=`\n width: ${n.width}px;\n position: absolute;\n pointer-events: none;\n top: -9999px;\n z-index: 999999;\n display: none;\n `,document.body.append(t.touchedNode),EX(e.targetData.node.el,t.touchedNode),t.touchedNode.style.display="none"}function _Q(e,t){const n=e.targetData.parent.data.config;n.longTouch&&(t.longTouchTimeout=setTimeout((()=>{if(!t)return;t.longTouch=!0;const i=CX(t.draggedNode.el);i&&(t.scrollParent=i,t.scrollParentOverflow=i.style.overflow,i.style.overflow="hidden"),n.longTouchClass&&e.e.cancelable&&wX(t.draggedNodes.map((e=>e.el)),n.longTouchClass),e.e.preventDefault(),document.addEventListener("contextmenu",(function(e){e.preventDefault()}))}),n.longTouchTimeout||200))}function wQ(e){qX&&"touchedNode"in qX&&kQ(e,qX)}function SQ(e,t){t.longTouchClass&&SX(e.draggedNodes.map((e=>e.el)),null==t?void 0:t.longTouchClass),t.touchDraggingClass&&wX([e.touchedNode],t.touchDraggingClass),t.touchDropZoneClass&&wX(e.draggedNodes.map((e=>e.el)),t.touchDropZoneClass)}function CQ(e,t){var n,i;t.touchedNode.style.display=t.touchedNodeDisplay||"";const r=e.e.touches[0].clientX+window.scrollX,a=e.e.touches[0].clientY+window.scrollY;a>window.innerHeight+window.scrollY-50?window.scrollBy(0,10):a<window.scrollY+50&&window.scrollBy(0,-10);const s=null!=(n=t.touchStartLeft)?n:0,o=null!=(i=t.touchStartTop)?i:0;t.touchedNode.style.left=r-s+"px",t.touchedNode.style.top=a-o+"px"}function kQ(e,t){e.e.cancelable&&e.e.preventDefault();const n=e.targetData.parent.data.config;if(n.longTouch&&!t.longTouch)return void clearTimeout(t.longTouchTimeout);!0!==t.touchMoving&&(t.touchMoving=!0,SQ(t,n)),CQ(e,t);const i=kX(e);if(!i)return;if("node"in i&&i.node.el===t.draggedNodes[0].el)return void(t.lastValue=e.targetData.node.data.value);const r={e:e.e,targetData:i};"node"in i?i.node.el.dispatchEvent(new CustomEvent("touchOverNode",{detail:r})):i.parent.el.dispatchEvent(new CustomEvent("touchOverParent",{detail:r}))}function xQ(e){qX&&LQ(e,qX)}function TQ(e){qX&&OQ(e,qX)}function EQ(e){qX&&OQ(e.detail,qX)}function AQ(e,t){if(e.targetData.parent.el===t.lastParent.el)return!1;const n=e.targetData.parent.data.config;if(!1===n.dropZone)return!1;const i=t.initialParent.data.config;return!(n.accepts&&!n.accepts(e.targetData.parent,t.initialParent,t.lastParent,t))&&!(!n.group||n.group!==i.group)}function LQ(e,t){var n;e.e.preventDefault(),t.draggedNodes.map((e=>e.el)).includes(e.targetData.node.el)||(e.targetData.parent.el===(null==(n=t.lastParent)?void 0:n.el)?$Q(e,t):OQ(e,t))}function IQ(e,t,n,i){var r;if(!t)return!1;if(t.preventEnter)return!1;if(t.preventSortValue===e.targetData.node.data.value)return!1;if(e.targetData.parent.el!==(null==(r=t.lastParent)?void 0:r.el))return!1;const a=e.targetData.node.el.getBoundingClientRect(),s=t.draggedNode.el.getBoundingClientRect(),o=a.y-s.y,l=a.x-s.x;let u;u=Math.abs(o)>Math.abs(l)?o>0?"above":"below":l>0?"left":"right";const c=t.lastParent.data.config.threshold;switch(u){case"left":if(n>a.x+a.width*c.horizontal)return t.incomingDirection="left",!0;break;case"right":if(n<a.x+a.width*(1-c.horizontal))return t.incomingDirection="right",!0;break;case"above":if(i>a.y+a.height*c.vertical)return t.incomingDirection="above",!0;break;case"below":if(i<a.y+a.height*(1-c.vertical))return t.incomingDirection="below",!0}return!1}function $Q(e,t){const{x:n,y:i}=AX(e.e);IQ(e,t,n,i)&&(t.swappedNodeValue=e.targetData.node.data.value,t.preventEnter=!0,e.targetData.parent.data.config.performSort(t,e))}function DQ(e){function t(e){var t;const n=jX.get(e),i=e.parentNode||(null==(t=null==qX?void 0:qX.lastParent)?void 0:t.el);if(!n)return;const r=UX.get(i);return r?{node:{el:e,data:n},parent:{el:i,data:r}}:void 0}return H(t,"nodeTargetData"),n=>{const i=t(n.currentTarget);if(i)return e({e:n,targetData:i})}}function PQ(e,t){const n=QX(e),i=ZX(e.lastParent.el,e.lastParent.data).filter((e=>!n.includes(e))),r=ZX(t.targetData.parent.el,t.targetData.parent.data);"node"in t.targetData?r.splice(t.targetData.node.data.index,0,...n):r.push(...n),XX(e.lastParent.el,e.lastParent.data,i),XX(t.targetData.parent.el,t.targetData.parent.data,r)}function OQ(e,t){AQ(e,t)&&(e.targetData.parent.data.config.performTransfer(t,e),t.lastParent=e.targetData.parent)}function MQ(e){function t(e){const t=UX.get(e);if(t)return{parent:{el:e,data:t}}}return H(t,"parentTargetData"),n=>{const i=t(n.currentTarget);if(i)return e({e:n,targetData:i})}}function RQ(e,t,n){if(function(e,t){e in O2||(O2[e]={timer:0,inputs:new Set});const n=O2[e];clearTimeout(n.timer),n.inputs.add(t)}(t,n),!t)throw new Error("FormKitNoKey");return M2.has(t)?null:e}function NQ(e,t){return new Array(e).fill("").map(((e,n)=>t(n)))}function FQ(e,t,n,i){return(...r)=>a=>s=>{const o=function(e,t,n,i,r,a){const s=a[n],o="function"==typeof i?i():{$el:i},l=r.map((e=>"string"==typeof e?e:e(t)(a)));let u=l.length&&o?gK(o,{children:l}):o;if(u=gK(u,s),"object"==typeof u){let r=u;if(!TW(u)&&!EW(u)||u.meta||(u.meta={section:n,node:i}),TW(u)){const i=u,{$el:a}=i,s=j(i,["$el"]);s.attrs?"class"in s.attrs||"if"in s.attrs||(s.attrs=F({class:`$classes.${n}`},s.attrs)):s.attrs={class:`$classes.${n}`}
100,r=BQ(t,n,Object.defineProperty(s,"$el",{enumerable:!1,get:RQ.bind(null,a,t,e)}))}else if(EW(u)){const i=u,{$cmp:a}=i,s=j(i,["$cmp"]);r=BQ(t,n,Object.defineProperty(s,"$cmp",{enumerable:!1,get:RQ.bind(null,a,t,e)}))}else if("$formkit"in u){u.outerClass=`$classes.${n}`;const i=u,{$formkit:a}=i,s=j(i,["$formkit"]);r=BQ(t,n,Object.defineProperty(s,"$formkit",{enumerable:!1,get:RQ.bind(null,a,t,e)}))}return r}return BQ(t,n,u)}(e,a,t,n,r,s);return i&&uq(o)&&(o.memo=e+JSON.stringify(s)),i?[o]:o}}function BQ(e,t,n){const i=H((n=>e?n||`$slots.${t}`:null),"n");return Object.defineProperties({},{if:{enumerable:!1,get:i},then:{enumerable:!1,get:i},else:{enumerable:!1,get:i.bind(null,n)}})}function HQ(e){return(t,n,i=!1)=>FQ(e,t,n,i)}function jQ(e){return{outer:e("outer",R2,!0),wrapper:e("wrapper","div",!1),inner:e("inner",N2,!1),icon:V2,label:e("label",F2,!1),prefix:e("prefix",U2,!1),suffix:e("suffix",U2,!1),help:e("help",j2,!1),messages:e("messages",B2,!1),message:e("message",H2,!1)}}function UQ(e){return{overlayPlaceholder:e("overlayPlaceholder",q2),overlayLiteral:e("overlayLiteral",z2),overlayChar:e("overlayChar",W2),overlayEnum:e("overlayEnum",G2),overlay:e("overlay",K2),overlayParts:e("overlayParts",Z2),overlayInner:e("overlayInner",Y2)}}function VQ(e,t,n){return i=>r=>{const a="string"==typeof t?t:t(i)(r);return n?{if:e,then:a,else:"string"==typeof n?n:n(i)(r)}:(DY(a)?Object.assign(a.else,{if:e}):mK(a)&&Object.assign(a,{if:e}),a)}}function qQ(e){const t=e("dropdownWrapper",(()=>({$el:"div",attrs:{id:'$id + "_popover"',popover:{if:"$usePopover",then:"$popover",else:void 0},"data-is-wrapper":!0,style:"$dropdownWrapperStyles",onScroll:"$handlers.scroll"}}))),n=e("listbox",(()=>({$el:"ul",if:"$expanded || $setForceExpanded",attrs:{style:"$listboxStyles",id:'$id + "_listbox"',role:"listbox","aria-activedescendant":"$activeDescendant","aria-labelledby":'$id + "_label"'}}))),i=e("listitem",(()=>({$el:"li",for:["option","index","$options"],bind:"$option.attrs",attrs:{id:'$id + "_listitem_" + $index',"data-disabled":"$option.attrs.disabled","data-value":"$option.value",key:"$option.value",onClick:"$handlers.selectOption($option)",onBlur:"$handlers.blurListitem",role:"option","aria-selected":"$hidingValue === true && false || $fns.isSelected($option)","data-is-active":"$fns.isActive($option)",tabindex:"-1"}}))),r=e("loadMore",(()=>({$el:"li",if:"$state.loading || $state.hasNextPage",attrs:{id:'$id + "_load_more"',key:"loadMore",role:"option",onClick:"$handlers.selectOption($loadM
100oreOption)","aria-selected":"false","data-is-active":"$fns.isActive($loadMoreOption)",tabindex:"-1"}}))),a=e("loadMoreInner","span"),s=e("emptyMessage",(()=>({$el:"li",if:"$showEmptyMessage && $state.loading !== true",attrs:{id:'$id + "_empty_message"',key:"$emptyMessage",role:"presentation"}}))),o=e("emptyMessageInner","span"),l=e("option",(()=>({$el:"div",attrs:{"data-checked":"$fns.isSelected($option)"}})));return()=>t(n(s(o("$emptyMessage")),i(VQ("$fns.isSelected($option)",V2("selected")),l("$option.label")),r(VQ("$state.loading && $optionLoadingCounter === 0 || $state.hasNextPage",a(VQ("$state.loading",V2("loader")),"$state.loading && $ui.isLoading.value || $ui.loadMore.value")))))}function zQ(e){return uq(e)&&"value"in e&&"label"in e}function WQ(e){return e?e.reduce(((e,t)=>{var n;return(null===(n=e.at(-1))||void 0===n?void 0:n.type)===t.type?e.at(-1).value+=t.value:e.push({type:t.type,value:t.value}),e}),[]):[]}function GQ(){var e,t,n;const i=(null===(e=document.activeElement)||void 0===e?void 0:e.tagName.toLowerCase())||"";if(customElements.get(i)){const e=null===(n=null===(t=document.activeElement)||void 0===t?void 0:t.shadowRoot)||void 0===n?void 0:n.activeElement;if(e)return e}return document.activeElement}function KQ(e){return"__original"in e?e.__original:e.value}function YQ(e,t,n=!1,i=!1){return V(this,null,(function*(){if("function"==typeof e.props.optionsLoader){e.props.search=t,clearTimeout(E3.get(e));const r=t?e.props.debounce:0;0===r?(n&&(e.props.options=[]),ZQ(e,i)):E3.set(e,setTimeout((()=>{e.props.page=1,n&&(e.props.options=[]),ZQ(e,i)}),r))}else Array.isArray(e.props.options)&&(e.props.options=[...e.props.initialOptions.filter((n=>e.props.filter(n,null!=t?t:"",e)))])}))}function ZQ(e,t){e.props.allowAppendOptions=t,JQ(e)}function XQ(e,t){if(e.props.allowAppendOptions)return e.props.allowAppendOptions=!1,function(e,t){const n=uK(t);e.props.ignoreScroll=!0,e.props.options=e.props.options.concat(n)}(e,t);const n=uK(t);e.props.options=n,e.props.options.length||(e.store.set(L3),e.store.set(Uq({key:"hasNextPage",type:"state",value:!1,visible:!1}))),T3.set(e,e.props.searchValue)}function QQ(e,t,n){if(e.store.set(A3),e.props.optionLoadingCounter++,e.props.multiple&&"truncate"!==e.props.selectionAppearance){const i=n||{label:String(t),value:t};e.props.optionLoaderValues.includes(i.value)||e.props.optionLoaderValues.push(i.value),"transferlist"===e.props.type||e.props.selections.includes(i)||(e.props.selections=[...e.props.selections,i])}const i=e.props.optionLoader(t,n),r=H((e=>"string"==typeof e?{label:e,value:t}:zQ(e)?e:uq(e)?Object.assign({label:String(t),value:t},e):{label:String(t),value:t}),"r"),a=H((t=>{const n=e.props.memoOptions.findIndex((e=>KQ(e)===KQ(t)));return-1===n?e.props.memoOptions=[...e.props.memoOptions,t]:e.props.memoOptions[n]=t,t}),"s");return i instanceof Promise?i.then((e=>{if("string"==typeof e||zQ(e))return a(r(e))})).finally((()=>{e.props.optionLoaderValues=e.props.optionLoaderValues.filter((e=>e!==t)),e.props.optionLoadingCounter--})):(e.props.optionLoaderValues=e.props.optionLoaderValues.filter((e=>e!==t)),e.props.optionLoadingCounter--,a(r(i)))}function JQ(e){e.store.set(A3),e.props.optionsLoadingCounter++,e.store.set(Uq({key:"hasNextPage",type:"state",value:!1,visible:!1}));const t=e.props.nonceKey&&e.props[e.props.nonceKey],n=e.props.optionsLoader(e.context,I3.get(e)),i=XQ.bind(null,e),r=n instanceof Promise?n.then(((...n)=>{void 0!==e.props.nonceKey&&t!==e.props[e.props.nonceKey]||i(...n)})):(i(n),e.props.optionsLoadingCounter--);if(r instanceof Promise)return r.finally((()=>{e.props.optionsLoadingCounter--}))}function eJ(e,t){e.props.page++,I3.set(e,t),e.store.set(Uq({key:"hasNextPage",type:"state",value:!0,visible:!1}))}function tJ(e,t){if(e.props.optionRemoved=!0,t){const n=(e.props.inputStd||[]).filter((e=>!rq(KQ(t),e)));e.input(n)}else e.input(void 0);e.props.openOnRemove&&!e.props.expanded&&e.isCreated&&(e.props.expanded=!0),setTimeout((()=>{var t;return e.emit("selectRange",[null===(t=e.props.highlightedRange)||void 0===t?void 0:t.option])}),20)}function nJ(e){return V(this,null,(function*(){const t=D3(e);e.props.resetSearchOnCommit&&"function"===e.props.optionsLoader&&(e.props.searchValue=""),e.props.selections=[...t];const n=[...t,...e.props.memoOptions];var i,r,a;e.props.memoOptions=[...new Set(n)],(i=e).props.firstCommit?i.props.firstCommit=!1:P2&&i.isCreated&&(i.props.optionRemoved?i.props.optionRemoved=!1:(i.props.expanded&&i.props.closeOnSelect&&(i.props.expanded=!1),i.props.userAction&&(i.props.openOnFocus&&(i.props.skipOpen=!0),"tagDelete"!==i.props.userAction.type&&(null===(a=null===(r=i.props.__root)||void 0===r?void 0:r.getElementById(`${i.props.id}`))||void 0===a||a.focus()),i.props.userAction=void 0)))}))}function iJ(e){var t,n;if(e.props.options&&e.props.options.length)if(null===(t=e.props.highlightedRange)||void 0===t?void 0:t.option.value)e.props.activeValue=KQ(e.props.highlightedRange.option);else{if(e.props.activeSelectionValue){const t=e.props.options.find((t=>rq(KQ(t),e.props.activeSelectionValue)));if(t)return void(e.props.activeValue=t.value)}e.props.reloadOnCommit||e.props.searchValue?e.props.activeValue=KQ(e.props.options[0]):(e.props.inputStd.length>0&&!e.props.multiple||e.props.multiple&&(null===(n=e.context)||void 0===n?void 0:n.state.dirty))&&e.props.selections[e.props.selections.length-1]?e.props.activeValue=KQ(e.props.selections[e.props.selections.length-1]):e.props.activeValue=KQ(e.props.options[0])}}function rJ(e,t){var n,i;(null===(n=t.attrs)||void 0===n?void 0:n.disabled)||(KQ(t)!==$3?(e.props.option=t,e.props.maxReached&&!oJ(e,t)||(e.input(aJ(e,KQ(t))),oJ(e,t)&&e.props.closeOnSelect&&(e.props.expanded=!1))):null===(i=e.context)||void 0===i||i.handlers.loadM
100ore(!0))}function aJ(e,t){if(e.props.multiple){const n=Array.isArray(e.value)?e.value:[];return n.includes(t)?(e.props.optionRemoved=!0,n.filter((e=>e!==t))):[...n,t]}return t===e.value&&e.props.deselect?void(e.props.optionRemoved=!0):t}function sJ(e,t){return rq(e.props.activeValue,KQ(t))||void 0}function oJ(e,t){return e.props.multiple?!!Array.isArray(e.value)&&e.value.includes(KQ(t)):rq(e.value,KQ(t))}function lJ(e){var t,n;if(!e.props.usePopover||"overscroll"===e.props.behavior)return;const i=e.props.invertPopover?e.props.popoverCoordinates.y-e.props.popoverCoordinates.height-e.props.popoverOffset-e.props.popoverAncestorCoordinates.height:e.props.popoverCoordinates.y+e.props.popoverOffset;e.props.dropdownWrapperStyles=B(F({},e.props.dropdownWrapperStyles),{minWidth:0,width:"100%",maxWidth:(null===(n=null===(t=e.props)||void 0===t?void 0:t.popoverAncestorCoordinates)||void 0===n?void 0:n.width)+"px",top:i+"px",bottom:"unset",left:e.props.popoverCoordinates.x+"px",margin:0,padding:0,opacity:0}),e.props.popoverCoordinates.height&&setTimeout((()=>{e.props.dropdownWrapperStyles=B(F({},e.props.dropdownWrapperStyles),{opacity:1})}),0)}function uJ(e){e.props.firstCommit=!0;let t=null;e.on("commit",(()=>{if(0===e.props.inputStd.length&&e.isCreated)return(n=e).props.selections=[],n.props.userAction&&(n.props.userAction=void 0,n.props.openOnFocus&&(n.props.skipOpen=!0),null===(r=null===(i=n.props.__root)||void 0===i?void 0:i.getElementById(`${n.props.id}`))||void 0===r||r.focus()),n.props.optionRemoved=!1,void(t=e.props.inputStd);var n,i,r;if(e.props.inputStd.length&&"function"==typeof e.props.optionsLoader&&0===e.props.options.length&&"function"!=typeof e.props.optionLoader&&0===e.props.optionsLoadingCounter){e.props.optionsLoaded=!0;const t=JQ(e);t instanceof Promise&&t.then((()=>{nJ(e)}))}"function"!=typeof e.props.optionLoader||e.props.optionRemoved||function(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}(t,e.props.inputStd)?0===e.props.optionsLoadingCounter&&nJ(e):(t=e.props.inputStd,function(e){V(this,null,(function*(){const t=D3(e);if((e.props.inputStd.length>1?e.props.inputStd.filter((t=>!e.props.memoOptions.find((e=>rq(KQ(e),t))))):e.props.inputStd).forEach((n=>{QQ(e,n,Array.isArray(t)&&t.find((e=>rq(KQ(e),n)&&!e.noOptionFound)))})),e.props.optionLoadingCounter){const t=e.on("prop:optionLoadingCounter",(()=>{nJ(e),e.props.optionLoadingCounter||e.off(t)}))}else nJ(e)}))}(e))}))}function cJ(e){function t(e,t){"overscroll"!==e.props.behavior&&"none"===getComputedStyle(t).maxHeight&&(e.props.dropdownWrapperStyles=B(F({},e.props.dropdownWrapperStyles),{maxHeight:"400px"})),new MutationObserver((()=>{const i=e.props.positionListBox(t);P3.delete(e),n(e,i);let r,a=null;const s=new ResizeObserver((()=>{clearTimeout(r),r=setTimeout((()=>{e.props.styleWrapper(),e.props.positionListBox(t),a||(a=e.on("prop:expanded",(()=>{s.disconnect(),e.off(a)})))}),100)}));s.observe(t)})).observe(t,{childList:!0,subtree:!0})}function n(e,t){var n;if(!e.props.expanded||!e.props.options||!e.props.options.length||P3.has(e))return;const r=e.props.options.reduce(((t,n,i)=>{var r,a;if(null===(r=n.attrs)||void 0===r?void 0:r.disabled)return t;const s=null===(a=e.props.__root)||void 0===a?void 0:a.getElementById(`${e.props.id}_listitem_${i}`);return s&&t.push([s,n]),t}),[]),a=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}_load_more`);a&&r.push([a,e.props.loadMoreOption]),P3.add(e),r.length&&i(e,r,t)}function i(e,t,r){var a,s,o,l;const u=null===(a=e.props.__root)||void 0===a?void 0:a.getElementById(`${e.props.id}_popover`);if(e.props.trackHover){const n=u?u.getBoundingClientRect():{top:0,bottom:0};if(r=null,e.props.mouseY>n.top&&e.props.mouseY<n.bottom){let n=r||0,i=r;const a=H(((t,n)=>{var i;const a=n[0],{y:s,height:o,x:l,width:u}=a.getBoundingClientRect();if(e.props.mouseX>l&&e.props.mouseX<l+u&&e.props.mouseY>s&&e.props.mouseY<s+o){r=t;const a=n[1];return e.props.activeValue=a&&!(null===(i=a.attrs)||void 0===i?void 0:i.disabled)?KQ(a):void 0,!0}return!1}),"s");do{if(null!==n&&a(n,t[n]))break;if(null!==i&&a(i,t[i]))break;null!==n&&(n++,n>t.length-1&&(n=null)),null!==i&&(i--,i<0&&(i=null))}while(null!==n||null!==i)}null===r&&(e.props.activeValue=void 0)}e.props.trackHover||dJ(e),e.props.expanded?(u&&e.props.loadOnScroll&&!(null===(s=e.store.loading)||void 0===s?void 0:s.value)&&(null===(o=e.store.hasNextPage)||void 0===o?void 0:o.value)&&u.scrollTop+u.offsetHeight>u.scrollHeight-200&&(null===(l=e.context)||void 0===l||l.handlers.loadM
100ore(!0)),P3.has(e)?requestAnimationFrame(i.bind(null,e,t,r)):n(e,r)):P3.delete(e)}if(H(t,"t"),H(n,"o"),H(i,"n"),!P2)return;e.props.positionListBox=function(e,t){var n,i;let r=null;if(e.props.activeDescendant&&(r=e.props.options.filter((e=>{var t;return!(null===(t=e.attrs)||void 0===t?void 0:t.disabled)})).findIndex((t=>rq(e.value,KQ(t)))),-1===r&&(r=null),(null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(e.props.activeDescendant))&&dJ(e)),"undefined"==typeof window)return r;const a=t.getBoundingClientRect(),s=null===(i=e.props.__root)||void 0===i?void 0:i.getElementById(`${e.props.id}`);if(s){const t=s.getBoundingClientRect();t.top+t.height+a.height>window.innerHeight&&t.top+t.height>a.height?(e.props.invertPopover=!0,e.props.usePopover?lJ(e):e.props.dropdownWrapperStyles=B(F({},e.props.dropdownWrapperStyles),{top:"auto",bottom:"100%"})):(e.props.invertPopover=!1,e.props.usePopover?lJ(e):e.props.dropdownWrapperStyles=B(F({},e.props.dropdownWrapperStyles),{bottom:"auto",top:"100%"}))}return r}.bind(null,e),e.props.styleWrapper=pJ.bind(null),e.on("mounted",(()=>{Lq(`${e.props.id}_popover`,t.bind(null,e),e.props.__root)}));const r=H((t=>{var n;e.props.mouseX=t.clientX,e.props.mouseY=t.clientY;const i=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}_popover`);if(i){const n=i.getBoundingClientRect();t.clientX>n.x&&t.clientX<n.x+n.width&&t.clientY>n.y&&t.clientY<n.y+n.height&&(e.props.trackHover=!0)}}),"r"),a=H((()=>{e.props.ignoreScroll?e.props.ignoreScroll=!1:e.props.trackHover=!0}),"s");e.on("prop:trackHover",(({payload:t})=>{var n,i,r;P2&&(t?null===(r=null===(i=e.props.__root)||void 0===i?void 0:i.getElementById(`${e.props.id}_popover`))||void 0===r||r.removeEventListener("scroll",a):null===(n=e.props.__root)||void 0===n||n.getElementById(`${e.props.id}_popover`))})),e.on("prop:expanded",(({payload:t})=>{e.props.dropdownWrapperStyles=B(F({},e.props.dropdownWrapperStyles),{zIndex:t||e.props.forceExpanded?"999":"-1",pointerEvents:t?"auto":"none"}),t?(document.addEventListener("mousemove",r),e.props.styleWrapper(),iJ(e)):document.removeEventListener("mousemove",r)})),e.on("prop:trackHover",(({payload:t})=>{var n,i;P2&&(t?null===(i=document.getElementById(`${e.props.id}_popover`))||void 0===i||i.removeEventListener("scroll",a):null===(n=document.getElementById(`${e.props.id}_popover`))||void 0===n||n.addEventListener("scroll",a))})),e.on("prop:activeValue",(({payload:t})=>{if(t===$3)return void(e.props.activeDescendant=`${e.props.id}_load_more`);const n=e.props.options.findIndex((e=>rq(KQ(e),t)));e.props.activeDescendant=n>=0?`${e.props.id}_listitem_${n}`:void 0}))}function dJ(e){var t,n;if(!P2)return;if(e.props.ignoreScroll)return;const i=null===(t=e.props.__root)||void 0===t?void 0:t.getElementById(`${e.props.id}_popover`),r=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(e.props.activeDescendant);if(!i||!r)return;const{y:a,height:s}=r.getBoundingClientRect(),{y:o,height:l}=i.getBoundingClientRect();a<o?(e.props.ignoreScroll=!0,i.scrollTop=r.offsetTop):a+s>o+l&&(e.props.ignoreScroll=!0,i.scrollTop=r.offsetTop+s-l)}function pJ(){}function hJ(e){e.on("created",(()=>{if(!e.context||!P2)return;e.context.fns.isActive=sJ.bind(null,e),e.context.fns.isSelected=t=>oJ(e,t),e.context.handlers.selectOption=t=>n=>CJ.call(null,e,t,n),e.context.handlers.loadMore=ZQ.bind(null,e),e.context.handlers.removeSelection=t=>n=>SJ(e,t,n),e.context.handlers.tagTouchstart=t=>n=>SJ(e,t,n),e.context.handlers.selectionClick=t=>e.props.multiple?yJ.bind(null,e,t):gJ.bind(null,e),e.context.handlers.selectionBlur=()=>vJ.bind(null,e),e.context.handlers.tagClick=t=>bJ.bind(null,e,t),e.context.handlers.tagFocus=t=>_J.bind(null,e,t),e.context.handlers.tagBlur=()=>wJ.bind(null,e);const t=e.context.handlers.blur;e.context.handlers.blur=function(e,n){var i,r;if(n&&n.relatedTarget instanceof HTMLElement){const t=null===(i=e.props.__root)||void 0===i?void 0:i.getElementById(e.props.id+"_inner");if(t instanceof HTMLElement&&t.contains(n.relatedTarget))return}t(),(r=e).props.disabled||(r.props.expanded=!1,r.props.activeSelectionValue=void 0,r.emit("blur"))}.bind(null,e),e.context.handlers.touchmove=fJ.bind(null,e),e.context.handlers.touchend=mJ.bind(null,e)}))}function fJ(e,t){var n;const i=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}`);if(i instanceof HTMLInputElement){const n=O3.get(e);if(n){const[e,r]=n,a=t.touches[0].clientX-r;i.scrollLeft=e-a}else O3.set(e,[i.scrollLeft,t.changedTouches[0].clientX])}}function mJ(e){O3.delete(e)}function gJ(e,t){e.props.disabled||((!e.props.expanded&&e.props.openOnClick||e.props.openOnFocus)&&(e.props.expanded=!0),t.currentTarget instanceof HTMLElement&&t.currentTarget.focu
100s())}function yJ(e,t,n){n.currentTarget instanceof HTMLElement&&(e.props.activeSelectionValue!==KQ(t)?(e.props.activeSelectionValue=KQ(t),n.currentTarget.focus()):e.props.activeSelectionValue=void 0)}function vJ(e,t){var n;if(t.relatedTarget instanceof HTMLElement){const i=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(e.props.id+"_inner");if(i instanceof HTMLElement&&i.contains(t.relatedTarget))return}e.props.activeSelectionValue=void 0}function bJ(e,t,n){n.stopPropagation(),e.props.disabled||(e.props.justFocused?e.props.justFocused=!1:n.currentTarget instanceof HTMLElement&&(e.props.activeSelectionValue!==KQ(t)?(e.props.activeSelectionValue=KQ(t),n.currentTarget.focus()):e.props.activeSelectionValue=void 0))}function _J(e,t,n){n.stopPropagation(),e.props.disabled||n.currentTarget instanceof HTMLElement&&(e.props.activeSelectionValue=KQ(t),e.props.justFocused=!0)}function wJ(e,t){var n;if(t.relatedTarget instanceof HTMLElement){const i=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(e.props.id+"_inner");if(i instanceof HTMLElement&&i.contains(t.relatedTarget))return}e.props.activeSelectionValue=void 0}function SJ(e,t,n){n&&n.stopPropagation(),e.props.disabled||(e.props.userAction={type:"handleRemoveSelection"},tJ(e,t))}function CJ(e,t,n){n.stopPropagation(),e.props.disabled||(e.props.userAction={type:"handleListitemClick"},rJ(e,t))}function kJ(e,t,n,i){var r;(r=i).addProps(["options","expanded","placeholder","multiple","selections","activeValue","activeDescendant","forceExpanded","optionLoader","showEmptyMessage","emptyMessage","option","listboxStyles","invertPopover","dropdownWrapperStyles","optionsLoader","loadMoreOption","hasNextPage","page","behavior","selectionRemovable","openOnRemove","clearOnClick","openOnClick","hideOnOpen","closeOnSelect","openOnFocus","selectionAppearance","optionsAppearance","filter","inputText","formattedSelections","lastVisibleIndex","optionLoaderValues","disabledInternally","isLoadingOption","isLoadingOptions","thereIsAnOptionSelected","formattedSelections","activeSelections","allowNewValues","inputStd","isSingleOption","max","disableDragAndDrop","clearSearchOnOpen","firstSelectionLabel","memoOptions","loadOnCreated","alwaysLoadOnOpen","showFormattedSelections","truncationCount","reloadOnCommit","activeSelectionValue","setForceExpanded","option","loadOnScroll","optionsLoadingCounter","optionLoadingCounter","draggable","deselect"]),void 0===r.props.deselect?r.props.deselect=!0:r.props.deselect=xq(r.props.deselect),r.props.option={},r.props.expanded=!1,r.props.inputStd=[],void 0===r.props.draggable?r.props.draggable=!0:"false"===r.props.draggable&&(r.props.draggable=!1),r.props.options||(Hq(350,{node:r,inputType:r.props.type}),r.props.options=[]),"disabled"in r.props&&(r.props.disabled=xq(r.props.disabled)),r.props.selections=[],r.props.memoOptions=[],r.props.invertPopover=!1,r.props.dropdownWrapperStyles={position:"absolute",top:"100%",overflow:"auto",minWidth:"100%"},r.props.decrementCount=0,r.props.page=1,r.props.loadMoreOption={label:"Load more",value:$3},r.props.listboxStyles={},r.props.optionsLoadingCounter=0,r.props.optionLoadingCounter=0,r.props.searchable=xq(r.props.searchable),r.props.loadOnScroll=xq(r.props.loadOnScroll),r.props.multiple=xq(r.props.multiple)||!1,"taglist"===r.props.type&&(r.props.multiple=!0),r.props.openOnFocus=xq(r.props.openOnFocus),r.props.openOnRemove=void 0!==r.props.openOnRemove&&xq(r.props.openOnRemove),r.props.hasNextPage=eJ.bind(null,r),r.props.initialOptions=[...r.props.options],r.props.optionLoaderValues=[],r.props.loadOnCreated=xq(r.props.loadOnCreated),r.props.max&&"number"!=typeof r.props.max?r.props.max=parseInt(r.props.max):r.props.max&&!r.props.multiple&&(r.props.max=void 0),r.on("mounted",(()=>lJ(r))),r.on("prop:popoverCoordinates",(()=>lJ(r))),i.props.multiple?function(e){e.hook.input(((t,n)=>(e.props.highlightedRange&&!e.props.optionRemoved&&(t.splice(e.props.highlightedRange.index,1,KQ(e.props.option)),t=t.filter((e=>void 0!==e))),e.props.inputStd=t&&Array.isArray(t)?[...new Set(t)]:[],n(void 0===t?void 0:[...e.props.inputStd]))))}(i):function(e){e.hook.input(((t,n)=>(e.props.inputStd=void 0===t||""===t||null===t?[]:[t],n(t))))}(i),e(i),uJ(i),function(e){e.on("created",(()=>{e.context&&(e.props.trackHover=!0,void 0!==e.props.disabled||e.props.optionsLoader||!e.props.options||e.props.options.length||void 0!==e.props.emptyMessage||e.props.allowNewValues||0!==e.props.inputStd.length||(e.props.disabledInternally=!0),cJ(e),e.props.loadOnCreated&&!e.props.optionsLoaded?JQ(e):e.props.optionsLoaded&&(e.props.optionsLoaded=!1),e.props.forceExpanded=xq(e.props.forceExpanded),e.props.forceExpanded&&(e.props.dropdownWrapperStyles=B(F({},e.props.dropdownWrapperStyles),{zIndex:"999",pointerEvents:"auto"}),setTimeout((()=>{e.props.setForceExpanded=!0}),100)))}))}(i),hJ(i),t(i),function(e){e.on("prop:selections",(({payload:t})=>{e.props.max&&(e.props.maxReached=t.length>=e.props.max)})),e.on("prop:maxReached",(({payload:t})=>{t?(e.props.expanded=!1,e.props.disabledInternally=!0):e.props.disabledInternally=!1})),e.on("prop:optionsLoadingCounter",(({payload:t})=>{0===t&&(e.props.emptyMessage&&(e.props.showEmptyMessage=!e.props.options.length),0===e.props.optionLoadingCounter&&e.store.set(L3))})),e.on("prop:optionLoadingCounter",(({payload:t})=>{0===t&&0===e.props.optionsLoadingCounter&&e.store.set(L3)})),e.on("prop:disabled",(({payload:t})=>{t&&(e.props.expanded=!1)})),e.on("prop:options",(({payload:t})=>{e.props.emptyMessage&&"function"!=typeof e.props.optionsLoader&&(e.props.showEmptyMessage=!t.length),t.length?e.props.disabledInternally=!1:t.length||e.props.optionsLoader||void 0!==e.props.emptyMessage||e.props.allowNewValues||0!==e.props.inputStd.length||e.props.searchValue||(e.props.disabledInternally=!0),iJ(e)})),e.on("prop:expanded",(({payload:n})=>{var i;if(P2)if(n){if(e.props.trackHover=!1,e.props.options&&!e.props.options.length&&"function"!=typeof e.props.optionsLoader&&e.props.emptyMessage&&(e.props.showEmptyMessage=!0),setTimeout((()=>document.addEventListener("click",t)),10),"text-input"===e.props.selectionAppearance&&e.props.multiple)return;const n=null===(i=e.props.__root)||void 0===i?void 0:i.getElementById(`${e.props.id}`);n instanceof HTMLInputElement&&(n.focus(),n.value="",n.value=e.props.inputText)}else document.removeEventListener("click",t),e.props.trackHover=!1,e.props.showEmptyMessage=!1}));const t=H((()=>{e.props.activeSelectionValue=void 0,e.props.expanded=!1}),"t")}(i),n(i)}function xJ(e){var t,n;e.props.searchValue||null===(n=null===(t=e.props.__root)||void 0===t?void 0:t.getElementById(`${e.props.id}_tag-wrapper_${e.props.selections.length-1}`))||void 0===n||n.focus()}function TJ(e,t,n){var i,r,a;if(n.preventDefault(),e.props.trackHover=!1,e.props.expanded){const n=e.props.options.reduce(((e,t)=>{var n;return(null===(n=null==t?void 0:t.attrs)||void 0===n?void 0:n.disabled)||e.push(KQ(t)),e}),[]);(null===(i=e.store.hasNextPage)||void 0===i?void 0:i.value)&&n.push($3);const s=n.indexOf(e.props.activeValue);-1===s&&n.length?e.props.activeValue=n[0]:"ArrowDown"===t&&n.length>s+1?e.props.activeValue=n[s+1]:"ArrowUp"===t&&s>0?e.props.activeValue=n[s-1]:"ArrowUp"===t&&0===s&&(null===(a=null===(r=e.props.__root)||void 0===r?void 0:r.getElementById(`${e.props.id}_tag-wrapper_${e.props.selections.length-1}`))||void 0===a||a.focus(),e.props.expanded=!1)}else e.props.expanded||"ArrowDown"!==t||(e.props.expanded=!0)}function EJ(e,t){var n,i,r,a,s;if(("taglist"===e.props.type||"tags"===e.props.selectionAppearance)&&e.props.inputStd.length){if("ArrowLeft"===t)return e.props.selections.length&&(null===(i=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}_tag-wrapper_${e.props.selections.length-1}`))||void 0===i||i.focus(),e.props.activeSelectionValue=(null===(r=e.props.selections[e.props.selections.length-1])||void 0===r?void 0:r.value)||void 0),void(e.props.expanded=!1);"ArrowRight"===t&&(null===(a=document.getElementById(`${e.props.id}
100_tag-wrapper_0`))||void 0===a||a.focus(),e.props.activeSelectionValue=(null===(s=e.props.selections[0])||void 0===s?void 0:s.value)||void 0),e.props.expanded=!1}}function AJ(e){var t,n;e.props.expanded=!0,null===(n=null===(t=e.props.__root)||void 0===t?void 0:t.getElementById(`${e.props.id}`))||void 0===n||n.focus()}function LJ(e,t,n,i=!0){var r,a,s,o,l,u;const c=n.key;if(n.altKey){const i=GQ(),r=e.props.selections.findIndex((e=>e.value===t.value)),a=[...e.props.selections];"ArrowRight"===n.key?r<e.props.selections.length-1&&(a.splice(r,1),a.splice(r+1,0,t)):"ArrowLeft"===n.key&&r>0&&(a.splice(r,1),a.splice(r-1,0,t)),e.props.activeSelectionValue=t.value,e.input([...a.map(KQ)]),setTimeout((()=>{i instanceof HTMLElement&&i.focus()}),100)}else{const n=e.props.selections.map(KQ).indexOf(KQ(t));if(-1===n)return;const d="ArrowRight"===c?n+1:n-1;if(d>=e.props.selections.length){if(!i)return e.props.expanded=!0,e.props.activeSelectionValue=void 0,void(null===(a=null===(r=e.props.__root)||void 0===r?void 0:r.getElementById(`${e.props.id}`))||void 0===a||a.focus());null===(o=null===(s=e.props.__root)||void 0===s?void 0:s.getElementById(`${e.props.id}`))||void 0===o||o.focus()}else if(d<0)return;const p=null===(l=e.props.__root)||void 0===l?void 0:l.getElementById(`${e.props.id}_tag-wrapper_${d}`);p&&p.focus(),e.props.activeSelectionValue=(null===(u=e.props.selections[d])||void 0===u?void 0:u.value)||void 0}}function IJ(e,t,n){var i;if(!(n.currentTarget instanceof HTMLElement))return;if(e.props.searchValue)return;const r=e.props.selections.map(KQ).indexOf(KQ(t));if(-1===r)return;const a=e.props.selections[r+1]?r+1:r-1,s=null===(i=e.props.__root)||void 0===i?void 0:i.getElementById(`${e.props.id}_tag-wrapper_${a}`);s&&s.focus(),e.props.userAction={type:"tagDelete"},tJ(e,t)}function $J(e,t){var n;if(t.preventDefault(),e.props.allowNewValues&&e.props.searchValue&&e.input(aJ(e,e.props.searchValue)),e.props.expanded){if(e.props.activeValue===$3)return void(null===(n=e.context)||void 0===n||n.handlers.loadMore());const t=e.props.options.find((t=>rq(KQ(t),e.props.activeValue)));if(!t)return;rJ(e,t)}else e.props.expanded=!0}function DJ(e){e.props.expanded&&(e.props.expanded=!1)}function PJ(e,t,n){if(n.stopPropagation(),!e.props.disabled)switch(n.key){case"ArrowDown":AJ(e);break;case"ArrowRight":case"ArrowLeft":LJ(e,t,n,!1);break;case"Delete":case"Backspace":IJ(e,t,n);break;case"Tab":!function(e,t,n,i=!1){var r,a;n.preventDefault();const s=e.props.selections.map(KQ).indexOf(KQ(t));if(-1===s)return;const o=n.shiftKey?s-1:s+1;if(o>=e.props.selections.length)return i?(e.props.expanded=!0,void(e.props.activeSelectionValue=void 0)):void 0;if(o<0)return;const l=null===(r=e.props.__root)||void 0===r?void 0:r.getElementById(`${e.props.id}_tag-wrapper_${o}`);l&&l.focus(),e.props.activeSelectionValue=(null===(a=e.props.selections[o])||void 0===a?void 0:a.value)||void 0}(e,t,n)}}function OJ(e,t,n){if(!e.props.disabled)switch(n.key){case"ArrowUp":case"ArrowDown":!function(e,t,n){var i,r,a,s;n.preventDefault();const o=n.key,l=e.props.selections.map(KQ).indexOf(KQ(t));if(-1===l)return;const u="ArrowDown"===o?l+1:l-1;if(u<0&&(null===(r=null===(i=e.props.__root)||void 0===i?void 0:i.getElementById(`${e.props.id}`))||void 0===r||r.focus()),u<0||u>=e.props.selections.length)return;const c=null===(a=e.props.__root)||void 0===a?void 0:a.getElementById(`${e.props.id}_selection_wrapper_${u}`);c&&c.focus(),e.props.activeSelectionValue=(null===(s=e.props.selections[u])||void 0===s?void 0:s.value)||void 0}(e,t,n);break;case"Enter":break;case"Tab":!function(e,t,n){var i,r,a,s;if(t){const o=e.props.selections.map(KQ).indexOf(KQ(t));if(-1===o)return;const l=n.shiftKey?o-1:o+1;if(l>=e.props.selections.length)return;if(l<0)return void(null===(r=null===(i=e.props.__root)||void 0===i?void 0:i.getElementById(`${e.props.id}`))||void 0===r||r.focus());const u=null===(a=e.props.__root)||void 0===a?void 0:a.getElementById(`${e.props.id}_selection_wrapper_${l}`);u&&u.focus(),e.props.activeSelectionValue=(null===(s=e.props.selections[l])||void 0===s?void 0:s.value)||void 0}}
100(e,t,n);break;case"Delete":case"Backspace":!function(e,t){var n,i;if(t){const r=e.props.selections.map(KQ).indexOf(KQ(t));if(-1===r)return;const a=e.props.selections[r+1]?r+1:r-1,s=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}_selection_wrapper_${a}`);s&&s.focus(),e.props.activeSelectionValue=(null===(i=e.props.selections[a])||void 0===i?void 0:i.value)||void 0}t&&1!==e.props.selections.length||(e.props.userAction={type:"selectionDelete"}),tJ(e,t)}(e,t)}}function MJ(e,t){if(e.props.disabled)return;if(!(t.currentTarget instanceof HTMLElement)||e.props.id!==t.currentTarget.id)return;const n=t.key;switch(n){case"Tab":(i=e).props.expanded&&(i.props.expanded=!1);break;case"ArrowUp":case"ArrowDown":TJ(e,n,t);break;case"ArrowLeft":case"ArrowRight":EJ(e,n);break;case"Enter":$J(e,t);break;case"Escape":DJ(e);break;case"Delete":case"Backspace":xJ(e);break;default:e.emit("unusedKeydown",t)}var i}function RJ(e,t){if(e.props.disabled)return;if(!(t.currentTarget instanceof HTMLElement)||e.props.id!==t.currentTarget.id)return;const n=t.key;switch(n){case"Tab":r=t,(i=e).props.expanded=!1,i.props.multiple&&i.props.selections.length&&(r.preventDefault(),null===(s=null===(a=i.props.__root)||void 0===a?void 0:a.getElementById(`${i.props.id}_selection_wrapper_0`))||void 0===s||s.focus(),i.props.activeSelectionValue=(null===(o=i.props.selections[0])||void 0===o?void 0:o.value)||void 0);break;case"ArrowUp":case"ArrowDown":TJ(e,n,t);break;case"ArrowRight":case"ArrowLeft":EJ(e,n);break;case"Enter":$J(e,t);break;case"Escape":DJ(e);break;case"Delete":case"Backspace":xJ(e)}var i,r,a,s,o}function NJ(e,t){var n;if(t.stopPropagation(),0===t.detail)return;if(e.props.disabled)return;e.props.attrs.onClick&&e.props.attrs.onClick(t);const i=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}`);e.props.justOpened?e.props.justOpened=!1:e.props.expanded?e.props.expanded=!1:(i&&"mouse"!==t.pointerType?(e.props.mouseX=-1,e.props.mouseY=-1):(e.props.mouseX=t.clientX,e.props.mouseY=t.clientY),e.props.expanded=!0,null==i||i.focus())}function FJ(e){e.props.disabled||(e.props.attrs.onFocus&&e.props.attrs.onFocus(),e.props.skipOpen?e.props.skipOpen=!1:e.props.openOnFocus&&(e.props.justOpened=!0,e.props.expanded=!0))}function BJ(e){let t,n="";e.on("unusedKeydown",(({payload:i})=>{if(!i.isComposing&&1===[...i.key].length){if(!n&&" "===i.key)return void function(e,t){var n;if(t.preventDefault(),e.props.expanded){if(e.props.activeValue===$3)return void(null===(n=e.context)||void 0===n||n.handlers.loadMore());const t=e.props.options.find((t=>rq(KQ(t),e.props.activeValue)));if(!t)return;rJ(e,t)}else e.props.expanded=!0}(e,i);e.props.expanded=!0,clearTimeout(t),n+=i.key;const r=e.props.options.find((e=>e.label.toLowerCase().startsWith(n.toLowerCase())));r&&(e.props.activeValue=KQ(r)),t=setTimeout((()=>{n=""}),400)}}))}function HJ(e){jJ(e),e.on("prop:selections",(()=>{e.props.skipFormatSelections=!1,jJ(e)})),P2&&Lq(`${e.props.id}_selections`,VJ.bind(null,e),e.props.__root)}function jJ(e){e.isCreated&&(e.props.selections.length&&e.props.lastVisibleIndex&&e.props.selections.length-e.props.lastVisibleIndex>1?e.props.truncationCount="+ "+(e.props.selections.length-e.props.lastVisibleIndex-1).toString():e.props.truncationCount=void 0,e.props.formattedSelections=e.props.selections.map(((t,n)=>e.props.lastVisibleIndex&&n===e.props.lastVisibleIndex&&0!==n?e.props.lastTruncatedElText&&n===e.props.selections.length-1?e.props.lastTruncatedElText:n===e.props.selections.length-1?t.label:t.label+"...":n===e.props.selections.length-1?t.label:t.label+", ")))}function UJ(e){var t,n;if(!P2||!e.context)return;const i=null===(t=e.props.__root)||void 0===t?void 0:t.getElementById(`${e.props.id}_selections`);if(!(i instanceof HTMLElement))return;const r=i.parentNode;if(!(r instanceof HTMLElement))return;let a=i.getBoundingClientRect().width;const s=.98*r.getBoundingClientRect().width,o=Array.prototype.slice.call(i.children),l=[...e.props.selections];if(a>s){const t=[];let i=0;for(let e=0;e<l.length;e++)t.push([l[e],o[e]]);for(let r=t.length-1;r>=0;r--){const o=t[r];if(!(o[1]instanceof HTMLElement))return;i+=o[1].getBoundingClientRect().width+parseFloat(window.getComputedStyle(o[1]).marginRight)+parseFloat(window.getComputedStyle(o[1]).marginLeft);const l=a-i;if(s>l){const t=o[0].label;e.props.skipFormatSelections=!0,o[1].textContent=t;let i=!1;for(let a=t.length;a>=0;a--){if(e.props.skipFormatSelections=!0,o[1].textContent=t.slice(0,a).trim()+"...",l+o[1].getBoundingClientRect().width<s){if(a<4){e.props.lastVisibleIndex=r-1,e.props.lastTruncatedElText=null;break}if(e.props.lastVisibleIndex=r,e.props.lastTruncatedElText&&o[1].textContent.slice(0,4)===e.props.lastTruncatedElText.slice(0,4))break;e.props.lastTruncatedElText=null===(n=o[1])||void 0===n?void 0:n.textContent;break}0===a&&(i=!0)}o[1].textContent=e.props.lastTruncatedElText&&!i&&0!==r?e.props.lastTruncatedElText:t,null===e.props.lastVisibleIndex&&(e.props.lastVisibleIndex=0===r?0:r-1,e.props.lastTruncatedElText=null),setTimeout((()=>{jJ(e)}));break}}}else e.props.lastTruncatedElText=null,e.props.lastVisibleIndex=null,jJ(e)}function VJ(e,t){const n=new ResizeObserver((()=>{e.props.selections&&0!==e.props.selections.length&&(e.props.skipFormatSelections?e.props.skipFormatSelections=!1:UJ(e))})),i=new ResizeObserver((()=>{UJ(e)}));n.observe(t),t.parentNode instanceof Element&&i.observe(t.parentNode)}function qJ(e){var t,n;if("undefined"==typeof window)return;const i=null===(t=e.props.__root)||void 0===t?void 0:t.getElementById(`${e.props.id}_popover`),r=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}`);if(!r||!i)return;const a=i.style.paddingTop,s=i.style.paddingBottom,o=i.style.paddingLeft;
100i.style.paddingTop="0",i.style.paddingBottom="0",i.style.paddingLeft="0";const l=r.getBoundingClientRect(),u=i.getBoundingClientRect(),c=Math.round(l.top-u.top)+"px",d=Math.round(l.left-u.left-5)+"px",p=Math.max(Math.round(Math.min(u.height-u.top,window.innerHeight)-(l.top+l.height)),0)+"px";i.style.paddingTop=a,i.style.paddingBottom=s,i.style.paddingLeft=o,e.props.dropdownWrapperStyles=B(F({},e.props.dropdownWrapperStyles),{paddingTop:c,paddingLeft:d,paddingBottom:p}),e.props.listboxStyles=B(F({},e.props.listboxStyles),{minWidth:"overscroll"===e.props.behavior?`min(${l.width+"px"}, calc(100vw - 4em))`:l.width+"px",maxWidth:"calc(100vw - 4em)"})}function zJ(e,t){var n,i;let r=null;if(e.props.activeDescendant){const a=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(e.props.activeDescendant);if(!a)return r;e.props.ignoreScroll=!0;const s=null===(i=e.props.__root)||void 0===i?void 0:i.getElementById(`${e.props.id}_listbox`);if(!s)return r;const o=t.getBoundingClientRect(),l=s.getBoundingClientRect(),u=parseInt(getComputedStyle(t).paddingTop),c=parseInt(getComputedStyle(t).paddingBottom),d=a.offsetTop-u,p=Math.max(d-u,0),h=Math.max(t.scrollHeight-c-d-o.height,0),f=l.height-p-h;t.scrollTop=d;const m=H((()=>{t.scrollTop=h>0?h<u?t.scrollHeight:u:p<c?0:d-c}),"g"),g=Math.min(150,l.height);p>0&&h>0||0===p&&0===h||f>g?t.scrollTop=d:m(),t.clientHeight/2<t.scrollTop&&(r=e.props.options.filter((e=>{var t;return!(null===(t=e.attrs)||void 0===t?void 0:t.disabled)})).findIndex((t=>rq(e.value,KQ(t))))),-1===r&&(r=null)}return r}function WJ(e){e.addProps(["behavior"]),e.on("created",(()=>{"overscroll"===e.props.behavior&&("function"==typeof e.props.optionsLoader&&jq(300,[e]),e.props.dropdownWrapperStyles=Sq(M3),e.props.listboxStyles={display:"inline-block"},e.props.styleWrapper=qJ.bind(null,e),e.props.positionListBox=zJ.bind(null,e))})),e.on("prop:expanded",(({payload:t})=>{"overscroll"===e.props.behavior&&(t?function(){H3=document.documentElement.scrollTop;for(const e in R3)B3[e]=document.documentElement.style[e],document.documentElement.style[e]=R3[e];for(const e in N3)F3[e]=document.body.style[e],document.body.style[e]=N3[e];document.body.scrollTop=H3}():function(){for(const e in R3)document.documentElement.style[e]=B3[e];for(const e in N3)document.body.style[e]=F3[e];document.body.scrollTop=0,document.documentElement.scrollTop=H3}())}))}function GJ(e){e.addProps(["multiLine"]),e.on("created",(()=>{P2&&(e.props.multiLineHeight=void 0,Lq(`${e.props.id}_selections`,KJ.bind(null,e),e.props.__root))}))}function KJ(e){var t;const n=new ResizeObserver((t=>{for(const n of t){const{height:t}=n.contentRect;e.props.selectionsHeight!==t&&(e.props.selectionsHeight=t),YJ(e,n.target)}})),i=null===(t=e.props.__root)||void 0===t?void 0:t.getElementById(`${e.props.id}_selections`);i&&n.observe(i)}function YJ(e,t){var n;const i=t.querySelectorAll(`[id^="${e.props.id}_tag-wrapper"`);let r,a=[];if("taglist"===e.props.type){const t=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}`);if(!t)return;a=[t,...Array.from(i)]}else a=Array.from(i);if(!i)return;let s=!1;for(const o of a)if(void 0===r)r=o.getBoundingClientRect();else{const t=o.getBoundingClientRect();if(r.top>=t.top+t.height/5||r.top<=t.top-t.height/5){s=!0,e.props.multiLine=!0;break}}s||(e.props.multiLine=!1)}function ZJ(e){function t(){return V(this,null,(function*(){const{x:t,y:r,width:a,height:s}=function(e,t){if(!e||!t)return{x:0,y:0};const{x:n,y:i,width:r,height:a}=t.getBoundingClientRect();return{x:n+(window.pageXOffset||document.documentElement.scrollLeft),y:i+a+(window.pageYOffset||document.documentElement.scrollTop),width:r,height:a}}(n,i);e.props.popoverAncestorCoordinates={x:t,y:r,width:a,height:s},e.props.popoverCoordinates={x:t,y:r,width:e.props.popoverAncestorCoordinates.width,height:0}}))}if(H(t,"t"),e.addProps(["popover","popoverOffset","usePopover","popoverCoordinates","popoverAncestorCoordinates"]),e.props.popover=xq(e.props.popover)?"manual":void 0,"input"!==e.type||"overscroll"===e.props.behavior)return;let n=null,i=null;e.props.popoverOffset=xq(e.props.popoverOffset)?parseInt(e.props.popoverOffset):0,e.props.popover&&("undefined"!=typeof document&&"popover"in HTMLElement.prototype?(e.on("mounted",(()=>{let n=null;if(!e.context)return;e.props.usePopover=!0,e.props.popoverCoordinates={x:0,y:0,width:0,height:0},e.props.popoverAncestorCoordinates={x:0,y:0,width:0,height:0};const i=(r=H((()=>{e.context&&t()}),"r"),25,function(...e){n||(r.apply(this,e),n=window.setTimeout((()=>{n=null}),25))});var r;window.addEventListener("resize",i)})),e.on("destroyed",(()=>{document.removeEventListener("resize",null)})),e.on("prop:expanded",(({payload:r})=>{var a;e.context&&Lq(`${null===(a=e.context)||void 0===a?void 0:a.id}_popover`,(()=>
100{e.context&&(n=document.querySelector(`#${e.context.id}_popover[popover]`)||document.querySelector(`#${e.context.id}_popover [popover]`),i||(i=function(e){if(!e)return null;let t=e.parentElement;for(;t&&"static"===window.getComputedStyle(t).position;)t=t.parentElement;return t}(n)),t(),r?n&&(null==n?void 0:n.matches(":popover-open"))||(null==n||n.showPopover(),setTimeout((()=>{e.props.popoverCoordinates.height=(null==n?void 0:n.offsetHeight)||0}),0)):(null==n?void 0:n.matches(":popover-open"))&&(null==n||n.hidePopover(),e.props.popoverCoordinates.height=0))}))}))):console.warn('FormKit: Popover API is not supported in this browser â input panels will be rendered with fallback CSS positioning. This could result in inaccessible inputs due to parent containers using "overflow: hidden" or z-index conflicts.'))}function XJ(e){var t,n,i,r,a,s,o,l,u,c,d,p,h,f,m,g;if(null!==(t=(l=e.props).removeControl)&&void 0!==t||(l.removeControl=!0),null!==(n=(u=e.props).upControl)&&void 0!==n||(u.upControl=!0),null!==(i=(c=e.props).downControl)&&void 0!==i||(c.downControl=!0),null!==(r=(d=e.props).insertControl)&&void 0!==r||(d.insertControl=!1),null!==(a=(p=e.props).addButton)&&void 0!==a||(p.addButton=!0),null!==(s=(h=e.props).addLabel)&&void 0!==s||(h.addLabel=!1),null!==(o=(f=e.props).addAttrs)&&void 0!==o||(f.addAttrs={}),e.props.draggable=xq(e.props.draggable),e.props.min=void 0!==e.props.min?Number(e.props.min):1,e.props.max=void 0!==e.props.max?Number(e.props.max):1/0,e.props.min>e.props.max)throw Error("Repeater: min must be less than max");if(Array.isArray(e.value))if(e.value.length<e.props.min){const t=NQ(e.props.min-e.value.length,(()=>({})));e.input(e.value.concat(t),!1)}else e.value.length>e.props.max&&e.input(e.value.slice(0,e.props.max),!1);else e.input(NQ(e.props.min,(()=>({}))),!1);e.context&&(m=e,(g=e.context.fns).createShift=(e,t)=>()=>{const n=m._value;n.splice(e+t,0,n.splice(e,1)[0]),m.input(n,!1)},g.createInsert=e=>()=>{const t=m._value;t.splice(e+1,0,{}),m.input(t,!1)},g.createAppend=()=>()=>{const e=m._value;e.push({}),m.input(e,!1)},g.createRemover=e=>()=>{const t=m._value;t.splice(e,1),m.input(t,!1)})}function QJ(e,t){function n(){return Array.isArray(t.value)?t.value:[]}function i(e,n){t.input(n)}if(H(n,"o"),H(i,"n"),!t.context)return;const r={group:t.props.id,dragHandle:`#${t.props.id}_drag_handle`,draggingClass:t.context.classes.dragging,dropZoneClass:t.context.classes.dropZone,root:t.props.__root,disabled:!t.props.draggable,plugins:[BX()],touchDraggingClass:t.context.classes.touchDragging,touchDropZoneClass:t.context.classes.touchDropZone,draggable:H((e=>"LI"===e.tagName),"draggable")};JX({parent:e,getValues:n,setValues:i,config:r}),t.on("prop:disabled",(({payload:t})=>{r.disabled=t,JX({parent:e,getValues:n,setValues:i,config:r})})),t.on("prop:draggable",(({payload:t})=>{r.disabled=!t,JX({parent:e,getValues:n,setValues:i,config:r})}))}function JJ(e,t){var n,i;if(!e.props.disabled&&t.currentTarget instanceof HTMLElement){let r;t instanceof MouseEvent?r=t.clientX:(r=t.changedTouches[0].clientX,document.documentElement.style.overflow=e.props.initialBodyOverflow);let a=n1(e,r,t.currentTarget)||0;a=a>e.props.min?a:e.props.min,a=a<e.props.max?a:e.props.max,e.input(a),null===(i=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}`))||void 0===i||i.focus()}}function e1(e,t){!e.props.disabled&&t.currentTarget instanceof HTMLElement&&r1(e,n1(e,window.TouchEvent&&t instanceof TouchEvent&&t instanceof TouchEvent?t.touches[0].clientX:t instanceof MouseEvent?t.clientX:0,t.currentTarget)||0)}function t1(e){r1(e)}function n1(e,t,n){const i=n.getBoundingClientRect();return function(e,t){const n=1/(t||1);return Math.ceil(e*n)/n}((t-i.x)/i.width*e.props.max,e.props.step)}function i1(e){setTimeout((()=>{var t;const n=null===(t=e.props.__root)||void 0===t?void 0:t.getElementById(`${e.props.id}`);n&&(e.props.wrapperWidth=`0 0 ${n.offsetWidth/e.props.max}px`)}))}function r1(e,t){let n=0;n=t?Math.round(t/e.props.max*100):"number"==typeof e._value?Math.round(e._value/e.props.max*100):0;const i=100-n;e.props.onWidth=n,e.props.offWidth=i}function a1(e){e.addProps(["inputText","selectionAppearance","searchValue","openOnClick","filteredOptions","search","debounce","showInput","visibilityStyles","selectionStyles","multiple","filter","hasHighlightedRange","clearOnClick","debounce"]),void 0===e.props.debounce?e.props.debounce=200:e.props.debounce=parseInt(e.props.debounce),e.props.nonceKey="searchValue",e.props.searchValue="",e.props.inputText="",e.props.filterOptions=YQ.bind(null,e),e.props.reloadOnCommit=xq(e.props.reloadOnCommit),void 0===e.props.alwaysLoadOnOpen?e.props.alwaysLoadOnOpen=!0:e.props.alwaysLoadOnOpen=xq(e.props.alwaysLoadOnOpen),"function"!=typeof e.props.filter&&(e.props.filter=(e,t)=>e.label.toLowerCase().includes(t.toLowerCase())),e.on("created",(()=>{e.context&&P2&&(e.context.handlers.focus=l1.bind(null,e),e.context.handlers.input=s1.bind(null,e),e.context.handlers.focus=l1.bind(null,e),e.context.handlers.click=o1.bind(null,e),e.context.handlers.toggleListbox=u1.bind(null,e),e.context.handlers.keydown=RJ.bind(null,e),e.context.handlers.selectionKeydown=t=>n=>OJ(e,t,n),e.context.handlers.searchInputTagKeydown=t=>n=>function(e,t,n){if(n.stopPropagation(),!e.props.disabled)switch(n.key){case"ArrowDown":AJ(e);break;case"ArrowRight":case"ArrowLeft":LJ(e,t,n);break;case"Delete":case"Backspace":IJ(e,t,n)}}
100(e,t,n),e.on("prop:options",(({payload:t})=>{if((0===e.props.initialOptions.length&&"function"!=typeof e.props.optionsLoader||!e.props.searchValue&&t.length)&&(e.props.initialOptions=[...t]),e.props.selections&&e.props.selections.length&&t.length)for(let n=0;n<e.props.selections.length;n++){const i=e.props.selections[n],r=t.find((e=>KQ(e)===i.value));r&&(e.props.selections[n]=r)}})))})),e.on("prop:expanded",(({payload:t})=>{t||T3.delete(e)}))}function s1(e,t){if(e.props.disabled)return;const n=t.target;e.props.inputText=n.value,e.emit("handleSearchInput",n.value),e.props.searchValue&&YQ(e,e.props.searchValue,!0)}function o1(e,t){t.stopPropagation(),e.props.disabled||e.props.disabledInternally||(e.props.attrs.onClick&&e.props.attrs.onClick(t),(!e.props.expanded&&e.props.openOnClick||e.props.openOnFocus)&&(e.props.expanded=!0))}function l1(e){e.props.disabled||e.props.disabledInternally||(e.props.attrs.onFocus&&e.props.attrs.onFocus(),e.props.activeSelectionValue=void 0,e.props.skipOpen?e.props.skipOpen=!1:e.props.openOnFocus&&(e.props.expanded=!0))}function u1(e){var t,n,i;e.props.disabled||e.props.disabledInternally||(null===(t=e.context)||void 0===t?void 0:t.state.loading)||(e.props.expanded=!e.props.expanded,e.props.openOnFocus||null===(i=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}`))||void 0===i||i.focus())}function c1(e){e.props.searchValue=null,e.on("commit",(()=>{e.props.searchValue=null,e.props.highlightedRange||d1(e)})),e.on("created",(()=>{if(!e.context||!S5)return;var n;e.on("handleSearchInput",(({payload:t})=>{""===t?(e.props.searchValue=null,e.input([])):t&&0===e.props.inputStd.length?e.props.searchValue=t:t&&e.props.inputStd.length>0&&(e.props.searchValue=function(e){var t;const n=h1(e);if(e.props.highlightedRange){const[t,i]=p1(e,n);return e.props.inputText.slice(t,i)}return e.props.inputText.slice((null===(t=n[n.length-1])||void 0===t?void 0:t.end)+2)}(e)),!e.props.expanded&&t?e.props.expanded=!0:!t&&e.props.expanded&&(e.props.expanded=!1)})),Lq(`${(n=e).props.id}`,(e=>{e instanceof HTMLInputElement&&C5.set(e,n)}),n.props.__root),S5&&!k5&&(k5=!0,document.addEventListener("selectionchange",(()=>{const e=GQ();if(e instanceof HTMLInputElement&&C5.has(e)){const n=C5.get(e);n&&(t=n,clearTimeout(w5.get(t)),w5.set(t,setTimeout((()=>{var e,n,i,r;const a=null===(e=t.props.__root)||void 0===e?void 0:e.getElementById(`${t.props.id}`);if(a instanceof HTMLInputElement){const e=h1(t),s=e.findIndex((e=>null!==a.selectionStart?a.selectionStart>=e.start&&a.selectionStart<=e.end:null!==a.selectionEnd&&a.selectionEnd>=e.start&&a.selectionEnd<=e.end)),o=null===(n=e[e.length-1])||void 0===n?void 0:n.end;if(0===a.selectionStart&&a.selectionEnd===(null===(i=t.props.inputText)||void 0===i?void 0:i.length))return;if("string"==typeof t.props.searchValue&&t.props.highlightedRange){if(e.length){const n=t.props.highlightedRange,[i,r]=p1(t,e);if(null!==a.selectionEnd&&(a.selectionEnd<i||a.selectionEnd>r)){const e=n.end-n.start-(r-i),s=a.selectionEnd;t.props.inputText=t.props.option.label,t.props.highlightedRange=void 0,t.props.searchValue=null,a.value=t.props.inputText,a.selectionStart=a.selectionEnd=s+(s>i?e:0)}}}else if(s>=0&&null!==a.selectionStart&&(o!==(null===(r=t.props.inputText)||void 0===r?void 0:r.length)||a.selectionStart<o)){const n=e[s],i=t.props.inputText.substr(0,o),r=n.start+(n.index>0?1:0),l=n.end+(e.length-1>n.index?-1:0);i!==t.props.inputText&&(t.props.inputText=i,a.value=i),t.props.highlightedRange=n,a.selectionStart=r,a.selectionEnd=l}else t.props.highlightedRange=void 0,d1(t);if(null!==a.selectionStart&&a.selectionStart>=o&&", "!==t.props.inputText.substring(o,o+2)){let e=t.props.inputText.substring(0,o);e=t.props.multiple&&t.props.max&&Array.isArray(t.props.inputStd)&&t.props.inputStd.length>=t.props.max?e:`${e},`,t.props.inputText=`${e} ${t.props.inputText.substring(o).replace(/^[,\s]{1,2}/,"")}`}}}),5)))}var t})));const i=e.context.handlers.keydown;e.context.handlers.keydown=n=>{i(n),function(e,n){var i,r,a,s;if(["ArrowRight","ArrowLeft"].includes(n.key)&&n.target instanceof HTMLInputElement&&null!==n.target.selectionEnd&&null!==n.target.selectionStart){if(0===n.target.selectionStart&&n.target.selectionEnd===(null===(i=e.props.inputText)||void 0===i?void 0:i.length))"ArrowLeft"===n.key?t(0):t(-1);else if(!e.props.searchValue){e.props.searchValue=null;const t=h1(e),i=null===(r=t[t.length-1])||void 0===r?void 0:r.end;n.target.selectionStart<i&&(n.target.selectionStart=Math.max(0,"ArrowLeft"===n.key?n.target.selectionStart-2:n.target.selectionEnd+2))}}else if(["Delete","Backspace"].includes(n.key))e.props.highlightedRange&&!e.props.searchValue?(tJ(e,e.props.highlightedRange.option),0===e.props.inputStd.length&&(e.props.highlightedRange=void 0)):n.target instanceof HTMLInputElement&&(e.props.searchValue=null,t(-1,!0)&&n.preventDefault());else if(n.target instanceof HTMLInputElement&&0===n.target.selectionStart&&n.target.selectionEnd===(null===(a=e.props.inputText)||void 0===a?void 0:a.length)&&(null===(s=e.props.inputText)||void 0===s?void 0:s.length)&&0===e.props.selections.length)n.preventDefault();else if("Tab"===n.key)return;"ArrowLeft"===n.key&&t(-1,!0)&&n.preventDefault()}
100(e,n)};const r=e.context.handlers.focus;e.context.handlers.focus=t=>{r(e,t);const n=new Event("selectionchange");document.dispatchEvent(n)},e.on("blur",(()=>{e.props.selections.length?(e.props.inputText=e.props.selections.map((e=>e.label)).join(", "),e.props.searchValue=null):e.props.selections.length||(e.props.inputText="",e.props.searchValue="")}))})),e.on("prop:expanded",(({payload:t})=>{t||e.props.inputStd.length?t&&(e.props.options.length&&!e.props.alwaysLoadOnOpen||(e.props.options=[],YQ(e,e.props.searchValue))):(e.props.searchValue="",e.props.inputText="")})),e.on("prop:selections",(()=>{var t;const n=[...e.props.selections].map((e=>e.label)).join(", ");let i="";if(S5&&e.isCreated){const n=null===(t=e.props.__root)||void 0===t?void 0:t.getElementById(`${e.props.id}`);if(null==n||n.focus(),GQ()===n&&Array.isArray(e._value)&&e._value.length){if(e.props.max&&e._value.length>=Number(e.props.max))return;i=", "}}e.props.inputText=`${n}${i}`,e.props.reloadOnCommit&&(e.props.searchValue="",YQ(e,e.props.searchValue))}));const t=H(((t,n=!1)=>{var i,r;const a=null===(i=e.props.__root)||void 0===i?void 0:i.getElementById(`${e.props.id}`);if(!(a instanceof HTMLInputElement))return!1;const s=h1(e),o=t>=0?t:s.length-1;if(void 0===s[o])return!1;const l=null===(r=s[o])||void 0===r?void 0:r.end;return null!==a.selectionStart&&(!n||a.selectionStart>=l&&a.selectionStart<=l+2)&&(a.selectionStart=s[o].start+(o>0?1:0),a.selectionEnd=s[o].end+(o<s.length-1?-1:0),!0)}),"t");let n;e.on("selectRange",(({payload:e})=>t(...e))),e.on("prop:highlightedRange",(({payload:t})=>{e.props.hasHighlightedRange=!!t,t&&e.props.expanded&&n!==t.option&&(n=t.option,iJ(e))}))}function d1(e){var t;if(!S5)return;const n=null===(t=e.props.__root)||void 0===t?void 0:t.getElementById(`${e.props.id}`);n&&n.scrollTo({left:n.scrollWidth,behavior:"smooth"})}function p1(e,t){var n;const i=e.props.highlightedRange,r=i.index,a=i.start+(r?1:0),s=t.length-1>r?t[t.length-1].end-t[r+1].start:0;return[a,(null===(n=e.props.inputText)||void 0===n?void 0:n.length)-s+(t.length-1>i.index?-1:0)]}function h1(e){const t=D3(e);return Array.isArray(t)&&t.length?t.reduce(((e,n,i)=>{var r;const a=(null===(r=e[i-1])||void 0===r?void 0:r.end)||0;let s=0;return t.length-1!==i&&s++,0!==i&&s++,e.push({option:n,index:i,start:a,end:a+n.label.length+s}),e}),[]):[]}function f1(e){var t;(t=e).on("prop:expanded",(({payload:e})=>{e?(t.props.searchValue="",t.props.options.length&&!t.props.alwaysLoadOnOpen||(t.props.options=[],YQ(t,t.props.searchValue,!0))):(t.props.searchValue="",t.props.inputText="")})),function(e){e.on("handleSearchInput",(({payload:t})=>{t&&!e.props.expanded?(e.props.searchExpand=!0,e.props.expanded=!0):!t&&e.props.expanded&&(e.props.expanded=!1),e.props.searchValue=e.props.inputText}))}(e),function(e){e.on("prop:selections",(()=>{e.isCreated&&(e.props.inputText="",e.props.searchValue="",e.props.optionRemoved||e.props.reloadOnCommit&&YQ(e,e.props.searchValue,!0))}))}(e)}function m1(e){var t;!function(e){function t(e){0===e.props.inputStd.length?(e.props.inputText="",e.props.searchValue=""):(e.props.inputText=e.props.selections[0].label,e.props.searchValue=e.props.selections[0].label)}function n(e){e.props.clearSearchOnOpen&&!e.props.searchExpand&&(e.props.inputText="",e.props.searchValue=""),e.props.searchValue=e.props.inputText,e.props.options.length&&!e.props.alwaysLoadOnOpen||e.props.searchExpand||(e.props.options=[],YQ(e,e.props.searchValue,!0)),e.props.searchExpand&&(e.props.searchExpand=!1)}H(t,"t"),H(n,"o"),e.on("prop:expanded",(({payload:i})=>{i?n(e):t(e)}))}(e),(t=e).on("handleSearchInput",(({payload:e})=>{""===e?(0===t.props.inputStd.length&&(t.props.expanded=!1),t.input(void 0)):e&&!t.props.expanded&&(t.props.searchExpand=!0,t.props.expanded=!0),t.props.searchValue=t.props.inputText})),function(e){e.on("prop:selections",(({payload:t})=>{e.props.inputText=t.length?t[0].label:"",e.props.searchValue=t.length?t[0].label:"",e.isCreated&&e.props.expanded&&0===t.length&&YQ(e,e.props.searchValue,!0)}))}(e)}function g1(e,t){var n;if(S4.has(e))return;S4.set(e,[]),t.reverse&&M4.add(e),t.prefix&&R4.set(e,t.prefix),t.suffix&&N4.set(e,t.suffix),w1(e,t.pattern,t.partOverrides,t.explicitParts);const i=T4.get(e),r=null==i?void 0:i.some((e=>k1(e))),a=null==i?void 0:i.some((e=>{return!!(t=e)&&"group"===t.type&&Array.isArray(t.parts);var t}));if(r&&a)throw new Error("Cannot use enums and groups in the same mask.");const s=r?"select":null!==(n=t.mode)&&void 0!==n?n:"shift";if(a&&"select"===s)throw new Error("Cannot use groups in select mode.");(t.placeholder||"select"===s)&&E4.add(e),A4.set(e,s),t.onChange&&P4.set(e,t.onChange),e.addEventListener("beforeinput",(n=>{if(z4)return;if(n.inputType.startsWith("history"))return i=e,r=n.inputType,void i.addEventListener("input",(e=>{var t;e.preventDefault(),e.stopImmediatePropagation();const n=S4.get(i);if(null==n?void 0:n.length){const e=(null!==(t=C4.get(i))&&void 0!==t?t:n.length-1)+(r.endsWith("Undo")?-1:1),a=n[e];if(!a)return;M1(i,a),i.setSelectionRange(...a.selectionAfter),C4.set(i,e),P4.has(i)&&P4.get(i)(a,i)}}),{once:!0});var i,r;n.preventDefault();const a=(s=n.inputType).startsWith("insert")?"insert":!!s.startsWith("delete")&&("deleteContentForward"===s?"deleteContentForward":"deleteContentBackward");var s;const o=A1(e),l=e.value;a&&L1(e,{type:a,selectionBefore:o,data:n.data,valueBefore:l,suffix:t.suffix,prefix:t.prefix})})),"select"===s&&e.addEventListener("keydown",(t=>{switch(t.key){case"ArrowRight":return t.preventDefault(),r0(e);case"ArrowLeft":return t.preventDefault(),r0(e,-1);case"ArrowUp":return void(a0(e,1)&&t.preventDefault());case"ArrowDown":return void(a0(e,-1)&&t.preventDefault());case"Tab":return H4?void t.preventDefault():void(r0(e,t.shiftKey?-1:1)&&t.preventDefault())}})),e.addEventListener("focus",(()=>function(e){var t;const n=E4.has(e),i=A4.get(e);if(n){let n=null,r=null,a=!1;const s="shift"===i?0:1,o=e.value;z1(e,{data:o,selectionBefore:[0,0,"none"]},"shift"===i?"":o,((e,t)=>(null===n&&"char"===t.type&&(n=e.pos-s),(C1(t)||k1(t))&&e.value.endsWith(t.placeholder)?(r=e.pos-s,!1):("char"===t.type&&(a=!0),!0))));const l=null!==(t=null!=r?r:a?o.length:n)&&void 0!==t?t:null;if(null!==l){let t=[l,l,"none"];if("select"===A4.get(e)){const[n]=J1(e),i=o0(e,t);void 0!==i&&i in n&&(t=n[i])}return function(e,t,n=50){I4.set(e,$1(e,t));const i=H((()=>V(this,null,(function*(){if(!q4||GQ()!==e)return;"select"===A4.get(e)&&(yield new Promise((e=>
100setTimeout(e,10))),function(e){let t=A1(e);if(t[0]===t[1]&&0===t[0]||e.value.length===t[1]&&0===t[0])return;t=D1(e,t);const[n]=J1(e),i=o0(e,t),r=t[0];void 0!==i&&n.some((e=>r>=e[0]&&r<e[1]))&&I4.set(e,$1(e,n[i]))}(e));const t=I4.get(e);t&&e.setSelectionRange(...t)}))),"n");i(),document.addEventListener("selectionchange",i),setTimeout((()=>{document.removeEventListener("selectionchange",i),I4.delete(e)}),n)}(e,t)}}}(e))),e.addEventListener("selection",(t=>function(e,t){if(I4.get(e))return;p0(e),t=D1(e,t);const[n]=J1(e),i=o0(e,t),r=void 0!==i&&$1(e,n[i]);r&&!E1(t,r)&&O1(e,r,!0)}(e,t.detail))),L1(e,{type:"insert",selectionBefore:[0,0,"forward"],data:e.value,valueBefore:"",suffix:t.suffix,prefix:t.prefix})}function y1(e){var t,n;if(B4.has(e))return;const i=null!==(t=S4.get(e))&&void 0!==t?t:[],r=i[null!==(n=C4.get(e))&&void 0!==n?n:i.length-1];if(r){const t=r.selectionAfter,[n,i]=J1(e,r.valueAfter),a=o0(e,t,[n,i]);if(void 0!==a&&a in n){const r=i[a],s=n[a],o=[t[0]-s[0],t[1]-s[0],"none"];B4.set(e,[r,o])}}}function v1(e){B4.delete(e)}function b1(e,t){const n="string"==typeof e||!S4.has(e),i="string"==typeof e?_1(e):e;if(n)t.prefix&&R4.set(i,t.prefix),t.suffix&&N4.set(i,t.suffix),i.value=I1(i,i.value),g1(i,t);else{const e=l0(i),n=i.value;i.value="",L1(i,{type:"insert",selectionBefore:[0,e?e.valueAfter.length:0,"none"],valueBefore:e?e.valueAfter:"",data:n,suffix:t.suffix,prefix:t.prefix})}return i.value}function _1(e){return{value:e,selectionStart:0,selectionEnd:0,scrollWidth:0,clientWidth:0,addEventListener:H((()=>{}),"addEventListener"),dispatchEvent:H((()=>{}),"dispatchEvent"),setSelectionRange:H((()=>{}),"setSelectionRange")}}function w1(e,t,n,i,r){r=e&&M4.has(e)||r;const a=(null!=i?i:function(e){const t=Object.values(U4);if(!e)return t;const n=F({},e),i=[];for(const a of t)if(!T1(a))if("token"in a&&a.token in e){const t=F(F({},a),e[a.token]);S1(t)&&i.push(t),delete n[a.token]}else i.push(a);const r=Object.values(n);for(const a of r)S1(a)?i.push(a):console.warn(`Invalid ${a.type} token`,a);return i}(n)).sort(((e,t)=>{const n="token"in e?e.token.length:-1,i="token"in t?t.token.length:-1;return n===i?0:n>i?-1:1}));let s=[];[t,s]=function(e,t,n,i){let r,a=0,s="",o="",l="";const u=[];for(;s=R1(e);)"{"===s&&"\\"!==r?(a++,a>1&&(l+=s)):"}"===s&&a&&"\\"!==r?(a--,0===a?(o+=`{$${u.length}}`,u.push(l),l=""):l+=s):a?l+=s:"\\"!==r||"{"!==s&&"}"!==s?o+=s:o=`${o.substring(0,o.length-1)}${s}`,r=s,e=e.substring(s.length);return[o,u]}(t);const o=s.length;t=a.reduce(((e,t,n)=>"token"in t?e.replaceAll(`\\${t.token}`,"{â!â}").replaceAll(t.token,`{$${o+n}}`).replaceAll("{â!â}",t.token):e),t);const l=(p=s,h=a,f=r,p.reduce(((e,t)=>{const[n,i]=function(e){const[t,...n]=e.split("|");return[t,n.reduce(((e,t)=>{const[n,i=!0]=t.split(":");return Object.assign(e,{[n]:i})}),{})]}(t);let r=w1(null,n,void 0,h,f);r=r.map((e=>{const t=F({},e);if("char"===t.type&&i.placeholder)t.placeholder=i.placeholder;else if("enum"===t.type)throw new Error("Groups cannot contain enums.");return t}));const a=F({type:"group",parts:r},i);return e.push(a),e}),[])).concat(a),u=/\{\$\d+\}/g,c=t.match(u),d=t.split(u).reduce(((e,t,n)=>{if(t&&(t=t.replaceAll("\\",""),e.push({type:"literal",value:r?[...t].reverse().join(""):t})),c&&c[n]){const t=c[n],i=Number(t.substring(2,t.length-1));!isNaN(i)&&l[i]&&e.push(l[i])}return e}),[]);var p,h,f;return r&&d.reverse(),e&&T4.set(e,d),d}function S1(e){return!!e&&(T1(e)||C1(e)||k1(e))}function C1(e){return!!e&&"char"===e.type&&e.pattern instanceof RegExp&&x1(e)}function k1(e){return!!e&&"enum"===e.type&&Array.isArray(e.values)&&x1(e)}function x1(e){return!!e&&"placeholder"in e&&"token"in e}function T1(e){return!!e&&"literal"===e.type&&"string"==typeof e.value}function E1(e,t){return e===t||void 0!==e&&void 0!==t&&e[0]===t[0]&&e[1]===t[1]}function A1(e){var t,n;return[null!==(t=e.selectionStart)&&void 0!==t?t:e.value.length,null!==(n=e.selectionEnd)&&void 0!==n?n:e.value.length,"none"]}function L1(e,t){var n;M4.has(e)&&d0(t);let i=!1;switch(O4.set(e,"playing"),t.type){case"insert":i=function(e,t){let n=P1(t);const i=t.selectionBefore,r=function(e,t){var n,i,r;if("select"===A4.get(e)){const[a,s]=J1(e),o=null!==(n=s[a.findIndex((e=>E1(e,t.selectionBefore)))])&&void 0!==n?n:null;if(C1(o)){const e=t.selectionBefore,n=e[1]-e[0],a=t.valueBefore.substring(e[0],e[1]),s="left"===o.selectDirection,l=V1(a,o),u=s?0:function(e,t,n){if(!e)return 0;let i="";for(;e.length;){const n=R1(e);e=e.substring(n.length),t.pattern.test(n)&&(i+=n)}return Math.min(Math.max(i.length,1),n)}(t.data,o,n);if(l.length>=n)return s||(t.insertPos=e[1]-u),(null!==(i=o.selectFill)&&void 0!==i?i:o.placeholder).repeat(n);const c=(null!==(r=o.selectFill)&&void 0!==r?r:o.placeholder).repeat(n-l.length-(s?0:u));return t.insertPos=s?e[0]+l.length:e[1]-u,"left"===o.selectDirection?`${l}${c}`:`${c}${l}${o.placeholder}`}if(k1(o)){const e=t.selectionBefore;return t.valueBefore.substring(e[0],e[1])}}return""}(e,t);n=`${n.substring(0,i[0])}${r}${n.substring(i[1])}`;const a=z1(e,t,n);return x4.set(e,a.endPos),B(F({},t),{valueAfter:a.value,selectionAfter:q1(e,a),unmasked:a.unmasked,complete:a.complete,meta:a.meta})}(e,t);break;case"deleteContentBackward":case"deleteContentForward":i=function(e,t){const n=P1(t),i=t.selectionBefore,r=M4.has(e);let a=i[0],s=i[1];a===s&&("deleteContentBackward"!==t.type||r?s+=N1(n,a):a-=N1(n,a,"backward"));let o="";
100if("select"===A4.get(e)){const[n,i]=J1(e),r=o0(e,[a,s,"none"]);if(void 0!==r){const l=i[r],u=n[r];C1(l)?o=l.placeholder.repeat(s-a):k1(l)&&([o,a]=E1(u,A1(e))?[l.placeholder,a]:function(e,t,n,i){const r=i.valueBefore,a=N1(r,i.selectionBefore[0],"backward"),s=Math.max(n[0],i.selectionBefore[0]-a),o=r.substring(n[0],s),l=t0(t.values,o);let u=null==l?void 0:l.substring(o.length);return l&&!u&&n0(t.values,l)&&(u=l),[null!=u?u:t.placeholder,u?s:n[0]]}(0,l,u,t))}}const l=z1(e,t,`${n.substring(0,a)}${o}${n.substring(s)}`);return B(F({},t),{valueAfter:l.value,selectionAfter:Z1(e,l,t,a),unmasked:l.unmasked,complete:l.complete,meta:l.meta})}(e,t)}if(M4.has(e)&&i&&d0(i),i&&(r=e,(a=i).prefix&&(a.valueAfter=a.prefix+a.valueAfter,a.selectionAfter=$1(r,a.selectionAfter)),a.suffix&&(a.valueAfter+=a.suffix)),i&&function(e){return e.valueBefore!==e.valueAfter||e.selectionBefore[0]!==e.selectionAfter[0]||e.selectionBefore[1]!==e.selectionAfter[1]}(i)){P4.has(e)&&F4.set(e,(()=>{F4.delete(e),i&&P4.get(e)(i,e)})),O4.set(e,"beforeCallback");let t=null!==(n=S4.get(e))&&void 0!==n?n:[];const r=C4.get(e);r&&(t=t.slice(0,r),C4.delete(e)),t.push(i),S4.set(e,t),q4&&GQ()===e&&"function"==typeof document.execCommand&&!z4?(O1(e,[0,e.value.length,"forward"],!0),z4=!0,document.execCommand("insertText",void 0,i.valueAfter),z4=!1):M1(e,i),q4&&GQ()===e&&O1(e,i.selectionAfter);const a=F4.get(e);a&&a(),p0(e)}var r,a;O4.set(e,"complete")}function I1(e,t){var n,i;const r=null!==(n=R4.get(e))&&void 0!==n?n:"",a=null!==(i=N4.get(e))&&void 0!==i?i:"";return r&&t.startsWith(r)&&(t=t.substring(r.length)),a&&t.endsWith(a)&&(t=t.substring(0,t.length-a.length)),t}function $1(e,t){const n=R4.get(e),i=[...t];return n&&(i[0]+=n.length,i[1]+=n.length),i}function D1(e,t){const n=R4.get(e),i=[...t];return n&&(i[0]-=n.length,i[1]-=n.length),i}function P1(e){let t=e.valueBefore;const n=e.selectionBefore;if(e.suffix&&t.endsWith(e.suffix)&&(t=t.substring(0,t.length-e.suffix.length),e.valueBefore=t,n[0]>=t.length&&(n[0]=t.length),n[1]>=t.length&&(n[1]=t.length)),e.prefix&&t.startsWith(e.prefix)){const i=e.prefix.length;t=t.substring(i),e.valueBefore=t,n[0]=Math.max(n[0]-i,0),n[1]=Math.max(n[1]-i,0)}return t}function O1(e,t,n=!1){n&&(k4.add(e),setTimeout((()=>k4.delete(e)),5)),I4.get(e)&&I4.set(e,t),e.setSelectionRange(...t)}function M1(e,t,n="After"){if(e.value=t[`value${n}`],q4){const n=new InputEvent("input",{inputType:"insert"===t.type?"insertText":t.type,data:t.data});e.dispatchEvent(n)}}function R1(e){if(null==e)return"";const t=L4.test(e.charAt(0))&&L4.test(e.charAt(1))?2:1;return e.substring(0,t)}function N1(e,t,n="forward"){if("backward"===n)return 0===t?0:1===t?1:L4.test(e.charAt(t))&&L4.test(e.charAt(t-1))?2:1;const i=e.length-t;return 0===i?0:1===i?1:R1(e.substring(t)).length}function F1(e,t){const n=R1(e.data),i=n.length;if(e.value+=n,e.pos+=i,"string"==typeof e.data&&(e.data=e.data.substring(i),e.data.length||(e.endPos=e.pos)),t)return t.substring(i)}function B1(e){const t=R1(e.buffer),n=t.length;e.value+=t,e.pos+=n,e.buffer=e.buffer.substring(n)}function H1(e,t){const n=R1(t),i=n.length;return e.value+=n,e.pos+=i,t.substring(i)}function j1(e,t){for(;t.buffer;){const n=R1(t.buffer);if(e.pattern.test(n)||t.placeholder&&e.placeholder===n)return void("replace"!==t.mode&&"select"!==t.mode||(t.buffer=t.buffer.substring(n.length)));t.buffer=t.buffer.substring(n.length)}}function U1(e,t){const n=e.values.concat([e.placeholder]).map((e=>e.toLowerCase())).sort(((e,t)=>e.length>t.length?-1:1));for(;t.buffer;){const e=t.buffer.toLowerCase(),i=n.find((t=>e.startsWith(t)));if(i){const e=t.buffer.substring(0,i.length);return t.buffer=t.buffer.substring(i.length),e}t.buffer=t.buffer.substring(N1(t.buffer,0))}return null}function V1(e,t){let n=e.replaceAll(t.placeholder,"");const i="left"===t.selectDirection;if(t.selectFill){const e=new RegExp(`${i?"":"^"}${r=t.selectFill,r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}+${i?"$":""}`);n=n.replace(e,"")}var r;return n}function q1(e,t){let n=[t.endPos,t.endPos,"forward"];if("select"!==t.mode)return n;const i=A1(e);n=[i[0],t.endPos,"none"];const[r,a]=J1(e,t.value),s=o0(e,n,[r,a]);if(void 0===s)return n;if(!(s in r)||!(s in a))return n;const o=r[s],l=a[s],u=t.value.slice(o[0],o[1]);if(C1(l)&&V1(u,l).length===u.length&&s<r.length-1)return j4(),r[s+1];if(k1(l)&&t.insertPos>
100=o[0]&&t.insertPos<=o[1]){if(t.cycle)return o;const n=function(e,t,n){if(null===e.originalData)return 0;const i=e.insertPos>=t?e.value.substring(t,e.insertPos):"",r=`${i}${e.originalData}`,a=t0(n.values,r);return a?Q1(r,a).length-i.length:0}(t,o[0],l);if(t.insertPos+n===o[1])return n0(l.values,u)?[o[1],o[1],"forward"]:(j4(),r[s+1]?r[s+1]:r[s]);const a=[t.insertPos+n,o[1],"none"];return E1(a,i)||(k4.add(e),setTimeout((()=>k4.delete(e)),5)),a}return o}function z1(e,t,n,i){var r,a;const s=null!==(r=T4.get(e))&&void 0!==r?r:[],o={pos:0,insertPos:null!==(a=t.insertPos)&&void 0!==a?a:t.selectionBefore[0],range:t.selectionBefore,chars:0,placeholder:E4.has(e),buffer:n,data:t.data,originalData:t.data,value:"",mode:A4.get(e)||"replace",endPos:t.selectionBefore[0],rangeParts:J1(e),unmasked:"",complete:!0,cycle:t.cycle,meta:[]};return W1(s,o,void 0,i),o}function W1(e,t,n,i){var r,a;const s=F({},t);(null==n?void 0:n.placeholder)&&(t.placeholder=!0);const o=(null==n?void 0:n.repeat)&&"literal"===(null===(r=n.nextPart)||void 0===r?void 0:r.type)?n.nextPart.value:null;let l=0;const u=e.reduce(((e,t)=>e+("char"===t.type?1:0)),0),c=t.chars;for(const d of e){const n=e[l+1];switch(d.type){case"literal":K1(d,t,e.at(-1)===d);break;case"char":Y1(d,t,o);break;case"enum":G1(d,t);break;case"group":const r={repeat:null!==(a=d.repeat)&&void 0!==a&&a,nextPart:n,repeats:0,placeholder:!!d.placeholder};W1(d.parts,t,r,i)}if(i&&!1===i(t,d))break;const r=T1(n)&&l+2===e.length&&c!==t.chars;if(!(t.buffer||t.data||t.placeholder||r))break;l++}if(t.chars<u&&(t.complete=!1),n){const r=t.chars-c,a=r===u,l=!(!t.data||o&&t.data.startsWith(o)&&t.insertPos<=t.pos),d=!(t.buffer&&o&&t.buffer.startsWith(o)&&t.insertPos>=t.pos+o.length)&&(t.buffer||l);if(n.repeat&&d&&a)return n.repeats++,W1(e,t,n,i);if(!a){t.complete=!1;const n=e.reverse().find((e=>"literal"===e.type));e.reverse(),T1(n)&&t.value.endsWith(n.value)&&(t.value=t.value.substring(0,t.value.length-n.value.length),t.pos=t.value.length)}u>1&&r<u&&0!==r&&t.insertPos<=t.pos?t.data="":n.repeat&&!a&&n.repeats&&Object.assign(t,s)}t.placeholder=s.placeholder}function G1(e,t){const[n,i]=t.rangeParts,r=n[i.indexOf(e)];if(r&&(t.insertPos<=t.pos||t.insertPos>=r[0]&&t.insertPos<=r[1])&&t.data){const n=t.buffer.substring(0,t.insertPos-t.pos),i=`${n}${t.data}`,r=t0(e.values.concat([e.placeholder]),i);if(r){const a=Q1(i,r);return t.data=t.data.substring(a.length),t.value+=r,r!==e.placeholder?t.unmasked+=r:t.complete=!1,t.meta.push({type:r!==e.placeholder?"enum":"placeholder",value:r}),n?t.buffer=t.buffer.substring(n.length):U1(e,t),t.endPos=t.pos+a.length,void(t.pos=t.value.length)}t.data=""}if(t.buffer){const n=U1(e,t);if(n)return t.value+=n,n!==e.placeholder?t.unmasked+=n:t.complete=!1,t.meta.push({type:n!==e.placeholder?"enum":"placeholder",value:n}),void(t.pos=t.value.length)}t.complete=!1,t.value+=e.placeholder,t.meta.push({type:"placeholder",value:e.placeholder}),t.pos=t.value.length}function K1(e,t,n){let i=e.value;if(""===t.data&&!t.buffer&&!t.placeholder&&!n)return;let r=!1;for(;i;){const e=t.insertPos<=t.pos?R1(t.data):"",a=R1(i);if(e===a)i=F1(t,i),t.meta.push({type:"literal",value:a}),r=!0;else if(!r||t.data||null===t.data||t.placeholder||n)i=H1(t,i),t.meta.push({type:"literal",value:a});else if(r&&!t.data)break;t.buffer.startsWith(a)&&(t.buffer=t.buffer.substring(a.length))}null===t.data&&!t.buffer&&t.insertPos<=t.pos&&!t.placeholder&&(t.value=t.value.substring(0,t.value.length-e.value.length),t.pos=t.endPos=t.value.length)}function Y1(e,t,n){var i;let r=!0;if(t.insertPos<=t.pos)for(;null===(i=t.data)||void 0===i?void 0:i.length;){const i=R1(t.data);if(e.pattern.test(i))return F1(t),t.meta.push({type:"char",value:i}),t.chars++,t.unmasked+=i,void j1(e,t);if("string"==typeof t.data){if(n&&t.data.startsWith(n)){r=!1;break}t.data=t.data.substring(i.length)}}for(;r&&t.buffer;){const i=R1(t.buffer);if(e.pattern.test(i))return t.chars++,t.unmasked+=i,B1(t),void t.meta.push({type:"char",value:i});if(t.placeholder&&i===e.placeholder)return B1(t),void t.meta.push({type:"placeholder",value:i});if("string"==typeof t.buffer){if(n&&t.buffer.startsWith(n)){t.buffer=t.buffer.substring(n.length);break}t.buffer=t.buffer.substring(i.length)}}t.placeholder?(t.value+=e.placeholder,t.meta.push({type:"placeholder",value:e.placeholder})):t.endPos=t.pos}function Z1(e,t,n,i){const r=[i,i,"none"];if("select"===t.mode){const a=J1(e),s=o0(e,r,a),[o,l]=J1(e,t.value),u=void 0!==s&&X1(n.valueBefore,a[0][s],a[1][s]);if(void 0!==s&&s in o){if(u){return o.slice(s).every(((e,n)=>X1(t.value,e,l[s+n])))&&o[s-1]?o[s-1]:o[s]}return[i,o[s][1],"none"]}}return r}function X1(e,t,n){if(T1(n))return!1;if(C1(n)){let i=t[0];for(;i<t[1];){const t=R1(e.substring(i));if(t!==n.placeholder)return!1;i+=t.length}}return!k1(n)||e.substring(t[0],t[1])===n.placeholder}function Q1(e,t){let n="";do{const i=R1(e).toLowerCase(),r=R1(t).toLowerCase();if(i!==r)break;n+=i,e=e.substring(i.length),t=t.substring(r.length)}while(e.length&&t.length);return n}function J1(e,t){const n=T4.get(e);if(!n)return[[],[]];if($4.has(e))return $4.get(e);const i=null!=t?t:I1(e,e.value),r=[],a=[];let s=null,o=null,l=0,u=!0;for(const d of n)if(T1(d))s=d,null!==o&&(r.push([o,l,"none"]),o=null),l+=d.value.length;else{if(C1(s)&&C1(d)&&d.token===s.token)l++;else if(C1(d))null===o?(o=l,a.push(d)):(r.push([o,l,"none"]),o=l,a.push(d)),l++;
100else if(k1(d)){o&&r.push([o,l,"none"]),i0(d)||(u=!1);const e=e0(i,d,l);o=null,r.push([l,l+e,"none"]),a.push(d),l+=e}s=d}null!==o&&r.push([o,l,"none"]);const c=[[...r],[...a]];return u&&!t&&$4.set(e,c),c}function e0(e,t,n){if(i0(t))return t.values[0].length;const i=e.slice(n),r=t0(t.values.concat([t.placeholder]),i);return r?r.length:0}function t0(e,t,n=null,i){var r;if(0===t.length)return n;if(!i){const n=e.find((e=>e.toLowerCase()===t.toLowerCase()));if(n)return n}const a=R1(t.toLowerCase()),s=`${null!=i?i:""}${a}`,o=e.filter((e=>e.toLowerCase().startsWith(s))),l=o.find((e=>e.toLowerCase()===s));return l&&(n=l),0===o.length?n:1===o.length?o[0]:(o.length>1&&(n=o[0]),null!==(r=t0(o,t.substring(a.length),n,s))&&void 0!==r?r:o[0])}function n0(e,t){return t=t.toLowerCase(),e.some((e=>(e=e.toLowerCase()).startsWith(t.toLocaleLowerCase())&&e!==t))}function i0(e){if(!D4.has(e)&&Array.isArray(e.values)&&e.values.length>0){const t=e.values[0].length;if(e.placeholder.length!==t)return!1;D4.set(e,e.values.every((e=>e.length===t)))}return D4.get(e)}function r0(e,t=1){const[n]=J1(e),i=o0(e,D1(e,A1(e)));return void 0!==i&&void 0!==n[i+t]&&(e.setSelectionRange(...$1(e,n[i+t])),!0)}function a0(e,t=1){const[n,i]=J1(e),r=o0(e,A1(e));if(void 0!==r&&r in i){const a=i[r];if(k1(a)){const i=n[r],s=e.value.slice(i[0],i[1]);let o=null,l=a.values.indexOf(s);const u=a.values.length-1;if(-1!==l){const e=l+t;l=e<0?u:e>u?0:e,o=a.values[l]}else s===a.placeholder&&(o=t>0?a.values[0]:a.values[u]);if(null!==o){const t={selectionBefore:i,insertPos:i[0],type:"insert",data:o,valueBefore:e.value,cycle:!0};return setTimeout((()=>L1(e,t)),0),!0}}}return!1}function s0(e,t){if(!e.length)return-1;if(1===e.length)return e[0];const n=e.length/2,i=Number.isInteger(n)?n:Math.floor(n),r=Math.abs(t-e[i-1])<Math.abs(t-e[i])?[0,i]:[i];return s0(e.slice(...r),t)}function o0(e,t,n){const[i]=null!=n?n:J1(e),r=i.findIndex((e=>e[0]!==e[1]&&(!!E1(e,t)||t[1]>e[0]&&t[1]<e[1])));if(-1!==r)return r;const[a,s]=i.reduce(((e,t,n)=>(e[0].add(t[0]),e[0].add(t[1]),e[1][t[0]]=n,e[1][t[1]]=n,e)),[new Set,{}]),o=s0([...a],t[1]);return o in s?s[o]:void 0}function l0(e){var t,n;const i=null!==(t=S4.get(e))&&void 0!==t?t:[];return i[null!==(n=C4.get(e))&&void 0!==n?n:i.length-1]}function u0(e,t=!1){const n=l0(e);return n&&(n.complete||t)?M4.has(e)?[...n.unmasked].reverse().join(""):n.unmasked:t?"":null}function c0(e){var t;const n=l0(e);return null!==(t=null==n?void 0:n.meta)&&void 0!==t?t:null}function d0(e){const t=H((e=>[...e].reverse().join("")),"t"),n=H(((e,t)=>[t-e[1],t-e[0],e[2]]),"o");e.data&&(e.data=t(e.data)),e.valueBefore=t(e.valueBefore),"valueAfter"in e&&(e.valueAfter=t(e.valueAfter)),"selectionAfter"in e&&(e.selectionAfter=n(e.selectionBefore,e.valueAfter.length)),e.selectionBefore=n(e.selectionBefore,e.valueBefore.length)}function p0(e){if(e.scrollWidth>e.clientWidth&&null!==e.selectionStart&&null!==e.selectionEnd){const t=e.selectionStart/e.value.length,n=e.selectionEnd/e.value.length;e.scrollLeft=n>.9?e.scrollWidth:t*e.scrollWidth-20,e.dispatchEvent(new CustomEvent("input-scroll",{bubbles:!1,detail:e.scrollLeft}))}}function h0(e){if(e||(e=new Date),e instanceof Date){const t=new Date(e);return t.setMilliseconds(0),t}if(function(e){const t=e.match(n6);if(t){const e=Number(t[2]);if(e<1||e>12)return!1;if(void 0!==typeof t[3]){const e=Number(t[3]);if(e<1||e>31)return!1}if(void 0!==typeof t[4]){const e=Number(t[4]);if(e<0||e>23)return!1}return!0}return!1}(e=e.trim()))return new Date(function(e){const t=e.match(n6);return t&&void 0===t[4]?e+"T00:00:00":e}(e));throw new Error(`Non ISO 8601 compliant date (${e}).`)}function f0(e){const t=h0(e);return t.setDate(1),t.setHours(0,0,0),t}function m0(e){const t=h0(e);return t.setDate(1),t.setMonth(t.getMonth()+1),t.setDate(0),t}function g0(e){return m0(e).getDate()}function y0(e,t=0){const n=h0(e);let i=t-n.getDay();return i>0&&(i-=7),n.setDate(n.getDate()+i),n.setHours(0,0,0),n}function v0(e,t=1){const n=h0(e);return n.setDate(n.getDate()+t),n}function b0(e,t=1,n=!1){const i=h0(e),r=i.getDate();if(n||i.setDate(1),i.setMonth(i.getMonth()+t),!n){const e=g0(i);i.setDate(e<r?e:r)}return i}function _0(e,t=1,n=!1){const i=h0(e),r=i.getDate();if(n||i.setDate(1),i.setFullYear(i.getFullYear()+t),!n){const e=g0(i);i.setDate(e<r?e:r)}return i}function w0(e,t){const n=h0(e),i=h0(t);return n.getDate()===i.getDate()&&n.getMonth()===i.getMonth()&&n.getFullYear()===i.getFullYear()}function S0(e,t,n){if(!G4.has(e)){const t=new Date(W4),n=[3,8,9,7,6,4,3],i=["weekday","month","dayPeriod"],r=["long","short","narrow"],a={};for(let s=0;s<12;s++){t.setMonth(0+s),s in n&&t.setDate(n[s]),t.setUTCHours(8+s);for(const n of r){const r=new Intl.DateTimeFormat(e,i.reduce(((e,t)=>Object.assign(e,{[t]:n})),{hour12:!0,timeZone:"UTC"})).formatToParts(t).map(M0);if("long"===n||"short"===n){const i=new Intl.DateTimeFormat(e,{dateStyle:"short"===n?"medium":"long"}).formatToParts(t).map(M0).find((e=>"month"===e.type)),a=r.findIndex((e=>"month"===e.type));a>-1&&i&&(r[a]=i)}r.forEach((e=>
100{if("literal"===e.type)return;const t=e.type;a[t]=Object.assign(a[t]||{},{[e.value]:n})}))}}G4.set(e,a)}const i=G4.get(e);return i?i[t][n]:void 0}function C0(e,t){const n=e6.get(t);if(n&&n[e])return n[e];const i=new Date(W4);i.setUTCHours("am"===e?5:20);const r=new Intl.DateTimeFormat(t,{timeStyle:"full",timeZone:"UTC",hour12:!0}).formatToParts(i).map(M0).find((e=>"dayPeriod"===e.type));if(r){const i=n||{};return e6.set(t,Object.assign(i,{[e]:r.value})),r.value}return e}function k0(e,t){const n={timeZone:"UTC"};"string"==typeof e?n.dateStyle=e:("date"in e&&(n.dateStyle=e.date),"time"in e&&(n.timeStyle=e.time));const i=new Intl.DateTimeFormat(t,n),r=i.formatToParts(new Date(W4)).map(M0),a=i.formatToParts(new Date("1999-04-05T23:05:01.000Z")).map(M0).find((e=>"hour"===e.type)),s=a&&"23"===a.value?24:12;return r.map((e=>{const n=e.type,i=function(e,t,n,i){const r=t.length,a=!isNaN(Number(t));let s;switch(e){case"year":return 2===r?J4.get("YY"):J4.get("YYYY");case"month":return a?1===r?J4.get("M"):J4.get("MM"):(s=S0(n,e,t),"long"===s?J4.get("MMMM"):J4.get("MMM"));case"day":return 1===r?J4.get("D"):J4.get("DD");case"weekday":switch(s=S0(n,e,t),s){case"narrow":return J4.get("d");case"short":return J4.get("ddd");default:return J4.get("dddd")}case"hour":return 12===i?1===r?J4.get("h"):J4.get("hh"):1===r?J4.get("H"):J4.get("HH");case"minute":return 1===r?J4.get("m"):J4.get("mm");case"second":return 1===r?J4.get("s"):J4.get("ss");case"dayPeriod":return/^[A-Z]+$/u.test(t)?J4.get("A"):J4.get("a");case"literal":return[t,{literal:t},new RegExp("")];case"timeZoneName":const o=t.split("-");return 2===o.length&&4===o[1].length?J4.get("ZZ"):J4.get("Z");default:return}}(e.type,e.value,t,"hour"===e.type?s:void 0);if(void 0===i)return;const r=i[1][n];return r?(i[2]||(i[2]=new RegExp(`${i[0]}`,"g")),{option:{[n]:r},partName:n,partValue:r,token:i[0],pattern:i[2],hour12:12===s}):void 0})).filter((e=>!!e))}function x0(e,t){function n(e,[t,n,i]){const r=Object.keys(n)[0];return{option:n,partName:r,partValue:n[r],token:t,pattern:i,hour12:e}}if(H(n,"o"),t6.includes(e)||"object"==typeof e)return k0(e,t);let i=e,r=0;const a=H((e=>{if(e[2]||(e[2]=new RegExp(`(.)?(${e[0]})`,"g")),e[2].test(i)){let t=0;return i=i.replace(e[2],((e,n,i)=>"\\"===n?i:`${"string"==typeof n?n:""}{!${t++?r:r++}!}`)),!!t}return!1}),"s"),s=function(e){const t=e.map((e=>e.partName)),n=new Set(t);if(t.length>n.size)throw new Error("Cannot reuse format tokens.");return e}(K4.filter(a).concat(Y4.filter(a)).map(n.bind(null,!1)).concat(Z4.filter(a).map(n.bind(null,!0)))),o=/^\{!(\d+)!\}$/;return i.split(/(\{!\d+!\})/).map((e=>{const t=e.match(o);return t?s[Number(t[1])]:{option:{literal:e},partName:"literal",partValue:e,token:e,pattern:new RegExp(""),hour12:!1}})).filter((e=>
100!("literal"===e.partName&&""===e.partValue)))}function T0(e,t="en",n=!1,i=(()=>!0)){return x0(e,t).filter(i).reduce(((e,t)=>{return e+(n&&"literal"===t.partName?(i=t.token,K4.concat(Y4).concat(Z4).sort(((e,t)=>e[0].length>t[0].length?1:-1)).reduce(((e,t)=>e.replace(t[0],((e,t,n)=>"\\"===n[t-1]?e:`\\${e}`))),i)):t.token);var i}),"").normalize("NFKC")}function E0(e,t,n,i=!1){function r({partName:e,partValue:t,token:i}){if("literal"===e)return t;const r=a[e];if("hour"===e&&"H"===i)return r.replace(/^0/,"");if(!("minute"!==e&&"second"!==e||"mm"!==i&&"ss"!==i||1!==r.length))return`0${r}`;if("dayPeriod"===e){const e=C0(s.getHours()<12?"am":"pm",n);return"A"===i?e.toUpperCase():e.toLowerCase()}return"timeZoneName"===e?R0(-1*s.getTimezoneOffset()):r}H(r,"r");const a=function(e,t,n,i=!1){function r(e,t=!1){const r=`${n}-u-hc-${t?"h12":"h23"}`;if(l.push(...new Intl.DateTimeFormat(r,e.reduce(((e,t)=>"literal"===t.partName?e:(i&&Q4.includes(t.token)&&u.push(t),Object.assign(e,t.option))),{})).formatToParts(a).map(M0)),i&&u.length)for(const n of u){let e=[];switch(n.token){case"MMMM":e=new Intl.DateTimeFormat(r,{dateStyle:"long"}).formatToParts(a).map(M0);break;case"MMM":e=new Intl.DateTimeFormat(r,{dateStyle:"medium"}).formatToParts(a).map(M0)}const t=e.find((e=>e.type===n.partName)),i=l.findIndex((e=>e.type===n.partName));t&&i>-1&&(l[i]=t)}}H(r,"r");const a=h0(e),s=t.filter((e=>e.hour12)),o=t.filter((e=>!e.hour12)),l=[],u=[];return s.length&&r(s,!0),o.length&&r(o),l.reduce(((e,t)=>(e[t.type]=t.value,e)),{})}(e,t,n,i),s=h0(e);return t.map((e=>B(F({},e),{value:r(e)})))}function A0(e,t="long",n="en",i=!1,r=(()=>!0)){return"ISO8601"===t?h0(e).toISOString():E0(e,x0(t,n).filter(r),n,i).map((e=>e.value)).join("")}function L0(e){return["numeric","2-digit"].includes(e.partValue)}function I0(e,t){let n=0;const i=H((e=>[e[n++],e[n]]),"n");let r=0;const a=[];let s;do{const[n,o]=i(t);s=o;let l=1;if("literal"===n.partName)l=n.partValue.length;else if(n.token in X4)l=X4[n.token];else if(o)if("literal"===o.partName){if(l=e.indexOf(o.partValue,r)-r,l<0)throw new Error}else if("dayPeriod"===o.partName){for(let t=1;t<=4;t++)if(isNaN(Number(e.charAt(r+t)))){l=t;break}}else{const t=e.substring(r).search(/\d/);-1!==t&&(l=r+t)}else l=e.length;a.push(B(F({},n),{value:e.substring(r,r+l)})),r+=l}while(s);return a}function $0(e,t="en",n=!1){const i=H(((e,t)=>Array(e).fill("").map(((e,n)=>`${t(n)}`))),"n");if("M"===e)return i(12,(e=>e+1));if("MM"===e)return i(12,(e=>{const t=e+1;return t<10?`0${t}`:t}));if(e.startsWith("M"))return $0("MM").map((i=>A0(`2000-${i}-05`,e,t,n)));if(e.startsWith("d"))return i(7,(e=>`0${e+2}`)).map((n=>A0(`2022-10-${n}`,e,t)));if("a"===e)return[C0("am",t).toLowerCase(),C0("pm",t).toLowerCase()];if("A"===e)return[C0("am",t).toUpperCase(),C0("pm",t).toUpperCase()];if(e.startsWith("Y")){const n=(new Date).getFullYear();return i(120,(e=>e+1)).reduce(((i,r)=>("120"!==r&&i.push(A0(`${n+Number(r)}-06-06`,e,t)),i.unshift(A0(n-Number(r)+"-06-06",e,t)),i)),[A0(`${n}-06-06`,e,t)])}return e.startsWith("D")?i(31,(t=>`${"DD"===e&&t<9?"0":""}${t+1}`)):e.startsWith("H")?i(24,(t=>`${"HH"===e&&t<10?"0":""}${t}`)):e.startsWith("h")?i(12,(t=>`${"hh"===e&&t<9?"0":""}${t+1}`)):e.startsWith("m")||e.startsWith("s")?i(60,(t=>`${e.length>1&&t<10?"0":""}${t}`)):[]}function D0(e,t="ISO8601",n="en"){let i,r=H((()=>!0),"r"),a="backward";if("object"==typeof e?({date:i,format:t="ISO8601",locale:n="en",dateOverflow:a="backward",partFilter:r=H((()=>!0),"r")}=e):i=e,!i)throw new Error("parse() requires a date string.");const s=H((()=>{throw new Error(`Date (${i}) does not match format (${T0(t,n)})`)}),"a");if("ISO8601"===t)return h0(i);const o=t6.includes(t)||"object"==typeof t,l=function(e){let t;for(const n of e){if("literal"===n.partName&&!isNaN(parseFloat(n.partValue)))throw new Error(`Numbers in format (${n.partValue}).`);if(t&&"literal"!==t.partName&&"literal"!==n.partName&&!(t.token in X4||n.token in X4||L0(t)&&"a"===n.token.toLowerCase()))throw new Error(`Illegal adjacent tokens (${t.token}, ${n.token})`);t=n}return e}(x0(t,n).filter(r));if(!l.length)throw new Error("parse() requires a pattern.");let u;
100try{u=I0(i,l)}catch(k){return s()}const c=new Date,d=new Map([["YYYY",c.getFullYear()],["MM",c.getMonth()+1],["DD",c.getDate()],["HH",0],["mm",0],["ss",0]]);let p=null,h="";u.forEach((e=>{if("literal"===e.partName)return;if(e.token===e.value)return s();const t=Number(e.value);if(d.has(e.token))d.set(e.token,t);else if("YY"===e.token)d.set("YYYY",function(e){const t=(new Date).getFullYear(),n=t%100,i=Math.floor(t/100),r=Number(e);return 100*(i+(r>n+20?-1:0))+r}(e.value));else{const i=e.token;if(i.startsWith("d"))return;if("D"===i)d.set("DD",t);else if("H"===i||i.startsWith("h"))d.set("HH",t);else if("M"===i)d.set("MM",t);else if("a"===i||"A"===i)p=e.value.toLowerCase()===C0("am",n).toLowerCase();else if("Z"===i)h=P0(e.value);else{const t=$0(i,n,o).indexOf(e.value);if(-1!==t)switch(i){case"MMM":case"MMMM":d.set("MM",t+1)}}}}));let f=d.get("HH")||0;!1===p?(f+=12===f?0:12,d.set("HH",24===f?0:f)):!0===p&&12===f&&d.set("HH",0),d.set("MM",(d.get("MM")||1)-1);let[m,g,y,v,b,_]=Array.from(d.values());const w=g0(new Date(`${r6(m)}-${i6(g+1)}-10`));if(w<y&&"throw"===a)throw new Error(`Invalid date ${r6(m)}-${i6(g+1)}-${i6(y)}`);y="backward"===a?Math.min(y,w):y;const S=`${r6(m)}-${i6(g+1)}-${i6(y)}T${i6(v)}:${i6(b)}:${i6(_)}${h}`,C=new Date(S);return isFinite(+C)?C:s()}function P0(e){if(!/^([+-])[0-3][0-9][0-6][0-9]$/.test(e))throw new Error(`Invalid offset: ${e}`);return e}function O0(e,t="UTC",n="browser"){n="browser"===n?Intl.DateTimeFormat().resolvedOptions().timeZone:n;const i=h0(e),r=H((e=>{const t=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:e,hourCycle:"h23"}).formatToParts(i).map(M0),n={};return t.forEach((e=>{n[e.type]=e.value})),new Date(`${n.year}-${n.month}-${n.day}T${n.hour}:${n.minute}:${n.second}Z`)}),"r"),a=r(t);return R0((r(n).getTime()-a.getTime())/1e3/60)}function M0(e){return"literal"===e.type&&(e.value=e.value.normalize("NFKC")),e}function R0(e){return`${e<0?"-":"+"}${String(Math.floor(Math.abs(e/60))).padStart(2,"0")}${String(Math.abs(e%60)).padStart(2,"0")}`}function N0(e,t="+0000"){const n=h0(e),i=function(e){P0(e);const[t,n,i,r]=e.match(/([+-])([0-3][0-9])([0-6][0-9])/),a=60*Number(i)+Number(r);return"+"===n?a:-a}(t);return new Date(n.getTime()+1e3*i*60)}function F0(e,t="+0000"){const n="+"===t.slice(0,1);return N0(e,t.replace(n?"+":"-",n?"-":"+"))}function B0(e,t,n=7){let i,r;const a=h0(e);switch(n){case"month":r=a.getDate(),i=g0(a)-a.getDate();break;case"week":r=a.getDay()+1,i=6-a.getDay();break;case"year":const e=function(e){const t=h0(e);return(new Date(t.getFullYear()+1,0,0).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5}(a),t=function(e){const t=h0(e);return Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5)}(a);r=t,i=e-t;break;default:i=r=n}for(let s=0;s<=i||s<r;s++){if(s<=i){const e=v0(a,s);if(t(e))return e}if(s&&s<=r){const e=v0(a,-s);if(t(e))return e}}return null}function H0(e){return"timeZoneName"!==e.partName}function j0(e,t){const n=[],i=h0(t);i.setDate(1);let r=y0(i,e.props.weekStart);r.setHours(i.getHours(),i.getMinutes(),i.getSeconds());const a=function(e,t=0){const n=y0(e,t);return n.setDate(n.getDate()+6),n.setHours(23,59,59),n}(m0(t),e.props.weekStart);let s=[];do{s.push(r),7===s.length&&(n.push(s),s=[]),r=v0(r)}while(r.getTime()<=a.getTime());return{monthDay:i,weeks:n}}function U0(e){e.props.calendar=NQ(e.props.showMonths,(e=>e)).map((t=>j0(e,b0(e.props.renderedDate,t)))),e.props.years=function(e){const t=Number(A0(e.props.renderedDate,"YYYY")),n=t-t%10;return e.props.decade=`${n} - ${n+9}`,NQ(10,(i=>_0(e.props.renderedDate,n+i-t)))}(e),e.props.months=function(e){const t=h0(e.props.renderedDate);return t.setMonth(0),NQ(12,(e=>b0(t,e)))}(e)}function V0(e,t){var n;t.target&&t.target instanceof Element&&(t.target.closest(`#${e.props.id}_popover`)||!(null===(n=e.props.__root)||void 0===n?void 0:n.contains(t.target)))||(e.props.expanded=!1)}function q0(e,t){if(!t)return e.props.inputText="",new Date;const n=t instanceof Date?t:D0(t,e.props.valueFormat,e.props.valueLocale);return e.props.inputText=e.props.formatDate(n,e.props.format,e.props.locale,!1,H0),n}function z0(e){return Array.isArray(e.props.sequence)?Sq(e.props.sequence):["day"]}function W0(e,t,n=!0){var i,r;if(e._value===t)return;if(null==t)return e.input(t,n);e.props.offset=e.props.timezone?O0(t,e.props.timezone):"+0000";const a=N0(t,null!==(i=(r=e.props).offset)&&void 0!==i?i:r.offset="+0000");e.input(A0(a,e.props.valueFormat,e.props.valueLocale,!1),n)}function G0(e,t){var n;const i=["prev_button","month_button","day_button","year_button","next_button"].find((t=>{var n;return null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}_${t}`)})),r=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}_${i}`);r instanceof HTMLElement&&(t.preventDefault(),r.focus())}function K0(e,t){var n;let i="";if(!(t instanceof HTMLInputElement)||e.props.pickerOnly)return;u6.set(e,t),null===(n=e.props.__root)||void 0===n||n.addEventListener("click",(t=>{e.props.expanded&&t.target instanceof HTMLElement&&t.target.closest(`#${e.props.id}_popover`)?p6.add(e):p6.delete(e)})),e.on("prop:inputText",(({payload:e})=>{e!==t.value&&("beforeCallback"===O4.get(t)&&(i=t.value),y1(t),t.selectionStart=0,t.selectionEnd=t.value.length,function(e,t){var n,i;if(!S4.has(e))return;const r=null!==(n=R4.get(e))&&void 0!==n?n:"",a=null!==(i=N4.get(e))&&void 0!==i?i:"";L1(e,{type:"insert",selectionBefore:A1(e),data:t,valueBefore:e.value,suffix:a,prefix:r})}(t,e),t.value=e,setTimeout((()=>v1(t)),10))}));const[r,a]=Z0(e);g1(t,{pattern:r,explicitParts:a,onChange:H((({valueAfter:n})=>{if(Y0(e),s6.has(e))return s6.delete(e);i&&i===n?i="":(y1(t),e.props.inputText=n,setTimeout((()=>v1(t)),10))}
100),"onChange")})}function Y0(e){var t,n;if(e.props.overlay){const i=u6.get(e);!i||!(null===(t=e.props.attrs)||void 0===t?void 0:t.placeholder)||e._value||u0(i,!0)||e.props._isFocused||e.props.activeDate&&e.props.expanded?i&&(e.props._isPlaceholder=!1,e.props._overlayParts=WQ(c0(i))):(e.props._isPlaceholder=!0,e.props._overlayParts=[{type:"placeholder",value:null===(n=e.props.attrs)||void 0===n?void 0:n.placeholder}])}}function Z0(e){const t=e.props.locale,n=["full","long","medium","short"].includes(e.props.format)||"object"==typeof e.props.format,i=x0(e.props.format,t);return[T0(e.props.format,t,!0,H0),i.reduce(((i,r)=>{if("literal"===r.partName)return i;let a=$0(r.token,t,n);if("YYYY"===r.token&&e.props.minDate&&e.props.maxDate){const t=e.props.minDate.getFullYear();a=NQ(e.props.maxDate.getFullYear()-t+1,(e=>String(t+e)))}const s={type:"enum",token:r.token,values:a,placeholder:"A"===r.token?"A/P":r.token,selectDirection:"left"};return i.push(s),r.token.startsWith("D")&&c6.set(e,a),i}),[])]}function X0(e,t){return!t||!!(e.props.minDate&&t<e.props.minDate)||!!(e.props.maxDate&&t>e.props.maxDate)||void 0}function Q0(e){return"function"==typeof e.props.validationLabel?e.props.validationLabel(e):e.props.validationLabel||e.props.label||e.props.name||String(e.name)}function J0(e,t){var n,i;if(t instanceof HTMLInputElement&&!f6.get(e)&&h6){const r=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}_overlay`),a=null===(i=e.props.__root)||void 0===i?void 0:i.getElementById(`${e.props.id}_overlay_inner`);if(r&&t&&a){f6.set(e,r);const n=getComputedStyle(t).color;t.style.color="transparent",t.style.caretColor=n;const i=new ResizeObserver((()=>{var n;const i=getComputedStyle(t),r=t.getBoundingClientRect(),a=null===(n=t.parentElement)||void 0===n?void 0:n.getBoundingClientRect();e.props._overlayStyles=B(F({},e.props._overlayStyles),{width:i.width,height:i.height,boxSizing:i.boxSizing,padding:i.padding,margin:i.margin,fontSize:i.fontSize,lineHeight:i.lineHeight,top:r.top-((null==a?void 0:a.top)||r.top)+"px",left:r.left-((null==a?void 0:a.left)||r.left)+"px"})}));i.observe(t);const s=H((e=>{a.scrollLeft=e.detail}),"a");t.addEventListener("input-scroll",s),e.on("destroyed",(()=>{t.removeEventListener("input-scroll",s),i.disconnect()}))}}}function e2(e){e.addProps(["_overlayStyles","_overlayParts","_overlayInnerStyles","_isPlaceholder"]),e.props._overlayStyles={position:"absolute",top:"0",left:"0",pointerEvents:e.props._isPlaceholder?"auto":"none"},e.props._overlayInnerStyles={overflow:"hidden",whiteSpace:"nowrap",paddingRight:"20px"},e.on("created",(()=>{e.props.overlay=xq(e.props.overlay),e.props.pickerOnly=xq(e.props.pickerOnly),e.props.overlay=e.props.pickerOnly?void 0:e.props.overlay,e.props.overlay&&Lq(`${e.props.id}`,J0.bind(null,e),e.props.__root)})),e.on("prop:_isPlaceholder",(()=>{e.props._overlayStyles=B(F({},e.props._overlayStyles),{pointerEvents:e.props._isPlaceholder?"auto":"none"})}))}function t2(e,t){if(!(t instanceof HTMLInputElement))throw new Error(`Masks can only be applied to an HTMLInputElement (id: ${t.id}).`);
100i7.set(e,t),g1(t,B(F({},n7.get(e)),{onChange:H((({valueAfter:t,meta:n})=>{e.props._maskValue=t,e.input({maskValue:t}),e.props._overlayParts=WQ(n)}),"onChange")}))}function n2(e,t,n,i){if(!(e.props.disabled||(e.props.isSourceOption=n,e.props.isSourceOption&&Array.isArray(e.value)&&e.value.length>=e.props.max)))if(n){if(e.props.selectedSourceItems.includes(t))return e.props.selectedSourceItems=e.props.selectedSourceItems.filter((e=>e!==t)),e.props.activeValue=void 0,void(e.props.activeDescendant=void 0);e.props.selectedTargetItems=[],e.props.selectedSourceItems=[...e.props.selectedSourceItems,t]}else{if(e.props.selectedTargetItems.includes(t))return void(e.props.selectedTargetItems=e.props.selectedTargetItems.filter((e=>e!==t)));e.props.selectedSourceItems=[],e.props.selectedTargetItems=[...e.props.selectedTargetItems,t]}}function i2(e,t){if(e.props.sourceListOrigin=!0,t){const n=Array.isArray(e.value)?[...e.value,t]:[t];return void e.input(n)}const n=e.props.selectedSourceItems.map((e=>KQ(e)));Array.isArray(e.value)?e.input([...e.value,...n]):e.input(n),e.props.selectedSourceItems=[]}function r2(e,t){if(e.props.sourceListOrigin=!1,t){const n=Array.isArray(e.value)?e.value.filter((e=>e!==t)):[];return void e.input(n)}const n=e.props.selectedTargetItems.map((e=>KQ(e)));if(Array.isArray(e.value)){const t=e.value.filter((e=>!n.includes(e)));e.input(t)}e.props.selectedTargetItems=[]}function a2(e){var t;const n=null===(t=e.props.__root)||void 0===t?void 0:t.getElementById(e.props.activeDescendant);n&&n.scrollIntoView({block:"nearest",inline:"start"})}function s2(e){var t;if(Array.isArray(e.value)){const t=[];let n=[...e.props.options];e.value.forEach((i=>{const r=e.props.memoOptions.find((e=>rq(KQ(e),i)));if(r){t.push(r);-1!==e.props.options.findIndex((e=>rq(KQ(e),i)))&&(n=n.filter((e=>!rq(KQ(e),i))))}else{const e=n.find((e=>rq(KQ(e),i)));e?(t.push(e),n=n.filter((e=>!rq(KQ(e),i)))):t.push({label:String(i),value:i,noOptionFound:!0})}})),e.props.targetOptions=t,e.props.sourceOptions=n}else e.props.sourceOptions=[...e.props.options],e.props.targetOptions=[];e.props.skipSetActiveValue?e.props.skipSetActiveValue=!1:(null===(t=e.props.__root)||void 0===t?void 0:t.getElementById(e.props.id+"_source_list_items"))&&function(e){var t,n,i,r,a,s,o;if(e.props.isDragging)return;if(e.props.sourceSearchActive){if((null===(n=null===(t=e.props.__root)||void 0===t?void 0:t.activeElement)||void 0===n?void 0:n.id)===`${e.props.id}_source_search_input`){const t=e.props.sourceOptions.find((e=>{var t;return!(null===(t=e.attrs)||void 0===t?void 0:t.disabled)}));return t?void(e.props.activeValue=KQ(t)):void(e.props.activeValue=void 0)}e.props.sourceSearchActive=!1}if(!1===e.props.transferOnSelect)return void(e.props.activeValue=void 0);const l=e.props.sourceListOrigin?e.props.sourceOptions:e.props.targetOptions;let u=!1;for(let c=e.props.activeIndex;c<=l.length;c++)if(!(null===(i=l.attrs)||void 0===i?void 0:i.disabled)&&l[c]){u=!0,e.props.activeValue=KQ(l[c]);break}if(!u&&l.length)for(let c=e.props.activeIndex;c>=0;c--)if(!(null===(r=l.attrs)||void 0===r?void 0:r.disabled)&&l[c])return u=!0,void(e.props.activeValue=KQ(l[c]));if(!u){let t;t=e.props.sourceListOrigin?null===(o=e.props.__root)||void 0===o?void 0:o.getElementById(`${e.props.id}`):e.props.searchable?null===(a=e.props.__root)||void 0===a?void 0:a.getElementById(`${e.props.id}_source_search_input`):null===(s=e.props.__root)||void 0===s?void 0:s.getElementById(`${e.props.id}_source_list_items`),t&&t.focus()}}(e)}function o2(e,t){return(t?e.props.sourceOptions:e.props.targetOptions).find((e=>{var t;return!(null===(t=e.attrs)||void 0===t?void 0:t.disabled)}))}function l2(e){Array.isArray(e.value)&&e.value.forEach((t=>V(this,null,(function*(){var n,i;QQ(e,t,(i=t,[...(n=e).props.options,...n.props.memoOptions].find((e=>rq(KQ(e),i)))))}))))}function u2(e){e.context&&(e.context.handlers.loadMore=ZQ.bind(null,e),e.context.fns.getSourceItemCount=t=>!1===e.props.transferOnSelect&&t.length?t.length+"/"+e.props.sourceOptions.length:e.props.sourceOptions.length,e.context.fns.getTargetItemCount=t=>!1===e.props.transferOnSelect&&t.length?t.length+"/"+e.props.targetOptions.length:e.props.targetOptions.length,e.context.fns.isActive=(t,n)=>{if(!e.props.isDragging&&!e.props.touchStarted)return rq(n,KQ(t))||void 0},e.context.fns.isSelected=(e,t)=>!!t&&!!Array.isArray(t)&&t.includes(e),e.context.fns.optionLoading=t=>e.props.optionLoaderValues.includes(KQ(t)),e.context.handlers.clearSearch=()=>{!function(e){var t;e.props.sourceSearchActive=!1,e.props.inputText="",YQ(e,"",!0);const n=null===(t=e.props.__root)||void 0===t?void 0:t.getElementById(`${e.props.id}_source_search_input`);n&&n.focus()}(e)},e.context.handlers.sourceSearchBlur=t=>{setTimeout((()=>{var n;if(t.relatedTarget&&t.relatedTarget instanceof HTMLElement&&(t.relatedTarget.id===`${e.props.id}_source_list_items`||t.relatedTarget.id===`${e.props.id}`)){const t=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}_source_search_input`);if(!t)return;t.focus()}else e.props.activeValue=void 0}))},e.context.handlers.listitemClick=(t,n)=>i=>{c2(e,t,n)},e.context.handlers.transferForward=i2.bind(null,e,void 0),e.context.handlers.transferForwardAll=()=>{let t;const n=e.props.sourceOptions.map((e=>KQ(e)));t=Array.isArray(e.value)?[...e.value,...n]:[...n],e.input(t),e.props.selectedSourceItems=[]},e.context.handlers.transferBackward=r2.bind(null,e,void 0),e.context.handlers.transferBackwardAll=()=>{Array.isArray(e.value)&&(e.input([]),e.props.selectedTargetItems=[])},e.context.handlers.onSearch=t=>{!function(e,t){e.props.sourceSearchActive=!0;const n=t.target;e.props.inputText=n.value,YQ(e,n.value,!0)}(e,t)},e.context.handlers.onMouseenter=t=>n=>{"touchstart"!==n.type&&(t?e.props.mouseOnSource=!0:e.props.mouseOnTarget=!0)},e.context.handlers.onMouseleave=t=>n=>{var i;if("touchend"===n.type)return;const r=null===(i=e.props.__root)||void 0===i?void 0:i.getElementById(t?`${e.props.id}_source_list_items`:`${e.props.id}`);r&&(r.contains(n.relatedTarget)||(e.props.trackHover=!1,e.props.activeValue=void 0,e.props.activeDescendant=void 0,e.props.activeIndex=void 0,t?e.props.mouseOnSource=!1:e.props.mouseOnTarget=!1))},e.context.handlers.listitemClick=(t,n)=>i=>{i instanceof MouseEvent&&e.props.touchStarted||c2(e,t,n)},e.context.handlers.listitemTouchstart=()=>()=>{e.props.touchStarted=!0},e.context.handlers.listitemTouchend=(t,n)=>i=>{!function(e,t,n,i){if(e.props.touchMoved)return e.props.touchMoved=!1,void(e.props.touchStarted=!1);const r=KQ(t);e.props.activeIndex=e.props.sourceOptions.findIndex((e=>KQ(e)===r)),e.props.transferOnSelect?n?i2(e,r):r2(e,r):n2(e,t,n)}
100(e,t,n)},e.context.handlers.listitemTouchmove=()=>t=>{e.props.touchMoved=!0},e.context.handlers.sourceSearchFocus=t=>{d2(e,!0)},e.context.handlers.sourceListFocused=t=>{d2(e,!0)},e.context.handlers.targetListFocused=()=>{d2(e,!1)},e.context.handlers.sourceListBlurred=t=>{e.props.activeValue=void 0},e.context.handlers.targetListBlurred=t=>{e.props.activeValue=void 0},e.context.handlers.sourceListKeydown=t=>{p2(e,t,!0)},e.context.handlers.targetListKeydown=t=>{p2(e,t,!1)},e.context.handlers.sourceSearchKeydown=t=>{p2(e,t,!0)})}function c2(e,t,n,i){var r;if(KQ(t)===q7)return void(null===(r=e.context)||void 0===r||r.handlers.loadMore(!0));const a=KQ(t);e.props.activeIndex=e.props.sourceOptions.findIndex((e=>KQ(e)===a)),e.props.transferOnSelect?n?i2(e,a):r2(e,a):n2(e,t,n)}function d2(e,t){const n=o2(e,t);n&&(e.props.sourceListOrigin=t,e.props.activeValue=KQ(n))}function p2(e,t,n){if("ArrowDown"===t.key||"ArrowUp"===t.key)!function(e,t,n){var i,r,a,s;e.preventDefault();const o=n?t.props.sourceOptions:t.props.targetOptions,l=o.findIndex((e=>KQ(e)===t.props.activeValue));if("ArrowUp"===e.key&&0!==l){for(let u=l-1;u>=0;u--)if(!(null===(r=null===(i=o[u])||void 0===i?void 0:i.attrs)||void 0===r?void 0:r.disabled)){t.props.sourceListOrigin=n,t.props.activeValue=KQ(o[u]);break}}else if("ArrowDown"===e.key&&l!==o.length-1)for(let u=l+1;u<o.length;u++)if(!(null===(s=null===(a=o[u])||void 0===a?void 0:a.attrs)||void 0===s?void 0:s.disabled)){t.props.sourceListOrigin=n,t.props.activeValue=KQ(o[u]);break}a2(t)}(t,e,n);else if("ArrowRight"===t.key||"ArrowLeft"===t.key){if("ArrowLeft"===t.key&&n)return;if("ArrowRight"===t.key&&!n)return;i=t,a=n,(r=e).props.searchable||(i.preventDefault(),function(e,t){var n,i,r;if(o2(e,!t))if(t){const t=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}`);t&&t.focus()}else if(e.props.searchable){const t=null===(i=e.props.__root)||void 0===i?void 0:i.getElementById(`${e.props.id}_source_search_input`);t&&t.focus()}else{const t=null===(r=e.props.__root)||void 0===r?void 0:r.getElementById(`${e.props.id}_source_list_items`);t&&t.focus()}}(r,a))}else"Enter"===t.key&&function(e,t,n){if(e.preventDefault(),!t.props.activeValue)return;const i=n?t.props.sourceOptions:t.props.targetOptions,r=i.findIndex((e=>KQ(e)===t.props.activeValue));t.props.activeIndex=r;const a=i[r];a&&(t.props.transferOnSelect?n?i2(t,KQ(a)):r2(t,KQ(a)):n2(t,a,n))}(t,e,n);var i,r,a}function h2(e){e.on("created",(()=>{if(e.props.skipSetActiveValue=!0,"function"==typeof e.props.optionsLoader&&JQ(e),u2(e),e.props.disabled&&(e.props.draggable=!1),P2){Lq(e.props.id+"_source_list_items",(t=>{t instanceof HTMLElement&&function(e,t){function n(){return e.props.sourceOptions.map((e=>KQ(e)))}function i(e,t){return[]}if(H(n,"o"),H(i,"n"),!e.context)return;const r={longTouch:!0,draggingClass:e.context.classes.dragging,dropZoneClass:e.context.classes.dropZone,group:e.props.id,root:e.props.__root||document,disabled:!e.props.draggable,touchDraggingClass:e.context.classes.touchDragging,touchDropZoneClass:e.context.classes.touchDropZone,selectionDraggingClass:e.context.classes.selectionDragging,selectionDropZoneClass:e.context.classes.selectionDropZone,touchSelectionDraggingClass:e.context.classes.touchSelectionDragging,touchSelectionDropZoneClass:e.context.classes.touchSelectionDropZone,longTouchClass:e.context.classes.longTouch,handleTouchmove(t){e.props.selectedSourceItems=[],wQ(t)},draggable:H((e=>"option"===e.getAttribute("role")),"draggable")};r.plugins=[LX({handleDragstart(t){e.props.isDragging=!0,e.props.trackHover=!1,e.props.activeValue=void 0,e.props.activeDescendant=void 0,aQ(t)},handleDragend(t){mQ(t),e.props.isDragging=!1,e.props.activeValue=void 0,e.props.activeDescendant=void 0,e.props.activeDescendant=void 0,e.props.isDragging=!1,e.props.selectedTargetItems=[],e.props.selectedSourceItems=[]},handleTouchstart(t){e.props.isDragging=!0,e.props.trackHover=!1,e.props.activeValue=void 0,e.props.activeDescendant=void 0,e.props.mouseOnSource=!1,e.props.mouseOnTarget=!1,yQ(t)},selections:H((()=>e.props.selectedSourceItems.map((e=>KQ(e)))),"selections")})],JX({parent:t,getValues:n,setValues:i,config:r}),e.on("prop:disabled",(({payload:e})=>{r.disabled=e,JX({parent:t,getValues:n,setValues:i,config:r})})),e.on("prop:draggable",(({payload:e})=>{r.disabled=!e,JX({parent:t,getValues:n,setValues:i,config:r})}))}(e,t)}),e.props.__root),Lq(`${e.props.id}`,(t=>{t instanceof HTMLElement&&function(e,t){function n(){return Array.isArray(e.value)?[...e.value]:[]}function i(t,n){e.props.sourceListOrigin=!0,e.input(n)}if(H(n,"o"),H(i,"n"),!e.context)return;const r={longTouch:!0,root:e.props.__root,group:e.props.id,disabled:!e.props.draggable,draggingClass:e.context.classes.dragging,dropZoneClass:e.context.classes.dropZone,touchDraggingClass:e.context.classes.touchDragging,touchDropZoneClass:e.context.classes.touchDropZone,selectionDraggingClass:e.context.classes.selectionDragging,selectionDropZoneClass:e.context.classes.selectionDropZone,touchSelectionDraggingClass:e.context.classes.touchSelectionDragging,touchSelectionDropZoneClass:e.context.classes.touchSelectionDropZone,longTouchClass:e.context.classes.longTouch,draggable:H((e=>"option"===e.getAttribute("role")),"draggable"),plugins:[]};r.plugins=[LX({handleDragstart(t){e.props.isDragging=!0,e.props.trackHover=!1,e.props.activeValue=void 0,aQ(t)},handleDragend(t){mQ(t),e.props.selectedTargetItems=[],e.props.selectedSourceItems=[],e.props.activeValue=void 0,e.props.trackHover=!0,e.props.isDragging=!1},handleTouchstart(t){e.props.trackHover=!1,e.props.activeValue=void 0,e.props.isDragging=!0,e.props.activeDescendant=void 0,yQ(t)},selections:H((()=>e.props.selectedTargetItems.map((e=>KQ(e)))),"selections")})],JX({parent:t,getValues:n,setValues:i,config:r}),e.on("prop:disabled",(({payload:e})=>{r.disabled=e,JX({parent:t,getValues:n,setValues:i,config:r})})),e.on("prop:draggable",(({payload:e})=>{r.disabled=!e,JX({parent:t,getValues:n,setValues:i,config:r})}))}(e,t)}),e.props.__root);const t=H((t=>{var n;if(e.props.isDragging)return;e.props.mouseX=t.clientX,e.props.mouseY=t.clientY;const i=e.props.mouseOnSource?`${e.props.id}_source_list_items`:`${e.props.id}`,r=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(i);if(r){const n=r.getBoundingClientRect();t.clientX>n.x&&t.clientX<n.x+n.width&&t.clientY>
100n.y&&t.clientY<n.y+n.height&&(e.props.trackHover=!0)}}),"t");document.addEventListener("mousemove",t)}}))}function f2(e,t){var n;let i=null,r="",a=[];if(e.props.mouseOnSource){if(i=z7.has(e),r=`${e.props.id}_source_list_item`,a=[...e.props.sourceOptions],!a||!a.length||i)return a=[],r="",void(i=null)}else if(e.props.mouseOnTarget&&(i=W7.has(e),r=`${e.props.id}_target_list_item`,a=[...e.props.targetOptions],!a||!a.length||i))return a=[],r="",void(i=null);const s=a.reduce(((t,n,i)=>{var a,s;if(null===(a=n.attrs)||void 0===a?void 0:a.disabled)return t;const o=null===(s=e.props.__root)||void 0===s?void 0:s.getElementById(r+`_${i}`);return o&&t.push([o,n]),t}),[]),o=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}_load_more`);o&&s.push([o,e.props.loadMoreOption]),e.props.mouseOnSource&&z7.add(e),e.props.mouseOnTarget&&W7.add(e),s.length&&m2(e,s,null,t)}function m2(e,t,n,i){const r=i?i.getBoundingClientRect():{top:0,bottom:0};if(n=null,e.props.trackHover){if(e.props.mouseY>r.top&&e.props.mouseY<r.bottom){let i=n||0,r=n;const a=H(((t,i)=>{var r;const a=i[0],{y:s,height:o,x:l,width:u}=a.getBoundingClientRect();if(e.props.mouseX>l&&e.props.mouseX<l+u&&e.props.mouseY>s&&e.props.mouseY<s+o){n=t;const a=i[1];return e.props.activeValue=a&&!(null===(r=a.attrs)||void 0===r?void 0:r.disabled)?KQ(a):void 0,!0}return!1}),"s");do{if(null!==i&&a(i,t[i]))break;if(null!==r&&a(r,t[r]))break;null!==i&&(i++,i>t.length-1&&(i=null)),null!==r&&(r--,r<0&&(r=null))}while(null!==i||null!==r)}}else a2(e);e.props.mouseOnSource||e.props.mouseOnTarget?e.props.mouseOnSource&&z7.has(e)||e.props.mouseOnTarget&&W7.has(e)?requestAnimationFrame(m2.bind(null,e,t,n,i)):f2(e,i):(z7.delete(e),W7.delete(e))}function g2(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}function y2(e){const[t,n,i,r]=function(e){3===(e=e.replace("#","")).length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);return function(e,t,n,i=1){const r=e/255,a=t/255,s=n/255,o=Math.max(r,a,s),l=Math.min(r,a,s);let u,c=0;const d=(o+l)/2;if(o===l)c=u=0;else{const e=o-l;switch(u=d>.5?e/(2-o-l):e/(o+l),o){case r:c=(a-s)/e+(a<s?6:0);break;case a:c=(s-r)/e+2;break;case s:c=(r-a)/e+4}c*=60}return[c,255*u,255*d,i]}(parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16),e.length>=8?parseInt(e.slice(6,8),16)/255:1)}(e);return[...b2(t,n,i,r)]}function v2(e,t,n,i=1){const r=t/100,a=n/100,s=(2-r)*a/2;return 0!==s&&(1===s||(t=s<.5?r*a/(2*s):r*a/(2-2*s))),[e,g2(255*t,2),g2(255*s,2),i]}function b2(e,t,n,i=1){const r=g2(t/255,4),a=g2(n/255,4);if(1===a)return[e,0,100,i];const s=g2(a+r*Math.min(a,1-a),4);let o=t/2.55;return 0!==s&&(o=1!==a&&0!==a?2*(s-a)/s*100:t/2.55),[e,g2(o,2),g2(100*s,2),i]}function _2(e,t,n,i=1){const r=n/100,a=r*(t/100),s=a*(1-Math.abs(e/60%2-1)),o=r-a;let l=0,u=0,c=0;return[l,u,c]=e<60?[a,s,0]:e<120?[s,a,0]:e<180?[0,a,s]:e<240?[0,s,a]:e<300?[s,0,a]:[a,0,s],l=Math.round(255*(l+o)),u=Math.round(255*(u+o)),c=Math.round(255*(c+o)),[Math.min(Math.max(l,0),255),Math.min(Math.max(u,0),255),Math.min(Math.max(c,0),255),i]}function w2(e,t,n,i=1){const r=e/255,a=t/255,s=n/255,o=Math.max(r,a,s),l=Math.min(r,a,s);let u=0;const c=o,d=o-l,p=0===o?0:d/o;if(o!==l){switch(o){case r:u=(a-s)/d+(a<s?6:0);break;case a:u=(s-r)/d+2;break;case s:u=(r-a)/d+4}u/=6}return[360*u,100*p,100*c,i]}function S2(e,t,n,i=1){const[r,a,s,o]=_2(e,t,n,i);return function(e,t,n,i=1){const r=H((e=>Math.round(e).toString(16).padStart(2,"0").toUpperCase()),"r"),a=(s=i,Math.round(255*s).toString(16).padStart(2,"0").toUpperCase());var s;return"#"+r(e)+r(t)+r(n)+`${"FF"===a?"":a}`}(r,a,s,o)}function C2(e){return/^(#?)([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e)}function k2(e){if(e){if(C2(e))return y2(e);if(e.startsWith("rgb")){const t=e.match(hee);if(!t)return[0,0,0,1];const n=H((e=>e.endsWith("%")?Math.round(2.55*Number(e.slice(0,-1))):Number(e)),"o");return w2(n(t[1]),n(t[2]),n(t[3]),t[4]?t[4].endsWith("%")?Number(t[4].slice(0,-1))/100:Number(t[4]):1)}if(e.startsWith("hsl")){const t=e.match(fee);if(!t)return[0,0,0,1];const n=Number(t[1].replace("deg","").trim()),i=Number(t[2].slice(0,-1))/100,r=Number(t[3].slice(0,-1))/100,a=t[4]?t[4].endsWith("%")?Number(t[4].slice(0,-1))/100:Number(t[4]):1;return b2(n,g2(255*i,2),g2(255*r,2),a)}}}function x2(e){const[t,n,i,r]=e.split("-").map((e=>Number(e)));return[t,n,i,r]}function T2(e,t=150,n=!0){let i=null,r=!0;return(...a)=>{const s=H((()=>{e(...a),i=null}),"a");n&&r&&(r=!1,s()),i||(i=setTimeout(s,t))}}function E2(e){return!1!==e&&"false"!==e}function A2(e){return e.tabIndex>=0&&!e.disabled&&null!==e.offsetParent}function L2(e,t){return t=(null==t?void 0:t.hasOwnProperty("__original"))?null==t?void 0:t.__original:null==t?void 0:t.value,e.props.multiple?!!Array.isArray(e.value)&&e.value.filter((e=>rq(e,t))).length>0:void 0!==t?rq(e.value,t):(e.props._isChecked=rq(e.value,e.props.onValue),e.props._isChecked)}function I2(e,t={}){const n=e;try{let i=function(e){};return H(i,"n"),function(e){const t=H((()=>{throw new Error(`InvalidFormKitKey ${e}`)}),"t");if(!/^fk-/i.test(e))return t();const n=e.substring(3);if(!D2.test(n))return t();const i=parseInt(n,16).toString(),r=Number(i[0])<6?Number(i[0]):6,a=i.substring(r,r+(i.length-6)),s=i.substring(0,r)+i.substring(r+a.length),o=s.slice(0,2),l=`${s[s.length-1]}${s[0]}`;Number(a)!==Math.floor(Number(s)*Number(o)/Number(l))&&t()}(n),i.library=n=>{if(n.props.type in t){const i=t[n.props.type],{schema:r}=i,a=j(i,["schema"]);Oee.add(n),n.define(B(F({},a),{schema:r(e)}))}},i}catch(i){throw i instanceof Error&&function(e){if("FormKitNoKey"===e.message)throw new Error("A FormKit API key is required, please visit https://form
100kit.com/pro")}(i),i}}H(zX,"resetState"),H(WX,"setDragState"),H(GX,"setTouchState"),H(KX,"dragStateProps"),H(YX,"performSort"),H(ZX,"parentValues"),H(XX,"setParentValues"),H(QX,"dragValues"),H(JX,"initParent"),H(eQ,"tearDownParent"),H(tQ,"setupParent"),H(nQ,"parentMutated"),H(iQ,"nodesMutated"),H(rQ,"remapNodes"),H(aQ,"handleDragstart2"),H(sQ,"dragstartClasses"),H(oQ,"initDrag"),H(lQ,"validateDragHandle"),H(uQ,"touchstart2"),H(cQ,"dragstart2"),H(dQ,"handleTouchOverNode"),H(pQ,"setupNode"),H(hQ,"reapplyDragClasses2"),H(fQ,"tearDownNode"),H(mQ,"handleDragend2"),H(gQ,"end"),H(yQ,"handleTouchstart2"),H(vQ,"initTouch"),H(bQ,"handleTouchedNode"),H(_Q,"handleLongTouch"),H(wQ,"handleTouchmove"),H(SQ,"touchmoveClasses"),H(CQ,"moveTouchedNode"),H(kQ,"touchmove"),H(xQ,"handleDragoverNode"),H(TQ,"handleDragoverParent"),H(EQ,"handleTouchOverParent"),H(AQ,"validateTransfer"),H(LQ,"dragoverNode"),H(IQ,"validateSort"),H($Q,"sort$1"),H(DQ,"nodeEventData"),H(PQ,"performTransfer"),H(OQ,"transfer"),H(MQ,"parentEventData"),H(RQ,"e$1"),H(NQ,"t$1"),H(FQ,"o"),H(BQ,"n$2"),H(HQ,"r$1"),H(jQ,"s$1"),H(UQ,"a$1"),H(VQ,"l"),H(qQ,"i$1"),H(zQ,"p$1"),H(WQ,"d$1"),H(GQ,"c$1"),H(KQ,"u$1"),H(YQ,"f$1"),H(ZQ,"h$1"),H(XQ,"v$1"),H(QQ,"g$2"),H(JQ,"$"),H(eJ,"m$1"),H(tJ,"b$1"),H(nJ,"y$1"),H(iJ,"x$1"),H(rJ,"w$1"),H(aJ,"k$1"),H(sJ,"_$2"),H(oJ,"S$1"),H(lJ,"L$1"),H(uJ,"D$1"),H(cJ,"C$1"),H(dJ,"A"),H(pJ,"M"),H(hJ,"T"),H(fJ,"I$1"),H(mJ,"E$3"),H(gJ,"O$1"),H(yJ,"V$1"),H(vJ,"F$2"),H(bJ,"B$2"),H(_J,"P$1"),H(wJ,"H$1"),H(SJ,"R$3"),H(CJ,"N"),H(kJ,"W"),H(xJ,"K$1"),H(TJ,"Y$1"),H(EJ,"U$2"),H(AJ,"Z"),H(LJ,"j"),H(IJ,"z$1"),H($J,"G$2"),H(DJ,"X$2"),H(PJ,"q$1"),H(OJ,"J$2"),H(MJ,"Q"),H(RJ,"ee$2"),H(NJ,"te$1"),H(FJ,"oe"),H(BJ,"ne"),H(HJ,"re$1"),H(jJ,"se"),H(UJ,"ae$1"),H(VJ,"le"),H(qJ,"ie"),H(zJ,"pe"),H(WJ,"de$1"),H(GJ,"ce$1"),H(KJ,"ue"),H(YJ,"fe"),H(ZJ,"he"),H(XJ,"ve"),H(QJ,"ge$1"),H(JJ,"$e"),H(e1,"me"),H(t1,"be"),H(n1,"ye"),H(i1,"xe"),H(r1,"we"),H(a1,"ke"),H(s1,"_e"),H(o1,"Se$1"),H(l1,"Le"),H(u1,"De"),H(c1,"Ce"),H(d1,"Ae$1"),H(p1,"Me$1"),H(h1,"Te$1"),H(f1,"Ie$1"),H(m1,"Ee$1"),H(g1,"Oe$1"),H(y1,"Ve"),H(v1,"Fe$1"),H(b1,"Be$1"),H(_1,"Pe"),H(w1,"He"),H(S1,"Re"),H(C1,"Ne$1"),H(k1,"We"),H(x1,"Ke"),H(T1,"Ye"),H(E1,"Ue"),H(A1,"Ze"),H(L1,"je$2"),H(I1,"ze$1"),H($1,"Ge$1"),H(D1,"Xe$1"),H(P1,"qe"),H(O1,"Je"),H(M1,"Qe"),H(R1,"et"),H(N1,"tt$1"),H(F1,"ot"),H(B1,"nt"),H(H1,"rt$1"),H(j1,"st$2"),H(U1,"at$1"),H(V1,"lt$1"),H(q1,"it"),H(z1,"pt$1"),H(W1,"dt$2"),H(G1,"ct$1"),H(K1,"ut$2"),H(Y1,"ft$2"),H(Z1,"ht$1"),H(X1,"vt$1"),H(Q1,"gt$1"),H(J1,"$t$1"),H(e0,"mt"),H(t0,"bt$1"),H(n0,"yt$1"),H(i0,"xt"),H(r0,"wt"),H(a0,"kt"),H(s0,"_t"),H(o0,"St$1"),H(l0,"Lt$1"),H(u0,"Dt$1"),H(c0,"Ct"),H(d0,"At$1"),H(p0,"Mt"),H(h0,"Tt"),H(f0,"It$1"),H(m0,"Et$1"),H(g0,"Ot"),H(y0,"Vt"),H(v0,"Ft$1"),H(b0,"Bt$1"),H(_0,"Pt$1"),H(w0,"Ht"),H(S0,"Rt"),H(C0,"Nt"),H(k0,"Wt"),H(x0,"Kt"),H(T0,"Yt"),H(E0,"Ut"),H(A0,"Zt"),H(L0,"jt"),H(I0,"zt$1"),H($0,"Gt$1"),H(D0,"Xt$1"),H(P0,"qt$1"),H(O0,"Jt$1"),H(M0,"Qt$1"),H(R0,"eo$1"),H(N0,"to$2"),H(F0,"oo$2"),H(B0,"no$2"),H(H0,"ro$2"),H(j0,"so$2"),H(U0,"ao$2"),H(V0,"lo$2"),H(q0,"io$1"),H(z0,"po$2"),H(W0,"co$2"),H(G0,"uo$2"),H(K0,"fo$2"),H(Y0,"ho$2"),H(Z0,"vo$2"),H(X0,"go$2"),H(Q0,"$o$2"),H(J0,"mo$2"),H(e2,"bo$2"),H(t2,"yo$2"),H(n2,"xo$2"),H(i2,"wo$2"),H(r2,"ko$2"),H(a2,"_o$2"),H(s2,"So$2"),H(o2,"Lo$1"),H(l2,"Do$2"),H(u2,"Co$2"),H(c2,"Ao$1"),H(d2,"Mo$1"),H(p2,"To$1"),H(h2,"Io$2"),H(f2,"Eo$1"),H(m2,"Oo$1"),H(g2,"Vo$2"),H(y2,"Fo$2"),H(v2,"Bo$2"),H(b2,"Po$2"),H(_2,"Ho$2"),H(w2,"Ro$1"),H(S2,"No$2"),H(C2,"Wo$2"),H(k2,"Ko$2"),H(x2,"Yo$2"),H(T2,"Uo$2"),H(E2,"Zo$2"),H(A2,"jo$2"),H(L2,"zo$2"),H(I2,"Go$2");let $2=189024;const D2=/^[0-9a-f]+$/,P2="undefined"!=typeof window;NQ(32,(e=>e)).map((()=>{$2|=0,$2=$2+1831565813|0;let e=$2^$2>>>15|$2;return e=e+e^e>>>427|e^e,((e^e>>>14)>>>0)/4294967296}));const O2={},M2=new Set(["",null,void 0]),R2=H((()=>({$el:"div",attrs:{key:"$id","data-type":"$type","data-family":"$family","data-multiple":"$attrs.multiple || $multiple || undefined","data-disabled":"$disabled || $disabledInternally || undefined","data-empty":"$state.empty || undefined","data-complete":"$state.complete || undefined","data-invalid":"$state.valid === false && $state.validationVisible || undefined","data-errors":"$state.errors || undefined","data-submitted":"$state.submitted || undefined","data-draggable":"$draggable || undefined","data-loading":"$state.loading || undefined","data-overscroll":'$behavior === "overscroll" && true || undefined',"data-id":"$id","data-inline":"$inline || undefined","data-is-max":"$max && $value && $value.length >= $max || undefined","data-multi-select":"$transferOnSelect === false || undefined","data-has-overlay":"$overlay || undefined","data-expanded":"$expanded || undefined","data-focused":"$_isFocused || undefined","data-appearance":"$selectionAppearance || undefined","data-is-multiline":"$multiLine || undefined"}})),"Cn$2"),N2=H((()=>({$el:"div",attrs:{id:'$id + "_inner"'}})),"An$2"),F2=H((()=>({if:"$label",$el:"label",attrs:{for:"$id",id:"$id + '_label'"}})),"Mn$2"),B2=H((()=>({$el:"ul",if:"$fns.length($messages)"})),"Tn$2"),H2=H((()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),"In$2"),j2=H((()=>({$el:"div",if:"$help"})),"En$2"),U2=H((()=>({$el:null})),"On$2"),V2=H(((e,t)=>()=>NK(e,t)),"Vn$2"),q2=H((()=>({$el:"span",if:'$part.type === "placeholder" && $part.value'})),"Fn$2"),z2=H((()=>({$el:"span",if:'$part.type === "literal" && $part.value'})),"Bn$2"),W2=H((()=>({$el:"span",if:'$part.type === "char" && $part.value'})),"Pn$2"),G2=H((()=>({$el:"span",if:'$part.type === "enum" && $part.value'})),"Hn$1"),K2=H((()=>({$el:"div",if:"$overlay",attrs:{id:'$id + "_overlay"',class:"$classes.overlay",style:"$_overlayStyles",onClick:"$_isPlaceholder && $handlers.overlayClick"}})),"Rn$2"),Y2=H((()=>({$el:"div",attrs:{id:'$id + "_overlay_inner"',class:"$classes.overlayInner",style:"$_overlayInnerStyles"}})),"Nn$2"),Z2=H((()=>({$el:null,for:["part","$_overlayParts"]}
100)),"Wn"),X2=HQ("dd"),{outer:Q2,wrapper:J2,inner:e3,icon:t3,label:n3,prefix:i3,suffix:r3,help:a3,messages:s3,message:o3}=jQ(X2),l3=X2("selector",(()=>({$el:"button",bind:"$attrs",attrs:{id:"$id",type:"button",onClick:"$handlers.click",onBlur:"$handlers.blur",onFocus:"$handlers.focus",onKeydown:"$handlers.keydown",tabindex:"0",name:"$node.name",disabled:"$disabled || $disabledInternally || undefined","aria-haspopup":"listbox","aria-expanded":"$expanded","aria-controls":'$expanded && $id + "_listbox" || undefined',"aria-describedBy":"$describedBy"}}))),u3=X2("selectionWrapper",(()=>({if:"$option || $state.loading",$el:"div"}))),c3=X2("selection",(()=>({$el:"div"}))),d3=X2("placeholder",(()=>({$el:"div",attrs:{key:"placeholder","data-is-placeholder":"true","aria-hidden":'$placeholder === undefined && "true" || undefined',style:{opacity:'$placeholder === undefined && "0" || undefined',"pointer-events":'$placeholder === undefined && "none" || undefined'}}}))),p3=X2("optionLoading","span"),h3=X2("option",(()=>({$el:"div"}))),f3=X2("removeSelection",(()=>({$el:"div",attrs:{id:'$selectionAppearance === "tags" && $id + "_remove_selection_" + $index || $id + "_remove_selection"',tabindex:"-1",type:"button",key:"$value",onClick:'$handlers.removeSelection && $handlers.removeSelection($selectionAppearance === "tags" && $option || undefined)',onTouchstart:'$handlers.removeSelection && $handlers.removeSelection($selectionAppearance === "tags" && $option || undefined)',"aria-controls":"$id"}}))),m3=X2("selectionsWrapper",(()=>({$el:"div",attrs:{id:'$id + "_selections_wrapper"'}}))),g3=X2("selections",(()=>({$el:"div",attrs:{"aria-live":"polite","aria-hidden":'$lastVisibleIndex && "true" || undefined',"data-test":"$lastVisibleIndex",id:'$id + "_selections"'}}))),y3=X2("truncationCount",(()=>({$el:"div",attrs:{id:'$id + "_truncation_count"'}}))),v3=X2("selectionsItem",(()=>({$el:"div",for:["selectionLabel","index","$formattedSelections"],attrs:{id:'$id + "_selections_item_" + $index',"data-check":"$selectionLabel",key:"$selectionLabel","aria-hidden":'$lastVisibleIndex && $index > $lastVisibleIndex && "true" || undefined',style:{visibility:'$lastVisibleIndex && $index > $lastVisibleIndex && "hidden" || undefined'}},children:'$selectionLabel || ""'}))),b3=X2("tagWrapper",(()=>({$el:"span",for:["option","index","$selections"],attrs:{id:'$id + "_tag-wrapper_" + $index',key:"$option.value","data-value":"$option.value",tabindex:"0",onClick:"$handlers.tagClick && $handlers.tagClick($option)",onKeydown:"$handlers.selectorTagKeydownHandler($option)",onFocus:"$handlers.tagFocus && $handlers.tagFocus($option)",onBlur:"$handlers.tagBlur && $handlers.tagBlur($option)","data-active-selection":"$activeSelectionValue === $option.value"}}))),_3=X2("tag",(()=>({$el:"div",attrs:{id:'$id + "_tag_" + $index',role:"button",tabindex:"0"}}))),w3=X2("tagLabel",(()=>({$el:"span"}))),S3=X2("tagsWrapper",(()=>({$el:"span",attrs:{id:'$id + "_tags_wrapper"',"aria-live":"polite"}}))),C3=X2("tags",(()=>({$el:"span",attrs:{id:'$id + "_selections"'}}))),k3=X2("tagLoading","span"),x3=qQ(X2),T3=new WeakMap,E3=new WeakMap,A3=Uq({key:"loading",type:"state",value:!0,visible:!1}),L3=Uq({key:"loading",type:"state",value:!1,visible:!1}),I3=new WeakMap,$3=Symbol(),D3=H((e=>{const t=(e=>{const t=[...e.props.options,...e.props.initialOptions];return[...e.props.memoOptions||[],...t]})(e),n=e.props.inputStd||[],i=[];for(const r of n){let e=t.find((e=>rq(KQ(e),r)));e||(e={value:r,label:Array.isArray(r)?r.join(", "):r,isPlaceholder:!1,noOptionFound:!0}),i.push(e)}return i}),"_r$1"),P3=new WeakSet,O3=new WeakMap,M3={position:"fixed",top:0,bottom:0,right:0,left:0,pointerEvents:"none",zIndex:-1,overflowY:"auto","-webkit-overflow-scrolling":"auto"},R3={position:"fixed",overflow:"hidden",height:"100%",width:"100%"},N3={overflow:"hidden",height:"100%"},F3={},B3={};let H3=0;const j3={schema:Q2(J2(n3("$label"),e3(t3("prefix"),i3(),l3(VQ("$inputStd.length === 0 && $state.loading !== true",d3('$placeholder || "placeholder"'),VQ("$multiple !== true",u3(VQ("$state.loading && $selections.length === 0",p3("$ui.isLoading.value"),c3(h3("$option.label")))),VQ('$multiple && $selectionAppearance === "truncate"',m3(g3(VQ("$state.loading && $selections.length === 0",p3("$ui.isLoading.value"),v3()))),VQ('$multiple && $selectionAppearance === "tags"',S3(C3(VQ("$state.loading && $isLoadingOption !== true && $selections.length === 0",p3("$ui.isLoading.value"),b3(_3(VQ("$state.loading && $optionLoaderValues.includes($option.value)",k3("$ui.isLoading.value"),w3("$option.label")),f3(t3("close"))))))))))),VQ("$truncationCount && $state.loading !== true",y3("$truncationCount")),VQ("$state.loading",t3("loader")),VQ("$inputStd.length !== 0 && $selectionRemovable",f3(t3("close")),t3("select"))),x3(),r3(),t3("suffix"))),a3("$help"),s3(o3("$message.value"))),type:"input",family:"dropdown",props:[],features:[aY("select","select"),aY("close","close"),aY("selected","check"),aY("loader","spinner"),oY("isLoading"),oY("loadMore"),pK,kJ.bind(null,(function(e){void 0===e.props.closeOnSelect?e.props.closeOnSelect=!e.props.multiple:e.props.closeOnSelect=xq(e.props.closeOnSelect),(e.props.multiple&&void 0===e.props.selectionAppearance||"truncate"===e.props.selectionAppearance)&&(e.props.selectionAppearance="truncate",e.props.formattedSelections=[]),e.props.multiple?e.props.selectionRemovable=!1:e.props.selectionRemovable=xq(e.props.selectionRemovable)}),(function(e){e.props.alwaysLoadOnOpen=void 0!==e.props.alwaysLoadOnOpen&&xq(e.props.alwaysLoadOnOpen),e.on("created",(()=>{e.context&&(e.context.handlers.click=NJ.bind(null,e),e.context.handlers.focus=FJ.bind(null,e),e.context.handlers.keydown=MJ.bind(null,e),e.context.handlers.selectorTagKeydownHandler=t=>PJ.bind(null,e,t))}))}),(function(e){if(e.on("created",(()=>{e.context&&BJ(e)})),e.props.multiple||(t=e).on("prop:selections",(({payload:e})=>{var n;t.props.firstSelectionLabel=(null===(n=e[0])||void 0===n?void 0:n.label)||"",t.props.option=e[0]})),"truncate"===e.props.selectionAppearance&&(e.props.lastVisibleIndex=null,HJ(e),e.on("prop:selections",(()=>{HJ(e)}))),"tags"===e.props.selectionAppearance&&GJ(e),e.props.multiple&&"tags"===e.props.selectionAppearance){let t=function(){return Array.isArray(e.value)?e.value:[]},n=function(t,n){e.input(n)};H(t,"t"),H(n,"o"),e.on("created",(()=>{e.props.disabled&&(e.props.draggable=!1),Lq(`${e.props.id}_selections`,(i=>{if(e.context&&i instanceof HTMLElement){const r={threshold:{horizontal:.5,vertical:0},plugins:[BX()],draggingClass:e.context.classes.dragging,dropZoneClass:e.context.classes.dropZone,disabled:!e.props.draggable,root:e.props.__root,touchDraggingClass:e.context.classes.touchDragging,touchDropZoneClass:e.context.classes.touchDropZone,draggable:H((e=>e.hasAttribute("data-active-selection")),"draggable")};JX({parent:i,getValues:t,setValues:n,config:r}),e.on("prop:disabled",(({payload:e})=>{r.disabled=e,JX({parent:i,getValues:t,setValues:n,config:r})})),e.on("prop:draggable",(({payload:e})=>{r.disabled=!e,JX({parent:i,getValues:t,setValues:n,config:r})}))}}),e.props.__root)}))}var t;e.on("prop:expanded",(({payload:t})=>{t&&e.props.optionsLoader&&"function"==typeof e.props.optionsLoader&&(!e.props.options.length||e.props.alwaysLoadOnOpen)&&
100(e.props.options=[],JQ(e))})),"overscroll"===e.props.behavior&&WJ(e)})),ZJ]},U3=HQ("tg"),{outer:V3,wrapper:q3,prefix:z3,suffix:W3,help:G3,messages:K3,message:Y3,icon:Z3}=jQ(U3),X3=U3("input",(()=>({$el:"input",bind:"$attrs",attrs:{type:"checkbox",id:"$id",value:"$value",name:"$node.name",checked:"$checked",onInput:"$handlers.toggles",onBlur:"$handlers.blur",disabled:"$disabled"}}))),Q3=U3("label",(()=>({if:"($label && $onValueLabel === undefined && $offValueLabel === undefined) || ($valueLabelDisplay === inner) && $altLabelPosition !== true",$el:"label",attrs:{for:"$id"},children:"$label"}))),J3=U3("altLabel",(()=>({$el:"label",if:"($label && ($onValueLabel || $offValueLabel) && $valueLabelDisplay !== hidden && $valueLabelDisplay !== inner) || $altLabelPosition === true",attrs:{for:"$id","data-label-alt":"true",style:{color:{if:"$checked",then:"$valueLabelColorOn",else:"$valueLabelColorOff"}}},children:"$label"}))),e8=U3("innerLabel",(()=>({$el:"div",if:"$valueLabelDisplay === inner && ($checked && $onValueLabel || $offValueLabel)",attrs:{style:{color:{if:"$checked",then:"$valueLabelColorOn",else:"$valueLabelColorOff"}}},children:{if:"$checked",then:"$onValueLabel",else:"$offValueLabel"}}))),t8=U3("valueLabel",(()=>({$el:"label",if:"$valueLabelDisplay !== hidden && $valueLabelDisplay !== inner && (($checked === true && $onValueLabel) || ($checked === false && $offValueLabel))",attrs:{for:"$id"},children:{if:"$checked && $onValueLabel",then:"$onValueLabel",else:{if:"$offValueLabel",then:"$offValueLabel"}}}))),n8=U3("inner",(()=>({$el:"label",attrs:{for:"$id",id:"$id + '_label'"}}))),i8=U3("track",(()=>({$el:"div",attrs:{style:{backgroundColor:{if:"$checked",then:"$trackColorOn",else:"$trackColorOff"}}}}))),r8=U3("thumb",(()=>({$el:"div",attrs:{style:{color:{if:"$checked",then:"$iconColorOn",else:"$iconColorOff"},backgroundColor:{if:"$checked",then:"$thumbColorOn",else:"$thumbColorOff"}}}}))),a8={schema:V3(q3(J3(),n8(z3(),X3(),i8(e8(),r8(VQ("$slots.default","$slots.default",Z3("thumb")))),W3()),t8(),Q3()),G3("$help"),K3(Y3("$message.value"))),type:"input",props:["checked","thumbColorOff","thumbColorOn","iconColorOff","iconColorOn","valueLabelColorOff","valueLabelColorOn","offValue","offValueLabel","onValue","onValueLabel","thumbIcon","trackColorOff","trackColorOn","valueLabelDisplay","altLabelPosition"],features:[function(e){function t(e,t){t.target instanceof HTMLInputElement&&(e.input(t.target.checked?e.props.onValue:e.props.offValue),e.props.checked=t.target.checked)}H(t,"t"),e.on("created",(()=>{"disabled"in e.props&&(e.props.disabled=xq(e.props.disabled)),e.props.altLabelPosition=xq(e.props.altLabelPosition),void 0===e.props.offValue&&(e.props.offValue=!1),void 0===e.props.onValue&&(e.props.onValue=!0),e.props.checked=rq(e.value,e.props.onValue),e.context&&(e.context.handlers.toggles=t.bind(null,e))})),e.on("commit",(({payload:t})=>{e.props.checked=rq(t,e.props.onValue)}))}]},s8=HQ("rp"),{outer:o8,inner:l8,prefix:u8,suffix:c8,help:d8,messages:p8,message:h8,icon:f8}=jQ(s8),m8=s8("empty",(()=>({$el:"div"}))),g8=s8("insertControl",(()=>({$el:"button",attrs:{disabled:"$value.length >= $max",onClick:"$fns.createInsert($index)",type:"button"}}))),y8=s8("addButton",(()=>({$formkit:"button",bind:"$addAttrs",if:"$addButton",disabled:"$value.length >= $max",onClick:"$fns.createAppend()",type:"button"}))),v8=s8("removeControl",(()=>({$el:"button",attrs:{disabled:"$value.length <= $min",onClick:"$fns.createRemover($index)",type:"button"}}))),b8=s8("items",(()=>({$el:"ul",meta:{autoAnimate:!0},attrs:{role:"list",id:'$id + "_items"'}}))),_8=s8("item",(()=>({$el:"li",for:["item","index","$items"],attrs:{role:"listitem",key:"$item","data-index":"$index"}}))),w8=s8("downControl",(()=>({$el:"button",attrs:{disabled:"$index >= $value.length - 1",onClick:"$fns.createShift($index, 1)",type:"button"}}))),S8=s8("upControl",(()=>({$el:"button",attrs:{disabled:"$index <= 0",onClick:"$fns.createShift($index, -1)",type:"button"}}))),C8=s8("content","div"),k8=s8("fieldset",(()=>({$el:"fieldset",attrs:{id:"$id"}}))),x8=s8("legend",(()=>({$el:"legend",if:"$label"}))),T8=s8("group",(()=>({$formkit:"group",index:"$index"}))),E8=s8("controls",(()=>({$el:"ul",if:"$removeControl || $insertControl || $upControl || $downControl"}))),A8=s8("remove",(()=>({$el:"li",if:"$removeControl"}))),L8=s8("insert",(()=>({$el:"li",if:"$insertControl"}))),I8=s8("up",(()=>({$el:"li",if:"$upControl"}))),$8=s8("down",(()=>({$el:"li",if:"$downControl"}
100))),D8=s8("controlLabel","span"),P8=s8("dragHandleWrapper",(()=>({if:"$draggable",$el:"div"}))),O8=s8("dragHandle",(()=>({$el:"div",attrs:{id:'$id + "_drag_handle"'}}))),M8={schema:o8(k8(x8("$label"),d8("$help"),l8(u8(),VQ("$value.length === 0",VQ("$slots.empty",m8()),VQ("$slots.default",b8(_8(P8(O8(f8("dragHandle"))),C8(T8("$slots.default")),E8(I8(S8(D8("$ui.moveUp.value"),f8("moveUp"))),A8(v8(D8("$ui.remove.value"),f8("remove"))),L8(g8(D8("$ui.add.value"),f8("add"))),$8(w8(D8("$ui.moveDown.value"),f8("moveDown")))))),c8()))),y8('$addLabel || ($ui.add.value + " " + ($label || ""))')),p8(h8("$message.value"))),type:"list",props:["min","max","total","upControl","downControl","removeControl","insertControl","addLabel","addButton","addAttrs","draggable"],features:[function(e){e._c.sync=!0,e.on("created",XJ.bind(null,e)),e.on("mounted",(()=>{Lq(`${e.props.id}_items`,(t=>{if(t instanceof HTMLElement){let n=function(t){for(const n of t)for(const t of Array.from(n.addedNodes))if(t instanceof HTMLElement&&t.id===`${e.props.id}_items`)return void QJ(t,e)};H(n,"o"),QJ(t,e),new MutationObserver(n).observe(t.parentNode,{childList:!0})}}),e.props.__root)}))},sY,oY("remove"),oY("add"),oY("moveUp"),oY("moveDown"),aY("dragHandle","dragHandle"),aY("remove","trash"),aY("add","add"),aY("moveUp","arrowUp"),aY("moveDown","arrowDown")]},R8="undefined"!=typeof window,N8=HQ("rt"),{outer:F8,wrapper:B8,inner:H8,label:j8,prefix:U8,suffix:V8,help:q8,messages:z8,message:W8,icon:G8}=jQ(N8),K8=N8("input",(()=>({$el:"input",bind:"$attrs",attrs:{id:"$id",type:"range",max:"$max",name:"$node.name",min:"0",disabled:"$disabled",step:"$step",onInput:"$handlers.DOMInput",onBlur:"$handlers.blur",value:"$value",style:{position:"absolute",zIndex:"0",top:0,right:0,bottom:0,opacity:"0"}}}))),Y8=N8("itemsWrapper",(()=>({$el:"div",attrs:{style:{position:"relative",zIndex:"2"},id:"$id + _items_wrapper",onMousemove:"$hoverHighlight && $handlers.ratingHoverOver",onMouseleave:"$hoverHighlight && $handlers.ratingHoverOut",onTouchstart:"$handlers.ratingHoverOver",onTouchmove:"$handlers.ratingHoverOver",onTouchend:"$handlers.handleClick",onClick:"$handlers.handleClick"}}))),Z8=N8("onItems",(()=>({$el:"div",attrs:{id:'$id + "_on_wrapper"',style:{position:"relative",display:"flex",width:'$onWidth + "%"',top:"0",bottom:"0",left:"0",overflow:"hidden",color:"$onColor"}}}))),X8=N8("offItems",(()=>({$el:"div",attrs:{id:'$id + "_off_wrapper"',style:{position:"absolute",display:"flex",flexDirection:"row-reverse",width:'$offWidth + "%"',top:"0",bottom:"0",right:"0",overflow:"hidden",color:"$offColor"}}}))),Q8=N8("onItemWrapper",(()=>({$el:"div",for:["item","index","$max"],attrs:{style:{flex:"$wrapperWidth"}}}))),J8=N8("offItemWrapper",(()=>({$el:"div",for:["item","index","$max"],attrs:{style:{flex:"$wrapperWidth"}}}))),e5={schema:F8(B8(j8("$label"),H8(G8("prefix"),U8(),Y8(Z8(Q8(VQ("$slots.onItem",(()=>()=>"$slots.onItem"),VQ("$slots.default",(()=>()=>"$slots.default"),G8("rating"))))),X8(J8(VQ("$slots.offItem",(()=>()=>"$slots.offItem"),VQ("$slots.default",(()=>()=>"$slots.default"),G8("rating")))))),K8(),V8(),G8("suffix"))),q8("$help"),z8(W8("$message.value"))),type:"input",props:[],features:[function(e){e.addProps(["onWidth","offWidth","wrapperW
100idth","max","min","icon","step","hoverHighlight","ratingIcon","onColor","offColor"]),e.props.max=e.props.max||5,e.props.min=e.props.min||0,e.props.step=e.props.step||1,!1!==e.props.hoverHighlight&&(e.props.hoverHighlight=!0),"disabled"in e.props&&(e.props.disabled=xq(e.props.disabled)),e.on("created",(()=>{R8&&(e.props.initialBodyOverflow=document.documentElement.style.overflow),e.context&&(e.context.handlers.ratingHoverOver=e1.bind(null,e),e.context.handlers.ratingHoverOut=t1.bind(null,e),e.context.handlers.handleClick=JJ.bind(null,e),R8&&Lq(`${e.props.id}`,(()=>{i1(e),function(e){var t;const n=null===(t=e.props.__root)||void 0===t?void 0:t.getElementById(`${e.props.id}_items_wrapper`);if(!n)return;new ResizeObserver((()=>{i1(e)})).observe(n)}(e),setTimeout((()=>i1(e)),100)}),e.props.__root))})),e.on("input",(()=>r1(e))),e.hook.input(((t,n)=>{if(null===t||""===t||isNaN(t))return n(t);const i=Number(t),r=Number(e.props.min),a=Number(e.props.max);return i>a?n(a):e.props.min&&i<=r?n(r):n(i)}))},aY("rating","star")]},t5=HQ("ac"),{outer:n5,wrapper:i5,inner:r5,icon:a5,label:s5,prefix:o5,suffix:l5,help:u5,messages:c5,message:d5}=jQ(t5),p5=t5("input",(()=>({$el:"input",bind:"$attrs",attrs:{id:"$id",type:"text",onClick:"$handlers.click",onBlur:"$handlers.blur",onKeydown:"$handlers.keydown",onInput:"$handlers.input",onFocus:"$handlers.focus",value:"$inputText || undefined",name:"$node.name",placeholder:"$state.loading && $ui.isLoading.value || $placeholder || undefined",tabindex:'$disabled && "-1" || 0',role:"combobox",autocomplete:"off",autocapitalize:"none",readonly:"$attrs.readonly || $state.loading || $multiple && $max && $value && $value.length >= $max && $hasHighlightedRange !== true || undefined","data-selection-appearance":"$selectionAppearance",disabled:"$disabled || $disabledInternally || undefined",onTouchmove:"$handlers.touchmove",onTouchstart:"$handlers.touchmove",onTouchend:"$handlers.touchend","aria-autocomplete":"list","aria-expanded":"$expanded","aria-controls":'$expanded && $id + "_listbox" || undefined',"aria-describedBy":"$describedBy","aria-activedescendant":"$expanded && $activeDescendant || undefined"}}))),h5=t5("listboxButton",(()=>({$el:"div",attrs:{style:"$visibilityStyles",id:'$id + "_listbox_button"',role:"button",onClick:"$handlers.toggleListbox",tabindex:'$disabled && "-1" || 0',"aria-haspopup":"true","aria-expanded":"$expanded","aria-controls":'$expanded && $id + "_listbox" || undefined',"aria-disabled":"$disabled || $state.loading || undefined","data-disabled":"$disabled || $disabledInternally || undefined"}}))),f5=t5("selectionWrapper",(()=>({for:["option","index","$selections"],$el:"div",attrs:{id:'$id + "_selection_wrapper_" + $index',key:"$option.value","data-value":"$option.value",tabindex:'$disabled && "-1" || 1',onKeydown:"$handlers.selectionKeydown && $handlers.selectionKeydown($multiple && $option || undefined)",onClick:"$handlers.selectionClick && $handlers.selectionClick($multiple && $option || undefined)",onFocus:"$handlers.selectionFocus && $handlers.selectionFocus($multiple && $option || undefined)",onBlur:"$handlers.selectionBlur && $handlers.selectionBlur($multiple && $option || undefined)","data-active-selection":"$activeSelectionValue === $option.value"}}))),m5=t5("selection",(()=>({$el:"div",attrs:{id:'$id + "_selection_" + $index'}}))),g5=t5("selections",(()=>({$el:"div",attrs:{"aria-live":"polite",id:'$id + "_selections"'}}))),y5=t5("removeSelection",(()=>({$el:"button",attrs:{id:'$selectionAppearance === "option" && $multiple && $id + "_remove_selection_" + $index || $id + "_remove_selection"',tabindex:"-1",type:"button",onClick:"$handlers.removeSelection && $handlers.removeSelection($multiple && $option || undefined)",onTouchend:"$handlers.removeSelection && $handlers.removeSelection($multiple && $option || undefined)","aria-controls":"$id"}}))),v5=t5("optionLoading","span"),b5=t5("option",(()=>({$el:"div",if:"$value !== undefined"}))),_5=qQ(t5),w5=new WeakMap,S5="undefined"!=typeof window,C5=new WeakMap;let k5=!1;const x5={schema:n5(i5(s5("$label"),r5(a5("prefix"),o5(),p5(),VQ("$multiple !== true && $selectionAppearance === option && $expanded === false",g5(f5(m5(b5(VQ("$state.loading",v5("$ui.isLoading.value"),"$option.label"))),VQ("$state.loading && $isSingleOption !== true && $optionLoaderValues.includes($option.value)",a5("loader")),VQ("$selectionRemovable && $isSingleOption",y5(a5("close")))))),VQ("$state.loading && ($isSingleOption !== true || $selections.length === 0)",a5("loader")),VQ('$selectionRemovable && $selectionAppearance === "text-input" && $selections.length > 0',y5(a5("close")),VQ('$selectionAppearance === "text-input" || ($selectionAppearance === "option" && $multiple)',h5(a5("select")))),VQ("$isSingleOption && ($inputStd.length === 0 || $selectionRemovable === undefined || ($expanded) || $state.loading || $optionLoaderValues.length > 0)",h5(a5("select"))),_5(),l5(),a5("suffix")),VQ("$multiple && $selectionAppearance === option",g5(f5(m5(b5(VQ("$state.loading && $isLoadingOption",v5("$ui.isLoading.value"),"$option.label"))),y5(a5("close")))))),u5("$help"),c5(d5("$message.value"))),type:"input",family:"dropdown",props:[],features:[aY("select","select"),aY("close","close"),aY("selected","check"),aY("loader","spinner"),oY("isLoading"),oY("loadMore"),pK,kJ.bind(null,(function(e){"option"!==e.props.selectionAppearance||e.props.multiple||!1===e.props.selectionRemovable||"false"===e.props.selectionRemovable||(e.props.selectionRemovable=!0),e.props.multiple||(e.props.clearSearchOnOpen=xq(e.props.clearSearchOnOpen)),e.props.selectionRemovable=xq(e.props.selectionRemovable),e.props.openOnClick=xq(e.props.openOnClick),"option"!==e.props.selectionAppearance||e.props.multiple||(e.props.isSingleOption=!0),void 0===e.props.closeOnSelect&&(e.props.closeOnSelect=!0),void 0===e.props.selectionAppearance&&(e.props.selectionAppearance="text-input"),void 0===e.props.closeOnSelect&&(e.props.closeOnSelect=!0),e.props.closeOnSelect?e.props.resetSearchOnCommit=!1:void 0===e.props.resetSearchOnCommit&&(e.props.resetSearchOnCommit=e.props.multiple),e.props.allowNewValues=xq(e.props.allowNewValues)}),a1,(function(e){if(e.props.multiple)if(e.props.multiple&&"option"===e.props.selectionAppearance){let t=function(){return Array.isArray(e.value)?e.value:[]},n=function(t,n){e.input(n)};H(t,"t"),H(n,"o"),f1(e),e.on("created",(()=>{e.props.disabled&&(e.props.draggable=!1),Lq(`${e.props.id}_selections`,(i=>{if(i instanceof HTMLElement&&e.context){const r={draggingClass:e.context.classes.dragging,dropZoneClass:e.context.classes.dropZone,root:e.props.__root,disabled:!e.props.draggable,plugins:[BX()],touchDraggingClass:e.context.classes.touchDragging,touchDropZoneClass:e.context.classes.touchDropZone,draggable:H((e=>e.hasAttribute("data-active-selection")),"draggable")};JX({parent:i,getValues:t,setValues:n,config:r}),e.on("prop:disabled",(({payload:e})=>{r.disabled=e,JX({parent:i,getValues:t,setValues:n,config:r})})),e.on("prop:draggable",(({payload:e})=>{r.disabled=!e,JX({parent:i,getValues:t,setValues:n,config:r})}))}}),e.props.__root)}))}else e.props.multiple&&"text-input"===e.props.selectionAppearance&&c1(e);else m1(e)})),ZJ]},T5=HQ("dp"),{outer:E5,wrapper:A5,inner:L5,icon:I5,label:$5,prefix:D5,suffix:P5,help:O5,messages:M5,message:R5}=jQ(T5),N5=T5("input",(()=>({$el:"input",bind:"$attrs",attrs:{name:"$node.name",id:"$id",onKeydown:"$handlers.inputKeydown",value:"$inputText",onInput:"$handlers.dateInput",onClick:"$pickerOnly && $handlers.open",onBlur:"$handlers._blur",onFocus:"$handlers.focus",readonly:"$pickerOnly || $expanded",disabled:"$disabled"}}))),F5=T5("panelWrapper",(()=>({$el:"div",if:"$expanded",attrs:{id:'$id + "_popover"',role:"dialog",onBlur:"$handlers._blurOut()",tabindex:"-1",popover:"$popover","aria-modal":"true","aria-label":"Choose date","data-panel":"$panel",style:{if:"$usePopover",then:{margin:0,top:'$popoverCoordinates.y + "px"',left:'$popoverCoordinates.x + "px"',width:'$popoverCoordinates.width + "px"'}}}}))),B5=T5("next",(()=>({$el:"button",if:"$showPagination",attrs:{id:"$id + _next_button",type:"button",onClick:"$handlers.next"}}))),H5=T5("nextLabel","span"),j5=T5("prev",(()=>({$el:"button",if:"$showPagination",attrs:{id:"$id + _prev_button",type:"button",onClick:"$handlers.prev"}}))),U5=T5("prevLabel","span"),V5=T5("calendar",(()=>({if:'$panel === "day"',$el:"table",for:["month","$calendar"],attrs:{key:'$fns.format($month.monthDay, "YYYY-MM")'}}))),q5=T5("calendarWeeks",(()=>({$el:"tbody"}))),z5=T5("calendarHeader",(()=>({$el:"thead"}))),W5=T5("weekDays",(()=>({$el:"tr"}))),G5=T5("weekDay",(()=>({$el:"th",for:["day","$month.weeks.0"],attrs:{"aria-label":'$fns.format($day, "dddd")'}}))),K5=T5("week",(()=>({$el:"tr",for:["week","$month.weeks"]}))),Y5=T5("dayCell",(()=>({$el:"td",for:["day","$week"],attrs:{key:'$: "day" + $fns.format($day, "D")',onClick:"$handlers.setDate($day)",onKeydown:"$handlers.keyDown",onMouseenter:"$handlers.mouseEnter($day)",onMouseleave:"$handlers.mouseLeave",onBlur:"$handlers._blurOut(day)",tabindex:'$fns.sameDay($day) && "0" || "-1"',"data-is-extra":"$fns.notInMonth($month.monthDay, $day)","data-disabled":"$fns.isDisabled($day)","aria-selected":"$fns.isSelected($day)","aria-label":'$fns.format($day, "long")'}}))),Z5=T5("day","div"),X5=T5("openButton",(()=>({$el:"div",attrs:{style:"$visibilityStyles",id:'$id + "_listbox_button"',type:"div",role:"button",onClick:"$handlers.open",onKeydown:"$handlers.openKeydown",tabIndex:'$pickerOnly && "-1" || "0"',"data-disabled":"$disabled","aria-disabled":"$disabled","aria-label":'$value && ($ui.changeDate.value + ", " + $inputText) || $ui.chooseDate.value',"aria-haspopup":"true","aria-expanded":"$expanded","aria-controls":'$expanded && $id + "_listbox" || undefined'}}))),Q5=T5("years",(()=>({if:'$panel === "year"',$el:"ul"}))),J5=T5("year",(()=>({for:["year","$years"],$el:"li",attrs:{key:'$: "year" + $fns.format($year, "YYYY")',onClick:"$handlers.setDate($year)",onKeydown:"$handlers.keyDown",onMouseenter:"$handlers.mouseEnter($year)",onMouseleave:"$handlers.mouseLeave",onBlur:"$handlers._blurOut(year)",tabindex:'$fns.sameYear($year) && "0" || "-1"',"aria-selected":"$fns.isSelected($year)","data-disabled":"$fns.isDisabledYear($year)"}}))),e4=T5("months",(()=>({if:'$panel === "month"',$el:"ul"}))),t4=T5("month",(()=>({$el:"li",for:["month","$months"],attrs:{key:'$: "month" + $fns.format($month, "M")',onClick:"$handlers.setDate($month)",onKeydown:"$handlers.keyDown",onMouseenter:"$handlers.mouseEnter($month)",onMouseleave:"$handlers.mouseLeave",onBlur:"$handlers._blurOut(month)",tabindex:'$fns.sameMonth($month) && "0" || "-1"',"aria-selected":"$fns.isSelected($month)","data-disabled":"$fns.isDisabledMonth($month)"}}))),n4=T5("panelHeader",(()=>({$el:"header",attrs:{"aria-live":"polite"}}))),i4=T5("yearsHeader",(()=>({$el:"div",if:'$panel === "year"'}))),r4=T5("monthsHeader",(()=>({$el:"div",if:'$panel === "month"'}))),a4=T5("daysHeader",(()=>({$el:"div",if:'$panel === "day"'}))),s4=T5("timeHeader",(()=>({$el:"div",if:'$panel === "time"'}))),o4=T5("yearButton",(()=>({$el:"button",attrs:{type:"button",id:"$id + _year_button",onClick:"$handlers.jumpTo(year)"},children:"$fns.format($renderedDate, $yearFormat)"}))),l4=T5("monthButton",(()=>({$el:"button",attrs:{type:"button",id:"$id + _month_button",onClick:"$handlers.jumpTo(month)"},children:"$fns.format($renderedDate, $monthButtonFormat)"}))),u4=T5("dayButton",(()=>({$el:"button",attrs:{type:"button",id:"$id + _day_button",onClick:"$handlers.jumpTo(day)",tabindex:"2"},children:"$fns.format($renderedDate, $dayButtonFormat)"}))),c4=T5("removeSelection",(()=>({$el:"button",if:"$clearable && $_value",attrs:{id:'$id + "_remove_selection"',type:"button",onClick:"$handlers.clear","aria-controls":"$id"}}))),d4=T5("time",(()=>({$el:"div",if:'$panel === "time"'}))),p4=T5("timeInput",(()=>({$el:"input",attrs:{type:"time",value:"$localTime",onInput:"$handlers.localTime",onKeydown:"$handlers.keyDown",spellcheck:"false",onBlur:"$handlers._blurOut(time)"}}))),h4=T5("panelClose",(()=>({$el:"button",if:"$showPanelClose && ($inline === undefined || $inline === false)",attrs:{type:"button",class:"$classes.panelClose",onClick:"$handlers.closePanel",tabindex:-1,"aria-label":"$ui.close.value"}}))),{overlayPlaceholder:f4,overlayLiteral:m4,overlayChar:g4,overlayEnum:y4,overlay:v4,overlayParts:b4,overlayInner:_4}=UQ(T5),w4=T5("panel","div"),S4=new WeakMap,C4=new WeakMap,k4=new WeakSet,x4=new WeakMap,T4=new WeakMap,E4=new WeakSet,A4=new WeakMap,L4=/[\uD800-\uDBFF]/,I4=new WeakMap,$4=new WeakMap,D4=new WeakMap,P4=new WeakMap,O4=new WeakMap,M4=ne
100w WeakSet,R4=new WeakMap,N4=new WeakMap,F4=new WeakMap,B4=new WeakMap;let H4=!1;const j4=H((()=>{H4=!0,setTimeout((()=>{H4=!1}),500)}),"Ol"),U4={"#":{type:"char",pattern:/\d/,token:"#",placeholder:"_",selectDirection:"right"},a:{type:"char",pattern:/[a-zA-Z]/,token:"a",placeholder:"_",selectDirection:"left"},h:{type:"char",pattern:/[0-9a-fA-F]/,token:"h",placeholder:"_",selectDirection:"left"},"*":{type:"char",pattern:/./,token:"*",placeholder:"_",selectDirection:"left"}},V4=new WeakMap,q4="undefined"!=typeof window;let z4=!1;q4&&document.addEventListener("selectionchange",(()=>{const e=GQ();if(!(e instanceof HTMLInputElement))return;if(B4.has(e))return function(e){const t=B4.get(e);if(t){const[n,i]=t,[r,a]=J1(e),s=a.indexOf(n);if(-1===s)return void B4.delete(e);const o=r[s],l=[o[0]+i[0],o[1],"none"];E1(A1(e),l)||O1(e,l)}}(e);if("select"!==A4.get(e))return;const t=A1(e);if(!E1(t,V4.get(e))){if(V4.set(e,t),k4.has(e))return k4.delete(e);e.dispatchEvent(new CustomEvent("selection",{detail:A1(e)}))}}));const W4="1999-03-04T02:05:01.000Z",G4=new Map,K4=[["YYYY",{year:"numeric"}],["YY",{year:"2-digit"}],["MMMM",{month:"long"}],["MMM",{month:"short"}],["MM",{month:"2-digit"}],["M",{month:"numeric"}],["DD",{day:"2-digit"}],["D",{day:"numeric"}],["dddd",{weekday:"long"}],["ddd",{weekday:"short"}],["d",{weekday:"narrow"}],["mm",{minute:"2-digit"}],["m",{minute:"numeric"}],["ss",{second:"2-digit"}],["s",{second:"numeric"}],["Z",{timeZoneName:"short"}]],Y4=[["HH",{hour:"2-digit"}],["H",{hour:"numeric"}]],Z4=[["hh",{hour:"2-digit"}],["h",{hour:"numeric"}],["a",{dayPeriod:"narrow"}],["A",{dayPeriod:"narrow"}]],X4={DD:2,HH:2,MM:2,YY:2,YYYY:4,hh:2,mm:2,ss:2,Z:5},Q4=["MMMM","MMM","dddd","ddd"],J4=new Map([...K4,...Y4,...Z4].map((e=>[e[0],e]))),e6=new Map,t6=["full","long","medium","short"],n6=/^([0-9]{4})-([0-1][0-9])(?:-([0-3][0-9]))?(?:[T ]?([0-2][0-9])(?::([0-5][0-9]))?(?::([0-5][0-9]))?)?(?:\.[0-9]+)?(Z|(?:\+|\-)[0-9]{4})?$/,i6=H((e=>String(e).padStart(2,"0")),"Xl$1"),r6=H((e=>String(e).padStart(2,"0")),"ql$1"),a6="undefined"!=typeof window,s6=new WeakSet,o6=new WeakSet,l6=new WeakSet,u6=new WeakMap,c6=new WeakMap,d6=new WeakSet,p6=new WeakSet,h6="undefined"!=typeof window,f6=new WeakMap,m6={schema:E5(A5($5("$label"),L5(I5("prefix"),D5(),v4(_4(b4(f4("$part.value"),m4("$part.value"),g4("$part.value"),y4("$part.value")))),N5(),F5(n4(j5(U5("$ui.prev.value"),I5("prev")),i4("$decade"),r4(o4()),a4(l4(),o4()),s4(l4(),u4(),o4()),B5(H5("$ui.next.value"),I5("next")),h4(I5("close"))),w4(Q5(J5("$fns.format($year, $yearFormat)")),e4(t4("$fns.format($month, $monthFormat)")),V5(z5(W5(G5("$fns.format($day, $weekdayFormat)"))),q5(K5(Y5(Z5("$fns.format($day, $dateFormat)"))))),d4(p4()))),c4(I5("clear")),X5(I5("calendar")),P5(),I5("suffix"))),O5("$help"),M5(R5("$message.value"))),type:"input",family:"text",props:["dateFormat","dayButtonFormat","format","monthButtonFormat","monthFormat","overlay","pickerOnly","showMonths","showPagination","weekStart","weekdayFormat","yearFormat","years"],features:[e2,function(e){var t,n,i,r,a,s,o,l,u,c,d,p,h,f,m,g,y,v,b,_,w,S;e.addProps(["_isDisabled","_isFocused","activeDate","calendar","clearable","disabled","decade","disabledDays","expanded","inputText","localTime","maxDate","maxScan","minDate","months","offset","paginatedPanels","panel","pickerOnly","renderedDate","sequence","timezone","valueFormat","valueLocale","showPanelClose"]),e.hook.prop(((t,n)=>("expanded"===t.prop&&e.props.disabled&&(t.value=!1),"weekStart"===t.prop&&(t.value=Number(t.value||0)),"showMonths"===t.prop&&(t.value=Number(t.value||1)),"maxScan"===t.prop&&(t.value=Number(t.value||7)),"timezone"===t.prop&&("string"==typeof e._value||e._value instanceof Date)&&(e.props.offset=O0(e._value,t.value)),n(t)))),e.props._isFocused=!1,e.props._isPlaceholder=!1,null!==(t=(p=e.props).valueFormat)&&void 0!==t||(p.valueFormat="ISO8601"),null!==(n=(h=e.props).weekdayFormat)&&void 0!==n||(h.weekdayFormat="d"),null!==(i=(f=e.props).monthFormat)&&void 0!==i||(f.monthFormat="MMM"),null!==(r=(m=e.props).monthButtonFormat)&&void 0!==r||(m.monthButtonFormat="MMMM"),null!==(a=(g=e.props).dayButtonFormat)&&void 0!==a||(g.dayButtonFormat="D"),null!==(s=(y=e.props).dateFormat)&&void 0!==s||(y.dateFormat="D"),null!==(o=(v=e.props).yearFormat)&&void 0!==o||(v.yearFormat="YYYY"),null!==(l=(b=e.props).paginatedPanels)&&void 0!==l||(b.paginatedPanels=["day","year"]),null!==(u=(_=e.props).valueLocale)&&void 0!==u||(_.valueLocale=e.props.locale),null!==(c=(w=e.props).format)&&void 0!==c||(w.format="long"),e.props.panels=z0(e),e.props.pickerOnly=xq(e.props.pickerOnly),"disabled"in e.props&&(e.props.disabled=xq(e.props.disabled)),"clearable"in e.props&&(e.props.clearable=xq(e.props.clearable)),null!==(d=(S=e.props).maxScan)&&void 0!==d||(S.maxScan=7),e.props._isDisabled="function"==typeof e.props.disabledDays?e.props.disabledDays.bind(null,e):X0.bind(null,e),function(e){const t=e._value;let n=new Date;if(t instanceof Date)n=h0(t);else if("string"==typeof t)try{n=h0(D0(t,e.props.valueFormat,e.props.valueLocale))}catch(r){console.warn(`Date (${t}) does not match format (${T0(e.props.valueFormat,e.props.valueLocale)})`),n=void 0}else t||(n=void 0);if(e.props.offset=e.props.timezone?O0(n||new Date,e.props.timezone):"+0000",e.props.minDate){const t="string"==typeof e.props.minDate?D0(e.props.minDate):e.props.minDate;e.props.minDate=F0(t,e.props.offset)}if(e.props.maxDate){const t="string"==typeof e.props.maxDate?D0(e.props.maxDate):e.props.maxDate;e.props.maxDate=F0(t,e.props.offset)}n=n&&F0(n,e.props.offset),n&&W0(e,n,!1);let i=n||new Date;i=e.props.minDate>i?e.props.minDate:i,e.props.renderedDate=i,e.props.activeDate=i,e.props.localTime=n&&A0(n,"HH:mm")||"12:00"}(e),e.props.calendar=[],e.props.inputText="",e.props.showMonths=e.props.showMonths||1,"function"==typeof e.props.format?(e.props.formatDate=e.props.format,e.props.format=null):e.props.formatDate=A0,e.on("created",(()=>{if(Lq(`${e.props.id}`,K0.bind(null,e),e.props.__root),e.context){let t;e.context.fns.format=(t,n)=>A0(t,n,e.props.locale||"en",!1,H0),e.context.fns.isDisabled=e.props._isDisabled,e.context.fns.isDisabledMonth=t=>!B0(t,(t=>!e.props._isDisabled(t)),"month"),e.context.fns.isDisabledYear=t=>!B0(t,(t=>!e.props._isDisabled(t)),"year"),e.context.fns.isSelected=t=>{var n;const i=null===(n=e.context)||void 0===n?void 0:n.value;if(null!=i)return w0(t,F0(i instanceof Date?i:D0(i,e.props.valueFormat,e.props.valueLocale),e.props.offset))},e.context.handlers._blur=t=>{var n,i;e.props._isFocused=!1,"function"==typeof(null===(n=e.context)||void 0===n?void 0:n.handlers.blur)&&(null===(i=e.context)||void 0===i||i.handlers.blur(t))},e.context.handlers.closePanel=()=>{e.props.expanded=!1},e.context.handlers._blurOut=t=>n=>{var i;n.preventDefault(),t&&t!==e.props.panel||e.props.pickerOnly&&n.relatedTarget instanceof Element&&(n.relatedTarget===document.getElementById(`${e.props.id}_inner`)||n.relatedTarget.closest(`#${e.props.id}_inner`))||n.relatedTarget&&n.relatedTarget instanceof Element&&(n.relatedTarget.closest(`#${e.props.id}_popover`)||!(null===(i=e.props.__root)||void 0===i?void 0:i.contains(n.relatedTarget))||n.relatedTarget.id===`${e.props.id}_popover`)||(e.props.expanded=!1)},e.context.handlers.overlayClick=()=>{const t=u6.get(e);t&&(t.focus(),e.props._isPlaceholder=!1)},e.context.handlers.focus=()=>{e.props.pickerOnly||(e.props._isFocused=!0,e.props.pickerOnly&&!o6.has(e)&&(l6.add(e),e.props.expanded=!0,setTimeout((()=>l6.delete(e)),200)))},e.context.handlers.clear=()=>{var t,n;W0(e,void 0,!0),q0(e,void 0);const i=null===(n=null===(t=e.props)||void 0===t?void 0:t.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}`);i instanceof HTMLInputElement&&(i.focus(),setTimeout((()=>{i.setSelectionRange(0,0)}),50))},e.context.handlers.dateInput=t=>{var n,i;if(d6.has(e))return d6.delete(e);
100if(t.target instanceof HTMLInputElement&&!e.props.expanded)try{let r=D0({date:t.target.value,format:e.props.format,locale:e.props.locale,partFilter:H0});if(x0((i=e).props.format,i.props.locale).some((e=>"weekday"===e.partName))&&e.props.activeDate instanceof Date&&e.props.activeDate.getTime()===r.getTime()&&!B4.get(t.target)&&A0(r,e.props.format,e.props.locale,!1,H0)!==t.target.value){const i=$0("dddd",e.props.locale),a=x0(e.props.format,e.props.locale),s=null===(n=I0(t.target.value,a).find((e=>"dddd"===e.token)))||void 0===n?void 0:n.value,o=A0(r,"dddd",e.props.locale);if(s&&i.includes(s)&&o!==s){let t=i.indexOf(s)-i.indexOf(o);t=t<-1?7+t:t,r=v0(r,t),s6.add(e)}}W0(e,r)}catch(r){W0(e,void 0)}},e.context.handlers.open=()=>{e.props.expanded=!0},e.context.handlers.next=()=>{switch(e.props.panel){case"year":return void(e.props.renderedDate=_0(e.props.renderedDate,10));case"day":return void(e.props.renderedDate=b0(e.props.renderedDate,1))}},e.context.handlers.prev=()=>{switch(e.props.panel){case"year":return void(e.props.renderedDate=_0(e.props.renderedDate,-10));case"day":return void(e.props.renderedDate=b0(e.props.renderedDate,-1))}},e.context.handlers.setDate=t=>()=>{var n;"month"!==e.props.panel&&"year"!==e.props.panel||!e.props.activeDate||(t=e.props.activeDate),(null===(n=e.context)||void 0===n?void 0:n.fns.isDisabled(t))||e.emit("dateSelected",t)},e.context.handlers.localTime=t=>{const n=t.target;if(!n.value)return;const[i,r]=n.value.split(":");e.props.localTime=n.value,e.props.activeDate.setHours(i,r),q0(e,e.props.activeDate)},e.context.handlers.keyDown=t=>{switch(e.props.panel){case"day":return e.emit("calendarKeydown",t);case"year":return e.emit("yearKeydown",t);case"month":return e.emit("monthKeydown",t);case"time":return e.emit("timeKeydown",t);default:return}},e.context.handlers.inputKeydown=t=>{e.emit("keydown",t)},e.context.handlers.openKeydown=t=>{"Enter"!==t.key&&"Space"!==t.key||(e.props.expanded=!0)},e.context.handlers.mouseEnter=n=>i=>{clearTimeout(t),i.target instanceof HTMLElement&&"-1"===i.target.getAttribute("tabindex")&&"true"!==i.target.getAttribute("data-is-extra")&&("month"===e.props.panel||"year"===e.props.panel?e.props.activeDate=B0(n,(t=>!e.props._isDisabled(t)),e.props.panel):e.props.activeDate=n)},e.context.handlers.mouseLeave=()=>{clearTimeout(t),t=setTimeout((()=>{}),100)},e.context.handlers.jumpTo=t=>()=>{e.props.panels.unshift(e.props.panel),e.props.panel=t},e.context.fns.sameDay=t=>{var n;return(null===(n=e.context)||void 0===n?void 0:n.activeDate)instanceof Date&&w0(t,e.context.activeDate)},e.context.fns.sameMonth=t=>{var n;return(null===(n=e.context)||void 0===n?void 0:n.activeDate)instanceof Date&&t.getMonth()===e.context.activeDate.getMonth()},e.context.fns.sameYear=t=>{var n,i;return(null===(n=e.context)||void 0===n?void 0:n.activeDate)instanceof Date&&t.getFullYear()===(null===(i=e.context)||void 0===i?void 0:i.activeDate.getFullYear())},e.context.fns.notInMonth=(e,t)=>{const n=function(e){const t=h0(e);return t.setHours(0,0,0),t}(t).getTime();return n<f0(e).getTime()||n>m0(e).getTime()||void 0}}}));const C=V0.bind(null,e);e.on("prop:panel",(({payload:t})=>{e.props.showPagination=e.props.paginatedPanels.includes(t)})),e.on("dateSelected",(({payload:t})=>{var n,i;t&&e.props._isDisabled(t)||(Array.isArray(e.props.panels)&&e.props.panels.length?e.props.panel=e.props.panels.shift():(e.props.expanded=!1,null===(i=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}`))||void 0===i||i.focus()),W0(e,t))})),e.on("input",(({payload:t})=>{if(void 0===t&&!e.props._isFocused)return void q0(e,void 0);const n=new Date,i=t?q0(e,F0("string"==typeof t?D0(t,e.props.valueFormat,e.props.valueLocale):t,e.props.offset)):n;e.props.activeDate=!t&&e.props.activeDate?e.props.activeDate:i,e.props.renderedDate=!t&&e.props.renderedDate?e.props.renderedDate:i,e.props.localTime=A0(i,"HH:mm"),function(e){const t=c6.get(e);if(e._value&&t){const n=g0(e.props.activeDate);if(t.length>n)t.splice(n,t.length-n);else if(t.length<n)for(let e=t.length+1;e<=n;e++)t.push(String(e))}}(e)})),e.on("prop:renderedDate",U0.bind(null,e)),e.on("prop:expanded",(({payload:t})=>{if(t){if(p6.delete(e),e.props.panels=z0(e),e.props.panel=e.props.panels.shift(),window.innerWidth<=430&&!window.matchMedia("(hover: hover)").matches?e.props.showPanelClose=!0:e.props.showPanelClose=!1,"day"===e.props.panel){const t=e.props.activeDate;e.props.activeDate=B0(e.props.activeDate,(t=>!e.props._isDisabled(t)),"month")||t}U0(e),Lq(`${e.props.id}_popover`,(t=>{const n=t.querySelector('[tabindex="0"]');n&&setTimeout((()=>{n.focus(),function(e,t){const n=new MutationObserver((e=>{for(const t of e)"attributes"===t.type&&t.target instanceof HTMLElement&&"0"===t.target.getAttribute("tabindex")?t.target.focu
100s():t.addedNodes.length&&t.addedNodes.forEach((e=>{var t;if(e instanceof HTMLElement&&"0"===e.getAttribute("tabindex"))e.focus();else if(e instanceof HTMLElement&&e.querySelector('[tabindex="0"]')){const t=e.querySelector('[tabindex="0"]');t instanceof HTMLElement&&t.focus()}else e instanceof HTMLElement&&e.querySelector('input[type="time"]')&&(null===(t=e.querySelector('input[type="time"]'))||void 0===t||t.focus())}))}));n.observe(t,{attributes:!0,attributeFilter:["tabindex"],childList:!0,subtree:!0});const i=e.on("prop:expanded",(({payload:t})=>{t||(e.off(i),n.disconnect())}))}(e,t)}),0)}),e.props.__root),a6&&setTimeout((()=>{document.addEventListener("click",C)}),10)}else{if("time"===e.props.panel)e.emit("dateSelected",e.props.activeDate);else if(e._value){d6.add(e);const t="string"==typeof e._value?D0(e._value,e.props.valueFormat,e.props.valueLocale):e._value;q0(e,F0(t,e.props.offset))}else q0(e,void 0);a6&&(o6.add(e),document.removeEventListener("click",C),setTimeout((()=>o6.delete(e)),50))}})),e.on("prop:activeDate",(({payload:t})=>{if(Array.isArray(e.props.calendar)&&e.props.calendar.length)if("day"===e.props.panel){const n=e.props.calendar,i=f0(e.props.renderedDate),r=m0(b0(e.props.renderedDate,n.length-1));t.getTime()<i.getTime()?e.props.renderedDate=b0(e.props.renderedDate,-1):t.getTime()>r.getTime()&&(e.props.renderedDate=b0(e.props.renderedDate))}else if("year"===e.props.panel){const t=e.props.years,n=t[0].getFullYear(),i=t[t.length-1].getFullYear(),r=e.props.activeDate.getFullYear();r>i?e.props.renderedDate=_0(e.props.renderedDate,10):r<n&&(e.props.renderedDate=_0(e.props.renderedDate,-10))}e.props.expanded&&q0(e,e.props.activeDate)})),e.on("keydown",(({payload:t})=>{switch(t.key){case"ArrowDown":case"ArrowUp":case" ":t.preventDefault(),e.props.pickerOnly&&(e.props.expanded=!0);break;case"Enter":case"Return":e.props.expanded||(e.props.expanded=!0);break;case"Escape":e.props.expanded=!1}})),e.on("calendarKeydown",(({payload:t})=>{t.preventDefault();let n=null,i=0;switch(t.key){case"ArrowRight":i=1;break;case"ArrowLeft":i=-1;break;case"ArrowDown":i=7;break;case"ArrowUp":i=-7;break;case"Return":case"Enter":e.emit("dateSelected",e.props.activeDate);break;case"Tab":t.shiftKey||G0(e,t);break;case"Escape":e.props.expanded=!1}if(i&&(t.preventDefault(),n=v0(e.props.activeDate,i)),n&&!e.props._isDisabled(n))e.props.activeDate=n;else if(n&&e.props._isDisabled(n)){const t=i>0?1:-1;NQ(Number(e.props.maxScan),(e=>t*e)).some((t=>{const i=v0(n,t);return!e.props._isDisabled(i)&&(e.props.activeDate=i,!0)}))}})),e.on("yearKeydown",(({payload:t})=>{let n=0;switch(t.key){case"ArrowDown":n=5;break;case"ArrowRight":n=1;break;case"ArrowUp":n=-5;break;case"ArrowLeft":n=-1;break;case"Tab":t.shiftKey||G0(e,t);break;case"Return":case"Enter":e.emit("dateSelected",e.props.activeDate);break;case"Escape":e.props.expanded=!1}const i=e.props.activeDate.getFullYear()+n-e.props.renderedDate.getFullYear();e.props.activeDate=_0(e.props.renderedDate,i)})),e.on("monthKeydown",(({payload:t})=>{let n=0;switch(t.key){case"ArrowDown":n=3;break;case"ArrowRight":n=1;break;case"ArrowLeft":n=-1;break;case"ArrowUp":n=-3;break;case"Tab":t.shiftKey||G0(e,t);break;case"Return":case"Enter":e.emit("dateSelected",e.props.activeDate);break;case"Escape":e.props.expanded=!1}n&&t.preventDefault();let i=(e.props.activeDate.getMonth()+n)%12;i=i<0?12+i:i;const r=i-e.props.renderedDate.getMonth();let a=b0(e.props.renderedDate,r);if(e.props._isDisabled(a)){const t=B0(a,(t=>!e.props._isDisabled(t)),"month");t&&(a=t)}e.props.activeDate=a})),e.on("timeKeydown",(({payload:t})=>{switch(t.key){case"Return":case"Enter":t.preventDefault(),e.emit("dateSelected",e.props.activeDate)}})),e.on("prop:_isFocused",(()=>{u6.get(e)&&Y0(e)})),e.on("commit",(()=>{if(e.props.activeDate&&e.props._isDisabled(e.props.activeDate)){const t=Uq({blocking:!0,key:"rule_invalidDate",meta:{messageKey:"invalidDate",removeImmediately:!1,localize:!0,i18nArgs:[{node:e,name:Q0(e),args:[]}]},type:"validation",value:"The selected date is invalid."});e.store.set(t)}else e.store.remove("rule_invalidDate")}))},ZJ,oY("next"),oY("prev"),oY("changeDate"),oY("chooseDate"),aY("close","close"),aY("next","right"),aY("clear","close"),aY("prev","left"),aY("calendar","date")]},g6=HQ("tl"),{outer:y6,wrapper:v6,inner:b6,icon:_6,label:w6,prefix:S6,suffix:C6,help:k6,messages:x6,message:T6}=jQ(g6),E6=g6("input",(()=>({$el:"input",bind:"$attrs",attrs:{id:"$id",type:"text",onClick:"$handlers.click",onBlur:"$handlers.blur",onKeydown:"$handlers.keydown",onInput:"$handlers.input",onFocus:"$handlers.focus",value:"$inputText",name:"$node.name",tabindex:"0",placeholder:"$state.loading && $inputStd.length === 0 && $ui.isLoading.value || $placeholder || undefined",role:"combobox",autocomplete:"off",autocapitalize:"none",readonly:"$attrs.readonly || $isLoadingOption || undefined || $multiple && $max && $value && $value.length >= $max",disabled:"$disabled || $disabledInternally || undefined","aria-autocomplete":"list","aria-expanded":"$expanded","aria-controls":'$expanded && $id + "_listbox" || undefined',"aria-describedBy":"$describedBy","aria-activedescendant":"$expanded && $activeDescendant || undefined"}}))),A6=g6("listboxButton",(()=>({$el:"button",attrs:{style:"$visibilityStyles",id:'$id + "_listbox_button"',type:"button",onClick:"$handlers.toggleListbox",tabindex:"-1",disabled:"$disabled || undefined","aria-haspopup":"true","aria-expanded":"$expanded","aria-controls":'$expanded && $id + "_listbox" || undefined'}}))),L6=g6("tagWrapper",(()=>({$el:"span",for:["option","index","$selections"],attrs:{id:'$id + "_tag-wrapper_" + $index',key:"$option.value","data-value":"$option.value",tabindex:"-1",onClick:"$handlers.tagClick && $handlers.tagClick($option)",onFocus:"$handlers.tagFocus && $handlers.tagFocus($option)",onBlur:"$handlers.tagBlur && $handlers.tagBlur($option)",onKeydown:"$handlers.searchInputTagKeydown && $handlers.searchInputTagKeydown($option)","data-active-selection":"$activeSelectionValue === $option.value"}}))),I6=g6("tag",(()=>({$el:"div",attrs:{id:'$id + "_tag_" + $index',role:"button"}}))),$6=g6("removeSelection",(()=>({$el:"button",if:"$selections.length > 0",attrs:{id:'$id + "_remove_selection_" + $index',tabindex:"-1",type:"button",onClick:"$handlers.removeSelection && $handlers.removeSelection($option)",onTouchstart:"$handlers.removeSelection && $handlers.removeSelection($option)","aria-controls":"$id"}}))),D6=g6("tagLabel",(()=>({$el:"span"}))),P6=g6("tags",(()=>({$el:"div",attrs:{id:'$id + "_selections"',"aria-live":"polite"}}))),O6=g6("tagLoading","span"),M6=qQ(g6),R6={schema:y6(v6(w6("$label"),b6(_6("prefix"),S6(),P6(L6(I6(VQ("$state.loading && $optionLoaderValues.includes($option.value)",O6("$ui.isLoading.value"),D6("$option.label")),$6(_6("close")))),E6()),VQ("$state.loading",_6("loader")),A6(_6("select")),M6(),C6(),_6("suffix"))),k6("$help"),x6(T6("$message.value"))),type:"input",family:"dropdown",props:[],features:[pK,kJ.bind(null,(function(e){e.props.multiple=!0,e.props.openOnClick=xq(e.props.openOnClick),void 0===e.props.closeOnSelect&&(e.props.closeOnSelect=!0),e.props.closeOnSelect?e.props.resetSearchOnCommit=!1:void 0===e.props.resetSearchOnCommit&&(e.props.resetSearchOnCommit=e.props.multiple),e.props.allowNewValues=xq(e.props.allowNewValues)}),a1,(function(e){f1(e),GJ(e),e.on("created",(()=>{function t(){return Array.isArray(e.value)?e.value:[]}function n(t,n){e.input(n)}H(t,"t"),H(n,"o"),e.props.disabled&&(e.props.draggable=!1),Lq(`${e.props.id}_selections`,(i=>{if(i instanceof HTMLElement){if(!e.context)return;const r={draggingClass:e.context.classes.dragging,dropZoneClass:e.context.classes.dropZone,disabled:!e.props.draggable,threshold:{horizontal:.5,vertical:0},plugins:[BX()],root:e.props.__root,touchDraggingClass:e.context.classes.touchDragging,touchDropZoneClass:e.context.classes.touchDropZone,draggable:H((e=>e.hasAttribute("data-active-selection")),"draggable"),handleDragend(t){e.props.activeSelectionValue=void 0,mQ(t)},handleDragstart(t){e.props.activeSelectionValue=void 0,aQ(t)},handleTouchstart(t){e.props.activeSelectionValue=void 0,yQ(t)}};JX({parent:i,getValues:t,setValues:n,config:r}),e.on("prop:disabled",(({payload:e})=>{r.disabled=e,JX({parent:i,getValues:t,setValues:n,config:r})})),e.on("prop:draggable",(({payload:e})=>{r.disabled=!e,JX({parent:i,getValues:t,setValues:n,config:r})}))}}),e.props.__root)}))}
100)),aY("select","select"),aY("close","close"),aY("selected","check"),aY("loader","spinner"),oY("isLoading"),oY("loadMore"),ZJ]},N6=HQ("mk"),{outer:F6,wrapper:B6,inner:H6,label:j6,prefix:U6,suffix:V6,help:q6,messages:z6,message:W6,icon:G6}=jQ(N6),{overlayPlaceholder:K6,overlayLiteral:Y6,overlayChar:Z6,overlayEnum:X6,overlay:Q6,overlayParts:J6,overlayInner:e7}=UQ(N6),t7=N6("input",(()=>({$el:"input",bind:"$attrs",attrs:{type:"$type",disabled:"$disabled",name:"$node.name",onBlur:"$handlers.blur",value:"$_maskValue",id:"$id","aria-describedby":"$describedBy"}}))),n7=new WeakMap,i7=new WeakMap,r7=new WeakMap,a7={schema:F6(B6(j6("$label"),H6(G6("prefix"),U6(),Q6(e7(J6(K6("$part.value"),Y6("$part.value"),Z6("$part.value"),X6("$part.value")))),t7(),V6(),G6("suffix"))),q6("$help"),z6(W6("$message.value"))),type:"input",props:["allowIncomplete","mask","mode","tokens","showMask","unmaskValue","prefix","suffix","reverse","overlay"],family:"text",features:[e2,function(e){e.addProps(["_maskValue","_overlayParts"]),e.on("created",(()=>{var t,n,i,r,a;const s=_1("string"==typeof e._value?e._value:"");i7.set(e,s),r7.set(e,s),e.props.allowIncomplete=xq(e.props.allowIncomplete),e.props.overlay=xq(e.props.overlay);const o=!(void 0!==e.props.showMask&&!xq(e.props.showMask));e.props.unmaskValue=xq(e.props.unmaskValue),e.hook.prop(((e,t)=>("unmaskValue"===e.prop&&(e.value=xq(e)),t(e))));const l={placeholder:o,pattern:null!==(t=e.props.mask)&&void 0!==t?t:"",mode:null!==(n=e.props.mode)&&void 0!==n?n:"shift",partOverrides:null!==(i=e.props.tokens)&&void 0!==i?i:{},prefix:null!==(r=e.props.prefix)&&void 0!==r?r:void 0,suffix:null!==(a=e.props.suffix)&&void 0!==a?a:void 0,reverse:xq(e.props.reverse)};n7.set(e,l),e.hook.input(((t,n)=>n(function(e,t){const n=i7.get(e),i="object"==typeof t&&"maskValue"in t;t="string"==typeof t?t:i?t.maskValue:"";const r=r7.get(e);r.value=I1(r,t);const a=b1(r,n7.get(e)),s=u0(r,e.props.allowIncomplete);return t===n.value?e.props.unmaskValue?null!=s?s:"":null===s?"":"string"==typeof t?t:"":""!==t||""===n.value||e.props.allowIncomplete?(i||a===e.props._maskValue||(n.value=a,e.props._maskValue=a,e.props._overlayParts=WQ(c0(r)||[])),null===s?"":e.props.unmaskValue?s:a):t}(e,t)))),e.props._maskValue=b1(s,l),e.input(e.props._maskValue,!1),Lq(`${e.props.id}`,t2.bind(null,e),e.props.__root)}))}]},s7=HQ("tf"),{outer:o7,wrapper:l7,icon:u7,help:c7,messages:d7,message:p7}=jQ(s7),h7=s7("fieldset",(()=>({$el:"fieldset",attrs:{id:'$id + "_fieldset"',role:"presentation","aria-describedby":{if:"$help",then:'$: "help-" + $id',else:void 0}}}))),f7=s7("legend",(()=>({if:"$label",$el:"legend"}))),m7=s7("source",(()=>({$el:"div",attrs:{id:'$id + "_source"',class:'$classes.transferlist + " " + $classes.source'}}))),g7=s7("sourceHeader",(()=>({$el:"div",attrs:{id:'$id + "_source_header"',role:"presentation",class:'$classes.transferlistHeader + " " + $classes.sourceHeader'}}))),y7=s7("sourceHeaderLabel",(()=>({if:"$sourceLabel",$el:"label",attrs:{id:'$id + "_source_header_label"',for:'$id + "_source_search_input"',class:'$classes.transferlistHeaderLabel + " " + $classes.sourceHeaderLabel'},children:"$sourceLabel || $label"}))),v7=s7("sourceHeaderItemCount",(()=>({$el:"span",attrs:{id:'$id + "_source_header_item_count"',role:"presentation","aria-label":'$sourceOptions.length " items"',class:'$classes.transferlistHeaderItemCount + " " + $classes.sourceHeaderItemCount'}}))),b7=s7("targetHeaderLabel",(()=>({if:"$targetLabel",$el:"label",attrs:{id:'$id + "_target_header_label"',for:'$id + "_target_search_input"',class:'$classes.transferlistHeaderLabel + " " + $classes.targetHeaderLabel'},children:"$targetLabel || $label"}))),_7=s7("targetHeaderItemCount",(()=>({$el:"span",attrs:{id:'$id + "_target_header_item_count"',role:"presentation","aria-label":'$targetOptions.length + " items"',class:'$classes.transferlistHeaderItemCount + " " + $classes.targetHeaderItemCount'},children:"$targetOptions.length"}))),w7=s7("sourceControls",(()=>({$el:"div",if:"$searchable",attrs:{id:'$id + "_source_controls"',class:'$classes.transferlistControls + " " + $classes.sourceControls'}}))),S7=s7("sourceSearch",(()=>({if:"$searchable",$el:"div",attrs:{id:'$id + "_source_search"',class:'$classes.transferlistSearch + " " + $classes.sourceSearch'}}
100))),C7=s7("sourceSearchInput",(()=>({$el:"input",attrs:{id:'$id + "_source_search_input"',type:"text",placeholder:"$placeholder",onInput:"$handlers.onSearch",value:"$inputText",onKeydown:"$handlers.sourceSearchKeydown",disabled:"$disabled","aria-label":"Search",role:"searchbox",autocomplete:"off",class:'$classes.transferlistSearchInput + " " + $classes.sourceSearchInput',onFocus:"$handlers.sourceSearchFocus",onBlur:"$handlers.sourceSearchBlur"}}))),k7=s7("sourceSearchClear",(()=>({$el:"button",if:'$inputText !== ""',attrs:{id:'$id + "_source_search_clear"',type:"button",onClick:"$handlers.clearSearch","aria-label":"Clear search",class:'$classes.transferlistSearchClear + " " + $classes.sourceSearchClear'}}))),x7=s7("sourceListItems",(()=>({$el:"ul",attrs:{id:'$id + "_source_list_items"',"aria-activedescendant":"$activeDescendant",onMouseenter:"$handlers.onMouseenter(true)",onMouseout:"$handlers.onMouseleave(true)",role:"listbox","aria-multiselectable":"true","aria-roledescription":"List of options to choose from.",class:'$classes.transferlistListItems + " " + $classes.sourceListItems',onKeydown:"$handlers.sourceListKeydown",tabindex:"$searchable || $sourceOptions.length === 0 && -1 || 0",onFocus:"$handlers.sourceListFocused",onBlur:"$handlers.sourceListBlurred"}}))),T7=s7("sourceListItem",(()=>({for:["option","index","$sourceOptions"],$el:"li",attrs:{id:'$id + "_source_list_item_" + $index',"data-value":"$option.value","aria-selected":"$transferOnSelect === false && $fns.isSelected($option, $selectedSourceItems)","data-is-active":"$fns.isActive($option, $activeValue)","data-disabled":"$option.attrs.disabled",role:"option",onClick:"$handlers.listitemClick($option, true)",onTouchstart:"$handlers.listitemTouchstart($option, true)",onTouchmove:"$handlers.listitemTouchmove($option, true)",onTouchend:"$handlers.listitemTouchend($option, true)",key:"$option.value",class:'$classes.transferlistListItem + " " + $classes.sourceListItem'}}))),E7=s7("sourceOption",(()=>({$el:"div",attrs:{"data-checked":"$fns.isSelected($option, $selectedSourceItems)",class:'$classes.transferlistOption + " " + $classes.sourceOption'}}))),A7=s7("sourceLoadMore",(()=>({$el:"li",if:"$state.loading || $state.hasNextPage",attrs:{id:'$id + "_source_load_more"',key:"loadMore",onClick:"$handlers.listitemClick($loadMoreOption)","aria-selected":"false","data-is-active":"$fns.isActive($loadMoreOption)",tabindex:"-1"}}))),L7=s7("loadMoreInner","span"),I7=s7("target",(()=>({$el:"div",attrs:{id:'$id + "_target"',class:'$classes.transferlist + " " + $classes.target'}}))),$7=s7("targetHeader",(()=>({$el:"div",attrs:{id:'$id + "_target_header"',role:"presentation",class:'$classes.transferlistHeader + " " + $classes.targetHeader'}}))),D7=s7("targetListItems",(()=>({$el:"ul",attrs:{id:"$id","aria-activedescendant":"$activeDescendant",onMouseenter:"$handlers.onMouseenter(false)",onMouseout:"$handlers.onMouseleave(false)",class:'$classes.transferlistListItems + " " + $classes.targetListItems',tabindex:"$targetOptions.length === 0 && -1 || 0",onKeydown:"$handlers.targetListKeydown",onFocus:"$handlers.targetListFocused",onBlur:"$handlers.targetListBlurred"}}))),P7=s7("targetListItem",(()=>({for:["option","index","$targetOptions"],$el:"li",attrs:{id:'$id + "_target_list_item_" + $index',"data-disabled":"$option.attrs.disabled","data-value":"$option.value","aria-selected":"$transferOnSelect === false && $fns.isSelected($option, $selectedTargetItems)","data-is-active":"$fns.isActive($option, $activeValue)",role:"option",onClick:"$handlers.listitemClick($option, false)",onTouchstart:"$handlers.listitemTouchstart($option, false)",onTouchmove:"$handlers.listitemTouchmove($option, false)",onTouchend:"$handlers.listitemTouchend($option, false)",key:"$option.value",class:'$classes.transferlistListItem + " " + $classes.targetListItem'}}))),O7=s7("targetOption",(()=>({$el:"div",attrs:{id:'$id + "_target_list_item_" + $index + "_option"',"data-checked":"$fns.isSelected($option, $selectedTargetItems)",class:'$classes.transferlistOption + " " + $classes.targetOption'}}))),M7=s7("transferControls",(()=>({$el:"div",attrs:{id:'$id + "_transfer_controls"'}}
100))),R7=s7("transferButtonForward",(()=>({if:"$transferOnSelect !== true",$el:"button",attrs:{id:'$id + "_transfer_button_forward"',type:"button",disabled:"$selectedSourceItems.length === 0 || $disabled || ($max && $value && $value.length >= $max)",onClick:"$handlers.transferForward","aria-label":"$ui.addSelectedValues.value",title:"$ui.addSelectedValues.value",class:'$classes.transferlistButton + " " + $classes.transferButtonForward'}}))),N7=s7("transferButtonForwardAll",(()=>({$el:"button",attrs:{id:'$id + "_transfer_button_forward_all"',type:"button",disabled:"$sourceOptions.length === 0 || $disabled || ($max && $value && $value.length >= $max)",onClick:"$handlers.transferForwardAll","aria-label":"$ui.addAllValues.value",title:"$ui.addAllValues.value",onFocus:"$handlers.transferForwardAllFocused",class:'$classes.transferlistButton + " " + $classes.transferButtonForwardAll'}}))),F7=s7("transferButtonBackward",(()=>({if:"$transferOnSelect !== true",$el:"button",attrs:{id:'$id + "_transfer_button_backward"',onClick:"$handlers.transferBackward",type:"button",disabled:"$selectedTargetItems.length === 0 || $targetOptions.length === 0 || $disabled","aria-label":"$ui.removeSelectedValues.value",title:"$ui.removeSelectedValues.value",class:'$classes.transferlistButton + " " + $classes.transferButtonBackward'}}))),B7=s7("transferButtonBackwardAll",(()=>({$el:"button",attrs:{id:'$id + "_transfer_button_backward_all"',onClick:"$handlers.transferBackwardAll",type:"button",disabled:"$targetOptions.length === 0 || $disabled","aria-label":"$ui.removeAllValues.value",title:"$ui.removeAllValues.value",class:'$classes.transferlistButton + " " + $classes.transferButtonBackwardAll'}}))),H7=s7("controlLabel","span"),j7=s7("sourceEmptyMessage",(()=>({$el:"li",if:"$showSourceEmptyMessage && $sourceEmptyMessage && $state.loading !== true",attrs:{id:'$id + "_source_empty_message"',key:"$sourceEmptyMessage",role:"presentation"}}))),U7=s7("targetEmptyMessage",(()=>({$el:"li",if:"$showTargetEmptyMessage && $targetEmptyMessage",attrs:{id:'$id + "_empty_message"',key:"$emptyMessage",role:"presentation"}}))),V7=s7("emptyMessageInner","span"),q7=Symbol(),z7=new WeakSet,W7=new WeakSet,G7={schema:o7(h7(f7("$label"),c7("$help"),l7(m7(g7(y7(),v7(VQ("$optionsLoadingCounter > 0",u7("loader"),"$fns.getSourceItemCount($selectedSourceItems)"))),w7(S7(C7(),k7(u7("close")))),x7(j7(V7("$sourceEmptyMessage")),T7(VQ("$transferOnSelect !== true && $fns.isSelected($option, $selectedSourceItems)",u7("selected")),E7("$option.label")),A7(VQ("$state.loading && $optionLoadingCounter === 0 || $state.hasNextPage",L7(VQ("$state.loading",u7("loader")),"$state.loading && $ui.isLoading.value || $ui.loadMore.value"))))),M7(N7(H7("$ui.addAllValues.value"),u7("fastForward")),R7(H7("$ui.addSelectedValues.value"),u7("moveRight")),F7(H7("$ui.removeSelectedValues.value"),u7("moveLeft")),B7(H7("$ui.removeAllValues.value"),u7("rewind"))),I7($7(b7(),_7("$fns.getTargetItemCount($selectedTargetItems)")),D7(U7(VQ("$state.loading !== true",V7("$targetEmptyMessage"))),P7(VQ("$transferOnSelect !== true && $fns.isSelected($option, $selectedTargetItems)",u7("selected")),O7(VQ("$fns.optionLoading($option, $optionLoaderValues)","$ui.isLoading.value","$option.label")))))),d7(p7("$message.value")))),type:"input",props:[],features:[aY("moveRight","right"),aY("moveLeft","left"),aY("fastForward","fastForward"),aY("rewind","rewind"),aY("close","close"),aY("loader","spinner"),aY("selected","check"),oY("isLoading"),oY("loadMore"),oY("addAllValues"),oY("addSelectedValues"),oY("removeSelectedValues"),oY("removeAllValues"),pK,function(e){var t;(t=e).addProps(["search","options","selectedItems","activeValue","activeIndex","activeDescendant","targetOptions","sourceOptions","optionLoader","isLoadingOptions","filterOptions","inputText","hasNextPage","page","targetLoading","searchable","sourceLabel","targetLabel","transferOnSelect","disabled","placeholder","filter","showSourceEmptyMessage","showTargetEmptyMessage","sourceEmptyMessage","targetEmptyMessage","clearOnSelect","max","debounce","sourceListActive","optionLoaderValues","optionLoadingCounter","optionsLoadingCounter","memoOptions","optionsLoaded","selectedSourceItems","selectedTargetItems","draggable","loadMore","loadMoreOption"]),t.props.loadMoreOption={label:"Load more",value:q7},void 0===t.props.draggable?t.props.draggable=!0:"false"===t.props.draggable&&(t.props.draggable=!1),t.props.optionsLoaderValues=[],t.props.selectedSourceItems=[],t.props.selectedTargetItems=[],t.props.optionsLoaded=void 0,t.props.memoOptions=[],t.props.multiple=!0,t.props.debounce=t.props.debounce?parseInt(t.props.debounce):200,t.props.optionLoaderValues=[],t.props.optionsLoadingCounter=0,t.props.optionLoadingCounter=0,t.props.page=1,t.props.hasNextPage=eJ.bind(null,t),t.props.options?t.props.options=[...t.props.options]:t.props.options=[],t.props.sourceOptions=[],t.props.targetOptions=[],"disabled"in t.props&&(t.props.disabled=xq(t.props.disabled)),t.props.searchable=xq(t.props.searchable),t.props.searchable&&(t.props.inputText=""),t.props.clearOnSelect=xq(t.props.clearOnSelect),void 0===t.props.transferOnSelect?t.props.transferOnSelect=!0:"false"===t.props.transferOnSelect&&(t.props.transferOnSelect=!1),t.props.targetOptions.length&&(t.props.targetOptionValues=t.props.targetOptions.map((e=>KQ(e)))),t.props.initialOptions=[...t.props.options],t.props.max&&(t.props.max=parseInt(t.props.max)
100),t.props.sourceListOrigin=void 0,"function"!=typeof t.props.filter&&(t.props.filter=(e,t)=>e.label.toLowerCase().includes(t.toLowerCase())),function(e){e.on("commit",(()=>V(this,null,(function*(){e.props.activeValue=void 0,e.props.clearOnSelect&&e.props.inputText&&(e.props.reFilter=!0,e.props.inputText=""),e.props.memoOptions=[...new Set([...e.props.targetOptions,...e.props.memoOptions])],e.props.searchable&&e.props.reFilter&&!e.props.initialLoad?(YQ(e,e.props.inputText),e.props.reFilter=!1):e.props.initialLoad||(e.isCreated||(e.props.skipSetActiveValue=!0),s2(e)),"function"==typeof e.props.optionLoader?l2(e):e.props.initialLoad||(e.props.memoOptions=[...new Set([...e.props.targetOptions,...e.props.memoOptions])])}))))}(e),h2(e),function(e){e.on("prop:options",(()=>{s2(e)})),e.on("prop:memoOptions",(()=>{e.props.skipSetActiveValue=!0,s2(e)})),e.on("prop:sourceOptions",(()=>{0===e.props.sourceOptions.length?e.props.showSourceEmptyMessage=!0:e.props.showSourceEmptyMessage=!1,z7.delete(e)})),e.on("prop:targetOptions",(()=>{0===e.props.targetOptions.length?e.props.showTargetEmptyMessage=!0:e.props.showTargetEmptyMessage=!1})),e.on("prop:activeValue",(({payload:t})=>{if(e.props.isDragging)return void(e.props.activeDescendant=void 0);if(t===q7)return void(e.props.activeDescendant=`${e.props.id}_load_more`);const n=(e.props.sourceListOrigin?e.props.sourceOptions:e.props.targetOptions).findIndex((e=>rq(KQ(e),t)));n>=0&&e.props.sourceListOrigin?e.props.activeDescendant=`${e.props.id}_source_list_item_${n}`:e.props.activeDescendant=n>=0?`${e.props.id}_target_list_item_${n}`:void 0})),e.on("prop:mouseOnSource",(({payload:t})=>{var n;if(t&&!0!==e.props.disabled&&!e.props.isDragging){const t=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(e.props.id+"_source_list_items");if(!t)return;e.props.mouseOnTarget=!1,e.props.sourceListOrigin=!0,z7.delete(e),f2(e,t)}})),e.on("prop:mouseOnTarget",(({payload:t})=>{var n;if(t&&!0!==e.props.disabled&&!e.props.isDragging){const t=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`${e.props.id}`);if(!t)return;e.props.mouseOnSource=!1,e.props.sourceListOrigin=!1,W7.delete(e),f2(e,t)}})),e.on("prop:optionsLoadingCounter",(({payload:t})=>{0===t&&0===e.props.optionLoadingCounter&&e.store.set(L3)})),e.on("prop:optionLoadingCounter",(({payload:t})=>{0===t&&0===e.props.optionsLoadingCounter&&(e.store.set(L3),e.props.skipSetActiveValue=!0,s2(e))}))}(e)}]},K7=HQ("sl"),{outer:Y7,wrapper:Z7,icon:X7,label:Q7,prefix:J7,suffix:e9,help:t9,messages:n9,message:i9}=jQ(K7),r9=K7("chart",(()=>({$el:"div",if:"$chart"}))),a9=K7("chartBar",(()=>({$el:"div",for:["bar","index","$chart"],attrs:{"data-active":{if:"$isMulti",then:{if:"$_value.0 < $_value.1",then:"$bar.at >= $_value.0 && $bar.at <= $_value.1",else:"$bar.at >= $_value.1 && $bar.at <= $_value.0"},else:"$bar.at <= $_value"},style:{left:'$bar.at / ($max - $min) * 100 + "%"',width:'$: "calc(" + (100 / $chart.length) + "% - 2px)"',height:{if:"$largestBar",then:'$bar.value / $largestBar * 100 + "%"'}}}}))),s9=K7("sliderInner",(()=>({$el:"div",attrs:{"data-has-mark-labels":"$markLabels && $marks.length > 0"}}))),o9=K7("track",(()=>({$el:"div",attrs:{id:"$: 'track-' + $id",onClick:"$handlers.clickTrack"}}))),l9=K7("trackWrapper",(()=>({$el:"div"}))),u9=K7("trackInner",(()=>({$el:"div"}))),c9=K7("fill",(()=>({$el:"div",attrs:{style:"$fillStyles"}}))),d9=K7("linkedValues",(()=>({$el:"div"}))),p9=K7("maxValue",(()=>({$formkit:"number",bind:"$computedMaxInputAttrs",ignore:!0,value:{if:"$isMulti",then:"$_value.1",else:"$_value"},tabindex:{if:"$disabled",then:-1},onNode:"$handlers.maxNode",onBlur:"$handlers.inputBlur"}))),h9=K7("minValue",(()=>({$formkit:"number",bind:"$computedMinInputAttrs",ignore:!0,value:{if:"$isMulti",then:"$_value.0",else:"$_value"},tabindex:{if:"$disabled",then:-1},onNode:"$handlers.minNode",onBlur:"$handlers.inputBlur"}))),f9=K7("marks",(()=>({$el:"div",if:"$marks"}))),m9=K7("mark",(()=>({$el:"span",for:["step","index","$marks"],attrs:{"data-active":{if:"$isMulti",then:{if:"$_value.0 < $_value.1",then:"$step.at >= $_value.0 && $step.at <= $_value.1",else:"$step.at >= $_value.1 && $step.at <= $_value.0"},else:"$step.at <= $_value"},class:{if:"$step.class",then:'$: $classes.mark + " " + $step.class',else:"$classes.mark"},style:{left:'$: $fns.calculateMarkPosition($step.at) + "%"'}}}))),g9=K7("markLabel",(()=>({$el:"span",if:"$markLabels",children:{if:"$step.label !== undefined",then:"$step.label",else:""},attrs:{class:'$: $classes.markLabel + " " + $step.labelClass'}}))),y9=K7("handles",(()=>({$el:"ul"}))),v9=K7("handleMax",(()=>({$el:"li",attrs:{"data-active":"$dragging","data-is-target":'$lastHandleInteraction === "max"',"data-handle":"max","data-show-tooltip":"$tooltip",class:"$: 'formkit-handle ' + $classes.handle + ' ' + $classes.handleMax",onF
100ocus:"$handlers.focus",onClick:"$handlers.clickHandle",onMousedown:"$handlers.startDrag",onTouchstart:"$handlers.startDrag",style:"$maxHandleStyles",tabindex:{if:"$disabled",then:-1,else:0},onBlur:"$handlers.blur",onKeydown:"$handlers.keydown"}}))),b9=K7("handleMin",(()=>({$el:"li",if:"$isMulti",attrs:{"data-active":"$dragging","data-is-target":'$lastHandleInteraction === "min"',"data-handle":"min","data-show-tooltip":"$tooltip",class:"$: $classes.handle + ' ' + $classes.handleMin",onFocus:"$handlers.focus",onClick:"$handlers.clickHandle",onMousedown:"$handlers.startDrag",onTouchstart:"$handlers.startDrag",style:"$minHandleStyles",tabindex:{if:"$disabled",then:-1,else:0},onBlur:"$handlers.blur",onKeydown:"$handlers.keydown"}}))),_9=K7("handleMinInner",(()=>({$el:"div",attrs:{class:'$: $classes.handleInner + " " + $classes.handleMinInner'}}))),w9=K7("handleMaxInner",(()=>({$el:"div",attrs:{class:'$: $classes.handleInner + " " + $classes.handleMaxInner'}}))),S9=K7("tooltipMax",(()=>({$el:"div",if:'$tooltip === true || $tooltip === "auto"',children:{if:"$isMulti",then:{if:"$_value.0 < $_value.1",then:'$tooltipFormat($_value.1, "max")',else:'$tooltipFormat($_value.0, "max")'},else:'$tooltipFormat($_value, "max")'},attrs:{class:"$classes.tooltip + ' ' + $classes.tooltipMax"}}))),C9=K7("tooltipMin",(()=>({$el:"div",if:'$isMulti && ($tooltip === true || $tooltip === "auto")',children:{if:"$_value.0 < $_value.1",then:'$tooltipFormat($_value.0, "min")',else:'$tooltipFormat($_value.1, "min")'},attrs:{class:"$classes.tooltip + ' ' + $classes.tooltipMin"}}))),k9={schema:Y7(Z7(Q7("$label"),t9("$help"),s9(X7("prefix"),J7(),o9(r9(a9()),l9(u9(c9(),f9(m9(g9())),y9(b9(C9(),_9()),v9(S9(),w9()))))),e9(),X7("suffix"),VQ("$showInput && $isMulti === false",p9())),VQ("$showInput && $isMulti",d9(h9(),p9())),n9(i9("$message.value")))),type:"input",family:"",props:["min","max","step","showInput","tooltip","tooltipFormat","inputAttrs","maxInputAttrs","minInputAttrs","marks","markLabels","snapToMarks","chart","scalingFunction","intervals"],features:[function(e){function t(t){const{min:n,max:r,intervals:a}=e.props;if(t=Math.min(Math.max(t,0),100),!a||0===a.length){const i=n+t/100*(r-n);return e.props.scalingFunction.reverse(i,n,r)}const s=i(a,n,r);for(let e=0;e<s.length;e++){const{value:n,step:i,left:r,width:a,stepsInInterval:o}=s[e];if(t>=r&&t<=r+a){const e=n+(t-r)/a*o*i,s=e%i;return l(s<i/2?e-s:e+(i-s))}}return t>100?r:t<0?n:void 0}function n(t,n=e.props.min,r=e.props.max){const a=e.props.intervals;if(!a||0===a.length)return(e.props.scalingFunction.forward(t,n,r)-n)/(r-n)*100;const s=i(a,n,r);for(let e=0;e<s.length;e++){const{value:n,step:i,left:a,width:o,stepsInInterval:l}=s[e],u=e<s.length-1?s[e+1].value:r;if(t>=n&&t<=u)return(a+(t-n)/i/l*o)/100*100}return 100}function i(t,n=e.props.min,i=e.props.max){(t=[...t]).sort(((e,t)=>e.value-t.value)),t[0].value!==n&&t.unshift({value:n,step:e.props.step});let r=0;for(let e=0;e<t.length;e++){const n=t[e].value,a=((e<t.length-1?t[e+1].value:i)-n)/t[e].step;r+=a}let a=0;return t.map(((e,n)=>{const s=e.value,o=((n<t.length-1?t[n+1].value:i)-s)/e.step,l=a/r*100;return a+=o,{value:e.value,step:e.step,left:l,width:o/r*100,stepsInInterval:o,totalSteps:r}}))}function r(){const t=parseFloat(`${e.props.min}`),i=parseFloat(`${e.props.max}`);let r,s=0;if(Array.isArray(e._value)){const t=[...e._value].sort(a);s=parseFloat(`${t[0]}`),r=parseFloat(`${t[1]}`)}else r=parseFloat(`${e._value}`);e.props.maxHandleStyles={left:`${n(r,t,i)}%`},e.props.isMulti&&Array.isArray(e._value)?(e.props.minHandleStyles={left:`${n(s,t,i)}%`},e.props.fillStyles={left:`${n(s,t,i)}%`,width:n(r,t,i)-n(s,t,i)+"%"}):e.props.fillStyles={left:"0%",width:`${n(r,t,i)}%`}}function a(e,t){return parseFloat(`${e}`)-parseFloat(`${t}`)}function s(t,n=!0){if(e.props.disabled)return;let i;if(e.props.isMulti&&Array.isArray(e._value)&&!Array.isArray(t)){const n="min"===e.props.lastHandleInteraction?0:1;e._value[n]=t;const[r,s]=[...e._value];if(r>=s){const t=null==d?void 0:d.querySelector(`[data-handle="${"min"===e.props.lastHandleInteraction?"max":"min"}"]`);null==t||t.focus()}i=u([...e._value].sort(a))}else Array.isArray(t)?i=u(t):(i=u(t),i=isNaN(i)?e.props.min:i);e.props.snapToMarks&&(i=c(i));const s=o(i);n&&e.input(s),r(),function(){if(e.props.isMulti&&Array.isArray(e._value)){const[t,n]=[...e._value];p&&p.input(t),h&&h.input(n)}else h&&h.input(e._value)}()}function o(t){return e.props.isMulti&&Array.isArray(t)?[o(t[0]),o(t[1])]:(t=isNaN(t)?e.props.min:t,Math.min(Math.max(parseFloat(`${t}
100`),e.props.min),e.props.max))}function l(t){return parseFloat(t.toFixed(e.props.decimals))}function u(t){if(e.props.snapToMarks)return t;if(!e.props.intervals)return Array.isArray(t)?t.map((t=>l(Math.round(t/e.props.step)*e.props.step))):l(Math.round(t/e.props.step)*e.props.step);const n=i(e.props.intervals);if(Array.isArray(t))return t.map((t=>{const i=n.find(((i,r)=>{var a;return t>=i.value&&t<((null===(a=n[r+1])||void 0===a?void 0:a.value)||e.props.max)}));return i?l(i.value+Math.round((t-i.value)/i.step)*i.step):t}));{const i=n.find(((i,r)=>{var a;return t>=i.value&&t<((null===(a=n[r+1])||void 0===a?void 0:a.value)||e.props.max)}));return i?l(i.value+Math.round((t-i.value)/i.step)*i.step):t}}function c(t){if(Array.isArray(t))return t[0]=c(t[0]),t[1]=c(t[1]),t;{const n=e.props.marks;return n.reduce(((e,n)=>Math.abs(n.at-t)<Math.abs(e.at-t)?n:e),n[0]).at}}let d,p,h;H(t,"t"),H(n,"o"),H(i,"n"),H(r,"r"),H(a,"s"),H(s,"a"),H(o,"l"),H(l,"i"),H(u,"p"),H(c,"d"),e.addProps(["isMulti","maxHandleStyles","minHandleStyles","fillStyles","decimals","dragging","lastHandleInteraction","largestBar","computedMaxInputAttrs","computedMinInputAttrs"]);const f={linear:{forward:H((e=>e),"forward"),reverse:H((e=>e),"reverse")},log:{forward:H(((t,n=e.props.min,i=e.props.max)=>i*Math.pow(t/i,1.5)),"forward"),reverse:H(((t,n=e.props.min,i=e.props.max)=>i*Math.pow(t/i,1/1.5)),"reverse")}};e.props.maxHandleStyles={left:"0%"},e.props.fillStyles={left:"0%",width:"0%"},e.props.isMulti=!1,e.props.step=1,e.props.min=0,e.props.max=100,e.props.tooltipFormat="function"==typeof e.props.tooltipFormat?e.props.tooltipFormat:(e,t)=>{if(t)return e},e.props.largestBar=0,"disabled"in e.props&&(e.props.disabled=xq(e.props.disabled)),e.on("created",(()=>{function l(n){var i;if(!d||!e.props.dragging)return;n.preventDefault();const r=n.clientX||(null===(i=n.touches)||void 0===i?void 0:i.length)&&n.touches[0].clientX,{left:a,width:o}=d.getBoundingClientRect();s(t((r-a)/o*100))}var u;H(l,"i"),xq(e.props.scalingFunction)?"string"==typeof e.props.scalingFunction?e.props.scalingFunction=f[e.props.scalingFunction]||f.linear:"object"==typeof e.props.scalingFunction&&(e.props.scalingFunction=F(F({},f.linear),e.props.scalingFunction)):e.props.scalingFunction=f.linear,e.props.isMulti=Array.isArray(e.value),e.props.step=parseFloat(`${e.props.step}`),e.props.decimals=(null===(u=e.props.step.toString().split(".")[1])||void 0===u?void 0:u.length)||0,e.props.min=parseFloat(`${e.props.min}`),e.props.max=parseFloat(`${e.props.max}`);const m=xq(e.props.tooltip);e.props.tooltip=void 0===e.props.tooltip?"auto":m;const g=xq(e.props.marks);e.props.marks=!!g&&(Array.isArray(e.props.marks)?e.props.marks:function(){const{min:t,max:n,step:i}=e.props,r=[];for(let e=t;e<=n;e+=i)r.push({at:e,label:e});return r}()),e.props.markLabels=xq(e.props.markLabels),e.props.snapToMarks=xq(e.props.snapToMarks),e.props.showInput=xq(e.props.showInput),e.props.largestBar=e.props.chart?e.props.chart.reduce(((e,t)=>t.value>e?t.value:e),0):e.props.largestBar;const y={disabled:e.props.disabled,min:e.props.min,max:e.props.max,step:e.props.step};if(e.props.inputAttrs=e.props.inputAttrs&&"object"==typeof e.props.inputAttrs?Object.assign(y,e.props.inputAttrs):y,e.props.computedMaxInputAttrs=e.props.maxInputAttrs&&"object"==typeof e.props.maxInputAttrs?Object.assign({},e.props.inputAttrs,e.props.maxInputAttrs):e.props.inputAttrs,e.props.computedMinInputAttrs=e.props.minInputAttrs&&"object"==typeof e.props.minInputAttrs?Object.assign({},e.props.inputAttrs,e.props.minInputAttrs):e.props.inputAttrs,Lq(`track-${e.props.id}`,(()=>{var t;d=null===(t=e.props.__root)||void 0===t?void 0:t.getElementById(`track-${e.props.id}`),s(e.value),r()}),e.props.__root),e.context){let r=0,u="";const f=e.context.handlers.blur;e.context.handlers.blur=t=>{f(t),e.emit("blur")},e.context.handlers.clickTrack=n=>{if(!d)return;e.props.dragging=!1;const{left:i,width:r}=d.getBoundingClientRect(),a=(n.clientX-i)/r;if(e.props.isMulti&&Array.isArray(e.value)){const[n,i]=e.value,r=Math.abs(n-a*e.props.max)<Math.abs(i-a*e.props.max)?"min":"max",o="min"===r?0:1;e.props.lastHandleInteraction=r,e.value[o]=t(100*a),s(e._value)}else s(t(100*a))},e.context.handlers.focus=t=>{if(!d)return;const n=t.target.dataset.handle;n&&(e.props.lastHandleInteraction=n)},e.context.handlers.clickHandle=t=>{t.stopPropagation(),e.props.attrs.onClick&&e.props.attrs.onClick(t),e.props.dragging=!1},e.context.handlers.startDrag=t=>{if(!d)return;e.props.dragging=!0;const n="touchstart"===t.type,i=n?"touchmove":"mousemove",r=n?"touchend":"mou
100seup";e.props.lastHandleInteraction=t.target.dataset.handle||e.props.lastHandleInteraction,document.addEventListener(i,l,{passive:!1}),document.addEventListener(r,(()=>{e.context&&(e.props.dragging=!1,document.removeEventListener(i,l),n&&t.target instanceof HTMLElement&&t.target.blur())}))},e.context.handlers.keydown=t=>{if(["1","2","3","4","5","6","7","8","9","0",".","-"].includes(t.key)){t.preventDefault(),clearTimeout(r),u+=t.key;const e="-"===u?-1:1;r=window.setTimeout((()=>{"-"!==u?(s(parseFloat(u)*e),u=""):u=""}),350)}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(t.key)){t.preventDefault();const n="min"===e.props.lastHandleInteraction?0:1,r=Array.isArray(e._value)?e._value[n]:e._value,a=function(t,n){if(!e.props.intervals)return e.props.step;const r=i(e.props.intervals);if(t>=e.props.max)return r[r.length-1].step;let a=r.find(((n,i)=>{var a;return t>=n.value&&t<((null===(a=r[i+1])||void 0===a?void 0:a.value)||e.props.max)}));return a?(-1===n&&t-a.step<a.value&&(a=r[r.indexOf(a)-1]||a),a.step):e.props.step}(r,["ArrowLeft","ArrowDown","PageDown"].includes(t.key)?-1:1);if(e.props.marks&&e.props.snapToMarks){const n=c(r),i=e.props.marks.find((e=>e.at===n)),a=e.props.marks.indexOf(i),o=["ArrowLeft","ArrowDown"].includes(t.key)?-1:1,l=Math.min(Math.max(0,a+o),e.props.marks.length-1);return void s(e.props.marks[l].at)}if(t.metaKey)return void("ArrowLeft"===t.key||"ArrowDown"===t.key?s(e.props.min):s(e.props.max));if("Home"===t.key)return void s(e.props.min);if("End"===t.key)return void s(e.props.max);["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)&&s(r+(t.shiftKey?10*a:a)*(["ArrowLeft","ArrowDown"].includes(t.key)?-1:1)),"PageUp"===t.key?s(r+10*a):"PageDown"===t.key&&s(r-10*a)}},e.context.handlers.maxNode=t=>{h=t,t.hook.commit(((n,i)=>{if(rq(t.value,n))return i(n);const r=parseFloat(n);return e.props.isMulti&&Array.isArray(e.value)?(e.value[1]=r,s(e.value)):s(r),i(o(r))}))},e.context.handlers.minNode=t=>{p=t,t.hook.commit(((n,i)=>{if(rq(t.value,n))return i(n);const r=parseFloat(n);return e.props.isMulti&&Array.isArray(e.value)?(e.value[0]=r,s(e.value)):s(r),i(o(r))}))},e.context.handlers.inputBlur=()=>{e.props.isMulti&&Array.isArray(e.value)&&(e.value.sort(a),p&&p.input(e.value[0]),h&&h.input(e.value[1]))},e.context.fns.calculateMarkPosition=t=>n(t,e.props.min,e.props.max)}s(e.value)})),e.on("input",(({payload:t})=>{Array.isArray(e.value)&&Array.isArray(t)?e.value[0]===t[0]&&e.value[1]===t[1]||s(t,!1):e.value!==t&&s(t,!1)})),e.on("prop:max",(()=>{e.props.max=parseFloat(`${e.props.max}`),s(e.value)})),e.on("prop:min",(()=>{e.props.min=parseFloat(`${e.props.min}`),s(e.value)}))}]},x9=HQ("cp"),{outer:T9,wrapper:E9,inner:A9,label:L9,prefix:I9,suffix:$9,help:D9,messages:P9,message:O9,icon:M9}=jQ(x9),R9=x9("swatchPreview",(()=>({$el:"div",attrs:{id:"$id",class:"$classes.swatchPreview",tabindex:{if:"$disabled",then:-1,else:0},onClick:"$handlers.inputPreviewClick",onFocusout:"$handlers.inputPreviewFocusout",onKeydown:"$handlers.inputPreviewKeydown",role:"button","aria-valuetext":'$: "Current color: " + $value'}}))),N9=x9("valueString",(()=>({$el:"span",attrs:{class:"$classes.valueString"},children:{if:'$format === "hex"',then:"$hex",else:{if:'$format === "rgba"',then:"$rgbaString",else:{if:'$format === "hsla"',then:"$hslaString",else:""}}}}))),F9=x9("panel",(()=>({$el:"div",attrs:{id:'$: $id + "_popover"',class:"$classes.panel",onKeydown:"$handlers.panelKeydown","aria-role":{if:"$layout === popover",then:"dialog"},"aria-modal":{if:"$layout === popover",then:"true"},"aria-label":"$label",popover:"$popover",style:{if:"$usePopover",then:{margin:0,top:'$popoverCoordinates.y + "px"',left:'$popoverCoordinates.x + "px"'},else:{position:{if:"$inline === undefined || $inline === false",then:"absolute"}}}}}))),B9=x9("panelClose",(()=>({$el:"button",attrs:{type:"button",class:"$classes.panelClose",onClick:"$handlers.closePanel",tabindex:{if:"$showPanelClose",then:-1,else:0},onKeydown:"$handlers.panelCloseKeydown","aria-label":"$ui.close.value"}}))),H9=x9("controlGroup",(()=>({$el:"div",attrs:{class:"$classes.controlGroup","data-eye-dropper":"$hasNativeEyeDropper && $eyeDropper",role:"group"}}))),j9=x9("LS",(()=>({$el:"div",attrs:{class:"$classes.LS"}}))),U9=x9("canvasLS",(()=>({$el:"canvas",attrs:{id:'$: "canvas-ls-" + $id',class:'$classes.canvas + " " + $classes.canvasLS',width:256,height:256,"aria-hidden":"true"}}
100))),V9=x9("controlLS",(()=>({$el:"div",attrs:{tabindex:{if:"$disabled",then:-1,else:0},class:'$classes.control + " " + $classes.controlLS',onKeydown:"$handlers.lsKeydown",style:{left:'$controlLSPosition.x + "%"',top:'$controlLSPosition.y + "%"',backgroundColor:'$: "hsl(" + $hsla.h + "deg, " + ($hsla.s / 255) * 100 + "%, " + ($hsla.l / 255) * 100 + "%)"'},role:"slider","aria-valuemin":0,"aria-valuemax":1,"aria-valuetext":'$: "Lightness: " + $hslaPercent.l + "%, Saturation: " + $hslaPercent.s + "%"'}}))),q9=x9("hue",(()=>({$el:"div",attrs:{class:"$classes.hue"}}))),z9=x9("canvasHue",(()=>({$el:"canvas",attrs:{id:'$: "canvas-hue-" + $id',class:'$classes.canvas + " " + $classes.canvasHue',width:256,height:10,"aria-hidden":"true"}}))),W9=x9("controlHue",(()=>({$el:"div",attrs:{tabindex:{if:"$disabled",then:-1,else:0},onKeydown:"$handlers.hueControlKeydown",class:'$classes.control + " " + $classes.controlHue',style:{left:'$: "min(max(" + (($hsla.h / 360) * 100) + "%, 3px), calc(100% - 3px))"',backgroundColor:'$: "hsl(" + $hsla.h + "deg, 100%, 50%)"'},role:"slider","aria-valuemin":0,"aria-valuemax":360,"aria-valuenow":"$h"}}))),G9=x9("alpha",(()=>({$el:"div",attrs:{class:"$classes.alpha"}}))),K9=x9("canvasAlpha",(()=>({$el:"canvas",attrs:{id:'$: "canvas-alpha-" + $id',class:'$classes.canvas + " " + $classes.canvasAlpha',width:256,height:10,"aria-hidden":"true"}}))),Y9=x9("controlAlpha",(()=>({$el:"div",attrs:{tabindex:{if:"$disabled",then:-1,else:0},onKeydown:"$handlers.alphaControlKeydown",class:'$classes.control + " " + $classes.controlAlpha',style:{left:'$: "min(max(" + ($hsla.a * 100) + "%, 3px), calc(100% - 3px))"',backgroundImage:'$: "linear-gradient(to right, hsla(" + $hsla.h + "deg, " + ($hsla.s / 255) * 100 + "%, " + ($hsla.l / 255) * 100 + "%, " + $hsla.a + "), hsla(" + $hsla.h + "deg, " + ($hsla.s / 255) * 100 + "%, " + ($hsla.l / 255) * 100 + "%, " + $hsla.a + ")), linear-gradient(to right, white, white)"'},role:"slider","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":"$hsla.a"}}))),Z9=x9("preview",(()=>({$el:"div",attrs:{class:"$classes.preview"}}))),X9=x9("canvasPreview",(()=>({$el:"canvas",attrs:{id:'$: "canvas-preview-" + $id',class:'$classes.canvas + " " + $classes.canvasPreview',width:33,height:33,"aria-hidden":"true"}}))),Q9=x9("canvasSwatchPreview",(()=>({$el:"div",attrs:{class:"$classes.canvasSwatchPreviewWrapper"},children:[{$el:"canvas",attrs:{id:'$: "canvas-swatch-preview-" + $id',class:'$classes.canvas + " " + $classes.canvasSwatchPreview',width:33,height:33,"aria-hidden":"true"}}]}))),J9=x9("eyeDropper",(()=>({$el:"div",attrs:{tabindex:{if:"$disabled",then:-1,else:0},role:"button",onKeydown:"$handlers.eyeDropperKeydown",id:'$: "eye-dropper-" + $id',class:"$classes.eyeDropper"}}))),eee=x9("formatField",(()=>({$el:"div",attrs:{class:"$classes.formatField"}}))),tee=x9("colorInputGroup",(()=>({$el:"div",attrs:{class:"$classes.colorInputGroup","aria-role":"group"}}))),nee=x9("hexField",(()=>({$el:"div",attrs:{class:'$classes.fieldGroup + " " + $classes.hexFieldGroup'},children:[{$el:"input",attrs:{onInput:"$handlers.hexInput",onKeydown:"$handlers.hexKeydown",onFocus:"$handlers.hexFocus",onBlur:"$handlers.hexBlur",id:'$: "hex-" + $id',tabindex:{if:"$disabled",then:-1,else:0},disabled:"$disabled",class:'$classes.colorField + " " + $classes.hexField',value:"$hex",autocomplete:"off"}},{$el:"label",children:"HEX",attrs:{for:'$: "hex-" + $id',class:"$classes.fieldLabel"}}]}))),iee=x9("rField",(()=>({$el:"div",attrs:{class:'$classes.fieldGroup + " " + $classes.rFieldGroup'},children:[{$el:"input",attrs:{id:'$: "r-" + $id',onInput:'$handlers.rangeLimitInput("rgba", 0, 255)',onKeydown:'$handlers.rangeLimitKeydown("rgba", 0, 255, 1)',type:"number",class:'$classes.colorField + " " + $classes.rField',min:0,max:255,step:1,tabindex:{if:"$disabled",then:-1,else:0},disabled:"$disabled",value:"$rgba.r",autocomplete:"off"}},{$el:"label",children:"R",attrs:{for:'$: "r-" + $id',class:"$classes.fieldLabel"}}]}))),ree=x9("gField",(()=>({$el:"div",attrs:{class:'$classes.fieldGroup + " " + $classes.gFieldGroup'},children:[{$el:"input",attrs:{id:'$: "g-" + $id',onInput:'$handlers.rangeLimitInput("rgba", 0, 255)',onKeydown:'$handlers.rangeLimitKeydown("rgba", 0, 255, 1)',type:"number",class:'$classes.colorField + " " + $classes.gField',min:0,max:255,step:1,tabindex:{if:"$disabled",then:-1,else:0},disabled:"$disabled",value:"$rgba.g",autocomplete:"off"}},{$el:"label",children:"G",attrs:{for:'$: "g-" + $id',class:"$classes.fieldLabel"}}]}))),aee=x9("bField",(()=>({$el:"div",attrs:{class:'$classes.fieldGroup + " " + $classes.bFieldGroup'},children:[{$el:"input",attrs:{id:'$: "b-" + $id',onInput:'$handlers.rangeLimitInput("rgba", 0, 255)',onKeydown:'$handlers.rangeLimitKeydown("rgba", 0, 255, 1)',type:"number",class:'$classes.colorField + " " + $classes.bField',min:0,max:255,step:1,tabindex:{if:"$disabled",then:-1,else:0},disabled:"$disabled",value:"$rgba.b",autocomplete:"off"}},{$el:"label",children:"B",attrs:{for:'$: "b-" + $id',class:"$classes.fieldLabel"}}]}))),see=x9("aField",(()=>({$el:"div",attrs:{class:'$classes.fieldGroup + " " + $classes.aFieldGroup'},children:[{$el:"input",attrs:{id:'$: "a-" + $id',onInput:'$handlers.rangeLimitInput("alpha", 0, 1)',onKeydown:'$handlers.rangeLimitKeydown("alpha", 0, 1, 0.01)',type:"text",class:'$classes.colorField + " " + $classes.aField',value:"$rgba.a",tabindex:{if:"$disabled",then:-1,else:0},disabled:"$disabled",autocomplete:"off"},"aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":"$rgba.a"},{$el:"label",children:"A",attrs:{for:'$: "a-" + $id',class:"$classes.fieldLabel"}}]}))),oee=x9("hField",(()=>({$el:"div",attrs:{class:'$classes.fieldGroup + " " + $classes.hFieldGroup'},children:[{$el:"input",attrs:{id:'$: "h-" + $id',onInput:'$handlers.rangeLimitInput("hsla", 0, 360)',onKeydown:'$handlers.rangeLimitKeydown("hsla", 0, 360, 1)',type:"text",class:'$classes.colorField + " " + $classes.hField',tabindex:{if:"$disabled",then:-1,else:0},disabled:"$disabled",value:"$hslaPercent.h",autocomplete:"off","aria-valuemin":0,"aria-valuemax":360,"aria-valuenow":"$hsla.h"}},{$el:"label",children:"H",attrs:{for:'$: "h-" + $id',class:"$classes.fieldLabel"}}]}
100))),lee=x9("sField",(()=>({$el:"div",attrs:{class:'$classes.fieldGroup + " " + $classes.sFieldGroup'},children:[{$el:"input",attrs:{id:'$: "s-" + $id',onInput:'$handlers.rangeLimitInput("hsla", 0, 100)',onKeydown:'$handlers.rangeLimitKeydown("hsla", 0, 100, 1)',type:"text",class:'$classes.colorField + " " + $classes.sField',tabindex:{if:"$disabled",then:-1,else:0},value:"$hslaPercent.s",autocomplete:"off","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":"$hsla.s"}},{$el:"label",children:"S",attrs:{for:'$: "s-" + $id',class:"$classes.fieldLabel"}}]}))),uee=x9("lField",(()=>({$el:"div",attrs:{class:'$classes.fieldGroup + " " + $classes.lFieldGroup'},children:[{$el:"input",attrs:{id:'$: "l-" + $id',onInput:'$handlers.rangeLimitInput("hsla", 0, 100)',onKeydown:'$handlers.rangeLimitKeydown("hsla", 0, 100, 1)',type:"text",class:'$classes.colorField + " " + $classes.lField',tabindex:{if:"$disabled",then:-1,else:0},disabled:"$disabled",value:"$hslaPercent.l",autocomplete:"off","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":"$hsla.l"}},{$el:"label",children:"L",attrs:{for:'$: "l-" + $id',class:"$classes.fieldLabel"}}]}))),cee=x9("formatSwitcher",(()=>({$el:"div",attrs:{class:"$classes.formatSwitcher",onClick:"$handlers.toggleFormat",tabindex:{if:"$disabled",then:-1,else:0},onKeydown:"$handlers.formatSwitcherKeydown",role:"button","aria-label":"$ui.next.value"}}))),dee=x9("swatches",(()=>({$el:"div",attrs:{id:'$: "swatches-" + $id',class:"$classes.swatches","data-keyboard-nav":"$swatchIsUsingKeyboardNav"}}))),pee=x9("swatch",(()=>({$el:"div",for:["swatch","index","$options"],if:"$swatch",attrs:{if:"$swatch.group",then:{class:"$classes.swatchGroup"},else:{class:"$classes.swatch",title:"$swatch.label"}},children:{if:"$swatch.group",then:[{$el:"span",attrs:{class:"$classes.swatchGroupLabel"},children:"$swatch.group"},{$el:"div",for:["groupSwatch","swatchIndex","$swatch.options"],attrs:{class:"$classes.swatch",title:"$groupSwatch.label"},children:[{$el:"canvas",attrs:{class:"$classes.swatchCanvas",width:21,height:21,onClick:"$handlers.swatchClick",onKeydown:"$handlers.swatchKeydown",tabindex:{if:"$: ($focusedSwatch === $fns.anyToHsvaString($groupSwatch.value, 0))",then:{if:"$disabled",then:-1,else:0},else:-1},key:'$groupSwatch.label + "-" + $groupSwatch.value',"data-color":"$fns.anyToHsvaString($groupSwatch.value, 0)","data-color-precise":"$fns.anyToHsvaString($groupSwatch.value, 2)","data-group":"$index","data-label":"$swatch.label",role:"button","aria-label":"$swatch.label"}}]}],else:{$el:"canvas",attrs:{class:"$classes.swatchCanvas",width:21,height:21,onClick:"$handlers.swatchClick",onKeydown:"$handlers.swatchKeydown",tabindex:{if:"$: ($focusedSwatch === $fns.anyToHsvaString($swatch.value, 0))",then:{if:"$disabled",then:-1,else:0},else:-1},key:'$swatch.label + "-" + $swatch.value',"data-color":"$fns.anyToHsvaString($swatch.value, 0)","data-color-precise":"$fns.anyToHsvaString($swatch.value, 2)","data-group":0,"data-label":"$swatch.label",role:"button","aria-label":"$swatch.label"}}}}))),hee=/rgba?\((\d+%?)\s*(?:,?\s*|\s+)(\d+%?)\s*(?:,?\s*|\s+)(\d+%?)(?:\s*(?:,?\s*|\s+|\/\s*)(\d*(?:\.\d+)?%?))?\)/i,fee=/^hsla?\((\d{1,3}deg|[\d.]+)\s*,?\s*([\d.]+%)\s*,?\s*([\d.]+%)(?:\s*,?\s*([\d.]+%?))?\)$/i,mee={"canvas-ls":"LS","canvas-hue":"Hue","canvas-alpha":"Alpha"},gee={schema:T9(E9(L9("$label"),VQ("$inline && $help",D9("$help")),A9(VQ("($inline === undefined || $inline === false) && $prefixIcon !== undefined",M9("prefix","label")),VQ("$inline === undefined || $inline === false",I9()),VQ("$inline === undefined || $inline === false",R9(Q9(),VQ("$showValue",N9()))),VQ("$inline || $expanded)",F9(VQ("$showPanelClose && ($inline === undefined || $inline === false)",B9(M9("close"))),VQ("$panelControls",H9(j9(U9(),V9()),Z9(X9()),q9(z9(),W9()),G9(K9(),Y9()),VQ("$eyeDropper && $hasNativeEyeDropper",J9(M9("eyeDropper"))))),VQ("$panelFormat",eee(tee(VQ('$panelActiveFormat === "hex"',nee()),VQ('$panelActiveFormat === "rgba"',iee()),VQ('$panelActiveFormat === "rgba"',ree()),VQ('$panelActiveFormat === "rgba"',aee()),VQ('$panelActiveFormat === "hsla"',oee()),VQ('$panelActiveFormat === "hsla"',lee()),VQ('$panelActiveFormat === "hsla"',uee()),VQ('$panelActiveFormat === "rgba" || $panelActiveFormat === "hsla"',see())),cee(M9("switch")))),VQ("$options",dee(pee())))),VQ("$inline === undefined || $inline === false",$9()),VQ("($inline === undefined || $inline === false) && $suffixIcon !== undefined",M9("suffix"))),VQ("$: ($inline === undefined || $inline === false) && $help",D9("$help"))),P9(O9("$message.value"))),type:"input",family:"text",props:["disbaled","format","valueFormat","panelControls","panelFormat","eyeDropper","inline","options","showValue","closeOnSelect","allowPaste"],features:[function(e){function t(t){var i,r;if(!e.context||!e.props.allowPaste||e.props.disabled)return;const a=null===(i=e.props.__root)||void 0===i?void 0:i.activeElement;if(k&&k.contains(a)){const i=null===(r=t.clipboardData)||void 0===r?void 0:r.getData("text");if(!i)return;
100if("INPUT"===a.tagName&&!C2(i)&&!hee.test(i)&&!fee.test(i))return;(C2(i)||i.startsWith("hsl")||i.startsWith("rgb"))&&(e.props.hexInputFocused&&(e.props.hexInputFocused=!1,setTimeout((()=>{e.props.hexInputFocused=!0}),10)),t.preventDefault(),n(i))}}function n(t){var n;if(!t)return;const i=k2(t);if(i){const[n,r,a,s]=i;"undefined"!==t&&("number"!=typeof n||isNaN(n)||"number"!=typeof r||isNaN(r)||"number"!=typeof a||isNaN(a)||"number"!=typeof s||isNaN(s)||g2(n,2)===e.props.h&&g2(r,2)===e.props.s&&g2(a,2)===e.props.v&&g2(s,2)===e.props.alpha)||(e.props.alpha=g2(s,2),w(n,r,a))}else{const i=null===(n=e.props.options)||void 0===n?void 0:n.find((e=>{var n;return(null===(n=e.label)||void 0===n?void 0:n.toLowerCase())===t.toLowerCase()}));if(i&&i.value){const t=k2(i.value);if(t){const[n,i,r,a]=t;e.props.alpha=g2(a,2),w(n,i,r)}else w(e.props.h,e.props.s,e.props.v)}else w(e.props.h,e.props.s,e.props.v)}}function i(t){if(!e.context||!I)return;const n=I[t];n&&(e.props.focusedSwatch=n.dataset.color)}function r(e,t){new ResizeObserver((()=>{const n=e.getBoundingClientRect();e.width=Math.round(n.width),e.height=Math.round(n.height),t(e)})).observe(e)}function a(){e.context&&e.props.eyeDropper&&(e.context.hasNativeEyeDropper=!("undefined"==typeof window||!window.EyeDropper),Lq(`eye-dropper-${e.props.id}`,(()=>{var t;const n=new window.EyeDropper,i=null===(t=e.props.__root)||void 0===t?void 0:t.getElementById(`eye-dropper-${e.props.id}`);null==i||i.addEventListener("click",(()=>V(this,null,(function*(){const t=yield n.open();if(!t.sRGBHex)return;const[i,r,a]=y2(t.sRGBHex);e.props.alpha=1,w(i,r,a)}))))}),e.props.__root))}function s(){o("canvas-ls",(e=>{x=e}),P,m),o("canvas-hue",(e=>{T=e}),c,g),o("canvas-alpha",(e=>{E=e}),O,y),l(`canvas-preview-${e.props.id}`,(e=>{A=e,d()}),M),l(`canvas-swatch-preview-${e.props.id}`,(e=>{L=e,p()}),R),u()}function o(t,n,i,r){let a=!1;const s=H((()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",c),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d)}),"a"),o=H((e=>{1===e.buttons&&C&&r(e)}),"l"),u=H((e=>{C&&r(e)}),"p"),c=H((()=>{C=void 0,s()}),"d"),d=H((()=>{C=void 0,s()}),"c");l(`${t}-${e.props.id}`,(e=>{const s=e.nextElementSibling;var l,p;n(e),i(),function(e,t){const n=H((n=>{e&&(n.preventDefault(),t(n))}),"o");null==e||e.addEventListener("mousedown",n),null==e||e.addEventListener("touchstart",n)}(e,r),a||(p=e,a=!0,(l=s).addEventListener("blur",(()=>{l.removeAttribute("data-prevent-focus-style")})),p.addEventListener("touchend",(()=>{l.removeAttribute("data-prevent-focus-style"),l.blur()})),l.addEventListener("keydown",(e=>{["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.key)&&l.removeAttribute("data-prevent-focus-style")}))),e.addEventListener("mousedown",(e=>{s.focus(),s.setAttribute("data-prevent-focus-style","true"),C=mee[t],r(e),document.addEventListener("mousemove",o),document.addEventListener("mouseup",c)})),e.addEventListener("touchstart",(()=>{s.setAttribute("data-prevent-focus-style","true"),s.focus(),C=mee[t],document.addEventListener("touchmove",u),document.addEventListener("touchend",d)}))}),i)}function l(t,n,i){Lq(t,(()=>{var a;const s=null===(a=e.props.__root)||void 0===a?void 0:a.getElementById(t);s&&(n(s),i&&r(s,i))}),e.props.__root)}function u(){Lq(`swatches-${e.props.id}`,(()=>{var t,n,i;I=Array.from((null===(t=e.props.__root)||void 0===t?void 0:t.querySelectorAll(`#swatches-${e.props.id} canvas`))||[]),I.forEach((e=>{r(e,h)})),e.props.focusedSwatch=null===(i=null===(n=I[0])||void 0===n?void 0:n.dataset)||void 0===i?void 0:i.color,b()}),e.props.__root)}function c(){if(!T)return;const e=T.getContext("2d");if(!e)return;const t=T.width,n=T.height;for(let i=0;i<t;i++){const r=Math.floor(i/t*360);e.fillStyle=`hsl(${r}, 100%, 50%)`,e.fillRect(i,0,1,n)}}function d(){if(!A)return;const t=A.getContext("2d");if(!t)return;v(A,A.width/3);const{r:n,g:i,b:r,a:a}=e.props.rgba;t.fillStyle=`rgba(${n}, ${i}, ${r}, ${a})`,t.fillRect(0,0,A.width,A.height)}function p(){if(!L)return;const t=L.getContext("2d");if(!t)return;v(L,L.height/2);const{r:n,g:i,b:r,a:a}=e.props.rgba;t.fillStyle=`rgba(${n}, ${i}, ${r}, ${a})`,t.fillRect(0,0,L.width,L.height)}function h(e){if(!e)return;const t=e.getContext("2d");if(!t)return;v(e,e.width/2);const n=e.dataset.colorPrecise;if(!n)return;const[i,r,a,s]=x2(n),[o,l,u,c]=v2(i,r,a,s);t.fillStyle=`hsla(${o}, ${l/255*100}%, ${u/255*100}%, ${c})`,t.fillRect(0,0,Math.round(e.width),Math.round(e.height))}function f(e,t,n){let i=null;const r=H((e=>{null!==i&&cancelAnimationFrame(i),i=requestAnimationFrame((()=>
100{if(!t)return;const i=t.getBoundingClientRect();let r,a;"touches"in e?(r=e.touches[0].clientX-i.left,a=e.touches[0].clientY-i.top):(r=e.clientX-i.left,a=e.clientY-i.top),r=Math.min(Math.max(r,0),i.width),a=Math.min(Math.max(a,0),i.height),n(r,a)}))}),"r");r(e);const a=H((e=>{e.preventDefault(),r(e)}),"s"),s=H((e=>{e.preventDefault(),r(e)}),"a"),o=H((()=>{C=void 0,document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",o)}),"l"),l=H((()=>{C=void 0,document.removeEventListener("touchmove",s),document.removeEventListener("touchend",l)}),"i");"touches"in e?(document.addEventListener("touchmove",s),document.addEventListener("touchend",l)):(document.addEventListener("mousemove",a),document.addEventListener("mouseup",o))}function m(t){f(t,x,((t,n)=>{const i=t/x.width*100,r=100-n/x.height*100;N(e.props.hue,i,r)}))}function g(t){f(t,T,((t,n)=>{if(!T)return;const i=T.width,r=Math.floor(t/i*360);e.props.h=r,N(e.props.h,e.props.s,e.props.v)}))}function y(t){f(t,E,((t,n)=>{const i=t/E.width*100/100;e.props.alpha=i,N(e.props.hue,e.props.s,e.props.v)}))}function v(e,t){const n=e.getContext("2d");if(!n)return;const i=Math.ceil(e.height/t),r=Math.ceil(e.width/t);for(let a=0;a<i;a++)for(let e=0;e<r;e++)n.fillStyle=(a+e)%2==1?"#FFFFFF":"#CCCCCC",n.fillRect(e*t,a*t,t,t)}function b(){var t,n;if(!e.context||!e.props.options||!I)return;const{h:r,s:a,v:s,alpha:o}=e.props,l=function(e,t,n,i=1){const r=0===n?0:t;return`${g2(0===n||100===n&&0===t?0:e,0)}-${g2(r,0)}-${g2(n,0)}-${g2(i,2)}`}(r,a,s,o);let u=!1,c=!1;I.forEach((e=>{const t=e.dataset.color;if(!t)return;const[n,r,a,d]=t.split("-");"0"===a&&0===s&&d===`${o}`&&(c=!0);const p=e.parentElement;c||t===l?(p.dataset.active="true",e.ariaSelected="true",c=!1,!u&&I&&(i(I.indexOf(e)),u=!0)):(delete p.dataset.active,e.ariaSelected="false")})),u||(e.props.focusedSwatch=null===(n=null===(t=I[0])||void 0===t?void 0:t.dataset)||void 0===n?void 0:n.color)}function _(t){t=t.replace("#",""),e.props.hexInputFocused||3!==t.length||(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),t=`#${t=t.toUpperCase()}`,e.props.hex=t.slice(0,9)}function w(t,n,i){e.props.h=void 0===t||isNaN(t)?e.props.h:g2(Math.max(Math.min(t,360),0),2),e.props.s=void 0===n||isNaN(n)?e.props.s:g2(Math.max(Math.min(n,100),0),2),e.props.v=void 0===i||isNaN(i)?e.props.v:g2(Math.max(Math.min(i,100),0),2);const{h:r,s:a,v:s,alpha:o}=e.props,[l,u,c]=v2(r,a,s),[d,p,h]=_2(r,a,s),f=e.props.hexInputFocused?e.props.hex:S2(r,a,s,o),m=g2(o,2);e.props.hsla={h:r,s:u,l:c,a:m},e.props.hslaPercent={h:g2(r,0),s:100===s&&0===a?0:g2(0===s?u/255:Math.max(Math.min(u/255*100,100),0),0),l:g2(Math.max(Math.min(e.props.hsla.l/255*100,100),0),0),a:m},e.props.hslaString=`hsla(${e.props.hslaPercent.h}, ${e.props.hslaPercent.s}%, ${e.props.hslaPercent.l}%, ${m})`,e.props.hslaStringPrecise=`hsla(${r}, ${g2(0===s?u/255:u/255*100,2)}%, ${g2(c/255*100,2)}%, ${m})`,e.props.rgba={r:d,g:p,b:h,a:m},e.props.rgbaString=`rgba(${d}, ${p}, ${h}, ${m})`,_(f),setTimeout((()=>{var t;S(),function(){const t=e.props.s,n=100-e.props.v;e.props.controlLSPosition={x:t,y:n}}(),F(),k||"undefined"==typeof window||(k=null===(t=e.props.__root)||void 0===t?void 0:t.querySelector(`[data-id="${e.props.id}"]`))}),0);const g=e.props.valueFormat?e.props.valueFormat:e.props.format;"hex"===g?e.input(e.props.hex):"rgba"===g?e.input(e.props.rgbaString):"hsla"===g&&e.input(e.props.hslaStringPrecise)}function S(){P(),O(),M(),R()}H(t,"t"),H(n,"o"),H(i,"n"),H(r,"r"),H(a,"s"),H(s,"a"),H(o,"l"),H(l,"i"),H(u,"p"),H(c,"d"),H(d,"c"),H(p,"u"),H(h,"f"),H(f,"h"),H(m,"v"),H(g,"g"),H(y,"$"),H(v,"m"),H(b,"b"),H(_,"y"),H(w,"x"),H(S,"w");let C,k=null,x=null,T=null,E=null,A=null,L=null,I=null,$=0;const D=["hex","rgba","hsla"],P=T2((function(){if(!x)return;const t=x.getContext("2d");if(!t)return;const{width:n,height:i}=x,r=e.props.h||0;t.fillStyle=`hsl(${r}, 100%, 50%)`,t.fillRect(0,0,n,i);const a=t.createLinearGradient(0,0,n,0);a.addColorStop(0,"rgba(255, 255, 255, 1)"),a.addColorStop(1,"rgba(255, 255, 255, 0)"),t.fillStyle=a,t.fillRect(0,0,n,i);const s=t.createLinearGradient(0,0,0,i);s.addColorStop(0,"rgba(0,0,0,0)"),s.addColorStop(1,"rgba(0,0,0,1)"),t.fillStyle=s,t.fillRect(0,0,n,i)}),2),O=T2((function(){if(!E)return;const t=E.getContext("2d");if(!t)return;const n=Math.round(E.width),i=Math.round(E.height);t.clearRect(0,0,n,i),v(E,i/2);const r=e.props.rgba.r||0,a=e.props.rgba.g||0,s=e.props.rgba.b||0,o=t.createLinearGradient(0,0,n,0);o.addColorStop(0,`rgba(${r}, ${a}, ${s}, 0)`),o.addColorStop(1,`rgba(${r}, ${a}, ${s}, 1)`),t.fillStyle=o,t.fillRect(0,0,n,i)}),2),M=T2(d,2),R=T2(p,2),N=T2(w,2),F=T2(b,10,!1);e.addProps(["expanded","h","s","v","alpha","hsla","hslaPercent","hslaString","hslaStringPrecise","rgba","rgbaString","hex","controlLSPosition","panelActiveFormat","hexInputFocused","hasNativeEyeDropper","focusedSwatch","swatchIsUsingKeyboardNav","showPanelClose"]),e.props.h=e.props.h||void 0,e.props.s=e.props.s||void 0,e.props.v=e.props.v||void 0,e.props.alpha=e.props.alpha||1,e.props.control
100LSPosition=e.props.controlLSPosition||{x:0,y:0},e.props.switchIcon=e.props.switchIcon||'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M34.2 179.7L154.4 66.2c1.4-1.3 3.5-2.2 5.6-2.2s4.2 .8 5.6 2.2L285.8 179.7c1.4 1.3 2.2 3.2 2.2 5.2c0 3.9-3.2 7.1-7.1 7.1H39.1c-3.9 0-7.1-3.2-7.1-7.1c0-2 .8-3.8 2.2-5.2zm-22-23.3C4.4 163.8 0 174.1 0 184.9C0 206.5 17.5 224 39.1 224H280.9c21.6 0 39.1-17.5 39.1-39.1c0-10.8-4.4-21.1-12.3-28.4L187.6 42.9C180.1 35.9 170.2 32 160 32s-20.1 3.9-27.6 10.9L12.3 156.4zm22 175.9c-1.4-1.3-2.2-3.2-2.2-5.2c0-3.9 3.2-7.1 7.1-7.1H280.9c3.9 0 7.1 3.2 7.1 7.1c0 2-.8 3.8-2.2 5.2L165.6 445.8c-1.4 1.3-3.5 2.2-5.6 2.2s-4.2-.8-5.6-2.2L34.2 332.3zm-22 23.3L132.4 469.1c7.4 7 17.4 10.9 27.6 10.9s20.1-3.9 27.6-10.9L307.7 355.6c7.8-7.4 12.3-17.7 12.3-28.5c0-21.6-17.5-39.1-39.1-39.1H39.1C17.5 288 0 305.5 0 327.1c0 10.8 4.4 21.1 12.3 28.5z"/></svg>',e.props.hexInputFocused=!1,e.props.swatchIsUsingKeyboardNav=!1,e.on("destroying",(()=>{e.context&&"undefined"!=typeof document&&document.removeEventListener("paste",t)})),e.on("created",(()=>{e.context&&("undefined"!=typeof window&&document.addEventListener("paste",t),e.props.expanded=!1,e.props.panelActiveFormat=e.props.format||D[0],e.props.panelControls=E2(e.props.panelControls),e.props.eyeDropper=E2(e.props.eyeDropper),e.props.panelFormat=E2(e.props.panelFormat),e.props.showValue=E2(e.props.showValue),e.props.allowPaste=E2(e.props.allowPaste),e.props.inline=xq(e.props.inline),e.props.disabled=xq(e.props.disabled),e.props.format=e.props.format||"hex",e.props.valueFormat=e.props.valueFormat||e.props.format,e.props.closeOnSelect=xq(e.props.closeOnSelect),e.props.focusedSwatch=void 0,n(`${e.value}`),e.on("input",(({payload:t})=>{k&&void 0!==e.props.__root&&!k.contains(e.props.__root.activeElement)&&n(t)})),setTimeout((()=>{a()}),5),s(),e.on("prop:expanded",(()=>{function t(t){"Escape"===t.key&&(t.preventDefault(),e.props.expanded=!1)}var n;H(t,"t"),e.props.expanded?(a(),s(),u(),document.addEventListener("keydown",t),window.innerWidth<=430&&!window.matchMedia("(hover: hover)").matches?e.props.showPanelClose=!0:e.props.showPanelClose=!1,setTimeout((()=>{var t;const n=null===(t=e.props.__root)||void 0===t?void 0:t.querySelector(`[data-id="${e.props.id}"] *:not(.formkit-swatch-preview)[tabindex="0"]`);n&&n.focus()}),0)):(document.removeEventListener("keydown",t),(null===(n=e.props.__root)||void 0===n?void 0:n.querySelector(`[data-id="${e.props.id}"] *[tabindex="0"]`)).focus())})),e.context.fns.anyToHsvaString=(e,t)=>{const n=k2(e);if(!n)return"0-0-0-1";let[i,r,a,s]=n;return 0===t&&(i=0===a||100===a&&0===r?0:i),`${g2(i,t)}-${g2(r,t)}-${g2(a,t)}-${g2(s,2)}`},e.context.handlers.inputPreviewClick=t=>{e.props.expanded=!e.props.expanded},e.context.handlers.inputPreviewFocusout=t=>{var n,i,r;const a=null===(n=e.props.__root)||void 0===n?void 0:n.querySelector(`[data-id="${e.props.id}"] .formkit-inner`),s=t.relatedTarget;if(a.contains(s)){let t=function(n){var i,r;a.contains(n.target)||(e.props.expanded=!1,null===(i=e.props.__root)||void 0===i||i.removeEventListener("mousedown",t),null===(r=e.props.__root)||void 0===r||r.removeEventListener("touchstart",t))};H(t,"l"),null===(i=e.props.__root)||void 0===i||i.addEventListener("mousedown",t),null===(r=e.props.__root)||void 0===r||r.addEventListener("touchstart",t)}else e.props.expanded=!1},e.context.handlers.inputPreviewKeydown=t=>{"Escape"===t.key&&(t.preventDefault(),e.props.expanded=!1),"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.props.expanded=!e.props.expanded)},e.context.handlers.closePanel=()=>{e.props.expanded=!1},e.context.handlers.panelCloseKeydown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.props.expanded=!1)},e.context.handlers.toggleFormat=(t=1)=>{t="number"==typeof t?t:1;const n=(D.indexOf(e.props.panelActiveFormat)+t+D.length)%D.length;e.props.panelActiveFormat=D[n]},e.context.handlers.panelKeydown=t=>{var n,i,r;if("Tab"===t.key&&e.props.expanded){t.preventDefault();const a=Array.from((null===(n=e.props.__root)||void 0===n?void 0:n.querySelectorAll(`[data-id="${e.props.id}"] *:not(.formkit-swatch-preview)[tabindex="0"]`))||[]).filter(A2),s=a.indexOf((null===(i=e.props.__root)||void 0===i?void 0:i.activeElement)?null===(r=e.props.__root)||void 0===r?void 0:r.activeElement:e.props.__root);let o;o=t.shiftKey?(s-1+a.length)%a.length:(s+1)%a.length,a[o].focus()}},e.context.handlers.lsKeydown=t=>{if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(t.key)){t.preventDefault();const{h:n,s:i,v:r}=e.props,a=t.shiftKey?10:1;switch(t.key){case"ArrowLeft":w(n,i-a,r);break;case"ArrowRight":w(n,i+a,r);break;case"ArrowUp":w(n,i,r+a);break;case"ArrowDown":w(n,i,r-a);break;case"PageUp":w(n,i,r+10);break;case"PageDown":w(n,i,r-10);break;case"Home":w(n,i-10,r);break;case"End":w(n,i+10,r)}S()}},e.context.handlers.hueControlKeydown=t=>{if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(t.key)){t.preventDefault();const{h:n,s:i,v:r}=e.props,a=t.shiftKey?10:1;switch(t.key){case"ArrowLeft":case"ArrowDown":w(n-a,i,r);break;case"ArrowRight":case"ArrowUp":w(n+a,i,r);break;case"PageUp":w(n+10,i,r);break;case"PageDown":w(n-10,i,r);break;case"Home":w(0,i,r);break;case"End":w(360,i,r)}S()}},e.context.handlers.alphaControlKeydown=t=>{if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(t.key)){t.preventDefault();const{h:n,s:i,v:r,alpha:a}=e.props,s=t.shiftKey?.1:.01;switch(t.key){case"ArrowLeft":case"ArrowDown":e.props.alpha=g2(Math.min(Math.max(a-s,0),1),2);break;case"ArrowRight":case"ArrowUp":e.props.alpha=g2(Math.min(Math.max(a+s,0),1),2);break;case"PageUp":e.props.alpha=g2(Math.min(Math.max(a+.1,0),1),2);break;case"PageDown":e.props.alpha=g2(Math.min(Math.max(a-.1,0),1),2);break;case"Home":e.props.alpha=0;break;case"End":e.props.alpha=1}w(n,i,r)}},e.context.handlers.eyeDropperKeydown=t=>{var n;if("Enter"===t.key||" "===t.key){t.preventDefault();const i=null===(n=e.props.__root)||void 0===n?void 0:n.getElementById(`eye-dropper-${e.props.id}`);null==i||i.click()}},e.context.handlers.formatSwitcherKeydown=t=>{e.context&&("Enter"!==t.key&&" "!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),e.context.handlers.toggleFormat()),"ArrowUp"===t.key&&(t.preventDefault(),e.context.handlers.toggleFormat(-1)))},e.context.handlers.hexInput=t=>{const n=t.target,i=n.value.startsWith("#")?9:8,r=n.value.slice(0,i);if(n.value=r,C2(r)){const[t,n,i,a]=y2(r);e.props.alpha=a,_(r),w(t,n,i)}},e.context.handlers.hexKeydown=t=>{const n=t.target,i=n.value;let r="";if(!C2(i))return;const a=i.startsWith("#")?i.slice(1):i,s=8===a.length,o=s?a.substring(0,6):a,l=s?a.substring(6,8):"",u=t.shiftKey?10:1,c=16777215;let d;if(["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(t.key))switch(t.preventDefault(),t.key){case"ArrowUp":d=(parseInt(o,16)+u)%16777216;break;case"ArrowDown":d=(parseInt(o,16)-u+c+1)%16777216;break;case"PageUp":d=(parseInt(o,16)+10)%16777216;break;case"PageDown":d=(parseInt(o,16)-10+c+1)%16777216;break;case"Home":d=0;break;case"End":d=c}void 0!==d&&(r=d.toString(16).padStart(6,"0").toUpperCase()),r&&(n.value=s?`#${r}${l}`:`#${r}`),e.context&&e.context.handlers.hexInput(t)},e.context.handlers.hexFocus=()=>{e.context&&(e.props.hexInputFocused=!0)},e.context.handlers.hexBlur=t=>{if(!e.context)return;e.props.hexInputFocused=!1;const n=t.target.value;C2(n)&&_(n)},e.context.handlers.rangeLimitInput=(t,n,i,r)=>a=>{const s=r||a;if(!s||!e.context)return;const o=s.target;if(o.value.endsWith("."))return;const l=Math.max(Math.min(Number(o.value),i),n);o.value=`${l}`;const u=o.id;if("hsla"===t){switch(u){case`h-${e.props.id}`:e.props.h=l;break;case`s-${e.props.id}`:e.props.hslaPercent.s=l;break;case`l-${e.props.id}`:e.props.hslaPercent.l=l}const[t,n,i]=b2(e.props.h,2.55*e.props.hslaPercent.s,2.55*e.props.hslaPercent.l);w(t,n,i)}else if("rgba"===t){switch(u){case`r-${e.props.id}`:e.props.rgba.r=l;break;case`g-${e.props.id}`:e.props.rgba.g=l;break;case`b-${e.props.id}`:e.props.rgba.b=l}const[t,n,i]=w2(e.props.rgba.r,e.props.rgba.g,e.props.rgba.b);w(t,n,i)}else"alpha"==t&&(e.props.alpha=l,w())},e.context.handlers.rangeLimitKeydown=(t,n,i,r)=>a=>{if(e.context)if(["ArrowUp","ArrowDown","PageUp","PageDown","Home","End","Backspace","Tab","Enter"].includes(a.key)||a.metaKey||!/[a-zA-Z!@#$%^&*()_+={}\[\]:;"'<,>?\/|\\`~]/g.test(a.key)){if(["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(a.key)){const s=a.target,o=Number(s.value),l=a.shift
100Key?10*r:r;switch(a.key){case"ArrowUp":a.preventDefault(),s.value=`${Math.min(o+l,i)}`;break;case"ArrowDown":a.preventDefault(),s.value=`${Math.max(o-l,n)}`;break;case"PageUp":a.preventDefault(),s.value=`${Math.min(o+10*r,i)}`;break;case"PageDown":a.preventDefault(),s.value=`${Math.max(o-10*r,n)}`;break;case"Home":a.preventDefault(),s.value=`${n}`;break;case"End":a.preventDefault(),s.value=`${i}`}e.context.handlers.rangeLimitInput(t,n,i,a)()}}else a.preventDefault()},e.context.handlers.swatchClick=t=>{const n=t.target;if(n.dataset.colorPrecise){const[t,i,r,a]=x2(n.dataset.colorPrecise);e.props.alpha=a,w(t,i,r),e.props.closeOnSelect&&(e.props.expanded=!1)}e.context&&"keydown"!==t.type&&e.context.handlers.swatchKeydown(t)},e.context.handlers.swatchKeydown=t=>{var n,r,a,s;if(!e.context||!I||!I.length)return;const o=I.indexOf(t.currentTarget);let l=null;const u=function(e){var t;if(!e.length)return 0;const n=null===(t=e[0].parentElement)||void 0===t?void 0:t.parentElement;if(!n)return 0;const i=n.getBoundingClientRect().width,r=e[0].parentElement;if(!r)return 0;const a=r.getBoundingClientRect(),s=window.getComputedStyle(r),o=parseFloat(s.marginLeft)+parseFloat(s.marginRight),l=a.width+o;return Math.floor(i/l)}(I),c=I.length;let d=0,p=c,h=!1;const f=I[o].dataset.group;if(void 0!==f){const e=I.filter((e=>e.dataset.group===f));d=I.indexOf(e[0]),p=I.indexOf(e[e.length-1])}const m=(o-d)%u;if(!t.key||"Tab"===t.key)return t.key||(e.props.swatchIsUsingKeyboardNav=!1,$=m,i(o)),"Tab"===t.key&&(e.props.swatchIsUsingKeyboardNav=!1),void I.forEach((e=>{delete e.parentElement.dataset.focused}));if("Enter"===t.key||" "===t.key)return t.preventDefault(),$=m,e.context.handlers.swatchClick(t),void i(o);switch("ArrowUp"!==t.key&&"ArrowDown"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key||(e.props.swatchIsUsingKeyboardNav=!0,t.preventDefault()),t.key){case"ArrowUp":l=Math.max(o-u,o-(u-($-m))),h=!0;break;case"ArrowDown":l=Math.max(o+u,o+(u+($-m))),h=!0;break;case"ArrowLeft":l=o-1,$=(l-d)%u;break;case"ArrowRight":l=o+1,$=(l-d)%u}if(h&&null!==l&&(l<d||l>p)){let e;e=l<d?null===(r=null===(n=I[d-1])||void 0===n?void 0:n.dataset)||void 0===r?void 0:r.group:null===(s=null===(a=I[p+1])||void 0===a?void 0:a.dataset)||void 0===s?void 0:s.group;const t=I.filter((e=>e.dataset.group===f)),i=I.filter((t=>t.dataset.group===e)),c=(o-d)%u,h=t.length%u||u,m=o>=d+t.length-h;if(l<d){const e=i.length%u||u;l=d-e+Math.min(Math.max(c,$),e-1)}else l>p&&(l=m?Math.min(p+Math.max(c,$)+1,I.indexOf(i[i.length-1])):Math.min(l,p))}if(null!==l&&l>=0&&l<c){i(l),I.forEach((e=>{delete e.parentElement.dataset.focused}));const e=I[l],t=e.parentElement;e.focus(),t.dataset.focused="true"}})}))},ZJ,pK,aY("eyeDropper","color"),aY("close","close"),oY("close"),oY("next")]},yee=HQ("tb"),{outer:vee,wrapper:bee,label:_ee,prefix:wee,suffix:See,help:Cee,messages:kee,message:xee,icon:Tee}=jQ(yee),Eee=yee("singleToggle",(()=>({bind:"$attrs",$el:"button",attrs:{id:"$id",type:"button","aria-label":"$label","aria-pressed":"$fns.isChecked($onValue, $value)",role:"checkbox",onClick:"$handlers.toggleValue()",disabled:"$disabled",class:"$classes.input",onBlur:"$handlers.blur"}}))),Aee=yee("multiToggle",(()=>({bind:"$attrs",$el:"button",attrs:{type:"button",id:"$id+'_'+$index","aria-label":"$label","aria-pressed":"$fns.isChecked($option, $value)",role:'$multiple && "checkbox" || "radio"',onClick:"$handlers.toggleValue($option)",class:"$classes.input",title:"$option.help",disabled:"$disabled || $option.disabled",onBlur:"$handlers.blur"}}))),Lee=yee("inputInner",(()=>({bind:"$attrs",$el:"span"}))),Iee=yee("options",(()=>({$el:"ul",attrs:{id:"$id",role:"group","data-vertical":'$vertical && "true" || "false"',"aria-labelledby":"$id"}}))),$ee=yee("option",(()=>({$el:"li",for:["option","index","$options"],attrs:{role:"listitem",key:"$option.value","data-index":"$index"}}))),Dee={schema:vee(VQ("$options",bee(_ee("$label"),Iee($ee(Aee(VQ("$fns.isChecked($option) === true",Lee("$slots.default || $slots.on || $option.onLabel || $option.label"),Lee("$slots.default || $slots.off || $option.offLabel || $option.label")))))),bee(VQ("$label && ($slots.default || $slots.on || $onLabel)",_ee("$label")),Eee(Tee("prefix"),wee(),VQ("$_isChecked === true",Lee("$slots.default || $slots.on || $onLabel || $label"),Lee("$slots.default || $slots.off || $offLabel || $label")),See(),Tee("suffix")))),Cee("$help"),kee(xee("$message.value"))),type:"input",family:"button",props:["options"],features:[function(e){var t,n,i,r;e.addProps(["enforced","multiple","offLabel","offValue","onLabel","onValue","vertical","_isChecked"]),e.props._isChecked=!1,e.props.enforced=xq(e.props.enforced),e.props.multiple=xq(e.props.multiple),e.props.vertical=xq(e.props.vertical),e.props.disabled=xq(e.props.disabled),null!==(t=(i=e.props).onValue)&&void 0!==t||(i.onValue=!0),null!==(n=(r=e.props).offValue)&&void 0!==n||(r.offValue=!1),e.on("created",(()=>{var t;e.props._isChecked=L2(e,null),e.props.options&&e.props.multiple&&e.input(null!==(t=e.value)&&void 0!==t?t:[],!1),e.context&&(e.context.fns.isChecked=t=>
100L2(e,t),e.context.handlers.toggleValue=t=>n=>function(e,t,n){if(n.preventDefault(),t=t?KQ(t):t,e.props.options)if(e.props.multiple){const n=Array.isArray(e.value)?[...e.value]:[],i=n.findIndex((e=>rq(e,t)));i>-1&&(!e.props.enforced||n.length>1)?n.splice(i,1):-1===i&&n.push(t),e.input(n)}else rq(e.value,t)&&!e.props.enforced?e.input(void 0):e.input(t);else e.input(rq(e.value,e.props.onValue)?e.props.offValue:e.props.onValue)}(e,t,n))}))},pK]};var Pee=Object.freeze({__proto__:null,autocomplete:x5,colorpicker:gee,datepicker:m6,dropdown:j3,mask:a7,rating:e5,repeater:M8,slider:k9,taglist:R6,toggle:a8,togglebuttons:Dee,transferlist:G7});const Oee=new WeakSet;function Mee({columns:e,columnWidth:t,emit:n,gap:i,items:r,maxColumns:a,minColumns:s,nextTick:o,onBeforeUnmount:l,onMounted:u,rtl:c,scrollContainer:d,ssrColumns:p,vue:h,wall:f,watch:m}){function g(e,t,n,i){const r=y(n);return i+t+r<=e?g(e,t,n+1,i+t+r):n}function y(e){const n=Array.isArray(t.value)?t.value:[t.value];return n[e%n.length]}function v(){const e=_(b(g(f.value.getBoundingClientRect().width,i.value,0,-i.value)));return e>0?e:1}function b(e){const t=null==a?void 0:a.value;return t&&e>t?t:e}function _(e){const t=null==s?void 0:s.value;return t&&e<t?t:e}function w(e){return Array.from({length:e}).map((()=>[]))}if(H(g,"R"),H(y,"T"),H(v,"b"),H(b,"E"),H(_,"S"),H(w,"B"),p.value>0){const t=w(p.value);r.value.forEach(((e,n)=>t[n%p.value].push(n))),e.value=t}function S(t){return V(this,null,(function*(){if(t>=r.value.length)return;yield o();const n=[...f.value.children];c.value&&n.reverse();const i=n.reduce(((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e));e.value[+i.dataset.index].push(t),yield S(t+1)}))}function C(t=!1){return V(this,null,(function*(){if(e.value.length===v()&&!t)return void n(2===h?"redraw-skip":"redrawSkip");e.value=w(v());const i=null==d?void 0:d.value,r=i?i.scrollTop:window.scrollY;yield S(0),i?i.scrollBy({top:r-i.scrollTop}):window.scrollTo({top:r}),n("redraw")}))}H(S,"A"),H(C,"c");const k=typeof ResizeObserver>"u"?void 0:new ResizeObserver((()=>C()));return u((()=>{C(),null==k||k.observe(f.value)})),l((()=>null==k?void 0:k.unobserve(f.value))),m([r,c],(()=>C(!0))),m([t,i,s,a],(()=>C())),{getColumnWidthTarget:y}}H(Mee,"_$1");const Ree=["data-index"],Nee=vr({__name:"masonry-wall",props:{columnWidth:{default:400},items:{},gap:{default:0},rtl:{type:Boolean,default:!1},ssrColumns:{default:0},scrollContainer:{default:null},minColumns:{default:1},maxColumns:{default:void 0},keyMapper:{default:void 0}},emits:["redraw","redrawSkip"],setup(e,{emit:t}){const n=e,i=t,r=Tn([]),a=Tn(),{getColumnWidthTarget:s}=Mee(F({columns:r,emit:i,nextTick:vi,onBeforeUnmount:Ur,onMounted:Br,vue:3,wall:a,watch:Bi},Fn(n)));return(e,t)=>(As(),Ps("div",{ref_key:"wall",ref:a,class:"masonry-wall",style:Pe({display:"flex",gap:`${e.gap}
100px`})},[(As(!0),Ps(Ss,null,ea(r.value,((t,n)=>(As(),Ps("div",{key:n,class:"masonry-column","data-index":n,style:Pe({display:"flex","flex-basis":`${$n(s)(n)}px`,"flex-direction":"column","flex-grow":1,gap:`${e.gap}px`,height:["-webkit-max-content","-moz-max-content","max-content"],"min-width":0})},[(As(!0),Ps(Ss,null,ea(t,((t,i)=>{var r,a;return As(),Ps("div",{key:null!=(r=null==(a=e.keyMapper)?void 0:a.call(e,e.items[t],n,i,t))?r:t,class:"masonry-item"},[na(e.$slots,"default",{item:e.items[t],column:n,row:i,index:t},(()=>[qs(ze(e.items[t]),1)]))])})),128))],12,Ree)))),128))],4))}}),Fee=(()=>{const e=Nee;return e.install=t=>{t.component("MasonryWall",e)},e})();function Bee(e){return-1!==e.type.indexOf("mouse")?e.clientX:e.touches[0].clientX}function Hee(e){return-1!==e.type.indexOf("mouse")?e.clientY:e.touches[0].clientY}H(Bee,"touchX"),H(Hee,"touchY");var jee=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:H((function(){e=!0}),"get")});window.addEventListener("test",null,t)}catch(tvt){}return e}(),Uee={install:H((function(e,t){var n=Object.assign({},{disableClick:!1,tapTolerance:10,swipeTolerance:30,touchHoldTolerance:400,longTapTimeInterval:400,touchClass:"",dragFrequency:100,rollOverFrequency:100},t);function i(e){var t=this.$$touchObj,n=e.type.indexOf("touch")>=0,i=e.type.indexOf("mouse")>=0,r=this;n&&(t.lastTouchStartTime=e.timeStamp),i&&t.lastTouchStartTime&&e.timeStamp-t.lastTouchStartTime<350||t.touchStarted||(d(this),t.touchStarted=!0,t.touchMoved=!1,t.swipeOutBounded=!1,t.startX=Bee(e),t.startY=Hee(e),t.currentX=0,t.currentY=0,t.touchStartTime=e.timeStamp,t.hasSwipe=u(this,"swipe")||u(this,"swipe.left")||u(this,"swipe.right")||u(this,"swipe.top")||u(this,"swipe.bottom"),u(this,"hold")&&(t.touchHoldTimer=setTimeout((function(){t.touchHoldTimer=null,c(e,r,"hold")}),t.options.touchHoldTolerance)),c(e,this,"press"))}function r(e){var t=this.$$touchObj,n=Bee(e),i=Hee(e),r=t.currentX!=n||t.currentY!=i;if(t.currentX=n,t.currentY=i,t.touchMoved){if(t.hasSwipe&&!t.swipeOutBounded){var a=t.options.swipeTolerance;t.swipeOutBounded=Math.abs(t.startX-t.currentX)>a&&Math.abs(t.startY-t.currentY)>a}}else{var s=t.options.tapTolerance;t.touchMoved=Math.abs(t.startX-t.currentX)>s||Math.abs(t.startY-t.currentY)>s,t.touchMoved&&(h(t),c(e,this,"drag.once"))}if(u(this,"rollover")&&r){var o=e.timeStamp,l=t.options.rollOverFrequency;(null==t.touchRollTime||o>t.touchRollTime+l)&&(t.touchRollTime=o,c(e,this,"rollover"))}if(u(this,"drag")&&t.touchStarted&&t.touchMoved&&r){o=e.timeStamp,l=t.options.dragFrequency;(null==t.touchDragTime||o>t.touchDragTime+l)&&(t.touchDragTime=o,c(e,this,"drag"))}}function a(){var e=this.$$touchObj;h(e),p(this),e.touchStarted=e.touchMoved=!1,e.startX=e.startY=0}function s(e){var t=this.$$touchObj,n=e.type.indexOf("touch")>=0,i=e.type.indexOf("mouse")>=0;n&&(t.lastTouchEndTime=e.timeStamp);var r=n&&!t.touchHoldTimer;if(h(t),t.touchStarted=!1,p(this),!(i&&t.lastTouchEndTime&&e.timeStamp-t.lastTouchEndTime<350))if(c(e,this,"release"),t.touchMoved){if(t.hasSwipe&&!t.swipeOutBounded){var a,s=t.options.swipeTolerance,o=Math.abs(t.startY-t.currentY),l=Math.abs(t.startX-t.currentX);(o>s||l>s)&&(u(this,"swipe."+(a=o>l?t.startY>t.currentY?"top":"bottom":t.startX>t.currentX?"left":"right"))?c(e,this,"swipe."+a,a):c(e,this,"swipe",a))}}else if(u(this,"longtap")&&e.timeStamp-t.touchStartTime>t.options.longTapTimeInterval)e.cancelable&&e.preventDefault(),c(e,this,"longtap");else{if(u(this,"hold")&&r)return void(e.cancelable&&e.preventDefault());c(e,this,"tap")}}function o(){d(this)}function l(){p(this)}function u(e,t){var n=e.$$touchObj.callbacks[t];return null!=n&&n.length>0}function c(e,t,n,i){var r=t.$$touchObj.callbacks[n];if(null==r||0===r.length)return null;for(var a=0;a<r.length;a++){var s=r[a];s.modifiers.stop&&e.stopPropagation(),s.modifiers.prevent&&e.preventDefault(),s.modifiers.self&&e.target!==e.currentTarget||"function"==typeof s.value&&(i?s.value(i,e):s.value(e))}}function d(e){var t=e.$$touchObj.options.touchClass;t&&e.classList.add(t)}function p(e){var t=e.$$touchObj.options.touchClass;t&&e.classList.remove(t)}function h(e){e&&e.touchHoldTimer&&(clearTimeout(e.touchHoldTimer),e.touchHoldTimer=null)}function f(e,t){var i=e.$$touchObj||{callbacks:{},hasBindTouchEvents:!1,options:n};return t&&(i.options=Object.assign({},i.options,t)),e.$$touchObj=i,e.$$touchObj}H(i,"touchStartEvent"),H(r,"touchMoveEvent"),H(a,"touchCancelEvent"),H(s,"touchEndEvent"),H(o,"mouseEnterEvent"),H(l,"mouseLeaveEvent"),H(u,"hasEvent"),H(c,"triggerEvent"),H(d,"addTouchClass"),H(p,"removeTouchClass"),H(h,"cancelTouchHoldTimer"),H(f,"buildTouchObj"),e.directive("touch",{beforeMount:H((function(e,t){var n=f(e),u=!!jee&&{passive:!0},c=t.arg||"tap";switch(c){case"swipe":var d=t.modifiers;if(d.left||d.right||d.top||d.bottom){for(var p in t.modifiers)if(["left","right","top","bottom"].indexOf(p)>=0){var h="swipe."+p;
100n.callbacks[h]=n.callbacks[h]||[],n.callbacks[h].push(t)}}else n.callbacks.swipe=n.callbacks.swipe||[],n.callbacks.swipe.push(t);break;case"press":case"drag":t.modifiers.disablePassive&&(u=!1);default:n.callbacks[c]=n.callbacks[c]||[],n.callbacks[c].push(t)}n.hasBindTouchEvents||(e.addEventListener("touchstart",i,u),e.addEventListener("touchmove",r,u),e.addEventListener("touchcancel",a),e.addEventListener("touchend",s),n.options.disableClick||(e.addEventListener("mousedown",i),e.addEventListener("mousemove",r),e.addEventListener("mouseup",s),e.addEventListener("mouseenter",o),e.addEventListener("mouseleave",l)),n.hasBindTouchEvents=!0)}),"beforeMount"),unmounted:H((function(e){h(e.$$touchObj),e.removeEventListener("touchstart",i),e.removeEventListener("touchmove",r),e.removeEventListener("touchcancel",a),e.removeEventListener("touchend",s),e.$$touchObj&&!e.$$touchObj.options.disableClick&&(e.removeEventListener("mousedown",i),e.removeEventListener("mousemove",r),e.removeEventListener("mouseup",s),e.removeEventListener("mouseenter",o),e.removeEventListener("mouseleave",l)),delete e.$$touchObj}),"unmounted")}),e.directive("touch-class",{beforeMount:H((function(e,t){f(e,{touchClass:t.value})}),"beforeMount")}),e.directive("touch-options",{beforeMount:H((function(e,t){f(e,t.value)}),"beforeMount")})}),"install")};const Vee={en:{"a-aria-live-loading":{loading:"Loading...",loaded:"Loaded"},"a-copy-button":{copy_button_generic_title:"Copy to clipboard",copy_button_title:"Copy {field} to clipboard"},"a-guiautocomplete":{input_aria_label:"Search",listbox_aria_label:"Searches",loading:"Searching...",no_result:"No result",placeholder:"Enter keyword"},"a-facet-item":{formatted_value:"({count})"},"a-icon":{Academia:"Academia",Accessibility:"Accessibility",AlternateViews:"Alternate Views",ApplePodcasts:"Apple Podcasts",ArrowBoxed:"Right Arrow",ArrowDown:"Down Down",ArrowUp:"Up Arrow",ArrowLeft:"Left Arrow",ArrowRight:"Right Arrow",ArrowTop:"Top Arrow",Bag:"Bag",Caret:"Caret",Center:"Getty Center",Check:"Check",Chevron:"Chevron",CircleCheck:"Check",Citation:"Citation",Cleaning:"Cleaning",Clipboard:"Clipboard",Clock:"Clock",Close:"Close",Close600:"Close",CloseBold:"Close",ClosedCaptions:"Closed Captions",CollectionsBookmark:"Bookmark",Comment:"Comment",ContactTracing:"Contact Tracing",ContractLeft:"Contract Left",Copyright:"Copyright",CopyrightNone:"No Copyright",CopyrightOther:"Other Copyright",Delete:"Delete",DigitizedItems:"Digitized Items",Dining:"Dining",Dots:"Dots",Download:"Download",ExpandLess:"Expand Less",ExpandMore:"Expand More",ExpandRight:"Expand Right",Eye:"Eye",Facebook:"Facebook",FaceMask:"Face Mask",FastForward:"Fast Forward",Filters:"Filters",Folder:"Folder",FullScreen:"Full Screen",FullScreenExit:"Exit Full Screen",FullScreenVideo:"Full Screen Video",FullScreenVideoExit:"Exit Full Screen Video",Github:"Github",GooglePodcasts:"Google Podcasts",Grid:"Grid",Hamburger:"Hamburger",HandWashing:"Hand Washing",Heart:"Heart",IIIF:"IIIF",ImageAvailable:"Image Available",ImageContainer:"Image Container",ImageUnavailable:"Image Unavailable",Info:"Info",Instagram:"Instagram",Institution:"Institution",Mail:"Mail",MapFold:"Map",MediaAudio:"Audio",MediaVideo:"Video",Mute:"Mute",Outbound:"Outbound Link",Paperclip:"Paper Clip",Parking:"Parking",Pause:"Pause",Pause500:"Pause",PDF:"PDF",PersonOutline:"Person",Pin:"Pin",PinLarge:"Pin",PlaceBearing:"Place Bearing",Placemarker:"Placemarker",Play:"Play",Plus:"Plus",Quote:"Quote",Rewind:"Rewind",Rotate:"Rotate",RSS:"RSS",RSSBold:"RSS",Search:"Search",Shop:"Shop",SocialDistance:"Social Distance",Speedometer:"Speedometer",Spotify:"Spotify",Stitcher:"Stitcher",Temperature:"Temperature",Ticket:"Ticket",ToggleOff:"Toggle Off",ToggleOn:"Toggle On",Twitter:"Twitter",Villa:"Getty Villa",Volume:"Volume",Weblink:"Web Link",Youtube:"Youtube",ZoomIn:"Zoom In",ZoomOut:"Zoom Out"},"a-logo":{default:"Getty logo",full:"Getty logo: Conservation, Research, Foundation, Museum."},"a-open-now-status":{closed:"Closed now",closure:"Closed temporarily",open:"Open today"},"a-rad-pagination":{next:"Next",prev:"Previous"},"a-resource-unavailable":{actor:{alt_text:"Person outline icon",caption:"No image available"},image:{alt_text:"Image graphic with strikethrough",caption:"Image not available"}},"a-scroll-top-btn":{label:"Back to Top"},"m-audio-player":{ariaComponentLabel:"Audio Player {subtitle}",ariaFastForward:"Fast-forward",ariaDownloadLabel:"Download episode: {subtitle}",ariaJumpToTranscript:"Jump to transcript",ariaPlaybackSpeed:"Playback Speed: {playbackRate}X",ariaPlaybackRateOptions:"Playback Rate Options",ariaProgressBarLabel:"Progress Bar",ariaRewindLabel:"Rewind",downloadLabel:"Download",fastForwardLabel:"Fast-forward",jumpToTranscriptLabel:"Jump to transcript",muteStatusLabelMute:"Mute",muteStatusLabelUnMute:"Unmute",normalRateLabel:"Normal",playbackSpeedLabel:"Playback Speed:",playStatusLabelPause:"Pause",playStatusLabelPlay:"Play",rewindLabel:"Rewind",volumeLabel:"Volume"},"m-video-player":{ariaCaptionsList:"Captions",ariaDownloadList:"Download Links",ariaComponentLabel:"Video Player{title}",ariaDownloadLabel:"Download{title}",ariaProgressBarLabel:"Progress Bar",ariaQualityListLabel:"Playback Quality",ariaRewindLabel:"Rewind",audioLanguageLabel:"Audio language",bufferingLabel:"Video buffering",downloadLabel:"Download",durationLabel:"Duration",fastForwardLabel:"Fast-forward",fullscreenLabelOn:"Enter fullscreen",fullscreenLabelOff:"Exit fullscreen",hours:" 0 hours | {count} hour | {count} hours",jumpToTranscriptLabel:"Jump to transcript",muteStatusLabelMute:"Mute",muteStatusLabelUnmute:"Unmute",minutes:" 0 minutes | {count} minute | {count} minutes",playStatusLabelPause:"Pause",playStatusLabelPlay:"Play",qualityLabel:"Quality",qualityAutoLabel:"Auto",rewindLabel:"Rewind",seconds:" 0 seconds | {count} second | {count} seconds",transcriptLabel:"Transcript"},"m-chart":{bce_date:"{date} BCE"},"m-facet-group":{formatted_value:" ({count})",toggle_more:"show more »",toggle_less:"« show less"},"m-filters":{accordionHeading:"Filter and Sort",clearFiltersSingular:"Clear filter",clearFiltersPlural:"Clear filters",currentHeading:"Current filters",filters:"filter | filters",itemsShown:"{itemCount} of {total} {itemName}",itemsShownNoTotal:"{itemCount} {itemName}",itemsShownAria:"Showing {itemCount} {itemName}"},"m-image-and-caption":{Group:"Group",Person:"Person"},"m-image-responsive-with-error":{sensitive_content:"Sensitive Content"},"m-sort-bar":{itemsPerPage:"{label} per page:",sortingLabel:"Sort by:"},"m-follow-callout":{follow:"Follow on",platforms:"these platforms"},"m-oxford-comma-list":{join:", ",multipleItemFinalJoin:", and ",twoItemJoin:" and "},"m-record-metadata-field":{label_suffix:": ",field_name:"Field Name | Field Names"},"m-advanced-search-box":{"aria-search-button-label":"Submit Search"},"m-rad-search-box":{clear_button_phrase:"Clear All",placeholder:"Search",clear_aria_label:"Clear All",search_input_aria_label:"Search"},"m-search-chips":{"clear-all":"Clear Search"},"m-facet-explorer":{filter_results:"Filter your {count} results",dateBrowser:{apply_dates:"Apply Dates",apply_dates_aria:"Apply Dates",dates_min:"From",dates_max:"To",validation_max_value:"Date is too late",validation_min_value:"Date is too early",validation_number:"Must be a number",validation_required:"Field is required"},itemBrowser:{clear_button_phrase:"Clear",search_button_phrase:"Filter by",placeholder:"Filter by",clear_aria_label:"Clear",search_aria_label:"Search",apply_filters:"Apply Filters",aria_apply:"Apply Filters",toggle:{"aria-close":"Close","aria-open":"Open"}}},"m-file-upload":{"aria-button":"Select files to upload","aria-input":"File upload input",label:"Cho
100ose a fileâ¦"},"m-grid-of-items":{total_label:"{count} object | {count} objects"},"m-hierarchical-list-of-links":{"aria-jump-to":"Jump to {text}","aria-title":"List of links"},"m-post":{external_link:"(opens in new tab)"},"m-project-details":{listA11yLabel:"Project Details",valuesJoin:","},"m-related-search-results-grid":{browse_all:"Browse all",browse_all_cta:"Browse all {searchLabel}",load_more_with_total:"Load More Artwork | Load {total} More Artwork | Load {total} More Artworks",total_label:"{count} item | {count} items"},"m-suggested-searches":{no_results_heading:"There are no results for {search}.",no_results_heading_no_query_terms:"There are no results for your search.",blank_search_heading:"Explore the Gettyâs Special Collections and Institutional Archives by using the search bar and filters above.",subheading:"Not sure where to begin? Start by browsing the suggested categories below or access our full collection list [here](collections).",institutional_archives:"Institutional Archives",institutional_archives_alt:"Getty Center Architecture at Sunset",special_collections:"Special Collections",special_collections_alt:"Puerto Nutrias, 1948, Alfredo Boulton. Gelatin silver print.",artist_archives:"Artist Archives",photography_collections_and_archives:"Photography Collections and Archives",architecture_and_design_archives:"Architecture and Design Archives",critic_curator_scholar_archives:"Critic, Curator, Scholar Archives",dealer_archives:"Dealer Archives",on_view:"On View",outdoor_sculpture:"Outdoor Sculpture",getty_owned:"Owned by J. Paul Getty",clocks:"Clocks",lions:"Lions",portraits:"Portraits"},"m-technical-data":{id_relationships_label:"Related IDs",id_relationships_link:"Internal Identifier Relationships",id_relationships_text:"The ID management system records relationships between identifiers across Getty's systems and resources",iiif_label:"IIIF",iiif_text:"The International Image Interoperability Framework, or IIIF, is an open standard for delivering high-quality, attributed digital objects online at scale. Visit [iiif.io](https://iiif.io) to learn more.",manifest_url_label:"Manifest URL",mirador_link:"Open in comparison viewer",aria_iiif:"Draggable link for IIIF manifest",indexed_id_label:"API URL",indexed_id_text:"The entity identifier in the [Museum Collection API](https://data.getty.edu/museum/collection/docs/)",sparql_api_link:"Open in Query Builder",sparql_api_label:"SPARQL API",sparql_api_text:"The SPARQL API provides an endpoint and interface for constructing graph queries of the Museum Collection Linked Open Data",technical_data_heading:"APIs & other identifiers",technical_data_subheading:"The reference information listed below is intended for those who work with the Getty's data.",tms_id_text:"The identifier in the Museumâs internal collection management system",dor_id_text:"The identifier in the Museumâs legacy internal digital object repository",permalink:"Permalink",permalink_text:"The permanent url for this page in Gettyâs [Collection Online/Research Collections Viewer]",last_updated:"Last updated:",last_updated_text:"*This date refers to the last time the primary JSON-LD document that contains information on this record has changed.*"},"o-hero--project":{childSubtitle:"A {type} of",initiativeLabel:"initiative",initiativeSubtitle:"Multi-Project Initiative",projectLabel:"project",subpageLabel:"component"},"m-filter-bar":{label:"Show only:",description:"List of additional search filters",filters:{on_view:"On View",images:"Has Images",open_content:"Open Content",is_standalone:"Exclude Object Parts",deaccessioned:"Include Deaccessioned"}},"o-facet-explorer":{view_results:"View {count} results",description_aria:"List of Search Filters",results:"results | result | results",prefix:"Filter your",overlay_header:"Filters ({count})",filters_button:"Filters",a11y_heading:"Mobile Search Menu",loading_message:"Loading {field} . . .",loaded_message:"{field} Loaded",toggle:{add_count:"{tab} ({count})","aria-close":"Close Tab: {tab}","aria-open":"Open Tab: {tab}","aria-disabled":"Disabled Tab: {tab} (cannot filter current results any further)",artist:"Artists",materials:"Medium",date_created:"Date Created",date_issued:"Date Issued"},datePanel:{year:"Date",decade:"Decade",apply_dates:"Apply Dates",apply_dates_aria:"Apply Dates",reset_dates:"Reset",reset_dates_aria:"Reset",dates_min:"From",dates_max:"To",date_range:"Include objects without dates",xAxisLabel:"{date} Created",yAxisLabel:"Number of Items",chart_title:"Line chart {description}. Link to extended description below.",table_caption:"Table {description}.",description:"showing the number of items in search results from year {min} to {max} grouped by date created",bce_date:"{date} BCE",validation_max_value:"Date is too late",validation_min_value:"Date is too early",validation_number:"Must be a number",validation_required:"Field is required"},textPanel:{clear_button_phrase:"Clear",placeholder:"Filter by",clear_aria_label:"Clear",search_aria_label:"Search",search_box_label:{artist:"Type to filter artist results",materials:"Type to filter medium results"},search_button_aria_label:"Submit Search",search_input_aria_label:{search:"Search Filter",part_of_collection:{primary_name:"Collections Filter"}},apply_filters:"Apply Filters",aria_apply:"Apply Filters",facet_more_text:"There are no {fieldName} entries that match your query | There are more {fieldName} entries than we can display, enter or refine a filter to see more | There are more {fieldName} entries than we can display, enter or refine a filter to see more",search_button_phrase_materials:"Search For Mediums",search_button_phrase_artist:"Search For Artists",items_shown_aria:"Showing {itemsCount} {itemName}"}},"o-resource-entity":{media_file_info:"Media File Info",pdf_download:"Download",pdf_preview:"Preview"},"o-search-results-list":{title:"Search Results",item_name:"results"},"m-filter-card":{contains_digital_material:"Contains digital material"},"m-media-controls":{audio_language_dropdown:"Audio language: {lang}",captions_dropdown:"Captions: {status}",controls_label:"More controls",playback_speed_dropdown:"Playback Speed: {rate}Ã",playback_speed_option:"{rate}Ã",playback_speed_option_1x:"{rate}à (Normal)",transcript_dropdown:"Interactive Transcript: {status}",off:"Off",on:"On",on_with_description:"On (with audio description)",de:"German",en:"English",es:"Spanish",fr:"French",it:"Italian",ja:"Japanese",ko:"Korean",la:"Latin",pt:"Portuguese",ru:"Russian",tl:"Tagalog",ty:"Tahitian",zh:"Chinese"},"o-scroll-feature-indicator":{goto_index:"Go to slide {index} of {numberOfItems} slides",current_index:"{index} of {numberOfItems} slides"},"m-related-search-results-carousel":{browse_all:"Browse all",browse_all_cta:"Browse all {total} items",browse_all_cta_aria_label:"Browse all",total_label:"{count} item | {count} items",objects_browse_all_cta:"Browse all {total} objects",objects_total_label:"{count} objects | {count} objects",previous_button_aria_label:"Previous slide",next_button_aria_label:"Next slide"}}},qee=Object.freeze(Object.defineProperty({__proto__:null,datetimeFormats:{en:{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}}},messages:Vee,numberFormats:{en:{},es:{}}},Symbol.toStringTag,{value:"Module"})),zee=H((({baseLocaleKey:e=null,strings:t={},dates:n={},numbers:i={}}={})=>{const{t:r,d:a,n:s,te:o}=bm();function l(t){let n;return null!=e&&(n=e),null==n&&(n=""),n.length>0&&(n+="."),n+=t,n}function u(e,t="short"){return a(e,t)}function c(e){return s(e)}function d(e,t){if(null==e)return;const n=l(e);return o(n)?r(n,t):e}H(l,"h"),H(u,"p"),H(c,"v"),H(d,"k");const p={};for(const[h,f]of Object.entries(t))p[h]=d(f);for(const[h,f]of Object.entries(n))p[h]=u(f);for(const[h,f]of Object.entries(i))p[h]=c(f);return{translate:H((function(e){return o(e)?r(e):e}),"translate"),translateCount:H((function(e,t,n){const i=l(e);return o(i)?r(i,t,{named:n}):e}),"translateCount"),translatePart:d,translatePartWithSubkey:H((function(e,t,n){const i=l(e+"."+t);return o(i)?r(i,n):t}),"translatePartWithSubkey"),localizeDate:u,localizeNumber:c,localized:p}}),"X$1"),Wee=H(((e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n}
100),"f"),Gee={name:"AriaLiveLoading",props:{baseLocaleKey:{type:String,default:"a-aria-live-loading"},isLoading:{type:Boolean,required:!0},ariaLoading:{type:String,default:void 0},ariaLoaded:{type:String,default:void 0},ariaStatus:{type:String,default:void 0}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data(){var e,t;return{ariaUpdate:"",loadingMessage:null!=(e=this.ariaLoading)?e:this.translatePart("loading"),loadedMessage:null!=(t=this.ariaLoaded)?t:this.translatePart("loaded"),ariaLiveId:"aria-live-"+br()}},watch:{isLoading(e){e?(console.log("ariaStatus: ",this.ariaStatus),this.setAriaUpdate(this.ariaStatus?this.ariaStatus:this.loadingMessage)):this.setAriaUpdate(this.ariaStatus?this.ariaStatus:this.loadedMessage)}},mounted(){requestAnimationFrame((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{this.setAriaUpdate(this.ariaLoading)}))}))}))},methods:{setAriaUpdate(e){this.$nextTick((()=>{this.ariaUpdate="",this.$nextTick((()=>{this.ariaUpdate=e}))}))}}},Kee=["id"],Yee=Wee(Gee,[["render",function(e,t,n,i,r,a){return As(),Ps("p",{id:r.ariaLiveId,class:"visually-hidden","aria-live":"polite"},ze(r.ariaUpdate),9,Kee)}]]),Zee=["button","reset","submit"],Xee={name:"GuiButton",props:{isDisabled:{type:Boolean,default:!1},name:{type:String,required:!0},value:{type:[String,Number],default:void 0},type:{type:String,default:"button",validator:H((e=>Zee.includes(e)),"validator")},tabIndex:{type:Number,default:void 0},modifiers:{type:Array,default:H((()=>["text"]),"default")}},computed:{classes(){const e=["a-btn"];return this.modifiers&&this.modifiers.forEach((t=>{e.push(`a-btn--${t}`)})),"submit"===this.type&&e.push("a-btn--submit"),e}}},Qee=["disabled","type","name","value","tabindex"],Jee=Wee(Xee,[["render",function(e,t,n,i,r,a){return As(),Ps("button",Zs(e.$attrs,{ref:"button",class:a.classes,disabled:n.isDisabled,type:n.type,name:n.name,value:n.value,tabindex:n.tabIndex}),[na(e.$slots,"default",{},(()=>[qs(ze(n.value),1)]))],16,Qee)}]]),ete=H((function(e,t=250,n=!1){let i=null;return function(){const r=this,a=arguments,s=n&&!i;clearTimeout(i),i=setTimeout((function(){i=null,n||e.apply(r,a)}),t),s&&e.apply(r,a)}}),"ce"),tte=H((()=>{const e=Oi("analyticsListener",null);return{handleAnalytics:H((function(t,n,i){e&&e instanceof Function&&e(t,n,i)}),"handleAnalytics")}}),"lo$1"),nte={inject:{applicationBaseUrl:{default:"/"},componentBaseUrl:{default:null}},computed:{baseUrl(){return this.componentBaseUrl?this.componentBaseUrl:this.applicationBaseUrl},computedHref(){return this.href||this.url}},methods:{isLinkFragment(e=this.computedHref){return e&&"#"===e.charAt(0)&&e.length>1},withBaseUrl(e=this.computedHref){if(this.isLinkFragment(e))return e;let t=H((()=>{try{return new URL(e)}catch(t){return!1}}),"i");return"/"===this.baseUrl||t()?e:(t=new URL(e,this.baseUrl),t.href)}}};function ite(){return window.matchMedia("(prefers-reduced-motion)").matches}function rte({top:e,behavior:t="smooth"}){typeof window<"u"&&(window.scrollTo({top:e,behavior:ite()?"auto":t}),setTimeout((()=>{window&&window.scrollY!=e&&window.scrollTo({top:e,behavior:ite()?"auto":t})}),100))}H(ite,"Nl"),H(rte,"mi$1");const ate={mounted(){},methods:{scrollToHash(e,t=110,n,i="smooth"){if(e){let a;try{a=document.querySelector(e)}catch(r){return}if(a){const e=document.documentElement.scrollTop+a.getBoundingClientRect().top-t,r=e.toFixed(),s=H((function(){window.pageYOffset.toFixed()===r&&(window.removeEventListener("scroll",s),n())}),"u");n&&window.addEventListener("scroll",s),rte({top:e,behavior:i})}}}}},ste=H((function(e){e&&(e.focus(),e!==document.activeElement&&(e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")))}),"cd");function ote(e){const t=Object.freeze(["aria-[a-z]+","class","data-[a-z]+","download","filename","href","hreflang","id","referrerpolicy","rel","role","style","tabindex","target","title","type"]),n=Object.entries(e).filter((([e,n])=>{return i=e,t.find((e=>i.match(e)))&&!!n;var i}));return Object.fromEntries(n)}H(ote,"so$1");const lte=["href"],ute=Wee({name:"AnchorLink",mixins:[nte,ate],inheritAttrs:!1,props:{classNames:{type:Array,required:!0},href:{type:String,default:void 0},url:{type:String,default:void 0}},data:H((()=>({anchorClicked:null}
100)),"data"),mounted(){this.isLinkFragment()&&(this.debouncedResize=ete(this.scrollEnd),window.addEventListener("scroll",this.debouncedResize))},setup(e,{attrs:t}){const n=ote(t);return B(F({},tte()),{anchorLinkAttrs:n})},methods:{handleClick(e){this.handleAnalytics(e,this.computedHref),this.isLinkFragment()&&(this.anchorClicked=document.querySelector(this.computedHref),this.anchorClicked&&(this.scrollToHash(this.computedHref),window.history.pushState(null,null,this.computedHref)),e.preventDefault())},scrollEnd(){this.anchorClicked&&(ste(this.anchorClicked),this.anchorClicked=null)}}},[["render",function(e,t,n,i,r,a){return As(),Ps("a",Zs(i.anchorLinkAttrs,{class:n.classNames,href:e.withBaseUrl(),onClick:t[0]||(t[0]=(...e)=>a.handleClick&&a.handleClick(...e))}),[na(e.$slots,"default")],16,lte)}]]),cte={name:"RouteLink",inheritAttrs:!1,props:B(F({},Dd.props),{activeClass:{type:String,default:"router-link-active"},classNames:{type:Array,required:!0}}),setup(e,{attrs:t}){const n=ote(t);return B(F({},tte()),{anchorLinkAttrs:n})},methods:{handleClick(e,t){this.handleAnalytics(e,void 0,this.to),t instanceof Function&&t(e)}},computed:{filteredProps(){const e=Object.entries(this.$props).filter((([e])=>Dd.props.hasOwnProperty(e)));return Object.fromEntries(e)}}},dte=["href","onClick","onKeyup"],pte=Wee(cte,[["render",function(e,t,n,i,r,a){const s=Yr("router-link");return As(),Os(s,Zs(a.filteredProps,{custom:"",ref:"router-link"}),{default:Ii((({href:t,isActive:r,navigate:s})=>[Bs("a",Zs(i.anchorLinkAttrs,{class:[...n.classNames,r&&n.activeClass],href:t,onClick:H((e=>a.handleClick(e,s)),"onClick"),onKeyup:Zl((e=>a.handleClick(e,s)),["enter"])}),[na(e.$slots,"default")],16,dte)])),_:3},16)}]]),hte=Wee({name:"Academia",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M14.0606 13.3031L9.28787 1.33337H5.87878L6.48484 2.84853L2.39394 13.3031C2.24242 13.8334 1.78787 13.9091 1.33333 13.9849V14.6667H5.27273V13.9849C4.21213 13.9091 3.60606 13.7576 4.0606 12.6213C4.13636 12.5455 4.43939 11.7122 4.81818 10.6516H9.66666L10.3485 12.394C10.4242 12.697 10.5 12.9243 10.5 13.1516C10.5 13.7576 9.96969 13.9849 8.98483 13.9849V14.6667H15.197V13.9849C14.6667 13.9091 14.2121 13.7576 14.0606 13.3031ZM5.27273 9.36369C6.0303 7.46975 6.86364 5.27278 7.16667 4.43944L9.13637 9.36369H5.27273Z",fill:"currentColor"},null,-1)]))}]]),fte=Wee({name:"Accessibility",data:H((()=>({width:72,height:72})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M48 50C48 58.8366 40.8366 66 32 66C23.1634 66 16 58.8366 16 50C16 41.1634 23.1634 34 32 34V32C22.0589 32 14 40.0589 14 50C14 59.9411 22.0589 68 32 68C41.9411 68 50 59.9411 50 50H48Z",fill:"currentColor"},null,-1),Bs("circle",{cx:"49",cy:"13",r:"6",stroke:"currentColor","stroke-width":"2"},null,-1),Bs("path",{d:"M30 28.5L25.5 22L43.5 22L35 43H57L53 60H59.5",stroke:"currentColor","stroke-width":"2","stroke-linejoin":"bevel"},null,-1)]))}]]),mte=Wee({name:"AlternateViews16",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M5 11V14H14V5H11V2H2V11H5ZM3 10V3H10V10H3ZM6 11H11V6H13V13H6V11H6Z",fill:"currentColor"},null,-1)]))}]]),gte=Wee({name:"AlternateViews16",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M7.5 16.5V21H21V7.5H16.5V3H3V16.5H7.5ZM4.5 15V4.5H15V15H4.5ZM9 16.5H16.5V9H19.5V19.5H9V16.5Z",fill:"currentColor"},null,-1)]))}]]),yte={props:{size:{type:[String,Number],required:!1}},computed:{currentIconSize(){return"100%"===this.size?this.iconSizes[this.iconSizes.length-1]:this.iconSizes.length>1&&this.size>=this.iconSizes[1].height?this.iconSizes.filter((e=>e.height<=this.size)).slice(-1)[0]:this.iconSizes[0]},width(){return this.currentIconSize.width},height(){return this.currentIconSize.height},iconPathName(){return this.currentIconSize.name},iconSubcomponents(){const e=Object.values(this.$options.components);return e.length<2?(console.warn("Please import at least one icon variant"),null):e.filter((e=>"function"!=typeof e))},iconSizes(){return this.iconSubcomponents.reduce(((e,t)=>{const n=t.data&&t.data();if(n){const{name:i}=t,{width:r,height:a}=n;e.push({name:i,width:r,height:a})}return e}),[]).sort(((e,t)=>e.height-t.height))}}},vte=Wee({name:"AlternateViews",components:{AlternateViews16:mte,AlternateViews24:gte},mixins:[yte]},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(e.iconPathName))}]]),bte=Wee({name:"AmazonMusic",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("g",{"clip-path":"url(#clip0_3419_1091)"},[Bs("path",{d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z",fill:"currentColor"}),Bs("path",{d:"M4.71313 7.76937C4.93953 7.76937 5.10656 7.89578 5.19344 8.1125H5.21172C5.34672 7.88203 5.51125 7.76937 5.71938 7.76937C6.0625 7.76937 6.27063 8.0575 6.27063 8.52188V9.65281C6.27063 9.68719 6.24547 9.71234 6.21109 9.71234H5.84516C5.81078 9.71234 5.78562 9.68719 5.78562 9.65281V8.55844C5.78562 8.33656 5.69875 8.21313 5.53641 8.21313C5.35797 8.21313 5.26422 8.35719 5.26422 8.6225V9.65281C5.26422 9.68719 5.23906 9.71234 5.20469 9.71234H4.83875C4.80437 9.71234 4.77922 9.68719 4.77922 9.65281V8.55844C4.77922 8.33656 4.69234 8.21313 4.53 8.21313C4.35156 8.21313 4.25781 8.35719 4.25781 8.6225V9.65281C4.25781 9.68719 4.23266 9.71234 4.19828 9.71234H3.83234C3.79797 9.71234 3.77281 9.68719 3.77281 9.65281V7.87C3.77281 7.83562 3.79797 7.81047 3.83234 7.81047H4.13422C4.16859 7.81047 4.19078 7.83328 4.19828 7.87L4.24406 8.09406H4.26234C4.34469 7.88594 4.5025 7.76937 4.71297 7.76937H4.71313Z",fill:"white"}),Bs("path",{d:"M8.04734 7.87V9.65281C8.04734 9.68719 8.02219 9.71234 7.98781 9.71234H7.68594C7.64937 9.71234 7.62984 9.68953 7.62187 9.65281L7.57609 9.42875H7.55781C7.47547 9.64141 7.31531 9.75344 7.10047 9.75344C6.75734 9.75344 6.54703 9.47219 6.54703 9.0125V7.87016C6.54703 7.83578 6.57219 7.81063 6.60656 7.81063H6.9725C7.00688 7.81063 7.03203 7.83578 7.03203 7.87016V8.97594C7.03203 9.19328 7.11891 9.31219 7.28359 9.31219C7.46656 9.31219 7.56266 9.175 7.56266 8.91187V7.87016C7.56266 7.83578 7.58781 7.81063 7.62219 7.81063H7.98812C8.0225 7.81063 8.04766 7.83578 8.04766 7.87016L8.04734 7.87Z",fill:"white"}),Bs("path",{d:"M9.24109 8.34922C9.21828 8.22344 9.12219 8.15031 8.99187 8.15031C8.86156 8.15031 8.77453 8.21891 8.77453 8.31953C8.77453 8.41328 8.84312 8.47391 8.985 8.50937L9.25266 8.57578C9.58422 8.65812 9.72609 8.84797 9.72609 9.13156C9.72609 9.49062 9.41969 9.75359 9.01031 9.75359C8.6375 9.75359 8.32641 9.55922 8.27156 9.14531C8.26703 9.10875 8.28531 9.08359 8.32187 9.07672L8.6375 9.01719C8.67859 9.00922 8.70156 9.02641 8.71062 9.07672C8.74265 9.27687 8.8525 9.37297 9.01016 9.37297C9.15422 9.37297 9.25484 9.2975 9.25484 9.17516C9.25484 9.05281 9.18391 8.99156 9.03531 8.95562L8.83641 8.90766C8.43391 8.81047 8.30344 8.61484 8.30344 8.34953C8.30344 7.97781 8.60984 7.76969 8.99187 7.76969C9.37391 7.76969 9.61625 7.97328 9.68484 8.26719C9.69406 8.30828 9.68031 8.33344 9.63906 8.34031L9.30969 8.39516C9.27312 8.40141 9.24562 8.38594 9.24109 8.34937V8.34922Z",fill:"white"}),Bs("path",{d:"M10.1923 7.09359C10.3478 7.09359 10.4759 7.19875 10.4759 7.37719C10.4759 7.55563 10.3478 7.66078 10.1923 7.66078C10.0369 7.66078 9.90875 7.55094 9.90875 7.37719C9.90875 7.20344 10.0369 7.09359 10.1923 7.09359ZM9.94984 9.65281V7.87C9.94984 7.83562 9.975 7.81047 10.0094 7.81047H10.3753C10.4097 7.81047 10.4348 7.83562 10.4348 7.87V9.65281C10.4348 9.68719 10.4097 9.71234 10.3753 9.71234H10.0094C9.975 9.71234 9.94984 9.68719 9.94984 9.65281Z",fill:"white"}),Bs("path",{d:"M12.2255 9.11531C12.1431 9.52703 11.8412 9.75344 11.4891 9.75344C11.018 9.75344 10.6658 9.32578 10.6658 8.76078C10.6658 8.19578 11.018 7.76937 11.4891 7.76937C11.8412 7.76937 12.1431 7.99578 12.2255 8.4075C12.2323 8.44641 12.2141 8.47156 12.1775 8.47844L11.8459 8.53797C11.8094 8.54484 11.7864 8.52875 11.7773 8.49C11.727 8.25906 11.6264 8.15609 11.4892 8.15609C11.2788 8.15609 11.1691 8.37109 11.1691 8.76109C11.1691 9.15109 11.2789 9.36719 11.4892 9.36719C11.6264 9.36719 11.727 9.26422 11.7773 9.03328C11.7866 8.99438 11.8094 8.97844 11.8459 8.98531L12.1775 9.04484C12.2141 9.05172 12.2323 9.07687 12.2255 9.11578V9.11531Z",fill:"white"}),Bs("path",{d:"M9.95984 10.6681C9.98281 10.7206 10.0491 10.7206 10.1519 10.7002C10.4262 10.6408 10.7738 10.6361 10.8333 10.7184C10.8905 10.803 10.7647 11.1273 10.6161 11.365C10.5612 11.4564 10.5383 11.5134 10.5841 11.5569C10.5955 11.5706 10.6116 11.5752 10.6298 11.5775C10.6847 11.5775 10.7556 11.5227 10.8219 11.4609C10.9659 11.3353 11.078 11.1753 11.1397 10.9948C11.2014 10.8212 11.2311 10.5767 11.1672 10.4831C11.1055 10.3941 10.8653 10.3347 10.6802 10.3369C10.4858 10.3369 10.2983 10.3848 10.1291 10.4739C10.0239 10.5311 9.92797 10.595 9.95984 10.6681Z",fill:"white"}),Bs("path",{d:"M4.88594 10.5722C4.90172 10.6203 4.93859 10.6795 4.99344 10.7481C5.69547 11.6141 6.825 11.9933 7.91578 11.9933C8.86938 11.9933 9.79078 11.7055 10.3763 11.1983
100C10.4769 11.1092 10.5294 11.0383 10.5294 10.9836C10.5294 10.9608 10.5202 10.9425 10.5042 10.9242C10.4539 10.8717 10.3784 10.9105 10.287 10.9584C9.74281 11.2441 8.90594 11.4405 8.01641 11.4405C7.01266 11.4405 5.93781 11.1914 5.12391 10.5358C5.04625 10.4741 4.96156 10.4123 4.90438 10.4581C4.88375 10.4741 4.86516 10.5084 4.88609 10.5723L4.88594 10.5722Z",fill:"white"}),Bs("path",{d:"M3.00094 6.77203C2.67391 6.77203 2.45438 6.54109 2.45438 6.20031C2.45438 5.78984 2.77688 5.52672 3.28922 5.52672C3.36234 5.52672 3.42641 5.53078 3.47906 5.54219V5.49469C3.47906 5.26141 3.39328 5.14937 3.21953 5.14937C3.08234 5.14937 2.99203 5.22547 2.95078 5.37125C2.93938 5.41297 2.91641 5.43297 2.87766 5.42609L2.55969 5.37125C2.52078 5.36438 2.50016 5.33234 2.51172 5.28891C2.59641 4.96703 2.86172 4.78797 3.25266 4.78797C3.71688 4.78797 3.96391 5.04406 3.96391 5.52156V6.67141C3.96391 6.70578 3.93875 6.73094 3.90438 6.73094H3.6025C3.56703 6.73094 3.54641 6.70813 3.53844 6.67141L3.49266 6.45641H3.47438C3.39203 6.65484 3.22734 6.77203 3.00094 6.77203ZM3.18625 6.41062C3.37609 6.41062 3.47906 6.23688 3.47906 5.91891V5.79828C3.44016 5.79141 3.39906 5.78687 3.35781 5.78687C3.10859 5.78687 2.95297 5.92578 2.95297 6.14531C2.95297 6.30766 3.04453 6.41062 3.18625 6.41062Z",fill:"white"}),Bs("path",{d:"M5.19641 4.78797C5.42281 4.78797 5.58984 4.91438 5.67672 5.13109H5.695C5.83 4.90063 5.99453 4.78797 6.20281 4.78797C6.54594 4.78797 6.75406 5.07609 6.75406 5.54047V6.67141C6.75406 6.70578 6.72891 6.73094 6.69453 6.73094H6.32859C6.29422 6.73094 6.26906 6.70578 6.26906 6.67141V5.57703C6.26906 5.35516 6.18219 5.23172 6.01984 5.23172C5.84141 5.23172 5.74766 5.37578 5.74766 5.64109V6.67141C5.74766 6.70578 5.7225 6.73094 5.68813 6.73094H5.32219C5.28781 6.73094 5.26266 6.70578 5.26266 6.67141V5.57703C5.26266 5.35516 5.17578 5.23172 5.01344 5.23172C4.835 5.23172 4.74125 5.37578 4.74125 5.64109V6.67141C4.74125 6.70578 4.71609 6.73094 4.68172 6.73094H4.31578C4.28141 6.73094 4.25625 6.70578 4.25625 6.67141V4.88859C4.25625 4.85422 4.28141 4.82906 4.31578 4.82906H4.61766C4.65203 4.82906 4.67422 4.85187 4.68172 4.88859L4.7275 5.11266H4.74578C4.82812 4.90453 4.98594 4.78781 5.19641 4.78781V4.78797Z",fill:"white"}),Bs("path",{d:"M7.51062 6.77203C7.18359 6.77203 6.96406 6.54109 6.96406 6.20031C6.96406 5.78984 7.28656 5.52672 7.79891 5.52672C7.87203 5.52672 7.93609 5.53078 7.98875 5.54219V5.49469C7.98875 5.26141 7.90297 5.14937 7.72922 5.14937C7.59203 5.14937 7.50172 5.22547 7.46047 5.37125C7.44906 5.41297 7.42609 5.43297 7.38734 5.42609L7.06938 5.37125C7.03047 5.36438 7.00984 5.33234 7.02141 5.28891C7.10609 4.96703 7.37141 4.78797 7.76234 4.78797C8.22656 4.78797 8.47359 5.04406 8.47359 5.52156V6.67141C8.47359 6.70578 8.44844 6.73094 8.41406 6.73094H8.11219C8.07672 6.73094 8.05609 6.70813 8.04813 6.67141L8.00234 6.45641H7.98406C7.90172 6.65484 7.73703 6.77203 7.51062 6.77203ZM7.69578 6.41062C7.88562 6.41062 7.98859 6.23688 7.98859 5.91891V5.79828C7.94969 5.79141 7.90859 5.78687 7.86734 5.78687C7.61812 5.78687 7.4625 5.92578 7.4625 6.14531C7.4625 6.30766 7.55406 6.41062 7.69578 6.41062Z",fill:"white"}),Bs("path",{d:"M8.67688 6.39687C8.67688 6.36484 8.68609 6.33734 8.70438 6.31L9.44875 5.21328H8.75469C8.72031 5.21328 8.69516 5.18813 8.69516 5.15375V4.88844C8.69516 4.85406 8.72031 4.82891 8.75469 4.82891H9.95766C9.99203 4.82891 10.0172 4.85406 10.0172 4.88844V5.16281C10.0172 5.19484 10.0103 5.22 9.98969 5.24969L9.23781 6.34641H9.99422C10.0308 6.34641 10.0538 6.37156 10.0538 6.40594V6.67125C10.0538 6.70563 10.0286 6.73078 9.99422 6.73078H8.73641C8.70203 6.73078 8.67688 6.70563 8.67688 6.67125V6.39687Z",fill:"white"}),Bs("path",{d:"M10.145 5.78C10.145 5.21281 10.4995 4.78797 10.9683 4.78797C11.437 4.78797 11.7963 5.21281 11.7963 5.78C11.7963 6.34719 11.4395 6.77141 10.9683 6.77141C10.497 6.77141 10.145 6.34656 10.145 5.78ZM10.9683 6.38312C11.1764 6.38312 11.293 6.16813 11.293 5.77984C11.293 5.39156 11.1764 5.17609 10.9683 5.17609C10.7602 5.17609 10.6481 5.39109 10.6481 5.77984C10.6481 6.16859 10.7625 6.38312 10.9683 6.38312Z",fill:"white"}),Bs("path",{d:"M12.9808 4.78797C13.3306 4.78797 13.5456 5.07609 13.5456 5.54047V6.67141C13.5456 6.70578 13.5205 6.73094 13.4861 6.73094H13.1202C13.0858 6.73094 13.0606 6.70578 13.0606 6.67141V5.57703C13.0606 5.35516 12.9669 5.23172 12.7977 5.23172C12.6123 5.23172 12.5117 5.37578 12.5117 5.64109V6.67141C12.5117 6.70578 12.4866 6.73094 12.4522 6.73094H12.0863C12.0519 6.73094 12.0267 6.70578 12.0267 6.67141V4.88859C12.0267 4.85422 12.0519 4.82906 12.0863 4.82906H12.3881C12.4225 4.82906 12.4447 4.85187 12.4522 4.88859L12.498 5.11266H12.5162C12.5986 4.90516 12.7633 4.78781 12.9805 4.78781L12.9808 4.78797Z",fill:"white"})],-1),Bs("defs",null,[Bs("clipPath",{id:"clip0_3419_1091"},[Bs("rect",{width:"16",height:"16",fill:"white"})])],-1)]))}
100]]),_te=Wee({name:"ApplePodcasts",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55947 0H12.4405C14.4063 0 16 1.59363 16 3.55947V12.4405C16 14.4063 14.4063 16 12.4405 16H3.55947C1.59363 16 0 14.4063 0 12.4405V3.55947C0 1.59363 1.59363 0 3.55947 0ZM6.736 12.2453C6.93173 13.6048 7.03413 13.8368 7.51147 14.0075L7.5152 14.008C7.90987 14.1477 8.32587 14.0757 8.6192 13.816C8.83253 13.6283 8.91787 13.3493 9.07253 12.2453C9.30027 10.6651 9.34987 9.6864 9.2176 9.37707C9.0416 8.9632 8.56267 8.728 7.904 8.73067C7.24 8.73333 6.76533 8.9664 6.5904 9.37707C6.45867 9.68693 6.50827 10.6651 6.736 12.2453ZM2.38453 8.37867C2.76853 10.2037 3.82453 11.5755 5.47253 12.3861L5.4992 12.4059C5.7872 12.5445 6.0592 12.6619 6.09653 12.6619C6.1552 12.6619 6.16053 12.5925 6.13387 12.3525C6.0912 11.9579 6.0432 11.8779 5.8192 11.7819C5.71787 11.7392 5.47253 11.6005 5.26987 11.4672C4.2352 10.8005 3.44587 9.68053 3.14187 8.4592C3.0192 7.95787 3.0192 6.73653 3.14187 6.2352C3.60053 4.38987 5.10453 2.9232 6.9232 2.54987C7.4512 2.4432 8.40053 2.4432 8.9232 2.54987C10.7205 2.9232 12.1872 4.32053 12.6725 6.11787C12.8272 6.6832 12.8432 7.90453 12.7045 8.45387C12.4859 9.33387 12.0112 10.1712 11.3659 10.8112C10.9925 11.1856 10.3845 11.6187 10.0272 11.768C9.8032 11.8619 9.7552 11.944 9.7072 12.3387C9.68053 12.5845 9.68587 12.6453 9.74453 12.6453C9.90453 12.6453 10.8965 12.1109 11.3019 11.8048C12.4379 10.9483 13.2165 9.6736 13.4619 8.27413C13.5365 7.83147 13.5365 6.7584 13.4565 6.3648C13.2219 5.1824 12.7632 4.2848 11.9472 3.4368C10.8752 2.31307 9.4672 1.712 7.90987 1.712C6.33653 1.712 4.9232 2.32427 3.82453 3.48267C3.06187 4.2848 2.6032 5.192 2.3632 6.352C2.27253 6.784 2.28853 7.90773 2.38453 8.37867ZM4.24587 8.21867C4.44853 8.9888 4.9392 9.77387 5.49387 10.2165L5.51627 10.224C5.6816 10.3573 5.83627 10.464 5.8576 10.464C5.87947 10.464 5.89707 10.2827 5.89707 10.0587V9.65333L5.62187 9.32267C4.57653 8.06933 4.6512 6.31093 5.79787 5.17493C6.2656 4.712 6.79253 4.44853 7.47253 4.3376C7.92053 4.264 8.0112 4.264 8.43787 4.34293C9.0992 4.464 9.6112 4.7264 10.0539 5.17333C11.1952 6.32107 11.2699 8.0704 10.2245 9.32267L9.9472 9.65333V10.0565C9.9472 10.2773 9.9632 10.4587 9.9792 10.4587C10.0752 10.4587 10.6192 9.97813 10.8432 9.69173C11.2965 9.1248 11.5525 8.51467 11.6539 7.77173C11.9099 5.928 10.5925 4.06933 8.73653 3.656C8.19787 3.53707 7.2272 3.57173 6.78987 3.7264C5.50987 4.1824 4.5872 5.15307 4.2512 6.40533C4.1232 6.86933 4.1232 7.7536 4.24587 8.21867ZM6.60853 6.85867C6.61387 7.4016 6.86987 7.81813 7.34453 8.03893H7.3552C8.3632 8.50987 9.47787 7.58827 9.16853 6.53653C9.0672 6.19413 8.80053 5.86613 8.4752 5.69707C8.17653 5.5392 7.64853 5.5392 7.34987 5.696C6.88053 5.94507 6.60853 6.37067 6.60853 6.85867Z",fill:"currentColor"},null,-1)]))}]]),wte=Wee({name:"ArrowBoxed",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("rect",{x:"0",y:"0",fill:"white",width:"24",height:"24"},null,-1),Bs("polygon",{points:"11.9248047,1.1464844 11.2177734,1.8535156 20.3642578,11 2,11 2,12 20.3642578,12 11.2177734,21.1464844\n\t11.9248047,21.8535156 22.2783203,11.5 ",fill:"black"},null,-1)]))}]]),Ste=["stroke-width"],Cte=["stroke-width"],kte=["stroke-width"],xte=Wee({name:"ArrowDown",components:{ArrowDown14:Wee({name:"ArrowDown14",props:{weight:{type:Number,default:0}},data:H((()=>({width:14,height:14})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,[Bs("path",{d:"M12.2246 6.53625L7.65711 11.1037V0.875H6.34461V11.1037L1.77711 6.53625L0.849609 7.46375L7.00086 13.615L13.1521 7.46375L12.2246 6.53625Z",fill:"currentColor",stroke:"currentColor","stroke-width":n.weight?n.weight:0},null,8,Ste)])}]]),ArrowDown18:Wee({name:"ArrowDown18",props:{weight:{type:Number,default:0}},data:H((()=>({width:18,height:18})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,[Bs("path",{d:"M15.9141 8.60062L9.56344 14.9569V1.125H8.43844V14.9569L2.08781 8.60062L1.28906 9.39937L9.00094 17.1056L16.7128 9.39937L15.9141 8.60062Z",fill:"currentColor",stroke:"currentColor","stroke-width":n.weight?n.weight:0},null,8,Cte)])}]]),ArrowDown32:Wee({name:"ArrowDown32",props:{weight:{type:Number,default:0}},data:H((()=>({width:32,height:32})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,[Bs("path",{d:"M28.2891 15.29L16.9991 26.59V2H14.9991V26.59L3.70906 15.29L2.28906 16.71L15.9991 30.41L29.7091 16.71L28.2891 15.29Z",fill:"currentColor",stroke:"currentColor","stroke-width":n.weight?n.weight:0},null,8,kte)])}]])},mixins:[yte],props:{weight:{type:Number,default:0}}},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(e.iconPathName),Be(Us(e.$props)),null,16)}]]),Tte=["stroke-width"],Ete=["stroke-width"],Ate=["stroke-width"],Lte=Wee({name:"ArrowUp",components:{ArrowUp14:Wee({name:"ArrowUp14",props:{weight:{type:Number,default:0}},data:H((()=>({width:14,height:14})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,[Bs("path",{d:"M13.1521 6.53602L7.00086 0.384766L0.849609 6.53602L1.77711 7.46352L6.34461 2.89602V13.1248H7.65711V2.89602L12.2246 7.46352L13.1521 6.53602Z",fill:"currentColor",stroke:"currentColor","stroke-width":n.weight?n.weight:0},null,8,Tte)])}]]),ArrowUp18:Wee({name:"ArrowUp18",props:{weight:{type:Number,default:0}},data:H((()=>({width:18,height:18})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,[Bs("path",{d:"M16.7128 8.60078L9.00094 0.894531L1.28906 8.60078L2.08781 9.39953L8.43844 3.04328V16.8752H9.56344V3.04328L15.9141 9.39953L16.7128 8.60078Z",fill:"currentColor",stroke:"currentColor","stroke-width":n.weight?n.weight:0},null,8,Ete)])}]]),ArrowUp32:Wee({name:"ArrowUp32",props:{weight:{type:Number,default:0}},data:H((()=>({width:32,height:32})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,[Bs("path",{d:"M29.7091 15.2898L15.9991 1.58984L2.28906 15.2898L3.70906 16.7098L14.9991 5.40984V29.9998H16.9991V5.40984L28.2891 16.7098L29.7091 15.2898Z",fill:"currentColor",stroke:"currentColor","stroke-width":n.weight?n.weight:0},null,8,Ate)])}]])},mixins:[yte],props:{weight:{type:Number,default:0}}},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(e.iconPathName),Be(Us(e.$props)),null,16)}]]),Ite=["stroke-width"],$te=["stroke-width"],Dte=["stroke-width"],Pte=Wee({name:"ArrowLeft",components:{ArrowLeft14:Wee({name:"ArrowLeft14",props:{weight:{type:Number,default:0}},data:H((()=>({width:14,height:14})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,[Bs("path",{d:"M13.1248 6.34461H2.89602L7.46352 1.77711L6.53601 0.849609L0.384766 7.00086L6.53601 13.1521L7.46352 12.2246L2.89602 7.65711H13.1248V6.34461Z",fill:"currentColor",stroke:"currentColor","stroke-width":n.weight?n.weight:0},null,8,Ite)])}]]),ArrowLeft18:Wee({name:"ArrowLeft18",props:{weight:{type:Number,default:0}},data:H((()=>({width:18,height:18})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,[Bs("path",{d:"M16.8752 8.43844H3.04328L9.39953 2.08781L8.60078 1.28906L0.894531 9.00094L8.60078 16.7128L9.39953 15.9141L3.04328 9.56344H16.8752V8.43844Z",fill:"currentColor",stroke:"currentColor","stroke-width":n.weight?n.weight:0},null,8,$te)])}]]),ArrowLeft32:Wee({name:"ArrowLeft32",props:{weight:{type:Number,default:0}},data:H((()=>({width:32,height:32})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,[Bs("path",{d:"M29.9998 14.9991H5.40984L16.7098 3.70906L15.2898 2.28906L1.58984 15.9991L15.2898 29.7091L16.7098 28.2891L5.40984 16.9991H29.9998V14.9991Z",fill:"currentColor",stroke:"currentColor","stroke-width":n.weight?n.weight:0},null,8,Dte)])}]])},mixins:[yte],props:{weight:{type:Number,default:0}}},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(e.iconPathName),Be(Us(e.$props)),null,16)}]]),Ote=["stroke-width"],Mte=["stroke-width"],Rte=["stroke-width"],Nte=Wee({name:"ArrowRight",components:{ArrowRight14:Wee({name:"ArrowRight14",props:{weight:{type:Number,default:0}},data:H((()=>({width:14,height:14})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,[Bs("path",{d:"M7.46375 0.849609L6.53625 1.77711L11.1037 6.34461H0.875V7.65711H11.1037L6.53625 12.2246L7.46375 13.1521L13.615 7.00086L7.46375 0.849609Z",fill:"currentColor",stroke:"currentColor","stroke-width":n.weight?n.weight:0},null,8,Ote)])}]]),ArrowRight18:Wee({name:"ArrowRight18",props:{weight:{type:Number,default:0}},data:H((()=>({width:18,height:18})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,[Bs("path",{d:"M9.39937 1.28906L8.60062 2.08781L14.9569 8.43844H1.125V9.56344H14.9569L8.60062 15.9141L9.39937 16.7128L17.1056 9.00094L9.39937 1.28906Z",fill:"currentColor",stroke:"currentColor","stroke-width":n.weight?n.weight:0},null,8,Mte)])}]]),ArrowRight32:Wee({name:"ArrowRight32",props:{weight:{type:Number,default:0}},data:H((()=>({width:32,height:32})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,[Bs("path",{d:"M16.71 2.28906L15.29 3.70906L26.59 14.9991H2V16.9991H26.59L15.29 28.2891L16.71 29.7091L30.41 15.9991L16.71 2.28906Z",fill:"currentColor",stroke:"currentColor","stroke-width":n.weight?n.weight:0},null,8,Rte)])}]])},mixins:[yte],props:{weight:{type:Number,default:0}}},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(e.iconPathName),Be(Us(e.$props)),null,16)}]]),Fte=Wee({name:"ArrowTop",components:{ArrowTop12:Wee({name:"ArrowTop12",data:H((()=>({width:12,height:12})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0H12V1.5H0V0ZM2.53027 8.53027L1.46973 7.46973L6 2.93945L10.5303 7.46973L9.46973 8.53027L6.75 5.81055V12H5.25V5.81055L2.53027 8.53027Z",fill:"currentColor"},null,-1)]))}]]),ArrowTop18:Wee({name:"ArrowTop18",data:H((()=>({width:18,height:18})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0H18V2.25H0V0ZM3.79541 12.7954L2.20459 11.2046L9 4.40918L15.7954 11.2046L14.2046 12.7954L10.125 8.71582V18H7.875V8.71582L3.79541 12.7954Z",fill:"currentColor"},null,-1)]))}]])},mixins:[yte]},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(e.iconPathName))}]]),Bte=Wee({name:"Bag",data:H((()=>({width:72,height:72})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M13 21H59V63H13V21Z",stroke:"currentColor","stroke-width":"2"},null,-1),Bs("path",{d:"M28 28V16C28 13.3333 29.6 8 36 8C42.4 8 44 13.3333 44 16V28",stroke:"currentColor","stroke-width":"2"},null,-1)]))}]]),Hte=Wee({name:"Caret",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M4 10H12L8 6L4 10Z",fill:"currentColor"},null,-1)]))}]]),jte=Wee({name:"CC0",data:H((()=>({width:14,height:14})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M6.96172 13.6653C10.5977 13.6653 13.5452 10.7177 13.5452 7.08171C13.5452 3.44569 10.5977 0.498108 6.96172 0.498108C3.32575 0.498108 0.37822 3.44569 0.37822 7.08171C0.37822 10.7177 3.32575 13.6653 6.96172 13.6653Z",fill:"transparent"},null,-1),Bs("path",{d:"M7 2.97067C4.68891 2.97067 4.10769 5.15143 4.10769 7.00011C4.10769 8.84901 4.68869 11.0295 7 11.0295C9.31088 11.0295 9.8921 8.84901 9.8921 7.00011C9.8921 5.15143 9.31088 2.97067 7 2.97067ZM7 4.49013C7.09385 4.49013 7.17938 4.50457 7.25988 4.52448C7.42635 4.66798 7.50772 4.86595 7.34803 5.14202L5.80891 7.970
1005C5.76166 7.61262 5.75488 7.26174 5.75488 6.99989C5.75488 6.18569 5.81131 4.49013 7 4.49013ZM8.15194 5.79412C8.23353 6.22813 8.24513 6.68139 8.24513 7.00011C8.24513 7.81453 8.18869 9.51031 7.00044 9.51031C6.90681 9.51031 6.82063 9.50046 6.74056 9.48056C6.72525 9.47596 6.71125 9.47115 6.69638 9.4659C6.67188 9.4589 6.64606 9.45102 6.62288 9.44184C6.35819 9.32918 6.1915 9.12552 6.43169 8.76523L8.15194 5.79412Z",fill:"currentColor"},null,-1),Bs("path",{d:"M6.98534 0C5.0435 0 3.40681 0.675948 2.07353 2.03441C1.39825 2.7097 0.882875 3.47971 0.524344 4.33832C0.174344 5.18861 0 6.075 0 7.00011C0 7.93375 0.174344 8.82014 0.524344 9.6619C0.874344 10.5041 1.38206 11.2614 2.04881 11.9361C2.72366 12.603 3.48141 13.1171 4.32337 13.4754C5.17344 13.8259 6.06003 14 6.98534 14C7.91044 14 8.80972 13.8193 9.67663 13.4608C10.5433 13.1022 11.3164 12.5871 12 11.9118C12.6586 11.2702 13.1569 10.5343 13.4901 9.70106C13.8316 8.85951 14 7.95891 14 7.00011C14 6.05006 13.8316 5.15077 13.4903 4.30879C13.1486 3.45893 12.6486 2.70751 11.9903 2.04906C10.6148 0.682292 8.94359 0 6.98534 0ZM7.01466 1.2598C8.59797 1.2598 9.94853 1.82112 11.0733 2.94617C11.6152 3.48802 12.0304 4.10775 12.3137 4.79923C12.5972 5.49093 12.74 6.22507 12.74 7.00011C12.74 8.60882 12.1896 9.94322 11.0981 11.0099C10.5311 11.5602 9.8945 11.9827 9.18619 12.2745C8.48619 12.5663 7.76475 12.7107 7.01466 12.7107C6.25603 12.7107 5.52978 12.5678 4.83831 12.2845C4.14641 11.9927 3.52559 11.5762 2.97544 11.0341C2.42528 10.4842 2.00091 9.86315 1.701 9.17124C1.40941 8.47144 1.25978 7.74978 1.25978 6.99967C1.25978 6.24125 1.40941 5.51499 1.701 4.82329C2.00091 4.12328 2.4255 3.49459 2.97544 2.93589C4.067 1.81959 5.4145 1.2598 7.01466 1.2598Z",fill:"currentColor"},null,-1)]))}]]),Ute=Wee({name:"Center",data:H((()=>({width:128,height:128})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{fill:"#231f20",d:"M91.9,115.46c-3-.45-16.68-2.8-21.71-3.73-4.11-.76-8.7-1.12-16.41-3.59,0,0,30.74-26.61,35.79-31.66,2.24-2.23,3.21-5.41,2.77-7.27-.85-3.53-4.12-5.54-8.73-7.16S56.86,53.57,52,50.73c-5.28-3.11-14.32-13.38-13.19-22,1.26-9.71.32-12.9-2.67-20.08A31.76,31.76,0,0,0,30.5,0H.06V56.53L0,56.5l.07,71.4,88.88.1c4.54-2,9.5-4.32,11.2-5.26C104.72,120.13,100.41,116.74,91.9,115.46Z"},null,-1),Bs("path",{fill:"#fff",stroke:"#000","stroke-miterlimit":"10","stroke-width":"0.5px",d:"M41.42,0C51.17,16,46,24.46,47,32.49c.89,6.9,6.79,14.26,16.48,17.75,6.25,2.25,23.31,7.93,25.39,8.93,4.88,2.33,11.08,8,7.32,14.33A23.6,23.6,0,0,1,91,79.31c-2.69,2.22-9,6.93-9,6.93l-5.29-.74a87,87,0,0,0,10.85-9c2.23-2.23,3.2-5.41,2.76-7.27-.84-3.53-4.12-5.54-8.73-7.16S54.86,53.57,50,50.73c-5.29-3.11-14.33-13.38-13.2-22,1.27-9.71.32-12.9-2.66-20.08A32.23,32.23,0,0,0,28.51,0"},null,-1),Bs("path",{fill:"#fff",d:"M50.25,95.26l.65-36.92a6.55,6.55,0,0,1,4.92-2.17,6.24,6.24,0,0,1,4.63,2.72l1.63,38.28Z"},null,-1),Bs("path",{fill:"#fff",d:"M50,128l.29-14.38s2.17-2.1,6.57-2,6,2,6,2L63.56,128Z"},null,-1),Bs("path",{fill:"#fff",d:"M.07,4.3a128.93,128.93,0,0,1,15.65,7.32C25.21,17,39,29.11,42.23,35.75s4.87,11,4.94,16.33c0,3.4-.13,5.15-.27,10-.14,4.48,3.69,10.17,8.71,13a49.25,49.25,0,0,0,11.46,4.49C69.24,80.3,85,83.87,88.92,85s11.93,4.2,13.28,7.32,5.29,26.7,5.29,26.7h-.13a4.3,4.3,0,0,0-.55-1.77c-1.89-3.53-11.93-5.15-15.72-6s-20.42-3.36-27.25-4.88c-5.94-1.31-13.42-4.44-16.81-9.76C44.18,92.14,45.68,89,46,86.85s.46-8.09-5-15.19C34.9,63.81,20.57,52.1.06,44.15"},null,-1),Bs("path",{fill:"#fff",d:"M97.45,68.81S95.54,59.2,94,52c-1.41-6.66-5.89-9.08-10.23-10.91s-5-2.14-19-7c-13-4.54-16.54-14.38-16.67-20.14-.11-4.4.51-8.93.19-13.88H41.46c9.86,16,4.67,24.54,5.7,32.59C48,39.49,54,46.85,63.64,50.34c6.24,2.25,23.3,7.93,25.38,8.93,3.6,1.72,7.91,5.26,8.43,9.53Z"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"44.5",y1:"40.68",x2:"42.73",y2:"74.24"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"100.96",y1:"113.63",x2:"96.37",y2:"87.78"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"94.03",y1:"111.85",x2:"89.72",y2:"85.19"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"85.77",y1:"110.29",x2:"82.25",y2:"83.3"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"77.23",y1:"108.84",x2:"74.6",y2:"81.49"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"68.19",y1:"107.25",x2:"66.52",y2:"79.45"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"60.34",y1:"105.43",x2:"59.41",y2:"77.02"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"53.61",y1:"102.6",x2:"53.4",y2:"73.64"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"48.59",y1:"98.62",x2:"48.98",y2:"68.71"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"46.05",y1:"84.82",x2:"46.81",y2:"62.79"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"35.63",y1:"65.86",x2:"38.58",y2:"30.52"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"23.86",y1:"56.51",x2:"28.77",y2:"21.01"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"7.55",y1:"47.34",x2:"15.72",y2:"11.62"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"105.32",y1:"115.66",x2:"100.21",y2:"89.91"},null,-1),Bs("path",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",d:"M48.33,4.44A16.07,16.07,0,0,0,47.71,0"},null,-1),Bs("path",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",d:"M45,0a54.43,54.43,0,0,1,3.07,10.4"},null,-1),Bs("path",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",d:"M47.56,21.92S50.9,33,59.41,37.06c5.81,2.8,18.61,6.55,22.84,8.18s11.35,5,12.53,10.2"},null,-1),Bs("path",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",d:"M47.22,26.17a21.33,21.33,0,0,0,14.05,17c14.09,5.18,20.27,7.16,24.5,8.66s9.3,5.05,10.49,11"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"88.09",y1:"43.17",x2:"91.35",y2:"60.49"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"82.67",y1:"40.5",x2:"85.55",y2:"57.82"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"70.28",
100y1:"36.05",x2:"71.98",y2:"53.08"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"63.76",y1:"33.57",x2:"64.7",y2:"50.6"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"53.35",y1:"26.58",x2:"53.35",y2:"43.95"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"46",x2:"45.61",y2:"8.23"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"58.13",y1:"30.73",x2:"58.54",y2:"47.93"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"76.5",y1:"38.07",x2:"78.81",y2:"55.44"},null,-1),Bs("line",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",x1:"49.82",y1:"21.2",x2:"49.67",y2:"39.2"},null,-1),Bs("path",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",d:"M.06,15.32A122.63,122.63,0,0,1,13.4,21.75C19.78,25.58,44.5,40.68,47,58.91"},null,-1),Bs("path",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",d:"M.06,29C6.66,31.82,17.72,37,25.7,42.76c12.11,8.71,20,19.29,20.8,29.05S58.37,85.62,62.71,87s24.83,5.43,29.94,7,10.76,4,11.62,7.78"},null,-1),Bs("path",{stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",fill:"none",d:"M46,83.66s4.23,8.7,13.41,11.51S89.79,101.81,94,102.6s11.27,3.76,12,7.69"},null,-1),Bs("path",{fill:"#fff",d:"M.07,57.34c6.39,2.78,14.63,6.3,20.84,11.37,6.76,5.51,11.58,9.61,11.33,16.79-.35,9.76,3.11,16.49,16.46,21.35,10.08,3.67,15.46,4,20.2,4.88,5,.93,18.75,3.28,21.71,3.73,8.51,1.28,10.39,5.49,5.81,8.1-1.57.86-5.58,2.71-9.43,4.44l7.87-.1,7.66-3.09s6.87-2.88,4.34-7.59c-1.9-3.53-11.93-5.15-15.73-6s-20.42-3.36-27.25-4.88c-5.94-1.31-13.42-4.44-16.81-9.76C44.23,92.14,45.72,89,46,86.85s.46-8.09-5-15.19C34.94,63.81,20.6,52.08.07,44.13"},null,-1),Bs("path",{fill:"none",stroke:"#000","stroke-miterlimit":"10","stroke-width":"0.5px",d:"M.07,4.3a128.93,128.93,0,0,1,15.65,7.32C25.21,17,39,29.11,42.23,35.75s4.87,11,4.94,16.33c0,3.4-.13,5.15-.27,10-.14,4.48,3.69,10.17,8.71,13a49.25,49.25,0,0,0,11.46,4.49C69.24,80.3,85,83.87,88.92,85s11.93,4.2,13.28,7.32,5.29,26.7,5.29,26.7h-.13a4.3,4.3,0,0,0-.55-1.77c-1.89-3.53-11.93-5.15-15.72-6s-20.42-3.36-27.25-4.88c-5.94-1.31-13.42-4.44-16.81-9.76C44.18,92.14,45.68,89,46,86.85s.46-8.09-5-15.19C34.9,63.81,20.57,52.1.06,44.15"},null,-1),Bs("path",{fill:"none",stroke:"#000","stroke-miterlimit":"10","stroke-width":"0.5px",d:"M41.46,0c9.86,16,4.67,24.54,5.7,32.59C48,39.49,54,46.85,63.64,50.34c6.24,2.25,23.3,7.93,25.38,8.93,3.6,1.72,7.91,5.26,8.43,9.53h0S95.54,59.2,94,52c-1.41-6.66-5.89-9.08-10.23-10.91s-5-2.14-19-7c-13-4.54-16.54-14.38-16.67-20.14-.11-4.4.51-8.93.19-13.88"},null,-1),Bs("path",{fill:"none",stroke:"#000","stroke-miterlimit":"10",d:"M94.78,127.9l7.66-3.09s6.87-2.88,4.34-7.59c-1.9-3.53-11.93-5.15-15.72-6s-20.42-3.36-27.25-4.88c-6-1.31-13.43-4.44-16.81-9.76-2.85-4.47-1.36-7.59-1.09-9.76s.47-8.09-5-15.19C34.87,63.81,20.52,52.08,0,44.13"},null,-1),Bs("path",{fill:"none",stroke:"#000","stroke-miterlimit":"10",d:"M0,57.34c6.4,2.78,14.64,6.3,20.85,11.37,6.75,5.51,11.58,9.61,11.32,16.79-.34,9.76,3.12,16.49,16.47,21.35,10.07,3.67,15.45,4,20.19,4.88,5,.93,18.75,3.28,21.72,3.73,8.5,1.28,10.39,5.49,5.8,8.1-1.57.86-5.58,2.71-9.43,4.44"},null,-1)]))}]]),Vte={key:0,d:"M5.99992 12.4149L1.29492 7.70492L2.70493 6.29492L5.99992 9.58492L13.2949 2.29492L14.7049 3.70492L5.99992 12.4149Z",fill:"currentColor"},qte={key:1,d:"M6.00021 12.06L1.47021 7.52997L2.53021 6.46997L6.00021 9.93997L13.4702 2.46997L14.5302 3.52997L6.00021 12.06Z",fill:"currentColor"},zte={key:2,d:"M6.00002 11.705L1.64502 7.35502L2.35502 6.64502L6.00002 10.295L13.645 2.64502L14.355 3.35502L6.00002 11.705Z",fill:"currentColor"},Wte=Wee({name:"Check",props:{weight:{type:Number,default:null}},data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return 600===n.weight?(As(),Ps("path",Vte)):500===n.weight?(As(),Ps("path",qte)):(As(),Ps("path",zte))}]]),Gte=Wee({name:"Chevron",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M6.5307 12.5297L5.4707 11.4697L8.9407 7.98973L5.4907 4.52973L6.5557 3.46973L11.0607 7.98973L6.5307 12.5297Z",fill:"currentColor"},null,-1)]))}]]),Kte=Wee({name:"Chevron500",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M7.99902 12.0605L1.46875 5.53027L2.5293 4.46973L7.99902 9.93945L13.4688 4.46973L14.5293 5.53027L7.99902 12.0605Z",fill:"currentColor"},null,-1)]))}]]),Yte=Wee({name:"CircleCheck",data:H((()=>({width:136,height:136})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("circle",{cx:"68",cy:"68",r:"54.5",stroke:"currentColor","stroke-width":"3"},null,-1),Bs("path",{d:"M38 68L58 88L98 48",stroke:"currentColor","stroke-width":"3"},null,-1)]))}]]),Zte=Wee({name:"Citation",data:H((()=>({width:20,height:12})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M1.2 12H4.8L7.2 7.2V0H0V7.2H3.6L1.2 12ZM13.2 12H16.8L19.2 7.2V0H12V7.2H15.6L13.2 12Z",fill:"currentColor"},null,-1)]))}]]),Xte=Wee({name:"Cleaning",data:H((()=>({width:136,height:136})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M92.3178 54.4893C92.0666 54.4893 91.8124 54.4195 91.5847 54.2738C89.4559 52.9085 86.9947 51.2297 84.8796 49.1336C82.9223 47.3175 81.0637 45.1211 79.3872 42.6364C77.7881 40.2928 76.4221 37.7497 75.3315 35.0851L75.2852 34.9644C75.1296 34.5424 75.1683 34.0089 75.4294 33.6423C76.9214 31.5439 78.7702 31.5439 80.1196 31.5439L82.2089 31.5515C82.8069 31.5515 83.3351 31.9423 83.5097 32.5153C84.1593 34.6456 85.0116 36.6902 86.0445 38.5913C87.1996 40.7512 88.5141 42.6721 89.956 44.3076C91.3805 46.0485 93.0434 47.5011 95.1107 49.1571C95.6617 49.598 95.7831 50.3866 95.3922 50.9732L93.4509 53.8837C93.1891 54.2761 92.758 54.4893 92.3178 54.4893ZM78.119 34.6942C79.0973 36.9664 80.2759 39.1127 81.6382 41.1094C83.2023 43.428 84.9251 45.4657 86.7617 47.171C88.3729 48.7663 90.2163 50.1126 91.9346 51.2548L92.4423 50.4943C90.845
1005 49.1761 89.2411 47.7288 87.8826 46.0683C86.3352 44.3129 84.9 42.219 83.6501 39.8815C82.6908 38.1155 81.8734 36.2303 81.2162 34.2715L80.1196 34.2639C79.1777 34.2639 78.6176 34.2859 78.119 34.6942ZM80.905 129.216H45.8061C42.4198 129.216 39.8296 128.253 38.1068 126.357C36.3643 124.438 35.6509 121.702 35.9871 118.226C38.503 92.2362 49.1173 41.9822 49.2243 41.4783C49.3571 40.8491 49.9119 40.3998 50.5547 40.3998H70.7885C71.1915 40.3998 71.5733 40.5782 71.8321 40.8878C72.0901 41.1967 72.1986 41.6043 72.1273 42.0004C72.0825 42.2478 67.7862 66.7885 75.9804 77.0417C88.3167 92.4798 89.2237 107.369 89.7101 115.368C89.7724 116.385 89.8263 117.274 89.8983 118.02C90.3203 122.384 88.8692 124.996 87.5775 126.418C85.9398 128.222 83.5704 129.216 80.905 129.216ZM51.659 43.1198C50.1017 50.5778 40.9907 94.7634 38.695 118.489C38.4354 121.169 38.915 123.2 40.1202 124.528C41.3057 125.834 43.2189 126.496 45.8061 126.496H80.905C82.794 126.496 84.4485 125.819 85.5641 124.59C86.8869 123.134 87.4493 120.953 87.1905 118.283C87.1161 117.508 87.0592 116.587 86.9954 115.534C86.5264 107.835 85.6544 93.5051 73.8554 78.7402C66.0832 69.0145 68.3334 48.9681 69.1933 43.1198H51.659ZM93.2852 21.7681C93.8175 22.7365 95.0343 23.0898 96.0023 22.5574C96.9707 22.0251 97.324 20.8086 96.7916 19.8402C96.2593 18.8718 95.0428 18.5186 94.0744 19.0509C93.106 19.5833 92.7528 20.7997 93.2852 21.7681ZM98.6577 18.8143C99.1172 19.6501 100.167 19.955 101.003 19.4955C101.839 19.036 102.144 17.9859 101.684 17.1501C101.225 16.3146 100.175 16.0097 99.339 16.4688C98.5031 16.9283 98.1982 17.9784 98.6577 18.8143ZM104.03 15.8604C104.417 16.5637 105.3 16.8203 106.004 16.4336C106.707 16.047 106.963 15.1635 106.577 14.4603C106.19 13.7573 105.307 13.5004 104.603 13.8871C103.9 14.2737 103.644 15.1572 104.03 15.8604ZM109.403 12.9066C109.716 13.477 110.433 13.6856 111.004 13.3718C111.575 13.058 111.783 12.3412 111.469 11.7705C111.155 11.1998 110.439 10.9915 109.868 11.3053C109.297 11.6191 109.089 12.3359
100109.403 12.9066ZM98.6577 22.7939C98.1982 23.6298 98.5031 24.6799 99.339 25.1394C100.175 25.5989 101.225 25.2936 101.684 24.4582C102.144 23.6223 101.839 22.5722 101.003 22.1127C100.167 21.6532 99.1172 21.9581 98.6577 22.7939ZM104.03 25.7479C103.644 26.4512 103.9 27.3346 104.603 27.7213C105.307 28.1079 106.19 27.851 106.577 27.1481C106.963 26.4448 106.707 25.5613 106.004 25.1747C105.3 24.788 104.417 25.0446 104.03 25.7479ZM109.403 28.7018C109.089 29.2725 109.297 29.9893 109.868 30.3031C110.439 30.6169 111.155 30.4083 111.469 29.8379C111.783 29.2672 111.575 28.5504 111.004 28.2366C110.433 27.9228 109.716 28.131 109.403 28.7018ZM104.19 20.8042C104.19 21.6066 104.84 22.2573 105.643 22.2573C106.445 22.2573 107.095 21.6066 107.095 20.8042C107.095 20.0018 106.445 19.3511 105.643 19.3511C104.84 19.3511 104.19 20.0018 104.19 20.8042ZM110.321 20.8042C110.321 21.4552 110.848 21.9833 111.5 21.9833C112.151 21.9833 112.679 21.4552 112.679 20.8042C112.679 20.1528 112.151 19.6251 111.5 19.6251C110.848 19.6251 110.321 20.1528 110.321 20.8042ZM67.9752 37.4347H51.3805C50.998 37.4347 50.6337 37.2738 50.3764 36.9915C50.1184 36.7099 49.9916 36.332 50.0258 35.9518C50.028 35.929 50.2352 33.1096 48.4305 31.1523C47.1896 29.806 45.2369 29.1237 42.627 29.1237C42.6262 29.1237 42.6262 29.1237 42.6255 29.1237C42.2263 29.1237 41.805 29.1389 41.3656 29.1722C40.9475 29.1996 40.5521 29.0455 40.2705 28.745C39.9897 28.4444 39.8592 28.0323 39.9176 27.624C39.9373 27.4844 42.0965 13.6552 58.4005 13.6552H88.5444C89.2958 13.6552 89.9044 14.2639 89.9044 15.0152V26.7839C89.9044 27.5352 89.2958 28.1439 88.5444 28.1439L76.6687 28.1363C74.2842 28.1363 71.0185 28.1363 69.3063 36.3525C69.175 36.9824 68.6195 37.4347 67.9752 37.4347ZM52.7093 34.7147H66.8884C68.876 26.5737 72.7526 25.4163 76.6687 25.4163L77.8079 25.4239H87.1844V16.3752H58.4005C47.5281 16.3752 44.0462 23.2063 43.011 26.4082C46.2425 26.4796 48.7462 27.4639 50.4561 29.3362C52.0893 31.125 52.5765 33.2985 52.7093 34.7147Z",fill:"currentColor"},null,-1)]))}]]),Qte=Wee({name:"Clipboard",components:{Clipboard24:Wee({name:"Clipboard24",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M5.5 3.5H12.5V6H14V3.5V2H12.5H5.5H4V3.5V14.5V16H5.5H8V14.5H5.5V3.5Z",fill:"currentColor"},null,-1),Bs("path",{d:"M18.5 8H11.5H10V9.5V20.5V22H11.5H18.5H20V20.5V9.5V8H18.5ZM18.5 20.5H11.5V9.5H18.5V20.5Z",fill:"currentColor"},null,-1)]))}]]),Clipboard32:Wee({name:"Clipboard32",data:H((()=>({width:32,height:32})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M8 6H18V8H20V6V4H18H8H6V6V20V22H8H10V20H8V6Z",fill:"currentColor"},null,-1),Bs("path",{d:"M24 10H14H12V12V26V28H14H24H26V26V12V10H24ZM24 26H14V12H24V26Z",fill:"currentColor"},null,-1)]))}]])},mixins:[yte]},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(e.iconPathName))}]]),Jte=Wee({name:"Clock",data:H((()=>({width:12,height:12})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M6 0C2.68628 0 0 2.68628 0 6C0 9.31369 2.68628 12 6 12C9.31372 12 12 9.31369 12 6C12 2.68628 9.31372 0 6 0ZM6 11C3.24298 11 1 8.75699 1 6C1 3.24298 3.24298 1 6 1C8.75702 1 11 3.24298 11 6C11 8.75699 8.75702 11 6 11ZM6.5 5.79297L8.35352 7.64648L7.64648 8.35352L5.5 6.20703V2H6.5V5.79297Z",fill:"currentColor"},null,-1)]))}]]),ene=Wee({name:"Close",data:H((()=>({width:18,height:18})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M1 17L17 1M1 1L17 17",stroke:"currentColor"},null,-1)]))}]]),tne=Wee({name:"Close600",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M2.6665 13.3334L13.3332 2.66675M2.6665 2.66675L13.3332 13.3334",stroke:"currentcolor","stroke-width":"2"},null,-1)]))}]]),nne=Wee({name:"CloseBold",data:H((()=>({width:18,height:18})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M1 17L17 1M1 1L17 17",stroke:"currentColor","stroke-width":"2"},null,-1)]))}]]),ine=Wee({name:"ClosedCaptions",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M1.5 4.5V19.5H22.5V4.5H1.5ZM11.25 10.5H9V9H6.75V15H9V13.5H11.25V15.75C11.25 16.5784 10.5784 17.25 9.75 17.25H6C5.17159 17.25 4.5 16.5784 4.5 15.75V8.25C4.5 7.42154 5.17159 6.75 6 6.75H9.75C10.5784 6.75 11.25 7.42154 11.25 8.25V10.5ZM19.5 10.5H17.25V9H15V15H17.25V13.5H19.5V15.75C19.5 16.5784 18.8284 17.25 18 17.25H14.25C13.4216 17.25 12.75 16.5784 12.75 15.75V8.25C12.75 7.42154 13.4216 6.75 14.25 6.75H18C18.8284 6.75 19.5 7.42154 19.5 8.25V10.5Z",fill:"currentColor"},null,-1)]))}
100]]),rne=Wee({name:"CollectionsBookmark",data:H((()=>({width:28,height:28})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M2.3 25.2001V25.7001H2.8H21.9V27.5001H0.5V6.10012H2.3V25.2001ZM24.9428 14.4289L25.7 14.8832V14.0001V2.80012V2.30012H25.2H18.2H17.7V2.80012V14.0001V14.8832L18.4572 14.4289L21.7 12.4832L24.9428 14.4289ZM6.1 0.500122H27.5V21.9001H6.1V0.500122Z",stroke:"currentColor"},null,-1)]))}]]),ane=Wee({name:"Comment",data:H((()=>({width:72,height:72})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("mask",{id:"path-1-inside-1",fill:"white"},[Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 19C11.6863 19 9 21.6863 9 25V45C9 48.3137 11.6863 51 15 51H41V61L50.9206 51H57C60.3137 51 63 48.3137 63 45V25C63 21.6863 60.3137 19 57 19H15Z"})],-1),Bs("path",{d:"M41 51H43V49H41V51ZM41 61H39V65.8558L42.4198 62.4086L41 61ZM50.9206 51V49H50.0875L49.5008 49.5914L50.9206 51ZM11 25C11 22.7909 12.7909 21 15 21V17C10.5817 17 7 20.5817 7 25H11ZM11 45V25H7V45H11ZM15 49C12.7909 49 11 47.2091 11 45H7C7 49.4183 10.5817 53 15 53V49ZM41 49H15V53H41V49ZM43 61V51H39V61H43ZM49.5008 49.5914L39.5802 59.5914L42.4198 62.4086L52.3405 52.4086L49.5008 49.5914ZM57 49H50.9206V53H57V49ZM61 45C61 47.2091 59.2091 49 57 49V53C61.4183 53 65 49.4183 65 45H61ZM61 25V45H65V25H61ZM57 21C59.2091 21 61 22.7909 61 25H65C65 20.5817 61.4183 17 57 17V21ZM15 21H57V17H15V21Z",fill:"currentColor",mask:"url(#path-1-inside-1)"},null,-1)]))}]]),sne=Wee({name:"ContactTracing",data:H((()=>({width:136,height:136})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M50.6558 101.948C48.602 101.948 46.9371 100.284 46.9371 98.2297C46.9371 96.1759 48.602 94.511 50.6558 94.511C52.7096 94.511 54.3746 96.1759 54.3746 98.2297C54.3746 100.284 52.7096 101.948 50.6558 101.948ZM33.6558 67.9485C35.7096 67.9485 37.3746 66.2836 37.3746 64.2297C37.3746 62.1759 35.7096 60.511 33.6558 60.511C31.602 60.511 29.9371 62.1759 29.9371 64.2297C29.9371 66.2836 31.602 67.9485 33.6558 67.9485ZM67.6558 33.9485C69.7096 33.9485 71.3746 32.2836 71.3746 30.2297C71.3746 28.1759 69.7096 26.511 67.6558 26.511C65.602 26.511 63.9371 28.1759 63.9371 30.2297C63.9371 32.2836 65.602 33.9485 67.6558 33.9485ZM67.6558 35.011C64.135 35.011 61.2808 37.8651 61.2808 41.386H74.0308C74.0308 37.8651 71.1766 35.011 67.6558 35.011ZM33.6558 69.011C30.135 69.011 27.2808 71.8651 27.2808 75.386H40.0308C40.0308 71.8651 37.1766 69.011 33.6558 69.011ZM50.6558 103.011C47.135 103.011 44.2808 105.865 44.2808 109.386H57.0308C57.0308 105.865 54.1766 103.011 50.6558 103.011ZM94.3882 63.4526C94.3882 62.8448 94.4715 62.2575 94.6127 61.6927L67.6557 43.9785L39.7937 62.2874C39.9882 62.9008 40.0946 63.553 40.0946 64.2297C40.0946 64.6369 40.0523 65.0339 39.9796 65.4203L67.6557 47.2328L94.5331 64.8955C94.4388 64.4289 94.3882 63.9466 94.3882 63.4526ZM97.1082 63.4526C97.1082 60.9451 99.1482 58.9051 101.656 58.9051C104.163 58.9051 106.203 60.9451 106.203 63.4526C106.203 65.9601 104.163 68.0001 101.656 68.0001C99.1482 68.0001 97.1082 65.9601 97.1082 63.4526ZM99.8282 63.4526C99.8282 64.4604 100.648 65.2801 101.656 65.2801C102.664 65.2801 103.483 64.4604 103.483 63.4526C103.483 62.4447 102.664 61.6251 101.656 61.6251C100.648 61.6251 99.8282 62.4447 99.8282 63.4526ZM97.172 76.1631C97.172 73.6905 99.1832 71.6794 101.656 71.6794C104.128 71.6794 106.139 73.6905 106.139 76.1631H108.859C108.859 72.1909 105.628 68.9594 101.656 68.9594C97.6835 68.9594 94.452 72.1909 94.452 76.1631H97.172ZM114.108 97.4526C114.108 94.9451 116.148 92.9051 118.656 92.9051C121.163 92.9051 123.203 94.9451 123.203 97.4526C123.203 99.9601 121.163 102 118.656 102C116.148 102 114.108 99.9601 114.108 97.4526ZM116.828 97.4526C116.828 98.4604 117.648 99.2801 118.656 99.2801C119.664 99.2801 120.483 98.4604 120.483 97.4526C120.483 96.4447 119.664 95.6251 118.656 95.6251C117.648 95.6251 116.828 96.4447 116.828 97.4526ZM118.656 102.959C114.684 102.959 111.452 106.191 111.452 110.163H114.172C114.172 107.691 116.183 105.679 118.656 105.679C121.128 105.679 123.139 107.691 123.139 110.163H125.859C125.859 106.191 122.628 102.959 118.656 102.959ZM113.256 92.6059L101.656 77.36L90.0555 92.6059C90.7111 93.3355 91.222 94.1952 91.5413 95.1447L101.656 81.8513L111.77 95.1447C112.089 94.1952 112.6 93.3355 113.256 92.6059ZM84.6557 92.9051C87.1632 92.9051 89.2032 94.9451 89.2032 97.4526C89.2032 99.9601 87.1632 102 84.6557 102C82.1482 102 80.1082 99.9601 80.1082 97.4526C80.1082 94.9451 82.1482 92.9051 84.6557 92.9051ZM84.6557 95.6251C83.6479 95.6251 82.8282 96.4447 82.8282 97.4526C82.8282 98.4604 83.6479 99.2801 84.6557 99.2801C85.6636 99.2801 86.4832 98.4604 86.4832 97.4526C86.4832 96.4447 85.6636 95.6251 84.6557 95.6251ZM84.6557 102.959C80.6835 102.959 77.452 106.191 77.452 110.163H80.172C80.172 107.691 82.1831 105.679 84.6557 105.679C87.1283 105.679 89.1395 107.691 89.1395 110.163H91.8595C91.8595 106.191 88.628 102.959 84.6557 102.959ZM46.3262 94.0126L33.6557 77.36L22.0555 92.6059C22.7111 93.3355 23.222 94.1952 23.5413 95.1447L33.6557 81.8513L44.8457 96.5582C45.1254 95.5879 45.6396 94.7172 46.3262 94.0126ZM12.1082 97.4526C12.1082 94.9451 14.1482 92.9051 16.6557 92.9051C19.1632 92.9051 21.2032 94.9451 21.2032 97.4526C21.2032 99.9601 19.1632 102 16.6557 102C14.1482 102 12.1082 99.9601 12.1082 97.4526ZM14.8282 97.4526C14.8282 98.4604 15.6479 99.2801 16.6557 99.2801C17.6636 99.2801 18.4832 98.4604 18.4832 97.4526C18.4832 96.4447 17.6636 95.6251 16.6557 95.6251C15.6479 95.6251 14.8282 96.4447 14.8282 97.4526ZM16.6557 102.959C12.6835 102.959 9.45198 106.191 9.45198 110.163H12.172C12.172 107.691 14.1831 105.679 16.6557 105.679C19.1283 105.679 21.1395 107.691 21.1395 110.163H23.8595C23.8595 106.191 20.628 102.959 16.6557 102.959Z",fill:"currentColor"},null,-1)]))}]]),one=Wee({name:"ContractLeft",data:H((()=>({width:10,height:18})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M9 1L1 9L9 17",stroke:"currentColor"},null,-1)]))}]]),lne=Wee({name:"ContractLeft600",data:H((()=>({width:18,height:18})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M4.59668 9L12.1421 16.5454L13.7329 14.9546L7.77832 9L13.7329 3.04541L12.1421 1.45459L4.59668 9Z",fill:"currentColor"},null,-1)]))}]]),une=Wee({name:"Copyright",data:H((()=>({width:14,height:14})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M7.00004 5.72205e-06C5.14353 5.72205e-06 3.36304 0.73751 2.05029 2.05026C0.737532 3.36302 4.3869e-05 5.14349 4.3869e-05 7.00001V14H7.00004C7.9193 14 8.82954 13.8189 9.67882 13.4672C10.5281 13.1154 11.2998 12.5998 11.9498 11.9497C12.5998 11.2997 13.1154 10.5281 13.4672 9.67878C13.819 8.82951 14 7.91926 14 7.00001V5.72205e-06H7.00004ZM7.00004 12.7237C5.86852 12.7237 4.7624 12.3882 3.82157 11.7596C2.88075 11.1309 2.14746 10.2374 1.71444 9.19204C1.28143 8.14665 1.16815 6.99634
1001.3889 5.88656C1.60964 4.77678 2.15453 3.75738 2.95463 2.95727C3.75474 2.15716 4.77414 1.61228 5.88392 1.39153C6.9937 1.17078 8.144 1.28408 9.18939 1.7171C10.2348 2.15011 11.1283 2.8834 11.7569 3.82423C12.3856 4.76505 12.7211 5.87116 12.7211 7.00268C12.7208 8.5199 12.1179 9.97487 11.0451 11.0477C9.97223 12.1205 8.51726 12.7234 7.00004 12.7237V12.7237Z",fill:"currentColor"},null,-1),Bs("path",{d:"M5.45246 8.69588C5.64716 8.89641 5.88091 9.0549 6.13927 9.16156C6.39762 9.26821 6.67509 9.32076 6.95456 9.31596C7.33559 9.32355 7.71303 9.24096 8.05607 9.0749C8.3991 8.90884 8.698 8.66402 8.92841 8.36044L9.9788 9.44159C9.14579 10.3797 8.16577 10.8488 7.03875 10.8488C5.91173 10.8488 4.98071 10.4924 4.2457 9.7797C3.51425 9.06696 3.14853 8.16578 3.14853 7.07617C3.13566 6.56922 3.22847 6.06514 3.42104 5.59602C3.61362 5.12689 3.90175 4.70298 4.26708 4.35128C4.62635 3.99488 5.05374 3.71454 5.52375 3.52695C5.99375 3.33936 6.49673 3.24838 7.00267 3.25946C7.57717 3.25015 8.14656 3.36871 8.66961 3.60654C9.19266 3.84437 9.65628 4.19554 10.0269 4.63461L9.00859 5.78923C8.49007 5.14509 7.84593 4.82303 7.07617 4.82303C6.4907 4.81115 5.92362 5.02782 5.49523 5.42708C5.05779 5.82977 4.83906 6.37235 4.83906 7.0548C4.83906 7.73725 5.04352 8.28427 5.45246 8.69588Z",fill:"currentColor"},null,-1)]))}]]),cne=Wee({name:"CopyrightNone",data:H((()=>({width:14,height:14})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M13.96 -2.47955e-05V6.99998C13.96 7.91923 13.779 8.82948 13.4274 9.67875C13.0757 10.528 12.5603 11.2997 11.9105 11.9497C11.2608 12.5997 10.4894 13.1154 9.64043 13.4671C8.79147 13.8189 7.88157 14 6.96267 14H-0.0400009V6.99998C-0.0400009 6.08072 0.140989 5.17048 0.492638 4.3212C0.844286 3.47192 1.35971 2.70024 2.00947 2.05023C2.65924 1.40022 3.43061 0.8846 4.27957 0.532817C5.12852 0.181035 6.03842 -2.47955e-05 6.95732 -2.47955e-05H13.9546H13.96ZM3.10999 7.06947C3.09766 6.56263 3.19041 6.05873 3.38239 5.58953C3.57437 5.12032 3.86143 4.69597 4.22546 4.34324C4.58551 3.98761 5.01337 3.70805 5.4836 3.52117C5.95383 3.3343 6.45683 3.24391 6.96267 3.25541C7.6824 3.24315 8.39107 3.43346 9.00789 3.80467L10.3905 2.42151C9.29031 1.59361 7.92828 1.19096 6.55495 1.28762C5.18162 1.38428 3.88936 1.97377 2.91587 2.94763C1.94238 3.92149 1.35314 5.21424 1.25651 6.5881C1.15988 7.96195 1.56237 9.3245 2.38995 10.4251L3.68175 9.13285C3.29081 8.517 3.09179 7.79877 3.10999 7.06947V7.06947ZM11.4672 3.47592L5.89263 9.05267C6.2049 9.23113 6.55896 9.32337 6.91858 9.31994C7.30028 9.32732 7.67834 9.24438 8.02192 9.07787C8.3655 8.91136 8.66488 8.66599 8.89568 8.36176L9.94434 9.44423C9.11165 10.3797 8.12977 10.8483 6.99873 10.8501C6.19861 10.8709 5.41085 10.6496 4.73843 10.2153L3.44664 11.5076C4.44856 12.2992 5.68859 12.7288 6.96533 12.7264C8.03872 12.7283 9.09096 12.4278 10.0015 11.8592C10.9121 11.2907 11.6442 10.4771 12.114 9.51159C12.5838 8.54611 12.7723 7.46778 12.6579 6.4001C12.5435 5.33242 12.1309 4.31854 11.4672 3.47458V3.47592ZM4.79854 7.04675C4.79348 7.33318 4.83546 7.61852 4.92279 7.89135L7.85236 4.96065C7.59118 4.86409 7.31456 4.81609 7.03614 4.819C6.45118 4.80597 5.88422 5.02172 5.4558 5.42037C5.01897 5.82129 4.79854 6.36519 4.79854 7.04541V7.04675Z",fill:"currentColor"},null,-1)]))}]]),dne=Wee({name:"CopyrightOther",data:H((()=>({width:14,height:14})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M14 0V7C14 8.85652 13.2625 10.637 11.9498 11.9497C10.637 13.2625 8.85655 14 7.00003 14H3.05176e-05V7C3.05176e-05 5.14349 0.737519 3.36301 2.05027 2.05026C3.36303 0.737505 5.14352 0 7.00003 0H14ZM1.27895 6.99733C1.27895 8.12885 1.61449 9.23496 2.24313 10.1758C2.87177 11.1166 3.76528 11.8499 4.81067 12.2829C5.85606 12.7159 7.00638 12.8292 8.11616 12.6085C9.22594 12.3877 10.2453 11.8428 11.0454 11.0427C11.8456 10.2426 12.3904 9.22323 12.6112 8.11345C12.8319 7.00367 12.7186 5.85335 12.2856 4.80796C11.8526 3.76257 11.1193 2.86906 10.1785 2.24042C9.23766 1.61178 8.13155 1.27626 7.00003 1.27626C5.48282 1.27661 4.02784 1.87947 2.95501 2.95231C1.88218 4.02514 1.2793 5.48011 1.27895 6.99733V6.99733Z",fill:"currentColor"},null,-1),Bs("path",{d:"M9.30126 5.3108C9.31419 5.52789 9.27715 5.74505 9.193 5.94558C9.12485 6.07922 9.07407 6.17811 9.046 6.24092C8.99207 6.33694 8.92753 6.42659 8.85357 6.5082C8.74532
1006.62713 8.67716 6.706 8.64375 6.74074C8.47403 6.91046 8.315 7.06948 8.16265 7.21649C8.04447 7.32109 7.94306 7.44324 7.86197 7.57864C7.80435 7.71442 7.77918 7.86177 7.78846 8.00897V8.64376H6.17277V7.84993C6.16135 7.62679 6.20017 7.40392 6.28636 7.19778C6.41777 6.98233 6.57582 6.78432 6.75677 6.60842L7.47709 5.8654C7.58806 5.72778 7.64465 5.5542 7.63612 5.37762C7.6435 5.19451 7.58306 5.01512 7.4664 4.8738C7.41415 4.8071 7.34678 4.75378 7.26987 4.71823C7.19297 4.68268 7.10871 4.66593 7.02405 4.66934C6.9339 4.66885 6.84497 4.69023 6.7649 4.73166C6.68482 4.77309 6.61601 4.83333 6.56434 4.90721C6.42765 5.09176 6.34859 5.31262 6.33714 5.54199H4.64795C4.7268 4.83371 4.98205 4.27777 5.4244 3.87552C5.87292 3.46779 6.4623 3.25025 7.06816 3.2688C7.73101 3.2688 8.26957 3.45011 8.68385 3.81271C9.09813 4.17621 9.30126 4.67601 9.30126 5.3108Z",fill:"currentColor"},null,-1),Bs("path",{d:"M7.66286 9.34538C7.53217 9.21418 7.36549 9.1247 7.18393 9.08831C7.00236 9.05192 6.8141 9.07024 6.64295 9.14094C6.4718 9.21163 6.32547 9.33152 6.22252 9.48544C6.11957 9.63936 6.06461 9.82037 6.06461 10.0055C6.06461 10.1907 6.11957 10.3717 6.22252 10.5256C6.32547 10.6796 6.4718 10.7995 6.64295 10.8702C6.8141 10.9409 7.00236 10.9592 7.18393 10.9228C7.36549 10.8864 7.53217 10.7969 7.66286 10.6657C7.83749 10.4904 7.93555 10.253 7.93555 10.0055C7.93555 9.75808 7.83749 9.5207 7.66286 9.34538Z",fill:"currentColor"},null,-1)]))}]]),pne=Wee({name:"Delete",data:H((()=>({width:18,height:18})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M1 17L17 1M1 1L17 17",stroke:"currentColor"},null,-1)]))}]]),hne=Wee({name:"DigitizedItems",data:H((()=>({width:20,height:19})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M3.5 0.5H18.7965V15.7965H3.5V0.5Z",stroke:"currentColor"},null,-1),Bs("path",{d:"M12.7044 8.70075L10.8424 11.1932L9.64114 9.68464L9.23789 9.17825L8.84981 9.69636L6.59981 12.7002L6.00078 13.5H7H16H16.9791L16.405 12.7068L13.51 8.70685L13.1114 8.15603L12.7044 8.70075Z",stroke:"currentColor"},null,-1),Bs("path",{d:"M1 4V18H15",stroke:"currentColor"},null,-1)]))}]]),fne=Wee({name:"Dining",data:H((()=>({width:72,height:72})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M64 68V48M64 48L64 5H62.5C59.9737 5 52 5 52 48H64Z",stroke:"currentColor","stroke-width":"2"},null,-1),Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M41 4L41 22H31L31 4H29V23V24H30H35L35 68H37L37 24H42H43V23L43 4H41ZM33 4L33 20H35L35 4H33ZM37 20L37 4H39L39 20H37Z",fill:"currentColor"},null,-1),Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 16.7778C20 19.1606 19.3356 20.336 18.6282 20.9588C17.8721 21.6244 16.6835 22 15 22C13.3165 22 12.1279 21.6244 11.3718 20.9588C10.6644 20.336 10 19.1606 10 16.7778C10 14.3418 10.7043 11.4556 11.8349 9.22062C12.3982 8.10706 13.0204 7.24906 13.6256 6.69527C14.23 6.14207 14.691 6 15 6C15.309 6 15.77 6.14207 16.3744 6.69527C16.9796 7.24906 17.6018 8.10706 18.1651 9.22062C19.2957 11.4556 20 14.3418 20 16.7778ZM16 23.9592C19.3923 23.672 22 21.8156 22 16.7778C22 11.2549 18.866 4 15 4C11.134 4 8 11.2549 8 16.7778C8 21.8156 10.6077 23.672 14 23.9592L14 68H16L16 23.9592Z",fill:"currentColor"},null,-1)]))}]]),mne=Wee({name:"Dots",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M14.25 3.75C14.25 4.19501 14.118 4.63002 13.8708 5.00003C13.6236 5.37004 13.2722 5.65843 12.861 5.82873C12.4499 5.99903 11.9975 6.04358 11.561 5.95677C11.1246 5.86995 10.7237 5.65566 10.409 5.34099C10.0943 5.02632 9.88005 4.62541 9.79323 4.18895C9.70642 3.7525 9.75097 3.3001 9.92127 2.88896C10.0916 2.47783 10.38 2.12643 10.75 1.87919C11.12 1.63196 11.555 1.5 12 1.5C12.5967 1.5 13.169 1.73705 13.591 2.15901C14.0129 2.58097 14.25 3.15326 14.25 3.75ZM12 9.75C11.555 9.75 11.12 9.88196 10.75 10.1292C10.38 10.3764 10.0916 10.7278 9.92127 11.139C9.75097 11.5501 9.70642 12.0025 9.79323 12.439C9.88005 12.8754 10.0943 13.2763 10.409 13.591C10.7237 13.9057 11.1246 14.12 11.561 14.2068C11.9975 14.2936 12.4499 14.249 12.861 14.0787C13.2722 13.9084 13.6236 13.62 13.8708 13.25C14.118 12.88 14.25 12.445 14.25 12C14.25 11.4033 14.0129 10.831 13.591 10.409C13.169 9.98705 12.5967 9.75 12 9.75ZM12 18C11.555 18 11.12 18.132 10.75 18.3792C10.38 18.6264 10.
1000916 18.9778 9.92127 19.389C9.75097 19.8001 9.70642 20.2525 9.79323 20.689C9.88005 21.1254 10.0943 21.5263 10.409 21.841C10.7237 22.1557 11.1246 22.37 11.561 22.4568C11.9975 22.5436 12.4499 22.499 12.861 22.3287C13.2722 22.1584 13.6236 21.87 13.8708 21.5C14.118 21.13 14.25 20.695 14.25 20.25C14.25 19.6533 14.0129 19.081 13.591 18.659C13.169 18.2371 12.5967 18 12 18Z",fill:"currentColor"},null,-1)]))}]]),gne=Wee({name:"Download",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M14.2222 8V14.2222H1.77778V8H0V16H16V8H14.2222ZM8.88889 8.59556L11.1911 6.30222L12.4444 7.55556L8 12L3.55556 7.55556L4.80889 6.30222L7.11111 8.59556V0H8.88889V8.59556Z",fill:"currentColor"},null,-1)]))}]]),yne=Wee({name:"Download500",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M14 11V14H2V11H3.5V12.5H12.5V11H14ZM13.5303 6.53027L12.4697 5.46973L8.75 9.18945V1H7.25V9.18945L3.53027 5.46973L2.46973 6.53027L8 12.0605L13.5303 6.53027Z",fill:"currentColor"},null,-1)]))}]]),vne=Wee({name:"ExpandLess",data:H((()=>({width:18,height:10})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M17 9L9 1L1 9",stroke:"currentColor"},null,-1)]))}]]),bne=Wee({name:"ExpandMore",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M8 12.0605L1.46973 5.53027L2.53027 4.46973L8 9.93945L13.4697 4.46973L14.5303 5.53027L8 12.0605Z",fill:"currentColor"},null,-1)]))}]]),_ne=Wee({name:"ExpandMore600",data:H((()=>({width:20,height:12})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M9.99951 11.3818L0.777344 2.15967L2.72168 0.215332L9.99951 7.49316L17.2773 0.215332L19.2217 2.15967L9.99951 11.3818Z",fill:"currentColor"},null,-1)]))}]]),wne=Wee({name:"ExpandRight",data:H((()=>({width:10,height:18})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M1 17L9 9L1 1",stroke:"currentColor"},null,-1)]))}]]),Sne=Wee({name:"ExpandRight600",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M11.9141 8L5.20703 14.707L3.79297 13.293L9.08594 8L3.79297 2.70703L5.20703 1.29297L11.9141 8Z",fill:"black"},null,-1)]))}]]),Cne=Wee({name:"IconEye",data:H((()=>({width:14,height:10})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M6.99997 1.5C9.26136 1.5 11.3061 2.91835 12.1213 5C11.3061 7.08165 9.26136 8.5 6.99997 8.5C4.73858 8.5 2.69383 7.08165 1.87861 5C2.69383 2.91835 4.73858 1.5 6.99997 1.5ZM6.99997 0C3.82947 0 1.15469 2.10926 0.293701 5C1.15469 7.89074 3.82947 10 6.99997 10C10.1705 10 12.8452 7.89074 13.7062 5C12.8452 2.10926 10.1705 0 6.99997 0ZM6.99997 4C7.55137 4 7.99997 4.4486 7.99997 5C7.99997 5.5514 7.55137 6 6.99997 6C6.44857 6 5.99997 5.5514 5.99997 5C5.99997 4.4486 6.44857 4 6.99997 4ZM6.99997 2.5C5.61926 2.5 4.49997 3.61929 4.49997 5C4.49997 6.38071 5.61926 7.5 6.99997 7.5C8.38068 7.5 9.49997 6.38071 9.49997 5C9.49997 3.61929 8.38068 2.5 6.99997 2.5Z",fill:"currentColor"},null,-1)]))}]]),kne=Wee({name:"Facebook",components:{Facebook16:Wee({name:"Facebook16",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M14.6667 8.00004C14.6667 4.31814 11.6819 1.33337 8 1.33337C4.3181 1.33337 1.33333 4.31814 1.33333 8.00004C1.33333 11.3276 3.77123 14.0856 6.95833 14.5857V9.92712H5.26562V8.00004H6.95833V6.53129C6.95833 4.86046 7.95362 3.93754 9.47642 3.93754C10.2058 3.93754 10.9687 4.06775 10.9687 4.06775V5.70837H10.1281C9.29993 5.70837 9.04166 6.22226 9.04166 6.74948V8.00004H10.8906L10.595 9.92712H9.04166V14.5857C12.2288 14.0856 14.6667 11.3276 14.6667 8.00004Z",fill:"currentColor"},null,-1)]))}]]),Facebook24:Wee({name:"Facebook24",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 16.9913 5.65686 21.1283 10.4375 21.8785V14.8906H7.89844V12H10.4375V9.79688C10.4375 7.29062 11.9304 5.90625 14.2146 5.90625C15.3087 5.90625 16.4531 6.10156 16.4531 6.10156V8.5625H15.1921C13.9499 8.5625 13.5625 9.33333 13.5625 10.1242V12H16.3359L15.8926 14.8906H13.5625V21.8785C18.3431 21.1283 22 16.9913 22 12Z",fill:"currentColor"},null,-1)]))}]])},mixins:[yte]},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(e.iconPathName))}]]),xne=Wee({name:"FacebookConnect",data:H((()=>({width:44,height:44})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M39.6 0H4.4C1.96167 0 0 1.96167 0 4.4V39.6C0 42.0383 1.96167 44 4.4 44H16.6467V28.1417H10.4867V21.12H16.6467V15.7667C16.6467 9.68 20.2767 6.325 25.8133 6.325C28.4717 6.325 31.24 6.80167 31.24 6.80167V12.7783H28.1783C25.1717 12.7783 24.2183 14.6483 24.2183 16.5733V21.12H30.9467L29.865 28.1417H24.2183V44H39.5817C42.02 44 43.9817 42.0383 43.9817 39.6V4.4C43.9817 1.96167 42.02 0 39.5817 0H39.6Z",fill:"currentColor"},null,-1)]))}]]),Tne=Wee({name:"IconFaceMask",data:H((()=>({width:136,height:136})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M131.203 50.7007C130.204 48.9816 128.173 46.9951 124.164 47.2915L113.991 47.6337C113.095 47.6629 112.234 47.6771 111.394 47.6771C81.2438 47.6771 86.0342 29.3162 68.003 29.3162C49.9706 29.3162 54.7684 47.6771 24.6122 47.6771C23.7742 47.6771 22.9086 47.6629 22.0153 47.6337L11.8369 47.2915C7.82822 46.9951 5.79673 48.9816 4.79752 50.7007C2.48899 54.6719 3.3682 61.7674 6.79946 66.8543C10.6178 72.5164 16.4251 74.3721 27.5398 76.5654C33.2102 91.523 44.701 106.684 68.003 106.684C91.3055 106.684 102.796 91.5222 108.467 76.5643C119.578 74.3715 125.384 72.5154 129.201 66.8543C132.633 61.7674 133.512 54.6719 131.203 50.7007ZM8.67169 65.5917C5.73452 61.2367 4.87252 55.0659
1006.75005 51.8358C7.73469 50.1422 9.39826 49.3684 11.6896 49.5458L11.7355 49.548L22.0917 49.9124C22.3138 54.1787 23.1917 63.878 26.6474 74.0806C16.2282 71.9455 11.7212 70.1129 8.67169 65.5917ZM92.827 95.398C86.1799 101.088 77.8279 103.973 68.003 103.973C58.2046 103.973 49.8709 101.104 43.2332 95.4443C37.8578 90.8612 33.5196 84.4212 30.3394 76.3031C26.2469 65.8561 25.1373 55.2556 24.8369 50.3871C42.7879 50.3336 49.3093 43.8691 54.5533 38.6705C58.4441 34.8134 61.2553 32.0266 68.003 32.0266C74.7506 32.0266 77.5627 34.8137 81.4549 38.6712C86.7001 43.8698 93.222 50.3344 111.171 50.3871C110.876 55.2286 109.779 65.7428 105.717 76.1751C102.543 84.326 98.206 90.7935 92.827 95.398ZM127.329 65.5917C124.28 70.1121 119.774 71.9449 109.359 74.0795C112.814 63.8771 113.692 54.1782 113.914 49.9122L124.265 49.548L124.311 49.5458C126.603 49.3684 128.266 50.1422 129.251 51.8358C131.128 55.0659 130.266 61.2367 127.329 65.5917Z",fill:"currentColor"},null,-1),Bs("path",{d:"M67.6184 75.504C55.9985 75.504 45.5702 73.5497 35.7372 69.5291C35.0444 69.2459 34.7125 68.4549 34.9957 67.7618C35.2791 67.0688 36.0703 66.737 36.7629 67.0205C46.2642 70.905 56.357 72.7936 67.6184 72.7936C78.8794 72.7936 88.9724 70.905 98.4739 67.0205C99.1663 66.7373 99.9579 67.069 100.241 67.7618C100.524 68.4549 100.192 69.2459 99.4995 69.5295C89.6663 73.5497 79.238 75.504 67.6184 75.504Z",fill:"currentColor"},null,-1),Bs("path",{d:"M67.6205 92.0457C55.3475 92.0457 44.177 87.9567 38.4683 81.3748C37.9777 80.8092 38.0386 79.9534 38.6039 79.4628C39.1699 78.9723 40.0258 79.034 40.5156 79.5987C45.7247 85.6045 56.1105 89.3353 67.6205 89.3353C79.1303 89.3353 89.516 85.6045 94.7251 79.5987C95.2152 79.0336 96.0715 78.9727 96.6368 79.4628C97.2022 79.9534 97.263 80.8092 96.7725 81.3748C91.0638 87.9567 79.8932 92.0457 67.6205 92.0457Z",fill:"currentColor"},null,-1),Bs("path",{d:"M42.2839 58.471C40.0938 58.471 37.7749 58.254 35.2987 57.7323C34.5664 57.5779 34.0977 56.8593 34.2521 56.1268C34.4065 55.3944 35.1262 54.9273 35.8576 55.0801C44.3032 56.8599 50.961 54.744 56.8349 52.8777C60.6657 51.6603 64.2837 50.5105 67.9927 50.5105C71.7017 50.5105 75.32 51.6603 79.1509 52.8777C85.0248 54.7444 91.682 56.8604 100.128 55.0801C100.862 54.9264 101.579 55.3947 101.733 56.1268C101.888 56.8593 101.419 57.5779 100.687 57.7323C91.5417 59.6595 84.5225 57.429 78.3299 55.4608C74.7052 54.309 71.2815 53.2209 67.9927 53.2209C64.7041 53.2209 61.2804 54.309 57.6557 55.4608C53.1397 56.8959 48.1829 58.471 42.2839 58.471Z",fill:"currentColor"},null,-1)]))}]]),Ene=Wee({name:"Rewind",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M13.5 19.5V12V4.5L24 12L13.5 19.5ZM3 19.5L13.5 12L3 4.5V19.5Z",fill:"currentColor"},null,-1)]))}
100]]),Ane=Wee({name:"Filters",data:H((()=>({width:23,height:19})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M0 15.2V16.4667H7.66667V15.2H0ZM0 2.53333V3.8H12.7778V2.53333H0ZM11.5 19V16.4667H23V15.2H11.5V12.6667H10.2222V19H11.5ZM6.38889 6.33333V8.86667H0V10.1333H6.38889V12.6667H7.66667V6.33333H6.38889ZM23 10.1333V8.86667H10.2222V10.1333H23ZM15.3333 6.33333H16.6111V3.8H23V2.53333H16.6111V0H15.3333V6.33333Z",fill:"currentColor"},null,-1)]))}]]),Lne=Wee({name:"Filters500",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M7.87234 4.5C7.55151 3.48935 6.61542 2.75 5.5 2.75C4.38458 2.75 3.44849 3.48935 3.12766 4.5H1V6H3.12766C3.44849 7.01065 4.38458 7.75 5.5 7.75C6.61542 7.75 7.55151 7.01065 7.87234 6H15V4.5H7.87234ZM5.5 6.25C4.94873 6.25 4.5 5.80151 4.5 5.25C4.5 4.69849 4.94873 4.25 5.5 4.25C6.05127 4.25 6.5 4.69849 6.5 5.25C6.5 5.80151 6.05127 6.25 5.5 6.25Z",fill:"currentColor"},null,-1),Bs("path",{d:"M10.5 8.25C9.38458 8.25 8.44849 8.98935 8.12766 10H1V11.5H8.12766C8.44849 12.5107 9.38458 13.25 10.5 13.25C11.6154 13.25 12.5515 12.5107 12.8723 11.5H15V10H12.8723C12.5515 8.98935 11.6154 8.25 10.5 8.25ZM10.5 11.75C9.94873 11.75 9.5 11.3013 9.5 10.75C9.5 10.1987 9.94873 9.75 10.5 9.75C11.0513 9.75 11.5 10.1987 11.5 10.75C11.5 11.3013 11.0513 11.75 10.5 11.75Z",fill:"currentColor"},null,-1)]))}]]),Ine=Wee({name:"IconFolder",data:H((()=>({width:28,height:21})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M12.5475 3.99994H27.5V20.4999H0.5V0.499939H8.84039L12.1939 3.85349L12.3404 3.99994H12.5475Z",stroke:"currentColor"},null,-1)]))}]]),$ne=Wee({name:"FullScreen",data:H((()=>({width:16,height:17})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M2.28571 10.9579H0V16.6875H5.71429V14.3956H2.28571V10.9579ZM0 6.37416H2.28571V2.93638H5.71429V0.644531H0V6.37416ZM13.7143 14.3956H10.2857V16.6875H16V10.9579H13.7143V14.3956ZM10.2857 0.644531V2.93638H13.7143V6.37416H16V0.644531H10.2857Z",fill:"currentColor"},null,-1)]))}]]),Dne=Wee({name:"FullScreenExit",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M0 12.5714H3.42857V16H5.71429V10.2857H0V12.5714ZM3.42857 3.42857H0V5.71429H5.71429V0H3.42857V3.42857ZM10.2857 16H12.5714V12.5714H16V10.2857H10.2857V16ZM12.5714 3.42857V0H10.2857V5.71429H16V3.42857H12.5714Z",fill:"currentColor"},null,-1)]))}]]),Pne=Wee({name:"FullScreenVideo",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M18.75 9V6.84082L13.5908 12L18.75 17.1591V15H21V21H15V18.75H17.1592L12 13.5908L6.84082 18.75H9V21H3L3 15H5.25V17.1592L10.4092 12L5.25 6.84082V9H3V3H9V5.25H6.84082L12 10.4092L17.1592 5.25H15V3H21V9H18.75Z",fill:"currentColor"},null,-1)]))}]]),One=Wee({name:"FullScreenVideo400",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M14 6V2H10V3H12.295L8 7.295L3.705 3H6V2H2V6H3V3.705L7.295 8L3 12.295V10H2V14H6V13H3.705L8 8.705L12.295 13H10V14H14V10H13V12.295L8.705 8L13 3.705V6H14Z",fill:"currentColor"},null,-1)]))}]]),Mne=Wee({name:"FullScreenVideoExit",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M8.25008 6.66008L3.79507 2.20508L2.20508 3.79508L6.66007 8.25008H3.00008V10.5001H10.5001V3.00008H8.25008V6.66008Z",fill:"currentColor"},null,-1),Bs("path",{d:"M21 8.25008H17.34L21.795 3.79508L20.205 2.20508L15.75 6.66008V3.00008H13.5V10.5001H21V8.25008Z",fill:"currentColor"},null,-1),Bs("path",{d:"M3.00008 15.75H6.66007L2.20508 20.205L3.79507 21.795L8.25008 17.34V21H10.5001V13.5H3.00008V15.75Z",fill:"currentColor"},null,-1),Bs("path",{d:"M21 15.75V13.5H13.5V21H15.75V17.34L20.205 21.795L21.795 20.205L17.34 15.75H21Z",fill:"currentColor"},null,-1)]))}]]),Rne=Wee({name:"FullScreenVideoExit400",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M6.00002 5.29453L2.35502 1.64453L1.64502 2.35453L5.29502 5.99953H2.00002V6.99953H7.00002V1.99953H6.00002V5.29453Z",fill:"currentColor"},null,-1),Bs("path",{d:"M14 5.99953H10.705L14.355 2.35453L13.645 1.64453L10 5.29453V1.99953H9V6.99953H14V5.99953Z",fill:"currentColor"},null,-1),Bs("path",{d:"M2.00002 10H5.29502L1.64502 13.645L2.35502 14.355L6.00002 10.705V14H7.00002V9H2.00002V10Z",fill:"currentColor"},null,-1),Bs("path",{d:"M14 10V9H9V14H10V10.705L13.645 14.355L14.355 13.645L10.705 10H14Z",fill:"currentColor"},null,-1)]))}]]),Nne=Wee({name:"Github",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.99956 1.33337C4.31843 1.33337 1.33333 4.31811 1.33333 8.00043C1.33333 10.9456 3.24335 13.4443 5.89273 14.326C6.22608 14.3871 6.34775 14.1813 6.34775 14.0046C6.34775 13.8464 6.34198 13.4271 6.33875 12.8708C4.4843 13.2737 4.09301 11.9771 4.09301 11.9771C3.78987 11.207 3.35282 11.0019 3.35282 11.0019C2.74753 10.5883 3.39862 10.5967 3.39862 10.5967C4.06764 10.6438 4.41976 11.2837 4.41976 11.2837C5.01446 12.3025 5.98007 12.0083 6.35994 11.8377C6.42052 11.4068 6.59273 11.1131 6.7832 10.9464C5.30283 10.7782 3.74653 10.2062 3.74653 7.65153C3.74653 6.92375 4.00629 6.32864 4.43274 5.86262C4.36419 5.69396 4.13541 5.01614 4.4981 4.0983C4.4981 4.0983 5.05784 3.91904 6.33138 4.78172C6.86313 4.63385 7.43343 4.5599 8.00038 4.55732C8.56651 4.5599 9.13686 4.63385 9.66939 4.78172C10.9421 3.91904 11.5009 4.0983 11.5009 4.0983C11.8646 5.01614 11.6358 5.69396 11.5672 5.86262C11.9945 6.32864 12.2525 6.92375 12.2525 7.65153C12.2525 10.2126 10.6938 10.7762 9.2086 10.9412C9.44798 11.147 9.6612 11.5539 9.6612 12.1758C9.6612 13.067 9.65302 13.7861 9.65302 14.0046C9.65302 14.1829 9.77309 14.3903 10.1114 14.3252C12.7582 13.4419 14.6667 10.9448 14.6667 8.00043C14.6667 4.31811 11.6815 1.33337 7.99956 1.33337Z",fill:"currentColor"},null,-1)]))}
100]]),Fne=Wee({name:"GooglePodcasts",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0ZM4.09211 8.35526C4.09211 8.71525 3.80078 9.00658 3.44079 9.00658C3.0808 9.00658 2.78947 8.71525 2.78947 8.35526V7.64474C2.78947 7.28475 3.0808 6.99342 3.44079 6.99342C3.80078 6.99342 4.09211 7.28475 4.09211 7.64474V8.35526ZM6.34211 10.4868C6.34211 10.8468 6.05078 11.1382 5.69079 11.1382C5.3308 11.1382 5.03947 10.8468 5.03947 10.4868V9.77632C5.03947 9.41632 5.3308 9.125 5.69079 9.125C6.05078 9.125 6.34211 9.41632 6.34211 9.77632V10.4868ZM6.34211 7.83717H6.34151C6.33321 8.19007 6.04546 8.47368 5.69079 8.47368C5.33612 8.47368 5.04834 8.19007 5.04006 7.83717H5.03947V5.51316C5.03947 5.15317 5.3308 4.86184 5.69079 4.86184C6.05078 4.86184 6.34211 5.15317 6.34211 5.51316V7.83717ZM8.65132 12.5592C8.65132 12.9192 8.35999 13.2105 8 13.2105C7.64001 13.2105 7.34868 12.9192 7.34868 12.5592V11.8487C7.34868 11.4887 7.64001 11.1974 8 11.1974C8.35999 11.1974 8.65132 11.4887 8.65132 11.8487V12.5592ZM8.65132 7.68442V8.31558V9.89474C8.65132 10.2547 8.35999 10.5461 8 10.5461C7.64001 10.5461 7.34868 10.2547 7.34868 9.89474V8.31618V7.68442V6.10526C7.34868 5.74527 7.64001 5.45395 8 5.45395C8.35999 5.45395 8.65132 5.74527 8.65132 6.10526V7.68442ZM8.65132 4.15132C8.65132 4.51131 8.35999 4.80263 8 4.80263C7.64001 4.80263 7.34868 4.51131 7.34868 4.15132V3.44079C7.34868 3.0808 7.64001 2.78947 8 2.78947C8.35999 2.78947 8.65132 3.0808 8.65132 3.44079V4.15132ZM10.9605 10.4868C10.9605 10.8468 10.6692 11.1382 10.3092 11.1382C9.94922 11.1382 9.6579 10.8468 9.6579 10.4868V8.17763C9.6579 7.81764 9.94922 7.52632 10.3092 7.52632C10.6692 7.52632 10.9605 7.81764 10.9605 8.17763V10.4868ZM10.9605 6.22368C10.9605 6.58368 10.6692 6.875 10.3092 6.875C9.94922 6.875 9.6579 6.58368 9.6579 6.22368V5.51316C9.6579 5.15317 9.94922 4.86184 10.3092 4.86184C10.6692 4.86184 10.9605 5.15317 10.9605 5.51316V6.22368ZM13.2105 8.35526C13.2105 8.71525 12.9192 9.00658 12.5592 9.00658C12.1992 9.00658 11.9079 8.71525 11.9079 8.35526V7.64474C11.9079 7.28475 12.1992 6.99342 12.5592 6.99342C12.9192 6.99342 13.2105 7.28475 13.2105 7.64474V8.35526Z",fill:"currentColor"},null,-1)]))}]]),Bne=Wee({name:"Grid",components:{Grid16:Wee({name:"Grid16",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 2L7 2L7 7L2 7L2 2ZM3 3L3 6L6 6V3L3 3Z",fill:"currentColor"},null,-1),Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 9H7L7 14H2L2 9ZM3 10L3 13H6V10H3Z",fill:"currentColor"},null,-1),Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9 2L14 2V7L9 7V2ZM10 3V6L13 6V3L10 3Z",fill:"currentColor"},null,-1),Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9 9H14V14H9V9ZM10 10V13H13V10H10Z",fill:"currentColor"},null,-1)]))}]]),Grid24:Wee({name:"Grid24",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 3H10.5V10.5H3V3ZM4.5 4.5V9H9V4.5H4.5Z",fill:"currentColor"},null,-1),Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 13.5H10.5V21H3V13.5ZM4.5 15V19.5H9V15H4.5Z",fill:"currentColor"},null,-1),Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.5 3H21V10.5H13.5V3ZM15 4.5V9H19.5V4.5H15Z",fill:"currentColor"},null,-1),Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.5 13.5H21V21H13.5V13.5ZM15 15V19.5H19.5V15H15Z",fill:"currentColor"},null,-1)]))}]])},mixins:[yte]},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(e.iconPathName))}]]),Hne=Wee({name:"Hamburger",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z",fill:"currentColor"},null,-1)]))}]]),jne=Wee({name:"HandWashing",data:H((()=>({width:136,height:136})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M114.222 80.7136C113.353 79.007 111.873 77.7395 110.056 77.1386C112.031 74.9808 112.579 71.7418 111.174 68.9861C110.299 67.2678 108.807 65.9933 106.973 65.3973C10
1005.138 64.8015 103.183 64.9553 101.464 65.831L100.389 66.3788C100.622 65.1563 100.534 63.9087 100.134 62.7326C101.623 60.9734 102.194 58.5967 101.628 56.3231C101.161 54.452 99.9935 52.8744 98.3405 51.8812C96.6876 50.8879 94.7474 50.5985 92.887 51.0617L66.1812 57.4767L55.6363 60.063C55.4518 59.1641 55.1364 58.322 54.6476 57.592C55.2788 56.3562 57.3655 52.1395 58.1161 48.9795C59.0787 44.928 58.6724 41.7802 56.9092 39.6241C54.5953 36.7948 50.8579 36.8879 50.7013 36.8905C50.3347 36.9029 49.9884 37.0634 49.7423 37.3352C49.1952 37.9393 36.2647 52.2528 29.5041 62.9613C26.3428 67.9685 21.2789 81.9867 21.0649 82.5809C20.8113 83.285 21.1766 84.0614 21.8806 84.3151C22.0324 84.3698 22.1872 84.3958 22.3399 84.3958C22.8953 84.3958 23.4158 84.0517 23.6148 83.4994C23.6664 83.3565 28.7908 69.1678 31.7963 64.4083C37.7536 54.9719 48.9967 42.2366 51.3238 39.6311C52.1523 39.7207 53.7642 40.0604 54.8111 41.3399C56.0114 42.8074 56.236 45.1671 55.479 48.3531C54.8927 50.8219 53.314 54.1818 52.5275 55.7724C51.2682 55.1874 49.6994 55.0565 47.825 55.4022C47.447 55.4719 47.1161 55.6991 46.9149 56.0271C46.4614 56.7676 35.7817 74.2849 33.3302 85.1802C32.2591 89.9402 27.7911 103.934 27.7461 104.075C27.5181 104.788 27.9116 105.551 28.6245 105.778C28.7617 105.822 28.9006 105.843 29.0374 105.843C29.6109 105.843 30.1438 105.476 30.3277 104.9C30.513 104.321 34.8773 90.6509 35.9744 85.7749C38.0964 76.344 47.0821 61.0224 48.9041 57.9774C50.4446 57.7915 51.5536 58.082 52.2065 58.844C53.7823 60.6819 53.1717 65.2786 51.8668 69.0189C50.3431 73.3867 48.1321 81.5244 48.0385 81.8689C47.8965 82.3921 48.0805 82.9502 48.5057 83.2863C48.9319 83.6234 49.5173 83.6732 49.9928 83.4147L91.2535 61.0229C93.4694 59.894 96.1895 60.7785 97.3184 62.9935C97.865 64.0668 97.9611 65.2886 97.5888 66.434C97.3152 67.2768 96.8103 68.0026 96.1386 68.5445L81.6148 75.9447L81.6206 75.9561L70.1802 81.7048C69.5115 82.041 69.2415 82.8553 69.5776 83.5241C69.9138 84.1933 70.7295 84.462 71.3969 84.1267L96.5781 71.4732C96.9251 71.2965 97.2484 71.0884 97.5572 70.8637L102.695 68.2458C103.768 67.6992 104.99 67.6026 106.135 67.9752C107.281 68.3473 108.213 69.1433 108.76 70.2164C109.888 72.4319 109.004 75.1524 106.789 76.2813L93.6227 82.9898L79.9504 89.8087C79.2807 90.1427 79.0085 90.9566 79.3425 91.6262C79.6768 92.2964 80.4912 92.569 81.16 92.2341L88.141 88.7525L88.1703 88.81L94.8517 85.4056L105.743 79.9737C106.815 79.4272 108.038 79.331 109.183 79.7029C110.329 80.0752 111.26 80.871 111.807 81.9444C112.354 83.0177 112.45 84.2397 112.078 85.3849C111.706 86.5305 110.91 87.4622 109.837 88.0093L102.709 91.6412C102.345 91.7589 101.985 91.898 101.633 92.0771L81.7838 102.191C81.1172 102.531 80.8521 103.347 81.1918 104.014C81.5314 104.681 82.348 104.945 83.0146 104.606L90.7382 100.67C90.901 100.654 91.0636 100.617 91.2182 100.538L103.754 94.1507C105.759 93.6082 107.923 94.4887 108.882 96.3699C109.984 98.5342 109.079 101.213 106.879 102.335L68.0786 121.507L68.0243 121.535C67.9842 121.557 63.9486 123.762 58.2004 125.284C52.5136 126.791 39.8288 125.459 39.7017 125.445C38.9606 125.369 38.2892 125.904 38.2102 126.649C38.1303 127.393 38.669 128.061 39.4132 128.141C39.7507 128.176 44.8548 128.713 50.1437 128.713C53.3266 128.712 56.5765 128.518 58.8948 127.905C64.789 126.343 68.8886 124.151 69.305 123.924L108.095 104.757C111.642 102.95 113.078 98.6352 111.297 95.1391C110.562 93.6969 109.389 92.6229 108.019 91.9773L111.068 90.4241C112.786 89.5489 114.06 88.0565 114.656 86.2226C115.252 84.3883 115.098 82.4323 114.222 80.7136ZM89.9918 58.6244L51.5073 79.5092C52.3062 76.681 53.5101 72.5373 54.4264 69.9116C54.8542 68.6844 55.7638 65.7466 55.8474 62.8
10002L66.8209 60.1106L93.5316 53.6943C94.7006 53.4042 95.9125 53.5847 96.9447 54.2045C97.977 54.825 98.7062 55.81 98.9974 56.9789C99.2694 58.0696 99.1133 59.1945 98.6089 60.1575C96.47 57.8356 92.9649 57.1088 89.9918 58.6244Z",fill:"currentColor"},null,-1),Bs("path",{d:"M78.0946 47.3403C75.3957 47.3403 72.8745 46.1408 71.1779 44.0498C69.5006 41.9821 68.8459 39.3365 69.3824 36.7913C70.5073 31.4539 76.593 17.4123 76.8515 16.8172L78.0505 14.0574L79.3228 16.7841C79.5862 17.349 85.7896 30.6898 86.817 36.8478V36.8476C87.2701 39.5615 86.5444 42.2814 84.8266 44.31C83.1714 46.2641 80.7808 47.3403 78.0946 47.3403ZM78.1317 20.7333C76.2647 25.1836 72.8092 33.6755 72.0346 37.3503C71.6675 39.0924 72.1224 40.9116 73.283 42.3421C74.4622 43.7961 76.2162 44.6299 78.0946 44.6299C79.9708 44.6299 81.6269 43.8943 82.758 42.5585C83.9601 41.1391 84.4653 39.2203 84.1437 37.294V37.2938C83.4484 33.1287 80.0255 25.0164 78.1317 20.7333Z",fill:"currentColor"},null,-1),Bs("path",{d:"M64.6505 28.5181C62.9151 28.5181 61.2943 27.7467 60.2029 26.4019C59.123 25.0703 58.7021 23.3646 59.048 21.7217C59.711 18.5754 63.257 10.3937 63.4074 10.0469L64.6064 7.28711L65.8787 10.0138C66.0327 10.3438 69.6563 18.1367 70.2637 21.7782C70.5536 23.5154 70.0868 25.2591 68.9835 26.562C67.915 27.8235 66.3763 28.5181 64.6505 28.5181ZM64.6845 13.997C63.5843 16.6677 62.0764 20.4955 61.7001 22.2807C61.5232 23.1202 61.7447 24 62.308 24.6942C62.882 25.4018 63.736 25.8076 64.6505 25.8076C65.824 25.8076 66.5298 25.2652 66.915 24.8102C67.4942 24.1266 67.7465 23.1601 67.5904 22.2242C67.256 20.2192 65.7852 16.557 64.6845 13.997Z",fill:"currentColor"},null,-1)]))}]]),Une=Wee({name:"Heart",data:H((()=>({width:72,height:72})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M35.3322 17.5718L35.9983 18.1667L36.6644 17.5718C39.1455 15.3562 42.4094 14 46 14C53.7363 14 60 20.2416 60 27.9311C60 31.7865 58.4266 35.2744 55.8808 37.7986L55.8794 37.7999L35.999 57.589L16.0989 37.7803C10.6337 32.3402 10.6337 23.5221 16.0989 18.082L16.0989 18.082C21.3823 12.8228 29.8339 12.6608 35.3322 17.5718Z",stroke:"currentColor","stroke-width":"2"},null,-1)]))}]]),Vne=Wee({name:"IIIF",data:H((()=>({width:113,height:100})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M2.91023 34.1768L24.3604 42.145L24.3226 99.5469L2.91023 91.6541V34.1768Z",fill:"#2873AB"},null,-1),Bs("path",{d:"M25.2336 20.239C27.694 27.5172 24.4338 33.4173 17.9514 33.4173C11.4693 33.4173 4.21995 27.5172 1.75948 20.239C-0.700746 12.9614 2.5595 7.06135 9.04162 7.06135C15.524 7.06135 22.7731 12.9614 25.2336 20.239Z",fill:"#2873AB"},null,-1),Bs("path",{d:"M51.6516 34.1768L30.2013 42.145L30.2391 99.5469L51.6516 91.6541V34.1768Z",fill:"#ED1D33"},null,-1),Bs("path",{d:"M29.1894 20.239C26.729 27.5172 29.9893 33.4173 36.4715 33.4173C42.9537 33.4173 50.2029 27.5172 52.6636 20.239C55.1238 12.9614 51.8636 7.06135 45.3815 7.06135C38.899 7.06135 31.6497 12.9614 29.1894 20.239Z",fill:"#ED1D33"},null,-1),Bs("path",{d:"M57.1398 34.1768L78.5899 42.145L78.5522 99.5469L57.1398 91.6541V34.1768",fill:"#2873AB"},null,-1),Bs("path",{d:"M79.602 20.239C82.0627 27.5172 78.8023 33.4173 72.3201 33.4173C65.8374 33.4173 58.5884 27.5172 56.128 20.239C53.6676 12.9614 56.928 7.06135 63.4099 7.06135C69.8923 7.06135 77.1413 12.9614 79.602 20.239Z",fill:"#2873AB"},null,-1),Bs("path",{d:"M112.729 3.06107e-05V19.713C112.729 19.713 105.78 16.994 104.949 24.0182C104.874 31.4955 104.949 34.1768 104.949 34.1768L112.729 31.6466V48.9426L104.916 51.7372V92.0695L83.5748 100V28.7009C83.5748 28.7009 83.1216 3.02118 112.729 3.06107e-05Z",fill:"#ED1D33"},null,-1)]))}]]),qne=Wee({name:"ImageAvailable",data:H((()=>({width:20,height:20})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.2523 16.2941L11.901 8.9003L9.21593 12.4944L7.32873 10.1244L2.70744 16.2941H17.2523ZM7.35294 11.7601L9.24118 14.1314L11.8882 10.5882L15.2941 15.2941H4.70588L7.35294 11.7601Z",fill:"currentColor"},null,-1),Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 20H20V0H0V20ZM19 1V19H1V1H19Z",fill:"currentColor"},null,-1)]))}]]),zne=Wee({name:"ImageAvailable28",data:H((()=>({width:28,height:28})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M17.7289 13.4819L17.3354 12.958L16.9339 13.4759L12.65 19.0021L9.719 15.4548L9.32161 14.9739L8.93877 15.4665L4.2721 21.4709L3.64503 22.2778H4.66688H23.3336H24.3343L23.7334 21.4775L17.7289 13.4819ZM27.3891 0.611084V27.3889H0.611328V0.611084H27.3891Z",stroke:"currentColor"},null,-1)]))}]]),Wne=Wee({name:"ImageContainer",data:H((()=>({width:21,height:19})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.2959 9.75L15.8564 18.9722L0.5 18.9724V4.61133H3.6875V0.5H15.4792V6.79883H16.9167V9.75H20.2959ZM7.65618 6.18027L5.19637 9.75H4.6875V1.5H14.4792V9.75H14.0283L10.
100651 4.92529L9.01646 7.54056L7.65618 6.18027ZM3.6875 11.7374L1.5 16.2815V5.61133H3.6875V11.7374ZM1.79594 17.9722L5.27268 10.75H18.7047L15.228 17.9722H1.79594ZM7.79822 7.73653L9.19822 9.13653L10.6982 6.73653L12.7982 9.7365H6.4201L7.79822 7.73653ZM15.4792 9.75V7.79883H15.9167V9.75H15.4792Z",fill:"currentColor"},null,-1)]))}]]),Gne=Wee({name:"ImageUnavailable",data:H((()=>({width:52,height:52})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M44.4536 4H6.45361V47.3588H44.4536V4ZM40.2314 42.5412H10.6758V8.81765H40.2314V42.5412ZM29.5914 26.378L23.7858 34.9052L19.6481 29.2204L13.8425 37.7235H37.0647L29.5914 26.378Z",fill:"currentColor"},null,-1),Bs("path",{d:"M48.6568 50.3536L49.0103 50.7071L49.3639 50.3536L50.3536 49.3639L50.7071 49.0103L50.3536 48.6568L3.34324 1.64645L2.98969 1.29289L2.63614 1.64645L1.64645 2.63614L1.29289 2.98969L1.64645 3.34324L48.6568 50.3536Z",fill:"currentColor",stroke:"#F5F5F5"},null,-1)]))}]]),Kne=Wee({name:"Info",data:H((()=>({width:2,height:12})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1 2C1.55228 2 2 1.55228 2 1C2 0.447715 1.55228 0 1 0C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2ZM2 12V4H0V12H2Z",fill:"currentColor"},null,-1)]))}]]),Yne=Wee({name:"Instagram",components:{Instagram16:Wee({name:"Instagram16",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M8 2.53458C9.78008 2.53458 9.99092 2.54136 10.6939 2.57344C11.3439 2.6031 11.6969 2.71169 11.9318 2.80299C12.243 2.92392 12.4651 3.0684 12.6983 3.30168C12.9316 3.53497 13.0761 3.75705 13.197 4.06823C13.2883 4.30315 13.3969 4.65615 13.4266 5.30613C13.4587 6.00912 13.4655 6.21996 13.4655 8.00004C13.4655 9.78012 13.4587 9.99096 13.4266 10.6939C13.3969 11.3439 13.2883 11.6969 13.197 11.9319C13.0761 12.243 12.9316 12.4651 12.6984 12.6984C12.4651 12.9317 12.243 13.0762 11.9318 13.1971C11.6969 13.2884 11.3439 13.397 10.6939 13.4266C9.99102 13.4587 9.7802 13.4655 8 13.4655C6.2198 13.4655 6.00897 13.4587 5.3061 13.4266C4.65611 13.397 4.30311 13.2884 4.06819 13.1971C3.75701 13.0762 3.53493 12.9317 3.30165 12.6984C3.06837 12.4651 2.92388 12.243 2.80295 11.9319C2.71165 11.6969 2.60305 11.3439 2.57339 10.694C2.54132 9.99096 2.53453 9.78012 2.53453 8.00004C2.53453 6.21996 2.54132 6.00912 2.57339 5.30614C2.60305 4.65615 2.71165 4.30315 2.80295 4.06823C2.92388 3.75705 3.06836 3.53497 3.30164 3.30169C3.53493 3.0684 3.75701 2.92392 4.06819 2.80299C4.30311 2.71169 4.65611 2.6031 5.30609 2.57344C6.00908 2.54136 6.21992 2.53458 8 2.53458ZM8 1.33337C6.18944 1.33337 5.96241 1.34104 5.25134 1.37348C4.54174 1.40586 4.05714 1.51856 3.63307 1.68337C3.19468 1.85373 2.82289 2.08168 2.45227 2.45231C2.08164 2.82294 1.85369 3.19473 1.68332 3.63311C1.51852 4.05718 1.40582 4.54178 1.37344 5.25138C1.341 5.96245 1.33333 6.18948 1.33333 8.00004C1.33333 9.8106 1.341 10.0376 1.37344 10.7487C1.40582 11.4583 1.51852 11.9429 1.68332 12.367C1.85369 12.8054 2.08164 13.1771 2.45227 13.5478C2.82289 13.9184 3.19468 14.1463 3.63307 14.3167C4.05714 14.4815 4.54174 14.5942 5.25134 14.6266C5.96241 14.659 6.18944 14.6667 8 14.6667C9.81056 14.6667 10.0376 14.659 10.7487 14.6266C11.4583 14.5942 11.9429 14.4815 12.3669 14.3167C12.8053 14.1463 13.1771 13.9184 13.5477 13.5478C13.9184 13.1771 14.1463 12.8054 14.3167 12.367C14.4815 11.9429 14.5942 11.4583 14.6266 10.7487C14.659 10.0376 14.6667 9.8106 14.6667 8.00004C14.6667 6.18948 14.659 5.96245 14.6266 5.25138C14.5942 4.54178 14.4815 4.05718 14.3167 3.63311C14.1463 3.19473 13.9184 2.82294 13.5477 2.45231C13.1771 2.08168 12.8053 1.85373 12.3669 1.68337C11.9429 1.51856 11.4583 1.40586 10.7487 1.37348C10.0376 1.34104 9.81056 1.33337 8 1.33337Z",fill:"currentColor"},null,-1),Bs("path",{d:"M8.00039 4.57666C6.10968 4.57666 4.57697 6.10938 4.57697 8.00008C4.57697 9.89079 6.10968 11.4235 8.00039 11.4235C9.89109 11.4235 11.4238 9.89079 11.4238 8.00008C11.4238 6.10938 9.89109 4.57666 8.00039 4.57666ZM8.00039 10.2223C6.77309 10.2223 5.77817 9.22738 5.77817 8.00008C5.77817 6.77278 6.77309 5.77786 8.00039 5.77786C9.22769 5.77786 10.2226 6.77278 10.2226 8.00008C10.2226 9.22738 9.22769 10.2223 8.00039 10.2223Z",fill:"currentColor"},null,-1),Bs("path",{d:"M11.5586 5.24137C12.0004 5.24137 12.3586 4.88319 12.3586 4.44136C12.3586 3.99953 12.0004 3.64136 11.5586 3.64136C11.1168 3.64136 10.7586 3.99953 10.7586 4.44136C10.7586 4.88319 11.1168 5.24137 11.5586 5.24137Z",fill:"currentColor"},null,-1)]))}]]),Instagram24:Wee({name:"Instagram24",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M12 3.8018C14.6701 3.8018 14.9864 3.81199 16.0408 3.86009C17.0158 3.90458 17.5453 4.06748 17.8977 4.20442C18.3645 4.38582 18.6976 4.60254 19.0475 4.95246C19.3975 5.30239 19.6142 5.63552 19.7956 6.10228C19.9325 6.45466 20.0954 6.98417 20.1399 7.95913C20.188 9.01361 20.1982 9.32988 20.1982 12C20.1982 14.6701 20.188 14.9864 20.1399 16.0408C20.0954 17.0158 19.9325 17.5453 19.7956 17.8977C19.6142 18.3645 19.3975 18.6976 19.0475 19.0475C18.6976 19.3975 18.3645 19.6142 17.8977 19.7956C17.5453 19.9325 17.0158 20.0954 16.0408 20.1399C14.9865 20.188 14.6703 20.1982 12 20.1982C9.3297 20.1982 9.01346 20.188 7.95915 20.1399C6.98417 20.0954 6.45466 19.9325 6.10228 19.7956C5.63552 19.6142 5.30239 19.3975 4.95248 19.0475C4.60255 18.6976 4.38582 18.3645 4.20442 17.8977C4.06748 17.5453 3.90458 17.0158 3.86009 16.0409C3.81199 14.9864 3.8018 14.6701 3.8018 12C3.8018 9.32988 3.81199 9.01361 3.86009 7.95915C3.90458 6.98417 4.06748 6.45466 4.20442 6.10228C4.38582 5.63552 4.60254 5.30239 4.95246 4.95248C5.30239 4.60254 5.63552 4.38582 6.10228 4.20442C6.45466 4.06748 6.98417 3.90458 7.95913 3.86009C9.01361 3.81199 9.32988 3.8018 12 3.8018ZM12 2C9.28416 2 8.94362 2.0115 7.87702 2.06017C6.81261 2.10873 6.08571 2.27778 5.44961 2.52499C4.79203 2.78054 4.23434 3.12247 3.6784 3.6784C3.12247 4.23434 2.78054 4.79203 2.52499 5.44961C2.27778 6.08571 2.10873 6.81261 2.06017 7.87702C2.0115 8.94362 2 9.28415 2 12C2 14.7158 2.0115 15.0564 2.06017 16.123C2.10873 17.1874 2.27778 17.9143 2.52499 18.5504C2.78054 19.208 3.12247 19.7657 3.6784 20.3216C4.23434 20.8775 4.79203 21.2195 5.44961 21.475C6.08571 21.7222 6.81261 21.8913 7.87702 21.9398C8.94362 21.9885 9.28416 22 12 22C14.7158 22 15.0564 21.9885 16.
100123 21.9398C17.1874 21.8913 17.9143 21.7222 18.5504 21.475C19.208 21.2195 19.7657 20.8775 20.3216 20.3216C20.8775 19.7657 21.2195 19.208 21.475 18.5504C21.7222 17.9143 21.8913 17.1874 21.9398 16.123C21.9885 15.0564 22 14.7158 22 12C22 9.28416 21.9885 8.94362 21.9398 7.87702C21.8913 6.81261 21.7222 6.08571 21.475 5.44961C21.2195 4.79203 20.8775 4.23434 20.3216 3.6784C19.7657 3.12247 19.208 2.78054 18.5504 2.52499C17.9143 2.27778 17.1874 2.10873 16.123 2.06017C15.0564 2.0115 14.7158 2 12 2Z",fill:"currentColor"},null,-1),Bs("path",{d:"M12.0006 6.8649C9.16453 6.8649 6.86545 9.16398 6.86545 12C6.86545 14.8361 9.16453 17.1352 12.0006 17.1352C14.8366 17.1352 17.1357 14.8361 17.1357 12C17.1357 9.16398 14.8366 6.8649 12.0006 6.8649ZM12.0006 15.3334C10.1596 15.3334 8.66725 13.841 8.66725 12C8.66725 10.1591 10.1596 8.6667 12.0006 8.6667C13.8415 8.6667 15.3339 10.1591 15.3339 12C15.3339 13.841 13.8415 15.3334 12.0006 15.3334Z",fill:"currentColor"},null,-1),Bs("path",{d:"M17.3379 7.86193C18.0007 7.86193 18.5379 7.32467 18.5379 6.66192C18.5379 5.99918 18.0007 5.46191 17.3379 5.46191C16.6752 5.46191 16.1379 5.99918 16.1379 6.66192C16.1379 7.32467 16.6752 7.86193 17.3379 7.86193Z",fill:"currentColor"},null,-1)]))}]])},mixins:[yte]},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(e.iconPathName))}]]),Zne=Wee({name:"InstagramConnect",data:H((()=>({width:44,height:44})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M34.3567 15.84C33.825 8.52497 28.8567 9.67997 21.9817 9.55164C17.93 9.55164 17.4533 9.56997 15.84 9.6433C12.8333 9.84497 11.2567 10.5966 10.1383 13.0533C9.24 16.1516 9.66167 16.885 9.55167 22.0183C9.71667 28.8933 8.58 33.8616 15.895 34.375C17.49 34.4483 17.985 34.4666 22.0367 34.4483C26.0883 34.4483 26.565 34.43 28.1783 34.3566C30.6167 34.1366 31.2767 33.9716 32.7433 32.6883C34.0267 31.2216 34.1733 30.5616 34.3933 28.1233C34.4667 26.5283 34.485 26.0333 34.4667 21.9816C34.4667 17.93 34.4483 17.4533 34.3567 15.84ZM22.0183 29.7916C17.71 29.7916 14.2083 26.3083 14.2083 22C14.2083 17.6916 17.6917 14.19 22 14.19C26.3083 14.19 29.81 17.6733 29.81 21.9816C29.81 26.29 26.3267 29.7916 22.0183 29.7916ZM30.1033 15.6933C29.095 15.6933 28.2883 14.8866 28.27 13.8783C28.27 12.87 29.0767 12.0633 30.085 12.045C31.0933 12.0266 31.9183 12.8516 31.9183 13.86C31.9183 14.8683 31.1117 15.675 30.1033 15.6933Z",fill:"currentColor"},null,-1),Bs("path",{d:"M21.9817 16.94C19.195 16.94 16.9217 19.2133 16.9217 22.0183C16.9217 24.8233 19.195 27.0783 22 27.0783C24.805 27.0783 27.06 24.805 27.06 22C27.06 19.195 24.7867 16.94 21.9817 16.94Z",fill:"currentColor"},null,-1),Bs("path",{d:"M39.6 0H4.4C1.96167 0 0 1.96167 0 4.4V39.6C0 42.0383 1.96167 44 4.4 44H39.6C42.0383 44 44 42.0383 44 39.6V4.4C44 1.96167 42.0383 0 39.6 0ZM37.1067 28.2333C37.07 33.495 33.55 37.015 28.2883 37.0883C26.675 37.1617 26.1433 37.18 22.0183 37.1983C17.8933 37.1983 17.38 37.1983 15.7483 37.125C12.87 36.9233 11.3117 36.4833 9.36833 34.6867C7.55333 32.7433 7.11333 31.185 6.89333 28.3067C6.82 26.6933 6.80167 26.1617 6.78333 22.0367C6.78333 17.9117 6.78333 17.3983 6.85667 15.7667C6.89333 10.505 10.4133 6.985 15.675 6.91167C17.2883 6.83833 17.82 6.82 21.945 6.80167C26.07 6.80167 26.5833 6.80167 28.215 6.875C31.0933 7.07667 32.6517 7.51667 34.595 9.31333C36.41 11.2567 36.85 12.815 37.07 15.6933C37.1433 17.3067 37.1617 17.8383 37.18 21.9633C37.18 26.0883 37.18 26.6017 37.1067 28.2333Z",fill:"currentColor"},null,-1)]))}]]),Xne=Wee({name:"Institution",data:H((()=>({width:28,height:28})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M5.15789 11.3514H3.68421V24.973H5.15789V11.3514ZM14.7368 11.3514H13.2632V24.973H14.7368V11.3514ZM28 26.4865H0V28H28V26.4865ZM24.3158 11.3514H22.8421V24.973H24.3158V11.3514ZM14 1.5L26.8358 8.32432H1.16421L14 1.5ZM14 0L0 7.56757V9.83784H28V7.56757L14 0Z",fill:"currentColor"},null,-1)]))}]]),Qne=Wee({name:"LinkedIn",data:H((()=>({width:44,height:44})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M39.6 0H4.4C1.96167 0 0 1.96167 0 4.4V39.6C0 42.0383 1.96167 44 4.4 44H39.6C42.0383 44 44 42.0383 44 39.6V4.4C44 1.96167 42.0383 0 39.6 0ZM14.8683 34.4483C14.8683 34.7233 14.795 34.8333 14.5017 34.8333C12.925 34.8333 11.3483 34.8333 9.75333 34.8333C9.44167 34.8333 9.38667 34.705 9.38667 34.43C9.38667 31.6617 9.38667 28.8933 9.38667 26.1433C9.38667 23.3933 9.38667 20.6433 9.38667 17.8933C9.38667 17.5817 9.46 17.4717 9.79 17.4717C11.3483 17.4717 12.9067 17.4717 14.465 17.4717C14.7583 17.4717 14.85 17.545 14.85 17.8567C14.85 23.3933 14.85 28.93 14.85 34.4667L14.8683 34.4483ZM12.1367 15.1433C10.395 15.1433 9.00167 13.75 9.00167 12.0267C9.00167 10.2667 10.395 8.87333 12.1367 8.87333C13.8783 8.87333 15.2717 10.285 15.2717 12.045C15.2717 13.7683 13.8783 15.1617 12.1183 15.1617L12.1367 15.1433ZM34.9983 34.3933C34.9983 34.7417 34.8883 34.8333 34.5583 34.8333C33.0367 34.8333 31.515 34.8333 29.9933 34.8333C29.645 34.8333 29.5533 34.7233 29.5533 34.3933C29.5533 31.5517 29.5717 28.71 29.5533 25.8683C29.5533 25.1533 29.48 24.42 29.3333 23.7233C29.0583 22.4767 28.2517 21.8717 26.95 21.8533C26.565 21.8533 26.1617 21.8533 25.7767 21.9633C24.53 22.275 23.98 23.21 23.7783 24.3833C23.6867 24.9517 23.6317 25.52 23.6317 26.0883C23.6317 28.8567 23.6317 31.625 23.6317 34.375C23.6317 34.815 23.6317 34.815 23.1733 34.815C21.6517 34.815 20.13 34.815 18.6083 34.815C18.2783 34.815 18.1683 34.7233 18.1683 34.375C18.1683 28.875 18.1683 23.375 18.1683 17.8933C18.1683 17.4533 18.1683 17.4533 18.6267 17.4533C20.0933 17.4533 21.56 17.4533 23.0267 17.4533C23.3383 17.4533 23.4483 17.545 23.43 17.8567C23.4117 18.48 23.43 19.1033 23.43 19.7267C24.0167 18.8833 24.7317 18.205 25.6117 17.7283C26.6567 17.16 27.775 16.9217 28.9667 17.0683C29.6633 17.1417 30.3783 17.1967 31.0567 17.38C33.0183 17.93 34.1367 19.3417 34.5767 21.2483C34.815 22.3117 34.9617 23.43 34.98 24.5117C35.035 27.8117 34.98 31.0933 34.9983 34.3933Z",fill:"currentColor"},null,-1)]))}]]),Jne=Wee({name:"List",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M3.55556 5.77778V4H16V5.77778H3.55556ZM3.55556 9.33333V7.55556H16V9.33333H3.55556ZM3.55556 12.8889V11.1111H16V12.8889H3.55556ZM0.888889 5.77778C0.637037 5.77778 0.425926 5.69259 0.255556 5.52222C0.0851852 5.35185 0 5.14074 0 4.88889C0 4.63704 0.0851852 4.42593 0.255556 4.25556C0.425926 4.08519 0.637037 4 0.888889 4C1.
10014074 4 1.35185 4.08519 1.52222 4.25556C1.69259 4.42593 1.77778 4.63704 1.77778 4.88889C1.77778 5.14074 1.69259 5.35185 1.52222 5.52222C1.35185 5.69259 1.14074 5.77778 0.888889 5.77778ZM0.888889 9.33333C0.637037 9.33333 0.425926 9.24815 0.255556 9.07778C0.0851852 8.90741 0 8.6963 0 8.44444C0 8.19259 0.0851852 7.98148 0.255556 7.81111C0.425926 7.64074 0.637037 7.55556 0.888889 7.55556C1.14074 7.55556 1.35185 7.64074 1.52222 7.81111C1.69259 7.98148 1.77778 8.19259 1.77778 8.44444C1.77778 8.6963 1.69259 8.90741 1.52222 9.07778C1.35185 9.24815 1.14074 9.33333 0.888889 9.33333ZM0.888889 12.8889C0.637037 12.8889 0.425926 12.8037 0.255556 12.6333C0.0851852 12.463 0 12.2519 0 12C0 11.7481 0.0851852 11.537 0.255556 11.3667C0.425926 11.1963 0.637037 11.1111 0.888889 11.1111C1.14074 11.1111 1.35185 11.1963 1.52222 11.3667C1.69259 11.537 1.77778 11.7481 1.77778 12C1.77778 12.2519 1.69259 12.463 1.52222 12.6333C1.35185 12.8037 1.14074 12.8889 0.888889 12.8889Z",fill:"currentColor"},null,-1)]))}]]),eie=Wee({name:"Mail",components:{Mail16:Wee({name:"Mail16",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M1 3V13H15V3H1ZM12.5626 4.5L8 7.13403L3.43777 4.5H12.5626ZM2.5 11.5V5.69049L8 8.86621L13.5 5.69067V11.5H2.5Z",fill:"currentColor"},null,-1)]))}]]),Mail24:Wee({name:"Mail24",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("rect",{x:"4.5",y:"6.5",width:"15",height:"11",stroke:"currentColor"},null,-1),Bs("path",{d:"M6 8L12.0674 13L18 8",stroke:"currentColor"},null,-1)]))}]]),Mail72:Wee({name:"Mail72",data:H((()=>({width:72,height:72})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("rect",{x:"10",y:"20",width:"52",height:"32",stroke:"currentColor","stroke-width":"2"},null,-1),Bs("path",{d:"M13.5 24L36 38L58 24",stroke:"currentColor","stroke-width":"2"},null,-1)]))}]])},mixins:[yte]},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(e.iconPathName))}]]),tie=Wee({name:"MapFold",data:H((()=>({width:14,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M9 3.16138L5 1.16138L0.25 3.53638V15.2134L5 12.8384L9 14.8384L13.75 12.4634V0.786377L9 3.16138ZM5.75 3.21362L8.25 4.46362V12.7866L5.75 11.5366V3.21362ZM1.75 4.46362L4.25 3.21362V11.5366L1.75 12.7866V4.46362ZM12.25 11.5366L9.75 12.7866V4.46362L12.25 3.21362V11.5366Z",fill:"currentColor"},null,-1)]))}]]),nie=Wee({name:"MapFoldLight",data:H((()=>({width:72,height:73})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M28 8.4165L14 16.4151V64.4069L28 56.4083M28 8.4165L44 16.4151M28 8.4165V56.4083M44 16.4151L58 8.4165V56.4083L44 64.4069M44 16.4151V64.4069M44 64.4069L28 56.4083",stroke:"currentColor","stroke-width":"2"},null,-1)]))}]]),iie=Wee({name:"MediaAudio",data:H((()=>({width:12,height:12})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M0 3.75V8.25H3L6 11.25V0.75L3 3.75H0Z",fill:"currentColor"},null,-1),Bs("path",{d:"M6.75 0.75V1.875C9.02818 1.875 10.875 3.72182 10.875 6C10.875 8.27818 9.02818 10.125 6.75 10.125V11.25C9.6495 11.25 12 8.8995 12 6C12 3.1005 9.6495 0.75 6.75 0.75Z",fill:"currentColor"},null,-1),Bs("path",{d:"M9.75 6C9.75 4.34315 8.40685 3 6.75 3V4.125C7.78553 4.125 8.625 4.96447 8.625 6C8.625 7.03553 7.78553 7.875 6.75 7.875V9C8.40685 9 9.75 7.65685 9.75 6Z",fill:"currentColor"},null,-1)]))}]]),rie=Wee({name:"MediaVideo",data:H((()=>({width:12,height:12})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M0.75 3H6.75V9H0.75V3ZM10.5 3L7.5 6L10.5 9H11.25V3H10.5Z",fill:"currentColor"},null,-1)]))}]]),aie=Wee({name:"Mute",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M0 11V5H4L8 1V15L4 11H0Z",fill:"currentColor"},null,-1),Bs("path",{d:"M15.5303 9.96973L13.5605 8L15.5303 6.03027L14.4697 4.96973L12.5 6.93945L10.5303 4.96973L9.46973 6.03027L11.4395 8L9.46973 9.96973L10.5303 11.0303L12.5 9.06055L14.4697 11.0303L15.5303 9.96973Z",fill:"currentColor"},null,-1)]))}
100]]),sie=Wee({name:"Outbound",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M24 0V22.6647H20.2226V6.4482L2.67078 24L0 21.3294L17.5518 3.77745H1.33539V0H24Z",fill:"currentColor"},null,-1)]))}]]),oie=Wee({name:"Outbound14",data:H((()=>({width:14,height:14})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M1 1H13M13 1V13M13 1L1 13",stroke:"currentColor"},null,-1)]))}]]),lie=Wee({name:"Paperclip",data:H((()=>({width:18,height:9})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M13.9091 7.77273H4.5C2.69182 7.77273 1.22727 6.30818 1.22727 4.5C1.22727 2.69182 2.69182 1.22727 4.5 1.22727H14.7273C15.8564 1.22727 16.7727 2.14364 16.7727 3.27273C16.7727 4.40182 15.8564 5.31818 14.7273 5.31818H6.13636C5.68636 5.31818 5.31818 4.95 5.31818 4.5C5.31818 4.05 5.68636 3.68182 6.13636 3.68182H13.9091V2.45455H6.13636C5.00727 2.45455 4.09091 3.37091 4.09091 4.5C4.09091 5.62909 5.00727 6.54545 6.13636 6.54545H14.7273C16.5355 6.54545 18 5.08091 18 3.27273C18 1.46455 16.5355 0 14.7273 0H4.5C2.01273 0 0 2.01273 0 4.5C0 6.98727 2.01273 9 4.5 9H13.9091V7.77273Z",fill:"currentColor"},null,-1)]))}]]),uie=Wee({name:"Parking",data:H((()=>({width:72,height:72})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 35C8 31.6863 10.6863 29 14 29H15.5616H56.4849H58C61.3137 29 64 31.6863 64 35V49H62H60H56H54H18H16H12H10H8V35ZM58 27C62.4183 27 66 30.5817 66 35V49V51H64H62V57C62 59.2091 60.2091 61 58 61C55.7909 61 54 59.2091 54 57V51H18V57C18 59.2091 16.2091 61 14 61C11.7909 61 10 59.2091 10 57V51H8H6V49V35C6 30.5817 9.58172 27 14 27L17.2425 14.0299C17.6877 12.2492 19.2876 11 21.1231 11H50.4698C52.2619 11 53.8352 12.1919 54.3204 13.917L58 27ZM55.9224 27L52.3951 14.4585C52.1525 13.5959 51.3658 13 50.4698 13H21.1231C20.2054 13 19.4054 13.6246 19.1828 14.5149L16.0616 27H55.9224ZM56 57V51H60V57C60 58.1046 59.1046 59 58 59C56.8954 59 56 58.1046 56 57ZM12 51V57C12 58.1046 12.8954 59 14 59C15.1046 59 16 58.1046 16 57V51H12ZM52 38C52 39.1046 51.1046 40 50 40C48.8954 40 48 39.1046 48 38C48 36.8954 48.8954 36 50 36C51.1046 36 52 36.8954 52 38ZM54 38C54 40.2091 52.2091 42 50 42C47.7909 42 46 40.2091 46 38C46 35.7909 47.7909 34 50 34C52.2091 34 54 35.7909 54 38ZM22 40C23.1046 40 24 39.1046 24 38C24 36.8954 23.1046 36 22 36C20.8954 36 20 36.8954 20 38C20 39.1046 20.8954 40 22 40ZM22 42C24.2091 42 26 40.2091 26 38C26 35.7909 24.2091 34 22 34C19.7909 34 18 35.7909 18 38C18 40.2091 19.7909 42 22 42Z",fill:"currentColor"},null,-1)]))}]]),cie=Wee({name:"Pause",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M7 3H5V13H7V3Z",fill:"currentColor"},null,-1),Bs("path",{d:"M11 3H9V13H11V3Z",fill:"currentColor"},null,-1)]))}]]),die=Wee({name:"Pause",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M9 3H4.5V21H9V3Z",fill:"currentColor"},null,-1),Bs("path",{d:"M19.5 3H15V21H19.5V3Z",fill:"currentColor"},null,-1)]))}]]),pie=Wee({name:"PDF",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M7 1H1V15H11V14H2V2H6V6H10V7H11V5L7 1ZM7 5V2.41422L9.58578 5H7ZM15 8H12V13H13V11H14.5V10H13V9H15V8ZM9 8H7V13H9C10.3807 13 11.5 11.8807 11.5 10.5C11.5 9.1193 10.3807 8 9 8ZM8 12V9H9C9.82843 9 10.5 9.67157 10.5 10.5C10.5 11.3284 9.82843 12 9 12H8ZM4.75 8H3V13H4V11.5H4.75C5.71649 11.5 6.5 10.7165 6.5 9.75C6.5 8.78351 5.71649 8 4.75 8ZM4 10.4996V9L4.75 8.99957C5.16422 8.99957 5.5 9.33536 5.5 9.74957C5.5 10.1638 5.16422 10.4996 4.75 10.4996H4Z",fill:"currentcolor"},null,-1)]))}]]),hie=Wee({name:"PersonOutline",data:H((()=>({width:28,height:28})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M7.5 7C7.5 3.40864 10.4086 0.5 14 0.5C17.5914 0.5 20.5 3.40864 20.5 7C20.5 10.5914 17.5914 13.5 14 13.5C10.4086 13.5 7.5 10.5914 7.5 7ZM0.5 22.75C0.5 21.7699 0.987005 20.8744 1.86954 20.0598C2.75548 19.2422 4.00629 18.5404 5.43375 17.9685C8.28946 16.8245 11.7263 16.25 14 16.25C16.2737 16.25 19.7105 16.8245 22.5663 17.9685C23.9937 18.5404 25.2445 19.2422 26.1305 20.0598C27.013 20.8744 27.5 21.7699 27.5 22.75V27.5H0.5V22.75Z",stroke:"currentColor"},null,-1)]))}]]),fie=Wee({name:"Pin",data:H((()=>({width:10,height:14})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M10 5C10 7.76142 5 14 5 14C5 14 0 7.76142 0 5C0 2.23858 2.23858 0 5 0C7.76142 0 10 2.23858 10 5Z",fill:"currentColor"},null,-1)]))}]]),mie=Wee({name:"PinLarge",data:H((()=>({width:72,height:72})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M59 28C59 31.5151 57.5835 35.7214 55.3575 40.1272C53.1422 44.5116 50.1774 48.993 47.1956 53.031C44.2162 57.0655 41.2345 60.6375 38.9966 63.2018C37.8781 64.4834 36.9466 65.512 36.2955 66.2192C36.1894 66.3345 36.0908 66.4412 36 66.5391C35.9092 66.4412 35.8106 66.3345 35.7045 66.2192C35.0534 65.512 34.1219 64.4834 33.0034 63.2018C30.7655 60.6375 27.7838 57.0655 24.8044 53.031C21.8226 48.993 18.8578 44.5116 16.6425 40.1272C14.4165 35.7214 13 31.5151 13 28C13 15.2975 23.2975 5 36 5C42.4015 5 48.1455 7.17146 52.2819 11.1001C56.4103 15.0212 59 20.7514 59 28Z",stroke:"currentColor","stroke-width":"2"},null,-1),Bs("circle",{cx:"36",cy:"28",r:"11",stroke:"currentColor","stroke-width":"2"},null,-1)]))}]]),gie=Wee({name:"PlaceBearing",data:H((()=>({width:66,height:64})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M43.4191 3.01357C44.0321 6.9842 45 47 45 47C45 47 4.64781 36.6852 2.58575 35.1263C0.523686 33.5675 12.0913 23.1982 20.9555 16.227C29.8198 9.25587 42.8062 -0.957059 43.4191 3.01357Z",fill:"url(#paint0_linear)"},null,-1),Bs("defs",null,[Bs("linearGradient",{id:"paint0_linear",x1:"20.8248",y1:"16.3298",x2:"44.9335",y2:"46.9855",gradientUnits:"userSpaceOnUse"},[Bs("stop",{"stop-color":"white","stop-opacity":"0"}),Bs("stop",{offset:"0.0001","stop-color":"currentColor","stop-opacity":"0"}),Bs("stop",{offset:"1","stop-color":"currentColor"})])],-1)]))}]]),yie=Wee({name:"Placemarker",data:H((()=>({width:16,height:28})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M16 8C16 12.4183 8 28 8 28C8 28 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8Z",fill:"currentColor"},null,-1)]))}]]),vie=Wee({name:"Play",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M3 2V14L15 8L3 2Z",fill:"currentColor"},null,-1)]))}
100]]),bie=Wee({name:"Plus",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9 0H7V7H0V9H7V16H9V9H16V7H9V0Z",fill:"currentColor"},null,-1)]))}]]),_ie=Wee({name:"Quote",data:H((()=>({width:80,height:60})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M33.2888 26.7114C27.2866 20.7084 18.3188 19.4655 11.0649 22.9413L30.3474 4.35986L29.6531 3.64014L5.71802 26.7051L5.71832 26.7054C5.71619 26.7075 5.71381 26.7093 5.71167 26.7114C-1.89087 34.3145 -1.89087 46.6855 5.71167 54.2881C9.39478 57.9717 14.2917 60 19.5002 60C24.7087 60 29.6057 57.9717 33.2888 54.2881C40.8914 46.6855 40.8914 34.3145 33.2888 26.7114Z",fill:"currentColor"},null,-1),Bs("path",{d:"M74.2888 26.7114C68.2866 20.7084 59.3188 19.4655 52.0649 22.9413L71.3474 4.35986L70.6531 3.64014L46.718 26.7051L46.7183 26.7054C46.7162 26.7075 46.7138 26.7093 46.7117 26.7114C39.1091 34.3145 39.1091 46.6855 46.7117 54.2881C50.3948 57.9717 55.2917 60 60.5002 60C65.7087 60 70.6057 57.9717 74.2888 54.2881C81.8914 46.6855 81.8914 34.3145 74.2888 26.7114Z",fill:"currentColor"},null,-1)]))}]]),wie=Wee({name:"Rewind",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M10.5 19.5V12V4.5L0 12L10.5 19.5ZM21 19.5L10.5 12L21 4.5V19.5Z",fill:"currentColor"},null,-1)]))}]]),Sie=Wee({name:"Rotate",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M14 8C14 11.3086 11.3086 14 8 14C4.69141 14 2 11.3086 2 8C2 4.69165 4.69141 2 8 2V0.5L10.5 3L7.99997 5.5V3.5C5.51852 3.5 3.5 5.5188 3.5 8C3.5 10.4814 5.51855 12.5 8 12.5C10.4814 12.5 12.5 10.4814 12.5 8H14Z",fill:"currentColor"},null,-1)]))}]]),Cie=Wee({name:"RSS",data:H((()=>({width:72,height:72})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"9",y:"9",width:"54",height:"54"},[Bs("rect",{x:"9",y:"9",width:"54",height:"54",fill:"#C4C4C4"})],-1),Bs("g",{mask:"url(#mask0)"},[Bs("circle",{cx:"9",cy:"63",r:"17",stroke:"currentColor","stroke-width":"2"}),Bs("circle",{cx:"9",cy:"63",r:"35",stroke:"currentColor","stroke-width":"2"}),Bs("circle",{cx:"9",cy:"63",r:"53",stroke:"currentColor","stroke-width":"2"})],-1)]))}]]),kie=Wee({name:"RSSBold",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M6 12C6 13.1046 5.10458 14 4 14C2.89542 14 2 13.1046 2 12C2 10.8954 2.89542 10 4 10C5.10458 10 6 10.8954 6 12ZM2 2V4C7.51416 4 12 8.48608 12 14H14C14 7.3833 8.6167 2 2 2ZM2 6V8C5.30859 8 8 10.6914 8 14H10C10 9.58887 6.41113 6 2 6Z",fill:"currentColor"},null,-1)]))}]]),xie=Wee({name:"Search",data:H((()=>({width:19,height:19})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M14.707 13.293L14.7071 13.2929L13.8535 13.1464L13.14 12.4329C14.2948 11.1137 15 9.39105 15 7.5C15 3.35785 11.6422 0 7.5 0C3.35785 0 0 3.35785 0 7.5C0 11.6422 3.35785 15 7.5 15C9.39105 15 11.1137 14.2948 12.4329 13.14L13.1464 13.8535L13.2929 14.7071L13.293 14.707L17.293 18.707L18.707 17.293L14.707 13.293ZM7.5 13C4.46729 13 2 10.5327 2 7.5C2 4.46729 4.46729 2 7.5 2C10.5327 2 13 4.46729 13 7.5C13 10.5327 10.5327 13 7.5 13Z",fill:"currentColor"},null,-1)]))}]]),Tie=Wee({name:"SensitiveContent",components:{SensitiveContent16:Wee({name:"SensitiveContent16",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M15.1302 5.18636C14.7013 4.47264 14.1533 3.83029 13.5338 3.27121L15.9641 0.868359L15.3923 0.297383L15.0944 0L12.5449 2.52181L11.6395 3.41396L9.62609 5.40048L6.25454 8.74306L4.20539 10.7653L3.34761 11.6098L0.798096 14.1316L1.66779 15L4.46749 12.2284C5.57546 12.7399 6.76682 13.0373 8.00584 13.0373C9.8048 13.0373 11.5442 12.4544 12.9857 11.3957C14.4273 10.3251 15.4757 8.82633 15.9999 7.10151C15.7973 6.42347 15.5233 5.76923 15.154 5.17447L15.1302 5.18636ZM12.1041 10.563C10.9008 11.4195 9.4593 11.8715 7.98201 11.8715C7.07657 11.8715 6.18305 11.6812 5.3491 11.3481L7.32676 9.3973C7.52929 9.45678 7.75565 9.50436 7.98201 9.50436C9.29251 9.50436 10.3647 8.43378 10.3647 7.1253C10.3647 6.91118 10.329 6.69707 10.2694 6.49485L12.6522 4.13957C13.5814 4.93656 14.2962 5.95956 14.7132 7.1134C14.2248 8.50516 13.3074 9.70658 12.1041 10.563Z",fill:"currentColor"}
100,null,-1),Bs("path",{d:"M3.30007 10.0991C2.38273 9.29022 1.66791 8.27911 1.25093 7.12527C1.7513 5.73351 2.65674 4.54398 3.86001 3.68752C5.06329 2.84295 6.50484 2.37903 7.98213 2.37903C8.87565 2.37903 9.74534 2.56936 10.5793 2.89053L11.5324 1.9508C10.1028 1.28466 8.50633 1.02297 6.94564 1.22519C5.3373 1.42741 3.83619 2.09355 2.59717 3.14033C1.37007 4.18712 0.464631 5.56698 0 7.11337C0.440804 8.60029 1.3105 9.89688 2.46612 10.9199L3.30007 10.0872V10.0991Z",fill:"currentColor"},null,-1),Bs("path",{d:"M5.59931 7.1254C5.59931 7.33952 5.63506 7.54174 5.68271 7.73206L8.60155 4.8415C8.39902 4.78202 8.19649 4.74634 7.97013 4.74634C6.65963 4.74634 5.5874 5.81692 5.5874 7.1254H5.59931Z",fill:"currentColor"},null,-1)]))}]]),SensitiveContent24:Wee({name:"SensitiveContent24",data:H((()=>({width:24,height:22.5})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M22.6954 7.77954C22.0521 6.70896 21.23 5.74544 20.3008 4.90682L23.9463 1.30254L23.0886 0.446075L22.6418 0L18.8175 3.78271L17.4594 5.12094L14.4393 8.10071L9.38193 13.1146L6.30821 16.1479L5.02154 17.4147L1.19727 21.1975L2.50181 22.5L6.70136 18.3426C8.36331 19.1098 10.1504 19.5559 12.0089 19.5559C14.7073 19.5559 17.3164 18.6816 19.4787 17.0936C21.641 15.4877 23.2136 13.2395 23.9999 10.6523C23.6961 9.63521 23.2851 8.65385 22.7311 7.7617L22.6954 7.77954ZM18.1563 15.8446C16.3514 17.1293 14.1891 17.8073 11.9731 17.8073C10.615 17.8073 9.2747 17.5218 8.02377 17.0222L10.9903 14.096C11.2941 14.1852 11.6336 14.2565 11.9731 14.2565C13.9389 14.2565 15.5472 12.6507 15.5472 10.6879C15.5472 10.3668 15.4936 10.0456 15.4043 9.74227L18.9784 6.20936C20.3722 7.40484 21.4445 8.93933 22.0699 10.6701C21.3372 12.7577 19.9612 14.5599 18.1563 15.8446Z",fill:"currentColor"},null,-1),Bs("path",{d:"M4.95011 15.1486C3.57409 13.9353 2.50186 12.4187 1.87639 10.6879C2.62695 8.60027 3.98511 6.81597 5.79002 5.53128C7.59494 4.26443 9.75726 3.56855 11.9732 3.56855C13.3135 3.56855 14.618 3.85404 15.8689 4.3358L17.2986 2.9262C15.1541 1.927 12.7595 1.53445 10.4185 1.83778C8.00596 2.14111 5.75428 3.14032 3.89576 4.7105C2.0551 6.28068 0.696947 8.35047 0 10.6701C0.661206 12.9004 1.96575 14.8453 3.69918 16.3798L4.95011 15.1308V15.1486Z",fill:"currentColor"},null,-1),Bs("path",{d:"M8.39873 10.6881C8.39873 11.0093 8.45234 11.3126 8.52382 11.5981L12.9021 7.26225C12.5983 7.17304 12.2945 7.11951 11.9549 7.11951C9.9892 7.11951 8.38086 8.72538 8.38086 10.6881H8.39873Z",fill:"currentColor"},null,-1)]))}]]),SensitiveContent28:Wee({name:"SensitiveContent28",data:H((()=>({width:28,height:27})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M26.4777 9.07613C25.7271 7.82712 24.7681 6.70301 23.6839 5.72462L27.9371 1.51963L26.9364 0.52042L26.4151 0L21.9535 4.41316L20.369 5.97442L16.8455 9.45083L10.9453 15.3004L7.35927 18.8392L5.85814 20.3172L1.39648 24.7304L2.91845 26.25L7.81794 21.3997C9.75689 22.2948 11.8418 22.8152 14.0101 22.8152C17.1582 22.8152 20.2022 21.7952 22.7249 19.9425C25.2476 18.069 27.0823 15.4461 27.9997 12.4276C27.6452 11.2411 27.1657 10.0962 26.5194 9.05531L26.4777 9.07613ZM21.1821 18.4853C19.0763 19.9841 16.5536 20.7752 13.9684 20.7752C12.3838 20.7752 10.8202 20.4421 9.36076 19.8592L12.8217 16.4453C13.1761 16.5494 13.5722 16.6326 13.9684 16.6326C16.2617 16.6326 18.1381 14.7591 18.1381 12.4693C18.1381 12.0946 18.0756 11.7199 17.9713 11.366L22.1411 7.24425C23.7673 8.63898 25.0183 10.4292 25.748 12.4485C24.8932 14.884 23.2878 16.9865 21.1821 18.4853Z",fill:"currentColor"},null,-1),Bs("path",{d:"M5.77514 17.6737C4.16978 16.2582 2.91884 14.4888 2.18913 12.4695C3.06478 10.034 4.6493 7.95227 6.75504 6.45346C8.86077 4.97547 11.3835 4.16361 13.9687 4.16361C15.5324 4.16361 17.0544 4.49668 18.5138 5.05874L20.1817 3.41421C17.6798 2.24847 14.8861 1.7905 12.1549 2.14438C9.3403 2.49827 6.71334 3.66401 4.54506 5.49589C2.39762 7.32777 0.813106 9.74252 0 12.4487C0.771409 15.0508 2.29338 17.3198 4.31572 19.1101L5.77514 17.6529V17.6737Z",fill:"currentColor"},null,-1),Bs("path",{d:"M9.79868 12.4695C9.79868 12.8442 9.86123 13.1981 9.94462 13.5312L15.0526 8.47269C14.6982 8.3686 14.3437 8.30615 13.9476 8.30615C11.6542 8.30615 9.77783 10.1797 9.77783 12.4695H9.79868Z",fill:"currentColor"},null,-1)]))}]])},mixins:[yte]},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(e.iconPathName))}
100]]),Eie=Wee({name:"Shop",data:H((()=>({width:72,height:72})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M13 21H59V63H13V21Z",stroke:"currentColor","stroke-width":"2"},null,-1),Bs("path",{d:"M28 28V16C28 13.3333 29.6 8 36 8C42.4 8 44 13.3333 44 16V28",stroke:"currentColor","stroke-width":"2"},null,-1)]))}]]),Aie=Wee({name:"SocialDistance",data:H((()=>({width:136,height:136})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M116.023 115.561C113.794 115.561 111.442 113.801 111.061 110.282L109.064 85.2762L107.069 110.285C106.758 113.936 104.315 115.677 102.082 115.531C99.956 115.384 97.7589 113.513 97.9585 109.752L98.4161 69.0549L98.2401 71.3825C98.2196 74.309 96.2167 75.8405 94.2375 75.8405C93.1742 75.8405 92.183 75.417 91.4476 74.649C90.8944 74.0722 90.2356 73.0294 90.2356 71.3378L91.0735 52.5463C91.0727 49.2446 92.4358 46.0468 94.9121 43.5921C97.7111 40.8174 101.632 39.3167 105.882 39.3444L112.336 39.3288C120.528 39.3288 126.943 45.1259 126.943 52.5262L127.778 71.2877C127.784 73.125 127.032 74.5898 125.716 75.3533C124.541 76.0355 123.078 76.0378 121.9 75.357C120.713 74.674 119.981 73.4225 119.844 71.8758L120.558 109.79C120.687 113.525 118.453 115.398 116.323 115.55C116.224 115.557 116.123 115.561 116.023 115.561ZM108.453 77.6058H109.675C110.264 77.6058 110.754 78.0581 110.8 78.6455L113.309 110.071C113.562 112.399 114.957 113.398 116.162 113.297C117.201 113.223 118.384 112.276 118.3 109.85L117.219 52.437C117.214 52.1338 117.33 51.8413 117.543 51.6246C117.755 51.4083 118.045 51.2865 118.349 51.2865H119.556C120.147 51.2865 120.639 51.743 120.682 52.3327L122.076 71.255C122.079 71.2824 122.08 71.3104 122.08 71.3378C122.08 72.3153 122.416 73.0484 123.027 73.4005C123.507 73.6768 124.103 73.676 124.582 73.399C125.19 73.0469 125.523 72.316 125.52 71.3408L124.685 52.5763C124.684 46.2901 119.377 41.5874 112.339 41.5874L105.882 41.6029C105.877 41.6037 105.873 41.6029 105.869 41.6029C102.218 41.5726 98.8715 42.8476 96.5021 45.1961C94.4576 47.2232 93.3313 49.8517 93.3313 52.5968L92.4934 71.3879C92.4942 72.8875 93.37 73.5812 94.2375 73.5812C95.1057 73.5812 95.9815 72.8875 95.9815 71.3378C95.9815 71.3097 95.9822 71.2808 95.9845 71.2528L97.4136 52.3308C97.4584 51.7418 97.9494 51.2865 98.5398 51.2865H99.7321C100.034 51.2865 100.323 51.4072 100.535 51.6216C100.748 51.8363 100.864 52.1266 100.861 52.4283L100.216 109.825C100.095 112.12 101.144 113.202 102.237 113.278C103.339 113.343 104.623 112.393 104.818 110.1L107.327 78.6455C107.374 78.0581 107.864 77.6058 108.453 77.6058ZM108.824 38.2917C107.257 38.2917 105.715 37.5802 104.365 36.2331C102.464 34.3381 101.284 31.5069 101.284 28.8442C101.284 26.2817 102.134 24.0227 103.676 22.4832C105.02 21.1418 106.828 20.4622 108.837 20.4395C113 20.4478 116.388 24.2182 116.388 28.8442C116.388 33.2949 113.159 38.2807 108.838 38.2917C108.833 38.2917 108.829 38.2917 108.824 38.2917ZM108.818 22.698C107.385 22.698 106.192 23.1636 105.272 24.0819C104.157 25.1945 103.543 26.8858 103.543 28.8442C103.543 30.8971 104.491 33.1697 105.96 34.6337C106.865 35.5364 107.881 36.0332 108.824 36.0332C108.827 36.0332 108.829 36.0332 108.832 36.0332C111.815 36.0256 114.129 32.1622 114.129 28.8442C114.129 25.4609 111.753 22.7037 108.832 22.698C108.828 22.698 108.823 22.698 108.818 22.698ZM34.015 115.561C31.7856 115.561 29.4333 113.801 29.0523 110.282L27.0556 85.2785L25.0615 110.285C24.75 113.936 22.3115 115.674 20.0731 115.531C17.9473 115.384 15.7506 113.513 15.9498 109.752L16.4074 69.0511L16.2314 71.3825C16.2109 74.309 14.2077 75.8405 12.2292 75.8405C11.1655 75.8405 10.1744 75.417 9.43819 74.649C8.88531 74.0722 8.22656 73.0294 8.22656 71.3378L9.06518 52.5463C9.06404 49.2446 10.4275 46.0468 12.9031 43.5925C15.702 40.8174 19.6029 39.3091 23.8734 39.3444L30.3277 39.3288C38.5196 39.3288 44.9344 45.1259 44.9344 52.5262L45.7692 71.2877C45.7753 73.125 45.0232 74.5898 43.7072 75.3533C42.532 76.0348 41.07 76.037 39.8917 75.357C38.7036 74.6733 37.9713 73.4195 37.8354 71.8698L38.5492 109.79C38.6786 113.525 36.4447 115.398 34.3144 115.55C34.2149 115.557 34.1151 115.561 34.015 115.561ZM26.4446 77.6058H27.6661C28.2551 77.6058 28.745 78.0581 28.792 78.6455L31.301 110.071C31.5538 112.399 32.9654 113.395 34.1535 113.297C35.1921 113.223 36.3752 112.276 3
1006.2914 109.85L35.2106 52.437C35.205 52.1338 35.3215 51.8413 35.534 51.6246C35.7465 51.4083 36.0367 51.2865 36.3399 51.2865H37.5474C38.139 51.2865 38.6304 51.743 38.6736 52.3327L40.0682 71.255C40.0701 71.2824 40.0712 71.3104 40.0712 71.3378C40.0712 72.3153 40.4082 73.0484 41.0195 73.4005C41.5003 73.6783 42.0956 73.6768 42.5742 73.399C43.1813 73.0469 43.5145 72.316 43.5118 71.3408L42.677 52.5763C42.6758 46.2901 37.3683 41.5874 30.3304 41.5874L23.873 41.6029C23.8685 41.6033 23.8647 41.6029 23.8605 41.6029C20.2173 41.5741 16.8628 42.8476 14.4934 45.1965C12.4489 47.2236 11.3226 49.8517 11.3226 52.5968L10.484 71.3879C10.4851 72.8875 11.3609 73.5812 12.2292 73.5812C13.097 73.5812 13.9728 72.8875 13.9728 71.3378C13.9728 71.3097 13.9739 71.2808 13.9758 71.2528L15.4053 52.3308C15.45 51.7418 15.9407 51.2865 16.5315 51.2865H17.7238C18.0255 51.2865 18.3146 51.4072 18.5267 51.6216C18.7389 51.8363 18.8565 52.1266 18.8531 52.4287L18.2069 109.825C18.0862 112.12 19.1358 113.202 20.2286 113.278C21.3462 113.344 22.6151 112.392 22.8105 110.1L25.3188 78.6455C25.3658 78.0581 25.8557 77.6058 26.4446 77.6058ZM26.815 38.2917C25.2482 38.2917 23.7068 37.5802 22.3559 36.2331C20.4559 34.3381 19.2754 31.5069 19.2754 28.8442C19.2754 26.2817 20.125 24.0227 21.6679 22.4832C23.0078 21.146 24.786 20.4395 26.8097 20.4395C26.8161 20.4395 26.8222 20.4395 26.8283 20.4395C30.9918 20.4478 34.3792 24.2182 34.3792 28.8442C34.3792 33.2949 31.1504 38.2807 26.829 38.2917C26.8245 38.2917 26.8196 38.2917 26.815 38.2917ZM26.8097 22.698C25.3765 22.698 24.1838 23.1636 23.2632 24.0819C22.1483 25.1945 21.534 26.8858 21.534 28.8442C21.534 30.8971 22.4827 33.1697 23.9512 34.6337C24.8562 35.5364 25.8732 36.0332 26.8158 36.0332C26.818 36.0332 26.8207 36.0332 26.823 36.0332C29.8067 36.0256 32.1207 32.1622 32.1207 28.8442C32.1207 25.4609 29.7445 22.7037 26.8237 22.698C26.8192 22.698 26.8142 22.698 26.8097 22.698ZM51.7761 54.7707C50.5916 54.7707 49.6313 55.731 49.6313 56.9155C49.6313 58.1001 50.5916 59.0604 51.7761 59.0604C52.9607 59.0604 53.921 58.1001 53.921 56.9155C53.921 55.731 52.9607 54.7707 51.7761 54.7707ZM62.5939 54.7707C61.4094 54.7707 60.4491 55.731 60.4491 56.9155C60.4491 58.1001 61.4094 59.0604 62.5939 59.0604C63.7785 59.0604 64.7388 58.1001 64.7388 56.9155C64.7388 55.731 63.7785 54.7707 62.5939 54.7707ZM73.4118 54.7707C72.2272 54.7707 71.2669 55.731 71.2669 56.9155C71.2669 58.1001 72.2272 59.0604 73.4118 59.0604C74.5963 59.0604 75.5566 58.1001 75.5566 56.9155C75.5566 55.731 74.5963 54.7707 73.4118 54.7707ZM84.2296 54.7707C83.045 54.7707 82.0848 55.731 82.0848 56.9155C82.0848 58.1001 83.045 59.0604 84.2296 59.0604C85.4141 59.0604 86.3744 58.1001 86.3744 56.9155C86.3744 55.731 85.4141 54.7707 84.2296 54.7707ZM59.0893 46.3747V46.1564C59.0893 43.4749 60.6886 41.9216 62.7831 41.9216C64.6354 41.9216 65.7288 42.7385 65.9011 44.3491H63.7378C63.6577 43.9472 63.4502 43.6595 62.8637 43.6595C61.9661 43.6595 61.4714 44.4418 61.4251 45.8341C61.7933 45.2701 62.3343 44.8784 63.3467 44.8784C64.8424 44.8784 66.074 45.7882 66.074 47.514C66.074 49.251 64.8082 50.4015 62.7138 50.4015C60.0904 50.4015 59.0893 48.7216 59.0893 46.3747ZM63.7842 47.5365C63.7842 46.846 63.3696 46.3513 62.6908 46.3513C62.012 46.3513 61.575 46.8581 61.575 47.514C61.575 48.2382 62.012 48.7338 62.6908 48.7338C63.3467 48.7338 63.7842 48.2382 63.7842 47.5365ZM70.0259 45.6495H69.2665V44.246H70.0259V43.7167C70.0259 42.2204 70.9581 41.5074 72.3846 41.5074C72.7645 41.5074 73.0521 41.5646 73.328 41.6339V43.1414C73.1786 43.0955 72.9945 43.0608 72.7645 43.0608C72.281 43.0608 72.074 43.325 72.074 43.7167V44.246H73.2938V45.6495H72.074V50.2638H70.0259V45.6495ZM74.4926 48.331V45.6495H73.7679V44.246H74.4926V42.9915H76.5524V44.246H77.7376V45.6495H76.5524V48.1351C76.5524 48.5727 76.7712 48.7676 77.1623 48.7676C77.3924 48.7676 77.5648 48.7338 77.7493 48.6645V50.2291C77.4846 50.2985 77.093 50.4015 76.61 50.4015C75.252 50.4015 74.4926 49.7457 74.4926 48.331Z",fill:"currentColor"},null,-1)]))}]]),Lie=Wee({name:"Speedometer",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M14 8C14 9.60254 13.376 11.1094
10012.2427 12.2427L11.1821 11.1821C12.0317 10.332 12.5 9.20215 12.5 8C12.5 5.5188 10.4814 3.5 8 3.5C5.51855 3.5 3.5 5.5188 3.5 8C3.5 9.20215 3.96826 10.332 4.81787 11.1821L3.75732 12.2427C2.62402 11.1094 2 9.60254 2 8C2 4.69165 4.69141 2 8 2C11.3086 2 14 4.69165 14 8ZM9.96973 5.96973L8.3837 7.55576C8.2605 7.52304 8.13348 7.5 8 7.5C7.17157 7.5 6.5 8.17157 6.5 9C6.5 9.82843 7.17157 10.5 8 10.5C8.82843 10.5 9.5 9.82843 9.5 9C9.5 8.86652 9.47696 8.7395 9.44424 8.6163L11.0303 7.03027L9.96973 5.96973Z",fill:"currentColor"},null,-1)]))}]]),Iie=Wee({name:"Spotify",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M8.00014 0C3.58188 0 0 3.58178 0 8.00005C0 12.4185 3.58188 16 8.00014 16C12.4189 16 16.0004 12.4185 16.0004 8.00005C16.0004 3.58207 12.4189 0.000382126 8.00005 0.000382126L8.00014 0ZM11.669 11.5384C11.5257 11.7734 11.218 11.8479 10.983 11.7036C9.10468 10.5563 6.74008 10.2964 3.95531 10.9327C3.68697 10.9938 3.41948 10.8257 3.35834 10.5573C3.29691 10.2888 3.46438 10.0213 3.73339 9.96018C6.78087 9.26394 9.39491 9.56372 11.5037 10.8524C11.7387 10.9967 11.8132 11.3034 11.669 11.5384ZM12.6482 9.36004C12.4676 9.65352 12.0836 9.74618 11.7903 9.56563C9.63986 8.24384 6.36186 7.86105 3.81832 8.63314C3.48845 8.73278 3.14004 8.54687 3.03993 8.21757C2.94057 7.8877 3.12657 7.53997 3.45587 7.43966C6.36129 6.55809 9.97326 6.98511 12.4428 8.50264C12.736 8.6832 12.8287 9.06714 12.6482 9.36004ZM12.7322 7.09173C10.1538 5.56025 5.89978 5.41944 3.43801 6.1666C3.0427 6.28649 2.62465 6.06333 2.50485 5.66801C2.38505 5.27251 2.60803 4.85475 3.00362 4.73457C5.82956 3.87669 10.5273 4.04244 13.4959 5.80472C13.8522 6.01575 13.9688 6.47497 13.7577 6.83007C13.5475 7.18564 13.087 7.30285 12.7326 7.09173H12.7322Z",fill:"currentColor"},null,-1)]))}]]),$ie=Wee({name:"Stitcher",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0ZM3.9375 10.375H1.75V6.40625H3.9375V10.375ZM6.53125 10.0938H4.34375V5.6875H6.53125V10.0938ZM9.125 10.625H6.9375V6.0625H9.125V10.625ZM11.6875 10.125H9.5V5.375H11.6875V10.125ZM12.0625 9.84375V6.1875H14.25V9.84375H12.0625Z",fill:"currentColor"},null,-1)]))}]]),Die=Wee({name:"Temperature",data:H((()=>({width:136,height:136})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M72.2501 36.052C72.2501 32.0365 68.9831 28.7695 64.9676 28.7695C60.9521 28.7695 57.6851 32.0365 57.6851 36.052V71.1678C55.8222 73.0138 54.7266 75.8221 54.7266 78.821C54.7266 84.4678 59.3208 89.0621 64.9676 89.0621C70.6144 89.0621 75.2086 84.4678 75.2086 78.821C75.2086 75.715 74.1383 72.9618 72.2501 71.1527V36.052ZM66.4802 63.9095V62.5441H69.5192V63.9095H66.4802ZM66.4802 59.8131V58.4477H69.5192V59.8131H66.4802ZM66.4802 55.7167V54.3512H69.5192V55.7167H66.4802ZM66.4802 51.6203V50.2548H69.5192V51.6203H66.4802ZM66.4802 47.5239V46.1584H69.5192V47.5239H66.4802ZM66.4802 43.4275V42.062H69.5192V43.4275H66.4802ZM66.4802 66.6405H69.5192V68.0062H66.4802V66.6405ZM65.1147 79.81C65.869 79.81 66.4802 79.1989 66.4802 78.4446V75.1031C67.8017 75.6865 68.7275 77.0074 68.7275 78.5424C68.7275 80.6155 67.0407 82.3023 64.9676 82.3023C62.8945 82.3023 61.2077 80.6155 61.2077 78.5424C61.2077 76.8961 62.273 75.4971 63.7493 74.9894V78.4446C63.7493 79.1989 64.3604 79.81 65.1147 79.81ZM72.4777 78.821C72.4777 82.9619 69.1085 86.3311 64.9676 86.3311C60.8267 86.3311 57.4575 82.9619 57.4575 78.821C57.4575 76.3652 58.382 74.1184 59.9311 72.8116C60.2387 72.552 60.416 72.1702 60.416 71.7679V36.052C60.416 33.5422 62.458 31.5005 64.9676 31.5005C67.4772 31.5005 69.5192 33.5422 69.5192 36.052V39.331H66.4802V36.5328C66.4802 35.7787 65.869 35.1673 65.1147 35.1673C64.3604 35.1673 63.7493 35.7787 63.7493 36.5328V72.1705C60.7512 72.7427 58.4767 75.3801 58.4767 78.5424C58.4767 82.1214 61.3886 85.0332 64.9676 85.0332C68.5466 85.0332 71.4585 82.1214 71.4585 78.5424C71.4585 75.4849 69.3309 72.9213 66.4802 72.2371V70.7371H69.5192V71.7679C69.5192 72.1799 69.705 72.5698 70.0254 72.8289C71.5838 74.0912 72.4777 76.275 72.4777 78.821Z",fill:"currentColor"},null,-1),Bs("path",{d:"M41.5692 125.189C41.5074 125.189 41.4447 125.185 41.3816 125.176C40.6344 125.074 40.1122 124.385 40.2148 123.638C40.2233 123.576 41.066 117.406 41.2438 113.616C41.9435 98.7186 36.5345 91.5121 30.8077 83.8829C25.7885 77.196 20.5986 70.282 20.159 58.1185C18.8882 22.9518 38.9392 13.1513 55.9836 11.1222C71.1447 9.31758 96.0454 15.1662 103.946 33.8201C107.544 42.3156 108.386 45.6968 107.701 48.8949C107.118 51.6156 106.102 53.0265 105.496 53.8696C105.429 53.9621 105.354 54.067 105.293 54.1568C106.724 57.2669 110.818 62.2247 112.819 64.6476C113.34 65.2779 113.716 65.7331 113.923 66.0064L114.128 66.2745C115.118 67.5599 116.774 69.7117 115.337 72.588C114.303 74.6558 112.107 74.9545 110.342 75.194C109.492 75.3096 108.676 75.4207 108.052 75.6843C108.159 75.7492 108.257 75.8163 108.35 75.8892C109.629 76.7804 110.434 78.0948 110.678 79.6945C110.87 80.9573 110.398 82.1112 109.442 82.9144C109.807 83.5438 110.006 84.2585 110.006 84.9999C110.006 86.6259 109.072 88.0531 107.642 88.7994C108.748 92.3807 108.8
10061 95.8086 107.975 99.0089C107.451 101.378 105.437 106.911 98.0136 108.088L96.9948 108.249C84.4691 110.226 79.2841 111.044 80.0744 123.739C80.1211 124.491 79.5491 125.14 78.7965 125.186C78.0436 125.235 77.3955 124.661 77.3488 123.908C76.4043 108.734 84.4264 107.468 96.569 105.552L97.586 105.391C103.178 104.504 104.829 100.623 105.315 98.3888L105.334 98.3115C106.183 95.2743 105.946 91.9468 104.628 88.4212L104.037 86.8397L105.707 86.5925C106.601 86.4601 107.275 85.7756 107.275 84.9999C107.275 84.4865 106.983 83.9972 106.494 83.6905L103.815 82.0107L106.875 81.2124C107.242 81.1164 108.086 80.8164 107.978 80.1052C107.847 79.2438 107.439 78.5735 106.765 78.1139L106.669 78.0414C105.692 77.4632 105.103 76.7017 104.976 75.8737C104.878 75.2434 105.062 74.6166 105.478 74.1544L105.573 74.0593C106.827 72.9156 108.499 72.6884 109.973 72.488C111.543 72.2746 112.524 72.1066 112.894 71.3674C113.535 70.0842 112.987 69.2694 111.964 67.9404L111.747 67.6564C111.574 67.4284 111.194 66.9688 110.714 66.3865C108.399 63.5835 104.089 58.3657 102.642 54.9115C102.178 53.8052 102.789 52.9567 103.279 52.2748C103.823 51.5192 104.567 50.4849 105.03 48.3224C105.569 45.8088 104.729 42.6694 101.431 34.8851C97.2082 24.9138 88.0441 19.7217 81.0999 17.1219C71.7763 13.6318 62.178 13.1357 56.3063 13.8336C45.5007 15.1204 37.1719 19.1808 31.5517 25.9024C25.3031 33.3756 22.3881 44.1816 22.8882 58.0198C23.2971 69.3277 28.006 75.6012 32.9919 82.2432C38.7565 89.9235 44.7175 97.8652 43.9721 113.744C43.7881 117.657 42.9556 123.751 42.92 124.009C42.8262 124.693 42.2408 125.189 41.5692 125.189Z",fill:"currentColor"},null,-1)]))}]]),Pie=Wee({name:"Ticket",data:H((()=>({width:136,height:136})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M132.502 58.7853V21.9266H81.0715V21.9263H77.9629V21.9266H3.49609V58.7853C8.58518 58.7853 12.7108 62.9107 12.7108 68.0001C12.7108 73.0892 8.58518 77.2148 3.49609 77.2148V114.074H132.502V77.2148C127.413 77.2148 123.287 73.0892 123.287 68.0001C123.287 62.9107 127.413 58.7853 132.502 58.7853ZM120.179 68.0001C120.179 73.7218 124.098 78.5453 129.393 79.9263V110.965H81.0715V95.644H77.9629V110.965H6.60467V79.9263C11.8999 78.5453 15.8194 73.7218 15.8194 68.0001C15.8194 62.2783 11.8999 57.4548 6.60467 56.0738V25.0351H77.9629V40.3553H81.0715V25.0351H129.393V56.0738C124.098 57.4548 120.179 62.2783 120.179 68.0001ZM77.9629 49.5702H81.0715V86.4291H77.9629V49.5702Z",fill:"currentColor"},null,-1)]))}]]),Oie=Wee({name:"TicketBold",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M9.58619 7.49086L8.69373 6.59567L9.5101 5.78174L10.4026 6.67693L9.58619 7.49086ZM11.989 9.91821L10.2555 8.17948L11.0718 7.36555L12.8054 9.10428L11.989 9.91821ZM14.3402 12.2767L12.6583 10.5896L13.4748 9.77567L15.1567 11.4627L14.3402 12.2767ZM15.9535 13.895L14.9581 12.8964L15.7746 12.0825L16.77 13.0811L15.9535 13.895Z",fill:"currentColor"},null,-1),Bs("path",{d:"M12.9104 1.5L15.9885 4.58748L15.5827 4.99444C15.2338 5.34439 15.1483 5.68019 15.1755 5.96209C15.2045 6.26245 15.3693 6.5723 15.6418 6.82249C16.21 7.34427 16.9877 7.42676 17.4952 6.91775L17.9034 6.5083L21 9.61432L8.15493 22.4987L5.14418 19.4786L
1005.5499 19.0716C6.07423 18.5458 5.9878 17.7195 5.44079 17.1151C5.17927 16.8261 4.85629 16.651 4.54359 16.6193C4.25031 16.5895 3.9003 16.6781 3.53444 17.0452L3.12976 17.4511L0 14.3656L12.9104 1.5ZM1.63758 14.3611L3.1615 15.8635C3.63648 15.5449 4.15191 15.4208 4.65992 15.4724C5.31164 15.5384 5.88336 15.8861 6.29556 16.3416C6.99173 17.1108 7.3676 18.3833 6.72551 19.432L8.15494 20.8659L19.3721 9.61433L17.8559 8.09347C16.833 8.71812 15.6041 8.35303 14.8621 7.6716C14.4221 7.26768 14.0892 6.70827 14.0281 6.07263C13.9808 5.58287 14.0991 5.08592 14.4004 4.6274L12.9077 3.13014L1.63758 14.3611Z",fill:"currentColor"},null,-1)]))}]]),Mie=Wee({name:"TikTok",data:H((()=>({width:44,height:44})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M39.6 0H4.4C1.96167 0 0 1.96167 0 4.4V39.6C0 42.0383 1.96167 44 4.4 44H39.6C42.0383 44 44 42.0383 44 39.6V4.4C44 1.96167 42.0383 0 39.6 0ZM34.0083 19.635C31.5517 19.635 29.2783 18.8833 27.4267 17.5817V26.895C27.4267 31.5517 23.5217 35.3283 18.7183 35.3283C16.8667 35.3283 15.1433 34.76 13.7317 33.8067C11.4767 32.285 10.01 29.755 10.01 26.895C10.01 22.2383 13.915 18.4617 18.7183 18.4617C19.1217 18.4617 19.5067 18.4983 19.8917 18.535V23.21C19.525 23.1 19.1217 23.0267 18.7183 23.0267C16.5183 23.0267 14.74 24.75 14.74 26.8767C14.74 28.3617 15.6017 29.645 16.8667 30.2867C17.4167 30.5617 18.04 30.7267 18.7183 30.7267C20.8633 30.7267 22.605 29.0767 22.6967 27.0233V8.67167H27.445C27.445 9.075 27.4817 9.46 27.555 9.82667C27.885 11.5683 28.9667 13.0717 30.4517 14.0067C31.4783 14.6667 32.725 15.0333 34.045 15.0333V16.06V19.6167L34.0083 19.635Z",fill:"currentColor"},null,-1)]))}]]),Rie=Wee({name:"ToggleOff",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5zM7 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z",stroke:"currentColor"},null,-1)]))}]]),Nie=Wee({name:"ToggleOn",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5zm0 8c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z",stroke:"currentColor"},null,-1)]))}]]),Fie=Wee({name:"Twitter",components:{Twitter16:Wee({name:"Twitter16",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M5.52167 13.5083C10.553 13.5083 13.3061 9.33596 13.3061 5.72385C13.3061 5.60647 13.3061 5.48909 13.3008 5.37171C13.8343 4.98755 14.2985 4.50203 14.6667 3.95247C14.1758 4.17123 13.6476 4.31529 13.0927 4.38465C13.6583 4.04851 14.0904 3.50963 14.2985 2.86937C13.7703 3.18417 13.1834 3.40826 12.5592 3.53097C12.0576 2.99742 11.348 2.66663 10.5637 2.66663C9.05375 2.66663 7.8266 3.89378 7.8266 5.40372C7.8266 5.61714 7.85327 5.82522 7.89596 6.02797C5.62305 5.91593 3.60624 4.82215 2.25637 3.16816C2.02161 3.57366 1.88822 4.04318 1.88822 4.54471C1.88822 5.49442 2.37375 6.33209 3.10471 6.82296C2.65653 6.80695 2.23503 6.68423 1.86688 6.48149C1.86688 6.49216 1.86688 6.50283 1.86688 6.51883C1.86688 7.84203 2.81126 8.95181 4.05976 9.20257C3.83033 9.2666 3.59023 9.29861 3.33947 9.29861C3.1634 9.29861 2.99266 9.28261 2.82726 9.25059C3.17407 10.339 4.18781 11.1287 5.38295 11.15C4.44391 11.8863 3.26477 12.3238 1.98426 12.3238C1.7655 12.3238 1.54675 12.3132 1.33333 12.2865C2.53915 13.0548 3.97972 13.5083 5.52167 13.5083Z",fill:"currentColor"},null,-1)]))}]]),Twitter24:Wee({name:"Twitter24",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M8.28251 20.2625C15.8295 20.2625 19.9592 14.004 19.9592 8.58583C19.9592 8.40976 19.9592 8.23369 19.9512 8.05762C20.7515 7.48139 21.4478 6.7531 22 5.92877C21.2637 6.2569 20.4714 6.47299 19.6391 6.57703C20.4874 6.07283 21.1357 5.26451 21.4478 4.30412C20.6555 4.77631 19.7751 5.11244 18.8387 5.29652C18.0864 4.4962 17.022 4 15.8455 4C13.5806 4 11.7399 5.84074 11.7399 8.10564C11.7399 8.42577 11.7799 8.7379 11.8439 9.04202C8.43457 8.87395 5.40936 7.23329 3.38455 4.7523C3.03241 5.36054 2.83233 6.06483 2.83233 6.81713C2.83233 8.2417 3.56062 9.4982 4.65706 10.2345C3.98479 10.2105 3.35254 10.0264 2.80032 9.72229C2.80032 9.7383 2.80032 9.7543 2.80032 9.77831C2.80032 11.7631 4.21689 13.4278 6.08964 13.8039C5.7455 13.9 5.38535 13.948 5.0092 13.948C4.7451 13.948 4.489 13.924 4.2409 13.876C4.7611 15.5086 6.28171 16.6931 8.07443 16.7251C6.66587 17.8295 4.89716 18.4858 2.97639 18.4858C2.64826 18.4858 2.32013 18.4698 2 18.4298C3.80872 19.5822 5.96959 20.2625 8.28251 20.2625Z",fill:"currentColor"},null,-1)]))}]])},mixins:[yte]},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(e.iconPathName))}]]),Bie={fill:"initial"},Hie=Wee({name:"Villa",data:H((()=>({width:128,height:128})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",Bie,t[0]||(t[0]=[Bs("polygon",{fill:"#fff",points:"0.02 69.35 0.02 102.01 64 116.22 127.98 102.01 128.02 69.35 64.02 90.79 0.02 69.35"},null,-1),Bs("polygon",{fill:"#fff",points:"0.02 69.35 0.02 92.93 64 109.01 127.98 92.93 128.02 69.35 64.02 90.79 0.02 69.35"},null,-1),Bs("polygon",{fill:"#fff",points:"0.02 4.32 0.02 19.79 64.02 49.53 127.98 19.79 128.02 4.32 64.02 37.81 0.02 4.32"},null,-1),Bs("polygon",{fill:"#fff",points:"128.02 19.79 64.02 49.53 0.02 19.79 0.02 69.35 64.02 90.79 128.02 69.35 128.02 19.79"},null,-1),Bs("polygon",{fill:"#231f20",points:"127.98 102.01 64 116.22 0.02 102.01 0 127.99 128 127.99 127.98 102.01"},null,-1),Bs("polygon",{"stroke-miterlimit":"10","stroke-width":"0.5px",stroke:"#231f20",fill:"#fff",points:"16.18 27.31 16.23 74.78 10.25 72.78 10.57 24.61 16.
10018 27.31"},null,-1),Bs("polygon",{"stroke-miterlimit":"10","stroke-width":"0.5px",stroke:"#231f20",fill:"#fff",points:"43.25 39.86 43.25 83.83 38.26 82.16 38.26 37.56 43.25 39.86"},null,-1),Bs("polygon",{"stroke-miterlimit":"10","stroke-width":"0.5px",stroke:"#b3b3b3",fill:"#fff",points:"19.77 41.28 19.77 75.97 33.64 80.61 33.64 47.28 19.77 41.28"},null,-1),Bs("polygon",{"stroke-miterlimit":"10","stroke-width":"0.5px",stroke:"#b3b3b3",fill:"#fff",points:"46.51 52.85 46.51 84.92 57.5 88.61 57.5 57.61 46.51 52.85"},null,-1),Bs("polyline",{"stroke-miterlimit":"10","stroke-width":"0.5px",stroke:"#b3b3b3",fill:"#fff",points:"0.02 69.35 5.38 71.15 5.38 35.05 0.02 32.73"},null,-1),Bs("polygon",{points:"31.05 73.88 22.77 70.96 22.9 46.31 30.92 49.33 31.05 73.88"},null,-1),Bs("polygon",{points:"55.6 82.61 48.51 80.12 48.63 56.52 55.47 59.08 55.6 82.61"},null,-1),Bs("polygon",{points:"2.1 63.36 0.02 62.75 0.02 37.47 2.13 38.28 2.1 63.36"},null,-1),Bs("line",{"stroke-linecap":"round",stroke:"#fff",fill:"none","stroke-miterlimit":"10",x1:"22.3",y1:"53.76",x2:"31.53",y2:"57.31"},null,-1),Bs("line",{"stroke-linecap":"round",stroke:"#fff",fill:"none","stroke-miterlimit":"10",x1:"22.3",y1:"62.87",x2:"31.53",y2:"66.19"},null,-1),Bs("line",{"stroke-linecap":"round",stroke:"#fff",fill:"none","stroke-miterlimit":"10",x1:"27.2",y1:"47.93",x2:"27.2",y2:"72.52"},null,-1),Bs("line",{"stroke-linecap":"round",stroke:"#fff",fill:"none","stroke-miterlimit":"10",x1:"47.66",y1:"63.52",x2:"55.82",y2:"66.66"},null,-1),Bs("line",{"stroke-linecap":"round",stroke:"#fff",fill:"none","stroke-miterlimit":"10",x1:"47.66",y1:"72",x2:"55.84",y2:"74.94"},null,-1),Bs("line",{"stroke-linecap":"round",stroke:"#fff",fill:"none","stroke-miterlimit":"10",x1:"52.18",y1:"57.31",x2:"52.18",y2:"81.94"},null,-1),Bs("line",{stroke:"#fff",fill:"none","stroke-miterlimit":"10",y1:"46.93",x2:"2.52",y2:"47.91"},null,-1),Bs("line",{stroke:"#fff",fill:"none","stroke-miterlimit":"10",y1:"56.52",x2:"2.52",y2:"57.36"},null,-1),Bs("path",{d:"M62.48,92.75v0c-.33,1.11-1.12,3.16-2.37,2.73s-1.64-2.74-1.79-4.06l-.23-.07C57.78,92.48,57,94.46,55,93.85s-2.24-2.95-2.27-4.28l-.19-.06c-.39,1.21-1.31,3.21-3.12,2.62-1.6-.52-1.83-2.87-1.83-4.2l-.26-.08c-.45,1.05-1.4,2.73-3,2.73-1.89,0-2.24-2.86-2.3-4.41l-.33-.11c-.52,1.21-1.68,3.2-3.44,2.66s-2.25-3.06-2.32-4.5l-.24-.07c-.38,1.3-1.25,3.4-2.84,2.91-2.11-.65-2.54-3.18-2.61-4.65l-.36-.12c-.56,1.28-1.81,3.3-3.8,2.69s-2.38-3.16-2.44-4.68l-.22-.07c-.39,1.39-1.35,3.53-3.52,2.85s-2.46-3.22-2.44-4.75l-.3-.1c-.57,1.37-1.77,3.46-3.6,2.9s-2.51-3.26-2.7-4.91l-.38-.12c-.46,1.44-1.52,3.62-3.6,3S4.12,75.7,3.93,74l-.36-.11c-.43,1.5-1.36,3.72-3.55,3v2.19L64,97.81V96.63C62.71,96.63,62.46,94,62.48,92.75Z"},null,-1),Bs("polygon",{"stroke-miterlimit":"10","stroke-width":"0.5px",stroke:"#231f20",fill:"#fff",points:"111.87 27.31 111.81 74.78 117.8 72.78 117.47 24.61 111.87 27.31"},null,-1),Bs("polygon",{"stroke-miterlimit":"10","stroke-width":"0.5px",stroke:"#231f20",fill:"#fff",points:"84.79 39.86 84.79 83.83 89.79 82.16 89.79 37.56 84.79 39.86"},null,-1),Bs("polygon",{"stroke-miterlimit":"10","stroke-width":"0.5px",stroke:"#b3b3b3",fill:"#fff",points:"108.27 41.28 108.27 75.97 94.4 80.61 94.4 47.28 108.27 41.28"},null,-1),Bs("polygon",{"stroke-miterlimit":"10","stroke-width":"0.5px",stroke:"#b3b3b3",fill:"#fff",points:"81.54 52.85 81.54 84.92 70.54 88.61 70.54 57.61 81.54 52.85"},null,-1),Bs("polyline",{"stroke-miterlimit":"10","stroke-width":"0.5px",stroke:"#b3b3b3",fill:"#fff",points:"128.02 69.35 122.66 71.15 122.66 35.05 128.02 32.73"},null,-1),Bs("polygon",{points:"97 73.88 105.27 70.96 105.14 46.31 97.13 49.33 97 73.88"},null,-1),Bs("polygon",{points:"72.44 82.61 79.54 80.12 79.41 56.52 72.57 59.08 72.44 82.61"},null,-1),Bs("polygon",{points:"125.95 63.36 128.02 62.75 128.02 37.47 125.92 38.28 125.95 63.36"},null,-1),Bs("line",{"stroke-linecap":"round",stroke:"#fff",fill:"none","stroke-miterlimit":"10",x1:"105.75",y1:"53.76",x2:"96.52",y2:"57.31"},null,-1),Bs("line",{"stroke-linecap":"round",stroke:"#fff",fill:"none","stroke-miterlimit":"10",x1:"105.75",y1:"62.87",x2:"96.52",y2:"66.19"},null,-1),Bs("line",{"stroke-linecap":"round",stroke:"#fff",fill:"none","stroke-miterlimit":"10",x1:"100.85",y1:"47.93",x2:"100.85",y2:"72.52"},null,-1),Bs("line",{"stroke-linecap":"round",stroke:"#fff",fill:"none","stroke-miterlimit":"10",x1:"80.38",y1:"63.52",x2:"72.22",y2:"66.66"},null,-1),Bs("line",{"stroke-linecap":"round",stroke:"#fff",fill:"none","stroke-miterlimit":"10",x1:"80.38",y1:"72",x2:"72.21",y2:"74.94"},null,-1),Bs("line",{"stroke-linecap":"round",stroke:"#fff",fill:"none","stroke-miterlimit":"10",x1:"75.87",y1:"57.31",x2:"75.87",y2:"81.94"},null,-1),Bs("line",{stroke:"#fff",fill:"none","stroke-miterlimit":"10",x1:"128.04",y1:"46.93",x2:"125.52",y2:"47.91"},null,-1),Bs("line",{stroke:"#fff",fill:"none","stroke-miterlimit":"10",x1:"128.04",y1:"56.52",x2:"125.52",y2:"57.36"},null,-1),Bs("path",{d:"M65.56,92.75v0c.33,1.11,1.12,3.16,2.37,2.73s1.64-2.74,1.79-4.06L70,91.3c.3,1.18,1.12,3.16,3.12,2.55s2.25-2.95,2.27-4.28l.19-.06c.39,1.21,1.32,3.21,3.12,2.62,1.6-.52,1.83-2.87,1.83-4.2l.27-.08c.44,1.05,1.4,2.73,2.95,2.73,1.89,0,2.25-2.86,2.3-4.41l.33-.11c.53,1.21,1.68,3.2,3.45,2.66s2.25-3.06,2.32-4.5l.23-.07c.38,1.3,1.26,3.4,2.84,2.91,2.11-.65,2.54-3.18,2.61-4.65l.36-.12c.57,1.28,1.81,3.3,3.81,2.69s2.37-3.16,2.43-4.68l.22-.07c.39,1.39,1.36,3.53,3.52,2.85s2.46-3.22,2.44-4.75l.3-.1c.57,1.37,1.77,3.46,3.61,2.9s2.5-3.26,2.69-4.91l.39-.12c.45,1.44,1.51,3.62,3.6,3s2.76-3.38,3-5.08l.36-.11c.44,1.5,1.37,3.72,3.55,3v2.19L64,97.81V96.63C65.33,96.63,65.59,94,65.56,92.75Z"},null,-1),Bs("path",{fill:"#fff",d:"M93.64,128l-.12-13.46c-5.33-4-10.47.51-10.47.51l-.15,13Z"},null,-1),Bs("path",{fill:"#fff",d:"M121.74,128l-.36-19c-5.88-4.26-10.91.52-10.91.52L110.26,128Z"},null,-1),Bs("path",{fill:"#fff",d:"M68.83,128l-.11-8.52s-1-1.54-4.7-1.54-4.69,1.54-4.69,1.54L59.21,128Z"},null,-1),Bs("path",{fill:"#fff",d:"M45.14,128l-.15-13s-5.14-4.52-10.47-.51L34.41,128Z"},null,-1),Bs("path",{fill:"#fff",d:"M17.79,128l-.22-18.43s-5-4.78-10.91-.52L6.3,128Z"},null,-1),Bs("polygon",{"stroke-miterlimit":"10","stroke-width":"0.5px",stroke:"#231f20",fill:"#fff",points:"61.29 48.43 64.02 49.7 66.75 48.43 66.75 89.88 64.02 90.79 61.29 89.88 61.29 48.43"},null,-1),Bs("path",{d:"M61.35,32.84l-.25-.14c-.43.61-1.53,1.92-2.79,1.24s-1.74-2.87-1.85-3.83l-.3-.16c-.54.59-1.89,1.8-3.38,1s-1.65-2.87-1.66-3.81L50.89,27c-.54.66-1.86,2-3.34,1.2S46,25.29,46,24.28l-.33-.19C45,24.73,43.37,26,42,25.25c-1.92-1-1.85-3.17-1.71-4.14L40,21c-.75.64-2.45,1.87-3.87,1.18-1.64-.8-1.73-3.16-1.68-4.27l-.32-.17c-.72.72-2.38,2.11-3.87,1.32-1.94-1-1.94-3.38-1.81-4.49l-.31-.17c-.78.76-2.59,2.17-4.36,1.12S22,12.12,22.06,11l-.47-.27c-1,.7-3.23,2-4.93,1.06S14.6,8.12,14.58,6.81l-.51-.29c-1,.77-3.18,2.17-5.08,1.16S6.89,3.9,6.91,2.53l-.49-.27c-1,.86-3.09,2.4-5.1,1.33A3.12,3.12,0,0,1,0,2.2V4.32L64,37.81V37C62.06,36.08,61.5,33.79,61.35,32.84Z"},null,-1),Bs("path",{d:"M66.7,32.84l.24-.14c.43.61,1.53,1.92,2.8,1.24s1.73-2.87,1.85-3.83l.3-.16c.54.59,1.88,1.8,3.37,1s1.66-2.87,1.66-3.81l.24-.14c.53.66,1.85,2,3.33,1.2s1.56-2.92,1.59-3.93l.33-.19c.67.64,2.26,1.9,3.65,1.16,1.92-1,1.85-3.17,1.71-4.14l.28-.16c.74.64,2.44,1.87,3.87,1.18,1.63-.8,1.72-3.16,1.67-4.27l.32-.17c.72.72,2.38,2.11,3.87,1.32,2-1,1.94-3.38,1.81-4.49l.31-.17c.78.76,2.59,2.17,4.37,1.12S106,12.12,106,11l.48-.27c1,.7,3.22,2,4.92,1.06s2.06-3.64,2.08-4.95l.52-.29c1,.77,3.17,2.17,5.07,1.16s2.1-3.78,2.09-5.15l.48-.27c1,.86,3.09,2.4,5.11,1.33A3.1,3.1,0,0,0,128,2.2V4.32L64,37.81V37C66,36.08,66.54,33.79,66.7,32.84Z"},null,-1),Bs("polyline",{fill:"none",stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",points:"128.02 8.34 64.02 40.68 64.02 40.68 64.02 40.68 0.02 8.34"},null,-1),Bs("polyline",{fill:"none",stroke:"#b3b3b3","stroke-width":"0.5px","stroke-miterlimit":"10",points:"128.02 82.61 64.02 100.21 64.02 100.21 64.02 100.21 0.02 82.61"},null,-1),Bs("polyline",{stroke:"#000",fill:"none","stroke-width":"0.5px","stroke-miterlimit":"10",points:"128.02 92.93 64.02 109.01 64.02 109.01 64.02 109.01 0.02 92.93"},null,-1),Bs("polyline",{stroke:"#000",fill:"none","stroke-width":"0.5px","stroke-miterlimit":"10",points:"128.02 69.35 64.02 90.66 64.02 90.66 64.02 90.66 0.02 69.35"},null,-1),Bs("polyline",{stroke:"#000",fill:"none","stroke-width":"0.5px","stroke-miterlimit":"10",points:"128.02 19.79 64.02 49.53 64.02 49.53 64.02 49.53 0.02 19.79"},null,-1)]))}]]),jie=Wee({name:"Volume",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M0 5V11H4L8
10015V1L4 5H0Z",fill:"currentColor"},null,-1),Bs("path",{d:"M9 1V2.5C12.0376 2.5 14.5 4.96243 14.5 8C14.5 11.0376 12.0376 13.5 9 13.5V15C12.866 15 16 11.866 16 8C16 4.134 12.866 1 9 1Z",fill:"currentColor"},null,-1),Bs("path",{d:"M13 8C13 5.79086 11.2091 4 9 4V5.5C10.3807 5.5 11.5 6.61929 11.5 8C11.5 9.38071 10.3807 10.5 9 10.5V12C11.2091 12 13 10.2091 13 8Z",fill:"currentColor"},null,-1)]))}]]),Uie=Wee({name:"Weblink",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M10.5 18H7.5C4.18629 18 1.5 15.3137 1.5 12C1.5 8.68629 4.18629 6 7.5 6H10.5V8.25H7.5C5.43224 8.25 3.75 9.93224 3.75 12C3.75 14.0677 5.43224 15.75 7.5 15.75H10.5V18ZM16.5 6H13.5V8.25H16.5C18.5678 8.25 20.25 9.93224 20.25 12C20.25 14.0678 18.5678 15.75 16.5 15.75H13.5V18H16.5C19.8137 18 22.5 15.3137 22.5 12C22.5 8.68629 19.8137 6 16.5 6ZM16.5 10.5H7.5V13.5H16.5V10.5Z",fill:"currentColor"},null,-1)]))}]]),Vie=Wee({name:"X",data:H((()=>({width:44,height:44})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M22.4033 20.02L15.0517 10.9083H11.1283L20.24 22.2017L21.3767 23.6317L29.1867 33.2933H33.0917L23.54 21.45L22.4033 20.02Z",fill:"#1A1A1A"},null,-1),Bs("path",{d:"M39.6 0H4.4C1.96167 0 0 1.96167 0 4.4V39.6C0 42.0383 1.96167 44 4.4 44H39.6C42.0383 44 44 42.0383 44 39.6V4.4C44 1.96167 42.0383 0 39.6 0ZM27.9767 34.8883L20.0933 24.9333L10.2117 34.8883H7.66333L18.9567 23.5033L7.66333 9.25833H16.28L23.7417 18.6817L33.0917 9.25833H35.64L24.8783 20.1117L36.5933 34.8883H27.9767Z",fill:"currentColor"},null,-1)]))}]]),qie=Wee({name:"Youtube",data:H((()=>({width:24,height:24})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M21.5821 7.20032C21.3521 6.33423 20.6744 5.65213 19.8139 5.42063C18.2542 5 12 5 12 5C12 5 5.74583 5 4.18613 5.42063C3.32564 5.65213 2.64794 6.33423 2.41792 7.20032C2 8.77014 2 12.0454 2 12.0454C2 12.0454 2 15.3208 2.41792 16.8906C2.64794 17.7567 3.32564 18.4388 4.18613 18.6703C5.74583 19.0909 12 19.0909 12 19.0909C12 19.0909 18.2542 19.0909 19.8139 18.6703C20.6744 18.4388 21.3521 17.7567 21.5821 16.8906C22 15.3208 22 12.0454 22 12.0454C22 12.0454 22 8.77014 21.5821 7.20032ZM9.95455 15.0192V9.07172L15.1818 12.0455L9.95455 15.0192Z",fill:"currentColor"},null,-1)]))}]]),zie=Wee({name:"Youtube",data:H((()=>({width:44,height:44})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M39.6 0H4.4C1.96167 0 0 1.96167 0 4.4V39.6C0 42.0383 1.96167 44 4.4 44H39.6C42.0383 44 44 42.0383 44 39.6V4.4C44 1.96167 42.0383 0 39.6 0ZM38.8483 30.47C38.445 31.9917 37.2533 33.1833 35.7317 33.5867C32.9817 34.32 21.9817 34.32 21.9817 34.32C21.9817 34.32 10.9817 34.32 8.23167 33.5867C6.71 33.1833 5.51833 31.9917 5.115 30.47C4.38167 27.72 4.38167 22 4.38167 22C4.38167 22 4.38167 16.28 5.115 13.53C5.51833 12.0083 6.71 10.8167 8.23167 10.4133C10.9817 9.68 21.9817 9.68 21.9817 9.68C21.9817 9.68 32.9817 9.68 35.7317 10.4133C37.2533 10.8167 38.445 12.0083 38.8483 13.53C39.5817 16.28 39.5817 22 39.5817 22C39.5817 22 39.5817 27.72 38.8483 30.47Z",fill:"currentColor"},null,-1),Bs("path",{d:"M18.48 27.28L27.6283 22L18.48 16.72V27.28Z",fill:"currentColor"},null,-1)]))}]]),Wie=Wee({name:"ZoomIn",data:H((()=>({width:16,height:16})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M0 8H16",stroke:"currentColor"},null,-1),Bs("path",{d:"M8 0L8 16",stroke:"currentColor"},null,-1)]))}]]),Gie=Wee({name:"ZoomOut",data:H((()=>({width:16,height:2})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("g",null,t[0]||(t[0]=[Bs("path",{d:"M0 1L16 1",stroke:"currentColor"},null,-1)]))}]]),Kie={name:"Icon",components:F({},Object.freeze(Object.defineProperty({__proto__:null,Academia:hte,Accessibility:fte,AlternateViews:vte,AmazonMusic:bte,ApplePodcasts:_te,ArrowBoxed:wte,ArrowDown:xte,ArrowLeft:Pte,ArrowRight:Nte,ArrowTop:Fte,ArrowUp:Lte,Bag:Bte,CC0:jte,Caret:Hte,Center:Ute,Check:Wte,Chevron:Gte,Chevron500:Kte,CircleCheck:Yte,Citation:Zte,Cleaning:Xte,Clipboard:Qte,Clock:Jte,Close:ene,Close600:tne,CloseBold:nne,ClosedCaptions:ine,CollectionsBookmark:rne,Comment:ane,ContactTracing:sne,ContractLeft:one,ContractLeft600:lne,Copyright:une,CopyrightNone:cne,CopyrightOther:dne,Delete:pne,DigitizedItems:hne,Dining:fne,Dots:mne,Download:gne,Download500:yne,ExpandLess:vne,ExpandMore:bne,ExpandMore600:_ne,ExpandRight:wne,ExpandRight600:Sne,Eye:Cne,FaceMask:Tne,Facebook:kne,FacebookConnect:xne,FastForward:Ene,Filters:Ane,Filters500:Lne,Folder:Ine,FullScreen:$ne,FullScreenExit:Dne,FullScreenVideo:Pne,FullScreenVideo400:One,FullScreenVideoExit:Mne,FullScreenVideoExit400:Rne,Github:Nne,GooglePodcasts:Fne,Grid:Bne,Hamburger:Hne,HandWashing:jne,Heart:Une,IIIF:Vne,ImageAvailable:qne,ImageAvailable28:zne,ImageContainer:Wne,ImageUnavailable:Gne,Info:Kne,Instagram:Yne,InstagramConnect:Zne,Institution:Xne,LinkedIn:Qne,List:Jne,Mail:eie,MapFold:tie,MapFoldLight:nie,MediaAudio:iie,MediaVideo:rie,Mute:aie,Outbound:sie,Outbound14:oie,PDF:pie,Paperclip:lie,Parking:uie,Pause:cie,Pause500:die,PersonOutline:hie,Pin:fie,PinLarge:mie,PlaceBearing:gie,Placemarker:yie,Play:vie,Plus:bie,Quote:_ie,RSS:Cie,RSSBold:kie,Rewind:wie,Rotate:Sie,Search:xie,SensitiveContent:Tie,Shop:Eie,SocialDistance:Aie,Speedometer:Lie,Spotify:Iie,Stitcher:$ie,Temperature:Die,Ticket:Pie,TicketBold:Oie,TikTok:Mie,ToggleOff:Rie,ToggleOn:Nie,Twitter:Fie,Villa:Hie,Volume:jie,Weblink:Uie,X:Vie,Youtube:qie,YoutubeConnect:zie,ZoomIn:Wie,ZoomOut:Gie},Symbol.toStringTag,{value:"Module"}))),props:{ariaTitle:{type:String,default:null},baseLocaleKey:{type:String,default:"a-icon"},name:{type:String,default:null},size:{type:[String,Number],default:null},viewBoxDimensions:{type:[Object],default:null},weight:{type:Number,default:null}},setup:H((e=>F({}
100,zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data:H((()=>({debouncedResize:null,fontSize:null,viewBoxWidth:0,viewBoxHeight:0,iconTitleId:`icon${br()}`})),"data"),computed:{classNames(){let e=["a-icon"];if(this.name){const t=this.name.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e.push(`a-icon--${t}`)}return this.size&&e.push(`a-icon--${this.size}`),e},fontSizeVar(){return{"--font-size":`${this.fontSize}px`}},computedIconDimensions(){if(this.viewBoxDimensions){const{width:e,height:t}=this.viewBoxDimensions;return{width:e,height:t}}{const e=H((e=>"number"==typeof this.size?this.size:this.namedIconSizes[this.size]||e),"e");return{width:e(this.viewBoxWidth),height:e(this.viewBoxHeight)}}},computedSize(){return this.namedIconSizes[this.size]||this.size},height(){return this.computedIconDimensions.height},namedIconSizes(){return{full:"100%",large:72,small:24,text:this.fontSize}},width(){return this.computedIconDimensions.width},iconTitle(){var e;if(this.ariaTitle)return this.ariaTitle;let t=this.translatePart(this.name),n=null==(e=this.name)?void 0:e.replace(/\d+$/,"");return t==this.name&&(t=this.translatePart(n)),t}},watch:{name(){this.getViewBoxSize()},size(){this.getViewBoxSize()}},methods:{getFontSize(){this.$nextTick((()=>{if(!this.$el)return null;const e=window.getComputedStyle(this.$el),t=parseInt(e.getPropertyValue("font-size"));this.fontSize=t}))},getViewBoxSize(){if(this.viewBoxDimensions){const{width:e,height:t}=this.viewBoxDimensions;this.viewBoxWidth=e,this.viewBoxHeight=t}else this.$nextTick((()=>{if(this.$refs.childComponent){const{width:e,height:t}=this.$refs.childComponent;this.viewBoxWidth=e,this.viewBoxHeight=t}}))},onResize(){this.getFontSize(),this.getViewBoxSize()}},mounted(){this.onResize(),this.debouncedResize=ete(this.onResize),window.addEventListener("resize",this.debouncedResize)},unmount(){window.removeEventListener("resize",this.debouncedResize)}},Yie=["width","height","viewBox","aria-labelledby"],Zie=["id"],Xie=Wee(Kie,[["render",function(e,t,n,i,r,a){return As(),Ps("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",width:a.width,height:a.height,viewBox:`0 0 ${r.viewBoxWidth} ${r.viewBoxHeight}`,class:Fe(a.classNames),style:Pe(a.fontSizeVar),"aria-labelledby":r.iconTitleId,role:"img"},[Bs("title",{id:r.iconTitleId},ze(a.iconTitle),9,Zie),n.name?(As(),Os(Xr(n.name),{key:0,size:a.computedSize,weight:n.weight,ref:"childComponent"},null,8,["size","weight"])):Ws("",!0)],14,Yie)}]]),Qie={computed:{hasDefaultSlotContent(){return this.doesSlotHaveContent()}},methods:{doesSlotHaveContent(e="default"){return this.doesSlotContainOnlyText(e)||this.doesSlotContainMarkup(e)},doesSlotContainMarkup(e="default"){const t=this.getSlot(e);return!!t&&(this.doesSlotContainVueComponent(t)||this.doesSlotContainHtmlMarkup(t))},doesSlotContainHtmlMarkup:H((e=>e().some((e=>{let t=!1;return e.children&&"object"==typeof e.children&&(t=Array.from(e.children).some((e=>"string"==typeof e.type))),t||"string"==typeof e.type}))),"doesSlotContainHtmlMarkup"),doesSlotContainVueComponent:H((e=>e().some((e=>{let t=!1;return Array.isArray(e.children)&&(t=e.children.some((e=>"object"==typeof e.type&&e.type.name))),t||"object"==typeof e.type&&e.type.name}))),"doesSlotContainVueComponent"),isSlotTextOnly(e){return Array.isArray(e.children)?e.children.every((e=>this.isSlotTextOnly(e))):"string"==typeof e.children&&e.type.toString().includes("Symbol")},isTextSlotEmpty(e){return Array.isArray(e.children)?e.children.some((e=>this.isTextSlotEmpty(e))):e.children&&e.children.trim&&""===e.children.trim()},doesSlotContainOnlyText(e="default"){let t=this.getSlot(e);return!!t&&(t=t(),t.every((e=>this.isSlotTextOnly(e)))&&t.some((e=>!this.isTextSlotEmpty(e))))},getSlot(e="default"){const t=this.$slots[e];return t instanceof Function?t:null},getSlotContent(e="default"){const t=this.getSlot(e);if(t)return this.doesSlotContainOnlyText(e)?this.getSlotTextContent(t()):t()},getSlotTextContent(e){let t="";return e.forEach((e=>{null!=e&&null!=e.children&&(Array.isArray(e.children)?t+=this.getSlotTextContent(e.children):e.children&&(t+=e.children.trim()))})),t}}
100},Jie={mixins:[nte],methods:{isDownload:H((e=>e&&![".html",".htm",".jsp",".cfm",".aspx",".asp"].includes(e)),"isDownload"),getDomain(e){const t=/([^./]+\.[^./]+)(?=\/|$)/;let n;return e.match(t)&&(n=e.match(t)[1]),n},getFileExtension(e){const t=/\.[^.]\w+$/;let n;return t.test(e)&&(n=e.match(t)[0]),n},iconType(e){if(!e)return null;if(e.startsWith("#"))return"ArrowDown";if((e=this.withBaseUrl(e)).startsWith("/")){const t=this.getFileExtension(e);return this.isDownload(t)?"Download":"ArrowRight"}let t;const n=new URL(e),i=this.getFileExtension(n.pathname);return t="mailto:"===n.protocol?"Mail":n.hash?"ArrowDown":this.isSameDomain(n)?this.isDownload(i)?"Download":"ArrowRight":"Outbound14",t},isSameDomain(e){if(this.baseUrl.startsWith("/"))return!0;if("object"!=typeof e)return console.error("isSameDomain typeof url must be URL"),!1;const t=new URL(this.baseUrl);return this.getDomain(t.host)==this.getDomain(e.host)},isExternal(e){if(!e||e.startsWith("#")||e.startsWith("/"))return!1;try{const t=new URL(this.withBaseUrl(e));return!this.isSameDomain(t)}catch(t){console.warn(`Invalid URL ${e}`)}},isActiveLink(e){return!(!e||!this.$route)&&this.$route.path.replace(/\//gi,"")===e.replace(/\//gi,"")},activeLinkAria(e){return this.isActiveLink(e)?"page":null},getLinkTarget(e){return"target"in this?this.target:this.isExternal(e)?"_blank":null},getLinkAriaLabel(e,t){if(e&&e.startsWith("mailto:")){const e="Send an email";return t?`${t}. ${e}`:e}if(!this.isExternal(e))return this.$props.ariaLabel?this.$props.ariaLabel:null;const n="Opens in new tab";return t?`${t}. ${n}`:n}}},ere={name:"GuiLink",components:{AnchorLink:ute,RouteLink:pte,Icon:Xie},mixins:[Jie,Qie],props:{active:{type:Boolean,default:!1},ariaCurrent:{type:String,default:null},ariaHidden:{type:String,default:null},ariaLabel:{type:String,default:null},button:{type:[Boolean,String],default:null,validator:H((e=>[!1,!0,"inverted"].includes(e)),"validator")},class:{type:[String,Array],default:H((()=>[]),"default")},disabled:{type:Boolean,default:null},href:{type:String,default:void 0},iconName:{type:String,default:null},iconSize:{type:[Number,String],default:"text"},tabindex:{type:[Number,String],default:0},target:{type:String,default:null,validator:H((e=>["_blank","_self"].includes(e)),"validator")},to:{type:[Object,String],default:void 0},underline:{type:Boolean,default:null},url:{type:String,default:void 0},withIcon:{type:String,default:null,validator(e){if(e)return["before","after"].includes(e)}}},computed:{classNames(){const e=[].concat(this.class);return this.doesSlotContainMarkup()?(e.push("a-link--wraps-component"),e):(e.push("a-link"),this.active&&e.push("a-link--active"),this.disabled&&e.push("a-link--disabled"),this.button&&(e.push("a-link--button"),"inverted"==this.button&&e.push("a-link--button--inverted")),this.underline&&e.push("a-link--underline"),e)},computedAriaLabel(){let e=null;if(this.doesSlotContainOnlyText()&&(e=this.getSlotContent()),!this.ariaLabel&&!e)return;const t=this.$props.ariaLabel||e;return this.getLinkAriaLabel(this.computedHref,t)},computedHref(){return this.href||this.url},computedIconName(){return this.iconName||this.iconType(this.computedHref)},computedTarget(){return this.getLinkTarget(this.computedHref)},linkType(){return this.computedHref?"AnchorLink":this.to&&(""!=this.to||Object.keys(this.to).length)?"RouteLink":void 0}}},tre={key:0,class:"a-link__icon"},nre={key:1,class:"a-link__label"},ire={key:2,class:"a-link__icon"},rre=Wee(ere,[["render",function(e,t,n,i,r,a){const s=Yr("Icon");return As(),Os(Xr(a.linkType),Zs(e.$props,{"aria-current":n.ariaCurrent,"aria-label":a.computedAriaLabel,"aria-hidden":n.ariaHidden,"class-names":a.classNames,target:a.computedTarget}),{default:Ii((()=>[e.doesSlotContainMarkup()?na(e.$slots,"default",{key:0}):(As(),Ps(Ss,{key:1},["before"===n.withIcon?(As(),Ps("span",tre,[Hs(s,{name:a.computedIconName,size:n.iconSize},null,8,["name","size"])])):Ws("",!0),e.doesSlotContainOnlyText()?(As(),Ps("span",nre,ze(e.getSlotContent()),1)):Ws("",!0),"after"===n.withIcon?(As(),Ps("span",ire,[Hs(s,{name:a.computedIconName,size:n.iconSize,"aria-hidden":"true"},null,8,["name","size"])])):Ws("",!0)],64))])),_:3},16,["aria-current","aria-label","aria-hidden","class-names","target"])}]]),are={name:"Chip",components:{GuiButton:Jee,GuiLink:rre,Icon:Xie}
100,props:{baseLocaleKey:{type:String,default:"a-chip"},displayShortValue:{type:Boolean,default:!0},qualifier:{type:String,default:void 0},showDelete:{type:Boolean,default:!0},showQualifier:{type:Boolean,default:!0},term:{type:[String,Boolean,Number],required:!0},termValue:{type:[String,Boolean,Number],default:void 0},url:{type:[String,void 0],default:void 0}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),emits:["deleteChip"],computed:{chipProps(){let e={"data-testid":"chip"};return this.showDelete&&(e={name:"delete",ref:"delete-chip","data-testid":"delete-chip"}),e},componentName(){let e="div";return this.showDelete&&(e="GuiButton"),this.url&&(e="GuiLink"),e},localizedClearButtonLabel(){return this.translatePart("clear_button")},localizedQualifier(){if(null!=this.qualifier)return this.translatePartWithSubkey("qualifiers",this.qualifier)},translatedTerm(){return this.translatePartWithSubkey("terms",this.term)},termClasses(){let e=["a-chip__term"];return this.displayShortValue&&e.push("a-chip__term--truncated"),e}},methods:{handleClick(){if(this.showDelete){let e=this.termValue;null==e&&(e=this.term),this.$emit("deleteChip",{qualifier:this.qual
100ifier,term:this.term,termValue:e})}}}},sre=["title"],ore=Wee(are,[["render",function(e,t,n,i,r,a){const s=Yr("Icon");return As(),Os(Xr(a.componentName),Zs({class:"a-chip",url:n.url},a.chipProps,{onClick:a.handleClick}),{default:Ii((()=>[Bs("span",{ref:"term-value",class:Fe(a.termClasses)},ze(a.translatedTerm),3),n.showQualifier&&null!=n.qualifier?(As(),Ps("span",{key:0,ref:"qualifier",class:"a-chip__qualifier"}," ("+ze(a.localizedQualifier)+")",513)):Ws("",!0),n.showDelete&&!n.url?(As(),Ps("span",{key:1,class:"a-chip__delete",title:a.localizedClearButtonLabel},[Hs(s,{ref:"icon",name:"CloseBold"},null,512)],8,sre)):Ws("",!0)])),_:1},16,["url","onClick"])}]]),lre=H((()=>typeof window>"u"),"qi"),ure=["documentation"],cre=Wee({name:"RichText",props:{content:{type:String,default:void 0},inline:{type:Boolean,default:!1},installMarkedPlugins:{type:Function,default:null},modifier:{type:String,default:void 0,validator:H((e=>e&&ure.includes(e)),"validator")},options:{type:Object,default:H((()=>{}),"default")},trim:{type:Boolean,default:!0}},beforeMount(){ny.use(Bm()),"function"==typeof this.installMarkedPlugins&&this.installMarkedPlugins(ny)},mounted(){this.wrapIframes()},computed:{classes(){const e="a-rich-text",t=[e];return this.modifier&&t.push(`${e}--${this.modifier}`),this.inline&&t.push(`${e}--inline`),t},compiledContent(){if(void 0===this.content)return;const e=(this.inline?ny.parseInline:ny)(this.content,this.options);return this.trim?e.trim():e},element(){return this.inline?"span":"div"}},methods:{wrapIframes(){var e;const t=null==(e=this.$refs)?void 0:e.content.querySelectorAll("iframe");t&&t.forEach((e=>{const t=document.createElement("div");t.classList.add("a-rich-text--iframe"),e.parentNode.insertBefore(t,e),t.append(e)}))}}},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(a.element),Zs(e.$attrs,{innerHTML:a.compiledContent,class:a.classes,ref:"content"}),null,16,["innerHTML","class"])}]]),dre={name:"Alert",components:{Icon:Xie,RichText:cre},props:{uid:{type:String,default:null},title:{type:String,default:null},content:{type:String,default:null},dismissable:{type:Boolean,default:!0},urgent:{type:Boolean,default:!1},toast:{type:Boolean,default:!1},toastActive:{type:Boolean,default:!1}},emits:["dismiss"],data:H((()=>({active:!0})),"data"),computed:{classes(){return["g-alert gui-container",{"g-alert--hidden":!this.toast&&!this.active},{"g-alert--urgent":this.urgent},{"g-alert--non-urgent":!this.urgent&&!this.toast},{"g-alert--toast":this.toast},{"g-alert--toast-active":this.toastActive}]},elementId(){return`alert-${this.uid}`},xLabel(){return!lre()&&document.querySelectorAll(".g-alert").length>1?`Dismiss Message: ${this.content}`:"Dismiss Message"},contentString(){return this.title?`<span class="g-alert__title">${this.title}</span>${this.content}`:this.content}},methods:{dismiss(e){e.preventDefault(),this.$emit("dismiss",{uid:this.uid})}}},pre=["id","role","aria-hidden"],hre={class:"g-alert__inner"},fre=["aria-label"],mre={class:"visually-hidden"},gre=Wee(dre,[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("Icon");return As(),Ps("div",{id:a.elementId,class:Fe(a.classes),role:n.toast&&n.toastActive?"alert":null,"aria-hidden":n.toast&&!n.toastActive?"true":null},[Bs("div",hre,[n.content||n.title?(As(),Os(s,{key:0,ref:"content",class:"g-alert__content",content:a.contentString},null,8,["content"])):Ws("",!0),n.dismissable?(As(),Ps("button",{key:1,ref:"dismissButton","aria-label":a.xLabel,class:"g-alert__close",onClick:t[0]||(t[0]=(...e)=>a.dismiss&&a.dismiss(...e))},[Bs("span",mre,ze(a.xLabel),1),Hs(o,{name:"close","aria-hidden":"true"})],8,fre)):Ws("",!0)])],10,pre)}]]),yre={components:{Alert:gre},data:H((()=>({timer:null,toastActive:!1})),"data"),methods:{copyText(e){clearTimeout(this.timer),navigator.clipboard.writeText(e).then((()=>{this.toastActive=!0,this.timer=setTimeout((()=>{this.toastActive=!1}),3e3)}),(()=>{console.warn("Copy failed")}))}}},vre={name:"CopyButton",components:{GuiButton:Jee,Icon:Xie},mixins:[yre],props:{baseLocaleKey:{type:String,default:"a-copy-button"},fieldName:{type:String,default:""},iconSize:{type:Number,default:24},text:{type:[String,Function],required:!0,default:void 0},textKey:{type:String,required:!0},showLabel:{type:Boolean,default:!1},modifiers:{type:Array,default:H((()=>[]),"default")}},setup:H((e=>F({}
100,zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),emits:["copiedText"],data:H((()=>({})),"data"),computed:{copyButtonTitle(){let e=this.fieldName;return null==e||""==e.trim()?this.translatePart("copy_button_generic_title"):this.translatePart("copy_button_title",{field:e})},textToCopy(){return"string"==typeof this.text?this.text:this.text()}},methods:{copyField(){this.copyText(this.textToCopy),this.$emit("copiedText",this.textKey)}}},bre={class:"a-copy-button"},_re={key:0,class:"a-copy-button__label"},wre=Wee(vre,[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("GuiButton");return As(),Ps("div",bre,[Hs(o,{name:"copy-button_"+n.textKey,class:"a-copy-button__button",modifiers:["icon",...n.modifiers],title:a.copyButtonTitle,onClick:a.copyField},{default:Ii((()=>[n.showLabel?(As(),Ps("span",_re,ze(a.copyButtonTitle),1)):Ws("",!0),Hs(s,{name:"Clipboard",size:n.iconSize,"aria-title":a.copyButtonTitle},null,8,["size","aria-title"])])),_:1},8,["name","modifiers","title","onClick"])])}]]),Sre={name:"Credits",components:{Icon:Xie},mixins:[Qie],props:{ariaLabel:{type:String,default:null},ariaLabelledBy:{type:String,default:null},creditsActive:{type:Boolean,default:!1},hiddenText:{type:String,default:null},id:{type:String,default:null}},data(){return{_creditsActive:this.creditsActive}},computed:{buttonLabel(){if(this.ariaLabel)return this.ariaLabel&&this.ariaLabelledBy?this.ariaLabel:`Image Credits: ${this.ariaLabel}`},buttonText(){return this.hiddenText||(this._creditsActive?"Hide":"Show")+" information"}},watch:{creditsActive(){this._creditsActive=this.creditsActive}}},Cre={key:0,class:"a-credits"},kre=["aria-expanded","aria-label","aria-labelledby","id"],xre={class:"visually-hidden"},Tre={class:"a-credits__content"},Ere=Wee(Sre,[["render",function(e,t,n,i,r,a){const s=Yr("Icon");return e.hasDefaultSlotContent?(As(),Ps("div",Cre,[Bs("button",{class:"a-credits__trigger","aria-expanded":r._creditsActive.toString(),"aria-label":a.buttonLabel,"aria-labelledby":n.ariaLabelledBy,id:n.id,onClick:t[0]||(t[0]=e=>r._creditsActive=!r._creditsActive)},[Hs(s,{name:"info","aria-hidden":"true"}),Hs(s,{name:"close","aria-hidden":"true"}),Bs("span",xre,ze(a.buttonText),1)],8,kre),Bs("div",Tre,[na(e.$slots,"default")])])):Ws("",!0)}]]),Are=H((e=>Array.isArray(e)),"Si"),Lre=H((e=>"object"==typeof e&&!Are(e)&&null!==e),"Il"),Ire=["aria-labelledby"],$re=Wee({name:"DescriptionList",props:{descriptionKey:{type:String,default:null},id:{type:String,default:null},terms:{type:[Array,Object],default:H((()=>[]),"default"),validator:H((e=>Lre(e)||Are(e)&&e.every(Lre)||Are(e)&&e.every(Are)),"validator")},termKey:{type:String,default:null}},computed:{computedTerms(){return Lre(this.terms)?Object.entries(this.terms).map((([e,t])=>({term:e,description:t}))):Are(this.terms)?this.terms.map((e=>{const t=this.descriptionKey||"description",n=Are(e)?e[1]:e[t],i=this.termKey||"term";return{description:n,term:Are(e)?e[0]:e[i]}})):[]}}},[["render",function(e,t,n,i,r,a){return As(),Ps("dl",{class:"a-description-list","aria-labelledby":n.id},[(As(!0),Ps(Ss,null,ea(a.computedTerms,(({description:e,term:t})=>(As(),Ps(Ss,{key:t},[Bs("dt",null,ze(t),1),Bs("dd",null,ze(e),1)],64)))),128))],8,Ire)}]]),Dre={name:"DelimitedFieldValues",components:{GuiLink:rre,RichText:cre},inject:{delimitedValuesMarkdownOptions:{default:void 0},useMarkdownInDelimitedValues:{default:!0}},props:{values:{type:[String,Array,Number,Boolean,Object,void 0],required:!1,default:void 0},delimiter:{type:String,required:!1,default:";"},dataCy:{type:String,required:!1,default:""},classes:{type:Array,required:!1,default:H((()=>[]),"default")},useList:{type:Boolean,required:!1,default:!1},ariaLabelId:{type:String,required:!1}},computed:{classNames(){return["a-delimited-field-values"].concat(this.classes)},cleanedValues(){const e=[];if(void 0===this.values)return e;if("object"==typeof this.values&&!Array.isArray(this.values)&&null!==this.values)return this.isTextValueValid(this.values.name)&&e.push(this.values),e;if(!1===Array.isArray(this.values)&&this.isValueValid(this.values))return e.push(this.convertToObject(this.values)),e;
100for(const t of this.values)null!=t&&(this.isValueValid(t)?e.push(this.convertToObject(t)):0!=this.isTextValueValid(t.name)&&e.push(t));return e},isBlockDelimited(){return"block"===this.delimiter}},created(){},methods:{isValueValid:H((e=>!("string"==typeof e&&""===e.trim()||"string"!=typeof e&&!1!==isNaN(e)&&"boolean"!=typeof e)),"isValueValid"),convertToObject:H((e=>({name:e})),"convertToObject"),getItemClasses(e){const t=[];return this.isBlockDelimited&&t.push("a-block-value"),this.hasItemClass(e)&&(Array.isArray(e.cssClasses)?e.cssClasses.forEach((e=>t.push(e))):t.push(e.cssClasses)),t.length?t:null},useDelimiter:H((e=>e>0),"useDelimiter"),hasItemClass:H((e=>!!Object.keys(e).includes("cssClasses")),"hasItemClass"),isTextValueValid:H((e=>"string"==typeof e&&""!==e.trim()||void 0!==e),"isTextValueValid"),richTextOrSpan(e){return this.useMarkdownInDelimitedValues&&"string"==typeof e?cre:ko("span",{},[" ",e.toString()])},buildContent(e,t,n,i){if(null==e||"string"==typeof e&&""==e.trim())return;let r=ko(this.richTextOrSpan(e),{options:this.delimitedValuesMarkdownOptions,class:t,trim:!0,inline:!0,content:e});return Array.isArray(n)&&("before"==i&&n.push(" "),n.push(r),"after"==i&&n.push(" ")),r}},render(){if(0==this.cleanedValues.length)return;let e=[];return this.cleanedValues.forEach(((t,n)=>{let i=[];this.useDelimiter(n)&&0==this.isBlockDelimited&&i.push(this.delimiter+" "),this.buildContent(t.beforeLink,"a-delimited-field-values--prefix",i,"after");let r=this.buildContent(t.name);if(t.to||t.href){const e=B(F({},t),{ref:"link"});if(t.href&&t.withIcon)r=t.name;else{const e=["iconName","iconSize"].find((e=>t[e]));e&&console.warn(`Warning: ignoring unused prop '${e}'`)}i.push(ko(rre,e,(()=>[r])))}else i.push(r);this.buildContent(t.afterLink,"a-delimited-field-values--suffix",i,"before"),e.push(ko(this.useList?"li":"span",{key:t.name,class:this.getItemClasses(t)},i))})),ko(this.useList?"ul":"span",{class:this.classNames,"data-testid":this.dataCy,"aria-labelledby":this.useList&&this.ariaLabelId?this.ariaLabelId:null},e)}},Pre={class:"a-display-text"},Ore=Wee({name:"DisplayText",props:{displayText:{type:String,default:null}}},[["render",function(e,t,n,i,r,a){return As(),Ps("div",Pre,[Bs("h1",null,ze(n.displayText),1)])}]]),Mre=Wee({name:"GuiInput",props:["value"],emits:["submitForm","getAutocompleteValues","addSearchTerm","node"],data(){return{data:this.value}},computed:{attrs(){const e=Object.assign({},this.$attrs);return"checkbox"==e.type&&(e.decoratorIcon="check"),delete e["data-testid"],delete e.id,e}},watch:{value:{handler:H((function(){this.data=this.value}),"handler"),deep:!0,immediate:!0}},methods:{setNode(e){e.on("getAutocompleteValues",(({payload:e})=>{this.$emit("getAutocompleteValues",e)})),e.on("addSearchTerm",(({payload:e})=>{this.$emit("addSearchTerm",e)})),e.on("submitForm",(({payload:e})=>{this.$emit("submitForm",e)})),this.$emit("node",e)}}},[["render",function(e,t,n,i,r,a){const s=Yr("FormKit");return"select"==a.attrs.type?(As(),Os(s,Zs({key:0},a.attrs,{modelValue:r.data,"onUpdate:modelValue":t[0]||(t[0]=e=>r.data=e),onNode:a.setNode,ref:"input"}),null,16,["modelValue","onNode"])):(As(),Os(s,Zs({key:1},a.attrs,{modelValue:r.data,"onUpdate:modelValue":t[1]||(t[1]=e=>r.data=e),onNode:a.setNode,ref:"input"}),{default:Ii((()=>[na(e.$slots,"default")])),_:3},16,["modelValue","onNode"]))}]]),Rre=Wee({name:"FacetItem",components:{GuiInput:Mre},props:{baseLocaleKey:{type:String,default:"a-facet-item"},checked:{required:!0,type:Boolean,default:!1},count:{required:!1,type:[String,Number],default:void 0},fieldName:{required:!0,type:String},value:{required:!0,type:String},disabled:{type:Boolean,default:!1}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),emits:["updateSearch"],data(){return{isChecked:this.checked}},computed:{label(){let e="";return null!=this.count&&(e=this.translatePart("formatted_value",{count:this.localizeNumber(this.count)})),this.translatePart(this.value)+" "+e}},watch:{checked(){this.isChecked=this.checked}},mounted(){this.isChecked=this.checked},methods:{updateSearch(e){this.isChecked=e;let t="deleteField";!0===this.isChecked&&(t="addField"),this.$emit("updateSearch",{name:this.fieldName,type:t,value:this.value})}}},[["render",function(e,t,n,i,r,a){const s=Yr("GuiInput");return As(),Ps("div",{"data-testid":"facetItem",class:Fe(["a-facet-item",{"a-facet-item--disabled":n.disabled}])},[Hs(s,{ref:"checkbox",class:"a-facet-item__checkbox",name:n.fieldName,modelValue:r.isChecked,"onUpdate:modelValue":t[0]||(t[0]=e=>r.isChecked=e),label:a.label,disabled:n.disabled,type:"checkbox",onInput:a.updateSearch},null,8,["name","modelValue","label","disabled","onInput"])],2)}]]),Nre={name:"GoogleSlidesEmbed",props:{aspectRatio:{type:String,default:"16:9"},url:{type:String,default:null}},data:H((()=>({delayms:3e3,loop:!1,start:!1})),"data"),computed:{aspectRatioStyles(){const e=this.aspectRatio.split(":");return{paddingBottom:`calc(${e[1]/e[0]*100}% + 36px)`}},embedUrl(){if(!this.url)return"";try{const{origin:e,pathname:t}=new URL(this.url),n=t.split("/").slice(0,-1).join("/"),i=new URL(`${e}${n}/embed`);
100return Object.entries(this.$data).forEach((([e,t])=>{i.searchParams.set(e,t)})),i.href}catch(tvt){throw new Error(tvt)}}}},Fre=["src"],Bre=Wee(Nre,[["render",function(e,t,n,i,r,a){return As(),Ps("div",{class:"a-google-slides-embed",style:Pe(a.aspectRatioStyles)},[n.url?(As(),Ps("iframe",{key:0,src:a.embedUrl,frameborder:"0",width:"100%",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"},null,8,Fre)):Ws("",!0)],4)}]]),Hre=H((e=>{if(e)return oy(e).replace(/[\u0300-\u036f]/g,"").toLowerCase()}),"kr$1"),jre={name:"Heading",components:{RichText:cre},mixins:[Qie],props:{level:{type:Number,default:1,validator:H((e=>e>=1&&e<=6),"validator")}},render(){return this.doesSlotContainOnlyText()?ko(`h${this.level}`,F({},this.$attrs),[ko(cre,{content:this.getSlotContent(),inline:!0})]):ko(`h${this.level}`,this.getSlotContent())}},Ure={props:{forceListRole:{type:String,default:null}},methods:{getListRole(e){const t=e&&1===e.length;return this.forceListRole||t?"presentation":null}}},Vre=["aria-labelledby","role"],qre=["role"],zre=Wee({name:"ListOfLinks",components:{GuiLink:rre},data:H((()=>({baseClass:"m-list-of-links"})),"data"),mixins:[Ure,Jie],props:{labelId:{type:[String,Number],default:null},links:{type:Array,default:null},modifiers:{type:Array,default:null},withIcons:{type:String,default:null,validator:H((e=>e&&["before","after"].includes(e)),"validator")}},provide(){return{componentBaseUrl:this.baseUrl}},computed:{classNames(){const e=[this.baseClass];return this.modifiers&&this.modifiers.forEach((t=>{e.push(`${this.baseClass}--${t}`)})),e},linkListRole(){return this.getListRole(this.links)},linkUnderline(){return this.modifiers&&this.modifiers.includes("link-underline")}},methods:{getLinkAttrs:H((e=>j(e,[])),"getLinkAttrs"),itemKey:H((e=>`${br()}-${e}`),"itemKey")}},[["render",function(e,t,n,i,r,a){const s=Yr("GuiLink");return As(),Ps("ul",{"aria-labelledby":"presentation"===a.linkListRole?null:n.labelId,class:Fe(a.classNames),role:a.linkListRole,"data-testid":"m-list-of-links",ref:"list"},[(As(!0),Ps(Ss,null,ea(n.links,((e,t)=>(As(),Ps("li",{key:a.itemKey(t),role:a.linkListRole,ref_for:!0,ref:"listItem"},[Hs(s,Zs({ref_for:!0},a.getLinkAttrs(e),{href:e.url,underline:a.linkUnderline,withIcon:e.withIcon||n.withIcons,ref_for:!0,ref:"link"}),{default:Ii((()=>[qs(ze(e.text),1)])),_:2},1040,["href","underline","withIcon"])],8,qre)))),128))],10,Vre)}]]),Wre=Wee({name:"ListOfLinksWithHeading",components:{Heading:jre,ListOfLinks:zre},data:H((()=>({headingId:`listOfLinksWithHeading${br()}Title`,baseClass:"m-list-of-links-with-heading"})),"data"),props:{heading:{type:String,default:null},headingLevel:{type:Number,default:2},links:{type:Array,default:null,required:!0},modifiers:{type:Array,default:null},showHeading:{type:Boolean,default:!0},withIcons:{type:String,default:null,validator:H((e=>["before","after",null].includes(e)),"validator")}},computed:{classNames(){const e=[this.baseClass];return this.modifiers&&this.modifiers.forEach((t=>{e.push(`${this.baseClass}--${t}`)})),e},defaultHeading(){if(!this.heading)return this.showHeading?"Jump to":"Child Pages"},labelId(){return this.links.length>1?this.headingId:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("ListOfLinks");return n.links?(As(),Ps("div",{key:0,class:Fe(a.classNames)},[Hs(s,{id:r.headingId,level:n.headingLevel,class:Fe(["m-list-of-links-with-heading__title",{"visually-hidden":!n.showHeading}])},{default:Ii((()=>[qs(ze(n.heading||a.defaultHeading),1)])),_:1},8,["id","level","class"]),Hs(o,{labelId:a.labelId,links:n.links,modifiers:n.modifiers,withIcons:n.withIcons,class:"m-list-of-links-with-heading__links"},null,8,["labelId","links","modifiers","withIcons"])],2)):Ws("",!0)}]]),Gre="autocompleteValue",Kre="freeText",Yre={name:"GuiAutocomplete",components:{ListOfLinksWithHeading:Wre},props:{context:{type:Object,required:!0},options:{type:Object,required:!1,default:H((()=>({})),"default")},baseLocaleKey:{type:String,default:"a-guiautocomplete"},values:{required:!1,type:Array,default:H((()=>[]),"default")}},setup:H((e=>F({}
100,zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data(){return{uid:br(),current:-1,emittedAutocompleteEvent:!1,inputAriaLabel:this.translate(this.baseLocaleKey+".input_aria_label"),internalModel:"",isInputFocused:!1,listboxAriaLabel:this.translate(this.baseLocaleKey+".listbox_aria_label"),menuHasFocus:!1,isMenuElementFocused:!1,isMousedOverMenu:!1,loadedQuery:"",loading:!1,matchedItems:[],emittedSearchTerm:void 0}},watch:{doesAnyElementHaveFocus(e,t){e&&(this.menuHasFocus=!0),t!=e&&t&&setTimeout((()=>{0==this.doesAnyElementHaveFocus&&(this.menuHasFocus=!1,this.emittedAutocompleteEvent=!1)}),100)},values(){this.internalModel!=this.emittedSearchTerm&&(this.processSuggestions(this.values),this.loading=!1)},mirrorModel(){this.internalModel=this.context.value,""==this.mirrorModel&&this.reset(),this.processUserInput()}},computed:{doesAnyElementHaveFocus(){return this.isMenuElementFocused||this.isInputFocused||this.isMousedOverMenu},config(){const e={additionalNormalization:null,addSuffix:null,allowAnyInput:!0,getMatchStringForSuggestion:H((e=>e.match_string),"getMatchStringForSuggestion"),getMatchedItem:H((e=>"object"==typeof e&&null!==e&&e.name?{match_string:e.name,object:e}:{match_string:e}),"getMatchedItem"),getItemHtml:H(((e,t,n)=>{let i=e.length,r=Hre(n),a=Hre(e);function s(e,t,n){let i=t+n;return e.slice(0,t)+"<b>"+e.slice(t,i)+"</b>"+e.slice(i)}if(H(s,"u"),"function"==typeof this.config.additionalNormalization&&(a=this.config.additionalNormalization(a)),null==a||-1==a.indexOf(r))return this.addSuffix(e,t);let o=a.indexOf(r)+r.length,l=a.length-o+1;return 0!=a.indexOf(r)&&(o+=(e=s(e,0,a.indexOf(r))).length-i),o!=e.length&&(e=s(e,o,l)),this.addSuffix(e,t)}),"getItemHtml"),includeQuery:!0,includeQueryDuplicatesMatchedValue:!1,limit:10,minChars:2,selectFirst:!1,showSearchingFlag:!1,sortResults:H(((e,t)=>e.match_string.localeCompare(t.match_string)),"sortResults"),initialSuggestions:void 0,placeholder:this.translatePart("placeholder")};return Object.assign(e,this.options)},matchedItemsLength(){return this.matchedItems.length},mirrorModel(){return this.context.value},hasItems(){return this.matchedItemsLength>0&&this.emittedAutocompleteEvent},isEmpty(){return""===this.internalModel},loadingStatusKey(){let e=this.loading?".loading":".no_result";return this.translate(this.baseLocaleKey+e)},showMenu(){return this.showSuggestions||this.hasItems&&this.doesAnyElementHaveFocus},showSearching(){return this.config.showSearchingFlag&&!this.hasItems&&!this.isEmpty},showSuggestions(){return this.isEmpty&&this.menuHasFocus&&0==this.hasItems&&null!=this.config.initialSuggestions},typeaheadClasses(){let e=["a-guiautocomplete__dropdown-menu"];return this.loading&&e.push("a-guiautocomplete__dropdown-menu--loading"),!1===this.loading&&e.push("a-guiautocomplete__dropdown-menu--loaded"),e}},mounted(){document.addEventListener("click",(e=>{this.$el.contains(e.target)||this.reset()})),this.$nextTick((function(){this.$refs.typeaheadMenu.addEventListener("mouseover",(()=>{this.isMousedOverMenu=!0})),this.$refs.typeaheadMenu.addEventListener("mouseout",(()=>{this.isMousedOverMenu=!1})),this.$refs.typeaheadMenu.addEventListener("focusin",(()=>{this.isMenuElementFocused=!0})),this.$refs.typeaheadMenu.addEventListener("focusout",(()=>{this.isMenuElementFocused=!1}))}))},methods:{addSuffix(e,t){return"function"==typeof this.config.addSuffix?this.config.addSuffix(e,t):e},isOptionSelected(e){return this.current===e},arrowDownKey(){this.current<this.matchedItems.length-1?this.current++:this.current=-1},arrowUpKey(){this.current>0?this.current--:-1===this.current?this.current=this.matchedItems.length-1:this.current=-1},emitSuggestionsEvent(e){this.emittedAutocompleteEvent=!0,this.context.node.emit("getAutocompleteValues",e)},emitUserSelectionEvent(e,t){this.context.node.emit("addSearchTerm",{query:this.internalModel,type:e,item:t}),this.reset(),this.emittedSearchTerm=this.internalModel},reset(e=!1,t=void 0){!0===e&&(this.internalModel="",this.context.value=""),"Escape"!=(null==t?void 0:t.code)||this.matchedItems.length||(this.context.value=""),this.matchedItems.splice(0),this.emittedAutocompleteEvent=!1,this.emittedSearchTerm=void 0,this.loading=!1,this.current=-1},setActive(e){this.current=e},search(){if(-1==this.current&&this.config.selectFirst&&0==this.config.allowAnyInput&&this.hasItems&&this.arrowDownKey(),-1!=this.current&&(this.internalModel=this.config.getMatchStringForSuggestion(this.matchedItems[this.current]),this.context.value=this.internalModel),this.current<1&&1==this.config.allowAnyInput)this.emitUserSelectionEvent(Kre);else{for(let e=0;e<this.matchedItems.length;e++)if(this.matchedItems[e].match_string==this.internalModel){if(this.current<1&&0==this.config.allowAnyInput)return void this.emitUserSelectionEvent(Gre,this.matchedItems[e]);if(this.current==e)return void this.emitUserSelectionEvent(Gre,this.matchedItems[e])}1!=this.config.allowAnyInput||this.emitUserSelectionEvent(Kre)}},onInputBlur(){this.isInputFocused=!1,this.context.handlers.blur()},onInputFocus(){this.emittedAutocompleteEvent=!1,this.isInputFocused=!0},processUserInput(){if(null==this.internalModel||""==this.internalModel)return this.reset();if(0==this.isInputFocused||this.config.minChars&&this.internalModel.length<this.config.minChars)return;let e=this.internalModel||"",t=this.emittedSearchTerm||"";e.trim()!=t.trim()&&(this.loading=!0,this.emitSuggestionsEvent(this.internalModel))},processSuggestions(e){if(null==e||0==Array.isArray(e))return;let t=e.slice(0,this.config.limit);if(this.matchedItems=t.map((e=>this.config.getMatchedItem(e))).filter((e=>e&&null!=e.match_string&&e.match_string.trim().length>0)),this.matchedItems.sort(this.config.sortResults),this.config.includeQuery){if(null==this.internalModel||0==this.internalModel.trim().length)return;let e={match_string:this.internalModel},t=-1;for(let n=0;n<this.matchedItems.length;n++)if(this.matchedItems[n].match_string==this.internalModel.trim()){t=n;break}t>-1&&0==this.config.includeQueryDuplicatesMatchedValue&&this.matchedItems.splice(t,1),this.matchedItems.splice(0,0,e)}this.current=-1}}},Zre=["data-type"],Xre=["id","placeholder","aria-activedescendant","aria-owns","aria-label","aria-expanded"],Qre=["id","aria-label","data-testid-query"],Jre=["id","aria-posinset","aria-selected","aria-setsize","onMousemove","onKeyup","innerHTML"],eae={key:1,role:"menu"},tae=Wee(Yre,[["render",function(e,t,n,i,r,a){const s=Yr("ListOfLinksWithHeading");return As(),Ps("div",{class:Fe(`a-guiautocomplete a-gui-input__element a-gui-input__element--${n.context.type}`),"data-type":n.context.type,ref:"autocomplete"},[$i(Bs("input",Zs({"onUpdate:modelValue":t[0]||(t[0]=e=>n.context.value=e)},n.context.attributes,{id:`input${r.uid}`,ref:"input",role:"combobox",placeholder:a.config.placeholder,"aria-activedescendant":r.current>-1?r.uid+"-"+parseInt(r.current):null,"aria-owns":r.uid,"aria-autocomplete":"list",type:"search","data-testid":"autocomplete-input","aria-label":r.inputAriaLabel,"aria-expanded":a.hasItems,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onFocus:t[1]||(t[1]=(...e)=>a.onInputFocus&&a.onInputFocus(...e)),onBlur:t[2]||(t[2]=(...e)=>a.onInputBlur&&a.onInputBlur(...e)),onKeydown:[t[3]||(t[3]=Zl(((...e)=>a.arrowDownKey&&a.arrowDownKey(...e)),["down"])),t[4]||(t[4]=Zl(((...e)=>a.arrowUpKey&&a.arrowUpKey(...e)),["up"])),t[5]||(t[5]=Zl(Kl((e=>a.search("enter")),["prevent"]),["enter"])),t[6]||(t[6]=Zl(Kl((e=>a.reset(!1,e)),["prevent"]),["esc"]))],onInput:t[7]||(t[7]=(...e)=>n.context.handlers.DOMInput&&n.context.handlers.DOMInput(...e))}),null,16,Xre),[[zl,n.context.value]]),$i(Bs("div",{class:Fe(a.typeaheadClasses),ref:"typeaheadMenu"},[a.showSuggestions?(As(),Os(s,{key:0,modifiers:["inline","link-underline"],heading:a.config.initialSuggestions.label,links:a.config.initialSuggestions.sampleSearches},null,8,["heading","links"])):Ws("",!0),$i(Bs("ul",{ref:"typeaheadList","data-testid":"autocomplete-menu",id:r.uid,role:"listbox","aria-label":r.listboxAriaLabel,"data-testid-query":r.loadedQuery},[(As(!0),Ps(Ss,null,ea(r.matchedItems,((e,n)=>(As(),Ps("li",{key:parseInt(n)+e.match_string,id:`${r.uid}-${parseInt(n)}`,"aria-posinset":n,"aria-selected":a.isOptionSelected(n),"aria-setsize":a.matchedItemsLength,role:"option",class:Fe({"a-guiautocomplete__dropdown-menu-item--active":a.isOptionSelected(n),"a-guiautocomplete__dropdown-menu-item":!0}),onMousedown:t[8]||(t[8]=e=>a.search()),onMousemove:H((e=>a.setActive(n)),"onMousemove"),onKeyup:Zl((e=>{a.setActive(n),a.search()}),["enter"]),"data-testid":"autocomplete-option",ref_for:!0,ref:"typeahead-option",tabindex:"0",innerHTML:a.config.getItemHtml(e.match_string,e.object,r.internalModel)},null,42,Jre)))),128))],8,Qre),[[tl,a.hasItems]]),a.showSearching?(As(),Ps("ul",eae,[Bs("li",null,[Bs("span",null,ze(a.loadingStatusKey),1)])])):Ws("",!0)],2),[[tl,a.showMenu]])],10,Zre)}]]),nae=Wee({name:"IconPlacemat",components:{Icon:Xie},props:{aspectRatio:{type:String,default:"16:9"},icon:{type:String,default:null},size:{type:Number,default:72}},computed:{classNames(){const e="m-search-result-card__icon-placemat";return[e,`${e}--${this.aspectRatio.replace(":","-")}`]}}},[["render",function(e,t,n,i,r,a){const s=Yr("Icon");return n.icon?(As(),Ps("div",{key:0,class:Fe(a.classNames)},[Hs(s,{name:n.icon,size:n.size},null,8,["name","size"])],2)):Ws("",!0)}]]),iae={name:"IconTooltip",mixins:[ate],components:{Icon:Xie},props:{title:{type:String,default:null},body:{type:String,default:null},href:{type:String,default:null},icon:{type:String,default:null},position:{type:Object,default:null},arrowPosition:{type:String,default:null},active:{type:Boolean,default:!1}},data:H((()=>({isMobile:!1})),"data"),mounted(){this.debouncedResize=ete(this.handleResize),window.addEventListener("resize",this.debouncedResize),this.handleResize()},beforeUnmount(){window.removeEventListener("resize",this.debouncedResize)},computed:{arrowPositionClass(){return`a-icon-tooltip__arrow-${this.arrowPosition?this.arrowPosition.replace(/\s/g,"-"):"none"}`},positionStyles(){if(!this.isMobile)return this.position}},methods:{handleClick(e,t){if(t.preventDefault(),e&&e.startsWith("#")){this.scrollToHash(e,110,(()=>{const t=document.querySelector(e);setTimeout((()=>{t.focus()}),10)}));const t=window.location.pathname;window.history.pushState({},"",`${t}${e}`)}},handleResize(){this.isMobile=window.innerWidth<1024}}},rae={class:"a-icon-tooltip__main"},aae={key:0,class:"a-icon-tooltip__title"},sae={key:0,class:"visually-hidden"},oae={key:1,class:"a-icon-tooltip__body"},lae={class:"a-icon-tooltip__aside"},uae=Wee(iae,[["render",function(e,t,n,i,r,a){const s=Yr("Icon");return As(),Ps("div",{class:Fe(["a-icon-tooltip",a.arrowPositionClass]),style:Pe(a.positionStyles)},[(As(),Os(Xr(n.href?"a":"div"),{href:n.href?n.href:null,class:"a-icon-tooltip__inner",onClick:t[0]||(t[0]=e=>a.handleClick(n.href,e))},{default:Ii((()=>[Bs("div",rae,[n.title?(As(),Ps("span",aae,[Bs("span",null,ze(n.title),1),n.body?(As(),Ps("span",sae,":Â ")):Ws("",!0)])):Ws("",!0),n.body?(As(),Ps("span",oae,[Bs("span",null,ze(n.body),1)])):Ws("",!0)]),Bs("div",lae,[n.icon?(As(),Os(s,{key:0,name:n.icon},null,8,["name"])):Ws("",!0)])])),_:1},8,["href"]))],6)}]]),cae={breakpoints:{xxlarge:"(min-width: 1920px)",xlarge:"(min-width: 1440px)",large:"(min-width: 1024px)",medium:"(min-width: 768px)",small:"(min-width: 544px)",xsmall:""},columnWidths:{xxlarge:1800,xlarge:"fluid",large:"fluid",medium:"fluid",small:"fluid",xsmall:"fluid"},innerGutters:{xxlarge:24,xlarge:24,large:24,medium:16,small:16,xsmall:16},outerGutters:{xxlarge:60,xlarge:60,large:36,medium:24,small:16,xsmall:16},columnCount:{xxlarge:12,xlarge:12,large:12,medium:8,small:6,xsmall:6}},dae=parseInt("2"),pae={inject:{defaultIiifBaseUrl:{type:String,default:"https://media.getty.edu/iiif/image/".replace(/\/$/,"")},defaultIiifVersion:{type:Number,default:dae}},props:{iiifBaseUrl:{type:String,required:!1,default:null},iiifImageFormat:{type:String,required:!1,default:"jpg",validator:H((e=>["jpg","webp","png"].includes(e)),"validator")},iiifVersion:{type:Number,required:!1,default:null,validator:H((e=>[2,3].includes(e)),"validator")}},methods:{buildIiifInfoUri(e){if(e)return`${this.getIiifBaseUrl()}/${e}/info.json`;console.warn("Warning: buildIiifInfoUri() was called without an image id")},buildIiifUri(e,t={}){if(!e)return void console.warn("Warning: buildIiifUri() was called without an image id");
100const n=t.region||"full",i=t.confined?"!":"",r=t.width||t.height?`${i}${t.width||""},${t.height||""}`:3===this.getIiifVersion()?"max":"full",a=t.rotation||0,s=t.quality||"default",o=t.format||this.iiifImageFormat;return`${this.getIiifBaseUrl()}/${e}/${n}/${r}/${a}/${s}.${o}`},getIiifBaseUrl(){return this.iiifBaseUrl?this.iiifBaseUrl:this.defaultIiifBaseUrl},getIiifVersion(){return this.iiifVersion?this.iiifVersion:this.defaultIiifVersion}}},hae={post_xsmall:{options:{ratio:"16:9"},sizes:{xxlarge:2,xlarge:2,large:2,medium:3,small:6,xsmall:6},widths:[200,300,400,500,600]},post_xsmall_variable_height:{options:{},sizes:{xxlarge:2,xlarge:2,large:2,medium:3,small:6,xsmall:6},widths:[200,300,400,500,600]},post_xsmall_variable_height_jpca_restricted:{options:{confined:!0},sizes:{xxlarge:2,xlarge:2,large:2,medium:3,small:6,xsmall:6},widths:[200,300,400]},post_small:{options:{ratio:"16:9"},sizes:{xxlarge:3,xlarge:3,large:3,medium:4,small:6,xsmall:6},widths:[200,300,400,500,600,800,1e3]},post_small_1_1:{options:{ratio:"1:1"},sizes:{xxlarge:3,xlarge:3,large:3,medium:4,small:6,xsmall:6},widths:[200,300,400,500,600,800,1e3]},post_small_variable_height:{options:{},sizes:{xxlarge:3,xlarge:3,large:3,medium:4,small:6,xsmall:6},widths:[200,300,400,500,600,800,1e3]},post_small_variable_height_jpca_restricted:{options:{confined:!0},sizes:{xxlarge:3,xlarge:3,large:3,medium:4,small:6,xsmall:6},widths:[200,300,400,500,600]},post_simple:{options:{ratio:"16:9"},sizes:{xxlarge:3,xlarge:3,large:3,medium:4,small:6,xsmall:6},widths:[200,300,400,500,600,800,1e3]},post_simple_variable_height:{options:{},sizes:{xxlarge:3,xlarge:3,large:3,medium:4,small:6,xsmall:6},widths:[200,300,400,500,600,800,1e3]},post_large:{options:{ratio:"16:9"},sizes:{xxlarge:6,xlarge:6,large:6,medium:4,small:6,xsmall:6},widths:[400,600,800,1200]},post_large_1_1:{options:{ratio:"1:1"},sizes:{xxlarge:6,xlarge:6,large:6,medium:4,small:6,xsmall:6},widths:[400,600,800,1200]},post_large_3_2:{options:{ratio:"3:2"},sizes:{xxlarge:6,xlarge:6,large:6,medium:4,small:6,xsmall:6},widths:[400,600,800,1200]},post_large_variable_height:{options:{},sizes:{xxlarge:6,xlarge:6,large:6,medium:4,small:6,xsmall:6},widths:[400,600,800,1200]},post_publication_variable_height:{options:{},sizes:{xxlarge:4,xlarge:4,large:4,medium:2,small:2,xsmall:2},widths:[200,300,400,500,600,800,1e3]},post_xlarge:{options:{ratio:"16:9"},sizes:{xxlarge:9,xlarge:9,large:9,medium:8,small:6,xsmall:6},widths:[400,600,800,1200,1600,2400]},post_xlarge_1_1:{options:{ratio:"1:1"},sizes:{xxlarge:12,xlarge:12,large:12,medium:8,small:6,xsmall:6},widths:[400,600,800,1200,1600,2400]},post_xlarge_variable_height:{options:{},sizes:{xxlarge:9,xlarge:9,large:9,medium:8,small:6,xsmall:6},widths:[400,600,800,1200,1600,2400]},post_full:{options:{ratio:"16:9"},sizes:{xxlarge:12,xlarge:12,large:12,medium:8,small:6,xsmall:6},widths:[400,600,800,1200,1600,2400]},post_full_1_1:{options:{ratio:"1:1"},sizes:"100vw",widths:[400,800,1e3,1600,2e3,2500,3e3]},post_full_variable_height:{options:{},sizes:{xxlarge:12,xlarge:12,large:12,medium:8,small:6,xsmall:6},widths:[400,600,800,1200,1600,2400]},post_medium:{options:{ratio:"16:9"},sizes:{xxlarge:4,xlarge:4,large:4,medium:4,small:6,xsmall:6},widths:[400,600,800]},post_medium_variable_height:{options:{},sizes:{xxlarge:4,xlarge:4,large:4,medium:4,small:6,xsmall:6},widths:[400,600,800]},post_secondary:{options:{ratio:"16:9"},sizes:{xxlarge:6,xlarge:6,large:6,medium:4,small:2,xsmall:2},widths:[400,600,800,1200]},post_editorial_inline:{options:{ratio:"16:9"},sizes:{xxlarge:4,xlarge:4,large:4,medium:3,small:2,xsmall:2},widths:[400,600,800,1200]},large_1_1:{options:{ratio:"1:1"},sizes:{xxlarge:6,xlarge:6,large:6,medium:4,small:6,xsmall:6},widths:[400,600,800,1e3,1200,2e3]},feature_post:{options:{ratio:"1:1"},sizes:{xxlarge:6,xlarge:6,large:6,medium:4,small:6,xsmall:6},widths:[400,600,800,1e3,1200,2e3]},post_inline:{options:{ratio:"16:9"},sizes:{xxlarge:6,xlarge:6,large:6,medium:4,small:6,xsmall:6},widths:[400,600,800,1e3,1200,2e3]},post_inline_1_1:{options:{ratio:"1:1"},sizes:{xxlarge:6,xlarge:6,large:6,medium:4,small:6,xsmall:6},widths:[400,600,800,1e3,1200,2e3]},contained_post:{options:{ratio:"16:9"},sizes:{xxlarge:12,xlarge:12,large:12,medium:8,small:6,xsmall:6},widths:[400,600,800,1e3,1200,2e3]},full_bleed_post:{options:{ratio:"16:9"},sizes:"100vw",widths:[400,800,1e3,1600,2e3,2500,3e3]},hero_full_bleed:{options:{ratio:"16:9"},sizes:"100vw",widths:[1600,2e3,2500,3e3]},hero_text_image:{options:{ratio:"1:1"},sizes:{xxlarge:6,xlarge:6,large:6,medium:8,small:6,xsmall:6},widths:[400,600,800,1e3,1200,2e3]},hero_editorial_square:{options:{ratio:"1:1"},sizes:{xxlarge:7,xlarge:7,large:7,medium:6,small:6,xsmall:6},widths:[400,600,800,1e3,1200,2e3]},hero_editorial_contained:{options:{},sizes:{xxlarge:7,xlarge:7,large:7,medium:6,small:6,xsmall:6},widths:[400,600,800,1e3,1200,2e3]},"hero_editorial_contained-16-9":{options:{ratio:"16:9"},sizes:{xxlarge:7,xlarge:7,large:7,medium:6,small:6,xsmall:6},widths:[400,600,800,1e3,1200,2e3]},hero_editorial_full_bleed:{options:{},sizes:"100vw",widths:[400,800,1e3,1600,2e3,2500,3e3]},hero_project_full_bleed:{options:{ratio:"16:9"},sizes:"100vw",widths:[400,800,1e3,1600,2e3,2500,3e3]},hero_education_resource_full_height:{options:{ratio:"16:9"},sizes:{xxlarge:12,xlarge:12,large:12,medium:8,small:6,xsmall:6},widths:[400,800,1e3,1600,2e3,2500,3e3]},image_resource:{options:{},sizes:{xxlarge:8,xlarge:8,large:8,medium:5,small:6,xsmall:6},widths:[400,600,800,1e3,1200,2e3]},infocard_large:{options:{ratio:"16:9"},sizes:{xxlarge:6,xlarge:6,large:6,medium:8,small:6,xsmall:6},widths:[400,600,800,1e3,1200,2e3]},media_layout_column_width:{options:{},sizes:{xxlarge:7,xlarge:7,large:7,medium:6,small:6,xsmall:6},widths:[400,600,800,1200]},media_layout_full_bleed:{options:{},sizes:{xxlarge:12,xlarge:12,large:12,medium:8,small:6,xsmall:6},widths:[400,600,800,1200,1600,2400]},media_layout_full_width:{options:{},sizes:{xxlarge:10,xlarge:10,large:10,medium:8,small:6,xsmall:6},widths:[400,600,800,1200,1600]},program_item:{options:{ratio:"2:3"},sizes:{xxlarge:6,xlarge:6,large:6},widths:[400,500,800,1e3,1600,2e3]},program_item_1_1:{options:{ratio:"1:1"},sizes:{medium:8,small:6,xsmall:6},widths:[400,500,800,1e3,1600,2e3]},location:{options:{ratio:"16:9"},sizes:{xxlarge:12,xlarge:12,large:12,medium:8,small:6,xsmall:6},widths:[400,600,800,1e3,1200,2e3]},explore:{options:{},sizes:{xxlarge:6,xlarge:6,large:6,medium:8,small:6,xsmall:6},widths:[200,300,400,500,600,800,1e3]},location_map:{options:{ratio:"16:9"},sizes:{xxlarge:6,xlarge:6,large:6,medium:4,small:6,xsmall:6},widths:[200,300,400,600]},location_map_1_1:{options:{ratio:"1:1"},sizes:{xxlarge:6,xlarge:6,large:6,medium:4,small:6,xsmall:6},widths:[200,300,400,600]},location_map_3_4:{options:{ratio:"3:4"},sizes:{xxlarge:6,xlarge:6,large:6,medium:4,small:6,xsmall:6},widths:[200,300,400]},index_cover:{options:{},sizes:{xxlarge:1,xlarge:1,large:1,medium:1,small:1,xsmall:1},widths:[100,200,300,400]},product_block:{options:{},sizes:{xxlarge:2,xlarge:2,large:2,medium:2,small:2,xsmall:2},widths:[100,200,300,400]},publication:{options:{},sizes:{xxlarge:7,xlarge:7,large:7,medium:6,small:6,xsmall:6},widths:[400,600,800,1e3,1200,2e3]},project_medium:{options:{ratio:"4:3"},sizes:{xxlarge:4,xlarge:4,large:4,medium:4,small:6,xsmall:6},widths:[400,600,800]},project_medium_variable_height:{options:{},sizes:{xxlarge:4,xlarge:4,large:4,medium:4,small:6,xsmall:6},widths:[400,600,800]},project_large_variable_height:{options:{},sizes:{xxlarge:6,xlarge:6,large:6,medium:4,small:6,xsmall:6},widths:[400,600,800,1200]},image_mask:{options:{ratio:"1:1"},widths:[200]},test_size:{options:{ratio:"16:9"},sizes:{xxlarge:3,xlarge:3,large:3,medium:2,small:3,xsmall:3},widths:[200,300,400,500,600,800,1e3]},test_size_extremely_large_variable_height:{options:{},sizes:{xxlarge:12,xlarge:12,large:12,medium:8,small:6,xsmall:6},widths:[200,300,400,500,600,800,1200,1600,2400,3600,4800,9600]},"test_size_extremely_large_16-9":{options:{ratio:"16:9"},sizes:"100vw",widths:[200,300,400,500,600,800,1200,1600,2400,3600,4800,9600]}},fae={mounted(){window.addEventListener("resize",this.responsiveImageUpdate)},beforeUnmount(){window.removeEventListener("resize",this.responsiveImageUpdate)},methods:{responsiveImageUpdate(){const e=this.$refs.img||this.$el;e.sizes&&(this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((()=>{e.sizes+=""}),100))}}},mae={name:"ImageResponsive",inject:{imageEventBus:{default:null}},mixins:[pae,fae,Qie],props:{alt:{type:String,default:null},ariaHidden:{type:Boolean,default:!1},classes:{type:Array,default:H((()=>[]),"default")},disableContextMenu:{type:Boolean,default:!0},draggable:{type:Boolean,default:!0},info:{type:Object,default:null},placemat:{type:Boolean,default:!1},region:{type:Object,default:null},size:{type:String,default:null,validator:H((e=>Object.keys(hae).includes(e)),"validator")},src:{type:String,default:null},id:{type:[String,Number],default:null},idAttr:{type:String,default:null}},emits:["init","info","load","render","ImageResponsive:LoadError","mouseenter","mouseover","mouseout"],data:H((()=>({localInfo:null,uid:br()})),"data"),computed:{aspectRatio(){if(this.preset&&this.preset.options.ratio){const[e,t]=this.preset.options.ratio.split(":");return e/t}
100if(this.naturalWidth&&this.naturalHeight)return this.naturalWidth/this.naturalHeight},emitter(){return{emit:H(((...e)=>this.imageEventBus?this.imageEventBus.emit(...e):this.$emit(...e)),"emit")}},eventPayloadBase(){return{id:this.id,src:this.id?this.imgSrc:this.src,uid:this.uid}},iiifRegion(){const e=this.preset.options.ratio||"full",t=!!this.region&&this.region[e];if(t&&t.w)return"full"!==e&&(t.h=this.calcRatioHeight(e,t.w)),(!t.h||t.h<=0)&&(console.warn("Image crop region height is not set or <= 0. Using 1:1 crop based on region width value."),t.h=t.w),`${t.x},${t.y},${t.w},${t.h}`},iiifSourceDimensions(){if(!this.info)return null;const e=this.iiifRegion;if(e&&"full"!==e){const[,,t,n]=e.split(",").map(Number);if(t>0&&n>0)return{width:t,height:n}}return{width:this.info.width,height:this.info.height}},imgSrc(){if(this.src)return this.src;if(!this.preset)return null;if(this.info)return this.buildImageURIWithInfo(this.info);{const e=this.preset.widths.length-1,t=this.preset.widths[e];let n=null;return this.preset.options.confined&&(n=t),this.buildIiifUri(this.id,{region:this.iiifRegion,width:t,height:n,confined:this.preset.options.confined})}},imgSrcset(){if(this.info){const e=this.iiifSourceDimensions.width;return this.preset.widths.map((t=>`${t>e?this.buildImageURIWithInfo(this.info):this.buildImageURIWithInfo(this.info,{size:`${t},`})} ${t}w`)).join(", ")}return this.preset.widths.map((e=>{let t=null;return this.preset.options.confined&&(t=e),`${this.buildIiifUri(this.id,{region:this.iiifRegion,width:e,height:t,confined:this.preset.options.confined})} ${e}w`})).join(", ")},imgSizes(){if(!this.id||!this.preset||!this.size)return null;let e="";return"object"==typeof this.preset.sizes?e=this.getImageSizes(this.preset.sizes):"string"==typeof this.preset.sizes&&(e=this.preset.sizes),e},infoUri(){return this.buildIiifInfoUri(this.id)},preset(){return hae[this.size]},presetClasses(){const e="a-image",t=[];if(this.preset&&this.preset.options.ratio){const{ratio:n}=this.preset.options;t.push(`${e}--${n.replace(":","-")}`)}return this.placemat&&t.push(`${e}--placemat`),t}},mounted(){this.id&&this.imageEventBus&&this.imageEventBus.options.fetchInfo&&this.loadInfo(),this.$nextTick((()=>{this.emitter.emit("init",F({},this.eventPayloadBase))}))},methods:{buildImageURI({baseURL:e,region:t="full",size:n,rotation:i=0,quality:r="default",format:a="jpg"}){if(e&&n)return`${e}/${t}/${n}/${i}/${r}.${a}`},buildImageURIWithInfo(e,t={}){var n;if(!e)return;const i=`${this.getIiifBaseUrl()}/${this.id}`||e.id||e["@id"],{format:r,quality:a,rotation:s}=t,{width:o}=null!=(n=this.iiifSourceDimensions)?n:{};return this.buildImageURI({baseURL:i,format:r,quality:a,region:this.iiifRegion||"full",rotation:s,size:t.size||`${o||""},`})},calcRatioHeight(e,t){const n=e.split(":").map((e=>Number(e)));return Math.floor(t*(n[1]/n[0]))},getImageSizes(e){const t=[];return Object.keys(cae.breakpoints).forEach((n=>{const i=cae.breakpoints[n],r=e[n],a=cae.columnWidths[n],s=cae.columnCount[n],o=cae.innerGutters[n],l=cae.outerGutters[n];let u="";e[n]?"string"==typeof r&&(r.indexOf("px")>0||r.indexOf("vw")>0)?t.push(r):"fluid"!==a?u=`${Math.round((a-(s-1)*o)/s*r+(r-1)*o)}px`:(u=`((100vw - ${(s-1)*o+2*l}px) / ${s}) * ${r}`,r>=1&&(u=`(${u}) + ${(r-1)*o}px`),u=`calc(${u})`):u="fluid"!==a?`${a}px`:`calc(100vw - ${2*l}px)`,t.push(`${i} ${u}`)})),t.join(", ")},loadInfo(){return V(this,null,(function*(){const e=yield fetch(this.infoUri);this.localInfo=yield e.json(),this.emitter.emit("info",B(F({},this.eventPayloadBase),{info:this.localInfo,status:"success"}))}))},onContextMenu(e){this.size&&this.size.includes("small")||this.disableContextMenu&&e.preventDefault()},onError(){this.emitter.emit("load",B(F({},this.eventPayloadBase),{status:"error"})),this.$emit("ImageResponsive:LoadError",B(F({},this.eventPayloadBase),{status:"error"}))},onLoad(){const e=this.$refs.img;if(null==e)return void this.onError();const{naturalHeight:t,naturalWidth:n}=e;this.naturalHeight=t,this.naturalWidth=n,lre()||requestAnimationFrame(this.onRenderStart),this.emitter.emit("load",B(F({},this.eventPayloadBase),{aspectRatio:this.aspectRatio,status:"success",width:this.naturalWi
100dth,height:this.naturalHeight}))},onRenderStart(){lre()||requestAnimationFrame(this.onRenderComplete)},onRenderComplete(){const e=this.$refs.img;if(null==e)return void this.emitter.emit("render",B(F({},this.eventPayloadBase),{status:"error"}));const{width:t,height:n}=e;t>0&&n>0&&this.emitter.emit("render",B(F({},this.eventPayloadBase),{status:"success",width:t,height:n}))}}},gae=["draggable","id","src","srcset","sizes","alt","aria-hidden"],yae={key:0},vae=Wee(mae,[["render",function(e,t,n,i,r,a){return As(),Os(Xr(e.hasDefaultSlotContent?"figure":"div"),{class:Fe(["a-image",...n.classes])},{default:Ii((()=>[Bs("div",{class:Fe([...a.presetClasses])},[n.id||n.src?(As(),Ps("img",{key:0,ref:"img",class:"a-image__img","data-chromatic":"ignore",draggable:n.draggable,id:n.idAttr,src:n.id?a.imgSrc:n.src,srcset:n.id?a.imgSrcset:null,sizes:n.id?a.imgSizes:null,alt:n.alt&&""!=n.alt?n.alt:null,"aria-hidden":1==n.ariaHidden||null,onContextmenu:t[0]||(t[0]=(...e)=>a.onContextMenu&&a.onContextMenu(...e)),onError:t[1]||(t[1]=(...e)=>a.onError&&a.onError(...e)),onLoad:t[2]||(t[2]=(...e)=>a.onLoad&&a.onLoad(...e)),onMouseenter:t[3]||(t[3]=t=>e.$emit("mouseenter",this.$refs.img)),onMouseover:t[4]||(t[4]=t=>e.$emit("mouseover",this.$refs.img)),onMouseout:t[5]||(t[5]=t=>e.$emit("mouseout",this.$refs.img))},null,40,gae)):Ws("",!0)],2),e.hasDefaultSlotContent?(As(),Ps("figcaption",yae,[na(e.$slots,"default")])):Ws("",!0)])),_:3},8,["class"])}]]),bae={name:"InteractiveVideoEmbed",props:{allowFullscreen:{type:Boolean,default:!0},aspectRatio:{type:String,default:"16:9"},src:{type:String,required:!0},title:{type:String,default:"Embedded Content"}},computed:{aspectRatioStyles(){const[e,t]=this.aspectRatio.split(":");return{paddingBottom:`calc(${t/e*100}% + 96px)`}}}},_ae=["allowfullscreen","src","title"],wae=Wee(bae,[["render",function(e,t,n,i,r,a){return As(),Ps("div",{class:"interactive-video-container",style:Pe(a.aspectRatioStyles)},[Bs("iframe",{allowfullscreen:n.allowFullscreen,src:n.src,title:n.title,class:"interactive-video-content",frameborder:"0",width:"100%"},null,8,_ae)],4)}]]),Sae=["aria-labelledby"],Cae=["id"],kae=["aria-labelledby"],xae=["id"],Tae=Wee({name:"Logo",components:{LogoDefault:Wee({name:"LogoDefault",props:{title:{type:String,required:!0}},data:H((()=>({id:`logoDefault${br()}`})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("svg",{width:"238",height:"96",viewBox:"0 0 238 96",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r.id,role:"img"},[Bs("title",{id:r.id},ze(n.title),9,Cae),t[0]||(t[0]=Bs("path",{d:"M59 44H69V70C69 70 58.2728 76.1719 41.2661 76.2223C13.6062 76.3041 0.343201 60.588 0.400207 38.2064C0.45343 17.3019 15.8732 0.335026 41.4591 0.40015C52.8947 0.429264 62.4351 4.66101 66.733 7.34742L64.5308 10.8956C60.5904 8.3263 52.6368 4.50306 41.4487 4.47455C21.6582 4.42414 11.0604 19.1203 11.0117 38.2335C10.9615 57.931 22.5143 72.1034 41.277 72.1512C47.5081 72.1671 54.3895 70.1375 59 67V44ZM117.453 29.9701C121.189 34.0397 123 40 123 47V50L86.116 49.8333C86.0975 57.0819 87.6165 62.61 90.674 66.4158C92.397 68.5607 94.6799 70.1644 97.2729 71.0798C100.187 72.1089 103.417 72.3529 106.478 72.0312C109.79 71.6832 113.026 70.6132 115.886 68.9059C116.772 68.3766 117.64 67.8071 118.446 67.1611L120.493 70.2751C117.7 72.2896 114.605 73.8824 111.588 74.8851C108.571 75.8882 105.407 76.3856 102.097 76.3771C94.6038 76.3581 88.5287 73.9298 83.8714 69.0908C79.2132 64.2523 76.8949 57.9647 76.9146 50.2281C76.9349 42.2477 79.1901 35.8499 83.6807 31.0342C88.1707 26.2189 94.1453 23.8204 101.603 23.8394C108.433 23.8568 113.717 25.9009 117.453 29.9701ZM114 46C114.019 38.5919 113.215 34.6116 110.853 31.6261C108.49 28.6402 105.358 27.1425 101.176 27.1318C96.9944 27.1212 93.5313 28.8295 90.7869 32.2543C88.0421 35.6806 86.2233 40.4252 86 46H114ZM140 63V29H154V25H140V11L132 13V25H126V29H132C132 29 132.023 62.3574 132.023 62.2482C132.003 69.8475 136.614 76.451 145.126 76.4867C148.227 76.4997 151.846 75.6412 155.946 73.6419L155.081 71.4432C155.081 71.4432 139.963 77.6273 140 63ZM173 63V29H187V25H173V11L165 13V25H158V29H165C165 29 165 62.1092 165 62C164.981 69.5994 169.215 76.5341 177.727 76.5697C180.828 76.5826 184.446 75.7242 188.547 73.7249L187.681 71.5261C187.681 71.5261 172.963 77.6273 173 63ZM201.429 96H207.431L238 25H232L215.506 63.2942L199.423 25H190L210.736 74.286L201.429 96Z",fill:"currentColor"},null,-1))],8,Sae)}]]),LogoFull:Wee({name:"LogoFull",props:{title:{type:String,required:!0}},data:H((()=>({id:`logoFull${br()}`})),"data")},[["render",function(e,t,n,i,r,a){return As(),Ps("svg",{width:"153",height:"60",viewBox:"0 0 153 60",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r.id,role:"img"},[Bs("title",{id:r.id},ze(n.title),9,xae),t[0]||(t[0]=zs('<path d="M59.8543 9.62408V0H50.1544C50.0354 3.10921 49.9614 6.7516 49.9614 9.62621H58.3869C58.8661 9.62621 59.3635 9.62805 59.8543 9.62408Z" fill="currentColor"></path><path d="M4.01536 40.0802C2.73389 40.0802 1.253 40.0564 0 40.3777V59.8497H9.24218C9.27568 57.7083 9.2891 55.1741 9.2891 52.1936C9.2891 46.4236 9.25056 41.3563 9.00424 40.0802H4.01536Z" fill="currentColor"></path><path d="M57.7902 25.5855C58.4788 25.5855 59.1739 25.5739 59.8475 25.5484V11.8236C58.9281 11.7521 57.9441 11.7208 57.118 11.7208H49.9542C49.9542 18.7371 49.9126 21.034 50.0819 25.5855H57.7902Z" fill="currentColor"></path><path d="M59.8537 43.0567L56.5076 48.2022V53.7843C56.5076 57.2299 56.5967 58.7095 56.8249 59.8485H59.8537V43.0567Z" fill="currentColor"></path><path d="M49.7068 36.8323L55.5435 45.929C55.5435 45.929 57.5738 42.7937 59.8508 39.3022V27.7124C58.9779 27.7112 58.0974 27.7188 57.331 27.7188H45.0108C45.433 25.2195 45.8054 19.4595 45.8054 10.271C45.8054 5.50495 45.7615 2.24158 45.671 6.65009e-08H11.591C8.19863 3.12597 6.12961 7.61586 6.12961 13.2146C6.12961 25.1089 13.6717 33.7717 26.6535 33.7717C31.7932 33.771
1007 35.4888 32.1651 36.8792 31.4393C37.017 29.1431 37.1574 18.0691 36.464 16.6992H41.044C40.6282 17.7109 40.6067 22.6763 40.6067 24.2913C40.6067 25.9045 40.7558 32.6075 40.7558 32.6075C39.3752 33.259 33.4915 35.4992 26.8193 35.4992C8.10179 35.4992 1.93798 23.8003 1.93798 14.5481C1.93798 8.56054 4.34914 3.61858 8.14165 0H0V37.7371C1.19469 38.0454 3.30022 37.9851 4.41583 37.9851H17.9451C18.6707 37.9851 22.2893 38.1493 23.0986 37.5263L22.4987 40.6355C23.4266 41.1768 26.1542 41.096 27.4846 41.096H39.9817C40.7089 41.096 44.3275 41.2501 45.1365 40.6355L44.4864 43.9609C44.0025 43.1905 41.1496 43.1905 40.1413 43.1905H35.6363C35.4386 44.4666 35.3166 49.5346 35.3166 55.3039C35.3166 56.954 35.3179 58.4637 35.3296 59.8508H52.5811C52.8344 58.7017 52.9199 57.2489 52.9199 53.7862V48.1689L46.3044 37.8611C44.865 35.6279 43.2401 33.1048 42.2438 32.3578H47.6365C47.5607 33.4218 48.673 35.2006 49.7068 36.8323Z" fill="currentColor"></path><path d="M27.0777 43.1893C25.3491 43.1893 23.26 43.1458 21.8478 43.9597L22.4474 40.8468C21.9564 40.0801 19.1136 40.0798 18.1049 40.0798H13.5115C13.3121 41.3562 13.1898 46.4235 13.1898 52.1936C13.1898 55.1741 13.2082 57.7082 13.24 59.8496H31.398C31.405 58.4626 31.4101 56.9529 31.4101 55.3028C31.4101 49.5334 31.3665 44.4654 31.1319 43.1893H27.0777Z" fill="currentColor"></path><path d="M96.0881 53.1836L95.7768 53.6296C95.3324 53.2627 94.813 53.0458 94.2724 53.0458C93.519 53.0458 92.7552 53.3983 92.7396 54.323C92.7336 54.6746 92.8277 54.8987 93.0039 55.0946C93.1802 55.2906 93.4743 55.4474 93.8855 55.5649L94.7787 55.8249C95.7918 56.1034 96.3977 56.924 96.3977 57.9128C96.3977 59.1319 95.6002 60.0666 93.7711 59.9962C92.5893 59.9509 91.8189 59.3694 91.8189 59.3694L92.1192 58.9012C92.5636 59.2681 93.2046 59.4994 93.7449 59.4994C95.1033 59.4994 95.4062 58.7175 95.4062 58.1125C95.4062 57.2496 94.7068 56.9678 94.1077 56.8037L93.5252 56.6406C92.2377 56.3056 91.9014 55.4196 91.9014 54.6899C91.9014 53.4702 92.793 52.5565 94.2421 52.5565C95.4209 52.5571 96.0881 53.1836 96.0881 53.1836Z" fill="currentColor"></path><path d="M85.3646 52.7496L85.3552 56.9988C85.3552 57.7432 85.4339 58.2457 85.763 58.6594C86.0543 59.0254 86.4989 59.225 87.0671 59.225C87.3658 59.225 87.6315 59.171 87.8643 59.0635C88.0971 58.9557 88.299 58.7941 88.4705 58.5785C88.6568 58.3435 88.789 58.0616 88.8674 57.7335C88.9459 57.4053 88.9849 56.9031 88.9849 56.2272L88.994 52.7493H90.1328L90.1234 59.8029H88.9846V58.5266C88.7259 59.0344 88.3712 59.3888 87.9818 59.6288C87.5924 59.8688 87.143 59.9997 86.6336 59.9997C85.8352 59.9997 85.2339 59.7635 84.8299 59.3129C84.4258 58.8622 84.2236 58.1913 84.2236 57.2997V52.7493H85.3646V52.7496Z" fill="currentColor"></path><path d="M107.244 52.7496L107.235 56.9988C107.235 57.7432 107.314 58.2457 107.643 58.6594C107.934 59.0254 108.379 59.225 108.947 59.225C109.246 59.225 109.511 59.171 109.744 59.0635C109.977 58.9557 110.179 58.7941 110.35 58.5785C110.536 58.3435 110.669 58.0616 110.747 57.7335C110.826 57.4053 110.865 56.9031 110.865 56.2272L110.874 52.7493H112.013L112.003 59.8029H110.865V58.5266C110.606 59.0344 110.251 59.3888 109.862 59.6288C109.472 59.8688 109.023 59.9997 108.514 59.9997C107.715 59.9997 107.114 59.7635 106.71 59.3129C106.306 58.8622 106.104 58.1913 106.104 57.2997L106.113 52.7493H107.244V52.7496Z" fill="currentColor"></path><path d="M103.892 59.1334C103.499 59.4184 103.063 59.644 102.638 59.7862C102.213 59.9287 101.768 60 101.301 60C100.245 60 99.388 59.66 98.7298 58.9797C98.0714 58.2993 97.7426 57.3756 97.7426 56.2849C97.7426 55.1602 98.0583 54.2574 98.6895 53.5771C99.3208 52.8968 100.162 52.5565 101.213 52.5565C102.176 52.5565 102.921 52.8427 103.449 53.4149C103.977 53.9871 104.241 54.7965 104.241 55.8427C104.241 55.9984 104.227 56.1743 104.227 56.1743H99.0398V56.2259C99.0398 57.2475 99.2558 58.0647 99.6883 58.6C99.932 58.9015 100.254 59.1269 100.62 59.255C101.031 59.399 101.486 59.4322 101.918 59.3856C102.385 59.3353 102.84 59.1834 103.243 58.9419C103.368 58.8669 103.49 58.7862 103.603 58.695L103.892 59.1334ZM103.02 55.6512C103.02 54.6071 102.853 54.0708 102.519 53.6508C102.185 53.2308 101.743 53.0208 101.154 53.0208C100.565 53.0208 100.077 53.2627 99.6914 53.7465C99.3058 54.2302 99.0983 54.8652 99.0689 55.6512H103.02Z" fill="currentColor"></path><path d="M123.832 53.2436C123.451 52.793 122.884 52.5568 122.132 52.5568C121.652 52.5568 121.195 52.684 120.828 52.9236C120.474 53.1546 120.11
1007 53.4793 119.856 54.0733C119.755 53.7871 119.614 53.4799 119.414 53.2433C119.033 52.7927 118.467 52.5565 117.714 52.5565C116.069 52.5565 115.499 53.9527 115.499 53.9527L115.508 52.7493H114.374L114.365 59.8028H115.499V56.2562C115.499 55.5802 115.536 55.1512 115.609 54.8227C115.683 54.4946 115.808 54.213 115.983 53.9777C116.145 53.7621 116.335 53.6005 116.555 53.4927C116.774 53.3849 117.024 53.3311 117.306 53.3311C117.841 53.3311 118.194 53.5308 118.468 53.8968C118.779 54.3102 118.853 54.7537 118.853 55.4874V59.8025H119.986L119.989 55.6552C119.989 54.6205 120.225 54.2124 120.401 53.9774C120.563 53.7618 120.753 53.6002 120.972 53.4924C121.191 53.3846 121.442 53.3308 121.723 53.3308C122.259 53.3308 122.611 53.5305 122.886 53.8965C123.196 54.3099 123.27 54.7474 123.27 55.4918V59.8022H124.403V55.2556C124.403 54.3652 124.213 53.6943 123.832 53.2436Z" fill="currentColor"></path><path d="M82.4254 59.8029L81.2079 49.4675H80.9526L76.6254 57.6538L72.4309 49.4675H72.16L70.8069 59.8029H71.5516L72.5013 52.3184L76.1629 59.8029H76.4129L80.2898 52.2581L81.1692 59.8029H82.4254Z" fill="currentColor"></path><path d="M133.121 9.92668C133.121 9.92668 131.048 10.8452 131.048 8.79325C131.048 8.64426 131.053 4.00263 131.053 4.00263H132.966V3.42535H131.053V1.40857L129.883 1.78275V3.42566H128.995V4.00294H129.883C129.883 4.00294 129.883 8.66075 129.883 8.64551C129.883 10.0999 131.092 11.2912 133.244 10.2352L133.121 9.92668Z" fill="currentColor"></path><path d="M71.8276 5.31876C71.8276 8.00023 73.3097 10.0655 75.7837 10.0655C77.2748 10.0655 78.3361 9.53209 78.862 9.17284L79.1544 9.67144C78.5809 10.0469 77.3078 10.6369 75.7837 10.6369C72.3738 10.6369 70.3247 8.25123 70.3247 5.31845C70.3247 2.38598 72.3738 0 75.7837 0C77.3078 0 78.5806 0.590353 79.1544 0.965465L78.862 1.46406C78.3361 1.10512 77.2748 0.57138 75.7837 0.57138C73.3355 0.572002 71.8276 2.6373 71.8276 5.31876Z" fill="currentColor"></path><path d="M83.4218 10.6368C82.3786 10.6368 81.5267 10.2968 80.866 9.6166C80.2054 8.93636 79.8751 8.05519 79.8751 6.97309C79.8751 5.90063 80.2088 4.9448 80.8769 4.2574C81.5447 3.57001 82.3929 3.22632 83.4218 3.22632C84.47 3.22632 85.3232 3.56628 85.9814 4.24652C86.6395 4.92677 86.9686 5.88601 86.9686 6.97309C86.9686 8.06017 86.6383 8.94258 85.9776 9.62033C85.317 10.2978 84.4651 10.6368 83.4218 10.6368ZM83.4218 10.1905C84.1627 10.1905 84.7273 9.92359 85.1148 9.38954C85.5024 8.8558 85.6962 8.07945 85.6962 7.06049C85.6962 5.98305 85.5011 5.08601 85.1111 4.52023C84.721 3.95476 84.1531 3.67203 83.4072 3.67203C82.666 3.67203 82.1043 3.94512 81.7217 4.491C81.3388 5.03718 81.1475 5.90996 81.1475 6.95816C81.1475 8.016 81.3401 8.8191 81.7251 9.36778C82.1105 9.91645 82.676 10.1905 83.4218 10.1905Z" fill="currentColor"></path><path d="M93.5053 10.4444V6.21647C93.5053 5.47557 93.4269 4.97542 93.0994 4.56361C92.8095 4.19938 92.3669 4.00063 91.8014 4.00063C91.5041 4.00063 91.2397 4.05444 91.008 4.16143C90.7762 4.26874 90.5753 4.42955 90.4046 4.64417C90.2192 4.87807 90.0876 5.15862 90.0095 5.48521C89.9315 5.8118 89.8926 6.31164 89.8926 6.98442V10.4447H88.7592V3.42925H89.8926V4.69548C90.1501 4.19004 90.5032 3.83733 90.8907 3.59845C91.2783 3.35958 91.7255 3.22925 92.2325 3.22925C93.0272 3.22925 93.6257 3.46439 94.0278 3.91291C94.43 4.36143 94.6313 5.02922 94.6313 5.91662V10.4444H93.5053Z" fill="currentColor"></path><path d="M141.177 10.6376C140.134 10.6376 139.282 10.2976 138.621 9.61736C137.961 8.93712 137.63 8.05595 137.63 6.97384C137.63 5.90138 137.964 4.94774 138.632 4.26034C139.3 3.57295 140.148 3.22925 141.177 3.22925C142.225 3.22925 143.079 3.56921 143.737 4.24945C144.395 4.9297 144.724 5.88676 144.724 6.97384C144.724 8.06092 144.394 8.94334 143.733 9.62109C143.072 10.2985 142.22 10.6376 141.177 10.6376ZM141.177 10.1912C141.918 10.1912 142.483 9.92435 142.87 9.3903C143.258 8.85656 143.452 8.08021 143.452 7.06125C143.452 5.98381 143.257 5.08895 142.866 4.52317C142.476 3.9577 141.908 3.67496 141.163 3.67496C140.421 3.67496 139.86 3.94806 139.477 4.49393C139.094 5.04012 138.903 5.91071 138.903 6.95891C138.903 8.01676 139.095 8.81986 139.481 9.36853C139.866 9.9172 140.431 10.1912 141.177 10.1912Z" fill="currentColor"></path><path d="M151.331 10.4447V6.14617C151.331 5.40527 151.252 4.97542 150.925 4.56361C150.635 4.19938 150.192 4.00063 149.627 4.00063C149.33 4.00063 149.065 4.05444 148.834 4.16143C148.602 4.26874 148.401 4.42955 148.23 4.64417C148.045 4.87807 147.913 5.15862 147.835 5.48521C147.757 5.8118 147.718 6.31164 147.718 6.98442V10.4447H146.585V3.41743H147.718V4.69549C147.976 4.19005 148.329 3.83733 148.716 3.59845C149.104 3.35958 149.551 3.22925 150.058 3.22925C150.853 3.22925 151.451 3.46439 151.853 3.91291C152.256 4.36143 152.457 4.95893 152.457 5.84633V10.4447H151.331Z" fill="currentColor"></path><path d="M100.601 3.85351L100.291 4.29736C99.8486 3.9322 99.3316 3.71634 98.7935 3.71634C98.0436 3.71634 97.2834 4.06408 97.2679 4.98444C97.262 5.33436 97.3556 5.55737 97.531 5.75239C97.7065 5.94742 97.9991 6.10356 98.4085 6.22051L99.2974 6.47929C100.306 6.75643 100.909 7.57322 100.909 8.55766C100.909 9.77102 100.115 10.7013 98.2946 10.6314C97.1183 10.5862 96.3516 10.0074 96.3516 10.0074L96.6505 9.54147C97.0928 9.90663 97.7307 10.1368 98.2685 10.1368C99.6206 10.1368 99.922 9.35858 99.922 8.75641C99.922 7.89763 99.2259 7.61707 98.6296 7.45378L98.0498 7.29141C96.7684 6.95798 96.4337 6.07619 96.4337 5.34992C96.4337 4.13593 97.3211 3.22925 98.7634 3.22925C99.9366 3.22987 100.601 3.85351 100.601 3.85351Z" fill="currentColor"></path><path d="M111.591 6.60039V10.4451H110.458V3.42095H111.591V4.95842C111.804 4.2660
1005 112.202 3.85485 112.59 3.61597C112.977 3.37709 113.424 3.24677 113.931 3.24677V4.41286C113.931 4.41286 111.591 3.5802 111.591 6.60039Z" fill="currentColor"></path><path d="M118.396 9.084L116.059 3.43212H114.859L117.711 10.4436H118.634L121.434 3.41626H120.685L118.396 9.084Z" fill="currentColor"></path><path d="M135.757 10.4446H134.623V3.42505H135.757V10.4446Z" fill="currentColor"></path><path d="M135.184 1.51364C135.544 1.51364 135.836 1.2219 135.836 0.862015C135.836 0.502131 135.544 0.210388 135.184 0.210388C134.824 0.210388 134.533 0.502131 134.533 0.862015C134.533 1.2219 134.824 1.51364 135.184 1.51364Z" fill="currentColor"></path><path d="M108.419 9.77102C108.026 10.0562 107.59 10.2817 107.165 10.4242C106.74 10.5667 106.294 10.6379 105.827 10.6379C104.77 10.6379 103.913 10.2976 103.254 9.61705C102.596 8.9365 102.267 8.05066 102.267 6.95954C102.267 5.8342 102.582 4.93126 103.214 4.25039C103.845 3.56984 104.687 3.22925 105.738 3.22925C106.702 3.22925 107.447 3.51572 107.976 4.08803C108.504 4.66065 108.768 5.46997 108.768 6.51693C108.768 6.67276 108.754 6.8485 108.754 6.8485H103.564V6.90013C103.564 7.9222 103.78 8.70135 104.213 9.23696C104.457 9.53867 104.779 9.76418 105.145 9.89233C105.556 10.0363 106.012 10.0696 106.443 10.0233C106.91 9.97288 107.366 9.82109 107.769 9.57911C107.893 9.50414 108.016 9.42358 108.129 9.33214L108.419 9.77102ZM107.547 6.32564C107.547 5.28086 107.38 4.74464 107.046 4.32442C106.712 3.90421 106.269 3.69426 105.68 3.69426C105.09 3.69426 104.602 3.93624 104.216 4.42022C103.831 4.90451 103.623 5.53965 103.593 6.32564H107.547Z" fill="currentColor"></path><path d="M122.383 4.07732C122.709 3.80423 123.097 3.58557 123.507 3.44187C123.916 3.29817 124.352 3.22632 124.816 3.22632C125.639 3.22632 126.239 3.42476 126.615 3.82226C126.99 4.21977 127.178 4.76284 127.178 5.74199V8.57276C127.178 8.7625 127.178 8.95254 127.178 9.14227C127.178 9.26078 127.178 9.37804 127.178 9.49655C127.178 9.63185 127.184 9.68285 127.222 9.76652C127.268 9.86761 127.349 9.94382 127.452 9.98518C127.555 10.0262 127.669 10.0346 127.78 10.025C127.891 10.0154 128.036 9.9771 128.164 9.93636C128.164 9.93636 128.246 10.2185 128.246 10.2188C128.246 10.2188 128.068 10.3199 127.813 10.4322C127.651 10.5034 127.45 10.5818 127.276 10.6153C127.181 10.6337 127.083 10.6412 126.986 10.6412C126.79 10.6412 126.659 10.6057 126.509 10.5376C126.223 10.4079 126.064 10.0552 126.037 9.73076C125.731 10.048 125.318 10.2689 125.002 10.4042C124.626 10.565 124.231 10.6412 123.807 10.6412C123.148 10.6412 122.64 10.4751 122.282 10.1556C121.923 9.83651 121.744 9.33418 121.744 8.74912C121.744 7.68941 122.506 7.0381 123.544 6.8325C123.793 6.779 124.065 6.72736 124.494 6.64929C125.376 6.48848 125.908 6.3252 126.088 6.15941V5.66672C126.088 4.97933 125.955 4.54449 125.69 4.23501C125.424 3.92553 125.001 3.77064 124.421 3.77064C124.011 3.77064 123.653 3.87483 123.324 4.03751C123.082 4.15695 122.866 4.29567 122.659 4.47265L122.383 4.07732ZM126.059 6.68382C125.823 6.79331 125.606 6.85085 125.376 6.9115C124.69 7.09346 123.957 7.24587 123.585 7.48133C123.206 7.72176 122.973 8.10433 122.973 8.60168C122.973 9.05518 123.089 9.4051 123.32 9.65113C123.552 9.89747 123.88 10.0203 124.304 10.0203C124.552 10.0203 124.815 9.96062 125.09 9.84118C125.365 9.72174 125.603 9.56217 125.803 9.36218C125.89 9.27446 125.955 9.18551 125.997 9.0953C126.038 9.0051 126.059 8.87976 126.059 8.71864V6.68382Z" fill="currentColor"></path><path d="M91.5642 20.2511L91.2529 20.697C90.8085 20.3302 90.2892 20.1133 89.7485 20.1133C88.9951 20.1133 88.2313 20.4761 88.2157 21.4005C88.2098 21.7521 88.3038 21.9761 88.4801 22.1721C88.6563 22.368 88.9504 22.5249 89.3616 22.6424L90.2548 22.9024C91.2679 23.1808 91.8739 24.0015 91.8739 24.9905C91.8739 26.2096 91.0763 27.1443 89.2473 27.074C88.0654 27.0287 87.2951 26.4471 87.2951 26.4471L87.5954 25.979C88.0397 26.3459 88.6807 26.5771 89.221 26.5771C90.5795 26.5771 90.8823 25.7952 90.8823 25.1902C90.8823 24.3274 90.1829 24.0455 89.5838 23.8815L89.0013 23.7183C87.7138 23.3833 87.3776 22.4974 87.3776 21.7677C87.3776 20.548 88.2691 19.6239 89.7182 19.6239C90.8967 19.6242 91.5642 20.2511 91.5642 20.2511Z" fill="currentColor"></path><path d="M109.957 23.0211V26.8721H108.819V19.8227H109.957V21.3714C110.171 20.6758 110.576 20.2705 110.96 20.0227C111.327 19.7861 111.832 19.6239 112.308 19.6239V20.7955C112.308 20.7955 109.957 19.9867 109.957 23.0211Z" fill="currentColor"></path><path d="M101.485 20.4789C101.813 20.2045 102.203 19.9848 102.614 19.8405C103.026 19.6961 103.464 19.6239 103.929 19.6239C104.757 19.6239 105.359 19.8233 105.736 20.2227C106.114 20.622 106.302 21.1677 106.302 22.1514V24.9955C106.302 25.1862 106.302 25.3771 106.302 25.5677C106.302 25.6868 106.302 25.8046 106.302 25.9237C106.302 26.0596 106.309 26.1109 106.347 26.1949C106.393 26.2965 106.474 26.3731 106.578 26.4146C106.682 26.4559 106.796 26.4643 106.907 26.4546C107.019 26.4449 107.165 26.4065 107.293 26.3656L107.376 26.6493C107.376 26.6493 107.197 26.7509 106.94 26.8637C106.777 26.9352 106.576 27.014 106.402 27.0478C106.305 27.0662 106.207 27.0737 106.11 27.0737C105.913 27.0737 105.781 27.0381 105.631 26.9696C105.343 26.8393 105.184 26.4849 105.156 26.159C104.849 26.4777 104.434 26.6996 104.116 26.8356C103.739 26.9971 103.341 27.0737 102.915 27.0737C102.254 27.0737 101.743 26.9068 101.383 26.5859C101.023 26.2652 100.843 25.7605 100.843 25.1727C100.843 24.108 101.609 23.4536 102.652 23.2468C102.901 23.193 103.175 23.1411 103.606 23.0627C104.492 22.9011 105.026 22.7371 105.207 22.5705V22.0755C105.207 21.3849 105.074 20.948 104.8
10007 20.637C104.54 20.3261 104.115 20.1705 103.532 20.1705C103.121 20.1705 102.761 20.2752 102.43 20.4386C102.187 20.5586 101.97 20.698 101.762 20.8758L101.485 20.4789ZM105.178 23.0977C104.941 23.2077 104.723 23.2655 104.493 23.3264C103.803 23.5093 103.066 23.6624 102.693 23.899C102.312 24.1405 102.078 24.5249 102.078 25.0246C102.078 25.4802 102.194 25.8318 102.427 26.079C102.66 26.3265 102.989 26.4499 103.415 26.4499C103.665 26.4499 103.928 26.3899 104.205 26.2699C104.481 26.1499 104.72 25.9896 104.921 25.7887C105.009 25.7005 105.074 25.6112 105.116 25.5205C105.157 25.4299 105.178 25.304 105.178 25.1421V23.0977Z" fill="currentColor"></path><path d="M125.364 26.8723V22.625C125.364 21.8807 125.286 21.3781 124.956 20.9644C124.665 20.5984 124.221 20.3988 123.652 20.3988C123.354 20.3988 123.088 20.4528 122.855 20.5603C122.622 20.6681 122.421 20.8297 122.249 21.0453C122.063 21.2803 121.931 21.5622 121.852 21.8903C121.774 22.2185 121.735 22.7207 121.735 23.3966V26.8723H120.596V16.6606H121.735V21.0969C121.993 20.5891 122.348 20.2347 122.737 19.9947C123.127 19.7547 123.576 19.6237 124.086 19.6237C124.884 19.6237 125.485 19.86 125.889 20.3106C126.293 20.7613 126.496 21.4322 126.496 22.3238V26.8723H125.364Z" fill="currentColor"></path><path d="M119.17 26.1493C119.17 26.1493 118.262 27.0737 116.68 27.0737C115.622 27.0737 114.69 26.7302 114.046 26.0568C113.402 25.3833 113.079 24.493 113.079 23.3861C113.079 22.2792 113.402 21.3074 114.046 20.6339C114.69 19.9605 115.622 19.6239 116.68 19.6239C118.262 19.6239 119.17 20.5414 119.17 20.5414L118.916 20.902C118.65 20.672 118.388 20.5092 118.112 20.377C117.745 20.2008 117.331 20.1124 116.915 20.1124C116.116 20.1124 115.481 20.3977 115.008 20.9683C114.535 21.5389 114.299 22.3964 114.299 23.3711C114.299 24.3458 114.535 25.1515 115.008 25.7221C115.481 26.2927 116.116 26.5781 116.915 26.5781C117.331 26.5781 117.745 26.4899 118.112 26.3134C118.378 26.1859 118.63 26.0302 118.887 25.8134L119.17 26.1493Z" fill="currentColor"></path><path d="M73.5747 21.9369H72.8153V26.8723H71.5638V16.6606H74.4979C75.6341 16.6606 76.4829 16.8625 77.0435 17.2668C77.6042 17.6709 77.8848 18.2244 77.8848 19.0422C77.8848 19.7525 77.6329 20.2897 77.137 20.7506C76.6154 21.2356 75.8372 21.5663 74.8725 21.7425L78.902 26.867H77.2935L73.5747 21.9369ZM72.8156 17.2415V21.3494C72.8866 21.3519 73.0972 21.3532 73.2197 21.3532C74.3463 21.3532 75.1876 21.2103 75.7435 20.8431C76.2994 20.4759 76.5773 19.9631 76.5773 19.2184C76.5773 18.5425 76.3604 18.0909 75.9269 17.7481C75.4935 17.4053 74.8482 17.2337 73.991 17.2337L72.8156 17.2415Z" fill="currentColor"></path><path d="M85.4982 26.2023C85.1032 26.4889 84.6654 26.7155 84.2382 26.8586C83.811 27.0017 83.3632 27.0733 82.8941 27.0733C81.8325 27.0733 80.971 26.7314 80.3094 26.0477C79.6478 25.3639 79.3169 24.4739 79.3169 23.3776C79.3169 22.247 79.6341 21.3398 80.2685 20.6557C80.9028 19.9719 81.7485 19.6298 82.8051 19.6298C83.7729 19.6298 84.522 19.9176 85.0529 20.4926C85.5835 21.0679 85.8492 21.881 85.8492 22.9329C85.8492 23.0895 85.8345 23.2661 85.8345 23.2661H80.6207V23.3179C80.6207 24.3448 80.8378 25.1276 81.2725 25.6658C81.5175 25.9689 81.8413 26.1955 82.2091 26.3242C82.6222 26.4689 83.0801 26.5023 83.5135 26.4558C83.9826 26.4052 84.4407 26.2527 84.8451 26.0095C84.9704 25.9342 85.0932 25.8533 85.2073 25.7614L85.4982 26.2023ZM84.6223 22.7411C84.6223 21.6913 84.4545 21.1526 84.1185 20.7304C83.7829 20.3082 83.3385 20.0973 82.746 20.0973C82.1535 20.0973 81.6635 20.3404 81.276 20.8266C80.8885 21.3132 80.6797 21.9514 80.65 22.7411H84.6223Z" fill="currentColor"></path><path d="M99.4614 26.1965C99.0664 26.483 98.6286 26.7096 98.2014 26.8527C97.7742 26.9959 97.3264 27.0674 96.8574 27.0674C95.7958 27.0674 94.9342 26.7256 94.2726 26.0418C93.6111 25.358 93.2801 24.468 93.2801 23.3718C93.2801 22.2411 93.5973 21.3339 94.2317 20.6498C94.8661 19.9661 95.7117 19.6239 96.7683 19.6239C97.7361 19.6239 98.4852 19.9117 99.0161 20.4867C99.5468 21.062 99.8124 21.8752 99.8124 22.9271C99.8124 23.0836 99.7977 23.2602 99.7977 23.2602H94.5839V23.3121C94.5839 24.339 94.8011 25.1218 95.2358 25.6599C95.4808 25.963 95.8045 26.1896 96.1723 26.3184C96.5855 26.4631 97.0433 26.4965 97.4767 26.4499C97.9458 26.3993 98.4039 26.2468 98.8083 26.0037C98.9336 25.9284 99.0564 25.8474 99.1705 25.7555L99.4614 26.1965ZM98.5855 22.7352C98.5855 21.6855 98.4177 21.1467 98.0817 20.7245C97.7461 20.3023 97.3017 20.0914 96.7092 20.0914C96.1167 20.0914 95.6267 20.3345 95.2392 20.8208C94.8517 21.3074 94.6429 21.9455 94.6133 22.7352H98.5855Z" fill="currentColor"></path><path d="M111.067 36.9379C111.395 36.6635 111.785 36.4438 112.196 36.2994C112.608 36.1551 113.046 36.0829 113.512 36.0829C114.339 36.0829 114.942 36.2823 115.319 36.6816C115.696 37.081 115.885 37.6267 115.885 38.6104V41.4545C115.885 41.6451 115.885 41.8361 115.885 42.0267C115.885 42.1458 115.885 42.2636 115.885 42.3827C115.885 42.5186 115.892 42.5699 115.93 42.6539C115.976 42.7
100555 116.057 42.832 116.161 42.8736C116.264 42.9149 116.379 42.9233 116.49 42.9136C116.601 42.9039 116.747 42.8655 116.876 42.8245L116.958 43.1083C116.958 43.1083 116.779 43.2099 116.523 43.3227C116.36 43.3942 116.159 43.473 115.984 43.5067C115.888 43.5252 115.79 43.5327 115.692 43.5327C115.495 43.5327 115.364 43.4971 115.213 43.4286C114.926 43.2983 114.766 42.9439 114.739 42.618C114.431 42.9367 114.016 43.1586 113.699 43.2945C113.321 43.4561 112.924 43.5327 112.498 43.5327C111.836 43.5327 111.326 43.3658 110.966 43.0449C110.606 42.7242 110.426 42.2195 110.426 41.6317C110.426 40.567 111.191 39.9126 112.234 39.7058C112.484 39.652 112.757 39.6001 113.188 39.5217C114.075 39.3601 114.609 39.1961 114.79 39.0295V38.5345C114.79 37.8438 114.657 37.407 114.39 37.096C114.123 36.7851 113.698 36.6295 113.115 36.6295C112.703 36.6295 112.344 36.7341 112.013 36.8976C111.77 37.0176 111.553 37.157 111.345 37.3348L111.067 36.9379ZM114.761 39.5567C114.524 39.6667 114.306 39.7245 114.075 39.7854C113.385 39.9682 112.649 40.1214 112.276 40.3579C111.895 40.5995 111.66 40.9839 111.66 41.4836C111.66 41.9392 111.776 42.2908 112.009 42.538C112.242 42.7855 112.571 42.9089 112.997 42.9089C113.247 42.9089 113.511 42.8489 113.787 42.7289C114.064 42.6089 114.302 42.4486 114.503 42.2477C114.592 42.1595 114.657 42.0702 114.698 41.9795C114.74 41.8889 114.761 41.763 114.761 41.6011V39.5567Z" fill="currentColor"></path><path d="M87.0265 36.2728V40.5238C87.0265 41.2682 87.1052 41.7707 87.4343 42.1845C87.7256 42.5504 88.1702 42.7501 88.7384 42.7501C89.0371 42.7501 89.3031 42.696 89.5356 42.5885C89.7684 42.4807 89.9703 42.3192 90.1418 42.1035C90.3281 41.8685 90.4603 41.5866 90.5387 41.2585C90.6172 40.9304 90.6562 40.4282 90.6562 39.7522V36.2728H91.795V43.3257H90.6562V42.052C90.3975 42.5598 90.0428 42.9142 89.6534 43.1542C89.264 43.3942 88.8146 43.5251 88.3052 43.5251C87.5068 43.5251 86.9055 43.2889 86.5015 42.8382C86.0974 42.3876 85.8952 41.7167 85.8952 40.8251V36.2728H87.0265Z" fill="currentColor"></path><path d="M80.5366 43.5261C79.4885 43.5261 78.6325 43.1845 77.9688 42.5011C77.305 41.8176 76.9731 40.9323 76.9731 39.8451C76.9731 38.7676 77.3084 37.8095 77.9797 37.1188C78.6507 36.4282 79.5028 36.0829 80.5366 36.0829C81.5897 36.0829 82.4469 36.4245 83.1082 37.1079C83.7695 37.7913 84.1001 38.7529 84.1001 39.8451C84.1001 40.9373 83.7682 41.8239 83.1045 42.5049C82.4407 43.1858 81.5847 43.5261 80.5366 43.5261ZM80.5366 43.078C81.281 43.078 81.8482 42.8099 82.2376 42.2733C82.6269 41.737 82.8216 40.957 82.8216 39.9333C82.8216 38.8507 82.6257 37.9517 82.2338 37.3832C81.8419 36.8151 81.2713 36.531 80.5219 36.531C79.7772 36.531 79.2128 36.8054 78.8285 37.3538C78.4438 37.9026 78.2516 38.7773 78.2516 39.8304C78.2516 40.8933 78.445 41.7002 78.8319 42.2514C79.2191 42.8024 79.7872 43.078 80.5366 43.078Z" fill="currentColor"></path><path d="M129.601 43.5261C128.553 43.5261 127.697 43.1845 127.033 42.5011C126.369 41.8176 126.037 40.9323 126.037 39.8451C126.037 38.7676 126.373 37.8095 127.044 37.1188C127.715 36.4282 128.567 36.0829 129.601 36.0829C130.654 36.0829 131.511 36.4245 132.172 37.1079C132.834 37.7913 133.164 38.7529 133.164 39.8451C133.164 40.9373 132.832 41.8239 132.169 42.5049C131.505 43.1858 130.649 43.5261 129.601 43.5261ZM129.601 43.078C130.345 43.078 130.912 42.8099 131.302 42.2733C131.691 41.737 131.886 40.957 131.886 39.9333C131.886 38.8507 131.69 37.9517 131.298 37.3832C130.906 36.8151 130.336 36.531 129.586 36.531C128.841 36.531 128.277 36.8054 127.893 37.3538C127.508 37.9026 127.316 38.7773 127.316 39.8304C127.316 40.8933 127.509 41.7002 127.896 42.2514C128.283 42.8024 128.851 43.078 129.601 43.078Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M107.597 41.9846C107.31 42.5177 106.963 42.8849 106.546 43.1421C106.13 43.3993 105.612 43.5277 105.014 43.5277C104.104 43.5277 103.372 43.2021 102.821 42.5505C102.27 41.8993 101.995 40.9305 101.995 39.8577C101.995 38.8126 102.28 37.8308 102.874 37.1279C103.467 36.4251 104.246 36.0845 105.188 36.0845C105.707 36.0845 106.209 36.1982 106.603 36.4261C106.998 36.6539 107.329 36.9579 107.589 37.4658L107.586 33.1166H108.725V43.3283H107.586L107.597 41.9846ZM107.039 37.4142C107.409 37.9189 107.594 38.7076 107.594 39.6336C107.594 40.7014 107.396 41.523 107.002 42.0986C106.608 42.6743 106.046 42.962
1001 105.316 42.9621C104.659 42.9621 104.15 42.6952 103.788 42.1611C103.425 41.6274 103.244 40.7736 103.244 39.8136C103.244 38.8045 103.44 38.0536 103.832 37.4951C104.224 36.9367 104.775 36.6576 105.485 36.6576C106.151 36.6576 106.669 36.9098 107.039 37.4142Z" fill="currentColor"></path><path d="M76.6437 33.6996V33.1196H71.2774V43.3269H72.5289V38.1515H76.0537V37.5715H72.5289V33.6996H76.6437Z" fill="currentColor"></path><path d="M121.761 42.812C121.761 42.812 119.678 43.7349 119.678 41.6733C119.678 41.5236 119.682 36.8682 119.682 36.8682H121.605V36.2885H119.682V34.2535L118.508 34.6294V36.2885H117.615V36.8682H118.508C118.508 36.8682 118.508 41.5398 118.508 41.5245C118.508 42.9858 119.722 44.1827 121.884 43.1217L121.761 42.812Z" fill="currentColor"></path><path d="M139.804 43.3264V39.0839C139.804 38.3395 139.725 37.837 139.396 37.4232C139.105 37.0573 138.66 36.8576 138.092 36.8576C137.793 36.8576 137.527 36.9116 137.295 37.0191C137.062 37.127 136.86 37.2885 136.689 37.5042C136.502 37.7392 136.37 38.021 136.292 38.3492C136.213 38.6773 136.174 39.2398 136.174 39.9157V43.3267H135.035V36.2838H136.174V37.556C136.433 37.0482 136.788 36.6938 137.177 36.4538C137.566 36.2138 138.016 36.0829 138.525 36.0829C139.324 36.0829 139.925 36.3191 140.329 36.7698C140.733 37.2204 140.894 37.8913 140.894 38.7829V43.3267H139.804V43.3264Z" fill="currentColor"></path><path d="M98.902 43.3267V39.0842C98.902 38.3398 98.8232 37.8373 98.4941 37.4235C98.2029 37.0576 97.7582 36.8579 97.1901 36.8579C96.8913 36.8579 96.6257 36.912 96.3929 37.0195C96.16 37.1273 95.9582 37.2888 95.7866 37.5045C95.6004 37.7395 95.4682 38.0214 95.3897 38.3495C95.3113 38.6776 95.2722 39.1798 95.2722 39.8557V43.327H94.1335V36.2863H95.2722V37.556C95.531 37.0482 95.8857 36.6938 96.275 36.4538C96.6644 36.2138 97.1138 36.0829 97.6232 36.0829C98.4216 36.0829 99.0229 36.3191 99.427 36.7698C99.831 37.2204 100.033 37.8914 100.033 38.7829V43.3267H98.902Z" fill="currentColor"></path><path d="M124.198 43.3263H123.059V36.2875H124.198V43.3263Z" fill="currentColor"></path><path d="M123.621 34.2653C123.982 34.2653 124.275 33.9722 124.275 33.6106C124.275 33.249 123.982 32.9559 123.621 32.9559C123.259 32.9559 122.966 33.249 122.966 33.6106C122.966 33.9722 123.259 34.2653 123.621 34.2653Z" fill="currentColor"></path>',44))],8,kae)}]])},props:{name:{type:String,default:"default"},baseLocaleKey:{type:String,default:"a-logo"},ariaTitle:{type:String,default:null}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),computed:{classNames(){return["a-logo",`a-logo--${this.name.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`]},formattedName(){return`Logo-${this.name}`.replace(/-([a-z])/g,(e=>e[1].toUpperCase()))},iconTitle(){return this.ariaTitle?this.ariaTitle:this.translatePart(this.name)}}},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(a.formattedName),{class:Fe(a.classNames),title:a.iconTitle},null,8,["class","title"])}]]),Eae={class:"a-load-more"},Aae=["aria-label"],Lae={class:"a-load-more__icon"},Iae={class:"a-load-more__text"},$ae=Wee({name:"LoadMore",components:{Icon:Xie},props:{a11yLabel:{type:String,default:null},items:{type:Array,default:null},label:{type:String,default:"Load More"}},emits:["click"],watch:{items(e,t){if(e.length>t.length){const n=e[e.length-(e.length-t.length)],i=document.querySelector(`[href$="${n.href}"]`);i&&i.focus()}}}},[["render",function(e,t,n,i,r,a){const s=Yr("Icon");return As(),Ps("div",Eae,[Bs("button",{onClick:t[0]||(t[0]=Kl((t=>e.$emit("click")),["prevent"])),class:"a-load-more__trigger","aria-label":n.a11yLabel},[Bs("span",Lae,[Hs(s,{name:"plus","aria-hidden":"true"})]),Bs("span",Iae,ze(n.label),1)],8,Aae)])}]]),Dae={ref:"loading-item",class:"a-loading-item"},Pae={class:"a-loading-item__wrapper"},Oae={class:"a-loading-item__container","data-variableImageHeight-container":""},Mae={"variable-image-height":"true"},Rae=Wee({name:"LoadingImageAndCaption",props:{height:{type:[Number,void 0],default:void 0},width:{type:[Number,void 0],default:void 0}},data:H((()=>({maxHeight:320})),"data"),methods:{getRandomHeight(){var e;let t=Math.floor(Math.random()*(this.maxHeight/2))+this.maxHeight/2;return`${null!=(e=this.height)?e:t}px`},getRandomWidth(){var e;let t=Math.floor(50*Math.random())+50;return`${null!=(e=this.width)?e:t}%`}}},[["render",function(e,t,n,i,r,a){return As(),Ps("div",Dae,[Bs("div",Pae,[Bs("div",Oae,[Bs("div",null,[Bs("div",Mae,[Bs("img",{class:"a-loading-item__img",style:Pe({height:a.getRandomHeight()})},null,4)])])]),Bs("div",{class:"a-loading-item__heading",style:Pe({width:a.getRandomWidth()})},null,4),Bs("div",{class:"a-loading-item__subheading",style:Pe({width:a.getRandomWidth()})},null,4)])],512)}]]),Nae=[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"administrative.neighborhood",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.business",stylers:[{visibility:"off"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text",stylers:[{visibility:"off"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],Fae={name:"MapImage",mixins:[fae],props:{coords:{type:String,default:null},zoom:{type:[String,Number],default:12},marker:{type:Boolean,default:!0},size:{type:String,default:null},alt:{type:String,default:null},classes:{type:Array,default:H((()=>[]),"default")},href:{type:String,default:null},showLink:{type:Boolean,default:!0}},data(){return{key:"AIzaSyA0AeiuIV-_rjoy4DhVO-xsxthZpqgaYPw",styles:this.buildMapStyles()}},computed:{mapLink(){return this.href?this.href:this.coords?`https://www.google.com/maps/place/${this.coords}?zoom=${this.zoom}`:null},lqip(){return this.key&&this.coords?`https://maps.googleapis.com/ma
100ps/api/staticmap?size=10x10&zoom=${this.zoom}&scale=2&markers=color:blue|${this.coords}&key=${this.key}${this.styles}`:null},imgSrcset(){if(!this.key||!this.size||!hae[this.size])return null;const e=hae[this.size];let t=[],n=[];if(e.options.ratio){const t=e.options.ratio.split(":").map((e=>Number(e)));n=e.widths.map((e=>({w:e,h:Math.round(e*(t[1]/t[0]))})))}else n=e.widths.map((e=>({w:e})));return t=n.map((e=>{let t=`https://maps.googleapis.com/maps/api/staticmap?size=${e.w}x${e.w}&scale=2&zoom=${this.zoom}&key=${this.key}${this.styles}`;return e.h&&(t=`https://maps.googleapis.com/maps/api/staticmap?size=${e.w}x${e.h}&scale=2&zoom=${this.zoom}&key=${this.key}${this.styles}`),this.marker?t+=`&markers=color:blue|${this.coords}`:t+=`¢er=${this.coords}`,`${encodeURI(t)} ${e.w}w`})),t.join(", ")},imgSizes(){if(!this.size||!hae[this.size])return null;const e=hae[this.size];let t="";return"object"==typeof e.sizes&&null!==e.sizes?t=this.getImageSizes(e.sizes):"string"==typeof e.sizes&&(t=e.sizes),t}},methods:{getImageSizes(e){const t=[];return Object.keys(cae.breakpoints).forEach((n=>{const i=cae.breakpoints[n],r=e[n],a=cae.columnWidths[n],s=cae.columnCount[n],o=cae.innerGutters[n],l=cae.outerGutters[n];let u="";e[n]?"string"==typeof r&&(r.indexOf("px")>0||r.indexOf("vw")>0)?t.push(r):"fluid"!==a?u=`${Math.round((a-(s-1)*o)/s*r+(r-1)*o)}px`:(u=`((100vw - ${(s-1)*o+2*l}px) / ${s}) * ${r}`,r>=1&&(u=`(${u}) + ${(r-1)*o}px`),u=`calc(${u})`):u="fluid"!==a?`${a}px`:`calc(100vw - ${2*l}px)`,t.push(`${i} ${u}`)})),t.join(", ")},buildMapStyles(){if(!Nae)return;let e="";return Nae.forEach((t=>{if(t.stylers){const n=t.featureType?t.featureType:"all";let i="&style=";i+=`feature:${n}`,t.elementType&&(i+=`|element:${t.elementType}`),t.stylers.forEach((e=>{Object.entries(e).forEach((([e,t])=>{let n=t;"string"==typeof t&&(n=t.replace("#","0x")),i+=`|${e}:${n}`}))})),e+=i}})),e}}},Bae=["src","srcset","sizes","alt"],Hae=Wee(Fae,[["render",function(e,t,n,i,r,a){return n.coords&&r.key?(As(),Os(Xr(n.showLink&&a.mapLink?"a":"div"),{key:0,href:n.showLink&&a.mapLink?a.mapLink:null,target:n.showLink&&a.mapLink?"_blank":null},{default:Ii((()=>[Bs("img",{src:a.lqip,class:Fe(["a-image",...n.classes]),srcset:a.imgSrcset,sizes:a.imgSizes,alt:n.alt},null,10,Bae)])),_:1},8,["href","target"])):Ws("",!0)}]]),jae={name:"MediaIndicator",components:{Icon:Xie},props:{offscreen:{type:Boolean,default:!1},type:{type:String,default:null,validator:H((e=>["audio","video"].includes(e)),"validator")}},data:H((()=>({})),"data"),computed:{mediaText(){let e="";switch(this.type){case"audio":e="Audio";break;case"video":e="Video"}return e},mediaIcon(){let e="";switch(this.type){case"audio":e="mediaAudio";break;case"video":e="mediaVideo"}return e}},methods:{}},Uae={class:"a-media-indicator__text"},Vae=Wee(jae,[["render",function(e,t,n,i,r,a){const s=Yr("Icon");return n.type?(As(),Ps("span",{key:0,class:Fe(["a-media-indicator",{"visually-hidden":n.offscreen}]),"data-testid":"media-indicator"},[Bs("span",Uae,ze(a.mediaText),1),n.offscreen?Ws("",!0):(As(),Os(s,{key:0,name:a.mediaIcon,class:"a-media-indicator__icon","aria-hidden":"true"},null,8,["name"]))],2)):Ws("",!0)}]]),qae=H((e=>e<10?`0${e}`:e),"gn"),zae={name:"OpenNowStatus",components:{GuiLink:rre},props:{ariaLabel:{type:String,default:null},baseLocaleKey:{type:String,default:"a-open-now-status"},emergencyClosure:{type:Boolean,default:!1},openHours:{type:Object,required:!0,validator:H((e=>!!e.dailyHours&&!!e.specialDates),"validator")},url:{type:String,default:null}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data:H((()=>({datetime:void 0,classes:[],intervalId:void 0,status:"",statusLabel:"",statusAriaLabel:""})),"data"),mounted(){this.openHours.closureFlag||(this.intervalId=setInterval(this.update,1e3)),this.update(),this.setStatus(),this.setClasses()},unmounted(){clearInterval(this.intervalId)},methods:{getClasses(){const e="a-open-now-status";return[e,`${e}--${this.status}`]},getStatus(){if(this.emergencyClosure||this.openHours.closureFlag)return"closure";const e=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(this.datetime).toLowerCase(),t=`${qae(this.datetime.getHours())}${qae(this.datetime.getMinutes())}`,n=`${this.datetime.getFullYear()}${qae(this.datetime.getMonth()+1)}${qae(this.datetime.getDate())}`,{dailyHours:i,specialDates:r}=this.openHours,{openTime:a,closeTime:s}=r[n]||i[e];return a&&s&&t>=a&&t<s?"open":"closed"},getStatusAriaLabel(){return this.ariaLabel?`${this.status}. ${this.ariaLabel}`:null},getStatusLabel(){return this.translatePart(this.status)},setClasses(){this.classes=this.getClasses()},setStatus(){this.status=this.getStatus(),this.statusAriaLabel=this.getStatusAriaLabel(),this.statusLabel=this.getStatusLabel()}
100,update(){const e=(new Date).toLocaleString("en-US",{timeZone:"America/Los_Angeles"});this.datetime=new Date(e),this.setStatus()}}},Wae=Wee(zae,[["render",function(e,t,n,i,r,a){return As(),Os(Xr(n.url?"GuiLink":"span"),{href:n.url,class:Fe(r.classes),"aria-label":r.statusAriaLabel},{default:Ii((()=>[qs(ze(r.statusLabel),1)])),_:1},8,["href","class","aria-label"])}]]),Gae={name:"ResourceUnavailable",components:{Icon:Xie},props:{baseLocaleKey:{type:String,default:"a-resource-unavailable"},captionText:{type:String,required:!1,default:null},iconAltText:{type:String,required:!1,default:null},iconName:{type:String,required:!1,default:null},ignorePageMargins:{type:Boolean,default:!1},variant:{type:String,default:"image",validation:H((e=>["actor","image"].includes(e)),"validation")}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),computed:{caption(){return this.captionText?this.captionText:this.translatePart(this.variant+".caption")},containerClass(){return this.ignorePageMargins?"a-resource-unavailable--full-page-width":"a-resource-unavailable"},icon(){return this.iconName?this.iconName:"image"==this.variant?"ImageUnavailable":"actor"==this.variant?"PersonOutline":void 0},iconAlt(){return this.iconAltText?this.iconAltText:this.translatePart(this.variant+".alt_text")}}},Kae={class:"a-resource-unavailable--content"},Yae=Wee(Gae,[["render",function(e,t,n,i,r,a){const s=Yr("Icon");return As(),Ps("div",{class:Fe(a.containerClass)},[Bs("div",Kae,[Hs(s,{name:a.icon,class:"a-resource-unavailable--icon",alt:a.iconAlt,ref:"icon"},null,8,["name","alt"]),Bs("span",{class:"a-resource-unavailable--text",ref:"icon-text"},ze(a.caption),513)])],2)}]]),Zae="3.79.5",Xae=["top left","top right","bottom right","bottom left"],Qae={name:"Ribbon",components:{GuiLink:rre},props:{animated:{type:Boolean,default:!1},animationDuration:{type:Number,default:5},ariaLabel:{type:String,default:H((()=>`Getty UI ${Zae}`),"default")},backgroundColor:{type:String,default:"rgba(218, 30, 40, 0.85)"},fixed:{type:Boolean,default:!1},position:{type:String,default:"top left",validator:H((e=>Xae.includes(e)),"validator")},size:{type:Number,default:144},target:{type:String,default:"_blank",validator:H((e=>["_blank","_self"].includes(e)),"validator")},text:{type:String,default:H((()=>`Getty UI ${Zae}`),"default")},textColor:{type:String,default:"white"},url:{type:String,default:"https://github.com/thegetty/getty-ui#readme"}},data:H((()=>({ribbonClicked:!1,textWidth:"0px"})),"data"),computed:{id(){return this.getId()},isAnimated(){return this.animated&&!this.ribbonClicked},ribbonVariables(){return{"--animation-duration":`${this.animationDuration}s`,"--background-color":this.backgroundColor,"--ribbon-position":this.fixed?"fixed":"absolute","--ribbon-size":`${this.size}px`,"--text-color":this.textColor,"--text-width":this.textWidth}}},methods:{getId(){const e=this.position.split(" ");return`gui-ribbon--${e[0]}-${e[1]}`},getTextWidth(){const e=window.getComputedStyle(this.$refs.ribbonText);this.textWidth=e.getPropertyValue("width")},stopAnimation(){this.ribbonClicked=!0}},watch:{text(){this.$nextTick((()=>{this.getTextWidth()}))}},mounted(){this.getTextWidth()}},Jae=["id"],ese=Wee(Qae,[["render",function(e,t,n,i,r,a){const s=Yr("GuiLink");return As(),Ps("div",{id:a.id,class:"a-ribbon","data-testid":"gui-ribbon",style:Pe(a.ribbonVariables)},[Bs("div",{class:"a-ribbon__material",onClick:t[0]||(t[0]=e=>a.stopAnimation())},[Bs("span",{class:Fe(["a-ribbon__text",{"a-ribbon__text--animated":a.isAnimated}]),ref:"ribbonText"},[Hs(s,{"aria-label":n.ariaLabel,href:n.url,target:n.target,"data-chromatic":"ignore"},{default:Ii((()=>[qs(ze(n.text),1)])),_:1},8,["aria-label","href","target"])],2)])],12,Jae)}]]),tse={name:"ScrollTopButton",components:{Icon:Xie},props:{baseLocaleKey:{type:String,default:"a-scroll-top-btn"},transitionInOut:{type:Boolean,default:!1},observerTopSetting:{type:Number,default:void 0}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data(){return{label:this.translatePart("label"),observer:null,intersectionClass:void 0}},mounted(){this.observerTopSetting&&this.initObserver()},methods:{scrollTop(){rte({top:0})}
100,initObserver(){this.observer=new IntersectionObserver((e=>{"top"==e[0].target.dataset.scrollButton&&e[0].boundingClientRect.y<0?this.intersectionClass="a-scroll-top-btn--top":"bottom"==e[0].target.dataset.scrollButton&&e[0].isIntersecting&&e[0].boundingClientRect.y>0?this.intersectionClass="a-scroll-top-btn--bottom":"bottom"==e[0].target.dataset.scrollButton&&!e[0].isIntersecting&&e[0].boundingClientRect.y>0?this.intersectionClass="a-scroll-top-btn--before-bottom":"top"==e[0].target.dataset.scrollButton&&e[0].boundingClientRect.y>0?this.intersectionClass="a-scroll-top-btn--before-top":"bottom"==e[0].target.dataset.scrollButton&&e[0].boundingClientRect.y<0&&(this.intersectionClass="a-scroll-top-btn--after--bottom")})),Array.from(document.querySelectorAll("[data-scroll-button=top], [data-scroll-button=bottom]"),(e=>{this.observer.observe(e)}))}}},nse={class:"a-scroll-top-btn"},ise=["aria-label"],rse={key:1,"data-scroll-button":"bottom",class:"a-scroll-top-btn__observer-pixel"},ase=Wee(tse,[["render",function(e,t,n,i,r,a){const s=Yr("Icon");return As(),Ps(Ss,null,[n.observerTopSetting?(As(),Ps("div",{key:0,"data-scroll-button":"top",class:"a-scroll-top-btn__observer-pixel top",style:Pe({"--observerPixelTop":`${n.observerTopSetting}px`})},null,4)):Ws("",!0),Bs("div",nse,[Bs("a",{name:"backToTop",href:"#content","aria-label":r.label,class:Fe(["a-scroll-top-btn__btn",r.intersectionClass,{"a-scroll-top-btn__btn--show":n.transitionInOut}]),onClick:t[0]||(t[0]=(...e)=>a.scrollTop&&a.scrollTop(...e))},[Hs(s,{name:"arrowTop",class:"a-scroll-top-btn__btn-icon--small"}),Hs(s,{name:"arrowTop",size:18,class:"a-scroll-top-btn__btn-icon--large"}),Bs("span",null,ze(r.label),1)],10,ise)]),n.observerTopSetting?(As(),Ps("div",rse)):Ws("",!0)],64)}]]),sse={class:"a-search-results-count"},ose={"aria-hidden":"true"},lse={key:0},use={class:"visually-hidden"},cse=Wee({name:"SearchResultsCount",props:{currentPage:{type:Number,default:1},itemName:{type:String,default:"items"},sizeValue:{type:Number,default:20},totalHits:{type:Number,default:0}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),computed:{endItems(){const e=this.currentPage*this.sizeValue;return this.localizeNumber(e<this.totalHits?e:this.totalHits)},startItems(){return this.localizeNumber(this.currentPage>1?(this.currentPage-1)*this.sizeValue+1:1)}}},[["render",function(e,t,n,i,r,a){return As(),Ps("div",sse,[Bs("span",ose,[n.totalHits>0?(As(),Ps("span",lse,ze(a.startItems)+" â "+ze(a.endItems)+" of",1)):Ws("",!0),qs(" "+ze(e.localizeNumber(n.totalHits))+" "+ze(n.itemName),1)]),Bs("span",use,ze(a.startItems)+" through "+ze(a.endItems)+" of "+ze(e.localizeNumber(n.totalHits))+" "+ze(n.itemName),1)])}]]),dse={name:"GuiToggle",components:{Icon:Xie},props:{fieldName:{type:String,default:null},initialStatus:{type:Boolean,default:!1},icon:{type:Boolean,default:null},label:{type:String,required:!0},labelOff:{type:String,default:null},labelOn:{type:String,default:null},valueOff:{type:String,default:null},valueOn:{type:String,default:null}},emits:["updateSearch"],data(){return{pressed:this.initialStatus}},computed:{toggleLabel(){return this.pressed?this.labelOn?this.labelOn:this.label:this.labelOff?this.labelOff:this.label},iconType(){return this.pressed?"check":"close600"}},methods:{toggle(){this.pressed=!this.pressed;let e=!!this.valueOff&&this.valueOff;this.pressed&&(e=!this.valueOn||this.valueOn),this.$emit("updateSearch",{type:"updateBoolean",name:this.fieldName,value:e})}}},pse=["aria-pressed"],hse={class:"a-toggle__container"},fse={class:"a-toggle__btn"},mse={class:"a-toggle__label"},gse=Wee(dse,[["render",function(e,t,n,i,r,a){const s=Yr("Icon");return As(),Ps("button",{ref:"toggleButton",class:Fe(["a-toggle",r.pressed?"a-toggle--active":""]),onClick:t[0]||(t[0]=(...e)=>a.toggle&&a.toggle(...e)),"aria-pressed":r.pressed?"true":"false"},[Bs("span",hse,[Bs("span",fse,[n.icon?(As(),Os(s,{key:0,name:a.iconType,viewBoxWidth:{weight:16,height:16},weight:600},null,8,["name"])):Ws("",!0)])]),Bs("span",mse,ze(a.toggleLabel),1)],10,pse)}]]),yse={key:0,class:"a-video-background"},vse={class:"a-video-background__controls"},bse=["aria-label","aria-pressed"],_se={class:"a-link__icon"},wse={class:"a-link__label"}
100,Sse=["type","src"],Cse=Wee({name:"VideoBackground",components:{Icon:Xie},props:{sources:{type:Array,default:null,required:!0},poster:{type:String,default:null}},data:H((()=>({paused:!1})),"data"),computed:{pauseButtonIcon(){return this.paused?"play":"pause"},pauseButtonText(){return this.paused?"Play Video":"Pause Video"}},methods:{play(){this.paused=!1},pause(){this.paused=!0},pauseClick(){if(!this.$refs.video)return;const e=this.$refs.video;this.paused?e.play():e.pause()}}},[["render",function(e,t,n,i,r,a){const s=Yr("Icon");return n.sources?(As(),Ps("div",yse,[Bs("div",vse,[Bs("button",{"aria-label":a.pauseButtonText,"aria-pressed":!r.paused,class:"a-link a-link--button a-link--button--inverted a-video-background__pause",name:"pauseButton",onClick:t[0]||(t[0]=Kl(((...e)=>a.pauseClick&&a.pauseClick(...e)),["prevent"]))},[Bs("span",_se,[Hs(s,{name:a.pauseButtonIcon,size:"16"},null,8,["name"]),t[3]||(t[3]=qs("Â "))]),Bs("span",wse,ze(a.pauseButtonText),1)],8,bse)]),Bs("video",{ref:"video",playsinline:"",autoplay:"",loop:"",muted:"",onPlay:t[1]||(t[1]=(...e)=>a.play&&a.play(...e)),onPause:t[2]||(t[2]=(...e)=>a.pause&&a.pause(...e))},[(As(!0),Ps(Ss,null,ea(n.sources,((e,t)=>(As(),Ps("source",{key:t,type:`video/${e.type}`,src:e.src},null,8,Sse)))),128))],544)])):Ws("",!0)}]]),kse={forceListRole:{type:String,default:null}},xse=H(((e,t)=>t?void 0===t.forceListRole?console.error("useListRole() requires ...withListRoles in the component's props."):Array.isArray(e)?t.forceListRole?t.forceListRole:1===e.length?"presentation":null:console.error("useListRole() expects the first argument to be of type: array"):console.error("useListRole() requires the component's props as a second argument.")),"go$1"),Tse={name:"AlertsList",components:{Alert:gre},props:F({a11yTitle:{type:String,default:"Sitewide Messsages"},alerts:{type:Array,default:H((()=>[]),"default")},id:{type:String,default:"sitewide-messages"}},kse),emits:["dismiss"],setup(e,{emit:t}){const n=Co((()=>xse(e.alerts,e))),i=H((()=>{const t=e.alerts.find((e=>e.active));t?document.querySelector(`#alert-${t.uid}`).querySelector("a, button").focus():document.querySelector(".g-header__logo a").focus()}),"s");return{dismissMessage:H((e=>{t("dismiss",e),vi((()=>{i()}))}),"dismissMessage"),focusNextAlert:i,listRole:n}}},Ese=["aria-hidden"],Ase=["id"],Lse=["role"],Ise=["role"],$se=Wee(Tse,[["render",function(e,t,n,i,r,a){const s=Yr("Alert");return As(),Ps("div",{class:"g-alerts-list","aria-hidden":!(!n.alerts||0!==n.alerts.length)},[Bs("span",{id:n.id,class:"visually-hidden",style:Pe({display:n.alerts.length>=1?"block":"none"})},ze(n.a11yTitle),13,Ase),Bs("ul",{role:i.listRole},[(As(!0),Ps(Ss,null,ea(n.alerts,((e,t)=>(As(),Ps("li",{key:t,ref_for:!0,ref:e.uid,role:i.listRole},[Hs(s,Zs({ref_for:!0},e,{onDismiss:i.dismissMessage}),null,16,["onDismiss"])],8,Ise)))),128))],8,Lse)],8,Ese)}]]),Dse=["aria-live"],Pse=Wee({name:"Announcer",props:{message:{type:String,default:null},tone:{type:String,validator:H((e=>["assertive","polite","off"].includes(e)),"validator"),default:"polite"}}},[["render",function(e,t,n,i,r,a){return As(),Ps("div",{id:"announcement","aria-atomic":"true","aria-live":n.tone,class:"visually-hidden"},ze(n.message),9,Dse)}]]),Ose=ly(),Mse={on:H(((...e)=>Ose.on(...e)),"on"),once:H(((...e)=>Ose.once(...e)),"once"),off:H(((...e)=>Ose.off(...e)),"off"),emit:H(((...e)=>Ose.emit(...e)),"emit")},Rse=H(((e={})=>F({options:e,set:H(((t,n)=>{if("string"!=typeof t)throw"useEventBus: property must be a string, got "+typeof t;e[t]=n}),"set")},Mse)),"Te"),Nse={computed:{headingLevel(){let e=1;return this.modifiers&&this.modifiers.forEach((t=>{/^h\d$/.test(t)&&(e=t.match(/\d/)[0]||1)})),parseInt(e)}}},Fse={class:"m-footer-card__inner"},Bse={class:"m-footer-card__main"},Hse={class:"m-footer-card__footer"},jse=Wee({name:"FooterCard",components:{Heading:jre,ListOfLinks:zre},mixins:[Nse],props:{item:{type:Object,default:null},modifiers:{type:Array,default:null}},data:H((()=>({uid:br()})),"data"),computed:{classes(){const e=["m-footer-card"];return this.modifiers&&this.modifiers.forEach((t=>{e.push(`m-footer-card--${t}`)})),e},itemList(){if(this.item)return this.item.links||this.item.items}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("ListOfLinks");return n.item?(As(),Ps("div",{key:0,class:Fe(a.classes)},[Bs("div",Fse,[Bs("div",Bse,[n.item.title?(As(),Os(s,{key:0,ref:"title",id:r.uid,level:e.headingLevel,class:"m-footer-card__title"},{default:Ii((()=>
100[qs(ze(n.item.title),1)])),_:1},8,["id","level"])):Ws("",!0)]),Bs("div",Hse,[a.itemList?(As(),Os(o,{key:0,links:a.itemList,labelId:r.uid},null,8,["links","labelId"])):Ws("",!0)])])],2)):Ws("",!0)}]]),Use={name:"OpenHours",components:{DescriptionList:$re,GuiLink:rre,Heading:jre,OpenNowStatus:Wae},props:{openHours:{type:Object,required:!0,validator:H((e=>e.displayHours),"validator")},displayOpenNowStatus:{type:Boolean,default:!0},emergencyClosure:{type:Boolean,default:!1},headingLevel:{type:Number,default:3},title:{type:String,default:"Hours"}},data:H((()=>({hoursHeadingId:`hours-list-heading-${br()}`})),"data"),computed:{closureFlag(){return this.emergencyClosure||this.openHours.closureFlag},displayHours(){return this.openHours.displayHours}}},Vse={class:"m-open-hours"},qse={class:"m-open-hours__title-wrap"},zse=Wee(Use,[["render",function(e,t,n,i,r,a){const s=Yr("OpenNowStatus"),o=Yr("Heading"),l=Yr("DescriptionList");return As(),Ps("div",Vse,[a.closureFlag?(As(),Os(s,{key:0,ref:"closure-status",emergencyClosure:n.emergencyClosure,openHours:n.openHours,class:"m-open-hours__closure-status"},null,8,["emergencyClosure","openHours"])):Ws("",!0),!a.closureFlag&&a.displayHours?(As(),Ps(Ss,{key:1},[Bs("div",qse,[Hs(o,{level:n.headingLevel,id:r.hoursHeadingId,class:"m-open-hours__title"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["level","id"]),n.displayOpenNowStatus?(As(),Os(s,{key:0,ref:"open-now-status",emergencyClosure:n.emergencyClosure,openHours:n.openHours,class:"m-open-hours__open-now-status"},null,8,["emergencyClosure","openHours"])):Ws("",!0)]),Hs(l,{id:r.hoursHeadingId,terms:a.displayHours,class:"m-open-hours__items",descriptionKey:"times",termKey:"days"},null,8,["id","terms"])],64)):Ws("",!0)])}]]),Wse=["aria-hidden"],Gse={class:"g-footer__subfooter"},Kse={class:"g-footer__social","aria-label":"Social"},Yse={"aria-labelledby":"socialnavlabel"},Zse={key:0,class:"g-footer__social-all"},Xse={class:"g-footer__upper"},Qse={class:"g-footer__primary"},Jse={class:"g-footer__primary-inner"},eoe={class:"g-footer__logo"},toe={class:"g-footer__primary-nav","aria-label":"Footer Primary"},noe={"aria-labelledby":"footerprimarylabel"},ioe={class:"g-footer__secondary"},roe={class:"g-footer__secondary-inner"},aoe={class:"g-footer__info-title"},soe={class:"g-footer__lower"},ooe={"aria-label":"Site Map"},loe={class:"g-footer__nav-grid"},uoe=Wee({name:"GuiFooter",components:{FooterCard:jse,GuiLink:rre,Icon:Xie,Logo:Tae,OpenHours:zse},props:{baseUrl:{type:String,default:"https://www.getty.edu/"},museumInfo:{type:Array,default:H((()=>[]),"default")},navGrid:{type:Array,default:H((()=>[]),"default")},primaryNav:{type:Array,default:H((()=>[]),"default")},social:{type:Array,default:H((()=>[]),"default")},socialAllLink:{type:String,default:null}},data:H((()=>({eventBus:Rse(),hidden:!1})),"data"),provide(){return{componentBaseUrl:this.baseUrl}},methods:{ariaHide(){this.hidden=!0},ariaShow(){this.hidden=!1}},mounted(){this.eventBus.on("modalClose",this.ariaShow),this.eventBus.on("modalOpen",this.ariaHide)},unmounted(){this.eventBus.off("modalOpen",this.ariaHide),this.eventBus.off("modalClose",this.ariaShow)}},[["render",function(e,t,n,i,r,a){const s=Yr("GuiLink"),o=Yr("Logo"),l=Yr("OpenHours"),u=Yr("FooterCard");return As(),Ps("footer",{class:"g-footer gui-container","data-testid":"g-footer","aria-hidden":r.hidden},[t[5]||(t[5]=Bs("h2",{class:"visually-hidden"},"Footer",-1)),Bs("div",Gse,[Bs("nav",Kse,[t[1]||(t[1]=Bs("h3",{id:"socialnavlabel",class:"visually-hidden"},"Social Navigation",-1)),Bs("ul",Yse,[(As(!0),Ps(Ss,null,ea(n.social,((e,t)=>(As(),Ps("li",{key:`social_${t}`},[Hs(s,{"aria-label":`${e.text}`,href:e.url,iconName:e.icon,iconSize:24,withIcon:e.icon?"before":null},null,8,["aria-label","href","iconName","withIcon"])])))),128)),n.socialAllLink?(As(),Ps("li",Zse,[Hs(s,{href:n.socialAllLink,"aria-label":"See all options to connect with us"},{default:Ii((()=>t[0]||(t[0]=[qs("See all")]))),_:1,__:[0]},8,["href"])])):Ws("",!0)])]),Bs("div",Xse,[Bs("div",Qse,[Bs("div",Jse,[Bs("div",eoe,[Hs(o)]),Bs("nav",toe,[t[2]||(t[2]=Bs("h3",{id:"footerprimarylabel",class:"visually-hidden"}," Footer Primary Navigation ",-1)),Bs("ul",noe,[(As(!0),Ps(Ss,null,ea(n.primaryNav,((e,t)=>
100(As(),Ps("li",{key:t},[Hs(s,{href:e.url},{default:Ii((()=>[qs(ze(e.text),1)])),_:2},1032,["href"])])))),128))])])])]),Bs("div",ioe,[Bs("div",roe,[(As(!0),Ps(Ss,null,ea(n.museumInfo,((e,n)=>(As(),Ps("div",{key:`museumInfo-${n}`,class:"g-footer__info"},[Bs("h3",aoe,ze(e.title),1),t[3]||(t[3]=Bs("h4",{class:"visually-hidden"},"Address",-1)),Bs("p",null,[e.url?(As(),Os(s,{key:0,href:e.url,withIcon:"after"},{default:Ii((()=>[qs(ze(e.content),1)])),_:2},1032,["href"])):(As(),Ps(Ss,{key:1},[qs(ze(e.content),1)],64))]),e.openHours?(As(),Os(l,{key:0,openHours:e.openHours,headingLevel:4,emergencyClosure:e.emergencyClosure,displayOpenNowStatus:!1,cta:e.cta,class:"g-footer__info-list"},null,8,["openHours","emergencyClosure","cta"])):Ws("",!0)])))),128))])])]),Bs("div",soe,[Bs("nav",ooe,[t[4]||(t[4]=Bs("h3",{class:"visually-hidden"},"Site Map Navigation",-1)),Bs("div",loe,[(As(!0),Ps(Ss,null,ea(n.navGrid,((e,t)=>(As(),Ps("div",{key:`nav_${t}`,class:"g-footer__secondary-nav"},[Hs(u,{item:e,modifiers:["h4"]},null,8,["item"])])))),128))])])])]),t[6]||(t[6]=Bs("div",{class:"g-footer__legals"},null,-1))],8,Wse)}]]);function coe(e){return!!Qe()&&(Je(e),!0)}H(coe,"Dn$1");const doe=typeof window<"u"&&typeof document<"u",poe=H((e=>null!=e),"gh"),hoe=Object.prototype.toString,foe=H((()=>{}),"kn$1"),moe=goe();function goe(){var e,t;return doe&&(null==(e=null==window?void 0:window.navigator)?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||(null==(t=null==window?void 0:window.navigator)?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(null==window?void 0:window.navigator.userAgent))}function yoe(e){return Array.isArray(e)?e:[e]}H(goe,"yh"),H(yoe,"xn$1");const voe=doe?window:void 0;function boe(e){var t;const n=Dn(e);return null!=(t=null==n?void 0:n.$el)?t:n}function _oe(...e){const t=[],n=H((()=>{t.forEach((e=>e())),t.length=0}),"t"),i=Co((()=>{const t=yoe(Dn(e[0])).filter((e=>null!=e));return t.every((e=>"string"!=typeof e))?t:void 0})),r=Bi((()=>{var t,n;return[null!=(n=null==(t=i.value)?void 0:t.map((e=>boe(e))))?n:[voe].filter((e=>null!=e)),yoe(Dn(i.value?e[1]:e[0])),yoe($n(i.value?e[2]:e[1])),Dn(i.value?e[3]:e[2])]}),H((([e,i,r,a])=>{if(n(),null==e||!e.length||null==i||!i.length||null==r||!r.length)return;const s=(o=a,"[object Object]"===hoe.call(o)?F({},a):a);var o;t.push(...e.flatMap((e=>i.flatMap((t=>r.map((n=>{return r=t,a=n,o=s,(i=e).addEventListener(r,a,o),()=>i.removeEventListener(r,a,o);var i,r,a,o})))))))}),"a"),B(F({},{flush:"post"}),{immediate:!0}));return coe(n),()=>{r(),n()}}function woe(e){const t=function(){const e=En(!1),t=io();return t&&Br((()=>{e.value=!0}),t),e}();return Co((()=>(t.value,!!e())))}function Soe(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Coe(e){const t=window.getComputedStyle(e);if("scroll"===t.overflowX||"scroll"===t.overflowY||"auto"===t.overflowX&&e.clientWidth<e.scrollWidth||"auto"===t.overflowY&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!(!t||"BODY"===t.tagName)&&Coe(t)}}function koe(e){const t=e||window.event;return!Coe(t.target)&&(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))}H(boe,"Zi"),H(_oe,"bh"),H(woe,"_o$1"),H(Soe,"Ml"),H(Coe,"ko$1"),H(koe,"vh");const xoe=new WeakMap;function Toe(e,t=!1){const n=En(t);let i=null,r="";Bi(function(...e){if(1!==e.length)return Vn(...e);const t=e[0];return"function"==typeof t?fn(Nn((()=>({get:t,set:foe})))):Tn(t)}(e),(e=>{const t=Soe(Dn(e));if(t){const e=t;if(xoe.get(e)||xoe.set(e,e.style.overflow),"hidden"!==e.style.overflow&&(r=e.style.overflow),"hidden"===e.style.overflow)return n.value=!0;if(n.value)return e.style.overflow="hidden"}}),{immediate:!0});const a=H((()=>{const t=Soe(Dn(e));t&&n.value&&(moe&&(null==i||i()),t.style.overflow=r,xoe.delete(t),n.value=!1)}),"a");return coe(a),Co({get:H((()=>n.value),"get"),set(t){t?(()=>{const t=Soe(Dn(e));t&&!n.value&&(moe&&(i=_oe(t,"touchmove",(e=>{koe(e)}),{passive:!1})),t.style.overflow="hidden",n.value=!0)})():a()}})}H(Toe,"Ch");const Eoe=H((e=>{const t=Tn({style:{}}),n=Toe(t);Br((()=>{document&&(t.value=document.body)})),Bi(e,(()=>{n.value=e.value}))}),"xo$1"),Aoe={name:"Modal",components:{FocusTrap:ov,Icon:Xie},props:{id:{type:String,default:null,required:!0},a11yHeading:{type:String,default:null},a11yLabel:{type:String,default:"Modal"},showCloseButton:{type:Boolean,default:!0},dataTestId:{type:String,default:"g-modal"},transition:{type:String,default:"fade",validator:H((e=>["fade","slide-from-right"].includes(e)),"validator")},closeOnClick:{type:Boolean,default:!1},focusSelector:{type:String,default:null},lockBodyScroll:{type:Boolean,default:!0}},emits:["afterOpen","afterClose"],setup(e){const t=Tn(!1);return e.lockBodyScroll&&Eoe(t),{active:t}},data:H((()=>({eventBus:Rse(),a11yHeadingId:`modal${br()}Heading`}
100)),"data"),computed:{modalTransitionModifier(){if(this.transition)return`g-modal--${this.transition}`},initialFocusElement(){return this.focusSelector?this.focusSelector:()=>this.$refs.modalHeading}},methods:{close(e){e===this.id&&(this.active=!1,this.$emit("afterClose"),this.openingElement&&setTimeout((()=>{this.openingElement.focus()}),5))},open(e,t){e===this.id&&(this.openingElement=t&&t.target,this.active=!0,window.document.activeElement&&window.document.activeElement.blur(),this.initialFocusElement&&"string"==typeof this.initialFocusElement&&document.querySelector(this.initialFocusElement)&&setTimeout((()=>{document.querySelector(this.initialFocusElement).focus()}),5),this.$emit("afterOpen"))},preventClose(e){e.stopPropagation()}},mounted(){this.eventBus.on("modalOpen",(({modalId:e,$event:t})=>{this.open(e,t)})),this.eventBus.on("modalClose",this.close)},unmounted(){this.eventBus.off("modalOpen",this.open),this.eventBus.off("modalClose",this.close)}},Loe=["data-testid","aria-labelledby"],Ioe={ref:"container",class:"g-modal__container gui-container"},$oe=["aria-label"],Doe=["id"],Poe=Wee(Aoe,[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("FocusTrap");return As(),Os(No,{name:n.transition,appear:""},{default:Ii((()=>[i.active?(As(),Ps("div",{key:0,ref:"modal",class:Fe(["g-modal",{"g-modal--active":i.active},a.modalTransitionModifier]),"data-testid":n.dataTestId,role:"dialog","aria-labelledby":n.a11yHeading?r.a11yHeadingId:null,"aria-modal":"true",onClick:t[3]||(t[3]=e=>n.closeOnClick?a.close(n.id):null),onKeyup:t[4]||(t[4]=Zl((e=>a.close(n.id)),["esc"]))},[Hs(o,{modelValue:i.active,"onUpdate:modelValue":t[2]||(t[2]=e=>i.active=e),escapeDeactivates:!1,fallbackFocus:a.initialFocusElement,returnFocusOnDeactivate:!0},{default:Ii((()=>[Bs("div",{class:"g-modal__scroll",onClick:t[1]||(t[1]=Kl((e=>n.closeOnClick?a.preventClose:null),["stop"]))},[Bs("div",Ioe,[n.showCloseButton?(As(),Ps("button",{key:0,class:"g-modal__close","aria-label":`Close ${n.a11yLabel}`,onClick:t[0]||(t[0]=e=>a.close(n.id))},[Hs(s,{name:"closeBold"})],8,$oe)):Ws("",!0),n.a11yHeading?(As(),Ps("h1",{key:1,ref:"modalHeading",id:r.a11yHeadingId,class:"visually-hidden",tabindex:"-1"},ze(n.a11yHeading),9,Doe)):Ws("",!0),na(e.$slots,"default")],512)])])),_:3},8,["modelValue","fallbackFocus"])],42,Loe)):Ws("",!0)])),_:3},8,["name"])}]]),Ooe=Object.keys(cae.breakpoints),Moe={methods:{checkBreakpoints(e){if(null==e)return!1;const t=Array.isArray(e)?e:[e],n=this.getCurrentBreakpoint().toLowerCase();return t.map((e=>(e=e.toLowerCase(),Ooe.includes(e)||console.warn(`checkBreakpoints: "${e}" is not a valid breakpoint name,\ndefined breakpoint names are: ${Ooe}`),e))).includes(n)},isSmallMinus(){return this.checkBreakpoints(["small","xsmall"])},isMediumMinus(){return this.checkBreakpoints(["medium","small","xsmall"])},isMediumPlus(){return this.checkBreakpoints(["medium","large","xlarge","xxlarge"])},isLargePlus(){return this.checkBreakpoints(["large","xlarge","xxlarge"])},getCurrentBreakpoint(){const e=window.opera?window.getComputedStyle(document.body,":after").getPropertyValue("content"):window.getComputedStyle(document.head,null).getPropertyValue("font-family");return e?e.replace(/'/gi,"").replace(/"/g,""):"large"}}},Roe=Rse(),Noe={methods:{triggerModalOpen(e,t){e?Roe.emit("modalOpen",{modalId:e,$event:t}):console.error("triggerModalOpen - No `modalId` set.")},triggerModalClose(e,t){e?Roe.emit("modalClose",e,t):console.error("triggerModalOpen - No `modalId` set.")}}},Foe={name:"AccordionItem",components:{Heading:jre,Icon:Xie,RichText:cre},props:{ariaLabel:{type:String,default:null},content:{type:String,default:null},headingLevel:{type:Number,default:3},initialActiveState:{type:Boolean,default:!1},size:{type:String,default:null},title:{type:String,default:null},useHeading:{type:Boolean,default:!0},useTransition:{type:Boolean,default:!0}},data(){const e=br();return{active:this.initialActiveState,contentId:`accordion${e}`,labelId:`accordion${e}Label`}},computed:{expandIcon(){return"small"===this.size?"ExpandMore":"ExpandMore600"},whichAria(){return this.ariaLabel?{ariaLabel:this.ariaLabel}:{ariaLabelledby:this.labelId}}},methods:{toggleAccordion:H((function(){this.active=!this.active}),"toggleAccordion"),beforeEnter:H((function(e){e.style.height="0"}),"beforeEnter"),enter:H((function(e){e.style.height=e.scrollHeight+"px"}),"enter"),beforeLeave:H((function(e){e.style.height=e.scrollHeight+"px"}),"beforeLeave"),leave:H((function(e){e.style.height="0"}),"leave")}},Boe=["id","aria-expanded","aria-controls"],Hoe={key:0},joe={class:"m-accordion-item__trigger-icon","aria-hidden":"true"},Uoe=["aria-hidden","aria-labelledby","aria-label","id"],Voe=Wee(Foe,[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("RichText");return As(),Os(Xr("Accordion"!==this.$parent.$options.name?"div":"li"),{class:Fe(["m-accordion-item",r.active?"m-accordion-item--open":""])},{default:Ii((()=>[(As(),Os(Xr(n.useHeading?"Heading":"div"),{level:n.useHeading?n.headingLevel:null},{default:Ii((()=>[Bs("button",{id:r.labelId,"aria-expanded":r.active.toString(),"aria-controls":r.contentId,class:"m-accordion-item__trigger",onClick:t[0]||(t[0]=Kl(((...e)=>a.toggleAccordion&&a.toggleAccordion(...e)),["prevent"]))},[n.title?(As(),Ps("span",Hoe,ze(n.title),1)):na(e.$slots,"title",{key:1}),Bs("span",joe,[Hs(s,{name:a.expandIcon,size:"text"},null,8,["name"])])],8,Boe)])),_:3},8,["level"])),(As(),Os(Xr(n.useTransition?"transition":"div"),{name:"accordion",onBeforeEnter:a.beforeEnter,onEnter:a.enter,onBeforeLeave:a.beforeLeave,onLeave:a.leave},{default:Ii((()=>[$i(Bs("div",{"aria-hidden":!r.active,"aria-labelledby":a.whichAria.ariaLabelledby,"aria-label":a.whichAria.ariaLabel,id:r.contentId,class:"m-accordion-item__content trigger-chromatic-debug",role:"region"},[n.content?(As(),Os(o,{key:0,class:"m-accordion-item__content-inner",content:n.content},null,8,["content"])):na(e.$slots,"default",{key:1})],8,Uoe),[[tl,r.active]])])),_:3},40,["onBeforeEnter","onEnter","onBeforeLeave","onLeave"]))])),_:3},8,["class"])}]]),qoe={key:0,class:"m-accordion-item-card"},zoe=Wee({name:"AccordionItemCard",components:{AccordionItem:Voe,RichText:cre},props:{item:{type:[Object,null],default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("AccordionItem");return n.item?(As(),Ps("div",qoe,[n.item.cardContent?(As(),Os(s,{key:0,class:"m-accordion-item-card__content",content:n.item.cardContent},null,8,["content"])):Ws("",!0),Hs(o,Be(Us(F({},n.item))),null,16)])):Ws("",!0)}]]);function Woe(e){const t=Tn(null),n=Tn(0),i=Tn(0),r=Tn(null),a=Tn(0),s=Tn(0),o=Tn(0),l=Tn(!1),u=H((()=>
100{n.value=document.documentElement.clientWidth,i.value=document.documentElement.clientHeight}),"p");return Br((()=>{document&&(t.value=document.querySelector(".g-header"),n.value=document.documentElement.clientWidth,i.value=document.documentElement.clientHeight),function(e,t,n={}){const i=n,{window:r=voe}=i,a=j(i,["window"]);let s;const o=woe((()=>r&&"ResizeObserver"in r)),l=H((()=>{s&&(s.disconnect(),s=void 0)}),"ne"),u=Bi(Co((()=>{const t=Dn(e);return Array.isArray(t)?t.map((e=>boe(e))):[boe(t)]})),(e=>{if(l(),o.value&&r){s=new ResizeObserver(t);for(const t of e)t&&s.observe(t,a)}}),{immediate:!0,flush:"post"});coe((()=>{l(),u()}))}(e,(e=>{const t=e[0],{width:n,height:i}=t.contentRect;a.value=n,s.value=i})),t.value&&(r.value=t.value.getBoundingClientRect().height),window.addEventListener("resize",u)})),Fi((()=>{if(n.value>1200&&s.value>i.value-r.value){l.value=!0;const e=s.value/a.value;o.value=Math.round((i.value-r.value)/e)}else n.value<1200&&(l.value=!1)})),Vr((()=>{window.removeEventListener("resize",u)})),{resized:l,resizedElementWidth:o}}H(Woe,"Bn$1");const Goe=Wee({name:"ArtworkCard",components:{Icon:Xie,GuiButton:Jee,GuiLink:rre,Heading:jre,ImageResponsive:vae,RichText:cre},props:{item:{type:Object,default:null},variableImageHeight:{type:Boolean,default:!0}},setup(){const e=Tn(null),{resized:t,resizedElementWidth:n}=Woe(e);return{element:e,eventBus:Rse(),resized:t,resizedElementWidth:n}},computed:{imagePreset(){const{size:e="medium"}=this.item;return`project_${e}_variable_height`}},methods:{openModal(e){this.$emit("open",{$event:e,id:this.item.id})}},mounted(){Object.keys(hae).includes(this.imagePreset)||console.warn(`Warning: Preset "${this.imagePreset}" is not defined in utils/imagePresets.json.`)}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("GuiLink"),l=Yr("RichText"),u=Yr("ImageResponsive"),c=Yr("Icon"),d=Yr("GuiButton");return n.item?(As(),Ps("div",{key:0,class:"m-artwork-card",onClick:t[1]||(t[1]=(...e)=>a.openModal&&a.openModal(...e))},[n.item.href?(As(),Os(o,{key:0,href:n.item.href},{default:Ii((()=>[n.item.title?(As(),Os(s,{key:0,level:n.item.headingLevel,class:"m-artwork-card__title",onClick:t[0]||(t[0]=Kl((()=>{}),["stop"]))},{default:Ii((()=>[qs(ze(n.item.title),1)])),_:1},8,["level"])):Ws("",!0)])),_:1},8,["href"])):Ws("",!0),n.item.content?(As(),Os(l,{key:1,content:n.item.content,class:"m-artwork-card__content"},null,8,["content"])):Ws("",!0),Bs("div",{"data-variableImageHeight-container":"true",class:"m-artwork-card__image",ref:"element",style:Pe(i.resized?`max-width: ${i.resizedElementWidth}px`:"")},[n.item.image?(As(),Os(u,Zs({key:0},F({},n.item.image),{heightResponsive:!0,size:a.imagePreset}),null,16,["size"])):Ws("",!0),Hs(d,{name:"lightbox-button",class:"a-lightbox-button__button",modifiers:["icon"],onClick:a.openModal},{default:Ii((()=>[Hs(c,{name:"FullScreenVideo400",size:16})])),_:1},8,["onClick"])],4)])):Ws("",!0)}]]),Koe={key:3,class:"m-contact-card__biography"},Yoe=Wee({name:"BiographyCard",components:{Heading:jre,ImageResponsive:vae,RichText:cre},props:{item:{type:Object,default:null},modifiers:{type:Array,default:H((()=>[]),"default")}},computed:{classes(){return this.modifiers.map((e=>`m-biography-card--${e}`))},setImageSizeProperties(){const{image:{region:e}}=this.item;let t=!1,n="post_large";return e&&!e["16:9"]&&(t=!0,n="post_large_variable_height"),{placemat:t,size:n}}}},[["render",function(e,t,n,i,r,a){const s=Yr("ImageResponsive"),o=Yr("Heading"),l=Yr("RichText");return n.item?(As(),Ps("div",{key:0,class:Fe(["m-biography-card",...a.classes])},[n.item.image?(As(),Os(s,Be(Zs({key:0},F(F({},n.item.image),a.setImageSizeProperties))),null,16)):Ws("",!0),n.item.fullName?(As(),Os(o,{key:1,ref:"fullName",level:5,class:"m-biography-card__title"},{default:Ii((()=>[qs(ze(n.item.fullName),1)])),_:1},512)):Ws("",!0),n.item.jobTitle?(As(),Ps("p",{key:2,ref:"jobTitle",class:"m-biography-card__subtitle"},ze(n.item.jobTitle),513)):Ws("",!0),n.item.biography?(As(),Ps("div",Koe,[Hs(l,{ref:"biography",content:n.item.biography.text},null,8,["content"])])):Ws("",!0)],2)):Ws("",!0)}]]),Zoe={class:"m-body-text m-body-text--featured"},Xoe={key:0,class:"m-body-text__title"},Qoe={class:"m-body-text m-body-text--content"},Joe={class:"m-body-text m-body-text--introduction"},ele={class:"m-body-text m-body-text--content"},tle=Wee({name:"BodyText",components:{BodyTextDefault:Wee({name:"BodyTextDefault",components:{GuiLink:rre,ListOfLinks:zre,RichText:cre},props:{content:{type:[String,Object],default:null},links:{type:Object,default:H((()=>({})),"default")},modifiers:{type:Array,default:H((()=>[]),"default")}},computed:{classes(){return this.modifiers.map((e=>`m-body-text--${e}`))}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("ListOfLinks");return As(),Ps("div",{class:Fe(["m-body-text","m-body-text--default",...a.classes])},[n.content?(As(),Os(s,{key:0,content:n.content,class:"m-body-text__content"},null,8,["content"])):Ws("",!0),n.links.items?(As(),Os(o,{key:1,links:n.links.items,withIcons:n.links.withIcons,class:"m-body-text__cta"},null,8,["links","withIcons"])):Ws("",!0)],2)}]]),BodyTextFeatured:Wee({name:"BodyTextFeatured",components:{RichText:cre},props:{title:{type:String,default:null},content:{type:[String,Object],default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText");return As(),Ps("div",Zoe,[n.title?(As(),Ps("p",Xoe,ze(n.title),1)):Ws("",!0),n.content?(As(),Os(s,{key:1,content:n.content,class:"m-body-text__content"},null,8,["content"])):Ws("",!0)])}]]),BodyTextContent:Wee({name:"BodyTextContent",components:{RichText:cre},props:{content:{type:[String,Object],default:null},intro:{type:String,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText");return As(),Ps("div",Qoe,[n.intro?(As(),Os(s,{key:0,content:n.intro,class:"m-body-text__title"},null,8,["content"])):Ws("",!0),n.content?(As(),Os(s,{key:1,content:n.content,class:"m-body-text__content"},null,8,["content"])):Ws("",!0)])}]]),BodyTextIntroduction:Wee({name:"BodyTextIntroduction",components:{Heading:jre,RichText:cre},props:{headingLevel:{type:Number,default:2},id:{type:String,default:null},intro:{type:String,default:null},title:{type:String,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("RichText");return As(),Ps("div",Joe,[n.title?(As(),Os(s,{key:0,id:n.id,level:n.headingLevel,class:"m-body-text__title"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["id","level"])):Ws("",!0),n.intro?(As(),Os(o,{key:1,content:n.intro,class:"m-body-text__intro"},null,8,["content"])):Ws("",!0)])}]]),BodyTextModule:Wee({name:"BodyTextModule",components:{RichText:cre},props:{content:{type:[String,Object],default:null},intro:{type:String,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText");return As(),Ps("div",ele,[n.intro?(As(),Os(s,{key:0,content:n.intro,class:"m-body-text__title"},null,8,["content"])):Ws("",!0),n.content?(As(),Os(s,{key:1,content:n.content,class:"m-body-text__content"},null,8,["content"])):Ws("",!0)])}]])},props:{layout:{type:String,default:null},contentType:{type:String,default:"markdown"},headingLevel:{type:Number,default:3},intro:{type:String,default:null},title:{type:String,default:null},content:{type:[String,Object],default:null},bkgd:{type:String,default:null},id:{type:String,default:null},links:{type:Object,default:H((()=>({})),"default")},modifiers:{type:Array,default:H((()=>[]),"default")}},computed:{name(){return this.layout?`BodyText${this.layout}`:"BodyTextDefault"}}},[["render",function(e,t,n,i,r,a){return a.name?(As(),Os(Xr(a.name),Be(Zs({key:0},F({},e.$props))),null,16)):Ws("",!0)}]]),nle=Wee({name:"BodyTextCard",components:{BodyText:tle},props:{item:{type:Object,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("BodyText");return n.item?(As(),Os(s,Be(Zs({key:0},F({},n.item))),null,16)):Ws("",!0)}]]),ile={name:"ContactCard",components:{Heading:jre,RichText:cre},props:{item:{type:Object,default:null}},computed:{fax(){if(!this.item.fax)return!1;const e=/^\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{4})$/.test(this.item.fax);return{isValid:e,text:this.item.fax,url:e?this.item.fax:void 0}},labelStyles(){return`--telephone-label: '${this.item.telephoneLabel||""}'; --fax-label: '${this.item.faxLabel||""}'`},link(){if(!this.item||!this.item.link)return!1;const{text:e,url:t}=this.item.link;return{text:e,url:t}},telephone(){if(!this.item.telephone)return!1;const e=/^\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{4})$/.test(this.item.telephone);return{isValid:e,text:this.item.telephone,url:e?this.item.telephone:void 0}}}},rle={key:0,class:"m-contact-card",itemscope:"",itemtype:"https://schema.org/Person"},ale={key:2,class:"m-contact-card__excerpt"},sle={key:3,class:"m-contact-card__address"}
100,ole={key:0,class:"p-tel",ref:"telephone"},lle=["href"],ule={key:1,class:"p-fax"},cle=["href"],dle={key:2,ref:"email"},ple=["href"],hle={key:3,ref:"link"},fle=["href"],mle=Wee(ile,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("RichText");return n.item?(As(),Ps("div",rle,[n.item.title?(As(),Os(s,{key:0,class:Fe(["m-contact-card__title",{"m-contact-card__title--no-subtitle":!n.item.subtitle}]),id:n.item.id,level:n.item.headingLevel||3,itemprop:"name",ref:"title"},{default:Ii((()=>[qs(ze(n.item.title),1)])),_:1},8,["class","id","level"])):Ws("",!0),n.item.subtitle?(As(),Ps("p",{key:1,class:"m-contact-card__subtitle",itemprop:"jobTitle",ref:"subtitle"},ze(n.item.subtitle),513)):Ws("",!0),n.item.excerpt?(As(),Ps("div",ale,[Hs(o,{content:n.item.excerpt,class:"p-note",ref:"excerpt"},null,8,["content"])])):Ws("",!0),n.item.address?(As(),Ps("div",sle,[Bs("p",{itemprop:"address",itemscope:"",itemtype:"https://schema.org/PostalAddress",ref:"address"},ze(n.item.address),513)])):Ws("",!0),n.item.email||a.fax||a.link||a.telephone?(As(),Ps("div",{key:4,style:Pe(a.labelStyles),class:"m-contact-card__meta"},[a.telephone?(As(),Ps("p",ole,[a.telephone.isValid?(As(),Ps("a",{key:0,href:`tel:${a.telephone.url}`,content:"item.telephoneNumber",itemprop:"telephone"},ze(a.telephone.text),9,lle)):(As(),Ps(Ss,{key:1},[qs(ze(a.telephone.text),1)],64))],512)):Ws("",!0),a.fax?(As(),Ps("p",ule,[a.fax.isValid?(As(),Ps("a",{key:0,href:`fax:${a.fax.url}`,content:"item.faxNumber",itemprop:"fax"},ze(a.fax.text),9,cle)):(As(),Ps(Ss,{key:1},[qs(ze(a.fax.text),1)],64))])):Ws("",!0),n.item.email?(As(),Ps("p",dle,[Bs("a",{href:`mailto:${n.item.email}`,itemprop:"email"},ze(n.item.email),9,ple)],512)):Ws("",!0),a.link?(As(),Ps("p",hle,[Bs("a",{href:`${a.link.url}`,class:"u-link",itemprop:"link"},ze(a.link.text),9,fle)],512)):Ws("",!0)],4)):Ws("",!0)])):Ws("",!0)}]]),gle={key:3,class:"m-cta-card__cta",ref:"cta"},yle=Wee({name:"CtaCard",components:{Heading:jre,Icon:Xie,RichText:cre},props:{item:{type:Object,default:null},modifiers:{type:Array,default:null}},computed:{classes(){const e=["m-cta-card"];return this.modifiers&&this.modifiers.forEach((t=>{e.push(`m-cta-card--${t}`)})),e}}},[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("Heading"),l=Yr("RichText");return n.item?(As(),Ps("div",{key:0,class:Fe(a.classes)},[(As(),Os(Xr(n.item.href?"a":"div"),{href:n.item.href?n.item.href:null,class:"m-cta-card__inner"},{default:Ii((()=>[n.item.icon?(As(),Os(s,{key:0,name:n.item.icon,size:"large"},null,8,["name"])):Ws("",!0),n.item.title?(As(),Os(o,{key:1,id:n.item.id,level:n.item.headingLevel,class:"m-cta-card__title",ref:"title"},{default:Ii((()=>[qs(ze(n.item.title),1)])),_:1},8,["id","level"])):Ws("",!0),n.item.content?(As(),Os(l,{key:2,content:n.item.content,class:"m-cta-card__content",inline:"",ref:"content"},null,8,["content"])):Ws("",!0),n.item.href&&n.item.ctaText?(As(),Ps("span",gle,[t[0]||(t[0]=Bs("br",null,null,-1)),qs(" "+ze(n.item.ctaText),1)],512)):Ws("",!0),n.item.href?(As(),Os(s,{key:4,name:"arrowRight",size:24,"aria-hidden":"true"})):Ws("",!0)])),_:1},8,["href"]))],2)):Ws("",!0)}]]),vle={name:"EducationResourceCard",components:{GuiLink:rre,Heading:jre,ImageResponsive:vae,RichText:cre},props:{item:{type:Object,default:null},variableImageHeight:{type:Boolean,default:!1}},setup(){const e=Tn(null),{resized:t,resizedElementWidth:n}=Woe(e);return{element:e,resized:t,resizedElementWidth:n}},computed:{imagePreset(){const{size:e="medium"}=this.item;let t=`post_${e}`;return this.variableImageHeight&&(t+="_variable_height"),t}},mounted(){Object.keys(hae).includes(this.imagePreset)||console.warn(`Warning: Preset "${this.imagePreset}" is not defined in utils/imagePresets.json.`)}},ble={key:0,class:"m-education-resource-card"},_le=["data-variableImageHeight-container"],wle={key:0,class:"m-education-resource-card__fields"},Sle=Wee(vle,[["render",function(e,t,n,i,r,a){const s=Yr("ImageResponsive"),o=Yr("Heading"),l=Yr("GuiLink"),u=Yr("RichText");return n.item?(As(),Ps("div",ble,[Hs(l,{href:n.item.href},{default:Ii((()=>[Bs("div",{"data-variableImageHeight-container":!!n.variableImageHeight||null,style:Pe(i.resized?`max-width: ${i.resizedElementWidth}px`:""),class:"m-education-resource-card__image",ref:"element"},[n.item.image?(As(),Os(s,Zs({key:0},n.item.image,{heightResponsive:!0,size:a.imagePreset}),null,16,["size"])):Ws("",!0)],12,_le),n.item.subtitle?(As(),Os(o,{key:0,level:n.item.headingLevel,class:"m-education-resource-card__subtitle"},{default:Ii((()=>
100[qs(ze(n.item.subtitle),1)])),_:1},8,["level"])):Ws("",!0),n.item.title?(As(),Os(o,{key:1,level:n.item.headingLevel,class:"m-education-resource-card__title"},{default:Ii((()=>[qs(ze(n.item.title),1)])),_:1},8,["level"])):Ws("",!0)])),_:1},8,["href"]),(As(!0),Ps(Ss,null,ea(n.item.fields,(({label:e,values:t})=>(As(),Ps(Ss,null,[e&&t?(As(),Ps("span",wle,[Hs(u,{content:e,inline:!0,class:"m-education-resource-card__field-label"},null,8,["content"]),Hs(u,{content:t,inline:!0,class:"m-education-resource-card__field-value"},null,8,["content"])])):Ws("",!0)],64)))),256))])):Ws("",!0)}]]),Cle={key:0,class:"m-education-resource-tombstone-card"},kle={class:"m-education-resource-tombstone-card__label"},xle=Wee({name:"EducationResourceTombstoneCard",components:{RichText:cre},props:{item:{type:Object,default:null}},setup(){const e=Tn(null),{resized:t,resizedElementWidth:n}=Woe(e);return{element:e,resized:t,resizedElementWidth:n}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText");return n.item?(As(),Ps("dl",Cle,[(As(!0),Ps(Ss,null,ea(n.item,(({label:e,value:t})=>(As(),Ps(Ss,null,[Bs("dt",kle,ze(e),1),Bs("dd",null,[Hs(s,{content:t,class:"m-education-resource-tombstone-card__value"},null,8,["content"])])],64)))),256))])):Ws("",!0)}]]),Tle={class:"m-event-card"},Ele={key:0,class:"m-event-card__main"},Ale={class:"m-event-card__image"},Lle={key:1,class:"m-event-card__footer"},Ile={class:"m-event-card__meta--primary m-event-card__dates"},$le={key:0,class:"m-event-card__meta m-event-card__main-date"},Dle={key:1,class:"m-event-card__frequency"},Ple={key:0,class:"m-event-card__meta m-event-card__meta--secondary"},Ole={key:1,class:"m-event-card__cost"},Mle={class:"m-event-card__cost"},Rle={class:"m-event-card__cost_text"},Nle=Wee({name:"EventCard",components:{Heading:jre,Icon:Xie,ImageResponsive:vae,GuiLink:rre,RichText:cre},mixins:[Jie],props:{item:{type:Object,default:null}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),computed:{imagePreset(){const{size:e="large"}=this.item;return`post_${e}`}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("Heading"),l=Yr("ImageResponsive"),u=Yr("Icon"),c=Yr("GuiLink");return As(),Ps("section",Tle,[Hs(c,{class:"m-event-card__inner m-event-card__inner--has-image",href:n.item.href},{default:Ii((()=>[n.item.subtitle||n.item.title?(As(),Ps("div",Ele,[n.item.title?(As(),Os(o,{key:0,class:"m-event-card__title","data-testid":"m-event-card__title"},{default:Ii((()=>[Hs(s,{inline:!0,content:n.item.title},null,8,["content"])])),_:1})):Ws("",!0),n.item.subtitle?(As(),Os(s,{key:1,content:n.item.subtitle,class:"m-event-card__subtitle"},null,8,["content"])):Ws("",!0)])):Ws("",!0),Bs("div",Ale,[Hs(l,Zs(F({},n.item.image),{size:a.imagePreset}),null,16,["size"])]),n.item.metaPrimary?(As(),Ps("div",Lle,[Bs("div",Ile,[n.item.metaPrimary?(As(),Ps("span",$le,ze(n.item.metaPrimary),1)):Ws("",!0),n.item.frequency?(As(),Ps("span",Dle,ze(n.item.frequency),1)):Ws("",!0)]),n.item.metaSecondary?(As(),Ps("span",Ple,ze(n.item.metaSecondary),1)):Ws("",!0),n.item.cost?(As(),Ps("div",Ole,[Bs("span",Mle,[Hs(u,{name:"TicketBold",size:24})]),Bs("span",Rle,ze(n.item.cost),1)])):Ws("",!0)])):Ws("",!0)])),_:1},8,["href"])])}]]),Fle={name:"RecordMetadataField",components:{DelimitedFieldValues:Dre},props:{baseLocaleKey:{type:String,default:"m-record-metadata-field"},classes:{type:Array,required:!1,default:H((function(){return[]}),"default")},dataCy:{type:String,required:!1,default:void 0},dataCyValues:{type:String,required:!1,default:void 0},label:{type:String,required:!0},labelSuffix:{type:String,required:!1,default:"label_suffix"},modifier:{type:String,default:"horizontal",validation:H((e=>["horizontal","horizontal-card","vertical"].includes(e)),"validation")},headingLevel:{type:Number,required:!1,default:3},useHeading:{type:Boolean,required:!1,default:!0},useList:{type:Boolean,required:!1,default:!0},valueDelimiter:{type:String,required:!1,default:"; "},values:{type:[String,Array,Number,Boolean],required:!1,default:void 0}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data:H((()=>({labelId:br()})),"data"),computed:{classNames(){return[this.getClass("m-record-metadata-field")].concat(this.classes)}
100,headingTag(){return"h"+this.headingLevel},labelValue(){let e=Array.isArray(this.values)?this.values.length:1,t=this.translateCount(this.label,e),n=this.labelSuffix;return""!=this.labelSuffix.trim()&&-1===this.labelSuffix.indexOf(":")&&(n=this.translatePart(this.labelSuffix)),t+n}},methods:{getClass(e){return e+"--"+this.modifier}}},Ble=["data-testid"],Hle=Wee(Fle,[["render",function(e,t,n,i,r,a){const s=Yr("DelimitedFieldValues");return As(),Ps("div",{class:Fe(a.classNames),"data-testid":n.dataCy},[(As(),Os(Xr(n.useHeading?a.headingTag:"div"),{ref:"metadata-label",id:r.labelId,level:n.useHeading?n.headingLevel:null,class:Fe(a.getClass("m-record-metadata-field__label"))},{default:Ii((()=>[qs(ze(a.labelValue),1)])),_:1},8,["id","level","class"])),Bs("div",{ref:"metadata-value",class:Fe(a.getClass("m-record-metadata-field__value"))},[na(e.$slots,"default",{values:n.values,delimiter:n.valueDelimiter},(()=>[Hs(s,{values:n.values,"data-testid":n.dataCyValues,delimiter:n.valueDelimiter,"use-list":n.useList,"aria-label-id":r.labelId},null,8,["values","data-testid","delimiter","use-list","aria-label-id"])]))],2)],10,Ble)}]]),jle={class:"m-filter-card"},Ule={class:"m-filter-card__footer"},Vle={key:0,class:"m-filter-card__metadata"},qle={class:"m-filter-card__indicators"},zle={key:0,class:"m-filter-card__indicator-container"},Wle=Wee({name:"FilterCard",components:{GuiLink:rre,Heading:jre,Icon:Xie,ImageResponsive:vae,RecordMetadataField:Hle,RichText:cre},props:{item:{type:Object,default:null}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data(){return{digitalMaterialContainerText:this.translate("m-filter-card.contains_digital_material")}}},[["render",function(e,t,n,i,r,a){const s=Yr("ImageResponsive"),o=Yr("RichText"),l=Yr("Heading"),u=Yr("RecordMetadataField"),c=Yr("Icon");return As(),Ps("section",jle,[(As(),Os(Xr(n.item.href||n.item.route?"GuiLink":"div"),Zs(n.item,{class:"m-filter-card__inner"}),{default:Ii((()=>{var e;return[n.item.image?(As(),Os(s,Zs({key:0},n.item.image,{class:"m-filter-card__image",size:(null==(e=n.item.image)?void 0:e.size)||"post_xsmall_variable_height"}),null,16,["size"])):Ws("",!0),n.item.subtitle?(As(),Os(o,{key:1,content:n.item.subtitle,class:"m-filter-card__subtitle",ref:"subtitle"},null,8,["content"])):Ws("",!0),n.item.title?(As(),Os(l,{key:2,level:n.item.headingLevel,class:"m-filter-card__title",ref:"title"},{default:Ii((()=>[Hs(o,{class:"m-filter-card__title-underline",content:n.item.title,inline:""},null,8,["content"])])),_:1},8,["level"])):Ws("",!0),n.item.content?(As(),Os(o,{key:3,content:n.item.content,class:"m-filter-card__content",ref:"content"},null,8,["content"])):Ws("",!0),Bs("div",Ule,[n.item.metadataFields&&n.item.metadataFields.length?(As(),Ps("div",Vle,[(As(!0),Ps(Ss,null,ea(n.item.metadataFields,(e=>(As(),Os(u,Zs({ref_for:!0},e,{"use-list":!1,"use-header":!1,ref_for:!0,ref:"metadataField"}),null,16)))),256))])):Ws("",!0),Bs("div",qle,[n.item.containsDigitalMaterial?(As(),Ps("div",zle,[Hs(c,{title:r.digitalMaterialContainerText,class:"m-filter-card__indicator-icon","aria-hidden":"true",name:"imageContainer",ref:"indicator",size:"text"},null,8,["title"]),qs(" "+ze(r.digitalMaterialContainerText),1)])):Ws("",!0)])])]})),_:1},16))])}]]),Gle={class:"m-icon-card"},Kle={class:"m-icon-card__inner"},Yle={class:"m-icon-card__icon"},Zle={class:"m-icon-card__icon-inner"},Xle={class:"m-icon-card__main"},Qle=["aria-label"],Jle=Wee({name:"IconCard",components:{Heading:jre,Icon:Xie,RichText:cre},props:{item:{type:Object,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("Heading"),l=Yr("RichText");return As(),Ps("section",Gle,[Bs("div",Kle,[Bs("div",Yle,[Bs("span",Zle,[Bs("span",null,[Hs(s,{name:n.item.icon,"aria-hidden":"true"},null,8,["name"])])])]),Bs("div",Xle,[n.item.title?(As(),Os(o,{key:0,level:n.item.headingLevel,class:"m-icon-card__title",ref:"title"},{default:Ii((()=>[qs(ze(n.item.title),1)])),_:1},8,["level"])):Ws("",!0),n.item.iconAlt?(As(),Ps("span",{key:1,"aria-label":n.item.iconAlt,class:"visually-hidden",role:"img"},null,8,Qle)):Ws("",!0),Hs(l,{content:n.item.content,class:"m-icon-card__content",ref:"content"},null,8,["content"])])])])}]]),eue={class:"m-icon-links-card"},tue=Wee({name:"IconLinksCard",components:{Heading:jre,Icon:Xie,ListOfLinks:zre,RichText:cre},props:{item:{type:Object,default:H((()=>{}),"default")}}},[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("RichText"),l=Yr("Heading"),u=Yr("ListOfLinks");return As(),Ps("div",eue,[n.item.iconName?(As(),Os(s,{key:0,name:n.item.iconName,size:44},null,8,["name"])):Ws("",!0),n.item.title?(As(),Os(l,{key:1,level:5,id:n.item.id,class:"m-icon-links-card__title"},{default:Ii((()=>
100[Bs("span",null,[Hs(o,{inline:!0,content:n.item.title},null,8,["content"])])])),_:1},8,["id"])):Ws("",!0),n.item.links?(As(),Os(u,{key:2,class:"m-icon-links-card__links",links:n.item.links},null,8,["links"])):Ws("",!0)])}]]),nue={key:0,class:"m-info-block-card"},iue={class:"m-info-block-card__inner"},rue={key:0,class:"m-info-block-card__date"},aue={key:2,class:"m-info-block-card__location"},sue={key:3,class:"m-info-block-card__room"},oue={key:0,class:"m-info-block-card__current-meta"},lue={key:0,class:"m-info-block-card__cost"},uue={class:"m-info-block-card__cost"},cue={class:"m-info-block-card__cost_label"},due={key:1,class:"m-info-block-card__past"},pue=Wee({name:"InfoBlockCard",components:{Icon:Xie,GuiLink:rre,RichText:cre},props:{item:{type:Object,default:null}},computed:{}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("Icon"),l=Yr("GuiLink");return n.item?(As(),Ps("div",nue,[Bs("div",iue,[Bs("div",{class:Fe(n.item.isPartialMeta?"m-info-block-card__meta-partial":"m-info-block-card__meta-full")},[n.item.date?(As(),Ps("p",rue,ze(n.item.date),1)):Ws("",!0),n.item.agenda?(As(),Os(s,{key:1,class:"m-info-block-card__agenda",content:n.item.agenda},null,8,["content"])):Ws("",!0),n.item.location?(As(),Ps("p",aue,ze(n.item.location),1)):Ws("",!0),n.item.room?(As(),Ps("p",sue,ze(n.item.room),1)):Ws("",!0)],2)]),n.item.isPast?(As(),Ps("p",due,ze(n.item.pastText),1)):(As(),Ps("div",oue,[n.item.cost?(As(),Ps("div",lue,[Bs("span",uue,[Hs(o,{name:"ticketBold",size:24})]),Bs("span",cue,ze(n.item.cost),1)])):Ws("",!0),n.item.note?(As(),Os(s,{key:1,class:"m-info-block-card__note",content:n.item.note},null,8,["content"])):Ws("",!0),n.item.cta.href?(As(),Os(l,{key:2,class:"m-info-block-card__cta",href:n.item.cta.href,button:!0},{default:Ii((()=>[qs(ze(n.item.cta.text),1)])),_:1},8,["href"])):Ws("",!0)]))])):Ws("",!0)}]]),hue={class:"m-link-card"},fue=Wee({name:"LinkCard",components:{Heading:jre,GuiLink:rre},props:{item:{type:Object,default:H((()=>{}),"default")}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("GuiLink");return As(),Ps("div",hue,[Hs(s,{level:n.item.headingLevel,class:"m-link-card__heading"},{default:Ii((()=>[qs(ze(n.item.title),1)])),_:1},8,["level"]),Hs(o,Zs(n.item.link,{class:"m-link-card__link"}),{default:Ii((()=>[qs(ze(n.item.link.text),1)])),_:1},16)])}]]),mue={class:"m-location-card__inner"},gue={class:"m-location-card__main"},yue={key:0,class:"m-location-card__excerpt"},vue={class:"m-location-card__footer"},bue=Wee({name:"LocationCard",components:{Heading:jre,Icon:Xie,ListOfLinks:zre,OpenNowStatus:Wae},props:{item:{type:Object,default:null},modifiers:{type:Array,default:null}},data:H((()=>({uid:br()})),"data"),computed:{classes(){const e=["m-location-card"];return this.modifiers&&this.modifiers.forEach((t=>{e.push(`m-location-card--${t}`)})),e},itemList(){if(this.item)return this.item.links||this.item.items}}},[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("Heading"),l=Yr("OpenNowStatus"),u=Yr("ListOfLinks");return n.item?(As(),Ps("div",{key:0,class:Fe(a.classes)},[Bs("div",mue,[Bs("div",gue,[(As(),Os(Xr(n.item.href?"a":"div"),{href:n.item.href},{default:Ii((()=>[n.item.icon?(As(),Os(s,{key:0,name:n.item.icon},null,8,["name"])):Ws("",!0),n.item.title?(As(),Os(o,{key:1,ref:"title",id:n.item.linksTitle?"":r.uid,level:n.item.headingLevel?n.item.headingLevel:3,class:"m-location-card__title"},{default:Ii((()=>[qs(ze(n.item.title),1)])),_:1},8,["id","level"])):Ws("",!0)])),_:1},8,["href"])),Hs(l,{class:"m-location-card__status",location:n.item.locationName,emergencyClosure:n.item.emergencyClosure,openHours:n.item.openHours},null,8,["location","emergencyClosure","openHours"]),n.item.excerpt?(As(),Ps("p",yue,ze(n.item.excerpt),1)):Ws("",!0)]),Bs("div",vue,[n.item.linksTitle?(As(),Os(o,{key:0,ref:"linksTitle",id:r.uid,level:5,class:"m-location-card__links-title"},{default:Ii((()=>[qs(ze(n.item.linksTitle),1)])),_:1},8,["id"])):Ws("",!0),a.itemList?(As(),Os(u,{key:1,links:a.itemList,labelId:r.uid,modifiers:["space-before"]},null,8,["links","labelId"])):Ws("",!0)])])],2)):Ws("",!0)}]]),_ue={class:"m-menu-card__inner"},wue={class:"m-menu-card__main"},Sue={key:1,class:"m-menu-card__secondary-title"},Cue={class:"m-menu-card__footer"},kue=Wee({name:"MenuCard",components:{Heading:jre,ListOfLinks:zre},mixins:[Nse],props:{item:{type:Object,default:null},modifiers:{type:Array,default:null}},data:H((()=>({uid:br()})),"data"),computed:{classes(){const e=["m-menu-card"];
100return this.modifiers&&this.modifiers.forEach((t=>{e.push(`m-menu-card--${t}`)})),e},itemList(){if(this.item)return this.item.links||this.item.items}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("ListOfLinks");return n.item?(As(),Ps("div",{key:0,class:Fe(a.classes)},[Bs("div",_ue,[Bs("div",wue,[n.item.title?(As(),Os(s,{key:0,ref:"title",id:r.uid,level:e.headingLevel,class:Fe([{"visually-hidden":n.item.a11yTitle,"m-menu-card__title":!n.item.a11yTitle}])},{default:Ii((()=>[qs(ze(n.item.title),1)])),_:1},8,["id","level","class"])):Ws("",!0),n.item.a11yTitle?(As(),Ps("p",Sue,ze(n.item.title),1)):Ws("",!0)]),Bs("div",Cue,[a.itemList?(As(),Os(o,{key:0,links:a.itemList,labelId:r.uid,modifiers:["baseline-grid"]},null,8,["links","labelId"])):Ws("",!0)])])],2)):Ws("",!0)}]]),xue={key:1,class:"m-post-excerpt"},Tue=Wee({name:"PostExcerpt",components:{RichText:cre},mixins:[Qie],props:{content:{type:String,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText");return n.content?(As(),Os(s,{key:0,content:n.content,class:"m-post-excerpt"},null,8,["content"])):e.hasDefaultSlotContent?(As(),Ps("p",xue,[na(e.$slots,"default")])):Ws("",!0)}]]),Eue=["default","editorial","editorial-feature","editorial-inline","editorial-series","editorial-inline-feature"],Aue={name:"Post",components:{Credits:Ere,Heading:jre,Icon:Xie,ImageResponsive:vae,ListOfLinks:zre,MediaIndicator:Vae,GuiLink:rre,PostExcerpt:Tue,RichText:cre},mixins:[Jie,Qie],props:{baseLocaleKey:{type:String,default:"m-post"},credits:{type:String,default:null},excerpt:{type:String,default:null},id:{type:[Number,String],default:null},imageBorder:{type:Boolean,default:!1},isEmail:{type:Boolean,default:!1},route:{type:Object,default:H((()=>{}),"default")},titleRoute:{type:Object,default:H((()=>{}),"default")},title:{type:String,default:null},subtitle:{type:String,default:null},href:{type:String,default:null},metaPrimary:{type:String,default:null},metaPrimaryA11y:{type:String,default:null},metaPrimaryModifier:{type:String,default:null},metaSecondary:{type:String,default:null},metaSecondaryA11y:{type:String,default:null},modifier:{type:String,default:"small"},image:{type:Object,default:null},links:{type:[Object,Array],default:H((()=>({})),"default")},variableImageHeight:{type:Boolean,default:!1},ctaText:{type:String,default:null},titleFirst:{type:Boolean,default:!1},subtitleFirst:{type:Boolean,default:!1},headingLevel:{type:Number,default:3},button:{type:Object,default:null},titleHref:{type:String,default:null},postType:{type:String,default:"default",validator:H((e=>Eue.includes(e)),"validator")},mediaType:{type:String,default:null}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data(){return{externalLinkText:this.translatePart("external_link"),uid:br()}},computed:{hasExcerpt(){return this.excerpt||this.doesSlotHaveContent("excerpt")},hasExternalLink(){return this.href&&this.isExternal(this.href)||this.titleHref&&this.isExternal(this.titleHref)},hasLinks(){return null!=this.links.items&&this.links.items.length>0},hasPostLink(){return(this.href||this.route)&&!this.hasLinks},hasTitleLink(){return!this.href&&!this.route&&(this.titleHref||this.titleRoute)},headingId(){return`Post${this.uid}Heading`},classes(){const e=["m-post"];return this.modifier&&e.push(`m-post--${this.modifier}`),this.titleFirst&&e.push("m-post--title-first"),this.subtitleFirst&&e.push("m-post--subtitle-first"),this.postType&&e.push(`m-post--${this.postType}`),e},imageClasses(){const e=["m-post__image"];return this.imageBorder&&e.push("m-post__image--border"),e},imagePreset(){let e=`post_${this.modifier}`;return this.variableImageHeight&&(e+="_variable_height"),"editorial-inline"===this.postType&&(e="post_editorial_inline"),e},innerClasses(){const e=["m-post__inner"];return this.showImage&&e.push("m-post__inner--has-image"),e},metaClasses(){const e=["m-post__meta m-post__meta--primary"];return this.metaPrimaryModifier&&e.push(`m-post__meta--${this.metaPrimaryModifier}`),e},linkTarget(){if(!this.href&&!this.titleHref)return;const e=this.href||this.titleHref||null;return this.getLinkTarget(e)},showImage(){return!!this.image&&"body"!==this.modifier}},mounted(){Object.keys(hae).includes(this.imagePreset)||console.warn(`Warning: Preset "${this.imagePreset}" is not defined in utils/imagePresets.json.`)}},Lue={key:0,class:"m-post__main"},Iue={key:0,class:"visually-hidden"},$ue={key:1,class:"visually-hidden"},Due=["data-variableImageHeight-container"],Pue={key:1,class:"m-post__image-info"},Oue={key:2,class:"m-post__body"},Mue={key:3,class:"m-post__footer"},Rue=["href"],Nue={key:2,class:"m-post__cta-text"},Fue={class:"visually-hidden"},Bue={"aria-hidden":"true"},Hue={key:2,class:"visually-hidden"},jue={key:4,class:"m-post__meta m-post__meta--secondary"},Uue={class:"visually-hidden"},Vue={"aria-hidden":"true"},que={key:5,class:"m-post__meta m-post__meta--secondary"},zue={class:"visually-hidden"},Wue={"aria-hidden":"true"},Gue=["href"],Kue={key:4,class:"visually-hidden"},Yue=Wee(Aue,[["render",function(e,t,n,i,r,a){const s=Yr("MediaIndicator"),o=Yr("RichText"),l=Yr("Icon"),u=Yr("Heading"),c=Yr("ImageResponsive"),d=Yr("Credits"),p=Yr("PostExcerpt"),h=Yr("ListOfLinks");return As(),Ps("section",{class:Fe(a.classes),"data-testid":"m-post"},[(As(),Os(Xr(a.hasPostLink?"GuiLink":"div"),{class:Fe(a.innerClasses),href:n.href,target:a.linkTarget,to:n.route},{default:Ii((()=>[n.subtitle||n.title?(As(),Ps("div",Lue,[n.title?(As(),Os(u,{key:0,level:n.headingLevel,id:n.id||a.headingId,class:"m-post__title","data-testid":"m-post__title"},{default:Ii((()=>[(As(),Os(Xr(a.hasTitleLink?"GuiLink":"span"),{href:n.titleHref,to:n.titleRoute,target:a.linkTarget},{default:Ii((()=>[n.mediaType?(As(),Ps("span",Iue,[Hs(s,{offscreen:!0,type:n.mediaType},null,8,["type"]),t[0]||(t[0]=qs(":Â "))])):Ws("",!0),Bs("span",{class:Fe([{"m-post__title-underline":!n.ctaText}])}
100,[Hs(o,{inline:!0,content:n.title},null,8,["content"])],2),n.titleHref&&e.isExternal(n.titleHref)?(As(),Ps("span",$ue,ze(r.externalLinkText),1)):Ws("",!0),a.hasExternalLink?(As(),Os(l,{key:2,name:"outbound",size:"text","aria-hidden":"true"})):Ws("",!0)])),_:1},8,["href","to","target"]))])),_:1},8,["level","id"])):Ws("",!0),n.subtitle?(As(),Os(o,{key:1,content:n.subtitle,class:"m-post__subtitle"},null,8,["content"])):Ws("",!0)])):Ws("",!0),a.showImage?(As(),Ps("div",{key:1,"data-variableImageHeight-container":!!n.variableImageHeight||null,class:Fe(a.imageClasses)},[n.credits?Ws("",!0):(As(),Os(c,Zs({key:0},F({},n.image),{size:a.imagePreset}),null,16,["size"])),n.credits?(As(),Ps("div",Pue,[Hs(c,Zs(F({},n.image),{size:a.imagePreset}),null,16,["size"]),n.credits?(As(),Os(d,{key:0,ref:"credits",ariaLabel:"Caption for image:",ariaLabelledBy:`btn${this.uid} img${this.uid}`,class:"m-post__credits",hiddenText:e.hiddenText,id:`btn${this.uid}`},{default:Ii((()=>[Hs(o,{content:n.credits,inline:!0},null,8,["content"])])),_:1},8,["ariaLabelledBy","hiddenText","id"])):Ws("",!0)])):Ws("",!0)],10,Due)):Ws("",!0),a.hasExcerpt?(As(),Ps("div",Oue,[Hs(p,{content:n.excerpt,class:"m-post__excerpt"},{default:Ii((()=>[na(e.$slots,"excerpt")])),_:3},8,["content"])])):Ws("",!0),n.button||n.href&&n.ctaText||n.links.items||n.mediaType||n.metaPrimary||n.metaSecondary?(As(),Ps("div",Mue,[n.links.items?(As(),Os(h,{key:0,links:n.links.items,labelId:a.headingId,modifiers:["space-before"],withIcons:n.links.withIcons},null,8,["links","labelId","withIcons"])):Ws("",!0),n.button?(As(),Ps("a",{key:1,href:n.button.url,class:"m-post__cta-button"},ze(n.button.text),9,Rue)):Ws("",!0),n.href&&n.ctaText?(As(),Ps("span",Nue,[Bs("span",null,ze(n.ctaText),1)])):Ws("",!0),n.metaPrimary?(As(),Ps("span",{key:3,class:Fe(a.metaClasses)},[n.metaPrimaryA11y?(As(),Ps(Ss,{key:0},[Bs("span",Fue,ze(n.metaPrimaryA11y),1),Bs("span",Bue,ze(n.metaPrimary),1)],64)):(As(),Ps(Ss,{key:1},[qs(ze(n.metaPrimary),1)],64)),n.metaSecondary?(As(),Ps("span",Hue,", ")):Ws("",!0)],2)):Ws("",!0),n.metaSecondary&&!n.isEmail?(As(),Ps("span",jue,[n.metaSecondaryA11y?(As(),Ps(Ss,{key:0},[Bs("span",Uue,ze(n.metaSecondaryA11y),1),Bs("span",Vue,ze(n.metaSecondary),1)],64)):(As(),Ps(Ss,{key:1},[qs(ze(n.metaSecondary),1)],64))])):Ws("",!0),n.metaSecondary&&n.isEmail?(As(),Ps("span",que,[n.metaSecondaryA11y?(As(),Ps(Ss,{key:0},[Bs("span",zue,ze(n.metaSecondaryA11y),1),Bs("span",Wue,ze(n.metaSecondary),1)],64)):(As(),Ps("a",{key:1,href:`mailto:${n.metaSecondary}`},ze(n.metaSecondary),9,Gue))])):Ws("",!0),Hs(s,{type:n.mediaType,"aria-hidden":"true"},null,8,["type"])])):Ws("",!0),n.href&&e.isExternal(n.href)?(As(),Ps("span",Kue,ze(r.externalLinkText),1)):Ws("",!0)])),_:3},8,["class","href","target","to"]))],2)}]]),Zue=Wee({name:"PostCard",components:{Post:Yue},props:{item:{type:Object,default:null},isMasonry:{type:Boolean,default:!1},variableImageHeight:{type:Boolean,default:!1}}},[["render",function(e,t,n,i,r,a){const s=Yr("Post");return n.item?(As(),Os(s,Zs({key:0},F({},n.item),{variableImageHeight:n.variableImageHeight||n.isMasonry}),null,16,["variableImageHeight"])):Ws("",!0)}]]),Xue={key:2,class:"m-press-kit-card__cta"},Que=Wee({name:"PressKitCard",components:{Heading:jre,RichText:cre},props:{item:{type:Object,default:null},modifiers:{type:Array,default:null}},computed:{classes(){const e=["m-press-kit-card"];return this.modifiers&&this.modifiers.forEach((t=>{t.startsWith("s-bg--")?e.push(t):e.push(`m-press-kit-card--${t}`)})),e}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("RichText");return n.item?(As(),Ps("div",{key:0,class:Fe(a.classes)},[(As(),Os(Xr(n.item.href?"a":"div"),{href:n.item.href?n.item.href:null,class:"m-press-kit-card__inner"},{default:Ii((()=>[n.item.title?(As(),Os(s,{key:0,ref:"title",id:n.item.id,level:n.item.headingLevel,class:"m-press-kit-card__title"},{default:Ii((()=>[qs(ze(n.item.title),1)])),_:1},8,["id","level"])):Ws("",!0),n.item.content?(As(),Os(o,{key:1,content:n.item.content,class:"m-press-kit-card__content",inline:""},null,8,["content"])):Ws("",!0),n.item.href&&n.item.ctaText?(As(),Ps("span",Xue,ze(n.item.ctaText),1)):Ws("",!0)])),_:1},8,["href"]))],2)):Ws("",!0)}]]),Jue={key:0,class:"m-press-kit-footer-card"},ece={key:1,class:"m-press-kit-footer-card__cta"},tce=Wee({name:"PressKitFooterCard",components:{GuiLink:rre,RichText:cre},props:{item:{type:Object,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("GuiLink");return n.item?(As(),Ps("div",Jue,[n.item.content?(As(),Os(s,{key:0,content:n.item.content,class:"m-press-kit-footer-card__content"},null,8,["content"])):Ws("",!0),n.item.ctaText&&n.item.href?(As(),Ps("p",ece,[Hs(o,{href:n.item.href},{default:Ii((()=>[qs(ze(n.item.ctaText),1)])),_:1},8,["href"])])):Ws("",!0)])):Ws("",!0)}]]),nce={name:"ProjectCard",components:{GuiLink:rre,Heading:jre,ImageResponsive:vae,RichText:cre},props:{item:{type:Object,default:null},variableImageHeight:{type:Boolean,default:!1}},setup(){const e=Tn(null),{resized:t,resizedElementWidth:n}=Woe(e);return{element:e,resized:t,resizedElementWidth:n}},computed:{imagePreset(){const{size:e="medium"}=this.item;let t=`project_${e}`;return this.variableImageHeight&&(t+="_variable_height"),t}},mounted(){Object.keys(hae).includes(this.imagePreset)||console.warn(`Warning: Preset "${this.imagePreset}" is not defined in utils/imagePresets.json.`)}},ice={key:0,class:"m-project-card"},rce=["data-variableImageHeight-container"],ace=Wee({name:"Card",components:{AccordionItemCard:zoe,ArtworkCard:Goe,BiographyCard:Yoe,BodyTextCard:nle,ContactCard:mle,CtaCard:yle,EducationResourceCard:Sle,EducationResourceTombstoneCard:xle,EventCard:Nle,FilterCard:Wle,FooterCard:jse,IconCard:Jle,IconLinksCard:tue,InfoBlockCard:pue,LinkCard:fue,LocationCard:bue,MenuCard:kue,PostCard:Zue,PressKitCard:Que,PressKitFooterCard:tce,ProjectCard:Wee(nce,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("GuiLink"),l=Yr("RichText"),u=Yr("ImageResponsive");return n.item?(As(),Ps("div",ice,[Hs(o,{href:n.item.href},{default:Ii((()=>[n.item.title?(As(),Os(s,{key:0,level:n.item.headingLevel,class:"m-project-card__title"},{default:Ii((()=>
100[qs(ze(n.item.title),1)])),_:1},8,["level"])):Ws("",!0)])),_:1},8,["href"]),n.item.content?(As(),Os(l,{key:0,content:n.item.content,class:"m-project-card__content"},null,8,["content"])):Ws("",!0),Bs("div",{"data-variableImageHeight-container":!!n.variableImageHeight||null,class:"m-project-card__image",ref:"element",style:Pe(i.resized?`max-width: ${i.resizedElementWidth}px`:"")},[n.item.image?(As(),Os(u,Zs({key:0},F({},n.item.image),{heightResponsive:!0,size:a.imagePreset}),null,16,["size"])):Ws("",!0)],12,rce)])):Ws("",!0)}]]),PublicationCard:Wee({name:"PublicationCard",components:{Post:Yue},props:{item:{type:Object,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("Post");return n.item?(As(),Os(s,Zs({key:0},F({},n.item),{titleFirst:!0,variableImageHeight:!0,class:"m-publication-card"}),null,16)):Ws("",!0)}]])},props:{cardName:{type:String,required:!0},isMasonry:{type:Boolean,default:!1},item:{type:Object,default:null},modifiers:{type:Array,default:H((()=>[]),"default")},variableImageHeight:{type:Boolean,default:!1}},data:H((()=>({eventBus:Rse()})),"data"),methods:{handleOpen({$event:e,id:t}){this.eventBus.emit("cardOpen",{$event:e,id:t})}}},[["render",function(e,t,n,i,r,a){return n.cardName?(As(),Os(Xr(n.cardName),Zs({key:0},e.$props,{onOpen:a.handleOpen}),null,16,["onOpen"])):Ws("",!0)}]]),sce={name:"Panel",mixins:[nte,Jie],components:{Card:ace,FocusTrap:ov,Heading:jre,Icon:Xie},props:{linksPrimary:{type:Object,default:null},linksSecondary:{type:Object,default:null},title:{type:Object,default:null},active:{type:Boolean,default:!1}},emits:["panelClose"],data(){return{uid:br(),label:this.title&&this.title.text?`${this.title.text} Navigation`:null}},computed:{items(){return[...this.linksPrimary.items,...this.linksSecondary.items]},navLabel(){if(this.label)return this.label.replace(/( [nN]avigation)/g,"")},navLabelId(){if(this.label)return`${this.label.replace(/\s+/g,"_").toLowerCase()}_${this.uid}`},initialFocusElement(){return this.$refs.close}},methods:{isActiveLink(e){if(e)return window.location.pathname.replace(/\//gi,"")===e.replace(/\//gi,"")},activeLinkAria(e){return this.isActiveLink(e)?"page":null},close(){this.$emit("panelClose")}}},oce={class:"g-mobile-navigation__inner gui-container"},lce=["tabindex"],uce=["aria-labelledby"],cce=["href","aria-current","tabindex"],dce=Wee(sce,[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("Heading"),l=Yr("FocusTrap");return As(),Ps("div",{class:Fe(["g-mobile-navigation__panel",{"g-mobile-navigation__panel--active":n.active}])},[Hs(l,{active:n.active,escapeDeactivates:!1,initialFocus:H((()=>e.$refs.close),"initialFocus"),returnFocusOnDeactivate:!0},{default:Ii((()=>[Bs("div",oce,[Bs("button",{class:"g-mobile-navigation__back",ref:"close",onClick:t[0]||(t[0]=(...e)=>a.close&&a.close(...e)),tabindex:n.active?null:"-1"},[Hs(s,{name:"ContractLeft600"}),t[1]||(t[1]=qs(" Main menu "))],8,lce),n.title.text?(As(),Os(o,{key:0,id:a.navLabelId,level:2,class:"g-mobile-navigation__panel-title"},{default:Ii((()=>[Bs("span",null,ze(n.title.text),1)])),_:1},8,["id"])):Ws("",!0),Bs("ul",{"aria-labelledby":a.navLabelId,class:"g-mobile-navigation__panel-links"},[a.items?(As(!0),Ps(Ss,{key:0},ea(a.items,((t,i)=>(As(),Ps("li",{key:i},[Bs("a",{href:e.withBaseUrl(t.url),"aria-current":a.activeLinkAria(t.url),tabindex:n.active?null:"-1"},[Bs("span",null,ze(t.text),1)],8,cce)])))),128)):Ws("",!0)],8,uce)])])),_:1},8,["active","initialFocus"])],2)}]]),pce={name:"MobileNavigation",components:{GuiLink:rre,Icon:Xie,Logo:Tae,Modal:Poe,Panel:dce},mixins:[Moe,nte,Noe],props:{primaryItems:{type:Array,default:null},secondaryItems:{type:Array,default:null},modifiers:{type:Array,default:null},label:{type:String,default:null},hasSearch:{type:Boolean,default:!1}},emits:["searchTriggerMouseover","searchTriggerMouseout"],data:H((()=>({active:!1,activeClass:!1,eventBus:Rse(),id:"mobileNavModal",isOpen:null,modalHeading:"Mobile Navigation"})),"data"),mounted(){window.addEventListener("resize",this.handleWindowResize)},unmount(){window.removeEventListener("resize",this.handleWindowResize)},computed:{initialFocusElement(){return this.$refs.modalClose}},methods:{activeLinkAria:e=>!lre&&(window.location.pathname.replace(/\//gi,"")===e.replace(/\//gi,"")?"page":null),handlePrimaryNavLinkClick({dropdown:e,overlay:t},n,i){t&&(i.preventDefault(),this.triggerNavOverlay(t,i)),e&&this.togglePanel(n)},handleWindowResize(){!this.isSmallMinus()&&this.active&&this.closeNav()},openNav(){this.triggerModalOpen(this.id),this.active=!0,this.$nextTick((()=>{setTimeout((()=>this.$refs.modalClose.focus()))})),this.eventBus.emit("mobileNavToggle",!0)}
100,closeNav(){this.triggerModalClose(this.id)},toggleNav(){this.active?this.closeNav():this.openNav()},triggerNavOverlay(e,t){if(!e)return;const n=`navOverlay${e}`;this.triggerModalOpen(n,t)},togglePanel(e){this.isOpen=this.isOpen!==e?e:null},setClass(){setTimeout((()=>{this.activeClass=this.active}),0)},closeModal(){this.isOpen=null,this.active=!1,this.activeClass=!1,this.eventBus.emit("mobileNavToggle",!1),setTimeout((()=>{this.$refs.toggle.focus()}),5)}}},hce={"data-testid":"g-mobile-navigation"},fce=["aria-expanded"],mce=["aria-expanded"],gce={class:"g-header__container"},yce={class:"g-header__inner gui-container"},vce={class:"g-header__logo"},bce=["href"],_ce={class:"g-mobile-navigation__inner"},wce={class:"g-mobile-navigation__nav g-mobile-navigation__nav--primary","aria-label":"Mobile Primary"},Sce={"aria-labelledby":"mobileNavPrimary"},Cce={key:0},kce={class:"g-mobile-navigation__nav g-mobile-navigation__nav--secondary","aria-label":"Mobile Secondary"},xce={"aria-labelledby":"mobileNavSecondary"},Tce=["href","aria-current"],Ece=Wee(pce,[["render",function(e,t,n,i,r,a){const s=Yr("Logo"),o=Yr("Icon"),l=Yr("Panel"),u=Yr("Modal");return As(),Ps("div",hce,[Bs("button",{class:Fe(["g-mobile-navigation__toggle",{"g-mobile-navigation__toggle--active":r.active}]),type:"button","aria-label":"Menu","aria-expanded":r.active?"true":"false",onClick:t[0]||(t[0]=(...e)=>a.toggleNav&&a.toggleNav(...e)),ref:"toggle"},t[4]||(t[4]=[Bs("span",{class:"g-mobile-navigation__hamburger"},[Bs("span")],-1)]),10,fce),(As(),Os(u,{key:r.id,a11yHeading:r.modalHeading,class:Fe(["g-mobile-navigation",{"g-mobile-navigation--active":r.activeClass}]),showCloseButton:!1,focusSelector:a.initialFocusElement,id:r.id,onAfterOpen:a.setClass,onAfterClose:a.closeModal},{default:Ii((()=>[Bs("button",{ref:"modalClose",class:Fe(["g-mobile-navigation__toggle",{"g-mobile-navigation__toggle--active":r.active}]),type:"button","aria-label":"Menu","aria-expanded":r.active?"true":"false",onClick:t[1]||(t[1]=(...e)=>a.toggleNav&&a.toggleNav(...e))},t[5]||(t[5]=[Bs("span",{class:"g-mobile-navigation__hamburger"},[Bs("span")],-1)]),10,mce),Bs("div",gce,[Bs("div",yce,[Bs("div",vce,[Bs("a",{href:e.baseUrl,"aria-label":"Getty"},[Hs(s)],8,bce)]),Bs("button",{"aria-label":"Open Search",class:"g-header__search","data-testid":"g-search-icon",onClick:t[2]||(t[2]=t=>e.triggerModalOpen("searchOverlay",t))},[Hs(o,{name:"search"})])])]),Bs("div",_ce,[Bs("nav",wce,[t[6]||(t[6]=Bs("h2",{id:"mobileNavPrimary",class:"visually-hidden"}," Mobile Primary Navigation ",-1)),Bs("ul",Sce,[(As(!0),Ps(Ss,null,ea(n.primaryItems,((n,i)=>(As(),Ps(Ss,{key:i},[n.mobile?Ws("",!0):(As(),Ps("li",Cce,[(As(),Os(Xr(n.dropdown?"button":"a"),{href:e.withBaseUrl(n.url),"aria-current":a.activeLinkAria(n.url),"aria-expanded":n.dropdown&&(r.isOpen===i?"true":"false"),onClick:H((e=>a.handlePrimaryNavLinkClick(n,i,e)),"onClick")},{default:Ii((()=>[Bs("span",null,ze(n.text),1),n.overlay||n.dropdown?(As(),Os(o,{key:0,name:"ExpandRight600"})):Ws("",!0)])),_:2},1032,["href","aria-current","aria-expanded","onClick"])),n.dropdown?(As(),Os(l,Zs({key:0,ref_for:!0},n.dropdown,{active:r.isOpen===i,"aria-hidden":r.isOpen===i?"false":"true",onPanelClose:t[3]||(t[3]=e=>r.isOpen=null)}),null,16,["active","aria-hidden"])):Ws("",!0)]))],64)))),128))])]),Bs("nav",kce,[t[7]||(t[7]=Bs("h2",{id:"mobileNavSecondary",class:"visually-hidden"}," Mobile Secondary Navigation ",-1)),Bs("ul",xce,[(As(!0),Ps(Ss,null,ea(n.secondaryItems,((t,n)=>(As(),Ps("li",{key:n},[Bs("a",{href:e.withBaseUrl(t.url),"aria-current":a.activeLinkAria(t.url)},ze(t.text),9,Tce)])))),128))])])])])),_:1},8,["a11yHeading","class","focusSelector","id","onAfterOpen","onAfterClose"]))])}]]),Ace={class:"m-link-grid"},Lce={class:"m-link-grid__inner"},Ice=["id"],$ce={class:"m-link-grid__aside"},Dce=["aria-owns"],Pce={key:0,class:"m-link-grid__list"},Oce=["id"],Mce=["aria-labelledby"],Rce=["id"],Nce={key:1,class:"m-link-grid__list"},Fce=["id"],Bce=["aria-labelledby"],Hce=["id"],jce=Wee({name:"LinkGrid",components:{GuiLink:rre},props:{linkListPrimary:{type:Object,default:null},linkListSecondary:{type:Object,default:null}},data:H((()=>({labelID:`linkGrid${br()}Label`,ids:[],uid:null,primaryLabelId:null,primaryListDefaultTitle:"Primary links",secondaryLabelId:null,secondaryListDefaultTitle:"Secondary links"})),"data"),mounted(){const e=br();this.uid=e,this.primaryLabelId=`linkGrid${e}PrimaryTitle`,this.secondaryLabelId=`linkGrid${e}SecondaryTitle`},computed:{listItemIds(){let e=[];return this.linkListPrimary&&this.linkListPrimary.items&&this.linkListPrimary.items.forEac
100h(((t,n)=>{e.push(`primary-${n}-${this.uid}`)})),this.linkListSecondary&&this.linkListSecondary.items&&this.linkListSecondary.items.forEach(((t,n)=>{e.push(`secondary-${n}-${this.uid}`)})),e.join(" ")},primaryLinkListTitle(){return this.linkListPrimary.title||this.linkListPrimary.a11yTitle||this.primaryListDefaultTitle},primaryLinkListTitleClasses(){const e=["m-link-grid__list-title"];return this.linkListPrimary.title||e.push("visually-hidden"),e},secondaryLinkListTitle(){return this.linkListSecondary.title||this.linkListSecondary.a11yTitle||this.secondaryListDefaultTitle},secondaryLinkListTitleClasses(){const e=["m-link-grid__list-title"];return this.linkListSecondary.title||e.push("visually-hidden"),e}}},[["render",function(e,t,n,i,r,a){const s=Yr("GuiLink");return As(),Ps("div",Ace,[Bs("div",Lce,[Bs("div",{class:"m-link-grid__main",id:r.labelID},[na(e.$slots,"default")],8,Ice),Bs("div",$ce,[Bs("div",{class:"m-link-grid__lists","aria-owns":a.listItemIds},[n.linkListPrimary?(As(),Ps("div",Pce,[a.primaryLinkListTitle?(As(),Ps("h3",{key:0,id:r.primaryLabelId,class:Fe(a.primaryLinkListTitleClasses)},ze(a.primaryLinkListTitle),11,Oce)):Ws("",!0),Bs("ul",{class:"m-link-grid__items","aria-labelledby":r.primaryLabelId},[(As(!0),Ps(Ss,null,ea(n.linkListPrimary.items,((e,t)=>(As(),Ps("li",{key:t,id:`primary-${t}-${r.uid}`},[Hs(s,{href:e.url},{default:Ii((()=>[qs(ze(e.text),1)])),_:2},1032,["href"])],8,Rce)))),128))],8,Mce)])):Ws("",!0),n.linkListSecondary?(As(),Ps("div",Nce,[a.secondaryLinkListTitle?(As(),Ps("h3",{key:0,id:r.secondaryLabelId,class:Fe(a.secondaryLinkListTitleClasses)},ze(a.secondaryLinkListTitle),11,Fce)):Ws("",!0),Bs("ul",{class:"m-link-grid__items","aria-labelledby":r.secondaryLabelId},[(As(!0),Ps(Ss,null,ea(n.linkListSecondary.items,((e,t)=>(As(),Ps("li",{key:t,id:`secondary-${t}-${r.uid}`},[Hs(s,{href:e.url},{default:Ii((()=>[qs(ze(e.text),1)])),_:2},1032,["href"])],8,Hce)))),128))],8,Bce)])):Ws("",!0)],8,Dce)])])])}]]),Uce={name:"DropdownMenu",mixins:[nte,Jie],components:{Card:ace,Heading:jre,LinkGrid:jce},props:{active:{type:Boolean,default:!1},headingLevel:{type:Number,default:2},linksPrimary:{type:Object,default:null},linksSecondary:{type:Object,default:null},title:{type:Object,default:null}},emits:["dropdownClose"],data(){return{uid:br(),label:this.title&&this.title.text?`${this.title.text} Navigation`:null}},mounted(){window.addEventListener("scroll",this.handleScroll),this.focusable.forEach((e=>{e.setAttribute("tabindex","-1")}))},unmounted(){window.removeEventListener("scroll",this.handleScroll)},computed:{navLabel(){if(this.label)return this.label.replace(/( [nN]avigation)/g,"")},navLabelId(){if(this.label)return`${this.label.replace(/\s+/g,"_").toLowerCase()}_${this.uid}`},focusable(){return this.$el.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')}},watch:{active:H((function(e){this.focusable.forEach((t=>{e?t.removeAttribute("tabindex"):t.setAttribute("tabindex","-1")}))}),"active")},methods:{isActiveLink:H((e=>window.location.pathname.replace(/\//gi,"")===e.replace(/\//gi,"")),"isActiveLink"),activeLinkAria(e){return this.isActiveLink(e)?"page":null},activeLinkClass(e){return this.isActiveLink(e)?"m-navigation__link--active":null},closeDropdown(e){this.$refs.menu.contains(e.target)||this.$emit("dropdownClose")},handleScroll(){this.$emit("dropdownClose")}}},Vce={class:"m-navigation__dropdown",ref:"menu"},qce={class:"m-navigation__container"},zce={class:"m-navigation__dropdown-inner"},Wce={name:"Navigation",mixins:[nte,Noe],components:{DropdownMenu:Wee(Uce,[["render",function(e,t,n,i,r,a){const s=Yr("LinkGrid");return As(),Ps("div",{class:"m-navigation__overlay",onClick:t[0]||(t[0]=(...e)=>a.closeDropdown&&a.closeDropdown(...e))},[Bs("div",Vce,[Bs("div",qce,[Bs("div",zce,[Hs(s,{linkListPrimary:n.linksPrimary,linkListSecondary:n.linksSecondary},{default:Ii((()=>[n.title.text?(As(),Os(Xr(`h${n.headingLevel}`),{key:0,id:a.navLabelId,class:"m-navigation__dropdown-title"},{default:Ii((()=>[qs(ze(n.title.text),1)])),_:1},8,["id"])):Ws("",!0)])),_:1},8,["linkListPrimary","linkListSecondary"])])])],512)])}]]),Icon:Xie},props:{items:{type:Array,default:null},modifiers:{type:Array,default:null},label:{type:String,default:null},dropdownOpen:{type:Boolean,default:null}},data:H((()=>({_items:[],eventBus:Rse(),isOpen:null,uid:br()})),"data"),mounted(){this.$forceUpdate(),document.addEventListener("keydown",(e=>{"Escape"===e.key&&null!==this.isOpen&&(this.isOpen=null)})),this._items=this.items.map((e=>B(F({},e),{activeLinkAria:this.activeLinkAria(e.url),activeLinkClass:this.activeLinkClass(e.url)})))},computed:{classes(){const e=["m-navigation"];
100return this.modifiers&&this.modifiers.forEach((t=>{e.push(`m-navigation--${t}`)})),e},navLabel(){if(this.label)return this.label.replace(/( [nN]avigation)/g,"")},labelID(){return this.label?`${encodeURI(this.label.replace(/\s+/,"_"))}${this.uid}`:null},hideOnMobile(){return this.items.filter((e=>e.mobile)).length<=0}},watch:{dropdownOpen:H((function(e){this.isOpen=e}),"dropdownOpen")},methods:{isActiveLink:H((e=>!lre()&&window.location.pathname.replace(/\//gi,"")===e.replace(/\//gi,"")),"isActiveLink"),activeLinkAria(e){return this.isActiveLink(e)?"page":null},activeLinkClass(e){return this.isActiveLink(e)?"m-navigation__link--active":null},triggerNavOverlay(e,t){if(!e)return;const n=`navOverlay${e}`;this.triggerModalOpen(n,t)},toggleOpen(e){this.isOpen=this.isOpen!==e?e:null,this.eventBus.emit("dropdownToggle",null!==this.isOpen)},handleDropdownClose(){this.isOpen=null,this.eventBus.emit("dropdownToggle",!1)}}},Gce=["aria-labelledby"],Kce=["id"],Yce={class:"m-navigation__items"},Zce=Wee(Wce,[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("DropdownMenu");return n.items?(As(),Ps("nav",{key:0,class:Fe([...a.classes,{"m-navigation--hide-mobile":a.hideOnMobile}]),"aria-labelledby":a.labelID,role:"navigation"},[n.label?(As(),Ps("span",{key:0,id:a.labelID,class:"visually-hidden"},ze(n.label),9,Kce)):Ws("",!0),Bs("ul",Yce,[(As(!0),Ps(Ss,null,ea(r._items,((t,n)=>(As(),Ps("li",{ref_for:!0,ref:"navItem",key:n,class:Fe(["m-navigation__item",{"m-navigation__item--has-icon":t.icon},{"m-navigation__item--show-mobile":t.mobile},{"m-navigation__item--has-overlay":t.overlay},{"m-navigation__item--has-dropdown":t.dropdown}])},[(As(),Os(Xr(t.dropdown?"button":"a"),{href:e.withBaseUrl(t.url),"aria-current":t.activeLinkAria,"aria-label":t.icon?t.text:null,"aria-expanded":t.dropdown&&(r.isOpen===n?"true":"false"),class:Fe([{"s-open":r.isOpen===n},t.activeLinkClass]),ref_for:!0,ref:t.dropdown&&"dropdownBtn",onClick:H((e=>a.toggleOpen(n)),"onClick")},{default:Ii((()=>[t.icon?(As(),Os(s,{key:0,ref_for:!0,ref:"itemIcon",name:t.icon},null,8,["name"])):t.dropdown||t.overlay?(As(),Ps(Ss,{key:1},[qs(ze(t.text)+" ",1),Hs(s,{ref_for:!0,ref:"itemIcon",name:"caret",class:"m-navigation__item-expand",viewBoxDimensions:{width:16,height:16},"aria-hidden":!0},null,512)],64)):(As(),Ps(Ss,{key:2},[qs(ze(t.text),1)],64))])),_:2},1032,["href","aria-current","aria-label","aria-expanded","class","onClick"])),t.dropdown?(As(),Os(o,Zs({key:0,ref_for:!0},t.dropdown,{active:r.isOpen===n,"aria-hidden":r.isOpen===n?"false":"true",onDropdownClose:a.handleDropdownClose}),null,16,["active","aria-hidden","onDropdownClose"])):Ws("",!0)],2)))),128))])],10,Gce)):Ws("",!0)}]]),Xce={data:H((()=>({alertsContainer:null,alertsHeight:0,alertsObserver:null,debouncedResize:null})),"data"),computed:{alertsHeightVar(){return{"--alerts-height":`${this.alertsHeight}px`}}},mounted(){this.debouncedResize=ete(this.setAlertsHeight),window.addEventListener("resize",this.debouncedResize)},methods:{alertsObserverInit(e){this.$nextTick((()=>{this.setAlertsHeight(),window.MutationObserver&&this.alertsContainer&&(this.alertsObserver=new MutationObserver((()=>{this.observeAlerts(e)})),this.alertsObserver.observe(this.alertsContainer,{childList:!0}))}))},observeAlerts(e){this.setAlertsHeight(),e&&e(),this.alertsContainer.children.length||this.alertsObserver.disconnect()},setAlertsHeight(){this.alertsContainer||(this.alertsContainer=document.querySelector(".g-alerts-list ul")),this.alertsContainer&&(this.alertsHeight=this.alertsContainer.clientHeight)},unmount(){this.alertsObserver.disconnect()}}},Qce={data:H((()=>({debouncedResize:null,globalHeader:null,headerHeight:0,headerVisible:!1})),"data"),computed:{headerHeightVar(){if(this.globalHeader)return{"--header-height":`${this.headerHeight}px`}}},methods:{getHeaderHeight(){this.globalHeader&&this.$nextTick((()=>{this.headerHeight=this.globalHeader.getBoundingClientRect().height}))},getHeaderVisibility(){this.globalHeader&&(this.headerVisible=!this.globalHeader.classList.contains("g-header--hide"))}},mounted(){document&&(this.globalHeader=document.querySelector(".g-header")),this.getHeaderHeight(),this.debouncedResize=ete(this.getHeaderHeight),window.addEventListener("resize",this.debouncedResize)}},Jce={name:"GuiHeader",components:{AlertsList:$se,Icon:Xie,Logo:Tae,MobileNavigation:Ece,Navigation:Zce},mixins:[Xce,Qce,Noe],props:{alerts:{type:Array,default:H((()=>[]),"default")},baseUrl:{type:String,default:"/"},displayThreshold:{type:Number,default:void 0},forceHideLogo:{type:Boolean,default:!1},forceOnDark:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},hasSearch:{type:Boolean,default:!1},primaryNav:{type:Array,default:null},secondaryNav:{type:Array,default:null},sticky:{type:Boolean,default:!1}},emits:["dismiss","searchTriggerMouseout","searchTriggerMouseover"],data(){return{dropdownOpen:null,eventBus:Rse(),isFilled:!1,isOnDark:!1,isOpen:!1,isOverHero:!1,lightColors:["black","grey","blue","magenta","orange","sunset","garden","garden-light","sky","navy","bronze"],logoHidden:this.forceHideLogo,mobileNavActive:!1,scrollBuffer:100,scrollLastScrollDownPosition:0,scrollPosition:-1,scrollUp:!1,searchTriggerHover:!1}},computed:{classes(){const e="g-header",t=[e],n=H((n=>{t.push(`${e}--${n}`)}),"t");return(this.forceOnDark||this.isOnDark)&&n("on-dark"),this.gradient&&n("gradient"),this.isAlertsListHidden&&n("hide-alerts"),this.isHeaderHidden&&n("hide"),this.searchTriggerHover&&n("search-hover"),this.showHeaderFill&&n("fill"),this.sticky&&n("sticky"),t},hideHeaderOnScrollUp(){return this.displayThreshold&&this.displayThreshold<this.scrollPosition&&this.scrollUp&&!this.isOpen},isAlertsListHidden(){return this.scrollPosition>0&&this.scrollUp&&!this.isOpen&&!this.isHeaderHidden},isHeaderHidden(){return!(this.scrollPosition<=0||(this.scrollUp||this.isOpen)&&!this.hideHeaderOnScrollUp)},searchPath(){const e="/search/";return"/"==this.baseUrl?e:new URL(e,this.baseUrl).href}
100,showHeaderFill(){return!this.isOverHero&&this.scrollPosition>this.scrollBuffer||this.mobileNavActive||this.isFilled}},provide(){return{componentBaseUrl:this.baseUrl}},mounted(){window.addEventListener("scroll",this.handleScroll),this.eventBus.on("dropdownToggle",this.handleDropdownToggle),this.eventBus.on("hideLogo",this.toggleLogo),this.eventBus.on("mobileNavToggle",this.handleMobileNavToggle),this.eventBus.on("scrollOverHero",this.overHero),this.eventBus.on("searchTriggerMouseout",this.searchTriggerMouseout),this.eventBus.on("searchTriggerMouseover",this.searchTriggerMouseover),this.eventBus.on("updateHeaderColor",this.updateHeaderColor),this.alertsObserverInit(this.getHeaderHeight)},unmounted(){window.removeEventListener("scroll",this.handleScroll)},methods:{dismissMessage(e){this.$emit("dismiss",e)},handleDropdownToggle(e){this.isFilled=e,this.isOpen=e},handleFocusin(e){this.$el.contains(e.relatedTarget)&&(this.scrollUp=!0)},handleFocusout(e){const t=document.documentElement.contains(e.relatedTarget)&&!this.$el.contains(e.relatedTarget);this.dropdownOpen=!t&&null},handleMobileNavToggle(e){this.mobileNavActive=e},handleScroll(){window.scrollY>this.scrollPosition?(this.scrollLastScrollDownPosition=window.scrollY,this.scrollUp=!1):window.scrollY<=this.scrollLastScrollDownPosition-this.scrollBuffer&&(this.scrollUp=!0),this.scrollPosition=window.scrollY,this.isOpen=!1},overHero(e){this.isOverHero=e},searchTriggerMouseout(){this.searchTriggerHover=!1},searchTriggerMouseover(){this.searchTriggerHover=!0},toggleLogo(e){this.logoHidden=e},updateHeaderColor(e){this.isOnDark=this.lightColors.includes(e)}}},ede={key:1,id:"after-skiplink"},tde={class:"g-header__container gui-container"},nde={class:"g-header__inner"},ide=["href","tabindex"],rde={class:"g-header__nav"},ade={key:0,class:"g-header__nav-row"},sde={class:"g-header__nav-row"},ode=["href"],lde=Wee(Jce,[["render",function(e,t,n,i,r,a){const s=Yr("AlertsList"),o=Yr("Logo"),l=Yr("Navigation"),u=Yr("Icon"),c=Yr("MobileNavigation");return As(),Ps("header",{class:Fe(a.classes),style:Pe(F(F({},e.alertsHeightVar),e.headerHeightVar)),"data-testid":"g-header",role:"banner",onFocusin:t[0]||(t[0]=(...e)=>a.handleFocusin&&a.handleFocusin(...e)),onFocusout:t[1]||(t[1]=(...e)=>a.handleFocusout&&a.handleFocusout(...e))},[t[2]||(t[2]=Bs("div",{id:"skiplink",class:"g-header__skip gui-container"},[Bs("a",{href:"#content",class:"g-header__skip-link","data-testid":"skip-to-content-link",target:"_self"}," Skip to content ")],-1)),n.alerts&&n.alerts.length?(As(),Os(s,{key:0,a11yTitle:"Site wide messages",alerts:n.alerts,onDismiss:a.dismissMessage},null,8,["alerts","onDismiss"])):(As(),Ps("div",ede)),Bs("div",tde,[Bs("div",nde,[Bs("div",{class:Fe(["g-header__logo",{"g-header__logo--hide":r.logoHidden}])},[Bs("a",{"aria-label":"Getty",href:n.baseUrl,tabindex:r.isOverHero?-1:0},[Hs(o)],8,ide)],2),Bs("div",rde,[n.secondaryNav&&n.secondaryNav.length?(As(),Ps("div",ade,[Hs(l,{items:n.secondaryNav,label:"Quick Links",modifiers:["secondary"]},null,8,["items"])])):Ws("",!0),Bs("div",sde,[Hs(l,{dropdownOpen:r.dropdownOpen,"has-search":n.hasSearch,items:n.primaryNav,label:"Site Navigation"},null,8,["dropdownOpen","has-search","items"]),Bs("a",{href:a.searchPath,class:"g-header__search","aria-label":"Search the Getty Website"},[Hs(u,{name:"search",viewBoxDimensions:{width:19,height:19}})],8,ode)])])])]),Hs(c,{"primary-items":n.primaryNav,"secondary-items":n.secondaryNav,"has-search":n.hasSearch},null,8,["primary-items","secondary-items","has-search"])],38)}]]),ude={props:{pollForLoadEvents:{type:Boolean,default:!1}},data:H((()=>({allDone:!1,imageEvents:{init:[],load:[],render:[]},isEventBusInitialized:!1,imageEventBus:Rse({fetchInfo:!1}),pollIntervalId:null})),"data"),provide(){return{imageEventBus:this.imageEventBus}},computed:{allImageEventsDone(){return this.imageEventNames.map((e=>this.imageEventDone(e))).every((e=>!0===e))},imageEventNames(){return Object.keys(this.imageEvents)}},mounted(){this.initializeLoadEventPolling(100)},unmounted(){this.cancelLoadEventPolling()},methods:{cancelLoadEventPolling(){this.pollForLoadEvents&&this.pollIntervalId&&clearInterval(this.pollIntervalId)},checkImagesLoaded(){this.allDone=this.containers.every((e=>{const t=e.querySelector("img");return!t||t.complete})),this.allDone&&(clearInterval(this.pollIntervalId),this.imageEvents.load=this.imageEvents.init,this.imageEventBus.emit("load:done"),this.imageEvents.render=this.imageEvents.init,this.imageEventBus.emit("render:done"))},imageEventDone(e){let t=this.imageEvents.init.length;null!=this.imageEventBus.options.imagesCount&&(t=this.imageEventBus.options.imagesCount);const n=this.imageEvents[e];return!(!n||!t)&&t===n.length}
100,initImageEventBus(e={}){this.isEventBusInitialized||(this.isEventBusInitialized=!0,Object.keys(e).forEach((t=>{this.imageEventBus.set(t,e[t])})),1==e.fetchInfo&&(this.imageEvents.info=[]),this.imageEventNames.forEach((e=>{this.imageEventBus.on(e,(t=>{const n=this.imageEvents[e].findIndex((e=>this.areEventsDuplicate(e,t)));n>-1?this.imageEvents[e][n]=t:this.imageEvents[e].push(t),!this.allDone&&this.imageEventDone(e)&&"init"!=e&&this.imageEventBus.emit(`${e}:done`),this.allImageEventsDone&&(this.imageEventBus.emit("done"),this.allDone=!0)}))})))},initializeLoadEventPolling(e){this.pollForLoadEvents&&(this.pollIntervalId=setInterval(this.checkImagesLoaded,e),setTimeout((()=>{clearInterval(this.pollIntervalId)}),1e4))},areEventsDuplicate:H(((e,t)=>e.uid===t.uid&&(e.src===t.src||null!=e.id&&null!=t.id&&e.id===t.id)),"areEventsDuplicate")}},cde={props:{variableImageHeight:{type:Boolean,default:!1},variableImageHeightGridContainerClass:null,variableImageHeightImageSelector:{type:String,default:"img"}},data:H((()=>({containers:[],debouncedVariableImageHeightUpdate:null})),"data"),mounted(){this.initImageEventBus(),this.debouncedVariableImageHeightUpdate=ete(this.layoutVariableImageHeightSection),this.imageEventBus.on("render:done",(()=>{this.isMasonry&&this.masonry&&this.masonry.layout(),this.variableImageHeight&&!this.isMasonry&&this.debouncedVariableImageHeightUpdate()})),!this.isMasonry&&this.variableImageHeight&&window.addEventListener("resize",this.debouncedVariableImageHeightUpdate)},unmounted(){window.removeEventListener("resize",this.debouncedVariableImageHeightUpdate)},methods:{calculateAndSetMinHeights(){let e=0,t=[];this.containers=Array.from(this.containers).filter((e=>e.querySelector(this.variableImageHeightImageSelector))),this.containers.forEach(((n,i)=>{const r=n.querySelector(this.variableImageHeightImageSelector);t.push(n),"IMG"!==r.nodeName&&(r.height=r.offsetHeight);const a=r.height;if(a>e&&(e=a),this.isLastContainerInRow(n,i)){let n=Math.round(e);t.forEach((e=>{e.style.minHeight=`${n}px`})),e=0,t=[]}}))},getContainerOffsetTop(e){if(this.variableImageHeightGridContainerClass){let t=e.parentNode;for(;t&&0==t.classList.contains(this.variableImageHeightGridContainerClass);)t=(e=t).parentNode}return e.offsetTop},isLastContainerInRow(e,t){return this.containers.length===t+1||this.getContainerOffsetTop(e)<this.getContainerOffsetTop(this.containers[t+1])},layoutVariableImageHeightSection(){this.variableImageHeight&&(this.containers=this.$el.querySelectorAll("[data-variableImageHeight-container]"),this.containers&&0==this.containers.length||this.calculateAndSetMinHeights())}}},dde={name:"Grid",components:{Card:ace},mixins:[Ure,ude,cde],props:{cardName:{type:String,required:!0},items:{type:Array,default:H((()=>[]),"default")},modifier:{type:String,default:null},variableImageHeight:{type:Boolean,default:!1}},methods:{setTallestHeight(){if(this.$refs.card){this.tallestHeight=0;const e=Array.from(this.$refs.card).map((e=>e.$el.clientHeight));this.tallestHeight=Math.max(...e)}}},computed:{formattedName(){return this.cardName.replace(/-([a-z])/g,(e=>e[1].toUpperCase()))},listRole(){return this.getListRole(this.items)}},beforeMount(){this.imageEventBus.on("load:done",(()=>{this.layoutVariableImageHeightSection(),this.setTallestHeight()}))},mounted(){return V(this,null,(function*(){this.debouncedResize=ete(this.setTallestHeight),window.addEventListener("resize",this.debouncedResize)}))}},pde=["role"],hde=["role"],fde=Wee(dde,[["render",function(e,t,n,i,r,a){const s=Yr("Card");return n.items?(As(),Ps("ul",{key:0,class:"m-card-list--grid",role:a.listRole},[(As(!0),Ps(Ss,null,ea(n.items,((t,i)=>(As(),Ps("li",{ref_for:!0,ref:"item",key:i,role:a.listRole,class:"m-card-list--grid__item","data-testid":"m-card-list--grid__item"},[n.cardName?(As(),Os(s,Zs({key:0,ref_for:!0},F({item:t},e.$props),{name:a.formattedName}),null,16,["name"])):Ws("",!0)],8,hde)))),128))],8,pde)):Ws("",!0)}]]),mde=["data-item-index"],gde=Wee({name:"Masonry",components:{Card:ace},mixins:[Moe],props:{cardName:{type:String,required:!0},items:{type:Array,default:null},itemClasses:{type:Array,default:H((()=>[]),"default")},modifier:{type:String,default:null},modifiers:{type:Array,default:H((()=>[]),"default")}},data(){return{breakpoint:this.getCurrentBreakpoint()}},watch:{breakpoint(e){e&&(this.gap=cae.innerGutters[this.breakpoint])}},mounted(){this.debouncedResize=ete(this.handleResize),window.addEventListener("resize",this.debouncedResize),this.handleResize()},beforeUnmount(){window.removeEventListener("resize",this.debouncedResize)},computed:{columnCount(){switch(this.breakpoint){case"xsmall":case"small":return 1;case"medium":return 2;case"large":case"xlarge":case"xxlarge":return 3;default:throw new Error(`Undefined breakpoint ${this.breakpoint}`)}},columnWidth(){const e=cae.innerGutters[this.breakpoint],t=Math.floor(e/this.columnCount);return Math.floor((this.columnWidthMin-this.outerGutter)/this.columnCount)-e-t},columnWidthMin(){switch(this.breakpoint){case"xsmall":case"small":return parseInt(cae.breakpoints.small.match(/\d+/));case"medium":return parseInt(cae.breakpoints.medium.match(/\d+/));case"large":case"xlarge":case"xxlarge":return parseInt(cae.breakpoints.large.match(/\d+/));default:throw new Error(`Undefined breakpoint ${this.breakpoint}`)}},gap(){return cae.innerGutters[this.breakpoint]},outerGutter(){switch(this.breakpoint){case"xsmall":case"small":return 0;case"medium":return cae.outerGutters.medium;case"large":case"xlarge":case"xxlarge":return cae.outerGutters.large;default:throw new Error(`Undefined breakpoint ${this.breakpoint}`)}},options(){return{columnWidth:this.columnWidth,gap:this.gap,maxColumns:3,ssrColumns:1}}},methods:{handleResize(){this.breakpoint=this.getCurrentBreakpoint()}}},[["render",function(e,t,n,i,r,a){const s=Yr("Card"),o=Yr("masonry-wall");return n.items?(As(),Os(o,Zs({key:0},a.options,{items:n.items}
100),{default:Ii((({item:t,index:i})=>[Bs("div",{class:Fe(n.itemClasses),"data-item-index":i},[n.cardName?(As(),Os(s,Zs({key:0},F({item:t},e.$props),{"card-name":n.cardName,"is-masonry":!0}),null,16,["card-name"])):Ws("",!0)],10,mde)])),_:1},16,["items"])):Ws("",!0)}]]),yde=Wee({name:"Rows",components:{Card:ace},mixins:[ude,cde],props:{cardName:{type:String,required:!0},items:{type:Array,default:null},itemClasses:{type:Array,default:H((()=>[]),"default")},modifier:{type:String,default:null},modifiers:{type:Array,default:H((()=>[]),"default")},variableImageHeight:{type:Boolean,default:!1}},data:H((()=>({featureIndex:-1,imageSizes:["full","xlarge","large","medium","small","xsmall"],tallestHeight:0})),"data"),computed:{hasFeature(){return this.featureIndex>=0},itemsWithImagePresetSize(){if(this.items)return this.items.map(((e,t)=>{if(this.hasFeature&&this.variableImageHeight)return this.featureIndex===t?B(F({},e),{modifier:"large"}):B(F({},e),{modifier:"small"});const{modifier:n}=this;return B(F({},e),{modifier:n})}))}},beforeMount(){this.imageEventBus.on("load:done",(()=>{this.setFeatureIndex(),this.layoutVariableImageHeightSection(),this.setTallestHeight()}))},mounted(){this.debouncedResize=ete(this.setTallestHeight),window.addEventListener("resize",this.debouncedResize)},methods:{featureClass(e){return this.hasFeature&&this.featureIndex===e?"m-card-list__item--feature":null},setTallestHeight(){if(this.$refs.card){this.tallestHeight=0;const e=Array.from(this.$refs.card).map((e=>e.$el.clientHeight));this.tallestHeight=Math.max(...e)}},setFeatureIndex(){var e;if(Array.isArray(this.items)&&3===this.items.length&&(null==(e=this.modifiers)?void 0:e.length)>0&&this.modifiers.includes("small")){const e=this.items.filter((({image:e})=>e)).map((({image:e})=>e.id)),t=this.imageEvents.load.filter((t=>e.includes(t.id)&&t.aspectRatio)).sort(((e,t)=>e.id.localeCompare(t.id))).reduce(((e,t)=>Math.max(e.aspectRatio,t.aspectRatio)===e.aspectRatio?e:t));this.featureIndex=this.itemsWithImagePresetSize.findIndex((({image:e})=>e&&e.id===t.id))}}}},[["render",function(e,t,n,i,r,a){const s=Yr("Card");return n.items?(As(),Ps("ol",{key:0,class:Fe([{"m-card-list--feature":a.hasFeature}])},[(As(!0),Ps(Ss,null,ea(a.itemsWithImagePresetSize,((t,i)=>(As(),Ps("li",{key:i,class:Fe([a.featureClass(i),n.itemClasses]),style:Pe(`--tallest-height: ${r.tallestHeight}px`),"data-testid":"m-card-list__item",ref_for:!0,ref:"item"},[n.cardName?(As(),Os(s,Zs({key:0,ref_for:!0},F({item:t},e.$props),{cardName:n.cardName,ref_for:!0,ref:"card"}),null,16,["cardName"])):Ws("",!0)],6)))),128))],2)):Ws("",!0)}]]),vde=Wee({name:"CardList",components:{Grid:fde,Masonry:gde,Rows:yde},mixins:[Ure],props:{cardName:{type:String,default:"PostCard"},forceListRole:{type:String,default:null},items:{type:Array,default:null},labelId:{type:String,default:null},layout:{type:String,default:"horizontal-scroll",validator:H((e=>e&&["horizontal-scroll","grid","masonry"].includes(e)),"validator")},modifiers:{type:Array,default:H((()=>[]),"default")},pollForLoadEvents:{type:Boolean,default:!0},variableImageHeight:{type:Boolean,default:!1}},data:H((()=>({imageSizes:["full","xlarge","large","medium","small","small_1_1","xsmall"]})),"data"),computed:{dynamicComponent(){switch(this.layout){case"grid":return"Grid";case"masonry":return"Masonry";default:return"Rows"}},listRole(){return this.getListRole(this.items)},modifier(){var e;if((null==(e=this.modifiers)?void 0:e.length)>0)return this.modifiers.includes("body")?"body":this.modifiers.reduce(((e,t)=>(this.imageSizes.includes(t)&&(e=t),e)));{const e=this.items&&this.items.length;return this.calcClassModifier(e)}}},methods:{calcClassModifier(e){let t;switch(!0){case 1===e:t="full";break;case e%6==0:t="xsmall";break;case e%4==0:t="small";break;case e%3==0:t="medium";break;case e%2==0:t="large";break;default:t="small"}return t},classesFromModifiers(e){var t;const n=[e];return(null==(t=this.modifiers)?void 0:t.length)>0?this.modifiers.forEach((t=>{n.push(`${e}--${t}`)})):this.modifier&&n.push(`${e}--${this.modifier}`),n}}},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(a.dynamicComponent),Zs(e.$props,{"aria-labelledby":n.labelId,"card-name":n.cardName,class:[a.classesFromModifiers("m-card-list")],"item-classes":[a.classesFromModifiers("m-card-list__item")],modifier:a.modifier,role:a.listRole}),null,16,["aria-labelledby","card-name","class","item-classes","modifier","role"])}]]),bde=["aria-label"],_de=["aria-labelledby"],wde={key:0,class:"g-nav-overlay__title-item"},Sde=["href","aria-label","aria-current","onClick"],Cde={class:"g-nav-overlay__title-item"},kde=["href","aria-label","aria-current"],xde=Wee({name:"NavOverlayMenu",mixins:[nte,Jie,Noe],props:{id:{type:String,default:null,required:!0},title:{type:Object,default:null},items:{type:Array,default:null}},data(){return{activeChildNav:null,backButtonText:["Main Menu"],childNavHeight:null,isMobileLayout:!1,label:this.title&&this.title.text?`${this.title.text} Navigation`:null,navLevel:0,uid:br()}},mounted(){this.windowResized(),this.debouncedResize=ete(this.windowResized),window.addEventListener("resize",this.debouncedResize)},unmount(){window.removeEventListener("resize",this.debouncedResize)},computed:{navLabel(){if(this.label)return this.label.replace(/( [nN]avigation)/g,"")},navLabelId(){if(this.label)return`${this.label.replace(/\s+/g,"_").toLowerCase()}_${this.uid}`},navStyles(){if(this.childNavHeight)return{height:`${this.childNavHeight}px`}}},methods:{closeChildMenu(){this.backButtonText.pop(),this.activeChildNav=null,this.navLevel--,this.childNavHeight=null},openChildMenu(e,t,n){this.backButtonText.push(e),this.activeChildNav=t,this.navLevel++,this.$nextTick((()=>{this.setChildNavHeight()})),n.preventDefault()},triggerClose(e){this.navLevel>0?this.closeChildMenu():this.triggerModalClose(this.id,e)},windowResized(){this.isMobileLayout=window.matchMedia?!window.matchMedia(cae.breakpoints.medium).matches:window.innerWidth<768,this.isMobileLayout&&this.setChildNavHeight()},setChildNavHeight(){this.$refs.childNav&&this.$refs.childNav[this.activeChildNav]&&(this.childNavHeight=this.$refs.childNav[this.activeChildNav].querySelector("ul").clientHeight)}}},[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("Heading");return As(),Ps("div",null,[Bs("button",{class:"g-nav-overlay__mobile-close",onClick:t[0]||(t[0]=(...e)=>a.triggerClose&&a.triggerClose(...e))},[Hs(s,{name:"ContractLeft600"}),qs(" "+ze(r.backButtonText[r.navLevel]),1)]),n.title?(As(),Os(o,{key:0,level:2,id:a.navLabelId,class:"visually-hidden"},{default:Ii((()=>[qs(ze(r.label),1)])),_:1},8,["id"])):Ws("",!0),Bs("nav",{"aria-label":a.navLabel,class:"g-nav-overlay__nav",style:Pe(a.navStyles)},[Bs("ul",{"aria-labelledby":a.navLabelId},[n.title?(As(),Ps("li",wde,[(As(),Os(Xr(n.title.url?"a":"div"),{href:n.title.url?e.withBaseUrl(n.title.url):null,"aria-current":n.title.url?e.activeLinkAria(n.title.url):null},{default:Ii((()=>[qs(ze(n.title.text),1)])),_:1},8,["href","aria-current"]))])):Ws("",!0),(As(!0),Ps(Ss,null,ea(n.items,((t,i)=>(As(),Ps("li",{key:i,class:"g-nav-overlay__item"},[Bs("a",{href:e.withBaseUrl(t.url),"aria-label":t.icon?t.text:null,"aria-current":e.activeLinkAria(t.url),onClick:H((e=>r.isMobileLayout&&t.children?a.openChildMenu(n.title.text,i,e):null),"onClick")},[t.icon?(As(),Os(s,{key:0,name:t.icon},null,8,["name"])):(As(),Ps(Ss,{key:1},[qs(ze(t.text),1)],64))],8,Sde),t.children?(As(),Ps("div",{key:0,ref_for:!0,ref:"childNav",class:Fe(["g-nav-overlay__child-nav",{"g-nav-overlay__child-nav--active":r.activeChildNav===i}])},[Bs("ul",null,[Bs("li",Cde,[(As(),Os(Xr(t.url?"a":"div"),{href:t.url?e.withBaseUrl(t.url):null,"aria-current":t.url?e.activeLinkAria(t.url):null},{default:Ii((()=>[qs(ze(t.text),1)])),_:2},1032,["href","aria-current"]))]),(As(!0),Ps(Ss,null,ea(t.children,((t,n)=>(As(),Ps("li",{key:n,class:"g-nav-overlay__item"},[Bs("a",{href:e.withBaseUrl(t.url),"aria-label":t.icon?t.text:null,"aria-current":e.activeLinkAria(t.url)},[t.icon?(As(),Os(s,{key:0,name:t.icon},null,8,["name"])):(As(),Ps(Ss,{key:1},[qs(ze(t.text),1)],64))],8,kde)])))),128))])],2)):Ws("",!0)])))),128))],8,_de)],12,bde)])}]]),Tde={ref:"overlayContainer",class:"g-nav-overlay__container"},Ede={key:0,class:"g-nav-overlay__cards"},Ade=Wee({name:"NavOverlay",components:{CardList:vde,Icon:Xie,Modal:Poe,NavOverlayMenu:xde},props:{id:{type:String,default:null,required:!0},title:{type:Object,default:null},items:{type:Array,default:null},cards:{type:Array,default:null}},data(){const e=br();return{cardListId:`navOverlay${e}CardListHeading`,modalHeadingId:`navOverlay${e}
100Heading`,timer:null}},computed:{modalHeadingText(){if(this.title)return`${this.title.text} Section Navigation`}},methods:{afterOpen(){clearTimeout(this.timer),this.timer=setTimeout((()=>{this.$refs.modalHeader&&this.$refs.modalHeader.$el.focus()}),300)},afterClose(){clearTimeout(this.timer),this.$refs.modalHeader&&this.$refs.modalHeader.$el.blur()}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("NavOverlayMenu"),l=Yr("CardList"),u=Yr("Modal");return As(),Os(u,{id:n.id,"data-testid":"g-nav-overlay",class:"g-nav-overlay","aria-labelledby":r.modalHeadingId,transition:"slide-from-right",closeOnClick:!0,onAfterOpen:a.afterOpen},{default:Ii((()=>[Hs(s,{ref:"modalHeader",level:1,id:r.modalHeadingId,class:"visually-hidden",tabindex:"-1"},{default:Ii((()=>[qs(ze(a.modalHeadingText),1)])),_:1},8,["id"]),Bs("div",Tde,[Hs(o,{id:n.id,title:n.title,items:n.items},null,8,["id","title","items"]),n.cards?(As(),Ps("div",Ede,[n.title?(As(),Os(s,{key:0,level:3,id:r.cardListId,class:"visually-hidden"},{default:Ii((()=>t[0]||(t[0]=[qs(" Getty Locations ")]))),_:1,__:[0]},8,["id"])):Ws("",!0),Hs(l,{items:n.cards,cardName:"LocationCard","aria-labelledby":r.cardListId},null,8,["items","aria-labelledby"])])):Ws("",!0)],512)])),_:1},8,["id","aria-labelledby","onAfterOpen"])}]]),Lde=Wee({name:"PageContainer",props:{applicationBaseUrl:{type:String,required:!0}},provide(){return{applicationBaseUrl:this.applicationBaseUrl}}},[["render",function(e,t,n,i,r,a){return As(),Ps("div",null,[na(e.$slots,"default")])}]]),Ide={data:H((()=>({rAF:null,oldY:-1,observedItems:[],activeIndex:-1,inViewElement:null})),"data"),computed:{},unmount(){this.destroyInView()},methods:{initInView(){this.handleInView&&"function"==typeof this.handleInView?this.rAF=window.requestAnimationFrame(this.handleScroll):console.warn("Warning: You need to set a method in your component to handle the inView update")},destroyInView(){window.cancelAnimationFrame(this.rAF),this.rAF=null},handleScroll(){if(!this.observedItems)return;const e=window.scrollY;if(this.oldY!==e){const e=document.documentElement.clientHeight,t=e/4;this.inViewElement=this.observedItems.find(((n,i)=>{const r=(n.$el||n).getBoundingClientRect(),a=r.top<e+t&&r.bottom>e-t;return a&&(this.activeIndex=i),a}))}this.handleInView(),this.oldY=e,this.rAF=window.requestAnimationFrame(this.handleScroll)}}},$de=Wee({name:"ScrollSpy",mixins:[Ide],props:{},data:H((()=>({bgColor:null,bgSwitchDelay:500,bgSwitchEnabled:!0,childElements:[],currentId:null,eventBus:Rse(),timer:null})),"data"),mounted(){this.observedItems=this.$children||[],this.$nextTick((()=>{this.observedItems.length>0&&this.initInView()}))},computed:{bgClass(){return this.bgColor?`s-bg--${this.bgColor}`:null}},methods:{handleInView(){if(this.inViewElement){if(!this.inViewElement.scrollSpyDisabled&&this.bgSwitchEnabled){const e=this.inViewElement.bkgd?this.bgSwitchDelay:0;this.bgSwitchEnabled=!1,this.timer=setTimeout((()=>{this.bgColor=this.inViewElement.bkgd||!1,this.bgSwitchEnabled=!0,this.eventBus.emit("scrollSpyBkgdUpdated",this.inViewElement.bkgd)}),e)}this.currentId!==this.inViewElement.$props.id&&(this.currentId=this.inViewElement.$props.id,this.eventBus.emit("scrollSpyInViewUpdated",this.inViewElement.$props.id))}}}},[["render",function(e,t,n,i,r,a){return As(),Ps("div",{class:Fe(["g-scroll-spy",a.bgClass])},[na(e.$slots,"default",Be(Us({inViewID:r.currentId})),void 0,!0)],2)}],["__scopeId","data-v-2771ae7b"]]),Dde=["for"],Pde=["id","name"],Ode=Wee({name:"SearchInput",components:{Icon:Xie,GuiButton:Jee,Heading:jre},mixins:[Nse],props:{fieldName:{type:String,required:!0},modifiers:{type:Array,default:null},label:{type:String,default:"Search Getty"},id:{type:String,default:"search-input"},initialValue:{type:String,default:null}},emits:["SearchInput::Update","SearchInput::Submit"],data:H((()=>({uid:br(),inputValue:""})),"data"),computed:{classes(){const e=["m-search-input"];return this.modifiers&&this.modifiers.forEach((t=>{e.push(`m-search-input--${t}`)})),e},searchInputHeadingId(){let e=`searchInput${this.uid}Heading`;return this.id&&(e=`${this.id}Heading`),e}},watch:{initialValue(e){this.inputValue=e},inputValue(e){this.onInput(e)}},mounted(){this.inputValue=this.initialValue},methods:{onInput(e){this.$emit("SearchInput::Update",{name:this.fieldName,type:"update",value:e})},onSubmit(){this.$emit("SearchInput::Submit",{name:this.fieldName,type:"submit",value:this.inputValue})}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("Icon"),l=Yr("GuiButton");return As(),Ps("div",{class:Fe(a.classes)},[Bs("label",{for:n.id,class:Fe(["m-search-input__label"])},[Hs(s,{id:a.searchInputHeadingId,level:e.headingLevel},{default:Ii((()=>[qs(ze(n.label),1)])),_:1},8,["id","level"])],8,Dde),$i(Bs("input",{ref:"input",type:"search",id:n.id,name:n.fieldName,autofocus:"","onUpdate:modelValue":t[0]||(t[0]=e=>r.inputValue=e)},null,8,Pde),[[zl,r.inputValue]]),Hs(l,{ref:"button","aria-label":"Submit Search",name:"Search Input Button",onClick:a.onSubmit},{default:Ii((()=>[Hs(o,{name:"search"})])),_:1},8,["onClick"])],2)}],["__scopeId","data-v-2f12b9cb"]]),Mde={name:"SearchInput",components:{Heading:jre,GuiButton:Jee,Icon:Xie},props:{autofocusValue:{type:Boolean,default:!0},fieldName:{type:String,required:!0},headingLevel:{type:Number,default:3},label:{type:String,default:"Search Getty"},id:{type:String,default:"search-input"},initialValue:{type:String,default:null},placeholder:{type:String,default:"Search Getty.edu"}},emits:["SearchInput::Update","SearchInput::Submit"],data:H((()=>({uid:br(),inputValue:""})),"data"),computed:{searchInputHeadingId(){let e=`searchInput${this.uid}Heading`;return this.id&&(e=`${this.id}Heading`),e}},watch:{initialValue(e){this.inputValue=e},inputValue(e){this.inputValue==e&&e==this.initialValue||this.onInput(e)}},mounted(){this.inputValue=this.initialValue},methods:{onInput(e){this.$emit("SearchInput::Update",{name:this.fieldName,type:"update",value:e})},onSubmit(){this.$emit("SearchInput::Submit",{name:this.fieldName,type:"submit",value:this.inputValue})}}},Rde={class:"m-search-input"},Nde=["for"],Fde=["id","name","autofocus","placeholder"],Bde=Wee(Mde,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("Icon"),l=Yr("GuiButton");return As(),Ps("div",Rde,[Bs("label",{for:n.id,class:"m-search-input__label visually-hidden"},[Hs(s,{id:a.searchInputHeadingId,level:n.headingLevel},{default:Ii((()=>[qs(ze(n.label),1)])),_:1},8,["id","level"])],8,Nde),$i(Bs("input",{ref:"input",type:"search",id:n.id,name:n.fieldName,autofocus:n.autofocusValue,placeholder:n.placeholder,"onUpdate:modelValue":t[0]||(t[0]=e=>r.inputValue=e),onKeydown:t[1]||(t[1]=Zl(((...e)=>a.onSubmit&&a.onSubmit(...e)),["enter"]))},null,40,Fde),[[zl,r.inputValue]]),Hs(l,{ref:"button","aria-label":"Submit Search",name:"Search Input Button",onClick:a.onSubmit},{default:Ii((()=>[Hs(o,{name:"search"})])),_:1},8,["onClick"])])}],["__scopeId","data-v-a66541a0"]]),Hde=Wee({name:"SearchInput",components:{V1:Ode,V2:Bde},props:{version:{type:String,default:"v1"}},emits:["SearchInput::Update","SearchInput::Submit"],computed:{dynamicComponent(){return"v2"===this.version?Bde:Ode}}},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(a.dynamicComponent),Zs(F({},e.$attrs),{"onSearchInput::Update":t[0]||(t[0]=t=>e.$emit("SearchInput::Update",t)),"onSearchInput::Submit":t[1]||(t[1]=t=>e.$emit("SearchInput::Submit",t))}),null,16)}]]),jde={ref:"overlayContainer",class:"g-search-overlay__container gui-container"},Ude={class:"g-search-overlay__header gui-container"},Vde={class:"g-search-overlay__logo"},qde=["href"],zde={class:"g-search-overlay__form"},Wde=["action"],Gde={key:0,class:"g-search-overlay__footer"},Kde=Wee({name:"SearchOverlay",components:{Icon:Xie,Logo:Tae,Modal:Poe,SearchInput:Hde},mixins:[Qie],props:{baseUrl:{type:String,default:null},formUrl:{type:String,default:null},fieldName:{type:String,default:null}},provide(){return{componentBaseUrl:this.baseUrl}},methods:{triggerSubmit(){this.$refs.searchForm.submit()}},data(){return{active:!1,dataTestId:"g-search-overlay",inputFieldName:this.fieldName||"qt",inputLabel:"Search Getty",o
100peningElement:null,searchUrl:this.formUrl||"https://www.getty.edu/search/",timer:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("Logo"),o=Yr("SearchInput"),l=Yr("Modal");return As(),Os(l,{id:"searchOverlay",dataTestId:r.dataTestId,focusSelector:"input#search-input",class:"g-search-overlay","aria-labelledby":"search-inputHeading"},{default:Ii((()=>[Bs("div",jde,[Bs("div",Ude,[Bs("div",Vde,[Bs("a",{ref:"logo",href:n.baseUrl,"aria-label":"Getty"},[Hs(s)],8,qde)])]),Bs("div",{class:Fe(["g-search-overlay__main",{"g-search-overlay__main--with-footer":e.hasDefaultSlotContent}])},[Bs("div",zde,[Bs("form",{action:r.searchUrl,ref:"searchForm",onSubmit:t[0]||(t[0]=(...e)=>a.triggerSubmit&&a.triggerSubmit(...e))},[Hs(o,{id:"search-input",ref:"input",fieldName:r.inputFieldName,label:r.inputLabel,modifiers:["search-overlay","h1"],"onSearchInput::Submit":a.triggerSubmit},null,8,["fieldName","label","onSearchInput::Submit"])],40,Wde)])],2),e.hasDefaultSlotContent?(As(),Ps("div",Gde,[na(e.$slots,"default")])):Ws("",!0)],512)])),_:3},8,["dataTestId"])}]]),Yde={class:"l-document"},Zde={class:"l-document__inner"},Xde={class:"l-document__main"},Qde={class:"l-document__aside"},Jde=Wee({name:"LayoutDocument",components:{ScrollTopButton:ase},mixins:[Xce,Qce],data:H((()=>({oldY:-1,renderScrollTopButton:!0,showScrollTopButton:!1,rAF:null})),"data"),mounted(){this.$nextTick((()=>{this.getDocumentScrollHeight(),this.rAF=window.requestAnimationFrame(this.handleScroll)})),this.alertsObserverInit(this.getHeaderHeight)},unmount(){window.cancelAnimationFrame(this.rAF),this.rAF=null},computed:{},methods:{handleScroll(){const e=window.scrollY;this.oldY!==e&&(this.getHeaderVisibility(),this.showScrollTopButton=e>window.innerHeight/4),this.oldY=e,this.rAF=window.requestAnimationFrame(this.handleScroll)},getDocumentScrollHeight(){const e=window.document.body.scrollHeight;this.renderScrollTopButton=e>2168}}},[["render",function(e,t,n,i,r,a){const s=Yr("ScrollTopButton");return As(),Ps("div",Yde,[Bs("div",Zde,[Bs("div",Xde,[na(e.$slots,"main")]),Bs("aside",Qde,[Bs("div",{class:Fe(["l-document__aside-sticky-top",{"l-document__aside-sticky-top--header-visible":e.headerVisible}]),style:Pe(F(F({},e.alertsHeightVar),e.headerHeightVar))},[na(e.$slots,"aside")],6),t[0]||(t[0]=Bs("div",{class:"l-document__aside-spacer"},null,-1))])]),r.renderScrollTopButton?(As(),Os(s,{key:0,transitionInOut:r.showScrollTopButton},null,8,["transitionInOut"])):Ws("",!0)])}]]),epe={class:"l-editorial"},tpe=["aria-labelledby"],npe={key:0,class:"l-editorial__footer"},ipe=Wee({name:"LayoutEditorial",components:{ScrollTopButton:ase,Icon:Xie},mixins:[Qie],data:H((()=>({oldY:-1,showScrollTopButton:!1,rAF:null})),"data"),props:{articleId:{type:String,default:null}},mounted(){this.$nextTick((()=>{this.rAF=window.requestAnimationFrame(this.handleScroll)}))},unmount(){window.cancelAnimationFrame(this.rAF),this.rAF=null},computed:{},methods:{handleScroll(){const e=window.scrollY;this.oldY!==e&&(this.showScrollTopButton=e>this.$el.offsetTop+window.innerHeight/4),this.oldY=e,this.rAF=window.requestAnimationFrame(this.handleScroll)}}},[["render",function(e,t,n,i,r,a){const s=Yr("ScrollTopButton");return As(),Ps("div",epe,[Bs("article",{"aria-labelledby":n.articleId,class:"l-editorial__main"},[na(e.$slots,"main")],8,tpe),e.doesSlotHaveContent("footer")?(As(),Ps("div",npe,[na(e.$slots,"footer")])):Ws("",!0),Hs(s,{transitionInOut:r.showScrollTopButton},null,8,["transitionInOut"])])}]]),rpe={name:"InPageNav",components:{GuiLink:rre,Heading:jre},mixins:[nte,Jie],props:{heading:{type:String,default:null},label:{type:String,default:null},sections:{type:Array,default:null},baseHeadingLevel:{type:Number,default:3},useHeadings:{type:Boolean,default:!0}},data:H((()=>({uid:br()})),"data"),computed:{navLabel(){if(this.label&&!this.heading)return this.label.replace(/( [nN]avigation)/g,"")},navSectionHeadingLevel(){return this.heading?this.baseHeadingLevel+1:this.baseHeadingLevel}},methods:{getNavSectionHeadingId(e){return`inPageNav${this.uid}Section${e}Heading`}}},ape={class:"m-in-page-nav__wrap"},spe=["aria-label","aria-labelledby"],ope=["aria-label","aria-labelledby"],lpe=Wee(rpe,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("GuiLink");return As(),Ps("div",ape,[n.heading?(As(),Os(s,{key:0,id:`inPageNav${r.uid}Heading`,level:n.baseHeadingLevel,class:"visually-hidden"},{default:Ii((()=>
100[qs(ze(n.heading),1)])),_:1},8,["id","level"])):Ws("",!0),n.sections?(As(),Ps("nav",{key:1,"aria-label":a.navLabel,"aria-labelledby":n.heading?`inPageNav${r.uid}Heading`:null,class:"m-in-page-nav"},[(As(!0),Ps(Ss,null,ea(n.sections,((t,i)=>(As(),Ps("div",{key:i,class:"m-in-page-nav__section"},[t.label?(As(),Os(Xr(n.useHeadings?"Heading":"span"),{key:0,level:n.useHeadings?a.navSectionHeadingLevel:null,id:a.getNavSectionHeadingId(i),class:"m-in-page-nav__section-title"},{default:Ii((()=>[qs(ze(t.label),1)])),_:2},1032,["level","id"])):Ws("",!0),t.links?(As(),Ps("ul",{key:1,"aria-label":t.label?null:`${a.navLabel} links`,"aria-labelledby":t.label?a.getNavSectionHeadingId(i):null,class:"m-in-page-nav__links"},[(As(!0),Ps(Ss,null,ea(t.links,((t,n)=>(As(),Ps("li",{key:n},[Hs(o,{href:t.url,"aria-current":e.activeLinkAria(t.url)},{default:Ii((()=>[qs(ze(t.text),1)])),_:2},1032,["href","aria-current"])])))),128))],8,ope)):Ws("",!0)])))),128))],8,spe)):Ws("",!0)])}]]),upe={class:"o-module__alert s-bg--warm-grey"},cpe=Wee({name:"ModuleAlert",components:{RichText:cre},props:{content:{type:String,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText");return As(),Ps("div",upe,[n.content?(As(),Os(s,{key:0,content:n.content},null,8,["content"])):Ws("",!0)])}]]),dpe={name:"ModuleHeader",components:{Heading:jre},mixins:[Qie],props:{id:{type:String,default:null},inline:{type:Boolean,default:!1},headingLevel:{type:Number,default:2},modifiers:{type:Array,default:null}},computed:{asideClass(){let e="m-module-header__aside";if(this.modifiers)for(const t of this.modifiers)e+=` ${e}--${t}`;return e},classes(){const e=["m-module-header"];return this.modifiers&&this.modifiers.forEach((t=>{e.push(`m-module-header--${t}`)})),e}}},ppe={class:"m-module-header__inner"},hpe={class:"m-module-header__main"},fpe={key:1,class:"m-module-header__intro","data-testid":"m-module-header__intro"},mpe=Wee(dpe,[["render",function(e,t,n,i,r,a){const s=Yr("Heading");return As(),Ps("header",{class:Fe([...a.classes,{"m-module-header--inline":n.inline,"m-module-header--no-aside":!e.doesSlotHaveContent("aside")}]),"data-testid":"m-module-header"},[Bs("div",ppe,[Bs("div",hpe,[e.doesSlotHaveContent("default")?(As(),Os(s,{key:0,id:n.id,level:n.headingLevel,tabindex:n.id?"-1":null,class:"m-module-header__title","data-testid":"m-module-header__title"},{default:Ii((()=>[na(e.$slots,"default")])),_:3},8,["id","level","tabindex"])):Ws("",!0),e.doesSlotHaveContent("intro")?(As(),Ps("div",fpe,[na(e.$slots,"intro")])):Ws("",!0)]),e.doesSlotHaveContent("aside")?(As(),Ps("div",{key:0,class:Fe(a.asideClass)},[na(e.$slots,"aside")],2)):Ws("",!0)])],2)}]]),gpe={name:"Module",inheritAttrs:!1,components:{ModuleAlert:cpe,GuiButton:Jee,GuiLink:rre,ModuleHeader:mpe,RichText:cre},mixins:[Qie],props:{alert:{type:String,default:null},id:{type:String,default:null},title:{type:String,default:null},headingLevel:{type:Number,default:2},intro:{type:String,default:null},cta:{type:Object,default:null},ctaButton:{type:Boolean,default:!1},bkgd:{type:String,default:null},modifiers:{type:Array,default:H((()=>[]),"default")}}
100,provide(){return{setModuleBackgroundClass:this.setBackgroundClass}},data(){return{backgroundColor:this.bkgd}},computed:{classes(){return this.modifiers.map((e=>`o-module--${e}`))},backgroundClass(){let e=null;return this.backgroundColor&&(e=`s-bg--${this.backgroundColor}`),e},isSplit(){return this.doesSlotHaveContent("splitLeft")||this.doesSlotHaveContent("splitRight")}},methods:{setBackgroundClass(e){this.backgroundColor=e}},watch:{bkgd(e){this.setBackgroundClass(e)}}},ype={class:"o-module__container gui-container"},vpe={key:2,class:"o-module__split"},bpe={class:"o-module__split-left"},_pe={class:"o-module__split-right"},wpe={key:3,class:"o-module__inner"},Spe=Wee(gpe,[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("GuiLink"),l=Yr("ModuleHeader"),u=Yr("ModuleAlert");return As(),Ps("section",{class:Fe(["o-module",...a.classes,a.backgroundClass])},[Bs("div",ype,[n.title?(As(),Os(l,{key:0,id:n.id,headingLevel:n.headingLevel,modifiers:n.modifiers},ta({default:Ii((()=>[qs(ze(n.title)+" ",1)])),_:2},[n.intro?{name:"intro",fn:Ii((()=>[Hs(s,{content:n.intro},null,8,["content"])])),key:"0"}:void 0,n.cta||e.doesSlotHaveContent("aside")?{name:"aside",fn:Ii((()=>[n.cta&&!e.doesSlotHaveContent("aside")?(As(),Os(o,Zs({key:0},n.cta,{button:n.ctaButton}),{default:Ii((()=>[qs(ze(n.cta.text),1)])),_:1},16,["button"])):na(e.$slots,"aside",{key:1})])),key:"1"}:void 0]),1032,["id","headingLevel","modifiers"])):Ws("",!0),n.alert?(As(),Os(u,{key:1,content:n.alert},null,8,["content"])):Ws("",!0),a.isSplit?(As(),Ps("div",vpe,[Bs("div",bpe,[na(e.$slots,"splitLeft")]),Bs("div",_pe,[na(e.$slots,"splitRight")])])):(As(),Ps("div",wpe,[na(e.$slots,"default")]))])],2)}]]),Cpe=["aria-labelledby","aria-owns"],kpe={class:"l-nav-aside__col l-nav-aside__col--wide"},xpe={class:"l-nav-aside__col"},Tpe=Wee({name:"NavAsideColumns",components:{Post:Yue},props:{items:{type:Array,default:null},labelId:{type:String,default:null}},computed:{ariaItemList(){return this.items.map((({id:e})=>`nav-col-item--${e}`)).join(" ")},column1Items(){return this.duplicatedItems.slice(0,1)},column2Items(){return this.items.slice(1,3)},duplicatedItems(){return JSON.parse(JSON.stringify(this.items))}}},[["render",function(e,t,n,i,r,a){const s=Yr("Post");return As(),Ps("div",{"aria-labelledby":n.labelId,"aria-owns":a.ariaItemList,class:"l-nav-aside__columns",role:"list"},[Bs("div",kpe,[(As(!0),Ps(Ss,null,ea(a.column1Items,((e,t)=>(As(),Ps("div",{key:t,class:"l-nav-aside__col-item"},[Hs(s,Zs({ref_for:!0},B(F({},e),{id:null}),{id:`nav-col-item--${e.id}`,variableImageHeight:!0,role:"listItem"}),null,16,["id"])])))),128))]),Bs("div",xpe,[(As(!0),Ps(Ss,null,ea(a.column2Items,((e,t)=>(As(),Ps("div",{key:t,class:"l-nav-aside__col-item"},[Hs(s,Zs({ref_for:!0},F({},e),{id:`nav-col-item--${e.id}`,variableImageHeight:!0,role:"listItem"}),null,16,["id"])])))),128))])],8,Cpe)}]]),Epe={name:"LayoutNavAside",components:{InPageNav:lpe,Module:Spe,NavAsideColumns:Tpe,Post:Yue},props:{header:{type:Object,default:null},items:{type:Array,default:null},navigation:{type:Object,default:null,required:!0},baseHeadingLevel:{type:Number,default:2},useHeadings:{type:Boolean,default:!1}},data:H((()=>({uid:null})),"data"),mounted(){this.uid=`heading-${br()}`},computed:{listingItems(){if(this.items)return JSON.parse(JSON.stringify(this.items)).map(((e,t)=>(e.currentIssue||(e.postType=0===t?"editorial-feature":"editorial"),e)))}}},Ape={class:"l-nav-aside gui-container"},Lpe={class:"l-nav-aside__inner"},Ipe={class:"l-nav-aside__main"},$pe={class:"l-nav-aside__navigation"},Dpe=Wee(Epe,[["render",function(e,t,n,i,r,a){const s=Yr("NavAsideColumns"),o=Yr("Post"),l=Yr("Module"),u=Yr("InPageNav");return As(),Ps("div",Ape,[Bs("div",Lpe,[Bs("div",Ipe,[na(e.$slots,"default"),a.listingItems&&a.listingItems.length?(As(),Os(l,Be(Zs({key:0},B(F({},n.header),{id:r.uid}))),{default:Ii((()=>[a.listingItems.length>=2?(As(),Os(s,{key:0,labelId:r.uid,items:a.listingItems},null,8,["labelId","items"])):(As(),Os(o,Be(Zs({key:1},a.listingItems[0])),null,16))])),_:1},16)):Ws("",!0)]),Bs("div",$pe,[Hs(u,{label:n.navigation.label,baseHeadingLevel:n.baseHeadingLevel,sections:n.navigation.sections,useHeadings:n.useHeadings},null,8,["label","baseHeadingLevel","sections","useHeadings"])])])])}]]),Ppe={name:"LayoutPageWithAside",components:{},mixins:[Xce,Qce],props:{hideScrollTopButton:{type:Boolean,default:!1},modifiers:{type:Array,default:H((()=>[]),"default")}},data:H((()=>({oldY:-1,rAF:null})),"data"),mounted(){this.$nextTick((()=>{this.rAF=window.requestAnimationFrame(this.handleScroll)})),this.alertsObserverInit(this.getHeaderHeight)},unmount(){window.cancelAnimationFrame(this.rAF),this.rAF=null},methods:{handleScroll(){const e=window.scrollY;this.oldY!==e&&this.getHeaderVisibility(),this.oldY=e,this.rAF=window.requestAnimationFrame(this.handleScroll)}}},Ope={class:"l-page-with-aside"},Mpe={class:"l-page-with-aside__inner"},Rpe={class:"l-page-with-aside__main"},Npe={class:"l-page-with-aside__aside"},Fpe=Wee(Ppe,[["render",function(e,t,n,i,r,a){return As(),Ps("div",Ope,[Bs("div",Mpe,[Bs("div",Rpe,[na(e.$slots,"main")]),Bs("aside",Npe,[Bs("div",{class:Fe(["l-page-with-aside__aside-sticky-top",{"l-page-with-aside__aside-sticky-top--header-visible":e.headerVisible}]),style:Pe(F(F({},e.alertsHeightVar),e.headerHeightVar))},[na(e.$slots,"aside")],6),t[0]||(t[0]=Bs("div",{class:"l-page-with-aside__aside-spacer"},null,-1))])])])}]]),Bpe={name:"Accordion",components:{AccordionItem:Voe},props:F({headingLevel:{type:Number,default:3},items:{type:Array,default:null},size:{type:String,default:null},modifiers:{type:Array,default:H((()=>[]),"default")}}
100,kse),setup:(e,{slots:t})=>({classes:Co((()=>{const t="m-accordion",n=e.modifiers.map((e=>`${t}--${e}`)),i=e.size?`${t}--${e.size}`:void 0;return[t,...n,i]})),listRole:Co((()=>{const n=e.items?e.items:t.default();return xse(n,e)}))})},Hpe=["role"],jpe=Wee(Bpe,[["render",function(e,t,n,i,r,a){const s=Yr("AccordionItem");return As(),Ps("ul",{class:Fe(i.classes),role:i.listRole},[n.items?(As(!0),Ps(Ss,{key:0},ea(n.items,(e=>(As(),Os(s,Zs({headingLevel:n.headingLevel,key:e},{ref_for:!0},e),null,16,["headingLevel"])))),128)):na(e.$slots,"default",{key:1})],10,Hpe)}]]),Upe=Wee({name:"ArticleAttribution",components:{Heading:jre,RichText:cre},props:{content:{type:String,default:null},heading:{type:String,default:null},modifiers:{type:Array,default:H((()=>[]),"default")}},computed:{classes(){return this.modifiers.map((e=>`m-article-attribution--${e}`))}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("RichText");return n.content||n.heading?(As(),Ps("div",{key:0,class:Fe(["m-article-attribution",...a.classes])},[n.heading?(As(),Os(s,{key:0,level:3},{default:Ii((()=>[qs(ze(n.heading),1)])),_:1})):Ws("",!0),n.content?(As(),Os(o,{key:1,content:n.content},null,8,["content"])):Ws("",!0)],2)):Ws("",!0)}]]),Vpe=["aria-labelledby"],qpe=["id"],zpe={key:1,class:"m-article-callout__content"},Wpe=Wee({name:"ArticleCallout",components:{GuiLink:rre},props:{title:{type:String,default:null,required:!0},content:{type:String,default:null},link:{type:Object,default:H((()=>{}),"default")}},data:H((()=>({uid:br()})),"data"),computed:{labelId(){return this.title?`ArticleCallout${this.uid}`:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("GuiLink");return n.title||n.content?(As(),Ps("aside",{key:0,class:"m-article-callout","aria-labelledby":a.labelId},[n.title?(As(),Ps("span",{key:0,id:a.labelId,class:"m-article-callout__title","aria-hidden":"true"},ze(n.title),9,qpe)):Ws("",!0),n.content?(As(),Ps("span",zpe,ze(n.content),1)):Ws("",!0),n.link?(As(),Os(s,Zs({key:2},n.link,{href:n.link.url,class:"m-article-callout__link"}),{default:Ii((()=>[qs(ze(n.link.text),1)])),_:1},16,["href"])):Ws("",!0)],8,Vpe)):Ws("",!0)}]]),Gpe={key:0,class:"m-article-editor-note"},Kpe=Wee({name:"ArticleEditorNote",components:{Heading:jre,RichText:cre},props:{title:{type:String,default:"Editorâs Note"},content:{type:String,default:null},headingLevel:{type:Number,default:2}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("RichText");return n.content?(As(),Ps("div",Gpe,[Hs(s,{level:n.headingLevel,class:"m-article-editor-note__title"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["level"]),Hs(o,{content:n.content,class:"m-article-editor-note__content"},null,8,["content"])])):Ws("",!0)}]]),Ype={key:0,class:"m-article-tags"},Zpe=["aria-labelledby"],Xpe=Wee({name:"ArticleTags",components:{GuiLink:rre,Chip:ore,Heading:jre},props:{label:{type:String,default:"Article Tags"},baseHeadingLevel:{type:Number,default:2},tags:{type:Array,default:null}},data:H((()=>({headingId:`articleTags${br()}Title`})),"data")},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("Chip");return n.tags?(As(),Ps("div",Ype,[Hs(s,{id:r.headingId,level:n.baseHeadingLevel,class:"visually-hidden"},{default:Ii((()=>[qs(ze(n.label),1)])),_:1},8,["id","level"]),Bs("div",{"aria-labelledby":r.headingId,class:"m-article-tags__list"},[(As(!0),Ps(Ss,null,ea(n.tags,((e,t)=>(As(),Os(o,{key:t,term:e.text,url:e.url},null,8,["term","url"])))),128))],8,Zpe)])):Ws("",!0)}]]),Qpe={name:"MediaControls",components:{Control:Wee({name:"Control",components:{GuiButton:Jee,Icon:Xie},props:{modelValue:[Number,String],active:Boolean,label:String,name:String,options:Array},emits:["click","input","node","toggleDropdown","toggleMenu","update:modelValue"]},[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("GuiButton"),l=Yr("GuiInput");return As(),Ps(Ss,null,[Hs(o,{"aria-label":n.label,"aria-expanded":n.active?"true":"false",modifiers:["text","outline"],name:n.name,onClick:t[0]||(t[0]=t=>e.$emit("toggleDropdown",t)),onKeyup:t[1]||(t[1]=Zl((t=>e.$emit("toggleMenu",t)),["esc"]))},{default:Ii((()=>[Bs("span",null,ze(n.label),1),Hs(s,{"aria-hidden":!0,name:"caret"})])),_:1},8,["aria-label","aria-expanded","name"]),Hs(No,{name:"a-media-controls__fade"},{default:Ii((()=>[n.active?(As(),Ps("div",{key:0,class:"m-media-controls__dropdown-list",onKeyup:[t[5]||(t[5]=Zl((t=>e.$emit("toggleDropdown",t)),["enter"])),t[6]||(t[6]=Zl((t=>
100e.$emit("toggleDropdown",t)),["esc"])),t[7]||(t[7]=Zl((t=>e.$emit("toggleDropdown",t)),["space"]))],onClick:t[8]||(t[8]=t=>e.$emit("click",t))},[Hs(l,{value:n.modelValue,options:n.options,"decorator-icon":"check",name:n.name,ref:n.name,type:"radio",onInput:t[2]||(t[2]=t=>e.$emit("input",t)),"onUpdate:modelValue":t[3]||(t[3]=t=>e.$emit("update:modelValue",t)),onNode:t[4]||(t[4]=t=>e.$emit("node",t))},null,8,["value","options","name"])],32)):Ws("",!0)])),_:1})],64)}]]),GuiButton:Jee,GuiInput:Mre,Icon:Xie},props:{audioLanguages:{type:Array,default:H((()=>[]),"default")},baseLocaleKey:{type:String,default:"m-media-controls"},captionLanguages:{type:Array,default:H((()=>[]),"default")},descriptionLanguages:{type:Array,default:H((()=>[]),"default")},enableInteractiveTranscript:{type:Boolean,default:!1},modifiers:{type:Array,default:H((()=>[]),"default")},playbackRates:{type:Array,default:H((()=>[.5,.75,1,1.25,1.5,1.75,2,2.25,2.5,2.75,3]),"default")},preferredLang:{type:String,default:"en"}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey,strings:{on:"on",off:"off",on_with_description:"on_with_description",controlsLabel:"controls_label"}}))),"setup"),emits:["updateControls"],data:H((()=>({activeDropdown:void 0,audioLanguage:"en",baseClass:"m-media-controls",interactiveTranscripts:"off",captionsLanguage:void 0,isMenuOpen:!1,isMouseClickEvent:!1,playbackRate:1})),"data"),computed:{activeControls(){return this.controls.filter((({options:e})=>e.length>1))},audioLanguageLabel(){return this.translatePart("audio_language_dropdown",{lang:this.translatePart(this.audioLanguage)})},audioLanguageOptions(){const e=this.audioLanguages;return e.includes(this.preferredLang)||e.unshift(this.preferredLang),e.map((e=>({label:this.getLanguageLabel(e),value:e})))},controls(){var e;const t=[{label:this.playbackRateLabel,name:"rates",options:this.playbackRateOptions,ref:"ratesWrapper",value:"playbackRate"},{label:this.audioLanguageLabel,name:"langs",options:this.audioLanguageOptions,ref:"langsWrapper",value:"audioLanguage"},{label:this.captionsLabel,name:"captions",options:this.captionsOptions,ref:"captionsWrapper",value:"captionsLanguage"}];if(this.enableInteractiveTranscript){const n=[{label:this.localized.off,value:"off"},{label:this.localized.on,value:"on"}];(null==(e=null==this?void 0:this.descriptionLanguages)?void 0:e.length)>0&&n.push({label:this.localized.on_with_description,value:"on_with_description"}),t.push({label:this.transcriptLabel,name:"interactiveTranscripts",ref:"interactiveWrapper",options:n,value:"interactiveTranscripts"})}return t},captionsLabel(){const e=this.captionsLanguage?this.localized.on:this.localized.off;return this.translatePart("captions_dropdown",{status:e})},transcriptLabel(){const e="off"!==this.interactiveTranscripts?this.localized.on:this.localized.off;return this.translatePart("transcript_dropdown",{status:e})},captionsOptions(){return["off",...this.captionLanguages].map((e=>({label:this.getLanguageLabel(e),value:"off"===e?void 0:e})))},classNames(){const e=[this.baseClass];return this.modifiers.forEach((t=>{e.push(`${this.baseClass}--${t}`)})),e},playbackRateLabel(){return this.translatePart("playback_speed_dropdown",{rate:this.playbackRate})},playbackRateOptions(){return this.playbackRates.map((e=>{const t="playback_speed_option"+(1===e?"_1x":"");return{label:this.translatePart(t,{rate:e}),value:e}}))}},methods:{getLanguageLabel(e){if(!e)return;const t=e.split("-");return this.translatePart(t[0].toLowerCase())},handleClick({target:e}={}){e&&"INPUT"!==e.tagName&&(this.isMouseClickEvent=!0)},handleInput(e,t){this.$emit("updateControls",{[e]:t})},setFocus(e){return V(this,null,(function*(){if(!e)return;let t=e;if("string"==typeof e){yield this.$nextTick();const n=yield this.$refs[`${e}Wrapper`];null!=n&&n.querySelectorAll&&(t=[...yield n.querySelectorAll("input")].find((e=>1==e.checked)))}yield this.$nextTick(),null!=t&&t.focus&&setTimeout((()=>t.focus()),100)}))},setNode(e){e.on("commit",(()=>{this.isMouseClickEvent&&(this.toggleDropdown(e),this.isMouseClickEvent=!1)}))},toggleDropdown(e){return V(this,null,(function*(){const t=e.target?e.target.name:e.name;if(this.activeDropdown===t){const e=this.$refs.menu?yield this.$refs.menu.querySelector(`[name=${this.activeDropdown}]`):null;this.activeDropdown=void 0,this.setFocus(e)}else this.activeDropdown=t,this.setFocus(this.activeDropdown)}))},toggleMenu(e=!0){return V(this,null,(function*(){this.isMenuOpen=!(this.isMenuOpen||!e),this.isMenuOpen||(this.activeDropdown=void 0,this.setFocus(this.$refs.moreControls.$el))}))}}},Jpe=Wee(Qpe,[["render",function(e,t,n,i,r,a){const s=Yr("Control"),o=Yr("Icon"),l=Yr("GuiButton");return As(),Ps("div",{class:Fe(a.classNames)},[a.activeControls.length<=1?(As(),Ps("div",{key:0,ref:a.activeControls[0].ref,class:"m-media-controls__single"},[(As(!0),Ps(Ss,null,ea(a.activeControls,(e=>(As(),Os(s,{modelValue:this[e.value],"onUpdate:modelValue":H((t=>this[e.value]=t),"onUpdate:modelValue"),active:r.activeDropdown===e.name,label:e.label,name:e.name,options:e.options,onClick:a.handleClick,onNode:a.setNode,onToggleDropdown:a.toggleDropdown,onInput:H((t=>a.handleInput(e.name,t)),"onInput")},null,8,["modelValue","onUpdate:modelValue","active","label","name","options","onClick","onNode","onToggleDropdown","onInput"])))),256))],512)):(As(),Os(l,{key:1,"aria-label":e.localized.controlsLabel,"aria-expanded":r.isMenuOpen?"true":"false",modifiers:["outline"],id:"moreControls",name:"moreControls",ref:"more
100Controls",onClick:a.toggleMenu,onKeyup:t[0]||(t[0]=Zl((e=>a.toggleMenu(!1)),["esc"]))},{default:Ii((()=>[Bs("span",null,ze(e.localized.controlsLabel),1),Hs(o,{"aria-hidden":"true",name:"dots",size:"18"})])),_:1},8,["aria-label","aria-expanded","onClick"])),Hs(No,{name:"a-media-controls__fade"},{default:Ii((()=>[r.isMenuOpen?(As(),Ps("ul",{key:0,class:Fe(["m-media-controls__menu",{"m-media-controls__menu--active":r.isMenuOpen}]),"aria-labelledby":"moreControls",ref:"menu"},[(As(!0),Ps(Ss,null,ea(a.activeControls,(e=>(As(),Ps("li",{class:Fe(["m-media-controls__dropdown",{"m-media-controls__dropdown--active":r.activeDropdown===e.name}]),ref_for:!0,ref:e.ref},[Hs(s,{modelValue:this[e.value],"onUpdate:modelValue":H((t=>this[e.value]=t),"onUpdate:modelValue"),active:r.activeDropdown===e.name,label:e.label,name:e.name,options:e.options,onClick:a.handleClick,onNode:a.setNode,onToggleDropdown:a.toggleDropdown,onToggleMenu:a.toggleMenu,onInput:H((t=>a.handleInput(e.name,t)),"onInput")},null,8,["modelValue","onUpdate:modelValue","active","label","name","options","onClick","onNode","onToggleDropdown","onToggleMenu","onInput"])],2)))),256)),na(e.$slots,"default")],2)):Ws("",!0)])),_:3})],2)}]]),ehe={mixins:[Jie],data:H((()=>({fileFormatsAudio:{wav:"audio/wav",mp3:"audio/mpeg",mp4:"audio/mp4",ogg:"audio/ogg",adts:"audio/audio/aac",webm:"audio/webm",caf:"audio/x-caf",flac:"audio/flac"},fileFormatsVideo:{"3gp":"video/3gpp",m3u8:"application/x-mpegURL",mov:"video/quicktime",mp4:"video/mp4",ogg:"video/ogg",ogv:"video/ogg",qt:"video/quicktime",webm:"video/webm"}})),"data"),methods:{getMediaType(e,t){return e&&e.type?e.type:this.inferTypeFromSrc(e.src,t)},inferTypeFromSrc(e,t){if(!e)return;let n;const i="audio"===t?this.fileFormatsAudio:this.fileFormatsVideo;try{n=new URL(e).pathname}catch(a){n=e}const r=this.getFileExtension(n).substring(1);return r&&Object.keys(i).includes(r)?i[r]:null}}},the={class:"a-transcript-player"},nhe=Wee({name:"TranscriptPlayer",emits:["skipTo"],components:{GuiButton:Jee},props:{cues:{type:[Array,Object],default:H((()=>[]),"default"),required:!1},cueTime:{type:Number,required:!1},descriptiveCues:{type:[Array,Object],default:H((()=>[]),"default"),required:!1},descriptiveCueTime:{type:Number,required:!1}},computed:{orderedCues(){const e=[];for(let t of this.cues)t.type="caption",e.push(t);for(let t of this.descriptiveCues)t.type="audioDescription",e.push(t);return e.toSorted(((e,t)=>parseFloat(e.startTime)>parseFloat(t.startTime)))}},methods:{getClasses(e){let t=this.cueTime;return"audioDescription"==e.type&&(t=this.descriptiveCueTime),["link",t&&e.startTime<=t&&e.endTime>=t?`${e.type}-active`:`${e.type}-default`]},handleClick(e){"caption"==e.type&&this.$emit("skipTo",e.startTime)}}},[["render",function(e,t,n,i,r,a){const s=Yr("GuiButton");return As(),Ps("div",the,[(As(!0),Ps(Ss,null,ea(a.orderedCues,((e,t)=>(As(),Ps("span",{key:e.id+"_"+t},[Hs(s,{name:String(e.id||t),modifiers:a.getClasses(e),onClick:H((t=>a.handleClick(e)),"onClick")},{default:Ii((()=>[qs(ze(e.text),1)])),_:2},1032,["name","modifiers","onClick"])])))),128))])}]]),ihe={name:"AudioPlayer",components:{GuiButton:Jee,GuiLink:rre,Icon:Xie,MediaControls:Jpe,RichText:cre,TranscriptPlayer:nhe},mixins:[yte,ehe,Qie],props:{baseLocaleKey:{type:String,default:"m-audio-player"},defaultLang:{type:String,default:"en"},downloadURL:{type:String,default:null},showDownload:{type:Boolean,default:!1},sources:{type:Array,required:!0},tracks:{type:Array,required:!1,default:H((()=>[]),"default")},enableInteractiveTranscript:{type:Boolean,default:!1},subtitle:{type:String,default:null},title:{type:String,default:null},transcriptId:{type:String,default:null}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey,strings:{ariaFastForward:"ariaFastForward",ariaJumpToTranscript:"ariaJumpToTranscript",ariaPlaybackRateOptions:"ariaPlaybackRateOptions",ariaProgressBarLabel:"ariaProgressBarLabel",ariaRewindLabel:"ariaRewindLabel",volumeLabel:"volumeLabel",downloadLabel:"downloadLabel",fastForwardLabel:"fastForwardLabel",jumpToTranscriptLabel:"jumpToTranscriptLabel",normalRateLabel:"normalRateLabel",rewindLabel:"rewindLabel",playbackSpeedLabel:"playbackSpeedLabel",playStatusLabelPause:"playStatusLabelPause",playStatusLabelPlay:"playStatusLabelPlay"}}))),"setup"),data(){return{audioPlayer:void 0,backgroundVal:0,currentSeconds:0,durationSeconds:0,hoverValue:0,isLoaded:!1,isMuted:!1,isPlaying:!1,loadedAmount:0,menuOpen:!1,playbackRate:1,playbackRates:[.5,.75,1,1.25,1.5,1.75,2,2.25,2.5,2.75,3],seekPercentage:1,tooltipPos:0,volume:100,previousVolume:35,preferredSource:this.sources.find((e=>e.preferred)),selectedSource:this.preferredSource||this.sources[0],captions:{language:null,on:!1,activeVttTrack:void 0,showInteractiveTranscript:!1}}},computed:{ariaComponentLabel(){return this.translatePart("ariaComponentLabel",{subtitle:this.displaySubtitle?" - "+this.displaySubtitle:""})},ariaDownloadLabel(){return this.translatePart("ariaDownloadLabel",{subtitle:this.displaySubtitle})},captionLanguages(){const e=[...this.tracks.map((({language:e})=>e))];return[...new Set(e)]},currentPlayedTime(){return this.formatTime(this.currentSeconds)},displayTitle(){var e,t;return(null==(e=this.selectedSource)?void 0:e.title)||(null==(t=this.preferredSource)?void 0:t.t
100itle)||this.title},displaySubtitle(){var e,t;return(null==(e=this.selectedSource)?void 0:e.subtitle)||(null==(t=this.preferredSource)?void 0:t.subtitle)||this.subtitle},currentDownloadURL(){var e,t;return this.downloadURL||(null==(e=this.selectedSource)?void 0:e.downloadURL)||(null==(t=this.preferredSource)?void 0:t.downloadURL)},duration(){return this.formatTime(this.durationSeconds)},muteStatusLabel(){const e=this.isMuted?"muteStatusLabelUnMute":"muteStatusLabelMute";return this.translatePart(e)},percentComplete(){return parseInt(this.currentSeconds/this.durationSeconds*100)},playStatusLabel(){return this.isPlaying?this.translatePart("playStatusLabelPause"):this.translatePart("playStatusLabelPlay")},audioLanguages(){return this.sources.flatMap((({language:e})=>[e])).filter(Boolean)}},mounted(){this.$nextTick((function(){this.audioPlayer=this.$refs.audioPlayer,this.audioPlayer.load()}))},watch:{volume:H((function(e){this.audioPlayer.volume=e/100,this.isMuted=0===e}),"volume")},methods:{calcTooltip(e){this.hoverValue=Math.ceil(e.offsetX)/e.target.clientWidth*parseFloat(e.target.getAttribute("max")),this.tooltipPos=(e.offsetX/e.target.clientWidth*100).toFixed(0)},formatTime(e){var t=Math.floor(e/60)||0,n=Math.floor(e-60*t)||0;return t+":"+(n<10?"0":"")+n},getBuffered(){let e,t=this.audioPlayer.buffered;t.length&&(e=100*t.end(0)/this.audioPlayer.duration,this.loadedAmount=e.toFixed(2)),setTimeout(this.getBuffered,50)},handleKeyPress(e){if("INPUT"!=e.target.tagName){if(this.$refs.volumeWrapper.contains(e.target))switch(e.keyCode){case 35:e.preventDefault(),this.volume=100;break;case 36:e.preventDefault(),this.volume=0;break;case 33:e.preventDefault(),this.volume=Math.min(Math.max(this.volume-=10,0),100);break;case 34:e.preventDefault(),this.volume=Math.min(Math.max(this.volume+=10,0),100)}else switch(e.keyCode){case 35:e.preventDefault(),this.currentSeconds=this.durationSeconds,this.audioPlayer.currentTime=this.currentSeconds;break;case 36:e.preventDefault(),this.currentSeconds=0,this.audioPlayer.currentTime=this.currentSeconds;break;case 33:e.preventDefault(),this.skip("back",5);break;case 34:e.preventDefault(),this.skip("forward",5)}switch(e.keyCode){case 38:e.preventDefault(),this.volume=Math.min(Math.max(this.volume+=5,0),100);break;case 40:e.preventDefault(),this.volume=Math.min(Math.max(this.volume-=5,0),100);break;case 37:e.preventDefault(),this.skip("back");break;case 39:e.preventDefault(),this.skip();break;case 32:["BUTTON","LI"].includes(e.target.tagName)||this.toggleAudio()}}},toggleCaptions(){const e=this.audioPlayer.textTracks;for(let t=0;t<e.length;++t){const n=e[t];!this.captions.on||"captions"!==n.kind&&"subtitles"!==n.kind||n.language!==this.captions.language?(n.mode="hidden",this.captions.activeVttTrack=void 0):(n.mode="showing",this.captions.activeVttTrack=n,null==n||n.addEventListener("cuechange",(()=>{this.captions.currentCueTime=parseFloat(this.audioPlayer.currentTime)})))}},load(){if(!(this.audioPlayer.readyState>=2))throw new Error("Failed to load audio file.");this.isLoaded=!0,this.durationSeconds=parseInt(this.audioPlayer.duration),this.getBuffered()},seek(e){this.isLoaded&&(this.currentSeconds=e.target.value,this.audioPlayer.currentTime=e.target.value)},setVolume(e){const t=e.target.value;this.isMuted=t<=0,this.volume=t,this.audioPlayer.volume=t/100},skip(e=null,t=null){const n=t||this.seekPercentage,i=.01*("back"===e?-1*n:n)*this.audioPlayer.duration;this.audioPlayer.currentTime+=Math.round(i)},switchSrc(e){const t=this.audioPlayer.currentTime;this.audioPlayer.setAttribute("src",e),this.audioPlayer.currentTime=t,this.isPlaying&&this.audioPlayer.play()},toggleAudio(){this.audioPlayer.paused?(this.audioPlayer.play(),this.isPlaying=!0):(this.audioPlayer.pause(),this.isPlaying=!1)},toggleMute(){const{volumeSlider:e}=this.$refs;this.isMuted=!this.isMuted,this.isMuted?(this.previousVolume=e.value,this.volume=0,e.style.setProperty("--value","0%")):(this.volume=this.previousVolume,e.style.setProperty("--value",`${e.value}%`))},updateTime(){this.currentSeconds=parseInt(this.audioPlayer.currentTime)},updateControls(e,t){if("rates"==t&&(this.audioPlayer.playbackRate=e,this.playbackRate=e),"langs"==t){let t=this.sources.find((t=>t.language==e));this.selectedSource=t||this.preferredSource||this.sources[0],this.switchSrc(this.selectedSource.src)}"captions"==t&&(this.captions.language=e,this.captions.on="off"!==e,this.toggleCaptions()),"interactiveTranscripts"==t&&(this.captions.showInteractiveTranscript="off"!==e)},handleControlsUpdate(e){const t=Object.entries(e)[0];this.updateControls(t[1],t[0])}}},rhe={class:"m-audio-player__inner"},ahe=["aria-label"],she={class:"m-audio-player__main"},ohe={class:"m-audio-player__controls"},lhe=["aria-label"],uhe={class:"visually-hidden"},che={class:"visually-hidden"},dhe=["aria-label"],phe={class:"visually-hidden"},hhe={class:"m-audio-player__progress"},fhe={class:"m-audio-player__time","aria-hidden":"true"},mhe={class:"m-audio-player__current"},ghe={class:"m-audio-player__duration","data-chromatic":"ignore"},yhe={class:"m-audio-player__range"},vhe=["src","type"],bhe=["default","kind","label","srclang","src"],_he=["aria-label","aria-valuetext","max","value"],whe={class:"m-audio-player__volume",ref:"volumeWrapper"},She={class:"m-audio-player__range"},Che=["aria-valuetext","aria-label"],khe=["aria-label"],xhe=["data-label"],The={class:"visually-hidden"},Ehe={class:"m-audio-player__footer"}
100,Ahe={class:"m-audio-player__download-link"},Lhe={key:0},Ihe=Wee(ihe,[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("Icon"),l=Yr("GuiButton"),u=Yr("GuiLink"),c=Yr("MediaControls"),d=Yr("TranscriptPlayer");return n.sources?(As(),Os(Xr(e.hasDefaultSlotContent?"figure":"div"),{key:0,class:"m-audio-player",onKeydown:a.handleKeyPress},{default:Ii((()=>{var i,p;return[Bs("div",rhe,[a.displayTitle?(As(),Os(s,{key:0,class:"m-audio-player__title",content:a.displayTitle},null,8,["content"])):Ws("",!0),t[15]||(t[15]=Bs("span",{class:"visually-hidden"},":Â ",-1)),a.displaySubtitle?(As(),Os(s,{key:1,class:"m-audio-player__subtitle",content:a.displaySubtitle},null,8,["content"])):Ws("",!0),Bs("div",{"aria-label":a.ariaComponentLabel,class:"m-audio-player__player",role:"region"},[Bs("div",she,[Bs("div",ohe,[Bs("button",{"aria-label":e.localized.ariaRewindLabel,class:"m-audio-player__btn",ref:"rewind",onClick:t[0]||(t[0]=e=>a.skip("back"))},[Hs(o,{"aria-hidden":"true",name:"rewind"}),Bs("span",uhe,ze(e.localized.rewindLabel),1)],8,lhe),Hs(l,{"aria-label":a.playStatusLabel,modifiers:["outline"],class:"m-audio-player__btn m-audio-player__btn--play",name:"playToggle",ref:"playToggle",onClick:a.toggleAudio},{default:Ii((()=>[Hs(o,{"aria-hidden":"true",name:this.isPlaying?"pause500":"play",size:"small"},null,8,["name"]),Bs("span",che,ze(a.playStatusLabel),1)])),_:1},8,["aria-label","onClick"]),Bs("button",{"aria-label":e.localized.ariaFastForward,class:"m-audio-player__btn",ref:"forward",onClick:t[1]||(t[1]=(...e)=>a.skip&&a.skip(...e))},[Hs(o,{"aria-hidden":"true",name:"fast-forward"}),Bs("span",phe,ze(e.localized.fastForwardLabel),1)],8,dhe)]),Bs("div",hhe,[Bs("div",fhe,[Bs("span",mhe,ze(a.currentPlayedTime),1),Bs("span",ghe,ze(a.duration),1)]),Bs("div",yhe,[Bs("audio",{ref:"audioPlayer",preload:"",controls:"",onLoadeddata:t[2]||(t[2]=(...e)=>a.load&&a.load(...e)),onPause:t[3]||(t[3]=e=>r.isPlaying=!1),onPlay:t[4]||(t[4]=e=>r.isPlaying=!0),onTimeupdate:t[5]||(t[5]=(...e)=>a.updateTime&&a.updateTime(...e))},[(As(!0),Ps(Ss,null,ea(n.sources,((t,n)=>(As(),Ps("source",{ref_for:!0,ref:"sources",key:n,src:t.src,type:e.getMediaType(t,"audio")},null,8,vhe)))),128)),(As(!0),Ps(Ss,null,ea(n.tracks,((e,t)=>(As(),Ps("track",{ref_for:!0,ref:"tracks",key:t,default:e.default,kind:e.kind,label:e.label,srclang:e.language,src:e.src},null,8,bhe)))),128))],544),Bs("input",{"aria-label":e.localized.ariaProgressBarLabel,"data-chromatic":"ignore",ref:"progress",type:"range","aria-valuetext":`${a.currentPlayedTime} of ${a.duration}`,max:r.durationSeconds,min:"0",style:Pe(`--value: ${a.percentComplete};--buffered: ${r.loadedAmount}%;`),value:r.currentSeconds,onChange:t[6]||(t[6]=(...e)=>a.seek&&a.seek(...e)),onClick:t[7]||(t[7]=(...e)=>a.seek&&a.seek(...e)),onMousemove:t[8]||(t[8]=(...e)=>a.calcTooltip&&a.calcTooltip(...e))},null,44,_he),Bs("div",{class:"m-audio-player__range-focus","aria-hidden":"true",style:Pe(`left: ${a.percentComplete}%`)},null,4),Bs("div",{"aria-hidden":"true",class:"m-audio-player__range-tooltip",style:Pe(`left: ${r.tooltipPos}%`)},ze(a.formatTime(Math.round(this.hoverValue))),5)])]),Bs("div",whe,[Bs("div",She,[$i(Bs("input",{"onUpdate:modelValue":t[9]||(t[9]=e=>r.volume=e),"aria-valuetext":r.volume,style:Pe(`--value: ${r.volume}`),"aria-label":e.localized.volumeLabel,min:"0",max:"100",ref:"volumeSlider",type:"range",onChange:t[10]||(t[10]=(...e)=>a.setVolume&&a.setVolume(...e)),onClick:t[11]||(t[11]=(...e)=>a.setVolume&&a.setVolume(...e))},null,44,Che),[[zl,r.volume,void 0,{number:!0}]]),t[14]||(t[14]=Bs("div",{class:"m-audio-player__range-focus","aria-hidden":"true"},null,-1))]),Bs("button",{"aria-label":a.muteStatusLabel,class:"m-audio-player__btn",ref:"muteBtn",onClick:t[12]||(t[12]=(...e)=>a.toggleMute&&a.toggleMute(...e))},[Bs("span",{"data-label":a.muteStatusLabel,class:"icon"},[Hs(o,{"aria-hidden":"true",name:r.isMuted?"Mute":"Volume"},null,8,["name"])],8,xhe),Bs("span",The,ze(a.muteStatusLabel),1)],8,khe)],512)]),Bs("div",Ehe,[Bs("span",Ahe,[n.showDownload&&a.currentDownloadURL?(As(),Os(u,{key:0,"aria-label":a.ariaDownloadLabel,href:a.currentDownloadURL,iconName:"download500",iconSize:16,underline:!0,withIcon:"after",download:""},{default:Ii((()=>[qs(ze(e.localized.downloadLabel),1)])),_:1},8,["aria-label","href"])):Ws("",!0)]),Hs(c,{"audio-languages":a.audioLanguages,"caption-languages":a.captionLanguages,"enable-interactive-transcript":n.enableInteractiveTranscript,onUpdateControls:a.handleControlsUpdate},null,8,["audio-languages","caption-languages","enable-interactive-transcript","onUpdateControls"])])],8,ahe)]),e.hasDefaultSlotContent?(As(),Ps("figcaption",Lhe,[na(e.$slots,"default")])):Ws("",!0),n.transcriptId?(As(),Os(u,{key:1,"aria-label":e.localized.ariaJumpToTranscript,href:`#${n.transcriptId}`},{default:Ii((()=>
100[qs(ze(e.localized.jumpToTranscriptLabel),1)])),_:1},8,["aria-label","href"])):Ws("",!0),null!=(i=r.captions)&&i.activeVttTrack&&r.captions.showInteractiveTranscript?(As(),Os(d,{key:2,cues:r.captions.activeVttTrack.cues,"cue-time":null==(p=r.captions)?void 0:p.currentCueTime,onSkipTo:t[13]||(t[13]=e=>a.seek({target:{value:e}}))},null,8,["cues","cue-time"])):Ws("",!0)]})),_:3},40,["onKeydown"])):Ws("",!0)}]]),$he={class:"m-biography"},Dhe={class:"m-biography__main"},Phe={class:"m-biography__inner"},Ohe={class:"m-biography__aside"},Mhe={class:"m-biography__inner"},Rhe={key:0,class:"m-biography__meta"},Nhe={key:1,class:"m-biography__meta m-biography__meta--secondary"},Fhe=Wee({name:"Biography",mixins:[Jie],components:{ListOfLinksWithHeading:Wre,RichText:cre},props:{content:{type:String,default:null},links:{type:Array,default:null},metaPrimary:{type:String,default:null},metaSecondary:{type:String,default:null},baseHeadingLevel:{type:Number,default:2}},computed:{linksHeadingLevel(){return this.baseHeadingLevel}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("ListOfLinksWithHeading");return As(),Ps("div",$he,[Bs("div",Dhe,[Bs("div",Phe,[n.content?(As(),Os(s,{key:0,content:n.content},null,8,["content"])):Ws("",!0)])]),Bs("div",Ohe,[Bs("div",Mhe,[n.metaPrimary?(As(),Ps("span",Rhe,ze(n.metaPrimary),1)):Ws("",!0),n.metaSecondary?(As(),Ps("span",Nhe,ze(n.metaSecondary),1)):Ws("",!0),n.links?(As(),Os(o,{key:2,heading:"Social Links",headingLevel:a.linksHeadingLevel,showHeading:!1,modifiers:["grid"],links:n.links,withIcons:"before"},null,8,["headingLevel","links"])):Ws("",!0)])])])}]]),Bhe={"&":"&","<":"<",">":">",'"':""","'":"'"},Hhe=H(((e,t="\n",n="\n")=>{if(e.text&&!e.tokens)return e.text+t;if(Array.isArray(e))return e.map((e=>Hhe(e,t))).join(n);if(e.items)return e.items.map((e=>Hhe(e,t))).join(n);const i=e.tokens;return null==i?"":i.text?i.text:i.map((e=>e.text)).join("")+t}),"Mi"),jhe=H((e=>Hhe(e,"\n")),"zt"),Uhe=H((()=>""),"Vr$1"),Vhe=H((e=>Hhe(e,"")),"Li"),qhe={blockquote:jhe,checkbox:jhe,code:jhe,heading:jhe,hr:Uhe,html:Uhe,list:jhe,listitem:jhe,paragraph:jhe,space:jhe,table:H((e=>Hhe(e.header,""," ")+"\n"+e.rows.map((e=>Hhe(e,""," "))).join("\n")+"\n"),"table"),tablecell:H((e=>Hhe(e.tokens,""," ")),"tablecell"),tablerow:jhe,br:H((()=>"\n"),"br"),codespan:Vhe,del:Vhe,em:Vhe,image:Vhe,link:Vhe,strong:Vhe,text:Vhe};function zhe(e,t={}){if(!e)return"";const{escapeHtml:n=!0,gfm:i=!0,htmlEntities:r=!0,inline:a=!0}=t;let s=ny(e,{gfm:i,renderer:qhe});return r||(s=(e=>{for(const[t,n]of Object.entries(Bhe)){const i=new RegExp(n,"g");e=e.replaceAll(i,t)}return e})(s)),a&&(s=s.trim()),n?(e=>{if(!e)return"";const t=Object.keys(Bhe).join(""),n=new RegExp(`[${t}]`,"g");return e.replaceAll(n,(e=>Bhe[e]))})(s):s}H(zhe,"i8");const Whe=["aria-label"],Ghe=["id"],Khe=["aria-labelledby"],Yhe=["onClick","onKeyup"],Zhe=Wee({name:"Breadcrumbs",mixins:[nte],components:{GuiLink:rre},props:{items:{type:Array,default:null},label:{type:String,default:"Breadcrumb Navigation"},modifiers:{type:Array,default:H((()=>["flex"]),"default")}},data:H((()=>({eventBus:Rse(),id:`breadcrumbs${br()}Heading`})),"data"),computed:{classes(){return this.modifiers.map((e=>`m-breadcrumbs__list--${e}`))},navLabel(){if(this.label)return this.label.replace(/( [nN]avigation)/g,"")}},methods:{stripMarkdownSyntax:zhe,itemClick(e){this.eventBus.emit("breadcrumbItemClick",e)}}},[["render",function(e,t,n,i,r,a){const s=Yr("GuiLink");return n.items?(As(),Ps("nav",{key:0,class:"m-breadcrumbs","aria-label":a.navLabel},[Bs("span",{id:r.id,class:"visually-hidden"},ze(n.label),9,Ghe),Bs("ul",{"aria-labelledby":r.id,class:Fe(a.classes)},[(As(!0),Ps(Ss,null,ea(n.items,((t,i)=>(As(),Ps("li",{key:`breadcrumb${i}-${n.items.length}`},[Hs(s,{href:t.url?e.withBaseUrl(t.url):void 0,to:t.to,"aria-current":i===n.items.length-1?"page":null,class:"a-link"},{default:Ii((()=>[Bs("span",{onClick:H((e=>a.itemClick(t)),"onClick"),onKeyup:Zl((e=>a.itemClick(t)),["enter"])},ze(a.stripMarkdownSyntax(t.text,{htmlEntities:!1,escapeHtml:!1})),41,Yhe)])),_:2},1032,["href","to","aria-current"])])))),128))],10,Khe)],8,Whe)):Ws("",!0)}]]),Xhe={class:"m-cta s-bg--navy"},Qhe={class:"m-cta__content"},Jhe=Wee({name:"CallToAction",mixins:[nte],components:{GuiLink:rre,Heading:jre,RichText:cre},props:{content:{type:String,default:null},cta:{type:Object,default:null},headingLevel:{type:Number,default:2},title:{type:String,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("RichText"),l=Yr("GuiLink");return As(),Ps("div",Xhe,[Bs("div",Qhe,[n.title?(As(),Os(s,{key:0,level:n.headingLevel,class:"m-cta__heading"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["level"])):Ws("",!0),n.content?(As(),Os(o,{key:1,content:n.content},null,8,["content"])):Ws("",!0)]),n.cta?(As(),Os(l,Zs({key:0},n.cta,{button:!0}),{default:Ii((()=>[qs(ze(n.cta.text),1)])),_:1},16)):Ws("",!0)])}]]),efe={name:"Item",components:{GuiLink:rre,Heading:jre,Icon:Xie,ImageResponsive:vae,RichText:cre},mixins:[Jie],props:{date:{type:String,default:null},excerpt:{type:String,default:null},headingLevel:{type:Number,default:3},href:{type:String,default:null},image:{type:Object,default:null},modifiers:{type:Array,default:H((()=>[]),"default")},showImage:{type:Boolean,default:!1},subtitle:{type:String,default:null},title:{type:String,default:null}},data:H((()=>({headingId:`ChronologicalListingItem${br()}Heading`})),"data"),computed:{hasExternalLink(){if(this.href)return this.href&&this.isExternal(this.href)},classes(){return this.modifiers.map((e=>`m-chronological-listing-item--${e}`))},innerClasses(){const e=["m-chronological-listing-item__inner"];return this.image&&e.push("m-chronological-listing-item__inner--has-image"),this.date&&e.push("m-chronological-listing-item__inner--has-aside"),e}
100,linkTarget(){if(this.href)return this.getLinkTarget(this.href)}}},tfe={key:0,class:"m-chronological-listing-item__aside"},nfe={class:"m-chronological-listing-item__main"},ife={class:"m-chronological-listing-item__title-underline"},rfe={key:1,class:"m-chronological-listing-item__image"},afe=Wee(efe,[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("Icon"),l=Yr("Heading"),u=Yr("ImageResponsive");return As(),Ps("section",{class:Fe(["m-chronological-listing-item",...a.classes]),"data-testid":"m-chronological-listing-item"},[(As(),Os(Xr(n.href?"GuiLink":"div"),{class:Fe(a.innerClasses),href:n.href,target:a.linkTarget},{default:Ii((()=>[n.date?(As(),Ps("div",tfe,ze(n.date),1)):Ws("",!0),Bs("div",nfe,[n.subtitle?(As(),Os(s,{key:0,content:n.subtitle,class:"m-chronological-listing-item__subtitle"},null,8,["content"])):Ws("",!0),n.title?(As(),Os(l,{key:1,level:n.headingLevel,id:r.headingId,class:"m-chronological-listing-item__title","data-testid":"m-chronological-listing-item__title"},{default:Ii((()=>[Bs("span",ife,[Hs(s,{content:n.title},null,8,["content"])]),a.hasExternalLink?(As(),Os(o,{key:0,name:"outbound",size:24})):Ws("",!0)])),_:1},8,["level","id"])):Ws("",!0)]),n.showImage?(As(),Ps("div",rfe,[Hs(u,Zs(F({},n.image),{size:"post_editorial_inline"}),null,16)])):Ws("",!0)])),_:1},8,["class","href","target"]))],2)}]]),sfe=H((e=>{const t=new Date(e);return!!e&&!isNaN(t.valueOf())}),"$r$1"),ofe=H(((e=[],t="ascending")=>{if(e.length){if(!["ascending","descending"].includes(t))throw new Error(`\n Invalid sort order "${t}" passed to sortByKeys,\n\n value of sortOrder argument must be either "ascending" or "descending".\n `);return e.map(((e,n,i)=>{const r=Array.isArray(e)?e[0]:e.key||e,a=Array.isArray(e)?e[1]:e.order||t;i[n]=[r,a]})),(t,n)=>{for(const[i,r]of e)if("descending"===r&&([t,n]=[n,t]),t[i]!==n[i]){switch(r){case"ascending":if(null==t[i])return 1;if(null==n[i])return-1;break;case"descending":if(null==t[i])return-1;if(null==n[i])return 1}if(!isNaN(t[i])&&!isNaN(n[i])){if(t[i]>n[i])return 1;if(t[i]<n[i])return-1}if(sfe(t[i])&&sfe(n[i])){if(new Date(t[i])>new Date(n[i]))return 1;if(new Date(t[i])<new Date(n[i]))return-1}if("string"==typeof t[i]&&"string"==typeof n[i])return t[i].localeCompare(n[i])}return 0}}}),"Po$1"),lfe=H(((e,t,n)=>{var i="";if(n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),i="; expires="+r.toGMTString()}document.cookie=e+"="+t+i+"; path=/"}),"Ro"),ufe=H((e=>{if(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var r=n[i];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null}return null}),"Fo$1");function cfe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Object.freeze(Object.defineProperty({__proto__:null,deleteCookie:H((e=>{e&&(document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`)}),"deleteCookie"),getCookie:ufe,setCookie:lfe},Symbol.toStringTag,{value:"Module"})),H(cfe,"f8");var dfe,pfe,hfe={exports:{}};const ffe=cfe(dfe?hfe.exports:(dfe=1,hfe.exports=(pfe="day",function(e,t,n){var i=H((function(e){return e.add(4-e.isoWeekday(),pfe)}),"s"),r=t.prototype;r.isoWeekYear=function(){return i(this).year()},r.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),pfe);var t,r,a,s=i(this),o=(t=this.isoWeekYear(),a=4-(r=(this.$u?n.utc:n)().year(t).startOf("year")).isoWeekday(),r.isoWeekday()>4&&(a+=7),r.add(a,pfe));return s.diff(o,"week")+1},r.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=r.startOf;r.startOf=function(e,t){var n=this.$utils(),i=!!n.u(t)||t;return"isoweek"===n.p(e)?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}})));function mfe(e,t="days"){return yM().add(e,t).toDate()}function gfe(e={formatted:!1}){const t=yM();return e.formatted?t.format("YYYY-MM-DD"):[t.hour(0).minute(0).second(0).toDate(),t.hour(23).minute(59).second(59).toDate()]}function yfe(e={formatted:!1}){const t=yM().add(1,"days");return e.formatted?t.format("YYYY-MM-DD"):[t.hour(0).minute(0).second(0).toDate(),t.hour(23).minute(59).second(59).toDate()]}function vfe(e={formatted:!1}){const t=yM().add(6,"months");return e.formatted?t.format("YYYY-MM-DD"):[t.hour(0).minute(0).second(0).toDate(),t.hour(23).minute(59).second(59).toDate()]}function bfe(e={formatted:!1}){const t=yM().isoWeekday(6),n=yM().isoWeekday(7);return e.formatted?[t.format("YYYY-MM-DD"),n.format("YYYY-MM-DD")]:[t.hour(0).minute(0).second(0).toDate(),n.hour(23).minute(59).second(59).toDate()]}H(mfe,"Do$1"),H(gfe,"Hi"),H(yfe,"zl"),H(vfe,"Bo$1"),H(bfe,"El$1"),yM.extend(ffe),Object.freeze(Object.defineProperty({__proto__:null,getTimeFromNow:mfe,sixMonthsFromNow:vfe,thisWeekend:bfe,today:gfe,tomorrow:yfe},Symbol.toStringTag,{value:"Module"}));const _fe=H((e=>{const t=e.match(new RegExp("(?<YYYY>\\d{4})-?(?<MM>\\d{2})?-?(?<DD>\\d{2})?"));return t&&t.groups}),"xa"),wfe=H((function(){const e="data-focus-method",t="touch";let n,i=!1;typeof window<"u"&&(document.addEventListener("keydown",(function(){i="key"}),!0),document.addEventListener("mousedown",(function(){i!==t&&(i="mouse")}),!0),document.addEventListener("touchstart",(function(){i=t}),!0),document.addEventListener("focus",(function(t){i||(i=n),t.target&&"function"==typeof t.target.setAttribute&&(t.target.setAttribute(e,i),n=i,i=!1)}),!0),document.addEventListener("blur",(function(t){t.target&&"function"==typeof t.target.removeAttribute&&t.target.removeAttribute(e)}),!0),window.addEventListener("blur",(function(){i=!1})))}),"b8"),Sfe=H((function(){function e(){const e=.01*document.documentElement.clientHeight;document.documentElement.style.setProperty("--vh",`${e}px`)}H(e,"e"),typeof window<"u"&&(window.addEventListener("resize",e),e())}),"v8"),Cfe=H(((e,t)=>t>1||0===t?`${e}s`:e),"C8");var kfe=["__key","__init","__shim","__original","__index","__prevKey"];function xfe(){return Math.random().toString(36).substring(2,15)}function Tfe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Efe(e,t,n=!0,i=["__key"]){if(e===t)return!0;
100if("object"==typeof t&&"object"==typeof e){if(e instanceof Map||e instanceof Set)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return a=t,(r=e).source===a.source&&r.flags.split("").sort().join("")===a.flags.split("").sort().join("");if(null===e||null===t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n of i)if((n in e||n in t)&&e[n]!==t[n])return!1;for(const r in e)if(!(r in t)||e[r]!==t[r]&&!n||n&&!Efe(e[r],t[r],n,i))return!1;return!0}var r,a;return!1}function Afe(e){const t=typeof e;if("number"===t)return!1;if(void 0===e)return!0;if("string"===t)return""===e;if("object"===t){if(null===e)return!0;for(const t in e)return!1;return!(e instanceof RegExp||e instanceof Date)}return!1}function Lfe(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ife(e){return Lfe(e)||Array.isArray(e)}function $fe(e){if(!1===Lfe(e)||e.__FKNode__||!1===e.__POJO__)return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!1!==Lfe(n)&&!1!==n.hasOwnProperty("isPrototypeOf")}H(xfe,"Oo"),H(Tfe,"Tn$1"),H(Efe,"Ln$1"),H(Afe,"Vl"),H(Lfe,"Zl"),H(Ife,"wn$1"),H($fe,"Fr$1");var Dfe=H(((e,t,n=!1,i=!1)=>{if(null===t)return null;const r={};if("string"==typeof t)return t;for(const a in e)if(!Tfe(t,a)||void 0===t[a]&&i)r[a]=e[a];else{if(n&&Array.isArray(e[a])&&Array.isArray(t[a])){r[a]=e[a].concat(t[a]);continue}if(void 0===t[a])continue;$fe(e[a])&&$fe(t[a])?r[a]=Dfe(e[a],t[a],n,i):r[a]=t[a]}for(const a in t)Tfe(r,a)||void 0===t[a]||(r[a]=t[a]);return r}),"gs$1");function Pfe(e,t=kfe){if(null===e||e instanceof RegExp||e instanceof Date||e instanceof Map||e instanceof Set||"function"==typeof File&&e instanceof File)return e;let n;n=Array.isArray(e)?e.map((e=>"object"==typeof e?Pfe(e,t):e)):Object.keys(e).reduce(((n,i)=>(n[i]="object"==typeof e[i]?Pfe(e[i],t):e[i],n)),{});for(const i of t)i in e&&Object.defineProperty(n,i,{enumerable:!1,value:e[i]});return n}function Ofe(e){return"object"==typeof e?Pfe(e):e}function Mfe(e){return void 0!==e&&"false"!==e&&!1!==e||void 0}function Rfe(e){return Object.isFrozen(e)?e:Object.defineProperty(e,"__init",{enumerable:!1,value:!0})}function Nfe(){const e=[];let t=0;const n=H((t=>e.push(t)),"t"),i=H((n=>{const r=e[t];return"function"==typeof r?r(n,(e=>(t++,i(e)))):(t=0,n)}),"s");return n.dispatch=i,n.unshift=t=>e.unshift(t),n.remove=t=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},n}H(Pfe,"An$1"),H(Ofe,"ql"),H(Mfe,"Dr$1"),H(Rfe,"Gi"),H(Nfe,"No$1");var Ffe=Nfe();Ffe(((e,t)=>(e.message||(e.message=`E${e.code}`),t(e))));var Bfe=Nfe();function Hfe(e,t={}){Bfe.dispatch({code:e,data:t})}function jfe(e,t={}){throw Error(Ffe.dispatch({code:e,data:t}).message)}function Ufe(e,t){return F({blocking:!1,key:xfe(),meta:{},type:"state",visible:!0},e)}function Vfe(e,...t){const n=`${e.name}-set`,i=H((e=>{return Ufe({key:(t=e,t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g," ").trim().replace(/\s+/g,"-")),type:"error",value:e,meta:{source:n,autoClear:!0}});var t}),"s");return t.filter((e=>!!e)).map((e=>{if("string"==typeof e&&(e=[e]),Array.isArray(e))return e.map((e=>i(e)));{const t={};for(const n in e)Array.isArray(e[n])?t[n]=e[n].map((e=>i(e))):t[n]=[i(e[n])];return t}}))}H(Hfe,"Zo$1"),H(jfe,"Ha"),H(Ufe,"k8"),H(Vfe,"x8"),Bfe(((e,t)=>{e.message||(e.message=`W${e.code}`);const n=t(e);return console&&"function"==typeof console.warn&&console.warn(n.message),n}));var qfe=new Map,zfe=new Map,Wfe=function(){const e=new Map,t=new Map;let n;const i=H(((t,i)=>{n?n.set(i.name,[t,i]):(e.has(i.name)&&e.get(i.name).forEach((e=>{(i.origin===t||e.modifiers.includes("deep"))&&e.listener(i)})),i.bubble&&t.bubble(i))}),"s");return i.flush=()=>{e.clear(),t.clear(),null==n||n.clear()},i.on=(n,i,r="push")=>{const[a,...s]=n.split("."),o=i.receipt||xfe(),l={modifiers:s,event:a,listener:i,receipt:o};return e.has(a)?e.get(a)[r](l):e.set(a,[l]),t.has(o)?t.get(o)[r](a):t.set(o,[a]),o},i.off=n=>{var i;t.has(n)&&(null==(i=t.get(n))||i.forEach((t=>{const i=e.get(t);Array.isArray(i)&&e.set(t,i.filter((e=>e.receipt!==n)))})),t.delete(n))},i.pause=e=>{n||(n=new Map),e&&e.walk((e=>e._e.pause()))},i.play=e=>{if(!n)return;const t=n;n=void 0,t.forEach((([e,t])=>i(e,t))),e&&e.walk((e=>e._e.play()))},i}();function Gfe(e,t,n){let i=!0;return t in e.config._t?i=!1:e.emit(`config:${t}`,n,!1),t in e.props||(e.emit("prop",{prop:t,value:n}),e.emit(`prop:${t}`,n)),i}function Kfe(e,t){const n="string"==typeof e?(i=e,qfe.get(i)):e;var i;if(n){const e=H((e=>{const t=Ofe(e.props.initial);return void 0!==t?t:"group"===e.type?{}:"list"===e.type?[]:void 0}),"s");n._e.pause(n);const i=Ofe(t);return t&&!Afe(t)&&(n.props.initial=Ife(i)?Rfe(i):i,n.props._init=n.props.initial),n.input(e(n),!1),n.walk((t=>{"list"===t.type&&t.sync||t.input(e(t),!1)})),n.input(Afe(i)&&i?i:e(n),!1),"input"!==n.type&&t&&!Afe(t)&&Ife(t)&&n.walk((e=>{e.props.initial=Ife(e.value)?Rfe(e.value):e.value,e.props._init=e.props.initial})),n._e.play(n),function(e){const t=H((e=>{for(const t in e.store){const n=e.store[t];"error"===n.type||"ui"===n.type&&"incomplete"===t?e.store.remove(t):"state"===n.type&&e.store.set(B(F({},n),{value:!1}))}}),"d");t(e),e.walk(t)}(n),n.emit("reset",n),n}Hfe(152,e)}H(Gfe,"Br$1"),H(Kfe,"w8");var Yfe={delimiter:".",delay:0,locale:"en",rootClasses:H((e=>
100{return{[`formkit-${t=e,t.replace(/([a-z0-9])([A-Z])/g,((e,t,n)=>t+"-"+n.toLowerCase())).replace(" ","-").toLowerCase()}`]:!0};var t}),"rootClasses")},Zfe=Symbol("index"),Xfe=Symbol("removed"),Qfe=Symbol("moved"),Jfe=Symbol("inserted");function eme(e){return e&&"object"==typeof e&&!0===e.__FKNode__}H(eme,"Pl$1");var tme=H(((e,t,n)=>{jfe(102,[e,n])}),"Sn$1");function nme(e,t,n=!0){return{get:!!e&&((t,i)=>n?(...n)=>e(t,i,...n):e(t,i)),set:void 0!==t?t:tme.bind(null)}}H(nme,"re"),nme((function(e,t){return t}),tme,!1),nme((function(e,t,n,i){if("input"===e.type&&jfe(100,e),n.parent&&n.parent!==e&&n.parent.remove(n),!t.children.includes(n)){if(void 0!==i&&"list"===e.type){const r=t.children[i];r&&"__FKP"in r?(n._c.uid=r.uid,t.children.splice(i,1,n)):t.children.splice(i,0,n),Array.isArray(e.value)&&e.value.length<t.children.length&&e.disturb().calm({name:i,value:n.value,from:Jfe})}else t.children.push(n);n.isSettled||e.disturb()}if(n.parent!==e){if(n.parent=e,n.parent!==e)return e.remove(n),n.parent.add(n),e}else n.use(e.plugins);return sme(e,t,!1),e.ledger.merge(n),e.emit("child",n),e})),nme((function(e,t,n){var i;const r=Array.isArray(n)?n:Object.keys(n),a=Array.isArray(n)?{}:r.reduce(((e,t)=>("default"in n[t]&&(e[t]=n[t].default),e)),{});if(e.props.attrs){const i=F({},e.props.attrs);e.props._emit=!1;for(const t in i){const n=t.replace(/-([a-z0-9])/gi,((e,t)=>t.toUpperCase()));r.includes(n)&&(e.props[n]=i[t],delete i[t])}Array.isArray(n)||r.forEach((t=>{"default"in n[t]&&void 0===e.props[t]&&(e.props[t]=a[t])}));const s=Ofe(t._value);e.props.initial="input"!==e.type?Rfe(s):s,e.props._emit=!0,e.props.attrs=i}const s=ume(null!=(i=e.props.__propDefs)?i:[],n);return e.props.definition&&(e.props.definition.props=s),e.props.__propDefs=s,e.emit("added-props",n),e})),nme((function(e,t){return t.parent?t.parent.address.concat([e.name]):[e.name]}),tme,!1),nme((function(e,t,n){const i="string"==typeof n?n.split(e.config.delimiter):n;if(!i.length)return;const r=i[0];let a=e.parent;for(a||(String(i[0])===String(e.name)&&i.shift(),a=e),"$parent"===r&&i.shift();a&&i.length;){const t=i.shift();switch(t){case"$root":a=e.root;break;case"$parent":a=a.parent;break;case"$self":a=e;break;default:a=a.children.find((e=>!("__FKP"in e)&&String(e.name)===String(t)))||cme(a,t)}}return a||void 0})),nme((function(e,t,n){return eme(e.parent)&&e.parent._e(e.parent,n),e})),nme((function(e,t,n=!0,i){return e.store.filter((e=>!(void 0===i||e.meta.source===i)),"error"),n&&(i=i||`${e.name}-set`,e.walk((e=>{e.store.filter((e=>!("error"===e.type&&e.meta&&e.meta.source===i)))}))),e})),nme((function(e,t,n){var i;if(void 0!==n&&"input"!==e.type)return ome(t,n),sme(e,t,!0,!(!e.config.mergeStrategy||!e.config.mergeStrategy[n.name]));t._d>0&&t._d--,0===t._d&&(t.isSettled=!0,e.emit("settled",!0,!1),e.parent&&(null==(i=e.parent)||i.calm({name:e.name,value:t.value})),t._resolve&&t._resolve(t.value))})),nme(!1),nme((function(e,t,n){var i;t.type=n.type;const r=Pfe(n);e.props.__propDefs=ume(null!=(i=e.props.__propDefs)?i:[],(null==r?void 0:r.props)||[]),r.props=e.props.__propDefs,t.props.definition=r,t.value=t._value=rme({type:e.type,value:t.value}),n.forceTypeProp&&(e.props.type&&(e.props.originalType=e.props.type),t.props.type=n.forceTypeProp),n.family&&(t.props.family=n.family),n.features&&n.features.forEach((t=>t(e))),n.props&&e.addProps(n.props),e.emit("defined",n)})),nme((function(e,t){var n;return t._d<=0&&(t.isSettled=!1,e.emit("settled",!1,!1),t.settled=new Promise((e=>{t._resolve=e})),e.parent&&(null==(n=e.parent)||n.disturb())),t._d++,e})),nme((function(e,t){e.emit("destroying",e),e.store.filter((()=>!1)),e.parent&&e.parent.remove(e),function(e){if(zfe.has(e)){const t=zfe.get(e);zfe.delete(e),qfe.delete(t),Wfe(e,{payload:null,name:t,bubble:!1,origin:e})}}(e),e.emit("destroyed",e),t._e.flush(),t._value=t.value=void 0;for(const n in t.context)delete t.context[n];t.plugins.clear(),t.context=null})),nme((function(e,t,n,i){return t.traps.set(n,i),e})),nme((function(e,t){const n=t._value;return"list"===e.type&&e.sync&&function(e,t){const n=e._value;if(!Array.isArray(n))return;const i=[],r=new Set(t.children),a=new Map;
100n.forEach(((e,n)=>{if(t.children[n]&&t.children[n]._value===e)i.push(t.children[n]),r.delete(t.children[n]);else{i.push(null);const t=a.get(e)||[];t.push(n),a.set(e,t)}})),r.size&&a.size&&r.forEach((e=>{if(a.has(e._value)){const t=a.get(e._value),n=t.shift();i[n]=e,r.delete(e),t.length||a.delete(e._value)}}));const s=[];for(a.forEach((e=>{s.push(...e)}));r.size&&s.length;){const e=r.values().next().value,t=s.shift();if(void 0===t)break;i[t]=e,r.delete(e)}s.forEach(((e,t)=>{var n,r,a,s,o;i[e]=(o={value:t},{__FKP:!0,uid:Symbol(),name:null!=(n=null==o?void 0:o.name)?n:"p_"+ime++,value:null!=(r=null==o?void 0:o.value)?r:null,_value:null!=(a=null==o?void 0:o.value)?a:null,type:null!=(s=null==o?void 0:o.type)?s:"input",props:{},use:H((()=>{}),"use"),input(e){return this._value=e,this.value=e,Promise.resolve()},isSettled:!0})})),r.size&&r.forEach((e=>{if(!("__FKP"in e)){const t=e._c.parent;if(!t||"__FKP"in t)return;t.ledger.unmerge(e),e._c.parent=null,e.destroy()}})),t.children=i}(e,t),t.children.forEach((i=>{if("object"==typeof n)if(i.name in n){const e="input"!==i.type||n[i.name]&&"object"==typeof n[i.name]?Rfe(n[i.name]):n[i.name];if(!i.isSettled||(!Ife(e)||i.props.mergeStrategy)&&Efe(e,i._value))return;i.input(e,!1)}else"list"===e.type&&"number"!=typeof i.name||ome(t,{name:i.name,value:i.value}),n.__init||("group"===i.type?i.input({},!1):"list"===i.type?i.input([],!1):i.input(void 0,!1))})),e})),nme((function(e){if(e.parent){const t=[...e.parent.children].indexOf(e);return-1===t?e.parent.children.length:t}return-1}),(function(e,t,n,i){if(eme(e.parent)){const t=e.parent.children,n=i>=t.length?t.length-1:i<0?0:i,r=t.indexOf(e);return-1!==r&&(t.splice(r,1),t.splice(n,0,e),e.parent.children=t,"list"===e.parent.type&&e.parent.disturb().calm({name:n,value:Qfe,from:r}),!0)}return!1}),!1),nme((function(e,t,n,i=!0){return t._value=ame(e,e.hook.input.dispatch(n)),e.emit("input",t._value),e.isCreated&&"input"===e.type&&Efe(t._value,t.value)&&!e.props.mergeStrategy?(e.emit("commitRaw",t.value),t.settled):(t.isSettled&&e.disturb(),i?(t._tmo&&clearTimeout(t._tmo),t._tmo=setTimeout(sme,e.props.delay,e,t)):sme(e,t),t.settled)})),nme((function(e,t,n){t.children.forEach((e=>!("__FKP"in e)&&n(e)))})),nme((function(e,t,n,i,r=!0,a){return t._e(e,{payload:i,name:n,bubble:r,origin:e,meta:a}),e})),nme((function(e,t,n,i){return function(e,t,n="name"){const i="string"==typeof n?e=>e[n]==t:n,r=[e];for(;r.length;){const e=r.shift();if(!("__FKP"in e)){if(i(e,t))return e;r.push(...e.children)}}}(e,n,i)})),nme((function(e,t,n,i,r){return t._e.on(n,i,r)})),nme((function(e,t,n){return t._e.off(n),e})),nme(!1,(function(e,t,n,i){return eme(i)?(e.parent&&e.parent!==i&&e.parent.remove(e),t.parent=i,e.resetConfig(),i.children.includes(e)?e.use(i.plugins):i.add(e),!0):null===i&&(t.parent=null,!0)})),nme(!1),nme((function(e,t,n){const i=t.children.indexOf(n);if(-1!==i){n.isSettled&&e.disturb(),t.children.splice(i,1);let r=Mfe(n.props.preserve),a=n.parent;for(;void 0===r&&a;)r=Mfe(a.props.preserve),a=a.parent;r?e.calm():e.calm({name:"list"===e.type?i:n.name,value:Xfe}),n.parent=null,n.config._rmn=n}return e.ledger.unmerge(n),e.emit("childRemoved",n),e})),nme((function(e){let t=e;for(;t.parent;)t=t.parent;return t}),tme,!1),nme((function(e,t,n){return Kfe(e,n)})),nme((function(e,t){const n=e.parent||void 0;t.config=function(e={},t){let n;return new Proxy(e,{get(...i){const r=i[1];if("_t"===r)return e;const a=Reflect.get(...i);if(void 0!==a)return a;if(t){const e=t.config[r];if(void 0!==e)return e}if(e.rootConfig&&"string"==typeof r){const t=e.rootConfig[r];if(void 0!==t)return t}return"delay"===r&&"input"===(null==n?void 0:n.type)?20:Yfe[r]},set(...t){const i=t[1],r=t[2];if("_n"===i)return n=r,e.rootConfig&&e.rootConfig._add(n),!0;if("_rmn"===i)return e.rootConfig&&e.rootConfig._rm(n),n=void 0,!0;if(!Efe(e[i],r,!1)){const e=Reflect.set(...t);return n&&(n.emit(`config:${i}`,r,!1),Gfe(n,i,r),n.walk((e=>Gfe(e,i,r)),!1,!0)),e}return!0}})}(e.config._t,n),e.walk((e=>e.resetConfig()))})),nme((function(e,t,n,i){const r=`${e.name}-set`,a=e.hook.setErrors.dispatch({localErrors:n,childErrors:i});
100return Vfe(e,a.localErrors,a.childErrors).forEach((t=>{e.store.apply(t,(e=>e.meta.source===r))})),e})),nme((function(e){const t=e.name;do{if(!0===e.props.isForm)break;e.parent||jfe(106,t),e=e.parent}while(e);e.props.id&&function(e,t){const n=(t||document).getElementById(e);if(n instanceof HTMLFormElement){const e=new Event("submit",{cancelable:!0,bubbles:!0});n.dispatchEvent(e)}else Hfe(151,e)}(e.props.id,e.props.__root)})),nme((function(e,t,n,i="ui"){const r="string"==typeof n?{key:n,value:n,type:i}:n,a=e.hook.text.dispatch(r);return e.emit("text",a,!1),a.value})),nme(H((function e(t,n,i,r=!0,a=!0){return Array.isArray(i)||i instanceof Set?(i.forEach((i=>e(t,n,i))),t):(n.plugins.has(i)||(a&&"function"==typeof i.library&&i.library(t),r&&!1!==i(t)&&(n.plugins.add(i),t.children.forEach((e=>e.use(i))))),t)}),"e")),nme((function(e,t){var n;return"list"===(null==(n=e.parent)?void 0:n.type)?e.index:t.name!==Zfe?t.name:e.index}),!1,!1),nme((function(e,t,n,i=!1,r=!1){t.children.some((e=>{if("__FKP"in e)return!1;const t=n(e);return!(!i||!1!==t)||(!r||!1!==t)&&e.walk(n,i,r)}))}));var ime=0;function rme(e){return"group"===e.type?Rfe(e.value&&"object"==typeof e.value&&!Array.isArray(e.value)?e.value:{}):"list"===e.type?Rfe(Array.isArray(e.value)?e.value:[]):e.value}function ame(e,t){switch(e.type){case"input":break;case"group":t&&"object"==typeof t||jfe(107,[e,t]);break;case"list":Array.isArray(t)||jfe(108,[e,t])}return t}function sme(e,t,n=!0,i=!0){t._value=t.value=e.hook.commit.dispatch(t._value),"input"!==e.type&&i&&e.hydrate(),e.emit("commitRaw",t.value),e.emit("commit",t.value),n&&e.calm()}function ome(e,{name:t,value:n,from:i}){if(!Object.isFrozen(e._value))if("list"===(r=e).type&&Array.isArray(r._value)){const r=n===Xfe?[]:n===Qfe&&"number"==typeof i?e._value.splice(i,1):[n];e._value.splice(t,n===Qfe||i===Jfe?0:1,...r)}else{var r;n!==Xfe?e._value[t]=n:delete e._value[t]}}function lme(e){return Array.isArray(e)?e.reduce(((e,t)=>(e[t]={},e)),{}):e}function ume(e,t){return Array.isArray(e)&&Array.isArray(t)?e.concat(t):Dfe(lme(e),lme(t))}function cme(e,t){const n=String(t).match(/^(find)\((.*)\)$/);if(n){const[,t,i]=n,r=i.split(",").map((e=>e.trim()));return"find"===t?e.find(r[0],r[1]):void 0}}function dme(e){return"string"!=typeof e&&Tfe(e,"$el")}function pme(e){return t=>[e(t)]}function hme(e){return!(!e||"object"!=typeof e||!("$el"in e||"$cmp"in e||"$formkit"in e))}function fme(e,t={}){return"string"==typeof e?hme(t)||"string"==typeof t?t:e:Array.isArray(e)?hme(t)?t:e:Dfe(e,t)}H(rme,"M8"),H(ame,"T8"),H(sme,"bn$1"),H(ome,"Or$1"),H(lme,"Nr$1"),H(ume,"zr$1"),H(cme,"A8"),H(dme,"Er$1"),H(pme,"V8"),H(hme,"Zr$1"),H(fme,"$8");var mme=function(e,t,n=!1){return(...i)=>{const r=H((n=>{const r=t&&"string"!=typeof t?t():{$el:t};return(dme(r)||"string"!=typeof(a=r)&&Tfe(a,"$cmp"))&&(r.meta?r.meta.section=e:r.meta={section:e},i.length&&!r.children&&(r.children=[...i.map((e=>"function"==typeof e?e(n):e))]),dme(r)&&(r.attrs=F({class:`$classes.${e}`},r.attrs||{}))),{if:`$slots.${e}`,then:`$slots.${e}`,else:e in n?fme(r,n[e]):r};var a}),"n");return r._s=e,n?pme(r):r}}("wrapper","div");const gme=I2("fk-369772bd53",Pee),yme="a-gui-input",vme=H((e=>({[`a-gui-input__element--${e.props.type}`]:!0})),"qr$1"),bme={plugins:[gme],config:{rootClasses:H(((e,t)=>({[`${yme}__${e}`]:!0,[`${yme}--required`]:"outer"===e&&t.props.parsedRules.some((e=>"required"===e.name)),[`${yme}__group`]:"group"===t.props.type})),"rootClasses"),classes:{inner:vme,input:{$reset:!0},option:{$reset:!0,"a-gui-input":!0},options:vme,outer:{[`${yme}`]:!0},removeControl:"a-btn a-btn--icon",controlLabel:"visually-hidden"}},icons:{placeholder:"<svg></svg>",delete:'<svg fill="none" xmlns="http://www.w3.org/2000/svg" width="18" height="18"\n viewBox="0 0 18 18" class="a-icon a-icon--delete" style="--font-size: 15px;"\n aria-labelledby="icon32">\n <title id="icon0">Delete</title>\n <g>\n <path d="M1 17L17 1M1 1L17 17" stroke="currentColor"></path>\n </g>\n</svg>',check:'<svg fill="none" xmlns="http://www.w3.org/2000/svg" width="16" height="16"\n viewBox="0 0 16 16" class="a-icon a-icon--check" aria-labelledby="icon23"\n style="--font-size: 16px;">\n <title id="icon23">Check</title>\n <path\n d="M6.00021 12.06L1.47021 7.52997L2.53021 6.46997L6.00021 9.93997L13.4702 2.46997L14.5302 3.52997L6.00021 12.06Z"\n fill="currentColor"></path>\n</svg>'},props:{selectIcon:"placeholder",upControl:!1,downControl:!1,removeIcon:"delete"},inputs:{autocomplete:pX({$cmp:"GuiAutocomplete",props:{context:"$node.context",values:"$node.context.attrs.values",style:"$node.context.attrs.style",options:"$node.context.attrs.options"}},{library:{GuiAutocomplete:Sn(tae)}}
100),input:pX({$cmp:"GuiInput",props:{context:"$node.context",style:"$node.context.attrs.style",value:"$node.context.attrs.value"}},{library:{GuiInput:Sn(Mre)}}),submit:pX({$cmp:"GuiButton",props:{type:"submit",name:"submit",value:"$node.context.label"}},{library:{GuiButton:Sn(Jee)}}),group:{schema:mme("$slots.default"),type:"group"}}},_me={name:"List",components:{Item:afe},mixins:[Ure],props:{groupBySortField:{type:Boolean,default:!1},items:{type:Array,default:null},itemSortField:{type:String,default:"date"},labelledBy:{type:String,default:null},modifiers:{type:Array,default:H((()=>[]),"default")},showImage:{type:Boolean,default:!1}},computed:{classes(){return this.modifiers.map((e=>`m-chronological-listing__items--${e}`))},listRole(){return this.getListRole(this.items)}},methods:{displayDate(e){if(!e)return;const{YYYY:t,MM:n,DD:i}=_fe(e),r=new Date;if(r.setFullYear(t),n?r.setMonth(parseInt(n)-1,1):r.setMonth(0,1),i?r.setDate(i):r.setDate(1),this.groupBySortField){const e=[];return n&&e.push(r.toLocaleDateString(this.$i18n.locale,{month:"short"})),i&&e.push(r.getDate()),e.join(" ")}return`${r.getFullYear()}`}}},wme=["aria-labelledby","role"],Sme=["role"],Cme=Wee(_me,[["render",function(e,t,n,i,r,a){const s=Yr("Item");return As(),Ps("ul",{"aria-labelledby":n.labelledBy,role:a.listRole,class:Fe(["m-chronological-listing__items",...a.classes])},[(As(!0),Ps(Ss,null,ea(n.items,((e,t)=>(As(),Ps("li",{key:t,role:a.listRole,class:"m-chronological-listing__item"},[Hs(s,Zs({ref_for:!0},e,{date:a.displayDate(e.date),modifiers:n.modifiers,showImage:n.showImage}),null,16,["date","modifiers","showImage"])],8,Sme)))),128))],10,wme)}]]),kme={name:"ChronologicalListing",components:{Heading:jre,List:Cme,Post:Yue,RichText:cre},props:{baseHeadingLevel:{type:Number,default:3},groupBySortField:{type:Boolean,default:!1},id:{type:String,default:null},items:{type:Array,default:null},itemSortField:{type:String,default:"date"},listA11yLabel:{type:String,default:null},modifiers:{type:Array,default:H((()=>[]),"default")},showImage:{type:Boolean,default:!1},sortOrder:{type:String,default:"descending",validator:H((e=>["ascending","descending"].includes(e)),"validator")}},data:H((()=>({uid:br()})),"data"),computed:{listHeadingLevel(){return this.baseHeadingLevel},listLabelledById(){return this.id?this.id:`Index${this.uid}Heading`},itemFieldData(){const e=[];return this.sortedItems&&this.sortedItems.forEach((t=>{const n=t[this.itemSortField];if(n&&_fe(n)){const{YYYY:t}=_fe(n);e.includes(t)||e.push(t)}else n&&!e.includes(n)&&e.push(n)})),e},sortedItems(){if(!this.items)return;if(!this.items.find((e=>e[this.itemSortField])))return this.items;const e=this.items.filter((e=>e));return this.sortOrder?e.sort(ofe([this.itemSortField],this.sortOrder)):e},subHeadingLevel(){return this.listA11yLabel&&!this.id?this.baseHeadingLevel+1:this.baseHeadingLevel}},methods:{getItemsBySortField(e){return this.sortedItems.filter((t=>{const n=t[this.itemSortField];switch(!0){case!!_fe(n):return _fe(n).YYYY===e;case"string"==typeof n:return n===e}}))}}},xme={key:0,class:"m-chronological-listing"},Tme=Wee(kme,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("List");return a.sortedItems?(As(),Ps("div",xme,[n.groupBySortField?(As(!0),Ps(Ss,{key:0},ea(a.itemFieldData,((e,t)=>(As(),Ps(Ss,{key:t},[Hs(s,{id:`ListingSubHeading_${t}`,level:a.subHeadingLevel,class:"m-chronological-listing__heading"},{default:Ii((()=>[qs(ze(e),1)])),_:2},1032,["id","level"]),Hs(o,{groupBySortField:!0,items:a.getItemsBySortField(e),itemSortField:n.itemSortField,labelledBy:`ListingSubHeading_${t}`,modifiers:n.modifiers,showImage:n.showImage},null,8,["items","itemSortField","labelledBy","modifiers","showImage"])],64)))),128)):(As(),Ps(Ss,{key:1},[n.listA11yLabel&&!n.id?(As(),Os(s,{key:0,id:a.listLabelledById,level:a.listHeadingLevel,class:"visually-hidden",ref:"listA11yHeading"},{default:Ii((()=>[qs(ze(n.listA11yLabel),1)])),_:1},8,["id","level"])):Ws("",!0),Hs(o,{items:a.sortedItems,itemSortField:n.itemSortField,labelledBy:a.listLabelledById,modifiers:n.modifiers,showImage:n.showImage},null,8,["items","itemSortField","labelledBy","modifiers","showImage"])],64))])):Ws("",!0)}]]),Eme={key:0,class:"break","aria-hidden":"true"},Ame=Wee({name:"CoBrand",components:{Heading:jre,ImageResponsive:vae,Logo:Tae,RichText:cre},props:{content:{type:String,default:null},images:{type:Array,default:H((()=>[]),"default")},headingLevel:{type:Number,default:3},modifiers:{type:Array,default:H((()=>[]),"default")},title:{type:String,default:null}},computed:{classes(){return this.modifiers.map((e=>`m-co-brand--${e}`))}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("RichText"),l=Yr("ImageResponsive");return n.title||n.content||n.images?(As(),Ps("div",{key:0,class:Fe(["m-co-brand",...a.classes])},[n.title?(As(),Os(s,{key:0,level:n.headingLevel,class:"m-co-brand__title"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["level"])):Ws("",!0),n.content?(As(),Os(o,{key:1,content:n.content,class:"m-co-brand__subtitle"},null,8,["content"])):Ws("",!0),n.images&&n.images.length?(As(),Ps("div",{key:2,class:Fe(["m-co-brand__logos",{"m-co-brand__logos--single":1===n.images.length}])},[(As(!0),Ps(Ss,null,ea(n.images,((e,t)=>(As(),Ps(Ss,{key:`image${t}`},[0!==t&&t%3==0?(As(),Ps("span",Eme)):Ws("",!0),Bs("div",{class:Fe(["m-co-brand__logo",{"m-co-brand__logo--half":n.images.length<=2}])},[Hs(l,Zs({ref_for:!0},F({},e),{size:"post_small"}),null,16)],2)],64)))),128))],2)):Ws("",!0)],2)):Ws("",!0)}
100]]),Lme={class:"date-picker-presets-container"},Ime={name:"DatePicker",components:{GuiButton:Jee,Presets:Wee({name:"Presets",components:{GuiInput:Mre},props:{value:{type:String,default:""}},emits:["input","update:modelValue"],computed:{options:H((()=>({today:"Today",tomorrow:"Tomorrow",thisWeekend:"This Weekend"})),"options")}},[["render",function(e,t,n,i,r,a){const s=Yr("GuiInput");return As(),Ps("div",Lme,[Hs(s,{class:"date-picker-presets",value:n.value,type:"radio",options:a.options,onInput:t[0]||(t[0]=t=>e.$emit("input",t))},null,8,["value","options"])])}]]),VueDatePicker:BV},props:{date:{type:Object,default:null},showSubmit:{type:Boolean,default:!1},futureRange:{type:Object,default:H((()=>({number:6,unit:"months"})),"default")}},data:H((()=>({clearBtnText:"Reset",disabledDates:{min:null,max:null},localDate:null,preset:null,selectedDates:null})),"data"),emits:["clear","inputChange","submit"],computed:{selectedDatesString(){if(!this.selectedDates)return"";const[e,t]=this.selectedDates;if(!e)return"";if(e.toDateString()===t.toDateString())return e.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"});const n=e.getFullYear(),i=t.getFullYear(),r=e.toLocaleDateString("en-US",{month:"short",day:"numeric"}),a=t.toLocaleDateString("en-US",{month:"short",day:"numeric"});return n===i?`${r} - ${a}, ${n}`:`${r}, ${n} - ${a}, ${i}`},yearRange(){if(!this.futureRange)return[1900,2100];const{number:e,units:t}=this.futureRange;return[gfe()[0].getFullYear(),mfe(e,t).getFullYear()]}},methods:{compareDates(e,t){if(!e||!t)return!1;const n=H((e=>{const t=new Date(e);return JSON.stringify({date:t.getDate(),hours:t.getHours(),minutes:t.getMinutes()})}),"t");return n(e)===n(t)},compareDateRanges(e,t){return!(!e||!t)&&e.every(((e,n)=>this.compareDates(e,t[n])))},emitSelectedDates(){if(this.selectedDates){const[e,t]=this.selectedDates;this.$emit("inputChange",{startDate:e,endDate:t})}else this.$emit("inputChange",{startDate:null,endDate:null})},emitSubmit(){if(this.selectedDates){const[e,t]=this.selectedDates;this.$emit("submit",{startDate:e,endDate:t})}else this.$emit("submit",null)},handleClear(e){this.selectedDates=null,this.$refs.picker.clearValue(),this.$refs.picker.switchView("calendar");const t=gfe()[0].getMonth(),n=gfe()[0].getFullYear();this.$refs.picker.setMonthYear({month:t,year:n}),this.$emit("clear",e)},initializeDatePicker(){if(!this.date||!this.date.startDate||!this.date.endDate)return;const{startDate:e,endDate:t}=this.date;e&&t&&(this.selectedDates=[new Date(e),new Date(t)],this.localDate=this.selectedDates)},setDateFromPreset(e){switch(e){case"today":this.selectedDates=gfe(),this.localDate=this.selectedDates[0];break;case"tomorrow":this.selectedDates=yfe(),this.localDate=this.selectedDates[0];break;case"thisWeekend":this.selectedDates=bfe(),this.localDate=this.selectedDates}},setSelectedDates(e){e||(this.selectedDates=null);const t=e instanceof Date,n=Array.isArray(e);t&&(this.selectedDates=[new Date(e.setHours(0,0)),new Date(e.setHours(23,59))]),n&&(this.selectedDates=[new Date(e[0].setHours(0,0,0)),new Date(e[1].setHours(23,59,59))])},setDisabledDates(){this.disabledDates={min:gfe()[0],max:vfe()[1]}},setPreset(){const e=[gfe,yfe,bfe].find((e=>this.compareDateRanges(e(),this.selectedDates)));this.preset=e&&e.name}},watch:{date(e,t){(e||t)&&(e&&(e.startDate||e.endDate||!t)?e.startDate&&e.endDate&&!this.compareDateRanges([e.startDate,e.endDate],this.selectedDates)&&(this.localDate=[e.startDate,e.endDate]):this.localDate=null)},localDate(e,t){e===t&&this.compareDateRanges(e,this.selectedDates)||this.setSelectedDates(e)},selectedDates(e,t){this.compareDateRanges(e,t)||(this.emitSelectedDates(),this.setPreset())}},mounted(){this.initializeDatePicker(),this.setDisabledDates()}},$me={class:"m-date-picker"},Dme={class:"m-date-picker__text"},Pme={class:"m-date-picker__text-dates"},Ome={class:"m-date-picker__buttons"},Mme=Wee(Ime,[["render",function(e,t,n,i,r,a){const s=Yr("Presets"),o=Yr("VueDatePicker"),l=Yr("GuiButton");return As(),Ps("div",$me,[Hs(s,{value:r.preset,onInput:a.setDateFromPreset},null,8,["value","onInput"]),Bs("div",Dme,[t[1]||(t[1]=Bs("span",{class:"m-date-picker__text-label"},"Pick a date",-1)),Bs("span",Pme,ze(a.selectedDatesString),1)]),Hs(o,{class:"m-date-picker__calendar",modelValue:r.localDate,"onUpdate:modelValue":t[0]||(t[0]=e=>r.localDate=e),"auto-apply":!0,"hide-offset-dates":!0,inline:!0,"max-date":r.disabledDates.max,"min-date":r.disabledDates.min,"model-auto":!0,"month-name-format":"long","prevent-min-max-navigation":!0,range:!0,"year-range":a.yearRange,ref:"picker"},null,8,["modelValue","max-date","min-date","year-range"]),Bs("div",Ome,[Hs(l,{name:"clearBtn",modifiers:["outline"],value:r.clearBtnText,onClick:a.handleClear},null,8,["value","onClick"]),n.showSubmit?(As(),Os(l,{key:0,name:"closeBtn",type:"submit",value:"Ok",onClick:a.emitSubmit},null,8,["onClick"])):Ws("",!0)])])}]]),Rme={name:"Dropdown",components:{GuiButton:Jee,Icon:Xie},mixins:[Qie],props:{label:{type:String,default:null},useExpand:{type:Boolean,default:!1},items:{type:Array,default:null},itemOverlap:{type:Number,default:.5}},emits:["inputChange","reset"],data:H((()=>({active:!1,buttonId:`dropdown${br()}`,expanded:!1,itemHeight:0,menuVisibleHeight:0,menuContainerHeight:0,visibleItems:0,debouncedResize:null})),"data"),mounted(){document.addEventListener("click",this.handleOutsideClick),this.useExpand&&(this.debouncedResize=ete(this.updateMenuHeight),window.addEventListener("resize",this.debouncedResize),this.updateMenuHeight())},destroyed(){this.useExpand&&(window.removeEventListener("resize",this.debouncedResize),document.removeEventListener("click",this.handleOutsideClick))},methods:{handleOutsideClick(e){this.$el.contains(e.target)||this.close()},toggle(){this.active=!this.active,this.active&&this.useExpand&&this.$nextTick((()=>{this.updateMenuHeight()}))},close(e){this.active=!1,this.useExpand&&(this.expanded=!1),this.$refs.itemsContainer&&(this.$refs.itemsContainer.scrollTop=0),e instanceof KeyboardEvent&&this.$refs.button.$el.focus()},toggleExpand(){this.useExpand&&(this.expanded=!this.expanded)},preventClose(e){e.stopPropagation()},getTrueHeight(e){if(!e)return 0;const t=window.getComputedStyle(e);return["marginTop","marginBottom","borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"].reduce(((e,n)=>e+parseFloat(t[n]||0)),0)+(e.scrollHeight||0)},updateMenuHeight(){var e;const t=this.$refs.itemsContainer;if(!t||!this.useExpand)return;const n=null!=(e=this.items)&&e.length?this.items:Array.from(t.children);this.itemHeight=n.length?this.getTrueHeight(n[0]):0,this.menuContainerHeight=n.reduce(((e,t)=>e+this.getTrueHeight(t)),0);const i=this.getTrueHeight(this.$refs.button.$el),r=window.innerHeight;this.visibleItems=Math.min(n.length,Math.floor((r-i)/this.itemHeight)),this.menuVisibleHeight=r-i>this.menuContainerHeight?this.menuContainerHeight:(this.visibleItems-1)*this.itemHeight+this.itemHeight*this.itemOverlap}},computed:{itemsContainerStyle(){return this.useExpand?{maxHeight:(this.expanded?this.menuContainerHeight:this.menuVisibleHeight)+"px",overflowY:this.expanded?"none":"auto"}:{}},showExpandButton(){return this.useExpand&&this.menuVisibleHeight<this.menuContainerHeight}}},Nme={key:1},Fme=["aria-hidden"],Bme=["aria-expanded"],Hme=Wee(Rme,[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("GuiButton");return As(),Ps("div",{class:"m-dropdown",onKeyup:t[2]||(t[2]=Zl(((...e)=>a.close&&a.close(...e)),["esc"]))},[Hs(o,{modifiers:["outline"],"aria-expanded":r.active.toString(),id:r.buttonId,name:`btn_${r.buttonId}`,class:"m-dropdown__trigger",ref:"button",onClick:a.toggle},{default:Ii((()=>[e.doesSlotHaveContent("label")?na(e.$slots,"label",{key:0}):(As(),Ps("span",Nme,ze(n.label),1)),Hs(s,{class:"m-dropdown__caret",name:"caret",viewBoxDimensions:{width:16,height:16},"aria-hidden":!0})])),_:3},8,["aria-expanded","id","name","onClick"]),Bs("div",{class:"m-dropdown__menu",onClick:t[1]||(t[1]=Kl(((...e)=>a.preventClose&&a.preventClose(...e)),["stop"])),"aria-hidden":(!r.active).toString(),ref:"dropdownMenu"},[n.useExpand?(As(),Ps("div",{key:0,class:"m-dropdown__items-container",ref:"itemsContainer",style:Pe(a.itemsContainerStyle)},[na(e.$slots,"default")],4)):na(e.$slots,"default",{key:1}),a.showExpandButton?(As(),Ps("button",{key:2,class:Fe(["m-dropdown__expand-btn",["m-dropdown__expand-btn",{"m-dropdown__expand-btn--expanded":r.expanded}]]),type:"button",onClick:t[0]||(t[0]=(...e)=>a.toggleExpand&&a.toggleExpand(...e)),"aria-expanded":r.expanded.toString(),"aria-label":"Toggle dropdown expand/collapse",ref:"expandButton"},[Hs(s,{name:"ExpandMore",class:"m-dropdown__expand-arrow"})],10,Bme)):Ws("",!0)],8,Fme)],32)}]]),jme=["aria-labelledby"],Ume=Wee({name:"DatePickerDropdown",components:{DatePicker:Mme,Dropdown:Hme,GuiButton:Jee},props:{date:{type:Object,default:H((()=>
100({startDate:null,endDate:null})),"default")},fields:{type:Array,default:null},label:{type:String,default:null},years:{type:Number,default:10}},emits:["clear","inputChange"],data(){const e=br();return{uid:e,buttonId:`datePickerDropdown${e}`}},methods:{close(){this.$refs["date-picker-dropdown"].close()},reset(){Array.isArray(this.$refs["date-picker"])?this.$refs["date-picker"].forEach((e=>{e.handleClear()})):this.$refs["date-picker"].handleClear()}}},[["render",function(e,t,n,i,r,a){const s=Yr("DatePicker"),o=Yr("Dropdown");return As(),Os(o,{class:"m-date-picker-dropdown",ref:"date-picker-dropdown",label:n.label},{default:Ii((()=>[n.fields?(As(),Ps("div",{key:0,"aria-labelledby":r.buttonId,role:"group"},[(As(!0),Ps(Ss,null,ea(n.fields,((t,n)=>(As(),Os(s,{key:`${t.type}_${r.uid}-${n}`,id:`${t.type}_${r.uid}-${n}`,date:{startDate:t.startDate,endDate:t.endDate},showSubmit:!0,ref_for:!0,ref:"date-picker",onClear:H((n=>e.$emit("clear",{startDate:null,endDate:null},t)),"onClear"),onInputChange:H((n=>e.$emit("inputChange",n,t)),"onInputChange"),onSubmit:a.close},null,8,["id","date","onClear","onInputChange","onSubmit"])))),128))],8,jme)):(As(),Os(s,{key:1,ref:"date-picker",date:n.date,showSubmit:!0,years:n.years,onClear:t[0]||(t[0]=t=>e.$emit("clear",t)),onInputChange:t[1]||(t[1]=t=>e.$emit("inputChange",t)),onSubmit:a.close},null,8,["date","years","onSubmit"]))])),_:1},8,["label"])}]]),Vme={class:"m-explore__item-main"},qme={key:0,class:"m-explore__item-title"},zme=["id"],Wme={"aria-hidden":"true"},Gme={key:0,class:"m-explore__item-subtitle"},Kme={key:0,class:"m-explore__item-image"},Yme=["id","aria-label","aria-labelledby","aria-expanded"],Zme={key:1,class:"m-explore__item-overlay-cta"},Xme={class:"m-explore"},Qme=Wee({name:"Explore",components:{ExploreItem:Wee({name:"ExploreItem",inheritAttrs:!1,components:{Icon:Xie,ImageResponsive:vae,RichText:cre},props:{buttonAriaLabel:{type:String,default:null},href:{type:String,default:null},image:{type:Object,default:null},overlay:{type:Object,default:null},title:{type:String,default:null},subtitle:{type:String,default:null}},data(){const e=br();return{buttonId:`exloreOverlayButton${e}`,titleId:`exploreItemTitle${e}`,overlayActive:!1}},computed:{computedButtonAriaLabel(){return this.buttonAriaLabel?this.buttonAriaLabel:"Image Credits"}},mounted(){window.addEventListener("click",this.closeOverlay)},beforeUnmount(){window.removeEventListener("click",this.closeOverlay)},methods:{overlayBackgroundClass:H((e=>`s-bg--${e||"white"}`),"overlayBackgroundClass"),toggleOverlay(){this.overlayActive=!this.overlayActive},closeOverlay(){this.overlayActive=!1}}},[["render",function(e,t,n,i,r,a){const s=Yr("ImageResponsive"),o=Yr("Icon"),l=Yr("RichText");return As(),Ps("section",{onKeyup:t[1]||(t[1]=Zl(((...e)=>a.closeOverlay&&a.closeOverlay(...e)),["esc"])),class:"m-explore__item"},[Bs("div",Vme,[(As(),Os(Xr(n.href?"a":"div"),{href:n.href?n.href:null,class:"m-explore__item-blocklink"},{default:Ii((()=>[n.title||n.subtitle?(As(),Ps("h3",qme,[Bs("span",{id:r.titleId,class:"visually-hidden"},[qs(ze(n.title)+" ",1),n.subtitle?(As(),Ps(Ss,{key:0},[qs(" : "+ze(n.subtitle),1)],64)):Ws("",!0)],8,zme),Bs("span",Wme,[qs(ze(n.title)+" ",1),n.subtitle?(As(),Ps("span",Gme,ze(n.subtitle),1)):Ws("",!0)])])):Ws("",!0)])),_:1},8,["href"]))]),n.image?(As(),Ps("div",Kme,[Hs(s,Zs(F({},n.image),{size:"explore"}),null,16),Bs("button",{id:r.buttonId,class:"m-explore__trigger","aria-label":a.computedButtonAriaLabel,"aria-labelledby":`${r.buttonId} ${r.titleId}`,"aria-expanded":r.overlayActive?"true":"false",onClick:t[0]||(t[0]=Kl(((...e)=>a.toggleOverlay&&a.toggleOverlay(...e)),["prevent","stop"]))},[Hs(o,{name:"info"}),Hs(o,{name:"close"})],8,Yme),n.overlay?(As(),Ps("div",{key:0,class:Fe(["m-explore__item-overlay",{"m-explore__item-overlay--active":r.overlayActive},a.overlayBackgroundClass(n.overlay.backgroundColor)])},[(As(),Os(Xr(n.href?"a":"div"),{href:n.href?n.href:null,class:"m-explore__item-overlay-inner"},{default:Ii((()=>[n.overlay.text?(As(),Os(l,{key:0,ref:"overlayText",class:"m-explore__item-overlay-text",tabindex:"-1",content:n.overlay.text},null,8,["content"])):Ws("",!0),n.href&&n.overlay.ctaText?(As(),Ps("span",Zme,[t[2]||(t[2]=Bs("span",{class:"visually-hidden"},": ",-1)),qs(" "+ze(n.overlay.ctaText||"Explore more")+" ",1),Hs(o,{name:"ArrowBoxed"})])):Ws("",!0)])),_:1},8,["href"]))],2)):Ws("",!0)])):Ws("",!0)],32)}]])},props:{rows:{type:Array,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("ExploreItem");return As(),Ps("div",Xme,[(As(!0),Ps(Ss,null,ea(n.rows,((e,t)=>(As(),Ps("div",{key:`row_${t}`,class:Fe(["m-explore__row",`m-explore__row--layout-${e.layout||1}`,{"m-explore__row--mirrored":e.mirrored}])},[(As(!0),Ps(Ss,null,ea(e.items,((e,t)=>(As(),Os(s,Zs({key:`item_${t}`,ref_for:!0},F({},e)),null,16)))),128))],2)))),128))])}]]),Jme={name:"FacetGroup",components:{GuiButton:Jee,GuiInput:Mre}
100,props:{baseLocaleKey:{type:String,default:"m-facet-group"},classes:{type:Array,default:H((()=>[]),"default")},fieldName:{required:!0,type:String},facets:{required:!0,type:Object},numberOfFacetsToShow:{required:!1,type:Number,default:0},selectedValues:{required:!0,type:Array},hideLegend:{required:!1,type:Boolean,default:!1}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),emits:["facetButtonStatus","updateSearch"],data:H((()=>({selectedList:[],showMoreOpen:!1})),"data"),computed:{options(){let e={},t=Object.keys(this.facets);for(let n=0;n<t.length;n++){let i=t[n];if(0==this.showMoreOpen&&this.numberOfFacetsToShow>0&&n+1>=this.numberOfFacetsToShow)continue;let r=this.facets[i],a=i,s=r;null!=r&&("object"!=typeof r||Array.isArray(r)||null===r||(a=r.label,s=r.count)),s="string"==typeof s||"number"==typeof s?this.translatePart("formatted_value",{count:this.localizeNumber(s)}):"",e[i]=`${a}${s}`}return e},hasMoreValues(){return Object.keys(this.facets).length>this.numberOfFacetsToShow&&this.numberOfFacetsToShow>0},hasValues(){return 0==Object.keys(this.facets).length},groupClasses(){return this.hideLegend?["m-facetGroup__input--hide-legend",...this.classes]:[...this.classes]},label(){return this.translatePart(this.fieldName)},toggleMoreCypressSelector(){return 0==this.showMoreOpen?"facet-detail-less-button":"facet-detail-more-button"},toggleMoreLabel(){return 0==this.showMoreOpen?this.translatePart("toggle_more"):this.translatePart("toggle_less")}},watch:{selectedValues(){this.createSelectedList()},facets(){this.createSelectedList()}},mounted(){this.createSelectedList()},methods:{createSelectedList(){null!=this.selectedValues?this.selectedList=[...this.selectedValues]:this.selectedList=[]},selectItem(e){let t="addField",n=[];e.length>this.selectedList.length&&(n=e.filter((e=>0==this.selectedList.includes(e)))),e.length<this.selectedList.length&&(t="deleteField",n=this.selectedList.filter((t=>0==e.includes(t)))),this.selectedList=e,this.$emit("updateSearch",{type:t,name:this.fieldName,value:n[0]})},setMoreButtonStatus(e){this.showMoreOpen=e;let t="hide";e&&(t="show"),this.$emit("facetButtonStatus",t,this.fieldName)},toggleButtonStatus(){this.setMoreButtonStatus(!this.showMoreOpen)}}},ege={"data-testid":"facetGroup",class:"m-facetGroup"},tge=Wee(Jme,[["render",function(e,t,n,i,r,a){const s=Yr("GuiInput"),o=Yr("GuiButton");return As(),Ps("div",ege,[Bs("div",{class:Fe(a.groupClasses)},[Hs(s,{type:"checkbox",value:n.selectedValues,options:a.options,ref:"facetItem",label:a.label,onInput:a.selectItem},null,8,["value","options","label","onInput"])],2),a.hasMoreValues?(As(),Ps("div",{key:0,onClick:t[0]||(t[0]=e=>a.toggleButtonStatus())},[Hs(o,{ref:"toggleButton",name:"showMore",class:"m-facetGroup__toggle","data-testid":"toggleMoreCypressSelector"},{default:Ii((()=>[qs(ze(a.toggleMoreLabel),1)])),_:1},512)])):Ws("",!0)])}]]),nge={class:"m-facts"},ige={key:0,class:"m-facts__items"},rge={key:0,class:"m-facts__item-title"},age={key:1,class:"m-facts__item-content"},sge=Wee({name:"Facts",components:{},props:{items:{type:Array,default:null}}},[["render",function(e,t,n,i,r,a){return As(),Ps("div",nge,[n.items.length>0?(As(),Ps("ul",ige,[(As(!0),Ps(Ss,null,ea(n.items,((e,t)=>(As(),Ps("li",{key:t,class:"m-facts__item"},[e.title?(As(),Ps("span",rge,ze(e.title),1)):Ws("",!0),e.content?(As(),Ps("span",age,ze(e.content),1)):Ws("",!0)])))),128))])):Ws("",!0)])}]]),oge={key:0,class:"m-factums"},lge={class:"m-factums__factum"},uge={class:"m-factums__fact"},cge={key:0,class:"m-factums__fact-container m-factums__fact-container--feature"},dge={class:"m-factums__fact-single-column-container"},pge={key:1,class:"m-factums__fact-container"},hge={class:"m-factums__fact-left-column"},fge={class:"m-factums__fact-right-column"},mge=Wee({name:"Factums",components:{Heading:jre,Module:Spe},props:{factums:{type:Array,default:H((()=>[]),"default")}}},[["render",function(e,t,n,i,r,a){const s=Yr("Module");return n.factums.length?(As(),Ps("div",oge,[(As(!0),Ps(Ss,null,ea(n.factums,(e=>(As(),Ps("div",lge,[Hs(s,{id:e.id,title:e.heading,modifiers:["factums"]},{default:Ii((()=>[Bs("div",{class:"m-factums__facts",ref_for:!0,ref:"facts"},[(As(!0),Ps(Ss,null,ea(e.facts,(t=>(As(),Ps("div",uge,[t.featuredFact?(As(),Ps("div",cge,[Bs("div",{class:Fe(["m-factums__fact-single-column",`s-bg--${e.featuredFactBackgroun
100dColor||"white"}`]),ref_for:!0,ref:"featureFact"},[Bs("div",dge,[Bs("p",null,ze(t.rightColumn),1),Bs("p",null,ze(t.leftColumn),1)])],2)])):(As(),Ps("div",pge,[Bs("div",hge,[Bs("p",null,ze(t.leftColumn),1)]),Bs("div",fge,[Bs("p",null,ze(t.rightColumn),1)])]))])))),256))],512)])),_:2},1032,["id","title"])])))),256))])):Ws("",!0)}]]);var gge=typeof window>"u",yge=gge?null:window,vge=yge?yge.requestAnimationFrame||yge.webkitRequestAnimationFrame||yge.mozRequestAnimationFrame||yge.msRequestAnimationFrame||function(e){return setTimeout(e,16)}:function(e){return e()},bge=gge?null:window,_ge=bge?bge.cancelAnimationFrame||bge.mozCancelAnimationFrame||function(e){clearTimeout(e)}:function(e){};function wge(){for(var e,t,n,i=arguments[0]||{},r=1,a=arguments.length;r<a;r++)if(null!==(e=arguments[r]))for(t in e)i!==(n=e[t])&&void 0!==n&&(i[t]=n);return i}function Sge(e){return["true","false"].indexOf(e)>=0?JSON.parse(e):e}function Cge(e,t,n,i){if(i)try{e.setItem(t,n)}catch(r){}return n}function kge(){var e=document,t=e.body;return t||((t=e.createElement("body")).fake=!0),t}H(wge,"Dl"),H(Sge,"ft$1"),H(Cge,"yt"),H(kge,"Hn");var xge=gge?null:document.documentElement;function Tge(e){var t="";return!gge&&e.fake&&(t=xge.style.overflow,e.style.background="",e.style.overflow=xge.style.overflow="hidden",xge.appendChild(e)),t}function Ege(e,t){!gge&&e.fake&&(e.remove(),xge.style.overflow=t,xge.offsetHeight)}function Age(){if(window.matchMedia||window.msMatchMedia)return!0;var e,t=document,n=kge(),i=Tge(n),r=t.createElement("div"),a=t.createElement("style"),s="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return a.type="text/css",r.className="tns-mq-test",n.appendChild(a),n.appendChild(r),a.styleSheet?a.styleSheet.cssText=s:a.appendChild(t.createTextNode(s)),e=window.getComputedStyle?window.getComputedStyle(r).position:r.currentStyle.position,n.fake?Ege(n,i):r.remove(),"absolute"===e}function Lge(e,t,n,i){"insertRule"in e?e.insertRule(t+"{"+n+"}",i):e.addRule(t,n,i)}function Ige(e){return("insertRule"in e?e.cssRules:e.rules).length}function $ge(e,t,n){for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i)}H(Tge,"In$1"),H(Ege,"Mn$1"),H(Age,"Gr$1"),H(Lge,"Et"),H(Ige,"$t"),H($ge,"di$1");var Dge=!gge&&"classList"in document.createElement("_"),Pge=Dge?function(e,t){return e.classList.contains(t)}:function(e,t){return e.className.indexOf(t)>=0},Oge=Dge?function(e,t){Pge(e,t)||e.classList.add(t)}:function(e,t){Pge(e,t)||(e.className+=" "+t)},Mge=Dge?function(e,t){Pge(e,t)&&e.classList.remove(t)}:function(e,t){Pge(e,t)&&(e.className=e.className.replace(t,""))};function Rge(e,t){return e.hasAttribute(t)}function Nge(e,t){return e.getAttribute(t)}function Fge(e){return void 0!==e.item}function Bge(e,t){if(e=Fge(e)||e instanceof Array?e:[e],"[object Object]"===Object.prototype.toString.call(t))for(var n=e.length;n--;)for(var i in t)e[n].setAttribute(i,t[i])}function Hge(e,t){e=Fge(e)||e instanceof Array?e:[e];for(var n=(t=t instanceof Array?t:[t]).length,i=e.length;i--;)for(var r=n;r--;)e[i].removeAttribute(t[r])}function jge(e){for(var t=[],n=0,i=e.length;n<i;n++)t.push(e[n]);return t}function Uge(e,t){"none"!==e.style.display&&(e.style.display="none")}function Vge(e,t){"none"===e.style.display&&(e.style.display="")}function qge(e){return typeof window<"u"&&"none"!==window.getComputedStyle(e).display}function zge(e){if("string"==typeof e){var t=[e],n=e.charAt(0).toUpperCase()+e.substr(1);["Webkit","Moz","ms","O"].forEach((function(i){"ms"===i&&"transform"!==e||t.push(i+n)})),e=t}var i=document.createElement("fakeelement");e.length;for(var r=0;r<e.length;r++){var a=e[r];if(void 0!==i.style[a])return a}return!1}function Wge(e,t){var n=!1;return/^Webkit/.test(e)?n="webkit"+t+"End":/^O/.test(e)?n="o"+t+"End":e&&(n=t.toLowerCase()+"end"),n}H(Rge,"wi$1"),H(Nge,"Cn$1"),H(Fge,"Xo$1"),H(Bge,"Xe"),H(Hge,"ui$1"),H(jge,"jr$1"),H(Uge,"st$1"),H(Vge,"rt"),H(qge,"Ur$1"),H(zge,"_a"),H(Wge,"Kr$1");var Gge=!1;try{var Kge=Object.defineProperty({},"passive",{get:H((function(){Gge=!0}),"get")});window.addEventListener("test",null,Kge)}catch(tvt){}var Yge=!!Gge&&{passive:!0};function Zge(e,t,n){for(var i in t){var r=["touchstart","touchmove"].indexOf(i)>=0&&!n&&Yge;e.addEventListener(i,t[i],r)}}function Xge(e,t){for(var n in t){var i=["touchstart","touchmove"].indexOf(n)>=0&&Yge;e.removeEventListener(n,t[n],i)}}function Qge(){return{topics:{},on:H((function(e,t){this.topics[e]=this.topics[e]||[],this.topics[e].push(t)}),"on"),off:H((function(e,t){if(this.topics[e])for(var n=0;n<this.topics[e].length;n++)if(this.topics[e][n]===t){this.topics[e].splice(n,1);break}}),"off"),emit:H((function(e,t){t.type=e,this.topics[e]&&this.topics[e].forEach((function(n){n(t,e)}))}),"emit")}}H(Zge,"Se"),H(Xge,"Oe"),H(Qge,"I4"),Object.keys||(Object.keys=function(e){var t=[];
100for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}),gge||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var Jge=H((function(e){e=wge({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0,headingLevel:3},e||{});var t=gge?null:document,n=gge?null:window,i={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},r={},a=!gge&&e.useLocalStorage;if(a){var s=navigator.userAgent,o=new Date;try{(r=n.localStorage)?(r.setItem(o,o),a=r.getItem(o)==o,r.removeItem(o)):a=!1,a||(r={})}catch(ki){a=!1}a&&(r.tnsApp&&r.tnsApp!==s&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach((function(e){r.removeItem(e)})),localStorage.tnsApp=s)}var l=r.tC?Sge(r.tC):Cge(r,"tC",function(){var e=document,t=kge(),n=Tge(t),i=e.createElement("div"),r=!1;t.appendChild(i);try{for(var a,s="(10px * 10)",o=["calc"+s,"-moz-calc"+s,"-webkit-calc"+s],l=0;l<3;l++)if(a=o[l],i.style.width=a,100===i.offsetWidth){r=a.replace(s,"");break}}catch(ki){}return t.fake?Ege(t,n):i.remove(),r}(),a),u=r.tPL?Sge(r.tPL):Cge(r,"tPL",function(){if(gge)return!1;var e,t=document,n=kge(),i=Tge(n),r=t.createElement("div"),a=t.createElement("div"),s="";r.className="tns-t-subp2",a.className="tns-t-ct";for(var o=0;o<70;o++)s+="<div></div>";return a.innerHTML=s,r.appendChild(a),n.appendChild(r),e=Math.abs(r.getBoundingClientRect().left-a.children[67].getBoundingClientRect().left)<2,n.fake?Ege(n,i):r.remove(),e}(),a),c=r.tMQ?Sge(r.tMQ):Cge(r,"tMQ",Age(),a),d=(c=r.tMQ?Sge(r.tMQ):Cge(r,"tMQ",Age(),a),r.tTf?Sge(r.tTf):Cge(r,"tTf",zge("transform"),a)),p=r.t3D?Sge(r.t3D):Cge(r,"t3D",function(e){if(!e||gge||!window.getComputedStyle)return!1;var t,n=document,i=kge(),r=Tge(i),a=n.createElement("p"),s=e.length>9?"-"+e.slice(0,-9).toLowerCase()+"-":"";return s+="transform",i.insertBefore(a,null),a.style[e]="translate3d(1px,1px,1px)",t=window.getComputedStyle(a).getPropertyValue(s),i.fake?Ege(i,r):a.remove(),void 0!==t&&t.length>0&&"none"!==t}(d),a),h=r.tTDu?Sge(r.tTDu):Cge(r,"tTDu",zge("transitionDuration"),a),f=r.tTDe?Sge(r.tTDe):Cge(r,"tTDe",zge("transitionDelay"),a),m=r.tADu?Sge(r.tADu):Cge(r,"tADu",zge("animationDuration"),a),g=r.tADe?Sge(r.tADe):Cge(r,"tADe",zge("animationDelay"),a),y=r.tTE?Sge(r.tTE):Cge(r,"tTE",Wge(h,"Transition"),a),v=r.tAE?Sge(r.tAE):Cge(r,"tAE",Wge(m,"Animation"),a),b=n.console&&"function"==typeof n.console.warn,_=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],w={};if(gge||_.forEach((function(n){if("string"==typeof e[n]){var i=e[n],r=t.querySelector(i);if(w[n]=i,!r||!r.nodeName)return void(b&&console.warn("Can't find",e[n]));e[n]=r}})),!(e.container.children.length<1)){var S=e.responsive,C=e.nested,k="carousel"===e.mode;if(S){0 in S&&(e=wge(e,S[0]),delete S[0]);var x={};for(var T in S){var E=S[T];E="number"==typeof E?{items:E}:E,x[T]=E}S=x,x=null}if(k||H((function e(t){for(var n in t)k||("slideBy"===n&&(t[n]="page"),"edgePadding"===n&&(t[n]=!1),"autoHeight"===n&&(t[n]=!1)),"responsive"===n&&e(t[n])}),"C")(e),!k){e.axis="horizontal",e.slideBy="page",e.edgePadding=!1;var A=e.animateIn,L=e.animateOut,I=e.animateDelay,$=e.animateNormal}var D,P,O="horizontal"===e.axis,M=t.createElement("div"),R=t.createElement("div"),N=e.container,F=N.parentNode,B=N.outerHTML,j=N.children,U=j.length,V=en(),q=!1;S&&Sn(),k&&(N.className+=" tns-vpfix");var z,W,G,K,Y=e.autoWidth,Z=sn("fixedWidth"),X=sn("edgePadding"),Q=sn("gutter"),J=rn(),ee=sn("center"),te=Y?1:Math.floor(sn("items")),ne=sn("slideBy"),ie=e.viewportMax||e.fixedWidthViewportWidth,re=sn("arrowKeys"),ae=sn("speed"),se=e.rewind,oe=!se&&e.loop,le=sn("autoHeight"),ue=sn("controls"),ce=sn("controlsText"),de=sn("nav"),pe=sn("touch"),he=sn("mouseDrag"),fe=sn("autoplay"),me=sn("autoplayTimeout"),ge=sn("autoplayText"),ye=sn("autoplayHoverPause"),ve=sn("autoplayResetOnVisibility"),be=(K=document.createElement("style"),document.querySelector("head").appendChild(K),K.sheet?K.sheet:K.styleSheet),_e=e.lazyload,we=e.lazyloadSelector,Se=[],Ce=oe?(W=function(){if(Y||Z&&!ie)return U-1;var t=Z?"fixedWidth":"items",n=[];if((Z||e[t]<U)&&n.push(e[t]),S)for(var i in S){var r=S[i][t];r&&(Z||r<U)&&n.push(r)}return n.length||n.push(0),Math.ceil(Z?ie/Math.min.apply(null,n):Math.max.apply(null,n))}(),G=k?Math.ceil((5*W-U)/2):4*W-U,G=Math.max(W,G),an("edgePadding")?G+1:G):0,ke=k?U+2*Ce:U+Ce,xe=!(!Z&&!Y||oe),Te=Z?Kn():null,Ee=!k||!oe,Ae=O?"left":"top",Le="",Ie="",$e=Z?function(){return ee&&!oe?U-1:Math.ceil(-Te/(Z+Q))}:Y?function(){for(var e=ke;e--;)if(z[e]>=-Te)return e}:function(){return ee&&k&&!oe?U-1:oe||k?Math.max(0,ke-Math.ceil(te)):ke-1},De=Xt(sn("startIndex")),Pe=De;
100Zt();var Oe,Me,Re,Ne=0,Fe=Y?null:$e(),Be=e.preventActionWhenRunning,He=e.swipeAngle,je=!He||"?",Ue=!1,Ve=e.onInit,qe=new Qge,ze=" tns-slider tns-"+e.mode,We=N.id||(Re=window.tnsId,window.tnsId=Re?Re+1:1,"tns"+window.tnsId),Ge=sn("disable"),Ke=!1,Ye=e.freezable,Ze=!(!Ye||Y)&&wn(),Xe=!1,Qe={click:ii,keydown:H((function(e){e=di(e);var t=[i.LEFT,i.RIGHT].indexOf(e.keyCode);t>=0&&(0===t?yt.disabled||ii(e,-1):vt.disabled||ii(e,1))}),"keydown")},Je={click:H((function(e){if(Ue){if(Be)return;ti()}for(var t=pi(e=di(e));t!==St&&!Rge(t,"data-nav");)t=t.parentNode;if(Rge(t,"data-nav")){var n=Tt=Number(Nge(t,"data-nav")),i=Z||Y?n*U/kt:n*te;ni(ot?n:Math.min(Math.ceil(i),U-1),e),Et===n&&(Pt&&li(),Tt=-1)}}),"click"),keydown:H((function(e){e=di(e);var n=t.activeElement;if(Rge(n,"data-nav")){var r=[i.LEFT,i.RIGHT,i.ENTER,i.SPACE].indexOf(e.keyCode),a=Number(Nge(n,"data-nav"));r>=0&&(0===r?a>0&&ci(wt[a-1]):1===r?a<kt-1&&ci(wt[a+1]):(Tt=a,ni(a,e)))}}),"keydown")},et={mouseover:H((function(){Pt&&(ai(),Ot=!0)}),"mouseover"),mouseout:H((function(){Ot&&(ri(),Ot=!1)}),"mouseout")},tt={visibilitychange:H((function(){t.hidden?Pt&&(ai(),Rt=!0):Rt&&(ri(),Rt=!1)}),"visibilitychange")},nt={keydown:H((function(e){e=di(e);var t=[i.LEFT,i.RIGHT].indexOf(e.keyCode);t>=0&&ii(e,0===t?-1:1)}),"keydown")},it={touchstart:gi,touchmove:yi,touchend:bi,touchcancel:bi},rt={mousedown:gi,mousemove:yi,mouseup:bi,mouseleave:bi},at=an("controls"),st=an("nav"),ot=!!Y||e.navAsThumbnails,lt=an("autoplay"),ut=an("touch"),ct=an("mouseDrag"),dt="tns-slide-active",pt="tns-complete",ht={load:H((function(e){$n(pi(e))}),"load"),error:H((function(e){var t;t=pi(e),Oge(t,"failed"),Dn(t)}),"error")},ft="force"===e.preventScrollOnTouch;if(at)var mt=e.controlsContainer,gt=e.controlsContainer?e.controlsContainer.outerHTML:"",yt=e.prevButton,vt=e.nextButton,bt=e.prevButton?e.prevButton.outerHTML:"",_t=e.nextButton?e.nextButton.outerHTML:"";if(st)var wt,St=e.navContainer,Ct=e.navContainer?e.navContainer.outerHTML:"",kt=Y?U:wi(),xt=0,Tt=-1,Et=Jt(),At=Et,Lt="tns-nav-active",It="Carousel Page ",$t=" (Current Slide)";if(lt)var Dt,Pt,Ot,Mt,Rt,Nt="forward"===e.autoplayDirection?1:-1,Ft=e.autoplayButton,Bt=e.autoplayButton?e.autoplayButton.outerHTML:"",Ht=["<span class='tns-visually-hidden'>"," animation</span>"];if(ut||ct)var jt,Ut,Vt={},qt={},zt=!1,Wt=O?function(e,t){return e.x-t.x}:function(e,t){return e.y-t.y};Y||Yt(Ge||Ze),d&&(Ae=d,Le="translate",p?(Le+=O?"3d(":"3d(0px, ",Ie=O?", 0px, 0px)":", 0px)"):(Le+=O?"X(":"Y(",Ie=")")),k&&(N.className=N.className.replace("tns-vpfix","")),function(){if(an("gutter"),M.className="tns-outer",R.className="tns-inner",M.id=We+"-ow",R.id=We+"-iw",""===N.id&&(N.id=We),ze+=u||Y?" tns-subpixel":" tns-no-subpixel",ze+=l?" tns-calc":" tns-no-calc",Y&&(ze+=" tns-autowidth"),ze+=" tns-"+e.axis,N.className+=ze,N.hasAttribute("aria-label")||N.setAttribute("aria-label","Slides"),k?((D=t.createElement("div")).id=We+"-mw",D.className="tns-ovh",M.appendChild(D),D.appendChild(R)):M.appendChild(R),le&&((D||R).className+=" tns-ah"),F.insertBefore(M,N),R.appendChild(N),$ge(j,(function(e,t){Oge(e,"tns-item"),e.id||(e.id=We+"-item"+t),!k&&$&&Oge(e,$),Bge(e,{"aria-hidden":"true",tabindex:"-1"})})),Ce){for(var n=t.createDocumentFragment(),i=t.createDocumentFragment(),r=Ce;r--;){var a=r%U,s=j[a].cloneNode(!0);if(Hge(s,"id"),i.insertBefore(s,i.firstChild),k){var o=j[U-1-a].cloneNode(!0);Hge(o,"id"),n.appendChild(o)}}N.insertBefore(n,N.firstChild),N.appendChild(i),j=N.children}}(),function(){if(!k)for(var t=De,i=De+Math.min(U,te);t<i;t++){var r=j[t];r.style.left=100*(t-De)/te+"%",Oge(r,A),Mge(r,$)}if(O&&!gge)if(u||Y){let e=n.getComputedStyle(j[0]).fontSize;null!=e&&""!=e||(e=0),Lge(be,"#"+We+" > .tns-item","font-size:"+e+";",Ige(be)),Lge(be,"#"+We,"font-size:0;",Ige(be))}else k&&$ge(j,(function(e,t){var n;e.style.marginLeft=(n=t,l?l+"("+100*n+"% / "+ke+")":100*n/ke+"%")}));if(c){if(h){var a=D&&e.autoHeight?pn(e.speed):"";Lge(be,"#"+We+"-mw",a,Ige(be))}a=on(e.edgePadding,e.gutter,e.fixedWidth,e.speed,e.autoHeight),Lge(be,"#"+We+"-iw",a,Ige(be)),k&&(a=O&&!Y?"width:"+ln(e.fixedWidth,e.gutter,e.items)+";":"",h&&(a+=pn(ae)),Lge(be,"#"+We,a,Ige(be))),a=O&&!Y?un(e.fixedWidth,e.gutter,e.items):"",e.gutter&&(a+=cn(e.gutter)),k||(h&&(a+=pn(ae)),m&&(
100a+=hn(ae))),a&&Lge(be,"#"+We+" > .tns-item",a,Ige(be))}else k&&le&&(D.style[h]=ae/1e3+"s"),R.style.cssText=on(X,Q,Z,le),k&&O&&!Y&&(N.style.width=ln(Z,Q,te)),a=O&&!Y?un(Z,Q,te):"",Q&&(a+=cn(Q)),a&&Lge(be,"#"+We+" > .tns-item",a,Ige(be));if(S&&c)for(var s in S){s=parseInt(s);var o=S[s],d=(a="",""),p="",f="",g="",y=Y?null:sn("items",s),v=sn("fixedWidth",s),b=sn("speed",s),_=sn("edgePadding",s),w=sn("autoHeight",s),C=sn("gutter",s);h&&D&&sn("autoHeight",s)&&"speed"in o&&(d="#"+We+"-mw{"+pn(b)+"}"),("edgePadding"in o||"gutter"in o)&&(p="#"+We+"-iw{"+on(_,C,v,b,w)+"}"),k&&O&&!Y&&("fixedWidth"in o||"items"in o||Z&&"gutter"in o)&&(f="width:"+ln(v,C,y)+";"),h&&"speed"in o&&(f+=pn(b)),f&&(f="#"+We+"{"+f+"}"),("fixedWidth"in o||Z&&"gutter"in o||!k&&"items"in o)&&(g+=un(v,C,y)),"gutter"in o&&(g+=cn(C)),!k&&"speed"in o&&(h&&(g+=pn(b)),m&&(g+=hn(b))),g&&(g="#"+We+" > .tns-item{"+g+"}"),(a=d+p+f+g)&&be.insertRule("@media (min-width: "+s/16+"em) {"+a+"}",be.cssRules.length)}}(),fn();var Gt=oe?k?function(){var e=Ne,t=Fe;e+=ne,t-=ne,X?(e+=1,t-=1):Z&&(J+Q)%(Z+Q)&&(t-=1),Ce&&(De>t?De-=U:De<e&&(De+=U))}:function(){if(De>Fe)for(;De>=Ne+U;)De-=U;else if(De<Ne)for(;De<=Fe-U;)De+=U}:function(){De=Math.max(Ne,Math.min(Fe,De))},Kt=k?function(){Wn(N,""),h||!ae?(Xn(),ae&&qge(N)||ti()):function(e,t,n,i,r,a,s){var o=Math.min(a,10),l=r.indexOf("%")>=0?"%":"px",u=(r=r.replace(l,""),Number(e.style[t].replace(n,"").replace(i,"").replace(l,""))),c=(r-u)/a*o;setTimeout(H((function r(){a-=o,u+=c,e.style[t]=n+u+l+i,a>0?setTimeout(r,o):s()}),"Vt"),o)}(N,Ae,Le,Ie,Yn(),ae,ti),O||_i()}:function(){Se=[];var e={};e[y]=e[v]=ti,Xge(j[Pe],e),Zge(j[De],e),Qn(Pe,A,L,!0),Qn(De,$,A),y&&v&&ae&&qge(N)||ti()};return{version:"2.9.2",getInfo:Ci,events:qe,goTo:ni,play:H((function(){fe&&!Pt&&(oi(),Mt=!1)}),"play"),pause:H((function(){Pt&&(li(),Mt=!0)}),"pause"),isOn:q,updateSliderHeight:Fn,refresh:fn,destroy:H((function(){if(be.disabled=!0,be.ownerNode&&be.ownerNode.remove(),Xge(n,{resize:bn}),re&&Xge(t,nt),mt&&Xge(mt,Qe),St&&Xge(St,Je),Xge(N,et),Xge(N,tt),Ft&&Xge(Ft,{click:ui}),fe&&clearInterval(Dt),k&&y){var i={};i[y]=ti,Xge(N,i)}pe&&Xge(N,it),he&&Xge(N,rt);var r=[B,gt,bt,_t,Ct,Bt];for(var a in _.forEach((function(t,n){var i="container"===t?M:e[t];if("object"==typeof i&&i){var a=!!i.previousElementSibling&&i.previousElementSibling,s=i.parentNode;i.outerHTML=r[n],e[t]=a?a.nextElementSibling:s.firstElementChild}})),_=A=L=I=$=O=M=R=N=F=B=j=U=P=V=Y=Z=X=Q=J=te=ne=ie=re=ae=se=oe=le=be=_e=z=Se=Ce=ke=xe=Te=Ee=Ae=Le=Ie=$e=De=Pe=Ne=Fe=He=je=Ue=Ve=qe=ze=We=Ge=Ke=Ye=Ze=Xe=Qe=Je=et=tt=nt=it=rt=at=st=ot=lt=ut=ct=dt=pt=ht=Oe=ue=ce=mt=gt=yt=vt=de=St=Ct=wt=kt=xt=Tt=Et=At=Lt=It=$t=fe=me=Nt=ge=ye=Ft=Bt=ve=Ht=Dt=Pt=Ot=Mt=Rt=Vt=qt=jt=zt=Ut=Wt=pe=he=null,this)"rebuild"!==a&&(this[a]=null);q=!1}),"destroy"),rebuild:H((function(){return Jge(wge(e,w))}),"rebuild")}}function Yt(e){e&&(ue=de=pe=he=re=fe=ye=ve=!1)}function Zt(){for(var e=k?De-Ce:De;e<0;)e+=U;return e%U+1}function Xt(e){return e=e?Math.max(0,Math.min(oe?U-1:U-te,e)):0,k?e+Ce:e}function Qt(e){for(null==e&&(e=De),k&&(e-=Ce);e<0;)e+=U;return Math.floor(e%U)}function Jt(){var e,t=Qt();return e=ot?t:Z||Y?Math.ceil((t+1)*kt/U-1):Math.floor(t/te),!oe&&k&&De===Fe&&(e=kt-1),e}function en(){return gge?300:n.innerWidth||t.documentElement.clientWidth||t.body.clientWidth}function tn(e){return"top"===e?"afterbegin":"beforeend"}function nn(e){if(null!=e){var n,i,r=t.createElement("div");return e.appendChild(r),i=(n=r.getBoundingClientRect()).right-n.left,r.remove(),i||nn(e.parentNode)}}function rn(){var e=X?2*X-Q:0;return nn(F)-e}function an(t){if(e[t])return!0;if(S)for(var n in S)if(S[n][t])return!0;return!1}function sn(t,n){if(null==n&&(n=V),"items"===t&&Z)return Math.floor((J+Q)/(Z+Q))||1;var i=e[t];if(S)for(var r in S)n>=parseInt(r)&&t in S[r]&&(i=S[r][t]);return"slideBy"===t&&"page"===i&&(i=sn("items")),k||"slideBy"!==t&&"items"!==t||(i=Math.floor(i)),i}function on(e,t,n,i,r){var a="";if(void 0!==e){var s=e;t&&(s-=t),a=O?"margin: 0 "+s+"px 0 "+e+"px;":"margin: "+e+"px 0 "+s+"px 0;"}else if(t&&!n){var o="-"+t+"px";a="margin: 0 "+(O?o+" 0 0":"0 "+o+" 0")+";"}return!k&&r&&h&&i&&(a+=pn(i)),a}
100function ln(e,t,n){return e?(e+t)*ke+"px":l?l+"("+100*ke+"% / "+n+")":100*ke/n+"%"}function un(e,t,n){var i;if(e)i=e+t+"px";else{k||(n=Math.floor(n));var r=k?ke:n;i=l?l+"(100% / "+r+")":100/r+"%"}return i="width:"+i,"inner"!==C?i+";":i+" !important;"}function cn(e){var t="";return!1!==e&&(t=(O?"padding-":"margin-")+(O?"right":"bottom")+": "+e+"px;"),t}function dn(e,t){var n=e.substring(0,e.length-t).toLowerCase();return n&&(n="-"+n+"-"),n}function pn(e){return dn(h,18)+"transition-duration:"+e/1e3+"s;"}function hn(e){return dn(m,17)+"animation-duration:"+e/1e3+"s;"}function fn(){if(an("autoHeight")||Y||!O){var e=N.querySelectorAll("img");$ge(e,(function(e){var t=e.src;_e||(t&&t.indexOf("data:image")<0?(e.src="",Zge(e,ht),Oge(e,"loading"),e.src=t):$n(e))})),vge((function(){Mn(jge(e),(function(){Oe=!0}))})),an("autoHeight")&&(e=Pn(De,Math.min(De+te-1,ke-1))),_e?mn():vge((function(){Mn(jge(e),mn)}))}else k&&Zn(),yn(),vn()}function mn(){if(Y){var e=oe?De:U-1;H((function t(){var n=j[e].getBoundingClientRect().left,i=j[e-1].getBoundingClientRect().right;Math.abs(n-i)<=1?gn():setTimeout((function(){t()}),16)}),"x")()}else gn()}function gn(){O&&!Y||(Bn(),Y?(Te=Kn(),Ye&&(Ze=wn()),Fe=$e(),Yt(Ge||Ze)):_i()),k&&Zn(),yn(),vn()}function yn(){Hn();var t=wi()/U==1?"slide":"slides",n=-1===e.headingLevel?"span":"h"+e.headingLevel;if(M.insertAdjacentHTML("afterbegin","<"+n+' class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">'+t+' <span class="current">'+An()+"</span> of "+U+"</"+n+">"),Me=M.querySelector(".tns-liveregion .current"),lt){var i=fe?"stop":"start";Ft?Bge(Ft,{"data-action":i}):e.autoplayButtonOutput&&(M.insertAdjacentHTML(tn(e.autoplayPosition),'<button type="button" data-action="'+i+'">'+Ht[0]+i+Ht[1]+ge[0]+"</button>"),Ft=M.querySelector("[data-action]")),Ft&&Zge(Ft,{click:ui}),fe&&(oi(),ye&&Zge(N,et),ve&&Zge(N,tt))}if(st){if(St)Bge(St,{"aria-label":"Carousel Pagination"}),$ge(wt=St.children,(function(e,t){Bge(e,{"data-nav":t,tabindex:"-1","aria-label":It+(t+1),"aria-controls":We})}));else{for(var r="",a=ot?"":'style="display:none"',s=0;s<U;s++)r+='<button type="button" data-nav="'+s+'" tabindex="-1" aria-controls="'+We+'" '+a+' aria-label="'+It+(s+1)+'"></button>';r='<div class="tns-nav" aria-label="Carousel Pagination">'+r+"</div>",M.insertAdjacentHTML(tn(e.navPosition),r),St=M.querySelector(".tns-nav"),wt=St.children}if(Si(),h){var o=h.substring(0,h.length-18).toLowerCase(),l="transition: all "+ae/1e3+"s";o&&(l="-"+o+"-"+l),Lge(be,"[aria-controls^="+We+"-item]",l,Ige(be))}Bge(wt[Et],{"aria-label":It+(Et+1)+$t}),Hge(wt[Et],"tabindex"),Oge(wt[Et],Lt),Zge(St,Je)}if(at){var u=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);if(!(mt||yt&&vt)){var c=-1===e.headingLevel?"span":"h"+e.headingLevel;M.insertAdjacentHTML(tn(e.controlsPosition),'<div class="tns-controls"><'+c+' id="carouselNav-'+u+'" class="tns-visually-hidden">Carousel Navigation</'+c+'><ul aria-labelledby="carouselNav-'+u+'"><li><button type="button" data-controls="prev" aria-controls="'+We+'" aria-label="Previous Slide">'+ce[0]+'</button></li><li><button type="button" data-controls="next" aria-controls="'+We+'" aria-label="Next Slide">'+ce[1]+"</button></li></ul></div>"),mt=M.querySelector(".tns-controls")}yt&&vt||(yt=mt.querySelector('[data-controls="prev"]'),vt=mt.querySelector('[data-controls="next"]')),e.controlsContainer&&Bge(mt,{"aria-label":"Carousel Navigation"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&Bge([yt,vt],{"aria-controls":We}),(e.controlsContainer||e.prevButton&&e.nextButton)&&(Bge(yt,{"data-controls":"prev"}),Bge(vt,{"data-controls":"next"}),Rge(yt,"aria-label")||Bge(yt,{"aria-label":"Previous Slide"}),Rge(vt,"aria-label")||Bge(vt,{"aria-label":"Next Slide"})),Un(yt),Un(vt),zn(),mt?Zge(mt,Qe):(Zge(yt,Qe),Zge(vt,Qe))}Cn()}function vn(){if(k&&y){var i={};i[y]=ti,Zge(N,i)}pe&&Zge(N,it,e.preventScrollOnTouch),he&&Zge(N,rt),re&&Zge(t,nt),"inner"===C?qe.on("outerResized",(function(){_n(),qe.emit("innerLoaded",Ci())})):(S||Z||Y||le||!O)&&(gge||Zge(n,{resize:bn})),le&&("outer"===C?qe.on("innerLoaded",On):Ge||On()),In(),Ge?Tn():Ze&&xn(),qe.on("indexChanged",Rn),"inner"===C&&qe.emit("innerLoaded",Ci()),"function"==typeof Ve&&Ve(Ci()),q=!0}function bn(e){vge((function(){_n(di(e))}))}function _n(n){if(q){"outer"===C&&qe.emit("outerResized",Ci(n)),V=en();var i,r=P,a=!1;S&&(Sn(),(i=r!==P)&&qe.emit("newBreakpointStart",Ci(n)));var s,o,l=te,u=Ge,d=Ze,p=re,h=ue,f=de,m=pe,g=he,y=fe,v=ye,b=ve,_=De;if(i){var w=Z,x=le,T=ce,E=ee,I=ge;if(!c)var D=Q,M=X}if(re=sn("arrowKeys"),ue=sn("controls"),de=sn("nav"),pe=sn("touch"),ee=sn("center"),he=sn("mouseDrag"),fe=sn("autoplay"),ye=sn("autoplayHoverPause"),ve=sn("autoplayResetOnVisibility"),i&&(Ge=sn("disable"),Z=sn("fixedWidth"),ae=sn("speed"),le=sn("autoHeight"),ce=sn("controlsText"),ge=sn("autoplayText"),me=sn("autoplayTimeout"),c||(X=sn("edgePadding"),Q=sn("gutter"))),Yt(Ge),J=rn(),O&&!Y||Ge||(Bn(),O||(_i(),a=!0)),(Z||Y)&&(Te=Kn(),Fe=$e()),(i||Z)&&(te=sn("items"),ne=sn("slideBy"),(o=te!==l)&&(Z||Y||(Fe=$e()),Gt())),i&&Ge!==u&&(Ge?Tn():function(){if(Ke){if(be.disabled=!1,N.className+=ze,Zn(),oe)for(var e=Ce;e--;)k&&Vge(j[e]),Vge(j[ke-e-1]);if(!k)for(var t=De,n=De+U;t<n;t++){var i=j[t],r=t<De+te?A:$;i.style.left=100*(t-De)/te+"%",Oge(i,r)}kn(),Ke=!1}}()),Ye&&(i||Z||Y)&&(Ze=wn())!==d&&(Ze?(Xn(Yn(Xt(0))),xn()):(function(){if(Xe){if(X&&c&&(R.style.margin=""),Ce)for(var e="tns-transparent",t
100=Ce;t--;)k&&Mge(j[t],e),Mge(j[ke-t-1],e);kn(),Xe=!1}}(),a=!0)),Yt(Ge||Ze),fe||(ye=ve=!1),re!==p&&(re?Zge(t,nt):Xge(t,nt)),ue!==h&&(ue?mt?Vge(mt):(yt&&Vge(yt),vt&&Vge(vt)):mt?Uge(mt):(yt&&Uge(yt),vt&&Uge(vt))),de!==f&&(de?Vge(St):Uge(St)),pe!==m&&(pe?Zge(N,it,e.preventScrollOnTouch):Xge(N,it)),he!==g&&(he?Zge(N,rt):Xge(N,rt)),fe!==y&&(fe?(Ft&&Vge(Ft),Pt||Mt||oi()):(Ft&&Uge(Ft),Pt&&li())),ye!==v&&(ye?Zge(N,et):Xge(N,et)),ve!==b&&(ve?Zge(t,tt):Xge(t,tt)),i){if(Z===w&&ee===E||(a=!0),le!==x&&(le||(R.style.height="")),ue&&ce!==T&&(yt.innerHTML=ce[0],vt.innerHTML=ce[1]),Ft&&ge!==I){var F=fe?1:0,B=Ft.innerHTML,H=B.length-I[F].length;B.substring(H)===I[F]&&(Ft.innerHTML=B.substring(0,H)+ge[F])}}else ee&&(Z||Y)&&(a=!0);if((o||Z&&!Y)&&(kt=wi(),Si()),(s=De!==_)?(qe.emit("indexChanged",Ci()),a=!0):o?s||Rn():(Z||Y)&&(In(),Hn(),En()),o&&!k&&function(){for(var e=De+Math.min(U,te),t=ke;t--;){var n=j[t];t>=De&&t<e?(Oge(n,"tns-moving"),n.style.left=100*(t-De)/te+"%",Oge(n,A),Mge(n,$)):n.style.left&&(n.style.left="",Oge(n,$),Mge(n,A)),Mge(n,L)}setTimeout((function(){$ge(j,(function(e){Mge(e,"tns-moving")}))}),300)}(),!Ge&&!Ze){if(i&&!c&&(X===M&&Q===D||(R.style.cssText=on(X,Q,Z,ae,le)),O)){k&&(N.style.width=ln(Z,Q,te));var z=un(Z,Q,te)+cn(Q);W=be,G=Ige(be)-1,"deleteRule"in W?W.deleteRule(G):W.removeRule(G),Lge(be,"#"+We+" > .tns-item",z,Ige(be))}le&&On(),a&&(Zn(),Pe=De)}i&&qe.emit("newBreakpointEnd",Ci(n))}var W,G}function wn(){if(!Z&&!Y)return U<=(ee?te-(te-1)/2:te);var e=Z?(Z+Q)*U:z[U],t=X?J+2*X:J+Q;return ee&&(t-=Z?(J-Z)/2:(J-(z[De+1]-z[De]-Q))/2),e<=t}function Sn(){for(var e in P=0,S)e=parseInt(e),V>=e&&(P=e)}function Cn(){!fe&&Ft&&Uge(Ft),!de&&St&&Uge(St),ue||(mt?Uge(mt):(yt&&Uge(yt),vt&&Uge(vt)))}function kn(){fe&&Ft&&Vge(Ft),de&&St&&Vge(St),ue&&(mt?Vge(mt):(yt&&Vge(yt),vt&&Vge(vt)))}function xn(){if(!Xe){if(X&&(R.style.margin="0px"),Ce)for(var e="tns-transparent",t=Ce;t--;)k&&Oge(j[t],e),Oge(j[ke-t-1],e);Cn(),Xe=!0}}function Tn(){if(!Ke){if(be.disabled=!0,N.className=N.className.replace(ze.substring(1),""),Hge(N,["style"]),oe)for(var e=Ce;e--;)k&&Uge(j[e]),Uge(j[ke-e-1]);if(O&&k||Hge(R,["style"]),!k)for(var t=De,n=De+U;t<n;t++){var i=j[t];Hge(i,["style"]),Mge(i,A),Mge(i,$)}Cn(),Ke=!0}}function En(){var e=An();Me.innerHTML!==e&&(Me.innerHTML=e)}function An(){var e=Ln(),t=e[0]+1,n=e[1]+1;return t===n?t+"":t+" to "+n}function Ln(e){null==e&&(e=Yn());var t,n,i,r=De;if(ee||X?(Y||Z)&&(n=-(parseFloat(e)+X),i=n+J+2*X):Y&&(n=z[De],i=n+J),Y)z.forEach((function(e,a){a<ke&&((ee||X)&&e<=n+.5&&(r=a),i-e>=.5&&(t=a))}));else{if(Z){var a=Z+Q;ee||X?(r=Math.floor(n/a),t=Math.ceil(i/a-1)):t=r+Math.ceil(J/a)-1}else if(ee||X){var s=te-1;if(ee?(r-=s/2,t=De+s/2):t=De+s,X){var o=X*te/J;r-=o,t+=o}r=Math.floor(r),t=Math.ceil(t)}else t=r+te-1;r=Math.max(r,0),t=Math.min(t,ke-1)}return[r,t]}function In(){if(_e&&!Ge){var e=Ln();e.push(we),Pn.apply(null,e).forEach((function(e){if(!Pge(e,pt)){var t={};t[y]=function(e){e.stopPropagation()},Zge(e,t),Zge(e,ht),e.src=Nge(e,"data-src");var n=Nge(e,"data-srcset");n&&(e.srcset=n),Oge(e,"loading")}}))}}function $n(e){Oge(e,"loaded"),Dn(e)}function Dn(e){Oge(e,pt),Mge(e,"loading"),Xge(e,ht)}function Pn(e,t,n){var i=[];for(n||(n="img");e<=t;)$ge(j[e].querySelectorAll(n),(function(e){i.push(e)})),e++;return i}function On(){var e=Pn.apply(null,Ln());vge((function(){Mn(e,Fn)}))}function Mn(e,t){return Oe?t():(e.forEach((function(t,n){!_e&&t.complete&&Dn(t),Pge(t,pt)&&e.splice(n,1)})),e.length?void vge((function(){Mn(e,t)})):t())}function Rn(){In(),Hn(),En(),zn(),function(){if(de&&(Et=Tt>=0?Tt:Jt(),Tt=-1,Et!==At)){var e=wt[At],t=wt[Et];Bge(e,{tabindex:"-1","aria-label":It+(At+1)}),Mge(e,Lt),Bge(t,{"aria-label":It+(Et+1)+$t}),Hge(t,"tabindex"),Oge(t,Lt),At=Et}}()}function Nn(e,t){for(var n=[],i=e,r=Math.min(e+t,ke);i<r;i++)n.push(j[i].offsetHeight);return Math.max.apply(null,n)}function Fn(){var e=le?Nn(De,te):Nn(Ce,U),t=D||R;t.style.height!==e&&(t.style.height=e+"px")}function Bn(){z=[0];var e=O?"left":"top",t=O?"right":"bottom",n=j[0].getBoundingClientRect()[e];$ge(j,(function(i,r){r&&z.push(i.getBoundingClientRect()[e]-n),r===ke-1&&z.push(i.getBoundingClientRect()[t]-n)}))}function Hn(){var e=Ln(),t=e[0],n=e[1];$ge(j,(function(e,i){i>=t&&i<=n?Rge(e,"aria-hidden")&&(Hge(e,["aria-hidden","tabindex"]),Oge(e,dt)):Rge(e,"aria-hidden")||(Bge(e,{"aria-hidden":"true",tabindex:"-1"}),Mge(e,dt))}))}
100function jn(e){return e.nodeName.toLowerCase()}function Un(e){return"button"===jn(e)}function Vn(e){return e.disabled||"true"===e.getAttribute("aria-disabled")}function qn(e,t,n){!0===n?(t.setAttribute("aria-disabled",n.toString()),t.setAttribute("tabindex","-1")):(t.removeAttribute("aria-disabled"),t.removeAttribute("tabindex"))}function zn(){if(ue&&!se&&!oe){var e=Vn(yt),t=Vn(vt),n=De<=Ne,i=!se&&De>=Fe;n&&!e&&qn(0,yt,!0),!n&&e&&qn(0,yt,!1),i&&!t&&qn(0,vt,!0),!i&&t&&qn(0,vt,!1)}}function Wn(e,t){h&&(e.style[h]=t)}function Gn(e){return null==e&&(e=De),Y?(J-(X?Q:0)-(z[e+1]-z[e]-Q))/2:Z?(J-Z)/2:(te-1)/2}function Kn(){var e=J+(X?Q:0)-(Z?(Z+Q)*ke:z[ke]);return ee&&!oe&&(e=Z?-(Z+Q)*(ke-1)-Gn():Gn(ke-1)-z[ke-1]),e>0&&(e=0),e}function Yn(e){var t;if(null==e&&(e=De),O&&!Y)if(Z)t=-(Z+Q)*e,ee&&(t+=Gn());else{var n=d?ke:te;ee&&(e-=Gn()),t=100*-e/n}else t=-z[e],ee&&Y&&(t+=Gn());return xe&&(t=Math.max(t,Te)),t+(!O||Y||Z?"px":"%")}function Zn(e){Wn(N,"0s"),Xn(e)}function Xn(e){null==e&&(e=Yn()),N.style[Ae]=Le+e+Ie}function Qn(e,t,n,i){var r=e+te;oe||(r=Math.min(r,ke));for(var a=e;a<r;a++){var s=j[a];i||(s.style.left=100*(a-De)/te+"%"),I&&f&&(s.style[f]=s.style[g]=I*(a-e)/1e3+"s"),Mge(s,t),Oge(s,n),i&&Se.push(s)}}function Jn(e,t){Ee&&Gt(),(De!==Pe||t)&&(qe.emit("indexChanged",Ci()),qe.emit("transitionStart",Ci()),le&&On(),Pt&&e&&["click","keydown"].indexOf(e.type)>=0&&li(),Ue=!0,Kt())}function ei(e){return e.toLowerCase().replace(/-/g,"")}function ti(e){if(k||Ue){if(qe.emit("transitionEnd",Ci(e)),!k&&Se.length>0)for(var t=0;t<Se.length;t++){var n=Se[t];n.style.left="",g&&f&&(n.style[g]="",n.style[f]=""),Mge(n,L),Oge(n,$)}if(!e||!k&&e.target.parentNode===N||e.target===N&&ei(e.propertyName)===ei(Ae)){if(!Ee){var i=De;Gt(),De!==i&&(qe.emit("indexChanged",Ci()),Zn())}"inner"===C&&qe.emit("innerLoaded",Ci()),Ue=!1,Pe=De}}}function ni(e,t){if(!Ze)if("prev"===e)ii(t,-1);else if("next"===e)ii(t,1);else{if(Ue){if(Be)return;ti()}var n=Qt(),i=0;if("first"===e?i=-n:"last"===e?i=k?U-te-n:U-1-n:("number"!=typeof e&&(e=parseInt(e)),isNaN(e)||(t||(e=Math.max(0,Math.min(U-1,e))),i=e-n)),!k&&i&&Math.abs(i)<te){var r=i>0?1:-1;i+=De+i-U>=Ne?U*r:2*U*r*-1}De+=i,k&&oe&&(De<Ne&&(De+=U),De>Fe&&(De-=U)),Qt(De)!==Qt(Pe)&&Jn(t)}}function ii(e,t){if(Ue){if(Be)return;ti()}var n;if(!t){for(var i=pi(e=di(e));i!==mt&&[yt,vt].indexOf(i)<0;)i=i.parentNode;var r=[yt,vt].indexOf(i);r>=0&&(n=!0,t=0===r?-1:1)}if(se){if(De===Ne&&-1===t)return void ni("last",e);if(De===Fe&&1===t)return void ni("first",e)}t&&(De+=ne*t,Y&&(De=Math.floor(De)),Jn(n||e&&"keydown"===e.type?e:null))}function ri(){Dt=setInterval((function(){ii(null,Nt)}),me),Pt=!0}function ai(){clearInterval(Dt),Pt=!1}function si(e,t){Bge(Ft,{"data-action":e}),Ft.innerHTML=Ht[0]+e+Ht[1]+t}function oi(){ri(),Ft&&si("stop",ge[1])}function li(){ai(),Ft&&si("start",ge[0])}function ui(){Pt?(li(),Mt=!0):(oi(),Mt=!1)}function ci(e){e.focus()}function di(e){return hi(e=e||n.event)?e.changedTouches[0]:e}function pi(e){if(!gge)return e.target||n.event.srcElement}function hi(e){return e.type.indexOf("touch")>=0}function fi(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function mi(){return a=qt.y-Vt.y,s=qt.x-Vt.x,t=Math.atan2(a,s)*(180/Math.PI),n=He,i=!1,(r=Math.abs(90-Math.abs(t)))>=90-n?i="horizontal":r<=n&&(i="vertical"),i===e.axis;var t,n,i,r,a,s}function gi(e){if(Ue){if(Be)return;ti()}fe&&Pt&&ai(),zt=!0,Ut&&(_ge(Ut),Ut=null);var t=di(e);qe.emit(hi(e)?"touchStart":"dragStart",Ci(e)),!hi(e)&&["img","a"].indexOf(jn(pi(e)))>=0&&fi(e),qt.x=Vt.x=t.clientX,qt.y=Vt.y=t.clientY,k&&(jt=parseFloat(N.style[Ae].replace(Le,"")),Wn(N,"0s"))}function yi(e){if(zt){var t=di(e);qt.x=t.clientX,qt.y=t.clientY,k?Ut||(Ut=vge((function(){vi(e)}))):("?"===je&&(je=mi()),je&&(ft=!0)),("boolean"!=typeof e.cancelable||e.cancelable)&&ft&&e.preventDefault()}}function vi(e){if(je){if(_ge(Ut),zt&&(Ut=vge((function(){vi(e)}))),"?"===je&&(je=mi()),je){!ft&&hi(e)&&(ft=!0);try{e.type&&qe.emit(hi(e)?"touchMove":"dragMove",Ci(e))}catch(ki){}var t=jt,n=Wt(qt,Vt);!O||Z||Y?(t+=n,t+="px"):(t+=d?n*te*100/((J+Q)*ke):100*n/(J+Q),t+="%"),N.style[Ae]=Le+t+Ie}}else zt=!1}function bi(t){if(zt){Ut&&(_ge(Ut),Ut=null),k&&Wn(N,""),zt=!1;var n=di(t);
100qt.x=n.clientX,qt.y=n.clientY;var i=Wt(qt,Vt);if(Math.abs(i)){if(!hi(t)){var r=pi(t);Zge(r,{click:H((function e(t){fi(t),Xge(r,{click:e})}),"D")})}k?Ut=vge((function(){if(O&&!Y){var e=-i*te/(J+Q);e=i>0?Math.floor(e):Math.ceil(e),De+=e}else{var n=-(jt+i);if(n<=0)De=Ne;else if(n>=z[ke-1])De=Fe;else for(var r=0;r<ke&&n>=z[r];)De=r,n>z[r]&&i<0&&(De+=1),r++}Jn(t,i),qe.emit(hi(t)?"touchEnd":"dragEnd",Ci(t))})):je&&ii(t,i>0?-1:1)}}"auto"===e.preventScrollOnTouch&&(ft=!1),He&&(je="?"),fe&&!Pt&&ri()}function _i(){(D||R).style.height=z[De+te]-z[De]+"px"}function wi(){var e=Z?(Z+Q)*U/J:U/te;return Math.min(Math.ceil(e),U)}function Si(){if(de&&!ot&&kt!==xt){var e=xt,t=kt,n=Vge;for(xt>kt&&(e=kt,t=xt,n=Uge);e<t;)n(wt[e]),e++;xt=kt}}function Ci(e){return{container:N,slideItems:j,navContainer:St,navItems:wt,controlsContainer:mt,hasControls:at,prevButton:yt,nextButton:vt,items:te,slideBy:ne,cloneCount:Ce,slideCount:U,slideCountNew:ke,index:De,indexCached:Pe,displayIndex:Zt(),navCurrentIndex:Et,navCurrentIndexCached:At,pages:kt,pagesCached:xt,sheet:be,isOn:q,event:e||{}}}H(Yt,"Ya"),H(Zt,"$s"),H(Xt,"Ps"),H(Qt,"Xa"),H(Jt,"Rs"),H(en,"Fs"),H(tn,"ol"),H(nn,"Ds"),H(rn,"Bs"),H(an,"Ot"),H(sn,"te"),H(on,"Qa"),H(ln,"Ja"),H(un,"en"),H(cn,"tn"),H(dn,"Os"),H(pn,"_i"),H(hn,"Ns"),H(fn,"zs"),H(mn,"Es"),H(gn,"Zs"),H(yn,"qs"),H(vn,"Gs"),H(bn,"js"),H(_n,"Us"),H(wn,"dl"),H(Sn,"Ks"),H(Cn,"ul"),H(kn,"Ws"),H(xn,"Ys"),H(Tn,"Xs"),H(En,"Qs"),H(An,"Js"),H(Ln,"an"),H(In,"cl"),H($n,"er"),H(Dn,"hl"),H(Pn,"ml"),H(On,"nn"),H(Mn,"ln"),H(Rn,"tr"),H(Nn,"ir"),H(Fn,"ar"),H(Bn,"nr"),H(Hn,"pl"),H(jn,"lr"),H(Un,"sr"),H(Vn,"rr"),H(qn,"sn"),H(zn,"or"),H(Wn,"rn"),H(Gn,"fa"),H(Kn,"gl"),H(Yn,"on"),H(Zn,"ya"),H(Xn,"fl"),H(Qn,"dr"),H(Jn,"yl"),H(ei,"ur"),H(ti,"At"),H(ni,"ba"),H(ii,"li"),H(ri,"dn"),H(ai,"un"),H(si,"cr"),H(oi,"cn"),H(li,"va"),H(ui,"hr"),H(ci,"mr"),H(di,"Nt"),H(pi,"zi"),H(hi,"ki"),H(fi,"pr"),H(mi,"gr"),H(gi,"fr"),H(yi,"yr"),H(vi,"br"),H(bi,"hn"),H(_i,"bl"),H(wi,"vl"),H(Si,"vr"),H(Ci,"Ke"),b&&console.warn("No slides found in",e.container)}),"Nn$1");const eye=["black","blue","bronze","garden","garden-light","grey","magenta","navy","orange","sky","sunset","warm-grey","white","yellow"],tye={name:"FeaturePostMedia",components:{Credits:Ere,ImageResponsive:vae,RichText:cre},props:{credits:{type:String,default:null},href:{type:String,default:null},image:{type:Object,default:null},imageLink:{type:Boolean,default:null},imageSize:{type:String,default:null}},data:H((()=>({uid:br(),isMobile:!1})),"data"),computed:{hiddenText(){return`Caption for image: ${this.image.alt}`}}},nye={key:0,class:"m-feature-post__image"},iye={class:"m-feature-post__image-wrap"},rye=["href"],aye={class:"m-feature-post__inner",ref:"inner"},sye={class:"m-feature-post__content"},oye={key:0,class:"visually-hidden"},lye={key:1,ref:"subtitle",class:"m-feature-post__subtitle"},uye=["role"],cye=["role"],dye={class:"visually-hidden"},pye={"aria-hidden":"true"},hye=["role"],fye={class:"visually-hidden"},mye={"aria-hidden":"true"},gye={key:1,class:"m-feature-post__links"},yye={class:"a-link__label"},vye=Wee({name:"FeaturePost",components:{GuiLink:rre,FeaturePostMedia:Wee(tye,[["render",function(e,t,n,i,r,a){const s=Yr("ImageResponsive"),o=Yr("RichText"),l=Yr("Credits");return n.image?(As(),Ps("div",nye,[Bs("div",iye,[n.href&&n.imageLink?(As(),Ps("a",{key:0,href:n.href,"aria-hidden":"true",tabindex:"-1",class:"a-link a-link--invisble"},null,8,rye)):Ws("",!0),n.image.id||n.image.src?(As(),Os(s,Zs({key:1},F({},n.image),{idAttr:`img${this.uid}`,size:n.imageSize}),null,16,["idAttr","size"])):Ws("",!0)]),n.credits&&n.image.alt?(As(),Os(l,{key:0,ref:"credits",ariaLabel:"Caption for image:",ariaLabelledBy:`btn${this.uid} img${this.uid}`,hiddenText:a.hiddenText,id:`btn${this.uid}`},{default:Ii((()=>[Hs(o,{content:n.credits,inline:!0},null,8,["content"])])),_:1},8,["ariaLabelledBy","hiddenText","id"])):Ws("",!0)])):Ws("",!0)}]]),Heading:jre,ListOfLinks:zre,MediaIndicator:Vae,PostExcerpt:Tue,RichText:cre},mixins:[Moe,Ure],props:{backgroundColor:{type:String,default:null,validator:H((e=>(""===e&&(e=null),null===e||eye.includes(e))),"validator")},credits:{type:String,default:null},ctaText:{type:String,default:null},dataTemplate:{type:String,default:"editorial",validator:H((e=>["editorial","wayfinding"].includes(e)),"validator")},excerpt:{type:String,default:null},headingId:{type:String,default:null},headingLevel:{type:Number,default:2},href:{type:String,default:null},image:{type:Object,default:null},subtitle:{type:String,default:null},title:{type:String,required:!0},mediaType:{type:String,default:null},metaPrimary:{type:String,default:null},metaPrimaryA11y:{type:String,default:null},metaPrimaryModifier:{type:String,default:null},metaSecondary:{type:String,default:null},metaSecondaryA11y:{type:String,default:null},variation:{type:String,default:"overprint",validator:H((e=>["overprint","image-left","image-right"].includes(e)),"validator")},width:{type:String,default:"contained",validator:H((e=>["contained","full-bleed"].includes(e)),"validator")}},data:H((()=>({debouncedResize:null,isSmallMinusBreakpoint:!1,overlayHeight:0})),"data"),computed:{bgClass(){return this.backgroundColor&&this.splitVariation?`s-bg--${this.backgroundColor}`:null},classes(){const e=["m-feature-post"];return e.push(`m-feature-post--${this.dataTemplate}`),e.push(`m-feature-post--${this.variation}`),e.push(`m-feature-post--${this.width}`),e},hasExcerpt(){return this.excerpt||this.$slots.excerpt},imageLink(){return this.splitVariation},imageSize(){if(this.image.size)return this.image.size;
100if(this.splitVariation)return this.image.region&&this.image.region["1:1"]?"post_large_1_1":"post_large_variable_height";{const e="full-bleed"===this.width?"full_bleed_post":"contained_post",t="full-bleed"===this.width?"post_full_1_1":"post_xlarge_1_1";return this.isSmallMinusBreakpoint?t:e}},listRoleLabel(){return this.metaPrimary&&this.metaSecondary?null:"presentation"},showGradient(){return!this.splitVariation},splitVariation(){return["image-left","image-right"].includes(this.variation)}},methods:{handleResize(){this.setOverlayHeight(),this.isSmallMinusBreakpoint=this.isSmallMinus()},setOverlayHeight(){const e=this.$refs.inner.offsetHeight,t=this.$refs.container.offsetHeight;this.overlayHeight=t-e}},mounted(){this.handleResize(),this.debouncedResize=ete(this.handleResize),window.addEventListener("resize",this.debouncedResize)}},[["render",function(e,t,n,i,r,a){const s=Yr("MediaIndicator"),o=Yr("RichText"),l=Yr("Heading"),u=Yr("PostExcerpt"),c=Yr("FeaturePostMedia");return As(),Ps("section",{class:Fe(a.classes)},[Bs("div",{ref:"container",class:Fe(["m-feature-post__container","gui-container",a.bgClass])},[Bs("div",aye,[a.showGradient?(As(),Ps("div",{key:0,class:"m-feature-post__gradient",style:Pe({"--gradient-height":`${r.overlayHeight}px`})},null,4)):Ws("",!0),Bs("div",sye,[n.title?(As(),Os(l,{key:0,ref:"title",id:n.headingId,level:n.headingLevel,tabindex:n.headingId?"-1":null,class:"m-feature-post__title"},{default:Ii((()=>[(As(),Os(Xr(n.href?"a":"span"),{href:n.href?n.href:null},{default:Ii((()=>[n.mediaType?(As(),Ps("span",oye,[Hs(s,{offscreen:!0,type:n.mediaType},null,8,["type"]),t[0]||(t[0]=qs(":Â "))])):Ws("",!0),n.subtitle?(As(),Ps("span",lye,[qs(ze(n.subtitle)+" ",1),t[1]||(t[1]=Bs("span",{class:"visually-hidden"},":Â ",-1))],512)):Ws("",!0),Hs(o,{content:n.title,inline:!0,class:"m-feature-post__title-text"},null,8,["content"])])),_:1},8,["href"]))])),_:1},8,["id","level","tabindex"])):Ws("",!0),a.hasExcerpt?(As(),Os(u,{key:1,ref:"excerpt",content:n.excerpt,class:"m-feature-post__excerpt"},{default:Ii((()=>[na(e.$slots,"excerpt")])),_:3},8,["content"])):Ws("",!0),Hs(s,{ref:"mediaType",type:n.mediaType,"aria-hidden":"true"},null,8,["type"]),n.metaPrimary||n.metaSecondary?(As(),Ps("ul",{key:2,class:"m-feature-post__meta-wrapper",role:a.listRoleLabel},[n.metaPrimary?(As(),Ps("li",{key:0,ref:"metaPrimary",class:"m-feature-post__meta",role:a.listRoleLabel},[n.metaPrimaryA11y?(As(),Ps(Ss,{key:0},[Bs("span",dye,ze(n.metaPrimaryA11y),1),Bs("span",pye,ze(n.metaPrimary),1)],64)):(As(),Ps(Ss,{key:1},[qs(ze(n.metaPrimary),1)],64))],8,cye)):Ws("",!0),n.metaSecondary?(As(),Ps("li",{key:1,ref:"metaSecondary",class:"m-feature-post__meta m-feature-post__meta--secondary",role:a.listRoleLabel},[n.metaSecondaryA11y?(As(),Ps(Ss,{key:0},[Bs("span",fye,ze(n.metaSecondaryA11y),1),Bs("span",mye,ze(n.metaSecondary),1)],64)):(As(),Ps(Ss,{key:1},[qs(ze(n.metaSecondary),1)],64))],8,hye)):Ws("",!0)],8,uye)):Ws("",!0)]),n.ctaText?(As(),Ps("div",gye,[(As(),Os(Xr(n.href?"a":"span"),{href:n.href?n.href:null,"aria-hidden":"true",tabindex:"-1",class:"a-link a-link--underline"},{default:Ii((()=>[Bs("span",yye,ze(n.ctaText),1)])),_:1},8,["href"]))])):Ws("",!0)],512),n.image?(As(),Os(c,{key:0,credits:n.credits,href:n.href,image:n.image,imageLink:a.imageLink,imageSize:a.imageSize},null,8,["credits","href","image","imageLink","imageSize"])):Ws("",!0)],2)],2)}]]),bye={name:"FeatureCarousel",components:{FeaturePost:vye,RichText:cre},mixins:[Moe],props:{items:{type:Array,default:null},navA11yTitle:{type:String,default:"Select Slide"}}
100,inject:{setModuleBackgroundClass:{default:H((()=>()=>{}),"default")}},data:H((()=>({navId:`featureCarousel${br()}Nav`,slider:null,current:0,limit:4,options:{arrowKeys:!0,items:1,loop:!1,mode:"gallery",slideBy:"page",controlsText:['<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.2046 21.7954L12.7954 20.2046L5.71582 13.125H21V10.875H5.71582L12.7954 3.79541L11.2046 2.20459L1.40918 12L11.2046 21.7954Z" fill="currentColor"/></svg>','<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.7954 2.20459L11.2046 3.79541L18.2842 10.875H3V13.125H18.2842L11.2046 20.2046L12.7954 21.7954L22.5908 12L12.7954 2.20459Z" fill="currentColor"/></svg>']}})),"data"),computed:{limitedItems(){return this.items.map((e=>B(F({},e),{image:B(F({},e.image),{size:"feature_post"})}))).slice(0,this.limit)}},mounted(){this.$refs.featureCarousel&&(this.options.container=this.$refs.featureCarousel,this.slider=Jge(this.options),this.heightsFixed=!1,this.slider&&this.slider.events.on("indexChanged",this.updateIndex),this.$nextTick((()=>
100{this.updateBackground()})),this.$refs.items.length>1&&(this.headers=[],this.windowResized(),this.debouncedResize=ete(this.windowResized),window.addEventListener("resize",this.debouncedResize)))},beforeUnmount(){this.slider&&this.slider.events.off("indexChanged",this.updateIndex),this.slider=null},unmount(){window.removeEventListener("resize",this.debouncedResize)},methods:{fixHeights(){this.heightsFixed=!0;const e={box:0,header:0};this.$refs.items.forEach((t=>{const n=t.offsetHeight;e.box=n>e.box?n:e.box})),this.headers.forEach((t=>{const n=t.offsetHeight;e.header=n>e.header?n:e.header})),e.box>0&&this.$refs.items.forEach((t=>{t.style.minHeight=e.box+"px"})),e.header>0&&this.headers.forEach((t=>{t.style.minHeight=e.header+"px"}))},setIndex(e){this.current=e,this.updateBackground(),this.slider&&this.slider.goTo(this.current)},unfixHeights(){this.$refs.items.forEach((e=>{e.style.minHeight=""})),this.headers.forEach((e=>{e.style.minHeight=""})),this.heightsFixed=!1},updateIndex(e){this.current=e.index,this.updateBackgroun
100d()},updateBackground(){!this.items||this.items.length<=0||this.setModuleBackgroundClass(this.items[this.current].backgroundColor)},windowResized(){this.heightsFixed&&this.unfixHeights(),this.isSmallMinus()&&this.fixHeights()}}},_ye={class:"m-feature-carousel"},wye={ref:"featureCarousel"},Sye=["index"],Cye=["aria-labelledby"],kye=["id"],xye=["aria-labelledby"],Tye=["index"],Eye=["aria-current","onClick"],Aye={key:0,class:"m-feature-carousel__nav-subtitle"},Lye=Wee(bye,[["render",function(e,t,n,i,r,a){const s=Yr("FeaturePost"),o=Yr("RichText");return As(),Ps("div",_ye,[Bs("div",wye,[(As(!0),Ps(Ss,null,ea(a.limitedItems,((e,t)=>(As(),Ps("div",{ref_for:!0,ref:"items",index:t,key:e.id,class:"m-feature-carousel__item"},[Hs(s,Zs({ref_for:!0},F({},e),{headingLevel:4,"data-template":"wayfinding",variation:"image-left"}),null,16)],8,Sye)))),128))],512),a.limitedItems.length>1?(As(),Ps("div",{key:0,"aria-labelledby":r.navId,class:"m-feature-carousel__nav"},[Bs("h3",{id:r.navId,class:"visually-hidden"},ze(n.navA11yTitle),9,kye),Bs("ul",{"aria-labelledby":r.navId,class:Fe(`m-feature-carousel__nav-items\n m-feature-carousel--${a.limitedItems.length}-items`)},[(As(!0),Ps(Ss,null,ea(a.limitedItems,((e,n)=>(As(),Ps("li",{index:n,key:e.id,class:"m-feature-carousel__nav-item"},[Bs("button",{"aria-current":r.current===n||null,onClick:H((e=>a.setIndex(n)),"onClick")},[e.subtitle?(As(),Ps("span",Aye,[qs(ze(e.subtitle)+" ",1),t[0]||(t[0]=Bs("span",{class:"visually-hidden"},":Â ",-1))])):Ws("",!0),Hs(o,{content:e.title,class:"m-feature-carousel__nav-title"},null,8,["content"])],8,Eye)],8,Tye)))),128))],10,xye)],8,Cye)):Ws("",!0)])}]]),Iye={class:"m-filter-bar"},$ye={id:"filter_bar_description",class:"visually-hidden"},Dye={class:"m-filter-bar__filter-list m-filter-bar__filter-list-primary","aria-labelledby":"filter_bar_description"},Pye={class:"m-filter-bar__filter-list m-filter-bar__filter-list-secondary","aria-labelledby":"filter_bar_description"},Oye=Wee({name:"FilterBar",components:{FacetItem:Rre},props:{baseLocaleKey:{type:String,default:"m-filter-bar"},filterInfo:{required:!0,type:Array},selectedFilters:{required:!1,type:Array,default:H((function(){return[]}),"default")}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),emits:["updateSearch"],computed:{primaryFilters(){return this.filterInfo.filter((e=>1!=(null==e?void 0:e.secondary)))},secondaryFilters(){return this.filterInfo.filter((e=>1==(null==e?void 0:e.secondary)))}},methods:{updateSearch(e){var t,n;const i=null!=(t=null==(n=this.filterInfo)?void 0:n.find((t=>t.fieldName==e.value)))?t:{},r=!(null==i||!i.checked);r&&"addField"==e.type||!r&&"deleteField"==e.type||this.$emit("updateSearch",{type:"updateBoolean",name:e.value,value:!r})}}},[["render",function(e,t,n,i,r,a){const s=Yr("FacetItem");return As(),Ps("div",Iye,[Bs("p",$ye,ze(e.translate("m-filter-bar.description")),1),Bs("span",{ref:"label",class:"m-filter-bar__label"},ze(e.translate(`${n.baseLocaleKey}.label`)),513),Bs("ul",Dye,[(As(!0),Ps(Ss,null,ea(a.primaryFilters,(e=>(As(),Ps("li",{key:e.fieldName,class:"m-filter-bar__filter"},[Hs(s,{ref_for:!0,ref:"filterCheckbox",class:"m-filter-bar__filter-checkbox",checked:e.checked,"field-name":e.fieldName,value:e.fieldName,disabled:e.disabled,"base-locale-key":`${n.baseLocaleKey}.filters`,onUpdateSearch:a.updateSearch},null,8,["checked","field-name","value","disabled","base-locale-key","onUpdateSearch"])])))),128))]),Bs("ul",Pye,[(As(!0),Ps(Ss,null,ea(a.secondaryFilters,(e=>(As(),Ps("li",{key:e.fieldName,class:"m-filter-bar__filter"},[Hs(s,{ref_for:!0,ref:"filterCheckbox",class:"m-filter-bar__filter-checkbox",checked:e.checked,"field-name":e.fieldName,value:e.fieldName,disabled:e.disabled,"base-locale-key":`${n.baseLocaleKey}.filters`,onUpdateSearch:a.updateSearch},null,8,["checked","field-name","value","disabled","base-locale-key","onUpdateSearch"])])))),128))])])}]]),Mye={name:"PaginationBar",data(){return{active:!1,eventBus:Rse(),localPage:this.currentPage,listBottom:!1,localFrom:this.fromValue}},props:{buttonTextNext:{type:String,default:"Next"},buttonTextPrev:{type:String,default:"Previous"},currentPage:{type:Number,default:1},headingLevel:{type:Number,default:3},isChild:{type:Boolean,default:!0},itemName:{type:String,default:"items"},fromValue:{type:Number,default:0},maxVisibleButtons:{type:Number,default:11},scrollToTop:{type:Boolean,default:!0},sizeValue:{type:Number,default:20},title:{type:String,default:"Pagination"},totalHits:{type:Number,default:0}},emits:["updateSearch"],components:{GuiButton:Jee,Heading:jre,Icon:Xie,SearchResultsCount:cse},mounted(){document.documentElement.addEventListener("click",this.close)},unmounted(){document.documentElement.removeEventListener("click",this.close)},computed:{dropdownData(){const e=[];return e.push({links:[]}),this.page.forEach((t=>{e[0].links.push({text:t,url:"#"})})),e},endIndex(){return Math.min(this.startIndex+this.sizeValue-1,this.total-1)},isNextDisabled(){return this.localPage>=this.total||this.localPage===this.range.endPage||0===this.total},isPrevDisabled(){return 0===this.fromValue&&1===this.fromValue||this.localPage<=1},page(){return Array.from(Array(this.range.endPage+1-this.range.startPage).keys()).map((e=>this.range.startPage+e))},range(){let e,t;if(this.total<=this.maxVisibleButtons)e=1,t=this.total;else{let n=Math.floor(this.maxVisibleButtons/2),i=Math.ceil(this.maxVisibleButtons/2)-1;this.localPage<=n?(e=1,t=this.maxVisibleButtons):this.localPage+i>=this.total?(e=this.total-this.maxVisibleButtons+1,t=this.total):(e=this.localPage-n,t=this.localPage+i)}return{startPage:e,endPage:t}},startIndex(){return(this.currentPage-1)*this.sizeValue},total(){return Math.ceil(this.totalHits/this.sizeValue)}},watch:{active:H((function(e){const t=this.$refs.pageList.offsetHeight,n=this.$refs.pageList.getBoundingClientRect(),i=(window.innerHeight||document.documentElement.clientHeight)-n.y;e?this.listBottom=i<t:setTimeout((()=>{this.listBottom=i<t}),300)}),"active"),currentPage(e){this.localPage=e},fromValue(e){this.localFrom=e}},methods:{close(e){this.active=!1,e instanceof KeyboardEvent&&this.$refs.selectPage.$el.focus()},handlePageChange(){this.triggerEmit(),this.scrollToTop&&rte({top:0})},toggle(){this.active=!this.active},triggerNext(){this.currentPage!==this.total&&(this.localPage+=1,this.localFrom+=this.sizeValue,this.handlePageChange())},triggerPrev(){this.currentPage>0&&this.localPage>1&&(this.localPage-=1,this.localFrom-=this.sizeValue,this.handlePageChange())},triggerPage(e){this.localPage=e,this.localFrom=(e-1)*this.sizeValue,this.handlePageChange(),this.$refs.selectPage.$el.focus()},triggerEmit(){this.eventBus.emit("updatePage",{page:this.localPage,from:this.localFrom}),this.$emit("updateSearch",{page:this.localPage,from:this.localFrom})}}},Rye={key:0,class:"m-pagination-bar"},Nye={class:"m-pagination-bar-btn m-pagination-bar-btn--prev"},Fye={class:"visually-hidden"},Bye={class:"m-pagination-bar-btn"},Hye={class:"visually-hidden"},jye={class:"m-pagination-bar__select"},Uye={key:0,"aria-hidden":"true"},Vye={id:"label_2"},qye=["aria-hidden"],zye=["id"],Wye={key:0,"aria-hidden":"true"},Gye={"aria-hidden":"true",id:"label_3"},Kye=Wee(Mye,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("SearchResultsCount"),l=Yr("Icon"),u=Yr("GuiButton");return a.startIndex!==a.endIndex&&n.totalHits>0?(As(),Ps("div",Rye,[Hs(s,{level:n.headingLevel,class:"visually-hidden"},{default:Ii((()=>[Bs("span",null,ze(n.title),1)])),_:1},8,["level"]),Hs(o,{currentPage:r.localPage,itemName:n.itemName,sizeValue:n.sizeValue,totalHits:n.totalHits},null,8,["currentPage","itemName","sizeValue","totalHits"]),Bs("div",Nye,[Hs(u,{ref:"previous","data-testid":"previous",class:"a-btn a-btn--outline",disabled:a.isPrevDisabled,name:n.buttonTextPrev,value:n.buttonTextPrev,onClick:a.triggerPrev},{default:Ii((()=>[Hs(l,{"aria-hidden":"true",name:"arrowRight",size:16}),Bs("span",Fye,ze(this.buttonTextPrev),1)])),_:1},8,["disabled","name","value","onClick"])]),Bs("div",Bye,[Hs(u,{ref:"next","data-testid":"next",class:"a-btn a-btn--outline",disabled:a.isNextDisabled,name:n.buttonTextNext,value:n.buttonTextNext,onClick:a.triggerNext},{default:Ii((()=>[Hs(l,{"aria-hidden":"true",name:"arrowRight",size:16}),Bs("span",Hye,ze(this.buttonTextNext),1)])),_:1},8,["disabled","name","value","onClick"])]),Bs("div",{class:"m-pagination-bar__pages",onKeyup:t[0]||(t[0]=Zl(((...e)=>a.close&&a.close(...e)),["esc"]))},[t[1]||(t[1]=Bs("span",{id:"label_1","aria-hidden":"true"},"Current page:",-1)),Bs("div",jye,[Hs(u,{"aria-labelledby":"label_1 label_2 label_3",name:"selectPage","aria-expanded":r.active.toString(),ref:"selectPage",onClick:Kl(a.toggle,["prevent","stop"])},{default:Ii((()=>[r.localPage<10?(As(),Ps("span",Uye,"0")):Ws("",!0),Bs("span",Vye,ze(r.localPage),1),Hs(l,{"aria-hidden":"true",name:"caret",size:16})])),_:1},8,["aria-expanded","onClick"]),Bs("ul",{ref:"pageList","aria-hidden":!r.active,"aria-label":"Select a page",class:Fe(["m-pagination-bar__list",{"m-pagination-bar__list--bottom":r.listBottom}])},[(As(!0),Ps(Ss,null,ea(a.page,((e,t)=>
100(As(),Ps("li",{id:`item_${e}`,key:t},[Hs(u,{class:Fe({active:r.localPage===e}),"data-testid":`${e}`,"aria-disabled":r.localPage===e,name:`pageBtn_${e}`,ref_for:!0,ref:"pageBtn",onClick:H((t=>a.triggerPage(e)),"onClick")},{default:Ii((()=>[e<10?(As(),Ps("span",Wye,"0")):Ws("",!0),qs(ze(e),1),0===t?(As(),Os(l,{key:1,"aria-hidden":"true",name:"caret",size:16})):Ws("",!0)])),_:2},1032,["class","data-testid","aria-disabled","name","onClick"])],8,zye)))),128))],10,qye)]),Bs("span",Gye,"of "+ze(Math.ceil(n.totalHits/n.sizeValue))+" pages",1)],32)])):Ws("",!0)}]]),Yye={name:"NavDropdown",components:{Dropdown:Hme,GuiInput:Mre,InPageNav:lpe},props:{align:{type:String,default:"right",validate:H((e=>["left","right"].includes(e)),"validate")},fields:{type:Array,default:null},label:{type:String,default:null},mobileOnly:{type:Boolean,default:!1},sections:{type:Array,default:null},headingLevel:{type:Number,default:2},itemOverlap:{type:Number,default:.5},useExpand:{type:Boolean,default:!1}},emits:["inputChange","reset"],data(){const e=br();return{uid:e,buttonId:`navDropdown${e}`,items:[]}},mounted(){this.$nextTick((()=>{this.$refs.input&&(this.items=Array.isArray(this.$refs.input)?this.$refs.input.map((e=>e.$el)):[this.$refs.input.$el])}))},methods:{close(){this.$refs.dropdown.close()}}},Zye=["aria-labelledby"],Xye=Wee(Yye,[["render",function(e,t,n,i,r,a){const s=Yr("InPageNav"),o=Yr("GuiInput"),l=Yr("Dropdown");return n.sections||n.fields?(As(),Os(l,{key:0,class:Fe(["m-nav-dropdown",`m-nav-dropdown--${n.align}`,{"m-nav-dropdown--mobile":n.mobileOnly}]),label:n.label,useExpand:n.useExpand,items:r.items,itemOverlap:n.itemOverlap,totalItems:n.fields&&n.fields.length,ref:"dropdown"},{default:Ii((()=>[Hs(s,{label:n.label,sections:n.sections,baseHeadingLevel:n.headingLevel},null,8,["label","sections","baseHeadingLevel"]),n.fields?(As(),Ps("div",{key:0,"aria-labelledby":r.buttonId,role:"group",ref:"inputs"}
100,[(As(!0),Ps(Ss,null,ea(n.fields,((t,n)=>(As(),Os(o,Zs({id:`${t.type}_${r.uid}-${n}`,key:n,value:t.checked,ref_for:!0,ref:"input"},{ref_for:!0},t,{disabled:!!t.disabled&&!t.checked,onClick:H((n=>e.$emit("inputChange",n,t)),"onClick"),onKeydown:Zl(Kl(a.close,["prevent"]),["enter"])}),null,16,["id","value","disabled","onClick","onKeydown"])))),128))],8,Zye)):Ws("",!0)])),_:1},8,["class","label","useExpand","items","itemOverlap","totalItems"])):Ws("",!0)}]]),Qye={class:"m-sort-bar"},Jye={class:"m-sort-bar__select"},eve=["for"],tve=["id","name","value"],nve=["value"],ive={key:0,class:"m-sort-bar__select"},rve=["for"],ave=["id","name","value"],sve=["value","disabled"],ove=Wee({name:"SortBar",components:{Heading:jre},props:{baseLocaleKey:{type:String,default:"m-sort-bar"},itemsCount:{type:Number,default:21},itemName:{type:String,default:"items"},itemsPerPageSelect:{type:Number,required:!0},optionsHeading:{type:String,default:"Display options"},sizeValue:{type:Number,default:20},sortOptions:{type:Array,default:H((()=>[{id:"1",label:"Name A to Z",order:"ascending",property:"title",type:"text"},{id:"2",label:"Name Z to A",order:"descending",property:"title",type:"text"}]),"default")},sortingLabel:{type:String,default:null},sortOrderId:{type:String,required:!0}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data(){const e=br();return{headingId:`heading_${e}`,itemsId:`items_${e}`,sortId:`sort_${e}`}},computed:{itemsPerPageList(){return Array.from({length:3},((e,t)=>this.sizeValue*(t+1)))},itemsLabel(){return this.itemName[0].toUpperCase()+this.itemName.slice(1).toLowerCase()},localizedItemsPerPage(){return this.translatePart("itemsPerPage",{label:this.itemsLabel})},localizedSortingLabel(){return this.translatePart("sortingLabel")||this.sortingLabel}},methods:{handleFocus(e,t){t||"key"!==e.target.dataset.focusMethod?e.target.parentNode.classList.remove("focus"):e.target.parentNode.classList.add("focus")}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading");return As(),Ps("fieldset",Qye,[Bs("legend",null,[Hs(s,{level:4,id:r.headingId,class:"visually-hidden"},{default:Ii((()=>[Bs("span",null,ze(n.optionsHeading),1)])),_:1},8,["id"])]),Bs("div",Jye,[Bs("label",{for:r.sortId},ze(a.localizedSortingLabel),9,eve),Bs("select",{id:r.sortId,name:r.sortId,class:"a-link a-link--underline",value:n.sortOrderId,onFocusin:t[0]||(t[0]=(...e)=>a.handleFocus&&a.handleFocus(...e)),onFocusout:t[1]||(t[1]=e=>a.handleFocus(e,!0)),onChange:t[2]||(t[2]=t=>e.$emit("update:sortOrderId",t.target.value)),ref:"sortOrderSelect"},[(As(!0),Ps(Ss,null,ea(n.sortOptions,((e,t)=>(As(),Ps("option",{value:e.id,key:t},ze(e.label),9,nve)))),128))],40,tve)]),a.itemsPerPageList[0]<n.itemsCount?(As(),Ps("div",ive,[Bs("label",{for:r.itemsId},ze(a.localizedItemsPerPage),9,rve),Bs("select",{class:"a-link a-link--underline",ref:"itemsPerPageSelect",id:r.itemsId,name:r.itemsId,value:n.itemsPerPageSelect,onFocusin:t[3]||(t[3]=(...e)=>a.handleFocus&&a.handleFocus(...e)),onFocusout:t[4]||(t[4]=e=>a.handleFocus(e,!0)),onChange:t[5]||(t[5]=t=>e.$emit("update:itemsPerPageSelect",parseInt(t.target.value)))},[(As(!0),Ps(Ss,null,ea(a.itemsPerPageList,((e,t)=>(As(),Ps("option",{value:e,key:t,disabled:e>=n.itemsCount+n.sizeValue},ze(e),9,sve)))),128))],40,ave)])):Ws("",!0)])}]]),lve=["sort","order"],uve={name:"Filters",components:{Accordion:jpe,AccordionItem:Voe,CardList:vde,Chip:ore,DatePickerDropdown:Ume,GuiButton:Jee,GuiInput:Mre,Heading:jre,Icon:Xie,NavDropdown:Xye,PaginationBar:Kye,SortBar:ove},mixins:[Qie],props:{accordionHeading:{type:String,default:""},applyFiltersImmediately:{type:Boolean,default:!1},baseLocaleKey:{type:String,default:"m-filters"},cardName:{type:String,default:"PostCard"},configAcrossFilters:{type:String,default:"subtractive",validate:H((e=>["additive","subtractive"].includes(e)),"validate")},configWithinFilters:{type:String,default:"subtractive",validate:H((e=>["additive","subtractive"].includes(e)),"validate")},currentHeading:{type:String,default:null},dateFieldKey:{type:String,default:"date"},dateWindow:{type:Object,default:null,validate:H((e=>!e||(e.startDate&&e.endDate?(void 0).isDateValid(e.startDate,"dateWindow.startDate")&&(void 0).isDateValid(e.endDate,"dateWindow.endDate"):e.startDate?(void 0).isDateValid(e.startDate,"dateWindow.startDate"):void 0)),"validate")},enableSorting:{type:Boolean,default:!0},enableFieldSorting:{type:Boolean,default:!0},filters:{type:Array,default:null,required:!0},formHeading:{type:String,default:"Filters"},headingLevel:{type:Number,default:3},initialActiveState:{type:Boolean,default:!1},isInAccordion:{type:Boolean,default:!0},itemName:{type:String,default:"items"},items:{type:Array,default:null},modifiers:{type:Array,default:H((()=>[]),"default")},optionsHeading:{type:String,default:"Display options"},resetButtonText:{type:String,default:"Reset"},resultsHeading:{type:String,default:"Results"},showCount:{type:Boolean,default:!1},showTotalItems:{type:Boolean,default:!0},sizeValue:{type:Number,default:20},sortingLabel:{type:String,default:null},sortOptions:{type:Array,default:H((()=>[{id:"1",label:"Name A to Z",order:"ascending",property:"title",type:"text"},{id:"2",label:"Name Z to A",order:"descending",property:"title",type:"text"}]),"default")},submitButtonText:{type:String,default:"Apply"},useVueRouter:{type:Boolean,default:!0}},emits:["filter","reset"],setup:H((e=>F({}
100,zee({baseLocaleKey:e.baseLocaleKey,strings:{currentHeading:"currentHeading",accordionHeading:"accordionHeading"}}))),"setup"),data(){const e=br();return{currentPage:1,done:!1,eventBus:Rse(),filtersState:this.filters,filteredItems:[],headingId:`heading_${e}`,itemsPerPage:this.sizeValue,menuExpanded:!1,resultsId:`results_${e}`,selectedDateString:"",sortOrderId:this.sortOptions[0].id}},beforeMount(){this.setFiltersFromQueryParams(),this.setSortFromQueryParams(),this.applyFilters(),this.sortData(),this.menuExpanded=this.selectedFilterCount>0||this.initialActiveState},mounted(){this.done=!0,this.eventBus.on("updatePage",(e=>{this.currentPage=e.page}))},computed:{appliedFilters(){return this.filtersState.flatMap((({fields:e})=>e.filter((e=>e.applied))))},appliedDateFilter(){return this.appliedFilters.find((({key:e})=>e===this.dateFieldKey))},ariaAnnouncement(){return this.translatePart("itemsShownAria",{itemCount:this.localizedFilteredItemsCount,itemName:this.itemName})},displayedAppliedFilters(){return this.filtersState.flatMap((({displayType:e,fields:t})=>t.reduce(((t,n)=>{const{applied:i,type:r}=n;if(i&&"inline"!==e)switch(r){case"checkbox":t.push(n);break;case"date":t.push({dateField:n,label:this.selectedDateString,type:"checkbox",value:!0})}return t}),[])))},displayedFiltersState(){return this.showCount?this.formatDisplayedFiltersState(this.items,this.filtersState):this.filtersState},filtersBar(){return this.displayedFiltersState.filter((({displayType:e})=>"inline"===e))},filtersDropdowns(){return this.displayedFiltersState.filter((({displayType:e})=>"inline"!==e))},filterKeys(){return this.filters.flatMap((e=>e.fields.map((({key:e})=>e)))).filter(((e,t,n)=>n.indexOf(e)===t))},hasSelectedFilters(){return this.selectedFilterCount>0},itemsLabel(){return this.itemName[0].toUpperCase()+this.itemName.slice(1).toLowerCase()},localizedClearFilters(){const e=this.appliedFilters.length>1?"clearFiltersPlural":"clearFiltersSingular";return this.translatePart(e)},localizedCurrentHeading(){return this.currentHeading||this.localized.currentHeading},localizedAccordionHeading(){return this.accordionHeading||this.localized.accordionHeading},localizedFilterCount(){return this.localizeNumber(this.selectedFilterCount)},localizedFilteredItemsCount(){return this.filteredItems.length>0?this.localizeNumber(this.filteredItems.length):this.filteredItems.length<=0&&this.appliedFilters.length>0?0:this.items?this.localizeNumber(this.items.length):void 0},localizedFilters(){return this.translateCount("filters",this.selectedFilterCount)},localizedItemsPerPage(){return this.translatePart("itemsPerPage",{label:this.itemsLabel})},localizedItemsShown(){return this.showTotalItems?this.translatePart("itemsShown",{itemCount:this.localizedFilteredItemsCount,itemName:this.itemName,total:this.localizeNumber(this.items.length)}):this.translatePart("itemsShownNoTotal",{itemCount:this.localizedFilteredItemsCount,itemName:this.itemName})},localizedSortingLabel(){return this.translatePart("sortingLabel")||this.sortingLabel},queryParamsStrategy(){return this.usingVueRouter?this.vueRouterStrategy:this.URLSearchParamsStrategy},selectedFilterCount(){return Object.values(this.getSelectedFilters(this.filtersState)).flatMap((e=>e)).length},sortOrder(){return this.sortOptions.filter((e=>e.id==this.sortOrderId))[0]},usingVueRouter(){return this.useVueRouter&&!!this.$router},wrapperComponent(){return this.isInAccordion?"AccordionItem":"div"}},watch:{appliedFilters:H((function(){lre()||window.dispatchEvent(new Event("resize"))}),"appliedFilters"),filteredItems:H((function(e){this.$emit("filter",e)}),"filteredItems")},methods:{addFilter(e){this.updateFilterFieldState(e,{checked:!0})},applyFilters(){this.filtersState=this.filtersState.map((e=>(e.fields.map((e=>{const{type:t}=e;switch(t){case"checkbox":e.applied=e.checked;break;case"date":e.applied=!!e.startDate&&!!e.endDate,this.selectedDateString=this.getDateString(e.startDate,e.endDate)}return e})),e))),this.updateFilteredItems()},dateFilterFns(e,t){const n=e[this.dateFieldKey],i=H((n=>(n=new Date(n),this.isDateValid(n,e.title)&&n>=t.startDate)),"s"),r=H((n=>(n=new Date(n),this.isDateValid(n,e.title)&&n<=t.endDate)),"n"),a=H((n=>t?i(n)&&r(n)&&this.isDateWithinDateWindow(n,e.title):this.isDateWithinDateWindow(n,e.title)),"a"),s=H((({startDate:n,endDate:i})=>!!this.isDateValid(n,e.title)&&(i?(n=new Date(n),i=new Date(i),t?n<=t.startDate&&i>=t.endDate&&this.isDateWithinDateWindow(i,e.title):this.isDateWithinDateWindow(i,e.title)):!t||r(n))),"d"),o=H((e=>{if(!t||!e.excludeDates)return!1;const n=this.expandDateRange(t),{specialClosures:i,weeklyClosures:r}=e.excludeDates,a=i.map((e=>new Date(e)));return n.every((e=>{const t=new Date(e),n=t.getDay(),i=a.some((e=>e.getTime()===t.getTime())),s=r.includes(n);return i||s}))}),"u");return{single(){const e=Array.isArray(n)?n[0]:n;return a(e)},recurring:H((()=>n.some(a)),"recurring"),range:H((()=>s(n)&&!o(n)),"range")}},dateFilterFn(e,t){const n=e[this.dateFieldKey],i=Array.isArray(n)&&1===n.length||"string"==typeof n,r=Array.isArray(n)&&n.length>1,a=!Array.isArray(n)&&"object"==typeof n&&null!==n&&!!n.startDate,
100s=!Array.isArray(n)&&"object"==typeof n&&null!==n&&!n.startDate;switch(!0){case i:return this.dateFilterFns(e,t).single();case r:return this.dateFilterFns(e,t).recurring();case a:return this.dateFilterFns(e,t).range();case s:return!0;default:return!1}},dropdownComponent(e){const{fields:t}=e;return t.some((e=>"date"===e.type))?"DatePickerDropdown":"NavDropdown"},expandDateQueryParams(e,t={}){const n=yM(e);if(!this.isDateValid(n.toDate()))return null;const i=H((e=>e.hour(23).minute(59).second(59)),"s");return t.isSingleDay?{startDate:n.toDate(),endDate:i(n).toDate()}:t.isEndDate?i(n).toDate():n.toDate()},expandDateRange({startDate:e,endDate:t}){const n=yM(t).diff(yM(e),"days")+1;return Array.from({length:n},((t,n)=>yM(e).add(n,"days").format()))},formatDisplayedFiltersState(e,t){const n=this.filtersState.map((e=>B(F({},e),{fields:e.fields.filter((({applied:e})=>e))})));return t.map(((i,r)=>{const a=n[r].fields.length,s=a?`${i.label} (${a} filter${a>1?"s":""})`:i.label;return B(F({},i),{label:s,fields:i.fields.map((n=>{if(n[this.dateFieldKey])return n;const{key:i,value:r}=n,a=this.updateFilterField({key:i,value:r},{checked:!0},t),s=this.getFilteredItems(e,a).filter((e=>Array.isArray(e[i])?e[i].includes(r):e[i]===r)).length;return B(F({},n),{disabled:0===s,label:`${n.label} (${s})`})})).sort(((e,t)=>e.disabled&&!t.disabled?1:!e.disabled&&t.disabled?-1:this.enableFieldSorting?e.label.localeCompare(t.label):0))})}))},getDateString(e,t){if(!e&&!t)return"";const n=e.getFullYear(),i=t.getFullYear(),r=e.toLocaleDateString("en-US",{month:"short",day:"numeric"}),a=t.toLocaleDateString("en-US",{month:"short",day:"numeric"});return n===i&&r===a?`${r}, ${n}`:n===i?`${r} - ${a}, ${n}`:`${r}, ${n} - ${a}, ${i}`},getDateQueryParams({startDate:e,endDate:t}){if(!this.isDateValid(e)&&!this.isDateValid(t))return{};const n=yM(e).format("YYYY-MM-DD"),i=yM(t).format("YYYY-MM-DD");return n===i?{date:n}:{startdate:n,enddate:i}},getFilteredItems(e,t){const n=this.getSelectedFilters(t),i=Object.entries(n),r=n[this.dateFieldKey]?n[this.dateFieldKey][0].value:null,a=t.find((({fields:e})=>e.some((({type:e})=>"date"===e))))?e.filter((e=>!!e[this.dateFieldKey]&&this.dateFilterFn(e,r))):e,s="additive"===this.configAcrossFilters?"some":"every",o="additive"===this.configWithinFilters?"some":"every";return a.filter((e=>!i.length||i[s]((([t,n])=>void 0!==e[t]&&n[o]((({type:n,value:i})=>{switch(n){case"checkbox":return i===e[t]||i===`${e[t]}`||Array.isArray(e[t])&&e[t].includes(i);case"date":return!0;default:return!1}}))))))},getSelectedFilters:H((e=>e.reduce(((e,t)=>{const n=t.fields.flatMap((e=>{const{type:t}=e;switch(t){case"checkbox":return e.checked?{type:t,value:e.value}:[];case"date":return e.startDate?{type:t,value:{startDate:e.startDate,endDate:e.endDate}}:[];default:return[]}}));return n.length&&(e[t.fields[0].key]=n),e}),{})),"getSelectedFilters"),handleChipDelete(e){e.dateField?this.updateFilterFieldState(e,{startDate:null,endDate:null}):this.removeFilter(e),this.updateFilters()},handleFocus(e,t){t||"key"!==e.target.dataset.focusMethod?e.target.parentNode.classList.remove("focus"):e.target.parentNode.classList.add("focus")},handleFocusout(e){document.documentElement.contains(e.relatedTarget)&&!this.$refs.fields.contains(e.relatedTarget)&&this.$refs.dropdown.forEach(((e,t)=>{this.$refs.dropdown[t].close()}))},handleInputChange(e,t){const{dateField:n,type:i}=t;switch(!0){case"checkbox"===i:if(n){const{startDate:t,endDate:i}=n,r=e.target.checked?{startDate:t,endDate:i}:{startDate:null,endDate:null};this.updateFilterFieldState(n,r)}else e.target.checked?this.addFilter(t):this.removeFilter(t);break;case"date"===i:this.updateFilterFieldState(t,e)}!this.isInAccordion&&this.applyFiltersImmediately&&this.updateFilters()},handleInlineCheckboxChange(e,t,n){e?this.addFilter(n):this.removeFilter(n),!this.isInAccordion&&this.applyFiltersImmediately&&this.updateFilters()},handleReset(){this.$refs.filtersForm.reset(),this.filtersState.forEach((e=>{e.fields.forEach((e=>{const{type:t}=e;switch(t){case"checkbox":this.updateFilterFieldState(e,{applied:!1,checked:!1});break;case"date":this.updateFilterFieldState(e,{applied:!1,startDate:null,endD
100ate:null})}}))})),this.$refs.itemsPerPageSelect&&(this.itemsPerPage=parseFloat(this.$refs.itemsPerPageSelect.value,10)),this.updateFilteredItems(),this.resetPagination(),this.sortData(),this.updateHistory(),this.$refs.dropdown&&this.$refs.dropdown.forEach((e=>{e.$emit("reset");const{$el:t,$refs:n}=e;if(n.datePicker)n.datePicker.forEach((e=>{e.handleClear()}));else for(const i of t.querySelectorAll('input[type="checkbox"]'))i.checked=!1}))},handleSubmit(e){e.preventDefault(),this.filtersState.forEach((e=>{e.fields.forEach((e=>{this.updateFilterFieldState(e,{applied:!1})}))})),this.$refs.itemsPerPageSelect&&(this.itemsPerPage=parseFloat(this.$refs.itemsPerPageSelect.value,10)),this.updateFilters()},isDateValid:H(((e,t="item")=>(e=new Date(e))instanceof Date||(console.error(`Error for item '${t}': date '${e}' is not a valid date`),!1)),"isDateValid"),isDateWithinDateWindow(e,t="item"){return e=new Date(e),!!this.isDateValid(e,t)&&(!this.dateWindow||(this.dateWindow.startDate&&this.dateWindow.endDate?e>=this.dateWindow.startDate&&e<=this.dateWindow.endDate:this.dateWindow.startDate?e>=this.dateWindow.startDate:void 0))},paginate(e){return e.slice((this.currentPage-1)*this.itemsPerPage,this.currentPage*this.itemsPerPage)},removeFilter(e){this.updateFilterFieldState(e,{checked:!1})},resetPagination(){this.currentPage=1},setFiltersFromQueryParams(){this.queryParamsStrategy().forEach((([e,t])=>{const n=this.filtersState.flatMap((e=>e.fields.map((e=>e)))).find((n=>n.key===e&&n.value===t));n&&this.addFilter(n),e===this.dateFieldKey&&this.updateFilterFieldState({key:this.dateFieldKey,type:"date",value:null},t)}))},setSortFromQueryParams(){if(!this.enableSorting)return;const e=this.queryParamsStrategy(),t=e.find((e=>"sort"===e[0])),n=e.find((e=>"order"===e[0])),i=t&&t[1],r=n&&n[1],a=this.sortOptions.filter((e=>e.property===i&&e.order===r));a.length&&(this.sortOrderId=a[0].id)},sortData(){if(!this.enableSorting)return;const{order:e,property:t}=this.sortOrder;e&&t||console.error('Filters sortOption requires "order" and "property" properties. sortOption:',this.sortOrder),this.filteredItems=this.filteredItems.sort(ofe([t],e))},updateFilterField({key:e,value:t},n,i){if(i)return i.map((i=>{const r=i.fields.map((i=>{const{type:r}=i;switch(r){case"date":return F(F({},i),n);case"checkbox":return i.value===t&&i.key===e?F(F({},i),n):i;default:return i}}));return B(F({},i),{fields:r})}))},updateFilterFieldState({key:e,value:t},n){this.filtersState=this.updateFilterField({key:e,value:t},n,this.filtersState)},URLSearchParamsStrategy(){const e=new URLSearchParams(window.location.search),t=[],n=lve.concat(this.filterKeys);let i,r;return e.forEach(((e,a)=>{if(n.includes(a)){const n=a===this.dateFieldKey?this.expandDateQueryParams(e,{isSingleDay:!0}):e;t.push([a,n])}"startdate"===a&&(i=this.expandDateQueryParams(e)),"enddate"===a&&(r=this.expandDateQueryParams(e,{isEndDate:!0}))})),i&&r&&t.push([this.dateFieldKey,{startDate:i,endDate:r}]),t},updateFilters(){this.applyFilters(),this.resetPagination(),this.sortData(),this.updateHistory()},updateFilteredItems(){this.filteredItems=this.getFilteredItems(this.items,this.filtersState)},updateHistory(){return V(this,null,(function*(){const e=this.appliedFilters.reduce(((e,{key:t,value:n})=>(t!==this.dateFieldKey&&e.push([t,n]),e)),[]),t=this.appliedDateFilter?Object.entries(this.getDateQueryParams(this.appliedDateFilter)):[],n=this.enableSorting?[["sort",this.sortOrder.property],["order",this.sortOrder.order]]:[],i=new URL(window.location),r=new URLSearchParams([...e,...t,...n]);if(i.search=r,this.usingVueRouter&&i.pathname+i.search!=this.$route.fullPath){const e={path:this.$route.path,query:Object.fromEntries(r.entries())};this.$route.name&&(delete e.path,e.name=this.$route.name);const t=yield this.$router.push(e);Xc(t)&&console.error(t)}else window.history.pushState(null,null,i.href)}))},updateItemsPerPage(e){this.itemsPerPage=e,!this.isInAccordion&&this.applyFiltersImmediately&&this.updateFilters()},updateSortOrderId(e){this.sortOrderId=e,!this.isInAccordion&&this.applyFiltersImmediately&&this.updateFilters()},vueRouterStrategy(){const e=[],t=lve.concat(this.filterKeys);let n,i;
100return Object.entries(this.$route.query).forEach((([r,a])=>{if(t.includes(r)){const t=r===this.dateFieldKey?this.expandDateQueryParams(a,{isSingleDay:!0}):a;Array.isArray(t)?t.forEach((t=>e.push([r,t]))):e.push([r,t])}"startdate"===r&&(n=this.expandDateQueryParams(a)),"enddate"===r&&(i=this.expandDateQueryParams(a,{isEndDate:!0}))})),n&&i&&e.push([this.dateFieldKey,{startDate:n,endDate:i}]),e}}},cve={id:"aria-live-announcer",class:"visually-hidden","aria-live":"polite"},dve=["aria-labelledby"],pve={class:"m-filters__bar"},hve={key:2,class:"m-filters__applied"},fve={key:0},mve={class:"m-filters__footer"},gve={key:0,class:"m-filters__btns"},yve={key:0},vve={class:"visually-hidden"},bve={class:"m-filters__results"},_ve={class:"m-filters__before-results"},wve={key:0,"aria-atomic":"true","aria-live":"polite",class:"m-filters__shown"},Sve=Wee(uve,[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("Heading"),l=Yr("GuiInput"),u=Yr("SortBar"),c=Yr("Chip"),d=Yr("GuiButton"),p=Yr("CardList"),h=Yr("PaginationBar");return r.done?(As(),Ps("div",{key:0,class:Fe(["m-filters",{"m-filters--accordion":n.isInAccordion},{"m-filters--apply-immediately":n.applyFiltersImmediately}])},[Bs("div",cve,ze(a.ariaAnnouncement),1),Bs("div",{class:"m-accordion m-accordion--small",onFocusout:t[3]||(t[3]=(...e)=>a.handleFocusout&&a.handleFocusout(...e))},[(As(),Os(Xr(a.wrapperComponent),{index:1,initialActiveState:r.menuExpanded,ref:"accordionItem",headingLevel:n.headingLevel,useTransition:!1},{title:Ii((()=>[Hs(s,{"aria-hidden":"true",name:"filters500"}),qs(" "+ze(a.localizedAccordionHeading),1)])),default:Ii((()=>[Bs("form",{ref:"filtersForm",onSubmit:t[1]||(t[1]=Kl((()=>{}),["prevent"])),onKeydown:t[2]||(t[2]=Zl(Kl((()=>{}),["prevent"]),["enter"]))},[Hs(o,{level:n.headingLevel+1,id:r.headingId,class:"visually-hidden"},{default:Ii((()=>[qs(ze(n.formHeading),1)])),_:1},8,["level","id"]),a.filtersDropdowns.length?(As(),Ps("ul",{key:0,"aria-labelledby":r.headingId,class:"m-filters__fields",ref:"fields"},[(As(!0),Ps(Ss,null,ea(a.filtersDropdowns,((e,t)=>(As(),Ps("li",{key:t},[(As(),Os(Xr(a.dropdownComponent(e)),Zs({useExpand:!0,itemOverlap:.25},{ref_for:!0},e,{ref_for:!0,ref:"dropdown",onClear:a.handleInputChange,onInputChange:a.handleInputChange,onSubmit:a.handleInputChange}),null,16,["onClear","onInputChange","onSubmit"]))])))),128))],8,dve)):Ws("",!0),(As(!0),Ps(Ss,null,ea(a.filtersBar,(e=>(As(),Ps("div",pve,[t[4]||(t[4]=Bs("label",{class:"filters__label"},"Show Only:",-1)),(As(!0),Ps(Ss,null,ea(e.fields,(t=>(As(),Os(l,{disabled:t.disabled,key:t.value,type:"checkbox",label:t.label,value:t.applied,ref_for:!0,ref:"filterBar",onInput:H((n=>a.handleInlineCheckboxChange(n,e,t)),"onInput")},null,8,["disabled","label","value","onInput"])))),128))])))),256)),n.enableSorting?(As(),Os(u,{key:1,"items-count":r.filteredItems.length,"size-value":n.sizeValue,"sort-options":n.sortOptions,"sort-order-id":r.sortOrderId,"items-per-page-select":r.itemsPerPage,"onUpdate:sortOrderId":a.updateSortOrderId,"onUpdate:itemsPerPageSelect":a.updateItemsPerPage},null,8,["items-count","size-value","sort-options","sort-order-id","items-per-page-select","onUpdate:sortOrderId","onUpdate:itemsPerPageSelect"])):Ws("",!0),a.displayedAppliedFilters.length>0?(As(),Ps("fieldset",hve,[Bs("legend",{class:Fe({"visually-hidden":!n.isInAccordion})},[Hs(o,{level:n.headingLevel+1,class:"m-filters__heading"},{default:Ii((()=>[Bs("span",null,ze(a.localizedCurrentHeading),1)])),_:1},8,["level"])],2),Bs("ul",null,[(As(!0),Ps(Ss,null,ea(a.displayedAppliedFilters,((e,t)=>(As(),Ps("li",{key:t},[!n.isInAccordion&&n.applyFiltersImmediately?(As(),Os(c,{key:0,term:e.label,onDeleteChip:H((t=>a.handleChipDelete(e)),"onDeleteChip")},null,8,["term","onDeleteChip"])):(As(),Os(l,{key:1,label:e.label,value:!0,ref_for:!0,ref:"appliedFilter",type:"checkbox",onChange:H((t=>a.handleInputChange(t,e)),"onChange")},null,8,["label","onChange"]))])))),128)),!n.isInAccordion&&n.applyFiltersImmediately?(As(),Ps("li",fve,[Bs("button",{class:"m-filters__chip-clear",onClick:t[0]||(t[0]=(...e)=>a.handleReset&&a.handleReset(...e))},ze(a.localizedClearFilters),1)])):Ws("",!0)])])):Ws("",!0),Bs("div",mve,[n.applyFiltersImmediately?Ws("",!0):(As(),Ps("div",gve,[Hs(d,{name:"submit",type:"submit",onClick:a.handleSubmit},{default:Ii((()=>[qs(ze(n.submitButtonText)+" ",1),a.hasSelectedFilters?(As(),Ps("span",yve,[qs(" Â ("+ze(a.localizedFilterCount),1),Bs("span",vve,ze(a.localizedFilters),1),t[5]||(t[5]=qs(") "))])):Ws("",!0)])),_:1},8,["onClick"]),Hs(d,{name:"resetBtn",modifiers:["outline"],value:n.resetButtonText,onClick:a.handleReset},null,8,["value","onClick"])]))])],544)])),_:1},8,["initialActiveState","headingLevel"]))],32),Bs("div",bve,[Hs(o,{id:r.resultsId,level:n.headingLevel,class:"visually-hidden"},{default:Ii((()=>
100[Bs("span",null,ze(n.resultsHeading),1)])),_:1},8,["id","level"]),Bs("div",_ve,[n.items?(As(),Ps("span",wve,ze(a.localizedItemsShown),1)):Ws("",!0),n.enableSorting&&!n.isInAccordion?(As(),Os(u,{key:1,"items-count":r.filteredItems.length,"size-value":n.sizeValue,"sort-options":n.sortOptions,"sort-order-id":r.sortOrderId,"items-per-page-select":r.itemsPerPage,"onUpdate:sortOrderId":a.updateSortOrderId,"onUpdate:itemsPerPageSelect":a.updateItemsPerPage},null,8,["items-count","size-value","sort-options","sort-order-id","items-per-page-select","onUpdate:sortOrderId","onUpdate:itemsPerPageSelect"])):Ws("",!0)]),na(e.$slots,"default"),!e.hasDefaultSlotContent&&r.filteredItems&&r.filteredItems.length>0?(As(),Os(p,{key:0,"aria-labelledby":r.resultsId,items:a.paginate(r.filteredItems),modifiers:n.modifiers,"card-name":n.cardName},null,8,["aria-labelledby","items","modifiers","card-name"])):Ws("",!0)]),Hs(h,{currentPage:r.currentPage,sizeValue:r.itemsPerPage,totalHits:r.filteredItems.length,itemName:n.itemName},null,8,["currentPage","sizeValue","totalHits","itemName"])],2)):Ws("",!0)}]]),Cve={key:0,class:"m-follow-callout__aside"},kve={class:"m-follow-callout__main"},xve=Wee({name:"FollowCallout",mixins:[Jie],components:{GuiLink:rre,Heading:jre,ImageResponsive:vae,ListOfLinksWithHeading:Wre,RichText:cre},props:{baseLocaleKey:{type:String,default:"m-follow-callout"},content:{type:String,default:null},href:{type:String,default:null},links:{type:Array,default:null},baseHeadingLevel:{type:Number,default:2},media:{type:Object,default:null},modifier:{type:String,default:null},title:{type:String,default:null}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),computed:{linksHeading(){return`${this.translatePart("follow")} <span class="visually-hidden">${this.translatePart("platforms")}</span>`},linksHeadingLevel(){return this.baseHeadingLevel+1}}},[["render",function(e,t,n,i,r,a){const s=Yr("ImageResponsive"),o=Yr("Heading"),l=Yr("RichText"),u=Yr("ListOfLinksWithHeading");return As(),Ps("div",{class:Fe(["m-follow-callout",n.modifier&&`m-follow-callout--${n.modifier}`])},[n.media?(As(),Ps("div",Cve,[Hs(s,Zs(F({},n.media),{size:"post_small_1_1"}),null,16)])):Ws("",!0),Bs("div",kve,[n.title?(As(),Os(o,{key:0,class:"m-follow-callout__title",level:n.baseHeadingLevel},{default:Ii((()=>[(As(),Os(Xr(n.href?"GuiLink":"span"),{href:n.href,underline:!0},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["href"]))])),_:1},8,["level"])):Ws("",!0),n.content?(As(),Os(l,{key:1,content:n.content},null,8,["content"])):Ws("",!0),n.links&&"aside"!==n.modifier?(As(),Os(u,{key:2,heading:a.linksHeading,headingLevel:a.linksHeadingLevel,showHeading:"aside"===n.modifier,modifiers:["link-underline"],links:n.links,withIcons:"before"},null,8,["heading","headingLevel","showHeading","links"])):Ws("",!0)]),n.links&&"aside"===n.modifier?(As(),Os(u,{key:1,heading:a.linksHeading,headingLevel:a.linksHeadingLevel,showHeading:"aside"===n.modifier,modifiers:["link-underline"],links:n.links,withIcons:"before"},null,8,["heading","headingLevel","showHeading","links"])):Ws("",!0)],2)}]]),Tve={name:"GridItem",components:{GuiLink:rre},props:{isGridItemClickable:{type:Boolean,required:!1,default:!1},heading:{type:String,required:!1,default:void 0},linkProps:{type:Object,required:!1,default:void 0},linkQualifierText:{type:String,required:!1,default:void 0},linkText:{type:String,required:!1,default:void 0},subheading:{type:String,required:!1,default:void 0}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),computed:{rootClasses(){let e=["a-grid-item"];return this.isGridItemClickable&&this.linkProps&&this.linkProps.to&&e.push("a-grid-item__clickable"),e}}},Eve={class:"a-grid-item"},Ave={class:"a-grid-item__primary"},Lve={class:"a-grid-item__secondary"},Ive={key:1,ref:"href",class:"a-grid-item__href"},$ve=Wee(Tve,[["render",function(e,t,n,i,r,a){const s=Yr("GuiLink");return As(),Ps("div",Eve,[(As(),Os(Xr(n.isGridItemClickable?"router-link":"div"),{ref:"root",to:n.linkProps?n.linkProps.to:void 0},{default:Ii((()=>[Bs("div",Ave,[n.heading?(As(),Ps("h4",{key:0,ref:"title",class:"a-grid-item__heading"},ze(n.heading),513)):Ws("",!0),n.subheading?(As(),Ps("h5",{key:1,ref:"artist",class:"a-grid-item__subheading"},ze(n.subheading),513)):Ws("",!0)]),Bs("div",Lve,[n.linkQualifierText?(As(),Ps("p",{key:0,ref:"credit",class:"a-grid-item__link-text"},ze(n.linkQualifierText),513)):Ws("",!0),n.linkProps&&n.linkText?(As(),Ps("p",Ive,[Hs(s,Be(Us(F({},n.linkProps))),{default:Ii((()=>[qs(ze(n.linkText),1)])),_:1},16)],512)):Ws("",!0)])])),_:1},8,["to"]))])}]]),Dve=H((({componentRef:e,useGrid:t=!0,itemSelector:n="li",listSelector:i="ul",intervalLength:r=200,tolerance:a=10,itemClass:s="g-align-image-base__list-item",textSelectors:o=".g-align-image-base__list-item-text, .g-align-image-base__list-item figcaption"})=>{let l,u,c=!1;function d(){var n;if(c)return!0;
100if(null==(null==e?void 0:e.value)||"function"!=typeof e.value.querySelectorAll)return!1;c=!0;let r="g-align-image-base";t&&(r="g-align-image-base--grid"),e.value.classList.add(r);let a=e.value.querySelector(i);return 0==(null==(n=null==a?void 0:a.parentNode)?void 0:n.classList.contains("tns-controls"))&&a.classList.add("g-align-image-base__list"),p(),u=new ResizeObserver(ete(p)),u.observe(e.value),!0}function p(){null==e.value||null==e.value.querySelectorAll||(e.value.querySelectorAll(n).forEach((e=>{0==e.classList.contains(s)&&e.classList.add(s)})),function(e=[]){let t={},n=0;e.forEach((e=>{let i=e.getBoundingClientRect();e.setAttribute("row",i.bottom);let r=i.bottom;Math.abs(r-n)<a?r=n:n=r,null==t[r]&&(t[r]={values:[],height:0}),e.setAttribute("groupedRow",r);let s=t[r];s.values.push(e),i.height>s.height&&(s.height=i.height)}));let i=[];Object.values(t).forEach((e=>{i.push(e.values.length),e.size=e.values.length,e.values.forEach((t=>{t.style.minHeight=`${e.height}px`}))})),i.pop()}(e.value.querySelectorAll(o)))}return H(d,"k"),H(p,"M"),Fr((()=>{d()||(l=setInterval((()=>{d()&&clearInterval(l)}),r))})),Ur((()=>{u&&u.unobserve(e.value),l&&clearInterval(l)})),{}}),"n1"),Pve={name:"GridOfItems",components:{GridItem:$ve,Heading:jre}
100,mixins:[Moe,{name:"ResponsiveGrid",data:H((()=>({itemsPerRow:void 0})),"data"),computed:{gridRows(){let e=this.items,t=this.itemsPerRow;const n=[];for(let i=0;i<e.length;i+=t)n.push(e.slice(i,i+t));return n}},created(){this.onResize()},mounted(){window.addEventListener("resize",this.onResize)},unmounted(){window.removeEventListener("resize",this.onResize)},methods:{onResize(){this.isLargePlus()&&(this.itemsPerRow=this.maxItemsPerRow),"medium"==this.getCurrentBreakpoint()&&(this.itemsPerRow=Math.ceil(this.maxItemsPerRow/2)),this.isSmallMinus()&&(this.itemsPerRow=1)}}}],props:{heading:{type:String,required:!0},headingLevel:{type:Number,default:3},items:{type:Array,default:void 0},maxItemsPerRow:{type:Number,default:4,validation:H((e=>[6,4,3].includes(e)),"validation")},showHeading:{type:Boolean,default:!0},showCount:{type:Boolean,default:!1},showTopBorder:{type:Boolean,default:!1},total:{type:Number,required:!1,default:0},totalLabelKey:{type:String,default:"m-grid-of-items.total_label"}},setup:H((e=>(Dve({componentRef:wr("grid")}),F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey})))),"setup"),computed:{ariaId(){return this.$options.name+"-"+br()},classes(){return["m-grid-of-items__"+this.maxItemsPerRow,"m-grid-of-items__grid "]},totalLabel(){return this.translateCount(this.totalLabelKey,this.total,{count:this.localizeNumber(this.total)})}}},Ove={class:"m-grid-of-items"},Mve={key:0,class:"m-grid-of-items__total_count"},Rve=["aria-labelledby"],Nve={class:"m-grid-of-items__item-wrapper"},Fve=Wee(Pve,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("GridItem");return As(),Ps("div",Ove,[Hs(s,{level:n.headingLevel,id:a.ariaId,ref:"heading","data-testid":"grid-heading",class:Fe({"m-grid-of-items__heading":n.showHeading,"visually-hidden":!n.showHeading})},{default:Ii((()=>[qs(ze(n.heading),1)])),_:1},8,["level","id","class"]),n.showCount?(As(),Ps("div",Mve,ze(a.totalLabel),1)):Ws("",!0),Bs("div",{class:Fe({"m-grid-of-items__results-grid":n.showTopBorder}),ref:"grid"},[Bs("ul",{class:Fe(a.classes),"aria-labelledby":a.ariaId},[(As(!0),Ps(Ss,null,ea(n.items,(t=>(As(),Ps("li",{key:t.id,class:"m-grid-of-items__item"},[Bs("div",Nve,[na(e.$slots,"item",{item:t},(()=>[Hs(o,Zs({ref_for:!0},t),null,16)]))])])))),128))],10,Rve)],2)])}]]),Bve={props:{yAxisTickAtTop:{type:Boolean,default:!0},dataGranularity:{type:Number,default:10}},data:H((()=>({baseLocaleKey:"m-chart"})),"data"),computed:{dataXRange(){return this.maxX-this.minX},dataYRange(){return this.maxY-this.minY},yOffset(){return this.yAxisTickAtTop?100:80}},methods:{getX(e,t){return this.yAxisPoint+(e-this.minX)/this.dataXRange*(this.width-30)},getY(e){let t=(e-this.minY)/this.dataYRange*(this.height-this.yOffset);return this.xAxisPoint-t},getYTick(e,t=!1){let n=Math.round(this.minY+(e-1)*this.dataYRange/this.yTickSize(this.height,this.dataYRange));return 0==t?n:10*Math.ceil(n/10)},yTickSize:H((e=>Math.round(e/50)),"yTickSize")}},Hve={name:"GraphSlider",extends:Bve,props:{xAxisPoint:{type:Number,required:!0},yAxisPoint:{type:Number,required:!0},width:{type:Number,required:!0},minX:{type:Number,required:!0},maxX:{type:Number,required:!0},rangeMax:{type:Number,required:!0},rangeMin:{type:Number,required:!0},isMobile:{type:Boolean,required:!1,default:!1}},emits:["dragUpdate","range","updateRangeMax","updateRangeMin"],data:H((()=>({startX:void 0,startVal:void 0,mouseClientX:void 0,mouseClientY:void 0,tracking:void 0,rangeLeft:{x:-200,pixelX:100,class:"m-chart__graph-slider__selector"},rangeRight:{x:100,pixelX:1e3,class:"m-chart__graph-slider__selector"}})),"data"),computed:{cursor(){return"cursor: "+(this.tracking?"grabbing":"grab")},handleRadius(){return this.isMobile?12:8},pixelsPerInt(){return(this.getX(10)-this.getX(0))/10}},watch:{rangeMin(){null==this.tracking&&this.updateRangeMin()},rangeMax(){null==this.tracking&&this.updateRangeMax()}},mounted(){this.updateRangeMin(),this.updateRangeMax(),this.$nextTick((()=>{window.addEventListener("mousemove",this.setMouseMove),window.addEventListener("mouseup",this.drop)}))},beforeUnmount(){window.removeEventListener("mousemove",this.setMouseMove),window.removeEventListener("mouseup",this.drop)},methods:{updateRangeMin(){this.rangeLeft.x=this.rangeMin,this.rangeLeft.pixelX=this.getX(this.rangeMin),this.$emit("updateRangeMin",this.rangeLeft.x)},updateRangeMax(){this.rangeRight.pixelX=this.getX(this.rangeMax),this.rangeRight.x=this.rangeMax,this.$emit("updateRangeMax",this.rangeRight.x)},mouseOutLeft(){this.rangeLeft.class="m-chart__graph-slider__selector"},mouseOverLeft(){this.rangeLeft.class="m-chart__graph-slider__selector--active"},mouseOutRight(){this.rangeRight.class="m-chart__graph-slider__selector"},mouseOverRight(){this.rangeRight.class="m-chart__graph-slider__selector--active"},dragLeft(e){null==e.touches&&e.preventDefault(),this.startVal=this.rangeLeft.x,this.drag(e,"rangeLeft")},dragRight(e){null==e.touches&&e.preventDefault(),this.startVal=this.rangeRight.x,this.drag(e,"rangeRight")},drag(e,t){null==e.touches&&e.preventDefault(),this.tracking=t,e.clientX&&(this.startX=e.clientX),e.touches&&e.touches[0].clientX&&(this.startX=e.touches[0].clientX),this.$emit("dragUpdate","drag")},drop(e){null==e.touches&&e.preventDefault(),this.tracking&&this.$emit("dragUpdate","drop"),this.tracking=void 0},move(e){if(null==e.touches&&e.preventDefault(),null==this.tracking)return;let t=this.mouseClientX;e.touches&&(t=e.touches[0].clientX);let n=this.getMouseMoveInUnits(t,this.startX,this.startVal,this.pixelsPerInt);if(this.debug&&(this.debugRangeData={clientX:this.mouseClientX,startX:this.startX,startVal:this.startVal,pixelsPerInt:this.pixelsPerInt,yAxisPoint:this.yAxisPoint,offsetX:e.offsetX,dataPos:n}),n<=this.maxX&&n>=this.minX&&("rangeLeft"==this.tracking&&n<=this.rangeRight.x||"rangeRight"==this.tracking&&n>=this.rangeLeft.x)){this[this.tracking].x=n,e.touches&&e.touches[0].clientX?this[this.tracking].pixelX=e.touches[0].clientX-20:this[this.tracking].pixelX=e.offsetX;let t={fieldName:this.fieldName,min:Math.round(this.rangeLeft.x),max:Math.round(this.rangeRight.x),minPixel:this.rangeLeft.x,maxPixel:this.rangeRight.x};this.$emit("range",t)}},setMouseMove(e){this.mouseClientX=e.clientX,this.mouseClientY=e.clientY,this.move(e)},getMouseMoveInUnits:H(((e,t,n,i)=>n+(e-t)/i),"getMouseMoveInUnits")}},jve=["x1","x2","y1","y2"],Uve=["cx","cy","r"],Vve=["cx","cy","r"],qve=Wee(Hve,[["render",function(e,t,n,i,r,a){return As(),Ps("g",{ref:"sider",class:"m-chart__graph-slider",style:Pe(a.cursor),onMouseup:t[8]||(t[8]=(...e)=>a.drop&&a.drop(...e)),onTouchend:t[9]||(t[9]=(...e)=>a.drop&&a.drop(...e)),onTouchmove:t[10]||(t[10]=(...e)=>a.move&&a.move(...e))},[Bs("line",{x1:e.getX(r.rangeLeft.x,"slider"),x2:e.getX(r.rangeRight.x),y1:n.xAxisPoint,y2:n.xAxisPoint,class:"m-chart__graph-slider__bar"},null,8,jve),Bs("circle",{ref:"rangeLeft",cx:e.getX(r.rangeLeft.x),cy:n.xAxisPoint,class:Fe(r.rangeLeft.class),r:a.handleRadius,onMouseover:t[0]||(t[0]=(...e)=>a.mouseOverLeft&&a.mouseOverLeft(...e)),onMouseout:t[1]||(t[1]=(...e)=>a.mouseOutLeft&&a.mouseOutLeft(...e)),onMousedown:t[2]||(t[2]=(...e)=>a.dragLeft&&a.dragLeft(...e)),onTouchstart:t[3]||(t[3]=(...e)=>a.dragLeft&&a.dragLeft(...e))},null,42,Uve),Bs("circle",{ref:"rangeRight",cx:e.getX(r.rangeRight.x),cy:n.xAxisPoint,class:Fe(r.rangeRight.class),r:a.handleRadius,onMouseover:t[4]||(t[4]=(...e)=>a.mouseOverRight&&a.mouseOverRight(...e)),onMouseout:t[5]||(t[5]=(...e)=>a.mouseOutRight&&a.mouseOutRight(...e)),onMousedown:t[6]||(t[6]=(...e)=>a.dragRight&&a.dragRight(...e)),onTouchstart:t[7]||(t[7]=(...e)=>a.dragRight&&a.dragRight(...e))},null,42,Vve)],36)}]]),zve={name:"LineGraph",extends:Bve,props:{data:{type:Array,required:!0},rangeMax:{type:Number,required:!1,default:void 0},rangeMin:{type:Number,required:!1,default:void 0},rangeMaxPixel:{type:Number,required:!1,default:void 0}
100,rangeMinPixel:{type:Number,required:!1,default:void 0},withSelectedData:{type:Boolean,default:!0},width:{type:Number,required:!1,default:600},height:{type:Number,required:!1,default:400},xAxisPoint:{type:Number,required:!0},yAxisPoint:{type:Number,required:!0},minX:{type:Number,required:!0},maxX:{type:Number,required:!0},minY:{type:Number,required:!0},maxY:{type:Number,required:!0},withAnimation:{type:Boolean,required:!1,default:!0}},data:H((()=>({dataRangePoints:"",uid:br(),numPoints:1e3,previousRangePoints:"",selectedRangePoints:"",reducedMotionRequested:ite(),animationCount:0})),"data"),watch:{minX(){this.updateLineGraphData()},width(){this.updateLineGraphData()},minY(){this.updateLineGraphData()},maxX(){this.updateLineGraphData()},maxY(){this.updateLineGraphData()},data:{handler(){this.updateLineGraphData()},deep:!0}},mounted(){this.setupGraph(),this.updateLineGraphData()},methods:{getCalculatedRangeX(e,t){let n=e;return null!=t&&(n=t),this.getX(n)},getCalculatedRangeWidth(){let e=this.getCalculatedRangeX(this.rangeMin,this.rangeMinPixel);return this.getCalculatedRangeX(this.rangeMax,this.rangeMaxPixel)-e},setupGraph(){const e={name:this.minX,val:this.minY};let t=[];for(let n=0;n<=this.numPoints;n++)t.push(e);this.updateLineGraphData(t)},updateLineGraphData(e=this.data){if(0==Array.isArray(e)||e.length<1)return;let t=this.getY(this.minY);const n=`${this.getX(this.minX)},${t}`,i=`${this.getX(this.maxX)},${t}`;let r=[];const a=this.numPoints-this.data.length-100;r.push(n),e.forEach((e=>{r.push(`${this.getX(e.name)},${this.getY(e.val)}`)}));for(let l=0;l<=Math.ceil(a)+1;l++)r.push(i);r=r.join(" ");let s=[];if(""==this.dataRangePoints||0==this.withAnimation)return this.dataRangePoints=r,this.previousRangePoints=r,r;if(r==this.previousRangePoints)return r;this.previousRangePoints=r;let o=this.createAnimation(r);if(this.$refs.chart.append(o),s.push(o),this.withSelectedData){let e=this.createAnimation(r);this.$refs.selectedChart.append(e),s.push(e)}return s.forEach((e=>{e.beginElement&&e.beginElement()})),this.animationCount++,r},createAnimation(e){let t=document.createElementNS("http://www.w3.org/2000/svg","animate");return t.setAttribute("attributeType","XML"),t.setAttribute("attributeName","points"),t.setAttribute("keyTimes","0;1"),t.setAttribute("calcMode","spline"),this.reducedMotionRequested||0==this.animationCount?t.setAttribute("dur","1ms"):t.setAttribute("dur","500ms"),t.setAttribute("fill","freeze"),t.setAttribute("repeatCount","0"),t.setAttribute("keySplines","0,0,1,1"),t.setAttribute("to",`${e}`),t}}},Wve={class:"m-chart__line-graph","data-setname":"data range"},Gve=["id"],Kve=["x","width","height"],Yve=["points"],Zve=["dur"],Xve=["clip-path","points"],Qve=["dur"],Jve=Wee(zve,[["render",function(e,t,n,i,r,a){return As(),Ps("g",Wve,[Bs("clipPath",{id:`selected${r.uid}`},[Bs("rect",{ref:"selection",x:a.getCalculatedRangeX(n.rangeMin,n.rangeMinPixel),width:a.getCalculatedRangeWidth(),height:n.height},null,8,Kve)],8,Gve),Bs("polygon",{ref:"chart",points:r.dataRangePoints,class:"m-chart__line-graph--data"},[n.withAnimation?(As(),Ps("animateTransform",{key:0,attributeName:"transform",attributeType:"XML",type:"translate",from:"0 200",to:"0 0",dur:r.reducedMotionRequested?"1ms":"500ms",repeatCount:"0",fill:"freeze"},null,8,Zve)):Ws("",!0)],8,Yve),n.withSelectedData?(As(),Ps("polygon",{key:0,"clip-path":`url(#selected${r.uid})`,ref:"selectedChart",points:r.dataRangePoints,class:"m-chart__line-graph--selected"},[n.withAnimation?(As(),Ps("animateTransform",{key:0,attributeName:"transform",attributeType:"XML",type:"translate",from:"0 200",to:"0 0",dur:r.reducedMotionRequested?"1ms":"500ms",repeatCount:"0",fill:"freeze"},null,8,Qve)):Ws("",!0)],8,Xve)):Ws("",!0)])}]]),ebe={name:"XAxis",extends:Bve,props:{forceStartEndLabel:{type:Boolean,default:!1},xAxisPoint:{type:Number,required:!0},yAxisPoint:{type:Number,required:!0},width:{type:Number,required:!0},minX:{type:Number,required:!0},maxX:{type:Number,required:!0},xAxisLabel:{type:String,required:!1,default:void 0}},setup:H((e=>F({},zee({baseLocaleKey:(null==e?void 0:e.baseLocaleKey)||"m-chart"}))),"setup"),data:H((()=>
100({axisValues:[],xAxisLineOffset:10,xAxisNameOffset:40,xTickLabelOffset:20,xTickBottomOffset:5,xTickTopOffset:5})),"data"),mounted(){this.updateAxisValues(),Bi([()=>this.minX,()=>this.maxX],(()=>{this.updateAxisValues()})),Bi((()=>this.width),(()=>{this.updateAxisValues()}))},methods:{getTicks(e=this.width,t=this.dataGranularity){if(t<10){const e=this.maxX-this.minX;e>19&&(t=5),e>99&&(t=10)}const n=[];let i=80;this.minX<0&&(i+=40);const r=H(((e,t="middle")=>({tick:e,x:this.getX(e),label:this.getXTickLabel(e),position:t})),"n");let a=Math.floor(e/i);a%2==0&&a++;const s=this.maxX-this.minX;let o=Math.floor(s/2)+this.minX,l=Math.ceil(s/a);const u=H((e=>e-e%t),"p");l!=t&&(l<t&&(l=t),l%t!=0&&(l=t=l-l%t),a=Math.ceil(s/t));const c=u(o);n.push(r(c));for(let d=1;d<a;d++){const e=u(c-d*l),t=u(c+d*l);e>this.minX&&n.unshift(r(e)),t<this.maxX&&n.push(r(t))}return n.unshift(r(this.minX,"start")),n.push(r(this.maxX,"end")),n[1].x-n[0].x<i&&(this.forceStartEndLabel?n.splice(1,1):n[1].label=""),n.at(-1).x-n.at(-2).x<i&&(this.forceStartEndLabel?n.splice(n.length-2,1):n[n.length-2].label=""),n.map(((e,t)=>e.i=t)),n},getXTickLabel(e){return isNaN(e)?"":parseInt(e)<0?this.translatePart("bce_date",{date:Math.abs(e)}):e},updateAxisValues(){this.axisValues=this.getTicks()}}},tbe={class:"m-chart-xAxis-group"},nbe=["x1","x2","y1","y2"],ibe={class:"m-chart__x-labels"},rbe=["x1","x2","y1","y2"],abe=["qs","x","text-anchor","y"],sbe=["x","y"],obe={key:0,class:"m-chart-yAxis-group"},lbe=["y1","y2","x1","x2"],ube={class:"m-chart__y-axis-labels"},cbe=["x","y"],dbe=["y1","y2","x1","x2"],pbe=["text-anchor","x","y"],hbe={name:"GuiChart",components:{GraphSlider:qve,LineGraph:Jve,XAxis:Wee(ebe,[["render",function(e,t,n,i,r,a){return As(),Ps("g",tbe,[Bs("line",{x1:e.getX(n.minX,"axis")-r.xAxisLineOffset,x2:e.getX(n.maxX),y1:n.xAxisPoint,y2:n.xAxisPoint,class:"m-chart__x-axis"},null,8,nbe),Bs("g",ibe,[Hs(Ol,{tag:"g",name:"m-chart__x-label-move"},{default:Ii((()=>[(As(!0),Ps(Ss,null,ea(r.axisValues,(e=>(As(),Ps("g",{ref_for:!0,ref:"label",class:"m-chart__x-label",key:e.i},[Bs("line",{ref_for:!0,ref:"xAxisTick",x1:e.x,x2:e.x,y1:n.xAxisPoint-r.xTickTopOffset,y2:n.xAxisPoint+r.xTickBottomOffset,class:Fe({"m-chart__x-axis-tick":!0,"m-chart__x-axis-tick--hidden":""==e.label})},null,10,rbe),Bs("text",{ref_for:!0,ref:"xAxisTickLabel",qs:"x-text-"+e.i,x:e.x,"text-anchor":e.position,y:n.xAxisPoint+r.xTickLabelOffset,class:"m-chart__x-axis-label"},ze(e.label),9,abe)])))),128))])),_:1}),n.xAxisLabel?(As(),Ps("text",{key:0,ref:"xAxisLabel",x:e.getX(n.minX+e.dataXRange/2),"text-anchor":"middle",y:n.xAxisPoint+r.xAxisNameOffset,class:"m-chart__x-axis-name"},ze(n.xAxisLabel),9,sbe)):Ws("",!0)])])}]]),YAxis:Wee({name:"YAxis",extends:Bve,props:{xAxisPoint:{type:Number,required:!0},yAxisPoint:{type:Number,required:!0},minY:{type:Number,required:!0},maxY:{type:Number,required:!0},height:{type:Number,required:!0},yAxisLabel:{type:String,required:!1,default:void 0}},setup:H((e=>F({},zee({baseLocaleKey:(null==e?void 0:e.baseLocaleKey)||"m-chart"}))),"setup"),data:H((()=>({yTickLeftOffset:5,yTickRightOffset:5,axisLabelOutside:!0})),"data"),computed:{yTickLabelOffset(){return 1==this.axisLabelOutside?-12:12},yTickAnchor(){return 1==this.axisLabelOutside?"end":"start"}},methods:{getTickSize(e,t){let n=this.yTickSize(e,t);return n<2?2:n+1},getYTickLabel(e){let t=this.getYTick(e,!1);return this.localizeNumber(t)}}},[["render",function(e,t,n,i,r,a){return n.maxY&&n.xAxisPoint?(As(),Ps("g",obe,[Bs("line",{y1:n.xAxisPoint,y2:e.getY(n.maxY),x1:n.yAxisPoint,x2:n.yAxisPoint,class:"m-chart__y-axis"},null,8,lbe),Bs("g",ube,[e.yAxisTickAtTop?(As(),Ps("text",{key:0,ref:"yAxisTickLabel-top","text-anchor":"start","alignment-baseline":"middle",x:n.yAxisPoint,y:e.getY(n.maxY)-8,class:"m-chart__y-axis-label"},ze(a.getYTickLabel(a.getTickSize(n.height,e.dataYRange))),9,cbe)):Ws("",!0),(As(!0),Ps(Ss,null,ea(a.getTickSize(n.height,e.dataYRange),(t=>(As(),Ps(Ss,{key:"y-"+t},[0==e.yAxisTickAtTop&&1!=t?(As(),Ps("line",{key:0,ref_for:!0,ref:"yAxisTick",y1:e.getY(e.getYTick(t)),y2:e.getY(e.getYTick(t)),x1:n.yAxisPoint+r.yTickRightOffset,x2:n.yAxisPoint-r.yTickLeftOffset,class:"m-chart__y-axis-tick"}
100,null,8,dbe)):Ws("",!0),0==e.yAxisTickAtTop&&1!=t?(As(),Ps("text",{key:1,ref_for:!0,ref:"yAxisTickLabel-"+t,"text-anchor":a.yTickAnchor,"alignment-baseline":"middle",x:n.yAxisPoint+a.yTickLabelOffset,y:e.getY(e.getYTick(t,!1)),class:"m-chart__y-axis-label"},ze(a.getYTickLabel(t)),9,pbe)):Ws("",!0)],64)))),128)),n.yAxisLabel?(As(),Ps("text",{key:1,ref:"yAxisLabel",x:"10",y:"200",class:"m-chart__y-axis-name"},ze(n.yAxisLabel),513)):Ws("",!0)])])):Ws("",!0)}]])},extends:Bve,props:{data:{type:Array,required:!0},yAxisLabel:{type:String,required:!0},chartTitle:{type:String,required:!0},xAxisLabel:{type:String,required:!0},fieldName:{type:String,required:!1,default:void 0},height:{type:Number,required:!1,default:400},selectedMax:{type:Number,required:!1,default:void 0},selectedMin:{type:Number,required:!1,default:void 0},width:{type:Number,required:!1,default:600},withSlider:{type:Boolean,required:!1,default:!0},withXAxis:{type:Boolean,required:!1,default:!0},withYAxis:{type:Boolean,required:!1,default:!0},withXAxisLabel:{type:Boolean,required:!1,default:!1},withYAxisLabel:{type:Boolean,required:!1,default:!1},isMobile:{type:Boolean,required:!0},tableCaption:{type:String,required:!0},withAnimation:{type:Boolean,required:!1,default:!0}},emits:["dragUpdate","range"],data:H((()=>({uid:br(),maxX:-1e6,minX:1e6,maxY:-1e6,minY:1e6,rangeMin:0,rangeMax:0,rangeMinPixel:0,rangeMaxPixel:0})),"data"),computed:{chartClass(){return this.withYAxis?"m-chart--with-y-axis":"m-chart"},showXAxis(){return this.withXAxis&&Number.isInteger(this.maxX)&&Number.isInteger(this.minX)&&this.minX<this.maxX},xAxisPoint(){return this.withXAxis?this.height-50:this.height-10},yAxisExtraWidth(){return this.withYAxis?65:0},yAxisPoint(){return this.withYAxis?65:10},pixelsPerInt(){return(this.getX(10)-this.getX(0))/10}},watch:{selectedMax(){this.validateAndSetSelectedMax()},selectedMin(){this.validateAndSetSelectedMin()},width(){this.updateData()},data:{handler(){this.updateData()},deep:!0}},created(){this.updateData()},methods:{updateData(){this.minX=1e6,this.maxX=-1e6,this.minY=1e6,this.maxY=-1e6,0==Array.isArray(this.data)||this.data.length<1||(this.data.forEach((e=>{e.name<this.minX&&(this.minX=e.name),e.name>this.maxX&&(this.maxX=e.name),e.val<this.minY&&(this.minY=e.val),e.val>this.maxY&&(this.maxY=e.val)})),this.rangeMin=this.minX,this.rangeMax=this.maxX,this.validateAndSetSelectedMin(),this.validateAndSetSelectedMax())},updateRangeMinPixel(e){this.rangeMinPixel=e},updateRangeMaxPixel(e){this.rangeMaxPixel=e},validateAndSetSelectedMin(){this.selectedMin>=this.minX&&this.selectedMin<=this.maxX&&this.selectedMin<=this.selectedMax&&(this.rangeMin=this.selectedMin,Math.round(this.rangeMinPixel)!=this.rangeMin&&(this.rangeMinPixel=void 0))},validateAndSetSelectedMax(){this.selectedMax<=this.maxX&&this.selectedMax>=this.minX&&this.selectedMax>=this.selectedMin&&(this.rangeMax=this.selectedMax,Math.round(this.rangeMaxPixel)!=this.rangeMax&&(this.rangeMaxPixel=void 0))},rangeEvent(e){this.$emit("range",e),this.rangeMinPixel=e.minPixel,this.rangeMaxPixel=e.maxPixel},dragUpdate(e){this.isMobile&&this.$emit("dragUpdate",e)}}},fbe=["aria-labelledby","width","height"],mbe=["id"],gbe=["height","width","x","y"],ybe={key:2},vbe=["href"],bbe={class:"m-chart__datatable visually-hidden"},_be=["id"],wbe=Wee(hbe,[["render",function(e,t,n,i,r,a){const s=Yr("LineGraph"),o=Yr("XAxis"),l=Yr("YAxis"),u=Yr("GraphSlider");return As(),Ps("div",{ref:"chart",class:Fe(a.chartClass)},[(As(),Ps("svg",{ref:"chartSvg",version:"1.2",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"m-chart__graph","aria-labelledby":`title-${r.uid}`,role:"img",width:n.width+a.yAxisExtraWidth,height:n.height},[Bs("title",{id:`title-${r.uid}`},ze(n.chartTitle),9,mbe),Hs(s,{data:n.data,"data-granularity":e.dataGranularity,"x-axis-point":a.xAxisPoint,"y-axis-point":a.yAxisPoint,"y-axis-tick-at-top":e.yAxisTickAtTop,"range-min":r.rangeMin,"range-max":r.rangeMax,"range-min-pixel":r.rangeMinPixel,"range-max-pixel":r.rangeMaxPixel,width:n.width,height:n.height,"is-mobile":n.isMobile,"min-y":r.minY,"max-y":r.maxY,"min-x":r.minX,"max-x":r.maxX,"with-animation":n.withAnimation},null,8,["data","data-granularity","x-axis-point","y-axis-point","y-axis-tick-at-top","range-min","range-max","range-min-
100pixel","range-max-pixel","width","height","is-mobile","min-y","max-y","min-x","max-x","with-animation"]),Bs("rect",{class:"m-chart__blocking-rect",overflow:"none",height:n.height,width:n.width,x:e.getX(r.minX),y:e.getY(r.minY)},null,8,gbe),a.showXAxis?(As(),Os(o,{key:0,"data-granularity":e.dataGranularity,"x-axis-point":a.xAxisPoint,"y-axis-point":a.yAxisPoint,"x-axis-label":n.withXAxisLabel?n.xAxisLabel:void 0,"min-x":r.minX,"max-x":r.maxX,width:n.width},null,8,["data-granularity","x-axis-point","y-axis-point","x-axis-label","min-x","max-x","width"])):Ws("",!0),n.withYAxis?(As(),Os(l,{key:`${r.minY}-${r.maxY}`,"data-granularity":e.dataGranularity,"x-axis-point":a.xAxisPoint,"y-axis-point":a.yAxisPoint,"y-axis-label":n.withYAxisLabel?n.yAxisLabel:void 0,"min-y":r.minY,"max-y":r.maxY,"min-x":r.minX,"max-x":r.maxX,"range-min":r.rangeMin,"range-max":r.rangeMax,"y-axis-tick-at-top":e.yAxisTickAtTop,height:n.height},null,8,["data-granularity","x-axis-point","y-axis-point","y-axis-label","min-y","max-y","min-x","max-x","range-min","range-max","y-axis-tick-at-top","height"])):Ws("",!0),n.withSlider?(As(),Ps("g",ybe,[(As(),Os(u,{key:`${r.minX}-${r.maxX}`,"data-granularity":e.dataGranularity,"x-axis-point":a.xAxisPoint,"y-axis-point":a.yAxisPoint,"range-min":r.rangeMin,"range-max":r.rangeMax,width:n.width,"is-mobile":n.isMobile,"y-axis-tick-at-top":e.yAxisTickAtTop,"min-x":r.minX,"max-x":r.maxX,onRange:a.rangeEvent,onDragUpdate:a.dragUpdate,onUpdateRangeMin:a.updateRangeMinPixel,onUpdateRangeMax:a.updateRangeMaxPixel},null,8,["data-granularity","x-axis-point","y-axis-point","range-min","range-max","width","is-mobile","y-axis-tick-at-top","min-x","max-x","onRange","onDragUpdate","onUpdateRangeMin","onUpdateRangeMax"]))])):Ws("",!0)],8,fbe)),Bs("a",{class:"visually-hidden",href:`#data-table-${r.uid}`},"Skip to detailed description of this chart",8,vbe),Bs("div",bbe,[Bs("table",{id:`data-table-${r.uid}`},[Bs("caption",null,ze(n.tableCaption),1),Bs("thead",null,[Bs("tr",null,[Bs("th",null,ze(n.xAxisLabel),1),Bs("th",null,ze(n.yAxisLabel),1)])]),Bs("tbody",null,[(As(!0),Ps(Ss,null,ea(n.data,(e=>(As(),Ps("tr",{key:e.name},[Bs("td",null,ze(e.name),1),Bs("td",null,ze(e.val),1)])))),128))])],8,_be)])],2)}]]),Sbe={name:"GuiForm",components:{GuiButton:Jee,GuiInput:Mre},mixins:[ate],data(){return{displayFormErrors:!1,values:{},formErrors:this.initialFormErrors,inputErrors:{},stickyErrors:!1,stickyPadding:{marginTop:0},oldY:-1,rAF:null}},props:{fields:{type:Array,default:H((()=>[]),"default")},initialFormErrors:{type:Array,default:H((()=>[]),"default")},name:{type:String,default:null},schema:{type:Array,default:H((()=>[]),"default")},submitButtonText:{type:String,default:"Submit"},submitButtonValue:{type:String,default:"submit"},observeErrors:{type:Boolean,default:!0},stickyFormErrors:{type:Boolean,default:!0}},emits:["submit"],computed:{guiSchema(){return this.schema.map((e=>(e&&!e.component&&(e.component="GuiInput"),e)))},guiError(){return this.formErrors&&this.formErrors.length&&this.fields.length>7},guiErrorStatus(){return this.guiError?"unresolved":"resolved"},formErrorsHeight(){const e=document.querySelector(".m-form__errors");return null!==e?e.clientHeight:0}},mounted(){this.$nextTick((()=>{window.addEventListener("scroll",this.handleScroll),this.rAF=window.requestAnimationFrame(this.handleScroll)}))},methods:{handleScroll(){const e=window.scrollY;this.old!==e&&(this.stickyErrors=this.stickyFormErrors),this.oldY=e,this.rAF=window.requestAnimationFrame(this.handleScroll)},handleSubmit(){this.formErrors.length?this.displayFormErrors=!0:(this.displayFormErrors=!1,this.$emit("submit",{values:this.values}))},triggerScroll(e){const t=this.formErrorsHeight+20;this.scrollToHash(`#${e}`,t),setTimeout((()=>{this.shiftFocus(e)}),250)},shiftFocus(e){if(e){const t=document.getElementById(e);if(!t)return;t.focus()}},triggerValidation(e){this.formErrors.length<this.fields.length&&this.formErrors.push(e);for(const t in this.formErrors)for(const n in this.fields){const i=this.formErrors[t].name,r=this.fields[n].name,a=this.fields[n].val
100idation;i===e.name&&r===e.name&&a&&(e.hasErrors?(this.formErrors[t].errors=e.errors,this.formErrors[t].hasErrors=!0):this.formErrors[t].hasErrors=!1)}},setNode(e){e.on("count:blocking",(()=>{const t=[];e.children.forEach((e=>{(function(e){const t=new Map,n=H((e=>{const n=[];for(const t in e.store){const i=e.store[t];"validation"===i.type&&i.visible&&"string"==typeof i.value&&n.push(i)}return n.length&&t.set(e,n),e}),"a");return n(e).walk(n),t})(e).forEach((n=>{t.push({name:e.name,value:n.map((e=>e.value))[0]})}))})),this.formErrors=t})),e.on("message-added",(({payload:e})=>{"incomplete"==e.key&&(this.displayFormErrors=!0)}))}}},Cbe=Wee(Sbe,[["render",function(e,t,n,i,r,a){const s=Yr("GuiFormErrors"),o=Yr("FormKitSchema"),l=Yr("GuiInput"),u=Yr("FormKit");return As(),Os(u,Zs({type:"form",ref:"form"},e.$attrs,{modelValue:r.values,"onUpdate:modelValue":t[0]||(t[0]=e=>r.values=e)},ra(e.$attrs),{name:n.name,"submit-label":n.submitButtonText,onNode:a.setNode,onSubmit:a.handleSubmit}),{default:Ii((()=>[a.guiError&&r.displayFormErrors&&n.observeErrors?(As(),Os(s,{key:0,class:Fe([[a.guiErrorStatus,{sticky:this.stickyErrors}],"m-form__errors"]),error:r.formErrors,ref:"guiFormErrors",onClick:a.triggerScroll},null,8,["class","error","onClick"])):Ws("",!0),a.guiSchema.length?(As(),Os(o,{key:1,schema:a.guiSchema},null,8,["schema"])):n.fields.length?(As(!0),Ps(Ss,{key:2}
100,ea(n.fields,((t,n)=>(As(),Os(l,Zs({ref_for:!0},t,{id:t.name,key:n}),{default:Ii((()=>[na(e.$slots,"default",{},void 0,!0)])),_:2},1040,["id"])))),128)):na(e.$slots,"default",{key:3},void 0,!0)])),_:3},16,["modelValue","name","submit-label","onNode","onSubmit"])}],["__scopeId","data-v-58554cdd"]]),kbe={class:"m-form-errors","aria-label":"Form Error Summary"},xbe=["href","onClick"],Tbe=Wee({name:"GuiFormErrors",data:H((()=>({context:{model:["error"],minimum:0,repeatable:!0}})),"data"),props:{error:{type:Array,default:H((()=>["Error, unable to submit."]),"default")}},emits:["click"],methods:{triggerClick(e){this.$emit("click",e)}}},[["render",function(e,t,n,i,r,a){return As(),Ps("div",null,[t[0]||(t[0]=Bs("h2",null,"Form Error Summary",-1)),Bs("ul",kbe,[(As(!0),Ps(Ss,null,ea(n.error,((e,t)=>(As(),Ps("li",{key:t,class:Fe([{"unresolved-item":!0},"m-form-errors__item"])},[Bs("a",{href:`#${e.name}`,ref_for:!0,ref:e.name,onClick:Kl((t=>a.triggerClick(e.name)),["stop","prevent"])},ze(e.value),9,xbe)])))),128))])])}]]),Ebe=["primary","secondary"],Abe=["aria-labelledby"],Lbe=Wee({name:"GuiFormSection",components:{Heading:jre},props:{heading:{type:String},level:{type:Number,default:null},type:{type:String,default:"primary",validator:H((e=>Ebe.includes(e)),"validator")}},data:H((()=>({headingId:`guiFormSection${br()}`})),"data"),computed:{computedLevel(){return this.level?this.level:"primary"===this.type?2:3}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading");return As(),Ps("div",{"aria-labelledby":r.headingId,class:Fe(`m-gui-form-section m-gui-form-section--${n.type}`),role:"group"},[Hs(s,{class:Fe(`m-gui-form-section__heading--${n.type}`),id:r.headingId,level:a.computedLevel},{default:Ii((()=>[qs(ze(n.heading),1)])),_:1},8,["class","id","level"]),na(e.$slots,"default")],10,Abe)}]]),Ibe=["for","id"],$be=Wee({name:"GuiInputLabel",props:{context:{type:Object,required:!0}},computed:{isRequired(){return this.context.validation&&this.context.validation.includes("required")||this.context.attributes.required},isBoxField(){return"box"===this.context.classification},labelText(){return this.isRequired&&!this.isBoxField?this.context.label+" *":this.context.label}}},[["render",function(e,t,n,i,r,a){return As(),Ps("label",{class:Fe(n.context.classes.label),for:n.context.id,id:`${n.context.id}--label`},ze(a.labelText),11,Ibe)}]]),Dbe={class:"m-hierarchical-list-of-links"},Pbe=["aria-labelledby"],Obe=Wee({name:"HierarchicalListOfLinks",components:{GuiLink:rre},mixins:[ate],props:{title:{type:String,default:void 0},headingLevel:{type:Number,default:4},level:{type:Number,default:0},baseLocaleKey:{type:String,default:"m-hierarchical-list-of-links"},linkTree:{type:Array,required:!0}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),computed:{ariaTitle(){return this.title||this.translatePart("aria-title")},headingTag(){return"h"+this.headingLevel}},watch:{$route(){this.scrollPage()}},mounted(){this.scrollPage()},methods:{getAriaLabel(e){return this.translatePart("aria-jump-to",{text:e})},getLinkProps(e){const t=Object.entries(e).filter((([e])=>rre.props.hasOwnProperty(e)));return Object.fromEntries(t)},linkHasChildren:H((e=>e.children&&e.children.length),"linkHasChildren"),scrollPage(){let e;this.$route&&this.$route.hash?e=this.$route.hash:typeof window<"u"&&(e=window.location.hash),e&&""!=e&&0==this.level&&this.scrollToHash(e)}}},[["render",function(e,t,n,i,r,a){const s=Yr("GuiLink"),o=Yr("HierarchicalListOfLinks");return As(),Ps("div",Dbe,[n.title?(As(),Os(Xr(a.headingTag),{key:0,class:"m-hierarchical-list-of-links__title"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1})):Ws("",!0),Bs("ul",{"aria-labelledby":a.ariaTitle,class:"m-hierarchical-list-of-links__links"},[(As(!0),Ps(Ss,null,ea(n.linkTree,((e,t)=>(As(),Ps("li",{key:e.slotText+t,class:"m-hierarchical-list-of-links__item"},[Hs(s,Zs({ref_for:!0},a.getLinkProps(e),{"aria-label":a.getAriaLabel(e.slotText),class:"m-hierarchical-list-of-links__link",ref_for:!0,ref:"nav-link"}),{default:Ii((()=>[qs(ze(e.slotText),1)])),_:2},1040,["aria-label"]),a.linkHasChildren(e)?(As(),Os(o,{key:0,ref_for:!0,ref:"child-links",level:n.level+1,"link-tree":e.children},null,8,["level","link-tree"])):Ws("",!0)])))),128))],8,Pbe)])}]]),Mbe=["aria-label"],Rbe=Wee({name:"ImageAndCaptionWrapper",props:{label:{type:String,default:void 0}},emits:["clickEvent"]},[["render",function(e,t,n,i,r,a){return As(),Ps("div",{role:"button",class:"m-image-and-caption-wrapper","aria-label":n.label,onKeydown:[t[0]||(t[0]=Zl((t=>e.$emit("clickEvent",t)),["enter"])),t[2]||(t[2]=Zl(Kl((t=>e.$emit("clickEvent",e.$emit)),["stop","prevent"]),["space"]))],onClick:t[1]||(t[1]=t=>e.$emit("clickEvent",t))}
100,[na(e.$slots,"default")],40,Mbe)}]]),Nbe={name:"ImageResponsiveWithErrorWrapper",components:{ImageResponsive:vae,ResourceUnavailable:Yae,Icon:Xie},mixins:[pae],props:{id:{type:String,default:null},src:{type:String,default:null},size:{type:String,default:null},alt:{type:String,default:null},ariaHidden:{type:Boolean,default:!1},classes:{type:Array,default:H((()=>[]),"default")},baseLocaleKey:{type:String,default:"m-image-responsive-with-error"},hasSensitiveContent:{type:Boolean,default:!1},placemat:{type:Boolean,default:!1},region:{type:Object,default:null},idAttr:{type:String,default:null},isTextItem:{type:Boolean,default:!1},imageUnavailableVariant:{type:String,default:"image"},sensitiveContentIconSize:{type:Number,default:16},variableImageHeight:{type:Boolean,default:!1}},emits:["mouseover","mouseout","mouseenter"],setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey,strings:{sensitive_content:"sensitive_content"}}))),"setup"),computed:{imageAvailable(){return!!(this.localId&&""!=this.localId||this.localSrc&&""!=this.localSrc)},imageProps(){const e=this.$props,{variableImageHeight:t,imageUnavailableVariant:n,isTextItem:i,classes:r,idAttr:a}=e,s=j(e,["variableImageHeight","imageUnavailableVariant","isTextItem","classes","idAttr"]);return F({id:this.localId,src:this.localSrc},s)}},data(){return{localId:this.id,localSrc:this.src}},watch:{id(e){this.localId=e},src(e){this.localSrc=e}},methods:{handleImageError(){this.localId=void 0,this.localSrc=void 0}}},Fbe={key:0,ref:"sensitiveContentWarning",class:"m-image-responsive-with-error__sensitive-overlay"},Bbe=Wee(Nbe,[["render",function(e,t,n,i,r,a){const s=Yr("ImageResponsive"),o=Yr("Icon"),l=Yr("ResourceUnavailable");return a.imageAvailable?(As(),Ps("div",{key:0,ref:"wrapper",class:Fe(n.hasSensitiveContent?"m-image-responsive-with-error__sensitive":null)},[Hs(s,Zs(a.imageProps,{idAttr:n.idAttr,classes:n.classes,ref:"imageResponsive","onImageResponsive:LoadError":a.handleImageError,onMouseenter:t[0]||(t[0]=t=>e.$emit("mouseenter")),onMouseover:t[1]||(t[1]=t=>e.$emit("mouseover")),onMouseout:t[2]||(t[2]=t=>e.$emit("mouseout")),draggable:0==n.hasSensitiveContent}),null,16,["idAttr","classes","onImageResponsive:LoadError","draggable"]),n.hasSensitiveContent?(As(),Ps("div",Fbe,[Hs(o,{name:"sensitiveContent",size:n.sensitiveContentIconSize},null,8,["size"])],512)):Ws("",!0)],2)):n.isTextItem?(As(),Ps("span",{key:1,ref:"textItem",class:"m-image-responsive-with-error__text"},ze(n.alt),513)):(As(),Os(l,{key:2,ref:"imageUnavailable","data-testid":"image-unavailable",variant:n.imageUnavailableVariant},null,8,["variant"]))}]]),Hbe=/[\*\_]{1,3}\S.+\S[\*\_]{1,3}/,jbe={name:"ImageAndCaption",components:{GuiLink:rre,RichText:cre,ImageAndCaptionWrapper:Rbe,ImageResponsiveWithErrorWrapper:Bbe},inject:{renderMarkdownInImageAndCaption:{type:Boolean,default:!1}},props:{heading:{type:String,default:void 0},headingLevel:{type:Number,default:4},image:{type:Object,default:null},imageUnavailableVariant:{type:String,default:"image"},isTextItem:{type:Boolean,default:!1},subheading:{type:String,default:void 0},details:{type:Array,default:H((()=>[]),"default")},to:{type:Object,default:void 0},variableImageHeight:{type:Boolean,default:!1}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),computed:{componentType(){return this.to?"GuiLink":"ImageAndCaptionWrapper"},headingTag(){return"h"+this.headingLevel},isHeadingMarkdown(){return 0!=this.renderMarkdownInImageAndCaption&&this.hasMarkdown(this.heading)},isSubHeadingMarkdown(){return 0!=this.renderMarkdownInImageAndCaption&&this.hasMarkdown(this.subheading)},normalizedImage(){var e;return this.image?F({size:null!=(e=this.image.size)?e:"post_small_variable_height"},this.image):null}},methods:{hasMarkdown:H((e=>Hbe.test(e)),"hasMarkdown"),isDetailMarkdown(e){return 0!=this.renderMarkdownInImageAndCaption&&this.hasMarkdown(e)}}},Ube={class:"m-image-and-caption"},Vbe={class:"m-image-and-caption__caption g-align-image-base__list-item-text"},qbe={class:"m-image-and-caption__heading-inner"},zbe={key:1,ref:"subheading",class:"m-image-and-caption__subheading"},Wbe=Wee(jbe,[["render",function(e,t,n,i,r,a){const s=Yr("ImageResponsiveWithErrorWrapper"),o=Yr("RichText");
100return As(),Ps("div",Ube,[null!=a.componentType?(As(),Os(Xr(a.componentType),{key:0,ref:"imageAndCaptionWrapper",label:n.heading,to:n.to,tabindex:0,class:Fe({"m-image-and-caption__wrapper":!0}),"data-testid":"m-image-and-caption"},{default:Ii((()=>[Hs(s,Zs(a.normalizedImage,{"is-text-item":n.isTextItem,"image-unavailable-variant":n.imageUnavailableVariant}),null,16,["is-text-item","image-unavailable-variant"]),Bs("div",Vbe,[na(e.$slots,"beforeMetadata"),n.heading?(As(),Os(Xr(a.headingTag),{key:0,ref:"heading",title:n.heading,class:"m-image-and-caption__heading","data-testid":"imageCaption"},{default:Ii((()=>[Bs("span",qbe,[0==a.isHeadingMarkdown?(As(),Ps(Ss,{key:0},[qs(ze(n.heading),1)],64)):(As(),Os(o,{key:1,content:n.heading,inline:!0},null,8,["content"]))])])),_:1},8,["title"])):Ws("",!0),n.subheading?(As(),Ps("p",zbe,[0==a.isSubHeadingMarkdown?(As(),Ps(Ss,{key:0},[qs(ze(n.subheading),1)],64)):(As(),Os(o,{key:1,content:n.subheading,inline:!0},null,8,["content"]))],512)):Ws("",!0),(As(!0),Ps(Ss,null,ea(n.details,(e=>(As(),Ps("p",{class:"m-image-and-caption__detail",key:e},[0==a.isDetailMarkdown(e)?(As(),Ps(Ss,{key:0},[qs(ze(e),1)],64)):(As(),Os(o,{key:1,content:e,inline:!0},null,8,["content"]))])))),128)),na(e.$slots,"afterMetadata")])])),_:3},8,["label","to"])):Ws("",!0)])}]]),Gbe=Wee({name:"ImageGroup",components:{ImageResponsive:vae,RichText:cre},props:{images:{type:Array,default:null},modifiers:{type:Array,default:null}},computed:{classes(){const e=["m-image-group"];return this.modifiers&&this.modifiers.forEach((t=>{e.push(`m-image-group--${t}`)})),e}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("ImageResponsive");return As(),Ps("div",{class:Fe(a.classes)},[(As(!0),Ps(Ss,null,ea(n.images,((e,t)=>(As(),Os(o,Zs({key:`ImageGroup${t}`},{ref_for:!0},e,{size:e.size,class:"timeline-image"}),{default:Ii((()=>[Hs(s,{content:e.caption},null,8,["content"])])),_:2},1040,["size"])))),128))],2)}]]),Kbe={class:"m-immersive-feature"},Ybe=["aria-labelledby"],Zbe=Wee({name:"ImmersiveFeature",components:{Heading:jre,Post:Yue},props:{items:{type:Array,default:null},label:{type:String,default:null},headingLevel:{type:Number,default:3}},data(){return{headingId:this.label?`immersiveFeature${br()}Heading`:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("Post");return As(),Ps("div",Kbe,[n.label?(As(),Os(s,{key:0,id:r.headingId,level:n.headingLevel,class:"visually-hidden"},{default:Ii((()=>[qs(ze(n.label),1)])),_:1},8,["id","level"])):Ws("",!0),n.items?(As(),Ps("ul",{key:1,class:"m-immersive-feature__items","aria-labelledby":r.headingId},[(As(!0),Ps(Ss,null,ea(n.items,((e,t)=>(As(),Ps("li",{key:t,class:"m-immersive-feature__item"},[Hs(o,Zs({ref_for:!0},F({},e),{modifier:"large_1_1"}),null,16)])))),128))],8,Ybe)):Ws("",!0)])}]]),Xbe={class:"m-index-listing"},Qbe={class:"gui-container"},Jbe=["aria-labelledby","role"],e_e=["role"],t_e={class:"m-index-listing__col-wrapper"},n_e={class:"m-index-listing__col"},i_e={class:"m-index-listing__col"},r_e=Wee({name:"IndexListing",components:{Heading:jre,ImageResponsive:vae,Icon:Xie,RichText:cre},mixins:[Ure],props:{id:{type:String,default:null},baseHeadingLevel:{type:Number,default:3},listA11yLabel:{type:String,default:null},items:{type:Array,default:null}},data:H((()=>({uid:br()})),"data"),computed:{listHeadingLevel(){return this.baseHeadingLevel},listLabelledById(){return this.id?this.id:`Index${this.uid}Heading`},listRole(){return this.getListRole(this.items)}},methods:{getIssueTitle(e){if(e)return`${e}<span class="visually-hidden"> (PDF)</span>`}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("RichText"),l=Yr("ImageResponsive"),u=Yr("Icon");return As(),Ps("div",Xbe,[Bs("div",Qbe,[n.listA11yLabel&&!n.id?(As(),Os(s,{key:0,ref:"listA11yHeading",id:a.listLabelledById,level:a.listHeadingLevel,class:"visually-hidden"},{default:Ii((()=>[qs(ze(n.listA11yLabel),1)])),_:1},8,["id","level"])):Ws("",!0),Bs("ul",{class:"m-index-listing__items","aria-labelledby":a.listLabelledById,role:a.listRole},[(As(!0),Ps(Ss,null,ea(n.items,((e,t)=>(As(),Ps("li",{key:t,class:"m-index-listing__item",role:a.listRole},[(As(),Os(Xr(e.href?"a":"div"),{href:e.href?e.href:null,class:"m-index-listing__item-inner"},{default:Ii((()=>[Bs("div",t_e,[Bs("div",{ref_for:!0,ref:"issue",class:"m-index-listing__col"}
100,[Hs(o,{content:a.getIssueTitle(e.issue),inline:!0},null,8,["content"])],512),Bs("div",{ref_for:!0,ref:"excerpt",class:"m-index-listing__col"},[Hs(o,{content:e.excerpt,inline:!0},null,8,["content"])],512),Bs("div",n_e,[Hs(l,Zs({ref_for:!0},F({},e.image),{size:"index_cover"}),null,16)]),Bs("div",i_e,[e.href?(As(),Os(u,{key:0,name:"PDF",size:24,"aria-hidden":"true"})):Ws("",!0)])])])),_:2},1032,["href"]))],8,e_e)))),128))],8,Jbe)])])}]]),a_e={name:"JumpLinks",components:{ListOfLinks:zre},props:{inViewID:{type:String,default:null},id:{type:String,default:"jump-links"},layout:{type:String,default:"inline",validator:H((e=>["inline","block"].includes(e)),"validator")},links:{type:Array,default:H((()=>[]),"default")},listTitle:{type:String,default:"Jump to"},showTitle:{type:Boolean,default:!0}},computed:{classNames(){const e=["m-jump-links"];return"block"===this.layout&&e.push("m-jump-links--block"),"inline"===this.layout&&e.push("m-jump-links--inline","gui-container"),e},shouldShowTitle(){return this.showTitle&&this.links.every((({url:e})=>e&&e.startsWith("#")))},modifiers(){return"block"===this.layout?["link-underline"]:"inline"===this.layout?["inline"]:void 0}},methods:{setActiveLink:H(((e,t)=>e?e.map((e=>B(F({},e),{active:e.url===`#${t}`}))):[]),"setActiveLink")}},s_e=["aria-labelledby"],o_e={class:"m-jump-links__inner"},l_e=["id"],u_e=Wee(a_e,[["render",function(e,t,n,i,r,a){const s=Yr("ListOfLinks");return n.links?(As(),Ps("nav",{key:0,class:Fe(a.classNames),"aria-labelledby":n.id},[Bs("div",o_e,[Bs("span",{id:n.id,class:Fe(["m-jump-links__title",{"visually-hidden":!a.shouldShowTitle}]),ref:"title"},ze(n.listTitle),11,l_e),Hs(s,{links:a.setActiveLink(n.links,n.inViewID),modifiers:a.modifiers},null,8,["links","modifiers"])])],10,s_e)):Ws("",!0)}]]),c_e={controls:{artwork:{left:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.2046 21.7954L12.7954 20.2046L5.71582 13.125H21V10.875H5.71582L12.7954 3.79541L11.2046 2.20459L1.40918 12L11.2046 21.7954Z" fill="currentColor"/></svg>',right:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.7954 2.20459L11.2046 3.79541L18.2842 10.875H3V13.125H18.2842L11.2046 20.2046L12.7954 21.7954L22.5908 12L12.7954 2.20459Z" fill="currentColor"/></svg>'},default:{left:'<svg width="17" height="18" viewBox="0 0 17 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17 9H1M1 9L9 1M1 9L9 17" stroke="currentColor" /></svg>',right:'<svg width="17" height="18" viewBox="0 0 17 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 9H16M16 9L8 1M16 9L8 17" stroke="currentColor" /></svg>'},project:{left:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.2046 21.7954L12.7954 20.2046L5.71582 13.125H21V10.875H5.71582L12.7954 3.79541L11.2046 2.20459L1.40918 12L11.2046 21.7954Z" fill="currentColor"/></svg>',right:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.7954 2.20459L11.2046 3.79541L18.2842 10.875H3V13.125H18.2842L11.2046 20.2046L12.7954 21.7954L22.5908 12L12.7954 2.20459Z" fill="currentColor"/></svg>'}},sizes:{xsmall:{gutter:16,items:2,responsive:{544:{gutter:16,items:2},768:{gutter:16,items:3},1024:{gutter:24,items:6},1440:{gutter:24,items:6},1920:{gutter:24,items:6}}},small:{gutter:16,items:1,responsive:{544:{gutter:16,items:1},768:{gutter:16,items:2},1024:{gutter:24,items:4},1440:{gutter:24,items:4},1920:{gutter:24,items:4}}},medium:{gutter:16,items:1,responsive:{544:{gutter:16,items:1},768:{gutter:16,items:2},1024:{gutter:24,items:3},1440:{gutter:24,items:3},1920:{gutter:24,items:3}}},large:{gutter:16,items:1,responsive:{544:{gutter:16,items:1},768:{gutter:16,items:2},1024:{gutter:24,items:2},1440:{gutter:24,items:2},1920:{gutter:24,items:2}}},imageviewer:{gutter:16,items:3,responsive:{544:{gutter:16,items:3},768:{gutter:16,items:5},1024:{gutter:24,items:8},1440:{gutter:24,items:8},1920:{gutter:24,items:8}}}}},d_e={name:"ListingCarousel",components:{Card:ace},mixins:[Moe,Ure,ude,Noe,cde],props:{customOptions:{type:Object,default:H((()=>({cardName:"PostCard",theme:"default",headingLevel:4})),"default")},listAriaId:{type:String,default:null},items:{type:Array,default:null},size:{type:String,default:"small",validator:H((e=>Object.keys(c_e.sizes).includes(e)),"validator")},withDivider:{type:Boolean,default:!1}},data(){return{eventBus:Rse(),slider:null,isMobileLayout:!1,unmounted:!1,options:{arrowKeys:!0,loop:!1,nav:!1,slideBy:"page",controlsText:[c_e.controls[this.customOptions.theme].left,c_e.controls[this.customOptions.theme].right]},sizes:c_e.sizes}},mounted(){this.options=F(F({container:this.$refs.carousel,onInit:H((()=>{this.variableImageHeight&&this.debouncedVariableImageHeightUpdate()}),"onInit")},this.options),this.sizes[this.size]),this.isMobileLayout=this.isSmallMinus(),this.windowResized(),this.debouncedResize=ete(this.windowResized),window.addEventListener("resize",this.debouncedResize),this.eventBus.on("cardOpen",this.handleCardOpen)},beforeUnmount(){this.slider=null},unmounted(){window.removeEventListener("resize",this.debouncedResize)},computed:{headingLevel(){return this.isMobileLayout?this.customOptions.headingLevel-1:this.customOptions.headingLevel}
100,themeClasses(){if(!this.customOptions)return[];const{theme:e}=this.customOptions;return[`m-listing-carousel--${e}`]},listRole(){return this.getListRole(this.items)},itemClasses(){let e=["m-listing-carousel__item"];return 0==this.withDivider&&e.push("m-listing-carousel__item--no-divider"),e}},methods:{handleCardOpen({id:e}){this.customOptions.lightboxId&&this.triggerModalOpen(this.customOptions.lightboxId,{id:e})},windowResized(){this.isMobileLayout=this.isSmallMinus(),this.isMobileLayout?(this.unmount(),this.$nextTick((()=>{this.layoutVariableImageHeightSection()}))):this.slider?this.unmounted&&(this.rebuild(),this.$nextTick((()=>{this.layoutVariableImageHeightSection()}))):this.init()},init(){const{theme:e}=this.customOptions,t={default:"top",project:"bottom",Artwork:"bottom"}[e];this.slider=Jge(B(F({},this.options),{controlsPosition:t})),this.unmounted=!1},unmount(){this.slider&&!this.unmounted&&(this.slider.destroy(),this.unmounted=!0)},rebuild(){this.slider=this.slider.rebuild(),this.unmounted=!1}}},p_e=["aria-labelledby","role"],h_e=["index","role"],f_e=Wee(d_e,[["render",function(e,t,n,i,r,a){const s=Yr("Card");return As(),Ps("div",{class:Fe(["m-listing-carousel",...a.themeClasses])},[Bs("ul",{ref:"carousel",class:"m-listing-carousel__slider","aria-labelledby":n.listAriaId,role:a.listRole},[r.unmounted?Ws("",!0):(As(!0),Ps(Ss,{key:0},ea(n.items,((t,i)=>(As(),Ps("li",{ref_for:!0,ref:"item",key:t.id,index:i,class:Fe(a.itemClasses),role:a.listRole},[na(e.$slots,"item",Zs({ref_for:!0},B(F({},e.$props),{item:t,index:i})),(()=>[Hs(s,{cardName:n.customOptions.cardName,item:B(F({},t),{size:n.size,headingLevel:a.headingLevel}),"variable-image-height":e.variableImageHeight},null,8,["cardName","item","variable-image-height"])]))],10,h_e)))),128))],8,p_e)],2)}]]),m_e={class:"m-listing-grid-image__inner"},g_e={class:"m-listing-grid-image__content"},y_e={class:"m-listing-grid-image__items"},v_e={key:0,class:"m-listing-grid-image__aside"},b_e=Wee({name:"ListingGridImage",components:{CardList:vde,ImageResponsive:vae},props:{items:{type:Array,default:null},modifiers:{type:Array,default:null},image:{type:Object,default:null}},computed:{classes(){const e=["m-listing-grid-image"];return this.modifiers&&this.modifiers.forEach((t=>{e.push(`m-listing-grid-image--${t}`)})),e}},methods:{}},[["render",function(e,t,n,i,r,a){const s=Yr("CardList"),o=Yr("ImageResponsive");return As(),Ps("div",{class:Fe(a.classes)},[Bs("div",m_e,[Bs("div",g_e,[na(e.$slots,"content")]),Bs("div",y_e,[Hs(s,{items:n.items,modifiers:["large","index"]},null,8,["items"])]),n.image?(As(),Ps("div",v_e,[Hs(o,Zs(F({},n.image),{size:"large_1_1"}),null,16)])):Ws("",!0)])],2)}]]),__e=Wee({name:"ContentBlockAccordion",components:{Accordion:jpe},props:{items:{type:Array,default:null},blockStyle:{type:String,default:null},size:{type:String,default:null}},computed:{classes(){let e=[];return"default"!==this.blockStyle&&e.push(`m-block-accordion--${this.blockStyle.toLowerCase()}`),e}}},[["render",function(e,t,n,i,r,a){const s=Yr("Accordion");return n.items?(As(),Ps("div",{key:0,class:Fe(["m-block-accordion",...a.classes])},[Hs(s,{items:n.items,size:n.size},null,8,["items","size"])],2)):Ws("",!0)}]]),w_e=Wee({name:"MediaTranscript",components:{Accordion:jpe},props:{modifiers:{type:Array,default:H((()=>[]),"default")}},data:H((()=>({hash:""})),"data"),computed:{classes(){const e=["m-media-transcript"];return this.modifiers&&this.modifiers.forEach((t=>{e.push(`m-media-transcript--${t}`)})),e},transcript(){const e=this.$refs.accordion;return e.$refs?e.$refs.accordionItem:null},showTranscript(){const{id:e}=this.$attrs;return e?e&&`#${e}`===this.hash&&this.transcript:null}},watch:{hash(){this.toggleTranscript()}},methods:{toggleTranscript(){this.showTranscript&&this.transcript.toggleAccordion()}},mounted(){this.hash=window.location.hash,window.history.pushState=new Proxy(window.history.pushState,{apply:H(((e,t,n)=>(this.hash=n.slice(-1)[0],e.apply(t,n))),"apply")})}},[["render",function(e,t,n,i,r,a){const s=Yr("Accordion");return As(),Os(s,Zs(e.$attrs,{class:a.classes,ref:"accordion"}),null,16,["class"])}]]),S_e={class:"m-block-audio__inner"},C_e={key:0,class:"m-block-audio__caption m-block-audio__caption--rights"},k_e={key:1,class:"m-block-audio__caption m-block-audio__caption--credit"},x_e={key:2,class:"m-block-audio__caption m-block-audio__caption--descriptive"},T_e={class:"m-block-audio__transcript"},E_e=Wee({name:"ContentBlockAudio",components:{AudioPlayer:Ihe,MediaTranscript:w_e},props:{blockStyle:{type:String,default:"default"},title:{type:String,default:null},subtitle:{type:String,default:null},sources:{type:Array,required:!0},caption:{type:Object,default:H((()=>{}),"default")},transcript:{type:String,default:null}},computed:{classes(){let e=[];return this.blockStyle&&"default"!==this.blockStyle&&e.push(`m-block-audio--${this.blockStyle.toLowerCase()}`),this.caption&&this.caption.descriptive&&e.push("m-block-audio--has-caption"),e}}},[["render",function(e,t,n,i,r,a){const s=Yr("AudioPlayer"),o=Yr("MediaTranscript");return As(),Ps("div",{class:Fe(["m-block-audio",...a.classes])},[Bs("div",S_e,[Hs(s,{title:n.title,subtitle:n.subtitle,sources:n.sources},{default:Ii((()=>[n.caption?(As(),Ps(Ss,{key:0},[n.caption.rights?(As(),Ps("span",C_e,ze(n.caption.rights),1)):Ws("",!0),n.caption.credit?(As(),Ps("span",k_e,ze(n.caption.credit),1)):Ws("",!0),n.caption.descriptive?(As(),Ps("span",x_e,ze(n.caption.descriptive),1)):Ws("",!0)],64)):Ws("",!0)])),_:1},8,["title","subtitle","sources"])]),Bs("div",T_e,[n.transcript?(As(),Os(o,{key:0,id:"transcript",items:[{title:"Transcript",content:n.transcript}]},null,8,["items"])):Ws("",!0)])],2)}]]),A_e={key:0,class:"m-block-author-bios"},L_e=Wee({name:"AuthorBios",components:{Heading:jre,RichText:cre},props:{authors:{type:Array,default:null},heading:{type:String,default:null},headingLevel:{type:Number,default:2}},methods:{concatenatedContent(){return this.authors.map((e=>{if(e.name&&e.bio)return`**${e.name}**${e.bio}`})).filter((e=>e)).join("\n\n")}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("RichText");return n.authors?(As(),Ps("div",A_e,[n.heading?(As(),Os(s,{key:0,level:n.headingLevel},{default:Ii((()=>
100[qs(ze(n.heading),1)])),_:1},8,["level"])):Ws("",!0),Hs(o,{class:"m-block-author-bios__content",content:a.concatenatedContent()},null,8,["content"])])):Ws("",!0)}]]),I_e={name:"Carousel",components:{Icon:Xie},mixins:[Moe,Qie],props:{customOptions:{type:Object,default:null},displayType:{type:String,default:"default"},useList:{type:Boolean,default:!1}},data:H((()=>({buttonsDisabled:{next:!1,prev:!1},captionHeight:0,carouselId:null,current:0,isDesktop:!1,navButtonHeight:0,noCaptions:!1,options:{items:1,arrowKeys:!0,loop:!1,nav:!0,slideBy:"page",controls:!1},slider:null,slideItems:null})),"data"),mounted(){if(this.$refs.carousel&&(this.options.container=this.$refs.carousel,this.customOptions&&(this.options=F(F({},this.options),this.customOptions)),this.slider=Jge(this.options),this.slider)){this.captionHeight=this.getCaptionHeight(),this.navButtonHeight=this.getNavButtonHeight();const e=this.$el.querySelectorAll(".tns-nav button");this.debouncedResize=ete(this.handleResize),window.addEventListener("resize",this.debouncedResize),this.handleResize(),this.carouselId=this.slider.getInfo().container.id,this.getButtonStatus(),this.removeTabindex(e),this.slider.events.on("indexChanged",(()=>{this.removeTabindex(e)}))}},beforeUnmount(){this.slider=null,window.removeEventListener("resize",this.debouncedResize)},computed:{captionHeightVar(){if(!(this.captionHeight<=0))return{"--caption-height":`${Math.max(this.captionHeight,this.navButtonHeight)}px`}},navButtonHeightVar(){if(!(this.navButtonHeight<=0))return{"--nav-button-height":`${this.navButtonHeight}px`}},navButtonNextAriaLabel(){if(this.options)return"Next Slide"+(this.options.items>1?"s":"")},navButtonPrevAriaLabel(){if(this.options)return"Previous Slide"+(this.options.items>1?"s":"")},frameClasses(){if(this.customOptions&&this.customOptions.frameColor){const{frameColor:e}=this.customOptions;return["m-carousel--frame",`s-bg--${e}`]}return[]},hasMultpleItems(){return!!this.hasDefaultSlotContent&&this.getSlotContent()[0].children.length>1},hideNavigationButtons(){const e=this.$slots.default()[0].children.length;return"editorial"===this.displayType&&this.isDesktop&&e<=3}},methods:{getButtonStatus(){const{index:e,navCurrentIndex:t,pages:n}=this.slider.getInfo();this.buttonsDisabled={prev:0===e,next:t===n-1}},getCaptionHeight(){if(!this.$refs.carousel)return;let e=0;const t=this.$refs.carousel.querySelectorAll(".a-image figcaption");return!t||t.length<=0?this.noCaptions=!0:t.forEach((t=>{const n=t.clientHeight;e=n>e?n:e})),e},getNavButtonHeight(){if(this.$refs.prev&&this.$refs.next)return(this.$refs.prev||this.$refs.next).clientHeight},handleResize(){this.captionHeight=this.getCaptionHeight(),this.getButtonStatus(),this.isDesktop=this.isLargePlus()},nextSlide(){this.slider.goTo("next"),this.getButtonStatus()},previousSlide(){this.slider.goTo("prev"),this.getButtonStatus()},removeTabindex(e){e.length&&e.forEach((e=>{e.removeAttribute("tabindex")}))}}},$_e=["aria-controls","aria-disabled","aria-label"],D_e={class:"m-carousel__items"},P_e=["aria-controls","aria-disabled","aria-label"],O_e=Wee(I_e,[["render",function(e,t,n,i,r,a){const s=Yr("Icon");return e.hasDefaultSlotContent?(As(),Ps("div",{key:0,class:Fe(["m-carousel",{"m-carousel--no-captions":r.noCaptions},...a.frameClasses]),style:Pe(F(F({},a.captionHeightVar),a.navButtonHeightVar))},[a.hasMultpleItems?(As(),Ps(Ss,{key:0},[a.hideNavigationButtons?Ws("",!0):(As(),Ps("button",{key:0,ref:"prev","aria-controls":r.carouselId,"aria-disabled":r.buttonsDisabled.prev?"true":null,"aria-label":a.navButtonPrevAriaLabel,class:"m-carousel__nav m-carousel__nav--prev",onClick:t[0]||(t[0]=Kl(((...e)=>a.previousSlide&&a.previousSlide(...e)),["prevent"]))},[Hs(s,{name:"ArrowLeft",size:18})],8,$_e)),Bs("div",D_e,[(As(),Os(Xr(n.useList?"ul":"div"),{ref:"carousel",class:"m-carousel__inner"},{default:Ii((()=>[na(e.$slots,"default")])),_:3},512))]),a.hideNavigationButtons?Ws("",!0):(As(),Ps("button",{key:1,ref:"next","aria-controls":r.carouselId,"aria-disabled":r.buttonsDisabled.next?"true":null,"aria-label":a.navButtonNextAriaLabel,class:"m-carousel__nav m-carousel__nav--next",onClick:t[1]||(t[1]=Kl(((...e)=>a.nextSlide&&a.nextSlide(...e)),["prevent"]))},[Hs(s,{name:"ArrowRight",size:18})],8,P_e))],64)):na(e.$slots,"default",{key:1})],6)):Ws("",!0)}]]),M_e=Wee({name:"ContentBlockCarousel",components:{Carousel:O_e,ImageResponsive:vae,RichText:cre},props:{blockStyle:{type:String,default:"default"},options:{type:Object,default:H((()=>{}),"default")},items:{type:Array,default:null}},data:H((()=>({tallestImageHeight:0})),"data"),computed:{classes(){let e=[];return"default"!==this.blockStyle&&e.push(`m-block-carousel--${this.blockStyle.toLowerCase()}`),e},defaultOptions(){let e={};return"editorial"===this.blockStyle&&(e={gutter:16,items:2,responsive:{544:{gutter:16,items:2},768:{gutter:16,items:2},1024:{gutter:24,items:3},1440:{gutter:24,items:3},1920:{gutter:24,items:3}}}),F({controls:!1,nav:!0,headingLevel:-1},e)},mergedOptions(){return F(F({},this.defaultOptions),this.options)},tallestImageHeightVar(){if(this.tallestImageHeight)return{"--tallest-image-height":`${this.tallestImageHeight}px`}}},methods:{getTallestImageHeight(){const e=this.$el.querySelectorAll(".m-block-carousel--editorial img"),t=Array.from(e).map((({clientHeight:e})=>e));this.tallestImageHeight=Math.max(...t)}},mounted(){this.debouncedResize=ete(this.getTallestImageHeight),window.addEventListener("resize",this.getTallestImageHeight),this.getTallestImageHeight()}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("ImageResponsive"),l=Yr("Carousel");return n.items?(As(),Ps("div",{key:0,class:Fe(["m-block-carousel",...a.classes]),style:Pe(a.tallestImageHeightVar)},[Hs(l,{ref:"carousel",customOptions:a.mergedOptions,displayType:n.blockStyle,useList:!0},{default:Ii((()=>[(As(!0),Ps(Ss,null,ea(n.items,(e=>(As(),Ps("li",{key:e.id},[Hs(o,Zs({ref_for:!0},F({},e.image),{onLoad:a.getTallestImageHeight}),{default:Ii((()=>[e.caption||e.credit||e.descriptive?(As(),Ps(Ss,{key:0},[e.caption?(As(),Os(s,{key:0,content:e.caption,class:"m-block-carousel__caption"},null,8,["content"])):Ws("",!0),e.credit?(As(),Os(s,{key:1,content:e.credit,class:"m-block-carousel__credit"},null,8,["content"])):Ws("",!0),e.descriptive?(As(),Os(s,{key:2,content:e.descriptive,class:"m-block-carousel__descriptive"},null,8,["content"])):Ws("",!0)],64)):Ws("",!0)])),_:2},1040,["onLoad"])])))),128))])),_:1},8,["customOptions","displayType"])],6)):Ws("",!0)}]]),R_e=Wee({name:"ContentBlockDynamicComponent",props:{data:{type:Object,default:H((()=>({})),"default")},component:{type:Object,required:!0}}},[["render",function(e,t,n,i,r,a){return As(),Os(Xr(n.component),Be(Us(n.data)),null,16)}]]),N_e=Wee({name:"ContentBlockGoogleSlides",components:{GoogleSlidesEmbed:Bre},props:{aspectRatio:{type:String,default:"16:9"},url:{type:String,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("GoogleSlidesEmbed");return As(),Os(s,{aspectRatio:n.aspectRatio,url:n.url},null,8,["aspectRatio","url"])}]]),F_e=Wee({name:"ContentBlockHeading",components:{Heading:jre},props:{blockStyle:{type:String,default:"default"},content:{type:String,default:null},id:{type:String,default:null},level:{type:Number,default:2},sectionBreak:{type:Boolean,default:!1}},computed:{classes(){let e=[];return this.blockStyle&&"default"!==this.blockStyle&&e.push(`m-block-heading--${this.blockStyle.toLowerCase()}`),this.sectionBreak&&e.push("m-block-heading--divider"),e}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading");return n.content?(As(),Ps("div",{key:0,class:Fe(["m-block-heading",...a.classes])},[Hs(s,{id:n.id,level:n.level},{default:Ii((()=>[qs(ze(n.content),1)])),_:1},8,["id","level"])],2)):Ws("",!0)}]]),B_e={key:0,class:"m-block-image-2up"},H_e={class:"m-block-image-2up__wrapper"},j_e={class:"m-block-image-2up__inner"},U_e=Wee({name:"ContentBlockImage2up",components:{ImageResponsive:vae,RichText:cre},props:{images:{type:Array,default:H((()=>[]),"default")}},data:H((()=>({tallestImageHeight:0})),"data"),computed:{tallestImageHeightVar(){if(this.tallestImageHeight)return{"--tallest-image-height":`${this.tallestImageHeight}px`}}},methods:{getTallestImageHeight(){const e=this.$el.querySelectorAll(".m-block-image-2up__item img"),t=Array.from(e).map((({clientHeight:e})=>e));this.tallestImageHeight=Math.max(...t)}},mounted(){this.debouncedResize=ete(this.getTallestImageHeight),window.addEventListener("resize",this.getTallestImageHeight),this.getTallestImageHeight()}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("ImageResponsive");return n.images?(As(),Ps("div",B_e,[Bs("div",H_e,[Bs("div",j_e,[(As(!0),Ps(Ss,null,ea(n.images,((e,t)=>(As(),Ps("div",{key:t,class:"m-block-image-2up__item",style:Pe(a.tallestImageHeightVar)},[Hs(o,Zs({ref_for:!0},F({},e),{size:"post_large_variable_height",onLoad:a.getTallestImageHeight}),{default:Ii((()=>[e.caption?(As(),Ps(Ss,{key:0},["string"==typeof e.caption?(As(),Os(s,{key:0,content:e.caption,class:"m-block-image-2up__caption"},null,8,["content"])):(As(),Ps(Ss,{key:1},[e.caption.rights?(As(),Os(s,{key:0,content:e.caption.rights,class:"m-block-image-2up__caption m-block-image-2up__caption--rights"},null,8,["content"])):Ws("",!0),e.caption.credit?(As(),Os(s,{key:1,content:e.caption.credit,class:"m-block-image-2up__caption m-block-image-2up__caption--credit"},null,8,["content"])):Ws("",!0),e.caption.descriptive?(As(),Os(s,{key:2,content:e.caption.descriptive,class:"m-block-image-2up__caption m-block-image-2up__caption--descriptive"},null,8,["content"])):Ws("",!0)],64))],64)):Ws("",!0)])),_:2},1040,["onLoad"])],4)))),128))])])])):Ws("",!0)}]]),V_e={key:0,class:"m-block-image-row"},q_e={class:"m-block-image-row__image-inner"},z_e=["href"],W_e=Wee({name:"ContentBlockImageRow",components:{ImageResponsive:vae},props:{groups:{type:Array,default:H((()=>[]),"default")}}},[["render",function(e,t,n,i,r,a){const s=Yr("ImageResponsive");return n.groups.length?(As(),Ps("div",V_e,[Bs("div",q_e,[(As(!0),Ps(Ss,null,ea(n.groups,
100(e=>(As(),Ps("a",{class:"m-block-image-row__item",href:e.url,key:e.url},[(As(!0),Ps(Ss,null,ea(e.image,(e=>(As(),Os(s,Zs({ref_for:!0},e,{key:e.uid,size:"post_large_variable_height"}),null,16)))),128))],8,z_e)))),128))])])):Ws("",!0)}]]),G_e={key:0,class:"m-block-intro"},K_e=Wee({name:"ContentBlockIntro",components:{RichText:cre},props:{content:{type:String,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText");return n.content?(As(),Ps("div",G_e,[Hs(s,{class:"m-block-intro__content",content:n.content},null,8,["content"])])):Ws("",!0)}]]),Y_e=Wee({name:"ContentBlockJumpLinks",components:{JumpLinks:u_e},props:{links:{type:Array,default:H((()=>[]),"default")}}},[["render",function(e,t,n,i,r,a){const s=Yr("JumpLinks");return As(),Os(s,{links:n.links,layout:"block"},null,8,["links"])}]]),Z_e={class:"o-image-lightbox__close"},X_e={class:"o-image-lightbox__media"},Q_e={class:"o-image-lightbox__meta"},J_e={class:"o-image-lightbox__controls"},ewe=["disabled"],twe=["disabled"],nwe={class:"o-image-lightbox__counter"},iwe={class:"o-image-lightbox__counter-current"},rwe={class:"o-image-lightbox__counter-total"},awe=Wee({name:"ImageLightbox",components:{Carousel:O_e,GuiLink:rre,Heading:jre,Icon:Xie,ImageResponsive:vae,Modal:Poe,RichText:cre},mixins:[Noe],props:{id:{type:[String,Number],required:!0},items:{type:Array,default:H((()=>[]),"default")}},data:H((()=>({buttonsDisabled:{next:!1,prev:!1},currentIndex:0,eventBus:Rse(),slideStyles:null})),"data"),methods:{getButtonStatus(){if(!this.slider)return;const{navCurrentIndex:e,pages:t}=this.slider.getInfo();this.currentIndex=e,this.buttonsDisabled={prev:0===this.currentIndex,next:this.currentIndex===t-1}},handleModalOpen({$event:e={}}){const{id:t}=e,n=this.items.findIndex((({id:e})=>t===e));this.$nextTick((()=>{this.slider&&(this.slider.goTo(n),this.getButtonStatus(),this.handleResize())}))},handleKeydown({code:e}){this.slider&&("ArrowLeft"!==e&&"ArrowRight"!==e||this.getButtonStatus())},handleResize(){this.slideStyles={height:`${window.innerHeight}px`}},nextSlide(){this.slider&&(this.$refs.carousel.nextSlide(),this.getButtonStatus())},previousSlide(){this.slider&&(this.$refs.carousel.previousSlide(),this.getButtonStatus())}},computed:{slider(){if(this.$refs.carousel)return this.$refs.carousel.slider},isNextDisabled:H((()=>!1),"isNextDisabled"),isPreviousDisabled:H((()=>!1),"isPreviousDisabled")},mounted(){this.eventBus.on("modalOpen",this.handleModalOpen),window.addEventListener("keydown",this.handleKeydown),this.debouncedResize=ete(this.handleResize),window.addEventListener("resize",this.debouncedResize)},destroyed(){window.removeEventListener("keydown",this.handleKeydown),window.removeEventListener("resize",this.debouncedResize)}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("Icon"),l=Yr("ImageResponsive"),u=Yr("RichText"),c=Yr("GuiLink"),d=Yr("Carousel"),p=Yr("Modal");return As(),Os(p,{id:n.id,lockBodyScroll:!0,showCloseButton:!1,class:"o-image-lightbox","aria-labelledby":"image-lightbox-heading"},{default:Ii((()=>[Hs(s,{level:2,id:"image-lightbox-heading",class:"visually-hidden"},{default:Ii((()=>t[3]||(t[3]=[qs(" Image Lightbox ")]))),_:1,__:[3]}),Bs("div",Z_e,[Bs("button",{onClick:t[0]||(t[0]=t=>e.triggerModalClose(n.id)),class:"o-image-lightbox__button",name:"close"},[Hs(o,{name:"Close",size:18})])]),Hs(d,{class:"o-image-lightbox__carousel",ref:"carousel"},{default:Ii((()=>[(As(!0),Ps(Ss,null,ea(n.items,(e=>(As(),Ps("div",{key:e.id,class:"o-image-lightbox__slide"},[Bs("div",{class:"o-image-lightbox__inner",style:Pe(r.slideStyles)},[Bs("div",X_e,[Hs(l,Zs({ref_for:!0},e.image,{size:"post_xlarge_variable_height"}),null,16)]),Bs("div",Q_e,[Hs(u,{content:e.title,class:"o-image-lightbox__title"},null,8,["content"]),Hs(u,{content:e.content,class:"o-image-lightbox__content"},null,8,["content"]),Hs(c,{href:e.href,underline:!0,class:"o-image-lightbox__cta s-bg--black"},{default:Ii((()=>[qs(ze(e.ctaText),1)])),_:2},1032,["href"])])],4)])))),128))])),_:1},512),Bs("div",J_e,[Bs("button",{onClick:t[1]||(t[1]=(...e)=>a.previousSlide&&a.previousSlide(...e)),disabled:r.buttonsDisabled.prev,modifiers:["outline"],class:"o-image-lightbox__button",name:"previous"},[Hs(o,{name:"ArrowLeft",size:18})],8,ewe),Bs("button",{onClick:t[2]||(t[2]=(...e)=>a.nextSlide&&a.nextSlide(...e)),disabled:r.buttonsDisabled.next,modifiers:["outline"],class:"o-image-lightbox__button",name:"next"},[Hs(o,{name:"ArrowRight",size:18}
100)],8,twe)]),Bs("div",nwe,[Bs("span",iwe,ze(this.currentIndex+1),1),t[4]||(t[4]=qs(" of ")),Bs("span",rwe,ze(this.items.length),1)])])),_:1},8,["id"])}]]),swe=Wee({name:"ContentBlockLightboxListingCarousel",components:{ImageLightbox:awe,ListingCarousel:f_e},props:{blockStyle:{type:String,default:"Editorial"},cardName:{type:String,default:"ArtworkCard"},id:{type:String,required:!0},items:{type:Array,default:H((()=>[]),"default")},layout:{type:String,default:"standard",validate:H((e=>["standard","feature","hero"].includes(e)),"validate")},theme:{type:String,default:"artwork"},type:{type:String,required:!0}},computed:{customOptions(){return{cardName:this.cardName,theme:this.theme,lightboxId:`image-lightbox-${this.id}`}}}},[["render",function(e,t,n,i,r,a){const s=Yr("ListingCarousel"),o=Yr("ImageLightbox");return As(),Ps(Ss,null,[Hs(s,{"list-aria-id":`listing-carousel-${n.id}`,items:n.items,size:"medium","custom-options":a.customOptions,"variable-image-height":!0},null,8,["list-aria-id","items","custom-options"]),Hs(o,{id:`image-lightbox-${n.id}`,items:n.items},null,8,["id","items"])],64)}]]),owe={class:"m-block-list-of-links"},lwe=Wee({name:"ContentBlockListOfLinks",components:{ListOfLinks:zre},props:{links:{type:Array,default:H((()=>[]),"default")}}},[["render",function(e,t,n,i,r,a){const s=Yr("ListOfLinks");return As(),Ps("div",owe,[Hs(s,{links:n.links},null,8,["links"])])}]]);function uwe(e){const t=H(((t,n)=>n<1?"":e(t,n)),"i");return{formatTime:H((e=>{let n=Math.floor(e/3600);e%=3600;let i=Math.floor(e/60),r=e%60;return n=t("hours",n),n+=n&&i>0?", ":"",i=t("minutes",i),i+=(n||i)&&r>0?", ":"",r=t("seconds",r),n+i+r}),"formatTime"),formatTimeShort:H((e=>{let t=Math.floor(e/3600);e%=3600;let n=Math.floor(e/60),i=e%60;return t=String(t).padStart(2,"0"),t=t>0?t+":":"",n=String(n).padStart(2,"0"),n+=":",i=String(i).padStart(2,"0"),t+n+i}),"formatTimeShort")}}H(uwe,"d1");const cwe={name:"VideoPlayerToolbar",components:{GuiButton:Jee,GuiLink:rre,Icon:Xie,MediaControls:Jpe,AccordionItem:Voe},emits:["autoHideControls","toggleFullscreen","toggleVideo","showTooltips","hideTooltips","updateControls","seek","skip","back","forward","volumeChange"],props:{audioLanguages:{type:Array,required:!1,default:H((()=>[]),"default")},baseLocaleKey:{type:String,default:"m-video-player"},captionLanguages:{type:Array,required:!1,default:H((()=>[]),"default")},currentPlayedTime:{type:String},currentSeconds:{type:[Number,String]},descriptionLanguages:{type:Array,required:!1,default:H((()=>[]),"default")},duration:{type:String},durationSeconds:{type:Number},enableInteractiveTranscript:{type:Boolean,default:!1},files:{type:Array,default:H((()=>{}),"default")},isFullscreen:{type:Boolean,default:!1},isPlaying:{type:Boolean},loadedAmount:{type:[String,Number]},playStatusLabel:{type:String},title:{type:String}},data:H((()=>({isMuted:!1,previousVolume:35,tooltip:{position:0,value:0},volume:100})),"data"),setup(e){const t=zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey,strings:{rewindLabel:"rewindLabel",ariaProgressBarLabel:"ariaProgressBarLabel",fastForwardLabel:"fastForwardLabel"}}),n=uwe(t.translateCount);return F(F({},t),n)},methods:{calcTooltip(e){this.tooltip.value=this.formatTimeShort(Math.round(Math.ceil(e.offsetX)/e.target.clientWidth*parseFloat(e.target.getAttribute("max")))),this.tooltip.position=(e.offsetX/e.target.clientWidth*100).toFixed(0)},focusOnNextItem(e){const t=[...e.target.parentNode.children],n=e.target,i=t.indexOf(n),{0:r,[t.length-1]:a}=t;38==e.keyCode?n!==r?t[i-1].focus():a.focus():40==e.keyCode&&(n!==a?t[i+1].focus():r.focus())},toggleMute(){const{volumeSlider:e}=this.$refs;this.isMuted=!this.isMuted,this.isMuted?(this.previousVolume=e.value,this.setVolume(0),e.style.setProperty("--value","0%")):(this.setVolume(this.previousVolume),e.style.setProperty("--value",`${e.value}%`))},setVolume(e){e=parseInt(e),this.isMuted=e<=0&&!0,this.volume=e,this.$emit("volumeChange",e/100)},handleKeyPressProgress(e){switch(this.$emit("autoHideControls"),e.keyCode){case 37:e.preventDefault(),this.$emit("skip",{direction:"back",percent:null,threshold:5});break;case 39:e.preventDefault(),this.$emit("skip",{direction:"forward",percent:null,threshold:5});break;case 33:e.preventDefault(),this.$emit("skip",{direction:"back",percent:5,threshold:15});break;case 34:e.preventDefault(),this.$emit("skip",{direction:"forward",percent:5,threshold:15});break;case 35:e.preventDefault(),this.$emit("seek",this.durationSeconds);break;case 36:e.preventDefault(),this.$emit("seek",0);break;case 32:["BUTTON","LI"].includes(e.target.tagName)||this.$emit("toggleVideo")}
10027===e.keyCode?this.$emit("showTooltips"):setTimeout((()=>this.$emit("hideTooltips")),30)},handleKeyPressVolume(e){switch(this.$emit("autoHideControls"),e.keyCode){case 38:e.preventDefault(),this.setVolume(Math.min(Math.max(this.volume+5,0),100));break;case 40:e.preventDefault(),this.setVolume(Math.min(Math.max(this.volume-5,0),100));break;case 33:e.preventDefault(),this.setVolume(Math.min(Math.max(this.volume-10,0),100));break;case 34:e.preventDefault(),this.setVolume(Math.min(Math.max(this.volume+10,0),100));break;case 35:e.preventDefault(),this.setVolume(100);break;case 36:e.preventDefault(),this.setVolume(0)}27===e.keyCode?this.$emit("showTooltips"):setTimeout((()=>this.$emit("hideTooltips")),30)}},computed:{ariaProgressBarValue(){return`${this.formatTime(this.currentSeconds)} of ${this.formatTime(this.durationSeconds)}`},percentComplete(){return parseInt(parseFloat(this.currentSeconds)/parseFloat(this.durationSeconds)*100)},muteStatusLabel(){const e=this.isMuted?"Unmute":"Mute";return this.translatePart(`muteStatusLabel${e}`)},downloadLabel(){return this.translatePart("downloadLabel",{title:this.title})},fullscreenStatusLabel(){const e=this.isFullscreen?"Off":"On";return this.translatePart(`fullscreenLabel${e}`)}}},dwe={class:"m-video-player__bar-wrap"},pwe=["data-title"],hwe={class:"m-video-player__bar-left"},fwe={class:"visually-hidden"},mwe={class:"m-video-player__bar-right"},gwe={class:"m-video-player__time","aria-hidden":"true"},ywe={class:"m-video-player__current"},vwe={class:"m-video-player__duration"},bwe={class:"m-video-player__progress"},_we={class:"m-video-player__range"},wwe=["aria-label","aria-valuetext","max","value"],Swe={class:"m-video-player__volume",ref:"volumeWrapper"},Cwe={class:"visually-hidden"},kwe={class:"m-video-player__range"},xwe=["aria-valuetext"],Twe={class:"m-video-player__btns m-video-player__btns--left"},Ewe={class:"m-video-player__btn"},Awe={class:"visually-hidden"},Lwe={class:"m-video-player__btn"},Iwe={class:"visually-hidden"},$we={class:"m-video-player__btns m-video-player__btns--right"},Dwe={class:"m-video-player__btn"},Pwe={key:0,class:"m-video-player__download-menu m-accordion m-accordion--small"},Owe={key:0},Mwe={class:"m-video-player__btn"},Rwe={class:"visually-hidden"},Nwe=Wee(cwe,[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("GuiButton"),l=Yr("GuiLink"),u=Yr("AccordionItem"),c=Yr("MediaControls");return As(),Ps("div",dwe,[Bs("div",{class:"m-video-player__bar","data-title":n.title},[Bs("div",hwe,[Hs(o,{"data-title":n.playStatusLabel,modifiers:["icon"],name:"playToggle",ref:"playToggle",onClick:t[0]||(t[0]=t=>e.$emit("toggleVideo")),onMouseover:t[1]||(t[1]=e=>this.$emit("showTooltips"))},{default:Ii((()=>[Hs(s,{"aria-hidden":"true",name:this.isPlaying?"pause500":"play",size:"small"},null,8,["name"]),Bs("span",fwe,ze(n.playStatusLabel),1)])),_:1},8,["data-title"])]),Bs("div",mwe,[Bs("div",gwe,[Bs("span",ywe,ze(n.currentPlayedTime),1),Bs("span",vwe,ze(n.duration),1)]),Bs("div",bwe,[Bs("div",_we,[Bs("input",{"aria-label":e.localized.ariaProgressBarLabel,"aria-valuetext":a.ariaProgressBarValue,max:n.durationSeconds,min:"0",style:Pe(`--value: ${a.percentComplete};--buffered: ${n.loadedAmount}%;`),value:n.currentSeconds,"data-chromatic":"ignore",ref:"progress",type:"range",onChange:t[2]||(t[2]=t=>e.$emit("seek",t)),onClick:t[3]||(t[3]=t=>e.$emit("seek",t)),onMousemove:t[4]||(t[4]=(...e)=>a.calcTooltip&&a.calcTooltip(...e)),onKeyup:t[5]||(t[5]=(...e)=>a.handleKeyPressProgress&&a.handleKeyPressProgress(...e))},null,44,wwe),Bs("div",{style:Pe(`left: ${a.percentComplete}%`),"aria-hidden":"true",class:"m-video-player__range-focus"},null,4),Bs("div",{style:Pe(`left: ${r.tooltip.position}%`),"aria-hidden":"true",class:"m-video-player__range-tooltip"},ze(this.tooltip.value),5)]),Bs("div",Swe,[Hs(o,{"data-title":a.muteStatusLabel,modifiers:["icon"],name:"volume",ref:"volume",onClick:a.toggleMute,onMouseover:t[6]||(t[6]=e=>this.$emit("showTooltips")),onKeyup:a.handleKeyPressVolume},{default:Ii((()=>[Hs(s,{"aria-hidden":"true",name:r.isMuted?"Mute":"Volume",size:16},null,8,["name"]),Bs("span",Cwe,ze(a.muteStatusLabel),1)])),_:1},8,["data-title","onClick","onKeyup"]),Bs("div",kwe,[$i(Bs("input",{"onUpdate:modelValue":t[7]||(t[7]=e=>r.volume=e),"aria-valuetext":r.volume,style:Pe(`--value: ${r.volume}`),"aria-label":"Volume",min:"0",max:"100",ref:"volumeSlider",type:"range",onCh
100ange:t[8]||(t[8]=e=>a.setVolume(e.target.value)),onClick:t[9]||(t[9]=e=>a.setVolume(e.target.value)),onKeyup:t[10]||(t[10]=(...e)=>a.handleKeyPressVolume&&a.handleKeyPressVolume(...e))},null,44,xwe),[[zl,r.volume,void 0,{number:!0}]]),t[19]||(t[19]=Bs("div",{"aria-hidden":"true",class:"m-video-player__range-focus"},null,-1))])],512)]),Bs("div",Twe,[Bs("div",Ewe,[Hs(o,{modifiers:["icon"],"data-title":e.localized.rewindLabel,name:"rewind",ref:"rewind",onClick:t[11]||(t[11]=e=>this.$emit("back",5)),onMouseover:t[12]||(t[12]=e=>this.$emit("showTooltips"))},{default:Ii((()=>[Hs(s,{"aria-hidden":"true",name:"rewind",size:"small"}),Bs("span",Awe,ze(e.localized.rewindLabel),1)])),_:1},8,["data-title"])]),Bs("div",Lwe,[Hs(o,{"data-title":e.localized.fastForwardLabel,modifiers:["icon"],name:"fastforward",ref:"fastforward",onClick:t[13]||(t[13]=e=>this.$emit("forward",5)),onMouseover:t[14]||(t[14]=e=>this.$emit("showTooltips"))},{default:Ii((()=>[Hs(s,{"aria-hidden":"true",name:"fast-forward",size:"small"}),Bs("span",Iwe,ze(e.localized.fastForwardLabel),1)])),_:1},8,["data-title"])])]),Bs("div",$we,[Bs("div",Dwe,[Hs(c,{audioLanguages:n.audioLanguages,captionLanguages:n.captionLanguages,"description-languages":n.descriptionLanguages,"enable-interactive-transcript":n.enableInteractiveTranscript,modifiers:["dark"],onUpdateControls:t[16]||(t[16]=e=>this.$emit("updateControls",e))},{default:Ii((()=>[n.files?(As(),Ps("li",Pwe,[Hs(u,{index:1,useHeading:!1,title:a.downloadLabel,ref:"accordionItem"},{title:Ii((()=>[Hs(s,{"aria-hidden":"true",name:"chevron"}),qs(" "+ze(a.downloadLabel),1)])),default:Ii((()=>[n.files?(As(),Ps("ul",Owe,[(As(!0),Ps(Ss,null,ea(n.files,(e=>(As(),Ps("li",{key:`${e.language}-${e.type}`,class:"link",onKeydown:t[15]||(t[15]=(...e)=>a.focusOnNextItem&&a.focusOnNextItem(...e))},[Hs(l,{href:e.src,iconName:"download500","icon-size":16,underline:!1,withIcon:"before",download:""},{default:Ii((()=>[qs(ze(e.language)+" "+ze(e.type),1)])),_:2}
100,1032,["href"])],32)))),128))])):Ws("",!0)])),_:1},8,["title"])])):Ws("",!0)])),_:1},8,["audioLanguages","captionLanguages","description-languages","enable-interactive-transcript"])]),Bs("div",Mwe,[Hs(o,{"data-title":a.fullscreenStatusLabel,modifiers:["icon"],name:"fullscreen",ref:"fullscreen",onClick:t[17]||(t[17]=e=>this.$emit("toggleFullscreen")),onMouseover:t[18]||(t[18]=e=>this.$emit("showTooltips"))},{default:Ii((()=>[Hs(s,{"aria-hidden":"true",name:n.isFullscreen?"full-screen-exit":"full-screen",size:18},null,8,["name"]),Bs("span",Rwe,ze(a.fullscreenStatusLabel),1)])),_:1},8,["data-title"])])])])],8,pwe)])}]]),Fwe={name:"VideoJSPlayer",emits:["pause","play","timeupdate","loaded","stalled","remoteTracks","loadedAmount"],mixins:[Moe,pae,ehe],props:{hasSlottedTranscript:{default:!1,type:Boolean},poster:{type:String,default:null},sources:{type:Array,required:!0},title:{type:String,default:null},tracks:{type:Array,default:H((()=>[]),"default")},isYouTube:{type:Boolean,default:!1}},data:H((()=>({player:void 0,videoPlayer:void 0})),"data"),mounted(){return V(this,null,(function*(){const e={autoplay:!1,controls:!1,crossorigin:"anonymous",fluid:!0,html5:{nativeTextTracks:!0},preload:"auto",responsive:!0};this.isYouTube&&(yield(()=>V(this,null,(function*(){return yield Fu((()=>import("./Youtube-BKx1pG67.js").then((e=>e.Y))),[])})))(),e.crossorigin=void 0,e.youtube={ytControls:!0});const t=F(F({},e),this.options);this.initPlayer(t)}))},beforeUnmount(){this.player&&this.player.dispose()},computed:{posterUrl(){try{return new URL(this.poster),this.poster}catch(tvt){if(this.poster)return this.buildIiifUri(this.poster)}}},methods:{isPaused(){return this.videoPlayer.paused},getCurrentTime(){return this.videoPlayer.currentTime},getDuration(){return this.videoPlayer.duration},announceLoadedAmount(){let e=this.videoPlayer.buffered;if(e.length){let t=100*e.end(0)/this.videoPlayer.duration;this.$emit("loadedAmount",t.toFixed(2))}},playYouTubeVideo(){this.player.tech(!1).ytPlayer.playVideo()},getTextTracks(){return this.player.textTracks()},onLoaded(){this.$nextTick((()=>{if(!(this.videoPlayer.readyState>=2))throw new Error("Failed to load video file.");this.$emit("loaded",parseInt(this.videoPlayer.duration))}))},initPlayer(e){this.isTest||(this.player=GL(this.$refs.videoPlayer,e),this.$nextTick((()=>{this.videoPlayer=this.$refs.videoPlayer,this.videoPlayer.addEventListener("webkitendfullscreen",(()=>{this.isFullscreen=!1,this.player.playsinline(!0)}))})),this.player.ready((()=>{this.player.on("playing",(()=>{this.$emit("stalled",!1)})),this.player.on("stalled",(()=>{this.$emit("stalled",!0)})),this.player.on("fullscreenchange",this.updateCueDisplay),this.player.on("playerresize",this.updateCueDisplay),this.player.on("progress",this.announceLoadedAmount),this.player.on("texttrackchange",(()=>{this.announceRemoteTracks(),this.updateCueDisplay()})),this.player.bigPlayButton.el_.remove(),this.player.controlBar.el_.remove(),this.player.textTrackSettings.el_.remove(),this.player.errorDisplay.el_.remove(),this.player.removeAttribute("role"),this.player.removeAttribute("aria-label"),this.player.playsinline(!0),this.$refs.videoPlayer.removeAttribute("role"),this.announceRemoteTracks()})))},play(e=!0){0==e&&this.player.playsinline(!1),this.player.play()},pause(){this.player.pause()},announceRemoteTracks(){this.$emit("remoteTracks",this.player.remoteTextTracks().tracks_.filter((({kind:e})=>"metadata"!==e)))},setPlaybackRate(e){this.videoPlayer.playbackRate=e},setSource(e){const t=this.videoPlayer.currentTime;this.videoPlayer.setAttribute("src",e),this.videoPlayer.currentTime=t},setCurrentTime(e){this.videoPlayer.currentTime=e},getDefaultSource(){return this.$refs.source[0]},setVolume(e){this.videoPlayer.volume=e},updateCueDisplay(){const e=this.player.textTracks();this.player.textTrackDisplay.el_.setAttribute("aria-live","polite");for(let t=0;t<e.length;++t){const n=e[t].activeCues;if(n){let e=n.length;for(;e--;){const t=n[e].displayState;t&&(t.removeAttribute("style"),t.setAttribute("data-inline-style","removed"),t.firstElementChild.removeAttribute("style"),t.firstElementChild.setAttribute("data-inline-style","removed"))}}}}}},Bwe={"data-vjs-player":""},Hwe=["aria-details","aria-label","poster"],jwe=["src","type"],Uwe=["srclang"],Vwe={name:"VideoPlayer",components:{Accordion:jpe,AccordionItem:Voe,FocusTrap:ov,GuiButton:Jee,GuiLink:rre,Icon:Xie,TranscriptPlayer:nhe,RichText:cre,VideoJSPlayer:Wee(Fwe,[["render",function(e,t,n,i,r,a){return As(),Ps("div",Bwe,[Bs("video",{"aria-details":n.hasSlottedTranscript?"#transcript":null,"aria-label":n.title,poster:a.posterUrl,class:"video-js",ref:"videoPlayer",onLoadeddata:t[0]||(t[0]=(...e)=>a.onLoaded&&a.onLoaded(...e)),onPause:t[1]||(t[1]=t=>e.$emit("pause")),onPlay:t[2]||(t[2]=t=>e.$emit("play")),onTimeupdate:t[3]||(t[3]=t=>e.$emit("timeupdate",t))},[(As(!0),Ps(Ss,null,ea(n.sources,(t=>(As(),Ps(Ss,{key:t.src},[t.language?Ws("",!0):(As(),Ps("source",{key:0,src:t.src,type:e.getMediaType(t,"video"),ref_for:!0,ref:"source"},null,8,jwe))],64)))),128)),n.tracks?(As(!0),Ps(Ss,{key:0},ea(n.tracks,(e=>(As(),Ps("track",Zs({ref_for:!0},e,{default:!1,key:e.id||e.src,srclang:e.language,ref_for:!0,ref:"track"}),null,16,Uwe)))),128)):Ws("",!0),t[4]||(t[4]=Bs("p",{class:"vjs-no-js"},[qs(" To view this video please enable JavaScript, and consider upgrading to a web browser that "),Bs("a",{href:"https://videojs.com/html5-video-support/",target:"_blank"},"supports HTML5 video")],-1))],40,Hwe)])}]]),VideoPlayerToolbar:Nwe}
100,mixins:[Moe,Qie],props:{baseLocaleKey:{type:String,default:"m-video-player"},enableYouTube:{type:Boolean,default:!1},files:{type:Array,default:H((()=>{}),"default")},options:{type:Object,default:H((()=>{}),"default")},poster:{type:String,default:null},sources:{type:Array,required:!0},title:{type:String,default:null},tracks:{type:Array,default:H((()=>[]),"default")},url:{type:String,default:null},transcript:{type:String,default:null},transcriptId:{type:String,default:null},enableInteractiveTranscript:{type:Boolean,default:!1}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data:H((()=>({activityTimeout:null,audioLanguage:null,bigPlayClicked:!1,captions:{language:null,on:!1,activeVttTrack:void 0,currentCueTime:void 0,activeDescriptionTrack:void 0,currentDescriptionCueTime:void 0,playAudioDescription:!1,showInteractiveTranscript:!1},currentSeconds:0,durationSeconds:0,hideControlsDelay:3e3,integratedTracks:[],isFullscreen:!1,isMobileLayout:!1,isPlaying:!1,lastFocusedItem:null,loadedAmount:0,overlayVisible:!0,playbackRate:1,playingBeforeFullscreen:!1,remoteTracks:[],seekPercentage:1,stalled:!1})),"data"),setup(e){const t=zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey,strings:{bufferingLabel:"bufferingLabel",durationLabel:"durationLabel",jumpToTranscriptLabel:"jumpToTranscriptLabel",transcriptLabel:"transcriptLabel"}}),n=uwe(t.translateCount);return F(F({},t),n)},beforeMount(){return V(this,null,(function*(){this.integratedTracks=(yield this.getVimeoTextTracks())||[]}))},mounted(){return V(this,null,(function*(){this.audioLanguages&&(this.audioLanguage=this.audioLanguages[0]),this.captionLanguages&&(this.captions.language=this.captionLanguages[0]),this.setMobileLayout(),window.addEventListener("resize",(()=>this.handleResize()))}))},unmount(){window.removeEventListener("resize",(()=>this.handleResize()))},computed:{videoPlayer(){return this.$refs.videoPlayer},audioLanguages(){return this.sources.flatMap((({language:e})=>[e])).filter(Boolean)},ariaComponentLabel(){const e=this.title?` - ${this.title}`:"";return this.translatePart("ariaComponentLabel",{title:e})},captionLanguages(){const e=[...this.integratedTracks.filter((e=>["captions","subtitles"].includes(e.kind))).map((({language:e})=>e)),...this.remoteTracks.filter((e=>["captions","subtitles"].includes(e.kind))).map((({language:e})=>e))];return[...new Set(e)]},descriptionLanguages(){const e=[...this.integratedTracks.filter((e=>["descriptions"].includes(e.kind))).map((({language:e})=>e)),...this.remoteTracks.filter((e=>["descriptions"].includes(e.kind))).map((({language:e})=>e))];return[...new Set(e)]},currentPlayedTime(){return this.formatTimeShort(this.currentSeconds)},duration(){return this.formatTimeShort(this.durationSeconds)},isYouTube(){return this.enableYouTube&&this.sources.some((e=>"video/youtube"==e.type))},playStatusLabel(){const e=this.isPlaying?"Pause":"Play";return this.translatePart(`playStatusLabel${e}`)}},methods:{onLoaded(e){this.loaded=!0,this.durationSeconds=e},handleResize(){this.setMobileLayout(),document.fullscreenElement&&(this.isFullscreen=!1)},autoHideControls(){clearTimeout(this.activityTimeout),this.overlayVisible||(this.overlayVisible=!0),this.activityTimeout=setTimeout((()=>{this.overlayVisible=!1}),this.hideControlsDelay)},getVimeoTextTracks(){return V(this,null,(function*(){const e=H((({display_language:e,id:t,language:n,link:i,type:r})=>({id:t,kind:r,label:e,language:n,src:i,srclang:n})),"e"),t=this.sources.find((({src:e})=>{const{hostname:t}=new URL(e);return"player.vimeo.com"===t}));if(t){const{pathname:i}=new URL(t.src),r=i.split("/").pop().split(".").shift();try{const t=new URL(`/videos/${r}/texttracks`,"https://api.vimeo.com/").toString(),n=yield fetch(t,{headers:{Accept:"application/vnd.vimeo.*+json;version=3.4",Authorization:"Bearer f57b5e6ffd1e68a24beea3bb608b942c"}}).then((e=>{if(!e.ok)throw new Error(`Response status: ${e.status}`);return e.json()}));if(n.total)return n.data.flatMap((t=>t.active?[e(t)]:[]))}catch(n){console.error(n.message)}}}))},exitFullscreen(){this.isFullscreen&&!document.fullscreenElement&&(this.isFullscreen=!1)},setMobileLayout(){this.isMobileLayout=this.isSmallMinus()},showTooltips(){this.$refs.videoWrapper.hasAttribute("data-no-tooltips")&&this.$refs.videoWrapper.removeAttribute("data-no-tooltips")},hideTooltips(){this.$refs.videoWrapper.hasAttribute("data-no-tooltips")||this.$refs.videoWrapper.setAttribute("data-no-tooltips","")},skipBy(e=null,t=null,n){const i=this.videoPlayer.getDuration(),r="back"===e?-.01:.01;let a=(t||this.seekPercentage)*r*i;n&&n>a&&(a=r*n*i);let s=this.videoPlayer.getCurrentTime()+Math.round(a);s<0&&(s=0),s>i&&(s=i),this.videoPlayer.setCurrentTime(s)},skipTo(e){this.videoPlayer.setCurrentTime(e),this.currentSeconds=e},setSource(e){this.videoPlayer.setSource(e),this.isPlaying&&this.videoPlayer.play(),this.toggleCaptions()},toggleCaptions(){const e=this.videoPlayer.getTextTracks();let t=!1,n=!1;for(let i=0;i<e.length;++i){const r=e[i];!this.captions.on||"captions"!==r.kind&&"subtitles"!==r.kind||r.language!==this.captions.language?"descriptions"==r.kind&&r.language==this.captions.language?(r.mode="hidden",this.captions.activeDescriptionTrack=r,n=!0,r.addEventListener&&r.addEventListener("cuechange",(e=>{var t,n;if(this.captions.currentDescriptionCueTime=parseFloat(this.videoPlayer.getCurrentTime()),0==(null==(n=null==(t=null==e?void 0:e.target)?void 0:t.activeCues)?void 0:n.length)||0==this.captions.playAudioDescription)return;const i=window.speechSynthesis,a=new SpeechSynthesisUtterance(e.target.activeCues[0].text);a.lang=r.language,a.addEventListener("start",(()=>{this.toggleVideo()})),a.addEventListener("end",(()=>{this.toggleVideo()})),i.speak(a)}))):(r.mode="hidden",0==t&&(this.captions.activeVttTrack=void 0),0==n&&(this.captions.activeDescriptionTrack=void 0)):(r.mode="showing",this.captions.activeVttTrack=r,r.addEventListener&&r.addEventListener("cuechange",(()=>{this.captions.currentCueTime=parseFloat(this.videoPlayer.getCurrentTime())})),t=!0)}},toggleFullscreen(){this.playingBeforeFullscreen=this.isPlaying,this.isFullscreen?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():(this.videoPlayer.pause(),this.videoPlayer.play(!1),this.playingBeforeFullscreen||this.videoPlayer.pause(),this.$refs.videoWrapper.requestFullscreen?this.$refs.videoWrapper.requestFullscreen():this.$refs.videoWrapper.webkitRequestFullscreen&&this.$refs.videoWrapper.webkitRequestFullscreen()),this.isFullscreen=!this.isFullscreen},toggleVideo(){this.videoPlayer.isPaused()?(this.videoPlayer.play(),this.isPlaying=!0):(this.videoPlayer.pause(),this.isPlaying=!1)},updateControls(e,t){if(e&&t)switch(e){case"captions":this.captions.language=t,this.captions.on="off"!==t,this.toggleCaptions();break;case"interactiveTranscripts":this.captions.showInteractiveTranscript="off"!==t,this.captions.playAudioDescription=!1,"on_with_description"==t&&(this.captions.playAudioDescription=!0);break;case"langs":this.audioLanguage=t;const e=this.sources.find((({language:e})=>e===t)),{src:n}=e||this.videoPlayer.getDefaultSource();this.setSource(n);break;case"rates":this.playbackRate=t,this.videoPlayer.setPlaybackRate(t)}this.autoHideControls(),this.lastFocusedItem&&setTimeout((()=>this.lastFocusedItem.focus()),5)},updateTime(){this.currentSeconds=parseInt(this.videoPlayer.getCurrentTime())},initializeAndPlayVideo(){this.bigPlayClicked=!0,this.hideTooltips(),this.isYouTube?this.videoPlayer.playYouTubeVideo():(this.toggleVideo(),setTimeout((()=>{this.$el.querySelector("[name=playToggle]").focus()}),5))}}},qwe=["aria-label"],zwe={class:"m-video-player__inner"},Wwe={key:0,"aria-live":"polite","aria-atomic":"true",class:"visually-hidden"},Gwe={class:"m-video-player__meta"},Kwe={key:0,"aria-hidden":"true",class:"m-video-player__meta-title"},Ywe={key:1},Zwe={"aria-hidden":"true"},Xwe={class:"visually-hidden",id:"durationText"},Qwe={class:"a-btn__play"},Jwe={class:"visually-hidden"},eSe=["aria-hidden"],tSe={key:0,class:"m-video-player__slot",id:"transcript"},nSe=Wee(Vwe,[["render",function(e,t,n,i,r,a){var s,o,l,u,c,d;const p=Yr("VideoJSPlayer"),h=Yr("Icon"),f=Yr("GuiButton"),m=Yr("VideoPlayerToolbar"),g=Yr("FocusTrap"),y=Yr("GuiLink"),v=Yr("RichText"),b=Yr("AccordionItem"),_=Yr("Accordion"),w=Yr("TranscriptPlayer");return n.sources?(As(),Ps("div",{key:0,"aria-label":a.ariaComponentLabel,class:"m-video-player",ref:"videoWrapper",role:"region",onFullscreenchange:t[13]||(t[13]=(...e)=>a.exitFullscreen&&a.exitFullscreen(...e))},[Bs("div",zwe,[r.bigPlayClicked&&r.stalled?(As(),Ps("span",Wwe,ze(e.localized.bufferingLabel),
1001)):Ws("",!0),Hs(p,{"has-default-slot-content":e.hasDefaultSlotContent,title:n.title,poster:n.poster,tracks:n.tracks,sources:n.sources,"is-you-tube":a.isYouTube,class:"video-js",ref:"videoPlayer",onLoaded:a.onLoaded,onStalled:t[0]||(t[0]=e=>r.stalled=e),onLoadedAmount:t[1]||(t[1]=e=>r.loadedAmount=e),onRemoteTracks:t[2]||(t[2]=e=>r.remoteTracks=e),onPause:t[3]||(t[3]=e=>r.isPlaying=!1),onPlay:t[4]||(t[4]=e=>r.isPlaying=!0),onTimeupdate:a.updateTime},null,8,["has-default-slot-content","title","poster","tracks","sources","is-you-tube","onLoaded","onTimeupdate"]),Bs("div",{class:Fe(["m-video-player__start",{"m-video-player__start--hidden":r.bigPlayClicked}])},[Bs("div",Gwe,[n.title?(As(),Ps("span",Kwe,ze(n.title),1)):Ws("",!0),r.durationSeconds>0?(As(),Ps("span",Ywe,[Hs(h,{"aria-hidden":"true",name:"mediaVideo",size:16}),Bs("span",Zwe,ze(e.formatTimeShort(r.durationSeconds)),1),Bs("span",Xwe,ze(e.localized.durationLabel)+": "+ze(e.formatTime(r.durationSeconds)),1)])):Ws("",!0)]),Hs(f,{"aria-describedby":"durationText","aria-hidden":r.bigPlayClicked,modifiers:["icon"],name:"bigPlayBtn",onClick:a.initializeAndPlayVideo},{default:Ii((()=>[Bs("span",Qwe,[Hs(h,{"aria-hidden":"true",name:"play",size:32}),Bs("span",Jwe,ze(a.playStatusLabel),1)])])),_:1},8,["aria-hidden","onClick"])],2),a.isYouTube?Ws("",!0):(As(),Ps("div",{key:1,"aria-hidden":!r.bigPlayClicked&&!r.isMobileLayout,class:Fe(["m-video-player__overlay",{"m-video-player__overlay--hidden":!r.bigPlayClicked},{"m-video-player__overlay--autohide":!r.overlayVisible}]),ref:"overlay",onMousemove:t[11]||(t[11]=(...e)=>a.autoHideControls&&a.autoHideControls(...e))},[Hs(g,{active:r.isFullscreen,escapeDeactivates:!1,returnFocusOnDeactivate:!0},{default:Ii((()=>[Hs(m,{ref:"toolbar",files:n.files,"is-fullscreen":r.isFullscreen,title:n.title,"audio-languages":a.audioLanguages,"caption-languages":a.captionLanguages,"description-languages":a.descriptionLanguages,"play-status-label":a.playStatusLabel,"current-played-time":
100a.currentPlayedTime,"current-seconds":r.currentSeconds,duration:a.duration,"duration-seconds":r.durationSeconds,"loaded-amount":r.loadedAmount,"is-playing":r.isPlaying,"enable-interactive-transcript":n.enableInteractiveTranscript,onAutoHideControls:a.autoHideControls,onToggleFullscreen:a.toggleFullscreen,onToggleVideo:a.toggleVideo,onShowTooltips:a.showTooltips,onUpdateControls:t[5]||(t[5]=e=>a.updateControls(...Object.entries(e)[0])),onSeek:t[6]||(t[6]=e=>this.skipTo(e.target.value)),onForward:t[7]||(t[7]=e=>this.skipBy("forward",e)),onBack:t[8]||(t[8]=e=>this.skipBy("back",e)),onSkip:t[9]||(t[9]=e=>this.skipBy(e.direction,e.percent,e.threshold)),onVolumeChange:t[10]||(t[10]=e=>this.videoPlayer.setVolume(e))},null,8,["files","is-fullscreen","title","audio-languages","caption-languages","description-languages","play-status-label","current-played-time","current-seconds","duration","duration-seconds","loaded-amount","is-playing","enable-interactive-transcript","onAutoHideControls","onToggleFullscreen","onToggleVideo","onShowTooltips"])])),_:1},8,["active"])],42,eSe))]),e.hasDefaultSlotContent?(As(),Ps("div",tSe,[na(e.$slots,"default")])):Ws("",!0),n.transcriptId?(As(),Os(y,{key:1,href:`#${n.transcriptId}`},{default:Ii((()=>[qs(ze(e.localized.jumpToTranscriptLabel),1)])),_:1},8,["href"])):Ws("",!0),n.transcript&&!n.transcriptId?(As(),Os(_,{key:2,size:"small"},{default:Ii((()=>[Hs(b,{title:e.localized.transcriptLabel},{default:Ii((()=>[Hs(v,{content:n.transcript},null,8,["content"])])),_:1},8,["title"])])),_:1})):Ws("",!0),r.captions.showInteractiveTranscript?(As(),Os(w,{key:3,cues:null==(o=null==(s=r.captions)?void 0:s.activeVttTrack)?void 0:o.cues,"cue-time":null==(l=r.captions)?void 0:l.currentCueTime,"descriptive-cues":null==(c=null==(u=r.captions)?void 0:u.activeDescriptionTrack)?void 0:c.cues,"descriptive-cue-time":null==(d=r.captions)?void 0:d.currentDescriptionCueTime,onSkipTo:t[12]||(t[12]=e=>a.skipTo(e))},null,8,["cues","cue-time","descriptive-cues","descriptive-cue-time"])):Ws("",!0)],40,qwe)):Ws("",!0)}]]),iSe={class:"m-block-media__inner"},rSe=Wee({name:"ContentBlockMedia",components:{VideoPlayer:nSe,ImageResponsive:vae,MediaTranscript:w_e,RichText:cre},props:{image:{type:Object,default:null},video:{type:Object,default:null},caption:{type:[String,Object],default:null},blockStyle:{type:String,default:null},layout:{type:String,default:"standard",validate:H((e=>["standard","feature","hero"].includes(e)),"validate")}},computed:{accordionProps(){if(this.video.transcript)return{size:"small",items:[{title:"Transcript",content:this.video.transcript}]}},classes(){let e=[];return e.push(`m-block-media--${this.layout.toLowerCase()}`),this.blockStyle&&"default"!==this.blockStyle&&e.push(`m-block-media--${this.blockStyle.toLowerCase()}`),this.caption&&this.caption.descriptive&&e.push("m-block-media--has-caption"),e},mediaComponent(){return this.image?"ImageResponsive":"VideoPlayer"},media(){const e="editorial"===this.blockStyle?B(F({},this.video),{transcript:void 0}):this.video;return this.image?this.image:e}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("MediaTranscript");return n.image||n.video?(As(),Ps("div",{key:0,class:Fe(["m-block-media",...a.classes])},[Bs("div",iSe,[(As(),Os(Xr(a.mediaComponent),Be(Us(F({},a.media))),{default:Ii((()=>[n.caption?(As(),Ps(Ss,{key:0},["string"==typeof n.caption?(As(),Os(s,{key:0,content:n.caption,class:"m-block-media__caption"},null,8,["content"])):Ws("",!0),n.caption.rights?(As(),Os(s,{key:1,content:n.caption.rights,class:"m-block-media__caption m-block-media__caption--rights"},null,8,["content"])):Ws("",!0),n.caption.credit?(As(),Os(s,{key:2,content:n.caption.credit,class:"m-block-media__caption m-block-media__caption--credit"},null,8,["content"])):Ws("",!0),n.caption.descriptive?(As(),Os(s,{key:3,content:n.caption.descriptive,class:"m-block-media__caption m-block-media__caption--descriptive"},null,8,["content"])):Ws("",!0)],64)):Ws("",!0),n.video&&n.video.transcript&&"editorial"===n.blockStyle?(As(),Os(o,Zs({key:1},a.accordionProps,{class:"m-media-transcript"}),null,16)):Ws("",!0)])),_:1},16))])],2)):Ws("",!0)}]]),aSe={class:"m-block-product"},sSe={class:"m-block-product__main"},oSe={class:"m-block-product__subtitle"},lSe={key:1,class:"m-block-product__cta"},uSe={key:0,class:"m-block-product__image"},cSe=Wee({name:"ContentBlockProduct",mixins:[Jie],components:{Heading:jre,ImageResponsive:vae,RichText:cre},props:{href:{type:String,default:null},title:{type:String,default:null},subtitle:{type:String,default:null},excerpt:{type:String,default:null},ctaText:{type:String,default:null},image:{type:Object,default:null},headingLevel:{type:Number,default:3}}
100,computed:{linkTarget(){if(this.href)return this.getLinkTarget(this.href)}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("RichText"),l=Yr("ImageResponsive");return As(),Ps("section",aSe,[(As(),Os(Xr(n.href?"a":"div"),{href:n.href?n.href:null,target:n.href?a.linkTarget:null,class:"m-block-product__inner"},{default:Ii((()=>[Bs("div",sSe,[Hs(s,{level:n.headingLevel,class:"m-block-product__title"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["level"]),Bs("span",oSe,ze(n.subtitle),1),n.excerpt?(As(),Os(o,{key:0,content:n.excerpt,class:"m-block-product__excerpt"},null,8,["content"])):Ws("",!0),n.ctaText?(As(),Ps("span",lSe,[Bs("span",null,ze(n.ctaText),1)])):Ws("",!0)]),n.image?(As(),Ps("div",uSe,[Hs(l,Zs(F({},n.image),{size:"product_block"}),null,16)])):Ws("",!0)])),_:1},8,["href","target"]))])}]]),dSe=Wee({name:"ContentBlockPullQuote",components:{Icon:Xie,RichText:cre},props:{content:{type:String,default:null},blockStyle:{type:String,default:null}},computed:{classes(){let e=[];return this.blockStyle&&"default"!==this.blockStyle&&e.push(`m-block-pullquote--${this.blockStyle.toLowerCase()}`),e},showQuotes(){return this.blockStyle&&"editorial"===this.blockStyle}}},[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("RichText");return n.content?(As(),Ps("div",{key:0,class:Fe(["m-block-pullquote",...a.classes])},[a.showQuotes?(As(),Os(s,{key:0,name:"quote",class:"m-block-pullquote__quotes","aria-hidden":"true"})):Ws("",!0),Bs("aside",null,[Hs(o,{content:n.content},null,8,["content"])])],2)):Ws("",!0)}]]),pSe=Wee({name:"ContentBlockQuotation",components:{RichText:cre},props:{blockStyle:{type:String,default:"default"},citation:{type:String,default:null},text:{type:String,default:null}},computed:{citationContent(){return`â ${this.citation.trim()}`},classes(){let e=[];return this.blockStyle&&"default"!==this.blockStyle&&e.push(`m-block-quotation--${this.blockStyle.toLowerCase()}`),e}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText");return As(),Ps("div",{class:Fe(["m-block-quotation",...a.classes])},[Bs("figure",null,[Bs("blockquote",null,[Hs(s,{class:"m-block-quotation__content",content:n.text},null,8,["content"])]),Bs("figcaption",null,[Hs(s,{class:"m-block-quotation__citation",content:a.citationContent},null,8,["content"])])])],2)}]]),hSe={key:0,class:"m-block-table"},fSe={class:"m-block-table__inner"},mSe={key:0},gSe={key:1},ySe={key:2},vSe=Wee({name:"ContentBlockTable",props:{data:{type:Object,default:null}},data:H((()=>({uid:br()})),"data")},[["render",function(e,t,n,i,r,a){return n.data?(As(),Ps("div",hSe,[Bs("div",fSe,[Bs("table",null,[n.data.thead?(As(),Ps("thead",mSe,[(As(!0),Ps(Ss,null,ea(n.data.thead,((e,t)=>(As(),Ps("tr",{key:`contentBlockTable${r.uid}theadRow${t}`},[(As(!0),Ps(Ss,null,ea(e,((e,t)=>(As(),Ps("th",{key:`contentBlockTable${r.uid}theadCell${t}`},ze(e),1)))),128))])))),128))])):Ws("",!0),n.data.tbody?(As(),Ps("tbody",gSe,[(As(!0),Ps(Ss,null,ea(n.data.tbody,((e,t)=>(As(),Ps("tr",{key:`contentBlockTable${r.uid}tbodyRow${t}`},[(As(!0),Ps(Ss,null,ea(e,((e,t)=>(As(),Ps("td",{key:`contentBlockTable${r.uid}tbodyCell${t}`},ze(e),1)))),128))])))),128))])):Ws("",!0),n.data.tfoot?(As(),Ps("tfoot",ySe,[(As(!0),Ps(Ss,null,ea(n.data.tfoot,((e,t)=>(As(),Ps("tr",{key:`contentBlockTable${r.uid}tfootRow${t}`},[(As(!0),Ps(Ss,null,ea(e,((e,t)=>(As(),Ps("td",{key:`contentBlockTable${r.uid}tfootCell${t}`},ze(e),1)))),128))])))),128))])):Ws("",!0)])])])):Ws("",!0)}]]),bSe={name:"ContentBlocks",components:{ContentBlockAccordion:__e,ContentBlockAudio:E_e,ContentBlockAuthorBios:L_e,ContentBlockCarousel:M_e,ContentBlockDynamicComponent:R_e,ContentBlockGoogleSlides:N_e,ContentBlockHeading:F_e,ContentBlockImage2up:U_e,ContentBlockImageRow:W_e,ContentBlockIntro:K_e,ContentBlockJumpLinks:Y_e,ContentBlockLightboxListingCarousel:swe,ContentBlockListOfLinks:lwe,ContentBlockMedia:rSe,ContentBlockQuotation:pSe,ContentBlockProduct:cSe,ContentBlockPullquote:dSe,ContentBlockTable:vSe,ContentBlockText:Wee({name:"ContentBlockText",components:{RichText:cre},props:{content:{type:[String,Object],default:null},blockStyle:{type:String,default:"default"}},computed:{classes(){let e=[];return this.blockStyle&&"default"!==this.blockStyle&&e.push(`m-block-text--${this.blockStyle.toLowerCase()}`),e}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText");return n.content?(As(),Os(s,{key:0,content:n.content,class:Fe(["m-block-text",...a.classes])},null,8,["content","class"])):Ws("",!0)}]]),ArticleCallout:Wpe,Heading:jre},props:{baseHeadingLevel:{type:Number,default:2},blocks:{type:Array,default:null},blockStyle:{type:String,default:"default",validate:H((e=>{}),"validate")},callout:{type:Object,default:H((()=>{}),"default")},label:{type:String,default:null}},data:H((()=>({calloutTopOffsetStyles:{}})),"data"),computed:{bodyBlockIndexes(){const e=[];return this.blocks.forEach(((t,n)=>{"body"===t.dataType&&e.push(n)})),e},calloutShowIndex(){if(!this.blocks||!this.callout)return;const e=this.textBlockIndexes.length;let t=this.textBlockIndexes[1]||0;return e>=10?t=this.textBlockIndexes[5]:e>
1005&&(t=this.textBlockIndexes[3]),t<=1?2:t},labelHeadingLevel(){return this.baseHeadingLevel},lastBodyTextBlockIndex(){return this.textBlockIndexes.reverse().find((e=>this.bodyBlockIndexes.includes(e)))},shouldShowArticleCallout(){return this.callout&&this.blocks.length>2&&this.textBlockIndexes.length>2},textBlockIndexes(){const e=[];return this.blocks.forEach(((t,n)=>{"text"===t.type&&e.push(n)})),e}},mounted(){this.callout&&(this.debouncedResize=ete(this.getCalloutTopOffsetStyles),window.addEventListener("resize",this.debouncedResize),this.$refs.contentBlocks.querySelectorAll("img").forEach((e=>{e.addEventListener("load",this.getCalloutTopOffsetStyles)})),this.getCalloutTopOffsetStyles())},methods:{getCalloutTopOffsetStyles(){if(!this.shouldShowArticleCallout)return;const e=this.$refs.contentBlocks.getBoundingClientRect(),t=e.y+e.height,n=this.$refs[`contentBlock${this.calloutShowIndex}`][0].$el.getBoundingClientRect().y-t;this.calloutTopOffsetStyles={"margin-top":`${n}px`}},getBlockClasses(e){const t=[];return e===this.lastBodyTextBlockIndex&&t.push("o-content-blocks__block--last-body-text"),t},getBlockName:H((e=>`contentBlock-${e}`.replace(/-([a-z])/g,(e=>e[1].toUpperCase()))),"getBlockName")}},_Se={key:0,class:"o-content-blocks",ref:"contentBlocks"},wSe=Wee(bSe,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("ArticleCallout");return n.blocks?(As(),Ps("div",_Se,[n.label?(As(),Os(s,{key:0,level:a.labelHeadingLevel,class:"visually-hidden"},{default:Ii((()=>[qs(ze(n.label),1)])),_:1},8,["level"])):Ws("",!0),Bs("div",null,[(As(!0),Ps(Ss,null,ea(n.blocks,((e,t)=>(As(),Os(Xr(a.getBlockName(e.type)),Zs({key:`contentBlock${t}`,ref_for:!0},F({},e),{blockStyle:n.blockStyle,class:a.getBlockClasses(t),"data-type":e.dataType,ref_for:!0,ref:`contentBlock${t}`}),null,16,["blockStyle","class","data-type"])))),128)),a.shouldShowArticleCallout?(As(),Os(o,Zs({key:0},F({},n.callout),{style:r.calloutTopOffsetStyles}),null,16,["style"])):Ws("",!0)])],512)):Ws("",!0)}]]),SSe={class:"m-location-hours__inner"},CSe={key:1,class:"m-location-hours__image"},kSe=Wee({name:"LocationHours",components:{ContentBlocks:wSe,GuiLink:rre,Heading:jre,ImageResponsive:vae,OpenHours:zse,OpenNowStatus:Wae},props:{title:{type:String,required:!0},openHours:{type:Object,required:!0},cta:{type:Object,required:!1},image:{type:Object,required:!1},content:{type:Array,required:!1},modifier:{type:String,default:"large"}},computed:{closureFlag(){return this.openHours&&this.openHours.closureFlag},getClasses(){const e=["m-location-hours"];return this.modifier&&e.push(`m-location-hours--${this.modifier}`),e}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("OpenNowStatus"),l=Yr("ImageResponsive"),u=Yr("OpenHours"),c=Yr("ContentBlocks"),d=Yr("GuiLink");return As(),Ps("article",{class:Fe(a.getClasses)},[Bs("div",SSe,[n.title?(As(),Os(s,{key:0,level:3,class:"m-location-hours__title"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1})):Ws("",!0),Hs(o,{openHours:n.openHours,class:"m-location-hours__subtitle"},null,8,["openHours"]),n.image?(As(),Ps("figure",CSe,[Hs(l,Zs(n.image,{size:`infocard_${n.modifier}`}),null,16,["size"])])):Ws("",!0)]),a.closureFlag?Ws("",!0):(As(),Ps(Ss,{key:0},[Hs(u,{headingLevel:4,openHours:n.openHours,displayOpenNowStatus:!1,class:"m-location-hours__list"},null,8,["openHours"]),n.content?(As(),Os(c,{key:0,blocks:n.content,class:"m-location-hours__content"},null,8,["blocks"])):Ws("",!0),n.cta?(As(),Os(d,Zs({key:1},n.cta,{ref:"ctaLink",class:"m-location-hours__cta"}),{default:Ii((()=>[qs(ze(n.cta.text),1)])),_:1},16)):Ws("",!0)],64))],2)}]]),xSe=["role"],TSe=["role"],ESe=Wee({name:"locationHoursList",components:{LocationHours:kSe},mixins:[Ure],props:{items:{type:Array,default:null}},computed:{listRole(){return this.getListRole(this.items)}}},[["render",function(e,t,n,i,r,a){const s=Yr("LocationHours");return n.items?(As(),Ps("ul",{key:0,class:"m-location-hours-list",role:a.listRole},[(As(!0),Ps(Ss,null,ea(n.items,((e,t)=>(As(),Ps("li",{key:t,role:a.listRole,class:"m-location-hours-list__item",ref_for:!0,ref:"item"},[Hs(s,Zs({ref_for:!0},e),null,16)],8,TSe)))),128))],8,xSe)):Ws("",!0)}
100]]),ASe={name:"Location",components:{CardList:vde,DescriptionList:$re,GuiLink:rre,Heading:jre,Icon:jre,ImageResponsive:vae,MapImage:Hae,OpenNowStatus:Wae},props:{address:{type:String,default:null},baseHeadingLevel:{type:Number,default:2},cards:{type:Array,default:null},content:{type:Array,default:null},emergencyClosure:{type:Boolean,default:!1},image:{type:Object,default:null},locationName:{type:String,default:null},map:{type:Object,default:null},modifier:{type:String,default:null},openHours:{type:Object,required:!0},title:{type:String,default:null}},data(){const e=br();return{cardListHeadingId:`LocationCardList${e}Heading`,contentHeadingId:`LocationContent${e}Heading`,hoursHeadingId:`LocationHoursList${e}Heading`}},computed:{cardHeadingLevel(){return this.baseHeadingLevel+2},cardListHeadingLevel(){return this.baseHeadingLevel+1},contentHeadingLevel(){return this.baseHeadingLevel+1}}},LSe={key:0,class:"m-location-info__image"},ISe={class:"m-location-info__inner"},$Se={class:"m-location-info__content"},DSe={class:"m-location-info__aside"},PSe={key:0,class:"m-location-info__map"},OSe={key:1,class:"m-location-info__image"},MSe={class:"m-location-info__main"},RSe={class:"m-location-info__hours-title-wrapper"},NSe={class:"m-location-info__content-items"},FSe={key:0},BSe=["innerHTML"],HSe=Wee(ASe,[["render",function(e,t,n,i,r,a){const s=Yr("ImageResponsive"),o=Yr("MapImage"),l=Yr("Heading"),u=Yr("OpenNowStatus"),c=Yr("DescriptionList"),d=Yr("GuiLink"),p=Yr("CardList");return As(),Ps("div",{class:Fe(["m-location-info",n.modifier&&`m-location-info--${n.modifier}`])},[n.image&&"reserve"!==n.modifier?(As(),Ps("figure",LSe,[Hs(s,Zs(F({},n.image),{size:"location"}),null,16)])):Ws("",!0),Bs("div",ISe,[n.title?(As(),Ps("span",{key:0,ref:"title",class:"m-location-info__title"},ze(n.title),513)):Ws("",!0),Bs("div",$Se,[Bs("div",DSe,[n.map?(As(),Ps("div",PSe,[Hs(o,Zs(F({},n.map),{alt:`Map of ${n.address?n.address:"location"}`,size:"location_map"}),null,16,["alt"])])):Ws("",!0),n.image&&"reserve"==n.modifier?(As(),Ps("figure",OSe,[Hs(s,Zs(F({},n.image),{size:"location"}),null,16)])):Ws("",!0)]),Bs("div",MSe,[Bs("div",RSe,[Hs(l,{id:r.hoursHeadingId,level:a.contentHeadingLevel,class:"m-location-info__hours-title",ref:"hours-title"},{default:Ii((()=>t[0]||(t[0]=[qs(" Hours ")]))),_:1,__:[0]},8,["id","level"]),n.locationName?(As(),Os(u,{key:0,"open-hours":n.openHours},null,8,["open-hours"])):Ws("",!0)]),n.emergencyClosure?Ws("",!0):(As(),Os(c,{key:0,id:r.hoursHeadingId,terms:n.openHours.displayHours,class:"m-location-info__hours","description-key":"times",ref:"hours-list",termKey:"days"},null,8,["id","terms"])),Bs("div",NSe,[(As(!0),Ps(Ss,null,ea(n.content,((e,t)=>(As(),Ps("div",{key:`content_${t}`,class:"m-location-info__content-item",ref_for:!0,ref:"content-item"},[e.title?(As(),Os(l,{key:0,id:r.contentHeadingId,level:a.contentHeadingLevel,class:"m-location-info__content-title"},{default:Ii((()=>[qs(ze(e.title),1)])),_:2},1032,["id","level"])):Ws("",!0),e.content?(As(),Ps(Ss,{key:1},[e.href?(As(),Ps("p",FSe,[Hs(d,{href:e.href,"with-icon":"after"},{default:Ii((()=>[qs(ze(e.content),1)])),_:2},1032,["href"])])):(As(),Ps("p",{key:1,innerHTML:e.content},null,8,BSe))],64)):Ws("",!0),e.link?(As(),Os(d,{key:2,href:e.link.url},{default:Ii((()=>[qs(ze(e.link.text),1)])),_:2},1032,["href"])):Ws("",!0),e.cta?(As(),Os(d,{key:3,href:e.cta.url,class:"a-link--button"},{default:Ii((()=>[qs(ze(e.cta.text),1)])),_:2},1032,["href"])):Ws("",!0)])))),128))])])]),n.cards?(As(),Os(l,{key:1,level:a.cardListHeadingLevel,id:r.cardListHeadingId,class:"visually-hidden"},{default:Ii((()=>t[1]||(t[1]=[qs(" Additional Location information ")]))),_:1,__:[1]},8,["level","id"])):Ws("",!0),Hs(p,{cardName:"CtaCard","aria-labelledby":r.cardListHeadingId,items:n.cards,layout:"grid",modifiers:["background-hover","small"]},null,8,["aria-labelledby","items"])])],2)}]]),jSe={class:"m-map-cards"},USe={class:"m-map-cards__inner"},VSe={class:"m-map-cards__map"},qSe={class:"m-map-cards__map-inner"},zSe={class:"m-map-cards__main"},WSe={class:"m-map-cards__list","aria-labelledby":"mapCardListTitle"},GSe=["onFocusin","onMouseenter"],KSe=Wee({name:"MapCards",components:{GuiLink:rre,Icon:Xie,IconTooltip:uae,ImageResponsive:vae,MapImage:Hae,Post:Yue},props:{cards:{type:Array,default:null},items:{type:Array,default:null},map:{type:Object,default:null},modifier:{type:String,default:null}},data:H((()=>({active:null})),"data")},[["render",function(e,t,n,i,r,a){const s=Yr("MapImage"),o=Yr("IconTooltip"),l=Yr("GuiLink"),u=Yr("Post");return As(),Ps("div",jSe,[Bs("div",USe,[Bs("div",VSe,[Bs("div",qSe,[n.map?(As(),Os(s,Zs({key:0},F({},n.map),{marker:!1,showLink:!1,size:"location_map_1_1"}),null,16)):Ws("",!0),n.items?(As(!0),Ps(Ss,{key:1},ea(n.items,((e,n)=>(As(),Ps(Ss,{key:`mapTooltip${n}`},[Hs(o,Zs({ref_for:!0},F({},e)),null,16),e.mapLink?(As(),Os(l,{key:0,href:e.mapLink.href,class:Fe(["m-map-cards__map-link",{"m-map-cards__map-link--active":r.active&&e.mapLink.slug===r.active}]),style:Pe(e.position),"aria-hidden":"true",iconName:"Pin",tabindex:"-1",withIcon:"before",onMouseenter:H((t=>r.active=e.mapLink.slug),"onMouseenter"),onMouseleave:t[0]||(t[0]=e=>r.active=null)},{default:Ii((()=>[qs(ze(e.mapLink.text),1)])),_:2},1032,["href","class","style","onMouseenter"])):Ws("",!0)],64)))),128)):Ws("",!0)])]),Bs("div",zSe,[n.cards?(As(),Ps(Ss,{key:0},[t[3]||(t[3]=Bs("h3",{id:"mapCardListTitle",class:"visually-hidden"}," Information about location reopening ",-1)),Bs("ul",WSe,[(As(!0),Ps(Ss,null,ea(n.
100cards,((e,i)=>(As(),Ps("li",{key:`card${i}`,class:Fe(["cta"==n.modifier?"m-map-cards__list-item-cta":"m-map-cards__list-item",{"m-map-cards__list-item-cta--active":"cta"==n.modifier&&r.active&&e.key==r.active},{"m-map-cards__list-item--muted":"cta"!==n.modifier&&r.active&&e.key!==r.active}]),onFocusin:H((t=>r.active=e.key),"onFocusin"),onFocusout:t[1]||(t[1]=e=>r.active=null),onMouseenter:H((t=>r.active=e.key),"onMouseenter"),onMouseleave:t[2]||(t[2]=e=>r.active=null)},[Hs(u,Zs({ref_for:!0},F({},e),{headingLevel:4}),null,16)],42,GSe)))),128))])],64)):Ws("",!0)])])])}]]),YSe={props:{bkgd:{type:String,default:null,validator:H((e=>eye.includes(e)),"validator")}},data:H((()=>({scrollSpyDisabled:!1})),"data"),computed:{bkgdClass(){return this.bkgd&&this.scrollSpyDisabled?`s-bg--${this.bkgd}`:null}}},ZSe={name:"MediaFeature",components:{GuiLink:rre,Heading:jre,RichText:cre},mixins:[YSe,Moe],props:{button:{type:[Boolean,String],default:!0},headingLevel:{type:Number,default:2},title:{type:String,default:null},body:{type:String,default:null},cta:{type:Object,default:null}},data:H((()=>({isMobileLayout:!1,contentHeight:0,containerWidth:0,mediaWidth:0,cropWidth:0,cropHeight:0,observer:null,scrollSpyDisabled:!0})),"data"),mounted(){this.debouncedResize=ete(this.checkInit),window.addEventListener("resize",this.debouncedResize),this.$nextTick((()=>{this.checkInit()}))},unmounted(){window.removeEventListener("resize",this.debouncedResize),window.cancelAnimationFrame(this.rAF),this.rAF=null},computed:{innerStyles(){return{"min-height":.5625*this.containerWidth+"px"}},mediaStickyStyles(){if(this.isMobileLayout)return;const e=this.mediaWidth+this.cropWidth,t=this.mediaWidth-this.cropHeight;return{width:`${e>=this.containerWidth?this.containerWidth:e}px`,height:`${t<=this.mediaWidth?this.mediaWidth:t}px`}}},methods:{checkInit(){if(this.isMobileLayout=this.isSmallMinus(),this.isMobileLayout)window.cancelAnimationFrame(this.rAF),this.rAF=null,this.observer&&this.observer.disconnect();else{let e={root:null,rootMargin:"0px",threshold:0};this.observer=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&this.getDimensions()}))}),e),this.observer.observe(this.$el)}},getDimensions(){this.contentHeight=this.$refs.content.clientHeight,this.containerWidth=this.$refs.container.clientWidth,this.mediaWidth=this.$refs.media.clientWidth}}},XSe={class:"m-media-feature"},QSe={class:"m-media-feature__main"},JSe={ref:"content",class:"m-media-feature__content"},eCe={ref:"media",class:"m-media-feature__media"},tCe=Wee(ZSe,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("RichText"),l=Yr("GuiLink");return As(),Ps("div",XSe,[Bs("div",{ref:"container",class:Fe(["m-media-feature__wrapper","container",e.bkgdClass])},[Bs("div",{class:"m-media-feature__inner",style:Pe(a.innerStyles)},[Bs("div",QSe,[Bs("div",JSe,[n.title?(As(),Os(s,{key:0,level:n.headingLevel,class:"m-media-feature__title"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["level"])):Ws("",!0),n.body?(As(),Os(o,{key:1,content:n.body,class:"m-media-feature__body"},null,8,["content"])):Ws("",!0),n.cta?(As(),Os(l,{key:2,button:n.button,class:"m-media-feature__cta",href:n.cta.href,iconName:n.cta.iconName,iconSize:14,withIcon:n.cta.withIcon||null},{default:Ii((()=>[qs(ze(n.cta.text),1)])),_:1},8,["button","href","iconName","withIcon"])):Ws("",!0)],512)]),Bs("div",eCe,[t[0]||(t[0]=Bs("div",{class:"m-media-feature__media-sticky-spacer"},null,-1)),Bs("div",{ref:"sticky",class:"m-media-feature__media-sticky",style:Pe(a.mediaStickyStyles)},[Bs("div",{class:"m-media-feature__media-crop",style:Pe(a.mediaStickyStyles)},[na(e.$slots,"media")],4)],4)],512)],4)],2)])}]]),nCe={name:"MediaScrollFeature",components:{GuiLink:rre,Heading:jre,RichText:cre},mixins:[YSe,Moe],props:{button:{type:[Boolean,String],default:!0},headingLevel:{type:Number,default:2},title:{type:String,default:null},body:{type:String,default:null},cta:{type:Object,default:null}},data:H((()=>({isMobileLayout:!1,active:!1,contentHeight:0,containerWidth:0,mediaWidth:0,cropWidth:0,cropHeight:0,y:0,oldY:-1,observer:null,scrollSpyDisabled:!0,inView:!1})),"data"),mounted(){this.debouncedResize=ete(this.checkInit),window.addEventListener("resize",this.debouncedResize),this.$nextTick((()=>{this.checkInit()}))},unmounted(){window.removeEventListener("resize",this.debouncedResize),window.cancelAnimationFrame(this.rAF),this.rAF=null},computed:{innerStyles(){return{"min-height":.5625*this.containerWidth+"px"}},contentStyles(){if(!this.isMobileLayout)return{transform:`translateY(${this.inView?`${this.y}px`:this.y<=0?"-200%":"0px"})`}},mediaStickyStyles(){if(this.isMobileLayout)return;const e=this.mediaWidth+this.cropWidth,t=this.mediaWidth-this.cropHeight;let n=e>=this.containerWidth?this.containerWidth:e,i=t<=this.mediaWidth?this.mediaWidth:t;return this.inView||(this.y<=0?(n=this.containerWidth,i=.5625*this.containerWidth):(n=this.mediaWidth,i=this.mediaWidth)),{width:`${n}px`,height:`${i}px`}},mediaCropStyles(){if(!this.isMobileLayout&&this.containerWidth)return{width:`${this.containerWidth}px`}}},methods:{isInView(){if(!this.$el)return;const e=this.$el.getBoundingClientRect(),t=e.top,n=e.bottom;return t<=0&&n>=window.innerHeight},checkInit(){if(this.isMobileLayout=this.isSmallMinus(),this.isMobileLayout)window.cancelAnimationFrame(this.rAF),this.rAF=null,this.observer&&this.observer.disconnect(),this.active=!1;else{this.active||(this.rAF=window.requestAnimationFrame(this.mediaScroll),this.active=!0);let e={root:null,rootMargin:"0px",threshold:0};this.observer=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&this.getDimensions()}))}),e),this.observer.observe(this.$el)}},getDimensions(){this.contentHeight=this.$refs.content.clientHeight,this.containerWidth=this.$refs.container.clientWidth,this.mediaWidth=this.$refs.media.clientWidth},mediaScroll(){if(this.inView=this.isInView(),this.y=this.$el.getBoundingClientRect().y,this.inView){if(this.y!==this.oldY){const e=this.$refs.container.getBoundingClientRect().y,t=this.y+this.contentHeight-e;if(t<0){const e=this.contentHeight,n=this.$el.clientHeight-window.innerHeight-e,i=Math.abs(t)/n;this.cropWidth=(this.containerWidth-this.mediaWidth)*i;const r=this.mediaWidth-.5625*this.containerWidth;this.cropHeight=r*i}}this.oldY=this.y}this.rAF=window.requestAnimationFrame(this.mediaScroll)}}},iCe={class:"m-media-scroll-feature"},rCe={class:"m-media-scroll-feature__main"},aCe={ref:"media",class:"m-media-scroll-feature__media"},sCe=Wee(nCe,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("RichText"),l=Yr("GuiLink");return As(),Ps("div",iCe,[Bs("div",{ref:"container",class:Fe(["m-media-scroll-feature__wrapper","container",e.bkgdClass])},[Bs("div",{class:"m-media-scroll-feature__inner",style:Pe(a.innerStyles)},[Bs("div",rCe,[Bs("div",{ref:"content",class:"m-media-scroll-feature__content",style:Pe(a.contentStyles)},[n.title?(As(),Os(s,{key:0,level:n.headingLevel,class:"m-media-scroll-feature__title"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["level"])):Ws("",!0),n.body?(As(),Os(o,{key:1,content:n.body,class:"m-media-scroll-feature__body"},null,8,["content"])):Ws("",!0),n.cta?(As(),Os(l,{key:2,button:n.button,class:"m-media-scroll-feature__cta",href:n.cta.href,iconName:n.cta.iconName,iconSize:14,withIcon:n.cta.withIcon||null},{default:Ii((()=>[qs(ze(n.cta.text),1)])),_:1},8,["button","href","iconName","withIcon"])):Ws("",!0)],4)]),Bs("div",aCe,[t[0]||(t[0]=Bs("div",{class:"m-media-scroll-feature__media-sticky-spacer"},null,-1)),Bs("div",{ref:"sticky",class:"m-media-scroll-feature__media-sticky",style:Pe(a.mediaStickyStyles)},[Bs("div",{class:"m-media-scroll-feature__media-crop",style:Pe(a.mediaCropStyles)},[na(e.$slots,"media")],4)],4)],512)],4)],2)])}]]),oCe=Wee({name:"MenuCardList",components:{CardList:vde,Heading:jre},props:{cardName:{type:String,default:"MenuCard"},title:{type:String,required:!0},items:{type:Array,default:null},modifiers:{type:Array,default:H((()=>[]),"default")}},data:H((()=>({uid:br()})),"data"),computed:{classes(){const e=["m-menu-card-list"];
100return this.modifiers&&this.modifiers.forEach((t=>{e.push(`m-menu-card-list--${t}`)})),e}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("CardList");return As(),Ps("div",{class:Fe(a.classes)},[n.title?(As(),Os(s,{key:0,level:2,id:r.uid,class:"m-menu-card-list__title",ref:"title"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["id"])):Ws("",!0),Hs(o,Zs(F({},e.$props),{"aria-labelledby":r.uid,cardName:n.cardName}),null,16,["aria-labelledby","cardName"])],2)}]]),lCe={name:"OxfordCommaLinkList",components:{GuiLink:rre,RichText:cre},props:{baseLocaleKey:{type:String,default:"m-oxford-comma-list"},items:{type:Array,default:H((()=>[]),"default")}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),computed:{finalJoin(){return 2===this.items.length?this.translatePart("twoItemJoin"):this.translatePart("multipleItemFinalJoin")}},data(){return{join:this.translatePart("join")}},render(){return ko("span",{},(e=>e.reduce(((t,n,i)=>{const r=ko(rre,{class:["a-link","a-link--underline"],href:n.href},(()=>ko(cre,{class:["a-link__label"],content:n.text,contentType:"markdown",inline:!0}))),a=i+1===e.length?this.finalJoin:this.join;return t.length?[t,a,r].concat():[r]}),[]))(this.items))}},uCe={name:"PostInline",components:{Accordion:jpe,AccordionData:{items:[{title:"Save your ticket on your phone",content:"<p>Vestibulum id ligula porta felis euismod semper. Maecenas sed diam eget risus varius blandit sit amet non magna.</p><p>Donec ullamcorper nulla non metus auctor fringilla.</p>"},{title:"Download the free GettyGuide app",ariaLabel:"Getty Center: Download the free GettyGuide app",content:"<p>The GettyGuide mobile app includes maps, artwork highlights, and guided tours of both the Villa and Center. </p><p>Please bring your own earphones or headphones to use with GettyGuide.</p><p>Audio rental devices and group tours are temporarily unavailable on site.</p>"},{title:"Wheelchairs are available, but not strollers",content:"<p>Maecenas sed diam eget risus varius blandit sit amet non magna. Cras mattis consectetur purus sit amet fermentum. Curabitur blandit tempus porttitor. Maecenas faucibus mollis interdum.</p>"}]},Heading:jre,ImageResponsive:vae,ListOfLinks:zre,PostExcerpt:Tue,RichText:cre},mixins:[Qie],props:{excerpt:{type:String,default:null},headingLevel:{type:Number,default:3},modifiers:{type:Array,default:null},title:{type:String,default:null},subtitle:{type:String,default:null},src:{type:String,default:null},href:{type:String,default:null},items:{type:Array,default:null},ctaText:{type:String,default:null},image:{type:Object,default:null},links:{type:Object,default:H((()=>({})),"default")},linksLabel:{type:String,default:null},titleFirst:{type:Boolean,default:!1},paragraphTitle:{type:Boolean,default:!1}},data:H((()=>({uid:br()})),"data"),mounted(){},computed:{classes(){let e=["m-post-inline"];if(this.modifiers){const t=this.modifiers.map((t=>{e.push(`m-post-inline--${t}`)}));e=[...e,...t]}return this.titleFirst&&e.push("m-post-inline--title-first"),this.hasPostLink&&e.push("m-post-inline--post-link"),e},hasExcerpt(){return this.excerpt||this.doesSlotHaveContent("excerpt")},hasMedia(){return this.image||this.doesSlotHaveContent("media")},hasPostLink(){return this.href&&!this.links.items},imageSize(){return this.modifiers&&this.modifiers.includes("feature")||this.modifiers&&this.modifiers.includes("square")?"post_inline_1_1":"post_inline"},labelId(){return this.linksLabel?`label_${this.uid}`:this.title?`heading_${this.uid}`:null},showButton(){let e=!1;return this.modifiers&&this.modifiers.map((t=>{e="cta-button"===t})),e}}},cCe={class:"m-post-inline__main"},dCe={class:"m-post-inline__header"},pCe={key:1,class:"m-post-inline__cta"},hCe={key:0,class:"m-post-inline__aside"},fCe={key:0,class:"m-post-inline__media"},mCe=Wee(uCe,[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("PostExcerpt"),l=Yr("Heading"),u=Yr("ListOfLinks"),c=Yr("Accordion"),d=Yr("ImageResponsive");return As(),Ps("div",{class:Fe(a.classes)},[(As(),Os(Xr(a.hasPostLink?"a":"div"),{href:a.hasPostLink?n.href:null,ref:"inner",class:"m-post-inline__inner"},{default:Ii((()=>[Bs("div",cCe,[Bs("div",dCe,[n.title?(As(),Os(Xr(n.paragraphTitle?"p":"Heading"),{key:0,id:`heading_${r.uid}`,level:n.paragraphTitle?null:n.headingLevel,class:"m-post-inline__title",ref:"title"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["id","level"])):Ws("",!0),n.subtitle?(As(),Os(s,{key:1,content:n.subtitle,ref:"subtitle",class:"m-post-inline__subtitle"},null,8,["content"])):Ws("",!0)]),a.hasExcerpt?(As(),Os(o,{key:0,ref:"excerpt",content:n.excerpt,class:"m-post-inline__excerpt"},{default:Ii((()=>[na(e.$slots,"excerpt")])),_:3},8,["content"])):Ws("",!0),n.href&&n.ctaText?(As(),Ps("span",pCe,[Bs("span",{class:Fe(["m-post-inline__cta-label",{"m-post-inline__cta-label--button":a.showButton}])},ze(n.ctaText),3)])):Ws("",!0),n.linksLabel?(As(),Os(l,{key:2,id:`label_${r.uid}`,level:n.headingLevel+1,class:"visually-hidden"},{default:Ii((()=>[qs(ze(n.linksLabel),1)])),_:1},8,["id","level"])):Ws("",!0),n.links.items?(As(),Os(u,{key:3,labelId:a.labelId,links:n.links.items,modifiers:["space-before"],withIcons:n.links.withIcons},null,8,["labelId","links","withIcons"])):Ws("",!0),n.items?(As(),Os(c,{key:4,items:n.items,size:"small"},null,8,["items"])):Ws("",!0)]),a.hasMedia?(As(),Ps("div",hCe,[a.hasMedia?(As(),Ps("figure",fCe,[Bs("div",null,[n.image?(As(),Os(d,Zs({key:0},F({},n.image),{size:a.imageSize}),null,16,["size"])):na(e.$slots,"media",{key:1})])])):Ws("",!0)])):Ws("",!0)])),_:3},8,["href"]))],2)}]]),gCe={class:"m-project-details"},yCe={class:"m-project-details__inner"},vCe={key:0,class:"m-project-details__content"},bCe={key:1,class:"m-project-details__list"},_Ce=["labelledBy","role"],wCe=["role"],SCe={key:0,class:"m-project-details__label"},CCe={key:2,class:"m-project-details__text"},kCe={key:3,class:"m-project-details__text"},xCe=Wee({name:"ProjectDetails",mixins:[Ure],components:{DelimitedFieldValues:Dre,Heading:jre,ListOfLinks:zre,RichText:cre}
100,props:{baseLocaleKey:{type:String,default:"m-project-details"},listA11yLabel:{type:String,default:null},content:{type:String,default:null},listHeadingLevel:{type:Number,default:2},items:{type:Array,default:null}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data:H((()=>({headingId:`List${br()}Heading`})),"data"),computed:{localizedListA11yLabel(){return this.translatePart("listA11yLabel")||this.listA11yLabel},listRole(){return this.getListRole(this.items)},localizedValuesJoin(){return this.translatePart("valuesJoin")}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("Heading"),l=Yr("DelimitedFieldValues"),u=Yr("ListOfLinks");return As(),Ps("div",gCe,[Bs("div",yCe,[n.content?(As(),Ps("div",vCe,[Hs(s,{content:n.content},null,8,["content"])])):Ws("",!0),n.items?(As(),Ps("div",bCe,[a.localizedListA11yLabel?(As(),Os(o,{key:0,id:r.headingId,level:n.listHeadingLevel,class:"visually-hidden"},{default:Ii((()=>[qs(ze(a.localizedListA11yLabel),1)])),_:1},8,["id","level"])):Ws("",!0),a.localizedListA11yLabel?(As(),Ps("ul",{key:1,labelledBy:a.localizedListA11yLabel?"headingId":null,role:a.listRole},[(As(!0),Ps(Ss,null,ea(n.items,((e,t)=>(As(),Ps("li",{key:t,role:a.listRole},[e.label?(As(),Ps("span",SCe,ze(e.label),1)):Ws("",!0),e.delimitedFieldValues?(As(),Os(l,{key:1,delimiter:",",values:e.delimitedFieldValues},null,8,["values"])):e.text?(As(),Ps("span",CCe,ze(e.text),1)):e.values?(As(),Ps("span",kCe,[Hs(u,{links:e.values,modifiers:["link-underline"]},null,8,["links"])])):Ws("",!0)],8,wCe)))),128))],8,_Ce)):Ws("",!0)])):Ws("",!0)])])}]]),TCe={name:"Quotation",components:{Icon:Xie},props:{characterLimit:{type:Number,default:0,validator:H((e=>e>=0),"validator")},citation:{type:String,default:""},type:{type:String,default:"default"},text:{type:String,default:""}},computed:{truncatedText(){const e=this.text.trim();if(this.characterLimit&&this.characterLimit<e.length){const t=e.substr(0,this.characterLimit);let n=this.characterLimit;for(;e.charAt(n-1).match(/\b/);)n--;return t.substr(0,n).trimEnd()+"â¦"}return e},useMarks(){return["serif"].includes(this.type)}}},ECe={class:"a-quotation__text"},ACe={class:"a-quotation__body"},LCe={key:0,class:"a-quotation__mark-open"},ICe={key:1,class:"a-quotation__mark-close"},$Ce={key:0},DCe={class:"a-quotation__citation"},PCe=Wee(TCe,[["render",function(e,t,n,i,r,a){const s=Yr("Icon");return n.text?(As(),Ps("figure",{key:0,class:Fe(["a-quotation",null!==n.type?`a-quotation--${n.type}`:""])},[Bs("div",ECe,[Hs(s,{name:"quote"}),Bs("blockquote",ACe,[a.useMarks?(As(),Ps("span",LCe,"â")):Ws("",!0),qs(" "+ze(a.truncatedText)+" ",1),a.useMarks?(As(),Ps("span",ICe,"â")):Ws("",!0)]),n.citation?(As(),Ps("figcaption",$Ce,[Bs("cite",DCe,ze(n.citation),1)])):Ws("",!0)])],2)):Ws("",!0)}]]),OCe={name:"Quotation",components:{ImageResponsive:vae,Quote:PCe},props:B(F({},PCe.props),{backgroundColor:{type:String,default:"blue"},image:{type:Object,default:null},imageFirst:{type:Boolean,default:!1}}),computed:{backgroundClasses(){return this.backgroundColor?[`s-bg--${this.backgroundColor}`]:[]},isValidImage(){return this.image&&(this.image.src||this.image.id)},quoteType(){return this.isValidImage?["m-quotation--image",this.imageFirst?"m-quotation--image-first":""]:["m-quotation--center"]}}},MCe={class:"m-quotation__inner"},RCe={class:"m-quotation__text"},NCe={key:0,class:"m-quotation__image"},FCe=Wee(OCe,[["render",function(e,t,n,i,r,a){const s=Yr("Quote"),o=Yr("ImageResponsive");return As(),Ps("div",{class:Fe(["m-quotation",...a.backgroundClasses,...a.quoteType])},[Bs("div",MCe,[Bs("div",RCe,[Hs(s,{backgroundColor:n.backgroundColor,characterLimit:e.characterLimit,citation:e.citation,text:e.text,type:a.isValidImage?"default":"simple"},null,8,["backgroundColor","characterLimit","citation","text","type"])]),a.isValidImage?(As(),Ps("div",NCe,[Hs(o,Be(Us(n.image)),null,16)])):Ws("",!0)])],2)}]]),BCe={class:"m-search-chips"},HCe={class:"m-search-chips_wrapper"},jCe=Wee({name:"SearchChips",components:{Chip:ore,GuiButton:Jee},props:{baseLocaleKey:{type:String,default:"m-search-chips"},chipTerms:{type:Array,required:!1,default:H((function(){return[]}),"default")},queryTerms:{type:Array,required:!1,default:H((function(){return[]}),"default")},keywordFieldName:{type:String,default:"q"},keywordQualifier:{type:String,default:"Keyword"}},setup:H((e=>F({}
100,zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),emits:["updateSearch"],data(){return{keywordTermsArray:this.queryTerms,activeFacets:this.chipTerms}},watch:{chipTerms(){this.activeFacets=this.chipTerms},queryTerms(){this.keywordTermsArray=this.queryTerms}},methods:{deleteChip(e,t=!1){let n=e.qualifier,i=this.activeFacets;t?(i=this.keywordTermsArray,n=this.keywordFieldName,i=i.filter((t=>t!=e.term))):i=i.filter((t=>t.term!=e.term&&t.termValue!=e.termValue)),t?this.keywordTermsArray=i:this.activeFacets=i,this.$emit("updateSearch",{type:"deleteField",name:n,value:e.termValue})},deleteKeywordChip(e){this.deleteChip(e,!0)},doClearAll(){this.keywordTermsArray=[],this.activeFacets=[],this.$emit("updateSearch",{type:"clearAll",name:"clearAll",value:!0})},getChipKey(e){let t="";for(let n of Object.keys(e))t+=n+e[n];return t+=e,t}}},[["render",function(e,t,n,i,r,a){const s=Yr("Chip"),o=Yr("GuiButton");return As(),Ps("div",BCe,[Bs("div",HCe,[(As(!0),Ps(Ss,null,ea(r.activeFacets,(e=>(As(),Os(s,Zs({ref_for:!0},e,{key:a.getChipKey(e),class:"m-search-chips__facet",ref_for:!0,ref:"facetChip",onDeleteChip:a.deleteChip}),null,16,["onDeleteChip"])))),128)),(As(!0),Ps(Ss,null,ea(r.keywordTermsArray,(e=>(As(),Os(s,{key:a.getChipKey(e),class:"m-search-chips__keyword",ref_for:!0,ref:"keywordChip",qualifier:n.keywordQualifier,term:e,onDeleteChip:a.deleteKeywordChip},null,8,["qualifier","term","onDeleteChip"])))),128))]),Hs(o,{ref:"clearButton",name:"clear",class:"m-search-chips_clear-button",onClick:a.doClearAll},{default:Ii((()=>[qs(ze(e.translatePart("clear-all")),1)])),_:1},8,["onClick"])])}]]),UCe={name:"RadAdvancedSearchBox",components:{SearchChips:jCe,GuiButton:Jee,GuiInput:Mre,Icon:Xie},props:{addSuffix:{type:Function,required:!1,default:H((e=>e),"default")},autocompleteValues:{type:Array,default:H((()=>[]),"default")},autocompleteOptions:{type:Object,default:H((()=>({})),"default")},baseLocaleKey:{type:String,default:"m-advanced-search-box"},chipTerms:{type:Array,default:H((()=>[]),"default")},displayChips:{type:Boolean,default:!0},inputData:{type:String,default:"",required:!1},interceptAutocompleteEvent:{type:Boolean,default:!1},keywordFieldName:{type:String,default:"q"},keywordQualifier:{type:String,default:"Keyword"},queryTerms:{type:Array,default:H((()=>[]),"default")},setAutofocus:{type:Boolean,default:!1},transformQuery:{type:Function,default:H((e=>e),"default")},useKeywordChips:{type:Boolean,default:!0}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),emits:["autocompleteEntry","updateSearch","getAutocompleteValues"],data(){return{data:this.inputData||"",suggestions:"",keywordTermsArray:this.queryTerms,activeFacets:this.chipTerms,wrapperWidth:void 0}},watch:{chipTerms(e){this.activeFacets=e},queryTerms(){this.keywordTermsArray=this.queryTerms},inputData(){this.data=this.inputData}},methods:{doClearAll(){for(;this.keywordTermsArray.length>0;)this.keywordTermsArray.shift();for(;this.activeFacets.length>0;)this.activeFacets.shift();this.$refs.typeahead.reset(),this.$emit("updateSearch",{type:"clearAll",name:"clearAll",value:!0})},getChipKey(e){let t="";for(let n of Object.keys(e))t+=n+e[n];return t+=e,t},triggerAutocompleteSearchEvent(e){"freeText"!=e.type||""!=e.query?"autocompleteValue"==e.type?this.interceptAutocompleteEvent?this.$emit("autocompleteEntry",e.item):this.addSearchTermEvent(e.query,!0):this.addSearchTermEvent(e.query||e,!1):this.addSearchTermEvent("",!1)},addSearchTermEvent(e,t=!1){const n=this.transformQuery(e,t);let i="addField";if(0==this.useKeywordChips&&(i="replaceFieldValues"),Array.isArray(n)){let e=[];n.forEach((t=>{e.push({type:i,name:this.keywordFieldName,value:t})})),this.$emit("updateSearch",{type:"batchEvent",name:this.keywordFieldName,value:e})}else this.$emit("updateSearch",{type:i,name:this.keywordFieldName,value:n});this.useKeywordChips&&(this.data="")},updateSearch(e){this.$emit("updateSearch",e)}}},VCe={class:"m-advanced-search-box"},qCe={ref:"searchBar",class:"m-advanced-search-box__container"},zCe={class:"m-advanced-search-box__under-search"},WCe=Wee(UCe,[["render",function(e,t,n,i,r,a){const s=Yr("GuiInput"),o=Yr("Icon"),l=Yr("GuiButton"),u=Yr("SearchChips");return As(),Ps("div",VCe,[Bs("div",qCe,[Hs(s,{ref:"typeahead",modelValue:r.data,"onUpdate:modelValue":t[0]||(t[0]=e=>r.data=e),type:"autocomplete",autofocus:n.setAutofocus,options:n.autocompleteOptions,values:n.autocompleteValues,"add-suffix":n.addSuffix,onGetAutocompleteValues:t[1]||(t[1]=e=>this.$emit("getAutocompleteValues",e)),onAddSearchTerm:a.triggerAutocompleteSearchEvent},null,8,["modelValue","autofocus","options","values","add-suffix","onAddSearchTerm"]),Hs(l,{"aria-label":e.translatePart("aria-search-button-label"),ref:"searchButton",name:"searchButton",class:"m-advanced-search-box__search-button",onClick:t[2]||(t[2]=e=>a.triggerAutocompleteSearchEvent(r.data))},{default:Ii((()=>[Hs(o,{name:"search"})])),_:1},8,["aria-label"])],512),na(e.$slots,"default"),Bs("div",zCe,[n.displayChips?(As(),Os(u,{key:0,ref:"SearchChips","data-testid":"SearchChips","chip-terms":n.chipTerms,"query-terms":n.queryTerms,onUpdateSearch:a.updateSearch},null,8,["chip-terms","query-terms","onUpdateSearch"])):Ws("",!0)])])}]]),GCe={name:"RadSearchBox",components:{GuiButton:Jee,GuiInput:Mre,Icon:Xie}
100,props:{baseLocaleKey:{type:String,default:"m-rad-search-box"},ariaLabelName:{type:String,default:void 0},fieldName:{type:String,default:"q"},placeholderOverride:{type:String,default:void 0},searchTerm:{type:String,default:""},sendKeypressEvents:{type:Boolean,default:!1},withClearSearch:{type:Boolean,default:!0},withSearchButton:{type:Boolean,default:!0}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),emits:["updateSearch"],data(){return{inputText:this.searchTerm}},computed:{clearAriaLabel(){return this.translatePart("clear_aria_label")},clearButtonPhrase(){return this.translatePart("clear_button_phrase")},localizedPlaceholder(){return null!=this.placeholderOverride?this.translatePart(this.placeholderOverride):this.translatePart("placeholder")},searchInputAriaLabel(){return this.ariaLabelName?this.translatePart(`search_input_aria_label.${this.ariaLabelName}`):this.translate("search_input_aria_label.search")}},methods:{clearSearch(){this.inputText="",this.$emit("updateSearch",{type:"deleteField",name:this.fieldName,value:""})},triggerChange(){this.sendKeypressEvents&&this.$emit("updateSearch",{type:"keypressChange",name:this.fieldName,value:this.inputText})},addSearchTerm(){this.$emit("updateSearch",{type:"addField",name:this.fieldName,value:this.inputText})}}},KCe={class:"m-rad-search-box"},YCe={class:"m-rad-search-box__buttons"},ZCe={class:"m-rad-search-box__clear_btn_txt"},XCe=Wee(GCe,[["render",function(e,t,n,i,r,a){const s=Yr("GuiInput"),o=Yr("GuiButton"),l=Yr("Icon");return As(),Ps("div",KCe,[Hs(s,{type:"search",modelValue:r.inputText,"onUpdate:modelValue":t[0]||(t[0]=e=>r.inputText=e),class:"m-rad-search-box__input","aria-label":a.searchInputAriaLabel,placeholder:a.localizedPlaceholder,ref:"input","data-testid":"related-search-input",autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onKeydown:t[1]||(t[1]=Zl((e=>a.addSearchTerm()),["enter"])),onKeyup:t[2]||(t[2]=e=>a.triggerChange())},null,8,["modelValue","aria-label","placeholder"]),Bs("div",YCe,[n.withClearSearch&&""!=r.inputText?(As(),Os(o,{key:0,ref:"clear-button",alt:a.clearButtonPhrase,title:a.clearButtonPhrase,name:"clear",modifiers:["clear"],"data-testid":"related-search-clear-button","aria-label":a.clearAriaLabel,onClick:a.clearSearch},{default:Ii((()=>[Bs("span",ZCe,ze(a.clearButtonPhrase),1)])),_:1},8,["alt","title","aria-label","onClick"])):Ws("",!0),n.withSearchButton?(As(),Os(l,{key:1,ref:"submit-button",name:"search",height:"16",width:"16"},null,512)):Ws("",!0)])])}]]),QCe=["normal","short"],JCe=["simple-search"],eke={class:"m-rad-hero__image-container"},tke={class:"m-rad-hero__content-container"},nke={class:"m-rad-hero__search-container"},ike={key:0,class:"m-rad-hero__search-box"},rke={key:0,class:"m-rad-hero__text-container","data-testid":"m-rad-hero__container-text"},ake=Wee({name:"RadHero",components:{RadSearchBox:XCe,ImageResponsive:vae},emits:["updateSearch"],props:{image:{type:Object,required:!0},text:{type:String,required:!1},searchLocaleKey:{type:String,required:!1,default:void 0},modifier:{type:String,default:"normal",validator:H((e=>QCe.includes(e)),"validator")},variation:{type:String,default:null,validator:H((e=>JCe.includes(e)),"validator")}},computed:{classes(){let e=["m-rad-hero"];return e.push("m-rad-hero--"+this.modifier),e}}},[["render",function(e,t,n,i,r,a){const s=Yr("ImageResponsive"),o=Yr("RadSearchBox");return As(),Ps("div",{class:Fe(a.classes)},[Bs("div",eke,[Hs(s,Zs(this.image,{size:"hero_full_bleed",idAttr:"hero-media",classes:["m-rad-hero__image-container-image"],ariaHidden:!0}),null,16)]),Bs("div",tke,[Bs("div",nke,[na(e.$slots,"searchArea",{},(()=>["simple-search"==n.variation?(As(),Ps("div",ike,[Hs(o,{ref:"searchBox","with-clear-search":!0,"base-locale-key":n.searchLocaleKey,onUpdateSearch:t[0]||(t[0]=t=>e.$emit("updateSearch",t.target.value))},null,8,["base-locale-key"])])):Ws("",!0)]))]),n.text?(As(),Ps("div",rke,[na(e.$slots,"default",{},(()=>[qs(ze(n.text),1)]))])):Ws("",!0)])],2)}]]),ske={name:"RelatedSearchResultsCarousel",components:{ImageAndCaption:Wbe,ListingCarousel:f_e,GuiLink:rre,Module:Spe}
100,mixins:[Moe],props:{baseLocaleKey:{type:String,default:"m-related-search-results-carousel"},heading:{type:[String,void 0],default:void 0},headingLevel:{type:Number,required:!1,default:3},items:{type:Array,default:H((()=>[]),"default")},modifiers:{type:Array,default:H((()=>[]),"default")},searchForItemIds:{type:Boolean,default:!1},searchParams:{type:Object,default:H((()=>{}),"default")},showCount:{type:Boolean,default:!1},showCta:{type:Boolean,default:!1},subheading:{type:String,default:void 0},testIdSuffix:{type:[String,void 0],default:void 0},total:{type:[Number,void 0],default:void 0}},data(){return{baseClass:"m-related-search-results-carousel",ctaLinkLabel:this.translatePart("browse_all"),ctaLinkAriaLabel:this.translatePart("browse_all_cta_aria_label"),nextButtonAriaLabel:this.translatePart("next_button_aria_label"),previousButtonAriaLabel:this.translatePart("previous_button_aria_label"),uid:br()}},setup:H((e=>(Dve({componentRef:wr("carousel")}),F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey})))),"setup"),mounted(){this.setControlAriaLabels()},computed:{carouselItems(){let e=[...this.items];return this.items.length>6&&e.push({cta:!0}),e},cta(){let e={};return this.showCta&&this.items.length>6&&(e={text:this.ctaLinkLabel,to:this.to,ariaLabel:this.ctaLinkAriaLabel}),e},ctaLabel(){return this.translateCount("browse_all_cta",this.total,{total:this.localizeNumber(this.total)})},totalLabel(){var e;let t,n=null!=(e=this.total)?e:this.items.length;return this.showCount&&n&&(t=this.translateCount("total_label",this.total,{count:this.localizeNumber(n)})),t},testId(){let e="related-search-results-carousel";return this.testIdSuffix?`${e}--${this.testIdSuffix}`:e},to(){if(!this.searchParams)return;let e=F({},this.searchParams);return e.filters&&Object.assign(e,e.filters),e.query&&(e.q=[...e.query]),this.searchForItemIds&&(e.id=this.items.map((e=>e.id))),["omit_id","size","filters","query"].forEach((t=>{delete e[t]})),{name:"search",query:e}}},methods:{setControlAriaLabels(){const e=document.querySelector('[aria-label="Previous Slide"]');e&&(e.ariaLabel=this.previousButtonAriaLabel);const t=document.querySelector('[aria-label="Next Slide"]');t&&(t.ariaLabel=this.nextButtonAriaLabel)}}},oke=["data-testid"],lke={key:0,class:"m-related-search-carousel__total_count"},uke={key:1,class:"m-related-search-results-carousel__cta-button g-align-image-base__list-item--ignore"},cke=Wee(ske,[["render",function(e,t,n,i,r,a){var s;const o=Yr("ImageAndCaption"),l=Yr("GuiLink"),u=Yr("ListingCarousel"),c=Yr("Module");return null!=(s=n.items)&&s.length?(As(),Os(c,{key:0,modifiers:[this.baseClass,...n.modifiers],title:n.heading,id:`related-search-carousel-heading-${this.uid}`,cta:a.cta,intro:n.subheading,"heading-level":n.headingLevel},{default:Ii((()=>[Bs("div",{ref:"carousel",class:"related-search-carousel__wrapper","data-testid":a.testId},[n.showCount?(As(),Ps("div",lke,[Bs("p",null,ze(a.totalLabel),1)])):Ws("",!0),Hs(u,Zs(e.$props,{size:"xsmall",items:a.carouselItems,"list-aria-id":`related-search-carousel-heading-${this.uid}`}),{item:Ii((({item:t})=>[t.cta?(As(),Ps("div",uke,[Hs(l,{class:"m-related-search-results-carousel__cta-button-trigger",to:a.to},{default:Ii((()=>[qs(ze(a.ctaLabel),1)])),_:1},8,["to"])])):na(e.$slots,"image",{key:0,item:t},(()=>[Hs(o,Zs(t,{"heading-level":e.isSmallMinus?n.headingLevel+1:n.headingLevel+2}),null,16,["heading-level"])]))])),_:3},16,["items","list-aria-id"])],8,oke)])),_:3},8,["modifiers","title","id","cta","intro","heading-level"])):Ws("",!0)}]]),dke={name:"CtaButton",components:{GuiLink:rre,LoadMore:$ae},props:{label:{type:String,required:!0,default:void 0},to:{type:[Object,String],default:void 0},useRoute:{type:Boolean,default:!1}},emits:["click"]},pke={class:"a-cta-button"},hke={name:"RelatedSearchResultsGrid",components:{CtaButton:Wee(dke,[["render",function(e,t,n,i,r,a){const s=Yr("GuiLink"),o=Yr("LoadMore");return As(),Ps("div",pke,[n.useRoute?(As(),Os(s,{key:0,"aria-label":n.label,class:Fe(["a-cta-button__trigger","a-cta-button--right-justified"]),"with-icon":"after","icon-name":"ArrowRight","icon-size":"14",to:n.to},{default:Ii((()=>[qs(ze(n.label),1)])),_:1},8,["aria-label","to"])):(As(),Os(o,{key:1,label:n.label,onClick:t[0]||(t[0]=t=>e.$emit("click"))},null,8,["label"]))])}]]),GridOfItems:Fve,Heading:jre,ImageAndCaption:Wbe},props:{ariaHeading:{type:String,required:!0,default:void 0},ctaSearchLabel:{type:String,required:!1},cypressSuffix:{type:String,default:H((()=>{}),"default")},heading:{type:String,required:!0},headingLevel:{type:Number,default:3},imageUnavailableVariant:{type:String,default:"image"},items:{type:Array,default:H((()=>[]),"default")},loadMoreLocaleKey:{type:String,default:"m-related-search-results-grid.load_more_with_total"},maxItemsPerRow:{type:Number,default:6},maxItemsToDisplay:{type:Number,default:12},searchParams:{type:Object,default:H((()=>{}),"default")},showCount:{type:Boolean,default:!1},showTopBorder:{type:Boolean,default:!1},subHeading:{type:String},total:{type:Number,required:!0,default:0},totalLabelKey:{type:String,required:!1},useRoute:{type:Boolean,default:!0}},setup:H((e=>F({}
100,zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data:H((()=>({itemsToDisplay:[]})),"data"),computed:{ctaLabel(){if(this.useRoute)return null!=this.ctaSearchLabel?this.translatePart("m-related-search-results-grid.browse_all_cta",{searchLabel:this.ctaSearchLabel}):this.translatePart("m-related-search-results-grid.browse_all");let e=this.total-this.maxItemsToDisplay;return this.translateCount(this.loadMoreLocaleKey,e,{total:this.localizeNumber(e)})},cypressTag(){let e="related-search-results-grid";return null==this.cypressSuffix?e:`${e}-${this.cypressSuffix}`},hasMore(){return this.total>this.itemsToDisplay.length},to(){if(!this.searchParams)return;let e=F({},this.searchParams);return e.filters&&(Object.assign(e,e.filters),delete e.filters),e.query&&(e.q=[...e.query],delete e.query),delete e.size,{name:"search",query:e}}},mounted(){this.itemsToDisplay=this.items.slice(0,this.maxItemsToDisplay)},methods:{triggerLoadMore(){this.itemsToDisplay=this.items}}},fke=["data-testid"],mke={key:0,class:"m-related-search-results-grid__heading-section"},gke={key:0,class:"m-related-search-results-grid__subheading"},yke={key:1,class:"m-related-search-results-grid__cta-button"},vke=Wee(hke,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("ImageAndCaption"),l=Yr("GridOfItems"),u=Yr("CtaButton");return r.itemsToDisplay.length>0?(As(),Ps("div",{key:0,class:"m-related-search-results-grid","data-testid":a.cypressTag},[Bs("div",null,[n.heading?(As(),Ps("div",mke,[Hs(s,{ref:"heading",level:n.headingLevel,class:"m-related-search-results-grid__heading","data-testid":"related-search-results-grid-heading"},{default:Ii((()=>[qs(ze(n.heading),1)])),_:1},8,["level"]),n.subHeading?(As(),Ps("div",gke,ze(n.subHeading),1)):Ws("",!0)])):Ws("",!0),Hs(l,Zs(e.$props,{items:r.itemsToDisplay,heading:n.ariaHeading,"heading-level":n.headingLevel+1,"max-items-per-row":n.maxItemsPerRow,"show-count":n.showCount,"show-
100heading":!1,"show-top-border":n.showTopBorder,"total-label-key":n.totalLabelKey}),{item:Ii((({item:t})=>[na(e.$slots,"image",{item:t},(()=>[Hs(o,Zs(t,{"image-unavailable-variant":n.imageUnavailableVariant,"heading-level":n.headingLevel+2}),null,16,["image-unavailable-variant","heading-level"])]))])),_:3},16,["items","heading","heading-level","max-items-per-row","show-count","show-top-border","total-label-key"]),a.hasMore?(As(),Ps("div",yke,[Hs(u,{ref:"ctaButton",label:a.ctaLabel,to:a.to,"use-route":n.useRoute,onClick:a.triggerLoadMore},null,8,["label","to","use-route","onClick"])])):Ws("",!0)])],8,fke)):Ws("",!0)}]]),bke={name:"SearchResultCard",mixins:[Moe],components:{DelimitedFieldValues:Dre,GuiLink:rre,Heading:jre,IconPlacemat:nae,ImageResponsive:vae,RichText:cre,Icon:Xie},props:{description:{type:String,default:""},downloadUrl:{type:String,default:null},downloadText:{type:String,default:null},image:{type:Object,default:null},isResource:{type:Boolean,default:!1},resourceType:{type:String,default:null},showImages:{type:Boolean,default:!1},sourceApp:{type:String,default:null},title:{type:String,required:!0},url:{type:String,required:!0}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data:H((()=>({localImage:null})),"data"),mounted(){window.addEventListener("resize",(()=>{this.setImagePlacemat()})),this.setImagePlacemat()},unmount(){window.removeEventListener("resize",(()=>{this.setImagePlacemat()}))},computed:{cardClasses(){const e=["m-search-result-card"];return this.showImages&&(this.localImage||this.isResource)&&e.push("m-search-result-card--has-image"),e},iconPlacematType(){let e=this.resourceType?this.resourceType.toLowerCase():null;return"audio"==e?"volume":"pdf"==e?"PDF":"video"==e?"mediaVideo":void 0},imageSize(){return this.localImage.placemat&&this.isMediumPlus()?"post_small":"post_small_variable_height"},linkAttributes(){return this.isResource&&this.downloadUrl?{href:this.downloadUrl,download:!0}:{href:this.url}},translatedDownloadText(){return this.downloadText?this.translate(this.downloadText):null},values(){const e=[];return this.resourceType&&e.push(this.resourceType),this.sourceApp&&e.push(this.sourceApp),e}},methods:{setImagePlacemat(){this.localImage=this.image?B(F({},this.image),{placemat:this.isMediumPlus()}):null}}},_ke={class:"m-search-result-card__head"},wke={class:"m-search-result-card__heading"},Ske={key:0,class:"m-search-result-card__resource-type-source-app-wrapper"},Cke={class:"m-search-result-card__body"},kke={key:0,class:"m-search-result-card__image"},xke={key:1,class:"m-search-result-card__icon"},Tke=Wee(bke,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("Icon"),l=Yr("DelimitedFieldValues"),u=Yr("RichText"),c=Yr("ImageResponsive"),d=Yr("IconPlacemat"),p=Yr("GuiLink");return As(),Os(p,Zs(a.linkAttributes,{class:a.cardClasses}),{default:Ii((()=>[Bs("div",_ke,[Bs("div",wke,[Hs(s,{level:3,class:"m-search-result-card__title"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1}),n.isResource&&n.downloadUrl?(As(),Os(o,{key:0,name:"download500",size:"text"})):Ws("",!0)]),a.values&&a.values.length?(As(),Ps("div",Ske,[Hs(l,{values:a.values,delimiter:", "},null,8,["values"])])):Ws("",!0)]),Bs("div",Cke,[Hs(u,{content:n.description,class:"m-search-result-card__description"},null,8,["content"])]),n.showImages&&r.localImage?(As(),Ps("div",kke,[Hs(c,Zs(r.localImage,{size:a.imageSize}),null,16,["size"])])):n.isResource&&!r.localImage?(As(),Ps("div",xke,[Hs(d,{icon:a.iconPlacematType},null,8,["icon"])])):Ws("",!0)])),_:1},16,["class"])}]]),Eke={class:"o-search-tools"},Ake={key:1,class:"o-search-tools__items"},Lke=Wee({name:"SearchTools",components:{Card:ace,CardList:vde,Heading:jre,RichText:cre},mixins:[Moe],props:{body:{type:String,default:null},headingLevel:{type:Number,default:2},items:{type:Array,default:H((()=>[]),"default")},title:{type:String,default:null}},data:H((()=>({isMobile:!1})),"data"),computed:{itemsWithHeadingLevel(){return this.items.map((e=>B(F({},e),{headingLevel:this.headingLevel+1})))}},methods:{handleResize(){this.isMobile=this.isSmallMinus()}},mounted(){this.debouncedResize=ete(this.handleResize),window.addEventListener("resize",this.debouncedResize),this.handleResize()},beforeUnmount(){window.removeEventListener("resize",this.debouncedResize)}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("RichText"),l=Yr("CardList"),u=Yr("Card");return As(),Ps("div",Eke,[Hs(s,{level:n.headingLevel,class:"o-search-tools__title"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["level"]),n.body?(As(),Os(o,{key:0,content:n.body,class:"o-search-tools__body"},null,8,["content"])):Ws("",!0),r.isMobile?(As(),Ps("div",Ake,[Hs(l,{cardName:"LinkCard",items:a.itemsWithHeadingLevel,modifiers:["small"]},null,8,["items"])])):(As(!0),Ps(Ss,{key:2},ea(a.itemsWithHeadingLevel,((e,t)=>
100(As(),Os(u,{cardName:"LinkCard",class:"o-search-tools__item",item:e,key:"search-tool-"+t},null,8,["item"])))),128))])}]]),Ike={key:0,class:"m-search-top-card__body"},$ke={class:"m-search-top-card__subtitle"},Dke=Wee({name:"SearchTopCard",components:{Heading:jre,ImageResponsive:vae,ListOfLinksWithHeading:Wre},mixins:[YSe,Moe],props:{headingLevel:{type:Number,default:2},id:{type:String,default:null},image:{type:Object,default:null},linkSets:{type:Array,default:H((()=>[]),"default")},subtitle:{type:String,default:null},title:{type:String,default:null}},data:H((()=>({imageSize:"post_small"})),"data"),computed:{backgroundClass(){return this.bkgd?`s-bg--${this.bkgd}`:null},containerClasses(){const e=["gui-container","m-search-top-card__container"];return this.image&&e.push("m-search-top-card__container--has-image"),e}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("ListOfLinksWithHeading"),l=Yr("ImageResponsive");return As(),Ps("section",{class:Fe(["m-search-top-card",a.backgroundClass])},[Bs("div",{class:Fe(a.containerClasses)},[Hs(s,{level:n.headingLevel,class:"m-search-top-card__title"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["level"]),n.subtitle?(As(),Ps("div",Ike,[Bs("p",$ke,ze(n.subtitle),1),(As(!0),Ps(Ss,null,ea(n.linkSets,((e,t)=>(As(),Os(o,{key:t,heading:e.heading,headingLevel:n.headingLevel+1,showHeading:!!e.heading,links:e.links,class:"m-search-top-card__links"},null,8,["heading","headingLevel","showHeading","links"])))),128))])):Ws("",!0),n.image?(As(),Os(l,Zs({key:1},n.image,{size:r.imageSize,class:"m-search-top-card__image"}),null,16,["size"])):Ws("",!0)],2)],2)}]]),Pke={class:"m-status-indicator"},Oke=Wee({name:"StatusIndicator",components:{RichText:cre},props:{status:{type:String,default:"pending"},statusMessages:{type:Object,default:H((()=>({pending:"Status Pending",success:"Success",failure:"failure"})),"default")}},computed:{currentStatus(){return this.statusMessages[this.status]||this.status}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText");return As(),Ps("div",Pke,[Hs(s,{content:a.currentStatus,inline:""},null,8,["content"])])}]]),Mke={name:"SuggestedSearches",components:{ImageAndCaption:Wbe,RichText:cre},inject:{analyticsListener:{default:null,type:Function}},provide(){return{analyticsListener:H(((e,t,n)=>{!0===this.scrollToTop&&rte({top:0}),this.analyticsListener&&this.analyticsListener instanceof Function&&this.analyticsListener(e,t,to)}),"analyticsListener")}},props:{baseLocaleKey:{type:String,required:!1,default:"m-suggested-searches"},hasResults:{type:Boolean,required:!1,default:!1},queryTerms:{type:Array,required:!1,default:H((()=>[]),"default")},suggestedSearchesDataset:{type:Array,required:!1,default:[]},scrollToTop:{type:Boolean,required:!1,default:!0}},setup:H((e=>F({},zee({baseLocaleKey:e.baseLocaleKey}))),"setup"),data(){return{blankSearchHeading:this.translatePart("blank_search_heading"),subHeading:this.translatePart("subheading"),dataset:[]}},computed:{heading(){return 0==this.hasResults?this.noResultsHeading:this.blankSearchHeading},noResultsHeading(){return 0==this.queryTerms.length?this.translatePart("no_results_heading_no_query_terms"):this.translatePart("no_results_heading",{search:this.queryTerms.join(", ")})}},beforeMount(){this.dataset=this.suggestedSearchesDataset.map((e=>(e.heading=this.translatePart(e.id),e)))}},Rke={class:"m-suggested-searches","data-testid":"m-suggested-searches"},Nke={class:"m-suggested-searches__full-bleed-wrapper"},Fke={class:"m-suggested-searches__container"},Bke={ref:"subheading",class:"m-suggested-searches__subheading"},Hke={class:"m-suggested-searches__grid"},jke=Wee(Mke,[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("ImageAndCaption");return As(),Ps("div",Rke,[na(e.$slots,"default",{heading:a.heading,subHeading:r.subHeading},(()=>[Bs("div",Nke,[Bs("div",Fke,[Bs("div",{ref:"heading",class:"m-suggested-searches__heading"},ze(a.heading),513),Bs("div",Bke,[Hs(s,{content:r.subHeading,inline:!0},null,8,["content"])],512)]),Bs("div",Hke,[(As(!0),Ps(Ss,null,ea(r.dataset,(e=>(As(),Os(o,Zs({ref_for:!0},e,{key:e.id,"data-testid":"suggested-searches-item","heading-level":3}),null,16)))),128))])])]))])}
100]]),Uke={name:"Tab",props:{title:{type:String,required:!0},active:{type:Boolean,default:!1}}},Vke={class:"m-tabs"},qke={class:"m-tabs__header"},zke={class:"m-tabs__triggers"},Wke=["onClick"],Gke={class:"m-tabs__content"},Kke=Wee({name:"Tabs",components:{Tab:Wee(Uke,[["render",function(e,t,n,i,r,a){return n.active?(As(),Ps("div",{key:0,ref:"tab",class:Fe(["m-tabs__tab",{"m-tabs__tab--active":n.active}])},[na(e.$slots,"default",{active:n.active,title:n.title})],2)):Ws("",!0)}]]),GuiButton:Jee,GuiLink:rre,CardList:vde},props:{tabs:{type:Array,default:null},cardName:{type:String,default:null},modifiers:{type:Array,default:H((()=>[]),"default")},cta:{type:Object,default:null}},emits:["click"],data:H((()=>({selectedTabIndex:null})),"data"),mounted(){if(this.tabs&&this.tabs.length){const e=this.tabs.filter((e=>e.isActive));e.length<=0?this.selectedTabIndex=0:this.selectedTabIndex=e[0].id-1}},methods:{selectTab(e){this.$emit("click",e),this.selectedTabIndex=e}}},[["render",function(e,t,n,i,r,a){const s=Yr("GuiButton"),o=Yr("GuiLink"),l=Yr("CardList"),u=Yr("Tab");return As(),Ps("div",Vke,[Bs("header",qke,[Bs("ul",zke,[(As(!0),Ps(Ss,null,ea(n.tabs,((t,n)=>(As(),Ps("li",{key:n,class:Fe(["m-tabs__trigger",{"m-tabs__trigger--active":r.selectedTabIndex===n}]),onClick:H((e=>a.selectTab(n)),"onClick")},[na(e.$slots,"header",{tab:t},(()=>[Hs(s,{name:t.title,value:t.title},null,8,["name","value"])]))],10,Wke)))),128))]),n.cta?(As(),Os(o,Zs({key:0},n.cta,{class:"m-tabs__cta",ref:"cta"}),{default:Ii((()=>[qs(ze(n.cta.text),1)])),_:1},16)):Ws("",!0)]),Bs("main",Gke,[(As(!0),Ps(Ss,null,ea(n.tabs,((t,i)=>(As(),Os(u,{ref_for:!0,ref:"tab",key:i,title:t.title,active:r.selectedTabIndex===i},{default:Ii((()=>[n.cardName?(As(),Os(l,{key:0,items:t.items,cardName:n.cardName,modifiers:n.modifiers},null,8,["items","cardName","modifiers"])):na(e.$slots,"default",{key:1,tab:t,index:i,active:r.selectedTabIndex===i},(()=>[qs(ze(t.content),1)]))])),_:2},1032,["title","active"])))),128))])])}]]),Yke={class:"m-technical-data"},Zke={class:"m-technical-data__headings"},Xke={class:"m-technical-data__heading"},Qke={class:"m-technical-data__subheading"},Jke={class:"m-technical-data__metadata-fields"},exe={key:0,class:"m-technical-data__metadata-field"},txe={key:0},nxe={key:3,class:"m-technical-data__metadata-text"},ixe={key:1},rxe={key:0},axe={class:"m-technical-data__iiif"},sxe={class:"m-technical-data__iiif-links"},oxe={class:"m-technical-data__iiif-manifest-link"},lxe={key:1},uxe={class:"m-technical-data__metadata-text"},cxe={key:"_permalink",class:"m-technical-data__metadata-field"},dxe={class:"m-technical-data__metadata-text"},pxe={key:1,class:"m-technical-data__last-updated"},hxe={class:"m-technical-data__last-updated__label"},fxe={class:"m-technical-data__last-updated__value"},mxe=Wee({name:"TechnicalData",components:{CopyButton:wre,DelimitedFieldValues:Dre,GuiLink:rre,Icon:Xie,RecordMetadataField:Hle,RichText:cre},props:{baseLocaleKey:{type:String,default:"m-technical-data"},metadataFields:{type:Object,default:H((()=>{}),"default")}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data(){return{ariaIiif:this.translatePart("aria_iiif"),copiedFieldKey:void 0,headingText:this.translatePart("technical_data_heading"),iiifLink:this.translatePart("manifest_url_label"),iiifText:this.translatePart("iiif_text"),miradorLink:this.translatePart("mirador_link"),permalinkUrl:void 0,subheadingText:this.translatePart("technical_data_subheading")}},mounted(){const{origin:e,pathname:t}=window.location;this.permalinkUrl=new URL(t,e).toString()},methods:{copiedText(e){this.copiedFieldKey=e,setTimeout((()=>{this.copiedFieldKey=void 0}),1500)},isCopied(e){return this.copiedFieldKey==e},getFieldLabel(e){return this.translatePart(e+"_label")},getFieldLongText(e){return this.translatePart(e+"_text")},getLinkText(e,t){return"indexed_id"==e&&null!=t?t.split("/").slice(-2).join("/"):this.translatePart(e+"_link")}}},[["render",function(e,t,n,i,r,a){const s=Yr("GuiLink"),o=Yr("CopyButton"),l=Yr("DelimitedFieldValues"),u=Yr("RichText"),c=Yr("RecordMetadataField"),d=Yr("Icon");return As(),Ps("div",Yke,[Bs("div",Zke,[Bs("h2",Xke,ze(r.headingText),1),Bs("div",Qke,ze(r.subheadingText),1)]),Bs("div",Jke,[(As(!0),Ps(Ss,null,ea(n.metadataFields,((e,t)=>(As(),Ps(Ss,{key:`_${t}`},[n.metadataFields[t]&&"last_updated"!=t?(As(),Ps("div",exe,["other_ids"==t?(As(),Ps("div",txe,[(As(!0),Ps(Ss,null,ea(e,((e,t)=>
100(As(),Ps("div",{key:t,class:"m-technical-data__metadata-field"},[Hs(c,{"base-locale-key":n.baseLocaleKey,label:e.label,"label-suffix":":","use-header":!1,"use-list":!1,values:e.values},{default:Ii((()=>[null!=e.href?(As(),Ps("div",{key:0,class:Fe(["m-technical-data__value",{"m-technical-data__value--copied":a.isCopied(t)}])},[Hs(s,{rel:"nofollow",href:e.href,"icon-name":"Outbound14","with-icon":"after",target:"_blank"},{default:Ii((()=>[qs(ze(e.name),1)])),_:2},1032,["href"])],2)):e.name?(As(),Ps("div",{key:1,class:Fe(["m-technical-data__value",{"m-technical-data__value--copied":a.isCopied(t)}])},[qs(ze(e.name)+" ",1),Hs(o,{text:e.name,"field-name":e.label,"text-key":t,iconSize:20,onCopiedText:a.copiedText},null,8,["text","field-name","text-key","onCopiedText"])],2)):Array.isArray(e.values)?(As(),Os(l,Zs({key:2,ref_for:!0},e,{delimiter:"block"}),null,16)):Ws("",!0),e.text?(As(),Ps("div",nxe,[Hs(u,{content:e.text},null,8,["content"])])):Ws("",!0)])),_:2},1032,["base-locale-key","label","values"])])))),128))])):(As(),Ps("div",ixe,[Hs(c,{"base-locale-key":n.baseLocaleKey,label:a.getFieldLabel(t),"label-suffix":":","value-delimiter":"block"},{default:Ii((()=>["iiif"==t&&e&&e.manifests?(As(),Ps("div",rxe,[Bs("div",axe,[Bs("div",sxe,[(As(!0),Ps(Ss,null,ea(e.manifests,(e=>(As(),Ps("div",oxe,[Hs(s,{"aria-label":r.ariaIiif,href:e.url,class:"m-technical-data__image",rel:"nofollow"},{default:Ii((()=>[Hs(d,{name:"IIIF",size:16.67})])),_:2},1032,["aria-label","href"]),Bs("div",{class:Fe(["m-technical-data__value",{"m-technical-data__value--copied":a.isCopied(t)}])},[Hs(s,{href:e.url,"icon-name":"Outbound14","with-icon":"after",rel:"nofollow",target:"_blank"},{default:Ii((()=>[qs(ze(e.title?e.title:r.iiifLink),1)])),_:2},1032,["href"])],2),Hs(o,{text:e.url,"field-name":e.title?e.title:r.iiifLink,"text-key":t,iconSize:20,onCopiedText:a.copiedText},null,8,["text","field-name","text-key","onCopiedText"])])))),256))]),Bs("div",null,[Hs(s,{href:e.viewer_url,"icon-name":"Outbound14","with-icon":"after",rel:"nofollow",target:"_blank"},{default:Ii((()=>[qs(ze(r.miradorLink),1)])),_:2},1032,["href"])])])])):e?(As(),Ps("div",lxe,[Bs("div",{class:Fe(["m-technical-data__value",{"m-technical-data__value--copied":a.isCopied(t)}])},[Hs(s,{href:e,"icon-name":"Outbound14","with-icon":"after",rel:"nofollow",target:"_blank"},{default:Ii((()=>[qs(ze(a.getLinkText(t,e)),1)])),_:2},1032,["href"]),"indexed_id"==t?(As(),Os(o,{key:0,"field-name":a.getFieldLabel(t),text:e,"text-key":t,iconSize:20,onCopiedText:a.copiedText},null,8,["field-name","text","text-key","onCopiedText"])):Ws("",!0)],2)])):Ws("",!0),Bs("div",uxe,[Hs(u,{content:a.getFieldLongText(t)},null,8,["content"])])])),_:2},1032,["base-locale-key","label"])]))])):Ws("",!0)],64)))),128)),r.permalinkUrl?(As(),Ps("div",cxe,[Hs(c,{"base-locale-key":n.baseLocaleKey,label:"permalink","label-suffix":":"},{default:Ii((()=>[Bs("div",{class:Fe(["m-technical-data__value",{"m-technical-data__value--copied":a.isCopied("permalink")}]),"data-chromatic":"ignore"},[qs(ze(r.permalinkUrl)+" ",1),Hs(o,{text:r.permalinkUrl,"field-name":e.translate(`${n.baseLocaleKey}.permalink`),"text-key":"permalink",iconSize:20,onCopiedText:a.copiedText},null,8,["text","field-name","onCopiedText"])],2),Bs("div",dxe,[Hs(u,{content:a.getFieldLongText("permalink")},null,8,["content"])])])),_:1},8,["base-locale-key"])])):Ws("",!0),n.metadataFields&&n.metadataFields.last_updated?(As(),Ps("div",pxe,[Bs("span",hxe,ze(e.translatePart("last_updated")),1),Bs("span",fxe,ze(n.metadataFields.last_updated),1),Hs(u,{content:a.getFieldLongText("last_updated"),class:"m-technical-data__last-updated__text"},null,8,["content"])])):Ws("",!0)])])}]]),gxe={class:"o-audio-feature"},yxe={class:"gui-container"},vxe={class:"o-audio-feature__inner"},bxe={class:"o-audio-feature-aside"},_xe={class:"o-audio-feature-main"},wxe={class:"o-audio-feature__content"},Sxe=Wee({name:"AudioFeature",components:{Accordion:jpe,AccordionItem:Voe,AudioPlayer:Ihe,Heading:jre,ImageResponsive:vae,RichText:cre},props:{audio:{type:Object,default:null},headingLevel:{type:Number,default:3},media:{type:Object,default:null},title:{type:String,default:null},transcript:{type:String,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("ImageResponsive"),l=Yr("AudioPlayer"),u=Yr("RichText"),c=Yr("AccordionItem"),d=Yr("Accordion");return As(),Ps("div",gxe,[Bs("div",yxe,[n.title?(As(),Os(s,{key:0,level:n.headingLevel,class:"o-audio-feature__title"},{default:Ii((()=>[Bs("span",null,ze(n.title),1)])),_:1},8,["level"])):Ws("",!0),Bs("div",vxe,[Bs("div",bxe,[Hs(o,Zs(F({},n.media),{size:"project_large_variable_height"}),null,16)]),Bs("div",_xe,[n.audio?(As(),Os(l,Be(Zs({key:0},F({},n.audio))),null,16)):Ws("",!0),n.transcript?(As(),Os(d,{key:1,size:"small"},{default:Ii((()=>[Hs(c,{title:"Transcript"},{default:Ii((()=>[Hs(u,{content:n.transcript},null,8,["content"])])),_:1})])),_:1})):Ws("",!0),Bs("div",wxe,[na(e.$slots,"content")])])])])])}]]),Cxe={name:"CardListRows",components:{Card:ace,CardList:vde,GuiLink:rre,Heading:jre},props:{baseHeadingLevel:{type:Number,default:3},rows:{type:Array,default:null}},setup(e){const t=br(),n=Co((()=>e.baseHeadingLevel)),i=Co((()=>
100{if(e.rows)return e.rows.map((t=>{t.items&&t.items.map((t=>(t.headingLevel=e.baseHeadingLevel+1,t)));const n=[],i="o-card-list-rows__row";return t.modifiers&&t.modifiers.forEach((e=>{n.push(`${i}--${e}`)})),t.classes=[i,...n],t.useHeading=!Object.prototype.hasOwnProperty.call(t,"useHeading")||t.useHeading,t}))}));return{uid:t,getRowHeadingId:H((e=>`cardListRows${t}Row${e}Heading`),"getRowHeadingId"),rowHeadingLevel:n,processedRows:i}}},kxe={key:0,class:"o-card-list-rows"},xxe={class:"o-card-list-rows__container"},Txe={class:"o-card-list-rows__aside"},Exe={class:"o-card-list-rows__main"},Axe=Wee(Cxe,[["render",function(e,t,n,i,r,a){const s=Yr("Card"),o=Yr("CardList");return n.rows?(As(),Ps("section",kxe,[Bs("div",xxe,[(As(!0),Ps(Ss,null,ea(i.processedRows,((e,t)=>(As(),Ps("div",{class:Fe(e.classes),key:t},[Bs("div",Txe,[(As(),Os(Xr(e.useHeading?"Heading":"p"),{id:i.getRowHeadingId(t),level:i.rowHeadingLevel,class:"o-card-list-rows__row-title"},{default:Ii((()=>[qs(ze(e.title),1)])),_:2},1032,["id","level"]))]),Bs("div",Exe,[e.headerCard?(As(),Os(s,Zs({key:0,ref_for:!0},e.headerCard,{class:"o-card-list-rows__header-card"}),null,16)):Ws("",!0),Hs(o,Zs({ref_for:!0},e,{"aria-labelledby":i.getRowHeadingId(t),class:"o-card-list-rows__row-items"}),null,16,["aria-labelledby"]),e.footerCard?(As(),Os(s,Zs({key:1,ref_for:!0},e.footerCard,{class:"o-card-list-rows__footer-card"}),null,16)):Ws("",!0)])],2)))),128))])])):Ws("",!0)}]]),Lxe={name:"ColumnListing",components:{Heading:jre,Post:Yue},props:{label:{type:String,default:null},baseHeadingLevel:{type:Number,default:2},listLabelId:{type:String,default:null,validator(e){return!!this.label||!!e}},items:{type:Array,default:H((()=>[]),"default")},preID:{type:String,default:null},postID:{type:String,default:null}},data:H((()=>({itemsSplitIndex:0,idPrefix:null,headingId:null,ids:[]})),"data"),mounted(){const e=br();this.idPrefix=`columnListing${e}Item`,this.headingId=`columnListing${e}Heading`},computed:{column1Items(){return this.duplicateItems.slice(0,1)},column2Items(){let e=this.items.length-1;return e<5?this.itemsSplitIndex=2:e>=5&&e<=9?this.itemsSplitIndex=3:e>9&&(this.itemsSplitIndex=4),this.duplicateItems.slice(1,this.itemsSplitIndex)},column3Items(){return this.duplicateItems.slice(this.itemsSplitIndex).map((e=>(e.image&&delete e.image,e.excerpt&&delete e.excerpt,e)))},duplicateItems(){return this.setListItemIds(JSON.parse(JSON.stringify(this.items)))},itemHeadingLevel(){return this.baseHeadingLevel+1},listItemIds(){return this.ids.join(" ")},listLabelledById(){return this.listLabelId||this.headingId}},methods:{setListItemIds(e){let t=e.map(((e,t)=>{const n=`${this.idPrefix}${t}`;return e.listItemId=n,this.ids.push(n),e}));return this.preID&&this.ids.unshift(this.preID),this.postID&&this.ids.push(this.postID),t}}},Ixe={key:0,class:"o-column-listing"},$xe={class:"gui-container o-column-listing__inner"},Dxe=["aria-owns","aria-labelledby"],Pxe={class:"o-column-listing__col o-column-listing__col--wide",role:"presentation"},Oxe=["id"],Mxe={class:"o-column-listing__col",role:"presentation"},Rxe=["id"],Nxe={class:"o-column-listing__col o-column-listing__col--split",role:"presentation"},Fxe={class:"o-column-listing__col-split-inner",role:"none"},Bxe=["id"],Hxe=Wee(Lxe,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("Post");return n.items?(As(),Ps("section",Ixe,[n.label?(As(),Os(s,{key:0,id:r.headingId,level:n.baseHeadingLevel,class:"visually-hidden"},{default:Ii((()=>[qs(ze(n.label),1)])),_:1},8,["id","level"])):Ws("",!0),Bs("div",$xe,[Bs("div",{class:"o-column-listing__wrapper",role:"list","aria-owns":a.listItemIds,"aria-labelledby":a.listLabelledById},[Bs("div",Pxe,[(As(!0),Ps(Ss,null,ea(a.column1Items,((e,t)=>(As(),Ps("div",{key:t,id:e.listItemId,class:"o-column-listing__item",role:"listitem"},[Hs(o,Zs({ref_for:!0},F({},e),{postType:"editorial-feature",headingLevel:a.itemHeadingLevel,variableImageHeight:!0}),null,16,["headingLevel"])],8,Oxe)))),128))]),Bs("div",Mxe,[(As(!0),Ps(Ss,null,ea(a.column2Items,((e,t)=>(As(),Ps("div",{key:t,id:e.listItemId,class:"o-column-listing__item",role:"listitem"},[Hs(o,Zs({ref_for:!0},F({},e),{postType:"editorial",headingLevel:a.itemHeadingLevel,variableImageHeight:!0}),null,16,["headingLevel"])],8,Rxe)))),128))]),Bs("div",Nxe,[Bs("div",Fxe,[(As(!0),Ps(Ss,null,ea(a.column3Items,((e,t)=>(As(),Ps("div",{key:t,id:e.listItemId,class:"o-column-listing__item",role:"listitem"},[Hs(o,Zs({ref_for:!0},F({},e),{postType:"editorial",headingLevel:a.itemHeadingLevel}),null,16,["headingLevel"])],8,Bxe)))),128))])])],8,Dxe)])])):Ws("",!0)}]]),jxe={width:"399",height:"166",viewBox:"0 0 399 166",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Uxe=["href"],Vxe={class:"o-error-404 gui-container"},qxe={class:"o-error-404__inner"},zxe=Wee({name:"Error404",components:{Heading:jre,Heading404:Wee({name:"Heading404",mixins:[pae],props:{a11yDescription:{type:String,default:null},a11yTitle:{type:String,default:null},image:{type:Object,default:null}}
100,computed:{href(){if(null==this.image)return;const{id:e,region:t,src:n}=this.image,i=t&&t["1:1"];return e?this.buildIiifUri(e,{region:i||"square",width:200}):n}}},[["render",function(e,t,n,i,r,a){return As(),Ps("svg",jxe,[Bs("title",null,ze(n.a11yTitle),1),Bs("desc",null,ze(n.a11yDescription),1),t[0]||(t[0]=zs('<path d="M72.4 156H89.4V126H109.2V111.8H89.4V13H66.2L0.799988 120.4V126H72.4V156ZM22.8 111.8L72.4 26.2V111.8H22.8Z" fill="black"></path><path d="M361.4 156H378.4V126H398.2V111.8H378.4V13H355.2L289.8 120.4V126H361.4V156ZM311.8 111.8L361.4 26.2V111.8H311.8Z" fill="black"></path><defs><clipPath id="circle-clip"><circle cx="200" cy="83" r="83"></circle></clipPath></defs><rect x="100" y="0" width="200" height="200" fill="black" clip-path="url(#circle-clip)"></rect>',4)),n.image?(As(),Ps("image",{key:0,href:a.href,x:"100",y:"0",width:"200",height:"200","clip-path":"url(#circle-clip)"},null,8,Uxe)):Ws("",!0)])}]]),ListOfLinks:zre,StatusIndicator:Oke},props:{a11yDescription:{type:String,default:null},archiveLookupStatus:{type:String,default:"pending"},archiveLinkTitle:{type:String,default:null},archiveLinkUrl:{type:String,default:null},image:{type:Object,required:!0},links:{type:Array,default:H((()=>[]),"default")},statusMessages:{type:Object,default:H((()=>{}),"default")},subheading:{type:String,default:null}},computed:{archiveLink(){return{text:this.archiveLinkTitle,url:this.archiveLinkUrl}}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading404"),o=Yr("Heading"),l=Yr("StatusIndicator"),u=Yr("ListOfLinks");return As(),Ps("div",Vxe,[Bs("div",qxe,[Hs(s,{image:n.image,a11yTitle:"404",a11yDescription:n.a11yDescription},null,8,["image","a11yDescription"]),Hs(o,{class:"o-error-404__subheading",level:2},{default:Ii((()=>[qs(ze(n.subheading),1)])),_:1}),Hs(l,{status:n.archiveLookupStatus,statusMessages:n.statusMessages},null,8,["status","statusMessages"]),Hs(u,{links:[a.archiveLink,...n.links],modifiers:["link-underline"]},null,8,["links"])])])}]]),Wxe={class:"o-event-tour-module"},Gxe=Wee({name:"EventTourModule",components:{Card:ace,Credits:Ere,ImageResponsive:vae,RichText:cre},props:{card:{type:Object,default:null},image:{type:Object,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("ImageResponsive"),l=Yr("Card");return As(),Ps("div",Wxe,[n.image?(As(),Os(o,Zs({key:0},F({},n.image),{size:"post_inline",class:"o-event-tour-module__image"}),{default:Ii((()=>[n.image.caption?(As(),Os(s,{key:0,class:"o-event-tour-module__caption",content:n.image.caption},null,8,["content"])):Ws("",!0),n.image.credit?(As(),Os(s,{key:1,class:"o-event-tour-module__caption o-event-tour-module__caption--credit",content:n.image.credit},null,8,["content"])):Ws("",!0)])),_:1},16)):Ws("",!0),n.card?(As(),Os(l,Zs({key:1,class:"o-event-tour-module__card"},n.card,{cardName:"infoBlockCard"}),null,16)):Ws("",!0)])}]]),Kxe={class:"o-exhibition-module"},Yxe={class:"o-exhibition-module__inner"},Zxe={class:"o-exhibition-module__text"},Xxe={key:1,class:"o-exhibition-module__languages"},Qxe={key:2,class:"o-exhibition-module__accessbility"},Jxe=Wee({name:"ExhibitionModule",components:{Card:ace,RichText:cre},props:{accessibility:{type:String,default:null},card:{type:Object,default:null},description:{type:String,default:null},languages:{type:Array,default:H((()=>[]),"default")}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("Card");return As(),Ps("section",Kxe,[Bs("div",Yxe,[Bs("div",Zxe,[n.description?(As(),Os(s,{key:0,class:"o-exhibition-module__description",content:n.description},null,8,["content"])):Ws("",!0),n.languages.length?(As(),Ps("div",Xxe,[(As(!0),Ps(Ss,null,ea(n.languages,((e,t)=>(As(),Os(s,{key:`exhibition-language-${t}`,content:e},null,8,["content"])))),128))])):Ws("",!0),n.accessibility?(As(),Ps("div",Qxe,[t[0]||(t[0]=Bs("span",{class:"o-exhibition-module__accessbility-prefix"}
100," Accessibility Note: ",-1)),Hs(s,{content:n.accessibility,inline:!0},null,8,["content"])])):Ws("",!0)]),n.card?(As(),Os(o,Zs({key:0,class:"o-exhibition-module__card"},n.card,{cardName:"infoBlockCard"}),null,16)):Ws("",!0)])])}]]),eTe={ref:"dropdown",class:"o-facet-explorer--dropdown"},tTe={class:"o-facet-explorer__container"},nTe=Wee({name:"FacetExplorerDropdown"},[["render",function(e,t,n,i,r,a){return As(),Ps("div",eTe,[Bs("div",tTe,[na(e.$slots,"tabs"),Hs(No,{name:"dropdown"},{default:Ii((()=>[na(e.$slots,"facetPanel")])),_:3}),na(e.$slots,"filterBar")]),na(e.$slots,"header")],512)}]]),iTe={name:"FacetExplorerOverlay",components:{Modal:Poe},props:{modalId:{type:String,required:!1},baseLocaleKey:{type:String,default:"o-facet-explorer",required:!1},isOverlayOpen:{type:Boolean,required:!1},isPanelOpen:{type:Boolean,required:!1}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),watch:{isPanelOpen(){document.body.style["touch-action"]=this.isPanelOpen&&this.isOverlayOpen?"none":"auto"}}},rTe={class:"o-facet-explorer--overlay"},aTe={FacetExplorerDropdown:nTe,FacetExplorerOverlay:Wee(iTe,[["render",function(e,t,n,i,r,a){const s=Yr("Modal");return As(),Ps("div",rTe,[na(e.$slots,"header"),(As(),Os(s,{id:n.modalId,key:n.modalId,class:Fe(["o-facet-explorer__wrapper",{"o-facet-explorer__wrapper--active":n.isOverlayOpen},{"o-facet-explorer__wrapper--with-panel":n.isPanelOpen}]),"show-close-button":!1,"a11y-heading":e.translate(n.baseLocaleKey+".a11y_heading"),"focus-selector":".g-modal .o-facet-explorer__header-button","lock-body-scroll":!n.isPanelOpen},{default:Ii((()=>[na(e.$slots,"overlayHeader"),na(e.$slots,"tabs"),na(e.$slots,"facetPanel"),na(e.$slots,"filterBar"),na(e.$slots,"overlayToggle")])),_:3},8,["id","class","a11y-heading","lock-body-scroll"]))])}]])},sTe={name:"TextPanel",components:{GuiButton:Jee,FacetGroup:tge,RadSearchBox:XCe},props:{baseLocaleKey:{type:String,required:!1,default:"o-facet-explorer.textPanel"},facets:{type:Array,required:!1,default:H((()=>[]),"default")},fieldName:{type:String,required:!0},isMobile:{type:Boolean,required:!0},maxFacets:{type:Number,required:!1,default:20},selectedFacetValues:{type:Array,required:!1,default:H((()=>[]),"default")},showSearchBox:{type:[Boolean,String],default:!0,validate:H((e=>[!0,!1,"force"].includes(e)),"validate")}},emits:["updateSearch","keypressChange"],setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data:H((()=>({displayFacetFiltersLength:0,hasScrollableContent:!1})),"data"),mounted(){this.checkForLongContent(),typeof window<"u"&&window.addEventListener("resize",this.checkForLongContent,{passive:!0})},beforeDestroy(){typeof window<"u"&&window.removeEventListener("resize",this.onResize,{passive:!0})},computed:{ariaAnnouncement(){return this.translateCount("items_shown_aria",this.facets.length,{itemsCount:this.facets.length,itemName:this.translateCount(this.fieldName,this.facets.length)})},facetTotalText(){return this.translateCount("facet_more_text",this.facets.length,{numFacets:this.facets.length,fieldName:this.translatePart(this.fieldName)})},displayFacetFilters(){let e={};return this.facets.forEach((t=>{e[t.name]={name:t.name,label:t.label||t.name,count:t.val||t.count}})),this.updateDisplayFacetFiltersLength(e),e},searchBoxLabel(){return this.translatePart(`search_box_label.${this.fieldName}`)},hasMoreResults(){return this.facets.length>=this.maxFacets}},watch:{facets(){this.checkForLongContent()},fieldName(){this.checkForLongContent()}},methods:{appendEvent(e){this.$emit("updateSearch",e)},checkForLongContent(){const e=this.$refs.facetData;let t=0,n=0;null!=e&&e.scrollHeight&&(t=null==e?void 0:e.scrollHeight),null!=e&&e.clientHeight&&(n=null==e?void 0:e.clientHeight),(t>n||"force"==this.showSearchBox)&&(this.hasScrollableContent=!0)},updateActiveTabFilters(e){this.$emit("keypressChange",{type:"deleteField"==e.type?"keypressChange":e.type,fieldName:this.fieldName,value:e.value})},updateDisplayFacetFiltersLength(e){this.displayFacetFiltersLength=Object.keys(e).length}}},oTe={class:"m-text-panel__wrapper","data-testid":"textPanel"},lTe={key:0,class:"m-text-panel__search-box-container"},uTe={class:"m-text-panel__search-box-heading"},cTe={class:"m-text-panel__search-box-wrapper"},dTe={class:"m-text-panel__filters-container"},pTe={class:"visually-hidden","aria-live":"polite"},hTe={ref:"facetData",class:"m-text-panel__filters-wrapper"},fTe={key:0,class:"m-text-panel__facet-count"},mTe=Wee(sTe,[["render",function(e,t,n,i,r,a){const s=Yr("RadSearchBox"),o=Yr("FacetGroup");return As(),Ps("div",oTe,[!0!==n.showSearchBox&&"force"!=n.showSearchBox||!r.hasScrollableContent?Ws("",!0):(As(),Ps("div",lTe,[Bs("div",uTe,ze(a.searchBoxLabel),1),Bs("div",cTe,[(As(),Os(s,{ref:"searchBox",key:n.fieldName,"with-clear-search":!0,"base-locale-key":n.baseLocaleKey,"aria-label-name":n.fieldName,"send-keypress-events":!0,"placeholder-override":"",onUpdateSearch:a.updateActiveTabFilters},null,8,["base-locale-key","aria-label-name","onUpdateSearch"]))])])),Bs("div",dTe,[Bs("div",pTe,ze(a.ariaAnnouncement),1),Bs("div",hTe,[Hs(o,{ref:"facetItems",classes:["m-text-panel__columns"],"field-name":n.fieldName,"selected-values":n.selectedFacetValues,"hide-legend":!0,facets:a.displayFacetFilters,"number-of-facets-to-s
100how":0,onUpdateSearch:a.appendEvent},null,8,["field-name","selected-values","facets","onUpdateSearch"]),!0!==n.showSearchBox&&"force"!=n.showSearchBox||!(a.hasMoreResults||n.facets.length<1)?Ws("",!0):(As(),Ps("div",fTe,ze(a.facetTotalText),1))],512)])])}]]),gTe={name:"DatePanel",components:{FacetItem:Rre,GuiButton:Jee,GuiInput:Mre,GuiChart:wbe},props:{baseLocaleKey:{type:String,required:!1,default:"o-facet-explorer.datePanel"},dates:{type:Array,required:!1,default:H((()=>[]),"default")},fieldName:{type:String,required:!0},isMobile:{type:Boolean,required:!0},undatedFilter:{type:Boolean,required:!0},dataGranularity:{type:Number,default:10},resetValues:{type:Object,required:!1,default:H((()=>({})),"default")},selectedFacetValues:{type:Array,required:!1,default:H((()=>[]),"default")},showIncludeUndatedItems:{type:Boolean,default:!0},withAnimation:{type:Boolean,required:!1,default:!0}},emits:["updateSearch","dateRangeChange","emptyDateSearch"],setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data(){return{yAxisLabel:this.translate(this.baseLocaleKey+".yAxisLabel"),dateRangeLocaleKey:this.translate(this.baseLocaleKey+".date_range"),inputMax:void 0,inputMin:void 0,inputMaxValidationErrors:0,inputMinValidationErrors:0,selectedMax:void 0,selectedMin:void 0,sliderDragging:!1,width:void 0,internalUndatedFilter:!1,minRules:void 0,maxRules:void 0,initialMax:void 0,initialMin:void 0,filledDates:[],selectedDates:[]}},computed:{xAxisLabel(){return this.translatePart("xAxisLabel",{date:10==this.dataGranularity?this.translate(this.baseLocaleKey+".decade"):this.translate(this.baseLocaleKey+".year")})},applyDatesAria(){return this.translatePart("apply_dates_aria")},applyDatesText(){return this.translatePart("apply_dates")},inputFromText(){return this.translatePart("dates_min")},inputToText(){return this.translatePart("dates_max")},max(){return this.findMax(this.selectedDates)},min(){return this.findMin(this.selectedDates)},resetDatesAria(){return this.translatePart("reset_dates_aria")},resetDatesText(){return this.translatePart("reset_dates")},chartTitle(){return this.translatePart("chart_title",{description:this.chartDescription})},tableCaption(){return this.translatePart("table_caption",{description:this.chartDescription})}
100,chartDescription(){let e=this.selectedMin;return this.selectedMin<1&&(e=this.translatePart("bce_date",{date:Math.abs(e)})),this.translatePart("description",{min:e,max:this.selectedMax})},validationMessages(){return{number:this.translatePart("validation_number"),max:this.translatePart("validation_max_value"),min:this.translatePart("validation_min_value"),required:this.translatePart("validation_required")}}},watch:{dates(){this.dataChange(),this.reset()},selectedFacetValues(e,t){0==e.length&&this.applyDateFilter(!0)},inputMin(e,t){this.inputMin>=this.min&&this.inputMin<=this.max&&(this.selectedMin=parseInt(this.inputMin),this.setValidatorRules(this.min<=this.inputMin?this.min:this.inputMin,this.max>=this.inputMax?this.max:this.inputMax)),this.isMobile&&!this.sliderDragging&&null!=t&&this.applyDateFilter()},inputMax(e,t){this.inputMax<=this.max&&this.inputMax>=this.min&&(this.selectedMax=parseInt(this.inputMax),this.setValidatorRules(this.min<=this.inputMin?this.min:this.inputMin,this.max>=this.inputMax?this.max:this.inputMax)),this.isMobile&&!this.sliderDragging&&null!=t&&this.applyDateFilter()},dataGranularity(){this.dataChange()}},mounted(){this.$nextTick((()=>{window.addEventListener("resize",this.updateWidth)})),this.updateWidth(),this.dataChange(),0==this.selectedFacetValues.length&&this.$emit("emptyDateSearch",{min:this.min,max:this.max}),this.initialMax=this.findMax(this.selectedDates),this.initialMin=this.findMin(this.selectedDates);let e=this.getSelectedValues();Object.keys(e).length>0&&(this.initialMin=e.min,this.initialMax=e.max),this.changeDateRange({min:this.min,max:this.max}),Object.keys(e).length>0?(this.inputMin=this.initialMin,this.inputMax=this.initialMax,this.setValidatorRules(this.inputMin,this.inputMax)):this.setValidatorRules()},methods:{getSelectedValues(){if(this.selectedFacetValues.length<=0)return{};let[e,t]=this.selectedFacetValues[0].split(":").map((e=>parseInt(e)));return{min:e,max:t}},getLeftmostVal(e){let t=e%this.dataGranularity;return 0==t?e:e<0?e-this.dataGranularity-t:e-t},getRightmostVal(e){let t=e%this.dataGranularity;return 0==t?e:e<0?e-t:e+this.dataGranularity-t},dataChange(){let e=this.dates,t=this.getSelectedValues();Object.keys(t).length>0&&(t.min=this.getLeftmostVal(t.min),t.max=this.getRightmostVal(t.max),e=e.filter((e=>e.name>=t.min&&e.name<=t.max))),this.selectedDates=[],e.forEach((e=>{this.selectedDates.push(e)})),null==t.min&&(t.min=this.min),null==t.max&&(t.max=this.max),this.filledDates=[],this.fillDateArray(this.selectedDates,t.min,t.max,this.dataGranularity).forEach((e=>{this.filledDates.push(e)})),t.min==this.initialMin&&t.max==this.initialMax&&(this.changeDateRange({min:t.min,max:t.max}),this.setValidatorRules(t.min,t.max))},applyDateFilter(e){return V(this,null,(function*(){let t=this.selectedMin,n=this.selectedMax,i=e||t==this.resetValues.min&&n==this.resetValues.max;if(i&&(t=this.resetValues.min||this.initialMin,n=this.resetValues.max||this.initialMax),this.inputMinValidationErrors>0||this.inputMaxValidationErrors>0||0==this.isRangeValid(t,n))return!1;let r=[0===t?1:t,0===n?1:n],a=[{type:"replaceFieldValues",dataType:"dateRange",name:this.fieldName,value:r.join(":")}];if(this.internalUndatedFilter!=this.undatedFilter){let e=this.internalUndatedFilter?"addField":"deleteField";a.push({type:e,name:"empty_field",value:this.fieldName})}this.$emit("dateRangeChange",{fieldName:this.fieldName,tabType:"DateRange",min:t,max:n}),i?this.$emit("updateSearch",{type:"clearField",name:this.fieldName}):this.$emit("updateSearch",{type:"batchEvent",value:a})}))},changeDateRange(e){this.selectedMin=e.min,this.inputMin=e.min,this.selectedMax=e.max,this.inputMax=e.max},setValidatorRules(e=this.min,t=this.max){let n=[];0==this.isMobile&&n.push(["required"]),n.push(["number"]),this.minRules=[...n,["min",e],["max",this.selectedMax]],this.maxRules=[...n,["min",this.selectedMin],["max",t]]},includeUndatedItems(){this.internalUndatedFilter=!this.internalUndatedFilter,this.isMobile&&this.applyDateFilter()},isRangeValid(e,t){let n=parseInt(e),i=parseInt(t);return!(isNaN(n)||isNaN(i)||n>i)},reset(){this.changeDateRange({min:this.selectedMin,max:this.selectedMax}),this.inputMax==this.initialMax&&this.inputMax==this.selectedMax&&this.inputMin==this.initialMin&&this.inputMin==this.selectedMin&&(this.selectedMax=this.max,this.selectedMin=this.min,this.setValidatorRules(this.min,this.max))},updateWidth(){let e=this.$refs.barGraphContainer;if(!e)return;let t=e.clientWidth;this.width=t+5},updateSliderStatus(e){"drag"==e&&(this.sliderDragging=!0),"drop"==e&&(this.sliderDragging=!1,this.applyDateFilter())},findMax(e){if(!e.length)return;const t=e.reduce(((e,t)=>parseInt(t.name)>parseInt(e.name)?t:e));return parseInt(t.name)},findMin(e){if(!e.length)return;const t=e.reduce((function(e,t){return parseInt(t.name)<parseInt(e.name)?t:e}));return parseInt(t.name)},fillDateArray(e,t,n,i=1){var r;let a=[];for(let s=t;s<=n;s+=i)a.push({name:s,val:0});return e.forEach((e=>{const n=parseInt(e.name);e.name=n,a[(n-t)/i]=F({},e)})),null!=(r=a.at(-1))&&r.name&&a.at(-1).name!=n&&a.push({name:n,val:e.at(-1).val}),a},registerValidationError(e,t){e.ledger.count("visible",(e=>e.visible)),e.on("count:visible",(({payload:e})=>{"min"==t?this.inputMinValidationErrors=e:this.inputMaxValidationErrors=e}))}}},yTe={key:0,class:"m-date-panel"},vTe={ref:"barGraphContainer",class:"m-date-panel__container"},bTe={class:"m-date-panel__controls-container"},_Te={class:"m-date-panel__inputs-container"},wTe={class:"m-date-panel__date-inputs-container"},STe={class:"m-date-panel__input-with-title-container"},CTe={for:"inputMin"},kTe={class:"m-date-panel__input-with-title-container"},xTe={for:"inputMax"},TTe={class:"m-date-panel__undated-checkbox-container"},ETe={class:"m-date-panel__button-container"},ATe={"data-testid":"loadingBrowser",class:"m-loading-panel"},LTe={ref:"message",class:"m-loading-panel__message"},ITe={TextPanel:mTe,DatePanel:Wee(gTe,[["render",function(e,t,n,i,r,a){const s=Yr("GuiChart"),o=Yr("GuiInput"),l=Yr("FacetItem"),u=Yr("GuiButton");return n.dates.length?(As(),Ps("div",yTe,[Bs("div",vTe,[r.filledDates?(As(),Os(s,{key:0,data:r.filledDates,"with-slider":!0,width:r.width,height:160,"selected-max":r.selectedMax,"chart-title":a.chartTitle,"table-caption":a.tableCaption,"x-axis-label":a.xAxisLabel,"y-axis-label":r.yAxisLabel,"selected-min":r.selectedMin,"with-y-axis":!0,"is-mobile":n.isMobile,"data-granularity":n.dataGranularity,"with-animation":n.withAnimation,onRange:a.changeDateRange,onDragUpdate:a.updateSliderStatus},null,8,["data","width","selected-max","chart-title","table-caption","x-axis-label","y-axis-label","selected-min","is-mobile","data-granularity","with-animation","onRange","onDragUpdate"])):Ws("",!0),Bs("div",bTe,[Bs("div",_Te,[Bs("div",wTe,[Bs("div",STe,[Bs("label",CTe,ze(a.inputFromText),
1001),Hs(o,{id:"inputMin",ref:"inputMin",modelValue:r.inputMin,"onUpdate:modelValue":t[0]||(t[0]=e=>r.inputMin=e),"input-mode":"numeric",name:"inputMin",pattern:"-?[0-9]*",type:"text",validation:r.minRules,"validation-messages":a.validationMessages,"validation-visibility":"live",onNode:t[1]||(t[1]=e=>a.registerValidationError(e,"min"))},null,8,["modelValue","validation","validation-messages"])]),Bs("div",kTe,[Bs("label",xTe,ze(a.inputToText),1),Hs(o,{id:"inputMax",ref:"inputMax",modelValue:r.inputMax,"onUpdate:modelValue":t[2]||(t[2]=e=>r.inputMax=e),"input-mode":"numeric",name:"inputMax",pattern:"-?[0-9]*",type:"text",validation:r.maxRules,"validation-messages":a.validationMessages,"validation-visibility":"live",onNode:t[3]||(t[3]=e=>a.registerValidationError(e,"max"))},null,8,["modelValue","validation","validation-messages"])])]),Bs("div",TTe,[n.showIncludeUndatedItems?(As(),Os(l,{key:0,ref:"undatedItems","data-testid":"undatedItemsToggle",class:"m-date-panel__undated-checkbox",checked:r.internalUndatedFilter,"field-name":"empty_field",value:r.dateRangeLocaleKey,onUpdateSearch:a.includeUndatedItems},null,8,["checked","value","onUpdateSearch"])):Ws("",!0)])]),Bs("div",ETe,[Hs(u,{ref:"resetDatesButton","data-testid":"resetDatesButton","aria-label":a.resetDatesAria,name:"resetDates",class:Fe("m-date-panel__reset-button"),modifiers:["outline"],onClick:t[4]||(t[4]=e=>a.applyDateFilter(!0))},{default:Ii((()=>[qs(ze(a.resetDatesText),1)])),_:1},8,["aria-label"]),n.isMobile?Ws("",!0):(As(),Os(u,{key:0,ref:"applyDatesButton","data-testid":"applyDatesButton","aria-label":a.applyDatesAria,name:"applyDates",class:Fe("m-date-panel__apply-button"),onClick:t[5]||(t[5]=e=>a.applyDateFilter(!1))},{default:Ii((()=>[qs(ze(a.applyDatesText),1)])),_:1},8,["aria-label"]))])])],512)])):Ws("",!0)}]]),LoadingPanel:Wee({name:"LoadingPanel",props:{loadingMessage:{type:String,required:!0}}},[["render",function(e,t,n,i,r,a){return As(),Ps("div",ATe,[Bs("div",LTe,[Bs("span",null,ze(n.loadingMessage),1)],512)])}]])},$Te={name:"FacetExplorerTab",components:{GuiButton:Jee,Icon:Xie},props:{active:{type:Boolean,required:!1},baseLocaleKey:{type:String,required:!1,default:"o-facet-explorer.toggle"},disabled:{type:Boolean,required:!1},fieldName:{type:String,required:!0},isMobile:{type:Boolean,required:!0},numSelected:{type:Number,required:!1,default:0},tabType:{type:String,required:!1,default:void 0}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),emits:["toggle"],data:H((()=>({})),"data"),computed:{itemClasses(){let e=["o-facet-explorer__tab"];return this.disabled?(e.push("o-facet-explorer__tab--disabled"),e):(this.active&&e.push("o-facet-explorer__tab--active"),e)},tabName(){if(this.numSelected>0&&this.isMobile){let e=this.translatePart(this.fieldName);return this.translatePart("add_count",{tab:e,count:this.localizeNumber(this.numSelected)})}return this.translatePart(this.fieldName)},toggleLabel(){let e=this.translatePart("aria-open",{tab:this.tabName});return this.active&&(e=this.translatePart("aria-close",{tab:this.tabName})),this.disabled&&(e=this.translatePart("aria-disabled",{tab:this.tabName})),e}},methods:{emitToggleEvent(){if(this.disabled)return;let e="closed";this.active&&(e="open"),this.$emit("toggle",{initialState:e,fieldName:this.fieldName,tabType:this.tabType})}}},DTe={key:0,class:"o-facet-explorer__chevron_mobile"},PTe={class:"o-facet-explorer__tab-label"},OTe={class:"o-facet-explorer__chevron"},MTe=Wee($Te,[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("GuiButton");return As(),Os(o,{ref:"toggleItemButton","data-testid":"tab",role:"tab","aria-label":a.toggleLabel,"aria-selected":n.active,"aria-controls":n.active?"facet-tab-panel":"",class:Fe(a.itemClasses),name:"toggle","is-disabled":n.disabled,onClick:a.emitToggleEvent},{default:Ii((()=>[n.isMobile?(As(),Ps("span",DTe,[Hs(s,{ref:"icon",name:"Chevron500"},null,512)])):Ws("",!0),Bs("span",PTe,ze(a.tabName),1),Bs("span",OTe,[Hs(s,{ref:"icon",name:"Chevron500"},null,512)])])),_:1},8,["aria-label","aria-selected","aria-controls","class","is-disabled","onClick"])}]]),RTe={name:"FacetExplorerHeader",components:{GuiButton:Jee,Icon:Xie},props:{headingText:{type:String,required:!0},headingLevel:{type:Number,default:3},showButton:{type:Boolean,required:!0},showCount:{type:Boolean,required:!1,default:!0},showHeader:{type:Boolean,required:!1,default:!0},buttonLabel:{type:String,default:void 0},icon:{type:String,required:!0},totalResults:{type:Number,required:!0}}
100,emits:["toggleOverlay"],computed:{headingTag(){return"h"+this.headingLevel}},methods:{toggleOverlay(){this.$emit("toggleOverlay")}}},NTe={key:0,class:"o-facet-explorer__header"},FTe={key:0,class:"o-facet-explorer__header-button-label"},BTe={name:"FacetExplorer",components:B(F(F({},aTe),ITe),{FacetExplorerTab:MTe,FacetExplorerHeader:Wee(RTe,[["render",function(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("GuiButton");return n.showHeader?(As(),Ps("div",NTe,[n.showCount?(As(),Os(Xr(a.headingTag),{key:0,ref:"filterMessage",class:"o-facet-explorer__header-text","aria-live":"polite"},{default:Ii((()=>[qs(ze(n.headingText),1)])),_:1},512)):Ws("",!0),n.showButton?(As(),Os(o,{key:1,ref:"overlayButton","data-testid":"overlayButton",name:"overlayButton",class:"o-facet-explorer__header-button",onClick:a.toggleOverlay},{default:Ii((()=>[Hs(s,{name:n.icon,class:"o-facet-explorer__header-button-icon"},null,8,["name"]),n.buttonLabel?(As(),Ps("span",FTe,ze(n.buttonLabel),1)):Ws("",!0)])),_:1},8,["onClick"])):Ws("",!0)])):Ws("",!0)}]]),FilterBar:Oye,SearchChips:jCe,GuiButton:Jee,AriaLiveLoading:Yee}),mixins:[Noe,Moe],props:{activeTab:{type:String,required:!1,default:void 0},activeTabData:{type:Array,default:H((()=>[]),"default")},baseLocaleKey:{type:String,default:"o-facet-explorer"},facetInfo:{type:Array,required:!0},filterInfo:{type:Array,required:!1,default:H((()=>[]),"default")},maxFacets:{type:Number,required:!1,default:20},headerVisibility:{type:Boolean,required:!1,default:!1},headingLevel:{type:Number,default:3},searchHash:{type:String,required:!1,default:"noparams"},selectedValues:{type:Object,default:H((()=>({})),"default")},totalResults:{type:Number,default:void 0},chipTerms:{type:Array,required:!1,default:H((()=>[]),"default")},queryTerms:{type:Array,required:!1,default:H((()=>[]),"default")},modalId:{type:String,default:"facetExplorerModal",required:!1},isEmptySearch:{type:Boolean,required:!1,default:!1},showHeader:{type:Boolean,required:!1,default:!0}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),emits:["keypressChange","updateSearch","updateTabData","dateRangeChange"],data(){return{activeTabType:void 0,ariaDescription:this.translate("o-facet-explorer.description_aria"),dateResetValues:void 0,internalTabData:void 0,isMobile:!1,isOverlayOpen:!1,loadingTabData:!1,queryFieldName:void 0,fieldName:void 0,explorerHeaderCount:this.totalResults,currentFacetData:{},mobileHeader:this.translatePart("filters_button")}},computed:{displayedFacets(){return this.isMobile&&this.activeTab?[this.facetInfo.find((e=>e.fieldName==this.activeTab))]:this.facetInfo},emptyFieldFilter(){return"empty_field"in this.selectedValues&&this.selectedValues.empty_field.indexOf(this.queryFieldName)>-1},explorerHeaderText(){return`${this.localizeNumber(this.explorerHeaderCount)} ${this.translateCount("results",this.explorerHeaderCount)}`},selectedFacets(){return this.queryFieldName in this.selectedValues?this.selectedValues[this.queryFieldName]:[]},showFacetFilters(){return this.isMobile?this.activeTab&&(this.loadingTabData||null!=this.internalTabData):null!=this.queryFieldName},showFilterBar(){return!(!this.filterInfo.length||(1!=this.isMobile||null!=this.activeTab)&&0!=this.isMobile)},mobileViewResultsText(){return this.translatePart("view_results",{count:this.localizeNumber(this.totalResults)})},activeFiltersText(){if(Object.values(this.selectedValues).length>0||this.queryTerms.length>0){let e=this.queryTerms.length;for(let t in this.selectedValues){let n=this.selectedValues[t];Array.isArray(n)?e+=n.length:null!=n&&(e+=1)}return this.translatePart("overlay_header",{count:e})}return this.translatePart("filters_button")},showMobileChips(){return!this.activeTab&&(this.chipTerms.length>0||this.queryTerms.length>0)},loadingMessage(){const e=this.translatePart(`toggle.${this.queryFieldName}`),t=this.loadingTabData?"loading_message":"loaded_message";return this.translatePart(t,{field:e})},headingTag(){return"h"+this.headingLevel}},watch:{facetInfo:{handler(){this.updateCurrentFacetData()},deep:!0},isMobile(){null!=this.activeTab&&this.$emit("updateTabData",{fieldName:this.activeTab})},activeTabData(){0==this.activeTabData.length?this.internalTabData=[]:this.internalTabData=[...this.activeTabData],this.loadingTabData=!1},totalResults(){this.explorerHeaderCount=this.totalResults}},beforeDestroy(){typeof window<"u"&&window.removeEventListener("resize",this.onResize,{passive:!0})},mounted(){this.updateCurrentFacetData(),this.onResize(),typeof window<"u"&&window.addEventListener("resize",this.onResize,{passive:!0})},methods:{isActiveTab(e){if(e.fieldName==this.activeTab){if(!e.disabled)return!0;this.toggleTab({initialState:"open",fieldName:e.fieldName,tabType:e.type})}return!1},onResize(){this.isMobile=this.isSmallMinus(),this.isMobile&&this.isOverlayOpen&&(this.isOverlayOpen=!1)},toggleTab(e){let t=e.fieldName,n=e.tabType;"closed"==e.initialState?(this.facetInfo.forEach((e=>{e.fieldName==t&&(null!=e.queryFieldName?(this.queryFieldName=e.queryFieldName,this.fieldName=e.fieldName):(this.queryFieldName=e.fieldName,this.fieldName=e.fieldName))})),this.activeTabType=n,this.loadingTabData=!0):(this.queryFieldName=void 0,this.fieldName=void 0),this.internalTabData=void 0,this.$emit("updateTabData",e),this.isMobile&&this.isOverlayOpen&&document.querySelector(".g-modal__scroll")&&(document.querySelector(".g-modal__scroll").scrollTop=0)},updateActiveTabFilters(e){this.$emit("keypressChange",e)},toggleExplorerOverlay(){this.isOverlayOpen?this.triggerModalClose(this.modalId):this.triggerModalOpen(this.modalId),this.isOverlayOpen=!this.isOverlayOpen,this.activeTab&&this.toggleTab({fieldName:this.activeTab})},getNumSelected(e){let t=e.queryFieldName?e.queryFieldName:e.fieldName,n=0;return this.selectedValues&&null!=this.selectedValues[t]&&(n=this.selectedValues[t].length),n},updateCurrentFacetData(){this.facetInfo.forEach((e=>{this.currentFacetData[e.fieldName]=e}))},handleEmptyDateSearch(e){this.dateResetValues=e}}},HTe={class:"o-facet-explorer__tab-wrapper","aria-labelledby":"tabs",role:"tablist"},jTe={id:"facet-tab-panel",class:"o-facet-explorer__panel",role:"tabpanel"},UTe=Wee(BTe,[["render",function(e,t,n,i,r,a){const s=Yr("FacetExplorerTab"),o=Yr("AriaLiveLoading"),l=Yr("LoadingPanel"),u=Yr("TextPanel"),c=Yr("DatePanel"),d=Yr("FilterBar"),p=Yr("GuiButton"),h=Yr("FacetExplorerHeader"),f=Yr("SearchChips");return As(),Os(Xr(r.isMobile?"FacetExplorerOverlay":"FacetExplorerDropdown"),{ref:"facetExplorer",class:"o-facet-explorer","modal
100-id":n.modalId,"is-overlay-open":r.isOverlayOpen,"is-panel-open":null!=n.activeTab},ta({tabs:Ii((()=>[(As(),Os(Xr(a.headingTag),{id:"tabs",class:"visually-hidden"},{default:Ii((()=>[qs(ze(r.ariaDescription),1)])),_:1})),Bs("div",HTe,[(As(!0),Ps(Ss,null,ea(a.displayedFacets,(e=>(As(),Os(s,{ref_for:!0,ref:"tab",key:e.fieldName+n.searchHash,"field-name":e.fieldName,active:a.isActiveTab(e),disabled:e.disabled,"tab-type":e.type,"is-mobile":r.isMobile,"num-selected":a.getNumSelected(e),onToggle:a.toggleTab},null,8,["field-name","active","disabled","tab-type","is-mobile","num-selected","onToggle"])))),128))]),Hs(o,{"is-loading":r.loadingTabData,"aria-status":this.loadingMessage},null,8,["is-loading","aria-status"])])),filterBar:Ii((()=>[a.showFilterBar?(As(),Os(d,{key:0,ref:"filterBar","filter-info":n.filterInfo,"is-mobile":r.isMobile,onUpdateSearch:t[3]||(t[3]=t=>e.$emit("updateSearch",t))},null,8,["filter-info","is-mobile"])):Ws("",!0)])),_:2},[a.showFacetFilters?{name:"facetPanel",fn:Ii((()=>[Bs("div",jTe,[Hs(No,{name:"fade",mode:"out-in",appear:""},{default:Ii((()=>[r.loadingTabData?(As(),Os(l,{ref:"loadingPanel",key:"loadingFacetBrowser","loading-message":a.loadingMessage},null,8,["loading-message"])):null!=r.internalTabData&&"DateRange"!=r.activeTabType?(As(),Os(u,Zs({key:1},r.currentFacetData[r.fieldName],{ref:"textPanel",key:n.activeTab,"base-locale-key":n.baseLocaleKey+".textPanel","field-name":r.queryFieldName,facets:r.internalTabData,"is-mobile":r.isMobile,"max-facets":n.maxFacets,"selected-facet-values":a.selectedFacets,onUpdateSearch:t[0]||(t[0]=t=>e.$emit("updateSearch",t)),onKeypressChange:a.updateActiveTabFilters}),null,16,["base-locale-key","field-name","facets","is-mobile","max-facets","selected-facet-values","onKeypressChange"])):null!=r.internalTabData&&"DateRange"==r.activeTabType?(As(),Os(c,Zs({key:2},r.currentFacetData[r.fieldName],{ref:"datePanel",key:`${n.activeTab}-date`,"base-locale-key":n.baseLocaleKey+".datePanel","field-name":r.queryFieldName,dates:r.internalTabData,"is-mobile":r.isMobile,"undated-filter":a.emptyFieldFilter,"selected-facet-values":a.selectedFacets,"reset-values":r.dateResetValues,onUpdateSearch:t[1]||(t[1]=t=>e.$emit("updateSearch",t)),onEmptyDateSearch:a.handleEmptyDateSearch,onDateRangeChange:t[2]||(t[2]=t=>e.$emit("dateRangeChange",t))}),null,16,["base-locale-key","field-name","dates","is-mobile","undated-filter","selected-facet-values","reset-values","onEmptyDateSearch"])):Ws("",!0)])),_:1})])])),key:"0"}:void 0,r.isMobile?{name:"overlayToggle",fn:Ii((()=>[Hs(No,{name:"fade",appear:""},{default:Ii((()=>[n.isEmptySearch?Ws("",!0):(As(),Os(p,{key:0,ref:"viewResultsButton","data-testid":"viewResultsButton",class:"o-facet-explorer__results-button",name:"viewResults",value:a.mobileViewResultsText,onClick:a.toggleExplorerOverlay},null,8,["value","onClick"]))])),_:1})])),key:"1"}:void 0,n.headerVisibility||r.isMobile?{name:"header",fn:Ii((()=>[Hs(h,{ref:"explorerHeader","data-testid":"explorerHeader","show-count":!n.isEmptySearch,"show-button":r.isMobile,"show-
100header":n.showHeader,"heading-text":a.explorerHeaderText,"heading-level":n.headingLevel+1,"total-results":r.explorerHeaderCount,icon:"filters500","button-label":a.activeFiltersText,onToggleOverlay:a.toggleExplorerOverlay},null,8,["show-count","show-button","show-header","heading-text","heading-level","total-results","button-label","onToggleOverlay"])])),key:"2"}:void 0,r.isMobile?{name:"overlayHeader",fn:Ii((()=>[Hs(h,{ref:"overlayHeader","data-testid":"overlayHeader","total-results":r.explorerHeaderCount,"show-button":r.isMobile,"heading-text":r.mobileHeader,icon:"close600",onToggleOverlay:a.toggleExplorerOverlay},null,8,["total-results","show-button","heading-text","onToggleOverlay"]),Hs(No,{name:"fade"},{default:Ii((()=>[a.showMobileChips?(As(),Os(f,{key:0,ref:"mobileSearchChips","data-testid":"mobileSearchChips","chip-terms":n.chipTerms,"query-terms":n.queryTerms,onUpdateSearch:t[4]||(t[4]=t=>e.$emit("updateSearch",t))},null,8,["chip-terms","query-terms"])):Ws("",!0)])),_:1})])),key:"3"}:void 0]),1032,["modal-id","is-overlay-open","is-panel-open"])}]]),VTe=H(((e={},t=(()=>({})))=>{const{items:n,refs:i}=e||{};if(!n||!i)return;const r=wr(i),a=Tn(null==n?void 0:n.map((e=>({item:e,intersection:null,ref:null})))),s=H((e=>{if(!document)return;const t=document.querySelector("main")?"main":"body .gui-container",n=document.querySelector(t);n.classList.add("c-background-color-scroll");const i=e?`s-bg--${e}`:"";n.classList.forEach((t=>{const r=t.startsWith("s-bg-");r&&e?n.classList.replace(t,i):r?n.classList.remove(t):e&&n.classList.add(i)}))}),"d"),o=e.delay||250,l={rootMargin:e.rootMargin||"0px",threshold:e.threshold||[.5]},u=Tn(null);!function(e,t,n={}){const{root:i,rootMargin:r="0px",threshold:a=0,window:s=voe,immediate:o=!0}=n,l=woe((()=>s&&"IntersectionObserver"in s)),u=Co((()=>yoe(Dn(e)).map(boe).filter(poe)));let c=foe;const d=En(o),p=l.value?Bi((()=>[u.value,boe(i),d.value]),(([e,n])=>{if(c(),!d.value||!e.length)return;const i=new IntersectionObserver(t,{root:boe(n),rootMargin:r,threshold:a});e.forEach((e=>e&&i.observe(e))),c=H((()=>{i.disconnect(),c=foe}),"xe")}),{immediate:o,flush:"post"}):foe;coe((()=>{c(),p(),d.value=!1}))}(r,(e=>{const n=Tn(null),i=Tn(null);e.forEach((e=>{const t=r.value.indexOf(e.target);a.value[t].intersection=e,a.value[t].ref=r.value[t];const l=a.value.filter((({intersection:e})=>e&&e.isIntersecting)),c=e.boundingClientRect.top<0,d=t===r.value.length-1,p=e.intersectionRatio<.5;if(clearTimeout(u.value),!l.length||c&&d&&p)u.value=setTimeout((()=>{s()}),o);else{i.value=a.value.reduce(((e,t)=>t.intersection.intersectionRatio>e.intersection.intersectionRatio?t:e)),n.value=r.value.indexOf(i.value.intersection.target);const e=i.value.item.bkgd;u.value=setTimeout((()=>{e&&s(e)}),o)}}));const l={index:n.value,item:i.value,state:a.value};"function"==typeof t&&t(l)}),l)}),"b1"),qTe={name:"GettyLocationHighlightsDrawer",mixins:[Noe],components:{Carousel:O_e,Heading:jre,ImageResponsive:vae,Icon:Xie},props:{active:{type:Boolean,default:!1},headingLevel:{type:Number,default:3},activeItemIndex:{type:Number,default:null}},emits:["triggerClose"],inject:["items"],setup(e){Eoe(e.active)},data(){return{carouselHeadingId:`GettyLocationHighlights${br()}LocationDrawerCarousel`,carouselOptions:{headingLevel:this.headingLevel+2}}},computed:{activeItem(){return this.items[this.activeItemIndex]},carouselHeadingLevel(){return this.headingLevel+1}},methods:{handleClose(){this.$emit("triggerClose")}}},zTe={class:"o-getty-location-highlights__drawer-wrapper gui-container"},WTe={class:"o-getty-location-highlights__drawer-inner"},GTe={class:"o-getty-location-highlights__drawer-main"},KTe={class:"o-getty-location-highlights__drawer-intro"},YTe={class:"o-getty-location-highlights__drawer-aside"},ZTe=["aria-labelledby"],XTe=Wee(qTe,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("ImageResponsive"),l=Yr("Carousel"),u=Yr("Icon");return a.activeItem?(As(),Ps("div",{key:0,class:Fe(["o-getty-location-highlights__drawer",{"o-getty-location-highlights__drawer--active":n.active}])},[Bs("div",zTe,[Bs("div",WTe,[Bs("div",GTe,[Hs(s,{level:n.headingLevel,class:"o-getty-location-highlights__drawer-title"},{default:Ii((()=>
100[qs(ze(a.activeItem.header.title),1)])),_:1},8,["level"]),Bs("span",KTe,ze(a.activeItem.header.intro),1)]),Bs("div",YTe,[Bs("section",{"aria-labelledby":r.carouselHeadingId},[Hs(s,{id:r.carouselHeadingId,level:a.carouselHeadingLevel,class:"visually-hidden"},{default:Ii((()=>[qs(ze(a.activeItem.header.title)+" Carousel ",1)])),_:1},8,["id","level"]),(As(),Os(l,{customOptions:r.carouselOptions,key:n.activeItemIndex},{default:Ii((()=>[(As(!0),Ps(Ss,null,ea(a.activeItem.carousel,(e=>(As(),Ps("div",{key:e.id},[Hs(o,Zs({ref_for:!0},F({},e.image),{size:"post_large_3_2"}),null,16)])))),128))])),_:1},8,["customOptions"]))],8,ZTe)])]),Bs("button",{class:"o-getty-location-highlights__close","aria-label":"Close Map Overlay",onClick:t[0]||(t[0]=Kl(((...e)=>a.handleClose&&a.handleClose(...e)),["prevent"]))},[Hs(u,{name:"close"})])])],2)):Ws("",!0)}]]),QTe={name:"GettyLocationHighlightsMap",components:{GuiLink:rre,Heading:jre,ImageResponsive:vae},props:{image:{type:Object,default:null},activeItemIndex:{type:Number,default:null},headingLevel:{type:Number,default:2},downloadLink:{type:String,default:null},anchorPoints:{type:Boolean,default:!0}},emits:["pointClick"],inject:["items"],data:H((()=>({mapPointsHeadingId:`gettyLocationHighlights${br()}MapPoints`})),"data"),methods:{pointClick(e,t){this.$emit("pointClick",e,t)}}},JTe={class:"o-getty-location-highlights__map"},eEe=["aria-labelledby"],tEe=Wee(QTe,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("ImageResponsive"),l=Yr("GuiLink");return As(),Ps("div",JTe,[Hs(s,{level:n.headingLevel,class:"visually-hidden"},{default:Ii((()=>t[0]||(t[0]=[qs(" Interactive Getty Center map ")]))),_:1,__:[0]},8,["level"]),Hs(o,Zs(F({},n.image),{size:"location"}),null,16),Hs(s,{level:n.headingLevel,id:r.mapPointsHeadingId,class:"visually-hidden"},{default:Ii((()=>t[1]||(t[1]=[qs(" Points on map ")]))),_:1,__:[1]},8,["level","id"]),Bs("ul",{class:"o-getty-location-highlights__map-points","aria-labelledby":r.mapPointsHeadingId},[(As(!0),Ps(Ss,null,ea(a.items,((e,t)=>(As(),Ps("li",{key:e.header.id,style:Pe(e.pointPosition)},[(As(),Os(Xr(n.anchorPoints?"a":"button"),{href:n.anchorPoints?`#${e.header.id}`:null,onClick:H((e=>a.pointClick(t,e)),"onClick"),"aria-label":`${t+1}, ${e.header.title}`,"aria-pressed":n.anchorPoints?null:(t===n.activeItemIndex).toString()},{default:Ii((()=>[qs(ze(t+1),1)])),_:2},1032,["href","onClick","aria-label","aria-pressed"]))],4)))),128))],8,eEe),n.downloadLink?(As(),Os(l,{key:0,href:n.downloadLink,button:!0,withIcon:"before"},{default:Ii((()=>t[2]||(t[2]=[qs(" Download Map ")]))),_:1,__:[2]},8,["href"])):Ws("",!0)])}]]),nEe={name:"GettyLocationHighlightsOverlay",components:{GettyLocationHighlightsDrawer:XTe,GettyLocationHighlightsMap:tEe,Modal:Poe},props:{active:{type:Boolean,default:!1},headingLevel:{type:Number,default:1},inViewItemIndex:{type:Number,default:0}},inject:["modalId","mapImage","modalHeadingA11yText"],data:H((()=>({activeItemIndex:0,eventBus:Rse()})),"data"),watch:{inViewItemIndex(e){this.activeItemIndex=e}},mounted(){},computed:{barHeadingLevel(){return this.headingLevel+1}},methods:{modalClosed(){this.activeItemIndex=this.inViewItemIndex,this.$parent.$emit("modalAfterClose")},closeModal(){this.$parent.$emit("closeModal")},handlePointClick(e,t){this.activeItemIndex=e,this.eventBus.emit("overlayIndexUpdated",e),t.preventDefault()}}},iEe={name:"GettyLocationHighlightsBar",components:{GuiLink:rre,Heading:jre,GettyLocationHighlightsOverlay:Wee(nEe,[["render",function(e,t,n,i,r,a){const s=Yr("GettyLocationHighlightsMap"),o=Yr("GettyLocationHighlightsDrawer"),l=Yr("Modal");return As(),Os(l,{id:a.modalId,showCloseButton:!1,a11yHeading:"Explore Map of Location Highlights",class:"o-getty-location-highlights__overlay",onAfterClose:a.modalClosed},{default:Ii((()=>[t[0]||(t[0]=Bs("p",{class:"visually-hidden"}," This content is the same as in the main page so may not be helpful to screen reader users. ",-1)),Hs(s,{image:a.mapImage,activeItemIndex:r.activeItemIndex,anchorPoints:!1,onPointClick:a.handlePointClick},null,8,["image","activeItemIndex","onPointClick"]),Hs(o,{active:n.active,activeItemIndex:r.activeItemIndex,headingLevel:a.barHeadingLevel,onTriggerClose:a.closeModal},null,8,["active","activeItemIndex","headingLevel","onTriggerClose"])])),_:1,__:[0]},8,["id","onAfterClose"])}]]),Icon:Xie},props:{activeItemIndex:{type:Number,default:0},headingId:{type:String,default:null},headingLevel:{type:Number,default:2},links:{type:Array,default:null},overlayActive:{type:Boolean,default:!1},overlayToggleText:{type:String,default:null},toggleFocussed:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},emits:["closeModal","modalAfterClose","toggleModal"],inject:["items"],data:H((()=>({activeOverlayItemIndex:0,bkgd:null,eventBus:Rse(),uid:br()})),"data"),computed:{inViewItemIndex(){const e=this.activeItemIndex+1;return 0===e?1:e},linkListHeadingId(){let e=`highlightsBar${this.uid}LinkList`;return this.headingId&&(e=this.headingId),e},classes(){const e=[];return this.overlayActive&&(e.push("o-getty-location-highlights__bar--overlay-active"),this.bkgd&&e.push(`
100s-bg--${this.bkgd}`)),this.visible&&e.push("o-getty-location-highlights__bar--visible"),e}},mounted(){this.eventBus.on("overlayIndexUpdated",this.updateActiveIndex)},methods:{closeModal(){this.$emit("closeModal")},modalAfterClose(){this.$emit("modalAfterClose")},toggleModal(){this.$emit("toggleModal"),this.updateActiveIndex(this.activeItemIndex)},updateActiveIndex(e){const t=e<0?0:e,n=this.items[t];this.bkgd=n?n.bkgd:null,this.activeOverlayItemIndex=e}}},rEe={class:"o-getty-location-highlights__bar-wrapper"},aEe={class:"gui-container"},sEe={class:"o-getty-location-highlights__bar-inner"},oEe={class:"o-getty-location-highlights__bar-main"},lEe={class:"o-getty-location-highlights__bar-index","aria-hidden":"true"},uEe={key:0,class:"o-getty-location-highlights__bar-aside"},cEe=["aria-labelledby"],dEe=Wee(iEe,[["render",function(e,t,n,i,r,a){const s=Yr("GettyLocationHighlightsOverlay"),o=Yr("Icon"),l=Yr("Heading"),u=Yr("GuiLink");return As(),Ps("div",{class:Fe(["o-getty-location-highlights__bar",a.classes])},[Hs(s,{active:n.overlayActive,inViewItemIndex:n.activeItemIndex},null,8,["active","inViewItemIndex"]),Bs("div",rEe,[Bs("div",aEe,[Bs("div",sEe,[Bs("div",oEe,[Bs("span",lEe,ze(a.inViewItemIndex),1),Bs("button",{class:Fe(["o-getty-location-highlights__bar-toggle",{"o-getty-location-highlights__bar-toggle--focus":this.toggleFocussed}]),onClick:t[0]||(t[0]=(...e)=>a.toggleModal&&a.toggleModal(...e)),"aria-hidden":"true",tabindex:"-1"},[Hs(o,{name:"mapFold"}),Bs("span",null,ze(n.overlayToggleText),1)],2)]),n.links?(As(),Ps("div",uEe,[Hs(l,{id:a.linkListHeadingId,level:n.headingLevel,class:"visually-hidden"},{default:Ii((()=>t[1]||(t[1]=[qs(" Location Links ")]))),_:1,__:[1]},8,["id","level"]),Bs("ul",{class:"o-getty-location-highlights__bar-links","aria-labelledby":a.linkListHeadingId},[(As(!0),Ps(Ss,null,ea(n.links,((e,t)=>(As(),Ps("li",{key:`highlightsBar${t}`},[Hs(u,Zs({ref_for:!0},e,{href:e.url,underline:!0}),{default:Ii((()=>[qs(ze(e.text),1)])),_:2},1040,["href"])])))),128))],8,cEe)])):Ws("",!0)])])])],2)}]]),pEe={name:"GettyLocationHighlights",components:{Carousel:O_e,GettyLocationHighlightsBar:dEe,GettyLocationHighlightsMap:tEe,GuiLink:rre,Heading:jre,Icon:Xie,ImageResponsive:vae,ListOfLinks:zre,ModuleHeader:mpe,OpenNowStatus:Wae,RichText:cre},mixins:[Ure,Noe,ate],props:{items:{type:Array,required:!0},barLinks:{type:Array,default:null},baseHeadingLevel:{type:Number,default:2},header:{type:Object,default:null},mapDownloadLink:{type:String,default:null},mapImage:{type:Object,default:null},modalHeadingA11yText:{type:String,default:null},openHours:{type:Object,default:null}},setup({items:e}){const t=Tn(null),n=Tn(!1);return VTe({delay:250,items:e,refs:"items",threshold:[.5,.75,1]},(({index:i,item:r,state:a})=>{t.value=i,(({index:t,item:i,state:r})=>{const{intersection:a}=i||{},{boundingClientRect:s,intersectionRatio:o}=a||{},{top:l}=s||{},u=t===e.length-1,c=o>.75,d=l&&l<0,p=l&&l>0,h=!r.some((({intersection:e})=>e.isIntersecting)),f=!i||h||u&&p&&c||u&&d;n.value=!f})({index:i,item:r,state:a})})),{activeItemIndex:t,showBar:n}},data(){const e=br();return{amenityInfoHeadingId:`GettyLocationHighlights${e}AmenityInfoHeading`,barHeadingId:`GettyLocationHighlights${e}LocationLinksHeading`,carouselHeadingId:`GettyLocationHighlights${e}LocationCarousel`,overlayActive:!1,modalId:`highlights${e}Modal`,offScreenToggleIsFocussed:!1,carouselOptions:{headingLevel:5}}},provide(){return{items:this.items,mapImage:this.mapImage,modalId:this.modalId,modalHeadingA11yText:this.modalHeadingA11yText}},computed:{barHeadingLevel(){return this.baseHeadingLevel},introHeadingLevel(){return this.baseHeadingLevel},itemHeadingLevel(){return this.baseHeadingLevel+1},amenityInfoHeadingLevel(){return this.itemHeadingLevel+1},amenityInfoItemHeadingLevel(){return this.amenityInfoHeadingLevel+1},overlayToggleText(){return this.overlayActive?"Collapse map":"Show on Map"},carouselHeadingLevel(){return this.baseHeadingLevel+2}},methods:{handlePointClick(e,t){const n=`#${this.items[e].header.id}`;if(t.preventDefault(),n&&n.startsWith("#")){this.scrollToHash(n,110,(()=>{const e=document.querySelector(n);setTimeout((()=>{e.focus()}),110)}));const e=window.location.pathname;window.history.pushState({},"",`${e}${n}`)}},closeModal(){this.triggerModalClose(this.modalId),this.modalClosed()},modalOpened(){this.overlayActive=!0},modalClosed(){this.overlayActive=!1},offScreenToggleFocus(){this.offScreenToggleIsFocussed=!0},offScreenToggleBlur(){this.offScreenToggleIsFocussed=!1},toggleModal(){this.overlayActive?(this.triggerModalClose(this.modalId),this.modalClosed()):(this.triggerModalOpen(this.modalId),this.modalOpened())}}},hEe={key:0,class:"o-getty-location-highlights gui-container",ref:"container"},fEe={class:"o-getty-location-highlights__intro"},mEe={class:"o-getty-location-highlights__items"},gEe=["aria-labelledby"],yEe={class:"o-getty-location-highlights__item-inner"},vEe={class:"o-getty-location-highlights__item-main"},bEe=["aria-labelledby","role"],_Ee=["role"],wEe={class:"o-getty-location-highlights__item-card-body"},SEe=["innerHTML"],CEe={class:"o-getty-location-highlights__item-media"},kEe=["aria-labelledby"],xEe=Wee(pEe,[["render",function(e,t,n,i,r,a){const s=Yr("ListOfLinks"),o=Yr("OpenNowStatus"),l=Yr("ModuleHeader"),u=Yr("GettyLocationHighlightsMap"),c=Yr("Heading"),d=Yr("Icon"),p=Yr("RichText"),h=Yr("ImageResponsive"),f=Yr("Carousel"),m=Yr("GettyLocationHighlightsBar");return n.items?(As(),Ps("section",hEe,[Bs("div",fEe,[n.header&&n.header.title?(As(),Os(l,{key:0,headingLevel:a.introHeadingLevel},ta({default:Ii((()=>[qs(ze(n.header.title)+" ",1)])),_:2},[n.header.intro?{name:"intro",fn:Ii((()=>[Bs("p",null,ze(n.header.intro),1),Hs(s,{labelId:r.barHeadingId,links:n.barLinks,modifiers:["space-before"],withIcons:"after"},null,8,["labelId","links"])])),key:"0"}:void 0,n.openHours?{name:"aside",fn:Ii((()=>[Hs(o,{openHours:n.openHours},null,8,["openHours"])])),key:"1"}:void 0]),1032,["headingLevel"])):Ws("",!0),Hs(u,{image:n.mapImage,downloadLink:n.mapDownloadLink,activeItemIndex:i.activeItemIndex,onPointClick:a.handlePointClick},null,8,["image","downloadLink","activeItemIndex","onPointClick"])]),Bs("div",mEe,[(As(!0),Ps(Ss,null,ea(n.items,((n,i)=>(As(),Ps("section",{class:"o-getty-location-highlights__item",ref_for:!0,ref:"items",key:n.header.id,"aria-labelledby":n.header.id},[Bs("div",yEe,[Bs("div",vEe,[n.header&&n.header.title?(As(),Os(l,{key:0,id:n.header.id,headingLevel:a.itemHeadingLevel},ta({default:Ii((()=>[qs(ze(n.header.title)+" ",1)])),_:2},[n.header.intro?{name:"intro",fn:Ii((()=>[Bs("p",null,ze(n.header.intro),1)])),key:"0"}:void 0]),1032,["id","headingLevel"])):Ws("",!0),n.links?(As(),Os(s,{key:1,links:n.links,modifiers:["space-before","link-underline"],labelId:n.header.id,class:"o-getty-location-highlights__item-links"},null,8,["links","labelId"])):Ws("",!0),n.cards?(As(),Ps(Ss,{key:2},[Hs(c,{id:`${r.amenityInfoHeadingId}${i}`,level:a.amenityInfoHeadingLevel,class:"visually-hidden"},{default:Ii((()=>t[3]||(t[3]=[qs(" Amenity Information ")]))),_:2,__:[3]},1032,["id","level"]),Bs("ul",{class:"o-getty-location-highlights__item-cards","aria-labelledby":`${r.amenityInfoHeadingId}${i}`,role:e.getListRole(n.cards)}
100,[(As(!0),Ps(Ss,null,ea(n.cards,(t=>(As(),Ps("li",{key:t.id,class:"o-getty-location-highlights__item-card",role:e.getListRole(n.cards)},[Hs(c,{level:a.amenityInfoItemHeadingLevel,class:"o-getty-location-highlights__item-card-title"},{default:Ii((()=>[qs(ze(t.title),1)])),_:2},1032,["level"]),Bs("div",wEe,[t.icon?(As(),Os(d,{key:0,name:t.icon},null,8,["name"])):Ws("",!0),Bs("span",{innerHTML:t.body},null,8,SEe)])],8,_Ee)))),128))],8,bEe)],64)):Ws("",!0),Bs("button",{class:"o-getty-location-highlights__map-toggle visually-hidden",type:"button",onClick:t[0]||(t[0]=(...e)=>a.toggleModal&&a.toggleModal(...e)),onFocus:t[1]||(t[1]=(...e)=>a.offScreenToggleFocus&&a.offScreenToggleFocus(...e)),onBlur:t[2]||(t[2]=(...e)=>a.offScreenToggleBlur&&a.offScreenToggleBlur(...e))}," Show on map: "+ze(n.header.title),33)]),Bs("div",CEe,[Bs("section",{"aria-labelledby":n.carousel.length>1?`${r.carouselHeadingId}${i}`:null},[n.carousel.length>1?(As(),Os(c,{key:0,id:`${r.carouselHeadingId}${i}`,level:a.carouselHeadingLevel,class:"visually-hidden"},{default:Ii((()=>[qs(ze(n.header.title)+" Carousel ",1)])),_:2},1032,["id","level"])):Ws("",!0),Hs(f,{customOptions:r.carouselOptions},{default:Ii((()=>[(As(!0),Ps(Ss,null,ea(n.carousel,(e=>(As(),Ps("div",{key:e.id},[Hs(h,Zs({ref_for:!0},F({},e.image),{size:"post_large_3_2"}),{default:Ii((()=>[e.caption?(As(),Os(p,{key:0,content:e.caption},null,8,["content"])):Ws("",!0)])),_:2},1040)])))),128))])),_:2},1032,["customOptions"])],8,kEe)])])],8,gEe)))),128)),Hs(m,{activeItemIndex:i.activeItemIndex,headingId:r.barHeadingId,headingLevel:a.barHeadingLevel,links:n.barLinks,overlayActive:r.overlayActive,overlayToggleText:a.overlayToggleText,toggleFocussed:r.offScreenToggleIsFocussed,visible:i.showBar,onToggleModal:a.toggleModal,onCloseModal:a.closeModal,onModalAfterClose:a.modalClosed},null,8,["activeItemIndex","headingId","headingLevel","links","overlayActive","overlayToggleText","toggleFocussed","visible","onToggleModal","onCloseModal","onModalAfterClose"])])],512)):Ws("",!0)}]]),TEe={name:"HeroEditorialSocial",components:{Heading:jre,Icon:Xie,ShareNetwork:QV},props:{baseHeadingLevel:{type:Number,default:2},hideLinks:{type:Boolean,default:!1},shareUrl:{type:String,default:null},title:{type:String,default:null}},data:H((()=>({listLabelID:`SocialLinks${br()}Heading`,copyAlertActive:!1,copyAlertMaxWidth:null,url:""})),"data"),computed:{copyAlertMaxWidthVar(){return this.copyAlertMaxWidth?{"--copy-alert-max-width":`${this.copyAlertMaxWidth}px`}:null},copyIcon(){return this.copyAlertActive?"check":"weblink"},listHeadingLevel(){return this.baseHeadingLevel}},methods:{copyShareLink(){navigator.clipboard.writeText(this.url).then((()=>{this.copyAlertActive=!0}),(()=>{console.warn("Failed to copy url to the clipboard.")})),this.copyAlertMaxWidth=this.$refs.copyAlert.getBoundingClientRect().right},hideCopyAlert(){this.copyAlertActive=!1}},mounted(){this.url=this.shareUrl||window.location.href,window.addEventListener("click",this.hideCopyAlert)}},EEe=["aria-labelledby"],AEe=["tabindex"],LEe={role:"alert",class:"visually-hidden"},IEe={key:0},$Ee=["onClick","tabindex"],DEe=["onClick","tabindex"],PEe=Wee(TEe,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("Icon"),l=Yr("ShareNetwork");return As(),Ps("div",null,[Hs(s,{id:r.listLabelID,level:a.listHeadingLevel,class:"visually-hidden"},{default:Ii((()=>t[2]||(t[2]=[qs(" Social Sharing ")]))),_:1,__:[2]},8,["id","level"]),Bs("ul",{class:Fe(["o-hero__social",{"o-hero__social--copy-active":r.copyAlertActive}]),"aria-labelledby":r.listLabelID},[Bs("li",{style:Pe(a.copyAlertMaxWidthVar)},[Bs("button",{tabindex:n.hideLinks?"-1":null,onBlur:t[0]||(t[0]=(...e)=>a.hideCopyAlert&&a.hideCopyAlert(...e)),onClick:t[1]||(t[1]=Kl(((...e)=>a.copyShareLink&&a.copyShareLink(...e)),["prevent","stop"]))},[Hs(o,{name:a.copyIcon,size:24,"aria-hidden":"true"},null,8,["name"]),t[3]||(t[3]=Bs("span",{class:"visually-hidden"},"Copy Page URL",-1))],40,AEe),Bs("span",LEe,[r.copyAlertActive?(As(),Ps("span",IEe,"URL copied to clipboard")):Ws("",!0)]),Bs("span",{ref:"copyAlert","aria-hidden":"true",class:Fe(["o-hero__social-copy-alert",{"visually-hidden":!r.copyAlertActive}])}," URL copied to clipboard ",2)],4),Bs("li",null,[Hs(l,{network:"facebook",title:n.title,url:r.url},{default:Ii((({share:e})=>[Bs("button",{onClick:Kl(e,["prevent"]),tabindex:n.hideLinks?"-1":null},[Hs(o,{name:"facebook",size:24,"aria-hidden":"true"}),t[4]||(t[4]=Bs("span",{class:"visually-hidden"}," Share on Facebook. Opens in new tab. ",-1))],8,$Ee)])),_:1},8,["title","url"])]),Bs("li",null,[Hs(l,{network:"twitter",title:n.title,url:r.url},{default:Ii((({share:e})=>[Bs("button",{onClick:Kl(e,["prevent"]),tabindex:n.hideLinks?"-1":null},[Hs(o,{name:"twitter",size:24,"aria-hidden":"true"}),t[5]||(t[5]=Bs("span",{class:"visually-hidden"}," Share on Twitter. Opens in new tab. ",-1))],8,DEe)])),_:1},8,["title","url"])])],10,EEe)])}]]),OEe={class:"o-hero__container gui-container"},MEe={class:"o-hero__upper"},REe={class:"o-hero__lower"},NEe={class:"o-hero__main"},FEe={key:3,class:"o-hero__content"},BEe={key:0,class:"o-hero__aside"}
100,HEe={class:"o-hero__meta-bar"},jEe={class:"o-hero__meta-bar-inner"},UEe={key:0,class:"o-hero__meta"},VEe={key:0,class:"o-hero__meta-authors"},qEe={key:1,class:"o-hero__meta-published"},zEe={key:0,class:"o-hero__meta-duration"},WEe={key:2,class:"o-hero__meta-updated"},GEe=Wee({name:"HeroAside",components:{Breadcrumbs:Zhe,GuiLink:rre,Heading:jre,HeroEditorialSocial:PEe,ImageResponsive:vae,NavDropdown:Xye,RichText:cre,VideoPlayer:nSe},props:{title:{type:String,default:null},subtitle:{type:String,default:null},intro:{type:String,default:null},breadcrumbs:{type:Array,default:null},media:{type:Object,default:null},metadata:{type:Object,default:null}},computed:{heroImageSize(){if(this.media)return"contained"===this.media.layout?"hero_editorial_contained":"hero_editorial_full_bleed"},mediaClasses(){return`o-hero__media--${this.media.layout||""}`},mediaComponent(){return"image"===this.media.type?"ImageResponsive":"video"===this.media.type?"VideoPlayer":void 0},mediaData(){return"image"===this.media.type?B(F({},this.media),{size:this.heroImageSize}):"video"===this.media.type?{sources:this.media.sources,poster:this.media.poster,tracks:this.media.tracks}:void 0}}},[["render",function(e,t,n,i,r,a){const s=Yr("Breadcrumbs"),o=Yr("RichText"),l=Yr("Heading"),u=Yr("HeroEditorialSocial");return As(),Ps("section",null,[Bs("div",OEe,[Bs("div",MEe,[Hs(s,{items:n.breadcrumbs},null,8,["items"])]),Bs("div",REe,[Bs("div",NEe,[n.title?(As(),Os(l,{key:0,level:1,id:"content",class:"o-hero__title","data-testid":"content",tabindex:"-1"},{default:Ii((()=>[n.title?(As(),Os(o,{key:0,content:n.title},null,8,["content"])):Ws("",!0)])),_:1})):Ws("",!0),n.subtitle?(As(),Os(o,{key:1,class:"o-hero__subtitle",content:n.subtitle},null,8,["content"])):Ws("",!0),n.intro?(As(),Os(o,{key:2,class:"o-hero__intro",content:n.intro},null,8,["content"])):Ws("",!0),this.$slots.content?(As(),Ps("div",FEe,[na(e.$slots,"content")])):Ws("",!0)]),this.$slots.aside?(As(),Ps("div",BEe,[na(e.$slots,"aside")])):Ws("",!0)]),n.media?(As(),Ps("div",{key:0,class:Fe(["o-hero__media",a.mediaClasses])},[(As(),Os(Xr(a.mediaComponent),Be(Us(F({},a.mediaData))),{default:Ii((()=>[n.media.caption?(As(),Ps(Ss,{key:0},[n.media.caption.rights?(As(),Os(o,{key:0,class:"o-hero__caption o-hero__caption--rights",content:n.media.caption.rights},null,8,["content"])):Ws("",!0),n.media.caption.credit?(As(),Os(o,{key:1,class:"o-hero__caption o-hero__caption--credit",content:n.media.caption.credit},null,8,["content"])):Ws("",!0),n.media.caption.descriptive?(As(),Os(o,{key:2,class:"o-hero__caption o-hero__caption--descriptive",content:n.media.caption.descriptive},null,8,["content"])):Ws("",!0)],64)):Ws("",!0)])),_:1},16))],2)):Ws("",!0),Bs("div",HEe,[Bs("div",jEe,[n.metadata?(As(),Ps("div",UEe,[n.metadata.authors?(As(),Ps("p",VEe,[t[0]||(t[0]=qs(" By ")),(As(!0),Ps(Ss,null,ea(n.metadata.authors,((e,t)=>(As(),Ps(Ss,{key:`ArticleAuthor${t}`},[n.metadata.authors.length>2&&n.metadata.authors.length===t+1?(As(),Ps(Ss,{key:0},[qs("and ")],64)):Ws("",!0),(As(),Os(Xr(e.url?"a":"span"),{href:e.url?e.url:null},{default:Ii((()=>[qs(ze(e.text),1)])),_:2},1032,["href"])),t!==n.metadata.authors.length-1?(As(),Ps(Ss,{key:1},[qs(", ")],64)):Ws("",!0)],64)))),128))])):Ws("",!0),n.metadata.publishedDate?(As(),Ps("span",qEe,[qs(ze(n.metadata.publishedDate)+" ",1),n.metadata.duration?(As(),Ps("span",zEe,ze(n.metadata.duration),1)):Ws("",!0)])):Ws("",!0),n.metadata.updatedDate?(As(),Ps("span",WEe,ze(n.metadata.updatedDate),1)):Ws("",!0),Hs(u,{title:n.title},null,8,["title"])])):Ws("",!0)])])])])}]]),KEe={data:H((()=>({eventBus:Rse()})),"data"),mounted(){this.updateHeaderColor()},methods:{updateHeaderColor(){this.eventBus.emit("updateHeaderColor",this.backgroundColor)}}},YEe=["aria-labelledby"],ZEe={class:"o-hero__container"},XEe={class:"o-hero__row-content-inner"},QEe={class:"o-hero__row-header"},JEe={key:1,class:"o-hero__row-subtitle"},eAe={key:0,class:"o-hero__row-meta"},tAe={key:1,class:"o-hero__row-meta o-hero__row-meta--secondary"},nAe=["aria-label"],iAe={class:"o-hero__media"},rAe={class:"o-hero__logo-wrap"},aAe=Wee({name:"HeroBlocks",mixins:[KEe],components:{Heading:jre,ImageResponsive:vae,Icon:Xie,Logo:Tae,VideoBackgroun
100d:Cse},props:{rows:{type:Array,default:H((()=>[]),"default")}},data:H((()=>({eventBus:Rse(),activeRow:0,viewWidth:null,isMobileLayout:!1,initialized:!1,backgroundColor:"blue",cookieSet:null,observer:null,hiddenArrows:-1})),"data"),computed:{componentId:H((()=>"heroBlocksTitle"),"componentId"),rowData(){let e=this.rows;return this.cookieSet&&(e=[this.rows[0]]),e},logoStyles(){const e={};return this.isMobileLayout?e.maxWidth=null:this.cookieSet&&(e.maxWidth=.5625*this.viewWidth+"px"),e},wrapperVars(){return{"--hero-bocks__count":this.rowData.length}}},beforeMount(){this.cookieSet=null!==ufe("getty_home_hero")},mounted(){this.setViewWidth(),this.updateHeaderColor(),this.debouncedFixHeight=ete(this.handleResize),window.addEventListener("resize",this.debouncedFixHeight),this.debouncedHeaderScroll=ete(this.headerScroll,50,!0),this.headerScroll(),window.addEventListener("scroll",this.debouncedHeaderScroll),window.addEventListener("scroll",this.hideArrow),this.init(),lfe("getty_home_hero","1",7)},unmount(){window.removeEventListener("resize",this.debouncedResize),window.removeEventListener("scroll",this.debouncedHeaderScroll)},methods:{init(){this.isMobileLayout?this.initSmall():this.initLarge()},initSmall(){this.observer&&this.observer.disconnect(),this.initialized=!1},initLarge(){if(this.initialized)return;this.observer=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(this.activeRow=this.$refs.row.indexOf(e.target))}))}),{root:null,rootMargin:"0px",threshold:.5});let e=this.$refs.row;e&&e.forEach((e=>{this.observer.observe(e)})),this.initialized=!0},handleResize(){this.setViewWidth(),this.init()},headerScroll(){const e=this.$el.getBoundingClientRect().bottom;this.eventBus.emit("scrollOverHero",e>=0),this.eventBus.emit("hideLogo",e>=0)},contentBackgroundClass:H((e=>(e||(e="blue"),`s-bg--${e}`)),"contentBackgroundClass"),jumpToContent(){this.isMobileLayout||(rte({top:this.$el.offsetHeight}),setTimeout((()=>{const e=this.$el.nextElementSibling;e&&(e.setAttribute("tabindex","-1"),e.focus())}),600))},hideArrow(){this.hiddenArrows=-1,this.$refs.row.forEach(((e,t)=>{e.getBoundingClientRect().bottom<200&&(this.hiddenArrows=t)}))},setViewWidth(){this.viewWidth=document.documentElement.clientWidth}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("Icon"),l=Yr("ImageResponsive"),u=Yr("VideoBackground"),c=Yr("Logo");return As(),Ps("section",{class:Fe([{"o-hero--blocks--scrolled":r.activeRow>0,"o-hero--blocks--simple":r.cookieSet}]),"aria-labelledby":a.componentId},[t[2]||(t[2]=Bs("div",{class:"o-hero--blocks__shadow-wrapper"},[Bs("div",{class:"o-hero--blocks__shadow"})],-1)),Bs("div",ZEe,[Bs("div",{ref:"rows",class:"o-hero__inner",style:Pe(a.wrapperVars)},[(As(!0),Ps(Ss,null,ea(a.rowData,((e,n)=>(As(),Ps("div",{ref_for:!0,ref:"row",key:n,class:Fe(["o-hero__row",{"o-hero__row--active":r.isMobileLayout||r.activeRow>=n}])},[Bs("div",{class:Fe(["o-hero__row-content",a.contentBackgroundClass(e.backgroundColor)])},[Bs("div",XEe,[(As(),Os(Xr(e.href?"a":"div"),{href:e.href?e.href:null},{default:Ii((()=>[Bs("div",QEe,[e.title?(As(),Os(s,{key:0,level:3,id:0===n?"content":null,"data-testid":0===n?"content":null,tabindex:0===n?"-1":null,class:"o-hero__row-title"},{default:Ii((()=>[qs(ze(e.title),1)])),_:2},1032,["id","data-testid","tabindex"])):Ws("",!0),e.subtitle?(As(),Ps("span",JEe,ze(e.subtitle),1)):Ws("",!0)]),e.metaPrimary?(As(),Ps("span",eAe,ze(e.metaPrimary),1)):Ws("",!0),e.metaSecondary?(As(),Ps("span",tAe,ze(e.metaSecondary),1)):Ws("",!0)])),_:2},1032,["href"])),e.media&&e.media.alt?(As(),Ps("span",{key:0,class:"visually-hidden","aria-label":e.media.alt,role:"img"},null,8,nAe)):Ws("",!0)]),0===n?(As(),Ps("button",{key:0,class:Fe(["o-hero__row-scroll",{"o-hero__row-scroll--hidden":r.hiddenArrows>-1&&n<=r.hiddenArrows}]),onClick:t[0]||(t[0]=Kl(((...e)=>a.jumpToContent&&a.jumpToContent(...e)),["prevent"]))},[Hs(o,{name:"ArrowDown",size:32}),t[1]||(t[1]=Bs("span",{class:"o-hero__row-scroll-label"},"Skip introduction",-1))],2)):Ws("",!0)],2)],2)))),128))],4),Bs("div",iAe,[(As(!0),Ps(Ss,null,ea(a.rowData,((e,t)=>(As(),Ps("div",{key:`media_${t}`,class:Fe(["o-hero__media-row",{"o-hero__media-row--active":r.isMobileLayout||r.activeRow>=t}])},[e.media?(As(),Ps(Ss,{key:0},["image"===e.media.type?(As(),Os(l,Zs({key:0,ref_for:!0},F({},e.media),{size:"hero_full_bleed",idAttr:`hero-media-${t}`,ariaHidden:!0}),null,16,["idAttr"])):Ws("",!0),"video"===e.media.type?(As(),Os(u,{key:1,sources:e.media.sources},null,8,["sources"])):Ws("",!0)],64)):Ws("",!0)],2)))),128))]),Bs("div",rAe,[Hs(c,{style:Pe(a.logoStyles)},null,8,["style"])])])],10,YEe)}]]),sAe={name:"HeroColorBlock",components:{Credits:Ere,FeaturePost:vye,Heading:jre,ImageResponsive:vae,Icon:Xie,RichText:cre,VideoBackgroun
100d:Cse},mixins:[KEe],props:{title:{type:String,default:null},subtitle:{type:String,default:null},backgroundColor:{type:String,default:"blue"},media:{type:Object,default:null},links:{type:Array,default:null},credits:{type:String,default:null},displayShortBlock:{type:Boolean,default:!1},featurePost:{type:Object,default:null}},data:H((()=>({mediaHeight:null,asideHeight:0,asideSticky:!1,oldY:-1,animationEnd:!1,overlayHeight:0})),"data"),computed:{asideStyles(){return{height:`${this.asideHeight}px`}},mediaComponent(){return"image"===this.media.type?"ImageResponsive":"VideoBackground"},mediaStyles(){return{height:this.mediaHeight}},backgroundClass(){return this.updateHeaderColor(),`s-bg--${this.backgroundColor}`}},mounted(){this.$el.addEventListener("animationend",this.animationComplete),this.$refs.main&&(this.setOverlayHeight(),this.debouncedOverlay=ete(this.setOverlayHeight),window.addEventListener("resize",this.debouncedOverlay)),this.$refs.aside&&(this.debouncedResize=ete(this.fixHeight),window.addEventListener("resize",this.debouncedResize),this.fixHeight(),window.addEventListener("scroll",this.handleScroll),this.handleScroll())},unmount(){this.$el.removeEventListener("animationend",this.animationComplete),this.$refs.aside&&(window.removeEventListener("resize",this.debouncedResize),window.removeEventListener("scroll",this.handleScroll)),this.$refs.main&&window.removeEventListener("resize",this.debouncedOverlay)},methods:{setOverlayHeight(){this.$nextTick((()=>{const e=this.$refs.main.offsetHeight-60,t=this.$refs.media.offsetHeight/2-e;this.overlayHeight=t}))},animationComplete(){this.animationEnd=!0},fixHeight(){this.$nextTick((()=>{const e=document.documentElement.clientHeight;this.asideHeight=this.$refs.aside.querySelector(".m-jump-links__inner").offsetHeight;const t=this.$refs.title.offsetHeight,n=this.$refs.media.offsetHeight,i=this.asideHeight;0===n&&(this.mediaHeight=e-t-i+"px",this.mediaHeight=null)}))},handleScroll(){if(!this.$refs.aside)return;const e=window.scrollY;if(this.oldY!==e){const t=this.$el.offsetHeight-this.asideHeight;this.asideSticky=e>=t&&e>=this.oldY}this.oldY=e},scrollDown(){const e=this.$el.nextElementSibling;e&&rte({top:e.offsetTop})}}},oAe={class:"o-hero__inner gui-container"},lAe={key:1,ref:"media",class:"o-hero__media-inner"},uAe={class:"o-hero__title-wrap"},cAe=Wee(sAe,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("FeaturePost"),l=Yr("RichText"),u=Yr("Credits");return As(),Ps("section",{class:Fe({"o-hero--color-block--video":n.media&&"video"===n.media.type,"o-hero--animation-end":r.animationEnd,"o-hero--color-block--short":n.displayShortBlock})},[Bs("div",oAe,[Bs("div",{ref:"title",class:Fe(["o-hero__header",a.backgroundClass])},[n.title?(As(),Os(s,{key:0,class:"o-hero__title","data-testid":"content",id:"content",ref:"title",tabindex:"-1"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},512)):Ws("",!0)],2),Bs("div",{class:"o-hero__media",ref:"media",style:Pe(F({},a.mediaStyles))},[n.featurePost?(As(),Os(o,Zs({key:0},n.featurePost,{class:"o-hero__feature-post"}),null,16)):n.media?(As(),Ps("div",lAe,[(As(),Os(Xr(a.mediaComponent),Zs(F({},n.media),{size:"image"===n.media.type?"hero_full_bleed":null}),null,16,["size"]))],512)):Ws("",!0),n.featurePost?Ws("",!0):(As(),Ps("div",{key:2,class:"o-hero__main",ref:"main",style:Pe({"--title-overlay":`${r.overlayHeight}px`,"--title-overlay-neg":`-${r.overlayHeight}px`})},[Bs("div",uAe,[n.subtitle?(As(),Os(l,{key:0,content:n.subtitle,inline:!0,class:"o-hero__subtitle",ref:"subtitle"},null,8,["content"])):Ws("",!0),n.credits?(As(),Os(u,{key:1,ariaLabel:n.media?n.media.alt:null},{default:Ii((()=>[qs(ze(n.credits),1)])),_:1},8,["ariaLabel"])):Ws("",!0)])],4))],4),n.links?(As(),Ps("div",{key:0,ref:"aside",class:Fe(["o-hero__aside",{"o-hero__aside--sticky":r.asideSticky}]),style:Pe(a.asideStyles)},[na(e.$slots,"links")],6)):Ws("",!0)])],2)}]]),dAe={class:"o-hero__container gui-container"},pAe=Wee({name:"HeroContent",components:{Heading:jre},mixins:[KEe],props:{title:{type:String,default:null,required:!0},backgroundColor:{type:String,default:"blue"},links:{type:Array,default:null}},data:H((()=>({rAF:null,mediaHeight:null,asideTop:-1,asideSticky:!1,asidePositionTop:null,oldY:-1,animationEnd:!1,alertsHeight:0})),"data"),computed:{backgroundClass(){return this.updateHeaderColor(),`s-bg--${this.backgroundColor}`}},mounted(){this.$el.addEventListener("animationend",this.animationComplete),this.$refs.aside&&(this.rAF=window.requestAnimationFrame(this.handleScroll))},unmount(){this.$el.removeEventListener("animationend",this.animationComplete),this.$refs.aside&&(window.cancelAnimationFrame(this.rAF),this.rAF=null)},methods:{animationComplete(){this.animationEnd=!0},getAsideStyles(){return{"--aside-height":this.$refs.aside?`${this.$refs.aside.clientHeight}px`:"0px"}},handleScroll(){if(!this.$refs.aside)return;const e=window.scrollY;if(this.oldY!==e){const t=this.$refs.aside.offsetTop;this.asideSticky=e>=t&&e>=this.oldY}this.oldY=e,this.rAF=window.requestAnimationFrame(this.handleScroll)},scrollDown(){const e=this.$el.nextElementSibling;e&&rte({top:e.offsetTop})}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading");return As(),Ps("section",{class:Fe({"o-hero--animation-end":r.animationEnd})},[Bs("div",dAe,[Bs("div",{ref:"title",class:Fe(["o-hero__inner",a.backgroundClass])},[n.title?(As(),Os(s,{key:0,class:"o-hero__title",ref:"title",id:"content",tabindex:"-1","data-testid":"content"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},512)):Ws("",!0)],2),n.links?(As(),Ps("div",{key:0,ref:"aside",class:Fe(["o-hero__aside",{"o-hero__aside--sticky":r.asideSticky}]),style:Pe(a.getAsideStyles())}
100,[na(e.$slots,"links")],6)):Ws("",!0)])],2)}]]),hAe={name:"HeroDetail",components:{Breadcrumbs:Zhe,GuiLink:rre,Heading:jre,ImageResponsive:vae,NavDropdown:Xye,RichText:cre},props:{title:{type:String,default:null},subtitle:{type:String,default:null},cta:{type:Object,default:null},meta:{type:String,default:null},media:{type:Object,default:null},breadcrumbs:{type:Array,default:null},dropdown:{type:Object,default:null},linksFirst:{type:Boolean,default:!1},links:{type:Array,default:null},subheading:{type:String,default:null}},data:H((()=>({linksHeight:0,linksSticky:!1,oldY:-1})),"data"),mounted(){this.$refs.links&&(this.debouncedResize=ete(this.getLinksHeight),window.addEventListener("resize",this.debouncedResize),this.getLinksHeight(),window.addEventListener("scroll",this.handleScroll),this.handleScroll())},computed:{linksStyles(){return{height:`${this.linksHeight}px`}},getImagePreset(){const{region:e}=this.media;return e&&e["16:9"]?"hero_project_full_bleed":"hero_editorial_full_bleed"}},methods:{getLinksHeight(){this.$nextTick((()=>{this.linksHeight=this.$refs.links.querySelector(".m-jump-links__inner").offsetHeight}))},handleScroll(){if(!this.$refs.links)return;const e=window.scrollY;if(this.oldY!==e){const t=this.$refs.links.offsetTop;this.linksSticky=e>=t&&e>=this.oldY}this.oldY=e}}},fAe={class:"o-hero__container gui-container"},mAe={class:"o-hero__upper"},gAe={class:"o-hero__middle"},yAe={class:"o-hero__main"},vAe={key:2,class:"o-hero__subheading"},bAe={class:"o-hero__aside"},_Ae={key:0,class:"o-hero__cta"},wAe={class:"o-hero__links"},SAe={key:1,class:Fe(["o-hero__media","o-hero__media--full-bleed"])},CAe=Wee(hAe,[["render",function(e,t,n,i,r,a){const s=Yr("Breadcrumbs"),o=Yr("Heading"),l=Yr("RichText"),u=Yr("NavDropdown"),c=Yr("GuiLink"),d=Yr("ImageResponsive");return As(),Ps("section",null,[Bs("div",fAe,[Bs("div",mAe,[Hs(s,{items:n.breadcrumbs},null,8,["items"])]),Bs("div",gAe,[Bs("div",yAe,[n.title?(As(),Os(o,{key:0,id:"content",class:"o-hero__title",ref:"title",tabindex:"-1","data-testid":"content"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},512)):Ws("",!0),n.subtitle?(As(),Os(l,{key:1,content:n.subtitle,class:"o-hero__subtitle",ref:"subtitle"},null,8,["content"])):Ws("",!0),n.subheading?(As(),Ps("div",vAe,[Hs(l,{content:n.subheading,inline:!0},null,8,["content"])])):Ws("",!0)]),Bs("div",bAe,[Hs(u,Zs(F({},n.dropdown),{useHeadings:!0}),null,16),n.cta?(As(),Ps("p",_Ae,[Hs(c,{href:n.cta.href},{default:Ii((()=>[qs(ze(n.cta.text),1)])),_:1},8,["href"])])):Ws("",!0)])]),Bs("div",wAe,[n.links&&n.linksFirst?(As(),Ps("div",{key:0,ref:"links",class:Fe(["o-hero__links",{"o-hero__links--sticky":r.linksSticky}]),style:Pe(a.linksStyles)},[na(e.$slots,"links")],6)):Ws("",!0),n.media?(As(),Ps("div",SAe,[Hs(d,Zs(F({},n.media),{size:a.getImagePreset}),{default:Ii((()=>[n.media.caption?(As(),Os(l,{key:0,class:"o-hero__caption o-hero__caption--descriptive",content:n.media.caption},null,8,["content"])):Ws("",!0),n.media.credit?(As(),Os(l,{key:1,class:"o-hero__caption o-hero__caption--credit",content:n.media.credit},null,8,["content"])):Ws("",!0)])),_:1},16,["size"])])):Ws("",!0),n.links&&!n.linksFirst?(As(),Ps("div",{key:2,ref:"links",class:Fe(["o-hero__links",{"o-hero__links--sticky":r.linksSticky}]),style:Pe(a.linksStyles)},[na(e.$slots,"links")],6)):Ws("",!0)])])])}]]),kAe={class:"m-publication"},xAe={class:"m-publication__inner"},TAe={class:"m-publication__main"},EAe={key:1,class:"m-publication__subtitle"},AAe={key:2,class:"m-publication__credit"},LAe={key:3,class:"m-publication__meta"},IAe={class:"m-publication__media"},$Ae={class:"o-hero__sticky-bar-inner gui-container"},DAe={class:"o-hero__sticky-bar-title"},PAe={class:"o-hero__sticky-bar-social"},OAe={class:"o-hero__container gui-container"},MAe={class:"o-hero__upper"},RAe={class:"o-hero__mid"},NAe={class:"o-hero__lower"},FAe={class:"o-hero__intro"},BAe={key:0,class:"o-hero__categories"},HAe={class:"o-hero__categories-title"},jAe=["role"],UAe=["role"],VAe=["href"],qAe={class:"o-hero__meta-bar"},zAe={class:"o-hero__meta-bar-inner"},WAe={key:0,class:"o-hero__meta"},GAe={key:0,class:"o-hero__meta-authors"},KAe={key:1,class:"o-hero__meta-published"},YAe={key:2,class:"o-hero__meta-updated"},ZAe=Wee({name:"HeroEditorial",mixins:[Ure],components:{Breadcrumbs:Zhe,GuiLink:rre,VideoPlayer:nSe,ImageResponsive:vae,Publication:Wee({name:"Publication",components:{Accordion:jpe,AccordionItem:Voe,Heading:jre,ImageResponsive:vae,RichText:cre},props:{authorNames:{type:Array,default:H((()=>[]),"default")},baseHeadingLevel:{type:Number,default:3},image:{type:Object,default:null},meta:{type:Object,default:null},subtitle:{type:String,default:null},title:{type:String,default:null}},computed:{authorsHeadingText(){return Cfe("Author",this.authorNames.length)},authorsString(){return this.authorNames.reduce(((e,t,n,i)=>e+(n<i.length-1||2===i.length?", ":", and ")+t))},creditHeadingLevel(){return this.baseHeadingLevel+1},mainHeadingLevel(){return this.baseHeadingLevel},metaHeadingLevel(){return this.baseHeadingLevel+1}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("RichText"),l=Yr("AccordionItem"),u=Yr("Accordion"),c=Yr("ImageResponsive");return As(),Ps("div",kAe,[Bs("div",xAe,[Bs("div",TAe,[n.title?(As(),Os(s,{key:0,level:a.mainHeadingLevel,class:"m-publication__title"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["level"])):Ws("",!0),n.subtitle?(As(),Ps("span",EAe,ze(n.subtitle),
1001)):Ws("",!0),n.authorNames.length?(As(),Ps("div",AAe,[Hs(s,{level:a.creditHeadingLevel,class:"m-publication__credit-title"},{default:Ii((()=>[qs(ze(a.authorsHeadingText),1)])),_:1},8,["level"]),Hs(o,{content:a.authorsString},null,8,["content"])])):Ws("",!0),n.meta?(As(),Ps("div",LAe,[Hs(u,{size:"small"},{default:Ii((()=>[Hs(l,{title:n.meta.title,headingLevel:a.metaHeadingLevel,index:1},{default:Ii((()=>[(As(!0),Ps(Ss,null,ea(n.meta.items,(e=>(As(),Ps(Ss,null,[qs(ze(e),1),t[0]||(t[0]=Bs("br",null,null,-1))],64)))),256))])),_:1},8,["title","headingLevel"])])),_:1})])):Ws("",!0)]),Bs("div",IAe,[n.image?(As(),Os(c,Zs({key:0},F({},n.image),{size:"publication"}),{default:Ii((()=>[qs(ze(n.image.caption),1)])),_:1},16)):Ws("",!0)])])])}]]),RichText:cre,Heading:jre,HeroEditorialStickyBar:Wee({name:"HeroEditorialBar",components:{HeroEditorialSocial:PEe,RichText:cre},mixins:[Xce,Qce],props:{title:{type:String,default:""},subtitle:{type:String,default:""}},emits:["copyShareLink"],data:H((()=>({show:!1,oldY:-1,rAF:null})),"data"),mounted(){this.$nextTick((()=>{this.rAF=window.requestAnimationFrame(this.handleScroll)})),this.alertsObserverInit(this.getHeaderHeight)},unmount(){window.cancelAnimationFrame(this.rAF),this.rAF=null},computed:{concatenatedTitle(){return`${this.title?this.title.trim():""}${this.subtitle&&this.subtitle.trim()?`: ${this.subtitle}`:""}`.trim()}},methods:{copyShareLink(e){this.$emit("copyShareLink",e)},handleScroll(){const e=window.scrollY;this.oldY!==e&&(this.getHeaderVisibility(),this.show=this.$parent.$el.getBoundingClientRect().bottom<=0),this.oldY=e,this.rAF=window.requestAnimationFrame(this.handleScroll)}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("HeroEditorialSocial");return As(),Ps("div",{class:Fe(["o-hero__sticky-bar",{"o-hero__sticky-bar--show":r.show},{"o-hero__sticky-bar--header-visible":e.headerVisible}]),style:Pe(e.headerHeightVar),"aria-hidden":"true"},[Bs("div",$Ae,[Bs("div",DAe,[Hs(s,{content:a.concatenatedTitle,inline:!0},null,8,["content"])]),Bs("div",PAe,[Hs(o,{hideLinks:!0,title:n.title,onCopyShareLink:a.copyShareLink},null,8,["title","onCopyShareLink"])])])],6)}]]),HeroEditorialSocial:PEe},props:{breadcrumbs:{type:Array,default:null},categories:{type:Array,default:null},categoryListHeading:{type:String,default:null},intro:{type:String,default:null},media:{type:Object,default:null},metadata:{type:Object,default:null},publication:{type:Object,default:null},subtitle:{type:String,default:null},title:{type:String,default:null}},computed:{heroImageSize(){if(this.media)return{contained:"hero_editorial_contained",square:"hero_editorial_square","contained-16-9":"hero_editorial_contained-16-9","full-bleed":"hero_editorial_full_bleed"}[this.media.layout]},listRole(){return this.getListRole(this.categories)},mediaClasses(){return`o-hero__media--${this.media.layout||"contained"}`},mediaComponent(){return"image"===this.media.type?"ImageResponsive":"video"===this.media.type?"VideoPlayer":void 0},mediaData(){return"image"===this.media.type?B(F({},this.media),{size:this.heroImageSize}):"video"===this.media.type?this.media:void 0}}},[["render",function(e,t,n,i,r,a){const s=Yr("Breadcrumbs"),o=Yr("Heading"),l=Yr("RichText"),u=Yr("GuiLink"),c=Yr("Publication"),d=Yr("HeroEditorialSocial"),p=Yr("HeroEditorialStickyBar");return As(),Ps("section",null,[Bs("div",OAe,[Bs("div",MAe,[Hs(s,{items:n.breadcrumbs},null,8,["items"])]),Bs("div",RAe,[n.title?(As(),Os(o,{key:0,class:"o-hero__title",id:"content",ref:"title","data-testid":"content"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},512)):Ws("",!0),n.subtitle?(As(),Os(l,{key:1,content:n.subtitle,inline:!0,class:"o-hero__subtitle",ref:"subtitle"},null,8,["content"])):Ws("",!0)]),Bs("div",NAe,[Bs("div",FAe,[n.intro?(As(),Os(l,{key:0,content:n.intro},null,8,["content"])):Ws("",!0)]),n.categories?(As(),Ps("div",BAe,[Bs("span",HAe,ze(n.categoryListHeading),1),Bs("ul",{class:"o-hero__categories-items",role:a.listRole},[(As(!0),Ps(Ss,null,ea(n.categories,((e,t)=>(As(),Ps("li",{key:`ArticleCategory${t}`,role:a.listRole},[Bs("a",{href:e.url},ze(e.text),9,VAe)],8,UAe)))),128))],8,jAe)])):Ws("",!0)]),n.media?(As(),Ps("div",{key:0,class:Fe(["o-hero__media",a.mediaClasses])},[(As(),Os(Xr(a.mediaComponent),Be(Us(F({},a.mediaData))),{default:Ii((()=>[n.media.caption.rights?(As(),Os(l,{key:0,class:"o-hero__caption o-hero__caption--rights",content:n.media.caption.rights},null,8,["content"])):Ws("",!0),n.media.caption.credit?(As(),Os(l,{key:1,class:"o-hero__caption o-hero__caption--credit",content:n.media.caption.credit},null,8,["content"])):Ws("",!0),n.media.caption.descriptive?(As(),Os(l,{key:2,class:"o-hero__caption o-hero__caption--descriptive",content:n.media.caption.descriptive},null,8,["content"])):Ws("",!0)])),_:1},16)),n.media.transcript?(As(),Os(u,{key:0,href:`#transcript${n.media.uid}`},{default:Ii((()=>t[0]||(t[0]=[qs(" Jump to transcript ")]))),_:1,__:[0]},8,["href"])):Ws("",!0)],2)):Ws("",!0),n.publication?(As(),Os(c,Be(Zs({key:1},F({},n.publication))),null,16)):Ws("",!0),Bs("div",qAe,[Bs("div",zAe,[n.metadata?(As(),Ps("div",WAe,[n.metadata.authors&&n.metadata.authors.length?(As(),Ps("p",GAe,[t[1]||(t[1]=qs(" By ")),(As(!0),Ps(Ss,null,ea(n.metadata.authors,((e,t)=>(As(),Ps(Ss,{key:`ArticleAuthor${t}`},[(As(),Os(Xr(e.url?"a":"span"),{href:e.url?e.url:null},{default:Ii((()=>[qs(ze(e.text),1)])),_:2},1032,["href"])),t!==n.metadata.authors.length-1?(As(),Ps(Ss,{key:0},[qs(", ")],64)):Ws("",!0)],64)))),128))])):Ws("",!0),n.metadata.publishedDate?(As(),Ps("span",KAe,ze(n.metadata.publishedDate),1)):Ws("",!0),n.metadata.updatedDate?(As(),Ps("span",YAe,ze(n.metadata.updatedDate),1)):Ws("",!0),Hs(d,{title:n.title},null,8,["title"])])):Ws("",!0)])])]),Hs(p,{title:n.title,subtitle:n.subtitle},null,8,["title","subtitle"])])}]]),XAe={class:"o-hero__container gui-container"},QAe={class:"o-hero__upper"},JAe={class:"o-hero__lower"},eLe={key:2,class:"o-hero__resource-type-heading"},tLe=Wee({name:"EducationResource",components:{Breadcrumbs:Zhe,Heading:jre,ProjectDetails:xCe,RichText:cre},data:H((()=>({asideSticky:!1,asideHeight:0,oldY:-1,rAF:null})),"data"),props:{breadcrumbs:{type:Array,default:null},links:{type:Array,default:null},resourceDetails:{type:Object,default:null},resourceType:{type:[Object,String],default:null},subtitle:{type:String,default:null},title:{type:String,default:null}},computed:{resourceTypeHeading(){if(this.resourceType)return"object"==typeof this.resourceType?`${this.resourceType.label}: ${this.resourceType.value}
100`:this.resourceType}},methods:{getAsideHeight(){this.asideHeight=this.$refs.aside?this.$refs.aside.clientHeight:0},getAsideStyles(){return{"--aside-height":`${this.asideHeight}px`}},handleScroll(){if(!this.$refs.aside)return;const e=window.scrollY;if(this.oldY!==e){const t=this.$refs.aside.offsetTop;this.asideSticky=e>=t&&e>=this.oldY,this.getAsideHeight()}this.oldY=e,this.setupRequestAnimationFrame()},setupRequestAnimationFrame(){this.rAF=window.requestAnimationFrame(this.handleScroll)}},watch:{links(e){e&&this.setupRequestAnimationFrame()}},mounted(){this.links&&this.$refs.aside&&this.setupRequestAnimationFrame()}},[["render",function(e,t,n,i,r,a){const s=Yr("Breadcrumbs"),o=Yr("Heading"),l=Yr("RichText"),u=Yr("ProjectDetails");return As(),Ps("section",{style:Pe(a.getAsideStyles())},[Bs("div",XAe,[Bs("div",QAe,[Hs(s,{items:n.breadcrumbs},null,8,["items"])]),Bs("div",JAe,[n.title?(As(),Os(o,{key:0,id:"content",class:"o-hero__title",tabindex:"-1","data-testid":"content"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1})):Ws("",!0),n.subtitle?(As(),Os(o,{key:1,level:2,class:"o-hero__subtitle",tabindex:"-1"},{default:Ii((()=>[qs(ze(n.subtitle),1)])),_:1})):Ws("",!0),a.resourceTypeHeading?(As(),Ps("div",eLe,[Hs(l,{content:a.resourceTypeHeading,inline:!0},null,8,["content"])])):Ws("",!0),n.resourceDetails?(As(),Os(u,Be(Zs({key:3},n.resourceDetails)),null,16)):Ws("",!0)]),n.links?(As(),Ps("div",{key:0,ref:"aside",class:Fe(["o-hero__aside",{"o-hero__aside--sticky":r.asideSticky}])},[na(e.$slots,"links")],2)):Ws("",!0)])],4)}]]),nLe={key:0,class:"o-hero__inner"},iLe={class:"o-hero__main"},rLe={class:"o-hero__image"},aLe=Wee({name:"HeroFullBleed",components:{GuiLink:rre,Heading:jre,Icon:Xie,ImageResponsive:vae},props:{title:{type:String,default:null},image:{type:Object,default:null,required:!0},link:{type:Object,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("GuiLink"),l=Yr("ImageResponsive");return As(),Ps("section",null,[n.title||n.link?(As(),Ps("div",nLe,[Bs("div",iLe,[n.title?(As(),Os(s,{key:0,class:"o-hero__title",id:"content",ref:"title","data-testid":"content"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},512)):Ws("",!0),n.link?(As(),Os(o,{key:1,href:n.link.url,iconName:"ArrowBoxed",withIcon:"after"},{default:Ii((()=>[qs(ze(n.link.text),1)])),_:1},8,["href"])):Ws("",!0)])])):Ws("",!0),Bs("div",rLe,[Hs(l,Zs(F({},n.image),{size:"hero_full_bleed"}),null,16)])])}]]),sLe=["aria-labelledby"],oLe={class:"o-hero__container"},lLe={class:"o-hero__media"},uLe={key:0,class:"o-hero__media-row o-hero__media-row--active"},cLe={key:0,class:"o-hero__text"},dLe={class:"o-hero__text-row"},pLe={class:"o-hero__logo-wrap"},hLe=Wee({name:"HeroFullScreen",mixins:[KEe],components:{Heading:jre,ImageResponsive:vae,Logo:Tae},props:{image:{type:Object,default:H((()=>{}),"default")},displayText:{type:String,default:null},level:{type:Number,default:1}},data:H((()=>({viewWidth:null,isMobileLayout:!1,backgroundColor:"blue"})),"data"),computed:{componentId:H((()=>"heroBlocksTitle"),"componentId"),logoStyles(){const e={};return this.isMobileLayout?e.maxWidth=null:e.maxWidth=.5625*this.viewWidth+"px",e}}
100,mounted(){this.setViewWidth(),this.updateHeaderColor(),this.debouncedFixHeight=ete(this.handleResize),window.addEventListener("resize",this.debouncedFixHeight)},unmount(){window.removeEventListener("resize",this.debouncedResize)},methods:{handleResize(){this.setViewWidth()},setViewWidth(){this.viewWidth=document.documentElement.clientWidth}}},[["render",function(e,t,n,i,r,a){const s=Yr("ImageResponsive"),o=Yr("Heading"),l=Yr("Logo");return As(),Ps("section",{class:"o-hero--blocks--simple","aria-labelledby":a.componentId},[t[0]||(t[0]=Bs("div",{class:"o-hero--blocks__shadow-wrapper"},[Bs("div",{class:"o-hero--blocks__shadow"})],-1)),Bs("div",oLe,[Bs("div",lLe,[n.image?(As(),Ps("div",uLe,[Hs(s,Zs(F({},n.image),{size:"hero_full_bleed",ariaHidden:!0}),null,16)])):Ws("",!0)]),n.displayText?(As(),Ps("div",cLe,[Bs("div",dLe,[Hs(o,{level:n.level,id:"content","data-testid":"content"},{default:Ii((()=>[qs(ze(n.displayText),1)])),_:1},8,["level"])])])):Ws("",!0),Bs("div",pLe,[Hs(l,{style:Pe(a.logoStyles)},null,8,["style"])])])],8,sLe)}]]),fLe={name:"Project",components:{Breadcrumbs:Zhe,GuiLink:rre,Heading:jre,ImageResponsive:vae,OxfordCommaLinkList:lCe,ProjectDetails:xCe,RichText:cre},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data:H((()=>({asideSticky:!1,oldY:-1,rAF:null})),"data"),props:{baseLocaleKey:{type:String,default:"o-hero--project"},breadcrumbs:{type:Array,default:null},links:{type:Array,default:null},media:{type:Object,default:null},pageType:{type:String,default:"project",validate:H((e=>["initiative","project","subpage"].includes(e)),"validate")},projectDetails:{type:Object,default:null},subtitleLinks:{type:Array,default:H((()=>[]),"default")},title:{type:String,default:null}},computed:{mediaData(){if(this.media)return B(F({},this.media),{size:"hero_project_full_bleed"})},subtitle(){let e,t;switch(this.pageType){case"initiative":e=this.translatePart("initiativeSubtitle");break;case"project":if(!this.subtitleLinks.length)return;t=this.translatePart("projectLabel"),e=`${this.translatePart("childSubtitle",{type:t})}`;break;case"subpage":if(!this.subtitleLinks.length)return;t=this.translatePart("subpageLabel"),e=`${this.translatePart("childSubtitle",{type:t})}`;break;default:return}return e.trim()+" "},subtitleLinkProps(){return this.subtitleLinks.map((({text:e,url:t})=>({href:t,text:e,underline:!0})))}},methods:{getAsideStyles(){return{"--aside-height":this.$refs.aside?`${this.$refs.aside.clientHeight}px`:"0px"}},handleScroll(){if(!this.$refs.aside)return;const e=window.scrollY;if(this.oldY!==e){const t=this.$refs.aside.offsetTop;this.asideSticky=e>=t&&e>=this.oldY}this.oldY=e,this.setupRequestAnimationFrame()},setupRequestAnimationFrame(){this.rAF=window.requestAnimationFrame(this.handleScroll)}},watch:{links(e){e&&this.setupRequestAnimationFrame()}},mounted(){this.links&&this.$refs.aside&&this.setupRequestAnimationFrame()}},mLe={class:"o-hero__container gui-container"},gLe={class:"o-hero__upper"},yLe={class:"o-hero__lower"},vLe={key:1,class:"o-hero__subtitle"},bLe={key:0,class:Fe(["o-hero__media","o-hero__media--full-bleed"])},_Le=Wee(fLe,[["render",function(e,t,n,i,r,a){const s=Yr("Breadcrumbs"),o=Yr("Heading"),l=Yr("RichText"),u=Yr("OxfordCommaLinkList"),c=Yr("ProjectDetails"),d=Yr("ImageResponsive");return As(),Ps("section",null,[Bs("div",mLe,[Bs("div",gLe,[Hs(s,{items:n.breadcrumbs},null,8,["items"])]),Bs("div",yLe,[n.title?(As(),Os(o,{key:0,id:"content",class:"o-hero__title",tabindex:"-1","data-testid":"content"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1})):Ws("",!0),a.subtitle||n.subtitleLinks.length?(As(),Ps("div",vLe,[a.subtitle?(As(),Os(l,{key:0,content:a.subtitle,inline:!0},null,8,["content"])):Ws("",!0),Hs(u,{items:a.subtitleLinkProps},null,8,["items"])])):Ws("",!0),n.projectDetails?(As(),Os(c,Be(Zs({key:2},n.projectDetails)),null,16)):Ws("",!0)]),n.media?(As(),Ps("div",bLe,[Hs(d,Be(Us(F({},a.mediaData))),{default:Ii((()=>[n.media.caption.rights?(As(),Os(l,{key:0,class:"o-hero__caption o-hero__caption--rights",content:n.media.caption.rights},null,8,["content"])):Ws("",!0),n.media.caption.credit?(As(),Os(l,{key:1,class:"o-hero__caption o-hero__caption--credit",content:n.media.caption.credit},null,8,["content"])):Ws("",!0),n.media.caption.descriptive?(As(),Os(l,{key:2,class:"o-hero__caption o-hero__caption--descriptive",content:n.media.caption.descriptive},null,8,["content"])):Ws("",!0)])),_:1},16)])):Ws("",!0),n.links?(As(),Ps("div",{key:1,ref:"aside",class:Fe(["o-hero__aside",{"o-hero__aside--sticky":r.asideSticky}]),style:Pe(a.getAsideStyles())}
100,[na(e.$slots,"links")],6)):Ws("",!0)])])}]]),wLe={name:"HeroResearchApplication",components:{Heading:jre},mixins:[Qce,Qie,KEe],props:{title:{type:String,default:null,required:!0},headingLevel:{type:Number,default:1},backgroundColor:{type:String,default:"blue"},headingId:{type:String,default:"content"},hideLinks:{type:Boolean,default:!1},links:{type:Array,default:null},showStickyHeaderAt:{type:Number,default:null}},data:H((()=>({rAF:null,asideHeight:0,asideTop:-1,showSticky:!1,oldY:-1,animationEnd:!1,showContentSlot:!1,asideResizeObserver:void 0,headerResizeObserver:void 0})),"data"),computed:{backgroundClass(){return this.updateHeaderColor(),`s-bg--${this.backgroundColor}`},hideLinksOnContent(){return this.hideLinks&&this.showContentSlot},stickyTriggerHeight(){return null!=this.showStickyHeaderAt&&null!=this.showStickyHeaderAt?this.showStickyHeaderAt:window.innerHeight},getAsideStyles(){return{"--aside-height":`${this.asideHeight}px`}}},mounted(){this.$el.addEventListener("animationend",this.animationComplete),Bi([()=>this.getSlotContent("content"),()=>this.showSticky,()=>this.hideLinksOnContent,()=>this.showContentSlot],(()=>{this.updateAsideHeight()})),this.rAF=window.requestAnimationFrame(this.handleScroll),this.$nextTick((()=>{this.updateAsideHeight()}))},updated(){!this.links.length&&this.getSlotContent("content")&&(this.showContentSlot=!0,this.showSticky=!0)},unmount(){this.$el.removeEventListener("animationend",this.animationComplete),this.$refs.aside&&(window.cancelAnimationFrame(this.rAF),this.rAF=null)},methods:{updateAsideHeight(){this.$nextTick((()=>{let e=this.$refs.slotContent;e&&e.clientHeight>4?this.asideHeight=e.clientHeight:this.asideHeight=this.$refs.aside?this.$refs.aside.getBoundingClientRect().height:0}))},animationComplete(){this.animationEnd=!0},handleScroll(){if(!this.$refs.aside)return void(this.showSticky=!1);const e=window.scrollY;if(this.oldY!==e){const t=this.$refs.aside.offsetTop;this.showSticky=e>=t&&e>this.headerHeight,this.showContentSlot=e>this.stickyTriggerHeight}this.oldY=e,this.rAF=window.requestAnimationFrame(this.handleScroll)},scrollDown(){const e=this.$el.nextElementSibling;e&&rte({top:e.offsetTop})}}},SLe={class:"o-hero__container gui-container"},CLe=Wee(wLe,[["render",function(e,t,n,i,r,a){const s=Yr("Heading");return As(),Ps("section",{class:Fe({"o-hero--animation-end":r.animationEnd})},[Bs("div",SLe,[Bs("div",{ref:"title",class:Fe(["o-hero__inner",a.backgroundClass])},[n.title?(As(),Os(s,{key:0,level:n.headingLevel,class:"o-hero__title",id:n.headingId,ref:"title","data-testid":"content"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["level","id"])):Ws("",!0)],2),n.links.length||r.showContentSlot?(As(),Ps("div",{key:0,ref:"aside",class:Fe(["o-hero-research-application__sticky-container",{"o-hero-research-application__sticky":r.showSticky}]),style:Pe(a.getAsideStyles)},[Bs("div",{class:Fe(["o-hero-research-application__sticky-inner",{"o-hero-research-application__sticky-inner-links--hide":a.hideLinksOnContent}])},[Bs("div",{class:Fe(["o-hero-research-application__links",{"o-hero-research-application__links--hide":a.hideLinksOnContent}])},[na(e.$slots,"links")],2),this.$slots.content&&r.showContentSlot?(As(),Ps("div",{key:0,ref:"slotContent",class:Fe(["o-hero-research-application__content",{"o-hero-research-application__content-show":r.showContentSlot}])},[na(e.$slots,"content")],2)):Ws("",!0)],2)],6)):Ws("",!0)])],2)}]]),kLe={class:"o-hero__container gui-container"},xLe={class:"o-hero__inner"},TLe={class:"o-hero__main"},ELe={key:2,class:"o-hero__aside"},ALe={class:"o-hero__links"},LLe={class:"o-hero__image"},ILe=Wee({name:"HeroTextImage",components:{GuiLink:rre,Heading:jre,ImageResponsive:vae},props:{title:{type:String,default:null},subtitle:{type:String,default:null},image:{type:Object,default:null,required:!0},links:{type:Array,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("GuiLink"),l=Yr("ImageResponsive");return As(),Ps("section",null,[Bs("div",kLe,[Bs("div",xLe,[Bs("div",TLe,[n.title?(As(),Os(s,{key:0,level:1,class:"o-hero__title",id:"content",ref:"title","data-testid":"content"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},512)):Ws("",!0),n.subtitle?(As(),Os(s,{key:1,level:2,class:"o-hero__subtitle",ref:"subtitle"},{default:Ii((()=>
100[qs(ze(n.subtitle),1)])),_:1},512)):Ws("",!0),n.links?(As(),Ps("div",ELe,[t[0]||(t[0]=Bs("span",null,"Jump to",-1)),Bs("ul",ALe,[(As(!0),Ps(Ss,null,ea(n.links,((e,t)=>(As(),Ps("li",{key:t},[e.url?(As(),Os(o,{key:0,href:e.url},{default:Ii((()=>[qs(ze(e.text),1)])),_:2},1032,["href"])):Ws("",!0)])))),128))])])):Ws("",!0)]),Bs("div",LLe,[Hs(l,Zs(F({},n.image),{size:"hero_text_image"}),null,16)])])])])}]]),$Le={class:"o-hero__container gui-container"},DLe={class:"o-hero__main"},PLe={key:0,class:"o-hero__aside"},OLe={class:"o-hero__links"},MLe=Wee({name:"HeroTextOnly",components:{GuiLink:rre,Heading:jre},props:{title:{type:String,default:null},subtitle:{type:String,default:null},links:{type:Array,default:null}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("GuiLink");return As(),Ps("section",null,[Bs("div",$Le,[Bs("div",DLe,[n.title?(As(),Os(s,{key:0,level:1,class:"o-hero__title",id:"content",ref:"title","data-testid":"content"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},512)):Ws("",!0),n.subtitle?(As(),Os(s,{key:1,level:2,class:"o-hero__subtitle",ref:"subtitle"},{default:Ii((()=>[qs(ze(n.subtitle),1)])),_:1},512)):Ws("",!0)]),n.links?(As(),Ps("div",PLe,[t[0]||(t[0]=Bs("span",{class:"o-hero__aside-title"},"Jump to",-1)),Bs("ul",OLe,[(As(!0),Ps(Ss,null,ea(n.links,((e,t)=>(As(),Ps("li",{key:t},[e.url?(As(),Os(o,{key:0,href:e.url},{default:Ii((()=>[qs(ze(e.text),1)])),_:2},1032,["href"])):Ws("",!0)])))),128))])])):Ws("",!0)])])}]]),RLe={class:"o-hero__container gui-container"},NLe={key:1,class:"o-hero__links"},FLe=Wee({name:"Hero",components:{HeroAside:GEe,HeroBlocks:aAe,HeroColorBlock:cAe,HeroContent:pAe,HeroDetail:CAe,HeroEditorial:ZAe,HeroEducationResource:tLe,HeroFullBleed:aLe,HeroFullScreen:hLe,HeroProject:_Le,HeroResearchApplication:CLe,HeroTextImage:ILe,HeroTextOnly:MLe,HeroVocabularies:Wee({name:"HeroVocabularies",components:{Icon:Xie,Heading:jre,ListOfLinks:zre},mixins:[KEe],props:{title:{type:String,default:null,required:!0},headingLevel:{type:Number,default:1},backgroundColor:{type:String,default:"blue"},headingId:{type:String,default:"content"},links:{type:Array,default:null}},data:H((()=>({})),"data"),computed:{backgroundClass(){return this.updateHeaderColor(),`s-bg--${this.backgroundColor}`}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("ListOfLinks");return As(),Ps("section",{class:Fe({"o-hero--animation-end":e.animationEnd})},[Bs("div",RLe,[Bs("div",{ref:"title",class:Fe(["o-hero__inner",a.backgroundClass])},[n.title?(As(),Os(s,{key:0,level:n.headingLevel,class:"o-hero__title",id:n.headingId,ref:"title","data-testid":"content"},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["level","id"])):Ws("",!0),n.links.length?(As(),Ps("div",NLe,[Hs(o,{links:n.links,modifiers:["inline"]},null,8,["links"])])):Ws("",!0)],2)])],2)}]]),JumpLinks:u_e,ListOfLinks:zre},mixins:[Xce],props:{name:{type:String,default:null},data:{type:Object,default:null},modifiers:{type:Array,default:null},headingId:{type:String,default:null},hideLinks:{type:Boolean,default:!1},inViewID:{type:String,default:null}},computed:{classNames(){const e=["o-hero",`o-hero--${this.name.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`];return this.modifiers&&this.modifiers.forEach((t=>{e.push(`o-hero--${t}`)})),e},formattedName(){return("Hero"+this.name).replace(/-([a-z])/g,(e=>e[1].toUpperCase()))},showJumpLinksHeader(){return"ResearchApplication"!==this.name}},mounted(){this.alertsObserverInit()}},[["render",function(e,t,n,i,r,a){const s=Yr("JumpLinks");return n.name?(As(),Os(Xr(a.formattedName),Zs({key:0},B(F({},n.data),{inViewID:n.inViewID}),{class:a.classNames,style:e.alertsHeightVar,headingId:n.headingId,hideLinks:n.hideLinks}),{links:Ii((()=>[n.data&&n.data.links?(As(),Os(s,{key:0,links:n.data.links,inViewID:n.inViewID,showTitle:a.showJumpLinksHeader||n.data.showLinksHeading},null,8,["links","inViewID","showTitle"])):Ws("",!0)])),content:Ii((()=>[na(e.$slots,"content")])),aside:Ii((()=>[na(e.$slots,"aside")])),_:3},16,["class","style","headingId","hideLinks"])):Ws("",!0)}]]),BLe={class:"a-link__label"},HLe=Wee({name:"ItemTreeLink",components:{GuiLink:rre,RichText:cre},props:{to:{type:Object,required:!1,default:void 0},href:{type:String,default:void 0},title:{type:String,required:!1,default:void 0}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("GuiLink");return n.title?(As(),Os(o,{key:0,to:n.to,href:n.href},{default:Ii((()=>[Bs("span",BLe,[Hs(s,{content:n.title,inline:""},null,8,["content"])])])),_:1},8,["to","href"])):Ws("",!0)}]]),jLe={key:0,class:"a-item-tree","data-testid":"tree-container"},ULe={class:"a-item-tree--no-circle","data-testid":"tree-children"},VLe={key:0,class:"a-item-tree__item-container"},qLe={key:1,class:"a-item-tree__current-container"},zLe={key:0,class:"a-item-tree__item--dotted"},WLe={class:"a-item-tree","data-testid":"tree-container"},GLe=["aria-label"],KLe={class:"a-item_tree__item"},YLe={class:"a-item-tree__item-container"},ZLe={class:"a-item-tree__item-heading"},XLe={key:1,class:"a-item-tree__current-container"},QLe={class:"a-item-tree__this-object"},JLe=Wee({name:"ItemTree",components:{ArchivalChildren:Wee({name:"ArchivalChildren",components:{GuiButton:Jee,RichText:cre},mixins:[ate],props:{items:{required:!0,type:Array},linkComponent:{type:[Object,String],default:H((()=>HLe),"default")},markdownConfig:{type:Object,default:H((()=>{}),"default")},maxChildren:{type:Number,required:!1,default:void 0},scrollToOffset:{type:Number,required:!1,default:void 0},tooltipData:{type:Function,required:!1,default:null}},setup:H((e=>F({}
100,zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),data(){return{viewAll:this.translatePart("a-item-tree-extra.view_all",{total:this.localizeNumber(this.items.length)}),baseId:br()}},computed:{children(){return this.items.slice(0,this.maxChildren)}},methods:{scrollToAllComponents(){this.scrollToOffset?this.scrollToHash("#all_components",this.scrollToOffset):this.scrollToHash("#all_components",0)}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("GuiButton");return a.children&&a.children.length?(As(),Ps("div",jLe,[Bs("ul",ULe,[(As(!0),Ps(Ss,null,ea(a.children,(t=>{var i,r;return As(),Ps("li",{key:t.id,class:"a-item_tree__item--grandchild"},[t.title?(As(),Ps("div",VLe,[t.to?(As(),Os(Xr(n.linkComponent),{key:0,ref_for:!0,ref:"name",to:t.to,title:t.title,"tooltip-data":null!=(i=null==(r=n.tooltipData)?void 0:r.call(n,t))?i:[],tabindex:"0"},null,8,["to","title","tooltip-data"])):(As(),Ps("div",qLe,[Hs(s,{content:t.title,inline:!0,options:n.markdownConfig},null,8,["content","options"]),na(e.$slots,"default")]))])):Ws("",!0)])})),128)),n.items&&n.items.length>n.maxChildren?(As(),Ps("li",zLe,[t[0]||(t[0]=Bs("span",{class:"a-item-tree__item--dotted__extra"},null,-1)),Hs(o,{name:"view_all_children",class:"a-item-tree__all-components-link",onClick:a.scrollToAllComponents},{default:Ii((()=>[qs(ze(r.viewAll),1)])),_:1},8,["onClick"])])):Ws("",!0)])])):Ws("",!0)}]]),RichText:cre},props:{children:{type:Array,required:!1,default:void 0},label:{type:String,required:!1,default:void 0},linkComponent:{type:[Object,String],default:H((()=>HLe),"default")},maxChildren:{type:Number,required:!1,default:void 0},markdownConfig:{type:Object,default:H((()=>{}),"default")},parents:{type:Array,required:!0},primaryItemId:{required:!1,type:String,default:void 0},primaryItemString:{required:!1,type:String,default:void 0},itemRouteResolver:{type:Function,required:!1,default:void 0},scrollToOffset:{type:Number,required:!1,default:void 0},tooltipDataFn:{type:Function,required:!1,default:void 0}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),computed:{currentItem(){return this.parents[0]},currentItemName(){return this.currentItem.title},currentRoute(){var e;return this.itemRouteResolver?this.itemRouteResolver(this.currentItem):null==(e=this.currentItem)?void 0:e.to},isPrimaryItem(){return this.currentItem.id==this.primaryItemId},newParents(){if(null==this.parents)return[];let e=[...this.parents];return e.shift(),e}},methods:{tooltipData(e){var t,n;return null!=(t=null==(n=this.tooltipDataFn)?void 0:n.call(this,e))?t:[]}}},[["render",function(e,t,n,i,r,a){const s=Yr("RichText"),o=Yr("ItemTree"),l=Yr("ArchivalChildren");return As(),Ps("div",WLe,[Bs("ul",{class:"a-item-tree__list","data-testid":"tree-children","aria-label":n.label},[Bs("li",KLe,[Bs("div",YLe,[Bs("div",ZLe,[a.currentRoute&&!a.isPrimaryItem?(As(),Os(Xr(n.linkComponent),{key:0,ref:"name",to:a.currentRoute,title:a.currentItemName,"tooltip-data":a.tooltipData(a.currentItem),tabindex:"0"},null,8,["to","title","tooltip-data"])):(As(),Ps("span",XLe,[Bs("span",{ref:"label",class:Fe(["a-item-tree__current-object-name",a.isPrimaryItem?"a-item-tree__current-object-name--primary":""])},[Hs(s,{content:a.currentItemName,options:n.markdownConfig,inline:!0},null,8,["content","options"])],2),Bs("span",QLe,ze(n.primaryItemString),1)]))]),a.newParents.length?(As(),Os(o,{ref:"child",key:n.primaryItemId,"link-component":n.linkComponent,"primary-item-id":n.primaryItemId,"primary-item-string":n.primaryItemString,parents:a.newParents,children:n.children,"max-children":n.maxChildren,"item-route-resolver":n.itemRouteResolver},null,8,["link-component","primary-item-id","primary-item-string","parents","children","max-children","item-route-resolver"])):Ws("",!0),n.children&&0==a.newParents.length?(As(),Os(l,{key:1,ref:"extra",items:n.children,"link-component":n.linkComponent,"max-children":n.maxChildren,"scroll-to-offset":n.scrollToOffset,"tooltip-data":a.tooltipData},null,8,["items","link-component","max-children","scroll-to-offset","tooltip-data"])):Ws("",!0)])])],8,GLe)])}]]),eIe={class:"o-location-media-full"},tIe={class:"gui-container"},nIe={class:"o-location-media-full__media"},iIe={class:"o-location-media-full__inner"},rIe={key:0,class:"o-location-media-full__address"},aIe={key:1},sIe={class:"o-location-media-full__address-links"},oIe={key:1,class:"o-location-media-full__content"},lIe={class:"o-location-media-full__cards"},uIe=Wee({name:"LocationMediaFull",mixins:[yre],components:{CardList:vde,GuiLink:rre,Heading:jre,ListOfLinks:zre,RichText:cre},props:{baseHeadingLevel:{type:Number,default:2},address:{type:Object,default:null},cards:{type:Array,default:null},content:{type:Object,default:null}},data(){const e=br();return{uid:e,addressLinkListHeadingId:`LocationMediaFullAddressLinkList${e}Heading`,cardListHeadingId:`LocationMediaFullCardList${e}Heading`}}
100,computed:{addressHeadingLevel(){return this.baseHeadingLevel+1},addressLinkListHeadingLevel(){return this.addressHeadingLevel+1},contentHeadingLevel(){return this.baseHeadingLevel+1},cardListHeadingLevel(){return this.baseHeadingLevel+1},cardHeadingLevel(){return this.baseHeadingLevel+2}}},[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("GuiLink"),l=Yr("Alert"),u=Yr("RichText"),c=Yr("ListOfLinks"),d=Yr("CardList");return As(),Ps("div",eIe,[Bs("div",tIe,[Bs("div",nIe,[na(e.$slots,"media")]),Bs("div",iIe,[n.address?(As(),Ps("div",rIe,[n.address.title?(As(),Os(s,{key:0,ref:"title",level:a.addressHeadingLevel,class:"o-location-media-full__title"},{default:Ii((()=>[qs(ze(n.address.title),1)])),_:1},8,["level"])):Ws("",!0),n.address.text?(As(),Ps("p",aIe,[n.address.href?(As(),Os(o,{key:0,ref:"addressLink",href:n.address.href,"aria-label":`${n.address.text}. View on Google Maps`,withIcon:"after"},{default:Ii((()=>[qs(ze(n.address.text),1)])),_:1},8,["href","aria-label"])):(As(),Ps(Ss,{key:1},[qs(ze(n.address.text),1)],64))])):Ws("",!0),Bs("div",sIe,[Bs("button",{class:"a-link",onClick:t[0]||(t[0]=Kl((t=>e.copyText(n.address.text)),["prevent"]))},t[1]||(t[1]=[Bs("span",{class:"a-link__label"},"Copy address",-1)])),Hs(l,{id:`toast${r.uid}`,toast:!0,toastActive:e.toastActive,content:"Address copied to clipboard",dismissable:!1},null,8,["id","toastActive"])])])):n.content?(As(),Ps("div",oIe,[n.content.title?(As(),Os(s,{key:0,ref:"title",level:a.contentHeadingLevel,class:"o-location-media-full__title"},{default:Ii((()=>[qs(ze(n.content.title),1)])),_:1},8,["level"])):Ws("",!0),n.content.text?(As(),Os(u,{key:1,class:"o-location-media-full__text",content:n.content.text},null,8,["content"])):Ws("",!0),n.content.links?(As(),Os(c,{key:2,class:"o-location-media-full__links",links:n.content.links},null,8,["links"])):Ws("",!0)])):Ws("",!0),Bs("div",lIe,[Hs(s,{level:a.cardListHeadingLevel,id:r.cardListHeadingId,class:"visually-hidden"},{default:Ii((()=>t[2]||(t[2]=[qs(" Additional Location information ")]))),_:1,__:[2]},8,["level","id"]),Hs(d,{cardName:"CtaCard",ref:"cards","aria-labelledby":r.cardListHeadingId,items:n.cards,layout:"grid",modifiers:["background-hover"]},null,8,["aria-labelledby","items"])])])])])}]]),cIe={name:"LocationMediaSplit",components:{Accordion:jpe,CardList:vde,OpenHours:zse,GuiLink:rre,Heading:jre},props:{accordion:{type:Object,default:null},baseHeadingLevel:{type:Number,default:3},button:{type:Boolean,default:!0},cards:{type:Array,default:null},content:{type:Object,default:null},openHours:{type:Object,default:null}},data(){const e=br();return{copyLinkText:"Copy address",accordionHeadingId:`LocationMediaSplitAccordion${e}Heading`,cardListHeadingId:`LocationMediaSplitCardList${e}Heading`,timer:null}},computed:{contentHeadingLevel(){return this.baseHeadingLevel}}},dIe={class:"o-location-media-split"},pIe={class:"gui-container"},hIe={class:"o-location-media-split__inner"},fIe={class:"o-location-media-split__main"},mIe={key:0,class:"o-location-media-split__row o-location-media-split__cards"},gIe={key:1,class:"o-location-media-split__row o-location-media-split__content"},yIe={key:1},vIe={key:2,class:"o-location-media-split__row o-location-media-split__hours"},bIe={key:3,class:"o-location-media-split__row o-location-media-split__accordion"},_Ie={class:"o-location-media-split__media"},wIe=Wee(cIe,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("CardList"),l=Yr("GuiLink"),u=Yr("OpenHours"),c=Yr("Accordion");return As(),Ps("div",dIe,[Bs("div",pIe,[Bs("div",hIe,[Bs("div",fIe,[n.cards?(As(),Ps("div",mIe,[Hs(s,{level:a.contentHeadingLevel,id:r.cardListHeadingId,class:"visually-hidden"},{default:Ii((()=>t[0]||(t[0]=[qs(" Location amenities ")]))),_:1,__:[0]},8,["level","id"]),Hs(o,{"aria-labelledby":r.cardListHeadingId,items:n.cards,layout:"grid",modifiers:["background-hover"],cardName:"CtaCard"},null,8,["aria-labelledby","items"])])):Ws("",!0),n.content?(As(),Ps("div",gIe,[n.content.title?(As(),Os(s,{key:0,level:a.contentHeadingLevel,class:"o-location-media-split__title"},{default:Ii((()=>
100[qs(ze(n.content.title),1)])),_:1},8,["level"])):Ws("",!0),n.content.text?(As(),Ps("p",yIe,ze(n.content.text),1)):Ws("",!0),n.content.cta?(As(),Os(l,Zs({key:2},n.content.cta,{button:n.button,class:n.button?null:"o-location-media-split__link"}),{default:Ii((()=>[qs(ze(n.content.cta.text),1)])),_:1},16,["button","class"])):Ws("",!0)])):Ws("",!0),n.openHours?(As(),Ps("div",vIe,[Hs(u,{openHours:n.openHours},null,8,["openHours"])])):Ws("",!0),n.accordion?(As(),Ps("div",bIe,[Hs(s,{id:r.accordionHeadingId,level:a.contentHeadingLevel,class:"visually-hidden"},{default:Ii((()=>t[1]||(t[1]=[qs(" Additional Information ")]))),_:1,__:[1]},8,["id","level"]),Hs(c,{"aria-labelledby":r.accordionHeadingId,items:n.accordion.items,size:"small",headingLevel:4},null,8,["aria-labelledby","items"]),n.accordion.cta?(As(),Os(l,{key:0,href:n.accordion.cta.href},{default:Ii((()=>[qs(ze(n.accordion.cta.text),1)])),_:1},8,["href"])):Ws("",!0)])):Ws("",!0)]),Bs("div",_Ie,[na(e.$slots,"media")])])])])}]]),SIe={class:"o-module-inline__container gui-container"},CIe={class:"o-module-inline__inner"},kIe={class:"o-module-inline__content"},xIe=Wee({name:"ModuleInline",components:{ModuleHeader:mpe},props:{id:{type:String,default:null},title:{type:String,default:null},classes:{type:[Array,Object],default:H((()=>[]),"default")},bkgd:{type:String,default:null},headingLevel:{type:Number,default:2},layout:{type:String,default:null},tagType:{type:String,default:"section"}},data(){return{backgroundColor:this.bkgd,eventBus:Rse()}},computed:{backgroundClass(){let e=null;return this.backgroundColor&&(e=`s-bg--${this.backgroundColor}`),e},layoutClass(){let e=null;return this.layout&&(e=`o-module-inline--${this.layout}`),e}}
100,mounted(){this.eventBus.on("updateBackground",this.setBackgroundClass)},methods:{setBackgroundClass(e){this.backgroundColor=e}}},[["render",function(e,t,n,i,r,a){const s=Yr("ModuleHeader");return As(),Os(Xr(n.tagType),{id:n.id,class:Fe(["o-module-inline",...n.classes,a.backgroundClass,a.layoutClass])},{default:Ii((()=>[Bs("div",SIe,[Bs("div",CIe,[n.title?(As(),Os(s,{key:0,inline:!0,"heading-level":n.headingLevel},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["heading-level"])):Ws("",!0),Bs("div",kIe,[na(e.$slots,"default")])])])])),_:3},8,["id","class"])}]]),TIe=Wee({name:"ModuleSection",inheritAttrs:!1,components:{Accordion:jpe,CardList:vde,ChronologicalListing:Tme,FeatureCarousel:Lye,ListingCarousel:f_e,LocationInfo:HSe,Module:Spe,ModuleHeader:mpe},props:{backgroundColor:{type:String,default:null},headingLevel:{type:Number,default:2},id:{type:String,default:null},title:{type:String,default:null},modifiers:{type:Array,default:H((()=>[]),"default")},items:{type:Array,default:H((()=>[]),"default")}},computed:{classes(){return this.modifiers.map((e=>`o-module-section--${e}`))},backgroundClass(){let e=null;return this.backgroundColor&&(e=`s-bg--${this.backgroundColor}`),e}}},[["render",function(e,t,n,i,r,a){const s=Yr("ModuleHeader"),o=Yr("Module");return As(),Ps("section",{class:Fe(["o-module-section",...a.classes,a.backgroundClass])},[Hs(s,{headingLevel:n.headingLevel,id:n.id,modifiers:n.modifiers},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["headingLevel","id","modifiers"]),(As(!0),Ps(Ss,null,ea(n.items,((e,t)=>(As(),Os(o,Zs({ref_for:!0},e,{key:t,headingLevel:n.headingLevel+1}),{default:Ii((()=>[(As(!0),Ps(Ss,null,ea(e.subcomponents,((e,t)=>(As(),Os(Xr(e.name),Zs({ref_for:!0},e.data,{key:t}),null,16)))),128))])),_:2},1040,["headingLevel"])))),128))],2)}]]),EIe={class:"o-resource-entity"},AIe={class:"o-resource-entity__asset"},LIe={class:"o-resource-entity__info"},IIe=Wee({name:"ResourceEntity",components:{AccordionItem:Voe,AudioPlayer:Ihe,DescriptionList:$re,Heading:jre,IconPlacemat:nae,ImageResponsive:vae,ListOfLinks:zre,MediaTranscript:w_e,RichText:cre,VideoPlayer:nSe},props:{a11yHeadingLevel:{type:Number,default:3},a11yPrimaryMetadataHeading:{type:String,default:"Primary resource metadata"},a11ySecondaryMetadataHeading:{type:String,default:"Secondary resource metadata"},baseLocaleKey:{type:String,default:"o-resource-entity",required:!1},id:{type:String,default:"resource"},resource:{type:Object,default:H((()=>{}),"default")}},setup:H((e=>F({},zee({baseLocaleKey:e.baseLocaleKey}))),"setup"),computed:{component(){const e={audio:Ihe,pdf:vae,video:nSe},{name:t}=e[this.resource.type]||{};return t},entityTypeIcon(){return{audio:"Volume",video:"MediaVideo",pdf:"PDF"}[this.resource.type]},hasTranscript(){const{transcript:e,type:t}=this.resource;return!!e&&e.length&&("audio"===t||"video"===t)},pdfLinks(){const{accessPoint:e,title:t,type:n}=this.resource;return!("pdf"!==n&&!e)&&[{iconName:"PDF",url:e,text:this.translate(this.baseLocaleKey+".pdf_preview")},{download:t,iconName:"Download500",url:this.resource.accessPoint,text:this.translate(this.baseLocaleKey+".pdf_download")}]}}},[["render",function(e,t,n,i,r,a){const s=Yr("IconPlacemat"),o=Yr("MediaTranscript"),l=Yr("RichText"),u=Yr("Heading"),c=Yr("DescriptionList"),d=Yr("AccordionItem"),p=Yr("ListOfLinks");return As(),Ps("section",EIe,[Bs("section",AIe,[n.resource.media?(As(),Os(Xr(a.component),Be(Zs({key:0},n.resource.media)),null,16)):(As(),Os(s,{key:1,icon:a.entityTypeIcon},null,8,["icon"])),a.hasTranscript?(As(),Os(o,{key:2,items:n.resource.transcript,size:"small"},null,8,["items"])):Ws("",!0)]),Bs("section",LIe,[n.resource.description?(As(),Os(l,{key:0,content:n.resource.description,class:"o-resource-entity__description"},null,8,["content"])):Ws("",!0),Hs(u,{id:`${n.id}-primary-metadata`,level:n.a11yHeadingLevel,class:"visually-hidden"},{default:Ii((()=>[qs(ze(n.a11yPrimaryMetadataHeading),1)])),_:1},8,["id","level"]),n.resource.metadata.primary?(As(),Os(c,{key:1,id:`${n.id}-primary-metadata`,terms:n.resource.metadata.primary,class:"o-resource-entity__primary-metadata"},null,8,["id","terms"])):Ws("",!0),n.resource.metadata.secondary?(As(),Os(d,{key:2,index:0,title:e.translate(n.baseLocaleKey+".media_file_info"),class:"o-resource-entity__secondary-metadata"},{default:Ii((()=>
100[n.resource.metadata.secondary.content?(As(),Ps(Ss,{key:0},[qs(ze(n.resource.metadata.secondary.content),1)],64)):(As(),Ps(Ss,{key:1},[Hs(u,{id:`${n.id}-secondary-metadata`,level:n.a11yHeadingLevel,class:"visually-hidden"},{default:Ii((()=>[qs(ze(n.a11ySecondaryMetadataHeading),1)])),_:1},8,["id","level"]),Hs(c,{id:`${n.id}-secondary-metadata`,terms:n.resource.metadata.secondary,class:"o-resource-entity__primary-metadata"},null,8,["id","terms"])],64))])),_:1},8,["title"])):Ws("",!0),"pdf"===n.resource.type?(As(),Os(p,{key:3,links:a.pdfLinks,class:"o-resource-entity__pdf-links","with-icons":"after"},null,8,["links"])):Ws("",!0)])])}]]),$Ie=Wee({name:"ScrolLFeatureIndicator",mixins:[ate],components:{GuiButton:Jee},props:{baseLocaleKey:{type:String,default:"o-scroll-feature-indicator",required:!1},currentPosition:{type:Number,required:!0,default:0},isFixed:{type:Boolean,default:!1,required:!1},numberOfItems:{type:Number,required:!0,default:0}},setup:H((e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),"setup"),methods:{isCurrent(e){return this.currentPosition==e-1},itemTitle(e){let t="goto_index";return this.isCurrent(e)&&(t="current_index"),this.translatePart(t,{index:e,numberOfItems:this.numberOfItems})}}},[["render",function(e,t,n,i,r,a){const s=Yr("GuiButton");return As(),Ps("ul",{class:Fe(["o-scroll-feature__media-indicator",n.isFixed?"o-scroll-feature__media-indicator--fixed":""])},[(As(!0),Ps(Ss,null,ea(n.numberOfItems,(t=>(As(),Ps("li",{key:t},[Hs(s,{tabindex:"-1",name:"page",disabled:a.isCurrent(t),title:a.itemTitle(t),onClick:H((n=>e.scrollToHash("#scroll-"+(t-1))),"onClick")},{default:Ii((()=>[Bs("div",{class:Fe(["o-scroll-feature__media-indicator-item",a.isCurrent(t)?"o-scroll-feature__media-indicator-item--active":""])},null,2)])),_:2},1032,["disabled","title","onClick"])])))),128))],2)}]]),DIe={name:"ScrollFeature",components:{Heading:jre,ImageResponsive:vae,ListOfLinks:zre,PostExcerpt:Tue,ScrollFeatureIndicator:$Ie},props:{id:{type:String,default:null},headingLevel:{type:Number,default:2},items:{type:Array,default:null,required:!0},title:{type:String,default:null},titleId:{type:String,default:null},useGuiContainer:{type:Boolean,default:!1},withIndicator:{type:Boolean,default:!1},withMediaEffect:{type:Boolean,default:!1}},data:H((()=>({observer:null,observerOptions:{threshold:[.5,1]},current:0,isFixed:!1,showEffect:!1,articleIds:[],mediaStickyId:`mediaSticky${br()}`})),"data"),computed:{itemHeadingLevel(){return this.title?this.headingLevel+1:this.headingLevel}},mounted(){this.initObserver()},unmounted(){this.observer.disconnect()},methods:{initObserver(){window.IntersectionObserver&&this.$refs.items&&this.$refs.mediaSticky&&(this.observer=new IntersectionObserver(this.handleIntersection,this.observerOptions),this.$refs.items.forEach((e=>{this.observer.observe(e),this.articleIds.push(e.id)})),this.observer.observe(this.$refs.mediaSticky))},handleIntersection(e){e.forEach((e=>{if(this.articleIds.includes(e.target.id)){let t=!1;e.isIntersecting&&e.intersectionRatio>=.5&&(this.current=this.$refs.items.indexOf(e.target),t=!0),this.isFixed=t}e.target.id==this.$refs.mediaSticky.id&&(e.isIntersecting&&1==e.intersectionRatio&&(this.showEffect=!0),e.isIntersecting&&e.intersectionRatio<1&&(this.showEffect=!1))}))}}},PIe=["id"],OIe={class:"o-scroll-feature__inner"},MIe={class:"o-scroll-feature__items"},RIe=["id"],NIe={key:0,class:"o-scroll-feature__item-image"},FIe={class:"o-scroll-feature__media"},BIe=["id"],HIe={class:"o-scroll-feature__media-inner"},jIe=Wee(DIe,[["render",function(e,t,n,i,r,a){const s=Yr("Heading"),o=Yr("ImageResponsive"),l=Yr("PostExcerpt"),u=Yr("ListOfLinks"),c=Yr("ScrollFeatureIndicator");return As(),Ps("section",{id:n.id,class:Fe(["o-scroll-feature",{"gui-container":n.useGuiContainer}])},[Bs("div",OIe,[n.title?(As(),Os(s,{key:0,class:"visually-hidden",id:n.titleId,level:n.headingLevel},{default:Ii((()=>[qs(ze(n.title),1)])),_:1},8,["id","level"])):Ws("",!0),Bs("div",MIe,[(As(!0),Ps(Ss,null,ea(n.items,((t,n)=>(As(),Ps("article",{ref_for:!0,ref:"items",key:t.id,id:t.id,class:"o-scroll-feature__item"},[na(e.$slots,"content",Zs({ref_for:!0},{item:t,index:n}),(()=>[(As(),Os(Xr(t.href?"a":"div"),{href:t.href?t.href:null,class:"o-scroll-feature__item-inner"},{default:Ii((()=>[t.image?(As(),Ps("figure",NIe,[Bs("div",null,[Hs(o,Zs({ref_for:!0},t.image,{size:"program_item_1_1"}),null,16)])])):Ws("",!0),t.title?(As(),Os(s,{key:1,class:"o-scroll-feature__item-title",level:a.itemHeadingLevel,id:`scroll-${n}`},{default:Ii((()=>
100[qs(ze(t.title),1)])),_:2},1032,["level","id"])):Ws("",!0),t.excerpt?(As(),Os(l,{key:2,content:t.excerpt,class:"o-scroll-feature__item-excerpt"},null,8,["content"])):Ws("",!0),t.links?(As(),Os(u,{key:3,class:"o-scroll-feature__item-cta",links:t.links},null,8,["links"])):Ws("",!0)])),_:2},1032,["href"]))]))],8,RIe)))),128))]),Bs("div",FIe,[n.withMediaEffect?(As(),Ps("div",{key:0,class:Fe(["o-scroll-feature__media-effect","upper-effect",{show:r.showEffect}])},null,2)):Ws("",!0),Bs("div",{class:"o-scroll-feature__media-sticky",id:r.mediaStickyId,ref:"mediaSticky"},[n.withIndicator?(As(),Os(c,{key:0,"number-of-items":n.items.length,"current-position":r.current,"is-fixed":r.isFixed},null,8,["number-of-items","current-position","is-fixed"])):Ws("",!0),Bs("div",HIe,[(As(!0),Ps(Ss,null,ea(n.items,((t,n)=>(As(),Ps("div",{key:`media_${t.id}`,class:Fe(["o-scroll-feature__media-item",{"o-scroll-feature__media-item--active":n==r.current}])},[na(e.$slots,"media",Zs({ref_for:!0},{item:t,index:n}),(()=>[Hs(o,Zs({ref_for:!0},t.image,{"aria-hidden":n!==r.current,size:"program_item"}),null,16,["aria-hidden"])]))],2)))),128))])],8,BIe),n.withMediaEffect?(As(),Ps("div",{key:1,class:Fe(["o-scroll-feature__media-effect","lower-effect",{show:r.showEffect}])},null,2)):Ws("",!0)])])],10,PIe)}]]),UIe=["innerHTML"],VIe=["aria-labelledby"],qIe=Wee({name:"ScrollFeatureMapItem",components:{Heading:jre,Icon:Xie,ImageResponsive:vae,Module:Spe,OpenNowStatus:Wae,Post:Yue},props:{bkgd:{type:String,default:null},header:{type:Object,default:null},image:{type:Object,default:null},body:{type:String,default:null},cards:{type:Array,default:null},headingLevel:{type:Number,default:3},openHours:{type:Object,default:null}},data:H((()=>({cardListHeadingId:`scrollFeatureMapCardList${br()}Heading`,uid:br()})),"data"),computed:{itemInfoHeadingLevel(){return this.headingLevel+1},cardHeadingLevel(){return this.itemInfoHeadingLevel+1}}},[["render",function(e,t,n,i,r,a){const s=Yr("ImageResponsive"),o=Yr("Heading"),l=Yr("OpenNowStatus"),u=Yr("Post"),c=Yr("Module");return As(),Os(c,Zs(F({},n.header),{headingLevel:n.headingLevel}),ta({default:Ii((()=>[Hs(s,Zs(F({},n.image),{size:"post_large",class:"o-scroll-feature-map__item-image"}),null,16),Hs(o,{id:r.cardListHeadingId,level:a.itemInfoHeadingLevel,class:"visually-hidden"},{default:Ii((()=>[qs(ze(n.header.title)+" Information ",1)])),_:1},8,["id","level"]),n.body?(As(),Ps("div",{key:0,innerHTML:n.body,class:"o-scroll-feature-map__item-body"},null,8,UIe)):Ws("",!0),n.cards?(As(),Ps("ul",{key:1,class:"o-scroll-feature-map__item-cards","aria-labelledby":r.cardListHeadingId},[(As(!0),Ps(Ss,null,ea(n.cards,(e=>(As(),Ps("li",{key:`o-scroll-feature-map__${r.uid}`,class:"o-scroll-feature-map__item-card"},[Hs(u,Zs({ref_for:!0},F({},e),{modifier:"small",headingLevel:a.cardHeadingLevel}),null,16,["headingLevel"])])))),128))],8,VIe)):Ws("",!0)])),_:2},[n.openHours?{name:"aside",fn:Ii((()=>[Hs(l,{openHours:n.openHours},null,8,["openHours"])])),key:"0"}:void 0]),1040,["headingLevel"])}]]),zIe=Wee({name:"ScrolLFeatureMapMedia",mixins:[Moe],components:{GuiLink:rre,IconTooltip:uae,MapImage:Hae},props:{activeItem:{type:Number,default:null},items:{type:Array,default:null},map:{type:Object,default:null},size:{type:String,default:null}},data:H((()=>({isMobile:!1})),"data"),mounted(){this.debouncedResize=ete(this.handleResize),window.addEventListener("resize",this.debouncedResize),this.handleResize()},beforeUnmount(){window.removeEventListener("resize",this.debouncedResize)},computed:{mediaStyles(){if(this.isMobile||!this.items||!this.items[this.activeItem])return;const e={transform:"scale(1.05)"};if(this.activeItem>0){const t=this.items[this.activeItem-1];e.transformOrigin=t&&t.arrowPosition?t.arrowPosition:null}return e}},methods:{handleResize(){this.isMobile=this.isMediumMinus()},isActiveTooltip(e){if(!(null===this.activeItem||this.activeItem<0))return this.activeItem===e}}},[["render",function(e,t,n,i,r,a){const s=Yr("MapImage"),o=Yr("IconTooltip"),l=Yr("GuiLink");return As(),Ps("div",{class:"o-scroll-feature-map__media-item",style:Pe(a.mediaStyles)},[n.map?(As(),Os(s,Zs({key:0},F({},n.map),{marker:!1,showLink:!1,size:n.size}),null,16,["size"])):Ws("",!0),n.items?(As(!0),Ps(Ss,{key:1},ea(n.items,((n,i)=>(As(),Ps(Ss,{key:i},[Hs(o,Zs({ref_for:!0},F({}
100,n),{class:[{"a-icon-tooltip--active":a.isActiveTooltip(i)}]}),null,16,["class"]),n.mapLink?(As(),Os(l,{key:0,href:n.mapLink.href,style:Pe(n.position),class:Fe(["m-map-cards__map-link",{"m-map-cards__map-link--active":a.isActiveTooltip(i)}]),"aria-hidden":"true",iconName:"Pin",tabindex:"-1",withIcon:"before",onMouseenter:H((t=>e.active=n.mapLink.slug),"onMouseenter"),onMouseleave:t[0]||(t[0]=t=>e.active=null)},{default:Ii((()=>[qs(ze(n.mapLink.text),1)])),_:2},1032,["href","style","class","onMouseenter"])):Ws("",!0)],64)))),128)):Ws("",!0)],4)}]]),WIe={name:"ScrollFeatureMap",components:{GuiLink:rre,Heading:jre,Icon:Xie,ListOfLinks:zre,Module:Spe,RichText:cre,ScrollFeatureMapItem:qIe,ScrollFeatureMapMedia:zIe},mixins:[Ure],props:{baseHeadingLevel:{type:Number,default:2},intro:{type:Object,default:null},items:{type:Array,default:null},map:{type:Object,default:null},mapItems:{type:Array,default:null}},setup({items:e}){const t=Tn(0);return VTe({delay:500,items:e,refs:"items",threshold:[.25,.75]},(({index:e})=>{t.value=e})),{activeItem:t}},data:H((()=>({uid:br()})),"data"),computed:{introHeadingId(){return`scrollFeatureMapIntro${this.uid}Heading`},introParentHeadingLevel(){return this.baseHeadingLevel},introChildHeadingLevel(){return this.introParentHeadingLevel+1},itemHeadingLevel(){return this.baseHeadingLevel+1}}},GIe={class:Fe(["o-scroll-feature-map","gui-container"])},KIe={class:"o-scroll-feature-map__inner"},YIe={class:"o-scroll-feature-map__items"},ZIe={key:0,ref:"intro",class:"o-scroll-feature-map__item"},XIe={class:"o-scroll-feature-map__media"},QIe={class:"o-scroll-feature-map__media-sticky"},JIe=Wee(WIe,[["render",function(e,t,n,i,r,a){const s=Yr("ScrollFeatureMapMedia"),o=Yr("Heading"),l=Yr("RichText"),u=Yr("ListOfLinks"),c=Yr("Module"),d=Yr("ScrollFeatureMapItem");return As(),Ps("section",GIe,[Bs("div",KIe,[Bs("div",YIe,[n.intro?(As(),Ps("div",ZIe,[n.map?(As(),Os(s,{key:0,activeItem:i.activeItem,items:n.mapItems,map:n.map,size:"location_map_3_4"},null,8,["activeItem","items","map"])):Ws("",!0),Hs(c,{headingLevel:a.introParentHeadingLevel,title:n.intro.header.title},{default:Ii((()=>[(As(!0),Ps(Ss,null,ea(n.intro.content,((e,t)=>(As(),Ps("div",{key:`introItem${t}`,class:"o-scroll-feature-map__intro-item"},[Hs(o,{id:`${a.introHeadingId}${t}`,level:a.introChildHeadingLevel,class:"o-scroll-feature-map__intro-title"},{default:Ii((()=>[qs(ze(e.title),1)])),_:2},1032,["id","level"]),e.excerpt?(As(),Os(l,{key:0,content:e.excerpt,class:"o-scroll-feature-map__intro-body"},null,8,["content"])):Ws("",!0),Hs(u,{labelId:e.links.items.length>1?`${a.introHeadingId}${t}`:null,links:e.links.items,modifiers:["space-before"],class:"o-scroll-feature-map__links"},null,8,["labelId","links"])])))),128))])),_:1},8,["headingLevel","title"])],512)):Ws("",!0),n.items?(As(!0),Ps(Ss,{key:1},ea(n.items,((e,t)=>(As(),Ps("div",{key:`${r.uid}-item-${t}`,class:"o-scroll-feature-map__item",ref_for:!0,ref:"items"},[n.map?(As(),Os(s,{key:0,activeItem:i.activeItem,items:n.mapItems,map:B(F({},n.map),{alt:"Map showing Getty Center highlighted"}),size:"location_map_3_4"},null,8,["activeItem","items","map"])):Ws("",!0),Hs(d,Zs({ref_for:!0},F({},e),{headingLevel:a.itemHeadingLevel}),null,16,["headingLevel"])])))),128)):Ws("",!0)]),Bs("div",XIe,[Bs("div",QIe,[n.map?(As(),Os(s,{key:0,activeItem:i.activeItem,items:n.mapItems,map:B(F({},n.map),{alt:"Map showing Getty Villa highlighted"}),size:"location_map_3_4"},null,8,["activeItem","items","map"])):Ws("",!0)])])])])}]]),e$e={class:"o-search-results-list"},t$e={class:"o-search-results-list__count"},n$e=Wee({name:"SearchResultsList",components:{PaginationBar:Kye,RichText:cre,SearchInput:Hde,SearchResultCard:Tke,SearchResultsCount:cse,SearchTools:Lke,SearchTopCard:Dke},mixins:[Moe],props:{baseLocaleKey:{type:String,default:"o-search-results-list"},content:{type:String,default:null},page:{type:Number,default:1},results:{type:Array,default:H((()=>[]),"default")},searchInputId:{type:String,default:""},searchInputName:{type:String,default:""},searchInputValue:{type:String,default:""},sizeValue:{type:Number,default:20},searchTools:{type:Object,default:null},topCard:{type:Object,default:null},totalHits:{type:Number,default:null}},emits:["updateSearchInput","submitSearch","updatePage"],setup:H((e=>F({}
100,zee({baseLocaleKey:e.baseLocaleKey}))),"setup"),data:H((()=>({currentPage:1,eventBus:Rse(),hasSubmitted:!1,isMobile:!1})),"data"),computed:{itemName(){return this.translate(`${this.baseLocaleKey}.item_name`)}},watch:{page:{handler(e){this.currentPage=e},immediate:!0},totalHits:{handler(e){isNaN(parseFloat(e))||(this.hasSubmitted=!0)},immediate:!0}},methods:{handleInputUpdate(e){this.$emit("updateSearchInput",e)},handleResize(){this.isMobile=this.isSmallMinus()},handleSubmit(e){this.$emit("submitSearch",e)}},mounted(){this.eventBus.on("updatePage",(({from:e,page:t})=>{this.currentPage=t,this.$emit("updatePage",{from:e,page:t})})),this.debouncedResize=ete(this.handleResize),window.addEventListener("resize",this.debouncedResize),this.handleResize()},beforeUnmount(){window.removeEventListener("resize",this.debouncedResize)}},[["render",function(e,t,n,i,r,a){const s=Yr("SearchInput"),o=Yr("SearchTools"),l=Yr("SearchResultsCount"),u=Yr("SearchTopCard"),c=Yr("SearchResultCard"),d=Yr("RichText"),p=Yr("PaginationBar");return As(),Ps("div",e$e,[Hs(s,{id:n.searchInputId,fieldName:n.searchInputName,version:"v2",initialValue:n.searchInputValue,"onSearchInput::Update":a.handleInputUpdate,"onSearchInput::Submit":a.handleSubmit},null,8,["id","fieldName","initialValue","onSearchInput::Update","onSearchInput::Submit"]),r.isMobile&&n.searchTools?(As(),Os(o,Be(Zs({key:0},n.searchTools)),null,16)):Ws("",!0),n.searchInputValue&&r.hasSubmitted?(As(),Ps(Ss,{key:1},[Bs("div",t$e,[Hs(l,{currentPage:r.currentPage,itemName:a.itemName,sizeValue:n.sizeValue,totalHits:n.totalHits},null,8,["currentPage","itemName","sizeValue","totalHits"])]),n.topCard&&1===n.page?(As(),Os(u,Be(Zs({key:0},n.topCard)),null,16)):Ws("",!0),(As(!0),Ps(Ss,null,ea(n.results,((e,t)=>(As(),Os(c,Zs({ref_for:!0},e,{key:e.id||e.url}),null,16)))),128)),0===n.totalHits&&n.content?(As(),Os(d,{key:1,class:"o-search-results-list__empty",content:n.content},null,8,["content"])):Ws("",!0),Hs(p,{currentPage:r.currentPage,isChild:!1,itemName:a.itemName,sizeValue:n.sizeValue,totalHits:n.totalHits},null,8,["currentPage","itemName","sizeValue","totalHits"])],64)):Ws("",!0)])}]]),i$e={primaryNav:[{text:"Visit",url:"/visit/"},{text:"Whatâs On",url:"/whats-on/"},{text:"Explore Art",url:"/art/"},{text:"Research & Conservation",url:"/research-conservation/"},{text:"Funding",url:"/funding/"},{text:"About",url:"/about/"}],museumInfo:[{id:"center",title:"Getty Center",content:"1200 Getty Center Drive, Los Angeles, CA 90049",url:"https://goo.gl/maps/Pki7pjeKvXqkGSwy9",cta:{text:"See Library hours",url:"/research-conservation/library/"}},{id:"villa",title:"Getty Villa",content:"17985 Pacific Coast Highway, Pacific Palisades, CA 90272",url:"https://goo.gl/maps/eYyoK3muoMsXrEXeA",cta:{text:"Get Villa tickets",url:"http://tickets.getty.edu/shows/villa%20admission/events/3"}}],navGrid:[{title:"Books and Publications",items:[{text:"Getty Publications",url:"/publications/"},{text:"Virtual Library",url:"/publications/virtuallibrary/index.html"},{text:"Digital Publishing",url:"/publications/digital/index.html"},{text:"Getty Research Journal",url:"/research/publications/grj/"},{text:"Getty Store",url:"https://shop.getty.edu/"}]},{title:"Education",items:[{text:"Events and Programs",url:"/whats-on/"},{text:"K-12 Resources",url:"/education/teachers/index.html"},{text:"School Visits",url:"/education/teachers/trippack/index.html"}]},{title:"Art and Research",items:[{text:"Getty Library",url:"/research-conservation/library/"},{text:"Art Collection",url:"/art/collection/"},{text:"Research Collections",url:"https://primo.getty.edu/"},{text:"Search Tools and Databases",url:"/research/tools/"},{text:"Open Content Program",url:"/about/whatwedo/opencontent.html"}]},{title:"Opportunities",items:[{text:"Jobs",url:"https://jobs-getty.icims.com/"},{text:"Docents & Volunteers",url:"/about/join-and-give/volunteer/"},{text:"Join & Give",url:"/about/join-and-give/"}]},{title:"Conservation",items:[{text:"Conservation Institute Projects",url:"/conservation/our_projects/current.html"},{text:"Museum Conservation",url:"/museum/#conservation"},{text:"Publications and Resources",url:"/search/publications/"}]},{title:"Funding Opportunities",items:[{text:"Paid Internships",url:"/funding/opportunities/"},{text:"Library Research Grants",url:"/projects/library-research-grants/"},{text:"Residential Grants",url:"/funding/residential-grants/"},{text:"Funding Initiatives",url:"/projects/?organizer=getty-foundation&status=active&sort=title&order=ascending"}]},{title:"News and Contact",items:[{text:"News & Stories",url:"/news/"},{text:"Press Room",url:"/news/journalists"},{text:"E-Newsletters",url:"https://subscriptions.getty.edu/signup"},{text:"Contact & Connect",url:"/about/contact/"}]},{a11yTitle:"Legal",title:"© J. Paul Getty Trust",items:[{text:"Accessibility",url:"/accessibility"},{text:"Sustainability",url:"/sustainability"},{text:"Privacy Policy",url:"/legal/privacy/"},{text:"Cookies Notice",url:"/legal/cookies-notice/"},{text:"Terms of Use",url:"/legal/terms-of-use/"}]}],social:[{icon:"FacebookConnect",text:"Facebook",url:"https://www.facebook.com/gettymuseum"},{icon:"X",text:"X",url:"https://twitter.com/gettymuseum"},{icon:"InstagramConnect",text:"Instagram",url:"https://www.instagram.com/gettymuseum/"},{icon:"TikTok",text:"TikTok",url:"https://www.tiktok.com/@gettymuseum/"}],socialAllLink:"/connect/"},r$e={hasSearch:!0,primaryNav:[{text:"Visit",url:"/visit/",dropdown:{title:{text:"Visit",url:"/visit/"},linksPrimary:{items:[{text:"Getty Center",url:"/visit/center"},{text:"Getty Villa Museum",url:"/visit/villa"},{text:"Compare Museums",url:"/visit/"},{text:"Getty Store",url:"https://shop.getty.edu/"}
100],a11yTitle:"Primary navigation links"},linksSecondary:{items:[{text:"GettyGuide App",url:"/visit/app"},{text:"Photo and Video Policy",url:"/visit/photo-and-video-policy"}],a11yTitle:"Secondary navigation links"}}},{text:"Whatâs On",url:"/whats-on/",dropdown:{title:{text:"What's On",url:"/whats-on/"},linksPrimary:{items:[{text:"Highlights",url:"/whats-on/"},{text:"Calendar",url:"/calendar/"}],a11yTitle:"Primary navigation links"},linksSecondary:{items:[{text:"Current Exhibitions",url:"/exhibitions/"},{text:"Future Exhibitions",url:"/exhibitions/?tab=future"},{text:"Past Exhibitions",url:"/art/collection/past-exhibitions"}],a11yTitle:"Secondary navigation links"}}},{text:"Explore Art",url:"/art/",dropdown:{title:{text:"Explore Art",url:"/art/"},linksPrimary:{items:[{text:"Art Highlights",url:"/art/"},{text:"Art Collection",url:"/art/collection/"},{text:"Talks & Videos",url:"https://www.youtube.com/gettymuseum"}],a11yTitle:"Primary navigation links"},linksSecondary:{items:[{text:"Images for Download",url:"/art/collection/search?open_content=true"},{text:"Podcasts",url:"/podcasts/"},{text:"Teaching Materials",url:"/education/teachers/index.html"}],a11yTitle:"Secondary navigation links"}}},{text:"Research & Conservation",url:"/research-conservation/",dropdown:{title:{text:"Research & Conservation",url:"/research-conservation/"},linksPrimary:{items:[{text:"Overview",url:"/research-conservation/"},{text:"Projects & Initiatives",url:"/projects/"},{text:"Library",url:"/research-conservation/library/"}],a11yTitle:"Primary navigation links"},linksSecondary:{items:[{text:"Research Collections",url:"/research/collections/"},{text:"Publications & Reports",url:"/publications-reports/"},{text:"Databases, Tools & Technologies",url:"/research/tools/"},{text:"Professional Courses & Training",url:"/conservation/publications_resources/teaching/"}],a11yTitle:"Secondary navigation links"}}},{text:"Education",url:"/education/",dropdown:{title:{text:"Education",url:"/education/"},linksPrimary:{items:[{text:"Overview",url:"/education/"},{text:"Field Trips",url:"/education/field-trips/"},{text:"Kâ12 Learning Resources",url:"https://www.getty.edu/education/teachers/classroom_resources/curricula/index.html"}],a11yTitle:"Primary navigation links"},linksSecondary:{items:[{text:"Teen Programs",url:"/education/teen-programs/"},{text:"Teacher Programs",url:"/education/teacher-programs/"}],a11yTitle:"Secondary navigation links"}}},{text:"Funding",url:"/funding/",dropdown:{title:{text:"Funding",url:"/funding/"},linksPrimary:{items:[{text:"Overview",url:"/funding/"},{text:"All Opportunities",url:"/funding/opportunities/"},{text:"Residential Grants",url:"/funding/residential-grants/"}],a11yTitle:"Primary navigation links"},linksSecondary:{items:[{text:"Impact Reports",url:"/funding/impact-reports/"},{text:"Grants Database",url:"/funding/grants-database/"}],a11yTitle:"Secondary navigation links"}}},{text:"About",url:"/about/",dropdown:{title:{text:"About",url:"/about/"},linksPrimary:{items:[{text:"About Getty",url:"/about/"},{text:"News & Stories",url:"/news/"},{text:"Facts",url:"/about/facts/"},{text:"History",url:"/about/history/"},{text:"Leadership",url:"/about/leadership-governance/"},{text:"Careers",url:"https://jobs-getty.icims.com/jobs/intro"},{text:"Join & Give",url:"/about/join-and-give/"},{text:"Contact & Connect",url:"/about/contact/"}],a11yTitle:"Primary navigation links"},linksSecondary:{items:[{text:"Conservation Institute",url:"/conservation-institute/"},{text:"Foundation",url:"/foundation/"},{text:"Museum",url:"/museum/"},{text:"Research Institute",url:"/research-institute/"},{text:"Publications",url:"/publications/"}],a11yTitle:"Secondary navigation links"}}}],secondaryNav:[]},a$e=["aria-hidden"],s$e=Wee({name:"GettyPage",components:{Announcer:Pse,GuiFooter:uoe,GuiHeader:lde,PageContainer:Lde},props:{alerts:{type:Array,default:H((()=>[]),"default")},applicationBaseUrl:{type:String,required:!0},componentBaseUrl:{type:String,default:"https://www.getty.edu/"},globalData:{type:Object,default:null},headerOptions:{type:Object,default:H((()=>{}),"default")},footerOptions:{type:Object,default:H((()=>{}),"default")},applicationSeachUrl:{type:String,default:null},applicationSearchFieldName:{type:String,default:null}},emits:["dismissAlert"],data:H((()=>({announcer:{},eventBus:Rse(),hidden:!1})),"data"),computed:{headerData(){return F(F({},r$e),this.headerOptions)},footerData(){return this.globalData&&this.globalData.locations&&i$e.museumInfo.forEach((e=>{const t=this.globalData.locations[e.id];e.openHours=t&&t.openHours})),F(F({},i$e),this.footerOptions)}},mounted(){this.eventBus.on("modalOpen",this.ariaHide),this.eventBus.on("modalClose",this.ariaShow),this.eventBus.on("announce",(({message:e,tone:t})=>{this.announcer={message:e,tone:t}}))},unmounted(){this.eventBus.off("modalOpen",this.ariaHide),this.eventBus.off("modalClose",this.ariaShow)},methods:{ariaHide(){this.hidden=!0},ariaShow(){this.hidden=!1},dismissAlert(e){this.$emit("dismissAlert",e)}}},[["render",function(e,t,n,i,r,a){const s=Yr("GuiHeader"),o=Yr("GuiFooter"),l=Yr("Announcer"),u=Yr("PageContainer");return As(),Os(u,{applicationBaseUrl:n.applicationBaseUrl},{default:Ii((()=>[na(e.$slots,"header",{},(()=>[Hs(s,Zs(a.headerData,{alerts:n.alerts,baseUrl:n.componentBaseUrl,onDismiss:a.dismissAlert}),null,16,["alerts","baseUrl","onDismiss"])])),Bs("main",{"aria-hidden":r.hidden},[na(e.$slots,"default")],8,a$e),na(e.$slots,"footer",{},(()=>[Hs(o,Zs(a.footerData,{baseUrl:n.componentBaseUrl}),null,16,["baseUrl"])])),Hs(l,Be(Us(r.announcer)),null,16)])),_:3},8,["applicationBaseUrl"])}]]);Object.freeze(Object.defineProperty({__proto__:null,Accordion:jpe,AccordionItem:Voe,Alert:gre,AlertsList:$se,Announcer:Pse,AriaLiveLoading:Yee,ArticleAttribution:Upe,ArticleCallout:Wpe,ArticleEditorNote:Kpe,ArticleTags:Xpe,AudioFeature:Sxe,AudioPlayer:Ihe,Biography:Fhe,BodyText:tle,Breadcrumbs:Zhe,CallToAction:Jhe,Card:ace,CardList:vde,CardListRows:Axe,Chip:ore,ChronologicalListing:Tme,CoBrand:Ame,ColumnListing:Hxe,ContentBlocks:wSe,CopyButton:wre,Credits:Ere,DatePicker:Mme,DatePickerDropdown:Ume,DelimitedFieldValues:Dre,DescriptionList:$re,DisplayText:Ore,Dropdown:Hme,Error404:zxe,EventTourModule:Gxe,ExhibitionModule:Jxe,Explore:Qme,FacetExplorer:UTe,FacetGroup:tge,FacetItem:Rre,Facts:sge,Factums:mge,FeatureCarousel:Lye,FeaturePost:vye,FilterBar:Oye,Filters:Sve,FollowCallout:xve,GettyLocationHighlights:xEe,GettyPage:s$e,GoogleSlidesEmbed:Bre,GridOfItems:Fve,GuiAutocomplete:tae,GuiButton:Jee,GuiChart:wbe,GuiFooter:uoe,GuiForm:Cbe,GuiFormErrors:Tbe,GuiFormSection:Lbe,GuiHeader:lde,GuiInput:Mre,GuiInputLabel:$be,GuiLink:rre,GuiToggle:gse,Heading:jre,Hero:FLe,HierarchicalListOfLinks:Obe,Icon:Xie,IconPlacemat:nae,IconTooltip:uae,ImageAndCaption:Wbe,ImageGroup:Gbe,ImageLightbox:awe,ImageResponsive:vae,ImageResponsiveWithErrorWrapper:Bbe,ImmersiveFeature:Zbe,InPageNav:lpe,IndexListing:r_e,InteractiveVideoEmbed:wae,ItemTree:JLe,JumpLinks:u_e,LayoutDocument:Jde,LayoutEditorial:ipe,LayoutNavAside:Dpe,LayoutPageWithAside:Fpe,LinkGrid:jce,ListOfLinks:zre,ListOfLinksWithHeading:Wre,ListingCarousel:f_e,ListingGridImage:b_e,LoadMore:$ae,LoadingImageAndCaption:Rae,LocationHours:kSe,LocationHoursList:ESe,LocationInfo:HSe,LocationMediaFull:uIe,LocationMediaSplit:wIe,Logo:Tae,MapCards:KSe,MapImage:Hae,MediaControl
100s:Jpe,MediaFeature:tCe,MediaIndicator:Vae,MediaScrollFeature:sCe,MediaTranscript:w_e,MenuCardList:oCe,MobileNavigation:Ece,Modal:Poe,Module:Spe,ModuleAlert:cpe,ModuleHeader:mpe,ModuleInline:xIe,ModuleSection:TIe,NavDropdown:Xye,NavOverlay:Ade,Navigation:Zce,OpenHours:zse,OpenNowStatus:Wae,OxfordCommaLinkList:lCe,PageContainer:Lde,PaginationBar:Kye,Post:Yue,PostInline:mCe,ProjectDetails:xCe,Quotation:FCe,RadAdvancedSearchBox:WCe,RadHero:ake,RadSearchBox:XCe,RecordMetadataField:Hle,RelatedSearchResultsCarousel:cke,RelatedSearchResultsGrid:vke,ResourceEntity:IIe,ResourceUnavailable:Yae,Ribbon:ese,RichText:cre,ScrollFeature:jIe,ScrollFeatureMap:JIe,ScrollSpy:$de,ScrollTopButton:ase,SearchChips:jCe,SearchInput:Hde,SearchOverlay:Kde,SearchResultCard:Tke,SearchResultsCount:cse,SearchResultsList:n$e,SearchTools:Lke,SearchTopCard:Dke,SortBar:ove,StatusIndicator:Oke,SuggestedSearches:jke,Tabs:Kke,TechnicalData:mxe,VideoBackground:Cse,VideoPlayer:nSe},Symbol.toStringTag,{value:"Module"})),typeof window<"u"&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(let n=0;n<this.length;++n)e.call(t,this[n],n,this)});const o$e={install:H(((e,t={})=>{if(e.config.idPrefix="-gui",e.use(Fee),e.use(Uee,{swipeTolerance:80}),wfe(),Sfe(),!1!==t.registerI18n){const n=vm(t.i18nConfig||{locale:"en",fallbackLocale:"en",messages:Vee});e.use(n)}}),"install")},l$e={install:H(((e,t={})=>{if(e.config.globalProperties.formKitInstalled)return;e.component("GuiAutocomplete",tae),e.component("GuiInput",Mre);const n=t&&t.formKitConfig?t.formKitConfig:bme;void 0!==t.delay&&(n.props.delay=t.delay),e.use(iX,bZ(n))}),"install")};function u$e(e,t){return H((function(){return e.apply(t,arguments)}),"wrap")}H(u$e,"bind");const{toString:c$e}=Object.prototype,{getPrototypeOf:d$e}=Object,{iterator:p$e,toStringTag:h$e}=Symbol,f$e=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),m$e=H(((e,t)=>{let n=e;const i=[];for(;null!=n&&n!==Object.prototype;){if(-1!==i.indexOf(n))return!1;if(i.push(n),f$e(n,t))return!0;n=d$e(n)}return!1}),"hasOwnInPrototypeChain"),g$e=H(((e,t)=>null!=e&&m$e(e,t)?e[t]:void 0),"getSafeProp"),y$e=(e=>t=>{const n=c$e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),v$e=H((e=>(e=e.toLowerCase(),t=>y$e(t)===e)),"kindOfTest"),b$e=H((e=>t=>typeof t===e),"typeOfTest"),{isArray:_$e}=Array,w$e=b$e("undefined");function S$e(e){return null!==e&&!w$e(e)&&null!==e.constructor&&!w$e(e.constructor)&&T$e(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}H(S$e,"isBuffer");const C$e=v$e("ArrayBuffer");function k$e(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&C$e(e.buffer),t}H(k$e,"isArrayBufferView$1");const x$e=b$e("string"),T$e=b$e("function"),E$e=b$e("number"),A$e=H((e=>null!==e&&"object"==typeof e),"isObject$2"),L$e=H((e=>!0===e||!1===e),"isBoolean$1"),I$e=H((e=>{if(!A$e(e))return!1;const t=d$e(e);return!(null!==t&&t!==Object.prototype&&null!==d$e(t)||m$e(e,h$e)||m$e(e,p$e))}),"isPlainObject$4"),$$e=H((e=>{if(!A$e(e)||S$e(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(tvt){return!1}}),"isEmptyObject$1"),D$e=v$e("Date"),P$e=v$e("File"),O$e=H((e=>!(!e||void 0===e.uri)),"isReactNativeBlob"),M$e=H((e=>e&&void 0!==e.getParts),"isReactNative"),R$e=v$e("Blob"),N$e=v$e("FileList"),F$e=v$e("Set"),B$e=H((e=>A$e(e)&&T$e(e.pipe)),"isStream");function H$e(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}}H(H$e,"getGlobal");const j$e=H$e(),U$e=void 0!==j$e.FormData?j$e.FormData:void 0,V$e=H((e=>{if(!e)return!1;if(U$e&&e instanceof U$e)return!0;const t=d$e(e);if(!t||t===Object.prototype)return!1;if(!T$e(e.append))return!1;const n=y$e(e);return"formdata"===n||"object"===n&&T$e(e.toString)&&"[object FormData]"===e.toString()}),"isFormData"),q$e=v$e("URLSearchParams"),[z$e,W$e,G$e,K$e]=["ReadableStream","Request","Response","Headers"].map(v$e),Y$e=H((e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),"trim");function Z$e(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,r;if("object"!=typeof e&&(e=[e]),_$e(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{if(S$e(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;let s;for(i=0;i<a;i++)s=r[i],t.call(null,e[s],s,e)}}function X$e(e,t){if(S$e(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i,r=n.length;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}
100H(Z$e,"forEach$1"),H(X$e,"findKey");const Q$e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,J$e=H((e=>!w$e(e)&&e!==Q$e),"isContextDefined");function eDe(...e){const{caseless:t,skipUndefined:n}=J$e(this)&&this||{},i={},r=H(((e,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;const a=t&&"string"==typeof r&&X$e(i,r)||r,s=f$e(i,a)?i[a]:void 0;I$e(s)&&I$e(e)?i[a]=eDe(s,e):I$e(e)?i[a]=eDe({},e):_$e(e)?i[a]=e.slice():n&&w$e(e)||(i[a]=e)}),"assignValue");for(let a=0,s=e.length;a<s;a++){const t=e[a];if(!t||S$e(t))continue;if(Z$e(t,r),"object"!=typeof t||_$e(t))continue;const n=Object.getOwnPropertySymbols(t);for(let e=0;e<n.length;e++){const i=n[e];pDe.call(t,i)&&r(t[i],i)}}return i}H(eDe,"merge$3");const tDe=H(((e,t,n,{allOwnKeys:i}={})=>(Z$e(t,((t,i)=>{n&&T$e(t)?Object.defineProperty(e,i,{__proto__:null,value:u$e(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})}),{allOwnKeys:i}),e)),"extend$1"),nDe=H((e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e)),"stripBOM"),iDe=H(((e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)}),"inherits"),rDe=H(((e,t,n,i)=>{let r,a,s;const o={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)s=r[a],i&&!i(s,e,t)||o[s]||(t[s]=e[s],o[s]=!0);e=!1!==n&&d$e(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}),"toFlatObject"),aDe=H(((e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n}),"endsWith"),sDe=H((e=>{if(!e)return null;if(_$e(e))return e;let t=e.length;if(!E$e(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n}),"toArray"),oDe=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&d$e(Uint8Array)),lDe=H(((e,t)=>{const n=(e&&e[p$e]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}}),"forEachEntry"),uDe=H(((e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i}),"matchAll"),cDe=v$e("HTMLFormElement"),dDe=H((e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,H((function(e,t,n){return t.toUpperCase()+n}),"replacer"))),"toCamelCase"),{propertyIsEnumerable:pDe}=Object.prototype,hDe=v$e("RegExp"),fDe=H(((e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Z$e(n,((n,r)=>{let a;!1!==(a=t(n,r,e))&&(i[r]=a||n)})),Object.defineProperties(e,i)}),"reduceDescriptors"),mDe=H((e=>{fDe(e,((t,n)=>{if(T$e(e)&&["arguments","caller","callee"].includes(n))return!1;const i=e[n];T$e(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))}),"freezeMethods"),gDe=H(((e,t)=>{const n={},i=H((e=>{e.forEach((e=>{n[e]=!0}))}),"define");return _$e(e)?i(e):i(String(e).split(t)),n}),"toObjectSet"),yDe=H((()=>{}),"noop"),vDe=H(((e,t)=>null!=e&&Number.isFinite(e=+e)?e:t),"toFiniteNumber");function bDe(e){return!!(e&&T$e(e.append)&&"FormData"===e[h$e]&&e[p$e])}H(bDe,"isSpecCompliantForm");const _De=H((e=>{const t=new WeakSet,n=H((e=>{if(A$e(e)){if(t.has(e))return;if(S$e(e))return e;if(!("toJSON"in e)){let i;if(t.add(e),F$e(e)){i=[];for(const t of e){const e=n(t);!w$e(e)&&i.push(e)}}else i=_$e(e)?[]:{},Z$e(e,((e,t)=>{const r=n(e);!w$e(r)&&(i[t]=r)}));return t.delete(e),i}}return e}),"visit");return n(e)}),"toJSONObject"),wDe=v$e("AsyncFunction"),SDe=H((e=>e&&(A$e(e)||T$e(e))&&T$e(e.then)&&T$e(e.catch)),"isThenable$2"),CDe=(kDe="function"==typeof setImmediate,xDe=T$e(Q$e.postMessage),kDe?setImmediate:xDe?(TDe=`axios@${Math.random()}`,EDe=[],Q$e.addEventListener("message",(({source:e,data:t})=>{e===Q$e&&t===TDe&&EDe.length&&EDe.shift()()}),!1),e=>{EDe.push(e),Q$e.postMessage(TDe,"*")}):e=>setTimeout(e));var kDe,xDe,TDe,EDe;const ADe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Q$e):"undefined"!=typeof process&&process.nextTick||CDe,LDe=H((e=>null!=e&&T$e(e[p$e])),"isIterable"),IDe=H((e=>null!=e&&m$e(e,p$e)&&LDe(e)),"isSafeIterable"),$De={isArray:_$e,isArrayBuffer:C$e,isBuffer:S$e,isFormData:V$e,isArrayBufferView:k$e,isString:x$e,isNumber:E$e,isBoolean:L$e,isObject:A$e,isPlainObject:I$e,isEmptyObject:$$e,isReadableStream:z$e,isRequest:W$e,isResponse:G$e,isHeaders:K$e,isUndefined:w$e,isDate:D$e,is
100File:P$e,isReactNativeBlob:O$e,isReactNative:M$e,isBlob:R$e,isRegExp:hDe,isFunction:T$e,isStream:B$e,isURLSearchParams:q$e,isTypedArray:oDe,isFileList:N$e,forEach:Z$e,merge:eDe,extend:tDe,trim:Y$e,stripBOM:nDe,inherits:iDe,toFlatObject:rDe,kindOf:y$e,kindOfTest:v$e,endsWith:aDe,toArray:sDe,forEachEntry:lDe,matchAll:uDe,isHTMLForm:cDe,hasOwnProperty:f$e,hasOwnProp:f$e,hasOwnInPrototypeChain:m$e,getSafeProp:g$e,reduceDescriptors:fDe,freezeMethods:mDe,toObjectSet:gDe,toCamelCase:dDe,noop:yDe,toFiniteNumber:vDe,findKey:X$e,global:Q$e,isContextDefined:J$e,isSpecCompliantForm:bDe,toJSONObject:_De,isAsyncFn:wDe,isThenable:SDe,setImmediate:CDe,asap:ADe,isIterable:LDe,isSafeIterable:IDe},DDe=$De.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),PDe=H((e=>{const t={};let n,i,r;return e&&e.split("\n").forEach(H((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim();const a=$De.hasOwnProp(t,n);!n||a&&$De.hasOwnProp(DDe,n)||("set-cookie"===n?a?t[n].push(i):t[n]=[i]:t[n]=a?t[n]+", "+i:i)}),"parser")),t}),"parseHeaders$1");function ODe(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}H(ODe,"trimSPorHTAB");const MDe=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),RDe=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function NDe(e,t){return $De.isArray(e)?e.map((e=>NDe(e,t))):ODe(String(e).replace(t,""))}H(NDe,"sanitizeValue");const FDe=H((e=>NDe(e,MDe)),"sanitizeHeaderValue"),BDe=H((e=>NDe(e,RDe)),"sanitizeByteStringHeaderValue");function HDe(e){const t=Object.create(null);return $De.forEach(e.toJSON(),((e,n)=>{t[n]=BDe(e)})),t}H(HDe,"toByteStringHeaderObject");const jDe=Symbol("internals");function UDe(e){return e&&String(e).trim().toLowerCase()}function VDe(e){return!1===e||null==e?e:$De.isArray(e)?e.map(VDe):FDe(String(e))}function qDe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}H(UDe,"normalizeHeader"),H(VDe,"normalizeValue$1"),H(qDe,"parseTokens");const zDe=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function WDe(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function GDe(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let i=1;i<t;i++){const r=e.charCodeAt(i);if(34===r)return e;if(92===r&&(i+=1,i>=t))return e;n+=e[i]}return n}function KDe(e){const t=Object.create(null),n=String(e);let i=0,r=!1,a=!1;function s(e){const r=WDe(n.slice(i,e)),a=r.indexOf("=");if(a<1)return;const s=WDe(r.slice(0,a));if(!zDe.test(s))return;const o=s.toLowerCase();if("__proto__"===o||"constructor"===o||"prototype"===o)return;const l=WDe(r.slice(a+1));t[o]=GDe(l)}H(s,"parseParameter");for(let o=0;o<n.length;o++){const e=n.charCodeAt(o);r?a?a=!1:92===e?a=!0:34===e&&(r=!1):34===e?r=!0:44!==e&&59!==e||(s(o),i=o+1)}return s(n.length),t}H(WDe,"trimOWS"),H(GDe,"decodeQuotedString"),H(KDe,"parseParameters");const YDe=H((e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())),"isValidHeaderName");function ZDe(e,t,n,i,r){return $De.isFunction(i)?i.call(this,t,n):(r&&(t=n),$De.isString(t)?$De.isString(i)?-1!==t.indexOf(i):$De.isRegExp(i)?i.test(t):void 0:void 0)}function XDe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function QDe(e,t){const n=$De.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{__proto__:null,value:H((function(e,n,r){return this[i].call(this,t,e,n,r)}),"value"),configurable:!0})}))}H(ZDe,"matchHeaderValue"),H(XDe,"formatHeader"),H(QDe,"buildAccessors");let JDe=(c=class{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=UDe(t);if(!r)return;const a=$De.findKey(i,r);(!a||void 0===i[a]||!0===n||void 0===n&&!1!==i[a])&&(i[a||t]=VDe(e))}H(r,"setHeader");const a=H(((e,t)=>$De.forEach(e,((e,n)=>
100r(e,n,t)))),"setHeaders");if($De.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if($De.isString(e)&&(e=e.trim())&&!YDe(e))a(PDe(e),t);else if($De.isObject(e)&&$De.isSafeIterable(e)){let n,i,r=Object.create(null);for(const t of e){if(!$De.isArray(t))throw new TypeError("Object iterator must return a key-value pair");i=t[0],$De.hasOwnProp(r,i)?(n=r[i],r[i]=$De.isArray(n)?[...n,t[1]]:[n,t[1]]):r[i]=t[1]}a(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=UDe(e)){const n=$De.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return qDe(e);if($De.isFunction(t))return t.call(this,e,n);if($De.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=UDe(e)){const n=$De.findKey(this,e);return!(!n||void 0===this[n]||t&&!ZDe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=UDe(e)){const r=$De.findKey(n,e);!r||t&&!ZDe(0,n[r],r,t)||(delete n[r],i=!0)}}return H(r,"deleteHeader"),$De.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const r=t[n];e&&!ZDe(0,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return $De.forEach(this,((i,r)=>{const a=$De.findKey(n,r);if(a)return t[a]=VDe(i),void delete t[r];const s=e?XDe(r):String(r).trim();s!==r&&delete t[r],t[s]=VDe(i),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return $De.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&$De.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){const e=this.get("set-cookie");return $De.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return KDe(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[jDe]=this[jDe]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=UDe(e);t[i]||(QDe(n,e),t[i]=!0)}return H(i,"defineAccessor"),$De.isArray(e)?e.forEach(i):i(e),this}},H(c,"AxiosHeaders"),c);JDe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$De.reduceDescriptors(JDe.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:H((()=>e),"get"),set(e){this[n]=e}}})),$De.freezeMethods(JDe);const ePe="[REDACTED ****]";function tPe(e){if($De.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if($De.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function nPe(e,t){const n=new Set(t.map((e=>String(e).toLowerCase()))),i=[],r=H((e=>{if(null===e||"object"!=typeof e)return e;if($De.isBuffer(e))return e;if(-1!==i.indexOf(e))return;let t;if(e instanceof JDe&&(e=e.toJSON()),i.push(e),$De.isArray(e))t=[],e.forEach(((e,n)=>{const i=r(e);$De.isUndefined(i)||(t[n]=i)}));else{if(!$De.isPlainObject(e)&&tPe(e))return i.pop(),e;t=Object.create(null);for(const[i,a]of Object.entries(e)){const e=n.has(i.toLowerCase())?ePe:r(a);$De.isUndefined(e)||(t[i]=e)}}return i.pop(),t}),"visit");return r(e)}function iPe(e){try{return String(e)}catch(t){return""}}function rPe(e){return e.errors.map((e=>{try{return e&&e.message?iPe(e.message):iPe(e)}catch(t){return""}})).filter(Boolean).join("; ")||e.name||"AggregateError"}H(tPe,"hasOwnOrPrototypeToJSON"),H(nPe,"redactConfig"),H(iPe,"stringifySafely$1"),H(rPe,"aggregateErrorMessage");let aPe=(d=class extends Error{static from(e,t,n,i,r,a){let s=e.message;!s&&$De.isArray(e.errors)&&e.errors.length&&(s=rPe(e));const o=new d(s,t||e.code,n,i,r);return Object.defineProperty(o,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),o.name=e.name,null!=e.status&&null==o.status&&(o.status=e.status),a&&Object.assign(o,a),o}constructor(e,t,n,i,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status)}toJSON(){const e=this.config,t=e&&$De.hasOwnProp(e,"redact")?e.redact:void 0,n=$De.isArray(t)&&t.length>0?nPe(e,t):$De.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}},H(d,"AxiosError"),d);aPe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",aPe.ERR_BAD_OPTION="ERR_BAD_OPTION",aPe.ECONNABORTED="ECONNABORTED",aPe.ETIMEDOUT="ETIMEDOUT",aPe.ECONNREFUSED="ECONNREFUSED",aPe.ERR_NETWORK="ERR_NETWORK",aPe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",aPe.ERR_DEPRECATED="ERR_DEPRECATED",aPe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",aPe.ERR_BAD_REQUEST="ERR_BAD_REQUEST",aPe.ERR_CANCELED="ERR_CANCELED",aPe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",aPe.ERR_INVALID_URL="ERR_INVALID_URL",aPe.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const sPe=100;function oPe(e){return $De.isPlainObject(e)||$De.isArray(e)}function lPe(e){return $De.endsWith(e,"[]")?e.slice(0,-2):e}function uPe(e,t,n){return e?e.concat(t).map(H((function(e,t){return e=lPe(e),!n&&t?"["+e+"]":e}),"each")).join(n?".":""):t}function cPe(e){return $De.isArray(e)&&!e.some(oPe)}H(oPe,"isVisitable"),H(lPe,"removeBrackets"),H(uPe,"renderKey"),H(cPe,"isFlatArray");const dPe=$De.toFlatObject($De,{},null,H((function(e){return/^is[A-Z]/.test(e)}
100),"filter"));function pPe(e,t,n){if(!$De.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const i=(n=$De.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,H((function(e,t){return!$De.isUndefined(t[e])}),"defined"))).metaTokens,r=n.visitor||f,a=n.dots,s=n.indexes,o=n.Blob||"undefined"!=typeof Blob&&Blob,l=void 0===n.maxDepth?sPe:n.maxDepth,u=o&&$De.isSpecCompliantForm(t),c=[];if(!$De.isFunction(r))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if($De.isDate(e))return e.toISOString();if($De.isBoolean(e))return e.toString();if(!u&&$De.isBlob(e))throw new aPe("Blob is not supported. Use a Buffer instead.");if($De.isArrayBuffer(e)||$De.isTypedArray(e)){if(u&&"function"==typeof o)return new o([e]);throw new aPe("Blob is not supported. Use a Buffer instead.",aPe.ERR_NOT_SUPPORT)}return e}function p(e){if(e>l)throw new aPe("Object is too deeply nested ("+e+" levels). Max depth: "+l,aPe.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,t){if(l===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,H((function(e,i){if(!$De.isObject(i))return i;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(i),p(t+n.length-1),i}),"limitDepth"))}function f(e,n,r){let o=e;if($De.isReactNative(t)&&$De.isReactNativeBlob(e))return t.append(uPe(r,n,a),d(e)),!1;if(e&&!r&&"object"==typeof e)if($De.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=h(e,1);else if($De.isArray(e)&&cPe(e)||($De.isFileList(e)||$De.endsWith(n,"[]"))&&(o=$De.toArray(e)))return n=lPe(n),o.forEach(H((function(e,i){!$De.isUndefined(e)&&null!==e&&t.append(!0===s?uPe([n],i,a):null===s?n:n+"[]",d(e))}),"each")),!1;return!!oPe(e)||(t.append(uPe(r,n,a),d(e)),!1)}H(d,"convertValue"),H(p,"throwIfMaxDepthExceeded"),H(h,"stringifyWithDepthLimit"),H(f,"defaultVisitor");const m=Object.assign(dPe,{defaultVisitor:f,convertValue:d,isVisitable:oPe});function g(e,n,i=0){if(!$De.isUndefined(e)){if(p(i),-1!==c.indexOf(e))throw new Error("Circular reference detected in "+n.join("."));c.push(e),$De.forEach(e,H((function(e,a){!0===(!($De.isUndefined(e)||null===e)&&r.call(t,e,$De.isString(a)?a.trim():a,n,m))&&g(e,n?n.concat(a):[a],i+1)}),"each")),c.pop()}}if(H(g,"build"),!$De.isObject(e))throw new TypeError("data must be an object");return g(e),t}function hPe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,H((function(e){return t[e]}),"replacer"))}function fPe(e,t){this._pairs=[],e&&pPe(e,this,t)}H(pPe,"toFormData$1"),H(hPe,"encode$1"),H(fPe,"AxiosURLSearchParams");const mPe=fPe.prototype;function gPe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function yPe(e,t,n){if(!t)return e;e=e||"";const i=$De.isFunction(n)?{serialize:n}:n,r=$De.getSafeProp(i,"encode")||gPe,a=$De.getSafeProp(i,"serialize");let s;if(s=a?a(t,i):$De.isURLSearchParams(t)?t.toString():new fPe(t,i).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}mPe.append=H((function(e,t){this._pairs.push([e,t])}),"append"),mPe.toString=H((function(e){const t=e?t=>e.call(this,t,hPe):hPe;return this._pairs.map(H((function(e){return t(e[0])+"="+t(e[1])}),"each"),"").join("&")}),"toString"),H(gPe,"encode"),H(yPe,"buildURL");const vPe=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$De.forEach(this.handlers,H((function(t){null!==t&&e(t)}),"forEachHandler"))}};H(vPe,"InterceptorManager");let bPe=vPe;const _Pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},wPe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:fPe,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},SPe="undefined"!=typeof window&&"undefined"!=typeof document,CPe="object"==typeof navigator&&navigator||void 0,kPe=SPe&&(!CPe||["ReactNative","NativeScript","NS"].indexOf(CPe.product)<0),xPe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,TPe=SPe&&window.location.href||"http://localhost",EPe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:SPe,hasStandardBrowserEnv:kPe,hasStandardBrowserWebWorkerEnv:xPe,navigator:CPe,origin:TPe},Symbol.toStringTag,{value:"Module"})),APe=F(F({},EPe),wPe);function LPe(e,t){return pPe(e,new APe.classes.URLSearchParams,F({visitor:H((function(e,t,n,i){return APe.isNode&&$De.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}),"visitor")},t))}H(LPe,"toURLEncodedForm");const IPe=sPe;function $Pe(e){if(e>IPe)throw new aPe("FormData field is too deeply nested ("+e+" levels). Max depth: "+IPe,aPe.ERR_FORM_DATA_DEPTH_EXCEEDED)}function DPe(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let i;for(;null!==(i=n.exec(e));)$Pe(t.length),t.push("[]"===i[0]?"":i[1]||i[0]);return t}function PPe(e){const t={},n=Object.keys(e);let i;const r=n.length;let a;for(i=0;i<r;i++)a=n[i],t[a]=e[a];return t}function OPe(e){function t(e,n,i,r){$Pe(r);let a=e[r++];if("__proto__"===a)return!0;const s=Number.isFinite(+a),o=r>=e.length;if(a=!a&&$De.isArray(i)?i.length:a,o)return $De.hasOwnProp(i,a)?i[a]=$De.isArray(i[a])?i[a].concat(n):[i[a],n]:i[a]=n,!s;$De.hasOwnProp(i,a)&&$De.isObject(i[a])||(i[a]=[]);return t(e,n,i[a],r)&&$De.isArray(i[a])&&(i[a]=PPe(i[a])),!s}if(H(t,"buildPath"),$De.isFormData(e)&&$De.isFunction(e.entries)){const n={};return $De.forEachEntry(e,((e,i)=>{t(DPe(e),i,n,0)})),n}return null}
100H($Pe,"throwIfDepthExceeded"),H(DPe,"parsePropPath"),H(PPe,"arrayToObject"),H(OPe,"formDataToJSON");const MPe=H(((e,t)=>null!=e&&$De.hasOwnProp(e,t)?e[t]:void 0),"own");function RPe(e,t,n){if($De.isString(e))try{return(t||JSON.parse)(e),$De.trim(e)}catch(tvt){if("SyntaxError"!==tvt.name)throw tvt}return(n||JSON.stringify)(e)}H(RPe,"stringifySafely");const NPe={transitional:_Pe,adapter:["xhr","http","fetch"],transformRequest:[H((function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=$De.isObject(e);r&&$De.isHTMLForm(e)&&(e=new FormData(e));if($De.isFormData(e))return i?JSON.stringify(OPe(e)):e;if($De.isArrayBuffer(e)||$De.isBuffer(e)||$De.isStream(e)||$De.isFile(e)||$De.isBlob(e)||$De.isReadableStream(e))return e;if($De.isArrayBufferView(e))return e.buffer;if($De.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){const t=MPe(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return LPe(e,t).toString();if((a=$De.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=MPe(this,"env"),i=n&&n.FormData;return pPe(a?{"files[]":e}:e,i&&new i,t)}}return r||i?(t.setContentType("application/json",!1),RPe(e)):e}),"transformRequest")],transformResponse:[H((function(e){const t=MPe(this,"transitional")||NPe.transitional,n=t&&t.forcedJSONParsing,i=MPe(this,"responseType"),r="json"===i;if($De.isResponse(e)||$De.isReadableStream(e))return e;if(e&&$De.isString(e)&&(n&&!i||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,MPe(this,"parseReviver"))}catch(tvt){if(n){if("SyntaxError"===tvt.name)throw aPe.from(tvt,aPe.ERR_BAD_RESPONSE,this,null,MPe(this,"response"));throw tvt}}}return e}),"transformResponse")],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:APe.classes.FormData,Blob:APe.classes.Blob},validateStatus:H((function(e){return e>=200&&e<300}),"validateStatus"),headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function FPe(e,t){const n=this||NPe,i=t||n,r=JDe.from(i.headers);let a=i.data;return $De.forEach(e,H((function(e){a=e.call(n,a,r.normalize(),t?t.status:void 0)}),"transform")),r.normalize(),a}function BPe(e){return!(!e||!e.__CANCEL__)}$De.forEach(["delete","get","head","post","put","patch","query"],(e=>{NPe.headers[e]={}})),H(FPe,"transformData"),H(BPe,"isCancel$1");let HPe=(H(p=class extends aPe{constructor(e,t,n){super(null==e?"canceled":e,aPe.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}},"CanceledError"),p);function jPe(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new aPe("Request failed with status code "+n.status,n.status>=400&&n.status<500?aPe.ERR_BAD_REQUEST:aPe.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}function UPe(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function VPe(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,a=0,s=0;return t=void 0!==t?t:1e3,H((function(o){const l=Date.now(),u=i[s];r||(r=l),n[a]=o,i[a]=l;let c=s,d=0;for(;c!==a;)d+=n[c++],c%=e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),l-r<t)return;const p=u&&l-u;return p?Math.round(1e3*d/p):void 0}),"push")}function qPe(e,t){let n,i,r=0,a=1e3/t;const s=H(((t,a=Date.now())=>{r=a,n=null,i&&(clearTimeout(i),i=null),e(...t)}),"invoke");return[H(((...e)=>{const t=Date.now(),o=t-r;o>=a?s(e,t):(n=e,i||(i=setTimeout((()=>{i=null,s(n)}),a-o)))}),"throttled"),H((()=>n&&s(n)),"flush")]}H(jPe,"settle"),H(UPe,"parseProtocol"),H(VPe,"speedometer"),H(qPe,"throttle");const zPe=H(((e,t,n=3)=>{let i=0;const r=VPe(50,250);return qPe((n=>{if(!n||"number"!=typeof n.loaded)return;const a=n.loaded,s=n.lengthComputable?n.total:void 0,o=Math.max(0,null!=s?Math.min(a,s):a),l=Math.max(0,o-i),u=r(l);i=Math.max(i,o);e({loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s?(s-o)/u:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),n)}),"progressEventReducer"),WPe=H(((e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]}),"progressEventDecorator"),GPe=H(((e,t=$De.asap)=>(...n)=>t((()=>e(...n)))),"asyncDecorator"),KPe=APe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,APe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(APe.origin),APe.navigator&&/(msie|trident)/i.test(APe.navigator.userAgent)):()=>!0,YPe=APe.hasStandardBrowserEnv?{write(e,t,n,i,r,a,s){if("undefined"==typeof document)return;const o=[`${e}=${encodeURIComponent(t)}`];$De.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),$De.isString(i)&&o.push(`path=${i}`),$De.isString(r)&&o.push(`domain=${r}`),!0===a&&o.push("secure"),$De.isString(s)&&o.push(`SameSite=${s}`),document.cookie=o.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const i=t[n].replace(/^\s+/,""),r=i.indexOf("=");if(-1!==r&&i.slice(0,r)===e)try{return decodeURIComponent(i.slice(r+1))}catch(tvt){return i.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function ZPe(e){return"string"==typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function XPe(e,t){if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}
100H(ZPe,"isAbsoluteURL"),H(XPe,"combineURLs");const QPe=/^https?:(?!\/\/)/i,JPe=/[\t\n\r]/g;function eOe(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function tOe(e){return eOe(e).replace(JPe,"")}function nOe(e){return e?e.replace(/(^|&)([^=&]*=)?[^&]+/g,((e,t,n="")=>`${t}${n}${ePe}`)):e}function iOe(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${ePe}@`),n=t.indexOf("#"),i=(-1===n?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${ePe}`);return-1===n?i:`${i}#${nOe(t.slice(n+1))}`}function rOe(e,t){if("string"==typeof e){const n=tOe(e);if(QPe.test(n))throw new aPe(`Invalid URL ${JSON.stringify(iOe(n))}: missing "//" after protocol`,aPe.ERR_INVALID_URL,t)}}function aOe(e,t,n,i){rOe(t,i);let r=!ZPe(t);return e&&(r||!1===n)?(rOe(e,i),XPe(e,t)):t}H(eOe,"stripLeadingC0ControlOrSpace"),H(tOe,"normalizeURLForProtocolCheck"),H(nOe,"redactFragment"),H(iOe,"redactSensitiveURLParts"),H(rOe,"assertValidHttpProtocolURL"),H(aOe,"buildFullPath");const sOe=H((e=>e instanceof JDe?F({},e):e),"headersToObject"),oOe=H((e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter((t=>Object.getOwnPropertyDescriptor(e,t).enumerable))):Object.keys(e)),"ownEnumerableKeys");function lOe(e,t){e=e||{},t=t||{};const n=Object.create(null);function i(e,t,n,i){return $De.isPlainObject(e)&&$De.isPlainObject(t)?$De.merge.call({caseless:i},e,t):$De.isPlainObject(t)?$De.merge({},t):$De.isArray(t)?t.slice():t}function r(e,t,n,r){return $De.isUndefined(t)?$De.isUndefined(e)?void 0:i(void 0,e,0,r):i(e,t,0,r)}function a(e,t){if(!$De.isUndefined(t))return i(void 0,t)}function s(e,t){return $De.isUndefined(t)?$De.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function o(n){const i=$De.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!$De.isUndefined(i)){if(!$De.isPlainObject(i))return;if($De.hasOwnProp(i,n))return i[n]}const r=$De.hasOwnProp(e,"transitional")?e.transitional:void 0;if($De.isPlainObject(r)&&$De.hasOwnProp(r,n))return r[n]}function l(n,r,a){return $De.hasOwnProp(t,a)?i(n,r):$De.hasOwnProp(e,a)?i(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0}),H(i,"getMergedValue"),H(r,"mergeDeepProperties"),H(a,"valueFromConfig2"),H(s,"defaultToConfig2"),H(o,"getMergedTransitionalOption"),H(l,"mergeDirectKeys");const u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:H(((e,t,n)=>r(sOe(e),sOe(t),0,!0)),"headers")};return $De.forEach(oOe(F(F({},e),t)),H((function(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=$De.hasOwnProp(u,i)?u[i]:r,s=a($De.hasOwnProp(e,i)?e[i]:void 0,$De.hasOwnProp(t,i)?t[i]:void 0,i);$De.isUndefined(s)&&a!==l||(n[i]=s)}),"computeConfigValue")),$De.hasOwnProp(t,"validateStatus")&&$De.isUndefined(t.validateStatus)&&!1===o("validateStatusUndefinedResolves")&&($De.hasOwnProp(e,"validateStatus")?n.validateStatus=i(void 0,e.validateStatus):delete n.val
100idateStatus),n}H(lOe,"mergeConfig$1");const uOe=["content-type","content-length"];function cOe(e,t,n){"content-only"===n?Object.entries(t||{}).forEach((([t,n])=>{uOe.includes(t.toLowerCase())&&e.set(t,n)})):e.set(t)}H(cOe,"setFormDataHeaders");const dOe=H((e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,((e,t)=>String.fromCharCode(parseInt(t,16))))),"encodeUTF8$2");function pOe(e){const t=lOe({},e),n=H((e=>$De.hasOwnProp(t,e)?t[e]:void 0),"own"),i=n("data");let r=n("withXSRFToken");const a=n("xsrfHeaderName"),s=n("xsrfCookieName");let o=n("headers");const l=n("auth"),u=n("baseURL"),c=n("allowAbsoluteUrls"),d=n("url");if(t.headers=o=JDe.from(o),t.url=yPe(aOe(u,d,c,t),n("params"),n("paramsSerializer")),l){const t=$De.getSafeProp(l,"username")||"",n=$De.getSafeProp(l,"password")||"";try{o.set("Authorization","Basic "+btoa(t+":"+(n?dOe(n):"")))}catch(tvt){throw aPe.from(tvt,aPe.ERR_BAD_OPTION_VALUE,e)}}if($De.isFormData(i)&&(APe.hasStandardBrowserEnv||APe.hasStandardBrowserWebWorkerEnv||$De.isReactNative(i)?o.setContentType(void 0):$De.isFunction(i.getHeaders)&&cOe(o,i.getHeaders(),n("formDataHeaderPolicy"))),APe.hasStandardBrowserEnv){$De.isFunction(r)&&(r=r(t));if(!0===r||null==r&&KPe(t.url)){const e=a&&s&&YPe.read(s);e&&o.set(a,e)}}return t}H(pOe,"resolveConfig");const hOe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(H((function(t,n){const i=pOe(e);let r=i.data;const a=JDe.from(i.headers).normalize();let s,o,l,u,c,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=i;function f(){u&&u(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}H(f,"done");let m=new XMLHttpRequest;function g(){if(!m)return;const i=JDe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),r={data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:i,config:e,request:m};jPe(H((function(e){t(e),f()}),"_resolve"),H((function(e){n(e),f()}),"_reject"),r),m=null}m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout,H(g,"onloadend"),"onloadend"in m?m.onloadend=g:m.onreadystatechange=H((function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(g)}),"handleLoad"),m.onabort=H((function(){m&&(n(new aPe("Request aborted",aPe.ECONNABORTED,e,m)),f(),m=null)}),"handleAbort"),m.onerror=H((function(t){const i=t&&t.message?t.message:"Network Error",r=new aPe(i,aPe.ERR_NETWORK,e,m);r.event=t||null,n(r),f(),m=null}),"handleError"),m.ontimeout=H((function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||_Pe;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new aPe(t,r.clarifyTimeoutError?aPe.ETIMEDOUT:aPe.ECONNABORTED,e,m)),f(),m=null}),"handleTimeout"),void 0===r&&a.setContentType(null),"setRequestHeader"in m&&$De.forEach(HDe(a),H((function(e,t){m.setRequestHeader(t,e)}),"setRequestHeader")),$De.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),d&&"json"!==d&&(m.responseType=i.responseType),h&&([l,c]=zPe(h,!0),m.addEventListener("progress",l)),p&&m.upload&&([o,u]=zPe(p),m.upload.addEventListener("progress",o),m.upload.addEventListener("loadend",u)),(i.cancelToken||i.signal)&&(s=H((t=>{m&&(n(!t||t.type?new HPe(null,e,m):t),m.abort(),f(),m=null)}),"onCanceled"),i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const y=UPe(i.url);if(y&&!APe.protocols.includes(y))return n(new aPe("Unsupported protocol "+y+":",aPe.ERR_BAD_REQUEST,e)),void f();m.send(r||null)}),"dispatchXhrRequest"))},fOe=H(((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let i=!1;const r=H((function(e){if(!i){i=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof aPe?t:new HPe(t instanceof Error?t.message:t))}}),"onabort");let a=t&&setTimeout((()=>{a=null,r(new aPe(`timeout of ${t}ms exceeded`,aPe.ETIMEDOUT))}),t);const s=H((()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)})),e=null)}),"unsubscribe");e.forEach((e=>{i||(e.aborted?r.call(e):e.addEventListener("abort",r,{once:!0}))}));const{signal:o}=n;return o.unsubscribe=()=>$De.asap(s),o}),"composeSignals"),mOe=H((function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let i,r=0;for(;r<n;)i=r+t,yield e.slice(r,i),r=i}),"streamChunk"),gOe=H((function(e,t){return z(this,null,(function*(){try{for(var n,i,r,a=((e,t,n)=>(t=e[M("asyncIterator")])?t.call(e):(e=e[M("iterator")](),t={},(n=(n,i)=>(i=e[n])&&(t[n]=t=>new Promise(((n,r,a)=>(t=i.call(e,t),a=t.done,Promise.resolve(t.value).then((e=>n({value:e,done:a}
100)),r))))))("next"),n("return"),t))(yOe(e));n=!(i=yield new q(a.next())).done;n=!1){const e=i.value;yield*W(mOe(e,t))}}catch(i){r=[i]}finally{try{n&&(i=a.return)&&(yield new q(i.call(a)))}finally{if(r)throw r[0]}}}))}),"readBytes"),yOe=H((function(e){return z(this,null,(function*(){if(e[Symbol.asyncIterator])return void(yield*W(e));const t=e.getReader();try{for(;;){const{done:e,value:n}=yield new q(t.read());if(e)break;yield n}}finally{yield new q(t.cancel())}}))}),"readStream"),vOe=H(((e,t,n,i)=>{const r=gOe(e,t);let a,s=0,o=H((e=>{a||(a=!0,i&&i(e))}),"_onFinish");return new ReadableStream({pull(e){return V(this,null,(function*(){try{const{done:t,value:i}=yield r.next();if(t)return o(),void e.close();let a=i.byteLength;if(n){let e=s+=a;n(e)}e.enqueue(new Uint8Array(i))}catch(t){throw o(t),t}}))},cancel:e=>(o(e),r.return())},{highWaterMark:2})}),"trackStream"),bOe=H((e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102),"isHexDigit"),_Oe=H(((e,t,n)=>t+2<n&&bOe(e.charCodeAt(t+1))&&bOe(e.charCodeAt(t+2))),"isPercentEncodedByte"),wOe=H((e=>e<=57?e-48:(223&e)-55),"hexValue"),SOe=H((e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e),"isBase64Char"),COe=H((e=>9===e||10===e||12===e||13===e||32===e),"isBase64Whitespace"),kOe=H((e=>{const t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)}),"base64Bytes"),xOe=H((e=>{const t=e.length;let n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor(3*(t-n)/4)}),"estimateBase64BufferAllocation"),TOe=H((e=>{const t=e.length;let n=0,i=0,r=!1;for(let a=0;a<t;a++){let s=e.charCodeAt(a);37===s&&_Oe(e,a,t)&&(s=16*wOe(e.charCodeAt(a+1))+wOe(e.charCodeAt(a+2)),a+=2),COe(s)||(61!==s?!SOe(s)||i>0?r=!0:n++:i++)}return r||i>2||i>0&&(n+i)%4!=0||n%4==1?xOe(e):kOe(n)}),"estimatePercentDecodedBase64Bytes"),EOe=H(((e,t)=>{if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const i=e.slice(5,n),r=e.slice(n+1);if(/;base64/i.test(i))return t(r);let a=0;for(let s=0,o=r.length;s<o;s++){const e=r.charCodeAt(s);if(37===e&&_Oe(r,s,o))a+=1,s+=2;else if(e<128)a+=1;else if(e<2048)a+=2;else if(e>=55296&&e<=56319&&s+1<o){const e=r.charCodeAt(s+1);e>=56320&&e<=57343?(a+=4,s++):a+=3}else a+=3}return a}),"estimateDataURLBytes");function AOe(e){const t="string"==typeof e?e.indexOf("#"):-1;return EOe(-1===t?e:e.slice(0,t),TOe)}H(AOe,"estimateDataURLDecodedBytes");const LOe="1.19.0",{isFunction:IOe}=$De,$Oe=H((e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,((e,t)=>String.fromCharCode(parseInt(t,16))))),"encodeUTF8$1"),DOe=H((e=>{if(!$De.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}}),"decodeURIComponentSafe"),POe=H(((e,...t)=>{try{return!!e(...t)}catch(tvt){return!1}}),"test"),OOe=H((e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")}),"maybeWithAuthCredentials"),MOe=H((e=>{const t=void 0!==$De.global&&null!==$De.global?$De.global:globalThis,{ReadableStream:n,TextEncoder:i}=t;e=$De.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:r,Request:a,Response:s}=e,o=r?IOe(r):"function"==typeof fetch,l=IOe(a),u=IOe(s);if(!o)return!1;const c=o&&IOe(n),d=o&&("function"==typeof i?(e=>t=>e.encode(t))(new i):e=>V(void 0,null,(function*(){return new Uint8Array(yield new a(e).arrayBuffer())}))),p=l&&c&&POe((()=>{let e=!1;const t=new a(APe.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),i=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!i})),h=u&&c&&POe((()=>$De.isReadableStream(new s("").body))),f={stream:h&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!f[e]&&(f[e]=(t,n)=>{let i=t&&t[e];if(i)return i.call(t);throw new aPe(`Response type '${e}' is not supported`,aPe.ERR_NOT_SUPPORT,n)})}));const m=H((e=>V(void 0,null,(function*(){if(null==e)return 0;if($De.isBlob(e))return e.size;if($De.isSpecCompliantForm(e)){const t=new a(APe.origin,{method:"POST",body:e});return(yield t.arrayBuffer()).byteLength}return $De.isArrayBufferView(e)||$De.isArrayBuffer(e)?e.byteLength:($De.isURLSearchParams(e)&&(e+=""),$De.isString(e)?(yield d(e)).byteLength:void 0)}))),"getBodyLength"),g=H(((e,t)=>V(void 0,null,(function*(){const n=$De.toFiniteNumber(e.getContentLength());return null==n?m(t):n}))),"resolveBodyLength");return e=>V(void 0,null,(function*(){let{url:t,method:n,data:o,signal:u,cancelToken:d,timeout:y,onDownloadProgress:v,onUploadProgress:b,responseType:_,headers:w,withCredentials:S="same-origin",fetchOptions:C,maxContentLength:k,maxBodyLength:x}=pOe(e);const T=$De.isNumber(k)&&k>-1,E=$De.isNumber(x)&&x>-1,A=H((t=>$De.hasOwnProp(e,t)?e[t]:void 0),"own");let L=r||fetch;_=_?(_+"").toLowerCase():"text";let I=fOe([u,d&&d.toAbortSignal()],y),$=null;const D=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let P,O=null;const M=H((()=>new aPe("Request body larger than maxBodyLength limit",aPe.ERR_BAD_REQUEST,e,$)),"maxBodyLengthError");try{let r;const u=A("auth");if(u){const e=$De.getSafeProp(u,"username")||"";r={username:e,password:$De.getSafeProp(u,"password")||""}}if(OOe(t)){const e=new URL(t,APe.origin);if(!r&&(e.username||e.password)){const t=DOe(e.username);r={username:t,password:DOe(e.password)}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(r&&(w.delete("authorization"),w.set("Authorization","Basic "+btoa($Oe((r.username||"")+":"+(r.password||""))))),T&&"string"==typeof t&&t.startsWith("data:")){if(AOe(t)>k)throw new aPe("maxContentLength size of "+k+" exceeded",aPe.ERR_BAD_RESPONSE,e,$)}if(E&&"get"!==n&&"head"!==n){const e=yield m(o);if("number"==typeof e&&isFinite(e)&&(P=e,e>x))throw M()}const d=E&&($De.isReadableStream(o)||$De.isStream(o)),y=H(((e,t,n)=>vOe(e,65536,(e=>{if(E&&e>x)throw O=M();t&&t(e)}),n)),"trackRequestStream");if(p&&"get"!==n&&"head"!==n&&(b||d)){if(P=null==P?yield g(w,o):P,0!==P||d){let e,n=new a(t,{method:"POST",body:o,duplex:"half"});if($De.isFormData(o)&&(e=n.headers.get("content-type"))&&w.setContentType(e),n.body){const[e,t]=b&&WPe(P,zPe(GPe(b)))||[];o=y(n.body,e,t)}}}else if(d&&!l&&c&&"get"!==n&&"head"!==n)o=y(o);else if(d&&l&&!p&&"get"!==n&&"head"!==n)throw new aPe("Stream request bodies are not supported by the current fetch implementation",aPe.ERR_NOT_SUPPORT,e,$);$De.isString(S)||(S=S?"include":"omit");const R=l&&"credentials"in a.prototype;if($De.isFormData(o)){const e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/"+LOe,!1);const N=B(F({},C),{signal:I,method:n.toUpperCase(),headers:HDe(w.normalize()),body:o,duplex:"half",credentials:R?S:void 0});$=l&&new a(t,N);let j=yield l?L($,C):L(t,N);const U=JDe.from(j.headers);if(T){const t=$De.toFiniteNumber(U.getContentLength());if(null!=t&&t>k)throw new aPe("maxContentLength size of "+k+" exceeded",aPe.ERR_BAD_RESPONSE,e,$)}const V=h&&("stream"===_||"response"===_);if(h&&j.body&&(v||T||V&&D)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=j[e]}));const n=$De.toFiniteNumber(U.getContentLength()),[i,r]=v&&WPe(n,zPe(GPe(v),!0))||[];let a=0;const o=H((t=>{if(T&&(a=t,a>k))throw new aPe("maxContentLength size of "+k+" exceeded",aPe.ERR_BAD_RESPONSE,e,$);i&&i(t)}),"onChunkProgress");j=new s(vOe(j.body,65536,o,(()=>{r&&r(),D&&D()})),t)}_=_||"text";let q=yield f[$De.findKey(f,_)||"text"](j,e);if(T&&!h&&!V){let t;if(null!=q&&("number"==typeof q.byteLength?t=q.byteLength:"number"==typeof q.size?t=q.size:"string"==typeof q&&(t="function"==typeof i?(new i).encode(q).byteLength:q.length)),"number"==typeof t&&t>k)throw new aPe("maxContentLength size of "+k+" exceeded",aPe.ERR_BAD_RESPONSE,e,$)}return!V&&D&&D(),yield new Promise(((t,n)=>{jPe(t,n,{data:q,headers:JDe.from(j.headers),status:j.status,statusText:j.statusText,config:e,request:$})}))}catch(R){if(D&&D(),I&&I.aborted&&I.reason instanceof aPe){const t=I.reason;throw t.config=e,$&&(t.request=$),R!==t&&Object.defineProperty(t,"cause",{__proto__:null,value:R,writable:!0,enumerable:!1,
100configurable:!0}),t}if(O)throw $&&!O.request&&(O.request=$),O;if(R instanceof aPe)throw $&&!R.request&&(R.request=$),R;if(R&&"TypeError"===R.name&&/Load failed|fetch/i.test(R.message)){const t=new aPe("Network Error",aPe.ERR_NETWORK,e,$,R&&R.response);throw Object.defineProperty(t,"cause",{__proto__:null,value:R.cause||R,writable:!0,enumerable:!1,configurable:!0}),t}throw aPe.from(R,R&&R.code,e,$,R&&R.response)}}))}),"factory"),ROe=new Map,NOe=H((e=>{let t=e&&e.env||{};const{fetch:n,Request:i,Response:r}=t,a=[i,r,n];let s,o,l=a.length,u=ROe;for(;l--;)s=a[l],o=u.get(s),void 0===o&&u.set(s,o=l?new Map:MOe(t)),u=o;return o}),"getFetch");NOe();const FOe={http:null,xhr:hOe,fetch:{get:NOe}};$De.forEach(FOe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(tvt){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}}));const BOe=H((e=>`- ${e}`),"renderReason"),HOe=H((e=>$De.isFunction(e)||null===e||!1===e),"isResolvedHandle");function jOe(e,t){e=$De.isArray(e)?e:[e];const{length:n}=e;let i,r;const a={};for(let s=0;s<n;s++){let n;if(i=e[s],r=i,!HOe(i)&&(r=FOe[(n=String(i)).toLowerCase()],void 0===r))throw new aPe(`Unknown adapter '${n}'`);if(r&&($De.isFunction(r)||(r=r.get(t))))break;a[n||"#"+s]=r}if(!r){const e=Object.entries(a).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let t=n?e.length>1?"since :\n"+e.map(BOe).join("\n"):" "+BOe(e[0]):"as no adapter specified";throw new aPe("There is no suitable adapter to dispatch the request "+t,aPe.ERR_NOT_SUPPORT)}return r}H(jOe,"getAdapter$1");const UOe={getAdapter:jOe,adapters:FOe};function VOe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new HPe(null,e)}function qOe(e){VOe(e),e.headers=JDe.from(e.headers),e.data=FPe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return UOe.getAdapter(e.adapter||NPe.adapter,e)(e).then(H((function(t){VOe(e),e.response=t;try{t.data=FPe.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=JDe.from(t.headers),t}),"onAdapterResolution"),H((function(t){if(!BPe(t)&&(VOe(e),t&&t.response)){e.response=t.response;try{t.response.data=FPe.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=JDe.from(t.response.headers)}return Promise.reject(t)}),"onAdapterRejection"))}H(VOe,"throwIfCancellationRequested"),H(qOe,"dispatchRequest");const zOe={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{zOe[e]=H((function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}),"validator")}));const WOe={};function GOe(e,t,n){if("object"!=typeof e||null===e)throw new aPe("options must be an object",aPe.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const a=i[r],s=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(s){const t=e[a],n=void 0===t||s(t,a,e);if(!0!==n)throw new aPe("option "+a+" must be "+n,aPe.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new aPe("Unknown option "+a,aPe.ERR_BAD_OPTION)}}zOe.transitional=H((function(e,t,n){function i(e,t){return"[Axios v"+LOe+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return H(i,"formatMessage"),(n,r,a)=>{if(!1===e)throw new aPe(i(r," has been removed"+(t?" in "+t:"")),aPe.ERR_DEPRECATED);return t&&!WOe[r]&&(WOe[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}}),"transitional"),zOe.spelling=H((function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)}),"spelling"),H(GOe,"assertOptions");const KOe={assertOptions:GOe,validators:zOe},YOe=KOe.validators;let ZOe=(H(h=class{constructor(e){this.defaults=e||{},this.interceptors={request:new bPe,response:new bPe}}request(e,t){return V(this,null,(function*(){try{return yield this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=(()=>{if(!e.stack)return"";const t=e.stack.indexOf("\n");return-1===t?"":e.stack.slice(t+1)})();try{if(n.stack){if(t){const e=t.indexOf("\n"),i=-1===e?-1:t.indexOf("\n",e+1),r=-1===i?"":t.slice(i+1);String(n.stack).endsWith(r)||(n.stack+="\n"+t)}}else n.stack=t}catch(tvt){}}throw n}}))}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=lOe(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;void 0!==n&&KOe.assertOptions(n,{silentJSONParsing:YOe.transitional(YOe.boolean),forcedJSONParsing:YOe.transitional(YOe.boolean),clarifyTimeoutError:YOe.transitional(YOe.boolean),legacyInterceptorReqResOrdering:YOe.transitional(YOe.boolean),advertiseZstdAcceptEncoding:YOe.transitional(YOe.boolean),validateStatusUndefinedResolves:YOe.transitional(YOe.boolean)}
100,!1),null!=i&&($De.isFunction(i)?t.paramsSerializer={serialize:i}:KOe.assertOptions(i,{encode:YOe.function,serialize:YOe.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),KOe.assertOptions(t,{baseUrl:YOe.spelling("baseURL"),withXsrfToken:YOe.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=r&&$De.merge(r.common,r[t.method]);r&&$De.forEach(["delete","get","head","post","put","patch","query","common"],(e=>{delete r[e]})),t.headers=JDe.concat(a,r);const s=[];let o=!0;this.interceptors.request.forEach(H((function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;o=o&&e.synchronous;const n=t.transitional||_Pe;n&&n.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)}),"unshiftRequestInterceptors"));const l=[];let u;this.interceptors.response.forEach(H((function(e){l.push(e.fulfilled,e.rejected)}),"pushResponseInterceptors"));let c,d=0;if(!o){const e=[qOe.bind(this),void 0];for(e.unshift(...s),e.push(...l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=s.length;let p=t;for(;d<c;){const e=s[d++],t=s[d++];try{p=e?e(p):p}catch(h){if(!t){u=Promise.reject(h);break}try{const e=t.call(this,h);$De.isThenable(e)&&(u=Promise.resolve(e).then((()=>qOe.call(this,p))))}catch(f){u=Promise.reject(f)}break}}if(!u)try{u=qOe.call(this,p)}catch(h){u=Promise.reject(h)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return yPe(aOe((e=lOe(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}},"Axios"),h);$De.forEach(["delete","get","head","options"],H((function(e){ZOe.prototype[e]=function(t,n){return this.request(lOe(n||{},{method:e,url:t,data:n&&$De.hasOwnProp(n,"data")?n.data:void 0}))}}),"forEachMethodNoData")),$De.forEach(["post","put","patch","query"],H((function(e){function t(t){return H((function(n,i,r){return this.request(lOe(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}),"httpMethod")}H(t,"generateHTTPMethod"),ZOe.prototype[e]=t(),"query"!==e&&(ZOe.prototype[e+"Form"]=t(!0))}),"forEachMethodWithData"));let XOe=(f=class{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(H((function(e){t=e}),"promiseExecutor"));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=H((function(){n.unsubscribe(t)}),"reject"),i},e(H((function(e,i,r){n.reason||(n.reason=new HPe(e,i,r),t(n.reason))}),"cancel"))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=H((t=>{e.abort(t)}),"abort");return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new f(H((function(t){e=t}),"executor")),cancel:e}}},H(f,"CancelToken"),f);function QOe(e){return H((function(t){return e.apply(null,t)}),"wrap")}function JOe(e){return $De.isObject(e)&&!0===e.isAxiosError}H(QOe,"spread$1"),H(JOe,"isAxiosError$1");const eMe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
100alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};function tMe(e){const t=new ZOe(e),n=u$e(ZOe.prototype.request,t);return $De.extend(n,ZOe.prototype,t,{allOwnKeys:!0}),$De.extend(n,t,null,{allOwnKeys:!0}),n.create=H((function(t){return tMe(lOe(e,t))}),"create"),n}Object.entries(eMe).forEach((([e,t])=>{eMe[t]=e})),H(tMe,"createInstance");const nMe=tMe(NPe);nMe.Axios=ZOe,nMe.CanceledError=HPe,nMe.CancelToken=XOe,nMe.isCancel=BPe,nMe.VERSION=LOe,nMe.toFormData=pPe,nMe.AxiosError=aPe,nMe.Cancel=nMe.CanceledError,nMe.all=H((function(e){return Promise.all(e)}),"all"),nMe.spread=QOe,nMe.isAxiosError=JOe,nMe.mergeConfig=lOe,nMe.AxiosHeaders=JDe,nMe.formToJSON=e=>OPe($De.isHTMLForm(e)?new FormData(e):e),nMe.getAdapter=UOe.getAdapter,nMe.HttpStatusCode=eMe,nMe.default=nMe;const{Axios:iMe,AxiosError:rMe,CanceledError:aMe,isCancel:sMe,CancelToken:oMe,VERSION:lMe,all:uMe,Cancel:cMe,isAxiosError:dMe,spread:pMe,toFormData:hMe,AxiosHeaders:fMe,HttpStatusCode:mMe,formToJSON:gMe,getAdapter:yMe,mergeConfig:vMe,create:bMe}=nMe;var _Me,wMe={exports:{}},SMe=wMe.exports;function CMe(){return _Me||(_Me=1,e=wMe,function(t){if("function"!=typeof n){var n=H((function(e){return e}),"Symbol");n.nonNative=!0}const i=n("plaintext"),r=n("html"),a=n("comment"),s=/<(\w*)>/g,o=/<\/?([^\s\/>]+)/;function l(e,t,n){return d(e=e||"",c(t=t||[],n=n||""))}function u(e,t){let n=c(e=e||[],t=t||"");return H((function(e){return d(e||"",n)}),"striptags_stream")}function c(e,t){return{allowable_tags:e=p(e),tag_replacement:t,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function d(e,t){if("string"!=typeof e)throw new TypeError("'html' parameter must be a string");let n=t.allowable_tags,s=t.tag_replacement,o=t.state,l=t.tag_buffer,u=t.depth,c=t.in_quote_char,d="";for(let p=0,f=e.length;p<f;p++){let t=e[p];if(o===i)"<"===t?(o=r,l+=t):d+=t;else if(o===r)switch(t){case"<":if(c)break;u++;break;case">":if(c)break;if(u){u--;break}c="",o=i,l+=">",n.has(h(l))?d+=l:d+=s,l="";break;case'"':case"'":c=t===c?"":c||t,l+=t;break;case"-":"<!-"===l&&(o=a),l+=t;break;case" ":case"\n":if("<"===l){o=i,d+="< ",l="";break}l+=t;break;default:l+=t}else o===a&&(">"===t?("--"==l.slice(-2)&&(o=i),l=""):l+=t)}return t.state=o,t.tag_buffer=l,t.depth=u,t.in_quote_char=c,d}function p(e){let t=new Set;if("string"==typeof e){let n;for(;n=s.exec(e);)t.add(n[1])}else n.nonNative||"function"!=typeof e[n.iterator]?"function"==typeof e.forEach&&e.forEach(t.add,t):t=new Set(e);return t}function h(e){let t=o.exec(e);return t?t[1].toLowerCase():null}H(l,"striptags"),H(u,"init_striptags_stream"),l.init_streaming_mode=u,H(c,"init_context"),H(d,"striptags_internal"),H(p,"parse_allowable_tags"),H(h,"normalize_tag"),e.exports?e.exports=l:t.striptags=l}(SMe)),wMe.exports;var e}H(CMe,"requireStriptags");const kMe=dv(CMe());var xMe,TMe,EMe={},AMe={},LMe={};function IMe(){return xMe||(xMe=1,Object.defineProperty(LMe,"__esModule",{value:!0}),LMe.fromCodePoint=String.fromCodePoint||function(e){return String.fromCharCode(Math.floor((e-65536)/1024)+55296,(e-65536)%1024+56320)},LMe.getCodePoint=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536},LMe.highSurrogateFrom=55296,LMe.highSurrogateTo=56319),LMe}function $Me(){if(TMe)return AMe;
100TMe=1,Object.defineProperty(AMe,"__esModule",{value:!0});var e=IMe(),t={"<":"<",">":">",""":'"',"&apos":"'","&":"&","<":"<",">":">",""":'"',"'":"'","&":"&"},n={60:"lt",62:"gt",34:"quot",39:"apos",38:"amp"},i={"<":"<",">":">",'"':""","'":"'","&":"&"},r=function(){function r(){}return H(r,"XmlEntities"),r.prototype.encode=function(e){return e&&e.length?e.replace(/[<>"'&]/g,(function(e){return i[e]})):""},r.encode=function(e){return(new r).encode(e)},r.prototype.decode=function(n){return n&&n.length?n.replace(/&#?[0-9a-zA-Z]+;?/g,(function(n){if("#"===n.charAt(1)){var i="x"===n.charAt(2).toLowerCase()?parseInt(n.substr(3),16):parseInt(n.substr(2));return!isNaN(i)||i>=-32768?i<=65535?String.fromCharCode(i):e.fromCodePoint(i):""}return t[n]||n})):""},r.decode=function(e){return(new r).decode(e)},r.prototype.encodeNonUTF=function(t){if(!t||!t.length)return"";for(var i=t.length,r="",a=0;a<i;){var s=t.charCodeAt(a),o=n[s];o?(r+="&"+o+";",a++):(s<32||s>126?s>=e.highSurrogateFrom&&s<=e.highSurrogateTo?(r+="&#"+e.getCodePoint(t,a)+";",a++):r+="&#"+s+";":r+=t.charAt(a),a++)}return r},r.encodeNonUTF=function(e){return(new r).encodeNonUTF(e)},r.prototype.encodeNonASCII=function(t){if(!t||!t.length)return"";for(var n=t.length,i="",r=0;r<n;){var a=t.charCodeAt(r);a<=255?i+=t[r++]:(a>=e.highSurrogateFrom&&a<=e.highSurrogateTo?(i+="&#"+e.getCodePoint(t,r)+";",r++):i+="&#"+a+";",r++)}return i},r.encodeNonASCII=function(e){return(new r).encodeNonASCII(e)},r}();return AMe.XmlEntities=r,AMe}H(IMe,"requireSurrogatePairs"),H($Me,"requireXmlEntities");var DMe,PMe={};function OMe(){if(DMe)return PMe;DMe=1,Object.defineProperty(PMe,"__esModule",{value:!0});var e=IMe(),t=["apos","nbsp","iexcl","cent","pound","curren","yen","brvbar","sect","uml","copy","ordf","laquo","not","shy","reg","macr","deg","plusmn","sup2","sup3","acute","micro","para","middot","cedil","sup1","ordm","raquo","frac14","frac12","frac34","iquest","Agrave","Aacute","Acirc","Atilde","Auml","Aring","AElig","Ccedil","Egrave","Eacute","Ecirc","Euml","Igrave","Iacute","Icirc","Iuml","ETH","Ntilde","Ograve","Oacute","Ocirc","Otilde","Ouml","times","Oslash","Ugrave","Uacute","Ucirc","Uuml","Yacute","THORN","szlig","agrave","aacute","acirc","atilde","auml","aring","aelig","ccedil","egrave","eacute","ecirc","euml","igrave","iacute","icirc","iuml","eth","ntilde","ograve","oacute","ocirc","otilde","ouml","divide","oslash","ugrave","uacute","ucirc","uuml","yacute","thorn","yuml","quot","amp","lt","gt","OElig","oelig","Scaron","scaron","Yuml","circ","tilde","ensp","emsp","thinsp","zwnj","zwj","lrm","rlm","ndash","mdash","lsquo","rsquo","sbquo","ldquo","rdquo","bdquo","dagger","Dagger","permil","lsaquo","rsaquo","euro","fnof","Alpha","Beta","Gamma","Delta","Epsilon","Zeta","Eta","Theta","Iota","Kappa","Lambda","Mu","Nu","Xi","Omicron","Pi","Rho","Sigma","Tau","Upsilon","Phi","Chi","Psi","Omega","alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","mu","nu","xi","omicron","pi","rho","sigmaf","sigma","tau","upsilon","phi","chi","psi","omega","thetasym","upsih","piv","bull","hellip","prime","Prime","oline","frasl","weierp","image","real","trade","alefsym","larr","uarr","rarr","darr","harr","crarr","lArr","uArr","rArr","dArr","hArr","forall","part","exist","empty","nabla","isin","notin","ni","prod","sum","minus","lowast","radic","prop","infin","ang","and","or","cap","cup","int","there4","sim","cong","asymp","ne","equiv","le","ge","sub","sup","nsub","sube","supe","oplus","otimes","perp","sdot","lceil","rceil","lfloor","rfloor","lang","rang","loz","spades","clubs","hearts","diams"],n=[39,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,34,38,60,62,338,339,352,353,376,710,732,8194,8195,8201,8204,8205,8206,8207,8211,8212,8216,8217,8218,8220,8221,8222,8224,8225,8240,8249,8250,8364,402,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,977,978,982,8226,8230,8242,8243,8254,8260,8472,8465,8476,8482,8501,8592,8593,8594,8595,8596,8629,8656,8657,8658,8659,8660,8704,8706,8707,8709,8711,8712,8713,8715,8719,8721,8722,8727,8730,8733,8734,8736,8743,8744,8745,8746,8747,8756,8764,8773,8776,8800,8801,8804,8805,8834,8835,8836,8838,8839,8853,8855,8869,8901,8968,8969,8970,8971,9001,9002,9674,9824,9827,9829,9830],i={},r={};!function(){for(var e=0,a=t.length;e<a;){var s=t[e],o=n[e];i[s]=String.fromCharCode(o),r[o]=s,e++}}();var a=function(){function t(){}return H(t,"Html4Entities"),t.prototype.decode=function(t){return t&&t.length?t.replace(/&(#?[\w\d]+);?/g,(function(t,n){var r;if("#"===n.charAt(0)){var a="x"===n.charAt(1).toLowerCase()?parseInt(n.substr(2),16):parseInt(n.substr(1));(!isNaN(a)||a>=-32768)&&(r=a<=65535?String.fromCharCode(a):e.fromCodePoint(a))}else r=i[n];return r||t})):""},t.decode=function(e){return(new t).decode(e)},t.prototype.encode=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",i=0;i<t;){var a=r[e.charCodeAt(i)];n+=a?"&"+a+";":e.charAt(i),i++}return n},t.encode=function(e){return(new t).encode(e)},t.prototype.encodeNonUTF=function(t){if(!t||!t.length)return"";for(var n=t.length,i="",a=0;a<n;){var s=t.charCodeAt(a),o=r[s];o?i+="&"+o+";":s<32||s>126?s>=e.highSurrogateFrom&&s<=e.highSurrogateTo?(i+="&#"+e.getCodePoint(t,a)+";",a++):i+="&#"+s+";":i+=t.charAt(a),a++}return i},t.encodeNonUTF=function(e){return(new t).encodeNonUTF(e)},t.prototype.encodeNonASCII=function(t){if(!t||!t.length)return"";for(var n=t.length,i="",r=0;r<n;){var a=t.charCodeAt(r);a<=255?i+=t[r++]:(a>=e.highSurrogateFrom&&a<=e.highSurrogateTo?(i+="&#"+e.getCodePoint(t,r)+";",r++):i+="&#"+a+";",r++)}return i},t.encodeNonASCII=function(e){return(new t).encodeNonASCII(e)},t}();return PMe.Html4Entities=a,PMe}H(OMe,"requireHtml4Entities");var MMe,RMe,NMe={};
100function FMe(){if(MMe)return NMe;MMe=1,Object.defineProperty(NMe,"__esModule",{value:!0});var e=IMe(),t=[["Aacute",[193]],["aacute",[225]],["Abreve",[258]],["abreve",[259]],["ac",[8766]],["acd",[8767]],["acE",[8766,819]],["Acirc",[194]],["acirc",[226]],["acute",[180]],["Acy",[1040]],["acy",[1072]],["AElig",[198]],["aelig",[230]],["af",[8289]],["Afr",[120068]],["afr",[120094]],["Agrave",[192]],["agrave",[224]],["alefsym",[8501]],["aleph",[8501]],["Alpha",[913]],["alpha",[945]],["Amacr",[256]],["amacr",[257]],["amalg",[10815]],["amp",[38]],["AMP",[38]],["andand",[10837]],["And",[10835]],["and",[8743]],["andd",[10844]],["andslope",[10840]],["andv",[10842]],["ang",[8736]],["ange",[10660]],["angle",[8736]],["angmsdaa",[10664]],["angmsdab",[10665]],["angmsdac",[10666]],["angmsdad",[10667]],["angmsdae",[10668]],["angmsdaf",[10669]],["angmsdag",[10670]],["angmsdah",[10671]],["angmsd",[8737]],["angrt",[8735]],["angrtvb",[8894]],["angrtvbd",[10653]],["angsph",[8738]],["angst",[197]],["angzarr",[9084]],["Aogon",[260]],["aogon",[261]],["Aopf",[120120]],["aopf",[120146]],["apacir",[10863]],["ap",[8776]],["apE",[10864]],["ape",[8778]],["apid",[8779]],["apos",[39]],["ApplyFunction",[8289]],["approx",[8776]],["approxeq",[8778]],["Aring",[197]],["aring",[229]],["Ascr",[119964]],["ascr",[119990]],["Assign",[8788]],["ast",[42]],["asymp",[8776]],["asympeq",[8781]],["Atilde",[195]],["atilde",[227]],["Auml",[196]],["auml",[228]],["awconint",[8755]],["awint",[10769]],["backcong",[8780]],["backepsilon",[1014]],["backprime",[8245]],["backsim",[8765]],["backsimeq",[8909]],["Backslash",[8726]],["Barv",[10983]],["barvee",[8893]],["barwed",[8965]],["Barwed",[8966]],["barwedge",[8965]],["bbrk",[9141]],["bbrktbrk",[9142]],["bcong",[8780]],["Bcy",[1041]],["bcy",[1073]],["bdquo",[8222]],["becaus",[8757]],["because",[8757]],["Because",[8757]],["bemptyv",[10672]],["bepsi",[1014]],["bernou",[8492]],["Bernoullis",[8492]],["Beta",[914]],["beta",[946]],["beth",[8502]],["between",[8812]],["Bfr",[120069]],["bfr",[120095]],["bigcap",[8898]],["bigcirc",[9711]],["bigcup",[8899]],["bigodot",[10752]],["bigoplus",[10753]],["bigotimes",[10754]],["bigsqcup",[10758]],["bigstar",[9733]],["bigtriangledown",[9661]],["bigtriangleup",[9651]],["biguplus",[10756]],["bigvee",[8897]],["bigwedge",[8896]],["bkarow",[10509]],["blacklozenge",[10731]],["blacksquare",[9642]],["blacktriangle",[9652]],["blacktriangledown",[9662]],["blacktriangleleft",[9666]],["blacktriangleright",[9656]],["blank",[9251]],["blk12",[9618]],["blk14",[9617]],["blk34",[9619]],["block",[9608]],["bne",[61,8421]],["bnequiv",[8801,8421]],["bNot",[10989]],["bnot",[8976]],["Bopf",[120121]],["bopf",[120147]],["bot",[8869]],["bottom",[8869]],["bowtie",[8904]],["boxbox",[10697]],["boxdl",[9488]],["boxdL",[9557]],["boxDl",[9558]],["boxDL",[9559]],["boxdr",[9484]],["boxdR",[9554]],["boxDr",[9555]],["boxDR",[9556]],["boxh",[9472]],["boxH",[9552]],["boxhd",[9516]],["boxHd",[9572]],["boxhD",[9573]],["boxHD",[9574]],["boxhu",[9524]],["boxHu",[9575]],["boxhU",[9576]],["boxHU",[9577]],["boxminus",[8863]],["boxplus",[8862]],["boxtimes",[8864]],["boxul",[9496]],["boxuL",[9563]],["boxUl",[9564]],["boxUL",[9565]],["boxur",[9492]],["boxuR",[9560]],["boxUr",[9561]],["boxUR",[9562]],["boxv",[9474]],["boxV",[9553]],["boxvh",[9532]],["boxvH",[9578]],["boxVh",[9579]],["boxVH",[9580]],["boxvl",[9508]],["boxvL",[9569]],["boxVl",[9570]],["boxVL",[9571]],["boxvr",[9500]],["boxvR",[9566]],["boxVr",[9567]],["boxVR",[9568]],["bprime",[8245]],["breve",[728]],["Breve",[728]],["brvbar",[166]],["bscr",[119991]],["Bscr",[8492]],["bsemi",[8271]],["bsim",[8765]],["bsime",[8909]],["bsolb",[10693]],["bsol",[92]],["bsolhsub",[10184]],["bull",[8226]],["bullet",[8226]],["bump",[8782]],["bumpE",[10926]],["bumpe",[8783]],["Bumpeq",[8782]],["bumpeq",[8783]],["Cacute",[262]],["cacute",[263]],["capand",[10820]],["capbrcup",[10825]],["capcap",[10827]],["cap",[8745]],["Cap",[8914]],["capcup",[10823]],["capdot",[10816]],["CapitalDifferentialD",[8517]],["caps",[8745,65024]],["caret",[8257]],["caron",[711]],["Cayleys",[8493]],["ccaps",[10829]],["Ccaron",[268]],["ccaron",[269]],["Ccedil",[199]],["ccedil",[231]],["Ccirc",[264]],["ccirc",[265]],["Cconint",[8752]],["ccups",[10828]],["ccupssm",[10832]],["Cdot",[266]],["cdot",[267]],["cedil",[184]],["Cedilla",[184]],["cemptyv",[10674]],["cent",[162]],["centerdot",[183]],["CenterDot",[183]],["cfr",[120096]],["Cfr",[8493]],["CHcy",[1063]],["chcy",[1095]],["check",[10003]],["checkmark",[10003]],["Chi",[935]],["chi",[967]],["circ",[710]],["circeq",[8791]],["circlearrowleft",[8634]],["circlearrowright",[8635]],["circledast",[8859]],["circledcirc",[8858]],["circleddash",[8861]],["CircleDot",[8857]],["circledR",[174]],["circledS",[9416]],["CircleMinus",[8854]],["CirclePlus",[8853]],["CircleTimes",[8855]],["cir",[9675]],["cirE",[10691]],["cire",[8791]],["cirfnint",[10768]],["cirmid",[10991]],["cirscir",[10690]],["ClockwiseContourIntegral",[8754]],["clubs",[9827]],["clubsuit",[9827]],["colon",[58]],["Colon",[8759]],["Colone",[10868]],["colone",[8788]],["coloneq",[8788]],["comma",[44]],["commat",[64]],["comp",[8705]],["compfn",[8728]],["complement",[8705]],["complexes",[8450]],["cong",[8773]],["congdot",[10861]],["Congruent",[8801]],["conint",[8750]],["Conint",[8751]],["ContourIntegral",[8750]],["copf",[120148]],["Copf",[8450]],["coprod",[8720]],["Coproduct",[8720]],["copy",[169]],["COPY",[169]],["copysr",[8471]],["CounterClockwiseContourIntegral",[8755]],["crarr",[8629]],["cross",[10007]],["Cross",[10799]],["Cscr",[119966]],["cscr",[119992]],["csub",[10959]],["csube",[10961]],["csup",[10960]],["csupe",[10962]],["ctdot",[8943]],["cudarrl",[10552]],["cudarrr",[10549]],["cuepr",[8926]],["cuesc",[8927]],["cularr",[8630]],["cularrp",[10557]],["cupbrcap",[10824]],["cupcap",[10822]],["CupCap",[8781]],["cup",[8746]],["Cup",[8915]],["cupcup",[10826]],["cupdot",[8845]],["cupor",[10821]],["cups",[8746,65024]],["curarr",[8631]],["curarrm",[10556]],["curlyeqprec",[8926]],["curlyeqsucc",[8927]],["curlyvee",[8910]],["curlywedge",[8911]],["curren",[164]],["curvearrowleft",[8630]],["curvearrowright",[8631]],["cuvee",[8910]],["cuwed",[8911]],["cwconint",[8754]],["cwint",[8753]],["cylcty",[9005]],["dagger",[8224]],["Dagger",[8225]],["daleth",[8504]],["darr",[8595]],["Darr",[8609]],["dArr",[8659]],["dash",[8208]],["Dashv",[10980]],["dashv",[8867]],["dbkarow",[10511]],["dblac",[733]],["Dcaron",[270]],["dcaron",[271]],["Dcy",[1044]],["dcy",[1076]],["ddagger",[8225]],["ddarr",[8650]],["DD",[8517]],["dd",[8518]],["DDotrahd",[10513]],["ddotseq",[10871]],["deg",[176]],["Del",[8711]],["Delta",[916]],["delta",[948]],["demptyv",[10673]],["dfisht",[10623]],["Dfr",[120071]],["dfr",[120097]],["dHar",[10597]],["dharl",[8643]],["dharr",[8642]],["DiacriticalAcute",[180]],["DiacriticalDot",[729]],["DiacriticalDoubleAcute",[733]],["DiacriticalGrave",[96]],["DiacriticalTilde",[732]],["diam",[8900]],["diamond",[8900]],["Diamond",[8900]],["diamondsuit",[9830]],["diams",[9830]],["die",[168]],["DifferentialD",[8518]],["digamma",[989]],["disin",[8946]],["div",[247]],["divide",[247]],["divideontimes",[8903]],["divonx",[8903]],["DJcy",[1026]],["djcy",[1106]],["dlcorn",[8990]],["dlcrop",[8973]],["dollar",[36]],["Dopf",[120123]],["dopf",[120149]],["Dot",[168]],["dot",[729]],["DotDot",[8412]],["doteq",[8784]],["doteqdot",[8785]],["DotEqual",[8784]],["dotminus",[8760]],["dotplus",[8724]],["dotsquare",[8865]],["doublebarwedge",[8966]],["DoubleContourIntegral",[8751]],["DoubleDot",[168]],["DoubleDownArrow",[8659]],["DoubleLeftArrow",[8656]],["DoubleLeftRightArrow",[8660]],["DoubleLeftTee",[10980]],["DoubleLongLeftArrow",[10232]],["DoubleLongLeftRightArrow",[10234]],["DoubleLongRightArrow",[10233]],["DoubleRightArrow",[8658]],["DoubleRightTee",[8872]],["DoubleUpArrow",[8657]],["DoubleUpDownArrow",[8661]],["DoubleVerticalBar",[8741]],["DownArrowBar",[10515]],["downarrow",[8595]],["DownArrow",[8595]],["Downarrow",[8659]],["DownArrowUpArrow",[8693]],["DownBreve",[785]],["downdownarrows",[8650]],["downharpoonleft",[8643]],["downharpoonright",[8642]],["DownLeftRightVector",[10576]],["DownLeftTeeVector",[10590]],["DownLeftVectorBar",[10582]],["DownLeftVector",[8637]],["DownRightTeeVector",[10591]],["DownRightVectorBar",[10583]],["DownRightVector",[8641]],["DownTeeArrow",[8615]],["DownTee",[8868]],["drbkarow",[10512]],["drcorn",[8991]],["drcrop",[8972]],["Dscr",[119967]],["dscr",[119993]],["DScy",[1029]],["dscy",[1109]],["dsol",[10742]],["Dstrok",[272]],["dstrok",[273]],["dtdot",[8945]],["dtri",[9663]],["dtrif",[9662]],["duarr",[8693]],["duhar",[10607]],["dwangle",[10662]],["DZcy",[1039]],["dzcy",[1119]],["dzigrarr",[10239]],["Eacute",[201]],["eacute",[233]],["easter",[10862]],["Ecaron",[282]],["ecaron",[283]],["Ecirc",[202]],["ecirc",[234]],["ecir",[8790]],["ecolon",[8789]],["Ecy",[1069]],["ecy",[1101]],["eDDot",[10871]],["Edot",[278]],["edot",[279]],["eDot",[8785]],["ee",[8519]],["efDot",[8786]],["Efr",[120072]],["efr",[120098]],["eg",[10906]],["Egrave",[200]],["egrave",[232]],["egs",[10902]],["egsdot",[10904]],["el",[10905]],["Element",[8712]],["elinters",[9191]],["ell",[8467]],["els",[10901]],["elsdot",[10903]],["Emacr",[274]
100],["emacr",[275]],["empty",[8709]],["emptyset",[8709]],["EmptySmallSquare",[9723]],["emptyv",[8709]],["EmptyVerySmallSquare",[9643]],["emsp13",[8196]],["emsp14",[8197]],["emsp",[8195]],["ENG",[330]],["eng",[331]],["ensp",[8194]],["Eogon",[280]],["eogon",[281]],["Eopf",[120124]],["eopf",[120150]],["epar",[8917]],["eparsl",[10723]],["eplus",[10865]],["epsi",[949]],["Epsilon",[917]],["epsilon",[949]],["epsiv",[1013]],["eqcirc",[8790]],["eqcolon",[8789]],["eqsim",[8770]],["eqslantgtr",[10902]],["eqslantless",[10901]],["Equal",[10869]],["equals",[61]],["EqualTilde",[8770]],["equest",[8799]],["Equilibrium",[8652]],["equiv",[8801]],["equivDD",[10872]],["eqvparsl",[10725]],["erarr",[10609]],["erDot",[8787]],["escr",[8495]],["Escr",[8496]],["esdot",[8784]],["Esim",[10867]],["esim",[8770]],["Eta",[919]],["eta",[951]],["ETH",[208]],["eth",[240]],["Euml",[203]],["euml",[235]],["euro",[8364]],["excl",[33]],["exist",[8707]],["Exists",[8707]],["expectation",[8496]],["exponentiale",[8519]],["ExponentialE",[8519]],["fallingdotseq",[8786]],["Fcy",[1060]],["fcy",[1092]],["female",[9792]],["ffilig",[64259]],["fflig",[64256]],["ffllig",[64260]],["Ffr",[120073]],["ffr",[120099]],["filig",[64257]],["FilledSmallSquare",[9724]],["FilledVerySmallSquare",[9642]],["fjlig",[102,106]],["flat",[9837]],["fllig",[64258]],["fltns",[9649]],["fnof",[402]],["Fopf",[120125]],["fopf",[120151]],["forall",[8704]],["ForAll",[8704]],["fork",[8916]],["forkv",[10969]],["Fouriertrf",[8497]],["fpartint",[10765]],["frac12",[189]],["frac13",[8531]],["frac14",[188]],["frac15",[8533]],["frac16",[8537]],["frac18",[8539]],["frac23",[8532]],["frac25",[8534]],["frac34",[190]],["frac35",[8535]],["frac38",[8540]],["frac45",[8536]],["frac56",[8538]],["frac58",[8541]],["frac78",[8542]],["frasl",[8260]],["frown",[8994]],["fscr",[119995]],["Fscr",[8497]],["gacute",[501]],["Gamma",[915]],["gamma",[947]],["Gammad",[988]],["gammad",[989]],["gap",[10886]],["Gbreve",[286]],["gbreve",[287]],["Gcedil",[290]],["Gcirc",[284]],["gcirc",[285]],["Gcy",[1043]],["gcy",[1075]],["Gdot",[288]],["gdot",[289]],["ge",[8805]],["gE",[8807]],["gEl",[10892]],["gel",[8923]],["geq",[8805]],["geqq",[8807]],["geqslant",[10878]],["gescc",[10921]],["ges",[10878]],["gesdot",[10880]],["gesdoto",[10882]],["gesdotol",[10884]],["gesl",[8923,65024]],["gesles",[10900]],["Gfr",[120074]],["gfr",[120100]],["gg",[8811]],["Gg",[8921]],["ggg",[8921]],["gimel",[8503]],["GJcy",[1027]],["gjcy",[1107]],["gla",[10917]],["gl",[8823]],["glE",[10898]],["glj",[10916]],["gnap",[10890]],["gnapprox",[10890]],["gne",[10888]],["gnE",[8809]],["gneq",[10888]],["gneqq",[8809]],["gnsim",[8935]],["Gopf",[120126]],["gopf",[120152]],["grave",[96]],["GreaterEqual",[8805]],["GreaterEqualLess",[8923]],["GreaterFullEqual",[8807]],["GreaterGreater",[10914]],["GreaterLess",[8823]],["GreaterSlantEqual",[10878]],["GreaterTilde",[8819]],["Gscr",[119970]],["gscr",[8458]],["gsim",[8819]],["gsime",[10894]],["gsiml",[10896]],["gtcc",[10919]],["gtcir",[10874]],["gt",[62]],["GT",[62]],["Gt",[8811]],["gtdot",[8919]],["gtlPar",[10645]],["gtquest",[10876]],["gtrapprox",[10886]],["gtrarr",[10616]],["gtrdot",[8919]],["gtreqless",[8923]],["gtreqqless",[10892]],["gtrless",[8823]],["gtrsim",[8819]],["gvertneqq",[8809,65024]],["gvnE",[8809,65024]],["Hacek",[711]],["hairsp",[8202]],["half",[189]],["hamilt",[8459]],["HARDcy",[1066]],["hardcy",[1098]],["harrcir",[10568]],["harr",[8596]],["hArr",[8660]],["harrw",[8621]],["Hat",[94]],["hbar",[8463]],["Hcirc",[292]],["hcirc",[293]],["hearts",[9829]],["heartsuit",[9829]],["hellip",[8230]],["hercon",[8889]],["hfr",[120101]],["Hfr",[8460]],["HilbertSpace",[8459]],["hksearow",[10533]],["hkswarow",[10534]],["hoarr",[8703]],["homtht",[8763]],["hookleftarrow",[8617]],["hookrightarrow",[8618]],["hopf",[120153]],["Hopf",[8461]],["horbar",[8213]],["HorizontalLine",[9472]],["hscr",[119997]],["Hscr",[8459]],["hslash",[8463]],["Hstrok",[294]],["hstrok",[295]],["HumpDownHump",[8782]],["HumpEqual",[8783]],["hybull",[8259]],["hyphen",[8208]],["Iacute",[205]],["iacute",[237]],["ic",[8291]],["Icirc",[206]],["icirc",[238]],["Icy",[1048]],["icy",[1080]],["Idot",[304]],["IEcy",[1045]],["iecy",[1077]],["iexcl",[161]],["iff",[8660]],["ifr",[120102]],["Ifr",[8465]],["Igrave",[204]],["igrave",[236]],["ii",[8520]],["iiiint",[10764]],["iiint",[8749]],["iinfin",[10716]],["iiota",[8489]],["IJlig",[306]],["ijlig",[307]],["Imacr",[298]],["imacr",[299]],["image",[8465]],["ImaginaryI",[8520]],["imagline",[8464]],["imagpart",[8465]],["imath",[305]],["Im",[8465]],["imof",[8887]],["imped",[437]],["Implies",[8658]],["incare",[8453]],["in",[8712]],["infin",[8734]],["infintie",[10717]],["inodot",[305]],["intcal",[8890]],["int",[8747]],["Int",[8748]],["integers",[8484]],["Integral",[8747
100]],["intercal",[8890]],["Intersection",[8898]],["intlarhk",[10775]],["intprod",[10812]],["InvisibleComma",[8291]],["InvisibleTimes",[8290]],["IOcy",[1025]],["iocy",[1105]],["Iogon",[302]],["iogon",[303]],["Iopf",[120128]],["iopf",[120154]],["Iota",[921]],["iota",[953]],["iprod",[10812]],["iquest",[191]],["iscr",[119998]],["Iscr",[8464]],["isin",[8712]],["isindot",[8949]],["isinE",[8953]],["isins",[8948]],["isinsv",[8947]],["isinv",[8712]],["it",[8290]],["Itilde",[296]],["itilde",[297]],["Iukcy",[1030]],["iukcy",[1110]],["Iuml",[207]],["iuml",[239]],["Jcirc",[308]],["jcirc",[309]],["Jcy",[1049]],["jcy",[1081]],["Jfr",[120077]],["jfr",[120103]],["jmath",[567]],["Jopf",[120129]],["jopf",[120155]],["Jscr",[119973]],["jscr",[119999]],["Jsercy",[1032]],["jsercy",[1112]],["Jukcy",[1028]],["jukcy",[1108]],["Kappa",[922]],["kappa",[954]],["kappav",[1008]],["Kcedil",[310]],["kcedil",[311]],["Kcy",[1050]],["kcy",[1082]],["Kfr",[120078]],["kfr",[120104]],["kgreen",[312]],["KHcy",[1061]],["khcy",[1093]],["KJcy",[1036]],["kjcy",[1116]],["Kopf",[120130]],["kopf",[120156]],["Kscr",[119974]],["kscr",[12e4]],["lAarr",[8666]],["Lacute",[313]],["lacute",[314]],["laemptyv",[10676]],["lagran",[8466]],["Lambda",[923]],["lambda",[955]],["lang",[10216]],["Lang",[10218]],["langd",[10641]],["langle",[10216]],["lap",[10885]],["Laplacetrf",[8466]],["laquo",[171]],["larrb",[8676]],["larrbfs",[10527]],["larr",[8592]],["Larr",[8606]],["lArr",[8656]],["larrfs",[10525]],["larrhk",[8617]],["larrlp",[8619]],["larrpl",[10553]],["larrsim",[10611]],["larrtl",[8610]],["latail",[10521]],["lAtail",[10523]],["lat",[10923]],["late",[10925]],["lates",[10925,65024]],["lbarr",[10508]],["lBarr",[10510]],["lbbrk",[10098]],["lbrace",[123]],["lbrack",[91]],["lbrke",[10635]],["lbrksld",[10639]],["lbrkslu",[10637]],["Lcaron",[317]],["lcaron",[318]],["Lcedil",[315]],["lcedil",[316]],["lceil",[8968]],["lcub",[123]],["Lcy",[1051]],["lcy",[1083]],["ldca",[10550]],["ldquo",[8220]],["ldquor",[8222]],["ldrdhar",[10599]],["ldrushar",[10571]],["ldsh",[8626]],["le",[8804]],["lE",[8806]],["LeftAngleBracket",[10216]],["LeftArrowBar",[8676]],["leftarrow",[8592]],["LeftArrow",[8592]],["Leftarrow",[8656]],["LeftArrowRightArrow",[8646]],["leftarrowtail",[8610]],["LeftCeiling",[8968]],["LeftDoubleBracket",[10214]],["LeftDownTeeVector",[10593]],["LeftDownVectorBar",[10585]],["LeftDownVector",[8643]],["LeftFloor",[8970]],["leftharpoondown",[8637]],["leftharpoonup",[8636]],["leftleftarrows",[8647]],["leftrightarrow",[8596]],["LeftRightArrow",[8596]],["Leftrightarrow",[8660]],["leftrightarrows",[8646]],["leftrightharpoons",[8651]],["leftrightsquigarrow",[8621]],["LeftRightVector",[10574]],["LeftTeeArrow",[8612]],["LeftTee",[8867]],["LeftTeeVector",[10586]],["leftthreetimes",[8907]],["LeftTriangleBar",[10703]],["LeftTriangle",[8882]],["LeftTriangleEqual",[8884]],["LeftUpDownVector",[10577]],["LeftUpTeeVector",[10592]],["LeftUpVectorBar",[10584]],["LeftUpVector",[8639]],["LeftVectorBar",[10578]],["LeftVector",[8636]],["lEg",[10891]],["leg",[8922]],["leq",[8804]],["leqq",[8806]],["leqslant",[10877]],["lescc",[10920]],["les",[10877]],["lesdot",[10879]],["lesdoto",[10881]],["lesdotor",[10883]],["lesg",[8922,65024]],["lesges",[10899]],["lessapprox",[10885]],["lessdot",[8918]],["lesseqgtr",[8922]],["lesseqqgtr",[10891]],["LessEqualGreater",[8922]],["LessFullEqual",[8806]],["LessGreater",[8822]],["lessgtr",[8822]],["LessLess",[10913]],["lesssim",[8818]],["LessSlantEqual",[10877]],["LessTilde",[8818]],["lfisht",[10620]],["lfloor",[8970]],["Lfr",[120079]],["lfr",[120105]],["lg",[8822]],["lgE",[10897]],["lHar",[10594]],["lhard",[8637]],["lharu",[8636]],["lharul",[10602]],["lhblk",[9604]],["LJcy",[1033]],["ljcy",[1113]],["llarr",[8647]],["ll",[8810]],["Ll",[8920]],["llcorner",[8990]],["Lleftarrow",[8666]],["llhard",[10603]],["lltri",[9722]],["Lmidot",[319]],["lmidot",[320]],["lmoustache",[9136]],["lmoust",[9136]],["lnap",[10889]],["lnapprox",[10889]],["lne",[10887]],["lnE",[8808]],["lneq",[10887]],["lneqq",[8808]],["lnsim",[8934]],["loang",[10220]],["loarr",[8701]],["lobrk",[10214]],["longleftarrow",[10229]],["LongLeftArrow",[10229]],["Longleftarrow",[10232]],["longleftrightarrow",[10231]],["LongLeftRightArrow",[10231]],["Longleftrightarrow",[10234]],["longmapsto",[10236]],["longrightarrow",[10230]],["LongRightArrow",[10230]],["Longrightarrow",[10233]],["looparrowleft",[8619]],["looparrowright",[8620]],["lopar",[10629]],["Lopf",[120131]],["lopf",[120157]],["loplus",[10797]],["lotimes",[10804]],["lowast",[8727]],["lowbar",[95]],["LowerLeftArrow",[8601]],["LowerRightArrow",[8600]],["loz",[9674]],["lozenge",[9674]],["lozf",[10731]],["lpar",[40]],["lparlt",[10643]],["lrarr",[8646]],["lrcorner",[8991]],["lrhar",[8651]],["lrhard",[10605]],["lrm",[8206]],["lrtri",[8895]],["lsaquo",[8249]],["lscr",[120001]],["Lscr",[8466]],["lsh",[8624]],["Lsh",[8624]],["lsim",[8818]],["lsime",[10893]],["lsimg",[10895
100]],["lsqb",[91]],["lsquo",[8216]],["lsquor",[8218]],["Lstrok",[321]],["lstrok",[322]],["ltcc",[10918]],["ltcir",[10873]],["lt",[60]],["LT",[60]],["Lt",[8810]],["ltdot",[8918]],["lthree",[8907]],["ltimes",[8905]],["ltlarr",[10614]],["ltquest",[10875]],["ltri",[9667]],["ltrie",[8884]],["ltrif",[9666]],["ltrPar",[10646]],["lurdshar",[10570]],["luruhar",[10598]],["lvertneqq",[8808,65024]],["lvnE",[8808,65024]],["macr",[175]],["male",[9794]],["malt",[10016]],["maltese",[10016]],["Map",[10501]],["map",[8614]],["mapsto",[8614]],["mapstodown",[8615]],["mapstoleft",[8612]],["mapstoup",[8613]],["marker",[9646]],["mcomma",[10793]],["Mcy",[1052]],["mcy",[1084]],["mdash",[8212]],["mDDot",[8762]],["measuredangle",[8737]],["MediumSpace",[8287]],["Mellintrf",[8499]],["Mfr",[120080]],["mfr",[120106]],["mho",[8487]],["micro",[181]],["midast",[42]],["midcir",[10992]],["mid",[8739]],["middot",[183]],["minusb",[8863]],["minus",[8722]],["minusd",[8760]],["minusdu",[10794]],["MinusPlus",[8723]],["mlcp",[10971]],["mldr",[8230]],["mnplus",[8723]],["models",[8871]],["Mopf",[120132]],["mopf",[120158]],["mp",[8723]],["mscr",[120002]],["Mscr",[8499]],["mstpos",[8766]],["Mu",[924]],["mu",[956]],["multimap",[8888]],["mumap",[8888]],["nabla",[8711]],["Nacute",[323]],["nacute",[324]],["nang",[8736,8402]],["nap",[8777]],["napE",[10864,824]],["napid",[8779,824]],["napos",[329]],["napprox",[8777]],["natural",[9838]],["naturals",[8469]],["natur",[9838]],["nbsp",[160]],["nbump",[8782,824]],["nbumpe",[8783,824]],["ncap",[10819]],["Ncaron",[327]],["ncaron",[328]],["Ncedil",[325]],["ncedil",[326]],["ncong",[8775]],["ncongdot",[10861,824]],["ncup",[10818]],["Ncy",[1053]],["ncy",[1085]],["ndash",[8211]],["nearhk",[10532]],["nearr",[8599]],["neArr",[8663]],["nearrow",[8599]],["ne",[8800]],["nedot",[8784,824]],["NegativeMediumSpace",[8203]],["NegativeThickSpace",[8203]],["NegativeThinSpace",[8203]],["NegativeVeryThinSpace",[8203]],["nequiv",[8802]],["nesear",[10536]],["nesim",[8770,824]],["NestedGreaterGreater",[8811]],["NestedLessLess",[8810]],["nexist",[8708]],["nexists",[8708]],["Nfr",[120081]],["nfr",[120107]],["ngE",[8807,824]],["nge",[8817]],["ngeq",[8817]],["ngeqq",[8807,824]],["ngeqslant",[10878,824]],["nges",[10878,824]],["nGg",[8921,824]],["ngsim",[8821]],["nGt",[8811,8402]],["ngt",[8815]],["ngtr",[8815]],["nGtv",[8811,824]],["nharr",[8622]],["nhArr",[8654]],["nhpar",[10994]],["ni",[8715]],["nis",[8956]],["nisd",[8954]],["niv",[8715]],["NJcy",[1034]],["njcy",[1114]],["nlarr",[8602]],["nlArr",[8653]],["nldr",[8229]],["nlE",[8806,824]],["nle",[8816]],["nleftarrow",[8602]],["nLeftarrow",[8653]],["nleftrightarrow",[8622]],["nLeftrightarrow",[8654]],["nleq",[8816]],["nleqq",[8806,824]],["nleqslant",[10877,824]],["nles",[10877,824]],["nless",[8814]],["nLl",[8920,824]],["nlsim",[8820]],["nLt",[8810,8402]],["nlt",[8814]],["nltri",[8938]],["nltrie",[8940]],["nLtv",[8810,824]],["nmid",[8740]],["NoBreak",[8288]],["NonBreakingSpace",[160]],["nopf",[120159]],["Nopf",[8469]],["Not",[10988]],["not",[172]],["NotCongruent",[8802]],["NotCupCap",[8813]],["NotDoubleVerticalBar",[8742]],["NotElement",[8713]],["NotEqual",[8800]],["NotEqualTilde",[8770,824]],["NotExists",[8708]],["NotGreater",[8815]],["NotGreaterEqual",[8817]],["NotGreaterFullEqual",[8807,824]],["NotGreaterGreater",[8811,824]],["NotGreaterLess",[8825]],["NotGreaterSlantEqual",[10878,824]],["NotGreaterTilde",[8821]],["NotHumpDownHump",[8782,824]],["NotHumpEqual",[8783,824]],["notin",[8713]],["notindot",[8949,824]],["notinE",[8953,824]],["notinva",[8713]],["notinvb",[8951]],["notinvc",[8950]],["NotLeftTriangleBar",[10703,824]],["NotLeftTriangle",[8938]],["NotLeftTriangleEqual",[8940]],["NotLess",[8814]],["NotLessEqual",[8816]],["NotLessGreater",[8824]],["NotLessLess",[8810,824]],["NotLessSlantEqual",[10877,824]],["NotLessTilde",[8820]],["NotNestedGreaterGreater",[10914,824]],["NotNestedLessLess",[10913,824]],["notni",[8716]],["notniva",[8716]],["notnivb",[8958]],["notnivc",[8957]],["NotPrecedes",[8832]],["NotPrecedesEqual",[10927,824]],["NotPrecedesSlantEqual",[8928]],["NotReverseElement",[8716]],["NotRightTriangleBar",[10704,824]],["NotRightTriangle",[8939]],["NotRightTriangleEqual",[8941]],["NotSquareSubset",[8847,824]],["NotSquareSubsetEqual",[8930]],["NotSquareSuperset",[8848,824]],["NotSquareSupersetEqual",[8931]],["NotSubset",[8834,8402]],["NotSubsetEqual",[8840]],["NotSucceeds",[8833]],["NotSucceedsEqual",[10928,824]],["NotSucceedsSlantEqual",[8929]],["NotSucceedsTilde",[8831,824]],["NotSuperset",[8835,8402]],["NotSupersetEqual",[8841]],["NotTilde",[8769]],["NotTildeEqual",[8772]],["NotTildeFullEqual",[8775]],["NotTildeTilde",[8777]],["NotVerticalBar",[8740]],["nparallel",[8742]],["npar",[8742]],["nparsl",[11005,8421]],["npart",[8706,824]],["npolint",[10772]],["npr",[8832]],["nprcue",[8928]
100],["nprec",[8832]],["npreceq",[10927,824]],["npre",[10927,824]],["nrarrc",[10547,824]],["nrarr",[8603]],["nrArr",[8655]],["nrarrw",[8605,824]],["nrightarrow",[8603]],["nRightarrow",[8655]],["nrtri",[8939]],["nrtrie",[8941]],["nsc",[8833]],["nsccue",[8929]],["nsce",[10928,824]],["Nscr",[119977]],["nscr",[120003]],["nshortmid",[8740]],["nshortparallel",[8742]],["nsim",[8769]],["nsime",[8772]],["nsimeq",[8772]],["nsmid",[8740]],["nspar",[8742]],["nsqsube",[8930]],["nsqsupe",[8931]],["nsub",[8836]],["nsubE",[10949,824]],["nsube",[8840]],["nsubset",[8834,8402]],["nsubseteq",[8840]],["nsubseteqq",[10949,824]],["nsucc",[8833]],["nsucceq",[10928,824]],["nsup",[8837]],["nsupE",[10950,824]],["nsupe",[8841]],["nsupset",[8835,8402]],["nsupseteq",[8841]],["nsupseteqq",[10950,824]],["ntgl",[8825]],["Ntilde",[209]],["ntilde",[241]],["ntlg",[8824]],["ntriangleleft",[8938]],["ntrianglelefteq",[8940]],["ntriangleright",[8939]],["ntrianglerighteq",[8941]],["Nu",[925]],["nu",[957]],["num",[35]],["numero",[8470]],["numsp",[8199]],["nvap",[8781,8402]],["nvdash",[8876]],["nvDash",[8877]],["nVdash",[8878]],["nVDash",[8879]],["nvge",[8805,8402]],["nvgt",[62,8402]],["nvHarr",[10500]],["nvinfin",[10718]],["nvlArr",[10498]],["nvle",[8804,8402]],["nvlt",[60,8402]],["nvltrie",[8884,8402]],["nvrArr",[10499]],["nvrtrie",[8885,8402]],["nvsim",[8764,8402]],["nwarhk",[10531]],["nwarr",[8598]],["nwArr",[8662]],["nwarrow",[8598]],["nwnear",[10535]],["Oacute",[211]],["oacute",[243]],["oast",[8859]],["Ocirc",[212]],["ocirc",[244]],["ocir",[8858]],["Ocy",[1054]],["ocy",[1086]],["odash",[8861]],["Odblac",[336]],["odblac",[337]],["odiv",[10808]],["odot",[8857]],["odsold",[10684]],["OElig",[338]],["oelig",[339]],["ofcir",[10687]],["Ofr",[120082]],["ofr",[120108]],["ogon",[731]],["Ograve",[210]],["ograve",[242]],["ogt",[10689]],["ohbar",[10677]],["ohm",[937]],["oint",[8750]],["olarr",[8634]],["olcir",[10686]],["olcross",[10683]],["oline",[8254]],["olt",[10688]],["Omacr",[332]],["omacr",[333]],["Omega",[937]],["omega",[969]],["Omicron",[927]],["omicron",[959]],["omid",[10678]],["ominus",[8854]],["Oopf",[120134]],["oopf",[120160]],["opar",[10679]],["OpenCurlyDoubleQuote",[8220]],["OpenCurlyQuote",[8216]],["operp",[10681]],["oplus",[8853]],["orarr",[8635]],["Or",[10836]],["or",[8744]],["ord",[10845]],["order",[8500]],["orderof",[8500]],["ordf",[170]],["ordm",[186]],["origof",[8886]],["oror",[10838]],["orslope",[10839]],["orv",[10843]],["oS",[9416]],["Oscr",[119978]],["oscr",[8500]],["Oslash",[216]],["oslash",[248]],["osol",[8856]],["Otilde",[213]],["otilde",[245]],["otimesas",[10806]],["Otimes",[10807]],["otimes",[8855]],["Ouml",[214]],["ouml",[246]],["ovbar",[9021]],["OverBar",[8254]],["OverBrace",[9182]],["OverBracket",[9140]],["OverParenthesis",[9180]],["para",[182]],["parallel",[8741]],["par",[8741]],["parsim",[10995]],["parsl",[11005]],["part",[8706]],["PartialD",[8706]],["Pcy",[1055]],["pcy",[1087]],["percnt",[37]],["period",[46]],["permil",[8240]],["perp",[8869]],["pertenk",[8241]],["Pfr",[120083]],["pfr",[120109]],["Phi",[934]],["phi",[966]],["phiv",[981]],["phmmat",[8499]],["phone",[9742]],["Pi",[928]],["pi",[960]],["pitchfork",[8916]],["piv",[982]],["planck",[8463]],["planckh",[8462]],["plankv",[8463]],["plusacir",[10787]],["plusb",[8862]],["pluscir",[10786]],["plus",[43]],["plusdo",[8724]],["plusdu",[10789]],["pluse",[10866]],["PlusMinus",[177]],["plusmn",[177]],["plussim",[10790]],["plustwo",[10791]],["pm",[177]],["Poincareplane",[8460]],["pointint",[10773]],["popf",[120161]],["Popf",[8473]],["pound",[163]],["prap",[10935]],["Pr",[10939]],["pr",[8826]],["prcue",[8828]],["precapprox",[10935]],["prec",[8826]],["preccurlyeq",[8828]],["Precedes",[8826]],["PrecedesEqual",[10927]],["PrecedesSlantEqual",[8828]],["PrecedesTilde",[8830]],["preceq",[10927]],["precnapprox",[10937]],["precneqq",[10933]],["precnsim",[8936]],["pre",[10927]],["prE",[10931]],["precsim",[8830]],["prime",[8242]],["Prime",[8243]],["primes",[8473]],["prnap",[10937]],["prnE",[10933]],["prnsim",[8936]],["prod",[8719]],["Product",[8719]],["profalar",[9006]],["profline",[8978]],["profsurf",[8979]],["prop",[8733]],["Proportional",[8733]],["Proportion",[8759]],["propto",[8733]],["prsim",[8830]],["prurel",[8880]],["Pscr",[119979]],["pscr",[120005]],["Psi",[936]],["psi",[968]],["puncsp",[8200]],["Qfr",[120084]],["qfr",[120110]],["qint",[10764]],["qopf",[120162]],["Qopf",[8474]],["qprime",[8279]],["Qscr",[119980]],["qscr",[120006]],["quaternions",[8461]],["quatint",[10774]],["quest",[63]],["questeq",[8799]],["quot",[34]],["QUOT",[34]],["rAarr",[8667]],["race",[8765,817]],["Racute",[340]],["racute",[341]],["radic",[8730]],["raemptyv",[10675]],["rang",[10217]],["Rang",[10219]],["rangd",[10642]],["range",[10661]],["rangle",[10217]],["raquo",[187]],["rarrap",[10613]],["rarrb",[8677]],["rarrbf
100s",[10528]],["rarrc",[10547]],["rarr",[8594]],["Rarr",[8608]],["rArr",[8658]],["rarrfs",[10526]],["rarrhk",[8618]],["rarrlp",[8620]],["rarrpl",[10565]],["rarrsim",[10612]],["Rarrtl",[10518]],["rarrtl",[8611]],["rarrw",[8605]],["ratail",[10522]],["rAtail",[10524]],["ratio",[8758]],["rationals",[8474]],["rbarr",[10509]],["rBarr",[10511]],["RBarr",[10512]],["rbbrk",[10099]],["rbrace",[125]],["rbrack",[93]],["rbrke",[10636]],["rbrksld",[10638]],["rbrkslu",[10640]],["Rcaron",[344]],["rcaron",[345]],["Rcedil",[342]],["rcedil",[343]],["rceil",[8969]],["rcub",[125]],["Rcy",[1056]],["rcy",[1088]],["rdca",[10551]],["rdldhar",[10601]],["rdquo",[8221]],["rdquor",[8221]],["CloseCurlyDoubleQuote",[8221]],["rdsh",[8627]],["real",[8476]],["realine",[8475]],["realpart",[8476]],["reals",[8477]],["Re",[8476]],["rect",[9645]],["reg",[174]],["REG",[174]],["ReverseElement",[8715]],["ReverseEquilibrium",[8651]],["ReverseUpEquilibrium",[10607]],["rfisht",[10621]],["rfloor",[8971]],["rfr",[120111]],["Rfr",[8476]],["rHar",[10596]],["rhard",[8641]],["rharu",[8640]],["rharul",[10604]],["Rho",[929]],["rho",[961]],["rhov",[1009]],["RightAngleBracket",[10217]],["RightArrowBar",[8677]],["rightarrow",[8594]],["RightArrow",[8594]],["Rightarrow",[8658]],["RightArrowLeftArrow",[8644]],["rightarrowtail",[8611]],["RightCeiling",[8969]],["RightDoubleBracket",[10215]],["RightDownTeeVector",[10589]],["RightDownVectorBar",[10581]],["RightDownVector",[8642]],["RightFloor",[8971]],["rightharpoondown",[8641]],["rightharpoonup",[8640]],["rightleftarrows",[8644]],["rightleftharpoons",[8652]],["rightrightarrows",[8649]],["rightsquigarrow",[8605]],["RightTeeArrow",[8614]],["RightTee",[8866]],["RightTeeVector",[10587]],["rightthreetimes",[8908]],["RightTriangleBar",[10704]],["RightTriangle",[8883]],["RightTriangleEqual",[8885]],["RightUpDownVector",[10575]],["RightUpTeeVector",[10588]],["RightUpVectorBar",[10580]],["RightUpVector",[8638]],["RightVectorBar",[10579]],["RightVector",[8640]],["ring",[730]],["risingdotseq",[8787]],["rlarr",[8644]],["rlhar",[8652]],["rlm",[8207]],["rmoustache",[9137]],["rmoust",[9137]],["rnmid",[10990]],["roang",[10221]],["roarr",[8702]],["robrk",[10215]],["ropar",[10630]],["ropf",[120163]],["Ropf",[8477]],["roplus",[10798]],["rotimes",[10805]],["RoundImplies",[10608]],["rpar",[41]],["rpargt",[10644]],["rppolint",[10770]],["rrarr",[8649]],["Rrightarrow",[8667]],["rsaquo",[8250]],["rscr",[120007]],["Rscr",[8475]],["rsh",[8625]],["Rsh",[8625]],["rsqb",[93]],["rsquo",[8217]],["rsquor",[8217]],["CloseCurlyQuote",[8217]],["rthree",[8908]],["rtimes",[8906]],["rtri",[9657]],["rtrie",[8885]],["rtrif",[9656]],["rtriltri",[10702]],["RuleDelayed",[10740]],["ruluhar",[10600]],["rx",[8478]],["Sacute",[346]],["sacute",[347]],["sbquo",[8218]],["scap",[10936]],["Scaron",[352]],["scaron",[353]],["Sc",[10940]],["sc",[8827]],["sccue",[8829]],["sce",[10928]],["scE",[10932]],["Scedil",[350]],["scedil",[351]],["Scirc",[348]],["scirc",[349]],["scnap",[10938]],["scnE",[10934]],["scnsim",[8937]],["scpolint",[10771]],["scsim",[8831]],["Scy",[1057]],["scy",[1089]],["sdotb",[8865]],["sdot",[8901]],["sdote",[10854]],["searhk",[10533]],["searr",[8600]],["seArr",[8664]],["searrow",[8600]],["sect",[167]],["semi",[59]],["seswar",[10537]],["setminus",[8726]],["setmn",[8726]],["sext",[10038]],["Sfr",[120086]],["sfr",[120112]],["sfrown",[8994]],["sharp",[9839]],["SHCHcy",[1065]],["shchcy",[1097]],["SHcy",[1064]],["shcy",[1096]],["ShortDownArrow",[8595]],["ShortLeftArrow",[8592]],["shortmid",[8739]],["shortparallel",[8741]],["ShortRightArrow",[8594]],["ShortUpArrow",[8593]],["shy",[173]],["Sigma",[931]],["sigma",[963]],["sigmaf",[962]],["sigmav",[962]],["sim",[8764]],["simdot",[10858]],["sime",[8771]],["simeq",[8771]],["simg",[10910]],["simgE",[10912]],["siml",[10909]],["simlE",[10911]],["simne",[8774]],["simplus",[10788]],["simrarr",[10610]],["slarr",[8592]],["SmallCircle",[8728]],["smallsetminus",[8726]],["smashp",[10803]],["smeparsl",[10724]],["smid",[8739]],["smile",[8995]],["smt",[10922]],["smte",[10924]],["smtes",[10924,65024]],["SOFTcy",[1068]],["softcy",[1100]],["solbar",[9023]],["solb",[10692]],["sol",[47]],["Sopf",[120138]],["sopf",[120164]],["spades",[9824]],["spadesuit",[9824]],["spar",[8741]],["sqcap",[8851]],["sqcaps",[8851,65024]],["sqcup",[8852]],["sqcups",[8852,65024]],["Sqrt",[8730]],["sqsub",[8847]],["sqsube",[8849]],["sqsubset",[8847]],["sqsubseteq",[8849]],["sqsup",[8848]],["sqsupe",[8850]],["sqsupset",[8848]],["sqsupseteq",[8850]],["square",[9633]],["Square",[9633]],["SquareIntersection",[8851]],["SquareSubset",[8847]],["SquareSubsetEqual",[8849]],["SquareSuperset",[8848]],["SquareSupersetEqual",[8850]],["SquareUnion",[8852]],["squarf",[9642]],["squ",[9633]],["squf",[9642]],["srarr",[8594]],["Sscr",[119982]],["sscr",[120008]],["ssetmn",[8726]],["ssmile",[8995]],["sstarf",[8902]],["Star",[8902]],["star",[9734]],["starf",[9733]],["straightepsilon",[1013]],["straightphi",[981]],["strns",[175]],["sub",[8834]],["Sub",[8912]],["subdot",[10941]],["subE",[10949]],["sube",[8838]],["subedot",[10947]],["submult",[10945]],["subnE",[10955]],["subne",[8842]],["subplus",[10943]],["subrarr",[10617]],["subset",[8834]],["Subset",[8912]],["subseteq",[8838]],["subseteqq",[10949]],["SubsetEqual",[8838]],["subsetneq",[8842]],["subsetneqq",[10955]],["subsim",[10951]],["subsub",[10965]],["subsup",[10963]],["succapprox",[10936]],["succ",[8827]],["succcurlyeq",[8829]],["Succeeds",[8827]],["SucceedsEqual",[10928]],["SucceedsSlantEqual",[8829]],["SucceedsTilde",[8831]],["succeq",[10928]],["succnapprox",[10938]],["succneqq",[10934]],["succnsim",[8937]],["succsim",[8831]],["SuchThat",[8715]],["sum",[8721]],["Sum",[8721]],["sung",[9834]],["sup1",[185]],["sup2",[178]],["sup3",[179]],["sup",[8835]],["Sup",[8913]],["supdot",[10942]],["supdsub",[10968]],["supE",[10950]],["supe",[8839]],["supedot",[10948]],["Superset",[8835]],["SupersetEqual",[8839]],["suphsol",[10185]],["suphsub",[10967]],["suplarr",[10619]],["supmult",[10946]],["supnE",[10956]],["supne",[8843]
100],["supplus",[10944]],["supset",[8835]],["Supset",[8913]],["supseteq",[8839]],["supseteqq",[10950]],["supsetneq",[8843]],["supsetneqq",[10956]],["supsim",[10952]],["supsub",[10964]],["supsup",[10966]],["swarhk",[10534]],["swarr",[8601]],["swArr",[8665]],["swarrow",[8601]],["swnwar",[10538]],["szlig",[223]],["Tab",[9]],["target",[8982]],["Tau",[932]],["tau",[964]],["tbrk",[9140]],["Tcaron",[356]],["tcaron",[357]],["Tcedil",[354]],["tcedil",[355]],["Tcy",[1058]],["tcy",[1090]],["tdot",[8411]],["telrec",[8981]],["Tfr",[120087]],["tfr",[120113]],["there4",[8756]],["therefore",[8756]],["Therefore",[8756]],["Theta",[920]],["theta",[952]],["thetasym",[977]],["thetav",[977]],["thickapprox",[8776]],["thicksim",[8764]],["ThickSpace",[8287,8202]],["ThinSpace",[8201]],["thinsp",[8201]],["thkap",[8776]],["thksim",[8764]],["THORN",[222]],["thorn",[254]],["tilde",[732]],["Tilde",[8764]],["TildeEqual",[8771]],["TildeFullEqual",[8773]],["TildeTilde",[8776]],["timesbar",[10801]],["timesb",[8864]],["times",[215]],["timesd",[10800]],["tint",[8749]],["toea",[10536]],["topbot",[9014]],["topcir",[10993]],["top",[8868]],["Topf",[120139]],["topf",[120165]],["topfork",[10970]],["tosa",[10537]],["tprime",[8244]],["trade",[8482]],["TRADE",[8482]],["triangle",[9653]],["triangledown",[9663]],["triangleleft",[9667]],["trianglelefteq",[8884]],["triangleq",[8796]],["triangleright",[9657]],["trianglerighteq",[8885]],["tridot",[9708]],["trie",[8796]],["triminus",[10810]],["TripleDot",[8411]],["triplus",[10809]],["trisb",[10701]],["tritime",[10811]],["trpezium",[9186]],["Tscr",[119983]],["tscr",[120009]],["TScy",[1062]],["tscy",[1094]],["TSHcy",[1035]],["tshcy",[1115]],["Tstrok",[358]],["tstrok",[359]],["twixt",[8812]],["twoheadleftarrow",[8606]],["twoheadrightarrow",[8608]],["Uacute",[218]],["uacute",[250]],["uarr",[8593]],["Uarr",[8607]],["uArr",[8657]],["Uarrocir",[10569]],["Ubrcy",[1038]],["ubrcy",[1118]],["Ubreve",[364]],["ubreve",[365]],["Ucirc",[219]],["ucirc",[251]],["Ucy",[1059]],["ucy",[1091]],["udarr",[8645]],["Udblac",[368]],["udblac",[369]],["udhar",[10606]],["ufisht",[10622]],["Ufr",[120088]],["ufr",[120114]],["Ugrave",[217]],["ugrave",[249]],["uHar",[10595]],["uharl",[8639]],["uharr",[8638]],["uhblk",[9600]],["ulcorn",[8988]],["ulcorner",[8988]],["ulcrop",[8975]],["ultri",[9720]],["Umacr",[362]],["umacr",[363]],["uml",[168]],["UnderBar",[95]],["UnderBrace",[9183]],["UnderBracket",[9141]],["UnderParenthesis",[9181]],["Union",[8899]],["UnionPlus",[8846]],["Uogon",[370]],["uogon",[371]],["Uopf",[120140]],["uopf",[120166]],["UpArrowBar",[10514]],["uparrow",[8593]],["UpArrow",[8593]],["Uparrow",[8657]],["UpArrowDownArrow",[8645]],["updownarrow",[8597]],["UpDownArrow",[8597]],["Updownarrow",[8661]],["UpEquilibrium",[10606]],["upharpoonleft",[8639]],["upharpoonright",[8638]],["uplus",[8846]],["UpperLeftArrow",[8598]],["UpperRightArrow",[8599]],["upsi",[965]],["Upsi",[978]],["upsih",[978]],["Upsilon",[933]],["upsilon",[965]],["UpTeeArrow",[8613]],["UpTee",[8869]],["upuparrows",[8648]],["urcorn",[8989]],["urcorner",[8989]],["urcrop",[8974]],["Uring",[366]],["uring",[367]],["urtri",[9721]],["Uscr",[119984]],["uscr",[120010]],["utdot",[8944]],["Utilde",[360]],["utilde",[361]],["utri",[9653]],["utrif",[9652]],["uuarr",[8648]],["Uuml",[220]],["uuml",[252]],["uwangle",[10663]],["vangrt",[10652]],["varepsilon",[1013]],["varkappa",[1008]],["varnothing",[8709]],["varphi",[981]],["varpi",[982]],["varpropto",[8733]],["varr",[8597]],["vArr",[8661]],["varrho",[1009]],["varsigma",[962]],["varsubsetneq",[8842,65024]],["varsubsetneqq",[10955,65024]],["varsupsetneq",[8843,65024]],["varsupsetneqq",[10956,65024]],["vartheta",[977]],["vartriangleleft",[8882]],["vartriangleright",[8883]],["vBar",[10984]],["Vbar",[10987]],["vBarv",[10985]],["Vcy",[1042]],["vcy",[1074]],["vdash",[8866]],["vDash",[8872]],["Vdash",[8873]],["VDash",[8875]],["Vdashl",[10982]],["veebar",[8891]],["vee",[8744]],["Vee",[8897]],["veeeq",[8794]],["vellip",[8942]],["verbar",[124]],["Verbar",[8214]],["vert",[124]],["Vert",[8214]],["VerticalBar",[8739]],["VerticalLine",[124]],["VerticalSeparator",[10072]],["VerticalTilde",[8768]],["VeryThinSpace",[8202]],["Vfr",[120089]],["vfr",[120115]],["vltri",[8882]],["vnsub",[8834,8402]],["vnsup",[8835,8402]],["Vopf",[120141]],["vopf",[120167]],["vprop",[8733]],["vrtri",[8883]],["Vscr",[119985
100]],["vscr",[120011]],["vsubnE",[10955,65024]],["vsubne",[8842,65024]],["vsupnE",[10956,65024]],["vsupne",[8843,65024]],["Vvdash",[8874]],["vzigzag",[10650]],["Wcirc",[372]],["wcirc",[373]],["wedbar",[10847]],["wedge",[8743]],["Wedge",[8896]],["wedgeq",[8793]],["weierp",[8472]],["Wfr",[120090]],["wfr",[120116]],["Wopf",[120142]],["wopf",[120168]],["wp",[8472]],["wr",[8768]],["wreath",[8768]],["Wscr",[119986]],["wscr",[120012]],["xcap",[8898]],["xcirc",[9711]],["xcup",[8899]],["xdtri",[9661]],["Xfr",[120091]],["xfr",[120117]],["xharr",[10231]],["xhArr",[10234]],["Xi",[926]],["xi",[958]],["xlarr",[10229]],["xlArr",[10232]],["xmap",[10236]],["xnis",[8955]],["xodot",[10752]],["Xopf",[120143]],["xopf",[120169]],["xoplus",[10753]],["xotime",[10754]],["xrarr",[10230]],["xrArr",[10233]],["Xscr",[119987]],["xscr",[120013]],["xsqcup",[10758]],["xuplus",[10756]],["xutri",[9651]],["xvee",[8897]],["xwedge",[8896]],["Yacute",[221]],["yacute",[253]],["YAcy",[1071]],["yacy",[1103]],["Ycirc",[374]],["ycirc",[375]],["Ycy",[1067]],["ycy",[1099]],["yen",[165]],["Yfr",[120092]],["yfr",[120118]],["YIcy",[1031]],["yicy",[1111]],["Yopf",[120144]],["yopf",[120170]],["Yscr",[119988]],["yscr",[120014]],["YUcy",[1070]],["yucy",[1102]],["yuml",[255]],["Yuml",[376]],["Zacute",[377]],["zacute",[378]],["Zcaron",[381]],["zcaron",[382]],["Zcy",[1047]],["zcy",[1079]],["Zdot",[379]],["zdot",[380]],["zeetrf",[8488]],["ZeroWidthSpace",[8203]],["Zeta",[918]],["zeta",[950]],["zfr",[120119]],["Zfr",[8488]],["ZHcy",[1046]],["zhcy",[1078]],["zigrarr",[8669]],["zopf",[120171]],["Zopf",[8484]],["Zscr",[119989]],["zscr",[120015]],["zwj",[8205]],["zwnj",[8204]]],n=[["NewLine",[10]]],i={},r={};s(i,r);var a=function(){function t(){}return H(t,"Html5Entities"),t.prototype.decode=function(t){return t&&t.length?t.replace(/&(#?[\w\d]+);?/g,(function(t,n){var r;if("#"===n.charAt(0)){var a="x"===n.charAt(1)?parseInt(n.substr(2).toLowerCase(),16):parseInt(n.substr(1));(!isNaN(a)||a>=-32768)&&(r=a<=65535?String.fromCharCode(a):e.fromCodePoint(a))}else r=i[n];return r||t})):""},t.decode=function(e){return(new t).decode(e)},t.prototype.encode=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",i=0;i<t;){var a=r[e.charCodeAt(i)];if(a){var s=a[e.charCodeAt(i+1)];if(s?i++:s=a[""],s){n+="&"+s+";",i++;continue}}n+=e.charAt(i),i++}return n},t.encode=function(e){return(new t).encode(e)},t.prototype.encodeNonUTF=function(t){if(!t||!t.length)return"";for(var n=t.length,i="",a=0;a<n;){var s=t.charCodeAt(a),o=r[s];if(o){var l=o[t.charCodeAt(a+1)];if(l?a++:l=o[""],l){i+="&"+l+";",a++;continue}}s<32||s>126?s>=e.highSurrogateFrom&&s<=e.highSurrogateTo?(i+="&#"+e.getCodePoint(t,a)+";",a++):i+="&#"+s+";":i+=t.charAt(a),a++}return i},t.encodeNonUTF=function(e){return(new t).encodeNonUTF(e)},t.prototype.encodeNonASCII=function(t){if(!t||!t.length)return"";for(var n=t.length,i="",r=0;r<n;){var a=t.charCodeAt(r);a<=255?i+=t[r++]:a>=e.highSurrogateFrom&&a<=e.highSurrogateTo?(i+="&#"+e.getCodePoint(t,r)+";",r+=2):(i+="&#"+a+";",r++)}return i},t.encodeNonASCII=function(e){return(new t).encodeNonASCII(e)},t}();function s(e,i){for(var r=t.length;r--;){var a=t[r],s=a[0],o=a[1],l=o[0],u=o[1],c=l<32||l>126||62===l||60===l||38===l||34===l||39===l,d=void 0;c&&(d=i[l]=i[l]||{}),u?(e[s]=String.fromCharCode(l)+String.fromCharCode(u),c&&(d[u]=s)):(e[s]=String.fromCharCode(l),c&&(d[""]=s))}for(r=n.length;r--;){var p=n[r],h=(s=p[0],p[1]);l=h[0],u=h[1];e[s]=String.fromCharCode(l)+(u?String.fromCharCode(u):"")}}return NMe.Html5Entities=a,H(s,"createIndexes"),NMe}function BMe(){if(RMe)return EMe;RMe=1,Object.defineProperty(EMe,"__esModule",{value:!0});var e=$Me();EMe.XmlEntities=e.XmlEntities;var t=OMe();EMe.Html4Entities=t.Html4Entities;var n=FMe();return EMe.Html5Entities=n.Html5Entities,EMe.AllHtmlEntities=n.Html5Entities,EMe}H(FMe,"requireHtml5Entities"),H(BMe,"requireLib");var HMe,jMe=BMe(),UMe={exports:{}};function VMe(){return HMe||(HMe=1,function(e,t){var n="__lodash_hash_undefined__",i=1,r=2,a=9007199254740991,s="[object Arguments]",o="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",c="[object Date]",d="[object Error]",p="[object Function]",h="[object GeneratorFunction]",f="[object Map]",m="[object Number]",g="[object Null]",y="[object Object]",v="[object Promise]",b="[object Proxy]",_="[object RegExp]",w="[object Set]",S="[object String]",C="[object Symbol]",k="[object Undef
100ined]",x="[object WeakMap]",T="[object ArrayBuffer]",E="[object DataView]",A=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,I={};I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I[s]=I[o]=I[T]=I[u]=I[E]=I[c]=I[d]=I[p]=I[f]=I[m]=I[y]=I[_]=I[w]=I[S]=I[x]=!1;var $="object"==typeof cv&&cv&&cv.Object===Object&&cv,D="object"==typeof self&&self&&self.Object===Object&&self,P=$||D||Function("return this")(),O=t&&!t.nodeType&&t,M=O&&e&&!e.nodeType&&e,R=M&&M.exports===O,N=R&&$.process,F=function(){try{return N&&N.binding&&N.binding("util")}catch(tvt){}}(),B=F&&F.isTypedArray;function j(e,t){for(var n=-1,i=null==e?0:e.length,r=0,a=[];++n<i;){var s=e[n];t(s,n,e)&&(a[r++]=s)}return a}function U(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function V(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function q(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function z(e){return function(t){return e(t)}}function W(e,t){return e.has(t)}function G(e,t){return null==e?void 0:e[t]}function K(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function Y(e,t){return function(n){return e(t(n))}}function Z(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}H(j,"arrayFilter"),H(U,"arrayPush"),H(V,"arraySome"),H(q,"baseTimes"),H(z,"baseUnary"),H(W,"cacheHas"),H(G,"getValue"),H(K,"mapToArray"),H(Y,"overArg"),H(Z,"setToArray");var X,Q=Array.prototype,J=Function.prototype,ee=Object.prototype,te=P["__core-js_shared__"],ne=J.toString,ie=ee.hasOwnProperty,re=(X=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||""))?"Symbol(src)_1."+X:"",ae=ee.toString,se=RegExp("^"+ne.call(ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oe=R?P.Buffer:void 0,le=P.Symbol,ue=P.Uint8Array,ce=ee.propertyIsEnumerable,de=Q.splice,pe=le?le.toStringTag:void 0,he=Object.getOwnPropertySymbols,fe=oe?oe.isBuffer:void 0,me=Y(Object.keys,Object),ge=yt(P,"DataView"),ye=yt(P,"Map"),ve=yt(P,"Promise"),be=yt(P,"Set"),_e=yt(P,"WeakMap"),we=yt(Object,"create"),Se=Tt(ge),Ce=Tt(ye),ke=Tt(ve),xe=Tt(be),Te=Tt(_e),Ee=le?le.prototype:void 0,Ae=Ee?Ee.valueOf:void 0;function Le(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ie(){this.__data__=we?we(null):{},this.size=0}function $e(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function De(e){var t=this.__data__;if(we){var i=t[e];return i===n?void 0:i}return ie.call(t,e)?t[e]:void 0}function Pe(e){var t=this.__data__;return we?void 0!==t[e]:ie.call(t,e)}function Oe(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=we&&void 0===t?n:t,this}function Me(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Re(){this.__data__=[],this.size=0}function Ne(e){var t=this.__data__,n=it(t,e);return!(n<0)&&(n==t.length-1?t.pop():de.call(t,n,1),--this.size,!0)}function Fe(e){var t=this.__data__,n=it(t,e);return n<0?void 0:t[n][1]}function Be(e){return it(this.__data__,e)>-1}function He(e,t){var n=this.__data__,i=it(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function je(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ue(){this.size=0,this.__data__={hash:new Le,map:new(ye||Me),string:new Le}}function Ve(e){var t=gt(this,e).delete(e);return this.size-=t?1:0,t}function qe(e){return gt(this,e).get(e)}function ze(e){return gt(this,e).has(e)}function We(e,t){var n=gt(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}function Ge(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new je;++t<n;)this.add(e[t])}function Ke(e){return this.__data__.set(e,n),this}function Ye(e){return this.__data__.has(e)}function Ze(e){var t=this.__data__=new Me(e);this.size=t.size}function Xe(){this.__data__=new Me,this.size=0}function Qe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Je(e){return this.__data__.get(e)}function et(e){return this.__data__.has(e)}function tt(e,t){var n=this.__data__;if(n instanceof Me){var i=n.__data__;if(!ye||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new je(i)}return n.set(e,t),this.size=n.size,this}function nt(e,t){var n=Lt(e),i=!n&&At(e),r=!n&&!i&&$t(e),a=!n&&!i&&!r&&Nt(e),s=n||i||r||a,o=s?q(e.length,String):[],l=o.length;for(var u in e)!ie.call(e,u)||s&&("length"==u||r&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||wt(u,l))||o.push(u);return o}function it(e,t){for(var n=e.length;n--;)if(Et(e[n][0],t))return n;return-1}function rt(e,t,n){var i=t(e);return Lt(e)?i:U(i,n(e))}function at(e){return null==e?void 0===e?k:g:pe&&pe in Object(e)?vt(e):xt(e)}function st(e){return Rt(e)&&at(e)==s}function ot(e,t,n,i,r){return e===t||(null==e||null==t||!Rt(e)&&!Rt(t)?e!=e&&t!=t:lt(e,t,n,i,ot,r))}function lt(e,t,n,r,a,l){var u=Lt(e),c=Lt(t),d=u?o:_t(e),p=c?o:_t(t),h=(d=d==s?y:d)==y,f=(p=p==s?y:p)==y,m=d==p;if(m&&$t(e)){if(!$t(t))return!1;u=!0,h=!1}if(m&&!h)return l||(l=new Ze),u||Nt(e)?pt(e,t,n,r,a,l):ht(e,t,d,n,r,a,l);if(!(n&i)){var g=h&&ie.call(e,"__wrapped__"),v=f&&ie.call(t,"__wrapped__");
100if(g||v){var b=g?e.value():e,_=v?t.value():t;return l||(l=new Ze),a(b,_,n,r,l)}}return!!m&&(l||(l=new Ze),ft(e,t,n,r,a,l))}function ut(e){return!(!Mt(e)||Ct(e))&&(Pt(e)?se:A).test(Tt(e))}function ct(e){return Rt(e)&&Ot(e.length)&&!!I[at(e)]}function dt(e){if(!kt(e))return me(e);var t=[];for(var n in Object(e))ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function pt(e,t,n,a,s,o){var l=n&i,u=e.length,c=t.length;if(u!=c&&!(l&&c>u))return!1;var d=o.get(e);if(d&&o.get(t))return d==t;var p=-1,h=!0,f=n&r?new Ge:void 0;for(o.set(e,t),o.set(t,e);++p<u;){var m=e[p],g=t[p];if(a)var y=l?a(g,m,p,t,e,o):a(m,g,p,e,t,o);if(void 0!==y){if(y)continue;h=!1;break}if(f){if(!V(t,(function(e,t){if(!W(f,t)&&(m===e||s(m,e,n,a,o)))return f.push(t)}))){h=!1;break}}else if(m!==g&&!s(m,g,n,a,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function ht(e,t,n,a,s,o,l){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!o(new ue(e),new ue(t)));case u:case c:case m:return Et(+e,+t);case d:return e.name==t.name&&e.message==t.message;case _:case S:return e==t+"";case f:var p=K;case w:var h=a&i;if(p||(p=Z),e.size!=t.size&&!h)return!1;var g=l.get(e);if(g)return g==t;a|=r,l.set(e,t);var y=pt(p(e),p(t),a,s,o,l);return l.delete(e),y;case C:if(Ae)return Ae.call(e)==Ae.call(t)}return!1}function ft(e,t,n,r,a,s){var o=n&i,l=mt(e),u=l.length;if(u!=mt(t).length&&!o)return!1;for(var c=u;c--;){var d=l[c];if(!(o?d in t:ie.call(t,d)))return!1}var p=s.get(e);if(p&&s.get(t))return p==t;var h=!0;s.set(e,t),s.set(t,e);for(var f=o;++c<u;){var m=e[d=l[c]],g=t[d];if(r)var y=o?r(g,m,d,t,e,s):r(m,g,d,e,t,s);if(!(void 0===y?m===g||a(m,g,n,r,s):y)){h=!1;break}f||(f="constructor"==d)}if(h&&!f){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(h=!1)}return s.delete(e),s.delete(t),h}function mt(e){return rt(e,Ft,bt)}function gt(e,t){var n=e.__data__;return St(t)?n["string"==typeof t?"string":"hash"]:n.map}function yt(e,t){var n=G(e,t);return ut(n)?n:void 0}function vt(e){var t=ie.call(e,pe),n=e[pe];try{e[pe]=void 0;var i=!0}catch(tvt){}var r=ae.call(e);return i&&(t?e[pe]=n:delete e[pe]),r}H(Le,"Hash"),H(Ie,"hashClear"),H($e,"hashDelete"),H(De,"hashGet"),H(Pe,"hashHas"),H(Oe,"hashSet"),Le.prototype.clear=Ie,Le.prototype.delete=$e,Le.prototype.get=De,Le.prototype.has=Pe,Le.prototype.set=Oe,H(Me,"ListCache"),H(Re,"listCacheClear"),H(Ne,"listCacheDelete"),H(Fe,"listCacheGet"),H(Be,"listCacheHas"),H(He,"listCacheSet"),Me.prototype.clear=Re,Me.prototype.delete=Ne,Me.prototype.get=Fe,Me.prototype.has=Be,Me.prototype.set=He,H(je,"MapCache"),H(Ue,"mapCacheClear"),H(Ve,"mapCacheDelete"),H(qe,"mapCacheGet"),H(ze,"mapCacheHas"),H(We,"mapCacheSet"),je.prototype.clear=Ue,je.prototype.delete=Ve,je.prototype.get=qe,je.prototype.has=ze,je.prototype.set=We,H(Ge,"SetCache"),H(Ke,"setCacheAdd"),H(Ye,"setCacheHas"),Ge.prototype.add=Ge.prototype.push=Ke,Ge.prototype.has=Ye,H(Ze,"Stack"),H(Xe,"stackClear"),H(Qe,"stackDelete"),H(Je,"stackGet"),H(et,"stackHas"),H(tt,"stackSet"),Ze.prototype.clear=Xe,Ze.prototype.delete=Qe,Ze.prototype.get=Je,Ze.prototype.has=et,Ze.prototype.set=tt,H(nt,"arrayLikeKeys"),H(it,"assocIndexOf"),H(rt,"baseGetAllKeys"),H(at,"baseGetTag"),H(st,"baseIsArguments"),H(ot,"baseIsEqual"),H(lt,"baseIsEqualDeep"),H(ut,"baseIsNative"),H(ct,"baseIsTypedArray"),H(dt,"baseKeys"),H(pt,"equalArrays"),H(ht,"equalByTag"),H(ft,"equalObjects"),H(mt,"getAllKeys"),H(gt,"getMapData"),H(yt,"getNative"),H(vt,"getRawTag");var bt=he?function(e){return null==e?[]:(e=Object(e),j(he(e),(function(t){return ce.call(e,t)})))}:Bt,_t=at;function wt(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||L.test(e))&&e>-1&&e%1==0&&e<t}function St(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Ct(e){return!!re&&re in e}function kt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ee)}function xt(e){return ae.call(e)}function Tt(e){if(null!=e){try{return ne.call(e)}catch(tvt){}try{return e+""}catch(tvt){}}return""}function Et(e,t){return e===t||e!=e&&t!=t}(ge&&_t(new ge(new ArrayBuffer(1)))!=E||ye&&_t(new ye)!=f||ve&&_t(ve.resolve())!=v||be&&_t(new be)!=w||_e&&_t(new _e)!=x)&&(_t=H((function(e){var t=at(e),n=t==y?e.constructor:void 0,i=n?Tt(n):"";if(i)switch(i){case Se:return E;case Ce:return f;case ke:return v;case xe:return w;case Te:return x}return t}),"getTag")),H(wt,"isIndex"),H(St,"isKeyable"),H(Ct,"isMasked"),H(kt,"isPrototype"),H(xt,"objectToString"),H(Tt,"toSource"),H(Et,"eq");var At=st(function(){return arguments}())?st:function(e){return Rt(e)&&ie.call(e,"callee")&&!ce.call(e,"callee")},Lt=Array.isArray;function It(e){return null!=e&&Ot(e.length)&&!Pt(e)}H(It,"isArrayLike");var $t=fe||Ht;function Dt(e,t){return ot(e,t)}function Pt(e){if(!Mt(e))return!1;var t=at(e);return t==p||t==h||t==l||t==b}function Ot(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Mt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Rt(e){return null!=e&&"object"==typeof e}H(Dt,"isEqual"),H(Pt,"isFunction"),H(Ot,"isLength"),H(Mt,"isObject"),H(Rt,"isObjectLike");var Nt=B?z(B):ct;function Ft(e){return It(e)?nt(e):dt(e)}function Bt(){return[]}function Ht(){return!1}H(Ft,"keys"),H(Bt,"stubArray"),H(Ht,"stubFalse"),e.exports=Dt}(UMe,UMe.exports)),UMe.exports}H(VMe,"requireLodash_isequal");const qMe=dv(VMe());function zMe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}H(zMe,"commonjsRequire");var WMe,GMe={exports:{}};function KMe(){return WMe||(WMe=1,GMe.exports=H((function e(t,n,i){function r(s,o){if(!n[s]){if(!t[s]){if(!o&&zMe)return zMe(s);if(a)return a(s,!0);throw new Error("Cannot find module '"+s+"'")}
100o=n[s]={exports:{}},t[s][0].call(o.exports,(function(e){return r(t[s][1][e]||e)}),o,o.exports,e,t,n,i)}return n[s].exports}H(r,"s");for(var a=zMe,s=0;s<i.length;s++)r(i[s]);return r}),"r")({1:[function(e,t,n){(function(i,r,a,s,o,l,u,c,d){var p=e("crypto");function h(e,t){var n;return void 0===(n="passthrough"!==(t=g(e,t)).algorithm?p.createHash(t.algorithm):new b).write&&(n.write=n.update,n.end=n.update),v(t,n).dispatch(e),n.update||n.end(""),n.digest?n.digest("buffer"===t.encoding?void 0:t.encoding):(e=n.read(),"buffer"!==t.encoding?e.toString(t.encoding):e)}H(h,"t"),(n=t.exports=h).sha1=function(e){return h(e)},n.keys=function(e){return h(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(e){return h(e,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(e){return h(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var f=p.getHashes?p.getHashes().slice():["sha1","md5"],m=(f.push("passthrough"),["buffer","hex","binary","base64"]);function g(e,t){var n={};if(n.algorithm=(t=t||{}).algorithm||"sha1",n.encoding=t.encoding||"hex",n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,void 0===e)throw new Error("Object argument required.");for(var i=0;i<f.length;++i)f[i].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=f[i]);if(-1===f.indexOf(n.algorithm))throw new Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+f.join(", "));if(-1===m.indexOf(n.encoding)&&"passthrough"!==n.algorithm)throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+m.join(", "));return n}function y(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function v(e,t,n){function i(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return n=n||[],H(i,"u"),{dispatch:H((function(t){return this["_"+(null===(t=e.replacer?e.replacer(t):t)?"null":typeof t)](t)}),"dispatch"),_object:H((function(t){var r,s=Object.prototype.toString.call(t),o=/\[object (.*)\]/i.exec(s);if(o=(o=o?o[1]:"unknown:["+s+"]").toLowerCase(),0<=(s=n.indexOf(t)))return this.dispatch("[CIRCULAR:"+s+"]");if(n.push(t),void 0!==a&&a.isBuffer&&a.isBuffer(t))return i("buffer:"),i(t);if("object"===o||"function"===o||"asyncfunction"===o)return s=Object.keys(t),e.unorderedObjects&&(s=s.sort()),!1===e.respectType||y(t)||s.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(s=s.filter((function(t){return!e.excludeKeys(t)}))),i("object:"+s.length+":"),r=this,s.forEach((function(n){r.dispatch(n),i(":"),e.excludeValues||r.dispatch(t[n]),i(",")}));if(!this["_"+o]){if(e.ignoreUnknown)return i("["+o+"]");throw new Error('Unknown object type "'+o+'"')}this["_"+o](t)}),"_object"),_array:H((function(t,r){r=void 0!==r?r:!1!==e.unorderedArrays;var a=this;if(i("array:"+t.length+":"),!r||t.length<=1)return t.forEach((function(e){return a.dispatch(e)}));var s=[];return r=t.map((function(t){var i=new b,r=n.slice();return v(e,i,r).dispatch(t),s=s.concat(r.slice(n.length)),i.read().toString()})),n=n.concat(s),r.sort(),this._array(r,!1)}),"_array"),_date:H((function(e){return i("date:"+e.toJSON())}),"_date"),_symbol:H((function(e){return i("symbol:"+e.toString())}),"_symbol"),_error:H((function(e){return i("error:"+e.toString())}),"_error"),_boolean:H((function(e){return i("bool:"+e.toString())}),"_boolean"),_string:H((function(e){i("string:"+e.length+":"),i(e.toString())}),"_string"),_function:H((function(t){i("fn:"),y(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)}),"_function"),_number:H((function(e){return i("number:"+e.toString())}),"_number"),_xml:H((function(e){return i("xml:"+e.toString())}),"_xml"),_null:H((function(){return i("Null")}),"_null"),_undefined:H((function(){return i("Undefined")}),"_undefined"),_regexp:H((function(e){return i("regex:"+e.toString())}),"_regexp"),_uint8array:H((function(e){return i("uint8array:"),this.dispatch(Array.prototype.slice.call(e))}),"_uint8array"),_uint8clampedarray:H((function(e){return i("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))}),"_uint8clampedarray"),_int8array:H((function(e){return i("int8array:"),this.dispatch(Array.prototype.slice.call(e))}),"_int8array"),_uint16array:H((function(e){return i("uint16array:"),this.dispatch(Array.prototype.slice.call(e))}),"_uint16array"),_int16array:H((function(e){return i("int16array:"),this.dispatch(Array.prototype.slice.call(e))}),"_int16array"),_uint32array:H((function(e){return i("uint32array:"),this.dispatch(Array.prototype.slice.call(e))}),"_uint32array"),_int32array:H((function(e){return i("int32array:"),this.dispatch(Array.prototype.slice.call(e))}),"_int32array"),_float32array:H((function(e){return i("float32array:"),this.dispatch(Array.prototype.slice.call(e))}),"_float32array"),_float64array:H((function(e){return i("float64array:"),this.dispatch(Array.prototype.slice.call(e))}),"_float64array"),_arraybuffer:H((function(e){return i("arraybuffer:"),this.dispatch(new Uint8Array(e))}),"_arraybuffer"),_url:H((function(e){return i("url:"+e.toString())}),"_url"),_map:H((function(t){return i("map:"),t=Array.from(t),this._array(t,!1!==e.unorderedSets)}),"_map"),_set:H((function(t){return i("set:"),t=Array.from(t),this._array(t,!1!==e.unorderedSets)}),"_set"),_file:H((function(e){return i("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])}),"_file"),_blob:H((function(){if(e.ignoreUnknown)return i("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')}),"_blob"),_domwindow:H((function(){return i("domwindow")}),"_domwindow"),_bigint:H((function(e){return i("bigint:"+e.toString())}),"_bigint"),_process:H((function(){return i("process")}),"_process"),_timer:H((function(){return i("timer")}),"_timer"),_pipe:H((function(){return i("pipe")}),"_pipe"),_tcp:H((function(){return i("tcp")}),"_tcp"),_udp:H((function(){return i("udp")}),"_udp"),_tty:H((function(){return i("tty")}),"_tty"),_statwatcher:H((function(){return i("statwatcher")}),"_statwatcher"),_securecontext:H((function(){return i("securecontext")}
100),"_securecontext"),_connection:H((function(){return i("connection")}),"_connection"),_zlib:H((function(){return i("zlib")}),"_zlib"),_context:H((function(){return i("context")}),"_context"),_nodescript:H((function(){return i("nodescript")}),"_nodescript"),_httpparser:H((function(){return i("httpparser")}),"_httpparser"),_dataview:H((function(){return i("dataview")}),"_dataview"),_signal:H((function(){return i("signal")}),"_signal"),_fsevent:H((function(){return i("fsevent")}),"_fsevent"),_tlswrap:H((function(){return i("tlswrap")}),"_tlswrap")}}function b(){return{buf:"",write:H((function(e){this.buf+=e}),"write"),end:H((function(e){this.buf+=e}),"end"),read:H((function(){return this.buf}),"read")}}H(g,"u"),H(y,"a"),H(v,"f"),H(b,"l"),n.writeToStream=function(e,t,n){return void 0===n&&(n=t,t={}),v(t=g(e,t),n).dispatch(e)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,n){(function(e,t,i,r,a,s,o,l,u){!function(e){var t="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),i="/".charCodeAt(0),r="0".charCodeAt(0),a="a".charCodeAt(0),s="A".charCodeAt(0),o="-".charCodeAt(0),l="_".charCodeAt(0);function u(e){return(e=e.charCodeAt(0))===n||e===o?62:e===i||e===l?63:e<r?-1:e<r+10?e-r+26+26:e<s+26?e-s:e<a+26?e-a+26:void 0}H(u,"f"),e.toByteArray=function(e){var n,i;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.length,a=(r="="===e.charAt(r-2)?2:"="===e.charAt(r-1)?1:0,new t(3*e.length/4-r)),s=0<r?e.length-4:e.length,o=0;function l(e){a[o++]=e}for(H(l,"s"),n=0;n<s;n+=4,0)l((16711680&(i=u(e.charAt(n))<<18|u(e.charAt(n+1))<<12|u(e.charAt(n+2))<<6|u(e.charAt(n+3))))>>16),l((65280&i)>>8),l(255&i);return 2==r?l(255&(i=u(e.charAt(n))<<2|u(e.charAt(n+1))>>4)):1==r&&(l((i=u(e.charAt(n))<<10|u(e.charAt(n+1))<<4|u(e.charAt(n+2))>>2)>>8&255),l(255&i)),a},e.fromByteArray=function(e){var t,n,i,r,a=e.length%3,s="";function o(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(H(o,"s"),t=0,i=e.length-a;t<i;t+=3)s+=o((r=n=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+o(r>>12&63)+o(r>>6&63)+o(63&r);switch(a){case 1:s=(s+=o((n=e[e.length-1])>>2))+o(n<<4&63)+"==";break;case 2:s=(s=(s+=o((n=(e[e.length-2]<<8)+e[e.length-1])>>10))+o(n>>4&63))+o(n<<2&63)+"="}return s}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,n){(function(t,i,r,a,s,o,l,u,c){var d=e("base64-js"),p=e("ieee754");function r(e,t,n){if(!(this instanceof r))return new r(e,t,n);var i,a,s,o,l=typeof e;if("base64"===t&&"string"==l)for(e=(o=e).trim?o.trim():o.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==l)i=I(e);else if("string"==l)i=r.byteLength(e,t);else{if("object"!=l)throw new Error("First argument needs to be a number, array or string.");i=I(e.length)}if(r._useTypedArrays?a=r._augment(new Uint8Array(i)):((a=this).length=i,a._isBuffer=!0),r._useTypedArrays&&"number"==typeof e.byteLength)a._set(e);else if($(o=e)||r.isBuffer(o)||o&&"object"==typeof o&&"number"==typeof o.length)for(s=0;s<i;s++)r.isBuffer(e)?a[s]=e.readUInt8(s):a[s]=e[s];else if("string"==l)a.write(e,0,t);else if("number"==l&&!r._useTypedArrays&&!n)for(s=0;s<i;s++)a[s]=0;return a}function h(e,t,n,i){return r._charsWritten=M(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function f(e,t,n,i){return r._charsWritten=M(function(e){for(var t,n,i=[],r=0;r<e.length;r++)t=(n=e.charCodeAt(r))>>8,n%=256,i.push(n),i.push(t);return i}(t),e,n,i)}function m(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;r++)i+=String.fromCharCode(e[r]);return i}function g(e,t,n,i){var r;if(i||(j("boolean"==typeof n,"missing or invalid endian"),j(null!=t,"missing offset"),j(t+1<e.length,"Trying to read beyond buffer length")),!((i=e.length)<=t))return n?(r=e[t],t+1<i&&(r|=e[t+1]<<8)):(r=e[t]<<8,t+1<i&&(r|=e[t+1])),r}function y(e,t,n,i){var r;if(i||(j("boolean"==typeof n,"missing or invalid endian"),j(null!=t,"missing offset"),j(t+3<e.length,"Trying to read beyond buffer length")),!((i=e.length)<=t))return n?(t+2<i&&(r=e[t+2]<<16),t+1<i&&(r|=e[t+1]<<8),r|=e[t],t+3<i&&(r+=e[t+3]<<24>>>0)):(t+1<i&&(r=e[t+1]<<16),t+2<i&&(r|=e[t+2]<<8),t+3<i&&(r|=e[t+3]),r+=e[t]<<24>>>0),r}function v(e,t,n,i){if(i||(j("boolean"==typeof n,"missing or invalid endian"),j(null!=t,"missing offset"),j(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return 32768&(i=g(e,t,n,!0))?-1*(65535-i+1):i}function b(e,t,n,i){if(i||(j("boolean"==typeof n,"missing or invalid endian"),j(null!=t,"missing offset"),j(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return 2147483648&(i=y(e,t,n,!0))?-1*(4294967295-i+1):i}
100function _(e,t,n,i){return i||(j("boolean"==typeof n,"missing or invalid endian"),j(t+3<e.length,"Trying to read beyond buffer length")),p.read(e,t,n,23,4)}function w(e,t,n,i){return i||(j("boolean"==typeof n,"missing or invalid endian"),j(t+7<e.length,"Trying to read beyond buffer length")),p.read(e,t,n,52,8)}function S(e,t,n,i,r){if(r||(j(null!=t,"missing value"),j("boolean"==typeof i,"missing or invalid endian"),j(null!=n,"missing offset"),j(n+1<e.length,"trying to write beyond buffer length"),N(t,65535)),!((r=e.length)<=n))for(var a=0,s=Math.min(r-n,2);a<s;a++)e[n+a]=(t&255<<8*(i?a:1-a))>>>8*(i?a:1-a)}function C(e,t,n,i,r){if(r||(j(null!=t,"missing value"),j("boolean"==typeof i,"missing or invalid endian"),j(null!=n,"missing offset"),j(n+3<e.length,"trying to write beyond buffer length"),N(t,4294967295)),!((r=e.length)<=n))for(var a=0,s=Math.min(r-n,4);a<s;a++)e[n+a]=t>>>8*(i?a:3-a)&255}function k(e,t,n,i,r){r||(j(null!=t,"missing value"),j("boolean"==typeof i,"missing or invalid endian"),j(null!=n,"missing offset"),j(n+1<e.length,"Trying to write beyond buffer length"),F(t,32767,-32768)),e.length<=n||S(e,0<=t?t:65535+t+1,n,i,r)}function x(e,t,n,i,r){r||(j(null!=t,"missing value"),j("boolean"==typeof i,"missing or invalid endian"),j(null!=n,"missing offset"),j(n+3<e.length,"Trying to write beyond buffer length"),F(t,2147483647,-2147483648)),e.length<=n||C(e,0<=t?t:4294967295+t+1,n,i,r)}function T(e,t,n,i,r){r||(j(null!=t,"missing value"),j("boolean"==typeof i,"missing or invalid endian"),j(null!=n,"missing offset"),j(n+3<e.length,"Trying to write beyond buffer length"),B(t,34028234663852886e22,-34028234663852886e22)),e.length<=n||p.write(e,t,n,i,23,4)}function E(e,t,n,i,r){r||(j(null!=t,"missing value"),j("boolean"==typeof i,"missing or invalid endian"),j(null!=n,"missing offset"),j(n+7<e.length,"Trying to write beyond buffer length"),B(t,17976931348623157e292,-17976931348623157e292)),e.length<=n||p.write(e,t,n,i,52,8)}H(r,"f"),H(h,"b"),H(f,"m"),H(m,"v"),H(g,"o"),H(y,"u"),H(v,"_"),H(b,"E"),H(_,"I"),H(w,"A"),H(S,"s"),H(C,"l"),H(k,"B"),H(x,"L"),H(T,"U"),H(E,"x"),n.Buffer=r,n.SlowBuffer=r,n.INSPECT_MAX_BYTES=50,r.poolSize=8192,r._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(n){return!1}}(),r.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.isBuffer=function(e){return!(null==e||!e._isBuffer)},r.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=P(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=O(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},r.concat=function(e,t){if(j($(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new r(0);if(1===e.length)return e[0];if("number"!=typeof t)for(a=t=0;a<e.length;a++)t+=e[a].length;for(var n=new r(t),i=0,a=0;a<e.length;a++){var s=e[a];s.copy(n,i),i+=s.length}return n},r.prototype.write=function(e,t,n,i){isFinite(t)?isFinite(n)||(i=n,n=void 0):(u=i,i=t,t=n,n=u),t=Number(t)||0;var a,s,o,l,u=this.length-t;switch((!n||u<(n=Number(n)))&&(n=u),i=String(i||"utf8").toLowerCase()){case"hex":a=function(e,t,n,i){n=Number(n)||0;var a=e.length-n;(!i||a<(i=Number(i)))&&(i=a),j((a=t.length)%2==0,"Invalid hex string"),a/2<i&&(i=a/2);for(var s=0;s<i;s++){var o=parseInt(t.substr(2*s,2),16);j(!isNaN(o),"Invalid hex string"),e[n+s]=o}return r._charsWritten=2*s,s}(this,e,t,n);break;case"utf8":case"utf-8":s=this,o=t,l=n,a=r._charsWritten=M(P(e),s,o,l);break;case"ascii":case"binary":a=h(this,e,t,n);break;case"base64":s=this,o=t,l=n,a=r._charsWritten=M(O(e),s,o,l);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":a=f(this,e,t,n);break;default:throw new Error("Unknown encoding")}return a},r.prototype.toString=function(e,t,n){var i,r,a,s,o=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):o.length)===t)return"";switch(e){case"hex":i=function(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||i<n)&&(n=i);for(var r="",a=t;a<n;a++)r+=D(e[a]);return r}(o,t,n);break;case"utf8":case"utf-8":i=function(e,t,n){var i="",r="";n=Math.min(e.length,n);for(var a=t;a<n;a++)e[a]<=127?(i+=R(r)+String.fromCharCode(e[a]),r=""):r+="%"+e[a].toString(16);return i+R(r)}(o,t,n);break;case"ascii":case"binary":i=m(o,t,n);break;case"base64":r=o,s=n,i=0===(a=t)&&s===r.length?d.fromByteArray(r):d.fromByteArray(r.slice(a,s));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=function(e,t,n){for(var i=e.slice(t,n),r="",a=0;a<i.length;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}(o,t,n);break;default:throw new Error("Unknown encoding")}return i},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},r.prototype.copy=function(e,t,n,i){if(t=t||0,(i=i||0===i?i:this.length)!==(n=n||0)&&0!==e.length&&0!==this.length){j(n<=i,"sourceEnd < sourceStart"),j(0<=t&&t<e.length,"targetStart out of bounds"),j(0<=n&&n<this.length,"sourceStart out of bounds"),j(0<=i&&i<=this.length,"sourceEnd out of bounds"),i>this.length&&(i=this.length);var a=(i=e.length-t<i-n?e.length-t+n:i)-n;if(a<100||!r._useTypedArrays)for(var s=0;s<a;s++)e[s+t]=this[s+n];else e._set(this.subarray(n,n+a),t)}},r.prototype.slice=function(e,t){var n=this.length;if(e=L(e,n,0),t=L(t,n,n),r._useTypedArrays)return r._augment(this.subarray(e,t));for(var i=t-e,a=new r(i,void 0,!0),s=0;s<i;s++)a[s]=this[s+e];return a},r.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},r.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},r.prototype.readUInt8=function(e,t){if(t||(j(null!=e,"missing offset"),j(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},r.prototype.readUInt16LE=function(e,t){return g(this,e,!0,t)},r.prototype.readUInt16BE=function(e,t){return g(this,e,!1,t)},r.prototype.readUInt32LE=function(e,t){return y(this,e,!0,t)},r.prototype.readUInt32BE=function(e,t){return y(this,e,!1,t)},r.prototype.readInt8=function(e,t){if(t||(j(null!=e,"missing offset"),j(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,t){return v(this,e,!0,t)},r.prototype.readInt16BE=function(e,t){return v(this,e,!1,t)},r.prototype.readInt32LE=function(e,t){return b(this,e,!0,t)},r.prototype.readInt32BE=function(e,t){return b(this,e,!1,t)},r.prototype.readFloatLE=function(e,t){return _(this,e,!0,t)},r.prototype.readFloatBE=function(e,t){return _(this,e,!1,t)},r.prototype.readDoubleLE=function(e,t){return w(this,e,!0,t)},r.prototype.readDoubleBE=function(e,t){return w(this,e,!1,t)},r.prototype.writeUInt8=function(e,t,n){n||(j(null!=e,"missing value"),j(null!=t,"missing offset"),j(t<this.length,"trying to write beyond buffer length"),N(e,255)),t>=this.length||(this[t]=e)},r.prototype.writeUInt16LE=function(e,t,n){S(this,e,t,!0,n)},r.prototype.writeUInt16BE=function(e,t,n){S(this,e,t,!1,n)},r.prototype.writeUInt32LE=function(e,t,n){C(this,e,t,!0,n)},r.prototype.writeUInt32BE=function(e,t,n){C(this,e,t,!1,n)},r.prototype.writeInt8=function(e,t,n){n||(j(null!=e,"missing value"),j(null!=t,"missing offset"),j(t<this.length,"Trying to write beyond buffer length"),F(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},r.prototype.writeInt16LE=function(e,t,n){k(this,e,t,!0,n)},r.prototype.writeInt16BE=function(e,t,n){k(this,e,t,!1,n)},r.prototype.writeInt32LE=function(e,t,n){x(this,e,t,!0,n)},r.prototype.writeInt32BE=function(e,t,n){x(this,e,t,!1,n)},r.prototype.writeFloatLE=function(e,t,n){T(this,e,t,!0,n)},r.prototype.writeFloatBE=function(e,t,n){T(this,e,t,!1,n)},r.prototype.writeDoubleLE=function(e,t,n){E(this,e,t,!0,n)},r.prototype.writeDoubleBE=function(e,t,n){E(this,e,t,!1,n)},r.prototype.fill=function(e,t,n){if(t=t||0,n=n||this.length,j("number"==typeof(e="string"==typeof(e=e||0)?e.charCodeAt(0):e)&&!isNaN(e),"value is not a number"),j(t<=n,"end < start"),n!==t&&0!==this.length){j(0<=t&&t<this.length,"start out of bounds"),j(0<=n&&n<=this.length,"end out of bounds");for(var i=t;i<n;i++)this[i]=e}},r.prototype.inspect=function(){for(var e=[],t=this.length,i=0;i<t;i++)if(e[i]=D(this[i]),i===n.INSPECT_MAX_BYTES){e[i+1]="...";break}return"<Buffer "+e.join(" ")+">"},r.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(r._useTypedArrays)return new r(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer};var A=r.prototype;function L(e,t,n){return"number"!=typeof e?n:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function I(e){return(e=~~Math.ceil(+e))<0?0:e}function $(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function P(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i<=127)t.push(e.charCodeAt(n));else for(var r=n,a=(55296<=i&&i<=57343&&n++,encodeURIComponent(e.slice(r,n+1)).substr(1).split("%")),s=0;s<a.length;s++)t.push(parseInt(a[s],16))}return t}function O(e){return d.toByteArray(e)}function M(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);r++)t[r+n]=e[r];return r}function R(e){try{return decodeURIComponent(e)}catch(t){return String.fromCharCode(65533)}}function N(e,t){j("number"==typeof e,"cannot write a non-number as a number"),j(0<=e,"specified a negative value for writing an unsigned value"),j(e<=t,"value is larger than maximum value for type"),j(Math.floor(e)===e,"value has a fractional component")}function F(e,t,n){j("number"==typeof e,"cannot write a non-number as a number"),j(e<=t,"value larger than maximum allowed value"),j(n<=e,"value smaller than minimum allowed value"),j(Math.floor(e)===e,"value has a fractional component")}function B(e,t,n){j("number"==typeof e,"cannot write a non-number as a number"),j(e<=t,"value larger than maximum allowed value"),j(n<=e,"value smaller than minimum allowed value")}function j(e,t){if(!e)throw new Error(t||"Failed assertion")}H(L,"S"),H(I,"j"),H($,"C"),H(D,"k"),H(P,"T"),H(O,"M"),H(M,"c"),H(R,"N"),H(N,"Y"),H(F,"F"),H(B,"D"),H(j,"d"),r._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=A.get,e.set=A.set,e.write=A.write,e.toString=A.toString,e.toLocaleStr
100ing=A.toString,e.toJSON=A.toJSON,e.copy=A.copy,e.slice=A.slice,e.readUInt8=A.readUInt8,e.readUInt16LE=A.readUInt16LE,e.readUInt16BE=A.readUInt16BE,e.readUInt32LE=A.readUInt32LE,e.readUInt32BE=A.readUInt32BE,e.readInt8=A.readInt8,e.readInt16LE=A.readInt16LE,e.readInt16BE=A.readInt16BE,e.readInt32LE=A.readInt32LE,e.readInt32BE=A.readInt32BE,e.readFloatLE=A.readFloatLE,e.readFloatBE=A.readFloatBE,e.readDoubleLE=A.readDoubleLE,e.readDoubleBE=A.readDoubleBE,e.writeUInt8=A.writeUInt8,e.writeUInt16LE=A.writeUInt16LE,e.writeUInt16BE=A.writeUInt16BE,e.writeUInt32LE=A.writeUInt32LE,e.writeUInt32BE=A.writeUInt32BE,e.writeInt8=A.writeInt8,e.writeInt16LE=A.writeInt16LE,e.writeInt16BE=A.writeInt16BE,e.writeInt32LE=A.writeInt32LE,e.writeInt32BE=A.writeInt32BE,e.writeFloatLE=A.writeFloatLE,e.writeFloatBE=A.writeFloatBE,e.writeDoubleLE=A.writeDoubleLE,e.writeDoubleBE=A.writeDoubleBE,e.fill=A.fill,e.inspect=A.inspect,e.toArrayBuffer=A.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,n){(function(n,i,r,a,s,o,l,u,c){r=e("buffer").Buffer;var d=4,p=new r(d);p.fill(0),t.exports={hash:H((function(e,t,n,i){for(var a=t(function(e,t){e.length%d!=0&&(n=e.length+(d-e.length%d),e=r.concat([e,p],n));for(var n,i=[],a=t?e.readInt32BE:e.readInt32LE,s=0;s<e.length;s+=d)i.push(a.call(e,s));return i}(e=r.isBuffer(e)?e:new r(e),i),8*e.length),s=(t=i,new r(n)),o=t?s.writeInt32BE:s.writeInt32LE,l=0;l<a.length;l++)o.call(s,a[l],4*l,!0);return s}),"hash")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(e,t,n){(function(t,i,r,a,s,o,l,u,c){r=e("buffer").Buffer;var d=e("./sha"),p=e("./sha256"),h=e("./rng"),f={sha1:d,sha256:p,md5:e("./md5")},m=64,g=new r(m);function y(e,t){var n=f[e=e||"sha1"],i=[];return n||v("algorithm:",e,"is not yet supported"),{update:H((function(e){return r.isBuffer(e)||(e=new r(e)),i.push(e),e.length,this}),"update"),digest:H((function(e){var a=r.concat(i);return a=t?function(e,t,n){r.isBuffer(t)||(t=new r(t)),r.isBuffer(n)||(n=new r(n)),t.length>m?t=e(t):t.length<m&&(t=r.concat([t,g],m));for(var i=new r(m),a=new r(m),s=0;s<m;s++)i[s]=54^t[s],a[s]=92^t[s];return n=e(r.concat([i,n])),e(r.concat([a,n]))}(n,t,a):n(a),i=null,e?a.toString(e):a}),"digest")}}function v(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}H(y,"r"),H(v,"i"),g.fill(0),n.createHash=function(e){return y(e)},n.createHmac=y,n.randomBytes=function(e,t){if(!t||!t.call)return new r(h(e));try{t.call(this,void 0,new r(h(e)))}catch(n){t(n)}};var b,_=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],w=H((function(e){n[e]=function(){v("sorry,",e,"is not implemented yet")}}),"m");for(b in _)w(_[b])}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,n){(function(n,i,r,a,s,o,l,u,c){var d=e("./helpers");function p(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,i=-271733879,r=-1732584194,a=271733878,s=0;s<e.length;s+=16){var o=n,l=i,u=r,c=a;n=f(n,i,r,a,e[s+0],7,-680876936),a=f(a,n,i,r,e[s+1],12,-389564586),r=f(r,a,n,i,e[s+2],17,606105819),i=f(i,r,a,n,e[s+3],22,-1044525330),n=f(n,i,r,a,e[s+4],7,-176418897),a=f(a,n,i,r,e[s+5],12,1200080426),r=f(r,a,n,i,e[s+6],17,-1473231341),i=f(i,r,a,n,e[s+7],22,-45705983),n=f(n,i,r,a,e[s+8],7,1770035416),a=f(a,n,i,r,e[s+9],12,-1958414417),r=f(r,a,n,i,e[s+10],17,-42063),i=f(i,r,a,n,e[s+11],22,-1990404162),n=f(n,i,r,a,e[s+12],7,1804603682),a=f(a,n,i,r,e[s+13],12,-40341101),r=f(r,a,n,i,e[s+14],17,-1502002290),n=m(n,i=f(i,r,a,n,e[s+15],22,1236535329),r,a,e[s+1],5,-165796510),a=m(a,n,i,r,e[s+6],9,-1069501632),r=m(r,a,n,i,e[s+11],14,643717713),i=m(i,r,a,n,e[s+0],20,-373897302),n=m(n,i,r,a,e[s+5],5,-701558691),a=m(a,n,i,r,e[s+10],9,38016083),r=m(r,a,n,i,e[s+15],14,-660478335),i=m(i,r,a,n,e[s+4],20,-405537848),n=m(n,i,r,a,e[s+9],5,568446438),a=m(a,n,i,r,e[s+14],9,-1019803690),r=m(r,a,n,i,e[s+3],14,-187363961),i=m(i,r,a,n,e[s+8],20,1163531501),n=m(n,i,r,a,e[s+13],5,-1444681467),a=m(a,n,i,r,e[s+2],9,-51403784),r=m(r,a,n,i,e[s+7],14,1735328473),n=g(n,i=m(i,r,a,n,e[s+12],20,-1926607734),r,a,e[s+5],4,-378558),a=g(a,n,i,r,e[s+8],11,-2022574463),r=g(r,a,n,i,e[s+11],16,1839030562),i=g(i,r,a,n,e[s+14],23,-35309556),n=g(n,i,r,a,e[s+1],4,-1530992060),a=g(a,n,i,r,e[s+4],11,1272893353),r=g(r,a,n,i,e[s+7],16,-155497632),i=g(i,r,a,n,e[s+10],23,-1094730640),n=g(n,i,r,a,e[s+13],4,681279174),a=g(a,n,i,r,e[s+0],11,-358537222),r=g(r,a,n,i,e[s+3],16,-722521979),i=g(i,r,a,n,e[s+6],23,76029189),n=g(n,i,r,a,e[s+9],4,-640364487),a=g(a,n,i,r,e[s+12],11,-421815835),r=g(r,a,n,i,e[s+15],16,530742520),n=y(n,i=g(i,r,a,n,e[s+2],23,-995338651),r,a,e[s+0],6,-198630844),a=y(a,n,i,r,e[s+7],10,1126891415),r=y(r,a,n,i,e[s+14],15,-1416354905),i=y(i,r,a,n,e[s+5],21,-57434055),n=y(n,i,r,a,e[s+12],
1006,1700485571),a=y(a,n,i,r,e[s+3],10,-1894986606),r=y(r,a,n,i,e[s+10],15,-1051523),i=y(i,r,a,n,e[s+1],21,-2054922799),n=y(n,i,r,a,e[s+8],6,1873313359),a=y(a,n,i,r,e[s+15],10,-30611744),r=y(r,a,n,i,e[s+6],15,-1560198380),i=y(i,r,a,n,e[s+13],21,1309151649),n=y(n,i,r,a,e[s+4],6,-145523070),a=y(a,n,i,r,e[s+11],10,-1120210379),r=y(r,a,n,i,e[s+2],15,718787259),i=y(i,r,a,n,e[s+9],21,-343485551),n=v(n,o),i=v(i,l),r=v(r,u),a=v(a,c)}return Array(n,i,r,a)}function h(e,t,n,i,r,a){return v((t=v(v(t,e),v(i,a)))<<r|t>>>32-r,n)}function f(e,t,n,i,r,a,s){return h(t&n|~t&i,e,t,r,a,s)}function m(e,t,n,i,r,a,s){return h(t&i|n&~i,e,t,r,a,s)}function g(e,t,n,i,r,a,s){return h(t^n^i,e,t,r,a,s)}function y(e,t,n,i,r,a,s){return h(n^(t|~i),e,t,r,a,s)}function v(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}H(p,"n"),H(h,"s"),H(f,"c"),H(m,"d"),H(g,"h"),H(y,"p"),H(v,"g"),t.exports=function(e){return d.hash(e,p,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,n){(function(e,n,i,r,a,s,o,l,u){t.exports=function(e){for(var t,n=new Array(e),i=0;i<e;i++)0==(3&i)&&(t=4294967296*Math.random()),n[i]=t>>>((3&i)<<3)&255;return n}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,n){(function(n,i,r,a,s,o,l,u,c){var d=e("./helpers");function p(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,i,r,a=Array(80),s=1732584193,o=-271733879,l=-1732584194,u=271733878,c=-1009589776,d=0;d<e.length;d+=16){for(var p=s,m=o,g=l,y=u,v=c,b=0;b<80;
100b++){a[b]=b<16?e[d+b]:f(a[b-3]^a[b-8]^a[b-14]^a[b-16],1);var _=h(h(f(s,5),(_=o,i=l,r=u,(n=b)<20?_&i|~_&r:!(n<40)&&n<60?_&i|_&r|i&r:_^i^r)),h(h(c,a[b]),(n=b)<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514));c=u,u=l,l=f(o,30),o=s,s=_}s=h(s,p),o=h(o,m),l=h(l,g),u=h(u,y),c=h(c,v)}return Array(s,o,l,u,c)}function h(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function f(e,t){return e<<t|e>>>32-t}H(p,"u"),H(h,"m"),H(f,"v"),t.exports=function(e){return d.hash(e,p,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,n){(function(n,i,r,a,s,o,l,u,c){function d(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function p(e,t){var n,i=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),r=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),a=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var s,o,l=0;l<e.length;l+=16){for(var u=r[0],c=r[1],p=r[2],h=r[3],g=r[4],y=r[5],v=r[6],b=r[7],_=0;_<64;_++)a[_]=_<16?e[_+l]:d(d(d((o=a[_-2],f(o,17)^f(o,19)^m(o,10)),a[_-7]),(o=a[_-15],f(o,7)^f(o,18)^m(o,3))),a[_-16]),n=d(d(d(d(b,f(o=g,6)^f(o,11)^f(o,25)),g&y^~g&v),i[_]),a[_]),s=d(f(s=u,2)^f(s,13)^f(s,22),u&c^u&p^c&p),b=v,v=y,y=g,g=d(h,n),h=p,p=c,c=u,u=d(n,s);r[0]=d(u,r[0]),r[1]=d(c,r[1]),r[2]=d(p,r[2]),r[3]=d(h,r[3]),r[4]=d(g,r[4]),r[5]=d(y,r[5]),r[6]=d(v,r[6]),r[7]=d(b,r[7])}return r}H(d,"b"),H(p,"o");var h=e("./helpers"),f=H((function(e,t){return e>>>t|e<<32-t}),"m"),m=H((function(e,t){return e>>>t}),"v");t.exports=function(e){return h.hash(e,p,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,n){(function(e,t,i,r,a,s,o,l,u){n.read=function(e,t,n,i,r){var a,s,o=8*r-i-1,l=(1<<o)-1,u=l>>1,c=-7,d=n?r-1:0,p=n?-1:1;for(r=e[t+d],d+=p,a=r&(1<<-c)-1,r>>=-c,c+=o;0<c;a=256*a+e[t+d],d+=p,c-=8);for(s=a&(1<<-c)-1,a>>=-c,c+=i;0<c;s=256*s+e[t+d],d+=p,c-=8);if(0===a)a=1-u;else{if(a===l)return s?NaN:1/0*(r?-1:1);s+=Math.pow(2,i),a-=u}return(r?-1:1)*s*Math.pow(2,a-i)},n.write=function(e,t,n,i,r,a){var s,o,l=8*a-r-1,u=(1<<l)-1,c=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:a-1,h=i?1:-1;for(a=t<0||0===t&&1/t<0?1:0,t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(i=Math.pow(2,-s))<1&&(s--,i*=2),2<=(t+=1<=s+c?d/i:d*Math.pow(2,1-c))*i&&(s++,i/=2),u<=s+c?(o=0,s=u):1<=s+c?(o=(t*i-1)*Math.pow(2,r),s+=c):(o=t*Math.pow(2,c-1)*Math.pow(2,r),s=0));8<=r;e[n+p]=255&o,p+=h,o/=256,r-=8);for(s=s<<r|o,l+=r;0<l;e[n+p]=255&s,p+=h,s/=256,l-=8);e[n+p-h]|=128*a}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(e,t,n){(function(e,n,i,r,a,s,o,l,u){var c,d,p;function h(){}H(h,"a"),(e=t.exports={}).nextTick=(d="undefined"!=typeof window&&window.setImmediate,p="undefined"!=typeof window&&window.postMessage&&window.addEventListener,d?function(e){return window.setImmediate(e)}:p?(c=[],window.addEventListener("message",(function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<c.length&&c.shift()())}),!0),function(e){c.push(e),window.postMessage("process-tick","*")}):function(e){setTimeout(e,0)}),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=h,e.addListener=h,e.once=h,e.off=h,e.removeListener=h,e.removeAllListeners=h,e.emit=h,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)),GMe.exports}H(KMe,"requireObject_hash");var YMe=KMe();const ZMe="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,XMe=globalThis,QMe="10.57.0";function JMe(){return eRe(XMe),XMe}function eRe(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||QMe,t[QMe]=t[QMe]||{}}function tRe(e,t,n=XMe){const i=n.__SENTRY__=n.__SENTRY__||{},r=i[QMe]=i[QMe]||{};return r[e]||(r[e]=t())}H(JMe,"getMainCarrier$1"),H(eRe,"getSentryCarrier$1"),H(tRe,"getGlobalSingleton$2");const nRe=["debug","info","warn","error","log","assert","trace"],iRe="Sentry Logger ",rRe={};function aRe(e){if(!("console"in XMe))return e();const t=XMe.console,n={},i=Object.keys(rRe);
100i.forEach((e=>{const i=rRe[e];n[e]=t[e],t[e]=i}));try{return e()}finally{i.forEach((e=>{t[e]=n[e]}))}}function sRe(){hRe().enabled=!0}function oRe(){hRe().enabled=!1}function lRe(){return hRe().enabled}function uRe(...e){pRe("log",...e)}function cRe(...e){pRe("warn",...e)}function dRe(...e){pRe("error",...e)}function pRe(e,...t){ZMe&&lRe()&&aRe((()=>{XMe.console[e](`${iRe}[${e}]:`,...t)}))}function hRe(){return ZMe?tRe("loggerSettings",(()=>({enabled:!1}))):{enabled:!1}}H(aRe,"consoleSandbox$2"),H(sRe,"enable$2"),H(oRe,"disable$2"),H(lRe,"isEnabled$2"),H(uRe,"log$2"),H(cRe,"warn$5"),H(dRe,"error$4"),H(pRe,"_maybeLog$2"),H(hRe,"_getLoggerSettings$2");const fRe={enable:sRe,disable:oRe,isEnabled:lRe,log:uRe,warn:cRe,error:dRe},mRe=50,gRe="?",yRe=/\(error: (.*)\)/,vRe=/captureMessage|captureException/;function bRe(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0,i=0)=>{const r=[],a=e.split("\n");for(let s=n;s<a.length;s++){let e=a[s];e.length>1024&&(e=e.slice(0,1024));const n=yRe.test(e)?e.replace(yRe,"$1"):e;if(!n.includes("Error: ")){for(const e of t){const t=e(n);if(t){r.push(t);break}}if(r.length>=mRe+i)break}}return wRe(r.slice(i))}}function _Re(e){return Array.isArray(e)?bRe(...e):e}function wRe(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(SRe(t).function||"")&&t.pop(),t.reverse(),vRe.test(SRe(t).function||"")&&(t.pop(),vRe.test(SRe(t).function||"")&&t.pop()),t.slice(0,mRe).map((e=>B(F({},e),{filename:e.filename||SRe(t).filename,function:e.function||gRe})))}function SRe(e){return e[e.length-1]||{}}H(bRe,"createStackParser"),H(_Re,"stackParserFromStackParserOptions"),H(wRe,"stripSentryFramesAndReverse"),H(SRe,"getLastStackFrame");const CRe="<anonymous>";function kRe(e){try{return e&&"function"==typeof e&&e.name||CRe}catch(tvt){return CRe}}function xRe(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(tvt){return}}}H(kRe,"getFunctionName$1"),H(xRe,"getFramesFromEvent");const TRe={},ERe={};function ARe(e,t){return TRe[e]=TRe[e]||[],TRe[e].push(t),()=>{const n=TRe[e];if(n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}function LRe(e,t){if(!ERe[e]){ERe[e]=!0;try{t()}catch(tvt){ZMe&&fRe.error(`Error while instrumenting ${e}`,tvt)}}}function IRe(e,t){const n=e&&TRe[e];if(n)for(const i of n)try{i(t)}catch(tvt){ZMe&&fRe.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${kRe(i)}\nError:`,tvt)}}H(ARe,"addHandler$1"),H(LRe,"maybeInstrument$1"),H(IRe,"triggerHandlers$1");let $Re=null;function DRe(e){const t="error";ARe(t,e),LRe(t,PRe)}function PRe(){$Re=XMe.onerror,XMe.onerror=function(e,t,n,i,r){return IRe("error",{column:i,error:r,line:n,msg:e,url:t}),!!$Re&&$Re.apply(this,arguments)},XMe.onerror.__SENTRY_INSTRUMENTED__=!0}H(DRe,"addGlobalErrorInstrumentationHandler"),H(PRe,"instrumentError");let ORe=null;function MRe(e){const t="unhandledrejection";ARe(t,e),LRe(t,RRe)}function RRe(){ORe=XMe.onunhandledrejection,XMe.onunhandledrejection=function(e){return IRe("unhandledrejection",e),!ORe||ORe.apply(this,arguments)},XMe.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}H(MRe,"addGlobalUnhandledRejectionInstrumentationHandler"),H(RRe,"instrumentUnhandledRejection");const NRe=Object.prototype.toString;function FRe(e){switch(NRe.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return ZRe(e,Error)}}function BRe(e,t){return NRe.call(e)===`[object ${t}]`}function HRe(e){return BRe(e,"ErrorEvent")}function jRe(e){return BRe(e,"DOMError")}function URe(e){return BRe(e,"DOMException")}function VRe(e){return BRe(e,"String")}function qRe(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function zRe(e){return null===e||qRe(e)||"object"!=typeof e&&"function"!=typeof e}function WRe(e){return BRe(e,"Object")}function GRe(e){return"undefined"!=typeof Event&&ZRe(e,Event)}function KRe(e){return BRe(e,"RegExp")}function YRe(e){return Boolean((null==e?void 0:e.then)&&"function"==typeof e.then)}function ZRe(e,t){try{return e instanceof t}catch(tvt){return!1}}function XRe(e){return"undefined"!=typeof Request&&ZRe(e,Request)}function QRe(e,t,n){if(!(t in e))return;const i=e[t];if("function"!=typeof i)return;const r=n(i);"function"==typeof r&&eNe(r,i);try{e[t]=r}catch(tvt){ZMe&&fRe.log(`Failed to replace method "${t}" in object`,e)}}function JRe(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(tvt){ZMe&&fRe.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function eNe(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,JRe(e,"__sentry_original__",t)}catch(tvt){}}function tNe(e){return e.__sentry_original__}function nNe(e){if(FRe(e))return F({message:e.message,name:e.name,stack:e.stack},iNe(e));if(GRe(e)){const{type:t,target:n,currentTarget:i,detail:r}=e;return F(F({type:t,target:n,currentTarget:i},r?{detail:r}:{}),iNe(e))}return e}function iNe(e){return"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e)):{}}function rNe(e){const t=Object.keys(nNe(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let aNe;function sNe(e){if(void 0!==aNe)return aNe?aNe(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=XMe;return t in n&&"function"==typeof n[t]?(aNe=n[t],aNe(e)):(aNe=null,e())}function oNe(){return sNe((()=>Math.random()))}function lNe(){return sNe((()=>Date.now()))}
100H(FRe,"isError"),H(BRe,"isBuiltin$2"),H(HRe,"isErrorEvent$1"),H(jRe,"isDOMError"),H(URe,"isDOMException"),H(VRe,"isString$4"),H(qRe,"isParameterizedString"),H(zRe,"isPrimitive$2"),H(WRe,"isPlainObject$3"),H(GRe,"isEvent"),H(KRe,"isRegExp$1"),H(YRe,"isThenable$1"),H(ZRe,"isInstanceOf"),H(XRe,"isRequest"),H(QRe,"fill$1"),H(JRe,"addNonEnumerableProperty$2"),H(eNe,"markFunctionWrapped$1"),H(tNe,"getOriginalFunction"),H(nNe,"convertToPlainObject"),H(iNe,"getOwnProperties"),H(rNe,"extractExceptionKeysForMessage"),H(sNe,"withRandomSafeContext$2"),H(oNe,"safeMathRandom$2"),H(lNe,"safeDateNow$2");const uNe=Symbol.for("sentry.skipNormalization"),cNe=Symbol.for("sentry.overrideNormalizationDepth");function dNe(e){return Boolean(e[uNe])}function pNe(e){const t=e[cNe];return"number"==typeof t?t:void 0}let hNe,fNe;function mNe(e){hNe=e}function gNe(e,t=100,n=1/0){try{return vNe("",e,t,n)}catch(i){return{ERROR:`**non-serializable** (${i})`}}}function yNe(e,t=3,n=102400){const i=gNe(e,t);return SNe(i)>n?yNe(e,t-1,n):i}function vNe(e,t,n=1/0,i=1/0,r=CNe()){const[a,s]=r;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const o=bNe(e,t);if(!o.startsWith("[object "))return o;if(dNe(t))return t;const l=pNe(t),u=void 0!==l?l:n;if(0===u)return o.replace("object ","");if(a(t))return"[Circular ~]";const c=t;if(c&&"function"==typeof c.toJSON)try{return vNe("",c.toJSON(),u-1,i,r)}catch(tvt){}const d=Array.isArray(t)?[]:{};let p=0;const h=nNe(t);for(const f in h){if(!Object.prototype.hasOwnProperty.call(h,f))continue;if(p>=i){d[f]="[MaxProperties ~]";break}const e=h[f];d[f]=vNe(f,e,u-1,i,r),p++}return s(t),d}function bNe(e,t){try{if(hNe){const e=hNe(t);if(e)return e}if("undefined"!=typeof global&&t===global)return"[Global]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${kRe(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;return`[object ${_Ne(t)}]`}catch(n){return`**non-serializable** (${n})`}}function _Ne(e){const t=Object.getPrototypeOf(e);return(null==t?void 0:t.constructor)?t.constructor.name:"null prototype"}function wNe(e){return~-encodeURI(e).split(/%..|./).length}function SNe(e){return wNe(JSON.stringify(e))}function CNe(){const e=new WeakSet;function t(t){return!!e.has(t)||(e.add(t),!1)}function n(t){e.delete(t)}return H(t,"memoize"),H(n,"unmemoize"),[t,n]}function kNe(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function xNe(e,t){if(!Array.isArray(e))return"";const n=[];for(let i=0;i<e.length;i++){const t=e[i];zRe(t)?n.push(String(t)):t instanceof Error?n.push(t.message?`${t.name}: ${t.message}`:t.name):n.push(bNe(0,t))}return n.join(t)}function TNe(e,t,n=!1){return!!VRe(e)&&(KRe(t)?t.test(e):VRe(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}function ENe(e,t=[],n=!1){for(const i of t)if(TNe(e,i,n))return!0;return!1}function ANe(){const e=XMe;return e.crypto||e.msCrypto}function LNe(){return 16*oNe()}function INe(e=ANe()){try{if(null==e?void 0:e.randomUUID)return sNe((()=>e.randomUUID())).replace(/-/g,"")}catch(tvt){}return fNe||(fNe="10000000100040008000100000000000"),fNe.replace(/[018]/g,(e=>(e^(15&LNe())>>e/4).toString(16)))}function $Ne(e){var t,n;return null==(n=null==(t=e.exception)?void 0:t.values)?void 0:n[0]}function DNe(e){const{message:t,event_id:n}=e;if(t)return t;const i=$Ne(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function PNe(e,t,n){const i=e.exception=e.exception||{},r=i.values=i.values||[],a=r[0]=r[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function ONe(e,t){const n=$Ne(e);if(!n)return;const i=n.mechanism;if(n.mechanism=F(F(F({},{type:"generic",handled:!0}),i),t),t&&"data"in t){const e=F(F({},null==i?void 0:i.data),t.data);n.mechanism.data=e}}function MNe(e){if(RNe(e))return!0;try{JRe(e,"__sentry_captured__",!0)}catch(tvt){}return!1}function RNe(e){try{return e.__sentry_captured__}catch(tvt){}}H(dNe,"hasSkipNormalizationHint"),H(pNe,"getNormalizationDepthOverrideHint"),H(mNe,"setNormalizeStringifier"),H(gNe,"normalize"),H(yNe,"normalizeToSize"),H(vNe,"visit"),H(bNe,"stringifyValue"),H(_Ne,"getConstructorName$1"),H(wNe,"utf8Length"),H(SNe,"jsonSize"),H(CNe,"memoBuilder"),H(kNe,"truncate$2"),H(xNe,"safeJoin"),H(TNe,"
100isMatchingPattern"),H(ENe,"stringMatchesSomePattern"),H(ANe,"getCrypto$2"),H(LNe,"getRandomByte$2"),H(INe,"uuid4$2"),H($Ne,"getFirstException"),H(DNe,"getEventDescription"),H(PNe,"addExceptionTypeValue"),H(ONe,"addExceptionMechanism"),H(MNe,"checkOrSetAlreadyCaught"),H(RNe,"isAlreadyCaptured");const NNe=1e3;function FNe(){return lNe()/NNe}function BNe(){const{performance:e}=XMe;if(!(null==e?void 0:e.now)||!e.timeOrigin)return FNe;const t=e.timeOrigin;return()=>(t+sNe((()=>e.now())))/NNe}let HNe;function jNe(){return(null!=HNe?HNe:HNe=BNe())()}function UNe(e){const t=jNe(),n={sid:INe(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:H((()=>zNe(n)),"toJSON")};return e&&VNe(n,e),n}function VNe(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||jNe(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:INe()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function qNe(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),VNe(e,n)}function zNe(e){return{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function WNe(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;const i=F({},e);for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=WNe(i[r],t[r],n-1));return i}function GNe(){return INe()}function KNe(){return INe().substring(16)}function YNe(e){try{const t=XMe.WeakRef;if("function"==typeof t)return new t(e)}catch(tvt){}return e}function ZNe(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch(tvt){return}return e}}H(FNe,"dateTimestampInSeconds$2"),H(BNe,"createUnixTimestampInSecondsFunc$2"),H(jNe,"timestampInSeconds$2"),H(UNe,"makeSession"),H(VNe,"updateSession$1"),H(qNe,"closeSession"),H(zNe,"sessionToJSON"),H(WNe,"merge$2"),H(GNe,"generateTraceId$1"),H(KNe,"generateSpanId"),H(YNe,"makeWeakRef$1"),H(ZNe,"derefWeakRef$1");const XNe="_sentrySpan";function QNe(e,t){t?JRe(e,XNe,YNe(t)):delete e[XNe]}function JNe(e){return ZNe(e[XNe])}H(QNe,"_setSpanForScope$1"),H(JNe,"_getSpanForScope$1");let eFe=(H(m=class{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:GNe(),sampleRand:oNe()}}clone(){const e=new m;return e._breadcrumbs=[...this._breadcrumbs],e._tags=F({},this._tags),e._attributes=F({},this._attributes),e._extra=F({},this._extra),e._contexts=F({},this._contexts),this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata=F({},this._sdkProcessingMetadata),e._propagationContext=F({},this._propagationContext),e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,QNe(e,JNe(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&VNe(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags=F(F({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes=F(F({},this._attributes),e),this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra=F(F({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,t){return this._extra=B(F({},this._extra),{[e]:t}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,n=t instanceof m?t.getScopeData():WRe(t)?e:void 0,{tags:i,attributes:r,extra:a,user:s,contexts:o,level:l,fingerprint:u=[],propagationContext:c,conversationId:d}=n||{};return this._tags=F(F({},this._tags),i),this._attributes=F(F({},this._attributes),r),this._extra=F(F({},this._extra),a),this._contexts=F(F({},this._contexts),o),s&&Object.keys(s).length&&(this._user=s),l&&(this._level=l),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,QNe(this,void 0),this._attachments=[],this.setPropagationContext({traceId:GNe(),sampleRand:oNe()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){var n;const i="number"==typeof t?t:100;if(i<=0)return this;const r=B(F({timestamp:FNe()},e),{message:e.message?kNe(e.message,2048):e.message});return this._breadcrumbs.push(r),this._breadcrumbs.length>i&&(this._breadcrumbs=this._breadcrumbs.slice(-i),null==(n=this._client)||n.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:JNe(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=WNe(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=(null==t?void 0:t.event_id)||INe();if(!this._client)return ZMe&&fRe.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(e,B(F({originalException:e,syntheticException:i},t),{event_id:n}),this),n}captureMessage(e,t,n){var i;const r=(null==n?void 0:n.event_id)||INe();if(!this._client)return ZMe&&fRe.warn("No client configured on scope - will not capture message!"),r;const a=null!=(i=null==n?void 0:n.syntheticException)?i:new Error(e);return this._client.captureMessage(e,t,B(F({originalException:e,syntheticException:a},n),{event_id:r}),this),r}
100captureEvent(e,t){const n=e.event_id||(null==t?void 0:t.event_id)||INe();return this._client?(this._client.captureEvent(e,B(F({},t),{event_id:n}),this),n):(ZMe&&fRe.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}},"Scope"),m);function tFe(){return tRe("defaultCurrentScope",(()=>new eFe))}function nFe(){return tRe("defaultIsolationScope",(()=>new eFe))}H(tFe,"getDefaultCurrentScope$1"),H(nFe,"getDefaultIsolationScope$1");const iFe=H((e=>e instanceof Promise&&!e[rFe]),"isActualPromise$1"),rFe=Symbol("chained PromiseLike"),aFe=H(((e,t,n)=>{const i=e.then((e=>(t(e),e)),(e=>{throw n(e),e}));return iFe(i)&&iFe(e)?i:sFe(e,i)}),"chainAndCopyPromiseLike$1"),sFe=H(((e,t)=>{if(!t)return e;let n=!1;for(const i in e){if(i in t)continue;n=!0;const r=e[i];"function"==typeof r?Object.defineProperty(t,i,{value:H(((...t)=>r.apply(e,t)),"value"),enumerable:!0,configurable:!0,writable:!0}):t[i]=r}return n&&Object.assign(t,{[rFe]:!0}),t}),"copyProps$1");let oFe=(H(g=class{constructor(e,t){let n,i;n=e||new eFe,i=t||new eFe,this._stack=[{scope:n}],this._isolationScope=i}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(tvt){throw this._popScope(),tvt}return YRe(n)?aFe(n,(()=>this._popScope()),(()=>this._popScope())):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}},"AsyncContextStack"),g);function lFe(){const e=eRe(JMe());return e.stack=e.stack||new oFe(tFe(),nFe())}function uFe(e){return lFe().withScope(e)}function cFe(e,t){const n=lFe();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function dFe(e){return lFe().withScope((()=>e(lFe().getIsolationScope())))}function pFe(){return{withIsolationScope:dFe,withScope:uFe,withSetScope:cFe,withSetIsolationScope:H(((e,t)=>dFe(t)),"withSetIsolationScope"),getCurrentScope:H((()=>lFe().getScope()),"getCurrentScope"),getIsolationScope:H((()=>lFe().getIsolationScope()),"getIsolationScope")}}function hFe(e){const t=eRe(e);return t.acs?t.acs:pFe()}function fFe(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")}function mFe(e,t){var n;const{value:i,unit:r}=fFe(e)?e:{value:e,unit:void 0},a=yFe(i),s=r&&"string"==typeof r?{unit:r}:{};if(a)return F(F({},a),s);if(!t||"skip-undefined"===t&&void 0===i)return;let o="";try{o=null!=(n=JSON.stringify(i))?n:""}catch(tvt){}return F({value:o,type:"string"},s)}function gFe(e,t=!1){const n={};for(const[i,r]of Object.entries(null!=e?e:{})){const e=mFe(r,t);e&&(n[i]=e)}return n}function yFe(e){if(Array.isArray(e))return{value:e,type:"array"};const t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";return t?{value:e,type:t}:void 0}function vFe(){return hFe(JMe()).getCurrentScope()}function bFe(){return hFe(JMe()).getIsolationScope()}function _Fe(){return tRe("globalScope",(()=>new eFe))}function wFe(...e){const t=hFe(JMe());if(2===e.length){const[n,i]=e;return n?t.withSetScope(n,i):t.withScope(i)}return t.withScope(e[0])}function SFe(){return vFe().getClient()}function CFe(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:i,propagationSpanId:r}=t,a={trace_id:n,span_id:r||KNe()};return i&&(a.parent_span_id=i),a}H(lFe,"getAsyncContextStack$1"),H(uFe,"withScope$2"),H(cFe,"withSetScope$1"),H(dFe,"withIsolationScope$1"),H(pFe,"getStackAsyncContextStrategy$1"),H(hFe,"getAsyncContextStrategy$1"),H(fFe,"isAttributeObject"),H(mFe,"attributeValueToTypedAttributeValue"),H(gFe,"serializeAttributes"),H(yFe,"getTypedAttributeValue"),H(vFe,"getCurrentScope$2"),H(bFe,"getIsolationScope"),H(_Fe,"getGlobalScope"),H(wFe,"withScope$1"),H(SFe,"getClient$1"),H(CFe,"getTraceContextFromScope");const kFe="sentry.source",xFe="sentry.sample_rate",TFe="sentry.previous_trace_sample_rate",EFe="sentry.op",AFe="sentry.origin",LFe="sentry.custom_span_name",IFe="sentry.profile_id",$Fe="sentry.exclusive_time",DFe=0,PFe=1,OFe="_sentryScope",MFe="_sentryIsolationScope";function RFe(e,t,n){e&&(JRe(e,MFe,YNe(n)),JRe(e,OFe,t))}function NFe(e){const t=e;return{scope:t[OFe],isolationScope:ZNe(t[MFe])}}H(RFe,"setCapturedScopesOnSpan"),H(NFe,"getCapturedScopesOnSpan");const FFe="sentry-";function BFe(e){const t=HFe(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.startsWith(FFe)){e[t.slice(FFe.length)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function HFe(e){if(e&&(VRe(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=jFe(t);
100return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):jFe(e)}function jFe(e){return e.split(",").map((e=>{const t=e.indexOf("=");if(-1===t)return[];return[e.slice(0,t),e.slice(t+1)].map((e=>{try{return decodeURIComponent(e.trim())}catch(tvt){return}}))})).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}H(BFe,"baggageHeaderToDynamicSamplingContext"),H(HFe,"parseBaggageHeader"),H(jFe,"baggageHeaderToObject");const UFe=/^o(\d+)\./,VFe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function qFe(e){return"http"===e||"https"===e}function zFe(e,t=!1){const{host:n,path:i,pass:r,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&r?`:${r}`:""}@${n}${a?`:${a}`:""}/${i?`${i}/`:i}${s}`}function WFe(e){const t=VFe.exec(e);if(!t)return void aRe((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,i,r="",a="",s="",o=""]=t.slice(1);let l="",u=o;const c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){const e=u.match(/^\d+/);e&&(u=e[0])}return GFe({host:a,pass:r,path:l,projectId:u,port:s,protocol:n,publicKey:i})}function GFe(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function KFe(e){if(!ZMe)return!0;const{port:t,projectId:n,protocol:i}=e;return!["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(fRe.error(`Invalid Sentry Dsn: ${t} missing`),!0)))&&(n.match(/^\d+$/)?qFe(i)?!t||!isNaN(parseInt(t,10))||(fRe.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(fRe.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(fRe.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}function YFe(e){const t=e.match(UFe);return null==t?void 0:t[1]}function ZFe(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let i;return t.orgId?i=String(t.orgId):n&&(i=YFe(n)),i}function XFe(e){const t="string"==typeof e?WFe(e):GFe(e);if(t&&KFe(t))return t}function QFe(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}H(qFe,"isValidProtocol"),H(zFe,"dsnToString"),H(WFe,"dsnFromString"),H(GFe,"dsnFromComponents"),H(KFe,"validateDsn"),H(YFe,"extractOrgIdFromDsnHost"),H(ZFe,"extractOrgIdFromClient"),H(XFe,"makeDsn"),H(QFe,"parseSampleRate");const JFe=1;let eBe=!1;function tBe(e){const{spanId:t,traceId:n}=e.spanContext(),{data:i,op:r,parent_span_id:a,status:s,origin:o,links:l}=oBe(e);return{parent_span_id:a,span_id:t,trace_id:n,data:i,op:r,status:s,origin:o,links:l}}function nBe(e){const{spanId:t,traceId:n,isRemote:i}=e.spanContext(),r=i?t:oBe(e).parent_span_id,a=NFe(e).scope;return{parent_span_id:r,span_id:i?(null==a?void 0:a.getPropagationContext().propagationSpanId)||KNe():t,trace_id:n}}function iBe(e){return e&&e.length>0?e.map((e=>{var t=e,{context:n}=t,i=n,{spanId:r,traceId:a,traceFlags:s}=i,o=j(i,["spanId","traceId","traceFlags"]),{attributes:l}=t;return F({span_id:r,trace_id:a,sampled:s===JFe,attributes:l},o)})):void 0}function rBe(e){return(null==e?void 0:e.length)?e.map((({context:{spanId:e,traceId:t,traceFlags:n},attributes:i})=>({span_id:e,trace_id:t,sampled:n===JFe,attributes:i}))):void 0}function aBe(e){return"number"==typeof e?sBe(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?sBe(e.getTime()):jNe()}function sBe(e){return e>9999999999?e/1e3:e}function oBe(e){if(dBe(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(cBe(e)){const{attributes:i,startTime:r,name:a,endTime:s,status:o,links:l}=e;return{span_id:t,trace_id:n,data:i,description:a,parent_span_id:lBe(e),start_timestamp:aBe(r),timestamp:aBe(s)||void 0,status:hBe(o),op:i[EFe],origin:i[AFe],links:iBe(l)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function lBe(e){var t;return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?null==(t=e.parentSpanContext)?void 0:t.spanId:void 0}function uBe(e){var t;return B(F({},e),{attributes:gFe(e.attributes),links:null==(t=e.links)?void 0:t.map((e=>B(F({},e),{attributes:gFe(e.attributes)})))})}function cBe(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function dBe(e){return"function"==typeof e.getSpanJSON}function pBe(e){const{traceFlags:t}=e.spanContext();return t===JFe}function hBe(e){if(e&&e.code!==DFe)return e.code===PFe?"ok":e.message||"internal_error"}function fBe(e){return e&&e.code!==PFe&&e.code!==DFe&&"cancelled"!==e.message?"error":"ok"}H(tBe,"spanToTransactionTraceContext"),H(nBe,"spanToTraceContext"),H(iBe,"convertSpanLinksForEnvelope"),H(rBe,"getStreamedSpanLinks"),H(aBe,"spanTimeInputToSeconds"),H(sBe,"ensureTimestampInSeconds"),H(oBe,"spanToJSON"),H(lBe,"getOtelParentSpanId"),H(uBe,"streamedSpanJsonToSerializedSpan"),H(cBe,"spanIsOpenTelemetrySdkTraceBaseSpan"),H(dBe,"spanIsSentrySpan"),H(pBe,"spanIsSampled"),H(hBe,"getStatusMessage"),H(fBe,"getSimpleStatusMessage");const mBe="_sentryChildSpans",gBe="_sentryRootSpan";function yBe(e,t){const n=e[gBe]||e;JRe(t,gBe,n),e[mBe]?e[mBe].add(t):JRe(e,mBe,new Set([t]))}function vBe(e){const t=new Set;function n(e){if(!t.has(e)&&pBe(e)){t.add(e);const i=e[mBe]?Array.from(e[mBe]):[];for(const e of i)n(e)}}return H(n,"addSpanChildren"),n(e),Array.from(t)}H(yBe,"addChildSpanToSpan"),H(vBe,"getSpanDescendants");const bBe=_Be;function _Be(e){return e[gBe]||e}function wBe(){const e=hFe(JMe());return e.getActiveSpan?e.getActiveSpan():JNe(vFe())}function SBe(){eBe||(aRe((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")})),eBe=!0)}function CBe(e){var t;if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const n=e||(null==(t=SFe())?void 0:t.getOptions());return!(!n||null==n.tracesSampleRate&&!n.tracesSampler)}function kBe(e){fRe.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function xBe(e,t){if(!(null==t?void 0:t.length))return!1;for(const n of t){if(ABe(n)){if(e.description&&TNe(e.description,n))return ZMe&&kBe(e),!0;continue}const t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;const i=!n.name||e.description&&TNe(e.description,n.name),r=!n.op||e.op&&TNe(e.op,n.op),a=!n.attributes||Object.entries(n.attributes).every((([t,n])=>{var i;return TBe(null==(i=e.attributes)?void 0:i[t],n)}));if(i&&r&&a)return ZMe&&kBe(e),!0}return!1}function TBe(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?TNe(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):e===t}function EBe(e,t){const n=t.parent_span_id,i=t.span_id;if(n)for(const r of e)r.parent_span_id===i&&(r.parent_span_id=n)}function ABe(e){return"string"==typeof e||e instanceof RegExp}H(_Be,"INTERNAL_getSegmentSpan"),H(wBe,"getActiveSpan"),H(SBe,"showSpanDropWarning"),H(CBe,"hasSpansEnabled$1"),H(kBe,"logIgnoredSpan"),H(xBe,"shouldIgnoreSpan"),H(TBe,"_matchesAttributeValue"),H(EBe,"reparentChildSpans"),H(ABe,"isStringOrRegExp");const LBe="production",IBe="_frozenDsc";function $Be(e,t){JRe(e,IBe,t)}function DBe(e,t){const n=t.getOptions(),{publicKey:i}=t.getDsn()||{},r={environment:n.environment||LBe,release:n.release,public_key:i,trace_id:e,org_id:ZFe(t)};return t.emit("createDsc",r),r}function PBe(e,t){const n=t.getPropagationContext();return n.dsc||DBe(n.traceId,e)}function OBe(e){var t,n,i,r,a;const s=SFe();if(!s)return{};const o=bBe(e),l=oBe(o),u=l.data,c=o.spanContext().traceState,d=null!=(n=null!=(t=null==c?void 0:c.get("sentry.sample_rate"))?t:u[xFe])?n:u[TFe];function p(e){return"number"!=typeof d&&"string"!=typeof d||(e.sample_rate=`${d}`),e}
100H(p,"applyLocalSampleRateToDsc");const h=o[IBe];if(h)return p(h);const f=null==c?void 0:c.get("sentry.dsc"),m=f&&BFe(f);if(m)return p(m);const g=DBe(e.spanContext().traceId,s),y=null!=(i=u[kFe])?i:u["sentry.span.source"],v=l.description;return"url"!==y&&v&&(g.transaction=v),CBe()&&(g.sampled=String(pBe(o)),g.sample_rand=null!=(a=null==c?void 0:c.get("sentry.sample_rand"))?a:null==(r=NFe(o).scope)?void 0:r.getPropagationContext().sampleRand.toString()),p(g),s.emit("createDsc",g,o),g}H($Be,"freezeDscOnSpan"),H(DBe,"getDynamicSamplingContextFromClient"),H(PBe,"getDynamicSamplingContextFromScope"),H(OBe,"getDynamicSamplingContextFromSpan");const MBe=class{constructor(e={}){this._traceId=e.traceId||GNe(),this._spanId=e.spanId||KNe(),this.dropReason=e.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};H(MBe,"SentryNonRecordingSpan");let RBe=MBe;function NBe(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed}function FBe(e,t=[]){return[e,t]}function BBe(e,t){const[n,i]=e;return[n,[...i,t]]}function HBe(e,t){const n=e[1];for(const i of n){if(t(i,i[0].type))return!0}return!1}function jBe(e,t){return HBe(e,((e,n)=>t.includes(n)))}function UBe(e){const t=eRe(XMe);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function VBe(e){const[t,n]=e;let i=JSON.stringify(t);function r(e){"string"==typeof i?i="string"==typeof e?i+e:[UBe(i),e]:i.push("string"==typeof e?UBe(e):e)}H(r,"append");for(const a of n){const[e,t]=a;if(r(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)r(t);else{let e;try{e=JSON.stringify(t)}catch(tvt){e=JSON.stringify(gNe(t))}r(e)}}return"string"==typeof i?i:qBe(i)}function qBe(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let i=0;for(const r of e)n.set(r,i),i+=r.length;return n}function zBe(e){return[{type:"span"},e]}function WBe(e){const t="string"==typeof e.data?UBe(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}H(NBe,"isStreamedBeforeSendSpanCallback"),H(FBe,"createEnvelope"),H(BBe,"addItemToEnvelope"),H(HBe,"forEachEnvelopeItem"),H(jBe,"envelopeContainsItemType"),H(UBe,"encodeUTF8"),H(VBe,"serializeEnvelope"),H(qBe,"concatBuffers"),H(zBe,"createSpanEnvelopeItem"),H(WBe,"createAttachmentEnvelopeItem");const GBe={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function KBe(e){return e in GBe}function YBe(e){return KBe(e)?GBe[e]:e}function ZBe(e){if(!(null==e?void 0:e.sdk))return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function XBe(e,t,n,i){var r;const a=null==(r=e.sdkProcessingMetadata)?void 0:r.dynamicSamplingContext;return F(F(F({event_id:e.event_id,sent_at:new Date(lNe()).toISOString()},t&&{sdk:t}),!!n&&i&&{dsn:zFe(i)}),a&&{trace:a})}function QBe(e,t){var n,i,r,a;if(!t)return e;const s=e.sdk||{};return e.sdk=B(F({},s),{name:s.name||t.name,version:s.version||t.version,integrations:[...(null==(n=e.sdk)?void 0:n.integrations)||[],...t.integrations||[]],packages:[...(null==(i=e.sdk)?void 0:i.packages)||[],...t.packages||[]],settings:(null==(r=e.sdk)?void 0:r.settings)||t.settings?F(F({},null==(a=e.sdk)?void 0:a.settings),t.settings):void 0}),e}function JBe(e,t,n,i){const r=ZBe(n);return FBe(F(F({sent_at:new Date(lNe()).toISOString()},r&&{sdk:r}),!!i&&t&&{dsn:zFe(t)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}function eHe(e,t,n,i){const r=ZBe(n),a=e.type&&"replay_event"!==e.type?e.type:"event";QBe(e,null==n?void 0:n.sdk);const s=XBe(e,r,i,t);delete e.sdkProcessingMetadata;return FBe(s,[[{type:a},e]])}function tHe(e,t){function n(e){return!!e.trace_id&&!!e.public_key}H(n,"dscHasRequiredProps");const i=OBe(e[0]),r=null==t?void 0:t.getDsn(),a=null==t?void 0:t.getOptions().tunnel,s=F(F({sent_at:new Date(lNe()).toISOString()},n(i)&&{trace:i}),!!a&&r&&{dsn:zFe(r)}),{beforeSendSpan:o,ignoreSpans:l}=(null==t?void 0:t.getOptions())||{},u=(null==l?void 0:l.length)?e.filter((e=>{const t=oBe(e);return!xBe({description:t.description,op:t.op,attributes:t.data},l)})):e,c=e.length-u.length;c&&(null==t||t.recordDroppedEvent("before_send","span",c));const d=o?e=>{const t=oBe(e),n=NBe(o)?t:o(t);return n||(SBe(),t)}:oBe,p=[];for(const h of u){const e=d(h);e&&p.push(zBe(e))}return FBe(s,p)}function nHe(e){if(!ZMe)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:i}=oBe(e),{spanId:r}=e.spanContext(),a=pBe(e),s=bBe(e),o=s===e,l=`[Tracing] Starting ${a?"sampled":"unsampled"} ${o?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${r}`];if(i&&u.push(`parent ID: ${i}`),!o){const{op:e,description:t}=oBe(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}fRe.log(`${l}\n ${u.join("\n ")}`)}function iHe(e){if(!ZMe)return;const{description:t="< unknown name >",op:n="< unknown op >"}=oBe(e),{spanId:i}=e.spanContext(),r=`[Tracing] Finishing "${n}" ${bBe(e)===e?"root ":""}span "${t}" with ID ${i}`;fRe.log(r)}function rHe(e){if(!e||0===e.length)return;const t={};return e.forEach((e=>{const n=e.attributes||{},i=n["sentry.measurement_unit"],r=n["sentry.measurement_value"];"string"==typeof i&&"number"==typeof r&&(t[e.name]={value:r,unit:i})})),t}function aHe(e){return"stream"===e.getOptions().traceLifecycle}
100H(KBe,"_isOverriddenType"),H(YBe,"envelopeItemTypeToDataCategory"),H(ZBe,"getSdkMetadataForEnvelopeHeader"),H(XBe,"createEventEnvelopeHeaders"),H(QBe,"_enhanceEventWithSdkInfo"),H(JBe,"createSessionEnvelope"),H(eHe,"createEventEnvelope"),H(tHe,"createSpanEnvelope"),H(nHe,"logSpanStart"),H(iHe,"logSpanEnd"),H(rHe,"timedEventsToMeasurements"),H(aHe,"hasSpanStreamingEnabled");const sHe=class{constructor(e={}){this._traceId=e.traceId||GNe(),this._spanId=e.spanId||KNe(),this._startTime=e.startTimestamp||jNe(),this._links=e.links,this._attributes={},this.setAttributes(F({[AFe]:"manual",[EFe]:e.op},e.attributes)),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?JFe:0}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}updateStartTime(e){this._startTime=aBe(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(kFe,"custom"),this}end(e){this._endTime||(this._endTime=aBe(e),iHe(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[EFe],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:hBe(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[AFe],profile_id:this._attributes[IFe],exclusive_time:this._attributes[$Fe],measurements:rHe(this._events),is_segment:this._isStandaloneSpan&&bBe(this)===this||void 0,segment_id:this._isStandaloneSpan?bBe(this).spanContext().spanId:void 0,links:iBe(this._links)}}getStreamedSpanJSON(){var e,t;return{name:null!=(e=this._name)?e:"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:null!=(t=this._endTime)?t:this._startTime,is_segment:this._isStandaloneSpan||this===bBe(this),status:fBe(this._status),attributes:this._attributes,links:rBe(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){ZMe&&fRe.log("[Tracing] Adding an event to span:",e);const i=lHe(t)?t:n||jNe(),r=lHe(t)?{}:t||{},a={name:e,time:aBe(i),attributes:r};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=SFe();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));if(!(this._isStandaloneSpan||this===bBe(this)))return;if(this._isStandaloneSpan)return void(this._sampled?dHe(tHe([this],e)):(ZMe&&fRe.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));if(e&&aHe(e))return void e.emit("afterSegmentSpanEnd",this);const t=this._convertSpanToTransaction();if(t){(NFe(this).scope||vFe()).captureEvent(t)}}_convertSpanToTransaction(){var e;if(!uHe(oBe(this)))return;this._name||(ZMe&&fRe.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=NFe(this),i=null==(e=null==t?void 0:t.getScopeData().sdkProcessingMetadata)?void 0:e.normalizedRequest;if(!0!==this._sampled)return;const r=vBe(this).filter((e=>e!==this&&!cHe(e))).map((e=>oBe(e))).filter(uHe),a=this._attributes[kFe];delete this._attributes[LFe];let s=!1;r.forEach((e=>{var t;delete e.data[LFe],(null==(t=e.op)?void 0:t.startsWith("gen_ai."))&&(s=!0)}));const o=F({contexts:{trace:tBe(this)},spans:r.length>1e3?r.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:OBe(this),hasGenAiSpans:s},request:i},a&&{transaction_info:{source:a}}),l=rHe(this._events);return l&&Object.keys(l).length&&(ZMe&&fRe.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),o.measurements=l),o}};H(sHe,"SentrySpan");let oHe=sHe;function lHe(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function uHe(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}function cHe(e){return e instanceof oHe&&e.isStandaloneSpan()}function dHe(e){const t=SFe();if(!t)return;const n=e[1];n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}function pHe(e,t,n){if(!CBe(e))return[!1];let i,r;"function"==typeof e.tracesSampler?(r=e.tracesSampler(B(F({},t),{inheritOrSampleWith:H((e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e),"inheritOrSampleWith")})),i=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,i=!0);const a=QFe(r);if(void 0===a)return ZMe&&fRe.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!a)return ZMe&&fRe.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,a,i];const s=n<a;return s||ZMe&&fRe.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[s,a,i]}H(lHe,"isSpanTimeInput"),H(uHe,"isFullFinishedSpan"),H(cHe,"isStandaloneSpan"),H(dHe,"sendSpanEnvelope"),H(pHe,"sampleSpan");const hHe="__SENTRY_SUPPRESS_TRACING__";function fHe(e){const t=vHe();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=yHe(e),{forceTransaction:i,parentSpan:r}=e;return(e.scope?t=>wFe(e.scope,t):void 0!==r?e=>mHe(r,e):e=>e())((()=>{const t=vFe(),a=wHe(t,r),s=SFe();return e.onlyIfParent&&!a?(null==s||s.recordDroppedEvent("no_parent_span","span"),new RBe):gHe({parentSpan:a,spanArguments:n,forceTransaction:i,scope:t})}))}function mHe(e,t){const n=vHe();return n.withActiveSpan?n.withActiveSpan(e,t):wFe((n=>(QNe(n,e||void 0),t(n))))}function gHe({parentSpan:e,spanArguments:t,forceTransaction:n,scope:i}){var r;if(!CBe()){const i=new RBe;if(n||!e){$Be(i,F({sampled:"false",sample_rate:"0",transaction:t.name},OBe(i)))}return i}const a=SFe();if(SHe(a,t))return CHe(i)||null==a||a.recordDroppedEvent("ignored","span"),new RBe({dropReason:"ignored",traceId:null!=(r=null==e?void 0:e.spanContext().traceId)?r:i.getPropagationContext().traceId});const s=bFe();let o;if(e&&!n)o=_He(e,i,t),yBe(e,o);else if(e){const n=OBe(e),{traceId:r,spanId:a}=e.spanContext(),s=pBe(e);o=bHe(F({traceId:r,parentSpanId:a},t),i,s),$Be(o,n)}else{const{traceId:e,dsc:n,parentSpanId:r,sampled:a}=F(F({},s.getPropagationContext()),i.getPropagationContext());o=bHe(F({traceId:e,parentSpanId:r},t),i,a),n&&$Be(o,n)}return nHe(o),RFe(o,i,s),o}function yHe(e){const t=e.experimental||{},n=F({isStandalone:t.standalone},e);if(e.startTime){const t=F({},n);return t.startTimestamp=aBe(e.startTime),delete t.startTime,t}return n}function vHe(){return hFe(JMe())}function bHe(e,t,n){var i,r;const a=SFe(),s=(null==a?void 0:a.getOptions())||{},{name:o=""}=e,l={spanAttributes:F({},e.attributes),spanName:o,parentSampled:n};null==a||a.emit("beforeSampling",l,{decision:!1});const u=null!=(i=l.parentSampled)?i:n,c=l.spanAttributes,d=t.getPropagationContext(),p=CHe(t),[h,f,m]=p?[!1]:pHe(s,{name:o,parentSampled:u,attributes:c,parentSampleRate:QFe(null==(r=d.dsc)?void 0:r.sample_rate)},d.sampleRand),g=new oHe(B(F({},e),{attributes:F({[kFe]:"custom",[xFe]:void 0!==f&&m?f:void 0},c),sampled:h}));return h||!a||p||(ZMe&&fRe.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),a.recordDroppedEvent("sample_rate",aHe(a)?"span":"transaction")),a&&a.emit("spanStart",g),g}function _He(e,t,n){const{spanId:i,traceId:r}
100=e.spanContext(),a=CHe(t),s=!a&&pBe(e),o=s?new oHe(B(F({},n),{parentSpanId:i,traceId:r,sampled:s})):new RBe({traceId:r});yBe(e,o);const l=SFe();return l?(aHe(l)&&o instanceof RBe&&(e instanceof RBe&&e.dropReason?(o.dropReason=e.dropReason,l.recordDroppedEvent(e.dropReason,"span")):a||(o.dropReason="sample_rate",l.recordDroppedEvent("sample_rate","span"))),l.emit("spanStart",o),n.endTimestamp&&(l.emit("spanEnd",o),l.emit("afterSpanEnd",o)),o):o}function wHe(e,t){if(t)return t;if(null===t)return;const n=JNe(e);if(!n)return;const i=SFe();return(i?i.getOptions():{}).parentSpanIsAlwaysRootSpan?bBe(n):n}function SHe(e,t){var n;const i=null==e?void 0:e.getOptions().ignoreSpans;return!!(e&&aHe(e)&&(null==i?void 0:i.length))&&xBe({description:t.name||"",op:(null==(n=t.attributes)?void 0:n[EFe])||t.op,attributes:t.attributes},i)}function CHe(e){return!0===e.getScopeData().sdkProcessingMetadata[hHe]}function kHe(e,t){const{fingerprint:n,span:i,breadcrumbs:r,sdkProcessingMetadata:a}=t;AHe(e,t),i&&$He(e,i),DHe(e,n),LHe(e,r),IHe(e,a)}function xHe(e,t){const{extra:n,tags:i,attributes:r,user:a,contexts:s,level:o,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:c,eventProcessors:d,attachments:p,propagationContext:h,transactionName:f,span:m}=t;THe(e,"extra",n),THe(e,"tags",i),THe(e,"attributes",r),THe(e,"user",a),THe(e,"contexts",s),e.sdkProcessingMetadata=WNe(e.sdkProcessingMetadata,l,2),o&&(e.level=o),f&&(e.transactionName=f),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext=F(F({},e.propagationContext),h)}function THe(e,t,n){e[t]=WNe(e[t],n,1)}function EHe(e,t){const n=_Fe().getScopeData();return e&&xHe(n,e.getScopeData()),t&&xHe(n,t.getScopeData()),n}function AHe(e,t){const{extra:n,tags:i,user:r,contexts:a,level:s,transactionName:o}=t;Object.keys(n).length&&(e.extra=F(F({},n),e.extra)),Object.keys(i).length&&(e.tags=F(F({},i),e.tags)),Object.keys(r).length&&(e.user=F(F({},r),e.user)),Object.keys(a).length&&(e.contexts=F(F({},a),e.contexts)),s&&(e.level=s),o&&"transaction"!==e.type&&(e.transaction=o)}function LHe(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function IHe(e,t){e.sdkProcessingMetadata=F(F({},e.sdkProcessingMetadata),t)}function $He(e,t){e.contexts=F({trace:nBe(t)},e.contexts),e.sdkProcessingMetadata=F({dynamicSamplingContext:OBe(t)},e.sdkProcessingMetadata);const n=oBe(bBe(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}function DHe(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function PHe(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:i,relative:t[5]+n+i}}function OHe(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),i=n?n[1]:"text/plain",r=e.includes(";base64,"),a=e.indexOf(",");let s="";if(t&&-1!==a){const t=e.slice(a+1);s=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${i}${r?",base64":""}${s?`,${s}`:""}`}return e}function MHe(e,t){var n;const i=null!=(n=e.attributes)?n:e.attributes={};Object.entries(t).forEach((([e,t])=>{null==t||e in i||(i[e]=t)}))}H(fHe,"startInactiveSpan"),H(mHe,"withActiveSpan"),H(gHe,"createChildOrRootSpan"),H(yHe,"parseSentrySpanArguments"),H(vHe,"getAcs"),H(bHe,"_startRootSpan"),H(_He,"_startChildSpan"),H(wHe,"getParentSpan"),H(SHe,"_shouldIgnoreStreamedSpan"),H(CHe,"_isTracingSuppressed"),H(kHe,"applyScopeDataToEvent"),H(xHe,"mergeScopeData"),H(THe,"mergeAndOverwriteScopeData"),H(EHe,"getCombinedScopeData"),H(AHe,"applyDataToEvent"),H(LHe,"applyBreadcrumbsToEvent"),H(IHe,"applySdkMetadataToEvent"),H($He,"applySpanToEvent"),H(DHe,"applyFingerprintToEvent"),H(PHe,"parseUrl"),H(OHe,"stripDataUrlContent"),H(MHe,"safeSetSpanJSONAttributes");function RHe(e){return new VHe((t=>{t(e)}))}function NHe(e){return new VHe(((t,n)=>{n(e)}))}H(RHe,"resolvedSyncPromise"),H(NHe,"rejectedSyncPromise");const FHe=class e{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(t,n){return new e(((e,i)=>{this._handlers.push([!1,n=>
100{if(t)try{e(t(n))}catch(tvt){i(tvt)}else e(n)},t=>{if(n)try{e(n(t))}catch(tvt){i(tvt)}else i(t)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(t){return new e(((e,n)=>{let i,r;return this.then((e=>{r=!1,i=e,t&&t()}),(e=>{r=!0,i=e,t&&t()})).then((()=>{r?n(i):e(i)}))}))}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)}))}_runExecutor(e){const t=H(((e,t)=>{0===this._state&&(YRe(t)?t.then(n,i):(this._state=e,this._value=t,this._executeHandlers()))}),"setResult"),n=H((e=>{t(1,e)}),"resolve"),i=H((e=>{t(2,e)}),"reject");try{e(n,i)}catch(tvt){i(tvt)}}};H(FHe,"SyncPromise");let BHe,HHe,jHe,UHe,VHe=FHe;function qHe(e,t,n,i=0){try{const r=zHe(t,n,e,i);return YRe(r)?r:RHe(r)}catch(r){return NHe(r)}}function zHe(e,t,n,i){const r=n[i];if(!e||!r)return e;const a=r(F({},e),t);return ZMe&&null===a&&fRe.log(`Event processor "${r.id||"?"}" dropped event`),YRe(a)?a.then((e=>zHe(e,t,n,i+1))):zHe(a,t,n,i+1)}function WHe(e){const t=XMe._sentryDebugIds,n=XMe._debugIds;if(!t&&!n)return{};const i=t?Object.keys(t):[],r=n?Object.keys(n):[];if(UHe&&i.length===HHe&&r.length===jHe)return UHe;HHe=i.length,jHe=r.length,UHe={},BHe||(BHe={});const a=H(((t,n)=>{for(const i of t){const t=n[i],r=null==BHe?void 0:BHe[i];if(r&&UHe&&t)UHe[r[0]]=t,BHe&&(BHe[i]=[r[0],t]);else if(t){const n=e(i);for(let e=n.length-1;e>=0;e--){const r=n[e],a=null==r?void 0:r.filename;if(a&&UHe&&BHe){UHe[a]=t,BHe[i]=[a,t];break}}}}}),"processDebugIds");return t&&a(i,t),n&&a(r,n),UHe}function GHe(e,t,n,i,r,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,l=B(F({},t),{event_id:t.event_id||n.event_id||INe(),timestamp:t.timestamp||FNe()}),u=n.integrations||e.integrations.map((e=>e.name));KHe(l,e),XHe(l,u),r&&r.emit("applyFrameMetadata",t),void 0===t.type&&YHe(l,e.stackParser);const c=JHe(i,n.captureContext);n.mechanism&&ONe(l,n.mechanism);const d=r?r.getEventProcessors():[],p=EHe(a,c),h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),kHe(l,p);const f=[...d,...p.eventProcessors];return(n.data&&!0===n.data.__sentry__?RHe(l):qHe(f,l,n)).then((e=>(e&&ZHe(e),"number"==typeof s&&s>0?QHe(e,s,o):e)))}function KHe(e,t){var n,i;const{environment:r,release:a,dist:s,maxValueLength:o}=t;e.environment=e.environment||r||LBe,!e.release&&a&&(e.release=a),!e.dist&&s&&(e.dist=s);const l=e.request;(null==l?void 0:l.url)&&o&&(l.url=kNe(l.url,o)),o&&(null==(i=null==(n=e.exception)?void 0:n.values)||i.forEach((e=>{e.value&&(e.value=kNe(e.value,o))})))}function YHe(e,t){var n,i;const r=WHe(t);null==(i=null==(n=e.exception)?void 0:n.values)||i.forEach((e=>{var t,n;null==(n=null==(t=e.stacktrace)?void 0:t.frames)||n.forEach((e=>{e.filename&&(e.debug_id=r[e.filename])}))}))}function ZHe(e){var t,n;const i={};if(null==(n=null==(t=e.exception)?void 0:t.values)||n.forEach((e=>{var t,n;null==(n=null==(t=e.stacktrace)?void 0:t.frames)||n.forEach((e=>{e.debug_id&&(e.abs_path?i[e.abs_path]=e.debug_id:e.filename&&(i[e.filename]=e.debug_id),delete e.debug_id)}))})),0===Object.keys(i).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.entries(i).forEach((([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})}))}function XHe(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function QHe(e,t,n){var i,r;if(!e)return null;const a=F(F(F(F(F({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>F(F({},e),e.data&&{data:gNe(e.data,t,n)})))}),e.user&&{user:gNe(e.user,t,n)}),e.contexts&&{contexts:gNe(e.contexts,t,n)}),e.extra&&{extra:gNe(e.extra,t,n)});return(null==(i=e.contexts)?void 0:i.trace)&&a.contexts&&(a.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(a.contexts.trace.data=gNe(e.contexts.trace.data,t,n))),e.spans&&(a.spans=e.spans.map((e=>F(F({},e),e.data&&{data:gNe(e.data,t,n)})))),(null==(r=e.contexts)?void 0:r.flags)&&a.contexts&&(a.contexts.flags=gNe(e.contexts.flags,3,n)),a}function JHe(e,t){if(!t)return e;const n=e?e.clone():new eFe;return n.update(t),n}function eje(e){if(e)return tje(e)||ije(e)?{captureContext:e}:e}function tje(e){return e instanceof eFe||"function"==typeof e}H(qHe,"notifyEventProcessors"),H(zHe,"_notifyEventProcessors"),H(WHe,"getFilenameToDebugIdMap"),H(GHe,"prepareEvent"),H(KHe,"applyClientOptions"),H(YHe,"applyDebugIds"),H(ZHe,"applyDebugMeta"),H(XHe,"applyIntegrationsMetadata"),H(QHe,"normalizeEvent"),H(JHe,"getFinalScope"),H(eje,"parseEventHintOrCaptureContext$1"),H(tje,"hintIsScopeOrFunction$1");const nje=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function ije(e){return Object.keys(e).some((e=>nje.includes(e)))}function rje(e,t){return vFe().captureException(e,eje(t))}function aje(e,t){return vFe().captureEvent(e,t)}function sje(e){const t=bFe(),{user:n}=EHe(t,vFe()),{userAgent:i}=XMe.navigator||{},r=UNe(F(F({user:n},i&&{userAgent:i}),e)),a=t.getSession();return"ok"===(null==a?void 0:a.status)&&VNe(a,{status:"exited"}),oje(),t.setSession(r),r}function oje(){const e=bFe(),t=vFe().getSession()||e.getSession();t&&qNe(t),lje(),e.setSession()}function lje(){const e=bFe(),t=SFe(),n=e.getSession();n&&t&&t.captureSession(n)}function uje(e=!1){e?oje():lje()}H(ije,"hintIsScopeContext$1"),H(rje,"captureException$1"),H(aje,"captureEvent"),H(sje,"startSession"),H(oje,"endSession"),H(lje,"_sendSessionUpdate"),H(uje,"captureSession");const cje="7";function dje(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function pje(e){return`${dje(e)}${e.projectId}/envelope/`}function hje(e,t){const n={sentry_version:cje};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function fje(e,t,n){return t||`${pje(e)}?${hje(e,n)}`}H(dje,"getBaseApiEndpoint"),H(pje,"_getIngestEndpoint"),H(hje,"_encodedAuth"),H(fje,"getEnvelopeEndpointWithUrlEncodedAuth");const mje=[];function gje(e){const t={};return e.forEach((e=>{const{name:n}=e,i=t[n];i&&!i.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.values(t)}function yje(e){const t=e.defaultIntegrations||[],n=e.integrations;let i;if(t.forEach((e=>{e.isDefaultInstance=!0})),Array.isArray(n))i=[...t,...n];else if("function"==typeof n){const e=n(t);i=Array.isArray(e)?e:[e]}else i=t;return gje(i)}function vje(e,t){const n={};return t.forEach((t=>{(null==t?void 0:t.beforeSetup)&&t.beforeSetup(e)})),t.forEach((t=>{t&&_je(e,t,n)})),n}function bje(e,t){for(const n of t)(null==n?void 0:n.afterAllSetup)&&n.afterAllSetup(e)}function _je(e,t,n){if(n[t.name])ZMe&&fRe.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,mje.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),mje.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,i)=>n(t,i,e)))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),i=Object.assign(((t,i)=>n(t,i,e)),{id:t.name});e.addEventProcessor(i)}["processSpan","processSegmentSpan"].forEach((n=>{const i=t[n];"function"==typeof i&&e.on(n,(n=>i.call(t,n,e)))})),ZMe&&fRe.log(`Integration installed: ${t.name}`)}}function wje(e){return e}function Sje(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function Cje(){ 101 /*! __SENTRY_SDK_SOURCE__ */ 102 return"npm"}function kje(){return!Sje()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function xje(){return"undefined"!=typeof window&&(!kje()||Tje())}function Tje(){const e=XMe.process;return"renderer"===(null==e?void 0:e.type)}function Eje(e,t){const n=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},B(F({version:2},xje()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}}),{items:e})]}function Aje(e,t,n,i,r){const a={};return(null==t?void 0:t.sdk)&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&i&&(a.dsn=zFe(i)),FBe(a,[Eje(e,r)])}function Lje(e,t){var n;const i=null!=(n=null!=t?t:Ije(e))?n:[];if(0===i.length)return;const r=e.getOptions(),a=Aje(i,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);$je().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(a)}function Ije(e){return $je().get(e)}function $je(){return tRe("clientToLogBufferMap",(()=>new WeakMap))}function Dje(e,t){const n=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},B(F({version:2},xje()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}}),{items:e})]}function Pje(e,t,n,i,r){const a={};return(null==t?void 0:t.sdk)&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&i&&(a.dsn=zFe(i)),FBe(a,[Dje(e,r)])}function Oje(e,t){var n;const i=null!=(n=null!=t?t:Mje(e))?n:[];if(0===i.length)return;const r=e.getOptions(),a=Pje(i,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Rje().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(a)}function Mje(e){return Rje().get(e)}function Rje(){return tRe("clientToMetricBufferMap",(()=>new WeakMap))}function Nje(e){return uBe({trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:F({},e.data),links:e.links})}function Fje(e,t){var n,i,r;if("transaction"!==e.type||!(null==(n=e.spans)?void 0:n.length)||!(null==(i=e.sdkProcessingMetadata)?void 0:i.hasGenAiSpans)||!t.getOptions().streamGenAiSpans||aHe(t))return;const a=[],s=[];for(const l of e.spans)(null==(r=l.op)?void 0:r.startsWith("gen_ai."))?a.push(Nje(l)):s.push(l);if(0===a.length)return;e.spans=s;const o=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:a.length,content_type:"application/vnd.sentry.items.span.v2+json"},B(F({version:2},xje()&&{ingest_settings:{infer_ip:o,infer_user_agent:o}}),{items:a})]}function Bje(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}H(gje,"filterDuplicates"),H(yje,"getIntegrationsToSetup"),H(vje,"setupIntegrations"),H(bje,"afterSetupIntegrations"),H(_je,"setupIntegration"),H(wje,"defineIntegration$1"),H(Sje,"isBrowserBun
102dle"),H(Cje,"getSDKSource"),H(kje,"isNodeEnv"),H(xje,"isBrowser"),H(Tje,"isElectronNodeRenderer"),H(Eje,"createLogContainerEnvelopeItem"),H(Aje,"createLogEnvelope"),H(Lje,"_INTERNAL_flushLogsBuffer"),H(Ije,"_INTERNAL_getLogBuffer"),H($je,"_getBufferMap$1"),H(Dje,"createMetricContainerEnvelopeItem"),H(Pje,"createMetricEnvelope"),H(Oje,"_INTERNAL_flushMetricsBuffer"),H(Mje,"_INTERNAL_getMetricBuffer"),H(Rje,"_getBufferMap"),H(Nje,"spanJsonToSerializedStreamedSpan"),H(Fje,"extractGenAiSpansFromEvent"),H(Bje,"safeUnref");const Hje=Symbol.for("SentryBufferFullError");function jje(e=100){const t=new Set;function n(){return t.size<e}function i(e){t.delete(e)}function r(e){if(!n())return NHe(Hje);const r=e();return t.add(r),r.then((()=>i(r)),(()=>i(r))),r}function a(e){if(!t.size)return RHe(!0);const n=Promise.allSettled(Array.from(t)).then((()=>!0));if(!e)return n;const i=[n,new Promise((t=>Bje(setTimeout((()=>t(!1)),e))))];return Promise.race(i)}return H(n,"isReady"),H(i,"remove"),H(r,"add"),H(a,"drain"),{get $(){return Array.from(t)},add:r,drain:a}}H(jje,"makePromiseBuffer");const Uje=6e4;function Vje(e,t=lNe()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const i=Date.parse(`${e}`);return isNaN(i)?Uje:i-t}function qje(e,t){return e[t]||e.all||0}function zje(e,t,n=lNe()){return qje(e,t)>n}function Wje(e,{statusCode:t,headers:n},i=lNe()){const r=F({},e),a=null==n?void 0:n["x-sentry-rate-limits"],s=null==n?void 0:n["retry-after"];if(a)for(const o of a.trim().split(",")){const[e,t,,,n]=o.split(":",5),a=parseInt(e,10),s=1e3*(isNaN(a)?60:a);if(t)for(const o of t.split(";"))"metric_bucket"===o&&n&&!n.split(";").includes("custom")||(r[o]=i+s);else r.all=i+s}else s?r.all=i+Vje(s,i):429===t&&(r.all=i+6e4);return r}H(Vje,"parseRetryAfterHeader"),H(qje,"disabledUntil"),H(zje,"isRateLimited"),H(Wje,"updateRateLimits");const Gje=64;function Kje(e,t,n=jje(e.bufferSize||Gje)){let i={};const r=H((e=>n.drain(e)),"flush");function a(r){const a=[];if(HBe(r,((t,n)=>{const r=YBe(n);zje(i,r)?e.recordDroppedEvent("ratelimit_backoff",r):a.push(t)})),0===a.length)return Promise.resolve({});const s=FBe(r[0],a),o=H((t=>{jBe(s,["client_report"])?ZMe&&fRe.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`):HBe(s,((n,i)=>{e.recordDroppedEvent(t,YBe(i))}))}),"recordEnvelopeLoss"),l=H((()=>t({body:VBe(s)}).then((e=>413===e.statusCode?(ZMe&&fRe.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),o("send_error"),e):(ZMe&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&fRe.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=Wje(i,e),e)),(e=>{throw o("network_error"),ZMe&&fRe.error("Encountered error running transport request:",e),e}))),"requestTask");return n.add(l).then((e=>e),(e=>{if(e===Hje)return ZMe&&fRe.error("Skipped sending event because buffer is full."),o("queue_overflow"),Promise.resolve({});throw e}))}return H(a,"send"),{send:a,flush:r}}function Yje(e,t,n){return FBe(t?{dsn:t}:{},[[{type:"client_report"},{timestamp:FNe(),discarded_events:e}]])}function Zje(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];(null==n?void 0:n.value)&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch(tvt){}return t}function Xje(e){var t,n,i;const{trace_id:r,parent_span_id:a,span_id:s,status:o,origin:l,data:u,op:c}=null!=(n=null==(t=e.contexts)?void 0:t.trace)?n:{};return{data:null!=u?u:{},description:e.transaction,op:c,parent_span_id:a,span_id:null!=s?s:"",start_timestamp:null!=(i=e.start_timestamp)?i:0,status:o,timestamp:e.timestamp,trace_id:null!=r?r:"",origin:l,profile_id:null==u?void 0:u[IFe],exclusive_time:null==u?void 0:u[$Fe],measurements:e.measurements,is_segment:!0}}function Qje(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:F(F(F({},e.data),e.profile_id&&{[IFe]:e.profile_id}),e.exclusive_time&&{[$Fe]:e.exclusive_time})}},measurements:e.measurements}}H(Kje,"createTransport"),H(Yje,"createClientReportEnvelope"),H(Zje,"getPossibleEventMessages"),H(Xje,"convertTransactionEventToSpanJson"),H(Qje,"convertSpanJsonToTransactionEvent");const Jje=["forwarded","-ip","remote-","via","-user"];function eUe(e){return!0===e?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0}
102,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:Jje},httpHeaders:{request:{deny:Jje},response:{deny:Jje}},httpBodies:[],queryParams:{deny:Jje},genAI:{inputs:!1,outputs:!1},stackFrameVariables:!0,frameContextLines:7}}H(eUe,"defaultPiiToCollectionOptions");const tUe={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5};function nUe(e){var t,n,i,r,a,s,o,l,u,c,d,p,h,f,m;const g=null!=e.dataCollection?tUe:eUe(e.sendDefaultPii),y=null!=(t=e.dataCollection)?t:{};return{userInfo:null!=(n=y.userInfo)?n:g.userInfo,cookies:null!=(i=y.cookies)?i:g.cookies,httpHeaders:{request:null!=(a=null==(r=y.httpHeaders)?void 0:r.request)?a:g.httpHeaders.request,response:null!=(o=null==(s=y.httpHeaders)?void 0:s.response)?o:g.httpHeaders.response},httpBodies:null!=(l=y.httpBodies)?l:g.httpBodies,queryParams:null!=(u=y.queryParams)?u:g.queryParams,genAI:{inputs:null!=(d=null==(c=y.genAI)?void 0:c.inputs)?d:g.genAI.inputs,outputs:null!=(h=null==(p=y.genAI)?void 0:p.outputs)?h:g.genAI.outputs},stackFrameVariables:null!=(f=y.stackFrameVariables)?f:g.stackFrame
102Variables,frameContextLines:null!=(m=y.frameContextLines)?m:g.frameContextLines}}H(nUe,"resolveDataCollectionOptions");const iUe="Not capturing exception because it's already been captured.",rUe="Discarded session because of missing or non-string release",aUe=Symbol.for("SentryInternalError"),sUe=Symbol.for("SentryDoNotSendEventError");function oUe(e){return{message:e,[aUe]:!0}}function lUe(e){return{message:e,[sUe]:!0}}function uUe(e){return!!e&&"object"==typeof e&&aUe in e}function cUe(e){return!!e&&"object"==typeof e&&sUe in e}function dUe(e,t,n,i,r){let a,s=0,o=!1;e.on(n,(()=>{s=0,clearTimeout(a),o=!1})),e.on(t,(t=>{var n;if(s+=i(t),s>=8e5)r(e);else if(!o){const t=null!=(n=e.getOptions()._flushInterval)?n:5e3;t>0&&(o=!0,a=Bje(setTimeout((()=>{r(e)}),t)))}})),e.on("flush",(()=>{r(e)}))}H(oUe,"_makeInternalError"),H(lUe,"_makeDoNotSendEventError"),H(uUe,"_isInternalError"),H(cUe,"_isDoNotSendEventError"),H(dUe,"setupWeightBasedFlushing");const pUe=class{constructor(e){var t,n,i,r,a,s,o;if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=jje(null!=(n=null==(t=e.transportOptions)?void 0:t.bufferSize)?n:Gje),this._dataCollection=nUe(e),e.dsn?this._dsn=XFe(e.dsn):ZMe&&fRe.warn("No DSN provided, client will not send events."),this._dsn){const t=fje(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport(B(F({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:t}))}this._options.enableLogs=null!=(r=this._options.enableLogs)?r:null==(i=this._options._experiments)?void 0:i.enableLogs,this._options.enableLogs&&dUe(this,"afterCaptureLog","flushLogs",_Ue,Lje);(null==(o=null!=(s=this._options.enableMetrics)?s:null==(a=this._options._experiments)?void 0:a.enableMetrics)||o)&&dUe(this,"afterCaptureMetric","flushMetrics",bUe,Oje)}captureException(e,t,n){const i=INe();if(MNe(e))return ZMe&&fRe.log(iUe),i;const r=F({event_id:i},t);return this._process((()=>this.eventFromException(e,r).then((e=>this._captureEvent(e,r,n))).then((e=>e))),"error"),r.event_id}captureMessage(e,t,n,i){const r=F({event_id:INe()},n),a=qRe(e)?e:String(e),s=zRe(e),o=s?this.eventFromMessage(a,t,r):this.eventFromException(e,r);return this._process((()=>o.then((e=>this._captureEvent(e,r,i)))),s?"unknown":"error"),r.event_id}captureEvent(e,t,n){const i=INe();if((null==t?void 0:t.originalException)&&MNe(t.originalException))return ZMe&&fRe.log(iUe),i;const r=F({event_id:i},t),a=e.sdkProcessingMetadata||{},s=a.capturedSpanScope,o=a.capturedSpanIsolationScope,l=fUe(e.type);return this._process((()=>this._captureEvent(e,r,s||n,o)),l),r.event_id}captureSession(e){this.sendSession(e),VNe(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){return V(this,null,(function*(){const t=this._transport;if(this.emit("flush"),!t)return!0;const n=yield this._isClientDoneProcessing(e),i=yield t.flush(e);return n&&i}))}close(e){return V(this,null,(function*(){Lje(this);const t=yield this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((({name:e})=>e.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){const t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),_je(this,e,this._integrations),t||bje(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);const n=Fje(e,this);let i=eHe(e,this._dsn,this._options._metadata,this._options.tunnel);for(const r of t.attachments||[])i=BBe(i,WBe(r));n&&(i=BBe(i,n)),this.sendEnvelope(i).then((t=>this.emit("afterSendEvent",e,t)))}sendSession(e){const{release:t,environment:n=LBe}=this._options;if("aggregates"in e){const i=e.attrs||{};if(!i.release&&!t)return void(ZMe&&fRe.warn(rUe));i.release=i.release||t,i.environment=i.environment||n,e.attrs=i}else{if(!e.release&&!t)return void(ZMe&&fRe.warn(rUe));e.release=e.release||t,e.environment=e.environment||n}
102this.emit("beforeSendSession",e);const i=JBe(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const i=`${e}:${t}`;ZMe&&fRe.log(`Recording outcome: "${i}"${n>1?` (${n} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,i=H(((...e)=>t(...e)),"uniqueCallback");return n.add(i),()=>{n.delete(i)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach((e=>e(...t)))}sendEnvelope(e){return V(this,null,(function*(){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return yield this._transport.send(e)}catch(t){return ZMe&&fRe.error("Error while sending envelope:",t),{}}return ZMe&&fRe.error("Transport disabled"),{}}))}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=vje(this,e),bje(this,e)}_updateSessionFromEvent(e,t){var n,i;let r="fatal"===t.level,a=!1;const s=null==(n=t.exception)?void 0:n.values;if(s){a=!0,r=!1;for(const e of s)if(!1===(null==(i=e.mechanism)?void 0:i.handled)){r=!0;break}}const o="ok"===e.status;(o&&0===e.errors||o&&r)&&(VNe(e,B(F({},r&&{status:"crashed"}),{errors:e.errors||Number(a||r)})),this.captureSession(e))}_isClientDoneProcessing(e){return V(this,null,(function*(){let t=0;for(;!e||t<e;){if(yield new Promise((e=>setTimeout(e,1))),!this._numProcessing)return!0;t++}return!1}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,i){const r=this.getOptions(),a=this.getIntegrationNames();return!t.integrations&&a.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||i.setLastEventId(e.event_id||t.event_id),GHe(r,e,t,n,this,i).then((e=>{var i;if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts=F({trace:F(F({},null==(i=e.contexts)?void 0:i.trace),CFe(n))},e.contexts);const r=PBe(this,n);return e.sdkProcessingMetadata=F({dynamicSamplingContext:r},e.sdkProcessingMetadata),e}))}_captureEvent(e,t={},n=vFe(),i=bFe()){return ZMe&&yUe(e)&&fRe.log(`Captured error event \`${Zje(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,i).then((e=>e.event_id),(e=>{ZMe&&(cUe(e)?fRe.log(e.message):uUe(e)?fRe.warn(e.message):fRe.warn(e))}))}_processEvent(e,t,n,i){const r=this.getOptions(),{sampleRate:a}=r,s=vUe(e),o=yUe(e),l=`before send for type \`${e.type||"error"}\``,u=void 0===a?void 0:QFe(a);if(o&&"number"==typeof u&&oNe()>u)return this.recordDroppedEvent("sample_rate","error"),NHe(lUe(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));const c=fUe(e.type);return this._prepareEvent(e,t,n,i).then((e=>{var n;if(null===e)throw this.recordDroppedEvent("event_processor",c),lUe("An event processor returned `null`, will not send event.");if(!0===(null==(n=t.data)?void 0:n.__sentry__))return e;return mUe(gUe(this,r,e,t),l)})).then((r=>{var a;if(null===r){if(this.recordDroppedEvent("before_send",c),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw lUe(`${l} returned \`null\`, will not send event.`)}const u=n.getSession()||i.getSession();if(o&&u&&this._updateSessionFromEvent(u,r),s){const e=((null==(a=r.sdkProcessingMetadata)?void 0:a.spanCountBeforeProcessing)||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const d=r.transaction_info;if(s&&d&&r.transaction!==e.transaction){const e="custom";r.transaction_info=B(F({},d),{source:e})}return this.sendEvent(r,t),r})).then(null,(e=>{if(cUe(e)||uUe(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),oUe(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e===Hje&&this.recordDroppedEvent("queue_overflow",t),e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([e,t])=>{const[n,i]=e.split(":");return{reason:n,category:i,quantity:t}}))}_flushOutcomes(){ZMe&&fRe.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(ZMe&&fRe.log("No outcomes to send"));if(!this._dsn)return void(ZMe&&fRe.log("No dsn provided, will not send outcomes"));ZMe&&fRe.log("Sending outcomes:",e);const t=Yje(e,this._options.tunnel&&zFe(this._dsn));this.sendEnvelope(t)}};H(pUe,"Client");let hUe=pUe;function fUe(e){return"replay_event"===e?"replay":e||"error"}function mUe(e,t){const n=`${t} must return \`null\` or a valid event.`;if(YRe(e))return e.then((e=>{if(!WRe(e)&&null!==e)throw oUe(n);return e}),(e=>{throw oUe(`${t} rejected with ${e}`)}));if(!WRe(e)&&null!==e)throw oUe(n);return e}function gUe(e,t,n,i){const{beforeSend:r,beforeSendTransaction:a,ignoreSpans:s}=t,o=!NBe(t.beforeSendSpan)&&t.beforeSendSpan;let l=n;if(yUe(l)&&r)return r(l,i);if(vUe(l)){if(o||s){const t=Xje(l);if((null==s?void 0:s.length)&&xBe({description:t.description,op:t.op,attributes:t.data},s))return null;if(o){const e=o(t);e?l=WNe(n,Qje(e)):SBe()}if(l.spans){const t=[],n=l.spans;for(const e of n)if((null==s?void 0:s.length)&&xBe({description:e.description,op:e.op,attributes:e.data},s))EBe(n,e);else if(o){const n=o(e);n?t.push(n):(SBe(),t.push(e))}else t.push(e);const i=l.spans.length-t.length;i&&e.recordDroppedEvent("before_send","span",i),l.spans=t}}if(a){if(l.spans){const e=l.spans.length;l.sdkProcessingMetadata=B(F({},n.sdkProcessingMetadata),{spanCountBeforeProcessing:e})}return a(l,i)}}return l}function yUe(e){return void 0===e.type}function vUe(e){return"transaction"===e.type}function bUe(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+wUe(e.attributes)}function _Ue(e){let t=0;return e.message&&(t+=2*e.message.length),t+wUe(e.attributes)}function wUe(e){if(!e)return 0;let t=0;return Object.values(e).forEach((e=>{Array.isArray(e)?t+=e.length*SUe(e[0]):zRe(e)?t+=SUe(e):t+=100})),t}function SUe(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}function CUe(e,t){!0===t.debug&&(ZMe?fRe.enable():aRe((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));vFe().update(t.initialScope);const n=new e(t);return kUe(n),n.init(),n}function kUe(e){vFe().setClient(e)}function xUe(e){var t;"aggregates"in e?void 0===(null==(t=e.attrs)?void 0:t.ip_address)&&(e.attrs=B(F({},e.attrs),{ip_address:"{{auto}}"})):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function TUe(e,t,n=[t],i="npm"){const r=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};r.name||(r.name=`sentry.javascript.${t}`,r.packages=n.map((e=>({name:`${i}:@sentry/${e}`,version:QMe}))),r.version=QMe)}H(fUe,"getDataCategoryByType"),H(mUe,"_validateBeforeSendResult"),H(gUe,"processBeforeSend"),H(yUe,"isErrorEvent"),H(vUe,"isTransactionEvent"),H(bUe,"estimateMetricSizeInBytes"),H(_Ue,"estimateLogSizeInBytes"),H(wUe,"estimateAttributesSizeInBytes"),H(SUe,"estimatePrimitiveSizeInBytes"),H(CUe,"initAndBind"),H(kUe,"setCurrentClient"),H(xUe,"addAutoIpAddressToSession"),H(TUe,"applySdkMetadata$1");const EUe=100;function AUe(e,t){const n=SFe(),i=bFe();if(!n)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:a=EUe}=n.getOptions();if(a<=0)return;const s=FNe(),o=F({timestamp:s},e),l=r?aRe((()=>r(o,t))):o;null!==l&&(n.emit&&n.emit("beforeAddBreadcrumb",l,t),i.addBreadcrumb(l,a))}let LUe;H(AUe,"addBreadcrumb");const IUe=new WeakMap,$Ue=H((()=>({name:"FunctionToString",setupOnce(){LUe=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=tNe(this),n=IUe.has(SFe())&&void 0!==t?t:this;return LUe.apply(n,e)}}catch(tvt){}},setup(e){IUe.set(e,!0)}})),"_functionToStringIntegration"),DUe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],PUe=(e={})=>{let t;return{name:"EventFilters",setup(n){const i=n.getOptions();t=MUe(e,i)},processEvent(n,i,r){if(!t){const n=r.getOptions();t=MUe(e,n)}return RUe(n,t)?null:n}}},OUe=(e={})=>B(F({},PUe(e)),{name:"InboundFilters"});function MUe(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:DUe],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function RUe(e,t){if(e.type){if("transaction"===e.type&&FUe(e,t.ignoreTransactions))return ZMe&&fRe.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${DNe(e)}`),!0}else{if(NUe(e,t.ignoreErrors))return ZMe&&fRe.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${DNe(e)}`),!0;if(VUe(e))return ZMe&&fRe.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${DNe(e)}`),!0;if(BUe(e,t.denyUrls))return ZMe&&fRe.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${DNe(e)}.\nUrl: ${UUe(e)}`),!0;if(!HUe(e,t.allowUrls))return ZMe&&fRe.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${DNe(e)}.\nUrl: ${UUe(e)}`),!0}return!1}function NUe(e,t){return!!(null==t?void 0:t.length)&&Zje(e).some((e=>ENe(e,t)))}function FUe(e,t){if(!(null==t?void 0:t.length))return!1;const n=e.transaction;return!!n&&ENe(n,t)}function BUe(e,t){if(!(null==t?void 0:t.length))return!1;const n=UUe(e);return!!n&&ENe(n,t)}function HUe(e,t){if(!(null==t?void 0:t.length))return!0;const n=UUe(e);return!n||ENe(n,t)}function jUe(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function UUe(e){var t,n,i;try{const r=[...null!=(n=null==(t=e.exception)?void 0:t.values)?n:[]].reverse().find((e=>{var t,n,i;return void 0===(null==(t=e.mechanism)?void 0:t.parent_id)&&(null==(i=null==(n=e.stacktrace)?void 0:n.frames)?void 0:i.length)})),a=null==(i=null==r?void 0:r.stacktrace)?void 0:i.frames;return a?jUe(a):null}catch(tvt){return ZMe&&fRe.error(`Cannot extract url for event ${DNe(e)}`),null}}function VUe(e){var t,n;return!!(null==(n=null==(t=e.exception)?void 0:t.values)?void 0:n.length)&&(!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)))}function qUe(e,t,n,i,r,a){var s;if(!(null==(s=r.exception)?void 0:s.values)||!a||!ZRe(a.originalException,Error))return;const o=r.exception.values.length>0?r.exception.values[r.exception.values.length-1]:void 0;o&&(r.exception.values=zUe(e,t,i,a.originalException,n,r.exception.values,o,0))}function zUe(e,t,n,i,r,a,s,o){if(a.length>=n+1)return a;let l=[...a];if(ZRe(i[r],Error)){GUe(s,o,i);const a=e(t,i[r]),u=l.length;KUe(a,r,u,o),l=zUe(e,t,n,i[r],r,[a,...l],a,u)}
102return WUe(i)&&i.errors.forEach(((a,u)=>{if(ZRe(a,Error)){GUe(s,o,i);const c=e(t,a),d=l.length;KUe(c,`errors[${u}]`,d,o),l=zUe(e,t,n,a,r,[c,...l],c,d)}})),l}function WUe(e){return Array.isArray(e.errors)}function GUe(e,t,n){e.mechanism=B(F(F({handled:!0,type:"auto.core.linked_errors"},WUe(n)&&{is_exception_group:!0}),e.mechanism),{exception_id:t})}function KUe(e,t,n,i){e.mechanism=B(F({handled:!0},e.mechanism),{type:"chained",source:t,exception_id:n,parent_id:i})}function YUe(e){return FRe(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__}function ZUe(e){return YUe(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}H(MUe,"_mergeOptions"),H(RUe,"_shouldDropEvent$1"),H(NUe,"_isIgnoredError"),H(FUe,"_isIgnoredTransaction"),H(BUe,"_isDeniedUrl"),H(HUe,"_isAllowedUrl"),H(jUe,"_getLastValidUrl"),H(UUe,"_getEventFilterUrl"),H(VUe,"_isUselessError"),H(qUe,"applyAggregateErrorsToEvent"),H(zUe,"aggregateExceptionsFromError"),H(WUe,"isExceptionGroup"),H(GUe,"applyExceptionGroupFieldsForParentException"),H(KUe,"applyExceptionGroupFieldsForChildException"),H(YUe,"hasSentryFetchUrlHost"),H(ZUe,"_enhanceErrorWithSentryInfo");const XUe=new Set([]);function QUe(e){const t="console",n=ARe(t,e);return LRe(t,JUe),n}function JUe(){"console"in XMe&&nRe.forEach((function(e){e in XMe.console&&QRe(XMe.console,e,(function(t){return rRe[e]=t,function(...t){const n=t[0],i=rRe[e],r=XUe.size&&"string"==typeof n&&ENe(n,XUe);r||IRe("console",{args:t,level:e}),(!r||ZMe&&fRe.isEnabled())&&(null==i||i.apply(XMe.console,t))}}))}))}function eVe(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}H(QUe,"addConsoleInstrumentationHandler"),H(JUe,"instrumentConsole"),H(eVe,"severityLevelFromString");const tVe=H(((e={})=>{var t;const n=e.levels||nRe,i=null==(t=e.handled)||t;return{name:"CaptureConsole",setup(e){"console"in XMe&&QUe((({args:t,level:r})=>{SFe()===e&&n.includes(r)&&nVe(t,r,i)}))}}}),"_captureConsoleIntegration");function nVe(e,t,n){const i=eVe(t),r=new Error,a={level:eVe(t),extra:{arguments:e}};wFe((s=>{if(s.addEventProcessor((e=>(e.logger="console",ONe(e,{handled:n,type:"auto.core.capture_console"}),e))),"assert"===t){if(!e[0]){const t=`Assertion failed: ${xNe(e.slice(1)," ")||"console.assert"}`;s.setExtra("arguments",e.slice(1)),s.captureMessage(t,i,{captureContext:a,syntheticException:r})}return}const o=e.find((e=>e instanceof Error));if(o)return void rje(o,a);const l=xNe(e," ");s.captureMessage(l,i,{captureContext:a,syntheticException:r})}))}H(nVe,"consoleHandler");const iVe=H((()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(rVe(t,e))return ZMe&&fRe.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(tvt){}return e=t}}}),"_dedupeIntegration");function rVe(e,t){return!!t&&(!!aVe(e,t)||!!sVe(e,t))}function aVe(e,t){const n=e.message,i=t.message;return!(!n&&!i)&&(!(n&&!i||!n&&i)&&(n===i&&(!!lVe(e,t)&&!!oVe(e,t))))}function sVe(e,t){const n=uVe(t),i=uVe(e);return!(!n||!i)&&(n.type===i.type&&n.value===i.value&&(!!lVe(e,t)&&!!oVe(e,t)))}function oVe(e,t){let n=xRe(e),i=xRe(t);if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;if(i.length!==n.length)return!1;for(let r=0;r<i.length;r++){const e=i[r],t=n[r];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function lVe(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return!(n.join("")!==i.join(""))}catch(tvt){return!1}}function uVe(e){var t,n;return null==(n=null==(t=e.exception)?void 0:t.values)?void 0:n[0]}H(rVe,"_shouldDropEvent"),H(aVe,"_isSameMessageEvent"),H(sVe,"_isSameExceptionEvent"),H(oVe,"_isSameStacktrace"),H(lVe,"_isSameFingerprint"),H(uVe,"_getExceptionFromEvent");const cVe=H((()=>({name:"ConversationId",setup(e){e.on("spanStart",(e=>{const t=vFe().getScopeData(),n=bFe().getScopeData(),i=t.conversationId||n.conversationId;if(i){const{op:t,data:n,description:r}=oBe(e);if(!(null==t?void 0:t.startsWith("gen_ai."))&&!n["ai.operationId"]&&!(null==r?void 0:r.startsWith("ai.")))return;e.setAttribute("gen_ai.conversation.id",i)}}))}})),"_conversationIdIntegration");function dVe(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}H(dVe,"getBreadcrumbLogLevelFromHttpStatusCode");const pVe=XMe;function hVe(){if(!("fetch"in pVe))return!1;
102try{return new Headers,new Request("data:,"),new Response,!0}catch(tvt){return!1}}function fVe(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function mVe(){var e;if("string"==typeof EdgeRuntime)return!0;if(!hVe())return!1;if(fVe(pVe.fetch))return!0;let t=!1;const n=pVe.document;if(n&&"function"==typeof n.createElement)try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i),(null==(e=i.contentWindow)?void 0:e.fetch)&&(t=fVe(i.contentWindow.fetch)),n.head.removeChild(i)}catch(i){ZMe&&fRe.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return t}function gVe(e,t){const n="fetch",i=ARe(n,e);return LRe(n,(()=>yVe(void 0,t))),i}function yVe(e,t=!1){t&&!mVe()||QRe(XMe,"fetch",(function(e){return function(...t){const n=new Error,{method:i,url:r}=_Ve(t),a={args:t,fetchData:{method:i,url:r},startTimestamp:1e3*jNe(),virtualError:n,headers:wVe(t)};return IRe("fetch",F({},a)),e.apply(XMe,t).then((e=>V(this,null,(function*(){return IRe("fetch",B(F({},a),{endTimestamp:1e3*jNe(),response:e})),e}))),(e=>{var t;IRe("fetch",B(F({},a),{endTimestamp:1e3*jNe(),error:e})),FRe(e)&&void 0===e.stack&&(e.stack=n.stack,JRe(e,"framesToPop",1));const i=SFe(),r=null!=(t=null==i?void 0:i.getOptions().enhanceFetchErrorMessages)?t:"always";if(!1!==r&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(a.fetchData.url).host;"always"===r?e.message=`${e.message} (${t})`:JRe(e,"__sentry_fetch_url_host__",t)}catch(tvt){}throw e}))}}))}function vVe(e,t){return!!e&&"object"==typeof e&&!!e[t]}function bVe(e){return"string"==typeof e?e:e?vVe(e,"url")?e.url:e.toString?e.toString():"":""}function _Ve(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:bVe(t),method:vVe(n,"method")?String(n.method).toUpperCase():XRe(t)&&vVe(t,"method")?String(t.method).toUpperCase():"GET"}}const t=e[0];return{url:bVe(t),method:vVe(t,"method")?String(t.method).toUpperCase():"GET"}}function wVe(e){const[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(XRe(t))return new Headers(t.headers)}catch(tvt){}}H(hVe,"_isFetchSupported"),H(fVe,"isNativeFunction$1"),H(mVe,"supportsNativeFetch"),H(gVe,"addFetchInstrumentationHandler"),H(yVe,"instrumentFetch"),H(vVe,"hasProp"),H(bVe,"getUrlFromResource"),H(_Ve,"parseFetchArgs"),H(wVe,"getHeadersFromFetchArgs");const SVe=XMe;function CVe(){try{return SVe.document.location.href}catch(tvt){return""}}function kVe(e,t=5){if(!SVe.HTMLElement)return null;let n=e;for(let i=0;i<t;i++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}H(CVe,"getLocationHref"),H(kVe,"getComponentName$1");const xVe=XMe;let TVe=0;function EVe(){return TVe>0}function AVe(){TVe++,setTimeout((()=>{TVe--}))}function LVe(e,t={}){function n(e){return"function"==typeof e}if(H(n,"isFunction"),!n(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(tNe(e))return e}catch(tvt){return e}const i=H((function(...n){XMe._sentryWrappedDepth=(XMe._sentryWrappedDepth||0)+1;try{const i=n.map((e=>LVe(e,t)));return e.apply(this,i)}catch(i){throw AVe(),wFe((e=>{e.addEventProcessor((e=>(t.mechanism&&(PNe(e,void 0),ONe(e,t.mechanism)),e.extra=B(F({},e.extra),{arguments:n}),e))),rje(i)})),i}finally{XMe._sentryWrappedDepth=(XMe._sentryWrappedDepth||0)-1}}),"sentryWrapped");try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch(tvt){}eNe(i,e),JRe(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(tvt){}return i}function IVe(){const e=CVe(),{referrer:t}=xVe.document||{},{userAgent:n}=xVe.navigator||{};return{url:e,headers:F(F({},t&&{Referer:t}),n&&{"User-Agent":n})}}function $Ve(e,t){const n=OVe(e,t),i={type:BVe(t),value:HVe(t)};return n.length&&(i.stacktrace={frames:n}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function DVe(e,t,n,i){const r=SFe(),a=null==r?void 0:r.getOptions().normalizeDepth,s=GVe(t),o={__serialized__:yNe(t,a)};if(s)return{exception:{values:[$Ve(e,s)]},extra:o};const l={exception:{values:[{type:GRe(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:zVe(t,{isUnhandledRejection:i})}]},extra:o};if(n){const t=OVe(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}function PVe(e,t){return{exception:{values:[$Ve(e,t)]}}}function OVe(e,t){const n=t.stacktrace||t.stack||"",i=RVe(t),r=NVe(t);try{return e(n,i,r)}catch(tvt){}return[]}H(EVe,"shouldIgnoreOnError"),H(AVe,"ignoreNextOnError"),H(LVe,"wrap"),H(IVe,"getHttpRequestData"),H($Ve,"exceptionFromError"),H(DVe,"eventFromPlainObject"),H(PVe,"eventFromError"),H(OVe,"parseStackFrames");const MVe=/Minified React error #\d+;/i;function RVe(e){return e&&MVe.test(e.message)?1:0}function NVe(e){return"number"==typeof e.framesToPop?e.framesToPop:0}function FVe(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function BVe(e){const t=null==e?void 0:e.name;if(!t&&FVe(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function HVe(e){const t=null==e?void 0:e.message;return FVe(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?ZUe(t.error):ZUe(e):"No error message"}function jVe(e,t,n,i){const r=VVe(e,t,(null==n?void 0:n.syntheticException)||void 0,i);return ONe(r),r.level="error",(null==n?void 0:n.event_id)&&(r.event_id=n.event_id),RHe(r)}function UVe(e,t,n="info",i,r){const a=qVe(e,t,(null==i?void 0:i.syntheticException)||void 0,r);return a.level=n,(null==i?void 0:i.event_id)&&(a.event_id=i.event_id),RHe(a)}function VVe(e,t,n,i,r){var a,s;let o;if(HRe(t)&&t.error){return PVe(e,t.error)}if(jRe(t)||URe(t)){const r=t;if("stack"in t){o=PVe(e,t);const r=null==(s=null==(a=o.exception)?void 0:a.values)?void 0:s[0];if(i&&n&&r&&!r.stacktrace){const t=OVe(e,n);t.length&&(r.stacktrace={frames:t},ONe(o,{synthetic:!0}))}}else{const t=r.name||(jRe(r)?"DOMError":"DOMException"),a=r.message?`${t}: ${r.message}`:t;o=qVe(e,a,n,i),PNe(o,a)}return"code"in r&&(o.tags=B(F({},o.tags),{"DOMException.code":`${r.code}`})),o}if(FRe(t))return PVe(e,t);if(WRe(t)||GRe(t)){return o=DVe(e,t,n,r),ONe(o,{synthetic:!0}),o}return o=qVe(e,t,n,i),PNe(o,`${t}`),ONe(o,{synthetic:!0}),o}function qVe(e,t,n,i){const r={};if(i&&n){const i=OVe(e,n);i.length&&(r.exception={values:[{value:t,stacktrace:{frames:i}}]}),ONe(r,{synthetic:!0})}
102if(qRe(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return r.logentry={message:e,params:n},r}return r.message=t,r}function zVe(e,{isUnhandledRejection:t}){const n=rNe(e),i=t?"promise rejection":"exception";if(HRe(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if(GRe(e)){return`Event \`${WVe(e)}\` (type=${e.type}) captured as ${i}`}return`Object captured as ${i} with keys: ${n}`}function WVe(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(tvt){}}function GVe(e){return Object.values(e).find((e=>e instanceof Error))}H(RVe,"getSkipFirstStackStringLines"),H(NVe,"getPopFirstTopFrames"),H(FVe,"isWebAssemblyException"),H(BVe,"extractType"),H(HVe,"extractMessage"),H(jVe,"eventFromException"),H(UVe,"eventFromMessage"),H(VVe,"eventFromUnknownInput"),H(qVe,"eventFromString"),H(zVe,"getNonErrorObjectExceptionValue"),H(WVe,"getObjectClassName"),H(GVe,"getErrorPropertyFromObject");const KVe=class extends hUe{constructor(e){var t,n;const i=ZVe(e);TUe(i,"browser",["browser"],xVe.SENTRY_SDK_SOURCE||"npm"),super(i);const{userInfo:r}=this.getDataCollectionOptions();(null==(t=i._metadata)?void 0:t.sdk)&&(i._metadata.sdk.settings=F({infer_ip:r?"auto":"never"},i._metadata.sdk.settings));const{sendClientReports:a,enableLogs:s,_experiments:o,enableMetrics:l}=this._options,u=null==(n=null!=l?l:null==o?void 0:o.enableMetrics)||n;xVe.document&&(a||s||u)&&xVe.document.addEventListener("visibilitychange",(()=>{"hidden"===xVe.document.visibilityState&&(a&&this._flushOutcomes(),s&&Lje(this),u&&Oje(this))})),r&&this.on("beforeSendSession",xUe)}eventFromException(e,t){return jVe(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return UVe(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,i){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,i)}};H(KVe,"BrowserClient");let YVe=KVe;function ZVe(e){var t;return F({release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:null==(t=xVe.SENTRY_RELEASE)?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0},e)}H(ZVe,"applyDefaultOptions");const XVe="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,QVe=globalThis,JVe="10.57.0";function eqe(e,t,n=QVe){const i=n.__SENTRY__=n.__SENTRY__||{},r=i[JVe]=i[JVe]||{};return r[e]||(r[e]=t())}H(eqe,"getGlobalSingleton$1");const tqe="Sentry Logger ",nqe={};function iqe(e){if(!("console"in QVe))return e();const t=QVe.console,n={},i=Object.keys(nqe);i.forEach((e=>{const i=nqe[e];n[e]=t[e],t[e]=i}));try{return e()}finally{i.forEach((e=>{t[e]=n[e]}))}}function rqe(){dqe().enabled=!0}function aqe(){dqe().enabled=!1}function sqe(){return dqe().enabled}function oqe(...e){cqe("log",...e)}function lqe(...e){cqe("warn",...e)}function uqe(...e){cqe("error",...e)}function cqe(e,...t){XVe&&sqe()&&iqe((()=>{QVe.console[e](`${tqe}[${e}]:`,...t)}))}function dqe(){return XVe?eqe("loggerSettings",(()=>({enabled:!1}))):{enabled:!1}}H(iqe,"consoleSandbox$1"),H(rqe,"enable$1"),H(aqe,"disable$1"),H(sqe,"isEnabled$1"),H(oqe,"log$1"),H(lqe,"warn$4"),H(uqe,"error$3"),H(cqe,"_maybeLog$1"),H(dqe,"_getLoggerSettings$1");const pqe={enable:rqe,disable:aqe,isEnabled:sqe,log:oqe,warn:lqe,error:uqe},hqe="<anonymous>";function fqe(e){try{return e&&"function"==typeof e&&e.name||hqe}catch(tvt){return hqe}}H(fqe,"getFunctionName");const mqe={},gqe={};function yqe(e,t){return mqe[e]=mqe[e]||[],mqe[e].push(t),()=>{const n=mqe[e];if(n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}function vqe(e,t){if(!gqe[e]){gqe[e]=!0;try{t()}catch(tvt){XVe&&pqe.error(`Error while instrumenting ${e}`,tvt)}}}function bqe(e,t){const n=e&&mqe[e];if(n)for(const i of n)try{i(t)}catch(tvt){XVe&&pqe.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${fqe(i)}\nError:`,tvt)}}H(yqe,"addHandler"),H(vqe,"maybeInstrument"),H(bqe,"triggerHandlers");const _qe=Object.prototype.toString;function wqe(e,t){return _qe.call(e)===`[object ${t}]`}function Sqe(e){return wqe(e,"String")}function Cqe(e,t,n){if(!(t in e))return;const i=e[t];if("function"!=typeof i)return;const r=n(i);"function"==typeof r&&xqe(r,i);try{e[t]=r}catch(tvt){XVe&&pqe.log(`Failed to replace method "${t}" in object`,e)}}function kqe(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(tvt){XVe&&pqe.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function xqe(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,kqe(e,"__sentry_original__",t)}catch(tvt){}}let Tqe,Eqe;function Aqe(e){if(void 0!==Tqe)return Tqe?Tqe(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=QVe;return t in n&&"function"==typeof n[t]?(Tqe=n[t],Tqe(e)):(Tqe=null,e())}function Lqe(){return Aqe((()=>Math.random()))}function Iqe(){return Aqe((()=>Date.now()))}function $qe(){const e=QVe;return e.crypto||e.msCrypto}function Dqe(){return 16*Lqe()}function Pqe(e=$qe()){try{if(null==e?void 0:e.randomUUID)return Aqe((()=>e.randomUUID())).replace(/-/g,"")}catch(tvt){}return Eqe||(Eqe="10000000100040008000100000000000"),Eqe.replace(/[018]/g,(e=>(e^(15&Dqe())>>e/4).toString(16)))}H(wqe,"isBuiltin$1"),H(Sqe,"isString$3"),H(Cqe,"fill"),H(kqe,"addNonEnumerableProperty$1"),H(xqe,"markFunctionWrapped"),H(Aqe,"withRandomSafeContext$1"),H(Lqe,"safeMathRandom$1"),H(Iqe,"safeDateNow$1"),H($qe,"getCrypto$1"),H(Dqe,"getRandomByte$1"),H(Pqe,"uuid4$1");const Oqe=1e3;function Mqe(){return Iqe()/Oqe}function Rqe(){const{performance:e}=QVe;if(!(null==e?void 0:e.now)||!e.timeOrigin)return Mqe;const t=e.timeOrigin;return()=>(t+Aqe((()=>e.now())))/Oqe}let Nqe;function Fqe(){return(null!=Nqe?Nqe:Nqe=Rqe())()}H(Mqe,"dateTimestampInSeconds$1"),H(Rqe,"createUnixTimestampInSecondsFunc$1"),H(Fqe,"timestampInSeconds$1");const Bqe=QVe;function Hqe(){return"history"in Bqe&&!!Bqe.history}
102function jqe(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}H(Hqe,"supportsHistory"),H(jqe,"isNativeFunction");const Uqe="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Vqe=QVe,qqe=80;function zqe(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,r=[];let a=0,s=0;const o=" > ",l=o.length;let u;const c=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||qqe;for(;n&&a++<i&&(u=Wqe(n,c),!("html"===u||a>1&&s+r.length*l+u.length>=d));)r.push(u),s+=u.length,n=n.parentNode;return r.reverse().join(o)}catch(tvt){return"<unknown>"}}function Wqe(e,t){const n=e,i=[];if(!(null==n?void 0:n.tagName))return"";if("undefined"!=typeof HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}i.push(n.tagName.toLowerCase());const r=(null==t?void 0:t.length)?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(null==r?void 0:r.length)r.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&i.push(`#${n.id}`);const e=n.className;if(e&&Sqe(e)){const t=e.split(/\s+/);for(const e of t)i.push(`.${e}`)}}for(const a of["aria-label","type","name","title","alt"]){const e=n.getAttribute(a);e&&i.push(`[${a}="${e}"]`)}return i.join("")}H(zqe,"htmlTreeAsString"),H(Wqe,"_htmlElementAsString");const Gqe=1e3;let Kqe,Yqe,Zqe,Xqe;function Qqe(e){yqe("dom",e),vqe("dom",Jqe)}function Jqe(){if(!Vqe.document)return;const e=bqe.bind(null,"dom"),t=nze(e,!0);Vqe.document.addEventListener("click",t,!1),Vqe.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{var n,i;const r=null==(n=Vqe[t])?void 0:n.prototype;(null==(i=null==r?void 0:r.hasOwnProperty)?void 0:i.call(r,"addEventListener"))&&(Cqe(r,"addEventListener",(function(t){return function(n,i,r){if("click"===n||"keypress"==n)try{const i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=i[n]=i[n]||{refCount:0};if(!a.handler){const i=nze(e);a.handler=i,t.call(this,n,i,r)}a.refCount++}catch(tvt){}return t.call(this,n,i,r)}})),Cqe(r,"removeEventListener",(function(e){return function(t,n,i){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},r=n[t];r&&(r.refCount--,r.refCount<=0&&(e.call(this,t,r.handler,i),r.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(tvt){}return e.call(this,t,n,i)}})))}))}function eze(e){if(e.type!==Yqe)return!1;try{if(!e.target||e.target._sentryId!==Zqe)return!1}catch(tvt){}return!0}function tze(e,t){return"keypress"===e&&(!(null==t?void 0:t.tagName)||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}function nze(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=ize(n);if(tze(n.type,i))return;kqe(n,"_sentryCaptured",!0),i&&!i._sentryId&&kqe(i,"_sentryId",Pqe());const r="keypress"===n.type?"input":n.type;if(!eze(n)){e({event:n,name:r,global:t}),Yqe=n.type,Zqe=i?i._sentryId:void 0}clearTimeout(Kqe),Kqe=Vqe.setTimeout((()=>{Zqe=void 0,Yqe=void 0}),Gqe)}}function ize(e){try{return e.target}catch(tvt){return null}}function rze(e){const t="history";yqe(t,e),vqe(t,aze)}function aze(){function e(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const i=Xqe,r=sze(String(n));if(Xqe=r,i===r)return e.apply(this,t);bqe("history",{from:i,to:r})}return e.apply(this,t)}}Vqe.addEventListener("popstate",(()=>{const e=Vqe.location.href,t=Xqe;if(Xqe=e,t===e)return;bqe("history",{from:t,to:e})})),Hqe()&&(H(e,"historyReplacementFunction"),Cqe(Vqe.history,"pushState",e),Cqe(Vqe.history,"replaceState",e))}function sze(e){try{return new URL(e,Vqe.location.origin).toString()}catch(tvt){return e}}H(Qqe,"addClickKeypressInstrumentationHandler"),H(Jqe,"instrumentDOM"),H(eze,"isSimilarToLastCapturedEvent"),H(tze,"shouldSkipDOMEvent"),H(nze,"makeDOMEventHandler"),H(ize,"getEventTarget"),H(rze,"addHistoryInstrumentationHandler"),H(aze,"instrumentHistory"),H(sze,"getAbsoluteUrl");const oze={};function lze(e){const t=oze[e];if(t)return t;let n=Vqe[e];if(jqe(n))return oze[e]=n.bind(Vqe);const i=Vqe.document;if(i&&"function"==typeof i.createElement)try{const t=i.createElement("iframe");t.hidden=!0,i.head.appendChild(t);const r=t.contentWindow;(null==r?void 0:r[e])&&(n=r[e]),i.head.removeChild(t)}catch(tvt){Uqe&&pqe.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,tvt)}return n?oze[e]=n.bind(Vqe):n}function uze(e){oze[e]=void 0}H(lze,"getNativeImplementation"),H(uze,"clearCachedImplementation");const cze="__sentry_xhr_v3__";function dze(e){yqe("xhr",e),vqe("xhr",pze)}function pze(){if(!Vqe.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const i=new Error,r=1e3*Fqe(),a=Sqe(n[0])?n[0].toUpperCase():void 0,s=hze(n[1]);if(!a||!s)return e.apply(t,n);t[cze]={method:a,url:s,request_headers:{}}
102,"POST"===a&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const o=H((()=>{const e=t[cze];if(e&&4===t.readyState){try{e.status_code=t.status}catch(tvt){}bqe("xhr",{endTimestamp:1e3*Fqe(),startTimestamp:r,xhr:t,virtualError:i})}}),"onreadystatechangeHandler");return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(o(),e.apply(t,n))}):t.addEventListener("readystatechange",o),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[i,r]=n,a=t[cze];return a&&Sqe(i)&&Sqe(r)&&(a.request_headers[i.toLowerCase()]=r),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const i=t[cze];if(!i)return e.apply(t,n);void 0!==n[0]&&(i.body=n[0]);return bqe("xhr",{startTimestamp:1e3*Fqe(),xhr:t}),e.apply(t,n)}})}function hze(e){if(Sqe(e))return e;try{return e.toString()}catch(tvt){}}function fze(e){if("undefined"==typeof Element)return!1;try{return e instanceof Element}catch(tvt){return!1}}H(dze,"addXhrInstrumentationHandler"),H(pze,"instrumentXHR"),H(hze,"parseXhrUrlArg"),H(fze,"isElement");const mze=40;function gze(e,t=lze("fetch")){let n=0,i=0;function r(r){return V(this,null,(function*(){const a=r.body.length;n+=a,i++;const s=F({body:r.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&i<15},e.fetchOptions);try{const n=yield t(e.url,s);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(tvt){throw uze("fetch"),tvt}finally{n-=a,i--}}))}return H(r,"makeRequest"),Kje(e,r,jje(e.bufferSize||mze))}H(gze,"makeFetchTransport");const yze="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function vze(e,t,n,i){const r={filename:e,function:"<anonymous>"===t?gRe:t,in_app:!0};return void 0!==n&&(r.lineno=n),void 0!==i&&(r.colno=i),r}H(vze,"createFrame");const bze=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,_ze=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,wze=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sze=/at (.+?) ?\(data:(.+?),/,Cze=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,kze=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,xze=bRe(...[[30,H((e=>{var t;const n=e.match(Sze);if(n)return{filename:`<data:${n[2]}>`,function:n[1]};const i=bze.exec(e);if(i){const[,e,t,n]=i;return vze(e,gRe,+t,+n)}const r=_ze.exec(e);if(r){if(0===(null==(t=r[2])?void 0:t.indexOf("eval"))){const e=wze.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}const[e,n]=Tze(r[1]||gRe,r[2]);return vze(n,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}),"chromeStackParserFn")],[50,H((e=>{const t=Cze.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=kze.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||gRe;return[n,e]=Tze(n,e),vze(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}),"gecko")]]),Tze=H(((e,t)=>{const n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:gRe,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}),"extractSafariExtensionDetails"),Eze=1024,Aze=H(((e={})=>{const t=F({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e);return{name:"Breadcrumbs",setup(e){t.console&&QUe($ze(e)),t.dom&&Qqe(Ize(e,t.dom)),t.xhr&&dze(Dze(e)),t.fetch&&gVe(Pze(e)),t.history&&rze(Oze(e)),t.sentry&&e.on("beforeSendEvent",Lze(e))}}}),"_breadcrumbsIntegration");function Lze(e){return H((function(t){SFe()===e&&AUe({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:DNe(t)},{event:t})}),"addSentryBreadcrumb")}function Ize(e,t){return H((function(n){if(SFe()!==e)return;let i,r,a="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>Eze&&(yze&&fRe.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=Eze),"string"==typeof a&&(a=[a]
102);try{const e=n.event,t=Mze(e)?e.target:e;i=zqe(t,{keyAttrs:a,maxStringLength:s}),r=kVe(t)}catch(tvt){i="<unknown>"}if(0===i.length)return;const o={category:`ui.${n.name}`,message:i};r&&(o.data={"ui.component_name":r}),AUe(o,{event:n.event,name:n.name,global:n.global})}),"_innerDomBreadcrumb")}function $ze(e){return H((function(t){if(SFe()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:eVe(t.level),message:xNe(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${xNe(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}AUe(n,{input:t.args,level:t.level})}),"_consoleBreadcrumb")}function Dze(e){return H((function(t){if(SFe()!==e)return;const{startTimestamp:n,endTimestamp:i}=t,r=t.xhr[cze];if(!n||!i||!r)return;const{method:a,url:s,status_code:o,body:l}=r,u={method:a,url:s,status_code:o},c={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:i},d={category:"xhr",data:u,type:"http",level:dVe(o)};e.emit("beforeOutgoingRequestBreadcrumb",d,c),AUe(d,c)}),"_xhrBreadcrumb")}function Pze(e){return H((function(t){if(SFe()!==e)return;const{startTimestamp:n,endTimestamp:i}=t;if(i&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const r={data:t.error,input:t.args,startTimestamp:n,endTimestamp:i},a={category:"fetch",data:t.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,r),AUe(a,r)}else{const r=t.response,a=B(F({},t.fetchData),{status_code:null==r?void 0:r.status}),s={input:t.args,response:r,startTimestamp:n,endTimestamp:i},o={category:"fetch",data:a,type:"http",level:dVe(a.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",o,s),AUe(o,s)}}),"_fetchBreadcrumb")}function Oze(e){return H((function(t){if(SFe()!==e)return;let n=t.from,i=t.to;const r=PHe(xVe.location.href);let a=n?PHe(n):void 0;const s=PHe(i);(null==a?void 0:a.path)||(a=r),r.protocol===s.protocol&&r.host===s.host&&(i=s.relative),r.protocol===a.protocol&&r.host===a.host&&(n=a.relative),AUe({category:"navigation",data:{from:n,to:i}})}),"_historyBreadcrumb")}function Mze(e){return!!e&&!!e.target}H(Lze,"_getSentryBreadcrumbHandler"),H(Ize,"_getDomBreadcrumbHandler"),H($ze,"_getConsoleBreadcrumbHandler"),H(Dze,"_getXhrBreadcrumbHandler"),H(Pze,"_getFetchBreadcrumbHandler"),H(Oze,"_getHistoryBreadcrumbHandler"),H(Mze,"_isEvent");const Rze="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),Nze=H(((e={})=>{const t=F({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1},e);return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&QRe(xVe,"setTimeout",Fze),t.setInterval&&QRe(xVe,"setInterval",Fze),t.requestAnimationFrame&&QRe(xVe,"requestAnimationFrame",Bze),t.XMLHttpRequest&&"XMLHttpRequest"in xVe&&QRe(XMLHttpRequest.prototype,"send",Hze);const e=t.eventTarget;if(e){(Array.isArray(e)?e:Rze).forEach((e=>jze(e,t)))}}}}),"_browserApiErrorsIntegration");function Fze(e){return function(...t){const n=t[0];return t[0]=LVe(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${kRe(e)}`}}),e.apply(this,t)}}function Bze(e){return function(t){return e.apply(this,[LVe(t,{mechanism:{data:{handler:kRe(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Hze(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&QRe(n,e,(function(t){const n={mechanism:{data:{handler:kRe(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},i=tNe(t);return i&&(n.mechanism.data.handler=kRe(i)),LVe(t,n)}))})),e.apply(this,t)}}function jze(e,t){var n,i;const r=null==(n=xVe[e])?void 0:n.prototype;(null==(i=null==r?void 0:r.hasOwnProperty)?void 0:i.call(r,"addEventListener"))&&(QRe(r,"addEventListener",(function(n){return function(i,r,a){try{Uze(r)&&(r.handleEvent=LVe(r.handleEvent,{mechanism:{data:{handler:kRe(r),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch(tvt){}return t.unregisterOriginalCallbacks&&Vze(this,i,r),n.apply(this,[i,LVe(r,{mechanism:{data:{handler:kRe(r),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}})),QRe(r,"removeEventListener",(function(e){return function(t,n,i){try{const r=n.__sentry_wrapped__;r&&e.call(this,t,r,i)}catch(tvt){}return e.call(this,t,n,i)}})))}function Uze(e){return"function"==typeof e.handleEvent}function Vze(e,t,n){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,n)}H(Fze,"_wrapTimeFunction"),H(Bze,"_wrapRAF"),H(Hze,"_wrapXHR"),H(jze,"_wrapEventTarget"),H(Uze,"isEventListenerObject"),H(Vze,"unregisterOriginalCallback");const qze=(e={})=>{var t;const n=null!=(t=e.lifecycle)?t:"route";return{name:"BrowserSession",setupOnce(){if(void 0===xVe.document)return void(yze&&fRe.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));sje({ignoreDuration:!0}),uje();const e=bFe();let t=e.getUser();e.addScopeListener((e=>{const n=e.getUser();(null==t?void 0:t.id)===(null==n?void 0:n.id)&&(null==t?void 0:t.ip_address)===(null==n?void 0:n.ip_address)||(uje(),t=n)})),"route"===n&&rze((({from:e,to:t})=>{e!==t&&(sje({ignoreDuration:!0}),uje())}))}}},zze=H((()=>({name:"CultureContext",preprocessEvent(e){var t;const n=Wze();n&&(e.contexts=B(F({},e.contexts),{culture:F(F({},n),null==(t=e.contexts)?void 0:t.culture)}))},processSegmentSpan(e){const t=Wze();t&&MHe(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})),"_cultureContextIntegration");function Wze(){try{const e=xVe.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch(tvt){return}}H(Wze,"getCultureContext");const Gze=H(((e={})=>{const t=F({onerror:!0,onunhandledrejection:!0}
102,e);return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(Kze(e),Jze("onerror")),t.onunhandledrejection&&(Yze(e),Jze("onunhandledrejection"))}}}),"_globalHandlersIntegration");function Kze(e){DRe((t=>{const{stackParser:n,attachStacktrace:i}=eWe();if(SFe()!==e||EVe())return;const{msg:r,url:a,line:s,column:o,error:l}=t,u=Qze(VVe(n,l||r,void 0,i,!1),a,s,o);u.level="error",aje(u,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}))}function Yze(e){MRe((t=>{const{stackParser:n,attachStacktrace:i}=eWe();if(SFe()!==e||EVe())return;const r=Zze(t),a=zRe(r)?Xze(r):VVe(n,r,void 0,i,!0);a.level="error",aje(a,{originalException:r,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}))}function Zze(e){if(zRe(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(tvt){}return e}function Xze(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Qze(e,t,n,i){var r;const a=e.exception=e.exception||{},s=a.values=a.values||[],o=s[0]=s[0]||{},l=o.stacktrace=o.stacktrace||{},u=l.frames=l.frames||[];return 0===u.length&&u.push({colno:i,lineno:n,filename:null!=(r=tWe(t))?r:CVe(),function:gRe,in_app:!0}),e}function Jze(e){yze&&fRe.log(`Global Handler attached: ${e}`)}function eWe(){const e=SFe();return(null==e?void 0:e.getOptions())||{stackParser:H((()=>[]),"stackParser"),attachStacktrace:!1}}function tWe(e){if(VRe(e)&&0!==e.length)return e.startsWith("data:")?`<${OHe(e,!1)}>`:e}H(Kze,"_installGlobalOnErrorHandler"),H(Yze,"_installGlobalOnUnhandledRejectionHandler"),H(Zze,"_getUnhandledRejectionError"),H(Xze,"_eventFromRejectionWithPrimitive"),H(Qze,"_enhanceEventWithInitialFrame"),H(Jze,"globalHandlerLog"),H(eWe,"getOptions"),H(tWe,"getFilenameFromUrl");const nWe=()=>({name:"HttpContext",preprocessEvent(e){var t;if(!xVe.navigator&&!xVe.location&&!xVe.document)return;const n=IVe(),i=F(F({},n.headers),null==(t=e.request)?void 0:t.headers);e.request=B(F(F({},n),e.request),{headers:i})},processSegmentSpan(e){if(!xVe.navigator&&!xVe.location&&!xVe.document)return;const t=IVe();MHe(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers["User-Agent"],"http.request.header.referer":t.headers.Referer})}}),iWe=H(((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,i,r){qUe($Ve,r.getOptions().stackParser,n,t,e,i)}}}),"_linkedErrorsIntegration"),rWe=/^HTML(\w*)Element$/;function aWe(e){if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(fze(e)){const t=sWe(e);if(rWe.test(t))return`[HTMLElement: ${zqe(e)}]`}}function sWe(e){const t=Object.getPrototypeOf(e);return(null==t?void 0:t.constructor)?t.constructor.name:"null prototype"}function oWe(){return!!lWe()&&(yze&&aRe((()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")})),!0)}function lWe(){var e;if(void 0===xVe.window)return!1;const t=xVe;if(t.nw)return!1;const n=t.chrome||t.browser;if(!(null==(e=null==n?void 0:n.runtime)?void 0:e.id))return!1;const i=CVe();return!(xVe===xVe.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(i))}function uWe(e){return[OUe(),$Ue(),cVe(),Nze(),Aze(),Gze(),iWe(),iVe(),nWe(),zze(),qze()]}function cWe(e={}){const t=!e.skipBrowserExtensionCheck&&oWe();let n=null==e.defaultIntegrations?uWe():e.defaultIntegrations;const i=B(F({},e),{enabled:!t&&e.enabled,stackParser:_Re(e.stackParser||xze),integrations:yje({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||gze});return mNe(aWe),CUe(YVe,i)}H(aWe,"normalizeStringifyValue"),H(sWe,"getConstructorName"),H(oWe,"checkAndWarnIfIsEmbeddedBrowserExtension"),H(lWe,"_isEmbeddedBrowserExtension"),H(uWe,"getDefaultIntegrations"),H(cWe,"init$1");const dWe="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,pWe=globalThis,hWe="10.57.0";function fWe(){return mWe(pWe),pWe}function mWe(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||hWe,t[hWe]=t[hWe]||{}}function gWe(e,t,n=pWe){const i=n.__SENTRY__=n.__SENTRY__||{},r=i[hWe]=i[hWe]||{};return r[e]||(r[e]=t())}H(fWe,"getMainCarrier"),H(mWe,"getSentryCarrier"),H(gWe,"getGlobalSingleton");const yWe="Sentry Logger ",vWe={};function bWe(e){if(!("console"in pWe))return e();const t=pWe.console,n={},i=Object.keys(vWe);
102i.forEach((e=>{const i=vWe[e];n[e]=t[e],t[e]=i}));try{return e()}finally{i.forEach((e=>{t[e]=n[e]}))}}function _We(){EWe().enabled=!0}function wWe(){EWe().enabled=!1}function SWe(){return EWe().enabled}function CWe(...e){TWe("log",...e)}function kWe(...e){TWe("warn",...e)}function xWe(...e){TWe("error",...e)}function TWe(e,...t){dWe&&SWe()&&bWe((()=>{pWe.console[e](`${yWe}[${e}]:`,...t)}))}function EWe(){return dWe?gWe("loggerSettings",(()=>({enabled:!1}))):{enabled:!1}}H(bWe,"consoleSandbox"),H(_We,"enable"),H(wWe,"disable"),H(SWe,"isEnabled"),H(CWe,"log"),H(kWe,"warn$3"),H(xWe,"error$2"),H(TWe,"_maybeLog"),H(EWe,"_getLoggerSettings");const AWe={enable:_We,disable:wWe,isEnabled:SWe,log:CWe,warn:kWe,error:xWe},LWe=Object.prototype.toString;function IWe(e,t){return LWe.call(e)===`[object ${t}]`}function $We(e){return IWe(e,"Object")}function DWe(e){return Boolean((null==e?void 0:e.then)&&"function"==typeof e.then)}function PWe(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(tvt){dWe&&AWe.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}let OWe,MWe;function RWe(e){if(void 0!==OWe)return OWe?OWe(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=pWe;return t in n&&"function"==typeof n[t]?(OWe=n[t],OWe(e)):(OWe=null,e())}function NWe(){return RWe((()=>Math.random()))}function FWe(){return RWe((()=>Date.now()))}function BWe(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function HWe(){const e=pWe;return e.crypto||e.msCrypto}function jWe(){return 16*NWe()}function UWe(e=HWe()){try{if(null==e?void 0:e.randomUUID)return RWe((()=>e.randomUUID())).replace(/-/g,"")}catch(tvt){}return MWe||(MWe="10000000100040008000100000000000"),MWe.replace(/[018]/g,(e=>(e^(15&jWe())>>e/4).toString(16)))}H(IWe,"isBuiltin"),H($We,"isPlainObject$2"),H(DWe,"isThenable"),H(PWe,"addNonEnumerableProperty"),H(RWe,"withRandomSafeContext"),H(NWe,"safeMathRandom"),H(FWe,"safeDateNow"),H(BWe,"truncate$1"),H(HWe,"getCrypto"),H(jWe,"getRandomByte"),H(UWe,"uuid4");const VWe=1e3;function qWe(){return FWe()/VWe}function zWe(){const{performance:e}=pWe;if(!(null==e?void 0:e.now)||!e.timeOrigin)return qWe;const t=e.timeOrigin;return()=>(t+RWe((()=>e.now())))/VWe}let WWe;function GWe(){return(null!=WWe?WWe:WWe=zWe())()}function KWe(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||GWe(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:UWe()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function YWe(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;const i=F({},e);for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=YWe(i[r],t[r],n-1));return i}function ZWe(){return UWe()}function XWe(e){try{const t=pWe.WeakRef;if("function"==typeof t)return new t(e)}catch(tvt){}return e}function QWe(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch(tvt){return}return e}}H(qWe,"dateTimestampInSeconds"),H(zWe,"createUnixTimestampInSecondsFunc"),H(GWe,"timestampInSeconds"),H(KWe,"updateSession"),H(YWe,"merge$1"),H(ZWe,"generateTraceId"),H(XWe,"makeWeakRef"),H(QWe,"derefWeakRef");const JWe="_sentrySpan";function eGe(e,t){t?PWe(e,JWe,XWe(t)):delete e[JWe]}function tGe(e){return QWe(e[JWe])}H(eGe,"_setSpanForScope"),H(tGe,"_getSpanForScope");const nGe=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:ZWe(),sampleRand:NWe()}}clone(){const t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags=F({},this._tags),t._attributes=F({},this._attributes),t._extra=F({},this._extra),t._contexts=F({},this._contexts),this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata=F({},this._sdkProcessingMetadata),t._propagationContext=F({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,eGe(t,tGe(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&KWe(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags=F(F({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes=F(F({},this._attributes),e),this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra=F(F({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,t){return this._extra=B(F({},this._extra),{[e]:t}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n="function"==typeof t?t(this):t,i=n instanceof e?n.getScopeData():$We(n)?t:void 0,{tags:r,attributes:a,extra:s,user:o,contexts:l,level:u,fingerprint:c=[],propagationContext:d,conversationId:p}=i||{};return this._tags=F(F({},this._tags),r),this._attributes=F(F({},this._attributes),a),this._extra=F(F({},this._extra),s),this._contexts=F(F({},this._contexts),l),o&&Object.keys(o).length&&(this._user=o),u&&(this._level=u),c.length&&(this._fingerprint=c),d&&(this._propagationContext=d),p&&(this._conversationId=p),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,eGe(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ZWe(),sampleRand:NWe()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){var n;const i="number"==typeof t?t:100;if(i<=0)return this;const r=B(F({timestamp:qWe()},e),{message:e.message?BWe(e.message,2048):e.message});return this._breadcrumbs.push(r),this._breadcrumbs.length>i&&(this._breadcrumbs=this._breadcrumbs.slice(-i),null==(n=this._client)||n.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:tGe(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=YWe(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}
102captureException(e,t){const n=(null==t?void 0:t.event_id)||UWe();if(!this._client)return dWe&&AWe.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(e,B(F({originalException:e,syntheticException:i},t),{event_id:n}),this),n}captureMessage(e,t,n){var i;const r=(null==n?void 0:n.event_id)||UWe();if(!this._client)return dWe&&AWe.warn("No client configured on scope - will not capture message!"),r;const a=null!=(i=null==n?void 0:n.syntheticException)?i:new Error(e);return this._client.captureMessage(e,t,B(F({originalException:e,syntheticException:a},n),{event_id:r}),this),r}captureEvent(e,t){const n=e.event_id||(null==t?void 0:t.event_id)||UWe();return this._client?(this._client.captureEvent(e,B(F({},t),{event_id:n}),this),n):(dWe&&AWe.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}};H(nGe,"Scope");let iGe=nGe;function rGe(){return gWe("defaultCurrentScope",(()=>new iGe))}function aGe(){return gWe("defaultIsolationScope",(()=>new iGe))}H(rGe,"getDefaultCurrentScope"),H(aGe,"getDefaultIsolationScope");const sGe=H((e=>e instanceof Promise&&!e[oGe]),"isActualPromise"),oGe=Symbol("chained PromiseLike"),lGe=H(((e,t,n)=>{const i=e.then((e=>(t(e),e)),(e=>{throw n(e),e}));return sGe(i)&&sGe(e)?i:uGe(e,i)}),"chainAndCopyPromiseLike"),uGe=H(((e,t)=>{if(!t)return e;let n=!1;for(const i in e){if(i in t)continue;n=!0;const r=e[i];"function"==typeof r?Object.defineProperty(t,i,{value:H(((...t)=>r.apply(e,t)),"value"),enumerable:!0,configurable:!0,writable:!0}):t[i]=r}return n&&Object.assign(t,{[oGe]:!0}),t}),"copyProps"),cGe=class{constructor(e,t){let n,i;n=e||new iGe,i=t||new iGe,this._stack=[{scope:n}],this._isolationScope=i}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(tvt){throw this._popScope(),tvt}return DWe(n)?lGe(n,(()=>this._popScope()),(()=>this._popScope())):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}};H(cGe,"AsyncContextStack");let dGe=cGe;function pGe(){const e=mWe(fWe());return e.stack=e.stack||new dGe(rGe(),aGe())}function hGe(e){return pGe().withScope(e)}function fGe(e,t){const n=pGe();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function mGe(e){return pGe().withScope((()=>e(pGe().getIsolationScope())))}function gGe(){return{withIsolationScope:mGe,withScope:hGe,withSetScope:fGe,withSetIsolationScope:H(((e,t)=>mGe(t)),"withSetIsolationScope"),getCurrentScope:H((()=>pGe().getScope()),"getCurrentScope"),getIsolationScope:H((()=>pGe().getIsolationScope()),"getIsolationScope")}}function yGe(e){const t=mWe(e);return t.acs?t.acs:gGe()}function vGe(){return yGe(fWe()).getCurrentScope()}function bGe(){return vGe().getClient()}function _Ge(e){var t;if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const n=e||(null==(t=bGe())?void 0:t.getOptions());return!(!n||null==n.tracesSampleRate&&!n.tracesSampler)}function wGe(e){if(e)return SGe(e)||kGe(e)?{captureContext:e}:e}function SGe(e){return e instanceof iGe||"function"==typeof e}H(pGe,"getAsyncContextStack"),H(hGe,"withScope"),H(fGe,"withSetScope"),H(mGe,"withIsolationScope"),H(gGe,"getStackAsyncContextStrategy"),H(yGe,"getAsyncContextStrategy"),H(vGe,"getCurrentScope$1"),H(bGe,"getClient"),H(_Ge,"hasSpansEnabled"),H(wGe,"parseEventHintOrCaptureContext"),H(SGe,"hintIsScopeOrFunction");const CGe=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function kGe(e){return Object.keys(e).some((e=>CGe.includes(e)))}function xGe(e,t){return vGe().captureException(e,wGe(t))}function TGe(e){return e}function EGe(e,t,n=[t],i="npm"){const r=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};r.name||(r.name=`sentry.javascript.${t}`,r.packages=n.map((e=>({name:`${i}:@sentry/${e}`,version:hWe}))),r.version=hWe)}H(kGe,"hintIsScopeContext"),H(xGe,"captureException"),H(TGe,"defineIntegration"),H(EGe,"applySdkMetadata");const AGe=["activate","mount"],LGe="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,IGe=/(?:^|[-_])(\w)/g,$Ge=H((e=>e.replace(IGe,(e=>e.toUpperCase())).replace(/[-_]/g,"")),"classify$1"),DGe="<Anonymous>",PGe=H(((e,t)=>e.repeat(t)),"repeat"),OGe=H(((e,t)=>{if(!e)return DGe;if(e.$root===e)return"<Root>";if(!e.$options)return DGe;const n=e.$options;let i=n.name||n._componentTag||n.__name;const r=n.__file;if(!i&&r){const e=r.match(/([^/\\]+)\.vue$/);e&&(i=e[1])}return(i?`<${$Ge(i)}>`:DGe)+(r&&!1!==t?` at ${r}`:"")}),"formatComponentName$1"),MGe=H((e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const i=t[t.length-1];if(i.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[i,n],n=0)}t.push(e),e=e.$parent}return`\n\nfound in\n\n${t.map(((e,t)=>`${(0===t?"---\x3e ":PGe(" ",5+2*t))+(Array.isArray(e)?`${OGe(e[0])}... (${e[1]} recursive calls)`:OGe(e))}`)).join("\n")}`}return`\n\n(found in ${OGe(e)})`}),"generateComponentTrace"),RGe=H(((e,t)=>{const{errorHandler:n}=e.config;e.config.errorHandler=(i,r,a)=>{var s;const o={componentName:OGe(r,!1),lifecycleHook:a,trace:r?MGe(r):""};if(!1!==(null==t?void 0:t.attachProps)&&r&&((null==(s=r.$options)?void 0:s.propsData)?o.propsData=r.$options.propsData:r.$props&&(o.propsData=r.$props)),setTimeout((()=>{xGe(i,{captureContext:{contexts:{vue:o}},mechanism:{handled:!!n,type:"auto.function.vue.error_handler"}})}
102)),"function"!=typeof n||!e.config.errorHandler)throw i;n.call(e,i,r,a)}}),"attachErrorHandler"),NGe="ui.vue",FGe={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function BGe(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout((()=>{var n;(null==(n=e.$root)?void 0:n.$_sentryRootComponentSpan)&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)}),n)}function HGe(e,t){function n(e){return e.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}H(n,"extractComponentName");return e.some((e=>n(t)===n(e)))}H(BGe,"maybeEndRootComponentSpan"),H(HGe,"findTrackComponent");const jGe=H(((e={})=>{const t=(e.hooks||[]).concat(AGe).filter(((e,t,n)=>n.indexOf(e)===t)),n={},i=e.timeout||2e3;for(const r of t){const t=FGe[r];if(t)for(const a of t)n[a]=function(){var n;const s=this.$root===this;s&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||fHe({name:"Application Render",op:`${NGe}.render`,attributes:{[AFe]:"auto.ui.vue"},onlyIfParent:!0}),BGe(this,GWe(),i));const o=OGe(this,!1);if(!(s||(Array.isArray(e.trackComponents)?HGe(e.trackComponents,o):e.trackComponents)))return void BGe(this,GWe(),i);this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};const l=a===t[0],u=(null==(n=this.$root)?void 0:n.$_sentryRootComponentSpan)||wBe();if(l){if(u){const e=this.$_sentryComponentSpans[r];e&&e.end(),this.$_sentryComponentSpans[r]=fHe({name:`Vue ${o}`,op:`${NGe}.${r}`,attributes:{[AFe]:"auto.ui.vue"},onlyIfParent:!0})}}else{const e=this.$_sentryComponentSpans[r];if(!e)return;e.end(),BGe(this,GWe(),i)}};else LGe&&AWe.warn(`Unknown hook: ${r}`)}return n}),"createTracingMixins"),UGe={Vue:pWe.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:AGe,timeout:2e3,trackComponents:!1}},VGe=(e={})=>({name:"Vue",setup(t){const n=F(F(F({},UGe),t.getOptions()),e);if(n.Vue||n.app)if(n.app){(Array.isArray(n.app)?n.app:[n.app]).forEach((e=>qGe(e,n)))}else n.Vue&&qGe(n.Vue,n);else bWe((()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")}))}}),qGe=H(((e,t)=>{var n;if(LGe){!0===(null==(n=e._instance)?void 0:n.isMounted)&&bWe((()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}))}t.attachErrorHandler&&RGe(e,t),_Ge(t)&&e.mixin(jGe(t.tracingOptions))}),"vueInit");function zGe(e={}){const t=F({defaultIntegrations:[...uWe(),VGe()]},e);EGe(t,"vue");return cWe(t)}H(zGe,"init");var WGe=/^(GTM|G)-[0-9A-Z]+$/;function GGe(e){if("string"!=typeof e||!WGe.test(e)){let t=String(e).toUpperCase().replace(/.*-|[^0-9A-Z]/g,""),n=0===t.length?"":` Did you mean 'GTM-${t}' or 'G-${t}'?`;throw new Error(`'${e}' is not a valid GTM-ID (${WGe}).${n}`)}}function KGe(e,t="dataLayer"){return e[t]||(e[t]=[]),e[t]}function YGe(e,t){var n,i,r,a;let s=document,o=s.createElement("script"),l=H((n=>{var i;null==(i=t.onReady)||i.call(t,{id:e,script:o}),o.removeEventListener("load",l)}),"o");o.addEventListener("load",l);let u=null!=(n=t.dataLayerName)?n:"dataLayer";if(KGe(window,u).push({event:"gtm.js","gtm.start":(new Date).getTime()}),!e)return o;o.async=!t.defer,o.defer=!(!t.defer&&!t.compatibility),t.nonce&&o.setAttribute("nonce",t.nonce),t.scriptType&&(o.type=t.scriptType);let c=new URLSearchParams(F(F({id:e},t.dataLayerName?{l:t.dataLayerName}:{}),null!=(i=t.queryParams)?i:{})),d=null!=(r=t.source)?r:"https://www.googletagmanager.com/gtm.js";o.src=`${d}?${c}`;let p=null!=(a=t.parentElement)?a:s.body;if("function"!=typeof(null==p?void 0:p.appendChild))throw new Error("parentElement must be a DOM element");return p.appendChild(o),o}function ZGe(e="https://www.googletagmanager.com/gtm.js"){return Array.from(document.getElementsByTagName("script")).some((t=>t.src.includes(e)))}
102H(GGe,"s"),H(KGe,"n$1"),H(YGe,"p"),H(ZGe,"y");var XGe,QGe=(y=class{constructor(e){if(U(this,"id"),U(this,"options"),U(this,"scriptElements",[]),U(this,"isInBrowserContext",H((()=>typeof window<"u"),"isInBrowserContext")),Array.isArray(e.id))for(let t of e.id)GGe("string"==typeof t?t:t.id);else GGe(e.id);this.id=e.id,this.options=F({enabled:!0,debug:!1,loadScript:!0,defer:!1,compatibility:!1,dataLayerName:"dataLayer"},e),delete this.options.id}enabled(){var e;return null==(e=this.options.enabled)||e}enable(e=!0,t){if(this.options.enabled=e,this.isInBrowserContext()&&e&&!ZGe(t)&&this.options.loadScript)if(Array.isArray(this.id))this.id.forEach((e=>{let t;t="string"==typeof e?YGe(e,F({},this.options)):YGe(e.id,B(F({},this.options),{queryParams:e.queryParams})),this.scriptElements.push(t)}));else{let e=YGe(this.id,F({},this.options));this.scriptElements.push(e)}}debugEnabled(){var e;return null!=(e=this.options.debug)&&e}debug(e){this.options.debug=e}dataLayer(){return!(!this.isInBrowserContext()||!this.options.enabled)&&KGe(window,this.options.dataLayerName)}trackView(e,t,n={}){var i,r;let a=this.isInBrowserContext()&&null!=(i=this.options.enabled)&&i;this.options.debug&&console.log(`[GTM-Support${a?"":"(disabled)"}]: Dispatching TrackView`,{screenName:e,path:t}),a&&KGe(window,this.options.dataLayerName).push(B(F({},n),{event:null!=(r=this.options.trackViewEventProperty)?r:"content-view","content-name":t,"content-view-name":e}))}trackEvent(e={}){var t,n=e,{event:i,category:r=null,action:a=null,label:s=null,value:o=null,noninteraction:l=!1}=n,u=j(n,["event","category","action","label","value","noninteraction"]);let c=this.isInBrowserContext()&&null!=(t=this.options.enabled)&&t;this.options.debug&&console.log(`[GTM-Support${c?"":"(disabled)"}
102]: Dispatching event`,F({event:i,category:r,action:a,label:s,value:o},u)),c&&KGe(window,this.options.dataLayerName).push(F({event:null!=i?i:"interaction",target:r,action:a,"target-properties":s,value:o,"interaction-type":l},u))}push(e){var t;let n=this.isInBrowserContext()&&null!=(t=this.options.enabled)&&t;this.options.debug&&console.log(`[GTM-Support${n?"":"(disabled)"}]: Dispatching event`,e),n&&KGe(window,this.options.dataLayerName).push(e)}},H(y,"u"),y);function JGe(e,t={id:""}){t=F({trackOnNextTick:!1},t),XGe=new QGe(t),e.config.globalProperties.$gtm=XGe,XGe.isInBrowserContext()&&(t.vueRouter&&eKe(e,t.vueRouter,t.ignoredViews,t.trackOnNextTick,t.vueRouterAdditionalEventData),XGe.options.enabled&&XGe.options.loadScript&&(Array.isArray(t.id)?t.id.forEach((e=>{if("string"==typeof e)YGe(e,t);else{let n=F({},t);null!=e.queryParams&&(n.queryParams=F(F({},n.queryParams),e.queryParams)),YGe(e.id,n)}})):YGe(t.id,t))),e.provide("gtm",t)}function eKe(e,t,n=[],i,r=(()=>({}))){function a(e,t){return e instanceof Error&&!!(e.type&t)}H(a,"p"),t.afterEach(((e,s,o)=>V(this,null,(function*(){var l,u,c,d;if("string"!=typeof e.name||Array.isArray(n)&&n.includes(e.name)||"function"==typeof n&&n(e,s))return;let p=e.meta&&"string"==typeof e.meta.gtm&&e.meta.gtm?e.meta.gtm:e.name;a(o,4)?(null==XGe?void 0:XGe.debugEnabled())&&console.log(`[VueGtm]: '${p}' not tracked due to navigation aborted`):a(o,8)&&(null==XGe?void 0:XGe.debugEnabled())&&console.log(`[VueGtm]: '${p}' not tracked due to navigation cancelled`);let h=F(F({},yield r(e,s)),null==(l=e.meta)?void 0:l.gtmAdditionalEventData),f=null!=(d=null==(c=null==(u=t.options)?void 0:u.history)?void 0:c.base)?d:"";f.endsWith("/")||(f+="/"),f+=e.fullPath.startsWith("/")?e.fullPath.substring(1):e.fullPath,i?vi((()=>{null==XGe||XGe.trackView(p,f,h)})):null==XGe||XGe.trackView(p,f,h)}))))}function tKe(e){return{install:H((t=>JGe(t,e)),"install")}}function nKe(){var e,t,n,i,r,a;return null!=(a=null==(r=null==(i=null==(n=null==(t=null==(e=io())?void 0:e.appContext)?void 0:t.app)?void 0:n.config)?void 0:i.globalProperties)?void 0:r.$gtm)?a:XGe}function iKe(e,t,n){const i=/^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*:)*?:?0*1$/.test(location.hostname)||"file:"===location.protocol;if(!t.trackLocalhost&&i)return console.warn("[Plausible] Ignoring event because website is running locally");try{if("true"===window.localStorage.plausible_ignore)return console.warn('[Plausible] Ignoring event because "plausible_ignore" is set to "true" in localStorage')}catch(tvt){}const r={n:e,u:t.url,d:t.domain,r:t.referrer,w:t.deviceWidth,h:t.hashMode?1:0,p:n&&n.props?JSON.stringify(n.props):void 0},a=new XMLHttpRequest;a.open("POST",`${t.apiHost}/api/event`,!0),a.setRequestHeader("Content-Type","text/plain"),a.send(JSON.stringify(r)),a.onreadystatechange=()=>{4===a.readyState&&n&&n.callback&&n.callback()}}function rKe(e){const t=H((()=>F({hashMode:!1,trackLocalhost:!1,url:location.href,domain:location.hostname,referrer:document.referrer||null,deviceWidth:window.innerWidth,apiHost:"https://plausible.io"},e)),"getConfig"),n=H(((e,n,i)=>{iKe(e,F(F({},t()),i),n)}),"trackEvent"),i=H(((e,t)=>{n("pageview",t,e)}),"trackPageview"),r=H((()=>{const t=H((()=>i()),"page"),n=history.pushState;return n&&(history.pushState=function(e,i,r){n.apply(this,[e,i,r]),t()},addEventListener("popstate",t)),e&&e.hashMode&&addEventListener("hashchange",t),i(),H((function(){n&&(history.pushState=n,removeEventListener("popstate",t)),e&&e.hashMode&&removeEventListener("hashchange",t)}),"cleanup")}),"enableAutoPageviews"),a=H(((e=document,t={subtree:!0,childList:!0,attributes:!0,attributeFilter:["href"]})=>{function i(e){n("Outbound Link: Click",{props:{url:this.href}}),"undefined"!=typeof process&&process,setTimeout((()=>{location.href=this.href}),150),e.preventDefault()}H(i,"trackClick");const r=new Set;function a(e){e instanceof HTMLAnchorElement?e.host!==location.host&&(e.addEventListener("click",i),r.add(e)):"querySelectorAll"in e&&e.querySelectorAll("a").forEach(a)}function s(e){e instanceof HTMLAnchorElement?(e.removeEventListener("click",i),r.delete(e)):"querySelectorAll"in e&&e.querySelectorAll("a").forEach(s)}H(a,"addNode"),H(s,"removeNode");const o=new MutationObserver((e=>{e.forEach((e=>{"attributes"===e.type?(s(e.target),a(e.target)):"childList"===e.type&&(e.addedNodes.forEac
102h(a),e.removedNodes.forEach(s))}))}));return e.querySelectorAll("a").forEach(a),o.observe(e,t),H((function(){r.forEach((e=>{e.removeEventListener("click",i)})),r.clear(),o.disconnect()}),"cleanup")}),"enableAutoOutboundTracking");return{trackEvent:n,trackPageview:i,enableAutoPageviews:r,enableAutoOutboundTracking:a}}H(JGe,"c"),H(eKe,"v"),H(tKe,"V"),H(nKe,"R"),H(iKe,"sendEvent"),H(rKe,"Plausible");var aKe={},sKe=Object.defineProperty,oKe=H(((e,t)=>sKe(e,"name",{value:t,configurable:!0})),"__name$1");function lKe(e){return null!=e&&e.endsWith("/")?e.substring(0,e.length-1):e}function uKe(e){return null!=e&&0==e.endsWith("/")?e+"/":e}H(lKe,"trimTrailingSlash"),oKe(lKe,"trimTrailingSlash"),H(uKe,"addTrailingSlash$1"),oKe(uKe,"addTrailingSlash$1");const cKe="https://data.getty.edu/vocab/aat/",dKe="https://data.getty.edu/vocab/tgn/",pKe="https://data.getty.edu/vocab/ulan/",hKe="https://services.getty.edu/id-management",fKe=["ID_MANAGER_BASE_URL","ID_MANAGER_DATA_URL"];function mKe(e,t){return null!=e&&""!=e.trim()?e:t}function gKe(e,t){return null==e?t:"boolean"==typeof e?e:""!=e.trim()?e.toLowerCase().indexOf("t")>-1:t}function yKe(e,t){if(null!=e&&""!=e.trim()){const n=parseInt(e);return"number"!=typeof n?(console.error(`Environment Variable value ${e} is not a number (default used instead)`),parseInt(t)):n}return parseInt(t)}function vKe(e){let t=document.getElementById(e);if(null==t)return;let n=t.innerText;if(null!=n)try{return JSON.parse(n)}catch(tvt){console.error(tvt)}}H(mKe,"getEnv"),oKe(mKe,"getEnv"),H(gKe,"getBooleanEnv"),oKe(gKe,"getBooleanEnv"),H(yKe,"getIntEnv"),oKe(yKe,"getIntEnv"),H(vKe,"getConfig"),oKe(vKe,"getConfig");let bKe=new Function("try {return this===global && process != undefined;}catch(e){return false;}"),_Ke=new Function("try {return process?.env || {};} catch(e){return {};}"),wKe=new Function("try { return (process.env.IS_STORYBOOK !== null && (process.env.IS_STORYBOOK === true || process.env.IS_STORYBOOK.toLowerCase().startsWith('t'))); } catch (e) { return false; }");function SKe(e,t="appConfig",n){var i;let r;if(bKe()&&!wKe()){r={};const e=_Ke();let t=(null==(i=e.NODE_ENV_ALLOWED_LIST)?void 0:i.split(","))||[];t=t.concat(fKe),t.forEach((t=>{r[t]=e[t]}))}else r=vKe(t);return null!=r&&null!=r[e]?r[e]:n}function CKe(e,t,n){return gKe(SKe(e,t,n),n)}function kKe(e,t,n){return yKe(SKe(e,t,n),n)}function xKe(){return yKe(aKe.AXIOS_GET_TIMEOUT,0)}function TKe(){return yKe(aKe.AXIOS_ERROR_RETRY_LIMIT,0)}function EKe(){return mKe(aKe.AXIOS_ERROR_CODE_RETRY_LIST,"ECONNRESET").split(";")}function AKe(){return mKe(aKe.AXIOS_ERROR_RETRY_LIST,"500;502;503;504").split(";").map((e=>parseInt(e)))}function LKe(e){let t;try{null!=document&&(t=SKe("SENTRY_ID"))}catch(tvt){e&&e.trace(tvt)}return t}function IKe(){return SKe("SENTRY_DENY_URLS",void 0,"criteo.com").split(";")}function $Ke(e){let t;try{null!=document&&(t=SKe("APP_ENVIRONMENT",void 0,"dev"))}catch(tvt){e&&e.trace(tvt)}return t}function DKe(e){let t="None";try{null!=document&&(t=SKe("SENTRY_BROWSERS",void 0,"yeti"))}catch(tvt){e&&e.trace(tvt)}return t.split(",")}function PKe(e){let t;try{null!=document&&(t=SKe("GOOGLE_ANALYTICS_ID"))}catch(tvt){e&&e.trace(tvt)}return t}function OKe(e){let t="None";try{null!=document&&(t=SKe("IGNORE_VOCAB_LIST",void 0,t))}catch(tvt){e&&e.trace(tvt)}return t=mKe(aKe.IGNORE_VOCAB_LIST,t),t.split(";")}function MKe(e){try{if(null!=document)return SKe("AAT_URL",void 0,cKe)}catch(tvt){e&&e.trace(tvt)}return null!=aKe.AAT_URL&&aKe.AAT_URL.indexOf("http")>-1?aKe.AAT_URL:cKe}function RKe(e){try{if(null!=document)return SKe("AAT_SUFFIX",void 0,"")}catch(tvt){e&&e.trace(tvt)}return null!=aKe.AAT_SUFFIX?aKe.AAT_SUFFIX:""}function NKe(e){try{if(null!=document)return SKe("TGN_URL",void 0,dKe)}catch(tvt){e&&e.trace(tvt)}return null!=aKe.TGN_URL&&aKe.TGN_URL.indexOf("http")>-1?aKe.TGN_URL:dKe}function FKe(e){try{if(null!=document)return SKe("ULAN_URL",void 0,pKe)}catch(tvt){e&&e.trace(tvt)}return null!=aKe.ULAN_URL&&aKe.ULAN_URL.indexOf("http")>-1?aKe.ULAN_URL:pKe}function BKe(){return SKe("LOCATION_BANNER_LOCATION")}function HKe(){return SKe("IIIF_IMAGE_BASE_URL",void 0,"https://media.getty.edu/iiif/image")}function jKe(){return SKe("LOG_DEPRECATION_WARNINGS")}function UKe(e,t=hKe){try{if(0==bKe()&&null!=document)return SKe("ID_MANAGER_URL",void 0,t)}catch(tvt){e&&e.trace(tvt)}return mKe(aKe.ID_MANAGER_URL,t)}function VKe(e=iYe()){return addTrailingSlash(SKe("ID_MANAGER_DATA_URL",void 0,e))}function qKe(){return SKe("IIIF_BASE_URL",void 0,"https://media.getty.edu/iiif/image")}
102function zKe(){return SKe("IIIF_IMAGE_URL_PART",void 0,"image")}function WKe(){return mKe(aKe.ID_MANAGER_USERNAME,"dummy")}function GKe(){return mKe(aKe.ENTRA_CLIENT_ID,null)}function KKe(){return mKe(aKe.ENTRA_AUTHORITY_URL,null)}function YKe(){return mKe(aKe.ENTRA_CLIENT_SECRET,null)}function ZKe(){return mKe(aKe.ENTRA_CLIENT_SCOPES,null).split(",")}function XKe(){return gKe(aKe.USE_ENTRA_AUTH,!1)}function QKe(){return mKe(aKe.ID_MANAGER_PASSWORD,"MAGIC_KEY")}function JKe(e){return lKe(SKe("ID_MANAGER_BASE_URL",void 0,sYe()))}function eYe(){return SKe("CONTENTSTACK_API_KEY")}function tYe(){return SKe("CONTENTSTACK_DELIVERY_TOKEN")}function nYe(){return SKe("CONTENTSTACK_ENVIRONMENT")}function iYe(e){return SKe("DATA_URL",void 0,e)}function rYe(){return SKe("MEDIA_DATA_URL",void 0,"https://data.getty.edu/media/")}function aYe(){return CKe("STRIP_PUNCTUATION_FROM_QUERY_STRING",void 0,!0)}function sYe(){return SKe("APP_URL",void 0,"https://www.getty.edu/")}function oYe(){return SKe("API_PATH",void 0,sYe())}function lYe(){const e=CKe("ALERT_IS_URGENT",void 0,!0),t=SKe("ALERT_TYPE",void 0,""),n=SKe("ALERT_MESSAGE",void 0,"");if(null!=n&&""!=n.trim())return{active:!0,content:n,title:t,uid:"5FHi8FDXBzBOzhdNAjuZMK",urgent:e}}function uYe(){return SKe("MIRADOR_URL",void 0,"https://staging-tools.aws.getty.edu/iiifviewer/")}function cYe(){return SKe("GETTY_UI_BASE_URL",void 0,"https://www.getty.edu")}function dYe(){return SKe("FEEDBACK_FORM_URL",void 0,"https://forms.cloud.microsoft/r/aDr5rYKsxg")}function pYe(){return SKe("SITEWIDE_SEARCH_RELATED_URL",void 0,"https://www.getty.edu/search/api/related")}H(SKe,"getConfigValue"),oKe(SKe,"getConfigValue"),H(CKe,"getBooleanConfigValue"),oKe(CKe,"getBooleanConfigValue"),H(kKe,"getIntConfigValue"),oKe(kKe,"getIntConfigValue"),H(xKe,"getAxiosGetTimeout"),oKe(xKe,"getAxiosGetTimeout"),H(TKe,"getAxiosRetryLimit"),oKe(TKe,"getAxiosRetryLimit"),H(EKe,"getAxiosErrorCodeRetryList"),oKe(EKe,"getAxiosErrorCodeRetryList"),H(AKe,"getAxiosRetryList"),oKe(AKe,"getAxiosRetryList"),H(LKe,"getSentryId"),oKe(LKe,"getSentryId"),H(IKe,"getSentryDenyUrls"),oKe(IKe,"getSentryDenyUrls"),H($Ke,"getEnvironment"),oKe($Ke,"getEnvironment"),H(DKe,"getFilteredBrowsers"),oKe(DKe,"getFilteredBrowsers"),H(PKe,"getGoogleAnalyticsId"),oKe(PKe,"getGoogleAnalyticsId"),H(OKe,"getIgnoreVocabList"),oKe(OKe,"getIgnoreVocabList"),H(MKe,"getAATUrl"),oKe(MKe,"getAATUrl"),H(RKe,"getAATSuffix"),oKe(RKe,"getAATSuffix"),H(NKe,"getTGNUrl"),oKe(NKe,"getTGNUrl"),H(FKe,"getULANUrl"),oKe(FKe,"getULANUrl"),H(BKe,"getLocationBanner"),oKe(BKe,"getLocationBanner"),H(HKe,"getIiifImageBaseUrl"),oKe(HKe,"getIiifImageBaseUrl"),H(jKe,"logDeprecationWarnings"),oKe(jKe,"logDeprecationWarnings"),H(UKe,"getIdManagerUrl$1"),oKe(UKe,"getIdManagerUrl$1"),H(VKe,"getIdManagerDataUrl$1"),oKe(VKe,"getIdManagerDataUrl"),H(qKe,"getIIIFBaseUrl"),oKe(qKe,"getIIIFBaseUrl"),H(zKe,"getIIIFImageUrlPart"),oKe(zKe,"getIIIFImageUrlPart"),H(WKe,"getIdManagerUsername"),oKe(WKe,"getIdManagerUsername"),H(GKe,"getEntraClientId"),oKe(GKe,"getEntraClientId"),H(KKe,"getEntraAuthorityUrl"),oKe(KKe,"getEntraAuthorityUrl"),H(YKe,"getEntraClientSecret"),oKe(YKe,"getEntraClientSecret"),H(ZKe,"getEntraClientScopes"),oKe(ZKe,"getEntraClientScopes"),H(XKe,"useEntraAuth"),oKe(XKe,"useEntraAuth"),H(QKe,"getIdManagerPassword"),oKe(QKe,"getIdManagerPassword"),H(JKe,"getBaseUrlForIdManager"),oKe(JKe,"getBaseUrlForIdManager"),H(eYe,"getContentStackApiKey"),oKe(eYe,"getContentStackApiKey"),H(tYe,"getContentStackDeliveryToken"),oKe(tYe,"getContentStackDeliveryToken"),H(nYe,"getContentStackEnvironment"),oKe(nYe,"getContentStackEnvironment"),H(iYe,"getDataUrl$1"),oKe(iYe,"getDataUrl"),H(rYe,"getMediaGatewayUrl$1"),oKe(rYe,"getMediaGatewayUrl"),H(aYe,"stripPunctuationFromQuery"),oKe(aYe,"stripPunctuationFromQuery"),H(sYe,"getAppUrl"),oKe(sYe,"getAppUrl"),H(oYe,"getApiPath$1"),oKe(oYe,"getApiPath"),H(lYe,"getAlertInfo"),oKe(lYe,"getAlertInfo"),H(uYe,"getMiradorUrl$1"),oKe(uYe,"getMiradorUrl"),H(cYe,"getGettyUIBaseUrl$1"),oKe(cYe,"getGettyUIBaseUrl"),H(dYe,"getFeedbackFormUrl"),oKe(dYe,"getFeedbackFormUrl"),H(pYe,"getSitewideSearchRelatedUrl"),oKe(pYe,"getSitewideSearchRelatedUrl");const hYe=Object.freeze(Object.defineProperty({__proto__:null,getAATSuffix:RKe,getAATUrl:MKe,getAlertInfo:lYe,getApiPath:oYe,getAppUrl:sYe,getAxiosErrorCodeRetryList:EKe,getAxiosGetTimeout:xKe,getAxiosRetryLimit:TKe,getAxiosRetryList:AKe,getBaseUrlForIdManager:JKe,getBooleanConfigValue:CKe,getBooleanEnv:gKe,getConfig:vKe,getConfigValue:SKe,getContentStackApiKey:eYe,getContentStackDeliveryToken:tYe,getContentStackEnvironment:nYe,getDataUrl:iYe,getEntraAuthorityUrl:KKe,getEntraClientId:GKe,getEntraClientScopes:ZKe,getEntraClientSecret:YKe,getEnv:mKe,getEnvironment:$Ke,getFeedbackFormUrl:dYe,getFilteredBrowsers:DKe,getGettyUIBaseUrl:cYe,getGoogleAnalyticsId:PKe,getIIIFBaseUrl:qKe,getIIIFImageUrlPart:zKe,getIdManagerDataUrl:VKe,getIdManagerPassword:QKe,getIdManagerUrl:UKe,getIdManagerUsername:WKe,getIgnoreVocabList:OKe,getIiifImageBaseUrl:HKe,getIntConfigValue:kKe,getIntEnv:yKe,getLocationBanner:BKe,getMediaGatewayUrl:rYe,getMiradorUrl:uYe,getSentryDenyUrls:IKe,getSentryId:LKe,getSitewideSearchRelatedUrl:pYe,getTGNUrl:NKe,getULANUrl:FKe,logDeprecationWarnings:jKe,stripPunctuationFromQuery:aYe,useEntraAuth:XKe},Symbol.toStringTag,{value:"Module"}));function fYe(e,t,n){let i="/";return null!=e&&(i=e),i=uKe(i),null!=t&&(i+=t+"/"),i+=n,i}function mYe(e){var t,n;return!(!(null==(t=null==e?void 0:e.response)?void 0:t.status)&&!(null==(n=null==e?void 0:e.response)?void 0:n.statusText))}function gYe(e){if(null==e)return;let t=e.id;return null!=t?yYe(t):void 0}function yYe(e){if(null==e||"string"!=typeof e)return e;const t=(e=lKe(e=e.replace("urn:uuid:",""))).split("/");return 1==t.length?t[0]:t[t.length-2]+"/"+t[t.length-1]}H(fYe,"constructUrl"),oKe(fYe,"constructUrl"),H(mYe,"isHttpException$1"),oKe(mYe,"isHttpException$1"),H(gYe,"getObjId"),oKe(gYe,"getObjId"),H(yYe,"getIndexedId"),oKe(yYe,"getIndexedId");let vYe=new Function("try {return this===global;}catch(e){return false;}"),bYe=0,_Ye=SKe("IGNORE_AXIOS_STATUS_CODES",void 0,",0,400,404,500").split(",");function wYe(e){_Ye=e}H(wYe,"setLogExceptionStatusCodes"),oKe(wYe,"setLogExceptionStatusCodes");const SYe=nMe.create({timeout:xKe()});function CYe(){return bYe}
102function kYe(){bYe+=1,0==vYe()&&(window.axiosCallCount=bYe)}function xYe(){bYe=0,0==vYe()&&(window.axiosCallCount=bYe)}function TYe(e){return V(this,arguments,(function*(e,t=void 0,n={}){kYe();let i,r=e,a=":";if(n){if(i=n,i&&i.constructor!=URLSearchParams){i=new URLSearchParams;for(const e in n)Array.isArray(n[e])?n[e].forEach((t=>{i.append(e,t)})):i.append(e,n[e])}const t=i.toString();t&&t.length>0&&(-1==r.indexOf("?")&&(r+="?"),r+=t),a=": "+e.split("/").at(-2)+"/"+e.split("/").at(-1)}return SYe.get(r,t).catch((e=>{nMe.isCancel(e)?console.warn("Request canceled",`${r}/${i.toString()}`):EYe(e,`AxiosGet${a}`)}))}))}function EYe(e,t="AxiosError"){var n;if(null==e)return;const i=CKe("THROW_AXIOSGET_ERROR",void 0,!0);if(null!=(null==(n=null==e?void 0:e.response)?void 0:n.status)&&0==_Ye.includes(e.response.status)?console.error(`${t}:: ${e}`):null==(null==e?void 0:e.response)&&0==_Ye.includes("")&&console.error(`${t}:: Network Error ; ${e}`),i)throw e}function AYe(e,t,n){return V(this,null,(function*(){return kYe(),SYe.post(e,t,n)}))}function LYe(e,t,n){kYe();let i=e;null!=t&&null!=n&&(i=fYe(e,t,n));try{return TYe(i)}catch(r){return r}}function IYe(e){if(null!=(null==e?void 0:e.data)&&null!=(null==e?void 0:e.headers))if(e.headers&&e.headers["last-modified"])e.data.last_updated=e.headers["last-modified"];else if(e.headers&&e.headers["content-length"]){const t=/last-modified: (.*)/;let n=e.headers["content-length"].match(t);n&&(e.data.last_updated=n[1])}}function $Ye(e,t,n=!0){return V(this,null,(function*(){let i=e;0==Array.isArray(e)&&(i=[e]);let r=[];i.forEach((e=>{let n=e;"string"!=typeof e&&"id"in e&&(n=e.id),t&&(n=fYe(t,void 0,yYe(e))),r.push(TYe(n))}));let a=yield Promise.allSettled(r);return a=a.map((e=>{var t;return IYe(null==e?void 0:e.value),null==(t=null==e?void 0:e.value)?void 0:t.data})),0==Array.isArray(e)?a[0]:(n&&(a=a.filter((e=>null!=e))),a)}))}function DYe(e){kYe();let{baseUrl:t,id:n}=e,i=n;null!=t&&(i=fYe(t,void 0,n));try{return TYe(i)}catch(r){return r}}function PYe(e,t){let n=e;n=lKe(n),n=n.substring(n.lastIndexOf("/")+1);let i,r=MKe();return"ULAN"==t&&(r=FKe()),"TGN"==t&&(r=NKe()),i=r+n,i}function OYe(e,t,n){let i=PYe(e,t);return n&&n.trace("request::vocab: "+i),TYe(i)}function MYe({facet:e,query:t,size:n,filters:i,root:r=oYe(),extra:a={}}){const s=r+"api/facets";return a.facet=e,TYe(s,void 0,RYe({from:0,size:n,filters:i,query:t,extra:a}))}function RYe({from:e,size:t,filters:n,query:i=[],sort:r,extra:a={}}){let s=new URLSearchParams({from:e,size:t});null!=r&&s.append("sort",r),i.forEach((e=>{s.append("q",e)}));for(let o in n)0==Array.isArray(n[o])?s.append(o,n[o]):n[o].forEach((e=>{s.append(o,e)}));for(let o in a)Array.isArray(a[o])?a[o].forEach((e=>{s.append(o,e)})):null!=a[o]&&s.append(o,a[o]);return s}function NYe({query:e,from:t,size:n,filters:i,sort:r,extra:a={},root:s=oYe(),path:o="api/search"}){return TYe(s+o,void 0,RYe({from:t,size:n,filters:i,query:e,sort:r,extra:a}))}function FYe({query:e,from:t,size:n,filters:i,sort:r,extra:a={},root:s=oYe(),path:o="api/search",requestParams:l}){return TYe(s+o,l,RYe({from:t,size:n,filters:i,query:e,sort:r,extra:a}))}function BYe(e,t,n,i,r,a=oYe()){const s=a+"api/relationships";let o={id:e,from:n,size:i};return t&&(o.rel=t),r&&(o.q=r),TYe(s,void 0,o)}function HYe(e=oYe()){return e+"api/typeahead?prefix=:keyword&auto=true"}function jYe(e,t,n,i){return V(this,arguments,(function*(e,t,n,i,r={}){const a={bodyGenerator:n,targetGenerator:i};let s=[];for(let l of e){const e=yYe(l.id);r[e]||s.push(`${lKe(t)}/${e}`)}let o=yield lZe(s,a.bodyGenerator,a.targetGenerator,!0,void 0);for(let l of o)for(let e of l){let t=yYe(e.body.id).split("/");r[yYe(e.target.id)]={path:t[0],slug:t[1]}}return r}))}function UYe(e){return V(this,arguments,(function*(e,t=oYe()){let n=yield VYe([e],t);if((null==n?void 0:n.length)>0)return n[0]}))}function VYe(e){return V(this,arguments,(function*(e,t=oYe()){var n;let i;if(0==e.length)return[];try{return i=yield TYe(`${t}api/get`,void 0,{id:e}),null==(n=null==i?void 0:i.data)?void 0:n.data}catch(tvt){console.error(tvt)}return[]}))}function qYe(e){return V(this,arguments,(function*(e,t=oYe(),n="api/typeahead"){var i,r;return null==(r=null==(i=yield FYe({from:e.from||0,size:e.size||100,filters:{prefix:[e.prefix]},extra:{auto:!0}
102,root:t,path:n,requestParams:{signal:e.signal}}))?void 0:i.data)?void 0:r.result}))}function zYe(e){return V(this,arguments,(function*(e,t=oYe()){var n;let i={facet:e.facet};return e.filter_prefix&&(i.filter_prefix=e.filter_prefix),null==(n=yield FYe({query:e.query,from:0,size:e.size||500,filters:e.filters,sort:e.sort,extra:i,root:t,path:"api/facets"}))?void 0:n.data}))}function WYe(e){return V(this,arguments,(function*(e,t=oYe(),n="api/search"){var i;let r=JSON.parse(JSON.stringify(e)),a={};return(e.debug||e.source||e._source)&&(a.debug=e.debug,a.source=e.source,a._source=e._source),null==(i=yield FYe({query:r.query,from:r.from||0,size:r.size||48,sort:r.sort,filters:r.filters,extra:a,root:t,path:n}))?void 0:i.data}))}function GYe(e){return V(this,arguments,(function*({id:e,groupByPath:t=!1,translate:n=oKe((e=>e),"translate"),extraItems:i=[],params:r={}}){var a,s;let o=null==(s=null==(a=yield TYe(pYe(),void 0,B(F({id:e},r),{group_by_path:t,extraItems:i})))?void 0:a.data)?void 0:s.data;if(t){const e={items:[],title:n("related_resources.resources")};Object.keys(o).forEach((t=>{e.items.push({title:n(`related_resources.${t}`),modifiers:["condensed","submodule"],subcomponents:[{name:"CardList",data:{cardName:"PostCard",modifiers:["full"],items:o[t].map(KYe).filter((e=>null!=e.title&&null!=e.href))}}]})})),o=e}else o=o.map(KYe);return o}))}function KYe(e){const t={excerpt:e.description,title:e.title,href:e.url,postType:"editorial-inline-feature"};for(const n in t)(null===t[n]||void 0===t[n])&&delete t[n];return e.thumbnail&&(t.image={},e.thumbnail.image_service?t.image.id=e.thumbnail.image_service.substring(e.thumbnail.image_service.lastIndexOf("/")+1):t.image.url=e.thumbnail.url),t}H(CYe,"getCount"),oKe(CYe,"getCount"),H(kYe,"incrementCount"),oKe(kYe,"incrementCount"),H(xYe,"resetCount"),oKe(xYe,"resetCount"),H(TYe,"axiosGet"),oKe(TYe,"axiosGet"),H(EYe,"logAxiosException"),oKe(EYe,"logAxiosException"),H(AYe,"axiosPost"),oKe(AYe,"axiosPost"),H(LYe,"get$1"),oKe(LYe,"get"),H(IYe,"injectLastUpdated"),oKe(IYe,"injectLastUpdated"),H($Ye,"getAllById"),oKe($Ye,"getAllById"),H(DYe,"getFromObject"),oKe(DYe,"getFromObject"),H(PYe,"constructVocabUrl"),oKe(PYe,"constructVocabUrl"),H(OYe,"getVocabObject"),oKe(OYe,"getVocabObject"),H(MYe,"facetSearch"),oKe(MYe,"facetSearch"),H(RYe,"buildSearchParams"),oKe(RYe,"buildSearchParams"),H(NYe,"keywordSearch"),oKe(NYe,"keywordSearch"),H(FYe,"paramsSearch"),oKe(FYe,"paramsSearch"),H(BYe,"relationshipSearch"),oKe(BYe,"relationshipSearch"),H(HYe,"typeAhead"),oKe(HYe,"typeAhead"),H(jYe,"getSlugs"),oKe(jYe,"getSlugs"),H(UYe,"getElasticObject"),oKe(UYe,"getElasticObject"),H(VYe,"fetchElasticSearchObjects"),oKe(VYe,"fetchElasticSearchObjects"),H(qYe,"fetchAutocompleteSuggestions"),oKe(qYe,"fetchAutocompleteSuggestions"),H(zYe,"fetchFacets"),oKe(zYe,"fetchFacets"),H(WYe,"fetchSearch"),oKe(WYe,"fetchSearch"),H(GYe,"fetchRelated"),oKe(GYe,"fetchRelated"),H(KYe,"transformRelatedItem"),oKe(KYe,"transformRelatedItem");const YYe=Object.freeze(Object.defineProperty({__proto__:null,axiosGet:TYe,axiosInstance:SYe,axiosPost:AYe,buildSearchParams:RYe,constructVocabUrl:PYe,facetSearch:MYe,fetchAutocompleteSuggestions:qYe,fetchElasticSearchObjects:VYe,fetchFacets:zYe,fetchRelated:GYe,fetchSearch:WYe,get:LYe,getAllById:$Ye,getCount:CYe,getElasticObject:UYe,getFromObject:DYe,getSlugs:jYe,getVocabObject:OYe,injectLastUpdated:IYe,keywordSearch:NYe,logAxiosException:EYe,paramsSearch:FYe,relationshipSearch:BYe,resetCount:xYe,setLogExceptionStatusCodes:wYe,transformRelatedItem:KYe,typeAhead:HYe},Symbol.toStringTag,{value:"Module"})),ZYe=(v=class extends Error{constructor(e,t){super(e),this.cause=t,t&&(this.initialMessage=t.message,this.initialCause=t.stack),this.name="IDManagerError",Error.captureStackTrace&&Error.captureStackTrace(this,v)}},H(v,"_IdManagerError2"),v);oKe(ZYe,"IdManagerError");let XYe=ZYe;const QYe="https://data.getty.edu/local/thesaurus/motivations/related_to";function JYe(){let e=UKe();return e=lKe(e),e}function eZe(e,t,n){if(null!=e&&null!=t&&null!=n){if(null!=t[n]&&""!=t[n])if(Array.isArray(t[n])){if(Array.isArray(t[n])&&0!=t[n].length)for(let i=0;i<t[n].length;i++)t[n][i]&&(e+="&"+n+"="+t[n][i])}else e+="&"+n+"="+t[n];return e}}function tZe(e){return V(this,arguments,(function*(e,t=YYe,n){let i=JYe();return i=uKe(i),i+="links/?page=1",i=eZe(i,e,"target_id"),i=eZe(i,e,"target_generator"),i=eZe(i,e,"body_id"),i=eZe(i,e,"body_generator"),i=eZe(i,e,"motivation"),n&&n.debug(`idmanager::query: ${i}`),yield t.axiosGet(i)}))}function nZe(e,t,n){return V(this,arguments,(function*(e,t,n,i=YYe){n&&n.debug("idmanager::lookupUuidFromUrl %s",e);let r,a={body_id:e};try{r=yield tZe(a,i,n),n&&n.debug("idmanager::lookupUuidFromUrl::Results: (%s)",r.data.length)}
102catch(tvt){throw new XYe(tvt.message,tvt)}let s=sZe(r,(function(e,n){return e.motivation==QYe&&e.target.generator==t&&e.body.id==n}),a,n);if(s[e]&&s[e].target)return s[e].target.id}))}function iZe(e,t,n){let i=t[n];return null!=i&&null!=e&&!!(Array.isArray(i)&&i.includes(e)||i==e)}function rZe(e,t,n,i,r){0!=i(n,t)&&(r&&r.debug("idmanager::lookupId::FoundMatch: %o",n.target),(null==e[t]||0==aZe(e[t],n))&&(e[t]=n))}function aZe(e,t){return e.modified==t.modified?0:Date.parse(e.modified)<Date.parse(t.modified)?1:-1}function sZe(e,t,n,i){var r,a,s,o,l;let u=[];if((null==(s=null==(a=null==(r=null==e?void 0:e.data)?void 0:r.first)?void 0:a.items)?void 0:s.length)>0&&(u=e.data.first.items),(null==(l=null==(o=null==e?void 0:e.data)?void 0:o.items)?void 0:l.length)>0&&(u=e.data.items),u.length<1)return{};let c={};for(let d of u)d.target&&iZe(d.target.id,n,"target_id")&&rZe(c,d.target.id,d,t,i),d.body&&iZe(d.body.id,n,"body_id")&&rZe(c,d.body.id,d,t,i);return c}function oZe(e,t,n,i){return V(this,arguments,(function*(e,t,n,i,r=YYe){i&&i.debug("idmanager::lookupId %s ==> %s",e,t);let a,s={body_id:t,target_id:e};try{a=yield tZe(s,r,i),i&&i.debug("idmanager::lookupId::Results: (%s)",a.data.length)}catch(tvt){throw new XYe(tvt.message,tvt)}let o=sZe(a,(function(e,t){return e.motivation==QYe&&e.target.generator==n&&e.body.id==t}),s,i);if(o[t]&&o[t].body)return o[t].body.id}))}function lZe(e,t,n,i,r){return V(this,arguments,(function*(e,t,n,i,r,a=YYe){if(r&&r.debug("idmanager::lookupUrlFromUuid %s ==> %s",e,t),!e||0==e.length)return;let s={body_generator:t,target_id:e},o=[],l=i?15:1,u=[...e];for(;u.length>=l;)o.push(u.splice(0,l));return u.length>0&&o.push(u),(yield Promise.allSettled(o.map((e=>V(this,null,(function*(){let n;try{return n=yield tZe({body_generator:t,target_id:e},a,r),r&&r.debug("idmanager::lookupUrlFromUuid::Results: (%s)",n.data.length),n}catch(tvt){throw new XYe(tvt.message,tvt)}})))))).map((e=>sZe(e.value,(function(e){return e.motivation==QYe&&e.target.generator==n&&e.body.generator==t}),s,r))).map((t=>Object.keys(t).map((n=>{if(e.includes(n)&&t[n]&&t[n].body)return t[n]}))))}))}H(JYe,"getIdManagerUrl"),oKe(JYe,"getIdManagerUrl"),H(eZe,"getAndAppend"),oKe(eZe,"getAndAppend"),H(tZe,"queryIdManager"),oKe(tZe,"queryIdManager"),H(nZe,"lookupUuidFromUrl"),oKe(nZe,"lookupUuidFromUrl"),H(iZe,"checkFilterMatch"),oKe(iZe,"checkFilterMatch"),H(rZe,"appendToResult"),oKe(rZe,"appendToResult"),H(aZe,"compareDates"),oKe(aZe,"compareDates"),H(sZe,"evaluateResults"),oKe(sZe,"evaluateResults"),H(oZe,"confirmUrlFromUuid"),oKe(oZe,"confirmUrlFromUuid"),H(lZe,"lookupUrlFromUuid"),oKe(lZe,"lookupUrlFromUuid");const uZe=Object.freeze(Object.defineProperty({__proto__:null,confirmUrlFromUuid:oZe,getAndAppend:eZe,getIdManagerUrl:JYe,lookupUrlFromUuid:lZe,lookupUuidFromUrl:nZe,queryIdManager:tZe},Symbol.toStringTag,{value:"Module"}));function cZe(e,t=eYe(),n=(void 0)(),i=nYe()){if(null!=t)if(null!=n){if(null==i&&(console.log("Content Stack Environment is undefined"),error=!0),null!=e)return e.Stack(t,n,i);console.error("ContentStack not provided")}else console.error("Content Stack Delivery Token is undefined");else console.error("Content Stack API Key is undefined")}function dZe(e,t,n){return V(this,arguments,(function*(e,t,n,i=[]){if(null==t)throw new Error("Content Type is undefined");if(null==n)throw new Error("Entry Id is undefined");if(null==e)throw new Error("ContentStack not provided or initialized properly");try{let r=e.ContentType(t).Entry(n);return i.length&&(r=r.includeReference(i)),r=r.toJSON(),yield r.fetch()}catch(tvt){console.error(`could not retrieve ${t} from ContentStack`,tvt)}}))}H(cZe,"getStack"),oKe(cZe,"getStack"),H(dZe,"getContentStackEntry"),oKe(dZe,"getContentStackEntry");const pZe=new jMe.XmlEntities;function hZe(e,t){if(null==t)return e;let n;t&&t.allowedTags&&t.allowedTags.length>0&&(n=t.allowedTags);let i=kMe(e,n);return i=pZe.decode(i),i}function fZe(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}H(hZe,"sanitize"),oKe(hZe,"sanitize"),H(fZe,"makeMap"),oKe(fZe,"makeMap");const mZe={},gZe=oKe((()=>{}),"NOOP"),yZe=oKe((e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)),"isOn"),vZe=Object.assign,bZe=oKe(((e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}),"remove"),_Ze=Object.prototype.hasOwnProperty,wZe=oKe(((e,t)=>_Ze.call(e,t)),"hasOwn$1"),SZe=Array.isArray,CZe=oKe((e=>"[object Map]"===$Ze(e)),"isMap"),kZe=oKe((e=>"[object Set]"===$Ze(e)),"isSet"),xZe=oKe((e=>"function"==typeof e),"isFunction$1"),TZe=oKe((e=>"string"==typeof e),"isString$1"),EZe=oKe((e=>"symbol"==typeof e),"isSymbol"),AZe=oKe((e=>null!==e&&"object"==typeof e),"isObject$1"),LZe=oKe((e=>(AZe(e)||xZe(e))&&xZe(e.then)&&xZe(e.catch)),"isPromise$1"),IZe=Object.prototype.toString,$Ze=oKe((e=>IZe.call(e)),"toTypeString$1"),DZe=oKe((e=>$Ze(e).slice(8,-1)),"toRawType"),PZe=oKe((e=>"[object Object]"===$Ze(e)),"isPlainObject$1"),OZe=oKe((e=>TZe(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e),"isIntegerKey"),MZe=oKe((e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}),"cacheStringFunction"),RZe=MZe((e=>e.charAt(0).toUpperCase()+e.slice(1)));MZe((e=>e?`on${RZe(e)}`:""));const NZe=oKe(((e,t)=>!Object.is(e,t)),"hasChanged");let FZe;const BZe=oKe((()=>FZe||(FZe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{})),"getGlobalThis$1");function HZe(e){if(SZe(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=TZe(i)?qZe(i):HZe(i);if(r)for(const e in r)t[e]=r[e]}return t}if(TZe(e)||AZe(e))return e}H(HZe,"normalizeStyle"),oKe(HZe,"normalizeStyle");const jZe=/;(?![^(]*\))/g,UZe=/:([^]+)/,VZe=/\/\*[^]*?\*\//g;function qZe(e){const t={};return e.replace(VZe,"").split(jZe).forEach((e=>{if(e){const n=e.split(UZe);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function zZe(e){let t="";if(TZe(e))t=e;else if(SZe(e))for(let n=0;n<e.length;n++){const i=zZe(e[n]);i&&(t+=i+" ")}else if(AZe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function WZe(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let GZe;H(qZe,"parseStringStyle"),oKe(qZe,"parseStringStyle"),H(zZe,"normalizeClass"),oKe(zZe,"normalizeClass"),H(WZe,"warn$2"),oKe(WZe,"warn$2");const KZe=(H(b=class{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=GZe,!e&&GZe&&(this.index=(GZe.scopes||(GZe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=GZe;try{return GZe=this,e()}finally{GZe=t}}}on(){GZe=this}off(){GZe=this.parent}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}},"_EffectScope2"),b);oKe(KZe,"EffectScope");let YZe,ZZe=KZe;function XZe(e){return new ZZe(e)}function QZe(){return GZe}H(XZe,"effectScope"),oKe(XZe,"effectScope"),H(QZe,"getCurrentScope"),oKe(QZe,"getCurrentScope");
102const JZe=new WeakSet,eXe=(H(_=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,GZe&&GZe.active&&GZe.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,JZe.has(this)&&(JZe.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||aXe(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,vXe(this),lXe(this);const e=YZe,t=fXe;YZe=this,fXe=!0;try{return this.fn()}finally{uXe(this),YZe=e,fXe=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)pXe(e);this.deps=this.depsTail=void 0,vXe(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?JZe.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){cXe(this)&&this.run()}get dirty(){return cXe(this)}},"_ReactiveEffect2"),_);oKe(eXe,"ReactiveEffect");let tXe,nXe,iXe=eXe,rXe=0;function aXe(e,t=!1){if(e.flags|=8,t)return e.next=nXe,void(nXe=e);e.next=tXe,tXe=e}function sXe(){rXe++}function oXe(){if(--rXe>0)return;if(nXe){let e=nXe;for(nXe=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;tXe;){let n=tXe;for(tXe=void 0;n;){const i=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=i}}if(e)throw e}function lXe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function uXe(e){let t,n=e.depsTail,i=n;for(;i;){const e=i.prevDep;-1===i.version?(i===n&&(n=e),pXe(i),hXe(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=e}e.deps=t,e.depsTail=n}function cXe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(dXe(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function dXe(e){if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===bXe))return;e.globalVersion=bXe;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!cXe(e))return void(e.flags&=-3);const n=YZe,i=fXe;YZe=e,fXe=!0;try{lXe(e);const n=e.fn(e._value);(0===t.version||NZe(n,e._value))&&(e._value=n,t.version++)}catch(r){throw t.version++,r}finally{YZe=n,fXe=i,uXe(e),e.flags&=-3}}function pXe(e,t=!1){const{dep:n,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)pXe(e,!0)}!t&&! --n.sc&&n.map&&n.map.delete(n.key)}function hXe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}H(aXe,"batch"),oKe(aXe,"batch"),H(sXe,"startBatch"),oKe(sXe,"startBatch"),H(oXe,"endBatch"),oKe(oXe,"endBatch"),H(lXe,"prepareDeps"),oKe(lXe,"prepareDeps"),H(uXe,"cleanupDeps"),oKe(uXe,"cleanupDeps"),H(cXe,"isDirty"),oKe(cXe,"isDirty"),H(dXe,"refreshComputed"),oKe(dXe,"refreshComputed"),H(pXe,"removeSub"),oKe(pXe,"removeSub"),H(hXe,"removeDep"),oKe(hXe,"removeDep");let fXe=!0;const mXe=[];function gXe(){mXe.push(fXe),fXe=!1}function yXe(){const e=mXe.pop();fXe=void 0===e||e}function vXe(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=YZe;YZe=void 0;try{t()}finally{YZe=e}}}H(gXe,"pauseTracking"),oKe(gXe,"pauseTracking"),H(yXe,"resetTracking"),oKe(yXe,"resetTracking"),H(vXe,"cleanupEffect"),oKe(vXe,"cleanupEffect");let bXe=0;const _Xe=(H(w=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},"_Link2"),w);oKe(_Xe,"Link");let wXe=_Xe;const SXe=(H(S=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!YZe||!fXe||YZe===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==YZe)t=this.activeLink=new wXe(YZe,this),YZe.deps?(t.prevDep=YZe.depsTail,YZe.depsTail.nextDep=t,YZe.depsTail=t):YZe.deps=YZe.depsTail=t,kXe(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=YZe.depsTail,t.nextDep=void 0,YZe.depsTail.nextDep=t,YZe.depsTail=t,YZe.deps===t&&(YZe.deps=e)}return t}trigger(e){this.version++,bXe++,this.notify(e)}notify(e){sXe();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{oXe()}}},"_Dep2"),S);oKe(SXe,"Dep");let CXe=SXe;function kXe(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)kXe(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}H(kXe,"addSub"),oKe(kXe,"addSub");const xXe=new WeakMap,TXe=Symbol(""),EXe=Symbol(""),AXe=Symbol("");function LXe(e,t,n){if(fXe&&YZe){let t=xXe.get(e);t||xXe.set(e,t=new Map);let i=t.get(n);i||(t.set(n,i=new CXe),i.map=t,i.key=n),i.track()}}function IXe(e,t,n,i,r,a){const s=xXe.get(e);if(!s)return void bXe++;const o=oKe((e=>{e&&e.trigger()}),"run");if(sXe(),"clear"===t)s.forEach(o);else{const r=SZe(e),a=r&&OZe(n);if(r&&"length"===n){const e=Number(i);
102s.forEach(((t,n)=>{("length"===n||n===AXe||!EZe(n)&&n>=e)&&o(t)}))}else switch((void 0!==n||s.has(void 0))&&o(s.get(n)),a&&o(s.get(AXe)),t){case"add":r?a&&o(s.get("length")):(o(s.get(TXe)),CZe(e)&&o(s.get(EXe)));break;case"delete":r||(o(s.get(TXe)),CZe(e)&&o(s.get(EXe)));break;case"set":CZe(e)&&o(s.get(TXe))}}oXe()}function $Xe(e){const t=bQe(e);return t===e?t:(LXe(t,0,AXe),yQe(e)?t:t.map(_Qe))}function DXe(e){return LXe(e=bQe(e),0,AXe),e}H(LXe,"track"),oKe(LXe,"track"),H(IXe,"trigger"),oKe(IXe,"trigger"),H($Xe,"reactiveReadArray"),oKe($Xe,"reactiveReadArray"),H(DXe,"shallowReadArray"),oKe(DXe,"shallowReadArray");const PXe={__proto__:null,[Symbol.iterator](){return OXe(this,Symbol.iterator,_Qe)},concat(...e){return $Xe(this).concat(...e.map((e=>SZe(e)?$Xe(e):e)))},entries(){return OXe(this,"entries",(e=>(e[1]=_Qe(e[1]),e)))},every(e,t){return RXe(this,"every",e,t,void 0,arguments)},filter(e,t){return RXe(this,"filter",e,t,(e=>e.map(_Qe)),arguments)},find(e,t){return RXe(this,"find",e,t,_Qe,arguments)},findIndex(e,t){return RXe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return RXe(this,"findLast",e,t,_Qe,arguments)},findLastIndex(e,t){return RXe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return RXe(this,"forEach",e,t,void 0,arguments)},includes(...e){return FXe(this,"includes",e)},indexOf(...e){return FXe(this,"indexOf",e)},join(e){return $Xe(this).join(e)},lastIndexOf(...e){return FXe(this,"lastIndexOf",e)},map(e,t){return RXe(this,"map",e,t,void 0,arguments)},pop(){return BXe(this,"pop")},push(...e){return BXe(this,"push",e)},reduce(e,...t){return NXe(this,"reduce",e,t)},reduceRight(e,...t){return NXe(this,"reduceRight",e,t)},shift(){return BXe(this,"shift")},some(e,t){return RXe(this,"some",e,t,void 0,arguments)},splice(...e){return BXe(this,"splice",e)},toReversed(){return $Xe(this).toReversed()},toSorted(e){return $Xe(this).toSorted(e)},toSpliced(...e){return $Xe(this).toSpliced(...e)},unshift(...e){return BXe(this,"unshift",e)},values(){return OXe(this,"values",_Qe)}};function OXe(e,t,n){const i=DXe(e),r=i[t]();return i!==e&&!yQe(e)&&(r._next=r.next,r.next=()=>{const e=r._next();return e.value&&(e.value=n(e.value)),e}),r}H(OXe,"iterator"),oKe(OXe,"iterator");const MXe=Array.prototype;function RXe(e,t,n,i,r,a){const s=DXe(e),o=s!==e&&!yQe(e),l=s[t];if(l!==MXe[t]){const t=l.apply(e,a);return o?_Qe(t):t}let u=n;s!==e&&(o?u=oKe((function(t,i){return n.call(this,_Qe(t),i,e)}),"wrappedFn"):n.length>2&&(u=oKe((function(t,i){return n.call(this,t,i,e)}),"wrappedFn")));const c=l.call(s,u,i);return o&&r?r(c):c}function NXe(e,t,n,i){const r=DXe(e);let a=n;return r!==e&&(yQe(e)?n.length>3&&(a=oKe((function(t,i,r){return n.call(this,t,i,r,e)}),"wrappedFn")):a=oKe((function(t,i,r){return n.call(this,t,_Qe(i),r,e)}),"wrappedFn")),r[t](a,...i)}function FXe(e,t,n){const i=bQe(e);LXe(i,0,AXe);const r=i[t](...n);return-1!==r&&!1!==r||!vQe(n[0])?r:(n[0]=bQe(n[0]),i[t](...n))}function BXe(e,t,n=[]){gXe(),sXe();const i=bQe(e)[t].apply(e,n);return oXe(),yXe(),i}H(RXe,"apply$1"),oKe(RXe,"apply$1"),H(NXe,"reduce"),oKe(NXe,"reduce"),H(FXe,"searchProxy"),oKe(FXe,"searchProxy"),H(BXe,"noTracking"),oKe(BXe,"noTracking");const HXe=fZe("__proto__,__v_isRef,__isVue"),jXe=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(EZe));function UXe(e){EZe(e)||(e=String(e));const t=bQe(this);return LXe(t,0,e),t.hasOwnProperty(e)}H(UXe,"hasOwnProperty$1"),oKe(UXe,"hasOwnProperty$1");const VXe=(H(C=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const i=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!i;if("__v_isReadonly"===t)return i;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(i?r?uQe:lQe:r?oQe:sQe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const a=SZe(e);if(!i){let e;if(a&&(e=PXe[t]))return e;if("hasOwnProperty"===t)return UXe}const s=Reflect.get(e,t,SQe(e)?e:n);return(EZe(t)?jXe.has(t):HXe(t))||(i||LXe(e,0,t),r)?s:SQe(s)?a&&OZe(t)?s:s.value:AZe(s)?i?hQe(s):pQe(s):s}},"_BaseReactiveHandler2"),C);oKe(VXe,"BaseReactiveHandler");let qXe=VXe;const zXe=(H(k=class extends qXe{constructor(e=!1){super(!1,e)}set(e,t,n,i){let r=e[t];if(!this._isShallow){const t=gQe(r);if(!yQe(n)&&!gQe(n)&&(r=bQe(r),n=bQe(n)),!SZe(e)&&SQe(r)&&!SQe(n))return!t&&(r.value=n,!0)}const a=SZe(e)&&OZe(t)?Number(t)<e.length:wZe(e,t),s=Reflect.set(e,t,n,SQe(e)?e:i);return e===bQe(i)&&(a?NZe(n,r)&&IXe(e,"set",t,n):IXe(e,"add",t,n)),s}deleteProperty(e,t){const n=wZe(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&n&&IXe(e,"delete",t,void 0),i}has(e,t){const n=Reflect.has(e,t);return(!EZe(t)||!jXe.has(t))&&LXe(e,0,t),n}ownKeys(e){return LXe(e,0,SZe(e)?"length":TXe),Reflect.ownKeys(e)}},"_MutableReactiveHandler2"),k);oKe(zXe,"MutableReactiveHandler");let WXe=zXe;const GXe=(H(x=class extends qXe{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},"_ReadonlyReactiveHandler2"),x);oKe(GXe,"ReadonlyReactiveHandler");let KXe=GXe;const YXe=new WXe,ZXe=new KXe,XXe=oKe((e=>e),"toShallow"),QXe=oKe((e=>Reflect.getPrototypeOf(e)),"getProto");function JXe(e,t,n){return function(...i){const r=this.__v_raw,a=bQe(r),s=CZe(a),o="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,u=r[e](...i),c=n?XXe:t?wQe:_Qe;return!t&&LXe(a,0,l?EXe:TXe),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:o?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function eQe(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function tQe(e,t){const n={get(n){const i=this.__v_raw,r=bQe(i),a=bQe(n);e||(NZe(n,a)&&LXe(r,0,n),LXe(r,0,a));const{has:s}
102=QXe(r),o=t?XXe:e?wQe:_Qe;return s.call(r,n)?o(i.get(n)):s.call(r,a)?o(i.get(a)):void(i!==r&&i.get(n))},get size(){const t=this.__v_raw;return!e&&LXe(bQe(t),0,TXe),Reflect.get(t,"size",t)},has(t){const n=this.__v_raw,i=bQe(n),r=bQe(t);return e||(NZe(t,r)&&LXe(i,0,t),LXe(i,0,r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,i){const r=this,a=r.__v_raw,s=bQe(a),o=t?XXe:e?wQe:_Qe;return!e&&LXe(s,0,TXe),a.forEach(((e,t)=>n.call(i,o(e),o(t),r)))}};return vZe(n,e?{add:eQe("add"),set:eQe("set"),delete:eQe("delete"),clear:eQe("clear")}:{add(e){!t&&!yQe(e)&&!gQe(e)&&(e=bQe(e));const n=bQe(this);return QXe(n).has.call(n,e)||(n.add(e),IXe(n,"add",e,e)),this},set(e,n){!t&&!yQe(n)&&!gQe(n)&&(n=bQe(n));const i=bQe(this),{has:r,get:a}=QXe(i);let s=r.call(i,e);!s&&(e=bQe(e),s=r.call(i,e));const o=a.call(i,e);return i.set(e,n),s?NZe(n,o)&&IXe(i,"set",e,n):IXe(i,"add",e,n),this},delete(e){const t=bQe(this),{has:n,get:i}=QXe(t);let r=n.call(t,e);!r&&(e=bQe(e),r=n.call(t,e)),i&&i.call(t,e);const a=t.delete(e);return r&&IXe(t,"delete",e,void 0),a},clear(){const e=bQe(this),t=0!==e.size,n=e.clear();return t&&IXe(e,"clear",void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach((i=>{n[i]=JXe(i,e,t)})),n}function nQe(e,t){const n=tQe(e,t);return(t,i,r)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(wZe(n,i)&&i in t?n:t,i,r)}H(JXe,"createIterableMethod"),oKe(JXe,"createIterableMethod"),H(eQe,"createReadonlyMethod"),oKe(eQe,"createReadonlyMethod"),H(tQe,"createInstrumentations"),oKe(tQe,"createInstrumentations"),H(nQe,"createInstrumentationGetter"),oKe(nQe,"createInstrumentationGetter");const iQe={get:nQe(!1,!1)},rQe={get:nQe(!0,!1)};function aQe(e,t,n){const i=bQe(n);if(i!==n&&t.call(e,i)){const t=DZe(e);WZe(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}H(aQe,"checkIdentityKeys"),oKe(aQe,"checkIdentityKeys");const sQe=new WeakMap,oQe=new WeakMap,lQe=new WeakMap,uQe=new WeakMap;function cQe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dQe(e){return e.__v_skip||!Object.isExtensible(e)?0:cQe(DZe(e))}function pQe(e){return gQe(e)?e:fQe(e,!1,YXe,iQe,sQe)}function hQe(e){return fQe(e,!0,ZXe,rQe,lQe)}function fQe(e,t,n,i,r){if(!AZe(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=r.get(e);if(a)return a;const s=dQe(e);if(0===s)return e;const o=new Proxy(e,2===s?i:n);return r.set(e,o),o}function mQe(e){return gQe(e)?mQe(e.__v_raw):!(!e||!e.__v_isReactive)}function gQe(e){return!(!e||!e.__v_isReadonly)}function yQe(e){return!(!e||!e.__v_isShallow)}function vQe(e){return!!e&&!!e.__v_raw}function bQe(e){const t=e&&e.__v_raw;return t?bQe(t):e}H(cQe,"targetTypeMap"),oKe(cQe,"targetTypeMap"),H(dQe,"getTargetType"),oKe(dQe,"getTargetType"),H(pQe,"reactive"),oKe(pQe,"reactive"),H(hQe,"readonly"),oKe(hQe,"readonly"),H(fQe,"createReactiveObject"),oKe(fQe,"createReactiveObject"),H(mQe,"isReactive"),oKe(mQe,"isReactive"),H(gQe,"isReadonly"),oKe(gQe,"isReadonly"),H(yQe,"isShallow"),oKe(yQe,"isShallow"),H(vQe,"isProxy"),oKe(vQe,"isProxy"),H(bQe,"toRaw"),oKe(bQe,"toRaw");const _Qe=oKe((e=>AZe(e)?pQe(e):e),"toReactive"),wQe=oKe((e=>AZe(e)?hQe(e):e),"toReadonly");function SQe(e){return!!e&&!0===e.__v_isRef}function CQe(e){return xQe(e,!1)}function kQe(e){return xQe(e,!0)}function xQe(e,t){return SQe(e)?e:new EQe(e,t)}H(SQe,"isRef"),oKe(SQe,"isRef"),H(CQe,"ref$1"),oKe(CQe,"ref"),H(kQe,"shallowRef"),oKe(kQe,"shallowRef"),H(xQe,"createRef"),oKe(xQe,"createRef");const TQe=(H(T=class{constructor(e,t){this.dep=new CXe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:bQe(e),this._value=t?e:_Qe(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||yQe(e)||gQe(e);e=n?e:bQe(e),NZe(e,t)&&(this._rawValue=e,this._value=n?e:_Qe(e),this.dep.trigger())}},"_RefImpl2"),T);oKe(TQe,"RefImpl");let EQe=TQe;const AQe=(H(E=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new CXe(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=bXe-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&YZe!==this)return aXe(this,!0),!0}get value(){const e=this.dep.track();return dXe(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}},"_ComputedRefImpl2"),E);oKe(AQe,"ComputedRefImpl");let LQe=AQe;function IQe(e,t,n=!1){let i,r;xZe(e)?i=e:(i=e.get,r=e.set);return new LQe(i,r,n)}H(IQe,"computed$1"),oKe(IQe,"computed$1");const $Qe={},DQe=new WeakMap;let PQe;function OQe(e,t=!1,n=PQe){if(n){let t=DQe.get(n);t||DQe.set(n,t=[]),t.push(e)}}function MQe(e,t,n=mZe){const{immediate:i,deep:r,once:a,scheduler:s,augmentJob:o,call:l}=n,u=oKe((e=>r?e:yQe(e)||!1===r||0===r?RQe(e,1):RQe(e)),"reactiveGetter");let c,d,p,h,f=!1,m=!1;if(SQe(e)?(d=oKe((()=>e.value),"getter"),f=yQe(e)):mQe(e)?(d=oKe((()=>u(e)),"getter"),f=!0):SZe(e)?(m=!0,f=e.some((e=>mQe(e)||yQe(e))),d=oKe((()=>e.map((e=>SQe(e)?e.value:mQe(e)?u(e):xZe(e)?l?l(e,2):e():void 0))),"getter")):xZe(e)?d=t?l?()=>l(e,2):e:oKe((()=>
102{if(p){gXe();try{p()}finally{yXe()}}const t=PQe;PQe=c;try{return l?l(e,3,[h]):e(h)}finally{PQe=t}}),"getter"):d=gZe,t&&r){const e=d,t=!0===r?1/0:r;d=oKe((()=>RQe(e(),t)),"getter")}const g=QZe(),y=oKe((()=>{c.stop(),g&&g.active&&bZe(g.effects,c)}),"watchHandle");if(a&&t){const e=t;t=oKe(((...t)=>{e(...t),y()}),"cb")}let v=m?new Array(e.length).fill($Qe):$Qe;const b=oKe((e=>{if(1&c.flags&&(c.dirty||e))if(t){const e=c.run();if(r||f||(m?e.some(((e,t)=>NZe(e,v[t]))):NZe(e,v))){p&&p();const n=PQe;PQe=c;try{const n=[e,v===$Qe?void 0:m&&v[0]===$Qe?[]:v,h];l?l(t,3,n):t(...n),v=e}finally{PQe=n}}}else c.run()}),"job");return o&&o(b),c=new iXe(d),c.scheduler=s?()=>s(b,!1):b,h=oKe((e=>OQe(e,!1,c)),"boundCleanup"),p=c.onStop=()=>{const e=DQe.get(c);if(e){if(l)l(e,4);else for(const t of e)t();DQe.delete(c)}},t?i?b(!0):v=c.run():s?s(b.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function RQe(e,t=1/0,n){if(t<=0||!AZe(e)||e.__v_skip||(n=n||new Set).has(e))return e;if(n.add(e),t--,SQe(e))RQe(e.value,t,n);else if(SZe(e))for(let i=0;i<e.length;i++)RQe(e[i],t,n);else if(kZe(e)||CZe(e))e.forEach((e=>{RQe(e,t,n)}));else if(PZe(e)){for(const i in e)RQe(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&RQe(e[i],t,n)}return e}H(OQe,"onWatcherCleanup"),oKe(OQe,"onWatcherCleanup"),H(MQe,"watch$1"),oKe(MQe,"watch$1"),H(RQe,"traverse"),oKe(RQe,"traverse");const NQe=[];function FQe(e){NQe.push(e)}function BQe(){NQe.pop()}H(FQe,"pushWarningContext"),oKe(FQe,"pushWarningContext"),H(BQe,"popWarningContext"),oKe(BQe,"popWarningContext");let HQe=!1;function jQe(e,...t){if(HQe)return;HQe=!0,gXe();const n=NQe.length?NQe[NQe.length-1].component:null,i=n&&n.appContext.config.warnHandler,r=UQe();if(i)GQe(i,n,11,[e+t.map((e=>{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)})).join(""),n&&n.proxy,r.map((({vnode:e})=>`at <${h1e(n,e.type)}>`)).join("\n"),r]);else{const n=[`[Vue warn]: ${e}`,...t];r.length&&n.push("\n",...VQe(r)),console.warn(...n)}yXe(),HQe=!1}function UQe(){let e=NQe[NQe.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const i=e.component&&e.component.parent;e=i&&i.vnode}return t}function VQe(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...qQe(e))})),t}function qQe({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",i=!!e.component&&null==e.component.parent,r=` at <${h1e(e.component,e.type,i)}`,a=">"+n;return e.props?[r,...zQe(e.props),a]:[r+a]}function zQe(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...WQe(n,e[n]))})),n.length>3&&t.push(" ..."),t}function WQe(e,t,n){return TZe(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:SQe(t)?(t=WQe(e,bQe(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):xZe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=bQe(t),n?t:[`${e}=`,t])}function GQe(e,t,n,i){try{return i?e(...i):e()}catch(r){YQe(r,t,n)}}function KQe(e,t,n,i){if(xZe(e)){const r=GQe(e,t,n,i);return r&&LZe(r)&&r.catch((e=>{YQe(e,t,n)})),r}if(SZe(e)){const r=[];for(let a=0;a<e.length;a++)r.push(KQe(e[a],t,n,i));return r}}function YQe(e,t,n,i=!0){const r=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||mZe;if(t){let i=t.parent;const r=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const t=i.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,s))return;i=i.parent}if(a)return gXe(),GQe(a,null,10,[e,r,s]),void yXe()}ZQe(e,n,r,i,s)}function ZQe(e,t,n,i=!0,r=!1){if(r)throw e;console.error(e)}H(jQe,"warn$1"),oKe(jQe,"warn$1"),H(UQe,"getComponentTrace"),oKe(UQe,"getComponentTrace"),H(VQe,"formatTrace"),oKe(VQe,"formatTrace"),H(qQe,"formatTraceEntry"),oKe(qQe,"formatTraceEntry"),H(zQe,"formatProps"),oKe(zQe,"formatProps"),H(WQe,"formatProp"),oKe(WQe,"formatProp"),H(GQe,"callWithErrorHandling"),oKe(GQe,"callWithErrorHandling"),H(KQe,"callWithAsyncErrorHandling"),oKe(KQe,"callWithAsyncErrorHandling"),H(YQe,"handleError"),oKe(YQe,"handleError"),H(ZQe,"logError"),oKe(ZQe,"logError");const XQe=[];let QQe=-1;const JQe=[];let eJe=null,tJe=0;const nJe=Promise.resolve();let iJe=null;function rJe(e){let t=QQe+1,n=XQe.length;for(;t<n;){const i=t+n>>>1,r=XQe[i],a=uJe(r);a<e||a===e&&2&r.flags?t=i+1:n=i}return t}function aJe(e){if(!(1&e.flags)){const t=uJe(e),n=XQe[XQe.length-1];!n||!(2&e.flags)&&t>
102=uJe(n)?XQe.push(e):XQe.splice(rJe(t),0,e),e.flags|=1,sJe()}}function sJe(){iJe||(iJe=nJe.then(cJe))}function oJe(e){SZe(e)?JQe.push(...e):eJe&&-1===e.id?eJe.splice(tJe+1,0,e):1&e.flags||(JQe.push(e),e.flags|=1),sJe()}function lJe(e){if(JQe.length){const e=[...new Set(JQe)].sort(((e,t)=>uJe(e)-uJe(t)));if(JQe.length=0,eJe)return void eJe.push(...e);for(eJe=e,tJe=0;tJe<eJe.length;tJe++){const e=eJe[tJe];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}eJe=null,tJe=0}}H(rJe,"findInsertionIndex"),oKe(rJe,"findInsertionIndex"),H(aJe,"queueJob"),oKe(aJe,"queueJob"),H(sJe,"queueFlush"),oKe(sJe,"queueFlush"),H(oJe,"queuePostFlushCb"),oKe(oJe,"queuePostFlushCb"),H(lJe,"flushPostFlushCbs"),oKe(lJe,"flushPostFlushCbs");const uJe=oKe((e=>null==e.id?2&e.flags?-1:1/0:e.id),"getId");function cJe(e){try{for(QQe=0;QQe<XQe.length;QQe++){const e=XQe[QQe];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),GQe(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;QQe<XQe.length;QQe++){const e=XQe[QQe];e&&(e.flags&=-2)}QQe=-1,XQe.length=0,lJe(),iJe=null,(XQe.length||JQe.length)&&cJe()}}function dJe(e,t){const n=e.get(t)||0;if(n>100){const e=t.i,n=e&&p1e(e.type);return YQe(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}H(cJe,"flushJobs"),oKe(cJe,"flushJobs"),H(dJe,"checkRecursiveUpdates"),oKe(dJe,"checkRecursiveUpdates");const pJe=new Map,hJe=new Map;function fJe(e,t){return!hJe.has(e)&&(hJe.set(e,{initialDef:mJe(t),instances:new Set}),!0)}function mJe(e){return f1e(e)?e.__vccOpts:e}function gJe(e,t){const n=hJe.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach((e=>{t&&(e.render=t,mJe(e.type).render=t),e.renderCache=[],e.update()})))}function yJe(e,t){const n=hJe.get(e);if(!n)return;t=mJe(t),vJe(n.initialDef,t);const i=[...n.instances];for(let r=0;r<i.length;r++){const e=i[r],a=mJe(e.type);let s=pJe.get(a);s||(a!==n.initialDef&&vJe(a,t),pJe.set(a,s=new Set)),s.add(e),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(s.add(e),e.ceReload(t.styles),s.delete(e)):e.parent?aJe((()=>{e.parent.update(),s.delete(e)})):e.appContext.reload?e.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),e.root.ce&&e!==e.root&&e.root.ce._removeChildStyle(a)}oJe((()=>{pJe.clear()}))}function vJe(e,t){vZe(e,t);for(const n in e)"__file"!==n&&!(n in t)&&delete e[n]}function bJe(e){return(t,n)=>{try{return e(t,n)}catch(tvt){console.error(tvt),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}H(fJe,"createRecord"),oKe(fJe,"createRecord"),H(mJe,"normalizeClassComponent"),oKe(mJe,"normalizeClassComponent"),H(gJe,"rerender"),oKe(gJe,"rerender"),H(yJe,"reload"),oKe(yJe,"reload"),H(vJe,"updateComponentDef"),oKe(vJe,"updateComponentDef"),H(bJe,"tryWrap"),oKe(bJe,"tryWrap");let _Je,wJe=[];function SJe(e,t){var n,i;_Je=e,_Je?(_Je.enabled=!0,wJe.forEach((({event:e,args:t})=>_Je.emit(e,...t))),wJe=[]):typeof window<"u"&&window.HTMLElement&&(null==(i=null==(n=window.navigator)?void 0:n.userAgent)||!i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{SJe(e,t)})),setTimeout((()=>{_Je||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,wJe=[])}),3e3)):wJe=[]}H(SJe,"setDevtoolsHook$1"),oKe(SJe,"setDevtoolsHook$1");let CJe=null,kJe=null;const xJe=oKe((e=>e.__isTeleport),"isTeleport");function TJe(e,t){6&e.shapeFlag&&e.component?(e.transition=t,TJe(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function EJe(e,t){return xZe(e)?vZe({name:e.name},t,{setup:e}):e}function AJe(e,t,n=a1e,i=!1){if(n){const r=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...i)=>{gXe();const r=l1e(n),a=KQe(t,n,e,i);return r(),yXe(),a});return i?r.unshift(a):r.push(a),a}}
102H(TJe,"setTransitionHooks"),oKe(TJe,"setTransitionHooks"),H(EJe,"defineComponent"),oKe(EJe,"defineComponent"),BZe().requestIdleCallback,BZe().cancelIdleCallback,H(AJe,"injectHook"),oKe(AJe,"injectHook");const LJe=oKe((e=>(t,n=a1e)=>{(!u1e||"sp"===e)&&AJe(e,((...e)=>t(...e)),n)}),"createHook"),IJe=LJe("m"),$Je=LJe("um"),DJe=Symbol.for("v-ndc");let PJe=null;function OJe(e,t,n=!1){const i=a1e||CJe;if(i||PJe){const r=i?null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&xZe(t)?t.call(i&&i.proxy):t}}H(OJe,"inject"),oKe(OJe,"inject");const MJe={},RJe=oKe((e=>Object.getPrototypeOf(e)===MJe),"isInternalObject"),NJe=VJe,FJe=Symbol.for("v-scx"),BJe=oKe((()=>OJe(FJe)),"useSSRContext");function HJe(e,t,n){return jJe(e,t,n)}function jJe(e,t,n=mZe){const{immediate:i,deep:r,flush:a,once:s}=n,o=vZe({},n),l=t&&i||!t&&"post"!==a;let u;if(u1e)if("sync"===a){const e=BJe();u=e.__watcherHandles||(e.__watcherHandles=[])}else if(!l){const e=oKe((()=>{}),"watchStopHandle");return e.stop=gZe,e.resume=gZe,e.pause=gZe,e}const c=a1e;o.call=(e,t,n)=>KQe(e,c,t,n);let d=!1;"post"===a?o.scheduler=e=>{NJe(e,c&&c.suspense)}:"sync"!==a&&(d=!0,o.scheduler=(e,t)=>{t?e():aJe(e)}),o.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,c&&(e.id=c.uid,e.i=c))};const p=MQe(e,t,o);return u1e&&(u?u.push(p):l&&p()),p}H(HJe,"watch"),oKe(HJe,"watch"),H(jJe,"doWatch"),oKe(jJe,"doWatch");const UJe=oKe((e=>e.__isSuspense),"isSuspense");function VJe(e,t){t&&t.pendingBranch?SZe(e)?t.effects.push(...e):t.effects.push(e):oJe(e)}H(VJe,"queueEffectWithSuspense"),oKe(VJe,"queueEffectWithSuspense");const qJe=Symbol.for("v-fgt"),zJe=Symbol.for("v-txt"),WJe=Symbol.for("v-cmt");function GJe(e){return!!e&&!0===e.__v_isVNode}H(GJe,"isVNode$1"),oKe(GJe,"isVNode$1");const KJe=oKe((({key:e})=>null!=e?e:null),"normalizeKey"),YJe=oKe((({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?TZe(e)||SQe(e)||xZe(e)?{i:CJe,r:e,k:t,f:!!n}:e:null)),"normalizeRef");function ZJe(e,t=null,n=null,i=0,r=null,a=(e===qJe?0:1),s=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&KJe(t),ref:t&&YJe(t),scopeId:kJe,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:CJe};return o?(i1e(l,n),128&a&&e.normalize(l)):n&&(l.shapeFlag|=TZe(n)?8:16),l}H(ZJe,"createBaseVNode"),oKe(ZJe,"createBaseVNode");const XJe=QJe;function QJe(e,t=null,n=null,i=0,r=null,a=!1){if((!e||e===DJe)&&(e=WJe),GJe(e)){const i=e1e(e,t,!0);return n&&i1e(i,n),i.patchFlag=-2,i}if(f1e(e)&&(e=e.__vccOpts),t){t=JJe(t);let{class:e,style:n}=t;e&&!TZe(e)&&(t.class=zZe(e)),AZe(n)&&(vQe(n)&&!SZe(n)&&(n=vZe({},n)),t.style=HZe(n))}return ZJe(e,t,n,i,r,TZe(e)?1:UJe(e)?128:xJe(e)?64:AZe(e)?4:xZe(e)?2:0,a,!0)}function JJe(e){return e?vQe(e)||RJe(e)?vZe({},e):e:null}function e1e(e,t,n=!1,i=!1){const{props:r,ref:a,patchFlag:s,children:o,transition:l}=e,u=t?r1e(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&KJe(u),ref:t&&t.ref?n&&a?SZe(a)?a.concat(YJe(t)):[a,YJe(t)]:YJe(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==qJe?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&e1e(e.ssContent),ssFallback:e.ssFallback&&e1e(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&TJe(c,l.clone(c)),c}function t1e(e){const t=e1e(e);return SZe(e.children)&&(t.children=e.children.map(t1e)),t}function n1e(e=" ",t=0){return XJe(zJe,null,e,t)}function i1e(e,t){let n=0;const{shapeFlag:i}=e;if(null==t)t=null;else if(SZe(t))n=16;else if("object"==typeof t){if(65&i){const n=t.default;return void(n&&(n._c&&(n._d=!1),i1e(e,n()),n._c&&(n._d=!0)))}n=32,!t._&&!RJe(t)&&(t._ctx=CJe)}else xZe(t)?(t={default:t,_ctx:CJe},n=32):(t=String(t),64&i?(n=16,t=[n1e(t)]):n=8);e.children=t,e.shapeFlag|=n}function r1e(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const e in i)if("class"===e)t.class!==i.class&&(t.class=zZe([t.class,i.class]));else if("style"===e)t.style=HZe([t.style,i.style]);else if(yZe(e)){const n=t[e],r=i[e];r&&n!==r&&(!SZe(n)||!n.includes(r))&&(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=i[e])}return t}H(QJe,"_createVNode"),oKe(QJe,"_createVNode"),H(JJe,"guardReactiveProps"),oKe(JJe,"guardReactiveProps"),H(e1e,"cloneVNode"),oKe(e1e,"cloneVNode"),H(t1e,"deepCloneVNode"),oKe(t1e,"deepCloneVNode"),H(n1e,"createTextVNode"),oKe(n1e,"createTextVNode"),H(i1e,"normalizeChildren"),oKe(i1e,"normalizeChildren"),H(r1e,"mergeProps"),oKe(r1e,"mergeProps");let a1e=null;const s1e=oKe((()=>a1e||CJe),"getCurrentInstance");let o1e;{const e=BZe(),t=oKe(((t,n)=>{let i;return(i=e[t])||(i=e[t]=[]),i.push(n),e=>{i.length>
1021?i.forEach((t=>t(e))):i[0](e)}}),"registerGlobalSetter");o1e=t("__VUE_INSTANCE_SETTERS__",(e=>a1e=e)),t("__VUE_SSR_SETTERS__",(e=>u1e=e))}const l1e=oKe((e=>{const t=a1e;return o1e(e),e.scope.on(),()=>{e.scope.off(),o1e(t)}}),"setCurrentInstance");let u1e=!1;const c1e=/(?:^|[-_])(\w)/g,d1e=oKe((e=>e.replace(c1e,(e=>e.toUpperCase())).replace(/[-_]/g,"")),"classify");function p1e(e,t=!0){return xZe(e)?e.displayName||e.name:e.name||t&&e.__name}function h1e(e,t,n=!1){let i=p1e(t);if(!i&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(i=e[1])}if(!i&&e&&e.parent){const n=oKe((e=>{for(const n in e)if(e[n]===t)return n}),"inferFromRegistry");i=n(e.components||e.parent.type.components)||n(e.appContext.components)}return i?d1e(i):n?"App":"Anonymous"}function f1e(e){return xZe(e)&&"__vccOpts"in e}H(p1e,"getComponentName"),oKe(p1e,"getComponentName"),H(h1e,"formatComponentName"),oKe(h1e,"formatComponentName"),H(f1e,"isClassComponent"),oKe(f1e,"isClassComponent");const m1e=oKe(((e,t)=>IQe(e,0,u1e)),"computed");function g1e(e,t,n){const i=arguments.length;return 2===i?AZe(t)&&!SZe(t)?GJe(t)?XJe(e,null,[t]):XJe(e,t):XJe(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&GJe(n)&&(n=[n]),XJe(e,t,n))}function y1e(){}function v1e(){}function b1e(){return _1e().__VUE_DEVTOOLS_GLOBAL_HOOK__}function _1e(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}H(g1e,"h"),oKe(g1e,"h"),H(y1e,"initCustomFormatter"),oKe(y1e,"initCustomFormatter"),H(v1e,"initDev"),oKe(v1e,"initDev"),H(b1e,"getDevtoolsGlobalHook"),oKe(b1e,"getDevtoolsGlobalHook"),H(_1e,"getTarget"),oKe(_1e,"getTarget");const w1e="function"==typeof Proxy,S1e="devtools-plugin:setup";let C1e,k1e;function x1e(){var e;return void 0!==C1e||(typeof window<"u"&&window.performance?(C1e=!0,k1e=window.performance):typeof globalThis<"u"&&null!==(e=globalThis.perf_hooks)&&void 0!==e&&e.performance?(C1e=!0,k1e=globalThis.perf_hooks.performance):C1e=!1),C1e}function T1e(){return x1e()?k1e.now():Date.now()}H(x1e,"isPerformanceSupported"),oKe(x1e,"isPerformanceSupported"),H(T1e,"now"),oKe(T1e,"now");const E1e=(H(A=class{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const a in e.settings){const t=e.settings[a];n[a]=t.defaultValue}const i=`__vue-devtools-plugin-settings__${e.id}`;let r=Object.assign({},n);try{const e=localStorage.getItem(i),t=JSON.parse(e);Object.assign(r,t)}catch(tvt){}this.fallbacks={getSettings:()=>r,setSettings(e){try{localStorage.setItem(i,JSON.stringify(e))}catch(tvt){}r=e},now:()=>T1e()},t&&t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:oKe(((e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}),"get")}),this.proxiedTarget=new Proxy({},{get:oKe(((e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:oKe((()=>{}),"resolve")}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))),"get")})}setRealTarget(e){return V(this,null,(function*(){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(yield this.target[e.method](...e.args))}))}},"_ApiProxy2"),A);oKe(E1e,"ApiProxy");let A1e=E1e;function L1e(e,t){const n=e,i=_1e(),r=b1e(),a=w1e&&n.enableEarlyProxy;if(!r||!i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&a){const e=a?new A1e(n,r):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else r.emit(S1e,e,t)}var I1e,$1e;H(L1e,"setupDevtoolsPlugin"),oKe(L1e,"setupDevtoolsPlugin"),function(e){e.pop="pop",e.push="push"}(I1e||(I1e={})),function(e){e.back="back",e.forward="forward",e.unknown=""}($1e||($1e={}));const D1e=Symbol("");var P1e;function O1e(e,t){return e instanceof Error&&D1e in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(P1e||(P1e={})),H(O1e,"isNavigationFailure"),oKe(O1e,"isNavigationFailure");const M1e=["Failed to fetch dynamically imported module","Unable to preload CSS for","Network Error AxiosError /art/collection/assets/","Importing a module script failed"],R1e={duplicated:{type:P1e.duplicated,text:"the navigation was prevented since we are already at the target location."},redirected:{type:P1e.redirected,text:"next(newLocation) was called
102inside of a navigation guard to redirect somewhere else."},aborted:{type:P1e.aborted,text:"next(false) was called inside of a navigation guard to the navigation."},cancelled:{type:P1e.cancelled,text:"new navigation completely took place before the current navigation could finish."}};function N1e(e){if(0==e.includes("/"))return;const t=e.split("/");return t[t.length-1]}function F1e(e,t=["duplicated"]){let n="",i=JSON.stringify(e.to.fullPath),r=JSON.stringify(e.from.fullPath);Object.keys(R1e).forEach((i=>{if(0==t.includes(i)){let t=R1e[i];O1e(e,t.type)&&(n=t.text)}})),""!=n&&console.error("Navigation from "+r+" to "+i+" failed because "+n)}function B1e(e,t){e.push(t).catch((e=>{F1e(e)}))}function H1e(e,t){e.replace(t).catch((e=>{F1e(e)}))}function j1e(e="/",t){let n=lKe(JKe());0==e.startsWith("/")&&(n+="/"),n+=e,n=lKe(n);let i=n.lastIndexOf("/"),r=n.substring(i).toUpperCase();return r=r.replace(/O/gi,"0"),r=r.replace(/([LI])/gi,"1"),n=n.substring(0,i)+r,n}function U1e(e,t,n){return V(this,null,(function*(){var t,i;let r=V1e(e);if(r)return{indexedId:r};let a=e.path;if(null==a&&null==(null==(t=null==e?void 0:e.state)?void 0:t.indexedId))return{status:"err.not_found"};if(null!=(null==(i=null==e?void 0:e.state)?void 0:i.indexedId))return{indexedId:e.state.indexedId};let s=a.match(/\/(\w{8}-\w{4}-\w{4}-\w{4}-\w{12})\/?$/);if(s&&s.length>1)return{indexedId:s[1]};if(null==a&&(null==e.params||null==e.params.slug))return{status:"err.not_found"};null==a&&(a=e.name+"/"+e.state.indexedId);let o=j1e(a);try{r=yield nZe(o,n,void 0)}catch(tvt){return{status:"err.not_found",exception:tvt}}return null==r?{status:"err.not_found"}:(r=lKe(r),r=yYe(r),{indexedId:r})}))}function V1e(e){if(null==document)return;let t=document.getElementById("local_id_manager");if(null==t||null==t.innerText)return;let n=JSON.parse(t.innerText);return e&&e.params&&e.params.slug==n.slug?n.indexedId:void 0}function q1e(){return 1==["dev","local",""].includes($Ke())}function z1e(e,t){if(0!=q1e()||1!=M1e.some((t=>{var n;return null==(n=null==e?void 0:e.message)?void 0:n.includes(t)})))throw e;(null==t?void 0:t.fullPath)?window.location=t.fullPath:window.location.reload()}function W1e(e){return V(this,null,(function*(){0==q1e()&&window.location.reload(),0==M1e.some((t=>{var n;return null==(n=null==e?void 0:e.message)?void 0:n.includes(t)}))&&console.error(e)}))}H(N1e,"getSlugFromSlugWithPath"),oKe(N1e,"getSlugFromSlugWithPath"),H(F1e,"handleNavigationFailure"),oKe(F1e,"handleNavigationFailure"),H(B1e,"routerPush"),oKe(B1e,"routerPush"),H(H1e,"routerReplace"),oKe(H1e,"routerReplace"),H(j1e,"cleanupUrl"),oKe(j1e,"cleanupUrl"),H(U1e,"getIndexedIdFromRoute$1"),oKe(U1e,"getIndexedIdFromRoute"),H(V1e,"getIndexedIdFromBody"),oKe(V1e,"getIndexedIdFromBody"),H(q1e,"isDevEnvironment"),oKe(q1e,"isDevEnvironment"),H(z1e,"onError"),oKe(z1e,"onError"),H(W1e,"localCatch$1"),oKe(W1e,"localCatch");const G1e=Object.freeze(Object.defineProperty({__proto__:null,assetMismatchErrors:M1e,cleanupUrl:j1e,getIndexedIdFromRoute:U1e,getSlugFromSlugWithPath:N1e,handleNavigationFailure:F1e,isDevEnvironment:q1e,localCatch:W1e,onError:z1e,routerPush:B1e,routerReplace:H1e},Symbol.toStringTag,{value:"Module"})),K1e={"Ã":"a","á":"a","Ã":"a","â":"a","Ã":"a","ä":"a","Ã":"a","ã":"a","Ã":"c","ç":"c","Ã":"e","è":"e","Ã":"e","é":"e","Ã":"e","ê":"e","Ä":"e","Ä":"e","Ã":"e","ë":"e","Ã":"i","Ã":"i","Ã":"i","î":"i","Ã":"i","ï":"i","Ã":"o","ó":"o","Ã":"o","ò":"o","Ã":"o","ô":"o","Ã":"o","ö":"o","Ã":"o","ø":"o","Ã":"n","ñ":"n","Å":"r","Å":"r","Å ":"s","Å¡":"s","Ã":"u","ú":"u","Ã":"u","ù":"u","Ã":"u","ü":"u","Ã":"y","ý":"y","Ÿ":"y","ÿ":"y"},Y1e=["page","size","q","view","from"],Z1e=/(^id$)|(.[\._]id)/,X1e=["part_of"];function Q1e(e,t){const n="number"==typeof e?e:parseInt(e);return null==n||isNaN(n)?t:n}function J1e(e,t){if(null==e)return t;let n=JSON.parse(JSON.stringify(e));return""==n?[]:"string"==typeof n&&""!=n?[n]:n}function e0e(e,t){return null==e||""==e||"string"!=typeof e?t:e}function t0e(e,t,n,i=[]){let r=e.q?JSON.parse(JSON.stringify(e.q)):[];
102""==r?r=[]:"string"==typeof r&&""!=r&&(r=[r]);const a=Q1e(e.from,0),s=Q1e(e.size,n),o=!!e.debug||void 0;let l,u={},c={};for(let p in e){if(Y1e.includes(p)||null==e[p]||""==p)continue;if("sort"==p){l=e[p];continue}let n=n0e(e,p);if(null!=n){if(i.includes(p)){u[p]=n;continue}t.includes(p)&&(c[p]=n)}}let d={query:r,from:a,size:s,filters:c};return l&&(d.sort=l),o&&(d.debug=o),Object.keys(u).length>0&&(d.extra=u),d}function n0e(e,t){return"string"==typeof e[t]||"boolean"==typeof e[t]?[e[t]]:null!=e[t]&&0!=e[t].length?e[t]:void 0}function i0e(e,t,n,i=!0,r=Y1e,a="search"){let s=r0e(e,n,r);(0==qMe(s,n)||0==i)&&B1e(t,{name:a,query:s})}function r0e(e,t,n=Y1e){let i,r=t,a=JSON.parse(JSON.stringify(r)),s=e.name;switch(e.type){case"batchEvent":Array.isArray(e.value)&&(e.value.forEach((e=>{r=r0e(e,r,n)})),a=r);break;case"clearField":if(n.includes(s)&&"q"!=s)break;delete a[s];break;case"replaceFieldValues":if(n.includes(s)&&"q"!=s)break;a[s]=[];case"addField":if(n.includes(s)&&"q"!=s)break;null==a[s]&&(a[s]=[]),0==Array.isArray(a[s])&&(a[s]=[a[s]]),0==a[s].includes(e.value)&&a[s].push(e.value),a[s]=a[s].filter((function(e){return null!=e&&("string"==typeof e&&e.trim().length>0||"string"!=typeof e)})),0==a[s].length&&delete a[s];break;case"deleteField":if(null==a[s]||(a.sort&&delete a.sort,n.includes(s)&&"q"!=s))break;0==Array.isArray(a[s])&&(a[s]=[a[s]]);let t=a[s].indexOf(e.value);t>-1&&a[s].splice(t,1);break;case"clearAll":let o=[];for(s in a)o.push(s);if(o.forEach((e=>{delete a[e]})),e.value)for(s of Object.keys(e.value))a[s]=e.value[s];break;case"page":i=e.value;break;case"sort":a.sort=e.value;break;case"size":a.size=e.value;break;case"view":a.view=e.value;break;case"updateBoolean":1==e.value?a[s]=!0:a[s]&&delete a[s]}return a.from=i,(null==a.from||0==a.from)&&delete a.from,a}function a0e(e,t,n){let i=e("search_results_title.punctuation.comma"),r="";return null==n&&(n=e("search_results_title.default_conjunction")),t.length>=3?(r=t.slice(0,-1).join(i+" "),r=r+i+n+t.slice(-1)):r=t.join(n),r}function s0e(e,t,n,i=[]){let r="search_results_title."+n.app,a=[],s=[];for(let p in t){let o=t[p],l="";if(!Object.keys(n).includes(p)||n.ignore.includes(p)||!t.hasOwnProperty(p)){console.warn("skipping query parameter:"+p);continue}if(!0===t[p]){s.push(p);continue}i.includes(p)&&(o=o.map((t=>n[t]?e(r+n[t]):t))),n[p].prefix&&(l+=e(r+n[p].prefix));let u=n[p].conjunction?e(r+n[p].conjunction):"";l+=a0e(e,o,u),a.push(l)}if(0==s.length&&0==a.length)return"";let o=e("search_results_title.filter_pieces.basic"),l=e("search_results_title.filter_pieces.boolean"),u=a0e(e,a),c=a0e(e,s.map((t=>e(r+n[t])))),d="";return a.length&&(d+=o+u),s.length&&(d.length&&(d+=l),d+=c),d}function o0e(e,t,n,i=[],r={}){let a=r||{},s=[];if(Array.isArray(t))s=t;else if(s=t.q||[],0==Object.keys(r).length){const e=n.standard;for(let n in t){let i=t[n];e.includes(n)||Array.isArray(i)&&0==i.length||("string"==typeof t[n]?a[n]=[i]:a[n]=i)}}let o=e("search_results_title.punctuation.comma"),l=e("search_results_title.punctuation.quote"),u=e("search_results_title.prefix.keyword"),c=e("search_results_title.prefix.no_keyword"),d=e("search_results_title.default"),p=a0e(e,s.map((e=>l+e+l))),h=s0e(e,a,n,i);if(s.length>0){let e=u+p;return Object.keys(a).length>0&&""!=h&&(e+=o+" "+h),e}return Object.keys(a).length>0?c+h:d}function l0e(e){if(null==e||0==e.length)return;let t={},n=e[0].split(":");return null!=n[0]&&""!=n[0]&&(t.min=parseInt(n[0])),null!=n[1]&&""!=n[1]&&(t.max=parseInt(n[1])),t}function u0e(e){if(null!=e){if(0==e.total)return"search.no_results_error";if("page_out_of_range"==e.error||"too_many_results"==e.error)return"search.out_of_range_error"}}function c0e(e){let t;return null!=e&&e.searchHash&&(t=e.searchHash),t}function d0e(e){if(null!=e.query)return e.query.join(" ")}function p0e(e){let t=[];for(let n=0;n<e.length;n++){let i=e.charAt(n).toLowerCase();K1e[i]?t.push(K1e[i]):t.push(i)}return t.join("").replace(/,/g,"")}function h0e(e){return!(null!=e.query&&0!=e.query.length||null!=e.filters&&0!=Object.keys(e.filters).length)}function f0e(e){let t=[];return Object.keys(e).forEach((n=>{let i=e[n];"string"==typeof i&&i.includes("boolean")&&t.push(n)})),t}function m0e(e,t){let n=Object.assign({},e.filters);return e.query.length>0&&(n.q=e.query),e.size!=t.PAGE_SIZE&&(n.size=e.size),0!=e.from&&(n.from=e.from),e.sort!=t.SORT&&(n.sort=e.sort),n}function g0e(e,t){const n=t.facets||{};return e.forEach(((i,r)=>{const a=n[i.fieldName]||[];if(e[r].disabled=!1,a.length<2)e[r].disabled=!0;else if("DateRange"==i.type){const n=new Set(a.map((e=>e.val)));(1==t.total||1==n.size)&&(e[r].disabled=!0)}})),e}function y0e(e,t,n){var i,r;const a=null!=(i=n.facets)?i:{},s=null!=(r=null==t?void 0:t.filters)?r:{};return e.forEach(((e,t)=>{var n,i;const r="true"==(null==(n=s[e.fieldName])?void 0:n[0]);e.checked=!!r;const o=null==(i=a[e.fieldName])?void 0:i.find((e=>1==Number(e.name)));e.disabled=!(e.checked||o)})),e}function v0e(e){return!!(e.search(Z1e)>-1||X1e.includes(e))}function b0e(e){return V(this,null,(function*(){return Object.entries(e.filters).filter((e=>v0e(e[0]))).reduce(((e,t)=>e.concat(t[1])),[])}))}H(Q1e,"getIntParam"),oKe(Q1e,"getIntParam"),H(J1e,"getArrayParam"),oKe(J1e,"getArrayParam"),H(e0e,"getStringParam"),oKe(e0e,"getStringParam"),H(t0e,"extractSearchParams"),oKe(t0e,"extractSearchParams"),H(n0e,"getKeyValue"),oKe(n0e,"getKeyValue"),H(i0e,"handleSearchEvent"),oKe(i0e,"handleSearchEvent"),H(r0e,"generateNewSearchQueryObject"),oKe(r0e,"generateNewSearchQueryObject"),H(a0e,"joinStringArray"),oKe(a0e,"joinStringArray"),H(s0e,"getFiltersString"),oKe(s0e,"getFiltersString"),H(o0e,"getSearchResultsTitle"),oKe(o0e,"getSearchResultsTitle"),H(l0e,"getDateMinMax"),oKe(l0e,"getDateMinMax"),H(u0e,"getErrorMessage"),oKe(u0e,"getErrorMessage"),H(c0e,"getSearchHash"),oKe(c0e,"getSearchHash"),H(d0e,"getSearchInputText"),oKe(d0e,"getSearchInputText"),H(p0e,"asciiMapText"),oKe(p0e,"asciiMapText"),H(h0e,"isEmptySearch"),oKe(h0e,"isEmptySearch"),H(f0e,"getBooleanFilters"),oKe(f0e,"getBooleanFilters"),H(m0e,"constructQueryObject"),oKe(m0e,"constructQueryObject"),H(g0e,"getFacetInfo"),oKe(g0e,"getFacetInfo"),H(y0e,"getFilterInfo"),oKe(y0e,"getFilterInfo"),H(v0e,"isIdFilter"),oKe(v0e,"isIdFilter"),H(b0e,"getChipTermIds"),oKe(b0e,"getChipTermIds");const _0e=Object.freeze(Object.defineProperty({__proto__:null,asciiMapText:p0e,constructQueryObject:m0e,extractSearchParams:t0e,generateNewSearchQueryObject:r0e,getArrayParam:J1e,getBooleanFilters:f0e,getChipTermIds:b0e,getDateMinMax:l0e,getErrorMessage:u0e,getFacetInfo:g0e,getFilterInfo:y0e,getFiltersString:s0e,getIntParam:Q1e,getSearchHash:c0e,getSearchInputText:d0e,getSearchResultsTitle:o0e,getStringParam:e0e,handleSearchEvent:i0e,isEmptySearch:h0e,isIdFilter:v0e,joinStringArray:a0e},Symbol.toStringTag,{value:"Module"})),w0e=new Date(864e13),S0e=new Date(-864e13);function C0e(e,t=console){if(null==e)return e;let n,i,r,a,s,o,l,u,c=0,d=new Date,p=e.split(" "),h=!1;if("BC"==p[0]?(n=p[1],i=p[2],h=!0):(n=p[0],i=p[1]),null==i&&t)return void t.error("invalid date passed into date parsing %s",e);let f=n.split("-"),m=i.split(":");return r=f[0],h&&(r*=-1),a=f[1],s=f[2],o=m[0],l=m[1],u=m[2],c=m[3],d.setHours(o),d.setMinutes(l),d.setSeconds(u),d.setMilliseconds(c),d.setFullYear(r),d.setDate(s),d.setMonth(a-1),d}function k0e(e,t=10,n=!0,i=console){let r,a,s=[],o=w0e,l=S0e;return e.forEach((e=>{if(null!=e){let t=C0e(e.gte,i),n=C0e(e.lte,i);t<o&&(o=t,r=e.gte),n>l&&(l=n,a=e.lte)}})),0==n?{min:{date:o,text:r},max:{date:l,text:a}}:(o!=w0e&&l!=S0e&&(s=x0e(o,l,t)),s)}function x0e(e,t,n){let i=t,r=[];if(null!=e&&null!=i){let t=1900+e.getYear(),a=1900+i.getYear(),s=Math.floor(t/n)*n,o=Math.floor(a/n)*n;if(s<o){let e=s;for(;e<=o;)r.push(e),e+=n}else{let e=Math.floor(a/n)*n,i=Math.ceil(t/n)*n;r=t==a&&t-e<i-a?[e]:[i]}}return r}H(C0e,"buildDate"),oKe(C0e,"buildDate"),H(k0e,"getTotalRange"),oKe(k0e,"getTotalRange"),H(x0e,"getRangeIntervals"),oKe(x0e,"getRangeIntervals");const T0e=Object.freeze(Object.defineProperty({__proto__:null,buildDate:C0e,getRangeIntervals:x0e,getTotalRange:k0e},Symbol.toStringTag,{value:"Module"}));function E0e(e){return e.replace(/(\w)(\w*)/g,(function(e,t,n){return t.toUpperCase()+n.toLowerCase()}))}function A0e(e,...t){for(let n of t)for(let t in n){let i=n[t],r=e[t];Object(i)!=i||Object(r)!==r?e[t]=n[t]:e[t]=A0e(r,i)}return e}function L0e(e){return e._id=e.id,e.id=yYe(e.id),e}function I0e(e,t="/"){let n=e.items[0];return n.id=t+yYe(n.target.id),n}function $0e(e,t,n){let i=n.id,r=i.split("/");return{id:yYe(i),body:{id:"http://localhost:8080/"+t+"/"+r[r.length-1]}}}function D0e(e,t,n){e.onGet(t).reply(200,n)}function P0e(e){let t,n=yYe(e).split("/")[1],i="";if(e.includes("?")){const t=e.indexOf("?"),r=e.substring(e.indexOf("?")+1);let a=e.substring(0,t);a.endsWith("/")&&(a=a.substring(0,a.length-1)),i=a.split("/").at(-1),n=YMe.MD5(`${i}?${r}`)}return e.includes("/api/")?t=YMe.MD5(e):e.includes("/links/")?(e=e.replace("http://localhost:8080/","https://services.getty.edu/id-management/"),t=YMe.MD5(e)):e.includes("-tm-")&&(n=`-tm-${n}`),{id:n,url:e,oldId:t,extra:i}}function O0e(e){return V(this,arguments,(function*({mockAxios:e,existsSync:t,readFileSync:n,writeFileSync:i,mkdirSync:r,renameSync:a,baseFilePath:s="src/data/mocks"}){e.onAny().reply((e=>V(this,null,(function*(){let{id:o,url:l,oldId:u,extra:c}=P0e(e.url);e.url=l,["aat","tgn","ulan"].forEach((e=>{l.includes(`/${e}/`)&&(c=`${e}`)})),l.includes("/manifest/")&&(c="manifest",(l.includes("/v3.")||l.includes("/3/"))&&(c="manifest3")),"get"!=e.method&&(c=e.url.split("/").at(-1),o=YMe.MD5(JSON.stringify(e.data)+c),u=YMe.MD5(JSON.stringify(e.data)+e.uri),e.url.includes("sparql")&&(o="sparql-"+o,c="sparql")),s.endsWith("/")&&(s=s.splice(0,s.length-1)),""!=c&&(c+="/");let d,p=`${s}/${c}${o}.json`;console.trace(`${l} --\x3e ${p}`),0==t(`${s}/${c}`)&&r(`${s}/${c}`);const h=`${s}/${u}.json`;if(t(h)&&0==t(p)&&a(h,p),t(p))d=n(p,"utf8"),d=JSON.parse(d);else{delete e.headers.axiosRetryCount;try{d=yield nMe.request(e)}catch(tvt){if("get"==e.method)try{d=(yield fetch(e.url)).json()}catch(f){console.error("fetch fallback failed",f)}console.error(`${e.url} --\x3e ${p}`,tvt)}i(p,JSON.stringify(d.data)),d=d.data}return[200,d]}))))}
102))}function M0e(e){return V(this,arguments,(function*({indexedId:e,basePath:t="src/data/mocks",addMethod:n,getMethod:i,translate:r,translateNumber:a,existsSync:s,readFileSync:o,writeFileSync:l,mkdirSync:u}){let c=e.split("/")[1];expect(i(e)).toEqual(void 0);const d=`${t}/${c}.json`;0==s(t)&&u(t),yield n(e,r,a);const p=i(e);if(s(d)){const e=JSON.parse(o(d));expect(p).toEqual(e)}l(d,JSON.stringify(p,null,4))}))}function R0e(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}H(E0e,"toPascalCase"),oKe(E0e,"toPascalCase"),H(A0e,"deepAssign"),oKe(A0e,"deepAssign"),H(L0e,"setupForStore"),oKe(L0e,"setupForStore"),H(I0e,"setupIdManagerResponseForStore"),oKe(I0e,"setupIdManagerResponseForStore"),H($0e,"fakeIdManagerEntry"),oKe($0e,"fakeIdManagerEntry"),H(D0e,"setupMock"),oKe(D0e,"setupMock"),H(P0e,"cleanupEnvironmentUrls"),oKe(P0e,"cleanupEnvironmentUrls"),H(O0e,"setupMockAxios"),oKe(O0e,"setupMockAxios"),H(M0e,"addAndValidateStore"),oKe(M0e,"addAndValidateStore"),H(R0e,"warn"),oKe(R0e,"warn");const N0e={};function F0e(e){N0e[e]||(N0e[e]=!0,R0e(e))}H(F0e,"warnOnce"),oKe(F0e,"warnOnce");const B0e=typeof window<"u",H0e=/\{([0-9a-zA-Z]+)\}/g;function j0e(e,...t){return 1===t.length&&u2e(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(H0e,((e,n)=>t.hasOwnProperty(n)?t[n]:""))}H(j0e,"format$1"),oKe(j0e,"format$1");const U0e=oKe(((e,t=!1)=>t?Symbol.for(e):Symbol(e)),"makeSymbol"),V0e=oKe(((e,t,n)=>q0e({l:e,k:t,s:n})),"generateFormatCacheKey"),q0e=oKe((e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027")),"friendlyJSONstringify"),z0e=oKe((e=>"number"==typeof e&&isFinite(e)),"isNumber"),W0e=oKe((e=>"[object Date]"===p2e(e)),"isDate"),G0e=oKe((e=>"[object RegExp]"===p2e(e)),"isRegExp"),K0e=oKe((e=>h2e(e)&&0===Object.keys(e).length),"isEmptyObject"),Y0e=Object.assign,Z0e=Object.create,X0e=oKe(((e=null)=>Z0e(e)),"create");let Q0e;const J0e=oKe((()=>Q0e||(Q0e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:X0e())),"getGlobalThis");function e2e(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function t2e(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function n2e(e){return e=(e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,((e,t,n)=>`${t}="${t2e(n)}"`))).replace(/(\w+)\s*=\s*'([^']*)'/g,((e,t,n)=>`${t}='${t2e(n)}'`)),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach((t=>{e=e.replace(t,"$1javascript:")})),e}H(e2e,"escapeHtml"),oKe(e2e,"escapeHtml"),H(t2e,"escapeAttributeValue"),oKe(t2e,"escapeAttributeValue"),H(n2e,"sanitizeTranslatedHtml"),oKe(n2e,"sanitizeTranslatedHtml");const i2e=Object.prototype.hasOwnProperty;function r2e(e,t){return i2e.call(e,t)}H(r2e,"hasOwn"),oKe(r2e,"hasOwn");const a2e=Array.isArray,s2e=oKe((e=>"function"==typeof e),"isFunction"),o2e=oKe((e=>"string"==typeof e),"isString"),l2e=oKe((e=>"boolean"==typeof e),"isBoolean"),u2e=oKe((e=>null!==e&&"object"==typeof e),"isObject"),c2e=oKe((e=>u2e(e)&&s2e(e.then)&&s2e(e.catch)),"isPromise"),d2e=Object.prototype.toString,p2e=oKe((e=>d2e.call(e)),"toTypeString"),h2e=oKe((e=>"[object Object]"===p2e(e)),"isPlainObject"),f2e=oKe((e=>null==e?"":a2e(e)||h2e(e)&&e.toString===d2e?JSON.stringify(e,null,2):String(e)),"toDisplayString");function m2e(e,t=""){return e.reduce(((e,n,i)=>0===i?e+n:e+t+n),"")}H(m2e,"join"),oKe(m2e,"join");function g2e(e,t=0,n=e.length){const i=e.split(/\r?\n/);let r=0;const a=[];for(let s=0;s<i.length;s++)if(r+=i[s].length+1,r>=t){for(let e=s-2;e<=s+2||n>r;e++){if(e<0||e>=i.length)continue;const o=e+1;a.push(`${o}${" ".repeat(3-String(o).length)}| ${i[e]}`);const l=i[e].length;if(e===s){const e=t-(r-l)+1,i=Math.max(1,n>r?l-e:n-t);a.push(" | "+" ".repeat(e)+"^".repeat(i))}else if(e>s){if(n>r){const e=Math.max(Math.min(n-r,l),1);a.push(" | "+"^".repeat(e))}r+=l+1}}break}return a.join("\n")}function y2e(){const e=new Map;return{events:e,on(t,n){const i=e.get(t);i&&i.push(n)||e.set(t,[n])},off(t,n){const i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map((e=>e(n))),(e.get("*")||[]).slice().map((e=>e(t,n)))}}}H(g2e,"generateCodeFrame"),oKe(g2e,"generateCodeFrame"),H(y2e,"createEmitter"),oKe(y2e,"createEmitter");const v2e=oKe((e=>!u2e(e)||a2e(e)),"isNotObjectOrIsArray");
102function b2e(e,t){if(v2e(e)||v2e(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:e,des:t}=n.pop();Object.keys(e).forEach((i=>{"__proto__"!==i&&(u2e(e[i])&&!u2e(t[i])&&(t[i]=Array.isArray(e[i])?[]:X0e()),v2e(t[i])||v2e(e[i])?t[i]=e[i]:n.push({src:e[i],des:t[i]}))}))}}function _2e(e,t,n){return{line:e,column:t,offset:n}}function w2e(e,t,n){return{start:e,end:t}}H(b2e,"deepCopy"),oKe(b2e,"deepCopy"),H(_2e,"createPosition"),oKe(_2e,"createPosition"),H(w2e,"createLocation"),oKe(w2e,"createLocation");const S2e={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14};function C2e(e,t,n={}){const{domain:i,messages:r,args:a}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=i,s}function k2e(e){throw e}H(C2e,"createCompileError"),oKe(C2e,"createCompileError"),H(k2e,"defaultOnError"),oKe(k2e,"defaultOnError");const x2e=/<\/?[\w\s="/.':;#-\/]+>/,T2e=oKe((e=>x2e.test(e)),"detectHtmlTag"),E2e=" ",A2e="\r",L2e="\n",I2e="\u2028",$2e="\u2029";function D2e(e){const t=e;let n=0,i=1,r=1,a=0;const s=oKe((e=>t[e]===A2e&&t[e+1]===L2e),"isCRLF"),o=oKe((e=>t[e]===L2e),"isLF"),l=oKe((e=>t[e]===$2e),"isPS"),u=oKe((e=>t[e]===I2e),"isLS"),c=oKe((e=>s(e)||o(e)||l(e)||u(e)),"isLineEnd"),d=oKe((()=>n),"index"),p=oKe((()=>i),"line"),h=oKe((()=>r),"column"),f=oKe((()=>a),"peekOffset"),m=oKe((e=>s(e)||l(e)||u(e)?L2e:t[e]),"charAt"),g=oKe((()=>m(n)),"currentChar"),y=oKe((()=>m(n+a)),"currentPeek");function v(){return a=0,c(n)&&(i++,r=0),s(n)&&n++,n++,r++,t[n]}function b(){return s(n+a)&&a++,a++,t[n+a]}function _(){n=0,i=1,r=1,a=0}function w(e=0){a=e}function S(){const e=n+a;for(;e!==n;)v();a=0}return H(v,"next"),oKe(v,"next"),H(b,"peek"),oKe(b,"peek"),H(_,"reset"),oKe(_,"reset"),H(w,"resetPeek"),oKe(w,"resetPeek"),H(S,"skipToPeek"),oKe(S,"skipToPeek"),{index:d,line:p,column:h,peekOffset:f,charAt:m,currentChar:g,currentPeek:y,next:v,peek:b,reset:_,resetPeek:w,skipToPeek:S}}H(D2e,"createScanner"),oKe(D2e,"createScanner");const P2e=void 0,O2e="'",M2e="tokenizer";function R2e(e,t={}){const n=!1!==t.location,i=D2e(e),r=oKe((()=>i.index()),"currentOffset"),a=oKe((()=>_2e(i.line(),i.column(),i.index())),"currentPosition"),s=a(),o=r(),l={currentType:13,offset:o,startLoc:s,endLoc:s,lastType:13,lastOffset:o,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},u=oKe((()=>l),"context"),{onError:c}=t;function d(e,t,i,...r){const a=u();if(t.column+=i,t.offset+=i,c){const i=C2e(e,n?w2e(a.startLoc,t):null,{domain:M2e,args:r});c(i)}}function p(e,t,i){e.endLoc=a(),e.currentType=t;const r={type:t};return n&&(r.loc=w2e(e.startLoc,e.endLoc)),null!=i&&(r.value=i),r}H(d,"emitError"),oKe(d,"emitError"),H(p,"getToken"),oKe(p,"getToken");const h=oKe((e=>p(e,13)),"getEndToken");function f(e,t){return e.currentChar()===t?(e.next(),t):(d(S2e.EXPECTED_TOKEN,a(),0,t),"")}function m(e){let t="";for(;e.currentPeek()===E2e||e.currentPeek()===L2e;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function y(e){if(e===P2e)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e){if(e===P2e)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}function b(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i=y(e.currentPeek());return e.resetPeek(),i}function _(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i=v("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),i}function w(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i=e.currentPeek()===O2e;return e.resetPeek(),i}function S(e,t){const{currentType:n}=t;if(7!==n)return!1;m(e);const i="."===e.currentPeek();return e.resetPeek(),i}function C(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const i=y(e.currentPeek());return e.resetPeek(),i}function k(e,t){const{currentType:n}=t;if(7!==n&&11!==n)return!1;m(e);const i=":"===e.currentPeek();return e.resetPeek(),i}function x(e,t){const{currentType:n}=t;if(9!==n)return!1;const i=oKe((()=>{const t=e.currentPeek();return"{"===t?y(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===E2e||!t)&&(t===L2e?(e.peek(),i()):E(e,!1))}),"fn"),r=i();return e.resetPeek(),r}function T(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function E(e,t=!0){const n=oKe(((t=!1,i="")=>{const r=e.currentPeek();return"{"!==r&&"@"!==r&&r?"|"===r?!(i===E2e||i===L2e):r===E2e?(e.peek(),n(!0,E2e)):r!==L2e||(e.peek(),n(!0,L2e)):t}),"fn"),i=n();return t&&e.resetPeek(),i}function A(e,t){const n=e.currentChar();return n===P2e?P2e:t(n)?(e.next(),n):null}function L(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function I(e){return A(e,L)}function $(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function D(e){return A(e,$)}function P(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function O(e){return A(e,P)}function M(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function R(e){return A(e,M)}function N(e){let t="",n="";for(;t=O(e);)n+=t;return n}function F(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===E2e||n===L2e)if(E(e))t+=n,e.next();else{if(T(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function B(e){g(e);let t="",n="";for(;t=D(e);)n+=t;return e.currentChar()===P2e&&d(S2e.UNTERMINATED_CLOSING_BRACE,a(),0),n}function j(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${N(e)}`):t+=N(e),e.currentChar()===P2e&&d(S2e.UNTERMINATED_CLOSING_BRACE,a(),0),t}function U(e){return e!==O2e&&e!==L2e}function V(e){g(e),f(e,"'");let t="",n="";for(;t=A(e,U);)n+="\\"===t?q(e):t;const i=e.currentChar();return i===L2e||i===P2e?(d(S2e.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),i===L2e&&(e.next(),f(e,"'")),n):(f(e,"'"),n)}function q(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return z(e,t,4);case"U":return z(e,t,6);default:return d(S2e.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),""}}function z(e,t,n){f(e,t);let i="";for(let r=0;r<n;r++){const n=R(e);if(!n){d(S2e.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${i}${e.currentChar()}`);break}i+=n}return`\\${t}${i}`}function W(e){return"{"!==e&&"}"!==e&&e!==E2e&&e!==L2e}function G(e){g(e);let t="",n="";for(;t=A(e,W);)n+=t;return n}function K(e){let t="",n="";for(;t=I(e);)n+=t;return n}function Y(e){const t=oKe((n=>{const i=e.currentChar();return"{"!==i&&"@"!==i&&"|"!==i&&"("!==i&&")"!==i&&i&&i!==E2e?(n+=i,e.next(),t(n)):n}),"fn");return t("")}function Z(e){g(e);const t=f(e,"|");return g(e),t}function X(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&d(S2e.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=p(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(S2e.EMPTY_PLACEHOLDER,a(),0),e.next(),n=p(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&d(S2e.UNTERMINATED_CLOSING_BRACE,a(),0),n=Q(e,t)||h(t),t.braceNest=0,n;default:{let i=!0,r=!0,s=!0;if(T(e))return t.braceNest>0&&d(S2e.UNTERMINATED_CLOSING_BRACE,a(),0),n=p(t,1,Z(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return d(S2e.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,J(e,t);if(i=b(e,t))return n=p(t,4,B(e)),g(e),n;if(r=_(e,t))return n=p(t,5,j(e)),g(e),n;if(s=w(e,t))return n=p(t,6,V(e)),g(e),n;if(!i&&!r&&!s)return n=p(t,12,G(e)),d(S2e.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function Q(e,t){const{currentType:n}=t;let i=null;const r=e.currentChar();switch((7===n||8===n||11===n||9===n)&&(r===L2e||r===E2e)&&d(S2e.INVALID_LINKED_FORMAT,a(),0),r){case"@":return e.next(),i=p(t,7,"@"),t.inLinked=!0,i;case".":return g(e),e.next(),p(t,8,".");case":":return g(e),e.next(),p(t,9,":");default:return T(e)?(i=p(t,1,Z(e)),t.braceNest=0,t.inLinked=!1,i):S(e,t)||k(e,t)?(g(e),Q(e,t)):C(e,t)?(g(e),p(t,11,K(e))):x(e,t)?(g(e),"{"===r?X(e,t)||i:p(t,10,Y(e))):(7===n&&d(S2e.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,J(e,t))}}function J(e,t){let n={type:13};if(t.braceNest>0)return X(e,t)||h(t);if(t.inLinked)return Q(e,t)||h(t);switch(e.currentChar()){case"{":return X(e,t)||h(t);case"}":return d(S2e.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),p(t,3,"}");case"@":return Q(e,t)||h(t);default:if(T(e))return n=p(t,1,Z(e)),t.braceNest=0,t.inLinked=!1,n;if(E(e))return p(t,0,F(e))}return n}function ee(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=s,l.offset=r(),l.startLoc=a(),i.currentChar()===P2e?p(l,13):J(i,l)}return H(f,"eat"),oKe(f,"eat"),H(m,"peekSpaces"),oKe(m,"peekSpaces"),H(g,"skipSpaces"),oKe(g,"skipSpaces"),H(y,"isIdentifierStart"),oKe(y,"isIdentifierStart"),H(v,"isNumberStart"),oKe(v,"isNumberStart"),H(b,"isNamedIdentifierStart"),oKe(b,"isNamedIdentifierStart"),H(_,"isListIdentifierStart"),oKe(_,"isListIdentifierStart"),H(w,"isLiteralStart"),oKe(w,"isLiteralStart"),H(S,"isLinkedDotStart"),oKe(S,"isLinkedDotStart"),H(C,"isLinkedModifierStart"),oKe(C,"isLinkedModifierStart"),H(k,"isLinkedDelimiterStart"),oKe(k,"isLinkedDelimiterStart"),H(x,"isLinkedReferStart"),oKe(x,"isLinkedReferStart"),H(T,"isPluralStart"),oKe(T,"isPluralStart"),H(E,"isTextStart"),oKe(E,"isTextStart"),H(A,"takeChar"),oKe(A,"takeChar"),H(L,"isIdentifier"),oKe(L,"isIdentifier"),H(I,"takeIdentifierChar"),oKe(I,"takeIdentifierChar"),H($,"isNamedIdentifier"),oKe($,"isNamedIdentifier"),H(D,"takeNamedIdentifierChar"),oKe(D,"takeNamedIdentifierChar"),H(P,"isDigit"),oKe(P,"isDigit"),H(O,"takeDigit"),oKe(O,"takeDigit"),H(M,"isHexDigit"),oKe(M,"isHexDigit"),H(R,"takeHexDigit"),oKe(R,"takeHexDigit"),H(N,"getDigits"),oKe(N,"getDigits"),H(F,"readText"),oKe(F,"readText"),H(B,"readNamedIdentifier"),oKe(B,"readNamedIdentifier"),H(j,"readListIdentifier"),oKe(j,"readListIdentifier"),H(U,"isLiteral2"),oKe(U,"isLiteral"),H(V,"readLiteral"),oKe(V,"readLiteral"),H(q,"readEscapeSequence"),oKe(q,"readEscapeSequence"),H(z,"readUnicodeEscapeSequence"),oKe(z,"readUnicodeEscapeSequence"),H(W,"isInvalidIdentifier"),oKe(W,"isInvalidIdentifier"),H(G,"readInvali
102dIdentifier"),oKe(G,"readInvalidIdentifier"),H(K,"readLinkedModifier"),oKe(K,"readLinkedModifier"),H(Y,"readLinkedRefer"),oKe(Y,"readLinkedRefer"),H(Z,"readPlural"),oKe(Z,"readPlural"),H(X,"readTokenInPlaceholder"),oKe(X,"readTokenInPlaceholder"),H(Q,"readTokenInLinked"),oKe(Q,"readTokenInLinked"),H(J,"readToken"),oKe(J,"readToken"),H(ee,"nextToken"),oKe(ee,"nextToken"),{nextToken:ee,currentOffset:r,currentPosition:a,context:u}}H(R2e,"createTokenizer"),oKe(R2e,"createTokenizer");const N2e="parser",F2e=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function B2e(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function H2e(e={}){const t=!1!==e.location,{onError:n}=e;function i(e,i,r,a,...s){const o=e.currentPosition();if(o.offset+=a,o.column+=a,n){const e=C2e(i,t?w2e(r,o):null,{domain:N2e,args:s});n(e)}}function r(e,n,i){const r={type:e};return t&&(r.start=n,r.end=n,r.loc={start:i,end:i}),r}function a(e,n,i,r){t&&(e.end=n,e.loc&&(e.loc.end=i))}function s(e,t){const n=e.context(),i=r(3,n.offset,n.startLoc);return i.value=t,a(i,e.currentOffset(),e.currentPosition()),i}function o(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:s}=n,o=r(5,i,s);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function l(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:s}=n,o=r(4,i,s);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function u(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:s}=n,o=r(9,i,s);return o.value=t.replace(F2e,B2e),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function c(e){const t=e.nextToken(),n=e.context(),{lastOffset:s,lastStartLoc:o}=n,l=r(8,s,o);return 11!==t.type?(i(e,S2e.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),l.value="",a(l,s,o),{nextConsumeToken:t,node:l}):(null==t.value&&i(e,S2e.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,j2e(t)),l.value=t.value||"",a(l,e.currentOffset(),e.currentPosition()),{node:l})}function d(e,t){const n=e.context(),i=r(7,n.offset,n.startLoc);return i.value=t,a(i,e.currentOffset(),e.currentPosition()),i}function p(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let s=e.nextToken();if(8===s.type){const t=c(e);n.modifier=t.node,s=t.nextConsumeToken||e.nextToken()}switch(9!==s.type&&i(e,S2e.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j2e(s)),s=e.nextToken(),2===s.type&&(s=e.nextToken()),s.type){case 10:null==s.value&&i(e,S2e.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j2e(s)),n.key=d(e,s.value||"");break;case 4:null==s.value&&i(e,S2e.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j2e(s)),n.key=l(e,s.value||"");break;case 5:null==s.value&&i(e,S2e.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j2e(s)),n.key=o(e,s.value||"");break;case 6:null==s.value&&i(e,S2e.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j2e(s)),n.key=u(e,s.value||"");break;default:{i(e,S2e.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const o=e.context(),l=r(7,o.offset,o.startLoc);return l.value="",a(l,o.offset,o.startLoc),n.key=l,a(n,o.offset,o.startLoc),{nextConsumeToken:s,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function h(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let c=null;do{const r=c||e.nextToken();switch(c=null,r.type){case 0:null==r.value&&i(e,S2e.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j2e(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&i(e,S2e.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j2e(r)),n.items.push(o(e,r.value||""));break;case 4:null==r.value&&i(e,S2e.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j2e(r)),n.items.push(l(e,r.value||""));break;case 6:null==r.value&&i(e,S2e.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j2e(r)),n.items.push(u(e,r.value||""));break;case 7:{const t=p(e);n.items.push(t.node),c=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function f(e,t,n,s){const o=e.context();let l=0===s.items.length;const u=r(1,t,n);u.cases=[],u.cases.push(s);do{const t=h(e);l||(l=0===t.items.length),u.cases.push(t)}while(13!==o.currentType);return l&&i(e,S2e.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(u,e.currentOffset(),e.currentPosition()),u}function m(e){const t=e.context(),{offset:n,startLoc:i}=t,r=h(e);return 13===t.currentType?r:f(e,n,i,r)}function g(n){const s=R2e(n,Y0e({},e)),o=s.context(),l=r(0,o.offset,o.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(s),e.onCacheKey&&(l.cac
102heKey=e.onCacheKey(n)),13!==o.currentType&&i(s,S2e.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,0,n[o.offset]||""),a(l,s.currentOffset(),s.currentPosition()),l}return H(i,"emitError"),oKe(i,"emitError"),H(r,"startNode"),oKe(r,"startNode"),H(a,"endNode"),oKe(a,"endNode"),H(s,"parseText"),oKe(s,"parseText"),H(o,"parseList"),oKe(o,"parseList"),H(l,"parseNamed"),oKe(l,"parseNamed"),H(u,"parseLiteral"),oKe(u,"parseLiteral"),H(c,"parseLinkedModifier"),oKe(c,"parseLinkedModifier"),H(d,"parseLinkedKey"),oKe(d,"parseLinkedKey"),H(p,"parseLinked"),oKe(p,"parseLinked"),H(h,"parseMessage"),oKe(h,"parseMessage"),H(f,"parsePlural"),oKe(f,"parsePlural"),H(m,"parseResource"),oKe(m,"parseResource"),H(g,"parse2"),oKe(g,"parse"),{parse:g}}function j2e(e){if(13===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"â¦":t}function U2e(e,t={}){const n={ast:e,helpers:new Set};return{context:oKe((()=>n),"context"),helper:oKe((e=>(n.helpers.add(e),e)),"helper")}}function V2e(e,t){for(let n=0;n<e.length;n++)q2e(e[n],t)}function q2e(e,t){switch(e.type){case 1:V2e(e.cases,t),t.helper("plural");break;case 2:V2e(e.items,t);break;case 6:q2e(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function z2e(e,t={}){const n=U2e(e);n.helper("normalize"),e.body&&q2e(e.body,n);const i=n.context();e.helpers=Array.from(i.helpers)}function W2e(e){const t=e.body;return 2===t.type?G2e(t):t.cases.forEach((e=>G2e(e))),e}function G2e(e){if(1===e.items.length){const t=e.items[0];(3===t.type||9===t.type)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const i=e.items[n];if(3!==i.type&&9!==i.type||null==i.value)break;t.push(i.value)}if(t.length===e.items.length){e.static=m2e(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];(3===n.type||9===n.type)&&delete n.value}}}}function K2e(e){switch(e.t=e.type,e.type){case 0:{const t=e;K2e(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)K2e(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)K2e(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;K2e(t.key),t.k=t.key,delete t.key,t.modifier&&(K2e(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Y2e(e,t){const{filename:n,breakLineCode:i,needIndent:r}=t,a=!1!==t.location,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:r,indentLevel:0};a&&e.loc&&(s.source=e.loc.source);const o=oKe((()=>s),"context");function l(e,t){s.code+=e}function u(e,t=!0){const n=t?i:"";l(r?n+" ".repeat(e):n)}function c(e=!0){const t=++s.indentLevel;e&&u(t)}function d(e=!0){const t=--s.indentLevel;e&&u(t)}function p(){u(s.indentLevel)}return H(l,"push"),oKe(l,"push"),H(u,"_newline"),oKe(u,"_newline"),H(c,"indent"),oKe(c,"indent"),H(d,"deindent"),oKe(d,"deindent"),H(p,"newline"),oKe(p,"newline"),{context:o,push:l,indent:c,deindent:d,newline:p,helper:oKe((e=>`_${e}`),"helper"),needIndent:oKe((()=>s.needIndent),"needIndent")}}function Z2e(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),e3e(e,t.key),t.modifier?(e.push(", "),e3e(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function X2e(e,t){const{helper:n,needIndent:i}=e;e.push(`${n("normalize")}([`),e.indent(i());const r=t.items.length;for(let a=0;a<r&&(e3e(e,t.items[a]),a!==r-1);a++)e.push(", ");e.deindent(i()),e.push("])")}function Q2e(e,t){const{helper:n,needIndent:i}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(i());const r=t.cases.length;for(let n=0;n<r&&(e3e(e,t.cases[n]),n!==r-1);n++)e.push(", ");e.deindent(i()),e.push("])")}}function J2e(e,t){t.body?e3e(e,t.body):e.push("null")}function e3e(e,t){const{helper:n}=e;switch(t.type){case 0:J2e(e,t);break;case 1:Q2e(e,t);break;case 2:X2e(e,t);break;case 6:Z2e(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t)}}H(B2e,"fromEscapeSequence"),oKe(B2e,"fromEscapeSequence"),H(H2e,"createParser"),oKe(H2e,"createParser"),H(j2e,"getTokenCaption"),oKe(j2e,"getTokenCaption"),H(U2e,"createTransformer"),oKe(U2e,"createTransformer"),H(V2e,"traverseNo
102des"),oKe(V2e,"traverseNodes"),H(q2e,"traverseNode"),oKe(q2e,"traverseNode"),H(z2e,"transform"),oKe(z2e,"transform"),H(W2e,"optimize"),oKe(W2e,"optimize"),H(G2e,"optimizeMessageNode"),oKe(G2e,"optimizeMessageNode"),H(K2e,"minify"),oKe(K2e,"minify"),H(Y2e,"createCodeGenerator"),oKe(Y2e,"createCodeGenerator"),H(Z2e,"generateLinkedNode"),oKe(Z2e,"generateLinkedNode"),H(X2e,"generateMessageNode"),oKe(X2e,"generateMessageNode"),H(Q2e,"generatePluralNode"),oKe(Q2e,"generatePluralNode"),H(J2e,"generateResource"),oKe(J2e,"generateResource"),H(e3e,"generateNode"),oKe(e3e,"generateNode");const t3e=oKe(((e,t={})=>{const n=o2e(t.mode)?t.mode:"normal",i=o2e(t.filename)?t.filename:"message.intl";t.sourceMap;const r=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],o=Y2e(e,{filename:i,breakLineCode:r,needIndent:a});o.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),o.indent(a),s.length>0&&(o.push(`const { ${m2e(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),o.newline()),o.push("return "),e3e(o,e),o.deindent(a),o.push("}"),delete e.helpers;const{code:l,map:u}=o.context();return{ast:e,code:l,map:u?u.toJSON():void 0}}),"generate");function n3e(e,t={}){const n=Y0e({},t),i=!!n.jit,r=!!n.minify,a=null==n.optimize||n.optimize,s=H2e(n).parse(e);return i?(a&&W2e(s),r&&K2e(s),{ast:s,code:""}):(z2e(s,n),t3e(s,n))}function i3e(){"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(J0e().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function r3e(e){return u2e(e)&&0===f3e(e)&&(r2e(e,"b")||r2e(e,"body"))}H(n3e,"baseCompile$1"),oKe(n3e,"baseCompile$1"),H(i3e,"initFeatureFlags$1"),oKe(i3e,"initFeatureFlags$1"),H(r3e,"isMessageAST"),oKe(r3e,"isMessageAST");const a3e=["b","body"];function s3e(e){return w3e(e,a3e)}H(s3e,"resolveBody"),oKe(s3e,"resolveBody");const o3e=["c","cases"];function l3e(e){return w3e(e,o3e,[])}
102H(l3e,"resolveCases"),oKe(l3e,"resolveCases");const u3e=["s","static"];function c3e(e){return w3e(e,u3e)}H(c3e,"resolveStatic"),oKe(c3e,"resolveStatic");const d3e=["i","items"];function p3e(e){return w3e(e,d3e,[])}H(p3e,"resolveItems"),oKe(p3e,"resolveItems");const h3e=["t","type"];function f3e(e){return w3e(e,h3e)}H(f3e,"resolveType"),oKe(f3e,"resolveType");const m3e=["v","value"];function g3e(e,t){const n=w3e(e,m3e);if(null!=n)return n;throw C3e(t)}H(g3e,"resolveValue$1"),oKe(g3e,"resolveValue$1");const y3e=["m","modifier"];function v3e(e){return w3e(e,y3e)}H(v3e,"resolveLinkedModifier"),oKe(v3e,"resolveLinkedModifier");const b3e=["k","key"];function _3e(e){const t=w3e(e,b3e);if(t)return t;throw C3e(6)}function w3e(e,t,n){for(let i=0;i<t.length;i++){const n=t[i];if(r2e(e,n)&&null!=e[n])return e[n]}return n}H(_3e,"resolveLinkedKey"),oKe(_3e,"resolveLinkedKey"),H(w3e,"resolveProps"),oKe(w3e,"resolveProps");const S3e=[...a3e,...o3e,...u3e,...d3e,...b3e,...y3e,...m3e,...h3e];function C3e(e){return new Error(`unhandled node type: ${e}`)}function k3e(e){return oKe((t=>x3e(t,e)),"msg")}function x3e(e,t){const n=s3e(t);if(null==n)throw C3e(0);if(1===f3e(n)){const t=l3e(n);return e.plural(t.reduce(((t,n)=>[...t,T3e(e,n)]),[]))}return T3e(e,n)}function T3e(e,t){const n=c3e(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=p3e(t).reduce(((t,n)=>[...t,E3e(e,n)]),[]);return e.normalize(n)}}function E3e(e,t){const n=f3e(t);switch(n){case 3:case 9:case 7:case 8:return g3e(t,n);case 4:{const i=t;if(r2e(i,"k")&&i.k)return e.interpolate(e.named(i.k));if(r2e(i,"key")&&i.key)return e.interpolate(e.named(i.key));throw C3e(n)}case 5:{const i=t;if(r2e(i,"i")&&z0e(i.i))return e.interpolate(e.list(i.i));if(r2e(i,"index")&&z0e(i.index))return e.interpolate(e.list(i.index));throw C3e(n)}case 6:{const n=t,i=v3e(n),r=_3e(n);return e.linked(E3e(e,r),i?E3e(e,i):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}H(C3e,"createUnhandleNodeError"),oKe(C3e,"createUnhandleNodeError"),H(k3e,"format"),oKe(k3e,"format"),H(x3e,"formatParts"),oKe(x3e,"formatParts"),H(T3e,"formatMessageParts"),oKe(T3e,"formatMessageParts"),H(E3e,"formatMessagePart"),oKe(E3e,"formatMessagePart");function A3e(e,t){t&&T2e(e)&&R0e(j0e("Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.",{source:e}))}H(A3e,"checkHtmlMessage"),oKe(A3e,"checkHtmlMessage");const L3e=oKe((e=>e),"defaultOnCacheKey");let I3e=X0e();function $3e(e,t={}){let n=!1;const i=t.onError||k2e;return t.onError=e=>{n=!0,i(e)},B(F({},n3e(e,t)),{detectError:n})}function D3e(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&o2e(e)){!l2e(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||L3e)(e),i=I3e[n];if(i)return i;const{ast:r,detectError:a}=$3e(e,B(F({},t),{location:!1,jit:!0})),s=k3e(r);return a?s:I3e[n]=s}{const t=e.cacheKey;if(t){return I3e[t]||(I3e[t]=k3e(e))}return k3e(e)}}H($3e,"baseCompile"),oKe($3e,"baseCompile"),H(D3e,"compile"),oKe(D3e,"compile");let P3e=null;function O3e(e){P3e=e}function M3e(e,t,n){P3e&&P3e.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}function R3e(e){return t=>P3e&&P3e.emit(e,t)}H(O3e,"setDevToolsHook"),oKe(O3e,"setDevToolsHook"),H(M3e,"initI18nDevTools"),oKe(M3e,"initI18nDevTools"),H(R3e,"createDevToolsHook"),oKe(R3e,"createDevToolsHook");const N3e={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function F3e(e){return C2e(e,null,void 0)}function B3e(e,t){return null!=t.locale?j3e(t.locale):j3e(e.locale)}let H3e;function j3e(e){if(o2e(e))return e;if(s2e(e)){if(e.resolvedOnce&&null!=H3e)return H3e;if("Function"===e.constructor.name){const t=e();if(c2e(t))throw F3e(N3e.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return H3e=t}throw F3e(N3e.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw F3e(N3e.NOT_SUPPORT_LOCALE_TYPE)}function U3e(e,t,n){return[...new Set([n,...a2e(t)?t:u2e(t)?Object.keys(t):o2e(t)?[t]:[n]])]}function V3e(e,t,n){const i=o2e(n)?n:o8e,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let a=r.__localeChainCache.get(i);if(!a){a=[];let e=[n];for(;a2e(e);)e=q3e(a,e,t);const s=a2e(t)||!h2e(t)?t:t.default?t.default:null;e=o2e(s)?[s]:s,a2e(e)&&q3e(a,e,!1),r.__localeChainCache.set(i,a)}return a}function q3e(e,t,n){let i=!0;for(let r=0;r<t.length&&l2e(i);r++){const a=t[r];o2e(a)&&(i=z3e(e,t[r],n))}return i}function z3e(e,t,n){let i;const r=t.split("-");do{i=W3e(e,r.join("-"),n),r.splice(-1,1)}while(r.length&&!0===i);return i}function W3e(e,t,n){let i=!1;if(!e.includes(t)&&(i=!0,t)){i="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(a2e(n)||h2e(n))&&n[r]&&(i=n[r])}return i}H(F3e,"createCoreError"),oKe(F3e,"createCoreError"),H(B3e,"getLocale"),oKe(B3e,"getLocale"),H(j3e,"resolveLocale"),oKe(j3e,"resolveLocale"),H(U3e,"fallbackWithSimple"),oKe(U3e,"fallbackWithSimple"),H(V3e,"fallbackWithLocaleChain"),oKe(V3e,"fallbackWithLocaleChain"),H(q3e,"appendBlockToChain"),oKe(q3e,"appendBlockToChain"),H(z3e,"appendLocaleToChain"),oKe(z3e,"appendLocaleToChain"),H(W3e,"appendItemToChain"),oKe(W3e,"appendItemToChain");const G3e=[];G3e[0]={w:[0],i:[3,0],"[":[4],o:[7]},G3e[1]={w:[1],".":[2],"[":[4],o:[7]},G3e[2]={w:[2],i:[3,0],0:[3,0]},G3e[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},G3e[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},G3e[5]={"'":[4,0],o:8,l:[5,0]},G3e[6]={'"':[4,0],o:8,l:[6,0]};const K3e=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Y3e(e){return K3e.test(e)}function Z3e(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}function X3e(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Q3e(e){const t=e.trim();
102return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(Y3e(t)?Z3e(t):"*"+t)}function J3e(e){const t=[];let n,i,r,a,s,o,l,u=-1,c=0,d=0;const p=[];function h(){const t=e[u+1];if(5===c&&"'"===t||6===c&&'"'===t)return u++,r="\\"+t,p[0](),!0}for(p[0]=()=>{void 0===i?i=r:i+=r},p[1]=()=>{void 0!==i&&(t.push(i),i=void 0)},p[2]=()=>{p[0](),d++},p[3]=()=>{if(d>0)d--,c=4,p[0]();else{if(d=0,void 0===i||(i=Q3e(i),!1===i))return!1;p[1]()}},H(h,"maybeUnescapeQuote"),oKe(h,"maybeUnescapeQuote");null!==c;)if(u++,n=e[u],"\\"!==n||!h()){if(a=X3e(n),l=G3e[c],s=l[a]||l.l||8,8===s||(c=s[0],void 0!==s[1]&&(o=p[s[1]],o&&(r=n,!1===o()))))return;if(7===c)return t}}H(Y3e,"isLiteral"),oKe(Y3e,"isLiteral"),H(Z3e,"stripQuotes"),oKe(Z3e,"stripQuotes"),H(X3e,"getPathCharType"),oKe(X3e,"getPathCharType"),H(Q3e,"formatSubPath"),oKe(Q3e,"formatSubPath"),H(J3e,"parse"),oKe(J3e,"parse");const e8e=new Map;function t8e(e,t){return u2e(e)?e[t]:null}function n8e(e,t){if(!u2e(e))return null;let n=e8e.get(t);if(n||(n=J3e(t),n&&e8e.set(t,n)),!n)return null;const i=n.length;let r=e,a=0;for(;a<i;){const e=n[a];if(S3e.includes(e)&&r3e(r))return null;const t=r[e];if(void 0===t||s2e(r))return null;r=t,a++}return r}H(t8e,"resolveWithKeyValue"),oKe(t8e,"resolveWithKeyValue"),H(n8e,"resolveValue"),oKe(n8e,"resolveValue");const i8e={[1]:"Not found '{key}' key in '{locale}' locale messages.",[2]:"Fall back to translate '{key}' key with '{target}' locale.",[3]:"Cannot format a number value due to not supported Intl.NumberFormat.",[4]:"Fall back to number format '{key}' key with '{target}' locale.",[5]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[6]:"Fall back to datetime format '{key}' key with '{target}' locale.",[7]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function r8e(e,...t){return j0e(i8e[e],...t)}H(r8e,"getWarnMessage$1"),oKe(r8e,"getWarnMessage$1");const a8e="11.1.11",s8e=-1,o8e="en-US",l8e="",u8e=oKe((e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`),"capitalize");function c8e(){return{upper:oKe(((e,t)=>"text"===t&&o2e(e)?e.toUpperCase():"vnode"===t&&u2e(e)&&"__v_isVNode"in e?e.children.toUpperCase():e),"upper"),lower:oKe(((e,t)=>"text"===t&&o2e(e)?e.toLowerCase():"vnode"===t&&u2e(e)&&"__v_isVNode"in e?e.children.toLowerCase():e),"lower"),capitalize:oKe(((e,t)=>"text"===t&&o2e(e)?u8e(e):"vnode"===t&&u2e(e)&&"__v_isVNode"in e?u8e(e.children):e),"capitalize")}}let d8e,p8e,h8e;function f8e(e){d8e=e}function m8e(e){p8e=e}function g8e(e){h8e=e}H(c8e,"getDefaultLinkedModifiers"),oKe(c8e,"getDefaultLinkedModifiers"),H(f8e,"registerMessageCompiler"),oKe(f8e,"registerMessageCompiler"),H(m8e,"registerMessageResolver"),oKe(m8e,"registerMessageResolver"),H(g8e,"registerLocaleFallbacker"),oKe(g8e,"registerLocaleFallbacker");let y8e=null;const v8e=oKe((e=>{y8e=e}),"setFallbackContext"),b8e=oKe((()=>y8e),"getFallbackContext");let _8e=0;function w8e(e={}){const t=s2e(e.onWarn)?e.onWarn:R0e,n=o2e(e.version)?e.version:a8e,i=o2e(e.locale)||s2e(e.locale)?e.locale:o8e,r=s2e(i)?o8e:i,a=a2e(e.fallbackLocale)||h2e(e.fallbackLocale)||o2e(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:r,s=h2e(e.messages)?e.messages:S8e(r),o=h2e(e.datetimeFormats)?e.datetimeFormats:S8e(r),l=h2e(e.numberFormats)?e.numberFormats:S8e(r),u=Y0e(X0e(),e.modifiers,c8e()),c=e.pluralRules||X0e(),d=s2e(e.missing)?e.missing:null,p=!l2e(e.missingWarn)&&!G0e(e.missingWarn)||e.missingWarn,h=!l2e(e.fallbackWarn)&&!G0e(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,m=!!e.unresolving,g=s2e(e.postTranslation)?e.postTranslation:null,y=h2e(e.processor)?e.processor:null,v=!l2e(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter,_=s2e(e.messageCompiler)?e.messageCompiler:d8e,w=s2e(e.messageResolver)?e.messageResolver:p8e||t8e,S=s2e(e.localeFallbacker)?e.localeFallbacker:h8e||U3e,C=u2e(e.fallbackContext)?e.fallbackContext:void 0,k=e,x=u2e(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,T=u2e(k.__numberFormatters)?k.__numberFormatters:new Map,E=u2e(k.__meta)?k.__meta:{};_8e++;const A={version:n,cid:_8e,locale:i,fallbackLocale:a,messages:s,modifiers:u,pluralRules:c,missing:d,missingWarn:p,fallbackWarn:h,fallbackFormat:f,unresolving:m,postTranslation:g,processor:y,warnHtmlMessage:v,escapeParameter:b,messageCompiler:_,messageResolver:w,localeFallbacker:S,fallbackContext:C,onWarn:t,__meta:E};return A.datetimeFormats=o,A.numberFormats=l,A.__datetimeFormatters=x,A.__numberFormatters=T,A}H(w8e,"createCoreContext"),oKe(w8e,"createCoreContext");const S8e=oKe((e=>({[e]:X0e()})),"createResources");function C8e(e,t){return e instanceof RegExp?e.test(t):e}function k8e(e,t){return e instanceof RegExp?e.test(t):e}function x8e(e,t,n,i,r){const{missing:a,onWarn:s}=e;if(null!==a){const i=a(e,n,t,r);return o2e(i)?i:t}return t}function T8e(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function E8e(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function A8e(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let i=n+1;i<t.length;
102i++)if(E8e(e,t[i]))return!0;return!1}function L8e(e,...t){const{datetimeFormats:n,unresolving:i,fallbackLocale:r,onWarn:a,localeFallbacker:s}=e,{__datetimeFormatters:o}=e,[l,u,c,d]=$8e(...t);l2e(c.missingWarn)?c.missingWarn:e.missingWarn;l2e(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const p=!!c.part,h=B3e(e,c),f=s(e,r,h);if(!o2e(l)||""===l)return new Intl.DateTimeFormat(h,d).format(u);let m,g={},y=null;for(let _=0;_<f.length&&(m=f[_],g=n[m]||{},y=g[l],!h2e(y));_++)x8e(e,l,m,0,"datetime format");if(!h2e(y)||!o2e(m))return i?s8e:l;let v=`${m}__${l}`;K0e(d)||(v=`${v}__${JSON.stringify(d)}`);let b=o.get(v);return b||(b=new Intl.DateTimeFormat(m,Y0e({},y,d)),o.set(v,b)),p?b.formatToParts(u):b.format(u)}H(C8e,"isTranslateFallbackWarn"),oKe(C8e,"isTranslateFallbackWarn"),H(k8e,"isTranslateMissingWarn"),oKe(k8e,"isTranslateMissingWarn"),H(x8e,"handleMissing"),oKe(x8e,"handleMissing"),H(T8e,"updateFallbackLocale"),oKe(T8e,"updateFallbackLocale"),H(E8e,"isAlmostSameLocale"),oKe(E8e,"isAlmostSameLocale"),H(A8e,"isImplicitFallback"),oKe(A8e,"isImplicitFallback"),H(L8e,"datetime"),oKe(L8e,"datetime");const I8e=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function $8e(...e){const[t,n,i,r]=e,a=X0e();let s,o=X0e();if(o2e(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw F3e(N3e.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch(tvt){throw F3e(N3e.INVALID_ISO_DATE_ARGUMENT)}}else if(W0e(t)){if(isNaN(t.getTime()))throw F3e(N3e.INVALID_DATE_ARGUMENT);s=t}else{if(!z0e(t))throw F3e(N3e.INVALID_ARGUMENT);s=t}return o2e(n)?a.key=n:h2e(n)&&Object.keys(n).forEach((e=>{I8e.includes(e)?o[e]=n[e]:a[e]=n[e]})),o2e(i)?a.locale=i:h2e(i)&&(o=i),h2e(r)&&(o=r),[a.key||"",s,a,o]}function D8e(e,t,n){const i=e;for(const r in n){const e=`${t}__${r}`;i.__datetimeFormatters.has(e)&&i.__datetimeFormatters.delete(e)}}function P8e(e,...t){const{numberFormats:n,unresolving:i,fallbackLocale:r,onWarn:a,localeFallbacker:s}=e,{__numberFormatters:o}=e,[l,u,c,d]=M8e(...t);l2e(c.missingWarn)?c.missingWarn:e.missingWarn;l2e(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const p=!!c.part,h=B3e(e,c),f=s(e,r,h);if(!o2e(l)||""===l)return new Intl.NumberFormat(h,d).format(u);let m,g={},y=null;for(let _=0;_<f.length&&(m=f[_],g=n[m]||{},y=g[l],!h2e(y));_++)x8e(e,l,m,0,"number format");if(!h2e(y)||!o2e(m))return i?s8e:l;let v=`${m}__${l}`;K0e(d)||(v=`${v}__${JSON.stringify(d)}`);let b=o.get(v);return b||(b=new Intl.NumberFormat(m,Y0e({},y,d)),o.set(v,b)),p?b.formatToParts(u):b.format(u)}H($8e,"parseDateTimeArgs"),oKe($8e,"parseDateTimeArgs"),H(D8e,"clearDateTimeFormat"),oKe(D8e,"clearDateTimeFormat"),H(P8e,"number"),oKe(P8e,"number");const O8e=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function M8e(...e){const[t,n,i,r]=e,a=X0e();let s=X0e();if(!z0e(t))throw F3e(N3e.INVALID_ARGUMENT);const o=t;return o2e(n)?a.key=n:h2e(n)&&Object.keys(n).forEach((e=>{O8e.includes(e)?s[e]=n[e]:a[e]=n[e]})),o2e(i)?a.locale=i:h2e(i)&&(s=i),h2e(r)&&(s=r),[a.key||"",o,a,s]}function R8e(e,t,n){const i=e;for(const r in n){const e=`${t}__${r}`;i.__numberFormatters.has(e)&&i.__numberFormatters.delete(e)}}H(M8e,"parseNumberArgs"),oKe(M8e,"parseNumberArgs"),H(R8e,"clearNumberFormat"),oKe(R8e,"clearNumberFormat");const N8e=oKe((e=>e),"DEFAULT_MODIFIER"),F8e=oKe((e=>""),"DEFAULT_MESSAGE"),B8e="text",H8e=oKe((e=>0===e.length?"":m2e(e)),"DEFAULT_NORMALIZE"),j8e=f2e;function U8e(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function V8e(e){const t=z0e(e.pluralIndex)?e.pluralIndex:-1;
102return e.named&&(z0e(e.named.count)||z0e(e.named.n))?z0e(e.named.count)?e.named.count:z0e(e.named.n)?e.named.n:t:t}function q8e(e,t){t.count||(t.count=e),t.n||(t.n=e)}function z8e(e={}){const t=e.locale,n=V8e(e),i=u2e(e.pluralRules)&&o2e(t)&&s2e(e.pluralRules[t])?e.pluralRules[t]:U8e,r=u2e(e.pluralRules)&&o2e(t)&&s2e(e.pluralRules[t])?U8e:void 0,a=oKe((e=>e[i(n,e.length,r)]),"plural"),s=e.list||[],o=oKe((e=>s[e]),"list"),l=e.named||X0e();z0e(e.pluralIndex)&&q8e(n,l);const u=oKe((e=>l[e]),"named");function c(t,n){return(s2e(e.messages)?e.messages(t,!!n):!!u2e(e.messages)&&e.messages[t])||(e.parent?e.parent.message(t):F8e)}H(c,"message"),oKe(c,"message");const d=oKe((t=>e.modifiers?e.modifiers[t]:N8e),"_modifier"),p=h2e(e.processor)&&s2e(e.processor.normalize)?e.processor.normalize:H8e,h=h2e(e.processor)&&s2e(e.processor.interpolate)?e.processor.interpolate:j8e,f=h2e(e.processor)&&o2e(e.processor.type)?e.processor.type:B8e,m={list:o,named:u,plural:a,linked:oKe(((e,...t)=>{const[n,i]=t;let r="text",a="";1===t.length?u2e(n)?(a=n.modifier||a,r=n.type||r):o2e(n)&&(a=n||a):2===t.length&&(o2e(n)&&(a=n||a),o2e(i)&&(r=i||r));const s=c(e,!0)(m),o="vnode"===r&&a2e(s)&&a?s[0]:s;return a?d(a)(o,r):o}),"linked"),message:c,type:f,interpolate:h,normalize:p,values:Y0e(X0e(),s,l)};return m}H(U8e,"pluralDefault"),oKe(U8e,"pluralDefault"),H(V8e,"getPluralIndex"),oKe(V8e,"getPluralIndex"),H(q8e,"normalizeNamed"),oKe(q8e,"normalizeNamed"),H(z8e,"createMessageContext"),oKe(z8e,"createMessageContext");const W8e=oKe((()=>""),"NOOP_MESSAGE_FUNCTION"),G8e=oKe((e=>s2e(e)),"isMessageFunction");function K8e(e,...t){const{fallbackFormat:n,postTranslation:i,unresolving:r,messageCompiler:a,fallbackLocale:s,messages:o}=e,[l,u]=J8e(...t),c=l2e(u.missingWarn)?u.missingWarn:e.missingWarn,d=l2e(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=l2e(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,f=o2e(u.default)||l2e(u.default)?l2e(u.default)?a?l:()=>l:u.default:n?a?l:()=>l:null,m=n||null!=f&&(o2e(f)||s2e(f)),g=B3e(e,u);p&&Y8e(u);let[y,v,b]=h?[l,g,o[g]||X0e()]:Z8e(e,l,g,s,d,c),_=y,w=l;if(!h&&!(o2e(_)||r3e(_)||G8e(_))&&m&&(_=f,w=_),!(h||(o2e(_)||r3e(_)||G8e(_))&&o2e(v)))return r?s8e:l;let S=!1;const C=oKe((()=>{S=!0}),"onError"),k=G8e(_)?_:X8e(e,l,v,_,w,C);if(S)return _;const x=Q8e(e,k,z8e(n5e(e,v,b,u)));let T=i?i(x,l):x;return p&&o2e(T)&&(T=n2e(T)),T}function Y8e(e){a2e(e.list)?e.list=e.list.map((e=>o2e(e)?e2e(e):e)):u2e(e.named)&&Object.keys(e.named).forEach((t=>{o2e(e.named[t])&&(e.named[t]=e2e(e.named[t]))}))}function Z8e(e,t,n,i,r,a){const{messages:s,onWarn:o,messageResolver:l,localeFallbacker:u}=e,c=u(e,i,n);let d,p=X0e(),h=null;for(let f=0;f<c.length&&(d=c[f],p=s[d]||X0e(),null===(h=l(p,t))&&(h=p[t]),!(o2e(h)||r3e(h)||G8e(h)));f++)if(!A8e(d,c)){const n=x8e(e,t,d,0,"translate");n!==t&&(h=n)}return[h,d,p]}function X8e(e,t,n,i,r,a){const{messageCompiler:s,warnHtmlMessage:o}=e;if(G8e(i)){const e=i;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=oKe((()=>i),"msg");return e.locale=n,e.key=t,e}const l=s(i,e5e(e,n,r,i,o,a));return l.locale=n,l.key=t,l.source=i,l}function Q8e(e,t,n){return t(n)}function J8e(...e){const[t,n,i]=e,r=X0e();if(!(o2e(t)||z0e(t)||G8e(t)||r3e(t)))throw F3e(N3e.INVALID_ARGUMENT);const a=z0e(t)?String(t):(G8e(t),t);return z0e(n)?r.plural=n:o2e(n)?r.default=n:h2e(n)&&!K0e(n)?r.named=n:a2e(n)&&(r.list=n),z0e(i)?r.plural=i:o2e(i)?r.default=i:h2e(i)&&Y0e(r,i),[a,r]}function e5e(e,t,n,i,r,a){return{locale:t,key:n,warnHtmlMessage:r,onError:oKe((e=>{throw a&&a(e),e}),"onError"),onCacheKey:oKe((e=>V0e(t,n,e)),"onCacheKey")}}function t5e(e){return o2e(e)?e:e.loc&&e.loc.source?e.loc.source:void 0}function n5e(e,t,n,i){const{modifiers:r,pluralRules:a,messageResolver:s,fallbackLocale:o,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:r,pluralRules:a,messages:oKe(((i,r)=>{let a=s(n,i);if(null==a&&(c||r)){const[,,n]=Z8e(c||e,i,t,o);a=s(n,i)}if(o2e(a)||r3e(a)){let n=!1;const r=X8e(e,i,t,a,i,oKe((()=>{n=!0}),"onError"));return n?W8e:r}return G8e(a)?a:W8e}),"resolveMessage")};return e.processor&&(d.processor=e.processor),i.list&&(d.list=i.list),i.named&&(d.named=i.named),z0e(i.plural)&&(d.pluralIndex=i.plural),d}H(K8e,"translate"),oKe(K8e,"translate"),H(Y8e,"escapeParams"),oKe(Y8e,"escapeParams"),H(Z8e,"resolveMessageFormat"),oKe(Z8e,"resolveMessageFormat"),H(X8e,"compileMessageFormat"),oKe(X8e,"compileMessageFormat"),H(Q8e,"evaluateMessage"),oKe(Q8e,"evaluateMessage"),H(J8e,"parseTranslateArgs"),oKe(J8e,"parseTranslateArgs"),H(e5e,"getCompileContext"),oKe(e5e,"getCompileContext"),H(t5e,"getSourceForCodeFrame"),oKe(t5e,"getSourceForCodeFrame"),H(n5e,"getMe
102ssageContextOptions"),oKe(n5e,"getMessageContextOptions"),i3e();const i5e="11.1.11";function r5e(){"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(J0e().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}H(r5e,"initFeatureFlags"),oKe(r5e,"initFeatureFlags");const a5e={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function s5e(e,...t){return C2e(e,null,void 0)}H(s5e,"createI18nError"),oKe(s5e,"createI18nError");const o5e=U0e("__translateVNode"),l5e=U0e("__datetimeParts"),u5e=U0e("__numberParts"),c5e=U0e("__setPluralRules"),d5e=U0e("__injectWithOption"),p5e=U0e("__dispose"),h5e={[8]:"Fall back to {type} '{key}' with root locale.",[9]:"Not found parent scope. use the global scope.",[10]:"Ignore object flatten: '{key}' key has an string value",[11]:"Legacy API mode has been deprecated in v11. Use Composition API mode instead.\nAbout how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html",[12]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[13]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function f5e(e,...t){return j0e(h5e[e],...t)}function m5e(e){if(!u2e(e)||r3e(e))return e;for(const t in e)if(r2e(e,t))if(t.includes(".")){const n=t.split("."),i=n.length-1;let r=e,a=!1;for(let e=0;e<i;e++){if("__proto__"===n[e])throw new Error(`unsafe key: ${n[e]}`);if(n[e]in r||(r[n[e]]=X0e()),!u2e(r[n[e]])){a=!0;break}r=r[n[e]]}if(a||(r3e(r)?S3e.includes(n[i])||delete e[t]:(r[n[i]]=e[t],delete e[t])),!r3e(r)){const e=r[n[i]];u2e(e)&&m5e(e)}}else u2e(e[t])&&m5e(e[t]);return e}function g5e(e,t){const{messages:n,__i18n:i,messageResolver:r,flatJson:a}=t,s=h2e(n)?n:a2e(i)?X0e():{[e]:X0e()};if(a2e(i)&&i.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||X0e(),b2e(n,s[t])):b2e(n,s)}else o2e(e)&&b2e(JSON.parse(e),s)})),null==r&&a)for(const o in s)r2e(s,o)&&m5e(s[o]);return s}function y5e(e){return e.type}function v5e(e,t,n){let i=u2e(t.messages)?t.messages:X0e();"__i18nGlobal"in n&&(i=g5e(e.locale.value,{messages:i,__i18n:n.__i18nGlobal}));const r=Object.keys(i);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,i[t])})),u2e(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(u2e(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function b5e(e){return XJe(zJe,null,e,0)}H(f5e,"getWarnMessage"),oKe(f5e,"getWarnMessage"),H(m5e,"handleFlatJson"),oKe(m5e,"handleFlatJson"),H(g5e,"getLocaleMessages"),oKe(g5e,"getLocaleMessages"),H(y5e,"getComponentOptions"),oKe(y5e,"getComponentOptions"),H(v5e,"adjustI18nResources"),oKe(v5e,"adjustI18nResources"),H(b5e,"createTextNode"),oKe(b5e,"createTextNode");const _5e=oKe((()=>[]),"NOOP_RETURN_ARRAY"),w5e=oKe((()=>!1),"NOOP_RETURN_FALSE");let S5e=0;function C5e(e){return(t,n,i,r)=>e(n,i,s1e()||void 0,r)}function k5e(e={}){const{__root:t,__injectWithOption:n}=e,i=void 0===t,r=e.flatJson,a=B0e?CQe:kQe;let s=!l2e(e.inheritLocale)||e.inheritLocale;const o=a(t&&s?t.locale.value:o2e(e.locale)?e.locale:o8e),l=a(t&&s?t.fallbackLocale.value:o2e(e.fallbackLocale)||a2e(e.fallbackLocale)||h2e(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:o.value),u=a(g5e(o.value,e)),c=a(h2e(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),d=a(h2e(e.numberFormats)?e.numberFormats:{[o.value]:{}});let p=t?t.missingWarn:!l2e(e.missingWarn)&&!G0e(e.missingWarn)||e.missingWarn,h=t?t.fallbackWarn:!l2e(e.fallbackWarn)&&!G0e(e.fallbackWarn)||e.fallbackWarn,f=t?t.fallbackRoot:!l2e(e.fallbackRoot)||e.fallbackRoot,m=!!e.fallbackFormat,g=s2e(e.missing)?e.missing:null,y=s2e(e.missing)?C5e(e.missing):null,v=s2e(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:!l2e(e.warnHtmlMessage)||e.warnHtmlMessage,_=!!e.escapeParameter;const w=t?t.modifiers:h2e(e.modifiers)?e.modifiers:{};let S,C=e.pluralRules||t&&t.pluralRules;function k(){return[o.value,l.value,u.value,c.value,d.value]}S=oKe((()=>{i&&v8e(null);const t={version:i5e,locale:o.value,fallbackLocale:l.value,messages:u.value,modifiers:w,pluralRules:C,missing:null===y?void 0:y,missingWarn:p,fallbackWarn:h,fallbackFormat:m,unresolving:!0,postTranslation:null===v?void 0:v,warnHtmlMessage:b,escapeParameter:_,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=c.value,t.numberFormats=d.value,t.__datetimeFormatters=h2e(S)?S.__datetimeFormatters:void 0,t.__numberFormatters=h2e(S)?S.__numberFormatters:void 0;const n=w8e(t);return i&&v8e(n),n}),"getCoreContext")(),T8e(S,o.value,l.value),H(k,"trackReactivityValues"),oKe(k,"trackReactivityValues");const x=m1e({get:oKe((()=>o.value),"get"),set:oKe((e=>{S.locale=e,o.value=e}),"set")}),T=m1e({get:oKe((()=>l.value),"get"),set:oKe((e=>{S.fallbackLocale=e,l.value=e,T8e(S,o.value,e)}),"set")}),E=m1e((()=>u.value)),A=m1e((()=>c.value)),L=m1e((()=>d.value));function I(){return s2e(v)?v:null}function $(e){v=e,S.postTranslation=e}function D(){return g}function P(e){null!==e&&(y=C5e(e)),g=e,S.missing=y}function O(e,t){return"translate"!==e||!t.resolvedMessage}H(I,"getPostTranslationHandler"),oKe(I,"getPostTranslationHandler"),H($,"setPostTranslationHandler"),oKe($,"setPostTranslationHandler"),H(D,"getMissingHandler"),oKe(D,"getMissingHandler"),H(P,"setMissingHandler"),oKe(P,"setMissingHandler"),H(O,"isResolvedTranslateMessage"),oKe(O,"isResolvedTranslateMessage");const M=oKe(((e,n,r,a,s,o)=>{let l;k();try{i||(S.fallbackContext=t?b8e():void 0),l=e(S)}finally{i||(S.fallbackContext=void 0)}if("translate exists"!==r&&z0e(l)&&l===s8e||"translate exists"===r&&!l){const[e,i]=n();return t&&f?a(t):s(e)}if(o(l))return l;throw s5e(a5e.UNEXPECTED_RETURN_TYPE)}),"wrapWithDeps");function R(...e){return M((t=>Reflect.apply(K8e,null,[t,...e])),(()=>J8e(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>o2e(e)))}function N(...e){const[t,n,i]=e;if(i&&!u2e(i))throw s5e(a5e.INVALID_ARGUMENT);return R(t,n,Y0e({resolvedMessage:!0},i||{}))}function F(...e){return M((t=>Reflect.apply(L8e,null,[t,...e])),(()=>$8e(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>l8e),(e=>o2e(e)||a2e(e)))}function B(...e){return M((t=>Reflect.apply(P8e,null,[t,...e])),(()=>M8e(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>l8e),(e=>o2e(e)||a2e(e)))}function j(e){return e.map((e=>o2e(e)||z0e(e)||l2e(e)?b5e(String(e)):e))}H(R,"t"),oKe(R,"t"),H(N,"rt"),oKe(N,"rt"),H(F,"d"),oKe(F,"d"),H(B,"n"),oKe(B,"n"),H(j,"normalize"),oKe(j,"normalize");const U={normalize:j,interpolate:oKe((e=>e),"interpolate"),type:"vnode"};function V(...e){return M((t=>{let n;const i=t;
102try{i.processor=U,n=Reflect.apply(K8e,null,[i,...e])}finally{i.processor=null}return n}),(()=>J8e(...e)),"translate",(t=>t[o5e](...e)),(e=>[b5e(e)]),(e=>a2e(e)))}function q(...e){return M((t=>Reflect.apply(P8e,null,[t,...e])),(()=>M8e(...e)),"number format",(t=>t[u5e](...e)),_5e,(e=>o2e(e)||a2e(e)))}function z(...e){return M((t=>Reflect.apply(L8e,null,[t,...e])),(()=>$8e(...e)),"datetime format",(t=>t[l5e](...e)),_5e,(e=>o2e(e)||a2e(e)))}function W(e){C=e,S.pluralRules=C}function G(e,t){return M((()=>{if(!e)return!1;const n=Z(o2e(t)?t:o.value),i=S.messageResolver(n,e);return r3e(i)||G8e(i)||o2e(i)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),w5e,(e=>l2e(e)))}function K(e){let t=null;const n=V3e(S,l.value,o.value);for(let i=0;i<n.length;i++){const r=u.value[n[i]]||{},a=S.messageResolver(r,e);if(null!=a){t=a;break}}return t}function Y(e){const n=K(e);return null!=n?n:t&&t.tm(e)||{}}function Z(e){return u.value[e]||{}}function X(e,t){if(r){const n={[e]:t};for(const e in n)r2e(n,e)&&m5e(n[e]);t=n[e]}u.value[e]=t,S.messages=u.value}function Q(e,t){u.value[e]=u.value[e]||{};const n={[e]:t};if(r)for(const i in n)r2e(n,i)&&m5e(n[i]);b2e(t=n[e],u.value[e]),S.messages=u.value}function J(e){return c.value[e]||{}}function ee(e,t){c.value[e]=t,S.datetimeFormats=c.value,D8e(S,e,t)}function te(e,t){c.value[e]=Y0e(c.value[e]||{},t),S.datetimeFormats=c.value,D8e(S,e,t)}function ne(e){return d.value[e]||{}}function ie(e,t){d.value[e]=t,S.numberFormats=d.value,R8e(S,e,t)}function re(e,t){d.value[e]=Y0e(d.value[e]||{},t),S.numberFormats=d.value,R8e(S,e,t)}H(V,"translateVNode"),oKe(V,"translateVNode"),H(q,"numberParts"),oKe(q,"numberParts"),H(z,"datetimeParts"),oKe(z,"datetimeParts"),H(W,"setPluralRules"),oKe(W,"setPluralRules"),H(G,"te"),oKe(G,"te"),H(K,"resolveMessages"),oKe(K,"resolveMessages"),H(Y,"tm"),oKe(Y,"tm"),H(Z,"getLocaleMessage"),oKe(Z,"getLocaleMessage"),H(X,"setLocaleMessage"),oKe(X,"setLocaleMessage"),H(Q,"mergeLocaleMessage"),oKe(Q,"mergeLocaleMessage"),H(J,"getDateTimeFormat"),oKe(J,"getDateTimeFormat"),H(ee,"setDateTimeFormat"),oKe(ee,"setDateTimeFormat"),H(te,"mergeDateTimeFormat"),oKe(te,"mergeDateTimeFormat"),H(ne,"getNumberFormat"),oKe(ne,"getNumberFormat"),H(ie,"setNumberFormat"),oKe(ie,"setNumberFormat"),H(re,"mergeNumberFormat"),oKe(re,"mergeNumberFormat"),S5e++,t&&B0e&&(HJe(t.locale,(e=>{s&&(o.value=e,S.locale=e,T8e(S,o.value,l.value))})),HJe(t.fallbackLocale,(e=>{s&&(l.value=e,S.fallbackLocale=e,T8e(S,o.value,l.value))})));const ae={id:S5e,locale:x,fallbackLocale:T,get inheritLocale(){return s},set inheritLocale(e){s=e,e&&t&&(o.value=t.locale.value,l.value=t.fallbackLocale.value,T8e(S,o.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:E,get modifiers(){return w},get pluralRules(){return C||{}},get isGlobal(){return i},get missingWarn(){return p},set missingWarn(e){p=e,S.missingWarn=p},get fallbackWarn(){return h},set fallbackWarn(e){h=e,S.fallbackWarn=h},get fallbackRoot(){return f},set fallbackRoot(e){f=e},get fallbackFormat(){return m},set fallbackFormat(e){m=e,S.fallbackFormat=m},get warnHtmlMessage(){return b},set warnHtmlMessage(e){b=e,S.warnHtmlMessage=e},get escapeParameter(){return _},set escapeParameter(e){_=e,S.escapeParameter=e},t:R,getLocaleMessage:Z,setLocaleMessage:X,mergeLocaleMessage:Q,getPostTranslationHandler:I,setPostTranslationHandler:$,getMissingHandler:D,setMissingHandler:P,[c5e]:W};return ae.datetimeFormats=A,ae.numberFormats=L,ae.rt=N,ae.te=G,ae.tm=Y,ae.d=F,ae.n=B,ae.getDateTimeFormat=J,ae.setDateTimeFormat=ee,ae.mergeDateTimeFormat=te,ae.getNumberFormat=ne,ae.setNumberFormat=ie,ae.mergeNumberFormat=re,ae[d5e]=n,ae[o5e]=V,ae[l5e]=z,ae[u5e]=q,ae}H(C5e,"defineCoreMissingHandler"),oKe(C5e,"defineCoreMissingHandler"),H(k5e,"createComposer"),oKe(k5e,"createComposer");const x5e="vue-i18n: composer properties",T5e="Vue I18n DevTools",E5e="Vue I18n DevTools",A5e="Vue I18n",L5e="Search for scopes ...",I5e=16764185;let $5e;function D5e(e,t){return V(this,null,(function*(){return new Promise(((n,i)=>{try{L1e({id:"vue-devtools-plugin-vue-i18n",label:T5e,packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[x5e],app:e},(i=>{$5e=i,i.on.visitComponentTree((({componentInstance:e,treeNode:n})=>{O5e(e,n,t)})),i.on.inspectComponent((({componentInstance:e,instanceData:n})=>{e.vnode.el&&e.vnode.el.__VUE_I18N__&&n&&("legacy"===t.mode?e.vnode.el.__VUE_I18N__!==t.global.__composer&&M5e(n,e.vnode.el.__VUE_I18N__):M5e(n,e.vnode.el.__VUE_I18N__))})),i.addInspector({id:"vue-i18n-resource-inspector",label:E5e,icon:"language",treeFilterPlaceholder:L5e}),i.on.getInspectorTree((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&j5e(n,t)}));const r=new Map;i.on.getInspectorState((n=>V(this,null,(function*(){if(n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId)if(i.unhighlightElement(),q5e(n,t),"global"===n.nodeId){if(!r.has(n.app)){const[e]=yield i.getComponentInstances(n.app);r.set(n.app,e)}i.highlightElement(r.get(n.app))}else{const e=U5e(n.nodeId,t);e&&i.highlightElement(e)}})))),i.on.editInspectorState((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&G5e(n,t)})),i.addTimelineLayer({id:"vue-i18n-timeline",label:A5e,color:I5e}),n(!0)}))}catch(tvt){console.error(tvt),i(!1)}}))}))}function P5e(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function O5e(e,t,n){const i="composition"===n.mode?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==i){const n={label:`i18n (${P5e(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(n)}}function M5e(e,t){const n=x5e;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:R5e(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function R5e(e){const t={};return Object.keys(e).forEach((n=>{const i=e[n];s2e(i)&&"source"in i?t[n]=H5e(i):r3e(i)&&i.loc&&i.loc.source?t[n]=i.loc.source:u2e(i)?t[n]=R5e(i):t[n]=i})),t}H(D5e,"enableDevTools"),oKe(D5e,"enableDevTools"),H(P5e,"getI18nScopeLable"),oKe(P5e,"getI18nScopeLable"),H(O5e,"updateComponentTreeTags"),oKe(O5e,"updateComponentTreeTags"),H(M5e,"inspectComposer"),oKe(M5e,"inspectComposer"),H(R5e,"getLocaleMessageValue"),oKe(R5e,"getLocaleMessageValue");const N5e={"<":"<",">":">",'"':""","&":"&"};function F5e(e){return e.replace(/[<>"&]/g,B5e)}function B5e(e){return N5e[e]||e}
102function H5e(e){return{_custom:{type:"function",display:"<span>Æ</span> "+(e.source?`("${F5e(e.source)}")`:"(?)")}}}function j5e(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n="composition"===t.mode?t.global:t.global.__composer;for(const[i,r]of t.__instances){const a="composition"===t.mode?r:r.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${P5e(i)} Scope`})}}function U5e(e,t){let n=null;if("global"!==e)for(const[i,r]of t.__instances.entries())if(r.id.toString()===e){n=i;break}return n}function V5e(e,t){if("global"===e)return"composition"===t.mode?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find((t=>t.id.toString()===e));return n?"composition"===t.mode?n:n.__composer:null}}function q5e(e,t){const n=V5e(e.nodeId,t);return n&&(e.state=z5e(n)),null}function z5e(e){const t={},n="Locale related info",i=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=i;const r="Locale messages info",a=[{type:r,key:"messages",editable:!1,value:R5e(e.messages.value)}];t[r]=a;{const n="Datetime formats info",i=[{type:n,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[n]=i;const r="Datetime formats info",a=[{type:r,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[r]=a}return t}function W5e(e,t){if($5e){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),$5e.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:"compile-error"===e?"error":"fallback"===e||"missing"===e?"warning":"default"}})}}function G5e(e,t){const n=V5e(e.nodeId,t);if(n){const[t]=e.path;"locale"===t&&o2e(e.state.value)?n.locale.value=e.state.value:"fallbackLocale"===t&&(o2e(e.state.value)||a2e(e.state.value)||u2e(e.state.value))?n.fallbackLocale.value=e.state.value:"inheritLocale"===t&&l2e(e.state.value)&&(n.inheritLocale=e.state.value)}}function K5e(e){const t=o2e(e.locale)?e.locale:o8e,n=o2e(e.fallbackLocale)||a2e(e.fallbackLocale)||h2e(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,i=s2e(e.missing)?e.missing:void 0,r=!l2e(e.silentTranslationWarn)&&!G0e(e.silentTranslationWarn)||!e.silentTranslationWarn,a=!l2e(e.silentFallbackWarn)&&!G0e(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!l2e(e.fallbackRoot)||e.fallbackRoot,o=!!e.formatFallbackMessages,l=h2e(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=s2e(e.postTranslation)?e.postTranslation:void 0,d=!o2e(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,p=!!e.escapeParameterHtml,h=!l2e(e.sync)||e.sync;let f=e.messages;if(h2e(e.sharedMessages)){const t=e.sharedMessages;f=Object.keys(t).reduce(((e,n)=>{const i=e[n]||(e[n]={});return Y0e(i,t[n]),e}),f||{})}const{__i18n:m,__root:g,__injectWithOption:y}=e,v=e.datetimeFormats,b=e.numberFormats;return{locale:t,fallbackLocale:n,messages:f,flatJson:e.flatJson,datetimeFormats:v,numberFormats:b,missing:i,missingWarn:r,fallbackWarn:a,fallbackRoot:s,fallbackFormat:o,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:h,__i18n:m,__root:g,__injectWithOption:y}}function Y5e(e={}){const t=k5e(K5e(e)),{__extender:n}=e,i={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return l2e(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=l2e(e)?!e:e},get silentFallbackWarn(){return l2e(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=l2e(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t:(...e)=>Reflect.apply(t.t,t,[...e]),rt:(...e)=>Reflect.apply(t.rt,t,[...e]),te:(e,n)=>t.te(e,n),tm:e=>
102t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return i.__extender=n,i}function Z5e(e,t,n){return{beforeCreate(){const i=s1e();if(!i)throw s5e(a5e.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const i=r.i18n;if(r.__i18n&&(i.__i18n=r.__i18n),i.__root=t,this===this.$root)this.$i18n=X5e(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=Y5e(i);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=X5e(e,r);else{this.$i18n=Y5e({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&v5e(t,r,r),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(i,this.$i18n)},mounted(){},unmounted(){const e=s1e();if(!e)throw s5e(a5e.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}function X5e(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[c5e](t.pluralizationRules||e.pluralizationRules);const n=g5e(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}H(F5e,"escape$1"),oKe(F5e,"escape"),H(B5e,"escapeChar"),oKe(B5e,"escapeChar"),H(H5e,"getMessageFunctionDetails"),oKe(H5e,"getMessageFunctionDetails"),H(j5e,"registerScope"),oKe(j5e,"registerScope"),H(U5e,"getComponentInstance"),oKe(U5e,"getComponentInstance"),H(V5e,"getComposer$2"),oKe(V5e,"getComposer$2"),H(q5e,"inspectScope"),oKe(q5e,"inspectScope"),H(z5e,"makeScopeInspectState"),oKe(z5e,"makeScopeInspectState"),H(W5e,"addTimelineEvent"),oKe(W5e,"addTimelineEvent"),H(G5e,"editScope"),oKe(G5e,"editScope"),H(K5e,"convertComposerOptions"),oKe(K5e,"convertComposerOptions"),H(Y5e,"createVueI18n"),oKe(Y5e,"createVueI18n"),H(Z5e,"defineMixin"),oKe(Z5e,"defineMixin"),H(X5e,"mergeToGlobal"),oKe(X5e,"mergeToGlobal");const Q5e={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:oKe((e=>"parent"===e||"global"===e),"validator"),default:"parent"},i18n:{type:Object}};function J5e({slots:e},t){return 1===t.length&&"default"===t[0]?(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.type===qJe?t.children:[t]]),[]):t.reduce(((t,n)=>{const i=e[n];return i&&(t[n]=i()),t}),X0e())}function e4e(){return qJe}H(J5e,"getInterpolateArg"),oKe(J5e,"getInterpolateArg"),H(e4e,"getFragmentableTag"),oKe(e4e,"getFragmentableTag");const t4e=EJe({name:"i18n-t",props:Y0e({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:oKe((e=>z0e(e)||!isNaN(e)),"validator")}},Q5e),setup(e,t){const{slots:n,attrs:i}=t,r=e.i18n||p4e({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter((e=>"_"!==e[0])),s=X0e();e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=o2e(e.plural)?+e.plural:e.plural);const o=J5e(t,a),l=r[o5e](e.keypath,o,s),u=Y0e(X0e(),i);return g1e(o2e(e.tag)||u2e(e.tag)?e.tag:e4e(),u,l)}}});function n4e(e){return a2e(e)&&!o2e(e[0])}function i4e(e,t,n,i){const{slots:r,attrs:a}=t;return()=>{const t={part:!0};let s=X0e();e.locale&&(t.locale=e.locale),o2e(e.format)?t.key=e.format:u2e(e.format)&&(o2e(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,i)=>n.includes(i)?Y0e(X0e(),t,{[i]:e.format[i]}):t),X0e()));const o=i(e.value,t,s);let l=[t.key];a2e(o)?l=o.map(((e,t)=>{const n=r[e.type],i=n?n({[e.type]:e.value,index:t,parts:o}):[e.value];return n4e(i)&&(i[0].key=`${e.type}-${t}`),i})):o2e(o)&&(l=[o]);const u=Y0e(X0e(),a);return g1e(o2e(e.tag)||u2e(e.tag)?e.tag:e4e(),u,l)}}H(n4e,"isVNode"),oKe(n4e,"isVNode"),H(i4e,"renderFormatter"),oKe(i4e,"renderFormatter");
102const r4e=EJe({name:"i18n-n",props:Y0e({value:{type:Number,required:!0},format:{type:[String,Object]}},Q5e),setup(e,t){const n=e.i18n||p4e({useScope:e.scope,__useComponent:!0});return i4e(e,t,O8e,((...e)=>n[u5e](...e)))}});function a4e(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const i=n.__getInstance(t);return null!=i?i.__composer:e.global.__composer}}function s4e(e){const t=oKe((t=>{const{instance:n,value:i}=t;if(!n||!n.$)throw s5e(a5e.UNEXPECTED_ERROR);const r=a4e(e,n.$),a=o4e(i);return[Reflect.apply(r.t,r,[...l4e(a)]),r]}),"_process");return{created:oKe(((n,i)=>{const[r,a]=t(i);B0e&&e.global===a&&(n.__i18nWatcher=HJe(a.locale,(()=>{i.instance&&i.instance.$forceUpdate()}))),n.__composer=a,n.textContent=r}),"register"),unmounted:oKe((e=>{B0e&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)}),"unregister"),beforeUpdate:oKe(((e,{value:t})=>{if(e.__composer){const n=e.__composer,i=o4e(t);e.textContent=Reflect.apply(n.t,n,[...l4e(i)])}}),"update"),getSSRProps:oKe((e=>{const[n]=t(e);return{textContent:n}}),"getSSRProps")}}function o4e(e){if(o2e(e))return{path:e};if(h2e(e)){if(!("path"in e))throw s5e(a5e.REQUIRED_VALUE);return e}throw s5e(a5e.INVALID_VALUE)}function l4e(e){const{path:t,locale:n,args:i,choice:r,plural:a}=e,s={},o=i||{};return o2e(n)&&(s.locale=n),z0e(r)&&(s.plural=r),z0e(a)&&(s.plural=a),[t,o,s]}function u4e(e,t,...n){const i=h2e(n[0])?n[0]:{};(!l2e(i.globalInstall)||i.globalInstall)&&([t4e.name,"I18nT"].forEach((t=>e.component(t,t4e))),[r4e.name,"I18nN"].forEach((t=>e.component(t,r4e))),[C4e.name,"I18nD"].forEach((t=>e.component(t,C4e)))),e.directive("t",s4e(t))}H(a4e,"getComposer$1"),oKe(a4e,"getComposer$1"),H(s4e,"vTDirective"),oKe(s4e,"vTDirective"),H(o4e,"parseValue"),oKe(o4e,"parseValue"),H(l4e,"makeParams"),oKe(l4e,"makeParams"),H(u4e,"apply"),oKe(u4e,"apply");const c4e=U0e("global-vue-i18n");function d4e(e={}){const t=!l2e(e.globalInjection)||e.globalInjection,n=new Map,[i,r]=h4e(e),a=U0e("");function s(e){return n.get(e)||null}function o(e,t){n.set(e,t)}function l(e){n.delete(e)}H(s,"__getInstance"),oKe(s,"__getInstance"),H(o,"__setInstance"),oKe(o,"__setInstance"),H(l,"__deleteInstance"),oKe(l,"__deleteInstance");const u={get mode(){return"composition"},install(e,...n){return V(this,null,(function*(){if(e.__VUE_I18N_SYMBOL__=a,e.provide(e.__VUE_I18N_SYMBOL__,u),h2e(n[0])){const e=n[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let i=null;t&&(i=S4e(e,u.global));const r=e.unmount;e.unmount=()=>{i&&i(),u.dispose(),r()}}))},get global(){return r},dispose(){i.stop()},__instances:n,__getInstance:s,__setInstance:o,__deleteInstance:l};return u}function p4e(e={}){const t=s1e();if(null==t)throw s5e(a5e.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw s5e(a5e.NOT_INSTALLED);const n=f4e(t),i=g4e(n),r=y5e(t),a=m4e(e,r);if("global"===a)return v5e(i,e,r),i;if("parent"===a){let r=y4e(n,t,e.__useComponent);return null==r&&(r=i),r}const s=n;let o=s.__getInstance(t);if(null==o){const n=Y0e({},e);"__i18n"in r&&(n.__i18n=r.__i18n),i&&(n.__root=i),o=k5e(n),s.__composerExtend&&(o[p5e]=s.__composerExtend(o)),b4e(s,t,o),s.__setInstance(t,o)}return o}function h4e(e,t){const n=XZe(),i=n.run((()=>k5e(e)));if(null==i)throw s5e(a5e.UNEXPECTED_ERROR);return[n,i]}function f4e(e){const t=OJe(e.isCE?c4e:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw s5e(e.isCE?a5e.NOT_INSTALLED_WITH_PROVIDE:a5e.UNEXPECTED_ERROR);return t}function m4e(e,t){return K0e(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function g4e(e){return"composition"===e.mode?e.global:e.global.__composer}function y4e(e,t,n=!1){let i=null;const r=t.root;let a=v4e(t,n);for(;null!=a;){const t=e;if("composition"===e.mode&&(i=t.__getInstance(a)),null!=i||r===a)break;a=a.parent}return i}function v4e(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}function b4e(e,t,n){IJe((()=>{}),t),$Je((()=>{const i=n;e.__deleteInstance(t);const r=i[p5e];r&&(r(),delete i[p5e])}),t)}H(d4e,"createI18n"),oKe(d4e,"createI18n"),H(p4e,"useI18n"),oKe(p4e,"useI18n"),H(h4e,"createGlobal"),oKe(h4e,"createGlobal"),H(f4e,"getI18nInstance"),oKe(f4e,"getI18nInstance"),H(m4e,"getScope"),oKe(m4e,"getScope"),H(g4e,"getGlobalComposer"),oKe(g4e,"getGlobalComposer"),H(y4e,"getComposer"),oKe(y4e,"getComposer"),H(v4e,"getParentComponentInstance"),oKe(v4e,"getParentComponentInstance"),H(b4e,"setupLifeCycle"),oKe(b4e,"setupLifeCycle");const _4e=["locale","fallbackLocale","availableLocales"],w4e=["t","rt","d","n","tm","te"];function S4e(e,t){const n=Object.create(null);return _4e.forEach((e=>{const i=Object.getOwnPropertyDescriptor(t,e);if(!i)throw s5e(a5e.UNEXPECTED_ERROR);const r=SQe(i.value)?{get:()=>i.value.value,set(e){i.value.value=e}}:{get:()=>i.get&&i.get()};Object.defineProperty(n,e,r)}
102)),e.config.globalProperties.$i18n=n,w4e.forEach((n=>{const i=Object.getOwnPropertyDescriptor(t,n);if(!i||!i.value)throw s5e(a5e.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,i)})),oKe((()=>{delete e.config.globalProperties.$i18n,w4e.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))}),"dispose")}H(S4e,"injectGlobalFields"),oKe(S4e,"injectGlobalFields");const C4e=EJe({name:"i18n-d",props:Y0e({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Q5e),setup(e,t){const n=e.i18n||p4e({useScope:e.scope,__useComponent:!0});return i4e(e,t,I8e,((...e)=>n[l5e](...e)))}});function k4e(e,t,n){let i,r=LKe(),a=$Ke(),s=DKe();null!=a&&"dev"!=a&&null!=r&&(t&&n&&(i=t+"@"+n),zGe({dsn:r,Vue:e,attachProps:!0,logErrors:!0,environment:a,denyUrls:IKe(),release:i,integrations:[tVe({levels:["error"]})],beforeSend(e,t){var n,i,r,a,o,l,u,c,d,p,h,f;if(null==(i=null==(n=t.originalException)?void 0:n.message)?void 0:i.match(/variable height error, rows of wrong lengths/i))return null;if(null==(r=null==e?void 0:e.contexts)?void 0:r.browser){let t=e.contexts.browser.name.toLowercase();if(Array.isArray(s)&&s.includes(t)||(null==(u=null==(l=null==(o=null==(a=null==e?void 0:e.contexts)?void 0:a.browser)?void 0:o.name)?void 0:l.toLowercase())?void 0:u.includes("chrome"))&&"125.0.0"==(null==(d=null==(c=null==e?void 0:e.contexts)?void 0:c.browser)?void 0:d.version)&&(null==(f=null==(h=null==(p=null==e?void 0:e.contexts)?void 0:p.device)?void 0:h.family)?void 0:f.toLowerCase().includes("mac")))return null}return e}}))}function x4e(e,t,n=!1,i={}){let r=$Ke(),a=PKe();if(null!=r&&"dev"!=r&&null!=a&&n){let n=tKe(Object.assign({id:a,vueRouter:t,loadScript:!0,debug:!1},i));e.use(n)}}function T4e(e,t,n="en",i="en",r={}){const a=d4e({locale:n,fallbackLocale:i,messages:t,datetimeFormats:r});return e.config.globalProperties.$locale={change(e){a.locale=e},current:()=>a.locale},e.use(a),a}r5e(),f8e(D3e),m8e(n8e),g8e(V3e),H(k4e,"setupSentry"),oKe(k4e,"setupSentry"),H(x4e,"setupGoogleAnalytics"),oKe(x4e,"setupGoogleAnalytics"),H(T4e,"setupI18N"),oKe(T4e,"setupI18N");const E4e=Object.freeze(Object.defineProperty({__proto__:null,setupGoogleAnalytics:x4e,setupI18N:T4e,setupSentry:k4e},Symbol.toStringTag,{value:"Module"})),A4e={name:"BaseSearchPage",data(){return{activeFacets:[],activeTab:void 0,displayError:!1,facetFilterPrefix:void 0,facetInfo:[],filterBarFilters:[],isHeaderVisible:!1,isLoading:!1,isMobile:!1,pageSize:48,maxFacets:500,filterMap:{},filterInfo:[],filterTranslationKeys:["type"],searchParams:{query:[],filters:{},from:0,size:this.pageSize},suggestions:[],total:0,filterMap:{standard:["q","from","size","sort"],ignore:["exact"],app:null},results:void 0,facets:void 0,apiPath:oYe(),dateSearchConfig:{defaultField:"decade_range",smallIncrementField:"one_year_range",aggregationMinField:"one_year_range_min",aggregationMaxField:"one_year_range_max",filterField:"date_range",diff:500}}},watch:{activeTab(e,t){e!=t&&(this.facetFilterPrefix=void 0)},results(){this.results&&this.results.data&&(this.isLoading=!1,this.total=this.results.total,this.results.error&&""!=this.results.error.trim()&&(this.displayError=!0),this.updateFacetInfo(),this.updateFilterInfo(),"postWatchResults"in this&&this.postWatchResults(this.results))},$route(){"BaseSearchPage"!=this.$options.name&&this.fetchData()},searchParams(){this.fetchData(this.searchParams)},total(){this.updateHeaderVisibility(this.total)}},created(){"BaseSearchPage"!=this.$options.name&&this.fetchData()},mounted(){"onResize"in this&&(window.addEventListener("resize",this.onResize),this.onResize())},beforeUnmount(){"onResize"in this&&window.removeEventListener("resize",this.onResize)},computed:{loadingItemsData(){let e=[];for(let t=0;t<this.pageSize;t++)e.push({id:t});return e},currentPage(){return 0==this.searchParams.from?1:Math.floor(this.searchParams.from/this.searchParams.size)+1},currentQuery(){return m0e(this.searchParams,{PAGE_SIZE:this.pageSize})},searchHash(){return c0e(this.results)},displayErrorMessage(){return this.results?u0e(this.results):void 0},isEmptySearch(){return h0e(this.searchParams)},pageTitle(){let e=Object.assign({},this.searchParams.filters);for(let t in e)"true"==e[t]&&(e[t]=!0),this.chipTerms&&Array.isArray(e[t])&&(e[t]=e[t].map((e=>{let n=e;
102return this.chipTerms.forEach((i=>{i.qualifier==t&&i.termValue==e&&(n=i.term)})),n})));return o0e(this.translate,this.searchParams.query,this.filterMap,this.filterTranslationKeys,e)},searchInputText(){return d0e(this.searchParams)}},methods:{fetchData(e=void 0){return V(this,null,(function*(){e||(this.searchParams=this.getSearchParams(this.$route.query),e=this.searchParams),this.isLoading=!0,this.chipTermIdValues=yield this.getChipTermIdValues(e),this.results=yield this.fetchSearch(e),this.updatePageTitle(this.pageTitle),this.initOpenFacetForSearch(this.activeTab,this.facetFilterPrefix,this.searchParams,this.results),"postFetchData"in this&&this.postFetchData(e,this.results)}))},initOpenFacetForSearch(e,t,n,i){e!=this.dateSearchConfig.defaultField&&this.updateActiveTabFilters({fieldName:e,value:t,type:"keypressChange"});let r=this.extractParsedRangeFromQuery(n,i),a=this.getDateFieldForFacet(r.min,r.max,this.results);this.updateDataGranularity(a)},extractParsedRangeFromQuery(e,t={}){var n,i;let r=null==(n=null==e?void 0:e.filters)?void 0:n[this.dateSearchConfig.filterField],a={min:t[this.dateSearchConfig.aggregationMinField],max:t[this.dateSearchConfig.aggregationMaxField]};return null!=r&&(null==r?void 0:r.length)>0&&r[0].includes(":")&&(r=null==(i=r[0])?void 0:i.split(":"),a={min:parseInt(r[0]),max:parseInt(r[1])}),a},getDateFieldForFacet(e,t,n={}){const i=t-e,r=null!=n[this.dateSearchConfig.aggregationMinField];let a=this.dateSearchConfig.defaultField;return r&&null!=i&&i<this.dateSearchConfig.diff&&i>0&&(a=this.dateSearchConfig.smallIncrementField),a},handleDateRangeChange(e){return V(this,null,(function*(){let t=this.getDateFieldForFacet(e.min,e.max,this.results),n=JSON.parse(JSON.stringify(this.searchParams.filters));(null!=e.min||null!=e.max)&&("decade_range"==t&&e.max==this.results.range_max?n[this.dateSearchConfig.filterField]=[`${e.min}:${e.max+9}`]:n[this.dateSearchConfig.filterField]=[`${e.min}:${e.max}`]);let i={facet:t,query:this.searchParams.query,filters:n,size:this.getMaxFacetSize(this.activeTab),filter_prefix:this.facetFilterPrefix};const r=yield this.fetchFacets(i);this.activeFacets.splice(0,this.activeFacets.length),this.updateDataGranularity(t),this.activeFacets=r.facets[t]}))},updateDataGranularity(e){const t=this.facetInfo.find((e=>e.fieldName==this.dateSearchConfig.defaultField));if(!t)return;let n=10;e==this.dateSearchConfig.smallIncrementField&&(n=1),t.dataGranularity=n},fetchFacets(e){return zYe(e,this.apiPath)},fetchSearch(e){return WYe(e,this.apiPath)},getSearchParams(e){let t=t0e(e,Object.keys(this.filterMap),this.pageSize);return"postProcessSearchParams"in this&&(t=this.postProcessSearchParams(e,t)),t},getMaxFacetSize(e){return null!=e&&e.includes("range")?1e5:this.maxFacets},updateFacetInfo(){this.results&&(this.facetInfo=g0e(this.facetInfo,this.results,this.activeTab))},updateFilterInfo(){this.results&&(this.filterInfo=y0e(this.filterInfo,this.searchParams,this.results))},updateActiveFacets(e){let t=[];if(this.activeTab&&this.facets){let n=this.facets.facets[e.facet];n&&(t=this.postProcessFacetResults(n),"postUpdateActiveFacets"in this&&this.postUpdateActiveFacets(t,this.activeTab)),this.activeFacets=t}},postProcessFacetResults(e){var t;if(this.filterTranslationKeys.includes(this.activeTab)){let n=(null==(t=this.filterMap[this.activeTab])?void 0:t.values)?this.filterMap[this.activeTab].values:{};Object.keys(n).forEach((t=>{let n=e.findIndex((e=>e.name.toLowerCase()==t.toLowerCase()));if(-1!=n){let t=this.facetTranslation(e[n].name.toLowerCase());t&&(e[n].label=t)}}))}return e},facetTranslation(e){if(this.filterMap[this.activeTab]){let t=this.filterMap[this.activeTab].values[e];if(t){let e="search_results_title."+this.filterMap.app;return this.translate(e+t)}}},updateSearch(e,t,n="search"){this.suggestions=[];let i=e;void 0!==e.page&&(i={type:"page",name:"from",value:e.from}),i0e(i,t,this.currentQuery,void 0,void 0,n)},fetchActiveTabData(e){return V(this,null,(function*(){if(this.activeTab==e.fieldName&&null==e.type)return this.activeTab=void 0,void(this.activeFacets=[]);
102null!=this.activeTab&&this.activeTab!=e.fieldName&&(this.facetFilterPrefix=void 0),"keypressChange"==e.type&&(this.facetFilterPrefix=e.value),this.activeTab=e.fieldName;let t=this.activeTab;if(t==this.dateSearchConfig.defaultField){const e=this.extractParsedRangeFromQuery(this.searchParams,this.results);t=this.getDateFieldForFacet(e.min,e.max,this.results)}let n={facet:t,query:this.searchParams.query,filters:this.searchParams.filters,size:this.getMaxFacetSize(this.activeTab),filter_prefix:this.facetFilterPrefix};this.facets=yield this.fetchFacets(n),this.updateActiveFacets(n)}))},updateActiveTabFilters(e){null!=this.activeTab&&this.fetchActiveTabData(e)},updateHeaderVisibility(e){0==e||this.isEmptySearch?this.isHeaderVisible=!1:this.isHeaderVisible=!0},getChipTermIdValues(e){return V(this,null,(function*(){let t={},n=yield b0e(e),i=yield VYe(n,this.apiPath);return(null==i?void 0:i.length)&&(t=Object.fromEntries(i.map((e=>[e.id,e.primary_name])))),t}))}}},L4e=oKe((({appUrl:e=lKe(sYe()),domain:t=SKe("PLAUSIBLE_DOMAIN"),googleEventName:n=SKe("GOOGLE_EVENT_NAME",void 0,"event"),logEvents:i=SKe("LOCATION_BANNER_LOCATION",void 0,"")}={})=>{i=""!=i.trim();const r=nKe(),a=rKe({domain:t,apiHost:"https://static.getty.edu"});function s(e,s={}){i&&console.log("analytics::",F(F({},e),s)),r&&r.enabled()&&r.trackEvent(F({action:e.action,event:n,category:e.category,label:e.label,noninteraction:!0},s)),null!=t&&a.trackEvent("click",{props:F({action:e.action,category:e.category,label:e.label},s)})}function o(e){let t="";return Object.keys(e).sort().forEach((n=>{let i=e[n];
1020==Array.isArray(i)&&(i=[i]),i.forEach((e=>{if(null!=e&&""!=e&&("string"!=typeof e||""!=e.trim())){if("string"==typeof e&&e.includes("/"))try{e=e.replaceAll("/","{slash}")}catch(tvt){}t+=`/${n}=${e}`}}))})),t}function l(n,i,s={}){r&&r.enabled()&&r.trackView(n,i.fullPath);let l={};i.query&&(l=i.query);let u=JSON.parse(JSON.stringify(l)),c=o(u);if(u.title=n,null!=t)try{a.trackPageview({url:e+i.path+c},{props:F(F({},u),s)})}catch(tvt){console.error(tvt)}}return H(s,"sendEvent"),oKe(s,"sendEvent"),H(o,"getQueryString"),oKe(o,"getQueryString"),H(l,"sendPageview"),oKe(l,"sendPageview"),{sendEvent:s,sendPageview:l,getQueryString:o}}),"useAnalytics"),I4e=oKe((function({root:e=oYe(),path:t="api/typeahead"}={}){let n=null,i=null,r=null;function a(e){return p0e(e)}function s(n){return qYe(n,e,t)}function o(e){return V(this,null,(function*(){let t=[];n&&(r=!0,n.abort()),i=e,n=new AbortController,r=!1;let a=yield s({prefix:e,signal:n.signal});return i==e&&null!=a&&0==r&&(t=a),t}))}function l(e,t){return[e]}return H(a,"additionalNormalization"),oKe(a,"additionalNormalization"),H(s,"fetchAutocompleteSuggestions$1"),oKe(s,"fetchAutocompleteSuggestions$1"),H(o,"fetchSuggestions"),oKe(o,"fetchSuggestions"),H(l,"transformQuery"),oKe(l,"transformQuery"),{transformQuery:l,fetchAutocompleteSuggestions:s,fetchSuggestions:o,additionalNormalization:a}}),"useAutocomplete"),$4e={en:{shared_footer:{sm_directory:"Full social media directory",getty:"The Getty",tag_line:"A world of art, research, conservation, and philanthropy",trust:"J. Paul Getty Trust",privacy:"Privacy Policy",terms_and_conditions:"Terms & Conditions",trademarks:"Trademarks","rights-text":'All text is copyright J. Paul Getty Trust and licensed under a {link}, unless marked "All rights reserved." Images and other media are excluded.',copyright:"Creative Commons Attribution 4.0 International License"},range_slider:{start:"Start",end:"End",update:"Update",reset:"Clear"},"shared_search-bar":{advanced_search:"Advanced Search","num-results":"Showing {start} - {end} of {totalHits} results"},"shared_header-search":{"header-search":"Search Getty.edu"},simple_search:{placeholder:"Search",clear_button_phrase:"Clear All",search_button_phrase:"Search"},facet_detail_display:{apply_button:"Apply",filter_by:"Filter by",close_button:"Close"},facet_group:{toggle_more:"More",toggle_less:"Less"},search_history_container:{remove_all:"Remove All",info:"Your search history is empty.",command:"Start searching to see something here."},search_history_list:{pinned_searches:"Pinned Searches"},search_history_item:{results:"Results",keywords:"Keywords",filters:"Filters",remove:"Remove",pin:"Pin",unpin:"Unpin",matching:"matching"},search_results_title:{punctuation:{comma:",",quote:"'"},default_conjunction:" and ",default:"Search all",prefix:{keyword:"Search for keyword: ",no_keyword:"All records "},filter_pieces:{basic:"matching ",boolean:", showing only those records "},provenance:{resource_type:{actor:"People / Organizations",object:"Objects",event:"Provenance Events",document:"Documents"},facet:{type:{prefix:"Resource Type: ",conjunction:" or "},artist:{prefix:"Maker/Artist Name: ",conjunction:" or "},object:{prefix:"Object Type: ",conjunction:" or "},material:{prefix:"Medium/Materials: ",conjunction:" or "},actor:{prefix:"Actor Type: ",conjunction:" or "},document:{prefix:"Document Type: ",conjunction:" or "},nationality:{prefix:"Nationality: ",conjunction:" or "},activity_qualifier:{prefix:"Activity Type: ",conjunction:" or "}}},"collection-online":{boolean:{images:"with Images",open_content:"in the Open Content Program",center:"on View at The Getty Center",villa:"on View at The Getty Villa"},empty_field:"Objects without Dates",facet:{artist:{prefix:"Maker/Artist Name: ",conjunction:" or "},title:{prefix:"Title: ",conjunction:" or "},material:{prefix:"Medium/Materials: ",conjunction:" or "},culture:{prefix:"Culture/Country: ",conjunction:" or "},number:{prefix:"Object Number: ",conjunction:" or "},collection:{prefix:"Collecting Area: ",conjunction:" or "},date_range:{prefix:"Creation Date: ",conjunction:"or"}}},research_collections_viewer:{resource_type:{actor:"People / Organizations",person:"Person",object:"Objects",event:"Provenance Events",document:"Documents"},facet:{part_of_collection_title:{prefix:"Collection: ",conjunction:" or "},creator_name:{prefix:"Creator: ",conjunction:" or "},entity_type:{prefix:"Resource Type: ",conjunction:" or ",unknown:"Unknown Entity"},part_of:{prefix:"Part of: ",conjunction:" or "},artist:{prefix:"Maker/Artist Name: ",conjunction:" or "},object:{prefix:"Object Type: ",conjunction:" or "},id:{prefix:"Record Id: ",conjunction:" or "},genre_material:{prefix:"Medium/Materials: ",conjunction:" or "},subjects:{prefix:"Subjects: ",conjunction:" or "},actor:{prefix:"Actor Type: ",conjunction:" or "},document:{prefix:"Document Type: ",conjunction:" or "},nationality:{prefix:"Nationality: ",conjunction:" or "},activity_qualifier:{prefix:"Activity Type: ",conjunction:"or"},date_range:{prefix:"Creation Date: ",conjunction:"or"},digitized_items:{prefix:"Has Digitized Items: ",conjunction:"or"},empty_field:{prefix:"Empty Field: ",conjunction:"or"}}}},"facet-list":{clear_all:"Clear All",filter_results:"Filter Results"},search_chip:{clear_button:"Clear",qualifiers:{type:"resource type",human_made_object_qualifier:"object type",keyword:"keyword",nationality:"nationality"},terms:{Actor:"People",ManMadeObject:"Objects",Activity:"Events",LinguisticObject:"Documents"}},typeahead:{loading:"Searching...",no_result:"No result"},related_resources:{resources:"Resources",news_and_stories:"News & Stories",video:"Video",projects:"Projects & Initiatives",education:"Education",art_collection:"Art Collection",research_collections:"Research Collections",publications_reports:"Publications & Reports",google_arts_culture:"Google Arts & Culture",library_resources:"Library",related_resources:"Related",external_resources:"Other"}}
102,es:{shared_footer:{sm_directory:"Directorio completo de redes sociales",getty:"The Getty",tag_line:"Un mundo de arte, investigación, conservación y filantropÃa.",trust:"J. Paul Getty Trust",privacy:"PolÃtica de Privacidad",terms_and_conditions:"Términos y Condiciones",trademarks:"Marcas registradas"}}},D4e=Object.freeze(Object.defineProperty({__proto__:null,messages:$4e},Symbol.toStringTag,{value:"Module"})),P4e=new Set(["title","titleTemplate","script","style","noscript"]),O4e=new Set(["base","meta","link","style","script","noscript"]),M4e=new Set(["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),R4e=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),N4e=new Set(["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"]),F4e="undefined"!=typeof window;function B4e(e){return e}function H4e(e){let t=9;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),R(9,9));return(65536+(t^t>>>9)).toString(16).substring(1,8).toLowerCase()}function j4e(e){if(e._h)return e._h;if(e._d)return H4e(e._d);let t=`${e.tag}:${e.textContent||e.innerHTML||""}:`;for(const n in e.props)t+=`${n}:${String(e.props[n])},`;return H4e(t)}function U4e(e,t){return e instanceof Promise?e.then(t):t(e)}function V4e(e,t,n,i){const r=i||W4e("object"!=typeof t||"function"==typeof t||t instanceof Promise?{["script"===e||"noscript"===e||"style"===e?"innerHTML":"textContent"]:t}:F({},t),"templateParams"===e||"titleTemplate"===e);if(r instanceof Promise)return r.then((i=>V4e(e,t,n,i)));const a={tag:e,props:r};for(const s of N4e){const e=void 0!==a.props[s]?a.props[s]:n[s];void 0!==e&&(("innerHTML"!==s&&"textContent"!==s&&"children"!==s||P4e.has(a.tag))&&(a["children"===s?"innerHTML":s]=e),delete a.props[s])}return a.props.body&&(a.tagPosition="bodyClose",delete a.props.body),"script"===a.tag&&"object"==typeof a.innerHTML&&(a.innerHTML=JSON.stringify(a.innerHTML),a.props.type=a.props.type||"application/json"),Array.isArray(a.props.content)?a.props.content.map((e=>B(F({},a),{props:B(F({},a.props),{content:e})}))):a}function q4e(e,t){var n;const i="class"===e?" ":";";return t&&"object"==typeof t&&!Array.isArray(t)&&(t=Object.entries(t).filter((([,e])=>e)).map((([t,n])=>"style"===e?`${t}:${n}`:t))),null==(n=String(Array.isArray(t)?t.join(i):t))?void 0:n.split(i).filter((e=>Boolean(e.trim()))).join(i)}function z4e(e,t,n,i){for(let r=i;r<n.length;r+=1){const i=n[r];if("class"!==i&&"style"!==i){if(e[i]instanceof Promise)return e[i].then((a=>(e[i]=a,z4e(e,t,n,r))));if(!t&&!N4e.has(i)){const t=String(e[i]),n=i.startsWith("data-");"true"===t||""===t?e[i]=!n||"true":e[i]||(n&&"false"===t?e[i]="false":delete e[i])}}else e[i]=q4e(i,e[i])}}function W4e(e,t=!1){const n=z4e(e,t,Object.keys(e),0);return n instanceof Promise?n.then((()=>e)):e}H(B4e,"defineHeadPlugin"),H(H4e,"hashCode"),H(j4e,"hashTag"),H(U4e,"thenable"),H(V4e,"normaliseTag"),H(q4e,"normaliseStyleClassProps"),H(z4e,"nestedNormaliseProps"),H(W4e,"normaliseProps");const G4e=10;function K4e(e,t,n){for(let i=n;i<t.length;i+=1){const n=t[i];if(n instanceof Promise)return n.then((n=>(t[i]=n,K4e(e,t,i))));Array.isArray(n)?e.push(...n):e.push(n)}}function Y4e(e){const t=[],n=e.resolvedInput;for(const r in n){if(!Object.prototype.hasOwnProperty.call(n,r))continue;const i=n[r];if(void 0!==i&&M4e.has(r))if(Array.isArray(i))for(const n of i)t.push(V4e(r,n,e));else t.push(V4e(r,i,e))}if(0===t.length)return[];const i=[];return U4e(K4e(i,t,0),(()=>i.map(((t,n)=>(t._e=e._i,e.mode&&(t._m=e.mode),t._p=(e._i<<G4e)+n,t)))))}H(K4e,"nestedNormaliseEntryTags"),H(Y4e,"normaliseEntryTags");const Z4e=new Set(["onload","onerror","onabort","onprogress","onloadstart"]),X4e={base:-10,title:10},Q4e={critical:-80,high:-10,low:20};function J4e(e){const t=e.tagPriority;if("number"==typeof t)return t;let n=100;return"meta"===e.tag?"content-security-policy"===e.props["http-equiv"]?n=-30:e.props.charset?n=-20:"viewport"===e.props.name&&(n=-15):"link"===e.tag&&"preconnect"===e.props.rel?n=20:e.tag in X4e&&(n=X4e[e.tag]),t&&t in Q4e?n+Q4e[t]:n}H(J4e,"tagWeight");const e6e=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],t6e=["name","property","http-equiv"];function n6e(e){const{props:t,tag:n}=e;
102if(R4e.has(n))return n;if("link"===n&&"canonical"===t.rel)return"canonical";if(t.charset)return"charset";if(t.id)return`${n}:id:${t.id}`;for(const i of t6e)if(void 0!==t[i])return`${n}:${i}:${t[i]}`;return!1}H(n6e,"tagDedupeKey");const i6e="%separator";function r6e(e,t,n=!1){var i;let r;if("s"===t||"pageTitle"===t)r=e.pageTitle;else if(t.includes(".")){const n=t.indexOf(".");r=null==(i=e[t.substring(0,n)])?void 0:i[t.substring(n+1)]}else r=e[t];if(void 0!==r)return n?(r||"").replace(/"/g,'\\"'):r||""}H(r6e,"sub");const a6e=new RegExp(`${i6e}(?:\\s*${i6e})*`,"g");function s6e(e,t,n,i=!1){if("string"!=typeof e||!e.includes("%"))return e;let r=e;try{r=decodeURI(e)}catch(tvt){}const a=r.match(/%\w+(?:\.\w+)?/g);if(!a)return e;const s=e.includes(i6e);return e=e.replace(/%\w+(?:\.\w+)?/g,(e=>{if(e===i6e||!a.includes(e))return e;const n=r6e(t,e.slice(1),i);return void 0!==n?n:e})).trim(),s&&(e.endsWith(i6e)&&(e=e.slice(0,-10)),e.startsWith(i6e)&&(e=e.slice(10)),e=e.replace(a6e,n).trim()),e}function o6e(e,t){return null==e?t||null:"function"==typeof e?e(t):e}function l6e(e){return V(this,arguments,(function*(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const i={shouldRender:!0,tags:[]};return yield e.hooks.callHook("dom:beforeRender",i),i.shouldRender?(e._domUpdatePromise||(e._domUpdatePromise=new Promise((t=>V(this,null,(function*(){var i;const r=(yield e.resolveTags()).map((e=>({tag:e,id:O4e.has(e.tag)?j4e(e):e.tag,shouldRender:!0})));let a=e._dom;if(!a){a={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};const e=new Set;for(const t of["body","head"]){const r=null==(i=n[t])?void 0:i.children;for(const t of r){const n=t.tagName.toLowerCase();if(!O4e.has(n))continue;const i={tag:n,props:yield W4e(t.getAttributeNames().reduce(((e,n)=>B(F({},e),{[n]:t.getAttribute(n)})),{})),innerHTML:t.innerHTML},r=n6e(i);let s=r,o=1;for(;s&&e.has(s);)s=`${r}:${o++}`;s&&(i._d=s,e.add(s)),a.elMap[t.getAttribute("data-hid")||j4e(i)]=t}}}function s(e,t,n){const i=`${e}:${t}`;a.sideEffects[i]=n,delete a.pendingSideEffects[i]}function o({id:e,$el:t,tag:i}){const r=i.tag.endsWith("Attrs");if(a.elMap[e]=t,r||(i.textContent&&i.textContent!==t.textContent&&(t.textContent=i.textContent),i.innerHTML&&i.innerHTML!==t.innerHTML&&(t.innerHTML=i.innerHTML),s(e,"el",(()=>{var t;null==(t=a.elMap[e])||t.remove(),delete a.elMap[e]}))),i._eventHandlers)for(const a in i._eventHandlers)Object.prototype.hasOwnProperty.call(i._eventHandlers,a)&&""!==t.getAttribute(`data-${a}`)&&(("bodyAttrs"===i.tag?n.defaultView:t).addEventListener(a.substring(2),i._eventHandlers[a].bind(t)),t.setAttribute(`data-${a}`,""));for(const n in i.props){if(!Object.prototype.hasOwnProperty.call(i.props,n))continue;const a=i.props[n],o=`attr:${n}`;if("class"===n){if(!a)continue;for(const n of a.split(" "))r&&s(e,`${o}:${n}`,(()=>t.classList.remove(n))),!t.classList.contains(n)&&t.classList.add(n)}else if("style"===n){if(!a)continue;for(const n of a.split(";")){const i=n.indexOf(":"),r=n.substring(0,i).trim(),a=n.substring(i+1).trim();s(e,`${o}:${r}`,(()=>{t.style.removeProperty(r)})),t.style.setProperty(r,a)}}else t.getAttribute(n)!==a&&t.setAttribute(n,!0===a?"":String(a)),r&&s(e,o,(()=>t.removeAttribute(n)))}}a.pendingSideEffects=F({},a.sideEffects),a.sideEffects={},H(s,"track"),H(o,"trackCtx");const l=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const e of r){const{tag:t,shouldRender:i,id:r}=e;i&&("title"!==t.tag?(e.$el=e.$el||a.elMap[r],e.$el?o(e):O4e.has(t.tag)&&l.push(e)):n.title=t.textContent)}for(const e of l){const t=e.tag.tagPosition||"head";e.$el=n.createElement(e.tag.tag),o(e),u[t]=u[t]||n.createDocumentFragment(),u[t].appendChild(e.$el)}for(const t of r)yield e.hooks.callHook("dom:renderTag",t,n,s);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose);for(const e in a.pendingSideEffects)a.pendingSideEffects[e]();e._dom=a,yield e.hooks.callHook("dom:rendered",{renders:r}),t()})))).finally((()=>{e._domUpdatePromise=void 0,e.dirty=!1}))),e._domUpdatePromise):void 0}))}function u6e(e,t={}){const n=t.delayFn||(e=>setTimeout(e,10));return e._domDebouncedUpdatePromise=e._domDebouncedUpdatePromise||new Promise((i=>n((()=>l6e(e,t).then((()=>{delete e._domDebouncedUpdatePromise,i()}))))))}function c6e(e){return t=>{var n,i;const r=(null==(i=null==(n=t.resolvedOptions.document)?void 0:n.head.querySelector('script[id="unhead:payload"]'))?void 0:i.innerHTML)||!1;return r&&t.push(JSON.parse(r)),{mode:"client",hooks:{"entries:updated":H((t=>{u6e(t,e)}),"entries:updated")}}}}H(s6e,"processTemplateParams"),H(o6e,"resolveTitleTemplate"),H(l6e,"renderDOMHead"),H(u6e,"debouncedRenderDOMHead"),H(c6e,"DomPlugin");const d6e=new Set(["templateParams","htmlAttrs","bodyAttrs"]),p6e={hooks:{"tag:normalise":H((({tag:e})=>{e.props.hid&&(e.key=e.props.hid,delete e.props.hid),e.props.vmid&&(e.key=e.props.vmid,delete e.props.vmid),e.props.key&&
102(e.key=e.props.key,delete e.props.key);const t=n6e(e);!t||t.startsWith("meta:og:")||t.startsWith("meta:twitter:")||delete e.key;const n=t||!!e.key&&`${e.tag}:${e.key}`;n&&(e._d=n)}),"tag:normalise"),"tags:resolve":H((e=>{const t=Object.create(null);for(const i of e.tags){const e=(i.key?`${i.tag}:${i.key}`:i._d)||j4e(i),n=t[e];if(n){let r=null==i?void 0:i.tagDuplicateStrategy;if(!r&&d6e.has(i.tag)&&(r="merge"),"merge"===r){const r=n.props;r.style&&i.props.style&&(";"!==r.style[r.style.length-1]&&(r.style+=";"),i.props.style=`${r.style} ${i.props.style}`),r.class&&i.props.class?i.props.class=`${r.class} ${i.props.class}`:r.class&&(i.props.class=r.class),t[e].props=F(F({},r),i.props);continue}if(i._e===n._e){n._duped=n._duped||[],i._d=`${n._d}:${n._duped.length+1}`,n._duped.push(i);continue}if(J4e(i)>J4e(n))continue}i.innerHTML||i.textContent||0!==Object.keys(i.props).length||!O4e.has(i.tag)?t[e]=i:delete t[e]}const n=[];for(const i in t){const e=t[i],r=e._duped;n.push(e),r&&(delete e._duped,n.push(...r))}e.tags=n,e.tags=e.tags.filter((e=>!("meta"===e.tag&&(e.props.name||e.props.property)&&!e.props.content)))}),"tags:resolve")}},h6e=new Set(["script","link","bodyAttrs"]),f6e=e=>({hooks:{"tags:resolve":H((t=>{for(const n of t.tags){if(!h6e.has(n.tag))continue;const t=n.props;for(const i in t){if("o"!==i[0]||"n"!==i[1])continue;if(!Object.prototype.hasOwnProperty.call(t,i))continue;const r=t[i];"function"==typeof r&&(e.ssr&&Z4e.has(i)?t[i]=`this.dataset.${i}fired = true`:delete t[i],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[i]=r)}e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||H4e(n.props.src||n.props.href))}}),"tags:resolve"),"dom:renderTag":H((({$el:e,tag:t})=>{var n,i;const r=null==e?void 0:e.dataset;if(r)for(const a in r){if(!a.endsWith("fired"))continue;const r=a.slice(0,-5);Z4e.has(r)&&(null==(i=null==(n=t._eventHandlers)?void 0:n[r])||i.call(e,new Event(r.substring(2))))}}),"dom:renderTag")}}),m6e=new Set(["link","style","script","noscript"]),g6e={hooks:{"tag:normalise":H((({tag:e})=>{e.key&&m6e.has(e.tag)&&(e.props["data-hid"]=e._h=H4e(e.key))}),"tag:normalise")}},y6e={mode:"server",hooks:{"tags:beforeResolve":H((e=>{const t={};let n=!1;for(const i of e.tags)"server"!==i._m||"titleTemplate"!==i.tag&&"templateParams"!==i.tag&&"title"!==i.tag||(t[i.tag]="title"===i.tag||"titleTemplate"===i.tag?i.textContent:i.props,n=!0);n&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}),"tags:beforeResolve")}},v6e={hooks:{"tags:resolve":H((e=>{var t;for(const n of e.tags)if("string"==typeof n.tagPriority)for(const{prefix:i,offset:r}of e6e){if(!n.tagPriority.startsWith(i))continue;const a=n.tagPriority.substring(i.length),s=null==(t=e.tags.find((e=>e._d===a)))?void 0:t._p;if(void 0!==s){n._p=s+r;break}}e.tags.sort(((e,t)=>{const n=J4e(e),i=J4e(t);return n<i?-1:n>i?1:e._p-t._p}))}),"tags:resolve")}},b6e={meta:"content",link:"href",htmlAttrs:"lang"},_6e=["innerHTML","textContent"],w6e=e=>({hooks:{"tags:resolve":H((t=>{var n;const{tags:i}=t;let r;for(let e=0;e<i.length;e+=1){"templateParams"===i[e].tag&&(r=t.tags.splice(e,1)[0].props,e-=1)}const a=r||{},s=a.separator||"|";delete a.separator,a.pageTitle=s6e(a.pageTitle||(null==(n=i.find((e=>"title"===e.tag)))?void 0:n.textContent)||"",a,s);for(const e of i){if(!1===e.processTemplateParams)continue;const t=b6e[e.tag];if(t&&"string"==typeof e.props[t])e.props[t]=s6e(e.props[t],a,s);else if(e.processTemplateParams||"titleTemplate"===e.tag||"title"===e.tag)for(const n of _6e)"string"==typeof e[n]&&(e[n]=s6e(e[n],a,s,"script"===e.tag&&e.props.type.endsWith("json")))}e._templateParams=a,e._separator=s}),"tags:resolve"),"tags:afterResolve":H((({tags:t})=>{let n;for(let e=0;e<t.length;e+=1){const i=t[e];"title"===i.tag&&!1!==i.processTemplateParams&&(n=i)}(null==n?void 0:n.textContent)&&(n.textContent=s6e(n.textContent,e._templateParams,e._separator))}),"tags:afterResolve")}}),S6e={hooks:{"tags:resolve":H((e=>{const{tags:t}=e;let n,i;for(let r=0;r<t.length;r+=1){const e=t[r];"title"===e.tag?n=e:"titleTemplate"===e.tag&&(i=e)}if(i&&n){const t=o6e(i.textContent,n.textContent);null!==t?n.textContent=t||n.textContent:e.tags.splice(e.tags.indexOf(n),1)}else if(i){const e=o6e(i.textContent);null!==e&&(i.textContent=e,i.tag="title",i=void 0)}i&&e.tags.splice(e.tags.indexOf(i),1)}),"tags:resolve")}},C6e={hooks:{"tags:afterResolve":H((e=>{for(const t of e.tags)"string"==typeof t.innerHTML&&(!t.innerHTML||"application/ld+json"!==t.props.type&&"application/json"!==t.props.type?t.innerHTML=t.innerHTML.replace(new RegExp(`</${t.tag}`,"g"),`<\\/${t.tag}`):t.innerHTML=t.innerHTML.replace(/</g,"\\u003C"))}),"tags:afterResolve")}};let k6e;function x6e(e={}){const t=E6e(e);return t.use(c6e()),k6e=t}function T6e(e,t){return!e||"server"===e&&t||"client"===e&&!t}function E6e(e={}){const t=fu();t.addHooks(e.hooks||{}),e.document=e.document||(F4e?document:void 0);const n=!e.document,i=H((()=>{o.dirty=!0,t.callHook("entries:updated",o)}),"updated");let r=0,a=[];const s=[],o={plugins:s,dirty:!1,resolvedOptions:e,hooks:t,headEntries:()=>a,use(e){const i="function"==typeof e?e(o):e;i.key&&s.some((e=>e.key===i.key))||(s.push(i),T6e(i.mode,n)&&t.addHooks(i.hooks||{}))},push(e,t){null==t||delete t.head;const s=F({_i:r++,input:e},t);return T6e(s.mode,n)&&(a.push(s),i()),{dispose(){a=a.filter((e=>e._i!==s._i)),i()},patch(e){for(const t of a)t._i===s._i&&(t.input=s.input=e);i()}}},resolveTags(){return V(this,null,(function*(){const e={tags:[],entries:[...a]};yield t.callHook("entries:resolve",e);for(const n of e.entries){const i=n.resolvedInput||n.input;if(n.resolvedInput=yield n.transform?n.transform(i):i,n.resolvedInput)for(const r of yield Y4e(n)){const i={tag:r,entry:n,resolvedOptions:o.resolvedOptions};yield t.callHook("tag:normalise",i),e.tags.push(i.tag)}}return yield t.callHook("tags:beforeResolve",e),yield t.callHook("tags:resolve",e),yield t.callHook("tags:afterResolve",e),e.tags}))},ssr:n};return[p6e,y6e,f6e,g6e,v6e,w6e,S6e,C6e,...(null==e?void 0:e.plugins)||[]].forEac
102h((e=>o.use(e))),o.hooks.callHook("init",o),o}function A6e(){return k6e}H(x6e,"createHead$1"),H(T6e,"filterMode"),H(E6e,"createHeadCore"),H(A6e,"getActiveHead");const L6e="3"===xo[0];function I6e(e){return"function"==typeof e?e():$n(e)}function $6e(e){if(e instanceof Promise||e instanceof Date||e instanceof RegExp)return e;const t=I6e(e);if(!e||!t)return t;if(Array.isArray(t))return t.map((e=>$6e(e)));if("object"==typeof t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&("titleTemplate"===n||"o"===n[0]&&"n"===n[1]?e[n]=$n(t[n]):e[n]=$6e(t[n]));return e}return t}H(I6e,"resolveUnref"),H($6e,"resolveUnrefHeadInput");const D6e={hooks:{"entries:resolve":H((e=>{for(const t of e.entries)t.resolvedInput=$6e(t.input)}),"entries:resolve")}},P6e="usehead";function O6e(e){return{install(t){L6e&&(t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(P6e,e))}}.install}function M6e(e={}){e.domDelayFn=e.domDelayFn||(e=>vi((()=>setTimeout((()=>e()),0))));const t=x6e(e);return t.use(D6e),t.install=O6e(t),t}H(O6e,"vueInstall"),H(M6e,"createHead");const R6e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},N6e="__unhead_injection_handler__";function F6e(){if(N6e in R6e)return R6e[N6e]();return Oi(P6e)||A6e()}function B6e(e,t={}){const n=t.head||F6e();if(n)return n.ssr?n.push(e,t):H6e(n,e,t)}function H6e(e,t,n={}){const i=Tn(!1),r=Tn({});Fi((()=>{r.value=i.value?{}:$6e(t)}));const a=e.push(r.value,n);Bi(r,(e=>{a.patch(e)}));return io()&&(Ur((()=>{a.dispose()})),Pr((()=>{i.value=!0})),Dr((()=>{i.value=!1}))),a}H(F6e,"injectHead"),H(B6e,"useHead"),H(H6e,"clientUseHead");const j6e=H(((e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n}),"_export_sfc"),U6e={name:"App",components:{Ribbon:ese},provide(){return{IIIF_IMAGE_BASEURL:this.iiifImageBaseUrl}},setup:()=>F({},zee({})),computed:{iiifImageBaseUrl:()=>hYe.getIiifImageBaseUrl(),location:()=>hYe.getLocationBanner()},mounted(){B6e({title:this.translatePart("homepage.title"),titleTemplate:this.translatePart("homepage.title_template"),meta:[{name:"title",content:this.translatePart("homepage.metadata_title")},{name:"description",content:this.translatePart("homepage.metadata_description")}]})}};function V6e(e,t,n,i,r,a){const s=Yr("Ribbon"),o=Yr("router-view");return As(),Ps("div",null,[null!=a.location?(As(),Os(s,{key:0,fixed:!0,size:120,text:a.location,"background-color":"#bfdc7a","text-color":"#6a6340",url:"https://github.com/thegetty/collection-online-2.0/"},null,8,["text"])):Ws("",!0),Hs(o)])}H(V6e,"_sfc_render");const q6e=j6e(U6e,[["render",V6e]]);function z6e(e){let t=this,n=H((function(e){let t=e.charCodeAt(0);return t<128?0:t<2048?1:2}),"utf8Overhead"),i=H((function(e,n,i,r){throw new t.window[e](n,i,r)}),"error"),r=H((function(e,t,n){let r=2,a=[],s=e.slice(t,t+1);for(;s!=n;)r+t>e.length&&i("Error","Invalid"),a.push(s),s=e.slice(t+(r-1),t+r),r+=1;return[a.length,a.join("")]}),"read_until"),a=H((function(e,t,i){let r,a,s;for(s=[],r=0;r<i;r++)a=e.slice(t+(r-1),t+r),s.push(a),i-=n(a);return[s.length,s.join("")]}),"read_chrs"),s=H((function(e,t){let n,o,l,u,c,d,p,h,f,m,g,y,v,b,_,w,S,C,k=0,x=H((function(e){return e}),"typeconvert");switch(t||(t=0),n=e.slice(t,t+1).toLowerCase(),o=t+2,n){case"i":x=H((function(e){return parseInt(e,10)}),"typeconvert"),f=r(e,o,";"),k=f[0],h=f[1],o+=k+1;break;case"b":x=H((function(e){return 0!==parseInt(e,10)}),"typeconvert"),f=r(e,o,";"),k=f[0],h=f[1],o+=k+1;break;case"d":x=H((function(e){return parseFloat(e)}),"typeconvert"),f=r(e,o,";"),k=f[0],h=f[1],o+=k+1;break;case"n":h=null;break;case"s":m=r(e,o,":"),k=m[0],g=m[1],o+=k+2,f=a(e,o+1,parseInt(g,10)),k=f[0],h=f[1],o+=k+2,k!=parseInt(g,10)&&k!=h.length&&i("SyntaxError","String length mismatch");break;case"a":for(h={},l=r(e,o,":"),k=l[0],u=l[1],o+=k+2,d=parseInt(u,10),c=!0,y=0;y<d;y++)b=s(e,o),_=b[1],v=b[2],o+=_,w=s(e,o),S=w[1],C=w[2],o+=S,v!==y&&(c=!1),h[v]=C;if(c){for(p=new Array(d),y=0;y<d;y++)p[y]=h[y];h=p}o+=1;break;default:i("SyntaxError","Unknown / Unhandled data type(s): "+n)}return[n,o-t,x(h)]}),"_unserialize");return s(e+"",0)[2]}H(z6e,"unserialize");const W6e={_filter_on_view_villa:{new_term:"villa",type:"bool"}
102,_filter_on_view_center:{new_term:"center",type:"bool"},_filter_open_content:{new_term:"open_content",type:"bool"},_filter_has_image:{new_term:"images",type:"bool"},has_image:{new_term:"images",type:"bool-duplicate"},query:{new_term:"q",type:"value-array"},"location.site":{type:"ignore"},is_on_display:{type:"ignore"},highlights:{type:"ignore"},"provenance.id":{new_term:"provenance.owner.primary_name",type:"artist-value"},"department.id":{new_term:"department",type:"options",options:{1:"Paintings",2:"Sculpture & Decorative Arts",3:"Antiquities",4:"Photographs",5:"Drawings",6:"Manuscripts"}},_numbers:{new_term:"object_number",type:"value"},_numbers_search_exact:{new_term:"exact",type:"bool"},"(identifier.primary.exact|identifier.alternate.exact)":{type:"ignore"},"(identifier.primary|identifier.alternate)":{new_term:"culture",type:"value-duplicate"},_culture:{new_term:"culture",type:"value"},"(culture|place.names)":{new_term:"culture",type:"value-duplicate"},medium:{new_term:"materials",type:"value"},title:{new_term:"title",type:"value"},"maker.id":{new_term:"artist",type:"artist-value"},sort:{new_term:"sort",type:"options",options:{"sort.maker":"artist_asc","-sort.maker":"artist_desc","-score":"relevance","sort.title":"title_asc","-sort.title":"title_desc","sort.date.began.year,sort.date.ended.year":"date_asc","-sort.date.began.year,-sort.date.ended.year":"date_desc","sort.number":"obj_num_asc","-sort.number":"obj_num_desc"}}};function G6e(){return hYe.getConfigValue("IMAGE_REQUEST_NON_OPEN_URL",void 0,"https://www.getty.edu/license/license")}function K6e(e){return hYe.getDataUrl(e)}function Y6e(e){return hYe.getMediaGatewayUrl(e)}function Z6e(e){let t=hYe.getConfigValue("API_PATH",void 0,e);return t=uKe(t),t}function X6e(){return hYe.getConfigValue("GETTY_UI_BASE_URL",void 0,"https://www.getty.edu")}function Q6e(){return hYe.getConfigValue("MAX_FRAGMENTS_TO_DISPLAY",void 0,10)}function J6e(){return hYe.getBooleanConfigValue("SHOW_SIMILAR_RESULTS",void 0,!1)}function e7e(e=K6e("https://data.getty.edu/museum/collection/")){return uKe(hYe.getConfigValue("ID_MANAGER_DATA_URL",void 0,e))}function t7e(){return hYe.getConfigValue("SITEWIDE_SEARCH_URL",void 0,"https://www.getty.edu/search/api/related")}function n7e(e){return hYe.getConfigValue("MIRADOR_URL",void 0,"https://staging-tools.aws.getty.edu/iiifviewer/")+"?manifest="+e}function i7e(e){return`${hYe.getConfigValue("ID_MANAGER_URL",void 0,"https://services.getty.edu/id-management/")}links/?any_id=${e}`}function r7e(){return hYe.getBooleanConfigValue("INCLUDE_PARTS_IN_QUERIES",void 0,!0)}function a7e(){return hYe.getBooleanConfigValue("HIDE_DUPLICATE_ARTISTS",void 0,!0)}function s7e(){return hYe.getBooleanConfigValue("HIDE_DUPLICATE_MANUSCRIPT_IMAGES",void 0,!1)}function o7e(){return hYe.getBooleanConfigValue("DISPLAY_ARTIST_DESCRIPTION_INSTEAD_OF_NAME",void 0,!0)}function l7e(){return hYe.getBooleanConfigValue("USE_CUSTOM_IIIF_MANIFEST",void 0,!1)}function u7e(){return hYe.getBooleanConfigValue("USE_ALPHABETIC_TYPEAHEAD_SORT",void 0,!0)}function c7e(){return hYe.getBooleanConfigValue("DISPLAY_ULAN_METADATA",void 0,!1)}function d7e(){return hYe.getBooleanConfigValue("IGNORE_MEDIA_HOST",void 0,!1)}function p7e(){const e=hYe.getBooleanConfigValue("ALERT_IS_URGENT",void 0,!0),t=hYe.getConfigValue("ALERT_TYPE",void 0,""),n=hYe.getConfigValue("ALERT_MESSAGE",void 0,"");if(null!=n&&""!=n.trim())return{active:!0,content:n,title:t,uid:"5FHi8FDXBzBOzhdNAjuZMK",urgent:e}}function h7e(){return hYe.getBooleanConfigValue("USE_SITEWIDESEARCH_RELATED",void 0,!1)}function f7e(){return parseInt(hYe.getConfigValue("IIIF_VERSION",void 0,"3"))}function m7e(){return hYe.getBooleanConfigValue("USE_SKIP_SIZES",void 0,!0)}H(G6e,"getImageRequestClosedUrl"),H(K6e,"getDataUrl"),H(Y6e,"getMediaGatewayUrl"),H(Z6e,"getApiPath"),H(X6e,"getGettyUIBaseUrl"),H(Q6e,"getMaxFragmentsToDisplay"),H(J6e,"showSimilarResults"),H(e7e,"getIdManagerDataUrl"),H(t7e,"getSitewideSearchUrl"),H(n7e,"getMiradorUrl"),H(i7e,"getIdManagerLinksUrl"),H(r7e,"includePartsInQueries"),H(a7e,"hideArtistDupes"),H(s7e,"hideDupeManuscriptImages"),H(o7e,"useArtistLongDescription"),H(l7e,"useCustomIIIFManifest"),H(u7e,"useAlphabeticTypeaheadSort"),H(c7e,"displayUlanMetadata"),H(d7e,"ignoreMediaHost"),H(p7e,"getAlert"),H(h7e,"enableSitewideSearchRelated"),H(f7e,"getIIIFVersion"),H(m7e,"useSkipSizes");const g7e=":~:";function y7e(e,t){return V(this,null,(function*(){const n=e.query;let i,r={};if(n.query&&(i=atob(n.query),r=F({},yield b7e(i)),r.view=n.view),n.pr){let e=n.pr;0==Array.isArray(e)&&(e=[e]),(e.includes("1")||e.includes(1))&&(r.has_provenance=!0),(e.includes("3")||e.includes(3))&&(r.nazi_era_gaps=!0),(e.includes("4")||e.includes(4))&&(r.nazi_era_restitution=!0)}Object.keys(r).length>0?t({path:"/search",query:r,route:"search"}):t()}))}function v7e(e){return V(this,null,(function*(){let t=Z6e("/")+"api/artistlookup?",n=t+(e=e.map((e=>"id="+String(e)+"&"))).join("")+"type=dor";const i=yield YYe.axiosGet(n);return i.data.skipped&&console.error("These DOR IDs were not found in the index: ",i.data.skipped),i.data.names}))}function b7e(e){return V(this,null,(function*(){let t={size:18,from:0},n=z6e(e);for(let e in n){let i=W6e[e].new_term,r=W6e[e].type,a=n[e];if("unknown-value"==r&&console.warn("Had to ignore "+i+" because we don't yet have a map with which to translate the value we get from CO: "+a),"artist-value"==r&&(a=Array.isArray(a)?a:[a],t[i]=yield v7e(a
102)),"value"==r&&(t[i]=a),"bool"==r&&(t[i]=!0),"value-array"==r&&t[i]&&t[i].push([a]),"value-array"!=r||t[i]||(t[i]=[a]),"options"==r){let n=i,r="sort"==n?"":[];0==Array.isArray(a)&&(a=[a]),a.forEach((t=>{Array.isArray(r)?r.push(W6e[e].options[String(t)]):r+=W6e[e].options[String(t)]})),t[n]=r}}return t}))}function _7e(e){if(null!=e&&""!=e){if("#"==e)return e;if(!e.startsWith(`#${g7e}`))return e.indexOf(g7e)>1&&(e=e.substring(0,e.indexOf(g7e))),e}}H(y7e,"handleSearchURL"),H(v7e,"getArtistsByDORID"),H(b7e,"translateOldQuery"),H(_7e,"getValidHash");const w7e="https://data.getty.edu/local/thesaurus/generators/collection-online",S7e="https://data.getty.edu/local/thesaurus/generators/lodlvl2",C7e={ACCESSION_NUMBER_SORT:"https://data.getty.edu/local/thesaurus/sort-number",ACTOR_NAME_PREFIX:"https://data.getty.edu/local/thesaurus/actor-name-prefix",ACTOR_NAME_SUFFIX:"https://data.getty.edu/local/thesaurus/actor-name-suffix",ALT_TEXT:"https://data.getty.edu/local/thesaurus/alt-text",ANTIQUITIES_DEPARTMENT:"https://data.getty.edu/museum/collection/group/9475a475-e5b7-4f2d-bdca-0c435e33f142",ANTIQUITIES_DEPARTMENT_STAGING:"https://staging-data.aws.getty.edu/museum/collection/group/9475a475-e5b7-4f2d-bdca-0c435e33f142",ARTIST_NATIONALITY_AND_DATE:"https://data.getty.edu/local/thesaurus/nationality-and-dates-statement",BIRTH_DATE_DESCRIPTION:"https://data.getty.edu/local/thesaurus/birth-date-description",BIRTH_PLACE:"https://data.getty.edu/local/thesaurus/birth-place-description",BROCHURE_URL:"https://data.getty.edu/local/thesaurus/event-information-page",BUILDING_MNEMONIC:"https://data.getty.edu/local/thesaurus/building-mnemonic",COMPONENTS_OBJECT_PARTS:"https://data.getty.edu/local/thesaurus/components-object-parts",DEACCESSION_STATEMENT:"https://data.getty.edu/local/thesaurus/deaccession-statement-short",DEACCESSION_STATEMENT_LONG:"https://data.getty.edu/local/thesaurus/deaccession-statement-long",DEATH_DATE_DESCRIPTION:"https://data.getty.edu/local/thesaurus/death-date-description",DEATH_PLACE:"https://data.getty.edu/local/thesaurus/death-place-description",DEACCESSION_GROUP_NAME:"https://data.getty.edu/local/thesaurus/deaccession-group-name",DESCRIPTION:"http://vocab.getty.edu/aat/300435416",DOR_ID:"https://data.getty.edu/local/thesaurus/dor-id",DOWNLOAD:"https://data.getty.edu/local/thesaurus/clearance/download",ENLARGE:"https://data.getty.edu/local/thesaurus/clearance/enlarge",FILE_NAME:"https://data.getty.edu/local/thesaurus/file-name",FLOOR_NAME:"https://data.getty.edu/local/thesaurus/floor-name",GROUP_TITLE:"https://data.getty.edu/local/thesaurus/object-title-group",HIGH_CONTRAST:"https://data.getty.edu/local/thesaurus/purposes/high_contrast",ID_MANAGER_GCIS_GENERATOR:"https://data.getty.edu/local/thesaurus/generators/gcis",ID_MANAGER_RCV_GENERATOR:"https://data.getty.edu/local/thesaurus/generators/rcv",ID_MANAGER_IMAGE_OF_MOTIVATION:"https://data.getty.edu/local/thesaurus/motivations/iiif_image_of",ID_MANAGER_OTMM_GENERATOR:"https://data.getty.edu/local/thesaurus/generators/otmm",ID_MANAGER_RELATED_COLLECTION_LOD_GENERATOR:"https://data.getty.edu/local/thesaurus/generators/museum-collection-lod-gateway",ID_MANAGER_RELATED_CONTENT_GENERATOR:"https://data.getty.edu/local/thesaurus/generators/getty-museum",ID_MANAGER_RELATED_CONTENT_MOTIVATION:"https://data.getty.edu/local/thesaurus/motivations/related_content",ID_MANAGER_RELATED_TO_MOTIVATION:"https://data.getty.edu/local/thesaurus/motivations/related_to",ID_MANAGER_SOURCE_GENERATOR:w7e,ID_MANAGER_TARGET_GENERATOR:S7e,IIIF_IMAGE_SERVICE:"https://data.getty.edu/local/thesaurus/iiif-image",LIFE_DATE:"https://data.getty.edu/local/thesaurus/life-dates-description",MEDIA_CLEARANCE:"http://data.getty.edu/local/thesaurus/media-clearance",NATIONALITY_AND_DATES:"https://data.getty.edu/local/thesaurus/nationality-and-dates",NAZI_ERA_GAPS:"https://data.getty.edu/local/thesaurus/nepip/nazi-era-gaps",NAZI_ERA_RESTITUTED:"https://data.getty.edu/local/thesaurus/nepip/nazi-era-restituted",PAVILION_NAME:"https://data.getty.edu/local/thesaurus/pavilion-name",PLACE_DEPICTED:"https://data.getty.edu/local/thesaurus/place-depicted",PLACE_FOUND:"https://data.getty.edu/local/thesaurus/place-found",PROOFED_STATE
102MENT:"https://data.getty.edu/local/thesaurus/proofed-statement",PRODUCER_DESCRIPTION:"https://data.getty.edu/local/thesaurus/producer-description",PRODUCER_NAME_PREFIX:"https://data.getty.edu/local/thesaurus/producer-name-prefix",PRODUCER_NAME_SUFFIX:"https://data.getty.edu/local/thesaurus/producer-name-suffix",PRODUCER_NAME:"https://data.getty.edu/local/thesaurus/producer-name",PRODUCER_ROLE:"https://data.getty.edu/local/thesaurus/producer-role-statement",PROVENANCE_CITATION:"https://data.getty.edu/local/thesaurus/provenance-citation",PUBLISHED_TITLE:"https://data.getty.edu/local/thesaurus/object-title-published",RECORD_STRUCTURE_GROUP:"https://data.getty.edu/local/thesaurus/object-record-structure-group",RECORD_STRUCTURE_GROUP_WHOLE:"https://data.getty.edu/local/thesaurus/object-record-structure-group-whole",RECORD_STRUCTURE_PART:"https://data.getty.edu/local/thesaurus/object-record-structure-part",RECORD_STRUCTURE_TYPE:"https://data.getty.edu/local/thesaurus/object-record-structure-type",RECORD_STRUCTURE_WHOLE:"https://data.getty.edu/local/thesaurus/object-record-stru
102cture-whole",RELATED_CONTENT_ID_SUFFIX:"-related-content",RELATED_MEDIA_ID_SUFFIX:"-related-media",ROOM_NAME:"https://data.getty.edu/local/thesaurus/room-name",SLUG_ID:"https://data.getty.edu/local/thesaurus/slug-identifier",STANDARD_CREDIT_LINE:"https://data.getty.edu/local/thesaurus/standard-credit-line",THUMBNAIL:"https://data.getty.edu/local/thesaurus/clearance/thumbnail",TMS_ID:"https://data.getty.edu/local/thesaurus/tms-id",TRANSLATED_TITLE:"https://data.getty.edu/local/thesaurus/object-title-translated",UNKNOWN_MAKER_INDEX_KEY:"UNKNOWN_MAKER",UNKNOWN_MAKER:"https://data.getty.edu/local/thesaurus/unknown-maker",UUID:"https://data.getty.edu/local/thesaurus/dor-uuid",ZOOM:"https://data.getty.edu/local/thesaurus/clearance/zoom",OBJECT_HIERARCHY_SEQUENCE:"https://data.getty.edu/local/thesaurus/object-hierarchy-sequence-position",YES:"YES",NO:"NO",RIGHTS_STATEMENT_ID:"https://data.getty.edu/local/thesaurus/rights-statement",GETTY_EXTERNAL_EXHIBITION:"https://data.getty.edu/local/thesaurus/third-party-venue",NON_EXHIBITION_LOAN:"https://data.getty.edu/local/thesaurus/non-exhibition-loan",EXHIBITION_ROTATION:"https://data.getty.edu/local/thesaurus/exhibition-rotation"};var k7e={LANGUAGES:{en:"http://vocab.getty.edu/aat/300388277",fr:"http://vocab.getty.edu/aat/300388306",de:"http://vocab.getty.edu/aat/300388344",es:"http://vocab.getty.edu/aat/300389311",zh:"http://vocab.getty.edu/aat/300388113",hi:"http://vocab.getty.edu/aat/300388412",af:"http://vocab.getty.edu/aat/300387782",sq:"http://vocab.getty.edu/aat/300387803",ar:"http://vocab.getty.edu/aat/300387843",bg:"http://vocab.getty.edu/aat/300388034",bs:"http://vocab.getty.edu/aat/300388023",ca:"http://vocab.getty.edu/aat/300388072",pt:"http://vocab.getty.edu/aat/300389115",bn:"http://vocab.getty.edu/aat/300387971",ru:"http://vocab.getty.edu/aat/300389168",nl:"http://vocab.getty.edu/aat/300388256",fi:"http://vocab.getty.edu/aat/300388299",is:"http://vocab.getty.edu/aat/300388449",ga:"http://vocab.getty.edu/aat/300388467",it:"http://vocab.getty.edu/aat/300388474",fa:"http://vocab.getty.edu/aat/300388296",gu:"http://vocab.getty.edu/aat/300388371",ko:"http://vocab.getty.edu/aat/300388633",la:"http://vocab.getty.edu/aat/300388693",lt:"http://vocab.getty.edu/aat/300388723",mk:"http://vocab.getty.edu/aat/300388760",ja:"http://vocab.getty.edu/aat/300388486",hr:"http://vocab.getty.edu/aat/300388185",cs:"http://vocab.getty.edu/aat/300388191",da:"http://vocab.getty.edu/aat/300388204",el:"http://vocab.getty.edu/aat/300388361",ka:"http://vocab.getty.edu/aat/300388343",he:"http://vocab.getty.edu/aat/300388401",hu:"http://vocab.getty.edu/aat/300388770",no:"http://vocab.getty.edu/aat/300388992",pl:"http://vocab.getty.edu/aat/300389109",ro:"http://vocab.getty.edu/aat/300389157",sk:"http://vocab.getty.edu/aat/300389290",sl:"http://vocab.getty.edu/aat/300389291",sr:"http://vocab.getty.edu/aat/300389247",sv:"http://vocab.getty.edu/aat/300389336",tr:"http://vocab.getty.edu/aat/300389470",cy:"http://vocab.getty.edu/aat/300389555",ty:"http://vocab.getty.edu/aat/300389346"},COPYRIGHT:"http://vocab.getty.edu/aat/300435434"},x7e="assigned",T7e="classified_as";function E7e(e,t){if(null==e)return[];var n=e[t];return null==n?[]:0==Array.isArray(n)?[n]:n.length<1?[]:n}function A7e(e){let t=e.toLowerCase();return t.startsWith("aat:")?t.replace("aat:","http://vocab.getty.edu/aat/"):t.startsWith("https://vocab.getty.edu/aat/")?t.replace("https://vocab.getty.edu/aat/","http://vocab.getty.edu/aat/"):t.replace("http://vocab.getty.edu/aat/","aat:")}H(E7e,"g$1"),H(A7e,"_");var L7e="NO_LANGUAGE";function I7e(e,t,n={}){if(null==t)return!0;let i=$7e(e,n);return!!(i.includes(D7e(t,n))||null!=n.fallbackLanguage&&i.includes(D7e(n.fallbackLanguage,n)))||!(!i.includes("NO_LANGUAGE")&&0!=i.length)&&0!=n.includeItemsWithNoLanguage}function $7e(e,t){if(null==e||null==e.language)return[L7e];if("string"==typeof e.language)return[D7e(e.language,t)];let n=new Set;return e.language.forEach((e=>{null==e?n.add(L7e):"string"==typeof e?n.add(e):e.id&&n.add(e.id)})),n=Array.from(n).map((e=>D7e(e,t))),n}function D7e(e,t){var n;if(null==e)return L7e;let i=k7e.LANGUAGES;t&&t.lookupMap&&(i=t.lookupMap);let r=e.toLowerCase();return r.match(/\/[a-zA-Z]+$/)&&(r=r.substring(r.lastIndexOf("/")+1)),null!=(n=i[r])?n:e}function P7e(e=""){let t,n=e;return(e.startsWith("aat:")||e.startsWith("https"))&&(n=A7e(e)),Object.keys(k7e.LANGUAGES).forEac
102h((e=>{k7e.LANGUAGES[e]==n&&(t=e)})),t}function O7e(e,t,{language:n,languageOptions:i={},operator:r}={}){return R7e(e,t,{classificationField:T7e,language:n,languageOptions:i,operator:r})}function M7e(e,t,{language:n,languageOptions:i={},operator:r}={}){return q7e(e,t,T7e,{language:n,languageOptions:i,operator:r})}function R7e(e,t,{classificationField:n=T7e,language:i,languageOptions:r={},operator:a="AND"}={}){let s=[],o=U7e(e),l=U7e(t);if(0==o.length||0==l.length)return s;for(let c of o){var u=E7e(c,n);let e=I7e(c,i,r);if(!u.length)continue;let t=u.map((e=>"string"==typeof e?e:e.id)),o=H((n=>e&&t.includes(n)||t.includes(A7e(n))),"c");if("AND"==a.toUpperCase())l.every(o)&&s.push(c);else{if("OR"!=a.toUpperCase())throw`unknown operator specified: ${a}, please use and/or`;l.some(o)&&s.push(c)}}return s}function N7e(e,t,{language:n,languageOptions:i,operator:r}={}){let a=O7e(e,t,{language:n,languageOptions:i,operator:r});if(a.length)return B7e(a[0])}function F7e(e,t,{language:n,languageOptions:i,operator:r}={}){let a=O7e(e,t,{language:n,languageOptions:i,operator:r});if(a.length){let e=[];return a.forEach((t=>{let n=B7e(t);n&&e.push(n)})),e}return[]}function B7e(e){if(null!=e){if(void 0!==e.value)return e.value;if(e.content)return e.content}}function H7e(e,t){let n=E7e(e,"attributed_by");return 0==n.length?[]:V7e(n,t)}function j7e(e,t){let n=E7e(e,"assigned_by");return 0==n.length?[]:V7e(n,t)}function U7e(e){let t=e;return null==e?[]:(0==Array.isArray(e)&&(t=[e]),t)}function V7e(e,t){let n=[];return e.forEach((e=>{(e.assigned_property==t||null==t)&&(Array.isArray(e.assigned)?n=n.concat(e[x7e]):n.push(e[x7e]))})),n}function q7e(e,t,n=T7e,{language:i,languageOptions:r={},operator:a}={}){let{classifications:s}=z7e(e,t,n,{language:i,languageOptions:r,operator:a});return s}function z7e(e,t,n=T7e,{language:i,languageOptions:r={},operator:a}){let s={classifications:[],objects:[]},o=U7e(e);if(0==o.length)return s;for(let u of o){var l=E7e(u,n);if(!l.length)continue;let e=R7e(l,t,{classificationField:n,language:i,languageOptions:r,operator:a});s.classifications=s.classifications.concat(e),e.length>0&&s.objects.push(u)}return s}function W7e(e,t,n,{language:i,languageOptions:r,operator:a}={}){return F7e(E7e(e,t),n,{language:i,languageOptions:r,operator:a})}function G7e(e,{requestedClassifications:t=k7e.COPYRIGHT,language:n,languageOptions:i={}}={}){return W7e(e,"referred_to_by",t,{language:n,languageOptions:i})}H(I7e,"x"),H($7e,"S"),H(D7e,"C"),H(P7e,"w"),H(O7e,"E"),H(M7e,"O"),H(R7e,"P"),H(N7e,"F"),H(F7e,"I"),H(B7e,"L"),H(H7e,"z"),H(j7e,"B$1"),H(U7e,"H"),H(V7e,"U$1"),H(q7e,"G"),H(z7e,"K"),H(W7e,"J$1"),H(G7e,"te");var K7e=Object.defineProperty,Y7e=H(((e,t)=>K7e(e,"name",{value:t,configurable:!0})),"__name");const Z7e="referred_to_by",X7e="identified_by",Q7e="classified_as",J7e="carries",e9e="created_by",t9e="representation",n9e="took_place_at",i9e="produced_by",r9e="timespan",a9e="crm:E47_Spatial_Coordinates",s9e="part_of",o9e="digitally_shown_by";var l9e=Object.defineProperty,u9e=Y7e(((e,t)=>l9e(e,"name",{value:t,configurable:!0})),"__name");const c9e={LANGUAGES:{en:"http://vocab.getty.edu/aat/300388277",fr:"http://vocab.getty.edu/aat/300388306",de:"http://vocab.getty.edu/aat/300388344",es:"http://vocab.getty.edu/aat/300389311",zh:"http://vocab.getty.edu/aat/300388113",hi:"http://vocab.getty.edu/aat/300388412",af:"http://vocab.getty.edu/aat/300387782",sq:"http://vocab.getty.edu/aat/300387803",ar:"http://vocab.getty.edu/aat/300387843",bg:"http://vocab.getty.edu/aat/300388034",bs:"http://vocab.getty.edu/aat/300388023",ca:"http://vocab.getty.edu/aat/300388072",pt:"http://vocab.getty.edu/aat/300389115",bn:"http://vocab.getty.edu/aat/300387971",ru:"http://vocab.getty.edu/aat/300389168",nl:"http://vocab.getty.edu/aat/300388256",fi:"http://vocab.getty.edu/aat/300388299",is:"http://vocab.getty.edu/aat/300388449",ga:"http://vocab.getty.edu/aat/300388467",it:"http://vocab.getty.edu/aat/300388474",fa:"http://vocab.getty.edu/aat/300388296",gu:"http://vocab.getty.edu/aat/300388371",ko:"http://vocab.getty.edu/aat/300388633",la:"http://vocab.getty.edu/aat/300388693",lt:"http://vocab.getty.edu/aat/300388723",mk:"http://vocab.getty.edu/aat/300388760",ja:"http://vocab.getty.edu/aat/300388486",hr:"http://vocab.getty.edu/aat/300388185",cs:"http://vocab.getty.edu/aat/300388191",da:"http://vocab.getty.edu/aat/300388204",el:"http://vocab.getty.edu/aat/300388361",ka:"http://vocab.getty.edu/aat/300388343",he:"http://vocab.getty.edu/aat/300388401",hu:"http://vocab.getty.edu/aat/300388770",no:"http://vocab.getty.edu/aat/300388992",pl:"http://vocab.getty.edu/aat/300389109",ro:"http://vocab.getty.edu/aat/300389157",sk:"http://vocab.getty.edu/aat/300389290",sl:"http://vocab.getty.edu/aat/300389291",sr:"http://vocab.getty.edu/aat/300389247",sv:"http://vocab.getty.edu/aat/300389336",tr:"http://vocab.getty.edu/aat/300389470",cy:"http://vocab.getty.edu/aat/300389555"},ACCESSION_NUMBERS:"http://vocab.getty.edu/aat/300312355",ACKNOWLEDGEMENT:"http://vocab.getty.edu/aat/300026687",COPYRIGHT:"http://vocab.getty.edu/aat/300435434",CULTURE:"http://vocab.getty.edu/aat/300055768",DIGITAL_IMAGES:"http://vocab.getty.edu/aat/300215302",DIMENSIONS_DESCRIPTION:"http://vocab.getty.edu/aat/300435430",LEGAL_CONCEPTS:"http://vocab.getty.edu/aat/300055547",MATERIALS_DESCRIPTION:"http://vocab.getty.edu/aat/300435429",PREFERRED_TERM:"http://vocab.getty.edu/aat/300404670",RIGHTS:"http://vocab.getty.edu/aat/300417696",WORK_TYPE:"http://vocab.getty.edu/aat/300435443",CLASSIFICATION:"http://vocab.getty.edu/aat/300435444"},d9e="AND",p9e="assigned",h9e="assigned_property",f9e="attributed_by",m9e="classified_as",g9e="classified_by",y9e="identified_by",v9e="Name",b9e="OR",_9e="part",w9e="produced_by",S9e="referred_to_by",C9e="Unknown";function k9e(e,t){if(null==e)return[];var n=e[t];return null==n?[]:0==Array.isArray(n)?[n]:n.length<1?[]:n}function x9e(e){let t=e.toLowerCase();return t.startsWith("aat:")?t.replace("aat:","http://vocab.getty.edu/aat/"):t.startsWith("https://vocab.getty.edu/aat/")?t.replace("https://vocab.getty.edu/aat/","http://vocab.getty.edu/aat/"):t.replace("http://vocab.getty.edu/aat/","aat:")}function T9e(e,t){let n=e[t];if(null==n)return[];let i=[];return 0==Array.isArray(n[_9e])?i=Array.isArray(n)?n:[n]:(i=[...n[_9e]],E9e(n,["id","_label","label","type",_9e])&&i.push(n)),i}function E9e(e,t=["id","_label","label","type"]){let n=Object.keys(e);return n.filter((e=>0==t.indexOf(e))),n.length>0}H(k9e,"normalizeFieldToArray"),Y7e(k9e,"normalizeFieldToArray"),u9e(k9e,"normalizeFieldToArray"),H(x9e,"normalizeAatId"),Y7e(x9e,"normalizeAatId"),u9e(x9e,"normalizeAatId"),H(T9e,"normalizeFieldWithParts"),Y7e(T9e,"normalizeFieldWithParts"),u9e(T9e,"
102normalizeFieldWithParts"),H(E9e,"_hasUniqueFields"),Y7e(E9e,"_hasUniqueFields"),u9e(E9e,"_hasUniqueFields");const A9e="NO_LANGUAGE";function L9e(e,t,n={}){if(null==t)return!0;let i=I9e(e,n);return!!(i.includes($9e(t,n))||null!=n.fallbackLanguage&&i.includes($9e(n.fallbackLanguage,n)))||!(!i.includes(A9e)&&0!=i.length)&&0!=n.includeItemsWithNoLanguage}function I9e(e,t){if(null==e||null==e.language)return[A9e];if("string"==typeof e.language)return[$9e(e.language,t)];let n=new Set;return e.language.forEach((e=>{null==e?n.add(A9e):"string"==typeof e?n.add(e):e.id&&n.add(e.id)})),n=Array.from(n).map((e=>$9e(e,t))),n}function $9e(e,t){var n;if(null==e)return A9e;let i=c9e.LANGUAGES;t&&t.lookupMap&&(i=t.lookupMap);let r=e.toLowerCase();return r.match(/\/[a-zA-Z]+$/)&&(r=r.substring(r.lastIndexOf("/")+1)),null!=(n=i[r])?n:e}function D9e(e=""){let t,n=e;return(e.startsWith("aat:")||e.startsWith("https"))&&(n=x9e(e)),Object.keys(c9e.LANGUAGES).forEach((e=>{c9e.LANGUAGES[e]==n&&(t=e)})),t}function P9e(e){return c9e.LANGUAGES[e]}function O9e(e,t,{language:n,languageOptions:i={},operator:r}={}){return U9e(e,t,{classificationField:m9e,language:n,languageOptions:i,operator:r})}function M9e(e,t,{language:n,languageOptions:i={},operator:r}={}){return U9e(e,t,{classificationField:g9e,language:n,languageOptions:i,operator:r})}function R9e(e,t,{language:n,languageOptions:i={},operator:r}={}){return J9e(e,t,m9e,{language:n,languageOptions:i,operator:r})}function N9e(e,t,{language:n,languageOptions:i={},operator:r}={}){return J9e(e,t,g9e,{language:n,languageOptions:i,operator:r})}function F9e(e,t,{language:n,languageOptions:i={},operator:r}={}){return Q9e(e,t,m9e,{language:n,languageOptions:i,operator:r})}function B9e(e,t,{language:n,languageOptions:i={}}={}){return Q9e(e,t,g9e,{language:n,languageOptions:i})}function H9e(e,{requestedClassifications:t=c9e.PREFERRED_TERM,language:n,languageOptions:i={}}={}){return j9e(e,{requestedClassifications:t,language:n,languageOptions:i})[0]}function j9e(e,{requestedClassifications:t=c9e.PREFERRED_TERM,language:n,languageOptions:i={}}={}){if(null==e)return C9e;let r=k9e(e,y9e).filter((e=>e.type==v9e)),a=q9e(r,t,{language:n,languageOptions:i});if(a.length>0)return a;if(r.length>0&&t==c9e.PREFERRED_TERM){let e=[...r];for(let t in e)e[t]=z9e(e[t]);return e}let s=C9e;return e&&e.id&&(s+=" ("+e.id+")"),[s]}function U9e(e,t,{classificationField:n=m9e,language:i,languageOptions:r={},operator:a=d9e}={}){let s=[],o=Z9e(e),l=Z9e(t);if(0==o.length||0==l.length)return s;for(const c of o){var u=k9e(c,n);let e=L9e(c,i,r);if(!u.length)continue;let t=u.map((e=>"string"==typeof e?e:e.id)),o=u9e((n=>e&&t.includes(n)||t.includes(x9e(n))),"inClassificationIDs");if(a.toUpperCase()==d9e)l.every(o)&&s.push(c);else{if(a.toUpperCase()!=b9e)throw`unknown operator specified: ${a}, please use and/or`;l.some(o)&&s.push(c)}}return s}function V9e(e,t,{language:n,languageOptions:i,operator:r}={}){let a=O9e(e,t,{language:n,languageOptions:i,operator:r});if(a.length)return z9e(a[0])}function q9e(e,t,{language:n,languageOptions:i,operator:r}={}){let a=O9e(e,t,{language:n,languageOptions:i,operator:r});if(a.length){let e=[];return a.forEach((t=>{const n=z9e(t);n&&e.push(n)})),e}return[]}function z9e(e){if(null!=e){if(void 0!==e.value)return e.value;if(e.content)return e.content}}function W9e(e,t){if(!e)return;const n=e[S9e];return n?V9e(n,t):void 0}function G9e(e,t){let n=k9e(e,f9e);return 0==n.length?[]:X9e(n,t)}function K9e(e,t){let n=k9e(e,"assigned_by");return 0==n.length?[]:X9e(n,t)}function Y9e(e,t){const n=e[t];if(!n)return[];let i=k9e(n,_9e);return 0==i.length?[n]:i}function Z9e(e){let t=e;return null==e?[]:(0==Array.isArray(e)&&(t=[e]),t)}function X9e(e,t){let n=[];return e.forEach((e=>{(e[h9e]==t||null==t)&&(Array.isArray(e[p9e])?n=n.concat(e[p9e]):n.push(e[p9e]))})),n}function Q9e(e,t,n=m9e,{language:i,languageOptions:r={},operator:a}={}){let{objects:s}=eet(e,t,n,{language:i,languageOptions:r,operator:a});return s}function J9e(e,t,n=m9e,{language:i,languageOptions:r={},operator:a}={}){let{classifications:s}=eet(e,t,n,{language:i,languageOptions:r,operator:a});return s}function eet(e,t,n=m9e,{language:i,languageOptions:r={},operator:a}){let s={classifications:[],objects:[]},o=Z9e(e);
102if(0==o.length)return s;for(const u of o){var l=k9e(u,n);if(!l.length)continue;let e=U9e(l,t,{classificationField:n,language:i,languageOptions:r,operator:a});s.classifications=s.classifications.concat(e),e.length>0&&s.objects.push(u)}return s}function tet(e,t,n){let i=T9e(e,t),r=[];return i.forEach((e=>{let t=k9e(e,n);r=r.concat(t)})),r}function net(e,t,n,{language:i,languageOptions:r,operator:a}={}){return q9e(k9e(e,t),n,{language:i,languageOptions:r,operator:a})}function iet(e,{requestedClassifications:t=c9e.DIMENSIONS_DESCRIPTION,language:n,languageOptions:i={}}={}){return net(e,S9e,t,{language:n,languageOptions:i})}function ret(e,{requestedClassifications:t=c9e.ACCESSION_NUMBERS,language:n,languageOptions:i={}}={}){return net(e,y9e,t,{language:n,languageOptions:i})}function aet(e,t=w9e){return tet(e,t,"carried_out_by")}function set(e,{requestedClassifications:t=c9e.CULTURE,language:n,languageOptions:i={}}={}){return net(e,S9e,t,{language:n,languageOptions:i})}function oet(e,{requestedClassifications:t=c9e.DIGITAL_IMAGES}={}){return O9e(k9e(e,"representation"),t).map((e=>e.id))}function uet(e,{requestedClassifications:t=[c9e.LEGAL_CONCEPTS,c9e.RIGHTS],language:n,languageOptions:i={}}={}){return U9e(k9e(e,S9e),t,{classificationField:m9e,language:n,languageOptions:i,operator:b9e}).map((e=>z9e(e)))}function cet(e,{requestedClassifications:t=c9e.COPYRIGHT,language:n,languageOptions:i={}}={}){return net(e,S9e,t,{language:n,languageOptions:i})}function det(e){const t=k9e(e,"subject_to");let n=[];return t.forEach((e=>{n=n.concat(e[m9e])})),n.map((e=>e.id))}function pet(e,{requestedClassifications:t=c9e.ACKNOWLEDGEMENT,language:n,languageOptions:i={}}={}){return net(e,S9e,t,{language:n,languageOptions:i})}function het(e,{requestedClassifications:t=c9e.MATERIALS_DESCRIPTION,language:n,languageOptions:i={}}={}){return net(e,S9e,t,{language:n,languageOptions:i})}function fet(e){return tet(e,w9e,"timespan")}function met(e,{requestedClassifications:t=c9e.WORK_TYPE,language:n,languageOptions:i={}}={}){return R9e(e,t,{language:n,languageOptions:i})}function get(e,{requestedClassifications:t=c9e.CLASSIFICATION,language:n,languageOptions:i={}}={}){return R9e(e,t,{language:n,languageOptions:i})}function yet(e,t,n){let i=n;return null==i&&(i=new Set),null==e||(!0===Array.isArray(e)?e.forEach((e=>{yet(e,t,i)})):e===Object(e)&&(e.id&&-1!=e.id.indexOf(t)&&i.add(e.id),Object.keys(e).forEach((n=>{yet(e[n],t,i)})))),i}function vet(e){let t=e.map((e=>e[Z7e]?e[Z7e].length:0)),n=Math.max.apply(null,t);return 0===n?e[0].content:e.find((e=>e[Z7e]&&e[Z7e].length===n)).content}function bet(e,t=Z7e,n=aat.DESCRIPTION,i=void 0){const r=O9e(k9e(e,t),n);let a=[];for(let s of r)(null==i||i==s.format)&&a.push(z9e(s));return a}H(L9e,"doesObjectLanguageMatch"),Y7e(L9e,"doesObjectLanguageMatch"),u9e(L9e,"doesObjectLanguageMatch"),H(I9e,"getLanguageId"),Y7e(I9e,"getLanguageId"),u9e(I9e,"getLanguageId"),H($9e,"normalizeLanguageId"),Y7e($9e,"normalizeLanguageId"),u9e($9e,"normalizeLanguageId"),H(D9e,"lookupIsoFromAat"),Y7e(D9e,"lookupIsoFromAat"),u9e(D9e,"lookupIsoFromAat"),H(P9e,"lookupAatFromIso"),Y7e(P9e,"lookupAatFromIso"),u9e(P9e,"lookupAatFromIso"),H(O9e,"getClassifiedAs"),Y7e(O9e,"getClassifiedAs"),u9e(O9e,"getClassifiedAs"),H(M9e,"getClassifiedBy"),Y7e(M9e,"getClassifiedBy"),u9e(M9e,"getClassifiedBy"),H(R9e,"getClassifiedAsWithClassification"),Y7e(R9e,"getClassifiedAsWithClassification"),u9e(R9e,"getClassifiedAsWithClassification"),H(N9e,"getClassifiedByWithClassification"),Y7e(N9e,"getClassifiedByWithClassification"),u9e(N9e,"getClassifiedByWithClassification"),H(F9e,"getObjectsClassifiedAsWithClassification"),Y7e(F9e,"getObjectsClassifiedAsWithClassification"),u9e(F9e,"getObjectsClassifiedAsWithClassification"),H(B9e,"getObjectsClassifiedByWithClassification"),Y7e(B9e,"getObjectsClassifiedByWithClassification"),u9e(B9e,"getObjectsClassifiedByWithClassification"),H(H9e,"getPrimaryName"),Y7e(H9e,"getPrimaryName"),u9e(H9e,"getPrimaryName"),H(j9e,"getPrimaryNames"),Y7e(j9e,"getPrimaryNames"),u9e(j9e,"getPrimaryNames"),H(U9e,"getClassified"),Y7e(U9e,"getClassified"),u9e(U9e,"getClassified"),H(V9e,"getValueByClassification"),Y7e(V9e,"getValueByClassification"),u9e(V9e,"getValueByClassification"),H(q9e,"getValuesByClassification"),Y7e(q9e,"getValuesByClassification"),u9e(q9e,"getValuesByClassification"),H(z9e,"getValueOrContent"),Y7e(z9e,"getValueOrContent"),u9e(z9e,"getValueOrContent"),H(W9e,"getReferredToByClassification$1"),Y7e(W9e,"getReferredToByClassification$1"),u9e(W9e,"getReferredToByClassification"),H(G9e,"getAttributedBy"),Y7e(G9e,"getAttributedBy"),u9e(G9e,"getAttributedBy"),H(K9e,"getAssignedBy"),Y7e(K9e,"getAssignedBy"),u9e(K9e,"getAssignedBy"),H(Y9e,"getObjectParts"),Y7e(Y9e,"getObjectParts"),u9e(Y9e,"getObjectParts"),H(Z9e,"_convertToArrayIfNeeded"),Y7e(Z9e,"_convertToArrayIfNeeded"),u9e(Z9e,"_convertToArrayIfNeeded"),H(X9e,"_getAssignedProperty"),Y7e(X9e,"_getAssignedProperty"),u9e(X9e,"_getAssignedProperty"),H(Q9e,"_getObjectWithNestedClass"),Y7e(Q9e,"_getObjectWithNestedClass"),u9e(Q9e,"_getObjectWithNestedClass"),H(J9e,"_getClassificationsWithNestedClass"),Y7e(J9e,"_getClassificationsWithNestedClass"),u9e(J9e,"_getClassificationsWithNestedClass"),H(eet,"_getObjectsAndClassificationsWithNestedClass"),Y7e(eet,"_getObjectsAndClassificationsWithNestedClass"),u9e(eet,"_getObjectsAndClassificationsWithNestedClass"),H(tet,"getFieldPartSubfield"),Y7e(tet,"getFieldPartSubfield"),u9e(tet,"getFieldPartSubfield"),H(net,"getFieldValuesByClassifications"),Y7e(net,"getFieldValuesByClassifications"),u9e(net,"getFieldValuesByClassifications"),H(iet,"getDimensionsDescriptions"),Y7e(iet,"getDimensionsDescriptions"),u9e(iet,"getDimensionsDescriptions"),H(ret,"getAccessionNumbers"),Y7e(ret,"getAccessionNumbers"),u9e(ret,"getAccessionNumbers"),H(aet,"getCarriedOutBy"),Y7e(aet,"getCarriedOutBy"),u9e(aet,"getCarriedOutBy"),H(set,"getCultures"),Y7e(set,"getCultures"),u9e(set,"getCultures"),H(oet,"getDigitalImages"),Y7e(oet,"getDigitalImages"),u9e(oet,"getDigitalImages"),H(uet,"getRightsStatements"),Y7e(uet,"getRightsStatements"),u9e(uet,"getRightsStatements"),H(cet,"getCopyrightStatements"),Y7e(cet,"getCopyrightStatements"),u9e(cet,"getCopyrightStatements"),H(det,"getRightsAssertions"),Y7e(det,"getRightsAssertions"),u9e(det,"getRightsAssertions"),H(pet,"getAcknowledgementStatements"),Y7e(pet,"getAcknowledgementStatements"),u9e(pet,"getAcknowledgementStatements"),H(het,"getMaterialStatements"),Y7e(het,"getMaterialStatements"),u9e(het,"getMaterialStatements"),H(fet,"getProductionTimespans"),Y7e(fet,"getProductionTimespans"),u9e(fet,"getProductionTimespans"),H(met,"getWorkT
102ypes"),Y7e(met,"getWorkTypes"),u9e(met,"getWorkTypes"),H(get,"getClassifications"),Y7e(get,"getClassifications"),u9e(get,"getClassifications"),H(yet,"getAllIds"),Y7e(yet,"getAllIds"),H(vet,"getMostReferenced"),Y7e(vet,"getMostReferenced"),H(bet,"getContentWithFormat"),Y7e(bet,"getContentWithFormat");const _et={ACCESSION_NUMBER:"http://vocab.getty.edu/aat/300312355",ACTIVE:"http://vocab.getty.edu/aat/300393177",AIN:"http://vocab.getty.edu/aat/300435221",ALTERNATE_DESCRIPTOR:"http://vocab.getty.edu/term/type/AlternateDescriptor",ALTERNATE_TITLE:"http://vocab.getty.edu/aat/300417227",BIOGRAPHIES:"http://vocab.getty.edu/aat/300080102",CLASSIFICATION:"http://vocab.getty.edu/aat/300435444",COPYRIGHT:"http://vocab.getty.edu/aat/300435434",CULTURE:"http://vocab.getty.edu/aat/300055768",DESCRIPTION:"http://vocab.getty.edu/aat/300080091",DESCRIPTIVE_NOTE:"http://vocab.getty.edu/aat/300435416",DESCRIPTOR_URI:"http://vocab.getty.edu/term/type/Descriptor",DIGITAL_IMAGE:"http://vocab.getty.edu/aat/300215302",DIMENSIONS_DESCRIPTION:"http://vocab.getty.edu/aat/300435430",DISTANCE_UNIT:"http://vocab.getty.edu/aat/300379251",IDENTIFICATION_NUMBER:"http://vocab.getty.edu/aat/300404626",INSCRIPTIONS:"http://vocab.getty.edu/aat/300435414",MARKS:"http://vocab.getty.edu/aat/300435420",MATERIALS_DESCRIPTION:"http://vocab.getty.edu/aat/300435429",NAME:"http://vocab.getty.edu/aat/300404650",NATIONALITY:"http://vocab.getty.edu/aat/300379842",OBJECT_TYPE:"http://vocab.getty.edu/aat/300435443",PLACE_CREATED:"http://vocab.getty.edu/aat/300435448",PLACE_PREFERRED_TERM:"http://vocab.getty.edu/aat/300404650",PLURAL_NOUN:"http://vocab.getty.edu/term/POS/PluralNoun",PREFERRED_TERM:"http://vocab.getty.edu/aat/300404670",RIGHTS_STATEMENT:"http://vocab.getty.edu/aat/300417696",ROLES:"http://vocab.getty.edu/aat/300435108",SIGNATURES_DESCRIPTION:"http://vocab.getty.edu/aat/300028705",SINGULAR_AND_PLURAL:"http://vocab.getty.edu/term/POS/BothSingularAndPlural",SINGULAR_NOUN:"http://vocab.getty.edu/term/POS/SingularNoun",STREET_ADDRESSES:"http://vocab.getty.edu/aat/300386983",WATERMARKS:"http://vocab.getty.edu/aat/300435421"},wet=["en-us","en"],Cet=["http://vocab.getty.edu/historic/localUse"],ket=[[_et.DESCRIPTOR_URI,_et.SINGULAR_NOUN],[_et.DESCRIPTOR_URI,_et.SINGULAR_AND_PLURAL],[_et.ALTERNATE_DESCRIPTOR,_et.SINGULAR_NOUN],[_et.ALTERNATE_DESCRIPTOR,_et.SINGULAR_AND_PLURAL],[_et.DESCRIPTOR_URI]],xet=[[_et.DESCRIPTOR_URI,_et.PLURAL_NOUN],[_et.DESCRIPTOR_URI,_et.SINGULAR_AND_PLURAL],[_et.ALTERNATE_DESCRIPTOR,_et.PLURAL_NOUN],[_et.ALTERNATE_DESCRIPTOR,_et.SINGULAR_AND_PLURAL],[_et.DESCRIPTOR_URI]];function Tet(e){return Let(e,Ret)}function Eet(e){return Let(e,Oet)}function Aet(e){return Let(e,Met)}function Let(e,t){let n;if(null==e.id||null==e.qualifiers)return;e.id.endsWith("/")&&(e.id=e.id.slice(0,-1));let i=Iet(e.id,e.qualifiers);return null!=i&&(n=t(i,e)),n}function Iet(e,t){let n,i=e.split("/").slice(-1)[0];return t.forEach((e=>{let t=e.id.split("/").slice(-1)[0];null!=e&&t==i&&(n=e)})),n}function $et(e,t=[]){let n=O9e(e.identified_by,_et.NAME);n=n.filter((e=>0==O9e(e,t).length));let i=[],r={};return n.forEach((e=>{let t=Fet(e,!0);if(e.language){let i=jet(e);for(var n of("string"==typeof i&&(i=[i]),i))r[n]?r[n].push(t):r[n]=[t]}else i.push(Fet(e,!0))})),r.no_lang=i,r}function Det(e){let t={},n=O9e(e.identified_by,_et.PREFERRED_TERM).length?O9e(e.identified_by,_et.PREFERRED_TERM)[0]:void 0;return null!=n&&n.language?t[jet(n)]=Fet(n,!0):n&&(t.no_lang=Fet(n,!0)),t}function Pet(e,t,n){let i=[];return 0==Array.isArray(e)||e.forEach((e=>{if(e.type==t){let t=Fet(e,!0);i.push(t)}})),i}function Oet(e,t={}){const n={};n.lang=null==t.lang?"en":t.lang,n.born=e.born,n.died=e.died;let i=Cet;"nameExclude"in t&&(i=t.nameExclude),n.subject_of=Pet(e.subject_of,"LinguisticObject",t.langs),n.names=$et(e,i);let r=Det(e);return n.preferred_name=r.keys?r:zet(e.identified_by,n.lang,i),n}function Met(e,t={}){let n={};n.subject_of=Pet(e.subject_of,"LinguisticObject",t.langs),n.lang=null==t.lang?"en":t.lang,n.names=$et(e),n.preferred_name=Det(e);let i=Pet(e.identified_by,a9e,t.langs);return null!=i&&i.length&&(n.coords=JSON.parse(i)),n.part_of=e.part_of,n}function Ret(e,t){let{number:n,lang:i,default_lang_:r}=t;if("object"!=typeof e||null==e||Object.keys(e).length<1)return;let a=wet;if(null!=r){if("string"!=typeof r||2!=r.length)throw"INVALID DEFAULT LANGUAGE";a=[],a[0]=r}let s=[];s=null==e.part_of||e.part_of!=_et.DISTANCE_UNIT&&e.part_of[0]!=_et.DISTANCE_UNIT?ket:xet,null!=n&&"plural"==n&&(s=xet),null!=t.cases&&(s=t.cases);let o,l=[];for(var u of s)for(var c of e[X7e]){let e=Fet(c,!0),t=jet(c),n=Net(c);if(Bet(i,t,u,n))return e;a.forEach((i=>{Bet(i,t,u,n)&&l.push(e)}))}return l.length>0&&(o=l[0]),o}function Net(e){let t=[];if(null!=e&&null!=e[Q7e])return e[Q7e].forEach((e=>{null==e.id?t.push(e):t.push(e.id)}
102)),t}function Fet(e,t=!1){let n=e.value;return null==n&&(n=e.content),null==n&&t&&(n=e._label),null==n&&(n=e),n}function Bet(e,t,n,i){return null!=e&&0!=t.includes(e)&&n.every((function(e){return i.indexOf(e)>-1}))}function Het(e){if(null!=e){if("string"==typeof e)return e.split("/").pop();if(e[0]&&e[0].identified_by)return e[0].identified_by[0].id.split("/").pop();if(e[0]&&e[0].id)return e[0].id.split("/").pop();if(e.id)return e.id.split("/").pop()}}function jet(e){let t=[];return null==e.language?t:"string"==typeof e.language?e.language:(e.language.forEach((e=>{let n=Het(e);null==e.identified_by?t.push(n):e.identified_by.forEach((e=>{t.push(e._label)}))})),t)}function Uet(e){return yet(e,"http://id.loc.gov/authorities/names")}function Vet(e,t){return yet(e,"http://vocab.getty.edu/"+t.toLowerCase()+"/")}function qet(e){return Vet(e,"AAT")}function zet(e,t,n=[]){let i={},r=e.filter((e=>e=>0==O9e(e,n).length));return r=r.filter((e=>{let n=Het(e.language);if(n==t||null==n)return e})),i[t]=vet(r),i}function Wet(e){return null==e||"string"!=typeof e?e:e.replace(/([A-Za-zÃ-ÃÃ-öø-ÿ]+[^\s\-]*) */g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))}function Get(e,t){if(!e)return;const n=e[Z7e];return n?V9e(n,t):void 0}function Ket(e){return Xet(e)}function Yet(e){let t=[];return e.forEach((e=>{var n=Zet(e);t.push(n)})),t}function Zet(e){return Xet(e)}function Xet(e){if(null==e||0==k9e(e,X7e).length)return;let t=Qet(e),n=V9e(t,_et.PREFERRED_TERM);if(null==n){let e=[];t.forEach((t=>{null!=t.content&&e.push(t)})),n=vet(e)}return n}function Qet(e){let t=k9e(e,X7e),n=[...t,...G9e(e,X7e)];return n=n.filter((e=>"Name"===e.type&&null!=e.content)),0==n.length&&(n=t.filter((e=>"Identifier"===e.type&&null!=e.content&&"string"==typeof e.content))),n}function Jet(e){let t=Qet(e).map((e=>e.content));return[...new Set(t)]}function ett(e){let t=[],n=O9e(e.carried_out,_et.ACTIVE);if(0!=n.length)return n.forEach((e=>{let n=getDateRange(e);t.push(n)})),t}function ttt(e,t,n){let i=e[t];null!=i&&(i.length?i.forEach((e=>{n.push(e)})):n.push(i))}function ntt(e,t,n,i){const r=itt(e,t,n),a=[];return r.forEach((e=>{k9e(e,X7e).forEach((e=>{a.push(z9e(e))})),i&&e.part_of&&k9e(e.part_of,X7e).forEach((e=>{a.push(z9e(e))}))})),a}function itt(e,t,n){let i=k9e(e,t),r=[];return null==i?[]:(i.map((e=>{ttt(e,n,r);let t=e.part;null!=t&&t.forEach((e=>{ttt(e,n,r)}))})),r)}H(Tet,"findAndGetAATValue"),Y7e(Tet,"findAndGetAATValue"),H(Eet,"findAndGetULANValue"),Y7e(Eet,"findAndGetULANValue"),H(Aet,"findAndGetTGNValue"),Y7e(Aet,"findAndGetTGNValue"),H(Let,"findAndGetValue"),Y7e(Let,"findAndGetValue"),H(Iet,"findVocabObject"),Y7e(Iet,"findVocabObject"),H($et,"getNamesByLang"),Y7e($et,"getNamesByLang"),H(Det,"getPreferredName"),Y7e(Det,"getPreferredName"),H(Pet,"getPartByType"),Y7e(Pet,"getPartByType"),H(Oet,"getULANValue"),Y7e(Oet,"getULANValue"),H(Met,"getTGNValue"),Y7e(Met,"getTGNValue"),H(Ret,"getAATValue"),Y7e(Ret,"getAATValue"),H(Net,"getClasses"),Y7e(Net,"getClasses"),H(Fet,"getValue"),Y7e(Fet,"getValue"),H(Bet,"containsAll"),Y7e(Bet,"containsAll"),H(Het,"getLanguage"),Y7e(Het,"getLanguage"),H(jet,"getLanguages"),Y7e(jet,"getLanguages"),H(Uet,"LCSHLookup"),Y7e(Uet,"LCSHLookup"),H(Vet,"findGettyVocabRecursive"),Y7e(Vet,"findGettyVocabRecursive"),H(qet,"findAATRecursive"),Y7e(qet,"findAATRecursive"),H(zet,"getMostReferencedByLang"),Y7e(zet,"getMostReferencedByLang"),H(Wet,"convertToTitleCase"),Y7e(Wet,"convertToTitleCase"),H(Get,"getReferredToByClassification"),Y7e(Get,"getReferredToByClassification"),H(Ket,"getManMadeObjectName"),Y7e(Ket,"getManMadeObjectName"),H(Yet,"getActorNames"),Y7e(Yet,"getActorNames"),H(Zet,"getActorName"),Y7e(Zet,"getActorName"),H(Xet,"getEntityName"),Y7e(Xet,"getEntityName"),H(Qet,"_getNameElements"),Y7e(Qet,"_getNameElements"),H(Jet,"getAllNames"),Y7e(Jet,"getAllNames"),H(ett,"getActiveRange"),Y7e(ett,"getActiveRange"),H(ttt,"_appendProductionSubfield"),Y7e(ttt,"_appendProductionSubfield"),H(ntt,"getSubfield"),Y7e(ntt,"getSubfield"),H(itt,"getProductionData$1"),Y7e(itt,"getProductionData$1");const rtt={"01":"January","02":"February","03":"March","04":"April","05":"May","06":"June","07":"July","08":"August","09":"September",10:"October",11:"November",12:"December"};function att(e){let t=e.gte;t=stt(t);let n=e.lte;return null==n?t:(n=stt(n),null==t?n:4!==t.length||4!==n.length||parseInt(n)-parseInt(t)!=0&&parseInt(n)-parseInt(t)!=1?t+" - "+n:t)}function stt(e){if(null==e)return;let t=e.replace("T"," ");
102if(t.endsWith(" 00:00:00")&&(t=t.substring(0,10),t.endsWith("-01-01")&&(t=t.substring(0,4))),t.endsWith(" 23:59:59")&&(t=t.substring(0,10),t.endsWith("-12-31")&&(t=t.substring(0,4))),10===t.length){let e=t.substring(0,4),n=rtt[t.substring(5,7)],i=t.substring(8,10);"0"===i[0]&&(i=i[1]),t=n+" "+i+", "+e}return t}function ott(e){let t=e.timespan;if(null==t)return;let n=t.begin_of_the_begin,i=t.end_of_the_end,r={};const a=k9e(t,X7e);return a.length>0&&null!=a[0].content&&(r.content=a[0].content),null!=n&&(n=n.replace("T"," ").replace("Z","")),null!=i&&(i=i.replace("T"," ").replace("Z","")),null==i&&null==n?r:null==i?(r.gte=n,r):null==n?(r.lte=i,r):(r.lte=i,r.gte=n,r)}function ltt(e,t){return htt(e,"born",t)}function utt(e,t){return ctt(e)||Get(e,t)}function ctt(e){const t=e.born;if(!t)return;const n=k9e(t,"took_place_at");if(!n.length)return;const i=k9e(n[0],"identified_by");return i.length?i[0].content:void 0}function dtt(e){let t=e.born;return null==t?void 0:ott(t)}function ptt(e){let t=e.died;return null==t?void 0:ott(t)}function htt(e,t,n){let i=e[t];if(null==i)return;if(i.timespan){let e=k9e(i.timespan,X7e);if(e.length>0)return e[0].content;let t=Get(i.timespan,n);if(null!=t)return t}let r=Get(i,n);return null!=r?r:void 0}function ftt(e,t){return htt(e,"died",t)}function mtt(e,t){return gtt(e)||Get(e,t)}function gtt(e){const t=e.died;if(!t)return;const n=k9e(t,n9e);if(!n.length)return;const i=k9e(n[0],X7e);return i.length?i[0].content:void 0}function ytt(e,t){return bet(e,Z7e,_et.BIOGRAPHIES,t)[0]}function vtt(e,t,n){let i=[];for(var r of O9e(e.classified_as,_et.NATIONALITY))i.push(Tet({id:r.id,qualifiers:t,lang:n}));return i}function btt(e,t,n){let i=[];const r=_tt(e);return r.length&&r.forEach((e=>{let r=Tet({id:e.id,qualifiers:t,lang:n});i.push(Wet(r))})),i}function _tt(e){const t=e.classified_as;return t?O9e(t,_et.ROLES):[]}function wtt(e){let t,n=k9e(e,"exact_match");for(let i of n)null!=i&&i.id.indexOf("vocab.getty.edu/ulan")>-1&&(t=i.id);return t}function Stt(e){return Ket(e)}function Ctt(e){return Yet(e)}function ktt(e){return null==e?[]:itt(e,i9e,"carried_out_by")}function xtt(e,t){return ntt(e,i9e,"timespan",t)}function Ttt(e){return itt(e,i9e,"timespan")}function Ett(e){return itt(e,"used_for","timespan")}function Att(e){let t=[];const n=k9e(e,Z7e);return n.length>0&&(t=q9e(n,_et.PLACE_CREATED)),null==t&&(t=[]),t=t.concat(ntt(e,i9e,n9e)),t}function Ltt(e,t,n,i){let r=itt(e,i9e,t),a=[];return r.forEach((e=>{a.push(Tet({id:e.id,qualifiers:n,lang:i}))})),a}function Itt(e,t,n){return Ltt(e,"technique",t,n)}function $tt(e,t,n){return Ltt(e,"made_of",t,n)}function Dtt(e){const t=O9e(k9e(e,t9e),_et.DIGITAL_IMAGE);return null==t||0==t.length?void 0:t.map((e=>e.id))}function Ptt(e,t="300"){const n=Dtt(e);if(null==n)return;let i=n.filter((e=>e.includes("thumbnail")));return null==i||0==i.length?(i=n[0].replace("full/0/default.jpg","!"+t+","+t+"/0/default.jpg"),i):i[0]}function Ott(e,t){let n=k9e(e,Q7e);return n=O9e(n,_et.CLASSIFICATION),n.length<1?void 0:Tet({id:n[0].id,qualifiers:t})}function Mtt(e){return q9e(e.referred_to_by,_et.CULTURE)}function Rtt(e){let t=O9e(e.identified_by,_et.IDENTIFICATION_NUMBER);return V9e(t,_et.PREFERRED_TERM)||z9e(t[0])}function Ntt(e){return V9e(e.identified_by,_et.ACCESSION_NUMBER)}function Ftt(e,t){return V9e(e.identified_by,t)}function Btt(e){return Ztt(e,Z7e,_et.DIMENSIONS_DESCRIPTION)}function Htt(e){return Ytt(e,Z7e,_et.MATERIALS_DESCRIPTION)}function jtt(e){return Ztt(e,J7e,_et.SIGNATURES_DESCRIPTION)}function Utt(e){return Ztt(e,J7e,_et.MARKS)}function Vtt(e){return Ztt(e,J7e,_et.INSCRIPTIONS)}function qtt(e){return Ztt(e,J7e,_et.WATERMARKS)}function ztt(e){return Wtt(e,_et.ALTERNATE_TITLE)}function Wtt(e,t){if(0==k9e(e,X7e).length)return;const n=O9e(Qet(e),t);if(0==n.length)return;let i=[];return n.forEach((e=>{0==i.includes(e.content)&&i.push(e.content)})),i}function Gtt(e,t){return Wtt(e,t)}function Ktt(e,t=void 0){return bet(e,Z7e,_et.DESCRIPTION,t)[0]}function Ytt(e,t,n){const i=k9e(e,t);return 0==i.length?void 0:V9e(i,n)}function Ztt(e,t,n){const i=k9e(e,t);return 0==i.length?void 0:q9e(i,n)}function Xtt(e){const t=k9e(e,Z7e);if(t.length)return V9e(t,_et.OBJECT_TYPE)}function Qtt(e,t=_et.COPYRIGHT){return V9e(k9e(e,Z7e),t)}function Jtt(e,t=_et.RIGHTS_STATEMENT){return V9e(k9e(e,Z7e),t)}function ent(e,t=_et.RIGHTS_STATEMENT){const n=O9e(k9e(e,Z7e),t);if(n.length)return n[0].id}function tnt(e,t){const n=k9e(e,"shows");if(0==n.length)return[];let i=[];
102return n.forEach((function(e){let n=q9e(k9e(e,Z7e),t);i=i.concat(n)})),i}function nnt(e,t){return q9e(k9e(e,Z7e),t)}function int(e){return ntt(e,e9e,r9e)}function rnt(e){return itt(e,e9e,r9e)}H(att,"getDisplayDate"),Y7e(att,"getDisplayDate"),H(stt,"formatDisplayDate"),Y7e(stt,"formatDisplayDate"),H(ott,"getDateRange$1"),Y7e(ott,"getDateRange$1"),H(ltt,"getBirthDateDescription"),Y7e(ltt,"getBirthDateDescription"),H(utt,"getBirthPlace"),Y7e(utt,"getBirthPlace"),H(ctt,"getBirthPlaceFromBorn"),Y7e(ctt,"getBirthPlaceFromBorn"),H(dtt,"getBornRange"),Y7e(dtt,"getBornRange"),H(ptt,"getDiedRange"),Y7e(ptt,"getDiedRange"),H(htt,"getDateDescription"),Y7e(htt,"getDateDescription"),H(ftt,"getDeathDateDescription"),Y7e(ftt,"getDeathDateDescription"),H(mtt,"getDeathPlace"),Y7e(mtt,"getDeathPlace"),H(gtt,"getDeathPlaceFromDied"),Y7e(gtt,"getDeathPlaceFromDied"),H(ytt,"getDescription$2"),Y7e(ytt,"getDescription$2"),H(vtt,"getNationality"),Y7e(vtt,"getNationality"),H(btt,"getRole"),Y7e(btt,"getRole"),H(_tt,"getRoleReferences"),Y7e(_tt,"getRoleReferences"),H(wtt,"getUlanLink"),Y7e(wtt,"getUlanLink"),H(Stt,"getName$1"),Y7e(Stt,"getName$1"),H(Ctt,"getArtistNames"),Y7e(Ctt,"getArtistNames"),H(ktt,"getArtistFromObject"),Y7e(ktt,"getArtistFromObject"),H(xtt,"getCreationDate$1"),Y7e(xtt,"getCreationDate$1"),H(Ttt,"getCreationDateTimespan$1"),Y7e(Ttt,"getCreationDateTimespan$1"),H(Ett,"getPublicationActivityDateTimespans"),Y7e(Ett,"getPublicationActivityDateTimespans"),H(Att,"getCreationPlace"),Y7e(Att,"getCreationPlace"),H(Ltt,"getProductionData"),Y7e(Ltt,"getProductionData"),H(Itt,"getTechnique"),Y7e(Itt,"getTechnique"),H($tt,"getMedium"),Y7e($tt,"getMedium"),H(Dtt,"getImageUrls"),Y7e(Dtt,"getImageUrls"),H(Ptt,"getThumbnailUrl"),Y7e(Ptt,"getThumbnailUrl"),H(Ott,"getClassification"),Y7e(Ott,"getClassification"),H(Mtt,"getCulture"),Y7e(Mtt,"getCulture"),H(Rtt,"getObjectNumber"),Y7e(Rtt,"getObjectNumber"),H(Ntt,"getAccessionNumber"),Y7e(Ntt,"getAccessionNumber"),H(Ftt,"getManuscriptNumber"),Y7e(Ftt,"getManuscriptNumber"),H(Btt,"getDimensionStatement"),Y7e(Btt,"getDimensionStatement"),H(Htt,"getMaterialStatement"),Y7e(Htt,"getMaterialStatement"),H(jtt,"getSignatures"),Y7e(jtt,"getSignatures"),H(Utt,"getMarks"),Y7e(Utt,"getMarks"),H(Vtt,"getInscriptions"),Y7e(Vtt,"getInscriptions"),H(qtt,"getWatermarks"),Y7e(qtt,"getWatermarks"),H(ztt,"getAlternateTitles"),Y7e(ztt,"getAlternateTitles"),H(Wtt,"getTitlesWithQualifier"),Y7e(Wtt,"getTitlesWithQualifier"),H(Gtt,"getGroupTitles"),Y7e(Gtt,"getGroupTitles"),H(Ktt,"getDescription$1"),Y7e(Ktt,"getDescription$1"),H(Ytt,"_getDisplayValue"),Y7e(Ytt,"_getDisplayValue"),H(Ztt,"_getDisplayValues"),Y7e(Ztt,"_getDisplayValues"),H(Xtt,"getObjectType"),Y7e(Xtt,"getObjectType"),H(Qtt,"getCopyrightStatement"),Y7e(Qtt,"getCopyrightStatement"),H(Jtt,"getRightsStatement"),Y7e(Jtt,"getRightsStatement"),H(ent,"getRightsStatementId$1"),Y7e(ent,"getRightsStatementId$1"),H(tnt,"getPlaceDepicted"),Y7e(tnt,"getPlaceDepicted"),H(nnt,"getPlaceFound"),Y7e(nnt,"getPlaceFound"),H(int,"getCreationDate"),Y7e(int,"getCreationDate"),H(rnt,"getCreationDateTimespan"),Y7e(rnt,"getCreationDateTimespan");const ant=["rightsstatements.org/vocab/NoC-NC/1.0/","rightsstatements.org/vocab/NoC-US/1.0/","creativecommons.org/publicdomain/zero/1.0/"],snt="open",ont="closed",lnt="mixed";function unt(e,t=ant){let n;for(let i of e)if(null!=i){if(i=i.split("://")[1],t.includes(i)&&n!=snt){n=null==n?snt:lnt;continue}if(0==t.includes(i)&&n!=ont){if(null==n){n=ont;continue}n=lnt}}return n}H(unt,"summarizeLicenses"),Y7e(unt,"summarizeLicenses");const cnt="http://iiif.io/api/presentation",dnt="subject_of",pnt="https://data.getty.edu/local/thesaurus/iiif-manifest-custom",hnt='application/ld+json;profile="http://iiif.io/api/presentation/2/context.json"',fnt='application/ld+json;profile="http://iiif.io/api/presentation/3/context.json"';function mnt(e,t=!1,n="en"){let i={},r=t?"rights":"license";return e[r]&&(i.license=e[r]),t?(e.requiredStatement&&(i.attribution=e.requiredStatement.value[n]),(e.items[0].height<=600||e.items[0].width<=600)&&(i.sizeRestricted=!0)):e.attribution&&(i.attribution=e.attribution),i}function gnt(e,t={}){return ynt(e,t).map((e=>e.url))}function ynt(e,t={}){return"excludeCustom"in t||(t.excludeCustom=!0),k9e(e,dnt).filter((e=>{if(!e.conforms_to||e.conforms_to[0].id!=cnt)return;const n=!!O9e(e,pnt).length;return n&&t.excludeCustom||t.format&&e.format!=t.format&&!n?void 0:e})).map((e=>({url:e.id,title:Stt(e),format:e.format,custom:!!O9e(e,pnt).length})))}function vnt(e,t=300,n=!1){var i,r,a,s,o;let l=n?"id":"@id";if(n){if(e.thumbnail&&null!=(i=e.thumbnail[0])&&i.service&&"ImageService3"==(null==(r=e.thumbnail[0].service[0])?void 0:r.type))return`${e.thumbnail[0].service[0].id}/full/!${t},${t}/0/default.jpg`;if(e.thumbnail&&null!=(a=e.thumbnail[0])&&a.id)return null==(s=e.thumbnail[0])?void 0:s.id;if(e.thumbnail&&"string"==typeof e.thumbnail)return e.thumbnail}else{if(null!=(o=e.thumbnail)&&o.service&&"http://iiif.io/api/image/2/context.json"==e.thumbnail.service["@context"])return`${e.thumbnail.service[l]}/full/!${t},${t}/0/default.jpg`;if(e.thumbnail&&e.thumbnail[l])return e.thumbnail[l];
102if(e.thumbnail&&"string"==typeof e.thumbnail)return e.thumbnail}return bnt(e,300,0,0,0,n)}function bnt(e,t=300,n=0,i=0,r=0,a=!1){var s,o,l;if(a){if(e.items[n].items&&e.items[n].items[i].items&&null!=(o=null==(s=e.items[n].items[i].items[0])?void 0:s.body)&&o.service)return`${e.items[n].items[i].items[0].body.service[r].id}/full/!${t},${t}/0/default.jpg`}else if(e.sequences&&e.sequences[n].canvases&&e.sequences[n].canvases[i].images&&null!=(l=e.sequences[n].canvases[i].images[r].resource)&&l.service)return`${e.sequences[n].canvases[i].images[r].resource.service["@id"]}/full/!${t},${t}/0/default.jpg`;return null}function _nt(e,t){let n=e.sequences[0],i=n.canvases[t];if(null==i)return;let r={label:i.label,sequence:0,canvasNumber:t};if(i.images&&null!=i.images[0]){let e=i.images[0];r.url=e.resource.service["@id"],wnt(r,e)}return wnt(r,i),wnt(r,n),wnt(r,e),r}function wnt(e,t){null==e.license&&null!=t.license&&(e.license=t.license),null==e.attribution&&null!=t.attribution&&(e.attribution=t.attribution)}function Snt(e,t){let n=new Set;n.add(e.license);for(let i=0;i<e.sequences[0].canvases.length;i++){let t=_nt(e,i);n.add(t.license)}return unt(n,t)}function Cnt(e,t="/image/"){let n=t;if(0==n.endsWith("/")&&(n+="/"),null==e||-1==e.indexOf(n))return;let i=e.substring(e.indexOf(n)+n.length);return i.indexOf("/")>-1&&(i=i.substring(0,i.indexOf("/"))),i}function knt(e){return q9e(k9e(e,X7e),_et.AIN)||[]}function xnt(e){if(null==e)return;let t=O9e(k9e(e,X7e),_et.PLACE_PREFERRED_TERM);return t.length<1?void 0:t[0].content}function Tnt(e){if(!e||!k9e(e,X7e).length)return;let t=Qet(e),n=V9e(t,_et.PREFERRED_TERM),i=Lnt(e);if(null==n&&i.length>0&&(n=i[0]),null==n){let e=[];t.forEach((t=>{null!=t.content&&e.push(t)})),n=vet(e)}return n}function Ent(e){const t=k9e(e,s9e);if(!(t.length<1))return t[0].id}function Ant(e){let t={},n=k9e(e,s9e),i=e;for(;n.length>0;)t[i.id]=Ent(i),i=n[0],n=k9e(i,s9e);return Object.values(t)}function Lnt(e){return q9e(k9e(e,X7e),_et.STREET_ADDRESSES)||[]}function Int(e,t="https://data.getty.edu/local/thesaurus/alt-text"){if(null!=e)return V9e(e.subject_of,t)}function $nt(e){if(null!=e)return V9e(e.subject_of,_et.DESCRIPTIVE_NOTE)}function Dnt(e,t="https://data.getty.edu/local/thesaurus/iiif-image"){return Pnt(e,t)}function Pnt(e,t){let n;return k9e(e,o9e).forEach((e=>{let i=O9e(e.access_point,t);i.length>0&&null==n&&i.forEach((e=>{n=e.id}))})),n}function Ont(e,t="https://data.getty.edu/local/thesaurus/clearance-level"){return null==e?[]:R9e(e.subject_to,t)}function Mnt(e,t="https://data.getty.edu/local/thesaurus/rightsstatement-org-statement"){if(null==e)return;let n=R9e(e.subject_to,t);return 1==n.length?n[0].id:void 0}H(mnt,"getManifestInformation"),Y7e(mnt,"getManifestInformation"),H(gnt,"getManifestUrls"),Y7e(gnt,"getManifestUrls"),H(ynt,"getManifestObjects"),Y7e(ynt,"getManifestObjects"),H(vnt,"getManifestThumb"),Y7e(vnt,"getManifestThumb"),H(bnt,"getIIIFImageWithSize"),Y7e(bnt,"getIIIFImageWithSize"),H(_nt,"getCanvasInfo"),Y7e(_nt,"getCanvasInfo"),H(wnt,"updateAttributionOrLicenseIfUnset"),Y7e(wnt,"updateAttributionOrLicenseIfUnset"),H(Snt,"getObjectRightsStatus"),Y7e(Snt,"getObjectRightsStatus"),H(Cnt,"extractImageUuid"),Y7e(Cnt,"extractImageUuid"),H(knt,"getAIN"),Y7e(knt,"getAIN"),H(xnt,"getLocationMessage"),Y7e(xnt,"getLocationMessage"),H(Tnt,"getName"),Y7e(Tnt,"getName"),H(Ent,"getParentID"),Y7e(Ent,"getParentID"),H(Ant,"getPlaceHierarchy"),Y7e(Ant,"getPlaceHierarchy"),H(Lnt,"getStreetAddress"),Y7e(Lnt,"getStreetAddress"),H(Int,"getAltText"),Y7e(Int,"getAltText"),H($nt,"getDescription"),Y7e($nt,"getDescription"),H(Dnt,"getIIIFImageId"),Y7e(Dnt,"getIIIFImageId"),H(Pnt,"getShownById"),Y7e(Pnt,"getShownById"),H(Ont,"getClearanceLevel"),Y7e(Ont,"getClearanceLevel"),H(Mnt,"getRightsStatementId"),Y7e(Mnt,"getRightsStatementId");const Rnt="identified_by";function Nnt(e){const t=Hnt(e,C7e.DOR_ID);if(t)return parseInt(t)}function Fnt(e){const t=Hnt(e,C7e.SLUG_ID);if(!t)return;let n=t.split("/");return n[n.length-1]}function Bnt(e){const t=Hnt(e,C7e.TMS_ID);if(t)return parseInt(t)}function Hnt(e,t){return N7e(e[Rnt],t)}function jnt(e){return null==e?[]:e.filter((e=>null!=e))}function Unt(e){if(null==e)return;return Object.entries({tms_id:Bnt(e),dor_id:Nnt(e)}).filter((([e,t])=>null!=t)).reduce(((e,[t,n])=>(e[t]=n,e)),{})}function Vnt(e){return!!ynt(e,{excludeCustom:!1}).find((e=>{if(1==e.custom)return e}))}
102function qnt(e,t=void 0,n=!1,i="m-technical-data",r="en"){if(null==e)return;const a=e._id?e._id:e.id;let s,o=Unt(e),l={};if(Object.keys(o).forEach((e=>{l[e]={name:String(o[e]),label:t?t(`${i}.${e}`):e,text:t?t(`${i}.${e}_text`):e}})),n){let n=ynt(e,{excludeCustom:!1});n.length>1&&n.forEach((e=>{let n=e.format==fnt?"manifest_url_v3":"manifest_url_v2";e.title=t?t(`m-technical-data.${n}`):n}));let i=3===f7e()?fnt:hnt,r=n.filter((e=>{if(0==e.custom&&e.format==i)return e}))[0];s={manifests:n,viewer_url:n7e(r.url)}}let u=new Date(e.last_updated),c="Invalid Date"==u?void 0:new Intl.DateTimeFormat(r,{year:"numeric",month:"long",day:"numeric"}).format(u);return{indexed_id:a,other_ids:l,iiif:s,sparql_api:znt(a),id_relationships:i7e(a),last_updated:c}}function znt(e){const t=e7e();let n=`PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>\n PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\n PREFIX la: <https://linked.art/ns/terms/>\n PREFIX aat: <http://vocab.getty.edu/aat/>\n PREFIX getty: <http://data.getty.edu/local/>\n \n SELECT * WHERE {\n <${e}> ?pred ?obj\n }`;return n=encodeURIComponent(n),`${t}sparql-ui#query=${n}`}function Wnt(e){const t=E7e(e,"thumbnail");if(0!=t.length)return Cnt(t[0]["@id"]||t[0].id)}function Gnt(e){return Array.isArray(e)?e.map((e=>e&&"object"==typeof e?Gnt(e):e)).filter((e=>!(null==e||null==e))):Object.entries(e).map((([e,t])=>[e,t&&"object"==typeof t?Gnt(t):t])).reduce(((e,[t,n])=>(null==n||null==n||(e[t]=n),e)),{})}H(Nnt,"getDORID"),H(Fnt,"getSlugID"),H(Bnt,"getTMSID"),H(Hnt,"_getID"),H(jnt,"filterUndefined"),H(Unt,"getOtherIds"),H(Vnt,"containsCustomManifest"),H(qnt,"getTechnicalMetadataFields"),H(znt,"getSparqlUIUrl"),H(Wnt,"getManifestThumbnail"),H(Gnt,"removeEmpty");const Knt={HumanMadeObject:"object",Group:"group",PropositionalObject:"exhibition",Person:"person",Place:"gallery"};function Ynt(e,t,n){if(tit(e)){let t="HumanMadeObject";return"group"!=e.name&&"person"!=e.name||(t="Actor"),void eit(e,n,t)}n()}function Znt(e){return V(this,null,(function*(){return G1e.getIndexedIdFromRoute(e,hYe.getBaseUrlForIdManager(),C7e.ID_MANAGER_TARGET_GENERATOR,void 0,void 0)}))}function Xnt(e){const t=e.id;if(null==t)return;const n=Qnt(t),i=e.id_manager_slug;return{name:n,params:{slug:i},state:{indexedId:t,slug:i}}}function Qnt(e){return e.split("/")[0]}function Jnt(e){const t=Fnt(e);if(null==t)return;return"/"+Knt[e.type]+"/"+t}function eit(e,t,n){return V(this,null,(function*(){let i=e.params.slug,r=Z6e("/")+"api/redirect?lodType="+n;if(i.startsWith("tms:")){r=r+"&id="+i.replace("tms:","")+"&type=tms"}else if(i.startsWith("dor:")){r=r+"&id="+i.replace("dor:","")+"&type=dor"}const a=yield YYe.axiosGet(r),s=a.data.id,o=Qnt(s),l=G1e.getSlugFromSlugWithPath(a.data.slug_with_path);t({name:o,params:{slug:l},state:{indexedId:s,slug:l}})}))}function tit(e){const t=e.params.slug;return!(!t.startsWith("tms:")&&!t.startsWith("dor:"))}H(Ynt,"checkForAndHandleTmsDorRedirect"),H(Znt,"getIndexedIdFromRoute"),H(Xnt,"getRouterToFromIndexedObject"),H(Qnt,"getRouteNameFromIndexedId"),H(Jnt,"getSlugWithPath"),H(eit,"handleTmsAndDorReroute"),H(tit,"isTmsOrDorId");const nit=G1e.localCatch,iit=Hd({history:qc("/art/collection/"),scrollBehavior(e,t,n){var i;return n&&"pastExhibitions"!=e.name?new Promise(((e,t)=>{setTimeout((()=>{e(n)}),500)})):e.hash&&null!=_7e(e.hash)?{selector:_7e(e.hash),behavior:ite()?"auto":"smooth"}:t.path==e.path||"search"==e.name&&"search"==t.name&&null==(null==(i=null==e?void 0:e.state)?void 0:i.scrollToTop)?void 0:{left:0,top:0}},routes:[{path:"/",component:H((()=>Fu((()=>import("./layout-base-DTJb7rks.js")),__vite__mapDeps([0,1,2,3,4])).catch(nit)),"component"),children:[{path:"/",name:"home",component:H((()=>Fu((()=>import("./home-layout-Cd_YQFDs.js")),__vite__mapDeps([5,1,6,7])).catch(nit)),"component")},{path:"/exhibition",component:H((()=>Fu((()=>import("./with-object-page-layout-wmU-_wEA.js")),__vite__mapDeps([8,9,10,11,12,13])).catch(nit)),"component"),children:[{path:":slug",name:"exhibition",component:H((()=>Fu((()=>import("./index-BZqCu_Tw.js")),__vite__mapDeps([14,15,2,3,16,17,18,19,20,21,22,23,24,25,26])).catch(nit)),"component")}]},{path:"/past-exhibitions",name:"pastExhibitions",component:H((()=>Fu((()=>import("./index-CnDmV6c7.js")),__vite__mapDeps([27,19,20,21,22,23,24,28])).catch(nit)),"component"),beforeEnter:H(((e,t,n)=>{n()}),"beforeEnter")},{path:"/galleries",name:"galleries",component:H((()=>Fu((()=>import("./index-Bfe-Aosf.js")),__vite__mapDeps([29,19,30])).catch(nit)),"component"),beforeEnter:H(((e,t,n)=>{n()}),"beforeEnter")},{path:"/imageRequest",name:"imageRequest",beforeEnter:H(((e,t,n)=>{window.history.state.completedEula&&(e.state={completedEula:window.history.state.completedEula}),n()}),"beforeEnter"),component:H((()=>Fu((()=>import("./image-request-BmEn7LoK.js")),__vite__mapDeps([31,32,33,34,35,22,19,25,20,21,23,24,36])).catch(nit)),"component")},{path:"/legal",name:"legal",component:H((()=>Fu((()=>import("./index-Vyu63xEx.js")),__vite__mapDeps([37,33,32,38])).catch(nit)),"component")},{path:"/thankYou",name:"thank-you",component:H((()=>Fu((()=>
102import("./index-BwfCfvU6.js")),__vite__mapDeps([39,33,40])).catch(nit)),"component")},{path:"/search",name:"search",props:!0,component:H((()=>Fu((()=>import("./search-Bcwf92En.js")),__vite__mapDeps([41,2,3,9,10,1,6,25,22,42])).catch(nit)),"component"),beforeEnter:H(((e,t,n)=>V(void 0,null,(function*(){try{yield y7e(e,n)}catch(tvt){console.error("URL Preparation Failed: ",tvt),n(t)}}))),"beforeEnter")},{path:"/object",component:H((()=>Fu((()=>import("./with-object-page-layout-wmU-_wEA.js")),__vite__mapDeps([8,9,10,11,12,13])).catch(nit)),"component"),beforeEnter:H(((e,t,n)=>{Ynt(e,0,n)}),"beforeEnter"),children:[{path:":slug",name:"object",component:H((()=>Fu((()=>import("./index-BSBUt7jc.js")),__vite__mapDeps([43,2,3,44,19,45,25,22,46,47,1,34,35,20,21,23,24,48])).catch(nit)),"component"),beforeEnter:H(((e,t,n)=>{n()}),"beforeEnter")}]},{path:"/group",component:H((()=>Fu((()=>import("./with-object-page-layout-wmU-_wEA.js")),__vite__mapDeps([8,9,10,11,12,13])).catch(nit)),"component"),props:!0,beforeEnter:H(((e,t,n)=>{Ynt(e,0,n)}),"beforeEnter"),children:[{path:":slug",name:"group",component:H((()=>Fu((()=>import("./index-0_phhfI9.js")),__vite__mapDeps([49,44,19,45,15,2,3,16,17,18,35,22,24,23,25,50])).catch(nit)),"component"),beforeEnter:H(((e,t,n)=>{n()}),"beforeEnter")}]},{path:"/person",component:H((()=>Fu((()=>import("./with-object-page-layout-wmU-_wEA.js")),__vite__mapDeps([8,9,10,11,12,13])).catch(nit)),"component"),props:!0,beforeEnter:H(((e,t,n)=>{Ynt(e,0,n)}),"beforeEnter"),children:[{path:":slug",name:"person",component:H((()=>Fu((()=>import("./index-0_phhfI9.js")),__vite__mapDeps([49,44,19,45,15,2,3,16,17,18,35,22,24,23,25,50])).catch(nit)),"component"),beforeEnter:H(((e,t,n)=>{n()}),"beforeEnter")}]},{path:"/gallery",component:H((()=>Fu((()=>import("./with-object-page-layout-wmU-_wEA.js")),__vite__mapDeps([8,9,10,11,12,13])).catch(nit)),"component"),children:[{path:":slug",name:"gallery",component:H((()=>Fu((()=>import("./index-BbwKI0FO.js")),__vite__mapDeps([51,1,46,47,15,2,3,16,21,22,23,25,52])).catch(nit)),"component")}]}]},{path:"/:pathMatch(.*)*",component:H((()=>Fu((()=>import("./layout-base-DTJb7rks.js")),__vite__mapDeps([0,1,2,3,4])).catch(nit)),"component"),children:[{path:"",name:"error",component:H((()=>Fu((()=>import("./index-dIT-EYDc.js")),__vite__mapDeps([11,12])).catch(nit)),"component")}]}]});iit.onError(((e,t)=>G1e.onError(e,t)));const rit={"a-guiautocomplete":{group:"(Group)",keyword:"(Keyword)",person:"(Person)",placeholder:"Enter keyword, artist, title, or museum number",title:"(Title)"},"a-download-menu":{permission_statement_text:"This image is available for free download and may be used for any purpose under Gettyâs [Open Content Program](https://www.getty.edu/projects/open-content-program/). Get answers to [Frequently Asked Questions](https://www.getty.edu/projects/open-content-program/faqs/)."},application_nav:{applicationName:"Museum Collection",altApplicationName:"Getty Exhibitions",about:"About",about_aria:"App About",help:"Help",help_aria:"App Help",home:"Home",home_aria:"App Home",search:"Search",search_aria:"App Search",feedback:"Feedback",feedback_aria:"App Feedback"},help:{page_title:"Help"},error:{page_title:"Page not found",links:{search:"Search the collection",search_aria:"Search the collection",home:"Return to the homepage",home_aria:"Return to the homepage",contact:"Contact us",contact_aria:"Contact us"}},museum_header:{title:"The J. Paul Getty Museum",exhibitions:"Exhibitions & Installations",collection:"Collection",education:{education:"Education",adult:"Adult Learners",college:"College Faculty and Students",teachers:"K-12 Teachers and Students",kids:"Kids and Families",teens:"Teens",community:"Community Groups",museum_educators:"Museum Educators",about:"About the Education Department"},research:"Research & Conservation",publications:"Publications",programs:{programs:"Public Programs",courses:"Courses and Demonstrations",talks:"Talks",performances:"Performances and Films",tours:"Tours",highlights:"Highlights of Past Programs"},about:"About the Museum"},museum_footer:{events:"Event Calendar",education:"Museum Education",library:"Library",newsletters:"e-Newsletters",press:"Press Room",the_trust:"The J. Paul Getty Trust",trust:"J. Paul Getty Trust",privacy:"Privacy Policy",terms:"Terms of Use",trademarks:"Trademarks",contact:"Contact Us"},copy_right_and_usage:{heading:"Content disclaimer & usage rights"},collection_online_footer:{source:"This information is published from the Museum's collection database. Updates and additions stemming from research and imaging activities are ongoing, with new content added each week.",comment:"Help us improve our records by sharing your corrections or suggestions.",rights:"Every effort has been made to accurately determine the rights status of works and their images. Please contact Museum Rights and Reproductions if you have further information on the rights status of a work contrary, or in addition to, the information in our records."},item_footer:{cc_license_text:"The text on this page is licensed under a {link}, unless otherwise noted. Images and other media are excluded.",cc_license:"Creative
102Commons Attribution 4.0 International License",iiif_text:"The content on this page is available according to the {iiif_link} specifications. You may view this object in {mirador_link} â a IIIF-compatible viewer â by clicking on the IIIF icon below the main image, or by dragging the icon into an open IIIF viewer window.",iiif_link:"International Image Interoperability Framework (IIIF)",mirador_link:"Mirador"},departments:{"department-titles":{antiquities:"Antiquities",drawings:"Drawings",manuscripts:"Manuscripts",paintings:"Paintings",photographs:"Photographs",sculpture:"Sculpture & <br> Decorative Arts"},header:"Collecting Areas"},homepage:{search_heading:"Search the Museum Collection",page_title:"Home",title:"Museum Collection",home_meta_title:"Museum Collection {'|'} Getty",title_template:"%s {'|'} Museum Collection {'|'} Getty",metadata_title:"Museum Collection Getty Museum",metadata_description:"The collection of the J. Paul Getty Museum comprises Greek, Roman, and Etruscan art from the Neolithic to Late Antiquity; European art from the Middle Ages to the early twentieth century; and international photography from its inception to the present day.",collection_policy_heading:"Collection Policy",collection_policy_text:"The Getty Museum seeks to foster a greater appreciation and understanding of art by collecting and preserving, exhibiting, and interpreting works of art. Our collection is the principal means by which the Museumâs mission is fulfilled, and the Museum is therefore committed to further developing the collection according to the highest ethical standards and in compliance with all applicable laws.",collection_policy_link:"Read full policy",deaccessioning_link:"Deaccessioning"},suggested_search_list:{heading:"Discover:","1600_drawings_search":"Drawings from the 1600s",flowers_search:"Images of Flowers",spanish_paintings_search:"Spanish Paintings",marble_search:"Works in Marble"},stickybox:{artists:"{name} and {number} more"},explore_links:{heading:"More ways to explore the collection",visit:"Visit the Getty's two museums",exhibitions:"Explore our Exhibitions",about:"Learn more about the Museum"},actor_page:{Person:"Person",Group:"Group",created_works:"Created Works",owned_works:"Owned Works",created_works_aria:"A list of the works created by this artist",created_works_subheading:"Artworks this person or group created. Their role in the creation is listed below the title of each work.",owned_works_aria:"A list of the works previously owned by this person or group",owned_works_subheading:"Artworks this person or group owned at some point according to the provenance records.",related_actors_heading:"Related Artists",related_actors_count:"{count} artist | {count} artists",related_objects_heading:"Explore Related",related_works:"Related Works",related_exhibitions_aria:"A list of related exhibitions to this person or group",related_exhibitions_count:"{count} exhibition | {count} exhibitions",related_exhibitions_heading:"Exhibitions",related_videos_aria:"A list of related videos to this person or group",related_videos_count:"{count} video | {count} videos",related_videos_heading:"Videos",related_video_link:"Watch on {source}",ulan_link:"Union List of Artist Names",note:"Data provided by {link}",bc:"B.C.",born:"born",died:"died"},department_pages:{antiquities:"Antiquities",drawings:"Drawings",manuscripts:"Manuscripts",meta_title:"{title} {'|'} The J. Paul Getty Museum",paintings:"Paintings",photographs:"Photographs",sculpture:"Sculpture & Decorative Arts"},err:{not_found:"Object Not found"},exhibition_page:{curator:"Curator",dates:"Dates",exhibition_details:"Exhibition Details",current_exhibition:"This exhibition is currently on view",curators:"Curator(s):",department_info_prefix:"For more information about this exhibition contact the ",department_info_conjunction:" or ",department_info_multi_conjunction:", ",department_info:"[{deptName}]({url}) department: [{email}](mailto:{email})",exhibition:"Exhibition",exhibition_link:"Explore the exhibition",exhibition_venue:"Exhibition Venue: ",future_exhibition:"This is a future exhibition",getty_objects:"Getty Objects",getty_objects_with_total:"Getty Objects ({total})",exhibited_works:"From the Getty Museum",gri_exhibited_works:"From the Getty Research Institute",related_resources:{label:"Resources",news_and_stories:"News and Stories",external:"External Links",other:"Other",exhibition_documentation:"Exhibition Documentation"},loan_link:"Link",past_exhibition:"This is a past exhibition",pavilion:"Pavilion",results_aria_heading:"A list of the objects that were part of this exhibition",metadata_title:"Getty Exhibitions"},"o-exhibition-venues":{venues:"Venue(s)",venue_selector_heading_aria:"A list of venues for this exhibition"},exhibitions_page:{back_to_top:"Back to top",page_title:"Past Exhibitions",page_subtitle:"Browse exhibitions from the Center and the Villa as far back as 1974",current_exhibitions:"View Current Exhibitions",select_year:"Jump to year",CENTER:"Getty Center",VILLA:"Getty Villa",OTHER:"Other"},galleries_page:{East:"East Pavilion",Exhibitions:"Museum Exhibitions Pavilion",floor0_label:"Terrace Level",floor1_label:"Plaza Level",floor2_label:"Upper Level",main_building:"Main Building",North:"North Pavilion",Other:"Other Galleries",other:"Other Galleries",page_subtitle:"A full list of galleries at both the Getty Center and the Getty Villa.",page_title:"Getty Galleries",South:"South Pavilion",subheadingEast:"Art from 1600-1800",subheadingExhibitions:"Special Exhibitions",subheadingOther:"Unique and exterior space
102s",subheading_main_building:"Antiquities from Greece, Rome, and the ancient Mediterranean world",subheading_other:"Unique and exterior spaces",subheadingNorth:"Art before 1700",subheadingSouth:"Art from 1600-1800",subheadingWest:"Art after 1800",tab_center:"Getty Center",tab_alt_center:"Getty Center",tab_villa:"Getty Villa",tab_alt_villa:"Getty Villa",West:"West Pavilion"},gallery_metadata:{floor:"Floor",room:"Room",results:"On view in this Gallery"},gallery_page:{about:"About this Gallery",current_exhibitions:"Current Exhibition",exhibition_link:"Explore the exhibition",gallery_map:"Gallery Map",galleries_grid_heading:"Galleries ({total})",related_galleries_heading:"Explore Related",aria_heading:"A list of the objects that are in this Gallery"},human_made_object:{curatorial_essay:"Curatorial Essay"},"m-parts-of-set":{heading:"Parts of the {title}",manuscript_heading:"More from {title}",manuscript_parts_aria:"A list of all of the parts of this manuscript",parts_aria:"A list of all of the parts of this object",browse_all:"Browse all",related:{part_heading:"Additional Parts of this Artwork",object_heading:"Additional Parts of this Artwork",whole_heading:"Additional Parts of this Artwork",group_heading:"Additional Parts of this Group"}},object_metadata:{title:"Title",artist:"Artist/Maker",culture:"Culture",dynasty:"Dynasty",reign:"Reign",place:"Place",date:"Date",medium:"Medium",object_number:"Object Number",dimensions:"Dimensions",copyright:"Copyright",credit_line:"Credit Line",signatures:"Signature(s)",marks:"Mark(s)",inscriptions:"Inscription(s)",watermarks:"Watermark(s)",alternate_titles:"Alternate Titles",previous_attribution:"Previous Attribution",department:"Department",classification:"Classification",object_type:"Object Type",alternate_numbers:"Alternate Numbers",alt_object_number:"{number} (Object Number)",alt_manuscript_number:"{number} (Manuscript Number)",exhibition_title:"{title} (Exhibition Title)",group_title:"{title} (Group Title)",alt_title:"{title} (Alternate Title)",display_title:"{title} (Display Title)",translated_title:"{title} (Translated Title)",parts_of_object:"Part(s) of this Object",parts_of_group:"Part(s) of this Group",place_created_qual:"(Place Created)",place_found_qual:"(Place Found)",place_depicted_qual:"(Place Depicted)",published_title:"{title} (Published Title)",subject_tags:"Subject Tags",fragment_links:{part_link:"{name} ({object_number})",view_all:"View all {number} parts",object_heading:"artwork",part_heading:"artwork",whole_heading:"artwork",group_heading:"group"}},object_page:{deaccessioned_alert_title:"Deaccessioned Object:",deaccessioned_alert_content:"The information below reflects the knowledge available at the time of deaccession and does not include later research findings about the object. [Learn More](/museum/deaccessioning)",deaccessioned_image_caption:"For reference only. High-resolution image not available.",deaccession_statement_heading:"Deaccessioned",object_number_deaccession_prefix:"Formerly",about_this_artwork:"About this Artwork",on_view:"On view at ",hide_menu:"Close the Copyright and Download Menu",show_menu:"Open the Copyright and Download Menu",not_on_view:"Not currently on view",and:" and ",send_feedback:"Email Feedback",alternate_views:"Alternate Views ({total})",alternate_views_aria:"A list of alternate views of the object",pagination_overflow:"Page {currentPage} of {total}",alternate_overflow:"Views {currentView} - {lastView} of {totalCanvases}",object_details:"Full Artwork Details",download_image_button:"Download image ({size})",dropdown_button_aria:"Button group with nested dropdown menu",dropdown_menu_aria:"Dropdown menu contents",order_image:"Order this image",part_of:"Part of",image_copyright:"Image: {statement}",COPYRIGHT_UNIDENTIFIABLE:"In Copyright - Rights-holder(s) unlocatable or unidentifiable",IN_COPYRIGHT_UNIDENTIFIABLE:"In Copyright - Rights-holder(s) unlocatable or unidentifiable",UNDETERMINED:"Copyright Undetermined",COPYRIGHT_UNDETERMINED:"Copyright Undetermined",IN_COPYRIGHT:"In Copyright",NO_COPYRIGHT:"No Copyright - United States",NOT_EVALUATED:"Copyright not evaluated",ZERO:"Public Domain"},image_dropdown:{study_resolution:"Presentation/study",highest_resolution:"Highest Resolution",large_resolution:"Large Image",ariaResolution:"Download {resolution}",ariaDownloadLink:"Download link for {resolution} image",ariaIiif:"Draggable link for IIIF manifest",open_content_link:"Link to open content publishing form",open_content_faq_link:"Link to open content frequently asked questions page",open_content_info_link:"Link to open content information page",caption_header:"Caption information",download:"Download image",download_header:"More downloads",download_info_open_content:"This image is available for free download and may be used for any purpose under Getty's",download_info_faqs:"Get answers to",open_content_link_text:"Open Content Program",open_content_faq_text:"Frequently Asked Questions",open_content_header:"Permission",publication_use_pre:"If you're reproducing this image in a publication, please ",publication_use_link_text:"provide us with details",publication_use_post:" to help us maintain our bibliography.",publication_use_header:"Publication use",iiif_viewer:"Open in comparison viewer"},related_search_results:{heading:"{heading} ({total})",browse_all:"Browse all",browse_all_cta:"Browse all {searchLabel}",load_more:"Load More",load_more_with_total:"Load More Artwork | Load {total} More Artwork | Load {total} More Artworks",object_count:"{count} object | {count} objects"},education_resources:{title:"Education Resource",subjects:"Subjects",grades:"Grades",format:"Format"},person_metadata:{dates:"Dates",ulanDates:"Dates",roles:"Role(s)",nationality:"Nationality",ulanNationality:"Nationality",born:"Born",ulanBorn:"Born",died:"Died",ulanDied:"Died",resources:"Resources",ulanNames:"Names",allNamesLink:"View full list"},more:"See more",less:"See less",feedback:{collection_feedback:"Collection Feedback (Getty Museum)",value:"We value your feedback! Please let us know how
102we can improve the Museum Collection Pages.",org:"Organization Name",email_example:"[email protected]",feedback_type:"I have a (select one)",feedback_type_options:{problem:"Problem",question:"Question",suggestion:"Suggestion",comment:"Comment"},your_feedback:"Your feedback",describe:"Please describe your issue.",cancel:"Cancel",submit:"Submit"},forms:{check_all:"(check all that apply - at least 1 selection is required)",errors:{confirmed:"Fields must match",email:"Must enter a valid email address",required:"This field is required"},labels:{artist:"Artist",accession:"Accession number",city:"City",company:"Company/Organization",country:"Country",dropdown_other:"Specify Other",email:"Email",email_confirm:"Confirm email",fax:"Fax",first:"First Name",last:"Last Name",phone:"Phone",postalcode:"Zip/Postal code",requester_status:"Requester's Status",specify_other:"Specify Other",state:"State/Province",street:"Street/PO Box",title:"Title"},dropdown_opts:{dr:"Dr.",mr:"Mr.",mrs:"Mrs.",ms:"Ms",other:"Other (explain below)",prof:"Prof",requester_status:"Requester's Status",requester_status_private:"Private individual",requester_status_non_profit:"Not-for-profit organization",requester_status_for_profit:"For-profit company",requester_status_other:"Specify Status",select:"Select"},placeholders:{email:"[email protected]"},required:"Required fields are marked with an asterisk",submit:"Submit"},search:{heading:"Museum Collection Search",no_terms_note:"When no search terms have been specified, you may explore and browse through a randomly ordered selection of objects with images from the Getty Museum's collection. <a href='/search?from=0&size=18&view=grid'>Click here to see all objects...</a>",viewing:"Viewing {start} - {end} of {total} results",pages:" | (1 page) | ({pages} pages)",pages_mobile:"Page {currentPage} of {pages}",no_results_error:"No records could be found for the specified search parameters. Please consider modifying your search.",missing_image:"No image available",out_of_range_error:"Error: Page requested out of range",results_aria_heading:"List of search results",loading_aria_heading:"Loading",metatag_description:"Explore the collection of the J. Paul Getty Museum at the Getty Center and the Getty Villa.",suggested_searches:{no_results_heading:"There are no results for {search}.",no_results_heading_no_query_terms:"There are no results for your search.",blank_search_heading:"Explore over 110,000 works in our collections by using the search bar and filters above.",subheading:"Not sure where to begin? Start by browsing the suggested categories below.",on_view:"On View",outdoor_sculpture:"Outdoor Sculpture",getty_owned:"Owned by J. Paul Getty",clocks:"Clocks",lions:"Lions",portraits:"Portraits"}},search_options:{label:"Search Options",exact:"Exact?",is_parent:"Only Objects that are part of groups",open_content:"Only Open Content Program",can_download:"Available for Download",nazi_era_restitution:"Has Nazi Era Restitution",has_provenance:"Has Provenance",nazi_era_gaps:"Has Nazi Era Gaps",show_parts:"Show Parts",center:"On View at The Getty Center",villa:"O
102n View at The Getty Villa",on_view:"On View",images:"Has Images",reset_button:"Reset",search_button:"Search",additional_filters:"Additional Filters",sort_order:"Sort Order",sort:{random:"Random",relevance:"Relevance",artist_asc:"â Maker/Artist Name",artist_desc:"â Maker/Artist Name",title_asc:"â Title",title_desc:"â Title",date_asc:"â Date",date_desc:"â Date",obj_num_asc:"â Museum Object Number",obj_num_desc:"â Museum Object Number"}},advanced:{artist:{label:"Maker/Artist Name",placeholder:"Optional maker/artist..."},"primary_name--text":{label:"Title",placeholder:"Optional title keywords..."},materials:{label:"Medium/Materials",placeholder:"Optional medium/materials..."},materials_parsed:{label:"Medium/Materials",placeholder:"Optional medium/materials..."},culture:{label:"Culture/Country",placeholder:"Optional culture/country..."},object_number:{label:"Object Number",placeholder:"Optional object number..."},department:{label:"Department",placeholder:"Optional department...",clear_button:"Clear",terms:{antiquities:"Antiquities",drawings:"Drawings",manuscripts:"Manuscripts",paintings:"Paintings",photographs:"Photographs",sculpture___decorative_arts:"Sculpture & Decorative Arts"}},related_producer_ids:{label:"Related Producers",placeholder:"Optional related producer..."},provenance:{owner:{id:{label:"Provenance Owners",placeholder:"Optional provenance owner..."}}},q:{label:"General Keywords",placeholder:"Optional keywords..."}},metadata_tag:{end_of_title:"{title} (Getty Museum)",site_name:"{title} The J. Paul Getty Museum in Los Angeles",keys:"Getty Museum collections, artworks, art works, art history, video, interpretation of art, acquisitions, artists, Getty art, collections Getty, collezioni Getty, colecciones Getty, Sammlung Getty, Getty exhibits, Getty current exhibitions, Getty Museum exhibits, los angeles collections, antiquities, decorative arts, sculpture, manuscripts, photography, paintings, drawings",yes:"yes",no:"no",end_of_field_value:"; ",open_parentheses:" (",close_parentheses:")",date_separator:" - ",field_value_separator:", "},search_results_title:{punctuation:{comma:",",quote:"'"},default_conjunction:" and ",default:"Search all",prefix:{keyword:"Search for keyword: ",no_keyword:"All records "},filter_pieces:{basic:"matching ",boolean:", showing only those records "},"collection-online":{boolean:{on_view:"on View",images:"with Images",open_content:"in the Open Content Program",can_download:"Available for Download",center:"on View at The Getty Center",villa:"on View at The Getty Villa",nazi_era_restitution:"has Nazi Era Restitution",has_provenance:"has Provenance",nazi_era_gaps:"has Nazi Era Gaps",is_standalone:"has Parts",known_producers:"has Known Producers",include_deaccessioned:"include Deaccessioned",is_deaccessioned:"Deaccessioned"},facet:{artist:{prefix:"Maker/Artist Name: ",conjunction:" or ",unknown:"Unknown artist/maker"},title:{prefix:"Title: ",conjunction:" or "},"primary_name--text":{prefix:"Title: ",conjunction:" or "},material:{prefix:"Medium/Materials: ",conjunction:" or "},parsed_material:{prefix:"Medium/Materials: ",conjunction:" or "},culture:{prefix:"Culture/Country: ",conjunction:" or "},number:{prefix:"Object Number: ",conjunction:" or "},date_range:{prefix:"Creation Date: ",conjunction:"or"},object_type:{prefix:"Object Type: ",conjunction:" or "},owners:{prefix:"Previous Owners: ",conjunction:" or "},related_producers:{prefix:"Related Producers: ",conjunction:" or "},id:{prefix:"Record Id: ",conjunction:" or "},current_location_id:{prefix:"Current Location: ",conjunction:" or "},member_of_exhibition_id:{prefix:"Current Location: ",conjunction:" or "},classification:{prefix:"Classification: ",conjunction:" or "},parent_id:{prefix:"Part of: ",conjunction:" or "},empty_field:{prefix:"Empty Field: ",conjunction:"or"}}}},exhibition:{location_time:"{venue}, {timespan}",title:"{title} ({timespan})"},"shared_search-bar":{advanced_search:"Advanced Search","num-results":"Showing {start} - {end} of {totalHits} results"},metaTagHelpers:{department:"{department} (Curatorial Department)"},feedbackEmail:{subject_with_item:"Museum Collection Feedback: {name} ({type} {'|'} {slug})",subject:"Museum Collection Feedback",extra:" name: {name}\n type: {type}\n slug: {slug}
102\n",body:"Thank you for your feedback. Please describe your question, suggestion, problem, or comment below.\n\nIf you would like a response, please provide your name and a valid email:\n\n\n{bodyExtra}______________________________________________________________\n url: {url}\n browser: {userAgent}"},loans:{heading:"Loan Objects ({count})"},legal:{page_title:"Terms and Conditions",agree_to_terms:"I Have Read and Agree to the Terms of Use Applicable to My Request",order_image_info_heading:"Ordering and Reproducing Images from the J. Paul Getty Museum's Collection",order_image_info_publication:"Reproduction in Print or Digital Media",order_image_info_study:"Study, Reference, or Lecture Only (no reproduction without further permission from the Getty Museum)",order_image_publication_heading:"Terms of Use Governing Reproduction of Getty Material for the J. Paul Getty Museum",order_image_study_heading:"Terms of Use for Study, Reference, or Lecture Images for Personal Use (No reproduction without further written permission from the J. Paul Getty Museum.)",submit_button:"Submit"},thankYou:{page_title:"Thank You"},image_request_forms:{image_download_heading:"Getty Open Content: Image Download",image_download_form_description:"Please provide the following information about how you intend to use this image so that we may continue to improve access to our content.",order_image_info_select:"Please select the Terms based on your intended use",page_title_publication:"Publication Request",page_title_study:"Study Request",page_title:"Image Request",publication_form:{exporter_subject:{publication:"(OTI) Permissions and Requests for Images-Print and Electronic {'|'} {name}",study:"(OTI) Permissions and Requests for Images--Study {'|'} {name}"},electronic_other:"Other Electronic: {description}",print_other:"Other Print: {description}",additional_info:"Any additional information you wish to provide",caption_description:"Thank you for your interest in the Getty's collections. The caption information for this image is as follows:",collected_information:"This information is published from the Museum's collection database. Updates and additions stemming from research and imaging activities are ongoing, with new content added each week.",request_another:"Request another image",request_permission_heading:"Request for Permission"},study_form:{agree_to_terms_form:"I certify that the above information is true and correct, and that I agree to the Terms of Use for Study, Reference, or Lecture Images for Personal Use",images_requested:"Image(s) Requested",request_permission_heading:"Request for Study, Reference, or Lecture Images for Personal Use"},open_content_form:{heading:"Getty Open Content: Image Download"}},image_and_caption:{cartouches_list_aria:"A list of indicators related to this search result",has_multi_images:"Has multiple images",has_parts:"Has Parts",part_of:"Part of: {parent}",previous_role:"Artist, Previous attribution",role:"Role: {roles}",deaccessioned:"Deaccessioned"},exhibition_list:{ariaHeading:"A list of the exhibitions and their locations of this artwork",locations_aria_heading:"A list of the locations of this exhibition"},provenance_list:{ariaHeading:"A list of the sales of this artwork",citation:"Source: {citation}",location:"({location})",lugt_number:"({lugt_number})",remarks:"Note: {remarks}",sale_note:"[{sale_note}]",noteHeading:"Provenance Remarks:",place_found:"Found: {place}"},human_made_object_tabs:{ariaPanelLabel:"a tab group to provide access to detailed provenance, bibliography, and exhibition data",ariaPanelSelectionLabel:"choose a tab to view",heading:"History of this Artwork",provenanceVizualizationText:"View this artwork on the Museum's Provenance Timeline Vizualization",deaccessionNotice:"The information below reflects the knowledge available at the time of deaccession and does not include later research findings about the object.",deaccessionLinkText:"Read our deaccessioning policy",tab:{bibliography:{label:"Bibliography",tooltip:"A list of published sources featuring this work of art."},exhibitions:{label:"Exhibitions",tooltip:"Public displays of this artwork, including locations and dates, when known."},provenance:{label:"Provenance",tooltip:"The chronological history of the ownership and locations of a work of art. [Learn more about how we research, record, and publish provenance](https://www.getty.edu/museum/provenance/)."}}},bibliography_list:{ariaHeading:"A list of bibliographic references for this artwork"},artwork_history:{heading:"Timeline of Events"},image_carousel:{ariaHeading:"A list of alternate images for this artwork"},related_items:{aria_heading:"a list of related objects"},recommended_artwork:{aria_heading:"A list of more works from the collection",heading:"More from the Collection"},similar_search_results:{heading:"Similar Artworks Search Results",no_results:"No results found.",time:"Search query completed in: {time}",toggle_label:"Show similar artworks search results (internal development use only)"},read_more:{more:"show more"},related_media:{title:"Related Media"},vr_selector:{title:"3D Scans ({size})",aria_heading:"A list of VR files (grouped by title, then language) showing this object"},artist_and_title:{fragmentPartsPrefix:"View ",fragmentPartsLink:"{totalParts} Parts | {totalParts} Part | {totalParts}
102 Parts",fullRecordDetails:"View full record details",moreArtistsSubtitle:"and {totalArtists} moreâ¦"},object:{heading:"Object Page",timelineHeading:"Object Timeline",timelineAbout:"The timeline combines data from the object details, provenance and exhibition history to present a visualization of the life of the object. ",timelineAboutMore:"Find out more",timelineActionTip:"Tap anywhere to expand"},imageRequestFormStatus:{processing:"Processing your request...",error:"There was an error processing your request",error_open_content:"There was an error processing your request. Please return to the image and try your request again or contact [email protected] for assistance."},requestForm:JSON.parse('{"heading_requester_information":"Requester Information","heading_images_requested":"Image(s) Requested - limit 30","heading_image_specifications":"Image Specifications *","heading_intended_use":"Intended Use(s) for Requested Image(s) *","one_item_required":"(check all that apply - at least 1 selection is required)","requester":{"source":{"TITLE":{"label":"Title","placeholder":"Select Title","options":{"mr":"Mr.","mrs":"Mrs.","ms":"Ms.","prof":"Prof.","dr":"Dr."}},"FIRSTNAME":{"label":"First name","validation-messages":{"required":"Please enter your first name."}},"LASTNAME":{"label":"Last name","validation-messages":{"required":"Please enter your last name."}},"COMPANY":{"label":"Company/Organization"},"EMAIL":{"label":"Email address","validation-messages":{"required":"Please enter your email.","email":"Please enter your email."}},"EMAIL_confirm":{"label":"Verify email address","validation-messages":{"confirm":"Please check that your email matches."}},"ADDRESSLINE1":{"label":"Street/PO Box","validation-messages":{"required":"Please enter your address."}},"CITY":{"label":"City","validation-messages":{"required":"Please enter your city."}},"STATE":{"label":"State/Province","validation-messages":{"required":"Please enter your state or province."}},"POSTALCODE":{"label":"Zip/Postal code","validation-messages":{"required":"Please enter your zip/postal code."}},"COUNTRY":{"label":"Country","placeholder":"Select a country","options":{"united_states_of_america":"United States of America","afghanistan":"Afghanistan","aland_islands":"Ã
land Islands","albania":"Albania","algeria":"Algeria","american_samoa":"American Samoa","andorra":"Andorra","angola":"Angola","anguilla":"Anguilla","antarctica":"Antarctica","antigua_and_barbuda":"Antigua and Barbuda","argentina":"Argentina","armenia":"Armenia","aruba":"Aruba","australia":"Australia","austria":"Austria","azerbaijan":"Azerbaijan","bahamas":"Bahamas","bahrain":"Bahrain","bangladesh":"Bangladesh","barbados":"Barbados","belarus":"Belarus","belgium":"Belgium","belize":"Belize","benin":"Benin","bermuda":"Bermuda","bhutan":"Bhutan","bolivia__plurinational_state_of":"Bolivia, Plurinational State of","bonaire__sint_eustatius_and_saba":"Bonaire, Sint Eustatius and Saba","bosnia_and_herzegovina":"Bosnia and Herzegovina","botswana":"Botswana","bouvet_island":"Bouvet Island","brazil":"Brazil","british_indian_ocean_territory":"British Indian Ocean Territory","brunei_darussalam":"Brunei Darussalam","bulgaria":"Bulgaria","burkina_faso":"Burkina Faso","burundi":"Burundi","cambodia":"Cambodia","cameroon":"Cameroon","canada":"Canada","cabo_verde":"Cabo Verde","cayman_islands":"Cayman Islands","central_african_republic":"Central African Republic","chad":"Chad","chile":"Chile","china":"China","christmas_island":"Christmas Island","cocos__keeling__islands":"Cocos (Keeling) Islands","colombia":"Colombia","comoros":"Comoros","congo":"Congo","congo__democratic_republic_of_the":"Congo, Democratic Republic of the","cook_islands":"Cook Islands","costa_rica":"Costa Rica","cote_d_ivoire":"Côte d\'Ivoire","croatia":"Croatia","cuba":"Cuba","curaçao":"Curaçao","cyprus":"Cyprus","czechia":"Czechia","denmark":"Denmark","djibouti":"Djibouti","dominica":"Dominica","dominican_republic":"Dominican Republic","ecuador":"Ecuador","egypt":"Egypt","el_salvador":"El Salvador","equatorial_guinea":"Equatorial Guinea","eritrea":"Eritrea","estonia":"Estonia","ethiopia":"Ethiopia","falkland_islands__malvinas":"Falkland Islands (Malvinas)","faroe_islands":"Faroe Islands","fiji":"Fiji","finland":"Finland","france":"France","french_guiana":"French Guiana","french_polynesia":"French Polynesia","french_southern_territories":"French Southern Territories","gabon":"Gabon","gambia":"Gambia","georgia":"Georgia","germany":"Germany","ghana":"Ghana","gibraltar":"Gibraltar","greece":"Greece","greenland":"Greenland","grenada":"Grenada","guadeloupe":"Guadeloupe","guam"
102:"Guam","guatemala":"Guatemala","guernsey":"Guernsey","guinea":"Guinea","guinea_bissau":"Guinea-Bissau","guyana":"Guyana","haiti":"Haiti","heard_island_and_mcdonald_islands":"Heard Island and McDonald Islands","holy_see":"Holy See","honduras":"Honduras","hong_kong":"Hong Kong","hungary":"Hungary","iceland":"Iceland","india":"India","indonesia":"Indonesia","iran__islamic_republic_of":"Iran, Islamic Republic of","iraq":"Iraq","ireland":"Ireland","isle_of_man":"Isle of Man","israel":"Israel","italy":"Italy","jamaica":"Jamaica","japan":"Japan","jersey":"Jersey","jordan":"Jordan","kazakhstan":"Kazakhstan","kenya":"Kenya","kiribati":"Kiribati","korea__democratic_people_s_republic_of":"Korea, Democratic People\'s Republic of","korea__republic_of":"Korea, Republic of","kosovo":"Kosovo","kuwait":"Kuwait","kyrgyzstan":"Kyrgyzstan","lao_people_s_democratic_republic":"Lao People\'s Democratic Republic","latvia":"Latvia","lebanon":"Lebanon","lesotho":"Lesotho","liberia":"Liberia","libya":"Libya","liechtenstein":"Liechtenstein","lithuania":"Lithuania","luxembourg":"Luxembourg","macao":"Macao","north_macedonia":"North Macedonia","madagascar":"Madagascar","malawi":"Malawi","malaysia":"Malaysia","maldives":"Maldives","mali":"Mali","malta":"Malta","marshall_islands":"Marshall Islands","martinique":"Martinique","mauritania":"Mauritania","mauritius":"Mauritius","mayotte":"Mayotte","mexico":"Mexico","micronesia__federated_states_of":"Micronesia, Federated States of","moldova__republic_of":"Moldova, Republic of","monaco":"Monaco","mongolia":"Mongolia","montenegro":"Montenegro","montserrat":"Montserrat","morocco":"Morocco","mozambique":"Mozambique","myanmar":"Myanmar","namibia":"Namibia","nauru":"Nauru","nepal":"Nepal","netherlands":"Netherlands","new_caledonia":"New Caledonia","new_zealand":"New Zealand","nicaragua":"Nicaragua","niger":"Niger","nigeria":"Nigeria","niue":"Niue","norfolk_island":"Norfolk Island","northern_mariana_islands":"Northern Mariana Islands","norway":"Norway","oman":"Oman","pakistan":"Pakistan","palau":"Palau","palestine__state_of":"Palestine, State of","panama":"Panama","papua_new_guinea":"Papua New Guinea","paraguay":"Paraguay","peru":"Peru","philippines":"Philippines","pitcairn":"Pitcairn","poland":"Poland","portugal":"Portugal","puerto_rico":"Puerto Rico","qatar":"Qatar","réunion":"Réunion","romania":"Romania","russian_federation":"Russian Federation","rwanda":"Rwanda","saint_barthélemy":"Saint Barthélemy","saint_helena__ascension_and_tristan_da_cunha":"Saint Helena, Ascension and Tristan da Cunha","saint_kitts_and_nevis":"Saint Kitts and Nevis","saint_lucia":"Saint Lucia","saint_martin__french_part":"Saint Martin (French part)","saint_pierre_and_miquelon":"Saint Pierre and Miquelon","saint_vincent_and_the_grenadines":"Saint Vincent and the Grenadines","samoa":"Samoa","san_marino":"San Marino","sao_tome_and_principe":"Sao Tome and Principe","saudi_arabia":"Saudi Arabia","senegal":"Senegal","serbia":"Serbia","seychelles":"Seychelles","sierra_leone":"Sierra Leone","singapore":"Singapore","sint_maarten__dutch_part":"Sint Maarten (Dutch part)","slovakia":"Slovakia","slovenia":"Slovenia","solomon_islands":"Solomon Islands","somalia":"Somalia","south_africa":"South Africa","south_georgia_and_the_south_sandwich_islands":"South Georgia and the South Sandwich Islands","south_sudan":"South Sudan","spain":"Spain","sri_lanka":"Sri Lanka","sudan":"Sudan","suriname":"Suriname","svalbard_and_jan_mayen":"Svalbard and Jan Mayen","eswatini":"Eswatini","sweden":"Sweden","switzerland":"Switzerland","syrian_arab_republic":"Syrian Arab Republic","taiwan__province_of_china":"Taiwan, Province of China","tajikistan":"Tajikistan","tanzania__united_republic_of":"Tanzania, United Republic of","thailand":"Thailand","togo":"Togo","tokelau":"Tokelau","tonga":"Tonga","trinidad_and_tobago":"Trinidad and Tobago","tunisia":"Tunisia","turkey":"Turkey","turkmenistan":"Turkmenistan","turks_and_caicos_islands":"Turks and Caicos Islands","tuvalu":"Tuvalu","uganda":"Uganda","ukraine":"Ukraine","united_arab_emirates":"United Arab Emirates","united_kingdom_of_great_britain_and_northern_ireland":"United Kingdom of Great Britain and Northern Ireland","united_states_minor_outlying_islands":"United States Minor Outlying Islands","uruguay":"Uruguay","uzbekistan":"Uzbekistan","vanuatu":"Vanuatu","venezuela__bolivarian_republic_of":"Venezuela, Bolivarian Republic of","viet_nam":"Viet Nam","virgin_islands__british":"Virgin Islands, British","virgin_islands__u_s":"Virgin Islands, U.S.","wallis_and_futuna":"Wallis and Futuna","western_sahara":"Western Sahara","yemen":"Yemen","zambia":"Zambia","zimbabwe":"Zimbabwe"}},"PHONE":{"label":"Phone","validation-messages":{"required":"Please enter your telephone number."}},"FAX":{"label":"Fax"},"STATUSCD":{"label":"Requester\'s Status","placeholder":"Select status","options":{"10":"Not-for-profit organization","20":"For-profit company","30":"Private individual","99":"Other (explain)"}},"STATUSDESCRIPTION":{"help":"Explain other status","validation-messages":{"required":"Please explain other status."}}}},"images":{"items":{"add-label":"Request another image","validation-messages":{"required":"Please request at least one image."}}},".author":{"label":"Artist","validation-messages":{"required":"Please enter the artist\'s name."}},".title":{"label":"Title","validation-messages":{"required":"Please enter the title."}},".tmsAccessionNumber":{"label":"Accession number","validation-messages":{"required":"Please enter the accession number."}},"imagespecs":{"items":{"label":"Standard files provided are 300 ppi TIFF files for offset printing and 72 ppi JPEG low compression files for web and other electronic uses. All images will be in color unless photography is only available in black and white. Digital files may not be reduced by more than 60%. If a reduction of 60% or more is required, another smaller image must be requested. Images may not be enlarged. Rush handling is not available for all digital files.","validation-messages":{"imageSpecs":"Please select at least one print or electronic file size."}},"otherFormat":{"placeholder":"Explain other size","validation-messages":{"required":"Please explain other size."}}},"imageSpecificationsPrintOptions":{"label":"Print","options":{"Print:1000:TIFF":"1000x1000 TIFF (approx. 3-1/3 in. (8.5 cm) on the longest side)","Print:2000:TIFF":"2000x2000 TIFF (approx. 6-2/3 in. (17 cm) on the longest side)","Print:3000:TIFF":"3000x3000 TIFF (approx. 10 in. (25 cm) on the longest side)","Print:4000:TIFF":"4000x4000 TIFF (approx. 13-1/3 in. (33.5 cm) on the longest side)"}},"imageSpecificationsElectronicOptions":{"label":"Electronic","options":{"Electronic:640h:JPEG":"Medium JPEG for Web use: 640 on the longest side","Electronic:800h:JPEG":"Large JPEG for Web use: 800 on the longest side","Electronic:1000h:JPEG":"Other JPEG electronic use: 1000 on the longest side","Electronic:2000h:JPEG":"Other JPEG electronic use: 2000 on the longest side","Electronic:Other":"Other JPEG"}}
102,"publicationsItems":{"validation-messages":{"intendedUse":"Please select at least one intended print or electronic use."}},"intendedUsePrintOptions":{"items":{"label":"Print Publication","options":{"3201:3331":"Conference proceedings","3201:3326":"Exhibition catalogue","3201:3334":"Exhibition loan printed materials","3201:3335":"Gallery graphics","3201:3337":"Monograph","3201:3312":"Scholarly article/dissertations","3201:3339":"Textbook","3201:3317":"Other"}}},"publications":{"otherPrintDescription":{"placeholder":"Explain other use","validation-messages":{"required":"Please explain other use."}},"otherElectronicDescription":{"placeholder":"Explain other use","validation-messages":{"required":"Please explain other use."}}},"intendedUseElectronicOptions":{"label":"Electronic Media/Television/Film/Video","options":{"3209:3323":"Electronic book or journal","3209:3332":"DVD interactive/video","3209:3325":"Documentary film","3209:3313":"Television program","3209:3315":"Web site","3209:3347":"Streaming video","3209:3317":"Other"}},"intendedUse":{"source":{"USE1TITLE":{"label":"Title of Publication/Production/Exhibition","validation-messages":{"required":"Please enter the title of production."}},"USE1ARTICLE":{"label":"Article"},"USE1AUTHOR":{"label":"Author/Curator","validation-messages":{"required":"Please enter the author/curator."}},"USE1EDITOR":{"label":"Editor"},"USE1PUBLISHER":{"label":"Publisher/Producer/Venue","validation-messages":{"required":"Please enter your producer/publisher."}},"USE1EDITIONS":{"label":"Editions/Distribution"},"USE1TERM":{"label":"Term (if applicable)"},"USE1PLACEMENT":{"placeholder":"Select placement","label":"Image placement (Print use only)","options":{"Inside":"Inside","Cover":"Cover","Other":"Other (explain)"}},"USE1PUBLICATIONDATE":{"label":"Expected date of publication/release/exhibition","validation-messages":{"required":"Please enter your expected date of publication, opening, or release."}},"USE1PRINTRUN":{"label":"Print run/Number of copies","validation-messages":{"required":"Please enter the print run/no. of copies."}},"USE1URL":{"label":"URL (Web requests only)"},"USE1NOTES":{"label":"Any additional information you wish to provide"}},"language":{"label":"Languages","validation-messages":{"required":"Please enter your languages."}},"other":{"placeholder":"Explain other placement","validation-messages":{"required":"Please explain other image placement."}}},"print-checkbox":{"label":"I certify that the above information is true and correct, and that I agree to the Terms of Use for Study, Reference, or Lecture Images for Personal Use","validation-messages":{"accepted":"Please Certify That The Above Information Is True And Correct."}}}'),object_citation:{copy_button:"Copy citation to the clipboard",copy_to_clipboard:"Copy to clipboard",copy_button_copied:"Copied",prompt:"Thank you for your interest in the Getty's collections. The caption information for this image is as follows:",conjunction:"and",et_al:"et al."},"o-facet-explorer":{view_results:"View {count} results",description_aria:"List of Search Filters",filter_results:"Filter your {count} results",mobile_results:"{count} results",overlay_header:"Filters ({count})",filters_button:"Filters",a11y_heading:"Mobile Search Menu",toggle:{add_count:"{tab} ({count})",decade_range:"Creation Date",date_range:"Creation Dates",producers:{"primary_name--text":"Artist"},artist:"Artists",classification_and_object_type:"Object Types",materials:"Medium",parent_id:"Part of",materials_parsed:"Mediums",culture:"Cultures",object_type:"Object Type"},datePanel:{apply_dates:"Apply Dates",apply_dates_aria:"Apply Dates",dates_min:"From",dates_max:"To",date_range:"Include objects without dates",xAxisLabel:"Decade Created",yAxisLabel:"Number of Items",ariaGraphDescription:"This graph shows the distribution of records per year for the search results.",ariaTableDescription:"This table shows the number of records that are associated with each year within the search results",title:"Graph of Items In Search results Grouped by Decade Created",validation_max_value:"Date is too late",validation_min_value:"Date is too early",validation_number:"Must be a number",validation_required:"Field is required"},textPanel:{clear_button_phrase:"Clear",placeholder:"Filter by",clear_aria_label:"Clear",search_aria_label:"Search",apply_filters:"Apply Filters",aria_apply:"Apply Filters",facet_more_text:"There are no {fieldName} entries that match your query | There are more {fieldName} entries than we can display, enter or refine a filter to see more | There are more {fieldName} entries than we can display, enter or refine a filter to see more",producers:{"primary_name--text":"artists"},search_box_label:{artist:"Type to filter artist results",classification_and_object_type:"Type to filter object type results",culture:"Type to filter culture results",materials_parsed:"Type to filter medium results"},search_button_phrase:"Filtered Search",search_button_phrase_artist:"Filter by artists",search_button_phrase_classification_and_object_type:"Filter by object types",search_button_phrase_culture:"Filter by cultures",search_button_phrase_materials_parsed:"Filter by mediums",search_input_aria_label:{artist:"Artists Filter",classification_and_object_type:"Object Types Filter",culture:"Cultures Filter",materials_parsed:"Mediums Filter"},artist:"artist | artists",object_type:"object types",classification_and_object_type:"object type | object types",culture:"culture | cultures",materials:"mediums",materials_parsed:"medium | mediums"},loadingPanel:{message:"Loading {field} . . ."}},"m-facet-group":{artist:"Select Artists:",materials_parsed:"Select Mediums:",culture:"Select Cultures:",classification_and_object_type:"Select Object Type:"}
102,"a-facet-item":{center:"On View at The Getty Center",villa:"On View at The Getty Villa",open_content:"Open Content",can_download:"Available for Download",digitized_items:"Has Digitized Items",images:"Has Images",on_view:"On View",is_standalone:"Exclude Object or Group Parts",date_range:"Include objects without dates"},"a-chip":{clear_button:"Clear",qualifiers:{producers:{"primary_name--text":"Artist"},empty_field:"Objects without Dates",materials:"Medium",materials_parsed:"Medium",culture:"Culture",classification_and_object_type:"Object Type",parent_id:"Part of",classification:"Classification",department:"Department",object_type:"Object Type",date_range:"Date Range","primary_name--text":"Title",provenance:{owner:{id:"Owner"}},id:"Title",related_producer_ids:"Producer",current_location_id:"Current Location",member_of_exhibition_id:"Exhibition",object_number:"Accession Number",associated_program:"Getty Program"},terms:{center:"On View at The Getty Center",villa:"On View at The Getty Villa",open_content:"Open Content",can_download:"Available for Download",not_downloadable:"Cannot Download",permission_required:"Permission Required",images:"Has Images",nazi_era_restitution:"Has Nazi Era Restitution",nazi_era_gaps:"Has Nazi Era Gaps",has_provenance:"Has Provenance",on_view:"On View",is_standalone:"Exclude Object or Group Parts",date_range:"Creation Date",empty_field:"Objects without Dates",include_deaccessioned:"Include Deaccessioned",is_deaccessioned:"Deaccessioned",include_other_owners:"Include GRI Objects"}},overview:{title:"What's in the Museum Collection?",subheading:"See how the collection is distributed",overviewDescription:"Explore the Collection",viewLabel:"Group by:",type:"Type","1300s-1500s":"1300s â 1500s","1600s":"1600s","1700s":"1700s","1800s":"1800s","1900s":"1900s","2000-present":"2000âpresent","acquisition-method":"Method of Acquisition",africa:"Africa",antarctica:"Antarctica",antiquities:"Antiquities",asia:"Asia","bce-1300":"BCE 6000â1300","bce-6000â1300":"BCE 6000â1300",department:"Department",drawings:"Drawings",era:"Era",europe:"Europe","free-image-use":"Free to use","getty-center":"Getty Center","getty-villa":"Getty Villa",gift:"Gift","image-use":"Image use","known-artist":"Known vs. Unknown Artists",known:"Known",location:"Location",manuscripts:"Manuscripts",north_america:"North America",oceania:"Oceania","on-loan":"On loan",online:"Online",other:"Other",paintings:"Paintings",photographs:"Photographs","place-created":"Place Created",purchase:"Purchase","restricted-image-use":"Permission required",sculpture:"Sculpture & Decorative Arts",south_america:"South America",unknown:"Unknown"},date:{bce_date:"{date} BCE"},artist:{unknown:"Unknown artist/maker",unknown_short:"Unknown"},mediaSelector:{languagesExtra:"({count} languages available)"},"m-technical-data":{id_relationships_label:"Related IDs",id_relationships_link:"Internal Identifier Relationships",id_relationships_text:"The ID management system records relationships between identifiers across Getty's systems and resources",iiif_label:"IIIF",iiif_text:"The International Image Interoperability Framework, or IIIF, is an open standard for delivering high-quality, attributed digital objects online at scale. Visit [iiif.io](https://iiif.io) to learn more.",manifest_url_v2:"Manifest URL (v2)",manifest_url_v3:"Manifest URL (v3)",manifest_url_label:"Manifest URL",mirador_link:"Open in comparison viewer",aria_iiif:"Draggable link for IIIF manifest",indexed_id_label:"API URL",indexed_id_text:"The entity identifier in the [Museum Collection API](https://data.getty.edu/museum/collection/docs/)",sparql_api_link:"Open in Query Builder",sparql_api_label:"SPARQL API",sparql_api_text:"The SPARQL API provides an endpoint and interface for constructing graph queries of the Museum Collection Linked Open Data",technical_data_heading:"APIs & other identifiers",technical_data_subheading:"The reference information listed below is intended for those who work with the Getty's data.",tms_id:"TMS ID",tms_id_text:"The identifier in the Museumâs internal collection management system",dor_id:"DOR ID",dor_id_text:"The identifier in the Museumâs legacy internal digital object repository",permalink:"Permalink",permalink_text:"The permanent url for this page in Gettyâs Collection Online",last_updated:"Last updated:",last_updated_text:"*This date refers to the last time the primary JSON-LD document that contains information on this record has changed.*"},"a-media-selector":{audio:{title:"Audio ({size})",aria_heading:"A list of audio files (grouped by title, then language) about this object"},video:{title:"Video ({size})",aria_heading:"A list of video files (grouped by title, then language) about this object"}},"m-filter-bar":{filters:{include_deaccessioned:"Include Deaccessioned",can_download:"Available for Download"}},"m-image-and-caption":{has_parts:"Has Parts"},rightsStatements:{COPYRIGHT_UNIDENTIFIABLE:"In Copyright - Rights-holder(s) unlocatable or unidentifiable",IN_COPYRIGHT_UNIDENTIFIABLE:"In Copyright - Rights-holder(s) unlocatable or unidentifiable",UNDETERMINED:"Copyright Undetermined",COPYRIGHT_UNDETERMINED:"Copyright Undetermined",IN_COPYRIGHT:"In Copyright",NO_COPYRIGHT:"No Copyright - United States",NOT_EVALUATED:"Copyright not evaluated",ZERO:"Public Domain"}};var ait,sit={exports:{}};function oit(){return ait||(ait=1,function(e,t){var n="__lodash_hash_undefined__",i=9007199254740991,r="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",o="[object GeneratorFunction]",l="[object Null]",u="[object Object]",c="[object Proxy]",d="[object Undef
102ined]",p=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,f={};f["[object Float32Array]"]=f["[object Float64Array]"]=f["[object Int8Array]"]=f["[object Int16Array]"]=f["[object Int32Array]"]=f["[object Uint8Array]"]=f["[object Uint8ClampedArray]"]=f["[object Uint16Array]"]=f["[object Uint32Array]"]=!0,f[r]=f["[object Array]"]=f["[object ArrayBuffer]"]=f["[object Boolean]"]=f["[object DataView]"]=f["[object Date]"]=f["[object Error]"]=f[s]=f["[object Map]"]=f["[object Number]"]=f[u]=f["[object RegExp]"]=f["[object Set]"]=f["[object String]"]=f["[object WeakMap]"]=!1;var m="object"==typeof cv&&cv&&cv.Object===Object&&cv,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),v=t&&!t.nodeType&&t,b=v&&e&&!e.nodeType&&e,_=b&&b.exports===v,w=_&&m.process,S=function(){try{var e=b&&b.require&&b.require("util").types;return e||w&&w.binding&&w.binding("util")}catch(tvt){}}(),C=S&&S.isTypedArray;function k(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 x(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function T(e){return function(t){return e(t)}}function E(e,t){return null==e?void 0:e[t]}function A(e,t){return function(n){return e(t(n))}}H(k,"apply"),H(x,"baseTimes"),H(T,"baseUnary"),H(E,"getValue"),H(A,"overArg");var L,I=Array.prototype,$=Function.prototype,D=Object.prototype,P=y["__core-js_shared__"],O=$.toString,M=D.hasOwnProperty,R=(L=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"",N=D.toString,F=O.call(Object),B=RegExp("^"+O.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=_?y.Buffer:void 0,U=y.Symbol,V=y.Uint8Array;j&&j.allocUnsafe;var q=A(Object.getPrototypeOf,Object),z=Object.create,W=D.propertyIsEnumerable,G=I.splice,K=U?U.toStringTag:void 0,Y=function(){try{var e=Ye(Object,"defineProperty");return e({},"",{}),e}catch(tvt){}}(),Z=j?j.isBuffer:void 0,X=Math.max,Q=Date.now,J=Ye(y,"Map"),ee=Ye(Object,"create"),te=function(){function e(){}return H(e,"object"),function(t){if(!vt(t))return{};if(z)return z(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ie(){this.__data__=ee?ee(null):{},this.size=0}function re(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function ae(e){var t=this.__data__;if(ee){var i=t[e];return i===n?void 0:i}return M.call(t,e)?t[e]:void 0}function se(e){var t=this.__data__;return ee?void 0!==t[e]:M.call(t,e)}function oe(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=ee&&void 0===t?n:t,this}function le(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ue(){this.__data__=[],this.size=0}function ce(e){var t=this.__data__,n=Le(t,e);return!(n<0)&&(n==t.length-1?t.pop():G.call(t,n,1),--this.size,!0)}function de(e){var t=this.__data__,n=Le(t,e);return n<0?void 0:t[n][1]}function pe(e){return Le(this.__data__,e)>-1}function he(e,t){var n=this.__data__,i=Le(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function me(){this.size=0,this.__data__={hash:new ne,map:new(J||le),string:new ne}}function ge(e){var t=Ke(this,e).delete(e);return this.size-=t?1:0,t}function ye(e){return Ke(this,e).get(e)}function ve(e){return Ke(this,e).has(e)}function be(e,t){var n=Ke(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}function _e(e){var t=this.__data__=new le(e);this.size=t.size}function we(){this.__data__=new le,this.size=0}function Se(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ce(e){return this.__data__.get(e)}function ke(e){return this.__data__.has(e)}function xe(e,t){var n=this.__data__;if(n instanceof le){var i=n.__data__;if(!J||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new fe(i)}return n.set(e,t),this.size=n.size,this}function Te(e,t){var n=pt(e),i=!n&&dt(e),r=!n&&!i&&mt(e),a=!n&&!i&&!r&&wt(e),s=n||i||r||a,o=s?x(e.length,String):[],l=o.length;for(var u in e)s&&("length"==u||r&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Qe(u,l))||o.push(u);return o}function Ee(e,t,n){(void 0!==n&&!ct(e[t],n)||void 0===n&&!(t in e))&&Ie(e,t,n)}function Ae(e,t,n){var i=e[t];M.call(e,t)&&ct(i,n)&&(void 0!==n||t in e)||Ie(e,t,n)}function Le(e,t){for(var n=e.length;n--;)if(ct(e[n][0],t))return n;return-1}
102function Ie(e,t,n){"__proto__"==t&&Y?Y(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}H(ne,"Hash"),H(ie,"hashClear"),H(re,"hashDelete"),H(ae,"hashGet"),H(se,"hashHas"),H(oe,"hashSet"),ne.prototype.clear=ie,ne.prototype.delete=re,ne.prototype.get=ae,ne.prototype.has=se,ne.prototype.set=oe,H(le,"ListCache"),H(ue,"listCacheClear"),H(ce,"listCacheDelete"),H(de,"listCacheGet"),H(pe,"listCacheHas"),H(he,"listCacheSet"),le.prototype.clear=ue,le.prototype.delete=ce,le.prototype.get=de,le.prototype.has=pe,le.prototype.set=he,H(fe,"MapCache"),H(me,"mapCacheClear"),H(ge,"mapCacheDelete"),H(ye,"mapCacheGet"),H(ve,"mapCacheHas"),H(be,"mapCacheSet"),fe.prototype.clear=me,fe.prototype.delete=ge,fe.prototype.get=ye,fe.prototype.has=ve,fe.prototype.set=be,H(_e,"Stack"),H(we,"stackClear"),H(Se,"stackDelete"),H(Ce,"stackGet"),H(ke,"stackHas"),H(xe,"stackSet"),_e.prototype.clear=we,_e.prototype.delete=Se,_e.prototype.get=Ce,_e.prototype.has=ke,_e.prototype.set=xe,H(Te,"arrayLikeKeys"),H(Ee,"assignMergeValue"),H(Ae,"assignValue"),H(Le,"assocIndexOf"),H(Ie,"baseAssignValue");var $e=Ge();function De(e){return null==e?void 0===e?d:l:K&&K in Object(e)?Ze(e):rt(e)}function Pe(e){return bt(e)&&De(e)==r}function Oe(e){return!(!vt(e)||tt(e))&&(gt(e)?B:p).test(ut(e))}function Me(e){return bt(e)&&yt(e.length)&&!!f[De(e)]}function Re(e){if(!vt(e))return it(e);var t=nt(e),n=[];for(var i in e)("constructor"!=i||!t&&M.call(e,i))&&n.push(i);return n}function Ne(e,t,n,i,r){e!==t&&$e(t,(function(a,s){if(r||(r=new _e),vt(a))Fe(e,t,s,n,Ne,i,r);else{var o=i?i(st(e,s),a,s+"",e,t,r):void 0;void 0===o&&(o=a),Ee(e,s,o)}}),Ct)}function Fe(e,t,n,i,r,a,s){var o=st(e,n),l=st(t,n),u=s.get(l);if(u)Ee(e,n,u);else{var c=a?a(o,l,n+"",e,t,s):void 0,d=void 0===c;if(d){var p=pt(l),h=!p&&mt(l),f=!p&&!h&&wt(l);c=l,p||h||f?pt(o)?c=o:ft(o)?c=qe(o):h?(d=!1,c=je(l)):f?(d=!1,c=Ve(l)):c=[]:_t(l)||dt(l)?(c=o,dt(o)?c=St(o):vt(o)&&!gt(o)||(c=Xe(l))):d=!1}d&&(s.set(l,c),r(c,l,i,a,s),s.delete(l)),Ee(e,n,c)}}function Be(e,t){return ot(at(e,t,Tt),e+"")}H(De,"baseGetTag"),H(Pe,"baseIsArguments"),H(Oe,"baseIsNative"),H(Me,"baseIsTypedArray"),H(Re,"baseKeysIn"),H(Ne,"baseMerge"),H(Fe,"baseMergeDeep"),H(Be,"baseRest");var He=Y?function(e,t){return Y(e,"toString",{configurable:!0,enumerable:!1,value:xt(t),writable:!0})}:Tt;function je(e,t){return e.slice()}function Ue(e){var t=new e.constructor(e.byteLength);return new V(t).set(new V(e)),t}function Ve(e,t){var n=Ue(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}function qe(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}function ze(e,t,n,i){var r=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var o=t[a],l=void 0;void 0===l&&(l=e[o]),r?Ie(n,o,l):Ae(n,o,l)}return n}function We(e){return Be((function(t,n){var i=-1,r=n.length,a=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(r--,a):void 0,s&&Je(n[0],n[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++i<r;){var o=n[i];o&&e(t,o,i,a)}return t}))}function Ge(e){return function(e,t,n){for(var i=-1,r=Object(e),a=n(e),s=a.length;s--;){var o=a[++i];if(!1===t(r[o],o,r))break}return e}}function Ke(e,t){var n=e.__data__;return et(t)?n["string"==typeof t?"string":"hash"]:n.map}function Ye(e,t){var n=E(e,t);return Oe(n)?n:void 0}function Ze(e){var t=M.call(e,K),n=e[K];try{e[K]=void 0;var i=!0}catch(tvt){}var r=N.call(e);return i&&(t?e[K]=n:delete e[K]),r}function Xe(e){return"function"!=typeof e.constructor||nt(e)?{}:te(q(e))}function Qe(e,t){var n=typeof e;return!!(t=null==t?i:t)&&("number"==n||"symbol"!=n&&h.test(e))&&e>-1&&e%1==0&&e<t}function Je(e,t,n){if(!vt(n))return!1;var i=typeof t;return!!("number"==i?ht(n)&&Qe(t,n.length):"string"==i&&t in n)&&ct(n[t],e)}function et(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function tt(e){return!!R&&R in e}function nt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||D)}function it(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}function rt(e){return N.call(e)}function at(e,t,n){return t=X(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,a=X(i.length-t,0),s=Array(a);++r<a;)s[r]=i[t+r];r=-1;for(var o=Array(t+1);++r<t;)o[r]=i[r];return o[t]=n(s),k(e,this,o)}}function st(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}H(je,"cloneBuffer"),H(Ue,"cloneArrayBuffer"),H(Ve,"cloneTypedArray"),H(qe,"copyArray"),H(ze,"copyObject"),H(We,"createAssigner"),H(Ge,"createBaseFor"),H(Ke,"getMapData"),H(Ye,"getNative"),H(Ze,"getRawTag"),H(Xe,"initCloneObject"),H(Qe,"isIndex"),H(Je,"isIterateeCall"),H(et,"isKeyable"),H(tt,"isMasked"),H(nt,"isPrototype"),H(it,"nativeKeysIn"),H(rt,"objectToString"),H(at,"overRest"),H(st,"safeGet");var ot=lt(He);function lt(e){var t=0,n=0;return function(){var i=Q(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ut(e){if(null!=e){try{return O.call(e)}catch(tvt){}try{return e+""}catch(tvt){}}return""}function ct(e,t){return e===t||e!=e&&t!=t}H(lt,"shortOut"),H(ut,"toSource"),H(ct,"eq");var dt=Pe(function(){return arguments}())?Pe:function(e){return bt(e)&&M.call(e,"callee")&&!W.call(e,"callee")},pt=Array.isArray;function ht(e){return null!=e&&yt(e.length)&&!gt(e)}function ft(e){return bt(e)&&ht(e)}H(ht,"isArrayLike"),H(ft,"isArrayLikeObject");var mt=Z||Et;function gt(e){if(!vt(e))return!1;var t=De(e);return t==s||t==o||t==a||t==c}function yt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function vt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function bt(e){return null!=e&&"object"==typeof e}function _t(e){if(!bt(e)||De(e)!=u)return!1;var t=q(e);if(null===t)return!0;var n=M.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&O.call(n)==F}H(gt,"isFunction"),H(yt,"isLength"),H(vt,"isObject"),H(bt,"isObjectLike"),H(_t,"isPlainObject");var wt=C?T(C):Me;function St(e){return ze(e,Ct(e))}function Ct(e){return ht(e)?Te(e):Re(e)}H(St,"toPlainObject"),H(Ct,"keysIn");var kt=We((function(e,t,n){Ne(e,t,n)}));function xt(e){return function(){return e}}function Tt(e){return e}function Et(){return!1}H(xt,"constant"),H(Tt,"identity"),H(Et,"stubFalse"),e.exports=kt}(sit,sit.exports)),sit.exports}H(oit,"requireLodash_merge");const lit=dv(oit());var uit,cit={};function dit(){return uit||(uit=1,(()=>{var e,t,n,i,r,a,s,o,l,u,c,d,p,h,f,m,g,y,v,b,_,w,S,C,k,x,T,E,A,L,I,$,D,P,O,M,N,F,B,j,U,q,z,G=Object.create,K=Object.defineProperty,Y=Object.defineProperties,Z=Object.getOwnPropertyDescriptor,X=Object.getOwnPropertyDescriptors,Q=Object.getOwnPropertyNames,J=Object.getOwnPropertySymbols,ee=Object.getPrototypeOf,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,ie=H(((e,t,n)=>t in e?K(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n),"dh"),re=H(((e,t)=>{for(var n in t||(t={}))te.call(t,n)&&ie(e,n,t[n]);if(J)for(var n of J(t))ne.call(t,n)&&ie(e,n,t[n]);return e}),"R"),ae=H(((e,t)=>Y(e,X(t))),"D"),se=H((e=>
102K(e,"__esModule",{value:!0})),"ag"),oe=H(((e,t)=>{var n={};for(var i in e)te.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&J)for(var i of J(e))t.indexOf(i)<0&&ne.call(e,i)&&(n[i]=e[i]);return n}),"me"),le=H(((e,t)=>()=>(e&&(t=e(e=0)),t)),"ph"),ue=H(((e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports)),"Ar"),ce=H(((e,t)=>{for(var n in t)K(e,n,{get:t[n],enumerable:!0})}),"Ab"),de=H(((e,t,n,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of Q(t))!te.call(e,r)&&(n||"default"!==r)&&K(e,r,{get:H((()=>t[r]),"get"),enumerable:!(i=Z(t,r))||i.enumerable});return e}),"lg"),pe=H(((e,t)=>de(se(K(null!=e?G(ee(e)):{},"default",!t&&e&&e.__esModule?{get:H((()=>e.default),"get"),enumerable:!0}:{value:e,enumerable:!0})),e)),"Xi"),he=(e=>(t,n)=>e&&e.get(t)||(n=de(se({}),t,1),e&&e.set(t,n),n))("undefined"!=typeof WeakMap?new WeakMap:0),fe=H(((e,t,n)=>(ie(e,"symbol"!=typeof t?t+"":t,n),n)),"tt");function me(e,t){for(var n in t)e[n]=t[n];return e}function ge(e){var t=e.parentNode;t&&t.removeChild(e)}function ye(e,t,n){var i,r,a,s={};for(a in t)"key"==a?i=t[a]:"ref"==a?r=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?ze.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]
vendor: 2,940 bytes, line 102
102);return ve(e,s,i,r,null)}function ve(e,t,n,i,r){var a={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++Ge:r};return null==r&&null!=We.vnode&&We.vnode(a),a}function be(){return{current:null}}function _e(e){return e.children}function we(e,t){this.props=e,this.context=t}function Se(e,t){if(null==t)return e.__?Se(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Se(e):null}function Ce(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Ce(e)}}function ke(e){(!e.__d&&(e.__d=!0)&&Ke.push(e)&&!xe.__r++||Ze!==We.debounceRendering)&&((Ze=We.debounceRendering)||Ye)(xe)}function xe(){for(var e;xe.__r=Ke.length;)e=Ke.sort((function(e,t){return e.__v.__b-t.__v.__b})),Ke=[],e.some((function(e){var t,n,i,r,a,s;e.__d&&(a=(r=(t=e).__v).__e,(s=t.__P)&&(n=[],(i=me({},r)).__v=r.__v+1,Me(s,r,i,t.__n,void 0!==s.ownerSVGElement,null!=r.__h?[a]:null,n,null==a?Se(r):a,r.__h),Re(n,r),r.__e!=a&&Ce(r)))}))}function Te(e,t,n,i,r,a,s,o,l,u){var c,d,p,h,f,m,g,y=i&&i.__k||Je,v=y.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(h=n.__k[c]=null==(h=t[c])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?ve(null,h,null,null,h):Array.isArray(h)?ve(_e,{children:h},null,null,null):h.__b>0?ve(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(p=y[c])||p&&h.key==p.key&&h.type===p.type)y[c]=void 0;else for(d=0;d<v;d++){if((p=y[d])&&h.key==p.key&&h.type===p.type){y[d]=void 0;break}p=null}Me(e,h,p=p||Qe,r,a,s,o,l,u),f=h.__e,(d=h.ref)&&p.ref!=d&&(g||(g=[]),p.ref&&g.push(p.ref,null,h),g.push(d,h.__c||f,h)),null!=f?(null==m&&(m=f),"function"==typeof h.type&&h.__k===p.__k?h.__d=l=Ee(h,l,e):l=Le(e,h,p,y,f,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=Se(p))}for(n.__e=m,c=v;c--;)null!=y[c]&&("function"==typeof n.type&&null!=y[c].__e&&y[c].__e==n.__d&&(n.__d=Se(i,c+1)),Be(y[c],y[c]));if(g)for(c=0;c<g.length;c++)Fe(g[c],g[++c],g[++c])}function Ee(e,t,n){for(var i,r=e.__k,a=0;r&&a<r.length;a++)(i=r[a])&&(i.__=e,t="function"==typeof i.type?Ee(i,t,n):Le(n,i,i,r,i.__e,t));return t}function Ae(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Ae(e,t)})):t.push(e)),t}function Le(e,t,n,i,r,a){var s,o,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||r!=a||null==r.parentNode)e:if(null==a||a.parentNode!==e)e.appendChild(r),s=null;else{for(o=a,l=0;(o=o.nextSibling)&&l<i.length;l+=2)if(o==r)break e;e.insertBefore(r,a),s=a}return void 0!==s?s:r.nextSibling}function Ie(e,t,n,i,r){var a;for(a in n)"children"===a||"key"===a||a in t||De(e,a,null,n[a],i);for(a in t)r&&"function"!=typeof t[a]||"children"===a||"key"===a||"value"===a||"checked"===a||n[a]===t[a
102]||De(e,a,t[a],n[a],i)}function $e(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||et.test(t)?n:n+"px"}function De(e,t,n,i,r){var a;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||$e(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||$e(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?i||e.addEventListener(t,a?Oe:Pe,a):e.removeEventListener(t,a?Oe:Pe,a);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(s){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function Pe(e){this.l[e.type+!1](We.event?We.event(e):e)}function Oe(e){this.l[e.type+!0](We.event?We.event(e):e)}function Me(e,t,n,i,r,a,s,o,l){var u,c,d,p,h,f,m,g,y,v,b,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,o=t.__e=n.__e,t.__h=null,a=[o]),(u=We.__b)&&u(t);try{e:if("function"==typeof _){if(g=t.props,y=(u=_.contextType)&&i[u.__c],v=u?y?y.props.value:u.__:i,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in _&&_.prototype.render?t.__c=c=new _(g,v):(t.__c=c=new we(g,v),c.constructor=_,c.render=He),y&&y.sub(c),c.props=g,c.state||(c.state={}),c.context=v,c.__n=i,d=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=_.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=me({},c.__s)),me(c.__s,_.getDerivedStateFromProps(g,c.__s))),p=c.props,h=c.state,d)null==_.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==_.getDerivedStateFromProps&&g!==p&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(g,v),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(g,c.__s,v)||t.__v===n.__v){c.props=g,c.state=c.__s,t.__v!==n.__v&&(c.__d=!1),c.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),c.__h.length&&s.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(g,c.__s,v),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(p,h,f)}))}c.context=v,c.props=g,c.state=c.__s,(u=We.__r)&&u(t),c.__d=!1,c.__v=t,c.__P=e,u=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(i=me(me({},i),c.getChildContext())),d||null==c.getSnapshotBeforeUpdate||(f=c.getSnapshotBeforeUpdate(p,h)),b=null!=u&&u.type===_e&&null==u.key?u.props.children:u,Te(e,Array.isArray(b)?b:[b],t,n,i,r,a,s,o,l),c.base=t.__e,t.__h=null,c.__h.length&&s.push(c),m&&(c.__E=c.__=null),c.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Ne(n.__e,t,n,i,r,a,s,l);(u=We.diffed)&&u(t)}catch(w){t.__v=null,(l||null!=a)&&(t.__e=o,t.__h=!!l,a[a.indexOf(o)]=null),We.__e(w,t,n)}}function Re(e,t){We.__c&&We.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){We.__e(n,t.__v)}}))}function Ne(e,t,n,i,r,a,s,o){var l,u,c,d=n.props,p=t.props,h=t.type,f=0;if("svg"===h&&(r=!0),null!=a)for(;f<a.length;f++)if((l=a[f])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,a[f]=null;break}if(null==e){if(null===h)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),a=null,o=!1}if(null===h)d===p||o&&e.data===p||(e.data=p);else{if(a=a&&ze.call(e.childNodes),u=(d=n.props||Qe).dangerouslySetInnerHTML,c=p.dangerouslySetInnerHTML,!o){if(null!=a)for(d={},f=0;f<e.attributes.length;f++)d[e.attributes[f].name]=e.attributes[f].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(Ie(e,p,d,r,o),c)t.__k=[];else if(f=t.props.children,Te(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==h,a,s,a?a[0]:n.__k&&Se(n,0),o),null!=a)for(f=a.length;f--;)null!=a[f]&&ge(a[f]);o||("value"in p&&void 0!==(f=p.value)&&(f!==e.value||"progress"===h&&!f||"option"===h&&f!==d.value)&&De(e,"value",f,d.value,!1),"checked"in p&&void 0!==(f=p.checked)&&f!==e.checked&&De(e,"checked",f,d.checked,!1))}return e}function Fe(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(i){We.__e(i,n)}}function Be(e,t,n){var i,r;if(We.unmount&&We.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||Fe(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(a){We.__e(a,t)}i.base=i.__P=null}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&Be(i[r],t,"function"!=typeof e.type);n||null==e.__e||ge(e.__e),e.__e=e.__d=void 0}function He(e,t,n){return this.constructor(e,n)}function je(e,t,n){var i,r,a;We.__&&We.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,a=[],Me(t,e=(!i&&n||t).__k=ye(_e,null,[e]),r||Qe,Qe,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?ze.call(t.childNodes):null,a,!i&&n?n:r?r.__e:t.firstChild,i),Re(a,e)}function Ue(e,t){je(e,t,Ue)}function Ve(e,t,n){var i,r,a,s=me({},e.props);for(a in t)"key"==a?i=t[a]:"ref"==a?r=t[a]:s[a]=t[a];return arguments.length>2&&(s.children=arguments.length>3?ze.call(arguments,2):n),ve(e.type,s,i||e.key,r||e.ref,null)}function qe(e,t){var n={__c:t="__cC"+Xe++,__:e,Consumer:H((function(e,t){return e.children(t)}),"Consumer"),Provider:H((function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(ke)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}),"Provider")};return n.Provider.__=n.Consumer.contextType=n}H(me,"Pi"),H(ge,"yg"),H(ye,"A"),H(ve,"Ro"),H(be,"wl"),H(_e,"xe"),H(we,"pn"),H(Se,"_s"),H(Ce,"vg"),H(ke,"mh"),H(xe,"yl"),H(Te,"wg"),H(Ee,"xg"),H(Ae,"ci"),H(Le,"Sg"),H(Ie,"Ib"),H($e,"ug"),H(De,"vl"),H(Pe,"hg"),H(Oe,"dg"),H(Me,"yh"),H(Re,"_g"),H(Ne,"Tb"),H(Fe,"bg"),H(Be,"Eg"),H(He,"Ob"),H(je,"ui"),H(Ue,"Io"),H(Ve,"To"),H(qe,"Qe");var ze,We,Ge,Ke,Ye,Ze,Xe,Qe,Je,et,tt=le((()=>{Qe={},et=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ze=(Je=[]).slice,We={__e:H((function(e,t,n,i){for(var r,a,s;t=t.__;)if((r=t.__c)&&!r.__)try{if((a=r.constructor)&&null!=a.getDerivedStateFromError&&(r.setState(a.getDerivedStateFromError(e)),s=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),s=r.__d),s)return r.__E=r}catch(o){e=o}throw e}),"__e")},Ge=0,we.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=me({},this.state),"function"==typeof e&&(e=e(me({},n),this.props)),e&&me(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),ke(this))},we.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ke(this))},we.prototype.render=_e,Ke=[],Ye="function"==typeof Promise?Promise.prototype.then.bind(Prom
102ise.resolve()):setTimeout,xe.__r=0,Xe=0}));function nt(e,t){We.__h&&We.__h(_t,e,St||t),St=0;var n=_t.__H||(_t.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function it(e){return St=1,rt(vt,e)}function rt(e,t,n){var i=nt(bt++,2);return i.t=e,i.__c||(i.__=[n?n(t):vt(void 0,t),function(e){var t=i.t(i.__[0],e);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}))}],i.__c=_t),i.__}function at(e,t){var n=nt(bt++,3);!We.__s&&yt(n.__H,t)&&(n.__=e,n.__H=t,_t.__H.__h.push(n))}function st(e,t){var n=nt(bt++,4);!We.__s&&yt(n.__H,t)&&(n.__=e,n.__H=t,_t.__h.push(n))}function ot(e){return St=5,ut((function(){return{current:e}}),[])}function lt(e,t,n){St=6,st((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function ut(e,t){var n=nt(bt++,7);return yt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ct(e,t){return St=8,ut((function(){return e}),t)}function dt(e){var t=_t.context[e.__c],n=nt(bt++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(_t)),t.props.value):e.__}function pt(e,t){We.useDebugValue&&We.useDebugValue(t?t(e):e)}function ht(e){var t=nt(bt++,10),n=it();return t.__=e,_t.componentDidCatch||(_t.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function ft(){for(var e;e=Ct.shift();)if(e.__P)try{e.__H.__h.forEach(mt),e.__H.__h.forEach(gt),e.__H.__h=[]}catch(tvt){e.__H.__h=[],We.__e(tvt,e.__v)}}function mt(e){var t=_t,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),_t=t}function gt(e){var t=_t;e.__c=e.__(),_t=t}function yt(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function vt(e,t){return"function"==typeof t?t(e):t}H(nt,"Es"),H(it,"oe"),H(rt,"hi"),H(at,"q"),H(st,"ke"),H(ot,"K"),H(lt,"xh"),H(ut,"Y"),H(ct,"ge"),H(dt,"Ge"),H(pt,"Sh"),H(ht,"Lb"),H(ft,"Nb"),H(mt,"xl"),H(gt,"wh"),H(yt,"_h"),H(vt,"zg");var bt,_t,wt,St,Ct,kt,xt,Tt,Et,At,Lt,It=le((()=>{tt(),St=0,Ct=[],kt=We.__b,xt=We.__r,Tt=We.diffed,Et=We.__c,At=We.unmount,We.__b=function(e){_t=null,kt&&kt(e)},We.__r=function(e){xt&&xt(e),bt=0;var t=(_t=e.__c).__H;t&&(t.__h.forEach(mt),t.__h.forEach(gt),t.__h=[])},We.diffed=function(e){Tt&&Tt(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Ct.push(t)&&wt===We.requestAnimationFrame||((wt=We.requestAnimationFrame)||function(e){var t,n=H((function(){clearTimeout(i),Lt&&cancelAnimationFrame(t),setTimeout(e)}),"r"),i=setTimeout(n,100);Lt&&(t=requestAnimationFrame(n))})(ft)),_t=null},We.__c=function(e,t){t.some((function(e){try{e.__h.forEach(mt),e.__h=e.__h.filter((function(e){return!e.__||gt(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],We.__e(n,e.__v)}})),Et&&Et(e,t)},We.unmount=function(e){At&&At(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{mt(e)}catch(n){t=n}})),t&&We.__e(t,n.__v))},Lt="function"==typeof requestAnimationFrame})),$t={};function Dt(e,t){for(var n in t)e[n]=t[n];return e}function Pt(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function Ot(e){this.props=e}function Mt(e,t){function n(e){var n=this.props.ref,i=n==e.ref;return!i&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!i:Pt(this.props,e)}function i(t){return this.shouldComponentUpdate=n,ye(e,t)}return H(n,"n"),H(i,"i"),i.displayName="Memo("+(e.displayName||e.name)+")",i.prototype.isReactComponent=!0,i.__f=!0,i}function Rt(e){function t(t){var n=Dt({},t);return delete n.ref,e(n,t.ref||null)}return H(t,"e"),t.$$typeof=tn,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Nt(){this.__u=0,this.t=null,this.__b=null}function Ft(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Bt(e){var t,n,i;function r(r){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){i=e})),i)throw i;if(!n)throw t;return ye(n,r)}return H(r,"r"),r.displayName="Lazy",r.__f=!0,r}function Ht(){this.u=null,this.o=null}function jt(e){return this.getChildContext=function(){return e.context},e.children}function Ut(e){var t=this,n=e.i;t.componentWillUnmount=function(){je(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:H((function(e){this.childNodes.push(e),t.i.appendChild(e)}),"appendChild"),insertBefore:H((function(e,n){this.childNodes.push(e),t.i.appendChild(e)}),"insertBefore"),removeChild:H((function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}),"removeChild")}),je(ye(jt,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Vt(e,t){return ye(Ut,{__v:e,i:t})}
102function qt(e,t,n){return null==t.__k&&(t.textContent=""),je(e,t),"function"==typeof n&&n(),e?e.__c:null}function zt(e,t,n){return Ue(e,t),"function"==typeof n&&n(),e?e.__c:null}function Wt(){}function Gt(){return this.cancelBubble}function Kt(){return this.defaultPrevented}function Yt(e){return ye.bind(null,e)}function Zt(e){return!!e&&e.$$typeof===ln}function Xt(e){return Zt(e)?Ve.apply(null,arguments):e}function Qt(e){return!!e.__k&&(je(null,e),!0)}function Jt(e){return e&&(e.base||1===e.nodeType&&e)||null}ce($t,{Children:H((()=>rn),"Children"),Component:H((()=>we),"Component"),Fragment:H((()=>_e),"Fragment"),PureComponent:H((()=>Ot),"PureComponent"),StrictMode:H((()=>wn),"StrictMode"),Suspense:H((()=>Nt),"Suspense"),SuspenseList:H((()=>Ht),"SuspenseList"),__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:H((()=>yn),"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED"),cloneElement:H((()=>Xt),"cloneElement"),createContext:H((()=>qe),"createContext"),createElement:H((()=>ye),"createElement"),createFactory:H((()=>Yt),"createFactory"),createPortal:H((()=>Vt),"createPortal"),createRef:H((()=>be),"createRef"),default:H((()=>Sn),"default"),findDOMNode:H((()=>Jt),"findDOMNode"),flushSync:H((()=>_n),"flushSync"),forwardRef:H((()=>Rt),"forwardRef"),hydrate:H((()=>zt),"hydrate"),isValidElement:H((()=>Zt),"isValidElement"),lazy:H((()=>Bt),"lazy"),memo:H((()=>Mt),"memo"),render:H((()=>qt),"render"),unmountComponentAtNode:H((()=>Qt),"unmountComponentAtNode"),unstable_batchedUpdates:H((()=>bn),"unstable_batchedUpdates"),useCallback:H((()=>ct),"useCallback"),useContext:H((()=>dt),"useContext"),useDebugValue:H((()=>pt),"useDebugValue"),useEffect:H((()=>at),"useEffect"),useErrorBoundary:H((()=>ht),"useErrorBoundary"),useImperativeHandle:H((()=>lt),"useImperativeHandle"),useLayoutEffect:H((()=>st),"useLayoutEffect"),useMemo:H((()=>ut),"useMemo"),useReducer:H((()=>rt),"useReducer"),useRef:H((()=>ot),"useRef"),useState:H((()=>it),"useState"),version:H((()=>vn),"version")}),H(Dt,"Hg"),H(Pt,"Eh"),H(Ot,"Sl"),H(Mt,"_l"),H(Rt,"_t"),H(Nt,"Oo"),H(Ft,"Vg"),H(Bt,"qg"),H(Ht,"Cs"),H(jt,"Bb"),H(Ut,"Wb"),H(Vt,"Qg"),H(qt,"Pr"),H(zt,"Yg"),H(Wt,"Vb"),H(Gt,"qb"),H(Kt,"Qb"),H(Yt,"Zg"),H(Zt,"Ir"),H(Xt,"ko"),H(Qt,"Jg"),H(Jt,"em");var en,tn,nn,rn,an,sn,on,ln,un,cn,dn,pn,hn,fn,mn,gn,yn,vn,bn,_n,wn,Sn,Cn=le((()=>{It(),It(),tt(),tt(),(Ot.prototype=new we).isPureReactComponent=!0,Ot.prototype.shouldComponentUpdate=function(e,t){return Pt(this.props,e)||Pt(this.state,t)},en=We.__b,We.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),en&&en(e)},tn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,rn={map:nn=H((function(e,t){return null==e?null:Ae(Ae(e).map(t))}),"Ng"),forEach:nn,count:H((function(e){return e?Ae(e).length:0}),"count"),only:H((function(e){var t=Ae(e);if(1!==t.length)throw"Children.only";return t[0]}),"only"),toArray:Ae},an=We.__e,We.__e=function(e,t,n,i){if(e.then)for(var r,a=t;a=a.__;)if((r=a.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);an(e,t,n,i)},sn=We.unmount,We.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),sn&&sn(e)},(Nt.prototype=new we).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=Ft(i.__v),a=!1,s=H((function(){a||(a=!0,n.__R=null,r?r(o):o())}),"l");n.__R=s;var o=H((function(){if(! --i.__u){if(i.state.__e){var e=i.state.__e;i.__v.__k[0]=H((function e(t,n,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,i)})),t.__c&&t.__c.__P===n&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}),"m")(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__e:i.__b=null});t=i.t.pop();)t.forceUpdate()}}),"c"),l=!0===t.__h;i.__u++||l||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(s,s)},Nt.prototype.componentWillUnmount=function(){this.t=[]},Nt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=H((function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=Dt({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,i)}))),t}
102),"s")(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__e&&ye(_e,null,e.fallback);return r&&(r.__h=null),[ye(_e,null,t.__e?null:e.children),r]},on=H((function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}}),"jg"),(Ht.prototype=new we).__e=function(e){var t=this,n=Ft(t.__v),i=t.o.get(e);return i[0]++,function(r){var a=H((function(){t.props.revealOrder?(i.push(r),on(t,e,i)):r()}),"s");n?n(a):a()}},Ht.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ae(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ht.prototype.componentDidUpdate=Ht.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){on(e,n,t)}))},ln=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,un=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,cn=typeof document<"u",dn=H((function(e){return(typeof Symbol<"u"&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)}),"Hb"),we.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(we.prototype,e,{configurable:!0,get:H((function(){return this["UNSAFE_"+e]}),"get"),set:H((function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}),"set")})})),pn=We.event,We.event=function(e){return pn&&(e=pn(e)),e.persist=Wt,e.isPropagationStopped=Gt,e.isDefaultPrevented=Kt,e.nativeEvent=e},fn={configurable:!0,get:H((function(){return this.class}),"get")},mn=We.vnode,We.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){var r=-1===t.indexOf("-");for(var a in i={},n){var s=n[a];cn&&"children"===a&&"noscript"===t||"value"===a&&"defaultValue"in n&&null==s||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===s?s="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!dn(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():r&&un.test(a)?a=a.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),i[a]=s)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=Ae(n.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==t&&null!=i.defaultValue&&(i.value=Ae(n.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),e.props=i,n.class!=n.className&&(fn.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",fn))}e.$$typeof=ln,mn&&mn(e)},gn=We.__r,We.__r=function(e){gn&&gn(e),hn=e.__c},yn={ReactCurrentDispatcher:{current:{readContext:H((function(e){return hn.__n[e.__c].props.value}),"readContext")}}},vn="17.0.2",bn=H((function(e,t){return e(t)}),"tm"),wn=_e,Sn={useState:it,useReducer:rt,useEffect:at,useLayoutEffect:st,useRef:ot,useImperativeHandle:lt,useMemo:ut,useCallback:ct,useContext:dt,useDebugValue:pt,version:"17.0.2",Children:rn,render:qt,hydrate:zt,unmountComponentAtNode:Qt,createPortal:Vt,createElement:ye,createContext:qe,createFactory:Yt,cloneElement:Xt,createRef:be,Fragment:_e,isValidElement:Zt,findDOMNode:Jt,Component:we,PureComponent:Ot,memo:Mt,forwardRef:Rt,flushSync:_n=H((function(e,t){return e(t)}),"nm"),unstable_batchedUpdates:bn,StrictMode:_e,Suspense:Nt,SuspenseList:Ht,lazy:Bt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:yn}})),kn=ue((e=>{function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,a=e[i];if(!(0<r(a,t)))break e;e[i]=t,e[n]=a,n=i}}function n(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,a=e.length,s=a>>>1;i<s;){var o=2*(i+1)-1,l=e[o],u=o+1,c=e[u];if(0>r(l,n))u<a&&0>r(c,l)?(e[i]=c,e[u]=n,i=u):(e[i]=l,e[o]=n,i=o);else{if(!(u<a&&0>r(c,n)))break e;e[i]=c,e[u]=n,i=u}}}return t}function r(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}H(t,"Ph"),H(n,"Gn"),H(i,"Al"),H(r,"El"),"object"==typeof performance&&"function"==typeof performance.now?(a=performance,e.unstable_now=function(){return a.now()}):(s=Date,o=s.now(),e.unstable_now=function(){return s.now()-o});var a,s,o,l=[],u=[],c=1,d=null,p=3,h=!1,f=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;function b(e){for(var r=n(u);null!==r;){if(null===r.callback)i(u);else{if(!(r.startTime<=e))break;i(u),r.sortIndex=r.expirationTime,t(l,r)}r=n(u)}}function _(e){if(m=!1,b(e),!f)if(null!==n(l))f=!0,D(w);else{var t=n(u);null!==t&&P(_,t.startTime-e)}}function w(t,r){f=!1,m&&(m=!1,y(E),E=-1),h=!0;var a=p;try{for(b(r),d=n(l);null!==d&&(!(d.expirationTime>r)||t&&!I());){var s=d.callback;if("function"==typeof s){d.callback=null,p=d.priorityLevel;var o=s(d.expirationTime<=r);r=e.unstable_now(),"function"==typeof o?d.callback=o:d===n(l)&&i(l),b(r)}else i(l);d=n(l)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&P(_,g.startTime-r),c=!1}return c}finally{d=null,p=a,h=!1}
102}typeof navigator<"u"&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling),H(b,"Ih"),H(_,"Th"),H(w,"Oh");var S,C,k,x=!1,T=null,E=-1,A=5,L=-1;function I(){return!(e.unstable_now()-L<A)}function $(){if(null!==T){var t=e.unstable_now();L=t;var n=!0;try{n=T(!0,t)}finally{n?S():(x=!1,T=null)}}else x=!1}function D(e){T=e,x||(x=!0,S())}function P(t,n){E=g((function(){t(e.unstable_now())}),n)}H(I,"hm"),H($,"Ah"),"function"==typeof v?S=H((function(){v($)}),"Mo"):typeof MessageChannel<"u"?(C=new MessageChannel,k=C.port2,C.port1.onmessage=$,S=H((function(){k.postMessage(null)}),"Mo")):S=H((function(){g($,0)}),"Mo"),H(D,"kh"),H(P,"Mh"),e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){f||h||(f=!0,D(w))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(i,r,a){var s=e.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,i){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return i={id:c++,callback:r,priorityLevel:i,startTime:a,expirationTime:o=a+o,sortIndex:-1},a>s?(i.sortIndex=a,t(u,i),null===n(l)&&i===n(u)&&(m?(y(E),E=-1):m=!0,P(_,a-s))):(i.sortIndex=o,t(l,i),f||h||(f=!0,D(w))),i},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}})),xn=ue(((e,t)=>{t.exports=kn()})),Tn=ue(((e,t)=>{t.exports=function(e){var t={},n=(Cn(),he($t)),i=xn(),r=Object.assign;function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}H(a,"l");var s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,o=Symbol.for("react.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),h=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),_=Symbol.iterator;function w(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=_&&e[_]||e["@@iterator"])?e:null}function S(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case u:return"Fragment";case l:return"Portal";case d:return"Profiler";case c:return"StrictMode";case m:return"Suspense";case g:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case h:return(e.displayName||"Context")+".Consumer";case p:return(e._context.displayName||"Context")+".Provider";case f:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case y:return null!==(t=e.displayName||null)?t:S(e.type)||"Memo";case v:t=e._payload,e=e._init;try{return S(e(t))}catch(n){}}return null}function C(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return S(t);case 8:return t===c?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function k(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function x(e){if(k(e)!==e)throw Error(a(188))}function T(e){var t=e.alternate;if(!t){if(null===(t=k(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(null===r)break;var s=r.alternate;if(null===s){if(null!==(i=r.return)){n=i;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===n)return x(r),e;if(s===i)return x(r),t;s=s.sibling}throw Error(a(188))}if(n.return!==i.return)n=r,i=s;else{for(var o=!1,l=r.child;l;){if(l===n){o=!0,n=r,i=s;break}if(l===i){o=!0,i=r,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,i=r;break}if(l===i){o=!0,i=s,n=r;break}l=l.sibling}if(!o)throw Error(a(189))}}if(n.alternate!==i)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}function E(e){return null!==(e=T(e))?A(e):null}function A(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=A(e);if(null!==t)return t;e=e.sibling}return null}function L(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){if(4!==e.tag){var t=L(e);if(null!==t)return t}e=e.sibling}return null}
102H(w,"I"),H(S,"W"),H(C,"H"),H(k,"G"),H(x,"F"),H(T,"U"),H(E,"X"),H(A,"ie"),H(L,"ae");var I,$=Array.isArray,D=e.getPublicInstance,P=e.getRootHostContext,O=e.getChildHostContext,M=e.prepareForCommit,R=e.resetAfterCommit,N=e.createInstance,F=e.appendInitialChild,B=e.finalizeInitialChildren,j=e.prepareUpdate,U=e.shouldSetTextContent,V=e.createTextInstance,q=e.scheduleTimeout,z=e.cancelTimeout,W=e.noTimeout,G=e.isPrimaryRenderer,K=e.supportsMutation,Y=e.supportsPersistence,Z=e.supportsHydration,X=e.getInstanceFromNode,Q=e.preparePortalMount,J=e.getCurrentEventPriority,ee=e.detachDeletedInstance,te=e.supportsMicrotasks,ne=e.scheduleMicrotask,ie=e.supportsTestSelectors,re=e.findFiberRoot,ae=e.getBoundingRect,se=e.getTextContent,oe=e.isHiddenSubtree,le=e.matchAccessibilityRole,ue=e.setFocusIfFocusable,ce=e.setupIntersectionObserver,de=e.appendChild,pe=e.appendChildToContainer,fe=e.commitTextUpdate,me=e.commitMount,ge=e.commitUpdate,ye=e.insertBefore,ve=e.insertInContainerBefore,be=e.removeChild,_e=e.removeChildFromContainer,we=e.resetTextContent,Se=e.hideInstance,Ce=e.hideTextInstance,ke=e.unhideInstance,xe=e.unhideTextInstance,Te=e.clearContainer,Ee=e.cloneInstance,Ae=e.createContainerChildSet,Le=e.appendChildToContainerChildSet,Ie=e.finalizeContainerChildren,$e=e.replaceContainerChildren,De=e.cloneHiddenInstance,Pe=e.cloneHiddenTextInstance,Oe=e.canHydrateInstance,Me=e.canHydrateTextInstance,Re=e.canHydrateSuspenseInstance,Ne=e.isSuspenseInstancePending,Fe=e.isSuspenseInstanceFallback,Be=e.getSuspenseInstanceFallbackErrorDetails,He=e.registerSuspenseInstanceRetry,je=e.getNextHydratableSibling,Ue=e.getFirstHydratableChild,Ve=e.getFirstHydratableChildWithinContainer,qe=e.getFirstHydratableChildWithinSuspenseInstance,ze=e.hydrateInstance,We=e.hydrateTextInstance,Ge=e.hydrateSuspenseInstance,Ke=e.getNextHydratableInstanceAfterSuspenseInstance,Ye=e.commitHydratedContainer,Ze=e.commitHydratedSuspenseInstance,Xe=e.clearSuspenseBoundary,Qe=e.clearSuspenseBoundaryFromContainer,Je=e.shouldDeleteUnhydratedTailInstances,et=e.didNotMatchHydratedContainerTextInstance,tt=e.didNotMatchHydratedTextInstance;function nt(e){if(void 0===I)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);I=t&&t[1]||""}return"\n"+I+e}H(nt,"so");var it=!1;function rt(e,t){if(!e||it)return"";it=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=H((function(){throw Error()}),"a"),Object.defineProperty(t.prototype,"props",{set:H((function(){throw Error()}),"set")}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var i=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){i=u}e.call(t.prototype)}else{try{throw Error()}catch(u){i=u}e()}}catch(u){if(u&&i&&"string"==typeof u.stack){for(var r=u.stack.split("\n"),a=i.stack.split("\n"),s=r.length-1,o=a.length-1;1<=s&&0<=o&&r[s]!==a[o];)o--;for(;1<=s&&0<=o;s--,o--)if(r[s]!==a[o]){if(1!==s||1!==o)do{if(s--,0>--o||r[s]!==a[o]){var l="\n"+r[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=o);break}}}finally{it=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?nt(e):""}H(rt,"nu");var at=Object.prototype.hasOwnProperty,st=[],ot=-1;function lt(e){return{current:e}}function ut(e){0>ot||(e.current=st[ot],st[ot]=null,ot--)}function ct(e,t){ot++,st[ot]=e.current,e.current=t}H(lt,"Wi"),H(ut,"Je"),H(ct,"Ye");var dt={},pt=lt(dt),ht=lt(!1),ft=dt;function mt(e,t){var n=e.type.contextTypes;if(!n)return dt;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r,a={};for(r in n)a[r]=t[r];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function gt(e){return null!=(e=e.childContextTypes)}function yt(){ut(ht),ut(pt)}function vt(e,t,n){if(pt.current!==dt)throw Error(a(168));ct(pt,t),ct(ht,n)}function bt(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return n;for(var s in i=i.getChildContext())if(!(s in t))throw Error(a(108,C(e)||"Unknown",s));return r({},n,i)}function _t(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dt,ft=pt.current,ct(pt,e),ct(ht,ht.current),!0}function wt(e,t,n){var i=e.stateNode;if(!i)throw Error(a(169));n?(e=bt(e,t,ft),i.__reactInternalMemoizedMergedChildContext=e,ut(ht),ut(pt),ct(pt,e)):ut(ht),ct(ht,n)}H(mt,"cs"),H(gt,"cn"),H(yt,"Ea"),H(vt,"Ef"),H(bt,"Cf"),H(_t,"Ca"),H(wt,"Af");var St=Math.clz32?Math.clz32:xt,Ct=Math.log,kt=Math.LN2;function xt(e){return 0===(e>>>=0)?32:31-(Ct(e)/kt|0)|0}H(xt,"O_");var Tt=64,Et=4194304;function At(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Lt(e,t){var n=e.pendingLanes;if(0===n)return 0;var i=0,r=e.suspendedLanes,a=e.pingedLanes,s=268435455&n;if(0!==s){var o=s&~r;0!==o?i=At(o):0!==(a&=s)&&(i=At(a))}else 0!==(s=n&~r)?i=At(s):0!==a&&(i=At(a));if(0===i)return 0;if(0!==t&&t!==i&&0==(t&r)&&((r=i&-i)>=(a=t&-t)||16===r&&0!=(4194240&a)))return t;if(0!=(4&i)&&(i|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;
102)r=1<<(n=31-St(t)),i|=e[n],t&=~r;return i}function It(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Dt(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-St(a),o=1<<s,l=r[s];-1===l?(0==(o&n)||0!=(o&i))&&(r[s]=It(o,t)):l<=t&&(e.expiredLanes|=o),a&=~o}}function Pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ot(){var e=Tt;return 0==(4194240&(Tt<<=1))&&(Tt=64),e}function Mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Rt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-St(t)]=n}function Nt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-St(n),a=1<<r;t[r]=0,i[r]=-1,e[r]=-1,n&=~a}}function Ft(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-St(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}H(At,"oo"),H(Lt,"Pa"),H(It,"k_"),H(Dt,"M_"),H(Pt,"ru"),H(Ot,"Rf"),H(Mt,"su"),H(Rt,"ao"),H(Nt,"F_"),H(Ft,"ou");var Bt=0;function Ht(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}H(Ht,"Pf");var jt=i.unstable_scheduleCallback,Ut=i.unstable_cancelCallback,Vt=i.unstable_shouldYield,qt=i.unstable_requestPaint,zt=i.unstable_now,Wt=i.unstable_ImmediatePriority,Gt=i.unstable_UserBlockingPriority,Kt=i.unstable_NormalPriority,Yt=i.unstable_IdlePriority,Zt=null,Xt=null;function Qt(e){if(Xt&&"function"==typeof Xt.onCommitFiberRoot)try{Xt.onCommitFiberRoot(Zt,e,void 0,128==(128&e.current.flags))}catch(Cb){}}function Jt(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}H(Qt,"j_"),H(Jt,"B_");var en="function"==typeof Object.is?Object.is:Jt,tn=null,nn=!1,rn=!1;function an(e){null===tn?tn=[e]:tn.push(e)}function sn(e){nn=!0,an(e)}function on(){if(!rn&&null!==tn){rn=!0;var e=0,t=Bt;try{var n=tn;for(Bt=1;e<n.length;e++){var i=n[e];do{i=i(!0)}while(null!==i)}tn=null,nn=!1}catch(r){throw null!==tn&&(tn=tn.slice(e+1)),jt(Wt,on),r}finally{Bt=t,rn=!1}}return null}H(an,"Tf"),H(sn,"W_"),H(on,"ni");var ln=[],un=0,cn=null,dn=0,pn=[],hn=0,fn=null,mn=1,gn="";function yn(e,t){ln[un++]=dn,ln[un++]=cn,cn=e,dn=t}
102function vn(e,t,n){pn[hn++]=mn,pn[hn++]=gn,pn[hn++]=fn,fn=e;var i=mn;e=gn;var r=32-St(i)-1;i&=~(1<<r),n+=1;var a=32-St(t)+r;if(30<a){var s=r-r%5;a=(i&(1<<s)-1).toString(32),i>>=s,r-=s,mn=1<<32-St(t)+r|n<<r|i,gn=a+e}else mn=1<<a|n<<r|i,gn=e}function bn(e){null!==e.return&&(yn(e,1),vn(e,1,0))}function _n(e){for(;e===cn;)cn=ln[--un],ln[un]=null,dn=ln[--un],ln[un]=null;for(;e===fn;)fn=pn[--hn],pn[hn]=null,gn=pn[--hn],pn[hn]=null,mn=pn[--hn],pn[hn]=null}H(yn,"vr"),H(vn,"Of"),H(bn,"hu"),H(_n,"du");var wn=null,Sn=null,kn=!1,Tn=!1,En=null;function An(e,t){var n=So(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Ln(e,t){switch(e.tag){case 5:return null!==(t=Oe(t,e.type,e.pendingProps))&&(e.stateNode=t,wn=e,Sn=Ue(t),!0);case 6:return null!==(t=Me(t,e.pendingProps))&&(e.stateNode=t,wn=e,Sn=null,!0);case 13:if(null!==(t=Re(t))){var n=null!==fn?{id:mn,overflow:gn}:null;return e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=So(18,null,null,0)).stateNode=t,n.return=e,e.child=n,wn=e,Sn=null,!0}return!1;default:return!1}}function In(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function $n(e){if(kn){var t=Sn;if(t){var n=t;if(!Ln(e,t)){if(In(e))throw Error(a(418));t=je(n);var i=wn;t&&Ln(e,t)?An(i,n):(e.flags=-4097&e.flags|2,kn=!1,wn=e)}}else{if(In(e))throw Error(a(418));e.flags=-4097&e.flags|2,kn=!1,wn=e}}}function Dn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;wn=e}function Pn(e){if(!Z||e!==wn)return!1;if(!kn)return Dn(e),kn=!0,!1;if(3!==e.tag&&(5!==e.tag||Je(e.type)&&!U(e.type,e.memoizedProps))){var t=Sn;if(t){if(In(e))throw On(),Error(a(418));for(;t;)An(e,t),t=je(t)}}if(Dn(e),13===e.tag){if(!Z)throw Error(a(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));Sn=Ke(e)}else Sn=wn?je(e.stateNode):null;return!0}function On(){for(var e=Sn;e;)e=je(e)}function Mn(){Z&&(Sn=wn=null,Tn=kn=!1)}function Rn(e){null===En?En=[e]:En.push(e)}H(An,"kf"),H(Ln,"Mf"),H(In,"fu"),H($n,"pu"),H(Dn,"Ff"),H(Pn,"Ma"),H(On,"zf"),H(Mn,"ds"),H(Rn,"gu");var Nn=s.ReactCurrentBatchConfig;function Fn(e,t){if(en(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!at.call(t,r)||!en(e[r],t[r]))return!1}return!0}function Bn(e){switch(e.tag){case 5:return nt(e.type);case 16:return nt("Lazy");case 13:return nt("Suspense");case 19:return nt("SuspenseList");case 0:case 2:case 15:return e=rt(e.type,!1);case 11:return e=rt(e.type.render,!1);case 1:return e=rt(e.type,!0);default:return""}}function Hn(e,t){if(e&&e.defaultProps){for(var n in t=r({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}H(Fn,"Fa"),H(Bn,"U_"),H(Hn,"Vn");var jn=lt(null),Un=null,Vn=null,qn=null;function zn(){qn=Vn=Un=null}function Wn(e,t,n){G?(ct(jn,t._currentValue),t._currentValue=n):(ct(jn,t._currentValue2),t._currentValue2=n)}function Gn(e){var t=jn.current;ut(jn),G?e._currentValue=t:e._currentValue2=t}function Kn(e,t,n){for(;null!==e;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==i&&(i.childLanes|=t)):null!==i&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Yn(e,t){Un=e,qn=Vn=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(qr=!0),e.firstContext=null)}function Zn(e){var t=G?e._currentValue:e._currentValue2;if(qn!==e)if(e={context:e,memoizedValue:t,next:null},null===Vn){if(null===Un)throw Error(a(308));Vn=e,Un.dependencies={lanes:0,firstContext:e}}else Vn=Vn.next=e;return t}H(zn,"yu"),H(Wn,"Lf"),H(Gn,"vu"),H(Kn,"wu"),H(Yn,"ps"),H(Zn,"On");var Xn=null;function Qn(e){null===Xn?Xn=[e]:Xn.push(e)}function Jn(e,t,n,i){var r=t.interleaved;return null===r?(n.next=n,Qn(t)):(n.next=r.next,r.next=n),t.interleaved=n,ei(e,i)}function ei(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}H(Qn,"xu"),H(Jn,"Nf"),H(ei,"ii");var ti=!1;function ni(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ii(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ri(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ai(e,t,n){var i=e.updateQueue;if(null===i)return null;if(i=i.shared,0!=(2&ms)){var r=i.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),i.pending=t,ei(e,n)}return null===(r=i.interleaved)?(t.next=t,Qn(i)):(t.next=r.next,r.next=t),i.interleaved=t,ei(e,n)}
vendor: 17,290 bytes, line 102
102function si(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,Ft(e,n)}}function oi(e,t){var n=e.updateQueue,i=e.alternate;if(null!==i&&n===(i=i.updateQueue)){var r=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?r=a=s:a=a.next=s,n=n.next}while(null!==n);null===a?r=a=t:a=a.next=t}else r=a=t;return n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:a,shared:i.shared,effects:i.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function li(e,t,n,i){var a=e.updateQueue;ti=!1;var s=a.firstBaseUpdate,o=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var u=l,c=u.next;u.next=null,null===o?s=c:o.next=c,o=u;var d=e.alternate;null!==d&&((l=(d=d.updateQueue).lastBaseUpdate)!==o&&(null===l?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u))}if(null!==s){var p=a.baseState;for(o=0,d=c=u=null,l=s;;){var h=l.lane,f=l.eventTime;if((i&h)===h){null!==d&&(d=d.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,g=l;switch(h=t,f=n,g.tag){case 1:if("function"==typeof(m=g.payload)){p=m.call(f,p,h);break e}p=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(h="function"==typeof(m=g.payload)?m.call(f,p,h):m))break e;p=r({},p,h);break e;case 2:ti=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(h=a.effects)?a.effects=[l]:h.push(l))}else f={eventTime:f,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===d?(c=d=f,u=p):d=d.next=f,o|=h;if(null===(l=l.next)){if(null===(l=a.shared.pending))break;l=(h=l).next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}if(null===d&&(u=p),a.baseState=u,a.firstBaseUpdate=c,a.lastBaseUpdate=d,null!==(t=a.shared.interleaved)){a=t;do{o|=a.lane,a=a.next}while(a!==t)}else null===s&&(a.shared.lanes=0);Cs|=o,e.lanes=o,e.memoizedState=p}}function ui(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],r=i.callback;if(null!==r){if(i.callback=null,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}H(ni,"Su"),H(ii,"Df"),H(ri,"Ei"),H(ai,"Hi"),H(si,"Na"),H(oi,"jf"),H(li,"Da"),H(ui,"Bf");var ci=(new n.Component).refs;function di(e,t,n,i){n=null==(n=n(i,t=e.memoizedState))?t:r({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}H(di,"_u");var pi={isMounted:H((function(e){return!!(e=e._reactInternals)&&k(e)===e}),"isMounted"),enqueueSetState:H((function(e,t,n){e=e._reactInternals;var i=Vs(),r=qs(e),a=ri(i,r);a.payload=t,null!=n&&(a.callback=n),null!==(t=ai(e,a,r))&&(zs(t,e,r,i),si(t,e,r))}),"enqueueSetState"),enqueueReplaceState:H((function(e,t,n){e=e._reactInternals;var i=Vs(),r=qs(e),a=ri(i,r);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=ai(e,a,r))&&(zs(t,e,r,i),si(t,e,r))}),"enqueueReplaceState"),enqueueForceUpdate:H((function(e,t){e=e._reactInternals;var n=Vs(),i=qs(e),r=ri(n,i);r.tag=2,null!=t&&(r.callback=t),null!==(t=ai(e,r,i))&&(zs(t,e,i,n),si(t,e,i))}),"enqueueForceUpdate")};function hi(e,t,n,i,r,a,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,a,s):!t.prototype||!t.prototype.isPureReactComponent||(!Fn(n,i)||!Fn(r,a))}function fi(e,t,n){var i=!1,r=dt,a=t.contextType;return"object"==typeof a&&null!==a?a=Zn(a):(r=gt(t)?ft:pt.current,a=(i=null!=(i=t.contextTypes))?mt(e,r):dt),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=pi,e.stateNode=t,t._reactInternals=e,i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=a),t}function mi(e,t,n,i){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&pi.enqueueReplaceState(t,t.state,null)}function gi(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=ci,ni(e);var a=t.contextType;"object"==typeof a&&null!==a?r.context=Zn(a):(a=gt(t)?ft:pt.current,r.context=mt(e,a)),r.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(di(e,t,a,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&pi.enqueueReplaceState(r,r.state,null),li(e,n,r,i),r.state=e.memoizedState),"function"==typeof r.componentDidMount&&(e.flags|=4194308)}function yi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var i=n.stateNode}if(!i)throw Error(a(147,e));var r=i,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:((t=H((function(e){var t=r.refs;t===ci&&(t=r.refs={}),null===e?delete t[s]:t[s]=e}),"a"))._stringRef=s,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function vi(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function _i(e){function t(t,n){if(e){var i=t.deletions;null===i?(t.deletions=[n],t.flags|=16):i.push(n)}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=xo(e,t)).index=0,e.sibling=null,e}function s(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.flags|=2,n):i:(t.flags|=2,n):(t.flags|=1048576,n)}function c(t){return e&&null===t.alternate&&(t.flags|=2),t}function d(e,t,n,i){return null===t||6!==t.tag?((t=Lo(n,e.mode,i)).return=e,t):((t=r(t,n)).return=e,t)}function p(e,t,n,i){var a=n.type;return a===u?f(e,t,n.props.children,i,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===v&&bi(a)===t.type)?((i=r(t,n.props)).ref=yi(e,t,n),i.return=e,i):((i=To(n.type,n.key,n.props,null,e.mode,i)).ref=yi(e,t,n),i.return=e,i)}function h(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Io(n,e.mode,i)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function f(e,t,n,i,a){return null===t||7!==t.tag?((t=Eo(n,e.mode,i,a)).return=e,t):((t=r(t,n)).return=e,t)}function m(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Lo(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case o:return(n=To(t.type,t.key,t.props,null,e.mode,n)).ref=yi(e,null,t),n.return=e,n;case l:return(t=Io(t,e.mode,n)).return=e,t;case v:return m(e,(0,t._init)(t._payload),n)}if($(t)||w(t))return(t=Eo(t,e.mode,n,null)).return=e,t;vi(e,t)}return null}function g(e,t,n,i){var r=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==r?null:d(e,t,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case o:return n.key===r?p(e,t,n,i):null;case l:return n.key===r?h(e,t,n,i):null;case v:return g(e,t,(r=n._init)(n._payload),i)}if($(n)||w(n))return null!==r?null:f(e,t,n,i,null);vi(e,n)}return null}function y(e,t,n,i,r){if("string"==typeof i&&""!==i||"number"==typeof i)return d(t,e=e.get(n)||null,""+i,r);if("object"==typeof i&&null!==i){switch(i.$$typeof){case o:return p(t,e=e.get(null===i.key?n:i.key)||null,i,r);case l:return h(t,e=e.get(null===i.key?n:i.key)||null,i,r);case v:return y(e,t,n,(0,i._init)(i._payload),r)}if($(i)||w(i))return f(t,e=e.get(n)||null,i,r,null);vi(t,i)}return null}function b(r,a,o,l){for(var u=null,c=null,d=a,p=a=0,h=null;null!==d&&p<o.length;p++){d.index>p?(h=d,d=null):h=d.sibling;var f=g(r,d,o[p],l);if(null===f){null===d&&(d=h);break}e&&d&&null===f.alternate&&t(r,d),a=s(f,a,p),null===c?u=f:c.sibling=f,c=f,d=h}if(p===o.length)return n(r,d),kn&&yn(r,p),u;if(null===d){for(;p<o.length;p++)null!==(d=m(r,o[p],l))&&(a=s(d,a,p),null===c?u=d:c.sibling=d,c=d);return kn&&yn(r,p),u}for(d=i(r,d);p<o.length;p++)null!==(h=y(d,r,p,o[p],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?p:h.key),a=s(h,a,p),null===c?u=h:c.sibling=h,c=h);return e&&d.forEach((function(e){return t(r,e)})),kn&&yn(r,p),u}function _(r,o,l,u){var c=w(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,p=o,h=o=0,f=null,v=l.next();null!==p&&!v.done;h++,v=l.next()){p.index>h?(f=p,p=null):f=p.sibling;var b=g(r,p,v.value,u);if(null===b){null===p&&(p=f);break}e&&p&&null===b.alternate&&t(r,p),o=s(b,o,h),null===d?c=b:d.sibling=b,d=b,p=f}if(v.done)return n(r,p),kn&&yn(r,h),c;if(null===p){for(;!v.done;h++,v=l.next())null!==(v=m(r,v.value,u))&&(o=s(v,o,h),null===d?c=v:d.sibling=v,d=v);return kn&&yn(r,h),c}for(p=i(r,p);!v.done;h++,v=l.next())null!==(v=y(p,r,h,v.value,u))&&(e&&null!==v.alternate&&p.delete(null===v.key?h:v.key),o=s(v,o,h),null===d?c=v:d.sibling=v,d=v);return e&&p.forEach((function(e){return t(r,e)})),kn&&yn(r,h),c}function S(e,i,a,s){if("object"==typeof a&&null!==a&&a.type===u&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case o:e:{for(var d=a.key,p=i;null!==p;){if(p.key===d){if((d=a.type)===u){if(7===p.tag){n(e,p.sibling),(i=r(p,a.props.children)).return=e,e=i;break e}}else if(p.elementType===d||"object"==typeof d&&null!==d&&d.$$typeof===v&&bi(d)===p.type){n(e,p.sibling),(i=r(p,a.props)).ref=yi(e,p,a),i.return=e,e=i;break e}n(e,p);break}t(e,p),p=p.sibling}a.type===u?((i=Eo(a.props.children,e.mode,s,a.key)).return=e,e=i):((s=To(a.type,a.key,a.props,null,e.mode,s)).ref=yi(e,i,a),s.return=e,e=s)}return c(e);case l:e:{for(p=a.key;null!==i;){if(i.key===p){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(e,i.sibling),(i=r(i,a.children||[])).return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}(i=Io(a,e.mode,s)).return=e,e=i}return c(e);case v:return S(e,i,(p=a._init)(a._payload),s)}if($(a))return b(e,i,a,s);if(w(a))return _(e,i,a,s);vi(e,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(e,i.sibling),(i=r(i,a)).return=e,e=i):(n(e,i),(i=Lo(a,e.mode,s)).return=e,e=i),c(e)):n(e,i)}return H(t,"a"),H(n,"u"),H(i,"f"),H(r,"g"),H(s,"v"),H(c,"E"),H(d,"T"),H(p,"z"),H(h,"V"),H(f,"se"),H(m,"_e"),H(g,"J"),H(y,"et"),H(b,"qe"),H(_,"fn"),H(S,"Ri"),S}H(hi,"$f"),H(fi,"Uf"),H(mi,"Hf"),H(gi,"bu"),H(yi,"co"),H(vi,"Ba"),H(bi,"Vf"),H(_i,"qf");var wi=_i(!0),Si=_i(!1),Ci={},ki=lt(Ci),xi=lt(Ci),Ti=lt(Ci);function Ei(e){if(e===Ci)throw Error(a(174));return e}function Ai(e,t){ct(Ti,t),ct(xi,e),ct(ki,Ci),e=P(t),ut(ki),ct(ki,e)}function Li(){ut(ki),ut(xi),ut(Ti)}function Ii(e){var t=Ei(Ti.current),n=Ei(ki.current);n!==(t=O(n,e.type,t))&&(ct(xi,e),ct(ki,t))}function $i(e){xi.current===e&&(ut(ki),ut(xi))}H(Ei,"ri"),H(Ai,"Eu"),H(Li,"ys"),H(Ii,"Gf"),H($i,"Cu");var Di=lt(0);function Pi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Ne(n)||Fe(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}H(Pi,"Wa");var Oi=[];function Mi(){for(var e=0;e<Oi.length;e++){var t=Oi[e];G?t._workInProgressVersionPrimary=null:t._workInProgressVersionSecondary=null}Oi.length=0}H(Mi,"Ru");var Ri=s.ReactCurrentDispatcher,Ni=s.ReactCurrentBatchConfig,Fi=0,Bi=null,Hi=null,ji=null,Ui=!1,Vi=!1,qi=0,zi=0;function Wi(){throw Error(a(321))}function Gi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!en(e[n],t[n]))return!1;return!0}function Ki(e,t,n,i,r,s){if(Fi=s,Bi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ri.current=null===e||null===e.memoizedState?$r:Dr,e=n(i,r),Vi){s=0;do{if(Vi=!1,qi=0,25<=s)throw Error(a(301));s+=1,ji=Hi=null,t.updateQueue=null,Ri.current=Pr,e=n(i,r)}while(Vi)}if(Ri.current=Ir,t=null!==Hi&&null!==Hi.next,Fi=0,ji=Hi=Bi=null,Ui=!1,t)throw Error(a(300));return e}function Yi(){var e=0!==qi;return qi=0,e}function Zi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ji?Bi.memoizedState=ji=e:ji=ji.next=e,ji}function Xi(){if(null===Hi){var e=Bi.alternate;e=null!==e?e.memoizedState:null}else e=Hi.next;var t=null===ji?Bi.memoizedState:ji.next;if(null!==t)ji=t,Hi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Hi=e).memoizedState,baseState:Hi.baseState,baseQueue:Hi.baseQueue,queue:Hi.queue,next:null},null===ji?Bi.memoizedState=ji=e:ji=ji.next=e}return ji}function Qi(e,t){return"function"==typeof t?t(e):t}function Ji(e){var t=Xi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var i=Hi,r=i.baseQueue,s=n.pending;if(null!==s){if(null!==r){var o=r.next;r.next=s.next,s.next=o}i.baseQueue=r=s,n.pending=null}if(null!==r){s=r.next,i=i.baseState;var l=o=null,u=null,c=s;do{var d=c.lane;if((Fi&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),i=c.hasEagerState?c.eagerState:e(i,c.action);else{var p={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=p,o=i):u=u.next=p,Bi.lanes|=d,Cs|=d}c=c.next}while(null!==c&&c!==s);null===u?o=i:u.next=l,en(i,t.memoizedState)||(qr=!0),t.memoizedState=i,t.baseState=o,t.baseQueue=u,n.lastRenderedState=i}if(null!==(e=n.interleaved)){r=e;do{s=r.lane,Bi.lanes|=s,Cs|=s,r=r.next}while(r!==e)}else null===r&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function er(e){var t=Xi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,s=t.memoizedState;if(null!==r){n.pending=null;var o=r=r.next;do{s=e(s,o.action),o=o.next}while(o!==r);en(s,t.memoizedState)||(qr=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,i]}function tr(){}function nr(e,t){var n=Bi,i=Xi(),r=t(),s=!en(i.memoizedState,r);if(s&&(i.memoizedState=r,qr=!0),i=i.queue,fr(ar.bind(null,n,i,e),[e]),i.getSnapshot!==t||s||null!==ji&&1&ji.memoizedState.tag){if(n.flags|=2048,ur(9,rr.bind(null,n,i,r,t),void 0,null),null===gs)throw Error(a(349));0!=(30&Fi)||ir(n,t,r)}return r}function ir(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Bi.updateQueue)?(t={lastEffect:null,stores:null},Bi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function rr(e,t,n,i){t.value=n,t.getSnapshot=i,sr(t)&&or(e)}function ar(e,t,n){return n((function(){sr(t)&&or(e)}))}function sr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!en(e,n)}catch(i){return!0}}function or(e){var t=ei(e,1);null!==t&&zs(t,e,1,-1)}function lr(e){var t=Zi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qi,lastRenderedState:e},t.queue=e,e=e.dispatch=Tr.bind(null,Bi,e),[t.memoizedState,e]}function ur(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===(t=Bi.updateQueue)?(t={lastEffect:null,stores:null},Bi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function cr(){return Xi().memoizedState}function dr(e,t,n,i){var r=Zi();Bi.flags|=e,r.memoizedState=ur(1|t,n,void 0,void 0===i?null:i)}function pr(e,t,n,i){var r=Xi();i=void 0===i?null:i;var a=void 0;if(null!==Hi){var s=Hi.memoizedState;if(a=s.destroy,null!==i&&Gi(i,s.deps))return void(r.memoizedState=ur(t,n,a,i))}Bi.flags|=e,r.memoizedState=ur(1|t,n,a,i)}function hr(e,t){return dr(8390656,8,e,t)}function fr(e,t){return pr(2048,8,e,t)}function mr(e,t){return pr(4,2,e,t)}function gr(e,t){return pr(4,4,e,t)}function yr(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function vr(e,t,n){return n=null!=n?n.concat([e]):null,pr(4,4,yr.bind(null,t,e),n)}function br(){}function _r(e,t){var n=Xi();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&Gi(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function wr(e,t){var n=Xi();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&Gi(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function Sr(e,t,n){return 0==(21&Fi)?(e.baseState&&(e.baseState=!1,qr=!0),e.memoizedState=n):(en(n,t)||(n=Ot(),Bi.lanes|=n,Cs|=n,e.baseState=!0),t)}function Cr(e,t){var n=Bt;Bt=0!==n&&4>n?n:4,e(!0);var i=Ni.transition;Ni.transition={};try{e(!1),t()}finally{Bt=n,Ni.transition=i}}function kr(){return Xi().memoizedState}function xr(e,t,n){var i=qs(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},Er(e))Ar(t,n);else if(null!==(n=Jn(e,t,n,i))){zs(n,e,i,Vs()),Lr(n,t,i)}}function Tr(e,t,n){var i=qs(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(Er(e))Ar(t,r);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,o=a(s,n);
102if(r.hasEagerState=!0,r.eagerState=o,en(o,s)){var l=t.interleaved;return null===l?(r.next=r,Qn(t)):(r.next=l.next,l.next=r),void(t.interleaved=r)}}catch(u){}null!==(n=Jn(e,t,r,i))&&(zs(n,e,i,r=Vs()),Lr(n,t,i))}}function Er(e){var t=e.alternate;return e===Bi||null!==t&&t===Bi}function Ar(e,t){Vi=Ui=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lr(e,t,n){if(0!=(4194240&n)){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,Ft(e,n)}}H(Wi,"qt"),H(Gi,"Iu"),H(Ki,"Tu"),H(Yi,"Ou"),H(Zi,"si"),H(Xi,"Mn"),H(Qi,"go"),H(Ji,"ku"),H(er,"Mu"),H(tr,"Yf"),H(nr,"Kf"),H(ir,"Xf"),H(rr,"Zf"),H(ar,"Jf"),H(sr,"ep"),H(or,"tp"),H(lr,"np"),H(ur,"mo"),H(cr,"ip"),H(dr,"Ha"),H(pr,"Va"),H(hr,"rp"),H(fr,"Fu"),H(mr,"sp"),H(gr,"op"),H(yr,"ap"),H(vr,"lp"),H(br,"zu"),H(_r,"cp"),H(wr,"up"),H(Sr,"hp"),H(Cr,"V_"),H(kr,"dp"),H(xr,"q_"),H(Tr,"Q_"),H(Er,"fp"),H(Ar,"pp"),H(Lr,"gp");var Ir={readContext:Zn,useCallback:Wi,useContext:Wi,useEffect:Wi,useImperativeHandle:Wi,useInsertionEffect:Wi,useLayoutEffect:Wi,useMemo:Wi,useReducer:Wi,useRef:Wi,useState:Wi,useDebugValue:Wi,useDeferredValue:Wi,useTransition:Wi,useMutableSource:Wi,useSyncExternalStore:Wi,useId:Wi,unstable_isNewReconciler:!1},$r={readContext:Zn,useCallback:H((function(e,t){return Zi().memoizedState=[e,void 0===t?null:t],e}),"useCallback"),useContext:Zn,useEffect:hr,useImperativeHandle:H((function(e,t,n){return n=null!=n?n.concat([e]):null,dr(4194308,4,yr.bind(null,t,e),n)}),"useImperativeHandle"),useLayoutEffect:H((function(e,t){return dr(4194308,4,e,t)}),"useLayoutEffect"),useInsertionEffect:H((function(e,t){return dr(4,2,e,t)}),"useInsertionEffect"),useMemo:H((function(e,t){var n=Zi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e}),"useMemo"),useReducer:H((function(e,t,n){var i=Zi();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=xr.bind(null,Bi,e),[i.memoizedState,e]}),"useReducer"),useRef:H((function(e){return e={current:e},Zi().memoizedState=e}),"useRef"),useState:lr,useDebugValue:br,useDeferredValue:H((function(e){return Zi().memoizedState=e}),"useDeferredValue"),useTransition:H((function(){var e=lr(!1),t=e[0];return e=Cr.bind(null,e[1]),Zi().memoizedState=e,[t,e]}),"useTransition"),useMutableSource:H((function(){}),"useMutableSource"),useSyncExternalStore:H((function(e,t,n){var i=Bi,r=Zi();if(kn){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===gs)throw Error(a(349));0!=(30&Fi)||ir(i,t,n)}r.memoizedState=n;var s={value:n,getSnapshot:t};return r.queue=s,hr(ar.bind(null,i,s,e),[e]),i.flags|=2048,ur(9,rr.bind(null,i,s,n,t),void 0,null),n}),"useSyncExternalStore"),useId:H((function(){var e=Zi(),t=gs.identifierPrefix;if(kn){var n=gn;t=":"+t+"R"+(n=(mn&~(1<<32-St(mn)-1)).toString(32)+n),0<(n=qi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=zi++).toString(32)+":";return e.memoizedState=t}),"useId"),unstable_isNewReconciler:!1},Dr={readContext:Zn,useCallback:_r,useContext:Zn,useEffect:fr,useImperativeHandle:vr,useInsertionEffect:mr,useLayoutEffect:gr,useMemo:wr,useReducer:Ji,useRef:cr,useState:H((function(){return Ji(Qi)}),"useState"),useDebugValue:br,useDeferredValue:H((function(e){return Sr(Xi(),Hi.memoizedState,e)}),"useDeferredValue"),useTransition:H((function(){return[Ji(Qi)[0],Xi().memoizedState]}),"useTransition"),useMutableSource:tr,useSyncExternalStore:nr,useId:kr,unstable_isNewReconciler:!1},Pr={readContext:Zn,useCallback:_r,useContext:Zn,useEffect:fr,useImperativeHandle:vr,useInsertionEffect:mr,useLayoutEffect:gr,useMemo:wr,useReducer:er,useRef:cr,useState:H((function(){return er(Qi)}),"useState"),useDebugValue:br,useDeferredValue:H((function(e){var t=Xi();return null===Hi?t.memoizedState=e:Sr(t,Hi.memoizedState,e)}),"useDeferredValue"),useTransition:H((function(){return[er(Qi)[0],Xi().memoizedState]}),"useTransition"),useMutableSource:tr,useSyncExternalStore:nr,useId:kr,unstable_isNewReconciler:!1};function Or(e,t){try{var n="",i=t;do{n+=Bn(i),i=i.return}while(i);var r=n}catch(a){r="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:r,digest:null}}function Mr(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Rr(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}H(Or,"vs"),H(Mr,"Lu"),H(Rr,"Nu");var Nr="function"==typeof WeakMap?WeakMap:Map;function Fr(e,t,n){(n=ri(-1,n)).tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){Ps||(Ps=!0,Os=i),Rr(0,t)},n}function Br(e,t,n){(n=ri(-1,n)).tag=3;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var r=t.value;n.payload=function(){return i(r)},n.callback=function(){Rr(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){Rr(0,t),"function"!=typeof i&&(null===Ms?Ms=new Set([this]):Ms.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Hr(e,t,n){var i=e.pingCache;
vendor: 11,465 bytes, line 102
102if(null===i){i=e.pingCache=new Nr;var r=new Set;i.set(t,r)}else void 0===(r=i.get(t))&&(r=new Set,i.set(t,r));r.has(n)||(r.add(n),e=go.bind(null,e,t,n),t.then(e,e))}function jr(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Ur(e,t,n,i,r){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ri(-1,1)).tag=2,ai(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=r,e)}H(Fr,"mp"),H(Br,"yp"),H(Hr,"vp"),H(jr,"wp"),H(Ur,"xp");var Vr=s.ReactCurrentOwner,qr=!1;function zr(e,t,n,i){t.child=null===e?Si(t,null,n,i):wi(t,e.child,n,i)}function Wr(e,t,n,i,r){n=n.render;var a=t.ref;return Yn(t,r),i=Ki(e,t,n,i,a,r),n=Yi(),null===e||qr?(kn&&n&&bn(t),t.flags|=1,zr(e,t,i,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,ga(e,t,r))}function Gr(e,t,n,i,r){if(null===e){var a=n.type;return"function"!=typeof a||Co(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=To(n.type,null,i,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Kr(e,t,a,i,r))}if(a=e.child,0==(e.lanes&r)){var s=a.memoizedProps;if((n=null!==(n=n.compare)?n:Fn)(s,i)&&e.ref===t.ref)return ga(e,t,r)}return t.flags|=1,(e=xo(a,i)).ref=t.ref,e.return=t,t.child=e}function Kr(e,t,n,i,r){if(null!==e){var a=e.memoizedProps;if(Fn(a,i)&&e.ref===t.ref){if(qr=!1,t.pendingProps=i=a,0==(e.lanes&r))return t.lanes=e.lanes,ga(e,t,r);0!=(131072&e.flags)&&(qr=!0)}}return Xr(e,t,n,i,r)}function Yr(e,t,n){var i=t.pendingProps,r=i.children,a=null!==e?e.memoizedState:null;if("hidden"===i.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ct(_s,bs),bs|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ct(_s,bs),bs|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=null!==a?a.baseLanes:n,ct(_s,bs),bs|=i}else null!==a?(i=a.baseLanes|n,t.memoizedState=null):i=n,ct(_s,bs),bs|=i;return zr(e,t,r,n),t.child}function Zr(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Xr(e,t,n,i,r){var a=gt(n)?ft:pt.current;return a=mt(t,a),Yn(t,r),n=Ki(e,t,n,i,a,r),i=Yi(),null===e||qr?(kn&&i&&bn(t),t.flags|=1,zr(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,ga(e,t,r))}function Qr(e,t,n,i,r){if(gt(n)){var a=!0;_t(t)}else a=!1;if(Yn(t,r),null===t.stateNode)ma(e,t),fi(t,n,i),gi(t,n,i,r),i=!0;else if(null===e){var s=t.stateNode,o=t.memoizedProps;s.props=o;var l=s.context,u=n.contextType;"object"==typeof u&&null!==u?u=Zn(u):u=mt(t,u=gt(n)?ft:pt.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;d||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(o!==i||l!==u)&&mi(t,s,i,u),ti=!1;var p=t.memoizedState;s.state=p,li(t,i,s,r),l=t.memoizedState,o!==i||p!==l||ht.current||ti?("function"==typeof c&&(di(t,n,c,i),l=t.memoizedState),(o=ti||hi(t,n,o,i,p,l,u))?(d||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=l),s.props=i,s.state=l,s.context=u,i=o):("function"==typeof s.componentDidMount&&(t.flags|=4194308),i=!1)}else{s=t.stateNode,ii(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:Hn(t.type,o),s.props=u,d=t.pendingProps,p=s.context,"object"==typeof(l=n.contextType)&&null!==l?l=Zn(l):l=mt(t,l=gt(n)?ft:pt.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(o!==d||p!==l)&&mi(t,s,i,l),ti=!1,p=t.memoizedState,s.state=p,li(t,i,s,r);var f=t.memoizedState;o!==d||p!==f||ht.current||ti?("function"==typeof h&&(di(t,n,h,i),f=t.memoizedState),(u=ti||hi(t,n,u,i,p,f,l)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(i,f,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(i,f,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=f),s.props=i,s.state=f,s.context=l,i=u):("function"!=typeof s.componentDidUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),i=!1)}return Jr(e,t,n,i,a,r)}function Jr(e,t,n,i,r,a){Zr(e,t);var s=0!=(128&t.flags);if(!i&&!s)return r&&wt(t,n,!1),ga(e,t,a);i=t.stateNode,Vr.current=t;var o=s&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return t.flags|=1,null!==e&&s?(t.child=wi(t,e.child,null,a),t.child=wi(t,null,o,a)):zr(e,t,o,a),t.memoizedState=i.state,r&&wt(t,n,!0),t.child}function ea(e){var t=e.stateNode;t.pendingContext?vt(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vt(0,t.context,!1),Ai(e,t.containerInfo)}function ta(e,t,n,i,r){return Mn(),Rn(r),t.flags|=256,zr(e,t,n,i),t.child}H(zr,"nn"),H(Wr,"Sp"),H(Gr,"_p"),H(Kr,"bp"),H(Yr,"Ep"),H(Zr,"Cp"),H(Xr,"Du"),H(Qr,"Ap"),H(Jr,"ju"),H(ea,"Rp"),H(ta,"Pp");var na,ia,ra,aa,sa={dehydrated:null,treeContext:null,retryLane:0};function oa(e){return{baseLanes:e,cachePool:null,transitions:null}}function la(e,t,n){var i,r=t.pendingProps,a=Di.current,s=!1,o=0!=(128&t.flags);if((i=o)||(i=(null===e||null!==e.memoizedState)&&0!=(2&a)),i?(s=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(a|=1),ct(Di,1&a),null===e)return $n(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:Fe(e)?t.lanes=8:t.lanes=1073741824,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},0==(1&r)&&null!==s?(s.childLanes=0,s.pendingProps=o):s=Ao(o,r,0,null),e=Eo(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=oa(n),t.memoizedState=sa,e):ua(t,o));if(null!==(a=e.memoizedState)&&null!==(i=a.dehydrated))return da(e,t,o,r,i,a,n);if(s){s=r.fallback,o=t.mode,i=(a=e.child).sibling;var l={mode:"hidden",children:r.children};return 0==(1&o)&&t.child!==a?((r=t.child).childLanes=0,r.pendingProps=l,t.deletions=null):(r=xo(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==i?s=xo(i,s):(s=Eo(s,o,n,null)).flags|=2,s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=null===(o=e.child.memoizedState)?oa(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=sa,r}return e=(s=e.child).sibling,r=xo(s,{mode:"visible",children:r.children}),0==(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ua(e,t){return(t=Ao({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function ca(e,t,n,i){return null!==i&&Rn(i),wi(t,e.child,null,n),(e=ua(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function da(e,t,n,i,r,s,o){if(n)return 256&t.flags?(t.flags&=-257,ca(e,t,o,i=Mr(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=i.fallback,r=t.mode,i=Ao({mode:"visible",children:i.children},r,0,null),(s=Eo(s,r,o,null)).flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,0!=(1&t.mode)&&wi(t,e.child,null,o),t.child.memoizedState=oa(o),t.memoizedState=sa,s);if(0==(1&t.mode))return ca(e,t,o,null);if(Fe(r))return i=Be(r).digest,ca(e,t,o,i=Mr(s=Error(a(419)),i,void 0));if(n=0!=(o&e.childLanes),qr||n){if(null!==(i=gs)){switch(o&-o){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!=(r&(i.suspendedLanes|o))?0:r)&&r!==s.retryLane&&(s.retryLane=r,ei(e,r),zs(i,e,r,-1))}return ro(),ca(e,t,o,i=Mr(Error(a(421))))}return Ne(r)?(t.flags|=128,t.child=e.child,t=vo.bind(null,e),He(r,t),null):(e=s.treeContext,Z&&(Sn=qe(r),wn=t,kn=!0,En=null,Tn=!1,null!==e&&(pn[hn++]=mn,pn[hn++]=gn,pn[hn++]=fn,mn=e.id,gn=e.overflow,fn=t)),(t=ua(t,i.children)).flags|=4096,t)}function pa(e,t,n){e.lanes|=t;var i=e.alternate;null!==i&&(i.lanes|=t),Kn(e.return,t,n)}function ha(e,t,n,i,r){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=n,a.tailMode=r)}function fa(e,t,n){var i=t.pendingProps,r=i.revealOrder,a=i.tail;if(zr(e,t,i.children,n),0!=(2&(i=Di.current)))i=1&i|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&pa(e,n,t);else if(19===e.tag)pa(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(ct(Di,i),0==(1&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===Pi(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),ha(t,!1,r,n,a);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===Pi(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}ha(t,!0,n,null,a);break;case"together":ha(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ma(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ga(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Cs|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=xo(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=xo(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ya(e,t,n){switch(t.tag){case 3:ea(t),Mn();break;case 5:Ii(t);break;case 1:gt(t.type)&&_t(t);break;case 4:Ai(t,t.stateNode.containerInfo);break;case 10:Wn(0,t.type._context,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(null!==i)return null!==i.dehydrated?(ct(Di,1&Di.current),t.flags|=128,null):0!=(n&t.child.childLanes)?la(e,t,n):(ct(Di,1&Di.current),null!==(e=ga(e,t,n))?e.sibling:null);ct(Di,1&Di.current);break;case 19:if(i=0!=(n&t.childLanes),0!=(128&e.flags)){if(i)return fa(e,t,n);t.flags|=128}var r=t.memoizedState;if(null!==r&&(r.rendering=null,r.tail=null,r.lastEffect=null),ct(Di,Di.current),i)break;return null;case 22:case 23:return t.lanes=0,Yr(e,t,n)}return ga(e,t,n)}function va(e){e.flags|=4}function ba(e,t){if(null!==e&&e.child===t.child)return!0;
102if(0!=(16&t.flags))return!1;for(e=t.child;null!==e;){if(0!=(12854&e.flags)||0!=(12854&e.subtreeFlags))return!1;e=e.sibling}return!0}if(H(oa,"Wu"),H(la,"Ip"),H(ua,"$u"),H(ca,"Qa"),H(da,"J_"),H(pa,"Tp"),H(ha,"Uu"),H(fa,"Op"),H(ma,"Ga"),H(ga,"Ci"),H(ya,"eb"),H(va,"oi"),H(ba,"kp"),K)na=H((function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)F(e,n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}),"yo"),ia=H((function(){}),"vo"),ra=H((function(e,t,n,i,r){if((e=e.memoizedProps)!==i){var a=t.stateNode,s=Ei(ki.current);n=j(a,n,e,i,r,s),(t.updateQueue=n)&&va(t)}}),"Ya"),aa=H((function(e,t,n,i){n!==i&&va(t)}),"Ka");else if(Y){na=H((function(e,t,n,i){for(var r=t.child;null!==r;){if(5===r.tag){var a=r.stateNode;n&&i&&(a=De(a,r.type,r.memoizedProps,r)),F(e,a)}else if(6===r.tag)a=r.stateNode,n&&i&&(a=Pe(a,r.memoizedProps,r)),F(e,a);else if(4!==r.tag)if(22===r.tag&&null!==r.memoizedState)null!==(a=r.child)&&(a.return=r),na(e,r,!0,!0);else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}),"yo");var _a=H((function(e,t,n,i){for(var r=t.child;null!==r;){if(5===r.tag){var a=r.stateNode;n&&i&&(a=De(a,r.type,r.memoizedProps,r)),Le(e,a)}else if(6===r.tag)a=r.stateNode,n&&i&&(a=Pe(a,r.memoizedProps,r)),Le(e,a);else if(4!==r.tag)if(22===r.tag&&null!==r.memoizedState)null!==(a=r.child)&&(a.return=r),_a(e,r,!0,!0);else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}),"Mp");ia=H((function(e,t){var n=t.stateNode;if(!ba(e,t)){e=n.containerInfo;var i=Ae(e);_a(i,t,!1,!1),n.pendingChildren=i,va(t),Ie(e,i)}}),"vo"),ra=H((function(e,t,n,i,r){var a=e.stateNode,s=e.memoizedProps;if((e=ba(e,t))&&s===i)t.stateNode=a;else{var o=t.stateNode,l=Ei(ki.current),u=null;s!==i&&(u=j(o,n,s,i,r,l)),e&&null===u?t.stateNode=a:(a=Ee(a,u,n,s,i,t,e,o),B(a,n,i,r,l)&&va(t),t.stateNode=a,e?va(t):na(a,t,!1,!1))}}),"Ya"),aa=H((function(e,t,n,i){n!==i?(e=Ei(Ti.current),n=Ei(ki.current),t.stateNode=V(i,e,n,t),va(t)):t.stateNode=e.stateNode}),"Ka")}else ia=H((function(){}),"vo"),ra=H((function(){}),"Ya"),aa=H((function(){}),"Ka");function wa(e,t){if(!kn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Sa(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,i|=14680064&r.subtreeFlags,i|=14680064&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Ca(e,t,n){var i=t.pendingProps;switch(_n(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sa(t),null;case 1:case 17:return gt(t.type)&&yt(),Sa(t),null;case 3:return n=t.stateNode,Li(),ut(ht),ut(pt),Mi(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(null===e||null===e.child)&&(Pn(t)?va(t):null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==En&&(Ys(En),En=null))),ia(e,t),Sa(t),null;case 5:$i(t),n=Ei(Ti.current);var r=t.type;if(null!==e&&null!=t.stateNode)ra(e,t,r,i,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(a(166));return Sa(t),null}if(e=Ei(ki.current),Pn(t)){if(!Z)throw Error(a(175));e=ze(t.stateNode,t.type,t.memoizedProps,n,e,t,!Tn),t.updateQueue=e,null!==e&&va(t)}else{var s=N(r,i,n,e,t);na(s,t,!1,!1),t.stateNode=s,B(s,r,i,n,e)&&va(t)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Sa(t),null;case 6:if(e&&null!=t.stateNode)aa(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(a(166));if(e=Ei(Ti.current),n=Ei(ki.current),Pn(t)){if(!Z)throw Error(a(176));
102if(e=t.stateNode,n=t.memoizedProps,(i=We(e,n,t,!Tn))&&null!==(r=wn))switch(r.tag){case 3:et(r.stateNode.containerInfo,e,n,0!=(1&r.mode));break;case 5:tt(r.type,r.memoizedProps,r.stateNode,e,n,0!=(1&r.mode))}i&&va(t)}else t.stateNode=V(i,e,n,t)}return Sa(t),null;case 13:if(ut(Di),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(kn&&null!==Sn&&0!=(1&t.mode)&&0==(128&t.flags))On(),Mn(),t.flags|=98560,r=!1;else if(r=Pn(t),null!==i&&null!==i.dehydrated){if(null===e){if(!r)throw Error(a(318));if(!Z)throw Error(a(344));if(!(r=null!==(r=t.memoizedState)?r.dehydrated:null))throw Error(a(317));Ge(r,t)}else Mn(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Sa(t),r=!1}else null!==En&&(Ys(En),En=null),r=!0;if(!r)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((n=null!==i)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&Di.current)?0===ws&&(ws=3):ro())),null!==t.updateQueue&&(t.flags|=4),Sa(t),null);case 4:return Li(),ia(e,t),null===e&&Q(t.stateNode.containerInfo),Sa(t),null;case 10:return Gn(t.type._context),Sa(t),null;case 19:if(ut(Di),null===(r=t.memoizedState))return Sa(t),null;if(i=0!=(128&t.flags),null===(s=r.rendering))if(i)wa(r,!1);else{if(0!==ws||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=Pi(e))){for(t.flags|=128,wa(r,!1),null!==(e=s.updateQueue)&&(t.updateQueue=e,t.flags|=4),t.subtreeFlags=0,e=n,n=t.child;null!==n;)r=e,(i=n).flags&=14680066,null===(s=i.alternate)?(i.childLanes=0,i.lanes=r,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,r=s.dependencies,i.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext}),n=n.sibling;return ct(Di,1&Di.current|2),t.child}e=e.sibling}null!==r.tail&&zt()>Ls&&(t.flags|=128,i=!0,wa(r,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=Pi(s))){if(t.flags|=128,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),wa(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!kn)return Sa(t),null}else 2*zt()-r.renderingStartTime>Ls&&1073741824!==n&&(t.flags|=128,i=!0,wa(r,!1),t.lanes=4194304);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(e=r.last)?e.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=zt(),t.sibling=null,e=Di.current,ct(Di,i?1&e|2:1&e),t):(Sa(t),null);case 22:case 23:return eo(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!=(1&t.mode)?0!=(1073741824&bs)&&(Sa(t),K&&6&t.subtreeFlags&&(t.flags|=8192)):Sa(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function ka(e,t){switch(_n(t),t.tag){case 1:return gt(t.type)&&yt(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Li(),ut(ht),ut(pt),Mi(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return $i(t),null;case 13:if(ut(Di),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));Mn()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ut(Di),null;case 4:return Li(),null;case 10:return Gn(t.type._context),null;case 22:case 23:return eo(),null;default:return null}}H(wa,"wo"),H(Sa,"Qt"),H(Ca,"tb"),H(ka,"nb");var xa=!1,Ta=!1,Ea="function"==typeof WeakSet?WeakSet:Set,Aa=null;function La(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(i){mo(e,t,i)}else n.current=null}function Ia(e,t,n){try{n()}catch(i){mo(e,t,i)}}H(La,"ws"),H(Ia,"Hu");var $a=!1;function Da(e,t){for(M(e.containerInfo),Aa=t;null!==Aa;)if(t=(e=Aa).child,0!=(1028&e.subtreeFlags)&&null!==t)t.return=e,Aa=t;else for(;null!==Aa;){e=Aa;try{var n=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==n){var i=n.memoizedProps,r=n.memoizedState,s=e.stateNode,o=s.getSnapshotBeforeUpdate(e.elementType===e.type?i:Hn(e.type,i),r);s.__reactInternalSnapshotBeforeUpdate=o}break;case 3:K&&Te(e.stateNode.containerInfo);break;default:throw Error(a(163))}}catch(l){mo(e,e.return,l)}if(null!==(t=e.sibling)){t.return=e.return,Aa=t;break}Aa=e.return}return n=$a,$a=!1,n}function Pa(e,t,n){var i=t.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){var r=i=i.next;do{if((r.tag&e)===e){var a=r.destroy;r.destroy=void 0,void 0!==a&&Ia(t,n,a)}r=r.next}
102while(r!==i)}}function Oa(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function Ma(e){var t=e.ref;if(null!==t){var n=e.stateNode;if(5===e.tag)e=D(n);else e=n;"function"==typeof t?t(e):t.current=e}}function Ra(e){var t=e.alternate;null!==t&&(e.alternate=null,Ra(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&ee(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Na(e){return 5===e.tag||3===e.tag||4===e.tag}function Fa(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Na(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Ba(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?ve(n,e,t):pe(n,e);else if(4!==i&&null!==(e=e.child))for(Ba(e,t,n),e=e.sibling;null!==e;)Ba(e,t,n),e=e.sibling}function Ha(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?ye(n,e,t):de(n,e);else if(4!==i&&null!==(e=e.child))for(Ha(e,t,n),e=e.sibling;null!==e;)Ha(e,t,n),e=e.sibling}H(Da,"rb"),H(Pa,"xo"),H(Oa,"Za"),H(Ma,"Vu"),H(Ra,"zp"),H(Na,"Lp"),H(Fa,"Np"),H(Ba,"qu"),H(Ha,"Qu");var ja=null,Ua=!1;function Va(e,t,n){for(n=n.child;null!==n;)qa(e,t,n),n=n.sibling}function qa(e,t,n){if(Xt&&"function"==typeof Xt.onCommitFiberUnmount)try{Xt.onCommitFiberUnmount(Zt,n)}catch(o){}switch(n.tag){case 5:Ta||La(n,t);case 6:if(K){var i=ja,r=Ua;ja=null,Va(e,t,n),Ua=r,null!==(ja=i)&&(Ua?_e(ja,n.stateNode):be(ja,n.stateNode))}else Va(e,t,n);break;case 18:K&&null!==ja&&(Ua?Qe(ja,n.stateNode):Xe(ja,n.stateNode));break;case 4:K?(i=ja,r=Ua,ja=n.stateNode.containerInfo,Ua=!0,Va(e,t,n),ja=i,Ua=r):(Y&&(i=n.stateNode.containerInfo,r=Ae(i),$e(i,r)),Va(e,t,n));break;case 0:case 11:case 14:case 15:if(!Ta&&(null!==(i=n.updateQueue)&&null!==(i=i.lastEffect))){r=i=i.next;do{var a=r,s=a.destroy;a=a.tag,void 0!==s&&(0!=(2&a)||0!=(4&a))&&Ia(n,t,s),r=r.next}while(r!==i)}Va(e,t,n);break;case 1:if(!Ta&&(La(n,t),"function"==typeof(i=n.stateNode).componentWillUnmount))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(o){mo(n,t,o)}Va(e,t,n);break;case 21:Va(e,t,n);break;case 22:1&n.mode?(Ta=(i=Ta)||null!==n.memoizedState,Va(e,t,n),Ta=i):Va(e,t,n);break;default:Va(e,t,n)}}function za(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ea),t.forEach((function(t){var i=bo.bind(null,e,t);n.has(t)||(n.add(t),t.then(i,i))}))}}function Wa(e,t){var n=t.deletions;if(null!==n)for(var i=0;i<n.length;i++){var r=n[i];try{var s=e,o=t;if(K){var l=o;e:for(;null!==l;){switch(l.tag){case 5:ja=l.stateNode,Ua=!1;break e;case 3:case 4:ja=l.stateNode.containerInfo,Ua=!0;break e}l=l.return}if(null===ja)throw Error(a(160));qa(s,o,r),ja=null,Ua=!1}else qa(s,o,r);var u=r.alternate;null!==u&&(u.return=null),r.return=null}catch(c){mo(r,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Ga(t,e),t=t.sibling}function Ga(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Wa(t,e),Ka(e),4&i){try{Pa(3,e,e.return),Oa(3,e)}catch(h){mo(e,e.return,h)}try{Pa(5,e,e.return)}catch(h){mo(e,e.return,h)}}break;case 1:Wa(t,e),Ka(e),512&i&&null!==n&&La(n,n.return);break;case 5:if(Wa(t,e),Ka(e),512&i&&null!==n&&La(n,n.return),K){if(32&e.flags){var r=e.stateNode;try{we(r)}catch(h){mo(e,e.return,h)}}if(4&i&&null!=(r=e.stateNode)){var s=e.memoizedProps;if(n=null!==n?n.memoizedProps:s,i=e.type,t=e.updateQueue,e.updateQueue=null,null!==t)try{ge(r,t,i,n,s,e)}catch(h){mo(e,e.return,h)}}}break;case 6:if(Wa(t,e),Ka(e),4&i&&K){if(null===e.stateNode)throw Error(a(162));r=e.stateNode,s=e.memoizedProps,n=null!==n?n.memoizedProps:s;try{fe(r,n,s)}catch(h){mo(e,e.return,h)}}break;case 3:if(Wa(t,e),Ka(e),4&i){if(K&&Z&&null!==n&&n.memoizedState.isDehydrated)try{Ye(t.containerInfo)}catch(h){mo(e,e.return,h)}if(Y){r=t.containerInfo,s=t.pendingChildren;try{$e(r,s)}catch(h){mo(e,e.return,h)}}}break;case 4:if(Wa(t,e),Ka(e),4&i&&Y){r=(s=e.stateNode).containerInfo,s=s.pendingChildren;try{$e(r,s)}catch(h){mo(e,e.return,h)}}break;case 13:Wa(t,e),Ka(e),8192&(r=e.child).flags&&(s=null!==r.memoizedState,r.stateNode.isHidden=s,!s||null!==r.alternate&&null!==r.alternate.memoizedState||(As=zt())),4&i&&za(e);break;case 22:var o=null!==n&&null!==n.memoizedState;if(1&e.mode?(Ta=(n=Ta)||o,Wa(t,e),Ta=n):Wa(t,e),Ka(e),8192&i){if(n=null!==e.memoizedState,(e.stateNode.isHidden=n)&&!o&&0!=(1&e.mode))for(Aa=e,i=e.child;null!==i;){for(t=Aa=i;null!==Aa;){var l=(o=Aa).child;switch(o.tag){case 0:case 11:case 14:case 15:Pa(4,o,o.return);break;case 1:La(o,o.return);var u=o.stateNode;if("function"==typeof u.componentWillUnmount){var c=o,d=o.return;try{var p=c;u.props=p.memoizedProps,u.state=p.memoizedState,u.componentWillUnmount()}catch(h){mo(c,d,h)}}break;case 5:La(o,o.return);break;case 22:if(null!==o.memoizedState){Qa(t);continue}}null!==l?(l.return=o,Aa=l):Qa(t)}i=i.sibling}if(K)e:if(i=null,K)for(t=e;;
102){if(5===t.tag){if(null===i){i=t;try{r=t.stateNode,n?Se(r):ke(t.stateNode,t.memoizedProps)}catch(h){mo(e,e.return,h)}}}else if(6===t.tag){if(null===i)try{s=t.stateNode,n?Ce(s):xe(s,t.memoizedProps)}catch(h){mo(e,e.return,h)}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}}break;case 19:Wa(t,e),Ka(e),4&i&&za(e);break;case 21:break;default:Wa(t,e),Ka(e)}}function Ka(e){var t=e.flags;if(2&t){try{if(K){e:{for(var n=e.return;null!==n;){if(Na(n)){var i=n;break e}n=n.return}throw Error(a(160))}switch(i.tag){case 5:var r=i.stateNode;32&i.flags&&(we(r),i.flags&=-33),Ha(e,Fa(e),r);break;case 3:case 4:var s=i.stateNode.containerInfo;Ba(e,Fa(e),s);break;default:throw Error(a(161))}}}catch(o){mo(e,e.return,o)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ya(e,t,n){Aa=e,Za(e)}function Za(e,t,n){for(var i=0!=(1&e.mode);null!==Aa;){var r=Aa,a=r.child;if(22===r.tag&&i){var s=null!==r.memoizedState||xa;if(!s){var o=r.alternate,l=null!==o&&null!==o.memoizedState||Ta;o=xa;var u=Ta;if(xa=s,(Ta=l)&&!u)for(Aa=r;null!==Aa;)l=(s=Aa).child,22===s.tag&&null!==s.memoizedState?Ja(r):null!==l?(l.return=s,Aa=l):Ja(r);for(;null!==a;)Aa=a,Za(a),a=a.sibling;Aa=r,xa=o,Ta=u}Xa(e)}else 0!=(8772&r.subtreeFlags)&&null!==a?(a.return=r,Aa=a):Xa(e)}}function Xa(e){for(;null!==Aa;){var t=Aa;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ta||Oa(5,t);break;case 1:var i=t.stateNode;if(4&t.flags&&!Ta)if(null===n)i.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:Hn(t.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&ui(t,s,i);break;case 3:var o=t.updateQueue;if(null!==o){if(n=null,null!==t.child)switch(t.child.tag){case 5:n=D(t.child.stateNode);break;case 1:n=t.child.stateNode}ui(t,o,n)}break;case 5:var l=t.stateNode;null===n&&4&t.flags&&me(l,t.type,t.memoizedProps,t);break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(Z&&null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Ze(d)}}}break;default:throw Error(a(163))}Ta||512&t.flags&&Ma(t)}catch(p){mo(t,t.return,p)}}if(t===e){Aa=null;break}if(null!==(n=t.sibling)){n.return=t.return,Aa=n;break}Aa=t.return}}function Qa(e){for(;null!==Aa;){var t=Aa;if(t===e){Aa=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Aa=n;break}Aa=t.return}}function Ja(e){for(;null!==Aa;){var t=Aa;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Oa(4,t)}catch(l){mo(t,n,l)}break;case 1:var i=t.stateNode;if("function"==typeof i.componentDidMount){var r=t.return;try{i.componentDidMount()}catch(l){mo(t,r,l)}}var a=t.return;try{Ma(t)}catch(l){mo(t,a,l)}break;case 5:var s=t.return;try{Ma(t)}catch(l){mo(t,s,l)}}}catch(l){mo(t,t.return,l)}if(t===e){Aa=null;break}var o=t.sibling;if(null!==o){o.return=t.return,Aa=o;break}Aa=t.return}}H(Va,"ai"),H(qa,"Gu"),H(za,"Dp"),H(Wa,"Qn"),H(Ga,"jp"),H(Ka,"li"),H(Ya,"sb"),H(Za,"Bp"),H(Xa,"Wp"),H(Qa,"$p"),H(Ja,"Up");var es=0,ts=1,ns=2,is=3,rs=4;if("function"==typeof Symbol&&Symbol.for){var as=Symbol.for;es=as("selector.component"),ts=as("selector.has_pseudo_class"),ns=as("selector.role"),is=as("selector.test_id"),rs=as("selector.text")}function ss(e){var t=X(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(a(364));return t}if(null===(e=re(e)))throw Error(a(362));return e.stateNode.current}function os(e,t){switch(t.$$typeof){case es:if(e.type===t.value)return!0;break;case ts:e:{t=t.value,e=[e,0];for(var n=0;n<e.length;){var i=e[n++],r=e[n++],s=t[r];if(5!==i.tag||!oe(i)){for(;null!=s&&os(i,s);)s=t[++r];if(r===t.length){t=!0;break e}for(i=i.child;null!==i;)e.push(i,r),i=i.sibling}}t=!1}return t;case ns:if(5===e.tag&&le(e.stateNode,t.value))return!0;break;case rs:if((5===e.tag||6===e.tag)&&(null!==(e=se(e))&&0<=e.indexOf(t.value)))return!0;break;case is:if(5===e.tag&&("string"==typeof(e=e.memoizedProps["data-testname"])&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(a(365))}return!1}function ls(e){switch(e.$$typeof){case es:return"<"+(S(e.value)||"Unknown")+">";case ts:return":has("+(ls(e)||"")+")";case ns:return'[role="'+e.value+'"]';
102case rs:return'"'+e.value+'"';case is:return'[data-testname="'+e.value+'"]';default:throw Error(a(365))}}function us(e,t){var n=[];e=[e,0];for(var i=0;i<e.length;){var r=e[i++],a=e[i++],s=t[a];if(5!==r.tag||!oe(r)){for(;null!=s&&os(r,s);)s=t[++a];if(a===t.length)n.push(r);else for(r=r.child;null!==r;)e.push(r,a),r=r.sibling}}return n}function cs(e,t){if(!ie)throw Error(a(363));e=us(e=ss(e),t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var i=e[n++];if(5===i.tag)oe(i)||t.push(i.stateNode);else for(i=i.child;null!==i;)e.push(i),i=i.sibling}return t}H(ss,"Yu"),H(os,"Ku"),H(ls,"Xu"),H(us,"Hp"),H(cs,"Zu");var ds=Math.ceil,ps=s.ReactCurrentDispatcher,hs=s.ReactCurrentOwner,fs=s.ReactCurrentBatchConfig,ms=0,gs=null,ys=null,vs=0,bs=0,_s=lt(0),ws=0,Ss=null,Cs=0,ks=0,xs=0,Ts=null,Es=null,As=0,Ls=1/0,Is=null;function $s(){Ls=zt()+500}H($s,"Ss");var Ds,Ps=!1,Os=null,Ms=null,Rs=!1,Ns=null,Fs=0,Bs=0,Hs=null,js=-1,Us=0;function Vs(){return 0!=(6&ms)?zt():-1!==js?js:js=zt()}function qs(e){return 0==(1&e.mode)?1:0!=(2&ms)&&0!==vs?vs&-vs:null!==Nn.transition?(0===Us&&(Us=Ot()),Us):0!==(e=Bt)?e:J()}function zs(e,t,n,i){if(50<Bs)throw Bs=0,Hs=null,Error(a(185));Rt(e,n,i),(0==(2&ms)||e!==gs)&&(e===gs&&(0==(2&ms)&&(ks|=n),4===ws&&Xs(e,vs)),Ws(e,i),1===n&&0===ms&&0==(1&t.mode)&&($s(),nn&&on()))}function Ws(e,t){var n=e.callbackNode;Dt(e,t);var i=Lt(e,e===gs?vs:0);if(0===i)null!==n&&Ut(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(null!=n&&Ut(n),1===t)0===e.tag?sn(Qs.bind(null,e)):an(Qs.bind(null,e)),te?ne((function(){0==(6&ms)&&on()})):jt(Wt,on),n=null;else{switch(Ht(i)){case 1:n=Wt;break;case 4:n=Gt;break;case 16:default:n=Kt;break;case 536870912:n=Yt}n=_o(n,Gs.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Gs(e,t){if(js=-1,Us=0,0!=(6&ms))throw Error(a(327));var n=e.callbackNode;if(ho()&&e.callbackNode!==n)return null;var i=Lt(e,e===gs?vs:0);if(0===i)return null;if(0!=(30&i)||0!=(i&e.expiredLanes)||t)t=ao(e,i);else{t=i;var r=ms;ms|=2;var s=io();for((gs!==e||vs!==t)&&(Is=null,$s(),to(e,t));;)try{oo();break}catch(l){no(e,l)}zn(),ps.current=s,ms=r,null!==ys?t=0:(gs=null,vs=0,t=ws)}if(0!==t){if(2===t&&(0!==(r=Pt(e))&&(i=r,t=Ks(e,r))),1===t)throw n=Ss,to(e,0),Xs(e,i),Ws(e,zt()),n;if(6===t)Xs(e,i);else{if(r=e.current.alternate,0==(30&i)&&!Zs(r)&&(2===(t=ao(e,i))&&(0!==(s=Pt(e))&&(i=s,t=Ks(e,s))),1===t))throw n=Ss,to(e,0),Xs(e,i),Ws(e,zt()),n;switch(e.finishedWork=r,e.finishedLanes=i,t){case 0:case 1:throw Error(a(345));case 2:case 5:co(e,Es,Is);break;case 3:if(Xs(e,i),(130023424&i)===i&&10<(t=As+500-zt())){if(0!==Lt(e,0))break;if(((r=e.suspendedLanes)&i)!==i){Vs(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=q(co.bind(null,e,Es,Is),t);break}co(e,Es,Is);break;case 4:if(Xs(e,i),(4194240&i)===i)break;for(t=e.eventTimes,r=-1;0<i;){var o=31-St(i);s=1<<o,(o=t[o])>r&&(r=o),i&=~s}if(i=r,10<(i=(120>(i=zt()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*ds(i/1960))-i)){e.timeoutHandle=q(co.bind(null,e,Es,Is),i);break}co(e,Es,Is);break;default:throw Error(a(329))}}}return Ws(e,zt()),e.callbackNode===n?Gs.bind(null,e):null}function Ks(e,t){var n=Ts;return e.current.memoizedState.isDehydrated&&(to(e,t).flags|=256),2!==(e=ao(e,t))&&(t=Es,Es=n,null!==t&&Ys(t)),e}function Ys(e){null===Es?Es=e:Es.push.apply(Es,e)}function Zs(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var i=0;i<n.length;i++){var r=n[i],a=r.getSnapshot;r=r.value;try{if(!en(a(),r))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Xs(e,t){for(t&=~xs,t&=~ks,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-St(t),i=1<<n;e[n]=-1,t&=~i}}function Qs(e){if(0!=(6&ms))throw Error(a(327));ho();var t=Lt(e,0);if(0==(1&t))return Ws(e,zt()),null;var n=ao(e,t);if(0!==e.tag&&2===n){var i=Pt(e);0!==i&&(t=i,n=Ks(e,i))}if(1===n)throw n=Ss,to(e,0),Xs(e,t),Ws(e,zt()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,co(e,Es,Is),Ws(e,zt()),null}function Js(e){null!==Ns&&0===Ns.tag&&0==(6&ms)&&ho();var t=ms;ms|=1;var n=fs.transition,i=Bt;try{if(fs.transition=null,Bt=1,e)return e()}finally{Bt=i,fs.transition=n,0==(6&(ms=t))&&on()}}function eo(){bs=_s.current,ut(_s)}function to(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==W&&(e.timeoutHandle=W,z(n)),null!==ys)for(n=ys.return;null!==n;){var i=n;switch(_n(i),i.tag){case 1:null!=(i=i.type.childContextTypes)&&yt();break;case 3:Li(),ut(ht),ut(pt),Mi();break;case 5:$i(i);break;case 4:Li();break;case 13:case 19:ut(Di);break;case 10:Gn(i.type._context);break;case 22:case 23:eo()}n=n.return}if(gs=e,ys=e=xo(e.current,null),vs=bs=t,ws=0,Ss=null,xs=ks=Cs=0,Es=Ts=null,null!==Xn){for(t=0;t<Xn.length;t++)if(null!==(i=(n=Xn[t]).interleaved)){n.interleaved=null;var r=i.next,a=n.pending;if(null!==a){var s=a.next;a.next=r,i.next=s}n.pending=i}Xn=null}return e}function no(e,t){for(;;){var n=ys;
vendor: 10,985 bytes, line 102
102try{if(zn(),Ri.current=Ir,Ui){for(var i=Bi.memoizedState;null!==i;){var r=i.queue;null!==r&&(r.pending=null),i=i.next}Ui=!1}if(Fi=0,ji=Hi=Bi=null,Vi=!1,qi=0,hs.current=null,null===n||null===n.return){ws=1,Ss=t,ys=null;break}e:{var s=e,o=n.return,l=n,u=t;if(t=vs,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=jr(o);if(null!==f){f.flags&=-257,Ur(f,o,l,0,t),1&f.mode&&Hr(s,c,t),u=c;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(0==(1&t)){Hr(s,c,t),ro();break e}u=Error(a(426))}else if(kn&&1&l.mode){var y=jr(o);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),Ur(y,o,l,0,t),Rn(Or(u,l));break e}}s=u=Or(u,l),4!==ws&&(ws=2),null===Ts?Ts=[s]:Ts.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,oi(s,Fr(0,u,t));break e;case 1:l=u;var v=s.type,b=s.stateNode;if(0==(128&s.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Ms||!Ms.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t,oi(s,Br(s,l,t));break e}}s=s.return}while(null!==s)}uo(n)}catch(_){t=_,ys===n&&null!==n&&(ys=n=n.return);continue}break}}function io(){var e=ps.current;return ps.current=Ir,null===e?Ir:e}function ro(){(0===ws||3===ws||2===ws)&&(ws=4),null===gs||0==(268435455&Cs)&&0==(268435455&ks)||Xs(gs,vs)}function ao(e,t){var n=ms;ms|=2;var i=io();for((gs!==e||vs!==t)&&(Is=null,to(e,t));;)try{so();break}catch(r){no(e,r)}if(zn(),ms=n,ps.current=i,null!==ys)throw Error(a(261));return gs=null,vs=0,ws}function so(){for(;null!==ys;)lo(ys)}function oo(){for(;null!==ys&&!Vt();)lo(ys)}function lo(e){var t=Ds(e.alternate,e,bs);e.memoizedProps=e.pendingProps,null===t?uo(e):ys=t,hs.current=null}function uo(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ca(n,t,bs)))return void(ys=n)}else{if(null!==(n=ka(n,t)))return n.flags&=32767,void(ys=n);if(null===e)return ws=6,void(ys=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(ys=t);ys=t=e}while(null!==t);0===ws&&(ws=5)}function co(e,t,n){var i=Bt,r=fs.transition;try{fs.transition=null,Bt=1,po(e,t,n,i)}finally{fs.transition=r,Bt=i}return null}function po(e,t,n,i){do{ho()}while(null!==Ns);if(0!=(6&ms))throw Error(a(327));n=e.finishedWork;var r=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Nt(e,s),e===gs&&(ys=gs=null,vs=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Rs||(Rs=!0,_o(Kt,(function(){return ho(),null}))),s=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||s){s=fs.transition,fs.transition=null;var o=Bt;Bt=1;var l=ms;ms|=4,hs.current=null,Da(e,n),Ga(n,e),R(e.containerInfo),e.current=n,Ya(n),qt(),ms=l,Bt=o,fs.transition=s}else e.current=n;if(Rs&&(Rs=!1,Ns=e,Fs=r),0===(s=e.pendingLanes)&&(Ms=null),Qt(n.stateNode),Ws(e,zt()),null!==t)for(i=e.onRecoverableError,n=0;n<t.length;n++)i((r=t[n]).value,{componentStack:r.stack,digest:r.digest});if(Ps)throw Ps=!1,e=Os,Os=null,e;return 0!=(1&Fs)&&0!==e.tag&&ho(),0!=(1&(s=e.pendingLanes))?e===Hs?Bs++:(Bs=0,Hs=e):Bs=0,on(),null}function ho(){if(null!==Ns){var e=Ht(Fs),t=fs.transition,n=Bt;try{if(fs.transition=null,Bt=16>e?16:e,null===Ns)var i=!1;else{if(e=Ns,Ns=null,Fs=0,0!=(6&ms))throw Error(a(331));var r=ms;for(ms|=4,Aa=e.current;null!==Aa;){var s=Aa,o=s.child;if(0!=(16&Aa.flags)){var l=s.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Aa=c;null!==Aa;){var d=Aa;switch(d.tag){case 0:case 11:case 15:Pa(8,d,s)}var p=d.child;if(null!==p)p.return=d,Aa=p;else for(;null!==Aa;){var h=(d=Aa).sibling,f=d.return;if(Ra(d),d===c){Aa=null;break}if(null!==h){h.return=f,Aa=h;break}Aa=f}}}var m=s.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Aa=s}}if(0!=(2064&s.subtreeFlags)&&null!==o)o.return=s,Aa=o;else e:for(;null!==Aa;){if(0!=(2048&(s=Aa).flags))switch(s.tag){case 0:case 11:case 15:Pa(9,s,s.return)}var v=s.sibling;if(null!==v){v.return=s.return,Aa=v;break e}Aa=s.return}}var b=e.current;for(Aa=b;null!==Aa;){var _=(o=Aa).child;if(0!=(2064&o.subtreeFlags)&&null!==_)_.return=o,Aa=_;else e:for(o=b;null!==Aa;){if(0!=(2048&(l=Aa).flags))try{switch(l.tag){case 0:case 11:case 15:Oa(9,l)}}catch(S){mo(l,l.return,S)}if(l===o){Aa=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Aa=w;break e}Aa=l.return}}if(ms=r,on(),Xt&&"function"==typeof Xt.onPostCommitFiberRoot)try{Xt.onPostCommitFiberRoot(Zt,e)}catch(S){}i=!0}return i}finally{Bt=n,fs.transition=t}}return!1}function fo(e,t,n){e=ai(e,t=Fr(0,t=Or(n,t),1),1),t=Vs(),null!==e&&(Rt(e,1,t),Ws(e,t))}function mo(e,t,n){if(3===e.tag)fo(e,e,n);else for(;null!==t;){if(3===t.tag){fo(t,e,n);break}if(1===t.tag){var i=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===Ms||!Ms.has(i))){t=ai(t,e=Br(t,e=Or(n,e),1),1),e=Vs(),null!==t&&(Rt(t,1,e),Ws(t,e));break}}t=t.return}}function go(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),t=Vs(),e.pingedLanes|=e.suspendedLanes&n,gs===e&&(vs&n)===n&&(4===ws||3===ws&&(130023424&vs)===vs&&500>zt()-As?to(e,0):xs|=n),Ws(e,t)}function yo(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Et,0==(130023424&(Et<<=1))&&(Et=4194304)));var n=Vs();null!==(e=ei(e,t))&&(Rt(e,t,n),Ws(e,n))}function vo(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),yo(e,n)}function bo(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(a(314))}null!==i&&i.delete(t),yo(e,n)}function _o(e,t){return jt(e,t)}function wo(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function So(e,t,n,i){return new wo(e,t,n,i)}function Co(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ko(e){if("function"==typeof e)return Co(e)?1:0;if(null!=e){if((e=e.$$typeof)===f)return 11;if(e===y)return 14}return 2}function xo(e,t){var n=e.alternate;return null===n?((n=So(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function To(e,t,n,i,r,s){var o=2;if(i=e,"function"==typeof e)Co(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case u:return Eo(n.children,r,s,t);case c:o=8,r|=8;break;case d:return(e=So(12,n,t,2|r)).elementType=d,e.lanes=s,e;case m:return(e=So(13,n,t,r)).elementType=m,e.lanes=s,e;case g:return(e=So(19,n,t,r)).elementType=g,e.lanes=s,e;case b:return Ao(n,r,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case p:o=10;break e;case h:o=9;break e;case f:o=11;break e;case y:o=14;break e;case v:o=16,i=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=So(o,n,t,r)).elementType=e,t.type=i,t.lanes=s,t}function Eo(e,t,n,i){return(e=So(7,e,i,t)).lanes=n,e}function Ao(e,t,n,i){return(e=So(22,e,i,t)).elementType=b,e.lanes=n,e.stateNode={isHidden:!1},e}function Lo(e,t,n){return(e=So(6,e,null,t)).lanes=n,e}function Io(e,t,n){return(t=So(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $o(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=W,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mt(0),this.expirationTimes=Mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mt(0),this.identifierPrefix=i,this.onRecoverableError=r,Z&&(this.mutableSourceEagerHydrationData=null)}function Do(e,t,n,i,r,a,s,o,l){return e=new $o(e,t,n,o,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=So(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ni(a),e}function Po(e){if(!e)return dt;e:{if(k(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(gt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(gt(n))return bt(e,n,t)}return t}function Oo(e){var t=e._reactInternals;if(void 0===t)throw"function"==typeof e.render?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return null===(e=E(t))?null:e.stateNode}function Mo(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ro(e,t){Mo(e,t),(e=e.alternate)&&Mo(e,t)}function No(e){return null===(e=E(e))?null:e.stateNode}function Fo(){return null}return H(Vs,"Yt"),H(qs,"Qi"),H(zs,"Fn"),H(Ws,"dn"),H(Gs,"Vp"),H(Ks,"sh"),H(Ys,"oh"),H(Zs,"ab"),H(Xs,"Gi"),H(Qs,"qp"),H(Js,"Qp"),H(eo,"ah"),H(to,"_r"),H(no,"Gp"),H(io,"Yp"),H(ro,"lh"),H(ao,"hl"),H(so,"lb"),H(oo,"cb"),H(lo,"Kp"),H(uo,"Xp"),H(co,"br"),H(po,"ub"),H(ho,"Er"),H(fo,"Zp"),H(mo,"it"),H(go,"hb"),H(yo,"Jp"),H(vo,"db"),H(bo,"fb"),Ds=H((function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||ht.current)qr=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return qr=!1,ya(e,t,n);qr=0!=(131072&e.flags)}else qr=!1,kn&&0!=(1048576&t.flags)&&vn(t,dn,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;ma(e,t),e=t.pendingProps;var r=mt(t,pt.current);Yn(t,n),r=Ki(null,t,i,e,r,n);var s=Yi();return t.flags|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(i)?(s=!0,_t(t)):s=!1,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,ni(t),r.updater=pi,t.stateNode=r,r._reactInternals=t,gi(t,i,e,n),t=Jr(null,t,i,!0,s,n)):(t.tag=0,kn&&s&&bn(t),zr(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(ma(e,t),e=t.pendingProps,i=(r=i._init)(i._payload),t.type=i,r=t.tag=ko(i),e=Hn(i,e),r){case 0:t=Xr(null,t,i,e,n);break e;case 1:t=Qr(null,t,i,e,n);break e;case 11:t=Wr(null,t,i,e,n);break e;case 14:t=Gr(null,t,i,Hn(i.type,e),n);break e}throw Error(a(306,i,""))}return t;
102case 0:return i=t.type,r=t.pendingProps,Xr(e,t,i,r=t.elementType===i?r:Hn(i,r),n);case 1:return i=t.type,r=t.pendingProps,Qr(e,t,i,r=t.elementType===i?r:Hn(i,r),n);case 3:e:{if(ea(t),null===e)throw Error(a(387));i=t.pendingProps,r=(s=t.memoizedState).element,ii(e,t),li(t,i,null,n);var o=t.memoizedState;if(i=o.element,Z&&s.isDehydrated){if(s={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=ta(e,t,i,n,r=Or(Error(a(423)),t));break e}if(i!==r){t=ta(e,t,i,n,r=Or(Error(a(424)),t));break e}for(Z&&(Sn=Ve(t.stateNode.containerInfo),wn=t,kn=!0,En=null,Tn=!1),n=Si(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Mn(),i===r){t=ga(e,t,n);break e}zr(e,t,i,n)}t=t.child}return t;case 5:return Ii(t),null===e&&$n(t),i=t.type,r=t.pendingProps,s=null!==e?e.memoizedProps:null,o=r.children,U(i,r)?o=null:null!==s&&U(i,s)&&(t.flags|=32),Zr(e,t),zr(e,t,o,n),t.child;case 6:return null===e&&$n(t),null;case 13:return la(e,t,n);case 4:return Ai(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=wi(t,null,i,n):zr(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,Wr(e,t,i,r=t.elementType===i?r:Hn(i,r),n);case 7:return zr(e,t,t.pendingProps,n),t.child;case 8:case 12:return zr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,s=t.memoizedProps,Wn(0,i,o=r.value),null!==s)if(en(s.value,o)){if(s.children===r.children&&!ht.current){t=ga(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){o=s.child;for(var u=l.firstContext;null!==u;){if(u.context===i){if(1===s.tag){(u=ri(-1,n&-n)).tag=2;var c=s.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Kn(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===s.tag)o=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(o=s.return))throw Error(a(341));o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),Kn(o,n,t),o=s.sibling}else o=s.child;if(null!==o)o.return=s;else for(o=s;null!==o;){if(o===t){o=null;break}if(null!==(s=o.sibling)){s.return=o.return,o=s;break}o=o.return}s=o}zr(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,Yn(t,n),i=i(r=Zn(r)),t.flags|=1,zr(e,t,i,n),t.child;case 14:return r=Hn(i=t.type,t.pendingProps),Gr(e,t,i,r=Hn(i.type,r),n);case 15:return Kr(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:Hn(i,r),ma(e,t),t.tag=1,gt(i)?(e=!0,_t(t)):e=!1,Yn(t,n),fi(t,i,r),gi(t,i,r,n),Jr(null,t,i,!0,e,n);case 19:return fa(e,t,n);case 22:return Yr(e,t,n)}throw Error(a(156,t.tag))}),"eg"),H(_o,"tg"),H(wo,"pb"),H(So,"zn"),H(Co,"ch"),H(ko,"gb"),H(xo,"Yi"),H(To,"dl"),H(Eo,"Cr"),H(Ao,"fl"),H(Lo,"uh"),H(Io,"hh"),H($o,"mb"),H(Do,"ng"),H(Po,"ig"),H(Oo,"rg"),H(Mo,"sg"),H(Ro,"pl"),H(No,"yb"),H(Fo,"vb"),t.attemptContinuousHydration=function(e){if(13===e.tag){var t=ei(e,134217728);if(null!==t)zs(t,e,134217728,Vs());Ro(e,134217728)}},t.attemptDiscreteHydration=function(e){if(13===e.tag){var t=ei(e,1);if(null!==t)zs(t,e,1,Vs());Ro(e,1)}},t.attemptHydrationAtCurrentPriority=function(e){if(13===e.tag){var t=qs(e),n=ei(e,t);if(null!==n)zs(n,e,t,Vs());Ro(e,t)}},t.attemptSynchronousHydration=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=At(t.pendingLanes);0!==n&&(Ft(t,1|n),Ws(t,zt()),0==(6&ms)&&($s(),on()))}break;case 13:Js((function(){var t=ei(e,1);if(null!==t){var n=Vs();zs(t,e,1,n)}})),Ro(e,1)}},t.batchedUpdates=function(e,t){var n=ms;ms|=1;try{return e(t)}finally{0===(ms=n)&&($s(),nn&&on())}},t.createComponentSelector=function(e){return{$$typeof:es,value:e}},t.createContainer=function(e,t,n,i,r,a,s){return Do(e,t,!1,null,0,i,0,a,s)},t.createHasPseudoClassSelector=function(e){return{$$typeof:ts,value:e}},t.createHydrationContainer=function(e,t,n,i,r,a,s,o,l){return(e=Do(n,i,!0,e,0,a,0,o,l)).context=Po(null),n=e.current,(a=ri(i=Vs(),r=qs(n))).callback=null!=t?t:null,ai(n,a,r),e.current.lanes=r,Rt(e,r,i),Ws(e,i),e},t.createPortal=function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:l,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}},t.createRoleSelector=function(e){return{$$typeof:ns,value:e}},t.createTestNameSelector=function(e){return{$$typeof:is,value:e}},t.createTextSelector=function(e){return{$$typeof:rs,value:e}},t.deferredUpdates=function(e){var t=Bt,n=fs.transition;try{return fs.transition=null,Bt=16,e()}finally{Bt=t,fs.transition=n}},t.discreteUpdates=function(e,t,n,i,r){var a=Bt,s=fs.transition;try{return fs.transition=null,Bt=1,e(t,n,i,r)}finally{Bt=a,fs.transition=s,0===ms&&$s()}},t.findAllNodes=cs,t.findBoundingRects=function(e,t){if(!ie)throw Error(a(363));t=cs(e,t),e=[];for(var n=0;n<t.length;n++)e.push(ae(t[n]));for(t=e.length-1;0<t;t--)for(var i=(n=e[t]).x,r=i+n.width,s=n.y,o=s+n.height,l=t-1;0<=l;l--)if(t!==l){var u=e[l],c=u.x,d=c+u.width,p=u.y,h=p+u.height;if(i>=c&&s>=p&&r<=d&&o<=h){e.splice(t,1);break}if(!(i!==c||n.width!==u.width||h<s||p>o)){p>s&&(u.height+=p-s,u.y=s),h<o&&(u.height=o-p),e.splice(t,1);break}if(!(s!==p||n.height!==u.height||d<i||c>r)){c>i&&(u.width+=c-i,u.x=i),d<r&&(u.width=r-c),e.splice(t,1);break}}return e},t.findHostInstance=Oo,t.findHostInstanceWithNoPortals=function(e){return null===(e=null!==(e=T(e))?L(e):null)?null:e.stateNode},t.findHostInstanceWithWarning=function(e){return Oo(e)},t.flushControlled=function(e){var t=ms;ms|=1;var n=fs.transition,i=Bt;try{fs.transition=null,Bt=1,e()}finally{Bt=i,fs.transition=n,0===(ms=t)&&($s(),on())}},t.flushPassiveEffects=ho,t.flushSync=Js,t.focusWithin=function(e,t){if(!ie)throw Error(a(363));for(t=us(e=ss(e),t),t=Array.from(t),e=0;e<t.length;){var n=t[e++];if(!oe(n)){if(5===n.tag&&ue(n.stateNode))return!0;for(n=n.child;null!==n;)t.push(n),n=n.sibling}}return!1},t.getCurrentUpdatePriority=function(){return Bt},t.getFindAllNodesFailureDescription=function(e,t){if(!ie)throw Error(a(363));var n=0,i=[];e=[ss(e),0];for(var r=0;r<e.length;){var s=e[r++],o=e[r++],l=t[o];if((5!==s.tag||!oe(s))&&(os(s,l)&&(i.push(ls(l)),++o>n&&(n=o)),o<t.length))for(s=s.child;null!==s;)e.push(s,o),s=s.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(ls(t[n]));return"findAllNodes was able to match part of the selector:\n "+i.join(" > ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},t.getPublicRootInstance=function(e){return(e=e.current).child?5===e.child.tag?D(e.child.stateNode):e.child.stateNode:null},t.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:No,findFiberByHostInstance:e.findFiberByHostInstance||Fo,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;
102if(t.isDisabled||!t.supportsFiber)e=!0;else{try{Zt=t.inject(e),Xt=t}catch(n){}e=!!t.checkDCE}}return e},t.isAlreadyRendering=function(){return!1},t.observeVisibleRects=function(e,t,n,i){if(!ie)throw Error(a(363));e=cs(e,t);var r=ce(e,n,i).disconnect;return{disconnect:H((function(){r()}),"disconnect")}},t.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},t.runWithPriority=function(e,t){var n=Bt;try{return Bt=e,t()}finally{Bt=n}},t.shouldError=function(){return null},t.shouldSuspend=function(){return!1},t.updateContainer=function(e,t,n,i){var r=t.current,a=Vs(),s=qs(r);return n=Po(n),null===t.context?t.context=n:t.pendingContext=n,(t=ri(a,s)).payload={element:e},null!==(i=void 0===i?null:i)&&(t.callback=i),null!==(e=ai(r,t,s))&&(zs(e,r,s,a),si(e,r,s)),s},t}})),En=ue(((e,t)=>{t.exports=Tn()})),An=ue((e=>{var t=(Cn(),he($t));e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),Ln=ue(((e,t)=>{var n,i;n=e,i=function(e){function t(e){return null==e}function n(e){throw new Error("Argument "+e+" is empty.")}function i(e){return"function"==typeof e&&"getType"in e}function r(e){throw new Error("Argument "+e+' is invalid, it should be an action-creator instance from "typesafe-actions"')}function a(e,t){if(null==e)throw new Error("Argument contains array with empty element at index "+t);if(null==e.getType)throw new Error("Argument contains array with invalid element at index "+t+', it should be an action-creator instance from "typesafe-actions"')}function s(e){return"string"==typeof e||"symbol"==typeof e}function o(e){return!s(e)}function l(e){throw new Error("Argument "+e+" is invalid, it should be an action type of type: string | symbol")}function u(e,t){if(null==e)throw new Error("Argument contains array with empty element at index "+t);if("string"!=typeof e&&"symbol"!=typeof e)throw new Error("Argument contains array with invalid element at index "+t+", it should be of type: string | symbol")}function c(e,i,a,s){return t(e)&&n(1),o(e)&&r(1),{type:e,payload:i,meta:a,error:s}}
102function d(e,i){return t(e)&&n(1),o(e)&&l(1),Object.assign((function(){var t=null!=i?i.apply(void 0,arguments):void 0;return Object.assign({type:e},t)}),{getType:H((function(){return e}),"getType"),toString:H((function(){return e}),"toString")})}function p(e,i,r){return t(e)&&n(1),o(e)&&l(1),function(){return d(e,(function(){var e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1];return null==i&&null==r||(e=null!=i?i.apply(void 0,arguments):void 0,t=null!=r?r.apply(void 0,arguments):void 0),Object.assign({},void 0!==e&&{payload:e},{},void 0!==t&&{meta:t})}))}}function h(e){return t(e)&&n(1),i(e)||r(1),e.getType()}function f(e,i){t(e)&&n(1),o(e)&&l(1);var r=null!=i?i(e):function(){return{type:e}};return Object.assign(r,{getType:H((function(){return e}),"getType"),toString:H((function(){return e}),"toString")})}H(t,"e"),H(n,"n"),H(i,"i"),H(r,"r"),H(a,"s"),H(s,"l"),H(o,"c"),H(l,"h"),H(u,"p"),H(c,"d"),H(d,"m"),H(p,"y"),H(h,"x"),H(f,"w");var m={createAction:H((function(e,t){var n=null==t?function(){return c(e)}:t(c.bind(null,e));return Object.assign(n,{getType:H((function(){return e}),"getType"),toString:H((function(){return e}),"toString")})}),"createAction"),createCustomAction:f,createStandardAction:H((function(e){return t(e)&&n(1),o(e)&&l(1),Ob
102ject.assign((function(){return f(e,(function(e){return function(t,n){return{type:e,payload:t,meta:n}}}))}),{map:H((function(t){return f(e,(function(e){return function(n,i){return Object.assign(t(n,i),{type:e})}}))}),"map")})}),"createStandardAction")};e.action=c,e.createAction=p,e.createAsyncAction=function(e,t,n,i){return function(){var r=[e,t,n,i].map((function(e,t){return Array.isArray(e)?p(e[0],e[1],e[2])():"string"==typeof e||"symbol"==typeof e?p(e)():void(t<3&&function(e){throw new Error("Argument "+e+' is invalid, it should be an action type of "string | symbol" or a tuple of "[string | symbol, Function, Function?]"')}(t))}));return{request:r[0],success:r[1],failure:r[2],cancel:r[3]}}},e.createCustomAction=d,e.createReducer=H((function e(t,n){void 0===n&&(n={});var r=Object.assign({},n),a=H((function(n,a){var o=Array.isArray(n)?n:[n],l={};return o.map((function(e,t){return i(e)?h(e):s(e)?e:function(e){throw new Error("Argument "+e+' is invalid, it should be an action-creator instance from "typesafe-actions" or action type of type: string | symbol')}(t+1)})).forEach((function(e){return l[e]=a})),e(t,Object.assign({},r,{},l))}),"k");return Object.assign((function(e,n){if(void 0===e&&(e=t),r.hasOwnProperty(n.type)){var i=r[n.type];if("function"!=typeof i)throw Error('Reducer under "'+n.type+'" key is not a valid reducer');return i(e,n)}return e}),{handlers:Object.assign({},r),handleAction:a,handleType:a})}),"_"),e.deprecated=m,e.getType=h,e.isActionOf=function(e,i){t(e)&&n(1);var r=Array.isArray(e)?e:[e];r.forEach(a);var s=H((function(e){return r.some((function(t){return e.type===t.getType()}))}),"P");return void 0===i?s:s(i)},e.isOfType=function(e,i){t(e)&&n(1);var r=Array.isArray(e)?e:[e];r.forEach(u);var a=H((function(e){return r.includes(e.type)}),"P");return void 0===i?a:a(i)}},i("object"==typeof e&&typeof t<"u"?e:(n=n||self).TypesafeActions={})})),In=ue(((e,t)=>{var n,i;n=e,i=function(e,t){function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:H((function(){return e[n]}),"get")})}})),t.default=e,Object.freeze(t)}H(n,"n");var i=n(t);function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}H(r,"r"),H(a,"s");var s=H((function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))}),"l"),o={error:null},l=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).state=o,t.resetErrorBoundary=function(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];null==t.props.onReset||(e=t.props).onReset.apply(e,i),t.reset()},t}a(t,e),H(t,"y"),t.getDerivedStateFromError=function(e){return{error:e}};var n=t.prototype;return n.reset=function(){this.setState(o)},n.componentDidCatch=function(e,t){var n,i;null==(n=(i=this.props).onError)||n.call(i,e,t)},n.componentDidUpdate=function(e,t){var n,i,r=this.state.error,a=this.props.resetKeys;null!==r&&null!==t.error&&s(e.resetKeys,a)&&(null==(n=(i=this.props).onResetKeysChange)||n.call(i,e.resetKeys,a),this.reset())},n.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,r=t.FallbackComponent,a=t.fallback;if(null!==e){var s={error:e,resetErrorBoundary:this.resetErrorBoundary};if(i.isValidElement(a))return a;if("function"==typeof n)return n(s);if(r)return i.createElement(r,s);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(i.Component);function u(e,t){var n=H((function(n){return i.createElement(l,t,i.createElement(e,n))}),"x"),r=e.displayName||e.name||"Unknown";return n.displayName="withErrorBoundary("+r+")",n}function c(e){var t=i.useState(null),n=t[0],r=t[1];if(null!=e)throw e;if(null!=n)throw n;return r}H(u,"p"),H(c,"d"),e.ErrorBoundary=l,e.useErrorHandler=c,e.withErrorBoundary=u,Object.defineProperty(e,"__esMo
102dule",{value:!0})},"object"==typeof e&&typeof t<"u"?i(e,(Cn(),he($t))):i((n=typeof globalThis<"u"?globalThis:n||self).ReactErrorBoundary={},n.React)}));function $n(e,t,n,i){function r(){let t=Reflect.construct(HTMLElement,[],r);return t._vdomComponent=e,t._shadowEnabled=i&&i.shadow,t._root=t._shadowEnabled?t.attachShadow({mode:"open"}):t,i.onConstruct&&i.onConstruct(t),t.ready=!1,t.whenReady=e=>{t.ready?e():t.addEventListener("ready",e)},t}H(r,"r"),r.prototype=Object.create(HTMLElement.prototype),r.prototype.constructor=r,r.prototype.connectedCallback=Pn,r.prototype.attributeChangedCallback=Mn,r.prototype.disconnectedCallback=Rn,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),r.observedAttributes=n,n.forEach((e=>{Object.defineProperty(r.prototype,e,{get(){return this._vdom?this._vdom.props[e]:(this._props||(this._props={}),this._props[e])},set(t){this._vdom?(this._props[e]=t,this.attributeChangedCallback(e,null,t)):(this._props||(this._props={}),this._props[e]=t,this._props[On(e)]=t);let n=typeof t;(null==t||"string"===n||"boolean"===n||"number"===n)&&this.setAttribute(e,t)}})})),i.beforeCreate&&i.beforeCreate(r);let a=t||e.tagName||e.displayName||e.name;if(!customElements.get(a))return customElements.define(t||e.tagName||e.displayName||e.name,r)}function Dn(e){this.getChildContext=()=>e.context;let t=e,{context:n,children:i}=t;return Ve(i,oe(t,["context","children"]))}function Pn(){let e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e);let t=e.detail.context;this._vdom=ye(Dn,ae(re({},this._props),{context:t}),Fn(this,this._vdomComponent,this._shadowEnabled)),(this.hasAttribute("hydrate")?Ue:je)(this._vdom,this._root),this.ready||(this.ready=!0,this.dispatchEvent(new CustomEvent("ready",{detail:{},bubbles:!1,cancelable:!1})))}function On(e){return e.replace(/-(\w)/g,((e,t)=>t?t.toUpperCase():""))}function Mn(e,t,n){if(!this._vdom)return;n=null==n?void 0:n;let i={};i[e]=n,i[On(e)]=n,this._vdom=Ve(this._vdom,i),je(this._vdom,this._root)}function Rn(){je(this._vdom=null,this._root)}function Nn(e,t){let n=e,{shadow:i,addContextListener:r,removeContextListener:a}=n,s=oe(n,["shadow","addContextListener","removeContextListener"]),o=H((e=>{e?(this.ref=e,this._listener||(this._listener=e=>{e.stopPropagation(),e.detail.context=t},r(this._listener,this.ref))):a(this._listener,this.ref)}),"l");return!i&&!this._listener&&(this._listener=e=>{e.stopPropagation(),e.detail.context=t},r(this._listener)),ye(i?"slot":_e,ae(re({},s),{ref:o}))}function Fn(e,t,n){if(3===e.nodeType)return e.data;if(1!==e.nodeType)return null;let i=[],r={},a=0,s=e.attributes,o=e.childNodes;for(a=s.length;a--;)"slot"!==s[a].name&&(r[s[a].name]=s[a].value,r[On(s[a].name)]=s[a].value);for(a=o.length;a--;){let e=o[a],t=Fn(e,null,n),s=e.slot;s?r[s]=ye(Nn,{name:s,shadow:n,addContextListener(t,n=e){n.addEventListener("_preact",t)},removeContextListener(t,n=e){n.removeEventListener("_preact",t)}},t):i[a]=t}let l=t?ye(Nn,{shadow:n,addContextListener(t,n=e){n.addEventListener("_preact",t)},removeContextListener(t,n=e){n.removeEventListener("_preact",t)}},i):i;return!n&&t&&(e.innerHTML=""),ye(t||e.nodeName.toLowerCase(),r,l)}tt(),H($n,"gn"),H(Dn,"kb"),H(Pn,"Mb"),H(On,"vh"),H(Mn,"Fb"),H(Rn,"zb"),H(Nn,"Cg"),H(Fn,"Ag"),Cn(),Cn(),Cn(),Cn(),Cn();var Bn,Hn,jn=pe(En(),1),Un=["onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onScroll","onWheel","onClick","onDragStart","onDragEnd","onDragEnter","onDragExit","onDrag","onDragOver"];function Vn(){return Un.reduce(((e,t)=>(e[t]=[],e)),{})}H(Vn,"Kb");var qn=Un.reduce(((e,t)=>(e[t.slice(2).toLowerCase()]=t,e[t]=t,e)),{}),zn=H(((e,t,n)=>{let i=e.length,r=n||Wn(i);for(let a=0;a<i;a++)r[a]=a%5==0?e[a+1]<t[3]&&e[a+3]>t[1]&&e[a+2]<t[4]&&e[a+4]>t[2]?1:0:e[a];return r}),"Go");function Wn(e,t,n){return new Float32Array(e,t,n)}H(Wn,"de");var Gn=H(((e,t,n)=>{let i=e[1]<=t[3]&&e[3]>=t[1]&&e[2]<=t[4]&&e[4]>=t[2],r=n||Wn(5);return i?(r[0]=1,r[1]=Math.max(e[1],t[1]),r[2]=Math.max(e[2],t[2]),r[3]=Math.min(e[3],t[3]),r[4]=Math.min(e[4],t[4]),r):(r[0]=0,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r)}),"Xb"),Kn=H((e=>e.length/5),"Zb"),Yn=H(((e,t,n)=>{let i=n||Wn(9);return i[0]=e[0]*t[0]+e[1]*t[3]+e[2]*t[6],i[1]=e[0]*t[1]+e[1]*t[4]+e[2]*t[7],i[2]=e[0]*t[2]+e[1]*t[5]+e[2]*t[8],i[3]=e[3]*t[0]+e[4]*t[3]+e[5]*t[6],i[4]=e[3]*t[1]+e[4]*t[4]+e[5]*t[7],i[5]=e[3]*t[2]+e[4]*t[5]+e[5]*t[8],i[6]=e[6]*t[0]+e[7]*t[3]+e[8]*t[6],i[7]=e[6]*t[1]+e[7]*t[4]+e[8]*t[7],i[8]=e[6]*t[2]+e[7]*t[5]+e[8]*t[8],i}),"Ii"),Zn=(H(e=class{constructor(e){this.index=0,this.length=e,this.points=Wn(this.length)}static grid(e=1,t=1){return new Zn(5*e*t)}static point(e,t){let n=Wn(5);
102return n[0]=1,n[1]=e,n[2]=t,n[3]=e,n[4]=t,n}static positionPair(e){let t=Wn(5);return t[0]=1,t[1]=e.x1,t[2]=e.y1,t[3]=e.x2,t[4]=e.y2,t}static projection(e){return Zn.singleBox(e.width,e.height,e.x,e.y)}static singleBox(e,t,n=0,i=0){let r=Wn(5);return r[0]=1,r[1]=n,r[2]=i,r[3]=e+n,r[4]=t+i,r}row(e){return e(this)}addPoints(e,t,n,i){return this.points[this.index]=1,this.points[1+this.index]=e,this.points[2+this.index]=t,this.points[3+this.index]=n,this.points[4+this.index]=i,this.index+=5,this}addBox(e,t,n,i){return this.addPoints(e,t,e+n,t+i),this}build(){return this.points}},"Me"),e),Xn=H(((e,t)=>{let n=e.length;for(let i=0;i<n;i++)e[i]=i%5==0?t[6]*e[i+1]+t[7]*e[i+2]+t[8]*e[i]:i%5%2==1?t[0]*e[i]+t[1]*e[i+1]+t[2]:t[3]*e[i-1]+t[4]*e[i]+t[5];return e}),"fi"),Qn=H((e=>{let t=Wn(9);return t[0]=e,t[4]=e,t[8]=1,t}),"ar"),Jn=H(((e,t)=>{let n=Wn(9);return n[0]=1,n[2]=e,n[4]=1,n[5]=t,n[8]=1,n}),"on"),ei=H(((e,t,n)=>Yn(Jn((1-e)*t,(1-e)*n),Qn(e))),"Yo"),ti=H(((e,t,n)=>{let i=e.length,r=n&&n.length>=i?n.slice(0,i):Wn(i);for(let a=0;a<i;a++)r[a]=a%5==0?t[6]*e[a+1]+t[7]*e[a+2]+t[8]*e[a]:a%5%2==1?t[0]*e[a]+t[1]*e[a+1]+t[2]:t[3]*e[a-1]+t[4]*e[a]+t[5];return r}),"Ti"),ni=H(((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"")),"nc"),ii=(H(t=class{constructor(){this.__revision=0,this.__owner={value:void 0},this.__state={},this.scale=1,this.layers=[],this.time=[],this.addEventListener=(e,t,n)=>{let i=qn[e];if(!this.eventHandlers[i])throw new Error(`Unknown event ${i}`);-1===this.eventHandlers[i].indexOf(t)&&this.eventHandlers[i].push(t)},this.removeEventListener=(e,t)=>{let n=qn[e];this.eventHandlers[n]?-1!==this.eventHandlers[n].indexOf(t)&&(this.eventHandlers[n]=this.eventHandlers[n].filter((e=>e!==t))):console.warn(`Unknown event ${n}`)},this.id=this.__id=ni(),this.eventHandlers=Vn()}get crop(){return this._crop}set crop(e){this._crop=e}getObjectsAt(e){return[]}getAllPointsAt(e,t,n){return[]}getScheduledUpdates(e,t){return[]}dispatchEvent(e,t){let n=this.eventHandlers[e],i=n?n.length:0,r=!1;if(i)for(let s=0;s<i;s++)try{n[s](t),r=!0}catch(a){console.error(e,a)}return r}get x(){return this.points[1]}get y(){return this.points[2]}get width(){return this.points[3]-this.points[1]}get height(){return this.points[4]-this.points[2]}translate(e,t){Xn(this.points,Jn(e,t))}atScale(e){Xn(this.points,ei(e,this.x,this.y)),this.scale*=e}transform(e){Xn(this.points,e)}applyProps(e){this.__revision++}appendChild(e){}removeChild(e){}insertBefore(e,t){}hideInstance(){}},"Kn"),t),ri=(H(n=class extends ii{constructor(e){if(super(),this.type="spacial-content",this.style={opacity:1},e){let t=e.scale||1;this.id=e.id||e.uri,this.uri=e.uri,this.points=Zn.singleBox(e.width,e.height,e.x,e.y),this.display={x:0,y:0,scale:t,width:e.width/t,height:e.height/t,points:Zn.singleBox(e.width/t,e.height/t),rotation:null==e?void 0:e.rotation}}else this.id="",this.uri="",this.display={x:0,y:0,scale:1,width:0,height:0,points:Wn(5)},this.points=Wn(5)}applyProps(e){let t=e.display?e.display.width:e.target.width,n=e.target.width/t;if(this.id=e.id||e.uri,this.uri=e.uri,this.points.set(Zn.singleBox(e.target.width,e.target.height,e.target.x,e.target.y)),e.style&&typeof e.style.opacity<"u"&&(this.style.opacity=e.style.opacity),e.crop){this.cropData=e.crop;let t=Zn.singleBox(e.crop.width,e.crop.height,e.crop.x,e.crop.y);Xn(t,Jn(-e.crop.x,-e.crop.y)),this.crop?this.crop.set(t):this.crop=Wn(t)}e.display?(this.display.scale=n,this.display.width=e.display.width,this.display.height=e.display.height,this.display.rotation=e.display.rotation,this.display.points=Zn.singleBox(e.display.width,e.display.height)):(this.display.scale=n,this.display.width=e.target.width/n,this.display.height=e.target.height/n,this.display.points=Zn.singleBox(e.target.width/n,e.target.height/n))}getAllPointsAt(e,t,n){return[[this,this.crop||this.points,t]]}static fromSvg(e,t,n,i){return ri.fromImage("data:image/svg+xml;base64,"+btoa(e),t,n,i)}static fromImage(e,t,n,i){let r=new ri;return r.applyProps({uri:e,id:i,display:n,target:t}),r}getImageUrl(){return this.uri}},"vn"),n),ai=(H(i=class extends ii{constructor(e){if(super(),this.type="spacial-content",this.getTexture=()=>({source:void 0,hash:-1}),e){let t=e.scale||1;
102this.id=e.id||e.uri,this.uri=e.uri,this.points=Zn.singleBox(e.width,e.height),this.display={x:0,y:0,scale:t,width:e.width/t,height:e.height/t,points:1!==t?Zn.singleBox(e.width/t,e.height/t):this.points}}else this.id="",this.uri="",this.display={x:0,y:0,scale:1,width:0,height:0,points:Wn(5)},this.points=Wn(5)}applyProps(e){let t=e.display?e.display.width:e.target.width,n=e.target.width/t;this.id=e.id,this.points.set(Zn.singleBox(e.target.width,e.target.height)),this.display.scale=n,this.display.width=e.target.width/n,this.display.height=e.target.height/n,this.getTexture=e.getTexture,this.display.points=1!==n?Zn.singleBox(e.target.width/n,e.target.height/n):this.points}getAllPointsAt(e,t,n){return[[this,this.points,t]]}},"Fs"),i);function si(e,t,n=1){let i=t.length;if(0===i)throw new Error("No resources passed in.");let r=0;for(let a=0;a<i&&t[a]&&t[a].display;a++)r=Math.abs(t[a].display.scale-e)*n<Math.abs(t[r].display.scale-e)?a:r;return r}function oi(e,t){return Math.abs(e-t)}function li(e,t){let n=oi(e.x,t.x),i=oi(e.y,t.y);return Math.sqrt(Math.pow(n,2)+Math.pow(i,2))}function ui(e){let t=e.length;return e.indexOf("/info.json")===t-10?e.slice(0,-10):e}function ci(...e){return t=>e.forEach((e=>{return i=t,void("function"==typeof(n=e)?n(i):null!=n&&(n.current=i));var n,i}))}function di(...e){return ct(ci(...e),e)}function pi(){return pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},pi.apply(this,arguments)}H(si,"Jb"),H(oi,"_m"),H(li,"Ql"),H(ui,"eE"),H(ci,"zy"),H(di,"ic"),H(pi,"Zt");var hi=Rt(((e,t)=>{let n=e,{children:i}=n,r=oe(n,["children"]);return rn.toArray(i).some(gi)?ye(_e,null,rn.map(i,(e=>gi(e)?ye(fi,pi({},r,{ref:t}),e.props.children):e))):ye(fi,pi({},r,{ref:t}),i)}));hi.displayName="Slot";var fi=Rt(((e,t)=>{let n=e,{children:i}=n,r=oe(n,["children"]);return Zt(i)?Xt(i,ae(re({},yi(r,i.props)),{ref:ci(t,i.ref)})):rn.count(i)>1?rn.only(null):null}));fi.displayName="SlotClone";var mi=H((({children:e})=>ye(_e,null,e)),"Ny");function gi(e){return Zt(e)&&e.type===mi}function yi(e,t){let n=re({},t);for(let i in t){let r=e[i],a=t[i];/^on[A-Z]/.test(i)?n[i]=(...e)=>{null==a||a(...e),null==r||r(...e)}:"style"===i?n[i]=re(re({},r),a):"className"===i&&(n[i]=[r,a].filter(Boolean).join(" "))}return re(re({},e),n)}H(gi,"bm"),H(yi,"tE");var vi=Boolean(null==globalThis?void 0:globalThis.document)?st:()=>{},bi=H((function(e,t,n,i){this.name=e,this.fn=t,this.args=n,this.modifiers=i}),"rc");function _i(e,t){return void 0===t&&(t="simple"),"object"==typeof e?e[t]:e}function wi(e,t,n){if(e.length){var i=e.shift(),r=wi(e,t,n);return i.perform(r,n)}return _i(t)}function Si(e,t,n){if(e.length){var i=e.shift(),r=Si(e,t,n);return i.performAsync(r,n)}return function(e){return Promise.resolve(_i(t,"async")(e))}}bi.prototype._test=function(e){var t=this.fn;try{wi(this.modifiers.slice(),t,this)(e)}catch(n){t=H((function(){return!1}),"n")}try{return wi(this.modifiers.slice(),t,this)(e)}catch(n){return!1}},bi.prototype._check=function(e){try{wi(this.modifiers.slice(),this.fn,this)(e)}catch(t){if(wi(this.modifiers.slice(),(function(e){return e}),this)(!1))return}if(!wi(this.modifiers.slice(),this.fn,this)(e))throw null},bi.prototype._testAsync=function(e){var t=this;return new Promise((function(n,i){Si(t.modifiers.slice(),t.fn,t)(e).then((function(t){t?n(e):i(null)})).catch((function(e){return i(e)}))}))},H(_i,"Dy"),H(wi,"ks"),H(Si,"jy");var Ci=H((function(e,t,n){this.name=e,this.perform=t,this.performAsync=n}),"nE"),ki=function(e){function t(n,i,r,a){for(var s=[],o=arguments.length-4;o-- >0;)s[o]=arguments[o+4];e.call(this,s),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=i,this.cause=r,this.target=a}return H(t,"e"),e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),xi=H((function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.chain=e,this.nextRuleModifiers=t}),"pi");function Ti(e,t,n,i){if(t.length){var r=t.shift();r._testAsync(e).then((function(){Ti(e,t,n,i)}),(function(t){i(new ki(r,e,t))}))}else n(e)}xi.prototype._applyRule=function(e,t){var n=this;return function(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];return n.chain.push(new bi(t,e.apply(n,i),i,n.nextRuleModifiers)),n.nextRuleModifiers=[],n}},xi.prototype._applyModifier=function(e,t){return this.nextRuleModifiers.push(new Ci(t,e.simple,e.async)),this},xi.prototype._clone=function(){return new xi(this.chain.slice(),this.nextRuleModifiers.slice())},xi.prototype.test=function(e){return this.chain.every((function(t){return t._test(e)}))},xi.prototype.testAll=function(e){var t=[];return this.chain.forEach((function(n){try{n._check(e)}catch(i){t.push(new ki(n,e,i))}})),t},xi.prototype.check=function(e){this.chain.forEach((function(t){try{t._check(e)}catch(n){throw new ki(t,e,n)}}))},xi.prototype.testAsync=function(e){var t=this;return new Promise((function(n,i){Ti(e,t.chain.slice(),n,i)}))},H(Ti,"By");var Ei=H((function(e,t){return!(!t||"string"!=typeof e||0!==e.trim().length)||null==e}),"Em");function Ai(e,t){return void 0===t&&(t=!1),{simple:H((function(n){return Ei(n,t)||void 0===e.check(n)}),"simple"),async:H((function(n){return Ei(n,t)||e.testAsync(n)}),"async")}}function Li(){return typeof Proxy<"u"?$i(new xi):Di(new xi)}H(Ai,"iE"),H(Li,"rr");var Ii={};function $i(e){return new Proxy(e,{get:H((function(t,n){if(n in t)return t[n];var i=$i(e._clone());return n in Pi?i._applyModifier(Pi[n],n):n in Ii?i._applyRule(Ii[n],n):n in Ri?i._applyRule(Ri[n],n):void 0}),"get")})}function Di(e){var t=H((function(e,t){return Object.keys(e).forEach((function(n){t[n]=function(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];return Di(t._clone())._applyRule(e[n],n).apply(void 0,i)}})),t}),"e"),n=t(Ri,e),i=t(Ii,n);
102return Object.keys(Pi).forEach((function(e){Object.defineProperty(i,e,{get:H((function(){return Di(i._clone())._applyModifier(Pi[e],e)}),"get")})})),i}Li.extend=function(e){Object.assign(Ii,e)},Li.clearCustomRules=function(){Ii={}},H($i,"Wy"),H(Di,"Uh");var Pi={not:{simple:H((function(e){return function(t){return!e(t)}}),"simple"),async:H((function(e){return function(t){return Promise.resolve(e(t)).then((function(e){return!e})).catch((function(){return!0}))}}),"async")},some:{simple:H((function(e){return function(t){return Mi(t).some((function(t){try{return e(t)}catch(n){return!1}}))}}),"simple"),async:H((function(e){return function(t){return Promise.all(Mi(t).map((function(t){try{return e(t).catch((function(){return!1}))}catch(n){return!1}}))).then((function(e){return e.some(Boolean)}))}}),"async")},every:{simple:H((function(e){return function(t){return!1!==t&&Mi(t).every(e)}}),"simple"),async:H((function(e){return function(t){return Promise.all(Mi(t).map(e)).then((function(e){return e.every(Boolean)}))}}),"async")},strict:{simple:H((function(e,t){return function(n){return Oi(t)&&n&&"object"==typeof n?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}}),"simple"),async:H((function(e,t){return function(n){return Promise.resolve(e(n)).then((function(e){return Oi(t)&&n&&"object"==typeof n?Object.keys(t.args[0]).length===Object.keys(n).length&&e:e})).catch((function(){return!1}))}}),"async")}};function Oi(e){return e&&"schema"===e.name&&e.args.length>0&&"object"==typeof e.args[0]}function Mi(e){return"string"==typeof e?e.split(""):e}H(Oi,"Cm"),H(Mi,"Il");var Ri={equal:H((function(e){return function(t){return t==e}}),"equal"),exact:H((function(e){return function(t){return t===e}}),"exact"),number:H((function(e){return void 0===e&&(e=!0),function(t){return"number"==typeof t&&(e||isFinite(t))}}),"number"),integer:H((function(){return function(e){return(Number.isInteger||Fi)(e)}}),"integer"),numeric:H((function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}}),"numeric"),string:H((function(){return Ni("string")}),"string"),boolean:H((function(){return Ni("boolean")}),"boolean"),undefined:H((function(){return Ni("undefined")}),"undefined"),null:H((function(){return Ni("null")}),"null"),array:H((function(){return Ni("array")}),"array"),object:H((function(){return Ni("object")}),"object"),instanceOf:H((function(e){return function(t){return t instanceof e}}),"instanceOf"),pattern:H((function(e){return function(t){return e.test(t)}}),"pattern"),lowercase:H((function(){return function(e){return"boolean"==typeof e||e===e.toLowerCase()&&""!==e.trim()}}),"lowercase"),uppercase:H((function(){return function(e){return e===e.toUpperCase()&&""!==e.trim()}}),"uppercase"),vowel:H((function(){return function(e){return/^[aeiou]+$/i.test(e)}}),"vowel"),consonant:H((function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}}),"consonant"),first:H((function(e){return function(t){return t[0]==e}}),"first"),last:H((function(e){return function(t){return t[t.length-1]==e}}),"last"),empty:H((function(){return function(e){return 0===e.length}}),"empty"),length:H((function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}}),"length"),minLength:H((function(e){return function(t){return t.length>=e}}),"minLength"),maxLength:H((function(e){return function(t){return t.length<=e}}),"maxLength"),negative:H((function(){return function(e){return e<0}}),"negative"),positive:H((function(){return function(e){return e>=0}}),"positive"),between:H((function(e,t){return function(n){return n>=e&&n<=t}}),"between"),range:H((function(e,t){return function(n){return n>=e&&n<=t}}),"range"),lessThan:H((function(e){return function(t){return t<e}}),"lessThan"),lessThanOrEqual:H((function(e){return function(t){return t<=e}}),"lessThanOrEqual"),greaterThan:H((function(e){return function(t){return t>e}}),"greaterThan"),greaterThanOrEqual:H((function(e){return function(t){return t>=e}}),"greaterThanOrEqual"),even:H((function(){return function(e){return e%2==0}}),"even"),odd:H((function(){return function(e){return e%2!=0}}),"odd"),includes:H((function(e){return function(t){return~t.indexOf(e)}}),"includes"),schema:H((function(e){return Bi(e)}),"schema"),passesAnyOf:H((function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(t){return e.some((function(e){return e.test(t)}))}}),"passesAnyOf"),optional:Ai};function Ni(e){return function(t){return Array.isArray(t)&&"array"===e||null===t&&"null"===e||typeof t===e}}function Fi(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function Bi(e){return{simple:H((function(t){var n=[];if(Object.keys(e).forEach((function(i){var r=e[i];try{r.check((t||{})[i])}catch(a){a.target=i,n.push(a)}})),n.length>0)throw n;return!0}),"simple"),async:H((function(t){var n=[],i=Object.keys(e).map((function(i){return e[i].testAsync((t||{})[i]).catch((function(e){e.target=i,n.push(e)}))}));return Promise.all(i).then((function(){if(n.length>0)throw n;return!0}))}),"async")}}H(Ni,"As"),H(Fi,"rE"),H(Bi,"sE");var Hi="colors",ji="sizes",Ui="space",Vi={gap:Ui,gridGap:Ui,columnGap:Ui,gridColumnGap:Ui,rowGap:Ui,gridRowGap:Ui,inset:Ui,insetBlock:Ui,insetBlockEnd:Ui,insetBlockStart:Ui,insetInline:Ui,insetInlineEnd:Ui,insetInlineStart:Ui,margin:Ui,marginTop:Ui,marginRight:Ui,marginBottom:Ui,marginLeft:Ui,marginBlock:Ui,marginBlockEnd:Ui,marginBlockStart:Ui,marginInline:Ui,marginInlineEnd:Ui,marginInlineStart:Ui,padding:Ui,paddingTop:Ui,paddingRight:Ui,paddingBottom:Ui,paddingLeft:Ui,paddingBlock:Ui,paddingBlockEnd:Ui,paddingBlockStart:Ui,paddingInline:Ui,paddingInlineEnd:Ui,paddingInlineStart:Ui,top:Ui,right:Ui,bottom:Ui,left:Ui,scrollMargin:Ui,scrollMarginTop:Ui,scrollMarginRight:Ui,scrollMarginBottom:Ui,scrollMarginLeft:Ui,scrollMarginX:Ui,scrollMarginY:Ui,scrollMarginBlock:Ui,scrollMarginBlockEnd:Ui,scrollMarginBlockStart:Ui,scrollMarginInline:Ui,scrollMarginInlineEnd:Ui,scrollMarginInlineStart:Ui,scrollPadding:Ui,scrollPaddingTop:Ui,scrollPaddingRight:Ui,scrollPaddingBottom:Ui,scrollPaddingLeft:Ui,scrollPaddingX:Ui,scrollPaddingY:Ui,scrollPaddingBlock:Ui,scrollPaddingBlockEnd:Ui,scrollPaddingBlockStart:Ui,scrollPaddingInline:Ui,scrollPaddingInlineEnd:Ui,scrollPaddingInlineStart:Ui,fontSize:"fontSizes",background:Hi,backgroundColor:Hi,backgroundImage:Hi,borderImage:Hi,border:Hi,borderBlock:Hi,borderBlockEnd:Hi,borderBlockStart:Hi,borderBottom:Hi,borderBottomColor:Hi,borderColor:Hi,borderInline:Hi,borderInlineEnd:Hi,borderInlineStart:Hi,borderLeft:Hi,borderLeftColor:Hi,borderRight:Hi,borderRightColor:Hi,borderTop:Hi,borderTopColor:Hi,caretColor:Hi,color:Hi,columnRuleColor:Hi,fill:Hi,outline:Hi,outlineColor:Hi,stroke:Hi,textDecorationColor:Hi,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:ji,minBlockSize:ji,maxBlockSize:ji,inlineSize:ji,minInlineSize:ji,maxInlineSize:ji,width:ji,minWidth:ji,maxWidth:ji,height:ji,minHeight:ji,maxHeight:ji,flexBasis:ji,gridTemplateColumns:ji,gridTemplateRows:ji,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},qi=H(((e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t),"aE"),zi=H((()=>{let e=Object.create(null);return(t,n,...i)=>{let r=(a=t,JSON.stringify(a,qi));var a;return r in e?e[r]:e[r]=n(t,...i)}}),"zs"),Wi=Symbol.for("sxs.internal"),Gi=H(((e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t))),"cd"),Ki=H((e=>{for(let t in e)return!0;return!1}),"Am"),{hasOwnProperty:Yi}=Object.prototype,Zi=H((e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))),"Vh"),Xi=/\s+(?![^()]*\))/,Qi=H((e=>t=>e(..."string"==typeof t?String(t).split(Xi):[t])),"Rs"),Ji={appearance:H((e=>({WebkitAppearance:e,appearance:e})),"appearance"),backfaceVisibility:H((e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e})),"backfaceVisibility"),backdropFilter:H((e=>({WebkitBackdropFilter:e,backdropFilter:e})),"backdropFilter"),backgroundClip:H((e=>
102({WebkitBackgroundClip:e,backgroundClip:e})),"backgroundClip"),boxDecorationBreak:H((e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e})),"boxDecorationBreak"),clipPath:H((e=>({WebkitClipPath:e,clipPath:e})),"clipPath"),content:H((e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`})),"content"),hyphens:H((e=>({WebkitHyphens:e,hyphens:e})),"hyphens"),maskImage:H((e=>({WebkitMaskImage:e,maskImage:e})),"maskImage"),maskSize:H((e=>({WebkitMaskSize:e,maskSize:e})),"maskSize"),tabSize:H((e=>({MozTabSize:e,tabSize:e})),"tabSize"),textSizeAdjust:H((e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e})),"textSizeAdjust"),userSelect:H((e=>({WebkitUserSelect:e,userSelect:e})),"userSelect"),marginBlock:Qi(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:Qi(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:Qi(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:Qi(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:Qi(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:Qi(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},er=/([\d.]+)([^]*)/,tr=H(((e,t)=>e.length?e.reduce(((e,n)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(e)?`:is(${n})`:n):n+" "+e))),e)),[]):t),"uE"),nr=H(((e,t)=>e in ir&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,n,i,r)=>n+("stretch"===i?`-moz-available${r};${Zi(e)}:${n}-webkit-fill-available`:`-moz-fit-content${r};${Zi(e)}:${n}fit-content`)+r)):String(t)),"hE"),ir={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},rr=H((e=>e?e+"-":""),"Oi"),ar=H(((e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,i,r,a,s)=>"$"==a==!!r?e:(i||"--"==a?"calc(":"")+"var(--"+("$"===a?rr(t)+(s.includes("$")?"":rr(n))+s.replace(/\$/g,"-"):s)+")"+(i||"--"==a?"*"+(i||"")+(r||"1")+")":"")))),"$y"),sr=/\s*,\s*(?![^()]*\))/,or=Object.prototype.toString,lr=H(((e,t,n,i,r)=>{let a,s,o,l=H(((e,t,n)=>{let u,c,d=H((e=>{for(u in e){let f=64===u.charCodeAt(0),m=f&&Array.isArray(e[u])?e[u]:[e[u]];for(c of m){let e=/[A-Z]/.test(h=u)?h:h.replace(/-[^]/g,(e=>e[1].toUpperCase())),m="object"==typeof c&&c&&c.toString===or&&(!i.utils[e]||!t.length);if(e in i.utils&&!m){let t=i.utils[e];if(t!==s){s=t,d(t(c)),s=null;continue}}else if(e in Ji){let t=Ji[e];if(t!==o){o=t,d(t(c)),o=null;continue}}if(f&&(p=u.slice(1)in i.media?"@media "+i.media[u.slice(1)]:u,u=p.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,n,i,r,a)=>{let s=er.test(t),o=.0625*(s?-1:1),[l,u]=s?[i,t]:[t,i];return"("+("="===n[0]?"":">"===n[0]===s?"max-":"min-")+l+":"+("="!==n[0]&&1===n.length?u.replace(er,((e,t,i)=>Number(t)+o*(">"===n?1:-1)+i)):u)+(r?") and ("+(">"===r[0]?"min-":"max-")+l+":"+(1===r.length?a.replace(er,((e,t,n)=>Number(t)+o*(">"===r?-1:1)+n)):a):"")+")"}))),m){let e=f?n.concat(u):[...n],i=f?[...t]:tr(t,u.split(sr));void 0!==a&&r(ur(...a)),a=void 0,l(c,i,e)}else void 0===a&&(a=[[],t,n]),u=f||36!==u.charCodeAt(0)?u:`--${rr(i.prefix)}${u.slice(1).replace(/\$/g,"-")}`,c=m?c:"number"==typeof c?c&&e in cr?String(c)+"px":String(c):ar(nr(e,null==c?"":c),i.prefix,i.themeMap[e]),a[0].push(`${f?`${u} `:`${Zi(u)}:`}${c}`)}}var p,h}),"w");d(e),void 0!==a&&r(ur(...a)),a=void 0}),"h");l(e,t,n)}),"Os"),ur=H(((e,t,n)=>`${n.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`),"Pm"),cr={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},dr=H((e=>String.fromCharCode(e+(e>25?39:97))),"Im"),pr=H((e=>(e=>{let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=dr(t%52)+n;return dr(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0)),"Lr"),hr=["themed","global","styled","onevar","resonevar","allvar","inline"],fr=H((e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(tvt){return!1}}),"mE"),mr=H((e=>{let t,n=H((()=>{let{cssRules:e}=t.sheet;return[].map.call(e,((n,i)=>{let{cssText:r}=n,a="";if(r.startsWith("--sxs"))return"";if(e[i-1]&&(a=e[i-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(let e in t.rules)if(t.rules[e].group===n)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${r}`;return n.cssRules.length?`${a}${r}`:""}return r})).join("")}),"n"),i=H((()=>
102{if(t){let{rules:e,sheet:n}=t;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(let t in e)delete e[t]}let r=Object(e).styleSheets||[];for(let e of r)if(fr(e)){for(let r=0,a=e.cssRules;a[r];++r){let s=Object(a[r]);if(1!==s.type)continue;let o=Object(a[r+1]);if(4!==o.type)continue;++r;let{cssText:l}=s;if(!l.startsWith("--sxs"))continue;let u=l.slice(14,-3).trim().split(/\s+/),c=hr[u[0]];c&&(t||(t={sheet:e,reset:i,rules:{},toString:n}),t.rules[c]={group:o,index:r,cache:new Set(u)})}if(t)break}if(!t){let r=H(((e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,r(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}})),"c");t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:r("","text/css"),rules:{},reset:i,toString:n}}let{sheet:a,rules:s}=t;for(let e=hr.length-1;e>=0;--e){let t=hr[e];if(!s[t]){let n=hr[e+1],i=s[n]?s[n].index:a.cssRules.length;a.insertRule("@media{}",i),a.insertRule(`--sxs{--sxs:${e}}`,i),s[t]={group:a.cssRules[i+1],index:i,cache:new Set([e])}}gr(s[t])}}),"i");return i(),t}),"yE"),gr=H((e=>{let t=e.group,n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch(i){}}}),"vE"),yr=Symbol(),vr=zi(),br=H(((e,t)=>vr(e,(()=>(...n)=>{let i={type:null,composers:new Set};for(let t of n)if(null!=t)if(t[Wi]){null==i.type&&(i.type=t[Wi].type);for(let e of t[Wi].composers)i.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==i.type&&(i.type=t):i.composers.add(_r(t,e));return null==i.type&&(i.type="span"),i.composers.size||i.composers.add(["PJLV",{},[],[],{},[]]),wr(e,i,t)}))),"Tm"),_r=H(((e,t)=>{var n=e,{variants:i,compoundVariants:r,defaultVariants:a}=n,s=oe(n,["variants","compoundVariants","defaultVariants"]);let o=`${rr(t.prefix)}c-${pr(s)}`,l=[],u=[],c=Object.create(null),d=[];for(let f in a)c[f]=String(a[f]);if("object"==typeof i&&i)for(let f in i){p=c,h=f,Yi.call(p,h)||(c[f]="undefined");let e=i[f];for(let t in e){let n={[f]:String(t)};"undefined"===String(t)&&d.push(f);let i=e[t],r=[n,i,!Ki(i)];l.push(r)}}var p,h;if("object"==typeof r&&r)for(let f of r){let e=f,{css:t}=e,n=oe(e,["css"]);t="object"==typeof t&&t||{};for(let r in n)n[r]=String(n[r]);let i=[n,t,!Ki(t)];u.push(i)}return[o,s,l,u,c,d]}),"xE"),wr=H(((e,t,n)=>{let[i,r,a,s]=Sr(t.composers),o="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let n=0;n<t[yr].length;n++){let[i,r]=t[yr][n];e.rules[i].apply(r)}return t[yr]=[],null}return H(t,"y"),t[yr]=[],t.rules={},hr.forEach((e=>t.rules[e]={apply:H((n=>t[yr].push([e,n])),"apply")})),t})(n):null,l=(o||n).rules,u=`.${i}${r.length>1?`:where(.${r.slice(1).join(".")})`:""}`,c=H((c=>{let d=c="object"==typeof c&&c||kr,{css:p}=d,h=oe(d,["css"]),f={};for(let e in a)if(delete h[e],e in c){let t=c[e];"object"==typeof t&&t?f[e]=re({"@initial":a[e]},t):(t=String(t),f[e]="undefined"!==t||s.has(e)?t:a[e])}else f[e]=a[e];let m=new Set([...r]);for(let[i,r,a,s]of t.composers){n.rules.styled.cache.has(i)||(n.rules.styled.cache.add(i),lr(r,[`.${i}`],[],e,(e=>{l.styled.apply(e)})));let t=Cr(a,f,e.media),o=Cr(s,f,e.media,!0);for(let r of t)if(void 0!==r)for(let[t,a,s]of r){let r=`${i}-${pr(a)}-${t}`;m.add(r);let o=(s?n.rules.resonevar:n.rules.onevar).cache,u=s?l.resonevar:l.onevar;o.has(r)||(o.add(r),lr(a,[`.${r}`],[],e,(e=>{u.apply(e)})))}for(let r of o)if(void 0!==r)for(let[t,a]of r){let r=`${i}-${pr(a)}-${t}`;m.add(r),n.rules.allvar.cache.has(r)||(n.rules.allvar.cache.add(r),lr(a,[`.${r}`],[],e,(e=>{l.allvar.apply(e)})))}}if("object"==typeof p&&p){let t=`${i}-i${pr(p)}-css`;m.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),lr(p,[`.${t}`],[],e,(e=>{l.inline.apply(e)})))}for(let e of String(c.className||"").trim().split(/\s+/))e&&m.add(e);let g=h.className=[...m].join(" ");return{type:t.type,className:g,selector:u,props:h,toString:H((()=>g),"toString"),deferredInjector:o}}),"d");return Gi(c,{className:i,selector:u,[Wi]:t,toString:H((()=>(n.rules.styled.cache.has(i)||c(),i)),"toString")})}),"SE"),Sr=H((e=>{let t="",n=[],i={},r=[];for(let[a,,,,s,o]of e){""===t&&(t=a),n.push(a),r.push(...o);for(let e in s){let t=s[e];(void 0===i[e]||"undefined"!==t||o.includes(t))&&(i[e]=t)}}return[t,n,i,new Set(r)]}),"_E"),Cr=H(((e,t,n,i)=>{let r=[];e:for(let[a,s,o]of e){if(o)continue;let e,l=0,u=!1;for(e in a){let i=a[e],r=t[e];if(r!==i){if("object"!=typeof r||!r)continue e;{let e,t,a=0;for(let s in r){if(i===String(r[s])){if("@initial"!==s){let e=s.slice(1);(t=t||[]).push(e in n?n[e]:s.replace(/^@media ?/,"")),u=!0}l+=a,e=!0}++a}
102if(t&&t.length&&(s={["@media "+t.join(", ")]:s}),!e)continue e}}}(r[l]=r[l]||[]).push([i?"cv":`${e}-${a[e]}`,s,u])}return r}),"Om"),kr={},xr=zi(),Tr=H(((e,t)=>xr(e,(()=>(...n)=>{let i=H((()=>{for(let i of n){i="object"==typeof i&&i||{};let n=pr(i);if(!t.rules.global.cache.has(n)){if(t.rules.global.cache.add(n),"@import"in i){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let n of[].concat(i["@import"]))n=n.includes('"')||n.includes("'")?n:`"${n}"`,t.sheet.insertRule(`@import ${n};`,e++);delete i["@import"]}lr(i,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""}),"i");return Gi(i,{toString:i})}))),"CE"),Er=zi(),Ar=H(((e,t)=>Er(e,(()=>n=>{let i=`${rr(e.prefix)}k-${pr(n)}`,r=H((()=>{if(!t.rules.global.cache.has(i)){t.rules.global.cache.add(i);let r=[];lr(n,[],[],e,(e=>r.push(e)));let a=`@keyframes ${i}{${r.join("")}}`;t.rules.global.apply(a)}return i}),"r");return Gi(r,{get name(){return r()},toString:r})}))),"RE"),Lr=(r=class{constructor(e,t,n,i){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==n?"":String(n),this.prefix=null==i?"":String(i)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+rr(this.prefix)+rr(this.scale)+this.token}toString(){return this.computedValue}},H(r,"PE"),r),Ir=zi(),$r=H(((e,t)=>Ir(e,(()=>(n,i)=>{i="object"==typeof n&&n||Object(i);let r=`.${n=(n="string"==typeof n?n:"")||`${rr(e.prefix)}t-${pr(i)}`}`,a={},s=[];for(let t in i){a[t]={};for(let n in i[t]){let r=`--${rr(e.prefix)}${t}-${n}`,o=ar(String(i[t][n]),e.prefix,t);a[t][n]=new Lr(n,o,t,e.prefix),s.push(`${r}:${o}`)}}let o=H((()=>
102{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);let r=`${i===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(r)}return n}),"c");return ae(re({},a),{get className(){return o()},selector:r,toString:o})}))),"TE"),Dr=zi(),Pr=zi(),Or=H((e=>{let t=(e=>{let t=!1,n=Dr(e,(e=>{t=!0;let n="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",i="object"==typeof e.media&&e.media||{},r="object"==typeof e.root?e.root||null:globalThis.document||null,a="object"==typeof e.theme&&e.theme||{},s={prefix:n,media:i,theme:a,themeMap:"object"==typeof e.themeMap&&e.themeMap||re({},Vi),utils:"object"==typeof e.utils&&e.utils||{}},o=mr(r),l={css:br(s,o),globalCss:Tr(s,o),keyframes:Ar(s,o),createTheme:$r(s,o),reset(){o.reset(),l.theme.toString()},theme:{},sheet:o,config:s,prefix:n,getCssText:o.toString,toString:o.toString};return String(l.theme=l.createTheme(a)),l}));return t||n.reset(),n})(e);return t.styled=(({config:e,sheet:t})=>Pr(e,(()=>{let n=br(e,t);return(...e)=>{let t=n(...e),i=t[Wi].type,r=Sn.forwardRef(((e,n)=>{let r=e&&e.as||i,{props:a,deferredInjector:s}=t(e);return delete a.as,a.ref=n,s?Sn.createElement(Sn.Fragment,null,Sn.createElement(r,a),Sn.createElement(s,null)):Sn.createElement(r,a)}));return r.className=t.className,r.displayName=`Styled.${i.displayName||i.name||i}`,r.selector=t.selector,r.toString=()=>t.selector,r[Wi]=t[Wi],r}})))(t),t}),"ME");function Mr(e,t,n){return Math.max(t,Math.min(e,n))}H(Mr,"FE");var Rr={toVector:(e,t)=>(void 0===e&&(e=t),Array.isArray(e)?e:[e,e]),add:(e,t)=>[e[0]+t[0],e[1]+t[1]],sub:(e,t)=>[e[0]-t[0],e[1]-t[1]],addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Nr(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function Fr(e,t,n,i=.15){return 0===i?Mr(e,t,n):e<t?-Nr(t-e,n-t,i)+t:e>n?+Nr(e-n,n-t,i)+n:e}function Br(e,[t,n],[i,r]){let[[a,s],[o,l]]=e;return[Fr(t,a,s,i),Fr(n,o,l,r)]}function Hr(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function jr(e){var t=Hr(e,"string");return"symbol"==typeof t?t:String(t)}function Ur(e,t,n){return(t=jr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(n),!0).forEach((function(t){Ur(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}H(Nr,"km"),H(Fr,"Mm"),H(Br,"zE"),H(Hr,"LE"),H(jr,"NE"),H(Ur,"yn"),H(Vr,"Fm"),H(qr,"lt");var zr={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Wr(e){return e?e[0].toUpperCase()+e.slice(1):""}H(Wr,"zm");var Gr=["enter","leave"];function Kr(e=!1,t){return e&&!Gr.includes(t)}function Yr(e,t="",n=!1){let i=zr[e],r=i&&i[t]||t;return"on"+Wr(e)+Wr(r)+(Kr(n,r)?"Capture":"")}H(Kr,"jE"),H(Yr,"BE");var Zr=["gotpointercapture","lostpointercapture"];function Xr(e){let t=e.substring(2).toLowerCase(),n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));let i=Zr.includes(t)?"capturecapture":"capture",r=!!~t.indexOf(i);return r&&(t=t.replace("capture","")),{device:t,capture:r,passive:n}}function Qr(e,t=""){let n=zr[e];return e+(n&&n[t]||t)}function Jr(e){return"touches"in e}function ea(e){return Jr(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function ta(e){return Array.from(e.touches).filter((t=>{var n,i;return t.target===e.currentTarget||(null===(n=e.currentTarget)||void 0===n||null===(i=n.contains)||void 0===i?void 0:i.call(n,t.target))}))}function na(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}function ia(e){return Jr(e)?na(e)[0]:e}function ra(e){return ta(e).map((e=>e.identifier))}function aa(e){let t=ia(e);return Jr(e)?t.identifier:t.pointerId}function sa(e){let t=ia(e);return[t.clientX,t.clientY]}function oa(e){let t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){let{shiftKey:n,altKey:i,metaKey:r,ctrlKey:a}=e;
102Object.assign(t,{shiftKey:n,altKey:i,metaKey:r,ctrlKey:a})}return t}function la(e,...t){return"function"==typeof e?e(...t):e}function ua(){}function ca(...e){return 0===e.length?ua:1===e.length?e[0]:function(){let t;for(let n of e)t=n.apply(this,arguments)||t;return t}}function da(e,t){return Object.assign({},t,e||{})}H(Xr,"$E"),H(Qr,"UE"),H(Jr,"sc"),H(ea,"Hy"),H(ta,"HE"),H(na,"VE"),H(ia,"Vy"),H(ra,"qE"),H(aa,"Nh"),H(sa,"Lm"),H(oa,"QE"),H(la,"Kl"),H(ua,"GE"),H(ca,"YE"),H(da,"Nm");var pa=(a=class{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){let{state:e,shared:t,ingKey:n,args:i}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=i,e.axis=void 0,e.memo=void 0,e.elapsedTime=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){let t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?la(n.from,t):t.offset,t.offset=t.lastOffset),t.startTime=t.timeStamp=e.timeStamp}computeValues(e){let t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){let e=this.state;e._initial=e._values,e.initial=e.values}compute(e){let{state:t,config:n,shared:i}=this;t.args=this.args;let r=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,i.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,i.locked=!!document.pointerLockElement,Object.assign(i,oa(e)),i.down=i.pressed=i.buttons%2==1||i.touches>0,r=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){let e=t._delta.map(Math.abs);Rr.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);let[a,s]=t._movement,[o,l]=n.threshold,{_step:u,values:c}=t;if(n.hasCustomTransform?(!1===u[0]&&(u[0]=Math.abs(a)>=o&&c[0]),!1===u[1]&&(u[1]=Math.abs(s)>=l&&c[1])):(!1===u[0]&&(u[0]=Math.abs(a)>=o&&Math.sign(a)*o),!1===u[1]&&(u[1]=Math.abs(s)>=l&&Math.sign(s)*l)),t.intentional=!1!==u[0]||!1!==u[1],!t.intentional)return;let d=[0,0];if(n.hasCustomTransform){let[e,t]=c;d[0]=!1!==u[0]?e-u[0]:0,d[1]=!1!==u[1]?t-u[1]:0}else d[0]=!1!==u[0]?a-u[0]:0,d[1]=!1!==u[1]?s-u[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);let p=t.offset,h=t._active&&!t._blocked||t.active;h&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=i[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=la(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));let[f,m]=t.offset,[[g,y],[v,b]]=t._bounds;t.overflow=[f<g?-1:f>y?1:0,m<v?-1:m>b?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);let _=t._active&&n.rubberband||[0,0];if(t.offset=Br(t._bounds,t.offset,_),t.delta=Rr.sub(t.offset,p),this.computeMovement(),h&&(!t.last||r>32)){t.delta=Rr.sub(t.offset,p);let e=t.delta.map(Math.abs);Rr.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&r>0&&(t.velocity=[e[0]/r,e[1]/r])}}emit(){let e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;let i=this.handler(qr(qr(qr({},t),e),{},{[this.aliasKey]:e.values}));void 0!==i&&(e.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}},H(a,"qy"),a);function ha([e,t],n){let i=Math.abs(e),r=Math.abs(t);return i>r&&i>n?"x":r>i&&r>n?"y":void 0}H(ha,"XE");var fa=(H(s=class extends pa{constructor(...e){super(...e),Ur(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Rr.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Rr.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){let t=this.state,n=this.config;if(!t.axis&&e){let i="object"==typeof n.axisThreshold?n.axisThreshold[ea(e)]:n.axisThreshold;t.axis=ha(t._movement,i)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}},"Qy"),s),ma=H((e=>e),"ZE"),ga={enabled:(e=!0)=>e,eventOptions:(e,t,n)=>qr(qr({},n.shared.eventOptions),e),preventDefault:(e=!1)=>e,triggerAllEvents:(e=!1)=>e,rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return Rr.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?Rr.toVector(e):void 0,transform(e,t,n){let i=e||n.shared.transform;return this.hasCustomTransform=!!i,i||ma},threshold:e=>Rr.toVector(e,0)},ya=qr(qr({},ga),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold:(e=0)=>e,bounds(e={}){if("function"==typeof e)return t=>ya.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;let{left:t=-1/0,right:n=1/0,top:i=-1/0,bottom:r=1/0}=e;return[[t,n],[i,r]]}}),va={ArrowRight:H(((e,t=1)=>[e*t,0]),"ArrowRight"),ArrowLeft:H(((e,t=1)=>[-1*e*t,0]),"ArrowLeft"),ArrowUp:H(((e,t=1)=>[0,-1*e*t]),"ArrowUp"),ArrowDown:H(((e,t=1)=>[0,e*t]),"ArrowDown")},ba=(o=class extends fa{constructor(...e){super(...e),Ur(this,"ingKey","dragging")}reset(){super.reset();let e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){let e=this.state;if(e._bounds instanceof HTMLElement){let t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),i={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=ya.bounds(i)}}cancel(){let e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout((()=>
102{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){let t=this.config,n=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;let i=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(i&&i.size>1&&n._pointerActive)&&(this.start(e),this.setupPointer(e),n._pointerId=aa(e),n._pointerActive=!0,this.computeValues(sa(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==ea(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){let t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){let t=this.state,n=this.config;if(!t._pointerActive||t.type===e.type&&e.timeStamp===t.timeStamp)return;let i=aa(e);if(void 0!==t._pointerId&&i!==t._pointerId)return;let r=sa(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=Rr.sub(r,t._values),this.computeValues(r)),Rr.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional?(this.timeoutStore.remove("dragDelay"),t.active=!1,void this.startPointerDrag(e)):n.preventScrollAxis&&!t._preventScroll?t.axis?t.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis?(t._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(e)):void 0:void this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(s){}let t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;let i=aa(e);if(void 0!==t._pointerId&&i!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);let[r,a]=t._distance;if(t.tap=r<=n.tapsThreshold&&a<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{let[e,i]=t.direction,[r,a]=t.velocity,[s,o]=t.movement,[l,u]=n.swipe.velocity,[c,d]=n.swipe.distance,p=n.swipe.duration;t.elapsedTime<p&&(Math.abs(r)>l&&Math.abs(s)>c&&(t.swipe[0]=e),Math.abs(a)>u&&Math.abs(o)>d&&(t.swipe[1]=i))}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){let t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,_a(e);let t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(e)}),this.config.delay)}keyDown(e){let t=va[e.key];if(t){let n=this.state,i=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(this.config.keyboardDisplacement,i),n._keyboardActive=!0,Rr.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in va&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){let t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},H(o,"Yy"),o);function _a(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}H(_a,"eC");var wa=typeof window<"u"&&window.document&&window.document.createElement;function Sa(){return wa&&"ontouchstart"in window}function Ca(){return Sa()||wa&&window.navigator.maxTouchPoints>1}function ka(){return wa&&"onpointerdown"in window}function xa(){return wa&&"exitPointerLock"in window.document}function Ta(){try{return"constructor"in GestureEvent}catch(no){return!1}}H(Sa,"tC"),H(Ca,"Bm"),H(ka,"nC"),H(xa,"iC"),H(Ta,"rC");var Ea={isBrowser:wa,gesture:Ta(),touch:Ca(),touchscreen:Ca(),pointer:ka(),pointerLock:xa()},Aa={mouse:0,touch:0,pen:8},La=qr(qr({},ya),{},{device(e,t,{pointer:{touch:n=!1,lock:i=!1,mouse:r=!1}={}}){return this.pointerLock=i&&Ea.pointerLock,Ea.touch&&n?"touch":this.pointerLock?"mouse":Ea.pointer&&!r?"pointer":Ea.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,Ea.touchscreen&&!1!==n)return e||(void 0!==n?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:i=1,keys:r=!0}={}}){return this.pointerButtons=i,this.keys=r,!this.pointerLock&&"pointer"===this.device&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:i=3,axis:r}){let a=Rr.toVector(e,n?i:r?1:0);return this.filterTaps=n,this.tapsThreshold=i,a},swipe({velocity:e=.5,distance:t=50,duration:n=250}={}){return{velocity:this.transform(Rr.toVector(e)),distance:this.transform(Rr.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?qr(qr({},Aa),e):Aa,keyboardDisplacement:(e=10)=>e});qr(qr({},ga),{},{device(e,t,{shared:n,pointer:{touch:i=!1}={}}){if(n.target&&!Ea.touch&&Ea.gesture)return"gesture";if(Ea.touch&&i)return"touch";if(Ea.touchscreen){if(Ea.pointer)return"pointer";if(Ea.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:i={}}){let r=H((e=>{let t=da(la(n,e),{min:-1/0,max:1/0});return[t.min,t.max]}),"r"),a=H((e=>{let t=da(la(i,e),{min:-1/0,max:1/0});return[t.min,t.max]}),"s");return"function"!=typeof n&&"function"!=typeof i?[r(),a()]:e=>[r(e),a(e)]},threshold(e,t,n){return this.lockDirection="lock"===n.axis,Rr.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey:e=>void 0===e?"ctrlKey":e,pinchOnWheel:(e=!0)=>e}),qr(qr({},ya),{},{mouseOnly:H(((e=!0)=>e),"mouseOnly")}),qr(qr({},ya),{},{mouseOnly:H(((e=!0)=>e),"mouseOnly")});var Ia=new Map,$a=new Map;function Da(e){Ia.set(e.key,e.engine),$a.set(e.key,e.resolver)}H(Da,"dC");var Pa={key:"drag",engine:ba,resolver:La};function Oa(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function Ma(e,t){if(null==e)return{};var n,i,r=Oa(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}H(Oa,"pC"),H(Ma,"gC");var Ra={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=(Ea.isBrowser?window:void 0))=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},Na=["target","eventOptions","window","enabled","transform"];function Fa(e={},t){let n={};for(let[i,r]of Object.entries(t))switch(typeof r){case"function":n[i]=r.call(n,e[i],i,e);break;case"object":n[i]=Fa(e[i],r);break;case"boolean":r&&(n[i]=e[i])}return n}function Ba(e,t,n={}){let i=e,{target:r,eventOptions:a,window:s,enabled:o,transform:l}=i,u=Ma(i,Na);if(n.shared=Fa({target:r,eventOptions:a,window:s,enabled:o,transform:l},Ra),t){let e=$a.get(t);n[t]=Fa(qr({shared:n.shared},u),e)}else for(let c in u){let e=$a.get(c);e&&(n[c]=Fa(qr({shared:n.shared},u[c]),e))}return n}H(Fa,"$l"),H(Ba,"vC");var Ha=(H(l=class{constructor(e,t){Ur(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,i,r){let a=this._listeners,s=Qr(t,n),o=qr(qr({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),r);e.addEventListener(s,i,o);let l=H((()=>{e.removeEventListener(s,i,o),a.delete(l)}),"d");return a.add(l),l}
102clean(){this._listeners.forEach((e=>e())),this._listeners.clear()}},"ud"),l),ja=(H(u=class{constructor(){Ur(this,"_timeouts",new Map)}add(e,t,n=140,...i){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...i))}remove(e){let t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach((e=>{window.clearTimeout(e)})),this._timeouts.clear()}},"Xy"),u),Ua=(H(c=class{constructor(e){Ur(this,"gestures",new Set),Ur(this,"_targetEventStore",new Ha(this)),Ur(this,"gestureEventStores",{}),Ur(this,"gestureTimeoutStores",{}),Ur(this,"handlers",{}),Ur(this,"config",{}),Ur(this,"pointerIds",new Set),Ur(this,"touchIds",new Set),Ur(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),qa(this,e)}setEventIds(e){return Jr(e)?(this.touchIds=new Set(ra(e)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=Ba(e,t,this.config)}clean(){this._targetEventStore.clean();for(let e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){let t,n=this.config.shared,i={};if(!n.target||(t=n.target(),t)){if(n.enabled){for(let n of this.gestures){let r=this.config[n],a=za(i,r.eventOptions,!!t);if(r.enabled){new(Ia.get(n))(this,e,n).bind(a)}}let r=za(i,n.eventOptions,!!t);for(let t in this.nativeHandlers)r(t,"",(n=>this.nativeHandlers[t](qr(qr({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(let e in i)i[e]=ca(...i[e]);if(!t)return i;for(let e in i){let{device:n,capture:r,passive:a}=Xr(e);this._targetEventStore.add(t,n,"",i[e],{capture:r,passive:a})}}}},"Zy"),c);function Va(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Ha(e,t),e.gestureTimeoutStores[t]=new ja}function qa(e,t){t.drag&&Va(e,"drag"),t.wheel&&Va(e,"wheel"),t.scroll&&Va(e,"scroll"),t.move&&Va(e,"move"),t.pinch&&Va(e,"pinch"),t.hover&&Va(e,"hover")}H(Va,"Ps"),H(qa,"wC");var za=H(((e,t,n)=>(i,r,a,s={},o=!1)=>{var l,u;let c=null!==(l=s.capture)&&void 0!==l?l:t.capture,d=null!==(u=s.passive)&&void 0!==u?u:t.passive,p=o?i:Yr(i,r,c);n&&d&&(p+="Passive"),e[p]=e[p]||[],e[p].push(a)}),"$m");function Wa(e,t={},n,i){let r=Sn.useMemo((()=>new Ua(e)),[]);if(r.applyHandlers(e,i),r.applyConfig(t,n),Sn.useEffect(r.effect.bind(r)),Sn.useEffect((()=>r.clean.bind(r)),[]),void 0===t.target)return r.bind.bind(r)}function Ga(e,t){return Da(Pa),Wa({drag:e},{},"drag")}H(Wa,"xC"),H(Ga,"SC");var Ka=$t["useId".toString()]||(()=>{}),Ya=0;function Za(e){let[t,n]=it(Ka());return vi((()=>{n((e=>null!=e?e:String(Ya++)))}),[e]),t?`radix-${t}`:""}H(Za,"EC");var Xa=["a","button","div","h2","h3","img","li","nav","p","span","svg","ul"].reduce(((e,t)=>ae(re({},e),{[t]:Rt(((e,n)=>{let i=e,{asChild:r}=i,a=oe(i,["asChild"]),s=r?hi:t;return at((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.as&&console.error(Qa),ye(s,pi({},a,{ref:n}))}))})),{}),Qa="Warning: The `as` prop has been removed in favour of `asChild`. For details, see https://radix-ui.com/docs/primitives/overview/styling#changing-the-rendered-element",Ja=Rt(((e,t)=>ye(Xa.span,pi({},e,{ref:t,style:ae(re({},e.style),{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"})})))),es=Ja,ts=Rt(((e,t)=>{var n,i;let r=e,{containerRef:a,style:s}=r,o=oe(r,["containerRef","style"]),l=null!==(n=null==a?void 0:a.current)&&void 0!==n?n:null==globalThis||null===(i=globalThis.document)||void 0===i?void 0:i.body,[,u]=it({});return vi((()=>{u({})}),[]),l?Sn.createPortal(ye(Xa.div,pi({"data-radix-portal":""},o,{ref:t,style:l===document.body?re({position:"absolute",top:0,left:0,zIndex:2147483647},s):void 0})),l):null})),ns=Rt(((e,t)=>{let n=e,{children:i,width:r=10,height:a=5}=n,s=oe(n,["children","width","height"]);return ye(Xa.svg,pi({},s,{ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?i:ye("polygon",{points:"0,0 30,0 15,10"}))})),is=ns;function rs(e){let[t,n]=it(void 0);return at((()=>
102{if(e){let t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;let i,r,a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,r=t.blockSize}else{let t=e.getBoundingClientRect();i=t.width,r=t.height}n({width:i,height:r})}));return t.observe(e,{box:"border-box"}),()=>{n(void 0),t.unobserve(e)}}}),[e]),t}function as(e,t){let n=os.get(e);return void 0===n?(os.set(e,{rect:{},callbacks:[t]}),1===os.size&&(ss=requestAnimationFrame(ls))):(n.callbacks.push(t),t(e.getBoundingClientRect())),()=>{let n=os.get(e);if(void 0===n)return;let i=n.callbacks.indexOf(t);i>-1&&n.callbacks.splice(i,1),0===n.callbacks.length&&(os.delete(e),0===os.size&&cancelAnimationFrame(ss))}}H(rs,"Um"),H(as,"OC");var ss,os=new Map;function ls(){let e=[];os.forEach(((t,n)=>{let i=n.getBoundingClientRect();var r,a;a=i,((r=t.rect).width!==a.width||r.height!==a.height||r.top!==a.top||r.right!==a.right||r.bottom!==a.bottom||r.left!==a.left)&&(t.rect=i,e.push(t))})),e.forEach((e=>{e.callbacks.forEach((t=>t(e.rect)))})),ss=requestAnimationFrame(ls)}function us(e){let[t,n]=it();return at((()=>{if(e){let t=as(e,n);return()=>{n(void 0),t()}}}),[e]),t}function cs(e,t=[]){let n=[],i=H((()=>{let t=n.map((e=>qe(e)));return function(n){let i=(null==n?void 0:n[e])||t;return ut((()=>({[`__scope${e}`]:ae(re({},n),{[e]:i})})),[n,i])}}),"i");return i.scopeName=e,[function(t,i){let r=qe(i),a=n.length;function s(t){let n=t,{scope:i,children:s}=n,o=oe(n,["scope","children"]),l=(null==i?void 0:i[e][a])||r,u=ut((()=>o),Object.values(o));return ye(l.Provider,{value:u},s)}return H(s,"h"),n=[...n,i],s.displayName=t+"Provider",[s,function(n,s){let o=dt((null==s?void 0:s[e][a])||r);if(o)return o;if(void 0!==i)return i;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},ds(i,...t)]}function ds(...e){let t=e[0];if(1===e.length)return t;let n=H((()=>{let n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){let i=n.reduce(((t,{useScope:n,scopeName:i})=>re(re({},t),n(e)[`__scope${i}`])),{});return ut((()=>({[`__scope${t.scopeName}`]:i})),[i])}}),"n");return n.scopeName=t.scopeName,n}function ps({anchorRect:e,popperSize:t,arrowSize:n,arrowOffset:i=0,side:r,sideOffset:a=0,align:s,alignOffset:o=0,shouldAvoidCollisions:l=!0,collisionBoundariesRect:u,collisionTolerance:c=0}){if(!e||!t||!u)return{popperStyles:gs,arrowStyles:ys};let d=function(e,t,n=0,i=0,r){let a=r?r.height:0,s=hs(t,e,"x"),o=hs(t,e,"y"),l=o.before-n-a,u=o.after+n+a,c=s.before-n-a,d=s.after+n+a;return{top:{start:{x:s.start+i,y:l},center:{x:s.center,y:l},end:{x:s.end-i,y:l}},right:{start:{x:d,y:o.start+i},center:{x:d,y:o.center},end:{x:d,y:o.end-i}},bottom:{start:{x:s.start+i,y:u},center:{x:s.center,y:u},end:{x:s.end-i,y:u}},left:{start:{x:c,y:o.start+i},center:{x:c,y:o.center},end:{x:c,y:o.end-i}}}}(t,e,a,o,n),p=d[r][s];if(!1===l){let e=fs(p),a=ys;return n&&(a=vs({popperSize:t,arrowSize:n,arrowOffset:i,side:r,align:s})),{popperStyles:ae(re({},e),{"--radix-popper-transform-origin":ms(t,r,s,i,n)}),arrowStyles:a,placedSide:r,placedAlign:s}}let h=DOMRect.fromRect(re(re({},t),p)),f=(m=u,g=c,DOMRect.fromRect({width:m.width-2*g,height:m.height-2*g,x:m.left+g,y:m.top+g}));var m,g;let y=ws(h,f),v=d[_s(r)][s],b=function(e,t,n){let i=_s(e);return t[e]&&!n[i]?i:e}(r,y,ws(DOMRect.fromRect(re(re({},t),v)),f)),_=function(e,t,n,i,r){let a="top"===n||"bottom"===n,s=a?"left":"top",o=a?"right":"bottom",l=a?"width":"height",u=t[l]>e[l];return"start"!==i&&"center"!==i||!(r[s]&&u||r[o]&&!u)?"end"!==i&&"center"!==i||!(r[o]&&u||r[s]&&!u)?i:"start":"end"}(t,e,r,s,y),w=fs(d[b][_]),S=ys;return n&&(S=vs({popperSize:t,arrowSize:n,arrowOffset:i,side:b,align:_})),{popperStyles:ae(re({},w),{"--radix-popper-transform-origin":ms(t,b,_,i,n)}),arrowStyles:S,placedSide:b,placedAlign:_}}function hs(e,t,n){let i=e["x"===n?"left":"top"],r="x"===n?"width":"height",a=e[r],s=t[r];return{before:i-s,start:i,center:i+(a-s)/2,end:i+a-s,after:i+a}}function fs(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}
102px, 0)`}}function ms(e,t,n,i,r){let a="top"===t||"bottom"===t,s=r?r.width:0,o=r?r.height:0,l=s/2+i,u="",c="";return a?(u={start:`${l}px`,center:"center",end:e.width-l+"px"}[n],c="top"===t?`${e.height+o}px`:-o+"px"):(u="left"===t?`${e.width+o}px`:-o+"px",c={start:`${l}px`,center:"center",end:e.height-l+"px"}[n]),`${u} ${c}`}H(ls,"Jy"),H(us,"ev"),H(cs,"tv"),H(ds,"kC"),H(ps,"MC"),H(hs,"Hm"),H(fs,"Vm"),H(ms,"qm");var gs={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},ys={position:"absolute",opacity:0};function vs({popperSize:e,arrowSize:t,arrowOffset:n,side:i,align:r}){let a=(e.width-t.width)/2,s=(e.height-t.width)/2,o={top:0,right:90,bottom:180,left:-90}[i],l=Math.max(t.width,t.height),u={width:`${l}px`,height:`${l}px`,transform:`rotate(${o}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:bs(i,r)};return"top"!==i&&"bottom"!==i||("start"===r&&(u.left=`${n}px`),"center"===r&&(u.left=`${a}px`),"end"===r&&(u.right=`${n}px`)),"left"!==i&&"right"!==i||("start"===r&&(u.top=`${n}px`),"center"===r&&(u.top=`${s}px`),"end"===r&&(u.bottom=`${n}px`)),u}function bs(e,t){return("top"!==e&&"right"!==e||"end"!==t)&&("bottom"!==e&&"left"!==e||"end"===t)?"ltr":"rtl"}function _s(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function ws(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}H(vs,"Qm"),H(bs,"zC"),H(_s,"Gm"),H(ws,"Ym");var[Ss,Cs]=cs("Popper"),[ks,xs]=Ss("Popper"),Ts=H((e=>{let{__scopePopper:t,children:n}=e,[i,r]=it(null);return ye(ks,{scope:t,anchor:i,onAnchorChange:r},n)}),"NC"),Es=Rt(((e,t)=>{let n=e,{__scopePopper:i,virtualRef:r}=n,a=oe(n,["__scopePopper","virtualRef"]),s=xs("PopperAnchor",i),o=ot(null),l=di(t,o);return at((()=>{s.onAnchorChange((null==r?void 0:r.current)||o.current)})),r?null:ye(Xa.div,pi({},a,{ref:l}))})),[As,Ls]=Ss("PopperContent"),Is=Rt(((e,t)=>{let n=e,{__scopePopper:i,side:r="bottom",sideOffset:a,align:s="center",alignOffset:o,collisionTolerance:l,avoidCollisions:u=!0}=n,c=oe(n,["__scopePopper","side","sideOffset","align","alignOffset","collisionTolerance","avoidCollisions"]),d=xs("PopperContent",i),[p,h]=it(),f=us(d.anchor),[m,g]=it(null),y=rs(m),[v,b]=it(null),_=rs(v),w=di(t,(e=>g(e))),S=function(){let[e,t]=it(void 0);return at((()=>{let e;function n(){t({width:window.innerWidth,height:window.innerHeight})}function i(){window.clearTimeout(e),e=window.setTimeout(n,100)}return H(n,"Z"),H(i,"ue"),n(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)}),[]),e}(),C=S?DOMRect.fromRect(ae(re({},S),{x:0,y:0})):void 0,{popperStyles:k,arrowStyles:x,placedSide:T,placedAlign:E}=ps({anchorRect:f,popperSize:y,arrowSize:_,arrowOffset:p,side:r,sideOffset:a,align:s,alignOffset:o,shouldAvoidCollisions:u,collisionBoundariesRect:C,collisionTolerance:l}),A=void 0!==T;return ye("div",{style:k,"data-radix-popper-content-wrapper":""},ye(As,{scope:i,arrowStyles:x,onArrowChange:b,onArrowOffsetChange:h},ye(Xa.div,pi({"data-side":T,"data-align":E},c,{style:ae(re({},c.style),{animation:A?void 0:"none"}),ref:w}))))})),$s=Rt((function(e,t){let n=e,{__scopePopper:i,offset:r}=n,a=oe(n,["__scopePopper","offset"]),s=Ls("PopperArrow",i),{onArrowOffsetChange:o}=s;return at((()=>o(r)),[o,r]),ye("span",{style:ae(re({},s.arrowStyles),{pointerEvents:"none"})},ye("span",{ref:s.onArrowChange,style:{display:"inline-block",verticalAlign:"top",pointerEvents:"auto"}},ye(is,pi({},a,{ref:t,style:ae(re({},a.style),{display:"block"})}))))})),Ds=Ts,Ps=Es,Os=Is,Ms=$s,Rs=H((e=>{let{present:t,children:n}=e,i=function(e){let[t,n]=it(),i=ot({}),r=ot(e),a=ot("none"),s=e?"mounted":"unmounted",[o,l]=function(e,t){return rt(((e,n)=>{let i=t[e][n];return null!=i?i:e}),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return at((()=>{let e=Ns(i.current);a.current="mounted"===o?e:"none"}),[o]),vi((()=>{let t=i.current,n=r.current;if(n!==e){let i=a.current,s=Ns(t);e?l("MOUNT"):"none"===s||"none"===(null==t?void 0:t.display)?l("UNMOUNT"):l(n&&i!==s?"ANIMATION_OUT":"UNMOUNT"),r.current=e}}),[e,l]),vi((()=>
102{if(t){let e=H((e=>{let n=Ns(i.current).includes(e.animationName);e.target===t&&n&&l("ANIMATION_END")}),"b"),n=H((e=>{e.target===t&&(a.current=Ns(i.current))}),"_");return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:ct((e=>{e&&(i.current=getComputedStyle(e)),n(e)}),[])}}(t),r="function"==typeof n?n({present:i.isPresent}):rn.only(n),a=di(i.ref,r.ref);return"function"==typeof n||i.isPresent?Xt(r,{ref:a}):null}),"sv");function Ns(e){return(null==e?void 0:e.animationName)||"none"}function Fs(e){let t=ot(e);return at((()=>{t.current=e}),[e]),t.current}function Bs(e){let t=ot(e);return at((()=>{t.current=e})),ut((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Hs(e){let t=Bs(e);at((()=>{let e=H((e=>{"Escape"===e.key&&t(e)}),"n");return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[t])}function js({prop:e,defaultProp:t,onChange:n=H((()=>{}),"n")}){let[i,r]=function({defaultProp:e,onChange:t}){let n=it(e),[i]=n,r=ot(i),a=Bs(t);return at((()=>{r.current!==i&&(a(i),r.current=i)}),[i,r,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:i,o=Bs(n);return[s,ct((t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&o(n)}else r(t)}),[a,e,r,o])]}function Us(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(null==e||e(i),!1===n||!i.defaultPrevented)return null==t?void 0:t(i)}}H(Ns,"Tl"),Rs.displayName="Presence",H(Fs,"Km"),H(Bs,"Gh"),H(Hs,"QC"),H(js,"GC"),H(Us,"Is");var[Vs]=cs("Tooltip",[Cs]),qs=Cs(),[zs,Ws]=Vs("TooltipProvider",{isOpenDelayed:!0,delayDuration:700,onOpen:H((()=>{}),"onOpen"),onClose:H((()=>{}),"onClose")}),[Gs,Ks]=Vs("Tooltip"),Ys=H((e=>{let{__scopeTooltip:t,children:n,open:i,defaultOpen:r=!1,onOpenChange:a,delayDuration:s}=e,o=Ws("Tooltip",t),l=qs(t),[u,c]=it(null),d=Za(),p=ot(0),h=null!=s?s:o.delayDuration,f=ot(!1),{onOpen:m,onClose:g}=o,[y=!1,v]=js({prop:i,defaultProp:r,onChange:H((e=>{e&&(document.dispatchEvent(new CustomEvent("tooltip.open")),m()),null==a||a(e)}),"onChange")}),b=ut((()=>y?f.current?"delayed-open":"instant-open":"closed"),[y]),_=ct((()=>{window.clearTimeout(p.current),f.current=!1,v(!0)}),[v]),w=ct((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{f.current=!0,v(!0)}),h)}),[h,v]);return at((()=>()=>window.clearTimeout(p.current)),[]),ye(Ds,l,ye(Gs,{scope:t,contentId:d,open:y,stateAttribute:b,trigger:u,onTriggerChange:c,onTriggerEnter:ct((()=>{o.isOpenDelayed?w():_()}),[o.isOpenDelayed,w,_]),onOpen:ct(_,[_]),onClose:ct((()=>{window.clearTimeout(p.current),v(!1),g()}),[v,g])},n))}),"ZC"),Zs=Rt(((e,t)=>{let n=e,{__scopeTooltip:i}=n,r=oe(n,["__scopeTooltip"]),a=Ks("TooltipTrigger",i),s=qs(i),o=di(t,a.onTriggerChange),l=ot(!1),u=ct((()=>l.current=!1),[]);return at((()=>()=>document.removeEventListener("mouseup",u)),[u]),ye(Ps,pi({asChild:!0},s),ye(Xa.button,pi({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},r,{ref:o,onMouseEnter:Us(e.onMouseEnter,a.onTriggerEnter),onMouseLeave:Us(e.onMouseLeave,a.onClose),onMouseDown:Us(e.onMouseDown,(()=>{a.onClose(),l.current=!0,document.addEventListener("mouseup",u,{once:!0})})),onFocus:Us(e.onFocus,(()=>{l.current||a.onOpen()})),onBlur:Us(e.onBlur,a.onClose),onClick:Us(e.onClick,a.onClose)})))})),Xs=Rt(((e,t)=>{let n=e,{forceMount:i}=n,r=oe(n,["forceMount"]),a=Ks("TooltipContent",e.__scopeTooltip);return ye(Rs,{present:i||a.open},ye(Qs,pi({ref:t},r)))})),Qs=Rt(((e,t)=>{let n=e,{__scopeTooltip:i,children:r,"aria-label":a,portalled:s=!0}=n,o=oe(n,["__scopeTooltip","children","aria-label","portalled"]),l=Ks("TooltipContent",i),u=qs(i),c=s?ts:_e,{onClose:d}=l;return Hs((()=>d())),at((()=>(document.addEventListener("tooltip.open",d),()=>document.removeEventListener("tooltip.open",d))),[d]),ye(c,null,ye(eo,{__scopeTooltip:i}),ye(Os,pi({"data-state":l.stateAttribute},u,o,{ref:t,style:ae(re({},o.style),{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"})}),ye(mi,null,r),ye(es,{id:l.contentId,role:"tooltip"},a||r)))})),Js=Rt(((e,t)=>{let n=e,{__scopeTooltip:i}=n,r=oe(n,["__scopeTooltip"]),a=qs(i);return ye(Ms,pi({},a,r,{ref:t}))}));function eo(e){let{__scopeTooltip:t}
102=e,n=Ks("CheckTriggerMoved",t),i=us(n.trigger),r=null==i?void 0:i.left,a=Fs(r),s=null==i?void 0:i.top,o=Fs(s),l=n.onClose;return at((()=>{(void 0!==a&&a!==r||void 0!==o&&o!==s)&&l()}),[l,a,o,r,s]),null}H(eo,"iA");var to,no,io=Ys,ro=Zs,ao=Xs,so=Js;function oo(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function lo(e,t){if(null==e)return{};var n,i,r=oo(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}H(oo,"lA"),H(lo,"ki"),(no=to||(to={}))[no.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",no[no.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",no[no.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",no[no.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",no[no.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",no[no.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",no[no.THEME_ERROR=6]="THEME_ERROR",no[no.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",no[no.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",no[no.EMPTY_KEY=9]="EMPTY_KEY";var uo={[to.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[to.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[to.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[to.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[to.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[to.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[to.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[to.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[to.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[to.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[to.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function co(e,t,...n){let[i,...r]=uo[t](...n);console[e]("LEVA: "+i,...r)}H(co,"av");var po=co.bind(null,"warn");function ho(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fo(Object(n),!0).forEach((function(t){ho(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}co.bind(null,"log"),H(ho,"uA"),H(fo,"Xm"),H(mo,"Dr");var go=H(((e,t,n)=>e>n?n:e<t?t:e),"sr"),yo=H((e=>{if(""===e||"number"==typeof e)return e;try{let t=Io(e);if(!isNaN(t))return t}catch(tvt){}return parseFloat(e)}),"hA"),vo=Math.log(10);function bo(e){let t=Math.abs(+String(e).replace(".",""));if(0===t)return.01;for(;0!==t&&t%10==0;)t/=10;let n=Math.floor(Math.log(t)/vo)+1,i=Math.floor(Math.log10(Math.abs(e))),r=Math.pow(10,i-n);return Math.max(r,.001)}H(bo,"Zm");var _o,wo,So=H(((e,t,n)=>n===t?0:(go(e,t,n)-t)/(n-t)),"fA"),Co=H(((e,t,n)=>e*(n-t)+t),"Jm"),ko=/\(([0-9+\-*/^ .]+)\)/,xo=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,To=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Eo=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Ao=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,Lo=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function Io(e){if(isNaN(Number(e))){if(ko.test(e)){let t=e.replace(ko,((e,t)=>String(Io(t))));return Io(t)}if(xo.test(e)){return Io(e.replace(xo,((e,t,n)=>String(Math.pow(Number(t),Number(n))))))}if(To.test(e)){return Io(e.replace(To,((e,t,n)=>String(Number(t)*Number(n)))))}if(Eo.test(e)){return Io(e.replace(Eo,((e,t,n)=>{if(0!=n)return String(Number(t)/Number(n));throw new Error("Division by zero")})))}if(Ao.test(e)){return Io(e.replace(Ao,((e,t,n)=>String(Number(t)+Number(n)))))}if(Lo.test(e)){return Io(e.replace(Lo,((e,t,n)=>String(Number(t)-Number(n)))))}return Number(e)}return Number(e)}H(Io,"nr"),function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"}(_o||(_o={})),function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"}(wo||(wo={}));var $o=H((e=>e.shiftKey?5:e.altKey?.2:1),"pA"),Do=["value"],Po=["min","max"],Oo=H((e=>{if("number"==typeof e)return!0;
102if("string"==typeof e){let t=parseFloat(e);return!isNaN(t)&&e.substring((""+t).length).trim().length<4}return!1}),"yA"),Mo=H(((e,{min:t=-1/0,max:n=1/0,suffix:i})=>{let r=parseFloat(e);if(""===e||isNaN(r))throw Error("Invalid number");let a=go(r,t,n);return i?a+i:a}),"vA"),Ro=H(((e,{pad:t=0,suffix:n})=>{let i=parseFloat(e).toFixed(t);return n?i+n:i}),"wA"),No=H((e=>{let{value:t}=e,n=lo(e,Do),{min:i=-1/0,max:r=1/0}=n,a=lo(n,Po),s=parseFloat(t),o="string"==typeof t?t.substring((""+s).length):void 0;s=go(s,i,r);let l=n.step;l||(Number.isFinite(i)?l=Number.isFinite(r)?+(Math.abs(r-i)/100).toPrecision(1):+(Math.abs(s-i)/100).toPrecision(1):Number.isFinite(r)&&(l=+(Math.abs(r-s)/100).toPrecision(1)));let u=l?10*bo(l):bo(s);return l=l||u/10,{value:o?s+o:s,settings:mo({initialValue:s,step:l,pad:Math.round(go(Math.log10(1/u),0,2)),min:i,max:r,suffix:o},a)}}),"xA"),Fo=H(((e,{step:t,initialValue:n})=>n+Math.round((e-n)/t)*t),"cv"),Bo=Object.freeze({__proto__:null,schema:Oo,sanitize:Mo,format:Ro,normalize:No,sanitizeStep:Fo});function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ho.apply(this,arguments)}H(Ho,"Sn");var jo=qe({});function Uo(){return dt(jo)}H(Uo,"Mi");var Vo=qe(null);qe(null);var qo=qe(null);function zo(){return dt(qo)}H(zo,"CA");var Wo=H((()=>({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}})),"AA");function Go(e,t){let[n,i]=e.split(" "),r={};return"none"!==n&&(r.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${"default"!==n&&n||t.borderColor}`),i&&(r.backgroundColor=i),r}H(Go,"Ol");var Ko={$inputStyle:H((()=>e=>Go(e,{key:"$input",borderColor:"$highlight1",inset:!0})),"$inputStyle"),$focusStyle:H((()=>e=>
102Go(e,{key:"$focus",borderColor:"$accent2"})),"$focusStyle"),$hoverStyle:H((()=>e=>Go(e,{key:"$hover",borderColor:"$accent1",inset:!0})),"$hoverStyle"),$activeStyle:H((()=>e=>Go(e,{key:"$active",borderColor:"$accent1",inset:!0})),"$activeStyle")},{styled:Yo,css:Zo,createTheme:Xo,globalCss:Qo,keyframes:Jo}=Or({prefix:"leva",theme:Wo(),utils:mo(mo({},Ko),{},{$flex:H((()=>({display:"flex",alignItems:"center"})),"$flex"),$flexCenter:H((()=>({display:"flex",alignItems:"center",justifyContent:"center"})),"$flexCenter"),$reset:H((()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"})),"$reset"),$draggable:H((()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"})),"$draggable"),$focus:H((e=>({"&:focus":Ko.$focusStyle()(e)})),"$focus"),$focusWithin:H((e=>({"&:focus-within":Ko.$focusStyle()(e)})),"$focusWithin"),$hover:H((e=>({"&:hover":Ko.$hoverStyle()(e)})),"$hover"),$active:H((e=>({"&:active":Ko.$activeStyle()(e)})),"$active")})});function el(e,t){let{theme:n}=dt(Vo);if(!(e in n)||!(t in n[e]))return po(to.THEME_ERROR,e,t),"";let i=t;for(;;){let t=n[e][i];if("string"!=typeof t||"$"!==t.charAt(0))return t;i=t.substr(1)}}Qo({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}}),H(el,"PA");var tl=Yo("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),nl=Yo("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${tl}`]:{paddingLeft:0}}),il=Yo(nl,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),rl=Yo("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),al=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],sl=["onUpdate"];function ol(e){let{innerLabel:t,value:n,onUpdate:i,onChange:r,onKeyDown:a,type:s,id:o,inputType:l="text",rows:u=0}=e,c=lo(e,al),{id:d,emitOnEditStart:p,emitOnEditEnd:h,disabled:f}=Uo(),m=o||d,g=ot(null),y=u>0,v=y?"textarea":"input",b=ct((e=>t=>{let n=t.currentTarget.value;e(n)}),[]);Sn.useEffect((()=>{let e=g.current,t=b((e=>{i(e),h()}));return null==e||e.addEventListener("blur",t),()=>null==e?void 0:e.removeEventListener("blur",t)}),[b,i,h]);let _=ct((e=>{"Enter"===e.key&&b(i)(e)}),[b,i]),w=Object.assign({as:v},y?{rows:u}:{},c);return Sn.createElement(rl,{textArea:y},t&&"string"==typeof t?Sn.createElement(nl,null,t):t,Sn.createElement(tl,Ho({levaType:s,ref:g,id:m,type:l,autoComplete:"off",spellCheck:"false",value:n,onChange:b(r),onFocus:H((()=>p()),"onFocus"),onKeyPress:_,onKeyDown:a,disabled:f},w)))}function ll(e){let{onUpdate:t}=e,n=lo(e,sl),i=ct((e=>t(yo(e))),[t]),r=ct((e=>{let n="ArrowUp"===e.key?1:"ArrowDown"===e.key?-1:0;if(n){e.preventDefault();let i=e.altKey?.1:e.shiftKey?10:1;t((e=>parseFloat(e)+n*i))}}),[t]);return Sn.createElement(ol,Ho({},n,{onUpdate:i,onKeyDown:r,type:"number"}))}H(ol,"dv"),H(ll,"MA");var ul=Yo("div",{}),cl=Yo("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]});Yo("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${cl}::after`]:{opacity:.6},[`${ul}:hover > & + ${cl}::after`]:{opacity:.6},[`${ul}:hover > & > svg`]:{opacity:1}});var dl=Yo("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250m
102s"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${ul}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),pl=Yo("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${dl} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),hl=Yo(pl,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),fl=Yo("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),ml=Yo("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),gl=Yo("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}});Yo("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${gl}`]:{pointerEvents:"auto"}}}}}),Yo("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"});var yl=Yo("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),vl=Yo(so,{fill:"$toolTipBackground"}),bl=["align"];function _l(){let{id:e,disable:t,disabled:n}=Uo();return Sn.createElement(Sn.Fragment,null,Sn.createElement(ml,{id:e+"__disable",type:"checkbox",checked:!n,onChange:H((()=>t(!n)),"onChange")}),Sn.createElement("label",{htmlFor:e+"__disable"}))}function wl(e){let{id:t,optional:n,hint:i}=Uo(),r=e.htmlFor||(t?{htmlFor:t}:null),a=i||"string"!=typeof e.children?null:{title:e.children};return Sn.createElement(Sn.Fragment,null,n&&Sn.createElement(_l,null),void 0!==i?Sn.createElement(io,null,Sn.createElement(ro,{asChild:!0},Sn.createElement(gl,Ho({},r,e))),Sn.createElement(ao,{side:"top",sideOffset:2},Sn.createElement(yl,null,i,Sn.createElement(vl,null)))):Sn.createElement(gl,Ho({},r,a,e)))}function Sl(e){let{align:t}=e,n=lo(e,bl),{value:i,label:r,key:a,disabled:s}=Uo(),{hideCopyButton:o}=zo(),l=!o&&void 0!==a,[u,c]=it(!1),d=H((()=>V(this,null,(function*(){try{yield navigator.clipboard.writeText(JSON.stringify({[a]:null!=i?i:""})),c(!0)}catch(e){po(to.CLIPBOARD_ERROR,{[a]:i})}}))),"m");return Sn.createElement(fl,{align:t,onPointerLeave:H((()=>c(!1)),"onPointerLeave")},Sn.createElement(wl,n),l&&!s&&Sn.createElement("div",{title:`Click to copy ${"string"==typeof r?r:a} value`},u?Sn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},Sn.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),Sn.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):Sn.createElement("svg",{onClick:d,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},Sn.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),Sn.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}H(_l,"WA"),H(wl,"$A"),H(Sl,"lc");var Cl=["toggled"],kl=Yo("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function xl(e){let{toggled:t}=e,n=lo(e,Cl);return Sn.createElement(kl,Ho({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),Sn.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}H(xl,"VA");var Tl=["input"];
102function El(e){let{input:t}=e,n=lo(e,Tl);return t?Sn.createElement(hl,n):Sn.createElement(pl,n)}function Al(e,t){let{emitOnEditStart:n,emitOnEditEnd:i}=Uo();return Ga((t=>{t.first&&(document.body.classList.add("leva__panel__dragged"),null==n||n());let r=e(t);return t.last&&(document.body.classList.remove("leva__panel__dragged"),null==i||i()),r}))}H(El,"cc"),H(Al,"pv");var Ll=Yo("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),Il=Yo("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),$l=Yo("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),Dl=Yo("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),Pl=Yo("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function Ol({value:e,min:t,max:n,onDrag:i,step:r,initialValue:a}){let s=ot(null),o=ot(null),l=ot(0),u=el("sizes","scrubberWidth"),c=Al((({event:c,first:d,xy:[p],movement:[h],memo:f})=>{if(d){let{width:i,left:r}=s.current.getBoundingClientRect();l.current=i-parseFloat(u),f=(null==c?void 0:c.target)===o.current?e:Co((p-r)/i,t,n)}let m=f+Co(h/l.current,0,n-t);return i(Fo(m,{step:r,initialValue:a})),f})),d=So(e,t,n);return Sn.createElement(Dl,Ho({ref:s},c()),Sn.createElement(Il,null,Sn.createElement(Pl,{style:{left:0,right:100*(1-d)+"%"}})),Sn.createElement($l,{ref:o,style:{left:`calc(${d} * (100% - ${u}))`}}))}H(Ol,"ZA");var Ml=Sn.memo((({label:e,onUpdate:t,step:n,innerLabelTrim:i})=>{let[r,a]=it(!1),s=Al((({active:e,delta:[i],event:r,memo:s=0})=>(a(e),s+=i/2,Math.abs(s)>=1&&(t((e=>parseFloat(e)+Math.floor(s)*n*$o(r))),s=0),s)));return Sn.createElement(il,Ho({dragging:r,title:e.length>1?e:""},s()),e.slice(0,i))}));function Rl({label:e,id:t,displayValue:n,onUpdate:i,onChange:r,settings:a,innerLabelTrim:s=1}){let o=s>0&&Sn.createElement(Ml,{label:e,step:a.step,onUpdate:i,innerLabelTrim:s});return Sn.createElement(ll,{id:t,value:String(n),onUpdate:i,onChange:r,innerLabel:o})}function Nl(){let e=Uo(),{label:t,value:n,onUpdate:i,settings:r,id:a}=e,{min:s,max:o}=r,l=o!==1/0&&s!==-1/0;return Sn.createElement(El,{input:!0},Sn.createElement(Sl,null,t),Sn.createElement(Ll,{hasRange:l},l&&Sn.createElement(Ol,Ho({value:parseFloat(n),onDrag:i},r)),Sn.createElement(Rl,Ho({},e,{id:a,label:"value",innerLabelTrim:l?0:1}))))}H(Rl,"eR"),H(Nl,"tR"),mo({component:Nl},lo(Bo,["sanitizeStep"]));var Fl=H(((e,t)=>Li().schema({options:Li().passesAnyOf(Li().object(),Li().array())}).test(t)),"iR"),Bl=H(((e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e}),"rR"),Hl=H(((e,{values:t})=>t.indexOf(e)),"sR"),jl=H((e=>{let t,n,{value:i,options:r}=e;return Array.isArray(r)?(n=r,t=r.map((e=>String(e)))):(n=Object.values(r),t=Object.keys(r)),"value"in e?n.includes(i)||(t.unshift(String(i)),n.unshift(i)):i=n[0],Object.values(r).includes(i)||(r[String(i)]=i),{value:i,settings:{keys:t,values:n}}}),"oR"),Ul=Object.freeze({__proto__:null,schema:Fl,sanitize:Bl,format:Hl,normalize:jl}),Vl=Yo("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),ql=Yo("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}
102),zl=Yo("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${ql}:focus + &`]:{$focusStyle:""},[`${ql}:hover + &`]:{$hoverStyle:""}});function Wl({displayValue:e,value:t,onUpdate:n,id:i,settings:r,disabled:a}){let{keys:s,values:o}=r,l=ot();return t===o[e]&&(l.current=s[e]),Sn.createElement(Vl,null,Sn.createElement(ql,{id:i,value:e,onChange:H((e=>n(o[Number(e.currentTarget.value)])),"onChange"),disabled:a},s.map(((e,t)=>Sn.createElement("option",{key:e,value:t},e)))),Sn.createElement(zl,null,l.current),Sn.createElement(xl,{toggled:!0}))}function Gl(){let{label:e,value:t,displayValue:n,onUpdate:i,id:r,disabled:a,settings:s}=Uo();return Sn.createElement(El,{input:!0},Sn.createElement(Sl,null,e),Sn.createElement(Wl,{id:r,value:t,displayValue:n,onUpdate:i,settings:s,disabled:a}))}H(Wl,"uR"),H(Gl,"hR"),mo({component:Gl},Ul);var Kl=H((e=>Li().string().test(e)),"dR"),Yl=H((e=>{if("string"!=typeof e)throw Error("Invalid string");return e}),"fR"),Zl=H((({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:"number"==typeof n?n:n?5:0}})),"pR"),Xl=Object.freeze({__proto__:null,schema:Kl,sanitize:Yl,normalize:Zl}),Ql=["displayValue","onUpdate","onChange","editable"],Jl=Yo("div",{whiteSpace:"pre-wrap"});function eu(e){let{displayValue:t,onUpdate:n,onChange:i,editable:r=!0}=e,a=lo(e,Ql);return r?Sn.createElement(ol,Ho({value:t,onUpdate:n,onChange:i},a)):Sn.createElement(Jl,null,t)}function tu(){let{label:e,settings:t,displayValue:n,onUpdate:i,onChange:r}=Uo();return Sn.createElement(El,{input:!0},Sn.createElement(Sl,null,e),Sn.createElement(eu,Ho({displayValue:n,onUpdate:i,onChange:r},t)))}H(eu,"vR"),H(tu,"wR"),mo({component:tu},Xl);var nu=H((e=>Li().boolean().test(e)),"xR"),iu=H((e=>{if("boolean"!=typeof e)throw Error("Invalid boolean");return e}),"SR"),ru=Object.freeze({__proto__:null,schema:nu,sanitize:iu}),au=Yo("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function su({value:e,onUpdate:t,id:n,disabled:i}){return Sn.createElement(au,null,Sn.createElement("input",{id:n,type:"checkbox",checked:e,onChange:H((e=>t(e.currentTarget.checked)),"onChange"),disabled:i}),Sn.createElement("label",{htmlFor:n},Sn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Sn.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function ou(){let{label:e,value:t,onUpdate:n,disabled:i,id:r}=Uo();return Sn.createElement(El,{input:!0},Sn.createElement(Sl,null,e),Sn.createElement(su,{value:t,onUpdate:n,id:r,disabled:i}))}H(su,"ER"),H(ou,"CR"),mo({component:ou},ru),Yo("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});var lu=(d=class extends ii{constructor(e){super(),this.type="spacial-content",this.style={opacity:1},this.format="jpg",this.tileUrl=ui(e.url),this.id=e.id||`${this.tileUrl}--${e.scaleFactor}`,this.points=e.displayPoints?e.displayPoints:ti(e.points,Qn(e.scaleFactor)),this.tileWidth=e.tileWidth,this.display={x:0,y:0,width:e.width/e.scaleFactor,height:e.height/e.scaleFactor,points:e.points,scale:e.scaleFactor},e.format&&(this.format=e.format)}applyProps(e){if(e.style&&typeof e.style.opacity<"u"&&(this.style.opacity=e.style.opacity),e.service!==this.service&&(this.service=e.service),e.format?this.format=e.format:this.format="jpg",e.crop){this.cropData=e.crop;let t=Wn([...this.points]),n=t.length/5,i=e.crop.x||0,r=e.crop.y||0,a=e.crop.x+e.crop.width,s=e.crop.y+e.crop.height;for(let e=0;e<n;e++){let n=5*e;t[n+1]<a&&t[n+3]>i&&t[n+2]<s&&t[n+4]>r?(t[n+1]=go(t[n+1],i,a),t[n+3]=go(t[n+3],i,a),t[n+2]=go(t[n+2],r,s),t[n+4]=go(t[n+4],r,s)):t[n]=0}Xn(t,Jn(-e.crop.x,-e.crop.y)),this.crop?this.crop.set(t):this.crop=t}}static fromTile(e,t,n,i,r,a,s){n.height=n.height?n.height:n.width;let o=s?Math.floor(t.width/i):Math.ceil(t.width/i),l=s?Math.floor(t.height/i):Math.ceil(t.height/i),u=Math.ceil(o/n.width),c=Math.ceil(l/n.height),d=Zn.grid(u,c),p=Zn.grid(u,c);for(let f=0;f<c;f++)for(let e=0;e<u;e++){let r=e*n.width,a=f*n.height;p.addPoints(r*i,a*i,e===u-1?t.width:(r+n.width)*i,f===c-1?t.height:(a+n.height)*i),d.addPoints(r,a,e===u-1?o:r+n.width,f===c-1?l:a+n.height)}let h=new lu({url:e,scaleFactor:i,points:d.build(),displayPoints:p.build(),width:t.width,height:t.height,tileWidth:n.width,format:a});return h.applyProps({service:r}),h}getImageUrl(e){let t=this.points.slice(5*e,5*e+5),n=t[3]-t[1],i=t[4]-t[2],r=Math.ceil(n/this.display.scale);return`${this.tileUrl}/${t[1]},${t[2]},${n},${i}/${r>this.tileWidth?this.tileWidth:r},/0/default.${this.format||"jpg"}`}getAllPointsAt(e,t,n){return[[this,zn(this.crop||this.points,e),t]]}transform(e){Xn(this.points,e)}getScheduledUpdates(e,t){return[]}},H(d,"Yn"),d),uu=(p=class extends ii{constructor(){super(...arguments),this.type="spacial-content"}getAllPointsAt(e,t,n){return[[this,this.points,t]]}},H(p,"gv"),p),cu=(H(h=class extends uu{constructor(e){super(),this.images=[],this.allImages=[],this.scaleFactors=[],this.aggregateBuffer=Wn(9),this.isFullyLoaded=!1,this.maxScaleFactor=0,this._scheduleSortByScales=!1,this._sortByScales=()=>{this._scheduleSortByScales=!1,this.allImages.sort(((e,t)=>t.display.width-e.display.width)),this.images=[];let e=.1;for(let t of this.allImages)if(!(t.display.width<this.renderOptions.minSize&&t.dis
102play.height<this.renderOptions.minSize&&!t.priority||t instanceof ri&&(t.display.width>this.renderOptions.maxImageSize||t.display.height>this.renderOptions.maxImageSize)&&!t.priority)){if(Math.abs(t.display.scale-e)<.25||t.priority){let e=this.images.pop();e&&(e instanceof ri||e.priority)?(t.priority&&this.images.push(t),this.images.push(e)):t&&this.images.push(t)}else t&&this.images.push(t);e=t.display.scale}0===this.images.length&&(this.images=[...this.allImages]),this.scaleFactors=this.images.map((e=>e.display.scale)),this.maxScaleFactor=Math.max(...this.scaleFactors)},this.loadFullResource=()=>V(this,null,(function*(){if(!this.isFullyLoaded&&this.lazyLoader){this.isFullyLoaded=!0;let e=yield this.lazyLoader();this.addImages(e)}})),this.fallback=[this.loadFullResource],this.id=e.id,this.points=Zn.singleBox(e.width,e.height),this.lazyLoader=e.loadFullImages,e.loadFullImages||(this.isFullyLoaded=!0),this.display={x:0,y:0,points:Zn.singleBox(e.width,e.height),height:e.height,width:e.width,scale:1},this.renderOptions=re({renderSmallestFallback:!0,renderLayers:2,minSize:255,maxImageSize:1024,quality:1.75},e.renderOptions||{}),this.addImages(e.images)}applyProps(e){typeof e.renderSmallestFallback<"u"&&e.renderSmallestFallback!==this.renderOptions.renderSmallestFallback&&(this.renderOptions.renderSmallestFallback=e.renderSmallestFallback),typeof e.renderLayers<"u"&&e.renderLayers!==this.renderOptions.renderLayers&&(this.renderOptions.renderLayers=e.renderLayers),typeof e.minSize<"u"&&e.minSize!==this.renderOptions.minSize&&(this.renderOptions.minSize=e.minSize),typeof e.maxImageSize<"u"&&e.maxImageSize!==this.renderOptions.maxImageSize&&(this.renderOptions.maxImageSize=e.maxImageSize),typeof e.quality<"u"&&e.quality!==this.renderOptions.quality&&(this.renderOptions.quality=e.quality)}appendChild(e){this.addImages([e])}removeChild(e){-1!==this.images.indexOf(e)&&(this.images=this.images.filter((t=>t!==e)),this.sortByScales())}insertBefore(e,t){this.addImages([e])}hideInstance(){}addImages(e){for(let t of e)t.__parent=this,t.__owner=this.__owner;this.allImages.push(...e.filter(Boolean)),this.sortByScales()}sortByScales(){this._scheduleSortByScales=!0}getScheduledUpdates(e,t){return this._scheduleSortByScales?[this._sortByScales]:this.isFullyLoaded?[]:t>1/this.maxScaleFactor?this.fallback:[]}getAllPointsAt(e,t,n){if(0===this.images.length)return[];let i=si(1/(n||1)/(window.devicePixelRatio||1),this.images,this.renderOptions.quality),r=this.images.length,a=t?Yn(t,Jn(this.x,this.y)):Jn(this.x,this.y);if(i!==this.images.length-1&&this.images[i+1]){let t=[];for(let e=r-1;e>=i;e--)t.push(e);let s=t[0];this.renderOptions.renderLayers&&(t=t.slice(-Math.min(t.length,this.renderOptions.renderLayers))),this.renderOptions.renderSmallestFallback&&-1===t.indexOf(s)&&t.unshift(s);let o=[];for(let i=0;i<t.length;i++)o.push(...this.images[t[i]].getAllPointsAt(e,a,n));return o}return this.images[i].getAllPointsAt(e,a,n)}},"Jo"),h);function du(e,t,n,i,r){let a=Math.PI/180*r,s=Math.cos(a),o=Math.sin(a);return[s*(n-e)+o*(i-t)+e,s*(i-t)-o*(n-e)+t]}H(du,"kl");var pu,hu,fu,mu,gu,yu,vu,bu,_u,wu,Su,Cu,ku,xu,Tu,Eu=(f=class extends ii{constructor(e,t){super(),this.type="world-object",this.intersectionBuffer=Wn(5),this.aggregateBuffer=Wn(9),this.invertedBuffer=Wn(9),this.rotation=0,this._updatedList=[];let{x:n=0,y:i=0}=t||{};e?(this.id=e.id||"",this.scale=1,this.layers=e.layers,this.points=Wn([1,n,i,n+e.width,i+e.height]),this.worldPoints=Wn([1,n,i,n+e.width,i+e.height]),this.filteredPointsBuffer=Wn(5*e.layers.length)):(this.id="",this.scale=1,this.layers=[],this.points=Wn(5),this.worldPoints=Wn(5),this.filteredPointsBuffer=Wn(5))}static createWithProps(e){let t=new Eu;return t.applyProps(e),t}applyProps(e){let t=e.x||0,n=e.y||0;this.id=e.id;let i=typeof e.scale<"u"?e.scale:this.scale;this.points[0]=1,this.points[1]=t,this.points[2]=n,this.points[3]=t+e.width,this.points[4]=n+e.height,this.rotation=e.rotation||0,this.worldPoints[3]=this.worldPoints[1]+e.width,this.worldPoints[4]=this.worldPoints[2]+e.height,e.scale&&1!==e.scale&&this.atScale(i),this.scale=i}appendChild(e){0===e.points[0]&&e.points.set(this.points),e.__owner.value=this,this.addLayers([e])}removeChild(e){this.layers=this.layers.filter((t=>t!==e)),this.filteredPointsBuffer=Wn(5*this.layers.length)}insertBefore(e,t){let n=this.layers.indexOf(t);if(-1===n||-1!==this.layers.indexOf(e))return;let i=this.layers.slice(0,n),r=this.layers.slice(n);this.layers=[...i,e,...r]}hideInstance(){console.warn("hideInstance: not yet implemented")}getObjectsAt(e,t){if(this.rotation&&(e=this.applyRotation(e)),0===zn(this.points,e,this.filteredPointsBuffer)[0])return[];let n=this.layers.length,i=[];for(let r=0;r<n;r++){let n=this.layers[r];if(t&&n.isShape){let t=ti(n.points,Jn(this.x,this.y));if(!n.intersects([e[1]-t[1],e[2]-t[2]]))continue}if(0!==zn(ti(n.points,Jn(this.x,this.y)),e,this.filteredPointsBuffer)[0]&&i.push(n),t){let r=n;i.push(...r.getObjectsAt(e,t))}}return i}applyRotation(e){if(this.rotation){let t={x:e[1],y:e[2]},n={x:e[1],y:e[4]},i={x:e[3],y:e[2]},r={x:e[3],y:e[4]},a=this.points[1]+(this.points[3]-this.points[1])/2,s=this.points[2]+(this.points[4]-this.points[2])/2,[o,l]=du(a,s,t.x,t.y,this.rotation),[u,c]=du(a,s,n.x,n.y,this.rotation),[d,p]=du(a,s,i.x,i.y,this.rotation),[h,f]=du(a,s,r.x,r.y,this.rotation),m=Math.min(o,u,d,h),g=Math.max(o,u,d,h),y=Math.min(l,c,p,f),v=Math.max(l,c,p,f);return Wn([e[0],m,y,g,v])}return e}getAllPointsAt(e,t,n){let i=Yn(Jn(this.x,this.y),Qn(this.scale),this.aggregateBuffer);this.rotation&&(e=this.applyRotation(e));let r=Gn(e,this.points,this.intersectionBuffer),a=this.layers.length,s=[],o=ti(r,Yn(Qn(1/this.scale),Jn(-this.x,-this.y),this.invertedBuffer)),l=t?Yn(t,i,this.aggregateBuffer):i,u=n*this.scale;for(let c=0;c<a;c++)s.push(...this.layers[c].getAllPointsAt(o,l,u));return s}addLayers(e){let t=[];for(let n of e)-1===this.layers.indexOf(n)&&(t.push(n),5===n.points.length&&(n.points[1]<this.worldPoints[1]/this.scale||n.points[2]<this.worldPoints[2]/this.scale||n.points[3]>this.worldPoints[3]/this.scale||n.points[4]>this.worldPoints[4]/this.scale)&&(n.crop=n.crop||Wn([1,Math.max(this.worldPoints[1]/this.scale,n.points[1]),Math.max(this.worldPoints[2]/this.scale,n.points[2]),Math.min(this.worldPoints[3]/this.scale,n.points[3]),Math.min(this.worldPoints[4]/this.scale,n.points[4])])));this.layers=this.layers.concat(t),this.filteredPointsBuffer=Wn(5*this.layers.length)}getScheduledUpdates(e,t){let n=this.layers.length;this._updatedList=[];let i=t*this.scale;for(let r=0;r<n;r++){let t=this.layers[r].getScheduledUpdates(e,i);t&&this._updatedList.push(...t)}return this._updatedList}},H(f,"gi"),f),Au=(H(m=class extends ii{constructor(e=0,t=0,n=100,i="left-to-right"){super(),this.id="world",this.aggregateBuffer=Wn(9),this.isDirty=!1,this.zones=[],this.triggerQueue=[],this.activatedEvents=[],this._updatedList=[],this.translationBuffer=Wn(9),this.needsRecalculate=!0,this.emptyPaintables=[],this.renderOrder=[],this.objects=[],this.subscriptions=[],this._propagateEventTargets=[],this._alreadyFlushed=[],this._width=e,this._height=t,this.aspectRatio=Number.isNaN(e/t)?1:e/t,this.viewingDirection=i,this.points=Wn(5*n),this.filteredPointsBuffer=Wn(5*n)}get x(){return 0}get y(){return 0}get width(){return this._width}get height(){return this._height}static withProps(e){let t=new Au;return t.applyProps(e),t}applyProps(e){typeof e.width<"u"&&typeof e.height<"u"&&(e.width!==this._width||e.height!==this._height)&&this.resize(e.width,e.height),e.viewingDirection!==this.viewingDirection&&(this.viewingDirection=e.viewingDirection,this.triggerRepaint())}propagateTouchEvent(e,t,n){let i=[];for(let r of n)if(r.x&&r.y){let e=Zn.singleBox(1,1,r.x,r.y);i.push(this.getObjectsAt(e,!0).reverse())}return i.map((n=>
102this.propagateEvent(e,t,n,{bubbles:!0,cancelable:!0})))}propagatePointerEvent(e,t,n,i,r={}){let a=Zn.singleBox(1,1,n,i),s=this.getObjectsAt(a,!0).reverse();return this.propagateEvent(e,t,s,r)}propagateEvent(e,t,n,{bubbles:i=!1,cancelable:r=!1}={}){t.atlasTarget=this,this._propagateEventTargets.length=1,this._propagateEventTargets[0]=this;let a=!1;t.stopPropagation=()=>{a=!0};for(let l=n.length-1;l>=0;l--){this._propagateEventTargets.unshift(n[l][0]);let e=n[l][1].length;if(e)for(let t=0;t<e;t++)this._propagateEventTargets.unshift(n[l][1][t])}let s=this._propagateEventTargets.length,o=!1;for(let l=0;l<s&&(t.atlasTarget=this._propagateEventTargets[l],t.atlasWorld=this,o=this._propagateEventTargets[l].dispatchEvent(e,t)||o,!a);l++);return o&&this.triggerRepaint(),this._propagateEventTargets}appendChild(e){let t=this.appendWorldObject(e);this.renderOrder.push(t/5)}removeChild(e){let t=this.objects.indexOf(e);if(-1!==t)this.objects[t]=null,this.renderOrder=this.renderOrder.filter((e=>e!==t)),this.points[5*t]=0,this.triggerRepaint(),this.needsRecalculate=!0;else for(let n of this.objects)if(n&&n.id===e.id)return void this.removeChild(n)}insertBefore(e,t){let n=this.objects.indexOf(t);if(-1===n)return;let i=this.appendWorldObject(e);this.renderOrder.splice(n-1,0,i/5)}hideInstance(){}asWorldObject(){return null}addZone(e){this.zones.push(e)}selectZone(e){if("string"==typeof e){let t=this.zones.length;for(let n=0;n<t;n++)if(this.zones[n].id===e)return this.selectedZone=n,void this.trigger("zone-changed")}else this.zones[e]&&(this.selectedZone=e,this.trigger("zone-changed"))}deselectZone(){this.selectedZone=void 0}getActiveZone(){if(this.selectedZone)return this.zones[this.selectedZone]}hasActiveZone(){return typeof this.selectedZone<"u"}checkResizeInternalBuffer(){if(Kn(this.points)===this.objects.length){let e=this.points,t=Wn(2*this.points.length);t.set(e,0),this.points=t}}appendWorldObject(e){this.checkResizeInternalBuffer();let t=5*this.objects.length,n=e.points;return e.points=this.points.subarray(5*this.objects.length,5*this.objects.length+5),e.points[1]=n[1],e.points[2]=n[2],e.points[3]=n[3],e.points[4]=n[4],this.objects.push(e),this.filteredPointsBuffer=Wn(5*this.objects.length),this.needsRecalculate=!0,this.triggerRepaint(),t}recalculateWorldSize(){let e=!1;if(this.needsRecalculate){let t=new Int32Array(this.objects.length),n=new Int32Array(this.objects.length),i=this.renderOrder.length;for(let e=0;e<i;e++){let i=this.renderOrder[e];this.objects[i]&&(t[e]=this.points[5*i+3],n[e]=this.points[5*i+4])}let r=Math.max(...t);r!==this._width&&(this._width=r,e=!0);let a=Math.max(...n);a!==this._height&&(this._height=a,e=!0),e&&this.trigger("recalculate-world-size",{width:r,height:a}),this.needsRecalculate=!1}return e}addObjectAt(e,t){t.width&&!t.height?t.height=t.width/e.width*e.height:t.height&&!t.width&&(t.width=t.height/e.height*e.width),(!t||!t.width||!t.height)&&(t.width=e.width,t.height=e.height);let{width:n,x:i,y:r}=t,a=n/e.width;this.checkResizeInternalBuffer(),this.points.set(Zn.singleBox(e.width,e.height,0,0),5*this.objects.length);let s=new Eu(e);return s.points=this.points.subarray(5*this.objects.length,5*this.objects.length+5),this.objects.push(s),this.scaleWorldObject(this.objects.length-1,a),this.translateWorldObject(this.objects.length-1,i,r),this.filteredPointsBuffer=Wn(2*this.points.length),this.triggerRepaint(),this.needsRecalculate=!0,s}scaleWorldObject(e,t){Xn(this.points.subarray(5*e,5*e+5),ei(t,this.points[5*e+1],this.points[5*e+2]));let n=this.objects[e];n&&(n.atScale(t),this.triggerRepaint())}translateWorldObject(e,t,n){Xn(this.points.subarray(5*e,5*e+5),Jn(t,n));let i=this.objects[e];i&&(i.translate(t,n),this.triggerRepaint())}resize(e,t){return this._width=e,this._height=t,this.aspectRatio=e/t,this.triggerRepaint(),this}getObjects(){return this.objects}getPoints(){return this.points}getPointsFromViewer(e,t){let n=Zn.singleBox(e.width,e.height,e.x,e.y);return this.getPointsAt(n,t,e.scale)}addLayoutSubscriber(e){return this.subscriptions.push(e),()=>{this.subscriptions.splice(this.subscriptions.indexOf(e),1)}}getScheduledUpdates(e,t){let n=zn(this.points,e,this.filteredPointsBuffer),i=this.objects.length;this._updatedList=[];for(let r=0;r<i;r++)if(0!==n[5*r]){if(!this.objects[r])continue;this._updatedList.push(...this.objects[r].getScheduledUpdates(e,t))}return this._updatedList}getObjectsAt(e,t=!1){let n=this.getActiveZone(),i=zn(this.points,e,this.filteredPointsBuffer),r=this.renderOrder.length,a=[];for(let s=0;s<r;s++){let r=this.renderOrder[s];if(0!==i[5*r]){let i=this.objects[r];if(!i||n&&-1===n.objects.indexOf(i))continue;if("world-object"!==i.type){a.push([i,[i]]);continue}t?a.push([i,i.getObjectsAt(e,t)]):a.push([i,this.emptyPaintables])}}return a}getPointsAt(e,t,n=1){let i=this.getObjectsAt(e),r=Yn(Qn(n),Jn(-e[1],-e[2]),this.translationBuffer),a=t?Yn(t,r,this.aggregateBuffer):r,s=i.length,o=[];for(let l=0;l<s;l++)i[l]&&o.push(...i[l][0].getAllPointsAt(e,a,n));return o}flushSubscriptions(){if(this.triggerQueue.length){this._alreadyFlushed=[];let e=this.triggerQueue.length;for(let t=0;t<e;t++){if(-1!==this._alreadyFlushed.indexOf(this.triggerQueue[t][0]))continue;typeof this.triggerQueue[t][1]>"u"&&this._alreadyFlushed.push(this.triggerQueue[t][0]);let e=this.subscriptions.length;for(let n=0;n<e;n++)this.subscriptions[n].apply(null,this.triggerQueue[t])}this.triggerQueue=[]}}trigger(e,t){this.triggerQueue.push([e,t])}triggerEventActivation(){this.trigger("event-activation")}triggerRepaint(){this.trigger("repaint")}gotoRegion(e){this.trigger("goto-region",e)}goHome(e=!1){this.trigger("go-home",{immediate:e})}zoomTo(e,t,n){this.trigger("zoom-to",{point:t,factor:e,stream:n})}zoomIn(e){this.trigger("zoom-to",{point:e,factor:.5}
102)}zoomOut(e){this.trigger("zoom-to",{point:e,factor:2})}constraintBounds(e){this.trigger("constrain-bounds",{immediate:e})}},"jn"),m),Lu=/([0-9]+(px|em)\s+)+(solid)\s+(.*)/g,Iu={},$u=["backgroundColor","opacity","boxShadow","borderColor","borderWidth","borderStyle","outlineColor","outlineWidth","outlineOffset","outlineStyle"],Du=(H(g=class extends ii{constructor(){super(),this.type="spacial-content",this.hoverEvents=!1,this.activeEvents=!1,this.display={x:0,y:0,scale:1,width:-1,height:-1,points:Wn(5)},this._parsed={border:{id:null,match:[]},outline:{id:null,match:[]}},this.props={},this.addHover=()=>{this.hovering=!0,this.__revision++},this.removeHover=()=>{this.hovering=!1,this.pressing=!1,this.__revision++},this.addPress=()=>{this.pressing=!0,this.__revision++},this.removePress=()=>{this.pressing=!1,this.__revision++},this.id=ni(12),this.points=Wn(5)}getAllPointsAt(e,t){return[[this,this.points,t]]}applyProps(e={}){let t=!1;if(e.interactive!==this.props.interactive&&(t=!0,this.props.interactive=e.interactive),e.style){let n=e.border||e.style.border;if(n!==this._parsed.border.id)if(n){let e=Iu[n]||Lu.exec(n)||Lu.exec(n);e&&(this._parsed.border.id=n,this._parsed.border.match=Iu[n]=e)}else this._parsed.border.id=null,this._parsed.border.match=[];if(this._parsed.border.id&&(e.style.borderWidth=this._parsed.border.match[1],e.style.borderStyle="solid",e.style.borderColor=this._parsed.border.match[4]),e.style.outline!==this._parsed.outline.id)if(e.style.outline){let t=Iu[e.style.outline]||Lu.exec(e.style.outline)||Lu.exec(e.style.outline);t&&(this._parsed.outline.id=e.style.outline,this._parsed.outline.match=Iu[e.style.outline]=t)}else this._parsed.outline.id=null,this._parsed.outline.match=[];
102this._parsed.outline.id&&(e.style.outlineWidth=this._parsed.outline.match[1],e.style.outlineStyle="solid",e.style.outlineColor=this._parsed.outline.match[4]),this.props.style=e.style,e.backgroundColor&&!this.props.style.backgroundColor&&(this.props.style.backgroundColor=e.backgroundColor,t=!0),e.style.background&&!this.props.style.backgroundColor&&(this.props.style.backgroundColor=e.style.background,t=!0);for(let i of $u)if(this.props.style[i]!==e.style[i]){t=!0;break}e.style[":hover"]!==this.props.hoverStyles&&(this.props.hoverStyles=e.style[":hover"],this.hoverEvents||(this.hoverEvents=!0,this.addEventListener("pointerenter",this.addHover),this.addEventListener("pointerleave",this.removeHover)),t=!0),e.style[":active"]!==this.props.pressStyles&&(this.props.pressStyles=e.style[":active"],this.activeEvents||(this.activeEvents=!0,this.addEventListener("mousedown",this.addPress),this.addEventListener("mouseup",this.removePress)),t=!0)}e.href!==this.props.href&&(this.props.href=e.href,t=!0),e.hrefTarget!==this.props.hrefTarget&&(this.props.hrefTarget=e.hrefTarget,t=!0),e.title!==this.props.title&&(this.props.title=e.title,t=!0),e.className!==this.props.className&&(this.props.className=e.className,e.className&&!this.hoverEvents&&(this.hoverEvents=!0,this.addEventListener("pointerenter",this.addHover),this.addEventListener("pointerleave",this.removeHover)),e.className&&!this.activeEvents&&(this.activeEvents=!0,this.addEventListener("mousedown",this.addPress),this.addEventListener("mouseup",this.removePress)),t=!0),e.relativeSize!==this.props.relativeSize&&(this.props.relativeSize=e.relativeSize,t=!0),e.relativeStyle!==this.props.relativeStyle&&(this.props.relativeStyle=e.relativeStyle,t=!0),e.html!==this.props.html&&(this.props.html=e.html,t=!0),e.target&&(e.target.width!==this.display.width||e.target.height!==this.display.height||e.target.x!==this.points[1]||e.target.y!==this.points[2])&&(t=!0,this.points=Zn.singleBox(e.target.width,e.target.height,e.target.x,e.target.y),this.display.points=Zn.singleBox(e.target.width,e.target.height,e.target.x,e.target.y),this.display.width=e.target.width,this.display.height=e.target.height),t&&this.__revision++}},"or"),g),Pu=/([0-9]+(px|em)\s+)+(solid)\s+(.*)/g,Ou={},Mu=["backgroundColor","opacity","boxShadow","borderColor","borderWidth","borderStyle","outlineColor","outlineWidth","outlineOffset","outlineStyle"],Ru=(H(y=class extends ii{constructor(){super(),this.type="spacial-content",this.isShape=!0,this.hoverEvents=!1,this.activeEvents=!1,this.display={x:0,y:0,scale:1,width:-1,height:-1,points:Wn(5)},this.boundingBox=null,this._parsed={border:{id:null,match:[]},outline:{id:null,match:[]}},this.props={},this.shape={type:"none"},this.addHover=()=>{this.hovering=!0,this.__revision++},this.removeHover=()=>{this.hovering=!1,this.pressing=!1,this.__revision++},this.addPress=()=>{this.pressing=!0,this.__revision++},this.removePress=()=>{this.pressing=!1,this.__revision++},this.id=ni(12),this.points=Wn(5),this.shape={type:"none"}}updateBoundingBox(){if("none"===this.shape.type)return;let e=this.shape.points;if(this.shape.points.length>2){let t=Math.min(...e.map((e=>e[0]))),n=Math.min(...e.map((e=>e[1]))),i=Math.max(0,...e.map((e=>e[0]))),r=Math.max(0,...e.map((e=>e[1])));this.boundingBox={x:t,y:n,width:i-t,height:r-n}}else this.boundingBox=null}intersects(e){if(!e||"none"===this.shape.type)return!1;let[t,n]=e,i=this.shape.points,r=this.boundingBox;if(r||(this.updateBoundingBox(),r=this.boundingBox),!r||t<r.x||t>r.x+r.width||n<r.y||n>r.height+r.y)return!1;let a=!1;for(let s=0,o=i.length-1;s<i.length;o=s++)i[s][1]>n!=i[o][1]>n&&t<(i[o][0]-i[s][0])*(n-i[s][1])/(i[o][1]-i[s][1])+i[s][0]&&(a=!a);return a}getAllPointsAt(e,t){return e[3]-e[1]==1&&e[4]-e[2]==1?this.intersects([e[1],e[2]])?[[this,this.points,t]]:[]:[[this,this.points,t]]}applyProps(e={}){let t=!1;if(e.points)if("polygon"!==this.shape.type||this.shape.points.length!==e.points.length)this.shape={type:"polygon",points:e.points,open:e.open},this.updateBoundingBox();else{let t=!1,n=e.points.length;for(let i=0;i<n;i++)if(e.points[i][0]!==this.shape.points[i][0]||e.points[i][1]!==this.shape.points[i][1]){t=!0;break}t&&(this.shape={type:"polygon",points:e.points,open:e.open},this.updateBoundingBox())}if(e.interactive!==this.props.interactive&&(t=!0,this.props.interactive=e.interactive),(e.open||!1===e.open)&&(t=!0,this.shape.open=e.open),e.style){let n=e.border||e.style.border;if(n!==this._parsed.border.id)if(n){let e=Ou[n]||Pu.exec(n)||Pu.exec(n);e&&(this._parsed.border.id=n,this._parsed.border.match=Ou[n]=e)}else this._parsed.border.id=null,this._parsed.border.match=[];if(this._parsed.border.id&&(e.style.borderWidth=this._parsed.border.match[1],e.style.borderStyle="solid",e.style.borderColor=this._parsed.border.match[4]),e.style.outline!==this._parsed.outline.id)if(e.style.outline){let t=Ou[e.style.outline]||Pu.exec(e.style.outline)||Pu.exec(e.style.outline);t&&(this._parsed.outline.id=e.style.outline,this._parsed.outline.match=Ou[e.style.outline]=t)}else this._parsed.outline.id=null,this._parsed.outline.match=[];
102this._parsed.outline.id&&(e.style.outlineWidth=this._parsed.outline.match[1],e.style.outlineStyle="solid",e.style.outlineColor=this._parsed.outline.match[4]),this.props.style=e.style,e.backgroundColor&&!this.props.style.backgroundColor&&(this.props.style.backgroundColor=e.backgroundColor,t=!0),e.style.background&&!this.props.style.backgroundColor&&(this.props.style.backgroundColor=e.style.background,t=!0);for(let i of Mu)if(this.props.style[i]!==e.style[i]){t=!0;break}e.style[":hover"]!==this.props.hoverStyles&&(this.props.hoverStyles=e.style[":hover"],this.hoverEvents||(this.hoverEvents=!0,this.addEventListener("pointerenter",this.addHover),this.addEventListener("pointerleave",this.removeHover)),t=!0),e.style[":active"]!==this.props.pressStyles&&(this.props.pressStyles=e.style[":active"],this.activeEvents||(this.activeEvents=!0,this.addEventListener("mousedown",this.addPress),this.addEventListener("mouseup",this.removePress)),t=!0)}e.href!==this.props.href&&(this.props.href=e.href,t=!0),e.hrefTarget!==this.props.hrefTarget&&(this.props.hrefTarget=e.hrefTarget,t=!0),e.title!==this.props.title&&(this.props.title=e.title,t=!0),e.className!==this.props.className&&(this.props.className=e.className,e.className&&!this.hoverEvents&&(this.hoverEvents=!0,this.addEventListener("pointerenter",this.addHover),this.addEventListener("pointerleave",this.removeHover)),e.className&&!this.activeEvents&&(this.activeEvents=!0,this.addEventListener("mousedown",this.addPress),this.addEventListener("mouseup",this.removePress)),t=!0),e.relativeSize!==this.props.relativeSize&&(this.props.relativeSize=e.relativeSize,t=!0),e.relativeStyle!==this.props.relativeStyle&&(this.props.relativeStyle=e.relativeStyle,t=!0),e.html!==this.props.html&&(this.props.html=e.html,t=!0),e.target&&(e.target.width!==this.display.width||e.target.height!==this.display.height||e.target.x!==this.points[1]||e.target.y!==this.points[2])&&(t=!0,this.points=Zn.singleBox(e.target.width,e.target.height,e.target.x,e.target.y),this.display.points=Zn.singleBox(e.target.width,e.target.height,e.target.x,e.target.y),this.display.width=e.target.width,this.display.height=e.target.height),t&&this.__revision++}},"hd"),y),Nu=(H(v=class extends ii{constructor(){super(),this.type="spacial-content",this.color="#000",this.text="",this.display={x:0,y:0,scale:1,width:100,height:100,points:Wn(5)},this.interactive=!1,this.props={font:"18px Arial, sans-serif",lineHeight:1,textAlign:"left",verticalAlign:"top",paddingX:0,paddingY:0,fitParent:!1,lineBreak:"auto",strokeText:!1,sizeToFill:!1,maxFontSizeToFill:void 0,allowNewLine:!0,justifyLines:!1,renderHDPI:!1,textDecoration:"none",interactive:!1,relativeSize:!1},this.id="",this.points=Wn(5)}getAllPointsAt(e,t){return[[this,this.points,t]]}applyProps(e){var t=e,{id:n,target:i,text:r,color:a,backgroundColor:s,fontSize:o=18,interactive:l,fontFamily:u="Arial, sans-serif"}=t,c=oe(t,["id","target","text","color","backgroundColor","fontSize","interactive","fontFamily"]);c.font=`${o}px ${u}`,this.interactive=l||!1,typeof r<"u"&&(this.text=r||""),a&&(this.color=a),s&&(this.backgroundColor=s),n&&(this.id=n),i&&(this.points=Zn.singleBox(i.width,i.height,i.x,i.y),this.display.points=this.points,this.display.width=i.width,this.display.height=i.height),this.props=re(re({},this.props),c),this.__revision++}},"Nr"),v),Fu=Math.pow,Bu=Math.sqrt,Hu=Math.sin,ju=Math.cos,Uu=Math.PI,Vu=1.70158,qu=2.5949095,zu=Vu+1,Wu=2*Uu/3,Gu=2*Uu/4.5,Ku=H((function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}),"jl"),Yu={linear:H((e=>e),"linear"),easeInQuad:H((function(e){return e*e}),"easeInQuad"),easeOutQuad:H((function(e){return 1-(1-e)*(1-e)}),"easeOutQuad"),easeInOutQuad:H((function(e){return e<.5?2*e*e:1-Fu(-2*e+2,2)/2}),"easeInOutQuad"),easeInCubic:H((function(e){return e*e*e}),"easeInCubic"),easeOutCubic:H((function(e){return 1-Fu(1-e,3)}),"easeOutCubic"),easeInOutCubic:H((function(e){return e<.5?4*e*e*e:1-Fu(-2*e+2,3)/2}),"easeInOutCubic"),easeInQuart:H((function(e){return e*e*e*e}),"easeInQuart"),easeOutQuart:H((function(e){return 1-Fu(1-e,4)}),"easeOutQuart"),easeInOutQuart:H((function(e){return e<.5?8*e*e*e*e:1-Fu(-2*e+2,4)/2}),"easeInOutQuart"),easeInQuint:H((function(e){return e*e*e*e*e}),"easeInQuint"),easeOutQuint:H((function(e){return 1-Fu(1-e,5)}),"easeOutQuint"),easeInOutQuint:H((function(e){return e<.5?16*e*e*e*e*e:1-Fu(-2*e+2,5)/2}),"easeInOutQuint"),easeInSine:H((function(e){return 1-ju(e*Uu/2)}),"easeInSine"),easeOutSine:H((function(e){return Hu(e*Uu/2)}),"easeOutSine"),easeInOutSine:H((function(e){return-(ju(Uu*e)-1)/2}),"easeInOutSine"),easeInExpo:H((function(e){return 0===e?0:Fu(2,10*e-10)}),"easeInExpo"),easeOutExpo:H((function(e){return 1===e?1:1-Fu(2,-10*e)}),"easeOutExpo"),easeInOutExpo:H((function(e){return 0===e?0:1===e?1:e<.5?Fu(2,20*e-10)/2:(2-Fu(2,-20*e+10))/2}),"easeInOutExpo"),easeInCirc:H((function(e){return 1-Bu(1-Fu(e,2))}),"easeInCirc"),easeOutCirc:H((function(e){return Bu(1-Fu(e-1,2))}),"easeOutCirc"),easeInOutCirc:H((function(e){return e<.5?(1-Bu(1-Fu(2*e,2)))/2:(Bu(1-Fu(-2*e+2,2))+1)/2}),"easeInOutCirc"),easeInBack:H((function(e){return zu*e*e*e-Vu*e*e}),"easeInBack"),easeOutBack:H((function(e){return 1+zu*Fu(e-1,3)+Vu*Fu(e-1,2)}
102),"easeOutBack"),easeInOutBack:H((function(e){return e<.5?Fu(2*e,2)*(7.189819*e-qu)/2:(Fu(2*e-2,2)*((qu+1)*(2*e-2)+qu)+2)/2}),"easeInOutBack"),easeInElastic:H((function(e){return 0===e?0:1===e?1:-Fu(2,10*e-10)*Hu((10*e-10.75)*Wu)}),"easeInElastic"),easeOutElastic:H((function(e){return 0===e?0:1===e?1:Fu(2,-10*e)*Hu((10*e-.75)*Wu)+1}),"easeOutElastic"),easeInOutElastic:H((function(e){return 0===e?0:1===e?1:e<.5?-Fu(2,20*e-10)*Hu((20*e-11.125)*Gu)/2:Fu(2,-20*e+10)*Hu((20*e-11.125)*Gu)/2+1}),"easeInOutElastic"),easeInBounce:H((function(e){return 1-Ku(1-e)}),"easeInBounce"),easeOutBounce:Ku,easeInOutBounce:H((function(e){return e<.5?(1-Ku(1-2*e))/2:(1+Ku(2*e-1))/2}),"easeInOutBounce")},Zu=(H(b=class{constructor(e){this.runtime=e,this.pendingTransition={from:Wn(5),to:Wn(5),elapsed_time:0,done:!0,total_time:0,timingFunction:Yu.easeInOutQuad,constrain:!1}}hasPending(){return!this.pendingTransition.done}getPendingTransition(){return this.pendingTransition}getPendingFrom(){return this.pendingTransition.from}customTransition(e){e(this.pendingTransition)}stopTransition(){this.pendingTransition.from=Wn(this.runtime.target),this.pendingTransition.to=Wn(this.runtime.target),this.pendingTransition.done=!0,this.pendingTransition.elapsed_time=0,this.pendingTransition.total_time=0}runTransition(e,t){if(!this.pendingTransition.done){let n=this.pendingTransition,i=0===n.total_time?0:(n.elapsed_time+t)/n.total_time,r=0===n.total_time?1:0===i?0:n.timingFunction(i);e[1]=n.from[1]+(n.to[1]-n.from[1])*r,e[2]=n.from[2]+(n.to[2]-n.from[2])*r,e[3]=n.from[3]+(n.to[3]-n.from[3])*r,e[4]=n.from[4]+(n.to[4]-n.from[4])*r,this.pendingTransition.elapsed_time+=t,this.pendingTransition.elapsed_time>=this.pendingTransition.total_time&&(this.pendingTransition.done=!0,this.pendingTransition.constrain&&this.constrainBounds({transition:{duration:0===this.pendingTransition.total_time?0:500,easing:Yu.easeOutExpo}}))}}zoomTo(e,{origin:t,stream:n=!1,transition:i}={}){let r=this.runtime.getZoomedPosition(e,{origin:t}),a=Math.abs(1-e);this.applyTransition(r,i,{duration:2e3*a,easing:Yu.easeOutExpo,constrain:!0},{stream:!1})}constrainBounds({transition:e,panPadding:t=0}={}){let[n,i]=this.runtime.constrainBounds(this.runtime.target,{panPadding:t});n&&(this.applyTransition(i,e,{duration:500,easing:Yu.easeOutQuart,constrain:!1}),this.runtime.updateNextFrame())}applyTransition(e,t,n,{stream:i}={}){this.pendingTransition.from=Wn(this.runtime.target),this.pendingTransition.to=e,i||(this.pendingTransition.elapsed_time=0),this.pendingTransition.done=!1,this.pendingTransition.total_time=typeof(null==t?void 0:t.duration)<"u"?t.duration:typeof(null==n?void 0:n.duration)<"u"?n.duration:1e3,this.pendingTransition.constrain=typeof(null==t?void 0:t.constrain)<"u"?t.constrain:typeof(null==n?void 0:n.constrain)<"u"&&n.constrain,this.pendingTransition.timingFunction=(null==t?void 0:t.easing)||(null==n?void 0:n.easing)||Yu.easeInOutSine}goToRegion(e,{transition:t}={}){let n=this.runtime.clampRegion(e);this.applyTransition(Zn.singleBox(n.width,n.height,n.x,n.y),t,{duration:1e3,easing:Yu.easeOutExpo,constrain:!0}),this.runtime.updateNextFrame()}},"mv"),b),Xu=(_=class{constructor(e,t,n,i=[],r){this.id=ni(),this.ready=!1,this.transformBuffer=Wn(500),this.lastTarget=Wn(5),this.zoomBuffer=Wn(5),this.logNextRender=!1,this.pendingUpdate=!0,this.isCommitting=!1,this.firstRender=!0,this.mode="explore",this.controllers=[],this.controllersRunning=!1,this.controllerStopFunctions=[],this.maxScaleFactor=1,this._viewerToWorld={x:0,y:0},this._lastGoodScale=1,this.hooks={useFrame:[],useBeforeFrame:[],useAfterPaint:[],useAfterFrame:[]},this.hookOptions={filters:{grayscale:0,contrast:0,brightness:0,saturate:0,sepia:0,invert:0,hueRotate:0,blur:0}},this._viewport={x:0,y:0,width:0,height:0},this.setViewport=e=>{let t=Math.round(typeof e.x>"u"?this.target[1]:e.x),n=Math.round(typeof e.y>"u"?this.target[2]:e.y);e.width?this.target[3]=t+e.width:this.target[3]=this.target[3]-this.target[1]+t,e.height?this.target[4]=n+e.height:this.target[4]=this.target[4]-this.target[2]+n,Math.abs(this.target[1]-t)>.01&&(this.target[1]=t),Math.abs(this.target[2]-n)>.01&&(this.target[2]=n),this.pendingUpdate=!0},this.render=e=>{let t=e-this.lastTime;if(this.isCommitting||this.fpsLimit&&t<1e3/this.fpsLimit)return void(this.stopId=window.requestAnimationFrame(this.render));this.lastTime=e,this.world.flushSubscriptions(),this.stopId=window.requestAnimationFrame(this.render),this.hook("useFrame",t);let n=this.pendingUpdate,i=this.renderer.pendingUpdate();if(this.transitionManager.hasPending()&&(this.transitionManager.runTransition(this.target,t),this.pendingUpdate=!0,this.updateControllerPosition()),!this.firstRen
102der&&!n&&!i&&this.target[0]===this.lastTarget[0]&&this.target[1]===this.lastTarget[1]&&this.target[2]===this.lastTarget[2]&&this.target[3]===this.lastTarget[3]&&this.target[4]===this.lastTarget[4])return;this.hook("useBeforeFrame",t),this.renderer.beforeFrame(this.world,t,this.target,this.hookOptions);let r=this.getScaleFactor(),a=this.renderer.getPointsAt(this.world,this.target,this.aggregate,r),s=a.length;for(let u=0;u<s;u++){let e=a[u][0],t=a[u][1],n=a[u][2],i=n?ti(t,n,this.transformBuffer):t;this.renderer.prepareLayer(e,e.__parent&&n?ti(e.__parent.crop||e.__parent.points,n):i);let r=i.length/5;for(let a=0;a<r;a++){let t=5*a;0!==i[t]&&(this.renderer.paint(e,a,i[t+1],i[t+2],i[t+3]-i[t+1],i[t+4]-i[t+2]),this.hook("useAfterPaint",e))}this.renderer.finishLayer(e,t)}this.renderer.afterFrame(this.world,t,this.target,this.hookOptions),this.hook("useAfterFrame",t),this.lastTarget[0]=this.target[0],this.lastTarget[1]=this.target[1],this.lastTarget[2]=this.target[2],this.lastTarget[3]=this.target[3],this.lastTarget[4]=this.target[4],this.firstRender=!1,this.pendingUpdate=!1,this.logNextRender=!1,this.renderer.isReady()&&(this.ready=!0,this.world.trigger("ready")),this.world.flushSubscriptions();let o=this.world.getScheduledUpdates(this.target,r),l=o.length;if(l>0)for(let u=0;u<l;u++){let e=o[l-u-1]();e?e.then((()=>{this.pendingUpdate=!0})):this.pendingUpdate=!0}},this.renderer=e,this.world=t,this.options=re({maxOverZoom:1,maxUnderZoom:1,visibilityRatio:1.5},r||{}),this.target=Zn.projection(n),this.manualHomePosition=!1,this.pendingUpdate=!0,this.homePosition=Zn.projection(this.world),this.manualFocalPosition=!1,this.focalPosition=this.target,this.updateFocalPosition(),this.transitionManager=new Zu(this),this.aggregate=Qn(1),this.world.addLayoutSubscriber((e=>{"repaint"===e&&(this.pendingUpdate=!0),"recalculate-world-size"===e&&(this.manualHomePosition||(this.setHomePosition(),this.goHome()),this.updateFocalPosition())})),this.lastTime=performance.now(),this.controllers=i,this.render(this.lastTime),this.startControllers()}get x(){return this.target[1]}set x(e){this.target[1]=e}get y(){return this.target[2]}set y(e){this.target[2]=e}get x2(){return this.target[3]}set x2(e){this.target[3]=e}get y2(){return this.target[4]}set y2(e){this.target[4]=e}get width(){return this.target[3]-this.target[1]}set width(e){this.target[3]=this.target[1]+e}get height(){return this.target[4]-this.target[2]}set height(e){this.target[4]=this.target[2]=e}setHomePosition(e){this.homePosition.set(Zn.projection(e||this.world)),this.pendingUpdate=!0}startControllers(){if(!this.controllersRunning){for(let e of this.controllers)this.controllerStopFunctions.push(e.start(this));this.controllersRunning=!0}}stopControllers(){if(this.controllersRunning){for(let e of this.controllerStopFunctions)e();this.controllersRunning=!1,this.controllerStopFunctions=[]}}updateControllerPosition(){for(let e of this.controllers)e.updatePosition(this.x,this.y,this.width,this.height)}triggerResize(){this.renderer.triggerResize&&this.renderer.triggerResize(),this.pendingUpdate=!0}addController(e){this.controllers.push(e),this.controllersRunning&&e.start(this),this.pendingUpdate=!0}cover(){return this.goHome({cover:!0})}getRendererScreenPosition(){return this.renderer.getRendererScreenPosition()}updateRendererScreenPosition(){this.pendingUpdate=!0,this.renderer.resize()}setOptions(e){this.options=re(re({},this.options),e)}goHome(e={}){if(this.world.width<=0||this.world.height<=0)return;let t=this.getScaleFactor(),n=e.position?{x:e.position[1],y:e.position[2],width:e.position[3]-e.position[1],height:e.position[4]-e.position[2]}:{x:this.homePosition[1],y:this.homePosition[2],width:this.homePosition[3]-this.homePosition[1],height:this.homePosition[4]-this.homePosition[2]},i=this.width*t,r=this.height*t,a=n.width/i,s=n.height/r,o=i/r;if(e.cover?a>s:a<s){let e=o*n.height,t=(e-n.width)/2;this.target[1]=Math.round(-t+n.x),this.target[2]=Math.round(n.y),this.target[3]=Math.round(e-t+n.x),this.target[4]=Math.round(n.height+n.y)}else{let e=n.width/o,t=(e-n.height)/2;this.target[1]=Math.round(n.x),this.target[2]=Math.round(n.y-t),this.target[3]=Math.round(n.x+n.width),this.target[4]=Math.round(n.y+e-t)}this.constrainBounds(this.target),this.updateControllerPosition()}resize(e,t,n,i){this.updateFocalPosition(e-t,n-i);let r=t/e,a=i/n;this.target[3]=this.target[1]+(this.target[3]-this.target[1])*r,this.target[4]=this.target[2]+(this.target[4]-this.target[2])*a,this.goHome({position:this.focalPosition}),this.renderer.resize(t,i),this.pendingUpdate=!0}updateFocalPosition(e,t){if(!this.manualFocalPosition){let e=this.width,t=this.height,n=Math.min(e,t),i=0,r=0,a=this.x+i,s=this.y+r;if(e<t){let e=this.height-this.width;this.focalPosition=Zn.projection({x:a,y:s+e/2,width:n-2*i,height:n-2*r}),this.pendingUpdate=!0}else{let e=this.width-this.height;this.focalPosition=Zn.projection({x:a+e/2,y:s,width:n-2*i,height:n-2*r}),this.pendingUpdate=!0}}}getViewport(){return this._viewport.x=this.target[1],this._viewport.y=this.target[2],this._viewport.width=this.target[3]-this.target[1],this._viewport.height=this.target[4]-this.target[2],this._viewport}constrainBounds(e,{panPadding:t=0,ref:n=!1}={}){let{minX:i,maxX:r,minY:a,maxY:s}=this.getBounds({target:e,padding:t}),o=!1,l=n?e:Wn(e),u=Math.round(e[3]-e[1]),c=Math.round(e[4]-e[2]);return i>e[1]&&(o=!0,l[1]=i,l[3]=i+u),a>e[2]&&(o=!0,l[2]=a,l[4]=a+c),r<e[1]&&(o=!0,l[1]=r,l[3]=r+u),s<e[2]&&(o=!0,l[2]=s,l[4]=s+c),[o,l]}getBounds(e){let t=e.target||this.target,n=e.padding,i=this.options.visibilityRatio,r
102=Math.abs(1-i);if(this.world.hasActiveZone()){let e=this.world.getActiveZone();if(e){let i=t[3]-t[1]<e.points[3]-e.points[1],r=t[4]-t[2]<e.points[4]-e.points[2];return{minX:i?e.points[1]-n:e.points[1]+(e.points[3]-e.points[1])/2-(t[3]-t[1])/2,maxX:r?e.points[2]-n:e.points[2]+(e.points[4]-e.points[2])/2-(t[4]-t[2])/2,minY:i?e.points[3]+n:e.points[1]+(e.points[3]-e.points[1])/2-(t[3]-t[1])/2,maxY:r?e.points[4]+n:e.points[2]+(e.points[4]-e.points[2])/2-(t[4]-t[2])/2}}}let a=t[3]-t[1],s=-a*r,o=this.world.width-a-s,l=t[4]-t[2],u=-l*r,c=this.world.height-l-u,d=Math.round(Math.max(s,o)),p=Math.round(Math.min(s,o)),h=Math.round(Math.max(u,c));return{minX:p,maxX:d,minY:Math.round(Math.min(u,c)),maxY:h}}getScaleFactor(e=!1){let t=this.renderer.getScale(this.target[3]-this.target[1],this.target[4]-this.target[2],e);return 0===t?this._lastGoodScale:(this._lastGoodScale=t,t)}getZoomedPosition(e,{origin:t,fromPos:n}){var i;let r=n?{width:n[3]-n[1],height:n[4]-n[2]}:void 0,a=r?this.renderer.getScale(r.width,r.height):this.getScaleFactor(),s=r?r.width:this.width,o=r?r.height:this.height,l=null==(i=this.getRendererScreenPosition())?void 0:i.width,u=this.world.width,c=l?l/u:1,d=this.options.maxUnderZoom,p=Math.max(c||1,this.options.maxOverZoom),h=1/e,f=a*h;if(h<1){let t=s*a,n=o*a;if(this.world.width/t>this.world.height/n){this.world.width*f<~~(s*a)*d&&(e=this.world.width*a/(s*a*d))}else{this.world.height*f<~~(o*a)*d&&(e=this.world.height*a/(o*a*d))}}else f>p&&(e=a/p);let m=ti(this.target,ei(e,t?t.x:this.target[1]+(this.target[3]-this.target[1])/2,t?t.y:this.target[2]+(this.target[4]-this.target[2])/2),this.zoomBuffer);return this.constrainBounds(m,{ref:!0,panPadding:100}),m}clampRegion({x:e,y:t,width:n,height:i,padding:r=0}){let a=this.width,s=this.height,o=e-r,l=t-r,u=n+2*r,c=i+2*r;if(n/a<i/s){let e=c/s*a;return{x:o-(e-u)/2,y:l,width:e,height:c}}let d=u/a*s;return{x:o,y:l-(d-c)/2,width:u,height:d}}viewerToWorld(e,t){let n=this.getScaleFactor();return this._viewerToWorld.x=this.target[1]+e/n,this._viewerToWorld.y=this.target[2]+t/n,this._viewerToWorld}worldToViewer(e,t,n,i){let r=Zn.singleBox(n,i,e,t);return Xn(r,Yn(Qn(this.getScaleFactor()),Jn(-this.target[1],-this.target[2]))),{x:r[1],y:r[2],width:r[3]-r[1],height:r[4]-r[2],strand:r}}setScale(e,t){Xn(this.target,ei(e,t?t.x:this.target[1]+(this.target[3]-this.target[1])/2,t?t.y:this.target[2]+(this.target[4]-this.target[2])/2)),this.pendingUpdate=!0}syncTo(e){let t=this.target;return this.target=e.target,this.pendingUpdate=!0,()=>{this.target=t}}stop(){return typeof this.stopId<"u"&&(window.cancelAnimationFrame(this.stopId),this.stopId=void 0),()=>{this.render(performance.now())}}reset(){this.renderer.reset()}selectZone(e){this.world.selectZone(e),this.pendingUpdate=!0}deselectZone(){this.world.deselectZone(),this.pendingUpdate=!0}hook(e,t){let n=this.hooks[e].length;if(0!==n)for(let i=0;i<n;i++)this.hooks[e][i](t)}registerHook(e,t){return this.hooks[e].push(t),()=>{this.hooks[e]=this.hooks[e].filter((e=>e!==t))}}updateNextFrame(){this.pendingUpdate=!0}},H(_,"ea"),_),Qu="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,Ju="function"==typeof AbortController?AbortController:class{constructor(){this.signal=new nc}abort(e=new Error("This operation was aborted")){this.signal.reason=e,this.signal.dispatchEvent({type:"abort",target:this.signal})}},ec="function"==typeof AbortSignal,tc="function"==typeof Ju.AbortSignal,nc=ec?AbortSignal:tc?Ju.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(e){"abort"===e.type&&(this.aborted=!0,this.onabort(e),this._listeners.forEach((t=>t(e)),this))}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter((e=>e!==t)))}},ic=new Set,rc=H(((e,t)=>{let n=`LRU_CACHE_OPTION_${e}`;lc(n)&&uc(n,`${e} option`,`options.${t}`,fc)}),"jh"),ac=H(((e,t)=>{let n=`LRU_CACHE_METHOD_${e}`;if(lc(n)){let{prototype:i}=fc,{get:r}=Object.getOwnPropertyDescriptor(i,e);uc(n,`${e} method`,`cache.${t}()`,r)}}),"Bh"),sc=H(((e,t)=>{let n=`LRU_CACHE_PROPERTY_${e}`;if(lc(n)){let{prototype:i}=fc,{get:r}=Object.getOwnPropertyDescriptor(i,e);uc(n,`${e} property`,`cache.${t}`,r)}}),"OR"),oc=H(((...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)}),"vv"),lc=H((e=>!ic.has(e)),"uc"),uc=H(((e,t,n,i)=>{ic.add(e),oc(`The ${t} is deprecated. Please use ${n} instead.`,"DeprecationWarning",e,i)}),"fd"),cc=H((e=>e&&e===Math.floor(e)&&e>0&&isFinite(e)),"ir"),dc=H((e=>cc(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?pc:null:null),"wv"),pc=(H(w=class extends Array{constructor(e){super(e),this.fill(0)}},"Vo"),w),hc=(H(S=class{constructor(e){if(0===e)return[];let t=dc(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},"xv"),S),fc=(C=class{constructor(e={}){let{max:t=0,ttl:n,ttlResolution:i=1,ttlAutopurge:r,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:o,dispose:l,disposeAfter:u,noDisposeOnSet:c,noUpdateTTL:d,maxSize:p=0,maxEntrySize:h=0,sizeCalculation:f,fetchMethod:m,fetchContext:g,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:_,ignoreFetchAbort:w}=e,{length:S,maxAge:C,stale:k}=e instanceof fc?{}:e;if(0!==t&&!cc(t))throw new TypeError("max option must be a nonnegative integer");let x=t?dc(t):Array;if(!x)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=p,this.maxEntrySize=h||this.maxSize,this.sizeCalculation=f||S,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=m||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=g,!this.fetchMethod&&void 0!==g)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new x(t),this.prev=new x(t),this.head=0,this.tail=0,this.free=new hc(t),this.initialFill=1,this.size=0,"function"==typeof l&&(this.dispose=l),"function"==typeof u?(this.disposeAfter=u,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!c,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!_,this.ignoreFetchAbort=!!w,0!==this.maxEntrySize){if(0!==this.maxSize&&!cc(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!cc(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!o||!!k,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=cc(i)||0===i?i:1,this.ttlAutopurge=!!r,this.ttl=n||C||0,this.ttl){if(!cc(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){let e="LRU_CACHE_UNBOUNDED";lc(e)&&(ic.add(e),oc("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,fc))}k&&rc("stale","allowStale"),C&&rc("maxAge","ttl"),S&&rc("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new pc(this.max),this.starts=new pc(this.max),this.setItemTTL=(e,t,n=Qu.now())=>{if(this.starts[e]=0!==t?n:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){let n=setTimeout((()=>{this.isStale(e)&&this.delete(this.keyList[e])}),t+1);n.unref&&n.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?Qu.now():0};let e=0,t=H((()=>{let t=Qu.now();if(this.ttlResolution>0){e=t;let n=setTimeout((()=>e=0),this.ttlResolution);n.unref&&n.unref()}return t}),"n");this.getRemainingTTL=n=>{let i=this.keyMap.get(n);return void 0===i?0:0===this.ttls[i]||0===this.starts[i]?1/0:this.starts[i]+this.ttls[i]-(e||t())},this.isStale=n=>0!==this.ttls[n]&&0!==this.starts[n]&&(e||t())-this.starts[n]>this.ttls[n]}updateItemAge(e){}
102setItemTTL(e,t,n){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new pc(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,n,i)=>{if(this.isBackgroundFetch(t))return 0;if(!cc(n)){if(!i)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof i)throw new TypeError("sizeCalculation must be a function");if(n=i(t,e),!cc(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.addItemSize=(e,t)=>{if(this.sizes[e]=t,this.maxSize){let t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e]}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,n,i){if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&((e||!this.isStale(t))&&(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&((e||!this.isStale(t))&&(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(let e of this.indexes())this.isBackgroundFetch(this.valList[e])||(yield[this.keyList[e],this.valList[e]])}*rentries(){for(let e of this.rindexes())this.isBackgroundFetch(this.valList[e])||(yield[this.keyList[e],this.valList[e]])}*keys(){for(let e of this.indexes())this.isBackgroundFetch(this.valList[e])||(yield this.keyList[e])}*rkeys(){for(let e of this.rindexes())this.isBackgroundFetch(this.valList[e])||(yield this.keyList[e])}*values(){for(let e of this.indexes())this.isBackgroundFetch(this.valList[e])||(yield this.valList[e])}*rvalues(){for(let e of this.rindexes())this.isBackgroundFetch(this.valList[e])||(yield this.valList[e])}[Symbol.iterator](){return this.entries()}find(e,t={}){for(let n of this.indexes())if(e(this.valList[n],this.keyList[n],this))return this.get(this.keyList[n],t)}forEach(e,t=this){for(let n of this.indexes())e.call(t,this.valList[n],this.keyList[n],this)}rforEach(e,t=this){for(let n of this.rindexes())e.call(t,this.valList[n],this.keyList[n],this)}get prune(){return ac("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(let t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){let e=[];for(let t of this.indexes({allowStale:!0})){let n=this.keyList[t],i=this.valList[t],r=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;if(void 0===r)continue;let a={value:r};if(this.ttls){a.ttl=this.ttls[t];let e=Qu.now()-this.starts[t];a.start=Math.floor(Date.now()-e)}this.sizes&&(a.size=this.sizes[t]),e.unshift([n,a])}return e}load(e){this.clear();for(let[t,n]of e){if(n.start){let e=Date.now()-n.start;n.start=Qu.now()-e}this.set(t,n.value,n)}}dispose(e,t,n){}set(e,t,{ttl:n=this.ttl,start:i,noDisposeOnSet:r=this.noDisposeOnSet,size:a=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:o=this.noUpdateTTL}={}){if(a=this.requireSize(e,t,a,s),this.maxEntrySize&&a>this.maxEntrySize)return this.delete(e),this;let l=0===this.size?void 0:this.keyMap.get(e);if(void 0===l)l=this.newIndex(),this.keyList[l]=e,this.valList[l]=t,this.keyMap.set(e,l),this.next[this.tail]=l,this.prev[l]=this.tail,this.tail=l,this.size++,this.addItemSize(l,a),o=!1;else{this.moveToTail(l);let n=this.valList[l];t!==n&&(this.isBackgroundFetch(n)?n.__abortController.abort(new Error("replaced")):r||(this.dispose(n,e,"set"),this.disposeAfter&&this.disposed.push([n,e,"set"])),this.removeItemSize(l),this.valList[l]=t,this.addItemSize(l,a))}if(0!==n&&0===this.ttl&&!this.ttls&&this.initializeTTLTracking(),o||this.setItemTTL(l,n,i),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){let e=this.valList[this.head];return this.evict(!0),e}}evict(e){let t=this.head,n=this.keyList[t],i=this.valList[t];
102return this.isBackgroundFetch(i)?i.__abortController.abort(new Error("evicted")):(this.dispose(i,n,"evict"),this.disposeAfter&&this.disposed.push([i,n,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(n),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){let n=this.keyMap.get(e);return void 0!==n&&!this.isStale(n)&&(t&&this.updateItemAge(n),!0)}peek(e,{allowStale:t=this.allowStale}={}){let n=this.keyMap.get(e);if(void 0!==n&&(t||!this.isStale(n))){let e=this.valList[n];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,n,i){let r=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(r))return r;let a=new Ju;n.signal&&n.signal.addEventListener("abort",(()=>a.abort(n.signal.reason)));let s={signal:a.signal,options:n,context:i},o=H(((i,r=!1)=>{let{aborted:o}=a.signal,c=n.ignoreFetchAbort&&void 0!==i;return!o||c||r?(this.valList[t]===u&&(void 0===i?u.__staleWhileFetching?this.valList[t]=u.__staleWhileFetching:this.delete(e):this.set(e,i,s.options)),i):l(a.signal.reason)}),"h"),l=H((i=>{let{aborted:r}=a.signal,s=r&&n.allowStaleOnFetchAbort,o=s||n.allowStaleOnFetchRejection,l=o||n.noDeleteOnFetchRejection;if(this.valList[t]===u&&(l&&void 0!==u.__staleWhileFetching?s||(this.valList[t]=u.__staleWhileFetching):this.delete(e)),o)return u.__staleWhileFetching;if(u.__returned===u)throw i}),"p"),u=new Promise(H(((t,i)=>{this.fetchMethod(e,r,s).then((e=>t(e)),i),a.signal.addEventListener("abort",(()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(t(),n.allowStaleOnFetchAbort&&(t=H((e=>o(e,!0)),"y")))}))}),"d")).then(o,l);return u.__abortController=a,u.__staleWhileFetching=r,u.__returned=null,void 0===t?(this.set(e,u,s.options),t=this.keyMap.get(e)):this.valList[t]=u,u}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}fetch(e){return V(this,arguments,(function*(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:r=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:s=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:c=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,fetchContext:h=this.fetchContext,forceRefresh:f=!1,signal:m}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:i});let g={allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:r,noDisposeOnSet:a,size:s,sizeCalculation:o,noUpdateTTL:l,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:c,allowStaleOnFetchAbort:p,ignoreFetchAbort:d,signal:m},y=this.keyMap.get(e);if(void 0===y){let t=this.backgroundFetch(e,y,g,h);return t.__returned=t}{let i=this.valList[y];if(this.isBackgroundFetch(i))return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i.__returned=i;if(!f&&!this.isStale(y))return this.moveToTail(y),n&&this.updateItemAge(y),i;let r=this.backgroundFetch(e,y,g,h);return t&&void 0!==r.__staleWhileFetching?r.__staleWhileFetching:r.__returned=r}}))}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet}={}){let r=this.keyMap.get(e);if(void 0!==r){let a=this.valList[r],s=this.isBackgroundFetch(a);return this.isStale(r)?s?t?a.__staleWhileFetching:void 0:(i||this.delete(e),t?a:void 0):s?void 0:(this.moveToTail(r),n&&this.updateItemAge(r),a)}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return ac("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){let n=this.keyMap.get(e);if(void 0!==n)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(n);let t=this.valList[n];
102this.isBackgroundFetch(t)?t.__abortController.abort(new Error("deleted")):(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(let e of this.rindexes({allowStale:!0})){let t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort(new Error("deleted"));else{let n=this.keyList[e];this.dispose(t,n,"delete"),this.disposeAfter&&this.disposed.push([t,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return ac("reset","clear"),this.clear}get length(){return sc("length","size"),this.size}static get AbortController(){return Ju}static get AbortSignal(){return nc}},H(C,"lr"),C),mc=fc,gc=/(-?[0-9]+(px|em)\s+|0\s+)(-?[0-9]+(px|em)\s+|0\s+)(-?[0-9]+(px|em)\s+|0\s+)?(-?[0-9]+(px|em)\s+|0\s+)?(.*)/g,yc={},vc=typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes("firefox"),bc={},_c=(k=class{constructor(e,t){this.imagesPending=0,this.imagesLoaded=0,this.imageIdsLoaded=[],this.frameIsRendering=!1,this.pendingDrawCall=!1,this.firstMeaningfulPaint=!1,this.parallelTasks=8,this.frameTasks=0,this.loadingQueueOrdered=!0,this.loadingQueue=[],this.currentTask=Promise.resolve(),this.tasksRunning=0,this.averageJobTime=64,this.lastKnownScale=1,this.visible=[],this.previousVisible=[],this.drawCalls=[],this.invalidated=[],this._worker=()=>{if(this.loadingQueue.length){let e=this.loadingQueue.pop();e&&(this.tasksRunning++,this.frameTasks++,this.currentTask=e.task().then((()=>{this.tasksRunning--})).catch((()=>{this.tasksRunning--})))}},this._scheduled=0,this._doWork=()=>{0===this.loadingQueue.length&&0===this.tasksRunning&&this._scheduled&&(clearInterval(this._scheduled),this._scheduled=0);let e=this.parallelTasks||1;!this.firstMeaningfulPaint&&this.loadingQueue.length&&(e=this.loadingQueue.length);for(let t=0;t<=e;t++)this._worker()},this.canvas=e,this.rendererPosition=e.getBoundingClientRect(),this.ctx=e.getContext("2d",{alpha:!0}),this.ctx.imageSmoothingEnabled=!0,this.options=t||{},this.canvas.style.opacity="0",this.canvas.style.transition="opacity .3s",this.dpi=(null==t?void 0:t.dpi)||1,this.hostCache=null!=t&&t.lruCache?new mc({maxSize:268435456,dispose:H(((e,t,n)=>{this.invalidated.push(t),e.width=0,e.height=0}),"dispose"),sizeCalculation:H(((e,t)=>e.width*e.height),"sizeCalculation")}):{store:{},get(e){return this.store[e]},set(e,t){this.store[e]=t}}}getCanvasDims(){return{width:this.canvas.width/this.dpi,height:this.canvas.height/this.dpi}}resize(){this.rendererPosition=this.canvas.getBoundingClientRect()}isReady(){return this.firstMeaningfulPaint}afterFrame(e){if(this.clearTransform(),this.lastPaintedObject=void 0,this.frameIsRendering=!1,this.imagesPending=Math.max(0,this.imagesPending-this.imagesLoaded),this.imagesLoaded=0,this.loadingQueueOrdered||(this.loadingQueue=this.loadingQueue.sort(((e,t)=>e.network&&e.scale===t.scale?t.distance-e.distance:e.scale<t.scale?-1:1)),this.loadingQueueOrdered=!0),this.previousVisible=this.visible,this.pendingDrawCall=!!this.drawCalls.length,this.pendingDrawCall)for(let t=0;t<this.drawCalls.length;t++){let e=this.drawCalls.shift();e&&e()}this.doOffscreenWork(),this.options.debug&&this.stats&&this.stats.end()}doOffscreenWork(){this.frameTasks=0,this.loadingQueue.length&&(this._worker(),this.loadingQueue.length&&(this._scheduled||(this._scheduled=setInterval(this._doWork,0))))}getScale(e,t,n){if(Number.isNaN(e)||Number.isNaN(t))return this.lastKnownScale;let i=this.getCanvasDims(),r=i.width/e,a=i.height/t,s=(r<a?a:r)*(n&&this.dpi||1);return Number.isNaN(s)||(this.lastKnownScale=s),this.lastKnownScale}beforeFrame(e,t,n,i){var r;this.options.debug&&this.stats&&this.stats.begin(),this.frameIsRendering=!0,this.visible=[],this.options.beforeFrame&&this.options.beforeFrame(t);let a=this.getCanvasDims();if(this.ctx.globalAlpha=1,this.ctx.fillStyle=null!=(r=this.canvas.dataset.background)?r:"rgb(0, 0, 0)",this.ctx.fillRect(0,0,a.width,a.height),i.enableFilters&&
102(i.filters.brightness||i.filters.contrast||i.filters.grayscale||i.filters.invert||i.filters.sepia||i.filters.saturate||i.filters.hueRotate||i.filters.blur)){let e="";i.filters.brightness&&(e+=`brightness(${~~(100+100*i.filters.brightness)}%) `),i.filters.contrast&&(e+=`contrast(${~~(100+100*i.filters.contrast)}%) `),i.filters.grayscale&&(e+=`grayscale(${~~(100*i.filters.grayscale)}%) `),i.filters.invert&&(e+=`invert(${~~(100*i.filters.invert)}%) `),i.filters.sepia&&(e+=`sepia(${~~(100*i.filters.sepia)}%) `),i.filters.saturate&&(e+=`saturate(${~~(100+100*i.filters.saturate)}%) `),i.filters.hueRotate&&(e+=`hue-rotate(${i.filters.hueRotate}deg) `),i.filters.blur&&(e+=`blur(${i.filters.blur}px) `),this.ctx.filter=e}else this.ctx.filter="none"}applyTransform(e,t,n,i,r){let a=e.__owner.value;if(a&&a.rotation){this.ctx.save();let e=t+i/2,s=n+r/2;this.ctx.translate(e,s),this.ctx.rotate(a.rotation*Math.PI/180),this.ctx.translate(-e,-s),this.lastPaintedObject=a}}clearTransform(){this.lastPaintedObject&&(this.lastPaintedObject.rotation&&this.ctx.restore(),this.lastPaintedObject=void 0)}paint(e,t,n,i,r,a){let s=this.ctx.globalAlpha;if(e instanceof ri||e instanceof lu){if(e.display.rotation){this.ctx.save();let s=n+r/2,o=i+a/2;e.crop&&(s-=e.crop[5*t+1],o-=e.crop[5*t+2]),this.ctx.translate(s,o),this.ctx.rotate(e.display.rotation*Math.PI/180),this.ctx.translate(-s,-o)}if(this.visible.push(e),e.style,"undefined"!==e.style.opacity){if(!e.style.opacity)return;this.ctx.globalAlpha=e.style.opacity}try{let s=e.__host.canvas,o=this.getCanvasDims();if((-1===s.indices.indexOf(t)||-1!==this.invalidated.indexOf(s.canvases[t]))&&this.schedulePaintToCanvas(s,e,t,li({x:n+r/2,y:i+r/2},{x:o.width/2,y:o.height/2})),!this.firstMeaningfulPaint)return;let l=this.hostCache.get(s.canvases[t]);if(l)if(e.crop&&e.cropData){if(e.crop[5*t]){let s=[e.crop[5*t+1]/e.display.scale-e.display.points[5*t+1],e.crop[5*t+2]/e.display.scale-e.display.points[5*t+2],1+(e.crop[5*t+3]-e.crop[5*t+1])/e.display.scale,1+(e.crop[5*t+4]-e.crop[5*t+2])/e.display.scale];s[0]+=e.cropData.x/e.display.scale,s[1]+=e.cropData.y/e.display.scale;let o=e.x*this.lastKnownScale,u=e.y*this.lastKnownScale,c=[n+o,i+u,r,a];c[0]+=o,c[1]+=u,this.ctx.drawImage(l,s[0],s[1],s[2],s[3],c[0],c[1],c[2]+1,c[3]+1)}}else vc?this.ctx.drawImage(l,0,0,e.display.points[5*t+3]-e.display.points[5*t+1],e.display.points[5*t+4]-e.display.points[5*t+2],n,i,r+1,a+1):this.ctx.drawImage(l,0,0,e.display.points[5*t+3]-e.display.points[5*t+1],e.display.points[5*t+4]-e.display.points[5*t+2],n,i,r+Number.MIN_VALUE+.5,a+Number.MIN_VALUE+.5)}catch(u){}e.display.rotation&&this.ctx.restore()}let o=e instanceof Du&&this.options.box,l=e instanceof Ru&&this.options.polygon;if((o||l)&&!e.props.className&&!e.props.html&&!e.props.href){if(this.visible.push(e),e.props.style){let t=Object.assign({},e.props.style||{},e.hovering?e.props.hoverStyles:{},e.pressing?e.props.pressStyles:{}),s=e.props.relativeStyle?1:r/e.width;typeof t.opacity<"u"&&(this.ctx.globalAlpha=t.opacity);let o=0;typeof t.borderWidth<"u"&&(o=parseInt(t.borderWidth,10)*s);let u=0;typeof t.outlineWidth<"u"&&(u=parseInt(t.outlineWidth,10)*s);let c=0;if(typeof t.outlineOffset<"u"&&(c=parseInt(t.outlineOffset,10)*s),t.borderColor&&(this.ctx.strokeStyle=t.borderColor),t.boxShadow){let e=t.boxShadow.split(/,(?![^(]*\))/);for(let t of e){let e=yc[t]||gc.exec(t)||gc.exec(t);yc[t]=e,e&&(this.ctx.save(),this.ctx.shadowOffsetX=parseInt(e[1])*this.dpi*s,this.ctx.shadowOffsetY=parseInt(e[3])*this.dpi*s,this.ctx.shadowBlur=parseInt(e[5])*this.dpi*s,this.ctx.shadowColor=e[9],this.ctx.fillStyle="rgba(0,0,0,1)",this.ctx.fillRect(n+o,i+o,r,a),this.ctx.restore())}}if(this.ctx.fillStyle=t.backgroundColor||"transparent",this.ctx.lineWidth=o,l){let t=e.shape,r=t.points||[],a=r.length;this.ctx.beginPath();for(let e=0;e<a;e++)this.ctx.lineTo(n+r[e][0]*this.lastKnownScale,i+r[e][1]*this.lastKnownScale);t.open||this.ctx.closePath(),o&&this.ctx.stroke(),t.open||this.ctx.fill()}else o&&this.ctx.strokeRect(n+o/2,i+o/2,r+o,a+o),this.ctx.fillRect(n+o,i+o,r,a);u&&(t.outlineColor&&(this.ctx.strokeStyle=t.outlineColor),this.ctx.lineWidth=u,this.ctx.strokeRect(n-u/2-c,i-u/2-c,r+2*o+u+2*c,a+2*o+u+2*c))}this.ctx.globalAlpha=s}}
102loadImage(e,t,n,i=!1){if(bc[e]&&bc[e].naturalWidth>0)t(bc[e]);else try{let r=!1;i||setTimeout((()=>{r||this.loadImage(e,t,n,!0)}),3e3);let a=document.createElement("img");a.decoding="auto",a.onload=function(){r=!0,t(a),bc[e]=a,a.onload=null},this.options.crossOrigin&&(a.crossOrigin="anonymous"),a.src=e,a.complete&&a.onload({}),a.width}catch(r){console.log("image error",r),n(r)}}schedulePaintToCanvas(e,t,n,i){this.imagesPending++,e.indices.push(n);let r=`${t.id}--${t.display.scale}-${n}`,a=this.invalidated.indexOf(r);-1!==a&&this.invalidated.splice(a,1),e.canvases[n]=r,t.__host.canvas.loading=!0,this.loadingQueueOrdered=!1,this.loadingQueue.push({id:r,scale:t.display.scale,network:!0,distance:i,task:H((()=>new Promise((a=>{if(-1===this.visible.indexOf(t))return this.imagesPending--,e.indices.splice(e.indices.indexOf(n),1),void a();let s=t.getImageUrl(n);this.loadImage(s,(s=>{this.loadingQueue.push({id:r,scale:t.display.scale,distance:i,task:H((()=>new Promise((i=>{this.imageIdsLoaded.includes(r)||(this.imagesLoaded++,this.imageIdsLoaded.push(r)),e.loaded.push(n),e.loaded.length===e.indices.length&&(e.loading=!1);let a=t.display.points.slice(5*n,5*n+5),o=document.createElement("canvas"),l=o.getContext("2d");o.width=a[3]-a[1],o.height=a[4]-a[2],this.hostCache.set(e.canvases[n],o),this.drawCalls.push((()=>{l.drawImage(s,0,0,a[3]-a[1],a[4]-a[2]),i()}))}))),"task")}),a()}),(t=>{this.imagesPending--,e.indices.splice(e.indices.indexOf(n),1),a()}))}))),"task")})}afterPaintLayer(e,t){}prepareLayer(e,t){e.__owner.value&&(e.cropData?(this.lastKnownScale,e.display.scale,this.applyTransform(e,t[1],t[2],t[3]-t[1],t[4]-t[2])):this.applyTransform(e,t[1],t[2],t[3]-t[1],t[4]-t[2])),(!e.__host||!e.__host.canvas)&&(e instanceof ri||e instanceof lu)&&this.createImageHost(e)}finishLayer(){this.lastPaintedObject&&this.clearTransform()}createImageHost(e){e.__host=e.__host?e.__host:{},e.__host.canvas={canvas:void 0,canvases:[],indices:[],loaded:[],loading:!1}}getPointsAt(e,t,n,i){return e.getPointsAt(t,n,i)}getViewportBounds(e,t,n){let i=e.getActiveZone();if(i){let e=t[3]-t[1]<i.points[3]-i.points[1],r=t[4]-t[2]<i.points[4]-i.points[2];return{x1:e?i.points[1]-n:i.points[1]+(i.points[3]-i.points[1])/2-(t[3]-t[1])/2,y1:r?i.points[2]-n:i.points[2]+(i.points[4]-i.points[2])/2-(t[4]-t[2])/2,x2:e?i.points[3]+n:i.points[1]+(i.points[3]-i.points[1])/2-(t[3]-t[1])/2,y2:r?i.points[4]+n:i.points[2]+(i.points[4]-i.points[2])/2-(t[4]-t[2])/2}}return null}pendingUpdate(){let e=!this.pendingDrawCall&&0===this.drawCalls.length&&0===this.imagesPending&&0===this.loadingQueue.length&&0===this.tasksRunning;return!e&&0===this.visible.length&&setTimeout((()=>{this.canvas.style.opacity="1",this.firstMeaningfulPaint=!0}),500),!this.firstMeaningfulPaint&&e&&this.visible.length?(this.canvas.style.opacity="1",this.firstMeaningfulPaint=e,!0):!!this.options.debug||!e}getRendererScreenPosition(){return this.rendererPosition}reset(){this.loadingQueue=[],this.drawCalls=[]}},H(k,"Sv"),k),wc=(H(x=class{constructor(e){this.renderers=[];for(let t of e)t&&this.renderers.push(t);this.length=this.renderers.length}afterFrame(e,t,n,i){for(let r=0;r<this.length;r++)this.renderers[r].afterFrame(e,t,n,i)}afterPaintLayer(e,t){for(let n=0;n<this.length;n++)this.renderers[n].afterPaintLayer(e,t)}beforeFrame(e,t,n,i){for(let r=0;r<this.length;r++)this.renderers[r].beforeFrame(e,t,n,i)}triggerResize(){for(let e=0;e<this.length;e++){let t=this.renderers[e];t.triggerResize&&t.triggerResize()}}getPointsAt(e,t,n,i){return this.renderers[0].getPointsAt(e,t,n,i)}getScale(e,t){return this.renderers[0].getScale(e,t)}getViewportBounds(e,t,n){return this.renderers[0].getViewportBounds(e,t,n)}getRendererScreenPosition(){return this.renderers[0].getRendererScreenPosition()}isReady(){for(let e=0;e<this.length;e++)if(!this.renderers[e].isReady())return!1;return!0}paint(e,t,n,i,r,a){for(let s=0;s<this.length;s++)this.renderers[s].paint(e,t,n,i,r,a)}pendingUpdate(){for(let e=0;e<this.length;e++)if(this.renderers[e].pendingUpdate())return!0;return!1}prepareLayer(e,t){for(let n=0;n<this.length;n++)this.renderers[n].prepareLayer(e,t)}finishLayer(e,t){for(let n=0;n<this.length;n++)this.renderers[n].finishLayer(e,t)}resize(e,t){for(let n=0;n<this.length;n++)this.renderers[n].resize(e,t)}reset(){for(let e=0;e<this.length;e++)this.renderers[e].reset()}},"pd"),x),Sc=(H(T=class{constructor(e){this.heightRatio=1,this.widthRatio=1,this.target=new Float32Array(5),this.delta=0,this.renderNextFrame=!0,this.canvas=e,this.initialWidth=e.width,this.initialHeight=e.height,this.context=e.getContext("2d"),this.context.globalAlpha=.5,this.aggregate=Qn(1)}isReady(){return!0}resize(){this.initialWidth=this.canvas.width,this.initialHeight=this.canvas.height,this.renderNextFrame=!0}afterFrame(e,t,n){if(this.renderNextFrame){this.context.clearRect(0,0,this.canvas.width,this.canvas.height);
102let t=this.initialWidth/e.width,i=this.initialHeight/e.height,r=this.widthRatio>this.heightRatio?t:i;if(this.target=n,this.bounds){let t=e.getPointsAt(this.bounds,this.aggregate,r);for(let[e,n]of t)if(e instanceof ri&&e.__host.canvas){let t=n.length/5;for(let i=0;i<t;i++)e.__host.canvas.canvases[i]&&(n[i+1],n[i+2],n[i+3],n[i+1],n[i+4],n[i+2])}}e.getPoints().forEach(((e,t,n)=>{if(t%5==0&&e){let e={x1:n[t+1]*r,y1:n[t+2]*r,x2:n[t+3]*r,y2:n[t+4]*r,width:(n[t+3]-n[t+1])*r,height:(n[t+4]-n[t+2])*r};this.context.strokeStyle="red",this.context.strokeRect(e.x1,e.y1,e.width,e.height)}})),n&&(this.context.strokeStyle="red",this.context.lineWidth=window.devicePixelRatio||1,this.context.strokeRect(n[1]*r,n[2]*r,(n[3]-n[1])*r,(n[4]-n[2])*r))}}getActiveZone(e){return null}getPointsAt(e,t,n,i){return e.getPointsAt(t,n,i)}getScale(e,t){return 1}beforeFrame(e,t){this.bounds=Zn.singleBox(e.width,e.height)}drawImage(){}afterPaintLayer(e,t){}paint(e,t,n,i,r,a){this.renderNextFrame=!0}prepareLayer(e){}pendingUpdate(){return!1}hasActiveZone(){return!1}getViewportBounds(e,t,n){return null}getRendererScreenPosition(){return this.canvas.getBoundingClientRect()}finishLayer(){}reset(){}},"_v"),T),Cc=!1;function kc(){if(!Cc){Cc=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Ice
102weasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Cu=/\b(iPhone|iP[ao]d)/.exec(e),ku=/\b(iP[ao]d)/.exec(e),wu=/Android/i.exec(e),xu=/FBAN\/\w+;/i.exec(e),Tu=/Mobile/i.exec(e),Su=!!/Win64/.exec(e),t){(pu=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(pu=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(e);yu=i?parseFloat(i[1])+4:pu,hu=t[2]?parseFloat(t[2]):NaN,fu=t[3]?parseFloat(t[3]):NaN,(mu=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),gu=t&&t[1]?parseFloat(t[1]):NaN):gu=NaN}else pu=hu=fu=gu=mu=NaN;if(n){if(n[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);vu=!r||parseFloat(r[1].replace("_","."))}else vu=!1;bu=!!n[2],_u=!!n[3]}else vu=bu=_u=!1}}H(kc,"mn");var xc,Tc={ie:H((function(){return kc()||pu}),"ie"),ieCompatibilityMode:H((function(){return kc()||yu>pu}),"ieCompatibilityMode"),ie64:H((function(){return Tc.ie()&&Su}),"ie64"),firefox:H((function(){return kc()||hu}),"firefox"),opera:H((function(){return kc()||fu}),"opera"),webkit:H((function(){return kc()||mu}),"webkit"),safari:H((function(){return Tc.webkit()}),"safari"),chrome:H((function(){return kc()||gu}),"chrome"),windows:H((function(){return kc()||bu}),"windows"),osx:H((function(){return kc()||vu}),"osx"),linux:H((function(){return kc()||_u}),"linux"),iphone:H((function(){return kc()||Cu}),"iphone"),mobile:H((function(){return kc()||Cu||ku||wu||Tu}),"mobile"),nativeApp:H((function(){return kc()||xu}),"nativeApp"),android:H((function(){return kc()||wu}),"android"),ipad:H((function(){return kc()||ku}),"ipad")},Ec=Tc,Ac={canUseDOM:!!(typeof window<"u"&&window.document&&window.document.createElement)};function Lc(e,t){if(!Ac.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var r=document.createElement("div");r.setAttribute(n,"return;"),i="function"==typeof r[n]}return!i&&xc&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}Ac.canUseDOM&&(xc=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),H(Lc,"NR");var Ic=Ec,$c=Lc;function Dc(e){var t=0,n=0,i=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||r)&&e.deltaMode&&(1==e.deltaMode?(i*=40,r*=40):(i*=800,r*=800)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}}H(Dc,"Iv"),Dc.getEventType=function(){return Ic.firefox()?"DOMMouseScroll":$c("wheel")?"wheel":"mousewheel"};var Pc=Dc;function Oc(e){return{x:e[1],y:e[2],width:e[3]-e[1],height:e[4]-e[2]}}H(Oc,"UR");var Mc="scroll",Rc={zoomOutFactor:.8,zoomInFactor:1.25,maxZoomFactor:1,minZoomFactor:.05,zoomDuration:300,zoomWheelConstant:20,zoomClamp:.6,panBounceStiffness:120,panBounceDamping:15,panTimeConstant:240,panPower:.1,nudgeDistance:100,panPadding:0,devicePixelRatio:1,enableWheel:!0,enableClickToZoom:!0,ignoreSingleFingerTouch:!1,enablePanOnWait:!1,requireMetaKeyForWheelZoom:!1,panOnWaitDelay:40,onPanInSketchMode:H((()=>{}),"onPanInSketchMode"),parentElement:null},Nc=H(((e={})=>({start:H((function(t){let{zoomWheelConstant:n,enableWheel:i,enableClickToZoom:r,ignoreSingleFingerTouch:a,enablePanOnWait:s,panOnWaitDelay:o,parentElement:l,requireMetaKeyForWheelZoom:u}=re(re({},Rc),e),c={pointerStart:{x:0,y:0},isPressing:!1,mousemoveBuffer:Wn(5)};function d(){m=0,y="",b(),b(void 0,"notice"),g=0}function p(){t.world.constraintBounds(),d()}function h(e){e.which>1?c.isPressing=!1:"explore"===t.mode&&(e.preventDefault(),c.pointerStart.x=e.atlas.x,c.pointerStart.y=e.atlas.y,t.transitionManager.stopTransition(),c.isPressing=!0)}function f(){d(),c.isPressing&&("explore"===t.mode&&t.world.constraintBounds(),c.isPressing=!1)}t.world.activatedEvents.push("onMouseUp","onMouseDown","onMouseMove","onTouchStart","onTouchEnd","onTouchMove"),H(d,"m"),H(p,"y"),H(h,"x"),H(f,"w");let m=0,g=0,y="";function v(e){if("explore"===t.mode){if(1===e.atlasTouches.length&&(g=performance.now(),0==a&&e.preventDefault(),c.pointerStart.x=e.atlasTouches[0].x,c.pointerStart.y=e.atlasTouches[0].y),2===e.atlasTouches.length){y="gesture",e.preventDefault();let t=e.atlasTouches[0].x,n=e.atlasTouches[1].x;c.pointerStart.x=(t+n)/2;let i=e.atlasTouches[0].y,r=e.atlasTouches[1].y;c.pointerStart.y=(i+r)/2,m=li({x:e.touches[0].clientX,y:e.touches[0].clientY},{x:e.touches[1].clientX,y:e.touches[1].clientY})}t.transitionManager.stopTransition(),c.isPressing=!0}}function b(e,t="intent"){l&&(l.dataset[t]=e)}function _(e){let n=null,i=null,r=0;if(c.isPressing&&2===e.touches.length){n=(e.touches[0].clientX+e.touches[1].clientX)/2,i=(e.touches[0].clientY+e.touches[1].clientY)/2,r=li({x:e.touches[0].clientX,y:e.touches[0].clientY},{x:e.touches[1].clientX,y:e.touches[1].clientY})}if(b(y),c.isPressing&&1===e.touches.length){if(s&&(performance.now()-g<o&&""==y&&(y=Mc),""==y&&(y="pan")),b(y),""==y&&1==a||y==Mc)return void b("require-two-finger","notice");let t=e.touches[0];n=t.clientX,i=t.clientY}if(null!==n&&null!==i){let e=t.getRendererScreenPosition();if(e){let{x:a,y:s}=t.viewerToWorld(n-e.x,i-e.y),o=r&&m?r/m:1;t.transitionManager.customTransition((e=>{e.from=Wn(t.target),e.to=ti(e.from,Yn(Jn(c.pointerStart.x-a,c.pointerStart.y-s),ei(1/o,a,s)),c.mousemoveBuffer),e.elapsed_time=0,e.total_time=0,e.timingFunction=Yu.easeInOutExpo,e.done=!1}))}m=r}"pan"==y&&e.preventDefault()}function w(e){if(c.isPressing){let n=t.getRendererScreenPosition();if(n){let{x:i,y:r}=t.viewerToWorld(e.clientX-n.x,e.clientY-n.y);t.transitionManager.customTransition((e=>{e.from=Wn(t.target),e.to=ti(e.from,Jn(c.pointerStart.x-i,c.pointerStart.y-r),c.mousemoveBuffer),e.elapsed_time=0,e.total_time=0,e.timingFunction=Yu.easeInOutExpo,e.done=!1}))}}}function S(e){"explore"===t.mode&&t.world.zoomIn(e.atlas)}function C(e){let i=1+Pc(e).spinY/n;t.world.zoomTo(i,e.atlas,!0)}function k(e){return!u||0!=e.metaKey||(b("meta-required","notice"),e.stopPropagation(),!1)}H(v,"S"),H(b,"P"),H(_,"k"),H(w,"L"),H(S,"I"),H(C,"W"),H(k,"H"),t.world.addEventListener("mouseup",p),t.world.addEventListener("touchend",p),t.world.addEventListener("touchstart",v),t.world.addEventListener("mousedown",h),window.addEventListener("touchend",f),window.addEventListener("mouseup",f),window.addEventListener("mousemove",w),l&&l.addEventListener("touchmove",_),r&&(t.world.activatedEvents.push("onClick"),t.world.addEventListener("click",S)),i&&(t.world.activatedEvents.push("onWheel"),u&&(null==l||l.addEventListener("wheel",k,{passive:!0,capture:!0})),t.world.addEventListener("wheel",C));let x=t.world.addLayoutSubscriber(((e,n)=>
102{if("zone-changed"===e&&t.transitionManager.constrainBounds({transition:{duration:0}}),"zoom-to"===e&&n&&t.transitionManager.zoomTo(n.factor,{origin:n.point,stream:n.stream}),"go-home"===e){let e=n.immediate?{duration:0}:void 0;t.transitionManager.goToRegion(Oc(t.homePosition),{transition:e})}if("goto-region"===e&&n){let e=n.immediate?{duration:0}:{};t.transitionManager.goToRegion(n,{transition:e})}"constrain-bounds"===e&&t.transitionManager.constrainBounds({transition:null!=n&&n.immediate?{duration:0}:void 0})}));return()=>{t.world.removeEventListener("mouseup",p),t.world.removeEventListener("touchend",p),t.world.removeEventListener("touchstart",v),t.world.removeEventListener("mousedown",h),window.removeEventListener("touchend",f),window.removeEventListener("mouseup",f),t.world.removeEventListener("mousemove",w),l&&(l.removeEventListener("touchmove",w),l.removeEventListener("wheel",k,{passive:!0,capture:!0})),r&&t.world.removeEventListener("click",S),i&&t.world.removeEventListener("wheel",C),x()}}),"start"),updatePosition(){}})),"Tv"),Fc=Sn.createContext("explore");Fc.displayName="Mode";var Bc=H((()=>dt(Fc)),"dc");function Hc(e,t,n){var i,r,a,s,o;function l(){var u=Date.now()-s;u<t&&u>=0?i=setTimeout(l,t-u):(i=null,n||(o=e.apply(a,r),a=r=null))}null==t&&(t=100),H(l,"h");var u=H((function(){a=this,r=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(l,t)),u&&(o=e.apply(a,r),a=r=null),o}),"p");return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(o=e.apply(a,r),a=r=null,clearTimeout(i),i=null)},u}H(Hc,"od"),Hc.debounce=Hc;var jc=Hc;function Uc(e){let{debounce:t,scroll:n,polyfill:i,offsetSize:r}=void 0===e?{debounce:0,scroll:!1,offsetSize:!1}:e,a=i||(typeof window>"u"?class{}:window.ResizeObserver);if(!a)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");let[s,o]=it({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=ot({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s}),u=t?"number"==typeof t?t:t.scroll:null,c=t?"number"==typeof t?t:t.resize:null,d=ot(!1);at((()=>(d.current=!0,()=>{d.current=!1})));let[p,h,f]=ut((()=>{let e=H((()=>{if(!l.current.element)return;let{left:e,top:t,width:n,height:i,bottom:a,right:s,x:u,y:c}=l.current.element.getBoundingClientRect(),p={left:e,top:t,width:n,height:i,bottom:a,right:s,x:u,y:c};l.current.element instanceof HTMLElement&&r&&(p.height=l.current.element.offsetHeight,p.width=l.current.element.offsetWidth),Object.freeze(p),d.current&&!Gc(l.current.lastBounds,p)&&o(l.current.lastBounds=p)}),"S");return[e,c?jc(e,c):e,u?jc(e,u):e]}),[o,r,u,c]);function m(){l.current.scrollContainers&&(l.current.scrollContainers.forEach((e=>e.removeEventListener("scroll",f,!0))),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null)}function g(){!l.current.element||(l.current.resizeObserver=new a(f),l.current.resizeObserver.observe(l.current.element),n&&l.current.scrollContainers&&l.current.scrollContainers.forEach((e=>e.addEventListener("scroll",f,{capture:!0,passive:!0}))))}H(m,"b"),H(g,"_");let y=H((e=>{!e||e===l.current.element||(m(),l.current.element=e,l.current.scrollContainers=zc(e),g())}),"C");return qc(f,Boolean(n)),Vc(h),at((()=>{m(),g()}),[n,f,h]),at((()=>m),[]),[y,s,p]}function Vc(e){at((()=>{let t=e;return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}}),[e])}function qc(e,t){at((()=>{if(t){let t=e;return window.addEventListener("scroll",t,{capture:!0,passive:!0}),()=>{window.removeEventListener("scroll",t,!0)}}}),[e,t])}function zc(e){let t=[];if(!e||e===document.body)return t;let{overflow:n,overflowX:i,overflowY:r}=window.getComputedStyle(e);return[n,i,r].some((e=>"auto"===e||"scroll"===e))&&t.push(e),[...t,...zc(e.parentElement)]}H(Uc,"Ov"),H(Vc,"qR"),H(qc,"QR"),H(zc,"kv");var Wc=["x","y","top","bottom","left","right","width","height"],Gc=H(((e,t)=>Wc.every((n=>e[n]===t[n]))),"YR"),Kc=Sn.createContext(null);Kc.displayName="Atlas";var Yc,Zc=Sn.createContext(null);if(Zc.displayName="Bounds","object"==typeof performance&&"function"==typeof performance.now){let e=performance;Yc=H((()=>e.now()),"Jl")}else{let e=Date,t=e.now();Yc=H((()=>e.now()-t),"Jl")}var Xc={exports:{}},Qc={};
102function Jc(e,t){e&&e.appendChild&&t&&e.appendChild(t)}function ed(e,t){e&&e.removeChild&&t&&e.removeChild(t)}function td(e,t){return ed(e.world,t)}function nd(e,t,n){return id(e.world,t,n)}function id(e,t,n){e&&e instanceof Xu&&(e=e.world),e&&e.insertBefore&&e.insertBefore(t,n)}function rd(e,t,n){if(n&&(e.applyProps&&e.applyProps(n),e instanceof ii))for(let i of Un){let r=i.slice(2).toLowerCase();n[i]!==t[i]&&(t[i]&&e.removeEventListener(r,t[i]),e.addEventListener(r,n[i]))}}function ad(e,t){let n=Object.keys(t),i=!1;for(let r of n)if(-1!==Un.indexOf(r)){let t=qn[r];if(t){if(-1!==e.activatedEvents.indexOf(t))continue;i=!0,e.activatedEvents.push(t)}}i&&e.triggerEventActivation()}Qc.ConcurrentRoot=1,Qc.ContinuousEventPriority=4,Qc.DefaultEventPriority=16,Qc.DiscreteEventPriority=1,Qc.IdleEventPriority=536870912,Qc.LegacyRoot=0,Xc.exports=Qc,H(Jc,"_y"),H(ed,"Fv"),H(td,"XR"),H(nd,"ZR"),H(id,"zv"),H(rd,"gc"),H(ad,"mc");var sd=new Map,od={};function ld(e,t,n,i,r){var a=t,{args:s=[]}=a,o=oe(a,["args"]);if(!(n instanceof Xu)&&r){let e=H((t=>t.return?e(t.return):t.stateNode&&t.stateNode.containerInfo),"d");n=e(r)}let l,u=n.world;switch(e){case"world":l=Au.withProps({width:o.width,height:o.height,viewingDirection:"left-to-right"}),l.activatedEvents=u.activatedEvents,l.eventHandlers=u.eventHandlers,l.subscriptions=u.subscriptions,l.triggerEventActivation(),u=l;break;case"box":l=new Du;break;case"shape":l=new Ru;break;case"worldObject":case"world-object":l=new Eu;break;case"worldImage":case"world-image":l=new ri;break;case"texture":l=new ai;break;case"compositeImage":case"composite-image":l=new cu({id:o.id,width:o.width,height:o.height,images:[],renderOptions:o.renderOptions});break;case"tiledImage":case"tiled-image":l=lu.fromTile(o.uri,o.display,o.tile,o.scaleFactor,void 0,o.format);break;case"paragraph":l=new Nu,l.text=o.children;break;default:return}return ad(u,o),rd(l,{},o),l}function ud(e,t){if(t instanceof Au)e.world=t;else if(t instanceof Eu)e.world.appendChild(t);else if(t)throw new Error("Invalid root")}H(ld,"JR"),H(ud,"eP");var cd=(0,jn.default)({unstable_now:Yc,now:Yc,createInstance:ld,removeChild:ed,appendChild:Jc,appendInitialChild:Jc,insertBefore:id,warnsIfNotActing:!0,supportsMutation:!0,isPrimaryRenderer:!1,scheduleTimeout:typeof setTimeout<"u"?setTimeout:void 0,cancelTimeout:typeof clearTimeout<"u"?clearTimeout:void 0,setTimeout:typeof setTimeout<"u"?setTimeout:void 0,clearTimeout:typeof clearTimeout<"u"?clearTimeout:void 0,noTimeout:-1,appendChildToContainer:ud,removeChildFromContainer:td,createTextInstance(){},insertInContainerBefore:nd,prepareUpdate:(e,t,n,i,r)=>(ad(r.world,i),i),commitUpdate(e,t,n,i,r,a){e.applyProps&&t&&rd(e,i,t)},finalizeInitialChildren:e=>null==e?void 0:e.__handlers,getChildHostContext:()=>od,getRootHostContext:()=>od,prepareForCommit:e=>(e.isCommitting=!0,null),preparePortalMount(){},hideInstance(e){e&&e.points&&(e.points[0]=0)},unhideInstance(e,t){e&&e.points&&(e.points[0]=1)},getPublicInstance:e=>e,hideTextInstance(){throw new Error("Text is not allowed in the react-three-fibre tree. You may have extraneous whitespace between components.")},resetAfterCommit(e){e.isCommitting=!1,e.pendingUpdate=!0,e.world&&e.world.needsRecalculate&&(e.world.recalculateWorldSize(),e.world.triggerRepaint())},shouldSetTextContent:()=>!1,clearContainer:()=>!1,supportsHydration:!1,supportsPersistence:!1,detachDeletedInstance(e){},afterActiveInstanceBlur(){},beforeActiveInstanceBlur(){},getCurrentEventPriority:()=>(console.log("getCurrentEventPriority"),Xc.exports.DefaultEventPriority),getInstanceFromNode(e){throw console.log("getInstanceFromNode",e),new Error("Not implemented")},getInstanceFromScope(e){throw console.log("getInstanceFromScope",e),new Error("Not implemented")},prepareScopeUpdate(e,t){throw console.log("prepareScopeUpdate",e,t),new Error("Not implemented")},logRecoverableError(){},requestPostPaintCallback(){}});function dd(e,t){let n=sd.get(e);n&&cd.updateContainer(null,n,null,(()=>{sd.delete(e),t&&t(e)}))}cd.injectIntoDevTools({bundleType:0,version:vn,rendererPackageName:"@atlas-viewer/atlas"}),H(dd,"gd");var pd={render(e,t){let n=sd.get(t);if(n)cd.updateContainer(e,n,null);else{let n=cd.createContainer(t,0,null,!1,null,"",(()=>{}),null);cd.updateContainer(e,n,null),sd.set(t,n)}},unmountComponentAtNode(e,t){dd(e,t)}},hd=typeof window<"u"&&((null==(Bn=window.document)?void 0:Bn.createElement)||"ReactNative"===(null==(Hn=window.navigator)?void 0:Hn.product))?st:at,fd=Sn.memo((({children:e,setIsReady:t,onCreated:n,bounds:i,preset
102:r,mode:a="explore"})=>{let s=ct((function(e){let i=ot(!1),a=H((()=>{t(!0)}),"d");return at((()=>{if(!r||i.current)return()=>{};{r.runtime.goHome();let e=n&&n(r);e&&e.then?e.then(a):a()}}),[]),at((()=>{i.current=!0}),[]),e.children}),[r]);return hd((()=>{if(r){let t=r.runtime;a!==t.mode&&(t.mode=a),pd.render(Sn.createElement(Sn.StrictMode,null,Sn.createElement(s,null,Sn.createElement(Zc.Provider,{value:i},Sn.createElement(Fc.Provider,{value:a},Sn.createElement(Kc.Provider,{value:r},e))))),t)}}),[r,a,e]),hd((()=>{if(r){let e=r.runtime;return()=>{pd.unmountComponentAtNode(e)}}return()=>{}}),[r]),null})),md=(H(E=class{constructor(e,t){this.fragmentShaderSource="\n precision mediump float;\n\n uniform sampler2D u_image;\n varying vec2 v_texCoord;\n\n void main() {\n gl_FragColor = texture2D(u_image, v_texCoord);\n }\n ",this.vertexShaderSource="\n attribute vec2 a_position;\n uniform vec2 u_resolution;\n varying vec4 v_color;\n uniform sampler2D u_texture;\n\n attribute vec2 a_texCoord;\n varying vec2 v_texCoord;\n\n void main() {\n\n // convert the position from pixels to 0.0 to 1.0\n vec2 zeroToOne = a_position / u_resolution;\n\n // convert from 0->1 to 0->2\n vec2 zeroToTwo = zeroToOne * 2.0;\n\n // convert from 0->2 to -1->+1 (clip space)\n vec2 clipSpace = zeroToTwo - 1.0;\n\n gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);\n \n v_texCoord = a_texCoord;\n }\n ",this.lastResize=0,this.lastKnownScale=1,this.canvas=e,this.rendererPosition=e.getBoundingClientRect(),this.gl=e.getContext("webgl2"),this.fragmentShader=this.createShader(this.gl.FRAGMENT_SHADER,this.fragmentShaderSource),this.vertexShader=this.createShader(this.gl.VERTEX_SHADER,this.vertexShaderSource),this.program=this.createProgram(this.vertexShader,this.fragmentShader),this.dpi=(null==t?void 0:t.dpi)||1,this.attributes={position:this.gl.getAttribLocation(this.program,"a_position"),texCoord:this.gl.getAttribLocation(this.program,"a_texCoord")},this.uniforms={resolution:this.gl.getUniformLocation(this.program,"u_resolution"),texture:this.gl.getUniformLocation(this.program,"u_texture")},this.buffers={position:this.createArrayBuffer(),texCoord:this.createArrayBuffer(new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]))},this.rectBuffer=new Float32Array(12),this.resize(),this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height),this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.useProgram(this.program),this.gl.enableVertexAttribArray(this.attributes.position)}resize(){this.resizeCanvasToDisplaySize(),this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height),this.rendererPosition=this.canvas.getBoundingClientRect()}isReady(){return!0}beforeFrame(e,t,n){this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.vertexAttribPointer(this.attributes.position,2,this.gl.FLOAT,!1,0,0),this.gl.uniform2f(this.uniforms.resolution,this.gl.canvas.width,this.gl.canvas.height),this.lastResize>1e3&&(this.lastResize=0,this.resizeCanvasToDisplaySize()),this.lastResize+=t}prepareLayer(e){(!e.__host||!e.__host.webgl)&&((e instanceof ri||e instanceof lu)&&this.createImageHost(e),e instanceof ai&&this.createTextureHost(e))}createTextureHost(e){e.__host=e.__host?e.__host:{};let t,n=this.gl,i=this.gl.createTexture();if(n.bindTexture(n.TEXTURE_2D,i),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!1),e instanceof ai){let i=e.getTexture();i.source&&n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,i.source),t=i}n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.L
102INEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),e.__host.webgl={height:e.height,width:e.width,texture:i,lastImage:t}}createImageHost(e){let t=[...new Array(e.points.length/5)];e.__host=e.__host?e.__host:{},e.__host.webgl={height:e.height,width:e.width,textures:t,loading:[],loaded:[],lastLevelRendered:-1,onLoad:H(((t,n)=>{let i=this.gl,r=this.gl.createTexture();i.bindTexture(i.TEXTURE_2D,r),i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!1),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,n),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.bindTexture(i.TEXTURE_2D,null),e.__host.webgl.textures[t]=r,e.__host.webgl.loaded.push(t)}),"onLoad")}}paint(e,t,n,i,r,a){if("spacial-content"===e.type&&e.__host&&e.__host.webgl){if(e.getTexture){let t=null==e?void 0:e.getTexture();if(t&&e.__host.webgl.lastImage!==t.hash&&t.source&&!e.__host.webgl.error)try{let n=this.gl.RGBA,i=this.gl.RGBA,r=this.gl.UNSIGNED_BYTE;this.gl.bindTexture(this.gl.TEXTURE_2D,e.__host.webgl.texture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,n,i,r,t.source),e.__host.webgl.lastImage=t.hash}catch(s){e.__host.webgl.error=s}}if(e.__host.webgl.loading&&-1===e.__host.webgl.loading.indexOf(t)&&e.getImageUrl){e.__host.webgl.loading.push(t);let n=document.createElement("img");n.decoding="async",n.crossOrigin="anonymous",n.src=e.getImageUrl(t),n.onload=()=>(n.onload=null,e.__host.webgl.onLoad(t,n))}let o=e.__host.webgl.texture?e.__host.webgl.texture:e.__host.webgl.textures[t];o&&(this.gl.enableVertexAttribArray(this.attributes.texCoord),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.buffers.texCoord),this.gl.enableVertexAttribArray(this.attributes.texCoord),this.gl.vertexAttribPointer(this.attributes.texCoord,2,this.gl.FLOAT,!1,0,0),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.buffers.position),this.gl.enableVertexAttribArray(this.attributes.position),this.gl.vertexAttribPointer(this.attributes.position,2,this.gl.FLOAT,!1,0,0),this.gl.bindTexture(this.gl.TEXTURE_2D,o),this.gl.uniform1i(this.uniforms.texture,0),this.setRectangle(n,i,r,a),this.gl.drawArrays(this.gl.TRIANGLES,0,6))}}afterPaintLayer(e,t){}pendingUpdate(){return!0}getPointsAt(e,t,n,i){return e.getPointsAt(t,n,i)}afterFrame(){}getScale(e,t,n){if(Number.isNaN(e)||Number.isNaN(t))return this.lastKnownScale;let i=this.getCanvasDims(),r=i.width/e,a=i.height/t,s=(r<a?a:r)*(n&&this.dpi||1);return Number.isNaN(s)||(this.lastKnownScale=s),this.lastKnownScale}getCanvasDims(){return{width:this.canvas.width/this.dpi,height:this.canvas.height/this.dpi}}getViewportBounds(e,t,n){return null}createShader(e,t){let n=this.gl.createShader(e);if(n){if(this.gl.shaderSource(n,t),this.gl.compileShader(n),this.gl.getShaderParameter(n,this.gl.COMPILE_STATUS))return n;let e=this.gl.getShaderInfoLog(n);if(this.gl.deleteShader(n),e)throw new Error(e)}throw new Error("Invalid shader")}createProgram(e,t){let n=this.gl.createProgram();if(n){if(this.gl.attachShader(n,e),this.gl.attachShader(n,t),this.gl.linkProgram(n),this.gl.getProgramParameter(n,this.gl.LINK_STATUS))return n;let i=this.gl.getProgramInfoLog(n);if(this.gl.deleteProgram(n),i)throw new Error(i)}throw new Error("Invalid program")}resizeCanvasToDisplaySize(){let e=this.gl.canvas,t=e.clientWidth,n=e.clientHeight,i=e.width!==t||e.height!==n;return i&&(e.width=t,e.height=n),i}createArrayBuffer(e){let t=this.gl.createBuffer();if(this.gl.bindBuffer(this.gl.ARRAY_BUFFER,t),e&&this.gl.bufferData(this.gl.ARRAY_BUFFER,e,this.gl.STATIC_DRAW),!t)throw new Error("Cannot create buffer");return t}setRectangle(e,t,n,i){this.gl.bufferData(this.gl.ARRAY_BUFFER,this.getRectangle(e,t,n,i),this.gl.STATIC_DRAW)}getRectangle(e,t,n,i){let r=e,a=e+n,s=t,o=t+i;return this.rectBuffer.set([r,s,a,s,r,o,r,o,a,s,a,o]),this.rectBuffer}getRendererScreenPosition(){return this.rendererPosition}finishLayer(){}reset(){}},"Lv"),E);function gd(e,t){let n=t?e:JSON.stringify(e),i=5381,r=n.length;for(;r;
102)i=33*i^n.charCodeAt(--r);let a=(i>>>0).toString(16);return a.length%2?"0"+a:a}H(gd,"ad");var yd=(H(A=class{constructor(e){this.sheetPrefix=(null==e?void 0:e.sheetPrefix)||"a-",this.$element=document.createElement("style"),this.stylesheetClasses=[],this.activeStylesheetClasses=[],this.sheetsDidUpdate=!1,this.stylesheetEntries={}}getElement(){return this.$element}addStylesheet(e){let t=e.replace(/\s\s+/g," ").replace(/: /g,":").replace(/; /g,";").trim(),n=this.sheetPrefix+gd(t,!0);return-1!==this.stylesheetClasses.indexOf(n)||(this.stylesheetClasses.push(n),this.activeStylesheetClasses.push(n),this.stylesheetEntries[n]=t,this.sheetsDidUpdate=!0),n}removeStylesheet(e){let t=this.sheetPrefix+gd(e,!0);this.stylesheetClasses.indexOf(t)&&(this.stylesheetClasses=this.stylesheetClasses.filter((e=>e!==t))),this.sheetsDidUpdate=!0}clearClasses(){this.activeStylesheetClasses=[]}didUpdateActive(){if(this.activeStylesheetClasses.length){for(let e of this.activeStylesheetClasses)if(-1===this.stylesheetClasses.indexOf(e))return!0;for(let e of this.stylesheetClasses)if(-1===this.activeStylesheetClasses.indexOf(e))return!0}return!1}updateSheet(){(this.sheetsDidUpdate||this.didUpdateActive())&&(this.$element.innerText=this.activeStylesheetClasses.map((e=>`.${e}{${this.stylesheetEntries[e]}}`)).join(""),this.sheetsDidUpdate=!1,this.stylesheetClasses=[...this.activeStylesheetClasses])}},"md"),A),vd=(H(L=class{constructor(e,t){this.visible=[],this.previousVisible=[],this.htmlIds=[],this.firstMeaningfulPaint=!1,this.paintTx=1,this.zIndex=0,this.htmlContainer=e,this.htmlContainer.innerHTML="",this.rendererPosition=this.htmlContainer.getBoundingClientRect(),this.options=re({triggerResize:H((()=>{}),"triggerResize"),box:!1,text:!1,sheetPrefix:"",inlineStyles:!1,background:""},t||{}),this.stylesheet=new yd({sheetPrefix:this.options.sheetPrefix}),this.options.inlineStyles||this.htmlContainer.appendChild(this.stylesheet.getElement()),this.options.background&&this.htmlContainer.classList.add(this.stylesheet.addStylesheet(`\n background: ${this.options.background};\n `)),this.classes={hostClassName:this.stylesheet.addStylesheet("\n position: absolute;\n transform-origin: 0px 0px;\n "),interactive:this.stylesheet.addStylesheet("pointer-events: all"),nonInteractive:this.stylesheet.addStylesheet("pointer-events: none")},this.stylesheet.updateSheet()}createHtmlHost(e){if(this.htmlContainer&&(this.options.box||e.props.className||e.props.html||e.props.href)){let t=document.createElement(e.props.href?"a":"div");if(e.props.href){t.style.display="block",t.href=e.props.href;let n=e.props.hrefTarget||"_blank";t.target=n,"_self"!==n&&(t.rel="noopener noreferrer")}t.title=e.props.title||"",this.options.inlineStyles?(t.style.display="block",t.style.position="absolute",t.style.overflow="hidden",t.style.transformOrigin="0px 0px"):t.classList.add(this.classes.hostClassName),e.__host={element:t,revision:null,relative:!1},this.updateHtmlHost(e,e.width,e.height),e.__onCreate&&e.__onCreate()}}triggerResize(){this.options.triggerResize()}updateHtmlHost(e,t,n){if(e.__revision!==e.__host.revision){let i=e.__host.element,r=[this.classes.hostClassName];if(e.props.interactive?this.options.inlineStyles?i.style.pointerEvents="all":r.push(this.classes.interactive):this.options.inlineStyles?i.style.pointerEvents="none":r.push(this.classes.nonInteractive),e.props.href){i.style.display="block",i.href=e.props.href;let t=e.props.hrefTarget||"_blank";i.target=t,i.rel="_self"!==t?"noopener noreferrer":""}else i.href&&i.removeAttribute("href");if(e.props.title&&(i.title=e.props.title||""),e.props.className&&(r.push(e.props.className),e.hovering&&r.push(`${e.props.className}--hover`),e.pressing&&r.push(`${e.props.className}--active`)),e.props.relativeStyle?(i.style.width=`${t||e.width}px`,i.style.height=`${n||e.height}px`):(i.style.width=`${e.width}px`,i.style.height=`${e.height}px`),e.props.style)return void Object.assign(i.style,e.props.style||{},e.hovering&&e.props.hoverStyles||{},e.pressing&&e.props.pressStyles||{});if(this.options.text&&e instanceof Nu){e.text&&(i.innerText=e.text),e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor),e.color&&(i.style.color=e.color),e.props.font&&(i.style.font=e.props.font),e.props.textAlign&&(i.style.textAlign=e.props.textAlign),e.__host.revision=e.__revision;let t=r.join(" ");i.className=t,i.part=t}e instanceof Du&&(this.options.box||e.props.className||e.props.html)&&(e.props.backgroundColor&&(i.style.backgroundColor=e.props.backgroundColor),e.props.border!==i.style.border&&(i.style.border=e.props.border));let a=r.join(" ");i.className=a,i.part=a}}afterFrame(e,t,n){this.stylesheet.updateSheet();for(let i of this.previousVisible)-1===this.visible.indexOf(i)&&this.htmlContainer&&i.__id&&-1!==this.htmlIds.indexOf(i.__id)&&this.htmlContainer.removeChild(i.__host.element);this.previousVisible=this.visible}afterPaintLayer(e,t){}beforeFrame(e,t,n){this.stylesheet.clearClasses(),this.paintTx++,this.zIndex=0,this.visible=[]}getPointsAt(e,t,n,i){return e.getPointsAt(t,n,i)}getScale(e,t){let n=this.rendererPosition.width/e,i=this.rendererPosition.height/t;return n<i?i:n}getViewportBounds(e,t,n){return null}isReady(){return!1}paint(e,t,n,i,r,a){if(this.zIndex++,(this.options.text&&e instanceof Nu||e instanceof Du&&(this.options.box||e.props.className||e.props.html))&&e.__host.tx!==this.paintTx&&(this.visible.push(e),e.__host.tx=this.paintTx,this.htmlContainer)){this.updateHtmlHost(e,r,a);let t=r/e.width,s=e.__host.element;s.style.zIndex=`${this.zIndex}`,e.props.relativeStyle?s.style.transform=`translate(${Math.round(n)}px, ${Math.round(i)}px)`:s.style.transform=`translate(${Math.round(n)}px, ${Math.round(i)}px) scale(${t})`,-1===this.previousVisible.indexOf(e)&&this.htmlContainer.appendChild(s),-1===this.htmlIds.indexOf(e.__id)&&this.htmlIds.push(e.__id)}}pendingUpdate(){return!1}prepareLayer(e){e.__host||(e instanceof Nu||e instanceof Du)&&this.createHtmlHost(e)}resize(e,t){typeof e<"u"&&typeof t<"u"&&(this.htmlContainer.style.width=`${e}px`,this.htmlContainer.style.height=`${t}px`),this.rendererPosition=this.htmlContainer.getBoundingClientRect()}getRendererScreenPosition(){return this.rendererPosition}finishLayer(){}reset(){}},"yd"),L),bd=(I=class{constructor(e,t,n){this.activatedEvents=[],this.eventHandlers=[],this.pointerMoveEvent=void 0,this.pointerEventState={isClicking:!1,isDragging:!1,isPressed:!1,mousedOver:[],itemsBeingDragged:[],mouseDownStart:{x:0,y:0},lastTouches:[]},this._realPointerMove=e=>{this.pointerMoveEvent=e},this.onWheelEvent=e=>{e.preventDefault(),this.onPointerEvent(e)},this.onTouchEvent=e=>{let t=qn[e.type],n=[],i=e.touches.length;for(let r=0;r<i;r++){let t=e.touches.item(r);if(!t)continue;let{x:i,y:a}=this.runtime.viewerToWorld(t.clientX-this.bounds.left,t.clientY-this.bounds.top),s={id:t.identifier,x:i,y:a};n.push(s)}n.length&&this.assignToEvent(e,n[0].x,n[0].y),"onTouchEnd"!==t?(this.pointerEventState.lastTouches=n,e.atlasTouches=n,this.runtime.world.propagateTouchEvent(t,e,n)):(e.atlasTouches=[],this.runtime.world.propagateTouchEvent(t,e,this.pointerEventState.lastTouches),this.pointerEventState.lastTouches=[])},this.onPointerEvent=e=>{let t=qn[e.type];if(t&&-1!==this.runtime.world.activatedEvents.indexOf(t)){let{x:n,y:i}=this.runtime.viewerToWorld(e.clientX-this.bounds.left,e.clientY-this.bounds.top);this.assignToEvent(e,n,i),this.runtime.world.propagatePointerEvent(t,e,n,i)}},this.onPointerDown=e=>{this.pointerEventState.isPressed=!0,this.pointerEventState.isClicking=!0,this.pointerEventState.mouseDownStart.x=e.clientX,this.pointerEventState.mouseDownStart.y=e.clientY,setTimeout((()=>{this.runtime&&(this.pointerEventState.isClicking=!1)}),250),setTimeout((()=>
102{if(this.runtime&&this.pointerEventState.isPressed&&!this.pointerEventState.isDragging){let t=this.runtime.viewerToWorld(this.pointerEventState.mouseDownStart.x-this.bounds.left,this.pointerEventState.mouseDownStart.y-this.bounds.top);this.pointerEventState.isDragging=!0,this.pointerEventState.itemsBeingDragged=this.runtime.world.propagatePointerEvent("onDragStart",e,t.x,t.y)}}),800),this.onPointerEvent(e)},this.onPointerUp=e=>{if(this.pointerEventState.isClicking){let{x:t,y:n}=this.runtime.viewerToWorld(e.clientX-this.bounds.left,e.clientY-this.bounds.top);this.assignToEvent(e,t,n),this.runtime.world.propagatePointerEvent("onClick",e,t,n)}if(this.pointerEventState.isDragging){for(let t of this.pointerEventState.itemsBeingDragged)t.dispatchEvent("onDragEnd",e);this.pointerEventState.isDragging=!1}this.pointerEventState.isClicking=!1,this.pointerEventState.isPressed=!1,this.pointerEventState.itemsBeingDragged=[],this.onPointerEvent(e)},this.onPointerMove=e=>{this.pointerMoveEvent=void 0;let{x:t,y:n}=this.runtime.viewerToWorld(e.clientX-this.bounds.left,e.clientY-this.bounds.top);if(Number.isNaN(t)||Number.isNaN(n))return;this.assignToEvent(e,t,n),this.runtime.world.propagatePointerEvent("onPointerMove",e,t,n);let i=this.runtime.world.propagatePointerEvent("onMouseMove",e,t,n),r=[],a=[];for(let s of i)r.push(s.id),a.push(s),-1===this.pointerEventState.mousedOver.indexOf(s)&&(s.dispatchEvent("onMouseEnter",e),s.dispatchEvent("onPointerEnter",e),s.dispatchEvent("onMouseOver",e),s.dispatchEvent("onPointerOver",e));for(let s of this.pointerEventState.mousedOver)-1===r.indexOf(s.id)&&(s.dispatchEvent("onMouseLeave",e),s.dispatchEvent("onPointerLeave",e),s.dispatchEvent("onMouseOut",e),s.dispatchEvent("onPointerOut",e));if(this.pointerEventState.isDragging)for(let s of this.pointerEventState.itemsBeingDragged)s.dispatchEvent("onDrag",e);if(this.pointerEventState.isPressed&&!this.pointerEventState.isDragging&&li(this.pointerEventState.mouseDownStart,{x:e.clientX,y:e.clientY})>50){let t=this.runtime.viewerToWorld(this.pointerEventState.mouseDownStart.x-this.bounds.left,this.pointerEventState.mouseDownStart.y-this.bounds.top);this.pointerEventState.isDragging=!0,this.pointerEventState.itemsBeingDragged=this.runtime.world.propagatePointerEvent("onDragStart",ae(re({},e),{atlas:{x:t.x,y:t.y}}),t.x,t.y)}this.pointerEventState.mousedOver=a},this.element=e,this.runtime=t,this.unsubscribe=t.world.addLayoutSubscriber(this.layoutSubscriber.bind(this)),this.bounds=e.getBoundingClientRect(),this.listening=!1,this.options=re({simulationRate:0},n||{});let i=0;t.registerHook("useFrame",(e=>{i+=e,i>this.options.simulationRate&&this.pointerMoveEvent&&(i=0,t.updateNextFrame())})),t.registerHook("useBeforeFrame",(()=>{this.pointerMoveEvent&&this.onPointerMove(this.pointerMoveEvent)})),this.activateEvents()}updateBounds(){this.bounds=this.element.getBoundingClientRect(),this.runtime.updateRendererScreenPosition()}layoutSubscriber(e){"event-activation"===e&&0==this.listening&&this.activateEvents()}assignToEvent(e,t,n){bd.eventPool.atlas.x=t,bd.eventPool.atlas.y=n,e.atlas=bd.eventPool.atlas}activateEvents(){this.listening=!0,this.element.addEventListener("pointermove",this._realPointerMove),this.element.addEventListener("pointerup",this.onPointerUp),this.element.addEventListener("pointerdown",this.onPointerDown),this.element.addEventListener("mousedown",this.onPointerEvent),this.element.addEventListener("mouseup",this.onPointerEvent),this.element.addEventListener("pointercancel",this.onPointerEvent),this.element.addEventListener("wheel",this.onWheelEvent),this.element.addEventListener("touchstart",this.onTouchEvent),this.element.addEventListener("touchcancel",this.onTouchEvent),this.element.addEventListener("touchend",this.onTouchEvent),this.element.addEventListener("touchmove",this.onTouchEvent)}normalizeEventName(e){return e.startsWith("on")?e.slice(2).toLowerCase():e.toLowerCase()}stop(){this.listening=!1,this.element.removeEventListener("pointermove",this._realPointerMove),this.element.removeEventListener("pointerup",this.onPointerUp),this.element.removeEventListener("pointerdown",this.onPointerDown),this.element.removeEventListener("mousedown",this.onPointerEvent),this.element.removeEventListener("mouseup",this.onPointerEvent),this.element.removeEventListener("pointercancel",this.onPointerEvent),this.element.removeEventListener("wheel",this.onWheelEvent),this.element.removeEventListener("touchstart",this.onTouchEvent),this.element.removeEventListener("touchcancel",this.onTouchEvent),this.element.removeEventListener("touchend",this.onTouchEvent),this.element.removeEventListener("touchmove",this.onTouchEvent),this.unsubscribe();for(let[e,t]of this.eventHandlers)this.element.removeEventListener(this.normalizeEventName(e),t)}},H(I,"ql"),I),_d=bd;function wd({interactive:e=!0,viewport:t,forceRefresh:n,canvasElement:i,overlayElement:r,controllerConfig:a,unstable_webglRenderer:s,dpi:o,debug:l,canvasBox:u=!0,polygon:c=!0,navigatorElement:d,runtimeOptions:p}){if(!i)throw new Error("Invalid container");i.style.userSelect="none";let h=e?Nc(re({minZoomFactor:.5,maxZoomFactor:3,enableClickToZoom:!1,parentElement:i},a||{})):void 0,f=new wc([s?new md(i,{dpi:o}):new _c(i,{dpi:o,debug:l,box:u,polygon:c}),r?new vd(r,{box:s||!u,text:!0,triggerResize:n}):void 0,d?new Sc(d):void 0]),m=new Xu(f,new Au(1024,1024),t,h?[h]:[],p),g=new _d(i,m);return{name:"default-preset",em:g,runtime:m,renderer:f,controller:h,canvas:i,navigator:d,unmount(){dd(m),m.stopControllers(),m.stop(),m.reset(),g&&g.stop()}}}_d.eventPool={atlas:{x:0,y:0}},H(wd,"Nv");var Sd=1+Number.MIN_VALUE,Cd=(H($=class{constructor(e,t){this.pending=!0,this.zIndex=0,this.lastKnownScale=1,this.currentlyVisible=[],this.previouslyVisible=[],this.container=e,this.rendererPosition=e.getBoundingClientRect();let{width:n,height:i}=this.rendererPosition;this.width=n,this.height=i,this.options=re({addPart:!1,setDraggableFalse:!1,imageClass:"",widthStylesheet:!1,sheetPrefix:"position-",background:"#000"},t||{}),this.stylesheet=new yd({sheetPrefix:this.options.sheetPrefix}),this.container.classList.add(this.stylesheet.addStylesheet(`\n background: ${this.options.background};\n `)),this.options.widthStylesheet&&this.container.appendChild(this.stylesheet.getElement())}isReady(){return!0}resize(){this.rendererPosition=this.container.getBoundingClientRect(),this.width=this.rendererPosition.width,this.height=this.rendererPosition.height}getRendererScreenPosition(){return this.rendererPosition}afterFrame(e,t,n){this.stylesheet.updateSheet();for(let i of this.previouslyVisible)-1===this.currentlyVisible.indexOf(i)&&this.container.removeChild(i);for(let i of this.currentlyVisible)-1===this.previouslyVisible.indexOf(i)&&this.container.appendChild(i);this.previouslyVisible=this.currentlyVisible,this.currentlyVisible=[]}afterPaintLayer(e,t){}beforeFrame(e,t,n){this.stylesheet.clearClasses(),this.zIndex=0}getPointsAt(e,t,n,i){return e.getPointsAt(t,n,i)}getScale(e,t){if(Number.isNaN(e)||Number.isNaN(t))return this.lastKnownScale;let n=this.width/e,i=this.height/t,r=n<i?i:n;return Number.isNaN(r)||(this.lastKnownScale=r),this.lastKnownScale}getViewportBounds(e,t,n){return null}createImage(){let e=document.createElement("img");return this.options.imageClass?(e.className=this.options.imageClass,this.options.addPart&&e.setAttribute("part",this.options.imageClass)):(e.style.position="absolute",e.style.pointerEvents="none",e.style.userSelect="none"),this.options.setDraggableFalse&&e.setAttribute("draggable","false"),e}paint(e,t,n,i,r,a){if(this.pending=!1,this.zIndex++,e instanceof ri){if(!e.__host){let t=this.createImage();t.src=e.uri,e.__host=t,this.container.appendChild(e.__host)}let t=e.__host;this.currentlyVisible.push(t),t.style.zIndex=`${this.zIndex}`,t.style.opacity=`${e.style.opacity}`,this.options.widthStylesheet?t.className=this.options.imageClass+" "+this.stylesheet.addStylesheet(`width:${(r+Sd).toFixed(2)}px;height:${(a+Sd).toFixed(2)}px;`):(t.style.width=`${r+Sd}px`,t.style.height=`${a+Sd}px`),t.style.transform=`translate(${n}px, ${i}px)`}if(e instanceof lu){if(e.__host||(e.__host={images:[]}),!e.__host.images[t]){let n=e.getImageUrl(t),i=this.createImage();i.src=n,e.__host.images[t]=i,this.container.appendChild(i)}let s=e.__host.images[t];s.style.zIndex=`${this.zIndex}`,s.style.opacity=`${e.style.opacity}`,this.currentlyVisible.push(s),this.options.widthStylesheet?s.className=this.options.imageClass+" "+this.stylesheet.addStylesheet(`width:${(r+Sd).toFixed(2)}px;height:${(a+Sd).toFixed(2)}px;`):(s.style.width=`${r+Sd}px`,s.style.height=`${a+Sd}px`),s.style.transform=`translate(${n}px, ${i}px)`}}pendingUpdate(){return this.pending}prepareLayer(e){}finishLayer(e){}reset(){}},"Dv"),$);function kd({interactive:e,viewport:t,forceRefresh:n,containerElement:i,overlayElement:r,controllerConfig:a}){if(!i)throw new Error("Invalid container");i.style.userSelect="none";let s=e?Nc(re({minZoomFactor:.5,maxZoomFactor:3,enableClickToZoom:!1,parentElement:i},a||{})):void 0,o=new Cd(i,{addPart:!1,setDraggableFalse:!1,imageClass:"atlas-static-image"}),l=r?new wc([o,new vd(r,{box:!0,text:!0,triggerResize:n})]):o,u=new Xu(l,new Au(1024,1024),t,s?[s]:[]),c=new _d(i,u);return{name:"static-preset",em:c,runtime:u,renderer:l,controller:s,container:i,overlay:r,unmount(){dd(u),u.stopControllers(),u.stop(),c&&c.stop()}}}H(kd,"nP");var xd={"default-preset":wd,"static-preset":kd},Td={};function Ed(e,t){let n=ot(),i=ot(),r=ot(),a=ot(),s=ot({width:t.width,height:t.height,didUpdate:!0}),[o="default-preset",l=Td]=Array.isArray(e)?e||[]:[e],[u,c]=it(null);st((()=>{let e=i.current,u=a.current,d=n.current,p=r.current,h=(xd[o]||wd)(re({containerElement:u,canvasElement:e,overlayElement:d,navigatorElement:p,viewport:s.current,dpi:window.devicePixelRatio||1,forceRefresh:t.forceRefresh,unstable_webglRenderer:t.unstable_webglRenderer},l||{}));return c(h),()=>{h&&(h.unmount(),e&&(e.height=0,e.width=0),d&&(d.innerHTML=""),p&&(p.height=0,p.width=0))}}),[o,l]);let d=ut((()=>({canvas:i,overlay:n,container:a,navigator:r})),[]);return[o,u,s,d]}function Ad(e){return ut((()=>gd(e)),e)}H(Ed,"sP"),H(Ad,"oP");var Ld=Sn.forwardRef(((e,t)=>Sn.createElement("div",ae(re({},e),{ref:t,part:e.className})))),Id=["brightness","contrast","grayscale","hueRotate","invert","saturate","sepia","blur"],$d=H((e=>{var t=e,{htmlChildren:n,renderPreset:i,onCreated:r,mode:a="explore",resetWorldOnChange:s=!0,unstable_webglRenderer:o=!1,unstable_noReconciler:l=!1,hideInlineStyle:u=!1,controllerConfig:c,children:d,overlayStyle:p,containerStyle:h,enableNavigator:f,className:m,containerProps:g={},homePosition:y,homeOnResize:v,homeCover:b,background:_,runtimeOptions:w,debug:S,filters:C}=t,k=oe(t,["htmlChildren","renderPreset","onCreated","mode","resetWorldOnChange","unstable_webglRenderer","unstable_noReconciler","hideInlineStyle","controllerConfig","children","overlayStyle","containerStyle","enableNavigator","className","containerProps","homePosition","homeOnResize","homeCover","background","runtimeOptions","debug","filters"]);let[x,T]=it(a),[E,A]=it(!1),L=ot(!1),[I,$]=it(0),D=ut((()=>
102("string"==typeof i&&(i=[i,{}]),S?i?[i[0],re({debug:S},i[1]||{})]:["default-preset",{debug:S}]:i||"default-preset")),[i,S]),[P,O,M]=Uc({scroll:!0}),R=ot(),N=H((e=>{R.current=e,P(e)}),"Nt"),[F,B,j,U]=Ed(D,{width:k.width,height:k.height,forceRefresh:M,unstable_webglRenderer:o}),[V,q]=it("");at((()=>{T(a)}),[a]),at((()=>{B&&B.em&&B.em.updateBounds()}),[B,O]),at((()=>{null==B||B.runtime.setOptions(w||{})}),[w]),at((()=>{B&&B.runtime&&(B.runtime.mode=x),E&&B&&(B.ready=!0)}),[B,E,x]),at((()=>{B&&(b||(B.runtime.manualHomePosition=!!y,B.runtime.setHomePosition(y)))}),[B,b,y]),at((()=>{if(B){let e=B.runtime;e.resize(j.current.width,k.width,j.current.height,k.height),j.current.width=k.width,j.current.height=k.height,e.updateNextFrame(),j.current.didUpdate=!0}}),[B,k.width,k.height]),at((()=>{if(C&&B){let e=B.runtime,t=!1;e.hookOptions.enableFilters=!0;for(let n of Id)C[n]?C[n]!==B.runtime.hookOptions.filters[n]&&(e.hookOptions.filters[n]=C[n],t=!0):e.hookOptions.filters[n]&&(e.hookOptions.filters[n]=0,t=!0);t&&e.updateNextFrame()}else if(B){let e=B.runtime;for(let t of Id)e.hookOptions.filters[t]=0;e.hookOptions.enableFilters=!1,e.updateNextFrame()}}),[B,C]),hd((()=>{if(B&&(B.overlay&&(B.overlay.style.width=`${O.width}px`,B.overlay.style.height=`${O.height}px`),B.container&&(B.container.style.width=`${O.width}px`,B.container.style.height=`${O.height}px`),b)){let e=B.runtime.world.width,t=B.runtime.world.height,n=e/t,i=j.current.width,r=j.current.height,a=i/r;if(n>a){a=r/i,B.runtime.manualHomePosition=!0;let n=(e-t/a)/2;"start"===b&&(n=0),"end"===b&&(n=e-t/a),B.runtime.setHomePosition({x:n,y:0,width:t/a,height:t})}else{let n=(t-e/a)/2;"start"===b&&(n=0),"end"===b&&(n=t-e/a),B.runtime.manualHomePosition=!0,B.runtime.setHomePosition({x:0,y:n,width:e,height:e/a})}v&&B.runtime.goHome({})}}),[B,O.height,O.width,b,I]),hd((()=>{let e=H((()=>{if(B){let e=B.runtime;j.current.width!==k.width&&j.current.height!==k.height&&(e.resize(j.current.width,k.width,j.current.height,k.height),j.current.width=k.width,j.current.height=k.height,e.updateNextFrame(),j.current.didUpdate=!0)}}),"fe");return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[B,k.height,k.width]);let z=120,W=H((()=>{if(B&&B.navigator){let e=B.runtime.world.height,t=B.runtime.world.width,n=window.devicePixelRatio||1,i=z,r=z/t*e;B.navigator.width=i*n,B.navigator.height=r*n,B.navigator.style.width=i+"px",B.navigator.style.height=r+"px"}}),"Be");hd((()=>{if(B){W();let e=B.runtime;return e.world.addLayoutSubscriber((t=>{"recalculate-world-size"===t&&(W(),e.resize(j.current.width,k.width,j.current.height,k.height),$((e=>e+1)))}))}return()=>{}}),[B,k.width,k.height]);let G=ct((function(e){let t=H((()=>{A(!0)}),"le");return at((()=>{if(!B)throw new Error("Invalid configuration - no runtime found");{B.runtime.goHome();let e=r&&r(B);e&&e.then?e.then(t):t()}}),[]),e.children}),[B]);at((()=>{if(B){let e=B.runtime;if(s)return e.world.addLayoutSubscriber((t=>{"recalculate-world-size"===t&&e.goHome()}))}return()=>{}}),[B,s]),at((()=>B?B.runtime.registerHook("useBeforeFrame",(()=>{var e;if(j.current.didUpdate&&B.canvas){let t=window.devicePixelRatio||1,n=j.current.width,i=j.current.height;B.canvas.width=n*t,B.canvas.height=i*t,B.canvas.style.width=n+"px",B.canvas.style.height=i+"px",null==(e=B.canvas.getContext("2d"))||e.scale(t,t),B&&B.em&&B.em.updateBounds(),j.current.didUpdate=!1}})):()=>{}),[B,s]),at((()=>{let e=H((()=>{B&&(T("sketch"),q("mode-sketch")),window.removeEventListener("keyup",e)}),"fe"),t=H((t=>{if("Space"===t.code&&B&&"sketch"===B.runtime.mode){if(t.target&&t.target.tagName&&"input"===t.target.tagName.toLowerCase())return;t.preventDefault(),T("explore"),q("mode-explore"),window.addEventListener("keyup",e)}}),"te");return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t),window.removeEventListener("keyup",e)}}),[B]),L.current=!0;let K=k,{height:Y,width:Z}=K,X=oe(K,["height","width"]),Q=Ad([k.width,k.height]),J=!0;return D&&Array.isArray(D)&&D.length>1&&!1===D[1].interactive&&(J=!1),_=null!=_?_:"#000",R.current&&(_=getComputedStyle(R.current).getPropertyValue("--atlas-background")||_),Sn.createElement(Ld,{ref:N,className:["atlas",u?"":`atlas-width-${Q}`,V,m,`atlas-${F}
102`].filter(Boolean).join(" ").trim(),style:re(re({},h),u?{}:{width:k.width,height:k.height})},"static-preset"===F?Sn.createElement(Ld,re({className:"atlas-static-container",ref:U.container,tabIndex:0},g)):Sn.createElement("canvas",ae(re(re({className:"atlas-canvas",part:"atlas-canvas",tabIndex:0},X),g),{ref:U.canvas,"data-background":_})),Sn.createElement(Ld,{className:["atlas-overlay",J?"atlas-overlay--interactive":""].filter(Boolean).join(" ").trim(),style:re({},p||{}),ref:U.overlay},l?Sn.createElement(G,null,Sn.createElement(Zc.Provider,{value:O},Sn.createElement(Fc.Provider,{value:x},Sn.createElement(Kc.Provider,{value:B},d)))):Sn.createElement(fd,{bounds:O,preset:B,mode:x,setIsReady:A,onCreated:r},d)),f?Sn.createElement(Ld,{className:"atlas-navigator"},Sn.createElement("canvas",{className:"atlas-navigator-canvas",part:"atlas-navigator-canvas",ref:U.navigator})):null,u?Sn.createElement("style",null,`.atlas-width-${Q} { width: ${k.width}px; height: ${k.height}px; }`):Sn.createElement("style",null,`\n .atlas { position: relative; display: flex; background: ${_}; z-index: var(--atlas-z-index, 10); -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }\n .atlas-width-${Q} { width: ${k.width}px; height: ${k.height}px; }\n .atlas-canvas { flex: 1 1 0px; }\n .atlas-canvas:focus, .atlas-static-container:focus { outline: none }\n .atlas-canvas:focus-visible, .atlas-canvas-container:focus-visible { outline: var(--atlas-focus, 2px solid darkorange) }\n .atlas-static-preset { touch-action: inherit; }\n .atlas-static-container { position: relative; overflow: hidden; flex: 1 1 0px; }\n .atlas-overlay { position: absolute; top: 0; left: 0; none; overflow: hidden; }\n /** setting the pointer events to none means that Atlas will own the touch and mousewheel events **/\n .atlas-overlay--interactive { pointer-events: none; }\n .atlas-static-image { position: absolute; user-select: none; transform-origin: 0px 0px; }\n .atlas-navigator { position: absolute; top: var(--atlas-navigator-top, 10px); right: var(--atlas-navigator-bottom, 10px); left: var(--atlas-navigator-left); bottom: var(--atlas-navigator-bottom); opacity: .8 }\n .atlas-navigator-canvas { width: 100%; }\n `),n)}),"aP");function Dd(e){return Number(e)==e?`${e}px`:e}H(Dd,"lP");var Pd=H((e=>{var t=e,{resizeHash:n,aspectRatio:i,containerProps:r={}}=t,a=oe(t,["resizeHash","aspectRatio","containerProps"]);let[s,o,l]=Uc(),u=a,{height:c,width:d}=u,p=oe(u,["height","width"]);at((()=>{l()}),[d,c,n,l]);let h=ut((()=>i?{width:o.width,height:o.width*(1/i)}:o),[o,i]);return Sn.createElement(Ld,re({ref:s,className:"atlas-container"},r),h.width?Sn.createElement($d,re({width:h.width||100,height:h.height||100},p),a.children):null,a.hideInlineStyle?null:Sn.createElement("style",null,`\n .atlas-container { \n display: var(--atlas-container-display, block);\n flex: var(--atlas-container-flex, none);\n width: var(--atlas-container-width, ${d?`${d}px`:"100%"});\n height: var(--atlas-container-height, ${Dd(c||(i?h.height:512))}) \n }\n `),a.htmlChildren)}),"wd"),Od=H((()=>dt(Kc)),"Ns"),Md=H((()=>{let e=Od();return e?e.runtime:void 0}),"mi"),Rd=H(((e,t=[])=>{let n=Md();at((()=>n?n.registerHook("useAfterFrame",e):()=>{}),t)}),"ta"),Nd=H(((e,t=[])=>{let n=Md();at((()=>n?n.registerHook("useFrame",e):()=>{}),t)}),"xd"),Fd=H((()=>{let e=Od();return e&&e.canvas?e.canvas:void 0}),"cP");function Bd(){return dt(Zc)}H(Bd,"jv");var Hd=H((({onCreate:e})=>
102{let t=ot({x:0,y:0}),n=Fd(),i=Bd(),r=Md(),[a,s]=it(),[o,l]=it(),u=Bc();return Nd((()=>{r&&a&&!o&&(r.pendingUpdate=!0)}),[a,o]),Rd((()=>{if(a&&n&&r){let e=n.getContext("2d");if(e){let{x:n,y:i,width:s,height:l}=r.worldToViewer(a.x,a.y,(o?o.x:t.current.x)-a.x,(o?o.y:t.current.y)-a.y);e.lineWidth=o?3:1,e.strokeStyle="#fff",e.strokeRect(n,i,s,l),e.lineWidth=o?3:1,e.strokeStyle="#000",e.strokeRect(n+1,i+1,s-2,l-2)}}}),[a,o]),at((()=>{let e=H((e=>{if(i&&r){let{x:n,y:a}=r.viewerToWorld(e.clientX-i.left,e.clientY-i.top);t.current.x=~~n,t.current.y=~~a}}),"d");return n?(n.addEventListener("mousemove",e),()=>n.removeEventListener("mousemove",e)):()=>{}}),[i,n,r]),at((()=>{let e=H((e=>{"sketch"===u&&(s({x:Math.round(t.current.x),y:Math.round(t.current.y)}),l(void 0))}),"d");return n?(n.addEventListener("mousedown",e),()=>n.removeEventListener("mousedown",e)):()=>{}}),[n,u]),at((()=>{let e=H((e=>{a&&!o&&l({x:Math.round(t.current.x),y:Math.round(t.current.y)})}),"d");return n?(n.addEventListener("mouseup",e),()=>n.removeEventListener("mouseup",e)):()=>{}}),[n,a,o]),at((()=>{a&&o&&e({x:Math.min(a.x,o.x),y:Math.min(a.y,o.y),width:Math.abs(o.x-a.x),height:Math.abs(o.y-a.y)})}),[a,e,o]),null}),"yc");function jd(e,t,n){return V(this,null,(function*(){if(vn.startsWith("18.")){let i=yield Promise.resolve().then((()=>pe(An(),1))),r=i.default?i.default.createRoot:i.createRoot;n.current||(n.current=r(e)),n.current.render(t)}else if(typeof ReactDOM<"u"){let{render:i,unmountComponentAtNode:r}=ReactDOM;i(t,e),n.current={unmount(){r(e)}}}else{let i=yield Promise.resolve().then((()=>(Cn(),$t))),r=i.default?i.default.render:i.render,a=i.default?i.default.unmountComponentAtNode:i.unmountComponentAtNode;r(t,e),n.current={unmount(){a(e)}}}}))}H(jd,"uP");var Ud=Sn.forwardRef(((e,t)=>{var n=e,{children:i}=n,r=oe(n,["children"]);let a=ot(),s=Md(),o=ot(0),l=ot(),u=ot();return Nd((()=>{var e,t,n,i;if(r.relative){let r=a.current;if(r&&s){let u=s.getScaleFactor();o.current!==u&&(o.current=u,r.style.transformOrigin="0 0",r.style.transform=`scale(${1/o.current})`,r.style.width=100*o.current+"%",r.style.height=100*o.current+"%",a.current&&(null==(t=null==(e=l.current)?void 0:e.__owner.value)?void 0:t.rotation)&&(r.style.transform=`scale(${1/o.current}) translate(50%, 50%) rotate(${(null==(i=null==(n=l.current)?void 0:n.__owner.value)?void 0:i.rotation)||0}deg) translate(-50%, -50%)`))}}}),[r.relative]),st((()=>{let e=l.current;function n(){return V(this,null,(function*(){if(e&&e.__host){let t=r.relative?Sn.createElement("div",{ref:a},i):i;yield jd(e.__host.element,t,u)}}))}t&&e&&("function"==typeof t?t(e):t.current=e),H(n,"m"),e&&e.__host?n():e&&(e.__onCreate=n)}),[t,i,l,r.relative]),st((()=>()=>{u.current&&setTimeout((()=>{u.current.unmount()}),0)}),[]),Sn.createElement("box",ae(re({html:!0},r),{ref:l}))}));Ud.displayName="HTMLPortal";var Vd=H(((e,t,n=[])=>{let i=Md();at((()=>{if(i){let n=t,r=qn[e];i.world.activatedEvents.push(r);let a=r.slice(2).toLowerCase();return i.world.addEventListener(a,n),()=>{i.world.removeEventListener(a,n)}}return()=>{}}),[i?i.world:void 0,e,...n])}),"Ay");function qd(e,t){if(0===e)return[0,1];if(0===t)return[1,0];let n=Math.abs(e)/Math.abs(t);return[n,1-n]}function zd(){let e=ot({ctrl:!1,shift:!1,alt:!1});return st((()=>{function t(t){"Shift"===t.key&&(e.current.shift=!0),"Control"===t.key&&(e.current.ctrl=!0),"Alt"===t.key&&(e.current.alt=!0)}function n(t){"Shift"===t.key&&(e.current.shift=!1),"Control"===t.key&&(e.current.ctrl=!1),"Alt"===t.key&&(e.current.alt=!1)}return H(t,"e"),H(n,"n"),window.addEventListener("keydown",t),window.addEventListener("keyup",n),()=>{window.removeEventListener("keydown",t),window.removeEventListener("keyup",n)}}),[]),e}H(qd,"Ry"),H(zd,"hP");var Wd=H(((e,t)=>{let n=Bc(),i=Md(),r=Bd(),a=ot(),s=ot(null),o=ot(),[l,u]=it(!1),c=ot(!1),d=ot({north:0,south:0,east:0,west:0}),p=zd(),h=ct((e=>t=>{if(c.current=!0,u(!0),r&&i){let{top:n,left:s}=r,l=i.viewerToWorld(t.pageX-s,t.pageY-n);o.current={x:l.x,y:l.y},a.current=e}}),[r,i]),f=ut((()=>e.width/e.height),[e.width,e.height]),m=ct((t=>{if(!Math.abs(t.north-t.south+(t.east-t.west)))return;let n=-t.west+t.east,i=-t.north+t.south,r=e.width+n,a=e.height+i;if(r/a>=f){let e=r-a*f,[n,i]=qd(t.east,t.west);t.west=t.west+e*i,t.east=t.east-e*n}else{let e=a-r/f,[n,i]=qd(t.north,t.south);t.north=t.north+e*n,t.south=t.south-e*i}}),[e.width,e.height,f]);Nd((()=>{o&&i&&i.updateNextFrame()})),at((()=>{i&&i.updateNextFrame()}),[i,l]);let g=ct((t=>{var n;if(!i||!r||"sketch"!==i.mode)return;let{top:l,left:u}=r,c=i.viewerToWorld(t.pageX-u,t.pageY-l),h=s.current,f=!e.maintainAspectRatio&&p.current.alt,g=!f&&p.current.shift&&-1!==(null==(n=a.current)?void 0:n.indexOf("-"));if(("translate"===a.current||"east"===a.current||"north-east"===a.current||"south-east"===a.current)&&(d.current.east=c.x-(o.current?o.current.x:0),f&&(d.current.west=-d.current.east)),("translate"===a.current||"west"===a.current||"north-west"===a.current||"south-west"===a.current)&&(d.current.west=c.x-(o.current?o.current.x:0),f&&(d.current.east=-d.current.west)),("translate"===a.current||"north"===a.current||"north-east"===a.current||"north-west"===a.current)&&(d.current.north=c.y-(o.current?o.current.y:0),f&&(d.current.south=-d.current.north)),("translate"===a.current||"south"===a.current||"south-west"===a.current||"south-east"===a.current)&&(d.current.south=c.y-(o.current?o.current.y:0),f&&(d.current.north=-d.current.south)),(e.maintainAspectRatio||g)&&m(d.current),h){let t=d.current.west,n=d.current.north,r=e.width+d.current.east,a=e.height+d.current.south;h.points[1]=Math.min(t,r),h.points[2]=Math.min(n,a),h.points[3]=Math.max(t,r),h.points[4]=Math.max(n,a),i.updateNextFrame()}}),[i,e.width,e.height,e.maintainAspectRatio,r]);Vd("mousemove",g,[e.width,e.height,r]),Vd("pointermove",g,[e.width,e.height,r]);let y=ot();return at((()=>{y.current=()=>{if(c.current){let n=d.current.west,i=d.current.north,r=e.width+d.current.east,s=e.height+d.current.south,l=Math.min(n,r),p=Math.min(i,s),h=Math.max(n,r),f=Math.max(i,s),m={x:(e.x||0)+l,y:(e.y||0)+p,width:h-l||1,height:f-p||1};e.maintainAspectRatio,t(m),a.current=void 0,o.current=void 0,d.current.east=0,d.current.west=0,d.current.north=0,d.current.south=0,c.current=!1,u(!1)}}}),[t,e.height,e.width,e.x,e.y]),at((()=>{let e=H((()=>{y.current&&y.current()}),"S");return window.addEventListener("pointerup",e),window.addEventListener("touchend",e),()=>{window.removeEventListener("pointerup",e),window.removeEventListener("touchend",e)}}),[]),{portalRef:s,mode:n,mouseEvent:h,onPointerMoveCallback:g,isEditing:l}}),"Wv");function Gd(e,t){return e?t?ae(re(re({},e),t||{}),{":hover":e[":hover"]?Object.assign(e[":hover"]||{},t[":hover"]||{}):t[":hover"],":active":e[":active"]?Object.assign(e[":active"]||{},t[":active"]||{}):t[":hover"]}):e:t}H(Gd,"na"),tt(),tt();var Kd=0;function Yd(e,t,n,i,r){var a,s,o={};for(s in t)"ref"==s?a=t[s]:o[s]=t[s];var l={type:e,props:o,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Kd,__source:r,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===o[s]&&(o[s]=a[s]);return We.vnode&&We.vnode(l),l}H(Yd,"bt");var Zd={id:"https://iiif-parser/annotation-page",type:"AnnotationPage",behavior:[],motivation:null,label:null,thumbnail:[],summary:null,requiredStatement:null,metadata:[],rights:null,provider:[],items:[],seeAlso:[],homepage:[],logo:[],rendering:[],service:[]},Xd={id:"https://iiif-parser/empty-canvas",type:"Canvas",label:null,behavior:[],motivation:null,thumbnail:[],posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:[],rights:null,navDate:null,provider:[],items:[],annotations:[],seeAlso:[],homepage:[],logo:[],partOf:[],rendering:[],service:[],duration:0,height:0,width:0},Qd={id:"https://iiif-parser/empty-collection",type:"Collection",label:null,viewingDirection:"left-to-right",behavior:[],motivation:null,thumbnail:[],posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:[],rights:null,navDate:null,provider:[],items:[],annotations:[],seeAlso:[],homepage:[],logo:[],partOf:[],rendering:[],service:[],services:[]},Jd={id:"https://iiif-parser/empty-manifest",type:"Manifest",annotations:[],behavior:[],homepage:[],items:[],label:null,logo:[],metadata:[],motivation:null,navDate:null,provider:[],partOf:[],posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,rendering:[],requiredStatement:null,rights:null,seeAlso:[],service:[],services:[],start:null,structures:[],summary:null,thumbnail:[],viewingDirection:"left-to-right"},ep={id:"https://iiif-parser/empty-canvas",type:"Range",label:null,behavior:[],motivation:null,thumbnail:[],posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:[],rights:null,navDate:null,provider:[],items:[],annotations:[],seeAlso:[],homepage:[],logo:[],partOf:[],rendering:[],service:[],start:null,supplementary:null,viewingDirection:"left-to-right"},tp={id:"https://iiif-parser/empty-agent",type:"Agent",label:{},logo:[],seeAlso:[],homepage:[]},np=["Collection","Manifest","Canvas","AnnotationPage","AnnotationCollection","Annotation","ContentResource","Range","Service","Selector","Agent"];function ip(e){if(typeof e>"u"||null===e)throw new Error("Null or undefined is not a valid entity.");if(Array.isArray(e))throw new Error("Array is not a valid entity");if("object"!=typeof e)throw new Error(typeof e+" is not a valid entity");if("string"==typeof e.type){let t=np.indexOf(e.type);if(-1!==t)return np[t]}if(e.profile)return"Service";throw new Error("Resource type is not known")}H(ip,"gI");var rp=(H(D=class{constructor(e,t={}){fe(this,"traversals"),fe(this,"options"),this.traversals=re({collection:[],manifest:[],canvas:[],annotationCollection:[],annotationPage:[],annotation:[],contentResource:[],choice:[],range:[],service:[],agent:[]},e),this.options=re({allowUndefinedReturn:!1},t)}static all(e){return new rp({collection:[e],manifest:[e],canvas:[e],annotationCollection:[e],annotationPage:[e],annotation:[e],contentResource:[e],choice:[e],range:[e],service:[e]})}traverseDescriptive(e){return e.thumbnail&&(e.thumbnail=e.thumbnail.map((e=>this.traverseType(e,this.traversals.contentResource)))),e.provider&&(e.provider=e.provider.map((e=>this.traverseAgent(e)))),e}traverseLinking(e){return e.seeAlso&&(e.seeAlso=e.seeAlso.map((e=>this.traverseType(e,this.traversals.contentResource)))),e.service&&(e.service=e.service.map((e=>this.traverseType(e,this.traversals.service)))),e.services&&(e.services=e.services.map((e=>this.traverseType(e,this.traversals.service)))),e.logo&&(e.logo=e.logo.map((e=>this.traverseType(e,this.traversals.contentResource)))),e.homepage&&(e.homepage=e.homepage.map((e=>this.traverseType(e,this.traversals.contentResource)))),e.partOf&&(e.partOf=e.partOf.map((e=>"string"!=typeof e&&e.type?"Canvas"===e.type?this.traverseType(e,this.traversals.canvas):"AnnotationCollection"===e.type?this.traverseType(e,this.traversals.annotationCollection):this.traverseType(e,this.traversals.contentResource):this.traverseType(e,this.traversals.contentResource)))),e.start&&(e.start=e.start?this.traverseType(e.start,this.traversals.canvas):null),e.rendering&&(e.rendering=e.rendering.map((e=>this.traverseType(e,this.traversals.contentResource)))),e.supplementary&&(e.supplementary=e.supplementary.map((e=>this.traverseType(e,this.traversals.contentResource)))),e}traverseCollectionItems(e){return e.items&&e.items.map((e=>"Collection"===e.type?this.traverseCollection(e):this.traverseManifest(e))),e}traverseCollection(e){return this.traverseType(this.traverseDescriptive(this.traverseInlineAnnotationPages(this.traverseLinking(this.traversePosterCanvas(this.traverseCollectionItems(e))))),this.traversals.collection)}traverseManifestItems(e){return e.items&&(e.items=e.items.map((e=>this.traverseCanvas(e)))),e}traverseManifestStructures(e){return e.structures&&(e.structures=e.structures.map((e=>this.traverseRange(e)))),e}traverseManifest(e){return this.traverseType(this.traverseInlineAnnotationPages(this.traverseManifestStructures(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseManifestItems(e)))))),this.traversals.manifest)}traverseCanvasItems(e){return e.items=(e.items||[]).map((e=>this.traverseAnnotationPage(e))),e}traverseInlineAnnotationPages(e){return"string"==typeof e||!e||e.annotations&&(e.annotations=e.annotations.map((e=>this.traverseAnnotationPage(e)))),e}traverseCanvas(e){return this.traverseType(this.traverseInlineAnnotationPages(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseCanvasItems(e))))),this.traversals.canvas)}traverseAnnotationPageItems(e){return e.items&&(e.items=e.items.map((e=>this.traverseAnnotation(e)))),e}traverseAnnotationPage(e){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseAnnotationPageItems(e))),this.traversals.annotationPage)}traverseAnnotationBody(e){return Array.isArray(e.body)?e.body=e.body.map((e=>this.traverseContentResource(e))):e.body&&(e.body=this.traverseContentResource(e.body)),e}traversePosterCanvas(e){return e.posterCanvas&&(e.posterCanvas=this.traverseType(e.posterCanvas,this.traversals.canvas)),e.placeholderCanvas&&(e.placeholderCanvas=this.traverseType(e.placeholderCanvas,this.traversals.canvas)),e.accompanyingCanvas&&(e.accompanyingCanvas=this.traverseType(e.accompanyingCanvas,this.traversals.canvas)),e}traverseAnnotation(e){return this.traverseType(this.traverseLinking(this.traverseAnnotationBody(e)),this.traversals.annotation)}traverseContentResourceLinking(e){return"string"==typeof e||!e||e&&e.service&&(e.service=(e.service||[]).map((e=>this.traverseType(e,this.traversals.service)))),e}traverseContentResource(e){return"Choice"===e.type&&(e.items=e.items.map((e=>this.traverseContentResource(e)))),this.traverseType(this.traverseInlineAnnotationPages(this.traverseContentResourceLinking(e)),this.traversals.contentResource)}traverseRangeRanges(e){return e.items&&(e.items=e.items.map((e=>"string"==typeof e?this.traverseCanvas({id:e,type:"Canvas"}):"Manifest"===e.type?this.traverseManifest(e):this.traverseRange(e)))),e}traverseRange(e){return this.traverseType(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseRangeRanges(e)))),this.traversals.range)}traverseAgent(e){return this.traverseType(this.traverseDescriptive(this.traverseLinking(e)),this.traversals.agent)}traverseType(e,t){return t.reduce(((e,t)=>{let n=t(e);return typeof n>"u"&&!this.options.allowUndefinedReturn?e:n}),e)}traverseService(e){return this.traverseType(e,this.traversals.service)}traverseUnknown(e){let t=ip(e);switch(t){case"Collection":return this.traverseCollection(e);case"Manifest":return this.traverseManifest(e);case"Canvas":return this.traverseCanvas(e);case"AnnotationPage":return this.traverseAnnotationPage(e);case"Annotation":return this.traverseAnnotation(e);case"ContentResource":return this.traverseContentResource(e);case"Range":return this.traverseRange(e);case"Service":return this.traverseService(e);case"Agent":return this.traverseAgent(e);default:throw new Error(`Unknown or unsupported resource type of ${t}`)}}}
102,"vc"),D),ap=["sc:Collection","sc:Manifest","sc:Canvas","oa:AnnotationList","oa:Annotation","sc:Range","sc:Layer","sc:Sequence","oa:Choice","Service","ContentResource"];function sp(e){if(typeof e>"u"||null===e)throw new Error("Null or undefined is not a valid entity.");if(Array.isArray(e))throw new Error("Array is not a valid entity");if("object"!=typeof e)throw new Error(typeof e+" is not a valid entity");if("string"==typeof e["@type"]){let t=ap.indexOf(e["@type"]);if(-1!==t)return ap[t]}if(e.profile)return"Service";if(e.format||e["@type"])return"ContentResource";throw new Error("Resource type is not known")}H(sp,"mI");var op=(H(P=class{constructor(e,t={}){fe(this,"traversals"),fe(this,"options"),this.traversals=re({collection:[],manifest:[],canvas:[],annotationList:[],sequence:[],annotation:[],contentResource:[],choice:[],range:[],service:[],layer:[]},e),this.options=re({convertPropsToArray:!0,mergeMemberProperties:!0,allowUndefinedReturn:!1},t)}static all(e){return new op({collection:[e],manifest:[e],canvas:[e],annotationList:[e],sequence:[e],annotation:[e],contentResource:[e],choice:[e],range:[e],service:[e],layer:[e]})}traverseCollection(e){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseCollectionItems(e))),this.traversals.collection)}traverseCollectionItems(e){if(this.options.mergeMemberProperties){let t=[...(e.manifests||[]).map((e=>"string"==typeof e?{"@id":e,"@type":"sc:Manifest"}:e)),...(e.collections||[]).map((e=>"string"==typeof e?{"@id":e,"@type":"sc:Collection"}:e)),...e.members||[]];delete e.collections,delete e.manifests,e.members=t}return e.manifests&&(e.manifests=e.manifests.map((e=>this.traverseManifest("string"==typeof e?{"@id":e,"@type":"sc:Manifest"}:e)))),e.collections&&(e.collections=e.collections.map((e=>this.traverseCollection("string"==typeof e?{"@id":e,"@type":"sc:Collection"}:e)))),e.members&&(e.members=e.members.map((e=>"string"==typeof e?e:this.traverseUnknown(e)))),e}traverseManifest(e){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseManifestItems(e))),this.traversals.manifest)}traverseManifestItems(e){return e.sequences&&(e.sequences=e.sequences.map((e=>this.traverseSequence(e)))),e.structures&&(e.structures=e.structures.map((e=>this.traverseRange(e)))),e}traverseSequence(e){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseSequenceItems(e))),this.traversals.sequence)}traverseSequenceItems(e){return e.canvases&&(e.canvases=e.canvases.map((e=>this.traverseCanvas(e)))),e}traverseCanvas(e){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseCanvasItems(e))),this.traversals.canvas)}traverseCanvasItems(e){return e.images&&(e.images=e.images.map((e=>this.traverseAnnotation(e)))),e.otherContent&&(e.otherContent=e.otherContent.map((e=>this.traverseAnnotationList(e)))),e}traverseRange(e){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseRangeItems(e))),this.traversals.range)}traverseRangeItems(e){if(this.options.mergeMemberProperties){let t=[...(e.ranges||[]).map((e=>"string"==typeof e?{"@id":e,"@type":"sc:Range"}:e)),...(e.canvases||[]).map((e=>"string"==typeof e?{"@id":e,"@type":"sc:Canvas"}:e)),...e.members||[]];delete e.ranges,delete e.canvases,e.members=t.length?t.map((e=>this.traverseUnknown(e))):void 0}return e}traverseAnnotationList(e){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseAnnotationListItems(e))),this.traversals.annotationList)}traverseAnnotationListItems(e){return e.resources&&(e.resources=e.resources.map((e=>this.traverseAnnotation(e)))),e}traverseAnnotation(e){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseAnnotationItems(e))),this.traversals.annotation)}traverseAnnotationItems(e){return e.resource&&(e.resource=this.traverseContentResource(e.resource)),e.on,e}traverseLayer(e){return this.traverseType(this.traverseLinking(this.traverseLayerItems(e)),this.traversals.layer)}traverseLayerItems(e){return e.otherContent&&(e.otherContent=e.otherContent.map((e=>
102this.traverseAnnotationList(e)))),e}traverseChoice(e){return this.traverseType(this.traverseChoiceItems(e),this.traversals.choice)}traverseChoiceItems(e){return e.default&&"rdf:nil"!==e.default&&(e.default=this.traverseContentResource(e.default)),e.item&&"rdf:nil"!==e.item&&(e.item=e.item.map((e=>this.traverseContentResource(e)))),e}traverseService(e){return this.traverseType(this.traverseLinking(e),this.traversals.service)}traverseContentResource(e){return"oa:Choice"===e["@type"]?this.traverseChoice(e):this.traverseType(this.traverseDescriptive(this.traverseLinking(e)),this.traversals.contentResource)}traverseUnknown(e){if(!e["@type"]||"string"==typeof e)return e;switch(sp(e)){case"sc:Collection":return this.traverseCollection(e);case"sc:Manifest":return this.traverseManifest(e);case"sc:Canvas":return this.traverseCanvas(e);case"sc:Sequence":return this.traverseSequence(e);case"sc:Range":return this.traverseRange(e);case"oa:Annotation":return this.traverseAnnotation(e);case"oa:AnnotationList":return this.traverseAnnotationList(e);case"sc:Layer":return this.traverseLayer(e);case"Service":return this.traverseService(e);case"oa:Choice":return this.traverseChoice(e);case"ContentResource":return this.traverseContentResource(e)}return e.profile?this.traverseService(e):e}traverseImageResource(e){let t=Array.isArray(e),n=Array.isArray(e)?e:[e],i=[];for(let r of n)"string"==typeof r?i.push(this.traverseContentResource({"@id":r,"@type":"dctypes:Image"})):i.push(this.traverseContentResource(r));return t||this.options.convertPropsToArray?i:i[0]}traverseDescriptive(e){return e.thumbnail&&(e.thumbnail=this.traverseImageResource(e.thumbnail)),e.logo&&(e.logo=this.traverseImageResource(e.logo)),e}traverseOneOrMoreServices(e){let t=Array.isArray(e),n=Array.isArray(e)?e:[e],i=[];for(let r of n)i.push(this.traverseService(r));return t||this.options.convertPropsToArray?i:i[0]}traverseLinking(e){return e.related&&(e.related=this.traverseOneOrManyType(e.related,this.traversals.contentResource)),e.rendering&&(e.rendering=this.traverseOneOrManyType(e.rendering,this.traversals.contentResource)),e.service&&(e.service=this.traverseOneOrMoreServices(e.service)),e.seeAlso&&(e.seeAlso=this.traverseOneOrManyType(e.seeAlso,this.traversals.contentResource)),e.within&&("string"==typeof e.within||(e.within=this.traverseOneOrManyType(e.within,this.traversals.contentResource))),e.startCanvas&&("string"==typeof e.startCanvas?e.startCanvas=this.traverseType({"@id":e.startCanvas,"@type":"sc:Canvas"},this.traversals.canvas):e.startCanvas&&this.traverseType(e.startCanvas,this.traversals.canvas)),e.contentLayer&&("string"==typeof e.contentLayer?e.contentLayer=this.traverseLayer({"@id":e.contentLayer,"@type":"sc:Layer"}):e.contentLayer=this.traverseLayer(e.contentLayer)),e}traverseOneOrManyType(e,t){if(!Array.isArray(e)){if(!this.options.convertPropsToArray)return this.traverseType(e,t);e=[e]}return e.map((e=>this.traverseType(e,t)))}traverseType(e,t){return t.reduce(((e,t)=>{let n=t(e);return typeof n>"u"&&!this.options.allowUndefinedReturn?e:n}),e)}},"wc"),P),lp="http://library.stanford.edu/iiif/image-api/compliance.html#level1",up="http://library.stanford.edu/iiif/image-api/compliance.html#level2",cp="http://library.stanford.edu/iiif/image-api/conformance.html#level1",dp="http://library.stanford.edu/iiif/image-api/conformance.html#level2",pp="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",hp="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",fp="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",mp="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",gp="http://iiif.io/api/image/1/level1.json",yp="http://iiif.io/api/image/1/profiles/level1.json",vp="http://iiif.io/api/image/1/level2.json",bp="http://iiif.io/api/image/1/profiles/level2.json",_p="http://iiif.io/api/image/2/level1.json",wp="http://iiif.io/api/image/2/profiles/level1.json",Sp="http://iiif.io/api/image/2/level2.json",Cp="http://iiif.io/api/image/2/profiles/level2.json",kp="level1",xp="level2",Tp="http://iiif.io/api/image/2/level1",Ep="http://iiif.io/api/image/2/level2",Ap=[Tp,Ep,lp,up,cp,dp,pp,hp,fp,mp,gp,yp,vp,bp,_p,wp,Sp,Cp,kp,xp],Lp=["http://iiif.io/api/image/2/level0",Tp,Ep,"http://library.stanford.edu/iiif/image-api/compliance.html#level0",lp,up,"http://library.stanford.edu/iiif/image-api/conformance.html#level0",cp,dp,"http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",pp,hp,"http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",fp,mp,"http://iiif.io/api/image/1/level0.json","http://iiif.io/api/image/1/profiles/level0.json",gp,yp,vp,bp,"http://iiif.io/api/image/2/level0.json","http://iiif.io/api/image/2/profiles/level0.json",_p,wp,Sp,Cp,"level0",kp,xp],Ip={attributionLabel:"Attribution",providerId:"http://example.org/provider",providerName:"Unknown"};function $p(e,t="none"){if(!e)return{};let n=Array.isArray(e)?e:[e],i={};for(let r of n){if("string"==typeof r){i[t]=i[t]?i[t]:[],i[t].push(r||"");continue}if(!r["@language"]){i[t]=i[t]?i[t]:[],i[t].push(r["@value"]||"");continue}let e=r["@language"];i[e]=i[e]?i[e]:[],i[e].push(r["@value"]||"")}return i}function Dp(e){return Array.isArray(e)?Dp(e.find((e=>"string"==typeof e))):-1!==Lp.indexOf(e)?"level2":-1!==Ap.indexOf(e)?"level1":"string"==typeof e?e:void 0}function Pp(e){let t=Array.isArray(e)?e:[e];for(let n of t)switch(n){case"http://iiif.io/api/image/2/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2":return"ImageService2";case"http://iiif.io/api/image/1/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/context.json":return"ImageService1";case"http://iiif.io/api/annex/openannotation/context.json":return"ImageApiSelector"}}function Op(e){switch(e){case"http://iiif.io/api/image/2/level0.json":case"http://iiif.io/api/image/2/level1.json":case"http://iiif.io/api/image/2/level2.json":return"ImageService2";case"http://iiif.io/api/auth/1/kiosk":case"http://iiif.io/api/auth/1/login":case"http://iiif.io/api/auth/1/clickthrough":case"http://iiif.io/api/auth/1/external":case"http://iiif.io/api/auth/0/kiosk":case"http://iiif.io/api/auth/0/login":case"http://iiif.io/api/auth/0/clickthrough":case"http://iiif.io/api/auth/0/external":return"AuthCookieService1";case"http://iiif.io/api/auth/1/token":case"http://iiif.io/api/auth/0/token":return"AuthTokenService1";case"http://iiif.io/api/auth/1/logout":case"http://iiif.io/api/auth/0/logout":return"AuthLogoutService1";case"http://iiif.io/api/search/1/search":case"http://iiif.io/api/search/0/search":return"SearchService1";case"http://iiif.io/api/search/1/autocomplete":case"http://iiif.io/api/search/0/autocomplete":return"AutoCompleteService1"}}function Mp(e){return Array.isArray(e)?e:[e]}function Rp(e){for(let t of["sc","oa","dcterms","dctypes","iiif"])if(e.startsWith(`${t}:`))return e.slice(t.length+1);return e}H($p,"qr"),H(Dp,"L0"),H(Pp,"II"),H(Op,"TI"),H(Mp,"OI"),H(Rp,"kI");var Np=["Collection","Manifest","Annotation","AnnotationPage","Range","Service"];function Fp(e){let t=e["@id"]||e.id,n=e["@type"]||e.type,i=e.profile||void 0,r=e["@context"]||void 0;if(i){let e=Op(i);if(e)return e}if(r){let e=Pp(r);if(e)return e}if(n){if(Array.isArray(n)){if(-1!==n.indexOf("oa:CssStylesheet"))return"CssStylesheet";if(-1!==n.indexOf("cnt:ContentAsText"))return"TextualBody";n=n[0]}for(let e of["sc","oa","dcterms","dctypes","iiif"])if(n.startsWith(`${e}:`)){n=n.slice(e.length+1);break}switch(n){case"Layer":return"AnnotationCollection";case"AnnotationList":return"AnnotationPage";case"cnt:ContentAsText":return"TextualBody"}}if(n&&-1!==Np.indexOf(n))return n;if(e.format){if(e.format.startsWith("image/"))return"Image";if(e.format.startsWith("text/")||"application/pdf"===e.format)return"Text";if(e.format.startsWith("application/"))return"Dataset"}return t&&(t.endsWith(".jpg")||t.endsWith(".png")||t.endsWith(".jpeg"))?"Image":n||"unknown"}H(Fp,"Cd");var Bp=/http(s)?:\/\/(creativecommons.org|rightsstatements.org)[^"'\\<\n]+/gm;function Hp(e){let t=e.match(Bp);return t?t[0]:e}function jp(e,t="Rights/License",n="none"){let i=null,r=[],a=Array.isArray(e)?e:[e];for(let s of a){let e=s?Hp(s):void 0;!e||-1===e.indexOf("creativecommons.org")&&-1===e.indexOf("rightsstatements.org")?e&&r.push({label:{[n]:[t]},value:{[n]:[e]}}):i=e.startsWith("https://")?`http://${e.slice(8)}`:e}return[i,r]}H(Hp,"zI"),H(jp,"LI");var Up=["http://iiif.io/api/presentation/2/context.json","http://iiif.io/api/image/2/context.json","http://iiif.io/api/image/1/context.json","http://library.stanford.edu/iiif/image-api/1.1/context.json","http://iiif.io/api/search/1/context.json","http://iiif.io/api/search/0/context.json","http://iiif.io/api/auth/1/context.json","http://iiif.io/api/auth/0/context.json","http://iiif.io/api/annex/openannotation/context.json"];function Vp(e){if(e){let t=Array.isArray(e)?e:[e],n=[];for(let e of t)"http://iiif.io/api/presentation/2/context.json"===e&&n.push("http://iiif.io/api/presentation/3/context.json"),-1===Up.indexOf(e)&&n.push(e);if(t.length)return 1===n.length?n[0]:n}}function qp(e){return e?e.map((e=>({label:$p(e.label),value:$p(e.value)}))):[]}function zp(e){for(let t in e)(typeof e[t]>"u"||null===e[t])&&delete e[t];return e}H(Vp,"DI"),H(qp,"jI"),H(zp,"Fi");var Wp=0;function Gp(e,t){let n=encodeURI(e.id||e["@id"]||"").trim();return n&&t?`${n}/${t}`:n||(Wp++,`http://example.org/${e["@type"]}${t?`/${t}`:""}/${Wp}`)}function Kp(e){let t=[...e.behavior||[]];return e.viewingHint&&t.push(e.viewingHint),{"@context":e["@context"]?Vp(e["@context"]):void 0,id:(e["@id"]||Gp(e)).trim(),type:Fp(e),behavior:t.length?t:void 0,height:e.height?e.height:void 0,width:e.width?e.width:void 0,motivation:e.motivation?Rp(e.motivation):void 0,viewingDirection:e.viewingDirection,profile:e.profile,format:e.format?e.format:void 0,duration:void 0,timeMode:void 0}}function Yp(e){let[t,n]=jp(e.license),i=[...e.metadata?qp(e.metadata):[],...n];return{rights:t,metadata:i.length?i:void 0,label:e.label?$p(e.label):void 0,requiredStatement:e.attribution?{label:$p(Ip.attributionLabel),value:$p(e.attribution)}:void 0,navDate:e.navDate,summary:e.description?$p(e.description):void 0,thumbnail:e.thumbnail}}function Zp(e){if(!e.within)return;let t=Array.isArray(e.within)?e.within:[e.within],n=[];for(let i of t)if("string"==typeof i){if(i&&"sc:Manifest"===e["@type"])n.push({id:i,type:"C
102ollection"})}else i["@id"]&&n.push({id:i["@id"],type:Fp(i)});return n.length?n:void 0}function Xp(e){let t=e.related?Array.isArray(e.related)?e.related:[e.related]:[],n=e.contentLayer;return{provider:e.logo||t.length?[{id:Ip.providerId,type:"Agent",homepage:t.length?[t[0]]:void 0,logo:e.logo?Array.isArray(e.logo)?e.logo:[e.logo]:void 0,label:$p(Ip.providerName)}]:void 0,partOf:Zp(e),rendering:e.rendering,seeAlso:e.seeAlso,start:e.startCanvas,service:e.service?Mp(e.service):void 0,supplementary:n?[n]:void 0}}function Qp(e){return zp(ae(re(re(re({},Kp(e)),Yp(e)),Xp(e)),{items:e.members}))}function Jp(e){let t=[],n=[];for(let r of e.sequences||[])r.canvases.length&&t.push(...r.canvases),r.behavior&&n.push(...r.behavior);let i=Kp(e);return n.length&&(i.behavior?i.behavior.push(...n):i.behavior=n),zp(ae(re(re(re({},i),Yp(e)),Xp(e)),{items:t,structures:e.structures}))}function eh(e){return zp(ae(re(re(re({},Kp(e)),Yp(e)),Xp(e)),{items:e.images&&e.images.length?[{id:Gp(e,"annotation-page"),type:"AnnotationPage",items:e.images}]:void 0}))}function th(e){return zp(ae(re(re(re({},Kp(e)),Yp(e)),Xp(e)),{items:e.resources}))}function nh(e){return e.canvases&&0!==e.canvases.length?{canvases:e.canvases,behavior:e.viewingHint?[e.viewingHint]:[]}:{canvases:[],behavior:[]}}function ih(e){return zp(ae(re(re(re({},Kp(e)),Yp(e)),Xp(e)),{target:"string"==typeof e.on?encodeURI(e.on).trim():e.on,body:e.resource}))}function rh(e){let t=e;return zp(re(re(re({},Kp(t)),Yp(t)),Xp(t)))}function ah(e){let t=[];return e.default&&"rdf:nil"!==e.default&&t.push(e.default),e.item&&"rdf:nil"!==e.item&&t.push(...e.item),ae(re(re({},Kp(e)),Yp(e)),{items:t})}function sh(e){return zp(ae(re(re(re({},Kp(e)),Yp(e)),Xp(e)),{items:e.members}))}function oh(e){let t=e,{"@id":n,"@type":i,"@context":r,profile:a}=t,s=oe(t,["@id","@type","@context","profile"]);return n&&(s.id=n),s.type=Fp(e),"unknown"===s.type&&(s.type="Service"),a&&(s.profile=Dp(a)),zp(re(re({},s),Yp(s)))}function lh(e){return zp(re(re(re({},Kp(e)),Yp(e)),Xp(e)))}H(Gp,"N0"),H(Kp,"zi"),H(Yp,"yi"),H(Zp,"BI"),H(Xp,"ur"),H(Qp,"WI"),H(Jp,"$I"),H(eh,"UI"),H(th,"HI"),H(nh,"VI"),H(ih,"qI"),H(rh,"QI"),H(ah,"GI"),H(sh,"YI"),H(oh,"KI"),H(lh,"XI");var uh=new op({collection:[Qp],manifest:[Jp],canvas:[eh],annotationList:[th],sequence:[nh],annotation:[ih],contentResource:[rh],choice:[ah],range:[sh],service:[oh],layer:[lh]});function ch(e){return e&&e["@context"]&&("http://iiif.io/api/presentation/2/context.json"===e["@context"]||-1!==e["@context"].indexOf("http://iiif.io/api/presentation/2/context.json")||"http://www.shared-canvas.org/ns/context.json"===e["@context"])||"http://iiif.io/api/image/2/context.json"===e["@context"]?uh.traverseUnknown(e):e}function dh(){return{Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}}}function ph(e,t){if("string"==typeof e)return{id:e,type:t};if(!e.id)throw new Error(`Invalid resource does not have an ID (${t})`);return e}function hh(e){return(t,n)=>{let i=e[t]?e[t]:{};return e=>{let r=ph(e,n||t);return r&&r.id&&t?(i[r.id]=i[r.id]?Object.assign({},i[r.id],r):Object.assign({},r),{id:r.id,type:"ContentResource"===t?t:r.type}):r}}}function fh(e){return(t,n)=>i=>{let{id:r,type:a}=ph(i,n||t);if(typeof r>"u")throw new Error("Found invalid entity without an ID.");return e[r]="ContentResource"===t?t:a,i}}function mh(e){let t=JSON.stringify(e),n=5381,i=t.length;for(;i;)n=33*n^t.charCodeAt(--i);let r=(n>>>0).toString(16);return r.length%2?"0"+r:r}function gh(e){return t=>"string"==typeof t?{id:t,type:e}:t.id?t.type?t:re({type:e},t):re({id:mh(t),type:e},t)}function yh(e){return t=>re(re({},e),t)}function vh(e){return Array.isArray(e)?e:[e]}function bh(e){return e.body&&(e.body=vh(e.body)),e.seeAlso&&(e.seeAlso=vh(e.seeAlso)),e.body&&(e.body=vh(e.body)),e.audience&&(e.audience=vh(e.audience)),e.accessibility&&(e.accessibility=vh(e.accessibility)),e.motivation&&(e.motivation=vh(e.motivation)),e}function _h(e){let t=ch(e),n={Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}},i={},r=hh(n),a=fh(i);return{entities:n,resource:new rp({collection:[yh(Qd),a("Collection"),r("Collection")],manifest:[yh(Jd),a("Manifest"),r("Manifest")],canvas:[yh(Xd),a("Canvas"),r("Canvas")],annotationPage:[gh("AnnotationPage"),yh(Zd),a("AnnotationPage"),r("AnnotationPage")],annotation:[gh("Annotation"),bh,a("Annotation"),r("Annotation")],contentResource:[gh("ContentResource"),a("ContentResource"),r("ContentResource")],range:[yh(ep),a("Range","Canvas"),r("Range","Canvas")],agent:[yh(tp),a("Agent"),r("Agent")]}).traverseUnknown(t),mapping:i}}H(ch,"JI"),H(dh,"eT"),H(ph,"D0"),H(hh,"tT"),H(fh,"nT"),H(mh,"iT"),H(gh,"bd"),H(yh,"Ds"),H(vh,"js"),H(bh,"rT"),H(_h,"xc");var wh="__$UNSET$__",Sh="__$UNWRAP$__";function Ch(e,t){let n=e.requests[t],i=e.mapping[t];if(i&&(!n||!n.resourceUri||e.entities[i][n.resourceUri]))return e.entities[i][n?n.resourceUri:t]}function kh(e){let t={};for(let[n,i]of e){if(n===Sh&&i!==wh)return i;i!==wh&&typeof i<"u"&&null!==i&&(t[n]=i)}return t}function xh(e,t,n){if(!t.type||!t.id)throw new Error("Unknown entity");if(!n[t.type])throw new Error(`Serializer not found for ${t.type}`);function i(r){let a=n[r.type];if(!a)return wh;let s=Ch(e,r.id)||(r.id&&r.type?r:null);if(!s)return wh;
102let o=a(s,e,{isTopLevel:t.id===r.id}),l=o.next();for(;!l.done;){let e=l.value,t=wh;if(e)if(Array.isArray(e)){let n=[];for(let t of e)n.push(i(t));t=n}else t=i(e);l=o.next(t)}return l.value===wh?wh:kh(l.value)}return H(i,"i"),i(t)}function Th(e){if(!e)return;let t=Object.keys(e);if(0!==t.length){if(1===t.length){let n=t[0];if(!n)return"";let i=(e[n]||[]).join("");return"@none"===n||"none"===n||"en"===n?i:{"@language":n,"@value":i}}return t.map((t=>({"@language":t,"@value":(e[t]||[]).join("")})))}}function Eh(e){return Array.isArray(e)?e.map((e=>Eh(e))):"string"==typeof e?e:e.type&&"Canvas"===e.type?e.id:e}function Ah(e,t=!1){if(e)return e.length>1&&!t?e:e[0]||void 0}function Lh(e){if(e){if("string"==typeof e)return{"@id":e};if("@id"in e){let t=re({},e);return delete t["@type"],t}return{"@context":"http://iiif.io/api/image/2/context.json","@id":e.id,profile:`http://iiif.io/api/image/2/profiles/${e.profile}.json`}}}function Ih(e,t){return[["@id",e.id],["@type",t],["format",e.format],["height",e.height],["width",e.width],["viewingDirection","left-to-right"!==e.viewingDirection?e.viewingDirection:void 0]]}function*$h(e){let t=e.provider?yield e.provider[0]:void 0;return[["label",Th(e.label)],["metadata",e.metadata&&e.metadata.length?e.metadata.map((e=>({label:Th(e.label)||"",value:Th(e.value)||""}))):void 0],["description",Th(e.summary)],["thumbnail",Ah(yield e.thumbnail)],["navDate",e.navDate],["logo",t?Ah(t.logo):void 0],["homepage",t?t.homepage:void 0],["attribution",e.requiredStatement?Th(e.requiredStatement.value):void 0]]}function*Dh(e){return[["seeAlso",Ah(yield e.seeAlso)],["service",Ah((e.service||[]).map(Lh))],["rendering",Ah(yield e.rendering)],["startCanvas",e.start?e.start.id:void 0]]}H(Ch,"sT"),H(kh,"oT"),H(xh,"Sc"),H(Th,"Bs"),H(Eh,"B0"),H(Ah,"cr"),H(Lh,"aT"),H(Ih,"Br"),H($h,"Wr"),H(Dh,"ia");var Ph={Manifest:H((function*(e){return[...Ih(e,"sc:Manifest"),...yield*W($h(e)),...yield*W(Dh(e)),["sequences",[{"@id":`${e.id}/sequence0`,"@type":"sc:Sequence",canvases:yield e.items}]],["structures",yield e.structures]]}),"Manifest"),Canvas:H((function*(e){let t=(yield e.items)[0];return[...Ih(e,"sc:Canvas"),...yield*W($h(e)),...yield*W(Dh(e)),["images",t?[t.resources]:void 0],["annotations",e.annotations&&e.annotations.length?Ah(yield e.annotations):void 0]]}),"Canvas"),AnnotationPage:H((function*(e){return[...Ih(e,"sc:AnnotationList"),...yield*W($h(e)),["resources",e.items&&e.items.length?Ah(yield e.items):void 0]]}),"AnnotationPage"),Annotation:H((function*(e){return[["@id",e.id],["@type","oa:Annotation"],["motivation","sc:painting"],["on",Eh(e.target)],["resource",Ah(yield e.body,!0)]]}),"Annotation"),ContentResource:H((function*(e){return"Image"===e.type?[...Ih(e,"dctypes:Image"),...yield*W($h(e)),...yield*W(Dh(e))]:[...Ih(e,void 0),...yield*W($h(e))]}),"ContentResource"),AnnotationCollection:H((function*(e){return[["@id",e.id],["@type","sc:Layer"],["label",Th(e.label)]]}),"AnnotationCollection"),Collection:H((function*(e){return[...Ih(e,"sc:Collection"),...yield*W($h(e)),...yield*W(Dh(e)),["members",yield*W(e.items)]]}),"Collection"),Range:H((function*(e){let t=[],n=[];if(e.items)for(let i of e.items){let r=yield i;t.push({"@id":i.id,"@type":i.type,label:r?r.label:void 0,within:e.id}),"Canvas"===i.type&&n.push(i.id)}return[...Ih(e,"sc:Range"),...yield*W($h(e)),...yield*W(Dh(e)),["canvases",n.length===t.length?n:void 0],["members",n.length!==t.length?t:void 0]]}),"Range")};function Oh(e){return[["id",e.id],["type",e.type],["format",e.format],["profile",e.profile],["height",e.height],["width",e.width],["duration",e.duration||void 0],["viewingDirection","left-to-right"!==e.viewingDirection?e.viewingDirection:void 0],["behavior",e.behavior&&e.behavior.length?e.behavior:void 0],["timeMode",e.timeMode],["motivation",e.motivation]]}function Mh(e){if(e&&0!==e.length)return e}function Rh(e){if(e&&e.type&&"ImageService2"===e.type){let t=e,{id:n,type:i,profile:r}=t,a=oe(t,["id","type","profile"]);return re({"@id":n,"@type":i,profile:r.startsWith("http")?r:`http://iiif.io/api/image/2/${r}.json`},a)}return e}function Nh(e){if(e&&0!==e.length)return e.map(Rh)}function*Fh(e){return[["label",e.label],["metadata",Mh(e.metadata)],["summary",e.summary],["requiredStatement",e.requiredStatement],["rights",e.rights],["navDate",e.navDate],["language",e.language],["thumbnail",Mh(yield e.thumbnail)],["placeholderCanvas",yield e.placeholderCanvas],["accompanyingCanvas",yield e.accompanyingCanvas],["provider",Mh(yield e.provider)]]}function*Bh(e){return[["seeAlso",Mh(yield e.seeAlso)],["service",Nh(e.service)],["services",Nh(e.services)],["rendering",Mh(yield e.rendering)],["supplementary",Mh(yield e.supplementary)],["homepage",Mh(yield e.homepage)],["logo",Mh(yield e.logo)],["partOf",Mh(yield e.partOf)],["start",e.start]]}H(Oh,"$r"),H(Mh,"$t"),H(Rh,"W0"),H(Nh,"g0"),H(Fh,"Ur"),H(Bh,"Hr");var Hh={Manifest:H((function*(e,t,{isTopLevel:n}){return n?[["@context","http://iiif.io/api/presentation/3/context.json"],...Oh(e),...yield*W(Fh(e)),...yield*W(Bh(e)),["items",yield e.items],["structures",Mh(yield e.structures)],["annotations",Mh(yield e.annotations)]]:[...Oh(e),...yield*W(Fh(e))]}),"Manifest"),Canvas:H((function*(e){return[...Oh(e),...yield*W(Fh(e)),...yield*W(Bh(e)),["items",yield e.items],["annotations",Mh(yield e.annotations)]]}),"Canvas"),Agent:H((function*(e){return[["id",e.id],["type","Agent"],["label",e.label],...yield*W(Bh(e))]}),"Agent"),AnnotationPage:H((function*(e){return[...Object.entries(e).map((([e,t])=>[e,Array.isArray(t)?Mh(t):t])).filter((([e,t])=>"items"!==e)),...yield*W(Bh(e)),["items",yield e.items]]}),"AnnotationPage"),Service:H((function*(e){return[[Sh,Rh(e)]]}),"Service"),Annotation:H((function*(e){return[...Object.entries(e).map((([e,t])=>[e,Array.isArray(t)?Mh(t):t])).filter((([e])=>"body"!==e)),["body",yield e.body]]}),"Annotation"),ContentResource:H((function*(e){return[...Oh(e),...yield*W(Fh(e)),...yield*W(Bh(e)),["annotations",Mh(yield e.annotations)]]}),"ContentResource"),AnnotationCollection:H((function*(e){return[["id",e.id],["type","AnnotationCollection"],["label",e.label]]}),"AnnotationCollection"),Collection:H((function*(e,t,{isTopLevel:n}){return n?[["@context","http://iiif.io/api/presentation/3/context.json"],...Oh(e),...yield*W(Fh(e)),...yield*W(Bh(e)),["items",Mh(yield e.items)]]:[...Oh(e),...yield*W(Fh(e))]}),"Collection"),Range:H((function*(e){let t=[];for(let n of e.items)"Range"===n.type?t.push(yield n):t.push(n);return[...Oh(e),...yield*W(Fh(e)),...yield*W(Bh(e)),["items",t],["annotations",Mh(yield e.annotations)]]}),"Range")}
102,jh=pe(Ln(),1);function Uh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function qh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vh(Object(n),!0).forEach((function(t){Uh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zh(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}H(Uh,"Ad"),H(Vh,"U0"),H(qh,"Ac"),H(zh,"Jt");var Wh="function"==typeof Symbol&&Symbol.observable||"@@observable",Gh=H((function(){return Math.random().toString(36).substring(7).split("").join(".")}),"Rd"),Kh={INIT:"@@redux/INIT"+Gh(),REPLACE:"@@redux/REPLACE"+Gh(),PROBE_UNKNOWN_ACTION:H((function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Gh()}),"PROBE_UNKNOWN_ACTION")};function Yh(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Zh(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(zh(0));if("function"==typeof t&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if("function"!=typeof n)throw new Error(zh(1));return n(Zh)(e,t)}if("function"!=typeof e)throw new Error(zh(2));var r=e,a=t,s=[],o=s,l=!1;function u(){o===s&&(o=s.slice())}function c(){if(l)throw new Error(zh(3));return a}function d(e){if("function"!=typeof e)throw new Error(zh(4));if(l)throw new Error(zh(5));var t=!0;return u(),o.push(e),function(){if(t){if(l)throw new Error(zh(6));t=!1,u();var n=o.indexOf(e);o.splice(n,1),s=null}}}function p(e){if(!Yh(e))throw new Error(zh(7));if(typeof e.type>"u")throw new Error(zh(8));if(l)throw new Error(zh(9));try{l=!0,a=r(a,e)}finally{l=!1}for(var t=s=o,n=0;n<t.length;n++){(0,t[n])()}return e}function h(e){if("function"!=typeof e)throw new Error(zh(10));r=e,p({type:Kh.REPLACE})}function f(){var e,t=d;return(e={subscribe:H((function(e){if("object"!=typeof e||null===e)throw new Error(zh(11));function n(){e.next&&e.next(c())}return H(n,"P"),n(),{unsubscribe:t(n)}}),"subscribe")})[Wh]=function(){return this},e}return H(u,"p"),H(c,"d"),H(d,"m"),H(p,"y"),H(h,"x"),H(f,"w"),p({type:Kh.INIT}),(i={dispatch:p,subscribe:d,getState:c,replaceReducer:h})[Wh]=f,i}function Xh(e){Object.keys(e).forEach((function(t){var n=e[t];if(typeof n(void 0,{type:Kh.INIT})>"u")throw new Error(zh(12));if(typeof n(void 0,{type:Kh.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(zh(13))}))}function Qh(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var r=t[i];"function"==typeof e[r]&&(n[r]=e[r])}var a,s=Object.keys(n);try{Xh(n)}catch(o){a=o}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var i=!1,r={},o=0;o<s.length;o++){var l=s[o],u=n[l],c=e[l],d=u(c,t);if(typeof d>"u")throw t&&t.type,new Error(zh(14));r[l]=d,i=i||d!==c}return(i=i||s.length!==Object.keys(e).length)?r:e}}function Jh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function ef(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),i=H((function(){throw new Error(zh(15))}),"s"),r={getState:n.getState,dispatch:H((function(){return i.apply(void 0,arguments)}),"dispatch")},a=t.map((function(e){return e(r)}));return i=Jh.apply(void 0,a)(n.dispatch),qh(qh({},n),{},{dispatch:i})}}}H(Yh,"lT"),H(Zh,"ra"),H(Xh,"cT"),H(Qh,"Ws"),H(Jh,"Li"),H(ef,"$s");var tf="@iiif/IMPORT_ENTITIES",nf="@iiif/MODIFY_ENTITY_FIELD",rf="@iiif/REORDER_ENTITY_FIELD",af="@iiif/ADD_REFERENCE",sf="@iiif/REMOVE_REFERENCE",of=(0,jh.createAction)(tf)(),lf=(0,jh.createAction)(nf)(),uf=(0,jh.createAction)(rf)(),cf=(0,jh.createAction)(af)(),df=(0,jh.createAction)(sf)(),pf={importEntities:of,modifyEntityField:lf,reorderEntityField:uf,addReference:cf,removeReference:df},hf="@iiif/ADD_MAPPING",ff="@iiif/ADD_MAPPINGS",mf=(0,jh.createAction)(hf)(),gf=(0,jh.createAction)(ff)(),yf="@iiif/SET_META_VALUE",vf="@iiif/SET_META_VALUE_DYNAMIC",bf="@iiif/UNSET_META_VALUE",_f={setMetaValue:(0,jh.createAction)(yf)(),setMetaValueDynamic:(0,jh.createAction)(vf)(),unsetMetaValue:(0,jh.createAction)(bf)()},wf="RESOURCE_ERROR",Sf="RESOURCE_LOADING",Cf="RESOURCE_READY",kf="@iiif/REQUEST_RESOURCE",xf="@iiif/REQUEST_ERROR",Tf="@iiif/REQUEST_MISMATCH",
102Ef="@iiif/REQUEST_COMPLETE",Af="@iiif/REQUEST_OFFLINE_RESOURCE",Lf=(0,jh.createAction)(kf)(),If=(0,jh.createAction)(xf)(),$f=(0,jh.createAction)(Tf)(),Df=(0,jh.createAction)(Ef)();(0,jh.createAction)(Af)();var Pf="@iiif/BATCH",Of="@iiif/BATCH_IMPORT",Mf=(0,jh.createAction)(Pf)();(0,jh.createAction)(Of)();var Rf=H(((e,t)=>{let{entities:n,resource:i,mapping:r}=_h(t);if(void 0===i.id)return[If({id:e,message:"ID is not defined in resource."})];let a=[of({entities:n}),gf({mapping:r})];return i.id!==e&&(a.push(mf({id:e,type:i.type})),a.push($f({requestId:e,actualId:i.id}))),a.push(Df({id:e})),a}),"bT"),Nf=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ff(e,t){return!!(e===t||Nf(e)&&Nf(t))}function Bf(e,t){if(!Array.isArray(e)||!Array.isArray(t))return e===t;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Ff(e[n],t[n]))return!1;return!0}function Hf(e,t){let n=e.iiif.requests[t],i=e.iiif.mapping[t];if(i&&e.iiif.entities[i][n.resourceUri])return e.iiif.entities[i][n.resourceUri]}function jf(e,t,{waitTimeout:n=30}={}){return(i,r)=>V(this,null,(function*(){let a=e.getState(),s=a.iiif.requests[i];if(s)switch(s.loadingState){case wf:break;case Sf:{let t,r=!1;try{let a=yield Promise.race([new Promise(((n,a)=>{r||(t=e.subscribe((()=>{let t=e.getState();if(t.iiif.requests[i].loadingState!==wf){if(t.iiif.requests[i].loadingState===Cf){let e=Hf(t,i);e?n(e):a()}}else a()})))})),new Promise(((e,t)=>setTimeout((()=>{r=!0,t()}),60*n)))]);if(t&&t(),a)return a}catch(o){t&&t();break}break}case Cf:{let e=Hf(a,i);if(e)return e;break}}e.dispatch(Lf({id:i}));try{let n=yield t(i,r);!n.id&&!n["@id"]&&(n["@type"]&&(n["@id"]=i),n.id=i);let a=Rf(i,n);return e.dispatch(Mf({actions:a})),Hf(e.getState(),i)}catch(l){throw e.dispatch(If({id:i,message:l.toString()})),l}}))}function Uf(){return{Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}}}H(Ff,"ET"),H(Bf,"Q0"),H(Hf,"Pd"),H(jf,"G0"),H(Uf,"CT");var Vf=H(((e={},t)=>{switch(t.type){case hf:return ae(re({},e),{[t.payload.id]:t.payload.type});case ff:return re(re({},e),t.payload.mapping);default:return e}}),"AT");function qf(e,t,n,i){return!!(e[n]&&e[n][t]&&e[n][t][i]&&Array.isArray(e[n][t][i]))}H(qf,"Id");var zf=H(((e={Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}},t)=>{var n;switch(t.type){case nf:{if(!e[t.payload.type]||!e[t.payload.type][t.payload.id])return e;let n=e[t.payload.type][t.payload.id];return"string"==typeof n?e:ae(re({},e),{[t.payload.type]:ae(re({},e[t.payload.type]),{[t.payload.id]:ae(re({},n),{[t.payload.key]:t.payload.value})})})}case rf:{if(!qf(e,t.payload.id,t.payload.type,t.payload.key))return e;let n=e[t.payload.type][t.payload.id];if("string"==typeof n)return e;let i=Array.from(n[t.payload.key]),[r]=i.splice(t.payload.startIndex,1);return i.splice(t.payload.endIndex,0,r),ae(re({},e),{[t.payload.type]:ae(re({},e[t.payload.type]),{[t.payload.id]:ae(re({},n),{[t.payload.key]:i})})})}case tf:{let n=Object.keys(t.payload.entities),i=re({},e);for(let r of n)i[r]=re(re({},e[r]||{}),t.payload.entities[r]||{});return i}case af:{if(!qf(e,t.payload.id,t.payload.type,t.payload.key))return e;let n=e[t.payload.type][t.payload.id],i=Array.from(n[t.payload.key]);return i.splice(t.payload.index||i.length+1,0,t.payload.reference),ae(re({},e),{[t.payload.type]:ae(re({},e[t.payload.type]),{[t.payload.id]:ae(re({},n),{[t.payload.key]:i})})})}case sf:{if(!qf(e,t.payload.id,t.payload.type,t.payload.key))return e;let i=e[t.payload.type][t.payload.id],r=Array.from(i[t.payload.key]),a=t.payload.index||r.findIndex((e=>e&&e.id===t.payload.reference.id));return-1===a||(null==(n=r[a])?void 0:n.id)!==t.payload.reference.id?e:(r.splice(a,1),ae(re({},e),{[t.payload.type]:ae(re({},e[t.payload.type]),{[t.payload.id]:ae(re({},i),{[t.payload.key]:r})})}))}default:return e}}),"RT"),Wf=H(((e={},t)=>{switch(t.type){case kf:case Af:return ae(re({},e),{[t.payload.id]:{requestUri:t.payload.id,loadingState:Sf,uriMismatch:!1,resourceUri:t.payload.id}});case Tf:return ae(re({},e),{[t.payload.requestId]:ae(re({},e[t.payload.requestId]||{}),{uriMismatch:!0,resourceUri:t.payload.actualId}),[t.payload.actualId]:{requestUri:t.payload.requestId,loadingState:e[t.payload.requestId].loadingState,uriMismatch:!0,resourceUri:t.payload.actualId}});case xf:return ae(re({},e),{[t.payload.id]:ae(re({},e[t.payload.id]||{}),{loadingState:wf,error:t.payload.message})});case Ef:return ae(re({},e),{[t.payload.id]:ae(re({},e[t.payload.id]||{}),{loadingState:Cf,error:void 0})})}return e}),"PT"),Gf=H(((e={},t)=>
102{let{id:n,updateValue:i,value:r,meta:a,key:s}=t&&t.payload||{};switch(t.type){case yf:return ae(re({},e),{[n]:ae(re({},e[n]||{}),{[a]:ae(re({},e[n]&&e[n][a]||{}),{[s]:r})})});case vf:return ae(re({},e),{[n]:ae(re({},e[n]||{}),{[a]:ae(re({},e[n]&&e[n][a]||{}),{[s]:e[n]&&e[n][a]?i(e[n][a][s]):i(void 0)})})});case bf:return e[n]&&e[n][a]&&e[n][a][s]?ae(re({},e),{[n]:ae(re({},e[n]||{}),{[a]:ae(re({},e[n]&&e[n][a]||{}),{[s]:void 0})})}):e;default:return e}}),"IT");function Kf(e){return(t,n)=>n&&n.type===Pf?n.payload.actions.reduce(e,t):n&&n.type===Of?n.payload.state:e(t,n)}H(Kf,"TT");var Yf=Qh({mapping:Vf,entities:zf,requests:Wf,meta:Gf}),Zf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Jh;function Xf(e={}){let{enableDevtools:t=!0,iiifStoreName:n="iiif",defaultState:i={},extraMiddleware:r=[],customReducers:a={}}=e;return Zh(Kf(Qh(re({[n]:Yf},a))),i,t?Zf(ef(...r)):Jh(ef(...r)))}function Qf(e){return{all:e=e||new Map,on:H((function(t,n){var i=e.get(t);i?i.push(n):e.set(t,[n])}),"on"),off:H((function(t,n){var i=e.get(t);i&&(n?i.splice(i.indexOf(n)>>>0,1):e.set(t,[]))}),"off"),emit:H((function(t,n){var i=e.get(t);i&&i.slice().map((function(e){e(n)})),(i=e.get("*"))&&i.slice().map((function(e){e(t,n)}))}),"emit")}}H(Xf,"MT"),H(Qf,"FT");var Jf=(H(O=class{constructor(e,t){fe(this,"options"),fe(this,"store"),fe(this,"emitter"),fe(this,"isBatching",!1),fe(this,"batchQueue",[]),fe(this,"remoteFetcher"),fe(this,"staticFetcher"),fe(this,"defaultFetcher",(e=>fetch(e).then((e=>e.json())))),fe(this,"middleware",(e=>t=>n=>{if(n.type===Pf){for(let t of n.payload.actions)this.emitter.emit(t.type,{realAction:t,state:e.getState()});let i=t(n);for(let e of n.payload.actions)this.emitter.emit(`after:${n.type}`,{action:n,state:i});return i}this.emitter.emit(n.type,{action:n,state:e.getState()});let i=t(n);return this.emitter.emit(`after:${n.type}`,{action:n,state:i}),i})),this.options=Object.assign({reducers:{},middleware:[],defaultState:{},customFetcher:this.defaultFetcher,enableDevtools:!0},e||{}),this.store=t||Xf({customReducers:this.options.reducers,extraMiddleware:[...this.options.middleware,this.middleware],defaultState:this.options.defaultState,enableDevtools:this.options.enableDevtools}),this.emitter=Qf(),this.remoteFetcher=jf(this.store,this.options.customFetcher),this.staticFetcher=jf(this.store,((e,t)=>t))}batch(e){this.isBatching=!0;try{e(this),this.store.dispatch(Mf({actions:this.batchQueue}))}catch(t){throw this.batchQueue=[],this.isBatching=!1,t}this.batchQueue=[],this.isBatching=!1}asyncBatch(e){return V(this,null,(function*(){this.isBatching=!0;try{yield e(this),this.store.dispatch(Mf({actions:this.batchQueue}))}catch(t){throw this.batchQueue=[],this.isBatching=!1,t}this.batchQueue=[],this.isBatching=!1}))}modifyEntityField(e,t,n){this.dispatch(pf.modifyEntityField({id:e.id,type:e.type,key:t,value:n}))}dispatch(e){this.isBatching?this.batchQueue.push(e):this.store.dispatch(e)}serialize(e,t){return xh(this.getState().iiif,e,t)}toPresentation2(e){return this.serialize(e,Ph)}toPresentation3(e){return this.serialize(e,Hh)}hydrate(e,t){return this.get(e,t,{skipSelfReturn:!1})}get(e,t,n={}){"string"!=typeof t&&(n=t||{},t=void 0);let{skipSelfReturn:i=!0}=n||{};if(Array.isArray(e))return e.map((e=>this.get(e,n)));let r=this.getState();if("string"==typeof e){let n=t||r.iiif.mapping[e];if(!n)return i?null:{id:e,type:"unknown"};e={id:e,type:n}}let a=t||e.type,s=e.id,o=r.iiif.entities[a];if(!o){let t=r.iiif.requests[s];return t&&t.resourceUri!==s?this.get(t.resourceUri,n):i?null:e}return o[e.id]||(i?null:e)}select(e){return e(this.getState())}getStore(){return this.store}getState(){return this.store.getState()}loadManifest(e,t){let n="string"==typeof e?e:e.id;return this.load(n,t)}loadCollection(e,t){let n="string"==typeof e?e:e.id;return this.load(n,t)}load(e,t){let n="string"==typeof e?e:e.id;return t?this.staticFetcher(n,t):this.remoteFetcher(n)}areInputsEqual(e,t){return Bf(e,t)}subscribe(e,t,n){typeof n>"u"&&(typeof t>"u"||!1===t||!0===t)&&(n=t,t=e,e=H((e=>e),"e"));let i=n?null:e(this.store.getState());return n||t(i,this),this.store.subscribe((()=>{let n=this.store.getState(),r=e(n);Bf(i,r)||t(r,this),i=r}))}ensureLoaded(e){return V(this,null,(function*(){let t="string"==typeof e?e:e.id;this.requestStatus(t)||(yield this.load(t))}))}requestStatus(e){return this.select((t=>t.iiif.requests[e]))}getResourceMeta(e,t){let n=this.getState().iiif.meta[e];if(n)return t?n[t]:n}setMetaValue([e,t,n],i){this.dispatch("function"==typeof i?_f.setMetaValueDynamic({id:e,meta:t,key:n,updateV
102alue:i}):_f.setMetaValue({id:e,meta:t,key:n,value:i}))}},"sa"),O);function em(){return typeof self<"u"?self:typeof window<"u"?window:typeof cv<"u"?cv:{}}function tm(e){let t=em();try{let e=t.IIIF_VAULT;if(e)return e}catch(i){}let n=new Jf(e);try{t.IIIF_VAULT=n}catch(i){}return n}H(em,"zT"),H(tm,"Fd");var nm=pe(Ln(),1);pe(An(),1);var im=Object.defineProperty,rm=Object.defineProperties,am=Object.getOwnPropertyDescriptors,sm=Object.getOwnPropertySymbols,om=Object.prototype.hasOwnProperty,lm=Object.prototype.propertyIsEnumerable,um=H(((e,t,n)=>t in e?im(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n),"gw"),cm=H(((e,t)=>{for(var n in t||(t={}))om.call(t,n)&&um(e,n,t[n]);if(sm)for(var n of sm(t))lm.call(t,n)&&um(e,n,t[n]);return e}),"mw"),dm=H(((e,t)=>rm(e,am(t))),"yw"),pm=/&?(xywh=)?(pixel:|percent:|pct:)?([0-9]+(?:\.[0-9]+)?),([0-9]+(?:\.[0-9]+)?),([0-9]+(?:\.[0-9]+)?),([0-9]+(?:\.[0-9]+)?)/,hm=/&?(t=)(npt:)?([0-9]+(.[0-9]+)?)?(,([0-9]+(.[0-9]+)?))?/;function fm(e){if(Array.isArray(e))return e.reduce(((e,t)=>{let{selector:n,selectors:i}=fm(t);return n&&(e.selector||(e.selector=n),e.selectors.push(...i)),e}),{selector:null,selectors:[]});if(!e)return{selector:null,selectors:[]};if("string"==typeof e){let[t,n]=e.split("#");return n?fm({type:"FragmentSelector",value:n}):{selector:null,selectors:[]}}if("PointSelector"===e.type&&(e.t||0===e.t)){let t={type:"TemporalSelector",temporal:{startTime:e.t}};return{selector:t,selectors:[t]}}if("FragmentSelector"===e.type){let t=pm.exec(e.value);if(t){let e={type:"BoxSelector",spatial:{unit:"percent:"===t[2]||"pct:"===t[2]?"percent":"pixel",x:parseFloat(t[3]),y:parseFloat(t[4]),width:parseFloat(t[5]),height:parseFloat(t[6])}};return{selector:e,selectors:[e]}}let n=e.value.match(hm);if(n){let e={type:"TemporalSelector",temporal:{startTime:n[4]?parseFloat(n[4]):0,endTime:n[7]?parseFloat(n[7]):void 0}};return{selector:e,selectors:[e]}}return{selector:null,selectors:[]}}return{selector:null,selectors:[]}}function mm(e,t={}){if(Array.isArray(e))return mm(e[0]);if("string"==typeof e){let[n,i]=e.split("#");return i?mm({type:"SpecificResource",source:{id:n,type:"Unknown"},selector:{type:"FragmentSelector",value:i}}):{type:"SpecificResource",source:{id:n,type:t.typeMap&&t.typeMap[n]||"Unknown"},selector:null,selectors:[]}}if("Choice"===e.type||"List"===e.type||"Composite"===e.type||"Independents"===e.type)return mm(e.items[0]);if("SpecificResource"===e.type){"Canvas"===e.source.type&&e.source.partOf&&"string"==typeof e.source.partOf&&(e.source.partOf=[{id:e.source.partOf,type:"Manifest"}]);let{selector:t,selectors:n}=e.selector?fm(e.selector):{selector:null,selectors:[]};return{type:"SpecificResource",source:e.source,selector:t,selectors:n}}if(e.id){"Canvas"===e.type&&e.partOf&&"string"==typeof e.partOf&&(e.partOf=[{id:e.partOf,type:"Manifest"}]);let[t,n]=e.id.split("#");return n?mm({type:"SpecificResource",source:dm(cm({},e),{id:t}),selector:{type:"FragmentSelector",value:n}}):{type:"SpecificResource",source:dm(cm({},e),{id:t}),selector:null,selectors:[]}}return{type:"SpecificResource",source:e,selector:null,selectors:[]}}function gm(e){return e.endsWith("info.json")?e:e.endsWith("/")?`${e}info.json`:`${e}/info.json`}H(fm,"Ld"),H(mm,"Hs"),H(gm,"Zr");var ym="http://library.stanford.edu/iiif/image-api/compliance.html#level1",vm="http://library.stanford.edu/iiif/image-api/compliance.html#level2",bm="http://library.stanford.edu/iiif/image-api/conformance.html#level1",_m="http://library.stanford.edu/iiif/image-api/conformance.html#level2",wm="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",Sm="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",Cm="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",km="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",xm="http://iiif.io/api/image/1/level1.json",Tm="http://iiif.io/api/image/1/profiles/level1.json",Em="http://iiif.io/api/image/1/level2.json",Am="http://iiif.io/api/image/1/profiles/level2.json",Lm="http://iiif.io/api/image/2/level1.json",Im="http://iiif.io/api/image/2/profiles/level1.json",$m="http://iiif.io/api/image/2/level2.json",Dm="http://iiif.io/api/image/2/profiles/level2.json",Pm="level1",Om="level2",Mm="http://iiif.io/api/image/2/level1",Rm="http://iiif.io/api/image/2/level2",Nm=[Rm,vm,_m,Sm,km,Em,Am,$m,Dm,Om],Fm=[...Nm,Mm,ym,bm,wm,Cm,xm,Tm,Lm,Im,Pm],Bm=["http://iiif.io/api/image/2/level0",Mm,Rm,"http://library.stanford.edu/iiif/image-api/compliance.html#level0",ym,vm,"http://library.stanford.edu/iiif/image-api/conformance.html#level0",bm,_m,"http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",wm,Sm,"http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",Cm,km,"http://iiif.io/api/image/1/level0.json","http://iiif.io/api/image/1/profiles/level0.json",xm,Tm,Em,Am,"http://iiif.io/api/image/2/level0.json","http://iiif.io/api/image/2/profiles/level0.json",Lm,Im,$m,Dm,"level0",Pm,Om],Hm={extraFormats:["jpg"],extraQualities:["default"],extraFeatures:["sizeByWhListed"]},jm={extraFormats:["jpg"],extraQualities:["default"],extraFeatures:["baseUriRedirect","cors","jsonldMediaType","regionByPx","regionSquare","sizeByWhListed","sizeByH","sizeByW","sizeByWh"]},Um={extraFormats:["jpg","png"],extraQualities:["default"],extraFeatures:["baseUriRedirect","cors","jsonldMediaType","regionByPct","regi
102onByPx","regionSquare","rotationBy90s","sizeByWhListed","sizeByConfinedWh","sizeByH","sizeByPct","sizeByW","sizeByWh"]};function Vm(e){return-1!==Nm.indexOf(e)?Um:-1!==Fm.indexOf(e)?jm:Hm}function qm(e){let t=e?Array.isArray(e.profile)?e.profile:[e.profile]:[],n={extraQualities:[],extraFormats:[],extraFeatures:[]};for(let i of t)if("string"==typeof i&&(i=Vm(i)),i){if(i.formats)for(let e of i.formats)-1===n.extraFormats.indexOf(e)&&n.extraFormats.push(e);if(i.qualities)for(let e of i.qualities)-1===n.extraQualities.indexOf(e)&&n.extraQualities.push(e);if(i.supports)for(let e of i.supports)-1===n.extraFeatures.indexOf(e)&&n.extraFeatures.push(e);if(i.maxHeight&&(n.maxHeight=i.maxHeight),i.maxWidth&&(n.maxWidth=i.maxWidth),i.maxArea&&(n.maxArea=i.maxArea),i.extraFormats)for(let e of i.extraFormats)-1===n.extraFormats.indexOf(e)&&n.extraFormats.push(e);if(i.extraQualities)for(let e of i.extraQualities)-1===n.extraQualities.indexOf(e)&&n.extraQualities.push(e);if(i.extraFeatures)for(let e of i.extraFeatures)-1===n.extraFeatures.indexOf(e)&&n.extraFeatures.push(e);i.maxHeight&&(n.maxHeight=i.maxHeight),i.maxWidth&&(n.maxWidth=i.maxWidth),i.maxArea&&(n.maxArea=i.maxArea)}if(e.extraFormats)for(let i of e.extraFormats)-1===n.extraFormats.indexOf(i)&&n.extraFormats.push(i);if(e.extraFeatures)for(let i of e.extraFeatures)-1===n.extraFeatures.indexOf(i)&&n.extraFeatures.push(i);if(e.extraQualities)for(let i of e.extraQualities)-1===n.extraQualities.indexOf(i)&&n.extraQualities.push(i);return n}function zm(e){try{if("full"===e)return{full:!0};if("square"===e)return{square:!0};let t=e.startsWith("pct:"),n=e.substr(t?4:0).split(",").map((e=>parseFloat(e)));return{x:n[0],y:n[1],w:n[2],h:n[3],percent:t}}catch(tvt){throw new Error("Expected 'full', 'square' or 'x,y,w,h'. Found "+e)}}function Wm(e){let t={upscaled:!1,max:!1,confined:!1};if("^"===e[0]&&(t.upscaled=!0,e=e.slice(1)),"max"===e||"full"===e)return t.max=!0,t.serialiseAsFull="full"===e,t;if("!"===e[0]&&(t.confined=!0,e=e.slice(1)),"p"===e[0])return t.percentScale=parseFloat(e.slice(4)),t;let n=e.split(",").map((e=>e.trim()));return n.length&&(""!==n[0]&&(t.width=parseInt(n[0],10)),""!==n[1]?(t.height=parseInt(n[1],10),t.version=2):t.version=3),t}function Gm(e){let t={angle:0};if("!"===e[0]&&(t.mirror=!0,e=e.substr(1)),t.angle=parseFloat(e)%360,Number.isNaN(t.angle))throw new Error(`Invalid rotation ${e}`);return t}function Km(e,t=""){let n=e.match(/^(([a-zA-Z]+):\/\/([^/]+))?((.*)+)/);if(!n)throw new Error(`Invalid or unknown input ${e}`);let i=n[2],r=n[3],a=n[4];if("/"===a[0]&&(a=a.substr(1)),t.length>0){if("/"===t[0]&&(t=t.substr(1)),t!==a.substr(0,t.length))throw new Error(`Path does not start with prefix (path: ${a}, prefix: ${t})`);a=a.substr(t.length)}return{scheme:i,server:r,path:a,prefix:t}}function Ym(e,t=""){let{path:n,scheme:i,server:r,prefix:a}=Km(e,t),s=n.split("/").reverse(),[o,l,u,c,...d]=s,p=d.reverse().filter(Boolean).join("/");if(1===s.length||""===o)return{type:"base",scheme:i,server:r,prefix:a,identifier:p};if("info.json"===o){let[,...e]=s;return{type:"info",scheme:i,server:r,prefix:a,identifier:e.reverse().filter(Boolean).join("/")}}let h=o.split(".");return{type:"image",scheme:i,server:r,prefix:a,identifier:p,originalPath:n,region:zm(c),size:Wm(u),rotation:Gm(l),quality:h[0],format:h[1]}}function Zm(e){let t=Ym(gm(e.id));if("info"!==t.type)throw new Error("Invalid service URL");let n=qm(e);return{identifier:t.identifier,originalPath:"",server:t.server,prefix:t.prefix,scheme:t.scheme,type:"image",quality:-1===n.extraQualities.indexOf("default")?n.extraQualities[0]:"default",region:{full:!0},size:{max:!0,upscaled:!1,confined:!1},format:"jpg",rotation:{angle:0}}}function Xm(e,t,n){let i=n.length,r=[];for(let a=0;a<i;a++){let t=n[a].width;r.push(e/t)}return r}function Qm(e,t,n){let i=n.length,r=[];for(let a=0;a<i;a++){let i=n[a];r.push({width:Math.floor(e/i),height:Math.floor(t/i)})}return r}function Jm(e){return e["@id"]?e["@id"]:e.id?e.id:void 0}function eg(e){if(!e||!e.profile||!Jm(e))return!1;let t=Array.isArray(e.profile)?e.profile:[e.profile];for(let n of t)if("string"==typeof n&&-1!==Bm.indexOf(n))return!0;return!1}function tg(e){if(!eg(e))return!1;let t=Array.isArray(e.profile)?e.profile:[e.profile];for(let n of t)if("string"==typeof n){if(-1!==Fm.indexOf(n))return!0}else{let e=[...n.supports||[],...n.extraFeatures||[]];if(-1!==e.indexOf("regionByPx")&&(-1!==e.indexOf("sizeByW")||-1!==e.indexOf("sizeByWh")))return!0}return!1}function ng(e,t){if(t&&t.profile){let n=t.profile;if(n){let t=Array.isArray(n)?n:[n];return t.includes(`level${e}`)||t.includes(`http://iiif.io/api/image/2/level${e}.json`)||t.includes(`http://iiif.io/api/image/1/level${e}.json`)||t.includes(`http://iiif.io/api/image/1/profiles/level${e}.json`)}}return!1}function ig(e){return eg(e)?ng(0,e)?0:ng(1,e)?1:ng(2,e)?2:null:null}function rg(e){return-1!==(e["@context"]?Array.isArray(e["@context"])?e["@context"]:[e["@context"]]:[]).indexOf("http://iiif.io/api/image/3/context.json")}function ag(e){if(!tg(e))return[];let t=[],n=Array.isArray(e.profile)?e.profile:[e.profile],i=n.length;for(let r=0;r<i;r++){let t=n[r];if("string"!=typeof t&&(t.maxHeight||t.maxWidth))return[{id:Jm(e),type:"variable",minWidth:0,minHeight:0,maxHeight:t.maxHeight||t.maxWidth,maxWidth:t.maxWidth||t.maxHeight,level:ig(e),version:"http://iiif.io/api/image/3/context.json"===e["@context"]?3:2}]}if(e.tiles){let n=e.tiles.length;for(let i=0;i<n;i++){let n=e.tiles[i];(n.height||n.width)&&t.push({id:Jm(e),type:"variable",minHeight:0,minWidth:0,maxHeight:n.height||n.width,maxWidth:n.width,level:ig(e),version:rg(e)?3:2})}}return t}function sg(e){let t=e.match(/^.*\/(full)\/(((\d+),(\d+)?)|max)\/(\d+)\/default\.(jpg|png|jpeg)$/);if(t){let n=t[1],i=parseInt(t[4],10),r=parseInt(t[5],10),a=t[7];if(("max"===n||"full"===n)&&i&&r&&a)return{type:"fixed",id:e,height:r,width:i}}return{type:"unknown",id:e}}function og(e){return e["@type"]?e["@type"]:e.type?e.type:void 0}function lg(e){if("string"==typeof e)return sg(e);
102let t=og(e);if("Image"!==t&&"sc:Image"!==t)return null;let n=e,i=Jm(n);return i?i&&n.width&&n.height?{id:i,type:"fixed",width:n.width,height:n.height,unsafe:!0}:sg(i):null}function ug(e){return eg(e)?(e&&e.sizes?e.sizes:[]).map((t=>({id:Jm(e),type:"fixed-service",height:t.height,width:t.width,level:ig(e),version:rg(e)?3:2}))):[]}function cg(e){let t=[],n=e.length;for(let i=0;i<n;i++){let n=ug(e[i]);n.length&&t.push(...n);let r=ag(e[i]);r.length&&t.push(...r)}return t}function dg(e){let t=e.service?Array.isArray(e.service)?e.service:[e.service]:[],n=t.length,i=[];for(let r=0;r<n;r++)eg(t[r])&&i.push(t[r]);return i}function pg(e,t=!0,n){let i=[],r=lg(e);if(null===r)return i;let a=e;if(i.push(r),t&&a&&a.width&&a.height){let e=[],t=dg(a);for(let i of t){let t={id:Jm(i),width:a.width,height:a.height};if(n.canLoadSync(t)){let i=n.loadServiceSync(t);i&&(i.height||(i.height=a.height),i.width||(i.width=a.width),e.push(...cg([i])))}}if(e.length)return i.push(...e),i}return a.service&&i.push(...cg(a.service)),i}function hg({x:e=0,y:t=0,w:n,h:i,full:r,square:a,percent:s}){return"full"}function fg({max:e,percentScale:t,upscaled:n,confined:i,width:r,height:a,serialiseAsFull:s,version:o}){let l=[];return n&&l.push("^"),e?(l.push(s?"full":"max"),l.join("")):(i&&l.push("!"),t&&l.push(`pct:${t}`),r&&l.push(`${r}`),l.push(","),a&&3===o&&l.push(`${a}`),l.join(""))}function mg(e){return`${e.mirror?"!":""}${(e.angle||0)%360}`}function gg(e,t){let n=e.prefix.startsWith("/")?e.prefix.substr(1):e.prefix,i=`${e.scheme}://${e.server}/${n?`${n}/`:""}${e.identifier}`,{size:r}=e,{region:a,rotation:s,format:o,quality:l}=e;return[i,"full",fg(r),mg(s),`${l}.${o}`].filter(Boolean).join("/")}function yg(e,t,n){let i=Zm({"@context":3===e.version?"http://iiif.io/api/image/3/context.json":"http://iiif.io/api/image/2/context.json",id:gm(Jm(e)),profile:null===e.level||typeof e.level>"u"?"level0":`level${e.level}}`,type:3===e.version?"ImageService3":"ImageService2"});return i.size.max=!1,i.size.width=t,i.size.height=n,{id:gg(i),type:"fixed",width:t,height:n||e.height/(e.width||1)*t,unsafe:e.width>t}}function vg(e){let t=e.replace(/(https?:\/\/)?(www.)?/i,"");return-1!==t.indexOf("/")?t.split("/")[0]:t}function bg(e,t,n){let i=e.width?e.width:e.maxWidth;return n.height<=e.maxHeight&&n.width<=e.maxWidth&&n.height>=e.minHeight&&n.width>=e.minWidth&&(!t||Math.abs(n.width-i)<Math.abs(t.width-i))}function _g(e,t){let n=[],i=Object.assign({unsafeImageService:!1,atAnyCost:!0,fallback:!0,minHeight:64,minWidth:64,maxHeight:1/0,maxWidth:1/0,returnAllOptions:!1,preferFixedSize:!1,allowUnsafe:!1,explain:!1,height:0,width:0},e),r=H(((e,t=0)=>i.explain?n.push(new Array(t).fill(0).map((e=>" ")).join("")+e().trim()):void 0),"r"),a=[],s=[],o=null;r((()=>`Using configuration: ${JSON.stringify(i,null,2)}`));let l=H(((e,t)=>{if(r((()=>"Swapping choice"),3),bg(i,t,e)){if(i.preferFixedSize&&e.unsafe)return r((()=>`We found an image that was marked as unsafe, but it was the best size. (${e.id})`),4),void s.push(e);i.returnAllOptions&&t&&s.push(t),r((()=>`We found a new image that was the best size. (${e.id})`),4),o=e}else i.returnAllOptions&&s.push(e)}),"h");r((()=>`The input shows we have ${t.length} list(s) of candidates to choose from.`));let u=t.length;for(let c=0;c<u;c++){let e=t[c]();r((()=>`Candidate group ${c}: ${JSON.stringify(e,null,2)}`),1);let n=e.length;r((()=>`Checking candidate list number ${c} and found ${n} potential ways of creating image(s)`),1);for(let t=0;t<n;t++){let n=e[t];if(r((()=>`-> Checking candidate ${t}`),1),"unknown"===n.type&&i.atAnyCost&&(r((()=>'We\'ve found an unknown image type, adding this to the "last resort" list'),2),a.push(n)),"fixed"===n.type&&(n.unsafe?(r((()=>'We\'ve found an unsafe fixed image type, adding this to the "last resort" list'),2),a.push(n)):(r((()=>"We've found a fixed size image, checking if it matches the request"),2),l(n,o))),"fixed-service"===n.type)if(i.unsafeImageService){r((()=>"Checking for an image from the tile source, without calculating the right height and width (unsafeImageService)"),2),l(yg(n,i.width,i.height),o)}else{r((()=>"Checking for an image from the tile source 3"),2),l(yg(n,n.width,n.height),o)}if("variable"===n.type&&n.maxWidth){l(yg({id:n.id,width:n.maxWidth,height:n.maxWidth,level:n.level,version:n.version},n.maxWidth),o)}}if(o&&!i.returnAllOptions){if(o.unsafe||i.allowUnsafe)continue;r((()=>`We found a match in choice list number ${c}, no searching any more`));break}}return i.atAnyCost&&0===s.length?(r((()=>o?`We found an image! ${o.id} of type ${o.type}`:'We found no images, but "atAnyCost" is set, so returning that')),{best:o||a[0],fallback:a.slice(1),log:n}):i.returnAllOptions?(r((()=>"Returning all options that we have found")),{best:i.atAnyCost?o||s[0]||a[0]:o||s[0],fallback:[...s,...a],log:n}):(r((()=>"Returning the best image that we found, and a fallback")),{best:o||s[0]||null,fallback:o?s:s.slice(1),log:n})}H(Vm,"JO"),H(qm,"ek"),H(zm,"tk"),H(Wm,"nk"),H(Gm,"ik"),H(Km,"rk"),H(Ym,"sk"),H(Zm,"ok"),H(Xm,"ak"),H(Qm,"lk"),H(Jm,"ft"),H(eg,"Ic"),H(tg,"ck"),H(ng,"Pc"),H(ig,"jd"),H(rg,"bx"),H(ag,"uk"),H(sg,"Gw"),H(og,"hk"),H(lg,"Tc"),H(ug,"dk"),H(cg,"Yw"),H(dg,"Oc"),H(pg,"fk"),H(hg,"pk"),H(fg,"gk"),H(mg,"mk"),H(gg,"_k"),H(yg,"Dd"),H(vg,"Vs"),H(bg,"bk"),H(_g,"Ek");var wg=Object.defineProperty,Sg=Object.defineProperties,Cg=Object.getOwnPropertyDescriptors,kg=Object.getOwnPropertySymbols,xg=Object.prototype.hasOwnProperty,Tg=Object.prototype.propertyIsEnumerable,Eg=H(((e,t,n)=>t in e?wg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n),"Jw"),Ag=H(((e,t)=>{for(var n in t||(t={}))xg.call(t,n)&&Eg(e,n,t[n]);if(kg)for(var n of kg(t))Tg.call(t,n)&&Eg(e,n,t[n]);return e}),"Tk"),Lg=H(((e,t)=>Sg(e,Cg(t))),"Ok");function Ig(e,t,n){let i=e>t?e:t,r=n.length,a=[];for(let s=0;s<r;s++){let e=n[s],t=e.scaleFactors[0],r=i/t,o=[t];for(;r>=e.width;)t*=2,o.push(t),r/=2;a.push(Lg(Ag({},e),{scaleFactors:o}))}return a}function $g(e,t){if(e.length!==t.length)return!1;if(0===e.length&&0===t.length)return!0;let n=e.length,i=!0;for(let a=0;a<n;a++){let n=e[a],r=t[a];if(n.width!==r.width||n.height!==r.height){i=!1;break}}if(i)return!0;let r=0;for(let a=0;a<n;a++)for(let i=0;i<n;i++)if(e[a].width===t[i].width&&e[a].height===t[i].height){r++;break}return r===n}function Dg(e){return ng(0,e)}H(Ig,"kk"),H($g,"Mk"),H(Dg,"ex");var Pg=H(((e,t,n)=>new Promise(((i,r)=>{var a=H((e=>{try{o(n.next(e))}catch(t){r(t)}}),"s"),s=H((e=>{try{o(n.throw(e))}catch(t){r(t)}}),"l"),o=H((e=>e.done?i(e.value):Promise.resolve(e.value).then(a,s)),"c");o((n=n.apply(e,t)).next())}))),"Xr"),Og=(M=class{constructor(e={}){this.config={verificationsRequired:1,approximateServices:!1,enableFetching:!0,disableThrottling:!1},this.fetchingCount=0,this.imageServices={},this.knownImageServers={},this.config=Object.assign(this.config,e)}setConfig(e){Object.assign(this.config,e)}sample(e,t,n=!0){let i=vg(Jm(e)),r=gm(Jm(e)),a=this.knownImageServers[i];return this.imageServices[r]=Object.assign(e,{real:!0}),a||!e.tiles||Dg(e)?this.verify(e):(this.knownImageServers[i]={verifications:0,malformed:!1,root:i,preLoaded:n,sampledId:Jm(e),verified:!1,server:null,result:{context:e["@context"]||[],sampledProfile:e.profile,resourceServiceRatio:t&&e.height?t.height/e.he
102ight:1,sampledSizes:e.sizes||[],sizeRatios:Xm(e.width,e.height,e.sizes||[]),sampledTiles:e.tiles||[]}},!0)}preLoad(e,t=!0){this.knownImageServers[e.root]=e,t&&(this.knownImageServers[e.root].malformed=!1,this.knownImageServers[e.root].verifications=this.config.verificationsRequired)}predict(e,t=!1,n=!1){let i=null==e?void 0:e.source,r=vg(Jm(e)),a=this.knownImageServers[r],s=gm(Jm(e));return this.imageServices[s]?this.imageServices[s]:!this.config.approximateServices||!a||!a.result||!(null==i?void 0:i.height)&&!e.height||!(null==i?void 0:i.width)&&!e.width||!n&&(a.malformed||a.verifications<this.config.verificationsRequired)||Dg(e.source)?null:(this.imageServices[s]||(this.imageServices[s]={"@context":a.result.context,"@id":Jm(e),id:Jm(e),protocol:"http://iiif.io/api/image",tiles:(null==i?void 0:i.tiles)||Ig(e.width,e.height,a.result.sampledTiles),sizes:(null==i?void 0:i.sizes)||Qm(Math.round(e.width/a.result.resourceServiceRatio),Math.round(e.height/a.result.resourceServiceRatio),a.result.sizeRatios),profile:(null==i?void 0:i.profile)||a.result.sampledProfile,height:(null==i?void 0:i.height)||e.height,width:(null==i?void 0:i.width)||e.width,real:!1}),this.imageServices[s])}getThumbnailFromResource(e,t){return Pg(this,arguments,(function*(e,t,n=!0,i=[]){let r=e?yield this.getImageCandidates(e,n):[];return _g(t,[()=>i,()=>r])}))}getImageCandidates(e,t=!0){return Pg(this,null,(function*(){let n=e;if(t&&n&&n.height&&n.width){let e=dg(n);for(let t of e){let e={id:Jm(t),width:t.width?t.width:n.width,height:t.height?t.height:n.height,source:t};yield this.loadService(e)}}return pg(e,t,this)}))}verify(e){return Pg(this,null,(function*(){let t=this.predict(e,!1,!0),n=yield this.fetchService(Jm(e));if(!t)return!1;let i=t.height===n.height&&t.width===n.width&&t["@context"]===n["@context"]&&$g(t.sizes||[],n.sizes||[]);if(i){let t=vg(Jm(e));this.knownImageServers[t]&&(this.knownImageServers[t].verifications+=1,this.knownImageServers[t].verifications>=this.config.verificationsRequired&&(this.knownImageServers[t].verified=!0))}return i}))}canLoadSync(e){let t="string"==typeof e?e:Jm(e),n=gm(t);if(this.imageServices[n])return!0;let i=this.knownImageServers[vg(t)];return i&&!i.malformed&&i.verifications>=this.config.verificationsRequired}markAsMalformed(e){return Pg(this,null,(function*(){return this.knownImageServers[vg(Jm(e))].malformed=!0,this.loadService(e,!0)}))}fetchService(e,t=!1){return Pg(this,null,(function*(){let n=gm(e);if(this.imageServices[n]&&(!t||this.imageServices[n].real))return this.imageServices[n];if(!this.config.enableFetching)throw new Error("Fetching is not enabled");let i=yield this.fetch(n).then((e=>e.json()));return!i.id&&i["@id"]&&(i.id=i["@id"]),i.id!==e&&(i.id=e,i["@id"]&&(i["@id"]=e)),this.imageServices[n]=Object.assign(i,{real:!0}),this.imageServices[n]}))}fetch(e,t){return Pg(this,null,(function*(){return fetch(e,t)}))}loadService(e,t=!1){return Pg(this,null,(function*(){if(!this.config.disableThrottling){let e=!0;for(;e;){if(!(this.fetchingCount>=this.config.verificationsRequired)){e=!1;break}yield new Promise((e=>setTimeout(e,500)))}}let n=this.knownImageServers[vg(Jm(e))];if(n&&!n.malformed&&!t){yield n.result;let t=this.loadServiceSync(e);if(t)return t}this.fetchingCount++;let i=yield this.fetchService(Jm(e),t);return this.fetchingCount--,i.real&&this.sample(i,e),i}))}loadServiceSync(e){let t=gm(Jm(e));return this.imageServices[t]?this.imageServices[t]:this.config.approximateServices?this.predict(e):null}},H(M,"la"),M);new Og;var Mg=Object.defineProperty,Rg=Object.defineProperties,Ng=Object.getOwnPropertyDescriptors,Fg=Object.getOwnPropertySymbols,Bg=Object.prototype.hasOwnProperty,Hg=Object.prototype.propertyIsEnumerable,jg=H(((e,t,n)=>t in e?Mg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n),"Cx"),Ug=H(((e,t)=>{for(var n in t||(t={}))Bg.call(t,n)&&jg(e,n,t[n]);if(Fg)for(var n of Fg(t))Hg.call(t,n)&&jg(e,n,t[n]);return e}),"Mt"),Vg=H(((e,t)=>Rg(e,Ng(t))),"en"),qg=Sn.createContext({collection:void 0,manifest:void 0,range:void 0,canvas:void 0,annotation:void 0,annotationPage:void 0}),zg=H((()=>dt(qg)),"hr");function Wg({value:e,children:t}){let n=zg(),i=ut((()=>Ug(Ug({},n),e)),[e,n]);return Yd(qg.Provider,{value:i,children:t})}H(Wg,"kc");var Gg=Sn.createContext({vault:null,setVaultInstance:H((e=>{}),"setVaultInstance")});function Kg({vault:e,vaultOptions:t,useGlobal:n,resources:i,children:r}){let[a,s]=it((()=>e||(n?tm(t):t?new Jf(t):new Jf)));return Yd(Gg.Provider,{value:{vault:a,setVaultInstance:s},children:Yd(Wg,{value:i||{},children:r})})}H(Kg,"tn");var Yg=H((()=>{let{vault:e}=dt(Gg);if(null===e)throw new Error("Vault not found. Ensure you have your provider set up correctly.");return e}),"$e");function Zg(e,{noCache:t=!1}={}){let n="string"==typeof e?e:e.id,i=Yg(),[r,a]=it(n),[s,o]=it(void 0),l=ut((()=>i.get(n,{skipSelfReturn:!0})||void 0),[n,i]),[u,c]=it(l);return at((()=>{(()=>{V(this,null,(function*(){try{let e=l&&!t?l:yield i.load(n),s=e?e.id||e["@id"]:null;e&&r!==s&&a(s),c(e)}catch(e){o(e)}}))})()}),[n,t]),{isLoaded:!!u,id:r,requestId:n,error:s,resource:u,cached:!(!u||u!==l)}}function Xg(e,t){let{id:n,isLoaded:i,error:r,resource:a,requestId:s,cached:o}=Zg(e,t);return{id:n,isLoaded:i,error:r,manifest:a,requestId:s,cached:o}}function Qg({manifest:e,children:t}){return Yd(Wg,{value:{manifest:e},children:t})}function Jg({canvas:e,children:t}){return Yd(Wg,{value:{canvas:e},children:t})}function ey(e,t=[]){let n=Yg(),[i,r]=it((()=>e(n.getState(),n)));return at((()=>n.subscribe((t=>e(t,n)),(e=>{r(e)}),!1)),t),i}H(Zg,"Wk"),H(Xg,"Jr"),H(Qg,"es"),H(Jg,"ha"),H(ey,"Rt");var ty=Sn.createContext([]);function ny(){let e=dt(ty);return ey((t=>e.map((e=>
102t.iiif.entities.Canvas[e])).filter(Boolean)),[e])}function iy(e={},t=[]){let{id:n,selector:i}=e,r=zg();Yg();let a=n||r.manifest,s=ey((e=>a?e.iiif.entities.Manifest[a]:void 0),[a]);return ut((()=>{if(s)return i?i(s):s}),[s,i,...t])}function ry({range:e,children:t}){return Yd(Wg,{value:{range:e},children:t})}function ay(e,t){let n=[];for(let i of t.items)if("Canvas"===i.type&&(-1!==i.id.indexOf("#")?n.push({id:i.id.split("#")[0],type:"Canvas"}):n.push(i)),"Range"===i.type&&n.push(...ay(e,e.get(i))),"SpecificResource"===i.type){let e="string"==typeof i.source?i.source:i.source.id;n.push({id:e,type:"Canvas"})}return n}function sy(e,t,{disablePaging:n,skipNonPaged:i}={}){let r=t.behavior,a=r.includes("paged"),s=!a&&r.includes("continuous"),o=!a&&!s&&r.includes("individuals"),l="Manifest"===t.type?t.items:ay(e,t);if(s)return[l,[l.map(((e,t)=>t))]];if(o||!a||n)return[l,l.map(((e,t)=>[t]))];let u=[],c=[],d=H((()=>{c.length&&(u.push([...c]),c=[])}),"m"),p=0,h=!1;for(let f=0;f<l.length;f++){let t=e.get(l[f]);t.behavior.includes("non-paged")?(f===p&&p++,i||(d(),u.push([f]),d())):f===p||t.behavior.includes("facing-pages")?(c.length&&(h=!0),d(),u.push([f]),d()):(c.push(f),h?(d(),h=!1):c.length>1&&d())}return c.length&&d(),[l,u]}function oy(e={},t=[]){let{id:n,selector:i}=e,r=zg(),a=n||r.range,s=ey((e=>a?e.iiif.entities.Range[a]:void 0),[a]);return ut((()=>{if(s)return i?i(s):s}),[s,i,...t])}function ly({startCanvas:e,disablePaging:t}){var n;let i=Yg(),r=iy(),a=oy(),[s,o]=it(void 0),l=a||r;if(!l)throw new Error("Nothing selected");let[u,c]=ut((()=>sy(i,l,{disablePaging:t})),[i,l]),d=ct((e=>{let t=c.findIndex((t=>t.includes(e)));o(-1===t?0:t)}),[u,c]),p=ct((e=>{let t=u.findIndex((t=>t.id===e));-1!==t?d(t):o(0)}),[u,c]),h=ct((()=>{o((e=>e>=c.length?e:e+1))}),[c]),f=ct((()=>{o((e=>e<=0?0:e-1))}),[c]);return typeof s>"u"&&(e?p(e):o(0)),{visibleItems:(null==(n=c[s])?void 0:n.map((e=>u[e].id)))||[],cursor:s,items:u,sequence:c,setSequenceIndex:o,setCanvasIndex:d,setCanvasId:p,next:h,previous:f}}H(ny,"Ud"),H(iy,"Xn"),H(ry,"da"),H(ay,"Fx"),H(sy,"$k"),H(oy,"fa"),H(ly,"Uk");var uy=H((()=>{}),"ca"),cy=qe({setCurrentCanvasId:uy,setCurrentCanvasIndex:uy,nextCanvas:uy,previousCanvas:uy,items:[],sequence:[],setSequenceIndex:uy,currentSequenceIndex:0});function dy(e){let t=iy(),{cursor:n,visibleItems:i,next:r,sequence:a,items:s,setCanvasIndex:o,setCanvasId:l,previous:u,setSequenceIndex:c}=ly({startCanvas:e.startCanvas,disablePaging:!1===e.pagingEnabled}),d=ut((()=>({sequence:a,items:s,setCurrentCanvasId:l,nextCanvas:r,previousCanvas:u,totalCanvases:s.length,setCurrentCanvasIndex:o,setSequenceIndex:c,currentSequenceIndex:n})),[a,s,l,r,u,s,o,c,n]);return t?Yd(cy.Provider,{value:d,children:Yd(ty.Provider,{value:i,children:Yd(Jg,{canvas:i[0],children:e.children})})}):(console.warn("The manifest passed to the provider is not a valid IIIF manifest."),Yd("div",{children:"Sorry, something went wrong."}))}function py(e){let t=Xg(e.manifest);if(!t)return console.warn("The manifest passed to the provider is not a valid IIIF manifest."),Yd("div",{children:"Sorry, something went wrong."});if(!t.isLoaded)return Yd("div",{children:"Loading..."});let n=Yd(dy,Vg(Ug({},e),{children:e.children}));return Yd(Qg,{manifest:t.id,children:e.rangeId?Yd(ry,{range:e.rangeId,children:n}):n})}function hy(){return dt(cy)}H(dy,"Hk"),H(py,"Lx"),H(hy,"Nx");var fy={importEntities:(0,nm.createAction)("@iiif/IMPORT_ENTITIES")(),modifyEntityField:(0,nm.createAction)("@iiif/MODIFY_ENTITY_FIELD")(),reorderEntityField:(0,nm.createAction)("@iiif/REORDER_ENTITY_FIELD")(),addReference:(0,nm.createAction)("@iiif/ADD_REFERENCE")(),removeReference:(0,nm.createAction)("@iiif/REMOVE_REFERENCE")()};(0,nm.createAction)("@iiif/ADD_MAPPING")(),(0,nm.createAction)("@iiif/ADD_MAPPINGS")();(0,nm.createAction)("@iiif/SET_META_VALUE")(),(0,nm.createAction)("@iiif/SET_META_VALUE_DYNAMIC")(),(0,nm.createAction)("@iiif/UNSET_META_VALUE")();(0,nm.createAction)("@iiif/REQUEST_RESOURCE")(),(0,nm.createAction)("@iiif/REQUEST_ERROR")(),(0,nm.createAction)("@iiif/REQUEST_MISMATCH")(),(0,nm.createAction)("@iiif/REQUEST_COMPLETE")(),(0,nm.createAction)("@iiif/REQUEST_OFFLINE_RESOURCE")();function my(){let e=Yg().getStore();return ut((()=>t=>e.dispatch(t)),[e])}function gy(e){return"string"!=typeof e&&e&&e.bindToVault}function yy(){let e=Yg(),t=ot([]),n=my(),i=ut((()=>`vault://annotation-page/${(new Date).getTime()}/${Math.round(1e9*Math.random()).toString(16)}`),[]);return st((()=>
102{let e={id:i,type:"AnnotationPage",behavior:[],motivation:null,label:null,thumbnail:[],summary:null,requiredStatement:null,metadata:[],rights:null,provider:[],items:[],seeAlso:[],homepage:[],logo:[],rendering:[],service:[]};n(fy.importEntities({entities:{AnnotationPage:{[e.id]:e}}}))}),[i]),[ey((e=>i?e.iiif.entities.AnnotationPage[i]:null),[i]),{addAnnotation:ct(((r,a)=>{if(i){if(gy(r)){let n=r;n.__vault||n.bindToVault(e),r="string"==typeof n.source?n.source:n.source.id,t.current[r]=n}else"string"!=typeof r&&(r=r.id);let s=e.get({id:i,type:"AnnotationPage"}),o=e.get({id:r,type:"Annotation"});s&&o&&(s.items.find((e=>e.id===o.id))||n(fy.addReference({id:i,type:"AnnotationPage",key:"items",reference:{id:r,type:"Annotation"},index:a})))}}),[i]),removeAnnotation:ct((r=>{i&&(gy(r)?r="string"==typeof r.source?r.source:r.source.id:"string"!=typeof r&&(r=r.id),t.current[r]&&t.current[r].beforeRemove(),e.get({id:i,type:"AnnotationPage"})&&n(fy.removeReference({id:i,type:"AnnotationPage",key:"items",reference:{id:r,type:"Annotation"}})))}),[i])}]}function vy(e){return{addEventListener(t,n,i,r){if(t)return e.setMetaValue([t.id,"eventManager",n],(e=>{let t=e||[];for(let n of t)if(n.callback===i)return t;return[...t,{callback:i,scope:r}]})),i},removeEventListener(t,n,i){!t||e.setMetaValue([t.id,"eventManager",n],(e=>(e||[]).filter((e=>e.callback!==i))))},getListenersAsProps(t,n){let i="string"==typeof t?{id:t}:t;if(!i||!i.id)return{};let r=e.getResourceMeta(i.id,"eventManager"),a={};if(r&&i)for(let s of Object.keys(r))a[s]=t=>{let a=e.get(i);for(let{callback:e,scope:i}of r[s]||[])(!i||n&&-1!==i.indexOf(n))&&e(t,a)};return a}}}function by(e,t){let n=Yg(),i=ut((()=>vy(n)),[n]);return ut((()=>e?i.getListenersAsProps(e,t):{}),[ey((()=>e&&e.id?n.getResourceMeta(e.id,"eventManager"):null),[e]),e,n,t])}function _y(e){return{applyStyles(t,n,i){let r="string"==typeof t?t:t.id;return e.setMetaValue([r,"styles",n],i)},getAppliedStyles(t){let n="string"==typeof t?t:t.id;return e.getResourceMeta(n,"styles")}}}function wy(e,t){let n=Yg(),i=ut((()=>_y(n)),[n]);return ey((()=>{if(!e)return null;let n=i.getAppliedStyles(e.id);return n?t?n[t]:n:void 0}),[e,t])}(0,nm.createAction)("@iiif/BATCH")(),(0,nm.createAction)("@iiif/BATCH_IMPORT")(),H(my,"fM"),H(gy,"Ax"),H(yy,"Dx"),qe(null),qe(null),Sn.createContext(null),Sn.createContext(null),H(vy,"pM"),H(by,"ts"),H(_y,"jx"),H(wy,"Zn");var Sy=Object.defineProperty,Cy=Object.defineProperties,ky=Object.getOwnPropertyDescriptors,xy=Object.getOwnPropertySymbols,Ty=Object.prototype.hasOwnProperty,Ey=Object.prototype.propertyIsEnumerable,Ay=H(((e,t,n)=>t in e?Sy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n),"Px"),Ly=H(((e,t)=>{for(var n in t||(t={}))Ty.call(t,n)&&Ay(e,n,t[n]);if(xy)for(var n of xy(t))Ey.call(t,n)&&Ay(e,n,t[n]);return e}),"Ix"),Iy=H(((e,t)=>Cy(e,ky(t))),"Tx"),$y=/&?(xywh=)?(pixel:|percent:|pct:)?([0-9]+(?:\.[0-9]+)?),([0-9]+(?:\.[0-9]+)?),([0-9]+(?:\.[0-9]+)?),([0-9]+(?:\.[0-9]+)?)/,Dy=/&?(t=)(npt:)?([0-9]+(.[0-9]+)?)?(,([0-9]+(.[0-9]+)?))?/;function Py(e){if(Array.isArray(e))return e.reduce(((e,t)=>{let{selector:n,selectors:i}=Py(t);return n&&(e.selector||(e.selector=n),e.selectors.push(...i)),e}),{selector:null,selectors:[]});if(!e)return{selector:null,selectors:[]};if("string"==typeof e){let[t,n]=e.split("#");return n?Py({type:"FragmentSelector",value:n}):{selector:null,selectors:[]}}if("PointSelector"===e.type&&(e.t||0===e.t)){let t={type:"TemporalSelector",temporal:{startTime:e.t}};return{selector:t,selectors:[t]}}if("FragmentSelector"===e.type){let t=$y.exec(e.value);if(t){let e={type:"BoxSelector",spatial:{unit:"percent:"===t[2]||"pct:"===t[2]?"percent":"pixel",x:parseFloat(t[3]),y:parseFloat(t[4]),width:parseFloat(t[5]),height:parseFloat(t[6])}};return{selector:e,selectors:[e]}}let n=e.value.match(Dy);if(n){let e={type:"TemporalSelector",temporal:{startTime:n[4]?parseFloat(n[4]):0,endTime:n[7]?parseFloat(n[7]):void 0}};return{selector:e,selectors:[e]}}return{selector:null,selectors:[]}}return{selector:null,selectors:[]}}function Oy(e,t={}){if(Array.isArray(e))return Oy(e[0]);if("string"==typeof e){let[n,i]=e.split("#");return i?Oy({type:"SpecificResource",source:{id:n,type:"Unknown"},selector:{type:"FragmentSelector",value:i}}):{type:"SpecificResource",source:{id:n,type:t.typeMap&&t.typeMap[n]||"Unknown"},selector:null,selectors:[]}}if("Choice"===e.type||"List"===e.type||"Composite"===e.type||"Independents"===e.type)return Oy(e.items[0]);if("SpecificResource"===e.type){"Canvas"===e.source.type&&e.source.partOf&&"string"==typeof e.source.partOf&&(e.source.partOf=[{id:e.source.partOf,type:"Manifest"}]);let{selector:t,selectors:n}=e.selector?Py(e.selector):{selector:null,selectors:[]};return{type:"SpecificResource",source:e.source,selector:t,selectors:n}}if(e.id){"Canvas"===e.type&&e.partOf&&"string"==typeof e.partOf&&(e.partOf=[{id:e.partOf,type:"Manifest"}]);let[t,n]=e.id.split("#");return n?Oy({type:"SpecificResource",source:Iy(Ly({},e),{id:t}),selector:{type:"FragmentSelector",value:n}}):{type:"SpecificResource",source:Iy(Ly({},e),{id:t}),selector:null,selectors:[]}}return{type:"SpecificResource",source:e,selector:null,selectors:[]}}function My(e={},t=[]){let{id:n,selector:i}=e,r=zg(),a=Yg(),s=n||r.annotation,o=ey((e=>s?e.iiif.entities.Annotation[s]:void 0),[s]),l=ey((e=>o&&o.body?o.body.map((t=>
102t?e.iiif.entities[t.type][t.id]:null)).filter(Boolean):[]),[o]);return ut((()=>{if(!o)return;let e=Vg(Ug({},o),{body:l,target:Oy(o.target,{typeMap:a.getState().iiif.mapping})});return i?i(e):e}),[o,i,l,...t])}function Ry(e={},t=[]){let{id:n,selector:i}=e,r=zg(),a=n||r.canvas,s=ey((e=>a?e.iiif.entities.Canvas[a]:void 0),[a]);return ut((()=>{if(s)return i?i(s):s}),[s,i,...t])}function Ny(e){return"SpecificResource"===e.type?[e.source,{selector:e.selector}]:[e,{selector:null}]}function Fy(e,t,n){let i=[],r=null,a=[];for(let s of t){let t=e.get(s.body,{skipSelfReturn:!1});for(let o of t){if(!o)continue;let[l,{selector:u}]=Ny(o),c=(l.type||"unknown").toLowerCase();if("choice"!==c)-1===i.indexOf(c)&&i.push(c),a.push({annotationId:s.id,type:c,resource:l,target:s.target,selector:u});else{let i=e.get(l.items),a=n.length?n.map((e=>i.find((t=>t.id===e)))).filter(Boolean):[i[0]];0===a.length&&a.push(i[0]),r={type:"single-choice",items:i.map((e=>({id:e.id,label:e.label,selected:-1!==a.indexOf(e)}))),label:o.label},t.push(...a)}}}return{types:i,items:a,choice:r}}function By(e,t){let{selector:n,source:i}=mm(t);if(i.id!==e.id)return[null,i];let r={spatial:{x:0,y:0,width:e.width,height:e.height}};return[n?"TemporalSelector"===n.type?{type:"TemporalBoxSelector",temporal:n.temporal,spatial:r.spatial}:n:null,i]}H(Py,"ua"),H(Oy,"vi"),H(My,"pa"),H(Ry,"Bn"),H(Ny,"Hd"),H(Fy,"_M"),H(By,"Bx");var Hy={makeChoice:H((()=>{}),"makeChoice")},jy={type:"unknown"},Uy=H((e=>({type:"unknown",reason:e,annotations:{pages:[]}})),"Ft"),Vy=H(((e,t)=>({type:"empty",width:e,height:t,annotations:{pages:[]},image:null,images:[]})),"EM");function qy(e,t){var n;let i=null==(n=null==e?void 0:e.iiif)?void 0:n.meta[t];return i?i.annotationPageManager:null}function zy(e,t){return ey((n=>{let i=[];if(!e)return i;let r=Object.keys(n.iiif.entities.AnnotationPage);for(let a of r)if(!t||-1!==t.indexOf(a)){let t=qy(n,a);t&&t.views&&t.views[e]&&i.push(a)}return i}),[e,t])}function Wy({canvas:e,manifest:t,all:n,canvases:i}
102){let r=[];if(t)for(let a of t.annotations)-1===r.indexOf(a.id)&&r.push(a.id);if(n){if(i&&i.length)for(let a of i)for(let e of a.annotations)-1===r.indexOf(e.id)&&r.push(e.id)}else if(e)for(let a of e.annotations)-1===r.indexOf(a.id)&&r.push(a.id);return r}function Gy(e,t){var n;let i=null==(n=null==e?void 0:e.iiif)?void 0:n.meta[t];return i?i.annotationPageManager:null}function Ky(e,t={}){let n=Yg(),i=iy(),r=Ry(),a=ny(),s=ut((()=>Wy({all:t.all,manifest:i,canvas:r,canvases:a})),[t.all,r,a,i]),o=zy(e,t.all?void 0:s),l=ct((t=>{!e||n.setMetaValue([t,"annotationPageManager","views"],(t=>t&&!t[e]?t:Vg(Ug({},t||{}),{[e]:!1})))}),[e,n]),u=ct(((t,i={})=>{if(!e)return;let r=n.getState(),a=[];if(null!=i&&i.deselectOthers){let t=Object.keys(r.iiif.entities.AnnotationPage);for(let n of t){let t=Gy(r,n);t&&t.views&&t.views[e]&&a.push(n)}}for(let e of a)l(e);n.setMetaValue([t,"annotationPageManager","views"],(t=>t&&t[e]?t:Vg(Ug({},t||{}),{[e]:!0})))}),[e,l,n]);return{availablePageIds:s,enabledPageIds:o,setPageEnabled:u,setPageDisabled:l}}function Yy(e,t){return ey(((n,i)=>i.get(e.map((e=>({id:e,type:t}))))),[e,t])}H(qy,"CM"),H(zy,"AM"),H(Wy,"RM"),H(Gy,"PM"),H(Ky,"ga"),H(Yy,"IM");var Zy=Sn.createContext(new Og);function Xy(){return dt(Zy)}function Qy(){let e=Xy(),[t,n]=it({}),i=ot(!1);return at((()=>()=>{i.current=!0}),[]),[ct(((r,{height:a,width:s})=>{if(r){let o=r.id||r["@id"],l=e.loadServiceSync({id:o,width:r.width||s,height:r.height||a,source:r});l?r=l:t[o]||(i.current||n((e=>Vg(Ug({},e),{[o]:"loading"}))),e.loadService({id:o,width:r.width||s,height:r.height||a}).then((()=>{i.current||n((e=>Vg(Ug({},e),{[o]:"done"})))})))}return r}),[e,t]),t]}function Jy(e={}){let t=My(),n=Ry(e.canvasId?{id:e.canvasId}:void 0);return ey(((i,r)=>{if(!n)return[];if(t&&e.enableSingleAnnotation)return[t];let a=r.get(n.items),s=[];for(let e of a)s.push(...r.get(e.items));return s}),[n])}function ev(e,t=[]){let n=Yg(),i=Jy({enableSingleAnnotation:null==e?void 0:e.enableSingleAnnotation}),[r,a]=it((null==e?void 0:e.defaultChoices)||[]),s=ut((()=>Fy(n,i,r)),[n,i,r,...t]),o={makeChoice:ct(((e,{deselectOthers:t=!0,deselect:n=!1}={})=>{if(s.choice){if("single-choice"!==s.choice.type)throw new Error("Complex choice not supported yet");a((i=>{if(n){let t=i.filter((t=>t!==e));if(0===t.length){let e=s.items[0].resource.id;return e?[e]:[]}return t}if(t)return[e];let r=[...i];if(0===r.length&&s.items.length){let e=s.items[0].resource.id;e&&r.push(e)}return-1!==i.indexOf(e)?i:[...i,e]}))}}),[s.choice])};return[s,o]}function tv(e,t,n){let i=[];for(let r of t.items){let t,a=r.resource&&"SpecificResource"===r.resource.type?r.resource.source:r.resource;if(!a.id)return Uy("No resource Identifier");if(a.service){let i=dg(a);i[0]&&(t=n(i[0],e))}let s={type:"BoxSelector",spatial:{x:0,y:0,width:e.width,height:e.height}},[o,l]=By(e,r.target);if(l.id!==e.id)continue;let u={type:"BoxSelector",spatial:{x:0,y:0,width:e.width,height:e.height}},c="SpecificResource"===r.resource.type?Oy(r.resource):null,d=c&&c.selector&&("BoxSelector"===c.selector.type||"TemporalBoxSelector"===c.selector.type)?{type:"BoxSelector",spatial:{x:c.selector.spatial.x,y:c.selector.spatial.y,width:c.selector.spatial.width,height:c.selector.spatial.height}}:u;t&&!t.id&&(t.id=t["@id"]);let p={id:a.id,type:"Image",annotationId:r.annotationId,width:o?a.width:e.width,height:o?a.height:e.height,service:t,sizes:t&&t.sizes?t.sizes:a.width&&a.height?[{width:a.width,height:a.height}]:[],target:o&&"PointSelector"!==o.type?o:s,selector:d};i.push(p)}return{type:"images",image:i[0],images:i,choice:t.choice}}H(Xy,"Mc"),H(Qy,"qd"),H(Jy,"TM"),H(ev,"OM"),H(tv,"kM");var nv=["model/gltf-binary"];function iv(e,t){let n=t.items[0].resource;return n.format?-1===nv.indexOf(n.format)?Uy(`3D format: ${n.format} is unsupported`):{type:"3d-model",model:n}:Uy("Unknown format")}function rv(e,t){var n;if(!e.duration)return Uy("No duration on canvas");if(t.items.length>1)return Uy("Only one audio source supported");let i=null==(n=t.items[0])?void 0:n.resource;return i?i.format?{type:"media",media:{annotationId:t.items[0].annotationId,duration:e.duration,url:i.id,type:"Sound",target:{type:"TemporalSelector",temporal:{startTime:0,endTime:e.duration}},format:i.format,selector:{type:"TemporalSelector",temporal:{startTime:0,endTime:e.duration}}},annotations:{pages:[]}}:Uy("Audio does not have format"):Uy("Unknown audio")}function av(e,t){var n;let i=t.items.filter((e=>"video"===e.type));if(!e.duration)return Uy("No duration on canvas");if(i.length>1)return Uy("Only one video source supported");let r=null==(n=i[0])?void 0:n.resource;return r?r.format?{type:"media",media:{annotationId:t.items[0].annotationId,duration:e.duration,url:r.id,type:"Video",items:[],target:{type:"TemporalSelector",temporal:{startTime:0,endTime:e.duration}},format:r.format,selector:{type:"TemporalSelector",temporal:{startTime:0,endTime:e.duration}}},annotations:{pages:[]}}:Uy("Video does not have format"):Uy("Unknown video")}function sv(e,t={},n){let i=e.language||n||"none";switch(e.type){case"TextualBody":typeof e.value<"u"&&(t[i]=e.value);break;
102case"List":case"Composite":case"Choice":e.items&&e.items.forEach((e=>sv(e,t,i)))}return t}function ov(e,t){let n=[];return t.items.forEach((t=>{if(t.resource){let[i]=By(e,t.target);n.push({annotationId:t.annotationId,text:sv(t.resource),target:i})}})),{type:"textual-content",items:n}}function lv(e){let t=iy(),n=Ry(),i=Yg(),[r,a]=Qy(),{enabledPageIds:s}=Ky((null==e?void 0:e.annotationPageManagerId)||(null==t?void 0:t.id)||(null==n?void 0:n.id),{all:!1}),o=Yy(s,"AnnotationPage"),l=(null==e?void 0:e.strategies)||["empty","images","media","textual-content","complex-timeline"],[u,c]=ev(e,[a]),d=ut((()=>{if(!n)return jy;if(0===u.types.length)return-1!==l.indexOf("empty")?Vy(n.width,n.height):jy;if(1!==u.types.length){if(2!==u.types.length||-1===u.types.indexOf("text"))return-1===l.indexOf("complex-timeline")?Uy("Complex timeline not supported"):Uy("ComplexTimelineStrategy not yet supported");u.types=u.types.filter((e=>"text"!==e))}let e=u.types[0];return"image"===e?-1===l.indexOf("images")?Uy("Image not supported"):tv(n,u,r):"Model"===e||"model"===e?-1===l.indexOf("3d-model")?Uy("3D not supported"):iv(0,u):"textualbody"===e?-1===l.indexOf("textual-content")?Uy("Textual content not supported"):ov(n,u):"sound"===e||"audio"===e?-1===l.indexOf("media")?Uy("Media not supported"):rv(n,u):"video"===e?-1===l.indexOf("media")?Uy("Media not supported"):av(n,u):jy}),[n,u,i,c.makeChoice]);return ut((()=>"unknown"===d.type?[d,Hy]:[Vg(Ug({},d),{annotations:{pages:o}}),c]),[d,o])}H(iv,"FM"),H(rv,"zM"),H(av,"LM"),H(sv,"Wx"),H(ov,"NM"),H(lv,"$x");var uv=H(((e,t=[])=>{let n=Yg();at((()=>{e(n)}),[n,...t])}),"DM");function dv(e,t={}){let n=t.imageServiceLoader||new Og;function i(t,r,a){return V(this,arguments,(function*(t,r,a,s=[],o){if("string"==typeof t)return{best:lg(t),fallback:[],log:[]};let l=e.get(t);if("string"==typeof l)return{best:lg(l),fallback:[],log:[]};switch(l.type){case"Annotation":{let t=l.body,i=e.get(t[0]);return o&&!i.width&&(i.width=o.width,i.height=o.height),yield n.getThumbnailFromResource(i,r,a,s)}case"Canvas":{let t=l;if(t.thumbnail&&t.thumbnail.length){let i=e.get(t.thumbnail[0]),r=yield n.getImageCandidates(i,a);r&&r.length&&s.push(...r)}return i(t.items[0],r,a,s,{width:t.width,height:t.height})}case"AnnotationPage":case"Choice":return i(l.items[0],r,a,s,o);case"Collection":case"Manifest":return i(l.items[0],r,a,s,o);case"SpecificResource":case"Image":case"Dataset":case"Sound":case"Text":case"TextualBody":case"Video":return o&&!l.width&&(l.width=o.width,l.height=o.height),n.getThumbnailFromResource(l,r,a,s);case"Service":case"Range":case"AnnotationCollection":case"CanvasReference":case"ContentResource":return{best:void 0,fallback:[],log:[]}}return{best:void 0,fallback:[],log:[]}}))}return H(i,"i"),{getBestThumbnailAtSize:i}}function pv(e,t,{canvasId:n,manifestId:i}={}){let r=Yg(),a=Xy(),s=ut((()=>dv(r,{imageServiceLoader:a})),[r,a]),[o,l]=it(),u=iy(i?{id:i}:void 0),c=Ry(n?{id:n}:void 0)||u,d=ot(!1);if(at((()=>(d.current=!1,()=>{d.current=!0}
102)),[]),!c)throw new Error("Must be called under a manifest or canvas context.");return uv((n=>{s.getBestThumbnailAtSize(c,e,t).then((e=>{e.best&&!d.current&&l(e.best)}))}),[c]),o}function hv(e){return{isMuted:!1,playRequested:!1,isPlaying:!1,isFinished:!1,volume:100,duration:e}}function fv(e,t){switch(t.type){case"FINISHED":return Vg(Ug({},e),{isFinished:!0,isPlaying:!1,playRequested:!1});case"PLAY_PAUSE":return Vg(Ug({},e),{isFinished:!1,isPlaying:!e.isPlaying});case"PLAY_REQUESTED":return Vg(Ug({},e),{isFinished:!1,playRequested:!0});case"PAUSE":return Vg(Ug({},e),{isPlaying:!1});case"PLAY":return Vg(Ug({},e),{isFinished:!1,playRequested:!1,isPlaying:!0});case"MUTE":return Vg(Ug({},e),{isMuted:!0});case"SET_VOLUME":return Vg(Ug({},e),{volume:t.volume,isMuted:0===t.volume});case"TOGGLE_MUTE":return Vg(Ug({},e),{isMuted:!e.isMuted});case"UNMUTE":return Vg(Ug({},e),{isMuted:!1})}return e}function mv(e){let t=Math.round(e);return`${Math.floor(t/60)}:${(""+t%60).padStart(2,"0")}`}function gv(e){let[t,n]=rt(fv,hv(e.duration)),i=ot(null),r=ot(null),a=ot(null),s=ot(!1),o=ct((()=>{r.current&&i.current&&(r.current.innerHTML=mv(i.current.currentTime),a.current&&(a.current.style.width=i.current.currentTime/e.duration*100+"%"),s.current!==i.current.muted&&(s.current=i.current.muted,n(i.current.muted?{type:"MUTE"}:{type:"UNMUTE"})))}),[e.duration]),l=ct((()=>{i.current&&(n({type:"PLAY_REQUESTED"}),i.current.play().then((()=>{n({type:"PLAY"})})),o())}),[o]),u=ct((()=>{i.current&&(i.current.duration>0&&i.current.paused?l():c())}),[o]),c=ct((()=>{i.current&&(i.current.pause(),n({type:"PAUSE"}),o())}),[o]),d=ct((()=>{i.current&&(i.current.muted=!i.current.muted,n(i.current.muted?{type:"MUTE"}:{type:"UNMUTE"}))}),[]),p=ct((()=>{i.current&&(i.current.muted=!0,n({type:"MUTE"}))}),[]),h=ct((()=>{i.current&&(i.current.muted=!1,n({type:"UNMUTE"}))}),[]),f=ct((e=>{i.current&&(i.current.muted=!1,i.current.volume=e/100,n({type:"SET_VOLUME",volume:e}))}),[]),m=ct((t=>{i.current&&(i.current.currentTime=Math.max(0,Math.min(t*e.duration,e.duration)),o())}),[]),g=ct((t=>{i.current&&(i.current.currentTime=Math.max(0,Math.min(t,e.duration)),o())}),[]);return at((()=>{let e=setInterval((()=>{o()}),350);return()=>clearInterval(e)}),[o,e.duration]),at((()=>{let e=H((()=>{n({type:"FINISHED"})}),"C"),t=i.current;return null==t||t.addEventListener("ended",e),()=>null==t?void 0:t.removeEventListener("ended",e)}),[]),[{element:i,currentTime:r,progress:a},t,{play:l,pause:c,playPause:u,mute:p,unmute:h,toggleMute:d,setVolume:f,setDurationPercent:m,setTime:g}]}H(dv,"jM"),H(pv,"Ux"),H(hv,"BM"),H(fv,"WM"),H(mv,"$M"),H(gv,"Fc");var yv=qe(null),vv=qe(null),bv=qe(null);function _v({actions:e,state:t,children:n,currentTime:i,progress:r,element:a}){return Yd(bv.Provider,{value:{currentTime:i,progress:r,element:a},children:Yd(vv.Provider,{value:e,children:Yd(yv.Provider,{value:t,children:n})})})}function wv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sv(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Cv(e,t,n){return t&&Sv(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kv(e={},t=[]){let{id:n,selector:i}=e,r=zg(),a=n||r.annotationPage,s=ey((e=>a?e.iiif.entities.AnnotationPage[a]:void 0),[a]);return ut((()=>{if(s)return i?i(s):s}),[s,...t])}function xv(){let e=dt(Gg);return e&&e.vault?e.vault:tm()}function Tv(){let e=Yg();return ut((()=>_y(e)),[e])}function Ev(e){return V(this,null,(function*(){if(!e)return null;switch(e){case"static":return{render:"static",interactive:!1,viewport:!0};case"responsive":return{render:"static",interactive:!1,viewport:!1};case"zoom":return{render:"canvas",interactive:!0,viewport:!0}}if(e.startsWith("http"))return fetch(e).then((e=>e.json()));if(e.startsWith("#")){let n=document.getElementById(e.slice(1));if(n)try{return JSON.parse(n.innerText)}catch(t){console.error("Invalid JSON on element",n)}}return null}))}function Av(e,t){let[n,i]=it(!1),[r,a]=it({}),s=e&&!r.__loaded,o=!(e&&!r.__loaded||!n);return st((()=>{let n=[];return e&&Ev(e).then((e=>{if(e){let i=e,{media:r}=i,s=oe(i,["media"]),o=Object.keys(r||{}),l=o.map((e=>({query:e,mql:window.matchMedia(e)}))),u=H((()=>
102{if(!l.length||!r)return re({__loaded:!0},s);let e=l.filter((({mql:e})=>e.matches)),n=re(re({__loaded:!0},s),e.reduce(((e,t)=>Object.assign(e,r[t.query])),{}));if(t)for(let i of e)t(i.query,n);return n}),"b");for(let e of o){let t=window.matchMedia(e),i=H((()=>{let e=u();a(e)}),"S");t.addEventListener("change",i),n.push((()=>{t.removeEventListener("change",i)}))}a(u())}else a({__loaded:!0})})).catch((()=>{a({__loaded:!0})})),()=>{n.forEach((e=>e()))}}),[o,e]),{internalConfig:r,isReady:o,isConfigBlocking:s,setIsReady:i}}function Lv(e,{parse:t,defaultValue:n}={}){let i=ot(),[r,a]=it((()=>t?t(e):e)),s=ct((e=>{let s=t?t(e):e;typeof n<"u"&&typeof s>"u"&&(s=n),(i.current||r)!==s&&(a(s),i.current=s)}),[]);return st((()=>{s(e)}),[e]),[r,s,a,i]}function Iv({max:e,percentScale:t,upscaled:n,confined:i,width:r,height:a}){let s=[];return n&&s.push("^"),e?(s.push("max"),s.join("")):(i&&s.push("!"),t&&s.push(`pct:${t}`),r&&s.push(`${r}`),s.push(","),a&&s.push(`${a}`),s.join(""))}function $v(e){let t={upscaled:!1,max:!1,confined:!1};if("^"===e[0]&&(t.upscaled=!0,e=e.slice(1)),("max"===e||"full"===e)&&(t.max=!0),"!"===e[0]&&(t.confined=!0,e=e.slice(1)),"p"===e[0])return t.percentScale=parseFloat(e.slice(4)),t;let n=e.split(",").map((e=>e.trim()));return""!==n[0]&&(t.width=parseInt(n[0],10)),""!==n[1]&&(t.height=parseInt(n[1],10)),t}function Dv(e){return null==e||e<0?0:e}function Pv(e){return Mv("string"==typeof e?e:JSON.stringify(e))}function Ov(e,t){if("{"===(e=e.trim())[0])return JSON.parse(e);if(e.startsWith("http"))throw new Error("Cannot fetch remote fetch with async=false in parseContentState");return Ov(Rv(e))}function Mv(e){let t=encodeURIComponent(e);return(typeof btoa>"u"?Buffer.from(t,"utf-8").toString("base64"):btoa(t)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Rv(e){let t=Nv(e).replace(/-/g,"+").replace(/_/g,"/"),n=typeof atob>"u"?Buffer.from(t,"base64").toString("utf-8"):atob(t);return decodeURIComponent(n).trim()}function Nv(e){let t=e.length%4;if(1===t)throw new Error("InvalidLengthError: Input base64url string is the wrong length to determine padding");return e+(t?"====".slice(0,4-t):"")}function Fv(e){if(!e)throw new Error("Content state is empty");Array.isArray(e)||(e=[e]);let t="vault://virtual-annotation/"+(new Date).getTime(),n=["contentState"],i=[];for(let r of e){if("string"==typeof r)throw new Error("Content state is a [String] type and cannot be inferred");if("Annotation"===r.type){if(t=r.id,Array.isArray(r.motivation))for(let e of r.motivation)-1===n.indexOf(e)&&n.push(e);if(Array.isArray(r.target))for(let e of r.target){let t=Oy(e);i.push(t)}else{let e=Oy(r.target);i.push(e)}continue}let e=Oy(r);i.push(e)}return{id:t,type:"Annotation",motivation:["contentState",...e.motivation||[]],target:i,extensions:{}}}function Bv(e){if(!e)return[];"string"==typeof e&&(e=e.split("|")),Array.isArray(e)||(e=[e]);let t=[];for(let n of e)"string"==typeof n&&(n=$v(n)),t.push(n);return t}function Hv(e){if("string"==typeof e){let t=e.match(/^(pct|pixel|percent)?:?([0-9,\s]+)/);if(t)return Hv({type:"FragmentSelector",value:`xywh=${t[1]?"pixel"===t[1]?"pixel:":"percent:":""}${t[2]}`})}return e?Py(e):void 0}function jv(e){return e?Array.isArray(e)?e:-1!==e.indexOf(",")?e.split(",").map((e=>e.trim())):[e]:[]}function Uv(e){let t=jv(e),n=[];for(let i of t){let[e,t]=i.split("#");if(t){let i=t.match(/opacity=([01]?\.[0-9]+)/);if(i){let t=parseFloat(i[1]);if(t<1&&t>=0){n.push({id:e,opacity:t});continue}}}n.push({id:e})}return n}function Vv(e,t){return typeof e>"u"?t:"string"==typeof e?"true"===e.toLowerCase():t?typeof e>"u"&&t:e}function qv(e,t){return typeof e>"u"||null===e||""===e?t:("string"==typeof e&&(e=parseInt(""+e,10)),typeof e<"u"&&!Number.isNaN(e)?e:t)}function zv(e){if(!e)return null;if("string"==typeof e&&e.startsWith("http"))return{type:"remote-content-state",id:e};try{return Fv("string"==typeof e?Ov(e):e)}catch(tvt){return null}}H(_v,"Hx"),H(wv,"qM"),H(Sv,"Ox"),H(Cv,"QM"),Sn.createContext(),function(){function e(){wv(this,e),this.usedNamespaces={}}H(e,"t"),Cv(e,[{key:"addUsedNamespaces",value:H((function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}),"value")},{key:"getUsedNamespaces",value:H((function(){return Object.keys(this.usedNamespaces)}),"value")}])}(),H(kv,"Vx"),H(xv,"dr"),H(Tv,"qx"),Cn(),H(Ev,"Qx"),H(Av,"Gx"),Cn(),Cn(),H(Lv,"ye"),H(Iv,"Yx"),H($v,"Kx"),H(Dv,"qs"),H(Pv,"
102ns"),H(Ov,"is"),H(Mv,"GM"),H(Rv,"YM"),H(Nv,"KM"),H(Fv,"Ni"),H(Bv,"Xx"),H(Hv,"zc"),H(jv,"Qd"),H(Uv,"Zx"),H(Vv,"Oe"),H(qv,"an"),H(zv,"Qs");var Wv=(H(N=class{constructor(e,t){this._className="",this.onChange=e||(()=>{}),this.className=Array.isArray(t)?t.join(" "):t||""}set className(e){this._className=e}get className(){return this._className}add(e){this.className.split(" ").includes(e.trim())||(this.className+=" "+e.trim())}remove(e){this.className=this.className.split(" ").filter((t=>t&&t!==e)).join(" ")}toggle(e,t){let n=this.className.split(" ");t&&!n.includes(e)&&(this.className+=" "+e.trim())}contains(e){return this.className.split(" ").includes(e.trim())}getClassName(){return this.className}},"Gd"),N);function Gv(e){return{addEventListener(t,n,i,r){if(t)return e.setMetaValue([t.id,"eventManager",n],(e=>{let t=e||[];for(let n of t)if(n.callback===i)return t;return[...t,{callback:i,scope:r}]})),i},removeEventListener(t,n,i){!t||e.setMetaValue([t.id,"eventManager",n],(e=>(e||[]).filter((e=>e.callback!==i))))},getListenersAsProps(t,n){let i="string"==typeof t?{id:t}:t;if(!i||!i.id)return{};let r=e.getResourceMeta(i.id,"eventManager"),a={};if(r&&i)for(let s of Object.keys(r))a[s]=t=>{let a=e.get(i);for(let{callback:e,scope:i}of r[s]||[])(!i||n&&-1!==i.indexOf(n))&&e(t,a)};return a}}}function Kv(e){return{applyStyles(t,n,i){let r="string"==typeof t?t:t.id;return e.setMetaValue([r,"styles",n],i)},getAppliedStyles(t){let n="string"==typeof t?t:t.id;return e.getResourceMeta(n,"styles")}}}function Yv(e){return e.endsWith("info.json")?e:e.endsWith("/")?`${e}info.json`:`${e}/info.json`}H(Gv,"Ks"),H(Kv,"Xs"),H(Yv,"ss");var Zv="http://library.stanford.edu/iiif/image-api/compliance.html#level1",Xv="http://library.stanford.edu/iiif/image-api/compliance.html#level2",Qv="http://library.stanford.edu/iiif/image-api/conformance.html#level1",Jv="http://library.stanford.edu/iiif/image-api/conformance.html#level2",eb="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",tb="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",nb="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",ib="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",rb="http://iiif.io/api/image/1/level1.json",ab="http://iiif.io/api/image/1/profiles/level1.json",sb="http://iiif.io/api/image/1/level2.json",ob="http://iiif.io/api/image/1/profiles/level2.json",lb="http://iiif.io/api/image/2/level1.json",ub="http://iiif.io/api/image/2/profiles/level1.json",cb="http://iiif.io/api/image/2/level2.json",db="http://iiif.io/api/image/2/profiles/level2.json",pb="level1",hb="level2",fb="http://iiif.io/api/image/2/level1",mb="http://iiif.io/api/image/2/level2",gb=[mb,Xv,Jv,tb,ib,sb,ob,cb,db,hb],yb=[...gb,fb,Zv,Qv,eb,nb,rb,ab,lb,ub,pb],vb=["http://iiif.io/api/image/2/level0",fb,mb,"http://library.stanford.edu/iiif/image-api/compliance.html#level0",Zv,Xv,"http://library.stanford.edu/iiif/image-api/conformance.html#level0",Qv,Jv,"http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",eb,tb,"http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",nb,ib,"http://iiif.io/api/image/1/level0.json","http://iiif.io/api/image/1/profiles/level0.json",rb,ab,sb,ob,"http://iiif.io/api/image/2/level0.json","http://iiif.io/api/image/2/profiles/level0.json",lb,ub,cb,db,"level0",pb,hb],bb={extraFormats:["jpg"],extraQualities:["default"],extraFeatures:["sizeByWhListed"]},_b={extraFormats:["jpg"],extraQualities:["default"],extraFeatures:["baseUriRedirect","cors","jsonldMediaType","regionByPx","regionSquare","sizeByWhListed","sizeByH","sizeByW","sizeByWh"]},wb={extraFormats:["jpg","png"],extraQualities:["default"],extraFeatures:["baseUriRedirect","cors","jsonldMediaType","regionByPct","regionByPx","regionSquare","rotationBy90s","sizeByWhListed","sizeByConfinedWh","sizeByH","sizeByPct","sizeByW","sizeByWh"]};function Sb(e){return-1!==gb.indexOf(e)?wb:-1!==yb.indexOf(e)?_b:bb}function kb(e){let t=e?Array.isArray(e.profile)?e.profile:[e.profile]:[],n={extraQualities:[],extraFormats:[],extraFeatures:[]};for(let i of t)if("string"==typeof i&&(i=Sb(i)),i){if(i.formats)for(let e of i.formats)-1===n.extraFormats.indexOf(e)&&n.extraFormats.push(e);if(i.qualities)for(let e of i.qualities)-1===n.extraQualities.indexOf(e)&&n.extraQualities.push(e);if(i.supports)for(let e of i.supports)-1===n.extraFeatures.indexOf(e)&&n.extraFeatures.push(e);if(i.maxHeight&&(n.maxHeight=i.maxHeight),i.maxWidth&&(n.maxWidth=i.maxWidth),i.maxArea&&(n.maxArea=i.maxArea),i.extraFormats)for(let e of i.extraFormats)-1===n.extraFormats.indexOf(e)&&n.extraFormats.push(e);if(i.extraQualities)for(let e of i.extraQualities)-1===n.extraQualities.indexOf(e)&&n.extraQualities.push(e);if(i.extraFeatures)for(let e of i.extraFeatures)-1===n.extraFeatures.indexOf(e)&&n.extraFeatures.push(e);i.maxHeight&&(n.maxHeight=i.maxHeight),i.maxWidth&&(n.maxWidth=i.maxWidth),i.maxArea&&(n.maxArea=i.maxArea)}if(e.extraFormats)for(let i of e.extraFormats)-1===n.extraFormats.indexOf(i)&&n.extraFormats.push(i);if(e.extraFeatures)for(let i of e.extraFeatures)-1===n.extraFeatures.indexOf(i)&&n.extraFeatures.push(i);if(e.extraQualities)for(let i of e.extraQualities)-1===n.extraQualities.indexOf(i)&&n.extraQualities.push(i);return n}function xb(e){try{if("full"===e)return{full:!0};if("square"===e)return{square:!0};let t=e.startsWith("pct:"),n=e.substr(t?4:0).split(",").map((e=>parseFloat(e)));return{x:n[0],y:n[1],w:n[2],h:n[3],percent:t}}catch(tvt){throw new Error("Expected 'full', 'square' or 'x,y,w,h'. Found "+e)}}function Tb(e){let t={upscaled:!1,max:!1,confined:!1};if("^"===e[0]&&(t.upscaled=!0,e=e.slice(1)),"max"===e||"full"===e)return t.max=!0,t.serialiseAsFull="full"===e,t;if("!"===e[0]&&(t.confined=!0,e=e.slice(1)),"p"===e[0])return t.percentScale=parseFloat(e.slice(4)),t;let n=e.split(",").map((e=>e.trim()));return n.length&&(""!==n[0]&&(t.width=parseInt(n[0],10)),""!==n[1]&&(t.height=parseInt(n[1],10))),t}function Eb(e){let t={angle:0};if("!"===e[0]&&(t.mirror=!0,e=e.substr(1)),t.angle=parseFloat(e)%360,Number.isNaN(t.angle))throw new Error(`Invalid rotation ${e}`);return t}function Ab(e,t=""){let n=e.match(/^(([a-zA-Z]+):\/\/([^/]+))?((.*)+)/);if(!n)throw new Error(`Invalid or unknown input ${e}`);let i=n[2],r=n[3],a=n[4];if("/"===a[0]&&(a=a.substr(1)),t.length>0){if("/"===t[0]&&(t=t.substr(1)),t!==a.substr(0,t.length))throw new Error(`Path does not start with prefix (path: ${a}, prefix: ${t})`);a=a.substr(t.length)}return{scheme:i,server:r,path:a,prefix:t}}
102function Lb(e,t=""){let{path:n,scheme:i,server:r,prefix:a}=Ab(e,t),s=n.split("/").reverse(),[o,l,u,c,...d]=s,p=d.reverse().filter(Boolean).join("/");if(1===s.length||""===o)return{type:"base",scheme:i,server:r,prefix:a,identifier:p};if("info.json"===o){let[,...e]=s;return{type:"info",scheme:i,server:r,prefix:a,identifier:e.reverse().filter(Boolean).join("/")}}let h=o.split(".");return{type:"image",scheme:i,server:r,prefix:a,identifier:p,originalPath:n,region:xb(c),size:Tb(u),rotation:Eb(l),quality:h[0],format:h[1]}}function Ib(e){let t=Lb(Yv(e.id));if("info"!==t.type)throw new Error("Invalid service URL");let n=kb(e);return{identifier:t.identifier,originalPath:"",server:t.server,prefix:t.prefix,scheme:t.scheme,type:"image",quality:-1===n.extraQualities.indexOf("default")?n.extraQualities[0]:"default",region:{full:!0},size:{max:!0,upscaled:!1,confined:!1},format:"jpg",rotation:{angle:0}}}function $b(e,t,n){let i=n.length,r=[];for(let a=0;a<i;a++){let t=n[a].width;r.push(e/t)}return r}function Db(e,t,n){let i=n.length,r=[];for(let a=0;a<i;a++){let i=n[a];r.push({width:Math.floor(e/i),height:Math.floor(t/i)})}return r}function Pb(e){return e["@id"]?e["@id"]:e.id?e.id:void 0}function Ob(e){if(!e||!e.profile||!Pb(e))return!1;let t=Array.isArray(e.profile)?e.profile:[e.profile];for(let n of t)if("string"==typeof n&&-1!==vb.indexOf(n))return!0;return!1}function Mb(e){if(!Ob(e))return!1;let t=Array.isArray(e.profile)?e.profile:[e.profile];for(let n of t)if("string"==typeof n){if(-1!==yb.indexOf(n))return!0}else{let e=[...n.supports||[],...n.extraFeatures||[]];if(-1!==e.indexOf("regionByPx")&&(-1!==e.indexOf("sizeByW")||-1!==e.indexOf("sizeByWh")))return!0}return!1}function Rb(e){if(!Mb(e))return[];let t=[],n=Array.isArray(e.profile)?e.profile:[e.profile],i=n.length;for(let r=0;r<i;r++){let t=n[r];if("string"!=typeof t&&(t.maxHeight||t.maxWidth))return[{id:Pb(e),type:"variable",minWidth:0,minHeight:0,maxHeight:t.maxHeight||t.maxWidth,maxWidth:t.maxWidth||t.maxHeight}]}if(e.tiles){let n=e.tiles.length;for(let i=0;i<n;i++){let n=e.tiles[i];(n.height||n.width)&&t.push({id:Pb(e),type:"variable",minHeight:0,minWidth:0,maxHeight:n.height||n.width,maxWidth:n.width})}}return t}function Nb(e){let t=e.match(/^.*\/(full)\/(((\d+),(\d+)?)|max)\/(\d+)\/default\.(jpg|png|jpeg)$/);if(t){let n=t[1],i=parseInt(t[4],10),r=parseInt(t[5],10),a=t[7];if(("max"===n||"full"===n)&&i&&r&&a)return{type:"fixed",id:e,height:r,width:i}}return{type:"unknown",id:e}}function Fb(e){return e["@type"]?e["@type"]:e.type?e.type:void 0}function Bb(e){if("string"==typeof e)return Nb(e);let t=Fb(e);if("Image"!==t&&"sc:Image"!==t)return null;let n=e,i=Pb(n);return i?i&&n.width&&n.height?{id:i,type:"fixed",width:n.width,height:n.height,unsafe:!0}:Nb(i):null}function Hb(e){return Ob(e)?(e&&e.sizes?e.sizes:[]).map((t=>({id:Pb(e),type:"fixed-service",height:t.height,width:t.width}))):[]}function jb(e){let t=[],n=e.length;for(let i=0;i<n;i++){let n=Hb(e[i]);n.length&&t.push(...n);let r=Rb(e[i]);r.length&&t.push(...r)}return t}function Ub(e){let t=e.service?Array.isArray(e.service)?e.service:[e.service]:[],n=t.length,i=[];for(let r=0;r<n;r++)Ob(t[r])&&i.push(t[r]);return i}function Vb(e,t=!0,n){let i=[],r=Bb(e);if(null===r)return i;let a=e;if(i.push(r),t&&a.width&&a.height){let e=[],t=Ub(a);for(let i of t){let t={id:Pb(i),width:a.width,height:a.height};if(n.canLoadSync(t)){let i=n.loadServiceSync(t);i&&(i.height||(i.height=a.height),i.width||(i.width=a.width),e.push(...jb([i])))}}if(e.length)return i.push(...e),i}return a.service&&i.push(...jb(a.service)),i}function qb({x:e=0,y:t=0,w:n,h:i,full:r,square:a,percent:s}){return"full"}function zb({max:e,percentScale:t,upscaled:n,confined:i,width:r,height:a,serialiseAsFull:s}){let o=[];return n&&o.push("^"),e?(o.push(s?"full":"max"),o.join("")):(i&&o.push("!"),t&&o.push(`pct:${t}`),r&&o.push(`${r}`),o.push(","),a&&o.push(`${a}`),o.join(""))}function Wb(e){return`${e.mirror?"!":""}${(e.angle||0)%360}`}function Gb(e,t){let n=e.prefix.startsWith("/")?e.prefix.substr(1):e.prefix,i=`${e.scheme}://${e.server}/${n?`${n}/`:""}${e.identifier}`,{region:r,size:a,rotation:s,format:o,quality:l}=e;return[i,"full",zb(a),Wb(s),`${l}.${o}
102`].filter(Boolean).join("/")}function Kb(e,t,n){let i=Ib({id:Yv(Pb(e)),profile:"level2"});return i.size.max=!1,i.size.width=t,i.size.height=n,{id:Gb(i),type:"fixed",width:t,height:n||e.height/(e.width||1)*t,unsafe:e.width>t}}function Yb(e){let t=e.replace(/(https?:\/\/)?(www.)?/i,"");return-1!==t.indexOf("/")?t.split("/")[0]:t}function Zb(e,t,n){let i=e.width?e.width:e.maxWidth;return n.height<=e.maxHeight&&n.width<=e.maxWidth&&n.height>=e.minHeight&&n.width>=e.minWidth&&(!t||Math.abs(n.width-i)<Math.abs(t.width-i))}function Xb(e,t){let n=[],i=Object.assign({unsafeImageService:!1,atAnyCost:!0,fallback:!0,minHeight:64,minWidth:64,maxHeight:1/0,maxWidth:1/0,returnAllOptions:!1,preferFixedSize:!1,allowUnsafe:!1,explain:!1,height:0,width:0},e),r=[],a=[],s=null,o=H(((e,t)=>{if(Zb(i,t,e)){if(i.preferFixedSize&&e.unsafe)return void a.push(e);i.returnAllOptions&&t&&a.push(t),s=e}else i.returnAllOptions&&a.push(e)}),"c"),l=t.length;for(let u=0;u<l;u++){let e=t[u](),n=e.length;for(let t=0;t<n;t++){let n=e[t];if("unknown"===n.type&&i.atAnyCost&&r.push(n),"fixed"===n.type&&(n.unsafe?r.push(n):o(n,s)),"fixed-service"===n.type)if(i.unsafeImageService){o(Kb(n,i.width,i.height),s)}else{o(Kb(n,n.width,n.height),s)}if("variable"===n.type&&n.maxWidth){o(Kb({id:n.id,width:n.maxWidth,height:n.maxWidth},n.maxWidth),s)}}if(s&&!i.returnAllOptions){if(s.unsafe||i.allowUnsafe)continue;break}}return i.atAnyCost&&0===a.length?{best:s||r[0],fallback:r.slice(1),log:n}:i.returnAllOptions?{best:i.atAnyCost?s||a[0]||r[0]:s||a[0],fallback:[...a,...r],log:n}:{best:s||a[0]||null,fallback:s?a:a.slice(1),log:n}}H(Sb,"hF"),H(kb,"dF"),H(xb,"fF"),H(Tb,"pF"),H(Eb,"gF"),H(Ab,"mF"),H(Lb,"yF"),H(Ib,"vF"),H($b,"wF"),H(Db,"xF"),H(Pb,"pt"),H(Ob,"Jd"),H(Mb,"SF"),H(Rb,"_F"),H(Nb,"Jx"),H(Fb,"bF"),H(Bb,"Zd"),H(Hb,"EF"),H(jb,"e1"),H(Ub,"T1"),H(Vb,"CF"),H(qb,"AF"),H(zb,"RF"),H(Wb,"PF"),H(Gb,"FF"),H(Kb,"Yd"),H(Yb,"Gs"),H(Zb,"zF"),H(Xb,"
102LF");var Qb=Object.defineProperty,Jb=Object.defineProperties,e_=Object.getOwnPropertyDescriptors,t_=Object.getOwnPropertySymbols,n_=Object.prototype.hasOwnProperty,i_=Object.prototype.propertyIsEnumerable,r_=H(((e,t,n)=>t in e?Qb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n),"r1"),a_=H(((e,t)=>{for(var n in t||(t={}))n_.call(t,n)&&r_(e,n,t[n]);if(t_)for(var n of t_(t))i_.call(t,n)&&r_(e,n,t[n]);return e}),"$F"),s_=H(((e,t)=>Jb(e,e_(t))),"UF");function o_(e,t,n){let i=e>t?e:t,r=n.length,a=[];for(let s=0;s<r;s++){let e=n[s],t=e.scaleFactors[0],r=i/t,o=[t];for(;r>=e.width;)t*=2,o.push(t),r/=2;a.push(s_(a_({},e),{scaleFactors:o}))}return a}function l_(e,t){if(e.length!==t.length)return!1;if(0===e.length&&0===t.length)return!0;let n=e.length,i=!0;for(let a=0;a<n;a++){let n=e[a],r=t[a];if(n.width!==r.width||n.height!==r.height){i=!1;break}}if(i)return!0;let r=0;for(let a=0;a<n;a++)for(let i=0;i<n;i++)if(e[a].width===t[i].width&&e[a].height===t[i].height){r++;break}return r===n}function u_(e){if(e&&e.profile){let t=e.profile;if(t){let e=Array.isArray(t)?t:[t];return e.includes("level0")||e.includes("http://iiif.io/api/image/2/level0.json")||e.includes("http://iiif.io/api/image/1/level0.json")||e.includes("http://iiif.io/api/image/1/profiles/level0.json")}}return!1}H(o_,"HF"),H(l_,"VF"),H(u_,"s1");var c_=H(((e,t,n)=>new Promise(((i,r)=>{var a=H((e=>{try{o(n.next(e))}catch(t){r(t)}}),"s"),s=H((e=>{try{o(n.throw(e))}catch(t){r(t)}}),"l"),o=H((e=>e.done?i(e.value):Promise.resolve(e.value).then(a,s)),"c");o((n=n.apply(e,t)).next())}))),"rs"),d_=(F=class{constructor(){this.config={verificationsRequired:1,approximateServices:!0,enableFetching:!0,disableThrottling:!1},this.fetchingCount=0,this.imageServices={},this.knownImageServers={}}setConfig(e){Object.assign(this.config,e)}sample(e,t,n=!0){let i=Yb(Pb(e)),r=Yv(Pb(e)),a=this.knownImageServers[i];return this.imageServices[r]=Object.assign(e,{real:!0}),a||!e.tiles||u_(e)?this.verify(e):(this.knownImageServers[i]={verifications:0,malformed:!1,root:i,preLoaded:n,sampledId:Pb(e),verified:!1,server:null,result:{context:e["@context"]||[],sampledProfile:e.profile,resourceServiceRatio:t&&e.height?t.height/e.height:1,sampledSizes:e.sizes||[],sizeRatios:$b(e.width,e.height,e.sizes||[]),sampledTiles:e.tiles||[]}},!0)}preLoad(e,t=!0){this.knownImageServers[e.root]=e,t&&(this.knownImageServers[e.root].malformed=!1,this.knownImageServers[e.root].verifications=this.config.verificationsRequired)}predict(e,t=!1,n=!1){let i=null==e?void 0:e.source,r=Yb(Pb(e)),a=this.knownImageServers[r];if(!a||!a.result||!n&&(a.malformed||a.verifications<this.config.verificationsRequired)||u_(e.source))return null;let s=Yv(Pb(e));return this.imageServices[s]||(this.imageServices[s]={"@context":a.result.context,"@id":Pb(e),id:Pb(e),protocol:"http://iiif.io/api/image",tiles:(null==i?void 0:i.tiles)||o_(e.width,e.height,a.result.sampledTiles),sizes:(null==i?void 0:i.sizes)||Db(Math.round(e.width/a.result.resourceServiceRatio),Math.round(e.height/a.result.resourceServiceRatio),a.result.sizeRatios),profile:(null==i?void 0:i.profile)||a.result.sampledProfile,height:(null==i?void 0:i.height)||e.height,width:(null==i?void 0:i.width)||e.width,real:!1}),this.imageServices[s]}getThumbnailFromResource(e,t){return c_(this,arguments,(function*(e,t,n=!0,i=[]){let r=yield this.getImageCandidates(e,n);return Xb(t,[()=>i,()=>r])}))}getImageCandidates(e,t=!0){return c_(this,null,(function*(){let n=e;if(t&&n.height&&n.width){let e=Ub(n);for(let t of e){let e={id:Pb(t),width:t.width?t.width:n.width,height:t.height?t.height:n.height,source:t};yield this.loadService(e)}}return Vb(e,t,this)}))}verify(e){return c_(this,null,(function*(){let t=this.predict(e,!1,!0),n=yield this.fetchService(Pb(e));if(!t)return!1;let i=t.height===n.height&&t.width===n.width&&t["@context"]===n["@context"]&&l_(t.sizes||[],n.sizes||[]);if(i){let t=Yb(Pb(e));this.knownImageServers[t].verifications+=1,this.knownImageServers[t].verifications>=this.config.verificationsRequired&&(this.knownImageServers[t].verified=!0)}return i}))}canLoadSync(e){let t="string"==typeof e?e:Pb(e),n=Yv(t);if(this.imageServices[n])return!0;let i=this.knownImageServers[Yb(t)];return i&&!i.malformed&&i.verifications>=this.config.verificationsRequired}markAsMalformed(e){return c_(this,null,(function*(){return this.knownImageServers[Yb(Pb(e))].malformed=!0,this.loadService(e,!0)}))}fetchService(e,t=!1){return c_(this,null,(function*(){let n=Yv(e);
102if(this.imageServices[n]&&(!t||this.imageServices[n].real))return this.imageServices[n];if(!this.config.enableFetching)throw new Error("Fetching is not enabled");let i=yield this.fetch(n).then((e=>e.json()));return!i.id&&i["@id"]&&(i.id=i["@id"]),i.id!==e&&(i.id=e,i["@id"]&&(i["@id"]=e)),this.imageServices[n]=Object.assign(i,{real:!0}),this.imageServices[n]}))}fetch(e,t){return c_(this,null,(function*(){return fetch(e,t)}))}loadService(e,t=!1){return c_(this,null,(function*(){if(!this.config.disableThrottling){let e=!0;for(;e;){if(!(this.fetchingCount>=this.config.verificationsRequired)){e=!1;break}yield new Promise((e=>setTimeout(e,500)))}}let n=this.knownImageServers[Yb(Pb(e))];if(n&&!n.malformed&&!t){yield n.result;let t=this.loadServiceSync(e);if(t)return t}this.fetchingCount++;let i=yield this.fetchService(Pb(e),t);return this.fetchingCount--,i.real&&this.sample(i,e),i}))}loadServiceSync(e){let t=Yv(Pb(e));return this.imageServices[t]?this.imageServices[t]:this.predict(e)}},H(F,"ef"),F);function p_(e,t={}){let n=t.imageServiceLoader||new d_;function i(t,r,a){return V(this,arguments,(function*(t,r,a,s=[],o){if("string"==typeof t)return{best:Bb(t),fallback:[],log:[]};let l=e.get(t);if("string"==typeof l)return{best:Bb(l),fallback:[],log:[]};switch(l.type){case"Annotation":{let t=l.body,i=e.get(t[0]);return o&&!i.width&&(i.width=o.width,i.height=o.height),yield n.getThumbnailFromResource(i,r,a,s)}case"Canvas":{let t=l;if(t.thumbnail&&t.thumbnail.length){let i=e.get(t.thumbnail[0]),r=yield n.getImageCandidates(i,a);r&&r.length&&s.push(...r)}return i(t.items[0],r,a,s,{width:t.width,height:t.height})}case"AnnotationPage":case"Choice":return i(l.items[0],r,a,s,o);case"Collection":case"Manifest":return i(l.items[0],r,a,s,o);case"SpecificResource":case"Image":case"Dataset":case"Sound":case"Text":case"TextualBody":case"Video":return o&&!l.width&&(l.width=o.width,l.height=o.height),n.getThumbnailFromResource(l,r,a,s);case"Service":case"Range":case"AnnotationCollection":case"CanvasReference":case"ContentResource":return{best:void 0,fallback:[],log:[]}}return{best:void 0,fallback:[],log:[]}}))}return H(i,"i"),{getBestThumbnailAtSize:i}}function h_(e,t,n=[],i=!1){if(!e||!t||0===t.length)return;if(1===t.length)return t[0];if(-1!==t.indexOf(e))return e;let r=-1!==e.indexOf("-")?e.slice(0,e.indexOf("-")):null;if(r&&-1!==t.indexOf(r))return r;for(let a of n)if(-1!==t.indexOf(a))return a;if(!i){let i=t.map((e=>-1!==e.indexOf("-")?e.slice(0,e.indexOf("-")):null)).indexOf(e);if(-1!==i)return t[i];for(let e of n){let n=-1!==e.indexOf("-")?e.slice(0,e.indexOf("-")):null,i=n?t.indexOf(n):-1;if(-1!==i)return t[i]}}return-1!==t.indexOf("none")?"none":-1!==t.indexOf("@none")?"@none":t[0]}function f_(e,t,n={}){let{strictFallback:i=!1,defaultText:r="",separator:a="\n",fallbackLanguages:s=[],closest:o}=n,l=Object.keys(e||{}),u=o?t:h_(t,l,s,i);if(!e)return r;if("string"==typeof e)return e;let c=u?e[u]:void 0;return c?"string"==typeof c?c:c.join(a):""}function m_(e,t={}){return f_(e,typeof navigator<"u"?navigator.language:void 0,t)}H(p_,"O1"),H(h_,"qF"),H(f_,"QF"),H(m_,"_n");var g_=function(){function e(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(i=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(l){r=!0,a=l}finally{try{!i&&o.return&&o.return()}finally{if(r)throw a}}return n}return H(e,"t"),function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y_=2*Math.PI,v_=H((function(e,t,n,i,r,a,s){var o=e.x,l=e.y;return{x:i*(o*=t)-r*(l*=n)+a,y:r*o+i*l+s}}),"Kd"),b_=H((function(e,t){var n=1.5707963267948966===t?.551915024494:-1.5707963267948966===t?-.551915024494:1.3333333333333333*Math.tan(t/4),i=Math.cos(e),r=Math.sin(e),a=Math.cos(e+t),s=Math.sin(e+t);return[{x:i-r*n,y:r+i*n},{x:a+s*n,y:s-a*n},{x:a,y:s}]}),"YF"),__=H((function(e,t,n,i){var r=e*n+t*i;return r>1&&(r=1),r<-1&&(r=-1),(e*i-t*n<0?-1:1)*Math.acos(r)}),"o1"),w_=H((function(e,t,n,i,r,a,s,o,l,u,c,d){var p=Math.pow(r,2),h=Math.pow(a,2),f=Math.pow(c,2),m=Math.pow(d,2),g=p*h-p*m-h*f;g<0&&(g=0),g/=p*m+h*f;var y=(g=Math.sqrt(g)*(s===o?-1:1))*r/a*d,v=g*-a/r*c,b=u*y-l*v+(e+n)/2,_=l*y+u*v+(t+i)/2,w=(c-y)/r,S=(d-v)/a,C=(-c-y)/r,k=(-d-v)/a,x=__(1,0,w,S),T=__(w,S,C,k);return 0===o&&T>0&&(T-=y_),1===o&&T<0&&(T+=y_),[b,_,x,T]}),"KF"),S_=H((function(e){var t=e.px,n=e.py,i=e.cx,r=e.cy,a=e.rx,s=e.ry,o=e.xAxisRotation,l=void 0===o?0:o,u=e.largeArcFlag,c=void 0===u?0:u,d=e.sweepFlag,p=void 0===d?0:d,h=[];if(0===a||0===s)return[];var f=Math.sin(l*y_/360),m=Math.cos(l*y_/360),g=m*(t-i)/2+f*(n-r)/2,y=-f*(t-i)/2+m*(n-r)/2;if(0===g&&0===y)return[];a=Math.abs(a),s=Math.abs(s);var v=Math.pow(g,2)/Math.pow(a,2)+Math.pow(y,2)/Math.pow(s,2);v>1&&(a*=Math.sqrt(v),s*=Math.sqrt(v));var b=w_(t,n,i,r,a,s,c,p,f,m,g,y),_=g_(b,4),w=_[0],S=_[1],C=_[2],k=_[3],x=Math.abs(k)/(y_/4);Math.abs(1-x)<1e-7&&(x=1);var T=Math.max(Math.ceil(x),1);k/=T;for(var E=0;E<T;E++)h.push(b_(C,k)),C+=k;return h.map((function(e){var t=v_(e[0],a,s,m,f,w,S),n=t.x,i=t.y,r=v_(e[1],a,s,m,f,w,S),o=r.x,l=r.y,u=v_(e[2],a,s,m,f,w,S);return{x1:n,y1:i,x2:o,y2:l,x:u.x,y:u.y}}))}),"XF"),C_=T_,k_={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},x_=/([astvzqmhlc])([^astvzqmhlc]*)/gi;function T_(e){var t=[];return e.replace(x_,(function(e,n,i){var r=n.toLowerCase();for(i=A_(i),"m"==r&&i.length>2&&(t.push([n].concat(i.splice(0,2))),r="l",n="m"==n?"l":"L");;){if(i.length==k_[r])return i.unshift(n),t.push(i);if(i.length<k_[r])throw new Error("malformed path data");t.push([n].concat(i.splice(0,k_[r])))}})),t}H(T_,"ez");var E_=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function A_(e){var t=e.match(E_);return t?t.map(Number):[]}H(A_,"nz");var L_=I_;function I_(e){var t=0,n=0,i=0,r=0;return e.map((function(e){var a=(e=e.slice())[0],s=a.toUpperCase();if(a!=s)switch(e[0]=s,a){case"a":e[6]+=i,e[7]+=r;break;case"v":e[1]+=r;break;case"h":e[1]+=i;break;default:for(var o=1;o<e.length;)e[o++]+=i,e[o++]+=r}switch(s){case"Z":i=t,r=n;break;case"H":i=e[1];break;case"V":r=e[1];break;case"M":i=t=e[1],r=n=e[2];break;default:i=e[e.length-2],r=e[e.length-1]}return e}))}function $_(e){let t,n,i,r=C_(e),a=L_(r),s=0,o=0,l=0,u=0,c=0,d=0,p=[];for(let h=0;h<a.length;h++){let e=a[h],r=e[0];switch(r){case"M":s=e[1],o=e[2];break;case"H":e=["L",e[1],o];break;case"V":e=["L",s,e[1]];break;case"S":{let n=c,i=d;("C"===t||"S"==t)&&(n+=n-l,i+=i-u),e=["C",n,i,e[1],e[2],e[3],e[4]]}break;case"T":"Q"===t||"T"==t?(n=2*c-n,i=2*d-i):(n=c,i=d),e=["Q",n,i,e[1],e[2]];break;case"Q":n=e[1],i=e[2];break;case"A":{let t=S_({px:c,py:d,cx:e[6],cy:e[7],rx:e[1],ry:e[2],xAxisRotation:e[3],largeArcFlag:e[4],sweepFlag:e[5]});if(!t.length)continue;for(let[n,i]of t.entries())e=["C",i.x1,i.y1,i.x2,i.y2,i.x,i.y],n<t.length-1&&p.push(e)}break;case"Z":e=["L",s,o]}t=r,c=e[e.length-2],d=e[e.length-1],["C","Q","A"].indexOf(r)>-1?(l=e[e.length-4],u=e[e.length-3]):(l=c,u=d),p.push(e)}return p}function D_(e,t,n,i=1){return new N_(e,t,n).subdivide(i)}function P_(e,t,n,i,r=1){return new F_(new Float64Array([e.x,e.y,t.x,t.y,n.x,n.y,i.x,i.y])).subdivide(r)}function O_(e){return e.x*e.x+e.y*e.y}function M_(e){return e/(1-.67+Math.pow(Math.pow(.67,4)+.25*e*e,.25))}function R_(e){return e*(.61+Math.sqrt(.1521+.25*e*e))}H(I_,"rz"),H($_,"sz"),H(D_,"oz"),H(P_,"az"),H(O_,"lz"),H(M_,"wa"),H(R_,"Ys");var N_=(H(B=class{constructor(e,t,n){this.start=e,this.control=t,this.end=n}eval(e){let t=1-e;return{x:this.start.x*t*t+2*this.control.x*t*e+this.end.x*e*e,y:this.start.y*t*t+2*this.control.y*t*e+this.end.y*e*e}}mapToBasic(){let{x:e,y:t}=this.start,{x:n,y:i}=this.control,{x:r,y:a}=this.end,s=2*n-e-r,o=2*i-t-a,l=(r-e)*o-(a-t)*s,u=((n-e)*s+(i-t)*o)/l,c=((r-n)*s+(a-i)*o)/l;return{x0:e,x2:r,scale:Math.abs(l)/(Math.hypot(s,o)*Math.abs(c-u)),cross:l}}subdivide(e){let t=this.mapToBasic(),n=M_(t.x0),i=M_(t.x2),r=.5*Math.abs(i-n)*Math.sqrt(t.scale/e),a=Math.ceil(r),s=R_(n),o=R_(i),l=[0];for(let u=1;u<a;u++){let e=(R_(n+(i-n)*u/a)-s)/(o-s);l.push(e)}return l.push(1),l.map((e=>this.eval(e)))}},"tf"),B),F_=(j=class{constructor(e){this.c=e}weightsum(e,t,n,i){return{x:e*this.c[0]+t*this.c[2]+n*this.c[4]+i*this.c[6],y:e*this.c[1]+t*this.c[3]+n*this.c[5]+i*this.c[7]}}eval(e){let t=1-e,n=t*t*t,i=3*t*t*e,r=3*t*e*e,a=e*e*e;return this.weightsum(n,i,r,a)}deriv(e){let t=1-e,n=-3*t*t,i=3*e*e,r=-6*e*t-n,a=6*e*t-i;return this.weightsum(n,r,a,i)}midpoint_quadbez(){let e=this.weightsum(-.25,.75,.75,-.25);return new N_({x:this.c[0],y:this.c[1]},e,{x:this.c[6],y:this.c[7]})}subsegment(e,t){let n=new Float64Array(8),i=this.eval(e),r=this.eval(t);n[0]=i.x,n[1]=i.y;let a=(t-e)/3,s=this.deriv(e);n[2]=i.x+a*s.x,n[3]=i.y+a*s.y;let o=this.deriv(t);return n[4]=r.x-a*o.x,n[5]=r.y-a*o.y,n[6]=r.x,n[7]=r.y,new F_(n)}subdivide(e){let t=.1*e,n=e-t,i=Math.sqrt(n),r=O_(this.weightsum(1,-3,3,-1)),a=Math.ceil(Math.pow(r/(432*t*t),1/6)),s=[],o=0;for(let h=0;h<a;h++){let e=h/a,t=(h+1)/a,n=this.subsegment(e,t).midpoint_quadbez(),r
102=n.mapToBasic(),l=M_(r.x0),u=M_(r.x2),c=Math.sqrt(r.scale),d=Math.abs(u-l)*c;if(Math.sign(r.x0)!=Math.sign(r.x2)){let e=i/c,t=i*Math.abs(u-l)/M_(e);d=Math.max(d,t)}s.push({quad:n,a0:l,a2:u,val:d}),o+=d}let l=.5*o/i,u=Math.ceil(l),c=[{x:this.c[0],y:this.c[1]}],d=0,p=0;for(let h=1;h<u;h++){let e=o*h/u;for(;d+s[p].val<e;)d+=s[p].val,p++;let t=s[p].a0,n=s[p].a2,i=R_(t),r=R_(n),a=(R_(t+(n-t)*(e-d)/s[p].val)-i)/(r-i);c.push(s[p].quad.eval(a))}return c.push({x:this.c[6],y:this.c[7]}),c}},H(j,"Nc"),j),B_=/&?(xywh=)?(pixel:|percent:|pct:)?([0-9]+(?:\.[0-9]+)?),([0-9]+(?:\.[0-9]+)?),([0-9]+(?:\.[0-9]+)?),([0-9]+(?:\.[0-9]+)?)/,H_=/&?(t=)(npt:)?([0-9]+(.[0-9]+)?)?(,([0-9]+(.[0-9]+)?))?/,j_=/^rgba\((\d+),(\d+),(\d+),([0-9.]+)\)$/;function U_(e,{domParser:t,svgPreprocessor:n}={}){var i,r;if(Array.isArray(e))return e.reduce(((e,t)=>{let{selector:n,selectors:i}=U_(t);return n&&(e.selector||(e.selector=n),e.selectors.push(...i)),e}),{selector:null,selectors:[]});if(!e)return{selector:null,selectors:[]};if("string"==typeof e){let[t,n]=e.split("#");return n?U_({type:"FragmentSelector",value:n}):{selector:null,selectors:[]}}if("PointSelector"===e.type&&(e.t||0===e.t)){let t={type:"TemporalSelector",temporal:{startTime:e.t}};return{selector:t,selectors:[t]}}if("FragmentSelector"===e.type){let t=B_.exec(e.value);if(t){let e={type:"BoxSelector",spatial:{unit:"percent:"===t[2]||"pct:"===t[2]?"percent":"pixel",x:parseFloat(t[3]),y:parseFloat(t[4]),width:parseFloat(t[5]),height:parseFloat(t[6])}};return{selector:e,selectors:[e]}}let n=e.value.match(H_);if(n){let e={type:"TemporalSelector",temporal:{startTime:n[4]?parseFloat(n[4]):0,endTime:n[7]?parseFloat(n[7]):void 0}};return{selector:e,selectors:[e]}}return{selector:null,selectors:[]}}if("SvgSelector"===e.type&&"value"in e){t||(typeof window<"u"?t=new window.DOMParser:console.warn("No DOMParser available, cannot parse SVG selector, `points`, `spatial` and `style` will be unavailable and the SVG will not be normalized."));let a,s,o,l=[],u=null!=(i=null==n?void 0:n(e.value))?i:e.value;if(t){let n=t.parseFromString(e.value,"image/svg+xml").querySelector("svg");if(!n)return console.warn(`Illegal SVG selector: ${e.value}`),{selector:null,selectors:[]};let i=q_(n);i&&(l=i.points,o=i.shapeType,a=[Math.min(...l.map((e=>e[0]))),Math.min(...l.map((e=>e[1]))),Math.max(...l.map((e=>e[0]))),Math.max(...l.map((e=>e[1])))],({style:s,svg:u}=null!=(r=W_(i.element))?r:{svg:u}))}let c={type:"SvgSelector",svg:u,svgShape:o,style:s,points:l.length?l:void 0,spatial:a?{unit:"pixel",x:a[0],y:a[1],width:a[2]-a[0],height:a[3]-a[1]}:void 0};return{selector:c,selectors:[c]}}return{selector:null,selectors:[]}}function V_(e){let t=e.map((e=>e[0])).reduce(((e,t)=>(e[t]+=1,e)),{C:0,Q:0,L:0,M:0}),n=new Set(e.map((e=>e[0])));if(t.C>0||t.Q>0)return"path";if(t.L>0&&(1===n.size||2===n.size&&n.has("M"))){if(4===t.L)return"rect";let n=e.slice(-1)[0];return"M"===e[0][0]&&"L"===n[0]&&n[1]==e[0][1]&&n[2]===e[0][2]||0===n[1]&&0===n[2]?"polygon":"polyline"}return"path"}function q_(e){var t,n,i,r,a,s,o,l,u,c,d,p,h,f,m,g,y;for(let v of Array.from(e.children))switch(null==v?void 0:v.tagName.toLowerCase()){case"g":{let e=q_(v);if(e)return e}continue;case"path":{let e=v.getAttribute("d");if(!e)continue;let t=$_(e);return{element:v,points:z_(t),shapeType:V_(t)}}case"circle":{let e=parseFloat(null!=(t=v.getAttribute("cx"))?t:"0"),r=parseFloat(null!=(n=v.getAttribute("cy"))?n:"0"),a=parseFloat(null!=(i=v.getAttribute("r"))?i:"0");if(!a)continue;let s=[];for(let t=0;t<=360;t+=12){let n=t*Math.PI/180;s.push([e+a*Math.cos(n),r+a*Math.sin(n)])}return{element:v,points:s,shapeType:"circle"}}case"ellipse":{let e=parseFloat(null!=(r=v.getAttribute("cx"))?r:"0"),t=parseFloat(null!=(a=v.getAttribute("cy"))?a:"0"),n=parseFloat(null!=(s=v.getAttribute("rx"))?s:"0"),i=parseFloat(null!=(o=v.getAttribute("ry"))?o:"0");if(!n&&!i)continue;let l=[];for(let r=0;r<=360;r+=12){let a=Math.tan(r/360*Math.PI),s=n*(1-R(a,2))/(1+R(a,2)),o=2*i*a/(1+R(a,2));l.push([e+s,t+o])}return{element:v,points:l,shapeType:"ellipse"}}case"line":{let e=parseFloat(null!=(l=v.getAttribute("x0"))?l:"0"),t=parseFloat(null!=(u=v.getAttribute("y0"))?u:"0"),n=parseFloat(null!=(c=v.getAttribute("x1"))?c:"0"),i=parseFloat(null!=(d=v.getAttribute("y1"))?d:"0");if(e===n&&t===i)continue;return{element:v,points:[[e,t],[n,i]],shapeType:"polyline"}}case"polygon":case"polyline":{let e=null!=(h=null==(p=v.getAttribute("points"))?void 0:p.split(" ").map((e=>e.split(",").map(parseFloat))))?h:[];if(!e.length)continue;let t="polyline";return"polygon"===v.tagName.toLowerCase()&&(e.push(e[0]),t="polygon"),{element:v,points:e,shapeType:t}}case"rect":{let e=parseFloat(null!=(f=v.getAttribute("x"))?f:"0"),t=parseFloat(null!=(m=v.getAttribute("y"))?m:"0"),n=parseFloat(null!=(g=v.getAttribute("width"))?g:"0"),i=parseFloat(null!=(y=v.getAttribute("height"))?y:"0");if(!n||!i)continue;return{element:v,points:[[e,t],[e+n,t],[e+n,t+i],[e,t+i],[e,t]],shapeType:"rect"}}default:continue}return null}function z_(e){var t;let n=[];for(let i=0;i<e.length;i++){let r=null!=(t=n[n.length-1])?t:[0,0],a=e[i];switch(a[0]){case"M":case"L":n.push([a[1],a[2]]);continue;case"C":n.push(...P_({x:r[0],y:r[1]},{x:a[1],y:a[2]},{x:a[3],y:a[4]},{x:a[5],y:a[6]}).map((e=>[e.x,e.y])).slice(1));continue;case"Q":n.push(...D_({x:r[0],y:r[1]},{x:a[1],y:a[2]},{x:a[3],y:a[4]}).map((e=>[e.x,e.y])).slice(1));continue}}return n}function W_(e){let t={};if(e.hasAttribute("fill")?(t.fill=e.getAttribute("fill"),e.removeAttribute("fill")):e.style.fill&&(t.fill=e.style.fill),t.fill){let e=j_.exec(t.fill);e&&(t.fillOpacity=parseFloat(e[4]),t.fill=`rgb(${e[1]}, ${e[2]}, ${e[3]})`)}if(e.hasAttribute("fill-opacity")?(t.fillOpacity=parseFloat(e.getAttribute("fill-opacity")),e.removeAttribute("fill-opacity")):e.style.fillOpacity&&(t.fillOpacity=parseFloat(e.style.fillOpacity)),e.hasAttribute("stroke")?(t.stroke=e.getAttribute("stroke"),e.removeAttribute("stroke")):e.style.stroke&&(t.stroke=e.style.stroke),t.stroke){let e=j_.exec(t.stroke);e&&(t.strokeOpacity=parseFloat(e[4]),t.stroke=`rgb(${e[1]}, ${e[2]}, ${e[3]})`)}e.hasAttribute("stroke-opacity")?(t.strokeOpacity=parseFloat(e.getAttribute("stroke-opacity")),e.removeAttribute("stroke-opacity")):e.style.strokeOpacity&&(t.strokeOpacity=parseFloat(e.style.strokeOpacity)),e.hasAttribute("stroke-width")?(t.strokeWidth=e.getAttribute("stroke-width"),e.removeAttribute("stroke-width")):e.style.strokeWidth&&(t.strokeWidth=e.style.strokeWidth),e.hasAttribute("stroke-dasharray")?(t.strokeDasharray=e.getAttribute("stroke-dasharray"),e.removeAttribute("stroke-dasharray")):e.style.strokeDasharray&&(t.strokeDasharray=e.style.strokeDasharray);let n=e;for(;"svg"!==n.tagName.toLowerCase();)if(n=n.parentElement,null===n)throw new Error("Could not find root SVG element");return{svg:n.outerHTML,style:Object.keys(t).length>0?t:void 0}}function G_(e){return"SpecificResource"===e.type?[e.source,{selector:e.selector}]:[e,{selector:null}]}function K_(e){function t(t){let n=t?"string"==typeof t?e.get(t):t:null;if(!n)return[];let i=e.get(n.items),r=[];for(let a of i)r.push(...e.get(a.items));return r}function n(n,i=[]){let r=Array.isArray(n)?n:t(n),a=[],s=null,o=[];for(let t of r){if("Annotation"!==t.type)throw new Error("getPaintables() accept either a canvas or list of annotations");let n=e.get(t.body);for(let r of n){let[l,{selector:u}]=G_(r),c=(l.type||"unknown").toLowerCase();if("choice"!==c)-1===a.indexOf(c)&&a.push(c),o.push({type:c,resource:l,target:t.target,selector:u});else{let t=e.get(l.items),a=i.length?i.map((e=>t.find((t=>
102t.id===e)))).filter(Boolean):[t[0]];0===a.length&&a.push(t[0]),s={type:"single-choice",items:t.map((e=>({id:e.id,label:e.label,selected:-1!==a.indexOf(e)}))),label:r.label},n.push(...a)}}}return{types:a,items:o,choice:s}}function i(e){let{choice:t}=n(e);return t}return H(t,"e"),H(n,"n"),H(i,"i"),{getAllPaintingAnnotations:t,getPaintables:n,extractChoices:i}}function Y_(e,t){for(let n of t.items){if("Canvas"===n.type)return n;if("Range"===n.type){let t=Y_(e,e.get(n));if(t)return t}}return null}function Z_(e,t,n){for(let i of t.structures){let t=X_(e,e.get(i),n);if(t)return t}return null}function X_(e,t,n){var i;for(let r of t.items){let a=null==(i=r.id)?void 0:i.split("#")[0];if("SpecificResource"===r.type&&r.source===n||"Canvas"===r.type&&n===a)return t;if("Range"===r.type){let t=X_(e,e.get(r),n);if(t)return t}}return null}H(U_,"Lc"),H(V_,"hz"),H(q_,"k1"),H(z_,"dz"),H(W_,"fz"),H(G_,"pz"),H(K_,"M1"),H(Y_,"nf"),H(Z_,"F1"),H(X_,"z1");var Q_=(H(U=class{constructor(e){this.__vault=null,this.__eventsHelper=null,this.__stylesHelper=null,this.__e={},this.htmlProps={},this.handlers=[],this.__annotation="string"==typeof e?{id:e,type:"Annotation"}:{id:e.id,type:"Annotation"},this.classList=new Wv((e=>{this.__stylesHelper&&this.__stylesHelper.applyStyles(this.__annotation,"html",ae(re({},this.htmlProps),{className:e}))})),this.source=e}get className(){return this.classList.getClassName()}set className(e){this.classList.className=e}set href(e){this.__stylesHelper&&this.__stylesHelper.applyStyles(this.__annotation,"html",{href:e}),this.htmlProps.href=e}set title(e){this.__stylesHelper&&this.__stylesHelper.applyStyles(this.__annotation,"html",{title:e}),this.htmlProps.title=e}set target(e){this.__stylesHelper&&this.__stylesHelper.applyStyles(this.__annotation,"html",{target:e}),this.htmlProps.target=e}applyStyle(e){this.style=Gd(this.style,e),this.__stylesHelper&&this.__stylesHelper.applyStyles(this.__annotation,"atlas",this.style)}addEventListener(e,t){this.__eventsHelper&&this.__eventsHelper.addEventListener(this.__annotation,e,t),this.handlers.push([e,t])}removeEventListener(e,t){this.__eventsHelper&&this.__eventsHelper.removeEventListener(this.__annotation,e,t),this.handlers=this.handlers.filter((n=>n[0]===e&&n[1]===t))}bindToVault(e){this.__vault=e,this.__eventsHelper=Gv(e),this.__stylesHelper=Kv(e);for(let[t,n]of this.handlers)this.__eventsHelper.addEventListener(this.__annotation,t,n);this.__stylesHelper.applyStyles(this.__annotation,"atlas",this.style),this.__stylesHelper.applyStyles(this.__annotation,"html",ae(re({},this.htmlProps),{className:this.classList.getClassName()}))}getSource(){return this.source}getAnnotation(){return this.__annotation}beforeRemove(){if(this.onBeforeRemove&&this.onBeforeRemove(),this.__vault){if(this.__eventsHelper)for(let[e,t]of this.handlers)this.__eventsHelper.removeEventListener(this.__annotation,e,t);this.__vault=null}}},"rf"),U);Cn();var J_=pe(Ln(),1),ew="@iiif/IMPORT_ENTITIES",tw="@iiif/MODIFY_ENTITY_FIELD",nw="@iiif/REORDER_ENTITY_FIELD",iw="@iiif/ADD_REFERENCE",rw="@iiif/REMOVE_REFERENCE",aw=(0,J_.createAction)(ew)(),sw=(0,J_.createAction)(tw)(),ow=(0,J_.createAction)(nw)(),lw=(0,J_.createAction)(iw)(),uw=(0,J_.createAction)(rw)(),cw={importEntities:aw,modifyEntityField:sw,reorderEntityField:ow,addReference:lw,removeReference:uw},dw="@iiif/ADD_MAPPING",pw="@iiif/ADD_MAPPINGS",hw=(0,J_.createAction)(dw)(),fw=(0,J_.createAction)(pw)(),mw="@iiif/SET_META_VALUE",gw="@iiif/SET_META_VALUE_DYNAMIC",yw="@iiif/UNSET_META_VALUE",vw={setMetaValue:(0,J_.createAction)(mw)(),setMetaValueDynamic:(0,J_.createAction)(gw)(),unsetMetaValue:(0,J_.createAction)(yw)()},bw="RESOURCE_ERROR",_w="RESOURCE_LOADING",ww="RESOURCE_READY",Sw="@iiif/REQUEST_RESOURCE",Cw="@iiif/REQUEST_ERROR",kw="@iiif/REQUEST_MISMATCH",xw="@iiif/REQUEST_COMPLETE",Tw="@iiif/REQUEST_OFFLINE_RESOURCE",Ew=(0,J_.createAction)(Sw)(),Aw=(0,J_.createAction)(Cw)(),Lw=(0,J_.createAction)(kw)(),Iw=(0,J_.createAction)(xw)();(0,J_.createAction)(Tw)();var $w="@iiif/BATCH",Dw="@iiif/BATCH_IMPORT",Pw=(0,J_.createAction)($w)();(0,J_.createAction)(Dw)();var Ow=H(((e,t)=>{let{entities:n,resource:i,mapping:r}=_h(t);if(void 0===i.id)return[Aw({id:e,message:"ID is not defined in resource."})];let a=[aw({entities:n}),fw({mapping:r})];return i.id!==e&&(a.push(hw({id:e,type:i.type})),a.push(Lw({requestId:e,actualId:i.id}))),a.push(Iw({id:e})),a}),"Pz"),Mw=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Rw(e,t){return!!(e===t||Mw(e)&&Mw(t))}function Nw(e,t){if(!Array.isArray(e)||!Array.isArray(t))return e===t;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Rw(e[n],t[n]))return!1;return!0}function Fw(e,t){let n=e.iiif.requests[t],i=e.iiif.mapping[t];if(i&&e.iiif.entities[i][n.resourceUri])return e.iiif.entities[i][n.resourceUri]}function Bw(e,t,{waitTimeout:n=30}={}){return(i,r)=>V(this,null,(function*(){let a=e.getState(),s=a.iiif.requests[i];if(s)switch(s.loadingState){case bw:break;case _w:{let t,r=!1;try{let a=yield Promise.race([new Promise(((n,a)=>{r||(t=e.subscribe((()=>{let t=e.getState();if(t.iiif.requests[i].loadingState!==bw){if(t.iiif.requests[i].loadingState===ww){let e=Fw(t,i);e?n(e):a()}}else a()})))})),new Promise(((e,t)=>setTimeout((()=>{r=!0,t()}),60*n)))]);if(t&&t(),a)return a}catch(o){t&&t();break}break}case ww:{let e=Fw(a,i);if(e)return e;break}}e.dispatch(Ew({id:i}));try{let n=yield t(i,r);
102!n.id&&!n["@id"]&&(n["@type"]&&(n["@id"]=i),n.id=i);let a=Ow(i,n);return e.dispatch(Pw({actions:a})),Fw(e.getState(),i)}catch(l){throw e.dispatch(Aw({id:i,message:l.toString()})),l}}))}function Hw(){return{Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}}}H(Rw,"Iz"),H(Nw,"D1"),H(Fw,"sf"),H(Bw,"j1"),H(Hw,"Tz");var jw=H(((e={},t)=>{switch(t.type){case dw:return ae(re({},e),{[t.payload.id]:t.payload.type});case pw:return re(re({},e),t.payload.mapping);default:return e}}),"Oz");function Uw(e,t,n,i){return!!(e[n]&&e[n][t]&&e[n][t][i]&&Array.isArray(e[n][t][i]))}function Vw(e,t){let n={},i=[];for(let[r,a]of Object.entries(e||{})){i.push(r);let e=(t||{})[r];e&&0!==e.length?n[r]=e:n[r]=a}for(let[r,a]of Object.entries(t||{}))-1===i.indexOf(r)&&(n[r]=a);return n}H(Uw,"of"),H(Vw,"kz");var qw=H(((e={Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}},t)=>{var n;switch(t.type){case tw:{if(!e[t.payload.type]||!e[t.payload.type][t.payload.id])return e;let n=e[t.payload.type][t.payload.id];return"string"==typeof n?e:ae(re({},e),{[t.payload.type]:ae(re({},e[t.payload.type]),{[t.payload.id]:ae(re({},n),{[t.payload.key]:t.payload.value})})})}case nw:{if(!Uw(e,t.payload.id,t.payload.type,t.payload.key))return e;let n=e[t.payload.type][t.payload.id];if("string"==typeof n)return e;let i=Array.from(n[t.payload.key]),[r]=i.splice(t.payload.startIndex,1);return i.splice(t.payload.endIndex,0,r),ae(re({},e),{[t.payload.type]:ae(re({},e[t.payload.type]),{[t.payload.id]:ae(re({},n),{[t.payload.key]:i})})})}case ew:{let n=Object.keys(t.payload.entities),i=re({},e);for(let r of n){let n=t.payload.entities[r],a=re({},e[r]||{}),s=!1,o=Object.keys(n||{})||[];if(n&&o){for(let t of o)s=!0,a[t]=e[r][t]?Vw(e[r][t],n[t]):n[t];s&&(i[r]=a)}}return i}case iw:{if(!Uw(e,t.payload.id,t.payload.type,t.payload.key))return e;let n=e[t.payload.type][t.payload.id],i=Array.from(n[t.payload.key]);return i.splice(t.payload.index||i.length+1,0,t.payload.reference),ae(re({},e),{[t.payload.type]:ae(re({},e[t.payload.type]),{[t.payload.id]:ae(re({},n),{[t.payload.key]:i})})})}case rw:{if(!Uw(e,t.payload.id,t.payload.type,t.payload.key))return e;let i=e[t.payload.type][t.payload.id],r=Array.from(i[t.payload.key]),a=t.payload.index||r.findIndex((e=>e&&e.id===t.payload.reference.id));return-1===a||(null==(n=r[a])?void 0:n.id)!==t.payload.reference.id?e:(r.splice(a,1),ae(re({},e),{[t.payload.type]:ae(re({},e[t.payload.type]),{[t.payload.id]:ae(re({},i),{[t.payload.key]:r})})}))}default:return e}}),"Mz"),zw=H(((e={},t)=>{switch(t.type){case Sw:case Tw:return ae(re({},e),{[t.payload.id]:{requestUri:t.payload.id,loadingState:_w,uriMismatch:!1,resourceUri:t.payload.id}});case kw:return ae(re({},e),{[t.payload.requestId]:ae(re({},e[t.payload.requestId]||{}),{uriMismatch:!0,resourceUri:t.payload.actualId}),[t.payload.actualId]:{requestUri:t.payload.requestId,loadingState:e[t.payload.requestId].loadingState,uriMismatch:!0,resourceUri:t.payload.actualId}});case Cw:return ae(re({},e),{[t.payload.id]:ae(re({},e[t.payload.id]||{}),{loadingState:bw,error:t.payload.message})});case xw:return ae(re({},e),{[t.payload.id]:ae(re({},e[t.payload.id]||{}),{loadingState:ww,error:void 0})})}return e}),"Fz"),Ww=H(((e={},t)=>{let{id:n,updateValue:i,value:r,meta:a,key:s}=t&&t.payload||{};switch(t.type){case mw:return ae(re({},e),{[n]:ae(re({},e[n]||{}),{[a]:ae(re({},e[n]&&e[n][a]||{}),{[s]:r})})});case gw:return ae(re({},e),{[n]:ae(re({},e[n]||{}),{[a]:ae(re({},e[n]&&e[n][a]||{}),{[s]:e[n]&&e[n][a]?i(e[n][a][s]):i(void 0)})})});case yw:return e[n]&&e[n][a]&&e[n][a][s]?ae(re({},e),{[n]:ae(re({},e[n]||{}),{[a]:ae(re({},e[n]&&e[n][a]||{}),{[s]:void 0})})}):e;default:return e}}),"zz");function Gw(e){return(t,n)=>n&&n.type===$w?n.payload.actions.reduce(e,t):n&&n.type===Dw?n.payload.state:e(t,n)}H(Gw,"Lz");var Kw=Qh({mapping:jw,entities:qw,requests:zw,meta:Ww}),Yw=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Jh;function Zw(e={}){let{enableDevtools:t=!0,iiifStoreName:n="iiif",defaultState:i={},extraMiddleware:r=[],customReducers:a={}}=e;return Zh(Gw(Qh(re({[n]:Kw},a))),i,t?Yw(ef(...r)):Jh(ef(...r)))}function Xw(e){return{all:e=e||new Map,on:H((function(t,n){var i=e.get(t);i?i.push(n):e.set(t,[n])}),"on"),off:H((function(t,n){var i=e.get(t);i&&(n?i.splice(i.indexOf(n)>>>0,1):e.set(t,[]))}),"off"),emit:H((function(t,n){var i=e.get(t);i&&i.slice().map((function(e){e(n)})),(i=e.get("*"))&&i.slice().map((function(e){e(t,n)}))}),"emit")}}H(Zw,"jz"),H(Xw,"Bz");var Qw=(H(q=class{constructor(e,t){fe(this,"options"),fe(this,"store"),fe(this,"emitter"),fe(this,"isBatching",!1),fe(this,"batchQueue",[]),fe(this,"remoteFetcher"),fe(this,"staticFetcher"),fe(this,"defaultFetcher",(e=>fetch(e).then((e=>e.json())))),fe(this,"middleware",(e=>t=>n=>{if(n.type===$w){for(let t of n.payload.actions)this.emitter.emit(t.type,{realAction:t,state:e.getState()});let i=t(n);for(let e of n.payload.actions)this.emitter.emit(`after:${n.type}`,{action:n,state:i});return i}this.emitter.emit(n.type,{action:n,state:e.getState()});let i=t(n);return this.emitter.emit(`after:${n.type}`,{action:n,state:i}),i})),this.options=Object.assign({reducers:{},middleware:[],defaultState:{},customFetcher:this.defaultFetcher,enableDevtools:!0},e||{}),this.store=t||Zw({customReducers:this.options.reducers,extraMiddleware:[...this.options.middleware,this.middleware],defaultState:this.options.defaultState,enableDevtools:this.options.enableDevtools}),this.emitter=Xw(),this.remoteFetcher=Bw(this.store,this.options.customFetcher),this.staticFetcher=Bw(this.store,((e,t)=>
102t))}batch(e){this.isBatching=!0;try{e(this),this.store.dispatch(Pw({actions:this.batchQueue}))}catch(t){throw this.batchQueue=[],this.isBatching=!1,t}this.batchQueue=[],this.isBatching=!1}asyncBatch(e){return V(this,null,(function*(){this.isBatching=!0;try{yield e(this),this.store.dispatch(Pw({actions:this.batchQueue}))}catch(t){throw this.batchQueue=[],this.isBatching=!1,t}this.batchQueue=[],this.isBatching=!1}))}modifyEntityField(e,t,n){this.dispatch(cw.modifyEntityField({id:e.id,type:e.type,key:t,value:n}))}dispatch(e){this.isBatching?this.batchQueue.push(e):this.store.dispatch(e)}serialize(e,t){return xh(this.getState().iiif,e,t)}toPresentation2(e){return this.serialize(e,Ph)}toPresentation3(e){return this.serialize(e,Hh)}hydrate(e,t){return this.get(e,t,{skipSelfReturn:!1})}get(e,t,n={}){"string"!=typeof t&&(n=t||{},t=void 0);let{skipSelfReturn:i=!0}=n||{};if(Array.isArray(e))return e.map((e=>this.get(e,n)));let r=this.getState();if("string"==typeof e){let n=t||r.iiif.mapping[e];if(!n)return i?null:{id:e,type:"unknown"};e={id:e,type:n}}let a=t||e.type,s=e.id,o=r.iiif.entities[a];if(!o){let t=r.iiif.requests[s];return t&&t.resourceUri!==s?this.get(t.resourceUri,n):i?null:e}return o[e.id]||(i?null:e)}select(e){return e(this.getState())}getStore(){return this.store}getState(){return this.store.getState()}loadManifest(e,t){let n="string"==typeof e?e:e.id;return this.load(n,t)}loadCollection(e,t){let n="string"==typeof e?e:e.id;return this.load(n,t)}load(e,t){let n="string"==typeof e?e:e.id;return t?this.staticFetcher(n,t):this.remoteFetcher(n)}areInputsEqual(e,t){return Nw(e,t)}subscribe(e,t,n){typeof n>"u"&&(typeof t>"u"||!1===t||!0===t)&&(n=t,t=e,e=H((e=>e),"e"));let i=n?null:e(this.store.getState());return n||t(i,this),this.store.subscribe((()=>{let n=this.store.getState(),r=e(n);i!==r&&!Nw(i,r)&&t(r,this),i=r}))}ensureLoaded(e){return V(this,null,(function*(){let t="string"==typeof e?e:e.id;this.requestStatus(t)||(yield this.load(t))}))}requestStatus(e){return this.select((t=>t.iiif.requests[e]))}getResourceMeta(e,t){let n=this.getState().iiif.meta[e];if(n)return t?n[t]:n}setMetaValue([e,t,n],i){this.dispatch("function"==typeof i?vw.setMetaValueDynamic({id:e,meta:t,key:n,updateValue:i}):vw.setMetaValue({id:e,meta:t,key:n,value:i}))}},"sS"),q);function Jw(){return typeof self<"u"?self:typeof window<"u"?window:typeof cv<"u"?cv:{}}function eS(e){let t=Jw();try{let e=t.IIIF_VAULT;if(e)return e}catch(i){}let n=new Qw(e);try{t.IIIF_VAULT=n}catch(i){}return n}H(Jw,"Wz"),H(eS,"Zs");var tS=iS(),nS=iS();function iS(e){let t={},n=H(((e,n)=>{var r;return void 0===t[e]&&(t[e]=[]),null==(r=t[e])||r.push(n),()=>{i(e,n)}}),"n"),i=H(((e,n)=>{var i,r,a;let s=null!=(r=null==(i=t[e])?void 0:i.indexOf(n))?r:-1;null==(a=t[e])||a.splice(s>>>0,1)}),"i");return{on:n,off:i,once:H(((e,t)=>{let r=H((n=>{t(n),i(e,r)}),"h");n(e,r)}),"once"),emit:H(((e,n)=>{var i;null==(i=t[e])||i.forEach((e=>{try{e(n)}catch(t){}}))}),"emit")}}function rS(e){let t=ot(),n=1/.75,i=xv(),r=e.vault||i||eS(),a=Xy(),s=ot({}),{isReady:o,isConfigBlocking:l,setIsReady:u,internalConfig:c}=Av(e.preset,((e,n)=>{t.current?t.current.dispatchEvent(new CustomEvent("media",{detail:{query:e,config:n}})):s.current[e]=n})),d=ut((()=>Gv(r)),[r]),p=ut((()=>Kv(r)),[r]),h=ut((()=>p_(r,{imageServiceLoader:a})),[r,a]),[f]=Lv(e.nested||c.nested,{parse:Vv,defaultValue:!1}),[m]=Lv(e.x||c.x,{parse:qv,defaultValue:0}),[g]=Lv(e.y||c.y,{parse:qv,defaultValue:0}),y=ot(),[v]=Lv(e.render||c.render,{defaultValue:"canvas"}),[b]=Lv(e.class),[_]=Lv(e.virtualSizes||c.virtualSizes,{parse:Bv}),[w]=Lv(e.height||c.height,{parse:qv}),[S]=Lv(e.width||c.width,{parse:qv}),[C]=Lv(e.a11yRole||void 0),[k]=Lv(e.a11yTitle||void 0),[x]=Lv(e.interactive||c.interactive,{parse:Vv,defaultValue:!0}),[T]=Lv(e.background),[E]=Lv(e.viewport||c.viewport,{parse:Vv,defaultValue:!0}),[A]=Lv(e.responsive||c.responsive,{parse:Vv,defaultValue:!0}),[L]=Lv(e.moveEvents||c.moveEvents,{parse:Vv,defaultValue:!1}),[I]=Lv(e.granularMoveEvents||c.granularMoveEvents,{parse:Vv,defaultValue:!1}),[$]=Lv(e.clickToEnableZoom||e.clickToEnableZoom,{parse:Vv,defaultValue:!0}),[D]=Lv(e.disableKeyboardNavigation||c.disableKeyboardNavigation,{parse:Vv,defaultValue:!1}),[P]=Lv(e.debug||c.debug,{parse:Vv}),[O]=Lv(e.enablePanOnWait||c.enablePanOnWait,{parse:Vv,defaultValue:void 0}),[M]=Lv(e.ignoreSingleFingerTouch||c.ignoreSingleFingerTouch,{parse:Vv,defaultValue:void 0}),[R]=Lv(e.requireMetaKeyForWheelZoom||c.requireMetaKeyForWheelZoom,{parse:Vv,defaultValue:!1}),[N]=Lv(e.panOnWaitDelay||c.panOnWaitDelay,{parse:qv,defaultValue:40}),[F]=Lv(e.enableNavigator||c.enableNavigator,{parse:Vv}
102),[B,j,U,q]=Lv(e.target||e.region||c.target||c.region,{parse:Hv}),[z,W,,G]=Lv(e.rotation,{parse:qv}),[K,Y,,Z]=Lv(e.highlight||c.highlight,{parse:Hv}),[X]=Lv(e.styleId||c.styleId),[Q]=Lv(e.highlightCssClass||c.highlightCssClass,{defaultValue:"canvas-panel-highlight"}),[J,,,ee]=Lv(e.preferredFormats||c.preferredFormats,{parse:jv}),[te]=Lv(e.homeCover,{parse:H((e=>"false"!==e&&("true"===e||("start"===e?"start":"end"===e&&"end"))),"parse")}),[ne,ie]=Lv(e.atlasMode||c.atlasMode),[se,oe]=it(""),[le,ue]=it(""),[ce]=Lv(e.stylesheet||c.stylesheet),de=ot({}),[pe,he]=it("");function fe(t,n={}){return Lv(e[t]||c[t],n)}function me(){if(t.current&&y.current){let e=t.current.getBoundingClientRect(),n=y.current.world.height||1,i=y.current.world.width||1;return i/n<1?e.height/n:e.width/i}return-1}H(fe,"Xc"),H(me,"no");let ge=ot({});function ye(e){let t=e._lastGoodScale,i=me(),r=e.getZoomedPosition(n,{}),a=e.getZoomedPosition(.75,{}),s=Math.round(a[3]),o=Math.round(a[4]),l=Math.round(r[3]),u=Math.round(r[4]),c=Math.round(e.target[3]),d=Math.round(e.target[4]);return{canZoomIn:d>o&&c>s,canZoomOut:d+2<u&&c+2<l,scaleFactor:e.getScaleFactor(),current:t,max:e.maxScaleFactor,min:i,worldHeight:e.world.height,worldWidth:e.world.width}}function ve(t){st((()=>{e.__registerPublicApi&&e.__registerPublicApi(t)}),[])}return at((()=>{let e=tS.on("onResetSeen",(()=>{ge.current={}})),n=H((e=>{let n=e.choice;if((null==t?void 0:t.current)&&n&&n.items){let i=n.items;i.sort(((e,t)=>e.id<t.id?-1:e.id>t.id?1:0));let r=i.map((e=>e.id)).join(""),a=i.map((e=>e.selected)).join("");if(ge.current[r]&&ge.current[r]==a)return;ge.current[r]=a,n.partOf=e.partOf,t.current.dispatchEvent(new CustomEvent("choice",{detail:{choice:n}}))}}),"Re"),i=H((e=>{null!=t&&t.current&&t.current.dispatchEvent(new ErrorEvent("cp-load-error",{message:e.message,error:e.error}))}),"Xe"),r=nS.on("onErrorEvent",i),a=tS.on("onChoiceChange",n);return()=>{r(),e(),a()}}),[]),at((()=>{if(y.current&&t.current){let e=re({},ye(y.current));"queued"==se&&e&&(null==e?void 0:e.scaleFactor)<1&&e.scaleFactor>0&&null!=t.current&&(oe("fired"),setTimeout((()=>{var n;null==(n=t.current)||n.dispatchEvent(new CustomEvent("world-ready",{detail:e}))}),100))}}),[o,t.current,pe,se]),at((()=>{var e;let n=y.current,i=null==(e=y.current)?void 0:e.transitionManager;if(n&&i&&o){let e=!1,r=0;return n.world.addLayoutSubscriber(((a,s)=>V(this,null,(function*(){if("repaint"!==a&&t.current){if(["recalculate-world-size","zoom-to","go-home","goto-region"].includes(a)){if("recalculate-world-size"==a&&oe("queued"),i.hasPending()){if(e)return;e=!0,yield new Promise((e=>setTimeout(e,i.pendingTransition.total_time-i.pendingTransition.elapsed_time))),e=!1}let o=me(),l=Math.abs(o-n._lastGoodScale)<2e-4;l?r++:r=0;
102let u={detail:re(ae(re({source:a,minZoomCount:r},ye(n)),{isMin:l,isMax:Math.abs(n.maxScaleFactor-n._lastGoodScale)<2e-4}),s||{})};return void t.current.dispatchEvent(new CustomEvent("zoom",u))}t.current.dispatchEvent(new CustomEvent(a,{detail:s}))}}))))}return()=>{}}),[o,pe]),H(ye,"io"),at((()=>{var e;let n=y.current,i=null==(e=y.current)?void 0:e.transitionManager;if(o&&n&&L){let e=-1,r=-1,a=!1;return n.registerHook("useAfterFrame",(()=>V(this,null,(function*(){if(t.current&&(n.target[1]!==e||n.target[2]!==r)){if(!I&&i){if(a)return;i.hasPending()&&(a=!0,yield new Promise((e=>setTimeout(e,i.pendingTransition.total_time-i.pendingTransition.elapsed_time))),a=!1)}t.current.dispatchEvent(new CustomEvent("move",{detail:{x:n.x,y:n.y,width:n.width,height:n.height,points:n.target,lastX:e,lastY:r}})),e=n.x,r=n.y}}))))}return()=>{}}),[o,L]),H(ve,"_a"),ve((e=>{t.current=e;let i,o,l=!1;if($){i=H((e=>{e.stopPropagation()}),"Re");let t=H((()=>{i&&!l&&(l=!0,e.addEventListener("wheel",i,{capture:!0}),e.addEventListener("touchstart",i,{capture:!0}))}),"B");o=H((()=>{i&&l&&(l=!1,e.removeEventListener("wheel",i,{capture:!0}),e.removeEventListener("touchstart",i,{capture:!0}))}),"Xe"),t(),document.addEventListener("click",(n=>{document.activeElement!==e&&t()}))}e.addEventListener("click",(t=>{o&&o();let n=t.composedPath()[0];n&&e!==document.activeElement&&n.focus()}));let u=Object.keys(s.current);if(u.length){for(let t of u)e.dispatchEvent(new CustomEvent("media",{detail:{query:t,config:s.current[t]}}));s.current={}}return{vault:r,events:d,styles:p,thumbnailHelper:h,imageServiceLoader:a,getRotation:H((()=>G.current),"getRotation"),setRotation:H((t=>{e.setAttribute("rotation",t.toString())}),"setRotation"),getHighlight:H((()=>Z.current),"getHighlight"),setHighlight:H((t=>{"string"==typeof t?e.setAttribute("highlight",t):Y(t)}),"setHighlight"),getTarget:H((()=>q.current),"getTarget"),setTarget:H((t=>{"string"==typeof t?e.setAttribute("target",t):j(t)}),"setTarget"),setDefaultChoiceIds:H((t=>{e.setAttribute("choice-id",t.join(","))}),"setDefaultChoiceIds"),getPosition(){var e,t,n,i;return{x:null==(e=y.current)?void 0:e.x,y:null==(t=y.current)?void 0:t.y,width:null==(n=y.current)?void 0:n.width,height:null==(i=y.current)?void 0:i.height}},getMaxZoom(){var e;return(null==(e=y.current)?void 0:e.maxScaleFactor)||1},getMinZoom:()=>me()||0,makeChoice(e,t){tS.emit("onMakeChoice",{id:e,options:t})},zoomIn(e){y.current&&y.current.world.trigger("zoom-to",{point:e,factor:.75})},zoomOut(e){y.current&&y.current.world.trigger("zoom-to",{point:e,factor:n})},zoomBy(e,t){y.current&&y.current.world.trigger("zoom-to",{point:t,factor:e})},zoomTo(e,t,n){y.current&&y.current.world.zoomTo(e,t,n)},withAtlas(e){y.current?e(y.current):de.current=ae(re({},de.current),{[(new Date).getTime()]:t=>e(t)})},goHome(e=!1){y.current?y.current.world.goHome(e):de.current=ae(re({},de.current),{viewport:H((t=>t.world.goHome(e)),"viewport")})},getZoom(){var e;return null==(e=y.current)?void 0:e._lastGoodScale},getScaleInformation(){let e=y.current;if(null!=e)return re({},ye(e))},goToTarget(e,t={}){y.current?y.current.world.gotoRegion(re(re({},e),t)):de.current=ae(re({},de.current),{viewport:H((n=>{n.world.gotoRegion(re(re({},e),t))}),"viewport")})},setFps(e){y.current?y.current.fpsLimit=e:de.current=ae(re({},de.current),{setFps:H((t=>{t.fpsLimit=e}),"setFps")})},clearTarget(){j(void 0),y.current?y.current.world.goHome(!0):de.current=ae(re({},de.current),{viewport:H((e=>{e.world.goHome(!0)}),"viewport")})},setPreferredFormats(t){e.setAttribute("preferred-formats",t.join(","))},getPreferredFormats:()=>ee.current||[],setMode(t){e.setAttribute("atlas-mode",t)},applyStyles(e,t){p.applyStyles("string"==typeof e?{id:e}:e,"atlas",t)},applyHTMLProperties(e,t){p.applyStyles("string"==typeof e?{id:e}:e,"html",t)},setClassName(e,t){p.applyStyles("string"==typeof e?{id:e}:e,"html",{className:t})},createAnnotationDisplay:e=>new Q_(e),getThumbnail:(e,t,n)=>h.getBestThumbnailAtSize(e,t,n),addVaultEventListener:(e,t,n,i)=>d.addEventListener(e,t,n,i),removeVaultEventListener(e,t,n){d.removeEventListener(e,t,n)},getListenersAsProps:(e,t)=>d.getListenersAsProps(e,t)}})),at((()=>
102{if(y.current){let e=Object.values(de.current);for(let t of e)t(y.current);de.current={}}}),[o]),st((()=>{if(X){let e=document.getElementById(X);e&&ue(e.innerText)}}),[o,X]),st((()=>{if(t.current&&!D){let e=H((e=>{var t,n,i;if(y.current&&y.current.transitionManager){let r,a=y.current.transitionManager,s=a.pendingTransition.done?y.current.target:a.pendingTransition.to,o=.1*Math.min(s[3]-s[1],s[4]-s[2]);switch(e.key){case"=":return void(null==(t=y.current.world)||t.zoomIn());case"-":return void(null==(n=y.current.world)||n.zoomOut());case"0":return void(null==(i=y.current.world)||i.goHome());case"ArrowRight":e.preventDefault(),r=s.slice(0),r[1]=r[1]+o,r[3]=r[3]+o;break;case"ArrowLeft":e.preventDefault(),r=s.slice(0),r[1]=r[1]-o,r[3]=r[3]-o;break;case"ArrowUp":e.preventDefault(),r=s.slice(0),r[2]=r[2]-o,r[4]=r[4]-o;break;case"ArrowDown":e.preventDefault(),r=s.slice(0),r[2]=r[2]+o,r[4]=r[4]+o}r&&a.applyTransition(r,{duration:500,easing:Yu.easeOutExpo,constrain:!0})}}),"Q"),n=t.current;return n.addEventListener("keydown",e),()=>{n.removeEventListener("keydown",e)}}return()=>{}}),[D]),{atlasProps:ut((()=>({children:null,nested:f,responsive:A,viewport:E,enableNavigator:F,onCreated:H((e=>{oe(""),u(!0),he(e.runtime.id),y.current=e.runtime}),"onCreated"),homePosition:B&&B.selector&&"BoxSelector"===B.selector.type?B.selector.spatial:void 0,renderPreset:"static"===v?["static-preset",{interactive:x}]:["default-preset",{interactive:x,unstable_webglRenderer:"webgl"===v,controllerConfig:{ignoreSingleFingerTouch:M,enablePanOnWait:O,requireMetaKeyForWheelZoom:R,panOnWaitDelay:N}}],width:S||void 0,height:w||(A?void 0:512),role:C,title:k})),[A,E,B,v,F,c,C,k]),background:T,isReady:o,isConfigBlocking:l,setIsReady:u,internalConfig:c,target:B,setParsedTarget:U,highlight:K,highlightCssClass:Q,preferredFormats:J,render:v,interactive:x,mode:ne,setMode:ie,virtualSizes:_,styleId:X,responsive:A,viewport:E,debug:P,enableNavigator:F,height:w,width:S,className:b,inlineStyles:le,inlineStyleSheet:ce,vault:r,nested:f,x:m,y:g,rotation:z,homeCover:te,useProp:fe,useRegisterWebComponentApi:ve,runtime:y,webComponent:t}}H(iS,"oS"),H(rS,"fr"),tt(),Cn();var aS=qe(!1);function sS(e){let t=Od();return at((()=>{t&&e.onCreated(t)}),[t]),null}function oS(e){var t=e,{children:n,onCreated:i,responsive:r,viewport:
102a,nested:s}=t,o=oe(t,["children","onCreated","responsive","viewport","nested"]);let[l,u]=it(!1),c=dt(aS);return s||c?ye(_e,null,i?ye(sS,{onCreated:i}):null,n):ye(aS.Provider,{value:!0},ye(Pd,ae(re({},o),{onCreated:H((e=>{if(u(!0),i)return e.runtime.updateNextFrame(),i(e)}),"onCreated"),unstable_noReconciler:!0}),ye(aS.Provider,{value:!0},l?n:null)))}function lS(e){var t=e,{children:n}=t,i=oe(t,["children"]);let r=xv(),{setIsReady:a,atlasProps:s,isReady:o,className:l}=rS(i);return ye(Kg,{vault:r},ye(oS,re({onCreated:H((()=>{a(!0)}),"onCreated"),viewport:!0,className:l||""},s),o?ye("slot",null,n):null))}if(H(sS,"$z"),H(oS,"Js"),tt(),H(lS,"aS"),typeof window<"u"){let e={shadow:!0,onConstruct(e){e._props={__registerPublicApi:H((t=>{Object.assign(e,t(e))}),"__registerPublicApi")}}};$n(lS,"atlas-viewer",[],e),$n(lS,"layout-container",[],e)}tt(),Cn(),tt(),Cn();var uS=H((()=>()=>({})),"lS"),cS=qe(uS);function dS(e,t){let n=ot(),i=dt(cS)||uS;n.current!==t&&i(e),n.current=t}H(dS,"wi"),tt();var pS=pe(In());Cn(),tt(),tt(),Cn();var hS=qe(null);function fS({displayName:e,component:t,customConstructor:n}){let i=Rt((function(e,i){var r=e,{children:a}=r,s=oe(r,["children"]);let[o,l]=it(),u=Od(),c=dt(hS),d=ot(s);return at((()=>(u&&u.runtime&&l(n?n(s):new t),()=>{})),[]),at((()=>{if(u&&u.runtime&&o){let e=u.runtime,t=u.runtime.world,n=c||t;n.appendChild(o),i&&("function"==typeof i?i(o):i.current=o),o instanceof Au&&(e.world=o),o instanceof Eu||(e.pendingUpdate=!0,e.world&&e.world.needsRecalculate&&(e.world.recalculateWorldSize(),e.world.triggerRepaint()));let r=n,a=o;return()=>{a&&(r.removeChild(a),e.pendingUpdate=!0,e.world&&e.world.needsRecalculate&&(e.world.recalculateWorldSize(),e.world.triggerRepaint()))}}return()=>{}}),[o,null==u?void 0:u.runtime]),at((()=>{o&&u&&u.runtime&&(ad(u.runtime.world,s),rd(o,d.current,s),d.current=s,u.runtime.pendingUpdate=!0,u.runtime.world&&(u.runtime.world.needsRecalculate=!0,u.runtime.world.needsRecalculate&&(u.runtime.world.recalculateWorldSize(),u.runtime.world.triggerRepaint())))}),[o,s]),o?ye(hS.Provider,{value:o},a):null}));return i.displayName=e,Mt(i)}H(fS,"Di"),tt(),Cn();var mS=Object.defineProperty,gS=H(((e,t,n)=>t in e?mS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n),"Hz"),yS=H(((e,t,n)=>(gS(e,"symbol"!=typeof t?t+"":t,n),n)),"Bc");function vS(e){return e.endsWith("info.json")?e:e.endsWith("/")?`${e}info.json`:`${e}/info.json`}H(vS,"ji");var bS="http://library.stanford.edu/iiif/image-api/compliance.html#level1",_S="http://library.stanford.edu/iiif/image-api/compliance.html#level2",wS="http://library.stanford.edu/iiif/image-api/conformance.html#level1",SS="http://library.stanford.edu/iiif/image-api/conformance.html#level2",CS="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",kS="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",xS="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",TS="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",ES="http://iiif.io/api/image/1/level1.json",AS="http://iiif.io/api/image/1/profiles/level1.json",LS="http://iiif.io/api/image/1/level2.json",IS="http://iiif.io/api/image/1/profiles/level2.json",$S="http://iiif.io/api/image/2/level1.json",DS="http://iiif.io/api/image/2/profiles/level1.json",PS="http://iiif.io/api/image/2/level2.json",OS="http://iiif.io/api/image/2/profiles/level2.json",MS="level1",RS="level2",NS="http://iiif.io/api/image/2/level1",FS="http://iiif.io/api/image/2/level2",BS="https://iiif.io/api/image/1.1/compliance/#level1",HS="https://iiif.io/api/image/1.1/compliance/#level2",jS=[FS,_S,SS,kS,TS,LS,IS,PS,OS,RS,HS],US=[...jS,NS,bS,wS,CS,xS,ES,AS,$S,DS,MS,BS],VS=["http://iiif.io/api/image/2/level0",NS,FS,"http://library.stanford.edu/iiif/image-api/compliance.html#level0",bS,_S,"http://library.stanford.edu/iiif/image-api/conformance.html#level0",wS,SS,"http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",CS,kS,"http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",xS,TS,"http://iiif.io/api/image/1/level0.json","http://iiif.io/api/image/1/profiles/level0.json",ES,AS,LS,IS,"http://iiif.io/api/image/2/level0.json","http://iiif.io/api/image/2/profiles/level0.json",$S,DS,PS,OS,"level0",MS,RS,"https://iiif.io/api/image/1.1/compliance/#level0",BS,HS],qS={extraFormats:["jpg"],extraQualities:["default"],extraFeatures:["sizeByWhListed"]},zS={extraFormats:["jpg"],extraQualities:["default"],extraFeatures:["baseUriRedirect","cors","jsonldMediaType","regionByPx","regionSquare","sizeByWhListed","sizeByH","sizeByW","sizeByWh"]},WS={extraFormats:["jpg","png"],extraQualities:["default"],extraFeatures:["baseUriRedirect","cors","jsonldMediaType","regionByPct","regi
102onByPx","regionSquare","rotationBy90s","sizeByWhListed","sizeByConfinedWh","sizeByH","sizeByPct","sizeByW","sizeByWh"]};function GS(e){return-1!==jS.indexOf(e)?WS:-1!==US.indexOf(e)?zS:qS}function KS(e){let t=e?Array.isArray(e.profile)?e.profile:[e.profile]:[],n={extraQualities:[],extraFormats:[],extraFeatures:[]};for(let i of t)if("string"==typeof i&&(i=GS(i)),i){if(i.formats)for(let e of i.formats)-1===n.extraFormats.indexOf(e)&&n.extraFormats.push(e);if(i.qualities)for(let e of i.qualities)-1===n.extraQualities.indexOf(e)&&n.extraQualities.push(e);if(i.supports)for(let e of i.supports)-1===n.extraFeatures.indexOf(e)&&n.extraFeatures.push(e);if(i.maxHeight&&(n.maxHeight=i.maxHeight),i.maxWidth&&(n.maxWidth=i.maxWidth),i.maxArea&&(n.maxArea=i.maxArea),i.extraFormats)for(let e of i.extraFormats)-1===n.extraFormats.indexOf(e)&&n.extraFormats.push(e);if(i.extraQualities)for(let e of i.extraQualities)-1===n.extraQualities.indexOf(e)&&n.extraQualities.push(e);if(i.extraFeatures)for(let e of i.extraFeatures)-1===n.extraFeatures.indexOf(e)&&n.extraFeatures.push(e);i.maxHeight&&(n.maxHeight=i.maxHeight),i.maxWidth&&(n.maxWidth=i.maxWidth),i.maxArea&&(n.maxArea=i.maxArea)}if(e.extraFormats)for(let i of e.extraFormats)-1===n.extraFormats.indexOf(i)&&n.extraFormats.push(i);if(e.extraFeatures)for(let i of e.extraFeatures)-1===n.extraFeatures.indexOf(i)&&n.extraFeatures.push(i);if(e.extraQualities)for(let i of e.extraQualities)-1===n.extraQualities.indexOf(i)&&n.extraQualities.push(i);return n}function YS(e){try{if("full"===e)return{full:!0};if("square"===e)return{square:!0};let t=e.startsWith("pct:"),n=e.substr(t?4:0).split(",").map((e=>parseFloat(e)));return{x:n[0],y:n[1],w:n[2],h:n[3],percent:t}}catch(tvt){throw new Error("Expected 'full', 'square' or 'x,y,w,h'. Found "+e)}}function ZS(e){let t={upscaled:!1,max:!1,confined:!1};if("^"===e[0]&&(t.upscaled=!0,e=e.slice(1)),"max"===e||"full"===e)return t.max=!0,t.serialiseAsFull="full"===e,t;if("!"===e[0]&&(t.confined=!0,e=e.slice(1)),"p"===e[0])return t.percentScale=parseFloat(e.slice(4)),t;let n=e.split(",").map((e=>e.trim()));return n.length&&typeof n[0]<"u"&&(""!==n[0]&&(t.width=parseInt(n[0],10)),typeof n[1]<"u"&&""!==n[1]?(t.height=parseInt(n[1],10),t.version=2):t.version=3),t}function XS(e){let t={angle:0};if("!"===e[0]&&(t.mirror=!0,e=e.substr(1)),t.angle=parseFloat(e)%360,Number.isNaN(t.angle))throw new Error(`Invalid rotation ${e}`);return t}function QS(e,t=""){let n=e.match(/^(([a-zA-Z]+):\/\/([^/]+))?((.*)+)/);if(!n)throw new Error(`Invalid or unknown input ${e}`);let i=n[2],r=n[3],a=n[4];if("/"===a[0]&&(a=a.substring(1)),t.length>0){if("/"===t[0]&&(t=t.substring(1)),t!==a.substring(0,t.length))throw new Error(`Path does not start with prefix (path: ${a}, prefix: ${t})`);a=a.substring(t.length)}return{scheme:i,server:r,path:a,prefix:t}}function JS(e,t=""){let{path:n,scheme:i,server:r,prefix:a}=QS(e,t),s=(n||"").split("/").reverse(),[o,l,u,c,...d]=s,p=d.reverse().filter(Boolean).join("/");if(1===s.length||""===o)return{type:"base",scheme:i,server:r,prefix:a,identifier:p};if("info.json"===o){let[,...e]=s;return{type:"info",scheme:i,server:r,prefix:a,identifier:e.reverse().filter(Boolean).join("/")}}let h=(o||"").split(".");if(typeof h[1]>"u"||typeof h[0]>"u"||typeof c>"u"||typeof u>"u"||typeof l>"u")throw new Error("Invalid image request");return{type:"image",scheme:i,server:r,prefix:a,identifier:p,originalPath:n,region:YS(c),size:ZS(u),rotation:XS(l),quality:h[0],format:h[1]}}function eC(e){let t=JS(vS(e.id));if("info"!==t.type)throw new Error("Invalid service URL");let n=KS(e);return{identifier:t.identifier,originalPath:"",server:t.server,prefix:t.prefix,scheme:t.scheme,type:"image",quality:-1===n.extraQualities.indexOf("default")?n.extraQualities[0]:"default",region:{full:!0},size:{max:!0,upscaled:!1,confined:!1},format:"jpg",rotation:{angle:0}}}function tC(e,t,n){let i=n.length,r=[];for(let a=0;a<i;a++){let t=n[a];if(t){let n=t.width;r.push(e/n)}}return r}function nC(e,t,n){let i=n.length,r=[];for(let a=0;a<i;a++){let i=n[a];i&&r.push({width:Math.floor(e/i),height:Math.floor(t/i)})}return r}function iC(e){return e["@id"]?e["@id"]:e.id?e.id:void 0}function rC(e){if(!e||!e.profile||!iC(e))return!1;let t=Array.isArray(e.profile)?e.profile:[e.profile];for(let n of t)if("string"==typeof n&&-1!==VS.indexOf(n))return!0;return!1}function aC(e){if(!rC(e))return!1;let t=Array.isArray(e.profile)?e.profile:[e.profile];for(let n of t)if("string"==typeof n){if(-1!==US.indexOf(n))return!0}else{let e=[...n.supports||[],...n.extraFeatures||[]];if(-1!==e.indexOf("regionByPx")&&(-1!==e.indexOf("sizeByW")||-1!==e.indexOf("sizeByWh")))return!0}return!1}function sC(e,t){if(t&&t.profile){let n=t.profile;if(n){let t=Array.isArray(n)?n:[n];return t.includes(`level${e}`)||t.includes(`http://iiif.io/api/image/2/level${e}.json`)||t.includes(`http://iiif.io/api/image/1/level${e}.json`)||t.includes(`http://iiif.io/api/image/1/profiles/level${e}.json`)}}return!1}function oC(e){return rC(e)?sC(0,e)?0:sC(1,e)?1:sC(2,e)?2:null:null}function lC(e){return-1!==(e["@context"]?Array.isArray(e["@context"])?e["@context"]:[e["@context"]]:[]).indexOf("http://iiif.io/api/image/3/context.json")}function uC(e){if(!aC(e))return[];let t=[],n=Array.isArray(e.profile)?e.profile:[e.profile],i=n.length;for(let r=0;r<i;r++){let t=n[r];if(t&&"string"!=typeof t&&(t.maxHeight||t.maxWidth))return[{id:iC(e),type:"variable",minWidth:0,minHeight:0,maxHeight:t.maxHeight||t.maxWidth,maxWidth:t.maxWidth||t.maxHeight,level:oC(e),version:"http://iiif.io/api/image/3/context.json"===e["@context"]?3:2}]}if(e.tiles){let n=e.tiles.length;for(let i=0;i<n;i++){let n=e.tiles[i];n&&(n.height||n.width)&&t.push({id:iC(e),type:"variable",minHeight:0,minWidth:0,maxHeight:n.height||n.width,maxWidth:n.width,level:oC(e),version:lC(e)?3:2})}}return t}function cC(e){let t=e.match(/^.*\/(full)\/(((\d+),(\d+)?)|max)\/(\d+)\/default\.(jpg|png|jpeg)$/);if(t&&t[4]&&t[5]){let n=t[1],i=parseInt(t[4],10),r=parseInt(t[5],10),a=t[7];if(("max"===n||"full"===n)&&i&&r&&a)return{type:"fixed",id:e,height:r,width:i}}return{type:"unknown",id:e}}function dC(e){return e["@type"]?e["@type"]:e.type?e.type:void 0}function pC(e){if("string"==typeof e)return cC(e);let t=dC(e);if("Image"!==t&&"sc:Image"!==t)return null;let n=e,i=iC(n);return i?i&&n.width&&n.height?{id:i,type:"fixed",width:n.width,height:n.height,unsafe:!0}:cC(i):null}function hC(e){return rC(e)?(e&&e.sizes?e.sizes:[]).map((t=>({id:iC(e),type:"fixed-service",height:t.height,width:t.width,level:oC(e),version:lC(e)?3:2}))):[]}function fC(e){let t=[],n=e.length;for(let i=0;i<n;i++){let n=e[i];if(!n)continue;let r=hC(n);r.length&&t.push(...r);let a=uC(n);a.length&&t.push(...a)}return t}function mC(e){let t=e.service?Array.isArray(e.service)?e.service:[e.service]:[],n=t.length,i=[];for(let r=0;r<n;r++)rC(t[r])&&i.push(t[r]);return i}function gC(e,t=!0,n){let i=[],r=pC(e);if(null===r)return i;let a=e;if(i.push(r),t&&a&&a.width&&a.height){let e=[],t=mC(a);for(let i of t){let t={id:iC(i),width:a.width,height:a.height};if(n.canLoadSync(t)){let i=n.loadServiceSync(t);i&&(i.height||(i.height=a.height),i.width||(i.width=a.width),e.push(...fC([i])))}}if(e.length)return i.push(...e),i}return a.service&&i.push(...fC(a.service)),i}function yC({x:e=0,y:t=0,w:n,h:i,full:r,square:a,percent:s}){if(r)return"full";if(a)return"square";if(typeof n>"u"||typeof i>"u")throw new Error("RegionParameter: invalid region");let o=`${e},${t},${n},${i}`;return s?`pct:${o}`:o}function vC({max:e,percentScale:t,upscaled:n,confined:i,width:r,height:a,serialiseAsFull:s,version:o}){let l=[];return n&&l.push("^"),e?(l.push(s?"full":"max"),l.join("")):(i&&l.push("!"),t&&l.push(`pct:${t}`),r&&l.push(`${r}`),l.push(","),a&&3===o&&l.push(`${a}`),l.join(""))}function bC(e){return`${e.mirror?"!":""}${(e.angle||0)%360}`}function _C(e,t){let n=e.prefix.startsWith("/")?e.prefix.substr(1):e.prefix,i=`${e.scheme}://${e.server}/${n?`${n}/`:""}${e.identifier}`;if("base"===e.type)return i;if("info"===e.type)return`${i}/info.json`;let{size:r}=e,{region:a,rotation:s,format:o,quality:l}=e;if(t){let e=t["@context"]?Array.isArray(t["@context"])?t["@context"]:[t["@context"]]:[],n=t.profile,i=-1!==e.indexOf("http://iiif.io/api/image/2/context.json")||"level2"===n,a=-1!==e.indexOf("http://iiif.io/api/image/3/context.json");if((r.width===t.width&&!r.height||r.height===t.height&&!r.width||r.width===t.width&&r.height===t.height)&&(r=ae(re({},r),{max:!0})),i&&(r.max&&!r.serialiseAsFull&&(r=ae(re({}
102,r),{serialiseAsFull:!0})),!r.max&&r.width&&r.height&&(r=ae(re({},r),{height:void 0})),r=ae(re({},r),{version:2})),a){if(r.max&&r.serialiseAsFull&&(r=ae(re({},r),{serialiseAsFull:!1})),r.width&&!r.height&&t.width&&t.height){let e=t.height/t.width;r=ae(re({},r),{height:Math.ceil(r.width*e)})}r=ae(re({},r),{version:3})}}return[i,yC(a),vC(r),bC(s),`${l}.${o}`].filter(Boolean).join("/")}function wC(e,t,n){let i=eC({"@context":3===e.version?"http://iiif.io/api/image/3/context.json":"http://iiif.io/api/image/2/context.json",id:vS(iC(e)),profile:null===e.level||typeof e.level>"u"?"level0":`level${e.level}`,type:3===e.version?"ImageService3":"ImageService2"});return i.size.max=!1,i.size.width=t,i.size.height=n,{id:_C(i),type:"fixed",width:t,height:n||e.height/(e.width||1)*t,unsafe:e.width>t}}function SC(e){let t=e.replace(/(https?:\/\/)?(www.)?/i,"");return-1!==t.indexOf("/")?t.split("/")[0]:t}function CC(e,t,n){let i=e.width?e.width:e.maxWidth;return n.height<=e.maxHeight&&n.width<=e.maxWidth&&n.height>=e.minHeight&&n.width>=e.minWidth&&(!t||Math.abs(n.width-i)<Math.abs(t.width-i))}function kC(e,t){let n=[],i=Object.assign({unsafeImageService:!1,atAnyCost:!0,fallback:!0,minHeight:64,minWidth:64,maxHeight:1/0,maxWidth:1/0,returnAllOptions:!1,preferFixedSize:!1,allowUnsafe:!1,explain:!1,height:0,width:0},e),r=H(((e,t=0)=>i.explain?n.push(new Array(t).fill(0).map((e=>" ")).join("")+e().trim()):void 0),"r"),a=[],s=[],o=null;r((()=>`Using configuration: ${JSON.stringify(i,null,2)}`));let l=H(((e,t)=>{if(r((()=>"Swapping choice"),3),CC(i,t,e)){if(i.preferFixedSize&&e.unsafe)return r((()=>`We found an image that was marked as unsafe, but it was the best size. (${e.id})`),4),void s.push(e);i.returnAllOptions&&t&&s.push(t),r((()=>`We found a new image that was the best size. (${e.id})`),4),o=e}else i.returnAllOptions&&s.push(e)}),"h");r((()=>`The input shows we have ${t.length} list(s) of candidates to choose from.`));let u=t.length;for(let c=0;c<u;c++){let e=t[c]();r((()=>`Candidate group ${c}: ${JSON.stringify(e,null,2)}`),1);let n=e.length;r((()=>`Checking candidate list number ${c} and found ${n} potential ways of creating image(s)`),1);for(let t=0;t<n;t++){let n=e[t];if(r((()=>`-> Checking candidate ${t}`),1),"unknown"===n.type&&i.atAnyCost&&(r((()=>'We\'ve found an unknown image type, adding this to the "last resort" list'),2),a.push(n)),"fixed"===n.type&&(n.unsafe?(r((()=>'We\'ve found an unsafe fixed image type, adding this to the "last resort" list'),2),a.push(n)):(r((()=>"We've found a fixed size image, checking if it matches the request"),2),l(n,o))),"fixed-service"===n.type)if(i.unsafeImageService){r((()=>"Checking for an image from the tile source, without calculating the right height and width (unsafeImageService)"),2),l(wC(n,i.width,i.height),o)}else{r((()=>"Checking for an image from the tile source 3"),2),l(wC(n,n.width,n.height),o)}if("variable"===n.type&&n.maxWidth){l(wC({id:n.id,width:n.maxWidth,height:n.maxWidth,level:n.level,version:n.version},n.maxWidth),o)}}if(o&&!i.returnAllOptions){if(o.unsafe||i.allowUnsafe)continue;r((()=>`We found a match in choice list number ${c}, no searching any more`));break}}return i.atAnyCost&&0===s.length?(r((()=>o?`We found an image! ${o.id} of type ${o.type}`:'We found no images, but "atAnyCost" is set, so returning that')),{best:o||a[0]||null,fallback:a.slice(1),log:n}):i.returnAllOptions?(r((()=>"Returning all options that we have found")),{best:(i.atAnyCost?o||s[0]||a[0]:o||s[0])||null,fallback:[...s,...a],log:n}):(r((()=>"Returning the best image that we found, and a fallback")),{best:o||s[0]||null,fallback:o?s:s.slice(1),log:n})}function xC(e,t,n){let i=e>t?e:t,r=n.length,a=[];for(let s=0;s<r;s++){let e=n[s];if(!e||0===e.scaleFactors.length)continue;let t=e.scaleFactors[0];if(!t)continue;let r=i/t,o=[t];for(;r>=e.width;)t*=2,o.push(t),r/=2;a.push(ae(re({},e),{scaleFactors:o}))}return a}function TC(e,t){if(e.length!==t.length)return!1;if(0===e.length&&0===t.length)return!0;let n=e.length,i=!0;for(let a=0;a<n;a++){let n=e[a],r=t[a];if(n.width!==r.width||n.height!==r.height){i=!1;break}}if(i)return!0;let r=0;for(let a=0;a<n;a++)for(let i=0;i<n;i++)if(e[a].width===t[i].width&&e[a].height===t[i].height){r++;break}return r===n}function EC(e){return sC(0,e)}H(GS,"oL"),H(KS,"aL"),H(YS,"lL"),H(ZS,"cL"),H(XS,"uL"),H(QS,"gf"),H(JS,"hL"),H(eC,"dL"),H(tC,"fL"),H(nC,"pL"),H(iC,"gt"),H(rC,"$c"),H(aC,"gL"),H(sC,"Wc"),H(oC,"pf"),H(lC,"DS"),H(uC,"mL"),H(cC,"hS"),H(dC,"yL"),H(pC,"vL"),H(hC,"wL"),H(fC,"dS"),H(mC,"jS"),H(gC,"xL"),H(yC,"SL"),H(vC,"_L"),H(bC,"bL"),H(_C,"mf"),H(wC,"ff"),H(SC,"eo"),H(CC,"EL"),H(kC,"CL"),H(xC,"AL"),H(TC,"RL"),H(EC,"fS");var AC=(z=class{constructor(e={}){yS(this,"config",{verificationsRequired:1,approximateServices:!1,enableFetching:!0,disableThrottling:!1}),yS(this,"fetchingCount",0),yS(this,"imageServices",{}),yS(this,"knownImageServers",{}),this.config=Object.assign(this.config,e)}setConfig(e){Object.assign(this.config,e)}sample(e,t,n=!0){let i=SC(iC(e)),r=vS(iC(e)),a=this.knownImageServers[i];return this.imageServices[r]=Object.assign(e,{real:!0}),a||!e.tiles||EC(e)?this.verify(e):(this.knownImageServers[i]={verifications:0,malformed:!1,root:i,preLoaded:n,sampledId:iC(e),verified:!1,server:null,result:{context:e["@context"]||[],sampledProfile:e.profile,resourceServiceRatio:t&&e.height?t.height/e.he
102ight:1,sampledSizes:e.sizes||[],sizeRatios:tC(e.width,e.height,e.sizes||[]),sampledTiles:e.tiles||[]}},!0)}preLoad(e,t=!0){this.knownImageServers[e.root]=e,t&&(this.knownImageServers[e.root].malformed=!1,this.knownImageServers[e.root].verifications=this.config.verificationsRequired)}predict(e,t=!1,n=!1){let i=null==e?void 0:e.source,r=SC(iC(e)),a=this.knownImageServers[r],s=vS(iC(e));return this.imageServices[s]?this.imageServices[s]||null:!this.config.approximateServices||!a||!a.result||!(null==i?void 0:i.height)&&!e.height||!(null==i?void 0:i.width)&&!e.width||!n&&(a.malformed||a.verifications<this.config.verificationsRequired)||EC(e.source)?null:(this.imageServices[s]||(this.imageServices[s]={"@context":a.result.context,"@id":iC(e),id:iC(e),protocol:"http://iiif.io/api/image",tiles:(null==i?void 0:i.tiles)||xC(e.width,e.height,a.result.sampledTiles),sizes:(null==i?void 0:i.sizes)||nC(Math.round(e.width/a.result.resourceServiceRatio),Math.round(e.height/a.result.resourceServiceRatio),a.result.sizeRatios),profile:(null==i?void 0:i.profile)||a.result.sampledProfile,height:(null==i?void 0:i.height)||e.height,width:(null==i?void 0:i.width)||e.width,real:!1}),this.imageServices[s]||null)}getThumbnailFromResource(e,t){return V(this,arguments,(function*(e,t,n=!0,i=[]){let r=e?yield this.getImageCandidates(e,n):[];return kC(t,[()=>i,()=>r])}))}getImageCandidates(e,t=!0){return V(this,null,(function*(){let n=e;if(t&&n&&n.height&&n.width){let e=mC(n);for(let t of e){let e={id:iC(t),width:t.width?t.width:n.width,height:t.height?t.height:n.height,source:t};yield this.loadService(e)}}return gC(e,t,this)}))}verify(e){return V(this,null,(function*(){let t=this.predict(e,!1,!0),n=yield this.fetchService(iC(e));if(!t)return!1;let i=t.height===n.height&&t.width===n.width&&t["@context"]===n["@context"]&&TC(t.sizes||[],n.sizes||[]);if(i){let t=SC(iC(e)),n=this.knownImageServers[t];n&&(n.verifications+=1,n.verifications>=this.config.verificationsRequired&&(n.verified=!0))}return i}))}canLoadSync(e){let t="string"==typeof e?e:iC(e),n=vS(t);if(this.imageServices[n])return!0;let i=this.knownImageServers[SC(t)];return!!(i&&!i.malformed&&i.verifications>=this.config.verificationsRequired)}markAsMalformed(e){return V(this,null,(function*(){return this.knownImageServers[SC(iC(e))].malformed=!0,this.loadService(e,!0)}))}fetchService(e,t=!1){return V(this,null,(function*(){let n=vS(e),i=this.imageServices[n];if(i&&(!t||i.real))return i;if(!this.config.enableFetching)throw new Error("Fetching is not enabled");let r=yield this.fetch(n).then((e=>e.json()));return!r.id&&r["@id"]&&(r.id=r["@id"]),r.id!==e&&(r.id=e,r["@id"]&&(r["@id"]=e)),this.imageServices[n]=Object.assign(r,{real:!0}),this.imageServices[n]}))}fetch(e,t){return V(this,null,(function*(){return fetch(e,t)}))}loadService(e,t=!1){return V(this,null,(function*(){if(!this.config.disableThrottling){let e=!0;for(;e;){if(!(this.fetchingCount>=this.config.verificationsRequired)){e=!1;break}yield new Promise((e=>setTimeout(e,500)))}}let n=this.knownImageServers[SC(iC(e))];if(n&&!n.malformed&&!t){yield n.result;let t=this.loadServiceSync(e);if(t)return t}this.fetchingCount++;let i=yield this.fetchService(iC(e),t);return this.fetchingCount--,i.real&&this.sample(i,e),i}))}loadServiceSync(e){let t=vS(iC(e));return this.imageServices[t]?this.imageServices[t]:this.config.approximateServices?this.predict(e):null}},H(z,"yf"),z);new AC;var LC=H((e=>{var t=e,{height:n,tiles:i,width:r,x:a,y:s,style:o,skipSizes:l=!1,skipThumbnail:u=!1,rotation:c=0,useFloorCalc:d=!1,viewport:p,tileFormat:h,children:f}=t,m=oe(t,["height","tiles","width","x","y","style","skipSizes","skipThumbnail","rotation","useFloorCalc","viewport","tileFormat","children"]);let g=r/i.width,y=i.imageService.tiles||[],v=i.imageService.sizes||[],b=i.imageService.id||i.imageService["@id"],_=ut((()=>{let e=b;return e&&e.endsWith("/info.json")?e.slice(0,-10):e}),[b]),w=o&&typeof o.opacity<"u"&&1!==o.opacity;return ye(IC,re({key:_,scale:g,height:i.height,width:i.width,x:a,rotation:c,y:s},m),ye(PC,{key:"composite-"+_,id:_,width:i.width,height:i.height,renderOptions:w?{renderLayers:1,renderSmallestFallback:!1}:p?{renderLayers:1,renderSmallestFallback:!0}
102:{renderLayers:2,renderSmallestFallback:!0}},f,!i.thumbnail||w||u?null:ye(DC,{uri:i.thumbnail.id,target:{width:i.width,height:i.height},display:{width:i.thumbnail.width,height:i.thumbnail.height},style:o}),l?null:v.map(((e,t)=>{let{prefix:n,server:r,scheme:a,path:s}=QS(_);return ye(DC,{key:t,uri:_C({scheme:a,server:r,prefix:n,identifier:s,type:"image",region:{full:!0},size:{max:!1,upscaled:!1,confined:!1,width:e.width,height:e.height},rotation:{angle:0,mirror:!1},format:"jpg",quality:"default"},i.imageService),target:{width:i.width,height:i.height},display:{width:e.width,height:e.height},style:o})})),y.map((e=>(e.scaleFactors||[]).map((t=>ye(OC,{key:`${e}-${t}`,uri:_,display:{width:i.width,height:i.height},tile:e,scaleFactor:t,style:o,format:h,useFloorCalc:d})))))))}),"BS");fS({displayName:"Atlas.World",component:Au,customConstructor:H((e=>new Au(e.width,e.height)),"customConstructor")});var IC=fS({displayName:"Atlas.WorldObject",component:Eu}),$C=fS({displayName:"Atlas.Box",component:Du}),DC=fS({displayName:"Atlas.SingleImage",component:ri});fS({displayName:"Atlas.ImageTexture",component:ai});var PC=fS({displayName:"Atlas.CompositeResource",component:cu,customConstructor:H((e=>new cu({id:e.id,width:e.width,height:e.height,images:[],renderOptions:e.renderOptions})),"customConstructor")}),OC=fS({displayName:"Atlas.TiledImage",component:lu,customConstructor:H((e=>lu.fromTile(e.uri,e.display,e.tile,e.scaleFactor,void 0,e.format,e.useFloorCalc)),"customConstructor")});fS({displayName:"Atlas.Text",component:Nu}),tt(),Cn(),tt(),Cn(),Cn(),Cn(),tt(),Cn();var MC=Rt(((e,t)=>{var n=e,{children:i}=n,r=oe(n,["children"]);let a=ot(),s=Md(),o=ot(0),l=ot(),[u,c]=rt((e=>e+1),0);return Rd((()=>{if(r.relative){let e=a.current;if(e&&s){let t=s.getScaleFactor();o.current!==t&&(o.current=t,e.style.transformOrigin="0 0",e.style.transform=`scale(${1/o.current})`,e.style.width=100*o.current+"%",e.style.height=100*o.current+"%")}}}),[r.relative]),st((()=>{let e=l.current;if(!e){let e=setTimeout(c,100);return()=>{clearTimeout(e)}}return t&&e&&("function"==typeof t?t(e):t.current=e),e&&e.__host?r.relative?qt(ye("div",{ref:a},i),e.__host.element):qt(i,e.__host.element):e&&(e.__onCreate=()=>{r.relative?qt(ye("div",{ref:a},i),e.__host.element):qt(i,e.__host.element)}),()=>{}}),[u,t,i,l,r.relative]),ye($C,re({html:!0,ref:l},r))}));tt();var RC=H((e=>{var t=e,{handleSize:n=9,resizable:i,onSave:r,children:a}=t,s=oe(t,["handleSize","resizable","onSave","children"]);let{portalRef:o,mode:l,mouseEvent:u,isEditing:c}=Wd({x:s.x||0,y:s.y||0,width:s.width,height:s.height},r),d=ut((()=>u("translate")),[u]),p=ut((()=>u("east")),[u]),h=ut((()=>u("west")),[u]),f=ut((()=>u("south")),[u]),m=ut((()=>u("north")),[u]),g=ut((()=>u("south-east")),[u]),y=ut((()=>u("south-west")),[u]),v=ut((()=>u("north-east")),[u]),b=ut((()=>u("north-west")),[u]);return ye(_e,null,ye(IC,re({},s),a,ye(MC,{ref:o,target:{x:0,y:0,height:s.height,width:s.width},relative:!0,interactive:!1},"sketch"===l&&i?ye(_e,null,ye("div",{onMouseDown:d,onTouchStart:d,style:{display:"block",width:"100%",height:"100%",border:"1px dashed #999",boxSizing:"border-box",pointerEvents:c?"none":"sketch"===l?"initial":"none"}}),ye("div",{title:"east",onTouchStart:p,onMouseDown:p,style:{cursor:"e-resize",position:"absolute",background:"#fff",height:2*n,width:n,right:0,top:"50%",transform:`translate(${n/2}px, -${n}px)`,zIndex:999,boxShadow:"0px 2px 3px 0 rgba(0,0,0,0.5)",border:"1px solid #999",pointerEvents:c?"none":"sketch"===l?"initial":"none"}}),ye("div",{title:"west",onMouseDown:h,style:{cursor:"w-resize",position:"absolute",background:"#fff",height:2*n,width:n,left:0,top:"50%",transform:`translate(-${n/2}px, -${n}px)`,zIndex:999,boxShadow:"0px 2px 3px 0 rgba(0,0,0,0.5)",border:"1px solid #999",pointerEvents:c?"none":"sketch"===l?"initial":"none"}}),ye("div",{title:"north",onMouseDown:m,style:{cursor:"n-resize",position:"absolute",background:"#fff",height:n,width:2*n,left:"50%",top:0,transform:`translate(-${n}px, -${n/2}px)`,zIndex:999,boxShadow:"0px 2px 3px 0 rgba(0,0,0,0.5)",border:"1px solid rgba(0,0,0,.5)",pointerEvents:c?"none":"sketch"===l?"initial":"none"}}),ye("div",{title:"south",onMouseDown:f,style:{cursor:"s-resize",position:"absolute",background:"#fff",height:n,width:2*n,left:"50%",bottom:0,transform:`translate(-${n}px, ${n/2}px)`,zIndex:999,boxShadow:"0px 2px 3px 0 rgba(0,0,0,0.5)",border:"1px solid #999",pointerEvents:c?"none":"sketch"===l?"initial":"none"}}),ye("div",{title:"north-east",onMouseDown:v,style:{cursor:"ne-resize",position:"absolute",background:"#fff",height:n,width:n,right:0,top:0,transform:`translate(${n/2}px, -${n/2}px)`,zIndex:999,boxShadow:"0px 2px 3px 0 rgba(0,0,0,0.5)",border:"1px solid #999",pointerEvents:c?"none":"sketch"===l?"initial":"none"}}),ye("div",{title:"south-east",onMouseDown:g,style:{cursor:"se-resize",position:"absolute",background:"#fff",height:n,width:n,bottom:0,right:0,transform:`translate(${n/2}px, ${n/2}px)`,zIndex:999,boxShadow:"0px 2px 3px 0 rgba(0,0,0,0.5)",border:"1px solid #999",pointerEvents:c?"none":"sketch"===l?"initial":"none"}}),ye("div",{title:"south-west",onMouseDown:y,style:{cursor:"sw-resize",position:"absolute",background:"#fff",height:n,width:n,bottom:0,left:0,transform:`translate(-${n/2}px, ${n/2}px)`,zIndex:999,boxShadow:"0px 2px 3px 0 rgba(0,0,0,0.5)",border:"1px solid #999",pointerEvents:c?"none":"sketch"===l?"initial":"none"}}),ye("div",{title:"north-west",onMouseDown:b,style:{cursor:"nw-resize",position:"absolute",background:"#fff",height:n,width:n,top:0,left:0,transform:`translate(-${n/2}px, -${n/2}px)`,zIndex:999,boxShadow:"0px 2px 3px 0 rgba(0,0,0,0.5)",border:"1px solid #999",pointerEvents:c?"none":"sketch"===l?"initial":"none"}})):null)))}),"US");tt();var NC=H((e=>{var t=e,{children:n,interactive:i,region:r,onClick:a,onSave:s,isEditing:o,className:l,style:u}
102=t,c=oe(t,["children","interactive","region","onClick","onSave","isEditing","className","style"]);let d=Bc(),p=typeof i>"u"?"function"==typeof a:i,h=ct((e=>{s&&s(re({id:r.id,x:r.x,y:r.y,height:r.height,width:r.width},e))}),[s,r.id,r.x,r.y,r.height,r.width]);return ye(RC,{x:r.x,y:r.y,width:r.width,height:r.height,resizable:o,onSave:h,onClick:"explore"===d&&a?e=>{a(r)}:()=>{}},ye($C,re({html:!0,className:l,interactive:p,relativeStyle:!0,target:{x:0,y:0,width:r.width,height:r.height},style:u},c)),n)}),"Bi");function FC({annotationId:e,interactive:t,relative:n}){var i;let r=My({id:e});if(null==(i=null==r?void 0:r.motivation)||!i.includes("supplementing")||!r.body)return null;let a=(Array.isArray(r.body)?r.body:[r.body]).filter((e=>"TextualBody"===e.type)),s=r.target.selector;return s?ye(_e,null,ye("rect",{x:n?0:s.spatial.x,y:n?0:s.spatial.y,width:s.spatial.width,height:s.spatial.height,style:{fill:"rgba(0,0,0,0)"}}),ye("text",{x:n?0:s.spatial.x,y:(n?0:s.spatial.y)+.75*s.spatial.height,textLength:s.spatial.width,fontSize:`${s.spatial.height}px`,lengthAdjust:"spacingAndGlyphs",className:"text-line-segment",part:"text-line-segment",style:ae(re({},{fill:"rgba(0,0,0,0)"}),{pointerEvents:t?"initial":void 0})},a[0].value||"")):null}function BC({annotation:e,textSelectionEnabled:t}){var n;let i=Yg();return null!=(n=null==e?void 0:e.motivation)&&n.includes("supplementing")&&e.body?ye(MC,{target:ae(re({},e.target.selector.spatial),{x:0,y:0}),interactive:t},ye(Kg,{vault:i},ye("svg",{height:e.target.selector.spatial.height,width:e.target.selector.spatial.width,style:{userSelect:t?"text":void 0}},ye(FC,{annotationId:e.id,interactive:t,relative:!0})))):null}tt(),Cn(),tt(),H(FC,"Hc"),H(BC,"HS");var HC=H((({id:e,style:t,className:n,interactive:i,textSelectionEnabled:r})=>{let a=My({id:e}),s=wy(a,"atlas"),o=wy(a,"html"),l=by(a,["atlas"]),u=Ry(),c=ut((()=>Gd(t,s)),[t,s]);return u&&a&&a.target&&a.target.selector&&"BoxSelector"===a.target.selector.type&&a.target.source&&a.target.source.id===u.id?ye(NC,re({id:a.id,isEditing:!0,region:a.target.selector.spatial,style:c,className:(null==o?void 0:o.className)||n,interactive:!(!(null==o?void 0:o.href)&&!i),href:(null==o?void 0:o.href)||null,title:(null==o?void 0:o.title)||null,hrefTarget:(null==o?void 0:o.target)||null},l),ye(BC,{annotation:a,textSelectionEnabled:r})):null}),"VS"),jC=H((({className:e,page:t,textSelectionEnabled:n})=>{var i;let r=wy(t,"atlas"),a=wy(t,"html");return ey((e=>t.id?e.iiif.entities.AnnotationPage[t.id]:null),[]),ye(_e,null,null==(i=t.items)?void 0:i.map((t=>ye(HC,{key:t.id,id:t.id,style:r,className:(null==a?void 0:a.className)||e,textSelectionEnabled:n}))))}),"vf");function UC(){let e=Md(),[t,n]=it(),[i,r]=it();return Rd((()=>{e&&(!t||e.focalPosition[1]!==t[1]||e.focalPosition[2]!==t[2]||e.focalPosition[3]!==t[3]||e.focalPosition[4]!==t[4])&&n(new Float32Array(e.focalPosition)),e&&(!i||e.homePosition[1]!==i[1]||e.homePosition[2]!==i[2]||e.homePosition[3]!==i[3]||e.homePosition[4]!==i[4])&&r(new Float32Array(e.homePosition))}),[t,i]),ye(_e,null,t?ye(NC,{id:"focal",onClick:H((()=>{}),"onClick"),onSave:H((()=>{}),"onSave"),isEditing:!1,className:"test",region:{id:"focal",x:t[1],y:t[2],width:t[3]-t[1],height:t[4]-t[2]},style:{backgroundColor:"rgba(0, 0, 244, 0.5)"}}):null,i?ye(NC,{id:"home",onClick:H((()=>{}),"onClick"),onSave:H((()=>{}),"onSave"),isEditing:!1,className:"test",region:{id:"home",x:i[1],y:i[2],width:i[3]-i[1],height:i[4]-i[2]},style:{backgroundColor:"rgba(0, 200, 0, 0.5)"}}):null)}function VC(e,t){let n=vS(e.id||e["@id"]||"").slice(0,-10);return n&&!t.percentScale&&t.width&&!t.confined&&e.height&&e.width?[[n,"full",Iv(t),"0","default.jpg"].join("/"),{width:t.width||1,height:t.confined?e.height/e.width*t.width:t.height||e.height/e.width*t.width}]:[null,{height:0,width:0}]}function qC({id:e,image:t,thumbnail:n,isStatic:i,virtualSizes:r=[],x:a=0,y:s=0,rotation:o=0,annotations:l,tileFormat:u,skipSizes:c,annotationId:d,skipThumbnail:p,useFloorCalc:h}){var f,m,g,y;let v=wy(d?{id:d,type:"Annotation"}:void 0,"atlas"),b=wy({id:e,type:"ContentResource"},"atlas"),_=ut((()=>re(re({},v),b)),[v,b]),w=by(d?{id:d,type:"Annotation"}:void 0,["atlas"]),S=by({id:e,type:"ContentResource"},["atlas"]);return ye(Sn.Fragment,null,t.service?ye(_e,{key:"service"},ye(LC,re(re({viewport:i,tiles:{id:t.service.id,height:t.height!==t.service.height&&void 0!==t.service.height?t.service.height:t.height,width:t.width!==t.service.width&&void 0!==t.service.width?t.service.width:t.width,imageService:t.service,thumbnail:!p&&n&&"fixed"===n.type?n:void 0},skipSizes:c,skipThumbnail:p,x:(null==(f=t.target)?void 0:f.spatial.x)+a,y:(null==(m=t.target)?void 0:m.spatial.y)+s,rotation:o,useFloorCalc:h,width:null==(g=t.target)?void 0:g.spatial.width,height:null==(y=t.target)?void 0:y.spatial.height,style:_,tileFormat:u},w),S),t.service&&r.map((e=>{if(t.service){let[n,{height:i,width:r}]=VC(t.service,e);return n?ye(DC,{priority:!0,style:_,key:n,uri:n,target:t.target.spatial,display:{height:i,width:r}}):null}return null}))),l):ye(_e,{key:"no-service"},ye(DC,re(re({style:_,uri:t.id,target:t.target.spatial,display:t.width&&t.height?{width:t.width,height:t.height}:void 0},w),S)),l))}function zC(){let[e,{addAnnotation:t,removeAnnotation:n}]=yy(),i=Yg(),r=Tv(),a=ot([]),s=null==e?void 0:e.id,o=ut((()=>Gv(i)),[i]);return dS((()=>({annotations:{add(e){t(e)},get(e){if(s){let t=(i.get({id:s,type:"AnnotationPage"}).items||[]).find((t=>t.id===e));return t?i.get(t):null}return null},getSource:e=>a.current[e]||null,getAll(){if(s){let e=i.get({id:s,type:"AnnotationPage"});return e&&i.get(e.items)||[]}return[]},remove(e){n(e)},applyStyles(e){s&&r.applyStyles(s,"atlas",e)},addEventListener(e,t){if(s)return o.addEventListener({id:s,type:"AnnotationPage"},e,t)},applyHTMLProperties(e){s&&r.applyStyles(s,"html",e)}}})),s),[e,{addAnnotation:t,removeAnnotation:n}]}tt(),Cn(),H(UC,"qS"),Cn(),tt(),H(VC,"QS"),Cn(),Cn(),H(qC,"Vc"),tt(),Cn(),H(zC,"GS"),Cn();var WC=qe(null);function GC(){let e=dt(WC);return[e.fullPage,{addAnnotation:e.addAnnotation,removeAnnotation:e.removeAnnotation}]}function KC({children:e}){let[t,{addAnnotation:n,removeAnnotation:i}]=zC();return ye(WC.Provider,{value:ut((()=>({fullPage:t,addAnnotation:n,removeAnnotation:i})),[t])},e)}function YC({media:e,children:t}){let[{element:n,currentTime:i,progress:r},a,s]=gv({duration:e.duration});return dS((e=>(e.mediaActions=s,e.mediaElement=n,e.setMediaProgressElement=e=>{r.current=e},e.dispatchEvent(new Event("media-displayed")),e.dispatchEvent(new Event("audio-displayed")),{})),e.url),ye(_v,{state:a,actions:s,currentTime:i,progress:r,element:n},ye("video",{ref:n,src:e.url}),t)}function ZC({media:e}){let[{element:t,currentTime:n,progress:i},r,a]=gv({duration:e.duration}),s=a.playPause;return dS((e=>(e.mediaActions=a,e.mediaElement=t,e.setMediaProgressElement=e=>{i.current=e},e.dispatchEvent(new Event("media-displayed")),e.dispatchEvent(new Event("audio-displayed")),{})),e.url),ye("div",{className:"video-container",part:"video-container",onClick:s},ye("style",null,"\n .video-container {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: #000;\n z-index: 13;\n display: flex;\n justify-content: center;\n pointer-events: visible;\n }\n "),ye("video",{ref:t,src:e.url,style:{width:"100%",objectFit:"contain"}}))}function XC({annotationPageId:e,selectionEnabled:t}){let n=kv({id:e}),i=Ry(),r=Yg(),a=wy(n,"text-lines");return n&&n.items&&i?ye(IC,re({},{x:0,y:0,width:i.width,height:i.height}),ye(MC,{target:{x:0,y:0,width:i.width,height:i.height}},ye(Kg,{vault:r},ye("svg",{tabindex:0,"aria-name":"","aria-live":"off","aria-atomic":"true","aria-relevant":"all","aria-expanded":"true",role:"article",style:ae(re({},a),{userSelect:"text"}),width:i.width,height:i.height},n.items.map((e=>ye(FC,{key:`line-${e.id}`,annotationId:e.id,interactive:t}))))))):null}function QC(e,t){let n=[],i={};for(let r of e){let e={},a=[],s=t.get(r),o=(null==s?void 0:s.items)||[];for(let n of o){let i=t.get(n);if(i.motivation)for(let t of i.motivation)a.includes(t)||a.push(t),e[t]=e[t]?e[t]:[],e[t].push(i.id)}n.push({typeMap:e,allTypes:a,id:r});for(let t of a)i[t]=i[t]||[],i[t].push(r)}return{pagesWithTypes:n,pageMapping:i}}function JC({x:e,y:t,highlight:n,annoMode:i,onCreated:r,debug:a,virtualSizes:s,highlightCssClass:o,defaultChoices:l,isStatic:u,textSelectionEnabled:c,textEnabled:d,disableThumbnail:p,skipSizes:h,rotation:f,useFloorCalc:m}){var g;let y=iy(),v=Ry(),b=by(v,["deep-zoom"]),[_]=GC(),w=Yg(),S=ut((()=>Kv(w)),[w]),[C,k]=lv({strategies:["images","media"],defaultChoices:null==l?void 0:l.map((({id:e})=>e))}),x=Ky((null==y?void 0:y.id)||(null==v?void 0:v.id)),T=ey(((e,t)=>x.availablePageIds.map((e=>t.get(e)))),[...x.availablePageIds]);at((()=>{let e=K_(w);if(null!=v&&v.id){let t=(null==l?void 0:l.map((({id:e})=>e)))||[],n=e.getAllPaintingAnnotations(v.id);for(let e of n){if("Annotation"!==e.type)throw new Error("getPaintables() accept either a canvas or list of annotations");let n=Array.from(Array.isArray(e.body)?e.body:[e.body]);for(let e of n){let[n,{selector:i}]=Ny(e),r=w.get(n);if("choice"!==(r.type||"unknown").toLowerCase())continue;let a=w.get(r.items),s=t.length?t.map((e=>a.find((t=>
102t.id===e)))).filter(Boolean):[a[0]];0===s.length&&s.push(a[0]);let o={type:"single-choice",items:a.map((e=>({id:e.id,label:e.label,selected:-1!==s.indexOf(e)}))),label:n.label};tS.emit("onChoiceChange",{choice:o,partOf:{canvasId:v.id,choiceId:r.id,manifestId:null==y?void 0:y.id}})}}e.extractChoices(v.id)}}),[null==v?void 0:v.id,k,l]);let E=ut((()=>QC(x.availablePageIds,w)),T),A=null!=(g=E.pageMapping.supplementing)&&g.length?E.pageMapping.supplementing[0]:null;at((()=>{let e=tS.on("onMakeChoice",(e=>{k.makeChoice(e.id,e.options)}));return()=>{e()}}),[k]),at((()=>{if(d){let e=[];for(let t of x.availablePageIds)w.requestStatus(t)||e.push(w.load(t))}}),[null==v?void 0:v.id,d]),at((()=>{if(l)for(let e of l)typeof e.opacity<"u"&&S.applyStyles({id:e.id},"atlas",{opacity:e.opacity})}),[l]);let L=pv({maxWidth:256,maxHeight:256});if(!v)return null;if("media"===C.type){if("Sound"!==C.media.type&&"Video"!==C.media.type)throw new Error("Unknown media type");return ye(IC,re({key:C.type,height:v.height||1e3,width:v.width||1e3,x:e,y:t},b),"Sound"===C.media.type?ye(YC,{media:C.media}):null,"Video"===C.media.type?ye(ZC,{media:C.media}):null)}if("unknown"===C.type){if(L&&"fixed"===L.type)return ye(IC,{height:v.height,width:v.width,x:e,y:t},ye(DC,{uri:L.id,target:{x:0,y:0,width:v.width,height:v.height},display:L.width&&L.height?{width:L.width,height:L.height}:void 0}));throw new Error("Unknown image strategy")}let I=ye(_e,null,i?ye(Hd,{onCreate:H((e=>{r&&r(e)}),"onCreate")}):null,n&&n.selector&&"BoxSelector"===n.selector.type?ye(NC,{id:"highlight",isEditing:!0,onClick:H((()=>{}),"onClick"),onSave:H((()=>{}),"onSave"),region:n.selector.spatial,style:o?void 0:{border:"3px solid red"},className:o}):null,_?ye(jC,{page:_,textSelectionEnabled:c}):null,C.annotations&&C.annotations.pages?C.annotations.pages.map((e=>ye(jC,{key:e.id,page:e,textSelectionEnabled:c}))):null,a?ye(UC,null):null,d&&A?ye(XC,{annotationPageId:A,selectionEnabled:c}):null);return ye(IC,re({key:C.type,height:v.height,width:v.width,x:e,y:t},b),"images"===C.type?C.images.map(((e,t)=>ye(qC,{isStatic:u,key:e.id,image:e,id:e.id,rotation:f,annotationId:e.annotationId,thumbnail:0!==t||p?void 0:L,virtualSizes:s,annotations:I,skipSizes:h,skipThumbnail:p,useFloorCalc:m}))):null)}function ek({error:e,resetErrorBoundary:t,aspectRatio:n,height:i=512,width:r}){let a=n?{paddingTop:100*n+"%"}:{height:i,width:r};return at((()=>{console.error(e),nS.emit("onErrorEvent",{message:null==e?void 0:e.message,error:e})}),[e]),ye("slot",{name:"fallback"},ye("div",{role:"alert",style:re({background:"#000",color:"#fff",display:"flex",flexDirection:"column",alignContent:"center",justifyContent:"center",fontFamily:"monospace"},a)},ye("div",{style:{padding:"1em",textAlign:"center"}},ye("img",{className:"img-oops",part:"image-oops",width:33,height:24,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAICAYAAAAvOAWIAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAC6ADAAQAAAABAAAACAAAAADGHiDWAAAAO0lEQVQYGWP4DwQMQACjQWxkABOH0TgVwjRhKIQLwFRAaZg4jEaTphKXEWYOPmsYgQCmjnQPwnXiYQAAP/M3zvinPKAAAAAASUVORK5CYII="}),ye("h2",null,"Unable to load image"),ye("pre",null,null==e?void 0:e.message),t?ye("button",{style:{color:"#fff",border:"2px solid #fff",background:"#000",fontFamily:"monospace",padding:"0.25em 1em"},onClick:t},"Try again"):null,ye("style",null,".img-oops { border: 3px solid white; padding: 15px; image-rendering: auto; image-rendering: crisp-edges; image-rendering: pixelated; margin-bottom: 10px; }"))))}function tk(e,t){var n=e,{unit:i}=n,r=oe(n,["unit"]);return"percent"===i?{x:t.width*(r.x/100),y:t.height*(r.y/100),width:t.width*(r.width/100),height:t.height*(r.height/100)}:r}H(GC,"KS"),H(KC,"qc"),tt(),H(YC,"XS"),tt(),H(ZC,"ZS"),tt(),H(XC,"JS"),H(QC,"e_"),H(JC,"Qc"),Cn(),tt(),Cn(),H(ek,"gr"),H(tk,"t_"),tt(),Cn();var nk=Jg;function ik(e){let t=ny(),n=hy(),i=oy(),r=ot(!1),a=ot();dS((e=>(a.current=e,e.sequence=n,r.current||(r.current=!0,e.dispatchEvent(new CustomEvent("sequence",{detail:n}))),{})),[n]),at((()=>{a.current&&(tS.emit("onResetSeen"),a.current.dispatchEvent(new CustomEvent("sequence-change",{detail:{index:n.currentSequenceIndex,total:n.sequence.length}})))}),[n.currentSequenceIndex,i]);let s=0,o=t.map(((t,n)=>{let i=s;return s+=t.width+(e.margin||0),ye(nk,{key:t.id,canvas:t.id}
102,ye(JC,ae(re({key:t.id},e),{x:i})))}));return ye(_e,null,o)}H(ik,"n_");var rk=pS.ErrorBoundary;function ak(e){let t=Yg(),n=zg(),i=Ry(),r=iy(),a=Ky((null==r?void 0:r.id)||(null==i?void 0:i.id)),[s,o]=it(!1),l=e.rotation||0,u=!e.displayOptions.viewport&&i?e.displayOptions.homePosition?e.displayOptions.homePosition.width/e.displayOptions.homePosition.height:i.width/i.height:void 0;dS((e=>a?(e.annotationPageManager||(e.annotationPageManager={}),e.annotationPageManager.availablePageIds=a.availablePageIds,e.annotationPageManager.enabledPageIds=a.enabledPageIds,e.annotationPageManager.setPageEnabled=a.setPageEnabled,e.annotationPageManager.setPageDisabled=a.setPageDisabled,{}):{}),[a.availablePageIds,a.enabledPageIds,a.setPageEnabled,a.setPageDisabled].join("/")),st((()=>{!1!==e.followAnnotations&&a.availablePageIds.map((e=>{t.requestStatus(e)||t.load(e)}))}),[a.availablePageIds,e.followAnnotations]),ey((e=>n.canvas?e.iiif.entities.Canvas[n.canvas]:null),[]);let[c,d]=ut((()=>{let t=e.displayOptions,{width:n,height:r,homePosition:a,containerProps:s}=t,o=oe(t,["width","height","homePosition","containerProps"]),l=e.displayOptions.homePosition&&i?tk(e.displayOptions.homePosition,i):null;return l&&(o.homePosition=l),n&&(o.width=n),r&&(o.height=r),[o,s]}),[e.displayOptions,i]),p=H((e=>{e.altKey&&"KeyB"===e.code&&o(!0)}),"y"),h=e.renderMultiple?ik:JC;return ye(rk,{fallbackRender:H((e=>ye(ek,re({height:c.height,width:c.width,aspectRatio:u},e))),"fallbackRender")},ye(oS,ae(re({key:e.renderMultiple?"":null==i?void 0:i.id,aspectRatio:u,containerProps:re({onKeyDown:p},d||{}),className:e.className,background:e.background},c),{mode:s?"sketch":e.mode,homeCover:e.homeCover,homeOnResize:!!e.homeCover}),ye(h,{isStatic:!e.interactive,debug:e.debug,virtualSizes:e.virtualSizes,highlight:e.highlight,highlightCssClass:e.highlightCssClass,annoMode:s,defaultChoices:e.defaultChoices,disableThumbnail:e.disableThumbnail,skipSizes:e.skipSizes,rotation:l,useFloorCalc:e.useFloorCalc,onCreated:H((e=>{r&&i&&e&&navigator.clipboard.writeText(Pv({id:`${i.id}#xywh=${e.x},${e.y},${e.width},${e.height}`,type:"Canvas",partOf:[{id:r.id,type:"Manifest"}]})),o(!1)}),"onCreated"),x:e.x,y:e.y,textSelectionEnabled:e.textSelectionEnabled,textEnabled:e.textEnabled,margin:e.margin}),e.children))}function sk(e){return ye("svg",re({width:"1em",height:"1em",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"#000"},e),ye("g",{transform:"translate(1 1)",strokeWidth:2,fill:"none",fillRule:"evenodd"},ye("circle",{strokeOpacity:.5,cx:18,cy:18,r:18}),ye("path",{d:"M36 18c0-9.94-8.06-18-18-18"},ye("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))))}H(ak,"Gc"),tt(),H(sk,"r_"),tt(),Cn();var ok=H((({manifestId:e,children:t})=>{let{manifest:n,isLoaded:i,error:r}=Xg(e,{});return at((()=>{r&&console.error(r)}),[r]),r?ye(ek,{error:new Error(`Unable to load Manifest: ${e} \n \n ${r.toString()}`)}):i&&n?ye(Qg,{manifest:n.id},t):ye(sk,null)}),"s_");Cn();var lk=["width","height","target","region","highlight","highlight-css-class","disable-keyboard-navigation","click-to-enable-zoom","preferred-formats","atlas-mode","style-id","debug","preset","responsive","interactive","class","move-events","granular-move-events","a11y-title","a11y-role"],uk=[...lk,"manifest-id","canvas-id","choice-id","text-selection-enabled","disable-thumbnail","text-enabled","follow-annotations","iiif-content","home-cover","rotation","background"],ck=H((e=>{let{vault:t,webComponent:n,runtime:i,atlasProps:r,isConfigBlocking:a,setParsedTarget:s,highlight:o,highlightCssClass:l,virtualSizes:u,viewport:c,debug:d,mode:p,interactive:h,x:f,y:m,homeCover:g,className:y,inlineStyles:v,inlineStyleSheet:b,useProp:_,useRegisterWebComponentApi:w,setMode:S,background:C}=rS(e),[k,x]=it(void 0),T=ot([]),[E,A]=it(),[L,,I]=_("iiifContent",{parse:zv}),[$,D,,P]=_("canvasId"),[O,M,,R]=_("rotation",{parse:qv,defaultValue:0}),[N,F,,B]=_("manifestId"),[j]=_("followAnnotations",{parse:Vv,defaultValue:!0}),[U,,,V]=_("choiceId",{parse:Uv}),[q]=_("textSelectionEnabled",{parse:Vv,defaultValue:!0}),[z]=_("disableThumbnail",{parse:Vv,defaultValue:!1}),[W]=_("skipSizes",{parse:Vv,defaultValue:!1}),[G]=_("textEnabled",{parse:Vv,defaultValue:!1}),[K]=_("useFloorCalc",{parse:Vv,defaultValue:!1}),Y=L&&"remote-content-state"!==L.type?L:null,Z=L&&"remote-content-state"===L.type?L.id:null,X=ct((e=>{n.current&&(tS.emit("onResetSeen"),n.current.dispatchEvent(new CustomEvent("canvas-change",{detail:{canvas:e}})))}),[]),Q=ct((e=>{if(k){let t={id:`${$}#xywh=${Dv(e.x)},${Dv(e.y)},${e.width},${e.height}`,type:"Canvas",partOf:[{id:N,type:"Manifest"}]},n={contentState:t,normalisedContentState:Fv(t),encodedContentState:Pv(t),selection:{type:"BoxSelector",spatial:e}};T.current.push(n),k(n)}}),[k,N,$]);if(w((e=>({vault:t,setCanvas:H((t=>
102{e.setAttribute("canvas-id",t)}),"setCanvas"),setManifest:H((t=>{e.setAttribute("manifest-id",t)}),"setManifest"),setDefaultChoiceIds:H((t=>{e.setAttribute("choice-id",t.join(","))}),"setDefaultChoiceIds"),getDefaultChoiceIds:()=>(V.current||[]).map((({id:e})=>e)),getCanvasId:()=>P.current,getContentState(){var e,t,n,r;let a=null!=B&&B.current?null==B?void 0:B.current:N,s={id:`${null!=P&&P.current?null==P?void 0:P.current:$}#xywh=${null==(e=i.current)?void 0:e.x},${null==(t=i.current)?void 0:t.y},${null==(n=i.current)?void 0:n.width},${null==(r=i.current)?void 0:r.height}`,type:"Canvas",partOf:[{id:a,type:"Manifest"}]};return{contentState:s,normalisedContentState:Fv(s),encodedContentState:Pv(s)}},getPosition(){var e,t,n,r;return{x:null==(e=i.current)?void 0:e.x,y:null==(t=i.current)?void 0:t.y,width:null==(n=i.current)?void 0:n.width,height:null==(r=i.current)?void 0:r.height}},getManifestId:()=>B.current,disableTextSelection(){e.setAttribute("text-selection-enabled","false")},enableTextSelection(){e.setAttribute("text-selection-enabled","true")},enableText(){e.setAttribute("text-enabled","true")},disableText(){e.setAttribute("text-enabled","true")},easingFunctions:()=>Yu,getContentStateStack:()=>T.current,transition(e){var t,n;null!=(t=i.current)&&t.transitionManager&&e(null==(n=i.current)?void 0:n.transitionManager)},enableContentStateSelection(e){S("sketch"),x((t=>t||e))},disableContentStateSelection(){x(void 0),S("explore"),T.current=[]},setContentStateFromText(e,t=!1){if(null==e||""===e.trim())return;let n=Fv(Ov(e));n.immediate=t;let r=n.target[0];P.current===r.source.id?i.current&&n.target&&n.target[0]&&n.target[0].selector&&"BoxSelector"===n.target[0].selector.type&&i.current.world.gotoRegion(ae(re({},n.target[0].selector.spatial),{immediate:t})):I(n)}}))),st((()=>{Z&&!E&&fetch(Z).then((e=>e.json())).then((e=>{I(zv(e))})).catch((e=>{console.error(e),A(new Error(`Failed to load content state from ${Z} \n\n ${e.toString()}`))}))}),[Z,E]),st((()=>{if(Y&&Y.target.length){let e=Y.target[0];if("SpecificResource"===e.type&&"Canvas"===e.source.type){let t=(e.source.partOf||[]).find((e=>"Manifest"===e.type));if(D(e.source.id),t&&F(t.id),e.selector&&i.current&&n.current)if("BoxSelector"===e.selector.type){let{x:t,y:n,width:r,height:a}=e.selector.spatial;i.current.world.gotoRegion({x:t,y:n,width:r,height:a,immediate:Y.immediate})}else s(e)}}}),[Y]),at((()=>{X($)}),[$]),a)return null;if(E)return ye(ek,{error:E,resetErrorBoundary:H((()=>A(null)),"resetErrorBoundary")});let J=$?ye(Jg,{canvas:$},ye(ak,{key:`${$}-${c?"v1":"v0"}`,interactive:h,defaultChoices:U,followAnnotations:j,className:y,highlight:o,debug:d,background:C,virtualSizes:u,highlightCssClass:l,canvasId:$,displayOptions:r,mode:p,rotation:O||0,x:f,y:m,textEnabled:G,textSelectionEnabled:q,disableThumbnail:z,skipSizes:W,homeCover:g,useFloorCalc:K},ye("slot",{name:"atlas"}),k?ye(Hd,{onCreate:Q}):null),ye("slot",null)):null;return ye(cS.Provider,{value:e.__registerPublicApi},ye(Kg,{vault:t},ye(KC,null,N?ye(ok,{manifestId:N},J):J)),v?ye("style",null,v):null,b?ye("link",{rel:"stylesheet",href:b}):null)}),"OL");typeof window<"u"&&$n(ck,"canvas-panel",uk,{shadow:!0,onConstruct(e){Object.defineProperty(e,"vault",{get:()=>e._props.vault,set(t){e._props.vault=t}}),e._props={__registerPublicApi:H((t=>{Object.assign(e,t(e))}),"__registerPublicApi")}}}),tt(),Cn();var dk=pe(In()).ErrorBoundary;function pk(e){let{atlasProps:t,isConfigBlocking:n,setIsReady:i,virtualSizes:r,height:a,width:s,className:o,inlineStyles:l,inlineStyleSheet:u,viewport:c,vault:d,useProp:p,interactive:h,x:f,y:m,homeCover:g,background:y,highlight:v,highlightCssClass:b}=rS(e),[_]=p("src"),[w]=p("nested",{parse:Vv}),[S]=p("rotation",{parse:qv}),[C,k]=p("tileFormat"),[x]=p("skipSizes",{parse:Vv}),[T]=p("disableThumbnail",{parse:Vv}),[E,A]=Qy(),L=A[_],I=ut((()=>{let e=E({id:_},{});return e&&e.preferredFormats&&1===e.preferredFormats.length&&k(e.preferredFormats[0]),e&&e.height&&e.width&&"loading"!==L?{id:_,width:e.width,height:e.height,service:e,type:"Image",selector:{type:"BoxSelector",spatial:{x:0,y:0,width:e.width,height:e.height}},target:{type:"BoxSelector",spatial:{x:0,y:0,width:e.width,height:e.height}}}:null}),[E,_,A]);if(!I||!I.height||!I.width||n)return null;let $=c?void 0:t.homePosition?t.homePosition.width/t.homePosition.height:I.width/I.height;return ye(dk,{fallbackRender:H((e=>ye(ek,re({height:a,width:s,aspectRatio:$},e))),"fallbackRender")},ye(Kg,{vault:d},ye(oS,re({onCreated:H((()=>{i(!0)}),"onCreated"),viewport:!0,aspectRatio:$,className:o,nested:w,homeCover:g,background:y,homeOnResize:!!g,rotation:S},t),ye(qC,{key:I.id,image:I,id:I.id,isStatic:!h,virtualSizes:r,skipSizes:x,skipThumbnail:T,x:f,y:m,rotation:S,tileFormat:C,annotations:v&&v.selector&&"BoxSelector"===v.selector.type?ye(NC,{id:"highlight",isEditing:!1,interactive:!1,onClick:H((()=>{}),"onClick"),onSave:H((()=>{}),"onSave"),region:v.selector.spatial,style:b?void 0:{border:"3px solid red"},className:b}):void 0}))),l?ye("style",null,l):null,u?ye("link",{rel:"stylesheet",href:u}):null,e.children?ye("slot",null,e.children):null)}function hk(e){let t=ut((()=>new AC),[]);return ye(Zy.Provider,{value:t},ye(pk,re({},e)))}H(pk,"ML"),H(hk,"FL"),typeof window<"u"&&$n(hk,"image-service",["src","nested","x","y","width","height","target","region","highlight","highlight-css-class","text-selection-enabled","disable-keyboard-navigation","click-to-enable-zoom","preferred-formats","atlas-mode","style-id","debug","preset","responsive","interactive","iiif-content","class","choice-id","move-events","granular-move-events","home-cover","tile-format","rotation","background"],{shadow:!0,onConstruct(e){e._props={__registerPublicApi:H((t=>{Object.assign(e,t(e))}),"__registerPublicApi")}}}),tt(),Cn();var fk=[...lk,"manifest-id","range-id","start-canvas","paging-enabled","text-selection-enabled","text-enabled","follow-annotations","margin","background"];function mk(e){let{vault:t,webComponent:n,runtime:i,atlasProps:r,isConfigBlocking:a,highlight:s,highlightCssClass:o,virtualSizes:l,viewport:u,debug:c,mode:d,interactive:p,className:h,inlineStyles:f,inlineStyleSheet:m,useProp:g,useRegisterWebComponentApi:y,background:v}=rS(e),[b,_,,w]=g("manifestId"),[S,,,C]=g("rangeId"),[k,x,,T]=g("startCanvas"),[E]=g("margin",{parse:qv,defaultValue:0}),[A]=g("pagingEnabled",{parse:Vv,defaultValue:!0}),[L]=g("textSelectionEnabled",{parse:Vv,defaultValue:!0}),[I]=g("textEnabled",{parse:Vv,defaultValue:!1}),[$]=g("followAnnotations",{parse:Vv,defaultValue:!0}),[D,,P]=g("iiifContent",{parse:zv}),O=D&&"remote-content-state"!==D.type?D:null,M=D&&"remote-content-state"===D.type?D.id:null,[R,N]=it(),[F]=g("skipSizes",{parse:Vv,defaultValue:!1});return y((e=>({vault:t,setManifest:H((t=>
102{e.setAttribute("manifest-id",t)}),"setManifest"),setRange:H((t=>{e.setAttribute("range-id",t)}),"setRange"),getRangeId:()=>C.current,getContentState(){let e=null!=w&&w.current?null==w?void 0:w.current:b,t=n.current.sequence,r=t.items[t.sequence[t.currentSequenceIndex][0]].id,{x:a,y:s,width:o,height:l}=(null==i?void 0:i.current)||{},u={id:`${r}#xywh=${Dv(a)},${Dv(s)},${o},${l}`,type:"Canvas",partOf:[{id:e,type:"Manifest"}]};return{contentState:u,normalisedContentState:Fv(u),encodedContentState:Pv(u)}},setContentStateFromText(e,t=!1){if(null==e||""===e.trim())return;let n=Fv(Ov(e));n.immediate=t,P(n)},getManifestId:()=>w.current,disableTextSelection(){e.setAttribute("text-selection-enabled","false")},enableTextSelection(){e.setAttribute("text-selection-enabled","true")},enableText(){e.setAttribute("text-enabled","true")},disableText(){e.setAttribute("text-enabled","true")}}))),st((()=>{M&&!R&&fetch(M).then((e=>e.json())).then((e=>{P(zv(e))})).catch((e=>{console.error(e),N(new Error(`Failed to load content state from ${M} \n\n ${e.toString()}`))}))}),[M,R]),st((()=>{var e;if(O&&O.target.length){let t=O.target[0];if("SpecificResource"===t.type&&"Canvas"===t.source.type){let r=(t.source.partOf||[]).find((e=>"Manifest"===e.type));if(n.current.sequence.setCurrentCanvasId(t.source.id),r&&_(r.id),t.selector&&"BoxSelector"===t.selector.type){let{x:n,y:r,width:a,height:s}=t.selector.spatial;null==(e=null==i?void 0:i.current)||e.world.gotoRegion({x:n,y:r,width:a,height:s,immediate:O.immediate})}}}}),[O]),!b||a?null:ye(cS.Provider,{value:e.__registerPublicApi},ye(Kg,{vault:t},ye(KC,null,ye(py,{manifest:b,startCanvas:k,rangeId:S,pagingEnabled:A},ye(ak,{renderMultiple:!0,key:`${k}-${u?"v1":"v0"}`,background:v,interactive:p,followAnnotations:$,className:h,highlight:s,debug:c,virtualSizes:l,highlightCssClass:o,displayOptions:r,mode:d,textEnabled:I,skipSizes:F,textSelectionEnabled:L,margin:E},ye("slot",{name:"atlas"})),ye("slot",null)))),f?ye("style",null,f):null,m?ye("link",{rel:"stylesheet",href:m}):null)}H(mk,"LL"),typeof window<"u"&&$n(mk,"sequence-panel",fk,{shadow:!0,onConstruct(e){Object.defineProperty(e,"vault",{get:()=>e._props.vault,set(t){e._props.vault=t}}),e._props={__registerPublicApi:H((t=>{Object.assign(e,t(e))}),"__registerPublicApi")}}}),tt(),Cn(),tt();var gk=H((({metadata:e=[],config:t,variation:n="table",labelWidth:i=16,bordered:r,labelStyle:a,showEmptyMessage:s,allowHtml:o,separator:l})=>{let u={separator:l},c=ut((()=>{let n=(t||[]).reduce(((e,t)=>[...e,...t.keys]),[]),i={};for(let t of e){let e=t&&t.label?Object.values(t.label):[];for(let r of e)if(r&&r.length&&(-1!==n.indexOf(`metadata.${r[0]}`)||0===n.length)&&t){let e=`metadata.${r[0]}`;i[e]=i[e]?i[e]:[],i[e].push(t);break}}return i}),[t,e]);return 0===Object.keys(c).length&&s?ye("slot",{name:"empty"}):t&&t.length?ye("table",{"data-variation":n,"data-label-style":a,"data-bordered":r},ye("slot",{slot:"header"}),ye("tbody",null,t.map(((e,t)=>{let n=[];for(let i of e.keys)for(let e of c[i]||[])n.push(ye("div",{key:t+"__"+i},o?ye("span",{dangerouslySetInnerHTML:{__html:m_(e.value,u)}}):m_(e.value,u)));return 0===n.length?null:ye("tr",{className:"metadata-row",key:t},ye("td",{className:"metadata-key",style:i?{minWidth:i}:{}},o?ye("span",{dangerouslySetInnerHTML:{__html:m_(e.label,u)}}):m_(e.label,u)),ye("td",{className:"metadata-value"},n))}))),ye("slot",{name:"footer"})):ye("table",{"data-variation":n,"data-label-style":a,"data-bordered":r},ye("slot",{name:"header"}),ye("tbody",null,e&&e.length?e.map(((e,t)=>e?ye("tr",{className:"metadata-row",key:t},ye("td",{className:"metadata-key",style:i?{minWidth:i}:{}},o?ye("span",{dangerouslySetInnerHTML:{__html:m_(e.label,u)}}):m_(e.label,u)),ye("td",{className:"metadata-value"},o?ye("span",{dangerouslySetInnerHTML:{__html:m_(e.value,u)}}):m_(e.value,u))):null)):ye("slot",{name:"empty-table"})),ye("slot",{name:"footer"}))}),"a_");function yk(e){let t=xv(),n=e.vault||t||eS(),[i]=Lv(e.manifestId),[r]=Lv(e.variation),[a]=Lv(e.labelStyle),[s]=Lv(e.separator),[o]=Lv(e.labelWidth,{parse:qv}),[l]=Lv(e.bordered,{parse:Vv,defaultValue:!1}),[u]=Lv(e.allowHtml,{parse:Vv,defaultValue:!1}),[c]=Lv(e.showEmptyMessage,{parse:Vv,defaultValue:!1});return i?ye(_e,null,ye(Kg,{vault:n},ye(Qg,{manifest:i},ye(vk,{manifestId:i,variation:r,labelStyle:a,labelWidth:o,bordered:l,showEmptyMessage:c,allowHtml:u,separator:s})))):ye("slot",{name:"no-manifest"})}function vk(e){let{manifest:t}=Xg(e.manifestId);return ye(gk,ae(re({},e),{metadata:null==t?void 0:t.metadata}))}H(yk,"NL"),H(vk,"DL");function bk(e){var t;let n=oy(),i=Yg(),r=ut((()=>null==n?void 0:n.items.find((e=>"Canvas"===e.type))),[n]),a=ut((()=>!(null==n||!n.items.find((e=>"Range"===e.type)))),[n]),s=e.selected&&e.selected===(null==n?void 0:n.id);function o(){var t,s;if(n&&e.onRangeClick){let l={isLeaf:!a};if(r){let[e,n]=null==(t=r.id)?void 0:t.split("#");l.selector=r.id,l.canvasId=e,l.fragment=n}else if(n){let e=Y_(i,n);if(e){let[t,n]=null==(s=e.id)?void 0:s.split("#");l.selector=e.id,l.canvasId=t,l.fragment=n}}if(l.selector)try{l.parsedSelector=U_(l.selector)}catch(o){}e.onRangeClick(n,l)}}return H(o,"l"),n?ye("ul",{className:"range-item-container","data-leaf":!a,"data-selected":s,"data-with-selector":-1!==(null==(t=null==r?void 0:r.id)?void 0:t.indexOf("#")),"data-range-id":n.id},n.label?ye("li",{className:"range-split",onClick:o},ye("span",{className:"range-label"},m_(n.label))):null,a?ye("div",{className:"range-nested-container"},n.items.map((t=>"Canvas"!==t.type&&"SpecificResource"!==t.type&&t.id?ye(ry,{key:t.id,range:t.id},ye(bk,{onRangeClick:e.onRangeClick,selected:e.selected})):null))):null):null}function _k(e){let t=iy(),n=Yg();if(!t)throw new Error("No manifest");let i=e.canvasId?Z_(n,t,e.canvasId):e.selectedRange?n.get(e.selectedRange):void 0;return st((()=>
102{if(i&&e.autoScroll){let e=document.querySelector(`[data-range-id="${i.id}"]`);e&&e.scrollIntoView({block:"nearest",behavior:"auto"})}}),[i]),t&&t.structures.length?ye(_e,null,i?ye("div",{className:"range-current"},m_(i.label)):null,t.structures.map((t=>ye(ry,{key:t.id,range:t.id},ye(bk,{selected:null==i?void 0:i.id,onRangeClick:e.onRangeClick}))))):ye("slot",{name:"no-range"})}function wk(e){let t=xv(),n=e.vault||t||eS(),[i]=Lv(e.manifestId),[r]=Lv(e.canvasId),[a]=Lv(e.selectedRange),[s]=Lv(e.autoScroll,{parse:Vv,defaultValue:!0}),[o,l]=it();if(st((()=>{e.__registerPublicApi&&e.__registerPublicApi((e=>(l(e),{})))}),[]),!i)return ye("slot",{name:"no-manifest"});function u(e,t){o&&o.dispatchEvent(new CustomEvent("range-change",{detail:{range:e,isLeaf:t.isLeaf,canvasId:t.canvasId,fragment:t.fragment,selector:t.selector,parsedSelector:t.parsedSelector}}))}return H(u,"p"),ye(_e,null,ye(Kg,{vault:n},ye(Sk,{manifestId:i,canvasId:r,selectedRange:a,autoScroll:s,onRangeClick:u})))}function Sk(e){let{manifest:t,isLoaded:n}=Xg(e.manifestId);return t&&n?ye(Qg,{manifest:t.id},ye(_k,re({},e))):null}typeof window<"u"&&$n(yk,"metadata-panel",["manifest-id","config-id","variation","label-style","label-width","bordered","show-empty-message"],{shadow:!1,onConstruct(e){Object.defineProperty(e,"vault",{get:()=>e._props.vault,set(t){e._props.vault=t}}),e._props={__registerPublicApi:H((t=>{Object.assign(e,t(e))}),"__registerPublicApi")}}}),tt(),Cn(),tt(),H(bk,"wf"),tt(),Cn(),H(_k,"l_"),Cn(),H(wk,"BL"),H(Sk,"WL");typeof window<"u"&&$n(wk,"range-panel",["manifest-id","config-id","canvas-id","auto-scroll","selected-range"],{shadow:!1,onConstruct(e){Object.defineProperty(e,"vault",{get:()=>e._props.vault,set(t){e._props.vault=t}}),e._props={__registerPublicApi:H((t=>{Object.assign(e,t(e))}),"__registerPublicApi")}}})})()),cit}H(dit,"requireBundle"),dit();const pit={NO_COPYRIGHT:"rightsstatements.org/vocab/NoC-US/1.0/",IN_COPYRIGHT:"rightsstatements.org/vocab/InC/1.0/",NOT_EVALUATED:"rightsstatements.org/vocab/CNE/1.0/",IN_COPYRIGHT_UNIDENTIFIABLE:"rightsstatements.org/vocab/InC-RUU/1.0/",UNDETERMINED:"rightsstatements.org/vocab/UND/1.0/",ZERO:"creativecommons.org/publicdomain/zero/1.0/"};function hit(e,t="en",n=" ",i="label"){if(!e[i])return;const r=Object.keys(e[i]);let a=-1!=r.indexOf(t)?r.indexOf(t):0;return e[i][r[a]].join(n)}function fit(e){let t;return"Canvas"==e.type&&(t=e.id),"Image"==e.type&&(t=e.service[0].id||e.service[0]["@id"]),"Annotation"==e.type&&(t=e.body[0].id,t.includes("full")&&(t=t.split("/").slice(0,-4).join("/"))),t}function mit(e){const t=e.rights?e.rights.split("//")[1]:void 0;return t&&[pit.IN_COPYRIGHT,pit.IN_COPYRIGHT_UNIDENTIFIABLE].includes(t)}function git(e,t,n,i){var r;return`${e}/full/${t?`${t[0]},`:"full"}/0/default.jpg?download=${`${Cnt(e,i)}_${null!=(r=null==t?void 0:t[0])?r:"full"}.jpg`}&size=${n}`}H(hit,"vn"),H(fit,"ut"),H(mit,"Tr"),H(git,"Er");const yit={name:"ViewerSupport",emits:["cp-load-error","currentChoices","fullscreenchange","ready","thumbnailsReady","togglePaged","worldReady","zoom"],props:{manifestUrl:{type:String,required:!0},canvasIndex:{type:Number,default:void 0},useCanvasThumbnails:{type:Boolean,default:!1},canvasId:{type:String,default:void 0},imageMetadata:{type:Object,default:H((()=>({})),"default")},iiifImageUrlPart:{type:String,default:void 0}},data(){var e;return{locale:null!=(e=this.$i18n.locale)?e:"en",manifest:void 0,currentChoices:{},displayAnnotationsAdded:!1,errorMessage:void 0,clickCoords:{},canvasTitle:void 0}},watch:{manifestUrl(){return V(this,null,(function*(){yield this.loadManifest()}))}},computed:{currentCanvasId(){var e;if(null!=(e=this.manifest)&&e.items)return this.canvasId?this.canvasId:this.manifest.items[0].id}},methods:{loadManifest(){return V(this,null,(function*(){var e;if(this.$el){let t=this.$el.vault.get(this.manifestUrl);if(t&&["Collection","Dataset"].includes(null==t?void 0:t.type)&&(this.manifest=this.$el.vault.get({id:this.manifestUrl,type:"Manifest"})),!this.manifest){const t=yield this.fetchManifest(this.manifestUrl);this.manifest=yield null==(e=this.$el.vault)?void 0:e.loadManifest(this.manifestUrl,t)}this.getThumbnails()}}))},fetchManifest(e){return V(this,null,(function*(){const t=yield fetch(e);let n;if(200==t.status)n=yield t.json();else{let e=`${t.status} ${t.statusText}`;this.errorMessage=this.translatePart("o-image-viewer.error_message",{status:e})}return n}))},getAltText(e){const t=this.getVisualItem(e);return(null==t?void 0:t.altText)||this.getLabel(e)},getChoiceAnnotations(e){return e.filter((e=>"Choice"==this.$el.vault.get(e.body[0].id).type))},handleZoom(e){this.$emit("zoom",e)},handleReady(e){this.$emit("ready",e),this.manifest||this.loadManifest()},handleWorldReady(e){this.$emit("worldReady",e),this.handleZoom(e)},setChoiceDisplayAnnotations(){return V(this,null,(function*(){let e=yield this.$el.vault.getState(),t=Object.values(e.iiif.entities.Annotation);const n=this.getChoiceAnnotations(t);for(let i of n)this.addChoiceDisplayAnnotation(i)}))},addChoiceDisplayAnnotation(e){return V(this,null,(function*(){const t=this.$el.createAnnotationDisplay(e);t.className=`m-image-viewer__choice--${e.body[0].id}`;let n=yield this.$el.vault.get(e.body[0].id),i=yield this.$el.vault.get(n.items[0].id),r=this.getLabel(i);r&&(t.title=r),this.$el.annotations.add(t)}))},handleDblClick(e){const t=e.composedPath()[0];let n=Array.from(t.classList).pop();if(n&&n.startsWith("m-image-viewer__choice")){const e=n.split("--").pop();let t=JSON.parse(JSON.stringify(this.currentChoices)),i=t[e].items[1],r=i.selected;this.$el.makeChoice(i.id,{deselect:r,deselectOthers:r}
102),t[e].items.forEach((e=>{e.selected=!e.selected})),this.currentChoices=t}this.$emit("currentChoices")},clickHandler(e){if(["CANVAS-PANEL","SEQUENCE-PANEL"].includes(e.target.tagName)&&("mousedown"==e.type&&(this.clickCoords={x:e.x,y:e.y}),"mouseup"==e.type&&0==e.button)){if(this.clickCoords.x!=e.x||this.clickCoords.y!=e.y)return;e.metaKey?this.$el.zoomOut():this.$el.zoomIn()}},handleChoice(e){var t;if("single-choice"==(null==(t=e.detail.choice)?void 0:t.type)){let t=e.detail.choice.partOf.choiceId;this.currentChoices[t]=B(F({},e.detail.choice),{items:e.detail.choice.items.sort((e=>e.selected?-1:1))}),this.$emit("currentChoices",this.currentChoices)}},handleLoadError(e){var t;this.errorMessage=null!=(t=this.errorMessage)?t:null==e?void 0:e.message,this.$emit("cp-load-error")},handleContextMenu(e){if("CANVAS-PANEL"==e.target.tagName&&this.currentCanvasId){const t=this.$el.vault.get(this.currentCanvasId);this.getDisableContextMenu(t)&&e.preventDefault()}"SEQUENCE-PANEL"==e.target.tagName&&this.currentSequence&&this.currentSequence.map((e=>this.$el.vault.get(this.$el.sequence.items[e].id))).some((e=>mit(e)))&&e.preventDefault()},getRangeByCanvasId(e){let t=[];const n=Object.values(this.$el.vault.getState().iiif.entities.Range);return n&&(t=n.filter((t=>t.items&&t.items.find((t=>t.id==e))))),t[0]},mapCanvasesToThumbnails(e){let t={};return this.$el.vault.get(e).forEach((e=>{let n=this.getImageServiceRef(e),i=fit(n);if(n.label=this.getLabel(e),this.useCanvasThumbnails)t[i]=n;else{if("Image"==n.type&&(t[i]=n),"Annotation"==n.type){const e=this.$el.vault.get(n.body[0].id),r="Choice"==e.type?e.items[0].id:e.id;t[i]={id:r,label:n.label,type:"Image"}}t[i].canvasId=e.id}})),t},getLabel(e){return hit(e,this.locale,", ")},getImageServiceRef(e){var t,n,i;let r;if(this.useCanvasThumbnails)r=e;else if(e.thumbnail&&e.thumbnail.length)r=this.$el.vault.get(e.thumbnail[0]);else if(e.items&&e.items.length){let a=this.$el.vault.get(e.items[0].id);r=null!=(n=this.$el.vault.get(null!=(t=null==(i=null==a?void 0:a.items)?void 0:i[0])?t:{}))?n:e}return JSON.parse(JSON.stringify(r))},getDisableContextMenu(e){const t=this.getVisualItem(e);return!0===(null==t?void 0:t.disableContextMenu)},getVisualItem(e){const t=fit(this.getImageServiceRef(e));return this.imageMetadata[t]||this.imageMetadata[e.id]}}},vit=H(((e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n}),"k"),bit={name:"CanvasViewer",components:{ResourceUnavailable:Yae},mixins:[yit],props:{isZoomable:{type:Boolean,default:!0},rotation:{type:Number,default:0}},emits:["thumbnailsReady","canvasChange","cp-load-error"],setup:e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey})),watch:{useCanvasThumbnails(){this.getThumbnails()}},methods:{handleCurrentCanvas(e){return V(this,null,(function*(){var t,n,i;if(yield this.$nextTick(),this.currentChoices={},null!=(n=e.detail)&&n.canvas){const n=this.$el.vault.get(e.detail.canvas),r=fit(this.getImageServiceRef(n)),a=this.$el.vault.get(r);let s,o=r,l=null==(i=null==a?void 0:a.service)?void 0:i[0];l&&(s=null==l?void 0:l.sizes,o=null!=(t=l.id)?t:o),e.detail.image=r,e.detail.canvasDetails={width:n.width,height:n.height,serviceUrl:o,sizes:s}}this.canvasTitle=this.buildCanvasTitle(),this.$emit("canvasChange",e)}))},getThumbnails(){var e,t;if(this.manifest){let n=null!=(e=null==(t=this.manifest)?void 0:t.items)?e:[];const i=this.mapCanvasesToThumbnails(n);this.$emit("thumbnailsReady",i)}},buildCanvasTitle(){if(this.currentCanvasId)return this.getAltText(this.$el.vault.get(this.currentCanvasId))}}},_it=["manifest-id","canvas-id","interactive","a11y-title","rotation"],wit={key:0,slot:"fallback",name:"error-fallback",class:"m-image-viewer__error"};function Sit(e,t,n,i,r,a){const s=Yr("ResourceUnavailable");return As(),Ps("canvas-panel",{key:n.isZoomable,"manifest-id":e.manifestUrl,"canvas-id":e.currentCanvasId,interactive:n.isZoomable.toString(),"a11y-role":"img","a11y-title":e.canvasTitle,rotation:n.rotation,"follow-annotations":"false",onReadyOnce:t[0]||(t[0]=(...t)=>e.handleReady&&e.handleReady(...t)),onWorldReady:t[1]||(t[1]=(...t)=>e.handleWorldReady&&e.handleWorldReady(...t)),onZoom:t[2]||(t[2]=(...t)=>e.handleZoom&&e.handleZoom(...t)),onCanvasChange:t[3]||(t[3]=(...e)=>a.handleCurrentCanvas&&a.handleCurrentCanvas(...e)),onMousedown:t[4]||(t[4]=(...t)=>e.clickHandler&&e.clickHandler(...t)),onMouseup:t[5]||(t[5]=(...t)=>e.clickHandler&&e.clickHandler(...t)),onChoice:t[6]||(t[6]=(...t)=>e.handleChoice&&e.handleChoice(...t)),onContextmenu:t[7]||(t[7]=(...t)=>e.handleContextMenu&&e.handleContextMenu(...t)),onCpLoadError:t[8]||(t[8]=(...t)=>e.handleLoadError&&e.handleLoadError(...t))},[e.errorMessage?(As(),Ps("div",wit,[Hs(s,{"caption-text":e.errorMessage},null,8,["caption-text"])])):Ws("",!0)],40,_it)}H(Sit,"Or");const Cit=vit(bit,[["render",Sit]]),kit={name:"SequenceViewer",components:{ResourceUnavailable:Yae}
102,mixins:[yit],props:{baseLocaleKey:{type:String,required:!1,default:"o-image-viewer"},rangeId:{type:String,default:void 0},componentType:{type:String,default:void 0},showGallery:{type:Boolean,default:!1},viewerLayout:{type:String,default:void 0}},emits:["currentChoices","currentSequence","numberOfSlides","slideIndex","thumbnailsReady","cp-load-error","sequenceChange"],setup:e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey})),data(){return{sequenceMargin:100,currentSequence:[],sequencePosition:0,sequenceLength:0,facingPagesLabel:this.translate(this.baseLocaleKey+".alt_text.facing_pages"),choiceLabel:this.translate(this.baseLocaleKey+".alt_text.choice")}},computed:{rangeId_(){var e,t;let n=this.rangeId;return"range"==this.componentType&&!this.rangeId&&(n=null==(t=null==(e=this.manifest)?void 0:e.structures[0])?void 0:t.id),n}},watch:{currentCanvasId(){this.currentCanvasId&&this.$el.sequence&&this.$el.sequence.setCurrentCanvasId(this.currentCanvasId)},rangeId_(){this.getThumbnails()},viewerLayout(e,t){return V(this,null,(function*(){const n=this.$el.sequence.currentSequenceIndex,i=this.$el.sequence.sequence[n];if(["individuals","paged"].includes(e)){const n="sequence"==this.componentType?this.manifest.id:this.rangeId_;let r=this.$el.vault.get(n);if(yield this.$el.vault.modifyEntityField(r,"behavior",e),"individuals"==e&&"gallery"==t&&this.canvasId)this.$el.sequence.setCurrentCanvasId(this.currentCanvasId);else if(this.$el.sequence.setCurrentCanvasIndex(i[0]),i[0]<2){let e={detail:{total:this.$el.sequence.sequence.length,index:i[0]}};this.handleCurrentSequence(e)}}}))}},methods:{getAnnotationsFromCanvas(e){let t=this.$el.vault.get(e.items).reduce(((e,t)=>e.concat(t.items)),[]);return this.$el.vault.get(t)},getThumbnails(){var e;if(this.manifest){let t="range"==this.componentType&&this.rangeId_?this.$el.vault.get(this.rangeId_):this.manifest;t=null!=(e=null==t?void 0:t.items)?e:[];const n=this.mapCanvasesToThumbnails(t);this.$emit("thumbnailsReady",n)}},buildCanvasTitle(e){var t;if(this.manifest&&null!=(t=this.$el.sequence)&&t.sequence){const t=this.buildCanvasLabelObjects(e);return this.buildCanvasLabels(t)}},buildCanvasLabelObjects(e){let t=[];return e.forEach((e=>{let n={canvasLabel:this.getLabel(e)},i=this.getAnnotationsFromCanvas(e);this.getChoiceAnnotations(i).forEach((e=>{let t=this.$el.vault.get(e.body[0]),i=this.$el.vault.get(t.items).map((e=>this.getLabel(this.$el.vault.get(e.id))));i.length&&(n.choiceLabel=i[0])})),t.push(n)})),t},buildCanvasLabels(e){let t=[];if(e.forEach((e=>{let n=[];for(const[t,i]of Object.entries(e))"canvasLabel"==t&&n.push(i),"rangeLabel"==t&&n.push(i),"choiceLabel"==t&&(n=n.concat([`with ${i}`,this.choiceLabel]));t.push(n.join(" "))})),t.length)return 2==t.length?`${this.facingPagesLabel}: `+t.join(" and "):t[0]},handleCurrentSequence(e){return V(this,null,(function*(){this.sequenceLength=e.detail.total-1,this.currentChoices={},this.sequencePosition=e.detail.index,null==this.$el.sequence.sequence[this.sequencePosition]&&(this.sequencePosition=0,this.$el.sequence.setCurrentCanvasIndex(0));let t=this.$el.sequence.sequence[this.sequencePosition];this.currentSequence=t;const n=this.currentSequence.map((e=>this.$el.vault.get(this.$el.sequence.items[e].id)));this.canvasTitle=this.buildCanvasTitle(n),this.$emit("numberOfSlides",this.sequenceLength),this.$emit("sequenceChange",n),this.$emit("slideIndex",this.sequencePosition),this.$emit("currentSequence",this.currentSequence),this.$emit("currentChoices",{})}))},initializeBehavior(){return V(this,null,(function*(){["range","sequence"].includes(this.componentType)&&this.manifest&&(!this.manifest.behavior||0==this.manifest.behavior.length)&&(yield this.$el.vault.modifyEntityField(this.manifest,"behavior","paged"))}))}}},xit=["manifest-id","margin","range-id","a11y-title"],Tit={slot:"fallback",class:"m-image-viewer__error"};function Eit(e,t,n,i,r,a){const s=Yr("ResourceUnavailable");return As(),Ps("sequence-panel",{"manifest-id":e.manifestUrl,margin:r.sequenceMargin,"range-id":a.rangeId_,"a11y-role":"img","a11y-title":e.canvasTitle,onReadyOnce:t[0]||(t[0]=(...t)=>e.handleReady&&e.handleReady(...t)),onWorldReady:t[1]||(t[1]=(...t)=>e.handleWorldReady&&e.handleWorldReady(...t)),onZoom:t[2]||(t[2]=(...t)=>e.handleZoom&&e.handleZoom(...t)),onCpLoadError:t[3]||(t[3]=t=>e.$emit("cp-load-error")),onSequenceChange:t[4]||(t[4]=(...e)=>a.handleCurrentSequence&&a.handleCurrentSequence(...e)),onSequenceOnce:t[5]||(t[5]=(...e)=>a.initializeBehavior&&a.initializeBehavior(...e)),onMousedown:t[6]||(t[6]=(...t)=>e.clickHandler&&e.clickHandler(...t)),onMouseup:t[7]||(t[7]=(...t)=>e.clickHandler&&e.clickHandler(...t)),onChoice:t[8]||(t[8]=(...t)=>e.handleChoice&&e.handleChoice(...t)),onContextmenu:t[9]||(t[9]=(...t)=>e.handleContextMenu&&e.handleContextMenu(...t))},[Bs("div",Tit,[Hs(s,{"caption-text":e.errorMessage},null,8,["caption-text"])])],40,xit)}H(Eit,"Dr");const Ait=vit(kit,[["render",Eit]]),Lit={name:"StaticCanvas",props:{manifestUrl:{type:String,default:void 0},canvasId:{type:String,default:void 0},canvasHeight:{type:Number,default:void 0},canvasWidth:{type:Number,default:void 0},preset:{type:String,default:"responsive"},alt:{type:String,default:void 0},label:{type:String,default:void 0}},data(){return{canvasTitle:this.alt||this.label}}},Iit={class:"a-static-canvas"},$it=["manifest-id","canvas-id","height","width","preset","a11y-title"];function Dit(e,t,n,i,r,a){return As(),Ps("div",Iit,[Bs("canvas-panel",{"manifest-id":n.manifestUrl,"canvas-id":n.canvasId,height:n.canvasHeight,width:n.canvasWidth,preset
102:n.preset,"a11y-title":r.canvasTitle,"a11y-role":"img"},null,8,$it)])}H(Dit,"jr");const Pit={name:"CanvasThumbnail",components:{ImageResponsive:vae,ResourceUnavailable:Yae,StaticCanvas:vit(Lit,[["render",Dit]])},props:{baseLocaleKey:{type:String,default:"a-thumbnail"},thumbnail:{type:Object,required:!0}},data:()=>({imageAvailable:!0}),methods:{handleImageError(){this.imageAvailable=!1}}},Oit={class:"a-canvas-thumbnail__wrapper"};function Mit(e,t,n,i,r,a){const s=Yr("ResourceUnavailable");return As(),Ps("div",Oit,[r.imageAvailable?(As(),Os(Xr(n.thumbnail.type),Zs({key:0,"data-testid":"thumbnail",class:"a-canvas-thumbnail"},n.thumbnail,{"onImageResponsive:LoadError":a.handleImageError}),{default:Ii((()=>[qs(ze(n.thumbnail.label),1)])),_:1},16,["onImageResponsive:LoadError"])):(As(),Ps(Ss,{key:1},[Hs(s,{class:""}),Bs("figcaption",null,ze(n.thumbnail.label),1)],64))])}H(Mit,"Zr");const Rit=vit(Pit,[["render",Mit]]),Nit={name:"ToolbarGallery",components:{CanvasThumbnail:Rit},inject:{thumbnailProps:{type:Array,required:!1,default:H((()=>[]),"default")}},props:{useCanvasThumbnails:{type:Boolean,default:!1}},emits:["click"],data:()=>({observer:void 0,totalObserved:0,scrollY:void 0}),mounted(){this.initObserver()},methods:{initObserver(){const e=document.querySelector(".a-toolbar-gallery__wrapper"),t=e.querySelector(".a-toolbar-gallery__grid");this.observer=Sn(new IntersectionObserver((e=>{(null==this.scrollY||t.getBoundingClientRect().y<this.scrollY)&&(this.totalObserved+=e.filter((e=>e.isIntersecting)).length),this.scrollY=t.getBoundingClientRect().y})));const n=e.querySelectorAll("button");n.length&&n.forEach((e=>{this.observer.observe(e)}))}}},Fit={class:"a-toolbar-gallery"},Bit={class:"a-toolbar-gallery__wrapper"},Hit={class:"a-toolbar-gallery__grid","data-testid":"gallery"},jit=["data-canvas-id"];function Uit(e,t,n,i,r,a){const s=Yr("CanvasThumbnail");return As(),Ps("div",Fit,[Bs("div",Bit,[Bs("div",Hit,[(As(!0),Ps(Ss,null,ea(a.thumbnailProps,((n,i)=>(As(),Ps("button",{key:i,class:"a-toolbar-gallery__thumbnail","data-testid":"galleryThumbnail","data-canvas-id":n.canvasId,onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[r.totalObserved&&i<r.totalObserved?(As(),Os(s,Zs({key:0,ref_for:!0},{thumbnail:n}),null,16)):Ws("",!0)],8,jit)))),128))])])])}H(Uit,"Qr");const Vit=vit(Nit,[["render",Uit]]),qit={name:"ToolbarButton",components:{GuiButton:Jee,Icon:Xie},props:{name:{type:String,required:!0},disabled:{type:Boolean,default:!1},iconName:{type:String,required:!0},variation:{type:String,required:!0},ariaTitle:{type:String,default:void 0},size:{type:Number,default:void 0}},emits:["click"]};function zit(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("GuiButton");return As(),Os(o,{name:n.name,"data-testid":n.name,modifiers:["icon","outline","image-viewer-toolbar"],disabled:n.disabled,onClick:t[0]||(t[0]=t=>e.$emit("click",t))},{default:Ii((()=>[Hs(s,{name:n.iconName,class:Fe(`m-image-viewer-toolbar__${n.variation}`),"aria-title":n.ariaTitle,size:n.size},null,8,["name","class","aria-title","size"])])),_:1},8,["name","data-testid","disabled"])}H(zit,"es$1");const Wit=vit(qit,[["render",zit]]),Git={name:"FullscreenButton",components:{ToolbarButton:Wit},inject:{isFullscreen:{type:Boolean,default:!1},analyticsLabel:{type:[String,void 0],default:void 0},toolbarController:{}},props:{baseLocaleKey:{type:String,default:"a-fullscreen-button"},modifiers:{type:Array,required:!1,default:H((()=>[]),"default")},disabled:{type:Boolean,default:!1}},setup:e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey})),data(){return{fullscreenAriaTitle:this.translatePart("fullscreen"),fullscreenExitAriaTitle:this.translatePart("fullscreenExit")}},computed:{fullscreenIcon(){let e="FullScreenVideo400";return this.isFullscreen?e="close":this.isFullscreen&&(e="FullScreenVideoExit400"),e},classes(){let e=[this.baseLocaleKey];return this.modifiers.forEach((t=>{e.push(`${e[0]}--${t}`)})),e}}};function Kit(e,t,n,i,r,a){const s=Yr("ToolbarButton");return As(),Ps("div",{class:Fe(a.classes)},[Hs(s,{name:"enter-full-screen",variation:"full-screen",disabled:n.disabled,"icon-name":a.fullscreenIcon,"aria-title":a.isFullscreen?r.fullscreenExitAriaTitle:r.fullscreenAriaTitle,onClick:t[0]||(t[0]=e=>a.toolbarController.fullScreenChange(a.analyticsLabel))},null,8,["disabled","icon-name","aria-title"])],2)}H(Kit,"ns");const Yit=vit(Git,[["render",Kit]]),Zit={name:"ImageToolsButtonGroup",components:{FullscreenButton:Yit,ToolbarButton:Wit},inject:{fullscreenAvailable:{default:!0,type:Boolean},isFullscreen:{type:Boolean,default:!1},canZoomIn:{type:Boolean,default:!0},canZoomOut:{type:Boolean,default:!0},isSequence:{type:Boolean,default:!1},showMenuPanel:{type:Boolean,default:!1},viewerLayout:{type:String},analyticsLabel:{type:[String,void 0],default:void 0},isMobile:{type:Boolean,default:!1},toolbarController:{}}
102,props:{baseLocaleKey:{type:String,default:"a-image-tools-button-group"},showImageTools:{type:Boolean,default:!0},showRotate:{type:Boolean,default:!1},showZoom:{type:Boolean,default:!1}},setup:e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey})),computed:{showFullscreenButton(){return!(!this.showZoom||this.fullscreenAvailable&&!this.showImageTools&&!this.isFullscreen)&&this.fullscreenAvailable}}};function Xit(e,t,n,i,r,a){const s=Yr("ToolbarButton"),o=Yr("FullscreenButton");return As(),Ps("div",{class:Fe(n.baseLocaleKey)},[n.showImageTools?(As(),Ps(Ss,{key:0},[n.showZoom?(As(),Ps(Ss,{key:0},[Hs(s,{name:"zoom-in",variation:"zoomin",disabled:0==a.canZoomIn||"gallery"==a.viewerLayout,"icon-name":"ZoomIn",onClick:t[0]||(t[0]=e=>a.toolbarController.zoomIn(a.analyticsLabel))},null,8,["disabled"]),Hs(s,{name:"zoom-out",variation:"zoomout",disabled:0==a.canZoomOut||"gallery"==a.viewerLayout,"icon-name":"ZoomOut",onClick:t[1]||(t[1]=e=>a.toolbarController.zoomOut(a.analyticsLabel))},null,8,["disabled"])],64)):Ws("",!0),!a.isSequence&&n.showRotate?(As(),Os(s,{key:1,name:"rotate",variation:"rotate","icon-name":"Rotate",onClick:t[2]||(t[2]=e=>a.toolbarController.rotate(a.analyticsLabel))})):Ws("",!0)],64)):Ws("",!0),!a.isMobile&&a.showFullscreenButton?(As(),Os(o,{key:1,modifiers:["toolbar"]})):Ws("",!0)],2)}H(Xit,"as");const Qit=vit(Zit,[["render",Xit]]),Jit={name:"ImageViewerRightsPanel",components:{GuiLink:rre,Icon:Xie,RichText:cre},inject:{imageDetails:{type:Object,default:H((()=>{}),"default")}},props:{baseLocaleKey:{type:String,required:!1,default:"m-image-viewer-rights-panel"}},setup:e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey})),computed:{rightsStatementDisplay(){let e="";if(this.imageDetails.rightsStatementId){const t=this.imageDetails.rightsStatementId.split("//")[1],n=Object.entries(pit).find((e=>e[1]==t));e=this.translate(this.baseLocaleKey+"."+n[0])}return e},rightsIconName(){var e;let t,n=null==(e=this.imageDetails)?void 0:e.rightsStatementId;switch(!0){case n.includes(pit.NO_COPYRIGHT):t="CopyrightNone";break;case n.includes(pit.UNDETERMINED):case n.includes(pit.NOT_EVALUATED):t="CopyrightOther";break;case n.includes(pit.ZERO):t="CC0";break;case n.includes(pit.IN_COPYRIGHT):case n.includes(pit.IN_COPYRIGHT_UNIDENTIFIABLE):default:t="Copyright"}return t}}},ert={class:"m-image-viewer-rights-panel"},trt={class:"m-image-viewer-rights-panel__rights-copyright"},nrt={key:0,class:"m-image-viewer-rights-panel__copyright"},irt={key:1,class:"m-image-viewer-rights-panel__rights-copyright-text"};function rrt(e,t,n,i,r,a){var s,o,l,u,c,d;const p=Yr("GuiLink"),h=Yr("Icon"),f=Yr("RichText");return As(),Ps("div",ert,[Bs("div",trt,[null!=(s=a.imageDetails)&&s.rightsStatementId?(As(),Ps("div",nrt,[Hs(p,{ref:"rightsLink",href:a.imageDetails.rightsStatementId,"with-icon":"before","icon-name":a.rightsIconName,class:"m-image-viewer-rights-panel__copyright-link"},{default:Ii((()=>[qs(ze(a.rightsStatementDisplay),1)])),_:1},8,["href","icon-name"]),null!=(o=a.imageDetails)&&o.copyrightStatement?(As(),Ps("span",{key:0,ref:"copyrightStatement"},ze(a.imageDetails.copyrightStatement),513)):Ws("",!0)])):Ws("",!0),null!=(l=a.imageDetails)&&l.rightsStatement?(As(),Ps("div",irt,[null!=(u=a.imageDetails)&&u.rightsIconName?(As(),Os(h,{key:0,name:null==(c=a.imageDetails)?void 0:c.rightsIconName,class:"m-image-viewer-rights-panel__icon"},null,8,["name"])):Ws("",!0),Hs(f,{inline:!0,content:null==(d=a.imageDetails)?void 0:d.rightsStatement},null,8,["content"])])):Ws("",!0)])])}H(rrt,"cs");const art=vit(Jit,[["render",rrt]]),srt={name:"ImageViewerThumbnailCarousel",components:{ListingCarousel:f_e,CanvasThumbnail:Rit},inject:{thumbnailProps:{type:Array,required:!0,validator:H((e=>e.length>1),"validator")}},props:{baseLocaleKey:{type:String,required:!1,default:"m-image-viewer-thumbnails"},manifestUrl:{type:String,required:!0},canvasId:{type:String,default:void 0},addMarginTop:{type:Boolean,default:!1}},emits:["click"],setup:e=>(Dve({componentRef:wr("carousel"),useGrid:!1}),F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))),data:()=>({hasControls:!1,componentId:br()}),computed:{wrapperClasses(){let e="m-image-viewer-thumbnails__wrapper";return(this.hasControls||!this.addMarginTop)&&(e+=` ${e}--with-controls`),e},thumbnailCountLabel(){var e,t;return this.translatePart("thumbnail_count_label",{count:null!=(e=null==(t=this.thumbnailProps)?void 0:t.length)?e:0})}},mounted(){this.checkForControls()},methods:{checkForControls(){const e=document.querySelector(".tns-controls");e&&(this.hasControls="none"!==e.style.display)}}},ort=["id"],lrt={class:"m-image-viewer-thumbnails__carousel"},urt=["data-canvas-uuid","data-canvas-id"];function crt(e,t,n,i,r,a){var s,o;const l=Yr("CanvasThumbnail"),u=Yr("ListingCarousel");return As(),Ps("div",{ref:"carousel",class:Fe(a.wrapperClasses)},[null!=(s=a.thumbnailProps)&&s.length?(As(),Ps("div",{key:0,id:`carousel-label${r.componentId}`,class:"m-image-viewer-thumbnails__label"},ze(a.thumbnailCountLabel),9,ort)):Ws("",!0),Bs("div",lrt,[Hs(u,{size:"imageviewer",items:a.thumbnailProps,"list-aria-id":`carousel-label${r.componentId}`},ta({_:2},[null!=(o=a.thumbnailProps)&&o.length?{name:"item",fn:Ii((({item:i})=>[Bs("button",{class:Fe(n.canvasId==i.canvasId?"m-image-viewer-thumbnails__button":["m-image-viewer-thumbnails__button","m-image-viewer-thumbnails__button--inactive"]),"data-canvas-uuid":i.id,"data-canvas-id":i.canvasId,onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[Hs(l,Be(Us({thumbnail:i})),null,16)],10,urt)])),key:"0"}:void 0]),1032,["items","list-aria-id"])])],2)}H(crt,"ps");const drt=vit(srt,[["render",crt]]),prt={name:"SequenceLabels",inject:{viewerLayout:{type:String,default:""},thumbnailProps:{type:Array,default:H((()=>[]),"default")}}
102,props:{baseLocaleKey:{type:String,required:!1,default:"a-sequence-labels"},currentSequence:{type:Array,required:!1,default:H((()=>[]),"default")}},setup:e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey})),computed:{currentSequenceLabels(){let e=[];return this.thumbnailProps.length&&(e=this.currentSequence.map(((e,t)=>{let n=this.thumbnailProps[e].label;return this.currentSequence.length>1&&(n=this.translatePart(t?"label.right":"label.left",{label:n})),n}))),e}}};function hrt(e,t,n,i,r,a){return As(),Ps("div",{ref:"sequenceLabels","data-testid":"sequenceLabels",class:Fe(`a-sequence-labels a-sequence-labels--${a.viewerLayout}`)},[(As(!0),Ps(Ss,null,ea(a.currentSequenceLabels,((e,t)=>(As(),Ps("div",{key:`${t}-${a.viewerLayout}`,class:"a-sequence-labels__label"},ze(e),1)))),128))],2)}H(hrt,"bs");const frt=vit(prt,[["render",hrt]]),mrt={name:"PrevNextButtonGroup",components:{ToolbarButton:Wit},inject:{isFullscreen:{type:Boolean,default:!1},isSequence:{type:Boolean,default:!1},viewerLayout:{type:String},analyticsLabel:{type:[String,void 0],default:void 0},numberOfSlides:{type:Number,default:0},slideIndex:{type:Number,default:0},toolbarController:{}},computed:{canGoPrevious(){return this.slideIndex>0},canGoNext(){return this.numberOfSlides>this.slideIndex}}},grt={key:0,class:"a-prev-next-button-group"};function yrt(e,t,n,i,r,a){const s=Yr("ToolbarButton");return a.numberOfSlides>1?(As(),Ps("div",grt,[Hs(s,{name:"arrow-left",variation:"arrowleft","icon-name":"ArrowLeft",size:18,disabled:!a.canGoPrevious||"gallery"==a.viewerLayout,onClick:t[0]||(t[0]=e=>a.toolbarController.previous(a.analyticsLabel))},null,8,["disabled"]),Hs(s,{name:"arrow-right",variation:"arrowright","icon-name":"ArrowRight",size:18,disabled:!a.canGoNext||"gallery"==a.viewerLayout,onClick:t[1]||(t[1]=e=>a.toolbarController.next(a.analyticsLabel))},null,8,["disabled"])])):Ws("",!0)}H(yrt,"Is");const vrt={name:"ImageViewerToolbar",components:{PrevNextButtonGroup:vit(mrt,[["render",yrt]]),SequenceLabels:frt},inject:{isFullscreen:{type:Boolean,default:!1},isSequence:{type:Boolean,default:!1},viewerLayout:{type:String},toolbarController:{}},props:{baseLocaleKey:{type:String,required:!1,default:"m-image-viewer-toolbar"},showChoiceMenu:{type:Boolean,required:!1,default:!1},currentChoices:{type:Object,required:!1,default:H((()=>({})),"default")},currentSequence:{type:Array,required:!1,default:H((()=>[]),"default")},slideIndex:{type:Number,default:0}},setup:e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey}))},brt={key:0,class:"m-image-viewer-toolbar__wrapper"},_rt={class:"m-image-viewer-toolbar"};function wrt(e,t,n,i,r,a){const s=Yr("SequenceLabels"),o=Yr("PrevNextButtonGroup");return a.isFullscreen||a.isSequence?(As(),Ps("div",brt,[a.isSequence&&n.currentSequence.length?(As(),Os(s,{key:0,"current-sequence":n.currentSequence},null,8,["current-sequence"])):Ws("",!0),Bs("div",_rt,["gallery"!==a.viewerLayout&&(a.isFullscreen||a.isSequence)?(As(),Os(o,{key:0})):Ws("",!0)])])):Ws("",!0)}H(wrt,"Rs");const Srt=vit(vrt,[["render",wrt]]),Crt={name:"ToolbarMenu",components:{GuiButton:Jee,Icon:Xie,ToolbarButton:Wit},mixins:[Noe],inject:{activeMenu:{type:[String,void 0],default:void 0},isMobile:{type:Boolean,default:!1}},props:{baseLocaleKey:{type:String,default:"a-toolbar-menu"},name:{type:String,required:!0},label:{type:String,required:!0},disabled:{type:Boolean,required:!1,default:!1},tooltip:{type:String,required:!1,default:void 0},iconName:{type:[String,void 0],default:void 0},modalId:{type:String}},emits:["click"],setup:e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey})),data:()=>({isTooltipBelow:!1,showMenu:!1}),computed:{activeMenuClasses(){const e=["a-toolbar-menu"];return this.showMenu&&e.push("a-toolbar-menu--active"),e},ariaLabel(){return this.translatePart("a-toolbar-menu.toggle.aria-"+(this.showMenu?"open":"close"),{menu:this.label})}},watch:{activeMenu(e){if(e!==this.name&&(this.showMenu=!1),this.showMenu&&this.$refs.options){const e=this.$refs.options;(e.querySelector("[data-checked=true]")?e.querySelector("[data-checked=true]"):e.querySelector("input")).focus()}}},mounted(){this.isMobile&&this.name==this.activeMenu&&(this.showMenu=!this.showMenu)},mounted(){this.isMobile&&this.name==this.activeMenu&&(this.showMenu=!this.showMenu)}
102,methods:{handleMouseEnter(e){this.isTooltipBelow=e.clientY<100},handleModalClose(e){this.closePanels(),this.triggerModalClose(this.modalId,e)},closePanels(){this.$emit("click",{target:{tagName:"BUTTON",name:void 0}})}}},krt={class:"a-toolbar-menu__label"},xrt={key:1,class:"a-toolbar-menu__drawer-wrapper"},Trt={ref:"options","data-testid":"options",class:"a-toolbar-menu__options"};function Ert(e,t,n,i,r,a){const s=Yr("Icon"),o=Yr("GuiButton"),l=Yr("ToolbarButton");return As(),Ps("div",{class:Fe(a.activeMenuClasses),onMouseenter:t[1]||(t[1]=(...e)=>a.handleMouseEnter&&a.handleMouseEnter(...e))},[Hs(o,{name:n.name,"data-testid":n.name,modifiers:["outline","text","image-viewer-toolbar"],"aria-label":a.ariaLabel,disabled:n.disabled,"aria-expanded":r.showMenu,onClick:t[0]||(t[0]=e=>r.showMenu=!r.showMenu)},{default:Ii((()=>[n.iconName?(As(),Os(s,{key:0,name:n.iconName,"aria-title":e.translatePart(n.iconName)},null,8,["name","aria-title"])):Ws("",!0),Bs("span",krt,ze(n.label),1)])),_:1},8,["name","data-testid","aria-label","disabled","aria-expanded"]),n.disabled&&n.tooltip?(As(),Ps("span",{key:0,class:Fe({"a-toolbar-menu__tooltip":!0,"a-toolbar-menu__tooltip--below":r.isTooltipBelow})},ze(n.tooltip),3)):Ws("",!0),r.showMenu?(As(),Ps("div",xrt,[a.isMobile&&r.showMenu?(As(),Os(l,{key:0,class:"a-toolbar-menu__modal-close",variation:"closemodal",name:"close-modal","icon-name":"close",onClick:a.handleModalClose},null,8,["onClick"])):Ws("",!0),Bs("div",Trt,[na(e.$slots,"default")],512)])):Ws("",!0)],34)}H(Ert,"ks");const Art=vit(Crt,[["render",Ert]]),Lrt={name:"ChoiceMenu",components:{ToolbarMenu:Art,GuiInput:Mre},inject:{viewerLayout:{type:String},toolbarController:{}},props:{baseLocaleKey:{type:String,required:!1,default:"a-choice-menu"},currentChoices:{type:Object,required:!1,default:H((()=>({})),"default")},teleportSelector:{type:[String,void 0],default:void 0}},emits:["click"],setup:e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey})),data(){var e;return{locale:null!=(e=this.$i18n.locale)?e:"en",choiceLabel:this.translatePart("default")}},computed:{choiceTooltip(){let e="tooltip."+("gallery"==this.viewerLayout?"feature_not_available":"no_alternate_views");return this.translatePart(e)}},methods:{handleInput(e){e&&this.toolbarController.handleChoice(e)},getMenuThumbnail:e=>`${e.split("/full")[0]}/full/40,/0/default.jpg`,getChoiceCheckboxProps(e){let[t,n]=e.items;return{label:hit(n,this.locale),sectionsSchema:{suffix:{$el:"img",attrs:{src:this.getMenuThumbnail(n.id)}}},onValue:[{id:n.id,deselect:!1},{id:t.id,deselect:!0}],offValue:[{id:t.id,deselect:!1},{id:n.id,deselect:!0}]}}}};function Irt(e,t,n,i,r,a){const s=Yr("GuiInput"),o=Yr("ToolbarMenu");return As(),Os(o,{class:"a-choice-menu",name:"toggleChoice",label:r.choiceLabel,tooltip:a.choiceTooltip,disabled:0==Object.keys(n.currentChoices).length||"gallery"==a.viewerLayout,"icon-name":"AlternateViews","teleport-selector":n.teleportSelector},{default:Ii((()=>[(As(!0),Ps(Ss,null,ea(n.currentChoices,((e,t,n)=>(As(),Os(s,Zs({key:n,type:"checkbox"},{ref_for:!0},a.getChoiceCheckboxProps(e),{onInput:a.handleInput}),null,16,["onInput"])))),128))])),_:1},8,["label","tooltip","disabled","teleport-selector"])}H(Irt,"Ds");const $rt=vit(Lrt,[["render",Irt]]),Drt={name:"DownloadMenu",components:{CopyButton:wre,DelimitedFieldValues:Dre,GuiButton:Jee,GuiLink:rre,Icon:Xie,RichText:cre,ToolbarButton:Wit},mixins:[Noe],inject:{activeMenu:{type:String,default:"toggle-download-menu"},isMobile:{type:Boolean,default:!1}},provide(){return{analyticsListener:H(((e,t,n)=>{this.logEvent(t)}),"analyticsListener")}},props:{baseLocaleKey:{type:String,default:"a-download-menu"},captionFields:{type:Array,default:H((()=>[]),"default")},manifestUrl:{type:String,required:!0},canvasDetails:{type:[Object,null],required:!0},imageDetails:{type:Object,default:H((()=>{}),"default")},defaultDownloadSizes:{type:Object,default:H((()=>({small:[1024],large:[3e3],full:[]})),"default")},manifestViewerEndpoint:{type:String,default:"https://tools.getty.edu/iiifviewer/"},iiifImageUrlPart:{type:String,default:void 0},imageRequestType:{type:[String,void 0],default:void 0,validator:H((e=>["button","action",void 0].includes(e)),"validator")},headingLevel:{type:Number,default:3},modalId:{type:String}},emits:["imageRequest","imageDownload","click"],setup:e=>F({}
102,zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey})),data(){return{componentId:br(),showMenu:!1,downloadButtonLabel:this.translatePart("download_button_label",[]),downloadHeading:this.translatePart("download_heading"),actionsHeading:this.translatePart("actions_heading"),miradorLinkText:this.translatePart("mirador_link_text"),miradorLinkIconLabel:this.translatePart("mirador_link_icon_label"),permissionHeading:this.translatePart("permission_heading"),permissionStatementText:this.translatePart("permission_statement_text"),publicationUseHeading:this.translatePart("publication_use_heading"),publicationUseStatementText:this.translatePart("publication_use_statement_text"),restrictionsHeading:this.translatePart("restrictions_heading"),captionHeading:this.translatePart("caption_heading"),isCaptionCopied:!1,manifestViewerUrl:this.manifestViewerEndpoint?`${this.manifestViewerEndpoint}?manifest=${this.manifestUrl}`:void 0,name:"toggle-download-menu",imageRequestButtonLabel:this.translatePart("image_request_button_label"),restrictionsButtonLabel:this.translatePart("restrictions_button_label")}},computed:{isOpenContent(){var e;return![this.canvasDetails,this.manifestUrl,null==(e=this.imageDetails)?void 0:e.isDownloadable].includes(!1)},triggerMode(){return this.canvasDetails&&this.isOpenContent?"download":"button"===this.imageRequestType?"imageRequest":"restrictions"},downloadLinkLabel(){let e=this.downloadButtonLabel;return this.isMobile?e:e+this.defaultSize.dimensions},downloadMenuButtonLabel(){return this.translatePart("aria_toggle_download_menu",{buttonLabel:this.downloadLinkLabel})},headingTag(){return`h${this.headingLevel}`},downloadSizes(){let e=this.defaultDownloadSizes,t=Object.entries(e).length;if(this.canvasDetails.sizes&&this.canvasDetails.sizes.length>t&&this.canvasDetails.sizes[0].width==this.canvasDetails.width&&this.canvasDetails.sizes[0].height==this.canvasDetails.height){let n=Object.entries(e).map(((e,n)=>{let i=this.canvasDetails.sizes[t-n];return[e[0],[i.width,i.height]]}));e=Object.fromEntries(n)}return e},downloadLinks(){let e={};for(let t in this.downloadSizes){const n=this.getDimensions(this.downloadSizes[t]);if(n){let i=this.translatePart("dimensions",n),r={content:this.translatePart(t)+i,size:this.translatePart(t),dimensions:i,href:git(this.canvasDetails.serviceUrl,n,t,this.iiifImageUrlPart)};e[t]=r}}return e},defaultSize(){return Object.keys(this.downloadLinks).length<3?this.downloadLinks.full:this.downloadLinks.large||this.downloadLinks.full},permissionStatement(){var e,t;return null!=(e=null==(t=this.imageDetails)?void 0:t.permissionStatement)?e:this.permissionStatementText},publicationUseStatement(){var e,t;const n=null!=(e=null==(t=this.imageDetails)?void 0:t.publicationUseStatement)?e:this.publicationUseStatementText;return"publication_use_statement_text"==n?void 0:n},showActions(){return this.isOpenContent||!this.isOpenContent&&"action"==this.imageRequestType}},watch:{activeMenu(e){e!==this.name&&(this.showMenu=!1)}},mounted(){this.isMobile&&this.activeMenu==this.name&&(this.showMenu=!0)},methods:{getCaptionText(){let e="";return this.$refs.caption&&this.$refs.caption.innerText&&(e=this.$refs.caption.innerText.replaceAll("\n\n","\n")),e},getDimensions(e){if(2!==e.length){const t=e[0];if((e=[this.canvasDetails.width,this.canvasDetails.height]).every((e=>e<=t)))return;if(t&&e.every((e=>e>t))){const n=+(e[0]>e[1]),i=+(e[0]<e[1]),r=e[n],a=e[i];(e=[Math.round(r*t/a)]).splice(i,0,t)}}return e},handleCopiedText(){this.isCaptionCopied=!this.isCaptionCopied,setTimeout((()=>{this.isCaptionCopied=!this.isCaptionCopied}),600)},handleImageRequest(){this.$emit("imageRequest")},logEvent(e){if(!e.includes("manifest")){const t={id:e.split("?")[0],size:e.split("size=")[1]};this.$emit("imageDownload",t)}},toggleMenu(){this.showMenu=!this.showMenu},handleModalClose(e){this.closePanels(),this.triggerModalClose(this.modalId,e),this.toggleMenu()},closePanels(){this.$emit("click",{target:{tagName:"BUTTON",name:void 0}})}}},Prt={key:0,class:"a-download-menu-wrapper"},Ort={key:0,class:"a-download-menu__trigger"},Mrt=["id","aria-labelledby"],Rrt={key:1,class:"a-download-menu__inner-section a-download-menu__link-list"},Nrt={class:"a-download-menu__heading"}
102,Frt={ref:"image-download-links","data-testid":"downloads","aria-label":"Image Downloads"},Brt={key:2,class:"a-download-menu__inner-section a-download-menu__link-list"},Hrt={class:"a-download-menu__heading"},jrt={ref:"image-action-links","data-testid":"actions","aria-label":"Actions"},Urt={key:0,class:"a-download-menu__image-request-link"},Vrt={key:1,class:"a-download-menu__iiif-link"},qrt={class:"a-download-menu__inner-section a-download-menu__permissions"},zrt={class:"a-download-menu__heading"},Wrt={key:3,class:"a-download-menu__inner-section a-download-menu__publication-use"},Grt={class:"a-download-menu__heading"},Krt={key:4,class:"a-download-menu__inner-section a-download-menu__caption"},Yrt={class:"a-download-menu__caption-header"},Zrt={class:"a-download-menu__heading"};function Xrt(e,t,n,i,r,a){const s=Yr("GuiLink"),o=Yr("GuiButton"),l=Yr("ToolbarButton"),u=Yr("Icon"),c=Yr("RichText"),d=Yr("CopyButton"),p=Yr("DelimitedFieldValues");return n.canvasDetails?(As(),Ps("div",Prt,[Bs("div",{class:Fe(["a-download-menu",{"a-download-menu--active":r.showMenu}])},[["download","restrictions"].includes(a.triggerMode)?(As(),Ps("div",Ort,["download"===a.triggerMode?(As(),Ps("div",{key:0,"data-testid":"defaultLink",class:"a-download-menu__default-link",onClick:t[0]||(t[0]=(...e)=>a.toggleMenu&&a.toggleMenu(...e))},[Hs(s,{href:a.defaultSize.href,"aria-label":a.defaultSize.ariaLabel,"with-icon":"before","icon-name":"download500","icon-size":16,download:""},{default:Ii((()=>[qs(ze(a.downloadLinkLabel),1)])),_:1},8,["href","aria-label"]),Hs(o,{id:`toggle-download-menu-${r.componentId}`,"data-testid":"toggleDownloadMenu",name:"toggle-download-menu","aria-label":a.downloadMenuButtonLabel,"aria-expanded":r.showMenu,"aria-controls":`download-menu-${r.componentId}`,modifiers:["text"]},{default:Ii((()=>[...t[1]||(t[1]=[Bs("span",null,null,-1)])])),_:1},8,["id","aria-label","aria-expanded","aria-controls"])])):Ws("",!0),"restrictions"===a.triggerMode?(As(),Os(o,{key:1,class:"a-download-menu__restrictions",name:"toggle-download-menu","data-testid":"toggleRestrictions",modifiers:["text","outline","image-viewer-toolbar"],onClick:a.toggleMenu},{default:Ii((()=>[qs(ze(r.restrictionsButtonLabel),1)])),_:1},8,["onClick"])):Ws("",!0)])):Ws("",!0),"imageRequest"===a.triggerMode?(As(),Os(o,{key:1,class:"a-download-menu__image-request",name:"image-request-button",modifiers:["text","outline","image-viewer-toolbar"],onClick:a.handleImageRequest},{default:Ii((()=>[qs(ze(r.imageRequestButtonLabel),1)])),_:1},8,["onClick"])):Ws("",!0)],2),r.showMenu?(As(),Ps("div",{key:0,id:`download-menu-${r.componentId}`,class:"a-download-menu__inner","aria-labelledby":`toggle-download-menu-${r.componentId}`,role:"region"},[a.isMobile&&r.showMenu?(As(),Os(l,{key:0,class:"a-download-menu__modal-close",variation:"closemodal",name:"close-modal","icon-name":"close",onClick:a.handleModalClose},null,8,["onClick"])):Ws("",!0),a.isOpenContent?(As(),Ps("div",Rrt,[Bs("div",Nrt,[(As(),Os(Xr(a.headingTag),null,{default:Ii((()=>[qs(ze(r.downloadHeading),1)])),_:1}))]),Bs("ul",Frt,[(As(!0),Ps(Ss,null,ea(a.downloadLinks,(e=>(As(),Ps("li",{key:e.size},[Hs(s,{href:e.href,"with-icon":"before","icon-name":"download",underline:!0,download:""},{default:Ii((()=>[qs(ze(e.content),1)])),_:2},1032,["href"])])))),128))],512)])):Ws("",!0),a.showActions?(As(),Ps("div",Brt,[Bs("div",Hrt,[(As(),Os(Xr(a.headingTag),null,{default:Ii((()=>[qs(ze(r.actionsHeading),1)])),_:1}))]),Bs("ul",jrt,["action"!=n.imageRequestType||a.isOpenContent?Ws("",!0):(As(),Ps("li",Urt,[Hs(o,{name:"toggle-download-menu",modifiers:["text","image-viewer-toolbar"],onClick:a.handleImageRequest},{default:Ii((()=>[Bs("span",null,ze(r.imageRequestButtonLabel),1),Hs(u,{name:"outbound",size:"text"})])),_:1},8,["onClick"])])),a.isOpenContent?(As(),Ps("li",Vrt,[Hs(s,{href:r.manifestViewerUrl,rel:"nofollow",target:"_blank"},{default:Ii((()=>[Bs("span",null,ze(r.miradorLinkText),1),Hs(u,{name:"outbound",size:"text","aria-title":r.miradorLinkIconLabel},null,8,["aria-title"])])),_:1},8,["href"])])):Ws("",!0)],512)])):Ws("",!0),Bs("div",qrt,[Bs("div",zrt,[(As(),Os(Xr(a.headingTag),null,{default:Ii((()=>
102[qs(ze(r.permissionHeading),1)])),_:1}))]),Hs(c,{"data-testid":"permissions",content:a.permissionStatement},null,8,["content"])]),a.publicationUseStatement?(As(),Ps("div",Wrt,[Bs("div",Grt,[(As(),Os(Xr(a.headingTag),null,{default:Ii((()=>[qs(ze(r.publicationUseHeading),1)])),_:1}))]),Hs(c,{"data-testid":"publicationUse",content:a.publicationUseStatement},null,8,["content"])])):Ws("",!0),n.captionFields.length&&a.isOpenContent?(As(),Ps("div",Krt,[Bs("div",Yrt,[Bs("div",Zrt,[(As(),Os(Xr(a.headingTag),null,{default:Ii((()=>[qs(ze(r.captionHeading),1)])),_:1}))]),Hs(d,{"text-key":"caption-header",text:a.getCaptionText,"icon-size":32,onCopiedText:a.handleCopiedText},null,8,["text","onCopiedText"])]),Bs("div",{ref:"caption","data-testId":"caption",class:Fe(["a-download-menu__caption-content",{"a-download-menu__caption-content--disabled":r.isCaptionCopied}])},[(As(!0),Ps(Ss,null,ea(n.captionFields,((e,t)=>(As(),Os(p,{key:t,values:e,delimiter:", "},null,8,["values"])))),128))],2)])):Ws("",!0)],8,Mrt)):Ws("",!0)])):Ws("",!0)}H(Xrt,"ao");const Qrt=vit(Drt,[["render",Xrt]]),Jrt={name:"LayoutMenu",components:{GuiInput:Mre,ToolbarMenu:Art},inject:{manifestUrl:{type:String},activeLayoutOptions:{type:Array,default:H((()=>["individuals","paged","gallery"]),"default")},toolbarController:{}},props:{baseLocaleKey:{type:String,required:!1,default:"a-layout-menu"},currentSelection:{type:String,default:"paged"},teleportSelector:{type:[String,void 0],default:void 0}},emits:["layoutChange"],setup:e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey})),data(){return{layoutLabel:this.translate(this.baseLocaleKey+".layout.default"),facingPagesLabel:this.translate(this.baseLocaleKey+".paged"),galleryLabel:this.translate(this.baseLocaleKey+".gallery"),singlePageLabel:this.translate(this.baseLocaleKey+".single_page")}},computed:{options(){const e={individuals:this.singlePageLabel,paged:this.facingPagesLabel,gallery:this.galleryLabel};return Object.keys(e).reduce(((t,n)=>(this.activeLayoutOptions.includes(n)&&(t[n]=e[n]),t)),{})}}};function eat(e,t,n,i,r,a){const s=Yr("GuiInput"),o=Yr("ToolbarMenu");return As(),Os(o,{class:"a-layout-menu",name:"toggleLayout",label:r.layoutLabel,"icon-name":"Grid","teleport-selector":n.teleportSelector},{default:Ii((()=>[Hs(s,{name:"layout",type:"radio",options:a.options,value:n.currentSelection,onInput:t[0]||(t[0]=e=>a.toolbarController.handleLayoutChange(e,a.manifestUrl))},null,8,["options","value"])])),_:1},8,["label","teleport-selector"])}H(eat,"oo");const tat={name:"MenuPanel",components:{ChoiceMenu:$rt,DownloadMenu:Qrt,FullscreenButton:Yit,LayoutMenu:vit(Jrt,[["render",eat]])},inject:{manifestUrl:{type:[String,void 0],default:void 0},isSequence:{type:Boolean,default:!1},viewerLayout:{type:String},activeMenu:{type:[String,void 0],default:void 0},isFullscreen:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1},fullscreenAvailable:{type:Boolean,default:!0},imageDetails:{type:Object,default:H((()=>{}),"default")}},props:{baseLocaleKey:{type:String,default:"m-menu-panel"},canvasDetails:{type:[Object,null],required:!0},captionFields:{type:Array,default:H((()=>[]),"default")},iiifImageUrlPart:{type:String,default:void 0},currentChoices:{type:Object,default:H((()=>({})),"default")},enableImageRequest:{type:Boolean,default:!1},showImageRequestButton:{type:Boolean,default:!1},defaultDownloadSizes:{type:Object,default:H((()=>({small:[1024],large:[3e3],full:[]})),"default")},modalId:{type:String}},emits:["imageRequest","imageDownload","click"],data:()=>({teleportSelector:"m-menu-panel__drawer",menuPanelNames:["toggle-download-menu","toggleLayout","toggleChoice"]}),computed:{imageRequestType(){return this.showImageRequestButton?"button":this.enableImageRequest?"action":void 0}},mounted(){document&&document.addEventListener("click",this.handleClick)},unmounted(){document&&document.removeEventListener("click",this.handleClick)},methods:{handleClick(e){this.activeMenu&&!this.$el.contains(e.target)&&!this.menuPanelNames.includes(e.target.name)&&this.closePanels()},closePanels(){this.$emit("click",{target:{tagName:"BUTTON",name:void 0}})}}};function nat(e,t,n,i,r,a){var s;const o=Yr("DownloadMenu"),l=Yr("ChoiceMenu"),u=Yr("LayoutMenu"),c=Yr("FullscreenButton");return As(),Ps("div",{class:Fe(["m-menu-panel",{"m-menu-panel--active":a.activeMenu&&"button"==!a.imageRequestType},{"m-menu-panel--mobile":a.isMobile}]),onClick:t[5]||(t[5]=t=>e.$emit("click",t))},[a.isFullscreen?Ws("",!0):(As(),Os(o,{key:0,class:Fe(["a-toolbar-menu",{"a-toolbar-menu--request":0==(null==(s=a.imageDetails)?void 0:s.isDownloadable)&&"button"==a.imageRequestType}
102]),"canvas-details":n.canvasDetails,"image-details":a.imageDetails,"caption-fields":n.captionFields,"manifest-url":a.manifestUrl,"iiif-image-url-part":n.iiifImageUrlPart,"show-image-request-button":n.showImageRequestButton,"default-download-sizes":n.defaultDownloadSizes,"modal-id":n.modalId,"image-request-type":a.imageRequestType,onClick:t[0]||(t[0]=t=>e.$emit("click",t)),onImageRequest:t[1]||(t[1]=t=>e.$emit("imageRequest",t)),onImageDownload:t[2]||(t[2]=t=>e.$emit("imageDownload",t))},null,8,["class","canvas-details","image-details","caption-fields","manifest-url","iiif-image-url-part","show-image-request-button","default-download-sizes","modal-id","image-request-type"])),Object.keys(n.currentChoices).length?(As(),Os(l,{key:1,"current-choices":n.currentChoices,"modal-id":n.modalId,onClick:t[3]||(t[3]=t=>e.$emit("click",t))},null,8,["current-choices","modal-id"])):Ws("",!0),a.isSequence?(As(),Os(u,{key:2,"current-selection":a.viewerLayout,"modal-id":n.modalId,onClick:t[4]||(t[4]=t=>e.$emit("click",t))},null,8,["current-selection","modal-id"])):Ws("",!0),a.isMobile&&!a.isFullscreen&&a.fullscreenAvailable?(As(),Os(c,{key:3,disabled:a.activeMenu,class:Fe({"a-fullscreen-button--menu-panel__active":a.activeMenu&&a.isMobile}),modifiers:["menu-panel"]},null,8,["disabled","class"])):Ws("",!0)],2)}H(nat,"co");const iat=vit(tat,[["render",nat]]),rat=H((e=>{const t=Rse(),n=Tn({}),i=Tn({});function r(e){n.value[e.action]=n.value[e.action]?n.value[e.action]+1:1,a(e),i.value[e.action]=i.value[e.action]?i.value[e.action]+1:1}function a(e){t.emit("ImageViewerInteractionEvent",B(F({},e),{category:"ImageViewer Interaction",noninteraction:!0}))}return H(r,"r"),H(a,"a"),{registerEvent:H((e=>r(e)),"registerEvent"),emittedEvents:i}}),"In"),sat=class{constructor(e,t){this.wrapper=e,this.el=()=>{var t,n,i,r;return null!=(t=null==(i=null==(n=e.$refs)?void 0:n.panel)?void 0:i.$el)?t:null==(r=e.$refs)?void 0:r.panel},this.analyticsBus=t,this.isSequence=e.isSequence}zoomIn(e){this.el().zoomIn(),this.handleAnalyticsEvent("zoom",e)}zoomOut(e){this.el().zoomOut(),this.handleAnalyticsEvent("zoom",e)}rotate(e){this.wrapper.handleRotate(),this.handleAnalyticsEvent("rotate",e)}fullScreenChange(e){this.wrapper.handleFullscreenChange(),this.handleAnalyticsEvent("full-screen",e)}previous(e){this.isSequence?this.el().sequence.previousCanvas():this.wrapper.slideIndex--,this.handleAnalyticsEvent("previous-canvas",e)}next(e){this.isSequence?this.el().sequence.nextCanvas():this.wrapper.slideIndex++,this.handleAnalyticsEvent("next-canvas",e)}handleChoice(e){let[t,n]=e;this.el().makeChoice(t.id,{deselect:t.deselect,deselectOthers:!1}),this.el().makeChoice(n.id,{deselect:n.deselect,deselectOthers:!1}),this.el().setAttribute("current-choice",t.id),this.handleAnalyticsEvent("choice",t.id)}handleLayoutChange(e,t){this.wrapper.setViewerLayout(e),this.handleAnalyticsEvent("layoutChange",t)}handleAnalyticsEvent(e,t){this.analyticsBus.registerEvent({action:e,label:t})}handleGalleryThumbnailClick(e){var t;this.wrapper.handleThumbnailClick(e),this.handleAnalyticsEvent("gallery",null==(t=e.target.dataset)?void 0:t.canvasId)}};H(sat,"Sn");let oat=sat;const lat=["toggle-download-menu","toggleLayout","toggleChoice"],uat={name:"ImageViewer",components:{CanvasViewer:Cit,SequenceViewer:Ait,ImageToolsButtonGroup:Qit,ImageViewerRightsPanel:art,ImageViewerThumbnailCarousel:drt,ImageViewerToolbar:Srt,MenuPanel:iat,Modal:Poe,ToolbarGallery:Vit},mixins:[Moe,Noe],provide(){const e=!!(document.fullscreenEnabled||document.mozFullScreenEnabled||document.documentElement.requestFullscreen||document.documentElement.webkitRequestFullscreen);return{manifestUrl:this.manifestUrl,fullscreenAvailable:e,showMenuPanel:this.showMenuPanel,imageDetails:Co((()=>this.imageDetails)),activeMenu:Co((()=>this.activeMenu)),analyticsLabel:Co((()=>this.analyticsLabel)),canZoomIn:Co((()=>this.canZoomIn)),canZoomOut:Co((()=>this.canZoomOut)),isMobile:Co((()=>this.isMobile)),isFullscreen:Co((()=>this.isFullscreen)),isSequence:Co((()=>this.isSequence)),viewerLayout:Co((()=>this.viewerLayout)),numberOfSlides:Co((()=>this.numberOfSlides)),slideIndex:Co((()=>this.slideIndex)),thumbnailProps:Co((()=>this.thumbnailProps)),toolbarController:Co((()=>this.toolbarController))}}
102,props:{baseLocaleKey:{type:String,required:!1,default:"o-image-viewer"},manifestUrl:{type:String,required:!0},canvasId:{type:String,default:void 0},rangeId:{type:String,default:void 0},componentType:{type:String,default:"canvas",validator(e){if(e)return["canvas","sequence","range"].includes(e)}},isZoomable:{type:Boolean,required:!1,default:!0},showToolbar:{type:Boolean,required:!1,default:!0},useCanvasThumbnails:{type:Boolean,required:!1,default:!1},backgroundColor:{type:String,required:!1,default:"#73706e"},height:{type:[String,void 0],default:void 0},showChoiceMenu:{type:Boolean,required:!1,default:!1},modifiers:{type:Array,required:!1,default:H((()=>[]),"default")},layoutMenuOptions:{type:Array,required:!1,default:H((()=>["individuals","paged","gallery"]),"default")},thumbnailRequestTransformer:{type:[Function,void 0],required:!1,default:void 0},showThumbnails:{type:Boolean,required:!1,default:!1},teleportSelector:{type:String,default:void 0},imageMetadata:{type:Object,default:H((()=>({})),"default")},iiifImageUrlPart:{type:String,default:void 0},showRotate:{type:Boolean,default:!1},showMenuPanel:{type:Boolean,default:!0},captionFields:{type:Array,default:H((()=>[]),"default")},enableImageRequest:{type:Boolean,default:!1},filterVisualItems:{type:Boolean,default:!1},defaultDownloadSizes:{type:Object,default:H((()=>({small:[1024],large:[3e3],full:[]})),"default")},skipSizes:{type:Boolean,default:!1},imageRequestType:{type:[String,void 0],default:void 0,validator:H((e=>["action","button",void 0].includes(e)),"validator")},sequenceZoomPerImage:{type:Boolean,default:!1}},emits:["thumbnailsReady","canvasChange","imageDownload","imageRequest","ready","worldReady"],setup:e=>F({},zee({baseLocaleKey:null==e?void 0:e.baseLocaleKey})),data(){var e;return{analyticsHandler:rat(),toolbarController:void 0,locale:null!=(e=this.$i18n.locale)?e:"en",componentId:br(),thumbnails:{},timeoutId:void 0,viewerLayout:void 0,canZoomIn:this.isZoomable,canZoomOut:!1,isFullscreen:!1,startCanvas:this.canvasId,disableKeyboard:!1,canvasHeight:250,isVisualItemZoomable:!1,canvasId_:this.canvasId,rotation:0,canvasDetails:null,imageDetails:void 0,activeMenu:void 0,currentChoices:{},currentSequence:[],numberOfSlides:0,slideIndex:void 0,showModal:!1,isMobile:!1,initialized:!1,previousViewerLayout:void 0}},computed:{showInitializedToolbar(){return!(0==this.initialized||0==this.showToolbar)},componentName(){let e="range"==this.componentType?"sequence":this.componentType;return`${e[0].toUpperCase()}${e.slice(1)}Viewer`},isSequence(){return"SequenceViewer"==this.componentName},panelBackgroundColor(){return this.isFullscreen?"#000000":this.backgroundColor},classes(){let e=[this.baseLocaleKey];return this.modifiers.forEach((t=>{e.push(`${e[0]}--${t}`)})),this.height&&e.push(`${e[0]}--fixed-height`),this.activeMenu&&e.push(`${e[0]}--menu-panel-active`),this.showRightsStatement&&e.push(`${e[0]}--with-rights-statement`),e},toolbarClass(){return this.modifiers.includes("light")&&0==this.isFullscreen?"g-toolbar-buttons--light":"g-toolbar-buttons"},containerInlineStyle(){let e=`--background-color: ${this.panelBackgroundColor};`;return this.height&&(e+=e+` height: ${this.height}`),e},thumbnailProps(){let e=Object.entries(this.thumbnails);return"canvas"==this.componentType&&(e=e.filter((([e,t])=>this.isDisplayable(e,t)))),e=e.map((e=>{let t=e[1];return"function"==typeof this.thumbnailRequestTransformer?this.thumbnailRequestTransformer(t):"Canvas"==t.type?F({type:"StaticCanvas",canvasId:t.id,canvasHeight:this.canvasHeight,preset:"static"},this.getLabelAndAlt(e)):"Image"==t.type?F({type:"ImageResponsive",id:Cnt(t.id,this.iiifImageUrlPart),canvasId:t.canvasId,size:"post_xsmall_variable_height_jpca_restricted"},this.getLabelAndAlt(e)):void 0})),e},analyticsLabel(){var e;return this.isSequence?this.manifestUrl:null==(e=this.canvasDetails)?void 0:e.serviceUrl},showCarousel(){return!this.isFullscreen&&"canvas"==this.componentType&&this.showThumbnails&&this.thumbnailProps.length>1},showRightsStatement(){return void 0!==this.imageDetails&&this.showMenuPanel&&!this.isFullscreen}},watch:{canvasId(){this.canvasId_=this.canvasId},isFullscreen(e){1==e&&(this.$el.requestFullscreen||this.$el.webkitRequestFullscreen).call(this.$el),document.fullscreenElement&&0==e&&document.exitFullscreen()},slideIndex(){!this.isSequence&&this.thumbnailProps.length&&(this.numberOfSlides!==this.thumbnailProps.length&&(this.numberOfSlides=this.thumbnailProps.length),this.canvasId_=this.thumbnailProps[this.slideIndex]?this.thumbnailProps[this.slideIndex].c
102anvasId:this.canvasId_)}},mounted(){this.handleResize(),typeof window<"u"&&window.addEventListener("resize",this.handleResize,{passive:!0}),this.toolbarController=new oat(this,this.analyticsHandler),this.isSequence&&!this.sequenceZoomPerImage&&this.setSequenceZoom()},unmounted(){clearTimeout(this.timeoutId),typeof window<"u"&&window.removeEventListener("resize",this.handleResize,{passive:!0})},methods:{handleThumbnailClick(e){var t;"BUTTON"==(null==(t=null==e?void 0:e.target)?void 0:t.tagName)&&(this.canvasId_=e.target.dataset.canvasId),null!=e&&e.target.classList.contains("a-toolbar-gallery__thumbnail")&&(this.viewerLayout=this.previousViewerLayout||"individuals")},setViewerLayout(e){"gallery"==e&&(this.previousViewerLayout=this.viewerLayout),this.viewerLayout=e},handleReady(e){var t,n;null!=(n=null==(t=null==e?void 0:e.target)?void 0:t.children)&&n.namedItem("error-fallback")||(this.initialized=!0),this.canZoomIn=this.isZoomable,this.canZoomOut=!1,this.$emit("ready")},handleWorldReady(){this.canZoomIn=this.isZoomable,this.canZoomOut=!1,this.$emit("worldReady")},handleZoom(e){this.canZoomIn=e.detail.canZoomIn,this.canZoomOut=e.detail.canZoomOut},handleFullscreenChange(e){var t;null!=(t=null==e?void 0:e.target)&&t.classList&&e.target.classList.contains("o-image-viewer")?this.isFullscreen&&null==document.fullscreenElement&&(this.isFullscreen=!1):this.isFullscreen=!this.isFullscreen},handleCanvasChange(e){var t,n,i;const r=this.imageMetadata[null==(t=e.detail)?void 0:t.image]||this.imageMetadata[null==(n=e.detail)?void 0:n.canvas];if(null==this.canvasId_&&(this.canvasId_=e.detail.canvas),null!=(i=e.detail)&&i.canvasDetails&&(this.canvasDetails=e.detail.canvasDetails),r&&(this.imageDetails=r),void 0!==(null==r?void 0:r.isZoomable)?this.isVisualItemZoomable=r.isZoomable:this.isVisualItemZoomable!=this.isZoomable&&(this.isVisualItemZoomable=this.isZoomable),!this.isSequence){let e=this.thumbnailProps.findIndex((e=>e.canvasId==this.canvasId_));e>-1&&(this.slideIndex=e)}this.rotation=0,this.$emit("canvasChange",e)},handleSequenceChange(e){if(!this.sequenceZoomPerImage)return;const t=e.map((e=>this.imageMetadata[null==e?void 0:e.id])).filter((e=>e));this.isVisualItemZoomable=!t.some((e=>!1===(null==e?void 0:e.isZoomable))),0==t.length&&(this.isVisualItemZoomable=!0)},setSequenceZoom(){const e=Object.keys(this.imageMetadata).map((e=>this.imageMetadata[e]));0!=e.length?this.isVisualItemZoomable=!e.some((e=>!1===(null==e?void 0:e.isZoomable))):this.isVisualItemZoomable=!0},setStartCanvas(){var e,t;let n=null==(t=null==(e=this.$refs)?void 0:e.panel)?void 0:t.$el;if(n&&"canvas"!=this.componentType){let e=n.sequence.currentSequenceIndex,t=n.sequence.sequence[e][0],i=n.sequence.items[t].id;this.startCanvas=i}},isDisplayable(e,t){var n;let i=this.imageMetadata[e]||this.imageMetadata[e.replace("v3.0","v2.0")]||this.imageMetadata[t.canvasId],r=null==(n=null==i?void 0:i.isDisplayable)||n;if(this.filterVisualItems){let t=!!i&&r;return t||console.warn(`no matching visual item found for ${e}`),t}return r},getLabelAndAlt(e){var t,n;let[i,r]=e,a=r.label,s="";const o=this.imageMetadata[i]||this.imageMetadata[r.canvasId];return o&&(s=null!=(t=null==o?void 0:o.altText)?t:s,a=null!=(n=null==o?void 0:o.descriptiveNote)?n:a,s=s==a?"":s),{label:a,alt:s}},handleRotate(){this.rotation=this.rotation+90===360?0:this.rotation+90},handleMenuClick(e){return V(this,null,(function*(){"BUTTON"==e.target.tagName&&(this.activeMenu=this.activeMenu==e.target.name?void 0:e.target.name,this.isMobile&&lat.includes(e.target.name)&&(this.showModal||(this.showModal=!this.showModal),yield this.$nextTick(),this.showModal?this.triggerModalOpen(`menu-panel-modal${this.componentId}`,e):this.triggerModalClose(`menu-panel-modal${this.componentId}`,e)))}))},handleModalState(){this.showModal&&null==this.activeMenu&&(this.showModal=!1)},handleResize(){this.isMobile=this.isSmallMinus(),this.isMobile&&this.activeMenu&&(this.activeMenu=void 0)}}},cat={key:0,class:"o-image-viewer__vertical-toolbar g-vertical-toolbar"};function dat(e,t,n,i,r,a){const s=Yr("ToolbarGallery"),o=Yr("ImageToolsButtonGroup"),l=Yr("ImageViewerToolbar"),u=Yr("ImageViewerRightsPanel"),c=Yr("ImageViewerThumbnailCarousel"),d=Yr("MenuPanel");return As(),Ps("div",{class:Fe(a.classes),style:Pe(a.containerInlineStyle),onFullscreenchange:t[8]||(t[8]=(...e)=>a.handleFullscreenChange&&a.handleFullscreenChange(...e))},[a.isSequence&&"gallery"==r.viewerLayout?(As(),Os(s,{key:0,"use-canvas-thumbnails":n.useCanvasThumbnails,onClick:a.handleThumbn
102ailClick},null,8,["use-canvas-thumbnails","onClick"])):Ws("",!0),(As(),Os(Xr(a.componentName),Zs({ref:"panel","data-testid":"panel",class:"o-image-viewer__panel","skip-sizes":n.skipSizes,responsive:"true","use-floor-calc":"true"},e.$props,{background:a.panelBackgroundColor,"viewer-layout":r.viewerLayout,"is-fullscreen":r.isFullscreen,"active-layout-options":n.layoutMenuOptions,"start-canvas":r.startCanvas,"disable-keyboard-navigation":r.disableKeyboard,"canvas-id":r.canvasId_,"is-zoomable":r.isVisualItemZoomable,"ignore-single-finger-touch":"true","enable-pan-on-wait":"false","pan-on-wait-delay":"40","require-meta-key-for-wheel-zoom":"true",rotation:r.rotation,onCanvasChange:a.handleCanvasChange,onSequenceChange:a.handleSequenceChange,onFullscreenchange:a.handleFullscreenChange,onReady:a.handleReady,onCpLoadError:t[0]||(t[0]=e=>r.initialized=!1),onThumbnailsReady:t[1]||(t[1]=e=>r.thumbnails=e),onWorldReady:a.handleWorldReady,onZoom:a.handleZoom,onNumberOfSlides:t[2]||(t[2]=e=>r.numberOfSlides=e),onSlideIndex:t[3]||(t[3]=e=>r.slideIndex=e),onCurrentChoices:t[4]||(t[4]=e=>r.currentChoices=e),onCurrentSequence:t[5]||(t[5]=e=>r.currentSequence=e)}),null,16,["skip-sizes","background","viewer-layout","is-fullscreen","active-layout-options","start-canvas","disable-keyboard-navigation","canvas-id","is-zoomable","rotation","onCanvasChange","onSequenceChange","onFullscreenchange","onReady","onWorldReady","onZoom"])),Hs(No,{name:"g-vertical-toolbar__fade"},{default:Ii((()=>[a.showInitializedToolbar?(As(),Ps("div",cat,[Hs(o,{class:Fe(a.toolbarClass),"show-rotate":n.showRotate,"show-zoom":r.isVisualItemZoomable},null,8,["class","show-rotate","show-zoom"])])):Ws("",!0)])),_:1}),a.showInitializedToolbar?(As(),Os(l,{key:1,class:Fe(a.toolbarClass),"current-choices":r.currentChoices,"current-sequence":r.currentSequence,"show-choice-menu":n.showChoiceMenu,"show-rotate":n.showRotate},null,8,["class","current-choices","current-sequence","show-choice-menu","show-rotate"])):Ws("",!0),a.showRightsStatement?(As(),Os(u,{key:2,class:Fe(a.toolbarClass),"data-testid":"rightsStatement"},null,8,["class"])):Ws("",!0),a.showCarousel?(As(),Os(er,{key:3,disabled:!n.showThumbnails||!n.teleportSelector,to:n.teleportSelector},[Hs(c,{"data-testid":"carousel",class:Fe(a.toolbarClass),"manifest-url":n.manifestUrl,"canvas-id":r.canvasId_,"add-margin-top":n.showMenuPanel,onClick:a.handleThumbnailClick},null,8,["class","manifest-url","canvas-id","add-margin-top","onClick"])],8,["disabled","to"])):Ws("",!0),n.showMenuPanel?(As(),Os(Xr(r.isMobile&&r.showModal?"Modal":"div"),{key:4,id:r.showModal?`menu-panel-modal${r.componentId}`:null,class:Fe(r.showModal?"o-image-viewer__menu-modal":"o-image-viewer__menu-panel"),"show-close-button":!1,onAfterOpen:a.handleModalState,onAfterClose:a.handleModalState},{default:Ii((()=>[Hs(d,{"data-testid":"menuPanel",class:Fe(a.toolbarClass),"canvas-details":r.canvasDetails,"default-download-sizes":n.defaultDownloadSizes,"caption-fields":n.captionFields,"manifest-url":n.manifestUrl,"show-image-request-button":n.enableImageRequest&&"button"==n.imageRequestType,"enable-image-request":n.enableImageRequest,"iiif-image-url-part":n.iiifImageUrlPart,"current-choices":r.currentChoices,"modal-id":`menu-panel-modal${r.componentId}`,onClick:a.handleMenuClick,onImageRequest:t[6]||(t[6]=t=>e.$emit("imageRequest",t)),onImageDownload:t[7]||(t[7]=t=>e.$emit("imageDownload",t))},null,8,["class","canvas-details","default-download-sizes","caption-fields","manifest-url","show-image-request-button","enable-image-request","iiif-image-url-part","current-choices","modal-id","onClick"])])),_:1},40,["id","class","onAfterOpen","onAfterClose"])):Ws("",!0)],38)}H(dat,"vo");const pat=vit(uat,[["render",dat]]),hat={name:"ImageServiceViewer",components:{ImageToolsButtonGroup:Qit},provide(){return{fullscreenAvailable:document.fullscreenEnabled||document.mozFullScreenEnabled||document.documentElement.webkitRequestFullScreen,canZoomIn:Co((()=>this.canZoomIn)),canZoomOut:Co((()=>this.canZoomOut)),isFullscreen:Co((()=>this.isFullscreen)),viewerLayout:void 0,toolbarController:Co((()=>this.toolbarController))}},props:{backgroundColor:{type:String,required:!1,default:"#FFFFFF"},showToolbar:{type:Boolean,default:!1},showRotate:{type:Boolean,default:!1},modifiers:{type:Array,required:!1,default:H((()=>[]),"default")},src:{type:String,required:!1,default:void 0},region:{type:[Object,String],required:!1,default:void 0},canvasTitle:{type:String,default:void 0}},data(){return{analyticsHandler:rat(),toolbarController:void 0,canZoomIn:this.isZoomable,canZoomOut:!1,isFullscreen:!1,rotation:0}},computed:{classes(){let e=["m-image-service-viewer"];
102return this.modifiers.forEach((t=>{e.push(`m-image-service-viewer--${t}`)})),e},toolbarClass(){return this.modifiers.includes("light")&&0==this.isFullscreen?"g-toolbar-buttons--light":"g-toolbar-buttons"},formattedRegion(){if(this.region)return"object"==typeof this.region?`${this.region.x},${this.region.y},${this.region.w},${this.region.h}`:this.region},viewerBackgroundColor(){return this.isFullscreen?"#000000":this.backgroundColor}},watch:{isFullscreen(e){1==e&&(this.$el.requestFullscreen||this.$el.webkitRequestFullscreen).call(this.$el),document.fullscreenElement&&0==e&&document.exitFullscreen()}},mounted(){this.toolbarController=new oat(this,this.analyticsHandler)},methods:{handleFullscreenChange(){this.isFullscreen=!this.isFullscreen},handleNativeFullscreenChange(e){this.isFullscreen&&null==document.fullscreenElement&&this.handleFullscreenChange(e)},handleWorldReady(e){this.handleZoom(e)},handleZoom(e){this.canZoomIn=e.detail.canZoomIn,this.canZoomOut=e.detail.canZoomOut},handleRotate(){this.rotation=this.rotation+90===360?0:this.rotation+90}}},fat=["a11y-title","background","src","region","interactive","rotation"],mat={key:0,class:"m-image-service-viewer__vertical-toolbar g-vertical-toolbar"};function gat(e,t,n,i,r,a){const s=Yr("ImageToolsButtonGroup");return As(),Ps("div",{class:Fe(a.classes),style:Pe(`--background-color: ${a.viewerBackgroundColor};`),onFullscreenchange:t[2]||(t[2]=(...e)=>a.handleNativeFullscreenChange&&a.handleNativeFullscreenChange(...e))},[Bs("image-service",{ref:"panel",class:"m-image-service-viewer__canvas","a11y-role":"img","a11y-title":n.canvasTitle,background:a.viewerBackgroundColor,src:n.src,region:a.formattedRegion,interactive:n.showToolbar.toString(),rotation:r.rotation,"ignore-single-finger-touch":"true","enable-pan-on-wait":"false","pan-on-wait-delay":"40","require-meta-key-for-wheel-zoom":"true",onWorldReady:t[0]||(t[0]=(...e)=>a.handleWorldReady&&a.handleWorldReady(...e)),onZoom:t[1]||(t[1]=(...e)=>a.handleZoom&&a.handleZoom(...e))},null,40,fat),Hs(No,{name:"g-vertical-toolbar__fade"},{default:Ii((()=>[n.showToolbar?(As(),Ps("div",mat,[Hs(s,{class:Fe(a.toolbarClass),"hide-image-tools":!1,"show-zoom":n.showToolbar,"show-rotate":n.showRotate},null,8,["class","show-zoom","show-rotate"])])):Ws("",!0)])),_:1})],38)}H(gat,"Co");const yat=vit(hat,[["render",gat]]);var vat=Object.defineProperty,bat=H(((e,t,n)=>t in e?vat(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n),"So"),_at=H(((e,t,n)=>(bat(e,"symbol"!=typeof t?t+"":t,n),n)),"je");function wat(e){return Array.isArray(e)?e:[e]}H(wat,"ct");const Sat=["sc:Collection","sc:Manifest","sc:Canvas","sc:AnnotationList","oa:Annotation","sc:Range","sc:Layer","sc:Sequence","oa:Choice","Service","ContentResource"];function Cat(e){if(typeof e>"u"||null===e)throw new Error("Null or undefined is not a valid entity.");if(Array.isArray(e))throw new Error("Array is not a valid entity");if("object"!=typeof e)throw new Error(typeof e+" is not a valid entity");if("string"==typeof e["@type"]){const t=Sat.indexOf(e["@type"]);if(-1!==t)return Sat[t]}if(e.profile)return"Service";if(e.format||e["@type"])return"ContentResource";throw new Error("Resource type is not known")}H(Cat,"qo");const kat=class e{constructor(e,t={}){_at(this,"traversals"),_at(this,"options"),this.traversals=F({collection:[],manifest:[],canvas:[],annotationList:[],sequence:[],annotation:[],contentResource:[],choice:[],range:[],service:[],layer:[]},e),this.options=F({convertPropsToArray:!0,mergeMemberProperties:!0,allowUndefinedReturn:!1},t)}static all(t){return new e({collection:[t],manifest:[t],canvas:[t],annotationList:[t],sequence:[t],annotation:[t],contentResource:[t],choice:[t],range:[t],service:[t],layer:[t]})}traverseCollection(e){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseCollectionItems(e))),this.traversals.collection)}traverseCollectionItems(e){if(this.options.mergeMemberProperties){const t=[...(e.manifests||[]).map((e=>"string"==typeof e?{"@id":e,"@type":"sc:Manifest"}:e)),...(e.collections||[]).map((e=>"string"==typeof e?{"@id":e,"@type":"sc:Collection"}:e)),...e.members||[]];delete e.collections,delete e.manifests,e.members=t}return e.manifests&&(e.manifests=e.manifests.map((e=>this.traverseManifest("string"==typeof e?{"@id":e,"@type":"sc:Manifest"}:e)))),e.collections&&(e.collections=e.collections.map((e=>this.traverseCollection("string"==typeof e?{"@id":e,"@type":"sc:Collection"}:e)))),e.members&&(e.members=e.members.map((e=>"string"==typeof e?e:this.traverseUnknown(e)))),e}traverseManifest(e){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseManifestItems(e))),this.traversals.manifest)}traverseManifestItems(e){return e.sequences&&(e.sequences=e.sequences.map((e=>this.traverseSequence(e)))),e.structures&&(e.structures=e.structures.map((e=>this.traverseRange(e)))),e}traverseSequence(e){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseSequenceItems(e))),this.traversals.sequence)}traverseSequenceItems(e){return e.canvases&&(e.canvases=e.canvases.map((e=>this.traverseCanvas(e)))),e}traverseCanvas(e){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseCanvasItems(e))),this.traversals.canvas)}traverseCanvasItems(e){return e.images&&(e.images=e.images.map((e=>this.traverseAnnotation(e)))),e.otherContent&&(e.otherContent=e.otherContent.map((e=>
102this.traverseAnnotationList(e)))),e}traverseRange(e){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseRangeItems(e))),this.traversals.range)}traverseRangeItems(e){if(this.options.mergeMemberProperties){const t=[...(e.ranges||[]).map((e=>"string"==typeof e?{"@id":e,"@type":"sc:Range"}:e)),...(e.canvases||[]).map((e=>"string"==typeof e?{"@id":e,"@type":"sc:Canvas"}:e)),...e.members||[]];delete e.ranges,delete e.canvases,e.members=t.length?t.map((e=>this.traverseUnknown(e))):void 0}return e}traverseAnnotationList(e){const t="string"==typeof e?{"@id":e,"@type":"sc:AnnotationList"}:e;return this.traverseType(this.traverseDescriptive(this.traverseAnnotationListItems(t)),this.traversals.annotationList)}traverseAnnotationListItems(e){return e.resources&&(e.resources=e.resources.map((e=>this.traverseAnnotation(e)))),e}traverseAnnotation(e){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseAnnotationItems(e))),this.traversals.annotation)}traverseAnnotationItems(e){return e.resource&&(Array.isArray(e.resource)?e.resource=e.resource.map((e=>this.traverseContentResource(e))):e.resource=this.traverseContentResource(e.resource)),e.on,e}traverseLayer(e){return this.traverseType(this.traverseLinking(this.traverseLayerItems(e)),this.traversals.layer)}traverseLayerItems(e){return e.otherContent&&(e.otherContent=e.otherContent.map((e=>this.traverseAnnotationList(e)))),e}traverseChoice(e){return this.traverseType(this.traverseChoiceItems(e),this.traversals.choice)}traverseChoiceItems(e){return e.default&&"rdf:nil"!==e.default&&(e.default=this.traverseContentResource(e.default)),e.item&&"rdf:nil"!==e.item&&(e.item=e.item.map((e=>this.traverseContentResource(e)))),e}traverseService(e){return this.traverseType(this.traverseLinking(e),this.traversals.service)}traverseContentResource(e){return"oa:Choice"===e["@type"]?this.traverseChoice(e):this.traverseType(this.traverseDescriptive(this.traverseLinking(e)),this.traversals.contentResource)}traverseUnknown(e){if(!e["@type"]||"string"==typeof e)return e;switch(Cat(e)){case"sc:Collection":return this.traverseCollection(e);case"sc:Manifest":return this.traverseManifest(e);case"sc:Canvas":return this.traverseCanvas(e);case"sc:Sequence":return this.traverseSequence(e);case"sc:Range":return this.traverseRange(e);case"oa:Annotation":return this.traverseAnnotation(e);case"sc:AnnotationList":return this.traverseAnnotationList(e);case"sc:Layer":return this.traverseLayer(e);case"Service":return this.traverseService(e);case"oa:Choice":return this.traverseChoice(e);case"ContentResource":return this.traverseContentResource(e)}return e.profile?this.traverseService(e):e}traverseImageResource(e){const t=Array.isArray(e),n=Array.isArray(e)?e:[e],i=[];for(const r of n)"string"==typeof r?i.push(this.traverseContentResource({"@id":r,"@type":"dctypes:Image"})):i.push(this.traverseContentResource(r));return t||this.options.convertPropsToArray?i:i[0]}traverseDescriptive(e){return e.thumbnail&&(e.thumbnail=this.traverseImageResource(e.thumbnail)),e.logo&&(e.logo=this.traverseImageResource(e.logo)),e}traverseOneOrMoreServices(e){const t=Array.isArray(e),n=Array.isArray(e)?e:[e],i=[];for(const r of n)i.push(this.traverseService(r));return t||this.options.convertPropsToArray?i:i[0]}traverseLinking(e){return e.related&&(e.related=this.traverseOneOrManyType(e.related,this.traversals.contentResource)),e.rendering&&(e.rendering=this.traverseOneOrManyType(e.rendering,this.traversals.contentResource)),e.service&&(e.service=this.traverseOneOrMoreServices(e.service)),e.seeAlso&&(e.seeAlso=this.traverseOneOrManyType(e.seeAlso,this.traversals.contentResource)),e.within&&("string"==typeof e.within||(e.within=this.traverseOneOrManyType(e.within,this.traversals.contentResource))),e.startCanvas&&("string"==typeof e.startCanvas?e.startCanvas=this.traverseType({"@id":e.startCanvas,"@type":"sc:Canvas"},this.traversals.canvas):e.startCanvas&&this.traverseType(e.startCanvas,this.traversals.canvas)),e.contentLayer&&("string"==typeof e.contentLayer?e.contentLayer=this.traverseLayer({"@id":e.contentLayer,"@type":"sc:Layer"}):e.contentLayer=this.traverseLayer(e.contentLayer)),e}traverseOneOrManyType(e,t){if(!Array.isArray(e)){if(!this.options.convertPropsToArray)return this.traverseType(e,t);e=[e]}return e.map((e=>this.traverseType(e,t)))}traverseType(e,t){return t.reduce(((e,t)=>{const n=t(e);return typeof n>"u"&&!this.options.allowUndefinedReturn?e:n}),e)}};H(kat,"It");let xat=kat;const Tat="http://library.stanford.edu/iiif/image-api/compliance.html#level1",Eat="http://library.stanford.edu/iiif/image-api/compliance.html#level2",Aat="http://library.stanford.edu/iiif/image-api/conformance.html#level1",Lat="http://library.stanford.edu/iiif/image-api/conformance.html#level2",Iat="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",$at="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",Dat="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",Pat="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",Oat="http://iiif.io/api/image/1/level1.json",Mat="http://iiif.io/api/image/1/profiles/level1.json",Rat="http://iiif.io/api/image/1/level2.json",Nat="http://iiif.io/api/image/1/profiles/level2.json",Fat="http://iiif.io/api/image/2/level1.json",Bat="http://iiif.io/api/image/2/profiles/level1.json",Hat="http://iiif.io/api/image/2/level2.json",jat="http://iiif.io/api/image/2/profiles/level2.json",Uat="level1",Vat="level2",qat="http://iiif.io/api/image/2/level1",zat="http://iiif.io/api/image/2/level2",Wat=[qat,zat,Tat,Eat,Aat,Lat,Iat,$at,Dat,Pat,Oat,Mat,Rat,Nat,Fat,Bat,Hat,jat,Uat,Vat],Gat=["http://iiif.io/api/image/2/level0",qat,zat,"http://library.stanford.edu/iiif/image-api/compliance.html#level0",Tat,Eat,"http://library.stanford.edu/iiif/image-api/conformance.html#level0",Aat,Lat,"http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",Iat,$at,"http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",Dat,Pat,"http://iiif.io/api/image/1/level0.json","http://iiif.io/api/image/1/profiles/level0.json",Oat,Mat,Rat,Nat,"http://iiif.io/api/image/2/level0.json","http://iiif.io/api/image/2/profiles/level0.json",Fat,Bat,Hat,jat,"level0",Uat,Vat],Kat={attributionLabel:"Attribution",providerId:"http://example.org/provider",providerName:"Unknown"};function Yat(e,t="none"){if(!e)return{};const n=Array.isArray(e)?e:[e],i={};for(const r of n){if("string"==typeof r){i[t]=i[t]?i[t]:[],i[t].push(r||"");continue}if(!r["@language"]){i[t]=i[t]?i[t]:[],i[t].push(r["@value"]||"");continue}const e=r["@language"];i[e]=i[e]?i[e]:[],i[e].push(r["@value"]||"")}return i}function Zat(e){return Array.isArray(e)?Zat(e.find((e=>"string"==typeof e))):-1!==Gat.indexOf(e)?"level2":-1!==Wat.indexOf(e)?"level1":"string"==typeof e?e:void 0}function Xat(e){const t=Array.isArray(e)?e:[e];for(const n of t)switch(n){case"http://iiif.io/api/image/2/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2":return"ImageService2";case"http://iiif.io/api/image/1/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/context.json":return"ImageService1";case"http://iiif.io/api/annex/openannotation/context.json":return"ImageApiSelector"}}function Qat(e){switch(e){case"http://iiif.io/api/image/2/level0.json":case"http://iiif.io/api/image/2/level1.json":case"http://iiif.io/api/image/2/level2.json":return"ImageService2";case"http://iiif.io/api/auth/1/kiosk":case"http://iiif.io/api/auth/1/login":case"http://iiif.io/api/auth/1/clickthrough":case"http://iiif.io/api/auth/1/external":case"http://iiif.io/api/auth/0/kiosk":case"http://iiif.io/api/auth/0/login":case"http://iiif.io/api/auth/0/clickthrough":case"http://iiif.io/api/auth/0/external":return"AuthCookieService1";case"http://iiif.io/api/auth/1/token":case"http://iiif.io/api/auth/0/token":return"AuthTokenService1";case"http://iiif.io/api/auth/1/logout":case"http://iiif.io/api/auth/0/logout":return"AuthLogoutService1";case"http://iiif.io/api/search/1/search":case"http://iiif.io/api/search/0/search":return"SearchService1";case"http://iiif.io/api/search/1/autocomplete":case"http://iiif.io/api/search/0/autocomplete":return"AutoCompleteService1"}}function Jat(e){for(const t of["sc","oa","dcterms","dctypes","iiif"])if(e.startsWith(`${t}:`))return e.slice(t.length+1);return e}H(Yat,"ge"),H(Zat,"Zn"),H(Xat,"Zo"),H(Qat,"$o"),H(Jat,"Xt");const est=["Collection","Manifest","Annotation","AnnotationPage","Range","Service"];function tst(e){const t=e["@id"]||e.id;let n=e["@type"]||e.type;const i=e.profile||void 0,r=e["@context"]||void 0;if(i){const e=Qat(i);if(e)return e}if(r){const e=Xat(r);if(e)return e}if(n){if(Array.isArray(n)){if(-1!==n.indexOf("oa:CssStylesheet"))return"CssStylesheet";if(-1!==n.indexOf("cnt:ContentAsText"))return"TextualBody";n=n[0]}for(const e of["sc","oa","dcterms","dctypes","iiif"])if(n.startsWith(`${e}:`)){n=n.slice(e.length+1);break}switch(n){case"Layer":return"AnnotationCollection";case"AnnotationList":return"AnnotationPage";case"cnt:ContentAsText":return"TextualBody"}}if(n&&-1!==est.indexOf(n))return n;if(e.format){if(e.format.startsWith("image/"))return"Image";if(e.format.startsWith("text/")||"application/pdf"===e.format)return"Text";if(e.format.startsWith("application/"))return"Dataset"}return t&&(t.endsWith(".jpg")||t.endsWith(".png")||t.endsWith(".jpeg"))?"Image":n||"unknown"}H(tst,"St");const nst=/http(s)?:\/\/(creativecommons.org|rightsstatements.org)[^"'\\<\n]+/gm;function ist(e){const t=e.match(nst);return t?t[0]:e}function rst(e,t="Rights/License",n="none"){let i=null;const r=[],a=Array.isArray(e)?e:[e];for(const s of a){const e=s?ist(s):void 0;!e||-1===e.indexOf("creativecommons.org")&&-1===e.indexOf("rightsstatements.org")?e&&r.push({label:{[n]:[t]},value:{[n]:[e]}}):i=e.startsWith("https://")?`http://${e.slice(8)}`:e}return[i,r]}H(ist,"Wo"),H(rst,"Yo");const ast=["http://iiif.io/api/presentation/2/context.json","http://iiif.io/api/image/2/context.json","http://iiif.io/api/image/1/context.json","http://library.stanford.edu/iiif/image-api/1.1/context.json","http://iiif.io/api/search/1/context.json","http://iiif.io/api/search/0/context.json","http://iiif.io/api/auth/1/context.json","http://iiif.io/api/auth/0/context.json","http://iiif.io/api/annex/openannotation/context.json"];function sst(e){if(e){const t=Array.isArray(e)?e:[e],n=[];for(const e of t)"http://iiif.io/api/presentation/2/context.json"===e&&n.push("http://iiif.io/api/presentation/3/context.json"),-1===ast.indexOf(e)&&n.push(e);if(t.length)return 1===n.length?n[0]:n}}function ost(e){return e?e.map((e=>({label:Yat(e.label),value:Yat(e.value)}))):[]}function lst(e){for(const t in e)(typeof e[t]>"u"||null===e[t])&&delete e[t];return e}H(sst,"Xo"),H(ost,"Jo"),H(lst,"X");let ust=0;function cst(e,t){const n=encodeURI(e.id||e["@id"]||"").trim();return n&&t?`${n}/${t}`:n||(ust++,`http://example.org/${e["@type"]}${t?`/${t}`:""}/${ust}`)}function dst(e){const t=[...e.behavior||[]];let n;return e.viewingHint&&t.push(e.viewingHint),Array.isArray(e.motivation)?n=e.motivation.map(Jat):e.motivation&&(n=Jat(e.motivation)),{"@context":e["@context"]?sst(e["@context"]):void 0,id:(e["@id"]||cst(e)).trim(),type:tst(e),behavior:t.length?t:void 0,height:e.height?e.height:void 0,width:e.width?e.width:void 0,motivation:n,viewingDirection:e.viewingDirection,profile:e.profile,format:e.format?e.format:void 0,duration:void 0,timeMode:void 0}}function pst(e){const[t,n]=rst(e.license),i=[...e.metadata?ost(e.metadata):[],...n];return{rights:t,metadata:i.length?i:void 0,label:e.label?Yat(e.label):void 0,requiredStatement:e.attribution?{label:Yat(Kat.attributionLabel),value:Yat(e.attribution)}:void 0,navDate:e.navDate,summary:e.description?Yat(e.description):void 0,thumbnail:e.thumbnail}}function hst(e){if(!e.within)return;const t=Array.isArray(e.within)?e.within:[e.within],n=[];for(const i of t)if("string"==typeof i){if(i&&"sc:Manifest"===e["@type"])n.push({id:i,type:"C
102ollection"})}else i["@id"]&&n.push({id:i["@id"],type:tst(i)});return n.length?n:void 0}function fst(e){const t=e.related?Array.isArray(e.related)?e.related:[e.related]:[],n=e.contentLayer;return{provider:e.logo||t.length?[{id:Kat.providerId,type:"Agent",homepage:t.length?[t[0]]:void 0,logo:e.logo?Array.isArray(e.logo)?e.logo:[e.logo]:void 0,label:Yat(Kat.providerName)}]:void 0,partOf:hst(e),rendering:e.rendering,seeAlso:e.seeAlso,start:e.startCanvas,service:e.service?wat(e.service):void 0,supplementary:n?[n]:void 0}}function mst(e){return{chars:e.chars,format:e.format?e.format:void 0,language:e.language}}function gst(e){return lst(B(F(F(F({},dst(e)),pst(e)),fst(e)),{items:e.members}))}function yst(e){const t=[],n=[];for(const r of e.sequences||[])r.canvases.length&&t.push(...r.canvases),r.behavior&&n.push(...r.behavior);const i=dst(e);return n.length&&(i.behavior?i.behavior.push(...n):i.behavior=n),lst(B(F(F(F({},i),pst(e)),fst(e)),{items:t,structures:e.structures}))}function vst(e){return lst(B(F(F(F({},dst(e)),pst(e)),fst(e)),{annotations:e.otherContent&&e.otherContent.length?e.otherContent:void 0,items:e.images&&e.images.length?[{id:cst(e,"annotation-page"),type:"AnnotationPage",items:e.images}]:void 0}))}function bst(e){return lst(B(F(F(F({},dst(e)),pst(e)),fst(e)),{items:e.resources&&e.resources.length?e.resources:void 0}))}function _st(e){return e.canvases&&0!==e.canvases.length?{canvases:e.canvases,behavior:e.viewingHint?[e.viewingHint]:[]}:{canvases:[],behavior:[]}}function wst(e){function t(e){if(Array.isArray(e)){if(e.length>1)return{type:"List",items:e.map(t)};e=e[0]}if("string"==typeof e)return encodeURI(e).trim();if("@type"in e){let t;if("string"==typeof e.full)t=e.full;else if("dctypes:Image"===e.full["@type"])t={id:e.full["@id"],type:"Image"};else{if("sc:Canvas"!==e.full["@type"])throw new Error(`Unsupported source type on annotation: ${e.full["@type"]}`);t={id:e.full["@id"],type:"Canvas"}}return{type:"SpecificResource",source:t,selector:Est(e.selector)}}return encodeURI(e["@id"]).trim()}return H(t,"t"),lst(B(F(F(F({},dst(e)),pst(e)),fst(e)),{target:t(e.on),body:Array.isArray(e.resource)?e.resource.map(Sst):Sst(e.resource)}))}function Sst(e){const t=e;return lst(F(F(F(F({},dst(t)),pst(t)),fst(t)),mst(t)))}function Cst(e){const t=[];return e.default&&"rdf:nil"!==e.default&&t.push(e.default),e.item&&"rdf:nil"!==e.item&&t.push(...e.item),B(F(F({},dst(e)),pst(e)),{items:t})}function kst(e){return lst(B(F(F(F({},dst(e)),pst(e)),fst(e)),{items:e.members}))}function xst(e){const t=e,{"@id":n,"@type":i,"@context":r,profile:a}=t,s=j(t,["@id","@type","@context","profile"]),o={};return n&&(o["@id"]=n),o["@type"]=tst(e),"unknown"===o["@type"]&&(r&&r.length&&(o["@context"]=r),o["@type"]="Service"),a&&(o.profile=Zat(a)),lst(F(F({},o),s))}function Tst(e){return lst(F(F(F({},dst(e)),pst(e)),fst(e)))}function Est(e){if((Array.isArray(e["@type"])&&e["@type"].includes("oa:SvgSelector")||"oa:SvgSelector"==e["@type"])&&("chars"in e||"value"in e))return{type:"SvgSelector",value:"chars"in e?e.chars:e.value};if("oa:FragmentSelector"===e["@type"])return{type:"FragmentSelector",value:e.value};if("oa:Choice"===e["@type"])return[Est(e.default),...(Array.isArray(e.item)?e.item:[e.item]).map(Est)];if("iiif:ImageApiSelector"==e["@type"])return{type:"ImageApiSelector",region:"region"in e?e.region:void 0,rotation:"rotation"in e?e.rotation:void 0};throw new Error(`Unsupported selector type: ${e["@type"]}`)}function Ast(e){return null==e}function Lst(e){throw new Error("Argument "+e+" is empty.")}function Ist(e){return"string"==typeof e||"symbol"==typeof e}function $st(e){return!Ist(e)}function Dst(e){throw new Error("Argument "+e+" is invalid, it should be an action type of type: string | symbol")}function Pst(e,t){return Ast(e)&&Lst(1),$st(e)&&Dst(1),Object.assign((function(){var n=null!=t?t.apply(void 0,arguments):void 0;return Object.assign({type:e},n)}),{getType:H((function(){return e}),"getType"),toString:H((function(){return e}),"toString")})}function Ost(e,t,n){return Ast(e)&&Lst(1),$st(e)&&Dst(1),function(){return Pst(e,(function(){var e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1];return Object.assign({},void 0!==e&&{payload:e},{},void 0!==t&&{meta:t})}))}}function Mst(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}H(cst,"$n"),H(dst,"J"),H(pst,"ee"),H(hst,"el"),H(fst,"ae"),H(mst,"tl"),H(gst,"nl"),H(yst,"il"),H(vst,"al"),H(bst,"rl"),H(_st,"sl"),H(wst,"ol"),H(Sst,"ht"),H(Cst,"ll"),H(kst,"ul"),H(xst,"cl"),H(Tst,"dl"),new xat({collection:[gst],manifest:[yst],canvas:[vst],annotationList:[bst],sequence:[_st],annotation:[wst],contentResource:[Sst],choice:[Cst],range:[kst],service:[xst],layer:[Tst]}
102),H(Est,"ft"),H(Ast,"Qn"),H(Lst,"Xn"),H(Ist,"El"),H($st,"Jn"),H(Dst,"ei"),H(Pst,"Rl"),H(Ost,"U"),H(Mst,"B");var Rst=H((function(){return Math.random().toString(36).substring(7).split("").join(".")}),"st"),Nst={INIT:"@@redux/INIT"+Rst(),REPLACE:"@@redux/REPLACE"+Rst(),PROBE_UNKNOWN_ACTION:H((function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Rst()}),"PROBE_UNKNOWN_ACTION")};function Fst(e){Object.keys(e).forEach((function(t){var n=e[t];if(typeof n(void 0,{type:Nst.INIT})>"u")throw new Error(Mst(12));if(typeof n(void 0,{type:Nst.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Mst(13))}))}function Bst(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var r=t[i];"function"==typeof e[r]&&(n[r]=e[r])}var a,s=Object.keys(n);try{Fst(n)}catch(o){a=o}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var i=!1,r={},o=0;o<s.length;o++){var l=s[o],u=n[l],c=e[l],d=u(c,t);if(typeof d>"u")throw t&&t.type,new Error(Mst(14));r[l]=d,i=i||d!==c}return(i=i||s.length!==Object.keys(e).length)?r:e}}H(Fst,"Pl"),H(Bst,"ni");const Hst="@iiif/IMPORT_ENTITIES",jst="@iiif/MODIFY_ENTITY_FIELD",Ust="@iiif/REORDER_ENTITY_FIELD",Vst="@iiif/ADD_REFERENCE",qst="@iiif/REMOVE_REFERENCE";Ost(Hst)(),Ost(jst)(),Ost(Ust)(),Ost(Vst)(),Ost(qst)();const zst="@iiif/ADD_MAPPING",Wst="@iiif/ADD_MAPPINGS";Ost(zst)(),Ost(Wst)();const Gst="@iiif/SET_META_VALUE",Kst="@iiif/SET_META_VALUE_DYNAMIC",Yst="@iiif/UNSET_META_VALUE";Ost(Gst)(),Ost(Kst)(),Ost(Yst)();const Zst="@iiif/REQUEST_RESOURCE",Xst="@iiif/REQUEST_ERROR",Qst="@iiif/REQUEST_MISMATCH",Jst="@iiif/REQUEST_COMPLETE",eot="@iiif/REQUEST_OFFLINE_RESOURCE";Ost(Zst)(),Ost(Xst)(),Ost(Qst)(),Ost(Jst)(),Ost(eot)();function tot(){return{Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}}}Ost("@iiif/BATCH")(),Ost("@iiif/BATCH_IMPORT")(),H(tot,"Wl");const not=H(((e={},t)=>{switch(t.type){case zst:return B(F({},e),{[t.payload.id]:t.payload.type});case Wst:return F(F({},e),t.payload.mapping);default:return e}}),"Yl");function iot(e,t,n,i){return!!(e[n]&&e[n][t]&&e[n][t][i]&&Array.isArray(e[n][t][i]))}function rot(e,t){const n={},i=[];for(const[r,a]of Object.entries(e||{})){i.push(r);const e=(t||{})[r];e&&0!==e.length?n[r]=e:n[r]=a}for(const[r,a]of Object.entries(t||{}))-1===i.indexOf(r)&&(n[r]=a);return n}H(iot,"lt"),H(rot,"Ql");const aot=H(((e={Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}},t)=>{var n;switch(t.type){case jst:{if(!e[t.payload.type]||!e[t.payload.type][t.payload.id])return e;const n=e[t.payload.type][t.payload.id];return"string"==typeof n?e:B(F({},e),{[t.payload.type]:B(F({},e[t.payload.type]),{[t.payload.id]:B(F({},n),{[t.payload.key]:t.payload.value})})})}case Ust:{if(!iot(e,t.payload.id,t.payload.type,t.payload.key))return e;const n=e[t.payload.type][t.payload.id];if("string"==typeof n)return e;const i=Array.from(n[t.payload.key]),[r]=i.splice(t.payload.startIndex,1);return i.splice(t.payload.endIndex,0,r),B(F({},e),{[t.payload.type]:B(F({},e[t.payload.type]),{[t.payload.id]:B(F({},n),{[t.payload.key]:i})})})}case Hst:{const n=Object.keys(t.payload.entities),i=F({},e);for(const r of n){const n=t.payload.entities[r],a=F({},e[r]||{});let s=!1;const o=Object.keys(n||{})||[];if(n&&o){for(const t of o)s=!0,a[t]=e[r][t]?rot(e[r][t],n[t]):n[t];s&&(i[r]=a)}}return i}case Vst:{if(!iot(e,t.payload.id,t.payload.type,t.payload.key))return e;const n=e[t.payload.type][t.payload.id],i=Array.from(n[t.payload.key]);return i.splice(t.payload.index||i.length+1,0,t.payload.reference),B(F({},e),{[t.payload.type]:B(F({},e[t.payload.type]),{[t.payload.id]:B(F({},n),{[t.payload.key]:i})})})}case qst:{if(!iot(e,t.payload.id,t.payload.type,t.payload.key))return e;const i=e[t.payload.type][t.payload.id],r=Array.from(i[t.payload.key]),a=t.payload.index||r.findIndex((e=>e&&e.id===t.payload.reference.id));return-1===a||(null==(n=r[a])?void 0:n.id)!==t.payload.reference.id?e:(r.splice(a,1),B(F({},e),{[t.payload.type]:B(F({},e[t.payload.type]),{[t.payload.id]:B(F({},i),{[t.payload.key]:r})})}))}default:return e}}),"Xl"),sot=H(((e={},t)=>{switch(t.type){case Zst:case eot:return B(F({},e),{[t.payload.id]:{requestUri:t.payload.id,loadingState:"RESOURCE_LOADING",ur
102iMismatch:!1,resourceUri:t.payload.id}});case Qst:return B(F({},e),{[t.payload.requestId]:B(F({},e[t.payload.requestId]||{}),{uriMismatch:!0,resourceUri:t.payload.actualId}),[t.payload.actualId]:{requestUri:t.payload.requestId,loadingState:e[t.payload.requestId].loadingState,uriMismatch:!0,resourceUri:t.payload.actualId}});case Xst:return B(F({},e),{[t.payload.id]:B(F({},e[t.payload.id]||{}),{loadingState:"RESOURCE_ERROR",error:t.payload.message})});case Jst:return B(F({},e),{[t.payload.id]:B(F({},e[t.payload.id]||{}),{loadingState:"RESOURCE_READY",error:void 0})})}return e}),"Jl"),oot=H(((e={},t)=>{const{id:n,updateValue:i,value:r,meta:a,key:s}=t&&t.payload||{};switch(t.type){case Gst:return B(F({},e),{[n]:B(F({},e[n]||{}),{[a]:B(F({},e[n]&&e[n][a]||{}),{[s]:r})})});case Kst:return B(F({},e),{[n]:B(F({},e[n]||{}),{[a]:B(F({},e[n]&&e[n][a]||{}),{[s]:e[n]&&e[n][a]?i(e[n][a][s]):i(void 0)})})});case Yst:return e[n]&&e[n][a]&&e[n][a][s]?B(F({},e),{[n]:B(F({},e[n]||{}),{[a]:B(F({},e[n]&&e[n][a]||{}),{[s]:void 0})})}):e;default:return e}}),"eu");Bst({mapping:not,entities:aot,requests:sot,meta:oot});var lot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}H(uot,"cu");var cot,dot={exports:{}};function pot(){return cot||(cot=1,function(e,t){var n="__lodash_hash_undefined__",i=9007199254740991,r="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",o="[object GeneratorFunction]",l="[object Null]",u="[object Object]",c="[object Proxy]",d="[object Undefined]",p=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,f={};f["[object Float32Array]"]=f["[object Float64Array]"]=f["[object Int8Array]"]=f["[object Int16Array]"]=f["[object Int32Array]"]=f["[object Uint8Array]"]=f["[object Uint8ClampedArray]"]=f["[object Uint16Array]"]=f["[object Uint32Array]"]=!0,f[r]=f["[object Array]"]=f["[object ArrayBuffer]"]=f["[object Boolean]"]=f["[object DataView]"]=f["[object Date]"]=f["[object Error]"]=f[s]=f["[object Map]"]=f["[object Number]"]=f[u]=f["[object RegExp]"]=f["[object Set]"]=f["[object String]"]=f["[object WeakMap]"]=!1;var m="object"==typeof lot&&lot&&lot.Object===Object&&lot,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),v=t&&!t.nodeType&&t,b=v&&e&&!e.nodeType&&e,_=b&&b.exports===v,w=_&&m.process,S=function(){try{return b&&b.require&&b.require("util").types||w&&w.binding&&w.binding("util")}catch(e){}}(),C=S&&S.isTypedArray;function k(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 x(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function T(e){return function(t){return e(t)}}function E(e,t){return null==e?void 0:e[t]}function A(e,t){return function(n){return e(t(n))}}H(k,"ji"),H(x,"zi"),H(T,"Vi"),H(E,"Gi"),H(A,"Zi");var L,I=Array.prototype,$=Function.prototype,D=Object.prototype,P=y["__core-js_shared__"],O=$.toString,M=D.hasOwnProperty,R=(L=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"",N=D.toString,F=O.call(Object),B=RegExp("^"+O.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=_?y.Buffer:void 0,U=y.Symbol,V=y.Uint8Array;j&&j.allocUnsafe;var q=A(Object.getPrototypeOf,Object),z=Object.create,W=D.propertyIsEnumerable,G=I.splice,K=U?U.toStringTag:void 0,Y=function(){try{var e=Ye(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),Z=j?j.isBuffer:void 0,X=Math.max,Q=Date.now,J=Ye(y,"Map"),ee=Ye(Object,"create"),te=function(){function e(){}return H(e,"s"),function(t){if(!vt(t))return{};if(z)return z(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ie(){this.__data__=ee?ee(null):{},this.size=0}function re(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function ae(e){var t=this.__data__;if(ee){var i=t[e];return i===n?void 0:i}return M.call(t,e)?t[e]:void 0}function se(e){var t=this.__data__;return ee?void 0!==t[e]:M.call(t,e)}function oe(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=ee&&void 0===t?n:t,this}function le(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ue(){this.__data__=[],this.size=0}function ce(e){var t=this.__data__,n=Le(t,e);return!(n<0)&&(n==t.length-1?t.pop():G.call(t,n,1),--this.size,!0)}function de(e){var t=this.__data__,n=Le(t,e);return n<0?void 0:t[n][1]}function pe(e){return Le(this.__data__,e)>-1}function he(e,t){var n=this.__data__,i=Le(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function me(){this.size=0,this.__data__={hash:new ne,map:new(J||le),string:new ne}}function ge(e){var t=Ke(this,e).delete(e);return this.size-=t?1:0,t}function ye(e){return Ke(this,e).get(e)}function ve(e){return Ke(this,e).has(e)}function be(e,t){var n=Ke(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}function _e(e){var t=this.__data__=new le(e);this.size=t.size}function we(){this.__data__=new le,this.size=0}function Se(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ce(e){return this.__data__.get(e)}function ke(e){return this.__data__.has(e)}function xe(e,t){var n=this.__data__;if(n instanceof le){var i=n.__data__;if(!J||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new fe(i)}return n.set(e,t),this.size=n.size,this}function Te(e,t){var n=pt(e),i=!n&&dt(e),r=!n&&!i&&mt(e),a=!n&&!i&&!r&&wt(e),s=n||i||r||a,o=s?x(e.length,String):[],l=o.length;for(var u in e)s&&("length"==u||r&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Qe(u,l))||o.push(u);return o}function Ee(e,t,n){(void 0!==n&&!ct(e[t],n)||void 0===n&&!(t in e))&&Ie(e,t,n)}function Ae(e,t,n){var i=e[t];(!M.call(e,t)||!ct(i,n)||void 0===n&&!(t in e))&&Ie(e,t,n)}function Le(e,t){for(var n=e.length;n--;)if(ct(e[n][0],t))return n;return-1}
102function Ie(e,t,n){"__proto__"==t&&Y?Y(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}H(ne,"oe"),H(ie,"ta"),H(re,"na"),H(ae,"ia"),H(se,"aa"),H(oe,"ra"),ne.prototype.clear=ie,ne.prototype.delete=re,ne.prototype.get=ae,ne.prototype.has=se,ne.prototype.set=oe,H(le,"W"),H(ue,"sa"),H(ce,"oa"),H(de,"la"),H(pe,"ua"),H(he,"ca"),le.prototype.clear=ue,le.prototype.delete=ce,le.prototype.get=de,le.prototype.has=pe,le.prototype.set=he,H(fe,"pe"),H(me,"da"),H(ge,"ha"),H(ye,"fa"),H(ve,"ma"),H(be,"ga"),fe.prototype.clear=me,fe.prototype.delete=ge,fe.prototype.get=ye,fe.prototype.has=ve,fe.prototype.set=be,H(_e,"ve"),H(we,"pa"),H(Se,"va"),H(Ce,"ya"),H(ke,"ba"),H(xe,"_a"),_e.prototype.clear=we,_e.prototype.delete=Se,_e.prototype.get=Ce,_e.prototype.has=ke,_e.prototype.set=xe,H(Te,"wa"),H(Ee,"We"),H(Ae,"Ca"),H(Le,"De"),H(Ie,"Ye");var $e=Ge();function De(e){return null==e?void 0===e?d:l:K&&K in Object(e)?Ze(e):rt(e)}function Pe(e){return bt(e)&&De(e)==r}function Oe(e){return!(!vt(e)||tt(e))&&(gt(e)?B:p).test(ut(e))}function Me(e){return bt(e)&&yt(e.length)&&!!f[De(e)]}function Re(e){if(!vt(e))return it(e);var t=nt(e),n=[];for(var i in e)"constructor"==i&&(t||!M.call(e,i))||n.push(i);return n}function Ne(e,t,n,i,r){e!==t&&$e(t,(function(a,s){if(r||(r=new _e),vt(a))Fe(e,t,s,n,Ne,i,r);else{var o=i?i(st(e,s),a,s+"",e,t,r):void 0;void 0===o&&(o=a),Ee(e,s,o)}}),Ct)}function Fe(e,t,n,i,r,a,s){var o=st(e,n),l=st(t,n),u=s.get(l);if(u)Ee(e,n,u);else{var c=a?a(o,l,n+"",e,t,s):void 0,d=void 0===c;if(d){var p=pt(l),h=!p&&mt(l),f=!p&&!h&&wt(l);c=l,p||h||f?pt(o)?c=o:ft(o)?c=qe(o):h?(d=!1,c=je(l)):f?(d=!1,c=Ve(l)):c=[]:_t(l)||dt(l)?(c=o,dt(o)?c=St(o):(!vt(o)||gt(o))&&(c=Xe(l))):d=!1}d&&(s.set(l,c),r(c,l,i,a,s),s.delete(l)),Ee(e,n,c)}}function Be(e,t){return ot(at(e,t,Tt),e+"")}H(De,"Ne"),H(Pe,"Ut"),H(Oe,"Sa"),H(Me,"Aa"),H(Re,"Ta"),H(Ne,"Bt"),H(Fe,"Ea"),H(Be,"Ra");var He=Y?function(e,t){return Y(e,"toString",{configurable:!0,enumerable:!1,value:xt(t),writable:!0})}:Tt;function je(e,t){return e.slice()}function Ue(e){var t=new e.constructor(e.byteLength);return new V(t).set(new V(e)),t}function Ve(e,t){var n=Ue(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}function qe(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}function ze(e,t,n,i){var r=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var o=t[a],l=void 0;void 0===l&&(l=e[o]),r?Ie(n,o,l):Ae(n,o,l)}return n}function We(e){return Be((function(t,n){var i=-1,r=n.length,a=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(r--,a):void 0,s&&Je(n[0],n[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++i<r;){var o=n[i];o&&e(t,o,i,a)}return t}))}function Ge(e){return function(e,t,n){for(var i=-1,r=Object(e),a=n(e),s=a.length;s--;){var o=a[++i];if(!1===t(r[o],o,r))break}return e}}function Ke(e,t){var n=e.__data__;return et(t)?n["string"==typeof t?"string":"hash"]:n.map}function Ye(e,t){var n=E(e,t);return Oe(n)?n:void 0}function Ze(e){var t=M.call(e,K),n=e[K];try{e[K]=void 0;var i=!0}catch(a){}var r=N.call(e);return i&&(t?e[K]=n:delete e[K]),r}function Xe(e){return"function"!=typeof e.constructor||nt(e)?{}:te(q(e))}function Qe(e,t){var n=typeof e;return!!(t=null!=t?t:i)&&("number"==n||"symbol"!=n&&h.test(e))&&e>-1&&e%1==0&&e<t}function Je(e,t,n){if(!vt(n))return!1;var i=typeof t;return!!("number"==i?ht(n)&&Qe(t,n.length):"string"==i&&t in n)&&ct(n[t],e)}function et(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function tt(e){return!!R&&R in e}function nt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||D)}function it(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}function rt(e){return N.call(e)}function at(e,t,n){return t=X(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,a=X(i.length-t,0),s=Array(a);++r<a;)s[r]=i[t+r];r=-1;for(var o=Array(t+1);++r<t;)o[r]=i[r];return o[t]=n(s),k(e,this,o)}}function st(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}H(je,"Ma"),H(Ue,"Oa"),H(Ve,"qa"),H(qe,"Pa"),H(ze,"ka"),H(We,"xa"),H(Ge,"Da"),H(Ke,"Fe"),H(Ye,"Qe"),H(Ze,"Na"),H(Xe,"Fa"),H(Qe,"jt"),H(Je,"Ua"),H(et,"Ba"),H(tt,"ja"),H(nt,"zt"),H(it,"za"),H(rt,"Va"),H(at,"Ga"),H(st,"Xe");var ot=lt(He);function lt(e){var t=0,n=0;return function(){var i=Q(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ut(e){if(null!=e){try{return O.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ct(e,t){return e===t||e!=e&&t!=t}H(lt,"$a"),H(ut,"Ha"),H(ct,"Ue");var dt=Pe(function(){return arguments}())?Pe:function(e){return bt(e)&&M.call(e,"callee")&&!W.call(e,"callee")},pt=Array.isArray;function ht(e){return null!=e&&yt(e.length)&&!gt(e)}function ft(e){return bt(e)&&ht(e)}H(ht,"tt"),H(ft,"Ka");var mt=Z||Et;function gt(e){if(!vt(e))return!1;var t=De(e);return t==s||t==o||t==a||t==c}function yt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function vt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function bt(e){return null!=e&&"object"==typeof e}function _t(e){if(!bt(e)||De(e)!=u)return!1;var t=q(e);if(null===t)return!0;var n=M.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&O.call(n)==F}H(gt,"nt"),H(yt,"Gt"),H(vt,"le"),H(bt,"Se"),H(_t,"Wa");var wt=C?T(C):Me;function St(e){return ze(e,Ct(e))}function Ct(e){return ht(e)?Te(e):Re(e)}H(St,"Ya"),H(Ct,"$t");var kt=We((function(e,t,n){Ne(e,t,n)}));function xt(e){return function(){return e}}function Tt(e){return e}function Et(){return!1}H(xt,"Xa"),H(Tt,"Ht"),H(Et,"Ja"),e.exports=kt}(dot,dot.exports)),dot.exports}H(pot,"du");const hot={en:uot(pot())(qee.messages.en,{"o-image-viewer":{error_message:"There was an error loading the image (Error: {status})",label_delimiter:", ",alt_text:{facing_pages:"Facing Pages",choice:"that has an alternate view"}}
102,"a-choice-menu":{default:"Alternate views",tooltip:{no_alternate_views:"This page does not have any alternate views",feature_not_available:"This feature is only available in single and facing pages"}},"a-fullscreen-button":{fullscreen:"Full Screen",fullscreenExit:"Exit Full Screen"},"a-toolbar-menu":{toggle:{"aria-open":"Close Menu: {menu}","aria-close":"Open Menu: {menu}"},AlternateViews:"Alternate Views",Grid:"Layout"},"a-sequence-labels":{label:{left:"Left: {label}",right:"Right: {label}"}},"a-layout-menu":{gallery:"Grid",paged:"Facing Pages",single_page:"Single Page",layout:{default:"Layout"}},"a-image-tools-button-group":{fullscreen:"Full Screen",fullscreenExit:"Exit Full Screen"},"a-resource-unavailable":{image:{alt_text:"Image graphic with strikethrough",caption:"Image not available"}},"a-download-menu":{dimensions:" ({0} x {1} px)",download_button_label:"Download image",small:"Presentation/study",large:"Large Image",full:"Highest Resolution",ariaResolution:"Download {resolution}",aria_toggle_download_menu:"Toggle Menu for {buttonLabel}",download_heading:"Downloads",actions_heading:"Actions",mirador_link_text:"Open in comparison viewer",mirador_link_icon_label:"External Link",permission_heading:"Permission",permission_statement_text:"Default permission statement set in locale file",publication_use_heading:"Publication use",restrictions_heading:"Digital Use Restrictions",caption_heading:"Caption Information",image_request_button_label:"Request this image",restrictions_button_label:"Digital use and restrictions"},"m-image-viewer-rights-panel":{image_request_button_label:"Order this image",COPYRIGHT_UNIDENTIFIABLE:"In Copyright - Rights-holder(s) unlocatable or unidentifiable",IN_COPYRIGHT_UNIDENTIFIABLE:"In Copyright - Rights-holder(s) unlocatable or unidentifiable",UNDETERMINED:"Copyright Undetermined",COPYRIGHT_UNDETERMINED:"Copyright Undetermined",IN_COPYRIGHT:"In Copyright",NO_COPYRIGHT:"No Copyright - United States",NOT_EVALUATED:"Copyright not evaluated",ZERO:"Public Domain"},"m-image-viewer-thumbnails":{thumbnail_count_label:"{ '' } | {count} image | { count } images"}})},fot=Object.freeze(Object.defineProperty({__proto__:null,messages:hot},Symbol.toStringTag,{value:"Module"})),mot={en:lit(qee.messages.en,D4e.messages.en,fot.messages.en,rit),es:lit({},{})};qee.dateTimeFormats;var got,yot,vot,bot,_ot,wot,Sot,Cot,kot,xot,Tot,Eot,Aot,Lot,Iot,$ot,Dot,Pot,Oot,Mot,Rot,Not,Fot,Bot,Hot,jot,Uot,Vot,qot,zot,Wot,Got,Kot,Yot,Zot,Xot,Qot,Jot,elt,tlt,nlt,ilt,rlt,alt,slt,olt,llt,ult,clt,dlt,plt,hlt,flt,mlt,glt,ylt,vlt,blt,_lt,wlt,Slt,Clt,klt,xlt,Tlt,Elt,Alt,Llt,Ilt,$lt,Dlt,Plt,Olt,Mlt,Rlt,Nlt,Flt,Blt,Hlt,jlt,Ult,Vlt,qlt,zlt,Wlt,Glt,Klt,Ylt,Zlt,Xlt,Qlt,Jlt={exports:{}};function eut(){if(yot)return got;yot=1;var e=Object.prototype.toString,t=Math.max,n=H((function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n}),"concatty"),i=H((function(e,t){for(var n=[],i=t,r=0;i<e.length;i+=1,r+=1)n[r]=e[i];return n}),"slicy"),r=H((function(e,t){for(var n="",i=0;i<e.length;i+=1)n+=e[i],i+1<e.length&&(n+=t);return n}),"joiny");return got=H((function(a){var s=this;if("function"!=typeof s||"[object Function]"!==e.apply(s))throw new TypeError("Function.prototype.bind called on incompatible "+s);for(var o,l=i(arguments,1),u=H((function(){if(this instanceof o){var e=s.apply(this,n(l,arguments));return Object(e)===e?e:this}return s.apply(a,n(l,arguments))}),"binder"),c=t(0,s.length-l.length),d=[],p=0;p<c;p++)d[p]="$"+p;if(o=Function("binder","return function ("+r(d,",")+"){ return binder.apply(this,arguments); }")(u),s.prototype){var h=H((function(){}),"Empty");h.prototype=s.prototype,o.prototype=new h,h.prototype=null}return o}),"bind"),got}
102function tut(){if(bot)return vot;bot=1;var e=eut();return vot=Function.prototype.bind||e}function nut(){return wot?_ot:(wot=1,_ot=Object)}function iut(){return Cot?Sot:(Cot=1,Sot=Error)}function rut(){return xot?kot:(xot=1,kot=EvalError)}function aut(){return Eot?Tot:(Eot=1,Tot=RangeError)}function sut(){return Lot?Aot:(Lot=1,Aot=ReferenceError)}function out(){return $ot?Iot:($ot=1,Iot=SyntaxError)}function lut(){return Pot?Dot:(Pot=1,Dot=TypeError)}function uut(){return Mot?Oot:(Mot=1,Oot=URIError)}function cut(){return Not?Rot:(Not=1,Rot=Math.abs)}function dut(){return Bot?Fot:(Bot=1,Fot=Math.floor)}function put(){return jot?Hot:(jot=1,Hot=Math.max)}function hut(){return Vot?Uot:(Vot=1,Uot=Math.min)}function fut(){return zot?qot:(zot=1,qot=Math.pow)}function mut(){return Got?Wot:(Got=1,Wot=Math.round)}function gut(){return Yot||(Yot=1,Kot=Number.isNaN||H((function(e){return e!=e}),"isNaN")),Kot}function yut(){if(Xot)return Zot;Xot=1;var e=gut();return Zot=H((function(t){return e(t)||0===t?t:t<0?-1:1}),"sign")}function vut(){return Jot?Qot:(Jot=1,Qot=Object.getOwnPropertyDescriptor)}function but(){if(tlt)return elt;tlt=1;var e=vut();if(e)try{e([],"length")}catch(tvt){e=null}return elt=e}function _ut(){if(ilt)return nlt;ilt=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(tvt){e=!1}return nlt=e}function wut(){return alt?rlt:(alt=1,rlt=H((function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var i in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}),"hasSymbols"))}function Sut(){if(olt)return slt;olt=1;var e="undefined"!=typeof Symbol&&Symbol,t=wut();return slt=H((function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}),"hasNativeSymbols")}function Cut(){return ult?llt:(ult=1,llt="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function kut(){return dlt?clt:(dlt=1,clt=nut().getPrototypeOf||null)}function xut(){return hlt?plt:(hlt=1,plt=Function.prototype.call)}function Tut(){return mlt?flt:(mlt=1,flt=Function.prototype.apply)}function Eut(){return ylt?glt:(ylt=1,glt="undefined"!=typeof Reflect&&Reflect&&Reflect.apply)}function Aut(){if(blt)return vlt;blt=1;var e=tut(),t=Tut(),n=xut(),i=Eut();return vlt=i||e.call(n,t)}function Lut(){if(wlt)return _lt;wlt=1;var e=tut(),t=lut(),n=xut(),i=Aut();return _lt=H((function(r){if(r.length<1||"function"!=typeof r[0])throw new t("a function is required");return i(e,n,r)}),"callBindBasic")}function Iut(){if(Clt)return Slt;Clt=1;var e,t=Lut(),n=but();try{e=[].__proto__===Array.prototype}catch(tvt){if(!tvt||"object"!=typeof tvt||!("code"in tvt)||"ERR_PROTO_ACCESS"!==tvt.code)throw tvt}var i=!!e&&n&&n(Object.prototype,"__proto__"),r=Object,a=r.getPrototypeOf;return Slt=i&&"function"==typeof i.get?t([i.get]):"function"==typeof a&&H((function(e){return a(null==e?e:r(e))}),"getDunder")}
102function $ut(){if(xlt)return klt;xlt=1;var e=Cut(),t=kut(),n=Iut();return klt=e?H((function(t){return e(t)}),"getProto"):t?H((function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}),"getProto"):n?H((function(e){return n(e)}),"getProto"):null}function Dut(){if(Elt)return Tlt;Elt=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=tut();return Tlt=n.call(e,t)}function Put(){if(Llt)return Alt;var e;Llt=1;var t=nut(),n=iut(),i=rut(),r=aut(),a=sut(),s=out(),o=lut(),l=uut(),u=cut(),c=dut(),d=put(),p=hut(),h=fut(),f=mut(),m=yut(),g=Function,y=H((function(e){try{return g('"use strict"; return ('+e+").constructor;")()}catch(tvt){}}),"getEvalledConstructor"),v=but(),b=_ut(),_=H((function(){throw new o}),"throwTypeError"),w=v?function(){try{return _}catch(e){try{return v(arguments,"callee").get}catch(t){return _}}}():_,S=Sut()(),C=$ut(),k=kut(),x=Cut(),T=Tut(),E=xut(),A={},L="undefined"!=typeof Uint8Array&&C?C(Uint8Array):e,I={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?e:ArrayBuffer,"%ArrayIteratorPrototype%":S&&C?C([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":"undefined"==typeof Atomics?e:Atomics,"%BigInt%":"undefined"==typeof BigInt?e:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?e:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":i,"%Float16Array%":"undefined"==typeof Float16Array?e:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?e:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?e:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?e:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":A,"%Int8Array%":"undefined"==typeof Int8Array?e:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?e:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
102IteratorPrototype%":S&&C?C(C([][Symbol.iterator]())):e,"%JSON%":"object"==typeof JSON?JSON:e,"%Map%":"undefined"==typeof Map?e:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&S&&C?C((new Map)[Symbol.iterator]()):e,"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":v,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?e:Promise,"%Proxy%":"undefined"==typeof Proxy?e:Proxy,"%RangeError%":r,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?e:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?e:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&S&&C?C((new Set)[Symbol.iterator]()):e,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&C?C(""[Symbol.iterator]()):e,"%Symbol%":S?Symbol:e,"%SyntaxError%":s,"%ThrowTypeError%":w,"%TypedArray%":L,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?e:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?e:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?e:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?e:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?e:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?e:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?e:WeakSet,"%Function.prototype.call%":E,"%Function.prototype.apply%":T,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":k,"%Math.abs%":u,"%Math.floor%":c,"%Math.max%":d,"%Math.min%":p,"%Math.pow%":h,"%Math.round%":f,"%Math.sign%":m,"%Reflect.getPrototypeOf%":x};if(C)try{null.error}catch(tvt){var $=C(C(tvt));I["%Error.prototype%"]=$}var D=H((function e(t){var n;if("%AsyncFunction%"===t)n=y("async function () {}");else if("%GeneratorFunction%"===t)n=y("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=y("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&C&&(n=C(r.prototype))}return I[t]=n,n}),"doEval"),P={__proto__:null,"%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"]},O=tut(),M=Dut(),R=O.call(E,Array.prototype.concat),N=O.call(T,Array.prototype.splice),F=O.call(E,String.prototype.replace),B=O.call(E,String.prototype.slice),j=O.call(E,RegExp.prototype.exec),U=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,q=H((function(e){var t=B(e,0,1),n=B(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var i=[];return F(e,U,(function(e,t,n,r){i[i.length]=n?F(r,V,"$1"):t||e})),i}),"stringToPath"),z=H((function(e,t){var n,i=e;if(M(P,i)&&(i="%"+(n=P[i])[0]+"%"),M(I,i)){var r=I[i];if(r===A&&(r=D(i)),void 0===r&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:r}}throw new s("intrinsic "+e+" does not exist!")}),"getBaseIntrinsic");return Alt=H((function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=q(e),i=n.length>0?n[0]:"",r=z("%"+i+"%",t),a=r.name,l=r.value,u=!1,c=r.alias;c&&(i=c[0],N(n,R([0,1],c)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],f=B(h,0,1),m=B(h,-1);if(('"'===f||"'"===f||"`"===f||'"'===m||"'"===m||"`"===m)&&f!==m)throw new s("property names with quotes must have matching quotes");if("constructor"!==h&&p||(u=!0),M(I,a="%"+(i+="."+h)+"%"))l=I[a];else if(null!=l){if(!(h in l)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(v&&d+1>=n.length){var g=v(l,h);l=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[h]}else p=M(l,h),l=l[h];p&&!u&&(I[a]=l)}}return l}),"GetIntrinsic"),Alt}
102function Out(){if($lt)return Ilt;$lt=1;var e=_ut(),t=out(),n=lut(),i=but();return Ilt=H((function(r,a,s){if(!r||"object"!=typeof r&&"function"!=typeof r)throw new n("`obj` must be an object or a function`");if("string"!=typeof a&&"symbol"!=typeof a)throw new n("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new n("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new n("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new n("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new n("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!i&&i(r,a);if(e)e(r,a,{configurable:null===u&&d?d.configurable:!u,enumerable:null===o&&d?d.enumerable:!o,value:s,writable:null===l&&d?d.writable:!l});else{if(!c&&(o||l||u))throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");r[a]=s}}),"defineDataProperty"),Ilt}function Mut(){if(Plt)return Dlt;Plt=1;var e=_ut(),t=H((function(){return!!e}),"hasPropertyDescriptors");return t.hasArrayLengthDefineBug=H((function(){if(!e)return null;try{return 1!==e([],"length",{value:1}).length}catch(tvt){return!0}}),"hasArrayLengthDefineBug"),Dlt=t}function Rut(){if(Mlt)return Olt;Mlt=1;var e=Put(),t=Out(),n=Mut()(),i=but(),r=lut(),a=e("%Math.floor%");return Olt=H((function(e,s){if("function"!=typeof e)throw new r("`fn` is not a function");if("number"!=typeof s||s<0||s>4294967295||a(s)!==s)throw new r("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],l=!0,u=!0;if("length"in e&&i){var c=i(e,"length");c&&!c.configurable&&(l=!1),c&&!c.writable&&(u=!1)}return(l||u||!o)&&(n?t(e,"length",s,!0,!0):t(e,"length",s)),e}),"setFunctionLength"),Olt}function Nut(){return Rlt||(Rlt=1,function(e){var t=tut(),n=Put(),i=Rut(),r=lut(),a=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(s,a),l=_ut(),u=n("%Math.max%");e.exports=H((function(e){if("function"!=typeof e)throw new r("a function is required");var n=o(t,s,arguments);return i(n,1+u(0,e.length-(arguments.length-1)),!0)}),"callBind");var c=H((function(){return o(t,a,arguments)}),"applyBind");l?l(e.exports,"apply",{value:c}):e.exports.apply=c}(Jlt)),Jlt.exports}function Fut(){if(Flt)return Nlt;Flt=1;var e=Object.prototype.toString;return Nlt=H((function(t){var n=e.call(t),i="[object Arguments]"===n;return i||(i="[object Array]"!==n&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),i}),"isArguments")}function But(){if(Hlt)return Blt;var e;if(Hlt=1,!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Fut(),r=Object.prototype.propertyIsEnumerable,a=!r.call({toString:null},"toString"),s=r.call((function(){}),"prototype"),o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=H((function(e){var t=e.constructor;return t&&t.prototype===e}),"equalsConstructorPrototype"),u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!u["$"+e]&&t.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{l(window[e])}catch(tvt){return!0}}catch(tvt){return!0}return!1}(),d=H((function(e){if("undefined"==typeof window||!c)return l(e);try{return l(e)}catch(tvt){return!1}}),"equalsConstructorPrototypeIfNotBuggy");e=H((function(e){var r=null!==e&&"object"==typeof e,l="[object Function]"===n.call(e),u=i(e),c=r&&"[object String]"===n.call(e),p=[];if(!r&&!l&&!u)throw new TypeError("Object.keys called on a non-object");var h=s&&l;if(c&&e.length>0&&!t.call(e,0))for(var f=0;f<e.length;++f)p.push(String(f));if(u&&e.length>0)for(var m=0;m<e.length;++m)p.push(String(m));else for(var g in e)h&&"prototype"===g||!t.call(e,g)||p.push(String(g));if(a)for(var y=d(e),v=0;v<o.length;++v)y&&"constructor"===o[v]||!t.call(e,o[v])||p.push(o[v]);return p}),"keys")}return Blt=e}function Hut(){if(Ult)return jlt;Ult=1;var e=Array.prototype.slice,t=Fut(),n=Object.keys,i=n?H((function(e){return n(e)}),"keys"):But(),r=Object.keys;return i.shim=H((function(){if(Object.keys){var n=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);n||(Object.keys=H((function(n){return t(n)?r(e.call(n)):r(n)}),"keys"))}else Object.keys=i;return Object.keys||i}),"shimObjectKeys"),jlt=i}function jut(){if(qlt)return Vlt;qlt=1;var e=Hut(),t="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),n=Object.prototype.toString,i=Array.prototype.concat,r=Out(),a=H((function(e){return"function"==typeof e&&"[object Function]"===n.call(e)}),"isFunction"),s=Mut()(),o=H((function(e,t,n,i){if(t in e)if(!0===i){if(e[t]===n)return}else if(!a(i)||!i())return;s?r(e,t,n,!0):r(e,t,n)}),"defineProperty"),l=H((function(n,r){var a=arguments.length>2?arguments[2]:{},s=e(r);t&&(s=i.call(s,Object.getOwnPropertySymbols(r)));for(var l=0;l<s.length;l+=1)o(n,s[l],r[s[l]],a[s[l]])}),"defineProperties");
102return l.supportsDescriptors=!!s,Vlt=l}function Uut(){return Wlt?zlt:(Wlt=1,zlt=H((function(){if("function"!=typeof Promise)throw new TypeError("`Promise.allSettled` requires a global `Promise` be available.")}),"requirePromise"))}function Vut(){if(Klt)return Glt;Klt=1;var e=Put(),t=Nut(),n=out(),i=e("%Promise.resolve%",!0),r=i&&t(i);return Glt=H((function(e,t){if(!r)throw new n("This environment does not support Promises.");return r(e,t)}),"PromiseResolve")}function qut(){return Zlt?Ylt:(Zlt=1,Ylt=H((function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}),"Type"))}function zut(){if(Qlt)return Xlt;Qlt=1;var e=qut();return Xlt=H((function(t){return"symbol"==typeof t?"Symbol":"bigint"==typeof t?"BigInt":e(t)}),"Type")}H(eut,"requireImplementation$5"),H(tut,"requireFunctionBind"),H(nut,"requireEsObjectAtoms"),H(iut,"requireEsErrors"),H(rut,"require_eval"),H(aut,"requireRange"),H(sut,"requireRef"),H(out,"requireSyntax"),H(lut,"requireType$3"),H(uut,"requireUri"),H(cut,"requireAbs"),H(dut,"requireFloor$1"),H(put,"requireMax"),H(hut,"requireMin"),H(fut,"requirePow"),H(mut,"requireRound"),H(gut,"require_isNaN$1"),H(yut,"requireSign"),H(vut,"requireGOPD"),H(but,"requireGopd"),H(_ut,"requireEsDefineProperty"),H(wut,"requireShams$1"),H(Sut,"requireHasSymbols"),H(Cut,"requireReflect_getPrototypeOf"),H(kut,"requireObject_getPrototypeOf"),H(xut,"requireFunctionCall"),H(Tut,"requireFunctionApply"),H(Eut,"requireReflectApply"),H(Aut,"requireActualApply"),H(Lut,"requireCallBindApplyHelpers"),H(Iut,"requireGet$2"),H($ut,"requireGetProto"),H(Dut,"requireHasown"),H(Put,"requireGetIntrinsic$1"),H(Out,"requireDefineDataProperty"),H(Mut,"requireHasPropertyDescriptors"),H(Rut,"requireSetFunctionLength"),H(Nut,"requireCallBind"),H(Fut,"requireIsArguments$1"),H(But,"requireImplementation$4"),H(Hut,"requireObjectKeys"),H(jut,"requireDefineProperties"),H(Uut,"requireRequirePromise"),H(Vut,"requirePromiseResolve$1"),H(qut,"requireType$2"),H(zut,"requireType$1");var Wut,Gut,Kut,Yut,Zut,Xut,Qut,Jut,ect,tct,nct,ict,rct,act,sct,oct,lct,uct,cct,dct,pct,hct,fct,mct,gct,yct,vct,bct,_ct,wct,Sct,Cct,kct,xct,Tct,Ect,Act,Lct,Ict,$ct,Dct,Pct,Oct,Mct,Rct,Nct,Fct,Bct,Hct,jct,Uct,Vct,qct,zct,Wct,Gct,Kct,Yct={exports:{}};function Zct(){if(Gut)return Wut;Gut=1;var e=wut();return Wut=H((function(){return e()&&!!Symbol.toStringTag}),"hasToStringTagShams")}function Xct(){if(Yut)return Kut;Yut=1;var e=Put(),t=Nut(),n=t(e("String.prototype.indexOf"));return Kut=H((function(i,r){var a=e(i,!!r);return"function"==typeof a&&n(i,".prototype.")>-1?t(a):a}),"callBoundIntrinsic")}function Qct(){if(Xut)return Zut;Xut=1;var e=Zct()(),t=Xct()("Object.prototype.toString"),n=H((function(n){return!(e&&n&&"object"==typeof n&&Symbol.toStringTag in n)&&"[object Arguments]"===t(n)}),"isArguments"),i=H((function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==t(e)&&"[object Function]"===t(e.callee)}),"isArguments"),r=function(){return n(arguments)}();return n.isLegacyArguments=i,Zut=r?n:i}function Jct(){if(Jut)return Qut;Jut=1;var e="function"==typeof Map&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=e&&t&&"function"==typeof t.get?t.get:null,i=e&&Map.prototype.forEach,r="function"==typeof Set&&Set.prototype,a=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=r&&a&&"function"==typeof a.get?a.get:null,o=r&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,u="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,c="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,p=Object.prototype.toString,h=Function.prototype.toString,f=String.prototype.match,m=String.prototype.slice,g=String.prototype.replace,y=String.prototype.toUpperCase,v=String.prototype.toLowerCase,b=RegExp.prototype.test,_=Array.prototype.concat,w=Array.prototype.join,S=Array.prototype.slice,C=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,x=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,E="function"==typeof Symbol&&"object"==typeof Symbol.iterator,A="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===E||"symbol")?Symbol.toStringTag:null,L=Object.prototype.propertyIsEnumerable,I=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function $(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||b.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var i=e<0?-C(-e):C(e);if(i!==e){var r=String(i),a=m.call(t,r.length+1);return g.call(r,n,"$&_")+"."+g.call(g.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return g.call(t,n,"$&_")}H($,"addNumericSeparator");var D=mv,P=D.custom,O=K(P)?P:null,M={__proto__:null,double:'"',single:"'"},R={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function N(e,t,n){var i=n.quoteStyle||t,r=M[i];return r+e+r}function F(e){return g.call(String(e),/"/g,""")}function B(e){return!A||!("object"==typeof e&&(A in e||void 0!==e[A]))}function j(e){return"[object Array]"===Q(e)&&B(e)}function U(e){return"[object Date]"===Q(e)&&B(e)}function V(e){return"[object RegExp]"===Q(e)&&B(e)}function q(e){return"[object Error]"===Q(e)&&B(e)}function z(e){return"[object String]"===Q(e)&&B(e)}function W(e){return"[object Number]"===Q(e)&&B(e)}function G(e){return"[object Boolean]"===Q(e)&&B(e)}function K(e){if(E)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;
102if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(tvt){}return!1}function Y(e){if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(tvt){}return!1}Qut=H((function e(t,r,a,l){var u=r||{};if(X(u,"quoteStyle")&&!X(M,u.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(X(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!X(u,"customInspect")||u.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(X(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(X(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return oe(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var h=String(t);return p?$(t,h):h}if("bigint"==typeof t){var f=String(t)+"n";return p?$(t,f):f}var y=void 0===u.depth?5:u.depth;if(void 0===a&&(a=0),a>=y&&y>0&&"object"==typeof t)return j(t)?"[Array]":"[Object]";var b=he(u,a);if(void 0===l)l=[];else if(ee(l,t)>=0)return"[Circular]";function C(t,n,i){if(n&&(l=S.call(l)).push(n),i){var r={depth:u.depth};return X(u,"quoteStyle")&&(r.quoteStyle=u.quoteStyle),e(t,r,a+1,l)}return e(t,u,a+1,l)}if(H(C,"inspect"),"function"==typeof t&&!V(t)){var x=J(t),P=me(t,C);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(P.length>0?" { "+w.call(P,", ")+" }":"")}if(K(t)){var R=E?g.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!=typeof t||E?R:ue(R)}if(se(t)){for(var B="<"+v.call(String(t.nodeName)),Z=t.attributes||[],le=0;le<Z.length;le++)B+=" "+Z[le].name+"="+N(F(Z[le].value),"double",u);return B+=">",t.childNodes&&t.childNodes.length&&(B+="..."),B+="</"+v.call(String(t.nodeName))+">"}if(j(t)){if(0===t.length)return"[]";var ge=me(t,C);return b&&!pe(ge)?"["+fe(ge,b)+"]":"[ "+w.call(ge,", ")+" ]"}if(q(t)){var ye=me(t,C);return"cause"in Error.prototype||!("cause"in t)||L.call(t,"cause")?0===ye.length?"["+String(t)+"]":"{ ["+String(t)+"] "+w.call(ye,", ")+" }":"{ ["+String(t)+"] "+w.call(_.call("[cause]: "+C(t.cause),ye),", ")+" }"}if("object"==typeof t&&c){if(O&&"function"==typeof t[O]&&D)return D(t,{depth:y-a});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(te(t)){var ve=[];return i&&i.call(t,(function(e,n){ve.push(C(n,t,!0)+" => "+C(e,t))})),de("Map",n.call(t),ve,b)}if(re(t)){var be=[];return o&&o.call(t,(function(e){be.push(C(e,t))})),de("Set",s.call(t),be,b)}if(ne(t))return ce("WeakMap");if(ae(t))return ce("WeakSet");if(ie(t))return ce("WeakRef");if(W(t))return ue(C(Number(t)));if(Y(t))return ue(C(k.call(t)));if(G(t))return ue(d.call(t));if(z(t))return ue(C(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==cv&&t===cv)return"{ [object globalThis] }";if(!U(t)&&!V(t)){var _e=me(t,C),we=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,Se=t instanceof Object?"":"null prototype",Ce=!we&&A&&Object(t)===t&&A in t?m.call(Q(t),8,-1):Se?"Object":"",ke=(we||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(Ce||Se?"["+w.call(_.call([],Ce||[],Se||[]),": ")+"] ":"");return 0===_e.length?ke+"{}":b?ke+"{"+fe(_e,b)+"}":ke+"{ "+w.call(_e,", ")+" }"}return String(t)}),"inspect_"),H(N,"wrapQuotes"),H(F,"quote"),H(B,"canTrustToString"),H(j,"isArray"),H(U,"isDate"),H(V,"isRegExp"),H(q,"isError"),H(z,"isString"),H(W,"isNumber"),H(G,"isBoolean"),H(K,"isSymbol"),H(Y,"isBigInt");var Z=Object.prototype.hasOwnProperty||function(e){return e in this};function X(e,t){return Z.call(e,t)}function Q(e){return p.call(e)}function J(e){if(e.name)return e.name;var t=f.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ee(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}function te(e){if(!n||!e||"object"!=typeof e)return!1;try{n.call(e);try{s.call(e)}catch(t){return!0}return e instanceof Map}catch(tvt){}return!1}function ne(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e,l);try{u.call(e,u)}catch(t){return!0}return e instanceof WeakMap}catch(tvt){}return!1}function ie(e){if(!c||!e||"object"!=typeof e)return!1;try{return c.call(e),!0}catch(tvt){}return!1}function re(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e);try{n.call(e)}catch(t){return!0}return e instanceof Set}catch(tvt){}return!1}function ae(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e,u);try{l.call(e,l)}catch(t){return!0}return e instanceof WeakSet}catch(tvt){}return!1}function se(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}function oe(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return oe(m.call(e,0,t.maxStringLength),t)+i}var r=R[t.quoteStyle||"single"];return r.lastIndex=0,N(g.call(g.call(e,r,"\\$1"),/[\x00-\x1f]/g,le),"single",t)}function le(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+y.call(t.toString(16))}function ue(e){return"Object("+e+")"}function ce(e){return e+" { ? }"}function de(e,t,n,i){return e+" ("+t+") {"+(i?fe(n,i):w.call(n,", "))+"}"}function pe(e){for(var t=0;t<e.length;t++)if(ee(e[t],"\n")>=0)return!1;return!0}function he(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=w.call(Array(e.indent+1)," ")}return{base:n,prev:w.call(Array(t+1),n)}}function fe(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+w.call(e,","+n)+"\n"+t.prev}function me(e,t){var n=j(e),i=[];if(n){i.length=e.length;for(var r=0;r<e.length;r++)i[r]=X(e,r)?t(e[r],e):""}var a,s="function"==typeof x?x(e):[];if(E){a={};for(var o=0;o<s.length;o++)a["$"+s[o]]=s[o]}for(var l in e)X(e,l)&&(n&&String(Number(l))===l&&l<e.length||E&&a["$"+l]instanceof Symbol||(b.call(/[^\w$]/,l)?i.push(t(l,e)+": "+t(e[l],e)):i.push(l+": "+t(e[l],e))));if("function"==typeof x)for(var u=0;u<s.length;u++)L.call(e,s[u])&&i.push("["+t(s[u])+"]: "+t(e[s[u]],e));return i}return H(X,"has"),H(Q,"toStr"),H(J,"nameOf"),H(ee,"indexOf"),H(te,"isMap"),H(ne,"isWeakMap"),H(ie,"isWeakRef"),H(re,"isSet"),H(ae,"isWeakSet"),H(se,"isElement"),H(oe,"inspectString"),H(le,"lowbyte"),H(ue,"markBoxed"),H(ce,"weakCollectionOf"),H(de,"collectionOf"),H(pe,"singleLineValues"),H(he,"getIndent"),H(fe,"indentedJoin"),H(me,"arrObjKeys"),Qut}function edt(){if(tct)return ect;tct=1;var e=Jct(),t=lut(),n=H((function(e,t,n){for(var i,r=e;null!=(i=r.next);r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i}),"listGetNode"),i=H((function(e,t){if(e){var i=n(e,t);return i&&i.value}}),"listGet"),r=H((function(e,t,i){var r=n(e,t);r?r.value=i:e.next={key:t,next:e.next,value:i}}),"listSet"),a=H((function(e,t){return!!e&&!!n(e,t)}),"listHas"),s=H((function(e,t){if(e)return n(e,t,!0)}),"listDelete");return ect=H((function(){var n,o={assert:H((function(n){if(!o.has(n))throw new t("Side channel does not contain "+e(n))}),"assert"),delete:H((function(e){var t=n&&n.next,i=s(n,e);return i&&t&&t===i&&(n=void 0),!!i}),"delete"),get:H((function(e){return i(n,e)}),"get"),has:H((function(e){return a(n,e)}),"has"),set:H((function(e,t){n||(n={next:void 0}),r(n,e,t)}),"set")};return o}
102),"getSideChannelList")}function tdt(){if(ict)return nct;ict=1;var e=Put(),t=Lut(),n=t([e("%String.prototype.indexOf%")]);return nct=H((function(i,r){var a=e(i,!!r);return"function"==typeof a&&n(i,".prototype.")>-1?t([a]):a}),"callBoundIntrinsic")}function ndt(){if(act)return rct;act=1;var e=Put(),t=tdt(),n=Jct(),i=lut(),r=e("%Map%",!0),a=t("Map.prototype.get",!0),s=t("Map.prototype.set",!0),o=t("Map.prototype.has",!0),l=t("Map.prototype.delete",!0),u=t("Map.prototype.size",!0);return rct=!!r&&H((function(){var e,t={assert:H((function(e){if(!t.has(e))throw new i("Side channel does not contain "+n(e))}),"assert"),delete:H((function(t){if(e){var n=l(e,t);return 0===u(e)&&(e=void 0),n}return!1}),"delete"),get:H((function(t){if(e)return a(e,t)}),"get"),has:H((function(t){return!!e&&o(e,t)}),"has"),set:H((function(t,n){e||(e=new r),s(e,t,n)}),"set")};return t}),"getSideChannelMap")}function idt(){if(oct)return sct;oct=1;var e=Put(),t=tdt(),n=Jct(),i=ndt(),r=lut(),a=e("%WeakMap%",!0),s=t("WeakMap.prototype.get",!0),o=t("WeakMap.prototype.set",!0),l=t("WeakMap.prototype.has",!0),u=t("WeakMap.prototype.delete",!0);return sct=a?H((function(){var e,t,c={assert:H((function(e){if(!c.has(e))throw new r("Side channel does not contain "+n(e))}),"assert"),delete:H((function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(i&&t)return t.delete(n);return!1}),"delete"),get:H((function(n){return a&&n&&("object"==typeof n||"function"==typeof n)&&e?s(e,n):t&&t.get(n)}),"get"),has:H((function(n){return a&&n&&("object"==typeof n||"function"==typeof n)&&e?l(e,n):!!t&&t.has(n)}),"has"),set:H((function(n,r){a&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new a),o(e,n,r)):i&&(t||(t=i()),t.set(n,r))}),"set")};return c}),"getSideChannelWeakMap"):i}function rdt(){if(uct)return lct;uct=1;var e=lut(),t=Jct(),n=edt(),i=ndt(),r=idt()||i||n;return lct=H((function(){var n,i={assert:H((function(n){if(!i.has(n))throw new e("Side channel does not contain "+t(n))}),"assert"),delete:H((function(e){return!!n&&n.delete(e)}),"delete"),get:H((function(e){return n&&n.get(e)}),"get"),has:H((function(e){return!!n&&n.has(e)}),"has"),set:H((function(e,t){n||(n=r()),n.set(e,t)}),"set")};return i}),"getSideChannel")}function adt(){if(dct)return cct;dct=1;var e=Dut(),t=rdt()(),n=lut(),i={assert:H((function(e,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new n("`O` is not an object");if("string"!=typeof r)throw new n("`slot` must be a string");if(t.assert(e),!i.has(e,r))throw new n("`"+r+"` is not present on `O`")}),"assert"),get:H((function(e,i){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new n("`O` is not an object");if("string"!=typeof i)throw new n("`slot` must be a string");var r=t.get(e);return r&&r["$"+i]}),"get"),has:H((function(i,r){if(!i||"object"!=typeof i&&"function"!=typeof i)throw new n("`O` is not an object");if("string"!=typeof r)throw new n("`slot` must be a string");var a=t.get(i);return!!a&&e(a,"$"+r)}),"has"),set:H((function(e,i,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new n("`O` is not an object");if("string"!=typeof i)throw new n("`slot` must be a string");var a=t.get(e);a||(a={},t.set(e,a)),a["$"+i]=r}),"set")};return Object.freeze&&Object.freeze(i),cct=i}function sdt(){if(hct)return pct;hct=1;var e=adt(),t=SyntaxError,n="object"==typeof StopIteration?StopIteration:null;return pct=H((function(i){if(!n)throw new t("this environment lacks StopIteration");e.set(i,"[[Done]]",!1);var r={next:H((function(){var t=e.get(this,"[[Iterator]]"),i=e.get(t,"[[Done]]");try{return{done:i,value:i?void 0:t.next()}}catch(tvt){if(e.set(t,"[[Done]]",!0),tvt!==n)throw tvt;return{done:!0,value:void 0}}}),"next")};return e.set(r,"[[Iterator]]",i),r}),"getStopIterationIterator")}
102function odt(){if(mct)return fct;mct=1;var e={}.toString;return fct=Array.isArray||function(t){return"[object Array]"==e.call(t)}}function ldt(){if(yct)return gct;yct=1;var e=String.prototype.valueOf,t=H((function(t){try{return e.call(t),!0}catch(tvt){return!1}}),"tryStringObject"),n=Object.prototype.toString,i=Zct()();return gct=H((function(e){return"string"==typeof e||"object"==typeof e&&(i?t(e):"[object String]"===n.call(e))}),"isString")}function udt(){if(bct)return vct;bct=1;var e,t="function"==typeof Map&&Map.prototype?Map:null,n="function"==typeof Set&&Set.prototype?Set:null;t||(e=H((function(e){return!1}),"isMap"));var i=t?Map.prototype.has:null,r=n?Set.prototype.has:null;return e||i||(e=H((function(e){return!1}),"isMap")),vct=e||H((function(e){if(!e||"object"!=typeof e)return!1;try{if(i.call(e),r)try{r.call(e)}catch(tvt){return!0}return e instanceof t}catch(tvt){}return!1}),"isMap")}function cdt(){if(wct)return _ct;wct=1;var e,t="function"==typeof Map&&Map.prototype?Map:null,n="function"==typeof Set&&Set.prototype?Set:null;n||(e=H((function(e){return!1}),"isSet"));var i=t?Map.prototype.has:null,r=n?Set.prototype.has:null;return e||r||(e=H((function(e){return!1}),"isSet")),_ct=e||H((function(e){if(!e||"object"!=typeof e)return!1;try{if(r.call(e),i)try{i.call(e)}catch(tvt){return!0}return e instanceof n}catch(tvt){}return!1}),"isSet")}function ddt(){if(Sct)return Yct.exports;Sct=1;var e=Qct(),t=sdt();if(Sut()()||wut()()){var n=Symbol.iterator;Yct.exports=H((function(t){return null!=t&&void 0!==t[n]?t[n]():e(t)?Array.prototype[n].call(t):void 0}),"getIterator")}else{var i=odt(),r=ldt(),a=Put(),s=a("%Map%",!0),o=a("%Set%",!0),l=Xct(),u=l("Array.prototype.push"),c=l("String.prototype.charCodeAt"),d=l("String.prototype.slice"),p=H((function(e,t){if(t+1>=e.length)return t+1;var n=c(e,t);if(n<55296||n>56319)return t+1;var i=c(e,t+1);return i<56320||i>57343?t+1:t+2}),"advanceStringIndex"),h=H((function(e){var t=0;return{next:H((function(){var n,i=t>=e.length;return i||(n=e[t],t+=1),{done:i,value:n}}),"next")}}),"getArrayIterator"),f=H((function(t,n){if(i(t)||e(t))return h(t);if(r(t)){var a=0;return{next:H((function(){var e=p(t,a),n=d(t,a,e);return a=e,{done:e>t.length,value:n}}),"next")}}return n&&void 0!==t["_es6-shim iterator_"]?t["_es6-shim iterator_"]():void 0}),"getNonCollectionIterator");if(s||o){var m=udt(),g=cdt(),y=l("Map.prototype.forEach",!0),v=l("Set.prototype.forEach",!0);if("undefined"==typeof process||!process.versions||!process.versions.node)var b=l("Map.prototype.iterator",!0),_=l("Set.prototype.iterator",!0);var w=l("Map.prototype.@@iterator",!0)||l("Map.prototype._es6-shim iterator_",!0),S=l("Set.prototype.@@iterator",!0)||l("Set.prototype._es6-shim iterator_",!0),C=H((function(e){if(m(e)){if(b)return t(b(e));if(w)return w(e);if(y){var n=[];return y(e,(function(e,t){u(n,[t,e])})),h(n)}}if(g(e)){if(_)return t(_(e));if(S)return S(e);if(v){var i=[];return v(e,(function(e){u(i,e)})),h(i)}}}),"getCollectionIterator");Yct.exports=H((function(e){return C(e)||f(e)}),"getIterator")}else Yct.exports=H((function(e){if(null!=e)return f(e,!0)}),"getIterator")}return Yct.exports}function pdt(){if(kct)return Cct;kct=1;var e=TypeError;return Cct=H((function(t){if(!t||"function"!=typeof t.next)throw new e("iterator must be an object with a `next` method");if(arguments.length>1){var n=arguments[1];if("function"!=typeof n)throw new e("`callback`, if provided, must be a function")}for(var i,r=n||[];(i=t.next())&&!i.done;)n?n(i.value):r.push(i.value);if(!n)return r}),"iterateIterator"),Cct}function hdt(){if(Tct)return xct;Tct=1;var e=ddt(),t=TypeError,n=pdt();return xct=H((function(i){var r=e(i);if(!r)throw new t("non-iterable value provided");return arguments.length>1?n(r,arguments[1]):n(r)}),"iterateValue"),xct}function fdt(){if(Act)return Ect;Act=1;var e=lut();return Ect=H((function(t){if(null==t)throw new e(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t}),"RequireObjectCoercible"),Ect}function mdt(){return Ict?Lct:(Ict=1,Lct=fdt())}function gdt(){return Dct||(Dct=1,$ct=Number.isNaN||H((function(e){return e!=e}),"isNaN")),$ct}function ydt(){if(Oct)return Pct;Oct=1;var e=gdt();return Pct=H((function(t){return("number"==typeof t||"bigint"==typeof t)&&!e(t)&&t!==1/0&&t!==-1/0}),"_isFinite")}function vdt(){if(Rct)return Mct;Rct=1;var e=Put(),t=e("%Math.abs%"),n=e("%Math.floor%"),i=gdt(),r=ydt();return Mct=H((function(e){if("number"!=typeof e||i(e)||!r(e))return!1;var a=t(e);return n(a)===a}),"isInteger")}function bdt(){if(Fct)return Nct;Fct=1;var e={__proto__:null,foo:{}},t=Object;return Nct=H((function(){return{__proto__:e}.foo===e.foo&&!(e instanceof t)}),"hasProto")}function _dt(){if(Hct)return Bct;Hct=1;var e=Put(),t=e("%Array.prototype%"),n=aut(),i=out(),r=lut(),a=vdt(),s=Math.pow(2,32)-1,o=bdt()(),l=e("%Object.setPrototypeOf%",!0)||(o?function(e,t){return e.__proto__=t,e}:null);return Bct=H((function(e){if(!a(e)||e<0)throw new r("Assertion failed: `length` must be an integer Number >= 0");if(e>s)throw new n("length is greater than (2**32 - 1)");var o=arguments.length>1?arguments[1]:t,u=[];if(o!==t){if(!l)throw new i("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");l(u,o)}return 0!==e&&(u.length=e),u}),"ArrayCreate"),Bct}function wdt(){return Uct?jct:(Uct=1,jct=H((function(e){return"string"==typeof e||"symbol"==typeof e}),"IsPropertyKey"))}function Sdt(){if(qct)return Vct;qct=1;var e=lut(),t=Jct(),n=wdt(),i=zut();
102return Vct=H((function(r,a){if("Object"!==i(r))throw new e("Assertion failed: Type(O) is not Object");if(!n(a))throw new e("Assertion failed: IsPropertyKey(P) is not true, got "+t(a));return r[a]}),"Get")}function Cdt(){if(Wct)return zct;Wct=1;var e=Put()("%Array%"),t=!e.isArray&&Xct()("Object.prototype.toString");return zct=e.isArray||H((function(e){return"[object Array]"===t(e)}),"IsArray")}function kdt(){return Kct?Gct:(Kct=1,Gct=Cdt())}H(Zct,"requireShams"),H(Xct,"requireCallBound$1"),H(Qct,"requireIsArguments"),H(Jct,"requireObjectInspect"),H(edt,"requireSideChannelList"),H(tdt,"requireCallBound"),H(ndt,"requireSideChannelMap"),H(idt,"requireSideChannelWeakmap"),H(rdt,"requireSideChannel"),H(adt,"requireInternalSlot"),H(sdt,"requireStopIterationIterator"),H(odt,"requireIsarray"),H(ldt,"requireIsString"),H(udt,"requireIsMap"),H(cdt,"requireIsSet"),H(ddt,"requireEsGetIterator"),H(pdt,"requireIterateIterator"),H(hdt,"requireIterateValue"),H(fdt,"requireRequireObjectCoercible$1"),H(mdt,"requireRequireObjectCoercible"),H(gdt,"require_isNaN"),H(ydt,"require_isFinite"),H(vdt,"requireIsInteger"),H(bdt,"requireHasProto"),H(_dt,"requireArrayCreate"),H(wdt,"requireIsPropertyKey$1"),H(Sdt,"requireGet$1"),H(Cdt,"requireIsArray$2"),H(kdt,"requireIsArray$1");var xdt,Tdt,Edt,Adt,Ldt,Idt,$dt,Ddt,Pdt,Odt,Mdt,Rdt,Ndt,Fdt,Bdt,Hdt,jdt,Udt,Vdt,qdt,zdt,Wdt,Gdt,Kdt,Ydt,Zdt,Xdt,Qdt,Jdt,ept,tpt,npt,ipt,rpt,apt,spt,opt,lpt,upt,cpt,dpt,ppt,hpt,fpt,mpt,gpt,ypt,vpt,bpt,_pt,wpt,Spt,Cpt,kpt,xpt,Tpt,Ept,Apt={exports:{}};function Lpt(){return Tdt?xdt:(Tdt=1,xdt=Put())}function Ipt(){if(Adt)return Edt;Adt=1;var e=lut(),t=Dut(),n={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};return Edt=H((function(i){if(!i||"object"!=typeof i)return!1;for(var r in i)if(t(i,r)&&!n[r])return!1;var a=t(i,"[[Value]]")||t(i,"[[Writable]]"),s=t(i,"[[Get]]")||t(i,"[[Set]]");if(a&&s)throw new e("Property Descriptors may not be both accessor and data descriptors");return!0}),"isPropertyDescriptor")}function $pt(){if(Idt)return Ldt;Idt=1;var e=Mut(),t=_ut(),n=e.hasArrayLengthDefineBug(),i=n&&Cdt(),r=Xct()("Object.prototype.propertyIsEnumerable");return Ldt=H((function(e,a,s,o,l,u){if(!t){if(!e(u))return!1;if(!u["[[Configurable]]"]||!u["[[Writable]]"])return!1;if(l in o&&r(o,l)!==!!u["[[Enumerable]]"])return!1;var c=u["[[Value]]"];return o[l]=c,a(o[l],c)}return n&&"length"===l&&"[[Value]]"in u&&i(o)&&o.length!==u["[[Value]]"]?(o.length=u["[[Value]]"],o.length===u["[[Value]]"]):(t(o,l,s(u)),!0)}),"DefineOwnProperty")}function Dpt(){return Ddt?$dt:(Ddt=1,$dt=H((function(e){if(void 0===e)return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t}),"fromPropertyDescriptor"))}function Ppt(){if(Odt)return Pdt;Odt=1;var e=lut(),t=Ipt(),n=Dpt();return Pdt=H((function(i){if(void 0!==i&&!t(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return n(i)}),"FromPropertyDescriptor")}function Opt(){if(Rdt)return Mdt;Rdt=1;var e=lut(),t=Dut(),n=Ipt();return Mdt=H((function(i){if(void 0===i)return!1;if(!n(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!(!t(i,"[[Value]]")&&!t(i,"[[Writable]]"))}),"IsDataDescriptor")}function Mpt(){if(Fdt)return Ndt;Fdt=1;var e=gdt();return Ndt=H((function(t,n){return t===n?0!==t||1/t==1/n:e(t)&&e(n)}),"SameValue")}function Rpt(){return Hdt?Bdt:(Hdt=1,Bdt=H((function(e){return!!e}),"ToBoolean"))}function Npt(){if(Udt)return jdt;Udt=1;var e,t,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:H((function(){throw t}),"get")}),t={},i((function(){throw 42}),null,e)}catch(p){p!==t&&(i=null)}else i=null;var r=/^\s*class\b/,a=H((function(e){try{var t=n.call(e);return r.test(t)}catch(tvt){return!1}}),"isES6ClassFunction"),s=H((function(e){try{return!a(e)&&(n.call(e),!0)}catch(tvt){return!1}}),"tryFunctionToStr"),o=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),c=H((function(){return!1}),"isDocumentDotAll");if("object"==typeof document){var d=document.all;
102o.call(d)===o.call(document.all)&&(c=H((function(e){if((u||!e)&&(void 0===e||"object"==typeof e))try{var t=o.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(tvt){}return!1}),"isDocumentDotAll"))}return jdt=H(i?function(n){if(c(n))return!0;if(!n)return!1;if("function"!=typeof n&&"object"!=typeof n)return!1;try{i(n,null,e)}catch(tvt){if(tvt!==t)return!1}return!a(n)&&s(n)}:function(e){if(c(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(l)return s(e);if(a(e))return!1;var t=o.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)},"isCallable")}function Fpt(){return qdt?Vdt:(qdt=1,Vdt=Npt())}function Bpt(){if(Wdt)return zdt;Wdt=1;var e=Dut(),t=lut(),n=zut(),i=Rpt(),r=Fpt();return zdt=H((function(a){if("Object"!==n(a))throw new t("ToPropertyDescriptor requires an object");var s={};if(e(a,"enumerable")&&(s["[[Enumerable]]"]=i(a.enumerable)),e(a,"configurable")&&(s["[[Configurable]]"]=i(a.configurable)),e(a,"value")&&(s["[[Value]]"]=a.value),e(
102a,"writable")&&(s["[[Writable]]"]=i(a.writable)),e(a,"get")){var o=a.get;if(void 0!==o&&!r(o))throw new t("getter must be a function");s["[[Get]]"]=o}if(e(a,"set")){var l=a.set;if(void 0!==l&&!r(l))throw new t("setter must be a function");s["[[Set]]"]=l}if((e(s,"[[Get]]")||e(s,"[[Set]]"))&&(e(s,"[[Value]]")||e(s,"[[Writable]]")))throw new t("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return s}),"ToPropertyDescriptor")}function Hpt(){if(Kdt)return Gdt;Kdt=1;var e=lut(),t=Ipt(),n=$pt(),i=Ppt(),r=Opt(),a=wdt(),s=Mpt(),o=Bpt(),l=zut();return Gdt=H((function(u,c,d){if("Object"!==l(u))throw new e("Assertion failed: Type(O) is not Object");if(!a(c))throw new e("Assertion failed: IsPropertyKey(P) is not true");var p=t(d)?d:o(d);if(!t(p))throw new e("Assertion failed: Desc is not a valid Property Descriptor");return n(r,s,i,u,c,p)}),"DefinePropertyOrThrow")}function jpt(){if(Ydt)return Apt.exports;Ydt=1;var e=Lpt()("%Reflect.construct%",!0),t=Hpt();try{t({},"",{"[[Get]]":H((function(){}),"[[Get]]")})}catch(tvt){t=null}if(t&&e){var n={},i={};t(i,"length",{"[[Get]]":H((function(){throw n}),"[[Get]]"),"[[Enumerable]]":!0}),Apt.exports=H((function(t){try{e(t,i)}catch(r){return r===n}}),"IsConstructor")}else Apt.exports=H((function(e){return"function"==typeof e&&!!e.prototype}),"IsConstructor");return Apt.exports}function Upt(){if(Xdt)return Zdt;Xdt=1;var e=Put()("%Symbol.species%",!0),t=lut(),n=_dt(),i=Sdt(),r=kdt(),a=jpt(),s=zut(),o=vdt();return Zdt=H((function(l,u){if(!o(u)||u<0)throw new t("Assertion failed: length must be an integer >= 0");if(!r(l))return n(u);var c=i(l,"constructor");if(e&&"Object"===s(c)&&null===(c=i(c,e))&&(c=void 0),void 0===c)return n(u);if(!a(c))throw new t("C must be a constructor");return new c(u)}),"ArraySpeciesCreate")}function Vpt(){if(Jdt)return Qdt;Jdt=1;var e=Put(),t=Xct(),n=lut(),i=kdt(),r=e("%Reflect.apply%",!0)||t("Function.prototype.apply");return Qdt=H((function(e,t){var a=arguments.length>2?arguments[2]:[];if(!i(a))throw new n("Assertion failed: optional `argumentsList`, if provided, must be a List");return r(e,t,a)}),"Call"),Qdt}function qpt(){if(tpt)return ept;tpt=1;var e=lut(),t=Dut(),n=Ipt();return ept=H((function(i){if(void 0===i)return!1;if(!n(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!(!t(i,"[[Get]]")&&!t(i,"[[Set]]"))}),"IsAccessorDescriptor")}function zpt(){return ipt?npt:(ipt=1,npt=H((function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}),"isPrimitive"))}function Wpt(){if(apt)return rpt;apt=1;var e=Put(),t=e("%Object.preventExtensions%",!0),n=e("%Object.isExtensible%",!0),i=zpt();return rpt=H(t?function(e){return!i(e)&&n(e)}:function(e){return!i(e)},"IsExtensible")}function Gpt(){if(opt)return spt;opt=1;var e=Ipt();return spt=H((function(t,n){return e(n)&&"object"==typeof n&&"[[Enumerable]]"in n&&"[[Configurable]]"in n&&(t.IsAccessorDescriptor(n)||t.IsDataDescriptor(n))}),"isFullyPopulatedPropertyDescriptor")}function Kpt(){if(upt)return lpt;upt=1;var e=lut(),t=qpt(),n=Opt(),i=Ipt();return lpt=H((function(r){if(void 0===r)return!1;if(!i(r))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!t(r)&&!n(r)}),"IsGenericDescriptor")}function Ypt(){if(dpt)return cpt;dpt=1;var e=lut(),t=$pt(),n=Gpt(),i=Ipt(),r=Ppt(),a=qpt(),s=Opt(),o=Kpt(),l=wdt(),u=Mpt(),c=zut();return cpt=H((function(d,p,h,f,m){var g,y,v=c(d);if("Undefined"!==v&&"Object"!==v)throw new e("Assertion failed: O must be undefined or an Object");if(!l(p))throw new e("Assertion failed: P must be a Property Key");if("boolean"!=typeof h)throw new e("Assertion failed: extensible must be a Boolean");if(!i(f))throw new e("Assertion failed: Desc must be a Property Descriptor");if(void 0!==m&&!i(m))throw new e("Assertion failed: current must be a Property Descriptor, or undefined");if(void 0===m)return!!h&&("Undefined"===v||(a(f)?t(s,u,r,d,p,f):t(s,u,r,d,p,{"[[Configurable]]":!!f["[[Configurable]]"],"[[Enumerable]]":!!f["[[Enumerable]]"],"[[Value]]":f["[[Value]]"],"[[Writable]]":!!f["[[Writable]]"]})));if(!n({IsAccessorDescriptor:a,IsDataDescriptor:s},m))throw new e("`current`, when present, must be a fully populated and valid Property Descriptor");if(!m["[[Configurable]]"]){if("[[Configurable]]"in f&&f["[[Configurable]]"])return!1;if("[[Enumerable]]"in f&&!u(f["[[Enumerable]]"],m["[[Enumerable]]"]))return!1;if(!o(f)&&!u(a(f),a(m)))return!1;if(a(m)){if("[[Get]]"in f&&!u(f["[[Get]]"],m["[[Get]]"]))return!1;if("[[Set]]"in f&&!u(f["[[Set]]"],m["[[Set]]"]))return!1}else if(!m["[[Writable]]"]){if("[[Writable]]"in f&&f["[[Writable]]"])return!1;if("[[Value]]"in f&&!u(f["[[Value]]"],m["[[Value]]"]))return!1}}return"Undefined"===v||(s(m)&&a(f)?(g=("[[Configurable]]"in f?f:m)["[[Configurable]]"],y=("[[Enumerable]]"in f?f:m)["[[Enumerable]]"],t(s,u,r,d,p,{"[[Configurable]]":!!g,"[[Enumerable]]":!!y,"[[Get]]":("[[Get]]"in f?f:m)["[[Get]]"],"[[Set]]":("[[Set]]"in f?f:m)["[[Set]]"]})):a(m)&&s(f)?(g=("[[Configurable]]"in f?f:m)["[[Configurable]]"],y=("[[Enumerable]]"in f?f:m)["[[Enumerable]]"],t(s,u,r,d,p,{"[[Configurable]]":!!g,"[[Enumerable]]":!!y,"[[Value]]":("[[Value]]"in f?f:m)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in f?f:m)["[[Writable]]"]})):t(s,u,r,d,p,f))}),"ValidateAndApplyPropertyDescriptor")}function Zpt(){if(hpt)return ppt;hpt=1;var e=but(),t=out(),n=lut(),i=Ipt(),r=qpt(),a=Wpt(),s=wdt(),o=Bpt(),l=Mpt(),u=zut(),c=Ypt();return ppt=H((function(d,p,h){if("Object"!==u(d))throw new n("Assertion failed: O must be an Object");
102if(!s(p))throw new n("Assertion failed: P must be a Property Key");if(!i(h))throw new n("Assertion failed: Desc must be a Property Descriptor");if(!e){if(r(h))throw new t("This environment does not support accessor property descriptors.");var f=!(p in d)&&h["[[Writable]]"]&&h["[[Enumerable]]"]&&h["[[Configurable]]"]&&"[[Value]]"in h,m=p in d&&(!("[[Configurable]]"in h)||h["[[Configurable]]"])&&(!("[[Enumerable]]"in h)||h["[[Enumerable]]"])&&(!("[[Writable]]"in h)||h["[[Writable]]"])&&"[[Value]]"in h;if(f||m)return d[p]=h["[[Value]]"],l(d[p],h["[[Value]]"]);throw new t("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var g=e(d,p),y=g&&o(g),v=a(d);return c(d,p,v,h,y)}),"OrdinaryDefineOwnProperty")}function Xpt(){if(mpt)return fpt;mpt=1;var e=lut(),t=wdt(),n=Zpt(),i=zut();return fpt=H((function(r,a,s){if("Object"!==i(r))throw new e("Assertion failed: Type(O) is not Object");if(!t(a))throw new e("Assertion failed: IsPropertyKey(P) is not true");return n(r,a,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":s,"[[Writable]]":!0})}),"CreateDataProperty")}function Qpt(){if(ypt)return gpt;ypt=1;var e=lut(),t=Xpt(),n=wdt(),i=zut();return gpt=H((function(r,a,s){if("Object"!==i(r))throw new e("Assertion failed: Type(O) is not Object");if(!n(a))throw new e("Assertion failed: IsPropertyKey(P) is not true");if(!t(r,a,s))throw new e("unable to create data property")}),"CreateDataPropertyOrThrow")}function Jpt(){if(bpt)return vpt;bpt=1;var e=lut(),t=wdt(),n=zut();return vpt=H((function(i,r){if("Object"!==n(i))throw new e("Assertion failed: `O` must be an Object");if(!t(r))throw new e("Assertion failed: `P` must be a Property Key");return r in i}),"HasProperty")}function eht(){if(wpt)return _pt;wpt=1;var e=Math.floor;return _pt=H((function(t,n){var i=t%n;return e(i>=0?i:i+n)}),"mod")}function tht(){if(Cpt)return Spt;Cpt=1;var e=eht();return Spt=H((function(t,n){return e(t,n)}),"modulo")}function nht(){return xpt?kpt:(xpt=1,kpt=H((function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}),"isPrimitive"))}function iht(){if(Ept)return Tpt;Ept=1;var e=Date.prototype.getDay,t=H((function(t){try{return e.call(t),!0}catch(tvt){return!1}}),"tryDateGetDayCall"),n=Object.prototype.toString,i=Zct()();return Tpt=H((function(e){return"object"==typeof e&&null!==e&&(i?t(e):"[object Date]"===n.call(e))}),"isDateObject")}H(Lpt,"requireGetIntrinsic"),H(Ipt,"requirePropertyDescriptor"),H($pt,"requireDefineOwnProperty"),H(Dpt,"requireFromPropertyDescriptor$2"),H(Ppt,"requireFromPropertyDescriptor$1"),H(Opt,"requireIsDataDescriptor$1"),H(Mpt,"requireSameValue$1"),H(Rpt,"requireToBoolean$1"),H(Npt,"requireIsCallable$2"),H(Fpt,"requireIsCallable$1"),H(Bpt,"requireToPropertyDescriptor$1"),H(Hpt,"requireDefinePropertyOrThrow"),H(jpt,"requireIsConstructor"),H(Upt,"requireArraySpeciesCreate"),H(Vpt,"requireCall$1"),H(qpt,"requireIsAccessorDescriptor$1"),H(zpt,"requireIsPrimitive$1"),H(Wpt,"requireIsExtensible$1"),H(Gpt,"requireIsFullyPopulatedPropertyDescriptor"),H(Kpt,"requireIsGenericDescriptor$1"),H(Ypt,"requireValidateAndApplyPropertyDescriptor$1"),H(Zpt,"requireOrdinaryDefineOwnProperty$1"),H(Xpt,"requireCreateDataProperty$1"),H(Qpt,"requireCreateDataPropertyOrThrow$1"),H(Jpt,"requireHasProperty"),H(eht,"requireMod"),H(tht,"requireModulo"),H(nht,"requireIsPrimitive"),H(iht,"requireIsDateObject");var rht,aht,sht,oht,lht,uht,cht,dht,pht,hht,fht,mht,ght,yht,vht,bht,_ht,wht,Sht,Cht,kht,xht,Tht,Eht,Aht,Lht,Iht,$ht,Dht,Pht,Oht,Mht,Rht,Nht,Fht,Bht,Hht,jht,Uht,Vht,qht,zht,Wht,Ght,Kht,Yht,Zht,Xht,Qht,Jht,eft,tft,nft,ift={exports:{}};function rft(){if(rht)return ift.exports;rht=1;var e=Object.prototype.toString;if(Sut()()){var t=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,i=H((function(e){return"symbol"==typeof e.valueOf()&&n.test(t.call(e))}),"isRealSymbolObject");ift.exports=H((function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==e.call(t))return!1;try{return i(t)}catch(tvt){return!1}}),"isSymbol")}else ift.exports=H((function(e){return!1}),"isSymbol");return ift.exports}function aft(){if(sht)return aht;sht=1;var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,t=nht(),n=Npt(),i=iht(),r=rft(),a=H((function(e,i){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof i||"number"!==i&&"string"!==i)throw new TypeError('hint must be "string" or "number"');var r,a,s,o="string"===i?["toString","valueOf"]:["valueOf","toString"];for(s=0;s<o.length;++s)if(r=e[o[s]],n(r)&&(a=r.call(e),t(a)))return a;throw new TypeError("No default value")}),"OrdinaryToPrimitive"),s=H((function(e,t){var i=e[t];if(null!=i){if(!n(i))throw new TypeError(i+" returned for property "+t+" of object "+e+" is not a function");return i}}),"GetMethod");return aht=H((function(n){if(t(n))return n;var o,l="default";if(arguments.length>1&&(arguments[1]===String?l="string":arguments[1]===Number&&(l="number")),e&&(Symbol.toPrimitive?o=s(n,Symbol.toPrimitive):r
102(n)&&(o=Symbol.prototype.valueOf)),void 0!==o){var u=o.call(n,l);if(t(u))return u;throw new TypeError("unable to convert exotic object to primitive")}return"default"===l&&(i(n)||r(n))&&(l="string"),a(n,"default"===l?"number":l)}),"ToPrimitive"),aht}function sft(){if(lht)return oht;lht=1;var e=aft();return oht=H((function(t){return arguments.length>1?e(t,arguments[1]):e(t)}),"ToPrimitive"),oht}function oft(){if(cht)return uht;cht=1;var e,t,n,i,r=Xct(),a=Zct()();if(a){e=r("Object.prototype.hasOwnProperty"),t=r("RegExp.prototype.exec"),n={};var s=H((function(){throw n}),"throwRegexMarker");i={toString:s,valueOf:s},"symbol"==typeof Symbol.toPrimitive&&(i[Symbol.toPrimitive]=s)}var o=r("Object.prototype.toString"),l=Object.getOwnPropertyDescriptor;return uht=H(a?function(r){if(!r||"object"!=typeof r)return!1;var a=l(r,"lastIndex");if(!(a&&e(a,"value")))return!1;try{t(r,i)}catch(tvt){return tvt===n}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===o(e)},"isRegex")}function lft(){if(pht)return dht;pht=1;var e=Xct(),t=oft(),n=e("RegExp.prototype.exec"),i=lut();return dht=H((function(e){if(!t(e))throw new i("`regex` must be a RegExp");return H((function(t){return null!==n(e,t)}),"test")}),"regexTester")}function uft(){if(fht)return hht;fht=1;var e=Put()("%String%"),t=lut();return hht=H((function(n){if("symbol"==typeof n)throw new t("Cannot convert a Symbol value to a string");return e(n)}),"ToString")}
102function cft(){if(ght)return mht;ght=1;var e=fdt(),t=uft(),n=Xct()("String.prototype.replace"),i=/^\s$/.test("á "),r=i?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,a=i?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;return mht=H((function(){var i=t(e(this));return n(n(i,r,""),a,"")}),"trim")}function dft(){if(vht)return yht;vht=1;var e=cft(),t="á ";return yht=H((function(){return String.prototype.trim&&"â"==="â".trim()&&t.trim()===t&&"_á "==="_á ".trim()&&"á _"==="á _".trim()?String.prototype.trim:e}),"getPolyfill")}function pft(){if(_ht)return bht;_ht=1;var e=jut(),t=dft();return bht=H((function(){var n=t();return e(String.prototype,{trim:n},{trim:H((function(){return String.prototype.trim!==n}),"testTrim")}),n}),"shimStringTrim")}function hft(){if(Sht)return wht;Sht=1;var e=Nut(),t=jut(),n=fdt(),i=cft(),r=dft(),a=pft(),s=e(r()),o=H((function(e){return n(e),s(e)}),"trim");return t(o,{getPolyfill:r,implementation:i,shim:a}),wht=o}function fft(){if(kht)return Cht;kht=1;var e=Put(),t=e("%Number%"),n=e("%RegExp%"),i=lut(),r=e("%parseInt%"),a=Xct(),s=lft(),o=a("String.prototype.slice"),l=s(/^0b[01]+$/i),u=s(/^0o[0-7]+$/i),c=s(/^[-+]0x[0-9a-f]+$/i),d=s(new n("["+["Â
","â","￾"].join("")+"]","g")),p=hft();return Cht=H((function e(n){if("string"!=typeof n)throw new i("Assertion failed: `argument` is not a String");if(l(n))return t(r(o(n,2),2));if(u(n))return t(r(o(n,2),8));if(d(n)||c(n))return NaN;var a=p(n);return a!==n?e(a):t(n)}),"StringToNumber")}function mft(){if(Tht)return xht;Tht=1;var e=Put(),t=lut(),n=e("%Number%"),i=zpt(),r=sft(),a=fft();return xht=H((function(e){var s=i(e)?e:r(e,n);if("symbol"==typeof s)throw new t("Cannot convert a Symbol value to a number");if("bigint"==typeof s)throw new t("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof s?a(s):n(s)}),"ToNumber")}function gft(){if(Aht)return Eht;Aht=1;var e=Math.floor;return Eht=H((function(t){return"bigint"==typeof t?t:e(t)}),"floor")}function yft(){if(Iht)return Lht;Iht=1;var e=gft(),t=lut();return Lht=H((function(n){if("number"!=typeof n&&"bigint"!=typeof n)throw new t("argument must be a Number or a BigInt");var i=n<0?-e(-n):e(n);return 0===i?0:i}),"truncate")}function vft(){if(Dht)return $ht;Dht=1;var e=tht(),t=mft(),n=yft(),i=ydt();return $ht=H((function(r){var a=t(r);if(!i(a)||0===a)return 0;var s=n(a),o=e(s,4294967296);return 0===o?0:o}),"ToUint32")}function bft(){if(Oht)return Pht;Oht=1;var e=nut(),t=fdt();return Pht=H((function(n){return t(n),e(n)}),"ToObject")}function _ft(){return Rht?Mht:(Rht=1,Mht=bft())}function wft(){if(Fht)return Nht;Fht=1;var e=Put()("%String%"),t=lut();return Nht=H((function(n){if("symbol"==typeof n)throw new t("Cannot convert a Symbol value to a string");return e(n)}),"ToString")}function Sft(){if(Hht)return Bht;Hht=1;var e=Upt(),t=Vpt(),n=Qpt(),i=Sdt(),r=Jpt(),a=Fpt(),s=vft(),o=_ft(),l=wft(),u=Xct(),c=ldt(),d=Object("a"),p="a"!==d[0]||!(0 in d),h=u("String.prototype.split");return Bht=H((function(u){var d,f=o(this),m=p&&c(f)?h(f,""):f,g=s(m.length);if(!a(u))throw new TypeError("Array.prototype.map callback must be a function");arguments.length>1&&(d=arguments[1]);for(var y=e(f,g),v=0;v<g;){var b=l(v);if(r(f,b)){var _=i(f,b),w=t(u,d,[_,v,f]);n(y,b,w)}v+=1}return y}),"map"),Bht}function Cft(){return Uht?jht:(Uht=1,jht=H((function(e){var t=!0,n=!0,i=!1;if("function"==typeof e){try{e.call("f",(function(e,n,i){"object"!=typeof i&&(t=!1)})),e.call([null],(function(){n="string"==typeof this}),"x")}catch(tvt){i=!0}return!i&&t&&n}return!1}),"properlyBoxed"))}function kft(){if(qht)return Vht;qht=1;var e=Cft(),t=Sft();return Vht=H((function(){var n=Array.prototype.map;return e(n)?n:t}),"getPolyfill")}function xft(){if(Wht)return zht;Wht=1;var e=jut(),t=kft();return zht=H((function(){var n=t();return e(Array.prototype,{map:n},{map:H((function(){return Array.prototype.map!==n}),"map")}),n}),"shimArrayPrototypeMap")}function Tft(){if(Kht)return Ght;Kht=1;var e=jut(),t=mdt(),n=Xct(),i=Sft(),r=kft(),a=r(),s=xft(),o=n("Array.prototype.slice"),l=H((function(e,n){return t(e),a.apply(e,o(arguments,1
102))}),"map");return e(l,{getPolyfill:r,implementation:i,shim:s}),Ght=l}function Eft(){if(Zht)return Yht;Zht=1,Uut()();var e=Vut(),t=zut(),n=hdt(),i=Tft(),r=Put(),a=Nut(),s=a(r("%Promise.all%")),o=a(r("%Promise.reject%"));return Yht=H((function(r){var a=this;if("Object"!==t(a))throw new TypeError("`this` value must be an object");var l=n(r);return s(a,i(l,(function(t){var n=H((function(e){return{status:"fulfilled",value:e}}),"onFulfill"),i=H((function(e){return{status:"rejected",reason:e}}),"onReject"),r=e(a,t);try{return r.then(n,i)}catch(tvt){return o(a,tvt)}})))}),"allSettled")}function Aft(){if(Qht)return Xht;Qht=1;var e=Uut(),t=Eft();return Xht=H((function(){return e(),"function"==typeof Promise.allSettled?Promise.allSettled:t}),"getPolyfill")}function Lft(){if(eft)return Jht;eft=1;var e=Uut(),t=Aft(),n=jut();return Jht=H((function(){e();var i=t();return n(Promise,{allSettled:i},{allSettled:H((function(){return Promise.allSettled!==i}),"testAllSettled")}),i}),"shimAllSettled")}function Ift(){if(nft)return tft;nft=1;var e=Nut(),t=jut(),n=Uut(),i=Eft(),r=Aft(),a=Lft();n();var s=e(r()),o=H((function(e){return s(void 0===this?Promise:this,e)}),"allSettled");return t(o,{getPolyfill:r,implementation:i,shim:a}),tft=o}H(rft,"requireIsSymbol"),H(aft,"requireEs2015"),H(sft,"requireToPrimitive$1"),H(oft,"requireIsRegex"),H(lft,"requireSafeRegexTest"),H(uft,"requireToString$1"),H(cft,"requireImplementation$3"),H(dft,"requirePolyfill$3"),H(pft,"requireShim$3"),H(hft,"requireString_prototype_trim"),H(fft,"requireStringToNumber"),H(mft,"requireToNumber"),H(gft,"requireFloor"),H(yft,"requireTruncate"),H(vft,"requireToUint32"),H(bft,"requireToObject$1"),H(_ft,"requireToObject"),H(wft,"requireToString"),H(Sft,"requireImplementation$2"),H(Cft,"requireEsArrayMethodBoxesProperly"),H(kft,"requirePolyfill$2"),H(xft,"requireShim$2"),H(Tft,"requireArray_prototype_map"),H(Eft,"requireImplementation$1"),H(Aft,"requirePolyfill$1"),H(Lft,"requireShim$1"),H(Ift,"requirePromise_allsettled");var $ft=Ift();const Dft=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Pft="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},Oft="URLSearchParams"in Pft,Mft="Symbol"in Pft&&"iterator"in Symbol,Rft="FileReader"in Pft&&"Blob"in Pft&&function(){try{return new Blob,!0}catch(tvt){return!1}}(),Nft="FormData"in Pft,Fft="ArrayBuffer"in Pft;function Bft(e){return e&&DataView.prototype.isPrototypeOf(e)}if(H(Bft,"isDataView"),Fft)var Hft=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],jft=ArrayBuffer.isView||function(e){return e&&Hft.indexOf(Object.prototype.toString.call(e))>-1};function Uft(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function Vft(e){return"string"!=typeof e&&(e=String(e)),e}function qft(e){var t={next:H((function(){var t=e.shift();return{done:void 0===t,value:t}}),"next")};return Mft&&(t[Symbol.iterator]=function(){return t}),t}function zft(e){this.map={},e instanceof zft?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Wft(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function Gft(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function Kft(e){var t=new FileReader,n=Gft(t);return t.readAsArrayBuffer(e),n}function Yft(e){var t=new FileReader,n=Gft(t),i=/charset=([A-Za-z0-9_-]+)/.exec(e.type),r=i?i[1]:"utf-8";return t.readAsText(e,r),n}function Zft(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i<t.length;i++)n[i]=String.fromCharCode(t[i]);return n.join("")}function Xft(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Qft(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:Rft&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Nft&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Oft&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Fft&&Rft&&Bft(e)?(this._bodyArrayBuffer=Xft(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Fft&&(ArrayBuffer.prototype.isPrototypeOf(e)||jft(e))?this._bodyArrayBuffer=Xft(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Oft&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Rft&&(this.blob=function(){var e=Wft(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Wft(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(Rft)return this.blob().then(Kft);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=Wft(this);if(e)return e;if(this._bodyBlob)return Yft(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Zft(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Nft&&(this.formData=function(){return this.text().then(nmt)}),this.json=function(){return this.text().then(JSON.parse)},this}H(Uft,"normalizeName"),H(Vft,"normalizeValue"),H(qft,"iteratorFor"),H(zft,"Headers$1"),zft.prototype.append=function(e,t){e=Uft(e),t=Vft(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},zft.prototype.delete=function(e){delete this.map[Uft(e)]},zft.prototype.get=function(e){return e=Uft(e),this.has(e)?this.map[e]:null},zft.prototype.has=function(e){return this.map.hasOwnProperty(Uft(e))},zft.prototype.set=function(e,t){this.map[Uft(e)]=Vft(t)},zft.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},zft.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),qft(e)},zft.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),qft(e)},zft.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),qft(e)},Mft&&(zft.prototype[Symbol.iterator]=zft.prototype.entries),H(Wft,"consumed"),H(Gft,"fileReaderReady"),H(Kft,"readBlobAsArrayBuffer"),H(Yft,"readBlobAsText"),H(Zft,"readArrayBufferAsText"),H(Xft,"bufferClone"),H(Qft,"Body");var Jft=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function emt(e){var t=e.toUpperCase();return Jft.indexOf(t)>-1?t:e}function tmt(e,t){if(!(this instanceof tmt))throw new TypeError('Please use the "new" operator, this DOM object c
102onstructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof tmt){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new zft(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new zft(t.headers)),this.method=emt(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in Pft)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function nmt(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}})),t}function imt(e){var t=new zft;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();try{t.append(i,r)}catch(a){console.warn("Response "+a.message)}}})),t}function rmt(e,t){if(!(this instanceof rmt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new zft(t.headers),this.url=t.url||"",this._initBody(e)}H(emt,"normalizeMethod"),H(tmt,"Request$1"),tmt.prototype.clone=function(){return new tmt(this,{body:this._bodyInit})},H(nmt,"decode"),H(imt,"parseHeaders"),Qft.call(tmt.prototype),H(rmt,"Response$1"),Qft.call(rmt.prototype),rmt.prototype.clone=function(){return new rmt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new zft(this.headers),url:this.url})},rmt.error=function(){var e=new rmt(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var amt=[301,302,303,307,308];rmt.redirect=function(e,t){if(-1===amt.indexOf(t))throw new RangeError("Invalid status code");return new rmt(null,{status:t,headers:{location:e}})};var smt,omt,lmt,umt,cmt,dmt,pmt,hmt,fmt,mmt,gmt,ymt,vmt,bmt,_mt,wmt,Smt,Cmt,kmt,xmt,Tmt,Emt,Amt,Lmt,Imt,$mt,Dmt,Pmt,Omt,Mmt,Rmt,Nmt,Fmt,Bmt,Hmt,jmt,Umt,Vmt,qmt,zmt,Wmt,Gmt,Kmt,Ymt,Zmt,Xmt,Qmt,Jmt,egt,tgt,ngt,igt,rgt,agt,sgt,ogt,lgt,ugt,cgt,dgt,pgt,hgt,fgt,mgt,ggt,ygt,vgt,bgt,_gt,wgt,Sgt,Cgt,kgt,xgt,Tgt,Egt,Agt,Lgt,Igt,$gt,Dgt,Pgt,Ogt,Mgt,Rgt,Ngt,Fgt,Bgt,Hgt,jgt,Ugt,Vgt,qgt,zgt,Wgt,Ggt,Kgt,Ygt,Zgt,Xgt,Qgt=Pft.DOMException;try{new Qgt}catch(nvt){(Qgt=H((function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}),"DOMException")).prototype=Object.create(Error.prototype),Qgt.prototype.constructor=Qgt}function Jgt(e,t){return new Promise((function(n,i){var r=new tmt(e,t);if(r.signal&&r.signal.aborted)return i(new Qgt("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}function o(e){try{return""===e&&Pft.location.href?Pft.location.href:e}catch(tvt){return e}}if(H(s,"abortXhr"),a.onload=function(){var e={statusText:a.statusText,headers:imt(a.getAllResponseHeaders()||"")};0===r.url.indexOf("file://")&&(a.status<200||a.status>599)?e.status=200:e.status=a.status,e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL");var t="response"in a?a.response:a.responseText;setTimeout((function(){n(new rmt(t,e))}),0)},a.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request timed out"))}),0)},a.onabort=function(){setTimeout((function(){i(new Qgt("Aborted","AbortError"))}),0)},H(o,"fixUrl"),a.open(r.method,o(r.url),!0),"include"===r.credentials?a.withCredentials=!0:"omit"===r.credentials&&(a.withCredentials=!1),"responseType"in a&&(Rft?a.responseType="blob":Fft&&(a.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof zft||Pft.Headers&&t.headers instanceof Pft.Headers)){var l=[];
102Object.getOwnPropertyNames(t.headers).forEach((function(e){l.push(Uft(e)),a.setRequestHeader(e,Vft(t.headers[e]))})),r.headers.forEach((function(e,t){-1===l.indexOf(t)&&a.setRequestHeader(t,e)}))}else r.headers.forEach((function(e,t){a.setRequestHeader(t,e)}));r.signal&&(r.signal.addEventListener("abort",s),a.onreadystatechange=function(){4===a.readyState&&r.signal.removeEventListener("abort",s)}),a.send(void 0===r._bodyInit?null:r._bodyInit)}))}function eyt(){return omt?smt:(omt=1,smt=Cdt())}function tyt(){if(umt)return lmt;umt=1;var e=Put(),t=Xct(),n=lut(),i=eyt(),r=e("%Reflect.apply%",!0)||t("Function.prototype.apply");return lmt=H((function(e,t){var a=arguments.length>2?arguments[2]:[];if(!i(a))throw new n("Assertion failed: optional `argumentsList`, if provided, must be a List");return r(e,t,a)}),"Call"),lmt}function nyt(){return dmt?cmt:(dmt=1,cmt=H((function(e){return"string"==typeof e||"symbol"==typeof e}),"IsPropertyKey"))}function iyt(){if(hmt)return pmt;hmt=1;var e=qut();return pmt=H((function(t){return"symbol"==typeof t?"Symbol":"bigint"==typeof t?"BigInt":e(t)}),"Type")}function ryt(){if(mmt)return fmt;mmt=1;var e=lut(),t=Jct(),n=nyt(),i=iyt();return fmt=H((function(r,a){if("Object"!==i(r))throw new e("Assertion failed: Type(O) is not Object");if(!n(a))throw new e("Assertion failed: IsPropertyKey(P) is not true, got "+t(a));return r[a]}),"Get")}function ayt(){return ymt?gmt:(ymt=1,gmt=H((function(e){return"number"==typeof e&&e>=55296&&e<=56319}),"isLeadingSurrogate"))}function syt(){return bmt?vmt:(bmt=1,vmt=H((function(e){return"number"==typeof e&&e>=56320&&e<=57343}),"isTrailingSurrogate"))}function oyt(){if(wmt)return _mt;wmt=1;var e=Put(),t=lut(),n=e("%String.fromCharCode%"),i=ayt(),r=syt();return _mt=H((function(e,a){if(!i(e)||!r(a))throw new t("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return n(e)+n(a)}),"UTF16SurrogatePairToCodePoint")}function lyt(){if(Cmt)return Smt;Cmt=1;var e=lut(),t=Xct(),n=ayt(),i=syt(),r=oyt(),a=t("String.prototype.charAt"),s=t("String.prototype.charCodeAt");return Smt=H((function(t,o){if("string"!=typeof t)throw new e("Assertion failed: `string` must be a String");var l=t.length;if(o<0||o>=l)throw new e("Assertion failed: `position` must be >= 0, and < the length of `string`");var u=s(t,o),c=a(t,o),d=n(u),p=i(u);if(!d&&!p)return{"[[CodePoint]]":c,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(p||o+1===l)return{"[[CodePoint]]":c,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var h=s(t,o+1);return i(h)?{"[[CodePoint]]":r(u,h),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":c,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}),"CodePointAt")}function uyt(){return xmt?kmt:(xmt=1,kmt=Number.MAX_SAFE_INTEGER||9007199254740991)}function cyt(){if(Emt)return Tmt;Emt=1;var e=lyt(),t=vdt(),n=uyt(),i=lut();return Tmt=H((function(r,a,s){if("string"!=typeof r)throw new i("Assertion failed: `S` must be a String");if(!t(a)||a<0||a>n)throw new i("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if("boolean"!=typeof s)throw new i("Assertion failed: `unicode` must be a Boolean");return s?a+1>=r.length?a+1:a+e(r,a)["[[CodeUnitCount]]"]:a+1}),"AdvanceStringIndex")}function dyt(){if(Lmt)return Amt;Lmt=1;var e=lut();return Amt=H((function(t,n){if("boolean"!=typeof n)throw new e("Assertion failed: Type(done) is not Boolean");return{value:t,done:n}}),"CreateIterResultObject")}function pyt(){return $mt?Imt:($mt=1,Imt=H((function(e){return!!e}),"ToBoolean"))}function hyt(){if(Pmt)return Dmt;Pmt=1;var e=lut(),t=ryt(),n=pyt(),i=iyt();return Dmt=H((function(r){if("Object"!==i(r))throw new e("Assertion failed: Type(iterResult) is not Object");return n(t(r,"done"))}),"IteratorComplete")}function fyt(){if(Mmt)return Omt;Mmt=1;var e=lut(),t=ryt(),n=iyt();return Omt=H((function(i){if("Object"!==n(i))throw new e("Assertion failed: Type(iterResult) is not Object");return t(i,"value")}),"IteratorValue")}function myt(){if(Nmt)return Rmt;Nmt=1;var e=Put(),t=Nut(),n=out(),i=e("%Promise.resolve%",!0),r=i&&t(i);return Rmt=H((function(e,t){if(!r)throw new n("This environment does not support Promises.");return r(e,t)}),"PromiseResolve")}function gyt(){if(Bmt)return Fmt;Bmt=1;var e=Put(),t=out(),n=lut(),i=e("%Promise%",!0),r=Xct(),a=dyt(),s=hyt(),o=fyt(),l=myt(),u=iyt(),c=r("Promise.prototype.then",!0);return Fmt=H((function(e){if("Object"!==u(e))throw new n("Assertion failed: Type(O)
102is not Object");if(arguments.length>1)throw new t("although AsyncFromSyncIteratorContinuation should take a second argument, it is not used in this implementation");if(!i)throw new t("This environment does not support Promises.");return new i((function(t){var n=s(e),r=o(e),u=l(i,r);t(c(u,H((function(e){return a(e,n)}),"onFulfilled")))}))}),"AsyncFromSyncIteratorContinuation"),Fmt}function yyt(){if(jmt)return Hmt;jmt=1;var e=lut(),t=Jct(),n=nyt();return Hmt=H((function(i,r){if(!n(r))throw new e("Assertion failed: IsPropertyKey(P) is not true, got "+t(r));return i[r]}),"GetV")}function vyt(){return Vmt?Umt:(Vmt=1,Umt=Npt())}function byt(){if(zmt)return qmt;zmt=1;var e=lut(),t=yyt(),n=vyt(),i=nyt(),r=Jct();return qmt=H((function(a,s){if(!i(s))throw new e("Assertion failed: IsPropertyKey(P) is not true");var o=t(a,s);if(null!=o){if(!n(o))throw new e(r(s)+" is not a function: "+r(o));return o}}),"GetMethod")}function _yt(){if(Gmt)return Wmt;Gmt=1;var e=Dut();return Wmt=H((function(t){return!!t&&"object"==typeof t&&e(t,"[[Iterator]]")&&e(t,"[[NextMethod]]")&&"function"==typeof t["[[NextMethod]]"]&&e(t,"[[Done]]")&&"boolean"==typeof t["[[Done]]"]}),"isIteratorRecord")}function wyt(){if(Ymt)return Kmt;Ymt=1;var e=lut(),t=tyt(),n=iyt(),i=_yt();return Kmt=H((function(r){if(!i(r))throw new e("Assertion failed: `iteratorRecord` must be an Iterator Record");var a;if(a=arguments.length<2?t(r["[[NextMethod]]"],r["[[Iterator]]"]):t(r["[[NextMethod]]"],r["[[Iterator]]"],[arguments[1]]),"Object"!==n(a))throw new e("iterator next must return an object");return a}),"IteratorNext"),Kmt}function Syt(){return Xmt?Zmt:(Xmt=1,Zmt=H((function(e,t){for(var n=0;n<e.length;n+=1)t(e[n],n,e)}),"forEach"))}function Cyt(){if(Jmt)return Qmt;Jmt=1;var e=Put()("%Object.create%",!0),t=lut(),n=out(),i=eyt(),r=iyt(),a=Syt(),s=adt(),o=bdt()();return Qmt=H((function(l){if(null!==l&&"Object"!==r(l))throw new t("Assertion failed: `proto` must be null or an object");var u,c=arguments.length<2?[]:arguments[1];if(!i(c))throw new t("Assertion failed: `additionalInternalSlotsList` must be an Array");if(e)u=e(l);else if(o)u={__proto__:l};else{if(null===l)throw new n("native Object.create support is required to create null objects");var d=H((function(){}),"T");d.prototype=l,u=new d}return c.length>0&&a(c,(function(e){s.set(u,e,void 0)})),u}),"OrdinaryObjectCreate"),Qmt}function kyt(){if(tgt)return egt;tgt=1;var e=Put(),t=out(),n=lut(),i=e("%Promise%",!0),r=gyt(),a=tyt(),s=dyt(),o=ryt(),l=byt(),u=wyt(),c=Cyt(),d=iyt(),p=adt(),h=_yt(),f=e("%AsyncFromSyncIteratorPrototype%",!0)||{next:H((function(e){if(!i)throw new t("This environment does not support Promises.");var n=this;p.assert(n,"[[SyncIteratorRecord]]");var a=arguments.length;return new i((function(t){var i,s=p.get(n,"[[SyncIteratorRecord]]");i=a>0?u(s,e):u(s),t(r(i))}))}),"next"),return:H((function(){if(!i)throw new t("This environment does not support Promises.");var e=this;p.assert(e,"[[SyncIteratorRecord]]");var o=arguments.length>0,u=o?arguments[0]:void 0;return new i((function(t,i){var c=p.get(e,"[[SyncIteratorRecord]]")["[[Iterator]]"],h=l(c,"return");if(void 0!==h){var f;f=o?a(h,c,[u]):a(h,c),"Object"===d(f)?t(r(f)):a(i,void 0,[new n("Iterator `return` method returned a non-object value.")])}else{var m=s(u,!0);a(t,void 0,[m])}}))}),"return"),throw:H((function(){if(!i)throw new t("This environment does not support Promises.");var e=this;p.assert(e,"[[SyncIteratorRecord]]");var s=arguments.length>0,o=s?arguments[0]:void 0;return new i((function(t,i){var u,c=p.get(e,"[[SyncIteratorRecord]]")["[[Iterator]]"],h=l(c,"throw");void 0!==h?(u=s?a(h,c,[o]):a(h,c),"Object"===d(u)?t(r(u)):a(i,void 0,[new n("Iterator `throw` method returned a non-object value.")])):a(i,void 0,[o])}))}),"throw")};return egt=H((function(e){if(!h(e))throw new n("Assertion failed: `syncIteratorRecord` must be an Iterator Record");var t=c(f);return p.set(t,"[[SyncIteratorRecord]]",e),{"[[Iterator]]":t,"[[NextMethod]]":o(t,"next"),"[[Done]]":!1}}),"CreateAsyncFromSyncIterator")}function xyt(){if(igt)return ngt;igt=1;var e=lut(),t=tyt(),n=ryt(),i=vyt(),r=iyt();return ngt=H((function(a,s){if(!i(s))throw new e("method must be a function");var o=t(s,a);if("Object"!==r(o))throw new e("iterator must return an object");return{"[[Iterator]]":o,"[[NextMethod]]":n(o,"next"),"[[Done]]":!1}}),"GetIteratorFromMethod")}function Tyt(){if(agt)return rgt;agt=1;var e=Sut()(),t=Put(),n=Xct(),i=ldt(),r=t("%Symbol.iterator%",!0),a=n("String.prototype.slice"),s=t("%String%");return rgt=H((function(t,n){var o;return e?o=t.GetMethod(n,r):t.IsArray(n)?o=H((function(){var e=-1,t=this;return{next:H((function(){return{done:(e+=1)>=t.length,value:t[e]}}),"next")}}),"usingIterator"):i(n)&&(o=H((function(){var e=0;return{next:H((function(){var i=t.AdvanceStringIndex(s(n),e,!0),r=a(n,e,i);return e=i,{done:i>n.length,value:r}}),"next")}}),"usingIterator")),o}),"getIteratorMethod")}function Eyt(){if(ogt)return sgt;ogt=1;var e=Put(),t=lut(),n=e("%Symbol.asyncIterator%",!0),i=Jct(),r=Sut()(),a=cyt(),s=kyt(),o=xyt(),l=byt(),u=eyt(),c=Tyt();return sgt=H((function(e,d){if("SYNC"!==d&&"ASYNC"!==d)throw new t("Assertion failed: `kind` must be one of 'sync' or 'async', got "+i(d));var p;if("ASYNC"===d&&r&&n&&(p=l(e,n)),void 0===p){var h=c({AdvanceStringIndex:a,GetMethod:l,IsArray:u},e);if("ASYNC"===d){if(void 0===h)throw new t("iterator method is `undefined`");var f=o(e,h);return s(f)}p=h}if(void 0===p)throw new t("iterator method is `undefined`");return o(e,p)}),"GetIterator")}function Ayt(){if(ugt)return lgt;ugt=1;var e=out(),t=adt(),n=H((function n(i,r){if(!(this instanceof n))return new n(i,r);if("normal"!==i&&"break"!==i&&"continue"!==i&&"return"!==i&&"throw"!==i)throw new e('Assertion failed: `type` must be one of "normal", "break", "continue", "return", or "throw"');t.set(this,"[[Type]]",i),t.set(this,"[[Value]]",r)}),"CompletionRecord");return n.prototype.type=H((function(){return t.get(this,"[[Type]]")}),"Type"),n.prototype.value=H((function(){return t.get(this,"[[Value]]")}),"Value"),n.prototype["?"]=H((function(){var n=t.get(this,"[[Type]]"),i=t.get(this,"[[Value]]");if("normal"===n)return i;if("throw"===n)throw i;throw new e('Completion Record is not of type "normal" or "throw": other types not supported')}),"ReturnIfAbrupt"),n.prototype["!"]=H((function(){if("normal"!==t.get(this,"[[Type]]"))throw new e('Assertion failed: Completion Record is not of type "normal"');return t.get(this,"[[Value]]")}),"assert"),lgt=n}function Lyt(){if(dgt)return cgt;dgt=1;var e=lut(),t=tyt(),n=Ayt(),i=byt(),r=vyt(),a=iyt(),s=_yt();return cgt=H((function(o,l){if(!s(o))throw new e("Assertion failed: `iteratorRecord` must be an Iterator Record");if("Object"!==a(o["[[Iterator]]"]))throw new e("Assertion failed: iteratorRecord.[[Iterator]] must be an Object");
102if(!(r(l)||l instanceof n))throw new e("Assertion failed: completion is not a thunk representing a Completion Record, nor a Completion Record instance");var u,c,d=l instanceof n?function(){return l["?"]()}:l,p=o["[[Iterator]]"];try{u=i(p,"return")}catch(tvt){throw d(),d=null,tvt}if(void 0===u)return d();try{c=t(u,p,[])}catch(tvt){throw d(),d=null,tvt}var h=d();if(d=null,"Object"!==a(c))throw new e("iterator .return must return an object");return h}),"IteratorClose")}function Iyt(){if(hgt)return pgt;hgt=1;var e=lut(),t=hyt(),n=wyt(),i=_yt();return pgt=H((function(r){if(!i(r))throw new e("Assertion failed: `iteratorRecord` must be an Iterator Record");var a=n(r);return!0!==t(a)&&a}),"IteratorStep")}function $yt(){if(mgt)return fgt;mgt=1;var e=Ayt();return fgt=H((function(t){return new e("throw",t)}),"ThrowCompletion")}function Dyt(){if(ygt)return ggt;ygt=1;var e=Jct(),t=lut(),n=tyt(),i=ryt(),r=Eyt(),a=vyt(),s=Lyt(),o=Iyt(),l=fyt(),u=$yt(),c=iyt();return ggt=H((function(d,p,h){if(!a(h))throw new t("Assertion failed: `adder` is not callable");if(null==p)throw new t("Assertion failed: `iterable` is present, and not nullish");for(var f=r(p,"SYNC");;){var m=o(f);if(!m)return d;var g=l(m);if("Object"!==c(g)){var y=u(new t("iterator next must return an Object, got "+e(g)));return s(f,y)}try{var v=i(g,"0"),b=i(g,"1");n(h,d,[v,b])}catch(tvt){return s(f,u(tvt))}}}),"AddEntriesFromIterable")}function Pyt(){if(bgt)return vgt;bgt=1;var e=lut(),t=Dut(),n=Ipt();return vgt=H((function(i){if(void 0===i)return!1;if(!n(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!(!t(i,"[[Get]]")&&!t(i,"[[Set]]"))}),"IsAccessorDescriptor")}function Oyt(){if(wgt)return _gt;wgt=1;var e=Put(),t=e("%Object.preventExtensions%",!0),n=e("%Object.isExtensible%",!0),i=zpt();return _gt=H(t?function(e){return!i(e)&&n(e)}:function(e){return!i(e)},"IsExtensible")}function Myt(){if(Cgt)return Sgt;Cgt=1;var e=Dut(),t=lut(),n=iyt(),i=pyt(),r=vyt();return Sgt=H((function(a){if("Object"!==n(a))throw new t("ToPropertyDescriptor requires an object");var s={};if(e(a,"enumerable")&&(s["[[Enumerable]]"]=i(a.enumerable)),e(a,"configurable")&&(s["[[Configurable]]"]=i(a.configurable)),e(a,"value")&&(s["[[Value]]"]=a.value),e(
102a,"writable")&&(s["[[Writable]]"]=i(a.writable)),e(a,"get")){var o=a.get;if(void 0!==o&&!r(o))throw new t("getter must be a function");s["[[Get]]"]=o}if(e(a,"set")){var l=a.set;if(void 0!==l&&!r(l))throw new t("setter must be a function");s["[[Set]]"]=l}if((e(s,"[[Get]]")||e(s,"[[Set]]"))&&(e(s,"[[Value]]")||e(s,"[[Writable]]")))throw new t("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return s}),"ToPropertyDescriptor")}function Ryt(){if(xgt)return kgt;xgt=1;var e=gdt();return kgt=H((function(t,n){return t===n?0!==t||1/t==1/n:e(t)&&e(n)}),"SameValue")}function Nyt(){if(Egt)return Tgt;Egt=1;var e=lut(),t=Ipt(),n=Dpt();return Tgt=H((function(i){if(void 0!==i&&!t(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return n(i)}),"FromPropertyDescriptor")}function Fyt(){if(Lgt)return Agt;Lgt=1;var e=lut(),t=Dut(),n=Ipt();return Agt=H((function(i){if(void 0===i)return!1;if(!n(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!(!t(i,"[[Value]]")&&!t(i,"[[Writable]]"))}),"IsDataDescriptor")}function Byt(){if($gt)return Igt;$gt=1;var e=lut(),t=Pyt(),n=Fyt(),i=Ipt();return Igt=H((function(r){if(void 0===r)return!1;if(!i(r))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!t(r)&&!n(r)}),"IsGenericDescriptor")}function Hyt(){if(Pgt)return Dgt;Pgt=1;var e=lut(),t=$pt(),n=Gpt(),i=Ipt(),r=Nyt(),a=Pyt(),s=Fyt(),o=Byt(),l=nyt(),u=Ryt(),c=iyt();return Dgt=H((function(d,p,h,f,m){var g,y,v=c(d);if("Undefined"!==v&&"Object"!==v)throw new e("Assertion failed: O must be undefined or an Object");if(!l(p))throw new e("Assertion failed: P must be a Property Key");if("boolean"!=typeof h)throw new e("Assertion failed: extensible must be a Boolean");if(!i(f))throw new e("Assertion failed: Desc must be a Property Descriptor");if(void 0!==m&&!i(m))throw new e("Assertion failed: current must be a Property Descriptor, or undefined");if(void 0===m)return!!h&&("Undefined"===v||(a(f)?t(s,u,r,d,p,f):t(s,u,r,d,p,{"[[Configurable]]":!!f["[[Configurable]]"],"[[Enumerable]]":!!f["[[Enumerable]]"],"[[Value]]":f["[[Value]]"],"[[Writable]]":!!f["[[Writable]]"]})));if(!n({IsAccessorDescriptor:a,IsDataDescriptor:s},m))throw new e("`current`, when present, must be a fully populated and valid Property Descriptor");if(!m["[[Configurable]]"]){if("[[Configurable]]"in f&&f["[[Configurable]]"])return!1;if("[[Enumerable]]"in f&&!u(f["[[Enumerable]]"],m["[[Enumerable]]"]))return!1;if(!o(f)&&!u(a(f),a(m)))return!1;if(a(m)){if("[[Get]]"in f&&!u(f["[[Get]]"],m["[[Get]]"]))return!1;if("[[Set]]"in f&&!u(f["[[Set]]"],m["[[Set]]"]))return!1}else if(!m["[[Writable]]"]){if("[[Writable]]"in f&&f["[[Writable]]"])return!1;if("[[Value]]"in f&&!u(f["[[Value]]"],m["[[Value]]"]))return!1}}return"Undefined"===v||(s(m)&&a(f)?(g=("[[Configurable]]"in f?f:m)["[[Configurable]]"],y=("[[Enumerable]]"in f?f:m)["[[Enumerable]]"],t(s,u,r,d,p,{"[[Configurable]]":!!g,"[[Enumerable]]":!!y,"[[Get]]":("[[Get]]"in f?f:m)["[[Get]]"],"[[Set]]":("[[Set]]"in f?f:m)["[[Set]]"]})):a(m)&&s(f)?(g=("[[Configurable]]"in f?f:m)["[[Configurable]]"],y=("[[Enumerable]]"in f?f:m)["[[Enumerable]]"],t(s,u,r,d,p,{"[[Configurable]]":!!g,"[[Enumerable]]":!!y,"[[Value]]":("[[Value]]"in f?f:m)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in f?f:m)["[[Writable]]"]})):t(s,u,r,d,p,f))}),"ValidateAndApplyPropertyDescriptor")}function jyt(){if(Mgt)return Ogt;Mgt=1;var e=but(),t=out(),n=lut(),i=Ipt(),r=Pyt(),a=Oyt(),s=nyt(),o=Myt(),l=Ryt(),u=iyt(),c=Hyt();return Ogt=H((function(d,p,h){if("Object"!==u(d))throw new n("Assertion failed: O must be an Object");if(!s(p))throw new n("Assertion failed: P must be a Property Key");if(!i(h))throw new n("Assertion failed: Desc must be a Property Descriptor");if(!e){if(r(h))throw new t("This environment does not support accessor property descriptors.");var f=!(p in d)&&h["[[Writable]]"]&&h["[[Enumerable]]"]&&h["[[Configurable]]"]&&"[[Value]]"in h,m=p in d&&(!("[[Configurable]]"in h)||h["[[Configurable]]"])&&(!("[[Enumerable]]"in h)||h["[[Enumerable]]"])&&(!("[[Writable]]"in h)||h["[[Writable]]"])&&"[[Value]]"in h;
102if(f||m)return d[p]=h["[[Value]]"],l(d[p],h["[[Value]]"]);throw new t("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var g=e(d,p),y=g&&o(g),v=a(d);return c(d,p,v,h,y)}),"OrdinaryDefineOwnProperty")}function Uyt(){if(Ngt)return Rgt;Ngt=1;var e=lut(),t=nyt(),n=jyt(),i=iyt();return Rgt=H((function(r,a,s){if("Object"!==i(r))throw new e("Assertion failed: Type(O) is not Object");if(!t(a))throw new e("Assertion failed: IsPropertyKey(P) is not true");return n(r,a,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":s,"[[Writable]]":!0})}),"CreateDataProperty")}function Vyt(){if(Bgt)return Fgt;Bgt=1;var e=lut(),t=Uyt(),n=nyt(),i=iyt();return Fgt=H((function(r,a,s){if("Object"!==i(r))throw new e("Assertion failed: Type(O) is not Object");if(!n(a))throw new e("Assertion failed: IsPropertyKey(P) is not true");if(!t(r,a,s))throw new e("unable to create data property")}),"CreateDataPropertyOrThrow")}function qyt(){if(jgt)return Hgt;jgt=1;var e=aft();return Hgt=H((function(t){return arguments.length>1?e(t,arguments[1]):e(t)}),"ToPrimitive"),Hgt}function zyt(){if(Vgt)return Ugt;Vgt=1;var e=Put()("%String%"),t=qyt(),n=uft();return Ugt=H((function(i){var r=t(i,e);return"symbol"==typeof r?r:n(r)}),"ToPropertyKey")}function Wyt(){if(zgt)return qgt;zgt=1;var e=Dyt(),t=Vyt(),n=fdt(),i=zyt(),r=H((function(e,n){var r=i(e);t(this,r,n)}),"addDataProperty");return qgt=H((function(t){return n(t),e({},t,r)}),"fromEntries")}function Gyt(){if(Ggt)return Wgt;Ggt=1;var e=Wyt();return Wgt=H((function(){return"function"==typeof Object.fromEntries?Object.fromEntries:e}),"getPolyfill")}function Kyt(){if(Ygt)return Kgt;Ygt=1;var e=Gyt(),t=jut();return Kgt=H((function(){var n=e();return t(Object,{fromEntries:n},{fromEntries:H((function(){return Object.fromEntries!==n}),"testEntries")}),n}),"shimEntries")}function Yyt(){if(Xgt)return Zgt;Xgt=1;var e=jut(),t=Nut(),n=Wyt(),i=Gyt(),r=Kyt(),a=t(i(),Object);return e(a,{getPolyfill:i,implementation:n,shim:r}),Zgt=a}H(Jgt,"fetch$1"),Jgt.polyfill=!0,Pft.fetch||(Pft.fetch=Jgt,Pft.Headers=zft,Pft.Request=tmt,Pft.Response=rmt),H(eyt,"requireIsArray"),H(tyt,"requireCall"),H(nyt,"requireIsPropertyKey"),H(iyt,"requireType"),H(ryt,"requireGet"),H(ayt,"requireIsLeadingSurrogate"),H(syt,"requireIsTrailingSurrogate"),H(oyt,"requireUTF16SurrogatePairToCodePoint"),H(lyt,"requireCodePointAt"),H(uyt,"requireMaxSafeInteger"),H(cyt,"requireAdvanceStringIndex"),H(dyt,"requireCreateIterResultObject"),H(pyt,"requireToBoolean"),H(hyt,"requireIteratorComplete"),H(fyt,"requireIteratorValue"),H(myt,"requirePromiseResolve"),H(gyt,"requireAsyncFromSyncIteratorContinuation"),H(yyt,"requireGetV"),H(vyt,"requireIsCallable"),H(byt,"requireGetMethod"),H(_yt,"requireIteratorRecord"),H(wyt,"requireIteratorNext"),H(Syt,"requireForEach"),H(Cyt,"requireOrdinaryObjectCreate"),H(kyt,"requireCreateAsyncFromSyncIterator"),H(xyt,"requireGetIteratorFromMethod"),H(Tyt,"requireGetIteratorMethod"),H(Eyt,"requireGetIterator"),H(Ayt,"requireCompletionRecord"),H(Lyt,"requireIteratorClose"),H(Iyt,"requireIteratorStep"),H($yt,"requireThrowCompletion"),H(Dyt,"requireAddEntriesFromIterable"),H(Pyt,"requireIsAccessorDescriptor"),H(Oyt,"requireIsExtensible"),H(Myt,"requireToPropertyDescriptor"),H(Ryt,"requireSameValue"),H(Nyt,"requireFromPropertyDescriptor"),H(Fyt,"requireIsDataDescriptor"),H(Byt,"requireIsGenericDescriptor"),H(Hyt,"requireValidateAndApplyPropertyDescriptor"),H(jyt,"requireOrdinaryDefineOwnProperty"),H(Uyt,"requireCreateDataProperty"),H(Vyt,"requireCreateDataPropertyOrThrow"),H(qyt,"requireToPrimitive"),H(zyt,"requireToPropertyKey"),H(Wyt,"requireImplementation"),H(Gyt,"requirePolyfill"),H(Kyt,"requireShim"),H(Yyt,"requireObject_fromentries");const Zyt=dv(Yyt()),Xyt=vm({locale:"en",fallbackLocale:"en",messages:mot}).global;Object.fromEntries||Zyt.shim();let Qyt=tu(q6e);Qyt.use(iit);const Jyt=M6e();Qyt.use(Jyt),!Promise.allSettled&&Dft&&$ft.shim(),Qyt.use(o$e,{i18nConfig:{locale:"en",fallbackLocale:"en",messages:mot}}),Qyt.use(l$e);const evt=_u();evt.use((({store:e})=>{e.i18n=Xyt})),Qyt.use(evt),E4e.setupSentry(Qyt,"art-collection",{}.VUE_APP_COMMIT_HASH),iit.beforeEach(((e,t,n)=>{if(e.name==t.name){let i=e.matched.find((t=>t.name==e.name));i&&i.beforeEnter&&i.beforeEnter(e,t,n)}else n()})),E4e.setupGoogleAnalytics(Qyt,void 0,!0),Qyt.mount("#app");export{Spe as $,Xr as A,jre as B,_0e as C,B6e as D,Xie as E,Ss as F,u7e as G,I4e as H,qs as I,Znt as J,yYe as K,E7e as L,K6e as M,Moe as N,Z6e as O,e7e as P,Ou as Q,FLe as R,jce as S,Rse as T,YYe as U,Wre as V,Ktt as W,zee as X,WCe as Y,h7e as Z,j6e as _,Bs as a,Dnt as a$,r7e as a0,qnt as a1,w7e as a2,S7e as a3,ott as a4,mxe as a5,cre as a6,TIe as a7,vde as a8,Zs as a9,cke as aA,J6e as aB,Dve as aC,wr as aD,br as aE,Ere as aF,Kl as aG,Bbe as aH,Dre as aI,Yae as aJ,pat as aK,Cnt as aL,m7e as aM,gre as aN,s7e as aO,Lr as aP,Fu as aQ,O7e as aR,B7e as aS,Xet as aT,Gnt as aU,j7e as aV,F7e as aW,N7e as aX,C7e as aY,$nt as aZ,Int as a_,Mu as aa,Tn as ab,ate as ac,ase as ad,Mre as ae,G1e as af,Cbe as ag,Jee as ah,Sn as ai,G6e as aj,pn as ak,$i as al,tl as am,nMe as an,A4e as ao,jke as ap,UTe as aq,Kye as ar,Rae as as,Wbe as at,Fve as au,No as av,Qnt as aw,Hle as ax,Q6e as ay,gse as az,Ws as b,Xnt as b$,Mnt as b0,G7e as b1,Ont as b2,Y6e as b3,d7e as b4,Rtt as b5,Qtt as b6,Ftt as b7,f7e as b8,fnt as b9,yat as bA,Ant as bB,vke as bC,a7e as bD,xtt as bE,Mtt as bF,Htt as bG,Btt as bH,Nnt as bI,Ntt as bJ,bet as bK,jnt as bL,Att as bM,Xtt as bN,qtt as bO,Utt as bP,Vtt as bQ,jtt as bR,P7e as bS,gYe as bT,Jet as bU,Jnt as bV,Ttt as bW,M7e as bX,tnt as bY,H7e as bZ,o7e as b_,hnt as ba,gnt as bb,l7e as bc,Vnt as bd,xnt as be,Wnt as bf,Wet as bg,att as bh,T0e as bi,Aet as bj,wtt as bk,c7e as bl,_tt as bm,Vet as bn,zre as bo,Tet as bp,ytt as bq,dtt as br,Oet as bs,utt as bt,mtt as bu,ptt as bv,ltt as bw,ftt as bx,t7e as by,uZe as bz,Ps as c,pv as c0,hM as c1,dv as c2,nSe as c3,Ihe as c4,Os as d,vae as e,Hs as f,s$e as g,p7e as h,X6e as i,Qie as j,ta as k,Be as l,Us as m,Fe as n,As as o,na as p,rre as q,Yr as r,hYe as s,ze as t,L4e as u,Pe as v,Ii as w,ea as x,Zl as y,ete as z}; 103 //# sourceMappingURL=index-C8jIwk9L.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.