@moni-labs/moni-ui 0.4.6 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +181 -1
- package/dist/browser/moni-ui.iife.min.js +289 -274
- package/dist/browser/moni-ui.iife.min.js.br +0 -0
- package/dist/browser/moni-ui.iife.min.js.gz +0 -0
- package/dist/browser/moni-ui.iife.min.js.map +1 -1
- package/dist/browser/moni-ui.min.js +1462 -1372
- package/dist/browser/moni-ui.min.js.br +0 -0
- package/dist/browser/moni-ui.min.js.gz +0 -0
- package/dist/browser/moni-ui.min.js.map +1 -1
- package/dist/cdn/components/moni-color-field.js +1 -0
- package/dist/cdn/components/moni-select.js +3 -3
- package/dist/cdn/components/moni-text-field.js +12 -2
- package/dist/cdn/components/moni-textarea.js +6 -2
- package/dist/cdn/importmap.json +98 -98
- package/dist/components/moni-color-field.d.ts.map +1 -1
- package/dist/components/moni-color-field.js +1 -0
- package/dist/components/moni-select.d.ts +28 -0
- package/dist/components/moni-select.d.ts.map +1 -1
- package/dist/components/moni-select.js +48 -0
- package/dist/components/moni-text-field.d.ts +45 -2
- package/dist/components/moni-text-field.d.ts.map +1 -1
- package/dist/components/moni-text-field.js +113 -1
- package/dist/components/moni-textarea.d.ts +27 -0
- package/dist/components/moni-textarea.d.ts.map +1 -1
- package/dist/components/moni-textarea.js +61 -0
- package/docs/api.json +178 -5
- package/docs/assets/moni-context-menu/placement--top.png +0 -0
- package/docs/assets/moni-select/required--false.png +0 -0
- package/docs/assets/moni-select/required--true.png +0 -0
- package/docs/assets/moni-text-field/autocomplete--default.png +0 -0
- package/docs/assets/moni-text-field/inputmode--default.png +0 -0
- package/docs/assets/moni-text-field/max--default.png +0 -0
- package/docs/assets/moni-text-field/maxlength--default.png +0 -0
- package/docs/assets/moni-text-field/min--default.png +0 -0
- package/docs/assets/moni-text-field/minlength--default.png +0 -0
- package/docs/assets/moni-text-field/pattern--default.png +0 -0
- package/docs/assets/moni-text-field/readonly--false.png +0 -0
- package/docs/assets/moni-text-field/readonly--true.png +0 -0
- package/docs/assets/moni-text-field/required--false.png +0 -0
- package/docs/assets/moni-text-field/required--true.png +0 -0
- package/docs/assets/moni-text-field/step--default.png +0 -0
- package/docs/assets/moni-text-field/type--color.png +0 -0
- package/docs/assets/moni-text-field/type--date.png +0 -0
- package/docs/assets/moni-text-field/type--datetime-local.png +0 -0
- package/docs/assets/moni-text-field/type--month.png +0 -0
- package/docs/assets/moni-text-field/type--time.png +0 -0
- package/docs/assets/moni-text-field/type--week.png +0 -0
- package/docs/assets/moni-textarea/autocomplete--default.png +0 -0
- package/docs/assets/moni-textarea/minlength--default.png +0 -0
- package/docs/assets/moni-textarea/readonly--false.png +0 -0
- package/docs/assets/moni-textarea/readonly--true.png +0 -0
- package/docs/assets/moni-textarea/required--false.png +0 -0
- package/docs/assets/moni-textarea/required--true.png +0 -0
- package/docs/components/select.md +15 -1
- package/docs/components/text-field.md +89 -1
- package/docs/components/textarea.md +34 -1
- package/package.json +1 -1
- package/src/components/moni-color-field.ts +1 -0
- package/src/components/moni-select.test.ts +34 -0
- package/src/components/moni-select.ts +54 -0
- package/src/components/moni-text-field.test.ts +78 -0
- package/src/components/moni-text-field.ts +109 -2
- package/src/components/moni-textarea.ts +62 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},l=(e,r,i)=>(i=e==null?{}:t(a(e)),c(r||!e||!e.__esModule||!o.call(e,`default`)?n(i,`default`,{value:e,enumerable:!0}):i,e)),u=globalThis,d=u.ShadowRoot&&(u.ShadyCSS===void 0||u.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,f=Symbol(),p=new WeakMap,m=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==f)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(d&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=p.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&p.set(t,e))}return e}toString(){return this.cssText}},h=e=>new m(typeof e==`string`?e:e+``,void 0,f),g=(e,...t)=>new m(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,f),_=(e,t)=>{if(d)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=u.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},v=d?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return h(t)})(e):e,{is:y,defineProperty:b,getOwnPropertyDescriptor:x,getOwnPropertyNames:S,getOwnPropertySymbols:C,getPrototypeOf:w}=Object,T=globalThis,E=T.trustedTypes,D=E?E.emptyScript:``,O=T.reactiveElementPolyfillSupport,k=(e,t)=>e,A={toAttribute(e,t){switch(t){case Boolean:e=e?D:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},j=(e,t)=>!y(e,t),M={attribute:!0,type:String,converter:A,reflect:!1,useDefault:!1,hasChanged:j};Symbol.metadata??=Symbol(`metadata`),T.litPropertyMetadata??=new WeakMap;var
|
|
2
|
-
\f\r]`,ue=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,de=/-->/g,fe=/>/g,pe=RegExp(`>|${le}(?:([^\\s"'>=/]+)(${le}*=${le}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),me=/'/g,he=/"/g,ge=/^(?:script|style|textarea|title)$/i,_e=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),R=_e(1),ve=_e(2),ye=Symbol.for(`lit-noChange`),z=Symbol.for(`lit-nothing`),be=new WeakMap,xe=ie.createTreeWalker(ie,129);function Se(e,t){if(!se(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return P===void 0?t:P.createHTML(t)}var Ce=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=ue;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===ue?c[1]===`!--`?o=de:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=pe):(ge.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=pe):o=fe:o===pe?c[0]===`>`?(o=i??ue,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?pe:c[3]===`"`?he:me):o===he||o===me?o=pe:o===de||o===fe?o=ue:(o=pe,i=void 0);let d=o===pe&&e[t+1].startsWith(`/>`)?` `:``;a+=o===ue?n+L:l>=0?(r.push(s),n.slice(0,l)+re+n.slice(l)+F+d):n+F+(l===-2?t:d)}return[Se(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},we=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=Ce(t,n);if(this.el=e.createElement(l,r),xe.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=xe.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(re)){let t=u[o++],n=i.getAttribute(e).split(F),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?ke:r[1]===`?`?Ae:r[1]===`@`?je:Oe}),i.removeAttribute(e)}else e.startsWith(F)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(ge.test(i.tagName)){let e=i.textContent.split(F),t=e.length-1;if(t>0){i.textContent=ne?ne.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],ae()),xe.nextNode(),c.push({type:2,index:++a});i.append(e[t],ae())}}}else if(i.nodeType===8){if(i.data===I)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(F,e+1))!==-1;)c.push({type:7,index:a}),e+=F.length-1}}a++}}static createElement(e,t){let n=ie.createElement(`template`);return n.innerHTML=e,n}};function Te(e,t,n=e,r){if(t===ye)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=oe(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=Te(e,i._$AS(e,t.values),i,r)),t}var Ee=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??ie).importNode(t,!0);xe.currentNode=r;let i=xe.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new De(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new Me(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=xe.nextNode(),a++)}return xe.currentNode=ie,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},De=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Te(this,e,t),oe(e)?e===z||e==null||e===``?(this._$AH!==z&&this._$AR(),this._$AH=z):e!==this._$AH&&e!==ye&&this._(e):e._$litType$===void 0?e.nodeType===void 0?ce(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==z&&oe(this._$AH)?this._$AA.nextSibling.data=e:this.T(ie.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=we.createElement(Se(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new Ee(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=be.get(e.strings);return t===void 0&&be.set(e.strings,t=new we(e)),t}k(t){se(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(ae()),this.O(ae()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=te(e).nextSibling;te(e).remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Oe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=z,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=z}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=Te(this,e,t,0),a=!oe(e)||e!==this._$AH&&e!==ye,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=Te(this,r[n+o],t,o),s===ye&&(s=this._$AH[o]),a||=!oe(s)||s!==this._$AH[o],s===z?e=z:e!==z&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},ke=class extends Oe{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===z?void 0:e}},Ae=class extends Oe{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==z)}},je=class extends Oe{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=Te(this,e,t,0)??z)===ye)return;let n=this._$AH,r=e===z&&n!==z||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==z&&(n===z||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Me=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Te(this,e)}},Ne={M:re,P:F,A:I,C:1,L:Ce,R:Ee,D:ce,V:Te,I:De,H:Oe,N:Ae,U:je,B:ke,F:Me},Pe=ee.litHtmlPolyfillSupport;Pe?.(we,De),(ee.litHtmlVersions??=[]).push(`3.3.3`);var Fe=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new De(t.insertBefore(ae(),e),e,void 0,n??{})}return i._$AI(e),i},Ie=globalThis,Le=class extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Fe(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ye}};Le._$litElement$=!0,Le.finalized=!0,Ie.litElementHydrateSupport?.({LitElement:Le});var Re=Ie.litElementPolyfillSupport;Re?.({LitElement:Le}),(Ie.litElementVersions??=[]).push(`4.2.2`);var B=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},ze={attribute:!0,type:String,converter:A,reflect:!1,hasChanged:j},Be=(e=ze,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function V(e){return(t,n)=>typeof n==`object`?Be(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function H(e){return V({...e,state:!0,attribute:!1})}var Ve=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function U(e,t){return(n,r,i)=>{let a=t=>t.renderRoot?.querySelector(e)??null;if(t){let{get:e,set:t}=typeof r==`object`?n:i??(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return Ve(n,r,{get(){let n=e.call(this);return n===void 0&&(n=a(this),(n!==null||this.hasUpdated)&&t.call(this,n)),n}})}return Ve(n,r,{get(){return a(this)}})}}var He;function Ue(e){return(t,n)=>Ve(t,n,{get(){return(this.renderRoot??(He??=document.createDocumentFragment())).querySelectorAll(e)}})}function We(e){return(t,n)=>{let{slot:r,selector:i}=e??{},a=`slot`+(r?`[name=${r}]`:`:not([name])`);return Ve(t,n,{get(){let t=(this.renderRoot?.querySelector(a))?.assignedElements(e)??[];return i===void 0?t:t.filter(e=>e.matches(i))}})}}var W=class extends Le{constructor(...e){super(...e),this._isBaseInViewport=!1,this._handleGlobalSlotClick=e=>{let t=e.composedPath().find(e=>e instanceof HTMLSlotElement);if(t){let n=t.name||`default`;this.dispatchEvent(new CustomEvent(`slot-click`,{bubbles:!0,composed:!0,detail:{originalEvent:e,slotName:n,originalTarget:e.target}}))}}}createRenderRoot(){return super.createRenderRoot()}connectedCallback(){super.connectedCallback(),typeof IntersectionObserver<`u`&&(this._globalIntersectionObserver=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting!==this._isBaseInViewport&&(this._isBaseInViewport=e.isIntersecting,this.dispatchEvent(new CustomEvent(this._isBaseInViewport?`moni-enter-viewport`:`moni-leave-viewport`,{bubbles:!0,composed:!0,detail:{element:this}})))})},{threshold:[0,1]}),this._globalIntersectionObserver.observe(this)),typeof ResizeObserver<`u`&&(this._globalResizeObserver=new ResizeObserver(e=>{e.forEach(e=>{this.dispatchEvent(new CustomEvent(`moni-resize`,{bubbles:!0,composed:!0,detail:{contentRect:e.contentRect,element:this}}))})}),this._globalResizeObserver.observe(this)),this.addEventListener(`click`,this._handleGlobalSlotClick)}disconnectedCallback(){super.disconnectedCallback(),this._globalIntersectionObserver?.disconnect(),this._globalResizeObserver?.disconnect(),this.removeEventListener(`click`,this._handleGlobalSlotClick)}},G=g`
|
|
1
|
+
var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},l=(e,r,i)=>(i=e==null?{}:t(a(e)),c(r||!e||!e.__esModule||!o.call(e,`default`)?n(i,`default`,{value:e,enumerable:!0}):i,e)),u=globalThis,d=u.ShadowRoot&&(u.ShadyCSS===void 0||u.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,f=Symbol(),p=new WeakMap,m=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==f)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(d&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=p.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&p.set(t,e))}return e}toString(){return this.cssText}},h=e=>new m(typeof e==`string`?e:e+``,void 0,f),g=(e,...t)=>new m(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,f),_=(e,t)=>{if(d)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=u.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},v=d?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return h(t)})(e):e,{is:y,defineProperty:b,getOwnPropertyDescriptor:x,getOwnPropertyNames:S,getOwnPropertySymbols:C,getPrototypeOf:w}=Object,T=globalThis,E=T.trustedTypes,D=E?E.emptyScript:``,O=T.reactiveElementPolyfillSupport,k=(e,t)=>e,A={toAttribute(e,t){switch(t){case Boolean:e=e?D:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},j=(e,t)=>!y(e,t),M={attribute:!0,type:String,converter:A,reflect:!1,useDefault:!1,hasChanged:j};Symbol.metadata??=Symbol(`metadata`),T.litPropertyMetadata??=new WeakMap;var ee=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=M){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&b(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=x(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??M}static _$Ei(){if(this.hasOwnProperty(k(`elementProperties`)))return;let e=w(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(k(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k(`properties`))){let e=this.properties,t=[...S(e),...C(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(v(e))}else e!==void 0&&t.push(v(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return _(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?A:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?A:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??j)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};ee.elementStyles=[],ee.shadowRootOptions={mode:`open`},ee[k(`elementProperties`)]=new Map,ee[k(`finalized`)]=new Map,O?.({ReactiveElement:ee}),(T.reactiveElementVersions??=[]).push(`2.1.2`);var te=globalThis,ne=e=>e,re=te.trustedTypes,N=re?re.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,ie=`$lit$`,P=`lit$${Math.random().toFixed(9).slice(2)}$`,F=`?`+P,I=`<${F}>`,ae=document,oe=()=>ae.createComment(``),se=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ce=Array.isArray,le=e=>ce(e)||typeof e?.[Symbol.iterator]==`function`,ue=`[
|
|
2
|
+
\f\r]`,de=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fe=/-->/g,pe=/>/g,me=RegExp(`>|${ue}(?:([^\\s"'>=/]+)(${ue}*=${ue}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),he=/'/g,ge=/"/g,_e=/^(?:script|style|textarea|title)$/i,ve=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),L=ve(1),ye=ve(2),be=Symbol.for(`lit-noChange`),R=Symbol.for(`lit-nothing`),xe=new WeakMap,Se=ae.createTreeWalker(ae,129);function Ce(e,t){if(!ce(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return N===void 0?t:N.createHTML(t)}var we=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=de;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===de?c[1]===`!--`?o=fe:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=me):(_e.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=me):o=pe:o===me?c[0]===`>`?(o=i??de,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?me:c[3]===`"`?ge:he):o===ge||o===he?o=me:o===fe||o===pe?o=de:(o=me,i=void 0);let d=o===me&&e[t+1].startsWith(`/>`)?` `:``;a+=o===de?n+I:l>=0?(r.push(s),n.slice(0,l)+ie+n.slice(l)+P+d):n+P+(l===-2?t:d)}return[Ce(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},Te=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=we(t,n);if(this.el=e.createElement(l,r),Se.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=Se.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(ie)){let t=u[o++],n=i.getAttribute(e).split(P),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?Ae:r[1]===`?`?je:r[1]===`@`?Me:ke}),i.removeAttribute(e)}else e.startsWith(P)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(_e.test(i.tagName)){let e=i.textContent.split(P),t=e.length-1;if(t>0){i.textContent=re?re.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],oe()),Se.nextNode(),c.push({type:2,index:++a});i.append(e[t],oe())}}}else if(i.nodeType===8){if(i.data===F)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(P,e+1))!==-1;)c.push({type:7,index:a}),e+=P.length-1}}a++}}static createElement(e,t){let n=ae.createElement(`template`);return n.innerHTML=e,n}};function Ee(e,t,n=e,r){if(t===be)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=se(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=Ee(e,i._$AS(e,t.values),i,r)),t}var De=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??ae).importNode(t,!0);Se.currentNode=r;let i=Se.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new Oe(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new Ne(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=Se.nextNode(),a++)}return Se.currentNode=ae,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},Oe=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ee(this,e,t),se(e)?e===R||e==null||e===``?(this._$AH!==R&&this._$AR(),this._$AH=R):e!==this._$AH&&e!==be&&this._(e):e._$litType$===void 0?e.nodeType===void 0?le(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==R&&se(this._$AH)?this._$AA.nextSibling.data=e:this.T(ae.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=Te.createElement(Ce(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new De(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=xe.get(e.strings);return t===void 0&&xe.set(e.strings,t=new Te(e)),t}k(t){ce(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(oe()),this.O(oe()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=ne(e).nextSibling;ne(e).remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ke=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=R,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=R}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=Ee(this,e,t,0),a=!se(e)||e!==this._$AH&&e!==be,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=Ee(this,r[n+o],t,o),s===be&&(s=this._$AH[o]),a||=!se(s)||s!==this._$AH[o],s===R?e=R:e!==R&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},Ae=class extends ke{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===R?void 0:e}},je=class extends ke{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==R)}},Me=class extends ke{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=Ee(this,e,t,0)??R)===be)return;let n=this._$AH,r=e===R&&n!==R||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==R&&(n===R||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ne=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Ee(this,e)}},Pe={M:ie,P,A:F,C:1,L:we,R:De,D:le,V:Ee,I:Oe,H:ke,N:je,U:Me,B:Ae,F:Ne},Fe=te.litHtmlPolyfillSupport;Fe?.(Te,Oe),(te.litHtmlVersions??=[]).push(`3.3.3`);var Ie=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new Oe(t.insertBefore(oe(),e),e,void 0,n??{})}return i._$AI(e),i},Le=globalThis,Re=class extends ee{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ie(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return be}};Re._$litElement$=!0,Re.finalized=!0,Le.litElementHydrateSupport?.({LitElement:Re});var ze=Le.litElementPolyfillSupport;ze?.({LitElement:Re}),(Le.litElementVersions??=[]).push(`4.2.2`);var z=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},Be={attribute:!0,type:String,converter:A,reflect:!1,hasChanged:j},Ve=(e=Be,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function B(e){return(t,n)=>typeof n==`object`?Ve(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function V(e){return B({...e,state:!0,attribute:!1})}var He=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function H(e,t){return(n,r,i)=>{let a=t=>t.renderRoot?.querySelector(e)??null;if(t){let{get:e,set:t}=typeof r==`object`?n:i??(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return He(n,r,{get(){let n=e.call(this);return n===void 0&&(n=a(this),(n!==null||this.hasUpdated)&&t.call(this,n)),n}})}return He(n,r,{get(){return a(this)}})}}var Ue;function We(e){return(t,n)=>He(t,n,{get(){return(this.renderRoot??(Ue??=document.createDocumentFragment())).querySelectorAll(e)}})}function Ge(e){return(t,n)=>{let{slot:r,selector:i}=e??{},a=`slot`+(r?`[name=${r}]`:`:not([name])`);return He(t,n,{get(){let t=(this.renderRoot?.querySelector(a))?.assignedElements(e)??[];return i===void 0?t:t.filter(e=>e.matches(i))}})}}var U=class extends Re{constructor(...e){super(...e),this._isBaseInViewport=!1,this._handleGlobalSlotClick=e=>{let t=e.composedPath().find(e=>e instanceof HTMLSlotElement);if(t){let n=t.name||`default`;this.dispatchEvent(new CustomEvent(`slot-click`,{bubbles:!0,composed:!0,detail:{originalEvent:e,slotName:n,originalTarget:e.target}}))}}}createRenderRoot(){return super.createRenderRoot()}connectedCallback(){super.connectedCallback(),typeof IntersectionObserver<`u`&&(this._globalIntersectionObserver=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting!==this._isBaseInViewport&&(this._isBaseInViewport=e.isIntersecting,this.dispatchEvent(new CustomEvent(this._isBaseInViewport?`moni-enter-viewport`:`moni-leave-viewport`,{bubbles:!0,composed:!0,detail:{element:this}})))})},{threshold:[0,1]}),this._globalIntersectionObserver.observe(this)),typeof ResizeObserver<`u`&&(this._globalResizeObserver=new ResizeObserver(e=>{e.forEach(e=>{this.dispatchEvent(new CustomEvent(`moni-resize`,{bubbles:!0,composed:!0,detail:{contentRect:e.contentRect,element:this}}))})}),this._globalResizeObserver.observe(this)),this.addEventListener(`click`,this._handleGlobalSlotClick)}disconnectedCallback(){super.disconnectedCallback(),this._globalIntersectionObserver?.disconnect(),this._globalResizeObserver?.disconnect(),this.removeEventListener(`click`,this._handleGlobalSlotClick)}},W=g`
|
|
3
3
|
/* ─── 1. Box-sizing reset ─────────────────────────────────────────────── */
|
|
4
4
|
:host {
|
|
5
5
|
box-sizing: border-box;
|
|
@@ -247,7 +247,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
247
247
|
white-space: nowrap;
|
|
248
248
|
border: 0;
|
|
249
249
|
}
|
|
250
|
-
`,
|
|
250
|
+
`,Ke=g`
|
|
251
251
|
:host {
|
|
252
252
|
display: block;
|
|
253
253
|
/* Fields are full-width by default; the parent layout controls sizing. */
|
|
@@ -791,7 +791,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
791
791
|
.field:not(.invalid) > .footer > output.invalid {
|
|
792
792
|
display: none;
|
|
793
793
|
}
|
|
794
|
-
`;function
|
|
794
|
+
`;function G(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var qe=class extends U{constructor(...e){super(...e),this.placement=`top`,this.variant=`standard`,this.size=`default`,this.title=``,this.subtitle=``,this.elevated=!1}static{this.styles=[W,g`
|
|
795
795
|
:host {
|
|
796
796
|
display: block;
|
|
797
797
|
font-family: var(--font);
|
|
@@ -893,7 +893,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
893
893
|
inset-block-end: 1rem;
|
|
894
894
|
inset-inline-end: 1rem;
|
|
895
895
|
}
|
|
896
|
-
`]}render(){let e=this.size===`prominent`&&!!this.subtitle,t=this.size===`prominent`;return
|
|
896
|
+
`]}render(){let e=this.size===`prominent`&&!!this.subtitle,t=this.size===`prominent`;return L`
|
|
897
897
|
<div class="bar" part="bar">
|
|
898
898
|
<div class="leading" part="leading">
|
|
899
899
|
<slot name="leading"></slot>
|
|
@@ -902,13 +902,13 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
902
902
|
<div class="trailing" part="trailing">
|
|
903
903
|
<slot name="trailing"></slot>
|
|
904
904
|
</div>
|
|
905
|
-
${e?
|
|
906
|
-
${t?
|
|
905
|
+
${e?L`<div class="subtitle" part="subtitle">${this.subtitle}</div>`:R}
|
|
906
|
+
${t?L`<div class="actions" part="actions">
|
|
907
907
|
<slot name="actions"></slot>
|
|
908
|
-
</div>`:
|
|
908
|
+
</div>`:R}
|
|
909
909
|
<slot name="fab"></slot>
|
|
910
910
|
</div>
|
|
911
|
-
`}};
|
|
911
|
+
`}};G([B({reflect:!0})],qe.prototype,`placement`,void 0),G([B({reflect:!0})],qe.prototype,`variant`,void 0),G([B({reflect:!0})],qe.prototype,`size`,void 0),G([B({reflect:!0})],qe.prototype,`title`,void 0),G([B({reflect:!0})],qe.prototype,`subtitle`,void 0),G([B({type:Boolean,reflect:!0})],qe.prototype,`elevated`,void 0),qe=G([z(`moni-app-bar`)],qe);var Je=class extends U{constructor(...e){super(...e),this.value=``,this.position=``,this.shape=``,this.color=`error`,this.inline=!1,this.border=!1}connectedCallback(){super.connectedCallback();let e=this.parentElement;e&&getComputedStyle(e).position===`static`&&(e.style.position=`relative`)}static{this.styles=[W,g`
|
|
912
912
|
:host {
|
|
913
913
|
display: contents;
|
|
914
914
|
font-family: var(--font);
|
|
@@ -974,9 +974,9 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
974
974
|
/* BeerCSS .badge.min — dot only, content hidden */
|
|
975
975
|
.badge.min > * { display: none; }
|
|
976
976
|
.badge.min { clip-path: circle(18.75% at 50% 50%); }
|
|
977
|
-
`]}render(){return
|
|
977
|
+
`]}render(){return L`<span class=${[`badge`,this.position||``,this.shape||``,this.inline?`none`:``].filter(Boolean).join(` `)} part="badge">
|
|
978
978
|
<slot>${this.value}</slot>
|
|
979
|
-
</span>`}};
|
|
979
|
+
</span>`}};G([B({reflect:!0})],Je.prototype,`value`,void 0),G([B({reflect:!0})],Je.prototype,`position`,void 0),G([B({reflect:!0})],Je.prototype,`shape`,void 0),G([B({reflect:!0})],Je.prototype,`color`,void 0),G([B({type:Boolean,reflect:!0})],Je.prototype,`inline`,void 0),G([B({type:Boolean,reflect:!0})],Je.prototype,`border`,void 0),Je=G([z(`moni-badge`)],Je);function Ye(e,t,n){let r=new CustomEvent(t,{bubbles:n?.bubbles??!0,composed:n?.composed??!0,cancelable:n?.cancelable??!1,detail:n?.detail??{}});return e.dispatchEvent(r)}var Xe=class extends U{constructor(...e){super(...e),this.open=!1,this.size=`medium`,this.modal=!0,this.title=``,this.handle=!1,this.positioning=`fixed`,this.expandedHeight=`85%`,this.maxWidth=``,this._originalParent=null,this._originalSibling=null,this._isDragging=!1,this._startY=0,this._currentTranslationY=0,this._sheetHeight=0,this._defaultHeight=0,this._justDragged=!1,this._skipRequestClose=!1}willUpdate(e){e.has(`open`)&&this.open!==e.get(`open`)&&(this.open?Ye(this,`moni-request-open`,{cancelable:!0})||(this.open=!1):this._skipRequestClose||Ye(this,`moni-request-close`,{cancelable:!0})||(this.open=!0))}async _animateAndClose(){this._skipRequestClose=!0;let e=Ye(this,`moni-request-close`,{cancelable:!0});return this._skipRequestClose=!1,e?(this.dispatchEvent(new Event(`close`,{bubbles:!0,composed:!0})),Ye(this,`moni-close`),this._dialog.classList.remove(`expanded`),this._dialog.style.transform=`translateY(100%)`,this._dialog.style.height=``,await new Promise(e=>{let t=()=>{this._dialog.removeEventListener(`transitionend`,t),e(null)};this._dialog.addEventListener(`transitionend`,t),setTimeout(t,300)}),this._dialog.style.transform=``,this._skipRequestClose=!0,this.open=!1,this._skipRequestClose=!1,Ye(this,`moni-closed`),!0):!1}_getMaxHeightPx(){let e=this.expandedHeight||`85%`;return e.endsWith(`%`)||e.endsWith(`vh`)?window.innerHeight*(parseFloat(e)/100):e.endsWith(`px`)?parseFloat(e):window.innerHeight*.85}_onPointerDown(e){let t=e.target;!t.closest(`.handle`)&&!t.closest(`header`)||(this._isDragging=!0,this._startY=e.clientY,this._sheetHeight=this._dialog.getBoundingClientRect().height,this._currentTranslationY=0,this._dialog.classList.contains(`expanded`)||(this._defaultHeight=this._sheetHeight),t.setPointerCapture(e.pointerId),this._dialog.classList.add(`dragging`))}_onPointerMove(e){if(!this._isDragging)return;let t=e.clientY-this._startY,n=this._dialog.classList.contains(`expanded`),r=this._getMaxHeightPx();if(n){if(t>0){let e=this._sheetHeight-t;this._dialog.style.transform=``,this._dialog.style.height=`${Math.max(0,e)}px`}else{let e=this._sheetHeight-t*.2;this._dialog.style.transform=``,this._dialog.style.height=`${Math.min(r,e)}px`}}else if(t>0)this._currentTranslationY=t,this._dialog.style.transform=`translateY(${t}px)`,this._dialog.style.height=``;else{let e=this._sheetHeight-t;this._dialog.style.transform=``,this._dialog.style.height=`${Math.min(r,e)}px`}}_onPointerUp(e){if(!this._isDragging)return;e.target.releasePointerCapture(e.pointerId),this._isDragging=!1,this._dialog.classList.remove(`dragging`);let t=e.clientY-this._startY;Math.abs(t)>5&&(this._justDragged=!0,setTimeout(()=>{this._justDragged=!1},50));let n=this._dialog.classList.contains(`expanded`),r=this._getMaxHeightPx();if(n){let e=this._sheetHeight-t;e<this._defaultHeight-80?this._animateAndClose().then(e=>{e||(this._dialog.style.transform=``,this._dialog.style.height=``)}):e<(r+this._defaultHeight)/2?(this._dialog.classList.remove(`expanded`),this._dialog.style.transform=``,this._dialog.style.height=``):(this._dialog.style.transform=``,this._dialog.style.height=``)}else t<0?(this._sheetHeight-t>this._sheetHeight+80&&this._dialog.classList.add(`expanded`),this._dialog.style.transform=``,this._dialog.style.height=``):this._currentTranslationY>80?this._animateAndClose().then(e=>{e||(this._dialog.style.transform=``)}):this._dialog.style.transform=``}_onPointerCancel(e){this._isDragging&&(e.target.releasePointerCapture(e.pointerId),this._isDragging=!1,this._dialog.classList.remove(`dragging`),this._dialog.style.transform=``,this._dialog.style.height=``)}_onDialogClick(e){if(this._justDragged){this._justDragged=!1;return}this.modal&&e.target===this._dialog&&this._animateAndClose()}updated(e){super.updated(e),e.has(`expandedHeight`)&&this.style.setProperty(`--moni-bottom-sheet-expanded-height`,this.expandedHeight),e.has(`maxWidth`)&&this.style.setProperty(`--moni-bottom-sheet-max-width`,this.maxWidth||`100%`),e.has(`open`)&&(this.open?(e.get(`open`)!==void 0&&Ye(this,`moni-open`),this.positioning===`body`&&this.parentNode!==document.body&&(this._originalParent=this.parentNode,this._originalSibling=this.nextSibling,document.body.appendChild(this)),e.get(`open`)!==void 0&&setTimeout(()=>Ye(this,`moni-opened`),300)):(this._dialog&&this._dialog.classList.remove(`expanded`),this.positioning===`body`&&this._originalParent&&this.parentNode===document.body&&(this._originalParent.insertBefore(this,this._originalSibling),this._originalParent=null,this._originalSibling=null)))}disconnectedCallback(){super.disconnectedCallback(),this.parentNode===document.body&&this.positioning===`body`&&this._originalParent&&this._originalParent.insertBefore(this,this._originalSibling)}static{this.styles=[W,g`
|
|
980
980
|
:host {
|
|
981
981
|
display: contents;
|
|
982
982
|
}
|
|
@@ -1102,7 +1102,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
1102
1102
|
.handle:active {
|
|
1103
1103
|
cursor: grabbing;
|
|
1104
1104
|
}
|
|
1105
|
-
`]}render(){let e=this.positioning===`body`?`fixed`:this.positioning,t=`${this.size} ${e}`;return
|
|
1105
|
+
`]}render(){let e=this.positioning===`body`?`fixed`:this.positioning,t=`${this.size} ${e}`;return L`<dialog
|
|
1106
1106
|
part="dialog"
|
|
1107
1107
|
?open=${this.open}
|
|
1108
1108
|
class=${t}
|
|
@@ -1112,13 +1112,13 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
1112
1112
|
@pointerup=${this._onPointerUp}
|
|
1113
1113
|
@pointercancel=${this._onPointerCancel}
|
|
1114
1114
|
>
|
|
1115
|
-
${this.handle?
|
|
1115
|
+
${this.handle?L`<div class="handle" aria-hidden="true"></div>`:R}
|
|
1116
1116
|
<header part="header">
|
|
1117
1117
|
<slot name="handle">${this.title}</slot>
|
|
1118
1118
|
</header>
|
|
1119
1119
|
<div part="content"><slot></slot></div>
|
|
1120
1120
|
<footer part="footer"><slot name="footer"></slot></footer>
|
|
1121
|
-
</dialog>`}};
|
|
1121
|
+
</dialog>`}};G([B({type:Boolean,reflect:!0})],Xe.prototype,`open`,void 0),G([B({reflect:!0})],Xe.prototype,`size`,void 0),G([B({type:Boolean,reflect:!0})],Xe.prototype,`modal`,void 0),G([B({reflect:!0})],Xe.prototype,`title`,void 0),G([B({type:Boolean,reflect:!0})],Xe.prototype,`handle`,void 0),G([B({reflect:!0})],Xe.prototype,`positioning`,void 0),G([B({reflect:!0,attribute:`expanded-height`})],Xe.prototype,`expandedHeight`,void 0),G([B({reflect:!0,attribute:`max-width`})],Xe.prototype,`maxWidth`,void 0),G([H(`dialog`)],Xe.prototype,`_dialog`,void 0),Xe=G([z(`moni-bottom-sheet`)],Xe);var K=e=>e??R,Ze=class extends U{constructor(...e){super(...e),this.name=``,this.size=`medium`,this.filled=!1}static{this.styles=[W,g`
|
|
1122
1122
|
:host {
|
|
1123
1123
|
--_size: var(--moni-icon-size, 1.5rem);
|
|
1124
1124
|
display: inline-flex;
|
|
@@ -1172,7 +1172,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
1172
1172
|
block-size: 100%;
|
|
1173
1173
|
object-fit: contain;
|
|
1174
1174
|
}
|
|
1175
|
-
`]}render(){return
|
|
1175
|
+
`]}render(){return L`<slot>${this.name}</slot>`}};G([B({reflect:!0})],Ze.prototype,`name`,void 0),G([B({reflect:!0})],Ze.prototype,`size`,void 0),G([B({type:Boolean,reflect:!0})],Ze.prototype,`filled`,void 0),Ze=G([z(`moni-icon`)],Ze);var Qe=class extends U{constructor(...e){super(...e),this.value=0,this.max=100,this.variant=`linear`,this.size=`medium`,this.indeterminate=!1,this.mode=`determinate`,this.bufferValue=0,this.stopIndicator=!1,this.waveTransition=!1,this.label=`Progress`,this._percentage=0,this._reduceMotion=!1,this._handleMotionPreference=e=>{this._reduceMotion=e.matches}}connectedCallback(){super.connectedCallback(),!(typeof window>`u`||!window.matchMedia)&&(this._motionQuery=window.matchMedia(`(prefers-reduced-motion: reduce)`),this._reduceMotion=this._motionQuery.matches,this._motionQuery.addEventListener(`change`,this._handleMotionPreference))}disconnectedCallback(){this._motionQuery?.removeEventListener(`change`,this._handleMotionPreference),this._motionQuery=void 0,super.disconnectedCallback()}willUpdate(e){if(e.has(`value`)||e.has(`max`)){let e=Number.isFinite(this.max)&&this.max>0?this.max:100,t=Number.isFinite(this.value)?this.value:0;this._percentage=Math.min(100,Math.max(0,t/e*100))}e.has(`variant`)&&![`linear`,`circular`,`wavy`,`circular-wavy`].includes(this.variant)&&(this.variant=`linear`),e.has(`mode`)&&![`determinate`,`buffer`].includes(this.mode)&&(this.mode=`determinate`)}get _isCircular(){return this.variant===`circular`||this.variant===`circular-wavy`}get _isWavy(){return this.variant===`wavy`||this.variant===`circular-wavy`}get _isBuffer(){return!this.indeterminate&&this.mode===`buffer`}get _bufferPercentage(){let e=Number.isFinite(this.max)&&this.max>0?this.max:100,t=Number.isFinite(this.bufferValue)?this.bufferValue:0;return Math.max(this._percentage,Math.min(100,Math.max(0,t/e*100)))}_aria(){return{role:`progressbar`,label:this.label,valueNow:this.indeterminate?R:this.value,valueText:this.indeterminate?`Loading`:`${Math.round(this._percentage)}%`}}_renderLinear(){let e=this._aria(),t=this._percentage>0,n=t&&this._percentage<=2,r=t?this._percentage:0,i=this._isBuffer&&this._bufferPercentage>r,a=`M-40 7 C-35 7 -35 4 -30 4 S-25 7 -20 7 S-15 10 -10 10 S-5 7 0 7 C5 7 5 4 10 4 S15 7 20 7 S25 10 30 10 S35 7 40 7 C45 7 45 4 50 4 S55 7 60 7 S65 10 70 10 S75 7 80 7`,o=`M-40 7 C-35 7 -35 7 -30 7 S-25 7 -20 7 S-15 7 -10 7 S-5 7 0 7 C5 7 5 7 10 7 S15 7 20 7 S25 7 30 7 S35 7 40 7 C45 7 45 7 50 7 S55 7 60 7 S65 7 70 7 S75 7 80 7`;return L`
|
|
1176
1176
|
<div
|
|
1177
1177
|
class="linear progress-linear ${this._isWavy?`wavy progress-wavy`:`flat`} ${this.indeterminate?`indeterminate`:this._isBuffer?`buffer`:`determinate`}"
|
|
1178
1178
|
part="progress"
|
|
@@ -1184,14 +1184,14 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
1184
1184
|
aria-valuetext=${e.valueText}
|
|
1185
1185
|
style="--_progress: ${this._percentage}%; --_p: ${this._percentage}; --_active-end: ${t?`max(var(--_thickness), ${this._percentage}%)`:`0px`}; --_buffer-start: ${r}%; --_buffer-end: ${this._bufferPercentage}%; --_buffer-gap-start: ${t?`var(--_gap)`:`0px`};"
|
|
1186
1186
|
>
|
|
1187
|
-
${this._isWavy?
|
|
1187
|
+
${this._isWavy?L`<svg class="wave-svg" aria-hidden="true">
|
|
1188
1188
|
<defs>
|
|
1189
1189
|
<pattern id="progress-wave" width="40" height="14" patternUnits="userSpaceOnUse">
|
|
1190
1190
|
<path d=${a}>
|
|
1191
|
-
${this.waveTransition&&!this._reduceMotion?
|
|
1191
|
+
${this.waveTransition&&!this._reduceMotion?ye`<animate attributeName="d" values="${a};${o};${o};${a};${a}" keyTimes="0;0.25;0.5;0.75;1" dur="2s" calcMode="spline" keySplines="0.2 0 0 1;0 0 1 1;0.2 0 0 1;0 0 1 1" repeatCount="indefinite"></animate>`:R}
|
|
1192
1192
|
</path>
|
|
1193
1193
|
</pattern>
|
|
1194
|
-
${this.indeterminate?
|
|
1194
|
+
${this.indeterminate?ye`
|
|
1195
1195
|
<mask id="wave-active-mask">
|
|
1196
1196
|
<rect width="100%" height="14" fill="black"></rect>
|
|
1197
1197
|
<rect class="mask-window primary-window" width="8%" height="14" rx="7" fill="white"></rect>
|
|
@@ -1201,12 +1201,12 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
1201
1201
|
<rect width="100%" height="14" fill="white"></rect>
|
|
1202
1202
|
<rect class="mask-window inverse-window primary-window" width="8%" height="14" rx="7" fill="black"></rect>
|
|
1203
1203
|
<rect class="mask-window inverse-window secondary-window" width="8%" height="14" rx="7" fill="black"></rect>
|
|
1204
|
-
</mask>`:
|
|
1204
|
+
</mask>`:R}
|
|
1205
1205
|
</defs>
|
|
1206
|
-
${this.indeterminate?
|
|
1207
|
-
<rect class="wave-surface" x="0" y="0" width="100%" height="14" mask="url(#wave-active-mask)" part="indicator"></rect>`:
|
|
1208
|
-
${n?
|
|
1209
|
-
</svg>`:this.indeterminate?
|
|
1206
|
+
${this.indeterminate?ye`<rect class="indeterminate-track" x="0" y="5" width="100%" height="4" rx="2" mask="url(#wave-track-mask)"></rect>
|
|
1207
|
+
<rect class="wave-surface" x="0" y="0" width="100%" height="14" mask="url(#wave-active-mask)" part="indicator"></rect>`:ye`<rect class="wave-window active ${n?`initial`:``}" part="indicator" x="0" y="0" width="${this._percentage}%" height="14" rx="7" ry="7"></rect>
|
|
1208
|
+
${n?ye`<circle class="initial-dot" cx="7" cy="7" r="2"></circle>`:R}`}
|
|
1209
|
+
</svg>`:this.indeterminate?L`<svg class="flat-indeterminate-svg" aria-hidden="true">
|
|
1210
1210
|
<defs>
|
|
1211
1211
|
<mask id="flat-active-mask">
|
|
1212
1212
|
<rect width="100%" height="100%" fill="black"></rect>
|
|
@@ -1221,13 +1221,13 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
1221
1221
|
</defs>
|
|
1222
1222
|
<rect class="flat-track-surface" width="100%" height="100%" rx="7" mask="url(#flat-track-mask)"></rect>
|
|
1223
1223
|
<rect class="flat-active-surface" width="100%" height="100%" mask="url(#flat-active-mask)" part="indicator"></rect>
|
|
1224
|
-
</svg>`:
|
|
1225
|
-
${i?
|
|
1224
|
+
</svg>`:L`<span class="active" part="indicator"></span>`}
|
|
1225
|
+
${i?L`<span class="buffer-segment" part="buffer"></span>`:R}
|
|
1226
1226
|
<span class="track track-before" part="track"></span>
|
|
1227
1227
|
<span class="track track-after" part="track"></span>
|
|
1228
|
-
${this.stopIndicator?
|
|
1228
|
+
${this.stopIndicator?L`<span class="stop" part="stop-indicator"></span>`:R}
|
|
1229
1229
|
</div>
|
|
1230
|
-
`}_circularPath(e=0,t=100,n=1.6,r=0){let i=Math.max(0,t-e),a=Math.max(2,Math.ceil(i/100*120)),o=[];for(let t=0;t<=a;t++){let s=e+t/a*i,c=s/100*Math.PI*2-Math.PI/2,l=19+Math.sin((s/100*8+r)*Math.PI*2)*n,u=26+Math.cos(c)*l,d=26+Math.sin(c)*l;o.push(`${t===0?`M`:`L`}${u.toFixed(2)} ${d.toFixed(2)}`)}return o.join(` `)}_circularWaveFrames(e){let t=this.waveTransition?[1.6,0,0,1.6,1.6]:[1.6,1.6,1.6,1.6,1.6];return[0,.25,.5,.75,1].map((n,r)=>this._circularPath(0,e,t[r],n)).join(`;`)}_circularGapPercentage(){let{size:e,thickness:t}={small:{size:40,thickness:4},medium:{size:44,thickness:8},large:{size:48,thickness:4},xlarge:{size:52,thickness:8}}[this.size],n=19/52*e,r=Math.PI*2*n;return(4+t)/r*100}_renderCircular(){let e=this._aria(),t=this._circularGapPercentage(),n=t/2,r=this._percentage<=0,i=this._percentage>=100,a=this._isBuffer?this._bufferPercentage:this._percentage,o=a>=100,s=i?100:Math.max(0,this._percentage-n),c=r?0:Math.min(100,this._percentage+n),l=o?100-t:Math.max(c,a-n),u=this._isBuffer&&a>this._percentage&&l>c,d=u?a:this._percentage,f=d<=0,p=f?0:Math.min(100,d+n),m=f?100:Math.max(p,100-t),h=f?100:Math.max(0,100-t-p),g=f?1:Math.min(1,h/t),_=d<100,v=this._circularPath(),y=this._circularWaveFrames(100),b=this._circularPath(0,s),x=this._circularPath(0,Math.max(.01,s),0),S=this._circularWaveFrames(i?100:s),C=u?this._circularPath(c,l,0):``,w=_?this._circularPath(p,m,0):``;return
|
|
1230
|
+
`}_circularPath(e=0,t=100,n=1.6,r=0){let i=Math.max(0,t-e),a=Math.max(2,Math.ceil(i/100*120)),o=[];for(let t=0;t<=a;t++){let s=e+t/a*i,c=s/100*Math.PI*2-Math.PI/2,l=19+Math.sin((s/100*8+r)*Math.PI*2)*n,u=26+Math.cos(c)*l,d=26+Math.sin(c)*l;o.push(`${t===0?`M`:`L`}${u.toFixed(2)} ${d.toFixed(2)}`)}return o.join(` `)}_circularWaveFrames(e){let t=this.waveTransition?[1.6,0,0,1.6,1.6]:[1.6,1.6,1.6,1.6,1.6];return[0,.25,.5,.75,1].map((n,r)=>this._circularPath(0,e,t[r],n)).join(`;`)}_circularGapPercentage(){let{size:e,thickness:t}={small:{size:40,thickness:4},medium:{size:44,thickness:8},large:{size:48,thickness:4},xlarge:{size:52,thickness:8}}[this.size],n=19/52*e,r=Math.PI*2*n;return(4+t)/r*100}_renderCircular(){let e=this._aria(),t=this._circularGapPercentage(),n=t/2,r=this._percentage<=0,i=this._percentage>=100,a=this._isBuffer?this._bufferPercentage:this._percentage,o=a>=100,s=i?100:Math.max(0,this._percentage-n),c=r?0:Math.min(100,this._percentage+n),l=o?100-t:Math.max(c,a-n),u=this._isBuffer&&a>this._percentage&&l>c,d=u?a:this._percentage,f=d<=0,p=f?0:Math.min(100,d+n),m=f?100:Math.max(p,100-t),h=f?100:Math.max(0,100-t-p),g=f?1:Math.min(1,h/t),_=d<100,v=this._circularPath(),y=this._circularWaveFrames(100),b=this._circularPath(0,s),x=this._circularPath(0,Math.max(.01,s),0),S=this._circularWaveFrames(i?100:s),C=u?this._circularPath(c,l,0):``,w=_?this._circularPath(p,m,0):``;return L`
|
|
1231
1231
|
<div
|
|
1232
1232
|
class="circular progress-circular ${this._isWavy?`wavy`:`flat`} ${this.indeterminate?`indeterminate`:this._isBuffer?`buffer`:`determinate`}"
|
|
1233
1233
|
part="progress"
|
|
@@ -1240,10 +1240,10 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
1240
1240
|
style="--_progress: ${this._percentage}; --_p: ${this._percentage};"
|
|
1241
1241
|
>
|
|
1242
1242
|
<svg part="svg" viewBox="0 0 52 52" aria-hidden="true">
|
|
1243
|
-
${this.indeterminate&&this._isWavy?
|
|
1243
|
+
${this.indeterminate&&this._isWavy?ye`<defs>
|
|
1244
1244
|
<mask id="circular-wavy-track-mask" maskUnits="userSpaceOnUse" x="0" y="0" width="52" height="52">
|
|
1245
1245
|
<circle class="window-mask" cx="26" cy="26" r="19" pathLength="100" transform="rotate(-90 26 26)" stroke="white" stroke-dasharray="56 44" stroke-dashoffset="-28">
|
|
1246
|
-
${this._reduceMotion?
|
|
1246
|
+
${this._reduceMotion?R:ye`
|
|
1247
1247
|
<animate attributeName="stroke-dasharray" values="56 44;0 100;56 44" keyTimes="0;0.5;1" dur="3.2s" calcMode="spline" keySplines="0.25 0.1 0.25 1;0.25 0.1 0.25 1" repeatCount="indefinite"></animate>
|
|
1248
1248
|
<animate attributeName="stroke-dashoffset" values="-28;-102;-128" keyTimes="0;0.5;1" dur="3.2s" calcMode="spline" keySplines="0.25 0.1 0.25 1;0.25 0.1 0.25 1" repeatCount="indefinite"></animate>
|
|
1249
1249
|
`}
|
|
@@ -1251,17 +1251,17 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
1251
1251
|
</mask>
|
|
1252
1252
|
<mask id="circular-wavy-active-mask" maskUnits="userSpaceOnUse" x="0" y="0" width="52" height="52">
|
|
1253
1253
|
<circle class="window-mask" cx="26" cy="26" r="19" pathLength="100" transform="rotate(-90 26 26)" stroke="white" stroke-dasharray="12 88" stroke-dashoffset="0">
|
|
1254
|
-
${this._reduceMotion?
|
|
1254
|
+
${this._reduceMotion?R:ye`
|
|
1255
1255
|
<animate attributeName="stroke-dasharray" values="12 88;68 32;12 88" keyTimes="0;0.5;1" dur="3.2s" calcMode="spline" keySplines="0.25 0.1 0.25 1;0.25 0.1 0.25 1" repeatCount="indefinite"></animate>
|
|
1256
1256
|
<animate attributeName="stroke-dashoffset" values="0;-18;-100" keyTimes="0;0.5;1" dur="3.2s" calcMode="spline" keySplines="0.25 0.1 0.25 1;0.25 0.1 0.25 1" repeatCount="indefinite"></animate>
|
|
1257
1257
|
`}
|
|
1258
1258
|
</circle>
|
|
1259
1259
|
</mask>
|
|
1260
|
-
</defs>`:
|
|
1261
|
-
${this.indeterminate?
|
|
1262
|
-
${u?
|
|
1263
|
-
${this._isWavy?this.indeterminate?
|
|
1264
|
-
${this._reduceMotion?
|
|
1260
|
+
</defs>`:R}
|
|
1261
|
+
${this.indeterminate?ye`<circle class="track" part="track" cx="26" cy="26" r="19" pathLength="100" mask=${this._isWavy?`url(#circular-wavy-track-mask)`:R}></circle>`:_?ye`<path class="track" part="track" d=${w} style="opacity: ${g}"></path>`:R}
|
|
1262
|
+
${u?ye`<path class="buffer-segment" part="buffer" d=${C}></path>`:R}
|
|
1263
|
+
${this._isWavy?this.indeterminate?ye`<path class="active" part="indicator" d=${v} pathLength="100" mask="url(#circular-wavy-active-mask)">
|
|
1264
|
+
${this._reduceMotion?R:ye`<animate
|
|
1265
1265
|
attributeName="d"
|
|
1266
1266
|
values=${y}
|
|
1267
1267
|
keyTimes="0;0.25;0.5;0.75;1"
|
|
@@ -1269,8 +1269,8 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
1269
1269
|
calcMode="linear"
|
|
1270
1270
|
repeatCount="indefinite"
|
|
1271
1271
|
></animate>`}
|
|
1272
|
-
</path>`:r?
|
|
1273
|
-
${this._reduceMotion?
|
|
1272
|
+
</path>`:r?R:ye`<path class="active" part="indicator" d=${i?v:b}>
|
|
1273
|
+
${this._reduceMotion?R:ye`<animate
|
|
1274
1274
|
attributeName="d"
|
|
1275
1275
|
values=${S}
|
|
1276
1276
|
keyTimes="0;0.25;0.5;0.75;1"
|
|
@@ -1278,10 +1278,10 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
1278
1278
|
calcMode="linear"
|
|
1279
1279
|
repeatCount="indefinite"
|
|
1280
1280
|
></animate>`}
|
|
1281
|
-
</path>`:i?
|
|
1281
|
+
</path>`:i?ye`<circle class="active" part="indicator" cx="26" cy="26" r="19"></circle>`:r?R:ye`<path class="active" part="indicator" d=${x}></path>`}
|
|
1282
1282
|
</svg>
|
|
1283
1283
|
</div>
|
|
1284
|
-
`}render(){return this._isCircular?this._renderCircular():this._renderLinear()}static{this.styles=[
|
|
1284
|
+
`}render(){return this._isCircular?this._renderCircular():this._renderLinear()}static{this.styles=[W,g`
|
|
1285
1285
|
@keyframes linear-indeterminate-primary {
|
|
1286
1286
|
0% { inset-inline-start: -145.167%; inline-size: 8%; }
|
|
1287
1287
|
20% { inset-inline-start: -113.333%; inline-size: 48%; }
|
|
@@ -1591,7 +1591,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
1591
1591
|
stroke-dashoffset: -42 !important;
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
|
-
`]}};
|
|
1594
|
+
`]}};G([B({type:Number,reflect:!0})],Qe.prototype,`value`,void 0),G([B({type:Number,reflect:!0})],Qe.prototype,`max`,void 0),G([B({reflect:!0})],Qe.prototype,`variant`,void 0),G([B({reflect:!0})],Qe.prototype,`size`,void 0),G([B({type:Boolean,reflect:!0})],Qe.prototype,`indeterminate`,void 0),G([B({reflect:!0})],Qe.prototype,`mode`,void 0),G([B({type:Number,reflect:!0,attribute:`buffer-value`})],Qe.prototype,`bufferValue`,void 0),G([B({type:Boolean,reflect:!0,attribute:`stop-indicator`})],Qe.prototype,`stopIndicator`,void 0),G([B({type:Boolean,reflect:!0,attribute:`wave-transition`})],Qe.prototype,`waveTransition`,void 0),G([B({attribute:`aria-label`})],Qe.prototype,`label`,void 0),G([V()],Qe.prototype,`_percentage`,void 0),G([V()],Qe.prototype,`_reduceMotion`,void 0),Qe=G([z(`moni-progress`)],Qe);var $e,et=class extends U{static{$e=this}constructor(...e){super(...e),this._hasLabel=!1,this.variant=`filled`,this.size=`small`,this.shape=`round`,this.disabled=!1,this.loading=!1,this.active=!1,this.icon=``,this.iconTrailing=``,this.type=`button`,this.href=``,this.target=``}static{this._deprecationWarned=!1}connectedCallback(){super.connectedCallback(),this._hasLabel=this._hasDefaultSlotContent(this.childNodes),!$e._deprecationWarned&&this.size===`extra`&&($e._deprecationWarned=!0,console.warn(`[moni-ui] <moni-button size="extra"> is deprecated since v0.3.1. Material Design 3 Expressive uses "xlarge". See m3-docs/components/buttons/overview.md § Sizes.`))}_hasDefaultSlotContent(e){return Array.from(e).some(e=>e.nodeType===Node.TEXT_NODE?!!e.textContent?.trim():e instanceof Element&&!e.hasAttribute(`slot`))}_handleLabelSlotChange(e){let t=e.currentTarget;this._hasLabel=this._hasDefaultSlotContent(t.assignedNodes({flatten:!0}))}static{this.styles=[W,g`
|
|
1595
1595
|
:host {
|
|
1596
1596
|
display: inline-flex;
|
|
1597
1597
|
vertical-align: middle;
|
|
@@ -2162,29 +2162,29 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
2162
2162
|
.loading-spinner::part(progress) {
|
|
2163
2163
|
border-width: 0.1875rem;
|
|
2164
2164
|
}
|
|
2165
|
-
`]}handleLinkClick(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}render(){let e=``;this.variant===`outlined`?e=`border`:this.variant===`tonal`||this.variant===`fill`?e=`fill`:this.variant===`text`?e=`transparent`:this.variant===`elevated`?e=`elevated`:this.variant===`error`&&(e=`error`);let t=this.shape;this.active&&(this.shape===`round`?t=`square`:this.shape===`square`?t=`round`:this.shape===`left-round`?t=`left-square`:this.shape===`right-round`?t=`right-square`:this.shape===`top-round`?t=`top-square`:this.shape===`bottom-round`?t=`bottom-square`:this.shape===`left-round-flat`?t=`left-square-flat`:this.shape===`right-round-flat`?t=`right-square-flat`:this.shape===`top-round-flat`?t=`top-square-flat`:this.shape===`bottom-round-flat`?t=`bottom-square-flat`:this.shape===`inner-round`&&(t=`inner-round`));let n=[`button`,e,this.size,t,this.active?`active`:``,!this._hasLabel&&(this.icon||this.iconTrailing||this.loading)?`icon-only`:``].filter(Boolean).join(` `),r=this.loading?
|
|
2165
|
+
`]}handleLinkClick(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}render(){let e=``;this.variant===`outlined`?e=`border`:this.variant===`tonal`||this.variant===`fill`?e=`fill`:this.variant===`text`?e=`transparent`:this.variant===`elevated`?e=`elevated`:this.variant===`error`&&(e=`error`);let t=this.shape;this.active&&(this.shape===`round`?t=`square`:this.shape===`square`?t=`round`:this.shape===`left-round`?t=`left-square`:this.shape===`right-round`?t=`right-square`:this.shape===`top-round`?t=`top-square`:this.shape===`bottom-round`?t=`bottom-square`:this.shape===`left-round-flat`?t=`left-square-flat`:this.shape===`right-round-flat`?t=`right-square-flat`:this.shape===`top-round-flat`?t=`top-square-flat`:this.shape===`bottom-round-flat`?t=`bottom-square-flat`:this.shape===`inner-round`&&(t=`inner-round`));let n=[`button`,e,this.size,t,this.active?`active`:``,!this._hasLabel&&(this.icon||this.iconTrailing||this.loading)?`icon-only`:``].filter(Boolean).join(` `),r=this.loading?L`<moni-progress
|
|
2166
2166
|
class="loading-spinner"
|
|
2167
2167
|
part="loading"
|
|
2168
2168
|
variant="circular"
|
|
2169
2169
|
indeterminate
|
|
2170
2170
|
size="small"
|
|
2171
|
-
></moni-progress>`:this.icon?
|
|
2171
|
+
></moni-progress>`:this.icon?L`<span class="icon" part="icon"
|
|
2172
2172
|
><moni-icon name="${this.icon}"></moni-icon
|
|
2173
|
-
></span>`:
|
|
2173
|
+
></span>`:L`<slot name="icon" part="icon"></slot>`,i=this.iconTrailing?L`<span class="icon" part="icon-trailing"
|
|
2174
2174
|
><moni-icon name="${this.iconTrailing}"></moni-icon
|
|
2175
|
-
></span>`:
|
|
2175
|
+
></span>`:L`<slot name="icon-trailing" part="icon-trailing"></slot>`,a=L`${r}
|
|
2176
2176
|
<span part="label" ?hidden=${!this._hasLabel} style=${this.loading?`opacity: 0.5;`:``}><slot @slotchange=${this._handleLabelSlotChange}></slot></span>
|
|
2177
|
-
${i}`;return this.href?
|
|
2177
|
+
${i}`;return this.href?L`<a
|
|
2178
2178
|
class=${n}
|
|
2179
2179
|
part="button"
|
|
2180
2180
|
href=${this.disabled?void 0:this.href}
|
|
2181
|
-
target=${
|
|
2181
|
+
target=${K(this.target||void 0)}
|
|
2182
2182
|
aria-disabled=${this.disabled?`true`:`false`}
|
|
2183
2183
|
aria-busy=${this.loading?`true`:`false`}
|
|
2184
2184
|
@click=${this.handleLinkClick}
|
|
2185
2185
|
>
|
|
2186
2186
|
${a}
|
|
2187
|
-
</a>`:
|
|
2187
|
+
</a>`:L`<button
|
|
2188
2188
|
class=${n}
|
|
2189
2189
|
part="button"
|
|
2190
2190
|
type=${this.type}
|
|
@@ -2193,7 +2193,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
2193
2193
|
aria-busy=${this.loading?`true`:`false`}
|
|
2194
2194
|
>
|
|
2195
2195
|
${a}
|
|
2196
|
-
</button>`}};
|
|
2196
|
+
</button>`}};G([V()],et.prototype,`_hasLabel`,void 0),G([B({reflect:!0})],et.prototype,`variant`,void 0),G([B({reflect:!0})],et.prototype,`size`,void 0),G([B({reflect:!0})],et.prototype,`shape`,void 0),G([B({type:Boolean,reflect:!0})],et.prototype,`disabled`,void 0),G([B({type:Boolean,reflect:!0})],et.prototype,`loading`,void 0),G([B({type:Boolean,reflect:!0})],et.prototype,`active`,void 0),G([B({reflect:!0})],et.prototype,`icon`,void 0),G([B({reflect:!0,attribute:`icon-trailing`})],et.prototype,`iconTrailing`,void 0),G([B({reflect:!0})],et.prototype,`type`,void 0),G([B({reflect:!0})],et.prototype,`href`,void 0),G([B({reflect:!0})],et.prototype,`target`,void 0),et=$e=G([z(`moni-button`)],et);var tt=class extends U{constructor(...e){super(...e),this.variant=`elevated`,this.clickable=!1,this.draggable=!1,this.disabled=!1}static{this.styles=[W,g`
|
|
2197
2197
|
:host {
|
|
2198
2198
|
display: block;
|
|
2199
2199
|
font-family: var(--font);
|
|
@@ -2321,7 +2321,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
2321
2321
|
letter-spacing: inherit;
|
|
2322
2322
|
color: inherit;
|
|
2323
2323
|
}
|
|
2324
|
-
`]}render(){return
|
|
2324
|
+
`]}render(){return L`
|
|
2325
2325
|
<div class="media" part="media">
|
|
2326
2326
|
<slot name="media"></slot>
|
|
2327
2327
|
</div>
|
|
@@ -2335,7 +2335,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
2335
2335
|
<div class="actions" part="actions">
|
|
2336
2336
|
<slot name="actions"></slot>
|
|
2337
2337
|
</div>
|
|
2338
|
-
`}};
|
|
2338
|
+
`}};G([B({reflect:!0})],tt.prototype,`variant`,void 0),G([B({type:Boolean,reflect:!0})],tt.prototype,`clickable`,void 0),G([B({type:Boolean,reflect:!0})],tt.prototype,`draggable`,void 0),G([B({type:Boolean,reflect:!0})],tt.prototype,`disabled`,void 0),tt=G([z(`moni-card`)],tt);var nt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},rt=e=>(...t)=>({_$litDirective$:e,values:t}),it=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},{I:at}=Pe,ot=e=>e.strings===void 0,st={},ct=(e,t=st)=>e._$AH=t,lt=rt(class extends it{constructor(e){if(super(e),e.type!==nt.PROPERTY&&e.type!==nt.ATTRIBUTE&&e.type!==nt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ot(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===be||t===R)return t;let n=e.element,r=e.name;if(e.type===nt.PROPERTY){if(t===n[r])return be}else if(e.type===nt.BOOLEAN_ATTRIBUTE){if(!!t===n.hasAttribute(r))return be}else if(e.type===nt.ATTRIBUTE&&n.getAttribute(r)===t+``)return be;return ct(e),t}}),ut=class extends U{static{this.formAssociated=!0}constructor(){super(),this.label=``,this.checked=!1,this.disabled=!1,this.uncheckedIcon=``,this.checkedIcon=``,this.size=`medium`,this.name=``,this.value=``,this._internals=this.attachInternals()}updated(e){this._input&&(e.has(`checked`)&&(this._input.checked=this.checked,this._internals?.setFormValue?.(this.checked?this.value||`on`:null)),e.has(`disabled`)&&(this._input.disabled=this.disabled))}static{this.styles=[W,g`
|
|
2339
2339
|
:host {
|
|
2340
2340
|
--_size: 1.5rem;
|
|
2341
2341
|
display: inline-flex;
|
|
@@ -2458,20 +2458,20 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
2458
2458
|
outline: 0.125rem solid var(--primary);
|
|
2459
2459
|
outline-offset: 0.375rem;
|
|
2460
2460
|
}
|
|
2461
|
-
`]}_onChange(e){this.checked=e.target.checked,
|
|
2461
|
+
`]}_onChange(e){this.checked=e.target.checked,Ye(this,`moni-change`,{detail:{value:this.checked,originalEvent:e}})}render(){let e=!!(this.uncheckedIcon||this.checkedIcon),t=e?this.uncheckedIcon:`check_box_outline_blank`,n=e?this.checkedIcon:`check_box`,r=this.checked?n:t;return L`<label part="checkbox">
|
|
2462
2462
|
<input
|
|
2463
2463
|
type="checkbox"
|
|
2464
2464
|
.checked=${lt(this.checked)}
|
|
2465
2465
|
?disabled=${this.disabled}
|
|
2466
|
-
name=${
|
|
2467
|
-
value=${
|
|
2466
|
+
name=${K(this.name||void 0)}
|
|
2467
|
+
value=${K(this.value||void 0)}
|
|
2468
2468
|
@change=${this._onChange}
|
|
2469
2469
|
/>
|
|
2470
2470
|
<span class=${`${this.label?`has-label `:``}${e?`custom-icons`:``}`}>
|
|
2471
2471
|
<i aria-hidden="true">${r}</i>
|
|
2472
|
-
${this.label?
|
|
2472
|
+
${this.label?L`${this.label}`:L`<slot></slot>`}
|
|
2473
2473
|
</span>
|
|
2474
|
-
</label>`}};
|
|
2474
|
+
</label>`}};G([B({reflect:!0})],ut.prototype,`label`,void 0),G([B({type:Boolean,reflect:!0})],ut.prototype,`checked`,void 0),G([B({type:Boolean,reflect:!0})],ut.prototype,`disabled`,void 0),G([B({reflect:!0,attribute:`unchecked-icon`})],ut.prototype,`uncheckedIcon`,void 0),G([B({reflect:!0,attribute:`checked-icon`})],ut.prototype,`checkedIcon`,void 0),G([B({reflect:!0})],ut.prototype,`size`,void 0),G([B({reflect:!0})],ut.prototype,`name`,void 0),G([B({reflect:!0})],ut.prototype,`value`,void 0),G([H(`input`)],ut.prototype,`_input`,void 0),ut=G([z(`moni-checkbox`)],ut);var dt=class extends U{constructor(...e){super(...e),this.variant=`assist`,this.size=`small`,this.shape=`round`,this.selected=!1,this.removable=!1,this.disabled=!1,this.loading=!1,this.icon=``,this._hasSlottedIcon=!1}_handleSlotChange(e){let t=e.target;this._hasSlottedIcon=t.assignedNodes({flatten:!0}).length>0}_handleRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent(`remove`,{bubbles:!0,composed:!0}))}get _variant(){return this.variant===`outlined`?`assist`:this.variant===`fill`?`filter`:this.variant}static{this.styles=[W,g`
|
|
2475
2475
|
:host {
|
|
2476
2476
|
display: inline-flex;
|
|
2477
2477
|
vertical-align: middle;
|
|
@@ -2655,7 +2655,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
2655
2655
|
.loading-spinner::part(progress) {
|
|
2656
2656
|
border-width: 0.1875rem;
|
|
2657
2657
|
}
|
|
2658
|
-
`]}render(){let e=this._variant,t=!!this.icon||this._hasSlottedIcon,n=[`chip`,e,this.size,this.shape,this.selected?`selected`:``,t?`has-icon`:``].filter(Boolean).join(` `);if(this.loading)return
|
|
2658
|
+
`]}render(){let e=this._variant,t=!!this.icon||this._hasSlottedIcon,n=[`chip`,e,this.size,this.shape,this.selected?`selected`:``,t?`has-icon`:``].filter(Boolean).join(` `);if(this.loading)return L`<button
|
|
2659
2659
|
class=${n}
|
|
2660
2660
|
part="chip"
|
|
2661
2661
|
type="button"
|
|
@@ -2669,17 +2669,17 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
2669
2669
|
indeterminate
|
|
2670
2670
|
size="small"
|
|
2671
2671
|
></moni-progress>
|
|
2672
|
-
</button>`;let r=this.removable||e===`input`,i=this.icon?
|
|
2672
|
+
</button>`;let r=this.removable||e===`input`,i=this.icon?L`<span class="icon" part="icon"
|
|
2673
2673
|
><moni-icon name="${this.icon}"></moni-icon
|
|
2674
|
-
></span>`:
|
|
2674
|
+
></span>`:L`<slot
|
|
2675
2675
|
name="icon"
|
|
2676
2676
|
part="icon"
|
|
2677
2677
|
class="icon"
|
|
2678
2678
|
?hidden=${!this._hasSlottedIcon}
|
|
2679
2679
|
@slotchange=${this._handleSlotChange}
|
|
2680
|
-
></slot>`,a=r?
|
|
2680
|
+
></slot>`,a=r?L`<span class="remove" part="remove" aria-hidden="true" @click=${this._handleRemoveClick}
|
|
2681
2681
|
><moni-icon name="close"></moni-icon
|
|
2682
|
-
></span>`:
|
|
2682
|
+
></span>`:R;return L`<button
|
|
2683
2683
|
class=${n}
|
|
2684
2684
|
part="chip"
|
|
2685
2685
|
type="button"
|
|
@@ -2688,7 +2688,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
2688
2688
|
${i}
|
|
2689
2689
|
<span part="label"><slot></slot></span>
|
|
2690
2690
|
${a}
|
|
2691
|
-
</button>`}};
|
|
2691
|
+
</button>`}};G([B({reflect:!0})],dt.prototype,`variant`,void 0),G([B({reflect:!0})],dt.prototype,`size`,void 0),G([B({reflect:!0})],dt.prototype,`shape`,void 0),G([B({type:Boolean,reflect:!0})],dt.prototype,`selected`,void 0),G([B({type:Boolean,reflect:!0})],dt.prototype,`removable`,void 0),G([B({type:Boolean,reflect:!0})],dt.prototype,`disabled`,void 0),G([B({type:Boolean,reflect:!0})],dt.prototype,`loading`,void 0),G([B({reflect:!0})],dt.prototype,`icon`,void 0),G([V()],dt.prototype,`_hasSlottedIcon`,void 0),dt=G([z(`moni-chip`)],dt);var ft=rt(class extends it{constructor(e){if(super(e),e.type!==nt.ATTRIBUTE||e.name!==`class`||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return` `+Object.keys(e).filter(t=>e[t]).join(` `)+` `}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(` `).split(/\s/).filter(e=>e!==``)));for(let e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}let n=e.element.classList;for(let e of this.st)e in t||(n.remove(e),this.st.delete(e));for(let e in t){let r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return be}}),pt=class extends U{static{this.formAssociated=!0}constructor(){super(),this.name=``,this.label=``,this.variant=`outlined`,this.size=`medium`,this.shape=`no-round`,this.disabled=!1,this.helper=``,this.errorText=``,this.error=!1,this.value=`#6750a4`,this._internals=this.attachInternals()}updated(e){e.has(`value`)&&(this._colorInput&&(this._colorInput.value=this.value),this._textInput&&(this._textInput.value=this.value)),e.has(`disabled`)&&(this._colorInput&&(this._colorInput.disabled=this.disabled),this._textInput&&(this._textInput.disabled=this.disabled)),this._internals?.setFormValue?.(this.value)}_onColorInput(e){let t=e.target;this.value=t.value,this._internals?.setFormValue?.(this.value),Ye(this,`moni-input`,{detail:{value:this.value,originalEvent:e}})}_onColorChange(e){let t=e.target;this.value=t.value,this._internals?.setFormValue?.(this.value),Ye(this,`moni-change`,{detail:{value:this.value,originalEvent:e}})}static{this.styles=[W,Ke,g`
|
|
2692
2692
|
.swatch {
|
|
2693
2693
|
inline-size: 1.5rem;
|
|
2694
2694
|
block-size: 1.5rem;
|
|
@@ -2710,7 +2710,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
2710
2710
|
z-index: 2;
|
|
2711
2711
|
cursor: pointer;
|
|
2712
2712
|
}
|
|
2713
|
-
`]}render(){let e=!!this.value;return
|
|
2713
|
+
`]}render(){let e=!!this.value;return L`<div class=${ft({field:!0,label:!!this.label,fill:this.variant===`filled`,border:this.variant===`outlined`,small:this.size===`small`,large:this.size===`large`,extra:this.size===`extra`,prefix:!0,invalid:this.error,round:this.shape===`round`,square:this.shape===`no-round`})} part="field">
|
|
2714
2714
|
<span
|
|
2715
2715
|
class="swatch"
|
|
2716
2716
|
style="--_swatch: ${this.value};"
|
|
@@ -2722,6 +2722,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
2722
2722
|
.value=${this.value}
|
|
2723
2723
|
?disabled=${this.disabled}
|
|
2724
2724
|
tabindex="-1"
|
|
2725
|
+
aria-label=${K(this.label||void 0)}
|
|
2725
2726
|
@input=${this._onColorInput}
|
|
2726
2727
|
@change=${this._onColorChange}
|
|
2727
2728
|
/>
|
|
@@ -2732,19 +2733,19 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
2732
2733
|
readonly
|
|
2733
2734
|
.value=${this.value}
|
|
2734
2735
|
?disabled=${this.disabled}
|
|
2735
|
-
name=${
|
|
2736
|
+
name=${K(this.name||void 0)}
|
|
2736
2737
|
class=${e?`active`:``}
|
|
2737
2738
|
/>
|
|
2738
|
-
${this.label?
|
|
2739
|
+
${this.label?L`<label
|
|
2739
2740
|
for="input"
|
|
2740
2741
|
part="label"
|
|
2741
2742
|
class=${ft({active:e})}
|
|
2742
2743
|
>${this.label}</label
|
|
2743
|
-
>`:
|
|
2744
|
-
${this.error?
|
|
2744
|
+
>`:R}
|
|
2745
|
+
${this.error?L`<output part="helper" class="invalid"
|
|
2745
2746
|
>${this.errorText||this.helper}</output
|
|
2746
|
-
>`:this.helper?
|
|
2747
|
-
</div>`}};
|
|
2747
|
+
>`:this.helper?L`<output part="helper">${this.helper}</output>`:R}
|
|
2748
|
+
</div>`}};G([B({reflect:!0})],pt.prototype,`name`,void 0),G([B({reflect:!0})],pt.prototype,`label`,void 0),G([B({reflect:!0})],pt.prototype,`variant`,void 0),G([B({reflect:!0})],pt.prototype,`size`,void 0),G([B({reflect:!0})],pt.prototype,`shape`,void 0),G([B({type:Boolean,reflect:!0})],pt.prototype,`disabled`,void 0),G([B({reflect:!0})],pt.prototype,`helper`,void 0),G([B({reflect:!0,attribute:`error-text`})],pt.prototype,`errorText`,void 0),G([B({type:Boolean,reflect:!0})],pt.prototype,`error`,void 0),G([B({reflect:!0})],pt.prototype,`value`,void 0),G([H(`input[type="color"]`)],pt.prototype,`_colorInput`,void 0),G([H(`input[type="text"]`)],pt.prototype,`_textInput`,void 0),pt=G([z(`moni-color-field`)],pt);var mt=class extends U{constructor(...e){super(...e),this.placement=`bottom`,this.noWrap=!1,this.active=!1,this.space=`no-space`,this.flip=!1,this._resolvedPlacement=`bottom`}updated(e){super.updated(e),e.has(`active`)&&this.active&&this.flip&&this.updateComplete.then(()=>this._maybeFlip())}_maybeFlip(){let e=this._menuEl;if(!e||!this.flip)return;let t=e.getBoundingClientRect(),n=window.innerWidth,r=window.innerHeight,i=t.bottom>r,a=t.top<0,o=t.right>n,s=t.left<0;this._resolvedPlacement=this.placement===`bottom`&&i?`top`:this.placement===`top`&&a?`bottom`:this.placement===`right`&&o?`left`:this.placement===`left`&&s?`right`:this.placement}static{this.styles=[W,g`
|
|
2748
2749
|
:host {
|
|
2749
2750
|
display: contents;
|
|
2750
2751
|
font-family: var(--font);
|
|
@@ -2903,12 +2904,12 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
2903
2904
|
flip-inline flip-block;
|
|
2904
2905
|
}
|
|
2905
2906
|
}
|
|
2906
|
-
`]}render(){return
|
|
2907
|
+
`]}render(){return L`<menu
|
|
2907
2908
|
class=${[this.active&&this.flip?this._resolvedPlacement:this.placement,this.space,this.noWrap?`no-wrap`:``,this.active?`active`:``].filter(Boolean).join(` `)}
|
|
2908
2909
|
part="menu"
|
|
2909
2910
|
>
|
|
2910
2911
|
<slot></slot>
|
|
2911
|
-
</menu>`}};
|
|
2912
|
+
</menu>`}};G([B({reflect:!0})],mt.prototype,`placement`,void 0),G([B({type:Boolean,reflect:!0,attribute:`no-wrap`})],mt.prototype,`noWrap`,void 0),G([B({type:Boolean,reflect:!0})],mt.prototype,`active`,void 0),G([B({reflect:!0})],mt.prototype,`space`,void 0),G([B({type:Boolean,reflect:!0})],mt.prototype,`flip`,void 0),G([V()],mt.prototype,`_resolvedPlacement`,void 0),G([H(`menu`)],mt.prototype,`_menuEl`,void 0),mt=G([z(`moni-menu`)],mt);var ht=class extends U{constructor(...e){super(...e),this.placement=`bottom`,this.flip=!1,this._x=0,this._y=0,this._open=!1,this._resolvedPlacement=`bottom`,this._target=null,this._docKeydown=e=>this._onDocKeydown(e),this._onContextMenu=e=>{if(e.preventDefault(),this._target){let t=this._target.getBoundingClientRect(),n=Math.min(192,window.innerWidth-16),r=Math.min(Math.max(8,e.clientX),window.innerWidth-n-8);this._x=r-t.left,this._y=e.clientY-t.top}else this._x=e.clientX,this._y=e.clientY;this._resolvedPlacement=this.placement,this._open=!0,this.updateComplete.then(()=>this._maybeFlip())},this._onDocumentClick=()=>{this._open&&=!1},this._onDocKeydown=e=>{e.key===`Escape`&&this._open&&(this._open=!1)}}connectedCallback(){super.connectedCallback(),this._target=this.parentElement,this._target&&(getComputedStyle(this._target).position===`static`&&(this._target.style.position=`relative`),this._target.addEventListener(`contextmenu`,this._onContextMenu)),document.addEventListener(`click`,this._onDocumentClick),document.addEventListener(`keydown`,this._docKeydown)}disconnectedCallback(){this._target&&this._target.removeEventListener(`contextmenu`,this._onContextMenu),document.removeEventListener(`click`,this._onDocumentClick),document.removeEventListener(`keydown`,this._docKeydown),super.disconnectedCallback()}_maybeFlip(){let e=this._menuEl?.shadowRoot?.querySelector(`menu`);if(!e)return;let t=e.getBoundingClientRect(),n=window.innerWidth,r=window.innerHeight,i=t.bottom>r,a=t.right>n;a&&(this._x=Math.max(8,this._x-(t.right-n)-8)),t.left<8&&(this._x+=8-t.left),this.flip&&(this.placement===`bottom`&&i?this._resolvedPlacement=`top`:this.placement===`top`&&t.top<0?this._resolvedPlacement=`bottom`:this.placement===`right`&&a?this._resolvedPlacement=`left`:this.placement===`left`&&t.left<0&&(this._resolvedPlacement=`right`))}static{this.styles=[W,g`
|
|
2912
2913
|
:host {
|
|
2913
2914
|
display: contents;
|
|
2914
2915
|
font-family: var(--font);
|
|
@@ -2923,7 +2924,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
2923
2924
|
min-inline-size: min(12rem, calc(100vw - 1rem));
|
|
2924
2925
|
z-index: 200;
|
|
2925
2926
|
}
|
|
2926
|
-
`]}render(){let e=this._open?this._resolvedPlacement:this.placement;return
|
|
2927
|
+
`]}render(){let e=this._open?this._resolvedPlacement:this.placement;return L`<div
|
|
2927
2928
|
class="menu-host"
|
|
2928
2929
|
style="--_x: ${this._x}px; --_y: ${this._y}px;"
|
|
2929
2930
|
>
|
|
@@ -2934,7 +2935,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
2934
2935
|
>
|
|
2935
2936
|
<slot></slot>
|
|
2936
2937
|
</moni-menu>
|
|
2937
|
-
</div>`}};
|
|
2938
|
+
</div>`}};G([B({reflect:!0})],ht.prototype,`placement`,void 0),G([B({type:Boolean,reflect:!0})],ht.prototype,`flip`,void 0),G([V()],ht.prototype,`_x`,void 0),G([V()],ht.prototype,`_y`,void 0),G([V()],ht.prototype,`_open`,void 0),G([V()],ht.prototype,`_resolvedPlacement`,void 0),G([H(`moni-menu`)],ht.prototype,`_menuEl`,void 0),ht=G([z(`moni-context-menu`)],ht);var gt=class extends U{constructor(...e){super(...e),this.open=!1,this.modal=!1,this.side=`center`,this.size=`medium`,this.title=``}willUpdate(e){if(e.has(`open`)&&this.open!==e.get(`open`)){let e=this.open,t=e?`moni-request-open`:`moni-request-close`;Ye(this,t,{cancelable:!0})||(this.open=!e)}}updated(e){e.has(`open`)&&this._dialog&&(this.open?(Ye(this,`moni-open`),this.modal?this._dialog.open||this._dialog.showModal():this._dialog.open||this._dialog.show()):(Ye(this,`moni-close`),this._dialog.open&&this._dialog.close()))}_onTransitionEnd(e){e.target===this._dialog&&e.propertyName===`transform`&&(this.open?Ye(this,`moni-opened`):Ye(this,`moni-closed`))}static{this.styles=[W,g`
|
|
2938
2939
|
:host {
|
|
2939
2940
|
display: contents;
|
|
2940
2941
|
}
|
|
@@ -3114,7 +3115,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
3114
3115
|
inset-block-start: 1rem;
|
|
3115
3116
|
}
|
|
3116
3117
|
}
|
|
3117
|
-
`]}render(){return
|
|
3118
|
+
`]}render(){return L`<dialog
|
|
3118
3119
|
part="dialog"
|
|
3119
3120
|
class=${[this.side,this.size,this.modal?`modal`:``].filter(Boolean).join(` `)}
|
|
3120
3121
|
@transitionend=${this._onTransitionEnd}
|
|
@@ -3124,7 +3125,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
3124
3125
|
</header>
|
|
3125
3126
|
<div part="content"><slot></slot></div>
|
|
3126
3127
|
<footer part="footer"><slot name="footer"></slot></footer>
|
|
3127
|
-
</dialog>`}};
|
|
3128
|
+
</dialog>`}};G([B({type:Boolean,reflect:!0})],gt.prototype,`open`,void 0),G([B({type:Boolean,reflect:!0})],gt.prototype,`modal`,void 0),G([B({reflect:!0})],gt.prototype,`side`,void 0),G([B({reflect:!0})],gt.prototype,`size`,void 0),G([B({reflect:!0})],gt.prototype,`title`,void 0),G([H(`dialog`)],gt.prototype,`_dialog`,void 0),gt=G([z(`moni-dialog`)],gt);var _t=class extends U{constructor(...e){super(...e),this.inset=`leading`}static{this.styles=[W,g`
|
|
3128
3129
|
:host {
|
|
3129
3130
|
display: block;
|
|
3130
3131
|
font-family: var(--font);
|
|
@@ -3155,7 +3156,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
3155
3156
|
min-block-size: 100%;
|
|
3156
3157
|
align-self: stretch;
|
|
3157
3158
|
}
|
|
3158
|
-
`]}render(){return
|
|
3159
|
+
`]}render(){return L`<slot></slot>`}};G([B({reflect:!0})],_t.prototype,`inset`,void 0),_t=G([z(`moni-divider`)],_t);var vt=class extends U{constructor(...e){super(...e),this.open=!1,this.title=``}static{this.styles=[W,g`
|
|
3159
3160
|
:host {
|
|
3160
3161
|
display: block;
|
|
3161
3162
|
font-family: var(--font);
|
|
@@ -3197,14 +3198,14 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
3197
3198
|
background-color: var(--surface-container-low);
|
|
3198
3199
|
color: var(--on-surface);
|
|
3199
3200
|
}
|
|
3200
|
-
`]}render(){return
|
|
3201
|
+
`]}render(){return L`<details ?open=${this.open} part="expansion">
|
|
3201
3202
|
<summary part="summary">
|
|
3202
3203
|
<slot name="summary">${this.title}</slot>
|
|
3203
3204
|
</summary>
|
|
3204
3205
|
<div class="body" part="body">
|
|
3205
3206
|
<slot></slot>
|
|
3206
3207
|
</div>
|
|
3207
|
-
</details>`}};
|
|
3208
|
+
</details>`}};G([B({type:Boolean,reflect:!0})],vt.prototype,`open`,void 0),G([B({reflect:!0})],vt.prototype,`title`,void 0),vt=G([z(`moni-expansion`)],vt);var yt=class extends U{constructor(...e){super(...e),this.size=`medium`,this.color=`primary`,this.shape=`rounded`,this.extended=!1,this.expanded=!1,this.disabled=!1,this.icon=`add`,this.label=``,this.accessibleLabel=``,this.type=`button`,this.name=``,this.value=``,this.position=``}focus(e){this._button?.focus(e)}static{this.styles=[W,g`
|
|
3208
3209
|
:host {
|
|
3209
3210
|
--_size: 3.5rem;
|
|
3210
3211
|
--_radius: 1rem;
|
|
@@ -3294,19 +3295,19 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
3294
3295
|
::slotted(*) { color: inherit; }
|
|
3295
3296
|
|
|
3296
3297
|
@media (prefers-reduced-motion: reduce) { button { transition-duration: .01ms; } }
|
|
3297
|
-
`]}render(){let e=!!this.label&&this.shape!==`circle`,t=this.accessibleLabel||this.label||this.icon||`Acción`;return
|
|
3298
|
+
`]}render(){let e=!!this.label&&this.shape!==`circle`,t=this.accessibleLabel||this.label||this.icon||`Acción`;return L`<button
|
|
3298
3299
|
part="button fab"
|
|
3299
3300
|
class=${e?`extended`:`icon-only`}
|
|
3300
3301
|
type=${this.type}
|
|
3301
|
-
name=${
|
|
3302
|
-
value=${
|
|
3302
|
+
name=${K(this.name||void 0)}
|
|
3303
|
+
value=${K(this.value||void 0)}
|
|
3303
3304
|
aria-label=${t}
|
|
3304
3305
|
?disabled=${this.disabled}
|
|
3305
3306
|
>
|
|
3306
|
-
${this.icon?
|
|
3307
|
-
${e?
|
|
3307
|
+
${this.icon?L`<span class="icon" part="icon"><moni-icon name=${this.icon}></moni-icon></span>`:R}
|
|
3308
|
+
${e?L`<span class="label" part="label">${this.label}</span>`:R}
|
|
3308
3309
|
<slot></slot>
|
|
3309
|
-
</button>`}};
|
|
3310
|
+
</button>`}};G([B({reflect:!0})],yt.prototype,`size`,void 0),G([B({reflect:!0})],yt.prototype,`color`,void 0),G([B({reflect:!0})],yt.prototype,`shape`,void 0),G([B({type:Boolean,reflect:!0})],yt.prototype,`extended`,void 0),G([B({type:Boolean,reflect:!0})],yt.prototype,`expanded`,void 0),G([B({type:Boolean,reflect:!0})],yt.prototype,`disabled`,void 0),G([B({reflect:!0})],yt.prototype,`icon`,void 0),G([B({reflect:!0})],yt.prototype,`label`,void 0),G([B({reflect:!0,attribute:`aria-label`})],yt.prototype,`accessibleLabel`,void 0),G([B({reflect:!0})],yt.prototype,`type`,void 0),G([B({reflect:!0})],yt.prototype,`name`,void 0),G([B({reflect:!0})],yt.prototype,`value`,void 0),G([B({reflect:!0})],yt.prototype,`position`,void 0),G([H(`button`)],yt.prototype,`_button`,void 0),yt=G([z(`moni-fab`)],yt);var bt=class extends U{constructor(...e){super(...e),this.open=!1,this.disabled=!1,this.icon=`add`,this.closeIcon=`close`,this.label=`Abrir acciones`,this.closeLabel=`Cerrar acciones`,this.size=`medium`,this.color=`primary`,this.shape=`rounded`,this.direction=`up`,this.position=``,this._effectiveDirection=`up`,this._crossAlign=`end`,this._actions=[],this._restoreFocus=!1,this._onDocumentPointer=e=>{this.open&&!e.composedPath().includes(this)&&(this.open=!1)},this._onDocumentClick=e=>{this.open&&!e.composedPath().includes(this)&&(this.open=!1)},this._onDocumentKey=e=>{if(!this.open)return;if(e.key===`Escape`){e.preventDefault(),this._restoreFocus=!0,this.open=!1;return}if(![`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key))return;e.preventDefault();let t=this._actions.indexOf(document.activeElement),n=e.key===`ArrowDown`||e.key===`ArrowRight`,r=e.key===`Home`?0:e.key===`End`?this._actions.length-1:(t+(n?1:-1)+this._actions.length)%this._actions.length;this._actions[r]?.focus()},this._onViewportChange=()=>this._placeMenu(),this._toggle=()=>{this.disabled||(this._restoreFocus=this.open,this.open=!this.open)},this._slotChanged=()=>{this._actions.forEach(e=>e.removeEventListener(`click`,this._selectAction)),this._actions=this._slot.assignedElements({flatten:!0}).filter(e=>e.tagName===`MONI-FAB`),this._actions.forEach((e,t)=>{e.style.setProperty(`--_fab-menu-index`,String(t)),e.setAttribute(`role`,`menuitem`),e.addEventListener(`click`,this._selectAction)}),this.open&&queueMicrotask(()=>this._placeMenu())},this._selectAction=()=>{this._restoreFocus=!0,this.open=!1}}disconnectedCallback(){this._removeGlobalListeners(),super.disconnectedCallback()}updated(e){e.has(`direction`)&&!this.open&&(this._effectiveDirection=this.direction),e.has(`open`)&&(this.dispatchEvent(new CustomEvent(`moni-toggle`,{detail:{open:this.open},bubbles:!0,composed:!0})),this.open?(document.addEventListener(`pointerdown`,this._onDocumentPointer,!0),document.addEventListener(`click`,this._onDocumentClick,!0),document.addEventListener(`keydown`,this._onDocumentKey,!0),window.addEventListener(`resize`,this._onViewportChange),queueMicrotask(async()=>{await this._placeMenu(),this._actions[0]?.focus()})):(this._removeGlobalListeners(),this._restoreFocus&&queueMicrotask(()=>this._trigger?.focus()),this._restoreFocus=!1))}_removeGlobalListeners(){document.removeEventListener(`pointerdown`,this._onDocumentPointer,!0),document.removeEventListener(`click`,this._onDocumentClick,!0),document.removeEventListener(`keydown`,this._onDocumentKey,!0),window.removeEventListener(`resize`,this._onViewportChange)}_visibleBoundary(){let e=0,t=0,n=window.innerWidth,r=window.innerHeight,i=this.parentElement;for(;i;){let a=getComputedStyle(i);if(/(hidden|clip|auto|scroll)/.test(`${a.overflow}${a.overflowX}${a.overflowY}`)){let a=i.getBoundingClientRect();e=Math.max(e,a.left),t=Math.max(t,a.top),n=Math.min(n,a.right),r=Math.min(r,a.bottom)}i=i.parentElement}return new DOMRect(e,t,Math.max(0,n-e),Math.max(0,r-t))}async _placeMenu(){if(!this.open||!this._menu)return;let e=this._visibleBoundary(),t={left:`right`,right:`left`,up:`down`,down:`up`},n=this._trigger.getBoundingClientRect(),r=n.top-e.top>=e.bottom-n.bottom?[`up`,`down`]:[`down`,`up`],i=n.left-e.left>=e.right-n.right?[`left`,`right`]:[`right`,`left`],a=this.direction===`left`||this.direction===`right`?r:i,o=[this.direction,t[this.direction],...a].filter((e,t,n)=>n.indexOf(e)===t),s;for(let t of o){this._effectiveDirection=t,this._crossAlign=`end`,await this.updateComplete;let n=this._menu.getBoundingClientRect(),r=t===`up`||t===`down`;(r&&n.left<e.left||!r&&n.top<e.top)&&(this._crossAlign=`start`,await this.updateComplete,n=this._menu.getBoundingClientRect());let i=Math.max(0,e.left-n.left)+Math.max(0,n.right-e.right)+Math.max(0,e.top-n.top)+Math.max(0,n.bottom-e.bottom);if((!s||i<s.overflow)&&(s={direction:t,align:this._crossAlign,overflow:i}),i<=1)return}s&&(this._effectiveDirection=s.direction,this._crossAlign=s.align)}static{this.styles=[W,g`
|
|
3310
3311
|
:host { display: inline-flex; position: relative; vertical-align: middle; }
|
|
3311
3312
|
:host([position='bottom-trailing']), :host([position='bottom-leading']),
|
|
3312
3313
|
:host([position='top-trailing']), :host([position='top-leading']) { position: fixed; z-index: 13; }
|
|
@@ -3345,7 +3346,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
3345
3346
|
.trigger::part(icon) { transition: transform 300ms cubic-bezier(.2,0,0,1); }
|
|
3346
3347
|
:host([open]) .trigger::part(icon) { transform: rotate(90deg); }
|
|
3347
3348
|
@media (prefers-reduced-motion: reduce) { ::slotted(moni-fab), .trigger::part(icon) { transition-duration: .01ms; transition-delay: 0ms; } }
|
|
3348
|
-
`]}render(){return
|
|
3349
|
+
`]}render(){return L`<div class="wrap" data-direction=${this._effectiveDirection} data-align=${this._crossAlign}>
|
|
3349
3350
|
<div class="menu fab-menu" part="menu" role="menu" aria-hidden=${String(!this.open)}>
|
|
3350
3351
|
<slot @slotchange=${this._slotChanged}></slot>
|
|
3351
3352
|
</div>
|
|
@@ -3362,7 +3363,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
3362
3363
|
aria-expanded=${String(this.open)}
|
|
3363
3364
|
@click=${this._toggle}
|
|
3364
3365
|
></moni-fab>
|
|
3365
|
-
</div>`}};
|
|
3366
|
+
</div>`}};G([B({type:Boolean,reflect:!0})],bt.prototype,`open`,void 0),G([B({type:Boolean,reflect:!0})],bt.prototype,`disabled`,void 0),G([B({reflect:!0})],bt.prototype,`icon`,void 0),G([B({reflect:!0,attribute:`close-icon`})],bt.prototype,`closeIcon`,void 0),G([B({reflect:!0})],bt.prototype,`label`,void 0),G([B({reflect:!0,attribute:`close-label`})],bt.prototype,`closeLabel`,void 0),G([B({reflect:!0})],bt.prototype,`size`,void 0),G([B({reflect:!0})],bt.prototype,`color`,void 0),G([B({reflect:!0})],bt.prototype,`shape`,void 0),G([B({reflect:!0})],bt.prototype,`direction`,void 0),G([B({reflect:!0})],bt.prototype,`position`,void 0),G([H(`.trigger`)],bt.prototype,`_trigger`,void 0),G([H(`slot`)],bt.prototype,`_slot`,void 0),G([H(`.menu`)],bt.prototype,`_menu`,void 0),G([V()],bt.prototype,`_effectiveDirection`,void 0),G([V()],bt.prototype,`_crossAlign`,void 0),bt=G([z(`moni-fab-menu`)],bt);var xt=class extends U{constructor(...e){super(...e),this.name=``,this.label=``,this.variant=`outlined`,this.size=`medium`,this.shape=`no-round`,this.accept=``,this.multiple=!1,this.buttonLabel=`Choose file`,this.disabled=!1,this.helper=``,this.errorText=``,this.error=!1,this.value=``,this.icon=``,this.trailingIcon=`folder_open`}updated(e){this._fileInput&&e.has(`disabled`)&&(this._fileInput.disabled=this.disabled)}static{this.styles=[W,Ke,g`
|
|
3366
3367
|
input[type='file'] {
|
|
3367
3368
|
position: absolute;
|
|
3368
3369
|
inset: 0;
|
|
@@ -3373,11 +3374,11 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
3373
3374
|
input[type='text'] {
|
|
3374
3375
|
cursor: pointer;
|
|
3375
3376
|
}
|
|
3376
|
-
`]}render(){let e=this.value||this.buttonLabel,t=!!e,n=!!this.icon,r=!!this.trailingIcon,i={field:!0,label:!!this.label,fill:this.variant===`filled`,border:this.variant===`outlined`,small:this.size===`small`,large:this.size===`large`,extra:this.size===`extra`,prefix:n,suffix:r,invalid:this.error,round:this.shape===`round`,square:this.shape===`no-round`},a=this.icon?
|
|
3377
|
+
`]}render(){let e=this.value||this.buttonLabel,t=!!e,n=!!this.icon,r=!!this.trailingIcon,i={field:!0,label:!!this.label,fill:this.variant===`filled`,border:this.variant===`outlined`,small:this.size===`small`,large:this.size===`large`,extra:this.size===`extra`,prefix:n,suffix:r,invalid:this.error,round:this.shape===`round`,square:this.shape===`no-round`},a=this.icon?L`<i class="leading-icon" part="leading-icon"
|
|
3377
3378
|
><moni-icon name="${this.icon}"></moni-icon
|
|
3378
|
-
></i>`:
|
|
3379
|
+
></i>`:R,o=this.trailingIcon?L`<i class="trailing-icon" part="trailing-icon"
|
|
3379
3380
|
><moni-icon name="${this.trailingIcon}"></moni-icon
|
|
3380
|
-
></i>`:
|
|
3381
|
+
></i>`:R;return L`<div class=${ft(i)} part="field">
|
|
3381
3382
|
${a}
|
|
3382
3383
|
<input
|
|
3383
3384
|
type="text"
|
|
@@ -3386,27 +3387,27 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
3386
3387
|
placeholder=""
|
|
3387
3388
|
.value=${e}
|
|
3388
3389
|
?disabled=${this.disabled}
|
|
3389
|
-
name=${
|
|
3390
|
+
name=${K(this.name?`${this.name}-display`:void 0)}
|
|
3390
3391
|
class=${t?`active`:``}
|
|
3391
3392
|
/>
|
|
3392
|
-
${this.label?
|
|
3393
|
+
${this.label?L`<label
|
|
3393
3394
|
part="label"
|
|
3394
3395
|
class=${ft({active:t})}
|
|
3395
3396
|
>${this.label}</label
|
|
3396
|
-
>`:
|
|
3397
|
+
>`:R}
|
|
3397
3398
|
<input
|
|
3398
3399
|
type="file"
|
|
3399
3400
|
part="file"
|
|
3400
3401
|
?disabled=${this.disabled}
|
|
3401
|
-
accept=${
|
|
3402
|
+
accept=${K(this.accept||void 0)}
|
|
3402
3403
|
?multiple=${this.multiple}
|
|
3403
|
-
name=${
|
|
3404
|
+
name=${K(this.name||void 0)}
|
|
3404
3405
|
/>
|
|
3405
3406
|
${o}
|
|
3406
|
-
${this.error?
|
|
3407
|
+
${this.error?L`<output part="helper" class="invalid"
|
|
3407
3408
|
>${this.errorText||this.helper}</output
|
|
3408
|
-
>`:this.helper?
|
|
3409
|
-
</div>`}};
|
|
3409
|
+
>`:this.helper?L`<output part="helper">${this.helper}</output>`:R}
|
|
3410
|
+
</div>`}};G([B({reflect:!0})],xt.prototype,`name`,void 0),G([B({reflect:!0})],xt.prototype,`label`,void 0),G([B({reflect:!0})],xt.prototype,`variant`,void 0),G([B({reflect:!0})],xt.prototype,`size`,void 0),G([B({reflect:!0})],xt.prototype,`shape`,void 0),G([B({reflect:!0})],xt.prototype,`accept`,void 0),G([B({type:Boolean,reflect:!0})],xt.prototype,`multiple`,void 0),G([B({reflect:!0,attribute:`button-label`})],xt.prototype,`buttonLabel`,void 0),G([B({type:Boolean,reflect:!0})],xt.prototype,`disabled`,void 0),G([B({reflect:!0})],xt.prototype,`helper`,void 0),G([B({reflect:!0,attribute:`error-text`})],xt.prototype,`errorText`,void 0),G([B({type:Boolean,reflect:!0})],xt.prototype,`error`,void 0),G([B({reflect:!0})],xt.prototype,`value`,void 0),G([B({reflect:!0})],xt.prototype,`icon`,void 0),G([B({reflect:!0,attribute:`trailing-icon`})],xt.prototype,`trailingIcon`,void 0),G([H(`input[type="file"]`)],xt.prototype,`_fileInput`,void 0),xt=G([z(`moni-file-field`)],xt);var St=class extends U{constructor(...e){super(...e),this.variant=``,this.rounded=!1}static{this.styles=[W,g`
|
|
3410
3411
|
:host {
|
|
3411
3412
|
display: block;
|
|
3412
3413
|
font-family: var(--font);
|
|
@@ -3421,7 +3422,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
3421
3422
|
::slotted(moni-list-item) {
|
|
3422
3423
|
display: block;
|
|
3423
3424
|
}
|
|
3424
|
-
`]}_handleSlotChange(e){let t=e.target.assignedNodes({flatten:!0}).filter(e=>e.nodeType===Node.ELEMENT_NODE);
|
|
3425
|
+
`]}_handleSlotChange(e){let t=e.target.assignedNodes({flatten:!0}).filter(e=>e.nodeType===Node.ELEMENT_NODE);Ye(this,`moni-slot-items-changed`,{detail:{nodes:t}})}render(){return L`<slot @slotchange=${this._handleSlotChange}></slot>`}};G([B({reflect:!0})],St.prototype,`variant`,void 0),G([B({type:Boolean,reflect:!0})],St.prototype,`rounded`,void 0),St=G([z(`moni-list`)],St);var Ct=class extends U{constructor(...e){super(...e),this.lines=1,this.icon=``,this.avatar=``,this.trailingIcon=``,this.active=!1,this.disabled=!1,this.href=``}static{this.styles=[W,g`
|
|
3425
3426
|
:host {
|
|
3426
3427
|
display: block;
|
|
3427
3428
|
color: var(--on-surface);
|
|
@@ -3541,30 +3542,30 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
3541
3542
|
:host([active]) .trailing-icon {
|
|
3542
3543
|
color: var(--on-secondary-container);
|
|
3543
3544
|
}
|
|
3544
|
-
`]}render(){let e=this.avatar?
|
|
3545
|
+
`]}render(){let e=this.avatar?L`<span
|
|
3545
3546
|
class="avatar"
|
|
3546
3547
|
part="avatar"
|
|
3547
3548
|
style="background-image: url('${this.avatar}');"
|
|
3548
|
-
></span>`:this.icon?
|
|
3549
|
+
></span>`:this.icon?L`<span class="leading leading-icon" part="leading">
|
|
3549
3550
|
<moni-icon name="${this.icon}"></moni-icon>
|
|
3550
|
-
</span>`:
|
|
3551
|
+
</span>`:L`<slot name="leading"></slot>`,t=this.trailingIcon?L`<span class="trailing trailing-icon" part="trailing">
|
|
3551
3552
|
<moni-icon name="${this.trailingIcon}"></moni-icon>
|
|
3552
|
-
</span>`:
|
|
3553
|
+
</span>`:L`<slot name="trailing"></slot>`,n=L`
|
|
3553
3554
|
${e}
|
|
3554
3555
|
<div class="text" part="text">
|
|
3555
3556
|
<span class="headline" part="headline"><slot></slot></span>
|
|
3556
|
-
${this.lines>=2?
|
|
3557
|
+
${this.lines>=2?L`<span class="supporting" part="supporting"
|
|
3557
3558
|
><slot name="supporting"></slot
|
|
3558
|
-
></span>`:
|
|
3559
|
+
></span>`:R} ${this.lines>=3?L`<span class="meta" part="meta"><slot name="meta"></slot></span>`:R}
|
|
3559
3560
|
</div>
|
|
3560
3561
|
${t}
|
|
3561
3562
|
<slot name="trailing-meta"></slot>
|
|
3562
|
-
`;return this.href?
|
|
3563
|
+
`;return this.href?L`<a
|
|
3563
3564
|
class="row"
|
|
3564
3565
|
part="row"
|
|
3565
3566
|
href=${this.href}
|
|
3566
3567
|
>${n}</a
|
|
3567
|
-
>`:
|
|
3568
|
+
>`:L`<div class="row" part="row">${n}</div>`}};G([B({reflect:!0})],Ct.prototype,`lines`,void 0),G([B({reflect:!0})],Ct.prototype,`icon`,void 0),G([B({reflect:!0})],Ct.prototype,`avatar`,void 0),G([B({reflect:!0,attribute:`trailing-icon`})],Ct.prototype,`trailingIcon`,void 0),G([B({type:Boolean,reflect:!0})],Ct.prototype,`active`,void 0),G([B({type:Boolean,reflect:!0})],Ct.prototype,`disabled`,void 0),G([B({reflect:!0})],Ct.prototype,`href`,void 0),Ct=G([z(`moni-list-item`)],Ct);var wt=class extends U{constructor(...e){super(...e),this.active=!1,this.disabled=!1,this.icon=``,this.label=``}static{this.styles=[W,g`
|
|
3568
3569
|
:host {
|
|
3569
3570
|
display: block;
|
|
3570
3571
|
font-family: var(--font);
|
|
@@ -3605,10 +3606,10 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
3605
3606
|
opacity: 0.5;
|
|
3606
3607
|
pointer-events: none;
|
|
3607
3608
|
}
|
|
3608
|
-
`]}render(){return
|
|
3609
|
-
${this.icon?
|
|
3609
|
+
`]}render(){return L`<li part="item">
|
|
3610
|
+
${this.icon?L`<moni-icon name="${this.icon}" part="icon"></moni-icon>`:L`<slot name="icon"></slot>`}
|
|
3610
3611
|
<span part="label"><slot>${this.label}</slot></span>
|
|
3611
|
-
</li>`}};
|
|
3612
|
+
</li>`}};G([B({type:Boolean,reflect:!0})],wt.prototype,`active`,void 0),G([B({type:Boolean,reflect:!0})],wt.prototype,`disabled`,void 0),G([B({reflect:!0})],wt.prototype,`icon`,void 0),G([B({reflect:!0})],wt.prototype,`label`,void 0),wt=G([z(`moni-menu-item`)],wt);var Tt=class extends U{constructor(...e){super(...e),this.placement=`top`,this.variant=`rail`,this.modal=!1,this.open=!0,this.layout=`auto`,this._propagateToItems=()=>{this.querySelectorAll(`moni-nav-item`).forEach(e=>{e.setAttribute(`placement`,this.placement),e.setAttribute(`variant`,this.variant),e.setAttribute(`layout`,this.layout)})}}connectedCallback(){super.connectedCallback(),this._onKeydown=this._onKeydown.bind(this),document.addEventListener(`keydown`,this._onKeydown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener(`keydown`,this._onKeydown)}_onKeydown(e){e.key===`Escape`&&this.modal&&this.open&&(this.open=!1)}_closeModal(){this.modal&&(this.open=!1)}updated(e){(e.has(`placement`)||e.has(`variant`)||e.has(`layout`)||e.has(`modal`)||e.has(`open`))&&this._propagateToItems()}static{this.styles=[W,g`
|
|
3612
3613
|
:host {
|
|
3613
3614
|
/* Block so the host establishes a layout context for fixed
|
|
3614
3615
|
descendants. The inner <nav> still handles all positioning. */
|
|
@@ -3753,7 +3754,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
3753
3754
|
min-inline-size: 0 !important;
|
|
3754
3755
|
}
|
|
3755
3756
|
}
|
|
3756
|
-
`]}render(){let e=this.variant===`drawer`&&this.modal,t=[this.placement,this.variant===`drawer`?`max`:``].filter(Boolean).join(` `);return
|
|
3757
|
+
`]}render(){let e=this.variant===`drawer`&&this.modal,t=[this.placement,this.variant===`drawer`?`max`:``].filter(Boolean).join(` `);return L`${e?L`<div
|
|
3757
3758
|
class="scrim"
|
|
3758
3759
|
part="scrim"
|
|
3759
3760
|
@click=${this._closeModal}
|
|
@@ -3761,14 +3762,14 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
3761
3762
|
></div>`:``}<nav
|
|
3762
3763
|
class=${t}
|
|
3763
3764
|
part="nav"
|
|
3764
|
-
role=${
|
|
3765
|
-
aria-modal=${
|
|
3766
|
-
aria-expanded=${
|
|
3765
|
+
role=${K(e?`dialog`:void 0)}
|
|
3766
|
+
aria-modal=${K(e?`true`:void 0)}
|
|
3767
|
+
aria-expanded=${K(e?this.open?`true`:`false`:void 0)}
|
|
3767
3768
|
>
|
|
3768
3769
|
<slot name="header"></slot>
|
|
3769
3770
|
<slot @slotchange=${this._propagateToItems}></slot>
|
|
3770
3771
|
<slot name="footer"></slot>
|
|
3771
|
-
</nav>`}};
|
|
3772
|
+
</nav>`}};G([B({reflect:!0})],Tt.prototype,`placement`,void 0),G([B({reflect:!0})],Tt.prototype,`variant`,void 0),G([B({type:Boolean,reflect:!0})],Tt.prototype,`modal`,void 0),G([B({type:Boolean,reflect:!0})],Tt.prototype,`open`,void 0),G([B({reflect:!0})],Tt.prototype,`layout`,void 0),Tt=G([z(`moni-nav`)],Tt);var Et=class extends U{constructor(...e){super(...e),this.href=`#`,this.target=``,this.icon=``,this.label=``,this.active=!1,this.placement=`top`,this.variant=`rail`,this.layout=`auto`,this._isMediumScreen=!1,this._query=typeof window<`u`&&typeof window.matchMedia==`function`?window.matchMedia(`(min-width: 601px)`):null,this._handleQueryChange=e=>{this._isMediumScreen=e.matches}}connectedCallback(){super.connectedCallback(),this._query&&(this._query.addEventListener(`change`,this._handleQueryChange),this._isMediumScreen=this._query.matches)}disconnectedCallback(){super.disconnectedCallback(),this._query&&this._query.removeEventListener(`change`,this._handleQueryChange)}get computedLayout(){return this.placement===`left`||this.placement===`right`?this.variant===`drawer`?`horizontal`:`vertical`:this.layout===`auto`?this._isMediumScreen?`horizontal`:`vertical`:this.layout}static{this.styles=[W,g`
|
|
3772
3773
|
:host {
|
|
3773
3774
|
display: inline-flex;
|
|
3774
3775
|
font-family: var(--font);
|
|
@@ -3896,31 +3897,31 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
3896
3897
|
inline-size: 1.5rem;
|
|
3897
3898
|
block-size: 1.5rem;
|
|
3898
3899
|
}
|
|
3899
|
-
`]}render(){let e=this.computedLayout===`horizontal`,t=
|
|
3900
|
+
`]}render(){let e=this.computedLayout===`horizontal`,t=L`
|
|
3900
3901
|
<div class="icon-container" part="icon">
|
|
3901
|
-
${this.icon?
|
|
3902
|
+
${this.icon?L`<moni-icon name="${this.icon}"></moni-icon>`:L`<slot name="icon"></slot>`}
|
|
3902
3903
|
</div>
|
|
3903
|
-
`,n=
|
|
3904
|
+
`,n=L`
|
|
3904
3905
|
<span class="label" part="label"><slot>${this.label}</slot></span>
|
|
3905
|
-
`;return
|
|
3906
|
+
`;return L`<a
|
|
3906
3907
|
href=${this.href||`#`}
|
|
3907
|
-
target=${
|
|
3908
|
+
target=${K(this.target||void 0)}
|
|
3908
3909
|
class=${this.active?`active`:``}
|
|
3909
3910
|
data-layout=${this.computedLayout}
|
|
3910
3911
|
part="item"
|
|
3911
3912
|
>
|
|
3912
|
-
${e?
|
|
3913
|
+
${e?L`
|
|
3913
3914
|
<div class="active-indicator" part="indicator">
|
|
3914
3915
|
${t}
|
|
3915
3916
|
${n}
|
|
3916
3917
|
</div>
|
|
3917
|
-
`:
|
|
3918
|
+
`:L`
|
|
3918
3919
|
<div class="active-indicator" part="indicator">
|
|
3919
3920
|
${t}
|
|
3920
3921
|
</div>
|
|
3921
3922
|
${n}
|
|
3922
3923
|
`}
|
|
3923
|
-
</a>`}};
|
|
3924
|
+
</a>`}};G([B({reflect:!0})],Et.prototype,`href`,void 0),G([B({reflect:!0})],Et.prototype,`target`,void 0),G([B({reflect:!0})],Et.prototype,`icon`,void 0),G([B({reflect:!0})],Et.prototype,`label`,void 0),G([B({type:Boolean,reflect:!0})],Et.prototype,`active`,void 0),G([B({reflect:!0})],Et.prototype,`placement`,void 0),G([B({reflect:!0})],Et.prototype,`variant`,void 0),G([B({reflect:!0})],Et.prototype,`layout`,void 0),G([V()],Et.prototype,`_isMediumScreen`,void 0),Et=G([z(`moni-nav-item`)],Et);var Dt,Ot=class extends U{static{Dt=this}static{this.formAssociated=!0}constructor(){super(),this.label=``,this.checked=!1,this.disabled=!1,this.uncheckedIcon=``,this.checkedIcon=``,this.iconContainer=`circle`,this.size=`medium`,this.name=``,this.value=``,this._internals=this.attachInternals()}updated(e){this._input&&(e.has(`checked`)&&(this._input.checked=this.checked,this._internals?.setFormValue?.(this.checked?this.value||`on`:null)),e.has(`disabled`)&&(this._input.disabled=this.disabled))}static{this.styles=[W,g`
|
|
3924
3925
|
:host {
|
|
3925
3926
|
--_size: 1.5rem;
|
|
3926
3927
|
display: inline-flex;
|
|
@@ -4060,20 +4061,20 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
4060
4061
|
outline: 0.125rem solid var(--primary);
|
|
4061
4062
|
outline-offset: 0.375rem;
|
|
4062
4063
|
}
|
|
4063
|
-
`]}_onChange(e){if(this.checked=e.target.checked,this.checked&&this.name){let e=this.getRootNode();e&&e.querySelectorAll(`moni-radio[name="${this.name}"]`).forEach(e=>{e!==this&&e instanceof Dt&&(e.checked=!1)})}this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0}))}render(){let e=!!(this.uncheckedIcon||this.checkedIcon),t=e?this.uncheckedIcon:`radio_button_unchecked`,n=e?this.checkedIcon:`radio_button_checked`,r=this.checked?n:t,i=[this.label?`has-label`:``,e?`custom-icons`:``,e&&this.iconContainer===`none`?`no-icon-container`:``].filter(Boolean).join(` `);return
|
|
4064
|
+
`]}_onChange(e){if(this.checked=e.target.checked,this.checked&&this.name){let e=this.getRootNode();e&&e.querySelectorAll(`moni-radio[name="${this.name}"]`).forEach(e=>{e!==this&&e instanceof Dt&&(e.checked=!1)})}this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0}))}render(){let e=!!(this.uncheckedIcon||this.checkedIcon),t=e?this.uncheckedIcon:`radio_button_unchecked`,n=e?this.checkedIcon:`radio_button_checked`,r=this.checked?n:t,i=[this.label?`has-label`:``,e?`custom-icons`:``,e&&this.iconContainer===`none`?`no-icon-container`:``].filter(Boolean).join(` `);return L`<label part="radio">
|
|
4064
4065
|
<input
|
|
4065
4066
|
type="radio"
|
|
4066
4067
|
.checked=${lt(this.checked)}
|
|
4067
4068
|
?disabled=${this.disabled}
|
|
4068
|
-
name=${
|
|
4069
|
-
value=${
|
|
4069
|
+
name=${K(this.name||void 0)}
|
|
4070
|
+
value=${K(this.value||void 0)}
|
|
4070
4071
|
@change=${this._onChange}
|
|
4071
4072
|
/>
|
|
4072
4073
|
<span class=${i}>
|
|
4073
4074
|
<i aria-hidden="true">${r}</i>
|
|
4074
|
-
${this.label?
|
|
4075
|
+
${this.label?L`${this.label}`:L`<slot></slot>`}
|
|
4075
4076
|
</span>
|
|
4076
|
-
</label>`}};
|
|
4077
|
+
</label>`}};G([B({reflect:!0})],Ot.prototype,`label`,void 0),G([B({type:Boolean,reflect:!0})],Ot.prototype,`checked`,void 0),G([B({type:Boolean,reflect:!0})],Ot.prototype,`disabled`,void 0),G([B({reflect:!0,attribute:`unchecked-icon`})],Ot.prototype,`uncheckedIcon`,void 0),G([B({reflect:!0,attribute:`checked-icon`})],Ot.prototype,`checkedIcon`,void 0),G([B({reflect:!0,attribute:`icon-container`})],Ot.prototype,`iconContainer`,void 0),G([B({reflect:!0})],Ot.prototype,`size`,void 0),G([B({reflect:!0})],Ot.prototype,`name`,void 0),G([B({reflect:!0})],Ot.prototype,`value`,void 0),G([H(`input`)],Ot.prototype,`_input`,void 0),Ot=Dt=G([z(`moni-radio`)],Ot);var kt=class extends U{constructor(...e){super(...e),this.x=50,this.y=50,this.active=!1,this.speed=`normal`,this.color=`primary`,this._target=null,this._timeoutId=null,this._onPointerDown=e=>{if(!this._target)return;let t=this._target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;this.x=n/t.width*100,this.y=r/t.height*100,this._timeoutId&&(clearTimeout(this._timeoutId),this.active=!1),requestAnimationFrame(()=>{this.active=!0;let e=this.speed===`fast`?300:this.speed===`slow`?1200:600;this._timeoutId=setTimeout(()=>{this.active=!1,this._timeoutId=null},e)})}}connectedCallback(){super.connectedCallback(),this._target=this.parentElement,this._target&&(getComputedStyle(this._target).position===`static`&&(this._target.style.position=`relative`),this._target.addEventListener(`pointerdown`,this._onPointerDown))}disconnectedCallback(){this._target&&this._target.removeEventListener(`pointerdown`,this._onPointerDown),this._timeoutId&&clearTimeout(this._timeoutId),super.disconnectedCallback()}static{this.styles=[W,g`
|
|
4077
4078
|
:host {
|
|
4078
4079
|
display: block;
|
|
4079
4080
|
position: absolute;
|
|
@@ -4123,11 +4124,11 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
4123
4124
|
transition: scale var(--_dur) cubic-bezier(0.2, 0, 0, 1),
|
|
4124
4125
|
opacity var(--_dur) ease;
|
|
4125
4126
|
}
|
|
4126
|
-
`]}render(){return
|
|
4127
|
+
`]}render(){return L`<span
|
|
4127
4128
|
class="ripple"
|
|
4128
4129
|
part="ripple"
|
|
4129
4130
|
style="--_x: ${this.x}%; --_y: ${this.y}%;"
|
|
4130
|
-
></span>`}};
|
|
4131
|
+
></span>`}};G([B({type:Number,reflect:!0})],kt.prototype,`x`,void 0),G([B({type:Number,reflect:!0})],kt.prototype,`y`,void 0),G([B({type:Boolean,reflect:!0})],kt.prototype,`active`,void 0),G([B({reflect:!0})],kt.prototype,`speed`,void 0),G([B({reflect:!0})],kt.prototype,`color`,void 0),kt=G([z(`moni-ripple`)],kt);var At=class extends U{constructor(...e){super(...e),this.value=``,this.label=``,this.group=``,this.selected=!1,this.disabled=!1}static{this.styles=[W,g`
|
|
4131
4132
|
:host {
|
|
4132
4133
|
display: block;
|
|
4133
4134
|
font-family: var(--font);
|
|
@@ -4168,12 +4169,12 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
4168
4169
|
opacity: 0.5;
|
|
4169
4170
|
pointer-events: none;
|
|
4170
4171
|
}
|
|
4171
|
-
`]}render(){return
|
|
4172
|
+
`]}render(){return L`<li
|
|
4172
4173
|
part="option"
|
|
4173
4174
|
class="${this.selected?`selected`:``}"
|
|
4174
4175
|
>
|
|
4175
4176
|
<span part="label"><slot>${this.label||this.value}</slot></span>
|
|
4176
|
-
</li>`}};
|
|
4177
|
+
</li>`}};G([B({reflect:!0})],At.prototype,`value`,void 0),G([B({reflect:!0})],At.prototype,`label`,void 0),G([B({reflect:!0})],At.prototype,`group`,void 0),G([B({type:Boolean,reflect:!0})],At.prototype,`selected`,void 0),G([B({type:Boolean,reflect:!0})],At.prototype,`disabled`,void 0),At=G([z(`moni-select-option`)],At);var q=class extends U{static{this.formAssociated=!0}constructor(){super(),this.name=``,this.label=``,this.variant=`filled`,this.size=`medium`,this.shape=`no-round`,this.disabled=!1,this.required=!1,this.loading=!1,this.helper=``,this.errorText=``,this.error=!1,this.value=``,this.icon=``,this.trailingIcon=`arrow_drop_down`,this.searchable=!1,this.clearable=!1,this.sheet=!1,this.placeholder=``,this.positioning=`absolute`,this.placement=`auto`,this.dropdownWidth=`trigger`,this.dropdownMaxHeight=``,this._open=!1,this._searchQuery=``,this._actualPlacement=`bottom`,this._parsedOptions=[],this._activeIndex=-1,this._menuStyle=``,this._menuMaxHeight=`75vh`,this._useInlineCategories=!1,this._drilldownPath=[],this._handleOutsideClick=e=>{this._open&&!e.composedPath().includes(this)&&this._closeDropdown()},this._handlePeerOpen=e=>{let t=e.detail?.item;t&&t!==this&&this._open&&this._closeDropdown()},this._handleScroll=()=>{this._open&&(this._determineActualPlacement(),this._updateMenuPosition())},this._handleResize=()=>{this._open&&(this._determineActualPlacement(),this._updateMenuPosition())},this._internals=this.attachInternals()}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}_syncValidity(){if(this._internals?.setValidity){if(this.required&&!this.value){this._internals.setValidity({valueMissing:!0},`Selecciona una opción.`,this._input??void 0);return}this._internals.setValidity({})}}static{this.styles=[W,Ke,g`
|
|
4177
4178
|
:host {
|
|
4178
4179
|
position: relative;
|
|
4179
4180
|
display: block;
|
|
@@ -4505,7 +4506,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
4505
4506
|
color: var(--outline);
|
|
4506
4507
|
text-align: center;
|
|
4507
4508
|
}
|
|
4508
|
-
`]}connectedCallback(){super.connectedCallback(),document.addEventListener(`click`,this._handleOutsideClick),document.addEventListener(`moni-select-open`,this._handlePeerOpen),window.addEventListener(`scroll`,this._handleScroll,{capture:!0}),window.addEventListener(`resize`,this._handleResize),window.visualViewport?.addEventListener(`scroll`,this._handleScroll),window.visualViewport?.addEventListener(`resize`,this._handleResize)}disconnectedCallback(){this._hideBodyPopover(),super.disconnectedCallback(),document.removeEventListener(`click`,this._handleOutsideClick),document.removeEventListener(`moni-select-open`,this._handlePeerOpen),window.removeEventListener(`scroll`,this._handleScroll,{capture:!0}),window.removeEventListener(`resize`,this._handleResize),window.visualViewport?.removeEventListener(`scroll`,this._handleScroll),window.visualViewport?.removeEventListener(`resize`,this._handleResize)}updated(e){super.updated(e),e.has(`value`)&&this._internals?.setFormValue?.(this.value),(e.has(`_open`)||e.has(`_drilldownPath`)||e.has(`_searchQuery`)||e.has(`_useInlineCategories`)||e.has(`_parsedOptions`))&&this._updateWrapperHeight(),this._open&&(e.has(`positioning`)||e.has(`placement`)||e.has(`dropdownWidth`)||e.has(`dropdownMaxHeight`))&&this._updateMenuPosition(),(e.has(`_open`)||e.has(`positioning`)||e.has(`sheet`))&&this._syncBodyPopover()}_updateWrapperHeight(){let e=this.shadowRoot?.querySelector(`.drilldown-wrapper`);if(e){if(!this._open||this.sheet){e.style.height=``;return}requestAnimationFrame(()=>{let t=this.shadowRoot?.querySelector(`.drilldown-panel.panel-active`);t?e.style.height=`${t.scrollHeight}px`:e.style.height=``})}}_syncBodyPopover(){let e=this._menu;if(!e||typeof e.showPopover!=`function`)return;let t=this._open&&!this.sheet&&this.positioning===`body`;try{let n=e.matches(`:popover-open`);t&&!n?e.showPopover():!t&&n&&e.hidePopover()}catch{}}_hideBodyPopover(){let e=this._menu;if(!(!e||typeof e.hidePopover!=`function`))try{e.matches(`:popover-open`)&&e.hidePopover()}catch{}}_getViewportMetrics(){let e=window.visualViewport,t=e?.offsetTop??0,n=e?.offsetLeft??0,r=e?.height??window.innerHeight,i=e?.width??window.innerWidth;return{top:t,left:n,height:r,width:i,bottom:t+r,right:n+i}}_getDirectionalAvailableHeight(e,t){let n=this._getViewportMetrics(),r=n.height*.75;if(e===`bottom`){let e=n.bottom-t.bottom-8,i=t.bottom-n.top+8;return Math.max(0,Math.floor(Math.min(r,e,r-i)))}let i=t.top-n.top-8,a=n.bottom-t.top+8;return Math.max(0,Math.floor(Math.min(r,i,r-a)))}_normalizeManualMaxHeight(){let e=this.dropdownMaxHeight.trim();if(!e)return``;let t=/^\d+(?:\.\d+)?$/.test(e)?`${e}px`:e;return typeof CSS<`u`&&typeof CSS.supports==`function`&&!CSS.supports(`max-height`,t)?``:t}_resolveManualMaxHeightPx(e,t){let n=e.match(/^(\d+(?:\.\d+)?)(px|vh|dvh|svh|lvh|%|rem)$/i);if(!n)return null;let r=Number(n[1]),i=n[2].toLowerCase();return i===`px`?r:i===`rem`?r*(Number.parseFloat(getComputedStyle(document.documentElement).fontSize)||16):r/100*t}_getMenuHeightConstraint(e,t=this._actualPlacement){let n=this._getViewportMetrics(),r=t===`top`||t===`bottom`?this._getDirectionalAvailableHeight(t,e):Math.max(0,Math.floor(Math.min(n.height*.75,n.height-16))),i=this._normalizeManualMaxHeight(),a=i?this._resolveManualMaxHeightPx(i,n.height):null,o=a===null?r:Math.min(r,a);return{css:i?`min(${r}px, ${i})`:`${r}px`,px:Math.max(0,o)}}_estimateDesiredMenuHeight(){let e=this._getViewportMetrics(),t=this._searchQuery?this._getFilteredOptions().length:this._parsedOptions.length,n=Math.min(e.height*.75,Math.max(48,t*40+8)),r=this._normalizeManualMaxHeight(),i=r?this._resolveManualMaxHeightPx(r,e.height):null;return i!==null&&(n=Math.min(n,i)),n}_getGroupDepth(e){return e.reduce((e,t)=>t.type===`option`?e:Math.max(e,1+this._getGroupDepth(t.children)),0)}_hasOversizedGroupPanel(e,t){return e.some(e=>e.type===`option`?!1:e.children.length*40+8>t||this._hasOversizedGroupPanel(e.children,t))}_getAvailableFlyoutWidth(e){let t=this._getViewportMetrics(),n=t.left,r=t.right;if(this.positioning!==`body`){let e=this;for(;e;){let t=e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode;if(t instanceof HTMLElement){let e=getComputedStyle(t);if(/(auto|scroll|hidden|clip)/.test(e.overflowX)){let e=t.getBoundingClientRect();n=Math.max(n,e.left),r=Math.min(r,e.right)}}e=t}}return Math.max(0,Math.max(r-e.right,e.left-n))}_determineActualPlacement(){if(this.sheet){this._actualPlacement=`bottom`;return}let e=this.getBoundingClientRect(),t=this._getViewportMetrics(),n=this._getDirectionalAvailableHeight(`bottom`,e),r=this._getDirectionalAvailableHeight(`top`,e),i=t.right-e.right,a=e.left-t.left,o=this._estimateDesiredMenuHeight(),s=this.placement;s===`auto`&&(s=n>=o?`bottom`:r>n?`top`:`bottom`),s===`top`?this._actualPlacement=r<o&&n>r?`bottom`:`top`:s===`bottom`?this._actualPlacement=n<o&&r>n?`top`:`bottom`:s===`left`?this._actualPlacement=a<180&&i>a?`right`:`left`:s===`right`&&(this._actualPlacement=i<180&&a>i?`left`:`right`)}_updateMenuPosition(){if(!this._open||this.sheet)return;this._determineActualPlacement();let e=this.getBoundingClientRect(),t=this._getViewportMetrics(),n=this._getMenuHeightConstraint(e);this._menuMaxHeight=n.css;let r=this._parsedOptions.some(e=>e.type===`group`),i=this._parsedOptions.length*40+8,a=this._getGroupDepth(this._parsedOptions)*160,o=this._getAvailableFlyoutWidth(e),s=t.width<600||r&&o<a,c=r&&(i>n.px||this._hasOversizedGroupPanel(this._parsedOptions,n.px));if(this._useInlineCategories=s||c,this.positioning!==`fixed`&&this.positioning!==`body`){this._menuStyle=``;return}let l=``;if(l=this.dropdownWidth===`trigger`?`width: ${e.width}px;`:this.dropdownWidth===`auto`?`width: auto; min-width: 160px; max-width: 320px;`:`width: ${this.dropdownWidth};`,this._actualPlacement===`top`)this._menuStyle=`
|
|
4509
|
+
`]}connectedCallback(){super.connectedCallback(),document.addEventListener(`click`,this._handleOutsideClick),document.addEventListener(`moni-select-open`,this._handlePeerOpen),window.addEventListener(`scroll`,this._handleScroll,{capture:!0}),window.addEventListener(`resize`,this._handleResize),window.visualViewport?.addEventListener(`scroll`,this._handleScroll),window.visualViewport?.addEventListener(`resize`,this._handleResize)}disconnectedCallback(){this._hideBodyPopover(),super.disconnectedCallback(),document.removeEventListener(`click`,this._handleOutsideClick),document.removeEventListener(`moni-select-open`,this._handlePeerOpen),window.removeEventListener(`scroll`,this._handleScroll,{capture:!0}),window.removeEventListener(`resize`,this._handleResize),window.visualViewport?.removeEventListener(`scroll`,this._handleScroll),window.visualViewport?.removeEventListener(`resize`,this._handleResize)}updated(e){super.updated(e),e.has(`value`)&&this._internals?.setFormValue?.(this.value),this._syncValidity(),(e.has(`_open`)||e.has(`_drilldownPath`)||e.has(`_searchQuery`)||e.has(`_useInlineCategories`)||e.has(`_parsedOptions`))&&this._updateWrapperHeight(),this._open&&(e.has(`positioning`)||e.has(`placement`)||e.has(`dropdownWidth`)||e.has(`dropdownMaxHeight`))&&this._updateMenuPosition(),(e.has(`_open`)||e.has(`positioning`)||e.has(`sheet`))&&this._syncBodyPopover()}_updateWrapperHeight(){let e=this.shadowRoot?.querySelector(`.drilldown-wrapper`);if(e){if(!this._open||this.sheet){e.style.height=``;return}requestAnimationFrame(()=>{let t=this.shadowRoot?.querySelector(`.drilldown-panel.panel-active`);t?e.style.height=`${t.scrollHeight}px`:e.style.height=``})}}_syncBodyPopover(){let e=this._menu;if(!e||typeof e.showPopover!=`function`)return;let t=this._open&&!this.sheet&&this.positioning===`body`;try{let n=e.matches(`:popover-open`);t&&!n?e.showPopover():!t&&n&&e.hidePopover()}catch{}}_hideBodyPopover(){let e=this._menu;if(!(!e||typeof e.hidePopover!=`function`))try{e.matches(`:popover-open`)&&e.hidePopover()}catch{}}_getViewportMetrics(){let e=window.visualViewport,t=e?.offsetTop??0,n=e?.offsetLeft??0,r=e?.height??window.innerHeight,i=e?.width??window.innerWidth;return{top:t,left:n,height:r,width:i,bottom:t+r,right:n+i}}_getDirectionalAvailableHeight(e,t){let n=this._getViewportMetrics(),r=n.height*.75;if(e===`bottom`){let e=n.bottom-t.bottom-8,i=t.bottom-n.top+8;return Math.max(0,Math.floor(Math.min(r,e,r-i)))}let i=t.top-n.top-8,a=n.bottom-t.top+8;return Math.max(0,Math.floor(Math.min(r,i,r-a)))}_normalizeManualMaxHeight(){let e=this.dropdownMaxHeight.trim();if(!e)return``;let t=/^\d+(?:\.\d+)?$/.test(e)?`${e}px`:e;return typeof CSS<`u`&&typeof CSS.supports==`function`&&!CSS.supports(`max-height`,t)?``:t}_resolveManualMaxHeightPx(e,t){let n=e.match(/^(\d+(?:\.\d+)?)(px|vh|dvh|svh|lvh|%|rem)$/i);if(!n)return null;let r=Number(n[1]),i=n[2].toLowerCase();return i===`px`?r:i===`rem`?r*(Number.parseFloat(getComputedStyle(document.documentElement).fontSize)||16):r/100*t}_getMenuHeightConstraint(e,t=this._actualPlacement){let n=this._getViewportMetrics(),r=t===`top`||t===`bottom`?this._getDirectionalAvailableHeight(t,e):Math.max(0,Math.floor(Math.min(n.height*.75,n.height-16))),i=this._normalizeManualMaxHeight(),a=i?this._resolveManualMaxHeightPx(i,n.height):null,o=a===null?r:Math.min(r,a);return{css:i?`min(${r}px, ${i})`:`${r}px`,px:Math.max(0,o)}}_estimateDesiredMenuHeight(){let e=this._getViewportMetrics(),t=this._searchQuery?this._getFilteredOptions().length:this._parsedOptions.length,n=Math.min(e.height*.75,Math.max(48,t*40+8)),r=this._normalizeManualMaxHeight(),i=r?this._resolveManualMaxHeightPx(r,e.height):null;return i!==null&&(n=Math.min(n,i)),n}_getGroupDepth(e){return e.reduce((e,t)=>t.type===`option`?e:Math.max(e,1+this._getGroupDepth(t.children)),0)}_hasOversizedGroupPanel(e,t){return e.some(e=>e.type===`option`?!1:e.children.length*40+8>t||this._hasOversizedGroupPanel(e.children,t))}_getAvailableFlyoutWidth(e){let t=this._getViewportMetrics(),n=t.left,r=t.right;if(this.positioning!==`body`){let e=this;for(;e;){let t=e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode;if(t instanceof HTMLElement){let e=getComputedStyle(t);if(/(auto|scroll|hidden|clip)/.test(e.overflowX)){let e=t.getBoundingClientRect();n=Math.max(n,e.left),r=Math.min(r,e.right)}}e=t}}return Math.max(0,Math.max(r-e.right,e.left-n))}_determineActualPlacement(){if(this.sheet){this._actualPlacement=`bottom`;return}let e=this.getBoundingClientRect(),t=this._getViewportMetrics(),n=this._getDirectionalAvailableHeight(`bottom`,e),r=this._getDirectionalAvailableHeight(`top`,e),i=t.right-e.right,a=e.left-t.left,o=this._estimateDesiredMenuHeight(),s=this.placement;s===`auto`&&(s=n>=o?`bottom`:r>n?`top`:`bottom`),s===`top`?this._actualPlacement=r<o&&n>r?`bottom`:`top`:s===`bottom`?this._actualPlacement=n<o&&r>n?`top`:`bottom`:s===`left`?this._actualPlacement=a<180&&i>a?`right`:`left`:s===`right`&&(this._actualPlacement=i<180&&a>i?`left`:`right`)}_updateMenuPosition(){if(!this._open||this.sheet)return;this._determineActualPlacement();let e=this.getBoundingClientRect(),t=this._getViewportMetrics(),n=this._getMenuHeightConstraint(e);this._menuMaxHeight=n.css;let r=this._parsedOptions.some(e=>e.type===`group`),i=this._parsedOptions.length*40+8,a=this._getGroupDepth(this._parsedOptions)*160,o=this._getAvailableFlyoutWidth(e),s=t.width<600||r&&o<a,c=r&&(i>n.px||this._hasOversizedGroupPanel(this._parsedOptions,n.px));if(this._useInlineCategories=s||c,this.positioning!==`fixed`&&this.positioning!==`body`){this._menuStyle=``;return}let l=``;if(l=this.dropdownWidth===`trigger`?`width: ${e.width}px;`:this.dropdownWidth===`auto`?`width: auto; min-width: 160px; max-width: 320px;`:`width: ${this.dropdownWidth};`,this._actualPlacement===`top`)this._menuStyle=`
|
|
4509
4510
|
position: fixed;
|
|
4510
4511
|
bottom: ${window.innerHeight-e.top}px;
|
|
4511
4512
|
left: ${e.left}px;
|
|
@@ -4533,45 +4534,45 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
4533
4534
|
${l}
|
|
4534
4535
|
right: auto;
|
|
4535
4536
|
bottom: auto;
|
|
4536
|
-
`}}_getMenuStyle(){let e=`max-height: ${this._menuMaxHeight}; --_select-menu-max-height: ${this._menuMaxHeight};`;return this.positioning===`fixed`||this.positioning===`body`?`${this._menuStyle} ${e}`:this.dropdownWidth===`auto`?`width: max-content; min-width: 160px; max-width: 320px; ${e}`:this.dropdownWidth===`trigger`?e:`width: ${this.dropdownWidth}; ${e}`}_onSlotChange(){if(!this._slot)return;let e=this._slot.assignedElements({flatten:!0}),t=[],n=(e,t)=>{let n=e.find(e=>e.type===`group`&&e.label===t);return n||(n={type:`group`,label:t,children:[]},e.push(n)),n},r=(e,t,r)=>{let i=e;r.length>0&&(t.group=r.join(` / `)),r.forEach(e=>{i=n(i,e).children}),i.push(t)},i=(e,n)=>{let a=e.tagName.toLowerCase();if(a===`option`||a===`moni-select-option`){let i={type:`option`,value:e.getAttribute(`value`)||``,label:e.textContent?.trim()||e.getAttribute(`label`)||e.getAttribute(`value`)||``,disabled:e.hasAttribute(`disabled`),element:e},a=e.getAttribute(`group`),o=a?a.split(`/`).map(e=>e.trim()).filter(Boolean):[],s=[...n,...o];r(t,i,s)}else if(a===`optgroup`){let t=e.getAttribute(`label`)||``,r=[...n,t];Array.from(e.children).forEach(e=>i(e,r))}};e.forEach(e=>i(e,[])),this._parsedOptions=t,this.requestUpdate()}_toggleDropdown(e){e&&e.stopPropagation(),!this.disabled&&(this._open?this._closeDropdown():this._openDropdown())}_onInputClick(e){this.disabled||(this.searchable&&!this.sheet?this._open||this._openDropdown():this._toggleDropdown(e))}_openDropdown(){this.disabled||this._open||(this._open=!0,this._activeIndex=-1,this._drilldownPath=[],this._searchQuery=``,
|
|
4537
|
+
`}}_getMenuStyle(){let e=`max-height: ${this._menuMaxHeight}; --_select-menu-max-height: ${this._menuMaxHeight};`;return this.positioning===`fixed`||this.positioning===`body`?`${this._menuStyle} ${e}`:this.dropdownWidth===`auto`?`width: max-content; min-width: 160px; max-width: 320px; ${e}`:this.dropdownWidth===`trigger`?e:`width: ${this.dropdownWidth}; ${e}`}_onSlotChange(){if(!this._slot)return;let e=this._slot.assignedElements({flatten:!0}),t=[],n=(e,t)=>{let n=e.find(e=>e.type===`group`&&e.label===t);return n||(n={type:`group`,label:t,children:[]},e.push(n)),n},r=(e,t,r)=>{let i=e;r.length>0&&(t.group=r.join(` / `)),r.forEach(e=>{i=n(i,e).children}),i.push(t)},i=(e,n)=>{let a=e.tagName.toLowerCase();if(a===`option`||a===`moni-select-option`){let i={type:`option`,value:e.getAttribute(`value`)||``,label:e.textContent?.trim()||e.getAttribute(`label`)||e.getAttribute(`value`)||``,disabled:e.hasAttribute(`disabled`),element:e},a=e.getAttribute(`group`),o=a?a.split(`/`).map(e=>e.trim()).filter(Boolean):[],s=[...n,...o];r(t,i,s)}else if(a===`optgroup`){let t=e.getAttribute(`label`)||``,r=[...n,t];Array.from(e.children).forEach(e=>i(e,r))}};e.forEach(e=>i(e,[])),this._parsedOptions=t,this.requestUpdate()}_toggleDropdown(e){e&&e.stopPropagation(),!this.disabled&&(this._open?this._closeDropdown():this._openDropdown())}_onInputClick(e){this.disabled||(this.searchable&&!this.sheet?this._open||this._openDropdown():this._toggleDropdown(e))}_openDropdown(){this.disabled||this._open||(this._open=!0,this._activeIndex=-1,this._drilldownPath=[],this._searchQuery=``,Ye(this,`moni-select-open`,{detail:{item:this}}),this._updateMenuPosition(),this.searchable&&setTimeout(()=>{this._open&&(this._input&&!this.sheet?this._input.focus():this.sheet&&(this.shadowRoot?.querySelector(`.sheet-search-input`))?.focus())},50))}_closeDropdown(){this._open&&(this._open=!1,this._searchQuery=``,this._hideBodyPopover())}_findOptionByValue(e){return this._getFlatOptions(this._parsedOptions).find(t=>t.value===e)}_onSearchInput(e){let t=e.target.value;if(this._open||this._openDropdown(),this._searchQuery=t,this._activeIndex=-1,this.clearable&&t.trim()===``){this.value=``,Ye(this,`moni-change`,{detail:{value:this.value,originalEvent:e}});return}let n=this._getFlatOptions(this._parsedOptions).find(e=>e.label.toLowerCase()===t.trim().toLowerCase());n&&!n.disabled&&this._selectOption(n)}_selectOption(e){e.disabled||(this.value=e.value,this._closeDropdown(),this.dispatchEvent(new Event(`input`,{bubbles:!0,composed:!0})),this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0})),Ye(this,`moni-change`,{detail:{value:this.value}}))}_onSubmenuMouseEnter(e){let t=e.currentTarget,n=t.querySelector(`:scope > .submenu`);if(!n)return;let r=t.getBoundingClientRect(),i=window.innerWidth-r.right,a=r.left;i<160&&a>i?(n.classList.remove(`open-right`),n.classList.add(`open-left`)):(n.classList.remove(`open-left`),n.classList.add(`open-right`))}_onKeyDown(e){if(this.disabled)return;let t=this._getVisibleOptions();e.key===`ArrowDown`?(e.preventDefault(),this._open?t.length>0&&(this._activeIndex=(this._activeIndex+1)%t.length,this._scrollToActive()):this._openDropdown()):e.key===`ArrowUp`?(e.preventDefault(),this._open&&t.length>0&&(this._activeIndex=(this._activeIndex-1+t.length)%t.length,this._scrollToActive())):e.key===`Enter`?(e.preventDefault(),this._open?this._activeIndex>=0&&this._activeIndex<t.length&&this._selectOption(t[this._activeIndex]):this._openDropdown()):e.key===`Escape`&&(e.preventDefault(),this._closeDropdown())}_scrollToActive(){setTimeout(()=>{let e=this.shadowRoot?.querySelector(`.option-item.active-nav`);e&&e.scrollIntoView({block:`nearest`})},0)}_getFlatOptions(e){let t=[],n=e=>{e.type===`option`?t.push(e):e.children.forEach(n)};return e.forEach(n),t}_getFilteredOptions(){let e=this._getFlatOptions(this._parsedOptions);if(!this._searchQuery)return e;let t=this._searchQuery.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(t)||e.value.toLowerCase().includes(t))}_getVisibleOptions(){let e=this._getFilteredOptions();return this._searchQuery?e:this.sheet||this._useInlineCategories?this._drilldownPath.length>0?this._drilldownPath[this._drilldownPath.length-1].children.filter(e=>e.type===`option`):this._parsedOptions.filter(e=>e.type===`option`):e}_renderRootList(){let e=0;return this._parsedOptions.map(t=>{if(t.type===`option`){let n=e++,r=t.value===this.value,i=this._drilldownPath.length===0&&n===this._activeIndex;return L`
|
|
4537
4538
|
<li
|
|
4538
4539
|
class="option-item ${r?`selected`:``} ${i?`active-nav`:``} ${t.disabled?`disabled`:``}"
|
|
4539
4540
|
@click=${()=>this._selectOption(t)}
|
|
4540
4541
|
>
|
|
4541
4542
|
${t.label}
|
|
4542
4543
|
</li>
|
|
4543
|
-
`}return
|
|
4544
|
+
`}return L`
|
|
4544
4545
|
<li class="group-header" @click=${e=>{e.stopPropagation(),this._drilldownPath=[...this._drilldownPath,t]}}>
|
|
4545
4546
|
<span>${t.label}</span>
|
|
4546
4547
|
<moni-icon name="chevron_right" style="margin-inline-start: auto; font-size: 1.125rem;"></moni-icon>
|
|
4547
4548
|
</li>
|
|
4548
|
-
`})}_renderSubcategoryList(){if(this._drilldownPath.length===0)return
|
|
4549
|
+
`})}_renderSubcategoryList(){if(this._drilldownPath.length===0)return R;let e=this._drilldownPath[this._drilldownPath.length-1],t=0;return L`
|
|
4549
4550
|
<li class="group-header" @click=${e=>{e.stopPropagation(),this._drilldownPath=this._drilldownPath.slice(0,-1)}}>
|
|
4550
4551
|
<moni-icon name="arrow_back" style="font-size: 1.25rem; margin-inline-end: 8px;"></moni-icon>
|
|
4551
4552
|
<span>Regresar</span>
|
|
4552
4553
|
</li>
|
|
4553
4554
|
<li class="group-header-flat">${e.label}</li>
|
|
4554
|
-
${e.children.map(e=>{if(e.type===`option`){let n=t++,r=e.value===this.value,i=this._drilldownPath.length>0&&n===this._activeIndex;return
|
|
4555
|
+
${e.children.map(e=>{if(e.type===`option`){let n=t++,r=e.value===this.value,i=this._drilldownPath.length>0&&n===this._activeIndex;return L`
|
|
4555
4556
|
<li
|
|
4556
4557
|
class="option-item ${r?`selected`:``} ${i?`active-nav`:``} ${e.disabled?`disabled`:``}"
|
|
4557
4558
|
@click=${()=>this._selectOption(e)}
|
|
4558
4559
|
>
|
|
4559
4560
|
${e.label}
|
|
4560
4561
|
</li>
|
|
4561
|
-
`}return
|
|
4562
|
+
`}return L`
|
|
4562
4563
|
<li class="group-header" @click=${t=>{t.stopPropagation(),this._drilldownPath=[...this._drilldownPath,e]}}>
|
|
4563
4564
|
<span>${e.label}</span>
|
|
4564
4565
|
<moni-icon name="chevron_right" style="margin-inline-start: auto; font-size: 1.125rem;"></moni-icon>
|
|
4565
4566
|
</li>
|
|
4566
4567
|
`})}
|
|
4567
|
-
`}_renderDesktopNode(e,t){if(e.type===`option`){let n=t.value++,r=e.value===this.value,i=n===this._activeIndex;return
|
|
4568
|
+
`}_renderDesktopNode(e,t){if(e.type===`option`){let n=t.value++,r=e.value===this.value,i=n===this._activeIndex;return L`
|
|
4568
4569
|
<li
|
|
4569
4570
|
class="option-item ${r?`selected`:``} ${i?`active-nav`:``} ${e.disabled?`disabled`:``}"
|
|
4570
4571
|
@click=${()=>this._selectOption(e)}
|
|
4571
4572
|
>
|
|
4572
4573
|
${e.label}
|
|
4573
4574
|
</li>
|
|
4574
|
-
`}return
|
|
4575
|
+
`}return L`
|
|
4575
4576
|
<li
|
|
4576
4577
|
class="group-header"
|
|
4577
4578
|
@mouseenter=${this._onSubmenuMouseEnter}
|
|
@@ -4584,9 +4585,9 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
4584
4585
|
${e.children.map(e=>this._renderDesktopNode(e,t))}
|
|
4585
4586
|
</ul>
|
|
4586
4587
|
</li>
|
|
4587
|
-
`}_renderOptionsList(e){if(this._parsedOptions.length===0)return
|
|
4588
|
-
${e?
|
|
4589
|
-
${t.map(e=>{let t=n++,r=e.value===this.value,i=t===this._activeIndex;return
|
|
4588
|
+
`}_renderOptionsList(e){if(this._parsedOptions.length===0)return L`<li class="no-options">No options found</li>`;if(this._searchQuery){let t={};e.forEach(e=>{let n=e.group||``;t[n]||(t[n]=[]),t[n].push(e)});let n=0;return Object.entries(t).map(([e,t])=>L`
|
|
4589
|
+
${e?L`<li class="group-header-flat">${e}</li>`:R}
|
|
4590
|
+
${t.map(e=>{let t=n++,r=e.value===this.value,i=t===this._activeIndex;return L`
|
|
4590
4591
|
<li
|
|
4591
4592
|
class="option-item ${r?`selected`:``} ${i?`active-nav`:``} ${e.disabled?`disabled`:``}"
|
|
4592
4593
|
@click=${()=>this._selectOption(e)}
|
|
@@ -4594,7 +4595,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
4594
4595
|
${e.label}
|
|
4595
4596
|
</li>
|
|
4596
4597
|
`})}
|
|
4597
|
-
`)}if(this.sheet||this._useInlineCategories){let e=this._drilldownPath.length===0,t=!e;return
|
|
4598
|
+
`)}if(this.sheet||this._useInlineCategories){let e=this._drilldownPath.length===0,t=!e;return L`
|
|
4598
4599
|
<div class="drilldown-wrapper">
|
|
4599
4600
|
<div class="drilldown-track ${this._drilldownPath.length>0?`slide-active`:``}">
|
|
4600
4601
|
<ul class="drilldown-panel ${e?`panel-active`:`panel-inactive`}">
|
|
@@ -4605,18 +4606,18 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
4605
4606
|
</ul>
|
|
4606
4607
|
</div>
|
|
4607
4608
|
</div>
|
|
4608
|
-
`}let t={value:0};return this._parsedOptions.map(e=>this._renderDesktopNode(e,t))}render(){let e=!!this.icon,t=this._getFilteredOptions(),n=this._findOptionByValue(this.value),r=this._open&&this.searchable&&!this.sheet?this._searchQuery:n?n.label:``,i=!!(r||this.placeholder),a={field:!0,label:!!this.label,fill:this.variant===`filled`,border:this.variant===`outlined`,small:this.size===`small`,large:this.size===`large`,extra:this.size===`extra`,prefix:e,suffix:!0,invalid:this.error,round:this.shape===`round`,square:this.shape===`no-round`},o=this.icon?
|
|
4609
|
+
`}let t={value:0};return this._parsedOptions.map(e=>this._renderDesktopNode(e,t))}render(){let e=!!this.icon,t=this._getFilteredOptions(),n=this._findOptionByValue(this.value),r=this._open&&this.searchable&&!this.sheet?this._searchQuery:n?n.label:``,i=!!(r||this.placeholder),a={field:!0,label:!!this.label,fill:this.variant===`filled`,border:this.variant===`outlined`,small:this.size===`small`,large:this.size===`large`,extra:this.size===`extra`,prefix:e,suffix:!0,invalid:this.error,round:this.shape===`round`,square:this.shape===`no-round`},o=this.icon?L`<i class="leading-icon" part="leading-icon"
|
|
4609
4610
|
><moni-icon name="${this.icon}"></moni-icon
|
|
4610
|
-
></i>`:
|
|
4611
|
+
></i>`:R,s=this.loading?L`<i class="trailing-icon" part="trailing-icon"
|
|
4611
4612
|
><moni-progress
|
|
4612
4613
|
variant="circular"
|
|
4613
4614
|
indeterminate
|
|
4614
4615
|
size="small"
|
|
4615
4616
|
style="inline-size: 1.25rem; block-size: 1.25rem; color: currentColor;"
|
|
4616
4617
|
></moni-progress
|
|
4617
|
-
></i>`:
|
|
4618
|
+
></i>`:L`<i class="trailing-icon" part="trailing-icon" @click=${this._toggleDropdown}
|
|
4618
4619
|
><moni-icon name="${this.trailingIcon}"></moni-icon
|
|
4619
|
-
></i>`,c=this._parsedOptions.some(e=>e.type===`group`)&&!this._searchQuery&&!this._useInlineCategories,l={"dropdown-menu":!0,open:this._open,scrollable:!c,searching:!!this._searchQuery,"inline-categories":this._useInlineCategories,"placement-top":this._actualPlacement===`top`,"placement-bottom":this._actualPlacement===`bottom`,"placement-left":this._actualPlacement===`left`,"placement-right":this._actualPlacement===`right`};return
|
|
4620
|
+
></i>`,c=this._parsedOptions.some(e=>e.type===`group`)&&!this._searchQuery&&!this._useInlineCategories,l={"dropdown-menu":!0,open:this._open,scrollable:!c,searching:!!this._searchQuery,"inline-categories":this._useInlineCategories,"placement-top":this._actualPlacement===`top`,"placement-bottom":this._actualPlacement===`bottom`,"placement-left":this._actualPlacement===`left`,"placement-right":this._actualPlacement===`right`};return L`<div class=${ft(a)} part="field">
|
|
4620
4621
|
${o}
|
|
4621
4622
|
<input
|
|
4622
4623
|
id="input"
|
|
@@ -4625,27 +4626,27 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
4625
4626
|
.value=${r}
|
|
4626
4627
|
?readonly=${!this.searchable||this.sheet}
|
|
4627
4628
|
?disabled=${this.disabled}
|
|
4628
|
-
inputmode=${
|
|
4629
|
+
inputmode=${K(!this.searchable||this.sheet?`none`:void 0)}
|
|
4629
4630
|
placeholder=${this.placeholder||``}
|
|
4630
4631
|
class=${i?`active`:``}
|
|
4631
4632
|
@click=${this._onInputClick}
|
|
4632
4633
|
@input=${this._onSearchInput}
|
|
4633
4634
|
@keydown=${this._onKeyDown}
|
|
4634
4635
|
/>
|
|
4635
|
-
${this.label?
|
|
4636
|
+
${this.label?L`<label
|
|
4636
4637
|
for="input"
|
|
4637
4638
|
part="label"
|
|
4638
4639
|
class=${ft({active:i})}
|
|
4639
4640
|
>${this.label}</label
|
|
4640
|
-
>`:
|
|
4641
|
+
>`:R}
|
|
4641
4642
|
${s}
|
|
4642
4643
|
|
|
4643
|
-
${this.sheet?
|
|
4644
|
+
${this.sheet?L`
|
|
4644
4645
|
<div class="sheet-backdrop ${this._open?`open`:``}" @click=${this._closeDropdown}>
|
|
4645
4646
|
<div class="sheet-drawer ${this._open?`open`:``}" @click=${e=>e.stopPropagation()}>
|
|
4646
4647
|
<div class="sheet-handle"></div>
|
|
4647
|
-
${this.label?
|
|
4648
|
-
${this.searchable?
|
|
4648
|
+
${this.label?L`<div class="sheet-title">${this.label}</div>`:R}
|
|
4649
|
+
${this.searchable?L`
|
|
4649
4650
|
<div class="sheet-search-wrapper">
|
|
4650
4651
|
<input
|
|
4651
4652
|
type="text"
|
|
@@ -4655,17 +4656,17 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
4655
4656
|
@input=${this._onSearchInput}
|
|
4656
4657
|
/>
|
|
4657
4658
|
</div>
|
|
4658
|
-
`:
|
|
4659
|
+
`:R}
|
|
4659
4660
|
<ul class="sheet-options-list">
|
|
4660
4661
|
${this._renderOptionsList(t)}
|
|
4661
4662
|
</ul>
|
|
4662
4663
|
</div>
|
|
4663
4664
|
</div>
|
|
4664
|
-
`:
|
|
4665
|
+
`:L`
|
|
4665
4666
|
<ul
|
|
4666
4667
|
class=${ft(l)}
|
|
4667
4668
|
part="menu"
|
|
4668
|
-
popover=${this.positioning===`body`?`manual`:
|
|
4669
|
+
popover=${this.positioning===`body`?`manual`:R}
|
|
4669
4670
|
style=${this._getMenuStyle()}
|
|
4670
4671
|
>
|
|
4671
4672
|
${this._renderOptionsList(t)}
|
|
@@ -4674,15 +4675,15 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
4674
4675
|
|
|
4675
4676
|
<slot style="display: none;" @slotchange=${this._onSlotChange}></slot>
|
|
4676
4677
|
|
|
4677
|
-
${this.error?
|
|
4678
|
+
${this.error?L`<output part="helper" class="invalid"
|
|
4678
4679
|
>${this.errorText||this.helper}</output
|
|
4679
|
-
>`:this.helper?
|
|
4680
|
-
</div>`}};
|
|
4681
|
-
${r.map(e=>
|
|
4682
|
-
</datalist>`}return this.ticks?
|
|
4680
|
+
>`:this.helper?L`<output part="helper">${this.helper}</output>`:R}
|
|
4681
|
+
</div>`}};G([B({reflect:!0})],q.prototype,`name`,void 0),G([B({reflect:!0})],q.prototype,`label`,void 0),G([B({reflect:!0})],q.prototype,`variant`,void 0),G([B({reflect:!0})],q.prototype,`size`,void 0),G([B({reflect:!0})],q.prototype,`shape`,void 0),G([B({type:Boolean,reflect:!0})],q.prototype,`disabled`,void 0),G([B({type:Boolean,reflect:!0})],q.prototype,`required`,void 0),G([B({type:Boolean,reflect:!0})],q.prototype,`loading`,void 0),G([B({reflect:!0})],q.prototype,`helper`,void 0),G([B({reflect:!0,attribute:`error-text`})],q.prototype,`errorText`,void 0),G([B({type:Boolean,reflect:!0})],q.prototype,`error`,void 0),G([B({reflect:!0})],q.prototype,`value`,void 0),G([B({reflect:!0})],q.prototype,`icon`,void 0),G([B({reflect:!0,attribute:`trailing-icon`})],q.prototype,`trailingIcon`,void 0),G([B({type:Boolean,reflect:!0})],q.prototype,`searchable`,void 0),G([B({type:Boolean,reflect:!0})],q.prototype,`clearable`,void 0),G([B({type:Boolean,reflect:!0})],q.prototype,`sheet`,void 0),G([B({reflect:!0})],q.prototype,`placeholder`,void 0),G([B({reflect:!0})],q.prototype,`positioning`,void 0),G([B({reflect:!0})],q.prototype,`placement`,void 0),G([B({reflect:!0,attribute:`dropdown-width`})],q.prototype,`dropdownWidth`,void 0),G([B({reflect:!0,attribute:`dropdown-max-height`})],q.prototype,`dropdownMaxHeight`,void 0),G([V()],q.prototype,`_open`,void 0),G([V()],q.prototype,`_searchQuery`,void 0),G([V()],q.prototype,`_actualPlacement`,void 0),G([V()],q.prototype,`_parsedOptions`,void 0),G([V()],q.prototype,`_activeIndex`,void 0),G([V()],q.prototype,`_menuStyle`,void 0),G([V()],q.prototype,`_menuMaxHeight`,void 0),G([V()],q.prototype,`_useInlineCategories`,void 0),G([V()],q.prototype,`_drilldownPath`,void 0),G([H(`slot`)],q.prototype,`_slot`,void 0),G([H(`input`)],q.prototype,`_input`,void 0),G([H(`.dropdown-menu`)],q.prototype,`_menu`,void 0),q=G([z(`moni-select`)],q);var jt=class extends U{constructor(...e){super(...e),this.name=``,this.min=`0`,this.max=`100`,this.step=``,this.tickInterval=null,this.insetIcon=``,this.indicatorPlacement=`top`,this.size=`medium`,this.range=!1,this.disabled=!1,this.ticks=!1,this.indicator=!1,this.isVertical=!1,this._value=`50`,this._valueEnd=`75`}get value(){return this._value}set value(e){this._value=e}get valueEnd(){return this._valueEnd}set valueEnd(e){this._valueEnd=e}_pct(e){let t=parseFloat(this.min)||0,n=parseFloat(this.max)||100;return Math.max(0,Math.min(100,((parseFloat(e)||0)-t)/(n-t)*100))}_onInput(e,t){let n=e.target;t===0?this._value=n.value:this._valueEnd=n.value,this.dispatchEvent(new Event(`input`,{bubbles:!0,composed:!0}))}_onChange(e,t){let n=e.target;t===0?this._value=n.value:this._valueEnd=n.value,this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0}))}_renderDatalist(){if(this.tickInterval!=null&&this.tickInterval>0){let e=parseFloat(this.min)||0,t=parseFloat(this.max)||100,n=this.tickInterval,r=[];for(let i=e;i<=t;i+=n)r.push(Math.round(i*1e3)/1e3);return L`<datalist id="ticks">
|
|
4682
|
+
${r.map(e=>L`<option value=${e}></option>`)}
|
|
4683
|
+
</datalist>`}return this.ticks?L`<datalist id="ticks">
|
|
4683
4684
|
<option value=${this.min}></option>
|
|
4684
4685
|
<option value=${this.max}></option>
|
|
4685
|
-
</datalist>`:
|
|
4686
|
+
</datalist>`:R}static{this.styles=[W,g`
|
|
4686
4687
|
:host {
|
|
4687
4688
|
display: block;
|
|
4688
4689
|
font-family: var(--font);
|
|
@@ -4904,31 +4905,31 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
4904
4905
|
transition-duration: 0.01ms;
|
|
4905
4906
|
}
|
|
4906
4907
|
}
|
|
4907
|
-
`]}render(){let e=this._pct(this._value),t=this._pct(this._valueEnd),n=this.range?e:0,r=this.range?100-t:100-e,i=(e,t)=>
|
|
4908
|
+
`]}render(){let e=this._pct(this._value),t=this._pct(this._valueEnd),n=this.range?e:0,r=this.range?100-t:100-e,i=(e,t)=>L`
|
|
4908
4909
|
<input
|
|
4909
4910
|
part="control"
|
|
4910
4911
|
type="range"
|
|
4911
4912
|
min=${this.min}
|
|
4912
4913
|
max=${this.max}
|
|
4913
|
-
step=${
|
|
4914
|
-
list=${
|
|
4914
|
+
step=${K(this.step||void 0)}
|
|
4915
|
+
list=${K(this.ticks?`ticks`:void 0)}
|
|
4915
4916
|
?disabled=${this.disabled}
|
|
4916
4917
|
.value=${t}
|
|
4917
|
-
name=${e===0?
|
|
4918
|
+
name=${e===0?K(this.name||void 0):R}
|
|
4918
4919
|
@input=${t=>this._onInput(t,e)}
|
|
4919
4920
|
@change=${t=>this._onChange(t,e)}
|
|
4920
4921
|
/>
|
|
4921
|
-
`,a=this.insetIcon&&[`medium`,`large`,`extra`].includes(this.size)?
|
|
4922
|
+
`,a=this.insetIcon&&[`medium`,`large`,`extra`].includes(this.size)?L`<i><moni-icon name="${this.insetIcon}"></moni-icon></i>`:``,o=this.indicator?L`<div class="tooltip tooltip-1 ${this.indicatorPlacement}" style="inset-inline-start: ${e}%;">${this._value}</div>`:R,s=this.indicator&&this.range?L`<div class="tooltip tooltip-2 ${this.indicatorPlacement}" style="inset-inline-start: ${t}%;">${this._valueEnd}</div>`:R;return L`<div
|
|
4922
4923
|
class="slider ${this.size}${this.isVertical?` vertical`:``}"
|
|
4923
4924
|
part="root"
|
|
4924
4925
|
style="--_start: ${n}%; --_end: ${r}%;"
|
|
4925
4926
|
>
|
|
4926
4927
|
${this._renderDatalist()}
|
|
4927
|
-
${this.range?
|
|
4928
|
+
${this.range?L`${i(0,this._value)}${i(1,this._valueEnd)}`:i(0,this._value)}
|
|
4928
4929
|
<span>${a}</span>
|
|
4929
4930
|
${o}
|
|
4930
4931
|
${s}
|
|
4931
|
-
</div>`}};
|
|
4932
|
+
</div>`}};G([B({reflect:!0})],jt.prototype,`name`,void 0),G([B({reflect:!0})],jt.prototype,`min`,void 0),G([B({reflect:!0})],jt.prototype,`max`,void 0),G([B({reflect:!0})],jt.prototype,`step`,void 0),G([B({type:Number,reflect:!0,attribute:`tick-interval`})],jt.prototype,`tickInterval`,void 0),G([B({reflect:!0,attribute:`inset-icon`})],jt.prototype,`insetIcon`,void 0),G([B({reflect:!0,attribute:`indicator-placement`})],jt.prototype,`indicatorPlacement`,void 0),G([B({reflect:!0})],jt.prototype,`size`,void 0),G([B({type:Boolean,reflect:!0})],jt.prototype,`range`,void 0),G([B({type:Boolean,reflect:!0})],jt.prototype,`disabled`,void 0),G([B({type:Boolean,reflect:!0})],jt.prototype,`ticks`,void 0),G([B({type:Boolean,reflect:!0})],jt.prototype,`indicator`,void 0),G([B({type:Boolean,reflect:!0,attribute:`vertical`})],jt.prototype,`isVertical`,void 0),G([V()],jt.prototype,`_value`,void 0),G([V()],jt.prototype,`_valueEnd`,void 0),G([B({reflect:!0})],jt.prototype,`value`,null),G([B({reflect:!0,attribute:`value-end`})],jt.prototype,`valueEnd`,null),jt=G([z(`moni-slider`)],jt);var Mt=class extends U{constructor(...e){super(...e),this.text=``,this.action=``,this.placement=`bottom`,this.active=!1,this.maxLines=2}static{this.styles=[W,g`
|
|
4932
4933
|
:host {
|
|
4933
4934
|
/* Use block instead of contents so position:fixed inside
|
|
4934
4935
|
works relative to the viewport (its containing block). */
|
|
@@ -5021,7 +5022,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
5021
5022
|
inline-size: 40%;
|
|
5022
5023
|
}
|
|
5023
5024
|
}
|
|
5024
|
-
`]}handleAction(){this.active=!1,this.dispatchEvent(new CustomEvent(`action`,{bubbles:!0,composed:!0}))}render(){return
|
|
5025
|
+
`]}handleAction(){this.active=!1,this.dispatchEvent(new CustomEvent(`action`,{bubbles:!0,composed:!0}))}render(){return L`<div
|
|
5025
5026
|
class="snackbar ${this.placement}"
|
|
5026
5027
|
part="snackbar"
|
|
5027
5028
|
role="status"
|
|
@@ -5030,8 +5031,8 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
5030
5031
|
>
|
|
5031
5032
|
<slot name="icon"></slot>
|
|
5032
5033
|
<span class="max" part="text"><slot>${this.text}</slot></span>
|
|
5033
|
-
${this.action?
|
|
5034
|
-
</div>`}};
|
|
5034
|
+
${this.action?L`<button class="action" part="action" type="button" @click=${this.handleAction}>${this.action}</button>`:``}
|
|
5035
|
+
</div>`}};G([B({reflect:!0})],Mt.prototype,`text`,void 0),G([B({reflect:!0})],Mt.prototype,`action`,void 0),G([B({reflect:!0})],Mt.prototype,`placement`,void 0),G([B({type:Boolean,reflect:!0})],Mt.prototype,`active`,void 0),G([B({type:Number,reflect:!0,attribute:`max-lines`})],Mt.prototype,`maxLines`,void 0),Mt=G([z(`moni-snackbar`)],Mt);var Nt=class extends U{constructor(...e){super(...e),this.title=``,this.description=``,this.active=!1,this.completed=!1,this.icon=``,this.index=0,this.orientation=`horizontal`}static{this.styles=[W,g`
|
|
5035
5036
|
:host {
|
|
5036
5037
|
display: flex;
|
|
5037
5038
|
flex-direction: column;
|
|
@@ -5131,8 +5132,8 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
5131
5132
|
text-overflow: ellipsis;
|
|
5132
5133
|
white-space: nowrap;
|
|
5133
5134
|
}
|
|
5134
|
-
`]}render(){return
|
|
5135
|
-
<span class="dot" part="dot">${this.completed?
|
|
5135
|
+
`]}render(){return L`
|
|
5136
|
+
<span class="dot" part="dot">${this.completed?L`<moni-icon name="check"></moni-icon>`:this.icon?L`<moni-icon name="${this.icon}"></moni-icon>`:L`${this.index+1}`}</span>
|
|
5136
5137
|
<div class="text" part="text">
|
|
5137
5138
|
<span class="title" part="title"
|
|
5138
5139
|
><slot>${this.title}</slot></span
|
|
@@ -5141,7 +5142,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
5141
5142
|
>${this.description}</span
|
|
5142
5143
|
>
|
|
5143
5144
|
</div>
|
|
5144
|
-
`}};
|
|
5145
|
+
`}};G([B({reflect:!0})],Nt.prototype,`title`,void 0),G([B({reflect:!0})],Nt.prototype,`description`,void 0),G([B({type:Boolean,reflect:!0})],Nt.prototype,`active`,void 0),G([B({type:Boolean,reflect:!0})],Nt.prototype,`completed`,void 0),G([B({reflect:!0})],Nt.prototype,`icon`,void 0),G([B({type:Number,reflect:!0})],Nt.prototype,`index`,void 0),G([B({reflect:!0})],Nt.prototype,`orientation`,void 0),Nt=G([z(`moni-step`)],Nt);var Pt=class extends U{constructor(...e){super(...e),this.orientation=`horizontal`,this.current=0,this._onSlotChange=()=>{this._syncSteps()}}updated(e){(e.has(`current`)||e.has(`orientation`)||e.size===0)&&this._syncSteps()}_syncSteps(){Promise.resolve().then(()=>{let e=this._steps||[];e.length===0&&(e=Array.from(this.querySelectorAll(`moni-step`))),e.forEach((e,t)=>{e.index=t,e.orientation=this.orientation,e.completed=t<this.current,e.active=t===this.current,e.setAttribute(`role`,`listitem`)})})}static{this.styles=[W,g`
|
|
5145
5146
|
:host {
|
|
5146
5147
|
--_stepper-gap: 0.5rem;
|
|
5147
5148
|
display: block;
|
|
@@ -5163,9 +5164,9 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
5163
5164
|
flex: 1;
|
|
5164
5165
|
min-inline-size: 0;
|
|
5165
5166
|
}
|
|
5166
|
-
`]}render(){return
|
|
5167
|
+
`]}render(){return L`<ol class="list" part="stepper">
|
|
5167
5168
|
<slot @slotchange=${this._onSlotChange}></slot>
|
|
5168
|
-
</ol>`}};
|
|
5169
|
+
</ol>`}};G([B({reflect:!0})],Pt.prototype,`orientation`,void 0),G([B({type:Number,reflect:!0})],Pt.prototype,`current`,void 0),G([Ge({selector:`moni-step`})],Pt.prototype,`_steps`,void 0),Pt=G([z(`moni-stepper`)],Pt);var Ft=class extends U{static{this.formAssociated=!0}constructor(){super(),this.label=``,this.checked=!1,this.disabled=!1,this.icon=!1,this.uncheckedIcon=``,this.checkedIcon=``,this.name=``,this.value=``,this._internals=this.attachInternals()}updated(e){this._input&&(e.has(`checked`)&&(this._input.checked=this.checked,this._internals?.setFormValue?.(this.checked?this.value||`on`:null)),e.has(`disabled`)&&(this._input.disabled=this.disabled))}_onChange(e){this.checked=e.target.checked,this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0}))}static{this.styles=[W,g`
|
|
5169
5170
|
:host {
|
|
5170
5171
|
display: inline-flex;
|
|
5171
5172
|
font-family: var(--font);
|
|
@@ -5319,21 +5320,21 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
5319
5320
|
outline: 0.125rem solid var(--primary);
|
|
5320
5321
|
outline-offset: 0.25rem;
|
|
5321
5322
|
}
|
|
5322
|
-
`]}render(){let e=this.icon||!!(this.uncheckedIcon||this.checkedIcon),t=this.uncheckedIcon||(this.icon?`close`:``),n=this.checkedIcon||(this.icon?`check`:``),r=this.checked?n:t;return
|
|
5323
|
+
`]}render(){let e=this.icon||!!(this.uncheckedIcon||this.checkedIcon),t=this.uncheckedIcon||(this.icon?`close`:``),n=this.checkedIcon||(this.icon?`check`:``),r=this.checked?n:t;return L`<label class=${e?`switch icon`:`switch`} part="switch">
|
|
5323
5324
|
<input
|
|
5324
5325
|
type="checkbox"
|
|
5325
5326
|
role="switch"
|
|
5326
5327
|
.checked=${this.checked}
|
|
5327
5328
|
?disabled=${this.disabled}
|
|
5328
|
-
name=${
|
|
5329
|
-
value=${
|
|
5329
|
+
name=${K(this.name||void 0)}
|
|
5330
|
+
value=${K(this.value||void 0)}
|
|
5330
5331
|
@change=${this._onChange}
|
|
5331
5332
|
/>
|
|
5332
5333
|
<span>
|
|
5333
|
-
${e?
|
|
5334
|
-
${this.label?
|
|
5334
|
+
${e?L`<i>${r}</i>`:``}
|
|
5335
|
+
${this.label?L`<span class="label" part="label"> ${this.label}</span>`:L`<slot></slot>`}
|
|
5335
5336
|
</span>
|
|
5336
|
-
</label>`}};
|
|
5337
|
+
</label>`}};G([B({reflect:!0})],Ft.prototype,`label`,void 0),G([B({type:Boolean,reflect:!0})],Ft.prototype,`checked`,void 0),G([B({type:Boolean,reflect:!0})],Ft.prototype,`disabled`,void 0),G([B({type:Boolean,reflect:!0})],Ft.prototype,`icon`,void 0),G([B({reflect:!0,attribute:`unchecked-icon`})],Ft.prototype,`uncheckedIcon`,void 0),G([B({reflect:!0,attribute:`checked-icon`})],Ft.prototype,`checkedIcon`,void 0),G([B({reflect:!0})],Ft.prototype,`name`,void 0),G([B({reflect:!0})],Ft.prototype,`value`,void 0),G([H(`input`)],Ft.prototype,`_input`,void 0),Ft=G([z(`moni-switch`)],Ft);var It=class extends U{constructor(...e){super(...e),this.active=!1,this.icon=``,this.label=``,this.href=`#`}static{this.styles=[W,g`
|
|
5337
5338
|
:host {
|
|
5338
5339
|
display: inline-flex;
|
|
5339
5340
|
font-family: var(--font);
|
|
@@ -5417,15 +5418,15 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
5417
5418
|
:host-context(moni-tabs[indicator-size='max']) a.active::before {
|
|
5418
5419
|
border-radius: 0;
|
|
5419
5420
|
}
|
|
5420
|
-
`]}render(){return
|
|
5421
|
+
`]}render(){return L`<a
|
|
5421
5422
|
href=${this.href||`#`}
|
|
5422
5423
|
class=${this.active?`active`:``}
|
|
5423
5424
|
part="tab"
|
|
5424
5425
|
aria-selected=${this.active}
|
|
5425
5426
|
>
|
|
5426
|
-
${this.icon?
|
|
5427
|
+
${this.icon?L`<moni-icon name="${this.icon}" part="icon"></moni-icon>`:L`<slot name="icon"></slot>`}
|
|
5427
5428
|
<span part="label"><slot>${this.label}</slot></span>
|
|
5428
|
-
</a>`}};
|
|
5429
|
+
</a>`}};G([B({type:Boolean,reflect:!0})],It.prototype,`active`,void 0),G([B({reflect:!0})],It.prototype,`icon`,void 0),G([B({reflect:!0})],It.prototype,`label`,void 0),G([B({reflect:!0})],It.prototype,`href`,void 0),It=G([z(`moni-tab`)],It);var Lt=class extends U{constructor(...e){super(...e),this.mode=`primary`,this.scrollable=!1,this.vertical=!1,this.align=`default`,this.indicatorSize=`default`}static{this.styles=[W,g`
|
|
5429
5430
|
:host {
|
|
5430
5431
|
display: block;
|
|
5431
5432
|
font-family: var(--font);
|
|
@@ -5460,56 +5461,60 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
5460
5461
|
overflow-x: visible;
|
|
5461
5462
|
overflow-y: auto;
|
|
5462
5463
|
}
|
|
5463
|
-
`]}render(){return
|
|
5464
|
+
`]}render(){return L`<nav class=${[`tabs`,this.align==="default"?``:`${this.align}-align`,this.indicatorSize==="default"?``:this.indicatorSize,this.mode,this.vertical?`vertical`:``].filter(Boolean).join(` `)} part="tabs">
|
|
5464
5465
|
<slot></slot>
|
|
5465
|
-
</nav>`}};
|
|
5466
|
+
</nav>`}};G([B({reflect:!0})],Lt.prototype,`mode`,void 0),G([B({type:Boolean,reflect:!0})],Lt.prototype,`scrollable`,void 0),G([B({type:Boolean,reflect:!0})],Lt.prototype,`vertical`,void 0),G([B({reflect:!0})],Lt.prototype,`align`,void 0),G([B({reflect:!0,attribute:`indicator-size`})],Lt.prototype,`indicatorSize`,void 0),Lt=G([z(`moni-tabs`)],Lt);var J=class extends U{static{this.formAssociated=!0}constructor(){super(),this.name=``,this.label=``,this.variant=`filled`,this.size=`medium`,this.shape=`no-round`,this.icon=``,this.trailingIcon=``,this.prefix=``,this.suffix=``,this.rows=3,this.autosize=!1,this.maxRows=0,this.maxlength=null,this.required=!1,this.readonly=!1,this.minlength=null,this.autocomplete=``,this.noCounter=!1,this.loading=!1,this.disabled=!1,this.helper=``,this.errorText=``,this.error=!1,this.value=``,this.placeholder=``,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._resizeObserver=new ResizeObserver(()=>this._resizeTextarea())}disconnectedCallback(){this._resizeObserver?.disconnect(),this._resizeObserver=void 0,super.disconnectedCallback()}firstUpdated(){this._resizeObserver?.observe(this._input),this._resizeTextarea()}_handleInput(e){let t=e.currentTarget;this.value=t.value,this._internals?.setFormValue?.(this.value),this._resizeTextarea()}_resizeTextarea(){let e=this._input;if(!e)return;if(!this.autosize){e.style.removeProperty(`block-size`),e.style.removeProperty(`overflow-y`);return}let t=getComputedStyle(e),n=Number.parseFloat(t.lineHeight)||24,r=Number.parseFloat(t.paddingTop)+Number.parseFloat(t.paddingBottom),i=Number.parseFloat(t.borderTopWidth)+Number.parseFloat(t.borderBottomWidth),a=n*Math.max(1,this.rows)+r+i,o=this.maxRows>0?n*Math.max(this.rows,this.maxRows)+r+i:1/0;e.style.blockSize=`auto`;let s=Math.min(o,Math.max(a,e.scrollHeight+i));e.style.blockSize=`${s}px`,e.style.overflowY=e.scrollHeight+i>o?`auto`:`hidden`}updated(e){this._input&&(e.has(`value`)&&(this._input.value=this.value,this._internals?.setFormValue?.(this.value)),e.has(`disabled`)&&(this._input.disabled=this.disabled),e.has(`maxlength`)&&this.maxlength!=null&&(this._input.maxLength=this.maxlength),(e.has(`value`)||e.has(`autosize`)||e.has(`rows`)||e.has(`maxRows`))&&this._resizeTextarea()),this._syncValidity()}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}_syncValidity(){!this._input||!this._internals?.setValidity||this._internals.setValidity(this._input.validity,this._input.validationMessage,this._input)}static{this.styles=[W,Ke,g`
|
|
5466
5467
|
:host([autosize]) textarea { resize: none; }
|
|
5467
|
-
`]}render(){let e=!!this.icon||!!this.prefix,t=!!this.trailingIcon||!!this.suffix||this.loading,n=!!this.value||!!this.placeholder,r=!this.noCounter&&this.maxlength!=null&&this.maxlength>0,i={field:!0,label:!!this.label,fill:this.variant===`filled`,border:this.variant===`outlined`,small:this.size===`small`,large:this.size===`large`,extra:this.size===`extra`,prefix:e,suffix:t,invalid:this.error,round:this.shape===`round`,square:this.shape===`no-round`},a=this.placeholder||(this.label?` `:``),o=this.icon?
|
|
5468
|
+
`]}render(){let e=!!this.icon||!!this.prefix,t=!!this.trailingIcon||!!this.suffix||this.loading,n=!!this.value||!!this.placeholder,r=!this.noCounter&&this.maxlength!=null&&this.maxlength>0,i={field:!0,label:!!this.label,fill:this.variant===`filled`,border:this.variant===`outlined`,small:this.size===`small`,large:this.size===`large`,extra:this.size===`extra`,prefix:e,suffix:t,invalid:this.error,round:this.shape===`round`,square:this.shape===`no-round`},a=this.placeholder||(this.label?` `:``),o=this.icon?L`<i class="leading-icon" part="leading-icon"
|
|
5468
5469
|
><moni-icon name="${this.icon}"></moni-icon
|
|
5469
|
-
></i>`:this.prefix?
|
|
5470
|
+
></i>`:this.prefix?L`<span class="leading-icon" part="prefix"
|
|
5470
5471
|
>${this.prefix}</span
|
|
5471
|
-
>`:
|
|
5472
|
+
>`:R,s=this.loading?L`<i class="trailing-icon" part="trailing-icon"
|
|
5472
5473
|
><moni-progress
|
|
5473
5474
|
variant="circular"
|
|
5474
5475
|
indeterminate
|
|
5475
5476
|
size="small"
|
|
5476
5477
|
style="inline-size: 1.25rem; block-size: 1.25rem; color: currentColor;"
|
|
5477
5478
|
></moni-progress
|
|
5478
|
-
></i>`:this.trailingIcon?
|
|
5479
|
+
></i>`:this.trailingIcon?L`<i class="trailing-icon" part="trailing-icon"
|
|
5479
5480
|
><moni-icon name="${this.trailingIcon}"></moni-icon
|
|
5480
|
-
></i>`:this.suffix?
|
|
5481
|
+
></i>`:this.suffix?L`<span class="trailing-icon" part="suffix"
|
|
5481
5482
|
>${this.suffix}</span
|
|
5482
|
-
>`:
|
|
5483
|
+
>`:R,c=r?L`<output part="counter" class="counter"
|
|
5483
5484
|
>${this.value.length} / ${this.maxlength}</output
|
|
5484
|
-
>`:
|
|
5485
|
+
>`:R,l=this.error?L`<output part="helper" class="invalid"
|
|
5485
5486
|
>${this.errorText||this.helper}</output
|
|
5486
|
-
>`:this.helper?
|
|
5487
|
+
>`:this.helper?L`<output part="helper">${this.helper}</output>`:R,u=l||c;return L`<div class=${ft(i)} part="field">
|
|
5487
5488
|
${o}
|
|
5488
5489
|
<textarea
|
|
5489
5490
|
id="input"
|
|
5490
5491
|
part="input"
|
|
5491
5492
|
rows=${this.rows}
|
|
5492
|
-
maxlength=${
|
|
5493
|
+
maxlength=${K(this.maxlength??void 0)}
|
|
5494
|
+
minlength=${K(this.minlength??void 0)}
|
|
5493
5495
|
placeholder=${a}
|
|
5494
5496
|
?disabled=${this.disabled}
|
|
5497
|
+
?required=${this.required}
|
|
5498
|
+
?readonly=${this.readonly}
|
|
5499
|
+
autocomplete=${K(this.autocomplete||void 0)}
|
|
5495
5500
|
.value=${this.value}
|
|
5496
|
-
name=${
|
|
5501
|
+
name=${K(this.name||void 0)}
|
|
5497
5502
|
class=${n?`active`:``}
|
|
5498
5503
|
@input=${this._handleInput}
|
|
5499
5504
|
></textarea>
|
|
5500
|
-
${this.label?
|
|
5505
|
+
${this.label?L`<label
|
|
5501
5506
|
for="input"
|
|
5502
5507
|
part="label"
|
|
5503
5508
|
class=${ft({active:n})}
|
|
5504
5509
|
>${this.label}</label
|
|
5505
|
-
>`:
|
|
5510
|
+
>`:R}
|
|
5506
5511
|
${s}
|
|
5507
|
-
${u?
|
|
5512
|
+
${u?L`<div class="footer" part="footer">
|
|
5508
5513
|
${l}
|
|
5509
5514
|
<div class="spacer"></div>
|
|
5510
5515
|
${c}
|
|
5511
|
-
</div>`:
|
|
5512
|
-
</div>`}};K([V({reflect:!0})],Rt.prototype,`name`,void 0),K([V({reflect:!0})],Rt.prototype,`label`,void 0),K([V({reflect:!0})],Rt.prototype,`variant`,void 0),K([V({reflect:!0})],Rt.prototype,`size`,void 0),K([V({reflect:!0})],Rt.prototype,`shape`,void 0),K([V({reflect:!0})],Rt.prototype,`icon`,void 0),K([V({reflect:!0,attribute:`trailing-icon`})],Rt.prototype,`trailingIcon`,void 0),K([V({reflect:!0})],Rt.prototype,`prefix`,void 0),K([V({reflect:!0})],Rt.prototype,`suffix`,void 0),K([V({type:Number,reflect:!0})],Rt.prototype,`rows`,void 0),K([V({type:Boolean,reflect:!0})],Rt.prototype,`autosize`,void 0),K([V({type:Number,reflect:!0,attribute:`max-rows`})],Rt.prototype,`maxRows`,void 0),K([V({type:Number,reflect:!0})],Rt.prototype,`maxlength`,void 0),K([V({type:Boolean,reflect:!0,attribute:`no-counter`})],Rt.prototype,`noCounter`,void 0),K([V({type:Boolean,reflect:!0})],Rt.prototype,`loading`,void 0),K([V({type:Boolean,reflect:!0})],Rt.prototype,`disabled`,void 0),K([V({reflect:!0})],Rt.prototype,`helper`,void 0),K([V({reflect:!0,attribute:`error-text`})],Rt.prototype,`errorText`,void 0),K([V({type:Boolean,reflect:!0})],Rt.prototype,`error`,void 0),K([V({reflect:!0})],Rt.prototype,`value`,void 0),K([V({reflect:!0})],Rt.prototype,`placeholder`,void 0),K([U(`textarea`)],Rt.prototype,`_input`,void 0),Rt=K([B(`moni-textarea`)],Rt);var zt=l(s(((e,t)=>{(function(n,r){if(typeof e==`object`&&typeof t==`object`)t.exports=r();else if(typeof define==`function`&&define.amd)define([],r);else{var i=r();for(var a in i)(typeof e==`object`?e:n)[a]=i[a]}})(Object(typeof self<`u`?self:e),function(){return(function(){"use strict";var e=[,(function(){typeof Object.getPrototypeOf!=`function`&&(Object.getPrototypeOf=typeof`test`.__proto__==`object`?function(e){return e.__proto__}:function(e){return e.constructor.prototype})}),(function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(this==null)throw TypeError(`"this" is null or not defined`);let n=Object(this),r=n.length>>>0;if(r===0)return!1;let i=t|0,a=Math.max(i>=0?i:r-Math.abs(i),0);for(;a<r;){if(n[a]===e)return!0;a++}return!1}})}),(function(){let e=Function.bind.call(Function.call,Array.prototype.reduce),t=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),n=Function.bind.call(Function.call,Array.prototype.concat),r=Object.keys;Object.entries||(Object.entries=function(i){return e(r(i),(e,r)=>n(e,typeof r==`string`&&t(i,r)?[[r,i[r]]]:[]),[])})}),(function(){String.prototype.includes||(String.prototype.includes=function(e,t){return typeof t!=`number`&&(t=0),t+e.length>this.length?!1:this.indexOf(e,t)!==-1})}),(function(){if(FormData.Inputmask===void 0){class e extends FormData{constructor(e,t){super(e,t);let n=this.entries(),r;for(;(r=n.next()).done===!1;){let t=r.value[0],n=r.value[1],i=e[t];i&&i.inputmask!==void 0&&!(n instanceof File)&&this.set(t,i.value)}return this}}e.Inputmask=!0,FormData=e}}),(function(e,t,n){var r=o(n(7)),i=n(20),a=n(22);function o(e){return e&&e.__esModule?e:{default:e}}r.default.extendDefinitions({A:{validator:`[A-Za-zА-яЁёÀ-ÿµ]`,casing:`upper`},"&":{validator:`[0-9A-Za-zА-яЁёÀ-ÿµ]`,casing:`upper`},"#":{validator:`[0-9A-Fa-f]`,casing:`upper`}});let s=/25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/;function c(e,t,n,r,i){if(n-1>-1&&t.buffer[n-1]!==`.`?(e=t.buffer[n-1]+e,e=n-2>-1&&t.buffer[n-2]!==`.`?t.buffer[n-2]+e:`0`+e):e=`00`+e,i.greedy&&parseInt(e)>255&&s.test(`00`+e.charAt(2))){let r=[...t.buffer.slice(0,n),`.`,e.charAt(2)];if(r.join(``).match(/\./g).length<4)return{refreshFromBuffer:!0,buffer:r,caret:n+2}}return s.test(e)}r.default.extendAliases({cssunit:{regex:`[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)`},url:{regex:`(https?|ftp)://.*`,autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:`i{1,3}.j{1,3}.k{1,3}.l{1,3}`,definitions:{i:{validator:c},j:{validator:c},k:{validator:c},l:{validator:c}},onUnMask:function(e,t,n){return e},inputmode:`decimal`,substitutes:{",":`.`}},email:{mask:function({separator:e,quantifier:t}){let n=`*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]`,r=n;if(e)for(let i=0;i<t;i++)r+=`[${e}${n}]`;return r},greedy:!1,casing:`lower`,separator:null,quantifier:5,skipOptionalPartCharacter:``,onBeforePaste:function(e,t){return e=e.toLowerCase(),e.replace(`mailto:`,``)},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:`[0-9A-Za-z-]`}},onUnMask:function(e,t,n){return e},inputmode:`email`},mac:{mask:`##:##:##:##:##:##`},vin:{mask:`V{13}9{4}`,definitions:{V:{validator:`[A-HJ-NPR-Za-hj-npr-z\\d]`,casing:`upper`}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:`999-99-9999`,postValidation:function(e,t,n,r,o,s,c){let l=a.getMaskTemplate.call(this,!0,i.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(l.join(``))}}})}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(8)),i=m(n(9)),a=m(n(10)),o=n(15),s=m(n(11)),c=n(16),l=n(23),u=n(24),d=n(20),f=n(21),p=n(22);function m(e){return e&&e.__esModule?e:{default:e}}let h=s.default.document,g=`_inputmask_opts`;function _(e,t,n){if(!(this instanceof _))return new _(e,t,n);this.dependencyLib=a.default,this.el=void 0,this.events={},this.maskset=void 0,n!==!0&&(Object.prototype.toString.call(e)===`[object Object]`?t=e:(t||={},e&&(t.alias=e)),this.opts=a.default.extend(!0,{},this.defaults,t),this.noMasksCache=t&&t.definitions!==void 0,this.userOptions=t||{},v(this.opts.alias,t,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.lastInputEvent=null,this.hasAlternator=!1}_.prototype={dataAttribute:`data-inputmask`,defaults:r.default,definitions:i.default,aliases:{},masksCache:{},i18n:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(e){let t=this;return typeof e==`string`&&(e=h.getElementById(e)||h.querySelectorAll(e)),e=e.nodeName?[e]:Array.isArray(e)?e:[].slice.call(e),e.forEach(function(e,n){let r=a.default.extend(!0,{},t.opts);if(y(e,r,a.default.extend(!0,{},t.userOptions),t.dataAttribute)){let n=(0,u.generateMaskSet)(r,t.noMasksCache);n!==void 0&&(e.inputmask!==void 0&&(e.inputmask.opts.autoUnmask=!0,e.inputmask.remove()),e.inputmask=new _(void 0,void 0,!0),e.inputmask.opts=r,e.inputmask.noMasksCache=t.noMasksCache,e.inputmask.userOptions=a.default.extend(!0,{},t.userOptions),e.inputmask.el=e,e.inputmask.$el=(0,a.default)(e),e.inputmask.maskset=n,a.default.data(e,g,t.userOptions),l.mask.call(e.inputmask))}}),e&&e[0]&&e[0].inputmask||this},option:function(e,t){if(typeof e==`string`)return this.opts[e];if(typeof e==`object`)return a.default.extend(this.userOptions,e),this.el&&t!==!0&&this.mask(this.el),this},unmaskedvalue:function(e){if(this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),this.el===void 0||e!==void 0){let t=(typeof this.opts.onBeforeMask==`function`&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split(``);c.checkVal.call(this,void 0,!1,!1,t),typeof this.opts.onBeforeWrite==`function`&&this.opts.onBeforeWrite.call(this,void 0,d.getBuffer.call(this),0,this.opts)}return c.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){a.default.data(this.el,g,null);let e=this.opts.autoUnmask?(0,c.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);e===d.getBufferTemplate.call(this).join(``)?this._valueSet(``):this._valueSet(e,this.opts.autoUnmask),o.EventRuler.off(this.el);let t;Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?(t=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),`value`),t&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0})):h.__lookupGetter__&&this.el.__lookupGetter__(`value`)&&this.__valueGet&&(this.el.__defineGetter__(`value`,this.__valueGet),this.el.__defineSetter__(`value`,this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?d.getBufferTemplate.call(this).reverse():d.getBufferTemplate.call(this)).join(``)},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),f.isComplete.call(this,d.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){let e=p.getMaskTemplate.call(this,!0,0,!1).join(``);return this.maskset.metadata.forEach(function(t){return t.mask!==e||(e=t,!1)}),e}return this.maskset.metadata},isValid:function(e){if(this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),e){let t=(typeof this.opts.onBeforeMask==`function`&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split(``);c.checkVal.call(this,void 0,!0,!1,t)}let t=c.clearOptionalTail.call(this,[]),n=f.isComplete.call(this,t),r=e===(this.isRTL?t.reverse().join(``):t.join(``));return n&&(e===void 0||r)},format:function(e,t){this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache);let n=(typeof this.opts.onBeforeMask==`function`&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split(``);c.checkVal.call(this,void 0,!0,!1,n);let r=this.isRTL?d.getBuffer.call(this).slice().reverse().join(``):d.getBuffer.call(this).join(``);return t?{value:r,metadata:this.getmetadata()}:r},setValue:function(e){this.el&&(0,a.default)(this.el).trigger(`setvalue`,[e])},analyseMask:u.analyseMask};function v(e,t,n){let r=_.prototype.aliases[e];return r?(r.alias&&v(r.alias,void 0,n),a.default.extend(!0,n,r),a.default.extend(!0,n,t),!0):(n.mask===null&&(n.mask=e),!1)}function y(e,t,n,r){function i(t,i){let a=r===``?t:r+`-`+t;i=i===void 0?e.getAttribute(a):i,i!==null&&(typeof i==`string`&&(t.startsWith(`on`)?i=s.default[i]:i===`false`?i=!1:i===`true`?i=!0:t===`mask`&&(i=i.replace(/\\\\/g,`\\`))),n[t]=i)}if(t.importDataAttributes===!0){let a=e.getAttribute(r),o,s,c,l;if(a&&a!==``&&(a=a.replace(/'/g,`"`),s=JSON.parse(`{`+a+`}`)),s){for(l in c=void 0,s)if(l.toLowerCase()===`alias`){c=s[l];break}}for(o in i(`alias`,c),n.alias&&v(n.alias,n,t),t){if(s){for(l in c=void 0,s)if(l.toLowerCase()===o.toLowerCase()){c=s[l];break}}i(o,c)}}return a.default.extend(!0,t,n),(e.dir===`rtl`||t.rightAlign)&&(e.style.textAlign=`right`),(e.dir===`rtl`||t.numericInput)&&(e.dir=`ltr`,e.removeAttribute(`dir`),t.isRTL=!0),Object.keys(n).length}_.extendDefaults=function(e){a.default.extend(!0,_.prototype.defaults,e)},_.extendDefinitions=function(e){a.default.extend(!0,_.prototype.definitions,e)},_.extendAliases=function(e){a.default.extend(!0,_.prototype.aliases,e)},_.format=function(e,t,n){return _(t).format(e,n)},_.unmask=function(e,t){return _(t).unmaskedvalue(e)},_.isValid=function(e,t){return _(t).isValid(e)},_.remove=function(e){typeof e==`string`&&(e=h.getElementById(e)||h.querySelectorAll(e)),e=e.nodeName?[e]:e;for(let t=0;t<e.length;t++)e[t].inputmask&&e[t].inputmask.remove()},_.setValue=function(e,t){typeof e==`string`&&(e=h.getElementById(e)||h.querySelectorAll(e)),e=e.nodeName?[e]:e,e.forEach(function(e){e.inputmask?e.inputmask.setValue(t):(0,a.default)(e).trigger(`setvalue`,[t])})},_.dependencyLib=a.default,s.default.Inputmask=_,t.default=_}),(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={_maxTestPos:500,placeholder:`_`,optionalmarker:[`[`,`]`],quantifiermarker:[`{`,`}`],groupmarker:[`(`,`)`],alternatormarker:`|`,escapeChar:`\\`,mask:null,regex:null,oncomplete:()=>{},onincomplete:()=>{},oncleared:()=>{},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:()=>{},onBeforeMask:null,onBeforePaste:function(e,t){return typeof t.onBeforeMask==`function`?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,outputMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:()=>{},skipOptionalPartCharacter:` `,numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:``,_radixDance:!1,groupSeparator:``,keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:[`text`,`tel`,`url`,`password`,`search`],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:`lvp`,casing:null,inputmode:`text`,importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}}),(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={9:{validator:`\\p{N}`,definitionSymbol:`*`},a:{validator:`\\p{L}`,definitionSymbol:`*`},"*":{validator:`[\\p{L}\\p{N}]`}}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(11)),i=s(n(12)),a=n(13),o=s(n(14));function s(e){return e&&e.__esModule?e:{default:e}}let c=r.default.document;function l(e){if(e instanceof l)return e;if(!(this instanceof l))return new l(e);e!=null&&e!==r.default&&(this[0]=e.nodeName?e:e[0]!==void 0&&e[0].nodeName?e[0]:c.querySelector(e),this[0]!==void 0&&this[0]!==null&&(0,i.default)(this[0],`events`,(0,i.default)(this[0],`events`)||{}))}l.prototype={on:a.on,off:a.off,trigger:a.trigger},l.extend=o.default,l.data=i.default,l.Event=a.Event,t.default=l}),(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=typeof window<`u`&&window.document&&window.document.createElement?window:{}}),(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(e,t,n){if(n===void 0)return e.__data?e.__data[t]:null;e.__data=e.__data||{},e.__data[t]=n}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0,t.off=f,t.on=d,t.trigger=p;var r=s(n(11)),i=s(n(12)),a=s(n(14)),o=s(n(10));function s(e){return e&&e.__esModule?e:{default:e}}let c=r.default.document;function l(e){return e instanceof Element&&(0,i.default)(e,`events`)}let u=t.Event=void 0;typeof r.default.CustomEvent==`function`?t.Event=u=r.default.CustomEvent:r.default.Event&&c&&c.createEvent?(t.Event=u=function(e,t){t||={bubbles:!1,cancelable:!1,composed:!0,detail:void 0};let n=c.createEvent(`CustomEvent`);return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n},u.prototype=r.default.Event.prototype):typeof Event<`u`&&(t.Event=u=Event);function d(e,t){if(!this[0]||!l(this[0]))return this;let n=this[0],r=(0,i.default)(n,`events`),a=(e,i)=>{n.addEventListener?n.addEventListener(e,t,!1):n.attachEvent&&n.attachEvent(`on${e}`,t),r[e]=r[e]||{},r[e][i]=r[e][i]||[],r[e][i].push(t)};return e.split(` `).forEach(e=>{let[t,n=`global`]=e.split(`.`);a(t,n)}),this}function f(e,t){let n,r;function a(e,t,i){if(e in n){if(r.removeEventListener?r.removeEventListener(e,i,!1):r.detachEvent&&r.detachEvent(`on${e}`,i),t===`global`)for(let t in n[e])n[e][t].splice(n[e][t].indexOf(i),1);else n[e][t].splice(n[e][t].indexOf(i),1)}}function o(e,r){let i=[],a,o;if(e.length>0){let s=r?[r]:Object.keys(n[e]);for(let c=0;c<s.length;c++)if(r=s[c],t===void 0)for(a=0,o=n[e][r]?.length||0;a<o;a++)i.push({ev:e,namespace:r,handler:n[e][r][a]});else i.push({ev:e,namespace:r,handler:t})}else if(r.length>0){for(let e in n)if(n[e][r]){if(t===void 0)for(a=0,o=n[e][r].length;a<o;a++)i.push({ev:e,namespace:r,handler:n[e][r][a]});else i.push({ev:e,namespace:r,handler:t})}}return i}return l(this[0])&&(n=(0,i.default)(this[0],`events`),r=this[0],e||=Object.keys(n).join(` `),e!==``&&e.split(` `).forEach(e=>{let[t,n]=e.split(`.`);o(t,n).forEach(({ev:e,handler:t,namespace:n})=>{a(e,n,t)})})),this}function p(e){if(l(this[0])){let t=(0,i.default)(this[0],`events`),n=this[0],r=typeof e==`string`?e.split(` `):[e.type];for(let i=0;i<r.length;i++){let s=r[i].split(`.`),l=s[0],u=s[1]||`global`;if(c!==void 0){let t,r={bubbles:!0,cancelable:!0,composed:!0,detail:arguments[1]};if(c.createEvent){try{switch(l){case`input`:r.inputType=`insertText`,t=new InputEvent(l,r);break;default:t=new CustomEvent(l,r)}}catch{t=c.createEvent(`CustomEvent`),t.initCustomEvent(l,r.bubbles,r.cancelable,r.detail)}e.type&&(0,a.default)(t,e),n.dispatchEvent(t)}else t=c.createEventObject(),t.eventType=l,t.detail=arguments[1],e.type&&(0,a.default)(t,e),n.fireEvent(`on`+t.eventType,t)}else if(t[l]!==void 0){arguments[0]=arguments[0].type?arguments[0]:o.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1);let e=t[l];(u===`global`?Object.values(e).flat():e[u]).forEach(e=>e.apply(n,arguments))}}}return this}}),(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(){let e,t,r,i,a,o,s=arguments[0]||{},c=1,l=arguments.length,u=!1;for(typeof s==`boolean`&&(u=s,s=arguments[c]||{},c++),typeof s!=`object`&&typeof s!=`function`&&(s={});c<l;c++)if((e=arguments[c])!=null)for(t in e)r=s[t],i=e[t],s!==i&&(u&&i&&(Object.prototype.toString.call(i)===`[object Object]`||(a=Array.isArray(i)))?(a?(a=!1,o=r&&Array.isArray(r)?r:[]):o=r&&Object.prototype.toString.call(r)===`[object Object]`?r:{},s[t]=n(u,o,i)):i!==void 0&&(s[t]=i));return s}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EventRuler=void 0;var r=n(16),i=s(n(7)),a=n(19),o=n(20);function s(e){return e&&e.__esModule?e:{default:e}}t.EventRuler={on:function(e,t,n){let s=e.inputmask.dependencyLib,c=function(t){t.originalEvent&&(t=t.originalEvent||t,arguments[0]=t);let c=this,l=c.inputmask,u=l?l.opts:void 0,d;if(l===void 0&&this.nodeName!==`FORM`){let e=s.data(c,`_inputmask_opts`);s(c).off(),e&&new i.default(e).mask(c)}else if(![`submit`,`reset`,`setvalue`].includes(t.type)&&this.nodeName!==`FORM`&&(c.disabled||c.readOnly&&!(t.type===`keydown`&&t.ctrlKey&&t.key===a.keys.c||u.tabThrough===!1&&t.key===a.keys.Tab)))t.preventDefault();else{switch(t.type){case`input`:if(l.skipInputEvent===!0)return l.skipInputEvent=!1,t.preventDefault();l.lastInputEvent={time:Date.now(),data:t.data};break;case`keydown`:if(l.lastInputEvent&&Date.now()-l.lastInputEvent.time<10&&l.lastInputEvent.data===t.key)return!1;break;case`click`:case`focus`:if(l.validationEvent)return l.validationEvent=!1,e.blur(),(0,r.HandleNativePlaceholder)(e,(l.isRTL?o.getBufferTemplate.call(l).slice().reverse():o.getBufferTemplate.call(l)).join(``)),setTimeout(function(){e.focus()},u.validationEventTimeOut),!1;d=arguments,setTimeout(function(){e.inputmask&&n.apply(c,d)},0);return}let i=n.apply(c,arguments);return i===!1&&(t.preventDefault(),t.stopPropagation()),i}};t=`${t}.inputmask`,[`submit.inputmask`,`reset.inputmask`].includes(t)?(c=c.bind(e),e.form!==null&&s(e.form).on(t,c)):s(e).on(t,c)},off:function(e,t){if(e.inputmask){let n=e.inputmask.dependencyLib;n(e).off(t||`.inputmask`)}}}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.HandleNativePlaceholder=m,t.applyInputValue=d,t.checkVal=p,t.clearOptionalTail=f,t.unmaskedvalue=h,t.writeBuffer=g;var r=n(17),i=n(18),a=u(n(7)),o=n(19),s=n(20),c=n(21),l=n(22);function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n,r){let i=e?e.inputmask:this,a=i.opts;e.inputmask.refreshValue=!1,r!==!0&&typeof a.onBeforeMask==`function`&&(t=a.onBeforeMask.call(i,t,a)||t),t=(t||``).toString().split(``),p(e,!0,!1,t,n),i.undoValue=i._valueGet(!0),(a.clearMaskOnLostFocus||a.clearIncomplete)&&e.inputmask._valueGet()===s.getBufferTemplate.call(i).join(``)&&s.getLastValidPosition.call(i)===-1&&e.inputmask._valueSet(``)}function f(e){let t=this;e.length=0;let n=l.getMaskTemplate.call(t,!0,0,!0,void 0,!0),r;for(;(r=n.shift())!==void 0;)e.push(r);return e}function p(e,t,n,r,a){let o=e?e.inputmask:this,u=o.maskset,d=o.opts,f=o.dependencyLib,p=r.slice(),m=``,h=-1,_,v=d.skipOptionalPartCharacter;d.skipOptionalPartCharacter=``;function y(e,t){let n=l.getMaskTemplate.call(o,!0,0).slice(e,s.seekNext.call(o,e,!1,!1)).join(``).replace(/'/g,``),r=n.indexOf(t);for(;r>0&&n[r-1]===` `;)r--;let i=r===0&&!s.isMask.call(o,e)&&(l.getTest.call(o,e).match.nativeDef===t.charAt(0)||l.getTest.call(o,e).match.static===!0&&l.getTest.call(o,e).match.nativeDef===`'`+t.charAt(0)||l.getTest.call(o,e).match.nativeDef===` `&&(l.getTest.call(o,e+1).match.nativeDef===t.charAt(0)||l.getTest.call(o,e+1).match.static===!0&&l.getTest.call(o,e+1).match.nativeDef===`'`+t.charAt(0)));if(!i&&r>0&&!s.isMask.call(o,e,!1,!0)){let t=s.seekNext.call(o,e);o.caretPos.begin<t&&(o.caretPos={begin:t})}return i}s.resetMaskSet.call(o,!1),o.clicked=0,h=d.radixPoint?s.determineNewCaretPosition.call(o,{begin:0,end:0},!1,d.__financeInput===!1?`radixFocus`:void 0).begin:0,u.p=h,o.caretPos={begin:h};let b=[],x=o.caretPos;if(p.forEach(function(e,t){if(e!==void 0){let r=new f.Event(`_checkval`);r.key=e,m+=e;let a=s.getLastValidPosition.call(o,void 0,!0);y(h,m)?_=l.getTest.call(o,t).match.static===!0&&i.EventHandlers.keypressEvent.call(o,r,!0,!1,n,a+1):(_=i.EventHandlers.keypressEvent.call(o,r,!0,!1,n,o.caretPos.begin),_&&(h=o.caretPos.begin+1,m=``)),_?(_.pos!==void 0&&u.validPositions[_.pos]&&u.validPositions[_.pos].match.static===!0&&u.validPositions[_.pos].alternation===void 0&&(b.push(_.pos),o.isRTL||(_.forwardPosition=_.pos+1)),g.call(o,void 0,s.getBuffer.call(o),_.forwardPosition,r,!1),o.caretPos={begin:_.forwardPosition,end:_.forwardPosition},x=o.caretPos):u.validPositions[t]===void 0&&p[t]===l.getPlaceholder.call(o,t)&&s.isMask.call(o,t,!0)?o.caretPos.begin++:o.caretPos=x}}),b.length>0){let e,t,r=s.seekNext.call(o,-1,void 0,!1);if(!c.isComplete.call(o,s.getBuffer.call(o))&&b.length<=r||c.isComplete.call(o,s.getBuffer.call(o))&&b.length>0&&b.length!==r&&b[0]===0){let a=r;for(;(e=b.shift())!==void 0;)if(e<a){let r=new f.Event(`_checkval`);if(t=u.validPositions[e],t.generatedInput=!0,r.key=t.input,_=i.EventHandlers.keypressEvent.call(o,r,!0,!1,n,a),_&&_.pos!==void 0&&_.pos!==e&&u.validPositions[_.pos]&&u.validPositions[_.pos].match.static===!0)b.push(_.pos);else if(!_)break;a++}}else for(;e=b.pop();)t=u.validPositions[e],t&&u.validPositions[e+1]===void 0&&delete u.validPositions[e]}t&&g.call(o,e,s.getBuffer.call(o),_?_.forwardPosition:o.caretPos.begin,a||new f.Event(`checkval`),a&&(a.type===`input`&&o.undoValue!==s.getBuffer.call(o).join(``)||a.type===`paste`)),d.skipOptionalPartCharacter=v}function m(e,t){let n=e?e.inputmask:this;if(r.ie){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||e.placeholder===``)){let r=s.getBuffer.call(n).slice(),i=e.inputmask._valueGet();if(i!==t){let t=s.getLastValidPosition.call(n);t===-1&&i===s.getBufferTemplate.call(n).join(``)?r=[]:t!==-1&&f.call(n,r),g(e,r)}}}else e.placeholder!==t&&(e.placeholder=t,e.placeholder===``&&e.removeAttribute(`placeholder`))}function h(e){let t=e?e.inputmask:this,n=t.opts,r=t.maskset;if(e){if(e.inputmask===void 0)return e.value;e.inputmask&&e.inputmask.refreshValue&&d(e,e.inputmask._valueGet(!0))}let i=[],o=r.validPositions;for(let e=0,t=o.length;e<t;e++)o[e]&&o[e].match&&(o[e].match.static!=1||n.keepStatic!==!0&&Array.isArray(r.metadata)&&o[e].generatedInput!==!0)&&i.push(o[e].input);let c=i.length===0?``:(t.isRTL?i.reverse():i).join(``);if(typeof n.onUnMask==`function`){let e=(t.isRTL?s.getBuffer.call(t).slice().reverse():s.getBuffer.call(t)).join(``);c=n.onUnMask.call(t,e,c,n)}return n.outputMask&&c.length>0?a.default.format(c,{...n,mask:n.outputMask,alias:null}):c}function g(e,t,n,r,i){let a=e?e.inputmask:this,l=a.opts,u=a.dependencyLib;if(r&&typeof l.onBeforeWrite==`function`){let e=l.onBeforeWrite.call(a,r,t,n,l);if(e){if(e.refreshFromBuffer){let n=e.refreshFromBuffer;c.refreshFromBuffer.call(a,n===!0?n:n.start,n.end,e.buffer||t),t=s.getBuffer.call(a,!0)}n!==void 0&&(n=e.caret===void 0?n:e.caret)}}if(e!==void 0&&(e.inputmask._valueSet(t.join(``)),n!==void 0&&(r===void 0||r.type!==`blur`)&&s.caret.call(a,e,n,void 0,void 0,r!==void 0&&r.type===`keydown`&&(r.key===o.keys.Delete||r.key===o.keys.Backspace)),e.inputmask.writeBufferHook===void 0||e.inputmask.writeBufferHook(n),i===!0)){let n=u(e),r=e.inputmask._valueGet();e.inputmask.skipInputEvent=!0,n.trigger(`input`),setTimeout(function(){r===s.getBufferTemplate.call(a).join(``)?n.trigger(`cleared`):c.isComplete.call(a,t)===!0&&n.trigger(`complete`)},0)}}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mobile=t.iphone=t.ie=void 0;var r=i(n(11));function i(e){return e&&e.__esModule?e:{default:e}}let a=r.default.navigator&&r.default.navigator.userAgent||``;t.ie=a.indexOf(`MSIE `)>0||a.indexOf(`Trident/`)>0,t.mobile=!!(navigator.userAgentData?.mobile??((matchMedia(`(pointer:coarse)`).matches||navigator.maxTouchPoints)&&innerWidth<=1024||/Mobi|Android|iPhone/i.test(a))),t.iphone=/iphone/i.test(a)}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EventHandlers=void 0;var r=n(17),i=u(n(11)),a=n(16),o=n(19),s=n(20),c=n(21),l=n(22);function u(e){return e&&e.__esModule?e:{default:e}}let d=t.EventHandlers={keyEvent:function(e,t,n,i,u){let f=this.inputmask,p=f.opts,m=f.dependencyLib,h=f.maskset,g=this,_=m(g),v=e.key,y=s.caret.call(f,g),b=p.onKeyDown.call(this,e,s.getBuffer.call(f),y,p);if(b!==void 0)return b;if(v===o.keys.Backspace||v===o.keys.Delete||r.iphone&&v===o.keys.BACKSPACE_SAFARI||e.ctrlKey&&v===o.keys.x&&!(`oncut`in g))e.preventDefault(),c.handleRemove.call(f,g,v,y),(0,a.writeBuffer)(g,s.getBuffer.call(f,!0),h.p,e,g.inputmask._valueGet()!==s.getBuffer.call(f).join(``));else if(v===o.keys.End||v===o.keys.PageDown){e.preventDefault();let t=s.seekNext.call(f,s.getLastValidPosition.call(f));s.caret.call(f,g,e.shiftKey?y.begin:t,t,!0)}else v===o.keys.Home&&!e.shiftKey||v===o.keys.PageUp?(e.preventDefault(),s.caret.call(f,g,0,e.shiftKey?y.begin:0,!0)):p.undoOnEscape&&v===o.keys.Escape&&e.altKey!==!0?((0,a.checkVal)(g,!0,!1,f.undoValue.split(``)),_.trigger(`click`)):v===o.keys.Insert&&!(e.shiftKey||e.ctrlKey)&&f.userOptions.insertMode===void 0?c.isSelection.call(f,y)?p.insertMode=!p.insertMode:(p.insertMode=!p.insertMode,s.caret.call(f,g,y.begin,y.begin)):p.tabThrough===!0&&v===o.keys.Tab?e.shiftKey===!0?(y.end=s.seekPrevious.call(f,y.end,!0),l.getTest.call(f,y.end-1).match.static===!0&&y.end--,y.begin=s.seekPrevious.call(f,y.end,!0),y.begin>=0&&y.end>0&&(e.preventDefault(),s.caret.call(f,g,y.begin,y.end))):(y.begin=s.seekNext.call(f,y.begin,!0),y.end=s.seekNext.call(f,y.begin,!0),y.end<h.maskLength&&y.end--,y.begin<=h.maskLength&&(e.preventDefault(),s.caret.call(f,g,y.begin,y.end))):e.shiftKey||(p.insertModeVisual&&p.insertMode===!1?v===o.keys.ArrowRight?setTimeout(function(){let e=s.caret.call(f,g);s.caret.call(f,g,e.begin)},0):v===o.keys.ArrowLeft&&setTimeout(function(){let e={begin:s.translatePosition.call(f,g.inputmask.caretPos.begin),end:s.translatePosition.call(f,g.inputmask.caretPos.end)};f.isRTL?s.caret.call(f,g,e.begin+(e.begin===h.maskLength?0:1)):s.caret.call(f,g,e.begin-(e.begin===0?0:1))},0):f.keyEventHook===void 0||f.keyEventHook(e));return f.isComposing=v===o.keys.Process||v===o.keys.Unidentified,f.ignorable=v===void 0||v.length>1,d.keypressEvent.call(f,e,t,n,i,u)},keypressEvent:function(e,t,n,r,i){let l=this.inputmask||this,u=l.opts,d=l.dependencyLib,f=l.maskset,p=l.el,m=d(p),h=e.key;if(t!==!0&&!(e.ctrlKey&&e.altKey&&!l.ignorable)&&(e.ctrlKey||e.metaKey||l.ignorable))h===o.keys.Enter&&l.undoValue!==l._valueGet(!0)&&(l.undoValue=l._valueGet(!0),setTimeout(function(){m.trigger(`change`)},0));else if(h){let o=t?{begin:i,end:i}:s.caret.call(l,p),d;t||(h=u.substitutes[h]||h),f.writeOutBuffer=!0;let m=c.isValid.call(l,o,h,r,void 0,void 0,void 0,t);if(m!==!1&&(s.resetMaskSet.call(l,!0),d=m.caret===void 0?s.seekNext.call(l,m.pos.begin?m.pos.begin:m.pos):m.caret,f.p=d),d=u.numericInput&&m.caret===void 0?s.seekPrevious.call(l,d):d,n!==!1&&(setTimeout(function(){u.onKeyValidation.call(p,h,m)},0),f.writeOutBuffer&&m!==!1)){let n=s.getBuffer.call(l);(0,a.writeBuffer)(p,n,d,e,t!==!0)}if(e.preventDefault(),t)return m!==!1&&(m.forwardPosition=d),m}},pasteEvent:async function(e){function t(t,n,r,i,c){let l=s.caret.call(t,n,void 0,void 0,!0),u=r.substr(0,l.begin),d=r.substr(l.end,r.length);if(u==(t.isRTL?s.getBufferTemplate.call(t).slice().reverse():s.getBufferTemplate.call(t)).slice(0,l.begin).join(``)&&(u=``),d==(t.isRTL?s.getBufferTemplate.call(t).slice().reverse():s.getBufferTemplate.call(t)).slice(l.end).join(``)&&(d=``),i=u+i+d,t.isRTL&&o.numericInput!==!0){i=i.split(``);for(let e of s.getBufferTemplate.call(t))i[0]===e&&i.shift();i=i.reverse().join(``)}let f=i;if(typeof c==`function`){if(f=c.call(t,f,o),f===!1)return!1;f||=r}(0,a.checkVal)(n,!0,!1,f.toString().split(``),e)}let n=this,r=this.inputmask,o=r.opts,c=r._valueGet(!0),l;r.skipInputEvent=!0,e.clipboardData&&e.clipboardData.getData?l=e.clipboardData.getData(`text/plain`):i.default.clipboardData&&i.default.clipboardData.getData&&(l=i.default.clipboardData.getData(`Text`)),t(r,n,c,l,o.onBeforePaste),e.preventDefault()},inputFallBackEvent:function(e){let t=this.inputmask,n=t.opts,i=t.dependencyLib;function c(e,r,i){let a=e.substr(0,i.begin).split(``),o=e.substr(i.begin).split(``),c=r.substr(0,i.begin).split(``),u=r.substr(i.begin).split(``),d=a.length>=c.length?a.length:c.length,f=o.length>=u.length?o.length:u.length,p,m,h=``,g=[],_;for(;a.length<d;)a.push(`~`);for(;c.length<d;)c.push(`~`);for(;o.length<f;)o.unshift(`~`);for(;u.length<f;)u.unshift(`~`);let v=a.concat(o),y=c.concat(u);for(m=0,p=v.length;m<p;m++)switch(_=l.getPlaceholder.call(t,s.translatePosition.call(t,m)),h){case`insertText`:y[m-1]===v[m]&&i.begin==v.length-1&&g.push(v[m]),m=p;break;case`insertReplacementText`:v[m]===`~`?i.end++:m=p;break;case`deleteContentBackward`:v[m]===`~`?i.end++:m=p;break;default:v[m]!==y[m]&&((v[m+1]===`~`||v[m+1]===_||v[m+1]===void 0)&&(y[m]===_&&y[m+1]===`~`||y[m]===`~`)||y[m+1]===`~`&&y[m]===v[m+1]?(h=`insertText`,g.push(v[m]),i.begin--,i.end--):v[m]!==_&&v[m]!==`~`&&(v[m+1]===`~`||y[m]!==v[m]&&y[m+1]===v[m+1])?(h=`insertReplacementText`,g.push(v[m]),i.begin--):v[m]===`~`?(h=`deleteContentBackward`,(s.isMask.call(t,s.translatePosition.call(t,m),!0)||y[m]===n.radixPoint)&&i.end++):m=p)}return{action:h,data:g,caret:i}}let u=this,f=u.inputmask._valueGet(!0),p=(t.isRTL?s.getBuffer.call(t).slice().reverse():s.getBuffer.call(t)).join(``),m=s.caret.call(t,u,void 0,void 0,!0),h;if(p!==f){if(h=c(f,p,m),u.getRootNode().activeElement!==u&&u.focus(),(0,a.writeBuffer)(u,s.getBuffer.call(t)),s.caret.call(t,u,m.begin,m.end,!0),!r.mobile&&t.skipNextInsert&&e.inputType===`insertText`&&h.action===`insertText`&&t.isComposing)return!1;switch(t.skipNextInsert=!!(e.inputType===`insertCompositionText`&&h.action===`insertText`&&t.isComposing),h.action){case`insertText`:case`insertReplacementText`:h.data.forEach(function(e,n){let r=new i.Event(`keypress`);r.key=e,t.ignorable=!1,d.keypressEvent.call(u,r)}),setTimeout(function(){t.$el.trigger(`keyup`)},0);break;case`deleteContentBackward`:var g=new i.Event(`keydown`);g.key=o.keys.Backspace,d.keyEvent.call(u,g);break;default:(0,a.applyInputValue)(u,f,e),s.caret.call(t,u,m.begin,m.end,!0)}e.preventDefault()}},setValueEvent:function(e){let t=this.inputmask,n=t.dependencyLib,r=this,i=e&&e.detail?e.detail[0]:arguments[1];i===void 0&&(i=r.inputmask._valueGet(!0)),(0,a.applyInputValue)(r,i,new n.Event(`input`),(e&&e.detail?e.detail[0]:arguments[1])!==void 0),(e.detail&&e.detail[1]!==void 0||arguments[2]!==void 0)&&s.caret.call(t,r,e.detail?e.detail[1]:arguments[2])},focusEvent:function(e){let t=this.inputmask,n=t.opts,r=this,i=t&&t._valueGet();n.showMaskOnFocus&&i!==s.getBuffer.call(t).join(``)&&(0,a.writeBuffer)(r,s.getBuffer.call(t),s.seekNext.call(t,s.getLastValidPosition.call(t))),n.positionCaretOnTab===!0&&t.mouseEnter===!1&&(!c.isComplete.call(t,s.getBuffer.call(t))||s.getLastValidPosition.call(t)===-1)&&d.clickEvent.apply(r,[e,!0]),t.undoValue=t&&t._valueGet(!0)},invalidEvent:function(e){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){let e=this.inputmask,t=e.opts,n=this;e.mouseEnter=!1,t.clearMaskOnLostFocus&&n.getRootNode().activeElement!==n&&(0,a.HandleNativePlaceholder)(n,e.originalPlaceholder)},clickEvent:function(e,t){let n=this.inputmask;n.clicked++;let r=this;if(r.getRootNode().activeElement===r){let e=s.determineNewCaretPosition.call(n,s.caret.call(n,r),t);e!==void 0&&s.caret.call(n,r,e)}},cutEvent:function(e){let t=this.inputmask,n=t.maskset,r=this,l=s.caret.call(t,r),u=t.isRTL?s.getBuffer.call(t).slice(l.end,l.begin):s.getBuffer.call(t).slice(l.begin,l.end),d=t.isRTL?u.reverse().join(``):u.join(``);i.default.navigator&&i.default.navigator.clipboard?i.default.navigator.clipboard.writeText(d):i.default.clipboardData&&i.default.clipboardData.getData&&i.default.clipboardData.setData(`Text`,d),c.handleRemove.call(t,r,o.keys.Delete,l),(0,a.writeBuffer)(r,s.getBuffer.call(t),n.p,e,t.undoValue!==t._valueGet(!0))},blurEvent:function(e){let t=this.inputmask,n=t.opts,r=t.dependencyLib;t.clicked=0;let i=r(this),o=this;if(o.inputmask){(0,a.HandleNativePlaceholder)(o,t.originalPlaceholder);let r=o.inputmask._valueGet(),l=s.getBuffer.call(t).slice();if(r!==``&&(n.clearMaskOnLostFocus&&(s.getLastValidPosition.call(t)===-1&&r===s.getBufferTemplate.call(t).join(``)?l=[]:a.clearOptionalTail.call(t,l)),c.isComplete.call(t,l)===!1&&(setTimeout(function(){i.trigger(`incomplete`)},0),n.clearIncomplete&&(s.resetMaskSet.call(t,!1),l=n.clearMaskOnLostFocus?[]:s.getBufferTemplate.call(t).slice())),(0,a.writeBuffer)(o,l,void 0,e)),r=t._valueGet(!0),t.undoValue!==r){let e=(t.isRTL?s.getBufferTemplate.call(t).slice().reverse():s.getBufferTemplate.call(t)).join(``);(r!==``||t.undoValue!==e||t.undoValue===e&&t.maskset.validPositions.length>0)&&(t.undoValue=r,i.trigger(`change`))}}},mouseenterEvent:function(){let e=this.inputmask,{showMaskOnHover:t}=e.opts,n=this;if(e.mouseEnter=!0,n.getRootNode().activeElement!==n){let r=(e.isRTL?s.getBufferTemplate.call(e).slice().reverse():s.getBufferTemplate.call(e)).join(``);t&&(0,a.HandleNativePlaceholder)(n,r)}},submitEvent:function(){let e=this.inputmask,t=e.opts;e.undoValue!==e._valueGet(!0)&&e.$el.trigger(`change`),s.getLastValidPosition.call(e)===-1&&e._valueGet&&e._valueGet()===s.getBufferTemplate.call(e).join(``)&&e._valueSet(``),t.clearIncomplete&&c.isComplete.call(e,s.getBuffer.call(e))===!1&&e._valueSet(``),t.removeMaskOnSubmit&&(e._valueSet(e.unmaskedvalue(),!0),setTimeout(function(){(0,a.writeBuffer)(e.el,s.getBuffer.call(e))},0))},resetEvent:function(){let e=this.inputmask;e.refreshValue=!0,setTimeout(function(){(0,a.applyInputValue)(e.el,e._valueGet(!0))},0)}}}),(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.keys=t.keyCode=void 0,t.toKey=i,t.toKeyCode=a;let n=t.keyCode={c:67,x:88,z:90,BACKSPACE_SAFARI:127,Enter:13,Meta_LEFT:91,Meta_RIGHT:92,Space:32,Alt:18,AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,CapsLock:20,Control:17,ContextMenu:93,Dead:221,Delete:46,End:35,Escape:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Home:36,Insert:45,NumLock:144,PageDown:34,PageUp:33,Pause:19,PrintScreen:44,Process:229,Shift:16,ScrollLock:145,Tab:9,Unidentified:229},r=Object.entries(n).reduce((e,[t,n])=>(e[n]=e[n]===void 0?t:e[n],e),{});t.keys=Object.entries(n).reduce((e,[t,n])=>(e[t]=t===`Space`?` `:t,e),{});function i(e,t){return r[e]||(t?String.fromCharCode(e):String.fromCharCode(e).toLowerCase())}function a(e){return n[e]}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.caret=s,t.determineLastRequiredPosition=c,t.determineNewCaretPosition=l,t.getBuffer=u,t.getBufferTemplate=d,t.getLastValidPosition=f,t.isMask=p,t.resetMaskSet=m,t.seekNext=h,t.seekPrevious=g,t.translatePosition=_;var r=o(n(11)),i=n(21),a=n(22);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n,i,a){let o=this,s=this.opts,c;if(t!==void 0){if(Array.isArray(t)&&(n=o.isRTL?t[0]:t[1],t=o.isRTL?t[1]:t[0]),t.begin!==void 0&&(n=o.isRTL?t.begin:t.end,t=o.isRTL?t.end:t.begin),typeof t==`number`){t=i?t:_.call(o,t),n=i?n:_.call(o,n),n=typeof n==`number`?n:t;let l=parseInt(((e.ownerDocument.defaultView||r.default).getComputedStyle?(e.ownerDocument.defaultView||r.default).getComputedStyle(e,null):e.currentStyle).fontSize)*n;if(e.scrollLeft=l>e.scrollWidth?l:0,e.inputmask.caretPos={begin:t,end:n},s.insertModeVisual&&s.insertMode===!1&&t===n&&(a||n++),e===e.getRootNode().activeElement){if(`setSelectionRange`in e)e.setSelectionRange(t,n);else if(r.default.getSelection){if(c=document.createRange(),e.firstChild===void 0||e.firstChild===null){let t=document.createTextNode(``);e.appendChild(t)}c.setStart(e.firstChild,t<e.inputmask._valueGet().length?t:e.inputmask._valueGet().length),c.setEnd(e.firstChild,n<e.inputmask._valueGet().length?n:e.inputmask._valueGet().length),c.collapse(!0);let i=r.default.getSelection();i.removeAllRanges(),i.addRange(c)}else e.createTextRange&&(c=e.createTextRange(),c.collapse(!0),c.moveEnd(`character`,n),c.moveStart(`character`,t),c.select());e.inputmask.caretHook===void 0||e.inputmask.caretHook.call(o,{begin:t,end:n})}}}else return`selectionStart`in e&&`selectionEnd`in e?(t=e.selectionStart,n=e.selectionEnd):r.default.getSelection?(c=r.default.getSelection().getRangeAt(0),(c.commonAncestorContainer.parentNode===e||c.commonAncestorContainer===e)&&(t=c.startOffset,n=c.endOffset)):document.selection&&document.selection.createRange&&(c=document.selection.createRange(),t=0-c.duplicate().moveStart(`character`,-e.inputmask._valueGet().length),n=t+c.text.length),{begin:i?t:_.call(o,t),end:i?n:_.call(o,n)}}function c(e){let t=this,{maskset:n,dependencyLib:r}=t,o=f.call(t),s={},c=n.validPositions[o],l=a.getMaskTemplate.call(t,!0,f.call(t),!0,!0),u=l.length,d,p=c===void 0?void 0:c.locator.slice(),m;for(d=o+1;d<l.length;d++)m=a.getTestTemplate.call(t,d,p,d-1),p=m.locator.slice(),s[d]=r.extend(!0,{},m);let h=c&&c.alternation!==void 0?c.locator[c.alternation]:void 0;for(d=u-1;d>o&&(m=s[d],(m.match.optionality||m.match.optionalQuantifier&&m.match.newBlockMarker||h&&(h!==s[d].locator[c.alternation]&&m.match.static!==!0||m.match.static===!0&&m.locator[c.alternation]&&i.checkAlternationMatch.call(t,m.locator[c.alternation].toString().split(`,`),h.toString().split(`,`))&&a.getTests.call(t,d)[0].def!==``))&&l[d]===a.getPlaceholder.call(t,d,m.match));d--)if(u--,m.match.optionality){let e=d;for(;e>0;){let n=a.getTest.call(t,e);if(n.match.newBlockMarker===`master`||n.match.newBlockMarker===!0)break;e--}if(n.validPositions[e]!==void 0)break}return d===o&&(u=d),e?{l:u,def:s[u]?s[u].match:void 0}:u}function l(e,t,n){let r=this,{maskset:i,opts:o}=r,s,c,l;function d(e){if(o.radixPoint!==``&&o.digits!==0){let t=i.validPositions;if(t[e]===void 0||t[e].input===void 0){if(e<h.call(r,-1))return!0;let n=u.call(r).indexOf(o.radixPoint);if(n!==-1){for(let e in t){let i=Number(e);if(n<i&&t[e].input!==a.getPlaceholder.call(r,i))return!1}return!0}}}return!1}if(t&&(r.isRTL?e.end=e.begin:e.begin=e.end),e.begin===e.end){switch(n||=o.positionCaretOnClick,n){case`none`:break;case`select`:e={begin:0,end:u.call(r).length};break;case`ignore`:e.end=e.begin=h.call(r,f.call(r));break;case`radixFocus`:if(r.clicked>1&&i.validPositions.length===0)break;if(d(e.begin)){let t=u.call(r).join(``).indexOf(o.radixPoint);e.end=e.begin=o.numericInput?h.call(r,t):t;break}default:if(s=e.begin,c=f.call(r,s,!0),l=h.call(r,c===-1&&!p.call(r,0)?-1:c),s<=l)e.end=e.begin=p.call(r,s,!1,!0)?s:h.call(r,s);else{let t=i.validPositions[c],n=a.getTestTemplate.call(r,l,t?t.match.locator:void 0,t),d=a.getPlaceholder.call(r,l,n.match);if(d!==``&&u.call(r)[l]!==d&&n.match.optionalQuantifier!==!0&&n.match.newBlockMarker!==!0||!p.call(r,l,o.keepStatic,!0)&&n.match.def===d){let e=h.call(r,l);(s>=e||s===l)&&(l=e)}e.end=e.begin=l}}return e}}function u(e){let t=this,{maskset:n}=t;return(n.buffer===void 0||e===!0)&&(n.buffer=a.getMaskTemplate.call(t,!0,f.call(t),!0),n._buffer===void 0&&(n._buffer=n.buffer.slice())),n.buffer}function d(){let e=this,t=this.maskset;return t._buffer===void 0&&(t._buffer=a.getMaskTemplate.call(e,!1,1),t.buffer===void 0&&(t.buffer=t._buffer.slice())),t._buffer}function f(e,t,n){let r=this.maskset,i=-1,a=-1,o=n||r.validPositions;e===void 0&&(e=-1);for(let n=0,r=o.length;n<r;n++)o[n]&&(t||o[n].generatedInput!==!0)&&(n<=e&&(i=n),n>=e&&(a=n));return i===-1||i===e?a:a===-1||e-i<a-e?i:a}function p(e,t,n){let r=this,i=this.maskset,o=a.getTestTemplate.call(r,e).match;if(o.def===``&&(o=a.getTest.call(r,e).match),o.static!==!0)return o.fn;if(n===!0&&i.validPositions[e]!==void 0&&i.validPositions[e].generatedInput!==!0)return!0;if(t!==!0&&e>-1){if(n){let t=a.getTests.call(r,e);return t.length>1+ +(t[t.length-1].match.def===``)}let t=a.determineTestTemplate.call(r,e,a.getTests.call(r,e)),i=a.getPlaceholder.call(r,e,t.match);return t.match.def!==i}return!1}function m(e){let t=this.maskset;t.buffer=void 0,e!==!0&&(t.validPositions=[],t.p=0),e===!1&&(t.tests={},t.jitOffset={})}function h(e,t,n){let r=this;n===void 0&&(n=!0);let i=e+1;for(;a.getTest.call(r,i).match.def!==``&&(t===!0&&(a.getTest.call(r,i).match.newBlockMarker!==!0||!p.call(r,i,void 0,!0))||t!==!0&&!p.call(r,i,void 0,n));)i++;return i}function g(e,t){let n=this,r=e-1;if(e<=0)return 0;for(;r>0&&(t===!0&&(a.getTest.call(n,r).match.newBlockMarker!==!0||!p.call(n,r,void 0,!0))||t!==!0&&!p.call(n,r,void 0,!0));)r--;return r}function _(e){let t=this,n=this.opts,r=this.el;return t.isRTL&&typeof e==`number`&&(!n.greedy||n.placeholder!==``)&&r&&(e=t._valueGet().length-e,e<0&&(e=0)),e}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.alternate=s,t.casing=c,t.checkAlternationMatch=l,t.handleRemove=u,t.isComplete=d,t.isSelection=f,t.isValid=p,t.refreshFromBuffer=h,t.revalidateMask=_;var r=n(18),i=n(19),a=n(20),o=n(22);function s(e,t,n,r,i,c){let l=this,u=this.dependencyLib,d=this.opts,f=l.maskset;if(!l.hasAlternator)return!1;let m=u.extend(!0,[],f.validPositions),h=u.extend(!0,{},f.tests),g,_,v=!1,y=!1,b,x,S,C,w,T=i===void 0?a.getLastValidPosition.call(l):i,E,D,O,k;if(c&&(O=c.begin,k=c.end,c.begin>c.end&&(O=c.end,k=c.begin)),T===-1&&i===void 0)g=0,x=o.getTest.call(l,g),_=x.alternation;else for(;T>=0;T--)if(b=T===0?o.getTest.call(l,0):f.validPositions[T],b&&b.alternation!==void 0){if(T<=(e||0)&&x&&x.locator[b.alternation]!==b.locator[b.alternation])break;g=T,_=b.alternation,x=b}if(_!==void 0){w=parseInt(g),f.excludes[w]=f.excludes[w]||[],e!==!0&&f.excludes[w].push((0,o.getDecisionTaker)(x)+`:`+x.alternation);let i=[],_=-1;for(S=w;w<a.getLastValidPosition.call(l,void 0,!0)+1;S++)_===-1&&e<=S&&t!==void 0&&(i.push(t),_=i.length-1),C=f.validPositions[w],C&&C.generatedInput!==!0&&(w!==0||C.input!==d.skipOptionalPartCharacter)&&(c===void 0||S<O||S>=k)&&i.push(C.input),f.validPositions.splice(w,1);for(_===-1&&t!==void 0&&(i.push(t),_=i.length-1);f.excludes[w]!==void 0&&f.excludes[w].length<10;){f.tests={},a.resetMaskSet.call(l,!0),v=!0,E=w-1;let g=o.getMaskTemplate.call(l,!0,0);for(S=0;S<i.length&&(D=i[S],g[E+1]===D&&d.numericInput!==!0?E++:E=S===0||y.caretPos!==void 0||d.insertMode===!1?a.seekNext.call(l,E):a.getLastValidPosition.call(l,E,!0)+1,v=p.call(l,E,D,!1,r,!0));S++)S===_&&(y=v),e===!0&&v&&(y={caretPos:S});if(v)break;if(a.resetMaskSet.call(l),x=o.getTest.call(l,w),f.validPositions=u.extend(!0,[],m),f.tests=u.extend(!0,{},h),y=!1,f.excludes[w]){if(x.alternation!=null){let i=(0,o.getDecisionTaker)(x);if(f.excludes[w].indexOf(i+`:`+x.alternation)!==-1){y=s.call(l,e,t,n,r,w-1,c);break}for(f.excludes[w].push(i+`:`+x.alternation),S=w;S<a.getLastValidPosition.call(l,void 0,!0)+1;S++)f.validPositions.splice(w)}else delete f.excludes[w]}else{y=s.call(l,e,t,n,r,w-1,c);break}}}return(!y||d.keepStatic!==!1)&&delete f.excludes[w],y||(f.validPositions=u.extend(!0,[],m),f.tests=u.extend(!0,{},h)),y}function c(e,t,n){let r=this.opts,a=this.maskset;switch(r.casing||t.casing){case`upper`:e=e.toLocaleUpperCase();break;case`lower`:e=e.toLocaleLowerCase();break;case`title`:var o=a.validPositions[n-1];e=n===0||o&&o.input===String.fromCharCode(i.keyCode.Space)?e.toLocaleUpperCase():e.toLocaleLowerCase();break;case`follow`:t.def&&t.def!==t.def.toLocaleLowerCase()?e=e.toLocaleUpperCase():t.def&&t.def!==t.def.toLocaleUpperCase()&&(e=e.toLocaleLowerCase());break;default:if(typeof r.casing==`function`){let t=Array.prototype.slice.call(arguments);t.push(a.validPositions),e=r.casing.apply(this,t)}}return e}function l(e,t,n){let r=this.opts.greedy?t:t.slice(0,1),i=!1,a=n===void 0?[]:n.split(`,`),o;for(let t=0;t<a.length;t++)(o=e.indexOf(a[t]))!==-1&&e.splice(o,1);for(let t=0;t<e.length;t++)if(r.includes(e[t])){i=!0;break}return i}function u(e,t,n,r,c){let l=this,u=this.maskset,d=this.opts;if((d.numericInput||l.isRTL)&&(t===i.keys.Backspace?t=i.keys.Delete:t===i.keys.Delete&&(t=i.keys.Backspace),l.isRTL)){let e=n.end;n.end=n.begin,n.begin=e}let f=a.getLastValidPosition.call(l,void 0,!0);n.end>=a.getBuffer.call(l).length&&f>=n.end&&(n.end=f+1),t===i.keys.Backspace?n.end-n.begin<1&&(n.begin=a.seekPrevious.call(l,n.begin)):t===i.keys.Delete&&n.begin===n.end&&(n.end=a.isMask.call(l,n.end,!0,!0)?n.end+1:a.seekNext.call(l,n.end)+1);let p;(p=_.call(l,n))!==!1&&((r!==!0&&d.keepStatic!==!1||d.regex!==null&&o.getTest.call(l,n.begin).match.def.indexOf(`|`)!==-1)&&s.call(l,!0),r!==!0&&(u.p=t===i.keys.Delete?n.begin+p:n.begin,u.p=a.determineNewCaretPosition.call(l,{begin:u.p,end:u.p},!1,d.insertMode===!1&&t===i.keys.Backspace?`none`:void 0).begin))}function d(e){let t=this,n=this.opts,r=this.maskset;if(typeof n.isComplete==`function`)return n.isComplete(e,n);if(n.repeat===`*`)return;let i=!1,s=a.determineLastRequiredPosition.call(t,!0),c=s.l;if(s.def===void 0||s.def.newBlockMarker||s.def.optionality||s.def.optionalQuantifier){i=!0;for(let n=0;n<=c;n++){let a=o.getTestTemplate.call(t,n).match;if(a.static!==!0&&r.validPositions[n]===void 0&&(a.optionality===!1||a.optionality===void 0||a.optionality&&a.newBlockMarker==0)&&(a.optionalQuantifier===!1||a.optionalQuantifier===void 0)||a.static===!0&&a.def!=``&&e[n]!==o.getPlaceholder.call(t,n,a)){i=!1;break}}}return i}function f(e){let t=this,n=+!this.opts.insertMode;return t.isRTL?e.begin-e.end>n:e.end-e.begin>n}function p(e,t,n,r,i,l,u){let d=this,m=this.dependencyLib,v=this.opts,y=d.maskset;n=n===!0;let b=e;e.begin!==void 0&&(b=d.isRTL?e.end:e.begin);function x(e){if(e!==void 0){if(e.remove!==void 0&&(Array.isArray(e.remove)||(e.remove=[e.remove]),e.remove.sort(function(e,t){return d.isRTL?e.pos-t.pos:t.pos-e.pos}).forEach(function(e){_.call(d,{begin:e,end:e+1})}),e.remove=void 0),e.insert!==void 0&&(Array.isArray(e.insert)||(e.insert=[e.insert]),e.insert.sort(function(e,t){return d.isRTL?t.pos-e.pos:e.pos-t.pos}).forEach(function(e){e.c!==``&&p.call(d,e.pos,e.c,e.strict===void 0||e.strict,e.fromIsValid===void 0?r:e.fromIsValid)}),e.insert=void 0),e.refreshFromBuffer&&e.buffer){let t=e.refreshFromBuffer;h.call(d,t===!0?t:t.start,t.end,e.buffer),e.refreshFromBuffer=void 0}e.rewritePosition!==void 0&&(b=e.rewritePosition,e=!0)}return e}function S(t,n,i){let s=!1;return o.getTests.call(d,t).every(function(l,u){let p=l.match;if(a.getBuffer.call(d,!0),s=p.jit&&y.validPositions[a.seekPrevious.call(d,t)]===void 0?!1:p.fn==null?(n===p.def||n===v.skipOptionalPartCharacter)&&p.def!==``&&{c:o.getPlaceholder.call(d,t,p,!0)||p.def,pos:t}:p.fn.test(n,y,t,i,v,f.call(d,e)),s!==!1){let i=s.c===void 0?n:s.c,a=t;return i=i===v.skipOptionalPartCharacter&&p.static===!0?o.getPlaceholder.call(d,t,p,!0)||p.def:i,s=x(s),s!==!0&&s.pos!==void 0&&s.pos!==t&&(a=s.pos),s!==!0&&s.pos===void 0&&s.c===void 0||_.call(d,e,m.extend({},l,{input:c.call(d,i,p,a)}),r,a)===!1&&(s=!1),!1}return!0}),s}let C=!0,w=m.extend(!0,[],y.validPositions);if(v.keepStatic===!1&&y.excludes[b]!==void 0&&i!==!0&&r!==!0)for(let t=b;t<(d.isRTL?e.begin:e.end);t++)y.excludes[t]!==void 0&&(y.excludes[t]=void 0,delete y.tests[t]);if(typeof v.preValidation==`function`&&r!==!0&&l!==!0&&(C=v.preValidation.call(d,a.getBuffer.call(d),b,t,f.call(d,e),v,y,e,n||i),C=x(C)),C===!0){if(C=S(b,t,n),(!n||r===!0)&&C===!1&&l!==!0){let r=y.validPositions[b];if(r&&r.match.static===!0&&(r.match.def===t||t===v.skipOptionalPartCharacter))C={caret:a.seekNext.call(d,b)};else if(v.insertMode||y.validPositions[a.seekNext.call(d,b)]===void 0||e.end>b){let r=!1;if(y.jitOffset[b]&&y.validPositions[a.seekNext.call(d,b)]===void 0&&(C=p.call(d,b+y.jitOffset[b],t,!0,!0),C!==!1&&(i!==!0&&(C.caret=b),r=!0)),e.end>b&&(y.validPositions[b]=void 0),!r&&!a.isMask.call(d,b,v.keepStatic&&b===0)){for(let e=b+1,r=a.seekNext.call(d,b,!1,b!==0);e<=r;e++)if(C=S(e,t,n),C!==!1){C=g.call(d,b,C.pos===void 0?e:C.pos)||C,b=e;break}}}}if(d.hasAlternator&&i!==!0&&!n&&(i=!0,C===!1?(v.keepStatic===!0||isFinite(parseInt(v.keepStatic))&&b>=v.keepStatic)&&(C=s.call(d,b,t,n,r,void 0,e)):C===!0&&(f.call(d,e)&&y.tests[b]&&y.tests[b].length>1&&v.keepStatic||v.numericInput!==!0&&y.tests[b]&&y.tests[b].length>1&&a.getLastValidPosition.call(d,void 0,!0)>b)&&(C=s.call(d,!0)||C)),C===!0&&(C={pos:b}),typeof v.postValidation==`function`&&r!==!0&&l!==!0){let r=v.postValidation.call(d,a.getBuffer.call(d,!0),e.begin===void 0?e:d.isRTL?e.end:e.begin,t,C,v,y,n,u,i);r!==void 0&&(C=r===!0?C:r)}}C&&C.pos===void 0&&(C.pos=b),C===!1||l===!0?(a.resetMaskSet.call(d,!0),y.validPositions=m.extend(!0,[],w)):g.call(d,void 0,b,!0);let T=x(C);return d.maxLength!==void 0&&a.getBuffer.call(d).length>d.maxLength&&!r&&(a.resetMaskSet.call(d,!0),y.validPositions=m.extend(!0,[],w),T=!1),T}function m(e,t,n){let r=this,i=this.maskset,a=!1,s=o.getTests.call(r,e);for(let r=0;r<s.length;r++)if(s[r].match&&(s[r].match.nativeDef===t.match[n.shiftPositions?`def`:`nativeDef`]&&(!n.shiftPositions||!t.match.static)||s[r].match.nativeDef===t.match.nativeDef||n.regex&&!s[r].match.static&&s[r].match.fn.test(t.input,i,e,!1,n))){a=!0;break}else if(s[r].match&&s[r].match.def===t.match.nativeDef){a=void 0;break}return a===!1&&i.jitOffset[e]!==void 0&&(a=m.call(r,e+i.jitOffset[e],t,n)),a}function h(e,t,n){let i=this,o=this.maskset,s=this.opts,c=this.dependencyLib,l,u,d=s.skipOptionalPartCharacter,f=i.isRTL?n.slice().reverse():n;if(s.skipOptionalPartCharacter=``,e===!0)a.resetMaskSet.call(i,!1),e=0,t=n.length,u=a.determineNewCaretPosition.call(i,{begin:0,end:0},!1).begin;else{for(l=e;l<t;l++)delete o.validPositions[l];u=e}let p=new c.Event(`keypress`);for(l=e;l<t;l++){p.key=f[l].toString(),i.ignorable=!1;let e=r.EventHandlers.keypressEvent.call(i,p,!0,!1,!1,u);e!==!1&&e!==void 0&&(u=e.forwardPosition)}s.skipOptionalPartCharacter=d}function g(e,t,n){let r=this,i=this.maskset,s=this.dependencyLib;if(e===void 0)for(e=t-1;e>0&&!i.validPositions[e];e--);for(let u=e;u<t;u++)if(i.validPositions[u]===void 0&&!a.isMask.call(r,u,!1)&&(u==0?o.getTest.call(r,u):i.validPositions[u-1])){let e=o.getTests.call(r,u).slice();e[e.length-1].match.def===``&&e.pop();var c=o.determineTestTemplate.call(r,u,e),l;if(c&&(c.match.jit!==!0||c.match.newBlockMarker===`master`&&(l=i.validPositions[u+1])&&l.match.optionalQuantifier===!0)&&(c=s.extend({},c,{input:o.getPlaceholder.call(r,u,c.match,!0)||c.match.def}),c.generatedInput=!0,_.call(r,u,c,!0),n!==!0)){let e=i.validPositions[t].input;return i.validPositions[t]=void 0,p.call(r,t,e,!0,!0)}}}function _(e,t,n,r){let i=this,s=this.maskset,c=this.opts,l=this.dependencyLib;function u(e,t,n){let r=t[e];if(r!==void 0&&r.match.static===!0&&r.match.optionality!==!0&&(t[0]===void 0||t[0].alternation===void 0)){let r=n.begin<=e-1?t[e-1]&&t[e-1].match.static===!0&&t[e-1]:t[e-1],i=n.end>e+1?t[e+1]&&t[e+1].match.static===!0&&t[e+1]:t[e+1];return r&&i}return!1}let d=0,h=e.begin===void 0?e:e.begin,g=e.end===void 0?e:e.end,_=!0;if(e.begin>e.end&&(h=e.end,g=e.begin),r=r===void 0?h:r,n===void 0&&(h!==g||c.insertMode&&s.validPositions[r]!==void 0||t===void 0||t.match.optionalQuantifier||t.match.optionality)){let n=l.extend(!0,[],s.validPositions),v=a.getLastValidPosition.call(i,void 0,!0),y;s.p=h;let b=f.call(i,e)?h:r;for(y=v;y>=b;y--)s.validPositions.splice(y,1),t===void 0&&delete s.tests[y+1];let x=r,S=x,C,w,T;for(t&&(s.validPositions[r]=l.extend(!0,{},t),S++,x++),n[g]==null&&s.jitOffset[g]&&(g+=s.jitOffset[g]+ +!!t),y=t?g:g-1;y<=v;y++){if((C=n[y])!==void 0&&(c.shiftPositions!==!0||C.generatedInput!==!0)&&(y>=g||y>=h&&u(y,n,{begin:h,end:g}))){for(;T=o.getTest.call(i,S),T.match.def!==``;){if((w=m.call(i,S,C,c))!==!1||C.match.def===`+`){C.match.def===`+`&&a.getBuffer.call(i,!0);let e=p.call(i,S,C.input,C.match.def!==`+`,!0);if(_=e!==!1,x=(e.pos||S)+1,!_&&w)break}else _=!1;if(_){t===void 0&&C.match.static&&y===e.begin&&d++;break}if(!_&&a.getBuffer.call(i),S>s.maskLength)break;S++}o.getTest.call(i,S).match.def==``&&(_=!1),S=x}if(!_)break}if(!_)return s.validPositions=l.extend(!0,[],n),a.resetMaskSet.call(i,!0),!1}else t&&o.getTest.call(i,r).match.cd===t.match.cd&&(s.validPositions[r]=l.extend(!0,{},t));return a.resetMaskSet.call(i,!0),d}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.determineTestTemplate=f,t.getDecisionTaker=c,t.getMaskTemplate=u,t.getPlaceholder=l,t.getTest=m,t.getTestTemplate=d,t.getTests=g,t.isSubsetOf=h;var r=o(n(7)),i=n(20),a=n(21);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){let n=(e.alternation==null?e.locator:e.mloc[`${c(e)}:${e.alternation}`]||e.locator).join(``);if(n!==``)for(n=n.split(`:`)[0];n.length<t;)n+=`0`;return n}function c(e){let t=e.locator[e.alternation];return typeof t==`string`&&t.length>0&&(t=t.split(`,`).sort((e,t)=>e-t)[0]),t===void 0?``:t.toString()}function l(e,t,n){let r=this,o=this.opts,s=this.maskset;if(t||=m.call(r,e).match,t.placeholder!==void 0||n===!0){if(t.placeholder!==``&&t.static===!0&&t.generated!==!0){let s=i.getLastValidPosition.call(r,e),c=i.seekNext.call(r,s);return(n?e<=c:e<c)?a.casing.call(r,o.staticDefinitionSymbol&&t.static?t.nativeDef:t.def,t,e):typeof t.placeholder==`function`?t.placeholder(o):t.placeholder}return typeof t.placeholder==`function`?t.placeholder(o):t.placeholder}if(t.static===!0){if(e>-1&&s.validPositions[e]===void 0){let t=g.call(r,e),n=[],i;if(typeof o.placeholder==`string`&&t.length>1+ +(t[t.length-1].match.def===``)){for(let r=0;r<t.length;r++)if(t[r].match.def!==``&&t[r].match.optionality!==!0&&t[r].match.optionalQuantifier!==!0&&(t[r].match.static===!0||i===void 0||t[r].match.fn.test(i.match.def,s,e,!0,o)!==!1)&&(n.push(t[r]),t[r].match.static===!0&&(i=t[r]),n.length>1&&/[0-9a-zA-Z]/.test(n[0].match.def)))return o.placeholder.charAt(e%o.placeholder.length)}}return t.def}return typeof o.placeholder==`object`?t.def:o.placeholder.charAt(e%o.placeholder.length)}function u(e,t,n,r,i){let a=this,o=this.opts,s=this.maskset,c=o.greedy,u=[];i&&o.greedy&&(o.greedy=!1,a.maskset.tests={}),t||=0;let p,m=0,h,_,v;do{if(e===!0&&s.validPositions[m])_=i&&s.validPositions[m].match.optionality&&s.validPositions[m+1]===void 0&&(s.validPositions[m].generatedInput===!0||s.validPositions[m].input==o.skipOptionalPartCharacter&&m>0)?f.call(a,m,g.call(a,m,p,m-1)):s.validPositions[m],h=_.match,p=_.locator.slice(),u.push(n===!0?_.input:n===!1?h.nativeDef:l.call(a,m,h));else{_=d.call(a,m,p,m-1),h=_.match,p=_.locator.slice();let e=r===!0?!1:o.jitMasking===!1?h.jit:o.jitMasking;v=(v||s.validPositions[m-1])&&h.static&&h.def!==o.groupSeparator&&h.fn===null,v||e===!1||e===void 0||typeof e==`number`&&isFinite(e)&&e>m?u.push(n===!1?h.nativeDef:l.call(a,u.length,h)):v=!1}m++}while(h.static!==!0||h.def!==``||t>m);return u[u.length-1]===``&&u.pop(),(n!==!1||s.maskLength===void 0)&&(s.maskLength=m-1),o.greedy=c,u}function d(e,t,n){let r=this;return this.maskset.validPositions[e]||f.call(r,e,g.call(r,e,t&&t.slice(),n))}function f(e,t){let n=this,r=n.opts,i=p(e,t);e=e>0?e-1:0;let a=Math.max(...t.map(e=>e.locator===void 0?0:e.locator.length)),o=s(m.call(n,e),a),c=0,l,u,d;r.greedy&&t.length>1&&t[t.length-1].match.def===``&&(c=1);for(let e=0;e<t.length-c;e++){let n=t[e];l=s(n,a);let c=Number(l)-Number(o);(n.unMatchedAlternationStopped!==!0||t.filter(e=>e.unMatchedAlternationStopped!==!0).length<=1)&&(u===void 0||l!==``&&c<u||d&&!r.greedy&&d.match.optionality&&d.match.optionality-i>0&&d.match.newBlockMarker===`master`&&(!n.match.optionality||n.match.optionality-i<1||!n.match.newBlockMarker)||d&&!r.greedy&&d.match.optionalQuantifier&&!n.match.optionalQuantifier)&&(u=c,d=n)}return d}function p(e,t){let n=0,r=!1;return t.forEach(e=>{e.match.optionality&&(n!==0&&n!==e.match.optionality&&(r=!0),(n===0||n>e.match.optionality)&&(n=e.match.optionality))}),n&&(e==0||t.length==1?n=0:r||(n=0)),n}function m(e,t){let n=this,r=this.maskset;return r.validPositions[e]?r.validPositions[e]:(t||g.call(n,e))[0]}function h(e,t,n){function r(e){let t=[],n=-1,r;for(let i=0,a=e.length;i<a;i++)if(e.charAt(i)===`-`)for(r=e.charCodeAt(i+1);++n<r;)t.push(String.fromCharCode(n));else n=e.charCodeAt(i),t.push(e.charAt(i));return t.join(``)}return e.match.def===t.match.nativeDef?!0:(n.regex||e.match.fn instanceof RegExp&&t.match.fn instanceof RegExp)&&e.match.static!==!0&&t.match.static!==!0?t.match.fn.source===`.`||r(t.match.fn.source.replace(/[[\]/]/g,``)).indexOf(r(e.match.fn.source.replace(/[[\]/]/g,``)))!==-1:!1}function g(e,t,n){let i=this,a=this.dependencyLib,o=this.maskset,s=this.opts,c=this.el,l=o.maskToken,u=t?n:0,d=t?t.slice():[0],p=[],m=!1,g=!1,_,v=t?t.join(``):``,y=!1;function b(t,n,a,l){function d(a,l,f){function C(e,t){let n=t.matches.indexOf(e)===0;return n||t.matches.every(function(r,i){return r.isQuantifier===!0?n=C(e,t.matches[i-1]):Object.prototype.hasOwnProperty.call(r,`matches`)&&(n=C(e,r)),!n||(t.matches[i+1]&&t.matches[i+1].isQuantifier&&(n=i===0),!1)}),n}function w(e,t,n){let r,i,a,s,c=`${t}:${n}`;if((o.tests[e]||o.validPositions[e])&&(o.validPositions[e]?[o.validPositions[e]]:o.tests[e]).every(function(e,o){return e.mloc[c]?(r=e,!1):(Object.values(e.mloc).filter(e=>e[n]==t).every(t=>{let n=t.join(``).split(`:`)[0];for(a||=n;n.length<a.length;)n+=`0`;let o=Number(n);return(r===void 0||o<i)&&(i=o,r=e,s=Object.entries(e.mloc).find(e=>e[1].toString()===t.toString())[0]),!0}),!0)}),r){n===void 0&&(c=`${t}:${r.alternation}`);let e=`${r.locator[r.alternation]}:${r.alternation}`,i=r.mloc[s||c]||r.mloc[e]||r.locator;i[i.length-1].toString().indexOf(`:`)!==-1&&i.pop();let a=parseInt(r.alternation)+1;return i.slice(a)}return n===void 0?void 0:w(e,t)}function T(t,n){return t.match.static===!0&&n.match.static!==!0&&n.match.fn.test(t.match.def,o,e,!1,s,!1)}function E(e,t){function n(n){e.mloc=e.mloc||{};let r=e.locator[n];if(r===void 0)e.alternation=void 0;else{if(t===void 0)typeof r==`string`&&(r=r.split(`,`)[0]),r=`${r}:${n}`,e.mloc[r]===void 0&&(e.mloc[r]=e.locator.slice(),e.mloc[r].push(`:${n}`));else{let n=0;for(let r in t.mloc)if(e.mloc[r]===void 0)e.mloc[r]=t.mloc[r];else do if(e.mloc[r+n]===void 0){e.mloc[r+n]=t.mloc[r];break}while(e.mloc[r+n++]!==void 0);e.locator=S(u,[e,t])}return e.alternation>n&&(e.alternation=n),!0}return!1}let r=e.alternation,i=t===void 0||r<=t.alternation&&e.locator[r].toString().indexOf(t.locator[r])===-1;if(!i&&r>t.alternation){for(let n=0;n<r;n++)if(e.locator[n]!==t.locator[n]){r=n,i=!0;break}}return i?n(r):!1}function D(){if(a=d(t.matches[t.matches.indexOf(a)+1],l,f),a)return!0}function O(){let t=a,r=p.length;if(a=b(a,n,l,f),p.length>0){if(p.forEach(function(e,t){t>=r&&(e.match.optionality=e.match.optionality?e.match.optionality+1:1)}),_=p[p.length-1].match,f===void 0&&C(_,t))m=!0,u=e;else return a}}function k(){function r(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];r.isQuantifier&&!isNaN(r.quantifier.max)?t+=r.quantifier.max:t++}return t}function _(e){let t=e.matches[0].matches?r(e.matches[0].matches):1,n;for(let i=0;i<e.matches.length&&(n=e.matches[i].matches?r(e.matches[i].matches):1,t===n);i++);return t!==n}i.hasAlternator=!0;let v=a,b=[],x=p.slice(),S=l.length,C=n.length>0?n.shift():-1,D;if(C===-1||typeof C==`string`){let t=u,r=n.slice(),i=[],O;if(typeof C==`string`)i=C.split(`,`);else for(O=0;O<v.matches.length;O++)i.push(O.toString());if(o.excludes[e]!==void 0){let t=i.slice();for(let t=0,n=o.excludes[e].length;t<n;t++){let n=o.excludes[e][t].toString().split(`:`);l.length==n[1]&&i.splice(i.indexOf(n[0]),1)}i.length===0&&(delete o.excludes[e],i=t)}(s.keepStatic===!0||isFinite(parseInt(s.keepStatic))&&t>=s.keepStatic)&&(i=i.slice(0,1));for(let e=0;e<i.length;e++){O=parseInt(i[e]),p=[],n=typeof C==`string`&&w(u,O,S)||r.slice();let o=v.matches[O];if(o&&d(o,[O].concat(l),f))a=!0;else if(y=_(v),o&&o.matches&&o.matches.length>v.matches[0].matches.length)break;D=p.slice(),u=t,p=[];for(let e=0;e<D.length;e++){let n=D[e],r=!1;n.alternation=n.alternation||S,E(n);for(let e=0;e<b.length;e++){let i=b[e];if(typeof C!=`string`||n.alternation!==void 0&&C.indexOf(n.locator[n.alternation].toString())!==-1){if(n.match.nativeDef===i.match.nativeDef){r=!0,E(i,n);break}if(h(n,i,s)){E(n,i)&&(r=!0,b.splice(b.indexOf(i),0,n));break}if(h(i,n,s)){E(i,n);break}if(T(n,i)){E(n,i)&&(r=!0,b.splice(b.indexOf(i),0,n));break}if(T(i,n)){E(i,n),i.match.optionality&&c.inputmask.userOptions.keepStatic===void 0&&(s.keepStatic=t);break}}}r||b.push(n)}}p=x.concat(b),u=e,m||=p.length>0&&y,!y&&m&&(g=!0),a=b.length>0&&!y,y&&m&&!a&&p.forEach(function(e,t){e.unMatchedAlternationStopped=!0}),n=r.slice()}else a=d(v.matches[C]||t.matches[C],[C].concat(l),f);if(a)return!0}function A(){let r=a,i=!1;for(let c=n.length>0?n.shift():0;c<(isNaN(r.quantifier.max)?c+1:r.quantifier.max)&&u<=e;c++){let n=t.matches[t.matches.indexOf(r)-1];if(a=d(n,[c].concat(l),n),a){if(p.forEach(function(t,l){_=x(n,t.match)?t.match:p[p.length-1].match,_.optionalQuantifier=c>=r.quantifier.min,_.jit=(c+1)*(n.matches.indexOf(_)+1)>r.quantifier.jit,(_.optionalQuantifier||_.optionality)&&C(_,n)&&(m=!0,u=e,s.greedy&&o.validPositions[e-1]==null&&c>r.quantifier.min&&[`*`,`+`].indexOf(r.quantifier.max)!=-1&&(p.pop(),v=void 0),i=!0,a=!1),!i&&_.jit&&(o.jitOffset[e]=n.matches.length-n.matches.indexOf(_))}),i)break;return!0}}}if(u>e+s._maxTestPos)throw Error(`Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ${o.mask}`);if(u===e&&a.matches===void 0){if(p.push({match:a,locator:l.reverse(),cd:v,mloc:{}}),a.optionality&&f===void 0&&(s.definitions&&s.definitions[a.nativeDef]&&s.definitions[a.nativeDef].optional||r.default.prototype.definitions[a.nativeDef]&&r.default.prototype.definitions[a.nativeDef].optional))m=!0,u=e;else return!0}else if(a.matches!==void 0){if(a.isGroup&&f!==a)return D();if(a.isOptional)return O();if(a.isAlternator)return k();if(a.isQuantifier&&f!==t.matches[t.matches.indexOf(a)-1])return A();if(a=b(a,n,l,f),a)return!0}else u++}for(let r=n.length>0?n.shift():0;r<t.matches.length;r++)if(t.matches[r].isQuantifier!==!0){let n=d(t.matches[r],[r].concat(a),l);if(n&&u===e)return n;if(u>e)break}}function x(e,t){let n=e.matches.indexOf(t)!=-1;return n||e.matches.forEach((e,r)=>{e.matches!==void 0&&!n&&(n=x(e,t))}),n}function S(e,t){let n=[];return Array.isArray(t)||(t=[t]),t.length>0&&(t[0].alternation===void 0||s.keepStatic===!0||isFinite(parseInt(s.keepStatic))&&e>=s.keepStatic?(n=f.call(i,e,t.slice()).locator.slice(),n.length===0&&(n=t[0].locator.slice())):t.forEach(e=>{Object.values(e.mloc).forEach(e=>{e.forEach((e,t)=>{let r=n[t];e.toString().includes(`:`)||r&&r.toString().includes(`:`)||(r===void 0?n[t]=e:r.toString().includes(e)||(n[t]=n[t]+`,`+e))})})})),n}if(e>-1){if(t===void 0){let t=e-1,n;for(;(n=o.validPositions[t]||o.tests[t])===void 0&&t>-1;)t--;n!==void 0&&t>-1&&(d=S(t,n),v=d.join(``),u=t)}if(o.tests[e]&&o.tests[e][0].cd===v)return o.tests[e];for(let t=d.shift();t<l.length&&!(b(l[t],d,[t])&&u===e||u>e);t++);}(p.length===0||m)&&p.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:``,placeholder:``},locator:y&&p.filter(e=>e.unMatchedAlternationStopped!==!0).length===0||g&&p.length>0&&p.filter(e=>!e.match.static).every(e=>e.match.optionalQuantifier)?[0]:[],mloc:{},cd:v});let C;return t!==void 0&&o.tests[e]?C=a.extend(!0,[],p):(o.tests[e]=a.extend(!0,[],p),C=o.tests[e]),p.forEach(e=>{e.match.optionality=e.match.defOptionality||!1}),C}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mask=l;var r=n(17),i=n(18),a=n(15),o=n(16),s=n(20),c=n(21);function l(){let e=this,t=this.opts,n=this.el,l=this.dependencyLib;function u(t,n){function r(t){let r,i;function c(t){if(l.valHooks&&(l.valHooks[t]===void 0||l.valHooks[t].inputmaskpatch!==!0)){let r=l.valHooks[t]&&l.valHooks[t].get?l.valHooks[t].get:function(e){return e.value},i=l.valHooks[t]&&l.valHooks[t].set?l.valHooks[t].set:function(e,t){return e.value=t,e};l.valHooks[t]={get:function(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask)return t.inputmask.unmaskedvalue();{let i=r(t);return s.getLastValidPosition.call(e,void 0,void 0,t.inputmask.maskset.validPositions)!==-1||n.nullable!==!0?i:``}}return r(t)},set:function(e,t){let n=i(e,t);return e.inputmask&&(0,o.applyInputValue)(e,t),n},inputmaskpatch:!0}}}function u(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():s.getLastValidPosition.call(e)!==-1||n.nullable!==!0?this.getRootNode().activeElement===this&&n.clearMaskOnLostFocus?(e.isRTL?o.clearOptionalTail.call(e,s.getBuffer.call(e).slice()).reverse():o.clearOptionalTail.call(e,s.getBuffer.call(e).slice())).join(``):r.call(this):``:r.call(this)}function d(e){i.call(this,e),this.inputmask&&(0,o.applyInputValue)(this,e)}function f(e){a.EventRuler.on(e,`mouseenter`,function(){let e=this,t=e.inputmask._valueGet(!0);t!=(e.inputmask.isRTL?s.getBuffer.call(e.inputmask).slice().reverse():s.getBuffer.call(e.inputmask)).join(``)&&(0,o.applyInputValue)(e,t)})}if(!t.inputmask.__valueGet){if(n.noValuePatching!==!0){if(Object.getOwnPropertyDescriptor){let e=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),`value`):void 0;e&&e.get&&e.set?(r=e.get,i=e.set,Object.defineProperty(t,"value",{get:u,set:d,configurable:!0})):t.tagName.toLowerCase()!==`input`&&(r=function(){return this.textContent},i=function(e){this.textContent=e},Object.defineProperty(t,"value",{get:u,set:d,configurable:!0}))}else document.__lookupGetter__&&t.__lookupGetter__(`value`)&&(r=t.__lookupGetter__(`value`),i=t.__lookupSetter__(`value`),t.__defineGetter__(`value`,u),t.__defineSetter__(`value`,d));t.inputmask.__valueGet=r,t.inputmask.__valueSet=i}t.inputmask._valueGet=function(t){return e.isRTL&&t!==!0?r.call(this.el).split(``).reverse().join(``):r.call(this.el)},t.inputmask._valueSet=function(t,n){i.call(this.el,t==null?``:n!==!0&&e.isRTL?t.split(``).reverse().join(``):t)},r===void 0&&(r=function(){return this.value},i=function(e){this.value=e},c(t.type),f(t))}}let i=t.getAttribute(`type`),c=t.tagName.toLowerCase()===`input`&&n.supportsInputType.includes(i)||t.isContentEditable||t.tagName.toLowerCase()===`textarea`;if(!c){if(t.tagName.toLowerCase()===`input`){let e=document.createElement(`input`);e.setAttribute(`type`,i),c=e.type===`text`,e=null}else c=`partial`}return c===!1?t.inputmask=void 0:r(t),c}a.EventRuler.off(n);let d=u(n,t);if(d!==!1){e.originalPlaceholder=n.placeholder,e.maxLength=n===void 0?void 0:n.maxLength,e.maxLength===-1&&(e.maxLength=void 0),`inputMode`in n&&n.getAttribute(`inputmode`)===null&&(n.inputMode=t.inputmode,n.setAttribute(`inputmode`,t.inputmode)),d===!0&&(t.showMaskOnFocus=t.showMaskOnFocus&&[`cc-number`,`cc-exp`].indexOf(n.autocomplete)===-1,r.iphone&&(t.insertModeVisual=!1,n.setAttribute(`autocorrect`,`off`)),a.EventRuler.on(n,`submit`,i.EventHandlers.submitEvent),a.EventRuler.on(n,`reset`,i.EventHandlers.resetEvent),a.EventRuler.on(n,`blur`,i.EventHandlers.blurEvent),a.EventRuler.on(n,`focus`,i.EventHandlers.focusEvent),a.EventRuler.on(n,`invalid`,i.EventHandlers.invalidEvent),a.EventRuler.on(n,`click`,i.EventHandlers.clickEvent),a.EventRuler.on(n,`mouseleave`,i.EventHandlers.mouseleaveEvent),a.EventRuler.on(n,`mouseenter`,i.EventHandlers.mouseenterEvent),a.EventRuler.on(n,`paste`,i.EventHandlers.pasteEvent),a.EventRuler.on(n,`cut`,i.EventHandlers.cutEvent),a.EventRuler.on(n,`complete`,t.oncomplete),a.EventRuler.on(n,`incomplete`,t.onincomplete),a.EventRuler.on(n,`cleared`,t.oncleared),t.inputEventOnly!==!0&&a.EventRuler.on(n,`keydown`,i.EventHandlers.keyEvent),(r.mobile||t.inputEventOnly)&&n.removeAttribute(`maxLength`),a.EventRuler.on(n,`input`,i.EventHandlers.inputFallBackEvent)),a.EventRuler.on(n,`setvalue`,i.EventHandlers.setValueEvent),e.applyMaskHook===void 0||e.applyMaskHook(),s.getBufferTemplate.call(e).join(``),e.undoValue=e._valueGet(!0);let l=n.getRootNode().activeElement;if(n.inputmask._valueGet(!0)!==``||t.clearMaskOnLostFocus===!1||l===n){(0,o.applyInputValue)(n,n.inputmask._valueGet(!0));let r=s.getBuffer.call(e).slice();c.isComplete.call(e,r)===!1&&t.clearIncomplete&&s.resetMaskSet.call(e,!1),t.clearMaskOnLostFocus&&l!==n&&(s.getLastValidPosition.call(e)===-1?r=[]:o.clearOptionalTail.call(e,r)),(t.clearMaskOnLostFocus===!1||t.showMaskOnFocus&&l===n||n.inputmask._valueGet(!0)!==``)&&(0,o.writeBuffer)(n,r),l===n?s.caret.call(e,n,s.seekNext.call(e,s.getLastValidPosition.call(e))):s.caret.call(e,n,0)}}}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.analyseMask=l,t.generateMaskSet=c;var r=s(n(10)),i=n(25),a=s(n(7)),o=s(n(26));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){let n;function o(e,{repeat:t,groupmarker:n,quantifiermarker:r,keepStatic:a}){if(t>0||t===`*`||t===`+`){let i=t===`*`?0:t===`+`?1:t;if(i!==t)e=n[0]+e+n[1]+r[0]+i+`,`+t+r[1];else{let t=e;for(let n=1;n<i;n++)e+=t}}if(a===!0){let t=e.match(RegExp(`(.)\\[([^\\]]*)\\]`,`g`));t&&t.forEach((t,n)=>{let[r,a]=t.split(`[`);a=a.replace(`]`,``),e=e.replace(RegExp(`${(0,i.escapeRegex)(r)}\\[${(0,i.escapeRegex)(a)}\\]`),r.charAt(0)===a.charAt(0)?`(${r}|${r}${a})`:`${r}[${a}]`)})}return e}function s(e,n,i){let s=!1;(e===null||e===``)&&(s=i.regex!==null,s?(e=i.regex,e=e.replace(/^(\^)(.*)(\$)$/,`$2`)):(s=!0,e=`.*`)),e.length===1&&i.greedy===!1&&i.repeat!==0&&(i.placeholder=``),e=o(e,i);let c,l;return l=s?`regex_`+i.regex:i.numericInput?e.split(``).reverse().join(``):e,i.keepStatic!==null&&(l=`ks_`+i.keepStatic+l),typeof i.placeholder==`object`&&(l=`ph_`+JSON.stringify(i.placeholder)+l),a.default.prototype.masksCache[l]===void 0||t===!0?(c={mask:e,maskToken:a.default.prototype.analyseMask(e,s,i),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:n,maskLength:void 0,jitOffset:{}},t!==!0&&(a.default.prototype.masksCache[l]=c,c=r.default.extend(!0,{},a.default.prototype.masksCache[l]))):c=r.default.extend(!0,{},a.default.prototype.masksCache[l]),c}if(typeof e.mask==`function`&&(e.mask=e.mask(e)),Array.isArray(e.mask)){if(e.mask.length>1){e.keepStatic===null&&(e.keepStatic=!0);let t=e.groupmarker[0];return(e.isRTL?e.mask.reverse():e.mask).forEach(function(n){t.length>1&&(t+=e.alternatormarker),n.mask!==void 0&&typeof n.mask!=`function`?t+=n.mask:t+=n}),t+=e.groupmarker[1],s(t,e.mask,e)}e.mask=e.mask.pop()}return n=e.mask&&e.mask.mask!==void 0&&typeof e.mask.mask!=`function`?s(e.mask.mask,e.mask,e):s(e.mask,e.mask,e),e.keepStatic===null&&(e.keepStatic=!1),n}function l(e,t,n){let r=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,i=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,s=new o.default,c=[],l=[],u=!1,d,f,p,m,h,g,_=!1;function v(e,r,i){i=i===void 0?e.matches.length:i;let o=e.matches[i-1],c=n.casing?`i`:``;if(t)r.indexOf(`[`)===0||u&&/\\d|\\s|\\w|\\p/i.test(r)||r===`.`?(/\\p\{.*}/i.test(r)&&(c+=`u`),e.matches.splice(i++,0,{fn:new RegExp(r,c),static:!1,optionality:!1,newBlockMarker:o===void 0?`master`:o.def!==r,casing:null,def:r,placeholder:typeof n.placeholder==`object`?n.placeholder[s.matches.length]:void 0,nativeDef:r})):(u&&(r=r[r.length-1]),r.split(``).forEach(function(t,r){o=e.matches[i-1],e.matches.splice(i++,0,{fn:/[a-z]/i.test(n.staticDefinitionSymbol||t)?RegExp(`[`+(n.staticDefinitionSymbol||t)+`]`,c):null,static:!0,optionality:!1,newBlockMarker:o===void 0?`master`:o.def!==t&&o.static!==!0,casing:null,def:n.staticDefinitionSymbol||t,placeholder:n.staticDefinitionSymbol===void 0?typeof n.placeholder==`object`?n.placeholder[s.matches.length]:void 0:t,nativeDef:(u?`'`:``)+t})})),u=!1;else{let t=n.definitions&&n.definitions[r]||n.usePrototypeDefinitions&&a.default.prototype.definitions[r];t&&!u?(typeof t.validator==`string`&&/\\p\{.*}/i.test(t.validator)&&(c+=`u`),e.matches.splice(i++,0,{fn:t.validator?typeof t.validator==`string`?new RegExp(t.validator,c):new function(){this.test=t.validator}:/./,static:t.static||!1,optionality:t.optional||!1,defOptionality:t.optional||!1,newBlockMarker:o===void 0||t.optional?`master`:o.def!==(t.definitionSymbol||r),casing:t.casing,def:t.definitionSymbol||r,placeholder:t.placeholder,nativeDef:r,generated:t.generated})):(e.matches.splice(i++,0,{fn:/[a-z]/i.test(n.staticDefinitionSymbol||r)?RegExp(`[`+(n.staticDefinitionSymbol||r)+`]`,c):null,static:!0,optionality:!1,newBlockMarker:o===void 0?`master`:o.def!==r&&o.static!==!0,casing:null,def:n.staticDefinitionSymbol||r,placeholder:n.staticDefinitionSymbol===void 0?void 0:r,nativeDef:(u?`'`:``)+r}),u=!1)}}function y(e){e&&e.matches&&e.matches.forEach(function(r,i){let a=e.matches[i+1];(a===void 0||a.matches===void 0||a.isQuantifier===!1)&&r&&r.isGroup&&(r.isGroup=!1,t||(v(r,n.groupmarker[0],0),r.openGroup!==!0&&v(r,n.groupmarker[1]))),y(r)})}function b(){if(c.length>0){if(m=c[c.length-1],v(m,f),m.isAlternator){h=c.pop();for(let e=0;e<h.matches.length;e++)h.matches[e].isGroup&&(h.matches[e].isGroup=!1);c.length>0?(m=c[c.length-1],m.matches.push(h)):s.matches.push(h)}}else v(s,f)}function x(e){function t(e){return e===n.optionalmarker[0]?e=n.optionalmarker[1]:e===n.optionalmarker[1]?e=n.optionalmarker[0]:e===n.groupmarker[0]?e=n.groupmarker[1]:e===n.groupmarker[1]&&(e=n.groupmarker[0]),e}e.matches=e.matches.reverse();for(let n in e.matches)if(Object.prototype.hasOwnProperty.call(e.matches,n)){let r=parseInt(n);if(e.matches[n].isQuantifier&&e.matches[r+1]&&e.matches[r+1].isGroup){let t=e.matches[n];e.matches.splice(n,1),e.matches.splice(r+1,0,t)}e.matches[n].matches===void 0?e.matches[n]=t(e.matches[n]):e.matches[n]=x(e.matches[n])}return e}function S(e){let t=new o.default(!0);return t.openGroup=!1,t.matches=e,t}function C(){if(p=c.pop(),p.openGroup=!1,p!==void 0){if(c.length>0){if(m=c[c.length-1],m.matches.push(p),m.isAlternator){h=c.pop();for(let e=0;e<h.matches.length;e++)h.matches[e].isGroup=!1,h.matches[e].alternatorGroup=!1;c.length>0?(m=c[c.length-1],m.matches.push(h)):s.matches.push(h)}}else s.matches.push(p)}else b()}function w(e){let t=e.pop();return t.isQuantifier&&(t=S([e.pop(),t])),t}for(t&&(n.optionalmarker[0]=void 0,n.optionalmarker[1]=void 0);d=t?i.exec(e):r.exec(e);){if(f=d[0],t){switch(f.charAt(0)){case`?`:f=`{0,1}`;break;case`+`:case`*`:f=`{`+f+`}`;break;case`|`:if(c.length===0){let e=S(s.matches);e.openGroup=!0,c.push(e),s.matches=[],_=!0}}switch(f){case`\\d`:f=`[0-9]`;break;case`\\p`:f+=i.exec(e)[0],f+=i.exec(e)[0]}}if(u){b();continue}switch(f.charAt(0)){case`$`:case`^`:t||b();break;case n.escapeChar:u=!0,t&&b();break;case n.optionalmarker[1]:case n.groupmarker[1]:C();break;case n.optionalmarker[0]:c.push(new o.default(!1,!0));break;case n.groupmarker[0]:c.push(new o.default(!0));break;case n.quantifiermarker[0]:{let e=new o.default(!1,!1,!0);f=f.replace(/[{}?]/g,``);let t=f.split(`|`),n=t[0].split(`,`),r=isNaN(n[0])?n[0]:parseInt(n[0]),i=n.length===1?r:isNaN(n[1])?n[1]:parseInt(n[1]),a=isNaN(t[1])?t[1]:parseInt(t[1]);(r===`*`||r===`+`)&&(r=i===`*`?0:1),e.quantifier={min:r,max:i,jit:a};let l=c.length>0?c[c.length-1].matches:s.matches;d=l.pop(),d.isGroup||(d=S([d])),l.push(d),l.push(e)}break;case n.alternatormarker:if(c.length>0){m=c[c.length-1];let e=m.matches[m.matches.length-1];g=m.openGroup&&(e.matches===void 0||e.isGroup===!1&&e.isAlternator===!1)?c.pop():w(m.matches)}else g=w(s.matches);if(g.isAlternator)c.push(g);else if(g.alternatorGroup?(h=c.pop(),g.alternatorGroup=!1):h=new o.default(!1,!1,!1,!0),h.matches.push(g),c.push(h),g.openGroup){g.openGroup=!1;let e=new o.default(!0);e.alternatorGroup=!0,c.push(e)}break;default:b()}}for(_&&C();c.length>0;)p=c.pop(),s.matches.push(p);return s.matches.length>0&&(y(s),l.push(s)),(n.numericInput||n.isRTL)&&x(l[0]),l}}),(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegex=r;let n=RegExp(`(\\`+[`/`,`.`,`*`,`+`,`?`,`|`,`(`,`)`,`[`,`]`,`{`,`}`,`\\`,`$`,`^`].join(`|\\`)+`)`,`gim`);function r(e){return e.replace(n,`\\$1`)}}),(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(e,t,n,r){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=n||!1,this.isAlternator=r||!1,this.quantifier={min:1,max:1}}}),(function(e,t,n){var r=n(25),i=c(n(7)),a=n(19),o=n(20),s=n(22);n(28);function c(e){return e&&e.__esModule?e:{default:e}}let l=i.default.dependencyLib;class u{constructor(e,t,n,r){this.mask=e,this.format=t,this.opts=n,this.inputmask=r,this._date=new Date(1,0,1),this.initDateObject(e,this.opts,this.inputmask)}get date(){return this._date===void 0&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts,this.inputmask)),this._date}initDateObject(e,t,n){let r,i=-1;for(x(t).lastIndex=0;r=x(t).exec(this.format);)if(r.index>=i){let a=/\d+$/.exec(r[0]),o=a?r[0][0]+`x`:r[0],c;if(e!==void 0){if(a){let i=x(t).lastIndex,a=k.call(n,r.index,t,n&&n.maskset);x(t).lastIndex=i,c=e.slice(0,e.indexOf(a.nextMatch[0]))}else{let a=r[0][0],l=r.index;for(;n&&(t.placeholder[`${r.index}'${s.getTest.call(n,l).match.placeholder}`]||s.getTest.call(n,l).match.placeholder)===a;)l++;i=l;let u=l-r.index;c=e.slice(0,u||b(o)&&b(o)[4]||o.length)}e=e.slice(c.length)}Object.prototype.hasOwnProperty.call(m,o)&&this.setValue(this,c,o,b(o)[2],b(o)[1])}}setValue(e,t,n,r,i){if(t!==void 0)switch(r){case`ampm`:e[r]=t,e[`raw`+r]=t.replace(/\s/g,`_`);break;case`month`:if(n===`MMM`||n===`MMMM`){e[r]=E(n===`MMM`?p.monthNames.slice(0,12).findIndex(e=>t.toLowerCase()===e.toLowerCase())+1:p.monthNames.slice(12,24).findIndex(e=>t.toLowerCase()===e.toLowerCase())+1,2),e[r]=e[r]===`00`?``:e[r].toString(),e[`raw`+r]=e[r];break}default:e[r]=t.replace(/[^0-9]/g,`0`),e[`raw`+r]=t.replace(/\s/g,`_`)}if(i!==void 0){let t=e[r];(r===`day`&&parseInt(t)===29||r===`month`&&parseInt(t)===2)&&parseInt(e.day)===29&&parseInt(e.month)===2&&(e.year===``||e.year===void 0)&&e._date.setFullYear(2012,1,29),r===`day`&&(d=!0,parseInt(t)===0&&(t=1)),r===`month`&&(d=!0),r===`year`&&(d=!0,t.length<b(n)[4]&&(t=E(t,b(n)[4],!0))),(t!==``&&!isNaN(t)||r===`ampm`)&&i.call(e._date,t)}}reset(){this._date=new Date(1,0,1)}reInit(){this._date=void 0,this.date}}let d=!1,f=new Date().getFullYear(),p=i.default.prototype.i18n,m={d:[`[1-9]|[12][0-9]|3[01]`,Date.prototype.setDate,`day`,Date.prototype.getDate],dd:[`0[1-9]|[12][0-9]|3[01]`,Date.prototype.setDate,`day`,function(){return E(Date.prototype.getDate.call(this),2)}],ddd:[``],dddd:[``],M:[`[1-9]|1[012]`,function(e){let t=e?parseInt(e):0;return t>0&&t--,Date.prototype.setMonth.call(this,t)},`month`,function(){return Date.prototype.getMonth.call(this)+1}],MM:[`0[1-9]|1[012]`,function(e){let t=e?parseInt(e):0;return t>0&&t--,Date.prototype.setMonth.call(this,t)},`month`,function(){return E(Date.prototype.getMonth.call(this)+1,2)}],MMM:[p.monthNames.slice(0,12).join(`|`),function(e){let t=p.monthNames.slice(0,12).findIndex(t=>e.toLowerCase()===t.toLowerCase());return t!==-1&&Date.prototype.setMonth.call(this,t)},`month`,function(){return p.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],MMMM:[p.monthNames.slice(12,24).join(`|`),function(e){let t=p.monthNames.slice(12,24).findIndex(t=>e.toLowerCase()===t.toLowerCase());return t!==-1&&Date.prototype.setMonth.call(this,t)},`month`,function(){return p.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:[`[0-9]{2}`,function(e){let t=new Date().getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,`${t}${e}`)},`year`,function(){return E(Date.prototype.getFullYear.call(this),2)},2],yyyy:[`[0-9]{4}`,Date.prototype.setFullYear,`year`,function(){return E(Date.prototype.getFullYear.call(this),4)},4],h:[`[1-9]|1[0-2]`,Date.prototype.setHours,`hours`,Date.prototype.getHours],hh:[`0[1-9]|1[0-2]`,Date.prototype.setHours,`hours`,function(){return E(Date.prototype.getHours.call(this),2)}],hx:[function(e){return`[0-9]{${e}}`},Date.prototype.setHours,`hours`,function(e){return Date.prototype.getHours}],H:[`1?[0-9]|2[0-3]`,Date.prototype.setHours,`hours`,Date.prototype.getHours],HH:[`0[0-9]|1[0-9]|2[0-3]`,Date.prototype.setHours,`hours`,function(){return E(Date.prototype.getHours.call(this),2)}],Hx:[function(e){return`[0-9]{${e}}`},Date.prototype.setHours,`hours`,function(e){return function(){return E(Date.prototype.getHours.call(this),e)}}],m:[`[1-5]?[0-9]`,Date.prototype.setMinutes,`minutes`,Date.prototype.getMinutes],mm:[`0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]`,Date.prototype.setMinutes,`minutes`,function(){return E(Date.prototype.getMinutes.call(this),2)}],s:[`[1-5]?[0-9]`,Date.prototype.setSeconds,`seconds`,Date.prototype.getSeconds],ss:[`0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]`,Date.prototype.setSeconds,`seconds`,function(){return E(Date.prototype.getSeconds.call(this),2)}],l:[`[0-9]{3}`,Date.prototype.setMilliseconds,`milliseconds`,function(){return E(Date.prototype.getMilliseconds.call(this),3)},3],L:[`[0-9]{2}`,Date.prototype.setMilliseconds,`milliseconds`,function(){return E(Date.prototype.getMilliseconds.call(this),2)},2],t:[`[ap]`,_,`ampm`,v,1],tt:[`[ap]m`,_,`ampm`,v,2],T:[`[AP]`,_,`ampm`,v,1],TT:[`[AP]M`,_,`ampm`,v,2],Z:[`.*`,void 0,`Z`,y],o:[``],S:[``]},h={D:`d`,DD:`dd`,DDD:`ddd`,DDDD:`dddd`,mmm:`MMM`,mmmm:`MMMM`,YY:`yy`,YYYY:`yyyy`,sss:`L`},g={isoDate:`yyyy-MM-dd`,isoTime:`HH:mm:ss`,isoDateTime:`yyyy-MM-dd\\THH:mm:ss`,isoUtcDateTime:`UTC:yyyy-MM-dd\\THH:mm:ss\\Z`};function _(e){let t=this.getHours();e.toLowerCase().includes(`p`)?this.setHours(t+12):e.toLowerCase().includes(`a`)&&t>=12&&this.setHours(t-12)}function v(){let e=this.getHours();return e||=12,e>=12?`PM`:`AM`}function y(){let{1:e}=this.toString().match(/\((.+)\)/);return e.includes(` `)&&(e=e.replace(`-`,` `).toUpperCase(),e=e.split(` `).map(([e])=>e).join(``)),e}function b(e){let t=h[e]||e,n=/\d+$/.exec(t);if(n&&n[0]!==void 0){let e=m[t[0]+`x`].slice(``);return e[0]=e[0](n[0]),e[3]=e[3](n[0]),e}if(m[t])return m[t]}function x(e){if(!e.tokenizer){let t=[],n=[],r=Object.keys(m).concat(Object.keys(h));for(let e of r)if(/\.*x$/.test(e)){let t=e[0]+`\\d+`;n.indexOf(t)===-1&&n.push(t)}else t.indexOf(e[0])===-1&&t.push(e[0]);e.tokenizer=`(`+(n.length>0?n.join(`|`)+`|`:``)+t.join(`+|`)+`+)+?|.`,e.tokenizer=new RegExp(e.tokenizer,`g`)}return e.tokenizer}function S(e,t,n){if(e.year!==e.rawyear){let r=f.toString(),i=e.rawyear.replace(/[^0-9]/g,``),a=r.slice(0,i.length),o=r.slice(i.length);if(i.length===2&&i===a){let i=new Date(f,e.month-1,e.day);e.day==i.getDate()&&(!n.max||n.max.date.getTime()>=i.getTime())&&(e.date.setFullYear(f),e.year=r,t.insert=[{pos:t.pos+1,c:o[0]},{pos:t.pos+2,c:o[1]}])}}return t}function C(e,t,n){let r=this;if(!d)return!0;if(e.rawday===void 0||!isFinite(e.rawday)&&new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day||e.day==`29`&&(!isFinite(e.rawyear)||e.rawyear===void 0||e.rawyear===``)||new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day)return t;if(e.day==`29`){let e=k.call(r,t.pos,n,r.maskset);if(e.targetMatch&&[`yyyy`,`YYYY`].includes(e.targetMatch[0])&&t.pos-e.targetMatchIndex===2)return t.remove=t.pos+1,t}else if(e.date.getMonth()==2&&e.day==`30`&&t.c!==void 0)return e.day=`03`,e.date.setDate(3),e.date.setMonth(1),t.insert=[{pos:t.pos,c:`0`},{pos:t.pos+1,c:t.c}],t.caret=o.seekNext.call(this,t.pos+1),t;return!1}function w(e,t,n,r,i){if(!t)return t;if(t&&n.min&&!isNaN(n.min.date.getTime())){let i;for(e.reset(),x(n).lastIndex=0;i=x(n).exec(n.inputFormat);){var a;if((a=b(i[0]))&&a[3]){let t=a[1],o=e[a[2]],s=n.min[a[2]],c=n.max?n.max[a[2]]:s+1,l=[],u=!1;for(let t=0;t<s.length;t++)r.validPositions[t+i.index]===void 0&&!u?(t+i.index==0&&o[t]<s[t]?(l[t]=o[t],u=!0):l[t]=s[t],a[2]===`year`&&o.length-1==t&&s!=c&&(l=(parseInt(l.join(``))+1).toString().split(``)),a[2]===`ampm`&&s!=c&&n.min.date.getTime()>e.date.getTime()&&(l[t]=c[t])):(l[t]=o[t],u||=o[t]>s[t]);t.call(e._date,l.join(``))}}t=n.min.date.getTime()<=e.date.getTime(),e.reInit()}return t&&n.max&&(isNaN(n.max.date.getTime())||(t=n.max.date.getTime()>=e.date.getTime())),t}function T(e,t,n){let i=``,a,o,s=0,c=!1,l={};for(x(n).lastIndex=0;a=x(n).exec(e);)if(a[0]===n.escapeChar)c=!0;else{if(t===void 0){if(!c&&(o=b(a[0])))i+=`(`+o[0]+`)`,n.placeholder&&n.placeholder!==``?(l[s]=n.placeholder[a.index%n.placeholder.length],l[`${a.index}'${n.placeholder[a.index%n.placeholder.length]}`]=a[0].charAt(0)):l[s]=a[0].charAt(0);else switch(a[0]){case`[`:i+=`(`;break;case`]`:i+=`)?`;break;default:i+=(0,r.escapeRegex)(a[0]),l[s]=a[0].charAt(0)}}else if(!c&&(o=b(a[0]))){if(o[3]){let e=o[3];i+=e.call(t.date)}else o[2]&&t[`raw`+o[2]]!==void 0?i+=t[`raw`+o[2]]:i+=a[0]}else i+=a[0];s++,c=!1}return t===void 0&&(n.placeholder=l),i}function E(e,t,n){for(e=String(e),t||=2;e.length<t;)e=n?e+`0`:`0`+e;return e}function D(e,t,n){let r=this;if(typeof e==`string`)return new u(e,t,n,r);if(e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`date`))return e}function O(e,t){return T(t.inputFormat,{date:e},t)}function k(e,t,n){let r=this,i=0,a,o,c=0;for(x(t).lastIndex=0;o=x(t).exec(t.inputFormat);){let l=/\d+$/.exec(o[0]);if(l)c=parseInt(l[0]);else{let e=o[0][0],n=i;for(;r&&(t.placeholder[`${o.index}'${s.getTest.call(r,n).match.placeholder}`]||s.getTest.call(r,n).match.placeholder)===e;)n++;c=n-i,c===0&&(c=o[0].length)}if(i+=c,i>=e+1){let r=``;if(n&&n.tests[e]){let a=Object.keys(t.placeholder).filter(t=>{for(let r=o.index-1;r<i;r++)if(t===`${r}'${n.tests[e][0].match.placeholder}`)return!0;return!1});r=a.length>0?t.placeholder[a[0]]:n.tests[e][0].match.placeholder}if(o[0].indexOf(r)!==-1){a=o,o=x(t).exec(t.inputFormat);break}}}return{targetMatchIndex:i-c,nextMatch:o,targetMatch:a}}i.default.extendAliases({datetime:{mask:function(e){if(e.numericInput=!1,m.S=p.ordinalSuffix.join(`|`),e.inputFormat=g[e.inputFormat]||e.inputFormat,e.repeat&&(e.repeat=parseInt(e.repeat.toString()),e.repeat>0)){let t=``;for(let n=0;n<e.repeat;n++)t+=e.inputFormat;e.inputFormat=t,e.repeat=0}return e.displayFormat=g[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=g[e.outputFormat]||e.outputFormat||e.inputFormat,e.regex=T(e.inputFormat,void 0,e),e.min=D(e.min,e.inputFormat,e),e.max=D(e.max,e.inputFormat,e),null},placeholder:``,inputFormat:`isoDateTime`,displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:``,preValidation:function(e,t,n,r,i,a,o,s){let c=this;if(s)return!0;if(isNaN(n)&&e[t]!==n){let r=k.call(c,t,i,a);if(r.nextMatch&&r.nextMatch[0]===n&&r.targetMatch[0].length>1){let n=b(r.targetMatch[0])[0];if(new RegExp(n).test(`0`+e[t-1]))return e[t]=e[t-1],e[t-1]=`0`,{fuzzy:!0,buffer:e,refreshFromBuffer:{start:t-1,end:t+1},pos:t+1}}}return!0},postValidation:function(e,t,n,r,i,a,o,c){let l=this;if(o)return!0;let u,d;if(r===!1&&(u=k.call(l,t+1,i,a),u.targetMatch&&u.targetMatchIndex===t&&u.targetMatch[0].length>1&&b(u.targetMatch[0])!==void 0?d=b(u.targetMatch[0])[0]:(u=k.call(l,t+2,i,a),u.targetMatch&&u.targetMatchIndex===t+1&&u.targetMatch[0].length>1&&b(u.targetMatch[0])!==void 0&&(d=b(u.targetMatch[0]))),d!==void 0&&(t=u.targetMatchIndex,a.validPositions[t+1]!==void 0&&new RegExp(d).test(n+`0`)?(e[t]=n,e[t+1]=`0`,r={pos:t+2,caret:t+1}):new RegExp(d).test(`0`+n)&&(e[t]=`0`,e[t+1]=n,r={pos:t+2})),r===!1))return r;if(r.fuzzy&&(e=r.buffer,t=r.pos),u=k.call(l,t,i,a),u.targetMatch&&u.targetMatch[0]&&b(u.targetMatch[0])!==void 0){let n=b(u.targetMatch[0]);d=n[0];let r=e.slice(u.targetMatchIndex,u.targetMatchIndex+u.targetMatch[0].length);if(new RegExp(d).test(r.join(``))===!1&&u.targetMatch[0].length===2&&a.validPositions[u.targetMatchIndex]&&a.validPositions[u.targetMatchIndex+1]&&(a.validPositions[u.targetMatchIndex+1].input=`0`),n[2]==`year`){let n=s.getMaskTemplate.call(l,!1,1,void 0,!0);for(let r=t+1;r<e.length;r++)e[r]=n[r],a.validPositions.splice(t+1,1)}}let f=r,p=D.call(l,e.join(``),i.inputFormat,i);return f&&!isNaN(p.date.getTime())&&(i.prefillYear&&(f=S(p,f,i)),f=C.call(l,p,f,i),f=w(p,f,i,a,c)),t!==void 0&&f&&r.pos!==t?{buffer:T(i.inputFormat,p,i).split(``),refreshFromBuffer:{start:t,end:r.pos},pos:r.caret===void 0?r.pos:r.caret}:f},onKeyDown:function(e,t,n,r){let i=this;e.ctrlKey&&e.key===a.keys.ArrowRight&&(i.inputmask._valueSet(O(new Date,r)),l(i).trigger(`setvalue`))},onUnMask:function(e,t,n){let r=this;return t&&T(n.outputFormat,D.call(r,e,n.inputFormat,n),n)},casing:`follow`,onBeforeMask:function(e,t){return Object.prototype.toString.call(e)===`[object Date]`&&(e=O(e,t)),e},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:`numeric`,prefillYear:!0}})}),(function(e,t,n){var r=i(n(7));function i(e){return e&&e.__esModule?e:{default:e}}r.default.dependencyLib.extend(!0,r.default.prototype.i18n,{dayNames:[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],monthNames:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`,`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],ordinalSuffix:[`st`,`nd`,`rd`,`th`]})}),(function(e,t,n){var r=n(25),i=s(n(7)),a=n(19),o=n(20);function s(e){return e&&e.__esModule?e:{default:e}}let c=i.default.dependencyLib;function l(e,t){let n=``;for(let r=0;r<e.length;r++)i.default.prototype.definitions[e.charAt(r)]||t.definitions[e.charAt(r)]||t.optionalmarker[0]===e.charAt(r)||t.optionalmarker[1]===e.charAt(r)||t.quantifiermarker[0]===e.charAt(r)||t.quantifiermarker[1]===e.charAt(r)||t.groupmarker[0]===e.charAt(r)||t.groupmarker[1]===e.charAt(r)||t.alternatormarker===e.charAt(r)?n+=`\\`+e.charAt(r):n+=e.charAt(r);return n}function u(e,t,n,r){if(e.length>0&&t>0&&(!n.digitsOptional||r)){var i=e.indexOf(n.radixPoint),a=!1;n.negationSymbol.back===e[e.length-1]&&(a=!0,e.length--),i===-1&&(e.push(n.radixPoint),i=e.length-1);for(let n=1;n<=t;n++)isFinite(e[i+n])||(e[i+n]=`0`)}return a&&e.push(n.negationSymbol.back),e}function d(e,t){let n=0;e===`+`&&(n=o.seekNext.call(this,t.validPositions.length-1));for(let r in t.tests)if(r=parseInt(r),r>=n){for(let n=0,i=t.tests[r].length;n<i;n++)if((t.validPositions[r]===void 0||e===`-`)&&t.tests[r][n].match.def===e)return r+ +(t.validPositions[r]!==void 0&&e!==`-`)}return n}function f(e,t){let n=-1;for(let r=0,i=t.validPositions.length;r<i;r++){let i=t.validPositions[r];if(i&&i.match.def===e){n=r;break}}return n}function p(e){e.parseMinMaxOptions===void 0&&(e.min!==null&&(e.min=e.min.toString().replace(new RegExp((0,r.escapeRegex)(e.groupSeparator),`g`),``),e.radixPoint===`,`&&(e.min=e.min.replace(e.radixPoint,`.`)),e.min=isFinite(e.min)?parseFloat(e.min):NaN,isNaN(e.min)&&(e.min=Number.MIN_VALUE)),e.max!==null&&(e.max=e.max.toString().replace(new RegExp((0,r.escapeRegex)(e.groupSeparator),`g`),``),e.radixPoint===`,`&&(e.max=e.max.replace(e.radixPoint,`.`)),e.max=isFinite(e.max)?parseFloat(e.max):NaN,isNaN(e.max)&&(e.max=Number.MAX_VALUE)),e.parseMinMaxOptions=`done`)}function m(e){e.repeat=0,e.groupSeparator===e.radixPoint&&e.digits&&e.digits!==`0`&&(e.groupSeparator=e.radixPoint===`.`?`,`:e.radixPoint===`,`?`.`:``),e.groupSeparator===` `&&(e.skipOptionalPartCharacter=void 0),e.placeholder.length>1&&(e.placeholder=e.placeholder.charAt(0)),e.positionCaretOnClick===`radixFocus`&&e.placeholder===``&&(e.positionCaretOnClick=`lvp`);let t=`0`,n=e.radixPoint;e.numericInput===!0&&e.__financeInput===void 0?(t=`1`,e.positionCaretOnClick=e.positionCaretOnClick===`radixFocus`?`lvp`:e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=e.digits.indexOf(`,`)===-1?2:e.digits.split(`,`)[0]),e._radixDance=!1,n=e.radixPoint===`,`?`?`:`!`,e.radixPoint!==``&&e.definitions[n]===void 0&&(e.definitions[n]={},e.definitions[n].validator=`[`+e.radixPoint+`]`,e.definitions[n].placeholder=e.radixPoint,e.definitions[n].static=!0,e.definitions[n].generated=!0)):(e.__financeInput=!1,e.numericInput=!0);let r=`[+]`,i;if(r+=l(e.prefix,e),e.groupSeparator===``?r+=`9{+}`:(e.definitions[e.groupSeparator]===void 0&&(e.definitions[e.groupSeparator]={},e.definitions[e.groupSeparator].validator=`[`+e.groupSeparator+`]`,e.definitions[e.groupSeparator].placeholder=e.groupSeparator,e.definitions[e.groupSeparator].static=!0,e.definitions[e.groupSeparator].generated=!0),r+=e._mask(e)),e.digits!==void 0&&e.digits!==0){let a=e.digits.toString().split(`,`);isFinite(a[0])&&a[1]&&isFinite(a[1])?r+=n+t+`{`+e.digits+`}`:(isNaN(e.digits)||parseInt(e.digits)>0)&&(e.digitsOptional||e.jitMasking?(i=r+n+t+`{0,`+e.digits+`}`,e.keepStatic=!0):r+=n+t+`{`+e.digits+`}`)}else e.inputmode=`numeric`;return r+=l(e.suffix,e),r+=`[-]`,i&&(r=[i+l(e.suffix,e)+`[-]`,r]),e.greedy=!1,p(e),e.radixPoint!==``&&e.substituteRadixPoint&&(e.substitutes[e.radixPoint==`.`?`,`:`.`]=e.radixPoint),r}function h(e,t,n,r,i){return i._radixDance&&i.numericInput&&t!==i.negationSymbol.back&&e<=n&&(n>0||t==i.radixPoint)&&(r.validPositions[e-1]===void 0||r.validPositions[e-1].input!==i.negationSymbol.back)&&--e,e}function g(e,t,n,r,i){let a=t.buffer?t.buffer.indexOf(i.radixPoint):-1,o=(a!==-1||r&&i.jitMasking)&&new RegExp(i.definitions[9].validator).test(e);return!r&&i._radixDance&&a!==-1&&o&&t.validPositions[a]==null?{insert:{pos:a===n?a+1:a,c:i.radixPoint},pos:n}:o}function _(e,t){let n=RegExp(`(^`+(t.negationSymbol.front===``?``:(0,r.escapeRegex)(t.negationSymbol.front)+`?`)+(0,r.escapeRegex)(t.prefix)+`)(.*)(`+(0,r.escapeRegex)(t.suffix)+(t.negationSymbol.back==``?``:(0,r.escapeRegex)(t.negationSymbol.back)+`?`)+`$)`).exec(e.slice().reverse().join(``)),i=n?n[2]:``,a=!1;return i&&(i=i.split(t.radixPoint.charAt(0))[0],a=RegExp(`^[0`+t.groupSeparator+`]*`).exec(i)),a&&(a[0].length>1||a[0].length>0&&a[0].length<i.length)?a:!1}i.default.extendAliases({numeric:{mask:m,_mask:function(e){return`(`+e.groupSeparator+`999){+|1}`},digits:`*`,digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:`.`,positionCaretOnClick:`radixFocus`,_radixDance:!0,groupSeparator:``,allowMinus:!0,negationSymbol:{front:`-`,back:``},prefix:``,suffix:``,min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:`text`,unmaskAsNumber:!1,roundingFN:Math.round,inputmode:`decimal`,shortcuts:{k:`1000`,m:`1000000`},placeholder:`0`,greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:``,usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:g},1:{validator:g,definitionSymbol:`9`},9:{validator:`[0-90-9٠-٩۰-۹]`,definitionSymbol:`*`},"+":{validator:function(e,t,n,r,i){return i.allowMinus&&(e===`-`||e===i.negationSymbol.front)}},"-":{validator:function(e,t,n,r,i){return i.allowMinus&&e===i.negationSymbol.back}}},preValidation:function(e,t,n,r,i,a,o,s){let c=this;if(i.__financeInput!==!1&&n===i.radixPoint)return!1;let l=e.indexOf(i.radixPoint),u=t;if(t=h(t,n,l,a,i),n===`-`||n===i.negationSymbol.front){if(i.allowMinus!==!0)return!1;let e=!1,t=f(`+`,a),n=f(`-`,a);return t!==-1&&(e=[t],n!==-1&&e.push(n)),e===!1?{insert:[{pos:d.call(c,`+`,a),c:i.negationSymbol.front,fromIsValid:!0},{pos:d.call(c,`-`,a),c:i.negationSymbol.back,fromIsValid:void 0}],caret:u+i.negationSymbol.back.length}:{remove:e,caret:u-i.negationSymbol.back.length}}if(n===i.groupSeparator)return{caret:u};if(s)return!0;if(l!==-1&&i._radixDance===!0&&r===!1&&n===i.radixPoint&&i.digits!==void 0&&(isNaN(i.digits)||parseInt(i.digits)>0)&&l!==t){let e=d.call(c,i.radixPoint,a);return a.validPositions[e]&&(a.validPositions[e].generatedInput=a.validPositions[e].generated||!1),{caret:i._radixDance&&t===l-1?l+1:l}}if(i.__financeInput===!1){if(r){if(i.digitsOptional)return{rewritePosition:o.end};if(!i.digitsOptional){if(o.begin>l&&o.end<=l)return n===i.radixPoint?{insert:{pos:l+1,c:`0`,fromIsValid:!0},rewritePosition:l}:{rewritePosition:l+1};if(o.begin<l)return{rewritePosition:o.begin-1}}}else{if(!i.showMaskOnHover&&!i.showMaskOnFocus&&!i.digitsOptional&&i.digits>0&&this.__valueGet.call(this.el)===``)return{rewritePosition:l};if(t>=e.length-i.prefix.length&&i.radixPoint!==``){let e=new RegExp(i.definitions[9].validator);if(!a.validPositions.some(t=>t&&!t.generatedInput&&e.test(t.input)))return{rewritePosition:l===-1?0:l}}}}return{rewritePosition:t}},postValidation:function(e,t,n,r,i,a,o,s,l){if(r===!1)return r;if(o)return!0;if(i.min!==null||i.max!==null){let t=i.onUnMask(e.slice().reverse().join(``),void 0,c.extend({},i,{unmaskAsNumber:!0}));if(i.min!==null&&t<i.min&&l!==!0&&(t.toString().length>i.min.toString().length||e[0]===i.radixPoint||t<0))return!1;if(i.max!==null&&i.max>=0&&t>i.max)return i.SetMaxOnOverflow?{refreshFromBuffer:!0,buffer:u(i.max.toString().replace(`.`,i.radixPoint).split(``),i.digits,i).reverse()}:!1}return r},onUnMask:function(e,t,n){if(t===``&&n.nullable===!0)return t;let i=e.replace(n.prefix,``);return i=i.replace(n.suffix,``),i=i.replace(new RegExp((0,r.escapeRegex)(n.groupSeparator),`g`),``),n.placeholder.charAt(0)!==``&&(i=i.replace(new RegExp(n.placeholder.charAt(0),`g`),`0`)),n.unmaskAsNumber?(n.radixPoint!==``&&i.indexOf(n.radixPoint)!==-1&&(i=i.replace(r.escapeRegex.call(this,n.radixPoint),`.`)),i=i.replace(RegExp(`^`+(0,r.escapeRegex)(n.negationSymbol.front)),`-`),i=i.replace(RegExp((0,r.escapeRegex)(n.negationSymbol.back)+`$`),``),Number(i)):i},isComplete:function(e,t){let n=(t.numericInput?e.slice().reverse():e).join(``);return n=n.replace(RegExp(`^`+(0,r.escapeRegex)(t.negationSymbol.front)),`-`),n=n.replace(RegExp((0,r.escapeRegex)(t.negationSymbol.back)+`$`),``),n=n.replace(t.prefix,``),n=n.replace(t.suffix,``),n=n.replace(RegExp((0,r.escapeRegex)(t.groupSeparator)+`([0-9]{3})`,`g`),`$1`),t.radixPoint===`,`&&(n=n.replace((0,r.escapeRegex)(t.radixPoint),`.`)),isFinite(n)},onBeforeMask:function(e,t){e??=``;let n=t.radixPoint||`,`;isFinite(t.digits)&&(t.digits=parseInt(t.digits)),(typeof e==`number`||t.inputType===`number`)&&n!==``&&(e=e.toString().replace(`.`,n));let i=e.charAt(0)===`-`||e.charAt(0)===t.negationSymbol.front,a=e.split(n),o=a[0].replace(/[^\-0-9]/g,``),s=a.length>1?a[1].replace(/[^0-9]/g,``):``,c=a.length>1;e=o+(s===``?s:n+s);let l=0;if(n!==``&&(l=t.digitsOptional?t.digits<s.length?t.digits:s.length:t.digits,s!==``||!t.digitsOptional)){let i=10**(l||1);e=e.replace((0,r.escapeRegex)(n),`.`),isNaN(parseFloat(e))||(e=(t.roundingFN(parseFloat(e)*i)/i).toFixed(l)),e=e.toString().replace(`.`,n)}if(t.digits===0&&e.indexOf(n)!==-1&&(e=e.substring(0,e.indexOf(n))),e!==``&&(t.min!==null||t.max!==null)){let r=e.toString().replace(n,`.`);t.min!==null&&r<t.min?e=t.min.toString().replace(`.`,n):t.max!==null&&r>t.max&&(e=t.max.toString().replace(`.`,n))}return i&&e.charAt(0)!==`-`&&(e=`-`+e),u(e.toString().split(``),l,t,c).join(``)},onBeforeWrite:function(e,t,n,i){function a(e,t){if(i.__financeInput!==!1||t){var n=e.indexOf(i.radixPoint);n!==-1&&e.splice(n,1)}if(i.groupSeparator!==``)for(;(n=e.indexOf(i.groupSeparator))!==-1;)e.splice(n,1);return e}let o,s;if(i.stripLeadingZeroes&&(s=_(t,i))){let e=t.join(``).lastIndexOf(s[0].split(``).reverse().join(``))-(s[0]==s.input?0:1),n=+(s[0]==s.input);for(let r=s[0].length-n;r>0;r--)this.maskset.validPositions.splice(e+r,1),delete t[e+r]}if(e)switch(e.type){case`blur`:case`checkval`:if(i.min!==null||i.max!==null){let e=i.onUnMask(t.slice().reverse().join(``),void 0,c.extend({},i,{unmaskAsNumber:!0}));if(i.min!==null&&e<i.min&&t.join()!==``)return{refreshFromBuffer:!0,buffer:u(i.min.toString().replace(`.`,i.radixPoint).split(``),i.digits,i).reverse()};if(i.max!==null&&e>i.max)return{refreshFromBuffer:!0,buffer:u(i.max.toString().replace(`.`,i.radixPoint).split(``),i.digits,i).reverse()}}if(t[t.length-1]===i.negationSymbol.front){let e=RegExp(`(^`+(i.negationSymbol.front==``?``:(0,r.escapeRegex)(i.negationSymbol.front)+`?`)+(0,r.escapeRegex)(i.prefix)+`)(.*)(`+(0,r.escapeRegex)(i.suffix)+(i.negationSymbol.back==``?``:(0,r.escapeRegex)(i.negationSymbol.back)+`?`)+`$)`).exec(a(t.slice(),!0).reverse().join(``));(e?e[2]:``)==0&&(o={refreshFromBuffer:!0,buffer:[0]})}else i.radixPoint!==``&&t.indexOf(i.radixPoint)===i.suffix.length&&(o&&o.buffer?o.buffer.splice(0,1+i.suffix.length):(t.splice(0,1+i.suffix.length),o={refreshFromBuffer:!0,buffer:a(t)}));if(i.enforceDigitsOnBlur){o||={};let e=(o&&o.buffer||t).slice().reverse();o.refreshFromBuffer=!0,o.buffer=u(e,i.digits,i,!0).reverse()}}return o},onKeyDown:function(e,t,n,r){let i=c(this),o;if(e.location!=3){let t,n=e.key;if((t=r.shortcuts&&r.shortcuts[n])&&t.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(t)),i.trigger(`setvalue`),!1}if(e.ctrlKey)switch(e.key){case a.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(r.step)),i.trigger(`setvalue`),!1;case a.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(r.step)),i.trigger(`setvalue`),!1}if(!e.shiftKey&&(e.key===a.keys.Delete||e.key===a.keys.Backspace||e.key===a.keys.BACKSPACE_SAFARI)&&n.begin!==t.length){if(t[e.key===a.keys.Delete?n.begin-1:n.end]===r.negationSymbol.front)return o=t.slice().reverse(),r.negationSymbol.front!==``&&o.shift(),r.negationSymbol.back!==``&&o.pop(),i.trigger(`setvalue`,[o.join(``),n.begin]),!1;if(r._radixDance===!0){let s=t.indexOf(r.radixPoint);if(!r.digitsOptional){if(s!==-1&&(n.begin<s||n.end<s||e.key===a.keys.Delete&&(n.begin===s||n.begin-1===s))){let l;return n.begin===n.end&&(e.key===a.keys.Backspace||e.key===a.keys.BACKSPACE_SAFARI?n.begin++:e.key===a.keys.Delete&&n.begin-1===s&&(l=c.extend({},n),n.begin--,n.end--)),o=t.slice().reverse(),o.splice(o.length-n.begin,n.begin-n.end||1),(e.key===a.keys.Backspace||e.key===a.keys.BACKSPACE_SAFARI)&&o.splice(o.length-n.end+1,0,`0`),o=u(o,r.digits,r).join(``),l&&(n=l),i.trigger(`setvalue`,[o,n.begin>=o.length?s+1:n.begin]),!1}}else if(s===0)return o=t.slice().reverse(),o.pop(),i.trigger(`setvalue`,[o.join(``),n.begin>=o.length?o.length:n.begin]),!1}}}},currency:{prefix:``,groupSeparator:`,`,alias:`numeric`,digits:2,digitsOptional:!1},decimal:{alias:`numeric`},integer:{alias:`numeric`,inputmode:`numeric`,digits:0},percentage:{alias:`numeric`,min:0,max:100,suffix:` %`,digits:0,allowMinus:!1},indianns:{alias:`numeric`,_mask:function(e){return`(`+e.groupSeparator+`99){*|1}(`+e.groupSeparator+`999){1|1}`},groupSeparator:`,`,radixPoint:`.`,placeholder:`0`,digits:2,digitsOptional:!1}})}),(function(e,t,n){var r=a(n(11)),i=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}let o=r.default.document;if(o&&o.head&&o.head.attachShadow&&r.default.customElements&&r.default.customElements.get(`input-mask`)===void 0){class e extends HTMLElement{constructor(){super();let e=this.getAttributeNames(),t=this.attachShadow({mode:`closed`});this.input=o.createElement(`input`),this.input.type=`text`,t.appendChild(this.input);for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.input.setAttribute(e[t],this.getAttribute(e[t]));let n=new i.default;n.dataAttribute=``,n.mask(this.input)}attributeChangedCallback(e,t,n){this.input.setAttribute(e,n)}get value(){return this.input.value}set value(e){this.input.value=e}}r.default.customElements.define(`input-mask`,e)}})],t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}var r={};return(function(){var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(1),n(2),n(3),n(4),n(5),n(6),n(27),n(29),n(30);var t=i(n(7));function i(e){return e&&e.__esModule?e:{default:e}}e.default=t.default})(),r})()})}))(),1),Bt=zt.default.default||zt.default,J=class extends W{static{this.formAssociated=!0}static{this.Inputmask=Bt}constructor(){super(),this.name=``,this.label=``,this.variant=`filled`,this.size=`medium`,this.shape=`no-round`,this.type=`text`,this.icon=``,this.trailingIcon=``,this.prefix=``,this.suffix=``,this.suffixButtonIcon=``,this.suffixButtonLabel=`Acción del campo`,this._hasSuffixSlot=!1,this.helper=``,this.errorText=``,this.error=!1,this.loading=!1,this.disabled=!1,this.value=``,this.placeholder=``,this.mask=``,this.maskAlias=``,this.maskOptions={},this._internals=this.attachInternals()}get unmaskedValue(){return this._maskInstance?.unmaskedvalue()??this.value}get inputmaskInstance(){return this._maskInstance}maskOption(e,t=!1){if(this._maskInstance)return typeof e==`string`?this._maskInstance.option(e):this._maskInstance.option(e,t)}getEmptyMask(){return this._maskInstance?.getemptymask()??``}hasMaskedValue(){return this._maskInstance?.hasMaskedValue()??!1}isMaskComplete(){return this._maskInstance?.isComplete()??!0}isMaskValid(e){return this._maskInstance?.isValid(e)??!0}getMaskMetadata(){return this._maskInstance?.getmetadata()}formatWithMask(e,t=!1){return this._maskInstance?.format(e,t)??e}setMaskedValue(e){if(!this._maskInstance){this.value=e;return}this._maskInstance.setValue(e),this.value=this._input.value,this._internals?.setFormValue?.(this.value)}removeMask(){this._maskInstance?.remove(),this._maskInstance=void 0}_configureMask(){if(this._maskInstance?.remove(),this._maskInstance=void 0,!this._input||!this.mask&&!this.maskAlias)return;let e={placeholder:``,...this.maskOptions,...this.mask?{mask:this.mask}:{},definitions:{...this.maskOptions.definitions??{},K:{validator:`[0-9Kk]`,casing:`upper`}}},t=this.maskAlias?new Bt(this.maskAlias,e):new Bt(e);this._maskInstance=t.mask(this._input)}updated(e){this._input&&((e.has(`mask`)||e.has(`maskAlias`)||e.has(`maskOptions`))&&this._configureMask(),e.has(`value`)&&(this._input.value=this.value,this._maskInstance&&this.value!==this._input.value&&(this.value=this._input.value),this._internals?.setFormValue?.(this.value)),e.has(`disabled`)&&(this._input.disabled=this.disabled))}_handleInput(e){let t=e.target;this.value=t.value,Je(this,`moni-input`,{detail:{value:this.value,unmaskedValue:this.unmaskedValue,originalEvent:e}})}_handleChange(e){let t=e.target;this.value=t.value,Je(this,`moni-change`,{detail:{value:this.value,unmaskedValue:this.unmaskedValue,originalEvent:e}})}disconnectedCallback(){this._maskInstance?.remove(),this._maskInstance=void 0,super.disconnectedCallback()}_handleSuffixClick(e){this.disabled||this.dispatchEvent(new CustomEvent(`suffix-click`,{detail:{originalEvent:e},bubbles:!0,composed:!0}))}_handleSuffixSlotChange(e){let t=e.currentTarget;this._hasSuffixSlot=t.assignedElements({flatten:!0}).length>0}static{this.styles=[G,Ge,g`
|
|
5516
|
+
</div>`:R}
|
|
5517
|
+
</div>`}};G([B({reflect:!0})],J.prototype,`name`,void 0),G([B({reflect:!0})],J.prototype,`label`,void 0),G([B({reflect:!0})],J.prototype,`variant`,void 0),G([B({reflect:!0})],J.prototype,`size`,void 0),G([B({reflect:!0})],J.prototype,`shape`,void 0),G([B({reflect:!0})],J.prototype,`icon`,void 0),G([B({reflect:!0,attribute:`trailing-icon`})],J.prototype,`trailingIcon`,void 0),G([B({reflect:!0})],J.prototype,`prefix`,void 0),G([B({reflect:!0})],J.prototype,`suffix`,void 0),G([B({type:Number,reflect:!0})],J.prototype,`rows`,void 0),G([B({type:Boolean,reflect:!0})],J.prototype,`autosize`,void 0),G([B({type:Number,reflect:!0,attribute:`max-rows`})],J.prototype,`maxRows`,void 0),G([B({type:Number,reflect:!0})],J.prototype,`maxlength`,void 0),G([B({type:Boolean,reflect:!0})],J.prototype,`required`,void 0),G([B({type:Boolean,reflect:!0})],J.prototype,`readonly`,void 0),G([B({type:Number,reflect:!0})],J.prototype,`minlength`,void 0),G([B({reflect:!0})],J.prototype,`autocomplete`,void 0),G([B({type:Boolean,reflect:!0,attribute:`no-counter`})],J.prototype,`noCounter`,void 0),G([B({type:Boolean,reflect:!0})],J.prototype,`loading`,void 0),G([B({type:Boolean,reflect:!0})],J.prototype,`disabled`,void 0),G([B({reflect:!0})],J.prototype,`helper`,void 0),G([B({reflect:!0,attribute:`error-text`})],J.prototype,`errorText`,void 0),G([B({type:Boolean,reflect:!0})],J.prototype,`error`,void 0),G([B({reflect:!0})],J.prototype,`value`,void 0),G([B({reflect:!0})],J.prototype,`placeholder`,void 0),G([H(`textarea`)],J.prototype,`_input`,void 0),J=G([z(`moni-textarea`)],J);var Rt=l(s(((e,t)=>{(function(n,r){if(typeof e==`object`&&typeof t==`object`)t.exports=r();else if(typeof define==`function`&&define.amd)define([],r);else{var i=r();for(var a in i)(typeof e==`object`?e:n)[a]=i[a]}})(Object(typeof self<`u`?self:e),function(){return(function(){"use strict";var e=[,(function(){typeof Object.getPrototypeOf!=`function`&&(Object.getPrototypeOf=typeof`test`.__proto__==`object`?function(e){return e.__proto__}:function(e){return e.constructor.prototype})}),(function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(this==null)throw TypeError(`"this" is null or not defined`);let n=Object(this),r=n.length>>>0;if(r===0)return!1;let i=t|0,a=Math.max(i>=0?i:r-Math.abs(i),0);for(;a<r;){if(n[a]===e)return!0;a++}return!1}})}),(function(){let e=Function.bind.call(Function.call,Array.prototype.reduce),t=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),n=Function.bind.call(Function.call,Array.prototype.concat),r=Object.keys;Object.entries||(Object.entries=function(i){return e(r(i),(e,r)=>n(e,typeof r==`string`&&t(i,r)?[[r,i[r]]]:[]),[])})}),(function(){String.prototype.includes||(String.prototype.includes=function(e,t){return typeof t!=`number`&&(t=0),t+e.length>this.length?!1:this.indexOf(e,t)!==-1})}),(function(){if(FormData.Inputmask===void 0){class e extends FormData{constructor(e,t){super(e,t);let n=this.entries(),r;for(;(r=n.next()).done===!1;){let t=r.value[0],n=r.value[1],i=e[t];i&&i.inputmask!==void 0&&!(n instanceof File)&&this.set(t,i.value)}return this}}e.Inputmask=!0,FormData=e}}),(function(e,t,n){var r=o(n(7)),i=n(20),a=n(22);function o(e){return e&&e.__esModule?e:{default:e}}r.default.extendDefinitions({A:{validator:`[A-Za-zА-яЁёÀ-ÿµ]`,casing:`upper`},"&":{validator:`[0-9A-Za-zА-яЁёÀ-ÿµ]`,casing:`upper`},"#":{validator:`[0-9A-Fa-f]`,casing:`upper`}});let s=/25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/;function c(e,t,n,r,i){if(n-1>-1&&t.buffer[n-1]!==`.`?(e=t.buffer[n-1]+e,e=n-2>-1&&t.buffer[n-2]!==`.`?t.buffer[n-2]+e:`0`+e):e=`00`+e,i.greedy&&parseInt(e)>255&&s.test(`00`+e.charAt(2))){let r=[...t.buffer.slice(0,n),`.`,e.charAt(2)];if(r.join(``).match(/\./g).length<4)return{refreshFromBuffer:!0,buffer:r,caret:n+2}}return s.test(e)}r.default.extendAliases({cssunit:{regex:`[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)`},url:{regex:`(https?|ftp)://.*`,autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:`i{1,3}.j{1,3}.k{1,3}.l{1,3}`,definitions:{i:{validator:c},j:{validator:c},k:{validator:c},l:{validator:c}},onUnMask:function(e,t,n){return e},inputmode:`decimal`,substitutes:{",":`.`}},email:{mask:function({separator:e,quantifier:t}){let n=`*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]`,r=n;if(e)for(let i=0;i<t;i++)r+=`[${e}${n}]`;return r},greedy:!1,casing:`lower`,separator:null,quantifier:5,skipOptionalPartCharacter:``,onBeforePaste:function(e,t){return e=e.toLowerCase(),e.replace(`mailto:`,``)},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:`[0-9A-Za-z-]`}},onUnMask:function(e,t,n){return e},inputmode:`email`},mac:{mask:`##:##:##:##:##:##`},vin:{mask:`V{13}9{4}`,definitions:{V:{validator:`[A-HJ-NPR-Za-hj-npr-z\\d]`,casing:`upper`}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:`999-99-9999`,postValidation:function(e,t,n,r,o,s,c){let l=a.getMaskTemplate.call(this,!0,i.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(l.join(``))}}})}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(8)),i=m(n(9)),a=m(n(10)),o=n(15),s=m(n(11)),c=n(16),l=n(23),u=n(24),d=n(20),f=n(21),p=n(22);function m(e){return e&&e.__esModule?e:{default:e}}let h=s.default.document,g=`_inputmask_opts`;function _(e,t,n){if(!(this instanceof _))return new _(e,t,n);this.dependencyLib=a.default,this.el=void 0,this.events={},this.maskset=void 0,n!==!0&&(Object.prototype.toString.call(e)===`[object Object]`?t=e:(t||={},e&&(t.alias=e)),this.opts=a.default.extend(!0,{},this.defaults,t),this.noMasksCache=t&&t.definitions!==void 0,this.userOptions=t||{},v(this.opts.alias,t,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.lastInputEvent=null,this.hasAlternator=!1}_.prototype={dataAttribute:`data-inputmask`,defaults:r.default,definitions:i.default,aliases:{},masksCache:{},i18n:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(e){let t=this;return typeof e==`string`&&(e=h.getElementById(e)||h.querySelectorAll(e)),e=e.nodeName?[e]:Array.isArray(e)?e:[].slice.call(e),e.forEach(function(e,n){let r=a.default.extend(!0,{},t.opts);if(y(e,r,a.default.extend(!0,{},t.userOptions),t.dataAttribute)){let n=(0,u.generateMaskSet)(r,t.noMasksCache);n!==void 0&&(e.inputmask!==void 0&&(e.inputmask.opts.autoUnmask=!0,e.inputmask.remove()),e.inputmask=new _(void 0,void 0,!0),e.inputmask.opts=r,e.inputmask.noMasksCache=t.noMasksCache,e.inputmask.userOptions=a.default.extend(!0,{},t.userOptions),e.inputmask.el=e,e.inputmask.$el=(0,a.default)(e),e.inputmask.maskset=n,a.default.data(e,g,t.userOptions),l.mask.call(e.inputmask))}}),e&&e[0]&&e[0].inputmask||this},option:function(e,t){if(typeof e==`string`)return this.opts[e];if(typeof e==`object`)return a.default.extend(this.userOptions,e),this.el&&t!==!0&&this.mask(this.el),this},unmaskedvalue:function(e){if(this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),this.el===void 0||e!==void 0){let t=(typeof this.opts.onBeforeMask==`function`&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split(``);c.checkVal.call(this,void 0,!1,!1,t),typeof this.opts.onBeforeWrite==`function`&&this.opts.onBeforeWrite.call(this,void 0,d.getBuffer.call(this),0,this.opts)}return c.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){a.default.data(this.el,g,null);let e=this.opts.autoUnmask?(0,c.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);e===d.getBufferTemplate.call(this).join(``)?this._valueSet(``):this._valueSet(e,this.opts.autoUnmask),o.EventRuler.off(this.el);let t;Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?(t=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),`value`),t&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0})):h.__lookupGetter__&&this.el.__lookupGetter__(`value`)&&this.__valueGet&&(this.el.__defineGetter__(`value`,this.__valueGet),this.el.__defineSetter__(`value`,this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?d.getBufferTemplate.call(this).reverse():d.getBufferTemplate.call(this)).join(``)},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),f.isComplete.call(this,d.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){let e=p.getMaskTemplate.call(this,!0,0,!1).join(``);return this.maskset.metadata.forEach(function(t){return t.mask!==e||(e=t,!1)}),e}return this.maskset.metadata},isValid:function(e){if(this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),e){let t=(typeof this.opts.onBeforeMask==`function`&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split(``);c.checkVal.call(this,void 0,!0,!1,t)}let t=c.clearOptionalTail.call(this,[]),n=f.isComplete.call(this,t),r=e===(this.isRTL?t.reverse().join(``):t.join(``));return n&&(e===void 0||r)},format:function(e,t){this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache);let n=(typeof this.opts.onBeforeMask==`function`&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split(``);c.checkVal.call(this,void 0,!0,!1,n);let r=this.isRTL?d.getBuffer.call(this).slice().reverse().join(``):d.getBuffer.call(this).join(``);return t?{value:r,metadata:this.getmetadata()}:r},setValue:function(e){this.el&&(0,a.default)(this.el).trigger(`setvalue`,[e])},analyseMask:u.analyseMask};function v(e,t,n){let r=_.prototype.aliases[e];return r?(r.alias&&v(r.alias,void 0,n),a.default.extend(!0,n,r),a.default.extend(!0,n,t),!0):(n.mask===null&&(n.mask=e),!1)}function y(e,t,n,r){function i(t,i){let a=r===``?t:r+`-`+t;i=i===void 0?e.getAttribute(a):i,i!==null&&(typeof i==`string`&&(t.startsWith(`on`)?i=s.default[i]:i===`false`?i=!1:i===`true`?i=!0:t===`mask`&&(i=i.replace(/\\\\/g,`\\`))),n[t]=i)}if(t.importDataAttributes===!0){let a=e.getAttribute(r),o,s,c,l;if(a&&a!==``&&(a=a.replace(/'/g,`"`),s=JSON.parse(`{`+a+`}`)),s){for(l in c=void 0,s)if(l.toLowerCase()===`alias`){c=s[l];break}}for(o in i(`alias`,c),n.alias&&v(n.alias,n,t),t){if(s){for(l in c=void 0,s)if(l.toLowerCase()===o.toLowerCase()){c=s[l];break}}i(o,c)}}return a.default.extend(!0,t,n),(e.dir===`rtl`||t.rightAlign)&&(e.style.textAlign=`right`),(e.dir===`rtl`||t.numericInput)&&(e.dir=`ltr`,e.removeAttribute(`dir`),t.isRTL=!0),Object.keys(n).length}_.extendDefaults=function(e){a.default.extend(!0,_.prototype.defaults,e)},_.extendDefinitions=function(e){a.default.extend(!0,_.prototype.definitions,e)},_.extendAliases=function(e){a.default.extend(!0,_.prototype.aliases,e)},_.format=function(e,t,n){return _(t).format(e,n)},_.unmask=function(e,t){return _(t).unmaskedvalue(e)},_.isValid=function(e,t){return _(t).isValid(e)},_.remove=function(e){typeof e==`string`&&(e=h.getElementById(e)||h.querySelectorAll(e)),e=e.nodeName?[e]:e;for(let t=0;t<e.length;t++)e[t].inputmask&&e[t].inputmask.remove()},_.setValue=function(e,t){typeof e==`string`&&(e=h.getElementById(e)||h.querySelectorAll(e)),e=e.nodeName?[e]:e,e.forEach(function(e){e.inputmask?e.inputmask.setValue(t):(0,a.default)(e).trigger(`setvalue`,[t])})},_.dependencyLib=a.default,s.default.Inputmask=_,t.default=_}),(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={_maxTestPos:500,placeholder:`_`,optionalmarker:[`[`,`]`],quantifiermarker:[`{`,`}`],groupmarker:[`(`,`)`],alternatormarker:`|`,escapeChar:`\\`,mask:null,regex:null,oncomplete:()=>{},onincomplete:()=>{},oncleared:()=>{},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:()=>{},onBeforeMask:null,onBeforePaste:function(e,t){return typeof t.onBeforeMask==`function`?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,outputMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:()=>{},skipOptionalPartCharacter:` `,numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:``,_radixDance:!1,groupSeparator:``,keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:[`text`,`tel`,`url`,`password`,`search`],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:`lvp`,casing:null,inputmode:`text`,importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}}),(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={9:{validator:`\\p{N}`,definitionSymbol:`*`},a:{validator:`\\p{L}`,definitionSymbol:`*`},"*":{validator:`[\\p{L}\\p{N}]`}}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(11)),i=s(n(12)),a=n(13),o=s(n(14));function s(e){return e&&e.__esModule?e:{default:e}}let c=r.default.document;function l(e){if(e instanceof l)return e;if(!(this instanceof l))return new l(e);e!=null&&e!==r.default&&(this[0]=e.nodeName?e:e[0]!==void 0&&e[0].nodeName?e[0]:c.querySelector(e),this[0]!==void 0&&this[0]!==null&&(0,i.default)(this[0],`events`,(0,i.default)(this[0],`events`)||{}))}l.prototype={on:a.on,off:a.off,trigger:a.trigger},l.extend=o.default,l.data=i.default,l.Event=a.Event,t.default=l}),(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=typeof window<`u`&&window.document&&window.document.createElement?window:{}}),(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(e,t,n){if(n===void 0)return e.__data?e.__data[t]:null;e.__data=e.__data||{},e.__data[t]=n}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0,t.off=f,t.on=d,t.trigger=p;var r=s(n(11)),i=s(n(12)),a=s(n(14)),o=s(n(10));function s(e){return e&&e.__esModule?e:{default:e}}let c=r.default.document;function l(e){return e instanceof Element&&(0,i.default)(e,`events`)}let u=t.Event=void 0;typeof r.default.CustomEvent==`function`?t.Event=u=r.default.CustomEvent:r.default.Event&&c&&c.createEvent?(t.Event=u=function(e,t){t||={bubbles:!1,cancelable:!1,composed:!0,detail:void 0};let n=c.createEvent(`CustomEvent`);return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n},u.prototype=r.default.Event.prototype):typeof Event<`u`&&(t.Event=u=Event);function d(e,t){if(!this[0]||!l(this[0]))return this;let n=this[0],r=(0,i.default)(n,`events`),a=(e,i)=>{n.addEventListener?n.addEventListener(e,t,!1):n.attachEvent&&n.attachEvent(`on${e}`,t),r[e]=r[e]||{},r[e][i]=r[e][i]||[],r[e][i].push(t)};return e.split(` `).forEach(e=>{let[t,n=`global`]=e.split(`.`);a(t,n)}),this}function f(e,t){let n,r;function a(e,t,i){if(e in n){if(r.removeEventListener?r.removeEventListener(e,i,!1):r.detachEvent&&r.detachEvent(`on${e}`,i),t===`global`)for(let t in n[e])n[e][t].splice(n[e][t].indexOf(i),1);else n[e][t].splice(n[e][t].indexOf(i),1)}}function o(e,r){let i=[],a,o;if(e.length>0){let s=r?[r]:Object.keys(n[e]);for(let c=0;c<s.length;c++)if(r=s[c],t===void 0)for(a=0,o=n[e][r]?.length||0;a<o;a++)i.push({ev:e,namespace:r,handler:n[e][r][a]});else i.push({ev:e,namespace:r,handler:t})}else if(r.length>0){for(let e in n)if(n[e][r]){if(t===void 0)for(a=0,o=n[e][r].length;a<o;a++)i.push({ev:e,namespace:r,handler:n[e][r][a]});else i.push({ev:e,namespace:r,handler:t})}}return i}return l(this[0])&&(n=(0,i.default)(this[0],`events`),r=this[0],e||=Object.keys(n).join(` `),e!==``&&e.split(` `).forEach(e=>{let[t,n]=e.split(`.`);o(t,n).forEach(({ev:e,handler:t,namespace:n})=>{a(e,n,t)})})),this}function p(e){if(l(this[0])){let t=(0,i.default)(this[0],`events`),n=this[0],r=typeof e==`string`?e.split(` `):[e.type];for(let i=0;i<r.length;i++){let s=r[i].split(`.`),l=s[0],u=s[1]||`global`;if(c!==void 0){let t,r={bubbles:!0,cancelable:!0,composed:!0,detail:arguments[1]};if(c.createEvent){try{switch(l){case`input`:r.inputType=`insertText`,t=new InputEvent(l,r);break;default:t=new CustomEvent(l,r)}}catch{t=c.createEvent(`CustomEvent`),t.initCustomEvent(l,r.bubbles,r.cancelable,r.detail)}e.type&&(0,a.default)(t,e),n.dispatchEvent(t)}else t=c.createEventObject(),t.eventType=l,t.detail=arguments[1],e.type&&(0,a.default)(t,e),n.fireEvent(`on`+t.eventType,t)}else if(t[l]!==void 0){arguments[0]=arguments[0].type?arguments[0]:o.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1);let e=t[l];(u===`global`?Object.values(e).flat():e[u]).forEach(e=>e.apply(n,arguments))}}}return this}}),(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(){let e,t,r,i,a,o,s=arguments[0]||{},c=1,l=arguments.length,u=!1;for(typeof s==`boolean`&&(u=s,s=arguments[c]||{},c++),typeof s!=`object`&&typeof s!=`function`&&(s={});c<l;c++)if((e=arguments[c])!=null)for(t in e)r=s[t],i=e[t],s!==i&&(u&&i&&(Object.prototype.toString.call(i)===`[object Object]`||(a=Array.isArray(i)))?(a?(a=!1,o=r&&Array.isArray(r)?r:[]):o=r&&Object.prototype.toString.call(r)===`[object Object]`?r:{},s[t]=n(u,o,i)):i!==void 0&&(s[t]=i));return s}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EventRuler=void 0;var r=n(16),i=s(n(7)),a=n(19),o=n(20);function s(e){return e&&e.__esModule?e:{default:e}}t.EventRuler={on:function(e,t,n){let s=e.inputmask.dependencyLib,c=function(t){t.originalEvent&&(t=t.originalEvent||t,arguments[0]=t);let c=this,l=c.inputmask,u=l?l.opts:void 0,d;if(l===void 0&&this.nodeName!==`FORM`){let e=s.data(c,`_inputmask_opts`);s(c).off(),e&&new i.default(e).mask(c)}else if(![`submit`,`reset`,`setvalue`].includes(t.type)&&this.nodeName!==`FORM`&&(c.disabled||c.readOnly&&!(t.type===`keydown`&&t.ctrlKey&&t.key===a.keys.c||u.tabThrough===!1&&t.key===a.keys.Tab)))t.preventDefault();else{switch(t.type){case`input`:if(l.skipInputEvent===!0)return l.skipInputEvent=!1,t.preventDefault();l.lastInputEvent={time:Date.now(),data:t.data};break;case`keydown`:if(l.lastInputEvent&&Date.now()-l.lastInputEvent.time<10&&l.lastInputEvent.data===t.key)return!1;break;case`click`:case`focus`:if(l.validationEvent)return l.validationEvent=!1,e.blur(),(0,r.HandleNativePlaceholder)(e,(l.isRTL?o.getBufferTemplate.call(l).slice().reverse():o.getBufferTemplate.call(l)).join(``)),setTimeout(function(){e.focus()},u.validationEventTimeOut),!1;d=arguments,setTimeout(function(){e.inputmask&&n.apply(c,d)},0);return}let i=n.apply(c,arguments);return i===!1&&(t.preventDefault(),t.stopPropagation()),i}};t=`${t}.inputmask`,[`submit.inputmask`,`reset.inputmask`].includes(t)?(c=c.bind(e),e.form!==null&&s(e.form).on(t,c)):s(e).on(t,c)},off:function(e,t){if(e.inputmask){let n=e.inputmask.dependencyLib;n(e).off(t||`.inputmask`)}}}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.HandleNativePlaceholder=m,t.applyInputValue=d,t.checkVal=p,t.clearOptionalTail=f,t.unmaskedvalue=h,t.writeBuffer=g;var r=n(17),i=n(18),a=u(n(7)),o=n(19),s=n(20),c=n(21),l=n(22);function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n,r){let i=e?e.inputmask:this,a=i.opts;e.inputmask.refreshValue=!1,r!==!0&&typeof a.onBeforeMask==`function`&&(t=a.onBeforeMask.call(i,t,a)||t),t=(t||``).toString().split(``),p(e,!0,!1,t,n),i.undoValue=i._valueGet(!0),(a.clearMaskOnLostFocus||a.clearIncomplete)&&e.inputmask._valueGet()===s.getBufferTemplate.call(i).join(``)&&s.getLastValidPosition.call(i)===-1&&e.inputmask._valueSet(``)}function f(e){let t=this;e.length=0;let n=l.getMaskTemplate.call(t,!0,0,!0,void 0,!0),r;for(;(r=n.shift())!==void 0;)e.push(r);return e}function p(e,t,n,r,a){let o=e?e.inputmask:this,u=o.maskset,d=o.opts,f=o.dependencyLib,p=r.slice(),m=``,h=-1,_,v=d.skipOptionalPartCharacter;d.skipOptionalPartCharacter=``;function y(e,t){let n=l.getMaskTemplate.call(o,!0,0).slice(e,s.seekNext.call(o,e,!1,!1)).join(``).replace(/'/g,``),r=n.indexOf(t);for(;r>0&&n[r-1]===` `;)r--;let i=r===0&&!s.isMask.call(o,e)&&(l.getTest.call(o,e).match.nativeDef===t.charAt(0)||l.getTest.call(o,e).match.static===!0&&l.getTest.call(o,e).match.nativeDef===`'`+t.charAt(0)||l.getTest.call(o,e).match.nativeDef===` `&&(l.getTest.call(o,e+1).match.nativeDef===t.charAt(0)||l.getTest.call(o,e+1).match.static===!0&&l.getTest.call(o,e+1).match.nativeDef===`'`+t.charAt(0)));if(!i&&r>0&&!s.isMask.call(o,e,!1,!0)){let t=s.seekNext.call(o,e);o.caretPos.begin<t&&(o.caretPos={begin:t})}return i}s.resetMaskSet.call(o,!1),o.clicked=0,h=d.radixPoint?s.determineNewCaretPosition.call(o,{begin:0,end:0},!1,d.__financeInput===!1?`radixFocus`:void 0).begin:0,u.p=h,o.caretPos={begin:h};let b=[],x=o.caretPos;if(p.forEach(function(e,t){if(e!==void 0){let r=new f.Event(`_checkval`);r.key=e,m+=e;let a=s.getLastValidPosition.call(o,void 0,!0);y(h,m)?_=l.getTest.call(o,t).match.static===!0&&i.EventHandlers.keypressEvent.call(o,r,!0,!1,n,a+1):(_=i.EventHandlers.keypressEvent.call(o,r,!0,!1,n,o.caretPos.begin),_&&(h=o.caretPos.begin+1,m=``)),_?(_.pos!==void 0&&u.validPositions[_.pos]&&u.validPositions[_.pos].match.static===!0&&u.validPositions[_.pos].alternation===void 0&&(b.push(_.pos),o.isRTL||(_.forwardPosition=_.pos+1)),g.call(o,void 0,s.getBuffer.call(o),_.forwardPosition,r,!1),o.caretPos={begin:_.forwardPosition,end:_.forwardPosition},x=o.caretPos):u.validPositions[t]===void 0&&p[t]===l.getPlaceholder.call(o,t)&&s.isMask.call(o,t,!0)?o.caretPos.begin++:o.caretPos=x}}),b.length>0){let e,t,r=s.seekNext.call(o,-1,void 0,!1);if(!c.isComplete.call(o,s.getBuffer.call(o))&&b.length<=r||c.isComplete.call(o,s.getBuffer.call(o))&&b.length>0&&b.length!==r&&b[0]===0){let a=r;for(;(e=b.shift())!==void 0;)if(e<a){let r=new f.Event(`_checkval`);if(t=u.validPositions[e],t.generatedInput=!0,r.key=t.input,_=i.EventHandlers.keypressEvent.call(o,r,!0,!1,n,a),_&&_.pos!==void 0&&_.pos!==e&&u.validPositions[_.pos]&&u.validPositions[_.pos].match.static===!0)b.push(_.pos);else if(!_)break;a++}}else for(;e=b.pop();)t=u.validPositions[e],t&&u.validPositions[e+1]===void 0&&delete u.validPositions[e]}t&&g.call(o,e,s.getBuffer.call(o),_?_.forwardPosition:o.caretPos.begin,a||new f.Event(`checkval`),a&&(a.type===`input`&&o.undoValue!==s.getBuffer.call(o).join(``)||a.type===`paste`)),d.skipOptionalPartCharacter=v}function m(e,t){let n=e?e.inputmask:this;if(r.ie){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||e.placeholder===``)){let r=s.getBuffer.call(n).slice(),i=e.inputmask._valueGet();if(i!==t){let t=s.getLastValidPosition.call(n);t===-1&&i===s.getBufferTemplate.call(n).join(``)?r=[]:t!==-1&&f.call(n,r),g(e,r)}}}else e.placeholder!==t&&(e.placeholder=t,e.placeholder===``&&e.removeAttribute(`placeholder`))}function h(e){let t=e?e.inputmask:this,n=t.opts,r=t.maskset;if(e){if(e.inputmask===void 0)return e.value;e.inputmask&&e.inputmask.refreshValue&&d(e,e.inputmask._valueGet(!0))}let i=[],o=r.validPositions;for(let e=0,t=o.length;e<t;e++)o[e]&&o[e].match&&(o[e].match.static!=1||n.keepStatic!==!0&&Array.isArray(r.metadata)&&o[e].generatedInput!==!0)&&i.push(o[e].input);let c=i.length===0?``:(t.isRTL?i.reverse():i).join(``);if(typeof n.onUnMask==`function`){let e=(t.isRTL?s.getBuffer.call(t).slice().reverse():s.getBuffer.call(t)).join(``);c=n.onUnMask.call(t,e,c,n)}return n.outputMask&&c.length>0?a.default.format(c,{...n,mask:n.outputMask,alias:null}):c}function g(e,t,n,r,i){let a=e?e.inputmask:this,l=a.opts,u=a.dependencyLib;if(r&&typeof l.onBeforeWrite==`function`){let e=l.onBeforeWrite.call(a,r,t,n,l);if(e){if(e.refreshFromBuffer){let n=e.refreshFromBuffer;c.refreshFromBuffer.call(a,n===!0?n:n.start,n.end,e.buffer||t),t=s.getBuffer.call(a,!0)}n!==void 0&&(n=e.caret===void 0?n:e.caret)}}if(e!==void 0&&(e.inputmask._valueSet(t.join(``)),n!==void 0&&(r===void 0||r.type!==`blur`)&&s.caret.call(a,e,n,void 0,void 0,r!==void 0&&r.type===`keydown`&&(r.key===o.keys.Delete||r.key===o.keys.Backspace)),e.inputmask.writeBufferHook===void 0||e.inputmask.writeBufferHook(n),i===!0)){let n=u(e),r=e.inputmask._valueGet();e.inputmask.skipInputEvent=!0,n.trigger(`input`),setTimeout(function(){r===s.getBufferTemplate.call(a).join(``)?n.trigger(`cleared`):c.isComplete.call(a,t)===!0&&n.trigger(`complete`)},0)}}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mobile=t.iphone=t.ie=void 0;var r=i(n(11));function i(e){return e&&e.__esModule?e:{default:e}}let a=r.default.navigator&&r.default.navigator.userAgent||``;t.ie=a.indexOf(`MSIE `)>0||a.indexOf(`Trident/`)>0,t.mobile=!!(navigator.userAgentData?.mobile??((matchMedia(`(pointer:coarse)`).matches||navigator.maxTouchPoints)&&innerWidth<=1024||/Mobi|Android|iPhone/i.test(a))),t.iphone=/iphone/i.test(a)}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EventHandlers=void 0;var r=n(17),i=u(n(11)),a=n(16),o=n(19),s=n(20),c=n(21),l=n(22);function u(e){return e&&e.__esModule?e:{default:e}}let d=t.EventHandlers={keyEvent:function(e,t,n,i,u){let f=this.inputmask,p=f.opts,m=f.dependencyLib,h=f.maskset,g=this,_=m(g),v=e.key,y=s.caret.call(f,g),b=p.onKeyDown.call(this,e,s.getBuffer.call(f),y,p);if(b!==void 0)return b;if(v===o.keys.Backspace||v===o.keys.Delete||r.iphone&&v===o.keys.BACKSPACE_SAFARI||e.ctrlKey&&v===o.keys.x&&!(`oncut`in g))e.preventDefault(),c.handleRemove.call(f,g,v,y),(0,a.writeBuffer)(g,s.getBuffer.call(f,!0),h.p,e,g.inputmask._valueGet()!==s.getBuffer.call(f).join(``));else if(v===o.keys.End||v===o.keys.PageDown){e.preventDefault();let t=s.seekNext.call(f,s.getLastValidPosition.call(f));s.caret.call(f,g,e.shiftKey?y.begin:t,t,!0)}else v===o.keys.Home&&!e.shiftKey||v===o.keys.PageUp?(e.preventDefault(),s.caret.call(f,g,0,e.shiftKey?y.begin:0,!0)):p.undoOnEscape&&v===o.keys.Escape&&e.altKey!==!0?((0,a.checkVal)(g,!0,!1,f.undoValue.split(``)),_.trigger(`click`)):v===o.keys.Insert&&!(e.shiftKey||e.ctrlKey)&&f.userOptions.insertMode===void 0?c.isSelection.call(f,y)?p.insertMode=!p.insertMode:(p.insertMode=!p.insertMode,s.caret.call(f,g,y.begin,y.begin)):p.tabThrough===!0&&v===o.keys.Tab?e.shiftKey===!0?(y.end=s.seekPrevious.call(f,y.end,!0),l.getTest.call(f,y.end-1).match.static===!0&&y.end--,y.begin=s.seekPrevious.call(f,y.end,!0),y.begin>=0&&y.end>0&&(e.preventDefault(),s.caret.call(f,g,y.begin,y.end))):(y.begin=s.seekNext.call(f,y.begin,!0),y.end=s.seekNext.call(f,y.begin,!0),y.end<h.maskLength&&y.end--,y.begin<=h.maskLength&&(e.preventDefault(),s.caret.call(f,g,y.begin,y.end))):e.shiftKey||(p.insertModeVisual&&p.insertMode===!1?v===o.keys.ArrowRight?setTimeout(function(){let e=s.caret.call(f,g);s.caret.call(f,g,e.begin)},0):v===o.keys.ArrowLeft&&setTimeout(function(){let e={begin:s.translatePosition.call(f,g.inputmask.caretPos.begin),end:s.translatePosition.call(f,g.inputmask.caretPos.end)};f.isRTL?s.caret.call(f,g,e.begin+(e.begin===h.maskLength?0:1)):s.caret.call(f,g,e.begin-(e.begin===0?0:1))},0):f.keyEventHook===void 0||f.keyEventHook(e));return f.isComposing=v===o.keys.Process||v===o.keys.Unidentified,f.ignorable=v===void 0||v.length>1,d.keypressEvent.call(f,e,t,n,i,u)},keypressEvent:function(e,t,n,r,i){let l=this.inputmask||this,u=l.opts,d=l.dependencyLib,f=l.maskset,p=l.el,m=d(p),h=e.key;if(t!==!0&&!(e.ctrlKey&&e.altKey&&!l.ignorable)&&(e.ctrlKey||e.metaKey||l.ignorable))h===o.keys.Enter&&l.undoValue!==l._valueGet(!0)&&(l.undoValue=l._valueGet(!0),setTimeout(function(){m.trigger(`change`)},0));else if(h){let o=t?{begin:i,end:i}:s.caret.call(l,p),d;t||(h=u.substitutes[h]||h),f.writeOutBuffer=!0;let m=c.isValid.call(l,o,h,r,void 0,void 0,void 0,t);if(m!==!1&&(s.resetMaskSet.call(l,!0),d=m.caret===void 0?s.seekNext.call(l,m.pos.begin?m.pos.begin:m.pos):m.caret,f.p=d),d=u.numericInput&&m.caret===void 0?s.seekPrevious.call(l,d):d,n!==!1&&(setTimeout(function(){u.onKeyValidation.call(p,h,m)},0),f.writeOutBuffer&&m!==!1)){let n=s.getBuffer.call(l);(0,a.writeBuffer)(p,n,d,e,t!==!0)}if(e.preventDefault(),t)return m!==!1&&(m.forwardPosition=d),m}},pasteEvent:async function(e){function t(t,n,r,i,c){let l=s.caret.call(t,n,void 0,void 0,!0),u=r.substr(0,l.begin),d=r.substr(l.end,r.length);if(u==(t.isRTL?s.getBufferTemplate.call(t).slice().reverse():s.getBufferTemplate.call(t)).slice(0,l.begin).join(``)&&(u=``),d==(t.isRTL?s.getBufferTemplate.call(t).slice().reverse():s.getBufferTemplate.call(t)).slice(l.end).join(``)&&(d=``),i=u+i+d,t.isRTL&&o.numericInput!==!0){i=i.split(``);for(let e of s.getBufferTemplate.call(t))i[0]===e&&i.shift();i=i.reverse().join(``)}let f=i;if(typeof c==`function`){if(f=c.call(t,f,o),f===!1)return!1;f||=r}(0,a.checkVal)(n,!0,!1,f.toString().split(``),e)}let n=this,r=this.inputmask,o=r.opts,c=r._valueGet(!0),l;r.skipInputEvent=!0,e.clipboardData&&e.clipboardData.getData?l=e.clipboardData.getData(`text/plain`):i.default.clipboardData&&i.default.clipboardData.getData&&(l=i.default.clipboardData.getData(`Text`)),t(r,n,c,l,o.onBeforePaste),e.preventDefault()},inputFallBackEvent:function(e){let t=this.inputmask,n=t.opts,i=t.dependencyLib;function c(e,r,i){let a=e.substr(0,i.begin).split(``),o=e.substr(i.begin).split(``),c=r.substr(0,i.begin).split(``),u=r.substr(i.begin).split(``),d=a.length>=c.length?a.length:c.length,f=o.length>=u.length?o.length:u.length,p,m,h=``,g=[],_;for(;a.length<d;)a.push(`~`);for(;c.length<d;)c.push(`~`);for(;o.length<f;)o.unshift(`~`);for(;u.length<f;)u.unshift(`~`);let v=a.concat(o),y=c.concat(u);for(m=0,p=v.length;m<p;m++)switch(_=l.getPlaceholder.call(t,s.translatePosition.call(t,m)),h){case`insertText`:y[m-1]===v[m]&&i.begin==v.length-1&&g.push(v[m]),m=p;break;case`insertReplacementText`:v[m]===`~`?i.end++:m=p;break;case`deleteContentBackward`:v[m]===`~`?i.end++:m=p;break;default:v[m]!==y[m]&&((v[m+1]===`~`||v[m+1]===_||v[m+1]===void 0)&&(y[m]===_&&y[m+1]===`~`||y[m]===`~`)||y[m+1]===`~`&&y[m]===v[m+1]?(h=`insertText`,g.push(v[m]),i.begin--,i.end--):v[m]!==_&&v[m]!==`~`&&(v[m+1]===`~`||y[m]!==v[m]&&y[m+1]===v[m+1])?(h=`insertReplacementText`,g.push(v[m]),i.begin--):v[m]===`~`?(h=`deleteContentBackward`,(s.isMask.call(t,s.translatePosition.call(t,m),!0)||y[m]===n.radixPoint)&&i.end++):m=p)}return{action:h,data:g,caret:i}}let u=this,f=u.inputmask._valueGet(!0),p=(t.isRTL?s.getBuffer.call(t).slice().reverse():s.getBuffer.call(t)).join(``),m=s.caret.call(t,u,void 0,void 0,!0),h;if(p!==f){if(h=c(f,p,m),u.getRootNode().activeElement!==u&&u.focus(),(0,a.writeBuffer)(u,s.getBuffer.call(t)),s.caret.call(t,u,m.begin,m.end,!0),!r.mobile&&t.skipNextInsert&&e.inputType===`insertText`&&h.action===`insertText`&&t.isComposing)return!1;switch(t.skipNextInsert=!!(e.inputType===`insertCompositionText`&&h.action===`insertText`&&t.isComposing),h.action){case`insertText`:case`insertReplacementText`:h.data.forEach(function(e,n){let r=new i.Event(`keypress`);r.key=e,t.ignorable=!1,d.keypressEvent.call(u,r)}),setTimeout(function(){t.$el.trigger(`keyup`)},0);break;case`deleteContentBackward`:var g=new i.Event(`keydown`);g.key=o.keys.Backspace,d.keyEvent.call(u,g);break;default:(0,a.applyInputValue)(u,f,e),s.caret.call(t,u,m.begin,m.end,!0)}e.preventDefault()}},setValueEvent:function(e){let t=this.inputmask,n=t.dependencyLib,r=this,i=e&&e.detail?e.detail[0]:arguments[1];i===void 0&&(i=r.inputmask._valueGet(!0)),(0,a.applyInputValue)(r,i,new n.Event(`input`),(e&&e.detail?e.detail[0]:arguments[1])!==void 0),(e.detail&&e.detail[1]!==void 0||arguments[2]!==void 0)&&s.caret.call(t,r,e.detail?e.detail[1]:arguments[2])},focusEvent:function(e){let t=this.inputmask,n=t.opts,r=this,i=t&&t._valueGet();n.showMaskOnFocus&&i!==s.getBuffer.call(t).join(``)&&(0,a.writeBuffer)(r,s.getBuffer.call(t),s.seekNext.call(t,s.getLastValidPosition.call(t))),n.positionCaretOnTab===!0&&t.mouseEnter===!1&&(!c.isComplete.call(t,s.getBuffer.call(t))||s.getLastValidPosition.call(t)===-1)&&d.clickEvent.apply(r,[e,!0]),t.undoValue=t&&t._valueGet(!0)},invalidEvent:function(e){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){let e=this.inputmask,t=e.opts,n=this;e.mouseEnter=!1,t.clearMaskOnLostFocus&&n.getRootNode().activeElement!==n&&(0,a.HandleNativePlaceholder)(n,e.originalPlaceholder)},clickEvent:function(e,t){let n=this.inputmask;n.clicked++;let r=this;if(r.getRootNode().activeElement===r){let e=s.determineNewCaretPosition.call(n,s.caret.call(n,r),t);e!==void 0&&s.caret.call(n,r,e)}},cutEvent:function(e){let t=this.inputmask,n=t.maskset,r=this,l=s.caret.call(t,r),u=t.isRTL?s.getBuffer.call(t).slice(l.end,l.begin):s.getBuffer.call(t).slice(l.begin,l.end),d=t.isRTL?u.reverse().join(``):u.join(``);i.default.navigator&&i.default.navigator.clipboard?i.default.navigator.clipboard.writeText(d):i.default.clipboardData&&i.default.clipboardData.getData&&i.default.clipboardData.setData(`Text`,d),c.handleRemove.call(t,r,o.keys.Delete,l),(0,a.writeBuffer)(r,s.getBuffer.call(t),n.p,e,t.undoValue!==t._valueGet(!0))},blurEvent:function(e){let t=this.inputmask,n=t.opts,r=t.dependencyLib;t.clicked=0;let i=r(this),o=this;if(o.inputmask){(0,a.HandleNativePlaceholder)(o,t.originalPlaceholder);let r=o.inputmask._valueGet(),l=s.getBuffer.call(t).slice();if(r!==``&&(n.clearMaskOnLostFocus&&(s.getLastValidPosition.call(t)===-1&&r===s.getBufferTemplate.call(t).join(``)?l=[]:a.clearOptionalTail.call(t,l)),c.isComplete.call(t,l)===!1&&(setTimeout(function(){i.trigger(`incomplete`)},0),n.clearIncomplete&&(s.resetMaskSet.call(t,!1),l=n.clearMaskOnLostFocus?[]:s.getBufferTemplate.call(t).slice())),(0,a.writeBuffer)(o,l,void 0,e)),r=t._valueGet(!0),t.undoValue!==r){let e=(t.isRTL?s.getBufferTemplate.call(t).slice().reverse():s.getBufferTemplate.call(t)).join(``);(r!==``||t.undoValue!==e||t.undoValue===e&&t.maskset.validPositions.length>0)&&(t.undoValue=r,i.trigger(`change`))}}},mouseenterEvent:function(){let e=this.inputmask,{showMaskOnHover:t}=e.opts,n=this;if(e.mouseEnter=!0,n.getRootNode().activeElement!==n){let r=(e.isRTL?s.getBufferTemplate.call(e).slice().reverse():s.getBufferTemplate.call(e)).join(``);t&&(0,a.HandleNativePlaceholder)(n,r)}},submitEvent:function(){let e=this.inputmask,t=e.opts;e.undoValue!==e._valueGet(!0)&&e.$el.trigger(`change`),s.getLastValidPosition.call(e)===-1&&e._valueGet&&e._valueGet()===s.getBufferTemplate.call(e).join(``)&&e._valueSet(``),t.clearIncomplete&&c.isComplete.call(e,s.getBuffer.call(e))===!1&&e._valueSet(``),t.removeMaskOnSubmit&&(e._valueSet(e.unmaskedvalue(),!0),setTimeout(function(){(0,a.writeBuffer)(e.el,s.getBuffer.call(e))},0))},resetEvent:function(){let e=this.inputmask;e.refreshValue=!0,setTimeout(function(){(0,a.applyInputValue)(e.el,e._valueGet(!0))},0)}}}),(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.keys=t.keyCode=void 0,t.toKey=i,t.toKeyCode=a;let n=t.keyCode={c:67,x:88,z:90,BACKSPACE_SAFARI:127,Enter:13,Meta_LEFT:91,Meta_RIGHT:92,Space:32,Alt:18,AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,CapsLock:20,Control:17,ContextMenu:93,Dead:221,Delete:46,End:35,Escape:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Home:36,Insert:45,NumLock:144,PageDown:34,PageUp:33,Pause:19,PrintScreen:44,Process:229,Shift:16,ScrollLock:145,Tab:9,Unidentified:229},r=Object.entries(n).reduce((e,[t,n])=>(e[n]=e[n]===void 0?t:e[n],e),{});t.keys=Object.entries(n).reduce((e,[t,n])=>(e[t]=t===`Space`?` `:t,e),{});function i(e,t){return r[e]||(t?String.fromCharCode(e):String.fromCharCode(e).toLowerCase())}function a(e){return n[e]}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.caret=s,t.determineLastRequiredPosition=c,t.determineNewCaretPosition=l,t.getBuffer=u,t.getBufferTemplate=d,t.getLastValidPosition=f,t.isMask=p,t.resetMaskSet=m,t.seekNext=h,t.seekPrevious=g,t.translatePosition=_;var r=o(n(11)),i=n(21),a=n(22);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n,i,a){let o=this,s=this.opts,c;if(t!==void 0){if(Array.isArray(t)&&(n=o.isRTL?t[0]:t[1],t=o.isRTL?t[1]:t[0]),t.begin!==void 0&&(n=o.isRTL?t.begin:t.end,t=o.isRTL?t.end:t.begin),typeof t==`number`){t=i?t:_.call(o,t),n=i?n:_.call(o,n),n=typeof n==`number`?n:t;let l=parseInt(((e.ownerDocument.defaultView||r.default).getComputedStyle?(e.ownerDocument.defaultView||r.default).getComputedStyle(e,null):e.currentStyle).fontSize)*n;if(e.scrollLeft=l>e.scrollWidth?l:0,e.inputmask.caretPos={begin:t,end:n},s.insertModeVisual&&s.insertMode===!1&&t===n&&(a||n++),e===e.getRootNode().activeElement){if(`setSelectionRange`in e)e.setSelectionRange(t,n);else if(r.default.getSelection){if(c=document.createRange(),e.firstChild===void 0||e.firstChild===null){let t=document.createTextNode(``);e.appendChild(t)}c.setStart(e.firstChild,t<e.inputmask._valueGet().length?t:e.inputmask._valueGet().length),c.setEnd(e.firstChild,n<e.inputmask._valueGet().length?n:e.inputmask._valueGet().length),c.collapse(!0);let i=r.default.getSelection();i.removeAllRanges(),i.addRange(c)}else e.createTextRange&&(c=e.createTextRange(),c.collapse(!0),c.moveEnd(`character`,n),c.moveStart(`character`,t),c.select());e.inputmask.caretHook===void 0||e.inputmask.caretHook.call(o,{begin:t,end:n})}}}else return`selectionStart`in e&&`selectionEnd`in e?(t=e.selectionStart,n=e.selectionEnd):r.default.getSelection?(c=r.default.getSelection().getRangeAt(0),(c.commonAncestorContainer.parentNode===e||c.commonAncestorContainer===e)&&(t=c.startOffset,n=c.endOffset)):document.selection&&document.selection.createRange&&(c=document.selection.createRange(),t=0-c.duplicate().moveStart(`character`,-e.inputmask._valueGet().length),n=t+c.text.length),{begin:i?t:_.call(o,t),end:i?n:_.call(o,n)}}function c(e){let t=this,{maskset:n,dependencyLib:r}=t,o=f.call(t),s={},c=n.validPositions[o],l=a.getMaskTemplate.call(t,!0,f.call(t),!0,!0),u=l.length,d,p=c===void 0?void 0:c.locator.slice(),m;for(d=o+1;d<l.length;d++)m=a.getTestTemplate.call(t,d,p,d-1),p=m.locator.slice(),s[d]=r.extend(!0,{},m);let h=c&&c.alternation!==void 0?c.locator[c.alternation]:void 0;for(d=u-1;d>o&&(m=s[d],(m.match.optionality||m.match.optionalQuantifier&&m.match.newBlockMarker||h&&(h!==s[d].locator[c.alternation]&&m.match.static!==!0||m.match.static===!0&&m.locator[c.alternation]&&i.checkAlternationMatch.call(t,m.locator[c.alternation].toString().split(`,`),h.toString().split(`,`))&&a.getTests.call(t,d)[0].def!==``))&&l[d]===a.getPlaceholder.call(t,d,m.match));d--)if(u--,m.match.optionality){let e=d;for(;e>0;){let n=a.getTest.call(t,e);if(n.match.newBlockMarker===`master`||n.match.newBlockMarker===!0)break;e--}if(n.validPositions[e]!==void 0)break}return d===o&&(u=d),e?{l:u,def:s[u]?s[u].match:void 0}:u}function l(e,t,n){let r=this,{maskset:i,opts:o}=r,s,c,l;function d(e){if(o.radixPoint!==``&&o.digits!==0){let t=i.validPositions;if(t[e]===void 0||t[e].input===void 0){if(e<h.call(r,-1))return!0;let n=u.call(r).indexOf(o.radixPoint);if(n!==-1){for(let e in t){let i=Number(e);if(n<i&&t[e].input!==a.getPlaceholder.call(r,i))return!1}return!0}}}return!1}if(t&&(r.isRTL?e.end=e.begin:e.begin=e.end),e.begin===e.end){switch(n||=o.positionCaretOnClick,n){case`none`:break;case`select`:e={begin:0,end:u.call(r).length};break;case`ignore`:e.end=e.begin=h.call(r,f.call(r));break;case`radixFocus`:if(r.clicked>1&&i.validPositions.length===0)break;if(d(e.begin)){let t=u.call(r).join(``).indexOf(o.radixPoint);e.end=e.begin=o.numericInput?h.call(r,t):t;break}default:if(s=e.begin,c=f.call(r,s,!0),l=h.call(r,c===-1&&!p.call(r,0)?-1:c),s<=l)e.end=e.begin=p.call(r,s,!1,!0)?s:h.call(r,s);else{let t=i.validPositions[c],n=a.getTestTemplate.call(r,l,t?t.match.locator:void 0,t),d=a.getPlaceholder.call(r,l,n.match);if(d!==``&&u.call(r)[l]!==d&&n.match.optionalQuantifier!==!0&&n.match.newBlockMarker!==!0||!p.call(r,l,o.keepStatic,!0)&&n.match.def===d){let e=h.call(r,l);(s>=e||s===l)&&(l=e)}e.end=e.begin=l}}return e}}function u(e){let t=this,{maskset:n}=t;return(n.buffer===void 0||e===!0)&&(n.buffer=a.getMaskTemplate.call(t,!0,f.call(t),!0),n._buffer===void 0&&(n._buffer=n.buffer.slice())),n.buffer}function d(){let e=this,t=this.maskset;return t._buffer===void 0&&(t._buffer=a.getMaskTemplate.call(e,!1,1),t.buffer===void 0&&(t.buffer=t._buffer.slice())),t._buffer}function f(e,t,n){let r=this.maskset,i=-1,a=-1,o=n||r.validPositions;e===void 0&&(e=-1);for(let n=0,r=o.length;n<r;n++)o[n]&&(t||o[n].generatedInput!==!0)&&(n<=e&&(i=n),n>=e&&(a=n));return i===-1||i===e?a:a===-1||e-i<a-e?i:a}function p(e,t,n){let r=this,i=this.maskset,o=a.getTestTemplate.call(r,e).match;if(o.def===``&&(o=a.getTest.call(r,e).match),o.static!==!0)return o.fn;if(n===!0&&i.validPositions[e]!==void 0&&i.validPositions[e].generatedInput!==!0)return!0;if(t!==!0&&e>-1){if(n){let t=a.getTests.call(r,e);return t.length>1+ +(t[t.length-1].match.def===``)}let t=a.determineTestTemplate.call(r,e,a.getTests.call(r,e)),i=a.getPlaceholder.call(r,e,t.match);return t.match.def!==i}return!1}function m(e){let t=this.maskset;t.buffer=void 0,e!==!0&&(t.validPositions=[],t.p=0),e===!1&&(t.tests={},t.jitOffset={})}function h(e,t,n){let r=this;n===void 0&&(n=!0);let i=e+1;for(;a.getTest.call(r,i).match.def!==``&&(t===!0&&(a.getTest.call(r,i).match.newBlockMarker!==!0||!p.call(r,i,void 0,!0))||t!==!0&&!p.call(r,i,void 0,n));)i++;return i}function g(e,t){let n=this,r=e-1;if(e<=0)return 0;for(;r>0&&(t===!0&&(a.getTest.call(n,r).match.newBlockMarker!==!0||!p.call(n,r,void 0,!0))||t!==!0&&!p.call(n,r,void 0,!0));)r--;return r}function _(e){let t=this,n=this.opts,r=this.el;return t.isRTL&&typeof e==`number`&&(!n.greedy||n.placeholder!==``)&&r&&(e=t._valueGet().length-e,e<0&&(e=0)),e}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.alternate=s,t.casing=c,t.checkAlternationMatch=l,t.handleRemove=u,t.isComplete=d,t.isSelection=f,t.isValid=p,t.refreshFromBuffer=h,t.revalidateMask=_;var r=n(18),i=n(19),a=n(20),o=n(22);function s(e,t,n,r,i,c){let l=this,u=this.dependencyLib,d=this.opts,f=l.maskset;if(!l.hasAlternator)return!1;let m=u.extend(!0,[],f.validPositions),h=u.extend(!0,{},f.tests),g,_,v=!1,y=!1,b,x,S,C,w,T=i===void 0?a.getLastValidPosition.call(l):i,E,D,O,k;if(c&&(O=c.begin,k=c.end,c.begin>c.end&&(O=c.end,k=c.begin)),T===-1&&i===void 0)g=0,x=o.getTest.call(l,g),_=x.alternation;else for(;T>=0;T--)if(b=T===0?o.getTest.call(l,0):f.validPositions[T],b&&b.alternation!==void 0){if(T<=(e||0)&&x&&x.locator[b.alternation]!==b.locator[b.alternation])break;g=T,_=b.alternation,x=b}if(_!==void 0){w=parseInt(g),f.excludes[w]=f.excludes[w]||[],e!==!0&&f.excludes[w].push((0,o.getDecisionTaker)(x)+`:`+x.alternation);let i=[],_=-1;for(S=w;w<a.getLastValidPosition.call(l,void 0,!0)+1;S++)_===-1&&e<=S&&t!==void 0&&(i.push(t),_=i.length-1),C=f.validPositions[w],C&&C.generatedInput!==!0&&(w!==0||C.input!==d.skipOptionalPartCharacter)&&(c===void 0||S<O||S>=k)&&i.push(C.input),f.validPositions.splice(w,1);for(_===-1&&t!==void 0&&(i.push(t),_=i.length-1);f.excludes[w]!==void 0&&f.excludes[w].length<10;){f.tests={},a.resetMaskSet.call(l,!0),v=!0,E=w-1;let g=o.getMaskTemplate.call(l,!0,0);for(S=0;S<i.length&&(D=i[S],g[E+1]===D&&d.numericInput!==!0?E++:E=S===0||y.caretPos!==void 0||d.insertMode===!1?a.seekNext.call(l,E):a.getLastValidPosition.call(l,E,!0)+1,v=p.call(l,E,D,!1,r,!0));S++)S===_&&(y=v),e===!0&&v&&(y={caretPos:S});if(v)break;if(a.resetMaskSet.call(l),x=o.getTest.call(l,w),f.validPositions=u.extend(!0,[],m),f.tests=u.extend(!0,{},h),y=!1,f.excludes[w]){if(x.alternation!=null){let i=(0,o.getDecisionTaker)(x);if(f.excludes[w].indexOf(i+`:`+x.alternation)!==-1){y=s.call(l,e,t,n,r,w-1,c);break}for(f.excludes[w].push(i+`:`+x.alternation),S=w;S<a.getLastValidPosition.call(l,void 0,!0)+1;S++)f.validPositions.splice(w)}else delete f.excludes[w]}else{y=s.call(l,e,t,n,r,w-1,c);break}}}return(!y||d.keepStatic!==!1)&&delete f.excludes[w],y||(f.validPositions=u.extend(!0,[],m),f.tests=u.extend(!0,{},h)),y}function c(e,t,n){let r=this.opts,a=this.maskset;switch(r.casing||t.casing){case`upper`:e=e.toLocaleUpperCase();break;case`lower`:e=e.toLocaleLowerCase();break;case`title`:var o=a.validPositions[n-1];e=n===0||o&&o.input===String.fromCharCode(i.keyCode.Space)?e.toLocaleUpperCase():e.toLocaleLowerCase();break;case`follow`:t.def&&t.def!==t.def.toLocaleLowerCase()?e=e.toLocaleUpperCase():t.def&&t.def!==t.def.toLocaleUpperCase()&&(e=e.toLocaleLowerCase());break;default:if(typeof r.casing==`function`){let t=Array.prototype.slice.call(arguments);t.push(a.validPositions),e=r.casing.apply(this,t)}}return e}function l(e,t,n){let r=this.opts.greedy?t:t.slice(0,1),i=!1,a=n===void 0?[]:n.split(`,`),o;for(let t=0;t<a.length;t++)(o=e.indexOf(a[t]))!==-1&&e.splice(o,1);for(let t=0;t<e.length;t++)if(r.includes(e[t])){i=!0;break}return i}function u(e,t,n,r,c){let l=this,u=this.maskset,d=this.opts;if((d.numericInput||l.isRTL)&&(t===i.keys.Backspace?t=i.keys.Delete:t===i.keys.Delete&&(t=i.keys.Backspace),l.isRTL)){let e=n.end;n.end=n.begin,n.begin=e}let f=a.getLastValidPosition.call(l,void 0,!0);n.end>=a.getBuffer.call(l).length&&f>=n.end&&(n.end=f+1),t===i.keys.Backspace?n.end-n.begin<1&&(n.begin=a.seekPrevious.call(l,n.begin)):t===i.keys.Delete&&n.begin===n.end&&(n.end=a.isMask.call(l,n.end,!0,!0)?n.end+1:a.seekNext.call(l,n.end)+1);let p;(p=_.call(l,n))!==!1&&((r!==!0&&d.keepStatic!==!1||d.regex!==null&&o.getTest.call(l,n.begin).match.def.indexOf(`|`)!==-1)&&s.call(l,!0),r!==!0&&(u.p=t===i.keys.Delete?n.begin+p:n.begin,u.p=a.determineNewCaretPosition.call(l,{begin:u.p,end:u.p},!1,d.insertMode===!1&&t===i.keys.Backspace?`none`:void 0).begin))}function d(e){let t=this,n=this.opts,r=this.maskset;if(typeof n.isComplete==`function`)return n.isComplete(e,n);if(n.repeat===`*`)return;let i=!1,s=a.determineLastRequiredPosition.call(t,!0),c=s.l;if(s.def===void 0||s.def.newBlockMarker||s.def.optionality||s.def.optionalQuantifier){i=!0;for(let n=0;n<=c;n++){let a=o.getTestTemplate.call(t,n).match;if(a.static!==!0&&r.validPositions[n]===void 0&&(a.optionality===!1||a.optionality===void 0||a.optionality&&a.newBlockMarker==0)&&(a.optionalQuantifier===!1||a.optionalQuantifier===void 0)||a.static===!0&&a.def!=``&&e[n]!==o.getPlaceholder.call(t,n,a)){i=!1;break}}}return i}function f(e){let t=this,n=+!this.opts.insertMode;return t.isRTL?e.begin-e.end>n:e.end-e.begin>n}function p(e,t,n,r,i,l,u){let d=this,m=this.dependencyLib,v=this.opts,y=d.maskset;n=n===!0;let b=e;e.begin!==void 0&&(b=d.isRTL?e.end:e.begin);function x(e){if(e!==void 0){if(e.remove!==void 0&&(Array.isArray(e.remove)||(e.remove=[e.remove]),e.remove.sort(function(e,t){return d.isRTL?e.pos-t.pos:t.pos-e.pos}).forEach(function(e){_.call(d,{begin:e,end:e+1})}),e.remove=void 0),e.insert!==void 0&&(Array.isArray(e.insert)||(e.insert=[e.insert]),e.insert.sort(function(e,t){return d.isRTL?t.pos-e.pos:e.pos-t.pos}).forEach(function(e){e.c!==``&&p.call(d,e.pos,e.c,e.strict===void 0||e.strict,e.fromIsValid===void 0?r:e.fromIsValid)}),e.insert=void 0),e.refreshFromBuffer&&e.buffer){let t=e.refreshFromBuffer;h.call(d,t===!0?t:t.start,t.end,e.buffer),e.refreshFromBuffer=void 0}e.rewritePosition!==void 0&&(b=e.rewritePosition,e=!0)}return e}function S(t,n,i){let s=!1;return o.getTests.call(d,t).every(function(l,u){let p=l.match;if(a.getBuffer.call(d,!0),s=p.jit&&y.validPositions[a.seekPrevious.call(d,t)]===void 0?!1:p.fn==null?(n===p.def||n===v.skipOptionalPartCharacter)&&p.def!==``&&{c:o.getPlaceholder.call(d,t,p,!0)||p.def,pos:t}:p.fn.test(n,y,t,i,v,f.call(d,e)),s!==!1){let i=s.c===void 0?n:s.c,a=t;return i=i===v.skipOptionalPartCharacter&&p.static===!0?o.getPlaceholder.call(d,t,p,!0)||p.def:i,s=x(s),s!==!0&&s.pos!==void 0&&s.pos!==t&&(a=s.pos),s!==!0&&s.pos===void 0&&s.c===void 0||_.call(d,e,m.extend({},l,{input:c.call(d,i,p,a)}),r,a)===!1&&(s=!1),!1}return!0}),s}let C=!0,w=m.extend(!0,[],y.validPositions);if(v.keepStatic===!1&&y.excludes[b]!==void 0&&i!==!0&&r!==!0)for(let t=b;t<(d.isRTL?e.begin:e.end);t++)y.excludes[t]!==void 0&&(y.excludes[t]=void 0,delete y.tests[t]);if(typeof v.preValidation==`function`&&r!==!0&&l!==!0&&(C=v.preValidation.call(d,a.getBuffer.call(d),b,t,f.call(d,e),v,y,e,n||i),C=x(C)),C===!0){if(C=S(b,t,n),(!n||r===!0)&&C===!1&&l!==!0){let r=y.validPositions[b];if(r&&r.match.static===!0&&(r.match.def===t||t===v.skipOptionalPartCharacter))C={caret:a.seekNext.call(d,b)};else if(v.insertMode||y.validPositions[a.seekNext.call(d,b)]===void 0||e.end>b){let r=!1;if(y.jitOffset[b]&&y.validPositions[a.seekNext.call(d,b)]===void 0&&(C=p.call(d,b+y.jitOffset[b],t,!0,!0),C!==!1&&(i!==!0&&(C.caret=b),r=!0)),e.end>b&&(y.validPositions[b]=void 0),!r&&!a.isMask.call(d,b,v.keepStatic&&b===0)){for(let e=b+1,r=a.seekNext.call(d,b,!1,b!==0);e<=r;e++)if(C=S(e,t,n),C!==!1){C=g.call(d,b,C.pos===void 0?e:C.pos)||C,b=e;break}}}}if(d.hasAlternator&&i!==!0&&!n&&(i=!0,C===!1?(v.keepStatic===!0||isFinite(parseInt(v.keepStatic))&&b>=v.keepStatic)&&(C=s.call(d,b,t,n,r,void 0,e)):C===!0&&(f.call(d,e)&&y.tests[b]&&y.tests[b].length>1&&v.keepStatic||v.numericInput!==!0&&y.tests[b]&&y.tests[b].length>1&&a.getLastValidPosition.call(d,void 0,!0)>b)&&(C=s.call(d,!0)||C)),C===!0&&(C={pos:b}),typeof v.postValidation==`function`&&r!==!0&&l!==!0){let r=v.postValidation.call(d,a.getBuffer.call(d,!0),e.begin===void 0?e:d.isRTL?e.end:e.begin,t,C,v,y,n,u,i);r!==void 0&&(C=r===!0?C:r)}}C&&C.pos===void 0&&(C.pos=b),C===!1||l===!0?(a.resetMaskSet.call(d,!0),y.validPositions=m.extend(!0,[],w)):g.call(d,void 0,b,!0);let T=x(C);return d.maxLength!==void 0&&a.getBuffer.call(d).length>d.maxLength&&!r&&(a.resetMaskSet.call(d,!0),y.validPositions=m.extend(!0,[],w),T=!1),T}function m(e,t,n){let r=this,i=this.maskset,a=!1,s=o.getTests.call(r,e);for(let r=0;r<s.length;r++)if(s[r].match&&(s[r].match.nativeDef===t.match[n.shiftPositions?`def`:`nativeDef`]&&(!n.shiftPositions||!t.match.static)||s[r].match.nativeDef===t.match.nativeDef||n.regex&&!s[r].match.static&&s[r].match.fn.test(t.input,i,e,!1,n))){a=!0;break}else if(s[r].match&&s[r].match.def===t.match.nativeDef){a=void 0;break}return a===!1&&i.jitOffset[e]!==void 0&&(a=m.call(r,e+i.jitOffset[e],t,n)),a}function h(e,t,n){let i=this,o=this.maskset,s=this.opts,c=this.dependencyLib,l,u,d=s.skipOptionalPartCharacter,f=i.isRTL?n.slice().reverse():n;if(s.skipOptionalPartCharacter=``,e===!0)a.resetMaskSet.call(i,!1),e=0,t=n.length,u=a.determineNewCaretPosition.call(i,{begin:0,end:0},!1).begin;else{for(l=e;l<t;l++)delete o.validPositions[l];u=e}let p=new c.Event(`keypress`);for(l=e;l<t;l++){p.key=f[l].toString(),i.ignorable=!1;let e=r.EventHandlers.keypressEvent.call(i,p,!0,!1,!1,u);e!==!1&&e!==void 0&&(u=e.forwardPosition)}s.skipOptionalPartCharacter=d}function g(e,t,n){let r=this,i=this.maskset,s=this.dependencyLib;if(e===void 0)for(e=t-1;e>0&&!i.validPositions[e];e--);for(let u=e;u<t;u++)if(i.validPositions[u]===void 0&&!a.isMask.call(r,u,!1)&&(u==0?o.getTest.call(r,u):i.validPositions[u-1])){let e=o.getTests.call(r,u).slice();e[e.length-1].match.def===``&&e.pop();var c=o.determineTestTemplate.call(r,u,e),l;if(c&&(c.match.jit!==!0||c.match.newBlockMarker===`master`&&(l=i.validPositions[u+1])&&l.match.optionalQuantifier===!0)&&(c=s.extend({},c,{input:o.getPlaceholder.call(r,u,c.match,!0)||c.match.def}),c.generatedInput=!0,_.call(r,u,c,!0),n!==!0)){let e=i.validPositions[t].input;return i.validPositions[t]=void 0,p.call(r,t,e,!0,!0)}}}function _(e,t,n,r){let i=this,s=this.maskset,c=this.opts,l=this.dependencyLib;function u(e,t,n){let r=t[e];if(r!==void 0&&r.match.static===!0&&r.match.optionality!==!0&&(t[0]===void 0||t[0].alternation===void 0)){let r=n.begin<=e-1?t[e-1]&&t[e-1].match.static===!0&&t[e-1]:t[e-1],i=n.end>e+1?t[e+1]&&t[e+1].match.static===!0&&t[e+1]:t[e+1];return r&&i}return!1}let d=0,h=e.begin===void 0?e:e.begin,g=e.end===void 0?e:e.end,_=!0;if(e.begin>e.end&&(h=e.end,g=e.begin),r=r===void 0?h:r,n===void 0&&(h!==g||c.insertMode&&s.validPositions[r]!==void 0||t===void 0||t.match.optionalQuantifier||t.match.optionality)){let n=l.extend(!0,[],s.validPositions),v=a.getLastValidPosition.call(i,void 0,!0),y;s.p=h;let b=f.call(i,e)?h:r;for(y=v;y>=b;y--)s.validPositions.splice(y,1),t===void 0&&delete s.tests[y+1];let x=r,S=x,C,w,T;for(t&&(s.validPositions[r]=l.extend(!0,{},t),S++,x++),n[g]==null&&s.jitOffset[g]&&(g+=s.jitOffset[g]+ +!!t),y=t?g:g-1;y<=v;y++){if((C=n[y])!==void 0&&(c.shiftPositions!==!0||C.generatedInput!==!0)&&(y>=g||y>=h&&u(y,n,{begin:h,end:g}))){for(;T=o.getTest.call(i,S),T.match.def!==``;){if((w=m.call(i,S,C,c))!==!1||C.match.def===`+`){C.match.def===`+`&&a.getBuffer.call(i,!0);let e=p.call(i,S,C.input,C.match.def!==`+`,!0);if(_=e!==!1,x=(e.pos||S)+1,!_&&w)break}else _=!1;if(_){t===void 0&&C.match.static&&y===e.begin&&d++;break}if(!_&&a.getBuffer.call(i),S>s.maskLength)break;S++}o.getTest.call(i,S).match.def==``&&(_=!1),S=x}if(!_)break}if(!_)return s.validPositions=l.extend(!0,[],n),a.resetMaskSet.call(i,!0),!1}else t&&o.getTest.call(i,r).match.cd===t.match.cd&&(s.validPositions[r]=l.extend(!0,{},t));return a.resetMaskSet.call(i,!0),d}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.determineTestTemplate=f,t.getDecisionTaker=c,t.getMaskTemplate=u,t.getPlaceholder=l,t.getTest=m,t.getTestTemplate=d,t.getTests=g,t.isSubsetOf=h;var r=o(n(7)),i=n(20),a=n(21);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){let n=(e.alternation==null?e.locator:e.mloc[`${c(e)}:${e.alternation}`]||e.locator).join(``);if(n!==``)for(n=n.split(`:`)[0];n.length<t;)n+=`0`;return n}function c(e){let t=e.locator[e.alternation];return typeof t==`string`&&t.length>0&&(t=t.split(`,`).sort((e,t)=>e-t)[0]),t===void 0?``:t.toString()}function l(e,t,n){let r=this,o=this.opts,s=this.maskset;if(t||=m.call(r,e).match,t.placeholder!==void 0||n===!0){if(t.placeholder!==``&&t.static===!0&&t.generated!==!0){let s=i.getLastValidPosition.call(r,e),c=i.seekNext.call(r,s);return(n?e<=c:e<c)?a.casing.call(r,o.staticDefinitionSymbol&&t.static?t.nativeDef:t.def,t,e):typeof t.placeholder==`function`?t.placeholder(o):t.placeholder}return typeof t.placeholder==`function`?t.placeholder(o):t.placeholder}if(t.static===!0){if(e>-1&&s.validPositions[e]===void 0){let t=g.call(r,e),n=[],i;if(typeof o.placeholder==`string`&&t.length>1+ +(t[t.length-1].match.def===``)){for(let r=0;r<t.length;r++)if(t[r].match.def!==``&&t[r].match.optionality!==!0&&t[r].match.optionalQuantifier!==!0&&(t[r].match.static===!0||i===void 0||t[r].match.fn.test(i.match.def,s,e,!0,o)!==!1)&&(n.push(t[r]),t[r].match.static===!0&&(i=t[r]),n.length>1&&/[0-9a-zA-Z]/.test(n[0].match.def)))return o.placeholder.charAt(e%o.placeholder.length)}}return t.def}return typeof o.placeholder==`object`?t.def:o.placeholder.charAt(e%o.placeholder.length)}function u(e,t,n,r,i){let a=this,o=this.opts,s=this.maskset,c=o.greedy,u=[];i&&o.greedy&&(o.greedy=!1,a.maskset.tests={}),t||=0;let p,m=0,h,_,v;do{if(e===!0&&s.validPositions[m])_=i&&s.validPositions[m].match.optionality&&s.validPositions[m+1]===void 0&&(s.validPositions[m].generatedInput===!0||s.validPositions[m].input==o.skipOptionalPartCharacter&&m>0)?f.call(a,m,g.call(a,m,p,m-1)):s.validPositions[m],h=_.match,p=_.locator.slice(),u.push(n===!0?_.input:n===!1?h.nativeDef:l.call(a,m,h));else{_=d.call(a,m,p,m-1),h=_.match,p=_.locator.slice();let e=r===!0?!1:o.jitMasking===!1?h.jit:o.jitMasking;v=(v||s.validPositions[m-1])&&h.static&&h.def!==o.groupSeparator&&h.fn===null,v||e===!1||e===void 0||typeof e==`number`&&isFinite(e)&&e>m?u.push(n===!1?h.nativeDef:l.call(a,u.length,h)):v=!1}m++}while(h.static!==!0||h.def!==``||t>m);return u[u.length-1]===``&&u.pop(),(n!==!1||s.maskLength===void 0)&&(s.maskLength=m-1),o.greedy=c,u}function d(e,t,n){let r=this;return this.maskset.validPositions[e]||f.call(r,e,g.call(r,e,t&&t.slice(),n))}function f(e,t){let n=this,r=n.opts,i=p(e,t);e=e>0?e-1:0;let a=Math.max(...t.map(e=>e.locator===void 0?0:e.locator.length)),o=s(m.call(n,e),a),c=0,l,u,d;r.greedy&&t.length>1&&t[t.length-1].match.def===``&&(c=1);for(let e=0;e<t.length-c;e++){let n=t[e];l=s(n,a);let c=Number(l)-Number(o);(n.unMatchedAlternationStopped!==!0||t.filter(e=>e.unMatchedAlternationStopped!==!0).length<=1)&&(u===void 0||l!==``&&c<u||d&&!r.greedy&&d.match.optionality&&d.match.optionality-i>0&&d.match.newBlockMarker===`master`&&(!n.match.optionality||n.match.optionality-i<1||!n.match.newBlockMarker)||d&&!r.greedy&&d.match.optionalQuantifier&&!n.match.optionalQuantifier)&&(u=c,d=n)}return d}function p(e,t){let n=0,r=!1;return t.forEach(e=>{e.match.optionality&&(n!==0&&n!==e.match.optionality&&(r=!0),(n===0||n>e.match.optionality)&&(n=e.match.optionality))}),n&&(e==0||t.length==1?n=0:r||(n=0)),n}function m(e,t){let n=this,r=this.maskset;return r.validPositions[e]?r.validPositions[e]:(t||g.call(n,e))[0]}function h(e,t,n){function r(e){let t=[],n=-1,r;for(let i=0,a=e.length;i<a;i++)if(e.charAt(i)===`-`)for(r=e.charCodeAt(i+1);++n<r;)t.push(String.fromCharCode(n));else n=e.charCodeAt(i),t.push(e.charAt(i));return t.join(``)}return e.match.def===t.match.nativeDef?!0:(n.regex||e.match.fn instanceof RegExp&&t.match.fn instanceof RegExp)&&e.match.static!==!0&&t.match.static!==!0?t.match.fn.source===`.`||r(t.match.fn.source.replace(/[[\]/]/g,``)).indexOf(r(e.match.fn.source.replace(/[[\]/]/g,``)))!==-1:!1}function g(e,t,n){let i=this,a=this.dependencyLib,o=this.maskset,s=this.opts,c=this.el,l=o.maskToken,u=t?n:0,d=t?t.slice():[0],p=[],m=!1,g=!1,_,v=t?t.join(``):``,y=!1;function b(t,n,a,l){function d(a,l,f){function C(e,t){let n=t.matches.indexOf(e)===0;return n||t.matches.every(function(r,i){return r.isQuantifier===!0?n=C(e,t.matches[i-1]):Object.prototype.hasOwnProperty.call(r,`matches`)&&(n=C(e,r)),!n||(t.matches[i+1]&&t.matches[i+1].isQuantifier&&(n=i===0),!1)}),n}function w(e,t,n){let r,i,a,s,c=`${t}:${n}`;if((o.tests[e]||o.validPositions[e])&&(o.validPositions[e]?[o.validPositions[e]]:o.tests[e]).every(function(e,o){return e.mloc[c]?(r=e,!1):(Object.values(e.mloc).filter(e=>e[n]==t).every(t=>{let n=t.join(``).split(`:`)[0];for(a||=n;n.length<a.length;)n+=`0`;let o=Number(n);return(r===void 0||o<i)&&(i=o,r=e,s=Object.entries(e.mloc).find(e=>e[1].toString()===t.toString())[0]),!0}),!0)}),r){n===void 0&&(c=`${t}:${r.alternation}`);let e=`${r.locator[r.alternation]}:${r.alternation}`,i=r.mloc[s||c]||r.mloc[e]||r.locator;i[i.length-1].toString().indexOf(`:`)!==-1&&i.pop();let a=parseInt(r.alternation)+1;return i.slice(a)}return n===void 0?void 0:w(e,t)}function T(t,n){return t.match.static===!0&&n.match.static!==!0&&n.match.fn.test(t.match.def,o,e,!1,s,!1)}function E(e,t){function n(n){e.mloc=e.mloc||{};let r=e.locator[n];if(r===void 0)e.alternation=void 0;else{if(t===void 0)typeof r==`string`&&(r=r.split(`,`)[0]),r=`${r}:${n}`,e.mloc[r]===void 0&&(e.mloc[r]=e.locator.slice(),e.mloc[r].push(`:${n}`));else{let n=0;for(let r in t.mloc)if(e.mloc[r]===void 0)e.mloc[r]=t.mloc[r];else do if(e.mloc[r+n]===void 0){e.mloc[r+n]=t.mloc[r];break}while(e.mloc[r+n++]!==void 0);e.locator=S(u,[e,t])}return e.alternation>n&&(e.alternation=n),!0}return!1}let r=e.alternation,i=t===void 0||r<=t.alternation&&e.locator[r].toString().indexOf(t.locator[r])===-1;if(!i&&r>t.alternation){for(let n=0;n<r;n++)if(e.locator[n]!==t.locator[n]){r=n,i=!0;break}}return i?n(r):!1}function D(){if(a=d(t.matches[t.matches.indexOf(a)+1],l,f),a)return!0}function O(){let t=a,r=p.length;if(a=b(a,n,l,f),p.length>0){if(p.forEach(function(e,t){t>=r&&(e.match.optionality=e.match.optionality?e.match.optionality+1:1)}),_=p[p.length-1].match,f===void 0&&C(_,t))m=!0,u=e;else return a}}function k(){function r(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];r.isQuantifier&&!isNaN(r.quantifier.max)?t+=r.quantifier.max:t++}return t}function _(e){let t=e.matches[0].matches?r(e.matches[0].matches):1,n;for(let i=0;i<e.matches.length&&(n=e.matches[i].matches?r(e.matches[i].matches):1,t===n);i++);return t!==n}i.hasAlternator=!0;let v=a,b=[],x=p.slice(),S=l.length,C=n.length>0?n.shift():-1,D;if(C===-1||typeof C==`string`){let t=u,r=n.slice(),i=[],O;if(typeof C==`string`)i=C.split(`,`);else for(O=0;O<v.matches.length;O++)i.push(O.toString());if(o.excludes[e]!==void 0){let t=i.slice();for(let t=0,n=o.excludes[e].length;t<n;t++){let n=o.excludes[e][t].toString().split(`:`);l.length==n[1]&&i.splice(i.indexOf(n[0]),1)}i.length===0&&(delete o.excludes[e],i=t)}(s.keepStatic===!0||isFinite(parseInt(s.keepStatic))&&t>=s.keepStatic)&&(i=i.slice(0,1));for(let e=0;e<i.length;e++){O=parseInt(i[e]),p=[],n=typeof C==`string`&&w(u,O,S)||r.slice();let o=v.matches[O];if(o&&d(o,[O].concat(l),f))a=!0;else if(y=_(v),o&&o.matches&&o.matches.length>v.matches[0].matches.length)break;D=p.slice(),u=t,p=[];for(let e=0;e<D.length;e++){let n=D[e],r=!1;n.alternation=n.alternation||S,E(n);for(let e=0;e<b.length;e++){let i=b[e];if(typeof C!=`string`||n.alternation!==void 0&&C.indexOf(n.locator[n.alternation].toString())!==-1){if(n.match.nativeDef===i.match.nativeDef){r=!0,E(i,n);break}if(h(n,i,s)){E(n,i)&&(r=!0,b.splice(b.indexOf(i),0,n));break}if(h(i,n,s)){E(i,n);break}if(T(n,i)){E(n,i)&&(r=!0,b.splice(b.indexOf(i),0,n));break}if(T(i,n)){E(i,n),i.match.optionality&&c.inputmask.userOptions.keepStatic===void 0&&(s.keepStatic=t);break}}}r||b.push(n)}}p=x.concat(b),u=e,m||=p.length>0&&y,!y&&m&&(g=!0),a=b.length>0&&!y,y&&m&&!a&&p.forEach(function(e,t){e.unMatchedAlternationStopped=!0}),n=r.slice()}else a=d(v.matches[C]||t.matches[C],[C].concat(l),f);if(a)return!0}function A(){let r=a,i=!1;for(let c=n.length>0?n.shift():0;c<(isNaN(r.quantifier.max)?c+1:r.quantifier.max)&&u<=e;c++){let n=t.matches[t.matches.indexOf(r)-1];if(a=d(n,[c].concat(l),n),a){if(p.forEach(function(t,l){_=x(n,t.match)?t.match:p[p.length-1].match,_.optionalQuantifier=c>=r.quantifier.min,_.jit=(c+1)*(n.matches.indexOf(_)+1)>r.quantifier.jit,(_.optionalQuantifier||_.optionality)&&C(_,n)&&(m=!0,u=e,s.greedy&&o.validPositions[e-1]==null&&c>r.quantifier.min&&[`*`,`+`].indexOf(r.quantifier.max)!=-1&&(p.pop(),v=void 0),i=!0,a=!1),!i&&_.jit&&(o.jitOffset[e]=n.matches.length-n.matches.indexOf(_))}),i)break;return!0}}}if(u>e+s._maxTestPos)throw Error(`Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ${o.mask}`);if(u===e&&a.matches===void 0){if(p.push({match:a,locator:l.reverse(),cd:v,mloc:{}}),a.optionality&&f===void 0&&(s.definitions&&s.definitions[a.nativeDef]&&s.definitions[a.nativeDef].optional||r.default.prototype.definitions[a.nativeDef]&&r.default.prototype.definitions[a.nativeDef].optional))m=!0,u=e;else return!0}else if(a.matches!==void 0){if(a.isGroup&&f!==a)return D();if(a.isOptional)return O();if(a.isAlternator)return k();if(a.isQuantifier&&f!==t.matches[t.matches.indexOf(a)-1])return A();if(a=b(a,n,l,f),a)return!0}else u++}for(let r=n.length>0?n.shift():0;r<t.matches.length;r++)if(t.matches[r].isQuantifier!==!0){let n=d(t.matches[r],[r].concat(a),l);if(n&&u===e)return n;if(u>e)break}}function x(e,t){let n=e.matches.indexOf(t)!=-1;return n||e.matches.forEach((e,r)=>{e.matches!==void 0&&!n&&(n=x(e,t))}),n}function S(e,t){let n=[];return Array.isArray(t)||(t=[t]),t.length>0&&(t[0].alternation===void 0||s.keepStatic===!0||isFinite(parseInt(s.keepStatic))&&e>=s.keepStatic?(n=f.call(i,e,t.slice()).locator.slice(),n.length===0&&(n=t[0].locator.slice())):t.forEach(e=>{Object.values(e.mloc).forEach(e=>{e.forEach((e,t)=>{let r=n[t];e.toString().includes(`:`)||r&&r.toString().includes(`:`)||(r===void 0?n[t]=e:r.toString().includes(e)||(n[t]=n[t]+`,`+e))})})})),n}if(e>-1){if(t===void 0){let t=e-1,n;for(;(n=o.validPositions[t]||o.tests[t])===void 0&&t>-1;)t--;n!==void 0&&t>-1&&(d=S(t,n),v=d.join(``),u=t)}if(o.tests[e]&&o.tests[e][0].cd===v)return o.tests[e];for(let t=d.shift();t<l.length&&!(b(l[t],d,[t])&&u===e||u>e);t++);}(p.length===0||m)&&p.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:``,placeholder:``},locator:y&&p.filter(e=>e.unMatchedAlternationStopped!==!0).length===0||g&&p.length>0&&p.filter(e=>!e.match.static).every(e=>e.match.optionalQuantifier)?[0]:[],mloc:{},cd:v});let C;return t!==void 0&&o.tests[e]?C=a.extend(!0,[],p):(o.tests[e]=a.extend(!0,[],p),C=o.tests[e]),p.forEach(e=>{e.match.optionality=e.match.defOptionality||!1}),C}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mask=l;var r=n(17),i=n(18),a=n(15),o=n(16),s=n(20),c=n(21);function l(){let e=this,t=this.opts,n=this.el,l=this.dependencyLib;function u(t,n){function r(t){let r,i;function c(t){if(l.valHooks&&(l.valHooks[t]===void 0||l.valHooks[t].inputmaskpatch!==!0)){let r=l.valHooks[t]&&l.valHooks[t].get?l.valHooks[t].get:function(e){return e.value},i=l.valHooks[t]&&l.valHooks[t].set?l.valHooks[t].set:function(e,t){return e.value=t,e};l.valHooks[t]={get:function(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask)return t.inputmask.unmaskedvalue();{let i=r(t);return s.getLastValidPosition.call(e,void 0,void 0,t.inputmask.maskset.validPositions)!==-1||n.nullable!==!0?i:``}}return r(t)},set:function(e,t){let n=i(e,t);return e.inputmask&&(0,o.applyInputValue)(e,t),n},inputmaskpatch:!0}}}function u(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():s.getLastValidPosition.call(e)!==-1||n.nullable!==!0?this.getRootNode().activeElement===this&&n.clearMaskOnLostFocus?(e.isRTL?o.clearOptionalTail.call(e,s.getBuffer.call(e).slice()).reverse():o.clearOptionalTail.call(e,s.getBuffer.call(e).slice())).join(``):r.call(this):``:r.call(this)}function d(e){i.call(this,e),this.inputmask&&(0,o.applyInputValue)(this,e)}function f(e){a.EventRuler.on(e,`mouseenter`,function(){let e=this,t=e.inputmask._valueGet(!0);t!=(e.inputmask.isRTL?s.getBuffer.call(e.inputmask).slice().reverse():s.getBuffer.call(e.inputmask)).join(``)&&(0,o.applyInputValue)(e,t)})}if(!t.inputmask.__valueGet){if(n.noValuePatching!==!0){if(Object.getOwnPropertyDescriptor){let e=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),`value`):void 0;e&&e.get&&e.set?(r=e.get,i=e.set,Object.defineProperty(t,"value",{get:u,set:d,configurable:!0})):t.tagName.toLowerCase()!==`input`&&(r=function(){return this.textContent},i=function(e){this.textContent=e},Object.defineProperty(t,"value",{get:u,set:d,configurable:!0}))}else document.__lookupGetter__&&t.__lookupGetter__(`value`)&&(r=t.__lookupGetter__(`value`),i=t.__lookupSetter__(`value`),t.__defineGetter__(`value`,u),t.__defineSetter__(`value`,d));t.inputmask.__valueGet=r,t.inputmask.__valueSet=i}t.inputmask._valueGet=function(t){return e.isRTL&&t!==!0?r.call(this.el).split(``).reverse().join(``):r.call(this.el)},t.inputmask._valueSet=function(t,n){i.call(this.el,t==null?``:n!==!0&&e.isRTL?t.split(``).reverse().join(``):t)},r===void 0&&(r=function(){return this.value},i=function(e){this.value=e},c(t.type),f(t))}}let i=t.getAttribute(`type`),c=t.tagName.toLowerCase()===`input`&&n.supportsInputType.includes(i)||t.isContentEditable||t.tagName.toLowerCase()===`textarea`;if(!c){if(t.tagName.toLowerCase()===`input`){let e=document.createElement(`input`);e.setAttribute(`type`,i),c=e.type===`text`,e=null}else c=`partial`}return c===!1?t.inputmask=void 0:r(t),c}a.EventRuler.off(n);let d=u(n,t);if(d!==!1){e.originalPlaceholder=n.placeholder,e.maxLength=n===void 0?void 0:n.maxLength,e.maxLength===-1&&(e.maxLength=void 0),`inputMode`in n&&n.getAttribute(`inputmode`)===null&&(n.inputMode=t.inputmode,n.setAttribute(`inputmode`,t.inputmode)),d===!0&&(t.showMaskOnFocus=t.showMaskOnFocus&&[`cc-number`,`cc-exp`].indexOf(n.autocomplete)===-1,r.iphone&&(t.insertModeVisual=!1,n.setAttribute(`autocorrect`,`off`)),a.EventRuler.on(n,`submit`,i.EventHandlers.submitEvent),a.EventRuler.on(n,`reset`,i.EventHandlers.resetEvent),a.EventRuler.on(n,`blur`,i.EventHandlers.blurEvent),a.EventRuler.on(n,`focus`,i.EventHandlers.focusEvent),a.EventRuler.on(n,`invalid`,i.EventHandlers.invalidEvent),a.EventRuler.on(n,`click`,i.EventHandlers.clickEvent),a.EventRuler.on(n,`mouseleave`,i.EventHandlers.mouseleaveEvent),a.EventRuler.on(n,`mouseenter`,i.EventHandlers.mouseenterEvent),a.EventRuler.on(n,`paste`,i.EventHandlers.pasteEvent),a.EventRuler.on(n,`cut`,i.EventHandlers.cutEvent),a.EventRuler.on(n,`complete`,t.oncomplete),a.EventRuler.on(n,`incomplete`,t.onincomplete),a.EventRuler.on(n,`cleared`,t.oncleared),t.inputEventOnly!==!0&&a.EventRuler.on(n,`keydown`,i.EventHandlers.keyEvent),(r.mobile||t.inputEventOnly)&&n.removeAttribute(`maxLength`),a.EventRuler.on(n,`input`,i.EventHandlers.inputFallBackEvent)),a.EventRuler.on(n,`setvalue`,i.EventHandlers.setValueEvent),e.applyMaskHook===void 0||e.applyMaskHook(),s.getBufferTemplate.call(e).join(``),e.undoValue=e._valueGet(!0);let l=n.getRootNode().activeElement;if(n.inputmask._valueGet(!0)!==``||t.clearMaskOnLostFocus===!1||l===n){(0,o.applyInputValue)(n,n.inputmask._valueGet(!0));let r=s.getBuffer.call(e).slice();c.isComplete.call(e,r)===!1&&t.clearIncomplete&&s.resetMaskSet.call(e,!1),t.clearMaskOnLostFocus&&l!==n&&(s.getLastValidPosition.call(e)===-1?r=[]:o.clearOptionalTail.call(e,r)),(t.clearMaskOnLostFocus===!1||t.showMaskOnFocus&&l===n||n.inputmask._valueGet(!0)!==``)&&(0,o.writeBuffer)(n,r),l===n?s.caret.call(e,n,s.seekNext.call(e,s.getLastValidPosition.call(e))):s.caret.call(e,n,0)}}}}),(function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.analyseMask=l,t.generateMaskSet=c;var r=s(n(10)),i=n(25),a=s(n(7)),o=s(n(26));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){let n;function o(e,{repeat:t,groupmarker:n,quantifiermarker:r,keepStatic:a}){if(t>0||t===`*`||t===`+`){let i=t===`*`?0:t===`+`?1:t;if(i!==t)e=n[0]+e+n[1]+r[0]+i+`,`+t+r[1];else{let t=e;for(let n=1;n<i;n++)e+=t}}if(a===!0){let t=e.match(RegExp(`(.)\\[([^\\]]*)\\]`,`g`));t&&t.forEach((t,n)=>{let[r,a]=t.split(`[`);a=a.replace(`]`,``),e=e.replace(RegExp(`${(0,i.escapeRegex)(r)}\\[${(0,i.escapeRegex)(a)}\\]`),r.charAt(0)===a.charAt(0)?`(${r}|${r}${a})`:`${r}[${a}]`)})}return e}function s(e,n,i){let s=!1;(e===null||e===``)&&(s=i.regex!==null,s?(e=i.regex,e=e.replace(/^(\^)(.*)(\$)$/,`$2`)):(s=!0,e=`.*`)),e.length===1&&i.greedy===!1&&i.repeat!==0&&(i.placeholder=``),e=o(e,i);let c,l;return l=s?`regex_`+i.regex:i.numericInput?e.split(``).reverse().join(``):e,i.keepStatic!==null&&(l=`ks_`+i.keepStatic+l),typeof i.placeholder==`object`&&(l=`ph_`+JSON.stringify(i.placeholder)+l),a.default.prototype.masksCache[l]===void 0||t===!0?(c={mask:e,maskToken:a.default.prototype.analyseMask(e,s,i),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:n,maskLength:void 0,jitOffset:{}},t!==!0&&(a.default.prototype.masksCache[l]=c,c=r.default.extend(!0,{},a.default.prototype.masksCache[l]))):c=r.default.extend(!0,{},a.default.prototype.masksCache[l]),c}if(typeof e.mask==`function`&&(e.mask=e.mask(e)),Array.isArray(e.mask)){if(e.mask.length>1){e.keepStatic===null&&(e.keepStatic=!0);let t=e.groupmarker[0];return(e.isRTL?e.mask.reverse():e.mask).forEach(function(n){t.length>1&&(t+=e.alternatormarker),n.mask!==void 0&&typeof n.mask!=`function`?t+=n.mask:t+=n}),t+=e.groupmarker[1],s(t,e.mask,e)}e.mask=e.mask.pop()}return n=e.mask&&e.mask.mask!==void 0&&typeof e.mask.mask!=`function`?s(e.mask.mask,e.mask,e):s(e.mask,e.mask,e),e.keepStatic===null&&(e.keepStatic=!1),n}function l(e,t,n){let r=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,i=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,s=new o.default,c=[],l=[],u=!1,d,f,p,m,h,g,_=!1;function v(e,r,i){i=i===void 0?e.matches.length:i;let o=e.matches[i-1],c=n.casing?`i`:``;if(t)r.indexOf(`[`)===0||u&&/\\d|\\s|\\w|\\p/i.test(r)||r===`.`?(/\\p\{.*}/i.test(r)&&(c+=`u`),e.matches.splice(i++,0,{fn:new RegExp(r,c),static:!1,optionality:!1,newBlockMarker:o===void 0?`master`:o.def!==r,casing:null,def:r,placeholder:typeof n.placeholder==`object`?n.placeholder[s.matches.length]:void 0,nativeDef:r})):(u&&(r=r[r.length-1]),r.split(``).forEach(function(t,r){o=e.matches[i-1],e.matches.splice(i++,0,{fn:/[a-z]/i.test(n.staticDefinitionSymbol||t)?RegExp(`[`+(n.staticDefinitionSymbol||t)+`]`,c):null,static:!0,optionality:!1,newBlockMarker:o===void 0?`master`:o.def!==t&&o.static!==!0,casing:null,def:n.staticDefinitionSymbol||t,placeholder:n.staticDefinitionSymbol===void 0?typeof n.placeholder==`object`?n.placeholder[s.matches.length]:void 0:t,nativeDef:(u?`'`:``)+t})})),u=!1;else{let t=n.definitions&&n.definitions[r]||n.usePrototypeDefinitions&&a.default.prototype.definitions[r];t&&!u?(typeof t.validator==`string`&&/\\p\{.*}/i.test(t.validator)&&(c+=`u`),e.matches.splice(i++,0,{fn:t.validator?typeof t.validator==`string`?new RegExp(t.validator,c):new function(){this.test=t.validator}:/./,static:t.static||!1,optionality:t.optional||!1,defOptionality:t.optional||!1,newBlockMarker:o===void 0||t.optional?`master`:o.def!==(t.definitionSymbol||r),casing:t.casing,def:t.definitionSymbol||r,placeholder:t.placeholder,nativeDef:r,generated:t.generated})):(e.matches.splice(i++,0,{fn:/[a-z]/i.test(n.staticDefinitionSymbol||r)?RegExp(`[`+(n.staticDefinitionSymbol||r)+`]`,c):null,static:!0,optionality:!1,newBlockMarker:o===void 0?`master`:o.def!==r&&o.static!==!0,casing:null,def:n.staticDefinitionSymbol||r,placeholder:n.staticDefinitionSymbol===void 0?void 0:r,nativeDef:(u?`'`:``)+r}),u=!1)}}function y(e){e&&e.matches&&e.matches.forEach(function(r,i){let a=e.matches[i+1];(a===void 0||a.matches===void 0||a.isQuantifier===!1)&&r&&r.isGroup&&(r.isGroup=!1,t||(v(r,n.groupmarker[0],0),r.openGroup!==!0&&v(r,n.groupmarker[1]))),y(r)})}function b(){if(c.length>0){if(m=c[c.length-1],v(m,f),m.isAlternator){h=c.pop();for(let e=0;e<h.matches.length;e++)h.matches[e].isGroup&&(h.matches[e].isGroup=!1);c.length>0?(m=c[c.length-1],m.matches.push(h)):s.matches.push(h)}}else v(s,f)}function x(e){function t(e){return e===n.optionalmarker[0]?e=n.optionalmarker[1]:e===n.optionalmarker[1]?e=n.optionalmarker[0]:e===n.groupmarker[0]?e=n.groupmarker[1]:e===n.groupmarker[1]&&(e=n.groupmarker[0]),e}e.matches=e.matches.reverse();for(let n in e.matches)if(Object.prototype.hasOwnProperty.call(e.matches,n)){let r=parseInt(n);if(e.matches[n].isQuantifier&&e.matches[r+1]&&e.matches[r+1].isGroup){let t=e.matches[n];e.matches.splice(n,1),e.matches.splice(r+1,0,t)}e.matches[n].matches===void 0?e.matches[n]=t(e.matches[n]):e.matches[n]=x(e.matches[n])}return e}function S(e){let t=new o.default(!0);return t.openGroup=!1,t.matches=e,t}function C(){if(p=c.pop(),p.openGroup=!1,p!==void 0){if(c.length>0){if(m=c[c.length-1],m.matches.push(p),m.isAlternator){h=c.pop();for(let e=0;e<h.matches.length;e++)h.matches[e].isGroup=!1,h.matches[e].alternatorGroup=!1;c.length>0?(m=c[c.length-1],m.matches.push(h)):s.matches.push(h)}}else s.matches.push(p)}else b()}function w(e){let t=e.pop();return t.isQuantifier&&(t=S([e.pop(),t])),t}for(t&&(n.optionalmarker[0]=void 0,n.optionalmarker[1]=void 0);d=t?i.exec(e):r.exec(e);){if(f=d[0],t){switch(f.charAt(0)){case`?`:f=`{0,1}`;break;case`+`:case`*`:f=`{`+f+`}`;break;case`|`:if(c.length===0){let e=S(s.matches);e.openGroup=!0,c.push(e),s.matches=[],_=!0}}switch(f){case`\\d`:f=`[0-9]`;break;case`\\p`:f+=i.exec(e)[0],f+=i.exec(e)[0]}}if(u){b();continue}switch(f.charAt(0)){case`$`:case`^`:t||b();break;case n.escapeChar:u=!0,t&&b();break;case n.optionalmarker[1]:case n.groupmarker[1]:C();break;case n.optionalmarker[0]:c.push(new o.default(!1,!0));break;case n.groupmarker[0]:c.push(new o.default(!0));break;case n.quantifiermarker[0]:{let e=new o.default(!1,!1,!0);f=f.replace(/[{}?]/g,``);let t=f.split(`|`),n=t[0].split(`,`),r=isNaN(n[0])?n[0]:parseInt(n[0]),i=n.length===1?r:isNaN(n[1])?n[1]:parseInt(n[1]),a=isNaN(t[1])?t[1]:parseInt(t[1]);(r===`*`||r===`+`)&&(r=i===`*`?0:1),e.quantifier={min:r,max:i,jit:a};let l=c.length>0?c[c.length-1].matches:s.matches;d=l.pop(),d.isGroup||(d=S([d])),l.push(d),l.push(e)}break;case n.alternatormarker:if(c.length>0){m=c[c.length-1];let e=m.matches[m.matches.length-1];g=m.openGroup&&(e.matches===void 0||e.isGroup===!1&&e.isAlternator===!1)?c.pop():w(m.matches)}else g=w(s.matches);if(g.isAlternator)c.push(g);else if(g.alternatorGroup?(h=c.pop(),g.alternatorGroup=!1):h=new o.default(!1,!1,!1,!0),h.matches.push(g),c.push(h),g.openGroup){g.openGroup=!1;let e=new o.default(!0);e.alternatorGroup=!0,c.push(e)}break;default:b()}}for(_&&C();c.length>0;)p=c.pop(),s.matches.push(p);return s.matches.length>0&&(y(s),l.push(s)),(n.numericInput||n.isRTL)&&x(l[0]),l}}),(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegex=r;let n=RegExp(`(\\`+[`/`,`.`,`*`,`+`,`?`,`|`,`(`,`)`,`[`,`]`,`{`,`}`,`\\`,`$`,`^`].join(`|\\`)+`)`,`gim`);function r(e){return e.replace(n,`\\$1`)}}),(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(e,t,n,r){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=n||!1,this.isAlternator=r||!1,this.quantifier={min:1,max:1}}}),(function(e,t,n){var r=n(25),i=c(n(7)),a=n(19),o=n(20),s=n(22);n(28);function c(e){return e&&e.__esModule?e:{default:e}}let l=i.default.dependencyLib;class u{constructor(e,t,n,r){this.mask=e,this.format=t,this.opts=n,this.inputmask=r,this._date=new Date(1,0,1),this.initDateObject(e,this.opts,this.inputmask)}get date(){return this._date===void 0&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts,this.inputmask)),this._date}initDateObject(e,t,n){let r,i=-1;for(x(t).lastIndex=0;r=x(t).exec(this.format);)if(r.index>=i){let a=/\d+$/.exec(r[0]),o=a?r[0][0]+`x`:r[0],c;if(e!==void 0){if(a){let i=x(t).lastIndex,a=k.call(n,r.index,t,n&&n.maskset);x(t).lastIndex=i,c=e.slice(0,e.indexOf(a.nextMatch[0]))}else{let a=r[0][0],l=r.index;for(;n&&(t.placeholder[`${r.index}'${s.getTest.call(n,l).match.placeholder}`]||s.getTest.call(n,l).match.placeholder)===a;)l++;i=l;let u=l-r.index;c=e.slice(0,u||b(o)&&b(o)[4]||o.length)}e=e.slice(c.length)}Object.prototype.hasOwnProperty.call(m,o)&&this.setValue(this,c,o,b(o)[2],b(o)[1])}}setValue(e,t,n,r,i){if(t!==void 0)switch(r){case`ampm`:e[r]=t,e[`raw`+r]=t.replace(/\s/g,`_`);break;case`month`:if(n===`MMM`||n===`MMMM`){e[r]=E(n===`MMM`?p.monthNames.slice(0,12).findIndex(e=>t.toLowerCase()===e.toLowerCase())+1:p.monthNames.slice(12,24).findIndex(e=>t.toLowerCase()===e.toLowerCase())+1,2),e[r]=e[r]===`00`?``:e[r].toString(),e[`raw`+r]=e[r];break}default:e[r]=t.replace(/[^0-9]/g,`0`),e[`raw`+r]=t.replace(/\s/g,`_`)}if(i!==void 0){let t=e[r];(r===`day`&&parseInt(t)===29||r===`month`&&parseInt(t)===2)&&parseInt(e.day)===29&&parseInt(e.month)===2&&(e.year===``||e.year===void 0)&&e._date.setFullYear(2012,1,29),r===`day`&&(d=!0,parseInt(t)===0&&(t=1)),r===`month`&&(d=!0),r===`year`&&(d=!0,t.length<b(n)[4]&&(t=E(t,b(n)[4],!0))),(t!==``&&!isNaN(t)||r===`ampm`)&&i.call(e._date,t)}}reset(){this._date=new Date(1,0,1)}reInit(){this._date=void 0,this.date}}let d=!1,f=new Date().getFullYear(),p=i.default.prototype.i18n,m={d:[`[1-9]|[12][0-9]|3[01]`,Date.prototype.setDate,`day`,Date.prototype.getDate],dd:[`0[1-9]|[12][0-9]|3[01]`,Date.prototype.setDate,`day`,function(){return E(Date.prototype.getDate.call(this),2)}],ddd:[``],dddd:[``],M:[`[1-9]|1[012]`,function(e){let t=e?parseInt(e):0;return t>0&&t--,Date.prototype.setMonth.call(this,t)},`month`,function(){return Date.prototype.getMonth.call(this)+1}],MM:[`0[1-9]|1[012]`,function(e){let t=e?parseInt(e):0;return t>0&&t--,Date.prototype.setMonth.call(this,t)},`month`,function(){return E(Date.prototype.getMonth.call(this)+1,2)}],MMM:[p.monthNames.slice(0,12).join(`|`),function(e){let t=p.monthNames.slice(0,12).findIndex(t=>e.toLowerCase()===t.toLowerCase());return t!==-1&&Date.prototype.setMonth.call(this,t)},`month`,function(){return p.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],MMMM:[p.monthNames.slice(12,24).join(`|`),function(e){let t=p.monthNames.slice(12,24).findIndex(t=>e.toLowerCase()===t.toLowerCase());return t!==-1&&Date.prototype.setMonth.call(this,t)},`month`,function(){return p.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:[`[0-9]{2}`,function(e){let t=new Date().getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,`${t}${e}`)},`year`,function(){return E(Date.prototype.getFullYear.call(this),2)},2],yyyy:[`[0-9]{4}`,Date.prototype.setFullYear,`year`,function(){return E(Date.prototype.getFullYear.call(this),4)},4],h:[`[1-9]|1[0-2]`,Date.prototype.setHours,`hours`,Date.prototype.getHours],hh:[`0[1-9]|1[0-2]`,Date.prototype.setHours,`hours`,function(){return E(Date.prototype.getHours.call(this),2)}],hx:[function(e){return`[0-9]{${e}}`},Date.prototype.setHours,`hours`,function(e){return Date.prototype.getHours}],H:[`1?[0-9]|2[0-3]`,Date.prototype.setHours,`hours`,Date.prototype.getHours],HH:[`0[0-9]|1[0-9]|2[0-3]`,Date.prototype.setHours,`hours`,function(){return E(Date.prototype.getHours.call(this),2)}],Hx:[function(e){return`[0-9]{${e}}`},Date.prototype.setHours,`hours`,function(e){return function(){return E(Date.prototype.getHours.call(this),e)}}],m:[`[1-5]?[0-9]`,Date.prototype.setMinutes,`minutes`,Date.prototype.getMinutes],mm:[`0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]`,Date.prototype.setMinutes,`minutes`,function(){return E(Date.prototype.getMinutes.call(this),2)}],s:[`[1-5]?[0-9]`,Date.prototype.setSeconds,`seconds`,Date.prototype.getSeconds],ss:[`0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]`,Date.prototype.setSeconds,`seconds`,function(){return E(Date.prototype.getSeconds.call(this),2)}],l:[`[0-9]{3}`,Date.prototype.setMilliseconds,`milliseconds`,function(){return E(Date.prototype.getMilliseconds.call(this),3)},3],L:[`[0-9]{2}`,Date.prototype.setMilliseconds,`milliseconds`,function(){return E(Date.prototype.getMilliseconds.call(this),2)},2],t:[`[ap]`,_,`ampm`,v,1],tt:[`[ap]m`,_,`ampm`,v,2],T:[`[AP]`,_,`ampm`,v,1],TT:[`[AP]M`,_,`ampm`,v,2],Z:[`.*`,void 0,`Z`,y],o:[``],S:[``]},h={D:`d`,DD:`dd`,DDD:`ddd`,DDDD:`dddd`,mmm:`MMM`,mmmm:`MMMM`,YY:`yy`,YYYY:`yyyy`,sss:`L`},g={isoDate:`yyyy-MM-dd`,isoTime:`HH:mm:ss`,isoDateTime:`yyyy-MM-dd\\THH:mm:ss`,isoUtcDateTime:`UTC:yyyy-MM-dd\\THH:mm:ss\\Z`};function _(e){let t=this.getHours();e.toLowerCase().includes(`p`)?this.setHours(t+12):e.toLowerCase().includes(`a`)&&t>=12&&this.setHours(t-12)}function v(){let e=this.getHours();return e||=12,e>=12?`PM`:`AM`}function y(){let{1:e}=this.toString().match(/\((.+)\)/);return e.includes(` `)&&(e=e.replace(`-`,` `).toUpperCase(),e=e.split(` `).map(([e])=>e).join(``)),e}function b(e){let t=h[e]||e,n=/\d+$/.exec(t);if(n&&n[0]!==void 0){let e=m[t[0]+`x`].slice(``);return e[0]=e[0](n[0]),e[3]=e[3](n[0]),e}if(m[t])return m[t]}function x(e){if(!e.tokenizer){let t=[],n=[],r=Object.keys(m).concat(Object.keys(h));for(let e of r)if(/\.*x$/.test(e)){let t=e[0]+`\\d+`;n.indexOf(t)===-1&&n.push(t)}else t.indexOf(e[0])===-1&&t.push(e[0]);e.tokenizer=`(`+(n.length>0?n.join(`|`)+`|`:``)+t.join(`+|`)+`+)+?|.`,e.tokenizer=new RegExp(e.tokenizer,`g`)}return e.tokenizer}function S(e,t,n){if(e.year!==e.rawyear){let r=f.toString(),i=e.rawyear.replace(/[^0-9]/g,``),a=r.slice(0,i.length),o=r.slice(i.length);if(i.length===2&&i===a){let i=new Date(f,e.month-1,e.day);e.day==i.getDate()&&(!n.max||n.max.date.getTime()>=i.getTime())&&(e.date.setFullYear(f),e.year=r,t.insert=[{pos:t.pos+1,c:o[0]},{pos:t.pos+2,c:o[1]}])}}return t}function C(e,t,n){let r=this;if(!d)return!0;if(e.rawday===void 0||!isFinite(e.rawday)&&new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day||e.day==`29`&&(!isFinite(e.rawyear)||e.rawyear===void 0||e.rawyear===``)||new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day)return t;if(e.day==`29`){let e=k.call(r,t.pos,n,r.maskset);if(e.targetMatch&&[`yyyy`,`YYYY`].includes(e.targetMatch[0])&&t.pos-e.targetMatchIndex===2)return t.remove=t.pos+1,t}else if(e.date.getMonth()==2&&e.day==`30`&&t.c!==void 0)return e.day=`03`,e.date.setDate(3),e.date.setMonth(1),t.insert=[{pos:t.pos,c:`0`},{pos:t.pos+1,c:t.c}],t.caret=o.seekNext.call(this,t.pos+1),t;return!1}function w(e,t,n,r,i){if(!t)return t;if(t&&n.min&&!isNaN(n.min.date.getTime())){let i;for(e.reset(),x(n).lastIndex=0;i=x(n).exec(n.inputFormat);){var a;if((a=b(i[0]))&&a[3]){let t=a[1],o=e[a[2]],s=n.min[a[2]],c=n.max?n.max[a[2]]:s+1,l=[],u=!1;for(let t=0;t<s.length;t++)r.validPositions[t+i.index]===void 0&&!u?(t+i.index==0&&o[t]<s[t]?(l[t]=o[t],u=!0):l[t]=s[t],a[2]===`year`&&o.length-1==t&&s!=c&&(l=(parseInt(l.join(``))+1).toString().split(``)),a[2]===`ampm`&&s!=c&&n.min.date.getTime()>e.date.getTime()&&(l[t]=c[t])):(l[t]=o[t],u||=o[t]>s[t]);t.call(e._date,l.join(``))}}t=n.min.date.getTime()<=e.date.getTime(),e.reInit()}return t&&n.max&&(isNaN(n.max.date.getTime())||(t=n.max.date.getTime()>=e.date.getTime())),t}function T(e,t,n){let i=``,a,o,s=0,c=!1,l={};for(x(n).lastIndex=0;a=x(n).exec(e);)if(a[0]===n.escapeChar)c=!0;else{if(t===void 0){if(!c&&(o=b(a[0])))i+=`(`+o[0]+`)`,n.placeholder&&n.placeholder!==``?(l[s]=n.placeholder[a.index%n.placeholder.length],l[`${a.index}'${n.placeholder[a.index%n.placeholder.length]}`]=a[0].charAt(0)):l[s]=a[0].charAt(0);else switch(a[0]){case`[`:i+=`(`;break;case`]`:i+=`)?`;break;default:i+=(0,r.escapeRegex)(a[0]),l[s]=a[0].charAt(0)}}else if(!c&&(o=b(a[0]))){if(o[3]){let e=o[3];i+=e.call(t.date)}else o[2]&&t[`raw`+o[2]]!==void 0?i+=t[`raw`+o[2]]:i+=a[0]}else i+=a[0];s++,c=!1}return t===void 0&&(n.placeholder=l),i}function E(e,t,n){for(e=String(e),t||=2;e.length<t;)e=n?e+`0`:`0`+e;return e}function D(e,t,n){let r=this;if(typeof e==`string`)return new u(e,t,n,r);if(e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`date`))return e}function O(e,t){return T(t.inputFormat,{date:e},t)}function k(e,t,n){let r=this,i=0,a,o,c=0;for(x(t).lastIndex=0;o=x(t).exec(t.inputFormat);){let l=/\d+$/.exec(o[0]);if(l)c=parseInt(l[0]);else{let e=o[0][0],n=i;for(;r&&(t.placeholder[`${o.index}'${s.getTest.call(r,n).match.placeholder}`]||s.getTest.call(r,n).match.placeholder)===e;)n++;c=n-i,c===0&&(c=o[0].length)}if(i+=c,i>=e+1){let r=``;if(n&&n.tests[e]){let a=Object.keys(t.placeholder).filter(t=>{for(let r=o.index-1;r<i;r++)if(t===`${r}'${n.tests[e][0].match.placeholder}`)return!0;return!1});r=a.length>0?t.placeholder[a[0]]:n.tests[e][0].match.placeholder}if(o[0].indexOf(r)!==-1){a=o,o=x(t).exec(t.inputFormat);break}}}return{targetMatchIndex:i-c,nextMatch:o,targetMatch:a}}i.default.extendAliases({datetime:{mask:function(e){if(e.numericInput=!1,m.S=p.ordinalSuffix.join(`|`),e.inputFormat=g[e.inputFormat]||e.inputFormat,e.repeat&&(e.repeat=parseInt(e.repeat.toString()),e.repeat>0)){let t=``;for(let n=0;n<e.repeat;n++)t+=e.inputFormat;e.inputFormat=t,e.repeat=0}return e.displayFormat=g[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=g[e.outputFormat]||e.outputFormat||e.inputFormat,e.regex=T(e.inputFormat,void 0,e),e.min=D(e.min,e.inputFormat,e),e.max=D(e.max,e.inputFormat,e),null},placeholder:``,inputFormat:`isoDateTime`,displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:``,preValidation:function(e,t,n,r,i,a,o,s){let c=this;if(s)return!0;if(isNaN(n)&&e[t]!==n){let r=k.call(c,t,i,a);if(r.nextMatch&&r.nextMatch[0]===n&&r.targetMatch[0].length>1){let n=b(r.targetMatch[0])[0];if(new RegExp(n).test(`0`+e[t-1]))return e[t]=e[t-1],e[t-1]=`0`,{fuzzy:!0,buffer:e,refreshFromBuffer:{start:t-1,end:t+1},pos:t+1}}}return!0},postValidation:function(e,t,n,r,i,a,o,c){let l=this;if(o)return!0;let u,d;if(r===!1&&(u=k.call(l,t+1,i,a),u.targetMatch&&u.targetMatchIndex===t&&u.targetMatch[0].length>1&&b(u.targetMatch[0])!==void 0?d=b(u.targetMatch[0])[0]:(u=k.call(l,t+2,i,a),u.targetMatch&&u.targetMatchIndex===t+1&&u.targetMatch[0].length>1&&b(u.targetMatch[0])!==void 0&&(d=b(u.targetMatch[0]))),d!==void 0&&(t=u.targetMatchIndex,a.validPositions[t+1]!==void 0&&new RegExp(d).test(n+`0`)?(e[t]=n,e[t+1]=`0`,r={pos:t+2,caret:t+1}):new RegExp(d).test(`0`+n)&&(e[t]=`0`,e[t+1]=n,r={pos:t+2})),r===!1))return r;if(r.fuzzy&&(e=r.buffer,t=r.pos),u=k.call(l,t,i,a),u.targetMatch&&u.targetMatch[0]&&b(u.targetMatch[0])!==void 0){let n=b(u.targetMatch[0]);d=n[0];let r=e.slice(u.targetMatchIndex,u.targetMatchIndex+u.targetMatch[0].length);if(new RegExp(d).test(r.join(``))===!1&&u.targetMatch[0].length===2&&a.validPositions[u.targetMatchIndex]&&a.validPositions[u.targetMatchIndex+1]&&(a.validPositions[u.targetMatchIndex+1].input=`0`),n[2]==`year`){let n=s.getMaskTemplate.call(l,!1,1,void 0,!0);for(let r=t+1;r<e.length;r++)e[r]=n[r],a.validPositions.splice(t+1,1)}}let f=r,p=D.call(l,e.join(``),i.inputFormat,i);return f&&!isNaN(p.date.getTime())&&(i.prefillYear&&(f=S(p,f,i)),f=C.call(l,p,f,i),f=w(p,f,i,a,c)),t!==void 0&&f&&r.pos!==t?{buffer:T(i.inputFormat,p,i).split(``),refreshFromBuffer:{start:t,end:r.pos},pos:r.caret===void 0?r.pos:r.caret}:f},onKeyDown:function(e,t,n,r){let i=this;e.ctrlKey&&e.key===a.keys.ArrowRight&&(i.inputmask._valueSet(O(new Date,r)),l(i).trigger(`setvalue`))},onUnMask:function(e,t,n){let r=this;return t&&T(n.outputFormat,D.call(r,e,n.inputFormat,n),n)},casing:`follow`,onBeforeMask:function(e,t){return Object.prototype.toString.call(e)===`[object Date]`&&(e=O(e,t)),e},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:`numeric`,prefillYear:!0}})}),(function(e,t,n){var r=i(n(7));function i(e){return e&&e.__esModule?e:{default:e}}r.default.dependencyLib.extend(!0,r.default.prototype.i18n,{dayNames:[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],monthNames:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`,`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],ordinalSuffix:[`st`,`nd`,`rd`,`th`]})}),(function(e,t,n){var r=n(25),i=s(n(7)),a=n(19),o=n(20);function s(e){return e&&e.__esModule?e:{default:e}}let c=i.default.dependencyLib;function l(e,t){let n=``;for(let r=0;r<e.length;r++)i.default.prototype.definitions[e.charAt(r)]||t.definitions[e.charAt(r)]||t.optionalmarker[0]===e.charAt(r)||t.optionalmarker[1]===e.charAt(r)||t.quantifiermarker[0]===e.charAt(r)||t.quantifiermarker[1]===e.charAt(r)||t.groupmarker[0]===e.charAt(r)||t.groupmarker[1]===e.charAt(r)||t.alternatormarker===e.charAt(r)?n+=`\\`+e.charAt(r):n+=e.charAt(r);return n}function u(e,t,n,r){if(e.length>0&&t>0&&(!n.digitsOptional||r)){var i=e.indexOf(n.radixPoint),a=!1;n.negationSymbol.back===e[e.length-1]&&(a=!0,e.length--),i===-1&&(e.push(n.radixPoint),i=e.length-1);for(let n=1;n<=t;n++)isFinite(e[i+n])||(e[i+n]=`0`)}return a&&e.push(n.negationSymbol.back),e}function d(e,t){let n=0;e===`+`&&(n=o.seekNext.call(this,t.validPositions.length-1));for(let r in t.tests)if(r=parseInt(r),r>=n){for(let n=0,i=t.tests[r].length;n<i;n++)if((t.validPositions[r]===void 0||e===`-`)&&t.tests[r][n].match.def===e)return r+ +(t.validPositions[r]!==void 0&&e!==`-`)}return n}function f(e,t){let n=-1;for(let r=0,i=t.validPositions.length;r<i;r++){let i=t.validPositions[r];if(i&&i.match.def===e){n=r;break}}return n}function p(e){e.parseMinMaxOptions===void 0&&(e.min!==null&&(e.min=e.min.toString().replace(new RegExp((0,r.escapeRegex)(e.groupSeparator),`g`),``),e.radixPoint===`,`&&(e.min=e.min.replace(e.radixPoint,`.`)),e.min=isFinite(e.min)?parseFloat(e.min):NaN,isNaN(e.min)&&(e.min=Number.MIN_VALUE)),e.max!==null&&(e.max=e.max.toString().replace(new RegExp((0,r.escapeRegex)(e.groupSeparator),`g`),``),e.radixPoint===`,`&&(e.max=e.max.replace(e.radixPoint,`.`)),e.max=isFinite(e.max)?parseFloat(e.max):NaN,isNaN(e.max)&&(e.max=Number.MAX_VALUE)),e.parseMinMaxOptions=`done`)}function m(e){e.repeat=0,e.groupSeparator===e.radixPoint&&e.digits&&e.digits!==`0`&&(e.groupSeparator=e.radixPoint===`.`?`,`:e.radixPoint===`,`?`.`:``),e.groupSeparator===` `&&(e.skipOptionalPartCharacter=void 0),e.placeholder.length>1&&(e.placeholder=e.placeholder.charAt(0)),e.positionCaretOnClick===`radixFocus`&&e.placeholder===``&&(e.positionCaretOnClick=`lvp`);let t=`0`,n=e.radixPoint;e.numericInput===!0&&e.__financeInput===void 0?(t=`1`,e.positionCaretOnClick=e.positionCaretOnClick===`radixFocus`?`lvp`:e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=e.digits.indexOf(`,`)===-1?2:e.digits.split(`,`)[0]),e._radixDance=!1,n=e.radixPoint===`,`?`?`:`!`,e.radixPoint!==``&&e.definitions[n]===void 0&&(e.definitions[n]={},e.definitions[n].validator=`[`+e.radixPoint+`]`,e.definitions[n].placeholder=e.radixPoint,e.definitions[n].static=!0,e.definitions[n].generated=!0)):(e.__financeInput=!1,e.numericInput=!0);let r=`[+]`,i;if(r+=l(e.prefix,e),e.groupSeparator===``?r+=`9{+}`:(e.definitions[e.groupSeparator]===void 0&&(e.definitions[e.groupSeparator]={},e.definitions[e.groupSeparator].validator=`[`+e.groupSeparator+`]`,e.definitions[e.groupSeparator].placeholder=e.groupSeparator,e.definitions[e.groupSeparator].static=!0,e.definitions[e.groupSeparator].generated=!0),r+=e._mask(e)),e.digits!==void 0&&e.digits!==0){let a=e.digits.toString().split(`,`);isFinite(a[0])&&a[1]&&isFinite(a[1])?r+=n+t+`{`+e.digits+`}`:(isNaN(e.digits)||parseInt(e.digits)>0)&&(e.digitsOptional||e.jitMasking?(i=r+n+t+`{0,`+e.digits+`}`,e.keepStatic=!0):r+=n+t+`{`+e.digits+`}`)}else e.inputmode=`numeric`;return r+=l(e.suffix,e),r+=`[-]`,i&&(r=[i+l(e.suffix,e)+`[-]`,r]),e.greedy=!1,p(e),e.radixPoint!==``&&e.substituteRadixPoint&&(e.substitutes[e.radixPoint==`.`?`,`:`.`]=e.radixPoint),r}function h(e,t,n,r,i){return i._radixDance&&i.numericInput&&t!==i.negationSymbol.back&&e<=n&&(n>0||t==i.radixPoint)&&(r.validPositions[e-1]===void 0||r.validPositions[e-1].input!==i.negationSymbol.back)&&--e,e}function g(e,t,n,r,i){let a=t.buffer?t.buffer.indexOf(i.radixPoint):-1,o=(a!==-1||r&&i.jitMasking)&&new RegExp(i.definitions[9].validator).test(e);return!r&&i._radixDance&&a!==-1&&o&&t.validPositions[a]==null?{insert:{pos:a===n?a+1:a,c:i.radixPoint},pos:n}:o}function _(e,t){let n=RegExp(`(^`+(t.negationSymbol.front===``?``:(0,r.escapeRegex)(t.negationSymbol.front)+`?`)+(0,r.escapeRegex)(t.prefix)+`)(.*)(`+(0,r.escapeRegex)(t.suffix)+(t.negationSymbol.back==``?``:(0,r.escapeRegex)(t.negationSymbol.back)+`?`)+`$)`).exec(e.slice().reverse().join(``)),i=n?n[2]:``,a=!1;return i&&(i=i.split(t.radixPoint.charAt(0))[0],a=RegExp(`^[0`+t.groupSeparator+`]*`).exec(i)),a&&(a[0].length>1||a[0].length>0&&a[0].length<i.length)?a:!1}i.default.extendAliases({numeric:{mask:m,_mask:function(e){return`(`+e.groupSeparator+`999){+|1}`},digits:`*`,digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:`.`,positionCaretOnClick:`radixFocus`,_radixDance:!0,groupSeparator:``,allowMinus:!0,negationSymbol:{front:`-`,back:``},prefix:``,suffix:``,min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:`text`,unmaskAsNumber:!1,roundingFN:Math.round,inputmode:`decimal`,shortcuts:{k:`1000`,m:`1000000`},placeholder:`0`,greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:``,usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:g},1:{validator:g,definitionSymbol:`9`},9:{validator:`[0-90-9٠-٩۰-۹]`,definitionSymbol:`*`},"+":{validator:function(e,t,n,r,i){return i.allowMinus&&(e===`-`||e===i.negationSymbol.front)}},"-":{validator:function(e,t,n,r,i){return i.allowMinus&&e===i.negationSymbol.back}}},preValidation:function(e,t,n,r,i,a,o,s){let c=this;if(i.__financeInput!==!1&&n===i.radixPoint)return!1;let l=e.indexOf(i.radixPoint),u=t;if(t=h(t,n,l,a,i),n===`-`||n===i.negationSymbol.front){if(i.allowMinus!==!0)return!1;let e=!1,t=f(`+`,a),n=f(`-`,a);return t!==-1&&(e=[t],n!==-1&&e.push(n)),e===!1?{insert:[{pos:d.call(c,`+`,a),c:i.negationSymbol.front,fromIsValid:!0},{pos:d.call(c,`-`,a),c:i.negationSymbol.back,fromIsValid:void 0}],caret:u+i.negationSymbol.back.length}:{remove:e,caret:u-i.negationSymbol.back.length}}if(n===i.groupSeparator)return{caret:u};if(s)return!0;if(l!==-1&&i._radixDance===!0&&r===!1&&n===i.radixPoint&&i.digits!==void 0&&(isNaN(i.digits)||parseInt(i.digits)>0)&&l!==t){let e=d.call(c,i.radixPoint,a);return a.validPositions[e]&&(a.validPositions[e].generatedInput=a.validPositions[e].generated||!1),{caret:i._radixDance&&t===l-1?l+1:l}}if(i.__financeInput===!1){if(r){if(i.digitsOptional)return{rewritePosition:o.end};if(!i.digitsOptional){if(o.begin>l&&o.end<=l)return n===i.radixPoint?{insert:{pos:l+1,c:`0`,fromIsValid:!0},rewritePosition:l}:{rewritePosition:l+1};if(o.begin<l)return{rewritePosition:o.begin-1}}}else{if(!i.showMaskOnHover&&!i.showMaskOnFocus&&!i.digitsOptional&&i.digits>0&&this.__valueGet.call(this.el)===``)return{rewritePosition:l};if(t>=e.length-i.prefix.length&&i.radixPoint!==``){let e=new RegExp(i.definitions[9].validator);if(!a.validPositions.some(t=>t&&!t.generatedInput&&e.test(t.input)))return{rewritePosition:l===-1?0:l}}}}return{rewritePosition:t}},postValidation:function(e,t,n,r,i,a,o,s,l){if(r===!1)return r;if(o)return!0;if(i.min!==null||i.max!==null){let t=i.onUnMask(e.slice().reverse().join(``),void 0,c.extend({},i,{unmaskAsNumber:!0}));if(i.min!==null&&t<i.min&&l!==!0&&(t.toString().length>i.min.toString().length||e[0]===i.radixPoint||t<0))return!1;if(i.max!==null&&i.max>=0&&t>i.max)return i.SetMaxOnOverflow?{refreshFromBuffer:!0,buffer:u(i.max.toString().replace(`.`,i.radixPoint).split(``),i.digits,i).reverse()}:!1}return r},onUnMask:function(e,t,n){if(t===``&&n.nullable===!0)return t;let i=e.replace(n.prefix,``);return i=i.replace(n.suffix,``),i=i.replace(new RegExp((0,r.escapeRegex)(n.groupSeparator),`g`),``),n.placeholder.charAt(0)!==``&&(i=i.replace(new RegExp(n.placeholder.charAt(0),`g`),`0`)),n.unmaskAsNumber?(n.radixPoint!==``&&i.indexOf(n.radixPoint)!==-1&&(i=i.replace(r.escapeRegex.call(this,n.radixPoint),`.`)),i=i.replace(RegExp(`^`+(0,r.escapeRegex)(n.negationSymbol.front)),`-`),i=i.replace(RegExp((0,r.escapeRegex)(n.negationSymbol.back)+`$`),``),Number(i)):i},isComplete:function(e,t){let n=(t.numericInput?e.slice().reverse():e).join(``);return n=n.replace(RegExp(`^`+(0,r.escapeRegex)(t.negationSymbol.front)),`-`),n=n.replace(RegExp((0,r.escapeRegex)(t.negationSymbol.back)+`$`),``),n=n.replace(t.prefix,``),n=n.replace(t.suffix,``),n=n.replace(RegExp((0,r.escapeRegex)(t.groupSeparator)+`([0-9]{3})`,`g`),`$1`),t.radixPoint===`,`&&(n=n.replace((0,r.escapeRegex)(t.radixPoint),`.`)),isFinite(n)},onBeforeMask:function(e,t){e??=``;let n=t.radixPoint||`,`;isFinite(t.digits)&&(t.digits=parseInt(t.digits)),(typeof e==`number`||t.inputType===`number`)&&n!==``&&(e=e.toString().replace(`.`,n));let i=e.charAt(0)===`-`||e.charAt(0)===t.negationSymbol.front,a=e.split(n),o=a[0].replace(/[^\-0-9]/g,``),s=a.length>1?a[1].replace(/[^0-9]/g,``):``,c=a.length>1;e=o+(s===``?s:n+s);let l=0;if(n!==``&&(l=t.digitsOptional?t.digits<s.length?t.digits:s.length:t.digits,s!==``||!t.digitsOptional)){let i=10**(l||1);e=e.replace((0,r.escapeRegex)(n),`.`),isNaN(parseFloat(e))||(e=(t.roundingFN(parseFloat(e)*i)/i).toFixed(l)),e=e.toString().replace(`.`,n)}if(t.digits===0&&e.indexOf(n)!==-1&&(e=e.substring(0,e.indexOf(n))),e!==``&&(t.min!==null||t.max!==null)){let r=e.toString().replace(n,`.`);t.min!==null&&r<t.min?e=t.min.toString().replace(`.`,n):t.max!==null&&r>t.max&&(e=t.max.toString().replace(`.`,n))}return i&&e.charAt(0)!==`-`&&(e=`-`+e),u(e.toString().split(``),l,t,c).join(``)},onBeforeWrite:function(e,t,n,i){function a(e,t){if(i.__financeInput!==!1||t){var n=e.indexOf(i.radixPoint);n!==-1&&e.splice(n,1)}if(i.groupSeparator!==``)for(;(n=e.indexOf(i.groupSeparator))!==-1;)e.splice(n,1);return e}let o,s;if(i.stripLeadingZeroes&&(s=_(t,i))){let e=t.join(``).lastIndexOf(s[0].split(``).reverse().join(``))-(s[0]==s.input?0:1),n=+(s[0]==s.input);for(let r=s[0].length-n;r>0;r--)this.maskset.validPositions.splice(e+r,1),delete t[e+r]}if(e)switch(e.type){case`blur`:case`checkval`:if(i.min!==null||i.max!==null){let e=i.onUnMask(t.slice().reverse().join(``),void 0,c.extend({},i,{unmaskAsNumber:!0}));if(i.min!==null&&e<i.min&&t.join()!==``)return{refreshFromBuffer:!0,buffer:u(i.min.toString().replace(`.`,i.radixPoint).split(``),i.digits,i).reverse()};if(i.max!==null&&e>i.max)return{refreshFromBuffer:!0,buffer:u(i.max.toString().replace(`.`,i.radixPoint).split(``),i.digits,i).reverse()}}if(t[t.length-1]===i.negationSymbol.front){let e=RegExp(`(^`+(i.negationSymbol.front==``?``:(0,r.escapeRegex)(i.negationSymbol.front)+`?`)+(0,r.escapeRegex)(i.prefix)+`)(.*)(`+(0,r.escapeRegex)(i.suffix)+(i.negationSymbol.back==``?``:(0,r.escapeRegex)(i.negationSymbol.back)+`?`)+`$)`).exec(a(t.slice(),!0).reverse().join(``));(e?e[2]:``)==0&&(o={refreshFromBuffer:!0,buffer:[0]})}else i.radixPoint!==``&&t.indexOf(i.radixPoint)===i.suffix.length&&(o&&o.buffer?o.buffer.splice(0,1+i.suffix.length):(t.splice(0,1+i.suffix.length),o={refreshFromBuffer:!0,buffer:a(t)}));if(i.enforceDigitsOnBlur){o||={};let e=(o&&o.buffer||t).slice().reverse();o.refreshFromBuffer=!0,o.buffer=u(e,i.digits,i,!0).reverse()}}return o},onKeyDown:function(e,t,n,r){let i=c(this),o;if(e.location!=3){let t,n=e.key;if((t=r.shortcuts&&r.shortcuts[n])&&t.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(t)),i.trigger(`setvalue`),!1}if(e.ctrlKey)switch(e.key){case a.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(r.step)),i.trigger(`setvalue`),!1;case a.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(r.step)),i.trigger(`setvalue`),!1}if(!e.shiftKey&&(e.key===a.keys.Delete||e.key===a.keys.Backspace||e.key===a.keys.BACKSPACE_SAFARI)&&n.begin!==t.length){if(t[e.key===a.keys.Delete?n.begin-1:n.end]===r.negationSymbol.front)return o=t.slice().reverse(),r.negationSymbol.front!==``&&o.shift(),r.negationSymbol.back!==``&&o.pop(),i.trigger(`setvalue`,[o.join(``),n.begin]),!1;if(r._radixDance===!0){let s=t.indexOf(r.radixPoint);if(!r.digitsOptional){if(s!==-1&&(n.begin<s||n.end<s||e.key===a.keys.Delete&&(n.begin===s||n.begin-1===s))){let l;return n.begin===n.end&&(e.key===a.keys.Backspace||e.key===a.keys.BACKSPACE_SAFARI?n.begin++:e.key===a.keys.Delete&&n.begin-1===s&&(l=c.extend({},n),n.begin--,n.end--)),o=t.slice().reverse(),o.splice(o.length-n.begin,n.begin-n.end||1),(e.key===a.keys.Backspace||e.key===a.keys.BACKSPACE_SAFARI)&&o.splice(o.length-n.end+1,0,`0`),o=u(o,r.digits,r).join(``),l&&(n=l),i.trigger(`setvalue`,[o,n.begin>=o.length?s+1:n.begin]),!1}}else if(s===0)return o=t.slice().reverse(),o.pop(),i.trigger(`setvalue`,[o.join(``),n.begin>=o.length?o.length:n.begin]),!1}}}},currency:{prefix:``,groupSeparator:`,`,alias:`numeric`,digits:2,digitsOptional:!1},decimal:{alias:`numeric`},integer:{alias:`numeric`,inputmode:`numeric`,digits:0},percentage:{alias:`numeric`,min:0,max:100,suffix:` %`,digits:0,allowMinus:!1},indianns:{alias:`numeric`,_mask:function(e){return`(`+e.groupSeparator+`99){*|1}(`+e.groupSeparator+`999){1|1}`},groupSeparator:`,`,radixPoint:`.`,placeholder:`0`,digits:2,digitsOptional:!1}})}),(function(e,t,n){var r=a(n(11)),i=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}let o=r.default.document;if(o&&o.head&&o.head.attachShadow&&r.default.customElements&&r.default.customElements.get(`input-mask`)===void 0){class e extends HTMLElement{constructor(){super();let e=this.getAttributeNames(),t=this.attachShadow({mode:`closed`});this.input=o.createElement(`input`),this.input.type=`text`,t.appendChild(this.input);for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.input.setAttribute(e[t],this.getAttribute(e[t]));let n=new i.default;n.dataAttribute=``,n.mask(this.input)}attributeChangedCallback(e,t,n){this.input.setAttribute(e,n)}get value(){return this.input.value}set value(e){this.input.value=e}}r.default.customElements.define(`input-mask`,e)}})],t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}var r={};return(function(){var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(1),n(2),n(3),n(4),n(5),n(6),n(27),n(29),n(30);var t=i(n(7));function i(e){return e&&e.__esModule?e:{default:e}}e.default=t.default})(),r})()})}))(),1),zt=Rt.default.default||Rt.default,Y=class extends U{static{this.formAssociated=!0}static{this.Inputmask=zt}constructor(){super(),this.name=``,this.label=``,this.variant=`filled`,this.size=`medium`,this.shape=`no-round`,this.type=`text`,this.icon=``,this.trailingIcon=``,this.prefix=``,this.suffix=``,this.suffixButtonIcon=``,this.suffixButtonLabel=`Acción del campo`,this._hasSuffixSlot=!1,this.helper=``,this.errorText=``,this.error=!1,this.loading=!1,this.disabled=!1,this.value=``,this.placeholder=``,this.required=!1,this.readonly=!1,this.autocomplete=``,this.inputmode=``,this.maxlength=null,this.minlength=null,this.min=``,this.max=``,this.step=``,this.pattern=``,this.mask=``,this.maskAlias=``,this.maskOptions={},this._internals=this.attachInternals()}get unmaskedValue(){return this._maskInstance?.unmaskedvalue()??this.value}get inputmaskInstance(){return this._maskInstance}maskOption(e,t=!1){if(this._maskInstance)return typeof e==`string`?this._maskInstance.option(e):this._maskInstance.option(e,t)}getEmptyMask(){return this._maskInstance?.getemptymask()??``}hasMaskedValue(){return this._maskInstance?.hasMaskedValue()??!1}isMaskComplete(){return this._maskInstance?.isComplete()??!0}isMaskValid(e){return this._maskInstance?.isValid(e)??!0}getMaskMetadata(){return this._maskInstance?.getmetadata()}formatWithMask(e,t=!1){return this._maskInstance?.format(e,t)??e}setMaskedValue(e){if(!this._maskInstance){this.value=e;return}this._maskInstance.setValue(e),this.value=this._input.value,this._internals?.setFormValue?.(this.value)}removeMask(){this._maskInstance?.remove(),this._maskInstance=void 0}_configureMask(){if(this._maskInstance?.remove(),this._maskInstance=void 0,!this._input||!this.mask&&!this.maskAlias)return;let e={placeholder:``,...this.maskOptions,...this.mask?{mask:this.mask}:{},definitions:{...this.maskOptions.definitions??{},K:{validator:`[0-9Kk]`,casing:`upper`}}},t=this.maskAlias?new zt(this.maskAlias,e):new zt(e);this._maskInstance=t.mask(this._input)}updated(e){this._input&&((e.has(`mask`)||e.has(`maskAlias`)||e.has(`maskOptions`))&&this._configureMask(),e.has(`value`)&&(this._input.value=this.value,this._maskInstance&&this.value!==this._input.value&&(this.value=this._input.value),this._internals?.setFormValue?.(this.value)),e.has(`disabled`)&&(this._input.disabled=this.disabled)),this._syncValidity()}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}_syncValidity(){!this._input||!this._internals?.setValidity||this._internals.setValidity(this._input.validity,this._input.validationMessage,this._input)}_handleInput(e){let t=e.target;this.value=t.value,this._syncValidity(),Ye(this,`moni-input`,{detail:{value:this.value,unmaskedValue:this.unmaskedValue,originalEvent:e}})}_handleChange(e){let t=e.target;this.value=t.value,Ye(this,`moni-change`,{detail:{value:this.value,unmaskedValue:this.unmaskedValue,originalEvent:e}})}disconnectedCallback(){this._maskInstance?.remove(),this._maskInstance=void 0,super.disconnectedCallback()}_handleSuffixClick(e){this.disabled||this.dispatchEvent(new CustomEvent(`suffix-click`,{detail:{originalEvent:e},bubbles:!0,composed:!0}))}_handleSuffixSlotChange(e){let t=e.currentTarget;this._hasSuffixSlot=t.assignedElements({flatten:!0}).length>0}static{this.styles=[W,Ke,g`
|
|
5513
5518
|
.suffix-action {
|
|
5514
5519
|
position: absolute;
|
|
5515
5520
|
inset-inline-end: .5rem;
|
|
@@ -5542,18 +5547,18 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
5542
5547
|
::slotted([slot='suffix']) { pointer-events: auto; }
|
|
5543
5548
|
.field.suffix-action-field > input { padding-inline-end: 3.5rem; }
|
|
5544
5549
|
.field.suffix-action-field > input:focus { padding-inline-end: 3.4375rem; }
|
|
5545
|
-
`]}render(){let e=!!this.icon||!!this.prefix,t=!!this.trailingIcon||!!this.suffix||!!this.suffixButtonIcon||this._hasSuffixSlot,n=!!this.value||!!this.placeholder,r={field:!0,label:!!this.label,fill:this.variant===`filled`,border:this.variant===`outlined`,small:this.size===`small`,large:this.size===`large`,extra:this.size===`extra`,prefix:e,suffix:t,"suffix-action-field":!!this.suffixButtonIcon||this._hasSuffixSlot,invalid:this.error,round:this.shape===`round`&&this.variant!==`underlined`,square:this.shape===`no-round`},i=this.placeholder||(this.label?` `:``),a=this.icon?
|
|
5550
|
+
`]}render(){let e=!!this.icon||!!this.prefix,t=!!this.trailingIcon||!!this.suffix||!!this.suffixButtonIcon||this._hasSuffixSlot,n=!!this.value||!!this.placeholder,r={field:!0,label:!!this.label,fill:this.variant===`filled`,border:this.variant===`outlined`,small:this.size===`small`,large:this.size===`large`,extra:this.size===`extra`,prefix:e,suffix:t,"suffix-action-field":!!this.suffixButtonIcon||this._hasSuffixSlot,invalid:this.error,round:this.shape===`round`&&this.variant!==`underlined`,square:this.shape===`no-round`},i=this.placeholder||(this.label?` `:``),a=this.icon?L`<i class="leading-icon" part="leading-icon"
|
|
5546
5551
|
><moni-icon name="${this.icon}"></moni-icon
|
|
5547
|
-
></i>`:this.prefix?
|
|
5552
|
+
></i>`:this.prefix?L`<span class="leading-icon" part="prefix"
|
|
5548
5553
|
>${this.prefix}</span
|
|
5549
|
-
>`:
|
|
5554
|
+
>`:R,o=this.loading?L`<i class="trailing-icon" part="trailing-icon"
|
|
5550
5555
|
><moni-progress
|
|
5551
5556
|
variant="circular"
|
|
5552
5557
|
indeterminate
|
|
5553
5558
|
size="small"
|
|
5554
5559
|
style="inline-size: 1.25rem; block-size: 1.25rem; color: currentColor;"
|
|
5555
5560
|
></moni-progress
|
|
5556
|
-
></i>`:this.suffixButtonIcon?
|
|
5561
|
+
></i>`:this.suffixButtonIcon?L`<span class="suffix-action" part="suffix-action">
|
|
5557
5562
|
<button
|
|
5558
5563
|
type="button"
|
|
5559
5564
|
class="suffix-button"
|
|
@@ -5562,11 +5567,11 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
5562
5567
|
?disabled=${this.disabled}
|
|
5563
5568
|
@click=${this._handleSuffixClick}
|
|
5564
5569
|
><moni-icon name=${this.suffixButtonIcon}></moni-icon></button>
|
|
5565
|
-
</span>`:this.trailingIcon?
|
|
5570
|
+
</span>`:this.trailingIcon?L`<i class="trailing-icon" part="trailing-icon"
|
|
5566
5571
|
><moni-icon name="${this.trailingIcon}"></moni-icon
|
|
5567
|
-
></i>`:this.suffix?
|
|
5572
|
+
></i>`:this.suffix?L`<span class="trailing-icon" part="suffix"
|
|
5568
5573
|
>${this.suffix}</span
|
|
5569
|
-
>`:
|
|
5574
|
+
>`:R;return L`<div class=${ft(r)} part="field">
|
|
5570
5575
|
${a}
|
|
5571
5576
|
<input
|
|
5572
5577
|
id="input"
|
|
@@ -5574,26 +5579,36 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
5574
5579
|
type=${this.type}
|
|
5575
5580
|
placeholder=${i}
|
|
5576
5581
|
?disabled=${this.disabled}
|
|
5582
|
+
?required=${this.required}
|
|
5583
|
+
?readonly=${this.readonly}
|
|
5584
|
+
autocomplete=${K(this.autocomplete||void 0)}
|
|
5585
|
+
inputmode=${K(this.inputmode||void 0)}
|
|
5586
|
+
maxlength=${K(this.maxlength??void 0)}
|
|
5587
|
+
minlength=${K(this.minlength??void 0)}
|
|
5588
|
+
min=${K(this.min||void 0)}
|
|
5589
|
+
max=${K(this.max||void 0)}
|
|
5590
|
+
step=${K(this.step||void 0)}
|
|
5591
|
+
pattern=${K(this.pattern||void 0)}
|
|
5577
5592
|
.value=${this.value}
|
|
5578
|
-
name=${
|
|
5593
|
+
name=${K(this.name||void 0)}
|
|
5579
5594
|
class=${n?`active`:``}
|
|
5580
5595
|
@input=${this._handleInput}
|
|
5581
5596
|
@change=${this._handleChange}
|
|
5582
5597
|
/>
|
|
5583
|
-
${this.label?
|
|
5598
|
+
${this.label?L`<label
|
|
5584
5599
|
for="input"
|
|
5585
5600
|
part="label"
|
|
5586
5601
|
class=${ft({active:n})}
|
|
5587
5602
|
>${this.label}</label
|
|
5588
|
-
>`:
|
|
5603
|
+
>`:R}
|
|
5589
5604
|
${o}
|
|
5590
5605
|
<span class="suffix-action" part="suffix-action" ?hidden=${!!this.suffixButtonIcon||!this._hasSuffixSlot}>
|
|
5591
5606
|
<slot name="suffix" @slotchange=${this._handleSuffixSlotChange}></slot>
|
|
5592
5607
|
</span>
|
|
5593
|
-
${this.error?
|
|
5608
|
+
${this.error?L`<output part="helper" class="invalid"
|
|
5594
5609
|
>${this.errorText||this.helper}</output
|
|
5595
|
-
>`:this.helper?
|
|
5596
|
-
</div>`}};
|
|
5610
|
+
>`:this.helper?L`<output part="helper">${this.helper}</output>`:R}
|
|
5611
|
+
</div>`}};G([B({reflect:!0})],Y.prototype,`name`,void 0),G([B({reflect:!0})],Y.prototype,`label`,void 0),G([B({reflect:!0})],Y.prototype,`variant`,void 0),G([B({reflect:!0})],Y.prototype,`size`,void 0),G([B({reflect:!0})],Y.prototype,`shape`,void 0),G([B({reflect:!0})],Y.prototype,`type`,void 0),G([B({reflect:!0})],Y.prototype,`icon`,void 0),G([B({reflect:!0,attribute:`trailing-icon`})],Y.prototype,`trailingIcon`,void 0),G([B({reflect:!0})],Y.prototype,`prefix`,void 0),G([B({reflect:!0})],Y.prototype,`suffix`,void 0),G([B({reflect:!0,attribute:`suffix-button-icon`})],Y.prototype,`suffixButtonIcon`,void 0),G([B({reflect:!0,attribute:`suffix-button-label`})],Y.prototype,`suffixButtonLabel`,void 0),G([V()],Y.prototype,`_hasSuffixSlot`,void 0),G([B({reflect:!0})],Y.prototype,`helper`,void 0),G([B({reflect:!0,attribute:`error-text`})],Y.prototype,`errorText`,void 0),G([B({type:Boolean,reflect:!0})],Y.prototype,`error`,void 0),G([B({type:Boolean,reflect:!0})],Y.prototype,`loading`,void 0),G([B({type:Boolean,reflect:!0})],Y.prototype,`disabled`,void 0),G([B({reflect:!0})],Y.prototype,`value`,void 0),G([B({reflect:!0})],Y.prototype,`placeholder`,void 0),G([B({type:Boolean,reflect:!0})],Y.prototype,`required`,void 0),G([B({type:Boolean,reflect:!0})],Y.prototype,`readonly`,void 0),G([B({reflect:!0})],Y.prototype,`autocomplete`,void 0),G([B({reflect:!0})],Y.prototype,`inputmode`,void 0),G([B({type:Number,reflect:!0})],Y.prototype,`maxlength`,void 0),G([B({type:Number,reflect:!0})],Y.prototype,`minlength`,void 0),G([B({reflect:!0})],Y.prototype,`min`,void 0),G([B({reflect:!0})],Y.prototype,`max`,void 0),G([B({reflect:!0})],Y.prototype,`step`,void 0),G([B({reflect:!0})],Y.prototype,`pattern`,void 0),G([B({reflect:!0})],Y.prototype,`mask`,void 0),G([B({reflect:!0,attribute:`mask-alias`})],Y.prototype,`maskAlias`,void 0),G([B({attribute:`mask-options`,converter:{fromAttribute:e=>{if(!e)return{};try{return JSON.parse(e)}catch{return{}}},toAttribute:e=>JSON.stringify(e??{})}})],Y.prototype,`maskOptions`,void 0),G([H(`input`)],Y.prototype,`_input`,void 0),Y=G([z(`moni-text-field`)],Y);var Bt=class extends U{constructor(...e){super(...e),this.value=`00:00`,this.use24Hour=!1,this.mode=`dial`,this.orientation=`auto`,this.hideModeToggle=!1,this.hideHeadline=!1,this.hourLabel=`Hora`,this.minuteLabel=`Minuto`,this.activeSelection=`hour`,this.period=`AM`,this.currentHour=0,this.currentMinute=0,this.isDragging=!1}willUpdate(e){(e.has(`value`)||e.has(`use24Hour`))&&this.parseValue()}parseValue(){let e=this.value.split(`:`),t=parseInt(e[0],10),n=parseInt(e[1],10);(isNaN(t)||t<0||t>23)&&(t=0),(isNaN(n)||n<0||n>59)&&(n=0),this.currentHour=t,this.currentMinute=n,this.use24Hour||(this.period=t>=12?`PM`:`AM`)}updateValue(){let e=this.currentHour,t=this.currentMinute;this.use24Hour||(this.period===`PM`?e<12&&(e+=12):e===12?e=0:e>12&&(e-=12));let n=String(e).padStart(2,`0`),r=String(t).padStart(2,`0`);this.value=`${n}:${r}`,this.dispatchEvent(new CustomEvent(`change`,{detail:{value:this.value},bubbles:!0,composed:!0}))}toggleMode(){this.mode=this.mode===`dial`?`input`:`dial`}setSelection(e){this.activeSelection=e}setPeriod(e){this.period=e,this.updateValue()}handleClockPointerDown(e){this.clockFaceEl&&(this.isDragging=!0,this.clockFaceEl.classList.add(`dragging`),this.clockFaceEl.setPointerCapture(e.pointerId),this.handleClockPointerMove(e))}handleClockPointerMove(e){if(!this.isDragging||!this.clockFaceEl)return;let t=this.clockFaceEl.getBoundingClientRect(),n=t.left+t.width/2,r=t.top+t.height/2,i=e.clientX-n,a=e.clientY-r,o=Math.sqrt(i*i+a*a),s=180/Math.PI*Math.atan2(a,i)+90;if(s<0&&(s+=360),this.activeSelection===`hour`){if(this.use24Hour){let e=o<t.width*.32,n=Math.round(s/30)%12;n===0&&(n=12),this.currentHour=e?n:n===12?0:n+12}else{let e=Math.round(s/30)%12;e===0&&(e=12),this.currentHour=e}}else{let e=Math.round(s/6)%60;this.currentMinute=e}this.updateValue()}handleClockPointerUp(){this.isDragging&&(this.isDragging=!1,this.clockFaceEl?.classList.remove(`dragging`),this.activeSelection===`hour`&&setTimeout(()=>{this.activeSelection=`minute`},300))}handleHourInputChange(e){let t=e.target,n=parseInt(t.value,10);isNaN(n)&&(n=0),this.use24Hour?(n<0&&(n=0),n>23&&(n=23),this.currentHour=n):(n<1&&(n=1),n>12&&(n=12),this.currentHour=n),this.updateValue()}handleMinuteInputChange(e){let t=e.target,n=parseInt(t.value,10);isNaN(n)&&(n=0),n<0&&(n=0),n>59&&(n=59),this.currentMinute=n,this.updateValue()}static{this.styles=[W,g`
|
|
5597
5612
|
:host {
|
|
5598
5613
|
--_display-size: 6rem;
|
|
5599
5614
|
display: inline-flex;
|
|
@@ -5995,7 +6010,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
5995
6010
|
display: flex;
|
|
5996
6011
|
gap: 0.5rem;
|
|
5997
6012
|
}
|
|
5998
|
-
`]}renderDialClockFace(){let e=this.activeSelection===`hour`,t=0,n=`6.25rem`;if(e){let e=this.currentHour;this.use24Hour?e>12||e===0?(t=(e===0?12:e>12?e-12:e)*30,n=`6.5rem`):(t=e*30,n=`4.5rem`):(e>12&&(e-=12),e===0&&(e=12),t=e*30)}else t=this.currentMinute*6;let r=[];if(e){if(this.use24Hour){for(let e=1;e<=12;e++){let t=e===12?0:e+12,n=(e*30-90)*(Math.PI/180),i=128+104*Math.cos(n),a=128+104*Math.sin(n);r.push({val:t,label:String(t===0?`00`:t),x:`${i/16}rem`,y:`${a/16}rem`,selected:this.currentHour===t})}for(let e=1;e<=12;e++){let t=(e*30-90)*(Math.PI/180),n=128+72*Math.cos(t),i=128+72*Math.sin(t);r.push({val:e,label:String(e),x:`${n/16}rem`,y:`${i/16}rem`,selected:this.currentHour===e})}}else for(let e=1;e<=12;e++){let t=(e*30-90)*(Math.PI/180),n=128+100*Math.cos(t),i=128+100*Math.sin(t),a=this.currentHour;a>12&&(a-=12),a===0&&(a=12),r.push({val:e,label:String(e),x:`${n/16}rem`,y:`${i/16}rem`,selected:a===e})}}else for(let e=0;e<12;e++){let t=e*5,n=(e*30-90)*(Math.PI/180),i=128+100*Math.cos(n),a=128+100*Math.sin(n);r.push({val:t,label:String(t).padStart(2,`0`),x:`${i/16}rem`,y:`${a/16}rem`,selected:this.currentMinute===t})}return
|
|
6013
|
+
`]}renderDialClockFace(){let e=this.activeSelection===`hour`,t=0,n=`6.25rem`;if(e){let e=this.currentHour;this.use24Hour?e>12||e===0?(t=(e===0?12:e>12?e-12:e)*30,n=`6.5rem`):(t=e*30,n=`4.5rem`):(e>12&&(e-=12),e===0&&(e=12),t=e*30)}else t=this.currentMinute*6;let r=[];if(e){if(this.use24Hour){for(let e=1;e<=12;e++){let t=e===12?0:e+12,n=(e*30-90)*(Math.PI/180),i=128+104*Math.cos(n),a=128+104*Math.sin(n);r.push({val:t,label:String(t===0?`00`:t),x:`${i/16}rem`,y:`${a/16}rem`,selected:this.currentHour===t})}for(let e=1;e<=12;e++){let t=(e*30-90)*(Math.PI/180),n=128+72*Math.cos(t),i=128+72*Math.sin(t);r.push({val:e,label:String(e),x:`${n/16}rem`,y:`${i/16}rem`,selected:this.currentHour===e})}}else for(let e=1;e<=12;e++){let t=(e*30-90)*(Math.PI/180),n=128+100*Math.cos(t),i=128+100*Math.sin(t),a=this.currentHour;a>12&&(a-=12),a===0&&(a=12),r.push({val:e,label:String(e),x:`${n/16}rem`,y:`${i/16}rem`,selected:a===e})}}else for(let e=0;e<12;e++){let t=e*5,n=(e*30-90)*(Math.PI/180),i=128+100*Math.cos(n),a=128+100*Math.sin(n);r.push({val:t,label:String(t).padStart(2,`0`),x:`${i/16}rem`,y:`${a/16}rem`,selected:this.currentMinute===t})}return L`
|
|
5999
6014
|
<div class="clock-container">
|
|
6000
6015
|
<div
|
|
6001
6016
|
class="clock-face"
|
|
@@ -6010,9 +6025,9 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6010
6025
|
style="transform: rotate(${t}deg); height: ${n};"
|
|
6011
6026
|
>
|
|
6012
6027
|
<div class="clock-hand-selector"></div>
|
|
6013
|
-
${e&&this.use24Hour&&this.currentHour<=12&&this.currentHour>0?
|
|
6028
|
+
${e&&this.use24Hour&&this.currentHour<=12&&this.currentHour>0?L`<div class="clock-hand-dot"></div>`:``}
|
|
6014
6029
|
</div>
|
|
6015
|
-
${r.map(e=>
|
|
6030
|
+
${r.map(e=>L`
|
|
6016
6031
|
<div
|
|
6017
6032
|
class="clock-number ${e.selected?`selected`:``}"
|
|
6018
6033
|
style="left: ${e.x}; top: ${e.y};"
|
|
@@ -6022,10 +6037,10 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6022
6037
|
`)}
|
|
6023
6038
|
</div>
|
|
6024
6039
|
</div>
|
|
6025
|
-
`}render(){let e=this.use24Hour?String(this.currentHour).padStart(2,`0`):String(this.currentHour>12?this.currentHour-12:this.currentHour===0?12:this.currentHour).padStart(2,`0`),t=String(this.currentMinute).padStart(2,`0`);return
|
|
6040
|
+
`}render(){let e=this.use24Hour?String(this.currentHour).padStart(2,`0`):String(this.currentHour>12?this.currentHour-12:this.currentHour===0?12:this.currentHour).padStart(2,`0`),t=String(this.currentMinute).padStart(2,`0`);return L`
|
|
6026
6041
|
<div class="main-content">
|
|
6027
6042
|
<div class="left-pane">
|
|
6028
|
-
${this.hideHeadline?``:
|
|
6043
|
+
${this.hideHeadline?``:L`<div class="picker-header">
|
|
6029
6044
|
${this.mode===`dial`?`Select time`:`Enter time`}
|
|
6030
6045
|
</div>`}
|
|
6031
6046
|
|
|
@@ -6035,7 +6050,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6035
6050
|
class="display-box ${this.activeSelection===`hour`?`active`:``}"
|
|
6036
6051
|
@click=${()=>this.setSelection(`hour`)}
|
|
6037
6052
|
>
|
|
6038
|
-
${this.mode===`input`?
|
|
6053
|
+
${this.mode===`input`?L`<input
|
|
6039
6054
|
type="number"
|
|
6040
6055
|
.value=${e}
|
|
6041
6056
|
@change=${this.handleHourInputChange}
|
|
@@ -6048,7 +6063,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6048
6063
|
class="display-box ${this.activeSelection===`minute`?`active`:``}"
|
|
6049
6064
|
@click=${()=>this.setSelection(`minute`)}
|
|
6050
6065
|
>
|
|
6051
|
-
${this.mode===`input`?
|
|
6066
|
+
${this.mode===`input`?L`<input
|
|
6052
6067
|
type="number"
|
|
6053
6068
|
.value=${t}
|
|
6054
6069
|
@change=${this.handleMinuteInputChange}
|
|
@@ -6058,7 +6073,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6058
6073
|
</div>
|
|
6059
6074
|
</div>
|
|
6060
6075
|
|
|
6061
|
-
${this.use24Hour?``:
|
|
6076
|
+
${this.use24Hour?``:L`
|
|
6062
6077
|
<div class="ampm-toggle">
|
|
6063
6078
|
<button
|
|
6064
6079
|
class="ampm-btn ${this.period===`AM`?`active`:``}"
|
|
@@ -6076,7 +6091,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6076
6091
|
`}
|
|
6077
6092
|
</div>
|
|
6078
6093
|
|
|
6079
|
-
${this.mode===`input`?
|
|
6094
|
+
${this.mode===`input`?L`
|
|
6080
6095
|
<div class="input-labels">
|
|
6081
6096
|
<span>${this.hourLabel}</span>
|
|
6082
6097
|
<span>${this.minuteLabel}</span>
|
|
@@ -6087,12 +6102,12 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6087
6102
|
${this.mode===`dial`?this.renderDialClockFace():``}
|
|
6088
6103
|
</div>
|
|
6089
6104
|
|
|
6090
|
-
${this.hideModeToggle?``:
|
|
6105
|
+
${this.hideModeToggle?``:L`<div class="bottom-actions">
|
|
6091
6106
|
<button class="mode-toggle-btn" @click=${this.toggleMode} aria-label="Toggle input mode">
|
|
6092
6107
|
<moni-icon name=${this.mode===`dial`?`keyboard`:`schedule`}></moni-icon>
|
|
6093
6108
|
</button>
|
|
6094
6109
|
</div>`}
|
|
6095
|
-
`}};
|
|
6110
|
+
`}};G([B({reflect:!0})],Bt.prototype,`value`,void 0),G([B({type:Boolean,reflect:!0,attribute:`use-24-hour`})],Bt.prototype,`use24Hour`,void 0),G([B({reflect:!0})],Bt.prototype,`mode`,void 0),G([B({reflect:!0})],Bt.prototype,`orientation`,void 0),G([B({type:Boolean,reflect:!0,attribute:`hide-mode-toggle`})],Bt.prototype,`hideModeToggle`,void 0),G([B({type:Boolean,reflect:!0,attribute:`hide-headline`})],Bt.prototype,`hideHeadline`,void 0),G([B({reflect:!0,attribute:`hour-label`})],Bt.prototype,`hourLabel`,void 0),G([B({reflect:!0,attribute:`minute-label`})],Bt.prototype,`minuteLabel`,void 0),G([V()],Bt.prototype,`activeSelection`,void 0),G([V()],Bt.prototype,`period`,void 0),G([V()],Bt.prototype,`currentHour`,void 0),G([V()],Bt.prototype,`currentMinute`,void 0),G([H(`.clock-face`)],Bt.prototype,`clockFaceEl`,void 0),Bt=G([z(`moni-time-picker`)],Bt);var Vt=class extends U{constructor(...e){super(...e),this.type=`standard`,this.scrolled=!1,this.title=``}static{this.styles=[W,g`
|
|
6096
6111
|
:host {
|
|
6097
6112
|
display: block;
|
|
6098
6113
|
position: relative;
|
|
@@ -6153,18 +6168,18 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6153
6168
|
inset-inline-end: 1rem;
|
|
6154
6169
|
z-index: 1;
|
|
6155
6170
|
}
|
|
6156
|
-
`]}render(){return
|
|
6171
|
+
`]}render(){return L`
|
|
6157
6172
|
<header class="container" part="container">
|
|
6158
6173
|
<span class="leading" part="leading"><slot name="leading"></slot></span>
|
|
6159
6174
|
<span class="title" part="title">
|
|
6160
|
-
${this.title||
|
|
6175
|
+
${this.title||L`<slot></slot>`}
|
|
6161
6176
|
</span>
|
|
6162
6177
|
<span class="trailing" part="trailing">
|
|
6163
6178
|
<slot name="trailing"></slot>
|
|
6164
6179
|
</span>
|
|
6165
6180
|
</header>
|
|
6166
6181
|
<slot name="action-button"></slot>
|
|
6167
|
-
`}};
|
|
6182
|
+
`}};G([B({reflect:!0})],Vt.prototype,`type`,void 0),G([B({type:Boolean,reflect:!0,attribute:`scroll`})],Vt.prototype,`scrolled`,void 0),G([B({reflect:!0})],Vt.prototype,`title`,void 0),Vt=G([z(`moni-toolbar`)],Vt);var Ht=class extends U{constructor(...e){super(...e),this.open=!1,this.modal=!1,this.side=`right`,this.title=``,this.detached=!1,this.showBack=!1,this.noBorder=!1,this.withHandle=!1,this.hideClose=!1,this.expandedWidth=`600px`,this.maxWidth=``,this._isDragging=!1,this._startX=0,this._currentTranslationX=0,this._sheetWidth=0,this._defaultWidth=0,this._justDragged=!1,this._closing=!1}disconnectedCallback(){clearTimeout(this._closeTimer),super.disconnectedCallback()}_finishClose(){!this._closing||this.open||(this._closing=!1,clearTimeout(this._closeTimer),this._dialog.classList.remove(`expanded`),this._dialog.open&&(typeof this._dialog.close==`function`?this._dialog.close():this._dialog.open=!1),this.dispatchEvent(new CustomEvent(`close`,{bubbles:!0,composed:!0})))}_getMaxWidthPx(){let e=this.expandedWidth||`600px`;return e.endsWith(`%`)||e.endsWith(`vw`)?window.innerWidth*(parseFloat(e)/100):e.endsWith(`px`)?parseFloat(e):600}updated(e){if(super.updated(e),e.has(`expandedWidth`)&&this.style.setProperty(`--moni-side-sheet-expanded-width`,this.expandedWidth),e.has(`maxWidth`)&&this.style.setProperty(`--moni-side-sheet-max-width`,this.maxWidth||`400px`),e.has(`open`)&&this._dialog){if(this.open)this._closing=!1,clearTimeout(this._closeTimer),this.modal?this._dialog.open||(typeof this._dialog.showModal==`function`?this._dialog.showModal():this._dialog.open=!0):this._dialog.open||(typeof this._dialog.show==`function`?this._dialog.show():this._dialog.open=!0),this._dialog.getBoundingClientRect(),this._dialog.classList.add(`opened`);else if(this._dialog.open){this._closing=!0,this._dialog.classList.remove(`opened`);let e=t=>{t.target===this._dialog&&t.propertyName===`transform`&&(this._dialog.removeEventListener(`transitionend`,e),this._finishClose())};this._dialog.addEventListener(`transitionend`,e),this._closeTimer=setTimeout(()=>{this._dialog.removeEventListener(`transitionend`,e),this._finishClose()},350)}}}_onPointerDown(e){if(!this.withHandle)return;let t=e.target;!t.closest(`.handle`)&&!t.closest(`header`)||(this._isDragging=!0,this._startX=e.clientX,this._sheetWidth=this._dialog.getBoundingClientRect().width,this._currentTranslationX=0,this._dialog.classList.contains(`expanded`)||(this._defaultWidth=this._sheetWidth),t.setPointerCapture(e.pointerId),this._dialog.classList.add(`dragging`))}_onPointerMove(e){if(!this._isDragging)return;let t=e.clientX-this._startX,n=this._dialog.classList.contains(`expanded`),r=this._getMaxWidthPx(),i=this.side===`right`?t:-t;if(n){if(i>0){let e=this._sheetWidth-i;this._dialog.style.transform=``,this._dialog.style.width=`${Math.max(0,e)}px`}else{let e=this._sheetWidth-i*.2;this._dialog.style.width=`${Math.min(r,e)}px`}}else if(i>0)this._currentTranslationX=i,this._dialog.style.transform=`translateX(${this.side===`right`?i:-i}px)`,this._dialog.style.width=``;else{let e=this._sheetWidth-i;this._dialog.style.transform=``,this._dialog.style.width=`${Math.min(r,e)}px`}}_onPointerUp(e){if(!this._isDragging)return;e.target.releasePointerCapture(e.pointerId),this._isDragging=!1,this._dialog.classList.remove(`dragging`);let t=e.clientX-this._startX;Math.abs(t)>5&&(this._justDragged=!0,setTimeout(()=>{this._justDragged=!1},50));let n=this._dialog.classList.contains(`expanded`),r=this._getMaxWidthPx(),i=this.side===`right`?t:-t;if(n){let e=this._sheetWidth-i;if(e<this._defaultWidth-80){this._dialog.classList.remove(`expanded`),this._dialog.classList.remove(`opened`),this._dialog.style.transform=this.side===`right`?`translateX(100%)`:`translateX(-100%)`,this._dialog.style.width=``;let e=()=>{this._dialog.removeEventListener(`transitionend`,e),this._dialog.style.transform=``,this._dialog.style.width=``,this.open=!1,this.dispatchEvent(new CustomEvent(`close`,{bubbles:!0,composed:!0}))};this._dialog.addEventListener(`transitionend`,e),setTimeout(()=>{this.open&&e()},300)}else e<(r+this._defaultWidth)/2?(this._dialog.classList.remove(`expanded`),this._dialog.style.transform=``,this._dialog.style.width=``):(this._dialog.style.transform=``,this._dialog.style.width=``)}else if(i<0)this._sheetWidth-i>(r+this._sheetWidth)/2||-i>80?(this._dialog.classList.add(`expanded`),this._dialog.style.transform=``,this._dialog.style.width=``):(this._dialog.style.transform=``,this._dialog.style.width=``);else{let e=Math.min(150,this._sheetWidth*.4);if(Math.abs(this._currentTranslationX)>e){this._dialog.classList.remove(`opened`),this._dialog.style.transform=this.side===`right`?`translateX(100%)`:`translateX(-100%)`,this._dialog.style.width=``;let e=()=>{this._dialog.removeEventListener(`transitionend`,e),this._dialog.style.transform=``,this._dialog.style.width=``,this.open=!1,this.dispatchEvent(new CustomEvent(`close`,{bubbles:!0,composed:!0}))};this._dialog.addEventListener(`transitionend`,e),setTimeout(()=>{this.open&&e()},300)}else this._dialog.style.transform=``,this._dialog.style.width=``}}_onPointerCancel(e){this._isDragging&&(e.target.releasePointerCapture(e.pointerId),this._isDragging=!1,this._dialog.classList.remove(`dragging`),this._dialog.style.transform=``,this._dialog.style.width=``)}_onCloseClick(){this.open=!1}_onCancel(e){e.preventDefault(),this._onCloseClick()}_onBackClick(){this.dispatchEvent(new CustomEvent(`back`,{bubbles:!0,composed:!0}))}_onDialogClick(e){if(this._justDragged){this._justDragged=!1;return}this.modal&&e.target===this._dialog&&this._onCloseClick()}static{this.styles=[W,g`
|
|
6168
6183
|
:host {
|
|
6169
6184
|
display: contents;
|
|
6170
6185
|
}
|
|
@@ -6365,7 +6380,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6365
6380
|
footer:not(:has(slot[name="footer"])) {
|
|
6366
6381
|
display: none;
|
|
6367
6382
|
}
|
|
6368
|
-
`]}render(){return
|
|
6383
|
+
`]}render(){return L`
|
|
6369
6384
|
<dialog
|
|
6370
6385
|
part="dialog"
|
|
6371
6386
|
class=${[this.side,this.modal?`modal`:`standard`,this.detached?`detached`:``,this.noBorder?`no-border`:``].filter(Boolean).join(` `)}
|
|
@@ -6376,10 +6391,10 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6376
6391
|
@pointerup=${this._onPointerUp}
|
|
6377
6392
|
@pointercancel=${this._onPointerCancel}
|
|
6378
6393
|
>
|
|
6379
|
-
${this.withHandle?
|
|
6394
|
+
${this.withHandle?L`<div class="handle" aria-hidden="true"></div>`:``}
|
|
6380
6395
|
<header part="header">
|
|
6381
6396
|
<div class="header-start">
|
|
6382
|
-
${this.showBack?
|
|
6397
|
+
${this.showBack?L`
|
|
6383
6398
|
<moni-button
|
|
6384
6399
|
variant="icon"
|
|
6385
6400
|
@click=${this._onBackClick}
|
|
@@ -6392,7 +6407,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6392
6407
|
<h2 class="headline">${this.title}</h2>
|
|
6393
6408
|
</slot>
|
|
6394
6409
|
</div>
|
|
6395
|
-
${this.hideClose?``:
|
|
6410
|
+
${this.hideClose?``:L`
|
|
6396
6411
|
<moni-button
|
|
6397
6412
|
variant="icon"
|
|
6398
6413
|
@click=${this._onCloseClick}
|
|
@@ -6409,7 +6424,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6409
6424
|
<slot name="footer"></slot>
|
|
6410
6425
|
</footer>
|
|
6411
6426
|
</dialog>
|
|
6412
|
-
`}};
|
|
6427
|
+
`}};G([B({type:Boolean,reflect:!0})],Ht.prototype,`open`,void 0),G([B({type:Boolean,reflect:!0})],Ht.prototype,`modal`,void 0),G([B({reflect:!0})],Ht.prototype,`side`,void 0),G([B({reflect:!0})],Ht.prototype,`title`,void 0),G([B({type:Boolean,reflect:!0})],Ht.prototype,`detached`,void 0),G([B({type:Boolean,reflect:!0,attribute:`show-back`})],Ht.prototype,`showBack`,void 0),G([B({type:Boolean,reflect:!0,attribute:`no-border`})],Ht.prototype,`noBorder`,void 0),G([B({type:Boolean,reflect:!0,attribute:`with-handle`})],Ht.prototype,`withHandle`,void 0),G([B({type:Boolean,reflect:!0,attribute:`hide-close`})],Ht.prototype,`hideClose`,void 0),G([B({reflect:!0,attribute:`expanded-width`})],Ht.prototype,`expandedWidth`,void 0),G([B({reflect:!0,attribute:`max-width`})],Ht.prototype,`maxWidth`,void 0),G([H(`dialog`)],Ht.prototype,`_dialog`,void 0),Ht=G([z(`moni-side-sheet`)],Ht);var Ut=class extends U{constructor(...e){super(...e),this.text=``,this.position=`top`,this.rotateWithTarget=!1,this.size=``,this.rich=!1,this._target=null,this._tooltipEl=null,this._docKeydown=e=>this._handleDocKeydown(e),this._reposition=()=>{this._tooltipEl?.classList.contains(`visible`)&&this._positionTooltip()},this._trackingFrame=0,this._popoverCloseTimer=0,this._trackTarget=()=>{if(!this._tooltipEl?.classList.contains(`visible`)){this._trackingFrame=0;return}this._positionTooltip(),this._trackingFrame=requestAnimationFrame(this._trackTarget)},this._anchorName=null,this._show=()=>{if(this._tooltipEl||=this.shadowRoot?.querySelector(`.tooltip`),this._tooltipEl){this._popoverCloseTimer&&window.clearTimeout(this._popoverCloseTimer),this._popoverCloseTimer=0;try{this._tooltipEl.matches(`:popover-open`)||this._tooltipEl.showPopover?.()}catch{}this._tooltipEl.classList.remove(`visible`),this._positionTooltip(),this._tooltipEl.offsetWidth,this._tooltipEl.classList.add(`visible`),this._trackingFrame||=requestAnimationFrame(this._trackTarget)}},this._hide=()=>{this._tooltipEl||=this.shadowRoot?.querySelector(`.tooltip`),this._tooltipEl&&this._tooltipEl.classList.remove(`visible`),this._trackingFrame&&cancelAnimationFrame(this._trackingFrame),this._trackingFrame=0,this._tooltipEl?.hidePopover&&(this._popoverCloseTimer=window.setTimeout(()=>{try{this._tooltipEl?.matches(`:popover-open`)&&this._tooltipEl.hidePopover()}catch{}this._popoverCloseTimer=0},180))}}firstUpdated(){this._tooltipEl=this.shadowRoot?.querySelector(`.tooltip`),this._positionTooltip()}connectedCallback(){if(super.connectedCallback(),this._target=this.parentElement,this._target){getComputedStyle(this._target).position===`static`&&(this._target.style.position=`relative`),this._target.addEventListener(`mouseenter`,this._show),this._target.addEventListener(`focusin`,this._show),this._target.addEventListener(`mouseleave`,this._hide),this._target.addEventListener(`focusout`,this._hide);let e=globalThis.CSS?.supports;if(e&&e.call(window.CSS,`anchor-name: --x`)&&!this._target.hasAttribute(`data-no-anchor`)){let e=globalThis.crypto?.randomUUID?.()??`tt-${Math.random().toString(36).slice(2,10)}`;this._anchorName=`--moni-tooltip-anchor-${e}`,this._target.style.setProperty(`anchor-name`,this._anchorName)}}document.addEventListener(`keydown`,this._docKeydown),window.addEventListener(`resize`,this._reposition),document.addEventListener(`scroll`,this._reposition,!0)}disconnectedCallback(){this._target&&(this._target.removeEventListener(`mouseenter`,this._show),this._target.removeEventListener(`focusin`,this._show),this._target.removeEventListener(`mouseleave`,this._hide),this._target.removeEventListener(`focusout`,this._hide),this._anchorName&&=(this._target.style.removeProperty(`anchor-name`),null)),document.removeEventListener(`keydown`,this._docKeydown),window.removeEventListener(`resize`,this._reposition),document.removeEventListener(`scroll`,this._reposition,!0),this._trackingFrame&&cancelAnimationFrame(this._trackingFrame),this._trackingFrame=0,this._popoverCloseTimer&&window.clearTimeout(this._popoverCloseTimer),this._popoverCloseTimer=0,super.disconnectedCallback()}_positionTooltip(){if(!this._target||!this._tooltipEl)return;let e=this._target.getBoundingClientRect(),t=this._tooltipEl.offsetWidth,n=this._tooltipEl.offsetHeight,r=e.left+(e.width-t)/2,i=e.top-n-8;switch(this.position){case`top-start`:r=e.left;break;case`top-end`:r=e.right-t;break;case`bottom`:i=e.bottom+8;break;case`bottom-start`:r=e.left,i=e.bottom+8;break;case`bottom-end`:r=e.right-t,i=e.bottom+8;break;case`left`:r=e.left-t-8,i=e.top+(e.height-n)/2;break;case`right`:r=e.right+8,i=e.top+(e.height-n)/2}r=Math.min(window.innerWidth-t-8,Math.max(8,r)),i=Math.min(window.innerHeight-n-8,Math.max(8,i)),this._tooltipEl.style.left=`${r}px`,this._tooltipEl.style.top=`${i}px`;let a=e.left+e.width/2-(r+t/2),o=e.top+e.height/2-(i+n/2);this._tooltipEl.style.setProperty(`--_tooltip-origin-x`,`${a}px`),this._tooltipEl.style.setProperty(`--_tooltip-origin-y`,`${o}px`),this._tooltipEl.style.setProperty(`--_tooltip-target-rotation`,`${this.rotateWithTarget?this._readTargetRotation():0}deg`),this._tooltipEl.style.transformOrigin=`center`}_readTargetRotation(){if(!this._target)return 0;let e=this._target.getBoxQuads?.()[0];if(e)return Math.atan2(e.p2.y-e.p1.y,e.p2.x-e.p1.x)*(180/Math.PI);let t=window.getComputedStyle(this._target).transform.match(/matrix(?:3d)?\(([^)]+)\)/)?.[1].split(`,`).map(e=>Number.parseFloat(e.trim()));return t?.length===6||t?.length===16?Math.atan2(t[1],t[0])*(180/Math.PI):0}_handleDocKeydown(e){e.key===`Escape`&&this._tooltipEl?.classList.contains(`visible`)&&this._hide()}get tooltipId(){return this._tooltipEl?.id||``}static{this.styles=[W,g`
|
|
6413
6428
|
:host {
|
|
6414
6429
|
display: contents;
|
|
6415
6430
|
font-family: var(--font);
|
|
@@ -6616,7 +6631,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6616
6631
|
rotate(var(--_tooltip-target-rotation, 0deg))
|
|
6617
6632
|
scale(1);
|
|
6618
6633
|
}
|
|
6619
|
-
`]}render(){return
|
|
6634
|
+
`]}render(){return L`<div
|
|
6620
6635
|
class=${[`tooltip`,`js-positioned`,this.position,this.size].filter(Boolean).join(` `)}
|
|
6621
6636
|
popover="manual"
|
|
6622
6637
|
role="tooltip"
|
|
@@ -6625,12 +6640,12 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6625
6640
|
style=${this._anchorName?`--_anchor-name: ${this._anchorName}`:``}
|
|
6626
6641
|
>
|
|
6627
6642
|
<slot>${this.text}</slot>
|
|
6628
|
-
</div>`}};
|
|
6643
|
+
</div>`}};G([B({reflect:!0})],Ut.prototype,`text`,void 0),G([B({reflect:!0})],Ut.prototype,`position`,void 0),G([B({type:Boolean,attribute:`rotate-with-target`,reflect:!0})],Ut.prototype,`rotateWithTarget`,void 0),G([B({reflect:!0})],Ut.prototype,`size`,void 0),G([B({type:Boolean,reflect:!0})],Ut.prototype,`rich`,void 0),Ut=G([z(`moni-tooltip`)],Ut);var Wt=Symbol.for(``),Gt=e=>{if(e?.r===Wt)return e?._$litStatic$},Kt=e=>({_$litStatic$:e,r:Wt}),qt=new Map,Jt=(e=>(t,...n)=>{let r=n.length,i,a,o=[],s=[],c,l=0,u=!1;for(;l<r;){for(c=t[l];l<r&&(a=n[l],(i=Gt(a))!==void 0);)c+=i+t[++l],u=!0;l!==r&&s.push(a),o.push(c),l++}if(l===r&&o.push(t[r]),u){let e=o.join(`$$lit$$`);(t=qt.get(e))===void 0&&(o.raw=o,qt.set(e,t=o)),n=s}return e(t,...n)})(L),Yt,Xt=class extends U{static{Yt=this}constructor(...e){super(...e),this.variant=`body`,this.size=`medium`,this.as=null,this.text=``}static _tagFor(e){switch(e){case`display`:return`h1`;case`headline`:return`h2`;case`title`:return`h3`;case`body`:return`p`;case`label`:return`label`}}render(){let e=`${this.variant} ${this.size}`,t=Kt(this.as??Yt._tagFor(this.variant));return Jt`<${t}
|
|
6629
6644
|
class=${e}
|
|
6630
6645
|
part="text"
|
|
6631
6646
|
>
|
|
6632
|
-
<slot>${this.text||
|
|
6633
|
-
</${t}>`}static{this.styles=[
|
|
6647
|
+
<slot>${this.text||R}</slot>
|
|
6648
|
+
</${t}>`}static{this.styles=[W,g`
|
|
6634
6649
|
:host {
|
|
6635
6650
|
display: block;
|
|
6636
6651
|
font-family: var(--font);
|
|
@@ -6741,7 +6756,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6741
6756
|
font-weight: 500;
|
|
6742
6757
|
letter-spacing: 0.04545em;
|
|
6743
6758
|
}
|
|
6744
|
-
`]}};
|
|
6759
|
+
`]}};G([B({reflect:!0})],Xt.prototype,`variant`,void 0),G([B({reflect:!0})],Xt.prototype,`size`,void 0),G([B({reflect:!0})],Xt.prototype,`as`,void 0),G([B({reflect:!0})],Xt.prototype,`text`,void 0),Xt=Yt=G([z(`moni-typography`)],Xt);var Zt=class extends U{constructor(...e){super(...e),this._activeObserver=new MutationObserver(()=>this.updateSelectionNeighbors()),this.variant=`standard`,this.size=`small`,this.multi=!1,this.selectionRequired=!1,this.shape=`round`,this.resizing=`fixed`,this.gap=``,this.role=`group`,this.label=``,this.labelledBy=``}connectedCallback(){super.connectedCallback(),this._activeObserver.observe(this,{subtree:!0,attributes:!0,attributeFilter:[`active`]})}disconnectedCallback(){this._activeObserver.disconnect(),super.disconnectedCallback()}static{this.styles=[W,g`
|
|
6745
6760
|
:host {
|
|
6746
6761
|
display: inline-flex;
|
|
6747
6762
|
align-items: center;
|
|
@@ -6852,14 +6867,14 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6852
6867
|
:host([variant='standard'][size='extra']) ::slotted(moni-button[data-group-adjacent-selected='shared']) { --moni-button-padding: 0 3.375rem; }
|
|
6853
6868
|
:host([variant='standard'][size='xlarge']) ::slotted(moni-button[data-group-adjacent-selected='sole']),
|
|
6854
6869
|
:host([variant='standard'][size='extra']) ::slotted(moni-button[data-group-adjacent-selected='sole']) { --moni-button-padding: 0 2.75rem; }
|
|
6855
|
-
`]}updated(e){super.updated(e),(e.has(`variant`)||e.has(`size`)||e.has(`gap`)||e.has(`shape`)||e.has(`resizing`))&&this.updateChildren()}handleSlotChange(){this.updateChildren()}getButtons(){return(this.slottedButtons??[]).filter(e=>e.tagName.toLowerCase()===`moni-button`||e.tagName.toLowerCase()===`moni-icon-button`)}updateSelectionNeighbors(){let e=this.getButtons();if(e.forEach(e=>{e.removeAttribute(`data-group-adjacent-selected`),e.style.removeProperty(`--_moni-group-flex-grow`)}),this.variant!==`standard`)return;let t=e.filter(e=>e.hasAttribute(`active`));if(t.length===0)return;let n=e.filter(e=>!e.hasAttribute(`active`)),r=n.length===1?`sole`:`shared`;if(n.forEach(e=>e.setAttribute(`data-group-adjacent-selected`,r)),this.resizing===`flexible`&&n.length>0){let r=Math.max(.6,(e.length-t.length*1.24)/n.length);t.forEach(e=>e.style.setProperty(`--_moni-group-flex-grow`,`1.24`)),n.forEach(e=>e.style.setProperty(`--_moni-group-flex-grow`,String(r)))}}getGapValue(e){if(!e)return``;let t=e.toLowerCase();return t===`xs`||t===`xsmall`?`1.125rem`:t===`s`||t===`small`?`0.75rem`:t===`m`||t===`medium`||t===`l`||t===`large`||t===`xl`||t===`xlarge`?`0.5rem`:e}updateChildren(){let e=this.getButtons(),t=this.gap.trim().toLowerCase(),n=![`0`,`0px`,`0rem`,`0em`].includes(t);e.forEach((t,r)=>{t.setAttribute(`size`,this.size),this.variant===`connected`&&this.shape===`square`?t.setAttribute(`shape`,`square`):this.variant===`connected`?n?e.length===1?t.setAttribute(`shape`,`round`):r===0?t.setAttribute(`shape`,`left-round`):r===e.length-1?t.setAttribute(`shape`,`right-round`):t.setAttribute(`shape`,`inner-round`):e.length===1?t.setAttribute(`shape`,`round`):r===0?t.setAttribute(`shape`,`left-round-flat`):r===e.length-1?t.setAttribute(`shape`,`right-round-flat`):t.setAttribute(`shape`,`no-round`):t.setAttribute(`shape`,this.shape)}),this.updateSelectionNeighbors()}handlePointerDown(e){if(this.variant!==`standard`)return;let t=e.target.closest(`moni-button, moni-icon-button`);if(!t||t.hasAttribute(`disabled`))return;let n=this.getButtons(),r=n.indexOf(t);r!==-1&&(t.setAttribute(`data-group-pressed`,``),n[r-1]?.setAttribute(`data-group-adjacent-pressed`,``),n[r+1]?.setAttribute(`data-group-adjacent-pressed`,``))}handlePointerUp(){this.getButtons().forEach(e=>{e.removeAttribute(`data-group-pressed`),e.removeAttribute(`data-group-adjacent-pressed`)})}handleClick(e){let t=e.target.closest(`moni-button, moni-icon-button`);if(!t||t.hasAttribute(`disabled`))return;let n=this.getButtons();this.multi||n.forEach(e=>{e!==t&&(e.removeAttribute(`active`),e.active=!1)});let r=t.hasAttribute(`active`),i=n.filter(e=>e.hasAttribute(`active`)).length;r&&this.selectionRequired&&i<=1||(r?(t.removeAttribute(`active`),t.active=!1):(t.setAttribute(`active`,``),t.active=!0),this.dispatchEvent(new CustomEvent(`change`,{bubbles:!0,composed:!0,detail:{button:t,active:!r}})))}render(){let e=this.getGapValue(this.gap),t=this.gap.trim().toLowerCase(),n=[`0`,`0px`,`0rem`,`0em`].includes(t);return
|
|
6870
|
+
`]}updated(e){super.updated(e),(e.has(`variant`)||e.has(`size`)||e.has(`gap`)||e.has(`shape`)||e.has(`resizing`))&&this.updateChildren()}handleSlotChange(){this.updateChildren()}getButtons(){return(this.slottedButtons??[]).filter(e=>e.tagName.toLowerCase()===`moni-button`||e.tagName.toLowerCase()===`moni-icon-button`)}updateSelectionNeighbors(){let e=this.getButtons();if(e.forEach(e=>{e.removeAttribute(`data-group-adjacent-selected`),e.style.removeProperty(`--_moni-group-flex-grow`)}),this.variant!==`standard`)return;let t=e.filter(e=>e.hasAttribute(`active`));if(t.length===0)return;let n=e.filter(e=>!e.hasAttribute(`active`)),r=n.length===1?`sole`:`shared`;if(n.forEach(e=>e.setAttribute(`data-group-adjacent-selected`,r)),this.resizing===`flexible`&&n.length>0){let r=Math.max(.6,(e.length-t.length*1.24)/n.length);t.forEach(e=>e.style.setProperty(`--_moni-group-flex-grow`,`1.24`)),n.forEach(e=>e.style.setProperty(`--_moni-group-flex-grow`,String(r)))}}getGapValue(e){if(!e)return``;let t=e.toLowerCase();return t===`xs`||t===`xsmall`?`1.125rem`:t===`s`||t===`small`?`0.75rem`:t===`m`||t===`medium`||t===`l`||t===`large`||t===`xl`||t===`xlarge`?`0.5rem`:e}updateChildren(){let e=this.getButtons(),t=this.gap.trim().toLowerCase(),n=![`0`,`0px`,`0rem`,`0em`].includes(t);e.forEach((t,r)=>{t.setAttribute(`size`,this.size),this.variant===`connected`&&this.shape===`square`?t.setAttribute(`shape`,`square`):this.variant===`connected`?n?e.length===1?t.setAttribute(`shape`,`round`):r===0?t.setAttribute(`shape`,`left-round`):r===e.length-1?t.setAttribute(`shape`,`right-round`):t.setAttribute(`shape`,`inner-round`):e.length===1?t.setAttribute(`shape`,`round`):r===0?t.setAttribute(`shape`,`left-round-flat`):r===e.length-1?t.setAttribute(`shape`,`right-round-flat`):t.setAttribute(`shape`,`no-round`):t.setAttribute(`shape`,this.shape)}),this.updateSelectionNeighbors()}handlePointerDown(e){if(this.variant!==`standard`)return;let t=e.target.closest(`moni-button, moni-icon-button`);if(!t||t.hasAttribute(`disabled`))return;let n=this.getButtons(),r=n.indexOf(t);r!==-1&&(t.setAttribute(`data-group-pressed`,``),n[r-1]?.setAttribute(`data-group-adjacent-pressed`,``),n[r+1]?.setAttribute(`data-group-adjacent-pressed`,``))}handlePointerUp(){this.getButtons().forEach(e=>{e.removeAttribute(`data-group-pressed`),e.removeAttribute(`data-group-adjacent-pressed`)})}handleClick(e){let t=e.target.closest(`moni-button, moni-icon-button`);if(!t||t.hasAttribute(`disabled`))return;let n=this.getButtons();this.multi||n.forEach(e=>{e!==t&&(e.removeAttribute(`active`),e.active=!1)});let r=t.hasAttribute(`active`),i=n.filter(e=>e.hasAttribute(`active`)).length;r&&this.selectionRequired&&i<=1||(r?(t.removeAttribute(`active`),t.active=!1):(t.setAttribute(`active`,``),t.active=!0),this.dispatchEvent(new CustomEvent(`change`,{bubbles:!0,composed:!0,detail:{button:t,active:!r}})))}render(){let e=this.getGapValue(this.gap),t=this.gap.trim().toLowerCase(),n=[`0`,`0px`,`0rem`,`0em`].includes(t);return L`
|
|
6856
6871
|
<div
|
|
6857
6872
|
class="group-container"
|
|
6858
6873
|
style=${e?`gap: ${e};`:n?`gap: 0;`:``}
|
|
6859
6874
|
part="container"
|
|
6860
6875
|
role=${this.role}
|
|
6861
|
-
aria-label=${this.label||
|
|
6862
|
-
aria-labelledby=${this.labelledBy||
|
|
6876
|
+
aria-label=${this.label||R}
|
|
6877
|
+
aria-labelledby=${this.labelledBy||R}
|
|
6863
6878
|
@pointerdown=${this.handlePointerDown}
|
|
6864
6879
|
@pointerup=${this.handlePointerUp}
|
|
6865
6880
|
@pointercancel=${this.handlePointerUp}
|
|
@@ -6867,7 +6882,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6867
6882
|
>
|
|
6868
6883
|
<slot @slotchange=${this.handleSlotChange} @click=${this.handleClick}></slot>
|
|
6869
6884
|
</div>
|
|
6870
|
-
`}};
|
|
6885
|
+
`}};G([B({reflect:!0})],Zt.prototype,`variant`,void 0),G([B({reflect:!0})],Zt.prototype,`size`,void 0),G([B({type:Boolean,reflect:!0})],Zt.prototype,`multi`,void 0),G([B({type:Boolean,reflect:!0,attribute:`selection-required`})],Zt.prototype,`selectionRequired`,void 0),G([B({reflect:!0})],Zt.prototype,`shape`,void 0),G([B({reflect:!0})],Zt.prototype,`resizing`,void 0),G([B()],Zt.prototype,`gap`,void 0),G([B({reflect:!0})],Zt.prototype,`role`,void 0),G([B({reflect:!0})],Zt.prototype,`label`,void 0),G([B({reflect:!0,attribute:`labelled-by`})],Zt.prototype,`labelledBy`,void 0),G([Ge({flatten:!0})],Zt.prototype,`slottedButtons`,void 0),Zt=G([z(`moni-button-group`)],Zt);var Qt=class extends U{constructor(...e){super(...e),this.variant=`filled`,this.size=`small`,this.gap=``}static{this.styles=[W,g`
|
|
6871
6886
|
:host {
|
|
6872
6887
|
display: inline-flex;
|
|
6873
6888
|
align-items: center;
|
|
@@ -6971,12 +6986,12 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
6971
6986
|
--_split-trailing-width: 8.5rem;
|
|
6972
6987
|
--_split-label-size: 2rem;
|
|
6973
6988
|
}
|
|
6974
|
-
`]}updated(e){super.updated(e),(e.has(`variant`)||e.has(`size`)||e.has(`gap`))&&this.updateChildren()}handleSlotChange(){this.updateChildren()}getGapValue(e){if(!e)return``;let t=e.toLowerCase();return t===`xs`||t===`xsmall`?`1.125rem`:t===`s`||t===`small`?`0.75rem`:t===`m`||t===`medium`||t===`l`||t===`large`||t===`xl`||t===`xlarge`?`0.5rem`:e}updateChildren(){let e=this.leadingElements.find(e=>e.tagName.toLowerCase()===`moni-button`||e.tagName.toLowerCase()===`moni-icon-button`),t=this.trailingElements.find(e=>e.tagName.toLowerCase()===`moni-button`||e.tagName.toLowerCase()===`moni-icon-button`),n=this.gap.trim().toLowerCase(),r=![`0`,`0px`,`0rem`,`0em`].includes(n);e&&(e.setAttribute(`split-position`,`leading`),e.setAttribute(`shape`,r?`left-round`:`left-round-flat`),e.setAttribute(`size`,this.size),e.setAttribute(`variant`,this.variant)),t&&(t.setAttribute(`split-position`,`trailing`),t.setAttribute(`shape`,r?`right-round`:`right-round-flat`),t.setAttribute(`size`,this.size),t.setAttribute(`variant`,this.variant))}render(){let e=this.getGapValue(this.gap),t=this.gap.trim().toLowerCase(),n=[`0`,`0px`,`0rem`,`0em`].includes(t);return
|
|
6989
|
+
`]}updated(e){super.updated(e),(e.has(`variant`)||e.has(`size`)||e.has(`gap`))&&this.updateChildren()}handleSlotChange(){this.updateChildren()}getGapValue(e){if(!e)return``;let t=e.toLowerCase();return t===`xs`||t===`xsmall`?`1.125rem`:t===`s`||t===`small`?`0.75rem`:t===`m`||t===`medium`||t===`l`||t===`large`||t===`xl`||t===`xlarge`?`0.5rem`:e}updateChildren(){let e=this.leadingElements.find(e=>e.tagName.toLowerCase()===`moni-button`||e.tagName.toLowerCase()===`moni-icon-button`),t=this.trailingElements.find(e=>e.tagName.toLowerCase()===`moni-button`||e.tagName.toLowerCase()===`moni-icon-button`),n=this.gap.trim().toLowerCase(),r=![`0`,`0px`,`0rem`,`0em`].includes(n);e&&(e.setAttribute(`split-position`,`leading`),e.setAttribute(`shape`,r?`left-round`:`left-round-flat`),e.setAttribute(`size`,this.size),e.setAttribute(`variant`,this.variant)),t&&(t.setAttribute(`split-position`,`trailing`),t.setAttribute(`shape`,r?`right-round`:`right-round-flat`),t.setAttribute(`size`,this.size),t.setAttribute(`variant`,this.variant))}render(){let e=this.getGapValue(this.gap),t=this.gap.trim().toLowerCase(),n=[`0`,`0px`,`0rem`,`0em`].includes(t);return L`
|
|
6975
6990
|
<div class="wrapper" style=${`${e?`--_split-button-gap: ${e};`:``}${n?`--_split-inner-radius: 0;`:``}`} part="wrapper">
|
|
6976
6991
|
<slot name="leading-button" @slotchange=${this.handleSlotChange}></slot>
|
|
6977
6992
|
<slot name="trailing-button" @slotchange=${this.handleSlotChange}></slot>
|
|
6978
6993
|
</div>
|
|
6979
|
-
`}};
|
|
6994
|
+
`}};G([B({reflect:!0})],Qt.prototype,`variant`,void 0),G([B({reflect:!0})],Qt.prototype,`size`,void 0),G([B()],Qt.prototype,`gap`,void 0),G([Ge({slot:`leading-button`,flatten:!0})],Qt.prototype,`leadingElements`,void 0),G([Ge({slot:`trailing-button`,flatten:!0})],Qt.prototype,`trailingElements`,void 0),Qt=G([z(`moni-split-button`)],Qt);var $t=class extends U{constructor(...e){super(...e),this.value=`on`,this.checked=!1,this.size=`small`,this.disabled=!1,this.position=`solo`,this.hideCheck=!1}static{this.styles=[W,g`
|
|
6980
6995
|
.label {
|
|
6981
6996
|
display: inline-flex;
|
|
6982
6997
|
align-items: center;
|
|
@@ -7239,7 +7254,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7239
7254
|
:host([position='solo']) .button {
|
|
7240
7255
|
border-radius: 999px;
|
|
7241
7256
|
}
|
|
7242
|
-
`]}render(){return
|
|
7257
|
+
`]}render(){return L`
|
|
7243
7258
|
<button class="button ${this.size}" type="button" ?disabled=${this.disabled}>
|
|
7244
7259
|
<span class="checkmark" part="checkmark">
|
|
7245
7260
|
<moni-icon name="check"></moni-icon>
|
|
@@ -7247,7 +7262,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7247
7262
|
<slot name="icon"></slot>
|
|
7248
7263
|
<span class="label" part="label"><slot></slot></span>
|
|
7249
7264
|
</button>
|
|
7250
|
-
`}};
|
|
7265
|
+
`}};G([B({reflect:!0})],$t.prototype,`value`,void 0),G([B({type:Boolean,reflect:!0})],$t.prototype,`checked`,void 0),G([B({reflect:!0})],$t.prototype,`size`,void 0),G([B({type:Boolean,reflect:!0})],$t.prototype,`disabled`,void 0),G([B({reflect:!0})],$t.prototype,`position`,void 0),G([B({type:Boolean,reflect:!0,attribute:`hide-check`})],$t.prototype,`hideCheck`,void 0),$t=G([z(`moni-button-segment`)],$t);var en,tn=class extends U{static{en=this}static{this.formAssociated=!0}static{this._deprecationWarned=!1}constructor(){super(),this.name=``,this.multi=!1,this.size=`small`,this.hideCheck=!1,this.gap=``,this.internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),en._deprecationWarned||(en._deprecationWarned=!0,console.warn(`[moni-ui] <moni-segmented-button> is deprecated since v0.3.0. Material Design 3 Expressive no longer recommends segmented buttons. Use <moni-button-group variant="connected"> instead. See m3-docs/components/segmented-buttons/overview.md § M3 Expressive update.`))}get form(){return this.internals.form}get type(){return`segmented-button`}get value(){let e=this.segments.filter(e=>e.checked).map(e=>e.value);return this.multi?e.join(`,`):e[0]||``}get segments(){return this.slottedSegments.filter(e=>e.tagName.toLowerCase()===`moni-button-segment`)}static{this.styles=[W,g`
|
|
7251
7266
|
:host {
|
|
7252
7267
|
display: inline-flex;
|
|
7253
7268
|
align-items: center;
|
|
@@ -7274,11 +7289,11 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7274
7289
|
::slotted(moni-button-segment[checked]) {
|
|
7275
7290
|
flex-grow: 1.12;
|
|
7276
7291
|
}
|
|
7277
|
-
`]}updated(e){super.updated(e),(e.has(`hideCheck`)||e.has(`size`)||e.has(`gap`))&&this.updateChildren(),this.updateFormValue()}handleSlotChange(){this.updateChildren(),this.updateFormValue()}getGapValue(e){if(!e)return``;let t=e.toLowerCase();return t===`xs`||t===`xsmall`?`1.125rem`:t===`s`||t===`small`?`0.75rem`:t===`m`||t===`medium`||t===`l`||t===`large`||t===`xl`||t===`xlarge`?`0.5rem`:e}updateChildren(){let e=this.segments,t=e.length;e.forEach((e,n)=>{e.hideCheck=this.hideCheck,e.size=this.size,e.position=t===1?`solo`:n===0?`first`:n===t-1?`last`:`middle`})}updateFormValue(){typeof this.internals.setFormValue==`function`&&this.internals.setFormValue(this.value)}handleClick(e){let t=e.target.closest(`moni-button-segment`);if(!t||t.disabled)return;let n=this.segments;this.multi?t.checked=!t.checked:n.forEach(e=>{e.checked=e===t&&!e.checked}),this.updateFormValue(),this.dispatchEvent(new CustomEvent(`change`,{bubbles:!0,composed:!0,detail:{value:this.value,segment:t,checked:t.checked}}))}render(){let e=this.getGapValue(this.gap);return
|
|
7292
|
+
`]}updated(e){super.updated(e),(e.has(`hideCheck`)||e.has(`size`)||e.has(`gap`))&&this.updateChildren(),this.updateFormValue()}handleSlotChange(){this.updateChildren(),this.updateFormValue()}getGapValue(e){if(!e)return``;let t=e.toLowerCase();return t===`xs`||t===`xsmall`?`1.125rem`:t===`s`||t===`small`?`0.75rem`:t===`m`||t===`medium`||t===`l`||t===`large`||t===`xl`||t===`xlarge`?`0.5rem`:e}updateChildren(){let e=this.segments,t=e.length;e.forEach((e,n)=>{e.hideCheck=this.hideCheck,e.size=this.size,e.position=t===1?`solo`:n===0?`first`:n===t-1?`last`:`middle`})}updateFormValue(){typeof this.internals.setFormValue==`function`&&this.internals.setFormValue(this.value)}handleClick(e){let t=e.target.closest(`moni-button-segment`);if(!t||t.disabled)return;let n=this.segments;this.multi?t.checked=!t.checked:n.forEach(e=>{e.checked=e===t&&!e.checked}),this.updateFormValue(),this.dispatchEvent(new CustomEvent(`change`,{bubbles:!0,composed:!0,detail:{value:this.value,segment:t,checked:t.checked}}))}render(){let e=this.getGapValue(this.gap);return L`
|
|
7278
7293
|
<div class="group" style=${e?`gap: ${e}; --moni-button-segment-gap: 0px;`:``} part="group" @click=${this.handleClick}>
|
|
7279
7294
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
7280
7295
|
</div>
|
|
7281
|
-
`}};K([V({reflect:!0})],nn.prototype,`name`,void 0),K([V({type:Boolean,reflect:!0})],nn.prototype,`multi`,void 0),K([V({reflect:!0})],nn.prototype,`size`,void 0),K([V({type:Boolean,reflect:!0,attribute:`hide-check`})],nn.prototype,`hideCheck`,void 0),K([V()],nn.prototype,`gap`,void 0),K([We({flatten:!0})],nn.prototype,`slottedSegments`,void 0),nn=tn=K([B(`moni-segmented-button`)],nn);var rn={"4-sided-cookie":`63.83% 2.22%, 65.10% 1.70%, 66.36% 1.26%, 67.62% 0.89%, 68.88% 0.58%, 70.14% 0.34%, 71.39% 0.16%, 72.63% 0.05%, 73.86% 0.00%, 75.08% 0.01%, 76.28% 0.08%, 77.48% 0.21%, 78.66% 0.40%, 79.82% 0.63%, 80.97% 0.93%, 82.09% 1.27%, 83.20% 1.67%, 84.28% 2.11%, 85.34% 2.60%, 86.37% 3.14%, 87.38% 3.72%, 88.36% 4.35%, 89.31% 5.02%, 90.23% 5.73%, 91.12% 6.48%, 91.98% 7.26%, 92.80% 8.09%, 93.58% 8.94%, 94.32% 9.83%, 95.03% 10.76%, 95.70% 11.71%, 96.32% 12.69%, 96.90% 13.70%, 97.43% 14.74%, 97.92% 15.80%, 98.36% 16.88%, 98.76% 17.99%, 99.10% 19.12%, 99.38% 20.26%, 99.62% 21.43%, 99.80% 22.61%, 99.92% 23.80%, 99.99% 25.01%, 100.00% 26.23%, 99.94% 27.47%, 99.83% 28.71%, 99.65% 29.95%, 99.40% 31.21%, 99.09% 32.47%, 98.71% 33.73%, 98.26% 35.00%, 97.75% 36.25%, 97.26% 37.36%, 96.78% 38.47%, 96.30% 39.59%, 95.83% 40.72%, 95.42% 41.87%, 95.06% 43.03%, 94.76% 44.21%, 94.52% 45.40%, 94.33% 46.59%, 94.20% 47.79%, 94.12% 48.99%, 94.11% 50.19%, 94.14% 51.40%, 94.24% 52.60%, 94.39% 53.80%, 94.59% 54.99%, 94.85% 56.17%, 95.17% 57.34%, 95.55% 58.50%, 95.98% 59.65%, 96.45% 60.77%, 96.94% 61.89%, 97.42% 63.00%, 97.92% 64.15%, 98.41% 65.41%, 98.84% 66.68%, 99.20% 67.94%, 99.49% 69.20%, 99.71% 70.45%, 99.87% 71.70%, 99.97% 72.93%, 100.00% 74.16%, 99.97% 75.38%, 99.89% 76.58%, 99.75% 77.78%, 99.55% 78.95%, 99.30% 80.11%, 98.99% 81.25%, 98.63% 82.37%, 98.23% 83.47%, 97.77% 84.55%, 97.27% 85.60%, 96.72% 86.63%, 96.12% 87.63%, 95.49% 88.60%, 94.81% 89.55%, 94.09% 90.46%, 93.33% 91.34%, 92.54% 92.19%, 91.70% 93.00%, 90.84% 93.77%, 89.94% 94.51%, 89.01% 95.20%, 88.05% 95.86%, 87.06% 96.47%, 86.04% 97.04%, 85.00% 97.56%, 83.93% 98.04%, 82.84% 98.47%, 81.73% 98.85%, 80.60% 99.17%, 79.45% 99.45%, 78.28% 99.67%, 77.09% 99.84%, 75.89% 99.95%, 74.68% 100.00%, 73.46% 99.99%, 72.23% 99.92%, 70.98% 99.79%, 69.73% 99.59%, 68.48% 99.33%, 67.22% 99.00%, 65.95% 98.60%, 64.69% 98.14%, 63.47% 97.63%, 62.36% 97.14%, 61.25% 96.66%, 60.13% 96.18%, 58.99% 95.72%, 57.84% 95.32%, 56.67% 94.98%, 55.49% 94.70%, 54.31% 94.47%, 53.11% 94.29%, 51.91% 94.18%, 50.71% 94.11%, 49.50% 94.11%, 48.30% 94.16%, 47.10% 94.27%, 45.90% 94.43%, 44.71% 94.65%, 43.53% 94.93%, 42.36% 95.26%, 41.21% 95.65%, 40.07% 96.09%, 38.95% 96.58%, 37.84% 97.06%, 36.72% 97.54%, 35.54% 98.05%, 34.27% 98.53%, 33.01% 98.94%, 31.74% 99.28%, 30.49% 99.55%, 29.24% 99.76%, 27.99% 99.90%, 26.76% 99.98%, 25.53% 100.00%, 24.32% 99.96%, 23.12% 99.86%, 21.93% 99.70%, 20.76% 99.49%, 19.60% 99.23%, 18.47% 98.91%, 17.35% 98.54%, 16.26% 98.12%, 15.19% 97.65%, 14.14% 97.13%, 13.12% 96.57%, 12.12% 95.97%, 11.16% 95.32%, 10.22% 94.63%, 9.32% 93.90%, 8.45% 93.14%, 7.61% 92.33%, 6.81% 91.49%, 6.04% 90.62%, 5.32% 89.71%, 4.63% 88.77%, 3.99% 87.80%, 3.38% 86.81%, 2.83% 85.78%, 2.31% 84.74%, 1.85% 83.66%, 1.43% 82.57%, 1.07% 81.45%, 0.75% 80.31%, 0.49% 79.16%, 0.28% 77.98%, 0.13% 76.80%, 0.04% 75.59%, 0.00% 74.38%, 0.02% 73.15%, 0.11% 71.92%, 0.26% 70.67%, 0.47% 69.42%, 0.75% 68.16%, 1.09% 66.90%, 1.51% 65.64%, 1.99% 64.37%, 2.49% 63.19%, 2.98% 62.08%, 3.46% 60.97%, 3.94% 59.85%, 4.38% 58.71%, 4.77% 57.55%, 5.09% 56.38%, 5.37% 55.20%, 5.58% 54.01%, 5.74% 52.81%, 5.84% 51.61%, 5.89% 50.41%, 5.88% 49.20%, 5.82% 48.00%, 5.70% 46.80%, 5.52% 45.61%, 5.28% 44.42%, 4.99% 43.24%, 4.65% 42.07%, 4.25% 40.92%, 3.79% 39.78%, 3.30% 38.67%, 2.82% 37.56%, 2.34% 36.45%, 1.82% 35.22%, 1.36% 33.95%, 0.97% 32.69%, 0.65% 31.43%, 0.39% 30.18%, 0.20% 28.93%, 0.07% 27.68%, 0.01% 26.45%, 0.01% 25.23%, 0.06% 24.02%, 0.17% 22.82%, 0.34% 21.64%, 0.57% 20.47%, 0.85% 19.32%, 1.18% 18.19%, 1.56% 17.08%, 2.00% 15.99%, 2.48% 14.92%, 3.00% 13.88%, 3.57% 12.87%, 4.19% 11.88%, 4.85% 10.92%, 5.55% 9.99%, 6.29% 9.10%, 7.06% 8.23%, 7.88% 7.41%, 8.72% 6.61%, 9.61% 5.86%, 10.52% 5.14%, 11.47% 4.47%, 12.44% 3.83%, 13.45% 3.24%, 14.48% 2.69%, 15.53% 2.19%, 16.61% 1.74%, 17.71% 1.34%, 18.83% 0.98%, 19.98% 0.68%, 21.14% 0.43%, 22.31% 0.24%, 23.50% 0.10%, 24.71% 0.02%, 25.93% 0.00%, 27.16% 0.04%, 28.39% 0.14%, 29.64% 0.30%, 30.89% 0.53%, 32.15% 0.83%, 33.41% 1.19%, 34.68% 1.62%, 35.94% 2.12%, 37.08% 2.61%, 38.20% 3.10%, 39.31% 3.58%, 40.43% 4.06%, 41.58% 4.48%, 42.74% 4.85%, 43.91% 5.17%, 45.10% 5.43%, 46.29% 5.63%, 47.49% 5.77%, 48.69% 5.86%, 49.89% 5.90%, 51.10% 5.87%, 52.30% 5.79%, 53.50% 5.66%, 54.69% 5.47%, 55.88% 5.22%, 57.05% 4.91%, 58.21% 4.55%, 59.36% 4.14%, 60.49% 3.67%, 61.61% 3.18%, 62.72% 2.70%, 63.83% 2.22%`,"9-sided-cookie":`61.39% 5.18%, 62.25% 5.81%, 63.15% 6.37%, 64.08% 6.88%, 65.04% 7.33%, 66.03% 7.71%, 67.04% 8.02%, 68.07% 8.27%, 69.11% 8.45%, 70.17% 8.57%, 71.18% 8.61%, 72.43% 8.63%, 73.38% 8.68%, 74.46% 8.80%, 75.52% 9.00%, 76.56% 9.26%, 77.57% 9.59%, 78.55% 9.98%, 79.50% 10.44%, 80.42% 10.95%, 81.30% 11.52%, 82.14% 12.14%, 82.93% 12.81%, 83.69% 13.54%, 84.39% 14.31%, 85.05% 15.13%, 85.65% 15.99%, 86.20% 16.89%, 86.69% 17.84%, 87.12% 18.81%, 87.49% 19.83%, 87.79% 20.87%, 87.99% 21.78%, 88.22% 23.01%, 88.46% 24.01%, 88.76% 25.02%, 89.14% 26.02%, 89.57% 26.98%, 90.07% 27.91%, 90.63% 28.81%, 91.24% 29.67%, 91.91% 30.49%, 92.64% 31.27%, 93.40% 31.98%, 94.34% 32.79%, 95.02% 33.41%, 95.78% 34.19%, 96.48% 35.02%, 97.12% 35.88%, 97.70% 36.77%, 98.21% 37.69%, 98.66% 38.65%, 99.05% 39.62%, 99.37% 40.62%, 99.63% 41.63%, 99.82% 42.66%, 99.94% 43.70%, 100.00% 44.74%, 99.99% 45.79%, 99.91% 46.84%, 99.76% 47.88%, 99.54% 48.92%, 99.26% 49.95%, 98.90% 50.97%, 98.47% 51.97%, 98.04% 52.81%, 97.43% 53.91%, 96.96% 54.80%, 96.53% 55.77%, 96.16% 56.77%, 95.86% 57.78%, 95.63% 58.81%, 95.46% 59.86%, 95.36% 60.91%, 95.34% 61.97%, 95.38% 63.03%, 95.49% 64.09%, 95.68% 65.27%, 95.82% 66.19%, 95.91% 67.28%, 95.93% 68.36%, 95.88% 69.43%, 95.76% 70.49%, 95.57% 71.53%, 95.32% 72.55%, 95.00% 73.55%, 94.61% 74.53%, 94.17% 75.47%, 93.66% 76.39%, 93.10% 77.27%, 92.48% 78.11%, 91.81% 78.92%, 91.09% 79.68%, 90.31% 80.39%, 89.48% 81.06%, 88.61% 81.68%, 87.69% 82.23%, 86.73% 82.74%, 85.81% 83.14%, 84.74% 83.55%, 83.75% 83.94%, 82.78% 84.40%, 81.85% 84.91%, 80.96% 85.49%, 80.11% 86.11%, 79.30% 86.80%, 78.54% 87.53%, 77.83% 88.31%, 77.17% 89.14%, 76.56% 90.02%, 75.97% 90.98%, 75.43% 91.87%, 74.84% 92.73%, 74.17% 93.59%, 73.45% 94.38%, 72.69% 95.13%, 71.89% 95.82%, 71.04% 96.45%, 70.16% 97.02%, 69.25% 97.53%, 68.30% 97.99%, 67.34% 98.38%, 66.34% 98.71%, 65.33% 98.97%, 64.30% 99.17%, 63.26% 99.30%, 62.21% 99.37%, 61.15% 99.37%, 60.08% 99.29%, 59.02% 99.15%, 57.96% 98.93%, 56.92% 98.65%, 55.99% 98.34%, 54.89% 97.96%, 53.86% 97.67%, 52.82% 97.46%, 51.77% 97.31%, 50.72% 97.23%, 49.66% 97.21%, 48.61% 97.27%, 47.55% 97.39%, 46.51% 97.59%, 45.48% 97.85%, 44.51% 98.16%, 43.35% 98.56%, 42.42% 98.84%, 41.36% 99.08%, 40.30% 99.25%, 39.24% 99.35%, 38.18% 99.38%, 37.12% 99.34%, 36.07% 99.23%, 35.04% 99.05%, 34.02% 98.81%, 33.02% 98.50%, 32.04% 98.13%, 31.09% 97.70%, 30.17% 97.21%, 29.27% 96.66%, 28.42% 96.05%, 27.60% 95.38%, 26.82% 94.66%, 26.08% 93.88%, 25.40% 93.04%, 24.76% 92.16%, 24.27% 91.38%, 23.64% 90.33%, 23.06% 89.45%, 22.42% 88.60%, 21.72% 87.80%, 20.98% 87.05%, 20.19% 86.35%, 19.35% 85.70%, 18.47% 85.11%, 17.56% 84.58%, 16.60% 84.10%, 15.67% 83.70%, 14.49% 83.26%, 13.63% 82.90%, 12.65% 82.42%, 11.72% 81.88%, 10.83% 81.29%, 9.98% 80.64%, 9.19% 79.94%, 8.45% 79.20%, 7.75% 78.41%, 7.12% 77.58%, 6.53% 76.71%, 6.01% 75.81%, 5.54% 74.87%, 5.14% 73.91%, 4.80% 72.92%, 4.52% 71.90%, 4.30% 70.87%, 4.16% 69.82%, 4.08% 68.75%, 4.08% 67.67%, 4.15% 66.59%, 4.26% 65.66%, 4.47% 64.41%, 4.59% 63.41%, 4.66% 62.35%, 4.66% 61.29%, 4.59% 60.23%, 4.44% 59.18%, 4.24% 58.15%, 3.96% 57.13%, 3.62% 56.12%, 3.21% 55.14%, 2.73% 54.19%, 2.14% 53.14%, 1.71% 52.32%, 1.25% 51.33%, 0.87% 50.32%, 0.55% 49.29%, 0.31% 48.25%, 0.14% 47.21%, 0.04% 46.16%, 0.00% 45.11%, 0.03% 44.07%, 0.13% 43.03%, 0.30% 42.00%, 0.53% 40.98%, 0.83% 39.98%, 1.19% 38.99%, 1.62% 38.03%, 2.11% 37.10%, 2.67% 36.19%, 3.28% 35.32%, 3.96% 34.48%, 4.70% 33.69%, 5.41% 33.02%, 6.33% 32.22%, 7.09% 31.54%, 7.84% 30.78%, 8.53% 29.97%, 9.16% 29.12%, 9.74% 28.24%, 10.26% 27.32%, 10.72% 26.37%, 11.11% 25.38%, 11.45% 24.37%, 11.71% 23.34%, 11.94% 22.20%, 12.13% 21.24%, 12.40% 20.20%, 12.75% 19.17%, 13.15% 18.18%, 13.62% 17.23%, 14.15% 16.31%, 14.73% 15.43%, 15.37% 14.60%, 16.06% 13.81%, 16.80% 13.07%, 17.58% 12.37%, 18.40% 11.73%, 19.27% 11.14%, 20.17% 10.61%, 21.11% 10.14%, 22.08% 9.72%, 23.08% 9.37%, 24.11% 9.09%, 25.16% 8.87%, 26.24% 8.72%, 27.27% 8.64%, 28.33% 8.62%, 29.45% 8.59%, 30.51% 8.50%, 31.56% 8.34%, 32.60% 8.12%, 33.62% 7.83%, 34.61% 7.47%, 35.58% 7.05%, 36.52% 6.56%, 37.43% 6.02%, 38.31% 5.41%, 39.15% 4.75%, 39.15% 4.75%, 40.04% 4.03%, 40.85% 3.44%, 41.76% 2.86%, 42.71% 2.35%, 43.68% 1.90%, 44.67% 1.52%, 45.68% 1.21%, 46.70% 0.96%, 47.73% 0.78%, 48.77% 0.67%, 49.81% 0.62%, 50.86% 0.65%, 51.90% 0.73%, 52.94% 0.89%, 53.96% 1.11%, 54.98% 1.40%, 55.97% 1.76%, 56.95% 2.18%, 57.90% 2.67%, 58.83% 3.23%, 59.73% 3.85%, 60.46% 4.43%`,oval:`72.29% 0.03%, 73.21% 0.08%, 74.12% 0.15%, 75.02% 0.24%, 75.92% 0.35%, 76.80% 0.49%, 77.67% 0.64%, 78.54% 0.82%, 79.39% 1.02%, 80.23% 1.24%, 81.06% 1.49%, 81.87% 1.75%, 82.68% 2.04%, 83.47% 2.35%, 84.25% 2.68%, 85.01% 3.04%, 85.76% 3.42%, 86.50% 3.82%, 87.23% 4.24%, 87.93% 4.69%, 88.63% 5.15%, 89.31% 5.65%, 89.97% 6.16%, 90.62% 6.70%, 91.25% 7.26%, 91.86% 7.84%, 92.45% 8.45%, 93.03% 9.07%, 93.57% 9.71%, 94.10% 10.36%, 94.60% 11.03%, 95.08% 11.72%, 95.54% 12.42%, 95.97% 13.13%, 96.39% 13.86%, 96.77% 14.61%, 97.14% 15.37%, 97.48% 16.14%, 97.81% 16.93%, 98.11% 17.72%, 98.38% 18.53%, 98.64% 19.36%, 98.87% 20.19%, 99.08% 21.04%, 99.27% 21.89%, 99.44% 22.76%, 99.58% 23.64%, 99.71% 24.53%, 99.81% 25.43%, 99.89% 26.33%, 99.95% 27.25%, 99.98% 28.18%, 100.00% 29.11%, 99.99% 30.05%, 99.97% 31.00%, 99.92% 31.96%, 99.85% 32.92%, 99.76% 33.89%, 99.65% 34.87%, 99.52% 35.85%, 99.37% 36.84%, 99.20% 37.83%, 99.00% 38.83%, 98.79% 39.84%, 98.55% 40.84%, 98.30% 41.86%, 98.02% 42.87%, 97.73% 43.89%, 97.41% 44.91%, 97.08% 45.93%, 96.72% 46.96%, 96.35% 47.99%, 95.95% 49.02%, 95.53% 50.05%, 95.10% 51.08%, 94.65% 52.11%, 94.17% 53.15%, 93.68% 54.18%, 93.16% 55.21%, 92.63% 56.24%, 92.08% 57.27%, 91.51% 58.30%, 90.92% 59.33%, 90.31% 60.35%, 89.68% 61.37%, 89.03% 62.39%, 88.37% 63.41%, 87.68% 64.42%, 86.98% 65.43%, 86.26% 66.43%, 85.52% 67.43%, 84.76% 68.43%, 83.98% 69.42%, 83.18% 70.40%, 82.37% 71.38%, 81.54% 72.35%, 80.69% 73.32%, 79.82% 74.27%, 78.93% 75.22%, 78.03% 76.17%, 77.10% 77.10%, 77.10% 77.10%, 76.17% 78.03%, 75.22% 78.93%, 74.27% 79.82%, 73.32% 80.69%, 72.35% 81.54%, 71.38% 82.37%, 70.40% 83.18%, 69.42% 83.98%, 68.43% 84.76%, 67.43% 85.52%, 66.43% 86.26%, 65.43% 86.98%, 64.42% 87.68%, 63.41% 88.37%, 62.39% 89.03%, 61.37% 89.68%, 60.35% 90.31%, 59.33% 90.92%, 58.30% 91.51%, 57.27% 92.08%, 56.24% 92.63%, 55.21% 93.16%, 54.18% 93.68%, 53.15% 94.17%, 52.11% 94.65%, 51.08% 95.10%, 50.05% 95.53%, 49.02% 95.95%, 47.99% 96.35%, 46.96% 96.72%, 45.93% 97.08%, 44.91% 97.41%, 43.89% 97.73%, 42.87% 98.02%, 41.86% 98.30%, 40.84% 98.55%, 39.84% 98.79%, 38.83% 99.00%, 37.83% 99.20%, 36.84% 99.37%, 35.85% 99.52%, 34.87% 99.65%, 33.89% 99.76%, 32.92% 99.85%, 31.96% 99.92%, 31.00% 99.97%, 30.05% 99.99%, 29.11% 100.00%, 28.18% 99.98%, 27.25% 99.95%, 26.33% 99.89%, 25.43% 99.81%, 24.53% 99.71%, 23.64% 99.58%, 22.76% 99.44%, 21.89% 99.27%, 21.04% 99.08%, 20.19% 98.87%, 19.36% 98.64%, 18.53% 98.38%, 17.72% 98.11%, 16.93% 97.81%, 16.14% 97.48%, 15.37% 97.14%, 14.61% 96.77%, 13.86% 96.39%, 13.13% 95.97%, 12.42% 95.54%, 11.72% 95.08%, 11.03% 94.60%, 10.36% 94.10%, 9.71% 93.57%, 9.07% 93.03%, 8.45% 92.45%, 7.84% 91.86%, 7.26% 91.25%, 6.70% 90.62%, 6.16% 89.97%, 5.65% 89.31%, 5.15% 88.63%, 4.69% 87.93%, 4.24% 87.23%, 3.82% 86.50%, 3.42% 85.76%, 3.04% 85.01%, 2.68% 84.25%, 2.35% 83.47%, 2.04% 82.68%, 1.75% 81.87%, 1.49% 81.06%, 1.24% 80.23%, 1.02% 79.39%, 0.82% 78.54%, 0.64% 77.67%, 0.49% 76.80%, 0.35% 75.92%, 0.24% 75.02%, 0.15% 74.12%, 0.08% 73.21%, 0.03% 72.29%, 0.01% 71.36%, 0.00% 70.42%, 0.02% 69.47%, 0.05% 68.52%, 0.11% 67.56%, 0.19% 66.59%, 0.29% 65.62%, 0.41% 64.64%, 0.55% 63.65%, 0.72% 62.66%, 0.90% 61.67%, 1.10% 60.67%, 1.33% 59.66%, 1.57% 58.65%, 1.84% 57.64%, 2.12% 56.62%, 2.43% 55.60%, 2.75% 54.58%, 3.10% 53.55%, 3.46% 52.53%, 3.85% 51.50%, 4.25% 50.47%, 4.68% 49.43%, 5.12% 48.40%, 5.59% 47.37%, 6.07% 46.34%, 6.58% 45.31%, 7.10% 44.27%, 7.64% 43.24%, 8.20% 42.21%, 8.78% 41.19%, 9.38% 40.16%, 10.00% 39.14%, 10.64% 38.12%, 11.30% 37.10%, 11.97% 36.09%, 12.67% 35.07%, 13.38% 34.07%, 14.11% 33.07%, 14.86% 32.07%, 15.63% 31.08%, 16.42% 30.09%, 17.22% 29.11%, 18.05% 28.13%, 18.89% 27.17%, 19.75% 26.20%, 20.62% 25.25%, 21.52% 24.30%, 22.43% 23.36%, 23.36% 22.43%, 24.30% 21.52%, 25.25% 20.62%, 26.20% 19.75%, 27.17% 18.89%, 28.13% 18.05%, 29.11% 17.22%, 30.09% 16.42%, 31.08% 15.63%, 32.07% 14.86%, 33.07% 14.11%, 34.07% 13.38%, 35.07% 12.67%, 36.09% 11.97%, 37.10% 11.30%, 38.12% 10.64%, 39.14% 10.00%, 40.16% 9.38%, 41.19% 8.78%, 42.21% 8.20%, 43.24% 7.64%, 44.27% 7.10%, 45.31% 6.58%, 46.34% 6.07%, 47.37% 5.59%, 48.40% 5.12%, 49.43% 4.68%, 50.47% 4.25%, 51.50% 3.85%, 52.53% 3.46%, 53.55% 3.10%, 54.58% 2.75%, 55.60% 2.43%, 56.62% 2.12%, 57.64% 1.84%, 58.65% 1.57%, 59.66% 1.33%, 60.67% 1.10%, 61.67% 0.90%, 62.66% 0.72%, 63.65% 0.55%, 64.64% 0.41%, 65.62% 0.29%, 66.59% 0.19%, 67.56% 0.11%, 68.52% 0.05%, 69.47% 0.02%, 70.42% 0.00%, 71.36% 0.01%`,pentagon:`61.18% 5.13%, 62.02% 5.74%, 62.86% 6.35%, 63.70% 6.96%, 64.54% 7.58%, 65.38% 8.19%, 66.22% 8.80%, 67.07% 9.41%, 67.91% 10.02%, 68.75% 10.63%, 69.59% 11.24%, 70.43% 11.85%, 71.27% 12.47%, 72.11% 13.08%, 72.96% 13.69%, 73.80% 14.30%, 74.64% 14.91%, 75.48% 15.52%, 76.32% 16.13%, 77.16% 16.74%, 78.00% 17.36%, 78.85% 17.97%, 79.69% 18.58%, 80.53% 19.19%, 81.37% 19.80%, 82.21% 20.41%, 83.05% 21.02%, 83.89% 21.64%, 84.74% 22.25%, 85.58% 22.86%, 86.42% 23.47%, 87.26% 24.08%, 88.10% 24.69%, 88.94% 25.30%, 89.78% 25.91%, 90.62% 26.53%, 91.47% 27.14%, 92.31% 27.75%, 93.15% 28.41%, 93.95% 29.12%, 94.70% 29.85%, 95.40% 30.63%, 96.05% 31.44%, 96.66% 32.27%, 97.22% 33.14%, 97.73% 34.03%, 98.19% 34.95%, 98.60% 35.89%, 98.96% 36.85%, 99.27% 37.83%, 99.52% 38.82%, 99.72% 39.83%, 99.87% 40.84%, 99.96% 41.87%, 100.00% 42.90%, 99.98% 43.94%, 99.90% 44.98%, 99.77% 46.02%, 99.58% 47.05%, 99.32% 48.09%, 99.01% 49.11%, 98.69% 50.09%, 98.37% 51.08%, 98.05% 52.07%, 97.73% 53.06%, 97.41% 54.05%, 97.09% 55.04%, 96.76% 56.03%, 96.44% 57.02%, 96.12% 58.01%, 95.80% 59.00%, 95.48% 59.99%, 95.16% 60.97%, 94.84% 61.96%, 94.51% 62.95%, 94.19% 63.94%, 93.87% 64.93%, 93.55% 65.92%, 93.23% 66.91%, 92.91% 67.90%, 92.59% 68.89%, 92.26% 69.88%, 91.94% 70.87%, 91.62% 71.85%, 91.30% 72.84%, 90.98% 73.83%, 90.66% 74.82%, 90.34% 75.81%, 90.02% 76.80%, 89.69% 77.79%, 89.37% 78.78%, 89.05% 79.77%, 88.73% 80.76%, 88.41% 81.75%, 88.09% 82.73%, 87.77% 83.72%, 87.44% 84.71%, 87.11% 85.71%, 86.73% 86.71%, 86.30% 87.68%, 85.82% 88.61%, 85.29% 89.51%, 84.72% 90.38%, 84.10% 91.21%, 83.44% 92.00%, 82.74% 92.75%, 82.01% 93.47%, 81.23% 94.14%, 80.42% 94.77%, 79.58% 95.35%, 78.71% 95.89%, 77.81% 96.39%, 76.88% 96.83%, 75.93% 97.22%, 74.96% 97.57%, 73.96% 97.86%, 72.94% 98.10%, 71.91% 98.28%, 70.86% 98.40%, 69.80% 98.47%, 68.74% 98.48%, 67.70% 98.48%, 66.66% 98.48%, 65.62% 98.48%, 64.58% 98.48%, 63.54% 98.48%, 62.50% 98.48%, 61.46% 98.48%, 60.42% 98.48%, 59.38% 98.48%, 58.34% 98.48%, 57.30% 98.48%, 56.26% 98.48%, 55.22% 98.48%, 54.18% 98.48%, 53.14% 98.48%, 52.10% 98.48%, 51.06% 98.48%, 50.02% 98.48%, 48.98% 98.48%, 47.94% 98.48%, 46.90% 98.48%, 45.86% 98.48%, 44.82% 98.48%, 43.78% 98.48%, 42.74% 98.48%, 41.70% 98.48%, 40.66% 98.48%, 39.62% 98.48%, 38.58% 98.48%, 37.54% 98.48%, 36.50% 98.48%, 35.46% 98.48%, 34.42% 98.48%, 33.38% 98.48%, 32.34% 98.48%, 31.30% 98.48%, 30.24% 98.47%, 29.18% 98.41%, 28.13% 98.28%, 27.09% 98.10%, 26.08% 97.87%, 25.08% 97.58%, 24.11% 97.24%, 23.15% 96.85%, 22.22% 96.40%, 21.32% 95.91%, 20.45% 95.37%, 19.61% 94.79%, 18.80% 94.16%, 18.02% 93.49%, 17.28% 92.78%, 16.58% 92.03%, 15.92% 91.24%, 15.30% 90.41%, 14.73% 89.54%, 14.20% 88.64%, 13.71% 87.71%, 13.28% 86.75%, 12.90% 85.75%, 12.57% 84.75%, 12.25% 83.76%, 11.93% 82.77%, 11.60% 81.78%, 11.28% 80.79%, 10.96% 79.80%, 10.64% 78.82%, 10.32% 77.83%, 10.00% 76.84%, 9.68% 75.85%, 9.35% 74.86%, 9.03% 73.87%, 8.71% 72.88%, 8.39% 71.89%, 8.07% 70.90%, 7.75% 69.91%, 7.43% 68.92%, 7.10% 67.94%, 6.78% 66.95%, 6.46% 65.96%, 6.14% 64.97%, 5.82% 63.98%, 5.50% 62.99%, 5.18% 62.00%, 4.86% 61.01%, 4.53% 60.02%, 4.21% 59.03%, 3.89% 58.04%, 3.57% 57.06%, 3.25% 56.07%, 2.93% 55.08%, 2.61% 54.09%, 2.28% 53.10%, 1.96% 52.11%, 1.64% 51.12%, 1.32% 50.13%, 1.00% 49.14%, 0.69% 48.12%, 0.43% 47.09%, 0.24% 46.06%, 0.10% 45.02%, 0.02% 43.98%, 0.00% 42.94%, 0.03% 41.91%, 0.12% 40.88%, 0.27% 39.86%, 0.47% 38.86%, 0.72% 37.86%, 1.03% 36.89%, 1.38% 35.93%, 1.79% 34.99%, 2.25% 34.07%, 2.76% 33.17%, 3.32% 32.31%, 3.92% 31.47%, 4.58% 30.66%, 5.28% 29.88%, 6.03% 29.14%, 6.82% 28.44%, 7.66% 27.78%, 8.50% 27.16%, 9.34% 26.55%, 10.19% 25.94%, 11.03% 25.33%, 11.87% 24.71%, 12.71% 24.10%, 13.55% 23.49%, 14.39% 22.88%, 15.23% 22.27%, 16.08% 21.66%, 16.92% 21.05%, 17.76% 20.44%, 18.60% 19.82%, 19.44% 19.21%, 20.28% 18.60%, 21.12% 17.99%, 21.96% 17.38%, 22.81% 16.77%, 23.65% 16.16%, 24.49% 15.55%, 25.33% 14.93%, 26.17% 14.32%, 27.01% 13.71%, 27.85% 13.10%, 28.70% 12.49%, 29.54% 11.88%, 30.38% 11.27%, 31.22% 10.65%, 32.06% 10.04%, 32.90% 9.43%, 33.74% 8.82%, 34.59% 8.21%, 35.43% 7.60%, 36.27% 6.99%, 37.11% 6.38%, 37.95% 5.76%, 38.79% 5.15%, 38.79% 5.15%, 39.68% 4.55%, 40.58% 4.00%, 41.51% 3.50%, 42.46% 3.06%, 43.43% 2.68%, 44.41% 2.35%, 45.41% 2.07%, 46.41% 1.85%, 47.43% 1.69%, 48.45% 1.57%, 49.47% 1.52%, 50.49% 1.52%, 51.52% 1.57%, 52.54% 1.68%, 53.55% 1.84%, 54.56% 2.06%, 55.55% 2.34%, 56.53% 2.66%, 57.50% 3.05%, 58.45% 3.49%, 59.38% 3.98%, 60.29% 4.53%`,pill:`64.49% 0.65%, 65.49% 0.84%, 66.48% 1.05%, 67.48% 1.28%, 68.46% 1.54%, 69.44% 1.83%, 70.42% 2.13%, 71.39% 2.46%, 72.35% 2.81%, 73.30% 3.19%, 74.25% 3.59%, 75.19% 4.02%, 76.12% 4.47%, 77.05% 4.94%, 77.96% 5.43%, 78.87% 5.95%, 79.76% 6.50%, 80.64% 7.06%, 81.52% 7.66%, 82.38% 8.27%, 83.23% 8.91%, 84.06% 9.57%, 84.89% 10.26%, 85.70% 10.96%, 86.49% 11.70%, 87.28% 12.45%, 88.04% 13.23%, 88.78% 14.02%, 89.50% 14.83%, 90.19% 15.65%, 90.86% 16.48%, 91.51% 17.33%, 92.13% 18.18%, 92.73% 19.05%, 93.31% 19.93%, 93.86% 20.82%, 94.39% 21.72%, 94.89% 22.63%, 95.37% 23.55%, 95.83% 24.48%, 96.26% 25.42%, 96.67% 26.36%, 97.06% 27.32%, 97.42% 28.28%, 97.76% 29.24%, 98.07% 30.22%, 98.36% 31.20%, 98.63% 32.18%, 98.87% 33.17%, 99.09% 34.16%, 99.29% 35.16%, 99.46% 36.16%, 99.61% 37.16%, 99.73% 38.17%, 99.83% 39.18%, 99.91% 40.19%, 99.96% 41.20%, 99.99% 42.21%, 100.00% 43.23%, 99.98% 44.24%, 99.94% 45.25%, 99.88% 46.26%, 99.79% 47.27%, 99.68% 48.28%, 99.54% 49.29%, 99.38% 50.29%, 99.20% 51.29%, 98.99% 52.28%, 98.76% 53.27%, 98.50% 54.26%, 98.22% 55.24%, 97.92% 56.22%, 97.60% 57.19%, 97.25% 58.15%, 96.87% 59.11%, 96.48% 60.06%, 96.06% 61.00%, 95.61% 61.93%, 95.14% 62.86%, 94.65% 63.77%, 94.14% 64.68%, 93.60% 65.57%, 93.03% 66.46%, 92.45% 67.33%, 91.84% 68.20%, 91.20% 69.05%, 90.55% 69.89%, 89.86% 70.71%, 89.16% 71.53%, 88.43% 72.33%, 87.68% 73.11%, 86.93% 73.86%, 86.20% 74.59%, 85.47% 75.32%, 84.74% 76.06%, 84.00% 76.79%, 83.27% 77.52%, 82.54% 78.25%, 81.81% 78.99%, 81.07% 79.72%, 80.34% 80.45%, 79.61% 81.18%, 78.88% 81.92%, 78.14% 82.65%, 77.41% 83.38%, 76.68% 84.11%, 75.95% 84.85%, 75.21% 85.58%, 74.48% 86.31%, 73.75% 87.04%, 72.99% 87.79%, 72.21% 88.54%, 71.40% 89.27%, 70.59% 89.97%, 69.76% 90.65%, 68.92% 91.30%, 68.07% 91.93%, 67.20% 92.54%, 66.33% 93.12%, 65.44% 93.68%, 64.54% 94.22%, 63.64% 94.73%, 62.72% 95.22%, 61.79% 95.68%, 60.86% 96.12%, 59.91% 96.54%, 58.96% 96.93%, 58.01% 97.30%, 57.04% 97.65%, 56.07% 97.97%, 55.09% 98.27%, 54.11% 98.54%, 53.12% 98.79%, 52.13% 99.02%, 51.14% 99.22%, 50.14% 99.40%, 49.13% 99.56%, 48.13% 99.69%, 47.12% 99.80%, 46.11% 99.89%, 45.10% 99.95%, 44.09% 99.99%, 43.07% 100.00%, 42.06% 99.99%, 41.05% 99.96%, 40.04% 99.90%, 39.03% 99.82%, 38.02% 99.71%, 37.01% 99.59%, 36.01% 99.43%, 35.01% 99.26%, 34.01% 99.06%, 33.02% 98.83%, 32.03% 98.59%, 31.05% 98.32%, 30.07% 98.02%, 29.10% 97.70%, 28.13% 97.36%, 27.17% 97.00%, 26.22% 96.61%, 25.28% 96.20%, 24.34% 95.76%, 23.41% 95.30%, 22.49% 94.81%, 21.59% 94.31%, 20.69% 93.78%, 19.80% 93.22%, 18.92% 92.64%, 18.05% 92.04%, 17.20% 91.41%, 16.35% 90.76%, 15.52% 90.09%, 14.71% 89.39%, 13.90% 88.67%, 13.11% 87.92%, 12.34% 87.16%, 11.59% 86.37%, 10.86% 85.57%, 10.15% 84.76%, 9.47% 83.93%, 8.81% 83.10%, 8.18% 82.25%, 7.56% 81.38%, 6.98% 80.51%, 6.41% 79.62%, 5.87% 78.73%, 5.36% 77.82%, 4.87% 76.91%, 4.40% 75.98%, 3.95% 75.05%, 3.53% 74.11%, 3.13% 73.16%, 2.76% 72.20%, 2.41% 71.24%, 2.08% 70.27%, 1.78% 69.29%, 1.50% 68.31%, 1.25% 67.32%, 1.02% 66.33%, 0.81% 65.34%, 0.62% 64.34%, 0.46% 63.34%, 0.33% 62.33%, 0.21% 61.32%, 0.13% 60.31%, 0.06% 59.30%, 0.02% 58.29%, 0.00% 57.28%, 0.01% 56.26%, 0.04% 55.25%, 0.09% 54.24%, 0.16% 53.23%, 0.27% 52.22%, 0.39% 51.22%, 0.54% 50.21%, 0.71% 49.21%, 0.90% 48.21%, 1.12% 47.22%, 1.37% 46.23%, 1.63% 45.25%, 1.92% 44.27%, 2.24% 43.29%, 2.57% 42.33%, 2.94% 41.37%, 3.32% 40.41%, 3.73% 39.47%, 4.16% 38.53%, 4.62% 37.60%, 5.10% 36.68%, 5.60% 35.77%, 6.13% 34.87%, 6.68% 33.98%, 7.26% 33.10%, 7.85% 32.23%, 8.48% 31.37%, 9.12% 30.53%, 9.79% 29.70%, 10.49% 28.88%, 11.20% 28.07%, 11.94% 27.28%, 12.70% 26.51%, 13.43% 25.77%, 14.17% 25.04%, 14.90% 24.31%, 15.63% 23.58%, 16.36% 22.84%, 17.10% 22.11%, 17.83% 21.38%, 18.56% 20.65%, 19.29% 19.91%, 20.03% 19.18%, 20.76% 18.45%, 21.49% 17.72%, 22.22% 16.98%, 22.96% 16.25%, 23.69% 15.52%, 24.42% 14.79%, 25.15% 14.05%, 25.89% 13.32%, 26.62% 12.59%, 26.62% 12.59%, 27.40% 11.83%, 28.19% 11.09%, 29.00% 10.38%, 29.82% 9.69%, 30.66% 9.02%, 31.50% 8.38%, 32.36% 7.76%, 33.23% 7.17%, 34.11% 6.59%, 35.01% 6.05%, 35.91% 5.52%, 36.82% 5.02%, 37.74% 4.55%, 38.67% 4.09%, 39.61% 3.67%, 40.56% 3.26%, 41.51% 2.88%, 42.47% 2.52%, 43.44% 2.19%, 44.42% 1.88%, 45.40% 1.59%, 46.38% 1.33%, 47.37% 1.09%, 48.37% 0.87%, 49.36% 0.68%, 50.36% 0.51%, 51.37% 0.37%, 52.38% 0.25%, 53.38% 0.15%, 54.40% 0.08%, 55.41% 0.03%, 56.42% 0.00%, 57.43% 0.00%, 58.45% 0.02%, 59.46% 0.07%, 60.47% 0.14%, 61.48% 0.23%, 62.48% 0.35%, 63.49% 0.49%`,"soft-burst":`59.28% 10.04%, 60.01% 11.05%, 60.92% 11.86%, 61.99% 12.44%, 63.15% 12.76%, 64.37% 12.81%, 65.59% 12.57%, 66.75% 12.12%, 67.90% 11.66%, 69.04% 11.20%, 70.18% 10.74%, 71.32% 10.28%, 72.46% 9.83%, 73.60% 9.37%, 74.75% 8.91%, 76.01% 8.58%, 77.25% 8.56%, 78.43% 8.82%, 79.51% 9.33%, 80.44% 10.06%, 81.19% 10.98%, 81.72% 12.06%, 81.98% 13.28%, 81.96% 14.56%, 81.87% 15.78%, 81.77% 17.01%, 81.68% 18.24%, 81.59% 19.46%, 81.50% 20.69%, 81.41% 21.92%, 81.32% 23.14%, 81.32% 24.39%, 81.60% 25.58%, 82.15% 26.65%, 82.93% 27.57%, 83.91% 28.30%, 85.06% 28.79%, 86.27% 29.09%, 87.46% 29.38%, 88.66% 29.67%, 89.85% 29.96%, 91.05% 30.25%, 92.24% 30.54%, 93.44% 30.83%, 94.65% 31.13%, 95.85% 31.62%, 96.85% 32.35%, 97.62% 33.27%, 98.16% 34.32%, 98.46% 35.47%, 98.48% 36.66%, 98.22% 37.84%, 97.67% 38.97%, 96.87% 39.97%, 96.07% 40.90%, 96.27% 41.84%, 94.47% 42.77%, 93.67% 43.70%, 92.87% 44.64%, 92.07% 45.57%, 91.27% 46.51%, 90.54% 47.53%, 90.09% 48.67%, 89.92% 49.86%, 90.03% 51.06%, 90.42% 52.22%, 91.09% 53.27%, 91.89% 54.21%, 92.70% 55.15%, 93.50% 56.08%, 94.30% 57.01%, 95.10% 57.95%, 95.90% 58.88%, 96.70% 59.82%, 97.51% 60.79%, 98.13% 61.90%, 98.45% 63.07%, 98.48% 64.26%, 98.25% 65.42%, 97.76% 66.50%, 97.03% 67.45%, 96.08% 68.22%, 94.93% 68.77%, 93.70% 69.09%, 92.50% 69.38%, 91.31% 69.67%, 90.11% 69.96%, 88.92% 70.25%, 87.72% 70.54%, 86.53% 70.83%, 85.33% 71.12%, 84.14% 71.56%, 83.12% 72.24%, 82.30% 73.12%, 81.70% 74.17%, 81.36% 75.33%, 81.30% 76.58%, 81.39% 77.80%, 81.48% 79.03%, 81.57% 80.26%, 81.66% 81.48%, 81.75% 82.71%, 81.85% 83.94%, 81.94% 85.16%, 82.00% 86.43%, 81.80% 87.67%, 81.33% 88.78%, 80.62% 89.74%, 79.72% 90.52%, 78.67% 91.08%, 77.51% 91.39%, 76.28% 91.44%, 75.02% 91.18%, 73.85% 90.72%, 72.71% 90.26%, 71.57% 89.80%, 70.42% 89.34%, 69.28% 88.88%, 68.14% 88.42%, 67.00% 87.96%, 65.85% 87.50%, 64.64% 87.21%, 63.41% 87.20%, 62.23% 87.46%, 61.14% 87.98%, 60.19% 88.74%, 59.42% 89.72%, 58.77% 90.76%, 58.11% 91.81%, 57.46% 92.85%, 56.80% 93.89%, 56.15% 94.93%, 55.49% 95.97%, 54.84% 97.01%, 54.13% 98.07%, 53.22% 98.94%, 52.17% 99.55%, 51.03% 99.91%, 49.84% 100.00%, 48.66% 99.83%, 47.54% 99.41%, 46.52% 98.72%, 45.67% 97.77%, 44.99% 96.72%, 44.34% 95.67%, 43.68% 94.63%, 43.03% 93.59%, 42.37% 92.55%, 41.72% 91.51%, 41.06% 90.47%, 40.40% 89.42%, 39.57% 88.50%, 38.58% 87.80%, 37.46% 87.36%, 36.26% 87.17%, 35.03% 87.26%, 33.83% 87.64%, 32.69% 88.09%, 31.55% 88.55%, 30.41% 89.01%, 29.27% 89.47%, 28.13% 89.93%, 26.99% 90.39%, 25.85% 90.85%, 24.64% 91.28%, 23.39% 91.46%, 22.17% 91.33%, 21.04% 90.94%, 20.02% 90.32%, 19.17% 89.49%, 18.53% 88.48%, 18.13% 87.33%, 18.02% 86.06%, 18.11% 84.82%, 18.20% 83.59%, 18.29% 82.36%, 18.38% 81.14%, 18.47% 79.91%, 18.56% 78.68%, 18.65% 77.46%, 18.73% 76.22%, 18.59% 74.99%, 18.17% 73.85%, 17.51% 72.85%, 16.62% 72.02%, 15.55% 71.41%, 14.35% 71.04%, 13.15% 70.75%, 11.96% 70.46%, 10.76% 70.17%, 9.57% 69.88%, 8.37% 69.59%, 7.18% 69.30%, 5.98% 69.01%, 4.74% 68.64%, 3.64% 68.02%, 2.76% 67.20%, 2.09% 66.20%, 1.68% 65.10%, 1.52% 63.92%, 1.63% 62.73%, 2.04% 61.57%, 2.75% 60.49%, 3.55% 59.55%, 4.35% 58.62%, 5.15% 57.68%, 5.95% 56.75%, 6.75% 55.81%, 7.55% 54.88%, 8.35% 53.95%, 9.15% 52.99%, 9.74% 51.90%, 10.05% 50.72%, 10.08% 49.52%, 9.83% 48.34%, 9.30% 47.23%, 8.52% 46.24%, 7.72% 45.31%, 6.92% 44.37%, 6.12% 43.44%, 5.32% 42.50%, 4.52% 41.57%, 3.72% 40.64%, 2.92% 39.70%, 2.16% 38.66%, 1.69% 37.51%, 1.52% 36.32%, 1.62% 35.14%, 1.98% 34.01%, 2.59% 32.99%, 3.43% 32.12%, 4.49% 31.46%, 5.72% 31.04%, 6.92% 30.75%, 8.11% 30.46%, 9.31% 30.17%, 10.50% 29.88%, 11.70% 29.59%, 12.90% 29.30%, 14.09% 29.01%, 15.30% 28.68%, 16.41% 28.12%, 17.33% 27.33%, 18.05% 26.36%, 18.52% 25.25%, 18.73% 24.04%, 18.67% 22.80%, 18.58% 21.57%, 18.49% 20.34%, 18.40% 19.11%, 18.31% 17.89%, 18.22% 16.66%, 18.13% 15.43%, 18.04% 14.21%, 18.08% 12.92%, 18.42% 11.74%, 19.02% 10.70%, 19.82% 9.83%, 20.81% 9.16%, 21.92% 8.72%, 23.12% 8.53%, 24.37% 8.64%, 25.60% 9.04%, 26.74% 9.50%, 27.88% 9.96%, 29.02% 10.42%, 30.16% 10.87%, 31.31% 11.33%, 32.45% 11.79%, 33.59% 12.25%, 34.77% 12.67%, 35.99% 12.82%, 37.20% 12.69%, 38.34% 12.30%, 39.37% 11.66%, 40.24% 10.78%, 40.92% 9.74%, 41.58% 8.70%, 42.23% 7.66%, 42.89% 6.62%, 43.54% 5.58%, 44.20% 4.54%, 44.85% 3.50%, 45.51% 2.45%, 45.51% 2.45%, 46.32% 1.45%, 47.31% 0.71%, 48.41% 0.22%, 49.58% 0.00%, 50.77% 0.04%, 51.93% 0.33%, 53.01% 0.89%, 53.95% 1.71%, 54.70% 2.75%, 55.35% 3.79%, 56.01% 4.83%, 56.66% 5.87%, 57.32% 6.91%, 57.97% 7.96%, 58.63% 9.00%`,sunny:`61.43% 7.32%, 62.14% 8.02%, 62.94% 8.72%, 63.93% 9.57%, 64.67% 10.16%, 65.47% 10.66%, 66.44% 11.09%, 67.45% 11.39%, 68.29% 11.52%, 69.44% 11.62%, 70.64% 11.70%, 71.70% 11.77%, 72.77% 11.84%, 73.83% 11.92%, 74.89% 11.99%, 75.96% 12.06%, 77.02% 12.13%, 77.02% 12.13%, 78.53% 12.24%, 79.79% 12.34%, 80.85% 12.46%, 81.73% 12.62%, 82.50% 12.83%, 83.29% 13.16%, 84.21% 13.70%, 85.04% 14.35%, 85.78% 15.11%, 86.42% 15.96%, 86.93% 16.90%, 87.22% 17.64%, 87.42% 18.43%, 87.57% 19.34%, 87.68% 20.43%, 87.79% 21.74%, 87.89% 23.19%, 87.96% 24.25%, 88.03% 25.31%, 88.10% 26.38%, 88.18% 27.44%, 88.25% 28.50%, 88.32% 29.56%, 88.41% 30.82%, 88.50% 31.89%, 88.66% 32.74%, 88.99% 33.75%, 89.45% 34.71%, 89.94% 35.46%, 90.57% 36.24%, 91.42% 37.22%, 92.12% 38.02%, 92.82% 38.82%, 93.52% 39.62%, 94.22% 40.43%, 94.92% 41.23%, 95.62% 42.03%, 96.53% 43.07%, 97.41% 44.10%, 98.13% 44.98%, 98.70% 45.74%, 99.14% 46.44%, 99.46% 47.12%, 99.78% 48.13%, 99.96% 49.18%, 100.00% 50.24%, 99.90% 51.29%, 99.65% 52.33%, 99.33% 53.19%, 98.96% 53.87%, 98.47% 54.60%, 97.84% 55.41%, 97.05% 56.34%, 96.09% 57.45%, 95.32% 58.34%, 94.62% 59.14%, 93.92% 59.94%, 93.22% 60.74%, 92.52% 61.55%, 91.82% 62.35%, 91.07% 63.20%, 90.26% 64.14%, 89.73% 64.85%, 89.23% 65.72%, 88.83% 66.70%, 88.58% 67.66%, 88.46% 68.54%, 88.36% 69.82%, 88.29% 70.92%, 88.22% 71.98%, 88.14% 73.04%, 88.07% 74.10%, 88.00% 75.17%, 87.93% 76.23%, 87.85% 77.43%, 87.74% 78.88%, 87.64% 80.08%, 87.51% 81.09%, 87.34% 81.94%, 87.12% 82.68%, 86.72% 83.53%, 86.15% 84.44%, 85.47% 85.25%, 84.69% 85.96%, 83.82% 86.57%, 82.89% 87.04%, 82.18% 87.29%, 81.37% 87.47%, 80.41% 87.61%, 79.27% 87.72%, 77.90% 87.82%, 76.55% 87.91%, 75.49% 87.99%, 74.43% 88.06%, 73.37% 88.13%, 72.30% 88.20%, 71.24% 88.28%, 70.18% 88.35%, 68.88% 88.44%, 67.90% 88.54%, 67.01% 88.74%, 66.01% 89.10%, 65.07% 89.59%, 64.37% 90.08%, 63.53% 90.79%, 62.59% 91.60%, 61.79% 92.30%, 60.99% 93.01%, 60.99% 93.01%, 60.18% 93.71%, 59.38% 94.41%, 58.58% 95.11%, 57.78% 95.81%, 56.66% 96.78%, 55.68% 97.62%, 54.83% 98.30%, 54.08% 98.83%, 53.39% 99.23%, 52.64% 99.56%, 51.61% 99.85%, 50.56% 99.99%, 49.50% 100.00%, 48.45% 99.86%, 47.42% 99.58%, 46.65% 99.26%, 45.96% 98.86%, 45.22% 98.33%, 44.38% 97.66%, 43.40% 96.83%, 42.27% 95.85%, 41.47% 95.15%, 40.67% 94.45%, 39.87% 93.75%, 39.06% 93.05%, 38.26% 92.35%, 37.46% 91.65%, 36.53% 90.84%, 35.67% 90.12%, 34.99% 89.63%, 34.05% 89.13%, 33.05% 88.76%, 32.15% 88.55%, 31.19% 88.44%, 29.89% 88.35%, 28.83% 88.28%, 27.76% 88.21%, 26.70% 88.14%, 25.64% 88.06%, 24.57% 87.99%, 23.51% 87.92%, 22.19% 87.83%, 20.81% 87.73%, 19.65% 87.62%, 18.69% 87.48%, 17.87% 87.30%, 17.15% 87.06%, 16.24% 86.60%, 15.36% 86.00%, 14.57% 85.30%, 13.88% 84.49%, 13.31% 83.59%, 12.90% 82.73%, 12.67% 81.99%, 12.50% 81.15%, 12.37% 80.15%, 12.26% 78.96%, 12.16% 77.53%, 12.07% 76.30%, 12.00% 75.23%, 11.93% 74.17%, 11.86% 73.11%, 11.79% 72.05%, 11.71% 70.98%, 11.64% 69.92%, 11.54% 68.61%, 11.43% 67.71%, 11.19% 66.77%, 10.80% 65.78%, 10.30% 64.89%, 9.78% 64.19%, 8.99% 63.27%, 8.23% 62.40%, 7.53% 61.60%, 6.83% 60.79%, 6.13% 59.99%, 5.43% 59.19%, 4.72% 58.39%, 3.98% 57.53%, 3.00% 56.41%, 2.21% 55.46%, 1.56% 54.65%, 1.06% 53.92%, 0.69% 53.23%, 0.36% 52.40%, 0.11% 51.36%, 0.00% 50.31%, 0.03% 49.25%, 0.20% 48.20%, 0.52% 47.18%, 0.84% 46.49%, 1.27% 45.79%, 1.83% 45.03%, 2.53% 44.16%, 3.41% 43.14%, 4.33% 42.08%, 5.03% 41.28%, 5.73% 40.48%, 6.43% 39.67%, 7.13% 38.87%, 7.83% 38.07%, 8.53% 37.27%, 9.38% 36.30%, 10.03% 35.50%, 10.52% 34.77%, 10.99% 33.81%, 11.32% 32.80%, 11.49% 31.95%, 11.59% 30.90%, 11.67% 29.63%, 11.74% 28.57%, 11.82% 27.51%, 11.89% 26.44%, 11.96% 25.38%, 12.03% 24.32%, 12.11% 23.25%, 12.20% 21.83%, 12.31% 20.51%, 12.42% 19.40%, 12.57% 18.48%, 12.76% 17.69%, 13.04% 16.96%, 13.55% 16.02%, 14.17% 15.16%, 14.90% 14.40%, 15.73% 13.74%, 16.65% 13.19%, 17.46% 12.84%, 18.21% 12.63%, 19.09% 12.47%, 20.13% 12.35%, 21.38% 12.24%, 22.88% 12.14%, 23.97% 12.07%, 25.04% 11.99%, 26.10% 11.92%, 27.16% 11.85%, 28.23% 11.78%, 29.29% 11.70%, 30.47% 11.62%, 31.65% 11.53%, 32.49% 11.40%, 33.49% 11.11%, 34.47% 10.69%, 35.28% 10.19%, 36.01% 9.62%, 37.01% 8.76%, 37.81% 8.06%, 38.61% 7.36%, 39.41% 6.66%, 40.22% 5.96%, 41.02% 5.26%, 41.82% 4.56%, 42.78% 3.73%, 43.85% 2.80%, 44.76% 2.04%, 45.55% 1.44%, 46.26% 0.97%, 46.94% 0.62%, 47.87% 0.30%, 48.91% 0.08%, 49.97% 0.00%, 51.02% 0.07%, 52.07% 0.28%, 53.01% 0.60%, 53.69% 0.94%, 54.40% 1.40%, 55.19% 2.00%, 56.09% 2.74%, 57.15% 3.66%, 58.13% 4.51%, 58.93% 5.21%, 59.73% 5.91%, 60.53% 6.62%`},an=class extends W{constructor(...e){super(...e),this.variant=`uncontained`}connectedCallback(){super.connectedCallback(),this.ariaValueMin=this.ariaValueMin||`0`,this.ariaValueMax=this.ariaValueMax||`100`,this.role=this.role||`progressbar`,this._toggleAnimation(!0)}disconnectedCallback(){super.disconnectedCallback(),this._toggleAnimation(!1)}firstUpdated(){this._toggleAnimation(!0)}_toggleAnimation(e){this._container&&this._container.classList.toggle(`animate`,e)}static{this.styles=[G,g`
|
|
7296
|
+
`}};G([B({reflect:!0})],tn.prototype,`name`,void 0),G([B({type:Boolean,reflect:!0})],tn.prototype,`multi`,void 0),G([B({reflect:!0})],tn.prototype,`size`,void 0),G([B({type:Boolean,reflect:!0,attribute:`hide-check`})],tn.prototype,`hideCheck`,void 0),G([B()],tn.prototype,`gap`,void 0),G([Ge({flatten:!0})],tn.prototype,`slottedSegments`,void 0),tn=en=G([z(`moni-segmented-button`)],tn);var nn={"4-sided-cookie":`63.83% 2.22%, 65.10% 1.70%, 66.36% 1.26%, 67.62% 0.89%, 68.88% 0.58%, 70.14% 0.34%, 71.39% 0.16%, 72.63% 0.05%, 73.86% 0.00%, 75.08% 0.01%, 76.28% 0.08%, 77.48% 0.21%, 78.66% 0.40%, 79.82% 0.63%, 80.97% 0.93%, 82.09% 1.27%, 83.20% 1.67%, 84.28% 2.11%, 85.34% 2.60%, 86.37% 3.14%, 87.38% 3.72%, 88.36% 4.35%, 89.31% 5.02%, 90.23% 5.73%, 91.12% 6.48%, 91.98% 7.26%, 92.80% 8.09%, 93.58% 8.94%, 94.32% 9.83%, 95.03% 10.76%, 95.70% 11.71%, 96.32% 12.69%, 96.90% 13.70%, 97.43% 14.74%, 97.92% 15.80%, 98.36% 16.88%, 98.76% 17.99%, 99.10% 19.12%, 99.38% 20.26%, 99.62% 21.43%, 99.80% 22.61%, 99.92% 23.80%, 99.99% 25.01%, 100.00% 26.23%, 99.94% 27.47%, 99.83% 28.71%, 99.65% 29.95%, 99.40% 31.21%, 99.09% 32.47%, 98.71% 33.73%, 98.26% 35.00%, 97.75% 36.25%, 97.26% 37.36%, 96.78% 38.47%, 96.30% 39.59%, 95.83% 40.72%, 95.42% 41.87%, 95.06% 43.03%, 94.76% 44.21%, 94.52% 45.40%, 94.33% 46.59%, 94.20% 47.79%, 94.12% 48.99%, 94.11% 50.19%, 94.14% 51.40%, 94.24% 52.60%, 94.39% 53.80%, 94.59% 54.99%, 94.85% 56.17%, 95.17% 57.34%, 95.55% 58.50%, 95.98% 59.65%, 96.45% 60.77%, 96.94% 61.89%, 97.42% 63.00%, 97.92% 64.15%, 98.41% 65.41%, 98.84% 66.68%, 99.20% 67.94%, 99.49% 69.20%, 99.71% 70.45%, 99.87% 71.70%, 99.97% 72.93%, 100.00% 74.16%, 99.97% 75.38%, 99.89% 76.58%, 99.75% 77.78%, 99.55% 78.95%, 99.30% 80.11%, 98.99% 81.25%, 98.63% 82.37%, 98.23% 83.47%, 97.77% 84.55%, 97.27% 85.60%, 96.72% 86.63%, 96.12% 87.63%, 95.49% 88.60%, 94.81% 89.55%, 94.09% 90.46%, 93.33% 91.34%, 92.54% 92.19%, 91.70% 93.00%, 90.84% 93.77%, 89.94% 94.51%, 89.01% 95.20%, 88.05% 95.86%, 87.06% 96.47%, 86.04% 97.04%, 85.00% 97.56%, 83.93% 98.04%, 82.84% 98.47%, 81.73% 98.85%, 80.60% 99.17%, 79.45% 99.45%, 78.28% 99.67%, 77.09% 99.84%, 75.89% 99.95%, 74.68% 100.00%, 73.46% 99.99%, 72.23% 99.92%, 70.98% 99.79%, 69.73% 99.59%, 68.48% 99.33%, 67.22% 99.00%, 65.95% 98.60%, 64.69% 98.14%, 63.47% 97.63%, 62.36% 97.14%, 61.25% 96.66%, 60.13% 96.18%, 58.99% 95.72%, 57.84% 95.32%, 56.67% 94.98%, 55.49% 94.70%, 54.31% 94.47%, 53.11% 94.29%, 51.91% 94.18%, 50.71% 94.11%, 49.50% 94.11%, 48.30% 94.16%, 47.10% 94.27%, 45.90% 94.43%, 44.71% 94.65%, 43.53% 94.93%, 42.36% 95.26%, 41.21% 95.65%, 40.07% 96.09%, 38.95% 96.58%, 37.84% 97.06%, 36.72% 97.54%, 35.54% 98.05%, 34.27% 98.53%, 33.01% 98.94%, 31.74% 99.28%, 30.49% 99.55%, 29.24% 99.76%, 27.99% 99.90%, 26.76% 99.98%, 25.53% 100.00%, 24.32% 99.96%, 23.12% 99.86%, 21.93% 99.70%, 20.76% 99.49%, 19.60% 99.23%, 18.47% 98.91%, 17.35% 98.54%, 16.26% 98.12%, 15.19% 97.65%, 14.14% 97.13%, 13.12% 96.57%, 12.12% 95.97%, 11.16% 95.32%, 10.22% 94.63%, 9.32% 93.90%, 8.45% 93.14%, 7.61% 92.33%, 6.81% 91.49%, 6.04% 90.62%, 5.32% 89.71%, 4.63% 88.77%, 3.99% 87.80%, 3.38% 86.81%, 2.83% 85.78%, 2.31% 84.74%, 1.85% 83.66%, 1.43% 82.57%, 1.07% 81.45%, 0.75% 80.31%, 0.49% 79.16%, 0.28% 77.98%, 0.13% 76.80%, 0.04% 75.59%, 0.00% 74.38%, 0.02% 73.15%, 0.11% 71.92%, 0.26% 70.67%, 0.47% 69.42%, 0.75% 68.16%, 1.09% 66.90%, 1.51% 65.64%, 1.99% 64.37%, 2.49% 63.19%, 2.98% 62.08%, 3.46% 60.97%, 3.94% 59.85%, 4.38% 58.71%, 4.77% 57.55%, 5.09% 56.38%, 5.37% 55.20%, 5.58% 54.01%, 5.74% 52.81%, 5.84% 51.61%, 5.89% 50.41%, 5.88% 49.20%, 5.82% 48.00%, 5.70% 46.80%, 5.52% 45.61%, 5.28% 44.42%, 4.99% 43.24%, 4.65% 42.07%, 4.25% 40.92%, 3.79% 39.78%, 3.30% 38.67%, 2.82% 37.56%, 2.34% 36.45%, 1.82% 35.22%, 1.36% 33.95%, 0.97% 32.69%, 0.65% 31.43%, 0.39% 30.18%, 0.20% 28.93%, 0.07% 27.68%, 0.01% 26.45%, 0.01% 25.23%, 0.06% 24.02%, 0.17% 22.82%, 0.34% 21.64%, 0.57% 20.47%, 0.85% 19.32%, 1.18% 18.19%, 1.56% 17.08%, 2.00% 15.99%, 2.48% 14.92%, 3.00% 13.88%, 3.57% 12.87%, 4.19% 11.88%, 4.85% 10.92%, 5.55% 9.99%, 6.29% 9.10%, 7.06% 8.23%, 7.88% 7.41%, 8.72% 6.61%, 9.61% 5.86%, 10.52% 5.14%, 11.47% 4.47%, 12.44% 3.83%, 13.45% 3.24%, 14.48% 2.69%, 15.53% 2.19%, 16.61% 1.74%, 17.71% 1.34%, 18.83% 0.98%, 19.98% 0.68%, 21.14% 0.43%, 22.31% 0.24%, 23.50% 0.10%, 24.71% 0.02%, 25.93% 0.00%, 27.16% 0.04%, 28.39% 0.14%, 29.64% 0.30%, 30.89% 0.53%, 32.15% 0.83%, 33.41% 1.19%, 34.68% 1.62%, 35.94% 2.12%, 37.08% 2.61%, 38.20% 3.10%, 39.31% 3.58%, 40.43% 4.06%, 41.58% 4.48%, 42.74% 4.85%, 43.91% 5.17%, 45.10% 5.43%, 46.29% 5.63%, 47.49% 5.77%, 48.69% 5.86%, 49.89% 5.90%, 51.10% 5.87%, 52.30% 5.79%, 53.50% 5.66%, 54.69% 5.47%, 55.88% 5.22%, 57.05% 4.91%, 58.21% 4.55%, 59.36% 4.14%, 60.49% 3.67%, 61.61% 3.18%, 62.72% 2.70%, 63.83% 2.22%`,"9-sided-cookie":`61.39% 5.18%, 62.25% 5.81%, 63.15% 6.37%, 64.08% 6.88%, 65.04% 7.33%, 66.03% 7.71%, 67.04% 8.02%, 68.07% 8.27%, 69.11% 8.45%, 70.17% 8.57%, 71.18% 8.61%, 72.43% 8.63%, 73.38% 8.68%, 74.46% 8.80%, 75.52% 9.00%, 76.56% 9.26%, 77.57% 9.59%, 78.55% 9.98%, 79.50% 10.44%, 80.42% 10.95%, 81.30% 11.52%, 82.14% 12.14%, 82.93% 12.81%, 83.69% 13.54%, 84.39% 14.31%, 85.05% 15.13%, 85.65% 15.99%, 86.20% 16.89%, 86.69% 17.84%, 87.12% 18.81%, 87.49% 19.83%, 87.79% 20.87%, 87.99% 21.78%, 88.22% 23.01%, 88.46% 24.01%, 88.76% 25.02%, 89.14% 26.02%, 89.57% 26.98%, 90.07% 27.91%, 90.63% 28.81%, 91.24% 29.67%, 91.91% 30.49%, 92.64% 31.27%, 93.40% 31.98%, 94.34% 32.79%, 95.02% 33.41%, 95.78% 34.19%, 96.48% 35.02%, 97.12% 35.88%, 97.70% 36.77%, 98.21% 37.69%, 98.66% 38.65%, 99.05% 39.62%, 99.37% 40.62%, 99.63% 41.63%, 99.82% 42.66%, 99.94% 43.70%, 100.00% 44.74%, 99.99% 45.79%, 99.91% 46.84%, 99.76% 47.88%, 99.54% 48.92%, 99.26% 49.95%, 98.90% 50.97%, 98.47% 51.97%, 98.04% 52.81%, 97.43% 53.91%, 96.96% 54.80%, 96.53% 55.77%, 96.16% 56.77%, 95.86% 57.78%, 95.63% 58.81%, 95.46% 59.86%, 95.36% 60.91%, 95.34% 61.97%, 95.38% 63.03%, 95.49% 64.09%, 95.68% 65.27%, 95.82% 66.19%, 95.91% 67.28%, 95.93% 68.36%, 95.88% 69.43%, 95.76% 70.49%, 95.57% 71.53%, 95.32% 72.55%, 95.00% 73.55%, 94.61% 74.53%, 94.17% 75.47%, 93.66% 76.39%, 93.10% 77.27%, 92.48% 78.11%, 91.81% 78.92%, 91.09% 79.68%, 90.31% 80.39%, 89.48% 81.06%, 88.61% 81.68%, 87.69% 82.23%, 86.73% 82.74%, 85.81% 83.14%, 84.74% 83.55%, 83.75% 83.94%, 82.78% 84.40%, 81.85% 84.91%, 80.96% 85.49%, 80.11% 86.11%, 79.30% 86.80%, 78.54% 87.53%, 77.83% 88.31%, 77.17% 89.14%, 76.56% 90.02%, 75.97% 90.98%, 75.43% 91.87%, 74.84% 92.73%, 74.17% 93.59%, 73.45% 94.38%, 72.69% 95.13%, 71.89% 95.82%, 71.04% 96.45%, 70.16% 97.02%, 69.25% 97.53%, 68.30% 97.99%, 67.34% 98.38%, 66.34% 98.71%, 65.33% 98.97%, 64.30% 99.17%, 63.26% 99.30%, 62.21% 99.37%, 61.15% 99.37%, 60.08% 99.29%, 59.02% 99.15%, 57.96% 98.93%, 56.92% 98.65%, 55.99% 98.34%, 54.89% 97.96%, 53.86% 97.67%, 52.82% 97.46%, 51.77% 97.31%, 50.72% 97.23%, 49.66% 97.21%, 48.61% 97.27%, 47.55% 97.39%, 46.51% 97.59%, 45.48% 97.85%, 44.51% 98.16%, 43.35% 98.56%, 42.42% 98.84%, 41.36% 99.08%, 40.30% 99.25%, 39.24% 99.35%, 38.18% 99.38%, 37.12% 99.34%, 36.07% 99.23%, 35.04% 99.05%, 34.02% 98.81%, 33.02% 98.50%, 32.04% 98.13%, 31.09% 97.70%, 30.17% 97.21%, 29.27% 96.66%, 28.42% 96.05%, 27.60% 95.38%, 26.82% 94.66%, 26.08% 93.88%, 25.40% 93.04%, 24.76% 92.16%, 24.27% 91.38%, 23.64% 90.33%, 23.06% 89.45%, 22.42% 88.60%, 21.72% 87.80%, 20.98% 87.05%, 20.19% 86.35%, 19.35% 85.70%, 18.47% 85.11%, 17.56% 84.58%, 16.60% 84.10%, 15.67% 83.70%, 14.49% 83.26%, 13.63% 82.90%, 12.65% 82.42%, 11.72% 81.88%, 10.83% 81.29%, 9.98% 80.64%, 9.19% 79.94%, 8.45% 79.20%, 7.75% 78.41%, 7.12% 77.58%, 6.53% 76.71%, 6.01% 75.81%, 5.54% 74.87%, 5.14% 73.91%, 4.80% 72.92%, 4.52% 71.90%, 4.30% 70.87%, 4.16% 69.82%, 4.08% 68.75%, 4.08% 67.67%, 4.15% 66.59%, 4.26% 65.66%, 4.47% 64.41%, 4.59% 63.41%, 4.66% 62.35%, 4.66% 61.29%, 4.59% 60.23%, 4.44% 59.18%, 4.24% 58.15%, 3.96% 57.13%, 3.62% 56.12%, 3.21% 55.14%, 2.73% 54.19%, 2.14% 53.14%, 1.71% 52.32%, 1.25% 51.33%, 0.87% 50.32%, 0.55% 49.29%, 0.31% 48.25%, 0.14% 47.21%, 0.04% 46.16%, 0.00% 45.11%, 0.03% 44.07%, 0.13% 43.03%, 0.30% 42.00%, 0.53% 40.98%, 0.83% 39.98%, 1.19% 38.99%, 1.62% 38.03%, 2.11% 37.10%, 2.67% 36.19%, 3.28% 35.32%, 3.96% 34.48%, 4.70% 33.69%, 5.41% 33.02%, 6.33% 32.22%, 7.09% 31.54%, 7.84% 30.78%, 8.53% 29.97%, 9.16% 29.12%, 9.74% 28.24%, 10.26% 27.32%, 10.72% 26.37%, 11.11% 25.38%, 11.45% 24.37%, 11.71% 23.34%, 11.94% 22.20%, 12.13% 21.24%, 12.40% 20.20%, 12.75% 19.17%, 13.15% 18.18%, 13.62% 17.23%, 14.15% 16.31%, 14.73% 15.43%, 15.37% 14.60%, 16.06% 13.81%, 16.80% 13.07%, 17.58% 12.37%, 18.40% 11.73%, 19.27% 11.14%, 20.17% 10.61%, 21.11% 10.14%, 22.08% 9.72%, 23.08% 9.37%, 24.11% 9.09%, 25.16% 8.87%, 26.24% 8.72%, 27.27% 8.64%, 28.33% 8.62%, 29.45% 8.59%, 30.51% 8.50%, 31.56% 8.34%, 32.60% 8.12%, 33.62% 7.83%, 34.61% 7.47%, 35.58% 7.05%, 36.52% 6.56%, 37.43% 6.02%, 38.31% 5.41%, 39.15% 4.75%, 39.15% 4.75%, 40.04% 4.03%, 40.85% 3.44%, 41.76% 2.86%, 42.71% 2.35%, 43.68% 1.90%, 44.67% 1.52%, 45.68% 1.21%, 46.70% 0.96%, 47.73% 0.78%, 48.77% 0.67%, 49.81% 0.62%, 50.86% 0.65%, 51.90% 0.73%, 52.94% 0.89%, 53.96% 1.11%, 54.98% 1.40%, 55.97% 1.76%, 56.95% 2.18%, 57.90% 2.67%, 58.83% 3.23%, 59.73% 3.85%, 60.46% 4.43%`,oval:`72.29% 0.03%, 73.21% 0.08%, 74.12% 0.15%, 75.02% 0.24%, 75.92% 0.35%, 76.80% 0.49%, 77.67% 0.64%, 78.54% 0.82%, 79.39% 1.02%, 80.23% 1.24%, 81.06% 1.49%, 81.87% 1.75%, 82.68% 2.04%, 83.47% 2.35%, 84.25% 2.68%, 85.01% 3.04%, 85.76% 3.42%, 86.50% 3.82%, 87.23% 4.24%, 87.93% 4.69%, 88.63% 5.15%, 89.31% 5.65%, 89.97% 6.16%, 90.62% 6.70%, 91.25% 7.26%, 91.86% 7.84%, 92.45% 8.45%, 93.03% 9.07%, 93.57% 9.71%, 94.10% 10.36%, 94.60% 11.03%, 95.08% 11.72%, 95.54% 12.42%, 95.97% 13.13%, 96.39% 13.86%, 96.77% 14.61%, 97.14% 15.37%, 97.48% 16.14%, 97.81% 16.93%, 98.11% 17.72%, 98.38% 18.53%, 98.64% 19.36%, 98.87% 20.19%, 99.08% 21.04%, 99.27% 21.89%, 99.44% 22.76%, 99.58% 23.64%, 99.71% 24.53%, 99.81% 25.43%, 99.89% 26.33%, 99.95% 27.25%, 99.98% 28.18%, 100.00% 29.11%, 99.99% 30.05%, 99.97% 31.00%, 99.92% 31.96%, 99.85% 32.92%, 99.76% 33.89%, 99.65% 34.87%, 99.52% 35.85%, 99.37% 36.84%, 99.20% 37.83%, 99.00% 38.83%, 98.79% 39.84%, 98.55% 40.84%, 98.30% 41.86%, 98.02% 42.87%, 97.73% 43.89%, 97.41% 44.91%, 97.08% 45.93%, 96.72% 46.96%, 96.35% 47.99%, 95.95% 49.02%, 95.53% 50.05%, 95.10% 51.08%, 94.65% 52.11%, 94.17% 53.15%, 93.68% 54.18%, 93.16% 55.21%, 92.63% 56.24%, 92.08% 57.27%, 91.51% 58.30%, 90.92% 59.33%, 90.31% 60.35%, 89.68% 61.37%, 89.03% 62.39%, 88.37% 63.41%, 87.68% 64.42%, 86.98% 65.43%, 86.26% 66.43%, 85.52% 67.43%, 84.76% 68.43%, 83.98% 69.42%, 83.18% 70.40%, 82.37% 71.38%, 81.54% 72.35%, 80.69% 73.32%, 79.82% 74.27%, 78.93% 75.22%, 78.03% 76.17%, 77.10% 77.10%, 77.10% 77.10%, 76.17% 78.03%, 75.22% 78.93%, 74.27% 79.82%, 73.32% 80.69%, 72.35% 81.54%, 71.38% 82.37%, 70.40% 83.18%, 69.42% 83.98%, 68.43% 84.76%, 67.43% 85.52%, 66.43% 86.26%, 65.43% 86.98%, 64.42% 87.68%, 63.41% 88.37%, 62.39% 89.03%, 61.37% 89.68%, 60.35% 90.31%, 59.33% 90.92%, 58.30% 91.51%, 57.27% 92.08%, 56.24% 92.63%, 55.21% 93.16%, 54.18% 93.68%, 53.15% 94.17%, 52.11% 94.65%, 51.08% 95.10%, 50.05% 95.53%, 49.02% 95.95%, 47.99% 96.35%, 46.96% 96.72%, 45.93% 97.08%, 44.91% 97.41%, 43.89% 97.73%, 42.87% 98.02%, 41.86% 98.30%, 40.84% 98.55%, 39.84% 98.79%, 38.83% 99.00%, 37.83% 99.20%, 36.84% 99.37%, 35.85% 99.52%, 34.87% 99.65%, 33.89% 99.76%, 32.92% 99.85%, 31.96% 99.92%, 31.00% 99.97%, 30.05% 99.99%, 29.11% 100.00%, 28.18% 99.98%, 27.25% 99.95%, 26.33% 99.89%, 25.43% 99.81%, 24.53% 99.71%, 23.64% 99.58%, 22.76% 99.44%, 21.89% 99.27%, 21.04% 99.08%, 20.19% 98.87%, 19.36% 98.64%, 18.53% 98.38%, 17.72% 98.11%, 16.93% 97.81%, 16.14% 97.48%, 15.37% 97.14%, 14.61% 96.77%, 13.86% 96.39%, 13.13% 95.97%, 12.42% 95.54%, 11.72% 95.08%, 11.03% 94.60%, 10.36% 94.10%, 9.71% 93.57%, 9.07% 93.03%, 8.45% 92.45%, 7.84% 91.86%, 7.26% 91.25%, 6.70% 90.62%, 6.16% 89.97%, 5.65% 89.31%, 5.15% 88.63%, 4.69% 87.93%, 4.24% 87.23%, 3.82% 86.50%, 3.42% 85.76%, 3.04% 85.01%, 2.68% 84.25%, 2.35% 83.47%, 2.04% 82.68%, 1.75% 81.87%, 1.49% 81.06%, 1.24% 80.23%, 1.02% 79.39%, 0.82% 78.54%, 0.64% 77.67%, 0.49% 76.80%, 0.35% 75.92%, 0.24% 75.02%, 0.15% 74.12%, 0.08% 73.21%, 0.03% 72.29%, 0.01% 71.36%, 0.00% 70.42%, 0.02% 69.47%, 0.05% 68.52%, 0.11% 67.56%, 0.19% 66.59%, 0.29% 65.62%, 0.41% 64.64%, 0.55% 63.65%, 0.72% 62.66%, 0.90% 61.67%, 1.10% 60.67%, 1.33% 59.66%, 1.57% 58.65%, 1.84% 57.64%, 2.12% 56.62%, 2.43% 55.60%, 2.75% 54.58%, 3.10% 53.55%, 3.46% 52.53%, 3.85% 51.50%, 4.25% 50.47%, 4.68% 49.43%, 5.12% 48.40%, 5.59% 47.37%, 6.07% 46.34%, 6.58% 45.31%, 7.10% 44.27%, 7.64% 43.24%, 8.20% 42.21%, 8.78% 41.19%, 9.38% 40.16%, 10.00% 39.14%, 10.64% 38.12%, 11.30% 37.10%, 11.97% 36.09%, 12.67% 35.07%, 13.38% 34.07%, 14.11% 33.07%, 14.86% 32.07%, 15.63% 31.08%, 16.42% 30.09%, 17.22% 29.11%, 18.05% 28.13%, 18.89% 27.17%, 19.75% 26.20%, 20.62% 25.25%, 21.52% 24.30%, 22.43% 23.36%, 23.36% 22.43%, 24.30% 21.52%, 25.25% 20.62%, 26.20% 19.75%, 27.17% 18.89%, 28.13% 18.05%, 29.11% 17.22%, 30.09% 16.42%, 31.08% 15.63%, 32.07% 14.86%, 33.07% 14.11%, 34.07% 13.38%, 35.07% 12.67%, 36.09% 11.97%, 37.10% 11.30%, 38.12% 10.64%, 39.14% 10.00%, 40.16% 9.38%, 41.19% 8.78%, 42.21% 8.20%, 43.24% 7.64%, 44.27% 7.10%, 45.31% 6.58%, 46.34% 6.07%, 47.37% 5.59%, 48.40% 5.12%, 49.43% 4.68%, 50.47% 4.25%, 51.50% 3.85%, 52.53% 3.46%, 53.55% 3.10%, 54.58% 2.75%, 55.60% 2.43%, 56.62% 2.12%, 57.64% 1.84%, 58.65% 1.57%, 59.66% 1.33%, 60.67% 1.10%, 61.67% 0.90%, 62.66% 0.72%, 63.65% 0.55%, 64.64% 0.41%, 65.62% 0.29%, 66.59% 0.19%, 67.56% 0.11%, 68.52% 0.05%, 69.47% 0.02%, 70.42% 0.00%, 71.36% 0.01%`,pentagon:`61.18% 5.13%, 62.02% 5.74%, 62.86% 6.35%, 63.70% 6.96%, 64.54% 7.58%, 65.38% 8.19%, 66.22% 8.80%, 67.07% 9.41%, 67.91% 10.02%, 68.75% 10.63%, 69.59% 11.24%, 70.43% 11.85%, 71.27% 12.47%, 72.11% 13.08%, 72.96% 13.69%, 73.80% 14.30%, 74.64% 14.91%, 75.48% 15.52%, 76.32% 16.13%, 77.16% 16.74%, 78.00% 17.36%, 78.85% 17.97%, 79.69% 18.58%, 80.53% 19.19%, 81.37% 19.80%, 82.21% 20.41%, 83.05% 21.02%, 83.89% 21.64%, 84.74% 22.25%, 85.58% 22.86%, 86.42% 23.47%, 87.26% 24.08%, 88.10% 24.69%, 88.94% 25.30%, 89.78% 25.91%, 90.62% 26.53%, 91.47% 27.14%, 92.31% 27.75%, 93.15% 28.41%, 93.95% 29.12%, 94.70% 29.85%, 95.40% 30.63%, 96.05% 31.44%, 96.66% 32.27%, 97.22% 33.14%, 97.73% 34.03%, 98.19% 34.95%, 98.60% 35.89%, 98.96% 36.85%, 99.27% 37.83%, 99.52% 38.82%, 99.72% 39.83%, 99.87% 40.84%, 99.96% 41.87%, 100.00% 42.90%, 99.98% 43.94%, 99.90% 44.98%, 99.77% 46.02%, 99.58% 47.05%, 99.32% 48.09%, 99.01% 49.11%, 98.69% 50.09%, 98.37% 51.08%, 98.05% 52.07%, 97.73% 53.06%, 97.41% 54.05%, 97.09% 55.04%, 96.76% 56.03%, 96.44% 57.02%, 96.12% 58.01%, 95.80% 59.00%, 95.48% 59.99%, 95.16% 60.97%, 94.84% 61.96%, 94.51% 62.95%, 94.19% 63.94%, 93.87% 64.93%, 93.55% 65.92%, 93.23% 66.91%, 92.91% 67.90%, 92.59% 68.89%, 92.26% 69.88%, 91.94% 70.87%, 91.62% 71.85%, 91.30% 72.84%, 90.98% 73.83%, 90.66% 74.82%, 90.34% 75.81%, 90.02% 76.80%, 89.69% 77.79%, 89.37% 78.78%, 89.05% 79.77%, 88.73% 80.76%, 88.41% 81.75%, 88.09% 82.73%, 87.77% 83.72%, 87.44% 84.71%, 87.11% 85.71%, 86.73% 86.71%, 86.30% 87.68%, 85.82% 88.61%, 85.29% 89.51%, 84.72% 90.38%, 84.10% 91.21%, 83.44% 92.00%, 82.74% 92.75%, 82.01% 93.47%, 81.23% 94.14%, 80.42% 94.77%, 79.58% 95.35%, 78.71% 95.89%, 77.81% 96.39%, 76.88% 96.83%, 75.93% 97.22%, 74.96% 97.57%, 73.96% 97.86%, 72.94% 98.10%, 71.91% 98.28%, 70.86% 98.40%, 69.80% 98.47%, 68.74% 98.48%, 67.70% 98.48%, 66.66% 98.48%, 65.62% 98.48%, 64.58% 98.48%, 63.54% 98.48%, 62.50% 98.48%, 61.46% 98.48%, 60.42% 98.48%, 59.38% 98.48%, 58.34% 98.48%, 57.30% 98.48%, 56.26% 98.48%, 55.22% 98.48%, 54.18% 98.48%, 53.14% 98.48%, 52.10% 98.48%, 51.06% 98.48%, 50.02% 98.48%, 48.98% 98.48%, 47.94% 98.48%, 46.90% 98.48%, 45.86% 98.48%, 44.82% 98.48%, 43.78% 98.48%, 42.74% 98.48%, 41.70% 98.48%, 40.66% 98.48%, 39.62% 98.48%, 38.58% 98.48%, 37.54% 98.48%, 36.50% 98.48%, 35.46% 98.48%, 34.42% 98.48%, 33.38% 98.48%, 32.34% 98.48%, 31.30% 98.48%, 30.24% 98.47%, 29.18% 98.41%, 28.13% 98.28%, 27.09% 98.10%, 26.08% 97.87%, 25.08% 97.58%, 24.11% 97.24%, 23.15% 96.85%, 22.22% 96.40%, 21.32% 95.91%, 20.45% 95.37%, 19.61% 94.79%, 18.80% 94.16%, 18.02% 93.49%, 17.28% 92.78%, 16.58% 92.03%, 15.92% 91.24%, 15.30% 90.41%, 14.73% 89.54%, 14.20% 88.64%, 13.71% 87.71%, 13.28% 86.75%, 12.90% 85.75%, 12.57% 84.75%, 12.25% 83.76%, 11.93% 82.77%, 11.60% 81.78%, 11.28% 80.79%, 10.96% 79.80%, 10.64% 78.82%, 10.32% 77.83%, 10.00% 76.84%, 9.68% 75.85%, 9.35% 74.86%, 9.03% 73.87%, 8.71% 72.88%, 8.39% 71.89%, 8.07% 70.90%, 7.75% 69.91%, 7.43% 68.92%, 7.10% 67.94%, 6.78% 66.95%, 6.46% 65.96%, 6.14% 64.97%, 5.82% 63.98%, 5.50% 62.99%, 5.18% 62.00%, 4.86% 61.01%, 4.53% 60.02%, 4.21% 59.03%, 3.89% 58.04%, 3.57% 57.06%, 3.25% 56.07%, 2.93% 55.08%, 2.61% 54.09%, 2.28% 53.10%, 1.96% 52.11%, 1.64% 51.12%, 1.32% 50.13%, 1.00% 49.14%, 0.69% 48.12%, 0.43% 47.09%, 0.24% 46.06%, 0.10% 45.02%, 0.02% 43.98%, 0.00% 42.94%, 0.03% 41.91%, 0.12% 40.88%, 0.27% 39.86%, 0.47% 38.86%, 0.72% 37.86%, 1.03% 36.89%, 1.38% 35.93%, 1.79% 34.99%, 2.25% 34.07%, 2.76% 33.17%, 3.32% 32.31%, 3.92% 31.47%, 4.58% 30.66%, 5.28% 29.88%, 6.03% 29.14%, 6.82% 28.44%, 7.66% 27.78%, 8.50% 27.16%, 9.34% 26.55%, 10.19% 25.94%, 11.03% 25.33%, 11.87% 24.71%, 12.71% 24.10%, 13.55% 23.49%, 14.39% 22.88%, 15.23% 22.27%, 16.08% 21.66%, 16.92% 21.05%, 17.76% 20.44%, 18.60% 19.82%, 19.44% 19.21%, 20.28% 18.60%, 21.12% 17.99%, 21.96% 17.38%, 22.81% 16.77%, 23.65% 16.16%, 24.49% 15.55%, 25.33% 14.93%, 26.17% 14.32%, 27.01% 13.71%, 27.85% 13.10%, 28.70% 12.49%, 29.54% 11.88%, 30.38% 11.27%, 31.22% 10.65%, 32.06% 10.04%, 32.90% 9.43%, 33.74% 8.82%, 34.59% 8.21%, 35.43% 7.60%, 36.27% 6.99%, 37.11% 6.38%, 37.95% 5.76%, 38.79% 5.15%, 38.79% 5.15%, 39.68% 4.55%, 40.58% 4.00%, 41.51% 3.50%, 42.46% 3.06%, 43.43% 2.68%, 44.41% 2.35%, 45.41% 2.07%, 46.41% 1.85%, 47.43% 1.69%, 48.45% 1.57%, 49.47% 1.52%, 50.49% 1.52%, 51.52% 1.57%, 52.54% 1.68%, 53.55% 1.84%, 54.56% 2.06%, 55.55% 2.34%, 56.53% 2.66%, 57.50% 3.05%, 58.45% 3.49%, 59.38% 3.98%, 60.29% 4.53%`,pill:`64.49% 0.65%, 65.49% 0.84%, 66.48% 1.05%, 67.48% 1.28%, 68.46% 1.54%, 69.44% 1.83%, 70.42% 2.13%, 71.39% 2.46%, 72.35% 2.81%, 73.30% 3.19%, 74.25% 3.59%, 75.19% 4.02%, 76.12% 4.47%, 77.05% 4.94%, 77.96% 5.43%, 78.87% 5.95%, 79.76% 6.50%, 80.64% 7.06%, 81.52% 7.66%, 82.38% 8.27%, 83.23% 8.91%, 84.06% 9.57%, 84.89% 10.26%, 85.70% 10.96%, 86.49% 11.70%, 87.28% 12.45%, 88.04% 13.23%, 88.78% 14.02%, 89.50% 14.83%, 90.19% 15.65%, 90.86% 16.48%, 91.51% 17.33%, 92.13% 18.18%, 92.73% 19.05%, 93.31% 19.93%, 93.86% 20.82%, 94.39% 21.72%, 94.89% 22.63%, 95.37% 23.55%, 95.83% 24.48%, 96.26% 25.42%, 96.67% 26.36%, 97.06% 27.32%, 97.42% 28.28%, 97.76% 29.24%, 98.07% 30.22%, 98.36% 31.20%, 98.63% 32.18%, 98.87% 33.17%, 99.09% 34.16%, 99.29% 35.16%, 99.46% 36.16%, 99.61% 37.16%, 99.73% 38.17%, 99.83% 39.18%, 99.91% 40.19%, 99.96% 41.20%, 99.99% 42.21%, 100.00% 43.23%, 99.98% 44.24%, 99.94% 45.25%, 99.88% 46.26%, 99.79% 47.27%, 99.68% 48.28%, 99.54% 49.29%, 99.38% 50.29%, 99.20% 51.29%, 98.99% 52.28%, 98.76% 53.27%, 98.50% 54.26%, 98.22% 55.24%, 97.92% 56.22%, 97.60% 57.19%, 97.25% 58.15%, 96.87% 59.11%, 96.48% 60.06%, 96.06% 61.00%, 95.61% 61.93%, 95.14% 62.86%, 94.65% 63.77%, 94.14% 64.68%, 93.60% 65.57%, 93.03% 66.46%, 92.45% 67.33%, 91.84% 68.20%, 91.20% 69.05%, 90.55% 69.89%, 89.86% 70.71%, 89.16% 71.53%, 88.43% 72.33%, 87.68% 73.11%, 86.93% 73.86%, 86.20% 74.59%, 85.47% 75.32%, 84.74% 76.06%, 84.00% 76.79%, 83.27% 77.52%, 82.54% 78.25%, 81.81% 78.99%, 81.07% 79.72%, 80.34% 80.45%, 79.61% 81.18%, 78.88% 81.92%, 78.14% 82.65%, 77.41% 83.38%, 76.68% 84.11%, 75.95% 84.85%, 75.21% 85.58%, 74.48% 86.31%, 73.75% 87.04%, 72.99% 87.79%, 72.21% 88.54%, 71.40% 89.27%, 70.59% 89.97%, 69.76% 90.65%, 68.92% 91.30%, 68.07% 91.93%, 67.20% 92.54%, 66.33% 93.12%, 65.44% 93.68%, 64.54% 94.22%, 63.64% 94.73%, 62.72% 95.22%, 61.79% 95.68%, 60.86% 96.12%, 59.91% 96.54%, 58.96% 96.93%, 58.01% 97.30%, 57.04% 97.65%, 56.07% 97.97%, 55.09% 98.27%, 54.11% 98.54%, 53.12% 98.79%, 52.13% 99.02%, 51.14% 99.22%, 50.14% 99.40%, 49.13% 99.56%, 48.13% 99.69%, 47.12% 99.80%, 46.11% 99.89%, 45.10% 99.95%, 44.09% 99.99%, 43.07% 100.00%, 42.06% 99.99%, 41.05% 99.96%, 40.04% 99.90%, 39.03% 99.82%, 38.02% 99.71%, 37.01% 99.59%, 36.01% 99.43%, 35.01% 99.26%, 34.01% 99.06%, 33.02% 98.83%, 32.03% 98.59%, 31.05% 98.32%, 30.07% 98.02%, 29.10% 97.70%, 28.13% 97.36%, 27.17% 97.00%, 26.22% 96.61%, 25.28% 96.20%, 24.34% 95.76%, 23.41% 95.30%, 22.49% 94.81%, 21.59% 94.31%, 20.69% 93.78%, 19.80% 93.22%, 18.92% 92.64%, 18.05% 92.04%, 17.20% 91.41%, 16.35% 90.76%, 15.52% 90.09%, 14.71% 89.39%, 13.90% 88.67%, 13.11% 87.92%, 12.34% 87.16%, 11.59% 86.37%, 10.86% 85.57%, 10.15% 84.76%, 9.47% 83.93%, 8.81% 83.10%, 8.18% 82.25%, 7.56% 81.38%, 6.98% 80.51%, 6.41% 79.62%, 5.87% 78.73%, 5.36% 77.82%, 4.87% 76.91%, 4.40% 75.98%, 3.95% 75.05%, 3.53% 74.11%, 3.13% 73.16%, 2.76% 72.20%, 2.41% 71.24%, 2.08% 70.27%, 1.78% 69.29%, 1.50% 68.31%, 1.25% 67.32%, 1.02% 66.33%, 0.81% 65.34%, 0.62% 64.34%, 0.46% 63.34%, 0.33% 62.33%, 0.21% 61.32%, 0.13% 60.31%, 0.06% 59.30%, 0.02% 58.29%, 0.00% 57.28%, 0.01% 56.26%, 0.04% 55.25%, 0.09% 54.24%, 0.16% 53.23%, 0.27% 52.22%, 0.39% 51.22%, 0.54% 50.21%, 0.71% 49.21%, 0.90% 48.21%, 1.12% 47.22%, 1.37% 46.23%, 1.63% 45.25%, 1.92% 44.27%, 2.24% 43.29%, 2.57% 42.33%, 2.94% 41.37%, 3.32% 40.41%, 3.73% 39.47%, 4.16% 38.53%, 4.62% 37.60%, 5.10% 36.68%, 5.60% 35.77%, 6.13% 34.87%, 6.68% 33.98%, 7.26% 33.10%, 7.85% 32.23%, 8.48% 31.37%, 9.12% 30.53%, 9.79% 29.70%, 10.49% 28.88%, 11.20% 28.07%, 11.94% 27.28%, 12.70% 26.51%, 13.43% 25.77%, 14.17% 25.04%, 14.90% 24.31%, 15.63% 23.58%, 16.36% 22.84%, 17.10% 22.11%, 17.83% 21.38%, 18.56% 20.65%, 19.29% 19.91%, 20.03% 19.18%, 20.76% 18.45%, 21.49% 17.72%, 22.22% 16.98%, 22.96% 16.25%, 23.69% 15.52%, 24.42% 14.79%, 25.15% 14.05%, 25.89% 13.32%, 26.62% 12.59%, 26.62% 12.59%, 27.40% 11.83%, 28.19% 11.09%, 29.00% 10.38%, 29.82% 9.69%, 30.66% 9.02%, 31.50% 8.38%, 32.36% 7.76%, 33.23% 7.17%, 34.11% 6.59%, 35.01% 6.05%, 35.91% 5.52%, 36.82% 5.02%, 37.74% 4.55%, 38.67% 4.09%, 39.61% 3.67%, 40.56% 3.26%, 41.51% 2.88%, 42.47% 2.52%, 43.44% 2.19%, 44.42% 1.88%, 45.40% 1.59%, 46.38% 1.33%, 47.37% 1.09%, 48.37% 0.87%, 49.36% 0.68%, 50.36% 0.51%, 51.37% 0.37%, 52.38% 0.25%, 53.38% 0.15%, 54.40% 0.08%, 55.41% 0.03%, 56.42% 0.00%, 57.43% 0.00%, 58.45% 0.02%, 59.46% 0.07%, 60.47% 0.14%, 61.48% 0.23%, 62.48% 0.35%, 63.49% 0.49%`,"soft-burst":`59.28% 10.04%, 60.01% 11.05%, 60.92% 11.86%, 61.99% 12.44%, 63.15% 12.76%, 64.37% 12.81%, 65.59% 12.57%, 66.75% 12.12%, 67.90% 11.66%, 69.04% 11.20%, 70.18% 10.74%, 71.32% 10.28%, 72.46% 9.83%, 73.60% 9.37%, 74.75% 8.91%, 76.01% 8.58%, 77.25% 8.56%, 78.43% 8.82%, 79.51% 9.33%, 80.44% 10.06%, 81.19% 10.98%, 81.72% 12.06%, 81.98% 13.28%, 81.96% 14.56%, 81.87% 15.78%, 81.77% 17.01%, 81.68% 18.24%, 81.59% 19.46%, 81.50% 20.69%, 81.41% 21.92%, 81.32% 23.14%, 81.32% 24.39%, 81.60% 25.58%, 82.15% 26.65%, 82.93% 27.57%, 83.91% 28.30%, 85.06% 28.79%, 86.27% 29.09%, 87.46% 29.38%, 88.66% 29.67%, 89.85% 29.96%, 91.05% 30.25%, 92.24% 30.54%, 93.44% 30.83%, 94.65% 31.13%, 95.85% 31.62%, 96.85% 32.35%, 97.62% 33.27%, 98.16% 34.32%, 98.46% 35.47%, 98.48% 36.66%, 98.22% 37.84%, 97.67% 38.97%, 96.87% 39.97%, 96.07% 40.90%, 96.27% 41.84%, 94.47% 42.77%, 93.67% 43.70%, 92.87% 44.64%, 92.07% 45.57%, 91.27% 46.51%, 90.54% 47.53%, 90.09% 48.67%, 89.92% 49.86%, 90.03% 51.06%, 90.42% 52.22%, 91.09% 53.27%, 91.89% 54.21%, 92.70% 55.15%, 93.50% 56.08%, 94.30% 57.01%, 95.10% 57.95%, 95.90% 58.88%, 96.70% 59.82%, 97.51% 60.79%, 98.13% 61.90%, 98.45% 63.07%, 98.48% 64.26%, 98.25% 65.42%, 97.76% 66.50%, 97.03% 67.45%, 96.08% 68.22%, 94.93% 68.77%, 93.70% 69.09%, 92.50% 69.38%, 91.31% 69.67%, 90.11% 69.96%, 88.92% 70.25%, 87.72% 70.54%, 86.53% 70.83%, 85.33% 71.12%, 84.14% 71.56%, 83.12% 72.24%, 82.30% 73.12%, 81.70% 74.17%, 81.36% 75.33%, 81.30% 76.58%, 81.39% 77.80%, 81.48% 79.03%, 81.57% 80.26%, 81.66% 81.48%, 81.75% 82.71%, 81.85% 83.94%, 81.94% 85.16%, 82.00% 86.43%, 81.80% 87.67%, 81.33% 88.78%, 80.62% 89.74%, 79.72% 90.52%, 78.67% 91.08%, 77.51% 91.39%, 76.28% 91.44%, 75.02% 91.18%, 73.85% 90.72%, 72.71% 90.26%, 71.57% 89.80%, 70.42% 89.34%, 69.28% 88.88%, 68.14% 88.42%, 67.00% 87.96%, 65.85% 87.50%, 64.64% 87.21%, 63.41% 87.20%, 62.23% 87.46%, 61.14% 87.98%, 60.19% 88.74%, 59.42% 89.72%, 58.77% 90.76%, 58.11% 91.81%, 57.46% 92.85%, 56.80% 93.89%, 56.15% 94.93%, 55.49% 95.97%, 54.84% 97.01%, 54.13% 98.07%, 53.22% 98.94%, 52.17% 99.55%, 51.03% 99.91%, 49.84% 100.00%, 48.66% 99.83%, 47.54% 99.41%, 46.52% 98.72%, 45.67% 97.77%, 44.99% 96.72%, 44.34% 95.67%, 43.68% 94.63%, 43.03% 93.59%, 42.37% 92.55%, 41.72% 91.51%, 41.06% 90.47%, 40.40% 89.42%, 39.57% 88.50%, 38.58% 87.80%, 37.46% 87.36%, 36.26% 87.17%, 35.03% 87.26%, 33.83% 87.64%, 32.69% 88.09%, 31.55% 88.55%, 30.41% 89.01%, 29.27% 89.47%, 28.13% 89.93%, 26.99% 90.39%, 25.85% 90.85%, 24.64% 91.28%, 23.39% 91.46%, 22.17% 91.33%, 21.04% 90.94%, 20.02% 90.32%, 19.17% 89.49%, 18.53% 88.48%, 18.13% 87.33%, 18.02% 86.06%, 18.11% 84.82%, 18.20% 83.59%, 18.29% 82.36%, 18.38% 81.14%, 18.47% 79.91%, 18.56% 78.68%, 18.65% 77.46%, 18.73% 76.22%, 18.59% 74.99%, 18.17% 73.85%, 17.51% 72.85%, 16.62% 72.02%, 15.55% 71.41%, 14.35% 71.04%, 13.15% 70.75%, 11.96% 70.46%, 10.76% 70.17%, 9.57% 69.88%, 8.37% 69.59%, 7.18% 69.30%, 5.98% 69.01%, 4.74% 68.64%, 3.64% 68.02%, 2.76% 67.20%, 2.09% 66.20%, 1.68% 65.10%, 1.52% 63.92%, 1.63% 62.73%, 2.04% 61.57%, 2.75% 60.49%, 3.55% 59.55%, 4.35% 58.62%, 5.15% 57.68%, 5.95% 56.75%, 6.75% 55.81%, 7.55% 54.88%, 8.35% 53.95%, 9.15% 52.99%, 9.74% 51.90%, 10.05% 50.72%, 10.08% 49.52%, 9.83% 48.34%, 9.30% 47.23%, 8.52% 46.24%, 7.72% 45.31%, 6.92% 44.37%, 6.12% 43.44%, 5.32% 42.50%, 4.52% 41.57%, 3.72% 40.64%, 2.92% 39.70%, 2.16% 38.66%, 1.69% 37.51%, 1.52% 36.32%, 1.62% 35.14%, 1.98% 34.01%, 2.59% 32.99%, 3.43% 32.12%, 4.49% 31.46%, 5.72% 31.04%, 6.92% 30.75%, 8.11% 30.46%, 9.31% 30.17%, 10.50% 29.88%, 11.70% 29.59%, 12.90% 29.30%, 14.09% 29.01%, 15.30% 28.68%, 16.41% 28.12%, 17.33% 27.33%, 18.05% 26.36%, 18.52% 25.25%, 18.73% 24.04%, 18.67% 22.80%, 18.58% 21.57%, 18.49% 20.34%, 18.40% 19.11%, 18.31% 17.89%, 18.22% 16.66%, 18.13% 15.43%, 18.04% 14.21%, 18.08% 12.92%, 18.42% 11.74%, 19.02% 10.70%, 19.82% 9.83%, 20.81% 9.16%, 21.92% 8.72%, 23.12% 8.53%, 24.37% 8.64%, 25.60% 9.04%, 26.74% 9.50%, 27.88% 9.96%, 29.02% 10.42%, 30.16% 10.87%, 31.31% 11.33%, 32.45% 11.79%, 33.59% 12.25%, 34.77% 12.67%, 35.99% 12.82%, 37.20% 12.69%, 38.34% 12.30%, 39.37% 11.66%, 40.24% 10.78%, 40.92% 9.74%, 41.58% 8.70%, 42.23% 7.66%, 42.89% 6.62%, 43.54% 5.58%, 44.20% 4.54%, 44.85% 3.50%, 45.51% 2.45%, 45.51% 2.45%, 46.32% 1.45%, 47.31% 0.71%, 48.41% 0.22%, 49.58% 0.00%, 50.77% 0.04%, 51.93% 0.33%, 53.01% 0.89%, 53.95% 1.71%, 54.70% 2.75%, 55.35% 3.79%, 56.01% 4.83%, 56.66% 5.87%, 57.32% 6.91%, 57.97% 7.96%, 58.63% 9.00%`,sunny:`61.43% 7.32%, 62.14% 8.02%, 62.94% 8.72%, 63.93% 9.57%, 64.67% 10.16%, 65.47% 10.66%, 66.44% 11.09%, 67.45% 11.39%, 68.29% 11.52%, 69.44% 11.62%, 70.64% 11.70%, 71.70% 11.77%, 72.77% 11.84%, 73.83% 11.92%, 74.89% 11.99%, 75.96% 12.06%, 77.02% 12.13%, 77.02% 12.13%, 78.53% 12.24%, 79.79% 12.34%, 80.85% 12.46%, 81.73% 12.62%, 82.50% 12.83%, 83.29% 13.16%, 84.21% 13.70%, 85.04% 14.35%, 85.78% 15.11%, 86.42% 15.96%, 86.93% 16.90%, 87.22% 17.64%, 87.42% 18.43%, 87.57% 19.34%, 87.68% 20.43%, 87.79% 21.74%, 87.89% 23.19%, 87.96% 24.25%, 88.03% 25.31%, 88.10% 26.38%, 88.18% 27.44%, 88.25% 28.50%, 88.32% 29.56%, 88.41% 30.82%, 88.50% 31.89%, 88.66% 32.74%, 88.99% 33.75%, 89.45% 34.71%, 89.94% 35.46%, 90.57% 36.24%, 91.42% 37.22%, 92.12% 38.02%, 92.82% 38.82%, 93.52% 39.62%, 94.22% 40.43%, 94.92% 41.23%, 95.62% 42.03%, 96.53% 43.07%, 97.41% 44.10%, 98.13% 44.98%, 98.70% 45.74%, 99.14% 46.44%, 99.46% 47.12%, 99.78% 48.13%, 99.96% 49.18%, 100.00% 50.24%, 99.90% 51.29%, 99.65% 52.33%, 99.33% 53.19%, 98.96% 53.87%, 98.47% 54.60%, 97.84% 55.41%, 97.05% 56.34%, 96.09% 57.45%, 95.32% 58.34%, 94.62% 59.14%, 93.92% 59.94%, 93.22% 60.74%, 92.52% 61.55%, 91.82% 62.35%, 91.07% 63.20%, 90.26% 64.14%, 89.73% 64.85%, 89.23% 65.72%, 88.83% 66.70%, 88.58% 67.66%, 88.46% 68.54%, 88.36% 69.82%, 88.29% 70.92%, 88.22% 71.98%, 88.14% 73.04%, 88.07% 74.10%, 88.00% 75.17%, 87.93% 76.23%, 87.85% 77.43%, 87.74% 78.88%, 87.64% 80.08%, 87.51% 81.09%, 87.34% 81.94%, 87.12% 82.68%, 86.72% 83.53%, 86.15% 84.44%, 85.47% 85.25%, 84.69% 85.96%, 83.82% 86.57%, 82.89% 87.04%, 82.18% 87.29%, 81.37% 87.47%, 80.41% 87.61%, 79.27% 87.72%, 77.90% 87.82%, 76.55% 87.91%, 75.49% 87.99%, 74.43% 88.06%, 73.37% 88.13%, 72.30% 88.20%, 71.24% 88.28%, 70.18% 88.35%, 68.88% 88.44%, 67.90% 88.54%, 67.01% 88.74%, 66.01% 89.10%, 65.07% 89.59%, 64.37% 90.08%, 63.53% 90.79%, 62.59% 91.60%, 61.79% 92.30%, 60.99% 93.01%, 60.99% 93.01%, 60.18% 93.71%, 59.38% 94.41%, 58.58% 95.11%, 57.78% 95.81%, 56.66% 96.78%, 55.68% 97.62%, 54.83% 98.30%, 54.08% 98.83%, 53.39% 99.23%, 52.64% 99.56%, 51.61% 99.85%, 50.56% 99.99%, 49.50% 100.00%, 48.45% 99.86%, 47.42% 99.58%, 46.65% 99.26%, 45.96% 98.86%, 45.22% 98.33%, 44.38% 97.66%, 43.40% 96.83%, 42.27% 95.85%, 41.47% 95.15%, 40.67% 94.45%, 39.87% 93.75%, 39.06% 93.05%, 38.26% 92.35%, 37.46% 91.65%, 36.53% 90.84%, 35.67% 90.12%, 34.99% 89.63%, 34.05% 89.13%, 33.05% 88.76%, 32.15% 88.55%, 31.19% 88.44%, 29.89% 88.35%, 28.83% 88.28%, 27.76% 88.21%, 26.70% 88.14%, 25.64% 88.06%, 24.57% 87.99%, 23.51% 87.92%, 22.19% 87.83%, 20.81% 87.73%, 19.65% 87.62%, 18.69% 87.48%, 17.87% 87.30%, 17.15% 87.06%, 16.24% 86.60%, 15.36% 86.00%, 14.57% 85.30%, 13.88% 84.49%, 13.31% 83.59%, 12.90% 82.73%, 12.67% 81.99%, 12.50% 81.15%, 12.37% 80.15%, 12.26% 78.96%, 12.16% 77.53%, 12.07% 76.30%, 12.00% 75.23%, 11.93% 74.17%, 11.86% 73.11%, 11.79% 72.05%, 11.71% 70.98%, 11.64% 69.92%, 11.54% 68.61%, 11.43% 67.71%, 11.19% 66.77%, 10.80% 65.78%, 10.30% 64.89%, 9.78% 64.19%, 8.99% 63.27%, 8.23% 62.40%, 7.53% 61.60%, 6.83% 60.79%, 6.13% 59.99%, 5.43% 59.19%, 4.72% 58.39%, 3.98% 57.53%, 3.00% 56.41%, 2.21% 55.46%, 1.56% 54.65%, 1.06% 53.92%, 0.69% 53.23%, 0.36% 52.40%, 0.11% 51.36%, 0.00% 50.31%, 0.03% 49.25%, 0.20% 48.20%, 0.52% 47.18%, 0.84% 46.49%, 1.27% 45.79%, 1.83% 45.03%, 2.53% 44.16%, 3.41% 43.14%, 4.33% 42.08%, 5.03% 41.28%, 5.73% 40.48%, 6.43% 39.67%, 7.13% 38.87%, 7.83% 38.07%, 8.53% 37.27%, 9.38% 36.30%, 10.03% 35.50%, 10.52% 34.77%, 10.99% 33.81%, 11.32% 32.80%, 11.49% 31.95%, 11.59% 30.90%, 11.67% 29.63%, 11.74% 28.57%, 11.82% 27.51%, 11.89% 26.44%, 11.96% 25.38%, 12.03% 24.32%, 12.11% 23.25%, 12.20% 21.83%, 12.31% 20.51%, 12.42% 19.40%, 12.57% 18.48%, 12.76% 17.69%, 13.04% 16.96%, 13.55% 16.02%, 14.17% 15.16%, 14.90% 14.40%, 15.73% 13.74%, 16.65% 13.19%, 17.46% 12.84%, 18.21% 12.63%, 19.09% 12.47%, 20.13% 12.35%, 21.38% 12.24%, 22.88% 12.14%, 23.97% 12.07%, 25.04% 11.99%, 26.10% 11.92%, 27.16% 11.85%, 28.23% 11.78%, 29.29% 11.70%, 30.47% 11.62%, 31.65% 11.53%, 32.49% 11.40%, 33.49% 11.11%, 34.47% 10.69%, 35.28% 10.19%, 36.01% 9.62%, 37.01% 8.76%, 37.81% 8.06%, 38.61% 7.36%, 39.41% 6.66%, 40.22% 5.96%, 41.02% 5.26%, 41.82% 4.56%, 42.78% 3.73%, 43.85% 2.80%, 44.76% 2.04%, 45.55% 1.44%, 46.26% 0.97%, 46.94% 0.62%, 47.87% 0.30%, 48.91% 0.08%, 49.97% 0.00%, 51.02% 0.07%, 52.07% 0.28%, 53.01% 0.60%, 53.69% 0.94%, 54.40% 1.40%, 55.19% 2.00%, 56.09% 2.74%, 57.15% 3.66%, 58.13% 4.51%, 58.93% 5.21%, 59.73% 5.91%, 60.53% 6.62%`},rn=class extends U{constructor(...e){super(...e),this.variant=`uncontained`}connectedCallback(){super.connectedCallback(),this.ariaValueMin=this.ariaValueMin||`0`,this.ariaValueMax=this.ariaValueMax||`100`,this.role=this.role||`progressbar`,this._toggleAnimation(!0)}disconnectedCallback(){super.disconnectedCallback(),this._toggleAnimation(!1)}firstUpdated(){this._toggleAnimation(!0)}_toggleAnimation(e){this._container&&this._container.classList.toggle(`animate`,e)}static{this.styles=[W,g`
|
|
7282
7297
|
:host {
|
|
7283
7298
|
display: inline-block;
|
|
7284
7299
|
aspect-ratio: 1 / 1;
|
|
@@ -7340,13 +7355,13 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7340
7355
|
transform-origin: center;
|
|
7341
7356
|
transition: clip-path 500ms cubic-bezier(0.2, 0, 0, 1);
|
|
7342
7357
|
will-change: transform, clip-path;
|
|
7343
|
-
--_polygon-soft-burst: polygon(${h(
|
|
7344
|
-
--_polygon-9-sided-cookie: polygon(${h(
|
|
7345
|
-
--_polygon-pentagon: polygon(${h(
|
|
7346
|
-
--_polygon-pill: polygon(${h(
|
|
7347
|
-
--_polygon-sunny: polygon(${h(
|
|
7348
|
-
--_polygon-4-sided-cookie: polygon(${h(
|
|
7349
|
-
--_polygon-oval: polygon(${h(
|
|
7358
|
+
--_polygon-soft-burst: polygon(${h(nn[`soft-burst`])});
|
|
7359
|
+
--_polygon-9-sided-cookie: polygon(${h(nn[`9-sided-cookie`])});
|
|
7360
|
+
--_polygon-pentagon: polygon(${h(nn.pentagon)});
|
|
7361
|
+
--_polygon-pill: polygon(${h(nn.pill)});
|
|
7362
|
+
--_polygon-sunny: polygon(${h(nn.sunny)});
|
|
7363
|
+
--_polygon-4-sided-cookie: polygon(${h(nn[`4-sided-cookie`])});
|
|
7364
|
+
--_polygon-oval: polygon(${h(nn.oval)});
|
|
7350
7365
|
}
|
|
7351
7366
|
|
|
7352
7367
|
.container.animate .active-indicator-wrapper {
|
|
@@ -7422,7 +7437,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7422
7437
|
clip-path: var(--_polygon-soft-burst);
|
|
7423
7438
|
}
|
|
7424
7439
|
}
|
|
7425
|
-
`]}render(){return
|
|
7440
|
+
`]}render(){return L`
|
|
7426
7441
|
<div class="container animate" aria-hidden="true">
|
|
7427
7442
|
<div class="active-indicator-wrapper">
|
|
7428
7443
|
<div class="active-indicator-scale">
|
|
@@ -7430,7 +7445,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7430
7445
|
</div>
|
|
7431
7446
|
</div>
|
|
7432
7447
|
</div>
|
|
7433
|
-
`}};K([V({reflect:!0})],an.prototype,`variant`,void 0),K([U(`.container`)],an.prototype,`_container`,void 0),an=K([B(`moni-loading-indicator`)],an);function on(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function sn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var cn={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},ln={duration:.5,overwrite:!1,delay:0},un,dn,fn,pn=1e8,Y=1/pn,mn=Math.PI*2,hn=mn/4,gn=0,_n=Math.sqrt,vn=Math.cos,yn=Math.sin,bn=function(e){return typeof e==`string`},xn=function(e){return typeof e==`function`},Sn=function(e){return typeof e==`number`},Cn=function(e){return e===void 0},wn=function(e){return typeof e==`object`},Tn=function(e){return e!==!1},En=function(){return typeof window<`u`},Dn=function(e){return xn(e)||bn(e)},On=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},kn=Array.isArray,An=/random\([^)]+\)/g,jn=/,\s*/g,Mn=/(?:-?\.?\d|\.)+/gi,Nn=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Pn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Fn=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,In=/[+-]=-?[.\d]+/,Ln=/[^,'"\[\]\s]+/gi,Rn=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,zn,Bn,Vn,Hn,Un={},Wn={},Gn,Kn=function(e){return(Wn=wr(e,Un))&&Va},qn=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},Jn=function(e,t){return!t&&console.warn(e)},Yn=function(e,t){return e&&(Un[e]=t)&&Wn&&(Wn[e]=t)||Un},Xn=function(){return 0},Zn={suppressEvents:!0,isStart:!0,kill:!1},Qn={suppressEvents:!0,kill:!1},$n={suppressEvents:!0},er={},tr=[],nr={},rr,ir={},ar={},or=30,sr=[],cr=``,lr=function(e){var t=e[0],n,r;if(wn(t)||xn(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=sr.length;r--&&!sr[r].targetTest(t););n=sr[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Zi(e[r],n)))||e.splice(r,1);return e},ur=function(e){return e._gsap||lr(si(e))[0]._gsap},dr=function(e,t,n){return(n=e[t])&&xn(n)?e[t]():Cn(n)&&e.getAttribute&&e.getAttribute(t)||n},fr=function(e,t){return(e=e.split(`,`)).forEach(t)||e},pr=function(e){return Math.round(e*1e5)/1e5||0},mr=function(e){return Math.round(e*1e7)/1e7||0},hr=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},gr=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},_r=function(){var e=tr.length,t=tr.slice(0),n,r;for(nr={},tr.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},vr=function(e){return!!(e._initted||e._startAt||e.add)},yr=function(e,t,n,r){tr.length&&!dn&&_r(),e.render(t,n,r||!!(dn&&t<0&&vr(e))),tr.length&&!dn&&_r()},br=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(Ln).length<2?t:bn(e)?e.trim():e},xr=function(e){return e},Sr=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Cr=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},wr=function(e,t){for(var n in t)e[n]=t[n];return e},Tr=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=wn(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},Er=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},Dr=function(e){var t=e.parent||zn,n=e.keyframes?Cr(kn(e.keyframes)):Sr;if(Tn(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},Or=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},kr=function(e,t,n,r,i){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var a=e[r],o;if(i)for(o=t[i];a&&a[i]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},Ar=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},jr=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Mr=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},Nr=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Pr=function(e,t,n,r){return e._startAt&&(dn?e._startAt.revert(Qn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},Fr=function e(t){return!t||t._ts&&e(t.parent)},Ir=function(e){return e._repeat?Lr(e._tTime,e=e.duration()+e._rDelay)*e:0},Lr=function(e,t){var n=Math.floor(e=mr(e/t));return e&&n===e?n-1:n},Rr=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},zr=function(e){return e._end=mr(e._start+(e._tDur/Math.abs(e._ts||e._rts||Y)||0))},Br=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=mr(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),zr(e),n._dirty||Mr(n,e)),e},Vr=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=Rr(e.rawTime(),t),(!t._dur||ti(0,t.totalDuration(),n)-t._tTime>Y)&&t.render(n,!0)),Mr(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-Y}},Hr=function(e,t,n,r){return t.parent&&jr(t),t._start=mr((Sn(n)?n:n||e!==zn?Qr(e,n,t):e._time)+t._delay),t._end=mr(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),kr(e,t,`_first`,`_last`,e._sort?`_start`:0),Kr(t)||(e._recent=t),r||Vr(e,t),e._ts<0&&Br(e,e._tTime),e},Ur=function(e,t){return(Un.ScrollTrigger||qn(`scrollTrigger`,t))&&Un.ScrollTrigger.create(t,e)},Wr=function(e,t,n,r,i){if(oa(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!dn&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&rr!==Ri.frame)return tr.push(e),e._lazy=[i,r],1},Gr=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},Kr=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},qr=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&Gr(e)&&!(!e._initted&&Kr(e))||(e._ts<0||e._dp._ts<0)&&!Kr(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=ti(0,e._tDur,t),l=Lr(s,o),e._yoyo&&l&1&&(a=1-a),l!==Lr(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||dn||r||e._zTime===Y||!t&&e._zTime){if(!e._initted&&Wr(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?Y:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&Pr(e,t,n,!0),e._onUpdate&&!n&&wi(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&wi(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&jr(e,1),!n&&!dn&&(wi(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},Jr=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start<t)return r;r=r._prev}},Yr=function(e,t,n,r){var i=e._repeat,a=mr(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:mr(a*(i+1)+e._rDelay*i):a,o>0&&!r&&Br(e,e._tTime=e._tDur*o),e.parent&&zr(e),n||Mr(e.parent,e),e},Xr=function(e){return e instanceof $i?Mr(e):Yr(e,e._dur)},Zr={_start:0,endTime:Xn,totalDuration:Xn},Qr=function e(t,n,r){var i=t.labels,a=t._recent||Zr,o=t.duration()>=pn?a.endTime(!1):t._dur,s,c,l;return bn(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(kn(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},$r=function(e,t,n){var r=Sn(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=Tn(s.vars.inherit)&&s.parent;a.immediateRender=Tn(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new pa(t[0],a,t[i+1])},ei=function(e,t){return e||e===0?t(e):t},ti=function(e,t,n){return n<e?e:n>t?t:n},ni=function(e,t){return!bn(e)||!(t=Rn.exec(e))?``:t[1]},ri=function(e,t,n){return ei(n,function(n){return ti(e,t,n)})},ii=[].slice,ai=function(e,t){return e&&wn(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&wn(e[0]))&&!e.nodeType&&e!==Bn},oi=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return bn(e)&&!t||ai(e,1)?(r=n).push.apply(r,si(e)):n.push(e)})||n},si=function(e,t,n){return fn&&!t&&fn.selector?fn.selector(e):bn(e)&&!n&&(Vn||!zi())?ii.call((t||Hn).querySelectorAll(e),0):kn(e)?oi(e,n):ai(e)?ii.call(e,0):e?[e]:[]},ci=function(e){return e=si(e)[0]||Jn(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return si(t,n.querySelectorAll?n:n===e?Jn(`Invalid scope`)||Hn.createElement(`div`):e)}},li=function(e){return e.sort(function(){return .5-Math.random()})},ui=function(e){if(xn(e))return e;var t=wn(e)?e:{each:e},n=Ki(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return bn(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,x,S;if(!p){if(S=t.grid===`auto`?0:(t.grid||[1,pn])[1],!S){for(b=-pn;b<(b=d[S++].getBoundingClientRect().left)&&S<f;);S<f&&S--}for(p=a[f]=[],m=s?Math.min(S,f)*l-.5:r%S,h=S===pn?0:s?f*u/S-.5:r/S|0,b=0,x=pn,y=0;y<f;y++)g=y%S-m,_=h-(y/S|0),p[y]=v=c?Math.abs(c===`y`?_:g):_n(g*g+_*_),v>b&&(b=v),v<x&&(x=v);r===`random`&&li(p),p.max=b-x,p.min=x,p.v=f=(parseFloat(t.amount)||parseFloat(t.each)*(S>f?f-1:c?c===`y`?f/S:S:Math.max(S,f/S))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=ni(t.amount||t.each)||0,n=n&&f<0?Gi(n):n}return f=(p[e]-p.min)/p.max||0,mr(p.b+(n?n(f):f)*p.v)+p.u}},di=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=mr(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(Sn(n)?0:ni(n))}},fi=function(e,t){var n=kn(e),r,i;return!n&&wn(e)&&(r=n=e.radius||pn,e.values?(e=si(e.values),(i=!Sn(e[0]))&&(r*=r)):e=di(e.increment)),ei(t,n?xn(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=pn,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),l<o&&(o=l,s=c);return s=!r||o<=r?e[s]:t,i||s===t||Sn(t)?s:s+ni(t)}:di(e))},pi=function(e,t,n,r){return ei(kn(e)?!t:n===!0?!!(n=0):!r,function(){return kn(e)?e[~~(Math.random()*e.length)]:(n||=1e-5)&&(r=n<1?10**((n+``).length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+n*.99))/n)*n*r)/r})},mi=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(e,t){return t(e)},e)}},hi=function(e,t){return function(n){return e(parseFloat(n))+(t||ni(n))}},gi=function(e,t,n){return xi(e,t,0,1,n)},_i=function(e,t,n){return ei(n,function(n){return e[~~t(n)]})},vi=function e(t,n,r){var i=n-t;return kn(t)?_i(t,e(0,t.length),n):ei(r,function(e){return(i+(e-t)%i)%i+t})},yi=function e(t,n,r){var i=n-t,a=i*2;return kn(t)?_i(t,e(0,t.length-1),n):ei(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},bi=function(e){return e.replace(An,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(jn);return pi(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},xi=function(e,t,n,r,i){var a=t-e,o=r-n;return ei(i,function(t){return n+((t-e)/a*o||0)})},Si=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=bn(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(kn(t)&&!kn(n)){for(u=[],d=t.length,f=d-2,l=1;l<d;l++)u.push(e(t[l-1],t[l]));d--,a=function(e){e*=d;var t=Math.min(f,~~e);return u[t](e-t)},r=n}else i||(t=wr(kn(t)?[]:{},t));if(!u){for(c in n)ta.call(s,t,c,`get`,n[c]);a=function(e){return Sa(e,s)||(o?t.p:t)}}}return ei(r,a)},Ci=function(e,t,n){var r=e.labels,i=pn,a,o,s;for(a in r)o=r[a]-t,o<0==!!n&&o&&i>(o=Math.abs(o))&&(s=a,i=o);return s},wi=function(e,t,n){var r=e.vars,i=r[t],a=fn,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&tr.length&&_r(),o&&(fn=o),l=s?i.apply(c,s):i.call(c),fn=a,l},Ti=function(e){return jr(e),e.scrollTrigger&&e.scrollTrigger.kill(!!dn),e.progress()<1&&wi(e,`onInterrupt`),e},Ei,Di=[],Oi=function(e){if(e){if(e=!e.name&&e.default||e,En()||e.headless){var t=e.name,n=xn(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:Xn,render:Sa,add:ta,kill:wa,modifier:Ca,rawVars:0},a={targetTest:0,get:0,getSetter:va,aliases:{},register:0};if(zi(),e!==r){if(ir[t])return;Sr(r,Sr(Er(e,i),a)),wr(r.prototype,wr(i,Er(e,a))),ir[r.prop=t]=r,e.targetTest&&(sr.push(r),er[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}Yn(t,r),e.register&&e.register(Va,r,Da)}else Di.push(e)}},X=255,ki={aqua:[0,X,X],lime:[0,X,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,X],navy:[0,0,128],white:[X,X,X],olive:[128,128,0],yellow:[X,X,0],orange:[X,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[X,0,0],pink:[X,192,203],cyan:[0,X,X],transparent:[X,X,X,0]},Ai=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*X+.5|0},ji=function(e,t,n){var r=e?Sn(e)?[e>>16,e>>8&X,e&X]:0:ki.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),ki[e])r=ki[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&X,r&X,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&X,e&X]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(Mn),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=Ai(s+1/3,i,a),r[1]=Ai(s,i,a),r[2]=Ai(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(Nn),n&&r.length<4&&(r[3]=1),r}else r=e.match(Mn)||ki.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/X,a=r[1]/X,o=r[2]/X,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(a<o?6:0):u===a?(o-i)/f+2:(i-a)/f+4,s*=60),r[0]=~~(s+.5),r[1]=~~(c*100+.5),r[2]=~~(l*100+.5)),n&&r.length<4&&(r[3]=1),r},Mi=function(e){var t=[],n=[],r=-1;return e.split(Pi).forEach(function(e){var i=e.match(Pn)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},Ni=function(e,t,n){var r=``,i=(e+r).match(Pi),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=ji(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=Mi(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(Pi,`1`).split(Pn),u=c.length-1;o<u;o++)r+=c[o]+(~s.indexOf(o)?i.shift()||a+`0,0,0,0)`:(l.length?l:i.length?i:n).shift());if(!c)for(c=e.split(Pi),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},Pi=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in ki)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),Fi=/hsl[a]?\(/,Ii=function(e){var t=e.join(` `),n;if(Pi.lastIndex=0,Pi.test(t))return n=Fi.test(t),e[1]=Ni(e[1],n),e[0]=Ni(e[0],n,Mi(e[1])),!0},Li,Ri=function(){var e=Date.now,t=500,n=33,r=e(),i=r,a=1e3/240,o=a,s=[],c,l,u,d,f,p,m=function u(m){var h=e()-i,g=m===!0,_,v,y,b;if((h>t||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p<s.length;p++)s[p](y,f,b,m)};return d={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(e){return f/(1e3/(e||60))},wake:function(){Gn&&(!Vn&&En()&&(Bn=Vn=window,Hn=Bn.document||{},Un.gsap=Va,(Bn.gsapVersions||(Bn.gsapVersions=[])).push(Va.version),Kn(Wn||Bn.GreenSockGlobals||!Bn.gsap&&Bn||{}),Di.forEach(Oi)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},Li=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),Li=0,l=Xn},lagSmoothing:function(e,r){t=e||1/0,n=Math.min(r||33,t)},fps:function(e){a=1e3/(e||240),o=d.time*1e3+a},add:function(e,t,n){var r=t?function(t,n,i,a){e(t,n,i,a),d.remove(r)}:e;return d.remove(e),s[n?`unshift`:`push`](r),zi(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),zi=function(){return!Li&&Ri.wake()},Z={},Bi=/^[\d.\-M][\d.\-,\s]/,Vi=/["']/g,Hi=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i<a;i++)s=n[i],o=i===a-1?s.length:s.lastIndexOf(`,`),c=s.substr(0,o),t[r]=isNaN(c)?c.replace(Vi,``).trim():+c,r=s.substr(o+1).trim();return t},Ui=function(e){var t=e.indexOf(`(`)+1,n=e.indexOf(`)`),r=e.indexOf(`(`,t);return e.substring(t,~r&&r<n?e.indexOf(`)`,n+1):n)},Wi=function(e){var t=(e+``).split(`(`),n=Z[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[Hi(t[1])]:Ui(e).split(`,`).map(br)):Z._CE&&Bi.test(e)?Z._CE(``,e):n},Gi=function(e){return function(t){return 1-e(1-t)}},Ki=function(e,t){return e&&(xn(e)?e:Z[e]||Wi(e))||t},qi=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return fr(e,function(e){for(var t in Z[e]=Un[e]=i,Z[a=e.toLowerCase()]=n,i)Z[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=Z[e+`.`+t]=i[t]}),i},Ji=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Yi=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/mn*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*yn((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:Ji(s);return a=mn/a,c.config=function(n,r){return e(t,n,r)},c},Xi=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:Ji(r);return i.config=function(n){return e(t,n)},i};fr(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;qi(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),Z.Linear.easeNone=Z.none=Z.Linear.easeIn,qi(`Elastic`,Yi(`in`),Yi(`out`),Yi()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a<n?e*a*a:a<r?e*(a-1.5/t)**2+.75:a<i?e*(a-=2.25/t)*a+.9375:e*(a-2.625/t)**2+.984375};qi(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),qi(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),qi(`Circ`,function(e){return-(_n(1-e*e)-1)}),qi(`Sine`,function(e){return e===1?1:-vn(e*hn)+1}),qi(`Back`,Xi(`in`),Xi(`out`),Xi()),Z.SteppedEase=Z.steps=Un.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-Y;return function(e){return((r*ti(0,a,e)|0)+i)*n}}},ln.ease=Z[`quad.out`],fr(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return cr+=e+`,`+e+`Params,`});var Zi=function(e,t){this.id=gn++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:dr,this.set=t?t.getSetter:va},Qi=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,Yr(this,+e.duration,1,1),this.data=e.data,fn&&(this._ctx=fn,fn.data.push(this)),Li||Ri.wake()}var t=e.prototype;return t.delay=function(e){return e||e===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,Yr(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(zi(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Br(this,e),!n._dp||n.parent||Vr(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&Hr(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===Y||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),yr(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Ir(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+Ir(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?Lr(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-Y?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?Rr(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-Y?0:this._rts,this.totalTime(ti(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),zr(this),Nr(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(zi(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Y&&(this._tTime-=Y)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=mr(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Hr(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(Tn(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Rr(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=$n);var t=dn;return dn=e,vr(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),dn=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,Xr(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,Xr(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(Qr(this,e),Tn(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,Tn(t)),this._dur||(this._zTime=-Y),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-Y:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Y,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n<this.endTime(!0)-Y)},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=xn(e)?e:xr,a=function(){var e=t.then;t.then=null,n&&n(),xn(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){Ti(this)},e}();Sr(Qi.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Y,_prom:0,_ps:!1,_rts:1});var $i=function(e){sn(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=Tn(t.sortChildren),zn&&Hr(t.parent||zn,on(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&Ur(on(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return $r(0,arguments,this),this},n.from=function(e,t,n){return $r(1,arguments,this),this},n.fromTo=function(e,t,n,r){return $r(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Dr(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new pa(e,t,Qr(this,n),1),this},n.call=function(e,t,n){return Hr(this,pa.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new pa(e,n,Qr(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Dr(n).immediateRender=Tn(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Dr(r).immediateRender=Tn(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:mr(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==zn&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=mr(o%f),o===i?(d=this._repeat,c=a):(_=mr(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=Lr(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,y=1),d!==_&&!this._lock){var b=v&&_&1,x=b===(v&&d&1);if(d<_&&(b=!b),r=b?0:o%a?a:o,this._lock=1,this.render(r||(y?0:mr(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&wi(this,`onRepeat`),this.vars.repeatRefresh&&!y&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,x&&(this._lock=2,r=b?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!y&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=Jr(this,mr(r),mr(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(wi(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-Y);break}}l=u}else{l=this._last;for(var S=e<0?e:c;l;){if(u=l._prev,(l._act||S<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(S-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(S-l._start)*l._ts,t,n||dn&&vr(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-Y:Y);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-Y)._zTime=c>=r?1:-1,this._ts))return this._start=g,zr(this),this.render(e,t,n);this._onUpdate&&!t&&wi(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&jr(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(wi(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o<i&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(Sn(t)||(t=Qr(this,t,e)),!(e instanceof Qi)){if(kn(e))return e.forEach(function(e){return n.add(e,t)}),this;if(bn(e))return this.addLabel(e,t);if(xn(e))e=pa.delayedCall(0,e);else return this}return this===e?this:Hr(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-pn);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof pa?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return bn(e)?this.removeLabel(e):xn(e)?this.killTweensOf(e):(e.parent===this&&Ar(this,e),e===this._recent&&(this._recent=this._last),Mr(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=mr(Ri.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=Qr(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=pa.delayedCall(0,t||Xn,n);return r.data=`isPause`,this._hasPause=1,Hr(this,r,Qr(this,e))},n.removePause=function(e){var t=this._first;for(e=Qr(this,e);t;)t._start===e&&t.data===`isPause`&&jr(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)ia!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=si(e),i=this._first,a=Sn(t),o;i;)i instanceof pa?gr(i._targets,r)&&(a?(!ia||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=Qr(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=pa.to(n,Sr({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||Y,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&Yr(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,Sr({startAt:{time:Qr(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Ci(this,Qr(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Ci(this,Qr(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+Y)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=mr(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return Mr(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Mr(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=pn,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,Hr(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=mr(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;Yr(n,n===zn&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(zn._ts&&(yr(zn,Rr(e,zn)),rr=Ri.frame),Ri.frame>=or){or+=cn.autoSleep||120;var t=zn._first;if((!t||!t._ts)&&cn.autoSleep&&Ri._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||Ri.sleep()}}},t}(Qi);Sr($i.prototype,{_lock:0,_hasPause:0,_forcing:0});var ea=function(e,t,n,r,i,a,o){var s=new Da(this._pt,e,t,0,1,xa,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=bi(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(Fn)||[];u=Fn.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?hr(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=Fn.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(In.test(r)||g)&&(s.e=0),this._pt=s,s},ta=function(e,t,n,r,i,a,o,s,c,l){xn(r)&&(r=r(i||0,e,a));var u=e[t],d=n===`get`?xn(u)?c?e[t.indexOf(`set`)||!xn(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](c):e[t]():u:n,f=xn(u)?c?ga:ha:ma,p;if(bn(r)&&(~r.indexOf(`random(`)&&(r=bi(r)),r.charAt(1)===`=`&&(p=hr(d,r)+(ni(d)||0),(p||p===0)&&(r=p))),!l||d!==r||aa)return!isNaN(d*r)&&r!==``?(p=new Da(this._pt,e,t,+d||0,r-(d||0),typeof u==`boolean`?ba:ya,0,f),c&&(p.fp=c),o&&p.modifier(o,this,e),this._pt=p):(!u&&!(t in e)&&qn(t,r),ea.call(this,e,t,d,r,f,s||cn.stringFilter,c))},na=function(e,t,n,r,i){if(xn(e)&&(e=ua(e,i,t,n,r)),!wn(e)||e.style&&e.nodeType||kn(e)||On(e))return bn(e)?ua(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=ua(e[o],i,t,n,r);return a},ra=function(e,t,n,r,i,a){var o,s,c,l;if(ir[e]&&(o=new ir[e]).init(i,o.rawVars?t[e]:na(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new Da(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==Ei))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},ia,aa,oa=function e(t,n,r){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,c=i.lazy,l=i.onUpdate,u=i.runBackwards,d=i.yoyoEase,f=i.keyframes,p=i.autoRevert,m=t._dur,h=t._startAt,g=t._targets,_=t.parent,v=_&&_.data===`nested`?_.vars.targets:g,y=t._overwrite===`auto`&&!un,b=t.timeline,x=i.easeReverse||d,S,C,w,T,E,D,O,k,A,j,M,N,ee;if(b&&(!f||!a)&&(a=`none`),t._ease=Ki(a,ln.ease),t._rEase=x&&(Ki(x)||t._ease),t._from=!b&&!!i.runBackwards,t._from&&(t.ratio=1),!b||f&&!i.stagger){if(k=g[0]?ur(g[0]).harness:0,N=k&&i[k.prop],S=Er(i,er),h&&(h._zTime<0&&h.progress(1),n<0&&u&&s&&!p?h.render(-1,!0):h.revert(u&&m?Qn:Zn),h._lazy=0),o){if(jr(t._startAt=pa.set(g,Sr({data:`isStart`,overwrite:!1,parent:_,immediateRender:!0,lazy:!h&&Tn(c),startAt:null,delay:0,onUpdate:l&&function(){return wi(t,`onUpdate`)},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(dn||!s&&!p)&&t._startAt.revert(Qn),s&&m&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(u&&m&&!h){if(n&&(s=!1),w=Sr({overwrite:!1,data:`isFromStart`,lazy:s&&!h&&Tn(c),immediateRender:s,stagger:0,parent:_},S),N&&(w[k.prop]=N),jr(t._startAt=pa.set(g,w)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(dn?t._startAt.revert(Qn):t._startAt.render(-1,!0)),t._zTime=n,!s)e(t._startAt,Y,Y);else if(!n)return}for(t._pt=t._ptCache=0,c=m&&Tn(c)||c&&!m,C=0;C<g.length;C++){if(E=g[C],O=E._gsap||lr(g)[C]._gsap,t._ptLookup[C]=j={},nr[O.id]&&tr.length&&_r(),M=v===g?C:v.indexOf(E),k&&(A=new k).init(E,N||S,t,M,v)!==!1&&(t._pt=T=new Da(t._pt,E,A.name,0,1,A.render,A,0,A.priority),A._props.forEach(function(e){j[e]=T}),A.priority&&(D=1)),!k||N)for(w in S)ir[w]&&(A=ra(w,S,t,M,E,v))?A.priority&&(D=1):j[w]=T=ta.call(t,E,w,`get`,S[w],M,v,0,i.stringFilter);t._op&&t._op[C]&&t.kill(E,t._op[C]),y&&t._pt&&(ia=t,zn.killTweensOf(E,j,t.globalTime(n)),ee=!t.parent,ia=0),t._pt&&c&&(nr[O.id]=1)}D&&Ea(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!ee,f&&n<=0&&b.render(pn,!0,!0)},sa=function(e,t,n,r,i,a,o,s){var c=(e._pt&&e._ptCache||(e._ptCache={}))[t],l,u,d,f;if(!c)for(c=e._ptCache[t]=[],d=e._ptLookup,f=e._targets.length;f--;){if(l=d[f][t],l&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return aa=1,e.vars[t]=`+=0`,oa(e,o),aa=0,s?Jn(t+` not eligible for reset. Try splitting into individual properties`):1;c.push(l)}for(f=c.length;f--;)u=c[f],l=u._pt||u,l.s=(r||r===0)&&!i?r:l.s+(r||0)+a*l.c,l.c=n-l.s,u.e&&(u.e=pr(n)+ni(u.e)),u.b&&(u.b=l.s+ni(u.b))},ca=function(e,t){var n=e[0]?ur(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=wr({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},la=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(kn(t))o=n[e]||(n[e]=[]),t.forEach(function(e,n){return o.push({t:n/(t.length-1)*100,v:e,e:i})});else for(a in t)o=n[a]||(n[a]=[]),a===`ease`||o.push({t:parseFloat(e),v:t[a],e:i})},ua=function(e,t,n,r,i){return xn(e)?e.call(t,n,r,i):bn(e)&&~e.indexOf(`random(`)?bi(e):e},da=cr+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,fa={};fr(da+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return fa[e]=1});var pa=function(e){sn(t,e);function t(t,n,r,i){var a;typeof n==`number`&&(r.duration=n,n=r,r=null),a=e.call(this,i?n:Dr(n))||this;var o=a.vars,s=o.duration,c=o.delay,l=o.immediateRender,u=o.stagger,d=o.overwrite,f=o.keyframes,p=o.defaults,m=o.scrollTrigger,h=n.parent||zn,g=(kn(t)||On(t)?Sn(t[0]):`length`in n)?[t]:si(t),_,v,y,b,x,S,C,w;if(a._targets=g.length?lr(g):Jn(`GSAP target `+t+` not found. https://gsap.com`,!cn.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,f||u||Dn(s)||Dn(c)){n=a.vars;var T=n.easeReverse||n.yoyoEase;if(_=a.timeline=new $i({data:`nested`,defaults:p||{},targets:h&&h.data===`nested`?h.vars.targets:g}),_.kill(),_.parent=_._dp=on(a),_._start=0,u||Dn(s)||Dn(c)){if(b=g.length,C=u&&ui(u),wn(u))for(x in u)~da.indexOf(x)&&(w||={},w[x]=u[x]);for(v=0;v<b;v++)y=Er(n,fa),y.stagger=0,T&&(y.easeReverse=T),w&&wr(y,w),S=g[v],y.duration=+ua(s,on(a),v,S,g),y.delay=(+ua(c,on(a),v,S,g)||0)-a._delay,!u&&b===1&&y.delay&&(a._delay=c=y.delay,a._start+=c,y.delay=0),_.to(S,y,C?C(v,S,g):0),_._ease=Z.none;_.duration()?s=c=0:a.timeline=0}else if(f){Dr(Sr(_.vars.defaults,{ease:`none`})),_._ease=Ki(f.ease||n.ease||`none`);var E=0,D,O,k;if(kn(f))f.forEach(function(e){return _.to(g,e,`>`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||la(x,f[x],y,f.easeEach);for(x in y)for(D=y[x].sort(function(e,t){return e.t-t.t}),E=0,v=0;v<D.length;v++)O=D[v],k={ease:O.e,duration:(O.t-(v?D[v-1].t:0))/100*s},k[x]=O.v,_.to(g,k,E),E+=k.duration;_.duration()<s&&_.to({},{duration:s-_.duration()})}}s||a.duration(s=_.duration())}else a.timeline=0;return d===!0&&!un&&(ia=on(a),zn.killTweensOf(g),ia=0),Hr(h,on(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(l||!s&&!f&&a._start===mr(h._time)&&Tn(l)&&Fr(on(a))&&h.data!==`nested`)&&(a._tTime=-Y,a.render(Math.max(0,-c)||0)),m&&Ur(on(a),m),a}var n=t.prototype;return n.render=function(e,t,n){var r=this._time,i=this._tDur,a=this._dur,o=e<0,s=e>i-Y&&!o?i:e<Y?0:e,c,l,u,d,f,p,m,h;if(!a)qr(this,e,t,n);else if(s!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==o||this._lazy){if(c=s,h=this.timeline,this._repeat){if(d=a+this._rDelay,this._repeat<-1&&o)return this.totalTime(d*100+e,t,n);if(c=mr(s%d),s===i?(u=this._repeat,c=a):(f=mr(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=Lr(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(mr(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(Wr(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c<r;if(g!==this._inv){var _=g?r:a-r;this._inv=g,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=r,this._invRecip=_?(g?-1:1)/_:0,this._invScale=g?-this.ratio:1-this.ratio,this._invEase=g?this._rEase:this._ease}this.ratio=m=this._invRatio+this._invScale*this._invEase((c-this._invTime)*this._invRecip)}else this.ratio=m=this._ease(c/a);if(this._from&&(this.ratio=m=1-m),this._tTime=s,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),!r&&s&&!t&&!f&&(wi(this,`onStart`),this._tTime!==s))return this;for(l=this._pt;l;)l.r(m,l.d),l=l._next;h&&h.render(e<0?e:h._dur*h._ease(c/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(o&&Pr(this,e,t,n),wi(this,`onUpdate`)),this._repeat&&u!==f&&this.vars.onRepeat&&!t&&this.parent&&wi(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&Pr(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&jr(this,1),!t&&!(o&&!r)&&(s||r||p)&&(wi(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s<i&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){Li||Ri.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||oa(this,a),o=this._ease(a/this._dur),sa(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(Br(this,0),this.parent||kr(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Ti(this):this.scrollTrigger&&this.scrollTrigger.kill(!!dn),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,ia&&ia.vars.overwrite!==!0)._first||Ti(this),this.parent&&n!==this.timeline.totalDuration()&&Yr(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?si(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&Or(r,i))return t===`all`&&(this._pt=0),Ti(this);for(s=this._op=this._op||[],t!==`all`&&(bn(t)&&(d={},fr(t,function(e){return d[e]=1}),t=d),t=ca(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&Ar(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&Ti(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return $r(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return $r(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return zn.killTweensOf(e,t,n)},t}(Qi);Sr(pa.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),fr(`staggerTo,staggerFrom,staggerFromTo`,function(e){pa[e]=function(){var t=new $i,n=ii.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var ma=function(e,t,n){return e[t]=n},ha=function(e,t,n){return e[t](n)},ga=function(e,t,n,r){return e[t](r.fp,n)},_a=function(e,t,n){return e.setAttribute(t,n)},va=function(e,t){return xn(e[t])?ha:Cn(e[t])&&e.setAttribute?_a:ma},ya=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},ba=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},xa=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Sa=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Ca=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},wa=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?Ar(this,t,`_pt`):t.dep||(n=1),t=r;return!n},Ta=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Ea=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},Da=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||ya,this.d=o||this,this.set=s||ma,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Ta,this.m=e,this.mt=n,this.tween=t},e}();fr(cr+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return er[e]=1}),Un.TweenMax=Un.TweenLite=pa,Un.TimelineLite=Un.TimelineMax=$i,zn=new $i({sortChildren:!1,defaults:ln,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),cn.stringFilter=Ii;var Oa=[],ka={},Aa=[],ja=0,Ma=0,Na=function(e){return(ka[e]||Aa).map(function(e){return e()})},Pa=function(){var e=Date.now(),t=[];e-ja>2&&(Na(`matchMediaInit`),Oa.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=Bn.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),Na(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),ja=e,Na(`matchMedia`))},Fa=function(){function e(e,t){this.selector=t&&ci(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Ma++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){xn(e)&&(n=t,t=e,e=xn);var r=this,i=function(){var e=fn,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=ci(n)),fn=r,a=t.apply(r,arguments),xn(a)&&r._r.push(a),fn=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===xn?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=fn;fn=null,e(this),fn=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof pa&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof $i?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof pa)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=Oa.length;r--;)Oa[r].id===this.id&&Oa.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),Ia=function(){function e(e){this.contexts=[],this.scope=e,fn&&fn.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){wn(e)||(e={matches:e});var r=new Fa(0,n||this.scope),i=r.conditions={},a,o,s;for(o in fn&&!r.selector&&(r.selector=fn.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=Bn.matchMedia(e[o]),a&&(Oa.indexOf(r)<0&&Oa.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(Pa):a.addEventListener(`change`,Pa)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),La={registerPlugin:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(e){return Oi(e)})},timeline:function(e){return new $i(e)},getTweensOf:function(e,t){return zn.getTweensOf(e,t)},getProperty:function(e,t,n,r){bn(e)&&(e=si(e)[0]);var i=ur(e||{}).get,a=n?xr:br;return n===`native`&&(n=``),e&&(t?a((ir[t]&&ir[t].get||i)(e,t,n,r)):function(t,n,r){return a((ir[t]&&ir[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=si(e),e.length>1){var r=e.map(function(e){return Va.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=ir[t],o=ur(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Ei._pt=0,r.init(e,n?t+n:t,Ei,0,[e]),r.render(1,r),Ei._pt&&Sa(1,Ei)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=Va.to(e,Sr((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return zn.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Ki(e.ease,ln.ease)),Tr(ln,e||{})},config:function(e){return Tr(cn,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!ir[e]&&!Un[e]&&Jn(t+` effect requires `+e+` plugin.`)}),ar[t]=function(e,t,r){return n(si(e),Sr(t||{},i),r)},a&&($i.prototype[t]=function(e,n,r){return this.add(ar[t](e,wn(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){Z[e]=Ki(t)},parseEase:function(e,t){return arguments.length?Ki(e,t):Z},getById:function(e){return zn.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new $i(e),r,i;for(n.smoothChildTiming=Tn(e.smoothChildTiming),zn.remove(n),n._dp=0,n._time=n._tTime=zn._time,r=zn._first;r;)i=r._next,(t||!(!r._dur&&r instanceof pa&&r.vars.onComplete===r._targets[0]))&&Hr(n,r,r._start-r._delay),r=i;return Hr(zn,n,0),n},context:function(e,t){return e?new Fa(e,t):fn},matchMedia:function(e){return new Ia(e)},matchMediaRefresh:function(){return Oa.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||Pa()},addEventListener:function(e,t){var n=ka[e]||(ka[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=ka[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:vi,wrapYoyo:yi,distribute:ui,random:pi,snap:fi,normalize:gi,getUnit:ni,clamp:ri,splitColor:ji,toArray:si,selector:ci,mapRange:xi,pipe:mi,unitize:hi,interpolate:Si,shuffle:li},install:Kn,effects:ar,ticker:Ri,updateRoot:$i.updateRoot,plugins:ir,globalTimeline:zn,core:{PropTween:Da,globals:Yn,Tween:pa,Timeline:$i,Animation:Qi,getCache:ur,_removeLinkedListItem:Ar,reverting:function(){return dn},context:function(e){return e&&fn&&(fn.data.push(e),e._ctx=fn),fn},suppressOverwrites:function(e){return un=e}}};fr(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return La[e]=pa[e]}),Ri.add($i.updateRoot),Ei=La.to({},{duration:0});var Ra=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},za=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=Ra(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},Ba=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(bn(n)&&(r={},fr(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}za(e,n)}}}},Va=La.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)dn?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},Ba(`roundProps`,di),Ba(`modifiers`),Ba(`snap`,fi))||La;pa.version=$i.version=Va.version=`3.15.0`,Gn=1,En()&&zi(),Z.Power0,Z.Power1,Z.Power2,Z.Power3,Z.Power4,Z.Linear,Z.Quad,Z.Cubic,Z.Quart,Z.Quint,Z.Strong,Z.Elastic,Z.Back,Z.SteppedEase,Z.Bounce,Z.Sine,Z.Expo,Z.Circ;var Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya=function(){return typeof window<`u`},Xa={},Za=180/Math.PI,Qa=Math.PI/180,$a=Math.atan2,eo=1e8,to=/([A-Z])/g,no=/(left|right|width|margin|padding|x)/i,ro=/[\s,\(]\S/,io={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},ao=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},oo=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},so=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},co=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},lo=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},uo=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},fo=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},po=function(e,t,n){return e.style[t]=n},mo=function(e,t,n){return e.style.setProperty(t,n)},ho=function(e,t,n){return e._gsap[t]=n},go=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},_o=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},vo=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},yo=`transform`,bo=yo+`Origin`,xo=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in Xa&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=io[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=Bo(i,e)}):this.tfm[t]=o.x?o[t]:Bo(i,t),t===bo&&(this.tfm.zOrigin=o.zOrigin);else return io.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(yo)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(bo,n,``)),t=yo}(a||n)&&this.props.push(t,n,a[t])},So=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Co=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i<e.length;i+=3)e[i+1]?e[i+1]===2?t[e[i]](e[i+2]):t[e[i]]=e[i+2]:e[i+2]?n[e[i]]=e[i+2]:n.removeProperty(e[i].substr(0,2)===`--`?e[i]:e[i].replace(to,`-$1`).toLowerCase());if(this.tfm){for(a in this.tfm)r[a]=this.tfm[a];r.svg&&(r.renderTransform(),t.setAttribute(`data-svg-origin`,this.svgo||``)),i=Ja(),(!i||!i.isStart)&&!n[yo]&&(So(n),r.zOrigin&&n[bo]&&(n[bo]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},wo=function(e,t){var n={target:e,props:[],revert:Co,save:xo};return e._gsap||Va.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},To,Eo=function(e,t){var n=Ua.createElementNS?Ua.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):Ua.createElement(e);return n&&n.style?n:Ua.createElement(e)},Do=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(to,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,ko(n)||n,1)||``},Oo=`O,Moz,ms,Ms,Webkit`.split(`,`),ko=function(e,t,n){var r=(t||Ka).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(Oo[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?Oo[i]:``)+e},Ao=function(){Ya()&&window.document&&(Ha=window,Ua=Ha.document,Wa=Ua.documentElement,Ka=Eo(`div`)||{style:{}},Eo(`div`),yo=ko(yo),bo=yo+`Origin`,Ka.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,To=!!ko(`perspective`),Ja=Va.core.reverting,Ga=1)},jo=function(e){var t=e.ownerSVGElement,n=Eo(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),Wa.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),Wa.removeChild(n),i},Mo=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},No=function(e){var t,n;try{t=e.getBBox()}catch{t=jo(e),n=1}return t&&(t.width||t.height)||n||(t=jo(e)),t&&!t.width&&!t.x&&!t.y?{x:+Mo(e,[`x`,`cx`,`x1`])||0,y:+Mo(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},Po=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&No(e))},Fo=function(e,t){if(t){var n=e.style,r;t in Xa&&t!==bo&&(t=yo),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(to,`-$1`).toLowerCase())):n.removeAttribute(t)}},Io=function(e,t,n,r,i,a){var o=new Da(e._pt,t,n,0,1,a?fo:uo);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},Lo={deg:1,rad:1,turn:1},Ro={grid:1,flex:1},zo=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=Ka.style,c=no.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||Lo[i]||Lo[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&Po(t),(p||o===`%`)&&(Xa[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],pr(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===Ua||!h.appendChild)&&(h=Ua.body),g=h._gsap,g&&p&&g.width&&c&&g.time===Ri.time&&!g.uncache)return pr(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:Fo(t,n)}else(p||o===`%`)&&!Ro[Do(h,`display`)]&&(s.position=Do(t,`position`)),h===t&&(s.position=`static`),h.appendChild(Ka),m=Ka[u],h.removeChild(Ka),s.position=`absolute`;return c&&p&&(g=ur(h),g.time=Ri.time,g.width=h[u]),pr(f?m*a/d:m&&a?d/m*a:0)},Bo=function(e,t,n,r){var i;return Ga||Ao(),t in io&&t!==`transform`&&(t=io[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),Xa[t]&&t!==`transform`?(i=Qo(e,r),i=t===`transformOrigin`?i.svg?i.origin:$o(Do(e,bo))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=Go[t]&&Go[t](e,t,n)||Do(e,t)||dr(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?zo(e,t,i,n)+n:i},Vo=function(e,t,n,r){if(!n||n===`none`){var i=ko(t,e,1),a=i&&Do(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=Do(e,`borderTopColor`))}var o=new Da(this._pt,e.style,t,0,1,xa),s=0,c=0,l,u,d,f,p,m,h,g,_,v,y,b;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=Do(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=Do(e,t)||r,m?e.style[t]=m:Fo(e,t)),l=[n,r],Ii(l),n=l[0],r=l[1],d=n.match(Pn)||[],b=r.match(Pn)||[],b.length){for(;u=Pn.exec(r);)h=u[0],_=r.substring(s,u.index),p?p=(p+1)%5:(_.substr(-5)===`rgba(`||_.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,y=m.substr((f+``).length),h.charAt(1)===`=`&&(h=hr(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=Pn.lastIndex-v.length,v||(v=v||cn.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=zo(e,t,m,v)||0),o._pt={_next:o._pt,p:_||c===1?_:`,`,s:f,c:g-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s<r.length?r.substring(s,r.length):``}else o.r=t===`display`&&r===`none`?fo:uo;return In.test(r)&&(o.e=0),this._pt=o,o},Ho={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},Uo=function(e){var t=e.split(` `),n=t[0],r=t[1]||`50%`;return(n===`top`||n===`bottom`||r===`left`||r===`right`)&&(e=n,n=r,r=e),t[0]=Ho[n]||n,t[1]=Ho[r]||r,t.join(` `)},Wo=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n=t.t,r=n.style,i=t.u,a=n._gsap,o,s,c;if(i===`all`||i===!0)r.cssText=``,s=1;else for(i=i.split(`,`),c=i.length;--c>-1;)o=i[c],Xa[o]&&(s=1,o=o===`transformOrigin`?bo:yo),Fo(n,o);s&&(Fo(n,yo),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,Qo(n,1),a.uncache=1,So(r)))}},Go={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new Da(e._pt,t,n,0,0,Wo);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},Ko=[1,0,0,1,0,0],qo={},Jo=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},Yo=function(e){var t=Do(e,yo);return Jo(t)?Ko:t.substr(7).match(Nn).map(pr)},Xo=function(e,t){var n=e._gsap||ur(e),r=e.style,i=Yo(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?Ko:i):(i===Ko&&!e.offsetParent&&e!==Wa&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,Wa.appendChild(e)),i=Yo(e),s?r.display=s:Fo(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):Wa.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},Zo=function(e,t,n,r,i,a){var o=e._gsap,s=i||Xo(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==Ko&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=No(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[bo]=`0px 0px`,a&&(Io(a,o,`xOrigin`,c,y),Io(a,o,`yOrigin`,l,b),Io(a,o,`xOffset`,u,o.xOffset),Io(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},Qo=function(e,t){var n=e._gsap||new Zi(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=Do(e,bo)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,ee,te,ne,P,re,F,I;return n.svg=!!(e.getCTM&&Po(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[yo]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[yo]===`none`?``:s[yo])),r.scale=r.rotate=r.translate=`none`),S=Xo(e,n.svg),n.svg&&(n.uncache?(N=e.getBBox(),c=n.xOrigin-N.x+`px `+(n.yOrigin-N.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),Zo(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==Ko&&(E=S[0],D=S[1],O=S[2],k=S[3],l=A=S[4],u=j=S[5],S.length===6?(f=Math.sqrt(E*E+D*D),p=Math.sqrt(k*k+O*O),m=E||D?$a(D,E)*Za:0,_=O||k?$a(O,k)*Za+m:0,_&&(p*=Math.abs(Math.cos(_*Qa))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(I=S[6],re=S[7],te=S[8],ne=S[9],P=S[10],F=S[11],l=S[12],u=S[13],d=S[14],C=$a(I,P),h=C*Za,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+te*T,N=j*w+ne*T,ee=I*w+P*T,te=A*-T+te*w,ne=j*-T+ne*w,P=I*-T+P*w,F=re*-T+F*w,A=M,j=N,I=ee),C=$a(-O,P),g=C*Za,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-te*T,N=D*w-ne*T,ee=O*w-P*T,F=k*T+F*w,E=M,D=N,O=ee),C=$a(D,E),m=C*Za,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,N=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=N),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=pr(Math.sqrt(E*E+D*D+O*O)),p=pr(Math.sqrt(j*j+I*I)),C=$a(A,j),_=Math.abs(C)>2e-4?C*Za:0,y=F?1/(F<0?-F:F):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!Jo(Do(e,yo)),M&&e.setAttribute(`transform`,M))),Math.abs(_)>90&&Math.abs(_)<270&&(i?(f*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,_+=_<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=pr(f),n.scaleY=pr(p),n.rotation=pr(m)+o,n.rotationX=pr(h)+o,n.rotationY=pr(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[bo]=$o(c)),n.xOffset=n.yOffset=0,n.force3D=cn.force3D,n.renderTransform=n.svg?os:To?as:ts,n.uncache=0,n},$o=function(e){return(e=e.split(` `))[0]+` `+e[1]},es=function(e,t,n){var r=ni(t);return pr(parseFloat(t)+parseFloat(zo(e,`x`,n+`px`,r)))+r},ts=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,as(e,t)},ns=`0deg`,rs=`0px`,is=`) `,as=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==ns||l!==ns)){var x=parseFloat(l)*Qa,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*Qa,w=Math.cos(x),a=es(_,a,S*w*-v),o=es(_,o,-Math.sin(x)*-v),s=es(_,s,C*w*-v+v)}h!==rs&&(y+=`perspective(`+h+is),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==rs||o!==rs||s!==rs)&&(y+=s!==rs||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+is),c!==ns&&(y+=`rotate(`+c+is),l!==ns&&(y+=`rotateY(`+l+is),u!==ns&&(y+=`rotateX(`+u+is),(d!==ns||f!==ns)&&(y+=`skew(`+d+`, `+f+is),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+is),_.style[yo]=y||`translate(0, 0)`},os=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=Qa,c*=Qa,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=Qa,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=pr(b),x=pr(x),S=pr(S),C=pr(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=zo(f,`x`,a,`px`),y=zo(f,`y`,o,`px`)),(p||m||h||g)&&(v=pr(v+p-(p*b+m*S)+h),y=pr(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=pr(v+r/100*w.width),y=pr(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[yo]=w)},ss=function(e,t,n,r,i){var a=360,o=bn(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?Za:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*eo)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*eo)%a-~~(s/a)*a)),e._pt=u=new Da(e._pt,t,n,r,s,oo),u.e=c,u.u=`deg`,e._props.push(n),u},cs=function(e,t){for(var n in t)e[n]=t[n];return e},ls=function(e,t,n){var r=cs({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[yo]=t,o=Qo(n,1),Fo(n,yo),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[yo],a[yo]=t,o=Qo(n,1),a[yo]=c),Xa)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=ni(c),p=ni(l),u=f===p?parseFloat(c):zo(n,s,c,p),d=parseFloat(l),e._pt=new Da(e._pt,o,s,u,d-u,ao),e._pt.u=p||0,e._props.push(s));cs(o,r)};fr(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});Go[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return Bo(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var us={name:`css`,register:Ao,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;for(m in Ga||Ao(),this.styles=this.styles||wo(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(ir[m]&&ra(m,t,n,r,e,i)))){if(f=typeof l,p=Go[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=bi(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,Pi.lastIndex=0,Pi.test(c)||(h=ni(c),g=ni(l),g?h!==g&&(c=zo(e,m,c,g)+g):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),C.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],bn(c)&&~c.indexOf(`random(`)&&(c=bi(c)),ni(c+``)||c===`auto`||(c+=cn.units[m]||ni(Bo(e,m))||``),(c+``).charAt(1)===`=`&&(c=Bo(e,m))):c=Bo(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in io&&(m===`autoAlpha`&&(d===1&&Bo(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),Io(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=io[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in Xa,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=Do(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=Do(e,`perspective`),T?e.style.perspective=T:Fo(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||Qo(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new Da(this._pt,o,yo,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new Da(this._pt,b,`scaleY`,b.scaleY,(_?hr(b.scaleY,_+u):u)-b.scaleY||0,ao),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(bo,0,o[bo]),l=Uo(l),b.svg?Zo(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&Io(this,b,`zOrigin`,b.zOrigin,g),Io(this,o,m,$o(c),$o(l)));continue}else if(m===`svgOrigin`){Zo(e,l,1,x,0,this);continue}else if(m in qo){ss(this,b,m,d,_?hr(d,_+l):l);continue}else if(m===`smoothOrigin`){Io(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){ls(this,l,e);continue}}else m in o||(m=ko(m)||m);if(v||(u||u===0)&&(d||d===0)&&!ro.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=ni(l)||(m in cn.units?cn.units[m]:h),h!==g&&(d=zo(e,m,c,g)),this._pt=new Da(this._pt,v?b:o,m,d,(_?hr(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?lo:ao),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=co):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=so);else if(m in o)Vo.call(this,e,m,c,_?_+l:l);else if(m in e)this.add(e,m,c||e[m],_?_+l:l,r,i);else if(m!==`parseTransform`){qn(m,l);continue}v||(m in o?C.push(m,0,o[m]):typeof e[m]==`function`?C.push(m,2,e[m]()):C.push(m,1,c||e[m])),a.push(m)}}S&&Ea(this)},render:function(e,t){if(t.tween._time||!Ja())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:Bo,aliases:io,getSetter:function(e,t,n){var r=io[t];return r&&r.indexOf(`,`)<0&&(t=r),t in Xa&&t!==bo&&(e._gsap.x||Bo(e,`x`))?n&&qa===n?t===`scale`?go:ho:(qa=n||{})&&(t===`scale`?_o:vo):e.style&&!Cn(e.style[t])?po:~t.indexOf(`-`)?mo:va(e,t)},core:{_removeProperty:Fo,_getMatrix:Xo}};Va.utils.checkPrefix=ko,Va.core.getStyleSaver=wo,(function(e,t,n,r){var i=fr(e+`,`+t+`,`+n,function(e){Xa[e]=1});fr(t,function(e){cn.units[e]=`deg`,qo[e]=1}),io[i[13]]=e+`,`+t,fr(r,function(e){var t=e.split(`:`);io[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),fr(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){cn.units[e]=`px`}),Va.registerPlugin(us);var Q=Va.registerPlugin(us)||Va;Q.core.Tween;var ds,fs,ps,ms,hs,gs,_s,vs,ys=`transform`,bs=ys+`Origin`,xs,Ss=function(e){var t=e.ownerDocument||e;for(!(ys in e.style)&&(`msTransform`in e.style)&&(ys=`msTransform`,bs=ys+`Origin`);t.parentNode&&(t=t.parentNode););if(fs=window,_s=new Fs,t){ds=t,ps=t.documentElement,ms=t.body,vs=ds.createElementNS(`http://www.w3.org/2000/svg`,`g`),vs.style.transform=`none`;var n=t.createElement(`div`),r=t.createElement(`div`),i=t&&(t.body||t.firstElementChild);i&&i.appendChild&&(i.appendChild(n),n.appendChild(r),n.style.position=`static`,n.style.transform=`translate3d(0,0,1px)`,xs=r.offsetParent!==n,i.removeChild(n))}return t},Cs=function(e){for(var t,n;e&&e!==ms;)n=e._gsap,n&&n.uncache&&n.get(e,`x`),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},ws=[],Ts=[],Es=function(){return fs.pageYOffset||ds.scrollTop||ps.scrollTop||ms.scrollTop||0},Ds=function(){return fs.pageXOffset||ds.scrollLeft||ps.scrollLeft||ms.scrollLeft||0},Os=function(e){return e.ownerSVGElement||((e.tagName+``).toLowerCase()===`svg`?e:null)},ks=function e(t){if(fs.getComputedStyle(t).position===`fixed`)return!0;if(t=t.parentNode,t&&t.nodeType===1)return e(t)},As=function e(t,n){if(t.parentNode&&(ds||Ss(t))){var r=Os(t),i=r?r.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`:`http://www.w3.org/1999/xhtml`,a=r?n?`rect`:`g`:`div`,o=n===2?100:0,s=n===3?100:0,c={position:`absolute`,display:`block`,pointerEvents:`none`,margin:`0`,padding:`0`},l=ds.createElementNS?ds.createElementNS(i.replace(/^https/,`http`),a):ds.createElement(a);return n&&(r?(gs||=e(t),l.setAttribute(`width`,.01),l.setAttribute(`height`,.01),l.setAttribute(`transform`,`translate(`+o+`,`+s+`)`),l.setAttribute(`fill`,`transparent`),gs.appendChild(l)):(hs||(hs=e(t),Object.assign(hs.style,c)),Object.assign(l.style,c,{width:`0.1px`,height:`0.1px`,top:s+`px`,left:o+`px`}),hs.appendChild(l))),l}throw`Need document and parent.`},js=function(e){for(var t=new Fs,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t},Ms=function(e){var t=e.getCTM(),n;return t||(n=e.style[ys],e.style[ys]=`none`,e.appendChild(vs),t=vs.getCTM(),e.removeChild(vs),n?e.style[ys]=n:e.style.removeProperty(ys.replace(/([A-Z])/g,`-$1`).toLowerCase())),t||_s.clone()},Ns=function(e,t){var n=Os(e),r=e===n,i=n?ws:Ts,a=e.parentNode,o=a&&!n&&a.shadowRoot&&a.shadowRoot.appendChild?a.shadowRoot:a,s,c,l,u,d,f;if(e===fs)return e;if(i.length||i.push(As(e,1),As(e,2),As(e,3)),s=n?gs:hs,n)r?(l=Ms(e),u=-l.e/l.a,d=-l.f/l.d,c=_s):e.getBBox?(l=e.getBBox(),c=e.transform?e.transform.baseVal:{},c=c.numberOfItems?c.numberOfItems>1?js(c):c.getItem(0).matrix:_s,u=c.a*l.x+c.c*l.y,d=c.b*l.x+c.d*l.y):(c=new Fs,u=d=0),t&&e.tagName.toLowerCase()===`g`&&(u=d=0),(r||!e.getBoundingClientRect().width?n:a).appendChild(s),s.setAttribute(`transform`,`matrix(`+c.a+`,`+c.b+`,`+c.c+`,`+c.d+`,`+(c.e+u)+`,`+(c.f+d)+`)`);else{if(u=d=0,xs)for(c=e.offsetParent,l=e;(l&&=l.parentNode)&&l!==c&&l.parentNode;)(fs.getComputedStyle(l)[ys]+``).length>4&&(u=l.offsetLeft,d=l.offsetTop,l=0);if(f=fs.getComputedStyle(e),f.position!==`absolute`&&f.position!==`fixed`)for(c=e.offsetParent;a&&a!==c;)u+=a.scrollLeft||0,d+=a.scrollTop||0,a=a.parentNode;l=s.style,l.top=e.offsetTop-d+`px`,l.left=e.offsetLeft-u+`px`,l[ys]=f[ys],l[bs]=f[bs],l.position=f.position===`fixed`?`fixed`:`absolute`,o.appendChild(s)}return s},Ps=function(e,t,n,r,i,a,o){return e.a=t,e.b=n,e.c=r,e.d=i,e.e=a,e.f=o,e},Fs=function(){function e(e,t,n,r,i,a){e===void 0&&(e=1),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=1),i===void 0&&(i=0),a===void 0&&(a=0),Ps(this,e,t,n,r,i,a)}var t=e.prototype;return t.inverse=function(){var e=this.a,t=this.b,n=this.c,r=this.d,i=this.e,a=this.f,o=e*r-t*n||1e-10;return Ps(this,r/o,-t/o,-n/o,e/o,(n*a-r*i)/o,-(e*a-t*i)/o)},t.multiply=function(e){var t=this.a,n=this.b,r=this.c,i=this.d,a=this.e,o=this.f,s=e.a,c=e.c,l=e.b,u=e.d,d=e.e,f=e.f;return Ps(this,s*t+l*r,s*n+l*i,c*t+u*r,c*n+u*i,a+d*t+f*r,o+d*n+f*i)},t.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(e){var t=this.a,n=this.b,r=this.c,i=this.d,a=this.e,o=this.f;return t===e.a&&n===e.b&&r===e.c&&i===e.d&&a===e.e&&o===e.f},t.apply=function(e,t){t===void 0&&(t={});var n=e.x,r=e.y,i=this.a,a=this.b,o=this.c,s=this.d,c=this.e,l=this.f;return t.x=n*i+r*o+c||0,t.y=n*a+r*s+l||0,t},e}();function Is(e,t,n,r){if(!e||!e.parentNode||(ds||Ss(e)).documentElement===e)return new Fs;var i=Cs(e),a=Os(e)?ws:Ts,o=Ns(e,n),s=a[0].getBoundingClientRect(),c=a[1].getBoundingClientRect(),l=a[2].getBoundingClientRect(),u=o.parentNode,d=!r&&ks(e),f=new Fs((c.left-s.left)/100,(c.top-s.top)/100,(l.left-s.left)/100,(l.top-s.top)/100,s.left+(d?0:Ds()),s.top+(d?0:Es()));if(u.removeChild(o),i)for(s=i.length;s--;)c=i[s],c.scaleX=c.scaleY=0,c.renderTransform(1,c);return t?f.inverse():f}var Ls=1,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs=function(e,t){return e.actions.forEach(function(e){return e.vars[t]&&e.vars[t](e)})},Ks={},qs=180/Math.PI,Js=Math.PI/180,Ys={},Xs={},Zs={},Qs=function(e){return typeof e==`string`?e.split(` `).join(``).split(`,`):e},$s=Qs(`onStart,onUpdate,onComplete,onReverseComplete,onInterrupt`),ec=Qs(`transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight`),tc=function(e){return Rs(e)[0]||console.warn(`Element not found:`,e)},nc=function(e){return Math.round(e*1e4)/1e4||0},rc=function(e,t,n){return e.forEach(function(e){return e.classList[n](t)})},ic={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},ac={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},oc=function(e){return e.replace(/([A-Z])/g,`-$1`).toLowerCase()},sc=function(e,t){var n={},r;for(r in e)t[r]||(n[r]=e[r]);return n},cc={},lc=function(e){var t=cc[e]=Qs(e);return Zs[e]=t.concat(ec),t},uc=function(e){var t=e._gsap||zs.core.getCache(e);return t.gmCache===zs.ticker.frame?t.gMatrix:(t.gmCache=zs.ticker.frame,t.gMatrix=Is(e,!0,!1,!0))},dc=function e(t,n,r){r===void 0&&(r=0);for(var i=t.parentNode,a=1e3*10**r*(n?-1:1),o=n?-a*900:0;t;)o+=a,t=t.previousSibling;return i?o+e(i,n,r+1):o},fc=function(e,t,n){return e.forEach(function(e){return e.d=dc(n?e.element:e.t,t)}),e.sort(function(e,t){return e.d-t.d}),e},pc=function(e,t){for(var n=e.element.style,r=e.css=e.css||[],i=t.length,a,o;i--;)a=t[i],o=n[a]||n.getPropertyValue(a),r.push(o?a:Xs[a]||(Xs[a]=oc(a)),o);return n},mc=function(e){var t=e.css,n=e.element.style,r=0;for(e.cache.uncache=1;r<t.length;r+=2)t[r+1]?n[t[r]]=t[r+1]:n.removeProperty(t[r]);!t[t.indexOf(`transform`)+1]&&n.translate&&(n.removeProperty(`translate`),n.removeProperty(`scale`),n.removeProperty(`rotate`))},hc=function(e,t){e.forEach(function(e){return e.a.cache.uncache=1}),t||e.finalStates.forEach(mc)},gc=`paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition`.split(`,`),_c=function(e,t,n){var r=e.element,i=e.width,a=e.height,o=e.uncache,s=e.getProp,c=r.style,l=4,u,d,f;if(typeof t!=`object`&&(t=e),Bs&&n!==1)return Bs._abs.push({t:r,b:e,a:e,sd:0}),Bs._final.push(function(){return(e.cache.uncache=1)&&mc(e)}),r;for(d=s(`display`)===`none`,(!e.isVisible||d)&&(d&&(pc(e,[`display`]).display=t.display),e.matrix=t.matrix,e.width=i=e.width||t.width,e.height=a=e.height||t.height),pc(e,gc),f=window.getComputedStyle(r);l--;)c[gc[l]]=f[gc[l]];if(c.gridArea=`1 / 1 / 1 / 1`,c.transition=`none`,c.position=`absolute`,c.width=i+`px`,c.height=a+`px`,c.top||=`0px`,c.left||=`0px`,o)u=new Bc(r);else if(u=sc(e,Ys),u.position=`absolute`,e.simple){var p=r.getBoundingClientRect();u.matrix=new Fs(1,0,0,1,p.left+Ds(),p.top+Es())}else u.matrix=Is(r,!1,!1,!0);return u=Dc(u,e,!0),e.x=Us(u.x,.01),e.y=Us(u.y,.01),r},vc=function(e,t){return t!==!0&&(t=Rs(t),e=e.filter(function(e){if(t.indexOf((e.sd<0?e.b:e.a).element)!==-1)return!0;e.t._gsap.renderTransform(1),e.b.isVisible&&(e.t.style.width=e.b.width+`px`,e.t.style.height=e.b.height+`px`)})),e},yc=function(e){return fc(e,!0).forEach(function(e){return(e.a.isVisible||e.b.isVisible)&&_c(e.sd<0?e.b:e.a,e.b,1)})},bc=function(e,t){return t&&e.idLookup[xc(t).id]||e.elementStates[0]},xc=function(e,t,n,r){return e instanceof Bc?e:e instanceof zc?bc(e,r):new Bc(typeof e==`string`?tc(e)||console.warn(e+` not found`):e,t,n)},Sc=function(e,t){for(var n=zs.getProperty(e.element,null,`native`),r=e.props={},i=t.length;i--;)r[t[i]]=(n(t[i])+``).trim();return r.zIndex&&=parseFloat(r.zIndex)||0,e},Cc=function(e,t){var n=e.style||e,r;for(r in t)n[r]=t[r]},wc=function(e){var t=e.getAttribute(`data-flip-id`);return t||e.setAttribute(`data-flip-id`,t=`auto-`+Ls++),t},Tc=function(e){return e.map(function(e){return e.element})},Ec=function(e,t,n){return e&&t.length&&n.add(e(Tc(t),n,new zc(t,0,!0)),0)},Dc=function(e,t,n,r,i,a){var o=e.element,s=e.cache,c=e.parent,l=e.x,u=e.y,d=t.width,f=t.height,p=t.scaleX,m=t.scaleY,h=t.rotation,g=t.bounds,_=a&&Ws&&Ws(o,`transform,width,height`),v=e,y=t.matrix,b=y.e,x=y.f,S=e.bounds.width!==g.width||e.bounds.height!==g.height||e.scaleX!==p||e.scaleY!==m||e.rotation!==h,C=!S&&e.simple&&t.simple&&!i,w,T,E,D,O,k,A;return C||!c?(p=m=1,h=w=0):(O=uc(c),k=O.clone().multiply(t.ctm?t.matrix.clone().multiply(t.ctm):t.matrix),h=nc(Math.atan2(k.b,k.a)*qs),w=nc(Math.atan2(k.c,k.d)*qs+h)%360,p=Math.sqrt(k.a**2+k.b**2),m=Math.sqrt(k.c**2+k.d**2)*Math.cos(w*Js),i&&(i=Rs(i)[0],D=zs.getProperty(i),A=i.getBBox&&typeof i.getBBox==`function`&&i.getBBox(),v={scaleX:D(`scaleX`),scaleY:D(`scaleY`),width:A?A.width:Math.ceil(parseFloat(D(`width`,`px`))),height:A?A.height:parseFloat(D(`height`,`px`))}),s.rotation=h+`deg`,s.skewX=w+`deg`),n?(p*=d===v.width||!v.width?1:d/v.width,m*=f===v.height||!v.height?1:f/v.height,s.scaleX=p,s.scaleY=m):(d=Us(d*p/v.scaleX,0),f=Us(f*m/v.scaleY,0),o.style.width=d+`px`,o.style.height=f+`px`),r&&Cc(o,t.props),C||!c?(l+=b-e.matrix.e,u+=x-e.matrix.f):S||c!==t.parent?(s.x=l+`px`,s.y=u+`px`,s.renderTransform(1,s),k=Is(i||o,!1,!1,!0),T=O.apply({x:k.e,y:k.f}),E=O.apply({x:b,y:x}),l+=E.x-T.x,u+=E.y-T.y):(O.e=O.f=0,E=O.apply({x:b-e.matrix.e,y:x-e.matrix.f}),l+=E.x,u+=E.y),l=Us(l,.02),u=Us(u,.02),a&&!(a instanceof Bc)?_&&_.revert():(s.x=l+`px`,s.y=u+`px`,s.renderTransform(1,s)),a&&(a.x=l,a.y=u,a.rotation=h,a.skewX=w,n?(a.scaleX=p,a.scaleY=m):(a.width=d,a.height=f)),a||s},Oc=function(e,t){return e instanceof zc?e:new zc(e,t)},kc=function(e,t,n){var r=e.idLookup[n],i=e.alt[n];return i.isVisible&&(!(t.getElementState(i.element)||i).isVisible||!r.isVisible)?i:r},Ac=[],jc=`width,height,overflowX,overflowY`.split(`,`),Mc,Nc=function(e){if(e!==Mc){var t=Hs.style,n=Hs.clientWidth===window.outerWidth,r=Hs.clientHeight===window.outerHeight,i=4;if(e&&(n||r)){for(;i--;)Ac[i]=t[jc[i]];n&&(t.width=Hs.clientWidth+`px`,t.overflowY=`hidden`),r&&(t.height=Hs.clientHeight+`px`,t.overflowX=`hidden`),Mc=e}else if(Mc){for(;i--;)Ac[i]?t[jc[i]]=Ac[i]:t.removeProperty(oc(jc[i]));Mc=e}}},Pc=function(e,t){for(var n=0;n<e.length;n+=3)zs.set(e[n],{clearProps:!0}),e[n].setAttribute(`style`,e[n+t]),e[n]._gsap.gmCache=-1},Fc=function(e,t,n,r){e instanceof zc&&t instanceof zc||console.warn(`Not a valid state object.`),n||={};var i=n,a=i.clearProps,o=i.onEnter,s=i.onLeave,c=i.absolute,l=i.absoluteOnLeave,u=i.custom,d=i.delay,f=i.paused,p=i.repeat,m=i.repeatDelay,h=i.yoyo,g=i.toggleClass,_=i.nested,v=i.zIndex,y=i.scale,b=i.fade,x=i.stagger,S=i.spin,C=i.prune,w=(`props`in n?n:e).props,T=sc(n,ic),E=zs.timeline({delay:d,paused:f,repeat:p,repeatDelay:m,yoyo:h,data:`isFlip`}),D=T,O=[],k=[],A=[],j=[],M=S===!0?1:S||0,N=typeof S==`function`?S:function(){return M},ee=e.interrupted||t.interrupted,te=E[r===1?`from`:`to`],ne,P,re,F,I,L,ie,ae,oe,se,ce,le,ue,de;for(P in t.idLookup)ce=t.alt[P]?kc(t,e,P):t.idLookup[P],I=ce.element,se=e.idLookup[P],e.alt[P]&&I===se.element&&(e.alt[P].isVisible||!ce.isVisible)&&(se=e.alt[P]),se?(L={t:I,b:se,a:ce,sd:se.element===I?0:ce.isVisible?1:-1},A.push(L),L.sd&&(L.sd<0&&(L.b=ce,L.a=se),ee&&pc(L.b,w?Zs[w]:ec),b&&A.push(L.swap={t:se.element,b:L.b,a:L.a,sd:-L.sd,swap:L})),I._flip=se.element._flip=Bs?Bs.timeline:E):ce.isVisible&&(A.push({t:I,b:sc(ce,{isVisible:1}),a:ce,sd:0,entering:1}),I._flip=Bs?Bs.timeline:E);if(w&&(cc[w]||lc(w)).forEach(function(e){return T[e]=function(t){return A[t].a.props[e]}}),A.finalStates=oe=[],le=function(){fc(A),Nc(!0);var t=[];for(F=0;F<A.length;F++)L=A[F],ue=L.a,de=L.b,C&&!ue.isDifferent(de)&&!L.entering?A.splice(F--,1):(I=L.t,_&&!(L.sd<0)&&F&&(ue=L.a=ue.clone({matrix:Is(I,!1,!1,!0)})),de.isVisible&&ue.isVisible?(L.sd<0?(_&&Pc(t,1),ie=new Bc(I,w,e.simple),Dc(ie,ue,y,0,0,ie),ie.matrix=Is(I,!1,!1,!0),ie.bounds=I.getBoundingClientRect(),ie.css=L.b.css,L.a=ue=ie,b&&(I.style.opacity=ee?de.opacity:ue.opacity),x&&j.push(I),_&&(Pc(t,2),t.push(I,I.getAttribute(`style`)))):L.sd>0&&b&&(I.style.opacity=ee?ue.opacity-de.opacity:`0`),Dc(ue,de,y,w),_&&L.sd<0&&t.push(I.getAttribute(`style`))):de.isVisible!==ue.isVisible&&(de.isVisible?ue.isVisible||(de.css=ue.css,k.push(de),A.splice(F--,1),c&&_&&Dc(ue,de,y,w)):(ue.isVisible&&O.push(ue),A.splice(F--,1))),y||(I.style.maxWidth=Math.max(ue.width,de.width)+`px`,I.style.maxHeight=Math.max(ue.height,de.height)+`px`,I.style.minWidth=Math.min(ue.width,de.width)+`px`,I.style.minHeight=Math.min(ue.height,de.height)+`px`),_&&g&&I.classList.add(g)),oe.push(ue);var r;if(g&&(r=oe.map(function(e){return e.element}),_&&r.forEach(function(e){return e.classList.remove(g)})),Nc(!1),y?(T.scaleX=function(e){return A[e].a.scaleX},T.scaleY=function(e){return A[e].a.scaleY}):(T.width=function(e){return A[e].a.width+`px`},T.height=function(e){return A[e].a.height+`px`},T.autoRound=n.autoRound||!1),T.x=function(e){return A[e].a.x+`px`},T.y=function(e){return A[e].a.y+`px`},T.rotation=function(e){return A[e].a.rotation+(S?N(e,ae[e],ae)*360:0)},T.skewX=function(e){return A[e].a.skewX},ae=A.map(function(e){return e.t}),(v||v===0)&&(T.modifiers={zIndex:function(){return v}},T.zIndex=v,T.immediateRender=n.immediateRender!==!1),b&&(T.opacity=function(e){return A[e].sd<0?0:A[e].sd>0?A[e].a.opacity:`+=0`}),j.length){x=zs.utils.distribute(x);var i=ae.slice(j.length);T.stagger=function(e,t){return x(~j.indexOf(t)?ae.indexOf(A[e].swap.t):e,t,i)}}if($s.forEach(function(e){return n[e]&&E.eventCallback(e,n[e],n[e+`Params`])}),u&&ae.length)for(P in D=sc(T,ic),`scale`in u&&(u.scaleX=u.scaleY=u.scale,delete u.scale),u)ne=sc(u[P],ac),ne[P]=T[P],!(`duration`in ne)&&`duration`in T&&(ne.duration=T.duration),ne.stagger=T.stagger,te.call(E,ae,ne,0),delete D[P];(ae.length||k.length||O.length)&&(g&&E.add(function(){return rc(r,g,E._zTime<0?`remove`:`add`)},0)&&!f&&rc(r,g,`add`),ae.length&&te.call(E,ae,D,0)),Ec(o,O,E),Ec(s,k,E);var l=Bs&&Bs.timeline;l&&(l.add(E,0),Bs._final.push(function(){return hc(A,!a)})),re=E.duration(),E.call(function(){var e=E.time()>=re;e&&!l&&hc(A,!a),g&&rc(r,g,e?`remove`:`add`)})},l&&(c=A.filter(function(e){return!e.sd&&!e.a.isVisible&&e.b.isVisible}).map(function(e){return e.a.element})),Bs){var fe;c&&(fe=Bs._abs).push.apply(fe,vc(A,c)),Bs._run.push(le)}else c&&yc(vc(A,c)),le();var pe=Bs?Bs.timeline:E;return pe.revert=function(){return Lc(pe,1,1)},pe},Ic=function e(t){t.vars.onInterrupt&&t.vars.onInterrupt.apply(t,t.vars.onInterruptParams||[]),t.getChildren(!0,!1,!0).forEach(e)},Lc=function(e,t,n){if(e&&e.progress()<1&&(!e.paused()||n))return t&&(Ic(e),t<2&&e.progress(1),e.kill()),!0},Rc=function(e){for(var t=e.idLookup={},n=e.alt={},r=e.elementStates,i=r.length,a;i--;)a=r[i],t[a.id]?n[a.id]=a:t[a.id]=a},zc=function(){function e(e,t,n){if(this.props=t&&t.props,this.simple=!!(t&&t.simple),n)this.targets=Tc(e),this.elementStates=e,Rc(this);else{this.targets=Rs(e);var r=t&&(t.kill===!1||t.batch&&!t.kill);Bs&&!r&&Bs._kill.push(this),this.update(r||!!Bs)}}var t=e.prototype;return t.update=function(e){var t=this;return this.elementStates=this.targets.map(function(e){return new Bc(e,t.props,t.simple)}),Rc(this),this.interrupt(e),this.recordInlineStyles(),this},t.clear=function(){return this.targets.length=this.elementStates.length=0,Rc(this),this},t.fit=function(e,t,n){for(var r=fc(this.elementStates.slice(0),!1,!0),i=(e||this).idLookup,a=0,o,s;a<r.length;a++)o=r[a],n&&(o.matrix=Is(o.element,!1,!1,!0)),s=i[o.id],s&&Dc(o,s,t,!0,0,o),o.matrix=Is(o.element,!1,!1,!0);return this},t.getProperty=function(e,t){var n=this.getElementState(e)||Ys;return(t in n?n:n.props||Ys)[t]},t.add=function(e){for(var t=e.targets.length,n=this.idLookup,r=this.alt,i,a,o;t--;)a=e.elementStates[t],o=n[a.id],o&&(a.element===o.element||r[a.id]&&r[a.id].element===a.element)?(i=this.elementStates.indexOf(a.element===o.element?o:r[a.id]),this.targets.splice(i,1,e.targets[t]),this.elementStates.splice(i,1,a)):(this.targets.push(e.targets[t]),this.elementStates.push(a));return e.interrupted&&(this.interrupted=!0),e.simple||(this.simple=!1),Rc(this),this},t.compare=function(e){var t=e.idLookup,n=this.idLookup,r=[],i=[],a=[],o=[],s=[],c=e.alt,l=this.alt,u=function(e,t,n){return(e.isVisible===t.isVisible?e.isVisible?i:r:e.isVisible?a:o).push(n)&&s.push(n)},d=function(e,t,n){return s.indexOf(n)<0&&u(e,t,n)},f,p,m,h,g,_,v,y;for(m in t)g=c[m],_=l[m],f=g?kc(e,this,m):t[m],h=f.element,p=n[m],_?(y=p.isVisible||!_.isVisible&&h===p.element?p:_,v=g&&!f.isVisible&&!g.isVisible&&y.element===g.element?g:f,v.isVisible&&y.isVisible&&v.element!==y.element?((v.isDifferent(y)?i:r).push(v.element,y.element),s.push(v.element,y.element)):u(v,y,v.element),g&&v.element===g.element&&(g=t[m]),d(v.element!==p.element&&g?g:v,p,p.element),d(g&&g.element===_.element?g:v,_,_.element),g&&d(g,_.element===g.element?_:p,g.element)):(p?p.isDifferent(f)?u(f,p,h):r.push(h):a.push(h),g&&d(g,p,g.element));for(m in n)t[m]||(o.push(n[m].element),l[m]&&o.push(l[m].element));return{changed:i,unchanged:r,enter:a,leave:o}},t.recordInlineStyles=function(){for(var e=Zs[this.props]||ec,t=this.elementStates.length;t--;)pc(this.elementStates[t],e)},t.interrupt=function(e){var t=this,n=[];this.targets.forEach(function(r){var i=r._flip,a=Lc(i,+!e);e&&a&&n.indexOf(i)<0&&i.add(function(){return t.updateVisibility()}),a&&n.push(i)}),!e&&n.length&&this.updateVisibility(),this.interrupted||=!!n.length},t.updateVisibility=function(){this.elementStates.forEach(function(e){var t=e.element.getBoundingClientRect();e.isVisible=!!(t.width||t.height||t.top||t.left),e.uncache=1})},t.getElementState=function(e){return this.elementStates[this.targets.indexOf(tc(e))]},t.makeAbsolute=function(){return fc(this.elementStates.slice(0),!0,!0).map(_c)},e}(),Bc=function(){function e(t,n,r){t instanceof e?Object.assign(this,t,n||{}):(this.element=t,this.update(n,r))}var t=e.prototype;return t.isDifferent=function(e){var t=this.bounds,n=e.bounds;return t.top!==n.top||t.left!==n.left||t.width!==n.width||t.height!==n.height||!this.matrix.equals(e.matrix)||this.opacity!==e.opacity||this.props&&e.props&&JSON.stringify(this.props)!==JSON.stringify(e.props)},t.clone=function(t){return new e(this,t)},t.update=function(e,t){var n=this,r=n.element,i=zs.getProperty(r),a=zs.core.getCache(r),o=r.getBoundingClientRect(),s=r.getBBox&&typeof r.getBBox==`function`&&r.nodeName.toLowerCase()!==`svg`&&r.getBBox(),c=t?new Fs(1,0,0,1,o.left+Ds(),o.top+Es()):Is(r,!1,!1,!0);a.uncache=1,n.getProp=i,n.element=r,n.id=wc(r),n.matrix=c,n.cache=a,n.bounds=o,n.isVisible=!!(o.width||o.height||o.left||o.top),n.display=i(`display`),n.position=i(`position`),n.parent=r.parentNode,n.x=i(`x`,`px`),n.y=i(`y`,`px`),n.scaleX=a.scaleX,n.scaleY=a.scaleY,n.rotation=i(`rotation`),n.skewX=i(`skewX`),n.opacity=i(`opacity`),n.width=s?s.width:Us(i(`width`,`px`),.04),n.height=s?s.height:Us(i(`height`,`px`),.04),e&&Sc(n,cc[e]||lc(e)),n.ctm=r.getCTM&&r.nodeName.toLowerCase()===`svg`&&Ms(r).inverse(),n.simple=t||nc(c.a)===1&&!nc(c.b)&&!nc(c.c)&&nc(c.d)===1,n.uncache=0},e}(),Vc=function(){function e(e,t){this.vars=e,this.batch=t,this.states=[],this.timeline=t.timeline}var t=e.prototype;return t.getStateById=function(e){for(var t=this.states.length;t--;)if(this.states[t].idLookup[e])return this.states[t]},t.kill=function(){this.batch.remove(this)},e}(),Hc=function(){function e(e){this.id=e,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new zc,this.timeline=zs.timeline()}var t=e.prototype;return t.add=function(e){var t=this.actions.filter(function(t){return t.vars===e});return t.length?t[0]:(t=new Vc(typeof e==`function`?{animate:e}:e,this),this.actions.push(t),t)},t.remove=function(e){var t=this.actions.indexOf(e);return t>=0&&this.actions.splice(t,1),this},t.getState=function(e){var t=this,n=Bs,r=Vs;return Bs=this,this.state.clear(),this._kill.length=0,this.actions.forEach(function(n){n.vars.getState&&(n.states.length=0,Vs=n,n.state=n.vars.getState(n)),e&&n.states.forEach(function(e){return t.state.add(e)})}),Vs=r,Bs=n,this.killConflicts(),this},t.animate=function(){var e=this,t=Bs,n=this.timeline,r=this.actions.length,i,a;for(Bs=this,n.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(e){e.vars.animate&&e.vars.animate(e);var t=e.vars.onEnter,n=e.vars.onLeave,r=e.targets,i,a;r&&r.length&&(t||n)&&(i=new zc,e.states.forEach(function(e){return i.add(e)}),a=i.compare(Uc.getState(r)),a.enter.length&&t&&t(a.enter),a.leave.length&&n&&n(a.leave))}),yc(this._abs),this._run.forEach(function(e){return e()}),a=n.duration(),i=this._final.slice(0),n.add(function(){a<=n.time()&&(i.forEach(function(e){return e()}),Gs(e,`onComplete`))}),Bs=t;r--;)this.actions[r].vars.once&&this.actions[r].kill();return Gs(this,`onStart`),n.restart(),this},t.loadState=function(e){e||=function(){return 0};var t=[];return this.actions.forEach(function(n){if(n.vars.loadState){var r,i=function i(a){a&&(n.targets=a),r=t.indexOf(i),~r&&(t.splice(r,1),t.length||e())};t.push(i),n.vars.loadState(i)}}),t.length||e(),this},t.setState=function(){return this.actions.forEach(function(e){return e.targets=e.vars.setState&&e.vars.setState(e)}),this},t.killConflicts=function(e){return this.state.interrupt(e),this._kill.forEach(function(t){return t.interrupt(e)}),this},t.run=function(e,t){var n=this;return this!==Bs&&(e||this.getState(t),this.loadState(function(){n._killed||(n.setState(),n.animate())})),this},t.clear=function(e){this.state.clear(),e||(this.actions.length=0)},t.getStateById=function(e){for(var t=this.actions.length,n;t--;)if(n=this.actions[t].getStateById(e),n)return n;return this.state.idLookup[e]&&this.state},t.kill=function(){this._killed=1,this.clear(),delete Ks[this.id]},e}(),Uc=function(){function e(){}return e.getState=function(t,n){var r=Oc(t,n);return Vs&&Vs.states.push(r),n&&n.batch&&e.batch(n.batch).state.add(r),r},e.from=function(e,t){return t||={},`clearProps`in t||(t.clearProps=!0),Fc(e,Oc(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,-1)},e.to=function(e,t){return Fc(e,Oc(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,1)},e.fromTo=function(e,t,n){return Fc(e,t,n)},e.fit=function(e,t,n){var r=n?sc(n,ac):{},i=n||r,a=i.absolute,o=i.scale,s=i.getVars,c=i.props,l=i.runBackwards,u=i.onComplete,d=i.simple,f=n&&n.fitChild&&tc(n.fitChild),p=xc(t,c,d,e),m=xc(e,0,d,p),h=c?Zs[c]:ec,g=zs.context();return c&&Cc(r,p.props),pc(m,h),l&&(`immediateRender`in r||(r.immediateRender=!0),r.onComplete=function(){mc(m),u&&u.apply(this,arguments)}),a&&_c(m,p),r=Dc(m,p,o||f,!r.duration&&c,f,r.duration||s?r:0),typeof n==`object`&&`zIndex`in n&&(r.zIndex=n.zIndex),g&&!s&&g.add(function(){return function(){return mc(m)}}),s?r:r.duration?zs.to(m.element,r):null},e.makeAbsolute=function(e,t){return(e instanceof zc?e:new zc(e,t)).makeAbsolute()},e.batch=function(e){return e||=`default`,Ks[e]||(Ks[e]=new Hc(e))},e.killFlipsOf=function(e,t){(e instanceof zc?e.targets:Rs(e)).forEach(function(e){return e&&Lc(e._flip,t===!1?2:1)})},e.isFlipping=function(t){var n=e.getByTarget(t);return!!n&&n.isActive()},e.getByTarget=function(e){return(tc(e)||Ys)._flip},e.getElementState=function(e,t){return new Bc(tc(e),t)},e.convertCoordinates=function(e,t,n){var r=Is(t,!0,!0).multiply(Is(e));return n?r.apply(n):r},e.register=function(e){if(Hs=typeof document<`u`&&document.body,Hs){zs=e,Ss(Hs),Rs=zs.utils.toArray,Ws=zs.core.getStyleSaver;var t=zs.utils.snap(.1);Us=function(e,n){return t(parseFloat(e)+n)}}},e}();Uc.version=`3.15.0`,typeof window<`u`&&window.gsap&&window.gsap.registerPlugin(Uc);var Wc=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Gc=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,Kc=Math.PI/180;180/Math.PI;var qc=Math.sin,Jc=Math.cos,Yc=Math.abs,Xc=Math.sqrt,Zc=function(e){return typeof e==`number`},Qc=1e5,$c=function(e){return Math.round(e*Qc)/Qc||0},el=function(e){return e.closed=Math.abs(e[0]-e[e.length-2])<.001&&Math.abs(e[1]-e[e.length-1])<.001};function tl(e,t,n,r,i,a,o){for(var s=e.length,c,l,u,d,f;--s>-1;)for(c=e[s],l=c.length,u=0;u<l;u+=2)d=c[u],f=c[u+1],c[u]=d*t+f*r+a,c[u+1]=d*n+f*i+o;return e._dirty=1,e}function nl(e,t,n,r,i,a,o,s,c){if(e!==s||t!==c){n=Yc(n),r=Yc(r);var l=i%360*Kc,u=Jc(l),d=qc(l),f=Math.PI,p=f*2,m=(e-s)/2,h=(t-c)/2,g=u*m+d*h,_=-d*m+u*h,v=g*g,y=_*_,b=v/(n*n)+y/(r*r);b>1&&(n=Xc(b)*n,r=Xc(b)*r);var x=n*n,S=r*r,C=(x*S-x*y-S*v)/(x*y+S*v);C<0&&(C=0);var w=(a===o?-1:1)*Xc(C),T=w*(n*_/r),E=w*-(r*g/n),D=(e+s)/2,O=(t+c)/2,k=D+(u*T-d*E),A=O+(d*T+u*E),j=(g-T)/n,M=(_-E)/r,N=(-g-T)/n,ee=(-_-E)/r,te=j*j+M*M,ne=(M<0?-1:1)*Math.acos(j/Xc(te)),P=(j*ee-M*N<0?-1:1)*Math.acos((j*N+M*ee)/Xc(te*(N*N+ee*ee)));isNaN(P)&&(P=f),!o&&P>0?P-=p:o&&P<0&&(P+=p),ne%=p,P%=p;var re=Math.ceil(Yc(P)/(p/4)),F=[],I=P/re,L=4/3*qc(I/2)/(1+Jc(I/2)),ie=u*n,ae=d*n,oe=d*-r,se=u*r,ce;for(ce=0;ce<re;ce++)i=ne+ce*I,g=Jc(i),_=qc(i),j=Jc(i+=I),M=qc(i),F.push(g-L*_,_+L*g,j+L*M,M-L*j,j,M);for(ce=0;ce<F.length;ce+=2)g=F[ce],_=F[ce+1],F[ce]=g*ie+_*oe+k,F[ce+1]=g*ae+_*se+A;return F[ce-2]=s,F[ce-1]=c,F}}function rl(e){var t=(e+``).replace(Gc,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(Wc)||[],n=[],r=0,i=0,a=2/3,o=t.length,s=0,c=`ERROR: malformed path: `+e,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w=function(e,t,n,r){v=(n-e)/3,y=(r-t)/3,h.push(e+v,t+y,n-v,r-y,n,r)};if(!e||!isNaN(t[0])||isNaN(t[1]))return console.log(c),n;for(l=0;l<o;l++)if(x=p,isNaN(t[l])?(p=t[l].toUpperCase(),m=p!==t[l]):l--,d=+t[l+1],f=+t[l+2],m&&(d+=r,f+=i),l||(g=d,_=f),p===`M`)h&&(h.length<8?--n.length:s+=h.length,el(h)),r=g=d,i=_=f,h=[d,f],n.push(h),l+=2,p=`L`;else if(p===`C`)h||=[0,0],m||(r=i=0),h.push(d,f,r+t[l+3]*1,i+t[l+4]*1,r+=t[l+5]*1,i+=t[l+6]*1),l+=6;else if(p===`S`)v=r,y=i,(x===`C`||x===`S`)&&(v+=r-h[h.length-4],y+=i-h[h.length-3]),m||(r=i=0),h.push(v,y,d,f,r+=t[l+3]*1,i+=t[l+4]*1),l+=4;else if(p===`Q`)v=r+(d-r)*a,y=i+(f-i)*a,m||(r=i=0),r+=t[l+3]*1,i+=t[l+4]*1,h.push(v,y,r+(d-r)*a,i+(f-i)*a,r,i),l+=4;else if(p===`T`)v=r-h[h.length-4],y=i-h[h.length-3],h.push(r+v,i+y,d+(r+v*1.5-d)*a,f+(i+y*1.5-f)*a,r=d,i=f),l+=2;else if(p===`H`)w(r,i,r=d,i),l+=1;else if(p===`V`)w(r,i,r,i=d+(m?i-r:0)),l+=1;else if(p===`L`||p===`Z`)p===`Z`&&(d=g,f=_,h.closed=!0),(p===`L`||Yc(r-d)>.5||Yc(i-f)>.5)&&(w(r,i,d,f),p===`L`&&(l+=2)),r=d,i=f;else if(p===`A`){if(S=t[l+4],C=t[l+5],v=t[l+6],y=t[l+7],u=7,S.length>1&&(S.length<3?(y=v,v=C,u--):(y=C,v=S.substr(2),u-=2),C=S.charAt(1),S=S.charAt(0)),b=nl(r,i,+t[l+1],+t[l+2],+t[l+3],+S,+C,(m?r:0)+v*1,(m?i:0)+y*1),l+=u,b)for(u=0;u<b.length;u++)h.push(b[u]);r=h[h.length-2],i=h[h.length-1]}else console.log(c);return l=h.length,l<6?(n.pop(),l=0):el(h),n.totalPoints=s+l,n}function il(e){Zc(e[0])&&(e=[e]);var t=``,n=e.length,r,i,a,o;for(i=0;i<n;i++){for(o=e[i],t+=`M`+$c(o[0])+`,`+$c(o[1])+` C`,r=o.length,a=2;a<r;a++)t+=$c(o[a++])+`,`+$c(o[a++])+` `+$c(o[a++])+`,`+$c(o[a++])+` `+$c(o[a++])+`,`+$c(o[a])+` `;o.closed&&(t+=`z`)}return t}var al,ol,sl=function(){return al||typeof window<`u`&&(al=window.gsap)&&al.registerPlugin&&al},cl=function(){al=sl(),al?(al.registerEase(`_CE`,_l.create),ol=1):console.warn(`Please gsap.registerPlugin(CustomEase)`)},ll=0x56bc75e2d63100000,ul=function(e){return~~(e*1e3+(e<0?-.5:.5))/1e3},dl=1,fl=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,pl=/[cLlsSaAhHvVtTqQ]/g,ml=function(e){var t=e.length,n=ll,r;for(r=1;r<t;r+=6)+e[r]<n&&(n=+e[r]);return n},hl=function(e,t,n){!n&&n!==0&&(n=Math.max(+e[e.length-1],+e[1]));var r=e[0]*-1,i=-n,a=e.length,o=1/(+e[a-2]+r),s=-t||(Math.abs(e[a-1]-+e[1])<.01*(e[a-2]-+e[0])?ml(e)+i:+e[a-1]+i),c;for(s=s?1/s:-o,c=0;c<a;c+=2)e[c]=(+e[c]+r)*o,e[c+1]=(+e[c+1]+i)*s},gl=function e(t,n,r,i,a,o,s,c,l,u,d){var f=(t+r)/2,p=(n+i)/2,m=(r+a)/2,h=(i+o)/2,g=(a+s)/2,_=(o+c)/2,v=(f+m)/2,y=(p+h)/2,b=(m+g)/2,x=(h+_)/2,S=(v+b)/2,C=(y+x)/2,w=s-t,T=c-n,E=Math.abs((r-s)*T-(i-c)*w),D=Math.abs((a-s)*T-(o-c)*w),O;return u||(u=[{x:t,y:n},{x:s,y:c}],d=1),u.splice(d||u.length-1,0,{x:S,y:C}),(E+D)*(E+D)>l*(w*w+T*T)&&(O=u.length,e(t,n,f,p,v,y,S,C,l,u,d),e(S,C,b,x,g,_,s,c,l,u,d+1+(u.length-O))),u},_l=function(){function e(e,t,n){ol||cl(),this.id=e,dl&&this.setData(t,n)}var t=e.prototype;return t.setData=function(e,t){t||={},e||=`0,0,1,1`;var n=e.match(fl),r=1,i=[],a=[],o=t.precision||1,s=o<=1,c,l,u,d,f,p,m,h,g;if(this.data=e,(pl.test(e)||~e.indexOf(`M`)&&e.indexOf(`C`)<0)&&(n=rl(e)[0]),c=n.length,c===4)n.unshift(0,0),n.push(1,1),c=8;else if((c-2)%6)throw`Invalid CustomEase`;for((+n[0]!=0||+n[c-2]!=1)&&hl(n,t.height,t.originY),this.segment=n,d=2;d<c;d+=6)l={x:+n[d-2],y:+n[d-1]},u={x:+n[d+4],y:+n[d+5]},i.push(l,u),gl(l.x,l.y,+n[d],+n[d+1],+n[d+2],+n[d+3],u.x,u.y,1/(o*2e5),i,i.length-1);for(c=i.length,d=0;d<c;d++)m=i[d],h=i[d-1]||m,(m.x>h.x||h.y!==m.y&&h.x===m.x||m===h)&&m.x<=1?(h.cx=m.x-h.x,h.cy=m.y-h.y,h.n=m,h.nx=m.x,s&&d>1&&Math.abs(h.cy/h.cx-i[d-2].cy/i[d-2].cx)>2&&(s=0),h.cx<r&&(h.cx?r=h.cx:(h.cx=.001,d===c-1&&(h.x-=.001,r=Math.min(r,.001),s=0)))):(i.splice(d--,1),c--);if(c=1/r+1|0,f=1/c,p=0,m=i[0],s){for(d=0;d<c;d++)g=d*f,m.nx<g&&(m=i[++p]),l=m.y+(g-m.x)/m.cx*m.cy,a[d]={x:g,cx:f,y:l,cy:0,nx:9},d&&(a[d-1].cy=l-a[d-1].y);p=i[i.length-1],a[c-1].cy=p.y-l,a[c-1].cx=p.x-a[a.length-1].x}else{for(d=0;d<c;d++)m.nx<d*f&&(m=i[++p]),a[d]=m;p<i.length-1&&(a[d-1]=i[i.length-2])}return this.ease=function(e){var t=a[e*c|0]||a[c-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},this.ease.custom=this,this.id&&al&&al.registerEase(this.id,this.ease),this},t.getSVGData=function(t){return e.getSVGData(this,t)},e.create=function(t,n,r){return new e(t,n,r).ease},e.register=function(e){al=e,cl()},e.get=function(e){return al.parseEase(e)},e.getSVGData=function(t,n){n||={};var r=n.width||100,i=n.height||100,a=n.x||0,o=(n.y||0)+i,s=al.utils.toArray(n.path)[0],c,l,u,d,f,p,m,h,g,_;if(n.invert&&(i=-i,o=0),typeof t==`string`&&(t=al.parseEase(t)),t.custom&&(t=t.custom),t instanceof e)c=il(tl([t.segment.slice(0)],r,0,0,-i,a,o));else{for(c=[a,o],m=Math.max(5,(n.precision||1)*200),d=1/m,m+=2,h=5/m,g=ul(a+d*r),_=ul(o+t(d)*-i),l=(_-o)/(g-a),u=2;u<m;u++)f=ul(a+u*d*r),p=ul(o+t(u*d)*-i),(Math.abs((p-_)/(f-g)-l)>h||u===m-1)&&(c.push(g,_),l=(p-_)/(f-g)),g=f,_=p;c=`M`+c.join(`,`)}return s&&s.setAttribute(`d`,c),c},e}();_l.version=`3.15.0`,_l.headless=!0,sl()&&al.registerPlugin(_l);var vl;Q.registerPlugin(Uc,_l),_l.create(`morph-open`,`0.15, 0.85, 0.2, 1`),_l.create(`morph-close`,`0.4, 0, 0.2, 1`);var yl={fromAttribute:e=>e!==`false`&&e!==null,toAttribute:e=>e?``:null},$=class extends W{static{vl=this}constructor(...e){super(...e),this.target=``,this.open=!1,this.modal=!0,this.placement=`center`,this.expandedWidth=`22rem`,this.expandedHeight=`18rem`,this.closeOnClickOutside=!0,this.closeOnEsc=!0,this.showCloseButton=!1,this.morphLabel=!1,this.morphLabelSelector=``,this.hasBackdrop=!0,this.hideTarget=!1,this.coverTarget=!1,this.autoSize=!1,this.blurContent=!1,this.debug=!1,this._hasHeader=!1,this._hasFooter=!1,this._hasTriggerLabel=!1,this._targetEl=null,this._isAnimating=!1,this._visible=!1,this._handlingOpenChange=!1,this._zIndex=100,this._morphEls={text:null,icon:null},this._targetSnapshot=null,this._originFallbacks=[],this._targetStylesCache=new Map,this._onTargetClick=()=>this.show(),this._onDocKeydown=e=>this._handleDocKeydown(e),this._onDocClick=e=>{!this.open||!this._visible||!this.closeOnClickOutside||e.composedPath().includes(this._panel)||this._targetEl&&e.composedPath().includes(this._targetEl)||this.hide()}}static{this._openStack=[]}connectedCallback(){super.connectedCallback(),this._resolveTarget(),document.addEventListener(`keydown`,this._onDocKeydown),document.addEventListener(`click`,this._onDocClick)}disconnectedCallback(){document.removeEventListener(`keydown`,this._onDocKeydown),document.removeEventListener(`click`,this._onDocClick),this._targetEl&&this._targetEl.removeEventListener(`click`,this._onTargetClick);let e=vl._openStack.indexOf(this);e>-1&&vl._openStack.splice(e,1),this.style.removeProperty(`z-index`),this.style.removeProperty(`--_z-index`),this.style.removeProperty(`--_backdrop-duration`),this.style.removeProperty(`--_backdrop-ease`),this._cleanupMorphElements(),this._restoreTargetContent(),super.disconnectedCallback()}updated(e){super.updated(e),e.has(`target`)&&this._resolveTarget(),e.has(`open`)&&!this._handlingOpenChange&&(this.open?this.show():this.hide())}_resolveTarget(){if(!this.target)return;let e=document.querySelector(this.target);e&&(this._targetEl&&this._targetEl!==e&&this._targetEl.removeEventListener(`click`,this._onTargetClick),this._targetEl=e,this._targetEl.addEventListener(`click`,this._onTargetClick))}show(){if(!(this._isAnimating||this._visible)){if(this._targetEl||this._resolveTarget(),!this._targetEl){console.warn(`[moni-morph-modal] cannot show: target not found`);return}this._captureOriginFallbacks(this._targetEl),this._isAnimating=!0,this._handlingOpenChange=!0,this.open=!0,this._handlingOpenChange=!1,vl._openStack.push(this),this._zIndex=1e3+vl._openStack.length,this.style.zIndex=String(this._zIndex),this.style.setProperty(`--_z-index`,String(this._zIndex)),this.style.setProperty(`--_backdrop-duration`,`0.38s`),this.style.setProperty(`--_backdrop-ease`,`cubic-bezier(0.15, 0.85, 0.2, 1)`),this._backdrop&&Q.set(this._backdrop,{clearProps:`opacity,transition`}),this._hideTargetContent(),this.updateComplete.then(async()=>{if(!this._targetEl||!this._panel||!this._inner){this._isAnimating=!1;return}this._panel.classList.add(`is-animating`),await new Promise(e=>requestAnimationFrame(e));let e=this._getTargetState(this._targetEl);this._debugMorph(`open`,this._targetEl,`target`,[this._targetEl]);let t=this._panel;this._applyRect(t,this._toPanelCoordinateRect(e.rect)),t.style.backgroundColor=e.backgroundColor,t.style.color=e.color,t.style.borderRadius=e.borderRadius,t.style.boxShadow=e.boxShadow,t.style.zIndex=String(this._zIndex),t.style.visibility=`visible`,t.style.opacity=`1`,t.style.pointerEvents=`auto`,this._backdrop&&(this._backdrop.style.zIndex=String(this._zIndex-1)),this._cleanupMorphElements();let n=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,r=this._shouldMorphLabel()&&!n,i=[],a=null,o=this.shadowRoot.querySelector(`.header-morph-wrapper`);if(r){if(this._animateLabelOpen(),a=this._resolveMorphSource(),a.text){let e=this._createMorphText(a.text.content,a.text.sourceEl);this._positionElement(e,a.text.rect),i.push(e)}if(a.icon){let e=this._createMorphIcon(a.icon.element);this._positionElement(e,a.icon.rect),i.push(e)}i.length===0&&(r=!1)}r&&o&&(o.style.opacity=`0`);let s=Uc.getState(t,{props:`backgroundColor,borderRadius,color,boxShadow`}),c=Uc.getState(i,{props:`color,fontSize,fontWeight,lineHeight`}),l;if(this.autoSize){let e=t.style.getPropertyValue(`--_panel-width`),n=t.style.getPropertyValue(`--_panel-height`),r=t.style.width,i=t.style.height;t.style.width=`auto`,t.style.height=`auto`,t.style.setProperty(`--_panel-width`,`max-content`),t.style.setProperty(`--_panel-height`,`max-content`);let a=this.shadowRoot.querySelector(`.body`),o=a?a.style.overflow:``;a&&(a.style.overflow=`visible`),l={width:this._inner.scrollWidth,height:this._inner.scrollHeight},t.style.setProperty(`--_panel-width`,e),t.style.setProperty(`--_panel-height`,n),t.style.width=r,t.style.height=i,a&&(a.style.overflow=o)}let u=this._computeFinalRect(e.rect,l);if(t.style.setProperty(`--_panel-width`,`${u.width}px`),t.style.setProperty(`--_panel-height`,`${u.height}px`),this._applyRect(t,u),t.style.backgroundColor=``,t.style.color=``,t.style.borderRadius=``,t.style.boxShadow=``,r&&a){let e=this._measureHeaderTextRect(),t=this._measureHeaderIconRect(),n=window.getComputedStyle(this._header);this._morphEls.text&&e&&(this._positionElement(this._morphEls.text,e),this._morphEls.text.style.color=n.color||`var(--on-surface)`,this._morphEls.text.style.fontSize=n.fontSize||`inherit`,this._morphEls.text.style.fontWeight=n.fontWeight||`inherit`,this._morphEls.text.style.lineHeight=n.lineHeight||`inherit`),this._morphEls.icon&&t&&(this._positionElement(this._morphEls.icon,t),this._morphEls.icon.style.color=n.color||`var(--on-surface)`)}if(Uc.from(s,{targets:t,duration:.38,ease:`morph-open`,zIndex:this._zIndex,onComplete:()=>{this._isAnimating=!1,this._visible=!0,this._cleanupMorphElements(),o&&(o.style.opacity=`1`)}}),i.length>0){this.blurContent&&Q.set(i,{filter:`blur(16px)`});let e={targets:i,duration:.38,ease:`morph-open`,zIndex:this._zIndex+10};this.blurContent&&(e.filter=`blur(0px)`,e.clearProps=`filter`),Uc.from(c,e)}let d=[this.shadowRoot.querySelector(`.body`),this.shadowRoot.querySelector(`footer`),this.shadowRoot.querySelector(`.close-btn`)].filter(Boolean),f=this.blurContent?`blur(16px)`:`blur(0px)`;Q.set(d,{opacity:0,y:8,filter:f}),Q.fromTo(d,{opacity:0,y:8,filter:f},{opacity:1,y:0,filter:`blur(0px)`,duration:.32,delay:.08,stagger:.04,ease:`power2.out`,onComplete:()=>{Q.set(d,{clearProps:`opacity,transform,filter`}),this._panel.classList.remove(`is-animating`)}})})}}showFrom(e){e&&(this._targetEl=e,this.show())}resizeTo(e,t,n=`center`){if(this.expandedWidth=e,this.expandedHeight=t,!this._visible||!this._panel||!this._targetEl)return;let r=this._computeFinalRect(this._targetEl.getBoundingClientRect()),i=this.parentElement?.closest(`.lab-canvas, [data-morph-coordinate-space]`),a=i?getComputedStyle(i).transform:`none`,o=1,s=1,c;if(i&&a!==`none`){let e=new DOMMatrix(a);o=Math.hypot(e.a,e.b)||1,s=Math.hypot(e.c,e.d)||1,c=i.getBoundingClientRect()}if(n===`top-left`){let e=this._panel.getBoundingClientRect(),t=e.left,n=e.top;c&&(t=(e.left-c.left)/o,n=(e.top-c.top)/s),r=new DOMRect(t,n,r.width,r.height)}else if(n===`center`&&c){let e=window.innerWidth/2-r.width*o/2,t=window.innerHeight/2-r.height*s/2;r=new DOMRect((e-c.left)/o,(t-c.top)/s,r.width,r.height)}this._panel.classList.add(`is-animating`),Q.to(this._panel,{top:r.top,left:r.left,width:r.width,height:r.height,"--_panel-width":`${r.width}px`,"--_panel-height":`${r.height}px`,duration:.32,ease:`morph-open`,overwrite:!0,onComplete:()=>this._panel?.classList.remove(`is-animating`),onInterrupt:()=>this._panel?.classList.remove(`is-animating`)})}_ensureSolidPanelBackground(){if(!this._panel)return;let e=window.getComputedStyle(this._panel).backgroundColor;if(this._isColorTransparent(e)){let e=this._findSolidBackground(this._panel);if(e)this._panel.style.backgroundColor=e;else{let e=getComputedStyle(document.body).getPropertyValue(`--surface-container-high`).trim();this._panel.style.backgroundColor=e||`#2d2d2d`}}}hide(){if(this._isAnimating||!this._visible)return;this._isAnimating=!0,this._panel.classList.add(`is-animating`),this._ensureSolidPanelBackground(),this.style.setProperty(`--_backdrop-duration`,`0.3s`),this.style.setProperty(`--_backdrop-ease`,`cubic-bezier(0.4, 0, 0.2, 1)`);let e=this.shadowRoot.querySelector(`.body`),t=this.shadowRoot.querySelector(`footer`),n=this.shadowRoot.querySelector(`.close-btn`),r=this.shadowRoot.querySelector(`.header-morph-wrapper`),i=[e,t,n,r].filter(Boolean),a=this.blurContent?`blur(12px)`:`blur(6px)`;Q.fromTo(i,{opacity:1,filter:`blur(0px)`},{opacity:0,filter:a,duration:.12,ease:`power2.in`,onComplete:()=>{let e=this._panel,t=this._resolveClosingTarget();this._cleanupMorphElements();let n=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,a=!1,o=[],s=null,c=null;if(a){this._animateLabelClose(),s=this._resolveMorphSource();let e=this._measureHeaderTextRect(),t=this._measureHeaderIconRect(),n=window.getComputedStyle(this._header);if(s.text&&e){let t=this._createMorphText(s.text.content,s.text.sourceEl);this._positionElement(t,e),t.style.color=n.color||`var(--on-surface)`,t.style.fontSize=n.fontSize||`inherit`,t.style.fontWeight=n.fontWeight||`inherit`,t.style.lineHeight=n.lineHeight||`inherit`,o.push(t)}if(s.icon&&t){let e=this._createMorphIcon(s.icon.element);this._positionElement(e,t),e.style.color=n.color||`var(--on-surface)`,o.push(e)}o.length===0&&(a=!1)}if(t&&!a&&!n){let e=this._resolveVisualTarget(t),n=e.getBoundingClientRect();if(n.width>0&&n.height>0){t===this._targetEl&&this._restoreTargetContent();let r=this._createTargetSnapshot(e,n);t===this._targetEl&&this._hideTargetContent(),r.style.opacity=`0`,c={element:r,rect:n,source:e}}}a&&r&&(r.style.opacity=`0`);let l=Uc.getState(e,{props:`backgroundColor,borderRadius,color,boxShadow`}),u=Uc.getState(o,{props:`color,fontSize,fontWeight,lineHeight,opacity`});if(!t){Q.to(this._backdrop,{opacity:0,duration:n?.01:.22,ease:`power2.in`}),Q.to(e,{autoAlpha:0,scale:.92,duration:n?.01:.22,ease:`power2.in`,overwrite:!0,onComplete:()=>{Q.set(e,{clearProps:`transform`}),this._finishHide(i,r)}});return}let d=this._getTargetState(t);if(c){this._runTargetMorphTimeline(e,d,c,i,r,n);return}let f;if(this.autoSize){let t=e.style.getPropertyValue(`--_panel-width`),n=e.style.getPropertyValue(`--_panel-height`),r=e.style.width,i=e.style.height;e.style.width=`auto`,e.style.height=`auto`,e.style.setProperty(`--_panel-width`,`max-content`),e.style.setProperty(`--_panel-height`,`max-content`);let a=this.shadowRoot.querySelector(`.body`),o=a?a.style.overflow:``;a&&(a.style.overflow=`visible`),f={width:this._inner.scrollWidth,height:this._inner.scrollHeight},e.style.setProperty(`--_panel-width`,t),e.style.setProperty(`--_panel-height`,n),e.style.width=r,e.style.height=i,a&&(a.style.overflow=o)}let p=this._computeFinalRect(d.rect,f);if(e.style.setProperty(`--_panel-width`,`${p.width}px`),e.style.setProperty(`--_panel-height`,`${p.height}px`),this._applyRect(e,this._toPanelCoordinateRect(d.rect)),e.style.backgroundColor=d.backgroundColor,e.style.color=d.color,e.style.borderRadius=d.borderRadius,e.style.boxShadow=d.boxShadow,a&&s&&(this._morphEls.text&&s.text&&(this._positionElement(this._morphEls.text,s.text.rect),this._morphEls.text.style.color=window.getComputedStyle(s.text.sourceEl).color||`inherit`,this._morphEls.text.style.fontSize=window.getComputedStyle(s.text.sourceEl).fontSize||`inherit`,this._morphEls.text.style.fontWeight=window.getComputedStyle(s.text.sourceEl).fontWeight||`inherit`,this._morphEls.text.style.lineHeight=window.getComputedStyle(s.text.sourceEl).lineHeight||`inherit`),this._morphEls.icon&&s.icon&&(this._positionElement(this._morphEls.icon,s.icon.rect),this._morphEls.icon.style.color=window.getComputedStyle(s.icon.element).color||`inherit`)),Uc.from(l,{targets:e,duration:.3,ease:`morph-close`,zIndex:this._zIndex,onComplete:()=>this._finishHide(i,r)}),Q.to(this._backdrop,{opacity:0,duration:.3,ease:`power2.inOut`}),o.length>0){this.blurContent&&Q.set(o,{filter:`blur(0px)`});let e={targets:o,duration:.3,ease:`morph-close`,zIndex:this._zIndex+10};this.blurContent&&(e.filter=`blur(12px)`),Uc.from(u,e)}}})}_runTargetMorphTimeline(e,t,n,r,i,a){let o=this._toPanelCoordinateRect(e.getBoundingClientRect()),s=this._toPanelCoordinateRect(t.rect),c=this._toPanelCoordinateRect(n.rect),l=n.element,u=(n.source.getAnimations?.({subtree:!0})??[]).reduce((e,t)=>{let n=t.effect?.getComputedTiming(),r=typeof n?.endTime==`number`?n.endTime:0,i=typeof t.currentTime==`number`?t.currentTime:0;return Math.max(e,Math.max(0,r-i)/1e3)},0),d=Math.min(1.2,Math.max(.46,u)),f={x:o.left+o.width/2,y:o.top+o.height/2},p={x:s.left+s.width/2,y:s.top+s.height/2},m=p.x-f.x,h=p.y-f.y,g=Math.hypot(m,h)||1,_=Math.min(360,Math.max(48,g*.72)),v={x:-h/g,y:m/g},y={x:(f.x+p.x)/2,y:(f.y+p.y)/2},b=this._toPanelCoordinateRect(new DOMRect(window.innerWidth/2,window.innerHeight/2,0,0)),x=[1,-1].map(e=>({x:y.x+v.x*_*e,y:y.y+v.y*_*e})),S=e=>Math.abs(Math.abs(h)>=Math.abs(m)?e.x-b.x:e.y-b.y),C=S(x[0])<=S(x[1])?x[0]:x[1];if(Object.assign(l.style,{position:`absolute`,inset:`50% auto auto 50%`,width:`${c.width}px`,height:`${c.height}px`,transform:`translate(-50%, -50%) scale(.78)`,color:window.getComputedStyle(n.source).color||t.color,opacity:`0`}),a){e.appendChild(l),this._applyRect(e,s),e.style.backgroundColor=t.backgroundColor,e.style.color=t.color,e.style.borderRadius=t.borderRadius,e.style.boxShadow=t.boxShadow,this._backdrop.style.opacity=`0`,l.style.opacity=`1`,this._finishHide(r,i);return}let w=Q.timeline({onComplete:()=>{Q.set(e,{clearProps:`transform`}),this._finishHide(r,i)}});e.style.left=`${o.left}px`,e.style.top=`${o.top}px`,e.style.width=`${o.width}px`,e.style.height=`${o.height}px`;let T=window.getComputedStyle(e),E={backgroundColor:T.backgroundColor,color:T.color,borderRadius:T.borderRadius,boxShadow:T.boxShadow};this._backdrop.style.transition=`none`,this._backdrop.style.opacity=`1`;let D={progress:0},O=!1;this.debug&&console.log(`[moni-morph-modal] arc`,{start:f,control:C,end:p,distance:g,arc:_,morphDuration:d}),w.addLabel(`morph`,0).to(D,{progress:1,duration:d,ease:`power2.inOut`,onUpdate:()=>{let t=D.progress,r=this._getTargetState(n.source),i=this._toPanelCoordinateRect(r.rect),a=this._readTransformState(n.source),c={x:i.left+i.width/2,y:i.top+i.height/2},u=c.x-f.x,d=c.y-f.y,p=Math.hypot(u,d)||1,m=Math.min(360,Math.max(48,p*.72)),h={x:-d/p,y:u/p},g={x:(f.x+c.x)/2,y:(f.y+c.y)/2},_=[1,-1].map(e=>({x:g.x+h.x*m*e,y:g.y+h.y*m*e})),v=S(_[0])<=S(_[1])?_[0]:_[1];this._backdrop.style.opacity=String(Math.max(0,1-t));let y=1-t,b=y*y*f.x+2*y*t*v.x+t*t*c.x,x=y*y*f.y+2*y*t*v.y+t*t*c.y,C=n.source.offsetWidth||i.width,w=n.source.offsetHeight||i.height,T=n.source.offsetWidth||s.width,k=n.source.offsetHeight||s.height,A=o.width+(T-o.width)*t+(C-T),j=o.height+(k-o.height)*t+(w-k);e.style.width=`${A}px`,e.style.height=`${j}px`,Q.set(e,{x:b-A/2-o.left,y:x-j/2-o.top,rotation:a.rotation*t,skewX:a.skewX*t,scaleX:1+(a.scaleX-1)*t,scaleY:1+(a.scaleY-1)*t,backgroundColor:Q.utils.interpolate(E.backgroundColor,r.backgroundColor,t),color:Q.utils.interpolate(E.color,r.color,t),borderRadius:Q.utils.interpolate(E.borderRadius,r.borderRadius,t),boxShadow:Q.utils.interpolate(E.boxShadow,r.boxShadow,t)});let M=Math.max(0,Math.min(1,(t-.6)/.4));!O&&M>0&&(e.appendChild(l),O=!0),l.style.width=`${C}px`,l.style.height=`${w}px`;let N=.82+M*.18;Q.set(l,{opacity:M,scaleX:A/Math.max(1,C)*N,scaleY:j/Math.max(1,w)*N})}},`morph`).addLabel(`target-fade`).to(e,{autoAlpha:0,duration:.08,ease:`power1.out`,onStart:()=>{l.style.visibility=`hidden`,this._restoreTargetContent(),e.style.backgroundColor=`transparent`,e.style.boxShadow=`none`,e.style.borderColor=`transparent`}},`morph+=${d}`)}_finishHide(e,t){let n=this._panel;n.style.visibility=`hidden`,n.style.opacity=`0`,n.style.pointerEvents=`none`,this._visible=!1,this._handlingOpenChange=!0,this.open=!1,this._handlingOpenChange=!1,this._isAnimating=!1,n.classList.remove(`is-animating`),n.style.removeProperty(`--_panel-width`),n.style.removeProperty(`--_panel-height`),this._cleanupMorphElements(),this._restoreTargetContent(),Q.set(e,{clearProps:`opacity,transform,filter`}),t&&(t.style.opacity=`1`),this.style.removeProperty(`z-index`),this.style.removeProperty(`--_z-index`),this.style.removeProperty(`--_backdrop-duration`),this.style.removeProperty(`--_backdrop-ease`);let r=vl._openStack.indexOf(this);r>-1&&vl._openStack.splice(r,1)}_captureOriginFallbacks(e){this._originFallbacks=[];let t=this._getComposedParent(e);for(;t&&t!==document.body&&t!==document.documentElement;)this._originFallbacks.push(t),t=this._getComposedParent(t)}_getComposedParent(e){if(e.parentElement)return e.parentElement;let t=e.getRootNode();return t instanceof ShadowRoot?t.host:null}_resolveClosingTarget(){this.target&&this._resolveTarget();let e=[this._targetEl,...this._originFallbacks].filter((e,t,n)=>!!e&&n.indexOf(e)===t),t=e.find(e=>this._isUsableClosingTarget(e))??null,n=t?t===this._targetEl?`target`:`ancestor`:`fade`;return this._debugMorph(`close`,t,n,e),t}_debugMorph(e,t,n,r){if(!this.debug)return;let i=r.map((e,t)=>{let n=e.getBoundingClientRect();return{index:t,element:`${e.tagName.toLowerCase()}${e.id?`#${e.id}`:``}`,connected:e.isConnected,usable:this._isUsableClosingTarget(e),x:Math.round(n.x),y:Math.round(n.y),width:Math.round(n.width),height:Math.round(n.height)}});console.groupCollapsed(`[moni-morph-modal] ${e} → ${n}`),console.log(`Origin:`,this._targetEl),console.log(`Resolved morph target:`,t),console.table(i),console.groupEnd()}_isUsableClosingTarget(e){if(!e?.isConnected)return!1;let t=e.getBoundingClientRect();if(t.width<2||t.height<2||t.right<=0||t.bottom<=0||t.left>=window.innerWidth||t.top>=window.innerHeight)return!1;let n=e;for(;n&&n!==document.body;){let e=getComputedStyle(n);if(e.display===`none`||e.visibility===`hidden`||e.contentVisibility===`hidden`||Number.parseFloat(e.opacity||`1`)===0&&!this._targetStylesCache.has(n))return!1;n=this._getComposedParent(n)}return!0}toggle(){this._visible||this.open?this.hide():this.show()}_handleDocKeydown(e){e.key!==`Escape`||!this.closeOnEsc||vl._openStack[vl._openStack.length-1]===this&&(e.stopPropagation(),this.hide())}_hideTargetContent(){if(!this._targetEl)return;let e=(e,t)=>{this._targetStylesCache.has(e)||this._targetStylesCache.set(e,{opacity:e.style.opacity,color:e.style.color}),t===`opacity`&&(e.style.opacity=`0`),t===`color`&&(e.style.color=`transparent`)};if(this.hideTarget){e(this._targetEl,`opacity`);return}if(this._targetEl.tagName===`MONI-BUTTON`){let t=this._getMoniButtonParts();t.label&&e(t.label,`opacity`),t.icon&&e(t.icon,`opacity`),t.iconTrailing&&e(t.iconTrailing,`opacity`)}else if(this._targetEl.tagName===`MONI-FAB`){let t=this._targetEl.shadowRoot?.querySelector(`.icon`),n=this._targetEl.shadowRoot?.querySelector(`.label`);t&&e(t,`opacity`),n&&e(n,`opacity`)}else{e(this._targetEl,`color`);let t=this._targetEl.querySelector(`moni-icon, svg, [class*="icon"]`);t&&e(t,`opacity`)}}_restoreTargetContent(){if(!this._targetEl)return;let e=e=>{if(this._targetStylesCache.has(e)){let t=this._targetStylesCache.get(e);e.style.opacity=t.opacity,e.style.color=t.color,this._targetStylesCache.delete(e)}};if(this.hideTarget){e(this._targetEl);return}if(this._targetEl.tagName===`MONI-BUTTON`){let t=this._getMoniButtonParts();t.label&&e(t.label),t.icon&&e(t.icon),t.iconTrailing&&e(t.iconTrailing)}else if(this._targetEl.tagName===`MONI-FAB`){let t=this._targetEl.shadowRoot?.querySelector(`.icon`),n=this._targetEl.shadowRoot?.querySelector(`.label`);t&&e(t),n&&e(n)}else{e(this._targetEl);let t=this._targetEl.querySelector(`moni-icon, svg, [class*="icon"]`);t&&e(t)}}_onHeaderSlotChange(e){let t=e.target;this._hasHeader=t.assignedNodes({flatten:!0}).length>0}_onFooterSlotChange(e){let t=e.target;this._hasFooter=t.assignedNodes({flatten:!0}).length>0}_onTriggerLabelSlotChange(e){let t=e.target;this._hasTriggerLabel=t.assignedNodes({flatten:!0}).length>0}_getTriggerLabelNodes(){return(this.shadowRoot?.querySelector(`slot[name="trigger-label"]`))?.assignedNodes({flatten:!0})??[]}_shouldMorphLabel(){return this.morphLabel&&!!this._targetEl&&(this._hasHeader||this._hasTriggerLabel)}_cleanupMorphElements(){this._targetSnapshot&&=(this._targetSnapshot.remove(),null),this._morphEls.text&&(this._morphEls.text.remove(),this._morphEls.text=null),this._morphEls.icon&&(this._morphEls.icon.remove(),this._morphEls.icon=null)}_animateLabelOpen(){}_animateLabelClose(){}_createMorphText(e,t){let n=document.createElement(`div`);n.className=`morph-text`,n.setAttribute(`data-flip-id`,`morph-text-${this.target}`),n.setAttribute(`aria-hidden`,`true`),n.textContent=e;let r=window.getComputedStyle(t);return n.style.position=`fixed`,n.style.pointerEvents=`none`,n.style.zIndex=String(this._zIndex+10),n.style.display=`inline-flex`,n.style.alignItems=r.alignItems===`normal`?`center`:r.alignItems,n.style.justifyContent=r.justifyContent===`normal`?`flex-start`:r.justifyContent,n.style.whiteSpace=`nowrap`,n.style.color=r.color||`inherit`,n.style.fontFamily=r.fontFamily||`inherit`,n.style.fontSize=r.fontSize||`inherit`,n.style.fontWeight=r.fontWeight||`inherit`,n.style.lineHeight=r.lineHeight||`inherit`,n.style.letterSpacing=r.letterSpacing||`inherit`,this.shadowRoot.appendChild(n),this._morphEls.text=n,n}_createMorphIcon(e){let t=document.createElement(`div`);if(t.className=`morph-icon`,t.setAttribute(`data-flip-id`,`morph-icon-${this.target}`),t.setAttribute(`aria-hidden`,`true`),e.tagName===`MONI-ICON`){let n=document.createElement(`span`);n.textContent=e.getAttribute(`name`)||``;let r=window.getComputedStyle(e);n.style.display=`inline-flex`,n.style.alignItems=`center`,n.style.justifyContent=`center`,n.style.fontFamily=r.fontFamily||`var(--font-icon)`,n.style.fontSize=r.fontSize||`1.125rem`,n.style.inlineSize=r.inlineSize||`1.125rem`,n.style.blockSize=r.blockSize||`1.125rem`,n.style.lineHeight=`1`,n.style.color=`inherit`,n.style.fontWeight=`normal`,n.style.fontStyle=`normal`,n.style.letterSpacing=`normal`,n.style.textTransform=`none`,n.style.whiteSpace=`nowrap`,n.style.wordWrap=`normal`,n.style.direction=`ltr`,n.style.fontFeatureSettings=`'liga'`,n.style.fontVariationSettings=`'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24`,n.style.setProperty(`-webkit-font-smoothing`,`antialiased`),t.appendChild(n)}else t.appendChild(e.cloneNode(!0));let n=window.getComputedStyle(e);return t.style.position=`fixed`,t.style.pointerEvents=`none`,t.style.zIndex=String(this._zIndex+10),t.style.display=`inline-flex`,t.style.alignItems=`center`,t.style.justifyContent=`center`,t.style.color=n.color||`inherit`,t.style.inlineSize=n.inlineSize||`1.125rem`,t.style.blockSize=n.blockSize||`1.125rem`,this.shadowRoot.appendChild(t),this._morphEls.icon=t,t}_positionElement(e,t){let n=this._toPanelCoordinateRect(t);e.style.top=`${n.top}px`,e.style.left=`${n.left}px`,e.style.width=`${n.width}px`,e.style.height=`${n.height}px`}_toPanelCoordinateRect(e){let t=this.parentElement?.closest(`.lab-canvas, [data-morph-coordinate-space]`);if(!t)return e;let n=getComputedStyle(t).transform;if(!n||n===`none`)return e;let r=1,i=1;if(typeof DOMMatrix<`u`){let e=new DOMMatrix(n);r=Math.hypot(e.a,e.b)||1,i=Math.hypot(e.c,e.d)||1}else{let e=n.match(/^matrix\(([^)]+)\)$/),t=n.match(/^scale\(([^)]+)\)$/);if(e){let t=e[1].split(`,`).map(Number);r=Math.hypot(t[0],t[1])||1,i=Math.hypot(t[2],t[3])||1}else if(t){let e=t[1].split(/[,\s]+/).map(Number);r=e[0]||1,i=e[1]||r}}let a=t.getBoundingClientRect();return new DOMRect((e.left-a.left)/r,(e.top-a.top)/i,e.width/r,e.height/i)}_getMoniButtonParts(){let e=this._targetEl?.shadowRoot;return{label:e?.querySelector(`[part="label"]`)??null,icon:e?.querySelector(`[part="icon"]`)??null,iconTrailing:e?.querySelector(`[part="icon-trailing"]`)??null}}_resolveMorphSource(){let e={text:null,icon:null};if(!this._targetEl)return e;if(this._hasTriggerLabel){let t=this._getTriggerLabelNodes();if(t.length>0){let n=document.createElement(`div`);for(let e of t)n.appendChild(e.cloneNode(!0));n.style.position=`fixed`,n.style.visibility=`hidden`,n.style.pointerEvents=`none`,this.shadowRoot.appendChild(n);let r=this._targetEl.getBoundingClientRect();n.remove(),e.text={content:n.textContent?.trim()||``,rect:r,sourceEl:this._targetEl}}return e}if(this._targetEl.tagName===`MONI-BUTTON`){let t=this._getMoniButtonParts();if(t.label&&(e.text={content:this._targetEl.textContent?.trim()||``,rect:t.label.getBoundingClientRect(),sourceEl:t.label}),t.icon){let n=t.icon.querySelector(`moni-icon, svg`)||t.icon;e.icon={element:n,rect:n.getBoundingClientRect()}}return e}let t=this._targetEl;if(this.morphLabelSelector){let e=this._targetEl.querySelector(this.morphLabelSelector);e&&(t=e)}let n=t.textContent?.trim()||``;n&&(e.text={content:n,rect:t.getBoundingClientRect(),sourceEl:t});let r=t.querySelector(`moni-icon, svg, [class*="icon"]`);return r&&(e.icon={element:r,rect:r.getBoundingClientRect()}),e}_measureHeaderTextRect(){if(!this._header)return null;let e=(this.shadowRoot?.querySelector(`slot[name="header"]`))?.assignedNodes({flatten:!0})??[];for(let t of e){if(t.nodeType===Node.TEXT_NODE&&t.textContent?.trim()){let e=document.createRange();return e.selectNode(t),e.getBoundingClientRect()}if(t.nodeType===Node.ELEMENT_NODE){let e=t;if(e.tagName===`MONI-ICON`||e.tagName===`SVG`)continue;let n=Array.from(e.childNodes);for(let e of n){if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim()){let t=document.createRange();return t.selectNode(e),t.getBoundingClientRect()}if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.tagName!==`MONI-ICON`&&t.tagName!==`SVG`&&t.textContent?.trim())return t.getBoundingClientRect()}}if(e.textContent?.trim())return e.getBoundingClientRect()}}return this._header.getBoundingClientRect()}_measureHeaderIconRect(){let e=this._measureHeaderTextRect();if(!e)return null;let t=(this.shadowRoot?.querySelector(`slot[name="header"]`))?.assignedNodes({flatten:!0})??[];for(let e of t)if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.tagName===`MONI-ICON`||t.tagName===`SVG`)return t.getBoundingClientRect();let n=t.querySelector(`moni-icon, svg`);if(n)return n.getBoundingClientRect()}return new DOMRect(e.left-24-12,e.top+e.height/2-12,24,24)}_findSolidBackground(e){let t=[e,...Array.from(e.querySelectorAll(`*`))];for(let e of t){let t=window.getComputedStyle(e).backgroundColor;if(!this._isColorTransparent(t))return t}if(e.shadowRoot){let t=Array.from(e.shadowRoot.querySelectorAll(`*`));for(let e of t){let t=window.getComputedStyle(e).backgroundColor;if(!this._isColorTransparent(t))return t}}return null}_getTargetState(e){let t=this._resolveVisualTarget(e),n=t.getBoundingClientRect(),r=window.getComputedStyle(t).backgroundColor;if(this._isColorTransparent(r)){let e=window.getComputedStyle(t,`::before`).backgroundColor;if(!this._isColorTransparent(e))r=e;else{let e=window.getComputedStyle(t,`::after`).backgroundColor;if(!this._isColorTransparent(e))r=e;else{let e=this._findSolidBackground(t);e&&(r=e)}}}this._isColorTransparent(r)&&this._panel&&(r=window.getComputedStyle(this._panel).backgroundColor);let i=window.getComputedStyle(t);return{rect:n,backgroundColor:r,color:i.color||`var(--on-surface)`,borderRadius:i.borderRadius||`1.25rem`,boxShadow:i.boxShadow||`none`}}_resolveVisualTarget(e){if(e.tagName===`MONI-BUTTON`)return e.shadowRoot?.querySelector(`.button`)??e;if(e.tagName===`MONI-FAB`)return e.shadowRoot?.querySelector(`button`)??e;if(e.tagName===`MONI-FAB-MENU`){let t=e.shadowRoot?.querySelector(`.trigger`);return t?.shadowRoot?.querySelector(`button`)??t??e}return e}_createTargetSnapshot(e,t){this._targetSnapshot?.remove();let n=document.createElement(`div`);n.className=`morph-target-snapshot`,n.setAttribute(`aria-hidden`,`true`);let r=this._cloneComposedNode(e);return r&&(n.appendChild(r),r instanceof HTMLElement&&![`IMG`,`VIDEO`,`CANVAS`,`SVG`,`PICTURE`].includes(e.tagName)&&(Object.assign(r.style,{background:`transparent`,backgroundColor:`transparent`,boxShadow:`none`,borderColor:`transparent`,outline:`none`,position:`relative`,inset:`auto`,transform:`none`,opacity:`1`,visibility:`visible`,width:`100%`,height:`100%`}),e.tagName===`BUTTON`&&(r.style.whiteSpace=`nowrap`,r.querySelectorAll(`span, [part~="label"]`).forEach(e=>{e.style.whiteSpace=`nowrap`})))),Object.assign(n.style,{width:`${t.width}px`,height:`${t.height}px`,overflow:`hidden`,pointerEvents:`none`}),this._targetSnapshot=n,n}_cloneComposedNode(e){if(e.nodeType===Node.TEXT_NODE)return e.cloneNode(!1);if(!(e instanceof Element))return null;if(e instanceof HTMLSlotElement){let t=document.createDocumentFragment(),n=e.assignedNodes({flatten:!0});for(let r of n.length?n:Array.from(e.childNodes)){let e=this._cloneComposedNode(r);e&&t.appendChild(e)}return t}let t=e.shadowRoot?document.createElement(`div`):e.cloneNode(!1);e instanceof HTMLImageElement&&t instanceof HTMLImageElement&&(t.loading=`eager`,t.decoding=`sync`,e.currentSrc&&(t.src=e.currentSrc)),t.removeAttribute(`id`),t.removeAttribute(`name`),t.setAttribute(`aria-hidden`,`true`);let n=window.getComputedStyle(e);for(let e=0;e<n.length;e+=1){let r=n.item(e);t.style.setProperty(r,n.getPropertyValue(r),n.getPropertyPriority(r))}let r=e.shadowRoot?Array.from(e.shadowRoot.childNodes).filter(e=>!(e instanceof HTMLStyleElement)):Array.from(e.childNodes);for(let e of r){let n=this._cloneComposedNode(e);n&&t.appendChild(n)}return t}_isColorTransparent(e){if(!e)return!0;let t=e.replace(/\s/g,``).toLowerCase();return t===`rgba(0,0,0,0)`||t===`transparent`||t===``||t.includes(`,0)`)||t.includes(`/0)`)}_readTransformState(e){let t=window.getComputedStyle(e).transform;if(!t||t===`none`)return{rotation:0,skewX:0,scaleX:1,scaleY:1};try{let e=t.match(/matrix(?:3d)?\(([^)]+)\)/)?.[1].split(`,`).map(e=>Number.parseFloat(e.trim())),n,r,i,a;if(e?.length===6)[n,r,i,a]=e;else if(e?.length===16)n=e[0],r=e[1],i=e[4],a=e[5];else{let e=new DOMMatrix(t);({a:n,b:r,c:i,d:a}=e)}let o=Math.hypot(n,r)||1,s=(n*a-r*i)/o||1;return{rotation:180/Math.PI*Math.atan2(r,n),skewX:Math.atan2(n*i+r*a,o*o)*(180/Math.PI),scaleX:o,scaleY:s}}catch{return{rotation:0,skewX:0,scaleX:1,scaleY:1}}}_applyRect(e,t){e.style.top=`${t.top}px`,e.style.left=`${t.left}px`,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`}_computeFinalRect(e,t){let n=window.innerWidth,r=window.innerHeight,i=this.autoSize&&t?t.width:this._parseSize(this.expandedWidth,n),a=this.autoSize&&t?t.height:this._parseSize(this.expandedHeight,r);i=Math.min(i,n-32),a=Math.min(a,r-32);let o=e.top,s=e.left;switch(this.placement){case`viewport-center`:s=n/2-i/2,o=r/2-a/2;break;case`viewport-top`:s=n/2-i/2,o=16;break;case`viewport-bottom`:s=n/2-i/2,o=r-a-16;break;case`viewport-left`:s=16,o=r/2-a/2;break;case`viewport-right`:s=n-i-16,o=r/2-a/2;break;case`viewport-top-left`:s=16,o=16;break;case`viewport-top-right`:s=n-i-16,o=16;break;case`viewport-bottom-left`:s=16,o=r-a-16;break;case`viewport-bottom-right`:s=n-i-16,o=r-a-16;break;case`center`:s=e.left+e.width/2-i/2,o=e.top+e.height/2-a/2;break;case`top`:s=e.left+e.width/2-i/2,o=this.coverTarget?e.top+e.height-a:e.top-a;break;case`top-start`:s=e.left+e.width-i,o=this.coverTarget?e.top+e.height-a:e.top-a;break;case`top-end`:s=e.left,o=this.coverTarget?e.top+e.height-a:e.top-a;break;case`bottom`:s=e.left+e.width/2-i/2,o=this.coverTarget?e.top:e.top+e.height;break;case`bottom-start`:s=e.left+e.width-i,o=this.coverTarget?e.top:e.top+e.height;break;case`bottom-end`:s=e.left,o=this.coverTarget?e.top:e.top+e.height;break;case`left`:s=this.coverTarget?e.left+e.width-i:e.left-i,o=e.top+e.height/2-a/2;break;case`left-start`:s=this.coverTarget?e.left+e.width-i:e.left-i,o=e.top+e.height-a;break;case`left-end`:s=this.coverTarget?e.left+e.width-i:e.left-i,o=e.top;break;case`right`:s=this.coverTarget?e.left:e.left+e.width,o=e.top+e.height/2-a/2;break;case`right-start`:s=this.coverTarget?e.left:e.left+e.width,o=e.top+e.height-a;break;case`right-end`:s=this.coverTarget?e.left:e.left+e.width,o=e.top}return s=Math.max(16,Math.min(s,n-i-16)),o=Math.max(16,Math.min(o,r-a-16)),new DOMRect(s,o,i,a)}_parseSize(e,t){let n=parseFloat(e);return Number.isNaN(n)?352:e.endsWith(`px`)?n:e.endsWith(`rem`)||e.endsWith(`em`)?n*16:e.endsWith(`%`)?n/100*t:e.endsWith(`vw`)?n/100*window.innerWidth:e.endsWith(`vh`)?n/100*window.innerHeight:n}static{this.styles=[G,g`
|
|
7448
|
+
`}};G([B({reflect:!0})],rn.prototype,`variant`,void 0),G([H(`.container`)],rn.prototype,`_container`,void 0),rn=G([z(`moni-loading-indicator`)],rn);function an(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function on(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var sn={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},cn={duration:.5,overwrite:!1,delay:0},ln,un,dn,fn=1e8,X=1/fn,pn=Math.PI*2,mn=pn/4,hn=0,gn=Math.sqrt,_n=Math.cos,vn=Math.sin,yn=function(e){return typeof e==`string`},bn=function(e){return typeof e==`function`},xn=function(e){return typeof e==`number`},Sn=function(e){return e===void 0},Cn=function(e){return typeof e==`object`},wn=function(e){return e!==!1},Tn=function(){return typeof window<`u`},En=function(e){return bn(e)||yn(e)},Dn=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},On=Array.isArray,kn=/random\([^)]+\)/g,An=/,\s*/g,jn=/(?:-?\.?\d|\.)+/gi,Mn=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Nn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Pn=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Fn=/[+-]=-?[.\d]+/,In=/[^,'"\[\]\s]+/gi,Ln=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Rn,zn,Bn,Vn,Hn={},Un={},Wn,Gn=function(e){return(Un=Cr(e,Hn))&&Ba},Kn=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},qn=function(e,t){return!t&&console.warn(e)},Jn=function(e,t){return e&&(Hn[e]=t)&&Un&&(Un[e]=t)||Hn},Yn=function(){return 0},Xn={suppressEvents:!0,isStart:!0,kill:!1},Zn={suppressEvents:!0,kill:!1},Qn={suppressEvents:!0},$n={},er=[],tr={},nr,rr={},ir={},ar=30,or=[],sr=``,cr=function(e){var t=e[0],n,r;if(Cn(t)||bn(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=or.length;r--&&!or[r].targetTest(t););n=or[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Xi(e[r],n)))||e.splice(r,1);return e},lr=function(e){return e._gsap||cr(oi(e))[0]._gsap},ur=function(e,t,n){return(n=e[t])&&bn(n)?e[t]():Sn(n)&&e.getAttribute&&e.getAttribute(t)||n},dr=function(e,t){return(e=e.split(`,`)).forEach(t)||e},fr=function(e){return Math.round(e*1e5)/1e5||0},pr=function(e){return Math.round(e*1e7)/1e7||0},mr=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},hr=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},gr=function(){var e=er.length,t=er.slice(0),n,r;for(tr={},er.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},_r=function(e){return!!(e._initted||e._startAt||e.add)},vr=function(e,t,n,r){er.length&&!un&&gr(),e.render(t,n,r||!!(un&&t<0&&_r(e))),er.length&&!un&&gr()},yr=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(In).length<2?t:yn(e)?e.trim():e},br=function(e){return e},xr=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Sr=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},Cr=function(e,t){for(var n in t)e[n]=t[n];return e},wr=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=Cn(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},Tr=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},Er=function(e){var t=e.parent||Rn,n=e.keyframes?Sr(On(e.keyframes)):xr;if(wn(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},Dr=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},Or=function(e,t,n,r,i){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var a=e[r],o;if(i)for(o=t[i];a&&a[i]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},kr=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Ar=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},jr=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},Mr=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Nr=function(e,t,n,r){return e._startAt&&(un?e._startAt.revert(Zn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},Pr=function e(t){return!t||t._ts&&e(t.parent)},Fr=function(e){return e._repeat?Ir(e._tTime,e=e.duration()+e._rDelay)*e:0},Ir=function(e,t){var n=Math.floor(e=pr(e/t));return e&&n===e?n-1:n},Lr=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Rr=function(e){return e._end=pr(e._start+(e._tDur/Math.abs(e._ts||e._rts||X)||0))},zr=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=pr(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Rr(e),n._dirty||jr(n,e)),e},Br=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=Lr(e.rawTime(),t),(!t._dur||ei(0,t.totalDuration(),n)-t._tTime>X)&&t.render(n,!0)),jr(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-X}},Vr=function(e,t,n,r){return t.parent&&Ar(t),t._start=pr((xn(n)?n:n||e!==Rn?Zr(e,n,t):e._time)+t._delay),t._end=pr(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Or(e,t,`_first`,`_last`,e._sort?`_start`:0),Gr(t)||(e._recent=t),r||Br(e,t),e._ts<0&&zr(e,e._tTime),e},Hr=function(e,t){return(Hn.ScrollTrigger||Kn(`scrollTrigger`,t))&&Hn.ScrollTrigger.create(t,e)},Ur=function(e,t,n,r,i){if(aa(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!un&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&nr!==Li.frame)return er.push(e),e._lazy=[i,r],1},Wr=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},Gr=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},Kr=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&Wr(e)&&!(!e._initted&&Gr(e))||(e._ts<0||e._dp._ts<0)&&!Gr(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=ei(0,e._tDur,t),l=Ir(s,o),e._yoyo&&l&1&&(a=1-a),l!==Ir(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||un||r||e._zTime===X||!t&&e._zTime){if(!e._initted&&Ur(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?X:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&Nr(e,t,n,!0),e._onUpdate&&!n&&Ci(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&Ci(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Ar(e,1),!n&&!un&&(Ci(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},qr=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start<t)return r;r=r._prev}},Jr=function(e,t,n,r){var i=e._repeat,a=pr(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:pr(a*(i+1)+e._rDelay*i):a,o>0&&!r&&zr(e,e._tTime=e._tDur*o),e.parent&&Rr(e),n||jr(e.parent,e),e},Yr=function(e){return e instanceof Qi?jr(e):Jr(e,e._dur)},Xr={_start:0,endTime:Yn,totalDuration:Yn},Zr=function e(t,n,r){var i=t.labels,a=t._recent||Xr,o=t.duration()>=fn?a.endTime(!1):t._dur,s,c,l;return yn(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(On(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},Qr=function(e,t,n){var r=xn(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=wn(s.vars.inherit)&&s.parent;a.immediateRender=wn(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new fa(t[0],a,t[i+1])},$r=function(e,t){return e||e===0?t(e):t},ei=function(e,t,n){return n<e?e:n>t?t:n},ti=function(e,t){return!yn(e)||!(t=Ln.exec(e))?``:t[1]},ni=function(e,t,n){return $r(n,function(n){return ei(e,t,n)})},ri=[].slice,ii=function(e,t){return e&&Cn(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&Cn(e[0]))&&!e.nodeType&&e!==zn},ai=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return yn(e)&&!t||ii(e,1)?(r=n).push.apply(r,oi(e)):n.push(e)})||n},oi=function(e,t,n){return dn&&!t&&dn.selector?dn.selector(e):yn(e)&&!n&&(Bn||!Ri())?ri.call((t||Vn).querySelectorAll(e),0):On(e)?ai(e,n):ii(e)?ri.call(e,0):e?[e]:[]},si=function(e){return e=oi(e)[0]||qn(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return oi(t,n.querySelectorAll?n:n===e?qn(`Invalid scope`)||Vn.createElement(`div`):e)}},ci=function(e){return e.sort(function(){return .5-Math.random()})},li=function(e){if(bn(e))return e;var t=Cn(e)?e:{each:e},n=Gi(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return yn(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,x,S;if(!p){if(S=t.grid===`auto`?0:(t.grid||[1,fn])[1],!S){for(b=-fn;b<(b=d[S++].getBoundingClientRect().left)&&S<f;);S<f&&S--}for(p=a[f]=[],m=s?Math.min(S,f)*l-.5:r%S,h=S===fn?0:s?f*u/S-.5:r/S|0,b=0,x=fn,y=0;y<f;y++)g=y%S-m,_=h-(y/S|0),p[y]=v=c?Math.abs(c===`y`?_:g):gn(g*g+_*_),v>b&&(b=v),v<x&&(x=v);r===`random`&&ci(p),p.max=b-x,p.min=x,p.v=f=(parseFloat(t.amount)||parseFloat(t.each)*(S>f?f-1:c?c===`y`?f/S:S:Math.max(S,f/S))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=ti(t.amount||t.each)||0,n=n&&f<0?Wi(n):n}return f=(p[e]-p.min)/p.max||0,pr(p.b+(n?n(f):f)*p.v)+p.u}},ui=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=pr(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(xn(n)?0:ti(n))}},di=function(e,t){var n=On(e),r,i;return!n&&Cn(e)&&(r=n=e.radius||fn,e.values?(e=oi(e.values),(i=!xn(e[0]))&&(r*=r)):e=ui(e.increment)),$r(t,n?bn(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=fn,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),l<o&&(o=l,s=c);return s=!r||o<=r?e[s]:t,i||s===t||xn(t)?s:s+ti(t)}:ui(e))},fi=function(e,t,n,r){return $r(On(e)?!t:n===!0?!!(n=0):!r,function(){return On(e)?e[~~(Math.random()*e.length)]:(n||=1e-5)&&(r=n<1?10**((n+``).length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+n*.99))/n)*n*r)/r})},pi=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(e,t){return t(e)},e)}},mi=function(e,t){return function(n){return e(parseFloat(n))+(t||ti(n))}},hi=function(e,t,n){return bi(e,t,0,1,n)},gi=function(e,t,n){return $r(n,function(n){return e[~~t(n)]})},_i=function e(t,n,r){var i=n-t;return On(t)?gi(t,e(0,t.length),n):$r(r,function(e){return(i+(e-t)%i)%i+t})},vi=function e(t,n,r){var i=n-t,a=i*2;return On(t)?gi(t,e(0,t.length-1),n):$r(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},yi=function(e){return e.replace(kn,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(An);return fi(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},bi=function(e,t,n,r,i){var a=t-e,o=r-n;return $r(i,function(t){return n+((t-e)/a*o||0)})},xi=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=yn(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(On(t)&&!On(n)){for(u=[],d=t.length,f=d-2,l=1;l<d;l++)u.push(e(t[l-1],t[l]));d--,a=function(e){e*=d;var t=Math.min(f,~~e);return u[t](e-t)},r=n}else i||(t=Cr(On(t)?[]:{},t));if(!u){for(c in n)ea.call(s,t,c,`get`,n[c]);a=function(e){return xa(e,s)||(o?t.p:t)}}}return $r(r,a)},Si=function(e,t,n){var r=e.labels,i=fn,a,o,s;for(a in r)o=r[a]-t,o<0==!!n&&o&&i>(o=Math.abs(o))&&(s=a,i=o);return s},Ci=function(e,t,n){var r=e.vars,i=r[t],a=dn,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&er.length&&gr(),o&&(dn=o),l=s?i.apply(c,s):i.call(c),dn=a,l},wi=function(e){return Ar(e),e.scrollTrigger&&e.scrollTrigger.kill(!!un),e.progress()<1&&Ci(e,`onInterrupt`),e},Ti,Ei=[],Di=function(e){if(e){if(e=!e.name&&e.default||e,Tn()||e.headless){var t=e.name,n=bn(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:Yn,render:xa,add:ea,kill:Ca,modifier:Sa,rawVars:0},a={targetTest:0,get:0,getSetter:_a,aliases:{},register:0};if(Ri(),e!==r){if(rr[t])return;xr(r,xr(Tr(e,i),a)),Cr(r.prototype,Cr(i,Tr(e,a))),rr[r.prop=t]=r,e.targetTest&&(or.push(r),$n[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}Jn(t,r),e.register&&e.register(Ba,r,Ea)}else Ei.push(e)}},Z=255,Oi={aqua:[0,Z,Z],lime:[0,Z,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Z],navy:[0,0,128],white:[Z,Z,Z],olive:[128,128,0],yellow:[Z,Z,0],orange:[Z,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Z,0,0],pink:[Z,192,203],cyan:[0,Z,Z],transparent:[Z,Z,Z,0]},ki=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*Z+.5|0},Ai=function(e,t,n){var r=e?xn(e)?[e>>16,e>>8&Z,e&Z]:0:Oi.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),Oi[e])r=Oi[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&Z,r&Z,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&Z,e&Z]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(jn),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=ki(s+1/3,i,a),r[1]=ki(s,i,a),r[2]=ki(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(Mn),n&&r.length<4&&(r[3]=1),r}else r=e.match(jn)||Oi.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/Z,a=r[1]/Z,o=r[2]/Z,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(a<o?6:0):u===a?(o-i)/f+2:(i-a)/f+4,s*=60),r[0]=~~(s+.5),r[1]=~~(c*100+.5),r[2]=~~(l*100+.5)),n&&r.length<4&&(r[3]=1),r},ji=function(e){var t=[],n=[],r=-1;return e.split(Ni).forEach(function(e){var i=e.match(Nn)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},Mi=function(e,t,n){var r=``,i=(e+r).match(Ni),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=Ai(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=ji(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(Ni,`1`).split(Nn),u=c.length-1;o<u;o++)r+=c[o]+(~s.indexOf(o)?i.shift()||a+`0,0,0,0)`:(l.length?l:i.length?i:n).shift());if(!c)for(c=e.split(Ni),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},Ni=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in Oi)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),Pi=/hsl[a]?\(/,Fi=function(e){var t=e.join(` `),n;if(Ni.lastIndex=0,Ni.test(t))return n=Pi.test(t),e[1]=Mi(e[1],n),e[0]=Mi(e[0],n,ji(e[1])),!0},Ii,Li=function(){var e=Date.now,t=500,n=33,r=e(),i=r,a=1e3/240,o=a,s=[],c,l,u,d,f,p,m=function u(m){var h=e()-i,g=m===!0,_,v,y,b;if((h>t||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p<s.length;p++)s[p](y,f,b,m)};return d={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(e){return f/(1e3/(e||60))},wake:function(){Wn&&(!Bn&&Tn()&&(zn=Bn=window,Vn=zn.document||{},Hn.gsap=Ba,(zn.gsapVersions||(zn.gsapVersions=[])).push(Ba.version),Gn(Un||zn.GreenSockGlobals||!zn.gsap&&zn||{}),Ei.forEach(Di)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},Ii=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),Ii=0,l=Yn},lagSmoothing:function(e,r){t=e||1/0,n=Math.min(r||33,t)},fps:function(e){a=1e3/(e||240),o=d.time*1e3+a},add:function(e,t,n){var r=t?function(t,n,i,a){e(t,n,i,a),d.remove(r)}:e;return d.remove(e),s[n?`unshift`:`push`](r),Ri(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),Ri=function(){return!Ii&&Li.wake()},Q={},zi=/^[\d.\-M][\d.\-,\s]/,Bi=/["']/g,Vi=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i<a;i++)s=n[i],o=i===a-1?s.length:s.lastIndexOf(`,`),c=s.substr(0,o),t[r]=isNaN(c)?c.replace(Bi,``).trim():+c,r=s.substr(o+1).trim();return t},Hi=function(e){var t=e.indexOf(`(`)+1,n=e.indexOf(`)`),r=e.indexOf(`(`,t);return e.substring(t,~r&&r<n?e.indexOf(`)`,n+1):n)},Ui=function(e){var t=(e+``).split(`(`),n=Q[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[Vi(t[1])]:Hi(e).split(`,`).map(yr)):Q._CE&&zi.test(e)?Q._CE(``,e):n},Wi=function(e){return function(t){return 1-e(1-t)}},Gi=function(e,t){return e&&(bn(e)?e:Q[e]||Ui(e))||t},Ki=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return dr(e,function(e){for(var t in Q[e]=Hn[e]=i,Q[a=e.toLowerCase()]=n,i)Q[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=Q[e+`.`+t]=i[t]}),i},qi=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Ji=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/pn*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*vn((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:qi(s);return a=pn/a,c.config=function(n,r){return e(t,n,r)},c},Yi=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:qi(r);return i.config=function(n){return e(t,n)},i};dr(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;Ki(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),Q.Linear.easeNone=Q.none=Q.Linear.easeIn,Ki(`Elastic`,Ji(`in`),Ji(`out`),Ji()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a<n?e*a*a:a<r?e*(a-1.5/t)**2+.75:a<i?e*(a-=2.25/t)*a+.9375:e*(a-2.625/t)**2+.984375};Ki(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),Ki(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),Ki(`Circ`,function(e){return-(gn(1-e*e)-1)}),Ki(`Sine`,function(e){return e===1?1:-_n(e*mn)+1}),Ki(`Back`,Yi(`in`),Yi(`out`),Yi()),Q.SteppedEase=Q.steps=Hn.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-X;return function(e){return((r*ei(0,a,e)|0)+i)*n}}},cn.ease=Q[`quad.out`],dr(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return sr+=e+`,`+e+`Params,`});var Xi=function(e,t){this.id=hn++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:ur,this.set=t?t.getSetter:_a},Zi=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,Jr(this,+e.duration,1,1),this.data=e.data,dn&&(this._ctx=dn,dn.data.push(this)),Ii||Li.wake()}var t=e.prototype;return t.delay=function(e){return e||e===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,Jr(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(Ri(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(zr(this,e),!n._dp||n.parent||Br(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&Vr(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===X||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),vr(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Fr(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+Fr(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?Ir(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-X?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?Lr(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-X?0:this._rts,this.totalTime(ei(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),Rr(this),Mr(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ri(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==X&&(this._tTime-=X)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=pr(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Vr(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(wn(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Lr(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=Qn);var t=un;return un=e,_r(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),un=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,Yr(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,Yr(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(Zr(this,e),wn(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,wn(t)),this._dur||(this._zTime=-X),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-X:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-X,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n<this.endTime(!0)-X)},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=bn(e)?e:br,a=function(){var e=t.then;t.then=null,n&&n(),bn(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){wi(this)},e}();xr(Zi.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-X,_prom:0,_ps:!1,_rts:1});var Qi=function(e){on(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=wn(t.sortChildren),Rn&&Vr(t.parent||Rn,an(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&Hr(an(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return Qr(0,arguments,this),this},n.from=function(e,t,n){return Qr(1,arguments,this),this},n.fromTo=function(e,t,n,r){return Qr(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Er(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new fa(e,t,Zr(this,n),1),this},n.call=function(e,t,n){return Vr(this,fa.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new fa(e,n,Zr(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Er(n).immediateRender=wn(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Er(r).immediateRender=wn(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:pr(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==Rn&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=pr(o%f),o===i?(d=this._repeat,c=a):(_=pr(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=Ir(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,y=1),d!==_&&!this._lock){var b=v&&_&1,x=b===(v&&d&1);if(d<_&&(b=!b),r=b?0:o%a?a:o,this._lock=1,this.render(r||(y?0:pr(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&Ci(this,`onRepeat`),this.vars.repeatRefresh&&!y&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,x&&(this._lock=2,r=b?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!y&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=qr(this,pr(r),pr(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(Ci(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-X);break}}l=u}else{l=this._last;for(var S=e<0?e:c;l;){if(u=l._prev,(l._act||S<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(S-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(S-l._start)*l._ts,t,n||un&&_r(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-X:X);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-X)._zTime=c>=r?1:-1,this._ts))return this._start=g,Rr(this),this.render(e,t,n);this._onUpdate&&!t&&Ci(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&Ar(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(Ci(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o<i&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(xn(t)||(t=Zr(this,t,e)),!(e instanceof Zi)){if(On(e))return e.forEach(function(e){return n.add(e,t)}),this;if(yn(e))return this.addLabel(e,t);if(bn(e))e=fa.delayedCall(0,e);else return this}return this===e?this:Vr(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-fn);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof fa?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return yn(e)?this.removeLabel(e):bn(e)?this.killTweensOf(e):(e.parent===this&&kr(this,e),e===this._recent&&(this._recent=this._last),jr(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=pr(Li.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=Zr(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=fa.delayedCall(0,t||Yn,n);return r.data=`isPause`,this._hasPause=1,Vr(this,r,Zr(this,e))},n.removePause=function(e){var t=this._first;for(e=Zr(this,e);t;)t._start===e&&t.data===`isPause`&&Ar(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)ra!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=oi(e),i=this._first,a=xn(t),o;i;)i instanceof fa?hr(i._targets,r)&&(a?(!ra||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=Zr(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=fa.to(n,xr({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||X,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&Jr(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,xr({startAt:{time:Zr(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Si(this,Zr(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Si(this,Zr(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+X)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=pr(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return jr(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),jr(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=fn,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,Vr(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=pr(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;Jr(n,n===Rn&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(Rn._ts&&(vr(Rn,Lr(e,Rn)),nr=Li.frame),Li.frame>=ar){ar+=sn.autoSleep||120;var t=Rn._first;if((!t||!t._ts)&&sn.autoSleep&&Li._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||Li.sleep()}}},t}(Zi);xr(Qi.prototype,{_lock:0,_hasPause:0,_forcing:0});var $i=function(e,t,n,r,i,a,o){var s=new Ea(this._pt,e,t,0,1,ba,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=yi(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(Pn)||[];u=Pn.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?mr(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=Pn.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(Fn.test(r)||g)&&(s.e=0),this._pt=s,s},ea=function(e,t,n,r,i,a,o,s,c,l){bn(r)&&(r=r(i||0,e,a));var u=e[t],d=n===`get`?bn(u)?c?e[t.indexOf(`set`)||!bn(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](c):e[t]():u:n,f=bn(u)?c?ha:ma:pa,p;if(yn(r)&&(~r.indexOf(`random(`)&&(r=yi(r)),r.charAt(1)===`=`&&(p=mr(d,r)+(ti(d)||0),(p||p===0)&&(r=p))),!l||d!==r||ia)return!isNaN(d*r)&&r!==``?(p=new Ea(this._pt,e,t,+d||0,r-(d||0),typeof u==`boolean`?ya:va,0,f),c&&(p.fp=c),o&&p.modifier(o,this,e),this._pt=p):(!u&&!(t in e)&&Kn(t,r),$i.call(this,e,t,d,r,f,s||sn.stringFilter,c))},ta=function(e,t,n,r,i){if(bn(e)&&(e=la(e,i,t,n,r)),!Cn(e)||e.style&&e.nodeType||On(e)||Dn(e))return yn(e)?la(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=la(e[o],i,t,n,r);return a},na=function(e,t,n,r,i,a){var o,s,c,l;if(rr[e]&&(o=new rr[e]).init(i,o.rawVars?t[e]:ta(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new Ea(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==Ti))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},ra,ia,aa=function e(t,n,r){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,c=i.lazy,l=i.onUpdate,u=i.runBackwards,d=i.yoyoEase,f=i.keyframes,p=i.autoRevert,m=t._dur,h=t._startAt,g=t._targets,_=t.parent,v=_&&_.data===`nested`?_.vars.targets:g,y=t._overwrite===`auto`&&!ln,b=t.timeline,x=i.easeReverse||d,S,C,w,T,E,D,O,k,A,j,M,ee,te;if(b&&(!f||!a)&&(a=`none`),t._ease=Gi(a,cn.ease),t._rEase=x&&(Gi(x)||t._ease),t._from=!b&&!!i.runBackwards,t._from&&(t.ratio=1),!b||f&&!i.stagger){if(k=g[0]?lr(g[0]).harness:0,ee=k&&i[k.prop],S=Tr(i,$n),h&&(h._zTime<0&&h.progress(1),n<0&&u&&s&&!p?h.render(-1,!0):h.revert(u&&m?Zn:Xn),h._lazy=0),o){if(Ar(t._startAt=fa.set(g,xr({data:`isStart`,overwrite:!1,parent:_,immediateRender:!0,lazy:!h&&wn(c),startAt:null,delay:0,onUpdate:l&&function(){return Ci(t,`onUpdate`)},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(un||!s&&!p)&&t._startAt.revert(Zn),s&&m&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(u&&m&&!h){if(n&&(s=!1),w=xr({overwrite:!1,data:`isFromStart`,lazy:s&&!h&&wn(c),immediateRender:s,stagger:0,parent:_},S),ee&&(w[k.prop]=ee),Ar(t._startAt=fa.set(g,w)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(un?t._startAt.revert(Zn):t._startAt.render(-1,!0)),t._zTime=n,!s)e(t._startAt,X,X);else if(!n)return}for(t._pt=t._ptCache=0,c=m&&wn(c)||c&&!m,C=0;C<g.length;C++){if(E=g[C],O=E._gsap||cr(g)[C]._gsap,t._ptLookup[C]=j={},tr[O.id]&&er.length&&gr(),M=v===g?C:v.indexOf(E),k&&(A=new k).init(E,ee||S,t,M,v)!==!1&&(t._pt=T=new Ea(t._pt,E,A.name,0,1,A.render,A,0,A.priority),A._props.forEach(function(e){j[e]=T}),A.priority&&(D=1)),!k||ee)for(w in S)rr[w]&&(A=na(w,S,t,M,E,v))?A.priority&&(D=1):j[w]=T=ea.call(t,E,w,`get`,S[w],M,v,0,i.stringFilter);t._op&&t._op[C]&&t.kill(E,t._op[C]),y&&t._pt&&(ra=t,Rn.killTweensOf(E,j,t.globalTime(n)),te=!t.parent,ra=0),t._pt&&c&&(tr[O.id]=1)}D&&Ta(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!te,f&&n<=0&&b.render(fn,!0,!0)},oa=function(e,t,n,r,i,a,o,s){var c=(e._pt&&e._ptCache||(e._ptCache={}))[t],l,u,d,f;if(!c)for(c=e._ptCache[t]=[],d=e._ptLookup,f=e._targets.length;f--;){if(l=d[f][t],l&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return ia=1,e.vars[t]=`+=0`,aa(e,o),ia=0,s?qn(t+` not eligible for reset. Try splitting into individual properties`):1;c.push(l)}for(f=c.length;f--;)u=c[f],l=u._pt||u,l.s=(r||r===0)&&!i?r:l.s+(r||0)+a*l.c,l.c=n-l.s,u.e&&(u.e=fr(n)+ti(u.e)),u.b&&(u.b=l.s+ti(u.b))},sa=function(e,t){var n=e[0]?lr(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=Cr({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},ca=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(On(t))o=n[e]||(n[e]=[]),t.forEach(function(e,n){return o.push({t:n/(t.length-1)*100,v:e,e:i})});else for(a in t)o=n[a]||(n[a]=[]),a===`ease`||o.push({t:parseFloat(e),v:t[a],e:i})},la=function(e,t,n,r,i){return bn(e)?e.call(t,n,r,i):yn(e)&&~e.indexOf(`random(`)?yi(e):e},ua=sr+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,da={};dr(ua+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return da[e]=1});var fa=function(e){on(t,e);function t(t,n,r,i){var a;typeof n==`number`&&(r.duration=n,n=r,r=null),a=e.call(this,i?n:Er(n))||this;var o=a.vars,s=o.duration,c=o.delay,l=o.immediateRender,u=o.stagger,d=o.overwrite,f=o.keyframes,p=o.defaults,m=o.scrollTrigger,h=n.parent||Rn,g=(On(t)||Dn(t)?xn(t[0]):`length`in n)?[t]:oi(t),_,v,y,b,x,S,C,w;if(a._targets=g.length?cr(g):qn(`GSAP target `+t+` not found. https://gsap.com`,!sn.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,f||u||En(s)||En(c)){n=a.vars;var T=n.easeReverse||n.yoyoEase;if(_=a.timeline=new Qi({data:`nested`,defaults:p||{},targets:h&&h.data===`nested`?h.vars.targets:g}),_.kill(),_.parent=_._dp=an(a),_._start=0,u||En(s)||En(c)){if(b=g.length,C=u&&li(u),Cn(u))for(x in u)~ua.indexOf(x)&&(w||={},w[x]=u[x]);for(v=0;v<b;v++)y=Tr(n,da),y.stagger=0,T&&(y.easeReverse=T),w&&Cr(y,w),S=g[v],y.duration=+la(s,an(a),v,S,g),y.delay=(+la(c,an(a),v,S,g)||0)-a._delay,!u&&b===1&&y.delay&&(a._delay=c=y.delay,a._start+=c,y.delay=0),_.to(S,y,C?C(v,S,g):0),_._ease=Q.none;_.duration()?s=c=0:a.timeline=0}else if(f){Er(xr(_.vars.defaults,{ease:`none`})),_._ease=Gi(f.ease||n.ease||`none`);var E=0,D,O,k;if(On(f))f.forEach(function(e){return _.to(g,e,`>`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||ca(x,f[x],y,f.easeEach);for(x in y)for(D=y[x].sort(function(e,t){return e.t-t.t}),E=0,v=0;v<D.length;v++)O=D[v],k={ease:O.e,duration:(O.t-(v?D[v-1].t:0))/100*s},k[x]=O.v,_.to(g,k,E),E+=k.duration;_.duration()<s&&_.to({},{duration:s-_.duration()})}}s||a.duration(s=_.duration())}else a.timeline=0;return d===!0&&!ln&&(ra=an(a),Rn.killTweensOf(g),ra=0),Vr(h,an(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(l||!s&&!f&&a._start===pr(h._time)&&wn(l)&&Pr(an(a))&&h.data!==`nested`)&&(a._tTime=-X,a.render(Math.max(0,-c)||0)),m&&Hr(an(a),m),a}var n=t.prototype;return n.render=function(e,t,n){var r=this._time,i=this._tDur,a=this._dur,o=e<0,s=e>i-X&&!o?i:e<X?0:e,c,l,u,d,f,p,m,h;if(!a)Kr(this,e,t,n);else if(s!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==o||this._lazy){if(c=s,h=this.timeline,this._repeat){if(d=a+this._rDelay,this._repeat<-1&&o)return this.totalTime(d*100+e,t,n);if(c=pr(s%d),s===i?(u=this._repeat,c=a):(f=pr(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=Ir(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(pr(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(Ur(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c<r;if(g!==this._inv){var _=g?r:a-r;this._inv=g,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=r,this._invRecip=_?(g?-1:1)/_:0,this._invScale=g?-this.ratio:1-this.ratio,this._invEase=g?this._rEase:this._ease}this.ratio=m=this._invRatio+this._invScale*this._invEase((c-this._invTime)*this._invRecip)}else this.ratio=m=this._ease(c/a);if(this._from&&(this.ratio=m=1-m),this._tTime=s,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),!r&&s&&!t&&!f&&(Ci(this,`onStart`),this._tTime!==s))return this;for(l=this._pt;l;)l.r(m,l.d),l=l._next;h&&h.render(e<0?e:h._dur*h._ease(c/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(o&&Nr(this,e,t,n),Ci(this,`onUpdate`)),this._repeat&&u!==f&&this.vars.onRepeat&&!t&&this.parent&&Ci(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&Nr(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&Ar(this,1),!t&&!(o&&!r)&&(s||r||p)&&(Ci(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s<i&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){Ii||Li.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||aa(this,a),o=this._ease(a/this._dur),oa(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(zr(this,0),this.parent||Or(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?wi(this):this.scrollTrigger&&this.scrollTrigger.kill(!!un),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,ra&&ra.vars.overwrite!==!0)._first||wi(this),this.parent&&n!==this.timeline.totalDuration()&&Jr(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?oi(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&Dr(r,i))return t===`all`&&(this._pt=0),wi(this);for(s=this._op=this._op||[],t!==`all`&&(yn(t)&&(d={},dr(t,function(e){return d[e]=1}),t=d),t=sa(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&kr(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&wi(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return Qr(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return Qr(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return Rn.killTweensOf(e,t,n)},t}(Zi);xr(fa.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),dr(`staggerTo,staggerFrom,staggerFromTo`,function(e){fa[e]=function(){var t=new Qi,n=ri.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var pa=function(e,t,n){return e[t]=n},ma=function(e,t,n){return e[t](n)},ha=function(e,t,n,r){return e[t](r.fp,n)},ga=function(e,t,n){return e.setAttribute(t,n)},_a=function(e,t){return bn(e[t])?ma:Sn(e[t])&&e.setAttribute?ga:pa},va=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},ya=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},ba=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},xa=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Sa=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},Ca=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?kr(this,t,`_pt`):t.dep||(n=1),t=r;return!n},wa=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Ta=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},Ea=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||va,this.d=o||this,this.set=s||pa,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=wa,this.m=e,this.mt=n,this.tween=t},e}();dr(sr+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return $n[e]=1}),Hn.TweenMax=Hn.TweenLite=fa,Hn.TimelineLite=Hn.TimelineMax=Qi,Rn=new Qi({sortChildren:!1,defaults:cn,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),sn.stringFilter=Fi;var Da=[],Oa={},ka=[],Aa=0,ja=0,Ma=function(e){return(Oa[e]||ka).map(function(e){return e()})},Na=function(){var e=Date.now(),t=[];e-Aa>2&&(Ma(`matchMediaInit`),Da.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=zn.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),Ma(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),Aa=e,Ma(`matchMedia`))},Pa=function(){function e(e,t){this.selector=t&&si(t),this.data=[],this._r=[],this.isReverted=!1,this.id=ja++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){bn(e)&&(n=t,t=e,e=bn);var r=this,i=function(){var e=dn,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=si(n)),dn=r,a=t.apply(r,arguments),bn(a)&&r._r.push(a),dn=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===bn?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=dn;dn=null,e(this),dn=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof fa&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof Qi?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof fa)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=Da.length;r--;)Da[r].id===this.id&&Da.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),Fa=function(){function e(e){this.contexts=[],this.scope=e,dn&&dn.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){Cn(e)||(e={matches:e});var r=new Pa(0,n||this.scope),i=r.conditions={},a,o,s;for(o in dn&&!r.selector&&(r.selector=dn.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=zn.matchMedia(e[o]),a&&(Da.indexOf(r)<0&&Da.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(Na):a.addEventListener(`change`,Na)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),Ia={registerPlugin:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(e){return Di(e)})},timeline:function(e){return new Qi(e)},getTweensOf:function(e,t){return Rn.getTweensOf(e,t)},getProperty:function(e,t,n,r){yn(e)&&(e=oi(e)[0]);var i=lr(e||{}).get,a=n?br:yr;return n===`native`&&(n=``),e&&(t?a((rr[t]&&rr[t].get||i)(e,t,n,r)):function(t,n,r){return a((rr[t]&&rr[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=oi(e),e.length>1){var r=e.map(function(e){return Ba.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=rr[t],o=lr(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Ti._pt=0,r.init(e,n?t+n:t,Ti,0,[e]),r.render(1,r),Ti._pt&&xa(1,Ti)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=Ba.to(e,xr((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return Rn.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Gi(e.ease,cn.ease)),wr(cn,e||{})},config:function(e){return wr(sn,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!rr[e]&&!Hn[e]&&qn(t+` effect requires `+e+` plugin.`)}),ir[t]=function(e,t,r){return n(oi(e),xr(t||{},i),r)},a&&(Qi.prototype[t]=function(e,n,r){return this.add(ir[t](e,Cn(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){Q[e]=Gi(t)},parseEase:function(e,t){return arguments.length?Gi(e,t):Q},getById:function(e){return Rn.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new Qi(e),r,i;for(n.smoothChildTiming=wn(e.smoothChildTiming),Rn.remove(n),n._dp=0,n._time=n._tTime=Rn._time,r=Rn._first;r;)i=r._next,(t||!(!r._dur&&r instanceof fa&&r.vars.onComplete===r._targets[0]))&&Vr(n,r,r._start-r._delay),r=i;return Vr(Rn,n,0),n},context:function(e,t){return e?new Pa(e,t):dn},matchMedia:function(e){return new Fa(e)},matchMediaRefresh:function(){return Da.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||Na()},addEventListener:function(e,t){var n=Oa[e]||(Oa[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Oa[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:_i,wrapYoyo:vi,distribute:li,random:fi,snap:di,normalize:hi,getUnit:ti,clamp:ni,splitColor:Ai,toArray:oi,selector:si,mapRange:bi,pipe:pi,unitize:mi,interpolate:xi,shuffle:ci},install:Gn,effects:ir,ticker:Li,updateRoot:Qi.updateRoot,plugins:rr,globalTimeline:Rn,core:{PropTween:Ea,globals:Jn,Tween:fa,Timeline:Qi,Animation:Zi,getCache:lr,_removeLinkedListItem:kr,reverting:function(){return un},context:function(e){return e&&dn&&(dn.data.push(e),e._ctx=dn),dn},suppressOverwrites:function(e){return ln=e}}};dr(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return Ia[e]=fa[e]}),Li.add(Qi.updateRoot),Ti=Ia.to({},{duration:0});var La=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},Ra=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=La(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},za=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(yn(n)&&(r={},dr(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}Ra(e,n)}}}},Ba=Ia.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)un?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},za(`roundProps`,ui),za(`modifiers`),za(`snap`,di))||Ia;fa.version=Qi.version=Ba.version=`3.15.0`,Wn=1,Tn()&&Ri(),Q.Power0,Q.Power1,Q.Power2,Q.Power3,Q.Power4,Q.Linear,Q.Quad,Q.Cubic,Q.Quart,Q.Quint,Q.Strong,Q.Elastic,Q.Back,Q.SteppedEase,Q.Bounce,Q.Sine,Q.Expo,Q.Circ;var Va,Ha,Ua,Wa,Ga,Ka,qa,Ja=function(){return typeof window<`u`},Ya={},Xa=180/Math.PI,Za=Math.PI/180,Qa=Math.atan2,$a=1e8,eo=/([A-Z])/g,to=/(left|right|width|margin|padding|x)/i,no=/[\s,\(]\S/,ro={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},io=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ao=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},oo=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},so=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},co=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},lo=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},uo=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},fo=function(e,t,n){return e.style[t]=n},po=function(e,t,n){return e.style.setProperty(t,n)},mo=function(e,t,n){return e._gsap[t]=n},ho=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},go=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},_o=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},vo=`transform`,yo=vo+`Origin`,bo=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in Ya&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=ro[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=zo(i,e)}):this.tfm[t]=o.x?o[t]:zo(i,t),t===yo&&(this.tfm.zOrigin=o.zOrigin);else return ro.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(vo)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(yo,n,``)),t=vo}(a||n)&&this.props.push(t,n,a[t])},xo=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},So=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i<e.length;i+=3)e[i+1]?e[i+1]===2?t[e[i]](e[i+2]):t[e[i]]=e[i+2]:e[i+2]?n[e[i]]=e[i+2]:n.removeProperty(e[i].substr(0,2)===`--`?e[i]:e[i].replace(eo,`-$1`).toLowerCase());if(this.tfm){for(a in this.tfm)r[a]=this.tfm[a];r.svg&&(r.renderTransform(),t.setAttribute(`data-svg-origin`,this.svgo||``)),i=qa(),(!i||!i.isStart)&&!n[vo]&&(xo(n),r.zOrigin&&n[yo]&&(n[yo]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},Co=function(e,t){var n={target:e,props:[],revert:So,save:bo};return e._gsap||Ba.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},wo,To=function(e,t){var n=Ha.createElementNS?Ha.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):Ha.createElement(e);return n&&n.style?n:Ha.createElement(e)},Eo=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(eo,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,Oo(n)||n,1)||``},Do=`O,Moz,ms,Ms,Webkit`.split(`,`),Oo=function(e,t,n){var r=(t||Ga).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(Do[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?Do[i]:``)+e},ko=function(){Ja()&&window.document&&(Va=window,Ha=Va.document,Ua=Ha.documentElement,Ga=To(`div`)||{style:{}},To(`div`),vo=Oo(vo),yo=vo+`Origin`,Ga.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,wo=!!Oo(`perspective`),qa=Ba.core.reverting,Wa=1)},Ao=function(e){var t=e.ownerSVGElement,n=To(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),Ua.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),Ua.removeChild(n),i},jo=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Mo=function(e){var t,n;try{t=e.getBBox()}catch{t=Ao(e),n=1}return t&&(t.width||t.height)||n||(t=Ao(e)),t&&!t.width&&!t.x&&!t.y?{x:+jo(e,[`x`,`cx`,`x1`])||0,y:+jo(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},No=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Mo(e))},Po=function(e,t){if(t){var n=e.style,r;t in Ya&&t!==yo&&(t=vo),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(eo,`-$1`).toLowerCase())):n.removeAttribute(t)}},Fo=function(e,t,n,r,i,a){var o=new Ea(e._pt,t,n,0,1,a?uo:lo);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},Io={deg:1,rad:1,turn:1},Lo={grid:1,flex:1},Ro=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=Ga.style,c=to.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||Io[i]||Io[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&No(t),(p||o===`%`)&&(Ya[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],fr(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===Ha||!h.appendChild)&&(h=Ha.body),g=h._gsap,g&&p&&g.width&&c&&g.time===Li.time&&!g.uncache)return fr(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:Po(t,n)}else(p||o===`%`)&&!Lo[Eo(h,`display`)]&&(s.position=Eo(t,`position`)),h===t&&(s.position=`static`),h.appendChild(Ga),m=Ga[u],h.removeChild(Ga),s.position=`absolute`;return c&&p&&(g=lr(h),g.time=Li.time,g.width=h[u]),fr(f?m*a/d:m&&a?d/m*a:0)},zo=function(e,t,n,r){var i;return Wa||ko(),t in ro&&t!==`transform`&&(t=ro[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),Ya[t]&&t!==`transform`?(i=Zo(e,r),i=t===`transformOrigin`?i.svg?i.origin:Qo(Eo(e,yo))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=Wo[t]&&Wo[t](e,t,n)||Eo(e,t)||ur(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?Ro(e,t,i,n)+n:i},Bo=function(e,t,n,r){if(!n||n===`none`){var i=Oo(t,e,1),a=i&&Eo(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=Eo(e,`borderTopColor`))}var o=new Ea(this._pt,e.style,t,0,1,ba),s=0,c=0,l,u,d,f,p,m,h,g,_,v,y,b;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=Eo(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=Eo(e,t)||r,m?e.style[t]=m:Po(e,t)),l=[n,r],Fi(l),n=l[0],r=l[1],d=n.match(Nn)||[],b=r.match(Nn)||[],b.length){for(;u=Nn.exec(r);)h=u[0],_=r.substring(s,u.index),p?p=(p+1)%5:(_.substr(-5)===`rgba(`||_.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,y=m.substr((f+``).length),h.charAt(1)===`=`&&(h=mr(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=Nn.lastIndex-v.length,v||(v=v||sn.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=Ro(e,t,m,v)||0),o._pt={_next:o._pt,p:_||c===1?_:`,`,s:f,c:g-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s<r.length?r.substring(s,r.length):``}else o.r=t===`display`&&r===`none`?uo:lo;return Fn.test(r)&&(o.e=0),this._pt=o,o},Vo={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},Ho=function(e){var t=e.split(` `),n=t[0],r=t[1]||`50%`;return(n===`top`||n===`bottom`||r===`left`||r===`right`)&&(e=n,n=r,r=e),t[0]=Vo[n]||n,t[1]=Vo[r]||r,t.join(` `)},Uo=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n=t.t,r=n.style,i=t.u,a=n._gsap,o,s,c;if(i===`all`||i===!0)r.cssText=``,s=1;else for(i=i.split(`,`),c=i.length;--c>-1;)o=i[c],Ya[o]&&(s=1,o=o===`transformOrigin`?yo:vo),Po(n,o);s&&(Po(n,vo),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,Zo(n,1),a.uncache=1,xo(r)))}},Wo={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new Ea(e._pt,t,n,0,0,Uo);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},Go=[1,0,0,1,0,0],Ko={},qo=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},Jo=function(e){var t=Eo(e,vo);return qo(t)?Go:t.substr(7).match(Mn).map(fr)},Yo=function(e,t){var n=e._gsap||lr(e),r=e.style,i=Jo(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?Go:i):(i===Go&&!e.offsetParent&&e!==Ua&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,Ua.appendChild(e)),i=Jo(e),s?r.display=s:Po(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):Ua.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},Xo=function(e,t,n,r,i,a){var o=e._gsap,s=i||Yo(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==Go&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=Mo(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[yo]=`0px 0px`,a&&(Fo(a,o,`xOrigin`,c,y),Fo(a,o,`yOrigin`,l,b),Fo(a,o,`xOffset`,u,o.xOffset),Fo(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},Zo=function(e,t){var n=e._gsap||new Xi(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=Eo(e,yo)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,ee,te,ne,re,N,ie,P,F;return n.svg=!!(e.getCTM&&No(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[vo]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[vo]===`none`?``:s[vo])),r.scale=r.rotate=r.translate=`none`),S=Yo(e,n.svg),n.svg&&(n.uncache?(ee=e.getBBox(),c=n.xOrigin-ee.x+`px `+(n.yOrigin-ee.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),Xo(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==Go&&(E=S[0],D=S[1],O=S[2],k=S[3],l=A=S[4],u=j=S[5],S.length===6?(f=Math.sqrt(E*E+D*D),p=Math.sqrt(k*k+O*O),m=E||D?Qa(D,E)*Xa:0,_=O||k?Qa(O,k)*Xa+m:0,_&&(p*=Math.abs(Math.cos(_*Za))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(F=S[6],ie=S[7],ne=S[8],re=S[9],N=S[10],P=S[11],l=S[12],u=S[13],d=S[14],C=Qa(F,N),h=C*Xa,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+ne*T,ee=j*w+re*T,te=F*w+N*T,ne=A*-T+ne*w,re=j*-T+re*w,N=F*-T+N*w,P=ie*-T+P*w,A=M,j=ee,F=te),C=Qa(-O,N),g=C*Xa,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-ne*T,ee=D*w-re*T,te=O*w-N*T,P=k*T+P*w,E=M,D=ee,O=te),C=Qa(D,E),m=C*Xa,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,ee=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=ee),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=fr(Math.sqrt(E*E+D*D+O*O)),p=fr(Math.sqrt(j*j+F*F)),C=Qa(A,j),_=Math.abs(C)>2e-4?C*Xa:0,y=P?1/(P<0?-P:P):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!qo(Eo(e,vo)),M&&e.setAttribute(`transform`,M))),Math.abs(_)>90&&Math.abs(_)<270&&(i?(f*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,_+=_<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=fr(f),n.scaleY=fr(p),n.rotation=fr(m)+o,n.rotationX=fr(h)+o,n.rotationY=fr(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[yo]=Qo(c)),n.xOffset=n.yOffset=0,n.force3D=sn.force3D,n.renderTransform=n.svg?as:wo?is:es,n.uncache=0,n},Qo=function(e){return(e=e.split(` `))[0]+` `+e[1]},$o=function(e,t,n){var r=ti(t);return fr(parseFloat(t)+parseFloat(Ro(e,`x`,n+`px`,r)))+r},es=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,is(e,t)},ts=`0deg`,ns=`0px`,rs=`) `,is=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==ts||l!==ts)){var x=parseFloat(l)*Za,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*Za,w=Math.cos(x),a=$o(_,a,S*w*-v),o=$o(_,o,-Math.sin(x)*-v),s=$o(_,s,C*w*-v+v)}h!==ns&&(y+=`perspective(`+h+rs),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==ns||o!==ns||s!==ns)&&(y+=s!==ns||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+rs),c!==ts&&(y+=`rotate(`+c+rs),l!==ts&&(y+=`rotateY(`+l+rs),u!==ts&&(y+=`rotateX(`+u+rs),(d!==ts||f!==ts)&&(y+=`skew(`+d+`, `+f+rs),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+rs),_.style[vo]=y||`translate(0, 0)`},as=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=Za,c*=Za,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=Za,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=fr(b),x=fr(x),S=fr(S),C=fr(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=Ro(f,`x`,a,`px`),y=Ro(f,`y`,o,`px`)),(p||m||h||g)&&(v=fr(v+p-(p*b+m*S)+h),y=fr(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=fr(v+r/100*w.width),y=fr(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[vo]=w)},os=function(e,t,n,r,i){var a=360,o=yn(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?Xa:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*$a)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*$a)%a-~~(s/a)*a)),e._pt=u=new Ea(e._pt,t,n,r,s,ao),u.e=c,u.u=`deg`,e._props.push(n),u},ss=function(e,t){for(var n in t)e[n]=t[n];return e},cs=function(e,t,n){var r=ss({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[vo]=t,o=Zo(n,1),Po(n,vo),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[vo],a[vo]=t,o=Zo(n,1),a[vo]=c),Ya)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=ti(c),p=ti(l),u=f===p?parseFloat(c):Ro(n,s,c,p),d=parseFloat(l),e._pt=new Ea(e._pt,o,s,u,d-u,io),e._pt.u=p||0,e._props.push(s));ss(o,r)};dr(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});Wo[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return zo(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var ls={name:`css`,register:ko,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;for(m in Wa||ko(),this.styles=this.styles||Co(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(rr[m]&&na(m,t,n,r,e,i)))){if(f=typeof l,p=Wo[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=yi(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,Ni.lastIndex=0,Ni.test(c)||(h=ti(c),g=ti(l),g?h!==g&&(c=Ro(e,m,c,g)+g):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),C.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],yn(c)&&~c.indexOf(`random(`)&&(c=yi(c)),ti(c+``)||c===`auto`||(c+=sn.units[m]||ti(zo(e,m))||``),(c+``).charAt(1)===`=`&&(c=zo(e,m))):c=zo(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in ro&&(m===`autoAlpha`&&(d===1&&zo(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),Fo(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=ro[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in Ya,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=Eo(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=Eo(e,`perspective`),T?e.style.perspective=T:Po(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||Zo(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new Ea(this._pt,o,vo,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new Ea(this._pt,b,`scaleY`,b.scaleY,(_?mr(b.scaleY,_+u):u)-b.scaleY||0,io),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(yo,0,o[yo]),l=Ho(l),b.svg?Xo(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&Fo(this,b,`zOrigin`,b.zOrigin,g),Fo(this,o,m,Qo(c),Qo(l)));continue}else if(m===`svgOrigin`){Xo(e,l,1,x,0,this);continue}else if(m in Ko){os(this,b,m,d,_?mr(d,_+l):l);continue}else if(m===`smoothOrigin`){Fo(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){cs(this,l,e);continue}}else m in o||(m=Oo(m)||m);if(v||(u||u===0)&&(d||d===0)&&!no.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=ti(l)||(m in sn.units?sn.units[m]:h),h!==g&&(d=Ro(e,m,c,g)),this._pt=new Ea(this._pt,v?b:o,m,d,(_?mr(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?co:io),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=so):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=oo);else if(m in o)Bo.call(this,e,m,c,_?_+l:l);else if(m in e)this.add(e,m,c||e[m],_?_+l:l,r,i);else if(m!==`parseTransform`){Kn(m,l);continue}v||(m in o?C.push(m,0,o[m]):typeof e[m]==`function`?C.push(m,2,e[m]()):C.push(m,1,c||e[m])),a.push(m)}}S&&Ta(this)},render:function(e,t){if(t.tween._time||!qa())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:zo,aliases:ro,getSetter:function(e,t,n){var r=ro[t];return r&&r.indexOf(`,`)<0&&(t=r),t in Ya&&t!==yo&&(e._gsap.x||zo(e,`x`))?n&&Ka===n?t===`scale`?ho:mo:(Ka=n||{})&&(t===`scale`?go:_o):e.style&&!Sn(e.style[t])?fo:~t.indexOf(`-`)?po:_a(e,t)},core:{_removeProperty:Po,_getMatrix:Yo}};Ba.utils.checkPrefix=Oo,Ba.core.getStyleSaver=Co,(function(e,t,n,r){var i=dr(e+`,`+t+`,`+n,function(e){Ya[e]=1});dr(t,function(e){sn.units[e]=`deg`,Ko[e]=1}),ro[i[13]]=e+`,`+t,dr(r,function(e){var t=e.split(`:`);ro[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),dr(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){sn.units[e]=`px`}),Ba.registerPlugin(ls);var $=Ba.registerPlugin(ls)||Ba;$.core.Tween;var us,ds,fs,ps,ms,hs,gs,_s,vs=`transform`,ys=vs+`Origin`,bs,xs=function(e){var t=e.ownerDocument||e;for(!(vs in e.style)&&(`msTransform`in e.style)&&(vs=`msTransform`,ys=vs+`Origin`);t.parentNode&&(t=t.parentNode););if(ds=window,gs=new Ps,t){us=t,fs=t.documentElement,ps=t.body,_s=us.createElementNS(`http://www.w3.org/2000/svg`,`g`),_s.style.transform=`none`;var n=t.createElement(`div`),r=t.createElement(`div`),i=t&&(t.body||t.firstElementChild);i&&i.appendChild&&(i.appendChild(n),n.appendChild(r),n.style.position=`static`,n.style.transform=`translate3d(0,0,1px)`,bs=r.offsetParent!==n,i.removeChild(n))}return t},Ss=function(e){for(var t,n;e&&e!==ps;)n=e._gsap,n&&n.uncache&&n.get(e,`x`),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},Cs=[],ws=[],Ts=function(){return ds.pageYOffset||us.scrollTop||fs.scrollTop||ps.scrollTop||0},Es=function(){return ds.pageXOffset||us.scrollLeft||fs.scrollLeft||ps.scrollLeft||0},Ds=function(e){return e.ownerSVGElement||((e.tagName+``).toLowerCase()===`svg`?e:null)},Os=function e(t){if(ds.getComputedStyle(t).position===`fixed`)return!0;if(t=t.parentNode,t&&t.nodeType===1)return e(t)},ks=function e(t,n){if(t.parentNode&&(us||xs(t))){var r=Ds(t),i=r?r.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`:`http://www.w3.org/1999/xhtml`,a=r?n?`rect`:`g`:`div`,o=n===2?100:0,s=n===3?100:0,c={position:`absolute`,display:`block`,pointerEvents:`none`,margin:`0`,padding:`0`},l=us.createElementNS?us.createElementNS(i.replace(/^https/,`http`),a):us.createElement(a);return n&&(r?(hs||=e(t),l.setAttribute(`width`,.01),l.setAttribute(`height`,.01),l.setAttribute(`transform`,`translate(`+o+`,`+s+`)`),l.setAttribute(`fill`,`transparent`),hs.appendChild(l)):(ms||(ms=e(t),Object.assign(ms.style,c)),Object.assign(l.style,c,{width:`0.1px`,height:`0.1px`,top:s+`px`,left:o+`px`}),ms.appendChild(l))),l}throw`Need document and parent.`},As=function(e){for(var t=new Ps,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t},js=function(e){var t=e.getCTM(),n;return t||(n=e.style[vs],e.style[vs]=`none`,e.appendChild(_s),t=_s.getCTM(),e.removeChild(_s),n?e.style[vs]=n:e.style.removeProperty(vs.replace(/([A-Z])/g,`-$1`).toLowerCase())),t||gs.clone()},Ms=function(e,t){var n=Ds(e),r=e===n,i=n?Cs:ws,a=e.parentNode,o=a&&!n&&a.shadowRoot&&a.shadowRoot.appendChild?a.shadowRoot:a,s,c,l,u,d,f;if(e===ds)return e;if(i.length||i.push(ks(e,1),ks(e,2),ks(e,3)),s=n?hs:ms,n)r?(l=js(e),u=-l.e/l.a,d=-l.f/l.d,c=gs):e.getBBox?(l=e.getBBox(),c=e.transform?e.transform.baseVal:{},c=c.numberOfItems?c.numberOfItems>1?As(c):c.getItem(0).matrix:gs,u=c.a*l.x+c.c*l.y,d=c.b*l.x+c.d*l.y):(c=new Ps,u=d=0),t&&e.tagName.toLowerCase()===`g`&&(u=d=0),(r||!e.getBoundingClientRect().width?n:a).appendChild(s),s.setAttribute(`transform`,`matrix(`+c.a+`,`+c.b+`,`+c.c+`,`+c.d+`,`+(c.e+u)+`,`+(c.f+d)+`)`);else{if(u=d=0,bs)for(c=e.offsetParent,l=e;(l&&=l.parentNode)&&l!==c&&l.parentNode;)(ds.getComputedStyle(l)[vs]+``).length>4&&(u=l.offsetLeft,d=l.offsetTop,l=0);if(f=ds.getComputedStyle(e),f.position!==`absolute`&&f.position!==`fixed`)for(c=e.offsetParent;a&&a!==c;)u+=a.scrollLeft||0,d+=a.scrollTop||0,a=a.parentNode;l=s.style,l.top=e.offsetTop-d+`px`,l.left=e.offsetLeft-u+`px`,l[vs]=f[vs],l[ys]=f[ys],l.position=f.position===`fixed`?`fixed`:`absolute`,o.appendChild(s)}return s},Ns=function(e,t,n,r,i,a,o){return e.a=t,e.b=n,e.c=r,e.d=i,e.e=a,e.f=o,e},Ps=function(){function e(e,t,n,r,i,a){e===void 0&&(e=1),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=1),i===void 0&&(i=0),a===void 0&&(a=0),Ns(this,e,t,n,r,i,a)}var t=e.prototype;return t.inverse=function(){var e=this.a,t=this.b,n=this.c,r=this.d,i=this.e,a=this.f,o=e*r-t*n||1e-10;return Ns(this,r/o,-t/o,-n/o,e/o,(n*a-r*i)/o,-(e*a-t*i)/o)},t.multiply=function(e){var t=this.a,n=this.b,r=this.c,i=this.d,a=this.e,o=this.f,s=e.a,c=e.c,l=e.b,u=e.d,d=e.e,f=e.f;return Ns(this,s*t+l*r,s*n+l*i,c*t+u*r,c*n+u*i,a+d*t+f*r,o+d*n+f*i)},t.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(e){var t=this.a,n=this.b,r=this.c,i=this.d,a=this.e,o=this.f;return t===e.a&&n===e.b&&r===e.c&&i===e.d&&a===e.e&&o===e.f},t.apply=function(e,t){t===void 0&&(t={});var n=e.x,r=e.y,i=this.a,a=this.b,o=this.c,s=this.d,c=this.e,l=this.f;return t.x=n*i+r*o+c||0,t.y=n*a+r*s+l||0,t},e}();function Fs(e,t,n,r){if(!e||!e.parentNode||(us||xs(e)).documentElement===e)return new Ps;var i=Ss(e),a=Ds(e)?Cs:ws,o=Ms(e,n),s=a[0].getBoundingClientRect(),c=a[1].getBoundingClientRect(),l=a[2].getBoundingClientRect(),u=o.parentNode,d=!r&&Os(e),f=new Ps((c.left-s.left)/100,(c.top-s.top)/100,(l.left-s.left)/100,(l.top-s.top)/100,s.left+(d?0:Es()),s.top+(d?0:Ts()));if(u.removeChild(o),i)for(s=i.length;s--;)c=i[s],c.scaleX=c.scaleY=0,c.renderTransform(1,c);return t?f.inverse():f}var Is=1,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws=function(e,t){return e.actions.forEach(function(e){return e.vars[t]&&e.vars[t](e)})},Gs={},Ks=180/Math.PI,qs=Math.PI/180,Js={},Ys={},Xs={},Zs=function(e){return typeof e==`string`?e.split(` `).join(``).split(`,`):e},Qs=Zs(`onStart,onUpdate,onComplete,onReverseComplete,onInterrupt`),$s=Zs(`transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight`),ec=function(e){return Ls(e)[0]||console.warn(`Element not found:`,e)},tc=function(e){return Math.round(e*1e4)/1e4||0},nc=function(e,t,n){return e.forEach(function(e){return e.classList[n](t)})},rc={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},ic={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},ac=function(e){return e.replace(/([A-Z])/g,`-$1`).toLowerCase()},oc=function(e,t){var n={},r;for(r in e)t[r]||(n[r]=e[r]);return n},sc={},cc=function(e){var t=sc[e]=Zs(e);return Xs[e]=t.concat($s),t},lc=function(e){var t=e._gsap||Rs.core.getCache(e);return t.gmCache===Rs.ticker.frame?t.gMatrix:(t.gmCache=Rs.ticker.frame,t.gMatrix=Fs(e,!0,!1,!0))},uc=function e(t,n,r){r===void 0&&(r=0);for(var i=t.parentNode,a=1e3*10**r*(n?-1:1),o=n?-a*900:0;t;)o+=a,t=t.previousSibling;return i?o+e(i,n,r+1):o},dc=function(e,t,n){return e.forEach(function(e){return e.d=uc(n?e.element:e.t,t)}),e.sort(function(e,t){return e.d-t.d}),e},fc=function(e,t){for(var n=e.element.style,r=e.css=e.css||[],i=t.length,a,o;i--;)a=t[i],o=n[a]||n.getPropertyValue(a),r.push(o?a:Ys[a]||(Ys[a]=ac(a)),o);return n},pc=function(e){var t=e.css,n=e.element.style,r=0;for(e.cache.uncache=1;r<t.length;r+=2)t[r+1]?n[t[r]]=t[r+1]:n.removeProperty(t[r]);!t[t.indexOf(`transform`)+1]&&n.translate&&(n.removeProperty(`translate`),n.removeProperty(`scale`),n.removeProperty(`rotate`))},mc=function(e,t){e.forEach(function(e){return e.a.cache.uncache=1}),t||e.finalStates.forEach(pc)},hc=`paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition`.split(`,`),gc=function(e,t,n){var r=e.element,i=e.width,a=e.height,o=e.uncache,s=e.getProp,c=r.style,l=4,u,d,f;if(typeof t!=`object`&&(t=e),zs&&n!==1)return zs._abs.push({t:r,b:e,a:e,sd:0}),zs._final.push(function(){return(e.cache.uncache=1)&&pc(e)}),r;for(d=s(`display`)===`none`,(!e.isVisible||d)&&(d&&(fc(e,[`display`]).display=t.display),e.matrix=t.matrix,e.width=i=e.width||t.width,e.height=a=e.height||t.height),fc(e,hc),f=window.getComputedStyle(r);l--;)c[hc[l]]=f[hc[l]];if(c.gridArea=`1 / 1 / 1 / 1`,c.transition=`none`,c.position=`absolute`,c.width=i+`px`,c.height=a+`px`,c.top||=`0px`,c.left||=`0px`,o)u=new zc(r);else if(u=oc(e,Js),u.position=`absolute`,e.simple){var p=r.getBoundingClientRect();u.matrix=new Ps(1,0,0,1,p.left+Es(),p.top+Ts())}else u.matrix=Fs(r,!1,!1,!0);return u=Ec(u,e,!0),e.x=Hs(u.x,.01),e.y=Hs(u.y,.01),r},_c=function(e,t){return t!==!0&&(t=Ls(t),e=e.filter(function(e){if(t.indexOf((e.sd<0?e.b:e.a).element)!==-1)return!0;e.t._gsap.renderTransform(1),e.b.isVisible&&(e.t.style.width=e.b.width+`px`,e.t.style.height=e.b.height+`px`)})),e},vc=function(e){return dc(e,!0).forEach(function(e){return(e.a.isVisible||e.b.isVisible)&&gc(e.sd<0?e.b:e.a,e.b,1)})},yc=function(e,t){return t&&e.idLookup[bc(t).id]||e.elementStates[0]},bc=function(e,t,n,r){return e instanceof zc?e:e instanceof Rc?yc(e,r):new zc(typeof e==`string`?ec(e)||console.warn(e+` not found`):e,t,n)},xc=function(e,t){for(var n=Rs.getProperty(e.element,null,`native`),r=e.props={},i=t.length;i--;)r[t[i]]=(n(t[i])+``).trim();return r.zIndex&&=parseFloat(r.zIndex)||0,e},Sc=function(e,t){var n=e.style||e,r;for(r in t)n[r]=t[r]},Cc=function(e){var t=e.getAttribute(`data-flip-id`);return t||e.setAttribute(`data-flip-id`,t=`auto-`+Is++),t},wc=function(e){return e.map(function(e){return e.element})},Tc=function(e,t,n){return e&&t.length&&n.add(e(wc(t),n,new Rc(t,0,!0)),0)},Ec=function(e,t,n,r,i,a){var o=e.element,s=e.cache,c=e.parent,l=e.x,u=e.y,d=t.width,f=t.height,p=t.scaleX,m=t.scaleY,h=t.rotation,g=t.bounds,_=a&&Us&&Us(o,`transform,width,height`),v=e,y=t.matrix,b=y.e,x=y.f,S=e.bounds.width!==g.width||e.bounds.height!==g.height||e.scaleX!==p||e.scaleY!==m||e.rotation!==h,C=!S&&e.simple&&t.simple&&!i,w,T,E,D,O,k,A;return C||!c?(p=m=1,h=w=0):(O=lc(c),k=O.clone().multiply(t.ctm?t.matrix.clone().multiply(t.ctm):t.matrix),h=tc(Math.atan2(k.b,k.a)*Ks),w=tc(Math.atan2(k.c,k.d)*Ks+h)%360,p=Math.sqrt(k.a**2+k.b**2),m=Math.sqrt(k.c**2+k.d**2)*Math.cos(w*qs),i&&(i=Ls(i)[0],D=Rs.getProperty(i),A=i.getBBox&&typeof i.getBBox==`function`&&i.getBBox(),v={scaleX:D(`scaleX`),scaleY:D(`scaleY`),width:A?A.width:Math.ceil(parseFloat(D(`width`,`px`))),height:A?A.height:parseFloat(D(`height`,`px`))}),s.rotation=h+`deg`,s.skewX=w+`deg`),n?(p*=d===v.width||!v.width?1:d/v.width,m*=f===v.height||!v.height?1:f/v.height,s.scaleX=p,s.scaleY=m):(d=Hs(d*p/v.scaleX,0),f=Hs(f*m/v.scaleY,0),o.style.width=d+`px`,o.style.height=f+`px`),r&&Sc(o,t.props),C||!c?(l+=b-e.matrix.e,u+=x-e.matrix.f):S||c!==t.parent?(s.x=l+`px`,s.y=u+`px`,s.renderTransform(1,s),k=Fs(i||o,!1,!1,!0),T=O.apply({x:k.e,y:k.f}),E=O.apply({x:b,y:x}),l+=E.x-T.x,u+=E.y-T.y):(O.e=O.f=0,E=O.apply({x:b-e.matrix.e,y:x-e.matrix.f}),l+=E.x,u+=E.y),l=Hs(l,.02),u=Hs(u,.02),a&&!(a instanceof zc)?_&&_.revert():(s.x=l+`px`,s.y=u+`px`,s.renderTransform(1,s)),a&&(a.x=l,a.y=u,a.rotation=h,a.skewX=w,n?(a.scaleX=p,a.scaleY=m):(a.width=d,a.height=f)),a||s},Dc=function(e,t){return e instanceof Rc?e:new Rc(e,t)},Oc=function(e,t,n){var r=e.idLookup[n],i=e.alt[n];return i.isVisible&&(!(t.getElementState(i.element)||i).isVisible||!r.isVisible)?i:r},kc=[],Ac=`width,height,overflowX,overflowY`.split(`,`),jc,Mc=function(e){if(e!==jc){var t=Vs.style,n=Vs.clientWidth===window.outerWidth,r=Vs.clientHeight===window.outerHeight,i=4;if(e&&(n||r)){for(;i--;)kc[i]=t[Ac[i]];n&&(t.width=Vs.clientWidth+`px`,t.overflowY=`hidden`),r&&(t.height=Vs.clientHeight+`px`,t.overflowX=`hidden`),jc=e}else if(jc){for(;i--;)kc[i]?t[Ac[i]]=kc[i]:t.removeProperty(ac(Ac[i]));jc=e}}},Nc=function(e,t){for(var n=0;n<e.length;n+=3)Rs.set(e[n],{clearProps:!0}),e[n].setAttribute(`style`,e[n+t]),e[n]._gsap.gmCache=-1},Pc=function(e,t,n,r){e instanceof Rc&&t instanceof Rc||console.warn(`Not a valid state object.`),n||={};var i=n,a=i.clearProps,o=i.onEnter,s=i.onLeave,c=i.absolute,l=i.absoluteOnLeave,u=i.custom,d=i.delay,f=i.paused,p=i.repeat,m=i.repeatDelay,h=i.yoyo,g=i.toggleClass,_=i.nested,v=i.zIndex,y=i.scale,b=i.fade,x=i.stagger,S=i.spin,C=i.prune,w=(`props`in n?n:e).props,T=oc(n,rc),E=Rs.timeline({delay:d,paused:f,repeat:p,repeatDelay:m,yoyo:h,data:`isFlip`}),D=T,O=[],k=[],A=[],j=[],M=S===!0?1:S||0,ee=typeof S==`function`?S:function(){return M},te=e.interrupted||t.interrupted,ne=E[r===1?`from`:`to`],re,N,ie,P,F,I,ae,oe,se,ce,le,ue,de,fe;for(N in t.idLookup)le=t.alt[N]?Oc(t,e,N):t.idLookup[N],F=le.element,ce=e.idLookup[N],e.alt[N]&&F===ce.element&&(e.alt[N].isVisible||!le.isVisible)&&(ce=e.alt[N]),ce?(I={t:F,b:ce,a:le,sd:ce.element===F?0:le.isVisible?1:-1},A.push(I),I.sd&&(I.sd<0&&(I.b=le,I.a=ce),te&&fc(I.b,w?Xs[w]:$s),b&&A.push(I.swap={t:ce.element,b:I.b,a:I.a,sd:-I.sd,swap:I})),F._flip=ce.element._flip=zs?zs.timeline:E):le.isVisible&&(A.push({t:F,b:oc(le,{isVisible:1}),a:le,sd:0,entering:1}),F._flip=zs?zs.timeline:E);if(w&&(sc[w]||cc(w)).forEach(function(e){return T[e]=function(t){return A[t].a.props[e]}}),A.finalStates=se=[],ue=function(){dc(A),Mc(!0);var t=[];for(P=0;P<A.length;P++)I=A[P],de=I.a,fe=I.b,C&&!de.isDifferent(fe)&&!I.entering?A.splice(P--,1):(F=I.t,_&&!(I.sd<0)&&P&&(de=I.a=de.clone({matrix:Fs(F,!1,!1,!0)})),fe.isVisible&&de.isVisible?(I.sd<0?(_&&Nc(t,1),ae=new zc(F,w,e.simple),Ec(ae,de,y,0,0,ae),ae.matrix=Fs(F,!1,!1,!0),ae.bounds=F.getBoundingClientRect(),ae.css=I.b.css,I.a=de=ae,b&&(F.style.opacity=te?fe.opacity:de.opacity),x&&j.push(F),_&&(Nc(t,2),t.push(F,F.getAttribute(`style`)))):I.sd>0&&b&&(F.style.opacity=te?de.opacity-fe.opacity:`0`),Ec(de,fe,y,w),_&&I.sd<0&&t.push(F.getAttribute(`style`))):fe.isVisible!==de.isVisible&&(fe.isVisible?de.isVisible||(fe.css=de.css,k.push(fe),A.splice(P--,1),c&&_&&Ec(de,fe,y,w)):(de.isVisible&&O.push(de),A.splice(P--,1))),y||(F.style.maxWidth=Math.max(de.width,fe.width)+`px`,F.style.maxHeight=Math.max(de.height,fe.height)+`px`,F.style.minWidth=Math.min(de.width,fe.width)+`px`,F.style.minHeight=Math.min(de.height,fe.height)+`px`),_&&g&&F.classList.add(g)),se.push(de);var r;if(g&&(r=se.map(function(e){return e.element}),_&&r.forEach(function(e){return e.classList.remove(g)})),Mc(!1),y?(T.scaleX=function(e){return A[e].a.scaleX},T.scaleY=function(e){return A[e].a.scaleY}):(T.width=function(e){return A[e].a.width+`px`},T.height=function(e){return A[e].a.height+`px`},T.autoRound=n.autoRound||!1),T.x=function(e){return A[e].a.x+`px`},T.y=function(e){return A[e].a.y+`px`},T.rotation=function(e){return A[e].a.rotation+(S?ee(e,oe[e],oe)*360:0)},T.skewX=function(e){return A[e].a.skewX},oe=A.map(function(e){return e.t}),(v||v===0)&&(T.modifiers={zIndex:function(){return v}},T.zIndex=v,T.immediateRender=n.immediateRender!==!1),b&&(T.opacity=function(e){return A[e].sd<0?0:A[e].sd>0?A[e].a.opacity:`+=0`}),j.length){x=Rs.utils.distribute(x);var i=oe.slice(j.length);T.stagger=function(e,t){return x(~j.indexOf(t)?oe.indexOf(A[e].swap.t):e,t,i)}}if(Qs.forEach(function(e){return n[e]&&E.eventCallback(e,n[e],n[e+`Params`])}),u&&oe.length)for(N in D=oc(T,rc),`scale`in u&&(u.scaleX=u.scaleY=u.scale,delete u.scale),u)re=oc(u[N],ic),re[N]=T[N],!(`duration`in re)&&`duration`in T&&(re.duration=T.duration),re.stagger=T.stagger,ne.call(E,oe,re,0),delete D[N];(oe.length||k.length||O.length)&&(g&&E.add(function(){return nc(r,g,E._zTime<0?`remove`:`add`)},0)&&!f&&nc(r,g,`add`),oe.length&&ne.call(E,oe,D,0)),Tc(o,O,E),Tc(s,k,E);var l=zs&&zs.timeline;l&&(l.add(E,0),zs._final.push(function(){return mc(A,!a)})),ie=E.duration(),E.call(function(){var e=E.time()>=ie;e&&!l&&mc(A,!a),g&&nc(r,g,e?`remove`:`add`)})},l&&(c=A.filter(function(e){return!e.sd&&!e.a.isVisible&&e.b.isVisible}).map(function(e){return e.a.element})),zs){var pe;c&&(pe=zs._abs).push.apply(pe,_c(A,c)),zs._run.push(ue)}else c&&vc(_c(A,c)),ue();var me=zs?zs.timeline:E;return me.revert=function(){return Ic(me,1,1)},me},Fc=function e(t){t.vars.onInterrupt&&t.vars.onInterrupt.apply(t,t.vars.onInterruptParams||[]),t.getChildren(!0,!1,!0).forEach(e)},Ic=function(e,t,n){if(e&&e.progress()<1&&(!e.paused()||n))return t&&(Fc(e),t<2&&e.progress(1),e.kill()),!0},Lc=function(e){for(var t=e.idLookup={},n=e.alt={},r=e.elementStates,i=r.length,a;i--;)a=r[i],t[a.id]?n[a.id]=a:t[a.id]=a},Rc=function(){function e(e,t,n){if(this.props=t&&t.props,this.simple=!!(t&&t.simple),n)this.targets=wc(e),this.elementStates=e,Lc(this);else{this.targets=Ls(e);var r=t&&(t.kill===!1||t.batch&&!t.kill);zs&&!r&&zs._kill.push(this),this.update(r||!!zs)}}var t=e.prototype;return t.update=function(e){var t=this;return this.elementStates=this.targets.map(function(e){return new zc(e,t.props,t.simple)}),Lc(this),this.interrupt(e),this.recordInlineStyles(),this},t.clear=function(){return this.targets.length=this.elementStates.length=0,Lc(this),this},t.fit=function(e,t,n){for(var r=dc(this.elementStates.slice(0),!1,!0),i=(e||this).idLookup,a=0,o,s;a<r.length;a++)o=r[a],n&&(o.matrix=Fs(o.element,!1,!1,!0)),s=i[o.id],s&&Ec(o,s,t,!0,0,o),o.matrix=Fs(o.element,!1,!1,!0);return this},t.getProperty=function(e,t){var n=this.getElementState(e)||Js;return(t in n?n:n.props||Js)[t]},t.add=function(e){for(var t=e.targets.length,n=this.idLookup,r=this.alt,i,a,o;t--;)a=e.elementStates[t],o=n[a.id],o&&(a.element===o.element||r[a.id]&&r[a.id].element===a.element)?(i=this.elementStates.indexOf(a.element===o.element?o:r[a.id]),this.targets.splice(i,1,e.targets[t]),this.elementStates.splice(i,1,a)):(this.targets.push(e.targets[t]),this.elementStates.push(a));return e.interrupted&&(this.interrupted=!0),e.simple||(this.simple=!1),Lc(this),this},t.compare=function(e){var t=e.idLookup,n=this.idLookup,r=[],i=[],a=[],o=[],s=[],c=e.alt,l=this.alt,u=function(e,t,n){return(e.isVisible===t.isVisible?e.isVisible?i:r:e.isVisible?a:o).push(n)&&s.push(n)},d=function(e,t,n){return s.indexOf(n)<0&&u(e,t,n)},f,p,m,h,g,_,v,y;for(m in t)g=c[m],_=l[m],f=g?Oc(e,this,m):t[m],h=f.element,p=n[m],_?(y=p.isVisible||!_.isVisible&&h===p.element?p:_,v=g&&!f.isVisible&&!g.isVisible&&y.element===g.element?g:f,v.isVisible&&y.isVisible&&v.element!==y.element?((v.isDifferent(y)?i:r).push(v.element,y.element),s.push(v.element,y.element)):u(v,y,v.element),g&&v.element===g.element&&(g=t[m]),d(v.element!==p.element&&g?g:v,p,p.element),d(g&&g.element===_.element?g:v,_,_.element),g&&d(g,_.element===g.element?_:p,g.element)):(p?p.isDifferent(f)?u(f,p,h):r.push(h):a.push(h),g&&d(g,p,g.element));for(m in n)t[m]||(o.push(n[m].element),l[m]&&o.push(l[m].element));return{changed:i,unchanged:r,enter:a,leave:o}},t.recordInlineStyles=function(){for(var e=Xs[this.props]||$s,t=this.elementStates.length;t--;)fc(this.elementStates[t],e)},t.interrupt=function(e){var t=this,n=[];this.targets.forEach(function(r){var i=r._flip,a=Ic(i,+!e);e&&a&&n.indexOf(i)<0&&i.add(function(){return t.updateVisibility()}),a&&n.push(i)}),!e&&n.length&&this.updateVisibility(),this.interrupted||=!!n.length},t.updateVisibility=function(){this.elementStates.forEach(function(e){var t=e.element.getBoundingClientRect();e.isVisible=!!(t.width||t.height||t.top||t.left),e.uncache=1})},t.getElementState=function(e){return this.elementStates[this.targets.indexOf(ec(e))]},t.makeAbsolute=function(){return dc(this.elementStates.slice(0),!0,!0).map(gc)},e}(),zc=function(){function e(t,n,r){t instanceof e?Object.assign(this,t,n||{}):(this.element=t,this.update(n,r))}var t=e.prototype;return t.isDifferent=function(e){var t=this.bounds,n=e.bounds;return t.top!==n.top||t.left!==n.left||t.width!==n.width||t.height!==n.height||!this.matrix.equals(e.matrix)||this.opacity!==e.opacity||this.props&&e.props&&JSON.stringify(this.props)!==JSON.stringify(e.props)},t.clone=function(t){return new e(this,t)},t.update=function(e,t){var n=this,r=n.element,i=Rs.getProperty(r),a=Rs.core.getCache(r),o=r.getBoundingClientRect(),s=r.getBBox&&typeof r.getBBox==`function`&&r.nodeName.toLowerCase()!==`svg`&&r.getBBox(),c=t?new Ps(1,0,0,1,o.left+Es(),o.top+Ts()):Fs(r,!1,!1,!0);a.uncache=1,n.getProp=i,n.element=r,n.id=Cc(r),n.matrix=c,n.cache=a,n.bounds=o,n.isVisible=!!(o.width||o.height||o.left||o.top),n.display=i(`display`),n.position=i(`position`),n.parent=r.parentNode,n.x=i(`x`,`px`),n.y=i(`y`,`px`),n.scaleX=a.scaleX,n.scaleY=a.scaleY,n.rotation=i(`rotation`),n.skewX=i(`skewX`),n.opacity=i(`opacity`),n.width=s?s.width:Hs(i(`width`,`px`),.04),n.height=s?s.height:Hs(i(`height`,`px`),.04),e&&xc(n,sc[e]||cc(e)),n.ctm=r.getCTM&&r.nodeName.toLowerCase()===`svg`&&js(r).inverse(),n.simple=t||tc(c.a)===1&&!tc(c.b)&&!tc(c.c)&&tc(c.d)===1,n.uncache=0},e}(),Bc=function(){function e(e,t){this.vars=e,this.batch=t,this.states=[],this.timeline=t.timeline}var t=e.prototype;return t.getStateById=function(e){for(var t=this.states.length;t--;)if(this.states[t].idLookup[e])return this.states[t]},t.kill=function(){this.batch.remove(this)},e}(),Vc=function(){function e(e){this.id=e,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new Rc,this.timeline=Rs.timeline()}var t=e.prototype;return t.add=function(e){var t=this.actions.filter(function(t){return t.vars===e});return t.length?t[0]:(t=new Bc(typeof e==`function`?{animate:e}:e,this),this.actions.push(t),t)},t.remove=function(e){var t=this.actions.indexOf(e);return t>=0&&this.actions.splice(t,1),this},t.getState=function(e){var t=this,n=zs,r=Bs;return zs=this,this.state.clear(),this._kill.length=0,this.actions.forEach(function(n){n.vars.getState&&(n.states.length=0,Bs=n,n.state=n.vars.getState(n)),e&&n.states.forEach(function(e){return t.state.add(e)})}),Bs=r,zs=n,this.killConflicts(),this},t.animate=function(){var e=this,t=zs,n=this.timeline,r=this.actions.length,i,a;for(zs=this,n.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(e){e.vars.animate&&e.vars.animate(e);var t=e.vars.onEnter,n=e.vars.onLeave,r=e.targets,i,a;r&&r.length&&(t||n)&&(i=new Rc,e.states.forEach(function(e){return i.add(e)}),a=i.compare(Hc.getState(r)),a.enter.length&&t&&t(a.enter),a.leave.length&&n&&n(a.leave))}),vc(this._abs),this._run.forEach(function(e){return e()}),a=n.duration(),i=this._final.slice(0),n.add(function(){a<=n.time()&&(i.forEach(function(e){return e()}),Ws(e,`onComplete`))}),zs=t;r--;)this.actions[r].vars.once&&this.actions[r].kill();return Ws(this,`onStart`),n.restart(),this},t.loadState=function(e){e||=function(){return 0};var t=[];return this.actions.forEach(function(n){if(n.vars.loadState){var r,i=function i(a){a&&(n.targets=a),r=t.indexOf(i),~r&&(t.splice(r,1),t.length||e())};t.push(i),n.vars.loadState(i)}}),t.length||e(),this},t.setState=function(){return this.actions.forEach(function(e){return e.targets=e.vars.setState&&e.vars.setState(e)}),this},t.killConflicts=function(e){return this.state.interrupt(e),this._kill.forEach(function(t){return t.interrupt(e)}),this},t.run=function(e,t){var n=this;return this!==zs&&(e||this.getState(t),this.loadState(function(){n._killed||(n.setState(),n.animate())})),this},t.clear=function(e){this.state.clear(),e||(this.actions.length=0)},t.getStateById=function(e){for(var t=this.actions.length,n;t--;)if(n=this.actions[t].getStateById(e),n)return n;return this.state.idLookup[e]&&this.state},t.kill=function(){this._killed=1,this.clear(),delete Gs[this.id]},e}(),Hc=function(){function e(){}return e.getState=function(t,n){var r=Dc(t,n);return Bs&&Bs.states.push(r),n&&n.batch&&e.batch(n.batch).state.add(r),r},e.from=function(e,t){return t||={},`clearProps`in t||(t.clearProps=!0),Pc(e,Dc(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,-1)},e.to=function(e,t){return Pc(e,Dc(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,1)},e.fromTo=function(e,t,n){return Pc(e,t,n)},e.fit=function(e,t,n){var r=n?oc(n,ic):{},i=n||r,a=i.absolute,o=i.scale,s=i.getVars,c=i.props,l=i.runBackwards,u=i.onComplete,d=i.simple,f=n&&n.fitChild&&ec(n.fitChild),p=bc(t,c,d,e),m=bc(e,0,d,p),h=c?Xs[c]:$s,g=Rs.context();return c&&Sc(r,p.props),fc(m,h),l&&(`immediateRender`in r||(r.immediateRender=!0),r.onComplete=function(){pc(m),u&&u.apply(this,arguments)}),a&&gc(m,p),r=Ec(m,p,o||f,!r.duration&&c,f,r.duration||s?r:0),typeof n==`object`&&`zIndex`in n&&(r.zIndex=n.zIndex),g&&!s&&g.add(function(){return function(){return pc(m)}}),s?r:r.duration?Rs.to(m.element,r):null},e.makeAbsolute=function(e,t){return(e instanceof Rc?e:new Rc(e,t)).makeAbsolute()},e.batch=function(e){return e||=`default`,Gs[e]||(Gs[e]=new Vc(e))},e.killFlipsOf=function(e,t){(e instanceof Rc?e.targets:Ls(e)).forEach(function(e){return e&&Ic(e._flip,t===!1?2:1)})},e.isFlipping=function(t){var n=e.getByTarget(t);return!!n&&n.isActive()},e.getByTarget=function(e){return(ec(e)||Js)._flip},e.getElementState=function(e,t){return new zc(ec(e),t)},e.convertCoordinates=function(e,t,n){var r=Fs(t,!0,!0).multiply(Fs(e));return n?r.apply(n):r},e.register=function(e){if(Vs=typeof document<`u`&&document.body,Vs){Rs=e,xs(Vs),Ls=Rs.utils.toArray,Us=Rs.core.getStyleSaver;var t=Rs.utils.snap(.1);Hs=function(e,n){return t(parseFloat(e)+n)}}},e}();Hc.version=`3.15.0`,typeof window<`u`&&window.gsap&&window.gsap.registerPlugin(Hc);var Uc=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Wc=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,Gc=Math.PI/180;180/Math.PI;var Kc=Math.sin,qc=Math.cos,Jc=Math.abs,Yc=Math.sqrt,Xc=function(e){return typeof e==`number`},Zc=1e5,Qc=function(e){return Math.round(e*Zc)/Zc||0},$c=function(e){return e.closed=Math.abs(e[0]-e[e.length-2])<.001&&Math.abs(e[1]-e[e.length-1])<.001};function el(e,t,n,r,i,a,o){for(var s=e.length,c,l,u,d,f;--s>-1;)for(c=e[s],l=c.length,u=0;u<l;u+=2)d=c[u],f=c[u+1],c[u]=d*t+f*r+a,c[u+1]=d*n+f*i+o;return e._dirty=1,e}function tl(e,t,n,r,i,a,o,s,c){if(e!==s||t!==c){n=Jc(n),r=Jc(r);var l=i%360*Gc,u=qc(l),d=Kc(l),f=Math.PI,p=f*2,m=(e-s)/2,h=(t-c)/2,g=u*m+d*h,_=-d*m+u*h,v=g*g,y=_*_,b=v/(n*n)+y/(r*r);b>1&&(n=Yc(b)*n,r=Yc(b)*r);var x=n*n,S=r*r,C=(x*S-x*y-S*v)/(x*y+S*v);C<0&&(C=0);var w=(a===o?-1:1)*Yc(C),T=w*(n*_/r),E=w*-(r*g/n),D=(e+s)/2,O=(t+c)/2,k=D+(u*T-d*E),A=O+(d*T+u*E),j=(g-T)/n,M=(_-E)/r,ee=(-g-T)/n,te=(-_-E)/r,ne=j*j+M*M,re=(M<0?-1:1)*Math.acos(j/Yc(ne)),N=(j*te-M*ee<0?-1:1)*Math.acos((j*ee+M*te)/Yc(ne*(ee*ee+te*te)));isNaN(N)&&(N=f),!o&&N>0?N-=p:o&&N<0&&(N+=p),re%=p,N%=p;var ie=Math.ceil(Jc(N)/(p/4)),P=[],F=N/ie,I=4/3*Kc(F/2)/(1+qc(F/2)),ae=u*n,oe=d*n,se=d*-r,ce=u*r,le;for(le=0;le<ie;le++)i=re+le*F,g=qc(i),_=Kc(i),j=qc(i+=F),M=Kc(i),P.push(g-I*_,_+I*g,j+I*M,M-I*j,j,M);for(le=0;le<P.length;le+=2)g=P[le],_=P[le+1],P[le]=g*ae+_*se+k,P[le+1]=g*oe+_*ce+A;return P[le-2]=s,P[le-1]=c,P}}function nl(e){var t=(e+``).replace(Wc,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(Uc)||[],n=[],r=0,i=0,a=2/3,o=t.length,s=0,c=`ERROR: malformed path: `+e,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w=function(e,t,n,r){v=(n-e)/3,y=(r-t)/3,h.push(e+v,t+y,n-v,r-y,n,r)};if(!e||!isNaN(t[0])||isNaN(t[1]))return console.log(c),n;for(l=0;l<o;l++)if(x=p,isNaN(t[l])?(p=t[l].toUpperCase(),m=p!==t[l]):l--,d=+t[l+1],f=+t[l+2],m&&(d+=r,f+=i),l||(g=d,_=f),p===`M`)h&&(h.length<8?--n.length:s+=h.length,$c(h)),r=g=d,i=_=f,h=[d,f],n.push(h),l+=2,p=`L`;else if(p===`C`)h||=[0,0],m||(r=i=0),h.push(d,f,r+t[l+3]*1,i+t[l+4]*1,r+=t[l+5]*1,i+=t[l+6]*1),l+=6;else if(p===`S`)v=r,y=i,(x===`C`||x===`S`)&&(v+=r-h[h.length-4],y+=i-h[h.length-3]),m||(r=i=0),h.push(v,y,d,f,r+=t[l+3]*1,i+=t[l+4]*1),l+=4;else if(p===`Q`)v=r+(d-r)*a,y=i+(f-i)*a,m||(r=i=0),r+=t[l+3]*1,i+=t[l+4]*1,h.push(v,y,r+(d-r)*a,i+(f-i)*a,r,i),l+=4;else if(p===`T`)v=r-h[h.length-4],y=i-h[h.length-3],h.push(r+v,i+y,d+(r+v*1.5-d)*a,f+(i+y*1.5-f)*a,r=d,i=f),l+=2;else if(p===`H`)w(r,i,r=d,i),l+=1;else if(p===`V`)w(r,i,r,i=d+(m?i-r:0)),l+=1;else if(p===`L`||p===`Z`)p===`Z`&&(d=g,f=_,h.closed=!0),(p===`L`||Jc(r-d)>.5||Jc(i-f)>.5)&&(w(r,i,d,f),p===`L`&&(l+=2)),r=d,i=f;else if(p===`A`){if(S=t[l+4],C=t[l+5],v=t[l+6],y=t[l+7],u=7,S.length>1&&(S.length<3?(y=v,v=C,u--):(y=C,v=S.substr(2),u-=2),C=S.charAt(1),S=S.charAt(0)),b=tl(r,i,+t[l+1],+t[l+2],+t[l+3],+S,+C,(m?r:0)+v*1,(m?i:0)+y*1),l+=u,b)for(u=0;u<b.length;u++)h.push(b[u]);r=h[h.length-2],i=h[h.length-1]}else console.log(c);return l=h.length,l<6?(n.pop(),l=0):$c(h),n.totalPoints=s+l,n}function rl(e){Xc(e[0])&&(e=[e]);var t=``,n=e.length,r,i,a,o;for(i=0;i<n;i++){for(o=e[i],t+=`M`+Qc(o[0])+`,`+Qc(o[1])+` C`,r=o.length,a=2;a<r;a++)t+=Qc(o[a++])+`,`+Qc(o[a++])+` `+Qc(o[a++])+`,`+Qc(o[a++])+` `+Qc(o[a++])+`,`+Qc(o[a])+` `;o.closed&&(t+=`z`)}return t}var il,al,ol=function(){return il||typeof window<`u`&&(il=window.gsap)&&il.registerPlugin&&il},sl=function(){il=ol(),il?(il.registerEase(`_CE`,gl.create),al=1):console.warn(`Please gsap.registerPlugin(CustomEase)`)},cl=0x56bc75e2d63100000,ll=function(e){return~~(e*1e3+(e<0?-.5:.5))/1e3},ul=1,dl=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,fl=/[cLlsSaAhHvVtTqQ]/g,pl=function(e){var t=e.length,n=cl,r;for(r=1;r<t;r+=6)+e[r]<n&&(n=+e[r]);return n},ml=function(e,t,n){!n&&n!==0&&(n=Math.max(+e[e.length-1],+e[1]));var r=e[0]*-1,i=-n,a=e.length,o=1/(+e[a-2]+r),s=-t||(Math.abs(e[a-1]-+e[1])<.01*(e[a-2]-+e[0])?pl(e)+i:+e[a-1]+i),c;for(s=s?1/s:-o,c=0;c<a;c+=2)e[c]=(+e[c]+r)*o,e[c+1]=(+e[c+1]+i)*s},hl=function e(t,n,r,i,a,o,s,c,l,u,d){var f=(t+r)/2,p=(n+i)/2,m=(r+a)/2,h=(i+o)/2,g=(a+s)/2,_=(o+c)/2,v=(f+m)/2,y=(p+h)/2,b=(m+g)/2,x=(h+_)/2,S=(v+b)/2,C=(y+x)/2,w=s-t,T=c-n,E=Math.abs((r-s)*T-(i-c)*w),D=Math.abs((a-s)*T-(o-c)*w),O;return u||(u=[{x:t,y:n},{x:s,y:c}],d=1),u.splice(d||u.length-1,0,{x:S,y:C}),(E+D)*(E+D)>l*(w*w+T*T)&&(O=u.length,e(t,n,f,p,v,y,S,C,l,u,d),e(S,C,b,x,g,_,s,c,l,u,d+1+(u.length-O))),u},gl=function(){function e(e,t,n){al||sl(),this.id=e,ul&&this.setData(t,n)}var t=e.prototype;return t.setData=function(e,t){t||={},e||=`0,0,1,1`;var n=e.match(dl),r=1,i=[],a=[],o=t.precision||1,s=o<=1,c,l,u,d,f,p,m,h,g;if(this.data=e,(fl.test(e)||~e.indexOf(`M`)&&e.indexOf(`C`)<0)&&(n=nl(e)[0]),c=n.length,c===4)n.unshift(0,0),n.push(1,1),c=8;else if((c-2)%6)throw`Invalid CustomEase`;for((+n[0]!=0||+n[c-2]!=1)&&ml(n,t.height,t.originY),this.segment=n,d=2;d<c;d+=6)l={x:+n[d-2],y:+n[d-1]},u={x:+n[d+4],y:+n[d+5]},i.push(l,u),hl(l.x,l.y,+n[d],+n[d+1],+n[d+2],+n[d+3],u.x,u.y,1/(o*2e5),i,i.length-1);for(c=i.length,d=0;d<c;d++)m=i[d],h=i[d-1]||m,(m.x>h.x||h.y!==m.y&&h.x===m.x||m===h)&&m.x<=1?(h.cx=m.x-h.x,h.cy=m.y-h.y,h.n=m,h.nx=m.x,s&&d>1&&Math.abs(h.cy/h.cx-i[d-2].cy/i[d-2].cx)>2&&(s=0),h.cx<r&&(h.cx?r=h.cx:(h.cx=.001,d===c-1&&(h.x-=.001,r=Math.min(r,.001),s=0)))):(i.splice(d--,1),c--);if(c=1/r+1|0,f=1/c,p=0,m=i[0],s){for(d=0;d<c;d++)g=d*f,m.nx<g&&(m=i[++p]),l=m.y+(g-m.x)/m.cx*m.cy,a[d]={x:g,cx:f,y:l,cy:0,nx:9},d&&(a[d-1].cy=l-a[d-1].y);p=i[i.length-1],a[c-1].cy=p.y-l,a[c-1].cx=p.x-a[a.length-1].x}else{for(d=0;d<c;d++)m.nx<d*f&&(m=i[++p]),a[d]=m;p<i.length-1&&(a[d-1]=i[i.length-2])}return this.ease=function(e){var t=a[e*c|0]||a[c-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},this.ease.custom=this,this.id&&il&&il.registerEase(this.id,this.ease),this},t.getSVGData=function(t){return e.getSVGData(this,t)},e.create=function(t,n,r){return new e(t,n,r).ease},e.register=function(e){il=e,sl()},e.get=function(e){return il.parseEase(e)},e.getSVGData=function(t,n){n||={};var r=n.width||100,i=n.height||100,a=n.x||0,o=(n.y||0)+i,s=il.utils.toArray(n.path)[0],c,l,u,d,f,p,m,h,g,_;if(n.invert&&(i=-i,o=0),typeof t==`string`&&(t=il.parseEase(t)),t.custom&&(t=t.custom),t instanceof e)c=rl(el([t.segment.slice(0)],r,0,0,-i,a,o));else{for(c=[a,o],m=Math.max(5,(n.precision||1)*200),d=1/m,m+=2,h=5/m,g=ll(a+d*r),_=ll(o+t(d)*-i),l=(_-o)/(g-a),u=2;u<m;u++)f=ll(a+u*d*r),p=ll(o+t(u*d)*-i),(Math.abs((p-_)/(f-g)-l)>h||u===m-1)&&(c.push(g,_),l=(p-_)/(f-g)),g=f,_=p;c=`M`+c.join(`,`)}return s&&s.setAttribute(`d`,c),c},e}();gl.version=`3.15.0`,gl.headless=!0,ol()&&il.registerPlugin(gl);var _l;$.registerPlugin(Hc,gl),gl.create(`morph-open`,`0.15, 0.85, 0.2, 1`),gl.create(`morph-close`,`0.4, 0, 0.2, 1`);var vl={fromAttribute:e=>e!==`false`&&e!==null,toAttribute:e=>e?``:null},yl=class extends U{static{_l=this}constructor(...e){super(...e),this.target=``,this.open=!1,this.modal=!0,this.placement=`center`,this.expandedWidth=`22rem`,this.expandedHeight=`18rem`,this.closeOnClickOutside=!0,this.closeOnEsc=!0,this.showCloseButton=!1,this.morphLabel=!1,this.morphLabelSelector=``,this.hasBackdrop=!0,this.hideTarget=!1,this.coverTarget=!1,this.autoSize=!1,this.blurContent=!1,this.debug=!1,this._hasHeader=!1,this._hasFooter=!1,this._hasTriggerLabel=!1,this._targetEl=null,this._isAnimating=!1,this._visible=!1,this._handlingOpenChange=!1,this._zIndex=100,this._morphEls={text:null,icon:null},this._targetSnapshot=null,this._originFallbacks=[],this._targetStylesCache=new Map,this._onTargetClick=()=>this.show(),this._onDocKeydown=e=>this._handleDocKeydown(e),this._onDocClick=e=>{!this.open||!this._visible||!this.closeOnClickOutside||e.composedPath().includes(this._panel)||this._targetEl&&e.composedPath().includes(this._targetEl)||this.hide()}}static{this._openStack=[]}connectedCallback(){super.connectedCallback(),this._resolveTarget(),document.addEventListener(`keydown`,this._onDocKeydown),document.addEventListener(`click`,this._onDocClick)}disconnectedCallback(){document.removeEventListener(`keydown`,this._onDocKeydown),document.removeEventListener(`click`,this._onDocClick),this._targetEl&&this._targetEl.removeEventListener(`click`,this._onTargetClick);let e=_l._openStack.indexOf(this);e>-1&&_l._openStack.splice(e,1),this.style.removeProperty(`z-index`),this.style.removeProperty(`--_z-index`),this.style.removeProperty(`--_backdrop-duration`),this.style.removeProperty(`--_backdrop-ease`),this._cleanupMorphElements(),this._restoreTargetContent(),super.disconnectedCallback()}updated(e){super.updated(e),e.has(`target`)&&this._resolveTarget(),e.has(`open`)&&!this._handlingOpenChange&&(this.open?this.show():this.hide())}_resolveTarget(){if(!this.target)return;let e=document.querySelector(this.target);e&&(this._targetEl&&this._targetEl!==e&&this._targetEl.removeEventListener(`click`,this._onTargetClick),this._targetEl=e,this._targetEl.addEventListener(`click`,this._onTargetClick))}show(){if(!(this._isAnimating||this._visible)){if(this._targetEl||this._resolveTarget(),!this._targetEl){console.warn(`[moni-morph-modal] cannot show: target not found`);return}this._captureOriginFallbacks(this._targetEl),this._isAnimating=!0,this._handlingOpenChange=!0,this.open=!0,this._handlingOpenChange=!1,_l._openStack.push(this),this._zIndex=1e3+_l._openStack.length,this.style.zIndex=String(this._zIndex),this.style.setProperty(`--_z-index`,String(this._zIndex)),this.style.setProperty(`--_backdrop-duration`,`0.38s`),this.style.setProperty(`--_backdrop-ease`,`cubic-bezier(0.15, 0.85, 0.2, 1)`),this._backdrop&&$.set(this._backdrop,{clearProps:`opacity,transition`}),this._hideTargetContent(),this.updateComplete.then(async()=>{if(!this._targetEl||!this._panel||!this._inner){this._isAnimating=!1;return}this._panel.classList.add(`is-animating`),await new Promise(e=>requestAnimationFrame(e));let e=this._getTargetState(this._targetEl);this._debugMorph(`open`,this._targetEl,`target`,[this._targetEl]);let t=this._panel;this._applyRect(t,this._toPanelCoordinateRect(e.rect)),t.style.backgroundColor=e.backgroundColor,t.style.color=e.color,t.style.borderRadius=e.borderRadius,t.style.boxShadow=e.boxShadow,t.style.zIndex=String(this._zIndex),t.style.visibility=`visible`,t.style.opacity=`1`,t.style.pointerEvents=`auto`,this._backdrop&&(this._backdrop.style.zIndex=String(this._zIndex-1)),this._cleanupMorphElements();let n=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,r=this._shouldMorphLabel()&&!n,i=[],a=null,o=this.shadowRoot.querySelector(`.header-morph-wrapper`);if(r){if(this._animateLabelOpen(),a=this._resolveMorphSource(),a.text){let e=this._createMorphText(a.text.content,a.text.sourceEl);this._positionElement(e,a.text.rect),i.push(e)}if(a.icon){let e=this._createMorphIcon(a.icon.element);this._positionElement(e,a.icon.rect),i.push(e)}i.length===0&&(r=!1)}r&&o&&(o.style.opacity=`0`);let s=Hc.getState(t,{props:`backgroundColor,borderRadius,color,boxShadow`}),c=Hc.getState(i,{props:`color,fontSize,fontWeight,lineHeight`}),l;if(this.autoSize){let e=t.style.getPropertyValue(`--_panel-width`),n=t.style.getPropertyValue(`--_panel-height`),r=t.style.width,i=t.style.height;t.style.width=`auto`,t.style.height=`auto`,t.style.setProperty(`--_panel-width`,`max-content`),t.style.setProperty(`--_panel-height`,`max-content`);let a=this.shadowRoot.querySelector(`.body`),o=a?a.style.overflow:``;a&&(a.style.overflow=`visible`),l={width:this._inner.scrollWidth,height:this._inner.scrollHeight},t.style.setProperty(`--_panel-width`,e),t.style.setProperty(`--_panel-height`,n),t.style.width=r,t.style.height=i,a&&(a.style.overflow=o)}let u=this._computeFinalRect(e.rect,l);if(t.style.setProperty(`--_panel-width`,`${u.width}px`),t.style.setProperty(`--_panel-height`,`${u.height}px`),this._applyRect(t,u),t.style.backgroundColor=``,t.style.color=``,t.style.borderRadius=``,t.style.boxShadow=``,r&&a){let e=this._measureHeaderTextRect(),t=this._measureHeaderIconRect(),n=window.getComputedStyle(this._header);this._morphEls.text&&e&&(this._positionElement(this._morphEls.text,e),this._morphEls.text.style.color=n.color||`var(--on-surface)`,this._morphEls.text.style.fontSize=n.fontSize||`inherit`,this._morphEls.text.style.fontWeight=n.fontWeight||`inherit`,this._morphEls.text.style.lineHeight=n.lineHeight||`inherit`),this._morphEls.icon&&t&&(this._positionElement(this._morphEls.icon,t),this._morphEls.icon.style.color=n.color||`var(--on-surface)`)}if(Hc.from(s,{targets:t,duration:.38,ease:`morph-open`,zIndex:this._zIndex,onComplete:()=>{this._isAnimating=!1,this._visible=!0,this._cleanupMorphElements(),o&&(o.style.opacity=`1`)}}),i.length>0){this.blurContent&&$.set(i,{filter:`blur(16px)`});let e={targets:i,duration:.38,ease:`morph-open`,zIndex:this._zIndex+10};this.blurContent&&(e.filter=`blur(0px)`,e.clearProps=`filter`),Hc.from(c,e)}let d=[this.shadowRoot.querySelector(`.body`),this.shadowRoot.querySelector(`footer`),this.shadowRoot.querySelector(`.close-btn`)].filter(Boolean),f=this.blurContent?`blur(16px)`:`blur(0px)`;$.set(d,{opacity:0,y:8,filter:f}),$.fromTo(d,{opacity:0,y:8,filter:f},{opacity:1,y:0,filter:`blur(0px)`,duration:.32,delay:.08,stagger:.04,ease:`power2.out`,onComplete:()=>{$.set(d,{clearProps:`opacity,transform,filter`}),this._panel.classList.remove(`is-animating`)}})})}}showFrom(e){e&&(this._targetEl=e,this.show())}resizeTo(e,t,n=`center`){if(this.expandedWidth=e,this.expandedHeight=t,!this._visible||!this._panel||!this._targetEl)return;let r=this._computeFinalRect(this._targetEl.getBoundingClientRect()),i=this.parentElement?.closest(`.lab-canvas, [data-morph-coordinate-space]`),a=i?getComputedStyle(i).transform:`none`,o=1,s=1,c;if(i&&a!==`none`){let e=new DOMMatrix(a);o=Math.hypot(e.a,e.b)||1,s=Math.hypot(e.c,e.d)||1,c=i.getBoundingClientRect()}if(n===`top-left`){let e=this._panel.getBoundingClientRect(),t=e.left,n=e.top;c&&(t=(e.left-c.left)/o,n=(e.top-c.top)/s),r=new DOMRect(t,n,r.width,r.height)}else if(n===`center`&&c){let e=window.innerWidth/2-r.width*o/2,t=window.innerHeight/2-r.height*s/2;r=new DOMRect((e-c.left)/o,(t-c.top)/s,r.width,r.height)}this._panel.classList.add(`is-animating`),$.to(this._panel,{top:r.top,left:r.left,width:r.width,height:r.height,"--_panel-width":`${r.width}px`,"--_panel-height":`${r.height}px`,duration:.32,ease:`morph-open`,overwrite:!0,onComplete:()=>this._panel?.classList.remove(`is-animating`),onInterrupt:()=>this._panel?.classList.remove(`is-animating`)})}_ensureSolidPanelBackground(){if(!this._panel)return;let e=window.getComputedStyle(this._panel).backgroundColor;if(this._isColorTransparent(e)){let e=this._findSolidBackground(this._panel);if(e)this._panel.style.backgroundColor=e;else{let e=getComputedStyle(document.body).getPropertyValue(`--surface-container-high`).trim();this._panel.style.backgroundColor=e||`#2d2d2d`}}}hide(){if(this._isAnimating||!this._visible)return;this._isAnimating=!0,this._panel.classList.add(`is-animating`),this._ensureSolidPanelBackground(),this.style.setProperty(`--_backdrop-duration`,`0.3s`),this.style.setProperty(`--_backdrop-ease`,`cubic-bezier(0.4, 0, 0.2, 1)`);let e=this.shadowRoot.querySelector(`.body`),t=this.shadowRoot.querySelector(`footer`),n=this.shadowRoot.querySelector(`.close-btn`),r=this.shadowRoot.querySelector(`.header-morph-wrapper`),i=[e,t,n,r].filter(Boolean),a=this.blurContent?`blur(12px)`:`blur(6px)`;$.fromTo(i,{opacity:1,filter:`blur(0px)`},{opacity:0,filter:a,duration:.12,ease:`power2.in`,onComplete:()=>{let e=this._panel,t=this._resolveClosingTarget();this._cleanupMorphElements();let n=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,a=!1,o=[],s=null,c=null;if(a){this._animateLabelClose(),s=this._resolveMorphSource();let e=this._measureHeaderTextRect(),t=this._measureHeaderIconRect(),n=window.getComputedStyle(this._header);if(s.text&&e){let t=this._createMorphText(s.text.content,s.text.sourceEl);this._positionElement(t,e),t.style.color=n.color||`var(--on-surface)`,t.style.fontSize=n.fontSize||`inherit`,t.style.fontWeight=n.fontWeight||`inherit`,t.style.lineHeight=n.lineHeight||`inherit`,o.push(t)}if(s.icon&&t){let e=this._createMorphIcon(s.icon.element);this._positionElement(e,t),e.style.color=n.color||`var(--on-surface)`,o.push(e)}o.length===0&&(a=!1)}if(t&&!a&&!n){let e=this._resolveVisualTarget(t),n=e.getBoundingClientRect();if(n.width>0&&n.height>0){t===this._targetEl&&this._restoreTargetContent();let r=this._createTargetSnapshot(e,n);t===this._targetEl&&this._hideTargetContent(),r.style.opacity=`0`,c={element:r,rect:n,source:e}}}a&&r&&(r.style.opacity=`0`);let l=Hc.getState(e,{props:`backgroundColor,borderRadius,color,boxShadow`}),u=Hc.getState(o,{props:`color,fontSize,fontWeight,lineHeight,opacity`});if(!t){$.to(this._backdrop,{opacity:0,duration:n?.01:.22,ease:`power2.in`}),$.to(e,{autoAlpha:0,scale:.92,duration:n?.01:.22,ease:`power2.in`,overwrite:!0,onComplete:()=>{$.set(e,{clearProps:`transform`}),this._finishHide(i,r)}});return}let d=this._getTargetState(t);if(c){this._runTargetMorphTimeline(e,d,c,i,r,n);return}let f;if(this.autoSize){let t=e.style.getPropertyValue(`--_panel-width`),n=e.style.getPropertyValue(`--_panel-height`),r=e.style.width,i=e.style.height;e.style.width=`auto`,e.style.height=`auto`,e.style.setProperty(`--_panel-width`,`max-content`),e.style.setProperty(`--_panel-height`,`max-content`);let a=this.shadowRoot.querySelector(`.body`),o=a?a.style.overflow:``;a&&(a.style.overflow=`visible`),f={width:this._inner.scrollWidth,height:this._inner.scrollHeight},e.style.setProperty(`--_panel-width`,t),e.style.setProperty(`--_panel-height`,n),e.style.width=r,e.style.height=i,a&&(a.style.overflow=o)}let p=this._computeFinalRect(d.rect,f);if(e.style.setProperty(`--_panel-width`,`${p.width}px`),e.style.setProperty(`--_panel-height`,`${p.height}px`),this._applyRect(e,this._toPanelCoordinateRect(d.rect)),e.style.backgroundColor=d.backgroundColor,e.style.color=d.color,e.style.borderRadius=d.borderRadius,e.style.boxShadow=d.boxShadow,a&&s&&(this._morphEls.text&&s.text&&(this._positionElement(this._morphEls.text,s.text.rect),this._morphEls.text.style.color=window.getComputedStyle(s.text.sourceEl).color||`inherit`,this._morphEls.text.style.fontSize=window.getComputedStyle(s.text.sourceEl).fontSize||`inherit`,this._morphEls.text.style.fontWeight=window.getComputedStyle(s.text.sourceEl).fontWeight||`inherit`,this._morphEls.text.style.lineHeight=window.getComputedStyle(s.text.sourceEl).lineHeight||`inherit`),this._morphEls.icon&&s.icon&&(this._positionElement(this._morphEls.icon,s.icon.rect),this._morphEls.icon.style.color=window.getComputedStyle(s.icon.element).color||`inherit`)),Hc.from(l,{targets:e,duration:.3,ease:`morph-close`,zIndex:this._zIndex,onComplete:()=>this._finishHide(i,r)}),$.to(this._backdrop,{opacity:0,duration:.3,ease:`power2.inOut`}),o.length>0){this.blurContent&&$.set(o,{filter:`blur(0px)`});let e={targets:o,duration:.3,ease:`morph-close`,zIndex:this._zIndex+10};this.blurContent&&(e.filter=`blur(12px)`),Hc.from(u,e)}}})}_runTargetMorphTimeline(e,t,n,r,i,a){let o=this._toPanelCoordinateRect(e.getBoundingClientRect()),s=this._toPanelCoordinateRect(t.rect),c=this._toPanelCoordinateRect(n.rect),l=n.element,u=(n.source.getAnimations?.({subtree:!0})??[]).reduce((e,t)=>{let n=t.effect?.getComputedTiming(),r=typeof n?.endTime==`number`?n.endTime:0,i=typeof t.currentTime==`number`?t.currentTime:0;return Math.max(e,Math.max(0,r-i)/1e3)},0),d=Math.min(1.2,Math.max(.46,u)),f={x:o.left+o.width/2,y:o.top+o.height/2},p={x:s.left+s.width/2,y:s.top+s.height/2},m=p.x-f.x,h=p.y-f.y,g=Math.hypot(m,h)||1,_=Math.min(360,Math.max(48,g*.72)),v={x:-h/g,y:m/g},y={x:(f.x+p.x)/2,y:(f.y+p.y)/2},b=this._toPanelCoordinateRect(new DOMRect(window.innerWidth/2,window.innerHeight/2,0,0)),x=[1,-1].map(e=>({x:y.x+v.x*_*e,y:y.y+v.y*_*e})),S=e=>Math.abs(Math.abs(h)>=Math.abs(m)?e.x-b.x:e.y-b.y),C=S(x[0])<=S(x[1])?x[0]:x[1];if(Object.assign(l.style,{position:`absolute`,inset:`50% auto auto 50%`,width:`${c.width}px`,height:`${c.height}px`,transform:`translate(-50%, -50%) scale(.78)`,color:window.getComputedStyle(n.source).color||t.color,opacity:`0`}),a){e.appendChild(l),this._applyRect(e,s),e.style.backgroundColor=t.backgroundColor,e.style.color=t.color,e.style.borderRadius=t.borderRadius,e.style.boxShadow=t.boxShadow,this._backdrop.style.opacity=`0`,l.style.opacity=`1`,this._finishHide(r,i);return}let w=$.timeline({onComplete:()=>{$.set(e,{clearProps:`transform`}),this._finishHide(r,i)}});e.style.left=`${o.left}px`,e.style.top=`${o.top}px`,e.style.width=`${o.width}px`,e.style.height=`${o.height}px`;let T=window.getComputedStyle(e),E={backgroundColor:T.backgroundColor,color:T.color,borderRadius:T.borderRadius,boxShadow:T.boxShadow};this._backdrop.style.transition=`none`,this._backdrop.style.opacity=`1`;let D={progress:0},O=!1;this.debug&&console.log(`[moni-morph-modal] arc`,{start:f,control:C,end:p,distance:g,arc:_,morphDuration:d}),w.addLabel(`morph`,0).to(D,{progress:1,duration:d,ease:`power2.inOut`,onUpdate:()=>{let t=D.progress,r=this._getTargetState(n.source),i=this._toPanelCoordinateRect(r.rect),a=this._readTransformState(n.source),c={x:i.left+i.width/2,y:i.top+i.height/2},u=c.x-f.x,d=c.y-f.y,p=Math.hypot(u,d)||1,m=Math.min(360,Math.max(48,p*.72)),h={x:-d/p,y:u/p},g={x:(f.x+c.x)/2,y:(f.y+c.y)/2},_=[1,-1].map(e=>({x:g.x+h.x*m*e,y:g.y+h.y*m*e})),v=S(_[0])<=S(_[1])?_[0]:_[1];this._backdrop.style.opacity=String(Math.max(0,1-t));let y=1-t,b=y*y*f.x+2*y*t*v.x+t*t*c.x,x=y*y*f.y+2*y*t*v.y+t*t*c.y,C=n.source.offsetWidth||i.width,w=n.source.offsetHeight||i.height,T=n.source.offsetWidth||s.width,k=n.source.offsetHeight||s.height,A=o.width+(T-o.width)*t+(C-T),j=o.height+(k-o.height)*t+(w-k);e.style.width=`${A}px`,e.style.height=`${j}px`,$.set(e,{x:b-A/2-o.left,y:x-j/2-o.top,rotation:a.rotation*t,skewX:a.skewX*t,scaleX:1+(a.scaleX-1)*t,scaleY:1+(a.scaleY-1)*t,backgroundColor:$.utils.interpolate(E.backgroundColor,r.backgroundColor,t),color:$.utils.interpolate(E.color,r.color,t),borderRadius:$.utils.interpolate(E.borderRadius,r.borderRadius,t),boxShadow:$.utils.interpolate(E.boxShadow,r.boxShadow,t)});let M=Math.max(0,Math.min(1,(t-.6)/.4));!O&&M>0&&(e.appendChild(l),O=!0),l.style.width=`${C}px`,l.style.height=`${w}px`;let ee=.82+M*.18;$.set(l,{opacity:M,scaleX:A/Math.max(1,C)*ee,scaleY:j/Math.max(1,w)*ee})}},`morph`).addLabel(`target-fade`).to(e,{autoAlpha:0,duration:.08,ease:`power1.out`,onStart:()=>{l.style.visibility=`hidden`,this._restoreTargetContent(),e.style.backgroundColor=`transparent`,e.style.boxShadow=`none`,e.style.borderColor=`transparent`}},`morph+=${d}`)}_finishHide(e,t){let n=this._panel;n.style.visibility=`hidden`,n.style.opacity=`0`,n.style.pointerEvents=`none`,this._visible=!1,this._handlingOpenChange=!0,this.open=!1,this._handlingOpenChange=!1,this._isAnimating=!1,n.classList.remove(`is-animating`),n.style.removeProperty(`--_panel-width`),n.style.removeProperty(`--_panel-height`),this._cleanupMorphElements(),this._restoreTargetContent(),$.set(e,{clearProps:`opacity,transform,filter`}),t&&(t.style.opacity=`1`),this.style.removeProperty(`z-index`),this.style.removeProperty(`--_z-index`),this.style.removeProperty(`--_backdrop-duration`),this.style.removeProperty(`--_backdrop-ease`);let r=_l._openStack.indexOf(this);r>-1&&_l._openStack.splice(r,1)}_captureOriginFallbacks(e){this._originFallbacks=[];let t=this._getComposedParent(e);for(;t&&t!==document.body&&t!==document.documentElement;)this._originFallbacks.push(t),t=this._getComposedParent(t)}_getComposedParent(e){if(e.parentElement)return e.parentElement;let t=e.getRootNode();return t instanceof ShadowRoot?t.host:null}_resolveClosingTarget(){this.target&&this._resolveTarget();let e=[this._targetEl,...this._originFallbacks].filter((e,t,n)=>!!e&&n.indexOf(e)===t),t=e.find(e=>this._isUsableClosingTarget(e))??null,n=t?t===this._targetEl?`target`:`ancestor`:`fade`;return this._debugMorph(`close`,t,n,e),t}_debugMorph(e,t,n,r){if(!this.debug)return;let i=r.map((e,t)=>{let n=e.getBoundingClientRect();return{index:t,element:`${e.tagName.toLowerCase()}${e.id?`#${e.id}`:``}`,connected:e.isConnected,usable:this._isUsableClosingTarget(e),x:Math.round(n.x),y:Math.round(n.y),width:Math.round(n.width),height:Math.round(n.height)}});console.groupCollapsed(`[moni-morph-modal] ${e} → ${n}`),console.log(`Origin:`,this._targetEl),console.log(`Resolved morph target:`,t),console.table(i),console.groupEnd()}_isUsableClosingTarget(e){if(!e?.isConnected)return!1;let t=e.getBoundingClientRect();if(t.width<2||t.height<2||t.right<=0||t.bottom<=0||t.left>=window.innerWidth||t.top>=window.innerHeight)return!1;let n=e;for(;n&&n!==document.body;){let e=getComputedStyle(n);if(e.display===`none`||e.visibility===`hidden`||e.contentVisibility===`hidden`||Number.parseFloat(e.opacity||`1`)===0&&!this._targetStylesCache.has(n))return!1;n=this._getComposedParent(n)}return!0}toggle(){this._visible||this.open?this.hide():this.show()}_handleDocKeydown(e){e.key!==`Escape`||!this.closeOnEsc||_l._openStack[_l._openStack.length-1]===this&&(e.stopPropagation(),this.hide())}_hideTargetContent(){if(!this._targetEl)return;let e=(e,t)=>{this._targetStylesCache.has(e)||this._targetStylesCache.set(e,{opacity:e.style.opacity,color:e.style.color}),t===`opacity`&&(e.style.opacity=`0`),t===`color`&&(e.style.color=`transparent`)};if(this.hideTarget){e(this._targetEl,`opacity`);return}if(this._targetEl.tagName===`MONI-BUTTON`){let t=this._getMoniButtonParts();t.label&&e(t.label,`opacity`),t.icon&&e(t.icon,`opacity`),t.iconTrailing&&e(t.iconTrailing,`opacity`)}else if(this._targetEl.tagName===`MONI-FAB`){let t=this._targetEl.shadowRoot?.querySelector(`.icon`),n=this._targetEl.shadowRoot?.querySelector(`.label`);t&&e(t,`opacity`),n&&e(n,`opacity`)}else{e(this._targetEl,`color`);let t=this._targetEl.querySelector(`moni-icon, svg, [class*="icon"]`);t&&e(t,`opacity`)}}_restoreTargetContent(){if(!this._targetEl)return;let e=e=>{if(this._targetStylesCache.has(e)){let t=this._targetStylesCache.get(e);e.style.opacity=t.opacity,e.style.color=t.color,this._targetStylesCache.delete(e)}};if(this.hideTarget){e(this._targetEl);return}if(this._targetEl.tagName===`MONI-BUTTON`){let t=this._getMoniButtonParts();t.label&&e(t.label),t.icon&&e(t.icon),t.iconTrailing&&e(t.iconTrailing)}else if(this._targetEl.tagName===`MONI-FAB`){let t=this._targetEl.shadowRoot?.querySelector(`.icon`),n=this._targetEl.shadowRoot?.querySelector(`.label`);t&&e(t),n&&e(n)}else{e(this._targetEl);let t=this._targetEl.querySelector(`moni-icon, svg, [class*="icon"]`);t&&e(t)}}_onHeaderSlotChange(e){let t=e.target;this._hasHeader=t.assignedNodes({flatten:!0}).length>0}_onFooterSlotChange(e){let t=e.target;this._hasFooter=t.assignedNodes({flatten:!0}).length>0}_onTriggerLabelSlotChange(e){let t=e.target;this._hasTriggerLabel=t.assignedNodes({flatten:!0}).length>0}_getTriggerLabelNodes(){return(this.shadowRoot?.querySelector(`slot[name="trigger-label"]`))?.assignedNodes({flatten:!0})??[]}_shouldMorphLabel(){return this.morphLabel&&!!this._targetEl&&(this._hasHeader||this._hasTriggerLabel)}_cleanupMorphElements(){this._targetSnapshot&&=(this._targetSnapshot.remove(),null),this._morphEls.text&&(this._morphEls.text.remove(),this._morphEls.text=null),this._morphEls.icon&&(this._morphEls.icon.remove(),this._morphEls.icon=null)}_animateLabelOpen(){}_animateLabelClose(){}_createMorphText(e,t){let n=document.createElement(`div`);n.className=`morph-text`,n.setAttribute(`data-flip-id`,`morph-text-${this.target}`),n.setAttribute(`aria-hidden`,`true`),n.textContent=e;let r=window.getComputedStyle(t);return n.style.position=`fixed`,n.style.pointerEvents=`none`,n.style.zIndex=String(this._zIndex+10),n.style.display=`inline-flex`,n.style.alignItems=r.alignItems===`normal`?`center`:r.alignItems,n.style.justifyContent=r.justifyContent===`normal`?`flex-start`:r.justifyContent,n.style.whiteSpace=`nowrap`,n.style.color=r.color||`inherit`,n.style.fontFamily=r.fontFamily||`inherit`,n.style.fontSize=r.fontSize||`inherit`,n.style.fontWeight=r.fontWeight||`inherit`,n.style.lineHeight=r.lineHeight||`inherit`,n.style.letterSpacing=r.letterSpacing||`inherit`,this.shadowRoot.appendChild(n),this._morphEls.text=n,n}_createMorphIcon(e){let t=document.createElement(`div`);if(t.className=`morph-icon`,t.setAttribute(`data-flip-id`,`morph-icon-${this.target}`),t.setAttribute(`aria-hidden`,`true`),e.tagName===`MONI-ICON`){let n=document.createElement(`span`);n.textContent=e.getAttribute(`name`)||``;let r=window.getComputedStyle(e);n.style.display=`inline-flex`,n.style.alignItems=`center`,n.style.justifyContent=`center`,n.style.fontFamily=r.fontFamily||`var(--font-icon)`,n.style.fontSize=r.fontSize||`1.125rem`,n.style.inlineSize=r.inlineSize||`1.125rem`,n.style.blockSize=r.blockSize||`1.125rem`,n.style.lineHeight=`1`,n.style.color=`inherit`,n.style.fontWeight=`normal`,n.style.fontStyle=`normal`,n.style.letterSpacing=`normal`,n.style.textTransform=`none`,n.style.whiteSpace=`nowrap`,n.style.wordWrap=`normal`,n.style.direction=`ltr`,n.style.fontFeatureSettings=`'liga'`,n.style.fontVariationSettings=`'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24`,n.style.setProperty(`-webkit-font-smoothing`,`antialiased`),t.appendChild(n)}else t.appendChild(e.cloneNode(!0));let n=window.getComputedStyle(e);return t.style.position=`fixed`,t.style.pointerEvents=`none`,t.style.zIndex=String(this._zIndex+10),t.style.display=`inline-flex`,t.style.alignItems=`center`,t.style.justifyContent=`center`,t.style.color=n.color||`inherit`,t.style.inlineSize=n.inlineSize||`1.125rem`,t.style.blockSize=n.blockSize||`1.125rem`,this.shadowRoot.appendChild(t),this._morphEls.icon=t,t}_positionElement(e,t){let n=this._toPanelCoordinateRect(t);e.style.top=`${n.top}px`,e.style.left=`${n.left}px`,e.style.width=`${n.width}px`,e.style.height=`${n.height}px`}_toPanelCoordinateRect(e){let t=this.parentElement?.closest(`.lab-canvas, [data-morph-coordinate-space]`);if(!t)return e;let n=getComputedStyle(t).transform;if(!n||n===`none`)return e;let r=1,i=1;if(typeof DOMMatrix<`u`){let e=new DOMMatrix(n);r=Math.hypot(e.a,e.b)||1,i=Math.hypot(e.c,e.d)||1}else{let e=n.match(/^matrix\(([^)]+)\)$/),t=n.match(/^scale\(([^)]+)\)$/);if(e){let t=e[1].split(`,`).map(Number);r=Math.hypot(t[0],t[1])||1,i=Math.hypot(t[2],t[3])||1}else if(t){let e=t[1].split(/[,\s]+/).map(Number);r=e[0]||1,i=e[1]||r}}let a=t.getBoundingClientRect();return new DOMRect((e.left-a.left)/r,(e.top-a.top)/i,e.width/r,e.height/i)}_getMoniButtonParts(){let e=this._targetEl?.shadowRoot;return{label:e?.querySelector(`[part="label"]`)??null,icon:e?.querySelector(`[part="icon"]`)??null,iconTrailing:e?.querySelector(`[part="icon-trailing"]`)??null}}_resolveMorphSource(){let e={text:null,icon:null};if(!this._targetEl)return e;if(this._hasTriggerLabel){let t=this._getTriggerLabelNodes();if(t.length>0){let n=document.createElement(`div`);for(let e of t)n.appendChild(e.cloneNode(!0));n.style.position=`fixed`,n.style.visibility=`hidden`,n.style.pointerEvents=`none`,this.shadowRoot.appendChild(n);let r=this._targetEl.getBoundingClientRect();n.remove(),e.text={content:n.textContent?.trim()||``,rect:r,sourceEl:this._targetEl}}return e}if(this._targetEl.tagName===`MONI-BUTTON`){let t=this._getMoniButtonParts();if(t.label&&(e.text={content:this._targetEl.textContent?.trim()||``,rect:t.label.getBoundingClientRect(),sourceEl:t.label}),t.icon){let n=t.icon.querySelector(`moni-icon, svg`)||t.icon;e.icon={element:n,rect:n.getBoundingClientRect()}}return e}let t=this._targetEl;if(this.morphLabelSelector){let e=this._targetEl.querySelector(this.morphLabelSelector);e&&(t=e)}let n=t.textContent?.trim()||``;n&&(e.text={content:n,rect:t.getBoundingClientRect(),sourceEl:t});let r=t.querySelector(`moni-icon, svg, [class*="icon"]`);return r&&(e.icon={element:r,rect:r.getBoundingClientRect()}),e}_measureHeaderTextRect(){if(!this._header)return null;let e=(this.shadowRoot?.querySelector(`slot[name="header"]`))?.assignedNodes({flatten:!0})??[];for(let t of e){if(t.nodeType===Node.TEXT_NODE&&t.textContent?.trim()){let e=document.createRange();return e.selectNode(t),e.getBoundingClientRect()}if(t.nodeType===Node.ELEMENT_NODE){let e=t;if(e.tagName===`MONI-ICON`||e.tagName===`SVG`)continue;let n=Array.from(e.childNodes);for(let e of n){if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim()){let t=document.createRange();return t.selectNode(e),t.getBoundingClientRect()}if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.tagName!==`MONI-ICON`&&t.tagName!==`SVG`&&t.textContent?.trim())return t.getBoundingClientRect()}}if(e.textContent?.trim())return e.getBoundingClientRect()}}return this._header.getBoundingClientRect()}_measureHeaderIconRect(){let e=this._measureHeaderTextRect();if(!e)return null;let t=(this.shadowRoot?.querySelector(`slot[name="header"]`))?.assignedNodes({flatten:!0})??[];for(let e of t)if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.tagName===`MONI-ICON`||t.tagName===`SVG`)return t.getBoundingClientRect();let n=t.querySelector(`moni-icon, svg`);if(n)return n.getBoundingClientRect()}return new DOMRect(e.left-24-12,e.top+e.height/2-12,24,24)}_findSolidBackground(e){let t=[e,...Array.from(e.querySelectorAll(`*`))];for(let e of t){let t=window.getComputedStyle(e).backgroundColor;if(!this._isColorTransparent(t))return t}if(e.shadowRoot){let t=Array.from(e.shadowRoot.querySelectorAll(`*`));for(let e of t){let t=window.getComputedStyle(e).backgroundColor;if(!this._isColorTransparent(t))return t}}return null}_getTargetState(e){let t=this._resolveVisualTarget(e),n=t.getBoundingClientRect(),r=window.getComputedStyle(t).backgroundColor;if(this._isColorTransparent(r)){let e=window.getComputedStyle(t,`::before`).backgroundColor;if(!this._isColorTransparent(e))r=e;else{let e=window.getComputedStyle(t,`::after`).backgroundColor;if(!this._isColorTransparent(e))r=e;else{let e=this._findSolidBackground(t);e&&(r=e)}}}this._isColorTransparent(r)&&this._panel&&(r=window.getComputedStyle(this._panel).backgroundColor);let i=window.getComputedStyle(t);return{rect:n,backgroundColor:r,color:i.color||`var(--on-surface)`,borderRadius:i.borderRadius||`1.25rem`,boxShadow:i.boxShadow||`none`}}_resolveVisualTarget(e){if(e.tagName===`MONI-BUTTON`)return e.shadowRoot?.querySelector(`.button`)??e;if(e.tagName===`MONI-FAB`)return e.shadowRoot?.querySelector(`button`)??e;if(e.tagName===`MONI-FAB-MENU`){let t=e.shadowRoot?.querySelector(`.trigger`);return t?.shadowRoot?.querySelector(`button`)??t??e}return e}_createTargetSnapshot(e,t){this._targetSnapshot?.remove();let n=document.createElement(`div`);n.className=`morph-target-snapshot`,n.setAttribute(`aria-hidden`,`true`);let r=this._cloneComposedNode(e);return r&&(n.appendChild(r),r instanceof HTMLElement&&![`IMG`,`VIDEO`,`CANVAS`,`SVG`,`PICTURE`].includes(e.tagName)&&(Object.assign(r.style,{background:`transparent`,backgroundColor:`transparent`,boxShadow:`none`,borderColor:`transparent`,outline:`none`,position:`relative`,inset:`auto`,transform:`none`,opacity:`1`,visibility:`visible`,width:`100%`,height:`100%`}),e.tagName===`BUTTON`&&(r.style.whiteSpace=`nowrap`,r.querySelectorAll(`span, [part~="label"]`).forEach(e=>{e.style.whiteSpace=`nowrap`})))),Object.assign(n.style,{width:`${t.width}px`,height:`${t.height}px`,overflow:`hidden`,pointerEvents:`none`}),this._targetSnapshot=n,n}_cloneComposedNode(e){if(e.nodeType===Node.TEXT_NODE)return e.cloneNode(!1);if(!(e instanceof Element))return null;if(e instanceof HTMLSlotElement){let t=document.createDocumentFragment(),n=e.assignedNodes({flatten:!0});for(let r of n.length?n:Array.from(e.childNodes)){let e=this._cloneComposedNode(r);e&&t.appendChild(e)}return t}let t=e.shadowRoot?document.createElement(`div`):e.cloneNode(!1);e instanceof HTMLImageElement&&t instanceof HTMLImageElement&&(t.loading=`eager`,t.decoding=`sync`,e.currentSrc&&(t.src=e.currentSrc)),t.removeAttribute(`id`),t.removeAttribute(`name`),t.setAttribute(`aria-hidden`,`true`);let n=window.getComputedStyle(e);for(let e=0;e<n.length;e+=1){let r=n.item(e);t.style.setProperty(r,n.getPropertyValue(r),n.getPropertyPriority(r))}let r=e.shadowRoot?Array.from(e.shadowRoot.childNodes).filter(e=>!(e instanceof HTMLStyleElement)):Array.from(e.childNodes);for(let e of r){let n=this._cloneComposedNode(e);n&&t.appendChild(n)}return t}_isColorTransparent(e){if(!e)return!0;let t=e.replace(/\s/g,``).toLowerCase();return t===`rgba(0,0,0,0)`||t===`transparent`||t===``||t.includes(`,0)`)||t.includes(`/0)`)}_readTransformState(e){let t=window.getComputedStyle(e).transform;if(!t||t===`none`)return{rotation:0,skewX:0,scaleX:1,scaleY:1};try{let e=t.match(/matrix(?:3d)?\(([^)]+)\)/)?.[1].split(`,`).map(e=>Number.parseFloat(e.trim())),n,r,i,a;if(e?.length===6)[n,r,i,a]=e;else if(e?.length===16)n=e[0],r=e[1],i=e[4],a=e[5];else{let e=new DOMMatrix(t);({a:n,b:r,c:i,d:a}=e)}let o=Math.hypot(n,r)||1,s=(n*a-r*i)/o||1;return{rotation:180/Math.PI*Math.atan2(r,n),skewX:Math.atan2(n*i+r*a,o*o)*(180/Math.PI),scaleX:o,scaleY:s}}catch{return{rotation:0,skewX:0,scaleX:1,scaleY:1}}}_applyRect(e,t){e.style.top=`${t.top}px`,e.style.left=`${t.left}px`,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`}_computeFinalRect(e,t){let n=window.innerWidth,r=window.innerHeight,i=this.autoSize&&t?t.width:this._parseSize(this.expandedWidth,n),a=this.autoSize&&t?t.height:this._parseSize(this.expandedHeight,r);i=Math.min(i,n-32),a=Math.min(a,r-32);let o=e.top,s=e.left;switch(this.placement){case`viewport-center`:s=n/2-i/2,o=r/2-a/2;break;case`viewport-top`:s=n/2-i/2,o=16;break;case`viewport-bottom`:s=n/2-i/2,o=r-a-16;break;case`viewport-left`:s=16,o=r/2-a/2;break;case`viewport-right`:s=n-i-16,o=r/2-a/2;break;case`viewport-top-left`:s=16,o=16;break;case`viewport-top-right`:s=n-i-16,o=16;break;case`viewport-bottom-left`:s=16,o=r-a-16;break;case`viewport-bottom-right`:s=n-i-16,o=r-a-16;break;case`center`:s=e.left+e.width/2-i/2,o=e.top+e.height/2-a/2;break;case`top`:s=e.left+e.width/2-i/2,o=this.coverTarget?e.top+e.height-a:e.top-a;break;case`top-start`:s=e.left+e.width-i,o=this.coverTarget?e.top+e.height-a:e.top-a;break;case`top-end`:s=e.left,o=this.coverTarget?e.top+e.height-a:e.top-a;break;case`bottom`:s=e.left+e.width/2-i/2,o=this.coverTarget?e.top:e.top+e.height;break;case`bottom-start`:s=e.left+e.width-i,o=this.coverTarget?e.top:e.top+e.height;break;case`bottom-end`:s=e.left,o=this.coverTarget?e.top:e.top+e.height;break;case`left`:s=this.coverTarget?e.left+e.width-i:e.left-i,o=e.top+e.height/2-a/2;break;case`left-start`:s=this.coverTarget?e.left+e.width-i:e.left-i,o=e.top+e.height-a;break;case`left-end`:s=this.coverTarget?e.left+e.width-i:e.left-i,o=e.top;break;case`right`:s=this.coverTarget?e.left:e.left+e.width,o=e.top+e.height/2-a/2;break;case`right-start`:s=this.coverTarget?e.left:e.left+e.width,o=e.top+e.height-a;break;case`right-end`:s=this.coverTarget?e.left:e.left+e.width,o=e.top}return s=Math.max(16,Math.min(s,n-i-16)),o=Math.max(16,Math.min(o,r-a-16)),new DOMRect(s,o,i,a)}_parseSize(e,t){let n=parseFloat(e);return Number.isNaN(n)?352:e.endsWith(`px`)?n:e.endsWith(`rem`)||e.endsWith(`em`)?n*16:e.endsWith(`%`)?n/100*t:e.endsWith(`vw`)?n/100*window.innerWidth:e.endsWith(`vh`)?n/100*window.innerHeight:n}static{this.styles=[W,g`
|
|
7434
7449
|
:host {
|
|
7435
7450
|
display: contents;
|
|
7436
7451
|
}
|
|
@@ -7549,8 +7564,8 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7549
7564
|
.trigger-label-slot {
|
|
7550
7565
|
display: none;
|
|
7551
7566
|
}
|
|
7552
|
-
`]}render(){let e=this._visible||this.open,t=!this._hasHeader&&!this.showCloseButton;return
|
|
7553
|
-
${this.hasBackdrop?
|
|
7567
|
+
`]}render(){let e=this._visible||this.open,t=!this._hasHeader&&!this.showCloseButton;return L`
|
|
7568
|
+
${this.hasBackdrop?L`
|
|
7554
7569
|
<div
|
|
7555
7570
|
class="backdrop ${e?`open`:``}"
|
|
7556
7571
|
part="backdrop"
|
|
@@ -7564,7 +7579,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7564
7579
|
part="header"
|
|
7565
7580
|
>
|
|
7566
7581
|
<div class="header-morph-wrapper"><slot name="header" @slotchange=${this._onHeaderSlotChange}></slot></div>
|
|
7567
|
-
${this.showCloseButton?
|
|
7582
|
+
${this.showCloseButton?L`
|
|
7568
7583
|
<button
|
|
7569
7584
|
class="close-btn"
|
|
7570
7585
|
@click=${this.hide}
|
|
@@ -7586,7 +7601,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7586
7601
|
<div class="trigger-label-slot">
|
|
7587
7602
|
<slot name="trigger-label" @slotchange=${this._onTriggerLabelSlotChange}></slot>
|
|
7588
7603
|
</div>
|
|
7589
|
-
`}};
|
|
7604
|
+
`}};G([B({reflect:!0})],yl.prototype,`target`,void 0),G([B({type:Boolean,reflect:!0,converter:vl})],yl.prototype,`open`,void 0),G([B({type:Boolean,reflect:!0,converter:vl})],yl.prototype,`modal`,void 0),G([B({reflect:!0})],yl.prototype,`placement`,void 0),G([B({reflect:!0,attribute:`expanded-width`})],yl.prototype,`expandedWidth`,void 0),G([B({reflect:!0,attribute:`expanded-height`})],yl.prototype,`expandedHeight`,void 0),G([B({type:Boolean,reflect:!0,attribute:`close-on-click-outside`,converter:vl})],yl.prototype,`closeOnClickOutside`,void 0),G([B({type:Boolean,reflect:!0,attribute:`close-on-esc`,converter:vl})],yl.prototype,`closeOnEsc`,void 0),G([B({type:Boolean,reflect:!0,attribute:`show-close-button`,converter:vl})],yl.prototype,`showCloseButton`,void 0),G([B({type:Boolean,reflect:!0,attribute:`morph-label`,converter:vl})],yl.prototype,`morphLabel`,void 0),G([B({reflect:!0,attribute:`morph-label-selector`})],yl.prototype,`morphLabelSelector`,void 0),G([B({type:Boolean,reflect:!0,attribute:`has-backdrop`,converter:vl})],yl.prototype,`hasBackdrop`,void 0),G([B({type:Boolean,reflect:!0,attribute:`hide-target`,converter:vl})],yl.prototype,`hideTarget`,void 0),G([B({type:Boolean,reflect:!0,attribute:`cover-target`,converter:vl})],yl.prototype,`coverTarget`,void 0),G([B({type:Boolean,reflect:!0,attribute:`auto-size`,converter:vl})],yl.prototype,`autoSize`,void 0),G([B({type:Boolean,reflect:!0,attribute:`blur-content`,converter:vl})],yl.prototype,`blurContent`,void 0),G([B({type:Boolean,reflect:!0,converter:vl})],yl.prototype,`debug`,void 0),G([H(`.panel`)],yl.prototype,`_panel`,void 0),G([H(`.panel-inner`)],yl.prototype,`_inner`,void 0),G([H(`.backdrop`)],yl.prototype,`_backdrop`,void 0),G([H(`header`)],yl.prototype,`_header`,void 0),G([V()],yl.prototype,`_hasHeader`,void 0),G([V()],yl.prototype,`_hasFooter`,void 0),G([V()],yl.prototype,`_hasTriggerLabel`,void 0),yl=_l=G([z(`moni-morph-modal`)],yl);var bl=class extends U{constructor(...e){super(...e),this.items=[],this.layout=`multi-browse`,this.auto=!0,this.largeWidth=220,this.mediumWidth=96,this.smallWidth=48,this.gap=8,this.padding=16,this.borderRadius=28,this.showAll=!1,this.showAllText=`Show all`,this.headerText=``,this.hideNav=!1,this.infinite=!1,this.autoplay=!1,this.autoplayInterval=3e3,this._containerWidth=0,this._slottedItems=[],this._hasSlottedShowAll=!1,this._resizeObserver=null,this._logicalItemInViewport=[],this._isDragging=!1,this._dragStartX=0,this._scrollLeftAtDragStart=0,this._pointerVelocity=0,this._lastPointerTime=0,this._lastPointerX=0,this._totalDraggedDistance=0,this._animationFrameId=null,this._isMobile=!1,this._tickerTarget=0,this._tickerCurrent=0,this._isTicking=!1,this._infiniteInitialized=!1,this._autoplayTimer=null,this._cardSetX=[],this._cardSetWidth=[],this._imgSetX=[],this._titleSetOpacity=[],this._tick=()=>{let e=$.ticker.deltaRatio(),t=this._isMobile?.08:.15;this._tickerCurrent+=(this._tickerTarget-this._tickerCurrent)*t*e,Math.abs(this._tickerTarget-this._tickerCurrent)<5e-4&&(this._tickerCurrent=this._tickerTarget,$.ticker.remove(this._tick),this._isTicking=!1,this._checkInfiniteWrap()),this._applyLayout(this._tickerCurrent)},this._scheduleLayout=()=>{this._scrollContainer&&(this._tickerTarget=this._scrollContainer.scrollLeft/this.itemSize,this._isTicking||(this._isTicking=!0,$.ticker.add(this._tick)))},this.updateLayout=(e=!1)=>{if(!(!this._scrollContainer||!this._cards||this._cards.length===0)){if(this._cardSetX.length!==this._cards.length&&this._buildQuickSetters(),this.infinite&&!this._infiniteInitialized&&this.effectiveItems.length>0){let e=this.effectiveItems.length*this._visualCardsMultiplier,t=this._snapSetsCount,n=Math.floor(t/2);requestAnimationFrame(()=>{setTimeout(()=>{this._scrollContainer&&(this._scrollContainer.scrollWidth,this._scrollContainer.scrollLeft=n*e*this.itemSize,this._tickerTarget=this._scrollContainer.scrollLeft/this.itemSize,this._tickerCurrent=this._tickerTarget,this._applyLayout(this._tickerCurrent))},20)}),this._infiniteInitialized=!0}this._tickerTarget=this._scrollContainer.scrollLeft/this.itemSize,e||!this._isTicking&&this._tickerCurrent===0?(this._tickerCurrent=this._tickerTarget,this._applyLayout(this._tickerCurrent)):this._isTicking||(this._isTicking=!0,$.ticker.add(this._tick))}}}willUpdate(e){super.willUpdate(e);for(let e of[`largeWidth`,`mediumWidth`,`smallWidth`,`gap`,`padding`,`borderRadius`,`autoplayInterval`]){let t=this[e];if(typeof t!=`string`)continue;let n=Number(t);Number.isFinite(n)&&(this[e]=n)}}get effectiveItems(){return this.items&&this.items.length>0?this.items:this._slottedItems}static{this.styles=[W,g`
|
|
7590
7605
|
:host {
|
|
7591
7606
|
display: block;
|
|
7592
7607
|
width: 100%;
|
|
@@ -7810,7 +7825,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7810
7825
|
direction: ltr;
|
|
7811
7826
|
-webkit-font-smoothing: antialiased;
|
|
7812
7827
|
}
|
|
7813
|
-
`]}connectedCallback(){if(super.connectedCallback(),typeof ResizeObserver<`u`&&(this._resizeObserver=new ResizeObserver(e=>{for(let t of e)this._containerWidth=t.contentRect.width,this.updateLayout(!0),this.requestUpdate()}),this._resizeObserver.observe(this)),typeof window<`u`&&typeof window.matchMedia==`function`){let e=window.matchMedia(`(max-width: 600px)`);this._isMobile=e.matches;let t=e=>{this._isMobile=e.matches};e.addEventListener(`change`,t),this.__mqlCleanup=()=>e.removeEventListener(`change`,t)}}disconnectedCallback(){this._resizeObserver&&this._resizeObserver.disconnect(),this._animationFrameId!==null&&(cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null),Q.ticker.remove(this._tick),this._isTicking=!1,this.__mqlCleanup&&(this.__mqlCleanup(),delete this.__mqlCleanup),super.disconnectedCallback()}firstUpdated(){let e=this.shadowRoot?.querySelector(`slot:not([name])`);e&&this._handleSlotChange({target:e});let t=this.shadowRoot?.querySelector(`slot[name="show-all"]`);t&&this._handleShowAllSlotChange({target:t}),this._buildQuickSetters(),this.updateLayout(!0),this.autoplay&&this._startAutoplay()}updated(e){super.updated(e),(e.has(`layout`)||e.has(`largeWidth`)||e.has(`mediumWidth`)||e.has(`smallWidth`)||e.has(`gap`)||e.has(`padding`)||e.has(`items`)||e.has(`hideNav`)||e.has(`infinite`)||e.has(`autoplay`)||e.has(`autoplayInterval`)||e.has(`_containerWidth`)||e.has(`_slottedItems`)||e.has(`_hasSlottedShowAll`))&&((e.has(`infinite`)||e.has(`items`)||e.has(`_slottedItems`))&&(this._infiniteInitialized=!1),e.has(`layout`)&&this._scrollContainer&&(this._scrollContainer.scrollLeft=0,this._infiniteInitialized=!1,this._scrollContainer.style.scrollSnapType=this.layout===`uncontained`?`none`:`x mandatory`),this.updateLayout(!0),(e.has(`autoplay`)||e.has(`autoplayInterval`)||e.has(`items`)||e.has(`_slottedItems`))&&(this.autoplay?this._startAutoplay():this._stopAutoplay()))}get computedLayout(){let e=this._containerWidth||this.getBoundingClientRect().width||360,t=this.gap,n=e-2*this.padding,r=this.largeWidth,i=this.mediumWidth,a=this.smallWidth,o=1;if(this.auto){if(this.layout===`uncontained`)r=Math.min(n,260);else if(this.layout===`hero`)a=48,o=Math.max(1,Math.floor((n-a)/(250+t))),r=(n-a-o*t)/o,r<150&&(o=1,r=n-a-t);else{a=48;let e=1,s=220,c=1/0;for(let r=1;r<=10;r++){let i=(n-a-(r+1)*t)/(r+.45);if(i>=140&&i<=340){let t=Math.abs(i-220);t<c&&(c=t,e=r,s=i)}}c===1/0?(o=1,r=(n-a-2*t)/1.45):(o=e,r=s),i=.45*r}}else r=this.largeWidth,i=this.mediumWidth,a=this.smallWidth,o=this.layout===`hero`?1:this.layout===`uncontained`?Math.max(1,Math.floor(n/(r+t))):1;return{largeItemWidth:r,mediumItemWidth:i,smallItemWidth:a,largeItemCount:o}}get itemSize(){return this.computedLayout.largeItemWidth+this.gap}_getCardLayout(e){let{largeItemWidth:t,mediumItemWidth:n,smallItemWidth:r,largeItemCount:i}=this.computedLayout,a=this.gap,o=this.padding,s=t,c=o,l=1,u=!0;if(this.layout===`uncontained`){s=t,c=o+e*(t+a),l=1;let n=this._containerWidth||this.getBoundingClientRect().width||360;u=c+s>0&&c<n}else if(this.layout===`hero`){let n=o+i*(t+a),d=-r;if(e<=-1)s=r,c=d+(e- -1)*(r+Math.max(a,o)),l=0,u=!1;else if(e<=0)s=Q.utils.interpolate(r,t,e+1),c=Q.utils.interpolate(d,o,e+1),l=Q.utils.interpolate(0,1,e+1),u=!0;else if(e<=i-1)s=t,c=o+e*(t+a),l=1,u=!0;else if(e<=i){let d=e-(i-1),f=o+(i-1)*(t+a);s=Q.utils.interpolate(t,r,d),c=Q.utils.interpolate(f,n,d),l=Q.utils.interpolate(1,0,d),u=!0}else{let t=this._containerWidth||this.getBoundingClientRect().width||360;s=r;let a=Math.max(r+o,t-n);c=n+(e-i)*a,l=0,u=!1}}else{let d=o+i*(t+a),f=d+n+a,p=-r;if(e<=-1)s=r,c=p+(e- -1)*(r+Math.max(a,o)),l=0,u=!1;else if(e<=0)s=Q.utils.interpolate(r,t,e+1),c=Q.utils.interpolate(p,o,e+1),l=Q.utils.interpolate(0,1,e+1),u=!0;else if(e<=i-1)s=t,c=o+e*(t+a),l=1,u=!0;else if(e<=i){let r=e-(i-1),f=o+(i-1)*(t+a);s=Q.utils.interpolate(t,n,r),c=Q.utils.interpolate(f,d,r),l=Q.utils.interpolate(1,0,r),u=!0}else if(e<=i+1){let t=e-i;s=Q.utils.interpolate(n,r,t),c=Q.utils.interpolate(d,f,t),l=0,u=!0}else{let t=this._containerWidth||this.getBoundingClientRect().width||360;s=r;let n=Math.max(r+o,t-f);c=f+(e-(i+1))*n,l=0,u=!1}}return{width:s,x:c,opacity:l,visible:u}}_buildQuickSetters(){!this._cards||this._cards.length===0||(this._cardSetX=[],this._cardSetWidth=[],this._imgSetX=[],this._titleSetOpacity=[],this._logicalItemInViewport=Array(this.effectiveItems.length).fill(!1),this._cards.forEach(e=>{this._cardSetX.push(Q.quickSetter(e,`x`,`px`)),this._cardSetWidth.push(Q.quickSetter(e,`width`,`px`));let t=e.querySelector(`img`);this._imgSetX.push(t?Q.quickSetter(t,`x`,`px`):(()=>{}));let n=e.querySelector(`.card-title`);this._titleSetOpacity.push(n?Q.quickSetter(n,`opacity`):(()=>{}))}))}_applyLayout(e){let t=this._isMobile,n=this._cards.length,r=new Map,i=new Map;for(let a=0;a<n;a++){let o=a-e,s=this._cards[a],c=Number(s.dataset.index||0),l=this.infinite?c%this.effectiveItems.length:c;if(i.has(l)||i.set(l,s),this.infinite&&(o=a-e%n,o>n/2&&(o-=n),o<-n/2&&(o+=n)),o<-15||o>15){this._cardSetX[a](-9999),this._titleSetOpacity[a](0);continue}let u=this._getCardLayout(o);if(u.visible&&(r.has(l)||r.set(l,s)),this._cardSetX[a](u.x),this._cardSetWidth[a](u.width),!t){let e=Math.max(-1,Math.min(1,o));this._imgSetX[a](e*-25)}this._titleSetOpacity[a](u.opacity)}for(let e=0;e<this.effectiveItems.length;e++){let t=r.has(e);if(this._logicalItemInViewport[e]!==t){this._logicalItemInViewport[e]=t;let n=t?`moni-item-entered-viewport`:`moni-item-left-viewport`,a=r.get(e)||i.get(e)||null;Je(this,n,{detail:{item:this.effectiveItems[e],index:e,card:a}})}}}get _visualCardsMultiplier(){if(!this.infinite||this.effectiveItems.length===0)return 1;let e=this.effectiveItems.length;return Math.max(1,Math.ceil(15/e))}get _snapSetsCount(){if(!this.infinite||this.effectiveItems.length===0)return 1;let e=this.effectiveItems.length*this._visualCardsMultiplier,t=Math.ceil(1e3/e);return t%2==0&&(t+=1),Math.max(3,t)}get _snapItemsCount(){if(this.infinite){let e=this.effectiveItems.length,t=this._visualCardsMultiplier;return this._snapSetsCount*(e*t)}return this.effectiveItems.length}_checkInfiniteWrap(){if(!this.infinite||this.effectiveItems.length===0||!this._scrollContainer)return;let e=this.effectiveItems.length*this._visualCardsMultiplier,t=this._snapSetsCount,n=Math.floor(t/2),r=e*this.itemSize,i=this._scrollContainer.scrollLeft,a=Math.floor(i/r);if(a!==n){let e=(n-a)*r,t=this._scrollContainer.style.scrollSnapType,i=this._scrollContainer.style.scrollBehavior;this._scrollContainer.style.scrollSnapType=`none`,this._scrollContainer.style.scrollBehavior=`auto`,this._scrollContainer.scrollLeft+=e,this._tickerTarget=this._scrollContainer.scrollLeft/this.itemSize,this._tickerCurrent=this._tickerTarget,this._applyLayout(this._tickerCurrent),this._scrollContainer.style.scrollBehavior=i,this._isDragging&&(this._scrollLeftAtDragStart+=e),t&&t!==`none`&&requestAnimationFrame(()=>{this._scrollContainer&&!this._isDragging&&(this._scrollContainer.style.scrollSnapType=t)})}}_startAutoplay(){this._stopAutoplay(),this.autoplay&&this.effectiveItems.length>0&&(this._autoplayTimer=setInterval(()=>{this._isDragging||this._scrollNext()},this.autoplayInterval))}_stopAutoplay(){this._autoplayTimer&&=(clearInterval(this._autoplayTimer),null)}_handleMouseEnter(){}_handleMouseLeave(){this._handleMouseUp()}_handleMouseDown(e){Q.killTweensOf(this._scrollContainer),this._checkInfiniteWrap(),this._isDragging=!0,this._totalDraggedDistance=0,this._scrollContainer.style.scrollBehavior=`auto`,this._scrollContainer.style.scrollSnapType=`none`,this._dragStartX=e.pageX-this._scrollContainer.offsetLeft,this._scrollLeftAtDragStart=this._scrollContainer.scrollLeft,this._pointerVelocity=0,this._lastPointerX=e.pageX,this._lastPointerTime=performance.now()}_handleMouseMove(e){if(!this._isDragging)return;e.preventDefault();let t=e.pageX,n=t-this._scrollContainer.offsetLeft;this._scrollContainer.scrollLeft=this._scrollLeftAtDragStart+(this._dragStartX-n)*1.25;let r=performance.now(),i=r-this._lastPointerTime;i>0&&(this._pointerVelocity=(t-this._lastPointerX)/i),this._totalDraggedDistance+=Math.abs(t-this._lastPointerX),this._lastPointerX=t,this._lastPointerTime=r}_handleMouseUp(){if(!this._isDragging)return;this._isDragging=!1,performance.now()-this._lastPointerTime>100&&(this._pointerVelocity=0);let e=350+Math.abs(this._pointerVelocity)*300,t=this._scrollContainer.scrollLeft-this._pointerVelocity*e,n=15*this.itemSize;if(t<this._scrollContainer.scrollLeft-n?t=this._scrollContainer.scrollLeft-n:t>this._scrollContainer.scrollLeft+n&&(t=this._scrollContainer.scrollLeft+n),this.layout!==`uncontained`){this._scrollContainer.style.scrollSnapType=`none`;let e=Math.round(t/this.itemSize),n=this.effectiveItems.length>0?this._snapItemsCount-1:0;e=Math.max(0,Math.min(n,e));let r=e*this.itemSize,i=Math.round(this._scrollContainer.scrollLeft/this.itemSize),a=Math.abs(e-i),o=Math.min(.85,.25+a*.04);this._scrollContainer.style.scrollBehavior=`auto`,Q.to(this._scrollContainer,{scrollLeft:r,duration:o,ease:`power3.out`,onComplete:()=>{!this._isDragging&&this._scrollContainer&&(this._scrollContainer.style.scrollSnapType=`x mandatory`)}})}}_handleTouchStart(e){Q.killTweensOf(this._scrollContainer),this._checkInfiniteWrap(),this._isDragging=!0,this._totalDraggedDistance=0,this._scrollContainer.style.scrollBehavior=`auto`,this._scrollContainer.style.scrollSnapType=`none`;let t=e.touches[0];this._dragStartX=t.pageX-this._scrollContainer.offsetLeft,this._scrollLeftAtDragStart=this._scrollContainer.scrollLeft,this._pointerVelocity=0,this._lastPointerX=t.pageX,this._lastPointerTime=performance.now()}_handleTouchMove(e){if(!this._isDragging)return;let t=e.touches[0].pageX,n=t-this._scrollContainer.offsetLeft;this._scrollContainer.scrollLeft=this._scrollLeftAtDragStart+(this._dragStartX-n);let r=performance.now(),i=r-this._lastPointerTime;i>0&&(this._pointerVelocity=(t-this._lastPointerX)/i),this._totalDraggedDistance+=Math.abs(t-this._lastPointerX),this._lastPointerX=t,this._lastPointerTime=r}_handleTouchEnd(){this._handleMouseUp()}_handleWheel(e){if(Math.abs(e.deltaY)>Math.abs(e.deltaX)){let t=this._scrollContainer.scrollWidth-this._scrollContainer.clientWidth,n=this._scrollContainer.scrollLeft,r=n<=0,i=n>=t-1;if(e.deltaY<0&&r||e.deltaY>0&&i)return;e.preventDefault(),this._scrollContainer.style.scrollSnapType=`none`;let a=e.deltaY;e.deltaMode===1?a*=40:e.deltaMode===2&&(a*=800),this._scrollContainer.scrollLeft+=a,this._wheelTimeout&&clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(()=>{this.layout!==`uncontained`&&!this._isDragging&&(this._scrollContainer.style.scrollSnapType=`x mandatory`)},150)}}_handleCardClick(e,t,n){if(this._totalDraggedDistance>8){e.preventDefault(),e.stopPropagation();return}let r=n%this.effectiveItems.length;this.dispatchEvent(new CustomEvent(`item-click`,{bubbles:!0,composed:!0,detail:{item:t,index:r}})),Je(this,`moni-item-click`,{detail:{item:t,index:r}})}_scrollPrevious(){let e=this._scrollContainer.scrollLeft-this.itemSize;this._scrollContainer.style.scrollBehavior=`smooth`,this._scrollContainer.scrollTo({left:e,behavior:`smooth`})}_scrollNext(){let e=this._scrollContainer.scrollLeft+this.itemSize;this._scrollContainer.style.scrollBehavior=`smooth`,this._scrollContainer.scrollTo({left:e,behavior:`smooth`})}_handleShowAllClick(e){let t=e.target;t.tagName.toLowerCase()===`a`&&t.getAttribute(`href`)===`#`&&e.preventDefault(),this.dispatchEvent(new CustomEvent(`show-all-click`,{bubbles:!0,composed:!0})),Je(this,`moni-show-all-click`)}_handleShowAllSlotChange(e){let t=e.target,n=typeof t.assignedElements==`function`?t.assignedElements({flatten:!0}):[];n.length===0&&(n=t.assignedNodes().filter(e=>e.nodeType===1)),n.length===0&&(n=Array.from(this.querySelectorAll(`[slot="show-all"]`))),this._hasSlottedShowAll=n.length>0}_handleSlotChange(e){let t=e.target,n=typeof t.assignedElements==`function`?t.assignedElements({flatten:!0}):[];n.length===0&&(n=t.assignedNodes().filter(e=>e.nodeType===1)),n.length===0&&(n=Array.from(this.children).filter(e=>e.getAttribute(`slot`)!==`show-all`));let r=[];for(let e of n)if(e.tagName.toLowerCase()===`img`){let t=e;r.push({title:t.getAttribute(`title`)||t.getAttribute(`alt`)||``,img:t.src})}else if(e.tagName.toLowerCase()===`a`){let t=e,n=t.querySelector(`img`);n&&r.push({title:n.getAttribute(`title`)||n.getAttribute(`alt`)||t.getAttribute(`title`)||``,img:n.src,href:t.href,target:t.target})}this._slottedItems=r;let i=!!this.querySelector(`[slot="show-all"]`);i!==this._hasSlottedShowAll&&(this._hasSlottedShowAll=i),this.updateComplete.then(()=>{this.updateLayout(!0),Je(this,`moni-slot-items-changed`,{detail:{items:this._slottedItems}})})}render(){let{largeItemWidth:e,mediumItemWidth:t,smallItemWidth:n}=this.computedLayout,r=this.effectiveItems&&this.effectiveItems.length>0,i=this._hasSlottedShowAll||!!this.querySelector(`[slot="show-all"]`),a=this.headerText||this.showAll||i,o=128;o=this.layout===`hero`?n+this.gap:this.layout===`uncontained`?16:t+n+2*this.gap;let s=(this._containerWidth||this.getBoundingClientRect().width||360)-e-this.padding+400;o<s&&(o=s);let c=r?this._snapItemsCount:0,l=this.effectiveItems;if(this.infinite&&r){let e=this._visualCardsMultiplier;l=[];for(let t=0;t<e;t++)l=l.concat(this.effectiveItems)}let u=r?c*e+(c-1)*this.gap:0,d=r&&this._scrollContainer&&this._scrollContainer.scrollWidth>this._scrollContainer.clientWidth,f=this.infinite||d&&this._scrollContainer.scrollLeft>5,p=this.infinite||d&&this._scrollContainer.scrollWidth-this._scrollContainer.scrollLeft-this._scrollContainer.clientWidth>5;return R`
|
|
7828
|
+
`]}connectedCallback(){if(super.connectedCallback(),typeof ResizeObserver<`u`&&(this._resizeObserver=new ResizeObserver(e=>{for(let t of e)this._containerWidth=t.contentRect.width,this.updateLayout(!0),this.requestUpdate()}),this._resizeObserver.observe(this)),typeof window<`u`&&typeof window.matchMedia==`function`){let e=window.matchMedia(`(max-width: 600px)`);this._isMobile=e.matches;let t=e=>{this._isMobile=e.matches};e.addEventListener(`change`,t),this.__mqlCleanup=()=>e.removeEventListener(`change`,t)}}disconnectedCallback(){this._resizeObserver&&this._resizeObserver.disconnect(),this._animationFrameId!==null&&(cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null),$.ticker.remove(this._tick),this._isTicking=!1,this.__mqlCleanup&&(this.__mqlCleanup(),delete this.__mqlCleanup),super.disconnectedCallback()}firstUpdated(){let e=this.shadowRoot?.querySelector(`slot:not([name])`);e&&this._handleSlotChange({target:e});let t=this.shadowRoot?.querySelector(`slot[name="show-all"]`);t&&this._handleShowAllSlotChange({target:t}),this._buildQuickSetters(),this.updateLayout(!0),this.autoplay&&this._startAutoplay()}updated(e){super.updated(e),(e.has(`layout`)||e.has(`largeWidth`)||e.has(`mediumWidth`)||e.has(`smallWidth`)||e.has(`gap`)||e.has(`padding`)||e.has(`items`)||e.has(`hideNav`)||e.has(`infinite`)||e.has(`autoplay`)||e.has(`autoplayInterval`)||e.has(`_containerWidth`)||e.has(`_slottedItems`)||e.has(`_hasSlottedShowAll`))&&((e.has(`infinite`)||e.has(`items`)||e.has(`_slottedItems`))&&(this._infiniteInitialized=!1),e.has(`layout`)&&this._scrollContainer&&(this._scrollContainer.scrollLeft=0,this._infiniteInitialized=!1,this._scrollContainer.style.scrollSnapType=this.layout===`uncontained`?`none`:`x mandatory`),this.updateLayout(!0),(e.has(`autoplay`)||e.has(`autoplayInterval`)||e.has(`items`)||e.has(`_slottedItems`))&&(this.autoplay?this._startAutoplay():this._stopAutoplay()))}get computedLayout(){let e=this._containerWidth||this.getBoundingClientRect().width||360,t=this.gap,n=e-2*this.padding,r=this.largeWidth,i=this.mediumWidth,a=this.smallWidth,o=1;if(this.auto){if(this.layout===`uncontained`)r=Math.min(n,260);else if(this.layout===`hero`)a=48,o=Math.max(1,Math.floor((n-a)/(250+t))),r=(n-a-o*t)/o,r<150&&(o=1,r=n-a-t);else{a=48;let e=1,s=220,c=1/0;for(let r=1;r<=10;r++){let i=(n-a-(r+1)*t)/(r+.45);if(i>=140&&i<=340){let t=Math.abs(i-220);t<c&&(c=t,e=r,s=i)}}c===1/0?(o=1,r=(n-a-2*t)/1.45):(o=e,r=s),i=.45*r}}else r=this.largeWidth,i=this.mediumWidth,a=this.smallWidth,o=this.layout===`hero`?1:this.layout===`uncontained`?Math.max(1,Math.floor(n/(r+t))):1;return{largeItemWidth:r,mediumItemWidth:i,smallItemWidth:a,largeItemCount:o}}get itemSize(){return this.computedLayout.largeItemWidth+this.gap}_getCardLayout(e){let{largeItemWidth:t,mediumItemWidth:n,smallItemWidth:r,largeItemCount:i}=this.computedLayout,a=this.gap,o=this.padding,s=t,c=o,l=1,u=!0;if(this.layout===`uncontained`){s=t,c=o+e*(t+a),l=1;let n=this._containerWidth||this.getBoundingClientRect().width||360;u=c+s>0&&c<n}else if(this.layout===`hero`){let n=o+i*(t+a),d=-r;if(e<=-1)s=r,c=d+(e- -1)*(r+Math.max(a,o)),l=0,u=!1;else if(e<=0)s=$.utils.interpolate(r,t,e+1),c=$.utils.interpolate(d,o,e+1),l=$.utils.interpolate(0,1,e+1),u=!0;else if(e<=i-1)s=t,c=o+e*(t+a),l=1,u=!0;else if(e<=i){let d=e-(i-1),f=o+(i-1)*(t+a);s=$.utils.interpolate(t,r,d),c=$.utils.interpolate(f,n,d),l=$.utils.interpolate(1,0,d),u=!0}else{let t=this._containerWidth||this.getBoundingClientRect().width||360;s=r;let a=Math.max(r+o,t-n);c=n+(e-i)*a,l=0,u=!1}}else{let d=o+i*(t+a),f=d+n+a,p=-r;if(e<=-1)s=r,c=p+(e- -1)*(r+Math.max(a,o)),l=0,u=!1;else if(e<=0)s=$.utils.interpolate(r,t,e+1),c=$.utils.interpolate(p,o,e+1),l=$.utils.interpolate(0,1,e+1),u=!0;else if(e<=i-1)s=t,c=o+e*(t+a),l=1,u=!0;else if(e<=i){let r=e-(i-1),f=o+(i-1)*(t+a);s=$.utils.interpolate(t,n,r),c=$.utils.interpolate(f,d,r),l=$.utils.interpolate(1,0,r),u=!0}else if(e<=i+1){let t=e-i;s=$.utils.interpolate(n,r,t),c=$.utils.interpolate(d,f,t),l=0,u=!0}else{let t=this._containerWidth||this.getBoundingClientRect().width||360;s=r;let n=Math.max(r+o,t-f);c=f+(e-(i+1))*n,l=0,u=!1}}return{width:s,x:c,opacity:l,visible:u}}_buildQuickSetters(){!this._cards||this._cards.length===0||(this._cardSetX=[],this._cardSetWidth=[],this._imgSetX=[],this._titleSetOpacity=[],this._logicalItemInViewport=Array(this.effectiveItems.length).fill(!1),this._cards.forEach(e=>{this._cardSetX.push($.quickSetter(e,`x`,`px`)),this._cardSetWidth.push($.quickSetter(e,`width`,`px`));let t=e.querySelector(`img`);this._imgSetX.push(t?$.quickSetter(t,`x`,`px`):(()=>{}));let n=e.querySelector(`.card-title`);this._titleSetOpacity.push(n?$.quickSetter(n,`opacity`):(()=>{}))}))}_applyLayout(e){let t=this._isMobile,n=this._cards.length,r=new Map,i=new Map;for(let a=0;a<n;a++){let o=a-e,s=this._cards[a],c=Number(s.dataset.index||0),l=this.infinite?c%this.effectiveItems.length:c;if(i.has(l)||i.set(l,s),this.infinite&&(o=a-e%n,o>n/2&&(o-=n),o<-n/2&&(o+=n)),o<-15||o>15){this._cardSetX[a](-9999),this._titleSetOpacity[a](0);continue}let u=this._getCardLayout(o);if(u.visible&&(r.has(l)||r.set(l,s)),this._cardSetX[a](u.x),this._cardSetWidth[a](u.width),!t){let e=Math.max(-1,Math.min(1,o));this._imgSetX[a](e*-25)}this._titleSetOpacity[a](u.opacity)}for(let e=0;e<this.effectiveItems.length;e++){let t=r.has(e);if(this._logicalItemInViewport[e]!==t){this._logicalItemInViewport[e]=t;let n=t?`moni-item-entered-viewport`:`moni-item-left-viewport`,a=r.get(e)||i.get(e)||null;Ye(this,n,{detail:{item:this.effectiveItems[e],index:e,card:a}})}}}get _visualCardsMultiplier(){if(!this.infinite||this.effectiveItems.length===0)return 1;let e=this.effectiveItems.length;return Math.max(1,Math.ceil(15/e))}get _snapSetsCount(){if(!this.infinite||this.effectiveItems.length===0)return 1;let e=this.effectiveItems.length*this._visualCardsMultiplier,t=Math.ceil(1e3/e);return t%2==0&&(t+=1),Math.max(3,t)}get _snapItemsCount(){if(this.infinite){let e=this.effectiveItems.length,t=this._visualCardsMultiplier;return this._snapSetsCount*(e*t)}return this.effectiveItems.length}_checkInfiniteWrap(){if(!this.infinite||this.effectiveItems.length===0||!this._scrollContainer)return;let e=this.effectiveItems.length*this._visualCardsMultiplier,t=this._snapSetsCount,n=Math.floor(t/2),r=e*this.itemSize,i=this._scrollContainer.scrollLeft,a=Math.floor(i/r);if(a!==n){let e=(n-a)*r,t=this._scrollContainer.style.scrollSnapType,i=this._scrollContainer.style.scrollBehavior;this._scrollContainer.style.scrollSnapType=`none`,this._scrollContainer.style.scrollBehavior=`auto`,this._scrollContainer.scrollLeft+=e,this._tickerTarget=this._scrollContainer.scrollLeft/this.itemSize,this._tickerCurrent=this._tickerTarget,this._applyLayout(this._tickerCurrent),this._scrollContainer.style.scrollBehavior=i,this._isDragging&&(this._scrollLeftAtDragStart+=e),t&&t!==`none`&&requestAnimationFrame(()=>{this._scrollContainer&&!this._isDragging&&(this._scrollContainer.style.scrollSnapType=t)})}}_startAutoplay(){this._stopAutoplay(),this.autoplay&&this.effectiveItems.length>0&&(this._autoplayTimer=setInterval(()=>{this._isDragging||this._scrollNext()},this.autoplayInterval))}_stopAutoplay(){this._autoplayTimer&&=(clearInterval(this._autoplayTimer),null)}_handleMouseEnter(){}_handleMouseLeave(){this._handleMouseUp()}_handleMouseDown(e){$.killTweensOf(this._scrollContainer),this._checkInfiniteWrap(),this._isDragging=!0,this._totalDraggedDistance=0,this._scrollContainer.style.scrollBehavior=`auto`,this._scrollContainer.style.scrollSnapType=`none`,this._dragStartX=e.pageX-this._scrollContainer.offsetLeft,this._scrollLeftAtDragStart=this._scrollContainer.scrollLeft,this._pointerVelocity=0,this._lastPointerX=e.pageX,this._lastPointerTime=performance.now()}_handleMouseMove(e){if(!this._isDragging)return;e.preventDefault();let t=e.pageX,n=t-this._scrollContainer.offsetLeft;this._scrollContainer.scrollLeft=this._scrollLeftAtDragStart+(this._dragStartX-n)*1.25;let r=performance.now(),i=r-this._lastPointerTime;i>0&&(this._pointerVelocity=(t-this._lastPointerX)/i),this._totalDraggedDistance+=Math.abs(t-this._lastPointerX),this._lastPointerX=t,this._lastPointerTime=r}_handleMouseUp(){if(!this._isDragging)return;this._isDragging=!1,performance.now()-this._lastPointerTime>100&&(this._pointerVelocity=0);let e=350+Math.abs(this._pointerVelocity)*300,t=this._scrollContainer.scrollLeft-this._pointerVelocity*e,n=15*this.itemSize;if(t<this._scrollContainer.scrollLeft-n?t=this._scrollContainer.scrollLeft-n:t>this._scrollContainer.scrollLeft+n&&(t=this._scrollContainer.scrollLeft+n),this.layout!==`uncontained`){this._scrollContainer.style.scrollSnapType=`none`;let e=Math.round(t/this.itemSize),n=this.effectiveItems.length>0?this._snapItemsCount-1:0;e=Math.max(0,Math.min(n,e));let r=e*this.itemSize,i=Math.round(this._scrollContainer.scrollLeft/this.itemSize),a=Math.abs(e-i),o=Math.min(.85,.25+a*.04);this._scrollContainer.style.scrollBehavior=`auto`,$.to(this._scrollContainer,{scrollLeft:r,duration:o,ease:`power3.out`,onComplete:()=>{!this._isDragging&&this._scrollContainer&&(this._scrollContainer.style.scrollSnapType=`x mandatory`)}})}}_handleTouchStart(e){$.killTweensOf(this._scrollContainer),this._checkInfiniteWrap(),this._isDragging=!0,this._totalDraggedDistance=0,this._scrollContainer.style.scrollBehavior=`auto`,this._scrollContainer.style.scrollSnapType=`none`;let t=e.touches[0];this._dragStartX=t.pageX-this._scrollContainer.offsetLeft,this._scrollLeftAtDragStart=this._scrollContainer.scrollLeft,this._pointerVelocity=0,this._lastPointerX=t.pageX,this._lastPointerTime=performance.now()}_handleTouchMove(e){if(!this._isDragging)return;let t=e.touches[0].pageX,n=t-this._scrollContainer.offsetLeft;this._scrollContainer.scrollLeft=this._scrollLeftAtDragStart+(this._dragStartX-n);let r=performance.now(),i=r-this._lastPointerTime;i>0&&(this._pointerVelocity=(t-this._lastPointerX)/i),this._totalDraggedDistance+=Math.abs(t-this._lastPointerX),this._lastPointerX=t,this._lastPointerTime=r}_handleTouchEnd(){this._handleMouseUp()}_handleWheel(e){if(Math.abs(e.deltaY)>Math.abs(e.deltaX)){let t=this._scrollContainer.scrollWidth-this._scrollContainer.clientWidth,n=this._scrollContainer.scrollLeft,r=n<=0,i=n>=t-1;if(e.deltaY<0&&r||e.deltaY>0&&i)return;e.preventDefault(),this._scrollContainer.style.scrollSnapType=`none`;let a=e.deltaY;e.deltaMode===1?a*=40:e.deltaMode===2&&(a*=800),this._scrollContainer.scrollLeft+=a,this._wheelTimeout&&clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(()=>{this.layout!==`uncontained`&&!this._isDragging&&(this._scrollContainer.style.scrollSnapType=`x mandatory`)},150)}}_handleCardClick(e,t,n){if(this._totalDraggedDistance>8){e.preventDefault(),e.stopPropagation();return}let r=n%this.effectiveItems.length;this.dispatchEvent(new CustomEvent(`item-click`,{bubbles:!0,composed:!0,detail:{item:t,index:r}})),Ye(this,`moni-item-click`,{detail:{item:t,index:r}})}_scrollPrevious(){let e=this._scrollContainer.scrollLeft-this.itemSize;this._scrollContainer.style.scrollBehavior=`smooth`,this._scrollContainer.scrollTo({left:e,behavior:`smooth`})}_scrollNext(){let e=this._scrollContainer.scrollLeft+this.itemSize;this._scrollContainer.style.scrollBehavior=`smooth`,this._scrollContainer.scrollTo({left:e,behavior:`smooth`})}_handleShowAllClick(e){let t=e.target;t.tagName.toLowerCase()===`a`&&t.getAttribute(`href`)===`#`&&e.preventDefault(),this.dispatchEvent(new CustomEvent(`show-all-click`,{bubbles:!0,composed:!0})),Ye(this,`moni-show-all-click`)}_handleShowAllSlotChange(e){let t=e.target,n=typeof t.assignedElements==`function`?t.assignedElements({flatten:!0}):[];n.length===0&&(n=t.assignedNodes().filter(e=>e.nodeType===1)),n.length===0&&(n=Array.from(this.querySelectorAll(`[slot="show-all"]`))),this._hasSlottedShowAll=n.length>0}_handleSlotChange(e){let t=e.target,n=typeof t.assignedElements==`function`?t.assignedElements({flatten:!0}):[];n.length===0&&(n=t.assignedNodes().filter(e=>e.nodeType===1)),n.length===0&&(n=Array.from(this.children).filter(e=>e.getAttribute(`slot`)!==`show-all`));let r=[];for(let e of n)if(e.tagName.toLowerCase()===`img`){let t=e;r.push({title:t.getAttribute(`title`)||t.getAttribute(`alt`)||``,img:t.src})}else if(e.tagName.toLowerCase()===`a`){let t=e,n=t.querySelector(`img`);n&&r.push({title:n.getAttribute(`title`)||n.getAttribute(`alt`)||t.getAttribute(`title`)||``,img:n.src,href:t.href,target:t.target})}this._slottedItems=r;let i=!!this.querySelector(`[slot="show-all"]`);i!==this._hasSlottedShowAll&&(this._hasSlottedShowAll=i),this.updateComplete.then(()=>{this.updateLayout(!0),Ye(this,`moni-slot-items-changed`,{detail:{items:this._slottedItems}})})}render(){let{largeItemWidth:e,mediumItemWidth:t,smallItemWidth:n}=this.computedLayout,r=this.effectiveItems&&this.effectiveItems.length>0,i=this._hasSlottedShowAll||!!this.querySelector(`[slot="show-all"]`),a=this.headerText||this.showAll||i,o=128;o=this.layout===`hero`?n+this.gap:this.layout===`uncontained`?16:t+n+2*this.gap;let s=(this._containerWidth||this.getBoundingClientRect().width||360)-e-this.padding+400;o<s&&(o=s);let c=r?this._snapItemsCount:0,l=this.effectiveItems;if(this.infinite&&r){let e=this._visualCardsMultiplier;l=[];for(let t=0;t<e;t++)l=l.concat(this.effectiveItems)}let u=r?c*e+(c-1)*this.gap:0,d=r&&this._scrollContainer&&this._scrollContainer.scrollWidth>this._scrollContainer.clientWidth,f=this.infinite||d&&this._scrollContainer.scrollLeft>5,p=this.infinite||d&&this._scrollContainer.scrollWidth-this._scrollContainer.scrollLeft-this._scrollContainer.clientWidth>5;return L`
|
|
7814
7829
|
<div class="carousel-container" style="
|
|
7815
7830
|
--carousel-snap-width: ${e}px;
|
|
7816
7831
|
--carousel-gap: ${this.gap}px;
|
|
@@ -7820,11 +7835,11 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7820
7835
|
--carousel-track-width: ${u}px;
|
|
7821
7836
|
">
|
|
7822
7837
|
<slot @slotchange=${this._handleSlotChange} style="display: none;"></slot>
|
|
7823
|
-
${a?
|
|
7838
|
+
${a?L`
|
|
7824
7839
|
<div class="carousel-header">
|
|
7825
|
-
${this.headerText?
|
|
7840
|
+
${this.headerText?L`<h3>${this.headerText}</h3>`:``}
|
|
7826
7841
|
<slot name="show-all" @slotchange=${this._handleShowAllSlotChange} @click=${this._handleShowAllClick}>
|
|
7827
|
-
${this.showAll?
|
|
7842
|
+
${this.showAll?L`
|
|
7828
7843
|
<a href="#" class="show-all-link">
|
|
7829
7844
|
${this.showAllText}
|
|
7830
7845
|
</a>
|
|
@@ -7834,7 +7849,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7834
7849
|
`:``}
|
|
7835
7850
|
|
|
7836
7851
|
<div class="carousel-viewport">
|
|
7837
|
-
${this.hideNav?``:
|
|
7852
|
+
${this.hideNav?``:L`
|
|
7838
7853
|
<button
|
|
7839
7854
|
class="nav-button prev ${f?`visible`:``}"
|
|
7840
7855
|
@click=${this._scrollPrevious}
|
|
@@ -7858,23 +7873,23 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7858
7873
|
@wheel=${this._handleWheel}
|
|
7859
7874
|
>
|
|
7860
7875
|
<div class="snap-track">
|
|
7861
|
-
${r?Array.from({length:c}).map(()=>
|
|
7876
|
+
${r?Array.from({length:c}).map(()=>L`<div class="snap-item"></div>`):``}
|
|
7862
7877
|
</div>
|
|
7863
7878
|
<div class="visual-track">
|
|
7864
|
-
${r?l.map((e,t)=>
|
|
7879
|
+
${r?l.map((e,t)=>L`
|
|
7865
7880
|
<div
|
|
7866
7881
|
class="card"
|
|
7867
7882
|
data-index="${t}"
|
|
7868
7883
|
@click=${n=>this._handleCardClick(n,e,t)}
|
|
7869
7884
|
>
|
|
7870
|
-
${e.href?
|
|
7885
|
+
${e.href?L`
|
|
7871
7886
|
<a href="${e.href}" target="${e.target||`_self`}" style="text-decoration:none; color:inherit;" draggable="false">
|
|
7872
7887
|
<div class="img-parallax-container">
|
|
7873
7888
|
<img src="${e.img}" alt="${e.title}" draggable="false" loading="lazy" />
|
|
7874
7889
|
</div>
|
|
7875
7890
|
<h2 class="card-title">${e.title}</h2>
|
|
7876
7891
|
</a>
|
|
7877
|
-
`:
|
|
7892
|
+
`:L`
|
|
7878
7893
|
<div class="img-parallax-container">
|
|
7879
7894
|
<img src="${e.img}" alt="${e.title}" draggable="false" loading="lazy" />
|
|
7880
7895
|
</div>
|
|
@@ -7885,7 +7900,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7885
7900
|
</div>
|
|
7886
7901
|
</div>
|
|
7887
7902
|
|
|
7888
|
-
${this.hideNav?``:
|
|
7903
|
+
${this.hideNav?``:L`
|
|
7889
7904
|
<button
|
|
7890
7905
|
class="nav-button next ${p?`visible`:``}"
|
|
7891
7906
|
@click=${this._scrollNext}
|
|
@@ -7896,7 +7911,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7896
7911
|
`}
|
|
7897
7912
|
</div>
|
|
7898
7913
|
</div>
|
|
7899
|
-
`}};
|
|
7914
|
+
`}};G([B({type:Array})],bl.prototype,`items`,void 0),G([B({reflect:!0})],bl.prototype,`layout`,void 0),G([B({type:Boolean,reflect:!0})],bl.prototype,`auto`,void 0),G([B({type:Number,attribute:`large-width`})],bl.prototype,`largeWidth`,void 0),G([B({type:Number,attribute:`medium-width`})],bl.prototype,`mediumWidth`,void 0),G([B({type:Number,attribute:`small-width`})],bl.prototype,`smallWidth`,void 0),G([B({type:Number})],bl.prototype,`gap`,void 0),G([B({type:Number})],bl.prototype,`padding`,void 0),G([B({type:Number,attribute:`border-radius`})],bl.prototype,`borderRadius`,void 0),G([B({type:Boolean,attribute:`show-all`})],bl.prototype,`showAll`,void 0),G([B({attribute:`show-all-text`})],bl.prototype,`showAllText`,void 0),G([B({attribute:`header-text`})],bl.prototype,`headerText`,void 0),G([B({type:Boolean,attribute:`hide-nav`})],bl.prototype,`hideNav`,void 0),G([B({type:Boolean,reflect:!0})],bl.prototype,`infinite`,void 0),G([B({type:Boolean,reflect:!0})],bl.prototype,`autoplay`,void 0),G([B({type:Number,attribute:`autoplay-interval`})],bl.prototype,`autoplayInterval`,void 0),G([V()],bl.prototype,`_containerWidth`,void 0),G([V()],bl.prototype,`_slottedItems`,void 0),G([V()],bl.prototype,`_hasSlottedShowAll`,void 0),G([H(`.scroll-container`)],bl.prototype,`_scrollContainer`,void 0),G([We(`.card`)],bl.prototype,`_cards`,void 0),bl=G([z(`moni-carousel`)],bl);var xl=class extends U{constructor(...e){super(...e),this.type=`rounded`,this.name=``,this.size=`medium`,this.border=!1,this.shadow=!1,this.shapeRadius=``,this.color=`primary`,this.duration=`500ms`,this.easing=`cubic-bezier(.2, 0, 0, 1)`}static{this.styles=[W,g`
|
|
7900
7915
|
:host { display:inline-flex; font-family:var(--font-sans); }
|
|
7901
7916
|
.shape {
|
|
7902
7917
|
inline-size:var(--_shape-size,4rem);block-size:var(--_shape-size,4rem);
|
|
@@ -7994,5 +8009,5 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
|
|
|
7994
8009
|
:host([color='tertiary']) { --_shape-bg:var(--color-tertiary-container);--_shape-fg:var(--color-on-tertiary-container); }
|
|
7995
8010
|
:host([color='surface']) { --_shape-bg:var(--color-surface-container-highest);--_shape-fg:var(--color-on-surface); }
|
|
7996
8011
|
@media (prefers-reduced-motion:reduce) { .shape { transition:none; } }
|
|
7997
|
-
`]}render(){return
|
|
8012
|
+
`]}render(){return L`<div class="shape" style=${`--_radius:${this.shapeRadius||`1rem`};--_morph-duration:${this.duration};--_morph-easing:${this.easing};`} part="shape"><slot></slot></div>`}};return G([B({reflect:!0})],xl.prototype,`type`,void 0),G([B({reflect:!0})],xl.prototype,`name`,void 0),G([B({reflect:!0})],xl.prototype,`size`,void 0),G([B({type:Boolean,reflect:!0})],xl.prototype,`border`,void 0),G([B({type:Boolean,reflect:!0})],xl.prototype,`shadow`,void 0),G([B({reflect:!0,attribute:`shape-radius`})],xl.prototype,`shapeRadius`,void 0),G([B({reflect:!0})],xl.prototype,`color`,void 0),G([B({reflect:!0})],xl.prototype,`duration`,void 0),G([B({reflect:!0})],xl.prototype,`easing`,void 0),xl=G([z(`moni-shape`)],xl),Object.defineProperty(e,"MoniAppBar",{enumerable:!0,get:function(){return qe}}),Object.defineProperty(e,"MoniBadge",{enumerable:!0,get:function(){return Je}}),Object.defineProperty(e,"MoniBottomSheet",{enumerable:!0,get:function(){return Xe}}),Object.defineProperty(e,"MoniButton",{enumerable:!0,get:function(){return et}}),Object.defineProperty(e,"MoniButtonGroup",{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(e,"MoniButtonSegment",{enumerable:!0,get:function(){return $t}}),Object.defineProperty(e,"MoniCard",{enumerable:!0,get:function(){return tt}}),Object.defineProperty(e,"MoniCarousel",{enumerable:!0,get:function(){return bl}}),Object.defineProperty(e,"MoniCheckbox",{enumerable:!0,get:function(){return ut}}),Object.defineProperty(e,"MoniChip",{enumerable:!0,get:function(){return dt}}),Object.defineProperty(e,"MoniColorField",{enumerable:!0,get:function(){return pt}}),Object.defineProperty(e,"MoniContextMenu",{enumerable:!0,get:function(){return ht}}),Object.defineProperty(e,"MoniDialog",{enumerable:!0,get:function(){return gt}}),Object.defineProperty(e,"MoniDivider",{enumerable:!0,get:function(){return _t}}),Object.defineProperty(e,"MoniExpansion",{enumerable:!0,get:function(){return vt}}),Object.defineProperty(e,"MoniFab",{enumerable:!0,get:function(){return yt}}),Object.defineProperty(e,"MoniFabMenu",{enumerable:!0,get:function(){return bt}}),Object.defineProperty(e,"MoniFileField",{enumerable:!0,get:function(){return xt}}),Object.defineProperty(e,"MoniIcon",{enumerable:!0,get:function(){return Ze}}),Object.defineProperty(e,"MoniList",{enumerable:!0,get:function(){return St}}),Object.defineProperty(e,"MoniListItem",{enumerable:!0,get:function(){return Ct}}),Object.defineProperty(e,"MoniLoadingIndicator",{enumerable:!0,get:function(){return rn}}),Object.defineProperty(e,"MoniMenu",{enumerable:!0,get:function(){return mt}}),Object.defineProperty(e,"MoniMenuItem",{enumerable:!0,get:function(){return wt}}),Object.defineProperty(e,"MoniMorphModal",{enumerable:!0,get:function(){return yl}}),Object.defineProperty(e,"MoniNav",{enumerable:!0,get:function(){return Tt}}),Object.defineProperty(e,"MoniNavItem",{enumerable:!0,get:function(){return Et}}),Object.defineProperty(e,"MoniProgress",{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(e,"MoniRadio",{enumerable:!0,get:function(){return Ot}}),Object.defineProperty(e,"MoniRipple",{enumerable:!0,get:function(){return kt}}),Object.defineProperty(e,"MoniSegmentedButton",{enumerable:!0,get:function(){return tn}}),Object.defineProperty(e,"MoniSelect",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"MoniSelectOption",{enumerable:!0,get:function(){return At}}),Object.defineProperty(e,"MoniShape",{enumerable:!0,get:function(){return xl}}),Object.defineProperty(e,"MoniSideSheet",{enumerable:!0,get:function(){return Ht}}),Object.defineProperty(e,"MoniSlider",{enumerable:!0,get:function(){return jt}}),Object.defineProperty(e,"MoniSnackbar",{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(e,"MoniSplitButton",{enumerable:!0,get:function(){return Qt}}),Object.defineProperty(e,"MoniStep",{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(e,"MoniStepper",{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(e,"MoniSwitch",{enumerable:!0,get:function(){return Ft}}),Object.defineProperty(e,"MoniTab",{enumerable:!0,get:function(){return It}}),Object.defineProperty(e,"MoniTabs",{enumerable:!0,get:function(){return Lt}}),Object.defineProperty(e,"MoniTextField",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(e,"MoniTextarea",{enumerable:!0,get:function(){return J}}),Object.defineProperty(e,"MoniTimePicker",{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(e,"MoniToolbar",{enumerable:!0,get:function(){return Vt}}),Object.defineProperty(e,"MoniTooltip",{enumerable:!0,get:function(){return Ut}}),Object.defineProperty(e,"MoniTypography",{enumerable:!0,get:function(){return Xt}}),e})({});
|
|
7998
8013
|
//# sourceMappingURL=moni-ui.iife.min.js.map
|