/*! For license information please see 7260.ac08de067df0b198.js.LICENSE.txt */
export const ids=["7260"];export const modules={31126:function(t,e,i){var s=i(71998);t.exports=function(){var t=s(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},32517:function(t,e,i){var s=i(1569),n=i(85779),r=i(27803),o=i(31126),a=i(29660),c=s.RegExp,l=c.prototype;n&&a((function(){var t=!0;try{c(".","d")}catch(e){t=!1}var e={},i="",s=t?"dgimsy":"gimsy",n=function(t,s){Object.defineProperty(e,t,{get:function(){return i+=s,!0}})},r={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(r.hasIndices="d"),r)n(o,r[o]);return Object.getOwnPropertyDescriptor(l,"flags").get.call(e)!==s||i!==s}))&&r(l,"flags",{configurable:!0,get:o})},1231:function(t,e,i){i.d(e,{B:()=>c});var s=i("9065"),n=i("50778"),r=i("57243");class o extends r.oi{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}(0,s.gn)([(0,n.Cb)({type:Boolean,reflect:!0})],o.prototype,"inset",void 0),(0,s.gn)([(0,n.Cb)({type:Boolean,reflect:!0,attribute:"inset-start"})],o.prototype,"insetStart",void 0),(0,s.gn)([(0,n.Cb)({type:Boolean,reflect:!0,attribute:"inset-end"})],o.prototype,"insetEnd",void 0);const a=r.iv`:host{box-sizing:border-box;color:var(--md-divider-color,var(--md-sys-color-outline-variant,#cac4d0));display:flex;height:var(--md-divider-thickness,1px);width:100%}:host([inset-start]),:host([inset]){padding-inline-start:16px}:host([inset-end]),:host([inset]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors:active){:host::before{background:CanvasText}}`;let c=class extends o{};c.styles=[a],c=(0,s.gn)([(0,n.Mo)("md-divider")],c)},78755:function(t,e,i){i.d(e,{g:()=>g});var s=i("9065"),n=i("50778"),r=(i("57618"),i("26499"),i("23111"),i("57243")),o=i("35359"),a=i("79840"),c=i("13823"),l=i("64840");const h=(0,c.T)(r.oi);class d extends h{constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}get isDisabled(){return this.disabled&&"link"!==this.type}willUpdate(t){this.href&&(this.type="link"),super.willUpdate(t)}render(){return this.renderListItem(r.dy` <md-item> <div slot="container"> ${this.renderRipple()} ${this.renderFocusRing()} </div> <slot name="start" slot="start"></slot> <slot name="end" slot="end"></slot> ${this.renderBody()} </md-item> `)}renderListItem(t){const e="link"===this.type;let i;switch(this.type){case"link":i=a.i0`a`;break;case"button":i=a.i0`button`;break;default:i=a.i0`li`}const s="text"!==this.type,n=e&&this.target?this.target:r.Ld;return a.dy`
      <${i}
        id="item"
        tabindex="${this.isDisabled||!s?-1:0}"
        ?disabled=${this.isDisabled}
        role="listitem"
        aria-selected=${this.ariaSelected||r.Ld}
        aria-checked=${this.ariaChecked||r.Ld}
        aria-expanded=${this.ariaExpanded||r.Ld}
        aria-haspopup=${this.ariaHasPopup||r.Ld}
        class="list-item ${(0,o.$)(this.getRenderClasses())}"
        href=${this.href||r.Ld}
        target=${n}
        @focus=${this.onFocus}
      >${t}</${i}>
    `}renderRipple(){return"text"===this.type?r.Ld:r.dy` <md-ripple part="ripple" for="item" ?disabled="${this.isDisabled}"></md-ripple>`}renderFocusRing(){return"text"===this.type?r.Ld:r.dy` <md-focus-ring @visibility-changed="${this.onFocusRingVisibilityChanged}" part="focus-ring" for="item" inward></md-focus-ring>`}onFocusRingVisibilityChanged(t){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return r.dy` <slot></slot> <slot name="overline" slot="overline"></slot> <slot name="headline" slot="headline"></slot> <slot name="supporting-text" slot="supporting-text"></slot> <slot name="trailing-supporting-text" slot="trailing-supporting-text"></slot> `}onFocus(){-1===this.tabIndex&&this.dispatchEvent((0,l.oh)())}focus(){this.listItemRoot?.focus()}}d.shadowRootOptions={...r.oi.shadowRootOptions,delegatesFocus:!0},(0,s.gn)([(0,n.Cb)({type:Boolean,reflect:!0})],d.prototype,"disabled",void 0),(0,s.gn)([(0,n.Cb)({reflect:!0})],d.prototype,"type",void 0),(0,s.gn)([(0,n.Cb)({type:Boolean,attribute:"md-list-item",reflect:!0})],d.prototype,"isListItem",void 0),(0,s.gn)([(0,n.Cb)()],d.prototype,"href",void 0),(0,s.gn)([(0,n.Cb)()],d.prototype,"target",void 0),(0,s.gn)([(0,n.IO)(".list-item")],d.prototype,"listItemRoot",void 0);const u=r.iv`:host{display:flex;-webkit-tap-highlight-color:transparent;--md-ripple-hover-color:var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity:var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color:var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity:var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape:8px}a,button,li{background:0 0;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:0;-webkit-tap-highlight-color:transparent;width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, .3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color,var(--md-sys-color-on-surface,#1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight,var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400)));min-height:var(--md-list-item-one-line-container-height,56px);padding-top:var(--md-list-item-top-space,12px);padding-bottom:var(--md-list-item-bottom-space,12px);padding-inline-start:var(--md-list-item-leading-space,16px);padding-inline-end:var(--md-list-item-trailing-space,16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height,72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, .875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight,var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, .6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight,var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}@media(forced-colors:active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}`;let g=class extends d{};g.styles=[u],g=(0,s.gn)([(0,n.Mo)("md-list-item")],g)},623:function(t,e,i){i.d(e,{j:()=>h});var s=i("9065"),n=i("50778"),r=(i("85601"),i("92519"),i("42179"),i("89256"),i("24931"),i("88463"),i("57449"),i("19814"),i("57243")),o=i("7750");const a=new Set(Object.values(o.E));class c extends r.oi{get items(){return this.listController.items}constructor(){super(),this.listController=new o.g({isItem:t=>t.hasAttribute("md-list-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>"rtl"===getComputedStyle(this).direction,deactivateItem:t=>{t.tabIndex=-1},activateItem:t=>{t.tabIndex=0},isNavigableKey:t=>a.has(t),isActivatable:t=>!t.disabled&&"text"!==t.type}),this.internals=this.attachInternals(),r.sk||(this.internals.role="list",this.addEventListener("keydown",this.listController.handleKeydown))}render(){return r.dy` <slot @deactivate-items="${this.listController.onDeactivateItems}" @request-activation="${this.listController.onRequestActivation}" @slotchange="${this.listController.onSlotchange}"> </slot> `}activateNextItem(){return this.listController.activateNextItem()}activatePreviousItem(){return this.listController.activatePreviousItem()}}(0,s.gn)([(0,n.NH)({flatten:!0})],c.prototype,"slotItems",void 0);const l=r.iv`:host{background:var(--md-list-container-color,var(--md-sys-color-surface,#fef7ff));color:unset;display:flex;flex-direction:column;outline:0;padding:8px 0;position:relative}`;let h=class extends c{};h.styles=[l],h=(0,s.gn)([(0,n.Mo)("md-list")],h)},41298:function(t,e,i){i.d(e,{Z:function(){return V}});i(92745),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(39527),i(99790),i(41360),i(13334);function s(t){return Array.isArray?Array.isArray(t):"[object Array]"===h(t)}function n(t){return"string"==typeof t}function r(t){return"number"==typeof t}function o(t){return!0===t||!1===t||function(t){return a(t)&&null!==t}(t)&&"[object Boolean]"==h(t)}function a(t){return"object"==typeof t}function c(t){return null!=t}function l(t){return!t.trim().length}function h(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const d=Object.prototype.hasOwnProperty;class u{constructor(t){this._keys=[],this._keyMap={};let e=0;t.forEach((t=>{let i=g(t);this._keys.push(i),this._keyMap[i.id]=i,e+=i.weight})),this._keys.forEach((t=>{t.weight/=e}))}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function g(t){let e=null,i=null,r=null,o=1,a=null;if(n(t)||s(t))r=t,e=p(t),i=m(t);else{if(!d.call(t,"name"))throw new Error((t=>`Missing ${t} property in key`)("name"));const s=t.name;if(r=s,d.call(t,"weight")&&(o=t.weight,o<=0))throw new Error((t=>`Property 'weight' in key '${t}' must be a positive integer`)(s));e=p(s),i=m(s),a=t.getFn}return{path:e,id:i,weight:o,src:r,getFn:a}}function p(t){return s(t)?t:t.split(".")}function m(t){return s(t)?t.join("."):t}var f={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...{useExtendedSearch:!1,getFn:function(t,e){let i=[],a=!1;const l=(t,e,h)=>{if(c(t))if(e[h]){const d=t[e[h]];if(!c(d))return;if(h===e.length-1&&(n(d)||r(d)||o(d)))i.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;let e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(t)}(d));else if(s(d)){a=!0;for(let t=0,i=d.length;t<i;t+=1)l(d[t],e,h+1)}else e.length&&l(d,e,h+1)}else i.push(t)};return l(t,n(e)?e.split("."):e,0),a?i:i[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const y=/[^ ]+/g;class v{constructor({getFn:t=f.getFn,fieldNormWeight:e=f.fieldNormWeight}={}){this.norm=function(t=1,e=3){const i=new Map,s=Math.pow(10,e);return{get(e){const n=e.match(y).length;if(i.has(n))return i.get(n);const r=1/Math.pow(n,.5*t),o=parseFloat(Math.round(r*s)/s);return i.set(n,o),o},clear(){i.clear()}}}(e,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach(((t,e)=>{this._keysMap[t.id]=e}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,n(this.docs[0])?this.docs.forEach(((t,e)=>{this._addString(t,e)})):this.docs.forEach(((t,e)=>{this._addObject(t,e)})),this.norm.clear())}add(t){const e=this.size();n(t)?this._addString(t,e):this._addObject(t,e)}removeAt(t){this.records.splice(t,1);for(let e=t,i=this.size();e<i;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!c(t)||l(t))return;let i={v:t,i:e,n:this.norm.get(t)};this.records.push(i)}_addObject(t,e){let i={i:e,$:{}};this.keys.forEach(((e,r)=>{let o=e.getFn?e.getFn(t):this.getFn(t,e.path);if(c(o))if(s(o)){let t=[];const e=[{nestedArrIndex:-1,value:o}];for(;e.length;){const{nestedArrIndex:i,value:r}=e.pop();if(c(r))if(n(r)&&!l(r)){let e={v:r,i,n:this.norm.get(r)};t.push(e)}else s(r)&&r.forEach(((t,i)=>{e.push({nestedArrIndex:i,value:t})}))}i.$[r]=t}else if(n(o)&&!l(o)){let t={v:o,n:this.norm.get(o)};i.$[r]=t}})),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function x(t,e,{getFn:i=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){const n=new v({getFn:i,fieldNormWeight:s});return n.setKeys(t.map(g)),n.setSources(e),n.create(),n}function b(t,{errors:e=0,currentLocation:i=0,expectedLocation:s=0,distance:n=f.distance,ignoreLocation:r=f.ignoreLocation}={}){const o=e/t.length;if(r)return o;const a=Math.abs(s-i);return n?o+a/n:a?1:o}const M=32;function L(t,e,i,{location:s=f.location,distance:n=f.distance,threshold:r=f.threshold,findAllMatches:o=f.findAllMatches,minMatchCharLength:a=f.minMatchCharLength,includeMatches:c=f.includeMatches,ignoreLocation:l=f.ignoreLocation}={}){if(e.length>M)throw new Error(`Pattern length exceeds max of ${M}.`);const h=e.length,d=t.length,u=Math.max(0,Math.min(s,d));let g=r,p=u;const m=a>1||c,y=m?Array(d):[];let v;for(;(v=t.indexOf(e,p))>-1;){let t=b(e,{currentLocation:v,expectedLocation:u,distance:n,ignoreLocation:l});if(g=Math.min(t,g),p=v+h,m){let t=0;for(;t<h;)y[v+t]=1,t+=1}}p=-1;let x=[],L=1,k=h+d;const w=1<<h-1;for(let s=0;s<h;s+=1){let r=0,a=k;for(;r<a;){b(e,{errors:s,currentLocation:u+a,expectedLocation:u,distance:n,ignoreLocation:l})<=g?r=a:k=a,a=Math.floor((k-r)/2+r)}k=a;let c=Math.max(1,u-a+1),f=o?d:Math.min(u+a,d)+h,v=Array(f+2);v[f+1]=(1<<s)-1;for(let r=f;r>=c;r-=1){let o=r-1,a=i[t.charAt(o)];if(m&&(y[o]=+!!a),v[r]=(v[r+1]<<1|1)&a,s&&(v[r]|=(x[r+1]|x[r])<<1|1|x[r+1]),v[r]&w&&(L=b(e,{errors:s,currentLocation:o,expectedLocation:u,distance:n,ignoreLocation:l}),L<=g)){if(g=L,p=o,p<=u)break;c=Math.max(1,2*u-p)}}if(b(e,{errors:s+1,currentLocation:u,expectedLocation:u,distance:n,ignoreLocation:l})>g)break;x=v}const C={isMatch:p>=0,score:Math.max(.001,L)};if(m){const t=function(t=[],e=f.minMatchCharLength){let i=[],s=-1,n=-1,r=0;for(let o=t.length;r<o;r+=1){let o=t[r];o&&-1===s?s=r:o||-1===s||(n=r-1,n-s+1>=e&&i.push([s,n]),s=-1)}return t[r-1]&&r-s>=e&&i.push([s,r-1]),i}(y,a);t.length?c&&(C.indices=t):C.isMatch=!1}return C}function k(t){let e={};for(let i=0,s=t.length;i<s;i+=1){const n=t.charAt(i);e[n]=(e[n]||0)|1<<s-i-1}return e}class w{constructor(t,{location:e=f.location,threshold:i=f.threshold,distance:s=f.distance,includeMatches:n=f.includeMatches,findAllMatches:r=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:c=f.ignoreLocation}={}){if(this.options={location:e,threshold:i,distance:s,includeMatches:n,findAllMatches:r,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:c},this.pattern=a?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(t,e)=>{this.chunks.push({pattern:t,alphabet:k(t),startIndex:e})},h=this.pattern.length;if(h>M){let t=0;const e=h%M,i=h-e;for(;t<i;)l(this.pattern.substr(t,M),t),t+=M;if(e){const t=h-M;l(this.pattern.substr(t),t)}}else l(this.pattern,0)}searchIn(t){const{isCaseSensitive:e,includeMatches:i}=this.options;if(e||(t=t.toLowerCase()),this.pattern===t){let e={isMatch:!0,score:0};return i&&(e.indices=[[0,t.length-1]]),e}const{location:s,distance:n,threshold:r,findAllMatches:o,minMatchCharLength:a,ignoreLocation:c}=this.options;let l=[],h=0,d=!1;this.chunks.forEach((({pattern:e,alphabet:u,startIndex:g})=>{const{isMatch:p,score:m,indices:f}=L(t,e,u,{location:s+g,distance:n,threshold:r,findAllMatches:o,minMatchCharLength:a,includeMatches:i,ignoreLocation:c});p&&(d=!0),h+=m,p&&f&&(l=[...l,...f])}));let u={isMatch:d,score:d?h/this.chunks.length:1};return d&&i&&(u.indices=l),u}}class C{constructor(t){this.pattern=t}static isMultiMatch(t){return I(t,this.multiRegex)}static isSingleMatch(t){return I(t,this.singleRegex)}search(){}}function I(t,e){const i=t.match(e);return i?i[1]:null}class $ extends C{constructor(t,{location:e=f.location,threshold:i=f.threshold,distance:s=f.distance,includeMatches:n=f.includeMatches,findAllMatches:r=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:c=f.ignoreLocation}={}){super(t),this._bitapSearch=new w(t,{location:e,threshold:i,distance:s,includeMatches:n,findAllMatches:r,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class S extends C{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e,i=0;const s=[],n=this.pattern.length;for(;(e=t.indexOf(this.pattern,i))>-1;)i=e+n,s.push([e,i-1]);const r=!!s.length;return{isMatch:r,score:r?0:1,indices:s}}}const _=[class extends C{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},S,class extends C{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends C{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends C{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends C{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends C{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},$],R=_.length,A=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const E=new Set([$.type,S.type]);class F{constructor(t,{isCaseSensitive:e=f.isCaseSensitive,includeMatches:i=f.includeMatches,minMatchCharLength:s=f.minMatchCharLength,ignoreLocation:n=f.ignoreLocation,findAllMatches:r=f.findAllMatches,location:o=f.location,threshold:a=f.threshold,distance:c=f.distance}={}){this.query=null,this.options={isCaseSensitive:e,includeMatches:i,minMatchCharLength:s,findAllMatches:r,ignoreLocation:n,location:o,threshold:a,distance:c},this.pattern=e?t:t.toLowerCase(),this.query=function(t,e={}){return t.split("|").map((t=>{let i=t.trim().split(A).filter((t=>t&&!!t.trim())),s=[];for(let t=0,n=i.length;t<n;t+=1){const n=i[t];let r=!1,o=-1;for(;!r&&++o<R;){const t=_[o];let i=t.isMultiMatch(n);i&&(s.push(new t(i,e)),r=!0)}if(!r)for(o=-1;++o<R;){const t=_[o];let i=t.isSingleMatch(n);if(i){s.push(new t(i,e));break}}}return s}))}(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:i,isCaseSensitive:s}=this.options;t=s?t:t.toLowerCase();let n=0,r=[],o=0;for(let s=0,a=e.length;s<a;s+=1){const a=e[s];r.length=0,n=0;for(let e=0,s=a.length;e<s;e+=1){const s=a[e],{isMatch:c,indices:l,score:h}=s.search(t);if(!c){o=0,n=0,r.length=0;break}if(n+=1,o+=h,i){const t=s.constructor.type;E.has(t)?r=[...r,...l]:r.push(l)}}if(n){let t={isMatch:!0,score:o/n};return i&&(t.indices=r),t}}return{isMatch:!1,score:1}}}const N=[];function O(t,e){for(let i=0,s=N.length;i<s;i+=1){let s=N[i];if(s.condition(t,e))return new s(t,e)}return new w(t,e)}const j="$and",z="$or",W="$path",P="$val",B=t=>!(!t[j]&&!t[z]),D=t=>({[j]:Object.keys(t).map((e=>({[e]:t[e]})))});function K(t,e,{auto:i=!0}={}){const r=t=>{let o=Object.keys(t);const c=(t=>!!t[W])(t);if(!c&&o.length>1&&!B(t))return r(D(t));if((t=>!s(t)&&a(t)&&!B(t))(t)){const s=c?t[W]:o[0],r=c?t[P]:t[s];if(!n(r))throw new Error((t=>`Invalid value for key ${t}`)(s));const a={keyId:m(s),pattern:r};return i&&(a.searcher=O(r,e)),a}let l={children:[],operator:o[0]};return o.forEach((e=>{const i=t[e];s(i)&&i.forEach((t=>{l.children.push(r(t))}))})),l};return B(t)||(t=D(t)),r(t)}function q(t,e){const i=t.matches;e.matches=[],c(i)&&i.forEach((t=>{if(!c(t.indices)||!t.indices.length)return;const{indices:i,value:s}=t;let n={indices:i,value:s};t.key&&(n.key=t.key.src),t.idx>-1&&(n.refIndex=t.idx),e.matches.push(n)}))}function T(t,e){e.score=t.score}class V{constructor(t,e={},i){this.options={...f,...e},this.options.useExtendedSearch,this._keyStore=new u(this.options.keys),this.setCollection(t,i)}setCollection(t,e){if(this._docs=t,e&&!(e instanceof v))throw new Error("Incorrect 'index' type");this._myIndex=e||x(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){c(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const e=[];for(let i=0,s=this._docs.length;i<s;i+=1){const n=this._docs[i];t(n,i)&&(this.removeAt(i),i-=1,s-=1,e.push(n))}return e}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:e=-1}={}){const{includeMatches:i,includeScore:s,shouldSort:o,sortFn:a,ignoreFieldNorm:c}=this.options;let l=n(t)?n(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,{ignoreFieldNorm:e=f.ignoreFieldNorm}){t.forEach((t=>{let i=1;t.matches.forEach((({key:t,norm:s,score:n})=>{const r=t?t.weight:null;i*=Math.pow(0===n&&r?Number.EPSILON:n,(r||1)*(e?1:s))})),t.score=i}))}(l,{ignoreFieldNorm:c}),o&&l.sort(a),r(e)&&e>-1&&(l=l.slice(0,e)),function(t,e,{includeMatches:i=f.includeMatches,includeScore:s=f.includeScore}={}){const n=[];return i&&n.push(q),s&&n.push(T),t.map((t=>{const{idx:i}=t,s={item:e[i],refIndex:i};return n.length&&n.forEach((e=>{e(t,s)})),s}))}(l,this._docs,{includeMatches:i,includeScore:s})}_searchStringList(t){const e=O(t,this.options),{records:i}=this._myIndex,s=[];return i.forEach((({v:t,i,n})=>{if(!c(t))return;const{isMatch:r,score:o,indices:a}=e.searchIn(t);r&&s.push({item:t,idx:i,matches:[{score:o,value:t,norm:n,indices:a}]})})),s}_searchLogical(t){const e=K(t,this.options),i=(t,e,s)=>{if(!t.children){const{keyId:i,searcher:n}=t,r=this._findMatches({key:this._keyStore.get(i),value:this._myIndex.getValueForItemAtKeyId(e,i),searcher:n});return r&&r.length?[{idx:s,item:e,matches:r}]:[]}const n=[];for(let r=0,o=t.children.length;r<o;r+=1){const o=t.children[r],a=i(o,e,s);if(a.length)n.push(...a);else if(t.operator===j)return[]}return n},s=this._myIndex.records,n={},r=[];return s.forEach((({$:t,i:s})=>{if(c(t)){let o=i(e,t,s);o.length&&(n[s]||(n[s]={idx:s,item:t,matches:[]},r.push(n[s])),o.forEach((({matches:t})=>{n[s].matches.push(...t)})))}})),r}_searchObjectList(t){const e=O(t,this.options),{keys:i,records:s}=this._myIndex,n=[];return s.forEach((({$:t,i:s})=>{if(!c(t))return;let r=[];i.forEach(((i,s)=>{r.push(...this._findMatches({key:i,value:t[s],searcher:e}))})),r.length&&n.push({idx:s,item:t,matches:r})})),n}_findMatches({key:t,value:e,searcher:i}){if(!c(e))return[];let n=[];if(s(e))e.forEach((({v:e,i:s,n:r})=>{if(!c(e))return;const{isMatch:o,score:a,indices:l}=i.searchIn(e);o&&n.push({score:a,key:t,value:e,idx:s,norm:r,indices:l})}));else{const{v:s,n:r}=e,{isMatch:o,score:a,indices:c}=i.searchIn(s);o&&n.push({score:a,key:t,value:s,norm:r,indices:c})}return n}}V.version="7.0.0",V.createIndex=x,V.parseIndex=function(t,{getFn:e=f.getFn,fieldNormWeight:i=f.fieldNormWeight}={}){const{keys:s,records:n}=t,r=new v({getFn:e,fieldNormWeight:i});return r.setKeys(s),r.setIndexRecords(n),r},V.config=f,V.parseQuery=K,function(...t){N.push(...t)}(F)}};
//# sourceMappingURL=7260.ac08de067df0b198.js.map