(self.webpackChunkacmsWebpackJsonp=self.webpackChunkacmsWebpackJsonp||[]).push([[5457],{90746:function(e,t,n){var a=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(46942)),s=a(n(95773));n(62597);var o=n(74848);t.default=e=>{let{children:t,language:n,options:a,...i}=e;const{value:l="",language:c}=(0,s.default)(t,{language:n,...a});return(0,o.jsx)("pre",{...i,children:(0,o.jsx)("code",{className:(0,r.default)(c,"acms-admin-hljs"),dangerouslySetInnerHTML:{__html:l.replace(/class="hljs-/g,'class="acms-admin-hljs-')}})})}},45482:function(e,t,n){var a=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(96540),s=a(n(46942)),o=n(90552),i=n(74848);const l=(0,r.forwardRef)((e,t)=>{let{asChild:n,children:a,className:r,...l}=e;const c=n?o.Slot:"span";return(0,i.jsx)(c,{ref:t,className:(0,s.default)("acms-admin-hide-visually",r),...l,children:a})});t.default=l},27875:function(e,t,n){var a=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(96540),s=a(n(935)),o=a(n(46942)),i=a(n(17965)),l=a(n(21250)),c=n(31574),u=a(n(1506)),d=a(n(50834)),b=a(n(78716)),f=n(20872),h=a(n(7019)),p=a(n(90746)),m=a(n(45482)),g=n(13810),y=n(74848);const v={scheme:"OneDark",author:"Lalit Magant (http://github.com/tilal6991)",base00:"#282c34",base01:"#353b45",base02:"#3e4451",base03:"#545862",base04:"#565c64",base05:"#abb2bf",base06:"#b6bdca",base07:"#c8ccd4",base08:"#e06c75",base09:"#d19a66",base0A:"#e5c07b",base0B:"#98c379",base0C:"#56b6c2",base0D:"#61afef",base0E:"#c678dd",base0F:"#be5046",tree:{margin:0,padding:"10px",borderRadius:"5px"}},k=l.default.div`
  /* stylelint-disable selector-class-pattern */
  height: 100%;
  font-family: Consolas, 'Courier New', Courier, monospace;

  h1 {
    padding: 1em;
  }

  fieldset {
    margin: 1em;
    background-color: lightyellow;
    border: 2px solid gold;
  }

  fieldset.loop {
    background-color: snow;
    border: 3px solid firebrick;
  }

  fieldset.veil {
    background-color: whitesmoke;
    border: 2px dashed royalblue;
  }

  legend {
    padding: 0.3em;
    font-size: x-large;
    font-weight: bold;
    background-color: lightyellow;
    border: 2px solid gold;
  }

  legend.loop {
    background-color: snow;
    border: 3px solid firebrick;
  }

  legend.veil {
    background-color: whitesmoke;
    border: 2px dashed royalblue;
  }

  var {
    display: block;
    padding: 0.5em;
    margin: 0.5em;
    font-size: large;
    font-style: normal;
    font-weight: bold;
    background-color: white;
    border: 3px double black;
  }

  var.deprecated {
    color: gray;

    &::after {
      /* stylelint-disable-next-line no-irregular-whitespace */
      content: '　※廃止予定';
    }
  }

  var span {
    float: right;
    font-size: 14px;
    color: #777;
  }

  legend span {
    margin-left: 20px;
    font-size: 14px;
    color: #777;
  }

  .textLong {
    width: 420px;
  }

  .textTooLong {
    width: 520px;
  }
  /* stylelint-enable selector-class-pattern */
`,C=(0,l.default)(b.default)`
  /* stylelint-disable selector-class-pattern */
  font-size: 13px;

  .acms-admin-form textarea {
    width: 100%;
    height: 50%;
    margin: 0;
    font-family: Consolas, 'Courier New', Courier, monospace;
    font-size: 1.3em;
    color: #333;
  }

  .acms-admin-admin-title3 {
    padding: 5px 10px;
    margin: 0 0 10px;
    font-size: 14px;
    color: #333;
    background: #fff;
  }

  .acms-admin-table-admin {
    margin: -10px 0 20px;
    border-spacing: 0;
    border-collapse: collapse;
  }

  .acms-admin-label {
    margin-right: 5px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    background-color: #1861d8;
  }

  .titleButton {
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
    background: none;
    border: none;
  }

  .mainTitle {
    display: block;
    font-weight: bold;
    color: #333;
    text-decoration: none;

    &:visited {
      color: #333;
    }
  }

  .subTitle {
    display: block;
    color: #5e6c84;

    span {
      font-size: 12px;
      color: #666;
    }
  }

  .hover .acms-admin-label {
    color: #1861d8 !important;
    background-color: #fff;
  }

  .hover .mainTitle {
    color: #333;
  }

  .hover .subTitle {
    color: #5e6c84;
  }

  .hover .subTitle span {
    color: #666;
  }

  .acms-admin-table-admin td {
    display: table-cell;
    padding: 8px 5px;
    line-height: 1.3;
    background-color: #fff;
    border: none;
    transition: auto;
  }

  .acms-admin-modal-footer {
    padding: 10px 0 0;
    margin: 0 -5px;
    border-top: 1px solid #ccc;
  }

  .acms-admin-list-inline {
    margin: 5px 0;
    font-size: 12px;
    color: #666;
    text-align: right;

    li {
      padding-right: 9px;
      font-size: 12px !important;

      kbd {
        padding: 0 5px;
        font-weight: bold;
        background: #eee;
        border-radius: 2px;
      }
    }
  }

  .initial-mark {
    position: relative;
    width: 30px;
    height: 30px;
    margin-right: 5px;
    margin-left: 5px;
    text-align: center;
    background-color: #aaa;
    border-radius: 50px;

    &::after {
      display: inline-block;
      margin-top: 4px;
      margin-left: 1px;
      font-size: 17px;
      color: #fff;
      content: '';
    }
  }

  .initial-b {
    background-color: #d2b8b8;

    &::after {
      content: 'B';
    }
  }

  .initial-c {
    background-color: #b8d2b8;

    &::after {
      content: 'C';
    }
  }

  .initial-e {
    background-color: #b8ccd2;

    &::after {
      content: 'E';
    }
  }

  .initial-m {
    background-color: #c4b8d2;

    &::after {
      content: 'M';
    }
  }

  .initial-m2 {
    background-color: #9fbf91;

    &::after {
      content: 'M';
    }
  }

  .initial-v {
    background-color: #b8d2c9;

    &::after {
      content: 'V';
    }
  }

  .initial-s {
    background-color: #b6c1da;

    &::after {
      content: 'S';
    }
  }

  .initial-g {
    background-color: #adadad;

    &::after {
      content: 'G';
    }
  }

  .initial-v2 {
    background-color: #b8d2c9;

    &::after {
      content: 'V2';
    }
  }

  .customFieldCopied {
    position: fixed;
    inset: -50px 0 auto;
    z-index: 2501;
    width: 100%;
    padding: 10px;
    font-size: 13px;
    color: #fff;
    background: #5690d8;
    border-radius: 0;
    transition: top 0.2s ease-in;

    &.active {
      top: 0;
    }
  }
  /* stylelint-enable selector-class-pattern */
`,_=e=>{let{keyPath:t}=e;const n=e=>{if(e.preventDefault(),t){const e=t.slice().reverse().map(e=>"number"==typeof e?`[${e}]`:e).join(".").replace(/\.([[]\d+])/g,"$1");(0,i.default)(e)}};return(0,y.jsx)("span",{onClick:n,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||n(e)},role:"button",tabIndex:0,style:{cursor:"pointer"},children:t[0]})};t.default=QuickSearch=e=>{let{buttons:t}=e;const[n,a]=(0,r.useState)([]),[l,w]=(0,r.useState)(!1),[x,j]=(0,r.useState)(null),[M,O]=(0,r.useState)(null),[E,A]=(0,r.useState)(null),[S,K]=(0,r.useState)(null),[N,D]=(0,r.useState)(-1),[B,T]=(0,r.useState)(!1),[L,F]=(0,r.useState)(""),[R,P]=(0,r.useState)(!1),[I,U]=(0,r.useState)(!1),[q,z]=(0,r.useState)(!1),[$,H]=(0,r.useState)(""),[W,G]=(0,r.useState)(""),[V,J]=(0,r.useState)(null),Z=(0,r.useRef)(null),X=(0,r.useRef)(null),Y=(0,r.useRef)(null),Q=navigator.userAgent.match(/Mac|PPC/);let ee=null,te=null;const ne=document.getElementById("acms-module-data");ne&&ne.dataset.json&&(ee=JSON.parse(ne.dataset.json));const ae=()=>{const e=new URLSearchParams;e.append("ACMS_POST_Search_GlobalVars",!0),e.append("formToken",window.csrfToken),(0,u.default)({method:"POST",url:window.location.href,responseType:"json",data:e}).then(e=>{e.data.items.push({bid:ACMS.Config.bid,title:"%{ROOT_TPL}",subtitle:ACMS.i18n("quick_search.root_tpl"),url:ACMS.Config.rootTpl}),K(e.data)})},re=(0,r.useCallback)(()=>{const e=`${ACMS.Library.acmsLink({tpl:"acms-code/all.json"})}?cache=${(new Date).getTime()}`,t=`acms_big_${ACMS.Config.bid}_quick_search_data`,n=new f.ExpireLocalStorage,a=n.load(t);a?(j(a.menus),O(a.snippets),A(a.vars),ae()):u.default.get(e).then(e=>{j(e.data.menus),O(e.data.snippets),A(e.data.vars),n.save(t,e.data,1800)}).then(()=>{ae()})},[]),se=(0,r.useMemo)(()=>"administrator"!==ACMS.Config.auth?"normal":";"===L.slice(0,1)?"snippets":":"===L.slice(0,1)?"vars":"%"===L.slice(0,1)?"global-vars":"#"===L.slice(0,1)?"v2module-vars":"normal",[L]),oe=(0,r.useCallback)(e=>{"snippets"===se?le(e):"vars"===se?ce(e):"global-vars"===se?de(e):"v2module-vars"===se?ue(e):ie(e)},[se]),ie=e=>{e&&(location.href=e.url)},le=e=>{e&&u.default.get(e.url).then(e=>{let t=(new DOMParser).parseFromString(e.data,"text/html");t=(t.querySelector("pre>code")||t.querySelector("textarea")).textContent,H(t),P(!0)})},ce=e=>{e&&u.default.get(e.url).then(e=>{const t=(new DOMParser).parseFromString(e.data,"text/html");H(t.body.innerHTML),U(!0)})},ue=e=>{e&&(G(e.title+(e.subtitle?`（${e.subtitle}）`:"")),H(e.data),z(!0))},de=e=>{e&&((0,i.default)(e.title),g.notify.info(ACMS.i18n("quick_search.copy_message")))},be=(0,r.useMemo)(()=>{const e=L?L.toLowerCase().slice(1):"";if(M&&M.items&&e){const t=M.items.filter(t=>-1!==t.title.toLowerCase().indexOf(e)||-1!==t.subtitle.toLowerCase().indexOf(e));return{title:M.title,enTitle:M.enTitle,items:t}}return M},[L,M]),fe=(0,r.useMemo)(()=>{const e=L?L.toLowerCase().slice(1):"";if(E&&E.items&&e){const t=E.items.filter(t=>-1!==t.title.toLowerCase().indexOf(e)||-1!==t.subtitle.toLowerCase().indexOf(e));return{title:E.title,enTitle:E.enTitle,items:t}}return E},[L,E]),he=(0,r.useMemo)(()=>{const e=L?L.toLowerCase().slice(1):"";if(S&&S.items&&e){const t=S.items.filter(t=>-1!==t.title.toLowerCase().indexOf(e)||-1!==t.subtitle.toLowerCase().indexOf(e));return{title:S.title,enTitle:S.enTitle,items:t}}return S},[L,S]),pe=(0,r.useMemo)(()=>{const e=L?L.toLowerCase().slice(1):"";if(ee&&ee.items&&e){const t=ee.items.filter(t=>-1!==t.title.toLowerCase().indexOf(e)||-1!==t.subtitle.toLowerCase().indexOf(e));return{title:ee.title,enTitle:ee.enTitle,items:t}}return ee},[L,ee]),me=(0,r.useMemo)(()=>{if(x&&x.items){const e=x.items.filter(e=>!!L&&(-1!==e.title.indexOf(L)||-1!==e.subtitle.indexOf(L)));return{title:x.title,enTitle:x.enTitle,items:e}}return x},[L,x]),ge=(0,r.useCallback)(()=>"snippets"===se?[be]:"vars"===se?[fe]:"global-vars"===se?[he]:"v2module-vars"===se?pe?[pe]:[]:me?[me,...n]:n,[be,fe,he,pe,me,n,se]),ye=(0,r.useCallback)((e,t)=>{const n=ge();let a=0;for(;e>0;)n[--e]&&n[e].items&&(a+=n[e].items.length);return a+t},[ge]),ve=()=>{T(!1),F(""),a([])},ke=(0,r.useCallback)(()=>{!1===l&&(w(!0),re()),B?ve():(T(!0),F(""),a([]))},[l,B,re]),Ce=(0,r.useCallback)(()=>{const e=ge(),t=ye(e.length,0)-1;D(N+1>t?0:N+1)},[N,ge,ye]),_e=(0,r.useCallback)(()=>{const e=ge(),t=ye(e.length,0)-1;B&&D(N-1<0?t:N-1)},[N,ge,ye,B]),we=(0,r.useCallback)(()=>{const e=ge();let t=0,n=!1;return e.forEach(e=>{e.items.forEach(e=>{N===t&&(n=e),t++})}),n},[N,ge]),xe=()=>{P(!1),requestAnimationFrame(()=>{X.current&&X.current.focus()})},je=()=>{U(!1),requestAnimationFrame(()=>{X.current&&X.current.focus()})},Me=()=>{z(!1),requestAnimationFrame(()=>{X.current&&X.current.focus()})},Oe=e=>{switch(e){case"Blogs":return"initial-b";case"Categories":return"initial-c";case"Entries":return"initial-e";case"Modules":return"initial-m";case"Menu":return"initial-m2";case"Vars":return"initial-v";case"Snippets":return"initial-s";case"Global vars":return"initial-g";case"V2 Module vars":return"initial-v2";default:return""}};return(0,r.useEffect)(()=>(t&&t.length>0&&t.forEach(e=>{e.addEventListener("click",ke)}),s.default.bind(ACMS.Config.quickSearchCommand,e=>{e.preventDefault(),ke()}),s.default.bind(["tab","down"],e=>{!B||R||I||q||(e.preventDefault(),Ce())}),s.default.bind(["shift + tab","up"],e=>{!B||R||I||q||(e.preventDefault(),_e())}),s.default.bind(["enter"],e=>{if(B&&!R&&!I&&!q){e.preventDefault();const t=we();oe(t)}}),()=>{t&&t.length>0&&t.forEach(e=>{e.removeEventListener("click",ke)}),s.default.reset()}),[B,R,I,q,t,we,ke,oe,Ce,_e]),(0,r.useEffect)(()=>{if(V&&Y.current){const e=Y.current.getBoundingClientRect().top,t=e+Y.current.offsetHeight,n=V.getBoundingClientRect().top,a=n+V.offsetHeight,r=n-e;(r<0||t-a<0)&&(Y.current.scrollTop+=r)}},[V]),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(C,{isOpen:B,onClose:()=>{ve()},id:"quick-search-dialog",className:"acms-admin-modal-middle",dialogClassName:"acms-admin-modal-quick-search",onAfterOpen:()=>{te=new d.default,te.addRequest(X.current,ACMS.Library.acmsLink({bid:ACMS.Config.bid}),e=>{a(e)})},onAfterClose:()=>{te&&te.destroy(),te=null},"aria-labelledby":"acms-qucik-search-dialog-title",children:[(0,y.jsxs)(C.Body,{children:[(0,y.jsx)("div",{className:"acms-admin-form",style:{paddingTop:"15px",paddingBottom:"15px"},children:(0,y.jsxs)("label",{className:"acms-admin-width-max",children:[(0,y.jsx)(m.default,{id:"acms-qucik-search-dialog-title",children:ACMS.i18n("quick_search.title")}),(0,y.jsx)("input",{type:"text",ref:X,style:{fontSize:"24px",fontWeight:"bold"},placeholder:ACMS.i18n("quick_search.input_placeholder"),className:"acms-admin-form-width-full acms-admin-form-large acms-admin-margin-bottom-small",onInput:e=>{(e=>{F(e),D(0)})(e.target.value)}})]})}),(0,y.jsx)("div",{ref:Y,className:"acms-admin-modal-middle-scroll",children:ge().map((e,t)=>(0,y.jsx)("div",{children:e&&e.items.length>0&&(0,y.jsxs)("div",{children:[(0,y.jsx)("h2",{className:"acms-admin-admin-title3",style:{background:"#FFF"},children:e.title}),(0,y.jsx)("table",{className:"acms-admin-table-admin acms-admin-form acms-admin-table-hover",children:(0,y.jsx)("tbody",{children:e.items.map((n,a)=>(0,y.jsxs)("tr",{ref:e=>{ye(t,a)===N&&J(e)},onMouseMove:()=>((e,t)=>{const n=ye(e,t);D(n)})(t,a),className:(0,o.default)({hover:ye(t,a)===N}),children:[(0,y.jsx)("td",{style:{width:"1px",wordBreak:"break-all"},children:(0,y.jsx)("div",{className:(0,o.default)("initial-mark",Oe(e.enTitle))})}),(0,y.jsx)("td",{children:"normal"===se?(0,y.jsxs)("a",{href:n.url,children:[(0,y.jsx)("span",{className:"mainTitle",children:n.title}),(0,y.jsxs)("span",{className:"subTitle",children:[n.subtitle," ",(0,y.jsx)("span",{children:n.blogName})]})]}):(0,y.jsxs)("button",{className:"titleButton",type:"button",onClick:()=>oe(n),children:[(0,y.jsx)("span",{className:"mainTitle",children:n.title}),(0,y.jsxs)("span",{className:"subTitle",children:[n.subtitle," ",(0,y.jsx)("span",{children:n.blogName})]})]})}),"normal"!==se?(0,y.jsx)("td",{style:{textAlign:"right",wordBreak:"break-all"},children:"global-vars"===se&&(0,y.jsx)("span",{style:{paddingRight:"10px"},children:n.url})}):(0,y.jsxs)("td",{style:{width:"1px",textAlign:"right",whiteSpace:"nowrap"},children:[n.bid&&(0,y.jsxs)("span",{className:"acms-admin-label",children:["bid:",n.bid]}),n.cid&&(0,y.jsxs)("span",{className:"acms-admin-label",children:["cid:",n.cid]}),n.eid&&(0,y.jsxs)("span",{className:"acms-admin-label",children:["eid:",n.eid]}),n.mid&&(0,y.jsxs)("span",{className:"acms-admin-label",children:["mid:",n.mid]})]})]},ye(t,a)))},`body-${e.enTitle}`)})]})},`label-${e.enTitle}`))})]}),(0,y.jsx)(C.Footer,{children:(0,y.jsxs)("ul",{className:"acms-admin-list-inline",children:[(0,y.jsxs)("li",{children:[(0,y.jsx)("kbd",{children:"tab"})," or",(0,y.jsx)("kbd",{children:"⇅"})," ",ACMS.i18n("quick_search.choice")]}),(0,y.jsxs)("li",{children:[(0,y.jsx)("kbd",{children:"↵"})," ",ACMS.i18n("quick_search.move")]}),(0,y.jsxs)("li",{children:[(0,y.jsx)("kbd",{children:"esc"})," ",ACMS.i18n("quick_search.close")]}),"administrator"===ACMS.Config.auth&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("li",{children:[(0,y.jsx)("kbd",{children:Q?(0,y.jsx)("span",{children:"⌘K"}):(0,y.jsx)("span",{children:"ctl+k"})})," ",ACMS.i18n("quick_search.open")]}),(0,y.jsxs)("li",{children:[(0,y.jsx)("kbd",{children:";"})," ",ACMS.i18n("quick_search.snippets")]}),(0,y.jsxs)("li",{children:[(0,y.jsx)("kbd",{children:"#"})," ",ACMS.i18n("quick_search.v2module_vars")]}),(0,y.jsxs)("li",{children:[(0,y.jsx)("kbd",{children:":"})," ",ACMS.i18n("quick_search.vars")]}),(0,y.jsxs)("li",{children:[(0,y.jsx)("kbd",{children:"%"})," ",ACMS.i18n("quick_search.g_vars")]})]})]})})]}),(0,y.jsxs)(b.default,{isOpen:R,onClose:xe,focusTrapOptions:{initialFocus:()=>Z.current},children:[(0,y.jsx)(b.default.Header,{children:ACMS.i18n("quick_search.snippets")}),(0,y.jsx)(b.default.Body,{children:(0,y.jsx)("div",{className:"acms-admin-form",children:(0,y.jsx)(p.default,{language:"twig",style:{height:"400px",overflow:"scroll",borderRadius:"5px"},children:$})})}),(0,y.jsx)(b.default.Footer,{children:(0,y.jsxs)(h.default,{display:"inline-flex",children:[(0,y.jsx)("button",{type:"button",onClick:xe,className:"acms-admin-btn",children:ACMS.i18n("quick_search.close")}),(0,y.jsx)("button",{ref:Z,type:"button",onClick:()=>{(0,i.default)($),g.notify.info(ACMS.i18n("quick_search.copy_message"))},className:"acms-admin-btn",children:ACMS.i18n("quick_search.copy")})]})})]}),(0,y.jsxs)(b.default,{isOpen:I,onClose:je,children:[(0,y.jsx)(b.default.Header,{children:ACMS.i18n("quick_search.vars")}),(0,y.jsx)(b.default.Body,{children:(0,y.jsx)("div",{className:"acms-admin-form",children:(0,y.jsx)("div",{style:{paddingTop:"10px",paddingBottom:"10px"},children:(0,y.jsx)(k,{dangerouslySetInnerHTML:{__html:$}})})})}),(0,y.jsx)(b.default.Footer,{children:(0,y.jsx)("div",{children:(0,y.jsx)("button",{type:"button",onClick:je,className:"acms-admin-btn",children:ACMS.i18n("quick_search.close")})})})]}),(0,y.jsxs)(b.default,{isOpen:q,onClose:Me,children:[(0,y.jsx)(b.default.Header,{children:W}),(0,y.jsx)(b.default.Body,{children:(0,y.jsx)("div",{className:"acms-admin-form",children:(0,y.jsx)("div",{style:{paddingTop:"10px",paddingBottom:"10px"},children:(0,y.jsx)(c.JSONTree,{data:$,theme:v,hideRoot:!0,invertTheme:!1,shouldExpandNodeInitially:(e,t,n)=>n<1,labelRenderer:(e,t,n,a)=>(0,y.jsx)(_,{keyPath:e}),style:{padding:"10px"}})})})}),(0,y.jsx)(b.default.Footer,{children:(0,y.jsxs)(h.default,{display:"inline-flex",children:[(0,y.jsx)("button",{type:"button",onClick:Me,className:"acms-admin-btn",children:ACMS.i18n("quick_search.close")}),(0,y.jsx)("button",{ref:Z,type:"button",onClick:()=>{(0,i.default)(JSON.stringify($,null,2)),g.notify.info(ACMS.i18n("quick_search.copy_message"))},className:"acms-admin-btn",children:ACMS.i18n("quick_search.copy")})]})})]})]})}},50834:function(e,t,n){var a=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(86425),s=n(22831),o=a(n(1506));t.default=class{constructor(e){const t={interval:200,keyName:"word",...e};this.timer=null,this.cancel=null,this.source={},this.interval=t.interval,this.keyName=t.keyName,this.requests=[],this.onKeyUp=this.onKeyUp.bind(this)}addRequest(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const a="string"==typeof e?document.querySelector(e):e;a.addEventListener("keyup",this.onKeyUp),a.setAttribute("data-request-id",(0,s.v4)()),this.requests.push({input:a,endpoint:t,callback:n})}onKeyUp(e){const{value:t}=e.target;e.preventDefault(),clearTimeout(this.timer);const{endpoint:n,callback:a}=this.requests.find(t=>t.input.dataset.requestId===e.target.dataset.requestId);this.timer=setTimeout(()=>{"function"==typeof this.source.cancel&&this.source.cancel(),this.request(n,t).then(e=>{Array.isArray(e)&&a(e)})},this.interval)}request(e,t){const n=new URLSearchParams;return n.append("ACMS_POST_Search_Items",!0),n.append(this.keyName,t),n.append("formToken",window.csrfToken),this.abortController=new AbortController,new Promise((t,a)=>{(0,o.default)({method:"POST",url:e,responseType:"json",signal:this.abortController.signal,data:n}).then(e=>{t(e.data)}).catch(e=>{(0,r.isCancel)(e)||a(e.message)})})}destroy(){clearTimeout(this.timer),this.abortController&&this.abortController.abort(),this.requests.forEach(e=>{e.input.removeEventListener("keyup",this.onKeyUp)})}}},95773:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const[r,s]=(0,a.useState)({relevance:0,value:"",illegal:!1}),[o,i]=(0,a.useState)(null);return(0,a.useEffect)(()=>{(async()=>{const{default:e}=await n.e(1940).then(n.bind(n,19878));i(e)})()},[]),(0,a.useEffect)(()=>{if(o){const n=o.highlight(e,t);null!==r&&n.value===r.value||s(n)}},[o,t,e,r]),r};var a=n(96540)},8156:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},28854:function(e,t,n){var a=n(8156),r=n(19872),s=Object.hasOwnProperty,o=Object.create(null);for(var i in a)s.call(a,i)&&(o[a[i]]=i);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,r,o=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=t[2],t=t[1],n=0;n<3;n++){var i=2*n;o[n]=parseInt(t.slice(i,i+2),16)}r&&(o[3]=parseInt(r,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(r=(t=t[1])[3],n=0;n<3;n++)o[n]=parseInt(t[n]+t[n],16);r&&(o[3]=parseInt(r+r,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(t[n+1],0);t[4]&&(t[5]?o[3]=.01*parseFloat(t[4]):o[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:s.call(a,t[1])?((o=a[t[1]])[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?o[3]=.01*parseFloat(t[4]):o[3]=parseFloat(t[4]))}for(n=0;n<3;n++)o[n]=c(o[n],0,255);return o[3]=c(o[3],0,1),o},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=r(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=r(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=r(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+a+"%)":"rgba("+t+"%, "+n+"%, "+a+"%, "+e[3]+")"},l.to.hsl=function(){var e=r(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=r(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return o[e.slice(0,3)]}},2520:function(e,t,n){const a=n(28854),r=n(88137),s=["keyword","gray","hex"],o={};for(const e of Object.keys(r))o[[...r[e].labels].sort().join("")]=e;const i={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in s&&(t=null),t&&!(t in r))throw new Error("Unknown model: "+t);let n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=a.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,c=r[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"==typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=r[this.model].channels;const n=Array.prototype.slice.call(e,0,c);this.color=b(n,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const a=t.sort().join("");if(!(a in o))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=o[a];const{labels:s}=r[this.model],i=[];for(n=0;n<s.length;n++)i.push(e[s[n]]);this.color=b(i)}if(i[this.model])for(c=r[this.model].channels,n=0;n<c;n++){const e=i[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in a.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const n=1===t.valpha?t.color:[...t.color,this.valpha];return a.to[t.model](n)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return a.to.rgb.percent(n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=r[this.model],{labels:n}=r[this.model];for(let a=0;a<t;a++)e[n[a]]=this.color[a];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new l([...this.color.map(c(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new l([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:u("rgb",0,d(255)),green:u("rgb",1,d(255)),blue:u("rgb",2,d(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:u("hsl",1,d(100)),lightness:u("hsl",2,d(100)),saturationv:u("hsv",1,d(100)),value:u("hsv",2,d(100)),chroma:u("hcg",1,d(100)),gray:u("hcg",2,d(100)),white:u("hwb",1,d(100)),wblack:u("hwb",2,d(100)),cyan:u("cmyk",0,d(100)),magenta:u("cmyk",1,d(100)),yellow:u("cmyk",2,d(100)),black:u("cmyk",3,d(100)),x:u("xyz",0,d(95.047)),y:u("xyz",1,d(100)),z:u("xyz",2,d(108.833)),l:u("lab",0,d(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new l(e):r[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):a.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),a.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,a]of e.entries()){const e=a/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),a=this.rgb(),r=void 0===t?.5:t,s=2*r-1,o=n.alpha()-a.alpha(),i=((s*o==-1?s:(s+o)/(1+s*o))+1)/2,c=1-i;return l.rgb(i*n.red()+c*a.red(),i*n.green()+c*a.green(),i*n.blue()+c*a.blue(),n.alpha()*r+a.alpha()*(1-r))}};for(const e of Object.keys(r)){if(s.includes(e))continue;const{channels:t}=r[e];l.prototype[e]=function(...t){return this.model===e?new l(this):t.length>0?new l(t,e):new l([...(n=r[this.model][e].raw(this.color),Array.isArray(n)?n:[n]),this.valpha],e);var n},l[e]=function(...n){let a=n[0];return"number"==typeof a&&(a=b(n,t)),new l(a,e)}}function c(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function u(e,t,n){e=Array.isArray(e)?e:[e];for(const a of e)(i[a]||(i[a]=[]))[t]=n;return e=e[0],function(a){let r;return void 0!==a?(n&&(a=n(a)),r=this[e](),r.color[t]=a,r):(r=this[e]().color[t],n&&(r=n(r)),r)}}function d(e){return function(t){return Math.max(0,Math.min(e,t))}}function b(e,t){for(let n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}e.exports=l},10920:function(e,t,n){const a=n(95993),r={};for(const e of Object.keys(a))r[a[e]]=e;const s={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=s;for(const e of Object.keys(s)){if(!("channels"in s[e]))throw new Error("missing channels property: "+e);if(!("labels"in s[e]))throw new Error("missing channel labels property: "+e);if(s[e].labels.length!==s[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=s[e];delete s[e].channels,delete s[e].labels,Object.defineProperty(s[e],"channels",{value:t}),Object.defineProperty(s[e],"labels",{value:n})}s.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(t,n,a),s=Math.max(t,n,a),o=s-r;let i,l;s===r?i=0:t===s?i=(n-a)/o:n===s?i=2+(a-t)/o:a===s&&(i=4+(t-n)/o),i=Math.min(60*i,360),i<0&&(i+=360);const c=(r+s)/2;return l=s===r?0:c<=.5?o/(s+r):o/(2-s-r),[i,100*l,100*c]},s.rgb.hsv=function(e){let t,n,a,r,s;const o=e[0]/255,i=e[1]/255,l=e[2]/255,c=Math.max(o,i,l),u=c-Math.min(o,i,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(r=0,s=0):(s=u/c,t=d(o),n=d(i),a=d(l),o===c?r=a-n:i===c?r=1/3+t-a:l===c&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*s,100*c]},s.rgb.hwb=function(e){const t=e[0],n=e[1];let a=e[2];const r=s.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,a));return a=1-1/255*Math.max(t,Math.max(n,a)),[r,100*o,100*a]},s.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(1-t,1-n,1-a);return[100*((1-t-r)/(1-r)||0),100*((1-n-r)/(1-r)||0),100*((1-a-r)/(1-r)||0),100*r]},s.rgb.keyword=function(e){const t=r[e];if(t)return t;let n,s=1/0;for(const t of Object.keys(a)){const r=(i=a[t],((o=e)[0]-i[0])**2+(o[1]-i[1])**2+(o[2]-i[2])**2);r<s&&(s=r,n=t)}var o,i;return n},s.keyword.rgb=function(e){return a[e]},s.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,a=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92,[100*(.4124*t+.3576*n+.1805*a),100*(.2126*t+.7152*n+.0722*a),100*(.0193*t+.1192*n+.9505*a)]},s.rgb.lab=function(e){const t=s.rgb.xyz(e);let n=t[0],a=t[1],r=t[2];return n/=95.047,a/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*a-16,500*(n-a),200*(a-r)]},s.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;let r,s,o;if(0===n)return o=255*a,[o,o,o];r=a<.5?a*(1+n):a+n-a*n;const i=2*a-r,l=[0,0,0];for(let e=0;e<3;e++)s=t+1/3*-(e-1),s<0&&s++,s>1&&s--,o=6*s<1?i+6*(r-i)*s:2*s<1?r:3*s<2?i+(r-i)*(2/3-s)*6:i,l[e]=255*o;return l},s.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,a=e[2]/100,r=n;const s=Math.max(a,.01);return a*=2,n*=a<=1?a:2-a,r*=s<=1?s:2-s,[t,100*(0===a?2*r/(s+r):2*n/(a+n)),(a+n)/2*100]},s.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let a=e[2]/100;const r=Math.floor(t)%6,s=t-Math.floor(t),o=255*a*(1-n),i=255*a*(1-n*s),l=255*a*(1-n*(1-s));switch(a*=255,r){case 0:return[a,l,o];case 1:return[i,a,o];case 2:return[o,a,l];case 3:return[o,i,a];case 4:return[l,o,a];case 5:return[a,o,i]}},s.hsv.hsl=function(e){const t=e[0],n=e[1]/100,a=e[2]/100,r=Math.max(a,.01);let s,o;o=(2-n)*a;const i=(2-n)*r;return s=n*r,s/=i<=1?i:2-i,s=s||0,o/=2,[t,100*s,100*o]},s.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,a=e[2]/100;const r=n+a;let s;r>1&&(n/=r,a/=r);const o=Math.floor(6*t),i=1-a;s=6*t-o,1&o&&(s=1-s);const l=n+s*(i-n);let c,u,d;switch(o){default:case 6:case 0:c=i,u=l,d=n;break;case 1:c=l,u=i,d=n;break;case 2:c=n,u=i,d=l;break;case 3:c=n,u=l,d=i;break;case 4:c=l,u=n,d=i;break;case 5:c=i,u=n,d=l}return[255*c,255*u,255*d]},s.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,a*(1-r)+r))]},s.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100;let r,s,o;return r=3.2406*t+-1.5372*n+-.4986*a,s=-.9689*t+1.8758*n+.0415*a,o=.0557*t+-.204*n+1.057*a,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,r=Math.min(Math.max(0,r),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[255*r,255*s,255*o]},s.xyz.lab=function(e){let t=e[0],n=e[1],a=e[2];return t/=95.047,n/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*n-16,500*(t-n),200*(n-a)]},s.lab.xyz=function(e){let t,n,a;n=(e[0]+16)/116,t=e[1]/500+n,a=n-e[2]/200;const r=n**3,s=t**3,o=a**3;return n=r>.008856?r:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,a=o>.008856?o:(a-16/116)/7.787,t*=95.047,n*=100,a*=108.883,[t,n,a]},s.lab.lch=function(e){const t=e[0],n=e[1],a=e[2];let r;return r=360*Math.atan2(a,n)/2/Math.PI,r<0&&(r+=360),[t,Math.sqrt(n*n+a*a),r]},s.lch.lab=function(e){const t=e[0],n=e[1],a=e[2]/360*2*Math.PI;return[t,n*Math.cos(a),n*Math.sin(a)]},s.rgb.ansi16=function(e,t=null){const[n,a,r]=e;let o=null===t?s.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let i=30+(Math.round(r/255)<<2|Math.round(a/255)<<1|Math.round(n/255));return 2===o&&(i+=60),i},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){const t=e[0],n=e[1],a=e[2];return t===n&&n===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(a/255*5)},s.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},s.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},s.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));const a=parseInt(n,16);return[a>>16&255,a>>8&255,255&a]},s.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.max(Math.max(t,n),a),s=Math.min(Math.min(t,n),a),o=r-s;let i,l;return i=o<1?s/(1-o):0,l=o<=0?0:r===t?(n-a)/o%6:r===n?2+(a-t)/o:4+(t-n)/o,l/=6,l%=1,[360*l,100*o,100*i]},s.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=n<.5?2*t*n:2*t*(1-n);let r=0;return a<1&&(r=(n-.5*a)/(1-a)),[e[0],100*a,100*r]},s.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=t*n;let r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},s.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;if(0===n)return[255*a,255*a,255*a];const r=[0,0,0],s=t%1*6,o=s%1,i=1-o;let l=0;switch(Math.floor(s)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=i,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=i,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=i}return l=(1-n)*a,[255*(n*r[0]+l),255*(n*r[1]+l),255*(n*r[2]+l)]},s.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let a=0;return n>0&&(a=t/n),[e[0],100*a,100*n]},s.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],100*a,100*n]},s.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},s.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,a=n-t;let r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=function(e){return[0,0,e[0]]},s.gray.hsv=s.gray.hsl,s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},88137:function(e,t,n){const a=n(10920),r=n(98584),s={};Object.keys(a).forEach(e=>{s[e]={},Object.defineProperty(s[e],"channels",{value:a[e].channels}),Object.defineProperty(s[e],"labels",{value:a[e].labels});const t=r(e);Object.keys(t).forEach(n=>{const a=t[n];s[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const a=e(t);if("object"==typeof a)for(let e=a.length,t=0;t<e;t++)a[t]=Math.round(a[t]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}(a),s[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(a)})}),e.exports=s},98584:function(e,t,n){const a=n(10920);function r(e,t){return function(n){return t(e(n))}}function s(e,t){const n=[t[e].parent,e];let s=a[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),s=r(a[t[o].parent][o],s),o=t[o].parent;return s.conversion=n,s}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(a);for(let n=t.length,a=0;a<n;a++)e[t[a]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),r=Object.keys(a[e]);for(let a=r.length,s=0;s<a;s++){const a=r[s],o=t[a];-1===o.distance&&(o.distance=t[e].distance+1,o.parent=e,n.unshift(a))}}return t}(e),n={},r=Object.keys(t);for(let e=r.length,a=0;a<e;a++){const e=r[a];null!==t[e].parent&&(n[e]=s(e,t))}return n}},95993:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},17965:function(e,t,n){"use strict";var a=n(16426),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,s,o,i,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(o=a(),i=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(a){if(a.stopPropagation(),t.format)if(a.preventDefault(),void 0===a.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=r[t.format]||r.default;window.clipboardData.setData(s,e)}else a.clipboardData.clearData(),a.clipboardData.setData(t.format,e);t.onCopy&&(a.preventDefault(),t.onCopy(a.clipboardData))}),document.body.appendChild(c),i.selectNodeContents(c),l.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(a){n&&console.error("unable to copy using execCommand: ",a),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(a){n&&console.error("unable to copy using clipboardData: ",a),n&&console.error("falling back to prompt"),s=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(s,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(i):l.removeAllRanges()),c&&document.body.removeChild(c),o()}return u}},935:function(e,t,n){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function s(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var i=function(){function n(e){t(this,n),this.sourceStr=e,this.subCombos=n.parseComboStr(e),this.keyNames=this.subCombos.reduce(function(e,t){return e.concat(t)},[])}return r(n,[{key:"check",value:function(e){for(var t=0,n=0;n<this.subCombos.length;n+=1)if(-1===(t=this._checkSubCombo(this.subCombos[n],t,e)))return!1;return!0}},{key:"isEqual",value:function(t){if(!t||"string"!=typeof t&&"object"!==e(t))return!1;if("string"==typeof t&&(t=new n(t)),this.subCombos.length!==t.subCombos.length)return!1;for(var a=0;a<this.subCombos.length;a+=1)if(this.subCombos[a].length!==t.subCombos[a].length)return!1;for(var r=0;r<this.subCombos.length;r+=1){for(var s=this.subCombos[r],o=t.subCombos[r].slice(0),i=0;i<s.length;i+=1){var l=s[i],c=o.indexOf(l);c>-1&&o.splice(c,1)}if(0!==o.length)return!1}return!0}},{key:"_checkSubCombo",value:function(e,t,a){e=e.slice(0),a=a.slice(t);for(var r=t,s=0;s<e.length;s+=1){var o=e[s];if("\\"===o[0]){var i=o.slice(1);i!==n.comboDeliminator&&i!==n.keyDeliminator||(o=i)}var l=a.indexOf(o);if(l>-1&&(e.splice(s,1),s-=1,l>r&&(r=l),0===e.length))return r}return-1}}]),n}();i.comboDeliminator=">",i.keyDeliminator="+",i.parseComboStr=function(e){for(var t=i._splitStr(e,i.comboDeliminator),n=[],a=0;a<t.length;a+=1)n.push(i._splitStr(t[a],i.keyDeliminator));return n},i._splitStr=function(e,t){for(var n=e,a=t,r="",s=[],o=0;o<n.length;o+=1)o>0&&n[o]===a&&"\\"!==n[o-1]&&(s.push(r.trim()),r="",o+=1),r+=n[o];return r&&s.push(r.trim()),s};var l=function(){function e(n){t(this,e),this.localeName=n,this.activeTargetKeys=[],this.pressedKeys=[],this._appliedMacros=[],this._keyMap={},this._killKeyCodes=[],this._macros=[]}return r(e,[{key:"bindKeyCode",value:function(e,t){"string"==typeof t&&(t=[t]),this._keyMap[e]=t}},{key:"bindMacro",value:function(e,t){"string"==typeof t&&(t=[t]);var n=null;"function"==typeof t&&(n=t,t=null);var a={keyCombo:new i(e),keyNames:t,handler:n};this._macros.push(a)}},{key:"getKeyCodes",value:function(e){var t=[];for(var n in this._keyMap)this._keyMap[n].indexOf(e)>-1&&t.push(0|n);return t}},{key:"getKeyNames",value:function(e){return this._keyMap[e]||[]}},{key:"setKillKey",value:function(e){if("string"!=typeof e)this._killKeyCodes.push(e);else for(var t=this.getKeyCodes(e),n=0;n<t.length;n+=1)this.setKillKey(t[n])}},{key:"pressKey",value:function(e){if("string"!=typeof e){this.activeTargetKeys.length=0;for(var t=this.getKeyNames(e),n=0;n<t.length;n+=1)this.activeTargetKeys.push(t[n]),-1===this.pressedKeys.indexOf(t[n])&&this.pressedKeys.push(t[n]);this._applyMacros()}else for(var a=this.getKeyCodes(e),r=0;r<a.length;r+=1)this.pressKey(a[r])}},{key:"releaseKey",value:function(e){if("string"==typeof e)for(var t=this.getKeyCodes(e),n=0;n<t.length;n+=1)this.releaseKey(t[n]);else{var a=this.getKeyNames(e);if(-1!==this._killKeyCodes.indexOf(e))this.pressedKeys.length=0;else for(var r=0;r<a.length;r+=1){var s=this.pressedKeys.indexOf(a[r]);s>-1&&this.pressedKeys.splice(s,1)}this.activeTargetKeys.length=0,this._clearMacros()}}},{key:"_applyMacros",value:function(){for(var e=this._macros.slice(0),t=0;t<e.length;t+=1){var n=e[t];if(n.keyCombo.check(this.pressedKeys)){n.handler&&(n.keyNames=n.handler(this.pressedKeys));for(var a=0;a<n.keyNames.length;a+=1)-1===this.pressedKeys.indexOf(n.keyNames[a])&&this.pressedKeys.push(n.keyNames[a]);this._appliedMacros.push(n)}}}},{key:"_clearMacros",value:function(){for(var e=0;e<this._appliedMacros.length;e+=1){var t=this._appliedMacros[e];if(!t.keyCombo.check(this.pressedKeys)){for(var n=0;n<t.keyNames.length;n+=1){var a=this.pressedKeys.indexOf(t.keyNames[n]);a>-1&&this.pressedKeys.splice(a,1)}t.handler&&(t.keyNames=null),this._appliedMacros.splice(e,1),e-=1}}}}]),e}(),c=function(){function a(e,n,r,s){t(this,a),this._locale=null,this._currentContext="",this._contexts={},this._listeners=[],this._appliedListeners=[],this._locales={},this._targetElement=null,this._targetWindow=null,this._targetPlatform="",this._targetUserAgent="",this._isModernBrowser=!1,this._targetKeyDownBinding=null,this._targetKeyUpBinding=null,this._targetResetBinding=null,this._paused=!1,this._contexts.global={listeners:this._listeners,targetWindow:e,targetElement:n,targetPlatform:r,targetUserAgent:s},this.setContext("global")}return r(a,[{key:"setLocale",value:function(e,t){var n=null;return"string"==typeof e?t?t(n=new l(e),this._targetPlatform,this._targetUserAgent):n=this._locales[e]||null:e=(n=e)._localeName,this._locale=n,this._locales[e]=n,n&&(this._locale.pressedKeys=n.pressedKeys),this}},{key:"getLocale",value:function(e){return e||(e=this._locale.localeName),this._locales[e]||null}},{key:"bind",value:function(t,n,a,r){if(null!==t&&"function"!=typeof t||(r=a,a=n,n=t,t=null),t&&"object"===e(t)&&"number"==typeof t.length){for(var s=0;s<t.length;s+=1)this.bind(t[s],n,a);return this}return this._listeners.push({keyCombo:t?new i(t):null,pressHandler:n||null,releaseHandler:a||null,preventRepeat:!1,preventRepeatByDefault:r||!1,executingHandler:!1}),this}},{key:"addListener",value:function(e,t,n,a){return this.bind(e,t,n,a)}},{key:"on",value:function(e,t,n,a){return this.bind(e,t,n,a)}},{key:"bindPress",value:function(e,t,n){return this.bind(e,t,null,n)}},{key:"bindRelease",value:function(e,t){return this.bind(e,null,t,preventRepeatByDefault)}},{key:"unbind",value:function(t,n,a){if(null!==t&&"function"!=typeof t||(a=n,n=t,t=null),t&&"object"===e(t)&&"number"==typeof t.length){for(var r=0;r<t.length;r+=1)this.unbind(t[r],n,a);return this}for(var s=0;s<this._listeners.length;s+=1){var o=this._listeners[s],i=!t&&!o.keyCombo||o.keyCombo&&o.keyCombo.isEqual(t),l=!n&&!a||!n&&!o.pressHandler||n===o.pressHandler,c=!n&&!a||!a&&!o.releaseHandler||a===o.releaseHandler;i&&l&&c&&(this._listeners.splice(s,1),s-=1)}return this}},{key:"removeListener",value:function(e,t,n){return this.unbind(e,t,n)}},{key:"off",value:function(e,t,n){return this.unbind(e,t,n)}},{key:"setContext",value:function(e){if(this._locale&&this.releaseAllKeys(),!this._contexts[e]){var t=this._contexts.global;this._contexts[e]={listeners:[],targetWindow:t.targetWindow,targetElement:t.targetElement,targetPlatform:t.targetPlatform,targetUserAgent:t.targetUserAgent}}var n=this._contexts[e];return this._currentContext=e,this._listeners=n.listeners,this.stop(),this.watch(n.targetWindow,n.targetElement,n.targetPlatform,n.targetUserAgent),this}},{key:"getContext",value:function(){return this._currentContext}},{key:"withContext",value:function(e,t){var n=this.getContext();return this.setContext(e),t(),this.setContext(n),this}},{key:"watch",value:function(e,t,a,r){var s=this;this.stop();var o="undefined"!=typeof globalThis?globalThis:void 0!==n.g?n.g:"undefined"!=typeof window?window:{};if(!e){if(!o.addEventListener&&!o.attachEvent){if("global"===this._currentContext)return;throw new Error("Cannot find window functions addEventListener or attachEvent.")}e=o}if("number"==typeof e.nodeType&&(r=a,a=t,t=e,e=o),!e.addEventListener&&!e.attachEvent)throw new Error("Cannot find addEventListener or attachEvent methods on targetWindow.");this._isModernBrowser=!!e.addEventListener;var i=e.navigator&&e.navigator.userAgent||"",l=e.navigator&&e.navigator.platform||"";t&&null!==t||(t=e.document),a&&null!==a||(a=l),r&&null!==r||(r=i),this._targetKeyDownBinding=function(e){s.pressKey(e.keyCode,e),s._handleCommandBug(e,l)},this._targetKeyUpBinding=function(e){s.releaseKey(e.keyCode,e)},this._targetResetBinding=function(e){s.releaseAllKeys(e)},this._bindEvent(t,"keydown",this._targetKeyDownBinding),this._bindEvent(t,"keyup",this._targetKeyUpBinding),this._bindEvent(e,"focus",this._targetResetBinding),this._bindEvent(e,"blur",this._targetResetBinding),this._targetElement=t,this._targetWindow=e,this._targetPlatform=a,this._targetUserAgent=r;var c=this._contexts[this._currentContext];return c.targetWindow=this._targetWindow,c.targetElement=this._targetElement,c.targetPlatform=this._targetPlatform,c.targetUserAgent=this._targetUserAgent,this}},{key:"stop",value:function(){if(this._targetElement&&this._targetWindow)return this._unbindEvent(this._targetElement,"keydown",this._targetKeyDownBinding),this._unbindEvent(this._targetElement,"keyup",this._targetKeyUpBinding),this._unbindEvent(this._targetWindow,"focus",this._targetResetBinding),this._unbindEvent(this._targetWindow,"blur",this._targetResetBinding),this._targetWindow=null,this._targetElement=null,this}},{key:"pressKey",value:function(e,t){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.pressKey(e),this._applyBindings(t),this}},{key:"releaseKey",value:function(e,t){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.releaseKey(e),this._clearBindings(t),this}},{key:"releaseAllKeys",value:function(e){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.pressedKeys.length=0,this._clearBindings(e),this}},{key:"pause",value:function(){return this._paused||(this._locale&&this.releaseAllKeys(),this._paused=!0),this}},{key:"resume",value:function(){return this._paused=!1,this}},{key:"reset",value:function(){return this.releaseAllKeys(),this._listeners.length=0,this}},{key:"_bindEvent",value:function(e,t,n){return this._isModernBrowser?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}},{key:"_unbindEvent",value:function(e,t,n){return this._isModernBrowser?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}},{key:"_getGroupedListeners",value:function(){var e=[],t=[],n=this._listeners;return"global"!==this._currentContext&&(n=[].concat(s(n),s(this._contexts.global.listeners))),n.sort(function(e,t){return(t.keyCombo?t.keyCombo.keyNames.length:0)-(e.keyCombo?e.keyCombo.keyNames.length:0)}).forEach(function(n){for(var a=-1,r=0;r<t.length;r+=1)(null===t[r]&&null===n.keyCombo||null!==t[r]&&t[r].isEqual(n.keyCombo))&&(a=r);-1===a&&(a=t.length,t.push(n.keyCombo)),e[a]||(e[a]=[]),e[a].push(n)}),e}},{key:"_applyBindings",value:function(e){var t=this,n=!1;e||(e={}),e.preventRepeat=function(){n=!0},e.pressedKeys=this._locale.pressedKeys.slice(0);for(var a=this._locale.activeTargetKeys,r=this._locale.pressedKeys.slice(0),s=this._getGroupedListeners(),o=function(o){var i=s[o],l=i[0].keyCombo;if(null===l||l.check(r)&&a.some(function(e){return l.keyNames.includes(e)})){for(var c=0;c<i.length;c+=1){var u=i[c];u.executingHandler||!u.pressHandler||u.preventRepeat||(u.executingHandler=!0,u.pressHandler.call(t,e),u.executingHandler=!1,(n||u.preventRepeatByDefault)&&(u.preventRepeat=!0,n=!1)),-1===t._appliedListeners.indexOf(u)&&t._appliedListeners.push(u)}if(l)for(var d=0;d<l.keyNames.length;d+=1){var b=r.indexOf(l.keyNames[d]);-1!==b&&(r.splice(b,1),d-=1)}}},i=0;i<s.length;i+=1)o(i)}},{key:"_clearBindings",value:function(e){e||(e={}),e.pressedKeys=this._locale.pressedKeys.slice(0);for(var t=0;t<this._appliedListeners.length;t+=1){var n=this._appliedListeners[t],a=n.keyCombo;null!==a&&a.check(this._locale.pressedKeys)||(n.preventRepeat=!1,null===a&&0!==e.pressedKeys.length||(this._appliedListeners.splice(t,1),t-=1),!n.executingHandler&&n.releaseHandler&&(n.executingHandler=!0,n.releaseHandler.call(this,e),n.executingHandler=!1))}}},{key:"_handleCommandBug",value:function(e,t){t.match("Mac")&&this._locale.pressedKeys.includes("command")&&!["shift","ctrl","alt","capslock","tab","command"].includes(this._locale.getKeyNames(e.keyCode)[0])&&this._targetKeyUpBinding(e)}}]),a}();var u=new c;return u.setLocale("us",function(e,t,n){e.bindKeyCode(3,["cancel"]),e.bindKeyCode(8,["backspace"]),e.bindKeyCode(9,["tab"]),e.bindKeyCode(12,["clear"]),e.bindKeyCode(13,["enter"]),e.bindKeyCode(16,["shift"]),e.bindKeyCode(17,["ctrl"]),e.bindKeyCode(18,["alt","menu"]),e.bindKeyCode(19,["pause","break"]),e.bindKeyCode(20,["capslock"]),e.bindKeyCode(27,["escape","esc"]),e.bindKeyCode(32,["space","spacebar"]),e.bindKeyCode(33,["pageup"]),e.bindKeyCode(34,["pagedown"]),e.bindKeyCode(35,["end"]),e.bindKeyCode(36,["home"]),e.bindKeyCode(37,["left"]),e.bindKeyCode(38,["up"]),e.bindKeyCode(39,["right"]),e.bindKeyCode(40,["down"]),e.bindKeyCode(41,["select"]),e.bindKeyCode(42,["printscreen"]),e.bindKeyCode(43,["execute"]),e.bindKeyCode(44,["snapshot"]),e.bindKeyCode(45,["insert","ins"]),e.bindKeyCode(46,["delete","del"]),e.bindKeyCode(47,["help"]),e.bindKeyCode(145,["scrolllock","scroll"]),e.bindKeyCode(188,["comma",","]),e.bindKeyCode(190,["period","."]),e.bindKeyCode(191,["slash","forwardslash","/"]),e.bindKeyCode(192,["graveaccent","`"]),e.bindKeyCode(219,["openbracket","["]),e.bindKeyCode(220,["backslash","\\"]),e.bindKeyCode(221,["closebracket","]"]),e.bindKeyCode(222,["apostrophe","'"]),e.bindKeyCode(48,["zero","0"]),e.bindKeyCode(49,["one","1"]),e.bindKeyCode(50,["two","2"]),e.bindKeyCode(51,["three","3"]),e.bindKeyCode(52,["four","4"]),e.bindKeyCode(53,["five","5"]),e.bindKeyCode(54,["six","6"]),e.bindKeyCode(55,["seven","7"]),e.bindKeyCode(56,["eight","8"]),e.bindKeyCode(57,["nine","9"]),e.bindKeyCode(96,["numzero","num0"]),e.bindKeyCode(97,["numone","num1"]),e.bindKeyCode(98,["numtwo","num2"]),e.bindKeyCode(99,["numthree","num3"]),e.bindKeyCode(100,["numfour","num4"]),e.bindKeyCode(101,["numfive","num5"]),e.bindKeyCode(102,["numsix","num6"]),e.bindKeyCode(103,["numseven","num7"]),e.bindKeyCode(104,["numeight","num8"]),e.bindKeyCode(105,["numnine","num9"]),e.bindKeyCode(106,["nummultiply","num*"]),e.bindKeyCode(107,["numadd","num+"]),e.bindKeyCode(108,["numenter"]),e.bindKeyCode(109,["numsubtract","num-"]),e.bindKeyCode(110,["numdecimal","num."]),e.bindKeyCode(111,["numdivide","num/"]),e.bindKeyCode(144,["numlock","num"]),e.bindKeyCode(112,["f1"]),e.bindKeyCode(113,["f2"]),e.bindKeyCode(114,["f3"]),e.bindKeyCode(115,["f4"]),e.bindKeyCode(116,["f5"]),e.bindKeyCode(117,["f6"]),e.bindKeyCode(118,["f7"]),e.bindKeyCode(119,["f8"]),e.bindKeyCode(120,["f9"]),e.bindKeyCode(121,["f10"]),e.bindKeyCode(122,["f11"]),e.bindKeyCode(123,["f12"]),e.bindKeyCode(124,["f13"]),e.bindKeyCode(125,["f14"]),e.bindKeyCode(126,["f15"]),e.bindKeyCode(127,["f16"]),e.bindKeyCode(128,["f17"]),e.bindKeyCode(129,["f18"]),e.bindKeyCode(130,["f19"]),e.bindKeyCode(131,["f20"]),e.bindKeyCode(132,["f21"]),e.bindKeyCode(133,["f22"]),e.bindKeyCode(134,["f23"]),e.bindKeyCode(135,["f24"]),e.bindMacro("shift + `",["tilde","~"]),e.bindMacro("shift + 1",["exclamation","exclamationpoint","!"]),e.bindMacro("shift + 2",["at","@"]),e.bindMacro("shift + 3",["number","#"]),e.bindMacro("shift + 4",["dollar","dollars","dollarsign","$"]),e.bindMacro("shift + 5",["percent","%"]),e.bindMacro("shift + 6",["caret","^"]),e.bindMacro("shift + 7",["ampersand","and","&"]),e.bindMacro("shift + 8",["asterisk","*"]),e.bindMacro("shift + 9",["openparen","("]),e.bindMacro("shift + 0",["closeparen",")"]),e.bindMacro("shift + -",["underscore","_"]),e.bindMacro("shift + =",["plus","+"]),e.bindMacro("shift + [",["opencurlybrace","opencurlybracket","{"]),e.bindMacro("shift + ]",["closecurlybrace","closecurlybracket","}"]),e.bindMacro("shift + \\",["verticalbar","|"]),e.bindMacro("shift + ;",["colon",":"]),e.bindMacro("shift + '",["quotationmark","'"]),e.bindMacro("shift + !,",["openanglebracket","<"]),e.bindMacro("shift + .",["closeanglebracket",">"]),e.bindMacro("shift + /",["questionmark","?"]),t.match("Mac")?e.bindMacro("command",["mod","modifier"]):e.bindMacro("ctrl",["mod","modifier"]);for(var a=65;a<=90;a+=1){var r=String.fromCharCode(a+32),s=String.fromCharCode(a);e.bindKeyCode(a,r),e.bindMacro("shift + "+r,s),e.bindMacro("capslock + "+r,s)}var o,i,l=n.match("Firefox")?59:186,c=n.match("Firefox")?173:189,u=n.match("Firefox")?61:187;t.match("Mac")&&(n.match("Safari")||n.match("Chrome"))?(o=91,i=93):t.match("Mac")&&n.match("Opera")?(o=17,i=17):t.match("Mac")&&n.match("Firefox")&&(o=224,i=224),e.bindKeyCode(l,["semicolon",";"]),e.bindKeyCode(c,["dash","-"]),e.bindKeyCode(u,["equal","equalsign","="]),e.bindKeyCode(o,["command","windows","win","super","leftcommand","leftwindows","leftwin","leftsuper"]),e.bindKeyCode(i,["command","windows","win","super","rightcommand","rightwindows","rightwin","rightsuper"]),e.setKillKey("command")}),u.Keyboard=c,u.Locale=l,u.KeyCombo=i,u}()},62597:function(e,t,n){"use strict";n.r(t)},2833:function(e){e.exports=function(e,t,n,a){var r=n?n.call(a,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var s=Object.keys(e),o=Object.keys(t);if(s.length!==o.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),l=0;l<s.length;l++){var c=s[l];if(!i(c))return!1;var u=e[c],d=t[c];if(!1===(r=n?n.call(a,u,d,c):void 0)||void 0===r&&u!==d)return!1}return!0}},19872:function(e,t,n){"use strict";var a=n(83496),r=Array.prototype.concat,s=Array.prototype.slice,o=e.exports=function(e){for(var t=[],n=0,o=e.length;n<o;n++){var i=e[n];a(i)?t=r.call(t,s.call(i)):t.push(i)}return t};o.wrap=function(e){return function(){return e(o(arguments))}}},83496:function(e){e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},16426:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],a=0;a<e.rangeCount;a++)n.push(e.getRangeAt(a));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},22831:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MAX",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v1ToV6",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"v6",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"v6ToV1",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"v7",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return m.default}});var a=g(n(74213)),r=g(n(14808)),s=g(n(96792)),o=g(n(49910)),i=g(n(13518)),l=g(n(30343)),c=g(n(14948)),u=g(n(45073)),d=g(n(77186)),b=g(n(74671)),f=g(n(43507)),h=g(n(30744)),p=g(n(37037)),m=g(n(7775));function g(e){return e&&e.__esModule?e:{default:e}}},74213:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="ffffffff-ffff-ffff-ffff-ffffffffffff"},22311:function(e,t){"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function a(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function r(e,t,n,r,s,o){return a((i=a(a(t,e),a(r,o)))<<(l=s)|i>>>32-l,n);var i,l}function s(e,t,n,a,s,o,i){return r(t&n|~t&a,e,t,s,o,i)}function o(e,t,n,a,s,o,i){return r(t&a|n&~a,e,t,s,o,i)}function i(e,t,n,a,s,o,i){return r(t^n^a,e,t,s,o,i)}function l(e,t,n,a,s,o,i){return r(n^(t|~a),e,t,s,o,i)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],n=32*e.length,a="0123456789abcdef",r=0;r<n;r+=8){var s=e[r>>5]>>>r%32&255,o=parseInt(a.charAt(s>>>4&15)+a.charAt(15&s),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;for(var r=1732584193,c=-271733879,u=-1732584194,d=271733878,b=0;b<e.length;b+=16){var f=r,h=c,p=u,m=d;r=s(r,c,u,d,e[b],7,-680876936),d=s(d,r,c,u,e[b+1],12,-389564586),u=s(u,d,r,c,e[b+2],17,606105819),c=s(c,u,d,r,e[b+3],22,-1044525330),r=s(r,c,u,d,e[b+4],7,-176418897),d=s(d,r,c,u,e[b+5],12,1200080426),u=s(u,d,r,c,e[b+6],17,-1473231341),c=s(c,u,d,r,e[b+7],22,-45705983),r=s(r,c,u,d,e[b+8],7,1770035416),d=s(d,r,c,u,e[b+9],12,-1958414417),u=s(u,d,r,c,e[b+10],17,-42063),c=s(c,u,d,r,e[b+11],22,-1990404162),r=s(r,c,u,d,e[b+12],7,1804603682),d=s(d,r,c,u,e[b+13],12,-40341101),u=s(u,d,r,c,e[b+14],17,-1502002290),r=o(r,c=s(c,u,d,r,e[b+15],22,1236535329),u,d,e[b+1],5,-165796510),d=o(d,r,c,u,e[b+6],9,-1069501632),u=o(u,d,r,c,e[b+11],14,643717713),c=o(c,u,d,r,e[b],20,-373897302),r=o(r,c,u,d,e[b+5],5,-701558691),d=o(d,r,c,u,e[b+10],9,38016083),u=o(u,d,r,c,e[b+15],14,-660478335),c=o(c,u,d,r,e[b+4],20,-405537848),r=o(r,c,u,d,e[b+9],5,568446438),d=o(d,r,c,u,e[b+14],9,-1019803690),u=o(u,d,r,c,e[b+3],14,-187363961),c=o(c,u,d,r,e[b+8],20,1163531501),r=o(r,c,u,d,e[b+13],5,-1444681467),d=o(d,r,c,u,e[b+2],9,-51403784),u=o(u,d,r,c,e[b+7],14,1735328473),r=i(r,c=o(c,u,d,r,e[b+12],20,-1926607734),u,d,e[b+5],4,-378558),d=i(d,r,c,u,e[b+8],11,-2022574463),u=i(u,d,r,c,e[b+11],16,1839030562),c=i(c,u,d,r,e[b+14],23,-35309556),r=i(r,c,u,d,e[b+1],4,-1530992060),d=i(d,r,c,u,e[b+4],11,1272893353),u=i(u,d,r,c,e[b+7],16,-155497632),c=i(c,u,d,r,e[b+10],23,-1094730640),r=i(r,c,u,d,e[b+13],4,681279174),d=i(d,r,c,u,e[b],11,-358537222),u=i(u,d,r,c,e[b+3],16,-722521979),c=i(c,u,d,r,e[b+6],23,76029189),r=i(r,c,u,d,e[b+9],4,-640364487),d=i(d,r,c,u,e[b+12],11,-421815835),u=i(u,d,r,c,e[b+15],16,530742520),r=l(r,c=i(c,u,d,r,e[b+2],23,-995338651),u,d,e[b],6,-198630844),d=l(d,r,c,u,e[b+7],10,1126891415),u=l(u,d,r,c,e[b+14],15,-1416354905),c=l(c,u,d,r,e[b+5],21,-57434055),r=l(r,c,u,d,e[b+12],6,1700485571),d=l(d,r,c,u,e[b+3],10,-1894986606),u=l(u,d,r,c,e[b+10],15,-1051523),c=l(c,u,d,r,e[b+1],21,-2054922799),r=l(r,c,u,d,e[b+8],6,1873313359),d=l(d,r,c,u,e[b+15],10,-30611744),u=l(u,d,r,c,e[b+6],15,-1560198380),c=l(c,u,d,r,e[b+13],21,1309151649),r=l(r,c,u,d,e[b+4],6,-145523070),d=l(d,r,c,u,e[b+11],10,-1120210379),u=l(u,d,r,c,e[b+2],15,718787259),c=l(c,u,d,r,e[b+9],21,-343485551),r=a(r,f),c=a(c,h),u=a(u,p),d=a(d,m)}return[r,c,u,d]}(function(e){if(0===e.length)return[];for(var t=8*e.length,a=new Uint32Array(n(t)),r=0;r<t;r+=8)a[r>>5]|=(255&e[r/8])<<r%32;return a}(e),8*e.length))}},46140:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:n}},14808:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},96792:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,r=(a=n(37037))&&a.__esModule?a:{default:a};t.default=function(e){if(!(0,r.default)(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},27656:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i},2858:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)};var a=new Uint8Array(16)},9042:function(e,t){"use strict";function n(e,t,n,a){switch(e){case 0:return t&n^~t&a;case 1:case 3:return t^n^a;case 2:return t&n^t&a^n&a}}function a(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var s=unescape(encodeURIComponent(e));e=[];for(var o=0;o<s.length;++o)e.push(s.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,l=Math.ceil(i/16),c=new Array(l),u=0;u<l;++u){for(var d=new Uint32Array(16),b=0;b<16;++b)d[b]=e[64*u+4*b]<<24|e[64*u+4*b+1]<<16|e[64*u+4*b+2]<<8|e[64*u+4*b+3];c[u]=d}c[l-1][14]=8*(e.length-1)/Math.pow(2,32),c[l-1][14]=Math.floor(c[l-1][14]),c[l-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<l;++f){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=c[f][p];for(var m=16;m<80;++m)h[m]=a(h[m-3]^h[m-8]^h[m-14]^h[m-16],1);for(var g=r[0],y=r[1],v=r[2],k=r[3],C=r[4],_=0;_<80;++_){var w=Math.floor(_/20),x=a(g,5)+n(w,y,v,k)+C+t[w]+h[_]>>>0;C=k,k=v,v=a(y,30)>>>0,y=g,g=x}r[0]=r[0]+g>>>0,r[1]=r[1]+y>>>0,r[2]=r[2]+v>>>0,r[3]=r[3]+k>>>0,r[4]=r[4]+C>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},49910:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=i;for(var a,r=(a=n(37037))&&a.__esModule?a:{default:a},s=[],o=0;o<256;++o)s.push((o+256).toString(16).slice(1));function i(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}t.default=function(e,t=0){var n=i(e,t);if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n}},13518:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,r,s,o=(a=n(2858))&&a.__esModule?a:{default:a},i=n(49910),l=0,c=0;t.default=function(e,t,n){var a=t&&n||0,u=t||new Array(16),d=(e=e||{}).node,b=e.clockseq;if(e._v6||(d||(d=r),null==b&&(b=s)),null==d||null==b){var f=e.random||(e.rng||o.default)();null==d&&(d=[f[0],f[1],f[2],f[3],f[4],f[5]],r||e._v6||(d[0]|=1,r=d)),null==b&&(b=16383&(f[6]<<8|f[7]),void 0!==s||e._v6||(s=b))}var h=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:c+1,m=h-l+(p-c)/1e4;if(m<0&&void 0===e.clockseq&&(b=b+1&16383),(m<0||h>l)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=h,c=p,s=b;var g=(1e4*(268435455&(h+=122192928e5))+p)%4294967296;u[a++]=g>>>24&255,u[a++]=g>>>16&255,u[a++]=g>>>8&255,u[a++]=255&g;var y=h/4294967296*1e4&268435455;u[a++]=y>>>8&255,u[a++]=255&y,u[a++]=y>>>24&15|16,u[a++]=y>>>16&255,u[a++]=b>>>8|128,u[a++]=255&b;for(var v=0;v<6;++v)u[a+v]=d[v];return t||(0,i.unsafeStringify)(u)}},30343:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=(t="string"==typeof e?(0,r.default)(e):e,Uint8Array.of((15&t[6])<<4|t[7]>>4&15,(15&t[7])<<4|(240&t[4])>>4,(15&t[4])<<4|(240&t[5])>>4,(15&t[5])<<4|(240&t[0])>>4,(15&t[0])<<4|(240&t[1])>>4,(15&t[1])<<4|(240&t[2])>>4,96|15&t[2],t[3],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]));return"string"==typeof e?(0,s.unsafeStringify)(n):n};var a,r=(a=n(96792))&&a.__esModule?a:{default:a},s=n(49910)},14948:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=s(n(59025)),r=s(n(22311));function s(e){return e&&e.__esModule?e:{default:e}}var o=(0,a.default)("v3",48,r.default);t.default=o},59025:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function a(e,a,o,i){var l;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof a&&(a=(0,s.default)(a)),16!==(null===(l=a)||void 0===l?void 0:l.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+e.length);if(c.set(a),c.set(e,a.length),(c=n(c))[6]=15&c[6]|t,c[8]=63&c[8]|128,o){i=i||0;for(var u=0;u<16;++u)o[i+u]=c[u];return o}return(0,r.unsafeStringify)(c)}try{a.name=e}catch(e){}return a.DNS=o,a.URL=i,a};var a,r=n(49910),s=(a=n(96792))&&a.__esModule?a:{default:a},o=t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i=t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8"},45073:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(46140)),r=o(n(2858)),s=n(49910);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(a.default.randomUUID&&!t&&!e)return a.default.randomUUID();var o=(e=e||{}).random||(e.rng||r.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=o[i];return t}return(0,s.unsafeStringify)(o)}},77186:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=s(n(59025)),r=s(n(9042));function s(e){return e&&e.__esModule?e:{default:e}}var o=(0,a.default)("v5",80,r.default);t.default=o},74671:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e={},t,n=0){var o=(0,r.default)(l(l({},e),{},{_v6:!0}),new Uint8Array(16));if(o=(0,s.default)(o),t){for(var i=0;i<16;i++)t[n+i]=o[i];return t}return(0,a.unsafeStringify)(o)};var a=n(49910),r=o(n(13518)),s=o(n(30343));function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},43507:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=(t="string"==typeof e?(0,r.default)(e):e,Uint8Array.of((15&t[3])<<4|t[4]>>4&15,(15&t[4])<<4|(240&t[5])>>4,(15&t[5])<<4|15&t[6],t[7],(15&t[1])<<4|(240&t[2])>>4,(15&t[2])<<4|(240&t[3])>>4,16|(240&t[0])>>4,(15&t[0])<<4|(240&t[1])>>4,t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]));return"string"==typeof e?(0,s.unsafeStringify)(n):n};var a,r=(a=n(96792))&&a.__esModule?a:{default:a},s=n(49910)},30744:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,r=(a=n(2858))&&a.__esModule?a:{default:a},s=n(49910),o=null,i=null,l=0;t.default=function(e,t,n){e=e||{};var a=t&&n||0,c=t||new Uint8Array(16),u=e.random||(e.rng||r.default)(),d=void 0!==e.msecs?e.msecs:Date.now(),b=void 0!==e.seq?e.seq:null,f=i,h=o;return d>l&&void 0===e.msecs&&(l=d,null!==b&&(f=null,h=null)),null!==b&&(b>2147483647&&(b=2147483647),f=b>>>19&4095,h=524287&b),null!==f&&null!==h||(f=(f=127&u[6])<<8|u[7],h=(h=(h=63&u[8])<<8|u[9])<<5|u[10]>>>3),d+1e4>l&&null===b?++h>524287&&(h=0,++f>4095&&(f=0,l++)):l=d,i=f,o=h,c[a++]=l/1099511627776&255,c[a++]=l/4294967296&255,c[a++]=l/16777216&255,c[a++]=l/65536&255,c[a++]=l/256&255,c[a++]=255&l,c[a++]=f>>>4&15|112,c[a++]=255&f,c[a++]=h>>>13&63|128,c[a++]=h>>>5&255,c[a++]=h<<3&255|7&u[10],c[a++]=u[11],c[a++]=u[12],c[a++]=u[13],c[a++]=u[14],c[a++]=u[15],t||(0,s.unsafeStringify)(c)}},37037:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,r=(a=n(27656))&&a.__esModule?a:{default:a};t.default=function(e){return"string"==typeof e&&r.default.test(e)}},7775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,r=(a=n(37037))&&a.__esModule?a:{default:a};t.default=function(e){if(!(0,r.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},31574:function(e,t,n){"use strict";n.r(t),n.d(t,{JSONTree:function(){return mt}});var a,r=n(96540),s=n(2520),o=function(e){return e},i="object"==typeof global&&global&&global.Object===Object&&global,l="object"==typeof self&&self&&self.Object===Object&&self,c=i||l||Function("return this")(),u=c.Symbol,d=Object.prototype,b=d.hasOwnProperty,f=d.toString,h=u?u.toStringTag:void 0,p=Object.prototype.toString,m=u?u.toStringTag:void 0,g=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":m&&m in Object(e)?function(e){var t=b.call(e,h),n=e[h];try{e[h]=void 0;var a=!0}catch(e){}var r=f.call(e);return a&&(t?e[h]=n:delete e[h]),r}(e):function(e){return p.call(e)}(e)},y=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},v=c["__core-js_shared__"],k=(a=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"",C=Function.prototype.toString,_=/^\[object .+?Constructor\]$/,w=Function.prototype,x=Object.prototype,j=w.toString,M=x.hasOwnProperty,O=RegExp("^"+j.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=function(e){return!(!y(e)||(t=e,k&&k in t))&&(function(e){if(!y(e))return!1;var t=g(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)?O:_).test(function(e){if(null!=e){try{return C.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t},A=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return E(n)?n:void 0},S=A(c,"WeakMap"),K=S&&new S,N=K?function(e,t){return K.set(e,t),e}:o,D=Object.create,B=function(){function e(){}return function(t){if(!y(t))return{};if(D)return D(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),T=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=B(e.prototype),a=e.apply(n,t);return y(a)?a:n}},L=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},F=Math.max,R=function(e,t,n,a){for(var r=-1,s=e.length,o=n.length,i=-1,l=t.length,c=F(s-o,0),u=Array(l+c),d=!a;++i<l;)u[i]=t[i];for(;++r<o;)(d||r<s)&&(u[n[r]]=e[r]);for(;c--;)u[i++]=e[r++];return u},P=Math.max,I=function(e,t,n,a){for(var r=-1,s=e.length,o=-1,i=n.length,l=-1,c=t.length,u=P(s-i,0),d=Array(u+c),b=!a;++r<u;)d[r]=e[r];for(var f=r;++l<c;)d[f+l]=t[l];for(;++o<i;)(b||r<s)&&(d[f+n[o]]=e[r++]);return d},U=function(){};function q(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}q.prototype=B(U.prototype),q.prototype.constructor=q;var z=q,$=K?function(e){return K.get(e)}:function(){},H={},W=Object.prototype.hasOwnProperty;function G(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}G.prototype=B(U.prototype),G.prototype.constructor=G;var V=G,J=Array.isArray,Z=function(e){return null!=e&&"object"==typeof e},X=function(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t},Y=Object.prototype.hasOwnProperty;function Q(e){if(Z(e)&&!J(e)&&!(e instanceof z)){if(e instanceof V)return e;if(Y.call(e,"__wrapped__"))return function(e){if(e instanceof z)return e.clone();var t=new V(e.__wrapped__,e.__chain__);return t.__actions__=X(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}(e)}return new V(e)}Q.prototype=U.prototype,Q.prototype.constructor=Q;var ee=Q,te=function(e){var t=function(e){for(var t=e.name+"",n=H[t],a=W.call(H,t)?n.length:0;a--;){var r=n[a],s=r.func;if(null==s||s==e)return r.name}return t}(e),n=ee[t];if("function"!=typeof n||!(t in z.prototype))return!1;if(e===n)return!0;var a=$(n);return!!a&&e===a[0]},ne=Date.now,ae=function(e){var t=0,n=0;return function(){var a=ne(),r=16-(a-n);if(n=a,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},re=ae(N),se=/\{\n\/\* \[wrapped with (.+)\] \*/,oe=/,? & /,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=function(){try{var e=A(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ce=ae(le?function(e,t){return le(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:o),ue=function(e){return e!=e},de=function(e,t){return!(null==e||!e.length)&&function(e,t,n){return t==t?function(e,t,n){for(var a=n-1,r=e.length;++a<r;)if(e[a]===t)return a;return-1}(e,t,n):function(e,t,n,a){for(var r=e.length,s=n+(a?1:-1);a?s--:++s<r;)if(t(e[s],s,e))return s;return-1}(e,ue,n)}(e,t,0)>-1},be=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],fe=function(e,t,n){var a=t+"";return ce(e,function(e,t){var n=t.length;if(!n)return e;var a=n-1;return t[a]=(n>1?"& ":"")+t[a],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(a,function(e,t){return function(e,t){for(var n=-1,a=null==e?0:e.length;++n<a&&!1!==t(e[n],n,e););}(be,function(n){var a="_."+n[0];t&n[1]&&!de(e,a)&&e.push(a)}),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(oe):[]}(a),n)))},he=function(e,t,n,a,r,s,o,i,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,r,u?s:void 0,u?o:void 0,u?void 0:s,u?void 0:o,i,l,c],b=n.apply(void 0,d);return te(e)&&re(b,d),b.placeholder=a,fe(b,e,t)},pe=function(e){return e.placeholder},me=/^(?:0|[1-9]\d*)$/,ge=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t},ye=Math.min,ve="__lodash_placeholder__",ke=function(e,t){for(var n=-1,a=e.length,r=0,s=[];++n<a;){var o=e[n];o!==t&&o!==ve||(e[n]=ve,s[r++]=n)}return s},Ce=function e(t,n,a,r,s,o,i,l,u,d){var b=128&n,f=1&n,h=2&n,p=24&n,m=512&n,g=h?void 0:T(t);return function y(){for(var v=arguments.length,k=Array(v),C=v;C--;)k[C]=arguments[C];if(p)var _=pe(y),w=function(e,t){for(var n=e.length,a=0;n--;)e[n]===t&&++a;return a}(k,_);if(r&&(k=R(k,r,s,p)),o&&(k=I(k,o,i,p)),v-=w,p&&v<d){var x=ke(k,_);return he(t,n,e,y.placeholder,a,k,x,l,u,d-v)}var j=f?a:this,M=h?j[t]:t;return v=k.length,l?k=function(e,t){for(var n=e.length,a=ye(t.length,n),r=X(e);a--;){var s=t[a];e[a]=ge(s,n)?r[s]:void 0}return e}(k,l):m&&v>1&&k.reverse(),b&&u<v&&(k.length=u),this&&this!==c&&this instanceof y&&(M=g||T(M)),M.apply(j,k)}},_e="__lodash_placeholder__",we=Math.min,xe=/\s/,je=/^\s+/,Me=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&xe.test(e.charAt(t)););return t}(e)+1).replace(je,""):e},Oe=/^[-+]0x[0-9a-f]+$/i,Ee=/^0b[01]+$/i,Ae=/^0o[0-7]+$/i,Se=parseInt,Ke=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||Z(e)&&"[object Symbol]"==g(e)}(e))return NaN;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Me(e);var n=Ee.test(e);return n||Ae.test(e)?Se(e.slice(2),n?2:8):Oe.test(e)?NaN:+e},Ne=1/0,De=function(e){var t=function(e){return e?(e=Ke(e))===Ne||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),n=t%1;return t==t?n?t-n:t:0},Be=Math.max,Te=function(e,t,n,a,r,s,o,i){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var u=a?a.length:0;if(u||(t&=-97,a=r=void 0),o=void 0===o?o:Be(De(o),0),i=void 0===i?i:De(i),u-=r?r.length:0,64&t){var d=a,b=r;a=r=void 0}var f=l?void 0:$(e),h=[e,t,n,a,r,d,b,s,o,i];if(f&&function(e,t){var n=e[1],a=t[1],r=n|a,s=r<131,o=128==a&&8==n||128==a&&256==n&&e[7].length<=t[8]||384==a&&t[7].length<=t[8]&&8==n;if(!s&&!o)return e;1&a&&(e[2]=t[2],r|=1&n?0:4);var i=t[3];if(i){var l=e[3];e[3]=l?R(l,i,t[4]):i,e[4]=l?ke(e[3],_e):t[4]}(i=t[5])&&(l=e[5],e[5]=l?I(l,i,t[6]):i,e[6]=l?ke(e[5],_e):t[6]),(i=t[7])&&(e[7]=i),128&a&&(e[8]=null==e[8]?t[8]:we(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r}(h,f),e=h[0],t=h[1],n=h[2],a=h[3],r=h[4],!(i=h[9]=void 0===h[9]?l?0:e.length:Be(h[9]-u,0))&&24&t&&(t&=-25),t&&1!=t)p=8==t||16==t?function(e,t,n){var a=T(e);return function r(){for(var s=arguments.length,o=Array(s),i=s,l=pe(r);i--;)o[i]=arguments[i];var u=s<3&&o[0]!==l&&o[s-1]!==l?[]:ke(o,l);return(s-=u.length)<n?he(e,t,Ce,r.placeholder,void 0,o,u,void 0,void 0,n-s):L(this&&this!==c&&this instanceof r?a:e,this,o)}}(e,t,i):32!=t&&33!=t||r.length?Ce.apply(void 0,h):function(e,t,n,a){var r=1&t,s=T(e);return function t(){for(var o=-1,i=arguments.length,l=-1,u=a.length,d=Array(u+i),b=this&&this!==c&&this instanceof t?s:e;++l<u;)d[l]=a[l];for(;i--;)d[l++]=arguments[++o];return L(b,r?n:this,d)}}(e,t,n,a);else var p=function(e,t,n){var a=1&t,r=T(e);return function t(){return(this&&this!==c&&this instanceof t?r:e).apply(a?n:this,arguments)}}(e,t,n);return fe((f?N:re)(p,h),e,t)};function Le(e,t,n){var a=Te(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return a.placeholder=Le.placeholder,a}Le.placeholder={};var Fe=Le;const Re={threezerotwofour:{scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},apathy:{scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},ashes:{scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},atelierDune:{scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},atelierForest:{scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},atelierHeath:{scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},atelierLakeside:{scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},atelierSeaside:{scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},bespin:{scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},brewer:{scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},bright:{scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},chalk:{scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},codeschool:{scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},colors:{scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},default:{scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},eighties:{scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},embers:{scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},flat:{scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},google:{scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},grayscale:{scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},greenscreen:{scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},harmonic:{scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},hopscotch:{scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},isotope:{scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},marrakesh:{scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},mocha:{scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},monokai:{scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},nicinabox:{scheme:"nicinabox",author:"nicinabox (http://github.com/nicinabox)",base00:"#2A2F3A",base01:"#3C444F",base02:"#4F5A65",base03:"#BEBEBE",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#FFFFFF",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#FC6D24",base0A:"#ddb26f",base0B:"#A1C659",base0C:"#12cfc0",base0D:"#6FB3D2",base0E:"#D381C3",base0F:"#deaf8f"},ocean:{scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},paraiso:{scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},pop:{scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},railscasts:{scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},shapeshifter:{scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},solarized:{scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},summerfruit:{scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},tomorrow:{scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},tube:{scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},twilight:{scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"}},Pe=Re.default,Ie=Object.keys(Pe),Ue=e=>t=>({className:[t.className,e.className].filter(Boolean).join(" "),style:{...t.style||{},...e.style||{}}}),qe=(e,t,...n)=>{if(null===t)return e;Array.isArray(t)||(t=[t]);const a=t.map(t=>e[t]).filter(Boolean).reduce((e,t)=>("string"==typeof t?e.className=[e.className,t].filter(Boolean).join(" "):"object"==typeof t?e.style={...e.style,...t}:"function"==typeof t&&(e={...e,...t(e,...n)}),e),{className:"",style:{}});return a.className||delete a.className,0===Object.keys(a.style).length&&delete a.style,a},ze=e=>Object.keys(e).reduce((t,n)=>(t[n]=/^base/.test(n)?(e=>{const t=s(e),[n,a,r]=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255;return[.299*t+.587*n+.114*a,-.14713*t+-.28886*n+.436*a,.615*t+-.51499*n+-.10001*a]}(t.array());var o;const i=function(e){const t=e[0],n=e[1],a=e[2];let r,s,o;return r=1*t+0*n+1.13983*a,s=1*t+-.39465*n+-.5806*a,o=1*t+2.02311*n+0*a,r=Math.min(Math.max(0,r),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[255*r,255*s,255*o]}([(o=n,o<.25?1:o<.5?.9-o:1.1-o),a,r]);return s.rgb(i).hex()})(e[n]):"scheme"===n?e[n]+":inverted":e[n],t),{}),$e=Fe((e,t={},n={},...a)=>{const{defaultBase16:r=Pe,base16Themes:s=null}=t,o=We(n,s);o&&(n={...o,...n});const i=Ie.reduce((e,t)=>(e[t]=n[t]||r[t],e),{}),l=((e,t)=>{const n=Object.keys(t);for(const t in e)-1===n.indexOf(t)&&n.push(t);return n.reduce((n,a)=>(n[a]=((e,t)=>{if(void 0===e)return t;if(void 0===t)return e;const n=typeof t;switch(typeof e){case"string":switch(n){case"string":return[t,e].filter(Boolean).join(" ");case"object":return Ue({className:e,style:t});case"function":return(n,...a)=>Ue({className:e})(t(n,...a))}break;case"object":switch(n){case"string":return Ue({className:t,style:e});case"object":return{...t,...e};case"function":return(n,...a)=>Ue({style:e})(t(n,...a))}break;case"function":switch(n){case"string":return(n,...a)=>e(Ue(n)({className:t}),...a);case"object":return(n,...a)=>e(Ue(n)({style:t}),...a);case"function":return(n,...a)=>e(t(n,...a),...a)}}})(e[a],t[a]),n),{})})(Object.keys(n).reduce((e,t)=>-1===Ie.indexOf(t)?(e[t]=n[t],e):e,{}),e(i));return Fe(qe,2)(l,...a)},3),He=e=>!!e.extend,We=(e,t)=>{if(e&&He(e)&&e.extend&&(e=e.extend),"string"==typeof e){const[n,a]=e.split(":");e=t?t[n]:Re[n],"inverted"===a&&(e=ze(e))}return e&&Object.prototype.hasOwnProperty.call(e,"base00")?e:void 0},Ge=e=>"string"==typeof e?`${e}:inverted`:e&&He(e)&&e.extend?"string"==typeof e.extend?{...e,extend:`${e.extend}:inverted`}:{...e,extend:ze(e.extend)}:e?ze(e):e;function Ve({styling:e,arrowStyle:t="single",expanded:n,nodeType:a,onClick:s}){return r.createElement("div",{...e("arrowContainer",t),onClick:s},r.createElement("div",{...e(["arrow","arrowSign"],a,n,t)},"▶","double"===t&&r.createElement("div",{...e(["arrowSign","arrowSignInner"])},"▶")))}function Je(e,t,n,a=0,r=1/0){let s;if("Object"===e){let e=Object.getOwnPropertyNames(t);n&&e.sort(!0===n?void 0:n),e=e.slice(a,r+1),s={entries:e.map(e=>({key:e,value:t[e]}))}}else if("Array"===e)s={entries:t.slice(a,r+1).map((e,t)=>({key:t+a,value:e}))};else{let e=0;const n=[];let o=!0;const i=function(e){return"function"==typeof e.set}(t);for(const s of t){if(e>r){o=!1;break}a<=e&&(i&&Array.isArray(s)?"string"==typeof s[0]||"number"==typeof s[0]?n.push({key:s[0],value:s[1]}):n.push({key:`[entry ${e}]`,value:{"[key]":s[0],"[value]":s[1]}}):n.push({key:e,value:s})),e++}s={hasMore:!o,entries:n}}return s}function Ze(e,t,n){const a=[];for(;t-e>n*n;)n*=n;for(let r=e;r<=t;r+=n)a.push({from:r,to:Math.min(t,r+n-1)});return a}function Xe(e,t,n,a,r=0,s=1/0){const o=Je.bind(null,e,t,n);if(!a)return o().entries;const i=s<1/0,l=Math.min(s-r,function(e,t){return"Object"===e?Object.keys(t).length:"Array"===e?t.length:1/0}(e,t));if("Iterable"!==e){if(l<=a||a<7)return o(r,s).entries}else if(l<=a&&!i)return o(r,s).entries;let c;if("Iterable"===e){const{hasMore:e,entries:t}=o(r,r+a-1);c=e?[...t,...Ze(r+a,r+2*a-1,a)]:t}else c=i?Ze(r,s,a):[...o(0,a-5).entries,...Ze(a-4,l-5,a),...o(l-4,l-1).entries];return c}function Ye(e){const{styling:t,from:n,to:a,renderChildNodes:s,nodeType:o}=e,[i,l]=(0,r.useState)(!1),c=(0,r.useCallback)(()=>{l(!i)},[i]);return i?r.createElement("div",{...t("itemRange",i)},s(e,n,a)):r.createElement("div",{...t("itemRange",i),onClick:c},r.createElement(Ve,{nodeType:o,styling:t,expanded:!1,onClick:c,arrowStyle:"double"}),`${n} ... ${a}`)}function Qe(e,t,n){const{nodeType:a,data:s,collectionLimit:o,circularCache:i,keyPath:l,postprocessValue:c,sortObjectKeys:u}=e,d=[];return Xe(a,s,u,o,t,n).forEach(t=>{if(void 0!==t.to)d.push(r.createElement(Ye,{...e,key:`ItemRange--${t.from}-${t.to}`,from:t.from,to:t.to,renderChildNodes:Qe}));else{const{key:n,value:a}=t,s=-1!==i.indexOf(a);d.push(r.createElement(lt,{...e,postprocessValue:c,collectionLimit:o,key:`Node--${n}`,keyPath:[n,...l],value:c(a),circularCache:[...i,a],isCircular:s,hideRoot:!1}))}}),d}function et(e){const{circularCache:t=[],collectionLimit:n,createItemString:a,data:s,expandable:o,getItemString:i,hideRoot:l,isCircular:c,keyPath:u,labelRenderer:d,level:b=0,nodeType:f,nodeTypeIndicator:h,shouldExpandNodeInitially:p,styling:m}=e,[g,y]=(0,r.useState)(!c&&p(u,s,b)),v=(0,r.useCallback)(()=>{o&&y(!g)},[o,g]),k=g||l&&0===b?Qe({...e,circularCache:t,level:b+1}):null,C=i(f,s,r.createElement("span",{...m("nestedNodeItemType",g)},h),a(s,n),u),_=[u,f,g,o];return l?r.createElement("li",{...m("rootNode",..._)},r.createElement("ul",{...m("rootNodeChildren",..._)},k)):r.createElement("li",{...m("nestedNode",..._)},o&&r.createElement(Ve,{styling:m,nodeType:f,expanded:g,onClick:v}),r.createElement("label",{...m(["label","nestedNodeLabel"],..._),onClick:v},d(..._)),r.createElement("span",{...m("nestedNodeItemString",..._),onClick:v},C),r.createElement("ul",{...m("nestedNodeChildren",..._)},k))}function tt(e){const t=Object.getOwnPropertyNames(e).length;return`${t} ${1!==t?"keys":"key"}`}function nt({data:e,...t}){return r.createElement(et,{...t,data:e,nodeType:"Object",nodeTypeIndicator:"Error"===t.nodeType?"Error()":"{}",createItemString:tt,expandable:Object.getOwnPropertyNames(e).length>0})}function at(e){return`${e.length} ${1!==e.length?"items":"item"}`}function rt({data:e,...t}){return r.createElement(et,{...t,data:e,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:at,expandable:e.length>0})}function st(e,t){let n=0,a=!1;if(Number.isSafeInteger(e.size))n=e.size;else for(const r of e){if(t&&n+1>t){a=!0;break}n+=1}return`${a?">":""}${n} ${1!==n?"entries":"entry"}`}function ot(e){return r.createElement(et,{...e,nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:st,expandable:!0})}function it({nodeType:e,styling:t,labelRenderer:n,keyPath:a,valueRenderer:s,value:o,valueGetter:i=e=>e}){return r.createElement("li",{...t("value",e,a)},r.createElement("label",{...t(["label","valueLabel"],e,a)},n(a,e,!1,!1)),r.createElement("span",{...t("valueText",e,a)},s(i(o),o,...a)))}function lt({getItemString:e,keyPath:t,labelRenderer:n,styling:a,value:s,valueRenderer:o,isCustomNode:i,...l}){const c=i(s)?"Custom":function(e){const t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&"function"==typeof e[Symbol.iterator]?"Iterable":"Custom"===t&&e.constructor!==Object&&e instanceof Object?"Object":t}(s),u={getItemString:e,key:t[0],keyPath:t,labelRenderer:n,nodeType:c,styling:a,value:s,valueRenderer:o},d={...l,...u,data:s,isCustomNode:i};switch(c){case"Object":case"Error":case"WeakMap":case"WeakSet":return r.createElement(nt,{...d});case"Array":return r.createElement(rt,{...d});case"Iterable":case"Map":case"Set":return r.createElement(ot,{...d});case"String":return r.createElement(it,{...u,valueGetter:e=>`"${e}"`});case"Number":case"Custom":return r.createElement(it,{...u});case"Boolean":return r.createElement(it,{...u,valueGetter:e=>e?"true":"false"});case"Date":return r.createElement(it,{...u,valueGetter:e=>e.toISOString()});case"Null":return r.createElement(it,{...u,valueGetter:()=>"null"});case"Undefined":return r.createElement(it,{...u,valueGetter:()=>"undefined"});case"Function":case"Symbol":return r.createElement(it,{...u,valueGetter:e=>e.toString()});default:return r.createElement(it,{...u,valueGetter:()=>`<${c}>`})}}const ct=e=>({String:e.STRING_COLOR,Date:e.DATE_COLOR,Number:e.NUMBER_COLOR,Boolean:e.BOOLEAN_COLOR,Null:e.NULL_COLOR,Undefined:e.UNDEFINED_COLOR,Function:e.FUNCTION_COLOR,Symbol:e.SYMBOL_COLOR});var ut=$e(e=>{const t=(e=>({BACKGROUND_COLOR:e.base00,TEXT_COLOR:e.base07,STRING_COLOR:e.base0B,DATE_COLOR:e.base0B,NUMBER_COLOR:e.base09,BOOLEAN_COLOR:e.base09,NULL_COLOR:e.base08,UNDEFINED_COLOR:e.base08,FUNCTION_COLOR:e.base08,SYMBOL_COLOR:e.base08,LABEL_COLOR:e.base0D,ARROW_COLOR:e.base0D,ITEM_STRING_COLOR:e.base0B,ITEM_STRING_EXPANDED_COLOR:e.base03}))(e);return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:t.BACKGROUND_COLOR},value:({style:e},t,n)=>({style:{...e,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:n.length>1?"2.125em":"1.25em",textIndent:"-0.5em",wordBreak:"break-all"}}),label:{display:"inline-block",color:t.LABEL_COLOR},valueLabel:{margin:"0 0.5em 0 0"},valueText:({style:e},n)=>({style:{...e,color:ct(t)[n]}}),itemRange:(e,n)=>({style:{paddingTop:n?0:"0.25em",cursor:"pointer",color:t.LABEL_COLOR}}),arrow:({style:e},t,n)=>({style:{...e,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:n?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:n?"rotateZ(90deg)":"rotateZ(0deg)",transform:n?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"}}),arrowContainer:({style:e},t)=>({style:{...e,display:"inline-block",paddingRight:"0.5em",paddingLeft:"double"===t?"1em":0,cursor:"pointer"}}),arrowSign:{color:t.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:({style:e},t,n,a,r)=>({style:{...e,position:"relative",paddingTop:"0.25em",marginLeft:t.length>1?"0.875em":0,paddingLeft:r?0:"1.125em"}}),rootNode:{padding:0,margin:0},nestedNodeLabel:({style:e},t,n,a,r)=>({style:{...e,margin:0,padding:0,WebkitUserSelect:r?"inherit":"text",MozUserSelect:r?"inherit":"text",cursor:r?"pointer":"default"}}),nestedNodeItemString:({style:e},n,a,r)=>({style:{...e,paddingLeft:"0.5em",cursor:"default",color:r?t.ITEM_STRING_EXPANDED_COLOR:t.ITEM_STRING_COLOR}}),nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:({style:e},t,n)=>({style:{...e,padding:0,margin:0,listStyle:"none",display:n?"block":"none"}}),rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}},{defaultBase16:{scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"}});const dt=e=>e,bt=(e,t,n)=>0===n,ft=(e,t,n,a)=>r.createElement("span",null,n," ",a),ht=([e])=>r.createElement("span",null,e,":"),pt=()=>!1;function mt({data:e,theme:t,invertTheme:n,keyPath:a=["root"],labelRenderer:s=ht,valueRenderer:o=dt,shouldExpandNodeInitially:i=bt,hideRoot:l=!1,getItemString:c=ft,postprocessValue:u=dt,isCustomNode:d=pt,collectionLimit:b=50,sortObjectKeys:f=!1}){const h=(0,r.useMemo)(()=>ut(n?Ge(t):t),[t,n]);return r.createElement("ul",{...h("tree")},r.createElement(lt,{keyPath:l?[]:a,value:u(e),isCustomNode:d,styling:h,labelRenderer:s,valueRenderer:o,shouldExpandNodeInitially:i,hideRoot:l,getItemString:c,postprocessValue:u,collectionLimit:b,sortObjectKeys:f}))}}}]);